@ckeditor/ckeditor5-track-changes 44.0.0-alpha.6 → 44.0.0-alpha.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x5de982(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x1989db,_0x128b41){super(),this['id']=_0x128b41['id'],this['type']=_0x128b41['type'],this['subType']=_0x128b41['subType']||null,this['author']=_0x128b41['author'],this['creator']=_0x128b41['creator']||_0x128b41['author'],this['isExternal']=Boolean(_0x128b41['attributes']&&_0x128b41['attributes']['@external']),this['data']=null,this['_model']=_0x1989db,this['_onAccept']=_0x128b41['onAccept'],this['_onDiscard']=_0x128b41['onDiscard'],this['_onAttributesChange']=_0x128b41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x128b41['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 _0x176475=this;for(;_0x176475['previous'];)_0x176475=_0x176475['previous'];return _0x176475;}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'](_0x47015d){this['_markerNames']['add'](_0x47015d);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x59aec2=>this['_model']['markers']['get'](_0x59aec2))['filter'](_0x2c52fa=>_0x2c52fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2a4fa9=>{for(const _0x14cd45 of this['getMarkers']())_0x2a4fa9['removeMarker'](_0x14cd45);}),this['_markerNames']['clear']();}['removeMarker'](_0xb6bf59){this['_model']['change'](_0x4edcaf=>{_0x4edcaf['removeMarker'](_0xb6bf59);}),this['_markerNames']['delete'](_0xb6bf59);}['addRange'](_0x13f326){const _0x34746a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x34746a),this['_model']['change'](_0x5810b0=>{_0x5810b0['addMarker'](_0x34746a,{'range':_0x13f326,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x129d23){for(const _0x2d97cf of this['getRanges']())if(_0x2d97cf['isIntersecting'](_0x129d23))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0xf1dd5b=>_0xf1dd5b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x27dd79,_0x4b8a94)=>[..._0x27dd79,..._0x4b8a94['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x7ccbfb=this['getRanges']();if(0x1!=_0x7ccbfb['length'])return null;const _0x5c6d3c=_0x7ccbfb[0x0],_0x410d34=_0x5c6d3c['start']['nodeAfter'],_0x43ac04=_0x5c6d3c['end']['nodeBefore'];return _0x410d34 instanceof _0x508285?_0x410d34!=_0x43ac04?null:_0x410d34: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 _0x1c8975=[];let _0x3b5366=this['head'];for(;_0x3b5366;)_0x1c8975['push'](_0x3b5366),_0x3b5366=_0x3b5366['next'];return _0x1c8975;}['setAttribute'](_0x3f5dd7,_0x405669){const _0x2c5ea8=_0x255812(this['attributes']);_0x2156dd(_0x2c5ea8,_0x3f5dd7,_0x405669),_0x4dfac2(_0x2c5ea8,this['attributes'])||(this['attributes']=_0x2c5ea8,this['_onAttributesChange'](_0x2c5ea8));}['removeAttribute'](_0x51e416){const _0x386486=_0x255812(this['attributes']);_0xa93136(_0x386486,_0x51e416),_0x4dfac2(_0x386486,this['attributes'])||(this['attributes']=_0x386486,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 _0xb9e80()['substr'](0x1,0x5);}}function o(_0x5ab091,_0x150fe7,_0x4a597d){const _0x1842b3=_0x5ab091['t'],t=_0x5ab091['t'];switch(_0x150fe7){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4a597d);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4a597d);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4a597d);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4a597d);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4a597d);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',_0x4a597d);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4a597d);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a597d);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4a597d);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4a597d);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4a597d);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4a597d);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4a597d);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4a597d);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4a597d);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4a597d);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4a597d);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4a597d);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4a597d);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4a597d);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4a597d);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4a597d);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4a597d);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4a597d);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'},_0x4a597d);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4a597d);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4a597d);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4a597d);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4a597d);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4a597d);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4a597d);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4a597d);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4a597d);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4a597d);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'},_0x4a597d);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4a597d);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 _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4a597d);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1842b3({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4a597d);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);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'},_0x4a597d);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x150fe7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3450b2,_0x1f141e){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3450b2,this['_locale']=_0x1f141e;}['getDescriptions'](_0xb46d4){const _0x3bbf54=[],_0xfa88bb=new Set(),_0x34cce2=new Set();for(let _0x291c9a=0x0;_0x291c9a<_0xb46d4['length'];_0x291c9a++){const _0x3d785e=_0xb46d4[_0x291c9a];if(!_0x3d785e['isInContent'])continue;const _0x3f44e2=this['_handleCustomCallbackDescription'](_0x3d785e);if(_0x3f44e2){if(null!=_0x3d785e['subType']){if(_0xfa88bb['has'](_0x3d785e['subType']))continue;_0xfa88bb['add'](_0x3d785e['subType']);}_0x3bbf54['push'](_0x3f44e2);}else{if('attribute'!=_0x3d785e['type'])'insertion'!=_0x3d785e['type']&&'deletion'!=_0x3d785e['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3bbf54,_0x3d785e,_0xb46d4[_0x291c9a+0x1]);else{const _0x41ac70=_0x3d785e['data']['key'];if(_0x34cce2['has'](_0x41ac70))continue;_0x34cce2['add'](_0x3d785e['data']['key']),_0x41ac70==m?this['_handleRenameSuggestionDescription'](_0x3bbf54,_0x3d785e):this['_handleAttributeSuggestionDescription'](_0x3bbf54,_0x3d785e);}}}return this['_resolveDescriptionItems'](_0x3bbf54);}['registerDescriptionCallback'](_0x4c0eb7){this['_customCallbacks']['push'](_0x4c0eb7);}['registerElementLabel'](_0x2ea48c,_0x7286e8,_0x2b2ce2=_0xe00547['normal']){'function'==typeof _0x2ea48c?_0x520d8b(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2ea48c,'label':_0x7286e8,'priority':_0x2b2ce2}):this['_itemLabels']['set'](_0x2ea48c,_0x7286e8);}['registerAttributeLabel'](_0x4b09d0,_0x496135){this['_attributeLabels']['set'](_0x4b09d0,_0x496135);}['getItemLabel'](_0x43c8fc,_0x318a1a=0x1){let _0x1a2aef;for(const _0x23fd62 of this['_itemLabelsCallbacks'])if(_0x23fd62['matchingCallback'](_0x43c8fc)){_0x1a2aef=_0x23fd62['label'];break;}return _0x1a2aef||(_0x1a2aef=this['_itemLabels']['get'](_0x43c8fc['name'])),_0x1a2aef?_0x1a2aef(_0x318a1a):0x1!==_0x318a1a?_0x318a1a+'\x20'+_0x43c8fc['name']+'s':''+_0x43c8fc['name'];}['_addDescriptionItems'](_0xaca27e,_0x3ac6af){const _0x221da3=_0x3ac6af['getFirstRange']()['getWalker'](),_0x3f8e85='insertion'==_0x3ac6af['type']?'add':'remove';for(const _0x1f5e77 of _0x221da3){const _0x5f04fb=_0x1f5e77['item'],_0x10b7b0=_0xaca27e[_0xaca27e['length']-0x1];if(_0x5f04fb['is']('$textProxy'))_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),_0x10b7b0&&'text'==_0x10b7b0['type']?_0x10b7b0[_0x3f8e85]+=_0x5f04fb['data']:_0xaca27e['push']({'type':'text','add':'add'==_0x3f8e85?_0x5f04fb['data']:'','remove':'remove'==_0x3f8e85?_0x5f04fb['data']:''});else{if(this['_schema']['isObject'](_0x5f04fb)){const _0xd5b169=_0x5f04fb;if(_0x10b7b0&&_0x10b7b0['type']['indexOf']('Container')>-0x1&&_0xaca27e['pop'](),'elementEnd'==_0x1f5e77['type'])continue;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'Object'&&_0x10b7b0['element']['name']==_0xd5b169['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'Object','element':_0xd5b169,'quantity':0x1}),_0x221da3['skip'](_0xc7a641=>!('elementEnd'==_0xc7a641['type']&&_0xc7a641['item']==_0x5f04fb));}else{if(this['_schema']['checkChild'](_0x5f04fb,'$text')||_0x5f04fb['is']('element','softBreak')){const _0x36fc54=_0x5f04fb;if('add'==_0x3f8e85&&'elementStart'==_0x1f5e77['type']||'remove'==_0x3f8e85&&'elementEnd'==_0x1f5e77['type'])continue;if(_0x10b7b0&&-0x1==_0x10b7b0['type']['indexOf']('Container')){'text'==_0x10b7b0['type']&&(_0x10b7b0[_0x3f8e85]+='\x0a');continue;}let _0x339a9e;if(_0x339a9e='add'==_0x3f8e85?_0x36fc54['nextSibling']&&!this['_schema']['isObject'](_0x36fc54['nextSibling'])?_0x36fc54['nextSibling']:null:_0x36fc54['previousSibling']&&!this['_schema']['isObject'](_0x36fc54['previousSibling'])?_0x36fc54['previousSibling']:null,_0x36fc54['isEmpty']||_0x339a9e&&_0x339a9e['isEmpty']){const _0x42caa2=_0x339a9e&&_0x339a9e['isEmpty']?_0x339a9e:_0x36fc54;_0x10b7b0&&_0x10b7b0['type']==_0x3f8e85+'EmptyContainer'&&_0x10b7b0['element']['name']==_0x42caa2['name']?_0x10b7b0['quantity']++:_0xaca27e['push']({'type':_0x3f8e85+'EmptyContainer','element':_0x42caa2,'quantity':0x1});}else _0xaca27e['push']({'type':_0x3f8e85+'Container','element':_0x36fc54});}}}}}['_resolveDescriptionItems'](_0x1c957b){const _0x1a7c08=this['_locale'],_0x2a568f=[],_0x3fb453=[],_0x4d93fc=[];for(const _0x38cf1e of _0x1c957b)switch(_0x38cf1e['type']){case'text':if(_0x38cf1e['add']=_0x38cf1e['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x38cf1e['remove']=_0x38cf1e['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x38cf1e['add']&&''!=_0x38cf1e['remove']){_0x2a568f['push']({'type':'replace','content':o(_0x1a7c08,'REPLACE_TEXT',['\x22'+_0x38cf1e['remove']+'\x22','\x22'+_0x38cf1e['add']+'\x22'])});continue;}if(null!=_0x38cf1e['add']['match'](/^ +$/)){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['add']['length']))});continue;}if(null!=_0x38cf1e['remove']['match'](/^ +$/)){_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',o(_0x1a7c08,'ELEMENT_SPACE',_0x38cf1e['remove']['length']))});continue;}if(''!=_0x38cf1e['add']){_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0','\x22'+_0x38cf1e['add']+'\x22')});continue;}_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0','\x22'+_0x38cf1e['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Insert:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Remove:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addContainer':_0x2a568f['push']({'type':'insertion','content':o(_0x1a7c08,'*Split:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'removeContainer':_0x2a568f['push']({'type':'deletion','content':o(_0x1a7c08,'*Merge:*\x20%0',this['getItemLabel'](_0x38cf1e['element'],_0x38cf1e['quantity']))});continue;case'addFormat':_0x3fb453['push'](_0x38cf1e['key']);continue;case'removeFormat':_0x4d93fc['push'](_0x38cf1e['key']);continue;default:_0x2a568f['push'](_0x38cf1e);}if(_0x3fb453['length']){const _0x40768d=_0x3fb453['map'](_0x54d4c4=>this['_attributeLabels']['has'](_0x54d4c4)?this['_attributeLabels']['get'](_0x54d4c4):_0x54d4c4)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x40768d)});}if(_0x4d93fc['length']){const _0x2f422d=_0x4d93fc['map'](_0x3cdd63=>this['_attributeLabels']['has'](_0x3cdd63)?this['_attributeLabels']['get'](_0x3cdd63):_0x3cdd63)['join'](',\x20');_0x2a568f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2f422d)});}return _0x2a568f;}['_handleCustomCallbackDescription'](_0x591aaa){for(const _0x41b9f2 of this['_customCallbacks']){const _0x3fd01b=_0x41b9f2(_0x591aaa);if(_0x3fd01b&&'type'in _0x3fd01b)return _0x3fd01b;}}['_handleAttributeSuggestionDescription'](_0x322bdd,_0x44118a){const _0x56d9a1=_0x44118a['data'],_0x1255dd=void 0x0===_0x56d9a1['newValue']?'removeFormat':'addFormat';_0x322bdd['push']({'type':_0x1255dd,'key':_0x56d9a1['key']});}['_handleRenameSuggestionDescription'](_0x1f3403,_0x2575f4){_0x1f3403['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2575f4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x51290d,_0x467629,_0x35cd39){if(this['_addDescriptionItems'](_0x51290d,_0x467629),_0x35cd39&&_0x35cd39['getFirstRange']()&&!_0x467629['getFirstRange']()['end']['isEqual'](_0x35cd39['getFirstRange']()['start'])){const _0x239300=_0x51290d[_0x51290d['length']-0x1],_0x584bb2='insertion'==_0x467629['type']?'add':'remove';_0x239300&&'text'==_0x239300['type']&&(_0x239300[_0x584bb2]+='\x0a');}}}class U extends _0x522036{['afterInit'](){const _0x11e2b8=this['editor'],_0x4b3b4c=_0x11e2b8['plugins']['get']('TrackChangesEditing');_0x11e2b8['commands']['get']('showAIAssistant')&&_0x4b3b4c['enableCommand']('showAIAssistant');}}class V extends _0x522036{['afterInit'](){const _0x581961=this['editor'],_0x4b0c03=_0x581961['locale'];if(!_0x581961['plugins']['has']('AlignmentEditing'))return;const _0x57dd1c=_0x581961['plugins']['get']('TrackChangesEditing');_0x57dd1c['enableDefaultAttributesIntegration']('alignment'),_0x57dd1c['registerBlockAttribute']('alignment'),_0x57dd1c['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4b0c03,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482482=this['editor'],_0x48ff7d=_0x482482['locale'];_0x482482['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4de303=>{if('formatBlock'!=_0x4de303['type'])return;const {data:_0x3ebb7d}=_0x4de303;if(_0x3ebb7d&&'alignment'==_0x3ebb7d['commandName']){const _0x27e580=_0x3ebb7d['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48ff7d,'*Format:*\x20%0',function(_0x592697){switch(_0x592697){case'left':return o(_0x48ff7d,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48ff7d,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48ff7d,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48ff7d,'FORMAT_JUSTIFY_TEXT');}}(_0x27e580))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x522036{['afterInit'](){const _0x3e88cd=this['editor'],_0x1b3f9a=_0x3e88cd['plugins']['get']('TrackChangesEditing'),_0x36a2b1=_0x3e88cd['locale'];for(const _0x5d12cf of Zt){if(!_0x3e88cd['plugins']['has'](_0x5d12cf))continue;const _0x139701=_0x5d12cf['slice'](0x0,-0x7)['toLowerCase'](),_0xe8f36c='FORMAT_'+_0x139701['toUpperCase']();_0x1b3f9a['enableDefaultAttributesIntegration'](_0x139701),_0x1b3f9a['registerInlineAttribute'](_0x139701),_0x1b3f9a['descriptionFactory']['registerAttributeLabel'](_0x139701,o(_0x36a2b1,_0xe8f36c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe0838d=this['editor'],_0xd0b14=_0xe0838d['locale'],_0x4356f7=_0xe0838d['plugins']['get']('TrackChangesEditing');function _0x2d63e4(_0x4b1e8c,_0x36ce13){_0x4356f7['descriptionFactory']['registerDescriptionCallback'](_0x1da0c8=>{if('formatInline'!=_0x1da0c8['type'])return;const {data:_0x575f2c}=_0x1da0c8;return _0x575f2c&&_0x575f2c['commandName']===_0x4b1e8c?_0x575f2c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xd0b14,'*Format:*\x20%0',_0x36ce13)}:{'type':'format','content':o(_0xd0b14,'*Remove\x20format:*\x20%0',_0x36ce13)}:void 0x0;});}_0x2d63e4('bold',o(_0xd0b14,'FORMAT_BOLD')),_0x2d63e4('italic',o(_0xd0b14,'FORMAT_ITALIC')),_0x2d63e4('underline',o(_0xd0b14,'FORMAT_UNDERLINE')),_0x2d63e4('code',o(_0xd0b14,'FORMAT_CODE')),_0x2d63e4('strikethrough',o(_0xd0b14,'FORMAT_STRIKETHROUGH')),_0x2d63e4('subscript',o(_0xd0b14,'FORMAT_SUBSCRIPT')),_0x2d63e4('superscript',o(_0xd0b14,'FORMAT_SUPERSCRIPT'));}}class F extends _0x522036{['afterInit'](){const _0x36a3e0=this['editor'],_0x3dd906=_0x36a3e0['locale'];if(!_0x36a3e0['plugins']['has']('BlockQuoteEditing'))return;const _0x19fe5d=_0x36a3e0['plugins']['get']('TrackChangesEditing'),_0x4abff3=this['editor']['commands']['get']('blockQuote');_0x19fe5d['enableCommand']('blockQuote',(_0x5a5022,_0x5425c6={})=>{const _0x53e800=this['editor']['model']['document']['selection'],_0x5cd5d9=_0x5425c6&&void 0x0!==_0x5425c6['forceValue']?_0x5425c6['forceValue']:!_0x4abff3['value'];let _0xfe5ff6=[];if(_0x5cd5d9){const _0x5bde2f=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x4477cf=>oo(_0x4477cf)||function(_0x1b8eef,_0x364e83){const _0x2fb774=_0x364e83['checkChild'](_0x1b8eef['parent'],'blockQuote'),_0x23b438=_0x364e83['checkChild'](['$root','blockQuote'],_0x1b8eef);return _0x2fb774&&_0x23b438;}(_0x4477cf,this['editor']['model']['schema']));_0xfe5ff6=to(_0x5bde2f,_0x36a3e0['model']);}else{const _0x38cd2b=Array['from'](_0x53e800['getSelectedBlocks']())['filter'](_0x5b85f4=>oo(_0x5b85f4));_0xfe5ff6=to(_0x38cd2b,_0x36a3e0['model']);}_0x36a3e0['model']['change'](()=>{for(const _0x3a284c of _0xfe5ff6)_0x19fe5d['markBlockFormat'](_0x3a284c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5cd5d9}]});});}),_0x19fe5d['descriptionFactory']['registerDescriptionCallback'](_0x501628=>{const {data:_0x49c3f2}=_0x501628;if(_0x49c3f2&&'blockQuote'==_0x49c3f2['commandName']){const _0x168da9=o(_0x3dd906,'ELEMENT_BLOCK_QUOTE');return _0x49c3f2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dd906,'*Set\x20format:*\x20%0',_0x168da9)}:{'type':'format','content':o(_0x3dd906,'*Remove\x20format:*\x20%0',_0x168da9)};}});}}function oo(_0x4ab776){return'blockQuote'==_0x4ab776['parent']['name'];}class L extends _0x522036{['afterInit'](){const _0x236dd0=this['editor'],_0x5a14fe=_0x236dd0['locale'],_0x206832=_0x236dd0['plugins']['get']('TrackChangesEditing');_0x236dd0['plugins']['has']('BookmarkEditing')&&(_0x206832['enableCommand']('insertBookmark'),_0x206832['enableDefaultAttributesIntegration']('updateBookmark'),_0x206832['registerBlockAttribute']('bookmarkId'),_0x206832['descriptionFactory']['registerDescriptionCallback'](_0x1a2b40=>{if('insertion'!=_0x1a2b40['type']&&'deletion'!=_0x1a2b40['type']&&'attribute'!=_0x1a2b40['type'])return;const _0xeb374a=_0x1a2b40['getContainedElement']();if(null==_0xeb374a)return;if(!_0xeb374a['is']('element','bookmark'))return;const _0x324c4e=_0xeb374a['getAttribute']('bookmarkId');if('insertion'==_0x1a2b40['type'])return{'type':'insertion','content':o(_0x5a14fe,'*Insert:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};if('deletion'==_0x1a2b40['type'])return{'type':'deletion','content':o(_0x5a14fe,'*Remove:*\x20%0','\x22'+_0x324c4e+'\x22\x20'+o(_0x5a14fe,'ELEMENT_BOOKMARK'))};const {data:_0x3a0bf4}=_0x1a2b40;if(!_0x3a0bf4||'bookmarkId'!=_0x3a0bf4['key'])return;return{'type':'format','content':o(_0x5a14fe,'*Set\x20bookmark:*\x20%0','\x22'+_0x3a0bf4['newValue']+'\x22')};}));}}class J extends _0x522036{['afterInit'](){const _0x3abdf6=this['editor'];_0x3abdf6['plugins']['has']('CaseChange')&&(_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3abdf6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x522036{['afterInit'](){const _0x10b99a=this['editor'];_0x10b99a['commands']['get']('ckbox')&&_0x10b99a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x522036{['afterInit'](){const _0x4d350e=this['editor'];if(!_0x4d350e['plugins']['has']('CodeBlock'))return;const _0x258632=_0x4d350e['plugins']['get']('TrackChangesEditing'),_0x19cabc=_0x4d350e['locale'],_0x13019a=_0x4d350e['config']['get']('codeBlock')['languages'],_0x3fd3fa=_0x4d350e['commands']['get']('codeBlock');_0x258632['enableCommand']('indentCodeBlock'),_0x258632['enableCommand']('outdentCodeBlock'),_0x258632['enableCommand']('codeBlock',(_0x3ea5f0,_0x1e70ad={})=>{const _0x3f3193=_0x4d350e['model'],_0x3a7613=_0x4d350e['model']['document']['selection'],_0x1cbbc0=_0x1e70ad&&void 0x0!==_0x1e70ad['forceValue']?_0x1e70ad['forceValue']:!_0x3fd3fa['value'];let _0x318a17;_0x1e70ad['language']||(_0x1e70ad['language']=_0x13019a[0x0]['language']),_0x318a17=_0x1cbbc0?Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x53975c=>eo(_0x53975c)||function(_0x2a5266,_0x3d8902){if(_0x2a5266['is']('rootElement')||_0x3d8902['isLimit'](_0x2a5266))return!0x1;return _0x3d8902['checkChild'](_0x2a5266['parent'],'codeBlock');}(_0x53975c,_0x3f3193['schema'])):Array['from'](_0x3a7613['getSelectedBlocks']())['filter'](_0x4a5aa8=>eo(_0x4a5aa8));const _0x5caaed=to(_0x318a17,_0x3f3193);_0x3f3193['change'](()=>{for(const _0x7c0cd6 of _0x5caaed)_0x258632['markBlockFormat'](_0x7c0cd6,{'commandName':'codeBlock','commandParams':[{..._0x1e70ad,'forceValue':_0x1cbbc0}],'formatGroupId':'blockName'});});}),(_0x258632['descriptionFactory']['registerElementLabel']('codeBlock',_0x2cfaeb=>o(_0x19cabc,'ELEMENT_CODE_BLOCK',_0x2cfaeb)),_0x258632['descriptionFactory']['registerDescriptionCallback'](_0x4201b3=>{if('formatBlock'!=_0x4201b3['type'])return;const _0x10aa89=_0x19cabc['t'],{data:_0x521039}=_0x4201b3;if(!_0x521039||'codeBlock'!=_0x521039['commandName'])return;const _0x57f7d7=_0x521039['commandParams'][0x0]['language'],_0x25ac62=_0x10aa89(_0x13019a['find'](_0x50fe21=>_0x50fe21['language']===_0x57f7d7)['label'])['toLowerCase']();return _0x521039['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19cabc,'*Set\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x25ac62+')')}:{'type':'format','content':o(_0x19cabc,'*Remove\x20format:*\x20%0',o(_0x19cabc,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x26312c){return'codeBlock'==_0x26312c['name'];}class z extends _0x522036{['afterInit'](){const _0x13f586=this['editor'];if(!_0x13f586['plugins']['has']('CommentsEditing'))return;_0x13f586['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x325ba5,_0x35c1cd,_0x5926b2){const _0x4e0e4c=[];for(const _0x309c1e of _0x35c1cd['getItems']())_0x309c1e['hasAttribute'](_0x325ba5)&&_0x4e0e4c['push'](_0x5926b2['createRangeOn'](_0x309c1e));return _0x4e0e4c;}function Ne(_0x180f1d,_0x42a8d2,{showActiveMarker:_0x4e97d7=!0x0}={}){const _0x2e907c=_0x180f1d['plugins']['get']('TrackChangesEditing');return(_0xa0d2a1,_0x233679,_0x3fdc8e)=>{if(!_0x3fdc8e['consumable']['test'](_0x233679['markerRange'],_0xa0d2a1['name']))return;const _0xb3aa32=_0x233679['markerRange']['getWalker'](),_0x4bd259=_0x233679['markerRange']['start'],_0x26110b=_0x180f1d['model']['schema'];let _0x5e4eaf=null,_0x58c75e=null,_0x1b15ed=!0x1,_0x593857=!0x1;for(const _0x1ff5db of _0xb3aa32){const _0x461d26=_0x1ff5db['item'];_0x1b15ed=_0x1b15ed||_0x26110b['isContent'](_0x461d26);const _0x246b21=_0x3fdc8e['mapper']['toViewElement'](_0x461d26);if(_0x246b21&&_0x246b21['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ff5db['type']&&(_0x26110b['isBlock'](_0x461d26)&&!_0x26110b['isLimit'](_0x461d26)&&(_0x461d26['nextSibling']||_0x4bd259['isAtEnd']?_0x5e4eaf&&_0x5e4eaf['parent']==_0x461d26||(_0x5e4eaf=_0x461d26,_0x53568d(_0x1ff5db['previousPosition']),_0x593857=!0x0):_0x58c75e=_0x58c75e||_0x1ff5db['previousPosition']));}function _0x53568d(_0x19bd76){const {authorId:_0x384eed}=_0x2e907c['_splitMarkerName'](_0x233679['markerName']),_0x30af1f=_0x3fdc8e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42a8d2,'data-author-id':_0x384eed}),_0x33b3c0=_0x3fdc8e['mapper']['toViewPosition'](_0x19bd76);_0x4e97d7&&_0x2e907c['activeMarkers']['includes'](_0x233679['markerName'])&&_0x3fdc8e['writer']['addClass']('ck-suggestion-marker--active',_0x30af1f),_0x3fdc8e['writer']['insert'](_0x33b3c0,_0x30af1f),_0x3fdc8e['mapper']['bindElementToMarker'](_0x30af1f,_0x233679['markerName']);}_0x1b15ed||_0x593857||!_0x58c75e||_0x53568d(_0x58c75e);};}class K extends _0x522036{static get['requires'](){return[_0x14b539];}['init'](){const _0xe3d267=this['editor'],_0xf2b541=_0xe3d267['plugins']['get']('TrackChangesEditing');_0xf2b541['enableCommand']('delete');const _0x496ef3=_0xe3d267['commands']['get']('deleteForward');_0xf2b541['enableCommand']('deleteForward',(_0x2ee9d9,_0x4b852f={})=>{const _0x398506=_0xe3d267['model']['createSelection'](_0xe3d267['model']['document']['selection']);_0x398506['isCollapsed']&&_0xe3d267['model']['modifySelection'](_0x398506,{'direction':'forward','unit':_0x4b852f['unit']});const _0x31743b=_0x398506['getFirstRange'](),_0x3e1c4a=_0x582953['fromRange'](_0x31743b);let _0x3869ca;_0x2ee9d9(_0x4b852f),_0x3869ca='$graveyard'==_0x3e1c4a['root']['rootName']?_0xe3d267['model']['createRange'](_0x31743b['start']):_0xe3d267['model']['createRange'](_0x3e1c4a['start'],_0x3e1c4a['end']),_0x3e1c4a['detach'](),_0xe3d267['model']['enqueueChange'](_0x496ef3['buffer']['batch'],_0x244480=>{_0x496ef3['buffer']['lock'](),_0x244480['setSelection'](_0x244480['createRange'](_0x3869ca['end'])),_0x496ef3['buffer']['unlock']();});}),_0xe3d267['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xe3d267,'merge'),{'priority':'high'}),_0xe3d267['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3ad258,_0x18e8c6,_0x511ddf)=>{_0x511ddf['options']['showSuggestionHighlights']&&Ne(_0xe3d267,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3ad258,_0x18e8c6,_0x511ddf);},{'priority':'high'}),_0xe3d267['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4c215f,_0x169e5e,_0x2b8c74)=>{const _0x193460=_0x2b8c74['mapper']['markerNameToElements'](_0x169e5e['markerName']);if(_0x193460){for(const _0x582d15 of _0x193460)_0x582d15['is']('uiElement')&&(_0x2b8c74['mapper']['unbindElementFromMarkerName'](_0x582d15,_0x169e5e['markerName']),_0x2b8c74['writer']['remove'](_0x582d15));}},{'priority':'high'});}}class W extends _0x522036{['afterInit'](){const _0x1a30f3=this['editor'];if(!_0x1a30f3['plugins']['has']('ListEditing'))return;const _0x158422=_0x1a30f3['locale'],_0x31a92e=_0x1a30f3['plugins']['get']('TrackChangesEditing'),_0x4bc614=_0x1a30f3['plugins']['has']('TodoListEditing'),_0x5ad645=!!_0x1a30f3['config']['get']('list.multiBlock');function _0xa26b1e(_0x3321ae){return{'type':'format','content':''+o(_0x158422,'*Set\x20format:*\x20%0',_0x3321ae)};}function _0x19772e(_0x512bf5){return{'type':'format','content':''+o(_0x158422,'*Remove\x20format:*\x20%0',_0x512bf5)};}_0x31a92e['enableDefaultAttributesIntegration']('numberedList'),_0x31a92e['enableDefaultAttributesIntegration']('bulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('customNumberedList'),_0x31a92e['enableDefaultAttributesIntegration']('customBulletedList'),_0x31a92e['enableDefaultAttributesIntegration']('indentList'),_0x31a92e['enableDefaultAttributesIntegration']('outdentList'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x31a92e['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x31a92e['registerBlockAttribute']('listItemId'),_0x31a92e['registerBlockAttribute']('listType'),_0x31a92e['registerBlockAttribute']('listIndent'),_0x5ad645&&(_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x31a92e['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4bc614&&(_0x31a92e['enableDefaultAttributesIntegration']('todoList'),_0x31a92e['enableDefaultAttributesIntegration']('checkTodoList'),_0x31a92e['registerBlockAttribute']('todoListChecked'),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x508f3e=>{const {data:_0x582945}=_0x508f3e;if(_0x582945&&'todoListChecked'==_0x582945['key'])return{'type':'format','content':_0x582945['newValue']?o(_0x158422,'*Check\x20item*'):o(_0x158422,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x590db5=>{if(_0x590db5['batch']['isUndo'])return!0x1;let _0x3c21b1=!0x1;const _0x56b74c=_0x31a92e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ea3b4=>'todoListChecked'===_0x31a92e['_getAttributeKey'](_0x3ea3b4));for(const _0x2b98cb of _0x56b74c){'todo'!=_0x2b98cb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x31a92e['_findSuggestions'](_0x2b98cb['getFirstRange'](),'attribute')['find'](_0x513293=>'listType'===_0x31a92e['_getAttributeKey'](_0x513293['suggestion']))||(_0x590db5['removeMarker'](_0x2b98cb['getFirstMarker']()),_0x3c21b1=!0x0));}return _0x3c21b1;})),_0x31a92e['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x158422,'FORMAT_INDENT'));const _0x4e5098={'type':'format','content':''};_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x56d127=>{const {data:_0x52e170}=_0x56d127;if(!_0x52e170||'listType'!=_0x52e170['key'])return;let _0x57ef55=_0x56d127['head'];for(;_0x57ef55;){if(_0x57ef55['data']&&(('listStyle'==_0x57ef55['data']['key']||'listMarkerStyle'==_0x57ef55['data']['key'])&&(_0x57ef55['data']['newValue']&&'default'!=_0x57ef55['data']['newValue']||'default'!=_0x57ef55['data']['oldValue']&&!_0x52e170['newValue'])||!_0x5ad645&&_0x57ef55['data']['key']==m))return _0x4e5098;_0x57ef55=_0x57ef55['next'];}if(null==_0x52e170['newValue'])switch(_0x52e170['oldValue']){case'bulleted':return _0x19772e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19772e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19772e(o(_0x158422,'ELEMENT_TODO_LIST'));}switch(_0x52e170['newValue']){case'bulleted':return _0xa26b1e(o(_0x158422,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xa26b1e(o(_0x158422,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xa26b1e(o(_0x158422,'ELEMENT_TODO_LIST'));}}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x2492ab=>{const {data:_0x23932b}=_0x2492ab;if(_0x23932b&&'listIndent'==_0x23932b['key'])return null==_0x23932b['newValue']||null==_0x23932b['oldValue']&&0x0==_0x23932b['newValue']?_0x4e5098:void 0x0;}),_0x31a92e['descriptionFactory']['registerDescriptionCallback'](_0x9e8c0d=>{if('attribute'!=_0x9e8c0d['type'])return;const {data:_0x17b08f}=_0x9e8c0d;if(!_0x17b08f||'listItemId'!=_0x17b08f['key'])return;const _0x8d400b=Te(_0x9e8c0d);return'newValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Merge:*\x20list\x20item')}:'oldValue'==_0x8d400b?{'type':'format','content':o(_0x158422,'*Split:*\x20list\x20item')}:_0x4e5098;}),_0x1a30f3['model']['document']['registerPostFixer'](_0x37f73a=>this['listItemIdFixer'](_0x37f73a)),_0x1a30f3['model']['document']['registerPostFixer'](_0x101984=>this['noTrackChangesFixer'](_0x101984)),_0x1a30f3['model']['document']['on']('change:data',(_0x2e17c4,_0x22a03b)=>{if(_0x22a03b['isUndo']||!_0x22a03b['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x3b7127){if(_0x3b7127['batch']['isUndo']||!_0x3b7127['batch']['isLocal'])return!0x1;let _0x20281d=!0x1;const _0x2b652f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1325e8=>_0x1325e8['data']&&'listItemId'==_0x1325e8['data']['key'])['filter'](_0x7c9d64=>_0x7c9d64['data']['newValue']&&_0x7c9d64['data']['oldValue']);for(const _0x4bb462 of _0x2b652f)Te(_0x4bb462)||(_0x3b7127['removeMarker'](_0x4bb462['getFirstMarker']()),_0x20281d=!0x0);return _0x20281d;}['noTrackChangesFixer'](_0x2e1899){if(_0x2e1899['batch']['isUndo']||!_0x2e1899['batch']['isLocal'])return!0x1;const _0x6af2f2=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6af2f2['trackChangesCommand']['value'])return!0x1;let _0x3bd6f8=!0x1;const _0x328fb0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x46295d=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x34da2c=>'attribute'==_0x34da2c['type'])['filter'](_0x32a916=>_0x328fb0['includes'](_0x32a916['attributeKey']));if(0x0==_0x46295d['length'])return _0x3bd6f8;for(const _0x18fe56 of _0x46295d){const _0x285287=_0x6af2f2['_findSuggestions'](_0x18fe56['range'],'attribute')['filter'](_0x511a52=>!_0x511a52['meta']['isNextTo'])['map'](_0x3ff4b3=>_0x3ff4b3['suggestion'])['filter'](_0xb3bffe=>{const _0x37e1cd=_0x6af2f2['_getAttributeKey'](_0xb3bffe);return _0x328fb0['includes'](_0x37e1cd);});if(_0x285287['length']){for(const _0x290c31 of _0x285287)_0x2e1899['removeMarker'](_0x290c31['getFirstMarker']());_0x3bd6f8=!0x0;}}return _0x3bd6f8;}['assureChains'](){const _0xb3266a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c714a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x95cfba;const _0x981665=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5425d2=>{if(_0x5425d2['data']['oldRange']||!_0x5425d2['data']['newRange'])return null;if(!_0x5425d2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x479b39}=_0xb3266a['_splitMarkerName'](_0x5425d2['name']);if(!_0xb3266a['hasSuggestion'](_0x479b39))return null;const _0x62fcc1=_0xb3266a['getSuggestion'](_0x479b39);return _0x5c714a['includes'](_0x62fcc1['data']['key']);})['map'](_0x2dea50=>{const {id:_0x439506}=_0xb3266a['_splitMarkerName'](_0x2dea50['name']),_0x28e183=_0xb3266a['getSuggestion'](_0x439506);return _0x95cfba=_0x28e183['attributes']['groupId'],_0x28e183['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x981665['size'])return;const _0x1e3fe4=_0xb3266a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x20d898=>'attribute'==_0x20d898['type']&&_0x20d898['data']&&_0x5c714a['includes'](_0x20d898['data']['key'])&&_0x20d898['attributes']['groupId']!=_0x95cfba)['map'](_0x4fdfff=>({'listItem':_0x4fdfff['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4fdfff['attributes']['groupId']})),_0x51b1a7=new Set();for(const {groupId:_0x1cd4e6,listItem:_0x271a54}of _0x1e3fe4)_0x981665['has'](_0x271a54)&&_0x51b1a7['add'](_0x1cd4e6);for(const _0x1c5d6c of _0xb3266a['getSuggestions']())_0x51b1a7['has'](_0x1c5d6c['attributes']['groupId'])&&_0x1c5d6c['setAttribute']('groupId',_0x95cfba);}['_supportLegacySuggestions'](){const _0x369f65=this['editor'],_0x103b0a=_0x369f65['locale'],_0x3f41ca=_0x369f65['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3f41ca['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x5010f8,_0x36e85f){const _0x51dc28=[];for(let _0x538cb8 of _0x5010f8)_0x538cb8['start']['nodeAfter']===_0x538cb8['end']['parent']&&(_0x538cb8=_0x369f65['model']['createRange'](_0x369f65['model']['createPositionAt'](_0x538cb8['start']['nodeAfter'],0x0))),_0x51dc28['push'](_0x538cb8);_0x369f65['model']['change'](_0xcd42d1=>{const _0x58c20f=_0x369f65['model']['document']['selection'],_0x585bb3=Array['from'](_0x58c20f['getRanges']())['map'](_0xf67031=>_0x582953['fromRange'](_0xf67031));_0xcd42d1['setSelection'](_0x51dc28),_0x369f65['commands']['get'](_0x36e85f['commandName'])['refresh'](),_0x36e85f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x369f65['execute'](_0x36e85f['commandName'],..._0x36e85f['commandParams']),_0xcd42d1['setSelection'](_0x585bb3);for(const _0x2ea6da of _0x585bb3)_0x2ea6da['detach']();});}),_0x3f41ca['descriptionFactory']['registerElementLabel'](function(_0x213f9e){const _0x233671=!_0x369f65['model']['schema']['isObject'](_0x213f9e),_0x3f415f=_0x213f9e['previousSibling'],_0x36d375=_0x213f9e['nextSibling'],_0x53f806=_0x213f9e['getAttribute']('listItemId'),_0x155e30=!_0x3f415f||_0x3f415f['getAttribute']('listItemId')!==_0x53f806,_0x1a1a31=!_0x36d375||_0x36d375['getAttribute']('listItemId')!==_0x53f806;return _0x233671&&Boolean(_0x53f806)&&_0x155e30&&_0x1a1a31;},_0x2adb68=>o(_0x103b0a,'ELEMENT_LIST_ITEM',_0x2adb68));}['_registerLegacyDescription'](){const _0x578685=this['editor'],_0x4775f4=_0x578685['locale'];function _0x8cade2(_0x2a8588){const _0x855f14=_0x578685['commands']['get']('bulletedList')['value'],_0x1eae19=_0x578685['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a8588?_0x855f14:_0x1eae19;}_0x578685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3e9985){if('formatBlock'!=_0x3e9985['type'])return;const {data:_0xfa6703}=_0x3e9985;if(!_0xfa6703)return;let _0x3b9175,_0x57904c,_0x909988,_0xfe3a80;switch(_0xfa6703['commandName']){case'bulletedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x909988=_0xfa6703['commandParams'][0x0]['forceValue'],_0xfe3a80=_0x8cade2(_0xfa6703['commandName']),_0x3b9175=_0x909988?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xfe3a80&&_0x578685['config']['get']('list.multiBlock')||(_0x3b9175='*Change\x20to:*\x20%0'),_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3b9175='*Indent:*\x20%0',_0x57904c={'type':'format','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3b9175=function(_0xdb6d59){const _0x430b35=_0xdb6d59['getFirstRange']();let _0x37680c=_0x430b35['start']['nodeAfter'];for(;_0x37680c&&_0x430b35['containsItem'](_0x37680c);){if(_0x37680c['getAttribute']('listIndent')>0x0)return!0x1;_0x37680c=_0x37680c['nextSibling'];}return!0x0;}(_0x3e9985)?o(_0x4775f4,'*Format:*\x20remove\x20from\x20%0',o(_0x4775f4,function(_0x22407d){return'ELEMENT_'+_0x22407d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3e9985))):o(_0x4775f4,'*Outdent:*\x20%0',o(_0x4775f4,'ELEMENT_LIST_ITEM')),_0x57904c={'type':'format','content':_0x3b9175};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xfa6703['multipleBlocks']&&(_0x3b9175='*Merge:*\x20%0',_0x57904c={'type':'deletion','content':o(_0x4775f4,_0x3b9175,o(_0x4775f4,'ELEMENT_LIST_ITEM'))});}return _0x57904c;});}}function Te(_0x1a1343){let _0x5da567=_0x1a1343['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5da567;){const _0x3791ea=_0x5da567['getAttribute']('listItemId');if(!_0x3791ea)return!0x1;if(_0x3791ea==_0x1a1343['data']['newValue'])return'newValue';if(_0x3791ea==_0x1a1343['data']['oldValue'])return'oldValue';_0x5da567=_0x5da567['previousSibling'];}return!0x1;}class ye extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x76e053=this['editor']['config']['get']('list.properties'),_0x2992fb=this['editor']['plugins']['get']('TrackChangesEditing');_0x76e053['styles']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStyle'),_0x2992fb['registerBlockAttribute']('listStyle')),_0x76e053['reversed']&&(_0x2992fb['enableDefaultAttributesIntegration']('listReversed'),_0x2992fb['registerBlockAttribute']('listReversed')),_0x76e053['startIndex']&&(_0x2992fb['enableDefaultAttributesIntegration']('listStart'),_0x2992fb['registerBlockAttribute']('listStart'));const _0xaedc39={'type':'format','content':''};_0x2992fb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x22e5f8=this['editor']['locale'];_0x2992fb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x22e5f8,'FORMAT_LIST_REVERSED')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12f0fd=>{const {data:_0x17786b}=_0x12f0fd;if(_0x17786b&&'listReversed'==_0x17786b['key'])return null==_0x17786b['newValue']||0x0==_0x17786b['newValue']&&null==_0x17786b['oldValue']?_0xaedc39:void 0x0;}),_0x2992fb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x22e5f8,'FORMAT_LIST_START')),_0x2992fb['descriptionFactory']['registerDescriptionCallback'](_0x12283d=>{const {data:_0x501ae0}=_0x12283d;if(_0x501ae0&&'listStart'==_0x501ae0['key'])return null==_0x501ae0['newValue']||0x1==_0x501ae0['newValue']&&null==_0x501ae0['oldValue']?_0xaedc39:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x242f42=>{if(_0x242f42['batch']['isUndo'])return!0x1;let _0x15435b=!0x1;const _0x39e093=_0x2992fb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21975e=>{const _0x5ab895=_0x2992fb['_getAttributeKey'](_0x21975e);return'listStart'==_0x5ab895||'listReversed'==_0x5ab895;});for(const _0x4c9aa1 of _0x39e093){const _0x36c061=_0x4c9aa1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x36c061||'customNumbered'==_0x36c061)continue;_0x2992fb['_findSuggestions'](_0x4c9aa1['getFirstRange'](),'attribute')['find'](_0x316e30=>'listType'==_0x2992fb['_getAttributeKey'](_0x316e30['suggestion']))||(_0x242f42['removeMarker'](_0x4c9aa1['getFirstMarker']()),_0x15435b=!0x0);}return _0x15435b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x58a865){const _0x3e9cbd=this['editor']['locale'],{data:_0x2f9213}=_0x58a865,_0x49997a={'type':'format','content':''};if(!_0x2f9213||'listStyle'!=_0x2f9213['key'])return;if(!_0x2f9213['oldValue'])return'default'==_0x2f9213['newValue']?_0x49997a:{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};if(!_0x2f9213['newValue']){if('default'==_0x2f9213['oldValue'])return _0x49997a;let _0x3f3214=_0x58a865['head'];for(;_0x3f3214;){if(_0x3f3214['data']&&'listType'==_0x3f3214['data']['key']&&_0x3f3214['data']['newValue'])return _0x49997a;_0x3f3214=_0x3f3214['next'];}return{'type':'format','content':''+o(_0x3e9cbd,'*Remove\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['oldValue'])))};}if('default'!=_0x2f9213['newValue'])return{'type':'format','content':''+o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,this['_getTranslationKeyForListStyle'](_0x2f9213['newValue'])))};let _0x134daf=_0x58a865['head'];for(;_0x134daf;){if(_0x134daf['data']&&'listType'==_0x134daf['data']['key']&&_0x134daf['data']['newValue']&&_0x134daf['data']['oldValue'])return _0x49997a;_0x134daf=_0x134daf['next'];}return{'type':'format','content':o(_0x3e9cbd,'*Set\x20format:*\x20%0',o(_0x3e9cbd,'ELEMENT_'+_0x58a865['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x548f4e=this['editor'],_0x2eaebe=_0x548f4e['locale'];_0x548f4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x535bf0=>{if('formatBlock'!=_0x535bf0['type'])return;const {data:_0x3d8cc8}=_0x535bf0;if(!_0x3d8cc8)return;let _0x4d0491,_0x147656;switch(_0x3d8cc8['commandName']){case'listStyle':_0x4d0491='*Change\x20to:*\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,o(_0x2eaebe,this['_getTranslationKeyForListStyle'](_0x3d8cc8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4d0491=_0x3d8cc8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491)};break;case'listStart':_0x4d0491='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x147656={'type':'format','content':o(_0x2eaebe,_0x4d0491,_0x3d8cc8['commandParams'][0x0]['startIndex'])};}return _0x147656;});}['_getTranslationKeyForListStyle'](_0x39cb85){return'ELEMENT_'+function(_0x1eb685){if(Se['includes'](_0x1eb685))return'bulleted';if(_e['includes'](_0x1eb685))return'numbered';return null;}(_0x39cb85)['toUpperCase']()+'_LIST_'+_0x39cb85['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x522036{static get['requires'](){return[_0x58ae15];}['init'](){const _0x1b64ca=this['editor'],_0x51f395=_0x1b64ca['plugins']['get']('TrackChangesEditing'),_0x42f6ca=_0x1b64ca['commands']['get']('enter');_0x51f395['enableCommand']('enter',()=>{_0x1b64ca['model']['change'](_0x398a88=>{const _0x548cbd=_0x1b64ca['model']['document']['selection'],_0x284a60=_0x548cbd['getFirstPosition'](),_0x4d3b0c=_0x582953['fromRange'](_0x548cbd['getFirstRange']());if(_0x42f6ca['enterBlock'](_0x398a88)){const _0x207d88=_0x1b64ca['model']['createPositionAt'](_0x284a60['parent']['nextSibling'],0x0),_0x15a558=_0x398a88['createRange'](_0x284a60,_0x207d88);_0x51f395['markInsertion'](_0x15a558);}else _0x398a88['setSelection'](_0x398a88['createRange'](_0x4d3b0c['end']));_0x4d3b0c['detach'](),_0x42f6ca['fire']('afterExecute',{'writer':_0x398a88});});}),_0x1b64ca['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x1b64ca,'split'),{'priority':'high'}),_0x1b64ca['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3b307c,_0x457e46,_0x4131da)=>{const _0x125112=_0x4131da['mapper']['markerNameToElements'](_0x457e46['markerName']);if(_0x125112){for(const _0x28d29b of _0x125112)_0x28d29b['hasClass']('ck-suggestion-marker-split')&&(_0x4131da['mapper']['unbindElementFromMarkerName'](_0x28d29b,_0x457e46['markerName']),_0x4131da['writer']['remove'](_0x28d29b));}},{'priority':'high'}),_0x1b64ca['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x475647,_0x45de3b,_0x5cc718)=>{_0x5cc718['options']['showSuggestionHighlights']&&Ne(_0x1b64ca,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x475647,_0x45de3b,_0x5cc718);},{'priority':'high'});}}class Y extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f94e2=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f94e2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f94e2['enableCommand']('findNext'),_0x1f94e2['enableCommand']('findPrevious'),_0x1f94e2['enableCommand']('replace'),_0x1f94e2['enableCommand']('replaceAll');}['handleFindCommand'](_0x1f548c,_0x552b7d,_0x684904={}){const _0x1dd3b6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1f548c(_0x485941=>{let _0x594b91=('string'==typeof _0x552b7d?_0x1dd3b6['findByTextCallback'](_0x552b7d,_0x684904):_0x552b7d)(_0x485941);Array['isArray'](_0x594b91)&&(_0x594b91={'results':_0x594b91,'searchText':'string'==typeof _0x552b7d?_0x552b7d:''});const _0x32945d=_0x594b91['results']['filter'](_0x2d7e14=>!0x1===this['_isInDeletionRange'](_0x2d7e14,_0x485941['item']));return{..._0x594b91,'results':_0x32945d};},_0x684904);}['_isInDeletionRange'](_0x21e912,_0x311da7){const _0x5224b7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['start']),this['editor']['model']['createPositionAt'](_0x311da7,_0x21e912['end']));for(const _0x40ad33 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5224b7['getIntersection'](_0x40ad33['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 _0x522036{['afterInit'](){const _0x754756=this['editor']['locale'],_0x3f600e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x477ad4,commandName:_0x3745dc}of ro)this['editor']['plugins']['has'](_0x477ad4)&&(_0x3f600e['enableDefaultAttributesIntegration'](_0x3745dc),_0x3f600e['registerInlineAttribute'](_0x3745dc));_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x754756,'FORMAT_FONT_SIZE')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x754756,'FORMAT_FONT_FAMILY')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x754756,'FORMAT_FONT_COLOR')),_0x3f600e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x754756,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa576=this['editor'],_0x5ba74c=_0x1aa576['locale'];_0x1aa576['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cb26b=>{const _0x2110a6=_0x5ba74c['t'];if('formatInline'!=_0x3cb26b['type'])return;const {data:_0x27e4bb}=_0x3cb26b;if(null!=_0x27e4bb){if('fontSize'==_0x27e4bb['commandName']){const _0xc0a7d=_0x27e4bb['commandParams'][0x0]['value'];if(_0xc0a7d){const _0x4cfe0a=_0x2110a6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4e3484=>_0x4e3484['model']==_0xc0a7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20size:*\x20%0',_0x4cfe0a)};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27e4bb['commandName']){const _0x5bbdcb=_0x27e4bb['commandParams'][0x0]['value'];return _0x5bbdcb?{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20family:*\x20%0',_0x5bbdcb)}:{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27e4bb['commandName']){const _0xe874c1=_0x27e4bb['commandParams'][0x0]['value'];if(_0xe874c1){const _0x381037=_0x26d584(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e00e0=>_0x3e00e0['model']==_0xe874c1);let _0x2f2844=_0xe874c1,_0x4fcaea='';return _0x381037&&(_0x2f2844=_0x381037['label'],_0x4fcaea=_0x2110a6(_0x2f2844)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20color:*\x20%0',_0x4fcaea)['trim'](),'color':{'value':_0xe874c1,'title':_0x4fcaea||_0x2f2844}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27e4bb['commandName']){const _0x117039=_0x27e4bb['commandParams'][0x0]['value'];if(_0x117039){const _0x2497c8=_0x26d584(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x316ce5=>_0x316ce5['model']==_0x117039);let _0x18df4d=_0x117039,_0x373667='';return _0x2497c8&&(_0x18df4d=_0x2497c8['label'],_0x373667=_0x2110a6(_0x18df4d)['toLowerCase']()),{'type':'format','content':o(_0x5ba74c,'*Set\x20font\x20background\x20color:*\x20%0',_0x373667)['trim'](),'color':{'value':_0x117039,'title':_0x373667||_0x18df4d}};}return{'type':'format','content':o(_0x5ba74c,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x522036{['afterInit'](){const _0xc6d8ad=this['editor'],_0xc6ec17=_0xc6d8ad['plugins']['get']('TrackChangesEditing'),_0x156e3d=_0xc6d8ad['commands']['get']('copyFormat'),_0x2df0fb=_0xc6d8ad['commands']['get']('pasteFormat');_0x156e3d&&_0x2df0fb&&(_0xc6ec17['enableDefaultAttributesIntegration']('pasteFormat'),_0xc6ec17['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f23da=this['editor'],_0x95e7fb=_0x3f23da['locale'];_0x3f23da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x350fe7=>{if('formatBlock'!=_0x350fe7['type']&&'formatInline'!=_0x350fe7['type'])return;const {data:_0x2381f5}=_0x350fe7;if(_0x2381f5&&'pasteFormat'===_0x2381f5['commandName']){const _0x5d1104=[],_0x331548=_0x2381f5['commandParams'][0x0];for(const [_0x188177,_0x598465]of Object['entries'](_0x331548))_0x5d1104['push'](so(_0x3f23da,_0x188177,_0x598465));return _0x5d1104['length']?{'type':'format','content':o(_0x95e7fb,'*Set\x20format\x20to:*\x20%0',_0x5d1104['join'](',\x20'))}:{'type':'format','content':o(_0x95e7fb,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5751e9,_0x3c956f,_0x4498d0){const _0x4b9ee9=_0x5751e9['locale']['t'],_0xe4b3c=_0x3c956f['split'](/(?=[A-Z])/)['join']('\x20'),_0x27ad9b=_0x4b9ee9(_0xe4b3c['charAt'](0x0)['toUpperCase']()+_0xe4b3c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x4498d0)return _0x27ad9b;if('fontColor'===_0x3c956f||'fontBackgroundColor'===_0x3c956f){const _0x29cba3=_0x26d584(_0x5751e9['config']['get']('fontColor.colors'))['find'](_0x49ad6f=>_0x49ad6f['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x29cba3?_0x4b9ee9(_0x29cba3['label'])['toLowerCase']():_0x4498d0)+')';}if('fontSize'===_0x3c956f&&isNaN(parseFloat(_0x4498d0))){const _0x3a7f4b=_0x5751e9['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5751e9['config']['get']('fontSize.options'))['find'](_0x186b68=>_0x186b68['model']==_0x4498d0);return _0x27ad9b+'\x20('+(_0x3a7f4b?_0x4b9ee9(_0x3a7f4b['title'])['toLowerCase']():_0x4498d0)+')';}return _0x27ad9b+'\x20('+_0x4498d0+')';}class nt extends _0x522036{['_headingOptions'];['afterInit'](){const _0x15e544=this['editor'];if(!_0x15e544['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x15e544['config']['get']('heading.options');const _0x1f51a5=_0x15e544['locale'],_0x3676c8=_0x15e544['plugins']['get']('TrackChangesEditing');_0x3676c8['enableDefaultAttributesIntegration']('heading');for(const _0x5d2778 of this['_headingOptions'])'paragraph'!=_0x5d2778['model']&&_0x3676c8['descriptionFactory']['registerElementLabel'](_0x5d2778['model'],_0x8d8c49=>{const _0x49a465=this['_getHeadingLevel'](_0x5d2778['model']);return null!==_0x49a465?_0x37059b(_0x8d8c49,_0x49a465):_0x561793(_0x8d8c49,_0x5d2778['title']);});function _0x37059b(_0x1ae8ec,_0x31bfd3){return o(_0x1f51a5,'ELEMENT_HEADING',[_0x1ae8ec,_0x31bfd3]);}function _0x561793(_0x1a6f56,_0x18c113){return o(_0x1f51a5,'ELEMENT_HEADING_CUSTOM',[_0x1a6f56,_0x18c113]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cd1d1=this['editor'],_0x41009f=_0x5cd1d1['locale'];function _0x1dac4f(_0x43442c,_0x420bd2){return o(_0x41009f,'ELEMENT_HEADING_CUSTOM',[_0x43442c,_0x420bd2]);}_0x5cd1d1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150204=>{if('formatBlock'!=_0x150204['type'])return;const {data:_0x19c8d3}=_0x150204;if(_0x19c8d3&&'heading'==_0x19c8d3['commandName']){const _0x105389=_0x19c8d3['commandParams'][0x0]['value'],_0x21dc74=this['_getHeadingLevel'](_0x105389);if(null!==_0x21dc74)return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',(_0x235ad8=0x1,_0x26503d=_0x21dc74,o(_0x41009f,'ELEMENT_HEADING',[_0x235ad8,_0x26503d])))};const _0x7b74ce=this['_headingOptions']['find'](_0x173ade=>_0x173ade['model']===_0x105389)['title'];return{'type':'format','content':o(_0x41009f,'*Change\x20to:*\x20%0',_0x1dac4f(0x1,_0x7b74ce))};}var _0x235ad8,_0x26503d;});}['_getHeadingLevel'](_0x3dad53){const _0x138bff=_0x3dad53['match'](/^heading(\d+)/);if(_0x138bff)return _0x138bff[0x1];const _0x508add=this['_headingOptions']?.['find'](_0x5a406=>_0x5a406['model']==_0x3dad53);if(_0x508add&&_0x508add['view']){const _0x1801f2=_0x508add['view'],_0x4dd651=(_0x1801f2['name']??_0x1801f2)['match'](/^h(\d+)/);if(_0x4dd651)return _0x4dd651[0x1];}return null;}}class it extends _0x522036{['afterInit'](){const _0xf9a452=this['editor'];if(!_0xf9a452['plugins']['has']('HighlightEditing'))return;const _0x2ba7d6=_0xf9a452['plugins']['get']('TrackChangesEditing'),_0x116411=_0xf9a452['locale'];_0x2ba7d6['enableDefaultAttributesIntegration']('highlight'),_0x2ba7d6['registerInlineAttribute']('highlight'),_0x2ba7d6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x116411,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c3644=this['editor'],_0x2cfd00=_0x5c3644['locale'];_0x5c3644['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aab71=>{if('formatInline'!=_0x1aab71['type'])return;const {data:_0x2e21e7}=_0x1aab71;if(_0x2e21e7&&'highlight'==_0x2e21e7['commandName']){const _0x829c77=_0x2cfd00['t'],_0x1128c4=_0x2e21e7['commandParams'][0x0]['value'];if(_0x1128c4){const _0x1e69c7=_0x5c3644['config']['get']('highlight.options')['find'](_0x14737f=>_0x14737f['model']==_0x1128c4),_0x5e8a89=_0x829c77(_0x1e69c7['title'])['toLowerCase']();return{'type':'format','content':o(_0x2cfd00,'*Set\x20highlight:*\x20%0',_0x5e8a89),'color':{'value':_0x1e69c7['color'],'title':_0x1e69c7['title']}};}return{'type':'format','content':o(_0x2cfd00,'*Remove\x20highlight*',o(_0x2cfd00,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x522036{['afterInit'](){const _0x466a24=this['editor'];if(!_0x466a24['plugins']['has']('HorizontalLineEditing'))return;_0x466a24['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x592ea1=_0x466a24['plugins']['get']('TrackChangesEditing'),_0x4ab553=_0x466a24['locale'];_0x592ea1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x256764=>o(_0x4ab553,'ELEMENT_HORIZONTAL_LINE',_0x256764)),_0x466a24['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x180193,{writer:_0x511e5a,options:_0x204883})=>{if(!_0x204883['showSuggestionHighlights'])return null;const _0x32884f=_0x511e5a['createContainerElement']('div'),_0x44c811=_0x511e5a['createEmptyElement']('hr');return _0x511e5a['addClass']('ck-horizontal-line',_0x32884f),_0x511e5a['insert'](_0x511e5a['createPositionAt'](_0x32884f,0x0),_0x44c811),_0x32884f;},'converterPriority':'high'});}}class st extends _0x522036{['afterInit'](){const _0x5420c7=this['editor'];if(!_0x5420c7['plugins']['has']('HtmlEmbed'))return;const _0x34fd62=_0x5420c7['plugins']['get']('TrackChangesEditing'),_0x25c647=_0x5420c7['locale'];_0x34fd62['descriptionFactory']['registerElementLabel']('rawHtml',_0x193cc9=>o(_0x25c647,'ELEMENT_HTML_EMBED',_0x193cc9)),_0x34fd62['enableDefaultAttributesIntegration']('htmlEmbed'),_0x34fd62['registerBlockAttribute']('value'),_0x34fd62['descriptionFactory']['registerDescriptionCallback'](_0x53435a=>{if('attribute'!=_0x53435a['type'])return;const {data:_0x39459c}=_0x53435a;if(_0x39459c&&'value'==_0x39459c['key']&&_0x53435a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x34af47=o(_0x25c647,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25c647,'*Change\x20%0\x20content*',_0x34af47)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5ad7a2=this['editor'],_0x4cf915=_0x5ad7a2['locale'];_0x5ad7a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x225dec=>{if('formatBlock'!=_0x225dec['type'])return;const {data:_0x1dc02a}=_0x225dec;if(_0x1dc02a&&'htmlEmbed'==_0x1dc02a['commandName']){const _0x3dae1f=o(_0x4cf915,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4cf915,'*Change\x20%0\x20content*',_0x3dae1f)};}});}}class ot extends _0x522036{['afterInit'](){const _0x4a4179=this['editor'];if(!_0x4a4179['plugins']['has']('ImageEditing'))return;const _0x336d30=_0x4a4179['plugins']['get']('TrackChangesEditing'),_0x5d8fd0=_0x4a4179['plugins']['get']('ImageUtils'),_0x418263=_0x4a4179['locale'];_0x336d30['enableCommand']('insertImage'),_0x336d30['descriptionFactory']['registerElementLabel']('imageBlock',_0x63e97d=>o(_0x418263,'ELEMENT_IMAGE',_0x63e97d)),_0x336d30['descriptionFactory']['registerElementLabel']('imageInline',_0x2b1b32=>o(_0x418263,'ELEMENT_INLINE_IMAGE',_0x2b1b32)),_0x336d30['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x418263,'ELEMENT_CAPTION')),_0x4a4179['plugins']['has']('ImageUploadEditing')&&_0x336d30['enableCommand']('uploadImage'),_0x4a4179['plugins']['has']('ImageBlockEditing')&&_0x4a4179['plugins']['has']('ImageInlineEditing')&&(_0x336d30['enableCommand']('imageTypeInline',(_0x71603f,_0x58ff4c)=>{const _0x47a48a=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']);_0x4a4179['model']['change'](()=>{_0x336d30['markBlockFormat'](_0x47a48a,{'commandName':'imageTypeInline','commandParams':[_0x58ff4c]},[],'convertBlockImageToInline');});}),_0x336d30['enableCommand']('imageTypeBlock',(_0x41cb25,_0x3f4e3b)=>{_0x4a4179['model']['change'](_0x488b7d=>{let _0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0x4d60f2=_0x3a3fe2['fromPosition'](_0x53062d['start'],'toPrevious'),_0x3c4be1=_0x3a3fe2['fromPosition'](_0x53062d['end'],'toNext');_0x336d30['forceDefaultExecution'](()=>_0x41cb25(_0x3f4e3b)),_0xa09c2e=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x53062d=_0x488b7d['createRangeOn'](_0xa09c2e);const _0xe1bf71=_0x488b7d['createRange'](_0x4d60f2,_0x3c4be1);_0x4d60f2['detach'](),_0x3c4be1['detach'](),_0x336d30['markBlockFormat'](_0xa09c2e,{'commandName':'imageTypeInline','commandParams':[_0x3f4e3b]},[],'convertInlineImageToBlock'),_0xe1bf71['start']['isBefore'](_0x53062d['start'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0xe1bf71['start'],_0x53062d['start']),'convertInlineImageToBlock'),_0x53062d['end']['isBefore'](_0xe1bf71['end'])&&_0x336d30['markInsertion'](_0x488b7d['createRange'](_0x53062d['end'],_0xe1bf71['end']),'convertInlineImageToBlock');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x336d30['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x122185])=>{const _0x5a2997=_0x336d30['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1af0a8=_0x122185['start'],_0x274078=_0x122185['end'];const _0x2fc538=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x1af0a8,'backward'),_0x27c137=_0x4a4179['model']['schema']['getNearestSelectionRange'](_0x274078,'forward');_0x2fc538['isCollapsed']&&(_0x1af0a8=_0x2fc538['start']),_0x27c137['isCollapsed']&&(_0x274078=_0x27c137['end']),_0x5a2997([_0x4a4179['model']['createRange'](_0x1af0a8,_0x274078)]);}),_0x336d30['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x34107f),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x34107f)),_0x4a4179['plugins']['has']('ImageCaptionEditing')&&(_0x336d30['enableCommand']('toggleImageCaption',(_0x9043c3,_0x2f9fb5)=>{const _0x5bd455=_0x4a4179['plugins']['get']('ImageCaptionUtils');let _0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4);_0x4a4179['model']['change'](()=>{if(_0x2e9729)return void _0x336d30['markDeletion'](_0x4a4179['model']['createRangeOn'](_0x2e9729));const _0x23f210=_0x5d8fd0['isBlockImage'](_0x16fac4);_0x9043c3(_0x2f9fb5),_0x16fac4=_0x5d8fd0['getClosestSelectedImageElement'](_0x4a4179['model']['document']['selection']),_0x2e9729=_0x5bd455['getCaptionFromImageModelElement'](_0x16fac4),_0x336d30['markInsertion'](_0x4a4179['model']['createRangeOn'](_0x2e9729),_0x23f210?null:'imageCaption');});}),_0x336d30['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x34107f));const _0x4ff802=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1ef427(_0x38aad8,_0x446780){const _0x81f695=_0x4ff802['findIndex'](({type:_0x136f9b,subType:_0x5f36ef})=>_0x38aad8['type']==_0x136f9b&&_0x38aad8['subType']==_0x5f36ef),_0x44dd5d=_0x4ff802['findIndex'](({type:_0x4a6304,subType:_0x2a4951})=>_0x446780['type']==_0x4a6304&&_0x446780['subType']==_0x2a4951);if(_0x81f695<0x0||_0x44dd5d<0x0)return!0x1;const _0x5816d4=_0x38aad8['getFirstRange'](),_0x2f1868=_0x446780['getFirstRange']();if((0x0==_0x81f695||0x1==_0x81f695)&&0x2==_0x44dd5d&&_0x5816d4['isIntersecting'](_0x2f1868))return!0x0;if(0x2==_0x81f695&&0x3==_0x44dd5d){const _0x2bf133=_0x336d30['_findSuggestions'](_0x5816d4,'insertion')['filter'](({suggestion:_0x22cea2,meta:_0x25dafb})=>_0x25dafb['isOwn']&&'convertInlineImageToBlock'==_0x22cea2['subType']);if(_0x2bf133['length']>0x1&&_0x2f1868['end']['isEqual'](_0x5816d4['start']))return!0x0;if(0x1==_0x2bf133['length']&&(_0x5816d4['start']['isEqual'](_0x2f1868['end'])||_0x5816d4['end']['isEqual'](_0x2f1868['start'])))return!0x0;}if(0x3==_0x81f695&&0x3==_0x44dd5d&&_0x5816d4['start']['isBefore'](_0x2f1868['start'])){const _0x284b16=_0x5816d4['end']['nodeAfter'],_0x55181=_0x2f1868['start']['nodeBefore'];return _0x5d8fd0['isBlockImage'](_0x284b16)&&_0x284b16===_0x55181;}return!0x1;}function _0x34107f(_0x52b9bf,_0x671d3a){return _0x1ef427(_0x52b9bf,_0x671d3a)?[_0x52b9bf,_0x671d3a]:_0x1ef427(_0x671d3a,_0x52b9bf)?[_0x671d3a,_0x52b9bf]:null;}_0x4a4179['plugins']['has']('ImageResize')&&(_0x336d30['enableDefaultAttributesIntegration']('resizeImage'),_0x336d30['registerBlockAttribute']('resizedWidth'),_0x336d30['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x418263,'FORMAT_IMAGE_SIZE'))),_0x4a4179['plugins']['has']('ImageTextAlternativeEditing')&&(_0x336d30['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x336d30['registerBlockAttribute']('alt')),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x2e3bd4=>{if(!!_0x4ff802['find'](({type:_0x3538be,subType:_0x5ce557})=>_0x2e3bd4['type']==_0x3538be&&_0x2e3bd4['subType']==_0x5ce557))return _0x2e3bd4['previous']?{}:void 0x0;}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x13db35=>{if('insertion'==_0x13db35['type']||'deletion'==_0x13db35['type']){const _0x52994e=_0x13db35['getContainedElement']();if(_0x52994e&&_0x52994e['is']('element','caption'))return{'type':'insertion'==_0x13db35['type']?'addObject':'removeObject','element':_0x52994e,'quantity':0x1};}}),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x212c80=>'formatBlock'==_0x212c80['type']&&'convertInlineImageToBlock'==_0x212c80['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x212c80['type']&&'convertBlockImageToInline'==_0x212c80['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x336d30['descriptionFactory']['registerDescriptionCallback'](_0x3cfc98=>{if('attribute'!=_0x3cfc98['type'])return;const {data:_0x186cea}=_0x3cfc98;if(!_0x186cea||'alt'!=_0x186cea['key'])return;const _0xd34608=_0x186cea['newValue'];return _0xd34608?{'type':'format','content':o(_0x418263,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xd34608+'\x22')}:{'type':'format','content':o(_0x418263,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58588c=this['editor'],_0x5d675f=_0x58588c['locale'];_0x58588c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33ca7e=>{if('formatBlock'!=_0x33ca7e['type']&&'formatInline'!=_0x33ca7e['type'])return;const {data:_0x599e4f}=_0x33ca7e;if(_0x599e4f){if('imageTextAlternative'==_0x599e4f['commandName']){const _0x358efb=_0x599e4f['commandParams'][0x0]['newValue'];return _0x358efb?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x358efb+'\x22')}:{'type':'format','content':o(_0x5d675f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x599e4f['commandName']){const _0x4d0834=_0x599e4f['commandParams'][0x0]['width'];return _0x4d0834?{'type':'format','content':o(_0x5d675f,'*Set\x20image\x20width:*\x20%0',_0x4d0834)}:{'type':'format','content':o(_0x5d675f,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x171d24=this['editor']['locale'],_0x7b7fac=this['editor']['plugins']['get']('TrackChangesEditing');_0x7b7fac['enableDefaultAttributesIntegration']('replaceImageSource'),_0x7b7fac['registerBlockAttribute']('src'),_0x7b7fac['descriptionFactory']['registerDescriptionCallback'](_0x17b5fb=>{if('attribute'!=_0x17b5fb['type'])return;const {data:_0x500d1d}=_0x17b5fb;return _0x500d1d&&'src'==_0x500d1d['key']?_0x500d1d['newValue']&&_0x500d1d['oldValue']?{'type':'format','content':o(_0x171d24,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x54b579=this['editor']['plugins']['get']('TrackChangesEditing');_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54b579['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x54b579['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x662e9d=this['editor'],_0xd34757=_0x662e9d['locale'];_0x662e9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19015f=>{if('formatBlock'!=_0x19015f['type']&&'formatInline'!=_0x19015f['type'])return;const {data:_0x4367cd}=_0x19015f;if(!_0x4367cd||'replaceImageSource'!=_0x4367cd['commandName'])return;return{'type':'format','content':o(_0xd34757,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x522036{['afterInit'](){const _0x1cec72=this['editor'];if(!_0x1cec72['plugins']['has']('ImageStyleEditing'))return;const _0x1ccf88=_0x1cec72['plugins']['get']('TrackChangesEditing'),_0x42b497=_0x1cec72['plugins']['get']('ImageUtils'),_0x5523b5={};_0x1ccf88['enableCommand']('imageStyle',(_0x4c3af2,_0x282b48)=>{const _0x5c2a5c=_0x1cec72['plugins']['get']('Users')['me'],_0x296074=_0x1cec72['commands']['get']('imageStyle');let _0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x5f1efa=_0x296074['value'];if(_0x5f1efa==_0x282b48['value'])return;const _0x62fd66={'commandName':'imageStyle','commandParams':[_0x282b48],'formatGroupId':_0xb9e80()};_0x1cec72['model']['change'](()=>{if(_0x1ccf88['getSuggestions']()['filter'](_0x5493a1=>_0x5493a1['isInContent']&&_0x5c2a5c==_0x5493a1['author']&&('formatBlock'==_0x5493a1['type']||'formatInline'==_0x5493a1['type'])&&('imageStylePreApply'==_0x5493a1['subType']||'imageStylePostApply'==_0x5493a1['subType'])&&_0x5493a1['getFirstRange']()['isEqual'](_0x1670a1))['forEach'](_0x2291c4=>_0x1ccf88['discardSuggestion'](_0x2291c4['head'])),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),_0x1670a1=_0x1cec72['model']['createRangeOn'](_0x1d1747),_0x296074['refresh'](),_0x1cec72['commands']['get']('imageTypeInline')['refresh'](),_0x1cec72['commands']['get']('imageTypeBlock')['refresh'](),_0x5f1efa=_0x296074['value'],_0x5f1efa!=_0x282b48['value'])return _0x42b497['isInlineImage'](_0x1d1747)&&_0x296074['shouldConvertImageType'](_0x282b48['value'],_0x1d1747)?(_0x4c3af2({..._0x282b48,'setImageSizes':!0x1}),_0x1d1747=_0x42b497['getClosestSelectedImageElement'](_0x1cec72['model']['document']['selection']),void _0x1ccf88['markBlockFormat'](_0x1d1747,{..._0x62fd66,'commandReversedParams':[{'value':_0x5f1efa||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x42b497['isBlockImage'](_0x1d1747)?_0x1ccf88['markBlockFormat'](_0x1d1747,_0x62fd66,[],'imageStylePostApply'):_0x1ccf88['markInlineFormat'](_0x1670a1,_0x62fd66,'imageStylePostApply'));});});for(const _0x27a6ac of _0x1cec72['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5523b5[_0x27a6ac['name']]=_0x27a6ac['title']['toLowerCase']();_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x25aa82])=>{_0x42b497['setImageNaturalSizeAttributes'](_0x25aa82['getContainedElement']());}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x15ce1f,_0x50d400)=>{_0x1ccf88['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x15ce1f,{'commandName':_0x50d400['commandName'],'commandParams':_0x50d400['commandReversedParams']});}),_0x1ccf88['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x13b05f,_0x5c0893){if(_0x68225d(_0x13b05f,_0x5c0893))return[_0x13b05f,_0x5c0893];if(_0x68225d(_0x5c0893,_0x13b05f))return[_0x5c0893,_0x13b05f];return null;});const _0x4243bd=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x68225d(_0x2aaa43,_0x5d7f51){const _0x6639f5=_0x4243bd['findIndex'](({type:_0x40ee83,subType:_0x3d3a3f})=>_0x2aaa43['type']==_0x40ee83&&_0x2aaa43['subType']==_0x3d3a3f),_0x2d861d=_0x4243bd['findIndex'](({type:_0x4c2cbf,subType:_0x5c53b3})=>_0x5d7f51['type']==_0x4c2cbf&&_0x5d7f51['subType']==_0x5c53b3);if(_0x6639f5<0x0||_0x2d861d<0x0)return!0x1;const _0x3bf258=_0x2aaa43['getFirstRange'](),_0xcb2214=_0x5d7f51['getFirstRange']();if((0x0==_0x6639f5||0x1==_0x6639f5)&&0x2==_0x2d861d&&_0x3bf258['isIntersecting'](_0xcb2214))return!0x0;if(0x2==_0x6639f5&&0x3==_0x2d861d){const _0x26937c=_0x1ccf88['_findSuggestions'](_0x3bf258,'insertion')['filter'](({suggestion:_0x2403b9,meta:_0x30bb93})=>_0x30bb93['isOwn']&&'convertInlineImageToBlock'==_0x2403b9['subType']);if(_0x26937c['length']>0x1&&_0xcb2214['end']['isEqual'](_0x3bf258['start']))return!0x0;if(0x1==_0x26937c['length']&&(_0x3bf258['start']['isEqual'](_0xcb2214['end'])||_0x3bf258['end']['isEqual'](_0xcb2214['start'])))return!0x0;}if(0x3==_0x6639f5&&0x3==_0x2d861d&&_0x3bf258['start']['isBefore'](_0xcb2214['start'])){const _0x836b1a=_0x3bf258['end']['nodeAfter'],_0x3fb85f=_0xcb2214['start']['nodeBefore'];return _0x42b497['isBlockImage'](_0x836b1a)&&_0x836b1a===_0x3fb85f;}return!0x1;}_0x1cec72['model']['document']['registerPostFixer'](()=>{let _0x578a8e=!0x1;const _0x3eee4b=Array['from'](_0x1cec72['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x521351,data:_0x580c17}of _0x3eee4b){const {group:_0x373de7,type:_0x5a7f69,subType:_0x5ed572,id:_0x39444a}=_0x1ccf88['_splitMarkerName'](_0x521351);if('suggestion'==_0x373de7&&_0x1ccf88['hasSuggestion'](_0x39444a)){if('formatBlock'==_0x5a7f69&&('imageStylePreApply'==_0x5ed572||'imageStylePostApply'==_0x5ed572)){const _0x447e5c=_0x1ccf88['getSuggestion'](_0x39444a);if(_0x580c17['newRange']){const _0x38a6fe=_0x447e5c['getFirstRange']()['getContainedElement']();if(_0x42b497['isBlockImage'](_0x38a6fe))continue;_0x1ccf88['discardSuggestion'](_0x447e5c),_0x578a8e=!0x0;}}if('insertion'==_0x5a7f69&&'imageCaption'==_0x5ed572&&!_0x580c17['newRange']){const _0x3dcdd1=_0x1ccf88['getSuggestion'](_0x39444a);_0x3dcdd1['next']&&_0x3dcdd1['next']['isInContent']&&(_0x1ccf88['discardSuggestion'](_0x3dcdd1['next']),_0x578a8e=!0x0);}}}return _0x578a8e;}),this['_registerLegacyDescription'](_0x5523b5);}['_registerLegacyDescription'](_0x5de361){const _0x377cd1=this['editor'],_0x449718=_0x377cd1['locale'];_0x377cd1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x208809=>{if('formatBlock'!=_0x208809['type']&&'formatInline'!=_0x208809['type'])return;const {data:_0x53eba9}=_0x208809;if(!_0x53eba9||'imageStyle'!=_0x53eba9['commandName'])return;const _0x1885e7=_0x53eba9['commandParams'][0x0]['value'];return _0x2427ff('side'===_0x1885e7?o(_0x449718,'FORMAT_SIDE_IMAGE'):_0x5de361[_0x1885e7]||_0x1885e7);function _0x2427ff(_0x4e7b64){return{'type':'format','content':o(_0x449718,'*Format:*\x20%0',_0x4e7b64)};}});}}class ct extends _0x522036{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x14030f){super(_0x14030f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xab0401=this['editor'],_0x64a159=_0xab0401['commands']['get']('importWord'),_0x5df6ae=_0xab0401['commands']['get']('trackChanges');_0x64a159&&(_0x64a159['on']('execute',(_0x3954a2,[,_0x41df04])=>{this['_trackChangesValueDuringImport']=_0x5df6ae['value'],_0x41df04['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x64a159,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x64a159,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5df6ae['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xab0401['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5ed014,_0x32e932){const {suggestions:_0x16d1f0}=_0x32e932,_0x276c75=this['editor']['commands']['get']('trackChanges'),_0x88466e=_0x276c75['value'];this['_trackChangesValueDuringImport']!==_0x88466e&&(_0x276c75['execute'](),this['_trackChangesExecuted']=!0x0),_0x16d1f0&&_0x16d1f0['forEach'](({id:_0x244ab3,type:_0x1c73f8,author:_0x1c0f05,created_at:_0x578044})=>{const _0x4ebaf8={'id':_0x244ab3,'type':_0x1c73f8,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x1c0f05,'createdAt':_0x578044?new Date(_0x578044):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4ebaf8);});}}class ut extends _0x522036{['afterInit'](){const _0x427e1b=this['editor'],_0x353be6=_0x427e1b['plugins']['get']('TrackChangesEditing');if(_0x427e1b['plugins']['has']('IndentEditing')&&(_0x353be6['enableCommand']('indent'),_0x353be6['enableCommand']('outdent')),_0x427e1b['plugins']['has']('IndentBlock')){for(const _0x29c08f of['indentBlock','outdentBlock'])_0x353be6['enableDefaultAttributesIntegration'](_0x29c08f);}const _0x4d54c0=_0x427e1b['locale'];_0x353be6['registerBlockAttribute']('blockIndent'),_0x353be6['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4d54c0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3357fd=this['editor'],_0x3f9f88=_0x3357fd['locale'],_0x4fbe05=_0x3357fd['plugins']['get']('TrackChangesEditing');_0x4fbe05['descriptionFactory']['registerDescriptionCallback'](_0xf0a993=>{if('formatBlock'!=_0xf0a993['type'])return;const {data:_0x598bc7}=_0xf0a993;if(!_0x598bc7)return;if('indentBlock'!=_0x598bc7['commandName']&&'outdentBlock'!=_0x598bc7['commandName'])return;const _0x34ed7d=_0xf0a993['getItems']()[0x0],_0x5bb7d6=_0x4fbe05['descriptionFactory']['getItemLabel'](_0x34ed7d);return'indentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Indent:*\x20%0',_0x5bb7d6)}:'outdentBlock'==_0x598bc7['commandName']?{'type':'format','content':o(_0x3f9f88,'*Outdent:*\x20%0',_0x5bb7d6)}:void 0x0;});}}class ft extends _0x522036{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x522036{['afterInit'](){const _0x31c90b=this['editor'];if(!_0x31c90b['plugins']['has']('LinkEditing'))return;const _0x2328ae=_0x31c90b['plugins']['get']('TrackChangesEditing'),_0x2ab15b=_0x31c90b['commands']['get']('link');_0x2328ae['enableDefaultAttributesIntegration']('link'),_0x2328ae['enableDefaultAttributesIntegration']('unlink'),_0x2328ae['registerInlineAttribute']('linkHref');for(const _0x55ef42 of _0x2ab15b['manualDecorators'])_0x2328ae['registerInlineAttribute'](_0x55ef42['id']),_0x2328ae['descriptionFactory']['registerAttributeLabel'](_0x55ef42['id'],'link\x20('+_0x55ef42['label']['toLowerCase']()+')');_0x2328ae['descriptionFactory']['registerDescriptionCallback'](_0x2853b2=>{if('attribute'!=_0x2853b2['type'])return;const {data:_0x4ca9e4}=_0x2853b2;if(!_0x4ca9e4||'linkHref'!=_0x4ca9e4['key'])return;const _0x25d67f=_0x4ca9e4['newValue'],_0x4ce87c=_0x31c90b['locale'];return{'type':'format','content':null==_0x25d67f?o(_0x4ce87c,'*Remove\x20link*'):o(_0x4ce87c,'*Set\x20link:*\x20%0','\x22'+_0x25d67f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e46b=this['editor'],_0x55e53a=_0x53e46b['locale'];_0x53e46b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20d20b=>{if('formatInline'!=_0x20d20b['type'])return;const {data:_0x4236b8}=_0x20d20b;if(_0x4236b8){if('link'==_0x4236b8['commandName']){const _0xcad376=_0x4236b8['commandParams'][0x0];return{'type':'format','content':o(_0x55e53a,'*Set\x20link:*\x20%0','\x22'+_0xcad376+'\x22')};}return'unlink'==_0x4236b8['commandName']?{'type':'format','content':o(_0x55e53a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x522036{['afterInit'](){const _0x539f09=this['editor'],_0x5ea4ed=_0x539f09['locale'];if(!_0x539f09['plugins']['has']('LegacyListEditing'))return;const _0x51bf7c=_0x539f09['plugins']['get']('TrackChangesEditing'),_0x4239ee=_0x539f09['plugins']['has']('LegacyTodoListEditing');function _0x339fc5(_0xe261fb){return()=>{const _0x5d468b=_0x539f09['model']['document']['selection'],_0x18e492=_0x539f09['commands']['get'](_0xe261fb);if(_0x18e492['value'])return void _0x539f09['execute']('paragraph',{});const _0x1e1702=_0xe261fb['slice'](0x0,-0x4),_0x42f324=function(_0x2e244a,_0x573f6d,_0xefe871){let _0x59a0c4=Array['from'](_0x2e244a)['filter'](_0x27ea2f=>function(_0x3d96b1,_0x3f2253){return _0x3f2253['checkChild'](_0x3d96b1['parent'],'listItem')&&!_0x3f2253['isObject'](_0x3d96b1);}(_0x27ea2f,_0xefe871));_0x59a0c4=_0x59a0c4['filter'](_0x33d92e=>!_0x33d92e['is']('element','listItem')||_0x33d92e['getAttribute']('listType')!=_0x573f6d);const _0xef037=new Set();for(const _0x5913d0 of _0x59a0c4)_0x5913d0['is']('element','listItem')?_0xef037['add'](Le(_0x5913d0)):_0xef037['add'](_0x5913d0);return Array['from'](_0xef037);}(_0x5d468b['getSelectedBlocks'](),_0x1e1702,_0x539f09['model']['schema']);_0x539f09['model']['change'](()=>{for(const _0x45bb59 of _0x42f324)_0x51bf7c['markBlockFormat'](_0x45bb59,{'commandName':_0xe261fb,'commandParams':[{'forceValue':!_0x18e492['value']}],'formatGroupId':'blockName'},Ee(_0x45bb59));});};}function _0x4c4c7e(_0x7460f5){return()=>{const _0x864c36=function(_0x54e373){let _0xcbc205=Array['from'](_0x54e373);const _0x166ee2=_0xcbc205['findIndex'](_0x1397f5=>'listItem'!=_0x1397f5['name']);return _0x166ee2>-0x1&&(_0xcbc205=_0xcbc205['slice'](0x0,_0x166ee2)),_0xcbc205;}(_0x539f09['model']['document']['selection']['getSelectedBlocks']()),_0x3a9d8c=_0x539f09['model']['createRange'](_0x539f09['model']['createPositionAt'](_0x864c36[0x0],'before'),_0x539f09['model']['createPositionAt'](_0x864c36[_0x864c36['length']-0x1],'end'));_0x539f09['model']['change'](()=>{_0x51bf7c['markBlockFormat'](_0x3a9d8c,{'commandName':_0x7460f5,'commandParams':[],'formatGroupId':'listIndent'},function(_0x18ea5c){const _0x4b5e2b=new Set();for(const _0x633b77 of _0x18ea5c){let _0x574d29=_0x633b77['nextSibling'];for(;_0x574d29&&_0x574d29['getAttribute']('listIndent')>_0x633b77['getAttribute']('listIndent');)_0x4b5e2b['add'](_0x574d29),_0x574d29=_0x574d29['nextSibling'];}return Array['from'](_0x4b5e2b);}(_0x864c36));});};}_0x51bf7c['enableCommand']('numberedList',_0x339fc5('numberedList')),_0x51bf7c['enableCommand']('bulletedList',_0x339fc5('bulletedList')),_0x4239ee&&_0x51bf7c['enableCommand']('todoList',_0x339fc5('todoList')),_0x51bf7c['enableCommand']('indentList',_0x4c4c7e('indentList')),_0x51bf7c['enableCommand']('outdentList',_0x4c4c7e('outdentList')),_0x4239ee&&_0x51bf7c['enableCommand']('checkTodoList',()=>{const _0x1a04da=_0x539f09['commands']['get']('checkTodoList'),_0x88bae4=Array['from'](_0x1a04da['_selectedElements']);_0x88bae4['filter'](_0x485a4f=>_0x485a4f['getAttribute']('todoListChecked')!=_0x1a04da['value']),_0x539f09['model']['change'](()=>{for(const _0x575534 of _0x88bae4)_0x51bf7c['markBlockFormat'](_0x575534,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1a04da['value']}]});});}),_0x51bf7c['descriptionFactory']['registerElementLabel']('listItem',_0x5b44f7=>o(_0x5ea4ed,'ELEMENT_LIST_ITEM',_0x5b44f7)),_0x51bf7c['descriptionFactory']['registerDescriptionCallback'](_0x286e6e=>{if('formatBlock'!=_0x286e6e['type']&&'formatInline'!=_0x286e6e['type'])return;const {data:_0x523ed8}=_0x286e6e;if(_0x523ed8){if('numberedList'==_0x523ed8['commandName']||'bulletedList'==_0x523ed8['commandName']||'todoList'==_0x523ed8['commandName'])switch(_0x523ed8['commandName']['replace']('List','')){case'bulleted':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3625e7(o(_0x5ea4ed,'ELEMENT_TODO_LIST'));}if('indentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Indent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x523ed8['commandName'])return{'type':'format','content':o(_0x5ea4ed,'*Outdent:*\x20%0',o(_0x5ea4ed,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x523ed8['commandName'])return _0x523ed8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ea4ed,'*Check\x20item*')}:{'type':'format','content':o(_0x5ea4ed,'*Uncheck\x20item*')};}function _0x3625e7(_0x5a20fb){return{'type':'format','content':o(_0x5ea4ed,'*Change\x20to:*\x20%0',_0x5a20fb)};}});}}function Le(_0x370eec){const _0x2689a8=_0x370eec['getAttribute']('listIndent');if(0x0==_0x2689a8)return _0x370eec;let _0x1d0999=_0x370eec;for(;_0x370eec['previousSibling']&&_0x370eec['previousSibling']['is']('element','listItem');){const _0x335ec1=_0x370eec['previousSibling']['getAttribute']('listIndent');if(_0x335ec1==_0x2689a8)_0x1d0999=_0x370eec['previousSibling'];else{if(_0x335ec1<_0x2689a8)break;}_0x370eec=_0x370eec['previousSibling'];}return _0x1d0999;}function Ee(_0x39d83d){const _0x3b6597=[];if(_0x39d83d['is']('element','listItem')&&_0x39d83d['getAttribute']('listIndent')>0x0){let _0x365379=_0x39d83d['nextSibling'];for(;_0x365379&&'listItem'==_0x365379['name']&&_0x365379['getAttribute']('listIndent')==_0x39d83d['getAttribute']('listIndent');)_0x3b6597['push'](_0x365379),_0x365379=_0x365379['nextSibling'];}return _0x3b6597;}class Q extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x4f18de=this['editor']['config']['get']('list.properties'),_0x245504=this['editor']['plugins']['get']('TrackChangesEditing');_0x4f18de['styles']&&_0x245504['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x4f18de['reversed']&&_0x245504['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x4f18de['startIndex']&&_0x245504['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x245504['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x6eaf28,_0x31f6bd={}){const _0x52dbf8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x350a29=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x52dbf8['markMultiRangeBlockFormat'](_0x350a29,{'commandName':'listStyle','commandParams':[{'type':_0x31f6bd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9f01fd,_0x2c8fa5={}){const _0xc35447=this['editor']['plugins']['get']('TrackChangesEditing'),_0x274adb=this['_getSuggestionBlocks'](_0x668706=>_0x668706['is']('element','listItem')&&'numbered'===_0x668706['getAttribute']('listType'));if(_0x274adb['length']<0x1)return;const _0x1f9ece=_0x274adb['map'](_0x10cedf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10cedf,'before'),this['editor']['model']['createPositionAt'](_0x10cedf,0x0)));this['editor']['model']['change'](()=>{_0xc35447['markMultiRangeBlockFormat'](_0x1f9ece,{'commandName':'listReversed','commandParams':[{'reversed':_0x2c8fa5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x4ff657,_0x28b694={}){const _0x1fd480=this['editor']['plugins']['get']('TrackChangesEditing'),_0x249b27=this['_getSuggestionBlocks'](_0x4b3f47=>_0x4b3f47['is']('element','listItem')&&'numbered'===_0x4b3f47['getAttribute']('listType'));if(_0x249b27['length']<0x1)return;const _0x3cd5b3=_0x249b27['map'](_0x5bb5cb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5bb5cb,'before'),this['editor']['model']['createPositionAt'](_0x5bb5cb,0x0)));this['editor']['model']['change'](()=>{_0x1fd480['markMultiRangeBlockFormat'](_0x3cd5b3,{'commandName':'listStart','commandParams':[{'startIndex':_0x28b694['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f2b36){if('formatBlock'!=_0x4f2b36['type']&&'formatInline'!=_0x4f2b36['type'])return;const _0x42468c=this['editor']['locale'],{data:_0x46faa3}=_0x4f2b36;if(!_0x46faa3)return;let _0x10c89e,_0x21d59c;switch(_0x46faa3['commandName']){case'listStyle':_0x10c89e='*Change\x20to:*\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,o(_0x42468c,this['_getTranslationKeyForListStyle'](_0x46faa3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x10c89e=_0x46faa3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e)};break;case'listStart':_0x10c89e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21d59c={'type':'format','content':o(_0x42468c,_0x10c89e,_0x46faa3['commandParams'][0x0]['startIndex'])};}return _0x21d59c;}['_getSuggestionBlocksForListStyle'](){const _0x4ae6bf=this['editor']['plugins']['get']('LegacyListUtils');let _0x993c8f=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x993c8f[0x0]?.['is']('element','listItem')&&_0x993c8f['unshift'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x993c8f[_0x993c8f['length']-0x1]?.['is']('element','listItem')&&_0x993c8f['push'](..._0x4ae6bf['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x993c8f=[...new Set(_0x993c8f)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x993c8f=_0x993c8f['filter'](_0x571611=>_0x571611['is']('element','listItem'))),_0x993c8f;}['_getSuggestionBlocks'](_0x5daf5c){const _0x2d5a18=this['editor']['plugins']['get']('LegacyListUtils');let _0xbc6125=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5daf5c)['map'](_0x3d7249=>{const _0x2cac46=this['editor']['model']['createPositionAt'](_0x3d7249,0x0);return[..._0x2d5a18['getSiblingNodes'](_0x2cac46,'backward'),..._0x2d5a18['getSiblingNodes'](_0x2cac46,'forward')];})['flat']();return _0xbc6125=[...new Set(_0xbc6125)],_0xbc6125;}['_getTranslationKeyForListStyle'](_0x2aaf3c){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2aaf3c)||'default')['toUpperCase']()+'_LIST_'+_0x2aaf3c['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x522036{['afterInit'](){const _0x3f2545=this['editor'];if(!_0x3f2545['plugins']['has']('MediaEmbedEditing'))return;const _0x15571d=_0x3f2545['plugins']['get']('TrackChangesEditing'),_0x1b318c=_0x3f2545['locale'];_0x15571d['enableCommand']('mediaEmbed'),_0x15571d['descriptionFactory']['registerElementLabel']('media',_0x55a4ff=>o(_0x1b318c,'ELEMENT_MEDIA',_0x55a4ff)),_0x3f2545['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x151dec,{writer:_0xc752d6,options:_0x207ba8})=>{if(_0x207ba8['showSuggestionHighlights'])return _0xc752d6['createEmptyElement']('div');},'converterPriority':'high'}),_0x3f2545['data']['downcastDispatcher']['on']('attribute:url:media',(_0x539893,_0x9b225b,_0xeb02d7)=>{_0xeb02d7['options']['showSuggestionHighlights']&&_0x539893['stop']();},{'priority':'high'});}}class mt extends _0x522036{['afterInit'](){const _0x393ccd=this['editor'];_0x393ccd['plugins']['has']('MentionEditing')&&_0x393ccd['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x522036{['afterInit'](){const _0x443ed8=this['editor'];if(!_0x443ed8['plugins']['has']('MergeFieldsEditing'))return;_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x443ed8['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x212ecc=_0x443ed8['plugins']['get']('TrackChangesEditing'),_0x148856=_0x443ed8['locale'];_0x212ecc['descriptionFactory']['registerElementLabel']('mergeField',_0x5667e0=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x5667e0)),_0x212ecc['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x188d72=>o(_0x148856,'ELEMENT_MERGE_FIELD',_0x188d72)),_0x212ecc['descriptionFactory']['registerDescriptionCallback'](_0x1aacae=>{if('insertion'!=_0x1aacae['type']&&'deletion'!=_0x1aacae['type'])return;const _0x5b076e=_0x1aacae['getContainedElement']();if(null==_0x5b076e)return;if(!_0x5b076e['is']('element','mergeField')&&!_0x5b076e['is']('element','mergeFieldBlock'))return;const _0x11ea4e=_0x443ed8['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5b076e['getAttribute']('id'));return'insertion'==_0x1aacae['type']?{'type':'insertion','content':o(_0x148856,'*Insert:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x148856,'*Remove:*\x20%0','\x22'+_0x11ea4e+'\x22\x20'+o(_0x148856,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x522036{['afterInit'](){const _0x296c09=this['editor'],_0x32ceef=_0x296c09['plugins']['get']('TrackChangesEditing');_0x296c09['plugins']['has']('MultiLevelList')&&(_0x32ceef['enableDefaultAttributesIntegration']('multiLevelList'),_0x32ceef['registerBlockAttribute']('listMarkerStyle'),_0x32ceef['descriptionFactory']['registerDescriptionCallback'](_0x588b9f=>this['handleDescriptions'](_0x588b9f)));}['handleDescriptions'](_0x294897){const _0x46c257=this['editor']['locale'],{data:_0x165fcb}=_0x294897,_0x3f2fb1={'type':'format','content':''};if(_0x165fcb&&'listMarkerStyle'==_0x165fcb['key']){if(!_0x165fcb['oldValue'])return{'type':'format','content':o(_0x46c257,'*Set\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['newValue']+')'};if(!_0x165fcb['newValue']){let _0xea70ff=_0x294897['head'];for(;_0xea70ff;){if(_0xea70ff['data']&&'listType'==_0xea70ff['data']['key']&&_0xea70ff['data']['newValue'])return _0x3f2fb1;_0xea70ff=_0xea70ff['next'];}return{'type':'format','content':o(_0x46c257,'*Remove\x20format:*\x20%0',o(_0x46c257,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x165fcb['oldValue']+')'};}}}}class kt extends _0x522036{['afterInit'](){const _0x5f6f8b=this['editor'];if(!_0x5f6f8b['plugins']['has']('PageBreakEditing'))return;_0x5f6f8b['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1262a7=_0x5f6f8b['plugins']['get']('TrackChangesEditing'),_0x48196e=_0x5f6f8b['locale'];_0x1262a7['descriptionFactory']['registerElementLabel']('pageBreak',_0x1c0858=>o(_0x48196e,'ELEMENT_PAGE_BREAK',_0x1c0858));}}class bt extends _0x522036{['afterInit'](){const _0x580e35=this['editor'];if(!_0x580e35['plugins']['has']('Paragraph'))return;const _0x5cdb5a=_0x580e35['locale'],_0x1d9a4a=_0x580e35['plugins']['get']('TrackChangesEditing');_0x1d9a4a['descriptionFactory']['registerElementLabel']('paragraph',_0x152afe=>o(_0x5cdb5a,'ELEMENT_PARAGRAPH',_0x152afe)),_0x1d9a4a['enableDefaultAttributesIntegration']('paragraph'),_0x1d9a4a['enableCommand']('insertParagraph'),_0x580e35['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x580e35),{'priority':'highest'}),_0x580e35['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca336,_0xb7be17,_0x59e0e5)=>{_0x59e0e5['options']['showSuggestionHighlights']&&nr(_0x580e35,{'showActiveMarker':!0x1})(_0x4ca336,_0xb7be17,_0x59e0e5);},{'priority':'highest'});const _0x377473=_0x1d9a4a['descriptionFactory'];_0x377473['registerDescriptionCallback'](_0xb5abe=>{if('insertion'!==_0xb5abe['type'])return;const {start:_0xa4260f,end:_0x4fb058}=_0xb5abe['getFirstRange']();if(!_0xa4260f['isTouching'](_0x4fb058)||!_0xa4260f['nodeAfter'])return;const _0x13389e=_0x580e35['model']['schema'],_0x2666f2=_0xa4260f['nodeAfter'];return _0x13389e['isBlock'](_0x2666f2)&&!_0x13389e['isLimit'](_0x2666f2)&&_0x13389e['checkChild'](_0x2666f2,'$text')?{'type':'insertion','content':o(_0x5cdb5a,'*Insert:*\x20%0',_0x377473['getItemLabel'](_0x2666f2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xae5fe4=this['editor'],_0x380bc0=_0xae5fe4['locale'];_0xae5fe4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c756a=>{if('formatBlock'!=_0x1c756a['type'])return;const {data:_0x126111}=_0x1c756a;return _0x126111&&'paragraph'==_0x126111['commandName']?{'type':'format','content':o(_0x380bc0,'*Change\x20to:*\x20%0',o(_0x380bc0,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xcc8d83,{showActiveMarker:_0x5a1515=!0x0}={}){return(_0x397cd9,_0x4d7303,_0x4f23e4)=>{const _0x187114=_0xcc8d83['plugins']['get']('TrackChangesEditing'),_0x44b3da=_0x4d7303['markerRange']['start'],_0x251066=_0x4d7303['markerRange']['end'],_0x19dcfc=_0xcc8d83['model']['schema'];if(!_0x44b3da['isTouching'](_0x251066)||!_0x44b3da['nodeAfter'])return;const _0x489dd7=_0x44b3da['nodeAfter'];if(_0x19dcfc['isBlock'](_0x489dd7)&&!_0x19dcfc['isLimit'](_0x489dd7)&&_0x19dcfc['checkChild'](_0x489dd7,'$text')){if(!_0x4f23e4['consumable']['consume'](_0x4d7303['markerRange'],_0x397cd9['name']))return;const {authorId:_0x4e2a20}=_0x187114['_splitMarkerName'](_0x4d7303['markerName']),_0xedbd1c=_0x4f23e4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4e2a20}),_0x3f1954=_0x4f23e4['mapper']['toViewPosition'](_0x251066);_0x5a1515&&_0x187114['activeMarkers']['includes'](_0x4d7303['markerName'])&&_0x4f23e4['writer']['addClass']('ck-suggestion-marker--active',_0xedbd1c),_0x4f23e4['writer']['insert'](_0x3f1954,_0xedbd1c),_0x4f23e4['mapper']['bindElementToMarker'](_0xedbd1c,_0x4d7303['markerName']);}};}class yt extends _0x522036{['afterInit'](){const _0x5cf0cd=this['editor'];if(!_0x5cf0cd['plugins']['has']('RemoveFormatEditing'))return;_0x5cf0cd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b5586=this['editor'];_0x2b5586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x236f08=>{if('formatBlock'!=_0x236f08['type']&&'formatInline'!=_0x236f08['type'])return;const {data:_0x21a104}=_0x236f08;return _0x21a104&&'removeFormat'==_0x21a104['commandName']?{'type':'format','content':o(_0x2b5586['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x522036{['afterInit'](){const _0x155414=this['editor'];if(!_0x155414['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x516348=_0x155414['plugins']['get']('TrackChangesEditing');_0x516348['enableCommand']('goToPreviousRestrictedEditingException'),_0x516348['enableCommand']('goToNextRestrictedEditingException');const _0x1aacff=_0x155414['plugins']['get']('RestrictedEditingModeEditing');_0x1aacff['enableCommand']('trackChanges'),_0x1aacff['enableCommand']('acceptSuggestion'),_0x1aacff['enableCommand']('discardSuggestion'),_0x1aacff['enableCommand']('acceptAllSuggestions'),_0x1aacff['enableCommand']('discardAllSuggestions'),_0x1aacff['enableCommand']('acceptSelectedSuggestions'),_0x1aacff['enableCommand']('discardSelectedSuggestions');}}class St extends _0x522036{static get['requires'](){return[_0x2b6dac];}['init'](){const _0x513015=this['editor'],_0x4d7958=_0x513015['plugins']['get']('TrackChangesEditing');_0x4d7958['enableCommand']('shiftEnter'),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x513015),{'priority':'high'}),_0x513015['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x513015),{'priority':'high'}),_0x513015['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x272185,_0x1baef0,_0x4ab319)=>{_0x4ab319['options']['showSuggestionHighlights']&&ke(_0x513015,{'showActiveMarker':!0x1})(_0x272185,_0x1baef0,_0x4ab319);}),_0x4d7958['descriptionFactory']['registerElementLabel']('softBreak',_0x6db6bf=>o(_0x513015['locale'],'ELEMENT_LINE_BREAK',_0x6db6bf));}}function ke(_0x959100,{showActiveMarker:_0xe37909=!0x0}={}){return(_0x3293bd,_0x1bfb9b,_0x3d760f)=>{const _0x83d6d8=_0x959100['plugins']['get']('TrackChangesEditing');if(!_0x3d760f['consumable']['test'](_0x1bfb9b['markerRange'],_0x3293bd['name']))return;const _0x126470=_0x959100['model'];for(const _0x1adfac of _0x1bfb9b['markerRange']['getItems']()){if(!_0x1adfac['is']('element','softBreak'))continue;const _0xb5f71b='deletion'==_0x1bfb9b['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x226d06}=_0x83d6d8['_splitMarkerName'](_0x1bfb9b['markerName']),_0x38f6fb=_0x3d760f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xb5f71b,'data-author-id':_0x226d06}),_0x23f658=_0x3d760f['mapper']['toViewPosition'](_0x126470['createPositionBefore'](_0x1adfac));_0xe37909&&_0x83d6d8['activeMarkers']['includes'](_0x1bfb9b['markerName'])&&_0x3d760f['writer']['addClass']('ck-suggestion-marker--active',_0x38f6fb),_0x3d760f['writer']['insert'](_0x23f658,_0x38f6fb),_0x3d760f['mapper']['bindElementToMarker'](_0x38f6fb,_0x1bfb9b['markerName']);}};}class At extends _0x522036{['afterInit'](){const _0x257496=this['editor'],_0x52ffa8=_0x257496['model'],_0x1e97c7=_0x257496['locale'];if(!_0x257496['plugins']['has']('StandardEditingModeEditing'))return;const _0x196ea8=_0x257496['plugins']['get']('TrackChangesEditing'),_0x3e79ee='restrictedEditingException',_0x357a76=_0x257496['commands']['get'](_0x3e79ee);_0x196ea8['enableCommand'](_0x3e79ee,(_0x384f30,_0x5664fd={})=>{const _0xc8d8a3=_0x52ffa8['document']['selection'];if(_0xc8d8a3['isCollapsed'])return void _0x384f30(_0x5664fd);const _0x324af4=void 0x0!==_0x5664fd['forceValue']?_0x5664fd['forceValue']:!_0x357a76['value'];_0x52ffa8['change'](()=>{const _0x3dd6e3=Array['from'](_0xc8d8a3['getRanges']());for(const _0x5bb967 of _0x3dd6e3){const _0x39391f=_0x324af4?[_0x5bb967]:io(_0x3e79ee,_0x5bb967,_0x52ffa8);for(const _0x47dee8 of _0x39391f)_0x196ea8['markInlineFormat'](_0x47dee8,{'commandName':_0x3e79ee,'commandParams':[{'forceValue':_0x324af4}]});}});}),_0x196ea8['descriptionFactory']['registerDescriptionCallback'](_0x57e920=>{if('formatBlock'!=_0x57e920['type']&&'formatInline'!=_0x57e920['type'])return;const {data:_0x1a1afb}=_0x57e920;return _0x1a1afb&&_0x1a1afb['commandName']==_0x3e79ee?_0x1a1afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1e97c7,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x522036{['afterInit'](){const _0x2fe6a5=this['editor'];if(!_0x2fe6a5['plugins']['has']('Style')||!_0x2fe6a5['plugins']['has']('DataSchema'))return;const _0xfaedfb=_0x2fe6a5['plugins']['get']('TrackChangesEditing'),_0x38ae56=_0x2fe6a5['locale'],_0x3dc05e=_0x2fe6a5['config']['get']('style')||{},_0x55fa57=_0x2fe6a5['plugins']['get']('GeneralHtmlSupport'),_0x444c50=_0x2fe6a5['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2fe6a5['plugins']['get']('DataSchema'),_0x3dc05e['definitions']);_0xfaedfb['enableDefaultAttributesIntegration']('style');const _0x43e95a=new Set();for(const _0x5744fc of _0x444c50['block']){const _0x556645=_0x55fa57['getGhsAttributeNameForElement'](_0x5744fc['element']);_0x43e95a['add'](_0x556645);}const _0x4b1f23=new Set();for(const _0x542d5f of _0x444c50['inline']){const _0x17e91e=_0x55fa57['getGhsAttributeNameForElement'](_0x542d5f['element']);_0x4b1f23['add'](_0x17e91e);for(const _0x5e0d70 of _0x542d5f['ghsAttributes'])_0x4b1f23['add'](_0x5e0d70);}for(const _0x109f9d of _0x43e95a)_0xfaedfb['registerBlockAttribute'](_0x109f9d),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0x109f9d,o(_0x38ae56,'FORMAT_STYLE'));for(const _0xb6aaee of _0x4b1f23)_0xfaedfb['registerInlineAttribute'](_0xb6aaee),_0xfaedfb['descriptionFactory']['registerAttributeLabel'](_0xb6aaee,o(_0x38ae56,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf1129=this['editor'],_0x5c9a91=_0xcf1129['locale'];_0xcf1129['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x173320=>{if('formatBlock'!=_0x173320['type']&&'formatInline'!=_0x173320['type'])return;const {data:_0xa9b90e}=_0x173320;return _0xa9b90e&&'style'===_0xa9b90e['commandName']?_0xa9b90e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5c9a91,'*Set\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5c9a91,'*Remove\x20format:*\x20%0',_0xa9b90e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x522036{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2332e7){super(_0x2332e7),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x269c01=this['editor'],_0x416eb1=_0x269c01['model']['document']['selection'];if(!_0x269c01['plugins']['has']('TableEditing'))return;const _0x246c49=_0x269c01['locale'],_0x56c36c=_0x269c01['plugins']['get']('TrackChangesEditing'),_0xa009c0=_0x269c01['plugins']['get']('TableUtils');_0x56c36c['descriptionFactory']['registerElementLabel']('table',_0x1fecca=>o(_0x246c49,'ELEMENT_TABLE',_0x1fecca)),this['_setupColumnsRowsFixing'](),_0x56c36c['enableCommand']('insertTable'),_0x56c36c['enableCommand']('selectTableRow'),_0x56c36c['enableCommand']('selectTableColumn');for(const _0xd0cedf of['insertTableRowAbove','insertTableRowBelow']){const _0xa12e90=_0x269c01['commands']['get'](_0xd0cedf);_0x56c36c['enableCommand'](_0xd0cedf,_0x353ace=>{_0x269c01['model']['change'](_0x5f1949=>{_0x353ace();const _0x2b6faf='above'===_0xa12e90['order'],_0x30b5a1=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x180494=_0xa009c0['getRowIndexes'](_0x30b5a1),_0x30c288=_0x2b6faf?_0x180494['first']-0x1:_0x180494['last']+0x1,_0x254e9d=_0x30b5a1[0x0]['findAncestor']('table'),_0x47245d=_0xa009c0['createTableWalker'](_0x254e9d,{'startRow':_0x30c288,'endRow':_0x30c288}),_0x1508dd=Array['from'](_0x47245d)['map'](_0x33cf4b=>_0x5f1949['createRangeOn'](_0x33cf4b['cell']));_0x56c36c['markMultiRangeInsertion'](_0x1508dd,'tableRow');});});}for(const _0x11ebbc of['insertTableColumnLeft','insertTableColumnRight']){const _0x53a61d=_0x269c01['commands']['get'](_0x11ebbc);_0x56c36c['enableCommand'](_0x11ebbc,_0x44fee0=>{_0x269c01['model']['change'](_0x3fa8b1=>{_0x44fee0();const _0x1ce3d7='left'===_0x53a61d['order'],_0x59e4c8=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x27d553=_0xa009c0['getColumnIndexes'](_0x59e4c8),_0x3ca77f=_0x1ce3d7?_0x27d553['first']-0x1:_0x27d553['last']+0x1,_0x197c3b=_0x59e4c8[0x0]['findAncestor']('table'),_0x2655de=_0xa009c0['createTableWalker'](_0x197c3b,{'startRow':0x0,'column':_0x3ca77f,'includeAllSlots':!0x1}),_0x5712e1=Array['from'](_0x2655de)['map'](_0x2b919d=>_0x3fa8b1['createRangeOn'](_0x2b919d['cell']));_0x56c36c['markMultiRangeInsertion'](_0x5712e1,'tableColumn');});});}for(const _0x443656 of['removeTableRow','removeTableColumn']){const _0x255b39=_0x443656['substr'](0xb),_0x42e510=_0x255b39['toLowerCase'](),_0x18bd90=_0x42e510['substr'](0x0,0x3)+'span',_0x1092bc='table'+_0x255b39,_0x3d545a='min'+_0x255b39,_0x3099e6='max'+_0x255b39;_0x56c36c['enableCommand'](_0x443656,()=>{_0x269c01['model']['change'](_0x47f03b=>{const _0x4cbc12=_0xa009c0['getSelectionAffectedTableCells'](_0x416eb1),_0x30902b=_0x4cbc12[0x0]['findAncestor']('table');let _0x97b34b;if('removeTableRow'==_0x443656){const _0x523305=_0xa009c0['getRowIndexes'](_0x4cbc12);_0x97b34b={'startRow':_0x523305['first'],'endRow':_0x523305['last'],'includeAllSlots':!0x0};}else{const _0x5122f6=_0xa009c0['getColumnIndexes'](_0x4cbc12);_0x97b34b={'startColumn':_0x5122f6['first'],'endColumn':_0x5122f6['last'],'includeAllSlots':!0x0};}const _0x44fa68=_0xa009c0['createTableWalker'](_0x30902b,_0x97b34b),_0x8e5829=Array['from'](_0x44fa68)['map'](({cell:_0x548658})=>_0x548658),_0x2fbc2f=Re(_0x8e5829['filter'](_0x34eb4f=>_0x34eb4f['hasAttribute'](_0x18bd90))),_0x2ca9b1=Re(_0x8e5829['filter'](_0x4b81de=>!_0x4b81de['hasAttribute'](_0x18bd90)))['map'](_0x234f68=>_0x47f03b['createRangeOn'](_0x234f68)),_0x4bf89a=_0x56c36c['markMultiRangeDeletion'](_0x2ca9b1,_0x1092bc);if(_0x4bf89a&&('tableRow'==_0x4bf89a['subType']||'tableColumn'==_0x4bf89a['subType'])){const _0xd822af=this['_getSuggestionCoords'](_0x4bf89a);for(const _0x49867b of _0x2fbc2f){const _0x573201=_0x47f03b['createRangeOn'](_0x49867b),_0x1454d9=_0xa009c0['getCellLocation'](_0x49867b),_0x5dda98=_0x49867b['getAttribute'](_0x18bd90)-0x1,_0x17bd6f=_0xd822af[_0x3d545a],_0x125d27=_0xd822af[_0x3099e6];_0x17bd6f<=_0x1454d9[_0x42e510]&&_0x1454d9[_0x42e510]+_0x5dda98<=_0x125d27&&_0x4bf89a['addRange'](_0x573201);}}});});}function _0x23f5a0(_0xaa98f1){const _0x76e7a7=Array['from'](_0x416eb1['getRanges']())['map'](_0x5cddf4=>_0x582953['fromRange'](_0x5cddf4));_0x269c01['model']['change'](_0x4ec3ea=>{const _0x3b1837=_0x4ec3ea['batch'];_0xaa98f1=_0xaa98f1['filter'](_0x4d15e=>'$graveyard'!=_0x4d15e['root']['rootName']),_0x4ec3ea['setSelection'](_0xaa98f1),_0x269c01['commands']['get']('removeTableRow')['refresh'](),_0x269c01['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x269c01['model']['enqueueChange'](()=>{_0x269c01['model']['enqueueChange'](_0x3b1837,_0x1bc7b0=>{const _0x5bb98f=_0x76e7a7['filter'](_0x53b0b4=>'$graveyard'!=_0x53b0b4['root']['rootName']);_0x5bb98f['length']>0x0&&_0x1bc7b0['setSelection'](_0x5bb98f);for(const _0xb0e987 of _0x76e7a7)_0xb0e987['detach']();});});});}function _0x43030f(_0x2c7129){_0x269c01['model']['change'](_0x1e0ac6=>{const _0xbcd336=Array['from'](_0x416eb1['getRanges']())['map'](_0x419e49=>_0x582953['fromRange'](_0x419e49)),_0x38ed8d=[];for(const _0x178db8 of _0x2c7129)for(const _0x1bf9c5 of _0x178db8['getItems']({'shallow':!0x0}))_0x38ed8d['push'](_0x1bf9c5);for(const _0x41bfff of _0x38ed8d)'$graveyard'!=_0x41bfff['root']['rootName']&&(_0x1e0ac6['setSelection'](_0x1e0ac6['createPositionAt'](_0x41bfff,0x0)),_0x269c01['commands']['get']('removeTableColumn')['refresh'](),_0x269c01['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x47ab24=_0xbcd336['filter'](_0x50ac62=>'$graveyard'!=_0x50ac62['root']['rootName']);_0x47ab24['length']>0x0&&_0x1e0ac6['setSelection'](_0x47ab24);for(const _0x445a3c of _0xbcd336)_0x445a3c['detach']();});}function _0x46fd8d(_0x545b31,_0x35d026){return _0x35d026['every'](_0xa1099b=>_0x545b31['some'](_0x4b5e3b=>_0x4b5e3b['end']['isEqual'](_0xa1099b['start'])||_0xa1099b['end']['isEqual'](_0x4b5e3b['start'])));}function _0x3801df(_0x97e8b4,_0x2a2672){return!_0x97e8b4['some'](_0x1866f5=>_0x2a2672['some'](_0x307a0f=>_0x1866f5['isIntersecting'](_0x307a0f)))&&_0x97e8b4['some'](_0x251e2b=>_0x2a2672['some'](_0x1a6d18=>_0x251e2b['end']['isTouching'](_0x1a6d18['start'])));}_0x269c01['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45eb40,_0x14a4b2,_0x180b0e)=>{if(!_0x180b0e['options']['showSuggestionHighlights'])return;const _0x3db14f=_0x14a4b2['item'];if(!_0x3db14f)return;const _0x172821=_0x180b0e['mapper']['toViewElement'](_0x3db14f);function _0x3ee851(_0x1cc846){return Array['isArray'](_0x1cc846)?_0x1cc846:[_0x1cc846];}_0x172821&&'tableCell'===_0x3db14f['name']&&_0x2b23c9(_0x172821,_0x180b0e['writer'],(_0x47b472,_0x58a70e,_0x14efd7)=>_0x14efd7['addClass'](_0x3ee851(_0x58a70e['classes']),_0x47b472),(_0x542a4e,_0x517c69,_0x527354)=>_0x527354['removeClass'](_0x3ee851(_0x517c69['classes']),_0x542a4e));},{'priority':'highest'}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x5009b4=>{if('insertion'!=_0x5009b4['type']&&'deletion'!=_0x5009b4['type'])return;const _0x3461e7=_0x5009b4['getContainedElement']();if(null!=_0x3461e7&&_0x3461e7['is']('element','table')){if('insertion'==_0x5009b4['type']){const _0x3ff191=_0x5009b4['getItems']()['filter'](_0x592540=>_0x592540['is']('$textProxy'))['map'](_0x3ac56c=>_0x3ac56c['data']);if(_0x3ff191['length'])return{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3ff191['join']('\x20')+'\x22'))};}if('deletion'==_0x5009b4['type']){const _0x340028=_0x5009b4['getItems']()['filter'](_0x552a7e=>_0x552a7e['is']('$textProxy'))['map'](_0x214b6b=>_0x214b6b['data']);if(_0x340028['length'])return{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x340028['join']('\x20')+'\x22'))};}}}),_0x56c36c['descriptionFactory']['registerDescriptionCallback'](_0x1c46a7=>{if('tableRow'==_0x1c46a7['subType']){const _0x4c8cd9=_0x1c46a7['getItems']()['filter'](_0x12c6a2=>_0x12c6a2['is']('$textProxy'))['map'](_0x4cd6ae=>_0x4cd6ae['data']),_0xd53e5b=this['_getSuggestionCoords'](_0x1c46a7),_0x138901=_0xd53e5b['maxRow']-_0xd53e5b['minRow']+0x1;if('insertion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};if('deletion'==_0x1c46a7['type'])return _0x4c8cd9['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x138901,'\x22'+_0x4c8cd9['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_ROW',_0x138901))};}if('tableColumn'==_0x1c46a7['subType']){const _0x213623=_0x1c46a7['getItems']()['filter'](_0x53720a=>_0x53720a['is']('$textProxy'))['map'](_0x359cb3=>_0x359cb3['data']),_0x8ea13b=this['_getSuggestionCoords'](_0x1c46a7),_0x346f6e=_0x8ea13b['maxColumn']-_0x8ea13b['minColumn']+0x1;if('insertion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x246c49,'*Insert:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};if('deletion'==_0x1c46a7['type'])return _0x213623['length']?{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x346f6e,'\x22'+_0x213623['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x246c49,'*Remove:*\x20%0',o(_0x246c49,'ELEMENT_TABLE_COLUMN',_0x346f6e))};}}),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x23f5a0),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x43030f),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x46fd8d),_0x56c36c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x3801df),_0x56c36c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x3801df);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2faef0=this['editor'],_0x5934dd=_0x2faef0['model']['document']['selection'];return(_0x277fb5,_0xce8931)=>{_0x2faef0['model']['change'](_0x4a05cd=>{const {commandName:_0x5a4532,commandParams:_0x2d4e18}=_0xce8931;let _0x50890b=_0x277fb5[0x0]['end']['nodeBefore'];_0x2d4e18&&_0x2d4e18[0x0]&&!0x1===_0x2d4e18[0x0]['forceValue']&&(_0x50890b=_0x277fb5[0x0]['start']['nodeAfter']);const _0x14a04e=_0x4a05cd['createRangeIn'](_0x50890b);if('$graveyard'==_0x14a04e['root']['rootName'])return;const _0x3264fc=Array['from'](_0x5934dd['getRanges']())['map'](_0x55316b=>_0x582953['fromRange'](_0x55316b));_0x4a05cd['setSelection'](_0x14a04e),_0x2faef0['commands']['get'](_0x5a4532)['refresh'](),_0x2d4e18['push']({'forceDefaultExecution':!0x0}),_0x2faef0['execute'](_0x5a4532,..._0x2d4e18);const _0x57f42a=_0x3264fc['filter'](_0x1b68c4=>'$graveyard'!=_0x1b68c4['root']['rootName']);_0x57f42a['length']>0x0&&_0x4a05cd['setSelection'](_0x57f42a);for(const _0x3a47cf of _0x3264fc)_0x3a47cf['detach']();});};}['_getCoordsForCells'](_0x50aeb1){const _0x365972=this['editor']['plugins']['get']('TableUtils');let _0x4e5d89=Number['MAX_SAFE_INTEGER'],_0x55d00c=Number['MIN_SAFE_INTEGER'],_0xf954b8=Number['MAX_SAFE_INTEGER'],_0xf30bb6=Number['MIN_SAFE_INTEGER'];for(const _0x4a3a8e of _0x50aeb1){if('$graveyard'==_0x4a3a8e['root']['rootName'])continue;const {row:_0x55f3a6,column:_0x1eed6a}=_0x365972['getCellLocation'](_0x4a3a8e),_0xa53836=_0x4a3a8e['hasAttribute']('rowspan')?_0x4a3a8e['getAttribute']('rowspan')-0x1:0x0,_0x162c2b=_0x4a3a8e['hasAttribute']('colspan')?_0x4a3a8e['getAttribute']('colspan')-0x1:0x0;_0x4e5d89=_0x55f3a6<_0x4e5d89?_0x55f3a6:_0x4e5d89,_0x55d00c=_0x55f3a6+_0xa53836>_0x55d00c?_0x55f3a6+_0xa53836:_0x55d00c,_0xf954b8=_0x1eed6a<_0xf954b8?_0x1eed6a:_0xf954b8,_0xf30bb6=_0x1eed6a+_0x162c2b>_0xf30bb6?_0x1eed6a+_0x162c2b:_0xf30bb6;}return{'minRow':_0x4e5d89,'maxRow':_0x55d00c,'minColumn':_0xf954b8,'maxColumn':_0xf30bb6};}['_setupColumnsRowsFixing'](){const _0x3071d9=this['editor'],_0x5c41ca=_0x3071d9['plugins']['get']('TrackChangesEditing'),_0x1df16d=_0x3071d9['plugins']['get']('TableUtils');_0x3071d9['model']['document']['on']('change:data',()=>{const _0x4ef8ab=Array['from'](_0x3071d9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30cd27,data:_0x2823bc}of _0x4ef8ab){const {group:_0x2e3927,id:_0x119438,subType:_0x803320}=_0x5c41ca['_splitMarkerName'](_0x30cd27);if('suggestion'!=_0x2e3927)continue;if(null!=_0x2823bc['oldRange'])continue;const _0x1d1691=_0x5c41ca['getSuggestion'](_0x119438);this['_tablePostFixingSubtypes']['includes'](_0x803320)&&this['_tableSuggestions']['add'](_0x1d1691);}},{'priority':'low'});const _0x4c0584=(_0x42b7bd,_0x5009fc)=>{let _0x5bf8c1=!0x1;const _0x120906=_0x5009fc['createRangeOn'](_0x42b7bd),_0x29ecea=_0x42b7bd['findAncestor']('table'),_0x4bb46b=_0x1df16d['getCellLocation'](_0x42b7bd);for(const _0x1734db of this['_tableSuggestions']){const _0x5c0b82=_0x1734db['subType'],_0x5acab5=_0x5c0b82['startsWith']('tablePaste'),_0x539488=_0x5c0b82['substr'](_0x5acab5?0xa:0x5),_0xcab077=_0x539488['toLowerCase'](),_0x1333cb=_0xcab077['substr'](0x0,0x3)+'span',_0xdfbc1c='min'+_0x539488,_0x28f042='max'+_0x539488;if(!_0x1734db['isInContent'])continue;if(_0x29ecea!=_0x1734db['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x1734db['isIntersectingWithRange'](_0x120906))continue;const _0x50f5e1=_0x42b7bd['hasAttribute'](_0x1333cb)?_0x42b7bd['getAttribute'](_0x1333cb)-0x1:0x0,_0xc63e90=this['_getSuggestionCoords'](_0x1734db),_0x14cf92=_0xc63e90[_0xdfbc1c],_0x9ef51e=_0xc63e90[_0x28f042];_0x14cf92<=_0x4bb46b[_0xcab077]&&_0x4bb46b[_0xcab077]+_0x50f5e1<=_0x9ef51e&&(_0x1734db['addRange'](_0x120906),_0x5bf8c1=!0x0);}return _0x5bf8c1;};_0x3071d9['model']['document']['registerPostFixer'](_0x25db76=>{let _0x394f72=!0x1;for(const _0x7bdd2c of _0x3071d9['model']['document']['differ']['getChanges']())if('insert'==_0x7bdd2c['type']){if('tableRow'==_0x7bdd2c['name']){for(const _0x27c460 of _0x7bdd2c['position']['nodeAfter']['getChildren']())_0x394f72=_0x394f72||_0x4c0584(_0x27c460,_0x25db76);}else'tableCell'==_0x7bdd2c['name']&&(_0x394f72=_0x394f72||_0x4c0584(_0x7bdd2c['position']['nodeAfter'],_0x25db76));}return _0x394f72;});}['_getSuggestionCoords'](_0x3ab293){return this['_getCoordsForCells'](_0x3ab293['getRanges']()['map'](_0x43c8a4=>_0x43c8a4['start']['nodeAfter']));}}function Re(_0x55add5){return Array['from'](new Set(_0x55add5)['values']());}class _t extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0xb882c9=this['editor'],_0x57beec=_0xb882c9['model']['document']['selection'],_0x56066f=_0xb882c9['locale'];if(!_0xb882c9['plugins']['has']('TableEditing'))return;const _0x41fa7d=_0xb882c9['plugins']['get']('TrackChangesEditing'),_0x2f4eb2=_0xb882c9['plugins']['get']('TableUtils'),_0x1c1f90=_0xb882c9['plugins']['get'](vt);_0x1c1f90['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41fa7d['enableCommand']('mergeTableCells',()=>{const _0x4cc699=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection']);_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat'](_0x4cc699,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xb882c9['commands']['get']('mergeTableCells')['on']('execute',(_0x8021ab,_0xb1f81d)=>{_0xb882c9['commands']['get']('trackChanges')['value']&&(_0xb1f81d['length']>0x0&&_0xb1f81d[_0xb1f81d['length']-0x1]&&_0xb1f81d[_0xb1f81d['length']-0x1]['forceDefaultExecution']||_0x41fa7d['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x8021ab['stop']());},{'priority':'highest'});for(const _0x261b11 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6c79bd=_0xb882c9['commands']['get'](_0x261b11);_0x41fa7d['enableCommand'](_0x261b11,()=>{const _0x4a0bdb=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24f5e4=>_0x24f5e4['is']('element','tableCell')),_0x31f511=_0x6c79bd['value'];_0xb882c9['model']['change'](()=>{_0x41fa7d['markMultiRangeBlockFormat']([_0x4a0bdb,_0x31f511],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3c6b9a of['splitTableCellVertically','splitTableCellHorizontally']){const _0x385838=_0xb882c9['commands']['get'](_0x3c6b9a);_0x41fa7d['enableCommand'](_0x3c6b9a,()=>{const _0x20dc45=_0x2f4eb2['getSelectionAffectedTableCells'](_0xb882c9['model']['document']['selection'])[0x0],_0xf75cef=_0x20dc45['findAncestor']('table'),{column:_0x3fcddf,row:_0x45c933}=_0x2f4eb2['getCellLocation'](_0x20dc45);let _0xb957ca=[];if('horizontally'==_0x385838['direction']){const _0x3cf38c=_0x2f4eb2['createTableWalker'](_0xf75cef,{'startRow':_0x45c933,'endRow':_0x45c933,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3cf38c)['map'](_0x569625=>_0x569625['cell']);}else{const _0x3e4168=_0x2f4eb2['createTableWalker'](_0xf75cef,{'column':_0x3fcddf,'includeAllSlots':!0x0});_0xb957ca=Array['from'](_0x3e4168)['map'](_0x41eb7f=>_0x41eb7f['cell']);}_0xb882c9['model']['change'](_0x135b42=>{_0x41fa7d['markBlockFormat'](_0x135b42['createRangeOn'](_0x20dc45),{'commandName':_0x3c6b9a,'commandParams':[]},_0xb957ca,_0x3c6b9a);});});}_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x29ef8b=>{if('formatBlock'!=_0x29ef8b['type']&&'formatInline'!=_0x29ef8b['type'])return;const {data:_0x5e5288}=_0x29ef8b;return _0x5e5288&&'mergeTableCells'==_0x5e5288['commandName']?{'type':'format','content':o(_0x56066f,'*Merge\x20cells*')}:void 0x0;}),_0x41fa7d['descriptionFactory']['registerDescriptionCallback'](_0x36d350=>{if('formatBlock'!=_0x36d350['type']&&'formatInline'!=_0x36d350['type'])return;const {data:_0x1206b2}=_0x36d350;return _0x1206b2?'splitTableCellVertically'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1206b2['commandName']?{'type':'format','content':o(_0x56066f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x147ecc=_0x1c1f90['_acceptFormatSuggestionCallbackFactory']();for(const _0x5b997d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5b997d,'accept',_0x147ecc);for(const _0x246e39 of['splitTableCellVertically','splitTableCellHorizontally'])_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x246e39,'accept',_0x147ecc);_0x41fa7d['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2fd672=>{_0xb882c9['model']['change'](_0x4d2a33=>{const _0x39974a=Array['from'](_0x57beec['getRanges']())['map'](_0x190002=>_0x582953['fromRange'](_0x190002));_0x4d2a33['setSelection'](_0x2fd672),_0xb882c9['commands']['get']('mergeTableCells')['refresh'](),_0xb882c9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3c6d6a=_0x39974a['filter'](_0x2adbf4=>'$graveyard'!=_0x2adbf4['root']['rootName']);_0x3c6d6a['length']>0x0&&_0x4d2a33['setSelection'](_0x3c6d6a);for(const _0x57e8d0 of _0x39974a)_0x57e8d0['detach']();});});for(const _0x58e555 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x570176=_0xb882c9['commands']['get'](_0x58e555);_0x570176['on']('set:isEnabled',(_0x448770,_0x26d401,_0x555282)=>{if(_0x555282){const _0x5922dd=_0xb882c9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x375083=>_0x375083['is']('element','tableCell'));this['_areMergableCells'](_0x570176['value'],_0x5922dd)||(_0x448770['return']=!0x1,_0x448770['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x157ed7=this['editor']['commands']['get']('mergeTableCells'),_0x490253=this['editor']['plugins']['get']('TableUtils');if(!_0x157ed7['isEnabled'])return!0x1;const _0xd92a48=_0x490253['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47e9a3 of _0xd92a48)for(const _0x404418 of _0xd92a48)if(_0x47e9a3!=_0x404418&&!this['_areMergableCells'](_0x47e9a3,_0x404418))return!0x1;return!0x0;}['_areMergableCells'](_0x3f9a96,_0x396c7d){const _0x173be0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24bdfe=this['editor']['model']['createRangeOn'](_0x3f9a96),_0x1c4196=this['editor']['model']['createRangeOn'](_0x396c7d),_0x3f2292=new Set(),_0x4760f7=new Set();for(const _0x29f494 of _0x173be0['getSuggestions']())if(('insertion'==_0x29f494['type']||'deletion'==_0x29f494['type']||'mergeTableCells'==_0x29f494['subType'])&&_0x29f494['isInContent']){for(const _0x21bdc4 of _0x29f494['getRanges']())_0x21bdc4['containsRange'](_0x24bdfe,!0x0)&&_0x3f2292['add'](_0x29f494['type']+':'+_0x29f494['author']['id']),_0x21bdc4['containsRange'](_0x1c4196,!0x0)&&_0x4760f7['add'](_0x29f494['type']+':'+_0x29f494['author']['id']);}if(_0x3f2292['size']!=_0x4760f7['size'])return!0x1;for(const _0x290c2d of _0x3f2292)if(!_0x4760f7['has'](_0x290c2d))return!0x1;return!0x0;}}class Ct extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x47e83c=this['editor'];if(!_0x47e83c['plugins']['has']('TableEditing'))return;const _0x404931=_0x47e83c['locale'],_0x543bc6=_0x47e83c['plugins']['get']('TrackChangesEditing');_0x543bc6['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x543bc6['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x543bc6['registerBlockAttribute']('headingRows'),_0x543bc6['registerBlockAttribute']('headingColumns'),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x404931,'FORMAT_HEADER_ROW')),_0x543bc6['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x404931,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x32b9fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f9ecd=this['editor']['plugins']['get']('TableUtils'),_0x1cdbf7=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x1c1799({showActiveMarker:_0x29ff2c=!0x0,setDataAttribute:_0x1fe0ca=!0x0}={}){return(_0x555754,_0x308a2e,_0x5d9774)=>{const {type:_0x1dbfd1,id:_0x1f9ce8}=_0x32b9fa['_splitMarkerName'](_0x308a2e['markerName']),_0x2cf33d=_0x32b9fa['getSuggestion'](_0x1f9ce8),_0x1250ae=_0x2cf33d['data'];if('formatBlock'!=_0x2cf33d['type']||!_0x1250ae||'setTableColumnHeader'!=_0x1250ae['commandName'])return;if(_0x308a2e['item'])return void _0x555754['stop']();if(!_0x5d9774['consumable']['consume'](_0x308a2e['markerRange'],_0x555754['name']))return;const _0x4ada1e=_0x308a2e['markerRange']['start']['nodeAfter'],_0x3d346a=_0x308a2e['markerRange']['end']['nodeBefore'],_0xb0bd2=_0x4ada1e['parent']['parent'],{column:_0x56022c}=_0x4f9ecd['getCellLocation'](_0x4ada1e),{column:_0x5b196d}=_0x4f9ecd['getCellLocation'](_0x3d346a);for(let _0x25ab9b=_0x56022c;_0x25ab9b<=_0x5b196d;_0x25ab9b++){const _0x2d35c3=_0x4f9ecd['createTableWalker'](_0xb0bd2,{'column':_0x25ab9b,'includeAllSlots':!0x1});for(const _0x56115d of _0x2d35c3){const _0x4b2c1a=_0x56115d['cell'],_0x2eb71b=_0x5d9774['mapper']['toViewElement'](_0x4b2c1a);_0x5d9774['writer']['addClass']('ck-suggestion-marker-'+_0x1dbfd1,_0x2eb71b),_0x1fe0ca&&_0x5d9774['writer']['setAttribute']('data-suggestion',_0x1f9ce8,_0x2eb71b),_0x5d9774['mapper']['bindElementToMarker'](_0x2eb71b,_0x308a2e['markerName']),_0x29ff2c&&(_0x32b9fa['activeMarkers']['includes'](_0x308a2e['markerName'])?_0x5d9774['writer']['addClass']('ck-suggestion-marker--active',_0x2eb71b):_0x5d9774['writer']['removeClass']('ck-suggestion-marker--active',_0x2eb71b));}}};}_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1cdbf7),_0x32b9fa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1cdbf7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1c1799(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5a11e2,_0x3ac8e7,_0x3d6586)=>{_0x3d6586['options']['showSuggestionHighlights']&&_0x1c1799({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5a11e2,_0x3ac8e7,_0x3d6586);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d84c,_0x197de0,_0x4311bc)=>{const {type:_0x323ce3,id:_0xda72d2}=_0x32b9fa['_splitMarkerName'](_0x197de0['markerName']),_0x5ebfff=_0x32b9fa['getSuggestion'](_0xda72d2),_0x55b714=_0x5ebfff['data'];if('formatBlock'!=_0x5ebfff['type']||!_0x55b714||'setTableColumnHeader'!=_0x55b714['commandName'])return;const _0x230db6=_0x4311bc['mapper']['markerNameToElements'](_0x197de0['markerName']);if(_0x230db6){for(const _0x3d1f9b of _0x230db6)_0x4311bc['writer']['removeClass']('ck-suggestion-marker-'+_0x323ce3,_0x3d1f9b),_0x4311bc['writer']['removeClass']('ck-suggestion-marker--active',_0x3d1f9b),_0x4311bc['writer']['removeAttribute']('data-suggestion',_0x3d1f9b),_0x4311bc['mapper']['unbindElementFromMarkerName'](_0x3d1f9b,_0x197de0['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1b1c5f=this['editor'],_0x5b1468=_0x1b1c5f['locale'];function _0x27133e(_0x361619){return{'type':'format','content':o(_0x5b1468,'*Format:*\x20%0',_0x361619)};}_0x1b1c5f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36d951=>{if('formatBlock'!=_0x36d951['type'])return;const {data:_0x379f27}=_0x36d951;if(_0x379f27){if('setTableRowHeader'==_0x379f27['commandName']){const _0x321a09=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x321a09?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x379f27['commandName']){const _0x4d18f2=_0x379f27['commandParams'][0x0]['forceValue'];return _0x27133e(o(_0x5b1468,_0x4d18f2?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x583d72=>[_0x583d72,null]));class Nt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x208036=this['editor'];if(!_0x208036['plugins']['has']('TableClipboard'))return;const _0x565e5a=_0x208036['plugins']['get']('TrackChangesEditing'),_0x3f2562=_0x208036['plugins']['get']('TableUtils'),_0xf334de=_0x208036['plugins']['get'](vt),_0x3c411f=_0x208036['plugins']['get']('TableClipboard');_0xf334de['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x208036['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x208036['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d8255=null;_0x208036['model']['on']('insertContent',(_0x32aa59,_0x46bd9a)=>{const [_0x7edf5a,_0x2385d3]=_0x46bd9a,_0xeeed1f=_0x46bd9a[_0x46bd9a['length']-0x1];_0xeeed1f&&_0xeeed1f['forceDefaultExecution']||_0x565e5a['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x14670c,_0x2609fb,_0x46abec,_0x3031c2,_0x5ba45f){if(_0x2609fb&&!_0x2609fb['is']('documentSelection'))return!0x1;const _0x53644f=_0x5ba45f['getTableIfOnlyTableInContent'](_0x14670c,_0x46abec);if(!_0x53644f||!Ae(_0x53644f,void 0x0,_0x3031c2))return!0x1;const _0x7356db=_0x3031c2['getSelectionAffectedTableCells'](_0x46abec['document']['selection']);if(!_0x7356db['length'])return!0x1;const _0x59d5fc=_0x7356db[0x0]['findAncestor']('table'),_0x5ae052=_0x3031c2['getRowIndexes'](_0x7356db),_0x440dfb=_0x3031c2['getColumnIndexes'](_0x7356db),_0x4a933c={'startRow':_0x5ae052['first'],'endRow':_0x5ae052['last'],'startColumn':_0x440dfb['first'],'endColumn':_0x440dfb['last']};return 0x1==_0x7356db['length']&&(_0x4a933c['endRow']+=_0x3031c2['getRows'](_0x53644f)-0x1,_0x4a933c['endColumn']+=_0x3031c2['getColumns'](_0x53644f)-0x1),Ae(_0x59d5fc,_0x4a933c,_0x3031c2);}(_0x7edf5a,_0x2385d3,_0x208036['model'],_0x3f2562,_0x3c411f)&&(_0x32aa59['stop'](),_0x3d8255={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x208036['model']['change'](()=>{_0x208036['model']['insertContent'](_0x46bd9a[0x0],_0x46bd9a[0x1],_0x46bd9a[0x2],{'forceDefaultExecution':!0x0});const _0x342f9c=_0xb9e80(),{rowInsertionRanges:_0xe07632,columnInsertionRanges:_0x3682c6,insertionRanges:_0x29acc5,deletionRanges:_0x1183c9,cells:_0x45328e}=_0x3d8255;_0xe07632['length']&&_0x565e5a['markMultiRangeInsertion'](_0xe07632,'tablePasteRow',{'tablePasteChainId':_0x342f9c}),_0x3682c6['length']&&_0x565e5a['markMultiRangeInsertion'](_0x3682c6,'tablePasteColumn',{'tablePasteChainId':_0x342f9c}),_0x29acc5['length']&&(_0x565e5a['markMultiRangeInsertion'](_0x29acc5,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x29acc5['forEach'](_0x158901=>_0x158901['detach']?.())),_0x1183c9['length']&&(_0x565e5a['markMultiRangeDeletion'](_0x1183c9,'tablePaste',{'tablePasteChainId':_0x342f9c,'skipNestingCheck':!0x0}),_0x1183c9['forEach'](_0x404048=>_0x404048['detach']?.()));const _0x5345c2=_0x565e5a['markMultiRangeBlockFormat'](_0x45328e['map'](({element:_0x13a597})=>_0x13a597),{'formatGroupId':_0xb9e80()},[],'tablePasteCell',{'tablePasteChainId':_0x342f9c});if(_0x5345c2){const _0x43783e=_0x5345c2['getMarkers'](),_0x418f1c=[];for(const {element:_0x564bf3,attributes:_0x16ff59}of _0x45328e){if(!_0x16ff59)continue;const _0x156549=_0x208036['model']['createRangeOn'](_0x564bf3),_0x1a36b3=_0x43783e['find'](_0x5dbb1a=>_0x5dbb1a['getRange']()['isEqual'](_0x156549));_0x1a36b3&&_0x418f1c['push']([_0x1a36b3['name'],_0x16ff59]);}_0x418f1c['length']&&_0x5345c2['setAttribute']('markerAttributes',Object['fromEntries'](_0x418f1c));}_0x3d8255=null;}));},{'priority':_0xe00547['high']+0xa}),_0x208036['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x476295,_0x5a66ec)=>{const [_0x333457,_0x4f3e2b,,_0x125a7c]=_0x5a66ec;if(!_0x3d8255)return;_0x476295['stop']();const _0x463b02=_0x333457['cell'],_0x1f82f7=_0x4f3e2b,_0xc8b405=je(_0x463b02),_0x1ff3a1=je(_0x1f82f7);_0x476295['return']=_0x463b02;let _0x18df9a=null,_0x450ce7=null;if(_0x1ff3a1||_0xc8b405){if(_0xc8b405&&!_0x1ff3a1){_0x125a7c['remove'](_0x463b02['getChild'](0x0));for(const _0x323a04 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x323a04,_0x463b02,'end');const _0x8b6b2a=_0x3d8255['rowInsertionIndexes']['includes'](_0x333457['row']),_0x27a67d=_0x3d8255['columnInsertionIndexes']['includes'](_0x333457['column']);_0x8b6b2a||_0x27a67d||(_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeIn'](_0x463b02)));}else _0x1ff3a1&&!_0xc8b405&&(_0x450ce7=_0x125a7c['createRangeIn'](_0x463b02));}else{const _0x3a7f07=_0x125a7c['createElement']('tableCellSuggestion'),_0x4cef78=_0x125a7c['createElement']('tableCellSuggestion');_0x125a7c['wrap'](_0x125a7c['createRangeIn'](_0x463b02),_0x4cef78),_0x125a7c['insert'](_0x3a7f07,_0x463b02,0x0);for(const _0x5d4783 of Array['from'](_0x1f82f7['getChildren']()))_0x125a7c['insert'](_0x5d4783,_0x3a7f07,'end');_0x18df9a=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x3a7f07)),_0x450ce7=_0x582953['fromRange'](_0x125a7c['createRangeOn'](_0x4cef78));}const _0x5dcac9=Array['from'](_0x1f82f7['getAttributes']())['filter'](([_0x29ef27])=>we['includes'](_0x29ef27));_0x3d8255['cells']['push']({'element':_0x463b02,'attributes':_0x5dcac9['length']?Object['fromEntries'](_0x5dcac9):null}),_0x18df9a&&_0x3d8255['insertionRanges']['push'](_0x18df9a),_0x450ce7&&_0x3d8255['deletionRanges']['push'](_0x450ce7);},{'priority':'high'}),_0x3f2562['on']('insertColumns',(_0xe93ba0,_0x3e4b6e)=>{const [_0x1eab06,_0x4181a5={}]=_0x3e4b6e;if(!_0x3d8255)return;const _0x38f6f7=_0x4181a5['at']||0x0,_0x438f57=_0x4181a5['columns']||0x1;_0x3d8255['columnInsertionIndexes']=new Array(_0x438f57)['fill'](_0x38f6f7)['map']((_0x27bfab,_0x3016fc)=>_0x27bfab+_0x3016fc);for(const {cell:_0x4d6536}of _0x3f2562['createTableWalker'](_0x1eab06,{'startColumn':_0x38f6f7,'endColumn':_0x38f6f7+_0x438f57-0x1}))_0x3d8255['columnInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4d6536));},{'priority':'low'}),_0x3f2562['on']('insertRows',(_0x3143ba,_0x190659)=>{const [_0x15a45c,_0x5625d3={}]=_0x190659;if(!_0x3d8255)return;const _0x4349e3=_0x5625d3['at']||0x0,_0x588f3c=_0x5625d3['rows']||0x1;_0x3d8255['rowInsertionIndexes']=new Array(_0x588f3c)['fill'](_0x4349e3)['map']((_0x264788,_0x36b162)=>_0x264788+_0x36b162);for(const {cell:_0x4a99b5}of _0x3f2562['createTableWalker'](_0x15a45c,{'startRow':_0x4349e3,'endRow':_0x4349e3+_0x588f3c-0x1}))_0x3d8255['rowInsertionRanges']['push'](_0x208036['model']['createRangeOn'](_0x4a99b5));},{'priority':'low'}),_0x565e5a['descriptionFactory']['registerDescriptionCallback'](_0x110cc0=>{if(_0x110cc0['subType']&&_0x110cc0['subType']['startsWith']('tablePaste'))return _0x110cc0['previous']?{}:{'type':'insertion','content':o(_0x208036['locale'],'*Replace\x20table\x20cells*')};});const _0x24904a=()=>!0x1;for(const _0x36ca95 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('deletion',_0x36ca95,'join',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36ca95,'join',_0x24904a);_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x24904a),_0x565e5a['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3fbcb1,_0xdcb249,_0x297aa4)=>{const _0x23ca06=_0x3fbcb1['map'](_0x4300e0=>_0x4300e0['getContainedElement']())['filter'](_0x5ccb17=>_0x5ccb17),_0x1cab62=new Map(_0x23ca06['map'](_0x4a3065=>[_0x4a3065,null]));if(_0x3d8255){for(const {element:_0x537139,attributes:_0x4d435f}of _0x3d8255['cells'])_0x4d435f&&_0x1cab62['set'](_0x537139,_0x4d435f);}else{if(_0x297aa4&&_0x297aa4['markerAttributes'])for(const [_0x53bb07,_0x1abaf4]of Object['entries'](_0x297aa4['markerAttributes'])){const _0x5d5930=_0x208036['model']['markers']['get'](_0x53bb07),_0x3027b2=_0x5d5930?_0x5d5930['getRange']()['getContainedElement']():null;_0x3027b2&&_0x1cab62['set'](_0x3027b2,_0x1abaf4);}}_0x208036['model']['change'](_0x20e6d3=>{for(const [_0x4323a3,_0x5b3686]of _0x1cab62)_0x20e6d3['setAttributes']({...ve,..._0x5b3686},_0x4323a3);});});const _0xd8a219=(_0x5544a2,_0x961434)=>{_0x565e5a['_suggestionFactory']['registerCustomCallback'](_0x5544a2,'tablePaste',_0x961434,(_0x1b24d3,_0x1f3ce5,_0x3aad3e)=>{_0x208036['model']['change'](_0x4c6d31=>{const _0x4f4647=[];for(const _0x4f2690 of _0x1b24d3){const _0xf955a9=_0x4f2690['start']['nodeAfter'];_0xf955a9['is']('element','tableCellSuggestion')&&_0x4f4647['push'](_0xf955a9);}_0x565e5a['_suggestionFactory']['getSuggestionCallback'](_0x5544a2,null,_0x961434)(_0x1b24d3,_0x1f3ce5,_0x3aad3e);for(const _0x273052 of _0x4f4647)'$graveyard'!=_0x273052['root']['rootName']&&_0x4c6d31['unwrap'](_0x273052);});});};_0xd8a219('insertion','accept'),_0xd8a219('insertion','discard'),_0xd8a219('deletion','accept'),_0xd8a219('deletion','discard'),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x29202d=>{const _0x418ab2=_0x29202d['map'](_0x3dacb7=>_0x3dacb7['getContainedElement']()),_0x54c606=_0x418ab2[0x0]['findAncestor']('table'),{minRow:_0x45bcb3,maxRow:_0x1e5652}=_0xf334de['_getCoordsForCells'](_0x418ab2);_0x3f2562['removeRows'](_0x54c606,{'at':_0x45bcb3,'rows':_0x1e5652-_0x45bcb3+0x1});}),_0x565e5a['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2d8eec=>{const _0x137bf5=_0x2d8eec['map'](_0x5249bd=>_0x5249bd['getContainedElement']()),_0x14e466=_0x137bf5[0x0]['findAncestor']('table'),{minColumn:_0x4ae719,maxColumn:_0x25e41f}=_0xf334de['_getCoordsForCells'](_0x137bf5);_0x3f2562['removeColumns'](_0x14e466,{'at':_0x4ae719,'columns':_0x25e41f-_0x4ae719+0x1});});const _0x430c98=(_0x3290bc,_0x1af9dc)=>{if(!_0x1af9dc['subType']||!_0x1af9dc['subType']['startsWith']('tablePaste'))return;const _0x21ce3f=_0x1af9dc['attributes']['tablePasteChainId'],_0x4a51f9=_0x565e5a['getSuggestions']()['filter'](_0x1fbadc=>_0x1fbadc['isInContent']&&_0x1fbadc['attributes']&&_0x1fbadc['attributes']['tablePasteChainId']==_0x21ce3f);_0x4a51f9['length']&&_0x1af9dc['getAllAdjacentSuggestions']()['length']!=_0x4a51f9['length']&&_0x4a51f9['reduce']((_0x2cbfb5,_0x38bfe6)=>(_0x2cbfb5['next']=_0x38bfe6,_0x38bfe6['previous']=_0x2cbfb5,_0x38bfe6));};function _0x57038b(_0x530b55,_0x1002dd=!0x0){const {id:_0x296477,authorId:_0x5ad6cd}=_0x565e5a['_splitMarkerName'](_0x530b55['markerName']),_0x10e98b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2b7f0d=_0x565e5a['activeMarkers']['includes'](_0x530b55['markerName']);return _0x2b7f0d&&_0x10e98b['push']('ck-suggestion-marker--active'),{'classes':_0x10e98b,'attributes':{'data-suggestion':_0x296477,'data-author-id':_0x5ad6cd},'priority':_0x2b7f0d&&_0x1002dd?0xbc2:0xbb8};}_0x565e5a['on']('suggestionLoaded',_0x430c98,{'priority':'high'}),_0x565e5a['on']('suggestionUnloaded',_0x430c98,{'priority':'high'}),_0x208036['model']['document']['registerPostFixer'](()=>{let _0x381e7f=!0x1;const _0x8c35ed=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x328486,data:_0x3715cf}of _0x8c35ed){const {group:_0x5d8d2b,type:_0x2e0428,id:_0x3707b0}=_0x565e5a['_splitMarkerName'](_0x328486);if('suggestion'!=_0x5d8d2b||'deletion'!=_0x2e0428||_0x3715cf['oldRange'])continue;if(!_0x565e5a['hasSuggestion'](_0x3707b0))continue;const _0x2c1eed=_0x565e5a['getSuggestion'](_0x3707b0)['getRanges'](),_0x5cf92a=_0x208036['plugins']['get']('Users')['me'];for(const _0x2b7a36 of _0x565e5a['getSuggestions']()){if(!_0x2b7a36['isInContent']||_0x2b7a36['author']!=_0x5cf92a)continue;if('formatBlock'!=_0x2b7a36['type']||'tablePasteCell'!=_0x2b7a36['subType'])continue;if(_0x2b7a36['getRanges']()['every'](_0x3d4df9=>_0x2c1eed['some'](_0x5a4dfd=>_0x5a4dfd['containsRange'](_0x3d4df9,!0x0)))){for(const _0xf6f86a of _0x2b7a36['getAllAdjacentSuggestions']())_0xf6f86a['isInContent']&&(_0xf6f86a['discard'](),_0x381e7f=!0x0);}}}return _0x381e7f;}),_0x208036['model']['document']['registerPostFixer'](_0x454c11=>{const _0x3fc152=_0x208036['commands']['get']('redo');if(!_0x3fc152||!_0x3fc152['_createdBatches']['has'](_0x454c11['batch']))return!0x1;let _0x4ba84f=!0x1;const _0x180057=_0x208036['plugins']['get']('Users')['me'],_0x422828=_0x208036['model']['document']['differ']['getChanges'](),_0x173876=Array['from'](_0x208036['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x450b49,data:_0x1ba2fa})=>{const {group:_0x2b333f,subType:_0x57bfff,authorId:_0x37aa69}=_0x565e5a['_splitMarkerName'](_0x450b49);return'suggestion'==_0x2b333f&&'tablePaste'==_0x57bfff&&_0x37aa69==_0x180057['id']&&!_0x1ba2fa['oldRange'];});for(const _0xdd06d3 of _0x422828){if('insert'!=_0xdd06d3['type']||'tableCellSuggestion'!=_0xdd06d3['name']||0x1!=_0xdd06d3['length'])continue;const _0x503649=_0x454c11['createRange'](_0xdd06d3['position'],_0xdd06d3['position']['getShiftedBy'](0x1));if(!_0x173876['find'](({data:_0xacc756})=>_0xacc756['newRange']['isEqual'](_0x503649))){for(const {name:_0x211ee6,data:_0x51ce10}of _0x173876)if(_0x503649['containsRange'](_0x51ce10['newRange'])){_0x454c11['updateMarker'](_0x211ee6,{'range':_0x503649}),_0x4ba84f=!0x0;break;}}}return _0x4ba84f;}),_0x208036['model']['document']['registerPostFixer'](_0x1fb513=>{let _0x278989=!0x1;const _0x53312b=_0x208036['plugins']['get']('Users')['me'],_0x49ab74=_0x565e5a['getSuggestions']()['filter'](_0x387c5e=>_0x387c5e['isInContent']&&_0x387c5e['author']==_0x53312b),_0x7291d9=new Set(),_0x3d7fee=new Set();for(const _0x5a47e4 of _0x49ab74)if('tablePaste'==_0x5a47e4['subType'])for(const _0x19dfb2 of _0x5a47e4['getMarkers']()){const _0xd4bee2=_0x19dfb2['getRange']()['getContainedElement']();if(_0xd4bee2){if(_0xd4bee2['is']('element','tableCellSuggestion')&&je(_0xd4bee2)){_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x7291d9['add'](_0xd4bee2),_0x278989=!0x0;const _0x3e18f2=_0xd4bee2['nextSibling'],_0x1150d3=_0xd4bee2['previousSibling'],_0x2f0e3a=_0x3e18f2&&_0x3e18f2['is']('element','tableCellSuggestion'),_0x33897f=_0x1150d3&&_0x1150d3['is']('element','tableCellSuggestion');_0x2f0e3a&&!_0x7291d9['has'](_0x3e18f2)&&_0x3d7fee['add'](_0x3e18f2),_0x33897f&&!_0x7291d9['has'](_0x1150d3)&&_0x3d7fee['add'](_0x1150d3);}else _0xd4bee2['is']('element','paragraph')&&_0xd4bee2['isEmpty']&&(_0x5a47e4['removeMarker'](_0x19dfb2['name']),_0x278989=!0x0);}}else{if('tablePasteCell'==_0x5a47e4['subType']){if(!_0x5a47e4['attributes']||!_0x5a47e4['attributes']['tablePasteChainId'])continue;const _0x344365=_0x5a47e4['attributes']['markerAttributes'];if(_0x344365&&Object['keys'](_0x344365)['length'])continue;const _0x1cd2d5=_0x5a47e4['attributes']['tablePasteChainId'];let _0x23a4c9=!0x0,_0x446dad=!0x0;for(const _0x183c8d of _0x49ab74)if(_0x183c8d['subType']&&_0x183c8d['subType']['startsWith']('tablePaste')){if(!_0x183c8d['attributes']['tablePasteChainId']){_0x446dad=!0x1;break;}if(_0x183c8d['id']!=_0x5a47e4['id']&&_0x183c8d['attributes']['tablePasteChainId']==_0x1cd2d5){_0x23a4c9=!0x1;break;}}_0x446dad&&_0x23a4c9&&(_0x5a47e4['removeMarkers'](),_0x278989=!0x0);}}for(const _0xc8355e of _0x7291d9)_0x1fb513['remove'](_0xc8355e);for(const _0x2fb1d2 of _0x3d7fee)_0x1fb513['unwrap'](_0x2fb1d2);return _0x278989;}),_0x208036['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xc3445f=>_0x57038b(_0xc3445f),'converterPriority':'high'}),_0x208036['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4404ed,_0x3df1d2)=>_0x3df1d2['options']['showSuggestionHighlights']?_0x57038b(_0x4404ed,!0x1):null,'converterPriority':'high'});const _0x2dd6e8=_0x208036['editing']['view'];this['listenTo'](_0x2dd6e8['document'],'clipboardOutput',(_0x1cc3e7,_0x499ef2)=>{const _0x1b7ef1=[];for(const _0x427616 of _0x2dd6e8['createRangeIn'](_0x499ef2['content'])['getItems']())_0x427616['is']('element','suggestion-td')&&_0x1b7ef1['push'](_0x427616);_0x2dd6e8['change'](_0x3cfd52=>{for(const _0x2b103f of _0x1b7ef1)_0x3cfd52['move'](_0x3cfd52['createRangeIn'](_0x2b103f),_0x3cfd52['createPositionBefore'](_0x2b103f)),_0x3cfd52['remove'](_0x2b103f);});});}}function je(_0x3a5d2a){if(_0x3a5d2a['isEmpty'])return!0x0;const _0x5a33d4=_0x3a5d2a['getChild'](0x0);return _0x5a33d4['is']('element','paragraph')&&_0x5a33d4['isEmpty'];}function Ae(_0x5a1fd4,_0x36603d={},_0x19b7ef){for(const {isAnchor:_0x3e3a41,cellHeight:_0x2bba1c,cellWidth:_0x25f118}of _0x19b7ef['createTableWalker'](_0x5a1fd4,{'includeAllSlots':!0x0,..._0x36603d}))if(!_0x3e3a41||0x1!=_0x2bba1c||0x1!=_0x25f118)return!0x1;return!0x0;}class Dt extends _0x522036{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2c8c11=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c8c11['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c8c11['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2c8c11['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2c8c11['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1a791b,_0x285862){const _0x45a235=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d8df4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x301067=_0x285862['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x395cbc=_0x2d8df4['getColumnGroupElement'](_0x301067);let _0x4bd6e8=_0x395cbc?_0x2d8df4['getTableColumnsWidths'](_0x395cbc):null,_0x4e0cf9=_0x301067['getAttribute']('tableWidth')||null;const _0x39246c=_0x285862['tableWidth']||_0x4e0cf9,_0xf84cac=_0x285862['columnWidths']||_0x4bd6e8,_0x3f599f=this['editor']['plugins']['get']('Users')['me'];for(const _0x563c64 of _0x45a235['getSuggestions']()){const _0x3d9d82=_0x563c64['getContainedElement']();if('resizeTable'===_0x563c64['subType']&&_0x3d9d82===_0x301067){_0x563c64['author']!==_0x3f599f&&_0x563c64['discard']();const _0x329d7e=_0x563c64['data']['commandParams'];_0x4e0cf9=_0x329d7e[0x0]['tableWidth'],_0x4bd6e8=_0x329d7e[0x0]['columnWidths'];break;}}_0x1a791b({'table':_0x301067,'tableWidth':_0x39246c,'columnWidths':_0xf84cac}),_0x45a235['markBlockFormat'](_0x301067,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e0cf9,'columnWidths':_0x4bd6e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x276673){if('formatBlock'!=_0x276673['type']&&'formatInline'!=_0x276673['type'])return;const {data:_0x299962}=_0x276673;if(_0x299962&&'resizeTable'===_0x299962['formatGroupId']){const _0x26d8dc='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x26d8dc)};}}}class Mt extends _0x522036{['afterInit'](){const _0x4ed730=this['editor'];_0x4ed730['plugins']['has']('Template')&&_0x4ed730['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x522036{['afterInit'](){const _0x35951d=this['editor'];if(!_0x35951d['commands']['get']('insertTableOfContents'))return;_0x35951d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d9c27=_0x35951d['plugins']['get']('TrackChangesEditing'),_0x3fd0d8=_0x35951d['locale'];_0x4d9c27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x169312=>o(_0x3fd0d8,'ELEMENT_TABLE_OF_CONTENTS',_0x169312));}}class Bt extends _0x522036{['afterInit'](){const _0x56ab4d=this['editor'];if(!_0x56ab4d['plugins']['has']('Title'))return;const _0x141417=_0x56ab4d['plugins']['get']('TrackChangesEditing');_0x141417['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x56ab4d['locale'],'ELEMENT_TITLE')),_0x56ab4d['model']['document']['registerPostFixer'](_0x341020=>{let _0x54b2a0=!0x1;const _0x3f91be=Array['from'](_0x56ab4d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2c8ff8,data:_0xe4a331}of _0x3f91be){const {group:_0x5319ea}=_0x141417['_splitMarkerName'](_0x2c8ff8);if('suggestion'!==_0x5319ea||!_0xe4a331['newRange'])continue;const _0x51b8e6=_0xe4a331['newRange'],_0x41c5d9=_0x51b8e6['end']['nodeBefore'];if(!_0x41c5d9||!_0x41c5d9['is']('element','title-content'))continue;if(!_0x51b8e6['start']['isTouching'](_0x51b8e6['end']))continue;const _0x300cbb=_0x56ab4d['model']['schema']['getNearestSelectionRange'](_0x51b8e6['end'],'forward');if(_0x300cbb&&_0x300cbb['isCollapsed']){const _0x1e2705=_0x341020['createRange'](_0x51b8e6['start'],_0x300cbb['start']);_0x1e2705['isEqual'](_0x51b8e6)||(_0x341020['updateMarker'](_0x2c8ff8,{'range':_0x1e2705}),_0x54b2a0=!0x0);}_0x54b2a0||(_0x341020['removeMarker'](_0x2c8ff8),_0x54b2a0=!0x0);}return _0x54b2a0;});}}class Ot extends _0x522036{['afterInit'](){const _0x46c14f=this['editor'],_0x15e2d4=_0x46c14f['plugins']['get']('TrackChangesEditing');_0x46c14f['plugins']['has']('UndoEditing')&&(_0x15e2d4['enableCommand']('undo'),_0x15e2d4['enableCommand']('redo'));}}class Rt extends _0x522036{static get['requires'](){return[vt];}['afterInit'](){const _0x21ada0=this['editor'];if(!_0x21ada0['plugins']['has']('TableCaptionEditing'))return;_0x21ada0['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x522036{['tableProperties'];['tableCellProperties'];constructor(_0x5b509e){super(_0x5b509e),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 _0x4fea30=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x125506 of this['tableProperties'])_0x4fea30['enableCommand'](_0x125506,(_0x389938,_0x2c92a7)=>{const _0x5aeff8=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x125506,[_0x5aeff8],this['tableProperties'],'tableProperties',_0x389938,_0x2c92a7);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x183981,_0x1e10b9)=>this['handleDiscardAction'](this['tableProperties'],_0x183981,_0x1e10b9)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x114694 of this['tableCellProperties'])_0x4fea30['enableCommand'](_0x114694,(_0x3c75ff,_0x736c46)=>{const _0x58947b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x114694,_0x58947b,this['tableCellProperties'],'tableCellProperties',_0x3c75ff,_0x736c46);});_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4fea30['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3afd51,_0x54a114)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3afd51,_0x54a114)),_0x4fea30['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4fea30['descriptionFactory']['registerDescriptionCallback'](_0x51f669=>this['handleSuggestionDescription'](_0x51f669));}['_handlePropertyChange'](_0x1bfa08,_0x30497e,_0x755569,_0xd6384,_0x5cda85,_0x6d2419){const _0x476f60=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x6d2419['batch'],()=>{for(const _0x55ded1 of _0x30497e){if(this['_getSuggestion'](_0x55ded1,_0xd6384))_0x5cda85(_0x6d2419);else{const _0x4b610b={};for(const _0x28b96c of _0x755569){const _0x3a22f1=_0x55ded1['getAttribute'](_0x28b96c);void 0x0!==_0x3a22f1&&(_0x4b610b[_0x28b96c]=_0x3a22f1);}_0x5cda85(_0x6d2419),_0x476f60['markBlockFormat'](_0x55ded1,{'commandParams':[_0x4b610b]},[],_0xd6384);}}});}['handleDiscardAction'](_0x4d408e,_0x550889,_0x1eaff4){const _0xd91e60=_0x550889[0x0]['start']['nodeAfter'],_0x4790f1=_0x1eaff4['commandParams'][0x0];this['editor']['model']['change'](_0x561fab=>{for(const _0x5abcea of _0x4d408e)void 0x0!==_0x4790f1[_0x5abcea]?_0x561fab['setAttribute'](_0x5abcea,_0x4790f1[_0x5abcea],_0xd91e60):_0x561fab['removeAttribute'](_0x5abcea,_0xd91e60);});}['handleSuggestionDescription'](_0xd5ac28){if(_0xd5ac28['data'])switch(_0xd5ac28['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'](_0x587c1a,_0x33e7ab){const _0x1059f3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x22e261 of _0x1059f3['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a2f6b=_0x22e261['getContainedElement']();if(_0x22e261['subType']===_0x33e7ab&&_0x4a2f6b===_0x587c1a)return _0x22e261;}return null;}}const m='$elementName';class p extends _0x522036{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x32d02e,_0x50247b,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,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x410426){super(_0x410426),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x139f11,_0x4c20af,_0x3882d7,_0x1e229a)=>{this['_model']['change'](()=>{for(const _0x7a1de4 of[..._0x1e229a,..._0x3882d7])this['_model']['markers']['has'](_0x7a1de4)&&_0x410426['editing']['reconvertMarker'](_0x7a1de4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x410426['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(),_0x410426['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x410426['config']['get']('trackChanges.trackFormatChanges'),_0x410426['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x410426['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x410426,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x35e383=this['editor'],_0x5e90b9=(_0x23bd44,_0x42454b)=>{if('attribute'!=_0x23bd44)return'ck-suggestion-marker-'+_0x23bd44;const _0x3d6dbd=_0x42454b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3d6dbd)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x35e383['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ca556=>{const {id:_0x320449,authorId:_0x207d99,type:_0x541f5d,subType:_0xded13c}=this['_splitMarkerName'](_0x3ca556['markerName']),_0x2cc7d5=['ck-suggestion-marker',_0x5e90b9(_0x541f5d,_0xded13c)];let _0x3e8281=0xbb8;return this['activeMarkers']['includes'](_0x3ca556['markerName'])&&(_0x2cc7d5['push']('ck-suggestion-marker--active'),_0x3e8281=0xbc2),'deletion'==_0x541f5d&&(_0x3e8281+=0x5),{'classes':_0x2cc7d5,'attributes':{'data-suggestion':_0x320449,'data-author-id':_0x207d99},'priority':_0x3e8281};}}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0xabd2f4=>{_0xabd2f4['on']('addMarker:suggestion',(_0xc68f8,_0x1c23bd,_0x58b1a5)=>{if(!_0x58b1a5['options']['showSuggestionHighlights'])return;const _0x5f455b=_0x1c23bd['item'];if(!_0x5f455b)return;const _0x293e20=_0x58b1a5['mapper']['toViewElement'](_0x5f455b);_0x35e383['model']['schema']['isObject'](_0x5f455b)&&_0x293e20&&!_0x293e20['getCustomProperty']('widget')&&_0x293e20['is']('containerElement')&&_0x27f6ef(_0x293e20,_0x58b1a5['writer']);},{'priority':'high'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x57704d,_0x1208cc)=>{if(!_0x1208cc['options']['showSuggestionHighlights'])return null;const {type:_0x24a896,subType:_0x178be6}=this['_splitMarkerName'](_0x57704d['markerName']);return{'classes':['ck-suggestion-marker',_0x5e90b9(_0x24a896,_0x178be6)],'priority':0xbb8};}});const _0xdcbe89=({showActiveMarkers:_0x299853=!0x0,isAttributeSuggestion:_0x5a4f95=!0x1}={})=>(_0xa64946,_0x37d74c,_0x5a0da4)=>{if(!_0x37d74c['item'])return;const {id:_0x5240f1,authorId:_0x3df530}=this['_splitMarkerName'](_0x37d74c['markerName']);if(_0x5a4f95){const _0x1227ca=this['_suggestions']['get'](_0x5240f1),_0x3b321f=this['_getAttributeKey'](_0x1227ca);if(!this['_isBlockAttribute'](_0x3b321f))return;}if(_0x37d74c['item']['is']('selection'))return void _0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);const _0x1bc32f=_0x5a0da4['mapper']['toViewElement'](_0x37d74c['item']);if(_0x37d74c['item']['is']('element')&&_0x35e383['model']['schema']['isBlock'](_0x37d74c['item'])&&!_0x1bc32f['getCustomProperty']('addHighlight')){_0x5a0da4['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-suggestion',_0x5240f1,_0x1bc32f),_0x5a0da4['writer']['setAttribute']('data-author-id',_0x3df530,_0x1bc32f),_0x5a0da4['mapper']['bindElementToMarker'](_0x1bc32f,_0x37d74c['markerName']),_0x299853&&(this['activeMarkers']['includes'](_0x37d74c['markerName'])?_0x5a0da4['writer']['addClass']('ck-suggestion-marker--active',_0x1bc32f):_0x5a0da4['writer']['removeClass']('ck-suggestion-marker--active',_0x1bc32f));for(const _0x185065 of _0x35e383['model']['createRangeIn'](_0x37d74c['item'])['getItems']())_0x5a0da4['consumable']['consume'](_0x185065,_0xa64946['name']);_0x5a0da4['consumable']['consume'](_0x37d74c['item'],_0xa64946['name']);}};_0x35e383['conversion']['for']('dataDowncast')['add'](_0x5847b5=>{_0x5847b5['on']('addMarker:suggestion:formatBlock',(_0x5f4d1a,_0x50e9dd,_0x34a7d9)=>{_0x34a7d9['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1})(_0x5f4d1a,_0x50e9dd,_0x34a7d9);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['add'](_0x3ebf9f=>{_0x3ebf9f['on']('addMarker:suggestion:attribute',(_0x2d1984,_0x22d350,_0x580e20)=>{_0x580e20['options']['showSuggestionHighlights']&&_0xdcbe89({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2d1984,_0x22d350,_0x580e20);},{'priority':'highest'});}),_0x35e383['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2a39b9,_0x10e1f1)=>_0x10e1f1['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2a39b9['substr'](0xb)}}),_0x35e383['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1c2988,{writer:_0x5179a3})=>{let _0x926cc='suggestion:'+_0x1c2988['getAttribute']('suggestion-type')+':'+_0x1c2988['getAttribute']('id');return _0x1c2988['getAttribute']('marker-count')&&(_0x926cc+=':'+_0x1c2988['getAttribute']('marker-count')),_0x5179a3['createElement']('$marker',{'data-name':_0x926cc});}}),_0x35e383['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x2ed3ab=>{_0x2ed3ab['on']('addMarker:suggestion:formatBlock',_0xdcbe89(),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x6e2ff3=>{_0x6e2ff3['on']('addMarker:suggestion:attribute',_0xdcbe89({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x472672=>{_0x472672['on']('removeMarker:suggestion:formatBlock',(_0x1bb9f7,_0x526605,_0x563f83)=>{const _0x336a10=_0x563f83['mapper']['markerNameToElements'](_0x526605['markerName']);if(_0x336a10){for(const _0x3e4225 of _0x336a10)_0x3e4225['getCustomProperty']('addHighlight')||(_0x563f83['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3e4225),_0x563f83['writer']['removeAttribute']('data-suggestion',_0x3e4225),_0x563f83['writer']['removeAttribute']('data-author-id',_0x3e4225),_0x563f83['mapper']['unbindElementFromMarkerName'](_0x3e4225,_0x526605['markerName']));}},{'priority':'high'});}),_0x35e383['conversion']['for']('editingDowncast')['add'](_0x1d403d=>{_0x1d403d['on']('removeMarker:suggestion:attribute',(_0x1e44ef,_0x340a40,_0x3dd99f)=>{const _0x429659=_0x3dd99f['mapper']['markerNameToElements'](_0x340a40['markerName']);if(!_0x429659)return;const {id:_0x442c1c}=this['_splitMarkerName'](_0x340a40['markerName']),_0x3d2998=this['_suggestions']['get'](_0x442c1c),_0x226cf8=this['_getAttributeKey'](_0x3d2998);if(this['_isBlockAttribute'](_0x226cf8)){for(const _0x3750a9 of _0x429659)_0x3750a9['getCustomProperty']('addHighlight')||(_0x3dd99f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-suggestion',_0x3750a9),_0x3dd99f['writer']['removeAttribute']('data-author-id',_0x3750a9),_0x3dd99f['mapper']['unbindElementFromMarkerName'](_0x3750a9,_0x340a40['markerName']));}},{'priority':'high'});}),_0x35e383['model']['document']['registerPostFixer'](_0x52bca0=>{let _0x46d4a8=!0x1;const _0xe6803d=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']()),_0x23d33e=new Set();for(const {name:_0x2064ae,data:_0x5d31ec}of _0xe6803d){const {group:_0x4bf46d,type:_0x8ef09b,subType:_0x395cc5,id:_0xe60221}=this['_splitMarkerName'](_0x2064ae);if('suggestion'!==_0x4bf46d)continue;const _0x23ab16=this['_suggestions']['get'](_0xe60221);if(null!=_0x5d31ec['newRange']){'formatInline'==_0x8ef09b&&(_0x46d4a8=_0x46d4a8||Pt(_0x5d31ec['newRange'],_0x2064ae,_0x52bca0,_0x35e383['model']['schema']));const _0x39495f='attribute'==_0x8ef09b&&this['_isBlockAttribute'](_0x395cc5['split']('|')[0x0]);if(_0x5d31ec['newRange']['isCollapsed']||'$graveyard'==_0x5d31ec['newRange']['root']['rootName']||'formatBlock'==_0x8ef09b&&!Ft(_0x5d31ec['newRange'])||_0x39495f&&!Ft(_0x5d31ec['newRange'])||'deletion'==_0x8ef09b&&!(!Vt(_0x374016=_0x5d31ec['newRange'])&&!function(_0x8d139e){return _0x8d139e['start']['parent']==_0x8d139e['end']['nodeBefore']&&_0x8d139e['start']['isAtEnd'];}(_0x374016)))_0x52bca0['removeMarker'](_0x2064ae),_0x46d4a8=!0x0;else{if(!_0x23ab16||!_0x23ab16['isInContent'])continue;if(_0x5d31ec['newRange']&&_0x5d31ec['oldRange']&&_0x5d31ec['newRange']['isEqual'](_0x5d31ec['oldRange']))continue;_0x23d33e['add'](_0x23ab16);}}}var _0x374016;return _0x23d33e['size']>0x0&&(_0x46d4a8=!!this['_joinWithAdjacentSuggestions'](_0x23d33e)||_0x46d4a8),_0x46d4a8;}),_0x35e383['model']['document']['registerPostFixer'](_0x2d0918=>{let _0x53b8e2=!0x1;for(const _0x2a73e8 of _0x35e383['model']['document']['differ']['getChanges']())if('insert'==_0x2a73e8['type'])for(const _0x5404fd of this['_suggestions']['values']()){if(_0x5404fd['isMultiRange']||!_0x5404fd['isInContent'])continue;const _0x5b16a1='formatBlock'==_0x5404fd['type'],_0xd82ddd=this['_getAttributeKey'](_0x5404fd),_0x3fee6b=_0xd82ddd&&this['_isBlockAttribute'](_0xd82ddd);if(!_0x5b16a1&&!_0x3fee6b)continue;const _0x103404=_0x5404fd['getFirstRange']();if(_0x103404['start']['parent']!=_0x103404['end']['parent']&&!_0x103404['end']['isAtEnd']){const _0x5ca1f5=_0x35e383['model']['createPositionAt'](_0x103404['start']['nodeAfter'],'end'),_0xd0c82d=_0x35e383['model']['createRange'](_0x103404['start'],_0x5ca1f5);_0x2d0918['updateMarker'](_0x5404fd['getFirstMarker'](),{'range':_0xd0c82d}),_0x53b8e2=!0x0;}}return _0x53b8e2;}),_0x35e383['model']['document']['registerPostFixer'](_0x1579fb=>this['_processAttributeChanges'](_0x1579fb)),_0x35e383['model']['document']['registerPostFixer'](_0x577533=>!_0x577533['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x577533)),_0x35e383['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x35e383['model']['document']['on']('change:data',(_0x4f83cf,_0x2846e3)=>{if(!_0x2846e3['isLocal']||_0x2846e3['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x567598=_0x35e383['model']['document']['differ']['getChanges']();if(0x0==_0x567598['length'])return;const _0x3aee84=[],_0x113c8a=_0x567598['filter'](_0x7dbdce=>'attribute'==_0x7dbdce['type']),_0x4a57d0=_0x567598['filter'](_0x4aefa1=>'insert'==_0x4aefa1['type']&&'$text'!=_0x4aefa1['name']);for(const _0x2360bb of _0x113c8a)this['_isRegisteredAttribute'](_0x2360bb['attributeKey'])&&_0x3aee84['push']({'key':_0x2360bb['attributeKey'],'newValue':_0x2360bb['attributeNewValue'],'oldValue':_0x2360bb['attributeOldValue'],'range':Lt(_0x2360bb['range'],_0x35e383['model'])});for(const _0x43934a of _0x4a57d0){if('rename'!=_0x43934a['action']&&'refresh'!=_0x43934a['action'])continue;const _0x552ab9=Jt(_0x43934a['position']['nodeAfter'],_0x35e383['model']),_0x23d7be=_0x43934a['before'];'rename'==_0x43934a['action']&&_0x3aee84['push']({'key':m,'newValue':_0x43934a['name'],'oldValue':_0x23d7be['name'],'range':_0x552ab9});for(const [_0x6630c5,_0x2b5d38]of _0x23d7be['attributes']){if(!this['_isRegisteredAttribute'](_0x6630c5))continue;const _0x210a62=_0x43934a['attributes']['get'](_0x6630c5);_0x2b5d38!==_0x210a62&&_0x3aee84['push']({'key':_0x6630c5,'newValue':_0x210a62,'oldValue':_0x2b5d38,'range':_0x552ab9});}for(const [_0x17054b,_0x41f9f2]of _0x43934a['attributes'])this['_isRegisteredAttribute'](_0x17054b)&&(_0x23d7be['attributes']['has'](_0x17054b)||_0x3aee84['push']({'key':_0x17054b,'newValue':_0x41f9f2,'oldValue':null,'range':_0x552ab9}));}0x0!=_0x3aee84['length']&&_0x35e383['model']['enqueueChange'](_0x2846e3,_0x3e109c=>{const _0x9da7f4=_0xb9e80();for(const {range:_0x25b838,key:_0x4db716,oldValue:_0x5eb0f3,newValue:_0x1af549}of _0x3aee84)this['markAttributeChange'](_0x25b838,_0x4db716,_0x5eb0f3,_0x1af549,{'groupId':_0x9da7f4});this['_reduceExistingSuggestions'](_0x3e109c,_0x3aee84);});},{'priority':'lowest'}),_0x35e383['model']['markers']['on']('update:suggestion',(_0x4ef97e,_0x59f38d,_0x4fb1f9)=>{if(null==_0x4fb1f9){const {id:_0x587c2a}=this['_splitMarkerName'](_0x59f38d['name']),_0x3bc427=this['_suggestions']['get'](_0x587c2a);_0x3bc427&&_0x3bc427['addMarkerName'](_0x59f38d['name']);}}),_0x35e383['model']['document']['on']('change:data',()=>{const _0x6cb04f=Array['from'](_0x35e383['model']['document']['differ']['getChangedMarkers']())['filter'](_0x4390cd=>'suggestion'===this['_splitMarkerName'](_0x4390cd['name'])['group']);if(0x0===_0x6cb04f['length'])return;_0x6cb04f['sort']((_0x47e4ae,_0x6b84)=>{const _0x2f26f4=_0x47e4ae['data']['oldRange'],_0x458124=_0x6b84['data']['oldRange'];return null===_0x2f26f4&&null===_0x458124?0x0:null===_0x2f26f4&&null!==_0x458124?-0x1:null!==_0x2f26f4&&null===_0x458124?0x1:_0x2f26f4['start']['isBefore'](_0x458124['start'])?-0x1:0x1;});const _0x4d0486=new Set(),_0x426bd7=new Set();for(const {name:_0x6b21e8,data:_0x29b3a0}of _0x6cb04f){const {id:_0x355596}=this['_splitMarkerName'](_0x6b21e8);if(null===_0x29b3a0['oldRange']){const _0x334db7=this['_handleNewSuggestionMarker'](_0x6b21e8);_0x426bd7['add'](_0x334db7);}else{const _0x397431=this['_suggestions']['get'](_0x355596);null!==_0x29b3a0['newRange']||_0x397431['isInContent']?(_0x4d0486['add'](_0x397431['head']),_0x426bd7['add'](_0x397431)):this['_removeSuggestion'](_0x397431);}}_0x426bd7['size']>0x0&&this['_refreshSuggestionsChain'](_0x426bd7);for(const _0x2eab37 of _0x4d0486)this['fire']('suggestionChanged',_0x2eab37);}),_0x35e383['model']['on']('applyOperation',(_0x2866b2,_0x30d64f)=>{const _0xf5381f=_0x30d64f[0x0];if(!this['_suggestions']['size'])return;if(!_0xf5381f['isDocumentOperation'])return;if(_0xf5381f['batch']['isUndo']||!_0xf5381f['batch']['isLocal'])return;let _0x4c5e7c,_0x4b20a0;switch(_0xf5381f['type']){case'insert':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['position']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;case'split':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['splitPosition']),_0x4b20a0=_0x35e383['model']['createPositionAt'](_0xf5381f['moveTargetPosition']);break;case'move':_0x4c5e7c=_0x35e383['model']['createPositionAt'](_0xf5381f['targetPosition']),_0x4b20a0=_0x4c5e7c['getShiftedBy'](_0xf5381f['howMany']);break;default:return;}const _0x45b449=_0x35e383['model']['createRange'](_0x4c5e7c,_0x4b20a0);_0x35e383['model']['change'](()=>{for(const {suggestion:_0x4c016d,meta:_0x50c536}of this['_findSuggestions'](_0x45b449)){if(_0x4c016d['isMultiRange'])continue;if('formatInline'==_0x4c016d['type'])continue;const _0xf08f68=this['_getAttributeKey'](_0x4c016d);if(_0xf08f68&&this['_isBlockAttribute'](_0xf08f68)&&'split'!=_0xf5381f['type'])continue;const _0x1a92e8=_0x4c016d['data']&&_0x4c016d['data']['multipleBlocks'];('formatBlock'!=_0x4c016d['type']||'split'==_0xf5381f['type']&&!_0x1a92e8)&&(_0x50c536['containsRangeInObject']||'insertion'==_0x4c016d['type']&&_0x50c536['isOwn']||_0x4c016d['getFirstRange']()['containsRange'](_0x45b449)&&this['_breakSuggestionMarker'](_0x4c016d,_0x4c5e7c,_0x4b20a0));}});},{'priority':'lowest'}),_0x35e383['model']['on']('deleteContent',(_0x37c930,_0x2776cc)=>{const _0x33152f=_0x2776cc[0x0],_0x36d29a=_0x2776cc[0x1];if(_0x36d29a&&_0x36d29a['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x33152f['isCollapsed'])return;const _0x409e4c=_0x35e383['model']['schema'],{start:_0x4b19e6,end:_0x9f7042}=_0x33152f['getFirstRange'](),_0x1ba93b=_0x4b19e6['nodeAfter']&&_0x409e4c['isLimit'](_0x4b19e6['nodeAfter'])?null:_0x409e4c['getNearestSelectionRange'](_0x4b19e6,'forward'),_0x1cd3fb=_0x9f7042['nodeBefore']&&_0x409e4c['isLimit'](_0x9f7042['nodeBefore'])?null:_0x409e4c['getNearestSelectionRange'](_0x9f7042,'backward'),_0x1f8c5b=_0x35e383['model']['createRange'](_0x1ba93b?_0x1ba93b['start']:_0x4b19e6,_0x1cd3fb?_0x1cd3fb['end']:_0x9f7042);_0x35e383['model']['change'](_0x1c1c5a=>{this['markDeletion'](_0x1f8c5b);const _0x18a269=_0x35e383['model']['schema']['getNearestSelectionRange'](_0x1f8c5b['start']);_0x33152f['is']('documentSelection')?_0x1c1c5a['setSelection'](_0x18a269):_0x33152f['setTo'](_0x18a269);}),_0x37c930['stop']();},{'priority':_0xe00547['normal']+0xa}),_0x35e383['model']['on']('insertContent',(_0x332494,_0x6c6abd)=>{const _0x52e8a8=_0x6c6abd[_0x6c6abd['length']-0x1];_0x52e8a8&&_0x52e8a8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x35e383['model']['change'](()=>{let _0x59a814=_0x35e383['model']['insertContent'](_0x6c6abd[0x0],_0x6c6abd[0x1],_0x6c6abd[0x2],{'forceDefaultExecution':!0x0});if(!_0x59a814)return;_0x332494['return']=_0x59a814['clone']();const _0x289e5c=_0x59a814['end']['nodeBefore'],_0x1b61f4=_0x35e383['model']['schema'];_0x289e5c&&_0x1b61f4['isBlock'](_0x289e5c)&&!_0x1b61f4['isObject'](_0x289e5c)&&(_0x59a814=_0x35e383['model']['createRange'](_0x59a814['start'],_0x35e383['model']['createPositionAt'](_0x289e5c,'end'))),this['markInsertion'](_0x59a814);}),_0x332494['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x4da723=new O(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('acceptSuggestion',_0x4da723),this['enableCommand']('acceptSuggestion');const _0x5c1ba9=new R(_0x35e383,this['_suggestions']);_0x35e383['commands']['add']('discardSuggestion',_0x5c1ba9),this['enableCommand']('discardSuggestion'),_0x35e383['commands']['add']('acceptAllSuggestions',new x(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x35e383['commands']['add']('discardAllSuggestions',new x(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x35e383['commands']['add']('acceptSelectedSuggestions',new E(_0x35e383,_0x4da723,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x35e383['commands']['add']('discardSelectedSuggestions',new E(_0x35e383,_0x5c1ba9,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x20cf2e=_0x35e383['plugins']['get']('CommentsRepository');this['listenTo'](_0x20cf2e,'addComment',(_0x21b22c,{threadId:_0xbfbceb})=>{const _0x4e2f4c=this['_suggestions']['get'](_0xbfbceb);_0x4e2f4c&&_0x4e2f4c['commentThread']&&0x1===_0x4e2f4c['commentThread']['length']&&this['_updateSuggestionData'](_0xbfbceb,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x20cf2e,'removeComment',(_0x14fd50,{threadId:_0x3bf6c2})=>{const _0x58561d=this['_suggestions']['get'](_0x3bf6c2);_0x58561d&&_0x58561d['commentThread']&&!_0x58561d['commentThread']['length']&&this['_updateSuggestionData'](_0x3bf6c2,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x960b53){const _0x2e7386=_0x76c1ec([0x31,0x6e,0x53,0x6a,0x4c,0x4e,0x32,0x39,0x62,0x6f,0x52,0x4b,0x30,0x48,0x71,0x65,0x58,0x6b,0x77,0x47,0x44,0x7a,0x6d,0x33,0x54,0x74,0x42,0x37,0x56,0x5a,0x72,0x45,0x36,0x51,0x61,0x66,0x79,0x67,0x69,0x4a,0x68,0x63,0x75,0x35,0x4f,0x38,0x49,0x64,0x57,0x43,0x76,0x55,0x34,0x73,0x4d,0x46,0x6c,0x59,0x50,0x70,0x78,0x41]),_0x16d4dc=0x3786288c,_0x5da60a=0x37817f74^_0x16d4dc,_0xe1a5eb=window[_0x76c1ec([0x44,0x61,0x74,0x65])][_0x76c1ec([0x6e,0x6f,0x77])](),_0xdb9936=_0x960b53[_0x76c1ec([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x472c76=new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b5dbe=>{_0xdb9936[_0x76c1ec([0x6f,0x6e,0x63,0x65])](_0x76c1ec([0x72,0x65,0x61,0x64,0x79]),_0x2b5dbe);}),_0x1cc9ae={[_0x76c1ec([0x6b,0x74,0x79])]:_0x76c1ec([0x45,0x43]),[_0x76c1ec([0x75,0x73,0x65])]:_0x76c1ec([0x73,0x69,0x67]),[_0x76c1ec([0x63,0x72,0x76])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36]),[_0x76c1ec([0x78])]:_0x76c1ec([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]),[_0x76c1ec([0x79])]:_0x76c1ec([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]),[_0x76c1ec([0x61,0x6c,0x67])]:_0x76c1ec([0x45,0x53,0x32,0x35,0x36])},_0x4beee1=_0xdb9936[_0x76c1ec([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x76c1ec([0x67,0x65,0x74])](_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x33048f(){let _0x135c6f,_0x4e230e=null,_0x32feec=null;try{if(_0x4beee1==_0x76c1ec([0x47,0x50,0x4c]))return _0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x135c6f=_0x12651c(),!_0x135c6f)return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x32feec=_0x9860ea(_0x135c6f[_0x76c1ec([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x135c6f[_0x76c1ec([0x6a,0x74,0x69])])),await _0x578564()?_0x2d4571()?_0x238ef8()?_0x76c1ec([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x407571()?(_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x76c1ec([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x4e230e=_0x4a2491(_0x76c1ec([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x318083()):_0x76c1ec([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x382c5b){return _0x76c1ec([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x238ef8(){const _0x153826=[_0x76c1ec([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x76c1ec([0x74,0x72,0x69,0x61,0x6c])][_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xe1a5eb/0x3e8:0xe10*_0x5da60a;return _0x135c6f[_0x76c1ec([0x65,0x78,0x70])]<_0x153826;}function _0x2d4571(){const _0x1973a0=_0x135c6f[_0x76c1ec([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1973a0&&(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a]))||(!!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x54,0x43]))||!(!_0x1973a0[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x52,0x54,0x43]))||!_0x337dd3())));}function _0x407571(){const _0x4fb7ff=_0x135c6f[_0x76c1ec([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4fb7ff||0x0==_0x4fb7ff[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f93fa}=new URL(window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4fb7ff[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f93fa))return!0x0;const _0x288b10=_0x1f93fa[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));return _0x4fb7ff[_0x76c1ec([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x93cf97=>_0x93cf97[_0x76c1ec([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x76c1ec([0x2a])))[_0x76c1ec([0x6d,0x61,0x70])](_0x4f9532=>_0x4f9532[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])))[_0x76c1ec([0x73,0x6f,0x6d,0x65])](_0x91ed6f=>_0x288b10[_0x76c1ec([0x65,0x76,0x65,0x72,0x79])]((_0x21651e,_0x3b235e)=>_0x91ed6f[_0x3b235e]===_0x21651e||_0x91ed6f[_0x3b235e]===_0x76c1ec([0x2a])));}function _0x318083(){return _0x4e230e&&_0x32feec?new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x25b141,_0x7525ee)=>{_0x4e230e[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x25b141,_0x7525ee),_0x32feec[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x40d684=>{_0x40d684!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x25b141(_0x40d684);},_0x7525ee);}):_0x4e230e||_0x32feec||_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9860ea(_0x4cbb4c,_0x57db82){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x196da9=>{if(_0x2f9fe3())return _0x196da9(_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]));_0x17a7ae(),_0xdb9936[_0x76c1ec([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x14b644=!0x1;const _0x29095c=_0xb9e80();function _0x2ef64b(_0x4904f1){return!!_0x4904f1&&(typeof _0x4904f1===_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4904f1===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4904f1[_0x76c1ec([0x74,0x68,0x65,0x6e])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4904f1[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])]===_0x76c1ec([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x24090d(_0x34af2b){_0x7fb535(_0x34af2b)[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x57fadf=>{if(!_0x57fadf||_0x57fadf[_0x76c1ec([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x76c1ec([0x6f,0x6b]))return _0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17c61a(_0x3c1342(_0x29095c+_0x57db82))!=_0x57fadf[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x76c1ec([0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0xfbe5b8=>(_0x2cde41(),_0xfbe5b8),()=>{const _0x58ee8e=_0x4812d7();return null==_0x58ee8e?(_0x2cde41(),_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])):_0x76c1ec(_0xe1a5eb-_0x58ee8e>(0x138aac8c^_0x16d4dc)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x196da9)[_0x76c1ec([0x63,0x61,0x74,0x63,0x68])](()=>{_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21434d=0x37b0c60c^_0x16d4dc;function _0x2cde41(){const _0x466b67=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x44a863=_0x716317(_0x17c61a(window[_0x76c1ec([0x4d,0x61,0x74,0x68])][_0x76c1ec([0x63,0x65,0x69,0x6c])](_0xe1a5eb/_0x21434d)));window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x466b67,_0x44a863);}function _0x4812d7(){const _0x171dfe=_0x76c1ec([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c61a(_0x3c1342(_0x4cbb4c)),_0x3d623a=window[_0x76c1ec([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x76c1ec([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x171dfe);return _0x3d623a?window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x716317(_0x3d623a),0x10)*_0x21434d:null;}function _0x7fb535(_0x125608){return new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6d7710,_0x4ee1ea)=>{_0x125608[_0x76c1ec([0x74,0x68,0x65,0x6e])](_0x6d7710,_0x4ee1ea),window[_0x76c1ec([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4ee1ea,0x3787fc4c^_0x16d4dc);});}}_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4f1a9e,_0xc52306)=>{if(_0xc52306[0x0]!=_0x4cbb4c)return _0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xc52306[0x1]={..._0xc52306[0x1],[_0x76c1ec([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29095c};},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x68,0x69,0x67,0x68])}),_0xdb9936[_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x411424=>{_0x2ef64b(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x14b644=!0x0,_0x24090d(_0x411424[_0x76c1ec([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x76c1ec([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x76c1ec([0x6c,0x6f,0x77])}),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>{_0x14b644||_0x196da9(_0x76c1ec([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f9fe3(){return _0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x76c1ec([0x61,0x75,0x74,0x6f]);}function _0x17a7ae(){_0xdb9936[_0x76c1ec([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x76c1ec([0x76,0x69,0x65,0x77])][_0x76c1ec([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x76c1ec([0x61,0x75,0x74,0x6f]);}}function _0x4a2491(_0x210330){const _0x280b46=[new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d12ea=>setTimeout(_0x4d12ea,0x378f1640^_0x16d4dc)),_0x472c76[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>new window[(_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe5ce37=>{let _0x3f8231=0x0;_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x6f,0x6e])](_0x76c1ec([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x25bd2b,_0x1a83f9)=>{_0x1a83f9[0x0][_0x76c1ec([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3f8231++,_0x3f8231==(0x37862974^_0x16d4dc)&&(_0xe5ce37(),_0x25bd2b[_0x76c1ec([0x6f,0x66,0x66])]());});}))];return window[_0x76c1ec([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x76c1ec([0x72,0x61,0x63,0x65])](_0x280b46)[_0x76c1ec([0x74,0x68,0x65,0x6e])](()=>_0x210330);}async function _0x40d6f3(){await _0x472c76,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c])][_0x76c1ec([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x63c05b,_0xdb9936[_0x76c1ec([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x76c1ec([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x337dd3(){return _0x50eb6b(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x250daf(_0x76c1ec([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x76c1ec([0x73,0x74,0x61,0x74,0x65])]==_0x76c1ec([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4d666e(_0x578510){const _0x20d30e=_0x46bd5f();_0xdb9936[_0x20d30e]=_0x76c1ec([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x578510,_0x578510!=_0x76c1ec([0x56,0x61,0x6c,0x69,0x64])&&_0x40d6f3();}function _0x46bd5f(){const _0x496692=window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x76c1ec([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x76c1ec([0x6e,0x6f,0x77])]())[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x76c1ec([0x2e]),'');let _0x13f39d=_0x76c1ec([0x6e]);for(let _0x4433cb=0x0;_0x4433cb<_0x496692[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4433cb+=0x2){let _0x1aab7c=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496692[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4433cb,_0x4433cb+0x2));_0x1aab7c>=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1aab7c-=_0x2e7386[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13f39d+=_0x2e7386[_0x1aab7c];}return _0x13f39d;}function _0x12651c(){const _0x4a2b3f=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e]));if(0x3!=_0x4a2b3f[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x311da8(_0x4a2b3f[0x1]);function _0x311da8(_0x36d873){const _0x7755c0=_0x1cc9db(_0x36d873);return _0x7755c0&&_0x11bff7()?_0x7755c0:null;function _0x11bff7(){const _0x309d90=_0x7755c0[_0x76c1ec([0x6a,0x74,0x69])],_0x4d28d4=window[_0x76c1ec([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4451cd={..._0x7755c0,[_0x76c1ec([0x6a,0x74,0x69])]:_0x309d90[_0x76c1ec([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x309d90[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4451cd[_0x76c1ec([0x76,0x63])],_0x3c1342(_0x4451cd)==_0x4d28d4;}}}async function _0x578564(){let _0x2f7974=!0x0;try{const _0x500558=_0x4beee1[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])](_0x76c1ec([0x2e])),[_0x48369d,_0x406d29,_0x10aabe]=_0x500558;return _0x313e13(_0x48369d),await _0x23a4de(_0x48369d,_0x406d29,_0x10aabe),_0x2f7974;}catch(_0x7e900a){return!0x1;}function _0x313e13(_0x4eb5bc){const _0x280364=_0x1cc9db(_0x4eb5bc);_0x280364&&_0x280364[_0x76c1ec([0x61,0x6c,0x67])]==_0x76c1ec([0x45,0x53,0x32,0x35,0x36])||(_0x2f7974=!0x1);}async function _0x23a4de(_0x3a898f,_0x10c31d,_0x48566f){const _0x231278=window[_0x76c1ec([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x76c1ec([0x66,0x72,0x6f,0x6d])](_0x15fa56(_0x48566f),_0x4252f0=>_0x4252f0[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18b66a=new window[(_0x76c1ec([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x76c1ec([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a898f+_0x76c1ec([0x2e])+_0x10c31d),_0x250c82=window[_0x76c1ec([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x76c1ec([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x250c82)return;const _0x22dcee=await _0x250c82[_0x76c1ec([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x76c1ec([0x6a,0x77,0x6b]),_0x1cc9ae,{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x76c1ec([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x250c82[_0x76c1ec([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x45,0x43,0x44,0x53,0x41]),[_0x76c1ec([0x68,0x61,0x73,0x68])]:{[_0x76c1ec([0x6e,0x61,0x6d,0x65])]:_0x76c1ec([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x22dcee,_0x231278,_0x18b66a)||(_0x2f7974=!0x1);}}function _0x1cc9db(_0x56ab08){return _0x56ab08[_0x76c1ec([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x76c1ec([0x65,0x79]))?JSON[_0x76c1ec([0x70,0x61,0x72,0x73,0x65])](_0x15fa56(_0x56ab08)):null;}function _0x15fa56(_0x1d39f8){return window[_0x76c1ec([0x61,0x74,0x6f,0x62])](_0x1d39f8[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x76c1ec([0x2b]))[_0x76c1ec([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x76c1ec([0x2f])));}function _0x3c1342(_0x9b1ecd){let _0x24de80=0x1505;function _0x30223e(_0x12e6ef){for(let _0x123405=0x0;_0x123405<_0x12e6ef[_0x76c1ec([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x123405++){const _0x35ae9d=_0x12e6ef[_0x76c1ec([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x123405);_0x24de80=(_0x24de80<<0x5)+_0x24de80+_0x35ae9d,_0x24de80&=_0x24de80;}}function _0x47d368(_0x542072){Array[_0x76c1ec([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x542072)?_0x542072[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47d368):_0x542072&&typeof _0x542072==_0x76c1ec([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x76c1ec([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x542072)[_0x76c1ec([0x73,0x6f,0x72,0x74])]()[_0x76c1ec([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1b5729,_0x481b67])=>{_0x30223e(_0x1b5729),_0x47d368(_0x481b67);}):_0x30223e(window[_0x76c1ec([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x542072));}return _0x47d368(_0x9b1ecd),_0x24de80>>>0x0;}function _0x17c61a(_0x271e7d){return _0x271e7d[_0x76c1ec([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x76c1ec([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x76c1ec([0x30]));}function _0x716317(_0x518e10){return _0x518e10[_0x76c1ec([0x73,0x70,0x6c,0x69,0x74])]('')[_0x76c1ec([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x76c1ec([0x6a,0x6f,0x69,0x6e])]('');}function _0x50eb6b(_0x3a71e3){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x68,0x61,0x73])](_0x3a71e3);}function _0x250daf(_0x2995bc){return _0xdb9936[_0x76c1ec([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x76c1ec([0x67,0x65,0x74])](_0x2995bc);}function _0x63c05b(){}function _0x76c1ec(_0x7e69d5){return _0x7e69d5['map'](_0xfd7570=>String['fromCharCode'](_0xfd7570))['join']('');}_0x4d666e(await _0x33048f());}(this);}set['adapter'](_0xab7028){if(this['_adapter'])throw new _0x1ac58c('track-changes-adapter-already-set',this);this['_adapter']=_0xab7028;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1529ce=!0x1,toJSON:_0x5518f3=!0x1}={}){const _0x5ecfc4=[];for(const _0x52192a of this['_suggestions']['values']())_0x1529ce&&!_0x52192a['isInContent']||_0x5ecfc4['push'](_0x52192a);return _0x5518f3?_0x5ecfc4['map'](_0x57d02b=>_0x57d02b['toJSON']()):_0x5ecfc4;}['getSuggestion'](_0x3f32bc){const _0x12def5=this['_suggestions']['get'](_0x3f32bc);if(!_0x12def5)throw new _0x1ac58c('track-changes-suggestion-not-found',this);return _0x12def5;}['hasSuggestion'](_0xd0a9ab){return this['_suggestions']['has'](_0xd0a9ab);}['addSuggestionData'](_0x1cfd7c){const {authorId:_0x7a3535,id:_0x12db86,attributes:_0x41479c}=_0x1cfd7c,[_0x1049bc,_0xdb93e3]=_0x1cfd7c['type']['split'](':'),_0x3103eb=this['_suggestions']['get'](_0x12db86)||this['_createSuggestion'](_0x1049bc,_0xdb93e3,_0x12db86,_0x7a3535,_0x41479c);if(this['_addThreadToSuggestion'](_0x3103eb),this['_checkSuggestionCorrectness'](_0x3103eb,_0x1049bc,_0xdb93e3||null,_0x7a3535),_0x3103eb['createdAt']=_0x1cfd7c['createdAt'],_0x3103eb['_isDataLoaded']=!0x0,_0x41479c&&_0x41479c['@external']){const _0x353cde=_0x41479c['@external'],_0x3464ea=this['_getExternalAuthor'](_0x353cde['authorName']);_0x3103eb['authoredAt']=_0x353cde['createdAt'],_0x3103eb['author']=_0x3464ea,_0x3103eb['isExternal']=!0x0;}else _0x3103eb['authoredAt']=_0x1cfd7c['createdAt'];switch(_0x1cfd7c['data']&&(_0x3103eb['data']=_0x1cfd7c['data']),_0x1cfd7c['attributes']&&(_0x3103eb['attributes']=_0x1cfd7c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3103eb['_saved']=!0x0),this['_suggestionState']['get'](_0x3103eb)){case'notReady':this['_suggestionState']['set'](_0x3103eb,'dataReady');break;case'markerReady':_0x3103eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3103eb])),this['_refreshSuggestionsChain'](new Set([_0x3103eb])),this['_suggestionState']['set'](_0x3103eb,'ready'),this['fire']('suggestionLoaded',_0x3103eb)):this['_suggestionState']['set'](_0x3103eb,'removed');}return _0x3103eb;}['acceptSuggestion'](_0x120d15){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x58762e of _0x120d15['getAllAdjacentSuggestions']())_0x58762e['accept']();});});}['discardSuggestion'](_0x3a16f9){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16cc9e of _0x3a16f9['getAllAdjacentSuggestions']())_0x16cc9e['discard']();});});}['enableCommand'](_0x1b130e,_0x11d776){const _0x3bd327=this['editor']['commands']['get'](_0x1b130e);if(!_0x3bd327)throw new _0x1ac58c('track-changes-command-not-found',this,{'commandName':_0x1b130e});if(this['_enabledCommands']['has'](_0x3bd327))throw new _0x1ac58c('track-changes-enable-command-twice',this,{'commandName':_0x1b130e});this['_enabledCommands']['add'](_0x3bd327),_0x11d776&&_0x3bd327['on']('execute',(_0x518cd4,_0x8ad2a3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8ad2a3['length']>0x0&&_0x8ad2a3[_0x8ad2a3['length']-0x1]&&_0x8ad2a3[_0x8ad2a3['length']-0x1]['forceDefaultExecution']?_0x8ad2a3['pop']():(_0x518cd4['return']=_0x11d776((..._0xec6a43)=>_0x3bd327['execute'](..._0xec6a43,{'forceDefaultExecution':!0x0}),..._0x8ad2a3),_0x518cd4['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4a36b6){let _0x586619,_0x4d34ba;const _0x965703=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x586619=_0x4a36b6();}catch(_0x21d1b7){_0x4d34ba=_0x21d1b7;}return _0x965703||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4d34ba&&_0x1ac58c['rethrowUnexpectedError'](_0x4d34ba,this),_0x586619;}['markInsertion'](_0x1441ed,_0x5e94f9=null,_0x55557a={}){if(_0x1441ed['isCollapsed'])return null;const _0x286975=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x109c3b,meta:_0x1d2c16}of this['_findSuggestions'](_0x1441ed,'insertion'))if(_0x1d2c16['isOwn']){if(!_0x1d2c16['isNextTo']){if(_0x1d2c16['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x109c3b,_0x55557a))continue;return _0x109c3b;}if(zt(_0x109c3b,_0x55557a))return _0x109c3b;this['_breakSuggestionMarker'](_0x109c3b,_0x1441ed['start'],_0x1441ed['end']);break;}if(_0x5e94f9==_0x109c3b['subType']&&zt(_0x109c3b,_0x55557a)){const _0x2a1967=_0x109c3b['getFirstRange']();return _0x2a1967['start']['isEqual'](_0x1441ed['end'])?this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x1441ed['start'],_0x2a1967['end'])):this['_setSuggestionRange'](_0x109c3b,this['_model']['createRange'](_0x2a1967['start'],_0x1441ed['end'])),_0x109c3b;}}const _0x11f172=_0xb9e80(),_0xb4b92d=_0x286975['id'],_0x19530a=_0x5e94f9?'insertion:'+_0x5e94f9:'insertion',_0x17d097=this['_setSuggestionData']({'id':_0x11f172,'type':_0x19530a,'createdAt':new Date(),'authorId':_0xb4b92d,'attributes':_0x55557a});return this['_addSuggestionMarker'](_0x19530a,_0x11f172,_0xb4b92d,_0x1441ed),_0x17d097;}['markMultiRangeInsertion'](_0x3fb594,_0x4a70d8='multi',_0x6bc1c9={}){const _0x8b723c=this['editor']['plugins']['get']('Users')['me'],_0x2929c7=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4a70d8,'join');for(const _0x37fca3 of this['getSuggestions']())if(_0x37fca3['author']['id']==_0x8b723c['id']&&'insertion'==_0x37fca3['type']&&_0x37fca3['subType']==_0x4a70d8&&zt(_0x37fca3,_0x6bc1c9)&&(_0x2929c7(_0x37fca3['getRanges'](),_0x3fb594)||_0x2929c7(_0x3fb594,_0x37fca3['getRanges']()))){for(const _0x42a639 of _0x3fb594)_0x37fca3['addRange'](_0x42a639);return _0x37fca3;}for(const {suggestion:_0xe04321,meta:_0x17489e}of this['_findSuggestions'](_0x3fb594,'insertion')){if(!_0x17489e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x17489e['containsRangeInObject'])continue;if(!zt(_0xe04321,_0x6bc1c9))continue;let _0x26d4d0=!0x0;for(const _0xbfec45 of _0xe04321['getRanges']())for(const _0x228f44 of _0x3fb594)if(!_0xbfec45['containsRange'](_0x228f44)){_0x26d4d0=!0x1;break;}if(_0x26d4d0)return _0xe04321;}const _0x554758=_0xb9e80(),_0x247888=_0x8b723c['id'],_0x46cc21='insertion:'+_0x4a70d8,_0x2ac967=this['_setSuggestionData']({'id':_0x554758,'type':_0x46cc21,'createdAt':new Date(),'authorId':_0x247888,'attributes':_0x6bc1c9});for(const _0x1e8e2f of _0x3fb594)this['_addSuggestionMarker'](_0x46cc21,_0x554758,_0x247888,_0x1e8e2f,u['getMultiRangeId']());return _0x2ac967;}['markInlineFormat'](_0x4dd38e,_0x2b2f9a,_0x460fdc=null,_0x5be923={}){if(_0x460fdc=_0x460fdc||Gt(_0x2b2f9a),_0x4dd38e['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5c0e79=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');return this['forceDefaultExecution'](()=>_0x5c0e79([_0x4dd38e],_0x2b2f9a,_0x5be923)),null;}const _0x442f74=this['editor']['plugins']['get']('Users')['me'],_0x331812=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5bc958,meta:_0xe9c38a}of this['_findSuggestions'](_0x4dd38e,'insertion'))_0xe9c38a['isOwn']&&!_0xe9c38a['isInsideObject']&&_0x331812['push'](..._0x5bc958['getRanges']());}const _0xe3379e=function(_0x3495d0,_0x5bb00d){const _0x34331f=[];for(const _0x545bd4 of _0x5bb00d){const _0x464ced=_0x3495d0['getIntersection'](_0x545bd4);_0x464ced&&_0x34331f['push'](_0x464ced);}return _0x34331f;}(_0x4dd38e,_0x331812),_0x3a7969=function(_0x16db2d,_0x137e97){const _0x456ec3=[_0x16db2d];for(const _0x8f2b76 of _0x137e97){let _0x146fa0=0x0;for(;_0x146fa0<_0x456ec3['length'];){const _0x35e29c=_0x456ec3[_0x146fa0]['getDifference'](_0x8f2b76);_0x456ec3['splice'](_0x146fa0,0x1,..._0x35e29c),_0x146fa0+=_0x35e29c['length'];}}return _0x456ec3;}(_0x4dd38e,_0x331812);_0xe3379e['length']&&this['_model']['change'](()=>{for(const _0x151c94 of _0xe3379e){const _0x5d20cf=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x460fdc,'accept');this['forceDefaultExecution'](()=>_0x5d20cf([_0x151c94],_0x2b2f9a,_0x5be923));}});for(const _0x4ce756 of _0x3a7969){let _0x4aaadf=null,_0xf3c447=_0x4ce756['start'],_0xf60c3=_0x4ce756['end'];for(const {suggestion:_0x203789,meta:_0x10bf06}of this['_findSuggestions'](_0x4ce756,'formatInline')){if(!_0x10bf06['isOwn'])continue;if(_0x203789['subType']!=_0x460fdc)continue;if(!zt(_0x203789,_0x5be923))continue;const _0x1865a4=_0x203789['getFirstRange']();if(_0x1865a4['containsRange'](_0x4ce756,!0x0))return null;_0xf3c447=_0xf3c447['isBefore'](_0x1865a4['start'])?_0xf3c447:_0x1865a4['start'],_0xf60c3=_0xf60c3['isAfter'](_0x1865a4['end'])?_0xf60c3:_0x1865a4['end'],_0x4aaadf?_0x1865a4['start']['isBefore'](_0x4aaadf['getFirstRange']()['start'])?(_0x4aaadf['removeMarkers'](),_0x4aaadf=_0x203789):_0x203789['removeMarkers']():_0x4aaadf=_0x203789;}const _0xd77b32=this['_model']['createRange'](_0xf3c447,_0xf60c3);if(_0x4aaadf)this['_setSuggestionRange'](_0x4aaadf,_0xd77b32);else{const _0x33fab6=_0xb9e80(),_0x581a80=_0x442f74['id'];this['_setSuggestionData']({'id':_0x33fab6,'type':'formatInline:'+_0x460fdc,'data':_0x2b2f9a,'createdAt':new Date(),'authorId':_0x581a80,'attributes':_0x5be923}),this['_addSuggestionMarker']('formatInline:'+_0x460fdc,_0x33fab6,_0x581a80,_0xd77b32);}}return null;}['markBlockFormat'](_0x3991ef,_0x267560,_0x3e220d=[],_0x146442=null,_0x94b190={}){_0x267560['formatGroupId']||(_0x267560['formatGroupId']=_0x267560['commandName']),_0x267560['multipleBlocks']=_0x3991ef['is']('range'),_0x146442=_0x146442||Gt(_0x267560);const _0x152d3d=_0x3e220d['map'](_0x711904=>Jt(_0x711904,this['_model'])),_0x10e788=_0x3991ef['is']('range')?_0x3991ef:Jt(_0x3991ef,this['_model']);if('never'===this['_trackFormatChanges']){const _0x260288=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x260288([_0x10e788],_0x267560,_0x94b190)),null;}_0x152d3d['push'](_0x10e788);let _0x568074=!0x0;for(const _0x494ef1 of _0x152d3d)if(!this['_rangeIsInLocalUserInsertion'](_0x494ef1)){_0x568074=!0x1;break;}if(_0x568074&&'always'!==this['_trackFormatChanges']){const _0x4ed6f2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x146442,'accept');return this['forceDefaultExecution'](()=>_0x4ed6f2([_0x10e788],_0x267560,_0x94b190)),null;}let _0xe8be4f=null,_0x45cee4=_0x10e788['start'],_0x51c95b=_0x10e788['end'];for(const {suggestion:_0x1fe0a1,meta:_0x5b09e9}of this['_findSuggestions'](_0x10e788,'formatBlock')){if(!_0x5b09e9['isOwn'])continue;if(_0x5b09e9['isNextTo']||_0x5b09e9['containsRangeInObject']||_0x5b09e9['isInsideObject'])continue;if(_0x1fe0a1['data']['formatGroupId']!=_0x267560['formatGroupId'])continue;if(!zt(_0x1fe0a1,_0x94b190))continue;const _0x23efb0=_0x1fe0a1['getFirstRange']();if(_0x1fe0a1['subType']==_0x146442){if(_0x23efb0['containsRange'](_0x10e788,!0x0))return null;_0x45cee4=_0x45cee4['isBefore'](_0x23efb0['start'])?_0x45cee4:_0x23efb0['start'],_0x51c95b=_0x51c95b['isAfter'](_0x23efb0['end'])?_0x51c95b:_0x23efb0['end'],_0xe8be4f?_0x23efb0['start']['isBefore'](_0xe8be4f['getFirstRange']()['start'])?(_0xe8be4f['removeMarkers'](),_0xe8be4f=_0x1fe0a1):_0x1fe0a1['removeMarkers']():_0xe8be4f=_0x1fe0a1;}else{const _0x947ced=_0x10e788['getIntersection'](_0x23efb0);this['_cutOutSuggestionMarker'](_0x1fe0a1,_0x947ced);}}const _0xc16e5d=this['editor']['plugins']['get']('Users')['me'],_0x31a7e6=_0xb9e80(),_0x3c65a3=_0xc16e5d['id'];if(_0xe8be4f)return this['_setSuggestionRange'](_0xe8be4f,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0xe8be4f;{const _0x5d1f56=this['_setSuggestionData']({'id':_0x31a7e6,'type':'formatBlock:'+_0x146442,'data':_0x267560,'createdAt':new Date(),'authorId':_0x3c65a3,'attributes':_0x94b190});return this['_addSuggestionMarker']('formatBlock:'+_0x146442,_0x31a7e6,_0x3c65a3,this['_model']['createRange'](_0x45cee4,_0x51c95b)),_0x5d1f56;}}['markMultiRangeBlockFormat'](_0x36d445,_0x36dd11,_0x43ac73=[],_0x56a57c=null,_0x52f760={}){_0x36dd11['formatGroupId']||(_0x36dd11['formatGroupId']=_0x36dd11['commandName']);const _0x86122e=_0x36d445[0x0];_0x36dd11['multipleBlocks']=_0x86122e['is']('range'),_0x56a57c=_0x56a57c||Gt(_0x36dd11);const _0x54e27d=_0x43ac73['map'](_0x33fe34=>Jt(_0x33fe34,this['_model'])),_0x69c33f=_0x86122e['is']('range')?_0x36d445:_0x36d445['map'](_0x5151ab=>Jt(_0x5151ab,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2e4a0d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x2e4a0d(_0x69c33f,_0x36dd11,_0x52f760)),null;}_0x54e27d['push'](..._0x69c33f);let _0x527fd3=!0x0;for(const _0x43427f of _0x54e27d)if(!this['_rangeIsInLocalUserInsertion'](_0x43427f)){_0x527fd3=!0x1;break;}if(_0x527fd3&&'always'!==this['_trackFormatChanges']){const _0x3913b7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'accept');return this['forceDefaultExecution'](()=>_0x3913b7(_0x69c33f,_0x36dd11,_0x52f760)),null;}const _0x5ca16c=this['editor']['plugins']['get']('Users')['me'];for(const _0x202ea9 of this['getSuggestions']()){if(_0x202ea9['author']['id']!=_0x5ca16c['id'])continue;if('formatBlock'!=_0x202ea9['type']||_0x202ea9['data']['formatGroupId']!=_0x36dd11['formatGroupId'])continue;if(!zt(_0x202ea9,_0x52f760))continue;const _0x6cc88a=_0x202ea9['subType']==_0x56a57c;for(let _0x3dcddb=0x0;_0x3dcddb<_0x69c33f['length'];_0x3dcddb++){const _0x4c0bdf=_0x69c33f[_0x3dcddb];for(const _0x5f1cf4 of _0x202ea9['getMarkers']()){const _0x5251b2=_0x5f1cf4['getRange']();if(_0x4c0bdf['isEqual'](_0x5251b2)){_0x6cc88a?(_0x69c33f['splice'](_0x3dcddb,0x1),_0x3dcddb--):_0x202ea9['removeMarker'](_0x5f1cf4['name']);break;}}}}if(0x0==_0x69c33f['length'])return null;const _0x3b5557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x56a57c,'join');for(const _0x5530a5 of this['getSuggestions']())if(_0x5530a5['author']['id']==_0x5ca16c['id']&&'formatBlock'==_0x5530a5['type']&&_0x5530a5['data']['formatGroupId']==_0x36dd11['formatGroupId']&&_0x5530a5['subType']==_0x56a57c&&zt(_0x5530a5,_0x52f760)&&(_0x3b5557(_0x5530a5['getRanges'](),_0x69c33f)||_0x3b5557(_0x69c33f,_0x5530a5['getRanges']()))){for(const _0x1b359d of _0x69c33f)_0x5530a5['addRange'](_0x1b359d);return _0x5530a5;}const _0x48e440=_0xb9e80(),_0x1caa83=_0x5ca16c['id'],_0x50dfd5='formatBlock:'+_0x56a57c,_0x473e68=this['_setSuggestionData']({'id':_0x48e440,'type':_0x50dfd5,'data':_0x36dd11,'createdAt':new Date(),'authorId':_0x1caa83,'attributes':_0x52f760});for(const _0x4baf13 of _0x69c33f)this['_addSuggestionMarker'](_0x50dfd5,_0x48e440,_0x1caa83,_0x4baf13,u['getMultiRangeId']());return _0x473e68;}['markDeletion'](_0x46ce34,_0x2bdab5=null,_0x1f8d99={}){if(_0x46ce34['isCollapsed'])return null;const _0x2484aa=this['editor']['plugins']['get']('Users')['me'],_0x2d28aa=new _0x582953(_0x46ce34['start'],_0x46ce34['end']);for(const {suggestion:_0x1cbd71,meta:_0x10100f}of this['_findSuggestions'](_0x2d28aa,'insertion'))if(_0x10100f['isOwn']&&!_0x10100f['isNextTo']){if(_0x1cbd71['isMultiRange']){const _0x4e5dd7=_0x1cbd71['getRanges']()['filter'](_0x3fa537=>'$graveyard'!=_0x3fa537['root']['rootName']);_0x4e5dd7['every'](_0xac9295=>_0x2d28aa['containsRange'](_0xac9295,!0x0))&&_0x1cbd71['discard']();if(_0x4e5dd7['some'](_0x4dbc58=>_0x4dbc58['containsRange'](_0x2d28aa,!0x0))){const _0x1456c3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2bdab5,'accept');return this['forceDefaultExecution'](()=>_0x1456c3([_0x2d28aa],null,_0x1f8d99)),null;}}else{const _0xbe4650=_0x2d28aa['getIntersection'](_0x1cbd71['getFirstRange']());null!==_0xbe4650&&_0x1cbd71['_onDiscard']([_0xbe4650],null,_0x1f8d99);}}if(_0x2d28aa['detach'](),_0x2d28aa['isCollapsed']||'$graveyard'==_0x2d28aa['root']['rootName'])return null;let _0x55cff1=null,_0x44e1c5=_0x2d28aa['start'],_0x27eb52=_0x2d28aa['end'];const _0x1f8b43=this['_findSuggestions'](_0x2d28aa,'deletion');for(const {suggestion:_0x138a40,meta:_0xe12380}of _0x1f8b43){const _0x46143c=this['_model']['createRange'](_0x44e1c5,_0x27eb52);if(_0xe12380['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe12380['containsRangeInObject']&&!_0xe12380['isInsideObject'])){if(_0x138a40['isMultiRange']){if(!zt(_0x138a40,_0x1f8d99))continue;let _0x3872eb=!0x0;for(const _0x6d85e7 of _0x138a40['getRanges']()){if(_0x6d85e7['containsRange'](_0x46143c,!0x0))return _0x138a40;_0x46143c['containsRange'](_0x6d85e7)||(_0x3872eb=!0x1);}_0x3872eb&&_0x138a40['discard']();}else{const _0x3629c0=_0x138a40['getFirstRange']();if(_0x3629c0['containsRange'](_0x46143c,!0x0))return _0x138a40;if(!zt(_0x138a40,_0x1f8d99)){_0x46143c['containsRange'](_0x3629c0)?_0x138a40['removeMarkers']():_0x3629c0['containsPosition'](_0x44e1c5)?_0x44e1c5=_0x3629c0['end']:_0x3629c0['containsPosition'](_0x27eb52)&&(_0x27eb52=_0x3629c0['start']);continue;}_0x44e1c5=_0x44e1c5['isBefore'](_0x3629c0['start'])?_0x44e1c5:_0x3629c0['start'],_0x27eb52=_0x27eb52['isAfter'](_0x3629c0['end'])?_0x27eb52:_0x3629c0['end'],_0x1f8d99=Object['assign']({},_0x138a40['attributes']),_0x55cff1?_0x3629c0['start']['isBefore'](_0x55cff1['getFirstRange']()['start'])?(_0x55cff1['removeMarkers'](),_0x55cff1=_0x138a40):_0x138a40['removeMarkers']():_0x55cff1=_0x138a40;}}}if(_0x55cff1)return this['_setSuggestionRange'](_0x55cff1,this['_model']['createRange'](_0x44e1c5,_0x27eb52)),_0x55cff1;{const _0x5e5b18=_0xb9e80(),_0x2d2693=this['_model']['createRange'](_0x44e1c5,_0x27eb52),_0x3aabb4=_0x2484aa['id'],_0x7b100b=_0x2bdab5?'deletion:'+_0x2bdab5:'deletion',_0xc4a1d9=this['_setSuggestionData']({'id':_0x5e5b18,'type':_0x7b100b,'createdAt':new Date(),'authorId':_0x3aabb4,'attributes':_0x1f8d99});return this['_addSuggestionMarker'](_0x7b100b,_0x5e5b18,_0x3aabb4,_0x2d2693),_0xc4a1d9;}}['markMultiRangeDeletion'](_0x4cd747,_0x515909='multi',_0x2f3904={}){const _0x3d0cb6=this['editor']['plugins']['get']('Users')['me'],_0x45c6ac=_0x4cd747['map'](_0x15e2b3=>new _0x582953(_0x15e2b3['start'],_0x15e2b3['end'])),_0x1bce74=new Set();for(const {suggestion:_0x4c0aa6,meta:_0x490027}of this['_findSuggestions'](_0x45c6ac,'insertion'))_0x490027['isOwn']&&!_0x490027['isNextTo']&&_0x1bce74['add'](_0x4c0aa6);for(const _0x25129d of _0x1bce74)if(_0x25129d['isMultiRange']){const _0x1d0cf0=_0x25129d['getRanges']();(!_0x25129d['attributes']||!_0x25129d['attributes']['skipNestingCheck'])&&(_0x1d0cf0['every'](_0x1e4e5a=>_0x45c6ac['some'](_0xcb209f=>_0xcb209f['containsRange'](_0x1e4e5a,!0x0)))&&_0x25129d['discard']());if(_0x45c6ac['every'](_0x1de499=>_0x1d0cf0['some'](_0xdf9ade=>_0xdf9ade['containsRange'](_0x1de499,!0x0)))){const _0x46e58f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x46e58f(_0x4cd747,null,_0x2f3904)),null;}}else{const _0x8c5376=_0x25129d['getFirstRange']();_0x45c6ac['some'](_0x7ac22b=>_0x7ac22b['containsRange'](_0x8c5376,!0x0))&&_0x25129d['discard']();if(_0x45c6ac['every'](_0xada043=>_0x8c5376['containsRange'](_0xada043,!0x0))){const _0x578bd0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'accept');return this['forceDefaultExecution'](()=>_0x578bd0(_0x45c6ac,null,_0x2f3904)),null;}}const _0x3223cd=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x515909,'join');let _0x4ef038=null;for(const _0x2e0808 of this['getSuggestions']())if(_0x2e0808['author']['id']==_0x3d0cb6['id']&&_0x2e0808['isInContent']&&'deletion'==_0x2e0808['type']&&_0x2e0808['subType']==_0x515909&&zt(_0x2e0808,_0x2f3904)&&(_0x3223cd(_0x2e0808['getRanges'](),_0x45c6ac)||_0x3223cd(_0x45c6ac,_0x2e0808['getRanges']()))){if(_0x4ef038){if(_0x2e0808['commentThread']&&_0x2e0808['commentThread']['length'])continue;for(const _0x467a42 of _0x2e0808['getRanges']())_0x4ef038['isIntersectingWithRange'](_0x467a42)||_0x4ef038['addRange'](_0x467a42);_0x2e0808['removeMarkers']();}else{_0x4ef038=_0x2e0808;for(const _0x4fed6b of _0x45c6ac)_0x2e0808['isIntersectingWithRange'](_0x4fed6b)||_0x2e0808['addRange'](_0x4fed6b);}}if(_0x4ef038)return _0x4ef038;_0x1bce74['clear']();for(const {suggestion:_0x9eee91,meta:_0xad0d3b}of this['_findSuggestions'](_0x45c6ac,'deletion'))_0xad0d3b['isOwn']&&(this['_mergeNestedSuggestions']||!_0xad0d3b['containsRangeInObject']&&!_0xad0d3b['isInsideObject'])&&zt(_0x9eee91,_0x2f3904)&&_0x1bce74['add'](_0x9eee91);for(const _0x1c590b of _0x1bce74){const _0x5e19dc=_0x1c590b['getRanges']();if(!_0x2f3904||!_0x2f3904['skipNestingCheck']){if(_0x45c6ac['every'](_0x40c083=>_0x5e19dc['some'](_0x48506e=>_0x48506e['containsRange'](_0x40c083,!0x0))))return _0x1c590b;}(!_0x1c590b['attributes']||!_0x1c590b['attributes']['skipNestingCheck'])&&(_0x5e19dc['every'](_0x187e47=>_0x45c6ac['some'](_0x1636ce=>_0x1636ce['containsRange'](_0x187e47,!0x0)))&&_0x1c590b['discard']());}const _0x1ca76a=_0xb9e80(),_0x1e49c4=_0x3d0cb6['id'],_0x39f73b='deletion:'+_0x515909,_0x120f6e=this['_setSuggestionData']({'id':_0x1ca76a,'type':_0x39f73b,'createdAt':new Date(),'authorId':_0x1e49c4,'attributes':_0x2f3904});for(const _0x187726 of _0x45c6ac)_0x187726['detach'](),_0x187726['isCollapsed']||'$graveyard'==_0x187726['root']['rootName']||this['_addSuggestionMarker'](_0x39f73b,_0x1ca76a,_0x1e49c4,_0x187726,u['getMultiRangeId']());return _0x120f6e;}['markAttributeChange'](_0x262594,_0x1aa7be,_0x14ddc9,_0x240751,_0x27bbae){if(_0x262594['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x8445f4=this['editor']['plugins']['get']('Users')['me']['id'],_0x12109e=Array['from'](this['_suggestions']['values']())['filter'](_0x1e94fe=>'attribute'==_0x1e94fe['type']&&_0x1e94fe['data']['key']==_0x1aa7be&&_0x1e94fe['isIntersectingWithRange'](_0x262594));if('default'===this['_trackFormatChanges']){const _0xbfb22b=this['_findSuggestions'](_0x262594,'insertion')['filter'](({meta:_0x221cf0})=>_0x221cf0['isOwn']&&!_0x221cf0['isInsideObject']&&!_0x221cf0['isNextTo'])['map'](({suggestion:_0x2d1fa9})=>_0x2d1fa9);_0x12109e['unshift'](..._0xbfb22b);}const _0x4e519e=new Map([[_0x262594,_0x14ddc9]]);for(const _0x38919d of _0x12109e){const _0x5cd32c='attribute'==_0x38919d['type']?_0x38919d['data']['oldValue']:void 0x0,_0x31bcce=_0x38919d['getFirstRange'](),_0x1bdcdc=Array['from'](_0x4e519e['keys']())['find'](_0x53997a=>_0x53997a['isIntersecting'](_0x31bcce));if(!_0x1bdcdc)continue;const _0x3a98c5=_0x1bdcdc['getDifference'](_0x31bcce);this['_isBlockAttribute'](_0x1aa7be)&&'insertion'==_0x38919d['type']&&0x0!=_0x3a98c5['length']||(_0x4e519e['delete'](_0x1bdcdc),_0x3a98c5['forEach'](_0xb4b9f1=>{_0x4e519e['set'](_0xb4b9f1,_0x14ddc9);}),'insertion'!=_0x38919d['type']&&_0x5cd32c!=_0x240751&&_0x4e519e['set'](_0x1bdcdc['getIntersection'](_0x31bcce),_0x5cd32c));}const _0x38eef5=[];for(const [_0x46ad88,_0x532ecd]of _0x4e519e){const _0x207374=_0xb9e80(),_0x15d88a={'key':_0x1aa7be,'oldValue':_0x532ecd,'newValue':_0x240751};_0x1aa7be['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':_0x1aa7be});const _0x292199=('attribute:'+(_0x1aa7be+'|'+Gt({'newValue':_0x240751})))['substring'](0x0,0x3c),_0x2fe88e=this['_setSuggestionData']({'id':_0x207374,'type':_0x292199,'data':_0x15d88a,'createdAt':new Date(),'authorId':_0x8445f4,'attributes':_0x27bbae});_0x38eef5['push'](_0x2fe88e),this['_addSuggestionMarker'](_0x292199,_0x207374,_0x8445f4,_0x46ad88);}return _0x38eef5;}['enableDefaultAttributesIntegration'](_0x2751ea){this['enableCommand'](_0x2751ea,(_0xbc7a12,..._0xbe6a29)=>{this['_recordAttributeChanges'](()=>{_0xbc7a12(..._0xbe6a29);});});}['registerBlockAttribute'](_0x58dc27){this['_blockAttributeKeys']['add'](_0x58dc27);}['registerInlineAttribute'](_0x25a79e){this['_inlineAttributeKeys']['add'](_0x25a79e);}['_getAttributeKey'](_0x85a089){return'attribute'==_0x85a089['type']?_0x85a089['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2f7f01,_0x23f4f3){const _0x4e3ebb=_0x2f7f01['getFirstMarker']();this['_model']['change'](_0x114818=>{_0x114818['updateMarker'](_0x4e3ebb,{'range':_0x23f4f3});});}['_addThreadToSuggestion'](_0x10caf4){const _0x1ac476=_0x10caf4['id'],_0x22ec79=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x1ac476)||this['_commentsRepository']['addCommentThread']({'channelId':_0x22ec79,'threadId':_0x1ac476,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5c9b7c=this['_commentsRepository']['getCommentThread'](_0x1ac476);_0x5c9b7c['unbind']('isRemovable'),_0x5c9b7c['isRemovable']=!0x1,_0x10caf4['commentThread']=_0x5c9b7c;}['_checkSuggestionCorrectness'](_0x139ba2,_0x4950ab,_0x2e6ee2,_0xf58cca){if(_0x139ba2['type']!=_0x4950ab||_0x139ba2['subType']!=_0x2e6ee2||_0x139ba2['creator']['id']!=_0xf58cca)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ac58c('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x1a3365,_0xca2416){const _0x113b38=_0x1a3365['getFirstRange']();if(_0xca2416['isEqual'](_0x113b38))_0x1a3365['removeMarkers']();else{if(_0x113b38['containsRange'](_0xca2416)){const _0x103d37=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x103d37));const _0x5009b1=_0xb9e80(),_0x5ddfcc=_0x1a3365['creator']['id'],_0x13548f=_0x1a3365['type']+':'+_0x1a3365['subType'];this['_setSuggestionData']({'id':_0x5009b1,'type':_0x13548f,'createdAt':new Date(),'authorId':_0x5ddfcc,'data':_0x1a3365['data'],'attributes':_0x1a3365['attributes']});const _0x45cd32=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after'),_0x30deed=this['_model']['createRange'](_0x45cd32,_0x113b38['end']);this['_addSuggestionMarker'](_0x13548f,_0x5009b1,_0x5ddfcc,_0x30deed);}else{if(_0x113b38['containsPosition'](_0xca2416['start'])){const _0x458a5d=this['_model']['createPositionAt'](_0xca2416['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x113b38['start'],_0x458a5d));}else{const _0x306e8d=this['_model']['createPositionAt'](_0xca2416['end']['parent'],'after');this['_setSuggestionRange'](_0x1a3365,this['_model']['createRange'](_0x306e8d,_0x113b38['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6da2d3){for(const {suggestion:_0x4a60c4,meta:_0x1c4a29}of this['_findSuggestions'](_0x6da2d3,'insertion')){if(!_0x1c4a29['isOwn'])continue;const _0x54ed9a=_0x4a60c4['getRanges']();for(const _0x3a819e of _0x54ed9a)if(!_0x6da2d3['getDifference'](_0x3a819e)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x190f0b){const _0xed6c00=this['editor']['plugins']['get']('Users')['getUser'](_0x190f0b);if(!_0xed6c00)throw new _0x1ac58c('track-changes-user-not-found',this);return _0xed6c00;}['_getExternalAuthor'](_0x49a0db){const _0x90cf67=this['editor']['plugins']['get']('Users'),_0x23a824=_0x3d1978('external:'+_0x49a0db),_0x22170b=_0x90cf67['getUser'](_0x23a824);return _0x22170b||_0x90cf67['addUser']({'id':_0x23a824,'name':_0x49a0db});}['_createSuggestion'](_0x323883,_0x354952,_0x28c231,_0x233cf5,_0x431707){const _0x4ff951=this['_getAuthorFromId'](_0x233cf5),_0x4de63e=this['_suggestionFactory']['buildSuggestion'](_0x323883,_0x354952,_0x28c231,_0x4ff951,_0x431707,_0x3cadae=>{this['_updateSuggestionData'](_0x28c231,{'attributes':_0x3cadae});const _0x111f60=this['getSuggestion'](_0x28c231);this['_joinWithAdjacentSuggestions'](new Set([_0x111f60])),this['_refreshSuggestionsChain'](new Set([_0x111f60]));});return this['listenTo'](_0x4de63e,'accept',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4de63e,'discard',()=>{this['_updateSuggestionData'](_0x28c231,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x28c231,_0x4de63e),this['_suggestionState']['set'](_0x4de63e,'notReady'),_0x4de63e;}['_splitMarkerName'](_0x38a47f){const _0x149e96=_0x38a47f['split'](':');return{'group':_0x149e96[0x0],'type':_0x149e96[0x1],'subType':_0x149e96['length']>=0x5?_0x149e96[0x2]:null,'id':_0x149e96['length']<0x5?_0x149e96[0x2]:_0x149e96[0x3],'authorId':_0x149e96['length']<0x5?_0x149e96[0x3]:_0x149e96[0x4],'markerCount':0x6==_0x149e96['length']?_0x149e96[0x5]:null};}['_breakSuggestionMarker'](_0x127d8e,_0x2b44ce,_0x2e7243){const _0x118536=_0x127d8e['getFirstRange'](),_0x4b891b=_0x118536['start'],_0x2ded0b=_0x118536['end'];this['_setSuggestionRange'](_0x127d8e,this['_model']['createRange'](_0x4b891b,_0x2b44ce));const _0x2f550f=_0xb9e80(),_0x19cd06=_0x127d8e['creator']['id'],_0x38c0a2=_0x127d8e['type']+(_0x127d8e['subType']?':'+_0x127d8e['subType']:'');this['_setSuggestionData']({'id':_0x2f550f,'type':_0x38c0a2,'createdAt':new Date(),'authorId':_0x19cd06,'originalSuggestionId':_0x127d8e['id'],'attributes':_0x127d8e['attributes'],'data':_0x127d8e['data']});const _0x3dea7b=this['_getAttributeKey'](_0x127d8e);('formatBlock'==_0x127d8e['type']||_0x3dea7b&&this['_isBlockAttribute'](_0x3dea7b))&&(_0x2e7243=this['_model']['createPositionBefore'](_0x2e7243['parent'])),this['_addSuggestionMarker'](_0x38c0a2,_0x2f550f,_0x19cd06,this['_model']['createRange'](_0x2e7243,_0x2ded0b));}['_findSuggestions'](_0x531294,_0x261ed8=null){const _0x2ec77f=[],_0x52d728=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x531294)||(_0x531294=[_0x531294]);for(const _0x22137b of this['getSuggestions']()){if(!_0x22137b['isInContent'])continue;if(_0x261ed8&&_0x22137b['type']!=_0x261ed8)continue;let _0x319fa2=!0x1;for(const _0x1af4c4 of _0x22137b['getRanges']()){for(const _0x5407fe of _0x531294){const _0x139001=_0x5407fe['start']['isEqual'](_0x1af4c4['end'])||_0x5407fe['end']['isEqual'](_0x1af4c4['start']);if(_0x139001||_0x5407fe['getIntersection'](_0x1af4c4)){const _0x2df442=_0x5407fe['containsRange'](_0x1af4c4)&&Ut(this['_model']['schema'],_0x1af4c4['start'],_0x5407fe),_0x2afd44=_0x1af4c4['containsRange'](_0x5407fe)&&Ut(this['_model']['schema'],_0x5407fe['start'],_0x1af4c4);_0x2ec77f['push']({'suggestion':_0x22137b,'meta':{'isOwn':_0x52d728==_0x22137b['author'],'isNextTo':_0x139001,'isInsideObject':_0x2df442,'containsRangeInObject':_0x2afd44}}),_0x319fa2=!0x0;break;}}if(_0x319fa2)break;}}return _0x2ec77f;}['_addSuggestionMarker'](_0x5cf1eb,_0x5418f2,_0x1a619c,_0x54d742,_0x3bef08){this['_model']['change'](_0x479e1d=>{let _0x101d91='suggestion:'+_0x5cf1eb+':'+_0x5418f2+':'+_0x1a619c;_0x3bef08&&(_0x101d91=_0x101d91+':'+_0x3bef08),_0x479e1d['addMarker'](_0x101d91,{'range':_0x54d742,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x45183a){const _0x516105=_0x45183a['previous'],_0xf7ffff=_0x45183a['next'];_0x45183a['previous']=null,_0x45183a['next']=null,null!=_0x516105&&_0x516105['next']==_0x45183a&&(_0x516105['next']=_0xf7ffff),null!=_0xf7ffff&&_0xf7ffff['previous']==_0x45183a&&(_0xf7ffff['previous']=_0x516105),'ready'==this['_suggestionState']['get'](_0x45183a)&&(this['_suggestionState']['set'](_0x45183a,'removed'),this['fire']('suggestionUnloaded',_0x45183a,_0x516105,_0xf7ffff));}['_setSuggestionData'](_0x11d8ba){const _0x5a9a55=_0x11d8ba['id'],_0x3877c4=this['addSuggestionData'](_0x11d8ba);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x53f4a2=this['editor']['plugins']['get']('PendingActions'),_0x28a477=_0x3877c4['hasComments'],_0x111824=_0x3877c4['subType']?_0x3877c4['type']+':'+_0x3877c4['subType']:_0x3877c4['type'],_0xa88fcf=this['editor']['locale'],_0x13280f=_0x53f4a2['add'](o(_0xa88fcf,'PENDING_ACTION_SUGGESTION')),_0x33c904={'id':_0x5a9a55,'type':_0x111824,'hasComments':_0x28a477,'data':_0x11d8ba['data']||null,'originalSuggestionId':_0x11d8ba['originalSuggestionId']||null,'attributes':_0x3877c4['attributes']};this['_adapter']['addSuggestion'](_0x33c904)['then'](_0x271afe=>{_0x3877c4['_saved']=!0x0,_0x53f4a2['remove'](_0x13280f),_0x271afe&&_0x271afe['createdAt']&&(this['_suggestions']['get'](_0x5a9a55)['createdAt']=_0x271afe['createdAt']);})['catch'](_0x53dbf7=>{throw _0x42f00c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3877c4['discard']();}),_0x3877c4['stopListening'](),this['_suggestions']['delete'](_0x3877c4['id']),this['_suggestionState']['delete'](_0x3877c4),_0x53dbf7;});}return _0x3877c4;}['_isBlockAttribute'](_0x24b1c4){return this['_blockAttributeKeys']['has'](_0x24b1c4);}['_updateSuggestionData'](_0x3738a4,_0x41c610){const _0xc9d91f=this['editor']['plugins']['get']('PendingActions'),_0x12e4c=this['getSuggestion'](_0x3738a4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x12e4c['_saved']){const _0x48825c=_0xc9d91f['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3738a4,_0x41c610)['then'](()=>{_0xc9d91f['remove'](_0x48825c);});}else _0x12e4c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3738a4,_0x41c610);});}}['_getSuggestionData'](_0x2549fe){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ac58c('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2549fe);}['_handleNewSuggestionMarker'](_0x317926){const {id:_0x28c70f,type:_0x139bb3,subType:_0x41d4f1,authorId:_0x26f04c}=this['_splitMarkerName'](_0x317926),_0x1bf65e=this['_suggestions']['get'](_0x28c70f)||this['_createSuggestion'](_0x139bb3,_0x41d4f1,_0x28c70f,_0x26f04c,{});switch(this['_checkSuggestionCorrectness'](_0x1bf65e,_0x139bb3,_0x41d4f1,_0x26f04c),this['_suggestionState']['get'](_0x1bf65e)){case'notReady':this['_getSuggestionData'](_0x28c70f)['then'](_0x246069=>{let _0x21c703=Promise['resolve']();_0x246069['hasComments']&&(_0x21c703=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x28c70f})),_0x21c703['then'](()=>{this['addSuggestionData'](_0x246069)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1bf65e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x28c70f,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1bf65e,'ready'),this['fire']('suggestionLoaded',_0x1bf65e);break;case'ready':this['fire']('suggestionChanged',_0x1bf65e);}return _0x1bf65e['addMarkerName'](_0x317926),_0x1bf65e;}['_refreshSuggestionsChain'](_0x28fc0b){const _0x2fcb17=Array['from'](_0x28fc0b),_0x36255e=_0x2fcb17['filter'](_0x3cd65e=>'attribute'==_0x3cd65e['type']);this['_refreshAttributeSuggestionsChain'](_0x36255e);const _0x225107=_0x2fcb17['filter'](_0x3b90fe=>!_0x3b90fe['isMultiRange']&&'attribute'!=_0x3b90fe['type']),_0x46ea70=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xaf788f=>!_0xaf788f['isMultiRange']&&'attribute'!=_0xaf788f['type']),_0x7f1b9e=_0x46ea70['filter'](_0x45afca=>!_0x28fc0b['has'](_0x45afca)),_0x4d4242=new Map(_0x46ea70['map'](_0x42a63a=>[_0x42a63a,this['_suggestionFactory']['getSuggestionCallback'](_0x42a63a['type'],_0x42a63a['subType'],'chain')])),_0x85156b=new Map(_0x46ea70['map'](_0x429fb1=>[_0x429fb1,_0x429fb1['getFirstRange']()])),_0x562fa8=new Set(),_0x3a34cd=new Set();for(let _0x463701=0x0;_0x463701<_0x225107['length'];_0x463701++)_0x57d9b8(_0x225107[_0x463701],_0x225107,_0x463701+0x1);for(let _0x266c05=0x0;_0x266c05<_0x225107['length'];_0x266c05++)_0x57d9b8(_0x225107[_0x266c05],_0x7f1b9e,0x0);const _0x481dcd=new Set();for(let _0x66495f=0x0;_0x66495f<_0x225107['length'];_0x66495f++){const _0x523d54=_0x225107[_0x66495f];!_0x3a34cd['has'](_0x523d54)&&_0x523d54['previous']&&(_0x481dcd['add'](_0x523d54['previous']),_0x523d54['previous']['next']===_0x523d54&&(_0x523d54['previous']['next']=null),_0x523d54['previous']=null),!_0x562fa8['has'](_0x523d54)&&_0x523d54['next']&&(_0x481dcd['add'](_0x523d54['next']),_0x523d54['next']['previous']===_0x523d54&&(_0x523d54['next']['previous']=null),_0x523d54['next']=null);}function _0x57d9b8(_0x554596,_0x3db827,_0x3bf8b2){for(let _0x298d03=_0x3bf8b2;_0x298d03<_0x3db827['length'];_0x298d03++){const _0x38041a=_0x35c050(_0x554596,_0x3db827[_0x298d03]);_0x38041a&&(_0x38041a[0x0]['next']=_0x38041a[0x1],_0x38041a[0x1]['previous']=_0x38041a[0x0],_0x562fa8['add'](_0x38041a[0x0]),_0x3a34cd['add'](_0x38041a[0x1]));}}function _0x35c050(_0x242b35,_0x2bbb98){if(_0x242b35['author']['id']!==_0x2bbb98['author']['id'])return null;const _0x499191=_0x4d4242['get'](_0x242b35)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98));if(!_0x499191)return null;return _0x4d4242['get'](_0x2bbb98)(_0x242b35,_0x2bbb98,_0x85156b['get'](_0x242b35),_0x85156b['get'](_0x2bbb98))?_0x499191[0x1]['commentThread']&&_0x499191[0x1]['commentThread']['length']?null:_0x499191:null;}_0x481dcd['size']&&this['_refreshSuggestionsChain'](_0x481dcd);}['_refreshAttributeSuggestionsChain'](_0x5e172f){if(0x0==_0x5e172f['length'])return;const _0x457454=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x40de3d=>'attribute'==_0x40de3d['type']&&_0x40de3d['_isDataLoaded']),_0x249303=[],_0xd4d5eb=new Map();for(const _0xc73ebf of _0x457454){const _0x2ee849=_0x3d1978(_0xc73ebf['attributes']);_0xd4d5eb['has'](_0x2ee849)||(_0xd4d5eb['set'](_0x2ee849,_0x249303['length']),_0x249303['push']([]));const _0x213c48=_0xd4d5eb['get'](_0x2ee849);_0x249303[_0x213c48]['push'](_0xc73ebf);}!(function(){_0x249303['sort']((_0x219078,_0x1bd12a)=>{const _0x5b21cf=_0x219078[0x0]['createdAt'],_0x276641=_0x1bd12a[0x0]['createdAt'];return _0x5b21cf==_0x276641?_0x219078[0x0]['attributes']['groupId']<_0x1bd12a[0x0]['attributes']['groupId']?-0x1:0x1:_0x5b21cf<_0x276641?-0x1:0x1;});for(const _0x15739c of _0x249303)_0x15739c['sort']((_0x81bc2b,_0x1d468b)=>_0x81bc2b['id']<_0x1d468b['id']?-0x1:0x1);}());for(let _0x45a4a5=0x0;_0x45a4a5<_0x249303['length'];_0x45a4a5++){if(0x0==_0x249303[_0x45a4a5]['length'])continue;const _0x513042=[];for(let _0x1a09c4=_0x45a4a5+0x1;_0x1a09c4<_0x249303['length'];_0x1a09c4++)0x0!=_0x249303[_0x1a09c4]['length']&&_0x34fa19(_0x249303[_0x45a4a5],_0x249303[_0x1a09c4])&&_0x513042['push'](_0x1a09c4);for(const _0x17a8a5 of _0x513042)_0x249303[_0x45a4a5]=_0x249303[_0x45a4a5]['concat'](_0x249303[_0x17a8a5]),_0x249303[_0x17a8a5]=[];}for(const _0x282cd4 of _0x249303)for(let _0x4eeba9=0x0;_0x4eeba9<_0x282cd4['length'];_0x4eeba9++){const _0x29fda9=_0x282cd4[_0x4eeba9+0x1]||null;_0x282cd4[_0x4eeba9]['next']!==_0x29fda9&&(_0x282cd4[_0x4eeba9]['next']=_0x29fda9);}for(const _0x3d805f of _0x249303)for(let _0x516231=0x0;_0x516231<_0x3d805f['length'];_0x516231++){const _0x1c4da5=_0x3d805f[_0x516231-0x1]||null;_0x3d805f[_0x516231]['previous']!==_0x1c4da5&&(_0x3d805f[_0x516231]['previous']=_0x1c4da5);}function _0x34fa19(_0x157b7b,_0x536ce1){if(_0x157b7b[0x0]['attributes']['groupId']!==_0x536ce1[0x0]['attributes']['groupId']&&_0x157b7b[0x0]['author']!==_0x536ce1[0x0]['author'])return!0x1;if(!function(_0x30d6ef,_0x28e925){if(!_0x30d6ef['hasComments']&&!_0x28e925['hasComments'])return!0x0;if(_0x30d6ef['hasComments']&&_0x28e925['hasComments'])return!0x1;if(_0x30d6ef['hasComments']&&_0x28e925['createdAt']<_0x30d6ef['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28e925['hasComments']&&_0x30d6ef['createdAt']<_0x28e925['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x157b7b[0x0],_0x536ce1[0x0]))return!0x1;const _0xdf332a=xt(_0x157b7b[0x0]['attributes'],'groupId'),_0x3e3392=xt(_0x536ce1[0x0]['attributes'],'groupId');if(!_0x4dfac2(_0xdf332a,_0x3e3392))return!0x1;return!!_0x157b7b['every'](_0x2bf6e5=>_0x536ce1['some'](_0x123324=>_0x2bf6e5['getFirstRange']()['isEqual'](_0x123324['getFirstRange']())))&&_0x536ce1['every'](_0x11eeaa=>_0x157b7b['some'](_0x3cab5a=>_0x11eeaa['getFirstRange']()['isEqual'](_0x3cab5a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x30af77){const _0x3f0410=Array['from'](_0x30af77),_0x4c2e48=this['getSuggestions']({'skipNotAttached':!0x0}),_0x28bde1=_0x4c2e48['filter'](_0x2a68a9=>!_0x30af77['has'](_0x2a68a9)),_0x40281f=new Map(_0x3f0410['map'](_0x553bd0=>[_0x553bd0,this['_suggestionFactory']['getSuggestionCallback'](_0x553bd0['type'],_0x553bd0['subType'],'join')])),_0x59efcc=new Map(_0x4c2e48['map'](_0x3e80ff=>[_0x3e80ff,_0x3e80ff['getRanges']()]));for(let _0xa5998a=0x0;_0xa5998a<_0x3f0410['length'];_0xa5998a++){if(_0x3e4847(this,_0x3f0410[_0xa5998a],_0x3f0410,_0xa5998a+0x1))return!0x0;}for(let _0x1fc0eb=0x0;_0x1fc0eb<_0x3f0410['length'];_0x1fc0eb++){if(_0x3e4847(this,_0x3f0410[_0x1fc0eb],_0x28bde1,0x0))return!0x0;}return!0x1;function _0x3e4847(_0x4ae7bc,_0x5d5ad3,_0x3656fd,_0x525fed){for(let _0x558df1=_0x525fed;_0x558df1<_0x3656fd['length'];_0x558df1++){const _0x47c9a7=_0x3656fd[_0x558df1];if(_0x47c9a7['type']!==_0x5d5ad3['type']||_0x47c9a7['author']['id']!==_0x5d5ad3['author']['id']||_0x47c9a7['subType']!==_0x5d5ad3['subType'])continue;if(!qt(_0x5d5ad3,_0x47c9a7))continue;if('attribute'==_0x5d5ad3['type']&&_0x5d5ad3['data']['oldValue']!=_0x47c9a7['data']['oldValue'])continue;if('attribute'==_0x5d5ad3['type']&&_0x4ae7bc['_isBlockAttribute'](_0x5d5ad3['data']['key']))continue;if('formatBlock'==_0x5d5ad3['type']){const _0x1fedc1=_0x4ae7bc['editor']['model'],_0x2d5416=_0x5d5ad3['getContainedElement']();if(_0x2d5416&&(_0x1fedc1['schema']['isObject'](_0x2d5416)||_0x1fedc1['schema']['isLimit'](_0x2d5416)))continue;}const _0x45b0e0=_0x40281f['get'](_0x5d5ad3),_0x4c30e3=_0x59efcc['get'](_0x5d5ad3),_0x552598=_0x59efcc['get'](_0x47c9a7),_0x5528ae=_0x5d5ad3['commentThread']&&_0x5d5ad3['commentThread']['length'],_0x1eb156=_0x47c9a7['commentThread']&&_0x47c9a7['commentThread']['length'];if(!_0x5528ae&&_0x45b0e0(_0x552598,_0x4c30e3))return _0x4ae7bc['_joinSuggestions'](_0x47c9a7,_0x5d5ad3),_0x59efcc['delete'](_0x5d5ad3),!0x0;if(!_0x1eb156&&_0x45b0e0(_0x4c30e3,_0x552598))return _0x4ae7bc['_joinSuggestions'](_0x5d5ad3,_0x47c9a7),_0x59efcc['delete'](_0x47c9a7),!0x0;}return!0x1;}}['_joinSuggestions'](_0x15c1d8,_0x2e3b66){if(_0x15c1d8['isMultiRange']){for(const _0x47e52a of _0x2e3b66['getRanges']())_0x15c1d8['addRange'](_0x47e52a);}else{const _0x565d8e=_0x2e3b66['getFirstRange']()['end'];this['_setSuggestionRange'](_0x15c1d8,this['_model']['createRange'](_0x15c1d8['getFirstRange']()['start'],_0x565d8e));}_0x2e3b66['removeMarkers']();}['_getMarkerAnnouncementText'](_0x275551,_0x4ff2d9,_0x4b8e27){const _0x55f434=_0x275551['startsWith']('format')||_0x275551['startsWith']('attribute')?'FORMATTING':_0x275551['toUpperCase']();return o(this['editor']['locale'],_0x4ff2d9+'_'+_0x55f434+'_SUGGESTION_ANNOUNCEMENT',_0x4b8e27);}['_initAriaMarkerChangeAnnouncements'](){const _0x2a6d83=this['editor'];if(!_0x2a6d83['ui'])return;const {ariaLiveAnnouncer:_0x58b1c1}=_0x2a6d83['ui'];_0x487918(this['_model'],({left:_0x1cddb7,entered:_0x480a1e})=>{for(const _0x2a0f01 of _0x1cddb7){const {group:_0x420dac,type:_0x18423f}=this['_splitMarkerName'](_0x2a0f01['name']);if('suggestion'===_0x420dac){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x18423f,'LEAVE'));break;}}for(const _0x9cf40e of _0x480a1e){const {group:_0x47e449,type:_0x3ca8af}=this['_splitMarkerName'](_0x9cf40e['name']);if('suggestion'===_0x47e449){_0x58b1c1['announce'](this['_getMarkerAnnouncementText'](_0x3ca8af,'ENTER',_0xfda364(_0x218fe9)));break;}}});}['_processAttributeChanges'](_0x4ad0a1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2e4228=this['editor'],_0x248c8c=_0x2e4228['model']['document']['differ']['getChanges']();if(0x0==_0x248c8c['length'])return!0x1;const _0x2c5859=[],_0x347e6b=_0x248c8c['filter'](_0x3a4c85=>'attribute'==_0x3a4c85['type']),_0x3a2f61=_0x248c8c['filter'](_0x343151=>'insert'==_0x343151['type']&&'$text'!=_0x343151['name']),_0x8f6cf4=_0x248c8c['filter'](_0x18281e=>'remove'==_0x18281e['type']&&'$text'!=_0x18281e['name']);for(const _0x49739c of _0x347e6b)_0x2c5859['push']({'key':_0x49739c['attributeKey'],'newValue':_0x49739c['attributeNewValue'],'oldValue':_0x49739c['attributeOldValue'],'range':Lt(_0x49739c['range'],_0x2e4228['model'])});for(const _0xc83bee of _0x3a2f61){const _0x5a1e24=_0x8f6cf4['find'](_0x364741=>_0x364741['position']['isEqual'](_0xc83bee['position']));_0x5a1e24&&_0x2c5859['push']({'key':m,'newValue':_0xc83bee['name'],'oldValue':_0x5a1e24['name'],'range':_0x2e4228['model']['createRangeOn'](_0xc83bee['position']['nodeAfter'])});}return 0x0!=_0x2c5859['length']&&this['_reduceExistingSuggestions'](_0x4ad0a1,_0x2c5859);}['_processAttributeSuggestions'](_0xd03e5e){let _0x315acb=!0x1;const _0x1ecda3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3ff037=>_0x3ff037['data']['newRange']&&_0x3ff037['name']['startsWith']('suggestion:attribute:'));for(const _0x2d5499 of _0x1ecda3){const {subType:_0x109ab7,id:_0x30931b}=this['_splitMarkerName'](_0x2d5499['name']),_0x35afb9=_0x109ab7['split']('|')[0x0];for(const _0x410d0d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x410d0d['id']!=_0x30931b&&'attribute'==_0x410d0d['type']&&_0x410d0d['data']&&_0x410d0d['data']['key']==_0x35afb9&&_0x410d0d['getFirstRange']()['isIntersecting'](_0x2d5499['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x410d0d,_0x2d5499['data']['newRange'],_0xd03e5e),_0x315acb=!0x0);}return _0x315acb;}['_recordAttributeChanges'](_0x41bc7d){this['_recordAttributeSuggestions']=!0x0,_0x41bc7d();}['_isRegisteredAttribute'](_0x1bc441){const _0x507459=this['_isBlockAttribute'](_0x1bc441),_0x5a8443=this['_inlineAttributeKeys']['has'](_0x1bc441);return _0x507459||_0x5a8443;}['_reduceExistingSuggestions'](_0x45fb41,_0x227705){if(0x0==_0x227705['length'])return!0x1;let _0x531894=!0x1;for(const _0xdeb8e4 of _0x227705){const _0x10944a=this['_findSuggestions'](_0xdeb8e4['range'],'attribute')['filter'](_0x36f29f=>!_0x36f29f['meta']['isNextTo'])['map'](_0x2b1373=>_0x2b1373['suggestion']),_0x47901d=_0x3d1978({'newValue':_0xdeb8e4['newValue']});_0x10944a['filter'](_0x19318f=>{const [_0x211272,_0x418327]=_0x19318f['subType']['split']('|');return _0x211272==_0xdeb8e4['key']&&_0x418327!=_0x47901d;})['forEach'](_0x1fdff1=>{this['_reduceSuggestionAttributeRange'](_0x1fdff1,_0xdeb8e4['range'],_0x45fb41),_0x531894=!0x0;});}return _0x531894;}['_reduceSuggestionAttributeRange'](_0x436e3c,_0xc9ff42,_0x181617){const _0x7c0a36=_0x436e3c['getFirstRange']()['getDifference'](_0xc9ff42);0x0!==_0x7c0a36['length']?0x1!==_0x7c0a36['length']?this['_breakSuggestionMarker'](_0x436e3c,_0xc9ff42['start'],_0xc9ff42['end']):this['_setSuggestionRange'](_0x436e3c,_0x7c0a36[0x0]):_0x181617['removeMarker'](_0x436e3c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x527ebf){this['_editor']=_0x527ebf,this['_model']=_0x527ebf['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4773af,_0x139d70,_0x55ef83,_0x246f89,_0x1672ec,_0x26e18e){return new u(this['_model'],{'type':_0x4773af,'subType':_0x139d70,'id':_0x55ef83,'author':_0x246f89,'creator':_0x246f89,'attributes':_0x1672ec,'onAttributesChange':_0x26e18e,'onAccept':(..._0x210812)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'accept')(..._0x210812),'onDiscard':(..._0x1c7b31)=>this['getSuggestionCallback'](_0x4773af,_0x139d70,'discard')(..._0x1c7b31)});}['registerCustomCallback'](_0x235484,_0x24e595,_0x7e2814,_0x957de8){const _0x518499=_0x235484+':'+_0x24e595+':'+_0x7e2814;this['_customCallbacks']['set'](_0x518499,_0x957de8);}['getSuggestionCallback'](_0x4ebdc4,_0x4b3b98,_0x4e6cd3){const _0x52ee4e=_0x4ebdc4+':'+_0x4b3b98+':'+_0x4e6cd3;return this['_customCallbacks']['get'](_0x52ee4e)||this['_defaultCallbacks']['get'](_0x4ebdc4+':'+_0x4e6cd3);}['_registerDefaultCallbacks'](){const _0xfc48c3=()=>!0x1,_0x1077e7=_0x540a4b=>{_0x540a4b['sort']((_0x130930,_0x2495dd)=>_0x130930['start']['isBefore'](_0x2495dd['start'])?0x1:-0x1),this['_model']['change'](_0x265d12=>{for(const _0x2cd345 of _0x540a4b){let _0x486faa;_0x486faa=_0x2cd345['end']['isAtEnd']&&_0x2cd345['end']['parent']==_0x2cd345['start']['nodeAfter']?_0x265d12['createSelection'](_0x2cd345['start']['nodeAfter'],'on'):_0x265d12['createSelection'](_0x2cd345),this['_model']['deleteContent'](_0x486faa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x25c6a6=(_0x121e65,_0x28649a)=>{_0x28649a&&this['_model']['change'](_0x381a9e=>{const {commandName:_0x392463,commandParams:_0x4949a9=[]}=_0x28649a,_0x511fee=_0x121e65['map'](_0x239f91=>(Vt(_0x239f91)&&(_0x239f91=this['_model']['createRange'](_0x239f91['end'])),_0x239f91))['filter'](_0x2273e4=>'$graveyard'!==_0x2273e4['root']['rootName']);if(_0x511fee['length']<0x1)return;const _0x5bf83c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1f7cdb=>_0x582953['fromRange'](_0x1f7cdb));_0x381a9e['setSelection'](_0x511fee);for(const _0x321d6b of this['_editor']['commands']['commands']())_0x321d6b['refresh']();_0x4949a9['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x392463,..._0x4949a9);const _0x56b8fa=_0x5bf83c['filter'](_0x48ff19=>'$graveyard'!=_0x48ff19['root']['rootName']);_0x56b8fa['length']>0x0&&_0x381a9e['setSelection'](_0x56b8fa);for(const _0x5467a8 of _0x5bf83c)_0x5467a8['detach']();});},_0x3d61d0=(_0x1700e0,_0xb900ab)=>0x1==_0x1700e0['length']&&0x1==_0xb900ab['length']&&_0x1700e0[0x0]['end']['isEqual'](_0xb900ab[0x0]['start']),_0x3da956=(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)=>Ht(_0x3397a4,_0x4b3801,_0x13feb3,_0x354aad)?[_0x3397a4,_0x4b3801]:Ht(_0x4b3801,_0x3397a4,_0x354aad,_0x13feb3)?[_0x4b3801,_0x3397a4]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xfc48c3),this['_defaultCallbacks']['set']('insertion:discard',_0x1077e7),this['_defaultCallbacks']['set']('insertion:join',_0x3d61d0),this['_defaultCallbacks']['set']('insertion:chain',_0x3da956),this['_defaultCallbacks']['set']('deletion:accept',_0x1077e7),this['_defaultCallbacks']['set']('deletion:discard',_0xfc48c3),this['_defaultCallbacks']['set']('deletion:join',_0x3d61d0),this['_defaultCallbacks']['set']('deletion:chain',_0x3da956),this['_defaultCallbacks']['set']('formatInline:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatInline:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatInline:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatInline:chain',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:accept',_0x25c6a6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xfc48c3),this['_defaultCallbacks']['set']('formatBlock:join',_0x3d61d0),this['_defaultCallbacks']['set']('formatBlock:chain',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:accept',_0xfc48c3),this['_defaultCallbacks']['set']('attribute:discard',(_0x6626b0,_0x4b21e1)=>{if(!_0x4b21e1)return;const _0x54f616=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4d644c=>{if(_0x4b21e1['key']==m)for(const _0x3f8c13 of _0x6626b0){const _0x182487=_0x3f8c13['start']['nodeAfter'],_0x214160=_0x4b21e1['oldValue'];_0x4d644c['rename'](_0x182487,_0x214160);}else{if(_0x54f616['_isBlockAttribute'](_0x4b21e1['key'])){for(const _0x40d202 of _0x6626b0)void 0x0!==_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0x40d202['start']['nodeAfter']):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0x40d202['start']['nodeAfter']);}else{for(const _0xa1a6a9 of _0x6626b0)_0x4b21e1['oldValue']?_0x4d644c['setAttribute'](_0x4b21e1['key'],_0x4b21e1['oldValue'],_0xa1a6a9):_0x4d644c['removeAttribute'](_0x4b21e1['key'],_0xa1a6a9);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3d61d0);}}function Ut(_0x2ef4a7,_0x5486d1,_0x43503f){for(const _0x3c51a6 of _0x5486d1['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c51a6['root']==_0x3c51a6)return!0x1;if(!_0x43503f['containsItem'](_0x3c51a6))return!0x1;if(_0x2ef4a7['isObject'](_0x3c51a6)||_0x2ef4a7['isLimit'](_0x3c51a6))return!0x0;}return!0x1;}function Vt(_0x26c14f){return _0x26c14f['end']['parent']==_0x26c14f['start']['nodeAfter']&&_0x26c14f['end']['isAtStart'];}function Pt(_0x5a7c12,_0x2802d5,_0x27cd67,_0x43ff97){const _0x4f62ca=_0x53fe09=>!_0x53fe09['item']['is']('$textProxy')&&!_0x43ff97['isObject'](_0x53fe09['item']),_0x1ebc2d=_0x5a7c12['start']['getLastMatchingPosition'](_0x4f62ca),_0x2abf13=_0x5a7c12['end']['getLastMatchingPosition'](_0x4f62ca,{'direction':'backward'});return(!_0x5a7c12['start']['isEqual'](_0x1ebc2d)||!_0x5a7c12['end']['isEqual'](_0x2abf13))&&(_0x1ebc2d['isBefore'](_0x2abf13)?_0x27cd67['updateMarker'](_0x2802d5,{'range':_0x27cd67['createRange'](_0x1ebc2d,_0x2abf13)}):_0x27cd67['removeMarker'](_0x2802d5),!0x0);}function Gt(_0x1e2b81){return _0x3d1978(_0x1e2b81);}function Ft(_0x32aded){const _0x44f804=_0x32aded['start']['nodeAfter'];return _0x44f804&&_0x44f804['is']('element');}function Lt(_0x351bd6,_0x25e870){return null==_0x351bd6['end']['nodeBefore']&&_0x351bd6['end']['parent']==_0x351bd6['start']['nodeAfter']?Jt(_0x351bd6['start']['nodeAfter'],_0x25e870):_0x351bd6;}function Jt(_0x5b954d,_0x20050b){const _0x3500a6=_0x20050b['schema']['isObject'](_0x5b954d)||_0x20050b['schema']['isSelectable'](_0x5b954d);return _0x20050b['createRange'](_0x20050b['createPositionAt'](_0x5b954d,'before'),_0x3500a6?_0x20050b['createPositionAfter'](_0x5b954d):_0x20050b['createPositionAt'](_0x5b954d,'end'));}function Ht(_0x3afca0,_0x55aba5,_0x12809d,_0x89c882){return!!qt(_0x3afca0,_0x55aba5)&&_0x12809d['end']['isEqual'](_0x89c882['start']);}function qt(_0x8d3787,_0x5d9a43){if(!_0x8d3787['_isDataLoaded']||!_0x5d9a43['_isDataLoaded'])return!0x1;const _0x240874=new Set(Object['keys'](_0x8d3787['attributes'])),_0x4fdcbe=new Set(Object['keys'](_0x5d9a43['attributes']));if(_0x240874['delete']('groupId'),_0x4fdcbe['delete']('groupId'),0x0==_0x240874['size']&&0x0==_0x4fdcbe['size'])return!0x0;if(_0x240874['size']!=_0x4fdcbe['size'])return!0x1;const _0x41a310={..._0x8d3787['attributes']},_0x56e319={..._0x5d9a43['attributes']};return delete _0x41a310['groupId'],delete _0x56e319['groupId'],JSON['stringify'](_0x41a310)==JSON['stringify'](_0x56e319);}function zt(_0x372a1a,_0x43c3f8){const _0x5edf59=Kt(_0x372a1a['attributes']),_0x1fa517=Kt(_0x43c3f8);if(!_0x372a1a['_isDataLoaded'])return!0x1;for(const _0x14d82e of Object['keys'](_0x1fa517))if(!_0x4dfac2(_0x5edf59[_0x14d82e],_0x1fa517[_0x14d82e]))return!0x1;return!0x0;}function Kt(_0x53a1ea){const _0x2e6548=Object['assign']({},_0x53a1ea);return delete _0x2e6548['skipNestingCheck'],delete _0x2e6548['tablePasteChainId'],_0x2e6548;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x5de982(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x129475,_0x16b91f,_0x37ae2d,_0x24d691){super(),this['model']=_0x16b91f,this['view']=_0x37ae2d,this['commentThreadController']=_0x24d691,this['_editor']=_0x129475,this['_acceptCommand']=_0x129475['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x129475['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x433813,_0xdc168f)=>_0x433813||_0xdc168f),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x45402e=>_0x45402e&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xf064f3=>_0xf064f3&&this['_editor']['model']['canEditAt'](_0x16b91f['getRanges']())),this['_pendingAction']=null,_0x37ae2d['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x37ae2d,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x37ae2d,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x37ae2d,'change:isDirty',()=>{_0x37ae2d['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 _0x2f83d5=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x2f83d5);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x37fcbe{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x24c36a,_0x4fe0c1,_0x2ae5d6,_0x54f1af){super(_0x24c36a),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x229945(_0x24c36a,o(_0x24c36a,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4fe0c1['authoredAt']),this['bind']('authoredAt')['to'](_0x4fe0c1),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',_0x4fe0c1,'authoredAt',this,'descriptionParts',(_0x4f52ab,_0x3b1cc4,_0x10c19e)=>{const _0x10a0d3=_0x10c19e['map'](_0x4e969f=>ns(_0x4e969f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4f52ab-0x1,_0x4fe0c1['author']['name'],_0x3b1cc4?_0x54f1af['formatDateTime'](_0x3b1cc4):'',new DOMParser()['parseFromString'](_0x10a0d3,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53b401(),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x383255=>_0x383255['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4fe0c1,this['_localUser']=_0x2ae5d6,this['_config']=_0x54f1af,_0x54f1af['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x14e6ed(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c95a4}=this['_config'];this['commentsListView']=new _0x2c95a4(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',_0x3ff27f=>_0x3ff27f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x157330,_0x402263)=>_0x157330||!!_0x402263);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x427241}=this['_config'],_0x1ba024=new _0x427241(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xafbb5a=_0x1ba024['commentInputView'];return _0x1ba024['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xafbb5a,'value',(_0x17777a,_0x541c39,_0x10795f)=>!!_0x10795f||_0x17777a&&!_0x541c39),_0xafbb5a['on']('submit',(_0x10b992,_0x56b577)=>{this['fire']('addComment',_0x56b577),_0xafbb5a['editor']['setData']('');}),_0xafbb5a['on']('cancel',()=>this['focus']()),_0xafbb5a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1ba024;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a){super(_0x3502cc,_0x701c55,_0x535cbb,_0x3ea77a),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x51143d=>_0x51143d&&_0x51143d[0x0]?_0x51143d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x172164,_0x4bc1bd)=>{let _0x58d29a='';for(const _0x2edecc of _0x172164)_0x58d29a+='<p>'+ns(_0x2edecc['content'],_0x2edecc['color'])+'</p>';return _0x4bc1bd?_0x58d29a:ti(_0x58d29a,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ea77a['SuggestionView'](_0x3502cc,_0x701c55,{'formatDateTime':_0x3ea77a['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 _0x3c851e=this['bindTemplate'],_0xb663fe=[this['suggestionView']];return this['commentsListView']&&_0xb663fe['push'](this['commentsListView']),this['commentThreadInputView']&&_0xb663fe['push'](this['commentThreadInputView']),_0xb663fe['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3c851e['if']('isActive','ck-suggestion-wrapper--active'),_0x3c851e['to']('type',_0x2a9e8a=>'ck-suggestion-'+_0x2a9e8a),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':_0x3c851e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xb663fe};}['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 ue extends _0x37fcbe{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5368ce,_0x4478e4,_0x46be33){super(_0x5368ce),this['_model']=_0x4478e4,this['_config']=_0x46be33,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4478e4),this['acceptButton']=this['_createButton'](o(_0x5368ce,'Accept\x20suggestion'),_0xa3c9d2['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5368ce,'Discard\x20suggestion'),_0xa3c9d2['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x24bd63(_0x5368ce,_0x4478e4['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53b401([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5756c4(),this['keystrokes']=new _0x15b293(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x39decc=>_0x39decc['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x218994=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x218994['innerHTML']=this['description'],this['on']('change:description',(_0x432d37,_0xe29eeb,_0x39939e)=>{_0x218994['innerHTML']=_0x39939e;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x57897c=this['bindTemplate'],_0x5eab43=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x57897c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x57897c['to']('authoredAt',_0x4e81e7=>this['_config']['formatDateTime'](_0x4e81e7))}]}]},{'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']&&_0x5eab43['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':_0x5eab43}]};}['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'](_0xe2b937,_0x2d0cd7,_0x1bae04,_0x1cbce6,_0x3d826b){const _0xa1e777=new _0x14c4a1(this['locale']);return _0xa1e777['set']({'label':_0xe2b937,'icon':_0x2d0cd7,'tooltip':!0x0,'tooltipPosition':_0x3d826b}),_0xa1e777['extendTemplate']({'attributes':{'class':_0x1bae04}}),_0xa1e777['on']('execute',()=>{this['fire'](_0x1cbce6,this['_model']['id']);}),_0xa1e777;}['_setupKeyboardNavigation'](){const _0x2fd3fb=this['element'];this['keystrokes']['listenTo'](_0x2fd3fb);for(const _0xd6bf3a of this['focusables'])this['focusTracker']['add'](_0xd6bf3a['element']),this['keystrokes']['listenTo'](_0xd6bf3a['element']);this['keystrokes']['set']('enter',(_0x302349,_0x38e3d2)=>{_0x2fd3fb===_0x302349['target']&&(this['focusCycler']['focusFirst'](),_0x38e3d2());}),this['keystrokes']['set']('esc',(_0x4ed42b,_0x532b84)=>{_0x2fd3fb!==_0x4ed42b['target']&&(this['focus'](),_0x532b84());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\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 _0x522036{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x32d02e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x221386){super(_0x221386),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x269f6d=this['editor']['config'];_0x269f6d['define']('trackChanges.SuggestionThreadView',de),_0x269f6d['define']('trackChanges.SuggestionView',ue),_0x269f6d['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x269f6d['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2dc481,_0x45c61b){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5389af,_0x42abad]of this['_handleControllerBuffer']){const _0x236b41=this['_suggestionToController']['has'](_0x5389af);_0x236b41||_0x42abad?_0x236b41&&_0x42abad&&this['_destroyController'](_0x5389af):this['_initializeController'](_0x5389af);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2dc481,_0x45c61b);}['init'](){const _0x532118=this['editor'],_0x53155f=_0x532118['plugins']['get']('TrackChangesEditing'),_0x3a225e=_0x532118['plugins']['get']('Annotations'),_0x3c3c61=_0x532118['plugins']['get']('EditorAnnotations'),_0x599ca7=_0x532118['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3c3c61['addSourceCollector'](()=>{const _0x42dbb2=[];for(const [_0xf0b3cf,_0x47c655]of Array['from'](this['_suggestionToController'])){const _0x675071=_0xf0b3cf['getAllAdjacentSuggestions'](),_0x1958fa=[];for(const _0x10fd79 of _0x675071){if(!_0x10fd79['isInContent'])continue;if(_0x10fd79['isMultiRange']){_0x1958fa['push'](..._0x10fd79['getRanges']());continue;}const _0xe7272d=_0x10fd79['getFirstRange']();if(_0x1958fa['length']>0x0){const _0x5e2c1c=_0x1958fa[0x0]['getJoined'](_0xe7272d);if(_0x5e2c1c){_0x1958fa[0x0]=_0x5e2c1c;continue;}}_0x1958fa['push'](_0xe7272d);}_0x42dbb2['push']([_0x47c655['view'],_0x1958fa]);}return _0x42dbb2;}),this['listenTo'](_0x53155f,'suggestionLoaded',(_0x593751,_0x2bde1b)=>{this['listenTo'](_0x2bde1b,'change:previous',(_0x5098b3,_0x388d0a,_0x222f01,_0x2af0da)=>{_0x2bde1b['isInContent']&&(null==_0x222f01?(this['_updateController'](_0x2af0da['head']),this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1)):(this['_updateController'](_0x222f01['head']),null==_0x2af0da&&this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x0)));}),null!==_0x2bde1b['previous']?this['_updateController'](_0x2bde1b['head']):this['_handleSuggestionControllerDelayed'](_0x2bde1b,!0x1);}),this['listenTo'](_0x53155f,'suggestionUnloaded',(_0x39ebff,_0xaacd3e,_0x37256b)=>{this['stopListening'](_0xaacd3e,'change:previous'),this['_handleControllerBuffer']['delete'](_0xaacd3e),this['_suggestionToController']['has'](_0xaacd3e)&&this['_destroyController'](_0xaacd3e),_0x37256b&&this['_updateController'](_0x37256b['head']);}),this['listenTo'](_0x53155f,'suggestionChanged',(_0x45ef98,_0x44ac02)=>{this['_updateController'](_0x44ac02);}),this['listenTo'](_0x3a225e,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x599ca7,'addComment',(_0x8f3813,{threadId:_0x33210a,isFromAdapter:_0x1f0a71})=>{if(_0x1f0a71||!_0x53155f['hasSuggestion'](_0x33210a))return;const _0x11a0f2=_0x53155f['getSuggestion'](_0x33210a);this['_suggestionToController']['get'](_0x11a0f2)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3a2c83=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41dc33;for(const _0x3a1b85 in _0x3a2c83){const _0x449ee5=_0x3a1b85,_0xe47f66=_0x3a2c83[_0x449ee5];if('trackChangesLicenseKeyValid'==_0xe47f66||'trackChangesLicenseKeyInvalid'==_0xe47f66||'trackChangesLicenseKeyExpired'==_0xe47f66||'trackChangesLicenseKeyDomainLimit'==_0xe47f66||'trackChangesLicenseKeyNotAllowed'==_0xe47f66||'trackChangesLicenseKeyEvaluationLimit'==_0xe47f66||'trackChangesLicenseKeyTrialLimit'==_0xe47f66||'trackChangesLicenseKeyDevelopmentLimit'==_0xe47f66||'trackChangesLicenseKeyUsageLimit'==_0xe47f66){delete _0x3a2c83[_0x449ee5],_0x41dc33=_0xe47f66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x41dc33&&_0x3a2c83['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x41dc33&&_0x3a2c83['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x41dc33&&_0x3a2c83['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x41dc33&&_0x3a2c83['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5e9442=this['editor']['plugins']['get']('Annotations'),_0x30df3e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c6bf8=Array['from'](_0x5e9442['activeAnnotations'],_0xf5037b=>_0xf5037b['innerView'])['filter'](_0x372fef=>this['_viewToController']['has'](_0x372fef)),_0x2dc5c3=[];for(const _0x53e38c of _0x2c6bf8){const _0x19589d=this['_viewToController']['get'](_0x53e38c)['model']['getAllAdjacentSuggestions']();_0x2dc5c3['push'](..._0x19589d['reduce']((_0x118a1c,_0x300a4c)=>[..._0x118a1c,..._0x300a4c['getMarkerNames']()],[]));}_0x30df3e['activeMarkers']=_0x2dc5c3;}['_addUIComponentsToFactory'](){const _0x57b30d=this['editor'],_0xaf744e=_0x57b30d['locale'],_0x472119=o(_0xaf744e,'Track\x20changes'),_0x32bd0d=new _0x248b58([{'type':'switchbutton','model':new _0x579f53({'withText':!0x0,'isToggleable':!0x0,'label':_0x472119,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x579f53({'withText':!0x0,'label':o(_0xaf744e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x137b07 of _0x32bd0d)if(pe(_0x137b07)){const _0x5ded11=_0x57b30d['commands']['get'](_0x137b07['model']['commandName']);_0x137b07['model']['bind']('isOn','isEnabled')['to'](_0x5ded11,'value','isEnabled');}_0x57b30d['ui']['componentFactory']['add']('trackChanges',_0x4ff5f3=>this['_createToolbarButton'](_0x4ff5f3,_0x32bd0d,_0x472119)),_0x57b30d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1e691f=>this['_createMenuBarMenu'](_0x1e691f,_0x32bd0d,_0x472119));}['_createToolbarButton'](_0xebc93c,_0x5306fe,_0x13fee2){const _0x4e64b9=_0x361bdb(_0xebc93c,_0x303ad8),_0xd6eb02=this['editor']['commands']['get']('trackChanges');_0x4e64b9['buttonView']['set']({'tooltip':_0x13fee2,'label':_0x13fee2,'icon':Ce}),_0x4e64b9['buttonView']['bind']('isOn')['to'](_0xd6eb02,'value'),_0x4e64b9['buttonView']['on']('execute',()=>{_0xd6eb02['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4e64b9,_0x5306fe,{'role':'menu'});const _0x556f39=[];for(const _0x2437ed of _0x5306fe)pe(_0x2437ed)&&_0x556f39['push'](this['editor']['commands']['get'](_0x2437ed['model']['commandName']));const _0x9df6e9=_0x4e64b9['buttonView'];return _0x9df6e9['actionView']['unbind']('isEnabled'),_0x9df6e9['arrowView']['unbind']('isEnabled'),_0x9df6e9['actionView']['bind']('isEnabled')['to'](_0xd6eb02,'isEnabled'),_0x9df6e9['arrowView']['bind']('isEnabled')['toMany'](_0x556f39,'isEnabled',(..._0x252ab1)=>_0x252ab1['some'](_0x2e5340=>_0x2e5340)),_0x4e64b9['on']('execute',_0x51757a=>{this['editor']['execute'](_0x51757a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4e64b9;}['_createMenuBarMenu'](_0x503525,_0x4bf694,_0x7065b7){const _0x436580=new _0x510e7f(_0x503525),_0x439659=this['editor']['commands']['get']('trackChanges');_0x436580['buttonView']['set']({'label':_0x7065b7,'icon':Ce});const _0x27bc22=new _0x960e20(_0x503525);for(const _0x3d6a57 of _0x4bf694){if('separator'==_0x3d6a57['type']){_0x27bc22['items']['add'](new _0x4b7899(_0x503525));continue;}const _0x470223=new _0x2c05e2(_0x503525,_0x436580),_0x46d0de=new _0x49a471(_0x503525),_0x506bb3=_0x3d6a57['model'];_0x46d0de['bind'](...Object['keys'](_0x506bb3))['to'](_0x506bb3),_0x46d0de['delegate']('execute')['to'](_0x436580),_0x46d0de['on']('execute',()=>{this['editor']['execute'](_0x506bb3['commandName']),this['editor']['editing']['view']['focus']();}),_0x470223['children']['add'](_0x46d0de),_0x27bc22['items']['add'](_0x470223);}return _0x436580['bind']('isEnabled')['to'](_0x439659,'isEnabled'),_0x436580['panelView']['children']['add'](_0x27bc22),_0x436580;}['_initializeController'](_0x3b4f8b){const _0x225ee6=this['editor'],_0x48ed55=_0x225ee6['config'],_0x480e9b=_0x225ee6['plugins']['get']('Annotations'),_0xd60fd5=_0x225ee6['plugins']['get']('CommentsRepository'),_0x10e7ab=_0x225ee6['plugins']['get']('EditorAnnotations'),_0x32fd1b=_0x225ee6['plugins']['get'](_0x32d02e)['me'],_0x5587e9=_0x48ed55['get']('trackChanges')['SuggestionThreadView'],_0x39f937=_0x48ed55['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4331f2,CommentThreadInputView:_0x9363f0}=_0x225ee6['plugins']['get']('CommentsUI');let _0x41bacf,_0x50a4d3,_0x2e043e;this['_annotationViews']['has'](_0x3b4f8b['id'])?(_0x50a4d3=this['_annotationViews']['get'](_0x3b4f8b['id']),_0x41bacf=_0x50a4d3['mainView']):(_0x41bacf=new _0x5587e9(_0x225ee6['locale'],_0x3b4f8b,_0x32fd1b,{'disableComments':this['_disableComments'],'editorConfig':{..._0x48ed55['get']('comments.editorConfig'),'licenseKey':_0x48ed55['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x48ed55['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x48ed55['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x48ed55['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5006a4(_0x48ed55['get']('locale')),'CommentView':_0x48ed55['get']('comments')['CommentView'],'CommentsListView':_0x4331f2,'CommentThreadInputView':_0x9363f0,'SuggestionView':_0x39f937}),_0x41bacf['suggestionView']['acceptButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x41bacf['suggestionView']['discardButton']['on']('execute',()=>{_0x225ee6['editing']['view']['focus']();}),_0x50a4d3=_0x480e9b['createAnnotationView'](this['editor']['locale'],_0x41bacf),_0x50a4d3['bind']('isDirty')['to'](_0x41bacf,'isDirty'),_0x50a4d3['bind']('length')['to'](_0x41bacf),_0x50a4d3['bind']('type')['to'](_0x41bacf,'type',_0x1939ac=>'suggestion-'+_0x1939ac),_0x41bacf['on']('escape',()=>{_0x2e043e['fire']('escape');}),this['_annotationViews']['set'](_0x3b4f8b['id'],_0x50a4d3));const _0x1ab86b=_0xd60fd5['createCommentThreadController'](_0x3b4f8b['commentThread'],_0x41bacf),_0x13db53=new ge(_0x225ee6,_0x3b4f8b,_0x41bacf,_0x1ab86b),_0x4b1230=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x3ea84a=>_0x3ea84a['isInContent']);_0x41bacf['descriptionParts']=_0x225ee6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4b1230),this['_suggestionToController']['set'](_0x3b4f8b,_0x13db53),this['_viewToController']['set'](_0x41bacf,_0x13db53),_0x2e043e=_0x480e9b['createAnnotation']({'view':_0x50a4d3,'target':()=>{const _0x3207b6=[],_0x1bf600=_0x3b4f8b['getAllAdjacentSuggestions']()['filter'](_0x2ce6b8=>_0x2ce6b8['isInContent']);for(const _0x41f54a of _0x1bf600)_0x3207b6['push'](..._0x41f54a['getMarkers']());return _0x44803c(_0x225ee6['editing'],_0x3207b6);},'type':()=>'suggestion-'+_0x13db53['view']['type']}),_0xd60fd5['_bindAnnotationToEditors'](_0x41bacf,_0x2e043e),_0x480e9b['add'](_0x2e043e),_0x10e7ab['registerAnnotation'](_0x2e043e);}['_destroyController'](_0x388005){const _0x52cbab=this['editor']['plugins']['get']('CommentsRepository'),_0x16dcf9=this['editor']['plugins']['get']('Annotations'),_0x5f523a=this['_suggestionToController']['get'](_0x388005),_0x409172=_0x5f523a['view'],_0x3e3c3d=_0x16dcf9['getByInnerView'](_0x409172);_0x52cbab['_unbindEditors'](_0x409172),_0x3e3c3d&&_0x16dcf9['remove'](_0x3e3c3d),this['_suggestionToController']['delete'](_0x388005),this['_viewToController']['delete'](_0x409172),_0x5f523a['destroy']();}['_updateController'](_0x42e225){if(!_0x42e225['isInContent']||!this['_suggestionToController']['has'](_0x42e225))return;const _0x16d66a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b4c77=this['_suggestionToController']['get'](_0x42e225),_0x2a54a3=_0x42e225['getAllAdjacentSuggestions']();_0x4b4c77['view']['descriptionParts']=_0x16d66a['descriptionFactory']['getDescriptions'](_0x2a54a3);}['destroy'](){for(const _0xf9c510 of this['_suggestionToController']['keys']())this['_destroyController'](_0xf9c510);for(const _0xe15380 of this['_annotationViews']['values']())_0xe15380['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x31f9a4){return'model'in _0x31f9a4;}class k extends _0x522036{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x56b4bd){this['editor']['plugins']['get'](p)['adapter']=_0x56b4bd;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2ad9d4){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2ad9d4);}['getSuggestions']({skipNotAttached:_0x4c7124=!0x1,toJSON:_0x327ba2=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4c7124,'toJSON':_0x327ba2});}['getSuggestion'](_0x4900d2){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4900d2);}}const w=['Pagination'];class T extends _0x522036{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x45008e=this['editor'];if(_0x45008e['config']['define']('trackChangesData.editorCreator',_0x478a58=>{const _0x4dd320=_0x45008e['model']['document']['getRootNames']()['reduce']((_0x542e74,_0x4ce5c1)=>(_0x542e74[_0x4ce5c1]='',_0x542e74),{});return _0x45008e['constructor']['create'](_0x4dd320,_0x478a58);}),'function'!=typeof _0x45008e['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ac58c('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x418b34){return N(this['editor'],!0x0,_0x418b34);}['getDataWithDiscardedSuggestions'](_0x2f2048){return N(this['editor'],!0x1,_0x2f2048);}}class D extends _0x522036{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b1cd5){function _0x1c9dee(_0x58f1cf){return _0x58f1cf['map'](_0x8a1ba6=>String['fromCharCode'](_0x8a1ba6))['join']('');}super(_0x4b1cd5),this['result']='end',_0x4b1cd5[_0x1c9dee([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c9dee([0x76,0x69,0x65,0x77])][_0x1c9dee([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c9dee([0x61,0x75,0x74,0x6f]),_0x4b1cd5[_0x1c9dee([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1c9dee([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c9dee([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1c9dee([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1c9dee([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 v(_0xa4997c){return void 0x0!==_0xa4997c['getRootsAttributes'];}async function N(_0x332acb,_0x24adaf,_0x32dcba){const _0x5a580d=_0x57fa87(_0x332acb,w);_0x5a580d['plugins']['push'](p,D),_0x5a580d['rootsAttributes']=v(_0x332acb)?_0x332acb['getRootsAttributes']():void 0x0;const _0xd1ab4c=document['createDocumentFragment'](),_0x2aa054=_0x332acb['config']['get']('trackChangesData')['editorCreator'],_0x1086a5=await _0x2aa054(_0x5a580d,()=>function(_0x4e5c6f){const _0x315339=document['createElement']('div');return _0x4e5c6f['appendChild'](_0x315339),_0x315339;}(_0xd1ab4c));!function(_0x12dab4,_0x1e15e1){const _0x3fe744=_0x12dab4['model']['document']['getRootNames']()['reduce']((_0x164ff2,_0x48ab92)=>(_0x164ff2[_0x48ab92]=_0x12dab4['data']['get']({'rootName':_0x48ab92}),_0x164ff2),{}),_0x2a58b2=_0x12dab4['plugins']['get']('Users')['users']['map'](_0x315566=>({'id':_0x315566['id'],'name':_0x315566['name']})),_0x4dd14c=_0x12dab4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x182c9b=_0x12dab4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1d2845=_0x1e15e1['plugins']['get']('Users'),_0x3b2fbe=_0x1e15e1['plugins']['get']('TrackChangesEditing'),_0x38d168=_0x1e15e1['plugins']['get']('CommentsRepository');for(const _0x3c19d2 of _0x38d168['getCommentThreads']())_0x3c19d2['remove']();for(const _0x337cf6 of _0x2a58b2)_0x1d2845['getUser'](_0x337cf6['id'])||_0x1d2845['addUser'](_0x337cf6);_0x1d2845['me']||_0x1d2845['useAnonymousUser']();for(const _0x5aafd9 of _0x182c9b)_0x38d168['addCommentThread'](_0x5aafd9);for(const _0x4ee006 of _0x4dd14c)_0x3b2fbe['addSuggestionData'](_0x4ee006);_0x1e15e1['data']['set'](_0x3fe744);}(_0x332acb,_0x1086a5),_0x1086a5['execute'](_0x24adaf?'acceptAllSuggestions':'discardAllSuggestions');const _0x424628=v(_0x1086a5)?_0x1086a5['getFullData'](_0x32dcba):_0x1086a5['data']['get'](_0x32dcba);return await _0x1086a5['destroy'](),_0x424628;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as Qt,Plugin as _0x4a8caa,PendingActions as _0x270b6b,icons as _0x2c4691}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x562698,ObservableMixin as _0x235e1f,uid as _0x205078,insertToPriorityArray as _0x575b8e,priorities as _0x494c20,logWarning as _0x14f29b,getEnvKeystrokeText as _0x46bc23,FocusTracker as _0x24e33d,KeystrokeHandler as _0x2c0aef,Collection as _0x2afe4c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xb9f5be,View as _0x4bd17a,ViewCollection as _0x32304b,FocusCycler as ts,ViewModel as _0x136c8f,createDropdown as _0x168dba,SplitButtonView as _0x336f15,addListToDropdown as te,MenuBarMenuView as _0x4b9f92,MenuBarMenuListView as _0x1b30e5,ListSeparatorView as _0xf49527,MenuBarMenuListItemView as _0x1e06fb,MenuBarMenuListItemButtonView as _0x209c2c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x117a29,hashObject as _0x1c304,surroundingMarkersDetector as _0xbdba6c,FOCUS_ANNOTATION_KEYSTROKE as _0x2ea0eb,AriaDescriptionView as _0x7503c5,setupThreadKeyboardNavigation as _0x51e096,trimHtml as ti,UserView as _0x403439,LateFocusButtonView as _0x3253a5,getDateTimeFormatter as _0x4be061,getAllMarkersDomElementsSorted as _0x4031ca,sanitizeEditorConfig as _0x151acd}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1bbcd2,LiveRange as _0x4daf91,LivePosition as _0x502f7e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x492f28,toWidget as _0x5d3d60}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x488f54,set as _0x4f97dd,isEqual as _0x1a4045,unset as _0x4777cf,omit as xt}from'lodash-es';import{Delete as _0x403987,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3d94fb,ShiftEnter as _0x103ccf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4a3d4b,_0x3a08ad){super(_0x4a3d4b),this['_enabledCommands']=_0x3a08ad,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 _0x515140 of this['editor']['commands']['commands']())_0x515140['affectsData']&&!this['_enabledCommands']['has'](_0x515140)&&_0x515140['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x368b94 of this['editor']['commands']['commands']())_0x368b94['affectsData']&&!this['_enabledCommands']['has'](_0x368b94)&&_0x368b94['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x69f69b,_0x7acb50){super(_0x69f69b),this['_suggestions']=_0x7acb50,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3c2aba){const _0x4548be=this['_suggestions']['get'](_0x3c2aba);if(!_0x4548be)throw new _0x562698('track-changes-accept-suggestion-not-found',this);const _0x7d751b=_0x4548be['getRanges']();this['editor']['model']['canEditAt'](_0x7d751b)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4548be);}}class R extends Qt{['_suggestions'];constructor(_0x4c6ee5,_0x50f69f){super(_0x4c6ee5),this['_suggestions']=_0x50f69f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xabe34){const _0x40ac52=this['_suggestions']['get'](_0xabe34);if(!_0x40ac52)throw new _0x562698('track-changes-discard-suggestion-not-found',this);const _0x1d331e=_0x40ac52['getRanges']();this['editor']['model']['canEditAt'](_0x1d331e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x40ac52);}}function ns(_0xd5da23,_0x2d66cf){let _0x3d25a9='';return _0x3d25a9+=_0xd5da23['split']('*')['map']((_0x156c89,_0x24ce81)=>_0x24ce81%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x156c89)+'</span>':nn(_0x156c89))['join'](''),_0x2d66cf&&(_0x3d25a9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2d66cf['value']+'\x22\x20title=\x22'+_0x2d66cf['title']+'\x22></span>'),_0x3d25a9;}function nn(_0x3f0d37){const _0x32833b=document['createElement']('span');return _0x32833b['innerText']=_0x3f0d37,_0x32833b['innerHTML'];}function Wt(_0x35c8c1){return _0x35c8c1['sort']((_0x2070fa,_0x36cef8)=>'deletion'==_0x2070fa['type']&&'deletion'!=_0x36cef8['type']?-0x1:'deletion'!=_0x2070fa['type']&&'deletion'==_0x36cef8['type']?0x1:0x0);}function to(_0x1b7435,_0x5f152c){let _0x73b0bc,_0x5e0243=0x0;const _0x2e5064=[],_0x1fce09=_0x5f152c['schema'];for(;_0x5e0243<_0x1b7435['length'];){const _0x1564cb=_0x1b7435[_0x5e0243],_0x27574c=_0x1b7435[_0x5e0243+0x1];_0x73b0bc||(_0x73b0bc=_0x5f152c['createPositionBefore'](_0x1564cb)),on(_0x5f152c,_0x1564cb,_0x27574c)||(_0x2e5064['push'](_0x5f152c['createRange'](_0x73b0bc,_0x1fce09['isObject'](_0x1564cb)?_0x5f152c['createPositionAfter'](_0x1564cb):_0x5f152c['createPositionAt'](_0x1564cb,'end'))),_0x73b0bc=null),_0x5e0243++;}return _0x2e5064;}function on(_0x1ce72f,_0x3946b8,_0x87dd91){if(!_0x87dd91)return!0x1;const _0x56e939=_0x1ce72f['createPositionAfter'](_0x3946b8),_0x2dd923=_0x1ce72f['createPositionBefore'](_0x87dd91);return _0x56e939['isTouching'](_0x2dd923);}function Xt(_0x4316d,_0x42ec6b,_0x8b6f61){for(;_0x8b6f61['length'];){const _0x32eaf1=_0x8b6f61['splice'](0x0,0x64);_0x4316d['change'](()=>{for(const _0xfce34 of _0x32eaf1)_0xfce34['isInContent']&&_0x42ec6b['execute'](_0xfce34['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x493bec,_0x5abbb4,_0x12d8ad){super(_0x493bec),this['_command']=_0x5abbb4,this['_suggestions']=_0x12d8ad,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x222819=Array['from'](this['_suggestions']['values']())['some'](_0x1d0048=>_0x1d0048['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x222819;}['execute'](){const _0x14b701=Wt(Array['from'](this['_suggestions']['values']()));for(const _0xd09246 of _0x14b701){const _0x16538a=_0xd09246['getRanges']();if(!this['editor']['model']['canEditAt'](_0x16538a))return;}Xt(this['editor']['model'],this['_command'],_0x14b701);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3d8ac1,_0x434564,_0x212ddd){super(_0x3d8ac1),this['_command']=_0x434564,this['_suggestions']=_0x212ddd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x494ee0=this['editor']['model']['document']['selection'],_0x73af07=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2790a5,_0x137891){const _0x26041e=Array['from'](_0x2790a5['getRanges']()),_0x439547=new Set();for(const _0x3b3192 of _0x137891)if(_0x3b3192['isInContent']){for(const _0x69fa71 of _0x26041e)for(const _0x1bb3d4 of _0x3b3192['getRanges']())(_0x69fa71['isIntersecting'](_0x1bb3d4)||_0x2790a5['isCollapsed']&&!_0x3b3192['isMultiRange']&&_0x3b3192['next']&&_0x1bb3d4['end']['isTouching'](_0x69fa71['start']))&&_0x439547['add'](_0x3b3192);}return _0x439547;}(_0x494ee0,_0x73af07),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xa5560c=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x270d00 of _0xa5560c){const _0x459fa7=_0x270d00['getRanges']();if(!this['editor']['model']['canEditAt'](_0x459fa7))return;}Xt(this['editor']['model'],this['_command'],_0xa5560c);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x235e1f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4cea86,_0x3a8300){super(),this['id']=_0x3a8300['id'],this['type']=_0x3a8300['type'],this['subType']=_0x3a8300['subType']||null,this['author']=_0x3a8300['author'],this['creator']=_0x3a8300['creator']||_0x3a8300['author'],this['isExternal']=Boolean(_0x3a8300['attributes']&&_0x3a8300['attributes']['@external']),this['data']=null,this['_model']=_0x4cea86,this['_onAccept']=_0x3a8300['onAccept'],this['_onDiscard']=_0x3a8300['onDiscard'],this['_onAttributesChange']=_0x3a8300['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3a8300['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 _0x4e42f0=this;for(;_0x4e42f0['previous'];)_0x4e42f0=_0x4e42f0['previous'];return _0x4e42f0;}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'](_0x1b5b05){this['_markerNames']['add'](_0x1b5b05);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x35e61=>this['_model']['markers']['get'](_0x35e61))['filter'](_0x1840bc=>_0x1840bc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x537f40=>{for(const _0x401eaa of this['getMarkers']())_0x537f40['removeMarker'](_0x401eaa);}),this['_markerNames']['clear']();}['removeMarker'](_0x309183){this['_model']['change'](_0x17c9d7=>{_0x17c9d7['removeMarker'](_0x309183);}),this['_markerNames']['delete'](_0x309183);}['addRange'](_0x4807be){const _0xb4f3a3='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xb4f3a3),this['_model']['change'](_0x3356eb=>{_0x3356eb['addMarker'](_0xb4f3a3,{'range':_0x4807be,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5c3166){for(const _0x587257 of this['getRanges']())if(_0x587257['isIntersecting'](_0x5c3166))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x182488=>_0x182488['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x178959,_0x2b093b)=>[..._0x178959,..._0x2b093b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5cd195=this['getRanges']();if(0x1!=_0x5cd195['length'])return null;const _0x465037=_0x5cd195[0x0],_0x364df4=_0x465037['start']['nodeAfter'],_0x294dd4=_0x465037['end']['nodeBefore'];return _0x364df4 instanceof _0x1bbcd2?_0x364df4!=_0x294dd4?null:_0x364df4: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 _0x59da9d=[];let _0x3d39bc=this['head'];for(;_0x3d39bc;)_0x59da9d['push'](_0x3d39bc),_0x3d39bc=_0x3d39bc['next'];return _0x59da9d;}['setAttribute'](_0x4f8fe6,_0x2fb026){const _0x135122=_0x488f54(this['attributes']);_0x4f97dd(_0x135122,_0x4f8fe6,_0x2fb026),_0x1a4045(_0x135122,this['attributes'])||(this['attributes']=_0x135122,this['_onAttributesChange'](_0x135122));}['removeAttribute'](_0x4704de){const _0x468a4e=_0x488f54(this['attributes']);_0x4777cf(_0x468a4e,_0x4704de),_0x1a4045(_0x468a4e,this['attributes'])||(this['attributes']=_0x468a4e,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 _0x205078()['substr'](0x1,0x5);}}function o(_0xc4a9c9,_0x28e809,_0x46f6c5){const _0x5e7bd7=_0xc4a9c9['t'],t=_0xc4a9c9['t'];switch(_0x28e809){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x46f6c5);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x46f6c5);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x46f6c5);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x46f6c5);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x46f6c5);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',_0x46f6c5);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x46f6c5);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x46f6c5);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x46f6c5);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x46f6c5);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x46f6c5);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x46f6c5);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x46f6c5);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x46f6c5);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x46f6c5);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x46f6c5);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x46f6c5);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x46f6c5);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x46f6c5);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x46f6c5);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x46f6c5);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x46f6c5);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x46f6c5);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x46f6c5);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x46f6c5);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x46f6c5);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x46f6c5);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x46f6c5);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x46f6c5);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x46f6c5);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x46f6c5);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x46f6c5);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'},_0x46f6c5);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x46f6c5);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 _0x5e7bd7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x46f6c5);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5e7bd7({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x46f6c5);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);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'},_0x46f6c5);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x28e809;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5845a6,_0x18363c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5845a6,this['_locale']=_0x18363c;}['getDescriptions'](_0x82b83c){const _0x45f56c=[],_0x1ce362=new Set(),_0x335025=new Set();for(let _0x4e4bc8=0x0;_0x4e4bc8<_0x82b83c['length'];_0x4e4bc8++){const _0x52a815=_0x82b83c[_0x4e4bc8];if(!_0x52a815['isInContent'])continue;const _0x64dc06=this['_handleCustomCallbackDescription'](_0x52a815);if(_0x64dc06){if(null!=_0x52a815['subType']){if(_0x1ce362['has'](_0x52a815['subType']))continue;_0x1ce362['add'](_0x52a815['subType']);}_0x45f56c['push'](_0x64dc06);}else{if('attribute'!=_0x52a815['type'])'insertion'!=_0x52a815['type']&&'deletion'!=_0x52a815['type']||this['_handleInsertRemoveSuggestionDescription'](_0x45f56c,_0x52a815,_0x82b83c[_0x4e4bc8+0x1]);else{const _0x5557fc=_0x52a815['data']['key'];if(_0x335025['has'](_0x5557fc))continue;_0x335025['add'](_0x52a815['data']['key']),_0x5557fc==m?this['_handleRenameSuggestionDescription'](_0x45f56c,_0x52a815):this['_handleAttributeSuggestionDescription'](_0x45f56c,_0x52a815);}}}return this['_resolveDescriptionItems'](_0x45f56c);}['registerDescriptionCallback'](_0x4af08f){this['_customCallbacks']['push'](_0x4af08f);}['registerElementLabel'](_0xae53dc,_0x2228b3,_0x584914=_0x494c20['normal']){'function'==typeof _0xae53dc?_0x575b8e(this['_itemLabelsCallbacks'],{'matchingCallback':_0xae53dc,'label':_0x2228b3,'priority':_0x584914}):this['_itemLabels']['set'](_0xae53dc,_0x2228b3);}['registerAttributeLabel'](_0x2b2bc3,_0x486a3b){this['_attributeLabels']['set'](_0x2b2bc3,_0x486a3b);}['getItemLabel'](_0x524fa4,_0x14b794=0x1){let _0x1cf657;for(const _0x33608d of this['_itemLabelsCallbacks'])if(_0x33608d['matchingCallback'](_0x524fa4)){_0x1cf657=_0x33608d['label'];break;}return _0x1cf657||(_0x1cf657=this['_itemLabels']['get'](_0x524fa4['name'])),_0x1cf657?_0x1cf657(_0x14b794):0x1!==_0x14b794?_0x14b794+'\x20'+_0x524fa4['name']+'s':''+_0x524fa4['name'];}['_addDescriptionItems'](_0x16b9f5,_0x2f58f8){const _0x4a3ea7=_0x2f58f8['getFirstRange']()['getWalker'](),_0x53b6e5='insertion'==_0x2f58f8['type']?'add':'remove';for(const _0x572ae9 of _0x4a3ea7){const _0x194f39=_0x572ae9['item'],_0x3f7501=_0x16b9f5[_0x16b9f5['length']-0x1];if(_0x194f39['is']('$textProxy'))_0x3f7501&&_0x3f7501['type']['indexOf']('Container')>-0x1&&_0x16b9f5['pop'](),_0x3f7501&&'text'==_0x3f7501['type']?_0x3f7501[_0x53b6e5]+=_0x194f39['data']:_0x16b9f5['push']({'type':'text','add':'add'==_0x53b6e5?_0x194f39['data']:'','remove':'remove'==_0x53b6e5?_0x194f39['data']:''});else{if(this['_schema']['isObject'](_0x194f39)){const _0x1bebbe=_0x194f39;if(_0x3f7501&&_0x3f7501['type']['indexOf']('Container')>-0x1&&_0x16b9f5['pop'](),'elementEnd'==_0x572ae9['type'])continue;_0x3f7501&&_0x3f7501['type']==_0x53b6e5+'Object'&&_0x3f7501['element']['name']==_0x1bebbe['name']?_0x3f7501['quantity']++:_0x16b9f5['push']({'type':_0x53b6e5+'Object','element':_0x1bebbe,'quantity':0x1}),_0x4a3ea7['skip'](_0x5d58dd=>!('elementEnd'==_0x5d58dd['type']&&_0x5d58dd['item']==_0x194f39));}else{if(this['_schema']['checkChild'](_0x194f39,'$text')||_0x194f39['is']('element','softBreak')){const _0x5ad354=_0x194f39;if('add'==_0x53b6e5&&'elementStart'==_0x572ae9['type']||'remove'==_0x53b6e5&&'elementEnd'==_0x572ae9['type'])continue;if(_0x3f7501&&-0x1==_0x3f7501['type']['indexOf']('Container')){'text'==_0x3f7501['type']&&(_0x3f7501[_0x53b6e5]+='\x0a');continue;}let _0xb77d60;if(_0xb77d60='add'==_0x53b6e5?_0x5ad354['nextSibling']&&!this['_schema']['isObject'](_0x5ad354['nextSibling'])?_0x5ad354['nextSibling']:null:_0x5ad354['previousSibling']&&!this['_schema']['isObject'](_0x5ad354['previousSibling'])?_0x5ad354['previousSibling']:null,_0x5ad354['isEmpty']||_0xb77d60&&_0xb77d60['isEmpty']){const _0x48ab42=_0xb77d60&&_0xb77d60['isEmpty']?_0xb77d60:_0x5ad354;_0x3f7501&&_0x3f7501['type']==_0x53b6e5+'EmptyContainer'&&_0x3f7501['element']['name']==_0x48ab42['name']?_0x3f7501['quantity']++:_0x16b9f5['push']({'type':_0x53b6e5+'EmptyContainer','element':_0x48ab42,'quantity':0x1});}else _0x16b9f5['push']({'type':_0x53b6e5+'Container','element':_0x5ad354});}}}}}['_resolveDescriptionItems'](_0x271985){const _0x502016=this['_locale'],_0xc7ad6d=[],_0x2e7a33=[],_0x4b3a32=[];for(const _0x398255 of _0x271985)switch(_0x398255['type']){case'text':if(_0x398255['add']=_0x398255['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x398255['remove']=_0x398255['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x398255['add']&&''!=_0x398255['remove']){_0xc7ad6d['push']({'type':'replace','content':o(_0x502016,'REPLACE_TEXT',['\x22'+_0x398255['remove']+'\x22','\x22'+_0x398255['add']+'\x22'])});continue;}if(null!=_0x398255['add']['match'](/^ +$/)){_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0',o(_0x502016,'ELEMENT_SPACE',_0x398255['add']['length']))});continue;}if(null!=_0x398255['remove']['match'](/^ +$/)){_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0',o(_0x502016,'ELEMENT_SPACE',_0x398255['remove']['length']))});continue;}if(''!=_0x398255['add']){_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0','\x22'+_0x398255['add']+'\x22')});continue;}_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0','\x22'+_0x398255['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Insert:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Remove:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'addContainer':_0xc7ad6d['push']({'type':'insertion','content':o(_0x502016,'*Split:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'removeContainer':_0xc7ad6d['push']({'type':'deletion','content':o(_0x502016,'*Merge:*\x20%0',this['getItemLabel'](_0x398255['element'],_0x398255['quantity']))});continue;case'addFormat':_0x2e7a33['push'](_0x398255['key']);continue;case'removeFormat':_0x4b3a32['push'](_0x398255['key']);continue;default:_0xc7ad6d['push'](_0x398255);}if(_0x2e7a33['length']){const _0x11d152=_0x2e7a33['map'](_0x4e70bb=>this['_attributeLabels']['has'](_0x4e70bb)?this['_attributeLabels']['get'](_0x4e70bb):_0x4e70bb)['join'](',\x20');_0xc7ad6d['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x11d152)});}if(_0x4b3a32['length']){const _0x423163=_0x4b3a32['map'](_0x5a8235=>this['_attributeLabels']['has'](_0x5a8235)?this['_attributeLabels']['get'](_0x5a8235):_0x5a8235)['join'](',\x20');_0xc7ad6d['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x423163)});}return _0xc7ad6d;}['_handleCustomCallbackDescription'](_0x49cf90){for(const _0x202f77 of this['_customCallbacks']){const _0x485748=_0x202f77(_0x49cf90);if(_0x485748&&'type'in _0x485748)return _0x485748;}}['_handleAttributeSuggestionDescription'](_0x3e59fc,_0x2debbd){const _0x18550e=_0x2debbd['data'],_0x23f325=void 0x0===_0x18550e['newValue']?'removeFormat':'addFormat';_0x3e59fc['push']({'type':_0x23f325,'key':_0x18550e['key']});}['_handleRenameSuggestionDescription'](_0x468f92,_0x3abee4){_0x468f92['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3abee4['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4f6912,_0x45a76a,_0x4fda58){if(this['_addDescriptionItems'](_0x4f6912,_0x45a76a),_0x4fda58&&_0x4fda58['getFirstRange']()&&!_0x45a76a['getFirstRange']()['end']['isEqual'](_0x4fda58['getFirstRange']()['start'])){const _0xdaa83a=_0x4f6912[_0x4f6912['length']-0x1],_0xd5e2ec='insertion'==_0x45a76a['type']?'add':'remove';_0xdaa83a&&'text'==_0xdaa83a['type']&&(_0xdaa83a[_0xd5e2ec]+='\x0a');}}}class U extends _0x4a8caa{['afterInit'](){const _0x86fa2d=this['editor'],_0x140556=_0x86fa2d['plugins']['get']('TrackChangesEditing');_0x86fa2d['commands']['get']('showAIAssistant')&&_0x140556['enableCommand']('showAIAssistant');}}class V extends _0x4a8caa{['afterInit'](){const _0x3c1085=this['editor'],_0x4c7ddc=_0x3c1085['locale'];if(!_0x3c1085['plugins']['has']('AlignmentEditing'))return;const _0x552511=_0x3c1085['plugins']['get']('TrackChangesEditing');_0x552511['enableDefaultAttributesIntegration']('alignment'),_0x552511['registerBlockAttribute']('alignment'),_0x552511['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4c7ddc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x574286=this['editor'],_0x34616e=_0x574286['locale'];_0x574286['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1456b4=>{if('formatBlock'!=_0x1456b4['type'])return;const {data:_0x1ed4ab}=_0x1456b4;if(_0x1ed4ab&&'alignment'==_0x1ed4ab['commandName']){const _0x47e9f6=_0x1ed4ab['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x34616e,'*Format:*\x20%0',function(_0x3f213c){switch(_0x3f213c){case'left':return o(_0x34616e,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x34616e,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x34616e,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x34616e,'FORMAT_JUSTIFY_TEXT');}}(_0x47e9f6))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x4a8caa{['afterInit'](){const _0x1eb02b=this['editor'],_0x171097=_0x1eb02b['plugins']['get']('TrackChangesEditing'),_0x144b98=_0x1eb02b['locale'];for(const _0x32feee of Zt){if(!_0x1eb02b['plugins']['has'](_0x32feee))continue;const _0x2b7c6e=_0x32feee['slice'](0x0,-0x7)['toLowerCase'](),_0x27dccc='FORMAT_'+_0x2b7c6e['toUpperCase']();_0x171097['enableDefaultAttributesIntegration'](_0x2b7c6e),_0x171097['registerInlineAttribute'](_0x2b7c6e),_0x171097['descriptionFactory']['registerAttributeLabel'](_0x2b7c6e,o(_0x144b98,_0x27dccc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x121051=this['editor'],_0x3a0dbb=_0x121051['locale'],_0x364b07=_0x121051['plugins']['get']('TrackChangesEditing');function _0x559c84(_0x4a305d,_0x4352b8){_0x364b07['descriptionFactory']['registerDescriptionCallback'](_0x3c521d=>{if('formatInline'!=_0x3c521d['type'])return;const {data:_0x1adac6}=_0x3c521d;return _0x1adac6&&_0x1adac6['commandName']===_0x4a305d?_0x1adac6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a0dbb,'*Format:*\x20%0',_0x4352b8)}:{'type':'format','content':o(_0x3a0dbb,'*Remove\x20format:*\x20%0',_0x4352b8)}:void 0x0;});}_0x559c84('bold',o(_0x3a0dbb,'FORMAT_BOLD')),_0x559c84('italic',o(_0x3a0dbb,'FORMAT_ITALIC')),_0x559c84('underline',o(_0x3a0dbb,'FORMAT_UNDERLINE')),_0x559c84('code',o(_0x3a0dbb,'FORMAT_CODE')),_0x559c84('strikethrough',o(_0x3a0dbb,'FORMAT_STRIKETHROUGH')),_0x559c84('subscript',o(_0x3a0dbb,'FORMAT_SUBSCRIPT')),_0x559c84('superscript',o(_0x3a0dbb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x4a8caa{['afterInit'](){const _0x124f19=this['editor'],_0x559b98=_0x124f19['locale'];if(!_0x124f19['plugins']['has']('BlockQuoteEditing'))return;const _0x2ec8c1=_0x124f19['plugins']['get']('TrackChangesEditing'),_0x2abb08=this['editor']['commands']['get']('blockQuote');_0x2ec8c1['enableCommand']('blockQuote',(_0xa4995f,_0x1e2521={})=>{const _0x24c654=this['editor']['model']['document']['selection'],_0x48c8da=_0x1e2521&&void 0x0!==_0x1e2521['forceValue']?_0x1e2521['forceValue']:!_0x2abb08['value'];let _0x3ced20=[];if(_0x48c8da){const _0x4917b4=Array['from'](_0x24c654['getSelectedBlocks']())['filter'](_0x1f601f=>oo(_0x1f601f)||function(_0x20aa4a,_0x4e466d){const _0x26c6c1=_0x4e466d['checkChild'](_0x20aa4a['parent'],'blockQuote'),_0x387740=_0x4e466d['checkChild'](['$root','blockQuote'],_0x20aa4a);return _0x26c6c1&&_0x387740;}(_0x1f601f,this['editor']['model']['schema']));_0x3ced20=to(_0x4917b4,_0x124f19['model']);}else{const _0x32a6f6=Array['from'](_0x24c654['getSelectedBlocks']())['filter'](_0x56420d=>oo(_0x56420d));_0x3ced20=to(_0x32a6f6,_0x124f19['model']);}_0x124f19['model']['change'](()=>{for(const _0xe766ff of _0x3ced20)_0x2ec8c1['markBlockFormat'](_0xe766ff,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x48c8da}]});});}),_0x2ec8c1['descriptionFactory']['registerDescriptionCallback'](_0x4ae3a2=>{const {data:_0x52a75d}=_0x4ae3a2;if(_0x52a75d&&'blockQuote'==_0x52a75d['commandName']){const _0x50e656=o(_0x559b98,'ELEMENT_BLOCK_QUOTE');return _0x52a75d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x559b98,'*Set\x20format:*\x20%0',_0x50e656)}:{'type':'format','content':o(_0x559b98,'*Remove\x20format:*\x20%0',_0x50e656)};}});}}function oo(_0x2934d2){return'blockQuote'==_0x2934d2['parent']['name'];}class L extends _0x4a8caa{['afterInit'](){const _0x107af9=this['editor'],_0x8d98aa=_0x107af9['locale'],_0x38c116=_0x107af9['plugins']['get']('TrackChangesEditing');_0x107af9['plugins']['has']('BookmarkEditing')&&(_0x38c116['enableCommand']('insertBookmark'),_0x38c116['enableDefaultAttributesIntegration']('updateBookmark'),_0x38c116['registerBlockAttribute']('bookmarkId'),_0x38c116['descriptionFactory']['registerDescriptionCallback'](_0x2137af=>{if('insertion'!=_0x2137af['type']&&'deletion'!=_0x2137af['type']&&'attribute'!=_0x2137af['type'])return;const _0x2d475e=_0x2137af['getContainedElement']();if(null==_0x2d475e)return;if(!_0x2d475e['is']('element','bookmark'))return;const _0x24145a=_0x2d475e['getAttribute']('bookmarkId');if('insertion'==_0x2137af['type'])return{'type':'insertion','content':o(_0x8d98aa,'*Insert:*\x20%0','\x22'+_0x24145a+'\x22\x20'+o(_0x8d98aa,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2137af['type'])return{'type':'deletion','content':o(_0x8d98aa,'*Remove:*\x20%0','\x22'+_0x24145a+'\x22\x20'+o(_0x8d98aa,'ELEMENT_BOOKMARK'))};const {data:_0x54f0dd}=_0x2137af;if(!_0x54f0dd||'bookmarkId'!=_0x54f0dd['key'])return;return{'type':'format','content':o(_0x8d98aa,'*Set\x20bookmark:*\x20%0','\x22'+_0x54f0dd['newValue']+'\x22')};}));}}class J extends _0x4a8caa{['afterInit'](){const _0x614793=this['editor'];_0x614793['plugins']['has']('CaseChange')&&(_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x614793['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x4a8caa{['afterInit'](){const _0x1ff868=this['editor'];_0x1ff868['commands']['get']('ckbox')&&_0x1ff868['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x4a8caa{['afterInit'](){const _0x2d6244=this['editor'];if(!_0x2d6244['plugins']['has']('CodeBlock'))return;const _0x1da88f=_0x2d6244['plugins']['get']('TrackChangesEditing'),_0x4ef770=_0x2d6244['locale'],_0x1f5130=_0x2d6244['config']['get']('codeBlock')['languages'],_0x115c76=_0x2d6244['commands']['get']('codeBlock');_0x1da88f['enableCommand']('indentCodeBlock'),_0x1da88f['enableCommand']('outdentCodeBlock'),_0x1da88f['enableCommand']('codeBlock',(_0x240819,_0x1ddb78={})=>{const _0x14c5a0=_0x2d6244['model'],_0x1212cf=_0x2d6244['model']['document']['selection'],_0x155c30=_0x1ddb78&&void 0x0!==_0x1ddb78['forceValue']?_0x1ddb78['forceValue']:!_0x115c76['value'];let _0x689fe5;_0x1ddb78['language']||(_0x1ddb78['language']=_0x1f5130[0x0]['language']),_0x689fe5=_0x155c30?Array['from'](_0x1212cf['getSelectedBlocks']())['filter'](_0x197fdb=>eo(_0x197fdb)||function(_0xb7c988,_0x148fea){if(_0xb7c988['is']('rootElement')||_0x148fea['isLimit'](_0xb7c988))return!0x1;return _0x148fea['checkChild'](_0xb7c988['parent'],'codeBlock');}(_0x197fdb,_0x14c5a0['schema'])):Array['from'](_0x1212cf['getSelectedBlocks']())['filter'](_0x1f6fbd=>eo(_0x1f6fbd));const _0x3656e2=to(_0x689fe5,_0x14c5a0);_0x14c5a0['change'](()=>{for(const _0x12091d of _0x3656e2)_0x1da88f['markBlockFormat'](_0x12091d,{'commandName':'codeBlock','commandParams':[{..._0x1ddb78,'forceValue':_0x155c30}],'formatGroupId':'blockName'});});}),(_0x1da88f['descriptionFactory']['registerElementLabel']('codeBlock',_0x4965c8=>o(_0x4ef770,'ELEMENT_CODE_BLOCK',_0x4965c8)),_0x1da88f['descriptionFactory']['registerDescriptionCallback'](_0x49fb6d=>{if('formatBlock'!=_0x49fb6d['type'])return;const _0x272e62=_0x4ef770['t'],{data:_0x58ccd3}=_0x49fb6d;if(!_0x58ccd3||'codeBlock'!=_0x58ccd3['commandName'])return;const _0x2a62d8=_0x58ccd3['commandParams'][0x0]['language'],_0x5af68f=_0x272e62(_0x1f5130['find'](_0x251949=>_0x251949['language']===_0x2a62d8)['label'])['toLowerCase']();return _0x58ccd3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ef770,'*Set\x20format:*\x20%0',o(_0x4ef770,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5af68f+')')}:{'type':'format','content':o(_0x4ef770,'*Remove\x20format:*\x20%0',o(_0x4ef770,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4b779a){return'codeBlock'==_0x4b779a['name'];}class z extends _0x4a8caa{['afterInit'](){const _0x269dc3=this['editor'];if(!_0x269dc3['plugins']['has']('CommentsEditing'))return;_0x269dc3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1f4c0a,_0x536fc9,_0x3aa0e4){const _0x29fffe=[];for(const _0x4405c7 of _0x536fc9['getItems']())_0x4405c7['hasAttribute'](_0x1f4c0a)&&_0x29fffe['push'](_0x3aa0e4['createRangeOn'](_0x4405c7));return _0x29fffe;}function Ne(_0x3368a3,_0x33ff39,{showActiveMarker:_0x3b4955=!0x0}={}){const _0x3eba8c=_0x3368a3['plugins']['get']('TrackChangesEditing');return(_0x5ac422,_0x412053,_0x1bc165)=>{if(!_0x1bc165['consumable']['test'](_0x412053['markerRange'],_0x5ac422['name']))return;const _0x5d7609=_0x412053['markerRange']['getWalker'](),_0x33870d=_0x412053['markerRange']['start'],_0x3075dd=_0x3368a3['model']['schema'];let _0x244c1d=null,_0xf6cd07=null,_0x54ef60=!0x1,_0x3d6284=!0x1;for(const _0x3d768c of _0x5d7609){const _0x3d11d0=_0x3d768c['item'];_0x54ef60=_0x54ef60||_0x3075dd['isContent'](_0x3d11d0);const _0x1f3748=_0x1bc165['mapper']['toViewElement'](_0x3d11d0);if(_0x1f3748&&_0x1f3748['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d768c['type']&&(_0x3075dd['isBlock'](_0x3d11d0)&&!_0x3075dd['isLimit'](_0x3d11d0)&&(_0x3d11d0['nextSibling']||_0x33870d['isAtEnd']?_0x244c1d&&_0x244c1d['parent']==_0x3d11d0||(_0x244c1d=_0x3d11d0,_0x1a4b9e(_0x3d768c['previousPosition']),_0x3d6284=!0x0):_0xf6cd07=_0xf6cd07||_0x3d768c['previousPosition']));}function _0x1a4b9e(_0x4d6163){const {authorId:_0x394058}=_0x3eba8c['_splitMarkerName'](_0x412053['markerName']),_0x3c350b=_0x1bc165['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x33ff39,'data-author-id':_0x394058}),_0x5769fd=_0x1bc165['mapper']['toViewPosition'](_0x4d6163);_0x3b4955&&_0x3eba8c['activeMarkers']['includes'](_0x412053['markerName'])&&_0x1bc165['writer']['addClass']('ck-suggestion-marker--active',_0x3c350b),_0x1bc165['writer']['insert'](_0x5769fd,_0x3c350b),_0x1bc165['mapper']['bindElementToMarker'](_0x3c350b,_0x412053['markerName']);}_0x54ef60||_0x3d6284||!_0xf6cd07||_0x1a4b9e(_0xf6cd07);};}class K extends _0x4a8caa{static get['requires'](){return[_0x403987];}['init'](){const _0xc6faf2=this['editor'],_0xb3fd14=_0xc6faf2['plugins']['get']('TrackChangesEditing');_0xb3fd14['enableCommand']('delete');const _0x448f36=_0xc6faf2['commands']['get']('deleteForward');_0xb3fd14['enableCommand']('deleteForward',(_0x4208dc,_0x2d4159={})=>{const _0x6f9d44=_0xc6faf2['model']['createSelection'](_0xc6faf2['model']['document']['selection']);_0x6f9d44['isCollapsed']&&_0xc6faf2['model']['modifySelection'](_0x6f9d44,{'direction':'forward','unit':_0x2d4159['unit']});const _0x5dfae8=_0x6f9d44['getFirstRange'](),_0x4cc5aa=_0x4daf91['fromRange'](_0x5dfae8);let _0x2d74ac;_0x4208dc(_0x2d4159),_0x2d74ac='$graveyard'==_0x4cc5aa['root']['rootName']?_0xc6faf2['model']['createRange'](_0x5dfae8['start']):_0xc6faf2['model']['createRange'](_0x4cc5aa['start'],_0x4cc5aa['end']),_0x4cc5aa['detach'](),_0xc6faf2['model']['enqueueChange'](_0x448f36['buffer']['batch'],_0x5ca7d9=>{_0x448f36['buffer']['lock'](),_0x5ca7d9['setSelection'](_0x5ca7d9['createRange'](_0x2d74ac['end'])),_0x448f36['buffer']['unlock']();});}),_0xc6faf2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0xc6faf2,'merge'),{'priority':'high'}),_0xc6faf2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x18ea2e,_0x32cdf6,_0x3f84ab)=>{_0x3f84ab['options']['showSuggestionHighlights']&&Ne(_0xc6faf2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x18ea2e,_0x32cdf6,_0x3f84ab);},{'priority':'high'}),_0xc6faf2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x37f377,_0x54aebf,_0x4c3144)=>{const _0x3c6025=_0x4c3144['mapper']['markerNameToElements'](_0x54aebf['markerName']);if(_0x3c6025){for(const _0x4921fa of _0x3c6025)_0x4921fa['is']('uiElement')&&(_0x4c3144['mapper']['unbindElementFromMarkerName'](_0x4921fa,_0x54aebf['markerName']),_0x4c3144['writer']['remove'](_0x4921fa));}},{'priority':'high'});}}class W extends _0x4a8caa{['afterInit'](){const _0x2dd3b1=this['editor'];if(!_0x2dd3b1['plugins']['has']('ListEditing'))return;const _0x23e3e1=_0x2dd3b1['locale'],_0x3466b4=_0x2dd3b1['plugins']['get']('TrackChangesEditing'),_0x2a711e=_0x2dd3b1['plugins']['has']('TodoListEditing'),_0x4d7c16=!!_0x2dd3b1['config']['get']('list.multiBlock');function _0x421b6b(_0x13d525){return{'type':'format','content':''+o(_0x23e3e1,'*Set\x20format:*\x20%0',_0x13d525)};}function _0x912c68(_0x3cfaad){return{'type':'format','content':''+o(_0x23e3e1,'*Remove\x20format:*\x20%0',_0x3cfaad)};}_0x3466b4['enableDefaultAttributesIntegration']('numberedList'),_0x3466b4['enableDefaultAttributesIntegration']('bulletedList'),_0x3466b4['enableDefaultAttributesIntegration']('customNumberedList'),_0x3466b4['enableDefaultAttributesIntegration']('customBulletedList'),_0x3466b4['enableDefaultAttributesIntegration']('indentList'),_0x3466b4['enableDefaultAttributesIntegration']('outdentList'),_0x3466b4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3466b4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3466b4['registerBlockAttribute']('listItemId'),_0x3466b4['registerBlockAttribute']('listType'),_0x3466b4['registerBlockAttribute']('listIndent'),_0x4d7c16&&(_0x3466b4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3466b4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2a711e&&(_0x3466b4['enableDefaultAttributesIntegration']('todoList'),_0x3466b4['enableDefaultAttributesIntegration']('checkTodoList'),_0x3466b4['registerBlockAttribute']('todoListChecked'),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x1e1ea9=>{const {data:_0x3006c7}=_0x1e1ea9;if(_0x3006c7&&'todoListChecked'==_0x3006c7['key'])return{'type':'format','content':_0x3006c7['newValue']?o(_0x23e3e1,'*Check\x20item*'):o(_0x23e3e1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x564e56=>{if(_0x564e56['batch']['isUndo'])return!0x1;let _0x1852a9=!0x1;const _0x241e9d=_0x3466b4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d13e8=>'todoListChecked'===_0x3466b4['_getAttributeKey'](_0x5d13e8));for(const _0x5d7710 of _0x241e9d){'todo'!=_0x5d7710['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3466b4['_findSuggestions'](_0x5d7710['getFirstRange'](),'attribute')['find'](_0x2f9cdf=>'listType'===_0x3466b4['_getAttributeKey'](_0x2f9cdf['suggestion']))||(_0x564e56['removeMarker'](_0x5d7710['getFirstMarker']()),_0x1852a9=!0x0));}return _0x1852a9;})),_0x3466b4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x23e3e1,'FORMAT_INDENT'));const _0x1562c1={'type':'format','content':''};_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0xe19f58=>{const {data:_0x24b1f}=_0xe19f58;if(!_0x24b1f||'listType'!=_0x24b1f['key'])return;let _0x4f51dd=_0xe19f58['head'];for(;_0x4f51dd;){if(_0x4f51dd['data']&&(('listStyle'==_0x4f51dd['data']['key']||'listMarkerStyle'==_0x4f51dd['data']['key'])&&(_0x4f51dd['data']['newValue']&&'default'!=_0x4f51dd['data']['newValue']||'default'!=_0x4f51dd['data']['oldValue']&&!_0x24b1f['newValue'])||!_0x4d7c16&&_0x4f51dd['data']['key']==m))return _0x1562c1;_0x4f51dd=_0x4f51dd['next'];}if(null==_0x24b1f['newValue'])switch(_0x24b1f['oldValue']){case'bulleted':return _0x912c68(o(_0x23e3e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x912c68(o(_0x23e3e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x912c68(o(_0x23e3e1,'ELEMENT_TODO_LIST'));}switch(_0x24b1f['newValue']){case'bulleted':return _0x421b6b(o(_0x23e3e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x421b6b(o(_0x23e3e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x421b6b(o(_0x23e3e1,'ELEMENT_TODO_LIST'));}}),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x5c4b5e=>{const {data:_0x1b315c}=_0x5c4b5e;if(_0x1b315c&&'listIndent'==_0x1b315c['key'])return null==_0x1b315c['newValue']||null==_0x1b315c['oldValue']&&0x0==_0x1b315c['newValue']?_0x1562c1:void 0x0;}),_0x3466b4['descriptionFactory']['registerDescriptionCallback'](_0x2db435=>{if('attribute'!=_0x2db435['type'])return;const {data:_0x39d5cb}=_0x2db435;if(!_0x39d5cb||'listItemId'!=_0x39d5cb['key'])return;const _0xc00d13=Te(_0x2db435);return'newValue'==_0xc00d13?{'type':'format','content':o(_0x23e3e1,'*Merge:*\x20list\x20item')}:'oldValue'==_0xc00d13?{'type':'format','content':o(_0x23e3e1,'*Split:*\x20list\x20item')}:_0x1562c1;}),_0x2dd3b1['model']['document']['registerPostFixer'](_0x588166=>this['listItemIdFixer'](_0x588166)),_0x2dd3b1['model']['document']['registerPostFixer'](_0x5eeb84=>this['noTrackChangesFixer'](_0x5eeb84)),_0x2dd3b1['model']['document']['on']('change:data',(_0x53dae6,_0x21ce25)=>{if(_0x21ce25['isUndo']||!_0x21ce25['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1b97ce){if(_0x1b97ce['batch']['isUndo']||!_0x1b97ce['batch']['isLocal'])return!0x1;let _0x4ec314=!0x1;const _0x1375a2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46ed92=>_0x46ed92['data']&&'listItemId'==_0x46ed92['data']['key'])['filter'](_0x2a33a9=>_0x2a33a9['data']['newValue']&&_0x2a33a9['data']['oldValue']);for(const _0x66d8b0 of _0x1375a2)Te(_0x66d8b0)||(_0x1b97ce['removeMarker'](_0x66d8b0['getFirstMarker']()),_0x4ec314=!0x0);return _0x4ec314;}['noTrackChangesFixer'](_0x529f57){if(_0x529f57['batch']['isUndo']||!_0x529f57['batch']['isLocal'])return!0x1;const _0x237507=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x237507['trackChangesCommand']['value'])return!0x1;let _0x25b042=!0x1;const _0x2f068d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x52ecb0=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17cd57=>'attribute'==_0x17cd57['type'])['filter'](_0x1c5999=>_0x2f068d['includes'](_0x1c5999['attributeKey']));if(0x0==_0x52ecb0['length'])return _0x25b042;for(const _0x231801 of _0x52ecb0){const _0x37dad6=_0x237507['_findSuggestions'](_0x231801['range'],'attribute')['filter'](_0x3d6481=>!_0x3d6481['meta']['isNextTo'])['map'](_0x206a71=>_0x206a71['suggestion'])['filter'](_0x5794d6=>{const _0x2dad7f=_0x237507['_getAttributeKey'](_0x5794d6);return _0x2f068d['includes'](_0x2dad7f);});if(_0x37dad6['length']){for(const _0xf03505 of _0x37dad6)_0x529f57['removeMarker'](_0xf03505['getFirstMarker']());_0x25b042=!0x0;}}return _0x25b042;}['assureChains'](){const _0x245a9e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x328cfe=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x58d6b7;const _0x2430d9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1e7a7f=>{if(_0x1e7a7f['data']['oldRange']||!_0x1e7a7f['data']['newRange'])return null;if(!_0x1e7a7f['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x317357}=_0x245a9e['_splitMarkerName'](_0x1e7a7f['name']);if(!_0x245a9e['hasSuggestion'](_0x317357))return null;const _0x40e671=_0x245a9e['getSuggestion'](_0x317357);return _0x328cfe['includes'](_0x40e671['data']['key']);})['map'](_0x1eecd8=>{const {id:_0x56ee0f}=_0x245a9e['_splitMarkerName'](_0x1eecd8['name']),_0x4a54bb=_0x245a9e['getSuggestion'](_0x56ee0f);return _0x58d6b7=_0x4a54bb['attributes']['groupId'],_0x4a54bb['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x2430d9['size'])return;const _0x19cdab=_0x245a9e['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x44e9cd=>'attribute'==_0x44e9cd['type']&&_0x44e9cd['data']&&_0x328cfe['includes'](_0x44e9cd['data']['key'])&&_0x44e9cd['attributes']['groupId']!=_0x58d6b7)['map'](_0x2ab39f=>({'listItem':_0x2ab39f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2ab39f['attributes']['groupId']})),_0x5dfb33=new Set();for(const {groupId:_0x1160c3,listItem:_0x4323b0}of _0x19cdab)_0x2430d9['has'](_0x4323b0)&&_0x5dfb33['add'](_0x1160c3);for(const _0x11683e of _0x245a9e['getSuggestions']())_0x5dfb33['has'](_0x11683e['attributes']['groupId'])&&_0x11683e['setAttribute']('groupId',_0x58d6b7);}['_supportLegacySuggestions'](){const _0x18995f=this['editor'],_0xba0a17=_0x18995f['locale'],_0x319822=_0x18995f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x319822['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x569987,_0x3d22b7){const _0x27739f=[];for(let _0xe93044 of _0x569987)_0xe93044['start']['nodeAfter']===_0xe93044['end']['parent']&&(_0xe93044=_0x18995f['model']['createRange'](_0x18995f['model']['createPositionAt'](_0xe93044['start']['nodeAfter'],0x0))),_0x27739f['push'](_0xe93044);_0x18995f['model']['change'](_0xb297c3=>{const _0x598e6f=_0x18995f['model']['document']['selection'],_0x4ded2a=Array['from'](_0x598e6f['getRanges']())['map'](_0x190e28=>_0x4daf91['fromRange'](_0x190e28));_0xb297c3['setSelection'](_0x27739f),_0x18995f['commands']['get'](_0x3d22b7['commandName'])['refresh'](),_0x3d22b7['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x18995f['execute'](_0x3d22b7['commandName'],..._0x3d22b7['commandParams']),_0xb297c3['setSelection'](_0x4ded2a);for(const _0x1e48d2 of _0x4ded2a)_0x1e48d2['detach']();});}),_0x319822['descriptionFactory']['registerElementLabel'](function(_0x18e51e){const _0x1e3b0d=!_0x18995f['model']['schema']['isObject'](_0x18e51e),_0x15929=_0x18e51e['previousSibling'],_0x5f0bfa=_0x18e51e['nextSibling'],_0x57c84e=_0x18e51e['getAttribute']('listItemId'),_0x5b9200=!_0x15929||_0x15929['getAttribute']('listItemId')!==_0x57c84e,_0x581104=!_0x5f0bfa||_0x5f0bfa['getAttribute']('listItemId')!==_0x57c84e;return _0x1e3b0d&&Boolean(_0x57c84e)&&_0x5b9200&&_0x581104;},_0x270f0a=>o(_0xba0a17,'ELEMENT_LIST_ITEM',_0x270f0a));}['_registerLegacyDescription'](){const _0x3e2352=this['editor'],_0x288086=_0x3e2352['locale'];function _0x1dd7dc(_0x3747b1){const _0x319d58=_0x3e2352['commands']['get']('bulletedList')['value'],_0x2ed509=_0x3e2352['commands']['get']('numberedList')['value'];return'numberedList'===_0x3747b1?_0x319d58:_0x2ed509;}_0x3e2352['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2580af){if('formatBlock'!=_0x2580af['type'])return;const {data:_0xc3b0d1}=_0x2580af;if(!_0xc3b0d1)return;let _0x3815b0,_0x52584a,_0xcddc5,_0x36ef2a;switch(_0xc3b0d1['commandName']){case'bulletedList':_0xcddc5=_0xc3b0d1['commandParams'][0x0]['forceValue'],_0x36ef2a=_0x1dd7dc(_0xc3b0d1['commandName']),_0x3815b0=_0xcddc5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ef2a&&_0x3e2352['config']['get']('list.multiBlock')||(_0x3815b0='*Change\x20to:*\x20%0'),_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcddc5=_0xc3b0d1['commandParams'][0x0]['forceValue'],_0x36ef2a=_0x1dd7dc(_0xc3b0d1['commandName']),_0x3815b0=_0xcddc5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x36ef2a&&_0x3e2352['config']['get']('list.multiBlock')||(_0x3815b0='*Change\x20to:*\x20%0'),_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3815b0='*Indent:*\x20%0',_0x52584a={'type':'format','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3815b0=function(_0x42056f){const _0x6fb058=_0x42056f['getFirstRange']();let _0x5d7316=_0x6fb058['start']['nodeAfter'];for(;_0x5d7316&&_0x6fb058['containsItem'](_0x5d7316);){if(_0x5d7316['getAttribute']('listIndent')>0x0)return!0x1;_0x5d7316=_0x5d7316['nextSibling'];}return!0x0;}(_0x2580af)?o(_0x288086,'*Format:*\x20remove\x20from\x20%0',o(_0x288086,function(_0x1f283b){return'ELEMENT_'+_0x1f283b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2580af))):o(_0x288086,'*Outdent:*\x20%0',o(_0x288086,'ELEMENT_LIST_ITEM')),_0x52584a={'type':'format','content':_0x3815b0};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0xc3b0d1['multipleBlocks']&&(_0x3815b0='*Merge:*\x20%0',_0x52584a={'type':'deletion','content':o(_0x288086,_0x3815b0,o(_0x288086,'ELEMENT_LIST_ITEM'))});}return _0x52584a;});}}function Te(_0xe99d00){let _0x171c40=_0xe99d00['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x171c40;){const _0x13a98f=_0x171c40['getAttribute']('listItemId');if(!_0x13a98f)return!0x1;if(_0x13a98f==_0xe99d00['data']['newValue'])return'newValue';if(_0x13a98f==_0xe99d00['data']['oldValue'])return'oldValue';_0x171c40=_0x171c40['previousSibling'];}return!0x1;}class ye extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x25c6f4=this['editor']['config']['get']('list.properties'),_0x1473fd=this['editor']['plugins']['get']('TrackChangesEditing');_0x25c6f4['styles']&&(_0x1473fd['enableDefaultAttributesIntegration']('listStyle'),_0x1473fd['registerBlockAttribute']('listStyle')),_0x25c6f4['reversed']&&(_0x1473fd['enableDefaultAttributesIntegration']('listReversed'),_0x1473fd['registerBlockAttribute']('listReversed')),_0x25c6f4['startIndex']&&(_0x1473fd['enableDefaultAttributesIntegration']('listStart'),_0x1473fd['registerBlockAttribute']('listStart'));const _0x202f25={'type':'format','content':''};_0x1473fd['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x536124=this['editor']['locale'];_0x1473fd['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x536124,'FORMAT_LIST_REVERSED')),_0x1473fd['descriptionFactory']['registerDescriptionCallback'](_0x379093=>{const {data:_0x374b0a}=_0x379093;if(_0x374b0a&&'listReversed'==_0x374b0a['key'])return null==_0x374b0a['newValue']||0x0==_0x374b0a['newValue']&&null==_0x374b0a['oldValue']?_0x202f25:void 0x0;}),_0x1473fd['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x536124,'FORMAT_LIST_START')),_0x1473fd['descriptionFactory']['registerDescriptionCallback'](_0x4a395b=>{const {data:_0x3fa512}=_0x4a395b;if(_0x3fa512&&'listStart'==_0x3fa512['key'])return null==_0x3fa512['newValue']||0x1==_0x3fa512['newValue']&&null==_0x3fa512['oldValue']?_0x202f25:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x345d58=>{if(_0x345d58['batch']['isUndo'])return!0x1;let _0x551846=!0x1;const _0x17a16f=_0x1473fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x59b72e=>{const _0x1bd671=_0x1473fd['_getAttributeKey'](_0x59b72e);return'listStart'==_0x1bd671||'listReversed'==_0x1bd671;});for(const _0x3c8c6e of _0x17a16f){const _0x29a48a=_0x3c8c6e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x29a48a||'customNumbered'==_0x29a48a)continue;_0x1473fd['_findSuggestions'](_0x3c8c6e['getFirstRange'](),'attribute')['find'](_0xe542a2=>'listType'==_0x1473fd['_getAttributeKey'](_0xe542a2['suggestion']))||(_0x345d58['removeMarker'](_0x3c8c6e['getFirstMarker']()),_0x551846=!0x0);}return _0x551846;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x310b06){const _0x54a87e=this['editor']['locale'],{data:_0x1f1003}=_0x310b06,_0x4435e5={'type':'format','content':''};if(!_0x1f1003||'listStyle'!=_0x1f1003['key'])return;if(!_0x1f1003['oldValue'])return'default'==_0x1f1003['newValue']?_0x4435e5:{'type':'format','content':''+o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['newValue'])))};if(!_0x1f1003['newValue']){if('default'==_0x1f1003['oldValue'])return _0x4435e5;let _0x13d4d1=_0x310b06['head'];for(;_0x13d4d1;){if(_0x13d4d1['data']&&'listType'==_0x13d4d1['data']['key']&&_0x13d4d1['data']['newValue'])return _0x4435e5;_0x13d4d1=_0x13d4d1['next'];}return{'type':'format','content':''+o(_0x54a87e,'*Remove\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['oldValue'])))};}if('default'!=_0x1f1003['newValue'])return{'type':'format','content':''+o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,this['_getTranslationKeyForListStyle'](_0x1f1003['newValue'])))};let _0x4eb72e=_0x310b06['head'];for(;_0x4eb72e;){if(_0x4eb72e['data']&&'listType'==_0x4eb72e['data']['key']&&_0x4eb72e['data']['newValue']&&_0x4eb72e['data']['oldValue'])return _0x4435e5;_0x4eb72e=_0x4eb72e['next'];}return{'type':'format','content':o(_0x54a87e,'*Set\x20format:*\x20%0',o(_0x54a87e,'ELEMENT_'+_0x310b06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x40b3d6=this['editor'],_0x531420=_0x40b3d6['locale'];_0x40b3d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378541=>{if('formatBlock'!=_0x378541['type'])return;const {data:_0xdb1b24}=_0x378541;if(!_0xdb1b24)return;let _0x87ff98,_0x5e9f78;switch(_0xdb1b24['commandName']){case'listStyle':_0x87ff98='*Change\x20to:*\x20%0',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98,o(_0x531420,this['_getTranslationKeyForListStyle'](_0xdb1b24['commandParams'][0x0]['type'])))};break;case'listReversed':_0x87ff98=_0xdb1b24['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98)};break;case'listStart':_0x87ff98='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5e9f78={'type':'format','content':o(_0x531420,_0x87ff98,_0xdb1b24['commandParams'][0x0]['startIndex'])};}return _0x5e9f78;});}['_getTranslationKeyForListStyle'](_0x498f0e){return'ELEMENT_'+function(_0x1f8dca){if(Se['includes'](_0x1f8dca))return'bulleted';if(_e['includes'](_0x1f8dca))return'numbered';return null;}(_0x498f0e)['toUpperCase']()+'_LIST_'+_0x498f0e['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x4a8caa{static get['requires'](){return[_0x3d94fb];}['init'](){const _0x22003a=this['editor'],_0x1a1d8c=_0x22003a['plugins']['get']('TrackChangesEditing'),_0x45f2b7=_0x22003a['commands']['get']('enter');_0x1a1d8c['enableCommand']('enter',()=>{_0x22003a['model']['change'](_0x4e9745=>{const _0x12f51c=_0x22003a['model']['document']['selection'],_0x3f5d74=_0x12f51c['getFirstPosition'](),_0x1886d2=_0x4daf91['fromRange'](_0x12f51c['getFirstRange']());if(_0x45f2b7['enterBlock'](_0x4e9745)){const _0x32fdba=_0x22003a['model']['createPositionAt'](_0x3f5d74['parent']['nextSibling'],0x0),_0x31b86d=_0x4e9745['createRange'](_0x3f5d74,_0x32fdba);_0x1a1d8c['markInsertion'](_0x31b86d);}else _0x4e9745['setSelection'](_0x4e9745['createRange'](_0x1886d2['end']));_0x1886d2['detach'](),_0x45f2b7['fire']('afterExecute',{'writer':_0x4e9745});});}),_0x22003a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x22003a,'split'),{'priority':'high'}),_0x22003a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x385259,_0x3be452,_0x5d9168)=>{const _0x17accb=_0x5d9168['mapper']['markerNameToElements'](_0x3be452['markerName']);if(_0x17accb){for(const _0x254860 of _0x17accb)_0x254860['hasClass']('ck-suggestion-marker-split')&&(_0x5d9168['mapper']['unbindElementFromMarkerName'](_0x254860,_0x3be452['markerName']),_0x5d9168['writer']['remove'](_0x254860));}},{'priority':'high'}),_0x22003a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x528884,_0x905bf8,_0x44ebcb)=>{_0x44ebcb['options']['showSuggestionHighlights']&&Ne(_0x22003a,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x528884,_0x905bf8,_0x44ebcb);},{'priority':'high'});}}class Y extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3b58c5=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b58c5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3b58c5['enableCommand']('findNext'),_0x3b58c5['enableCommand']('findPrevious'),_0x3b58c5['enableCommand']('replace'),_0x3b58c5['enableCommand']('replaceAll');}['handleFindCommand'](_0xa41e54,_0x3b194a,_0x421334={}){const _0x76ef9f=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa41e54(_0x1af2c3=>{let _0x1f663b=('string'==typeof _0x3b194a?_0x76ef9f['findByTextCallback'](_0x3b194a,_0x421334):_0x3b194a)(_0x1af2c3);Array['isArray'](_0x1f663b)&&(_0x1f663b={'results':_0x1f663b,'searchText':'string'==typeof _0x3b194a?_0x3b194a:''});const _0x4dbcf1=_0x1f663b['results']['filter'](_0x2b7c4a=>!0x1===this['_isInDeletionRange'](_0x2b7c4a,_0x1af2c3['item']));return{..._0x1f663b,'results':_0x4dbcf1};},_0x421334);}['_isInDeletionRange'](_0x2b73c3,_0x3872f9){const _0x1df6de=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3872f9,_0x2b73c3['start']),this['editor']['model']['createPositionAt'](_0x3872f9,_0x2b73c3['end']));for(const _0x216e21 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1df6de['getIntersection'](_0x216e21['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 _0x4a8caa{['afterInit'](){const _0x15bf25=this['editor']['locale'],_0x1fbe7a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50140a,commandName:_0x54587a}of ro)this['editor']['plugins']['has'](_0x50140a)&&(_0x1fbe7a['enableDefaultAttributesIntegration'](_0x54587a),_0x1fbe7a['registerInlineAttribute'](_0x54587a));_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x15bf25,'FORMAT_FONT_SIZE')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x15bf25,'FORMAT_FONT_FAMILY')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x15bf25,'FORMAT_FONT_COLOR')),_0x1fbe7a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x15bf25,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f62e7=this['editor'],_0xf008b6=_0x5f62e7['locale'];_0x5f62e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a3735=>{const _0x222a48=_0xf008b6['t'];if('formatInline'!=_0x2a3735['type'])return;const {data:_0x43b113}=_0x2a3735;if(null!=_0x43b113){if('fontSize'==_0x43b113['commandName']){const _0xe3b392=_0x43b113['commandParams'][0x0]['value'];if(_0xe3b392){const _0x353bd5=_0x222a48(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1915a2=>_0x1915a2['model']==_0xe3b392)['title'])['toLowerCase']();return{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20size:*\x20%0',_0x353bd5)};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x43b113['commandName']){const _0x279a4f=_0x43b113['commandParams'][0x0]['value'];return _0x279a4f?{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20family:*\x20%0',_0x279a4f)}:{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x43b113['commandName']){const _0x10c937=_0x43b113['commandParams'][0x0]['value'];if(_0x10c937){const _0x58b28c=_0xb9f5be(this['editor']['config']['get']('fontColor.colors'))['find'](_0x416f8b=>_0x416f8b['model']==_0x10c937);let _0x57a8ff=_0x10c937,_0x18f554='';return _0x58b28c&&(_0x57a8ff=_0x58b28c['label'],_0x18f554=_0x222a48(_0x57a8ff)['toLowerCase']()),{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20color:*\x20%0',_0x18f554)['trim'](),'color':{'value':_0x10c937,'title':_0x18f554||_0x57a8ff}};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x43b113['commandName']){const _0x9b1f99=_0x43b113['commandParams'][0x0]['value'];if(_0x9b1f99){const _0x37294a=_0xb9f5be(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2d0625=>_0x2d0625['model']==_0x9b1f99);let _0x4e6470=_0x9b1f99,_0x4a1e32='';return _0x37294a&&(_0x4e6470=_0x37294a['label'],_0x4a1e32=_0x222a48(_0x4e6470)['toLowerCase']()),{'type':'format','content':o(_0xf008b6,'*Set\x20font\x20background\x20color:*\x20%0',_0x4a1e32)['trim'](),'color':{'value':_0x9b1f99,'title':_0x4a1e32||_0x4e6470}};}return{'type':'format','content':o(_0xf008b6,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x4a8caa{['afterInit'](){const _0x393e70=this['editor'],_0x4be8a0=_0x393e70['plugins']['get']('TrackChangesEditing'),_0xfffc17=_0x393e70['commands']['get']('copyFormat'),_0x265561=_0x393e70['commands']['get']('pasteFormat');_0xfffc17&&_0x265561&&(_0x4be8a0['enableDefaultAttributesIntegration']('pasteFormat'),_0x4be8a0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5a4284=this['editor'],_0x3a0218=_0x5a4284['locale'];_0x5a4284['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1157ad=>{if('formatBlock'!=_0x1157ad['type']&&'formatInline'!=_0x1157ad['type'])return;const {data:_0xd63c78}=_0x1157ad;if(_0xd63c78&&'pasteFormat'===_0xd63c78['commandName']){const _0x4f37b0=[],_0x5e7263=_0xd63c78['commandParams'][0x0];for(const [_0x24e5a0,_0x13dd74]of Object['entries'](_0x5e7263))_0x4f37b0['push'](so(_0x5a4284,_0x24e5a0,_0x13dd74));return _0x4f37b0['length']?{'type':'format','content':o(_0x3a0218,'*Set\x20format\x20to:*\x20%0',_0x4f37b0['join'](',\x20'))}:{'type':'format','content':o(_0x3a0218,'*Remove\x20all\x20formatting*')};}});}}function so(_0x441379,_0x416d44,_0x1fb1f7){const _0x3bda29=_0x441379['locale']['t'],_0x126e8b=_0x416d44['split'](/(?=[A-Z])/)['join']('\x20'),_0x130389=_0x3bda29(_0x126e8b['charAt'](0x0)['toUpperCase']()+_0x126e8b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1fb1f7)return _0x130389;if('fontColor'===_0x416d44||'fontBackgroundColor'===_0x416d44){const _0xa74b03=_0xb9f5be(_0x441379['config']['get']('fontColor.colors'))['find'](_0x518b47=>_0x518b47['model']==_0x1fb1f7);return _0x130389+'\x20('+(_0xa74b03?_0x3bda29(_0xa74b03['label'])['toLowerCase']():_0x1fb1f7)+')';}if('fontSize'===_0x416d44&&isNaN(parseFloat(_0x1fb1f7))){const _0x2c60e2=_0x441379['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x441379['config']['get']('fontSize.options'))['find'](_0x2ddd7d=>_0x2ddd7d['model']==_0x1fb1f7);return _0x130389+'\x20('+(_0x2c60e2?_0x3bda29(_0x2c60e2['title'])['toLowerCase']():_0x1fb1f7)+')';}return _0x130389+'\x20('+_0x1fb1f7+')';}class nt extends _0x4a8caa{['_headingOptions'];['afterInit'](){const _0x4419cc=this['editor'];if(!_0x4419cc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4419cc['config']['get']('heading.options');const _0x20871d=_0x4419cc['locale'],_0x291497=_0x4419cc['plugins']['get']('TrackChangesEditing');_0x291497['enableDefaultAttributesIntegration']('heading');for(const _0x50cdf1 of this['_headingOptions'])'paragraph'!=_0x50cdf1['model']&&_0x291497['descriptionFactory']['registerElementLabel'](_0x50cdf1['model'],_0x57049d=>{const _0x36aa18=this['_getHeadingLevel'](_0x50cdf1['model']);return null!==_0x36aa18?_0x175320(_0x57049d,_0x36aa18):_0x2be59d(_0x57049d,_0x50cdf1['title']);});function _0x175320(_0x563c10,_0x5624b6){return o(_0x20871d,'ELEMENT_HEADING',[_0x563c10,_0x5624b6]);}function _0x2be59d(_0x1bbfdc,_0x5dd5a0){return o(_0x20871d,'ELEMENT_HEADING_CUSTOM',[_0x1bbfdc,_0x5dd5a0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e7022=this['editor'],_0x5e747e=_0x4e7022['locale'];function _0x5937fa(_0xc3856a,_0x336835){return o(_0x5e747e,'ELEMENT_HEADING_CUSTOM',[_0xc3856a,_0x336835]);}_0x4e7022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23015e=>{if('formatBlock'!=_0x23015e['type'])return;const {data:_0x5a4e09}=_0x23015e;if(_0x5a4e09&&'heading'==_0x5a4e09['commandName']){const _0x2ea9b0=_0x5a4e09['commandParams'][0x0]['value'],_0x3a6cde=this['_getHeadingLevel'](_0x2ea9b0);if(null!==_0x3a6cde)return{'type':'format','content':o(_0x5e747e,'*Change\x20to:*\x20%0',(_0x109c11=0x1,_0x1bd879=_0x3a6cde,o(_0x5e747e,'ELEMENT_HEADING',[_0x109c11,_0x1bd879])))};const _0x3bca22=this['_headingOptions']['find'](_0x3928f9=>_0x3928f9['model']===_0x2ea9b0)['title'];return{'type':'format','content':o(_0x5e747e,'*Change\x20to:*\x20%0',_0x5937fa(0x1,_0x3bca22))};}var _0x109c11,_0x1bd879;});}['_getHeadingLevel'](_0x59625e){const _0x3384c1=_0x59625e['match'](/^heading(\d+)/);if(_0x3384c1)return _0x3384c1[0x1];const _0x20b5ca=this['_headingOptions']?.['find'](_0x4c13ad=>_0x4c13ad['model']==_0x59625e);if(_0x20b5ca&&_0x20b5ca['view']){const _0x501952=_0x20b5ca['view'],_0x4c6a9f=(_0x501952['name']??_0x501952)['match'](/^h(\d+)/);if(_0x4c6a9f)return _0x4c6a9f[0x1];}return null;}}class it extends _0x4a8caa{['afterInit'](){const _0x5d2812=this['editor'];if(!_0x5d2812['plugins']['has']('HighlightEditing'))return;const _0x146fcc=_0x5d2812['plugins']['get']('TrackChangesEditing'),_0xf281=_0x5d2812['locale'];_0x146fcc['enableDefaultAttributesIntegration']('highlight'),_0x146fcc['registerInlineAttribute']('highlight'),_0x146fcc['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xf281,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50922e=this['editor'],_0x325c10=_0x50922e['locale'];_0x50922e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45d751=>{if('formatInline'!=_0x45d751['type'])return;const {data:_0x22ac5e}=_0x45d751;if(_0x22ac5e&&'highlight'==_0x22ac5e['commandName']){const _0x3b4695=_0x325c10['t'],_0x5e7495=_0x22ac5e['commandParams'][0x0]['value'];if(_0x5e7495){const _0x560d07=_0x50922e['config']['get']('highlight.options')['find'](_0x3bb29a=>_0x3bb29a['model']==_0x5e7495),_0x2e37b9=_0x3b4695(_0x560d07['title'])['toLowerCase']();return{'type':'format','content':o(_0x325c10,'*Set\x20highlight:*\x20%0',_0x2e37b9),'color':{'value':_0x560d07['color'],'title':_0x560d07['title']}};}return{'type':'format','content':o(_0x325c10,'*Remove\x20highlight*',o(_0x325c10,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x4a8caa{['afterInit'](){const _0x1b618d=this['editor'];if(!_0x1b618d['plugins']['has']('HorizontalLineEditing'))return;_0x1b618d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2f1da3=_0x1b618d['plugins']['get']('TrackChangesEditing'),_0x3af5be=_0x1b618d['locale'];_0x2f1da3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2c9e3a=>o(_0x3af5be,'ELEMENT_HORIZONTAL_LINE',_0x2c9e3a)),_0x1b618d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x90b69c,{writer:_0x176269,options:_0x565b83})=>{if(!_0x565b83['showSuggestionHighlights'])return null;const _0x48bdd0=_0x176269['createContainerElement']('div'),_0x7b9f8b=_0x176269['createEmptyElement']('hr');return _0x176269['addClass']('ck-horizontal-line',_0x48bdd0),_0x176269['insert'](_0x176269['createPositionAt'](_0x48bdd0,0x0),_0x7b9f8b),_0x48bdd0;},'converterPriority':'high'});}}class st extends _0x4a8caa{['afterInit'](){const _0x4f4640=this['editor'];if(!_0x4f4640['plugins']['has']('HtmlEmbed'))return;const _0x5e831a=_0x4f4640['plugins']['get']('TrackChangesEditing'),_0x3e59d4=_0x4f4640['locale'];_0x5e831a['descriptionFactory']['registerElementLabel']('rawHtml',_0x222604=>o(_0x3e59d4,'ELEMENT_HTML_EMBED',_0x222604)),_0x5e831a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5e831a['registerBlockAttribute']('value'),_0x5e831a['descriptionFactory']['registerDescriptionCallback'](_0x3390f1=>{if('attribute'!=_0x3390f1['type'])return;const {data:_0x537c75}=_0x3390f1;if(_0x537c75&&'value'==_0x537c75['key']&&_0x3390f1['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x44caad=o(_0x3e59d4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e59d4,'*Change\x20%0\x20content*',_0x44caad)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd888c7=this['editor'],_0x342984=_0xd888c7['locale'];_0xd888c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15ca0c=>{if('formatBlock'!=_0x15ca0c['type'])return;const {data:_0x18b555}=_0x15ca0c;if(_0x18b555&&'htmlEmbed'==_0x18b555['commandName']){const _0x374095=o(_0x342984,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x342984,'*Change\x20%0\x20content*',_0x374095)};}});}}class ot extends _0x4a8caa{['afterInit'](){const _0x37bed7=this['editor'];if(!_0x37bed7['plugins']['has']('ImageEditing'))return;const _0x11dd7b=_0x37bed7['plugins']['get']('TrackChangesEditing'),_0xcf6791=_0x37bed7['plugins']['get']('ImageUtils'),_0x45af8e=_0x37bed7['locale'];_0x11dd7b['enableCommand']('insertImage'),_0x11dd7b['descriptionFactory']['registerElementLabel']('imageBlock',_0x28179d=>o(_0x45af8e,'ELEMENT_IMAGE',_0x28179d)),_0x11dd7b['descriptionFactory']['registerElementLabel']('imageInline',_0x186cb8=>o(_0x45af8e,'ELEMENT_INLINE_IMAGE',_0x186cb8)),_0x11dd7b['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x45af8e,'ELEMENT_CAPTION')),_0x37bed7['plugins']['has']('ImageUploadEditing')&&_0x11dd7b['enableCommand']('uploadImage'),_0x37bed7['plugins']['has']('ImageBlockEditing')&&_0x37bed7['plugins']['has']('ImageInlineEditing')&&(_0x11dd7b['enableCommand']('imageTypeInline',(_0x439a37,_0xb399df)=>{const _0x29222f=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']);_0x37bed7['model']['change'](()=>{_0x11dd7b['markBlockFormat'](_0x29222f,{'commandName':'imageTypeInline','commandParams':[_0xb399df]},[],'convertBlockImageToInline');});}),_0x11dd7b['enableCommand']('imageTypeBlock',(_0x7be097,_0x23c330)=>{_0x37bed7['model']['change'](_0x82a776=>{let _0x9b66c4=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x137b0a=_0x82a776['createRangeOn'](_0x9b66c4);const _0x433a77=_0x502f7e['fromPosition'](_0x137b0a['start'],'toPrevious'),_0x584496=_0x502f7e['fromPosition'](_0x137b0a['end'],'toNext');_0x11dd7b['forceDefaultExecution'](()=>_0x7be097(_0x23c330)),_0x9b66c4=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x137b0a=_0x82a776['createRangeOn'](_0x9b66c4);const _0x55e392=_0x82a776['createRange'](_0x433a77,_0x584496);_0x433a77['detach'](),_0x584496['detach'](),_0x11dd7b['markBlockFormat'](_0x9b66c4,{'commandName':'imageTypeInline','commandParams':[_0x23c330]},[],'convertInlineImageToBlock'),_0x55e392['start']['isBefore'](_0x137b0a['start'])&&_0x11dd7b['markInsertion'](_0x82a776['createRange'](_0x55e392['start'],_0x137b0a['start']),'convertInlineImageToBlock'),_0x137b0a['end']['isBefore'](_0x55e392['end'])&&_0x11dd7b['markInsertion'](_0x82a776['createRange'](_0x137b0a['end'],_0x55e392['end']),'convertInlineImageToBlock');});}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x11dd7b['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x578718])=>{const _0x5f3b94=_0x11dd7b['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x51298b=_0x578718['start'],_0x2202c6=_0x578718['end'];const _0x6138fd=_0x37bed7['model']['schema']['getNearestSelectionRange'](_0x51298b,'backward'),_0x36d0c5=_0x37bed7['model']['schema']['getNearestSelectionRange'](_0x2202c6,'forward');_0x6138fd['isCollapsed']&&(_0x51298b=_0x6138fd['start']),_0x36d0c5['isCollapsed']&&(_0x2202c6=_0x36d0c5['end']),_0x5f3b94([_0x37bed7['model']['createRange'](_0x51298b,_0x2202c6)]);}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2669ae),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2669ae)),_0x37bed7['plugins']['has']('ImageCaptionEditing')&&(_0x11dd7b['enableCommand']('toggleImageCaption',(_0x323ba5,_0x2ec2d2)=>{const _0x52e40e=_0x37bed7['plugins']['get']('ImageCaptionUtils');let _0x15d615=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x245159=_0x52e40e['getCaptionFromImageModelElement'](_0x15d615);_0x37bed7['model']['change'](()=>{if(_0x245159)return void _0x11dd7b['markDeletion'](_0x37bed7['model']['createRangeOn'](_0x245159));const _0x1a577d=_0xcf6791['isBlockImage'](_0x15d615);_0x323ba5(_0x2ec2d2),_0x15d615=_0xcf6791['getClosestSelectedImageElement'](_0x37bed7['model']['document']['selection']),_0x245159=_0x52e40e['getCaptionFromImageModelElement'](_0x15d615),_0x11dd7b['markInsertion'](_0x37bed7['model']['createRangeOn'](_0x245159),_0x1a577d?null:'imageCaption');});}),_0x11dd7b['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2669ae));const _0x47c039=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x351ef3(_0x2b065a,_0x49c2e1){const _0x1f7f78=_0x47c039['findIndex'](({type:_0x322c74,subType:_0x468492})=>_0x2b065a['type']==_0x322c74&&_0x2b065a['subType']==_0x468492),_0x285672=_0x47c039['findIndex'](({type:_0x57283e,subType:_0x42dbfc})=>_0x49c2e1['type']==_0x57283e&&_0x49c2e1['subType']==_0x42dbfc);if(_0x1f7f78<0x0||_0x285672<0x0)return!0x1;const _0x340517=_0x2b065a['getFirstRange'](),_0x291fd3=_0x49c2e1['getFirstRange']();if((0x0==_0x1f7f78||0x1==_0x1f7f78)&&0x2==_0x285672&&_0x340517['isIntersecting'](_0x291fd3))return!0x0;if(0x2==_0x1f7f78&&0x3==_0x285672){const _0x44bb75=_0x11dd7b['_findSuggestions'](_0x340517,'insertion')['filter'](({suggestion:_0x16313a,meta:_0x4a2272})=>_0x4a2272['isOwn']&&'convertInlineImageToBlock'==_0x16313a['subType']);if(_0x44bb75['length']>0x1&&_0x291fd3['end']['isEqual'](_0x340517['start']))return!0x0;if(0x1==_0x44bb75['length']&&(_0x340517['start']['isEqual'](_0x291fd3['end'])||_0x340517['end']['isEqual'](_0x291fd3['start'])))return!0x0;}if(0x3==_0x1f7f78&&0x3==_0x285672&&_0x340517['start']['isBefore'](_0x291fd3['start'])){const _0x8c73f6=_0x340517['end']['nodeAfter'],_0x713934=_0x291fd3['start']['nodeBefore'];return _0xcf6791['isBlockImage'](_0x8c73f6)&&_0x8c73f6===_0x713934;}return!0x1;}function _0x2669ae(_0x2d9ae1,_0x27fb6a){return _0x351ef3(_0x2d9ae1,_0x27fb6a)?[_0x2d9ae1,_0x27fb6a]:_0x351ef3(_0x27fb6a,_0x2d9ae1)?[_0x27fb6a,_0x2d9ae1]:null;}_0x37bed7['plugins']['has']('ImageResize')&&(_0x11dd7b['enableDefaultAttributesIntegration']('resizeImage'),_0x11dd7b['registerBlockAttribute']('resizedWidth'),_0x11dd7b['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x45af8e,'FORMAT_IMAGE_SIZE'))),_0x37bed7['plugins']['has']('ImageTextAlternativeEditing')&&(_0x11dd7b['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x11dd7b['registerBlockAttribute']('alt')),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0xde1b02=>{if(!!_0x47c039['find'](({type:_0x352154,subType:_0x280492})=>_0xde1b02['type']==_0x352154&&_0xde1b02['subType']==_0x280492))return _0xde1b02['previous']?{}:void 0x0;}),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x5ab7e7=>{if('insertion'==_0x5ab7e7['type']||'deletion'==_0x5ab7e7['type']){const _0x5b10b1=_0x5ab7e7['getContainedElement']();if(_0x5b10b1&&_0x5b10b1['is']('element','caption'))return{'type':'insertion'==_0x5ab7e7['type']?'addObject':'removeObject','element':_0x5b10b1,'quantity':0x1};}}),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x34bed3=>'formatBlock'==_0x34bed3['type']&&'convertInlineImageToBlock'==_0x34bed3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x34bed3['type']&&'convertBlockImageToInline'==_0x34bed3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x11dd7b['descriptionFactory']['registerDescriptionCallback'](_0x4216e9=>{if('attribute'!=_0x4216e9['type'])return;const {data:_0x2a92f6}=_0x4216e9;if(!_0x2a92f6||'alt'!=_0x2a92f6['key'])return;const _0x3dd1e2=_0x2a92f6['newValue'];return _0x3dd1e2?{'type':'format','content':o(_0x45af8e,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3dd1e2+'\x22')}:{'type':'format','content':o(_0x45af8e,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x555b96=this['editor'],_0x41446a=_0x555b96['locale'];_0x555b96['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ade67=>{if('formatBlock'!=_0x5ade67['type']&&'formatInline'!=_0x5ade67['type'])return;const {data:_0xca553}=_0x5ade67;if(_0xca553){if('imageTextAlternative'==_0xca553['commandName']){const _0x282ce2=_0xca553['commandParams'][0x0]['newValue'];return _0x282ce2?{'type':'format','content':o(_0x41446a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x282ce2+'\x22')}:{'type':'format','content':o(_0x41446a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0xca553['commandName']){const _0x2811f0=_0xca553['commandParams'][0x0]['width'];return _0x2811f0?{'type':'format','content':o(_0x41446a,'*Set\x20image\x20width:*\x20%0',_0x2811f0)}:{'type':'format','content':o(_0x41446a,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x168acf=this['editor']['locale'],_0x8bde03=this['editor']['plugins']['get']('TrackChangesEditing');_0x8bde03['enableDefaultAttributesIntegration']('replaceImageSource'),_0x8bde03['registerBlockAttribute']('src'),_0x8bde03['descriptionFactory']['registerDescriptionCallback'](_0x19f17f=>{if('attribute'!=_0x19f17f['type'])return;const {data:_0xc7a898}=_0x19f17f;return _0xc7a898&&'src'==_0xc7a898['key']?_0xc7a898['newValue']&&_0xc7a898['oldValue']?{'type':'format','content':o(_0x168acf,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x10d108=this['editor']['plugins']['get']('TrackChangesEditing');_0x10d108['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x10d108['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d108['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x10d108['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21ea63=this['editor'],_0x40bc6b=_0x21ea63['locale'];_0x21ea63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x338c05=>{if('formatBlock'!=_0x338c05['type']&&'formatInline'!=_0x338c05['type'])return;const {data:_0x579192}=_0x338c05;if(!_0x579192||'replaceImageSource'!=_0x579192['commandName'])return;return{'type':'format','content':o(_0x40bc6b,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x4a8caa{['afterInit'](){const _0x1816df=this['editor'];if(!_0x1816df['plugins']['has']('ImageStyleEditing'))return;const _0x4602c5=_0x1816df['plugins']['get']('TrackChangesEditing'),_0x1007d5=_0x1816df['plugins']['get']('ImageUtils'),_0x48ba0a={};_0x4602c5['enableCommand']('imageStyle',(_0x2c293c,_0x5be773)=>{const _0x43f9cd=_0x1816df['plugins']['get']('Users')['me'],_0x41b2e=_0x1816df['commands']['get']('imageStyle');let _0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),_0xc26488=_0x1816df['model']['createRangeOn'](_0x2a027f),_0xa78f2f=_0x41b2e['value'];if(_0xa78f2f==_0x5be773['value'])return;const _0x21f0ec={'commandName':'imageStyle','commandParams':[_0x5be773],'formatGroupId':_0x205078()};_0x1816df['model']['change'](()=>{if(_0x4602c5['getSuggestions']()['filter'](_0x5744f0=>_0x5744f0['isInContent']&&_0x43f9cd==_0x5744f0['author']&&('formatBlock'==_0x5744f0['type']||'formatInline'==_0x5744f0['type'])&&('imageStylePreApply'==_0x5744f0['subType']||'imageStylePostApply'==_0x5744f0['subType'])&&_0x5744f0['getFirstRange']()['isEqual'](_0xc26488))['forEach'](_0x2a48a1=>_0x4602c5['discardSuggestion'](_0x2a48a1['head'])),_0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),_0xc26488=_0x1816df['model']['createRangeOn'](_0x2a027f),_0x41b2e['refresh'](),_0x1816df['commands']['get']('imageTypeInline')['refresh'](),_0x1816df['commands']['get']('imageTypeBlock')['refresh'](),_0xa78f2f=_0x41b2e['value'],_0xa78f2f!=_0x5be773['value'])return _0x1007d5['isInlineImage'](_0x2a027f)&&_0x41b2e['shouldConvertImageType'](_0x5be773['value'],_0x2a027f)?(_0x2c293c({..._0x5be773,'setImageSizes':!0x1}),_0x2a027f=_0x1007d5['getClosestSelectedImageElement'](_0x1816df['model']['document']['selection']),void _0x4602c5['markBlockFormat'](_0x2a027f,{..._0x21f0ec,'commandReversedParams':[{'value':_0xa78f2f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1007d5['isBlockImage'](_0x2a027f)?_0x4602c5['markBlockFormat'](_0x2a027f,_0x21f0ec,[],'imageStylePostApply'):_0x4602c5['markInlineFormat'](_0xc26488,_0x21f0ec,'imageStylePostApply'));});});for(const _0x56f13d of _0x1816df['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x48ba0a[_0x56f13d['name']]=_0x56f13d['title']['toLowerCase']();_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x22d2a8])=>{_0x1007d5['setImageNaturalSizeAttributes'](_0x22d2a8['getContainedElement']());}),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x45cac2,_0x2c966c)=>{_0x4602c5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x45cac2,{'commandName':_0x2c966c['commandName'],'commandParams':_0x2c966c['commandReversedParams']});}),_0x4602c5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x421fea,_0x5e79cd){if(_0xcf85be(_0x421fea,_0x5e79cd))return[_0x421fea,_0x5e79cd];if(_0xcf85be(_0x5e79cd,_0x421fea))return[_0x5e79cd,_0x421fea];return null;});const _0x27a5c1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xcf85be(_0x1c5502,_0x299d2a){const _0x2bf4f6=_0x27a5c1['findIndex'](({type:_0x476914,subType:_0x496177})=>_0x1c5502['type']==_0x476914&&_0x1c5502['subType']==_0x496177),_0x4526e6=_0x27a5c1['findIndex'](({type:_0x3c11a2,subType:_0x4a1afd})=>_0x299d2a['type']==_0x3c11a2&&_0x299d2a['subType']==_0x4a1afd);if(_0x2bf4f6<0x0||_0x4526e6<0x0)return!0x1;const _0x53664f=_0x1c5502['getFirstRange'](),_0x20fe26=_0x299d2a['getFirstRange']();if((0x0==_0x2bf4f6||0x1==_0x2bf4f6)&&0x2==_0x4526e6&&_0x53664f['isIntersecting'](_0x20fe26))return!0x0;if(0x2==_0x2bf4f6&&0x3==_0x4526e6){const _0xd5da8e=_0x4602c5['_findSuggestions'](_0x53664f,'insertion')['filter'](({suggestion:_0x3037eb,meta:_0x111f8a})=>_0x111f8a['isOwn']&&'convertInlineImageToBlock'==_0x3037eb['subType']);if(_0xd5da8e['length']>0x1&&_0x20fe26['end']['isEqual'](_0x53664f['start']))return!0x0;if(0x1==_0xd5da8e['length']&&(_0x53664f['start']['isEqual'](_0x20fe26['end'])||_0x53664f['end']['isEqual'](_0x20fe26['start'])))return!0x0;}if(0x3==_0x2bf4f6&&0x3==_0x4526e6&&_0x53664f['start']['isBefore'](_0x20fe26['start'])){const _0x227a44=_0x53664f['end']['nodeAfter'],_0x5cd937=_0x20fe26['start']['nodeBefore'];return _0x1007d5['isBlockImage'](_0x227a44)&&_0x227a44===_0x5cd937;}return!0x1;}_0x1816df['model']['document']['registerPostFixer'](()=>{let _0x7da8b5=!0x1;const _0x40b8b5=Array['from'](_0x1816df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3811e0,data:_0x1cf034}of _0x40b8b5){const {group:_0x2e48cc,type:_0x21d67c,subType:_0x5764f8,id:_0x335b4a}=_0x4602c5['_splitMarkerName'](_0x3811e0);if('suggestion'==_0x2e48cc&&_0x4602c5['hasSuggestion'](_0x335b4a)){if('formatBlock'==_0x21d67c&&('imageStylePreApply'==_0x5764f8||'imageStylePostApply'==_0x5764f8)){const _0x5cfd0c=_0x4602c5['getSuggestion'](_0x335b4a);if(_0x1cf034['newRange']){const _0x2aaec9=_0x5cfd0c['getFirstRange']()['getContainedElement']();if(_0x1007d5['isBlockImage'](_0x2aaec9))continue;_0x4602c5['discardSuggestion'](_0x5cfd0c),_0x7da8b5=!0x0;}}if('insertion'==_0x21d67c&&'imageCaption'==_0x5764f8&&!_0x1cf034['newRange']){const _0x236723=_0x4602c5['getSuggestion'](_0x335b4a);_0x236723['next']&&_0x236723['next']['isInContent']&&(_0x4602c5['discardSuggestion'](_0x236723['next']),_0x7da8b5=!0x0);}}}return _0x7da8b5;}),this['_registerLegacyDescription'](_0x48ba0a);}['_registerLegacyDescription'](_0x2ec354){const _0x292c4e=this['editor'],_0x3fc8ba=_0x292c4e['locale'];_0x292c4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289036=>{if('formatBlock'!=_0x289036['type']&&'formatInline'!=_0x289036['type'])return;const {data:_0x16bd79}=_0x289036;if(!_0x16bd79||'imageStyle'!=_0x16bd79['commandName'])return;const _0x4a8c46=_0x16bd79['commandParams'][0x0]['value'];return _0x448811('side'===_0x4a8c46?o(_0x3fc8ba,'FORMAT_SIDE_IMAGE'):_0x2ec354[_0x4a8c46]||_0x4a8c46);function _0x448811(_0x319e2a){return{'type':'format','content':o(_0x3fc8ba,'*Format:*\x20%0',_0x319e2a)};}});}}class ct extends _0x4a8caa{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2df076){super(_0x2df076),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x571716=this['editor'],_0x28d20d=_0x571716['commands']['get']('importWord'),_0x32043a=_0x571716['commands']['get']('trackChanges');_0x28d20d&&(_0x28d20d['on']('execute',(_0x2bb4d1,[,_0x5a77f8])=>{this['_trackChangesValueDuringImport']=_0x32043a['value'],_0x5a77f8['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28d20d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28d20d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32043a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x571716['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x432b0f,_0x156461){const {suggestions:_0x2cf581}=_0x156461,_0x317eb9=this['editor']['commands']['get']('trackChanges'),_0x4bb95b=_0x317eb9['value'];this['_trackChangesValueDuringImport']!==_0x4bb95b&&(_0x317eb9['execute'](),this['_trackChangesExecuted']=!0x0),_0x2cf581&&_0x2cf581['forEach'](({id:_0x4ffccd,type:_0x1c6549,author:_0x4e2bed,created_at:_0x458c0c})=>{const _0x252a97={'id':_0x4ffccd,'type':_0x1c6549,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x4e2bed,'createdAt':_0x458c0c?new Date(_0x458c0c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x252a97);});}}class ut extends _0x4a8caa{['afterInit'](){const _0x197dd2=this['editor'],_0x3ccf63=_0x197dd2['plugins']['get']('TrackChangesEditing');if(_0x197dd2['plugins']['has']('IndentEditing')&&(_0x3ccf63['enableCommand']('indent'),_0x3ccf63['enableCommand']('outdent')),_0x197dd2['plugins']['has']('IndentBlock')){for(const _0x14b674 of['indentBlock','outdentBlock'])_0x3ccf63['enableDefaultAttributesIntegration'](_0x14b674);}const _0x4ad3d4=_0x197dd2['locale'];_0x3ccf63['registerBlockAttribute']('blockIndent'),_0x3ccf63['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4ad3d4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c3fa1=this['editor'],_0x12a04f=_0x2c3fa1['locale'],_0x4688af=_0x2c3fa1['plugins']['get']('TrackChangesEditing');_0x4688af['descriptionFactory']['registerDescriptionCallback'](_0x436379=>{if('formatBlock'!=_0x436379['type'])return;const {data:_0x2d4376}=_0x436379;if(!_0x2d4376)return;if('indentBlock'!=_0x2d4376['commandName']&&'outdentBlock'!=_0x2d4376['commandName'])return;const _0x227412=_0x436379['getItems']()[0x0],_0x5cf02c=_0x4688af['descriptionFactory']['getItemLabel'](_0x227412);return'indentBlock'==_0x2d4376['commandName']?{'type':'format','content':o(_0x12a04f,'*Indent:*\x20%0',_0x5cf02c)}:'outdentBlock'==_0x2d4376['commandName']?{'type':'format','content':o(_0x12a04f,'*Outdent:*\x20%0',_0x5cf02c)}:void 0x0;});}}class ft extends _0x4a8caa{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x4a8caa{['afterInit'](){const _0x67868=this['editor'];if(!_0x67868['plugins']['has']('LinkEditing'))return;const _0x340cd6=_0x67868['plugins']['get']('TrackChangesEditing'),_0x3c62e6=_0x67868['commands']['get']('link');_0x340cd6['enableDefaultAttributesIntegration']('link'),_0x340cd6['enableDefaultAttributesIntegration']('unlink'),_0x340cd6['registerInlineAttribute']('linkHref');for(const _0x390aee of _0x3c62e6['manualDecorators'])_0x340cd6['registerInlineAttribute'](_0x390aee['id']),_0x340cd6['descriptionFactory']['registerAttributeLabel'](_0x390aee['id'],'link\x20('+_0x390aee['label']['toLowerCase']()+')');_0x340cd6['descriptionFactory']['registerDescriptionCallback'](_0xfdb9b7=>{if('attribute'!=_0xfdb9b7['type'])return;const {data:_0x7a1a4}=_0xfdb9b7;if(!_0x7a1a4||'linkHref'!=_0x7a1a4['key'])return;const _0x5d587=_0x7a1a4['newValue'],_0x1a2e9f=_0x67868['locale'];return{'type':'format','content':null==_0x5d587?o(_0x1a2e9f,'*Remove\x20link*'):o(_0x1a2e9f,'*Set\x20link:*\x20%0','\x22'+_0x5d587+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x142203=this['editor'],_0x5c0718=_0x142203['locale'];_0x142203['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d50cd=>{if('formatInline'!=_0x3d50cd['type'])return;const {data:_0x26defc}=_0x3d50cd;if(_0x26defc){if('link'==_0x26defc['commandName']){const _0x4f8c6d=_0x26defc['commandParams'][0x0];return{'type':'format','content':o(_0x5c0718,'*Set\x20link:*\x20%0','\x22'+_0x4f8c6d+'\x22')};}return'unlink'==_0x26defc['commandName']?{'type':'format','content':o(_0x5c0718,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x4a8caa{['afterInit'](){const _0x1371b1=this['editor'],_0x12aafb=_0x1371b1['locale'];if(!_0x1371b1['plugins']['has']('LegacyListEditing'))return;const _0x3a3e09=_0x1371b1['plugins']['get']('TrackChangesEditing'),_0x5b4393=_0x1371b1['plugins']['has']('LegacyTodoListEditing');function _0x411d75(_0x480f2b){return()=>{const _0x242a24=_0x1371b1['model']['document']['selection'],_0x39de59=_0x1371b1['commands']['get'](_0x480f2b);if(_0x39de59['value'])return void _0x1371b1['execute']('paragraph',{});const _0x4b38c2=_0x480f2b['slice'](0x0,-0x4),_0x3b5a1b=function(_0x46ee74,_0x2767e7,_0x436d93){let _0x3cb34d=Array['from'](_0x46ee74)['filter'](_0x43a007=>function(_0x10265c,_0x12552f){return _0x12552f['checkChild'](_0x10265c['parent'],'listItem')&&!_0x12552f['isObject'](_0x10265c);}(_0x43a007,_0x436d93));_0x3cb34d=_0x3cb34d['filter'](_0x49fc96=>!_0x49fc96['is']('element','listItem')||_0x49fc96['getAttribute']('listType')!=_0x2767e7);const _0x2960f8=new Set();for(const _0x2ae2db of _0x3cb34d)_0x2ae2db['is']('element','listItem')?_0x2960f8['add'](Le(_0x2ae2db)):_0x2960f8['add'](_0x2ae2db);return Array['from'](_0x2960f8);}(_0x242a24['getSelectedBlocks'](),_0x4b38c2,_0x1371b1['model']['schema']);_0x1371b1['model']['change'](()=>{for(const _0xf9adb3 of _0x3b5a1b)_0x3a3e09['markBlockFormat'](_0xf9adb3,{'commandName':_0x480f2b,'commandParams':[{'forceValue':!_0x39de59['value']}],'formatGroupId':'blockName'},Ee(_0xf9adb3));});};}function _0x2dc04e(_0x39e449){return()=>{const _0x1b6123=function(_0x22446d){let _0x186450=Array['from'](_0x22446d);const _0x4d3e37=_0x186450['findIndex'](_0x215258=>'listItem'!=_0x215258['name']);return _0x4d3e37>-0x1&&(_0x186450=_0x186450['slice'](0x0,_0x4d3e37)),_0x186450;}(_0x1371b1['model']['document']['selection']['getSelectedBlocks']()),_0x1b31a3=_0x1371b1['model']['createRange'](_0x1371b1['model']['createPositionAt'](_0x1b6123[0x0],'before'),_0x1371b1['model']['createPositionAt'](_0x1b6123[_0x1b6123['length']-0x1],'end'));_0x1371b1['model']['change'](()=>{_0x3a3e09['markBlockFormat'](_0x1b31a3,{'commandName':_0x39e449,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b606f){const _0x54518c=new Set();for(const _0x23dfc7 of _0x1b606f){let _0x19ab3e=_0x23dfc7['nextSibling'];for(;_0x19ab3e&&_0x19ab3e['getAttribute']('listIndent')>_0x23dfc7['getAttribute']('listIndent');)_0x54518c['add'](_0x19ab3e),_0x19ab3e=_0x19ab3e['nextSibling'];}return Array['from'](_0x54518c);}(_0x1b6123));});};}_0x3a3e09['enableCommand']('numberedList',_0x411d75('numberedList')),_0x3a3e09['enableCommand']('bulletedList',_0x411d75('bulletedList')),_0x5b4393&&_0x3a3e09['enableCommand']('todoList',_0x411d75('todoList')),_0x3a3e09['enableCommand']('indentList',_0x2dc04e('indentList')),_0x3a3e09['enableCommand']('outdentList',_0x2dc04e('outdentList')),_0x5b4393&&_0x3a3e09['enableCommand']('checkTodoList',()=>{const _0x2a2575=_0x1371b1['commands']['get']('checkTodoList'),_0x4e7bbd=Array['from'](_0x2a2575['_selectedElements']);_0x4e7bbd['filter'](_0x5c05f1=>_0x5c05f1['getAttribute']('todoListChecked')!=_0x2a2575['value']),_0x1371b1['model']['change'](()=>{for(const _0x45010e of _0x4e7bbd)_0x3a3e09['markBlockFormat'](_0x45010e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a2575['value']}]});});}),_0x3a3e09['descriptionFactory']['registerElementLabel']('listItem',_0x35eb8d=>o(_0x12aafb,'ELEMENT_LIST_ITEM',_0x35eb8d)),_0x3a3e09['descriptionFactory']['registerDescriptionCallback'](_0x47ce7a=>{if('formatBlock'!=_0x47ce7a['type']&&'formatInline'!=_0x47ce7a['type'])return;const {data:_0x174e20}=_0x47ce7a;if(_0x174e20){if('numberedList'==_0x174e20['commandName']||'bulletedList'==_0x174e20['commandName']||'todoList'==_0x174e20['commandName'])switch(_0x174e20['commandName']['replace']('List','')){case'bulleted':return _0x33cc65(o(_0x12aafb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33cc65(o(_0x12aafb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33cc65(o(_0x12aafb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x174e20['commandName'])return{'type':'format','content':o(_0x12aafb,'*Indent:*\x20%0',o(_0x12aafb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x174e20['commandName'])return{'type':'format','content':o(_0x12aafb,'*Outdent:*\x20%0',o(_0x12aafb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x174e20['commandName'])return _0x174e20['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12aafb,'*Check\x20item*')}:{'type':'format','content':o(_0x12aafb,'*Uncheck\x20item*')};}function _0x33cc65(_0x6c3458){return{'type':'format','content':o(_0x12aafb,'*Change\x20to:*\x20%0',_0x6c3458)};}});}}function Le(_0x9f444b){const _0x2a6346=_0x9f444b['getAttribute']('listIndent');if(0x0==_0x2a6346)return _0x9f444b;let _0x26202a=_0x9f444b;for(;_0x9f444b['previousSibling']&&_0x9f444b['previousSibling']['is']('element','listItem');){const _0x1ac79d=_0x9f444b['previousSibling']['getAttribute']('listIndent');if(_0x1ac79d==_0x2a6346)_0x26202a=_0x9f444b['previousSibling'];else{if(_0x1ac79d<_0x2a6346)break;}_0x9f444b=_0x9f444b['previousSibling'];}return _0x26202a;}function Ee(_0x24a599){const _0x3cca27=[];if(_0x24a599['is']('element','listItem')&&_0x24a599['getAttribute']('listIndent')>0x0){let _0x442e6a=_0x24a599['nextSibling'];for(;_0x442e6a&&'listItem'==_0x442e6a['name']&&_0x442e6a['getAttribute']('listIndent')==_0x24a599['getAttribute']('listIndent');)_0x3cca27['push'](_0x442e6a),_0x442e6a=_0x442e6a['nextSibling'];}return _0x3cca27;}class Q extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x1f7ead=this['editor']['config']['get']('list.properties'),_0xc36fb7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f7ead['styles']&&_0xc36fb7['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x1f7ead['reversed']&&_0xc36fb7['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x1f7ead['startIndex']&&_0xc36fb7['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xc36fb7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2302d3,_0x1c4388={}){const _0x1de15d=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd5c1a2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1de15d['markMultiRangeBlockFormat'](_0xd5c1a2,{'commandName':'listStyle','commandParams':[{'type':_0x1c4388['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d012e,_0xcbadf2={}){const _0x4cb6fc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15c8a2=this['_getSuggestionBlocks'](_0x5e0d20=>_0x5e0d20['is']('element','listItem')&&'numbered'===_0x5e0d20['getAttribute']('listType'));if(_0x15c8a2['length']<0x1)return;const _0x48f086=_0x15c8a2['map'](_0x4932bb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4932bb,'before'),this['editor']['model']['createPositionAt'](_0x4932bb,0x0)));this['editor']['model']['change'](()=>{_0x4cb6fc['markMultiRangeBlockFormat'](_0x48f086,{'commandName':'listReversed','commandParams':[{'reversed':_0xcbadf2['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x17f798,_0x58a24e={}){const _0x29a105=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dc1c4=this['_getSuggestionBlocks'](_0x411421=>_0x411421['is']('element','listItem')&&'numbered'===_0x411421['getAttribute']('listType'));if(_0x4dc1c4['length']<0x1)return;const _0x2f5f81=_0x4dc1c4['map'](_0x3788b8=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3788b8,'before'),this['editor']['model']['createPositionAt'](_0x3788b8,0x0)));this['editor']['model']['change'](()=>{_0x29a105['markMultiRangeBlockFormat'](_0x2f5f81,{'commandName':'listStart','commandParams':[{'startIndex':_0x58a24e['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x47d4e1){if('formatBlock'!=_0x47d4e1['type']&&'formatInline'!=_0x47d4e1['type'])return;const _0x1d943d=this['editor']['locale'],{data:_0x160812}=_0x47d4e1;if(!_0x160812)return;let _0x406e2b,_0x58558f;switch(_0x160812['commandName']){case'listStyle':_0x406e2b='*Change\x20to:*\x20%0',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b,o(_0x1d943d,this['_getTranslationKeyForListStyle'](_0x160812['commandParams'][0x0]['type'])))};break;case'listReversed':_0x406e2b=_0x160812['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b)};break;case'listStart':_0x406e2b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58558f={'type':'format','content':o(_0x1d943d,_0x406e2b,_0x160812['commandParams'][0x0]['startIndex'])};}return _0x58558f;}['_getSuggestionBlocksForListStyle'](){const _0x5644d8=this['editor']['plugins']['get']('LegacyListUtils');let _0x49359d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x49359d[0x0]?.['is']('element','listItem')&&_0x49359d['unshift'](..._0x5644d8['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x49359d[_0x49359d['length']-0x1]?.['is']('element','listItem')&&_0x49359d['push'](..._0x5644d8['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x49359d=[...new Set(_0x49359d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x49359d=_0x49359d['filter'](_0x1e35bc=>_0x1e35bc['is']('element','listItem'))),_0x49359d;}['_getSuggestionBlocks'](_0x346f7f){const _0x32f354=this['editor']['plugins']['get']('LegacyListUtils');let _0x4f061e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x346f7f)['map'](_0x592bcf=>{const _0x56e7ca=this['editor']['model']['createPositionAt'](_0x592bcf,0x0);return[..._0x32f354['getSiblingNodes'](_0x56e7ca,'backward'),..._0x32f354['getSiblingNodes'](_0x56e7ca,'forward')];})['flat']();return _0x4f061e=[...new Set(_0x4f061e)],_0x4f061e;}['_getTranslationKeyForListStyle'](_0x2c30c8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2c30c8)||'default')['toUpperCase']()+'_LIST_'+_0x2c30c8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x4a8caa{['afterInit'](){const _0x2fc658=this['editor'];if(!_0x2fc658['plugins']['has']('MediaEmbedEditing'))return;const _0x5f01b1=_0x2fc658['plugins']['get']('TrackChangesEditing'),_0x14b572=_0x2fc658['locale'];_0x5f01b1['enableCommand']('mediaEmbed'),_0x5f01b1['descriptionFactory']['registerElementLabel']('media',_0x3c5b22=>o(_0x14b572,'ELEMENT_MEDIA',_0x3c5b22)),_0x2fc658['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x117769,{writer:_0x18d0ca,options:_0xdc9120})=>{if(_0xdc9120['showSuggestionHighlights'])return _0x18d0ca['createEmptyElement']('div');},'converterPriority':'high'}),_0x2fc658['data']['downcastDispatcher']['on']('attribute:url:media',(_0x25cbb1,_0x1ffc0a,_0x440b8e)=>{_0x440b8e['options']['showSuggestionHighlights']&&_0x25cbb1['stop']();},{'priority':'high'});}}class mt extends _0x4a8caa{['afterInit'](){const _0x57ab85=this['editor'];_0x57ab85['plugins']['has']('MentionEditing')&&_0x57ab85['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x4a8caa{['afterInit'](){const _0x175e77=this['editor'];if(!_0x175e77['plugins']['has']('MergeFieldsEditing'))return;_0x175e77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x175e77['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1b6a61=_0x175e77['plugins']['get']('TrackChangesEditing'),_0x510bdf=_0x175e77['locale'];_0x1b6a61['descriptionFactory']['registerElementLabel']('mergeField',_0xf4c049=>o(_0x510bdf,'ELEMENT_MERGE_FIELD',_0xf4c049)),_0x1b6a61['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x453ad6=>o(_0x510bdf,'ELEMENT_MERGE_FIELD',_0x453ad6)),_0x1b6a61['descriptionFactory']['registerDescriptionCallback'](_0x41177a=>{if('insertion'!=_0x41177a['type']&&'deletion'!=_0x41177a['type'])return;const _0x5615e1=_0x41177a['getContainedElement']();if(null==_0x5615e1)return;if(!_0x5615e1['is']('element','mergeField')&&!_0x5615e1['is']('element','mergeFieldBlock'))return;const _0x33f4d5=_0x175e77['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5615e1['getAttribute']('id'));return'insertion'==_0x41177a['type']?{'type':'insertion','content':o(_0x510bdf,'*Insert:*\x20%0','\x22'+_0x33f4d5+'\x22\x20'+o(_0x510bdf,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x510bdf,'*Remove:*\x20%0','\x22'+_0x33f4d5+'\x22\x20'+o(_0x510bdf,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x4a8caa{['afterInit'](){const _0x2c35a9=this['editor'],_0x266dbc=_0x2c35a9['plugins']['get']('TrackChangesEditing');_0x2c35a9['plugins']['has']('MultiLevelList')&&(_0x266dbc['enableDefaultAttributesIntegration']('multiLevelList'),_0x266dbc['registerBlockAttribute']('listMarkerStyle'),_0x266dbc['descriptionFactory']['registerDescriptionCallback'](_0x23d7aa=>this['handleDescriptions'](_0x23d7aa)));}['handleDescriptions'](_0x1459ac){const _0x216cc0=this['editor']['locale'],{data:_0x18bd84}=_0x1459ac,_0x4568bf={'type':'format','content':''};if(_0x18bd84&&'listMarkerStyle'==_0x18bd84['key']){if(!_0x18bd84['oldValue'])return{'type':'format','content':o(_0x216cc0,'*Set\x20format:*\x20%0',o(_0x216cc0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bd84['newValue']+')'};if(!_0x18bd84['newValue']){let _0x115ed1=_0x1459ac['head'];for(;_0x115ed1;){if(_0x115ed1['data']&&'listType'==_0x115ed1['data']['key']&&_0x115ed1['data']['newValue'])return _0x4568bf;_0x115ed1=_0x115ed1['next'];}return{'type':'format','content':o(_0x216cc0,'*Remove\x20format:*\x20%0',o(_0x216cc0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x18bd84['oldValue']+')'};}}}}class kt extends _0x4a8caa{['afterInit'](){const _0x5cd682=this['editor'];if(!_0x5cd682['plugins']['has']('PageBreakEditing'))return;_0x5cd682['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x29128e=_0x5cd682['plugins']['get']('TrackChangesEditing'),_0x1e1a7c=_0x5cd682['locale'];_0x29128e['descriptionFactory']['registerElementLabel']('pageBreak',_0x55b532=>o(_0x1e1a7c,'ELEMENT_PAGE_BREAK',_0x55b532));}}class bt extends _0x4a8caa{['afterInit'](){const _0x334b5e=this['editor'];if(!_0x334b5e['plugins']['has']('Paragraph'))return;const _0x5da471=_0x334b5e['locale'],_0x7ef739=_0x334b5e['plugins']['get']('TrackChangesEditing');_0x7ef739['descriptionFactory']['registerElementLabel']('paragraph',_0x59e899=>o(_0x5da471,'ELEMENT_PARAGRAPH',_0x59e899)),_0x7ef739['enableDefaultAttributesIntegration']('paragraph'),_0x7ef739['enableCommand']('insertParagraph'),_0x334b5e['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x334b5e),{'priority':'highest'}),_0x334b5e['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1f1ff4,_0x51a98f,_0x24bf96)=>{_0x24bf96['options']['showSuggestionHighlights']&&nr(_0x334b5e,{'showActiveMarker':!0x1})(_0x1f1ff4,_0x51a98f,_0x24bf96);},{'priority':'highest'});const _0x1d0886=_0x7ef739['descriptionFactory'];_0x1d0886['registerDescriptionCallback'](_0x52e308=>{if('insertion'!==_0x52e308['type'])return;const {start:_0x1ec683,end:_0x479be6}=_0x52e308['getFirstRange']();if(!_0x1ec683['isTouching'](_0x479be6)||!_0x1ec683['nodeAfter'])return;const _0x3c5dda=_0x334b5e['model']['schema'],_0xe2d823=_0x1ec683['nodeAfter'];return _0x3c5dda['isBlock'](_0xe2d823)&&!_0x3c5dda['isLimit'](_0xe2d823)&&_0x3c5dda['checkChild'](_0xe2d823,'$text')?{'type':'insertion','content':o(_0x5da471,'*Insert:*\x20%0',_0x1d0886['getItemLabel'](_0xe2d823,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52d33c=this['editor'],_0x3a0955=_0x52d33c['locale'];_0x52d33c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x96f34d=>{if('formatBlock'!=_0x96f34d['type'])return;const {data:_0x51d9b0}=_0x96f34d;return _0x51d9b0&&'paragraph'==_0x51d9b0['commandName']?{'type':'format','content':o(_0x3a0955,'*Change\x20to:*\x20%0',o(_0x3a0955,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x45539b,{showActiveMarker:_0x265c6c=!0x0}={}){return(_0x3bfb8c,_0x3f0b97,_0x225f45)=>{const _0x4d73b8=_0x45539b['plugins']['get']('TrackChangesEditing'),_0x41f4e2=_0x3f0b97['markerRange']['start'],_0x422f70=_0x3f0b97['markerRange']['end'],_0x3c49fa=_0x45539b['model']['schema'];if(!_0x41f4e2['isTouching'](_0x422f70)||!_0x41f4e2['nodeAfter'])return;const _0x9f169f=_0x41f4e2['nodeAfter'];if(_0x3c49fa['isBlock'](_0x9f169f)&&!_0x3c49fa['isLimit'](_0x9f169f)&&_0x3c49fa['checkChild'](_0x9f169f,'$text')){if(!_0x225f45['consumable']['consume'](_0x3f0b97['markerRange'],_0x3bfb8c['name']))return;const {authorId:_0x5dd17a}=_0x4d73b8['_splitMarkerName'](_0x3f0b97['markerName']),_0xddc02d=_0x225f45['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x5dd17a}),_0x3f3845=_0x225f45['mapper']['toViewPosition'](_0x422f70);_0x265c6c&&_0x4d73b8['activeMarkers']['includes'](_0x3f0b97['markerName'])&&_0x225f45['writer']['addClass']('ck-suggestion-marker--active',_0xddc02d),_0x225f45['writer']['insert'](_0x3f3845,_0xddc02d),_0x225f45['mapper']['bindElementToMarker'](_0xddc02d,_0x3f0b97['markerName']);}};}class yt extends _0x4a8caa{['afterInit'](){const _0x9bd471=this['editor'];if(!_0x9bd471['plugins']['has']('RemoveFormatEditing'))return;_0x9bd471['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5853c1=this['editor'];_0x5853c1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x124054=>{if('formatBlock'!=_0x124054['type']&&'formatInline'!=_0x124054['type'])return;const {data:_0x54761e}=_0x124054;return _0x54761e&&'removeFormat'==_0x54761e['commandName']?{'type':'format','content':o(_0x5853c1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x4a8caa{['afterInit'](){const _0x22dffe=this['editor'];if(!_0x22dffe['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1dbe39=_0x22dffe['plugins']['get']('TrackChangesEditing');_0x1dbe39['enableCommand']('goToPreviousRestrictedEditingException'),_0x1dbe39['enableCommand']('goToNextRestrictedEditingException');const _0x1a2c63=_0x22dffe['plugins']['get']('RestrictedEditingModeEditing');_0x1a2c63['enableCommand']('trackChanges'),_0x1a2c63['enableCommand']('acceptSuggestion'),_0x1a2c63['enableCommand']('discardSuggestion'),_0x1a2c63['enableCommand']('acceptAllSuggestions'),_0x1a2c63['enableCommand']('discardAllSuggestions'),_0x1a2c63['enableCommand']('acceptSelectedSuggestions'),_0x1a2c63['enableCommand']('discardSelectedSuggestions');}}class St extends _0x4a8caa{static get['requires'](){return[_0x103ccf];}['init'](){const _0x554012=this['editor'],_0x3398f5=_0x554012['plugins']['get']('TrackChangesEditing');_0x3398f5['enableCommand']('shiftEnter'),_0x554012['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x554012),{'priority':'high'}),_0x554012['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x554012),{'priority':'high'}),_0x554012['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b7b9a,_0x3545b6,_0x1a5504)=>{_0x1a5504['options']['showSuggestionHighlights']&&ke(_0x554012,{'showActiveMarker':!0x1})(_0x1b7b9a,_0x3545b6,_0x1a5504);}),_0x3398f5['descriptionFactory']['registerElementLabel']('softBreak',_0x25f5b5=>o(_0x554012['locale'],'ELEMENT_LINE_BREAK',_0x25f5b5));}}function ke(_0x57f10b,{showActiveMarker:_0x391f1f=!0x0}={}){return(_0x2c941a,_0x1fb6d9,_0x1b4cb5)=>{const _0xbcaf6d=_0x57f10b['plugins']['get']('TrackChangesEditing');if(!_0x1b4cb5['consumable']['test'](_0x1fb6d9['markerRange'],_0x2c941a['name']))return;const _0x21cc3f=_0x57f10b['model'];for(const _0x4b22b5 of _0x1fb6d9['markerRange']['getItems']()){if(!_0x4b22b5['is']('element','softBreak'))continue;const _0x75d205='deletion'==_0x1fb6d9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x26640a}=_0xbcaf6d['_splitMarkerName'](_0x1fb6d9['markerName']),_0x5797f4=_0x1b4cb5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x75d205,'data-author-id':_0x26640a}),_0xebec99=_0x1b4cb5['mapper']['toViewPosition'](_0x21cc3f['createPositionBefore'](_0x4b22b5));_0x391f1f&&_0xbcaf6d['activeMarkers']['includes'](_0x1fb6d9['markerName'])&&_0x1b4cb5['writer']['addClass']('ck-suggestion-marker--active',_0x5797f4),_0x1b4cb5['writer']['insert'](_0xebec99,_0x5797f4),_0x1b4cb5['mapper']['bindElementToMarker'](_0x5797f4,_0x1fb6d9['markerName']);}};}class At extends _0x4a8caa{['afterInit'](){const _0x54129f=this['editor'],_0x1409d9=_0x54129f['model'],_0x52f086=_0x54129f['locale'];if(!_0x54129f['plugins']['has']('StandardEditingModeEditing'))return;const _0x8198dc=_0x54129f['plugins']['get']('TrackChangesEditing'),_0x17c570='restrictedEditingException',_0x1e2c85=_0x54129f['commands']['get'](_0x17c570);_0x8198dc['enableCommand'](_0x17c570,(_0x4d1927,_0xb834eb={})=>{const _0x329a3e=_0x1409d9['document']['selection'];if(_0x329a3e['isCollapsed'])return void _0x4d1927(_0xb834eb);const _0x35f176=void 0x0!==_0xb834eb['forceValue']?_0xb834eb['forceValue']:!_0x1e2c85['value'];_0x1409d9['change'](()=>{const _0x393dba=Array['from'](_0x329a3e['getRanges']());for(const _0x3f27b6 of _0x393dba){const _0x4d11f6=_0x35f176?[_0x3f27b6]:io(_0x17c570,_0x3f27b6,_0x1409d9);for(const _0x1f7dbb of _0x4d11f6)_0x8198dc['markInlineFormat'](_0x1f7dbb,{'commandName':_0x17c570,'commandParams':[{'forceValue':_0x35f176}]});}});}),_0x8198dc['descriptionFactory']['registerDescriptionCallback'](_0x39cbc9=>{if('formatBlock'!=_0x39cbc9['type']&&'formatInline'!=_0x39cbc9['type'])return;const {data:_0x1bfd4f}=_0x39cbc9;return _0x1bfd4f&&_0x1bfd4f['commandName']==_0x17c570?_0x1bfd4f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52f086,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52f086,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x4a8caa{['afterInit'](){const _0x903ac=this['editor'];if(!_0x903ac['plugins']['has']('Style')||!_0x903ac['plugins']['has']('DataSchema'))return;const _0x16253f=_0x903ac['plugins']['get']('TrackChangesEditing'),_0x1fcc62=_0x903ac['locale'],_0x5d5929=_0x903ac['config']['get']('style')||{},_0x121438=_0x903ac['plugins']['get']('GeneralHtmlSupport'),_0x11e672=_0x903ac['plugins']['get']('StyleUtils')['normalizeConfig'](_0x903ac['plugins']['get']('DataSchema'),_0x5d5929['definitions']);_0x16253f['enableDefaultAttributesIntegration']('style');const _0x3792fd=new Set();for(const _0x11678e of _0x11e672['block']){const _0x48c4a9=_0x121438['getGhsAttributeNameForElement'](_0x11678e['element']);_0x3792fd['add'](_0x48c4a9);}const _0x1bed96=new Set();for(const _0x36e2f5 of _0x11e672['inline']){const _0x3ea27a=_0x121438['getGhsAttributeNameForElement'](_0x36e2f5['element']);_0x1bed96['add'](_0x3ea27a);for(const _0x64b17f of _0x36e2f5['ghsAttributes'])_0x1bed96['add'](_0x64b17f);}for(const _0x35b10e of _0x3792fd)_0x16253f['registerBlockAttribute'](_0x35b10e),_0x16253f['descriptionFactory']['registerAttributeLabel'](_0x35b10e,o(_0x1fcc62,'FORMAT_STYLE'));for(const _0x2a42b5 of _0x1bed96)_0x16253f['registerInlineAttribute'](_0x2a42b5),_0x16253f['descriptionFactory']['registerAttributeLabel'](_0x2a42b5,o(_0x1fcc62,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x441ca4=this['editor'],_0x105dcb=_0x441ca4['locale'];_0x441ca4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24618e=>{if('formatBlock'!=_0x24618e['type']&&'formatInline'!=_0x24618e['type'])return;const {data:_0x192239}=_0x24618e;return _0x192239&&'style'===_0x192239['commandName']?_0x192239['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105dcb,'*Set\x20format:*\x20%0',_0x192239['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x105dcb,'*Remove\x20format:*\x20%0',_0x192239['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x4a8caa{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x34d0e0){super(_0x34d0e0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x408872=this['editor'],_0x11c8b6=_0x408872['model']['document']['selection'];if(!_0x408872['plugins']['has']('TableEditing'))return;const _0xda5f6c=_0x408872['locale'],_0x124e08=_0x408872['plugins']['get']('TrackChangesEditing'),_0x3de5b1=_0x408872['plugins']['get']('TableUtils');_0x124e08['descriptionFactory']['registerElementLabel']('table',_0x4cfe04=>o(_0xda5f6c,'ELEMENT_TABLE',_0x4cfe04)),this['_setupColumnsRowsFixing'](),_0x124e08['enableCommand']('insertTable'),_0x124e08['enableCommand']('selectTableRow'),_0x124e08['enableCommand']('selectTableColumn');for(const _0x33dba5 of['insertTableRowAbove','insertTableRowBelow']){const _0x87b1e0=_0x408872['commands']['get'](_0x33dba5);_0x124e08['enableCommand'](_0x33dba5,_0x417aad=>{_0x408872['model']['change'](_0x3d4a31=>{_0x417aad();const _0x315f31='above'===_0x87b1e0['order'],_0x4faee3=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0xe13cbe=_0x3de5b1['getRowIndexes'](_0x4faee3),_0x429108=_0x315f31?_0xe13cbe['first']-0x1:_0xe13cbe['last']+0x1,_0x232226=_0x4faee3[0x0]['findAncestor']('table'),_0x304b7c=_0x3de5b1['createTableWalker'](_0x232226,{'startRow':_0x429108,'endRow':_0x429108}),_0xfa4049=Array['from'](_0x304b7c)['map'](_0x6e6e16=>_0x3d4a31['createRangeOn'](_0x6e6e16['cell']));_0x124e08['markMultiRangeInsertion'](_0xfa4049,'tableRow');});});}for(const _0x14b74f of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c390c=_0x408872['commands']['get'](_0x14b74f);_0x124e08['enableCommand'](_0x14b74f,_0x3404f9=>{_0x408872['model']['change'](_0x26f158=>{_0x3404f9();const _0x4d161a='left'===_0x1c390c['order'],_0x2c635f=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0x5fd609=_0x3de5b1['getColumnIndexes'](_0x2c635f),_0x30bb2b=_0x4d161a?_0x5fd609['first']-0x1:_0x5fd609['last']+0x1,_0x294af0=_0x2c635f[0x0]['findAncestor']('table'),_0x3595d7=_0x3de5b1['createTableWalker'](_0x294af0,{'startRow':0x0,'column':_0x30bb2b,'includeAllSlots':!0x1}),_0x2e2594=Array['from'](_0x3595d7)['map'](_0x3b322d=>_0x26f158['createRangeOn'](_0x3b322d['cell']));_0x124e08['markMultiRangeInsertion'](_0x2e2594,'tableColumn');});});}for(const _0x3e6b50 of['removeTableRow','removeTableColumn']){const _0x1567c7=_0x3e6b50['substr'](0xb),_0x2601b9=_0x1567c7['toLowerCase'](),_0x7320=_0x2601b9['substr'](0x0,0x3)+'span',_0x4bf777='table'+_0x1567c7,_0x23e4d1='min'+_0x1567c7,_0x2a5be5='max'+_0x1567c7;_0x124e08['enableCommand'](_0x3e6b50,()=>{_0x408872['model']['change'](_0x476bd7=>{const _0x5a7d18=_0x3de5b1['getSelectionAffectedTableCells'](_0x11c8b6),_0x3635cd=_0x5a7d18[0x0]['findAncestor']('table');let _0x47440a;if('removeTableRow'==_0x3e6b50){const _0x5996fc=_0x3de5b1['getRowIndexes'](_0x5a7d18);_0x47440a={'startRow':_0x5996fc['first'],'endRow':_0x5996fc['last'],'includeAllSlots':!0x0};}else{const _0x42e9fa=_0x3de5b1['getColumnIndexes'](_0x5a7d18);_0x47440a={'startColumn':_0x42e9fa['first'],'endColumn':_0x42e9fa['last'],'includeAllSlots':!0x0};}const _0x5bffdb=_0x3de5b1['createTableWalker'](_0x3635cd,_0x47440a),_0x2ba266=Array['from'](_0x5bffdb)['map'](({cell:_0x368b67})=>_0x368b67),_0x392092=Re(_0x2ba266['filter'](_0x5215d0=>_0x5215d0['hasAttribute'](_0x7320))),_0x501289=Re(_0x2ba266['filter'](_0x19e7ec=>!_0x19e7ec['hasAttribute'](_0x7320)))['map'](_0x50924e=>_0x476bd7['createRangeOn'](_0x50924e)),_0x10d5ac=_0x124e08['markMultiRangeDeletion'](_0x501289,_0x4bf777);if(_0x10d5ac&&('tableRow'==_0x10d5ac['subType']||'tableColumn'==_0x10d5ac['subType'])){const _0x5b6197=this['_getSuggestionCoords'](_0x10d5ac);for(const _0x1dca1e of _0x392092){const _0x5306fe=_0x476bd7['createRangeOn'](_0x1dca1e),_0x5416a2=_0x3de5b1['getCellLocation'](_0x1dca1e),_0x466a61=_0x1dca1e['getAttribute'](_0x7320)-0x1,_0x54a64d=_0x5b6197[_0x23e4d1],_0x441808=_0x5b6197[_0x2a5be5];_0x54a64d<=_0x5416a2[_0x2601b9]&&_0x5416a2[_0x2601b9]+_0x466a61<=_0x441808&&_0x10d5ac['addRange'](_0x5306fe);}}});});}function _0x11da8a(_0x2a6c14){const _0x4c3dc0=Array['from'](_0x11c8b6['getRanges']())['map'](_0x1e3b1d=>_0x4daf91['fromRange'](_0x1e3b1d));_0x408872['model']['change'](_0x129406=>{const _0x168005=_0x129406['batch'];_0x2a6c14=_0x2a6c14['filter'](_0x30550e=>'$graveyard'!=_0x30550e['root']['rootName']),_0x129406['setSelection'](_0x2a6c14),_0x408872['commands']['get']('removeTableRow')['refresh'](),_0x408872['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x408872['model']['enqueueChange'](()=>{_0x408872['model']['enqueueChange'](_0x168005,_0x2c4dc8=>{const _0x16536f=_0x4c3dc0['filter'](_0x837db8=>'$graveyard'!=_0x837db8['root']['rootName']);_0x16536f['length']>0x0&&_0x2c4dc8['setSelection'](_0x16536f);for(const _0x5e1bc5 of _0x4c3dc0)_0x5e1bc5['detach']();});});});}function _0x5adc02(_0x32fbdd){_0x408872['model']['change'](_0x4f8153=>{const _0x491a75=Array['from'](_0x11c8b6['getRanges']())['map'](_0x476f47=>_0x4daf91['fromRange'](_0x476f47)),_0x3a6bdc=[];for(const _0x53e76a of _0x32fbdd)for(const _0x3cbe98 of _0x53e76a['getItems']({'shallow':!0x0}))_0x3a6bdc['push'](_0x3cbe98);for(const _0x38a128 of _0x3a6bdc)'$graveyard'!=_0x38a128['root']['rootName']&&(_0x4f8153['setSelection'](_0x4f8153['createPositionAt'](_0x38a128,0x0)),_0x408872['commands']['get']('removeTableColumn')['refresh'](),_0x408872['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1f0516=_0x491a75['filter'](_0x3ef01e=>'$graveyard'!=_0x3ef01e['root']['rootName']);_0x1f0516['length']>0x0&&_0x4f8153['setSelection'](_0x1f0516);for(const _0x1730f8 of _0x491a75)_0x1730f8['detach']();});}function _0x4a1111(_0x483256,_0x24806a){return _0x24806a['every'](_0x145ec8=>_0x483256['some'](_0x3d8dfd=>_0x3d8dfd['end']['isEqual'](_0x145ec8['start'])||_0x145ec8['end']['isEqual'](_0x3d8dfd['start'])));}function _0x551258(_0x2e8c63,_0x5b4e9c){return!_0x2e8c63['some'](_0x3b1d17=>_0x5b4e9c['some'](_0x2b25a3=>_0x3b1d17['isIntersecting'](_0x2b25a3)))&&_0x2e8c63['some'](_0x3f0f77=>_0x5b4e9c['some'](_0x172ee7=>_0x3f0f77['end']['isTouching'](_0x172ee7['start'])));}_0x408872['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x33b155,_0x3644be,_0x6d6ae4)=>{if(!_0x6d6ae4['options']['showSuggestionHighlights'])return;const _0x27f884=_0x3644be['item'];if(!_0x27f884)return;const _0x1eecca=_0x6d6ae4['mapper']['toViewElement'](_0x27f884);function _0x1f0ece(_0x26ce6b){return Array['isArray'](_0x26ce6b)?_0x26ce6b:[_0x26ce6b];}_0x1eecca&&'tableCell'===_0x27f884['name']&&_0x492f28(_0x1eecca,_0x6d6ae4['writer'],(_0x4d908f,_0x503e5c,_0xa0a5cd)=>_0xa0a5cd['addClass'](_0x1f0ece(_0x503e5c['classes']),_0x4d908f),(_0x5cc87a,_0x477833,_0x399d7f)=>_0x399d7f['removeClass'](_0x1f0ece(_0x477833['classes']),_0x5cc87a));},{'priority':'highest'}),_0x124e08['descriptionFactory']['registerDescriptionCallback'](_0x407cb3=>{if('insertion'!=_0x407cb3['type']&&'deletion'!=_0x407cb3['type'])return;const _0x974501=_0x407cb3['getContainedElement']();if(null!=_0x974501&&_0x974501['is']('element','table')){if('insertion'==_0x407cb3['type']){const _0x107c57=_0x407cb3['getItems']()['filter'](_0x5990df=>_0x5990df['is']('$textProxy'))['map'](_0x934582=>_0x934582['data']);if(_0x107c57['length'])return{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x107c57['join']('\x20')+'\x22'))};}if('deletion'==_0x407cb3['type']){const _0x37e751=_0x407cb3['getItems']()['filter'](_0x1200c9=>_0x1200c9['is']('$textProxy'))['map'](_0x33d7c7=>_0x33d7c7['data']);if(_0x37e751['length'])return{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37e751['join']('\x20')+'\x22'))};}}}),_0x124e08['descriptionFactory']['registerDescriptionCallback'](_0x52a8ab=>{if('tableRow'==_0x52a8ab['subType']){const _0x5e1f45=_0x52a8ab['getItems']()['filter'](_0x497e05=>_0x497e05['is']('$textProxy'))['map'](_0x3f3324=>_0x3f3324['data']),_0x317ac0=this['_getSuggestionCoords'](_0x52a8ab),_0x5d8bad=_0x317ac0['maxRow']-_0x317ac0['minRow']+0x1;if('insertion'==_0x52a8ab['type'])return _0x5e1f45['length']?{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d8bad,'\x22'+_0x5e1f45['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW',_0x5d8bad))};if('deletion'==_0x52a8ab['type'])return _0x5e1f45['length']?{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5d8bad,'\x22'+_0x5e1f45['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_ROW',_0x5d8bad))};}if('tableColumn'==_0x52a8ab['subType']){const _0x590dce=_0x52a8ab['getItems']()['filter'](_0x5cecbb=>_0x5cecbb['is']('$textProxy'))['map'](_0xd0f2b8=>_0xd0f2b8['data']),_0x2a285b=this['_getSuggestionCoords'](_0x52a8ab),_0x1b1d27=_0x2a285b['maxColumn']-_0x2a285b['minColumn']+0x1;if('insertion'==_0x52a8ab['type'])return _0x590dce['length']?{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1d27,'\x22'+_0x590dce['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xda5f6c,'*Insert:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN',_0x1b1d27))};if('deletion'==_0x52a8ab['type'])return _0x590dce['length']?{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1b1d27,'\x22'+_0x590dce['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xda5f6c,'*Remove:*\x20%0',o(_0xda5f6c,'ELEMENT_TABLE_COLUMN',_0x1b1d27))};}}),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x11da8a),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x11da8a),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5adc02),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5adc02),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a1111),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a1111),_0x124e08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x551258),_0x124e08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x551258);}['_acceptFormatSuggestionCallbackFactory'](){const _0xdad7da=this['editor'],_0x496820=_0xdad7da['model']['document']['selection'];return(_0x3c26d5,_0x44cc44)=>{_0xdad7da['model']['change'](_0x51ac95=>{const {commandName:_0x59545a,commandParams:_0x1d5cf0}=_0x44cc44;let _0x41f0ad=_0x3c26d5[0x0]['end']['nodeBefore'];_0x1d5cf0&&_0x1d5cf0[0x0]&&!0x1===_0x1d5cf0[0x0]['forceValue']&&(_0x41f0ad=_0x3c26d5[0x0]['start']['nodeAfter']);const _0x257bfc=_0x51ac95['createRangeIn'](_0x41f0ad);if('$graveyard'==_0x257bfc['root']['rootName'])return;const _0x1c1a41=Array['from'](_0x496820['getRanges']())['map'](_0x567585=>_0x4daf91['fromRange'](_0x567585));_0x51ac95['setSelection'](_0x257bfc),_0xdad7da['commands']['get'](_0x59545a)['refresh'](),_0x1d5cf0['push']({'forceDefaultExecution':!0x0}),_0xdad7da['execute'](_0x59545a,..._0x1d5cf0);const _0x4f9319=_0x1c1a41['filter'](_0x2100c7=>'$graveyard'!=_0x2100c7['root']['rootName']);_0x4f9319['length']>0x0&&_0x51ac95['setSelection'](_0x4f9319);for(const _0x57dd2e of _0x1c1a41)_0x57dd2e['detach']();});};}['_getCoordsForCells'](_0x15ad3e){const _0x489501=this['editor']['plugins']['get']('TableUtils');let _0x51eac1=Number['MAX_SAFE_INTEGER'],_0x2ee75d=Number['MIN_SAFE_INTEGER'],_0x38f711=Number['MAX_SAFE_INTEGER'],_0xfec7fa=Number['MIN_SAFE_INTEGER'];for(const _0x3b1c66 of _0x15ad3e){if('$graveyard'==_0x3b1c66['root']['rootName'])continue;const {row:_0x171ce6,column:_0x47cd85}=_0x489501['getCellLocation'](_0x3b1c66),_0x454885=_0x3b1c66['hasAttribute']('rowspan')?_0x3b1c66['getAttribute']('rowspan')-0x1:0x0,_0x34b1b9=_0x3b1c66['hasAttribute']('colspan')?_0x3b1c66['getAttribute']('colspan')-0x1:0x0;_0x51eac1=_0x171ce6<_0x51eac1?_0x171ce6:_0x51eac1,_0x2ee75d=_0x171ce6+_0x454885>_0x2ee75d?_0x171ce6+_0x454885:_0x2ee75d,_0x38f711=_0x47cd85<_0x38f711?_0x47cd85:_0x38f711,_0xfec7fa=_0x47cd85+_0x34b1b9>_0xfec7fa?_0x47cd85+_0x34b1b9:_0xfec7fa;}return{'minRow':_0x51eac1,'maxRow':_0x2ee75d,'minColumn':_0x38f711,'maxColumn':_0xfec7fa};}['_setupColumnsRowsFixing'](){const _0x4dc0ca=this['editor'],_0x56f779=_0x4dc0ca['plugins']['get']('TrackChangesEditing'),_0x587b9c=_0x4dc0ca['plugins']['get']('TableUtils');_0x4dc0ca['model']['document']['on']('change:data',()=>{const _0x464a9e=Array['from'](_0x4dc0ca['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21445f,data:_0x5ba738}of _0x464a9e){const {group:_0x5a2f97,id:_0x3302d4,subType:_0x3f5a34}=_0x56f779['_splitMarkerName'](_0x21445f);if('suggestion'!=_0x5a2f97)continue;if(null!=_0x5ba738['oldRange'])continue;const _0x4d858b=_0x56f779['getSuggestion'](_0x3302d4);this['_tablePostFixingSubtypes']['includes'](_0x3f5a34)&&this['_tableSuggestions']['add'](_0x4d858b);}},{'priority':'low'});const _0x7fc957=(_0x12ead5,_0x2312c2)=>{let _0x82238c=!0x1;const _0x26cb99=_0x2312c2['createRangeOn'](_0x12ead5),_0x69c45=_0x12ead5['findAncestor']('table'),_0x5aadd4=_0x587b9c['getCellLocation'](_0x12ead5);for(const _0x4f768b of this['_tableSuggestions']){const _0x3c3623=_0x4f768b['subType'],_0x453daa=_0x3c3623['startsWith']('tablePaste'),_0x56a9e2=_0x3c3623['substr'](_0x453daa?0xa:0x5),_0x55f95d=_0x56a9e2['toLowerCase'](),_0x43ee9c=_0x55f95d['substr'](0x0,0x3)+'span',_0x5d8d0f='min'+_0x56a9e2,_0x917be8='max'+_0x56a9e2;if(!_0x4f768b['isInContent'])continue;if(_0x69c45!=_0x4f768b['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4f768b['isIntersectingWithRange'](_0x26cb99))continue;const _0x19ff17=_0x12ead5['hasAttribute'](_0x43ee9c)?_0x12ead5['getAttribute'](_0x43ee9c)-0x1:0x0,_0xd8ef78=this['_getSuggestionCoords'](_0x4f768b),_0x23d8f4=_0xd8ef78[_0x5d8d0f],_0x2ea560=_0xd8ef78[_0x917be8];_0x23d8f4<=_0x5aadd4[_0x55f95d]&&_0x5aadd4[_0x55f95d]+_0x19ff17<=_0x2ea560&&(_0x4f768b['addRange'](_0x26cb99),_0x82238c=!0x0);}return _0x82238c;};_0x4dc0ca['model']['document']['registerPostFixer'](_0x5119e0=>{let _0x307c79=!0x1;for(const _0x1b6012 of _0x4dc0ca['model']['document']['differ']['getChanges']())if('insert'==_0x1b6012['type']){if('tableRow'==_0x1b6012['name']){for(const _0x4fcd16 of _0x1b6012['position']['nodeAfter']['getChildren']())_0x307c79=_0x307c79||_0x7fc957(_0x4fcd16,_0x5119e0);}else'tableCell'==_0x1b6012['name']&&(_0x307c79=_0x307c79||_0x7fc957(_0x1b6012['position']['nodeAfter'],_0x5119e0));}return _0x307c79;});}['_getSuggestionCoords'](_0xee8856){return this['_getCoordsForCells'](_0xee8856['getRanges']()['map'](_0x272b48=>_0x272b48['start']['nodeAfter']));}}function Re(_0x39d11a){return Array['from'](new Set(_0x39d11a)['values']());}class _t extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x2420b2=this['editor'],_0x130473=_0x2420b2['model']['document']['selection'],_0x1eb3ec=_0x2420b2['locale'];if(!_0x2420b2['plugins']['has']('TableEditing'))return;const _0xe730e9=_0x2420b2['plugins']['get']('TrackChangesEditing'),_0x122f10=_0x2420b2['plugins']['get']('TableUtils'),_0x2a2929=_0x2420b2['plugins']['get'](vt);_0x2a2929['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0xe730e9['enableCommand']('mergeTableCells',()=>{const _0x3cd275=_0x122f10['getSelectionAffectedTableCells'](_0x2420b2['model']['document']['selection']);_0x2420b2['model']['change'](()=>{_0xe730e9['markMultiRangeBlockFormat'](_0x3cd275,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2420b2['commands']['get']('mergeTableCells')['on']('execute',(_0xdfbbe8,_0x158019)=>{_0x2420b2['commands']['get']('trackChanges')['value']&&(_0x158019['length']>0x0&&_0x158019[_0x158019['length']-0x1]&&_0x158019[_0x158019['length']-0x1]['forceDefaultExecution']||_0xe730e9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xdfbbe8['stop']());},{'priority':'highest'});for(const _0x10bec2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x149c06=_0x2420b2['commands']['get'](_0x10bec2);_0xe730e9['enableCommand'](_0x10bec2,()=>{const _0x57e823=_0x2420b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x145004=>_0x145004['is']('element','tableCell')),_0xea61a4=_0x149c06['value'];_0x2420b2['model']['change'](()=>{_0xe730e9['markMultiRangeBlockFormat']([_0x57e823,_0xea61a4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1270c3 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1dad86=_0x2420b2['commands']['get'](_0x1270c3);_0xe730e9['enableCommand'](_0x1270c3,()=>{const _0x2a0d9d=_0x122f10['getSelectionAffectedTableCells'](_0x2420b2['model']['document']['selection'])[0x0],_0x106ca2=_0x2a0d9d['findAncestor']('table'),{column:_0x35781a,row:_0x4e6fb6}=_0x122f10['getCellLocation'](_0x2a0d9d);let _0x4a6897=[];if('horizontally'==_0x1dad86['direction']){const _0x3ec236=_0x122f10['createTableWalker'](_0x106ca2,{'startRow':_0x4e6fb6,'endRow':_0x4e6fb6,'includeAllSlots':!0x0});_0x4a6897=Array['from'](_0x3ec236)['map'](_0x57d778=>_0x57d778['cell']);}else{const _0x2c594c=_0x122f10['createTableWalker'](_0x106ca2,{'column':_0x35781a,'includeAllSlots':!0x0});_0x4a6897=Array['from'](_0x2c594c)['map'](_0x218d74=>_0x218d74['cell']);}_0x2420b2['model']['change'](_0x455e78=>{_0xe730e9['markBlockFormat'](_0x455e78['createRangeOn'](_0x2a0d9d),{'commandName':_0x1270c3,'commandParams':[]},_0x4a6897,_0x1270c3);});});}_0xe730e9['descriptionFactory']['registerDescriptionCallback'](_0x482179=>{if('formatBlock'!=_0x482179['type']&&'formatInline'!=_0x482179['type'])return;const {data:_0x18c30d}=_0x482179;return _0x18c30d&&'mergeTableCells'==_0x18c30d['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Merge\x20cells*')}:void 0x0;}),_0xe730e9['descriptionFactory']['registerDescriptionCallback'](_0xd5f984=>{if('formatBlock'!=_0xd5f984['type']&&'formatInline'!=_0xd5f984['type'])return;const {data:_0x58794e}=_0xd5f984;return _0x58794e?'splitTableCellVertically'==_0x58794e['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x58794e['commandName']?{'type':'format','content':o(_0x1eb3ec,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x28e595=_0x2a2929['_acceptFormatSuggestionCallbackFactory']();for(const _0x1c7872 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1c7872,'accept',_0x28e595);for(const _0x4ce9fb of['splitTableCellVertically','splitTableCellHorizontally'])_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4ce9fb,'accept',_0x28e595);_0xe730e9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0xbf8f33=>{_0x2420b2['model']['change'](_0x29224b=>{const _0x2831ac=Array['from'](_0x130473['getRanges']())['map'](_0x49dc01=>_0x4daf91['fromRange'](_0x49dc01));_0x29224b['setSelection'](_0xbf8f33),_0x2420b2['commands']['get']('mergeTableCells')['refresh'](),_0x2420b2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1b2133=_0x2831ac['filter'](_0x105f07=>'$graveyard'!=_0x105f07['root']['rootName']);_0x1b2133['length']>0x0&&_0x29224b['setSelection'](_0x1b2133);for(const _0x3dc96a of _0x2831ac)_0x3dc96a['detach']();});});for(const _0x18bdd3 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x26862a=_0x2420b2['commands']['get'](_0x18bdd3);_0x26862a['on']('set:isEnabled',(_0x4d6934,_0x2fdfbb,_0x3adb6c)=>{if(_0x3adb6c){const _0x130244=_0x2420b2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xfdb84f=>_0xfdb84f['is']('element','tableCell'));this['_areMergableCells'](_0x26862a['value'],_0x130244)||(_0x4d6934['return']=!0x1,_0x4d6934['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xcb4497=this['editor']['commands']['get']('mergeTableCells'),_0x4c24cd=this['editor']['plugins']['get']('TableUtils');if(!_0xcb4497['isEnabled'])return!0x1;const _0x1df6cd=_0x4c24cd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5d6ecc of _0x1df6cd)for(const _0x56b7ce of _0x1df6cd)if(_0x5d6ecc!=_0x56b7ce&&!this['_areMergableCells'](_0x5d6ecc,_0x56b7ce))return!0x1;return!0x0;}['_areMergableCells'](_0x186b25,_0x1562d7){const _0x536ba1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe201d7=this['editor']['model']['createRangeOn'](_0x186b25),_0x609f1b=this['editor']['model']['createRangeOn'](_0x1562d7),_0x356a1b=new Set(),_0x20ed89=new Set();for(const _0x597b15 of _0x536ba1['getSuggestions']())if(('insertion'==_0x597b15['type']||'deletion'==_0x597b15['type']||'mergeTableCells'==_0x597b15['subType'])&&_0x597b15['isInContent']){for(const _0x3a9a36 of _0x597b15['getRanges']())_0x3a9a36['containsRange'](_0xe201d7,!0x0)&&_0x356a1b['add'](_0x597b15['type']+':'+_0x597b15['author']['id']),_0x3a9a36['containsRange'](_0x609f1b,!0x0)&&_0x20ed89['add'](_0x597b15['type']+':'+_0x597b15['author']['id']);}if(_0x356a1b['size']!=_0x20ed89['size'])return!0x1;for(const _0x2b5d4e of _0x356a1b)if(!_0x20ed89['has'](_0x2b5d4e))return!0x1;return!0x0;}}class Ct extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x4755bb=this['editor'];if(!_0x4755bb['plugins']['has']('TableEditing'))return;const _0x21d517=_0x4755bb['locale'],_0x3b30da=_0x4755bb['plugins']['get']('TrackChangesEditing');_0x3b30da['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3b30da['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3b30da['registerBlockAttribute']('headingRows'),_0x3b30da['registerBlockAttribute']('headingColumns'),_0x3b30da['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x21d517,'FORMAT_HEADER_ROW')),_0x3b30da['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x21d517,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x24f8aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc6ec=this['editor']['plugins']['get']('TableUtils'),_0x91b75a=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x49f2fc({showActiveMarker:_0x2ffa82=!0x0,setDataAttribute:_0x5c43d9=!0x0}={}){return(_0x52ca4a,_0x32332c,_0x452fac)=>{const {type:_0x1cfd10,id:_0x26effc}=_0x24f8aa['_splitMarkerName'](_0x32332c['markerName']),_0x5ef14a=_0x24f8aa['getSuggestion'](_0x26effc),_0x531298=_0x5ef14a['data'];if('formatBlock'!=_0x5ef14a['type']||!_0x531298||'setTableColumnHeader'!=_0x531298['commandName'])return;if(_0x32332c['item'])return void _0x52ca4a['stop']();if(!_0x452fac['consumable']['consume'](_0x32332c['markerRange'],_0x52ca4a['name']))return;const _0xed9801=_0x32332c['markerRange']['start']['nodeAfter'],_0x1eae35=_0x32332c['markerRange']['end']['nodeBefore'],_0x27ff22=_0xed9801['parent']['parent'],{column:_0x113f2b}=_0x2cc6ec['getCellLocation'](_0xed9801),{column:_0x399288}=_0x2cc6ec['getCellLocation'](_0x1eae35);for(let _0x5b54ae=_0x113f2b;_0x5b54ae<=_0x399288;_0x5b54ae++){const _0xe5a29c=_0x2cc6ec['createTableWalker'](_0x27ff22,{'column':_0x5b54ae,'includeAllSlots':!0x1});for(const _0x5cc6c4 of _0xe5a29c){const _0x1c74c5=_0x5cc6c4['cell'],_0x754f61=_0x452fac['mapper']['toViewElement'](_0x1c74c5);_0x452fac['writer']['addClass']('ck-suggestion-marker-'+_0x1cfd10,_0x754f61),_0x5c43d9&&_0x452fac['writer']['setAttribute']('data-suggestion',_0x26effc,_0x754f61),_0x452fac['mapper']['bindElementToMarker'](_0x754f61,_0x32332c['markerName']),_0x2ffa82&&(_0x24f8aa['activeMarkers']['includes'](_0x32332c['markerName'])?_0x452fac['writer']['addClass']('ck-suggestion-marker--active',_0x754f61):_0x452fac['writer']['removeClass']('ck-suggestion-marker--active',_0x754f61));}}};}_0x24f8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x91b75a),_0x24f8aa['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x91b75a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x49f2fc(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35756d,_0x3296d2,_0x153b64)=>{_0x153b64['options']['showSuggestionHighlights']&&_0x49f2fc({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x35756d,_0x3296d2,_0x153b64);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5d4915,_0xad2446,_0x12e4e9)=>{const {type:_0xf403ed,id:_0xef9ee8}=_0x24f8aa['_splitMarkerName'](_0xad2446['markerName']),_0x5d2b53=_0x24f8aa['getSuggestion'](_0xef9ee8),_0x3f230e=_0x5d2b53['data'];if('formatBlock'!=_0x5d2b53['type']||!_0x3f230e||'setTableColumnHeader'!=_0x3f230e['commandName'])return;const _0x51fafd=_0x12e4e9['mapper']['markerNameToElements'](_0xad2446['markerName']);if(_0x51fafd){for(const _0x340c38 of _0x51fafd)_0x12e4e9['writer']['removeClass']('ck-suggestion-marker-'+_0xf403ed,_0x340c38),_0x12e4e9['writer']['removeClass']('ck-suggestion-marker--active',_0x340c38),_0x12e4e9['writer']['removeAttribute']('data-suggestion',_0x340c38),_0x12e4e9['mapper']['unbindElementFromMarkerName'](_0x340c38,_0xad2446['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cc32b=this['editor'],_0xc3f713=_0x4cc32b['locale'];function _0x15733b(_0x515c6c){return{'type':'format','content':o(_0xc3f713,'*Format:*\x20%0',_0x515c6c)};}_0x4cc32b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41cfe0=>{if('formatBlock'!=_0x41cfe0['type'])return;const {data:_0x2ceee8}=_0x41cfe0;if(_0x2ceee8){if('setTableRowHeader'==_0x2ceee8['commandName']){const _0x55bc75=_0x2ceee8['commandParams'][0x0]['forceValue'];return _0x15733b(o(_0xc3f713,_0x55bc75?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x2ceee8['commandName']){const _0x47c091=_0x2ceee8['commandParams'][0x0]['forceValue'];return _0x15733b(o(_0xc3f713,_0x47c091?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x111e51=>[_0x111e51,null]));class Nt extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x4652ef=this['editor'];if(!_0x4652ef['plugins']['has']('TableClipboard'))return;const _0x3f0c50=_0x4652ef['plugins']['get']('TrackChangesEditing'),_0x15df27=_0x4652ef['plugins']['get']('TableUtils'),_0x2146d1=_0x4652ef['plugins']['get'](vt),_0x356747=_0x4652ef['plugins']['get']('TableClipboard');_0x2146d1['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4652ef['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4652ef['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x39b1f9=null;_0x4652ef['model']['on']('insertContent',(_0x5b030c,_0x11add0)=>{const [_0x17a953,_0x268c85]=_0x11add0,_0x451e01=_0x11add0[_0x11add0['length']-0x1];_0x451e01&&_0x451e01['forceDefaultExecution']||_0x3f0c50['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7267ab,_0x58069a,_0x5f07e3,_0x4bc04d,_0x392772){if(_0x58069a&&!_0x58069a['is']('documentSelection'))return!0x1;const _0x5af314=_0x392772['getTableIfOnlyTableInContent'](_0x7267ab,_0x5f07e3);if(!_0x5af314||!Ae(_0x5af314,void 0x0,_0x4bc04d))return!0x1;const _0x5a09d1=_0x4bc04d['getSelectionAffectedTableCells'](_0x5f07e3['document']['selection']);if(!_0x5a09d1['length'])return!0x1;const _0x4c03b3=_0x5a09d1[0x0]['findAncestor']('table'),_0x43ad12=_0x4bc04d['getRowIndexes'](_0x5a09d1),_0x4637ea=_0x4bc04d['getColumnIndexes'](_0x5a09d1),_0x5f1701={'startRow':_0x43ad12['first'],'endRow':_0x43ad12['last'],'startColumn':_0x4637ea['first'],'endColumn':_0x4637ea['last']};return 0x1==_0x5a09d1['length']&&(_0x5f1701['endRow']+=_0x4bc04d['getRows'](_0x5af314)-0x1,_0x5f1701['endColumn']+=_0x4bc04d['getColumns'](_0x5af314)-0x1),Ae(_0x4c03b3,_0x5f1701,_0x4bc04d);}(_0x17a953,_0x268c85,_0x4652ef['model'],_0x15df27,_0x356747)&&(_0x5b030c['stop'](),_0x39b1f9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4652ef['model']['change'](()=>{_0x4652ef['model']['insertContent'](_0x11add0[0x0],_0x11add0[0x1],_0x11add0[0x2],{'forceDefaultExecution':!0x0});const _0x43e854=_0x205078(),{rowInsertionRanges:_0x45909c,columnInsertionRanges:_0x477065,insertionRanges:_0x7ce68d,deletionRanges:_0xb64303,cells:_0x2cf942}=_0x39b1f9;_0x45909c['length']&&_0x3f0c50['markMultiRangeInsertion'](_0x45909c,'tablePasteRow',{'tablePasteChainId':_0x43e854}),_0x477065['length']&&_0x3f0c50['markMultiRangeInsertion'](_0x477065,'tablePasteColumn',{'tablePasteChainId':_0x43e854}),_0x7ce68d['length']&&(_0x3f0c50['markMultiRangeInsertion'](_0x7ce68d,'tablePaste',{'tablePasteChainId':_0x43e854,'skipNestingCheck':!0x0}),_0x7ce68d['forEach'](_0x1fba9b=>_0x1fba9b['detach']?.())),_0xb64303['length']&&(_0x3f0c50['markMultiRangeDeletion'](_0xb64303,'tablePaste',{'tablePasteChainId':_0x43e854,'skipNestingCheck':!0x0}),_0xb64303['forEach'](_0x30a256=>_0x30a256['detach']?.()));const _0x6b0525=_0x3f0c50['markMultiRangeBlockFormat'](_0x2cf942['map'](({element:_0x30b8e4})=>_0x30b8e4),{'formatGroupId':_0x205078()},[],'tablePasteCell',{'tablePasteChainId':_0x43e854});if(_0x6b0525){const _0xd47fb3=_0x6b0525['getMarkers'](),_0x5d8b51=[];for(const {element:_0x2416e5,attributes:_0x308b34}of _0x2cf942){if(!_0x308b34)continue;const _0x3b4cb8=_0x4652ef['model']['createRangeOn'](_0x2416e5),_0x53d888=_0xd47fb3['find'](_0x55cfc3=>_0x55cfc3['getRange']()['isEqual'](_0x3b4cb8));_0x53d888&&_0x5d8b51['push']([_0x53d888['name'],_0x308b34]);}_0x5d8b51['length']&&_0x6b0525['setAttribute']('markerAttributes',Object['fromEntries'](_0x5d8b51));}_0x39b1f9=null;}));},{'priority':_0x494c20['high']+0xa}),_0x4652ef['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x55b874,_0x50950d)=>{const [_0x51b649,_0x846973,,_0x3226e3]=_0x50950d;if(!_0x39b1f9)return;_0x55b874['stop']();const _0x4ff766=_0x51b649['cell'],_0x1c5040=_0x846973,_0x3b315f=je(_0x4ff766),_0x4620c0=je(_0x1c5040);_0x55b874['return']=_0x4ff766;let _0x23cbbd=null,_0x2d5a68=null;if(_0x4620c0||_0x3b315f){if(_0x3b315f&&!_0x4620c0){_0x3226e3['remove'](_0x4ff766['getChild'](0x0));for(const _0x42c158 of Array['from'](_0x1c5040['getChildren']()))_0x3226e3['insert'](_0x42c158,_0x4ff766,'end');const _0x4a747a=_0x39b1f9['rowInsertionIndexes']['includes'](_0x51b649['row']),_0x2f9e4c=_0x39b1f9['columnInsertionIndexes']['includes'](_0x51b649['column']);_0x4a747a||_0x2f9e4c||(_0x23cbbd=_0x4daf91['fromRange'](_0x3226e3['createRangeIn'](_0x4ff766)));}else _0x4620c0&&!_0x3b315f&&(_0x2d5a68=_0x3226e3['createRangeIn'](_0x4ff766));}else{const _0x1747c8=_0x3226e3['createElement']('tableCellSuggestion'),_0x14bbc0=_0x3226e3['createElement']('tableCellSuggestion');_0x3226e3['wrap'](_0x3226e3['createRangeIn'](_0x4ff766),_0x14bbc0),_0x3226e3['insert'](_0x1747c8,_0x4ff766,0x0);for(const _0x36267f of Array['from'](_0x1c5040['getChildren']()))_0x3226e3['insert'](_0x36267f,_0x1747c8,'end');_0x23cbbd=_0x4daf91['fromRange'](_0x3226e3['createRangeOn'](_0x1747c8)),_0x2d5a68=_0x4daf91['fromRange'](_0x3226e3['createRangeOn'](_0x14bbc0));}const _0x2fe0b6=Array['from'](_0x1c5040['getAttributes']())['filter'](([_0x163ecf])=>we['includes'](_0x163ecf));_0x39b1f9['cells']['push']({'element':_0x4ff766,'attributes':_0x2fe0b6['length']?Object['fromEntries'](_0x2fe0b6):null}),_0x23cbbd&&_0x39b1f9['insertionRanges']['push'](_0x23cbbd),_0x2d5a68&&_0x39b1f9['deletionRanges']['push'](_0x2d5a68);},{'priority':'high'}),_0x15df27['on']('insertColumns',(_0x5d9cdc,_0x289fe0)=>{const [_0x51b863,_0x33935a={}]=_0x289fe0;if(!_0x39b1f9)return;const _0x5e1773=_0x33935a['at']||0x0,_0x3c583c=_0x33935a['columns']||0x1;_0x39b1f9['columnInsertionIndexes']=new Array(_0x3c583c)['fill'](_0x5e1773)['map']((_0x4f121d,_0x21c068)=>_0x4f121d+_0x21c068);for(const {cell:_0x2ba424}of _0x15df27['createTableWalker'](_0x51b863,{'startColumn':_0x5e1773,'endColumn':_0x5e1773+_0x3c583c-0x1}))_0x39b1f9['columnInsertionRanges']['push'](_0x4652ef['model']['createRangeOn'](_0x2ba424));},{'priority':'low'}),_0x15df27['on']('insertRows',(_0x1d02be,_0x1661f9)=>{const [_0x1a6cd3,_0x2b5947={}]=_0x1661f9;if(!_0x39b1f9)return;const _0x4ac53b=_0x2b5947['at']||0x0,_0x19a2ef=_0x2b5947['rows']||0x1;_0x39b1f9['rowInsertionIndexes']=new Array(_0x19a2ef)['fill'](_0x4ac53b)['map']((_0x563bb6,_0x1109ce)=>_0x563bb6+_0x1109ce);for(const {cell:_0x5728f3}of _0x15df27['createTableWalker'](_0x1a6cd3,{'startRow':_0x4ac53b,'endRow':_0x4ac53b+_0x19a2ef-0x1}))_0x39b1f9['rowInsertionRanges']['push'](_0x4652ef['model']['createRangeOn'](_0x5728f3));},{'priority':'low'}),_0x3f0c50['descriptionFactory']['registerDescriptionCallback'](_0x4d7428=>{if(_0x4d7428['subType']&&_0x4d7428['subType']['startsWith']('tablePaste'))return _0x4d7428['previous']?{}:{'type':'insertion','content':o(_0x4652ef['locale'],'*Replace\x20table\x20cells*')};});const _0x27b470=()=>!0x1;for(const _0x508839 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion',_0x508839,'join',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('deletion',_0x508839,'join',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x508839,'join',_0x27b470);_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x27b470),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f38f,_0x4a76b8,_0x438f24)=>{const _0x1912aa=_0x48f38f['map'](_0x40d3e4=>_0x40d3e4['getContainedElement']())['filter'](_0x759d9e=>_0x759d9e),_0x5364c1=new Map(_0x1912aa['map'](_0x44696b=>[_0x44696b,null]));if(_0x39b1f9){for(const {element:_0x2614ae,attributes:_0x109f2f}of _0x39b1f9['cells'])_0x109f2f&&_0x5364c1['set'](_0x2614ae,_0x109f2f);}else{if(_0x438f24&&_0x438f24['markerAttributes'])for(const [_0x4651ab,_0x1c7811]of Object['entries'](_0x438f24['markerAttributes'])){const _0x585d28=_0x4652ef['model']['markers']['get'](_0x4651ab),_0x150d01=_0x585d28?_0x585d28['getRange']()['getContainedElement']():null;_0x150d01&&_0x5364c1['set'](_0x150d01,_0x1c7811);}}_0x4652ef['model']['change'](_0x1fc4cf=>{for(const [_0x15d6b2,_0x48ab12]of _0x5364c1)_0x1fc4cf['setAttributes']({...ve,..._0x48ab12},_0x15d6b2);});});const _0x23f808=(_0x3721e6,_0x4dc028)=>{_0x3f0c50['_suggestionFactory']['registerCustomCallback'](_0x3721e6,'tablePaste',_0x4dc028,(_0x4d1694,_0x410c7d,_0xf2f52)=>{_0x4652ef['model']['change'](_0x54068a=>{const _0x2f13ae=[];for(const _0x5a933e of _0x4d1694){const _0x48e90b=_0x5a933e['start']['nodeAfter'];_0x48e90b['is']('element','tableCellSuggestion')&&_0x2f13ae['push'](_0x48e90b);}_0x3f0c50['_suggestionFactory']['getSuggestionCallback'](_0x3721e6,null,_0x4dc028)(_0x4d1694,_0x410c7d,_0xf2f52);for(const _0x28838e of _0x2f13ae)'$graveyard'!=_0x28838e['root']['rootName']&&_0x54068a['unwrap'](_0x28838e);});});};_0x23f808('insertion','accept'),_0x23f808('insertion','discard'),_0x23f808('deletion','accept'),_0x23f808('deletion','discard'),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1ec916=>{const _0x4ea4af=_0x1ec916['map'](_0x35efd1=>_0x35efd1['getContainedElement']()),_0x2eda3f=_0x4ea4af[0x0]['findAncestor']('table'),{minRow:_0x282d70,maxRow:_0x45ca35}=_0x2146d1['_getCoordsForCells'](_0x4ea4af);_0x15df27['removeRows'](_0x2eda3f,{'at':_0x282d70,'rows':_0x45ca35-_0x282d70+0x1});}),_0x3f0c50['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x52344f=>{const _0x25fad9=_0x52344f['map'](_0x48201f=>_0x48201f['getContainedElement']()),_0x3a28a0=_0x25fad9[0x0]['findAncestor']('table'),{minColumn:_0x35e61b,maxColumn:_0x52d0fa}=_0x2146d1['_getCoordsForCells'](_0x25fad9);_0x15df27['removeColumns'](_0x3a28a0,{'at':_0x35e61b,'columns':_0x52d0fa-_0x35e61b+0x1});});const _0x3cf11a=(_0x4cc545,_0x1120b5)=>{if(!_0x1120b5['subType']||!_0x1120b5['subType']['startsWith']('tablePaste'))return;const _0x440563=_0x1120b5['attributes']['tablePasteChainId'],_0x5265b2=_0x3f0c50['getSuggestions']()['filter'](_0x19e169=>_0x19e169['isInContent']&&_0x19e169['attributes']&&_0x19e169['attributes']['tablePasteChainId']==_0x440563);_0x5265b2['length']&&_0x1120b5['getAllAdjacentSuggestions']()['length']!=_0x5265b2['length']&&_0x5265b2['reduce']((_0x57ff2c,_0x327ec8)=>(_0x57ff2c['next']=_0x327ec8,_0x327ec8['previous']=_0x57ff2c,_0x327ec8));};function _0x5aacab(_0xd478c9,_0x3d2305=!0x0){const {id:_0x331b5e,authorId:_0x14c783}=_0x3f0c50['_splitMarkerName'](_0xd478c9['markerName']),_0x41bd85=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3795b0=_0x3f0c50['activeMarkers']['includes'](_0xd478c9['markerName']);return _0x3795b0&&_0x41bd85['push']('ck-suggestion-marker--active'),{'classes':_0x41bd85,'attributes':{'data-suggestion':_0x331b5e,'data-author-id':_0x14c783},'priority':_0x3795b0&&_0x3d2305?0xbc2:0xbb8};}_0x3f0c50['on']('suggestionLoaded',_0x3cf11a,{'priority':'high'}),_0x3f0c50['on']('suggestionUnloaded',_0x3cf11a,{'priority':'high'}),_0x4652ef['model']['document']['registerPostFixer'](()=>{let _0x3d6857=!0x1;const _0x241670=Array['from'](_0x4652ef['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x400234,data:_0x4a9508}of _0x241670){const {group:_0x4c15c1,type:_0x17724c,id:_0x587d0b}=_0x3f0c50['_splitMarkerName'](_0x400234);if('suggestion'!=_0x4c15c1||'deletion'!=_0x17724c||_0x4a9508['oldRange'])continue;if(!_0x3f0c50['hasSuggestion'](_0x587d0b))continue;const _0x4d2b5b=_0x3f0c50['getSuggestion'](_0x587d0b)['getRanges'](),_0x457254=_0x4652ef['plugins']['get']('Users')['me'];for(const _0x41a209 of _0x3f0c50['getSuggestions']()){if(!_0x41a209['isInContent']||_0x41a209['author']!=_0x457254)continue;if('formatBlock'!=_0x41a209['type']||'tablePasteCell'!=_0x41a209['subType'])continue;if(_0x41a209['getRanges']()['every'](_0x533f6d=>_0x4d2b5b['some'](_0x1c6d24=>_0x1c6d24['containsRange'](_0x533f6d,!0x0)))){for(const _0x28547f of _0x41a209['getAllAdjacentSuggestions']())_0x28547f['isInContent']&&(_0x28547f['discard'](),_0x3d6857=!0x0);}}}return _0x3d6857;}),_0x4652ef['model']['document']['registerPostFixer'](_0x1a5c36=>{const _0x4ed99f=_0x4652ef['commands']['get']('redo');if(!_0x4ed99f||!_0x4ed99f['_createdBatches']['has'](_0x1a5c36['batch']))return!0x1;let _0xb8d245=!0x1;const _0x267dda=_0x4652ef['plugins']['get']('Users')['me'],_0x588a1f=_0x4652ef['model']['document']['differ']['getChanges'](),_0x3f00e0=Array['from'](_0x4652ef['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x24b0ba,data:_0x14c0d3})=>{const {group:_0x5f63e2,subType:_0x438672,authorId:_0x4644cb}=_0x3f0c50['_splitMarkerName'](_0x24b0ba);return'suggestion'==_0x5f63e2&&'tablePaste'==_0x438672&&_0x4644cb==_0x267dda['id']&&!_0x14c0d3['oldRange'];});for(const _0x468f37 of _0x588a1f){if('insert'!=_0x468f37['type']||'tableCellSuggestion'!=_0x468f37['name']||0x1!=_0x468f37['length'])continue;const _0x255f7e=_0x1a5c36['createRange'](_0x468f37['position'],_0x468f37['position']['getShiftedBy'](0x1));if(!_0x3f00e0['find'](({data:_0x3736b4})=>_0x3736b4['newRange']['isEqual'](_0x255f7e))){for(const {name:_0x5b9b47,data:_0x4a2442}of _0x3f00e0)if(_0x255f7e['containsRange'](_0x4a2442['newRange'])){_0x1a5c36['updateMarker'](_0x5b9b47,{'range':_0x255f7e}),_0xb8d245=!0x0;break;}}}return _0xb8d245;}),_0x4652ef['model']['document']['registerPostFixer'](_0x1ce828=>{let _0x36da3a=!0x1;const _0x4748fa=_0x4652ef['plugins']['get']('Users')['me'],_0x4ecca5=_0x3f0c50['getSuggestions']()['filter'](_0x5c1583=>_0x5c1583['isInContent']&&_0x5c1583['author']==_0x4748fa),_0x48f0e0=new Set(),_0x72d88e=new Set();for(const _0x1f7db0 of _0x4ecca5)if('tablePaste'==_0x1f7db0['subType'])for(const _0x1b8c00 of _0x1f7db0['getMarkers']()){const _0x425003=_0x1b8c00['getRange']()['getContainedElement']();if(_0x425003){if(_0x425003['is']('element','tableCellSuggestion')&&je(_0x425003)){_0x1f7db0['removeMarker'](_0x1b8c00['name']),_0x48f0e0['add'](_0x425003),_0x36da3a=!0x0;const _0x3d5590=_0x425003['nextSibling'],_0x6b4dc=_0x425003['previousSibling'],_0x229994=_0x3d5590&&_0x3d5590['is']('element','tableCellSuggestion'),_0x4332e1=_0x6b4dc&&_0x6b4dc['is']('element','tableCellSuggestion');_0x229994&&!_0x48f0e0['has'](_0x3d5590)&&_0x72d88e['add'](_0x3d5590),_0x4332e1&&!_0x48f0e0['has'](_0x6b4dc)&&_0x72d88e['add'](_0x6b4dc);}else _0x425003['is']('element','paragraph')&&_0x425003['isEmpty']&&(_0x1f7db0['removeMarker'](_0x1b8c00['name']),_0x36da3a=!0x0);}}else{if('tablePasteCell'==_0x1f7db0['subType']){if(!_0x1f7db0['attributes']||!_0x1f7db0['attributes']['tablePasteChainId'])continue;const _0x5d0e79=_0x1f7db0['attributes']['markerAttributes'];if(_0x5d0e79&&Object['keys'](_0x5d0e79)['length'])continue;const _0x2905db=_0x1f7db0['attributes']['tablePasteChainId'];let _0x2e131d=!0x0,_0x2fd2ed=!0x0;for(const _0xf57add of _0x4ecca5)if(_0xf57add['subType']&&_0xf57add['subType']['startsWith']('tablePaste')){if(!_0xf57add['attributes']['tablePasteChainId']){_0x2fd2ed=!0x1;break;}if(_0xf57add['id']!=_0x1f7db0['id']&&_0xf57add['attributes']['tablePasteChainId']==_0x2905db){_0x2e131d=!0x1;break;}}_0x2fd2ed&&_0x2e131d&&(_0x1f7db0['removeMarkers'](),_0x36da3a=!0x0);}}for(const _0x2f1a07 of _0x48f0e0)_0x1ce828['remove'](_0x2f1a07);for(const _0x508f6f of _0x72d88e)_0x1ce828['unwrap'](_0x508f6f);return _0x36da3a;}),_0x4652ef['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x50bd65=>_0x5aacab(_0x50bd65),'converterPriority':'high'}),_0x4652ef['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x50f079,_0x443440)=>_0x443440['options']['showSuggestionHighlights']?_0x5aacab(_0x50f079,!0x1):null,'converterPriority':'high'});const _0x5cab6f=_0x4652ef['editing']['view'];this['listenTo'](_0x5cab6f['document'],'clipboardOutput',(_0x1d9012,_0x26cefd)=>{const _0xe6c9f3=[];for(const _0x462257 of _0x5cab6f['createRangeIn'](_0x26cefd['content'])['getItems']())_0x462257['is']('element','suggestion-td')&&_0xe6c9f3['push'](_0x462257);_0x5cab6f['change'](_0x571fec=>{for(const _0x5d129a of _0xe6c9f3)_0x571fec['move'](_0x571fec['createRangeIn'](_0x5d129a),_0x571fec['createPositionBefore'](_0x5d129a)),_0x571fec['remove'](_0x5d129a);});});}}function je(_0x590e2f){if(_0x590e2f['isEmpty'])return!0x0;const _0x468775=_0x590e2f['getChild'](0x0);return _0x468775['is']('element','paragraph')&&_0x468775['isEmpty'];}function Ae(_0x2a4f3d,_0x24e477={},_0x51ae92){for(const {isAnchor:_0x325239,cellHeight:_0xdebce3,cellWidth:_0x3e943a}of _0x51ae92['createTableWalker'](_0x2a4f3d,{'includeAllSlots':!0x0,..._0x24e477}))if(!_0x325239||0x1!=_0xdebce3||0x1!=_0x3e943a)return!0x1;return!0x0;}class Dt extends _0x4a8caa{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2f6bc3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f6bc3['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2f6bc3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2f6bc3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f6bc3['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2f6bc3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2f6bc3['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x43c096,_0x294521){const _0x20af9c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3be1e6=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3de907=_0x294521['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x22f307=_0x3be1e6['getColumnGroupElement'](_0x3de907);let _0x57211c=_0x22f307?_0x3be1e6['getTableColumnsWidths'](_0x22f307):null,_0x120c6c=_0x3de907['getAttribute']('tableWidth')||null;const _0x4797b6=_0x294521['tableWidth']||_0x120c6c,_0x25e548=_0x294521['columnWidths']||_0x57211c,_0x336323=this['editor']['plugins']['get']('Users')['me'];for(const _0x8c6673 of _0x20af9c['getSuggestions']()){const _0x34d310=_0x8c6673['getContainedElement']();if('resizeTable'===_0x8c6673['subType']&&_0x34d310===_0x3de907){_0x8c6673['author']!==_0x336323&&_0x8c6673['discard']();const _0x5d4217=_0x8c6673['data']['commandParams'];_0x120c6c=_0x5d4217[0x0]['tableWidth'],_0x57211c=_0x5d4217[0x0]['columnWidths'];break;}}_0x43c096({'table':_0x3de907,'tableWidth':_0x4797b6,'columnWidths':_0x25e548}),_0x20af9c['markBlockFormat'](_0x3de907,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x120c6c,'columnWidths':_0x57211c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x41719c){if('formatBlock'!=_0x41719c['type']&&'formatInline'!=_0x41719c['type'])return;const {data:_0x2368d0}=_0x41719c;if(_0x2368d0&&'resizeTable'===_0x2368d0['formatGroupId']){const _0x4046a5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4046a5)};}}}class Mt extends _0x4a8caa{['afterInit'](){const _0x1600a9=this['editor'];_0x1600a9['plugins']['has']('Template')&&_0x1600a9['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x4a8caa{['afterInit'](){const _0x5f126b=this['editor'];if(!_0x5f126b['commands']['get']('insertTableOfContents'))return;_0x5f126b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x42ea8d=_0x5f126b['plugins']['get']('TrackChangesEditing'),_0x20f940=_0x5f126b['locale'];_0x42ea8d['descriptionFactory']['registerElementLabel']('tableOfContents',_0x52b786=>o(_0x20f940,'ELEMENT_TABLE_OF_CONTENTS',_0x52b786));}}class Bt extends _0x4a8caa{['afterInit'](){const _0x1b4649=this['editor'];if(!_0x1b4649['plugins']['has']('Title'))return;const _0x1a813b=_0x1b4649['plugins']['get']('TrackChangesEditing');_0x1a813b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1b4649['locale'],'ELEMENT_TITLE')),_0x1b4649['model']['document']['registerPostFixer'](_0x50a14b=>{let _0x259ee5=!0x1;const _0x3d1e8b=Array['from'](_0x1b4649['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x141ae8,data:_0x143b43}of _0x3d1e8b){const {group:_0x563dd3}=_0x1a813b['_splitMarkerName'](_0x141ae8);if('suggestion'!==_0x563dd3||!_0x143b43['newRange'])continue;const _0x1d7973=_0x143b43['newRange'],_0x2720ef=_0x1d7973['end']['nodeBefore'];if(!_0x2720ef||!_0x2720ef['is']('element','title-content'))continue;if(!_0x1d7973['start']['isTouching'](_0x1d7973['end']))continue;const _0x507a8d=_0x1b4649['model']['schema']['getNearestSelectionRange'](_0x1d7973['end'],'forward');if(_0x507a8d&&_0x507a8d['isCollapsed']){const _0x1f3528=_0x50a14b['createRange'](_0x1d7973['start'],_0x507a8d['start']);_0x1f3528['isEqual'](_0x1d7973)||(_0x50a14b['updateMarker'](_0x141ae8,{'range':_0x1f3528}),_0x259ee5=!0x0);}_0x259ee5||(_0x50a14b['removeMarker'](_0x141ae8),_0x259ee5=!0x0);}return _0x259ee5;});}}class Ot extends _0x4a8caa{['afterInit'](){const _0x5a954f=this['editor'],_0xc83e99=_0x5a954f['plugins']['get']('TrackChangesEditing');_0x5a954f['plugins']['has']('UndoEditing')&&(_0xc83e99['enableCommand']('undo'),_0xc83e99['enableCommand']('redo'));}}class Rt extends _0x4a8caa{static get['requires'](){return[vt];}['afterInit'](){const _0x57af87=this['editor'];if(!_0x57af87['plugins']['has']('TableCaptionEditing'))return;_0x57af87['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x4a8caa{['tableProperties'];['tableCellProperties'];constructor(_0x4d96ef){super(_0x4d96ef),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 _0x25ea82=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d3ccc of this['tableProperties'])_0x25ea82['enableCommand'](_0x1d3ccc,(_0x5a3d74,_0x240a41)=>{const _0x56e6d6=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d3ccc,[_0x56e6d6],this['tableProperties'],'tableProperties',_0x5a3d74,_0x240a41);});_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x25ea82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b6627,_0xb5fc6a)=>this['handleDiscardAction'](this['tableProperties'],_0x2b6627,_0xb5fc6a)),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3bf736 of this['tableCellProperties'])_0x25ea82['enableCommand'](_0x3bf736,(_0x3ecbd2,_0x15768f)=>{const _0x3dcb6c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3bf736,_0x3dcb6c,this['tableCellProperties'],'tableCellProperties',_0x3ecbd2,_0x15768f);});_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x25ea82['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x33cb03,_0x44b169)=>this['handleDiscardAction'](this['tableCellProperties'],_0x33cb03,_0x44b169)),_0x25ea82['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x25ea82['descriptionFactory']['registerDescriptionCallback'](_0x564416=>this['handleSuggestionDescription'](_0x564416));}['_handlePropertyChange'](_0x4e608c,_0x4e5969,_0x356b5b,_0x5c2757,_0x2b6089,_0x2f8de3){const _0x52ce20=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2f8de3['batch'],()=>{for(const _0x48af29 of _0x4e5969){if(this['_getSuggestion'](_0x48af29,_0x5c2757))_0x2b6089(_0x2f8de3);else{const _0x3b4263={};for(const _0x2b6138 of _0x356b5b){const _0x3d7c90=_0x48af29['getAttribute'](_0x2b6138);void 0x0!==_0x3d7c90&&(_0x3b4263[_0x2b6138]=_0x3d7c90);}_0x2b6089(_0x2f8de3),_0x52ce20['markBlockFormat'](_0x48af29,{'commandParams':[_0x3b4263]},[],_0x5c2757);}}});}['handleDiscardAction'](_0x455aba,_0x34177c,_0x9eff7b){const _0x230631=_0x34177c[0x0]['start']['nodeAfter'],_0x555116=_0x9eff7b['commandParams'][0x0];this['editor']['model']['change'](_0x4a0534=>{for(const _0x5490b8 of _0x455aba)void 0x0!==_0x555116[_0x5490b8]?_0x4a0534['setAttribute'](_0x5490b8,_0x555116[_0x5490b8],_0x230631):_0x4a0534['removeAttribute'](_0x5490b8,_0x230631);});}['handleSuggestionDescription'](_0x48f32b){if(_0x48f32b['data'])switch(_0x48f32b['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'](_0x1180f6,_0x1716ef){const _0x927d12=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x308d9c of _0x927d12['getSuggestions']({'skipNotAttached':!0x0})){const _0x1171f8=_0x308d9c['getContainedElement']();if(_0x308d9c['subType']===_0x1716ef&&_0x1171f8===_0x1180f6)return _0x308d9c;}return null;}}const m='$elementName';class p extends _0x4a8caa{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x117a29,_0x270b6b,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,ye,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Rt,Nt,Dt,$t,Tt,Mt,Bt,Ot];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5337b7){super(_0x5337b7),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x48a684,_0x4004bd,_0x16799a,_0x532045)=>{this['_model']['change'](()=>{for(const _0x15c230 of[..._0x532045,..._0x16799a])this['_model']['markers']['has'](_0x15c230)&&_0x5337b7['editing']['reconvertMarker'](_0x15c230);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5337b7['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(),_0x5337b7['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5337b7['config']['get']('trackChanges.trackFormatChanges'),_0x5337b7['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5337b7['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x5337b7,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xc26c50=this['editor'],_0x4d4b39=(_0xd1a32f,_0x5a7ba8)=>{if('attribute'!=_0xd1a32f)return'ck-suggestion-marker-'+_0xd1a32f;const _0x166b62=_0x5a7ba8['split']('|')[0x0];return this['_isBlockAttribute'](_0x166b62)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xc26c50['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x202e06=>{const {id:_0x51c6a7,authorId:_0x402713,type:_0x21c5b4,subType:_0x28797e}=this['_splitMarkerName'](_0x202e06['markerName']),_0x599a68=['ck-suggestion-marker',_0x4d4b39(_0x21c5b4,_0x28797e)];let _0x20e747=0xbb8;return this['activeMarkers']['includes'](_0x202e06['markerName'])&&(_0x599a68['push']('ck-suggestion-marker--active'),_0x20e747=0xbc2),'deletion'==_0x21c5b4&&(_0x20e747+=0x5),{'classes':_0x599a68,'attributes':{'data-suggestion':_0x51c6a7,'data-author-id':_0x402713},'priority':_0x20e747};}}),_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x16a019=>{_0x16a019['on']('addMarker:suggestion',(_0x1e58a9,_0x4f209b,_0xf7e3c7)=>{if(!_0xf7e3c7['options']['showSuggestionHighlights'])return;const _0x3197f0=_0x4f209b['item'];if(!_0x3197f0)return;const _0x1a8db0=_0xf7e3c7['mapper']['toViewElement'](_0x3197f0);_0xc26c50['model']['schema']['isObject'](_0x3197f0)&&_0x1a8db0&&!_0x1a8db0['getCustomProperty']('widget')&&_0x1a8db0['is']('containerElement')&&_0x5d3d60(_0x1a8db0,_0xf7e3c7['writer']);},{'priority':'high'});}),_0xc26c50['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2cf0dd,_0x588b00)=>{if(!_0x588b00['options']['showSuggestionHighlights'])return null;const {type:_0x1dec6f,subType:_0x35c6fe}=this['_splitMarkerName'](_0x2cf0dd['markerName']);return{'classes':['ck-suggestion-marker',_0x4d4b39(_0x1dec6f,_0x35c6fe)],'priority':0xbb8};}});const _0x238f9e=({showActiveMarkers:_0x268edc=!0x0,isAttributeSuggestion:_0x1e314b=!0x1}={})=>(_0x8b162d,_0xf84672,_0x3fab72)=>{if(!_0xf84672['item'])return;const {id:_0x349e3c,authorId:_0x22c5fb}=this['_splitMarkerName'](_0xf84672['markerName']);if(_0x1e314b){const _0x3140f3=this['_suggestions']['get'](_0x349e3c),_0x489b9d=this['_getAttributeKey'](_0x3140f3);if(!this['_isBlockAttribute'](_0x489b9d))return;}if(_0xf84672['item']['is']('selection'))return void _0x3fab72['consumable']['consume'](_0xf84672['item'],_0x8b162d['name']);const _0x1319c6=_0x3fab72['mapper']['toViewElement'](_0xf84672['item']);if(_0xf84672['item']['is']('element')&&_0xc26c50['model']['schema']['isBlock'](_0xf84672['item'])&&!_0x1319c6['getCustomProperty']('addHighlight')){_0x3fab72['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1319c6),_0x3fab72['writer']['setAttribute']('data-suggestion',_0x349e3c,_0x1319c6),_0x3fab72['writer']['setAttribute']('data-author-id',_0x22c5fb,_0x1319c6),_0x3fab72['mapper']['bindElementToMarker'](_0x1319c6,_0xf84672['markerName']),_0x268edc&&(this['activeMarkers']['includes'](_0xf84672['markerName'])?_0x3fab72['writer']['addClass']('ck-suggestion-marker--active',_0x1319c6):_0x3fab72['writer']['removeClass']('ck-suggestion-marker--active',_0x1319c6));for(const _0x1be813 of _0xc26c50['model']['createRangeIn'](_0xf84672['item'])['getItems']())_0x3fab72['consumable']['consume'](_0x1be813,_0x8b162d['name']);_0x3fab72['consumable']['consume'](_0xf84672['item'],_0x8b162d['name']);}};_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x3ebb4a=>{_0x3ebb4a['on']('addMarker:suggestion:formatBlock',(_0x36bf4c,_0x51d77d,_0x2281e6)=>{_0x2281e6['options']['showSuggestionHighlights']&&_0x238f9e({'showActiveMarkers':!0x1})(_0x36bf4c,_0x51d77d,_0x2281e6);},{'priority':'highest'});}),_0xc26c50['conversion']['for']('dataDowncast')['add'](_0x15f4a7=>{_0x15f4a7['on']('addMarker:suggestion:attribute',(_0x4096f4,_0x33caa8,_0x51c125)=>{_0x51c125['options']['showSuggestionHighlights']&&_0x238f9e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4096f4,_0x33caa8,_0x51c125);},{'priority':'highest'});}),_0xc26c50['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x227f46,_0x30d7e6)=>_0x30d7e6['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x227f46['substr'](0xb)}}),_0xc26c50['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x450a4b,{writer:_0x149c66})=>{let _0x2dcd1d='suggestion:'+_0x450a4b['getAttribute']('suggestion-type')+':'+_0x450a4b['getAttribute']('id');return _0x450a4b['getAttribute']('marker-count')&&(_0x2dcd1d+=':'+_0x450a4b['getAttribute']('marker-count')),_0x149c66['createElement']('$marker',{'data-name':_0x2dcd1d});}}),_0xc26c50['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x13c4c7=>{_0x13c4c7['on']('addMarker:suggestion:formatBlock',_0x238f9e(),{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x9f94da=>{_0x9f94da['on']('addMarker:suggestion:attribute',_0x238f9e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x584985=>{_0x584985['on']('removeMarker:suggestion:formatBlock',(_0xc6aff2,_0x35323b,_0x223041)=>{const _0x1b0f64=_0x223041['mapper']['markerNameToElements'](_0x35323b['markerName']);if(_0x1b0f64){for(const _0x452fc5 of _0x1b0f64)_0x452fc5['getCustomProperty']('addHighlight')||(_0x223041['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x452fc5),_0x223041['writer']['removeAttribute']('data-suggestion',_0x452fc5),_0x223041['writer']['removeAttribute']('data-author-id',_0x452fc5),_0x223041['mapper']['unbindElementFromMarkerName'](_0x452fc5,_0x35323b['markerName']));}},{'priority':'high'});}),_0xc26c50['conversion']['for']('editingDowncast')['add'](_0x2ca4e4=>{_0x2ca4e4['on']('removeMarker:suggestion:attribute',(_0x232b41,_0x4b6a45,_0x2e4fee)=>{const _0x432845=_0x2e4fee['mapper']['markerNameToElements'](_0x4b6a45['markerName']);if(!_0x432845)return;const {id:_0xe9df40}=this['_splitMarkerName'](_0x4b6a45['markerName']),_0x483459=this['_suggestions']['get'](_0xe9df40),_0xb0fd68=this['_getAttributeKey'](_0x483459);if(this['_isBlockAttribute'](_0xb0fd68)){for(const _0x48001f of _0x432845)_0x48001f['getCustomProperty']('addHighlight')||(_0x2e4fee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x48001f),_0x2e4fee['writer']['removeAttribute']('data-suggestion',_0x48001f),_0x2e4fee['writer']['removeAttribute']('data-author-id',_0x48001f),_0x2e4fee['mapper']['unbindElementFromMarkerName'](_0x48001f,_0x4b6a45['markerName']));}},{'priority':'high'});}),_0xc26c50['model']['document']['registerPostFixer'](_0x2fb151=>{let _0x35ec50=!0x1;const _0x451314=Array['from'](_0xc26c50['model']['document']['differ']['getChangedMarkers']()),_0x932025=new Set();for(const {name:_0x1c80e8,data:_0x5bbdd0}of _0x451314){const {group:_0x3ce49e,type:_0x206913,subType:_0x3ec0ca,id:_0x1b9443}=this['_splitMarkerName'](_0x1c80e8);if('suggestion'!==_0x3ce49e)continue;const _0x20ca59=this['_suggestions']['get'](_0x1b9443);if(null!=_0x5bbdd0['newRange']){'formatInline'==_0x206913&&(_0x35ec50=_0x35ec50||Pt(_0x5bbdd0['newRange'],_0x1c80e8,_0x2fb151,_0xc26c50['model']['schema']));const _0xcd2842='attribute'==_0x206913&&this['_isBlockAttribute'](_0x3ec0ca['split']('|')[0x0]);if(_0x5bbdd0['newRange']['isCollapsed']||'$graveyard'==_0x5bbdd0['newRange']['root']['rootName']||'formatBlock'==_0x206913&&!Ft(_0x5bbdd0['newRange'])||_0xcd2842&&!Ft(_0x5bbdd0['newRange'])||'deletion'==_0x206913&&!(!Vt(_0x111da8=_0x5bbdd0['newRange'])&&!function(_0x2ac774){return _0x2ac774['start']['parent']==_0x2ac774['end']['nodeBefore']&&_0x2ac774['start']['isAtEnd'];}(_0x111da8)))_0x2fb151['removeMarker'](_0x1c80e8),_0x35ec50=!0x0;else{if(!_0x20ca59||!_0x20ca59['isInContent'])continue;if(_0x5bbdd0['newRange']&&_0x5bbdd0['oldRange']&&_0x5bbdd0['newRange']['isEqual'](_0x5bbdd0['oldRange']))continue;_0x932025['add'](_0x20ca59);}}}var _0x111da8;return _0x932025['size']>0x0&&(_0x35ec50=!!this['_joinWithAdjacentSuggestions'](_0x932025)||_0x35ec50),_0x35ec50;}),_0xc26c50['model']['document']['registerPostFixer'](_0xc06ea9=>{let _0x251a0d=!0x1;for(const _0x14fb4 of _0xc26c50['model']['document']['differ']['getChanges']())if('insert'==_0x14fb4['type'])for(const _0x1548fa of this['_suggestions']['values']()){if(_0x1548fa['isMultiRange']||!_0x1548fa['isInContent'])continue;const _0x55718b='formatBlock'==_0x1548fa['type'],_0x557b88=this['_getAttributeKey'](_0x1548fa),_0x2c3f28=_0x557b88&&this['_isBlockAttribute'](_0x557b88);if(!_0x55718b&&!_0x2c3f28)continue;const _0x4f8059=_0x1548fa['getFirstRange']();if(_0x4f8059['start']['parent']!=_0x4f8059['end']['parent']&&!_0x4f8059['end']['isAtEnd']){const _0xce6063=_0xc26c50['model']['createPositionAt'](_0x4f8059['start']['nodeAfter'],'end'),_0x5d9f3d=_0xc26c50['model']['createRange'](_0x4f8059['start'],_0xce6063);_0xc06ea9['updateMarker'](_0x1548fa['getFirstMarker'](),{'range':_0x5d9f3d}),_0x251a0d=!0x0;}}return _0x251a0d;}),_0xc26c50['model']['document']['registerPostFixer'](_0x1356f3=>this['_processAttributeChanges'](_0x1356f3)),_0xc26c50['model']['document']['registerPostFixer'](_0x4d3bc3=>!_0x4d3bc3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4d3bc3)),_0xc26c50['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xc26c50['model']['document']['on']('change:data',(_0x60d9f,_0x3f7bdd)=>{if(!_0x3f7bdd['isLocal']||_0x3f7bdd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x123161=_0xc26c50['model']['document']['differ']['getChanges']();if(0x0==_0x123161['length'])return;const _0x34156c=[],_0x258d88=_0x123161['filter'](_0x394926=>'attribute'==_0x394926['type']),_0x115fea=_0x123161['filter'](_0x555904=>'insert'==_0x555904['type']&&'$text'!=_0x555904['name']);for(const _0x2ad435 of _0x258d88)this['_isRegisteredAttribute'](_0x2ad435['attributeKey'])&&_0x34156c['push']({'key':_0x2ad435['attributeKey'],'newValue':_0x2ad435['attributeNewValue'],'oldValue':_0x2ad435['attributeOldValue'],'range':Lt(_0x2ad435['range'],_0xc26c50['model'])});for(const _0x55394e of _0x115fea){if('rename'!=_0x55394e['action']&&'refresh'!=_0x55394e['action'])continue;const _0x37fae7=Jt(_0x55394e['position']['nodeAfter'],_0xc26c50['model']),_0x1b6dd4=_0x55394e['before'];'rename'==_0x55394e['action']&&_0x34156c['push']({'key':m,'newValue':_0x55394e['name'],'oldValue':_0x1b6dd4['name'],'range':_0x37fae7});for(const [_0x58d6e4,_0x41bb5f]of _0x1b6dd4['attributes']){if(!this['_isRegisteredAttribute'](_0x58d6e4))continue;const _0x5c3f14=_0x55394e['attributes']['get'](_0x58d6e4);_0x41bb5f!==_0x5c3f14&&_0x34156c['push']({'key':_0x58d6e4,'newValue':_0x5c3f14,'oldValue':_0x41bb5f,'range':_0x37fae7});}for(const [_0x534bb7,_0x2067a0]of _0x55394e['attributes'])this['_isRegisteredAttribute'](_0x534bb7)&&(_0x1b6dd4['attributes']['has'](_0x534bb7)||_0x34156c['push']({'key':_0x534bb7,'newValue':_0x2067a0,'oldValue':null,'range':_0x37fae7}));}0x0!=_0x34156c['length']&&_0xc26c50['model']['enqueueChange'](_0x3f7bdd,_0x18798c=>{const _0x5e34c2=_0x205078();for(const {range:_0x31e1d3,key:_0x1697b9,oldValue:_0xbbf9cb,newValue:_0x4625d7}of _0x34156c)this['markAttributeChange'](_0x31e1d3,_0x1697b9,_0xbbf9cb,_0x4625d7,{'groupId':_0x5e34c2});this['_reduceExistingSuggestions'](_0x18798c,_0x34156c);});},{'priority':'lowest'}),_0xc26c50['model']['markers']['on']('update:suggestion',(_0x1c89e3,_0x102e5a,_0x309618)=>{if(null==_0x309618){const {id:_0x538eab}=this['_splitMarkerName'](_0x102e5a['name']),_0x3a2908=this['_suggestions']['get'](_0x538eab);_0x3a2908&&_0x3a2908['addMarkerName'](_0x102e5a['name']);}}),_0xc26c50['model']['document']['on']('change:data',()=>{const _0x538a01=Array['from'](_0xc26c50['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd1e873=>'suggestion'===this['_splitMarkerName'](_0xd1e873['name'])['group']);if(0x0===_0x538a01['length'])return;_0x538a01['sort']((_0x3480eb,_0x194aad)=>{const _0x4e9872=_0x3480eb['data']['oldRange'],_0xf43652=_0x194aad['data']['oldRange'];return null===_0x4e9872&&null===_0xf43652?0x0:null===_0x4e9872&&null!==_0xf43652?-0x1:null!==_0x4e9872&&null===_0xf43652?0x1:_0x4e9872['start']['isBefore'](_0xf43652['start'])?-0x1:0x1;});const _0x456670=new Set(),_0x40293b=new Set();for(const {name:_0x4e75bf,data:_0x34861f}of _0x538a01){const {id:_0x354b24}=this['_splitMarkerName'](_0x4e75bf);if(null===_0x34861f['oldRange']){const _0x92e356=this['_handleNewSuggestionMarker'](_0x4e75bf);_0x40293b['add'](_0x92e356);}else{const _0x4705c4=this['_suggestions']['get'](_0x354b24);null!==_0x34861f['newRange']||_0x4705c4['isInContent']?(_0x456670['add'](_0x4705c4['head']),_0x40293b['add'](_0x4705c4)):this['_removeSuggestion'](_0x4705c4);}}_0x40293b['size']>0x0&&this['_refreshSuggestionsChain'](_0x40293b);for(const _0x3bbdba of _0x456670)this['fire']('suggestionChanged',_0x3bbdba);}),_0xc26c50['model']['on']('applyOperation',(_0x201465,_0x5249dc)=>{const _0x1a451b=_0x5249dc[0x0];if(!this['_suggestions']['size'])return;if(!_0x1a451b['isDocumentOperation'])return;if(_0x1a451b['batch']['isUndo']||!_0x1a451b['batch']['isLocal'])return;let _0x5b03f2,_0x5d36b8;switch(_0x1a451b['type']){case'insert':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['position']),_0x5d36b8=_0x5b03f2['getShiftedBy'](_0x1a451b['howMany']);break;case'split':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['splitPosition']),_0x5d36b8=_0xc26c50['model']['createPositionAt'](_0x1a451b['moveTargetPosition']);break;case'move':_0x5b03f2=_0xc26c50['model']['createPositionAt'](_0x1a451b['targetPosition']),_0x5d36b8=_0x5b03f2['getShiftedBy'](_0x1a451b['howMany']);break;default:return;}const _0x98ada2=_0xc26c50['model']['createRange'](_0x5b03f2,_0x5d36b8);_0xc26c50['model']['change'](()=>{for(const {suggestion:_0x1ba40f,meta:_0x4ce22c}of this['_findSuggestions'](_0x98ada2)){if(_0x1ba40f['isMultiRange'])continue;if('formatInline'==_0x1ba40f['type'])continue;const _0x574d67=this['_getAttributeKey'](_0x1ba40f);if(_0x574d67&&this['_isBlockAttribute'](_0x574d67)&&'split'!=_0x1a451b['type'])continue;const _0x124248=_0x1ba40f['data']&&_0x1ba40f['data']['multipleBlocks'];('formatBlock'!=_0x1ba40f['type']||'split'==_0x1a451b['type']&&!_0x124248)&&(_0x4ce22c['containsRangeInObject']||'insertion'==_0x1ba40f['type']&&_0x4ce22c['isOwn']||_0x1ba40f['getFirstRange']()['containsRange'](_0x98ada2)&&this['_breakSuggestionMarker'](_0x1ba40f,_0x5b03f2,_0x5d36b8));}});},{'priority':'lowest'}),_0xc26c50['model']['on']('deleteContent',(_0x35d17b,_0x25bc08)=>{const _0x285f23=_0x25bc08[0x0],_0x1207dc=_0x25bc08[0x1];if(_0x1207dc&&_0x1207dc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x285f23['isCollapsed'])return;const _0x269386=_0xc26c50['model']['schema'],{start:_0xf5267b,end:_0x450615}=_0x285f23['getFirstRange'](),_0x229d29=_0xf5267b['nodeAfter']&&_0x269386['isLimit'](_0xf5267b['nodeAfter'])?null:_0x269386['getNearestSelectionRange'](_0xf5267b,'forward'),_0x260946=_0x450615['nodeBefore']&&_0x269386['isLimit'](_0x450615['nodeBefore'])?null:_0x269386['getNearestSelectionRange'](_0x450615,'backward'),_0x2ca340=_0xc26c50['model']['createRange'](_0x229d29?_0x229d29['start']:_0xf5267b,_0x260946?_0x260946['end']:_0x450615);_0xc26c50['model']['change'](_0x4b893f=>{this['markDeletion'](_0x2ca340);const _0x2976e8=_0xc26c50['model']['schema']['getNearestSelectionRange'](_0x2ca340['start']);_0x285f23['is']('documentSelection')?_0x4b893f['setSelection'](_0x2976e8):_0x285f23['setTo'](_0x2976e8);}),_0x35d17b['stop']();},{'priority':_0x494c20['normal']+0xa}),_0xc26c50['model']['on']('insertContent',(_0x1d689c,_0x5ce900)=>{const _0x2ae88=_0x5ce900[_0x5ce900['length']-0x1];_0x2ae88&&_0x2ae88['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xc26c50['model']['change'](()=>{let _0x252547=_0xc26c50['model']['insertContent'](_0x5ce900[0x0],_0x5ce900[0x1],_0x5ce900[0x2],{'forceDefaultExecution':!0x0});if(!_0x252547)return;_0x1d689c['return']=_0x252547['clone']();const _0xc84a1f=_0x252547['end']['nodeBefore'],_0x39d2f2=_0xc26c50['model']['schema'];_0xc84a1f&&_0x39d2f2['isBlock'](_0xc84a1f)&&!_0x39d2f2['isObject'](_0xc84a1f)&&(_0x252547=_0xc26c50['model']['createRange'](_0x252547['start'],_0xc26c50['model']['createPositionAt'](_0xc84a1f,'end'))),this['markInsertion'](_0x252547);}),_0x1d689c['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x53d4aa=new O(_0xc26c50,this['_suggestions']);_0xc26c50['commands']['add']('acceptSuggestion',_0x53d4aa),this['enableCommand']('acceptSuggestion');const _0x110cec=new R(_0xc26c50,this['_suggestions']);_0xc26c50['commands']['add']('discardSuggestion',_0x110cec),this['enableCommand']('discardSuggestion'),_0xc26c50['commands']['add']('acceptAllSuggestions',new x(_0xc26c50,_0x53d4aa,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xc26c50['commands']['add']('discardAllSuggestions',new x(_0xc26c50,_0x110cec,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xc26c50['commands']['add']('acceptSelectedSuggestions',new E(_0xc26c50,_0x53d4aa,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xc26c50['commands']['add']('discardSelectedSuggestions',new E(_0xc26c50,_0x110cec,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4bd04c=_0xc26c50['plugins']['get']('CommentsRepository');this['listenTo'](_0x4bd04c,'addComment',(_0x346a61,{threadId:_0x5a0cd7})=>{const _0x1ff33a=this['_suggestions']['get'](_0x5a0cd7);_0x1ff33a&&_0x1ff33a['commentThread']&&0x1===_0x1ff33a['commentThread']['length']&&this['_updateSuggestionData'](_0x5a0cd7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4bd04c,'removeComment',(_0x59a595,{threadId:_0x5499ef})=>{const _0x3e5d70=this['_suggestions']['get'](_0x5499ef);_0x3e5d70&&_0x3e5d70['commentThread']&&!_0x3e5d70['commentThread']['length']&&this['_updateSuggestionData'](_0x5499ef,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x59ab22){const _0x1475f2=_0x406341([0x52,0x73,0x30,0x64,0x4a,0x44,0x45,0x5a,0x61,0x53,0x62,0x63,0x6e,0x79,0x4c,0x7a,0x58,0x51,0x42,0x46,0x59,0x65,0x72,0x4b,0x39,0x57,0x78,0x77,0x6c,0x33,0x74,0x71,0x41,0x56,0x75,0x6d,0x31,0x32,0x37,0x35,0x43,0x48,0x67,0x4f,0x4d,0x6f,0x49,0x6a,0x55,0x36,0x4e,0x70,0x50,0x47,0x66,0x76,0x38,0x34,0x69,0x6b,0x54,0x68]),_0x4d0de8=0x3ff99fd2,_0x15b1b6=0x3ffec7c2^_0x4d0de8,_0x197c50=window[_0x406341([0x44,0x61,0x74,0x65])][_0x406341([0x6e,0x6f,0x77])](),_0x3c75ff=_0x59ab22[_0x406341([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x30bc64=new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c906b=>{_0x3c75ff[_0x406341([0x6f,0x6e,0x63,0x65])](_0x406341([0x72,0x65,0x61,0x64,0x79]),_0x1c906b);}),_0x8b1715={[_0x406341([0x6b,0x74,0x79])]:_0x406341([0x45,0x43]),[_0x406341([0x75,0x73,0x65])]:_0x406341([0x73,0x69,0x67]),[_0x406341([0x63,0x72,0x76])]:_0x406341([0x50,0x2d,0x32,0x35,0x36]),[_0x406341([0x78])]:_0x406341([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]),[_0x406341([0x79])]:_0x406341([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]),[_0x406341([0x61,0x6c,0x67])]:_0x406341([0x45,0x53,0x32,0x35,0x36])},_0x2b6a20=_0x3c75ff[_0x406341([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x406341([0x67,0x65,0x74])](_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x49bff6(){let _0x4c3f2d,_0x459efe=null,_0x1e2191=null;try{if(_0x2b6a20==_0x406341([0x47,0x50,0x4c]))return _0x406341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4c3f2d=_0x3a15e3(),!_0x4c3f2d)return _0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4c3f2d[_0x406341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e2191=_0x5339ed(_0x4c3f2d[_0x406341([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4c3f2d[_0x406341([0x6a,0x74,0x69])])),await _0x624560()?_0xd05603()?_0x49fdff()?_0x406341([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x340d23()?(_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x459efe=_0x5a4f75(_0x406341([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x74,0x72,0x69,0x61,0x6c])&&(_0x459efe=_0x5a4f75(_0x406341([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x406341([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x459efe=_0x5a4f75(_0x406341([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50dfc0()):_0x406341([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x406341([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3d8c9d){return _0x406341([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49fdff(){const _0x3e8e17=[_0x406341([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x406341([0x74,0x72,0x69,0x61,0x6c])][_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x197c50/0x3e8:0xe10*_0x15b1b6;return _0x4c3f2d[_0x406341([0x65,0x78,0x70])]<_0x3e8e17;}function _0xd05603(){const _0x2ddec8=_0x4c3f2d[_0x406341([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ddec8&&(!!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x2a]))||(!!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x54,0x43]))||!(!_0x2ddec8[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x52,0x54,0x43]))||!_0x2688bb())));}function _0x340d23(){const _0x136b56=_0x4c3f2d[_0x406341([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x136b56||0x0==_0x136b56[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x413bd6}=new URL(window[_0x406341([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x136b56[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x413bd6))return!0x0;const _0x31dbb8=_0x413bd6[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e]));return _0x136b56[_0x406341([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4ffbcb=>_0x4ffbcb[_0x406341([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x406341([0x2a])))[_0x406341([0x6d,0x61,0x70])](_0x10be6d=>_0x10be6d[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e])))[_0x406341([0x73,0x6f,0x6d,0x65])](_0x3ef570=>_0x31dbb8[_0x406341([0x65,0x76,0x65,0x72,0x79])]((_0x27765c,_0x122da9)=>_0x3ef570[_0x122da9]===_0x27765c||_0x3ef570[_0x122da9]===_0x406341([0x2a])));}function _0x50dfc0(){return _0x459efe&&_0x1e2191?new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5de49d,_0x2b486e)=>{_0x459efe[_0x406341([0x74,0x68,0x65,0x6e])](_0x5de49d,_0x2b486e),_0x1e2191[_0x406341([0x74,0x68,0x65,0x6e])](_0x1eaa1b=>{_0x1eaa1b!=_0x406341([0x56,0x61,0x6c,0x69,0x64])&&_0x5de49d(_0x1eaa1b);},_0x2b486e);}):_0x459efe||_0x1e2191||_0x406341([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5339ed(_0x302d98,_0x129b2c){return new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48906b=>{if(_0x535a93())return _0x48906b(_0x406341([0x56,0x61,0x6c,0x69,0x64]));_0x201d95(),_0x3c75ff[_0x406341([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d623e=!0x1;const _0x43dedf=_0x205078();function _0x55e0bd(_0x5a85ab){return!!_0x5a85ab&&(typeof _0x5a85ab===_0x406341([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a85ab===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a85ab[_0x406341([0x74,0x68,0x65,0x6e])]===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a85ab[_0x406341([0x63,0x61,0x74,0x63,0x68])]===_0x406341([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x51e414(_0x87eba5){_0xadcd8b(_0x87eba5)[_0x406341([0x74,0x68,0x65,0x6e])](_0x33adb5=>{if(!_0x33adb5||_0x33adb5[_0x406341([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x406341([0x6f,0x6b]))return _0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3af7b1(_0xfe6fbc(_0x43dedf+_0x129b2c))!=_0x33adb5[_0x406341([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x406341([0x56,0x61,0x6c,0x69,0x64]);})[_0x406341([0x74,0x68,0x65,0x6e])](_0xdf224e=>(_0x1e2245(),_0xdf224e),()=>{const _0x10d8ed=_0x1bf75b();return null==_0x10d8ed?(_0x1e2245(),_0x406341([0x56,0x61,0x6c,0x69,0x64])):_0x406341(_0x197c50-_0x10d8ed>(0x1bf51bd2^_0x4d0de8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x406341([0x74,0x68,0x65,0x6e])](_0x48906b)[_0x406341([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xb6f4b2=0x3fcf7152^_0x4d0de8;function _0x1e2245(){const _0x32f7c3=_0x406341([0x6c,0x6c,0x63,0x74,0x2d])+_0x3af7b1(_0xfe6fbc(_0x302d98)),_0x3c6129=_0x3148e7(_0x3af7b1(window[_0x406341([0x4d,0x61,0x74,0x68])][_0x406341([0x63,0x65,0x69,0x6c])](_0x197c50/_0xb6f4b2)));window[_0x406341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406341([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32f7c3,_0x3c6129);}function _0x1bf75b(){const _0x55218f=_0x406341([0x6c,0x6c,0x63,0x74,0x2d])+_0x3af7b1(_0xfe6fbc(_0x302d98)),_0x497ddc=window[_0x406341([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x406341([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55218f);return _0x497ddc?window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3148e7(_0x497ddc),0x10)*_0xb6f4b2:null;}function _0xadcd8b(_0x1bdc55){return new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31054c,_0x135b25)=>{_0x1bdc55[_0x406341([0x74,0x68,0x65,0x6e])](_0x31054c,_0x135b25),window[_0x406341([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x135b25,0x3ff84b12^_0x4d0de8);});}}_0x3c75ff[_0x406341([0x6f,0x6e])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x32fc95,_0x153481)=>{if(_0x153481[0x0]!=_0x302d98)return _0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x153481[0x1]={..._0x153481[0x1],[_0x406341([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x43dedf};},{[_0x406341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406341([0x68,0x69,0x67,0x68])}),_0x3c75ff[_0x406341([0x6f,0x6e])](_0x406341([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x28d5a0=>{_0x55e0bd(_0x28d5a0[_0x406341([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d623e=!0x0,_0x51e414(_0x28d5a0[_0x406341([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x406341([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x406341([0x6c,0x6f,0x77])}),_0x30bc64[_0x406341([0x74,0x68,0x65,0x6e])](()=>{_0x4d623e||_0x48906b(_0x406341([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x535a93(){return _0x3c75ff[_0x406341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406341([0x76,0x69,0x65,0x77])][_0x406341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x406341([0x61,0x75,0x74,0x6f]);}function _0x201d95(){_0x3c75ff[_0x406341([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x406341([0x76,0x69,0x65,0x77])][_0x406341([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x406341([0x61,0x75,0x74,0x6f]);}}function _0x5a4f75(_0x1da2dc){const _0x5e1111=[new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1403af=>setTimeout(_0x1403af,0x3ff0a11e^_0x4d0de8)),_0x30bc64[_0x406341([0x74,0x68,0x65,0x6e])](()=>new window[(_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b1c95=>{let _0xd54537=0x0;_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x6f,0x6e])](_0x406341([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x28f5ad,_0x4959c8)=>{_0x4959c8[0x0][_0x406341([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd54537++,_0xd54537==(0x3ff99e2a^_0x4d0de8)&&(_0x4b1c95(),_0x28f5ad[_0x406341([0x6f,0x66,0x66])]());});}))];return window[_0x406341([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x406341([0x72,0x61,0x63,0x65])](_0x5e1111)[_0x406341([0x74,0x68,0x65,0x6e])](()=>_0x1da2dc);}async function _0x37723a(){await _0x30bc64,_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e894,_0x3c75ff[_0x406341([0x6d,0x6f,0x64,0x65,0x6c])][_0x406341([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e894,_0x3c75ff[_0x406341([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x406341([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2688bb(){return _0x1c69e2(_0x406341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2f6271(_0x406341([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x406341([0x73,0x74,0x61,0x74,0x65])]==_0x406341([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xf83e8e(_0x3512e9){const _0x59ac9d=_0xbf6691();_0x3c75ff[_0x59ac9d]=_0x406341([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3512e9,_0x3512e9!=_0x406341([0x56,0x61,0x6c,0x69,0x64])&&_0x37723a();}function _0xbf6691(){const _0x215fd8=window[_0x406341([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x406341([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x406341([0x6e,0x6f,0x77])]())[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x406341([0x2e]),'');let _0x8290f0=_0x406341([0x52]);for(let _0x3faaf8=0x0;_0x3faaf8<_0x215fd8[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3faaf8+=0x2){let _0x4f0701=window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x215fd8[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3faaf8,_0x3faaf8+0x2));_0x4f0701>=_0x1475f2[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4f0701-=_0x1475f2[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8290f0+=_0x1475f2[_0x4f0701];}return _0x8290f0;}function _0x3a15e3(){const _0x529569=_0x2b6a20[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e]));if(0x3!=_0x529569[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x36258f(_0x529569[0x1]);function _0x36258f(_0x3b080e){const _0x3efa08=_0xabbf1d(_0x3b080e);return _0x3efa08&&_0x2b1583()?_0x3efa08:null;function _0x2b1583(){const _0x1f1fd7=_0x3efa08[_0x406341([0x6a,0x74,0x69])],_0x25c9f6=window[_0x406341([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f1fd7[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f1fd7[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x21c4db={..._0x3efa08,[_0x406341([0x6a,0x74,0x69])]:_0x1f1fd7[_0x406341([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1f1fd7[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x21c4db[_0x406341([0x76,0x63])],_0xfe6fbc(_0x21c4db)==_0x25c9f6;}}}async function _0x624560(){let _0x53dc7d=!0x0;try{const _0x303b7c=_0x2b6a20[_0x406341([0x73,0x70,0x6c,0x69,0x74])](_0x406341([0x2e])),[_0x491055,_0x39d39c,_0x4e8e47]=_0x303b7c;return _0x311df0(_0x491055),await _0x553b9d(_0x491055,_0x39d39c,_0x4e8e47),_0x53dc7d;}catch(_0x514cf8){return!0x1;}function _0x311df0(_0x4d13ee){const _0x5b3e40=_0xabbf1d(_0x4d13ee);_0x5b3e40&&_0x5b3e40[_0x406341([0x61,0x6c,0x67])]==_0x406341([0x45,0x53,0x32,0x35,0x36])||(_0x53dc7d=!0x1);}async function _0x553b9d(_0x14d075,_0x392db1,_0x5e5d96){const _0x2cf89f=window[_0x406341([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x406341([0x66,0x72,0x6f,0x6d])](_0x12a1a7(_0x5e5d96),_0x2e060c=>_0x2e060c[_0x406341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1388a9=new window[(_0x406341([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x406341([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x14d075+_0x406341([0x2e])+_0x392db1),_0x318ed0=window[_0x406341([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x406341([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x318ed0)return;const _0x35e474=await _0x318ed0[_0x406341([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x406341([0x6a,0x77,0x6b]),_0x8b1715,{[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x45,0x43,0x44,0x53,0x41]),[_0x406341([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x406341([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x406341([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x318ed0[_0x406341([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x45,0x43,0x44,0x53,0x41]),[_0x406341([0x68,0x61,0x73,0x68])]:{[_0x406341([0x6e,0x61,0x6d,0x65])]:_0x406341([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x35e474,_0x2cf89f,_0x1388a9)||(_0x53dc7d=!0x1);}}function _0xabbf1d(_0x4175cb){return _0x4175cb[_0x406341([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x406341([0x65,0x79]))?JSON[_0x406341([0x70,0x61,0x72,0x73,0x65])](_0x12a1a7(_0x4175cb)):null;}function _0x12a1a7(_0x1da3d1){return window[_0x406341([0x61,0x74,0x6f,0x62])](_0x1da3d1[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x406341([0x2b]))[_0x406341([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x406341([0x2f])));}function _0xfe6fbc(_0x1c8c2a){let _0xd15f48=0x1505;function _0x15338c(_0x404a63){for(let _0xe9f540=0x0;_0xe9f540<_0x404a63[_0x406341([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xe9f540++){const _0x3bf076=_0x404a63[_0x406341([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xe9f540);_0xd15f48=(_0xd15f48<<0x5)+_0xd15f48+_0x3bf076,_0xd15f48&=_0xd15f48;}}function _0x5a21bf(_0x266082){Array[_0x406341([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x266082)?_0x266082[_0x406341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5a21bf):_0x266082&&typeof _0x266082==_0x406341([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x406341([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x266082)[_0x406341([0x73,0x6f,0x72,0x74])]()[_0x406341([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3824fe,_0x4530fe])=>{_0x15338c(_0x3824fe),_0x5a21bf(_0x4530fe);}):_0x15338c(window[_0x406341([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x266082));}return _0x5a21bf(_0x1c8c2a),_0xd15f48>>>0x0;}function _0x3af7b1(_0x4ab6af){return _0x4ab6af[_0x406341([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x406341([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x406341([0x30]));}function _0x3148e7(_0x231b1d){return _0x231b1d[_0x406341([0x73,0x70,0x6c,0x69,0x74])]('')[_0x406341([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x406341([0x6a,0x6f,0x69,0x6e])]('');}function _0x1c69e2(_0x152bc7){return _0x3c75ff[_0x406341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x406341([0x68,0x61,0x73])](_0x152bc7);}function _0x2f6271(_0x39ba2e){return _0x3c75ff[_0x406341([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x406341([0x67,0x65,0x74])](_0x39ba2e);}function _0x5e894(){}function _0x406341(_0x126b06){return _0x126b06['map'](_0x559bab=>String['fromCharCode'](_0x559bab))['join']('');}_0xf83e8e(await _0x49bff6());}(this);}set['adapter'](_0x5f2720){if(this['_adapter'])throw new _0x562698('track-changes-adapter-already-set',this);this['_adapter']=_0x5f2720;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4d11d3=!0x1,toJSON:_0x57180b=!0x1}={}){const _0x108645=[];for(const _0xb86612 of this['_suggestions']['values']())_0x4d11d3&&!_0xb86612['isInContent']||_0x108645['push'](_0xb86612);return _0x57180b?_0x108645['map'](_0x3317f2=>_0x3317f2['toJSON']()):_0x108645;}['getSuggestion'](_0x3d0e00){const _0x1c358a=this['_suggestions']['get'](_0x3d0e00);if(!_0x1c358a)throw new _0x562698('track-changes-suggestion-not-found',this);return _0x1c358a;}['hasSuggestion'](_0x351d15){return this['_suggestions']['has'](_0x351d15);}['addSuggestionData'](_0x1b99cd){const {authorId:_0x497c5f,id:_0x5c75cf,attributes:_0x4969f0}=_0x1b99cd,[_0x357316,_0x226022]=_0x1b99cd['type']['split'](':'),_0x2650ee=this['_suggestions']['get'](_0x5c75cf)||this['_createSuggestion'](_0x357316,_0x226022,_0x5c75cf,_0x497c5f,_0x4969f0);if(this['_addThreadToSuggestion'](_0x2650ee),this['_checkSuggestionCorrectness'](_0x2650ee,_0x357316,_0x226022||null,_0x497c5f),_0x2650ee['createdAt']=_0x1b99cd['createdAt'],_0x2650ee['_isDataLoaded']=!0x0,_0x4969f0&&_0x4969f0['@external']){const _0x3df1ec=_0x4969f0['@external'],_0x2e11a0=this['_getExternalAuthor'](_0x3df1ec['authorName']);_0x2650ee['authoredAt']=_0x3df1ec['createdAt'],_0x2650ee['author']=_0x2e11a0,_0x2650ee['isExternal']=!0x0;}else _0x2650ee['authoredAt']=_0x1b99cd['createdAt'];switch(_0x1b99cd['data']&&(_0x2650ee['data']=_0x1b99cd['data']),_0x1b99cd['attributes']&&(_0x2650ee['attributes']=_0x1b99cd['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x2650ee['_saved']=!0x0),this['_suggestionState']['get'](_0x2650ee)){case'notReady':this['_suggestionState']['set'](_0x2650ee,'dataReady');break;case'markerReady':_0x2650ee['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x2650ee])),this['_refreshSuggestionsChain'](new Set([_0x2650ee])),this['_suggestionState']['set'](_0x2650ee,'ready'),this['fire']('suggestionLoaded',_0x2650ee)):this['_suggestionState']['set'](_0x2650ee,'removed');}return _0x2650ee;}['acceptSuggestion'](_0x316d16){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x131e98 of _0x316d16['getAllAdjacentSuggestions']())_0x131e98['accept']();});});}['discardSuggestion'](_0x569ace){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x245db9 of _0x569ace['getAllAdjacentSuggestions']())_0x245db9['discard']();});});}['enableCommand'](_0x464e7d,_0x233797){const _0x59424=this['editor']['commands']['get'](_0x464e7d);if(!_0x59424)throw new _0x562698('track-changes-command-not-found',this,{'commandName':_0x464e7d});if(this['_enabledCommands']['has'](_0x59424))throw new _0x562698('track-changes-enable-command-twice',this,{'commandName':_0x464e7d});this['_enabledCommands']['add'](_0x59424),_0x233797&&_0x59424['on']('execute',(_0x2e19ad,_0x1185b5)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1185b5['length']>0x0&&_0x1185b5[_0x1185b5['length']-0x1]&&_0x1185b5[_0x1185b5['length']-0x1]['forceDefaultExecution']?_0x1185b5['pop']():(_0x2e19ad['return']=_0x233797((..._0x37403c)=>_0x59424['execute'](..._0x37403c,{'forceDefaultExecution':!0x0}),..._0x1185b5),_0x2e19ad['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x17d39e){let _0x3c3683,_0x55c331;const _0x2db726=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3c3683=_0x17d39e();}catch(_0xcaf03f){_0x55c331=_0xcaf03f;}return _0x2db726||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x55c331&&_0x562698['rethrowUnexpectedError'](_0x55c331,this),_0x3c3683;}['markInsertion'](_0x43b77b,_0x4a3f9b=null,_0x341944={}){if(_0x43b77b['isCollapsed'])return null;const _0x66d08f=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5710c7,meta:_0x48ce0b}of this['_findSuggestions'](_0x43b77b,'insertion'))if(_0x48ce0b['isOwn']){if(!_0x48ce0b['isNextTo']){if(_0x48ce0b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5710c7,_0x341944))continue;return _0x5710c7;}if(zt(_0x5710c7,_0x341944))return _0x5710c7;this['_breakSuggestionMarker'](_0x5710c7,_0x43b77b['start'],_0x43b77b['end']);break;}if(_0x4a3f9b==_0x5710c7['subType']&&zt(_0x5710c7,_0x341944)){const _0x193269=_0x5710c7['getFirstRange']();return _0x193269['start']['isEqual'](_0x43b77b['end'])?this['_setSuggestionRange'](_0x5710c7,this['_model']['createRange'](_0x43b77b['start'],_0x193269['end'])):this['_setSuggestionRange'](_0x5710c7,this['_model']['createRange'](_0x193269['start'],_0x43b77b['end'])),_0x5710c7;}}const _0x15e700=_0x205078(),_0x1da3e2=_0x66d08f['id'],_0x1f81c4=_0x4a3f9b?'insertion:'+_0x4a3f9b:'insertion',_0x131658=this['_setSuggestionData']({'id':_0x15e700,'type':_0x1f81c4,'createdAt':new Date(),'authorId':_0x1da3e2,'attributes':_0x341944});return this['_addSuggestionMarker'](_0x1f81c4,_0x15e700,_0x1da3e2,_0x43b77b),_0x131658;}['markMultiRangeInsertion'](_0x481772,_0x42a26c='multi',_0x1d7155={}){const _0x582581=this['editor']['plugins']['get']('Users')['me'],_0x1d19fe=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x42a26c,'join');for(const _0x402132 of this['getSuggestions']())if(_0x402132['author']['id']==_0x582581['id']&&'insertion'==_0x402132['type']&&_0x402132['subType']==_0x42a26c&&zt(_0x402132,_0x1d7155)&&(_0x1d19fe(_0x402132['getRanges'](),_0x481772)||_0x1d19fe(_0x481772,_0x402132['getRanges']()))){for(const _0x4cf8ca of _0x481772)_0x402132['addRange'](_0x4cf8ca);return _0x402132;}for(const {suggestion:_0x445552,meta:_0x42b52b}of this['_findSuggestions'](_0x481772,'insertion')){if(!_0x42b52b['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x42b52b['containsRangeInObject'])continue;if(!zt(_0x445552,_0x1d7155))continue;let _0x313003=!0x0;for(const _0x371530 of _0x445552['getRanges']())for(const _0x30664f of _0x481772)if(!_0x371530['containsRange'](_0x30664f)){_0x313003=!0x1;break;}if(_0x313003)return _0x445552;}const _0x1999da=_0x205078(),_0x19d9cb=_0x582581['id'],_0x4c1994='insertion:'+_0x42a26c,_0x2970c6=this['_setSuggestionData']({'id':_0x1999da,'type':_0x4c1994,'createdAt':new Date(),'authorId':_0x19d9cb,'attributes':_0x1d7155});for(const _0x3ee911 of _0x481772)this['_addSuggestionMarker'](_0x4c1994,_0x1999da,_0x19d9cb,_0x3ee911,u['getMultiRangeId']());return _0x2970c6;}['markInlineFormat'](_0x245934,_0x264d40,_0xa03441=null,_0x230b6a={}){if(_0xa03441=_0xa03441||Gt(_0x264d40),_0x245934['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5213ed=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa03441,'accept');return this['forceDefaultExecution'](()=>_0x5213ed([_0x245934],_0x264d40,_0x230b6a)),null;}const _0x501d7c=this['editor']['plugins']['get']('Users')['me'],_0x3baa5e=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x91bcbb,meta:_0x5dab57}of this['_findSuggestions'](_0x245934,'insertion'))_0x5dab57['isOwn']&&!_0x5dab57['isInsideObject']&&_0x3baa5e['push'](..._0x91bcbb['getRanges']());}const _0x4aded0=function(_0x5363f6,_0x11e07c){const _0x173f7c=[];for(const _0x418ffa of _0x11e07c){const _0x2b8cdf=_0x5363f6['getIntersection'](_0x418ffa);_0x2b8cdf&&_0x173f7c['push'](_0x2b8cdf);}return _0x173f7c;}(_0x245934,_0x3baa5e),_0x197184=function(_0x57538d,_0x549a56){const _0xe38632=[_0x57538d];for(const _0x4ba235 of _0x549a56){let _0x24e6e6=0x0;for(;_0x24e6e6<_0xe38632['length'];){const _0x486820=_0xe38632[_0x24e6e6]['getDifference'](_0x4ba235);_0xe38632['splice'](_0x24e6e6,0x1,..._0x486820),_0x24e6e6+=_0x486820['length'];}}return _0xe38632;}(_0x245934,_0x3baa5e);_0x4aded0['length']&&this['_model']['change'](()=>{for(const _0xf6e485 of _0x4aded0){const _0x51e48e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xa03441,'accept');this['forceDefaultExecution'](()=>_0x51e48e([_0xf6e485],_0x264d40,_0x230b6a));}});for(const _0x59bf4b of _0x197184){let _0x208e5e=null,_0x497145=_0x59bf4b['start'],_0x331059=_0x59bf4b['end'];for(const {suggestion:_0xc0e7bb,meta:_0x4b72db}of this['_findSuggestions'](_0x59bf4b,'formatInline')){if(!_0x4b72db['isOwn'])continue;if(_0xc0e7bb['subType']!=_0xa03441)continue;if(!zt(_0xc0e7bb,_0x230b6a))continue;const _0x35da11=_0xc0e7bb['getFirstRange']();if(_0x35da11['containsRange'](_0x59bf4b,!0x0))return null;_0x497145=_0x497145['isBefore'](_0x35da11['start'])?_0x497145:_0x35da11['start'],_0x331059=_0x331059['isAfter'](_0x35da11['end'])?_0x331059:_0x35da11['end'],_0x208e5e?_0x35da11['start']['isBefore'](_0x208e5e['getFirstRange']()['start'])?(_0x208e5e['removeMarkers'](),_0x208e5e=_0xc0e7bb):_0xc0e7bb['removeMarkers']():_0x208e5e=_0xc0e7bb;}const _0x3134c2=this['_model']['createRange'](_0x497145,_0x331059);if(_0x208e5e)this['_setSuggestionRange'](_0x208e5e,_0x3134c2);else{const _0x37ab28=_0x205078(),_0x4f0d4c=_0x501d7c['id'];this['_setSuggestionData']({'id':_0x37ab28,'type':'formatInline:'+_0xa03441,'data':_0x264d40,'createdAt':new Date(),'authorId':_0x4f0d4c,'attributes':_0x230b6a}),this['_addSuggestionMarker']('formatInline:'+_0xa03441,_0x37ab28,_0x4f0d4c,_0x3134c2);}}return null;}['markBlockFormat'](_0x2a407a,_0x26e552,_0x536831=[],_0x1d01bc=null,_0x5b4508={}){_0x26e552['formatGroupId']||(_0x26e552['formatGroupId']=_0x26e552['commandName']),_0x26e552['multipleBlocks']=_0x2a407a['is']('range'),_0x1d01bc=_0x1d01bc||Gt(_0x26e552);const _0x1af3ab=_0x536831['map'](_0xb8c8fc=>Jt(_0xb8c8fc,this['_model'])),_0x5e6608=_0x2a407a['is']('range')?_0x2a407a:Jt(_0x2a407a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x49c845=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d01bc,'accept');return this['forceDefaultExecution'](()=>_0x49c845([_0x5e6608],_0x26e552,_0x5b4508)),null;}_0x1af3ab['push'](_0x5e6608);let _0x31cec2=!0x0;for(const _0x1a61c5 of _0x1af3ab)if(!this['_rangeIsInLocalUserInsertion'](_0x1a61c5)){_0x31cec2=!0x1;break;}if(_0x31cec2&&'always'!==this['_trackFormatChanges']){const _0x27fc90=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1d01bc,'accept');return this['forceDefaultExecution'](()=>_0x27fc90([_0x5e6608],_0x26e552,_0x5b4508)),null;}let _0x153a1f=null,_0x49978e=_0x5e6608['start'],_0x216903=_0x5e6608['end'];for(const {suggestion:_0x597244,meta:_0x2474f9}of this['_findSuggestions'](_0x5e6608,'formatBlock')){if(!_0x2474f9['isOwn'])continue;if(_0x2474f9['isNextTo']||_0x2474f9['containsRangeInObject']||_0x2474f9['isInsideObject'])continue;if(_0x597244['data']['formatGroupId']!=_0x26e552['formatGroupId'])continue;if(!zt(_0x597244,_0x5b4508))continue;const _0x18f1f0=_0x597244['getFirstRange']();if(_0x597244['subType']==_0x1d01bc){if(_0x18f1f0['containsRange'](_0x5e6608,!0x0))return null;_0x49978e=_0x49978e['isBefore'](_0x18f1f0['start'])?_0x49978e:_0x18f1f0['start'],_0x216903=_0x216903['isAfter'](_0x18f1f0['end'])?_0x216903:_0x18f1f0['end'],_0x153a1f?_0x18f1f0['start']['isBefore'](_0x153a1f['getFirstRange']()['start'])?(_0x153a1f['removeMarkers'](),_0x153a1f=_0x597244):_0x597244['removeMarkers']():_0x153a1f=_0x597244;}else{const _0x49ba60=_0x5e6608['getIntersection'](_0x18f1f0);this['_cutOutSuggestionMarker'](_0x597244,_0x49ba60);}}const _0x5e97ae=this['editor']['plugins']['get']('Users')['me'],_0x42d203=_0x205078(),_0x405b44=_0x5e97ae['id'];if(_0x153a1f)return this['_setSuggestionRange'](_0x153a1f,this['_model']['createRange'](_0x49978e,_0x216903)),_0x153a1f;{const _0x7c1d8b=this['_setSuggestionData']({'id':_0x42d203,'type':'formatBlock:'+_0x1d01bc,'data':_0x26e552,'createdAt':new Date(),'authorId':_0x405b44,'attributes':_0x5b4508});return this['_addSuggestionMarker']('formatBlock:'+_0x1d01bc,_0x42d203,_0x405b44,this['_model']['createRange'](_0x49978e,_0x216903)),_0x7c1d8b;}}['markMultiRangeBlockFormat'](_0xed56c3,_0x30f637,_0x4f638c=[],_0x5c2779=null,_0x395ed1={}){_0x30f637['formatGroupId']||(_0x30f637['formatGroupId']=_0x30f637['commandName']);const _0x4ce11c=_0xed56c3[0x0];_0x30f637['multipleBlocks']=_0x4ce11c['is']('range'),_0x5c2779=_0x5c2779||Gt(_0x30f637);const _0x418409=_0x4f638c['map'](_0x59d4d9=>Jt(_0x59d4d9,this['_model'])),_0x2e076c=_0x4ce11c['is']('range')?_0xed56c3:_0xed56c3['map'](_0x2a3dc6=>Jt(_0x2a3dc6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x25913f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'accept');return this['forceDefaultExecution'](()=>_0x25913f(_0x2e076c,_0x30f637,_0x395ed1)),null;}_0x418409['push'](..._0x2e076c);let _0x1a9f9c=!0x0;for(const _0x59892f of _0x418409)if(!this['_rangeIsInLocalUserInsertion'](_0x59892f)){_0x1a9f9c=!0x1;break;}if(_0x1a9f9c&&'always'!==this['_trackFormatChanges']){const _0x49ea23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'accept');return this['forceDefaultExecution'](()=>_0x49ea23(_0x2e076c,_0x30f637,_0x395ed1)),null;}const _0x3b48d7=this['editor']['plugins']['get']('Users')['me'];for(const _0x1727ce of this['getSuggestions']()){if(_0x1727ce['author']['id']!=_0x3b48d7['id'])continue;if('formatBlock'!=_0x1727ce['type']||_0x1727ce['data']['formatGroupId']!=_0x30f637['formatGroupId'])continue;if(!zt(_0x1727ce,_0x395ed1))continue;const _0x3d0ea8=_0x1727ce['subType']==_0x5c2779;for(let _0x133124=0x0;_0x133124<_0x2e076c['length'];_0x133124++){const _0xe431b=_0x2e076c[_0x133124];for(const _0x5f5805 of _0x1727ce['getMarkers']()){const _0xd53b94=_0x5f5805['getRange']();if(_0xe431b['isEqual'](_0xd53b94)){_0x3d0ea8?(_0x2e076c['splice'](_0x133124,0x1),_0x133124--):_0x1727ce['removeMarker'](_0x5f5805['name']);break;}}}}if(0x0==_0x2e076c['length'])return null;const _0x144e37=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5c2779,'join');for(const _0x39e549 of this['getSuggestions']())if(_0x39e549['author']['id']==_0x3b48d7['id']&&'formatBlock'==_0x39e549['type']&&_0x39e549['data']['formatGroupId']==_0x30f637['formatGroupId']&&_0x39e549['subType']==_0x5c2779&&zt(_0x39e549,_0x395ed1)&&(_0x144e37(_0x39e549['getRanges'](),_0x2e076c)||_0x144e37(_0x2e076c,_0x39e549['getRanges']()))){for(const _0x4d8461 of _0x2e076c)_0x39e549['addRange'](_0x4d8461);return _0x39e549;}const _0x46c6b0=_0x205078(),_0xd339a3=_0x3b48d7['id'],_0x91f40f='formatBlock:'+_0x5c2779,_0x59d57e=this['_setSuggestionData']({'id':_0x46c6b0,'type':_0x91f40f,'data':_0x30f637,'createdAt':new Date(),'authorId':_0xd339a3,'attributes':_0x395ed1});for(const _0x48f574 of _0x2e076c)this['_addSuggestionMarker'](_0x91f40f,_0x46c6b0,_0xd339a3,_0x48f574,u['getMultiRangeId']());return _0x59d57e;}['markDeletion'](_0x28093a,_0xd642b1=null,_0x2df949={}){if(_0x28093a['isCollapsed'])return null;const _0x4350c4=this['editor']['plugins']['get']('Users')['me'],_0x485c53=new _0x4daf91(_0x28093a['start'],_0x28093a['end']);for(const {suggestion:_0x21de0f,meta:_0x444c16}of this['_findSuggestions'](_0x485c53,'insertion'))if(_0x444c16['isOwn']&&!_0x444c16['isNextTo']){if(_0x21de0f['isMultiRange']){const _0x2ec748=_0x21de0f['getRanges']()['filter'](_0x42dc8a=>'$graveyard'!=_0x42dc8a['root']['rootName']);_0x2ec748['every'](_0x5e5f6d=>_0x485c53['containsRange'](_0x5e5f6d,!0x0))&&_0x21de0f['discard']();if(_0x2ec748['some'](_0x5b014c=>_0x5b014c['containsRange'](_0x485c53,!0x0))){const _0x46f19d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xd642b1,'accept');return this['forceDefaultExecution'](()=>_0x46f19d([_0x485c53],null,_0x2df949)),null;}}else{const _0xf1974e=_0x485c53['getIntersection'](_0x21de0f['getFirstRange']());null!==_0xf1974e&&_0x21de0f['_onDiscard']([_0xf1974e],null,_0x2df949);}}if(_0x485c53['detach'](),_0x485c53['isCollapsed']||'$graveyard'==_0x485c53['root']['rootName'])return null;let _0x946391=null,_0x1ca58f=_0x485c53['start'],_0x28908a=_0x485c53['end'];const _0x89b393=this['_findSuggestions'](_0x485c53,'deletion');for(const {suggestion:_0x3c7604,meta:_0x2294f9}of _0x89b393){const _0x1d7bfa=this['_model']['createRange'](_0x1ca58f,_0x28908a);if(_0x2294f9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2294f9['containsRangeInObject']&&!_0x2294f9['isInsideObject'])){if(_0x3c7604['isMultiRange']){if(!zt(_0x3c7604,_0x2df949))continue;let _0x48761c=!0x0;for(const _0x1c50e9 of _0x3c7604['getRanges']()){if(_0x1c50e9['containsRange'](_0x1d7bfa,!0x0))return _0x3c7604;_0x1d7bfa['containsRange'](_0x1c50e9)||(_0x48761c=!0x1);}_0x48761c&&_0x3c7604['discard']();}else{const _0x391d87=_0x3c7604['getFirstRange']();if(_0x391d87['containsRange'](_0x1d7bfa,!0x0))return _0x3c7604;if(!zt(_0x3c7604,_0x2df949)){_0x1d7bfa['containsRange'](_0x391d87)?_0x3c7604['removeMarkers']():_0x391d87['containsPosition'](_0x1ca58f)?_0x1ca58f=_0x391d87['end']:_0x391d87['containsPosition'](_0x28908a)&&(_0x28908a=_0x391d87['start']);continue;}_0x1ca58f=_0x1ca58f['isBefore'](_0x391d87['start'])?_0x1ca58f:_0x391d87['start'],_0x28908a=_0x28908a['isAfter'](_0x391d87['end'])?_0x28908a:_0x391d87['end'],_0x2df949=Object['assign']({},_0x3c7604['attributes']),_0x946391?_0x391d87['start']['isBefore'](_0x946391['getFirstRange']()['start'])?(_0x946391['removeMarkers'](),_0x946391=_0x3c7604):_0x3c7604['removeMarkers']():_0x946391=_0x3c7604;}}}if(_0x946391)return this['_setSuggestionRange'](_0x946391,this['_model']['createRange'](_0x1ca58f,_0x28908a)),_0x946391;{const _0x2d6a27=_0x205078(),_0x15b37c=this['_model']['createRange'](_0x1ca58f,_0x28908a),_0x4588e6=_0x4350c4['id'],_0x1fff1d=_0xd642b1?'deletion:'+_0xd642b1:'deletion',_0xee166b=this['_setSuggestionData']({'id':_0x2d6a27,'type':_0x1fff1d,'createdAt':new Date(),'authorId':_0x4588e6,'attributes':_0x2df949});return this['_addSuggestionMarker'](_0x1fff1d,_0x2d6a27,_0x4588e6,_0x15b37c),_0xee166b;}}['markMultiRangeDeletion'](_0x48db29,_0x5edfcb='multi',_0x14689f={}){const _0x280f23=this['editor']['plugins']['get']('Users')['me'],_0x2e0b73=_0x48db29['map'](_0x450ef4=>new _0x4daf91(_0x450ef4['start'],_0x450ef4['end'])),_0x3383b1=new Set();for(const {suggestion:_0x1f41c8,meta:_0x3b41e4}of this['_findSuggestions'](_0x2e0b73,'insertion'))_0x3b41e4['isOwn']&&!_0x3b41e4['isNextTo']&&_0x3383b1['add'](_0x1f41c8);for(const _0x1a391f of _0x3383b1)if(_0x1a391f['isMultiRange']){const _0x18d981=_0x1a391f['getRanges']();(!_0x1a391f['attributes']||!_0x1a391f['attributes']['skipNestingCheck'])&&(_0x18d981['every'](_0x4d8164=>_0x2e0b73['some'](_0x486932=>_0x486932['containsRange'](_0x4d8164,!0x0)))&&_0x1a391f['discard']());if(_0x2e0b73['every'](_0x40fac6=>_0x18d981['some'](_0xa1972b=>_0xa1972b['containsRange'](_0x40fac6,!0x0)))){const _0x10d44a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'accept');return this['forceDefaultExecution'](()=>_0x10d44a(_0x48db29,null,_0x14689f)),null;}}else{const _0x214f2d=_0x1a391f['getFirstRange']();_0x2e0b73['some'](_0x3e9f72=>_0x3e9f72['containsRange'](_0x214f2d,!0x0))&&_0x1a391f['discard']();if(_0x2e0b73['every'](_0xd9c047=>_0x214f2d['containsRange'](_0xd9c047,!0x0))){const _0x37a895=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'accept');return this['forceDefaultExecution'](()=>_0x37a895(_0x2e0b73,null,_0x14689f)),null;}}const _0x238ad1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5edfcb,'join');let _0x5e6ee5=null;for(const _0x5b7111 of this['getSuggestions']())if(_0x5b7111['author']['id']==_0x280f23['id']&&_0x5b7111['isInContent']&&'deletion'==_0x5b7111['type']&&_0x5b7111['subType']==_0x5edfcb&&zt(_0x5b7111,_0x14689f)&&(_0x238ad1(_0x5b7111['getRanges'](),_0x2e0b73)||_0x238ad1(_0x2e0b73,_0x5b7111['getRanges']()))){if(_0x5e6ee5){if(_0x5b7111['commentThread']&&_0x5b7111['commentThread']['length'])continue;for(const _0x1d8b64 of _0x5b7111['getRanges']())_0x5e6ee5['isIntersectingWithRange'](_0x1d8b64)||_0x5e6ee5['addRange'](_0x1d8b64);_0x5b7111['removeMarkers']();}else{_0x5e6ee5=_0x5b7111;for(const _0x1b5a23 of _0x2e0b73)_0x5b7111['isIntersectingWithRange'](_0x1b5a23)||_0x5b7111['addRange'](_0x1b5a23);}}if(_0x5e6ee5)return _0x5e6ee5;_0x3383b1['clear']();for(const {suggestion:_0x486994,meta:_0xf50877}of this['_findSuggestions'](_0x2e0b73,'deletion'))_0xf50877['isOwn']&&(this['_mergeNestedSuggestions']||!_0xf50877['containsRangeInObject']&&!_0xf50877['isInsideObject'])&&zt(_0x486994,_0x14689f)&&_0x3383b1['add'](_0x486994);for(const _0x4207dc of _0x3383b1){const _0x3379f4=_0x4207dc['getRanges']();if(!_0x14689f||!_0x14689f['skipNestingCheck']){if(_0x2e0b73['every'](_0x4034fc=>_0x3379f4['some'](_0x214ece=>_0x214ece['containsRange'](_0x4034fc,!0x0))))return _0x4207dc;}(!_0x4207dc['attributes']||!_0x4207dc['attributes']['skipNestingCheck'])&&(_0x3379f4['every'](_0x46bd3f=>_0x2e0b73['some'](_0x1d8f2a=>_0x1d8f2a['containsRange'](_0x46bd3f,!0x0)))&&_0x4207dc['discard']());}const _0x5c716d=_0x205078(),_0xb66f8b=_0x280f23['id'],_0x540763='deletion:'+_0x5edfcb,_0x1cb9cb=this['_setSuggestionData']({'id':_0x5c716d,'type':_0x540763,'createdAt':new Date(),'authorId':_0xb66f8b,'attributes':_0x14689f});for(const _0x74bab6 of _0x2e0b73)_0x74bab6['detach'](),_0x74bab6['isCollapsed']||'$graveyard'==_0x74bab6['root']['rootName']||this['_addSuggestionMarker'](_0x540763,_0x5c716d,_0xb66f8b,_0x74bab6,u['getMultiRangeId']());return _0x1cb9cb;}['markAttributeChange'](_0x3346b1,_0x27a5cb,_0x414c68,_0x151cfc,_0x18d569){if(_0x3346b1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x3fbf57=this['editor']['plugins']['get']('Users')['me']['id'],_0x487d33=Array['from'](this['_suggestions']['values']())['filter'](_0x394c9a=>'attribute'==_0x394c9a['type']&&_0x394c9a['data']['key']==_0x27a5cb&&_0x394c9a['isIntersectingWithRange'](_0x3346b1));if('default'===this['_trackFormatChanges']){const _0x13b464=this['_findSuggestions'](_0x3346b1,'insertion')['filter'](({meta:_0x1fbee8})=>_0x1fbee8['isOwn']&&!_0x1fbee8['isInsideObject']&&!_0x1fbee8['isNextTo'])['map'](({suggestion:_0x376a6f})=>_0x376a6f);_0x487d33['unshift'](..._0x13b464);}const _0x322969=new Map([[_0x3346b1,_0x414c68]]);for(const _0x4e754e of _0x487d33){const _0x207e24='attribute'==_0x4e754e['type']?_0x4e754e['data']['oldValue']:void 0x0,_0x9ba63c=_0x4e754e['getFirstRange'](),_0x15e26d=Array['from'](_0x322969['keys']())['find'](_0x807ed1=>_0x807ed1['isIntersecting'](_0x9ba63c));if(!_0x15e26d)continue;const _0x3954a7=_0x15e26d['getDifference'](_0x9ba63c);this['_isBlockAttribute'](_0x27a5cb)&&'insertion'==_0x4e754e['type']&&0x0!=_0x3954a7['length']||(_0x322969['delete'](_0x15e26d),_0x3954a7['forEach'](_0x5af384=>{_0x322969['set'](_0x5af384,_0x414c68);}),'insertion'!=_0x4e754e['type']&&_0x207e24!=_0x151cfc&&_0x322969['set'](_0x15e26d['getIntersection'](_0x9ba63c),_0x207e24));}const _0x20b4f3=[];for(const [_0x56dc0f,_0x59f72c]of _0x322969){const _0x3499de=_0x205078(),_0x1a2949={'key':_0x27a5cb,'oldValue':_0x59f72c,'newValue':_0x151cfc};_0x27a5cb['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':_0x27a5cb});const _0x264962=('attribute:'+(_0x27a5cb+'|'+Gt({'newValue':_0x151cfc})))['substring'](0x0,0x3c),_0x1a5bed=this['_setSuggestionData']({'id':_0x3499de,'type':_0x264962,'data':_0x1a2949,'createdAt':new Date(),'authorId':_0x3fbf57,'attributes':_0x18d569});_0x20b4f3['push'](_0x1a5bed),this['_addSuggestionMarker'](_0x264962,_0x3499de,_0x3fbf57,_0x56dc0f);}return _0x20b4f3;}['enableDefaultAttributesIntegration'](_0x1c3ca9){this['enableCommand'](_0x1c3ca9,(_0x424e92,..._0x5899e0)=>{this['_recordAttributeChanges'](()=>{_0x424e92(..._0x5899e0);});});}['registerBlockAttribute'](_0xf9362b){this['_blockAttributeKeys']['add'](_0xf9362b);}['registerInlineAttribute'](_0xe61e05){this['_inlineAttributeKeys']['add'](_0xe61e05);}['_getAttributeKey'](_0x1e0df7){return'attribute'==_0x1e0df7['type']?_0x1e0df7['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x221b03,_0x14d821){const _0x1d71ef=_0x221b03['getFirstMarker']();this['_model']['change'](_0x1ef047=>{_0x1ef047['updateMarker'](_0x1d71ef,{'range':_0x14d821});});}['_addThreadToSuggestion'](_0x3e5837){const _0x37bf58=_0x3e5837['id'],_0x9115ea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x37bf58)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9115ea,'threadId':_0x37bf58,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x1f4c64=this['_commentsRepository']['getCommentThread'](_0x37bf58);_0x1f4c64['unbind']('isRemovable'),_0x1f4c64['isRemovable']=!0x1,_0x3e5837['commentThread']=_0x1f4c64;}['_checkSuggestionCorrectness'](_0x5680a8,_0x5091d5,_0x4ad954,_0x5503ab){if(_0x5680a8['type']!=_0x5091d5||_0x5680a8['subType']!=_0x4ad954||_0x5680a8['creator']['id']!=_0x5503ab)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x562698('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4cf2d0,_0x496381){const _0x11f133=_0x4cf2d0['getFirstRange']();if(_0x496381['isEqual'](_0x11f133))_0x4cf2d0['removeMarkers']();else{if(_0x11f133['containsRange'](_0x496381)){const _0x501934=this['_model']['createPositionAt'](_0x496381['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x11f133['start'],_0x501934));const _0x2d09fe=_0x205078(),_0x4a3cf2=_0x4cf2d0['creator']['id'],_0x3f8b64=_0x4cf2d0['type']+':'+_0x4cf2d0['subType'];this['_setSuggestionData']({'id':_0x2d09fe,'type':_0x3f8b64,'createdAt':new Date(),'authorId':_0x4a3cf2,'data':_0x4cf2d0['data'],'attributes':_0x4cf2d0['attributes']});const _0xd5ea88=this['_model']['createPositionAt'](_0x496381['end']['parent'],'after'),_0x6a4709=this['_model']['createRange'](_0xd5ea88,_0x11f133['end']);this['_addSuggestionMarker'](_0x3f8b64,_0x2d09fe,_0x4a3cf2,_0x6a4709);}else{if(_0x11f133['containsPosition'](_0x496381['start'])){const _0x53727f=this['_model']['createPositionAt'](_0x496381['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x11f133['start'],_0x53727f));}else{const _0x129324=this['_model']['createPositionAt'](_0x496381['end']['parent'],'after');this['_setSuggestionRange'](_0x4cf2d0,this['_model']['createRange'](_0x129324,_0x11f133['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xb07d2f){for(const {suggestion:_0x56d344,meta:_0x4bae91}of this['_findSuggestions'](_0xb07d2f,'insertion')){if(!_0x4bae91['isOwn'])continue;const _0x3c8f1c=_0x56d344['getRanges']();for(const _0x413a75 of _0x3c8f1c)if(!_0xb07d2f['getDifference'](_0x413a75)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xca3a90){const _0x50ec09=this['editor']['plugins']['get']('Users')['getUser'](_0xca3a90);if(!_0x50ec09)throw new _0x562698('track-changes-user-not-found',this);return _0x50ec09;}['_getExternalAuthor'](_0x545052){const _0x29218b=this['editor']['plugins']['get']('Users'),_0x2666ea=_0x1c304('external:'+_0x545052),_0x25afcf=_0x29218b['getUser'](_0x2666ea);return _0x25afcf||_0x29218b['addUser']({'id':_0x2666ea,'name':_0x545052});}['_createSuggestion'](_0x1a332f,_0x3180f9,_0x23ddb8,_0x25ed89,_0x5f3e94){const _0x5688ff=this['_getAuthorFromId'](_0x25ed89),_0x7d3f02=this['_suggestionFactory']['buildSuggestion'](_0x1a332f,_0x3180f9,_0x23ddb8,_0x5688ff,_0x5f3e94,_0x10ba5a=>{this['_updateSuggestionData'](_0x23ddb8,{'attributes':_0x10ba5a});const _0x43421f=this['getSuggestion'](_0x23ddb8);this['_joinWithAdjacentSuggestions'](new Set([_0x43421f])),this['_refreshSuggestionsChain'](new Set([_0x43421f]));});return this['listenTo'](_0x7d3f02,'accept',()=>{this['_updateSuggestionData'](_0x23ddb8,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x7d3f02,'discard',()=>{this['_updateSuggestionData'](_0x23ddb8,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x23ddb8,_0x7d3f02),this['_suggestionState']['set'](_0x7d3f02,'notReady'),_0x7d3f02;}['_splitMarkerName'](_0xa8ad2){const _0x24e6b7=_0xa8ad2['split'](':');return{'group':_0x24e6b7[0x0],'type':_0x24e6b7[0x1],'subType':_0x24e6b7['length']>=0x5?_0x24e6b7[0x2]:null,'id':_0x24e6b7['length']<0x5?_0x24e6b7[0x2]:_0x24e6b7[0x3],'authorId':_0x24e6b7['length']<0x5?_0x24e6b7[0x3]:_0x24e6b7[0x4],'markerCount':0x6==_0x24e6b7['length']?_0x24e6b7[0x5]:null};}['_breakSuggestionMarker'](_0x544767,_0x2922a6,_0x3a4ed6){const _0x2d6951=_0x544767['getFirstRange'](),_0x1fb4b5=_0x2d6951['start'],_0x3309a9=_0x2d6951['end'];this['_setSuggestionRange'](_0x544767,this['_model']['createRange'](_0x1fb4b5,_0x2922a6));const _0xd3f950=_0x205078(),_0x113c07=_0x544767['creator']['id'],_0x1e4b22=_0x544767['type']+(_0x544767['subType']?':'+_0x544767['subType']:'');this['_setSuggestionData']({'id':_0xd3f950,'type':_0x1e4b22,'createdAt':new Date(),'authorId':_0x113c07,'originalSuggestionId':_0x544767['id'],'attributes':_0x544767['attributes'],'data':_0x544767['data']});const _0x7ff53f=this['_getAttributeKey'](_0x544767);('formatBlock'==_0x544767['type']||_0x7ff53f&&this['_isBlockAttribute'](_0x7ff53f))&&(_0x3a4ed6=this['_model']['createPositionBefore'](_0x3a4ed6['parent'])),this['_addSuggestionMarker'](_0x1e4b22,_0xd3f950,_0x113c07,this['_model']['createRange'](_0x3a4ed6,_0x3309a9));}['_findSuggestions'](_0x58ede3,_0x561250=null){const _0x5a1127=[],_0x6434dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58ede3)||(_0x58ede3=[_0x58ede3]);for(const _0x21f4e8 of this['getSuggestions']()){if(!_0x21f4e8['isInContent'])continue;if(_0x561250&&_0x21f4e8['type']!=_0x561250)continue;let _0x35e4c4=!0x1;for(const _0x2a5fa1 of _0x21f4e8['getRanges']()){for(const _0x3a45e4 of _0x58ede3){const _0x14769a=_0x3a45e4['start']['isEqual'](_0x2a5fa1['end'])||_0x3a45e4['end']['isEqual'](_0x2a5fa1['start']);if(_0x14769a||_0x3a45e4['getIntersection'](_0x2a5fa1)){const _0x33e62e=_0x3a45e4['containsRange'](_0x2a5fa1)&&Ut(this['_model']['schema'],_0x2a5fa1['start'],_0x3a45e4),_0x5ecceb=_0x2a5fa1['containsRange'](_0x3a45e4)&&Ut(this['_model']['schema'],_0x3a45e4['start'],_0x2a5fa1);_0x5a1127['push']({'suggestion':_0x21f4e8,'meta':{'isOwn':_0x6434dc==_0x21f4e8['author'],'isNextTo':_0x14769a,'isInsideObject':_0x33e62e,'containsRangeInObject':_0x5ecceb}}),_0x35e4c4=!0x0;break;}}if(_0x35e4c4)break;}}return _0x5a1127;}['_addSuggestionMarker'](_0x3ccce8,_0x23096f,_0x743fc3,_0x29cff8,_0x3026c8){this['_model']['change'](_0x3cdf6d=>{let _0x525c83='suggestion:'+_0x3ccce8+':'+_0x23096f+':'+_0x743fc3;_0x3026c8&&(_0x525c83=_0x525c83+':'+_0x3026c8),_0x3cdf6d['addMarker'](_0x525c83,{'range':_0x29cff8,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x466e05){const _0x2756b7=_0x466e05['previous'],_0x141027=_0x466e05['next'];_0x466e05['previous']=null,_0x466e05['next']=null,null!=_0x2756b7&&_0x2756b7['next']==_0x466e05&&(_0x2756b7['next']=_0x141027),null!=_0x141027&&_0x141027['previous']==_0x466e05&&(_0x141027['previous']=_0x2756b7),'ready'==this['_suggestionState']['get'](_0x466e05)&&(this['_suggestionState']['set'](_0x466e05,'removed'),this['fire']('suggestionUnloaded',_0x466e05,_0x2756b7,_0x141027));}['_setSuggestionData'](_0xd9422a){const _0x4513d5=_0xd9422a['id'],_0x3d8dca=this['addSuggestionData'](_0xd9422a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x23efae=this['editor']['plugins']['get']('PendingActions'),_0x554f5b=_0x3d8dca['hasComments'],_0x4cb50b=_0x3d8dca['subType']?_0x3d8dca['type']+':'+_0x3d8dca['subType']:_0x3d8dca['type'],_0x231d68=this['editor']['locale'],_0x2e6ec8=_0x23efae['add'](o(_0x231d68,'PENDING_ACTION_SUGGESTION')),_0xc71dcb={'id':_0x4513d5,'type':_0x4cb50b,'hasComments':_0x554f5b,'data':_0xd9422a['data']||null,'originalSuggestionId':_0xd9422a['originalSuggestionId']||null,'attributes':_0x3d8dca['attributes']};this['_adapter']['addSuggestion'](_0xc71dcb)['then'](_0xcf53a3=>{_0x3d8dca['_saved']=!0x0,_0x23efae['remove'](_0x2e6ec8),_0xcf53a3&&_0xcf53a3['createdAt']&&(this['_suggestions']['get'](_0x4513d5)['createdAt']=_0xcf53a3['createdAt']);})['catch'](_0x7058df=>{throw _0x14f29b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3d8dca['discard']();}),_0x3d8dca['stopListening'](),this['_suggestions']['delete'](_0x3d8dca['id']),this['_suggestionState']['delete'](_0x3d8dca),_0x7058df;});}return _0x3d8dca;}['_isBlockAttribute'](_0x321041){return this['_blockAttributeKeys']['has'](_0x321041);}['_updateSuggestionData'](_0x385733,_0x2a7f59){const _0xf344d9=this['editor']['plugins']['get']('PendingActions'),_0x2fb521=this['getSuggestion'](_0x385733);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2fb521['_saved']){const _0x3ac96c=_0xf344d9['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x385733,_0x2a7f59)['then'](()=>{_0xf344d9['remove'](_0x3ac96c);});}else _0x2fb521['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x385733,_0x2a7f59);});}}['_getSuggestionData'](_0x1c22c5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x562698('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1c22c5);}['_handleNewSuggestionMarker'](_0x271f91){const {id:_0x3bf683,type:_0x5e46f1,subType:_0x48608e,authorId:_0x36a238}=this['_splitMarkerName'](_0x271f91),_0x33060b=this['_suggestions']['get'](_0x3bf683)||this['_createSuggestion'](_0x5e46f1,_0x48608e,_0x3bf683,_0x36a238,{});switch(this['_checkSuggestionCorrectness'](_0x33060b,_0x5e46f1,_0x48608e,_0x36a238),this['_suggestionState']['get'](_0x33060b)){case'notReady':this['_getSuggestionData'](_0x3bf683)['then'](_0x29e7d9=>{let _0x47e1ef=Promise['resolve']();_0x29e7d9['hasComments']&&(_0x47e1ef=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3bf683})),_0x47e1ef['then'](()=>{this['addSuggestionData'](_0x29e7d9)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x33060b,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3bf683,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x33060b,'ready'),this['fire']('suggestionLoaded',_0x33060b);break;case'ready':this['fire']('suggestionChanged',_0x33060b);}return _0x33060b['addMarkerName'](_0x271f91),_0x33060b;}['_refreshSuggestionsChain'](_0x678b07){const _0x26189b=Array['from'](_0x678b07),_0x49eac4=_0x26189b['filter'](_0x542d48=>'attribute'==_0x542d48['type']);this['_refreshAttributeSuggestionsChain'](_0x49eac4);const _0x2a229a=_0x26189b['filter'](_0x18c0ba=>!_0x18c0ba['isMultiRange']&&'attribute'!=_0x18c0ba['type']),_0x338bc5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27a6f9=>!_0x27a6f9['isMultiRange']&&'attribute'!=_0x27a6f9['type']),_0x56196c=_0x338bc5['filter'](_0x16ff9d=>!_0x678b07['has'](_0x16ff9d)),_0x426fa5=new Map(_0x338bc5['map'](_0x50951e=>[_0x50951e,this['_suggestionFactory']['getSuggestionCallback'](_0x50951e['type'],_0x50951e['subType'],'chain')])),_0x179724=new Map(_0x338bc5['map'](_0x3bdc6b=>[_0x3bdc6b,_0x3bdc6b['getFirstRange']()])),_0x3811a4=new Set(),_0x47cbd0=new Set();for(let _0x38b1a8=0x0;_0x38b1a8<_0x2a229a['length'];_0x38b1a8++)_0x1d1b5b(_0x2a229a[_0x38b1a8],_0x2a229a,_0x38b1a8+0x1);for(let _0x26becd=0x0;_0x26becd<_0x2a229a['length'];_0x26becd++)_0x1d1b5b(_0x2a229a[_0x26becd],_0x56196c,0x0);const _0xd7a28d=new Set();for(let _0x27a68e=0x0;_0x27a68e<_0x2a229a['length'];_0x27a68e++){const _0x4c0c64=_0x2a229a[_0x27a68e];!_0x47cbd0['has'](_0x4c0c64)&&_0x4c0c64['previous']&&(_0xd7a28d['add'](_0x4c0c64['previous']),_0x4c0c64['previous']['next']===_0x4c0c64&&(_0x4c0c64['previous']['next']=null),_0x4c0c64['previous']=null),!_0x3811a4['has'](_0x4c0c64)&&_0x4c0c64['next']&&(_0xd7a28d['add'](_0x4c0c64['next']),_0x4c0c64['next']['previous']===_0x4c0c64&&(_0x4c0c64['next']['previous']=null),_0x4c0c64['next']=null);}function _0x1d1b5b(_0x53ca81,_0x44c7ea,_0x413dc9){for(let _0x560994=_0x413dc9;_0x560994<_0x44c7ea['length'];_0x560994++){const _0x4ab723=_0x3500e1(_0x53ca81,_0x44c7ea[_0x560994]);_0x4ab723&&(_0x4ab723[0x0]['next']=_0x4ab723[0x1],_0x4ab723[0x1]['previous']=_0x4ab723[0x0],_0x3811a4['add'](_0x4ab723[0x0]),_0x47cbd0['add'](_0x4ab723[0x1]));}}function _0x3500e1(_0x57dcf2,_0x46da60){if(_0x57dcf2['author']['id']!==_0x46da60['author']['id'])return null;const _0x4ce94a=_0x426fa5['get'](_0x57dcf2)(_0x57dcf2,_0x46da60,_0x179724['get'](_0x57dcf2),_0x179724['get'](_0x46da60));if(!_0x4ce94a)return null;return _0x426fa5['get'](_0x46da60)(_0x57dcf2,_0x46da60,_0x179724['get'](_0x57dcf2),_0x179724['get'](_0x46da60))?_0x4ce94a[0x1]['commentThread']&&_0x4ce94a[0x1]['commentThread']['length']?null:_0x4ce94a:null;}_0xd7a28d['size']&&this['_refreshSuggestionsChain'](_0xd7a28d);}['_refreshAttributeSuggestionsChain'](_0x2ffea4){if(0x0==_0x2ffea4['length'])return;const _0x53250f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a2d36=>'attribute'==_0x4a2d36['type']&&_0x4a2d36['_isDataLoaded']),_0x4e2511=[],_0x5f4d88=new Map();for(const _0x40d044 of _0x53250f){const _0x2732e8=_0x1c304(_0x40d044['attributes']);_0x5f4d88['has'](_0x2732e8)||(_0x5f4d88['set'](_0x2732e8,_0x4e2511['length']),_0x4e2511['push']([]));const _0xbbb9a9=_0x5f4d88['get'](_0x2732e8);_0x4e2511[_0xbbb9a9]['push'](_0x40d044);}!(function(){_0x4e2511['sort']((_0x2d7990,_0x59f001)=>{const _0x54efae=_0x2d7990[0x0]['createdAt'],_0x3554fa=_0x59f001[0x0]['createdAt'];return _0x54efae==_0x3554fa?_0x2d7990[0x0]['attributes']['groupId']<_0x59f001[0x0]['attributes']['groupId']?-0x1:0x1:_0x54efae<_0x3554fa?-0x1:0x1;});for(const _0xbcdd04 of _0x4e2511)_0xbcdd04['sort']((_0x331bf1,_0x48c4c4)=>_0x331bf1['id']<_0x48c4c4['id']?-0x1:0x1);}());for(let _0x2c3c0e=0x0;_0x2c3c0e<_0x4e2511['length'];_0x2c3c0e++){if(0x0==_0x4e2511[_0x2c3c0e]['length'])continue;const _0x4c2cf3=[];for(let _0x337e8a=_0x2c3c0e+0x1;_0x337e8a<_0x4e2511['length'];_0x337e8a++)0x0!=_0x4e2511[_0x337e8a]['length']&&_0x29ae1f(_0x4e2511[_0x2c3c0e],_0x4e2511[_0x337e8a])&&_0x4c2cf3['push'](_0x337e8a);for(const _0x554fca of _0x4c2cf3)_0x4e2511[_0x2c3c0e]=_0x4e2511[_0x2c3c0e]['concat'](_0x4e2511[_0x554fca]),_0x4e2511[_0x554fca]=[];}for(const _0x341f71 of _0x4e2511)for(let _0x3396bd=0x0;_0x3396bd<_0x341f71['length'];_0x3396bd++){const _0x14ac89=_0x341f71[_0x3396bd+0x1]||null;_0x341f71[_0x3396bd]['next']!==_0x14ac89&&(_0x341f71[_0x3396bd]['next']=_0x14ac89);}for(const _0x1de719 of _0x4e2511)for(let _0x28c2f9=0x0;_0x28c2f9<_0x1de719['length'];_0x28c2f9++){const _0x38e893=_0x1de719[_0x28c2f9-0x1]||null;_0x1de719[_0x28c2f9]['previous']!==_0x38e893&&(_0x1de719[_0x28c2f9]['previous']=_0x38e893);}function _0x29ae1f(_0x4e5dd1,_0x2832ab){if(_0x4e5dd1[0x0]['attributes']['groupId']!==_0x2832ab[0x0]['attributes']['groupId']&&_0x4e5dd1[0x0]['author']!==_0x2832ab[0x0]['author'])return!0x1;if(!function(_0x7fc157,_0x46b460){if(!_0x7fc157['hasComments']&&!_0x46b460['hasComments'])return!0x0;if(_0x7fc157['hasComments']&&_0x46b460['hasComments'])return!0x1;if(_0x7fc157['hasComments']&&_0x46b460['createdAt']<_0x7fc157['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x46b460['hasComments']&&_0x7fc157['createdAt']<_0x46b460['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x4e5dd1[0x0],_0x2832ab[0x0]))return!0x1;const _0xeb8899=xt(_0x4e5dd1[0x0]['attributes'],'groupId'),_0x473e09=xt(_0x2832ab[0x0]['attributes'],'groupId');if(!_0x1a4045(_0xeb8899,_0x473e09))return!0x1;return!!_0x4e5dd1['every'](_0x58afe1=>_0x2832ab['some'](_0x56ad35=>_0x58afe1['getFirstRange']()['isEqual'](_0x56ad35['getFirstRange']())))&&_0x2832ab['every'](_0x4e53e0=>_0x4e5dd1['some'](_0x12171c=>_0x4e53e0['getFirstRange']()['isEqual'](_0x12171c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3fd83c){const _0x4248b0=Array['from'](_0x3fd83c),_0x46d460=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2325f2=_0x46d460['filter'](_0x48f242=>!_0x3fd83c['has'](_0x48f242)),_0x13a42d=new Map(_0x4248b0['map'](_0x49fa40=>[_0x49fa40,this['_suggestionFactory']['getSuggestionCallback'](_0x49fa40['type'],_0x49fa40['subType'],'join')])),_0x5d7264=new Map(_0x46d460['map'](_0x482564=>[_0x482564,_0x482564['getRanges']()]));for(let _0x4f302d=0x0;_0x4f302d<_0x4248b0['length'];_0x4f302d++){if(_0x514948(this,_0x4248b0[_0x4f302d],_0x4248b0,_0x4f302d+0x1))return!0x0;}for(let _0x5ef3dc=0x0;_0x5ef3dc<_0x4248b0['length'];_0x5ef3dc++){if(_0x514948(this,_0x4248b0[_0x5ef3dc],_0x2325f2,0x0))return!0x0;}return!0x1;function _0x514948(_0x3258ec,_0x163ed3,_0x16c816,_0x512cde){for(let _0xb28673=_0x512cde;_0xb28673<_0x16c816['length'];_0xb28673++){const _0x218c01=_0x16c816[_0xb28673];if(_0x218c01['type']!==_0x163ed3['type']||_0x218c01['author']['id']!==_0x163ed3['author']['id']||_0x218c01['subType']!==_0x163ed3['subType'])continue;if(!qt(_0x163ed3,_0x218c01))continue;if('attribute'==_0x163ed3['type']&&_0x163ed3['data']['oldValue']!=_0x218c01['data']['oldValue'])continue;if('attribute'==_0x163ed3['type']&&_0x3258ec['_isBlockAttribute'](_0x163ed3['data']['key']))continue;if('formatBlock'==_0x163ed3['type']){const _0x5165d6=_0x3258ec['editor']['model'],_0x4977f2=_0x163ed3['getContainedElement']();if(_0x4977f2&&(_0x5165d6['schema']['isObject'](_0x4977f2)||_0x5165d6['schema']['isLimit'](_0x4977f2)))continue;}const _0x5ed50b=_0x13a42d['get'](_0x163ed3),_0x505bd8=_0x5d7264['get'](_0x163ed3),_0x2bdd6e=_0x5d7264['get'](_0x218c01),_0x382073=_0x163ed3['commentThread']&&_0x163ed3['commentThread']['length'],_0x119d5a=_0x218c01['commentThread']&&_0x218c01['commentThread']['length'];if(!_0x382073&&_0x5ed50b(_0x2bdd6e,_0x505bd8))return _0x3258ec['_joinSuggestions'](_0x218c01,_0x163ed3),_0x5d7264['delete'](_0x163ed3),!0x0;if(!_0x119d5a&&_0x5ed50b(_0x505bd8,_0x2bdd6e))return _0x3258ec['_joinSuggestions'](_0x163ed3,_0x218c01),_0x5d7264['delete'](_0x218c01),!0x0;}return!0x1;}}['_joinSuggestions'](_0x158e30,_0x4971ca){if(_0x158e30['isMultiRange']){for(const _0x59c708 of _0x4971ca['getRanges']())_0x158e30['addRange'](_0x59c708);}else{const _0x3f4c74=_0x4971ca['getFirstRange']()['end'];this['_setSuggestionRange'](_0x158e30,this['_model']['createRange'](_0x158e30['getFirstRange']()['start'],_0x3f4c74));}_0x4971ca['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c7a78,_0x2d6039,_0x5e89eb){const _0x499f31=_0x3c7a78['startsWith']('format')||_0x3c7a78['startsWith']('attribute')?'FORMATTING':_0x3c7a78['toUpperCase']();return o(this['editor']['locale'],_0x2d6039+'_'+_0x499f31+'_SUGGESTION_ANNOUNCEMENT',_0x5e89eb);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a46d8=this['editor'];if(!_0x4a46d8['ui'])return;const {ariaLiveAnnouncer:_0x3e7d53}=_0x4a46d8['ui'];_0xbdba6c(this['_model'],({left:_0x50807d,entered:_0x1ac55c})=>{for(const _0x52e330 of _0x50807d){const {group:_0x35d2be,type:_0x43dd62}=this['_splitMarkerName'](_0x52e330['name']);if('suggestion'===_0x35d2be){_0x3e7d53['announce'](this['_getMarkerAnnouncementText'](_0x43dd62,'LEAVE'));break;}}for(const _0xf0c4e4 of _0x1ac55c){const {group:_0x2d6993,type:_0x233fb3}=this['_splitMarkerName'](_0xf0c4e4['name']);if('suggestion'===_0x2d6993){_0x3e7d53['announce'](this['_getMarkerAnnouncementText'](_0x233fb3,'ENTER',_0x46bc23(_0x2ea0eb)));break;}}});}['_processAttributeChanges'](_0x3357a7){if(this['_recordAttributeSuggestions'])return!0x1;const _0x5b1aca=this['editor'],_0x2bcc14=_0x5b1aca['model']['document']['differ']['getChanges']();if(0x0==_0x2bcc14['length'])return!0x1;const _0x31be5e=[],_0x576cec=_0x2bcc14['filter'](_0x1b0c26=>'attribute'==_0x1b0c26['type']),_0x4e49b7=_0x2bcc14['filter'](_0xe45b3f=>'insert'==_0xe45b3f['type']&&'$text'!=_0xe45b3f['name']),_0x3a6015=_0x2bcc14['filter'](_0x27ed10=>'remove'==_0x27ed10['type']&&'$text'!=_0x27ed10['name']);for(const _0x3556f0 of _0x576cec)_0x31be5e['push']({'key':_0x3556f0['attributeKey'],'newValue':_0x3556f0['attributeNewValue'],'oldValue':_0x3556f0['attributeOldValue'],'range':Lt(_0x3556f0['range'],_0x5b1aca['model'])});for(const _0x1c2a1f of _0x4e49b7){const _0x5c8554=_0x3a6015['find'](_0x9e7a0e=>_0x9e7a0e['position']['isEqual'](_0x1c2a1f['position']));_0x5c8554&&_0x31be5e['push']({'key':m,'newValue':_0x1c2a1f['name'],'oldValue':_0x5c8554['name'],'range':_0x5b1aca['model']['createRangeOn'](_0x1c2a1f['position']['nodeAfter'])});}return 0x0!=_0x31be5e['length']&&this['_reduceExistingSuggestions'](_0x3357a7,_0x31be5e);}['_processAttributeSuggestions'](_0x2bc3fc){let _0x2ce3ca=!0x1;const _0x308c69=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5b49d4=>_0x5b49d4['data']['newRange']&&_0x5b49d4['name']['startsWith']('suggestion:attribute:'));for(const _0x21b5a1 of _0x308c69){const {subType:_0x56798a,id:_0x1c915d}=this['_splitMarkerName'](_0x21b5a1['name']),_0x3a3580=_0x56798a['split']('|')[0x0];for(const _0x4e7863 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x4e7863['id']!=_0x1c915d&&'attribute'==_0x4e7863['type']&&_0x4e7863['data']&&_0x4e7863['data']['key']==_0x3a3580&&_0x4e7863['getFirstRange']()['isIntersecting'](_0x21b5a1['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x4e7863,_0x21b5a1['data']['newRange'],_0x2bc3fc),_0x2ce3ca=!0x0);}return _0x2ce3ca;}['_recordAttributeChanges'](_0x7fb3e4){this['_recordAttributeSuggestions']=!0x0,_0x7fb3e4();}['_isRegisteredAttribute'](_0x3ea79c){const _0x942062=this['_isBlockAttribute'](_0x3ea79c),_0x19ba8a=this['_inlineAttributeKeys']['has'](_0x3ea79c);return _0x942062||_0x19ba8a;}['_reduceExistingSuggestions'](_0x4d7df6,_0x2c6b20){if(0x0==_0x2c6b20['length'])return!0x1;let _0x4020f9=!0x1;for(const _0x4fa0db of _0x2c6b20){const _0x34b435=this['_findSuggestions'](_0x4fa0db['range'],'attribute')['filter'](_0x5aaffe=>!_0x5aaffe['meta']['isNextTo'])['map'](_0x59b5a7=>_0x59b5a7['suggestion']),_0x38976b=_0x1c304({'newValue':_0x4fa0db['newValue']});_0x34b435['filter'](_0x3a736f=>{const [_0x474cba,_0x357030]=_0x3a736f['subType']['split']('|');return _0x474cba==_0x4fa0db['key']&&_0x357030!=_0x38976b;})['forEach'](_0x926934=>{this['_reduceSuggestionAttributeRange'](_0x926934,_0x4fa0db['range'],_0x4d7df6),_0x4020f9=!0x0;});}return _0x4020f9;}['_reduceSuggestionAttributeRange'](_0x45070,_0x398190,_0x2c6681){const _0x201e58=_0x45070['getFirstRange']()['getDifference'](_0x398190);0x0!==_0x201e58['length']?0x1!==_0x201e58['length']?this['_breakSuggestionMarker'](_0x45070,_0x398190['start'],_0x398190['end']):this['_setSuggestionRange'](_0x45070,_0x201e58[0x0]):_0x2c6681['removeMarker'](_0x45070['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x48aea9){this['_editor']=_0x48aea9,this['_model']=_0x48aea9['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1cfdd4,_0x515f65,_0x474d8c,_0x3d3da4,_0x43fde4,_0x2b53bb){return new u(this['_model'],{'type':_0x1cfdd4,'subType':_0x515f65,'id':_0x474d8c,'author':_0x3d3da4,'creator':_0x3d3da4,'attributes':_0x43fde4,'onAttributesChange':_0x2b53bb,'onAccept':(..._0x2492bb)=>this['getSuggestionCallback'](_0x1cfdd4,_0x515f65,'accept')(..._0x2492bb),'onDiscard':(..._0x41b306)=>this['getSuggestionCallback'](_0x1cfdd4,_0x515f65,'discard')(..._0x41b306)});}['registerCustomCallback'](_0x46cefb,_0x5bb6dd,_0x38f65e,_0x59a7b4){const _0x48743e=_0x46cefb+':'+_0x5bb6dd+':'+_0x38f65e;this['_customCallbacks']['set'](_0x48743e,_0x59a7b4);}['getSuggestionCallback'](_0x38d8a3,_0x404b0,_0x21ae67){const _0x3a830c=_0x38d8a3+':'+_0x404b0+':'+_0x21ae67;return this['_customCallbacks']['get'](_0x3a830c)||this['_defaultCallbacks']['get'](_0x38d8a3+':'+_0x21ae67);}['_registerDefaultCallbacks'](){const _0x38642e=()=>!0x1,_0x17b733=_0x47691e=>{_0x47691e['sort']((_0x23d372,_0x98d5c4)=>_0x23d372['start']['isBefore'](_0x98d5c4['start'])?0x1:-0x1),this['_model']['change'](_0x5b8b95=>{for(const _0x391a1 of _0x47691e){let _0x4137cb;_0x4137cb=_0x391a1['end']['isAtEnd']&&_0x391a1['end']['parent']==_0x391a1['start']['nodeAfter']?_0x5b8b95['createSelection'](_0x391a1['start']['nodeAfter'],'on'):_0x5b8b95['createSelection'](_0x391a1),this['_model']['deleteContent'](_0x4137cb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x542a2f=(_0x26705d,_0x1aa749)=>{_0x1aa749&&this['_model']['change'](_0x1cac48=>{const {commandName:_0x3a2182,commandParams:_0x2e6cac=[]}=_0x1aa749,_0x4e08b2=_0x26705d['map'](_0x3cdf9e=>(Vt(_0x3cdf9e)&&(_0x3cdf9e=this['_model']['createRange'](_0x3cdf9e['end'])),_0x3cdf9e))['filter'](_0x45fdd1=>'$graveyard'!==_0x45fdd1['root']['rootName']);if(_0x4e08b2['length']<0x1)return;const _0x3a9c60=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x579d39=>_0x4daf91['fromRange'](_0x579d39));_0x1cac48['setSelection'](_0x4e08b2);for(const _0x4b672e of this['_editor']['commands']['commands']())_0x4b672e['refresh']();_0x2e6cac['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3a2182,..._0x2e6cac);const _0x57a54d=_0x3a9c60['filter'](_0x4af006=>'$graveyard'!=_0x4af006['root']['rootName']);_0x57a54d['length']>0x0&&_0x1cac48['setSelection'](_0x57a54d);for(const _0x1922d1 of _0x3a9c60)_0x1922d1['detach']();});},_0x171ce3=(_0x36b786,_0x3a6900)=>0x1==_0x36b786['length']&&0x1==_0x3a6900['length']&&_0x36b786[0x0]['end']['isEqual'](_0x3a6900[0x0]['start']),_0x596b3f=(_0x54434e,_0x233a01,_0x2ff0ba,_0x1ae3ba)=>Ht(_0x54434e,_0x233a01,_0x2ff0ba,_0x1ae3ba)?[_0x54434e,_0x233a01]:Ht(_0x233a01,_0x54434e,_0x1ae3ba,_0x2ff0ba)?[_0x233a01,_0x54434e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x38642e),this['_defaultCallbacks']['set']('insertion:discard',_0x17b733),this['_defaultCallbacks']['set']('insertion:join',_0x171ce3),this['_defaultCallbacks']['set']('insertion:chain',_0x596b3f),this['_defaultCallbacks']['set']('deletion:accept',_0x17b733),this['_defaultCallbacks']['set']('deletion:discard',_0x38642e),this['_defaultCallbacks']['set']('deletion:join',_0x171ce3),this['_defaultCallbacks']['set']('deletion:chain',_0x596b3f),this['_defaultCallbacks']['set']('formatInline:accept',_0x542a2f),this['_defaultCallbacks']['set']('formatInline:discard',_0x38642e),this['_defaultCallbacks']['set']('formatInline:join',_0x171ce3),this['_defaultCallbacks']['set']('formatInline:chain',_0x38642e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x542a2f),this['_defaultCallbacks']['set']('formatBlock:discard',_0x38642e),this['_defaultCallbacks']['set']('formatBlock:join',_0x171ce3),this['_defaultCallbacks']['set']('formatBlock:chain',_0x38642e),this['_defaultCallbacks']['set']('attribute:accept',_0x38642e),this['_defaultCallbacks']['set']('attribute:discard',(_0x4115a1,_0x159487)=>{if(!_0x159487)return;const _0x489b64=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2e2d5b=>{if(_0x159487['key']==m)for(const _0x19c05c of _0x4115a1){const _0x45dabe=_0x19c05c['start']['nodeAfter'],_0xd334a4=_0x159487['oldValue'];_0x2e2d5b['rename'](_0x45dabe,_0xd334a4);}else{if(_0x489b64['_isBlockAttribute'](_0x159487['key'])){for(const _0x391cbc of _0x4115a1)void 0x0!==_0x159487['oldValue']?_0x2e2d5b['setAttribute'](_0x159487['key'],_0x159487['oldValue'],_0x391cbc['start']['nodeAfter']):_0x2e2d5b['removeAttribute'](_0x159487['key'],_0x391cbc['start']['nodeAfter']);}else{for(const _0x86d85b of _0x4115a1)_0x159487['oldValue']?_0x2e2d5b['setAttribute'](_0x159487['key'],_0x159487['oldValue'],_0x86d85b):_0x2e2d5b['removeAttribute'](_0x159487['key'],_0x86d85b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x171ce3);}}function Ut(_0x18d651,_0x15f842,_0x340360){for(const _0x2d6af1 of _0x15f842['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2d6af1['root']==_0x2d6af1)return!0x1;if(!_0x340360['containsItem'](_0x2d6af1))return!0x1;if(_0x18d651['isObject'](_0x2d6af1)||_0x18d651['isLimit'](_0x2d6af1))return!0x0;}return!0x1;}function Vt(_0x24be04){return _0x24be04['end']['parent']==_0x24be04['start']['nodeAfter']&&_0x24be04['end']['isAtStart'];}function Pt(_0x3735fd,_0x19af3d,_0xfefc5d,_0x2e3fae){const _0x28ce68=_0x3f8662=>!_0x3f8662['item']['is']('$textProxy')&&!_0x2e3fae['isObject'](_0x3f8662['item']),_0x355457=_0x3735fd['start']['getLastMatchingPosition'](_0x28ce68),_0x3a7106=_0x3735fd['end']['getLastMatchingPosition'](_0x28ce68,{'direction':'backward'});return(!_0x3735fd['start']['isEqual'](_0x355457)||!_0x3735fd['end']['isEqual'](_0x3a7106))&&(_0x355457['isBefore'](_0x3a7106)?_0xfefc5d['updateMarker'](_0x19af3d,{'range':_0xfefc5d['createRange'](_0x355457,_0x3a7106)}):_0xfefc5d['removeMarker'](_0x19af3d),!0x0);}function Gt(_0x5291a2){return _0x1c304(_0x5291a2);}function Ft(_0x3a4f0a){const _0x3c92f1=_0x3a4f0a['start']['nodeAfter'];return _0x3c92f1&&_0x3c92f1['is']('element');}function Lt(_0x12173c,_0x181fce){return null==_0x12173c['end']['nodeBefore']&&_0x12173c['end']['parent']==_0x12173c['start']['nodeAfter']?Jt(_0x12173c['start']['nodeAfter'],_0x181fce):_0x12173c;}function Jt(_0x49f58a,_0x45d1be){const _0x5770f5=_0x45d1be['schema']['isObject'](_0x49f58a)||_0x45d1be['schema']['isSelectable'](_0x49f58a);return _0x45d1be['createRange'](_0x45d1be['createPositionAt'](_0x49f58a,'before'),_0x5770f5?_0x45d1be['createPositionAfter'](_0x49f58a):_0x45d1be['createPositionAt'](_0x49f58a,'end'));}function Ht(_0x4b6686,_0x50e746,_0x4ac765,_0x584ff3){return!!qt(_0x4b6686,_0x50e746)&&_0x4ac765['end']['isEqual'](_0x584ff3['start']);}function qt(_0x59840f,_0x260157){if(!_0x59840f['_isDataLoaded']||!_0x260157['_isDataLoaded'])return!0x1;const _0x3177a5=new Set(Object['keys'](_0x59840f['attributes'])),_0x14ebfe=new Set(Object['keys'](_0x260157['attributes']));if(_0x3177a5['delete']('groupId'),_0x14ebfe['delete']('groupId'),0x0==_0x3177a5['size']&&0x0==_0x14ebfe['size'])return!0x0;if(_0x3177a5['size']!=_0x14ebfe['size'])return!0x1;const _0x461c52={..._0x59840f['attributes']},_0x1fb3ee={..._0x260157['attributes']};return delete _0x461c52['groupId'],delete _0x1fb3ee['groupId'],JSON['stringify'](_0x461c52)==JSON['stringify'](_0x1fb3ee);}function zt(_0x49c92d,_0x20e7f8){const _0x3fd23f=Kt(_0x49c92d['attributes']),_0x5530f0=Kt(_0x20e7f8);if(!_0x49c92d['_isDataLoaded'])return!0x1;for(const _0x573e22 of Object['keys'](_0x5530f0))if(!_0x1a4045(_0x3fd23f[_0x573e22],_0x5530f0[_0x573e22]))return!0x1;return!0x0;}function Kt(_0x2c257a){const _0x2b189a=Object['assign']({},_0x2c257a);return delete _0x2b189a['skipNestingCheck'],delete _0x2b189a['tablePasteChainId'],_0x2b189a;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x235e1f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2b7890,_0x58c1a1,_0x2d3552,_0x51e2c1){super(),this['model']=_0x58c1a1,this['view']=_0x2d3552,this['commentThreadController']=_0x51e2c1,this['_editor']=_0x2b7890,this['_acceptCommand']=_0x2b7890['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2b7890['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x27490b,_0x49e5e9)=>_0x27490b||_0x49e5e9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5b6434=>_0x5b6434&&this['_editor']['model']['canEditAt'](_0x58c1a1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3642f3=>_0x3642f3&&this['_editor']['model']['canEditAt'](_0x58c1a1['getRanges']())),this['_pendingAction']=null,_0x2d3552['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2d3552,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2d3552,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2d3552,'change:isDirty',()=>{_0x2d3552['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 _0x3226ed=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3226ed);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x4bd17a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x17e6da,_0x54ed5f,_0x5c1f74,_0x45f578){super(_0x17e6da),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x7503c5(_0x17e6da,o(_0x17e6da,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x54ed5f['authoredAt']),this['bind']('authoredAt')['to'](_0x54ed5f),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',_0x54ed5f,'authoredAt',this,'descriptionParts',(_0x44de1e,_0x13f257,_0x598bf8)=>{const _0x2c905c=_0x598bf8['map'](_0x552643=>ns(_0x552643['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x44de1e-0x1,_0x54ed5f['author']['name'],_0x13f257?_0x45f578['formatDateTime'](_0x13f257):'',new DOMParser()['parseFromString'](_0x2c905c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x32304b(),this['focusTracker']=new _0x24e33d(),this['keystrokes']=new _0x2c0aef(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4f00e6=>_0x4f00e6['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x54ed5f,this['_localUser']=_0x5c1f74,this['_config']=_0x45f578,_0x45f578['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x51e096(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4baf43}=this['_config'];this['commentsListView']=new _0x4baf43(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',_0x34eb02=>_0x34eb02+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x32a422,_0x57477f)=>_0x32a422||!!_0x57477f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2d5245}=this['_config'],_0x3bd95e=new _0x2d5245(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x326534=_0x3bd95e['commentInputView'];return _0x3bd95e['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x326534,'value',(_0x2f3e64,_0x48a9ea,_0x57685f)=>!!_0x57685f||_0x2f3e64&&!_0x48a9ea),_0x326534['on']('submit',(_0x3eed84,_0x4e60e5)=>{this['fire']('addComment',_0x4e60e5),_0x326534['editor']['setData']('');}),_0x326534['on']('cancel',()=>this['focus']()),_0x326534['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3bd95e;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x56a84d,_0x1ff8fc,_0x442365,_0xcdf394){super(_0x56a84d,_0x1ff8fc,_0x442365,_0xcdf394),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4af229=>_0x4af229&&_0x4af229[0x0]?_0x4af229[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe294c8,_0x3e4f7f)=>{let _0x18d202='';for(const _0x11b203 of _0xe294c8)_0x18d202+='<p>'+ns(_0x11b203['content'],_0x11b203['color'])+'</p>';return _0x3e4f7f?_0x18d202:ti(_0x18d202,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xcdf394['SuggestionView'](_0x56a84d,_0x1ff8fc,{'formatDateTime':_0xcdf394['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 _0x4b23eb=this['bindTemplate'],_0x35c2ae=[this['suggestionView']];return this['commentsListView']&&_0x35c2ae['push'](this['commentsListView']),this['commentThreadInputView']&&_0x35c2ae['push'](this['commentThreadInputView']),_0x35c2ae['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4b23eb['if']('isActive','ck-suggestion-wrapper--active'),_0x4b23eb['to']('type',_0x10d548=>'ck-suggestion-'+_0x10d548),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':_0x4b23eb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x35c2ae};}['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 ue extends _0x4bd17a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3691d3,_0x4549c5,_0x1f530e){super(_0x3691d3),this['_model']=_0x4549c5,this['_config']=_0x1f530e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4549c5),this['acceptButton']=this['_createButton'](o(_0x3691d3,'Accept\x20suggestion'),_0x2c4691['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3691d3,'Discard\x20suggestion'),_0x2c4691['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x403439(_0x3691d3,_0x4549c5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x32304b([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x24e33d(),this['keystrokes']=new _0x2c0aef(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0xa3160c=>_0xa3160c['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x13a071=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x13a071['innerHTML']=this['description'],this['on']('change:description',(_0x210853,_0x4ffb16,_0xdc54a3)=>{_0x13a071['innerHTML']=_0xdc54a3;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1804fb=this['bindTemplate'],_0x87bed0=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x1804fb['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1804fb['to']('authoredAt',_0x17ca9c=>this['_config']['formatDateTime'](_0x17ca9c))}]}]},{'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']&&_0x87bed0['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':_0x87bed0}]};}['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'](_0x160878,_0x354fe9,_0x33fb31,_0x2a59ce,_0x422757){const _0x141b4c=new _0x3253a5(this['locale']);return _0x141b4c['set']({'label':_0x160878,'icon':_0x354fe9,'tooltip':!0x0,'tooltipPosition':_0x422757}),_0x141b4c['extendTemplate']({'attributes':{'class':_0x33fb31}}),_0x141b4c['on']('execute',()=>{this['fire'](_0x2a59ce,this['_model']['id']);}),_0x141b4c;}['_setupKeyboardNavigation'](){const _0x5e231a=this['element'];this['keystrokes']['listenTo'](_0x5e231a);for(const _0x224e1b of this['focusables'])this['focusTracker']['add'](_0x224e1b['element']),this['keystrokes']['listenTo'](_0x224e1b['element']);this['keystrokes']['set']('enter',(_0x2d8f55,_0x2d87df)=>{_0x5e231a===_0x2d8f55['target']&&(this['focusCycler']['focusFirst'](),_0x2d87df());}),this['keystrokes']['set']('esc',(_0x582c48,_0x1a016a)=>{_0x5e231a!==_0x582c48['target']&&(this['focus'](),_0x1a016a());});}}var Ce='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\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 _0x4a8caa{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x117a29,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53c16f){super(_0x53c16f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1f9871=this['editor']['config'];_0x1f9871['define']('trackChanges.SuggestionThreadView',de),_0x1f9871['define']('trackChanges.SuggestionView',ue),_0x1f9871['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1f9871['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x47a744,_0x490fbe){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1c8a4f,_0x58c94b]of this['_handleControllerBuffer']){const _0x2e31ad=this['_suggestionToController']['has'](_0x1c8a4f);_0x2e31ad||_0x58c94b?_0x2e31ad&&_0x58c94b&&this['_destroyController'](_0x1c8a4f):this['_initializeController'](_0x1c8a4f);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x47a744,_0x490fbe);}['init'](){const _0x134e4f=this['editor'],_0x518655=_0x134e4f['plugins']['get']('TrackChangesEditing'),_0x2645d8=_0x134e4f['plugins']['get']('Annotations'),_0x6d048f=_0x134e4f['plugins']['get']('EditorAnnotations'),_0xe2a72f=_0x134e4f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6d048f['addSourceCollector'](()=>{const _0x3fa866=[];for(const [_0x4679c5,_0x5ec86f]of Array['from'](this['_suggestionToController'])){const _0x37a04e=_0x4679c5['getAllAdjacentSuggestions'](),_0x146a0b=[];for(const _0x8aea90 of _0x37a04e){if(!_0x8aea90['isInContent'])continue;if(_0x8aea90['isMultiRange']){_0x146a0b['push'](..._0x8aea90['getRanges']());continue;}const _0x26e87d=_0x8aea90['getFirstRange']();if(_0x146a0b['length']>0x0){const _0x2166ef=_0x146a0b[0x0]['getJoined'](_0x26e87d);if(_0x2166ef){_0x146a0b[0x0]=_0x2166ef;continue;}}_0x146a0b['push'](_0x26e87d);}_0x3fa866['push']([_0x5ec86f['view'],_0x146a0b]);}return _0x3fa866;}),this['listenTo'](_0x518655,'suggestionLoaded',(_0x5b3264,_0x45d22a)=>{this['listenTo'](_0x45d22a,'change:previous',(_0x5a85da,_0x17554b,_0x15b81a,_0x18013b)=>{_0x45d22a['isInContent']&&(null==_0x15b81a?(this['_updateController'](_0x18013b['head']),this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x1)):(this['_updateController'](_0x15b81a['head']),null==_0x18013b&&this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x0)));}),null!==_0x45d22a['previous']?this['_updateController'](_0x45d22a['head']):this['_handleSuggestionControllerDelayed'](_0x45d22a,!0x1);}),this['listenTo'](_0x518655,'suggestionUnloaded',(_0x522c89,_0x480158,_0xc64270)=>{this['stopListening'](_0x480158,'change:previous'),this['_handleControllerBuffer']['delete'](_0x480158),this['_suggestionToController']['has'](_0x480158)&&this['_destroyController'](_0x480158),_0xc64270&&this['_updateController'](_0xc64270['head']);}),this['listenTo'](_0x518655,'suggestionChanged',(_0x5503bd,_0x40e1ce)=>{this['_updateController'](_0x40e1ce);}),this['listenTo'](_0x2645d8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe2a72f,'addComment',(_0x10ed6a,{threadId:_0x3118d5,isFromAdapter:_0x57de31})=>{if(_0x57de31||!_0x518655['hasSuggestion'](_0x3118d5))return;const _0x45e497=_0x518655['getSuggestion'](_0x3118d5);this['_suggestionToController']['get'](_0x45e497)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x52644d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b9320;for(const _0x41189c in _0x52644d){const _0x10ada8=_0x41189c,_0x2f2194=_0x52644d[_0x10ada8];if('trackChangesLicenseKeyValid'==_0x2f2194||'trackChangesLicenseKeyInvalid'==_0x2f2194||'trackChangesLicenseKeyExpired'==_0x2f2194||'trackChangesLicenseKeyDomainLimit'==_0x2f2194||'trackChangesLicenseKeyNotAllowed'==_0x2f2194||'trackChangesLicenseKeyEvaluationLimit'==_0x2f2194||'trackChangesLicenseKeyTrialLimit'==_0x2f2194||'trackChangesLicenseKeyDevelopmentLimit'==_0x2f2194||'trackChangesLicenseKeyUsageLimit'==_0x2f2194){delete _0x52644d[_0x10ada8],_0x1b9320=_0x2f2194,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1b9320&&_0x52644d['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1b9320&&_0x52644d['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1b9320&&_0x52644d['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1b9320&&_0x52644d['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x510bb7=this['editor']['plugins']['get']('Annotations'),_0x229926=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18e17e=Array['from'](_0x510bb7['activeAnnotations'],_0x4396dc=>_0x4396dc['innerView'])['filter'](_0x33832a=>this['_viewToController']['has'](_0x33832a)),_0x4fac4f=[];for(const _0x3030eb of _0x18e17e){const _0x1768d7=this['_viewToController']['get'](_0x3030eb)['model']['getAllAdjacentSuggestions']();_0x4fac4f['push'](..._0x1768d7['reduce']((_0x221e98,_0x1b1e5)=>[..._0x221e98,..._0x1b1e5['getMarkerNames']()],[]));}_0x229926['activeMarkers']=_0x4fac4f;}['_addUIComponentsToFactory'](){const _0x198f2d=this['editor'],_0x2e5124=_0x198f2d['locale'],_0x1f1668=o(_0x2e5124,'Track\x20changes'),_0xf8fd96=new _0x2afe4c([{'type':'switchbutton','model':new _0x136c8f({'withText':!0x0,'isToggleable':!0x0,'label':_0x1f1668,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x136c8f({'withText':!0x0,'label':o(_0x2e5124,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x449ac5 of _0xf8fd96)if(pe(_0x449ac5)){const _0x6411a3=_0x198f2d['commands']['get'](_0x449ac5['model']['commandName']);_0x449ac5['model']['bind']('isOn','isEnabled')['to'](_0x6411a3,'value','isEnabled');}_0x198f2d['ui']['componentFactory']['add']('trackChanges',_0x49cfa3=>this['_createToolbarButton'](_0x49cfa3,_0xf8fd96,_0x1f1668)),_0x198f2d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x54174a=>this['_createMenuBarMenu'](_0x54174a,_0xf8fd96,_0x1f1668));}['_createToolbarButton'](_0x19583b,_0x23be80,_0x4915f8){const _0x2d7623=_0x168dba(_0x19583b,_0x336f15),_0x4ce603=this['editor']['commands']['get']('trackChanges');_0x2d7623['buttonView']['set']({'tooltip':_0x4915f8,'label':_0x4915f8,'icon':Ce}),_0x2d7623['buttonView']['bind']('isOn')['to'](_0x4ce603,'value'),_0x2d7623['buttonView']['on']('execute',()=>{_0x4ce603['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x2d7623,_0x23be80,{'role':'menu'});const _0x121958=[];for(const _0x2d4d89 of _0x23be80)pe(_0x2d4d89)&&_0x121958['push'](this['editor']['commands']['get'](_0x2d4d89['model']['commandName']));const _0x18e220=_0x2d7623['buttonView'];return _0x18e220['actionView']['unbind']('isEnabled'),_0x18e220['arrowView']['unbind']('isEnabled'),_0x18e220['actionView']['bind']('isEnabled')['to'](_0x4ce603,'isEnabled'),_0x18e220['arrowView']['bind']('isEnabled')['toMany'](_0x121958,'isEnabled',(..._0xa0f141)=>_0xa0f141['some'](_0x3c2908=>_0x3c2908)),_0x2d7623['on']('execute',_0x32fda8=>{this['editor']['execute'](_0x32fda8['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d7623;}['_createMenuBarMenu'](_0x25c610,_0x53a978,_0x28260c){const _0x28bbb3=new _0x4b9f92(_0x25c610),_0x912b4e=this['editor']['commands']['get']('trackChanges');_0x28bbb3['buttonView']['set']({'label':_0x28260c,'icon':Ce});const _0xeba63b=new _0x1b30e5(_0x25c610);for(const _0x3eadeb of _0x53a978){if('separator'==_0x3eadeb['type']){_0xeba63b['items']['add'](new _0xf49527(_0x25c610));continue;}const _0x3811b9=new _0x1e06fb(_0x25c610,_0x28bbb3),_0x143cca=new _0x209c2c(_0x25c610),_0x45fef3=_0x3eadeb['model'];_0x143cca['bind'](...Object['keys'](_0x45fef3))['to'](_0x45fef3),_0x143cca['delegate']('execute')['to'](_0x28bbb3),_0x143cca['on']('execute',()=>{this['editor']['execute'](_0x45fef3['commandName']),this['editor']['editing']['view']['focus']();}),_0x3811b9['children']['add'](_0x143cca),_0xeba63b['items']['add'](_0x3811b9);}return _0x28bbb3['bind']('isEnabled')['to'](_0x912b4e,'isEnabled'),_0x28bbb3['panelView']['children']['add'](_0xeba63b),_0x28bbb3;}['_initializeController'](_0x5a6ab3){const _0x235d46=this['editor'],_0x2fd20f=_0x235d46['config'],_0x4b2d00=_0x235d46['plugins']['get']('Annotations'),_0x387e40=_0x235d46['plugins']['get']('CommentsRepository'),_0x5989ff=_0x235d46['plugins']['get']('EditorAnnotations'),_0x2dead6=_0x235d46['plugins']['get'](_0x117a29)['me'],_0x583e20=_0x2fd20f['get']('trackChanges')['SuggestionThreadView'],_0x3ec6ab=_0x2fd20f['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x1db002,CommentThreadInputView:_0x14ff2e}=_0x235d46['plugins']['get']('CommentsUI');let _0x4ae8cc,_0x5c7e2d,_0x14bf05;this['_annotationViews']['has'](_0x5a6ab3['id'])?(_0x5c7e2d=this['_annotationViews']['get'](_0x5a6ab3['id']),_0x4ae8cc=_0x5c7e2d['mainView']):(_0x4ae8cc=new _0x583e20(_0x235d46['locale'],_0x5a6ab3,_0x2dead6,{'disableComments':this['_disableComments'],'editorConfig':{..._0x2fd20f['get']('comments.editorConfig'),'licenseKey':_0x2fd20f['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x2fd20f['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x2fd20f['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x2fd20f['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4be061(_0x2fd20f['get']('locale')),'CommentView':_0x2fd20f['get']('comments')['CommentView'],'CommentsListView':_0x1db002,'CommentThreadInputView':_0x14ff2e,'SuggestionView':_0x3ec6ab}),_0x4ae8cc['suggestionView']['acceptButton']['on']('execute',()=>{_0x235d46['editing']['view']['focus']();}),_0x4ae8cc['suggestionView']['discardButton']['on']('execute',()=>{_0x235d46['editing']['view']['focus']();}),_0x5c7e2d=_0x4b2d00['createAnnotationView'](this['editor']['locale'],_0x4ae8cc),_0x5c7e2d['bind']('isDirty')['to'](_0x4ae8cc,'isDirty'),_0x5c7e2d['bind']('length')['to'](_0x4ae8cc),_0x5c7e2d['bind']('type')['to'](_0x4ae8cc,'type',_0xd1a0bf=>'suggestion-'+_0xd1a0bf),_0x4ae8cc['on']('escape',()=>{_0x14bf05['fire']('escape');}),this['_annotationViews']['set'](_0x5a6ab3['id'],_0x5c7e2d));const _0x5b3363=_0x387e40['createCommentThreadController'](_0x5a6ab3['commentThread'],_0x4ae8cc),_0x277c44=new ge(_0x235d46,_0x5a6ab3,_0x4ae8cc,_0x5b3363),_0x535d0d=_0x5a6ab3['getAllAdjacentSuggestions']()['filter'](_0xd51501=>_0xd51501['isInContent']);_0x4ae8cc['descriptionParts']=_0x235d46['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x535d0d),this['_suggestionToController']['set'](_0x5a6ab3,_0x277c44),this['_viewToController']['set'](_0x4ae8cc,_0x277c44),_0x14bf05=_0x4b2d00['createAnnotation']({'view':_0x5c7e2d,'target':()=>{const _0x349b1e=[],_0x249505=_0x5a6ab3['getAllAdjacentSuggestions']()['filter'](_0x5cbce1=>_0x5cbce1['isInContent']);for(const _0xa054f6 of _0x249505)_0x349b1e['push'](..._0xa054f6['getMarkers']());return _0x4031ca(_0x235d46['editing'],_0x349b1e);},'type':()=>'suggestion-'+_0x277c44['view']['type']}),_0x387e40['_bindAnnotationToEditors'](_0x4ae8cc,_0x14bf05),_0x4b2d00['add'](_0x14bf05),_0x5989ff['registerAnnotation'](_0x14bf05);}['_destroyController'](_0x463a60){const _0x477181=this['editor']['plugins']['get']('CommentsRepository'),_0x482edd=this['editor']['plugins']['get']('Annotations'),_0xc3d0ce=this['_suggestionToController']['get'](_0x463a60),_0x2a65ea=_0xc3d0ce['view'],_0x5c472e=_0x482edd['getByInnerView'](_0x2a65ea);_0x477181['_unbindEditors'](_0x2a65ea),_0x5c472e&&_0x482edd['remove'](_0x5c472e),this['_suggestionToController']['delete'](_0x463a60),this['_viewToController']['delete'](_0x2a65ea),_0xc3d0ce['destroy']();}['_updateController'](_0x5ce84f){if(!_0x5ce84f['isInContent']||!this['_suggestionToController']['has'](_0x5ce84f))return;const _0xeca445=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33cf52=this['_suggestionToController']['get'](_0x5ce84f),_0x46cc7c=_0x5ce84f['getAllAdjacentSuggestions']();_0x33cf52['view']['descriptionParts']=_0xeca445['descriptionFactory']['getDescriptions'](_0x46cc7c);}['destroy'](){for(const _0x233690 of this['_suggestionToController']['keys']())this['_destroyController'](_0x233690);for(const _0x1de0b7 of this['_annotationViews']['values']())_0x1de0b7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5f3da7){return'model'in _0x5f3da7;}class k extends _0x4a8caa{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1320d5){this['editor']['plugins']['get'](p)['adapter']=_0x1320d5;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x5ec838){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x5ec838);}['getSuggestions']({skipNotAttached:_0x30a5af=!0x1,toJSON:_0x2257b6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x30a5af,'toJSON':_0x2257b6});}['getSuggestion'](_0x240b8f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x240b8f);}}const w=['Pagination'];class T extends _0x4a8caa{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x429926=this['editor'];if(_0x429926['config']['define']('trackChangesData.editorCreator',_0x5638cc=>{const _0x4be9d4=_0x429926['model']['document']['getRootNames']()['reduce']((_0x241416,_0x283907)=>(_0x241416[_0x283907]='',_0x241416),{});return _0x429926['constructor']['create'](_0x4be9d4,_0x5638cc);}),'function'!=typeof _0x429926['config']['get']('trackChangesData')['editorCreator'])throw new _0x562698('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x81241){return N(this['editor'],!0x0,_0x81241);}['getDataWithDiscardedSuggestions'](_0x1064e7){return N(this['editor'],!0x1,_0x1064e7);}}class D extends _0x4a8caa{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xfe45bd){function _0x58965e(_0x1bfd50){return _0x1bfd50['map'](_0x174749=>String['fromCharCode'](_0x174749))['join']('');}super(_0xfe45bd),this['result']='end',_0xfe45bd[_0x58965e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58965e([0x76,0x69,0x65,0x77])][_0x58965e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58965e([0x61,0x75,0x74,0x6f]),_0xfe45bd[_0x58965e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58965e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58965e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58965e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58965e([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 v(_0x2bf95b){return void 0x0!==_0x2bf95b['getRootsAttributes'];}async function N(_0x586ac0,_0x5ce198,_0x5f489e){const _0x285a38=_0x151acd(_0x586ac0,w);_0x285a38['plugins']['push'](p,D),_0x285a38['rootsAttributes']=v(_0x586ac0)?_0x586ac0['getRootsAttributes']():void 0x0;const _0x115a2b=document['createDocumentFragment'](),_0x5554ce=_0x586ac0['config']['get']('trackChangesData')['editorCreator'],_0x5962ac=await _0x5554ce(_0x285a38,()=>function(_0x55f660){const _0x15eceb=document['createElement']('div');return _0x55f660['appendChild'](_0x15eceb),_0x15eceb;}(_0x115a2b));!function(_0x2b8f82,_0x32e069){const _0x567416=_0x2b8f82['model']['document']['getRootNames']()['reduce']((_0x70417e,_0x1f1bb8)=>(_0x70417e[_0x1f1bb8]=_0x2b8f82['data']['get']({'rootName':_0x1f1bb8}),_0x70417e),{}),_0x18a45e=_0x2b8f82['plugins']['get']('Users')['users']['map'](_0x4d7d75=>({'id':_0x4d7d75['id'],'name':_0x4d7d75['name']})),_0x4002ae=_0x2b8f82['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3feb0f=_0x2b8f82['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2c8d7a=_0x32e069['plugins']['get']('Users'),_0xcd8542=_0x32e069['plugins']['get']('TrackChangesEditing'),_0x35f8f1=_0x32e069['plugins']['get']('CommentsRepository');for(const _0x50401e of _0x35f8f1['getCommentThreads']())_0x50401e['remove']();for(const _0x5d0d1b of _0x18a45e)_0x2c8d7a['getUser'](_0x5d0d1b['id'])||_0x2c8d7a['addUser'](_0x5d0d1b);_0x2c8d7a['me']||_0x2c8d7a['useAnonymousUser']();for(const _0x45f5ac of _0x3feb0f)_0x35f8f1['addCommentThread'](_0x45f5ac);for(const _0x3648fd of _0x4002ae)_0xcd8542['addSuggestionData'](_0x3648fd);_0x32e069['data']['set'](_0x567416);}(_0x586ac0,_0x5962ac),_0x5962ac['execute'](_0x5ce198?'acceptAllSuggestions':'discardAllSuggestions');const _0x4a11c2=v(_0x5962ac)?_0x5962ac['getFullData'](_0x5f489e):_0x5962ac['data']['get'](_0x5f489e);return await _0x5962ac['destroy'](),_0x4a11c2;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|