@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20241220.0 → 0.0.0-nightly-20241221.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +10 -10
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as Qt,Plugin as
|
|
24
|
-
_0x17df49(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x7b4a3f,_0x32f6e7){super(),this['id']=_0x32f6e7['id'],this['type']=_0x32f6e7['type'],this['subType']=_0x32f6e7['subType']||null,this['author']=_0x32f6e7['author'],this['creator']=_0x32f6e7['creator']||_0x32f6e7['author'],this['isExternal']=Boolean(_0x32f6e7['attributes']&&_0x32f6e7['attributes']['@external']),this['data']=null,this['_model']=_0x7b4a3f,this['_onAccept']=_0x32f6e7['onAccept'],this['_onDiscard']=_0x32f6e7['onDiscard'],this['_onAttributesChange']=_0x32f6e7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x32f6e7['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 _0x210757=this;for(;_0x210757['previous'];)_0x210757=_0x210757['previous'];return _0x210757;}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'](_0x420e88){this['_markerNames']['add'](_0x420e88);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5e5b8a=>this['_model']['markers']['get'](_0x5e5b8a))['filter'](_0xaf270f=>_0xaf270f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4b5d17=>{for(const _0x4336f5 of this['getMarkers']())_0x4b5d17['removeMarker'](_0x4336f5);}),this['_markerNames']['clear']();}['removeMarker'](_0x3fcf37){this['_model']['change'](_0x45cbb5=>{_0x45cbb5['removeMarker'](_0x3fcf37);}),this['_markerNames']['delete'](_0x3fcf37);}['addRange'](_0x3d8b14){const _0x925cdd='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x925cdd),this['_model']['change'](_0x3ada37=>{_0x3ada37['addMarker'](_0x925cdd,{'range':_0x3d8b14,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1a0605){for(const _0x2e041b of this['getRanges']())if(_0x2e041b['isIntersecting'](_0x1a0605))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1bb2b3=>_0x1bb2b3['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3d56d7,_0x3025e7)=>[..._0x3d56d7,..._0x3025e7['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46e321=this['getRanges']();if(0x1!=_0x46e321['length'])return null;const _0xe2747c=_0x46e321[0x0],_0x5055e2=_0xe2747c['start']['nodeAfter'],_0x419240=_0xe2747c['end']['nodeBefore'];return _0x5055e2 instanceof _0x505d02?_0x5055e2!=_0x419240?null:_0x5055e2: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 _0x37c1d3=[];let _0x11a214=this['head'];for(;_0x11a214;)_0x37c1d3['push'](_0x11a214),_0x11a214=_0x11a214['next'];return _0x37c1d3;}['setAttribute'](_0x79d2bb,_0x5f7299){const _0x31191d=_0x14e263(this['attributes']);_0x14b4a9(_0x31191d,_0x79d2bb,_0x5f7299),_0x189bdb(_0x31191d,this['attributes'])||(this['attributes']=_0x31191d,this['_onAttributesChange'](_0x31191d));}['removeAttribute'](_0x4136fb){const _0x2ec96e=_0x14e263(this['attributes']);_0x153462(_0x2ec96e,_0x4136fb),_0x189bdb(_0x2ec96e,this['attributes'])||(this['attributes']=_0x2ec96e,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 _0x425cf6()['substr'](0x1,0x5);}}function o(_0x1a8dad,_0x383689,_0x33af2a){const _0x1c3ec4=_0x1a8dad['t'],t=_0x1a8dad['t'];switch(_0x383689){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',_0x33af2a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x33af2a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x33af2a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x33af2a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x33af2a);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',_0x33af2a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x33af2a);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',_0x33af2a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x33af2a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x33af2a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x33af2a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x33af2a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x33af2a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x33af2a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x33af2a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x33af2a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x33af2a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x33af2a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x33af2a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x33af2a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x33af2a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x33af2a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x33af2a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x33af2a);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'},_0x33af2a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x33af2a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x33af2a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x33af2a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x33af2a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x33af2a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x33af2a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x33af2a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x33af2a);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'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x33af2a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x33af2a);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'},_0x33af2a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x33af2a);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 _0x1c3ec4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x33af2a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1c3ec4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x33af2a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x33af2a);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'},_0x33af2a);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'},_0x33af2a);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'},_0x33af2a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x383689;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1b1d15,_0x5c1a2d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b1d15,this['_locale']=_0x5c1a2d;}['getDescriptions'](_0x491ff6){const _0xf08af2=[],_0x35c530=new Set(),_0x84ac5a=new Set();for(let _0x107b7b=0x0;_0x107b7b<_0x491ff6['length'];_0x107b7b++){const _0x798dc5=_0x491ff6[_0x107b7b];if(!_0x798dc5['isInContent'])continue;const _0x1f0b7c=this['_handleCustomCallbackDescription'](_0x798dc5);if(_0x1f0b7c){if(null!=_0x798dc5['subType']){if(_0x35c530['has'](_0x798dc5['subType']))continue;_0x35c530['add'](_0x798dc5['subType']);}_0xf08af2['push'](_0x1f0b7c);}else{if('attribute'!=_0x798dc5['type'])'insertion'!=_0x798dc5['type']&&'deletion'!=_0x798dc5['type']||this['_handleInsertRemoveSuggestionDescription'](_0xf08af2,_0x798dc5,_0x491ff6[_0x107b7b+0x1]);else{const _0x29398a=_0x798dc5['data']['key'];if(_0x84ac5a['has'](_0x29398a))continue;_0x84ac5a['add'](_0x798dc5['data']['key']),_0x29398a==m?this['_handleRenameSuggestionDescription'](_0xf08af2,_0x798dc5):this['_handleAttributeSuggestionDescription'](_0xf08af2,_0x798dc5);}}}return this['_resolveDescriptionItems'](_0xf08af2);}['registerDescriptionCallback'](_0x73f336){this['_customCallbacks']['push'](_0x73f336);}['registerElementLabel'](_0x14d890,_0x5825ae,_0x2b09f0=_0x5d6642['normal']){'function'==typeof _0x14d890?_0x242f2d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x14d890,'label':_0x5825ae,'priority':_0x2b09f0}):this['_itemLabels']['set'](_0x14d890,_0x5825ae);}['registerAttributeLabel'](_0x3f7bda,_0x55b643){this['_attributeLabels']['set'](_0x3f7bda,_0x55b643);}['getItemLabel'](_0x8196e1,_0x562e2a=0x1){let _0x255ba3;for(const _0x55f9ef of this['_itemLabelsCallbacks'])if(_0x55f9ef['matchingCallback'](_0x8196e1)){_0x255ba3=_0x55f9ef['label'];break;}return _0x255ba3||(_0x255ba3=this['_itemLabels']['get'](_0x8196e1['name'])),_0x255ba3?_0x255ba3(_0x562e2a):0x1!==_0x562e2a?_0x562e2a+'\x20'+_0x8196e1['name']+'s':''+_0x8196e1['name'];}['_addDescriptionItems'](_0x2647cd,_0x5b03b6){const _0x2e3f0b=_0x5b03b6['getFirstRange']()['getWalker'](),_0x198222='insertion'==_0x5b03b6['type']?'add':'remove';for(const _0x359bf0 of _0x2e3f0b){const _0xb061d5=_0x359bf0['item'],_0x5181e1=_0x2647cd[_0x2647cd['length']-0x1];if(_0xb061d5['is']('$textProxy'))_0x5181e1&&_0x5181e1['type']['indexOf']('Container')>-0x1&&_0x2647cd['pop'](),_0x5181e1&&'text'==_0x5181e1['type']?_0x5181e1[_0x198222]+=_0xb061d5['data']:_0x2647cd['push']({'type':'text','add':'add'==_0x198222?_0xb061d5['data']:'','remove':'remove'==_0x198222?_0xb061d5['data']:''});else{if(this['_schema']['isObject'](_0xb061d5)){const _0x4d8b3e=_0xb061d5;if(_0x5181e1&&_0x5181e1['type']['indexOf']('Container')>-0x1&&_0x2647cd['pop'](),'elementEnd'==_0x359bf0['type'])continue;_0x5181e1&&_0x5181e1['type']==_0x198222+'Object'&&_0x5181e1['element']['name']==_0x4d8b3e['name']?_0x5181e1['quantity']++:_0x2647cd['push']({'type':_0x198222+'Object','element':_0x4d8b3e,'quantity':0x1}),_0x2e3f0b['skip'](_0xde22e1=>!('elementEnd'==_0xde22e1['type']&&_0xde22e1['item']==_0xb061d5));}else{if(this['_schema']['checkChild'](_0xb061d5,'$text')||_0xb061d5['is']('element','softBreak')){const _0xa9e392=_0xb061d5;if('add'==_0x198222&&'elementStart'==_0x359bf0['type']||'remove'==_0x198222&&'elementEnd'==_0x359bf0['type'])continue;if(_0x5181e1&&-0x1==_0x5181e1['type']['indexOf']('Container')){'text'==_0x5181e1['type']&&(_0x5181e1[_0x198222]+='\x0a');continue;}let _0x3d1929;if(_0x3d1929='add'==_0x198222?_0xa9e392['nextSibling']&&!this['_schema']['isObject'](_0xa9e392['nextSibling'])?_0xa9e392['nextSibling']:null:_0xa9e392['previousSibling']&&!this['_schema']['isObject'](_0xa9e392['previousSibling'])?_0xa9e392['previousSibling']:null,_0xa9e392['isEmpty']||_0x3d1929&&_0x3d1929['isEmpty']){const _0x216082=_0x3d1929&&_0x3d1929['isEmpty']?_0x3d1929:_0xa9e392;_0x5181e1&&_0x5181e1['type']==_0x198222+'EmptyContainer'&&_0x5181e1['element']['name']==_0x216082['name']?_0x5181e1['quantity']++:_0x2647cd['push']({'type':_0x198222+'EmptyContainer','element':_0x216082,'quantity':0x1});}else _0x2647cd['push']({'type':_0x198222+'Container','element':_0xa9e392});}}}}}['_resolveDescriptionItems'](_0x30f847){const _0x4032ec=this['_locale'],_0x4e376e=[],_0x421349=[],_0x1b538b=[];for(const _0x35a661 of _0x30f847)switch(_0x35a661['type']){case'text':if(_0x35a661['add']=_0x35a661['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x35a661['remove']=_0x35a661['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x35a661['add']&&''!=_0x35a661['remove']){_0x4e376e['push']({'type':'replace','content':o(_0x4032ec,'REPLACE_TEXT',['\x22'+_0x35a661['remove']+'\x22','\x22'+_0x35a661['add']+'\x22'])});continue;}if(null!=_0x35a661['add']['match'](/^ +$/)){_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0',o(_0x4032ec,'ELEMENT_SPACE',_0x35a661['add']['length']))});continue;}if(null!=_0x35a661['remove']['match'](/^ +$/)){_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0',o(_0x4032ec,'ELEMENT_SPACE',_0x35a661['remove']['length']))});continue;}if(''!=_0x35a661['add']){_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0','\x22'+_0x35a661['add']+'\x22')});continue;}_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0','\x22'+_0x35a661['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Insert:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Remove:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'addContainer':_0x4e376e['push']({'type':'insertion','content':o(_0x4032ec,'*Split:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'removeContainer':_0x4e376e['push']({'type':'deletion','content':o(_0x4032ec,'*Merge:*\x20%0',this['getItemLabel'](_0x35a661['element'],_0x35a661['quantity']))});continue;case'addFormat':_0x421349['push'](_0x35a661['key']);continue;case'removeFormat':_0x1b538b['push'](_0x35a661['key']);continue;default:_0x4e376e['push'](_0x35a661);}if(_0x421349['length']){const _0x2ad858=_0x421349['map'](_0x4ba688=>this['_attributeLabels']['has'](_0x4ba688)?this['_attributeLabels']['get'](_0x4ba688):_0x4ba688)['join'](',\x20');_0x4e376e['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2ad858)});}if(_0x1b538b['length']){const _0xf9d166=_0x1b538b['map'](_0x5da4f3=>this['_attributeLabels']['has'](_0x5da4f3)?this['_attributeLabels']['get'](_0x5da4f3):_0x5da4f3)['join'](',\x20');_0x4e376e['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xf9d166)});}return _0x4e376e;}['_handleCustomCallbackDescription'](_0x4a8f99){for(const _0x12ea2b of this['_customCallbacks']){const _0x49bc39=_0x12ea2b(_0x4a8f99);if(_0x49bc39&&'type'in _0x49bc39)return _0x49bc39;}}['_handleAttributeSuggestionDescription'](_0x3973d7,_0x2727ee){const _0x1fc8e3=_0x2727ee['data'],_0x44e00f=void 0x0===_0x1fc8e3['newValue']?'removeFormat':'addFormat';_0x3973d7['push']({'type':_0x44e00f,'key':_0x1fc8e3['key']});}['_handleRenameSuggestionDescription'](_0x388aab,_0x351319){_0x388aab['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x351319['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5e98d1,_0x52b2f8,_0x6210d9){if(this['_addDescriptionItems'](_0x5e98d1,_0x52b2f8),_0x6210d9&&_0x6210d9['getFirstRange']()&&!_0x52b2f8['getFirstRange']()['end']['isEqual'](_0x6210d9['getFirstRange']()['start'])){const _0x14c708=_0x5e98d1[_0x5e98d1['length']-0x1],_0x5de1bd='insertion'==_0x52b2f8['type']?'add':'remove';_0x14c708&&'text'==_0x14c708['type']&&(_0x14c708[_0x5de1bd]+='\x0a');}}}class U extends _0x24408b{['afterInit'](){const _0x136fd8=this['editor'],_0x5a54e6=_0x136fd8['plugins']['get']('TrackChangesEditing');_0x136fd8['commands']['get']('showAIAssistant')&&_0x5a54e6['enableCommand']('showAIAssistant');}}class V extends _0x24408b{['afterInit'](){const _0xb84665=this['editor'],_0x49a756=_0xb84665['locale'];if(!_0xb84665['plugins']['has']('AlignmentEditing'))return;const _0x2cc366=_0xb84665['plugins']['get']('TrackChangesEditing');_0x2cc366['enableDefaultAttributesIntegration']('alignment'),_0x2cc366['registerBlockAttribute']('alignment'),_0x2cc366['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x49a756,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21448b=this['editor'],_0x4d1c47=_0x21448b['locale'];_0x21448b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4c42d1=>{if('formatBlock'!=_0x4c42d1['type'])return;const {data:_0x5d7a3c}=_0x4c42d1;if(_0x5d7a3c&&'alignment'==_0x5d7a3c['commandName']){const _0x80e259=_0x5d7a3c['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4d1c47,'*Format:*\x20%0',function(_0x3c6a25){switch(_0x3c6a25){case'left':return o(_0x4d1c47,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4d1c47,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4d1c47,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4d1c47,'FORMAT_JUSTIFY_TEXT');}}(_0x80e259))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x24408b{['afterInit'](){const _0x5df393=this['editor'],_0x2ee885=_0x5df393['plugins']['get']('TrackChangesEditing'),_0x14f497=_0x5df393['locale'];for(const _0x25104e of Zt){if(!_0x5df393['plugins']['has'](_0x25104e))continue;const _0x16fbff=_0x25104e['slice'](0x0,-0x7)['toLowerCase'](),_0x27d331='FORMAT_'+_0x16fbff['toUpperCase']();_0x2ee885['enableDefaultAttributesIntegration'](_0x16fbff),_0x2ee885['registerInlineAttribute'](_0x16fbff),_0x2ee885['descriptionFactory']['registerAttributeLabel'](_0x16fbff,o(_0x14f497,_0x27d331));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51fe4b=this['editor'],_0x41541f=_0x51fe4b['locale'],_0x269cb9=_0x51fe4b['plugins']['get']('TrackChangesEditing');function _0x1cbce2(_0x41549,_0x4b7169){_0x269cb9['descriptionFactory']['registerDescriptionCallback'](_0x301d78=>{if('formatInline'!=_0x301d78['type'])return;const {data:_0x2748f1}=_0x301d78;return _0x2748f1&&_0x2748f1['commandName']===_0x41549?_0x2748f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x41541f,'*Format:*\x20%0',_0x4b7169)}:{'type':'format','content':o(_0x41541f,'*Remove\x20format:*\x20%0',_0x4b7169)}:void 0x0;});}_0x1cbce2('bold',o(_0x41541f,'FORMAT_BOLD')),_0x1cbce2('italic',o(_0x41541f,'FORMAT_ITALIC')),_0x1cbce2('underline',o(_0x41541f,'FORMAT_UNDERLINE')),_0x1cbce2('code',o(_0x41541f,'FORMAT_CODE')),_0x1cbce2('strikethrough',o(_0x41541f,'FORMAT_STRIKETHROUGH')),_0x1cbce2('subscript',o(_0x41541f,'FORMAT_SUBSCRIPT')),_0x1cbce2('superscript',o(_0x41541f,'FORMAT_SUPERSCRIPT'));}}class F extends _0x24408b{['afterInit'](){const _0x527385=this['editor'],_0x23beb3=_0x527385['locale'];if(!_0x527385['plugins']['has']('BlockQuoteEditing'))return;const _0x21bc98=_0x527385['plugins']['get']('TrackChangesEditing'),_0x3fbc5e=this['editor']['commands']['get']('blockQuote');_0x21bc98['enableCommand']('blockQuote',(_0x570aa3,_0x41fcdf={})=>{const _0x2207d7=this['editor']['model']['document']['selection'],_0x1a5b24=_0x41fcdf&&void 0x0!==_0x41fcdf['forceValue']?_0x41fcdf['forceValue']:!_0x3fbc5e['value'];let _0x3f8c6a=[];if(_0x1a5b24){const _0x257b92=Array['from'](_0x2207d7['getSelectedBlocks']())['filter'](_0x4abcef=>oo(_0x4abcef)||function(_0x5e8c97,_0x74e6b0){const _0x2a60ee=_0x74e6b0['checkChild'](_0x5e8c97['parent'],'blockQuote'),_0x1caa02=_0x74e6b0['checkChild'](['$root','blockQuote'],_0x5e8c97);return _0x2a60ee&&_0x1caa02;}(_0x4abcef,this['editor']['model']['schema']));_0x3f8c6a=to(_0x257b92,_0x527385['model']);}else{const _0x169b23=Array['from'](_0x2207d7['getSelectedBlocks']())['filter'](_0x2e7b35=>oo(_0x2e7b35));_0x3f8c6a=to(_0x169b23,_0x527385['model']);}_0x527385['model']['change'](()=>{for(const _0x2ea76f of _0x3f8c6a)_0x21bc98['markBlockFormat'](_0x2ea76f,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1a5b24}]});});}),_0x21bc98['descriptionFactory']['registerDescriptionCallback'](_0x1573e9=>{const {data:_0x3e6102}=_0x1573e9;if(_0x3e6102&&'blockQuote'==_0x3e6102['commandName']){const _0x24b857=o(_0x23beb3,'ELEMENT_BLOCK_QUOTE');return _0x3e6102['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23beb3,'*Set\x20format:*\x20%0',_0x24b857)}:{'type':'format','content':o(_0x23beb3,'*Remove\x20format:*\x20%0',_0x24b857)};}});}}function oo(_0x2680e1){return'blockQuote'==_0x2680e1['parent']['name'];}class L extends _0x24408b{['afterInit'](){const _0x255c2f=this['editor'],_0x487e4f=_0x255c2f['locale'],_0x5bc9bd=_0x255c2f['plugins']['get']('TrackChangesEditing');_0x255c2f['plugins']['has']('BookmarkEditing')&&(_0x5bc9bd['enableCommand']('insertBookmark'),_0x5bc9bd['enableDefaultAttributesIntegration']('updateBookmark'),_0x5bc9bd['registerBlockAttribute']('bookmarkId'),_0x5bc9bd['descriptionFactory']['registerDescriptionCallback'](_0x132825=>{if('insertion'!=_0x132825['type']&&'deletion'!=_0x132825['type']&&'attribute'!=_0x132825['type'])return;const _0x3788fd=_0x132825['getContainedElement']();if(null==_0x3788fd)return;if(!_0x3788fd['is']('element','bookmark'))return;const _0x4e3d51=_0x3788fd['getAttribute']('bookmarkId');if('insertion'==_0x132825['type'])return{'type':'insertion','content':o(_0x487e4f,'*Insert:*\x20%0','\x22'+_0x4e3d51+'\x22\x20'+o(_0x487e4f,'ELEMENT_BOOKMARK'))};if('deletion'==_0x132825['type'])return{'type':'deletion','content':o(_0x487e4f,'*Remove:*\x20%0','\x22'+_0x4e3d51+'\x22\x20'+o(_0x487e4f,'ELEMENT_BOOKMARK'))};const {data:_0x415a71}=_0x132825;if(!_0x415a71||'bookmarkId'!=_0x415a71['key'])return;return{'type':'format','content':o(_0x487e4f,'*Set\x20bookmark:*\x20%0','\x22'+_0x415a71['newValue']+'\x22')};}));}}class J extends _0x24408b{['afterInit'](){const _0xec8448=this['editor'];_0xec8448['plugins']['has']('CaseChange')&&(_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xec8448['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x24408b{['afterInit'](){const _0x342055=this['editor'];_0x342055['commands']['get']('ckbox')&&_0x342055['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x24408b{['afterInit'](){const _0x310e5c=this['editor'];if(!_0x310e5c['plugins']['has']('CodeBlock'))return;const _0x20f005=_0x310e5c['plugins']['get']('TrackChangesEditing'),_0x3a2098=_0x310e5c['locale'],_0x4f5276=_0x310e5c['config']['get']('codeBlock')['languages'],_0x360245=_0x310e5c['commands']['get']('codeBlock');_0x20f005['enableCommand']('indentCodeBlock'),_0x20f005['enableCommand']('outdentCodeBlock'),_0x20f005['enableCommand']('codeBlock',(_0x21bf57,_0xa4af15={})=>{const _0x1b19bf=_0x310e5c['model'],_0x1c10a1=_0x310e5c['model']['document']['selection'],_0x201eaf=_0xa4af15&&void 0x0!==_0xa4af15['forceValue']?_0xa4af15['forceValue']:!_0x360245['value'];let _0x2d9077;_0xa4af15['language']||(_0xa4af15['language']=_0x4f5276[0x0]['language']),_0x2d9077=_0x201eaf?Array['from'](_0x1c10a1['getSelectedBlocks']())['filter'](_0x40ad8a=>eo(_0x40ad8a)||function(_0x296d09,_0x5bd18f){if(_0x296d09['is']('rootElement')||_0x5bd18f['isLimit'](_0x296d09))return!0x1;return _0x5bd18f['checkChild'](_0x296d09['parent'],'codeBlock');}(_0x40ad8a,_0x1b19bf['schema'])):Array['from'](_0x1c10a1['getSelectedBlocks']())['filter'](_0x4d8e07=>eo(_0x4d8e07));const _0x469086=to(_0x2d9077,_0x1b19bf);_0x1b19bf['change'](()=>{for(const _0x35a138 of _0x469086)_0x20f005['markBlockFormat'](_0x35a138,{'commandName':'codeBlock','commandParams':[{..._0xa4af15,'forceValue':_0x201eaf}],'formatGroupId':'blockName'});});}),(_0x20f005['descriptionFactory']['registerElementLabel']('codeBlock',_0xe2da3a=>o(_0x3a2098,'ELEMENT_CODE_BLOCK',_0xe2da3a)),_0x20f005['descriptionFactory']['registerDescriptionCallback'](_0x123fa7=>{if('formatBlock'!=_0x123fa7['type'])return;const _0x32498c=_0x3a2098['t'],{data:_0x58d4f1}=_0x123fa7;if(!_0x58d4f1||'codeBlock'!=_0x58d4f1['commandName'])return;const _0x411da4=_0x58d4f1['commandParams'][0x0]['language'],_0x38d9c1=_0x32498c(_0x4f5276['find'](_0x7067ab=>_0x7067ab['language']===_0x411da4)['label'])['toLowerCase']();return _0x58d4f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3a2098,'*Set\x20format:*\x20%0',o(_0x3a2098,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x38d9c1+')')}:{'type':'format','content':o(_0x3a2098,'*Remove\x20format:*\x20%0',o(_0x3a2098,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c08a4){return'codeBlock'==_0x1c08a4['name'];}class z extends _0x24408b{['afterInit'](){const _0x1f0fce=this['editor'];if(!_0x1f0fce['plugins']['has']('CommentsEditing'))return;_0x1f0fce['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3bd24e,_0x112a05,_0x252f55){const _0xd88088=[];for(const _0x2e1a00 of _0x112a05['getItems']())_0x2e1a00['hasAttribute'](_0x3bd24e)&&_0xd88088['push'](_0x252f55['createRangeOn'](_0x2e1a00));return _0xd88088;}function Ne(_0x2ff731,_0x1fc736,{showActiveMarker:_0x282036=!0x0}={}){const _0x2176c4=_0x2ff731['plugins']['get']('TrackChangesEditing');return(_0x325d07,_0x5ecd48,_0x475fae)=>{if(!_0x475fae['consumable']['test'](_0x5ecd48['markerRange'],_0x325d07['name']))return;const _0x31b517=_0x5ecd48['markerRange']['getWalker'](),_0x21f700=_0x5ecd48['markerRange']['start'],_0xe54dfe=_0x2ff731['model']['schema'];let _0x1d53f5=null,_0x2bca72=null,_0xe92eb6=!0x1,_0x4e4ce1=!0x1;for(const _0x3f19ec of _0x31b517){const _0x28d54b=_0x3f19ec['item'];_0xe92eb6=_0xe92eb6||_0xe54dfe['isContent'](_0x28d54b);const _0x5b86e7=_0x475fae['mapper']['toViewElement'](_0x28d54b);if(_0x5b86e7&&_0x5b86e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3f19ec['type']&&(_0xe54dfe['isBlock'](_0x28d54b)&&!_0xe54dfe['isLimit'](_0x28d54b)&&(_0x28d54b['nextSibling']||_0x21f700['isAtEnd']?_0x1d53f5&&_0x1d53f5['parent']==_0x28d54b||(_0x1d53f5=_0x28d54b,_0xe93b02(_0x3f19ec['previousPosition']),_0x4e4ce1=!0x0):_0x2bca72=_0x2bca72||_0x3f19ec['previousPosition']));}function _0xe93b02(_0x538788){const {authorId:_0x2e422a}=_0x2176c4['_splitMarkerName'](_0x5ecd48['markerName']),_0x5607a0=_0x475fae['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fc736,'data-author-id':_0x2e422a}),_0xb82fcf=_0x475fae['mapper']['toViewPosition'](_0x538788);_0x282036&&_0x2176c4['activeMarkers']['includes'](_0x5ecd48['markerName'])&&_0x475fae['writer']['addClass']('ck-suggestion-marker--active',_0x5607a0),_0x475fae['writer']['insert'](_0xb82fcf,_0x5607a0),_0x475fae['mapper']['bindElementToMarker'](_0x5607a0,_0x5ecd48['markerName']);}_0xe92eb6||_0x4e4ce1||!_0x2bca72||_0xe93b02(_0x2bca72);};}class K extends _0x24408b{static get['requires'](){return[_0x2280a6];}['init'](){const _0x258660=this['editor'],_0x5b8cd5=_0x258660['plugins']['get']('TrackChangesEditing');_0x5b8cd5['enableCommand']('delete');const _0x570844=_0x258660['commands']['get']('deleteForward');_0x5b8cd5['enableCommand']('deleteForward',(_0x3d71aa,_0x4fcc2c={})=>{const _0x349183=_0x258660['model']['createSelection'](_0x258660['model']['document']['selection']);_0x349183['isCollapsed']&&_0x258660['model']['modifySelection'](_0x349183,{'direction':'forward','unit':_0x4fcc2c['unit']});const _0xe5362e=_0x349183['getFirstRange'](),_0x51273a=_0x5103d1['fromRange'](_0xe5362e);let _0x3c7256;_0x3d71aa(_0x4fcc2c),_0x3c7256='$graveyard'==_0x51273a['root']['rootName']?_0x258660['model']['createRange'](_0xe5362e['start']):_0x258660['model']['createRange'](_0x51273a['start'],_0x51273a['end']),_0x51273a['detach'](),_0x258660['model']['enqueueChange'](_0x570844['buffer']['batch'],_0x2738e0=>{_0x570844['buffer']['lock'](),_0x2738e0['setSelection'](_0x2738e0['createRange'](_0x3c7256['end'])),_0x570844['buffer']['unlock']();});}),_0x258660['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x258660,'merge'),{'priority':'high'}),_0x258660['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb0d14a,_0x4223a3,_0x401f1e)=>{_0x401f1e['options']['showSuggestionHighlights']&&Ne(_0x258660,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xb0d14a,_0x4223a3,_0x401f1e);},{'priority':'high'}),_0x258660['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3321fd,_0x1e51e4,_0x5b4f2c)=>{const _0x1cc7d2=_0x5b4f2c['mapper']['markerNameToElements'](_0x1e51e4['markerName']);if(_0x1cc7d2){for(const _0x3a2d73 of _0x1cc7d2)_0x3a2d73['is']('uiElement')&&(_0x5b4f2c['mapper']['unbindElementFromMarkerName'](_0x3a2d73,_0x1e51e4['markerName']),_0x5b4f2c['writer']['remove'](_0x3a2d73));}},{'priority':'high'});}}class W extends _0x24408b{['afterInit'](){const _0x5f5295=this['editor'];if(!_0x5f5295['plugins']['has']('ListEditing'))return;const _0x966f5f=_0x5f5295['locale'],_0x55f8ed=_0x5f5295['plugins']['get']('TrackChangesEditing'),_0x55c5da=_0x5f5295['plugins']['has']('TodoListEditing'),_0x1a8e21=!!_0x5f5295['config']['get']('list.multiBlock');function _0x227c20(_0x541a87){return{'type':'format','content':''+o(_0x966f5f,'*Set\x20format:*\x20%0',_0x541a87)};}function _0x111e47(_0x1e2905){return{'type':'format','content':''+o(_0x966f5f,'*Remove\x20format:*\x20%0',_0x1e2905)};}_0x55f8ed['enableDefaultAttributesIntegration']('numberedList'),_0x55f8ed['enableDefaultAttributesIntegration']('bulletedList'),_0x55f8ed['enableDefaultAttributesIntegration']('customNumberedList'),_0x55f8ed['enableDefaultAttributesIntegration']('customBulletedList'),_0x55f8ed['enableDefaultAttributesIntegration']('indentList'),_0x55f8ed['enableDefaultAttributesIntegration']('outdentList'),_0x55f8ed['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x55f8ed['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x55f8ed['registerBlockAttribute']('listItemId'),_0x55f8ed['registerBlockAttribute']('listType'),_0x55f8ed['registerBlockAttribute']('listIndent'),_0x1a8e21&&(_0x55f8ed['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x55f8ed['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x55c5da&&(_0x55f8ed['enableDefaultAttributesIntegration']('todoList'),_0x55f8ed['enableDefaultAttributesIntegration']('checkTodoList'),_0x55f8ed['registerBlockAttribute']('todoListChecked'),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x419003=>{const {data:_0x13aa4e}=_0x419003;if(_0x13aa4e&&'todoListChecked'==_0x13aa4e['key'])return{'type':'format','content':_0x13aa4e['newValue']?o(_0x966f5f,'*Check\x20item*'):o(_0x966f5f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d026c=>{if(_0x5d026c['batch']['isUndo'])return!0x1;let _0x3f4ba5=!0x1;const _0x2aa664=_0x55f8ed['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a520a=>'todoListChecked'===_0x55f8ed['_getAttributeKey'](_0x3a520a));for(const _0x480b06 of _0x2aa664){'todo'!=_0x480b06['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x55f8ed['_findSuggestions'](_0x480b06['getFirstRange'](),'attribute')['find'](_0x4eee67=>'listType'===_0x55f8ed['_getAttributeKey'](_0x4eee67['suggestion']))||(_0x5d026c['removeMarker'](_0x480b06['getFirstMarker']()),_0x3f4ba5=!0x0));}return _0x3f4ba5;})),_0x55f8ed['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x966f5f,'FORMAT_INDENT'));const _0x35b932={'type':'format','content':''};_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x1be73e=>{const {data:_0x1dbb19}=_0x1be73e;if(!_0x1dbb19||'listType'!=_0x1dbb19['key'])return;let _0x29f60f=_0x1be73e['head'];for(;_0x29f60f;){if(_0x29f60f['data']&&(('listStyle'==_0x29f60f['data']['key']||'listMarkerStyle'==_0x29f60f['data']['key'])&&(_0x29f60f['data']['newValue']&&'default'!=_0x29f60f['data']['newValue']||'default'!=_0x29f60f['data']['oldValue']&&!_0x1dbb19['newValue'])||!_0x1a8e21&&_0x29f60f['data']['key']==m))return _0x35b932;_0x29f60f=_0x29f60f['next'];}if(null==_0x1dbb19['newValue'])switch(_0x1dbb19['oldValue']){case'bulleted':return _0x111e47(o(_0x966f5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x111e47(o(_0x966f5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x111e47(o(_0x966f5f,'ELEMENT_TODO_LIST'));}switch(_0x1dbb19['newValue']){case'bulleted':return _0x227c20(o(_0x966f5f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x227c20(o(_0x966f5f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x227c20(o(_0x966f5f,'ELEMENT_TODO_LIST'));}}),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x51b6c8=>{const {data:_0x3ac1ee}=_0x51b6c8;if(_0x3ac1ee&&'listIndent'==_0x3ac1ee['key'])return null==_0x3ac1ee['newValue']||null==_0x3ac1ee['oldValue']&&0x0==_0x3ac1ee['newValue']?_0x35b932:void 0x0;}),_0x55f8ed['descriptionFactory']['registerDescriptionCallback'](_0x5aa11f=>{if('attribute'!=_0x5aa11f['type'])return;const {data:_0x54bdbe}=_0x5aa11f;if(!_0x54bdbe||'listItemId'!=_0x54bdbe['key'])return;const _0x1b5e25=Te(_0x5aa11f);return'newValue'==_0x1b5e25?{'type':'format','content':o(_0x966f5f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1b5e25?{'type':'format','content':o(_0x966f5f,'*Split:*\x20list\x20item')}:_0x35b932;}),_0x5f5295['model']['document']['registerPostFixer'](_0x4642ee=>this['listItemIdFixer'](_0x4642ee)),_0x5f5295['model']['document']['registerPostFixer'](_0x11a5c2=>this['noTrackChangesFixer'](_0x11a5c2)),_0x5f5295['model']['document']['on']('change:data',(_0x40f2f5,_0x2f78bd)=>{if(_0x2f78bd['isUndo']||!_0x2f78bd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb39cad){if(_0xb39cad['batch']['isUndo']||!_0xb39cad['batch']['isLocal'])return!0x1;let _0x524298=!0x1;const _0x103138=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2561c7=>_0x2561c7['data']&&'listItemId'==_0x2561c7['data']['key'])['filter'](_0x1fd4f0=>_0x1fd4f0['data']['newValue']&&_0x1fd4f0['data']['oldValue']);for(const _0x4fd976 of _0x103138)Te(_0x4fd976)||(_0xb39cad['removeMarker'](_0x4fd976['getFirstMarker']()),_0x524298=!0x0);return _0x524298;}['noTrackChangesFixer'](_0x90b950){if(_0x90b950['batch']['isUndo']||!_0x90b950['batch']['isLocal'])return!0x1;const _0x285742=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x285742['trackChangesCommand']['value'])return!0x1;let _0x536b8d=!0x1;const _0x584ec7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x4dbb26=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1fd175=>'attribute'==_0x1fd175['type'])['filter'](_0x3f4af2=>_0x584ec7['includes'](_0x3f4af2['attributeKey']));if(0x0==_0x4dbb26['length'])return _0x536b8d;for(const _0x59abdc of _0x4dbb26){const _0x2ede96=_0x285742['_findSuggestions'](_0x59abdc['range'],'attribute')['filter'](_0x234d0c=>!_0x234d0c['meta']['isNextTo'])['map'](_0x4b9baf=>_0x4b9baf['suggestion'])['filter'](_0x54c97b=>{const _0x4c2bb8=_0x285742['_getAttributeKey'](_0x54c97b);return _0x584ec7['includes'](_0x4c2bb8);});if(_0x2ede96['length']){for(const _0x18f8dc of _0x2ede96)_0x90b950['removeMarker'](_0x18f8dc['getFirstMarker']());_0x536b8d=!0x0;}}return _0x536b8d;}['assureChains'](){const _0x516080=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13e55f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3d34b1;const _0x3317f4=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x5e6de9=>{if(_0x5e6de9['data']['oldRange']||!_0x5e6de9['data']['newRange'])return null;if(!_0x5e6de9['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd31e81}=_0x516080['_splitMarkerName'](_0x5e6de9['name']);if(!_0x516080['hasSuggestion'](_0xd31e81))return null;const _0xba114=_0x516080['getSuggestion'](_0xd31e81);return _0x13e55f['includes'](_0xba114['data']['key']);})['map'](_0x517ee1=>{const {id:_0x3947e4}=_0x516080['_splitMarkerName'](_0x517ee1['name']),_0x3cd829=_0x516080['getSuggestion'](_0x3947e4);return _0x3d34b1=_0x3cd829['attributes']['groupId'],_0x3cd829['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3317f4['size'])return;const _0x32411f=_0x516080['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dbde6=>'attribute'==_0x4dbde6['type']&&_0x4dbde6['data']&&_0x13e55f['includes'](_0x4dbde6['data']['key'])&&_0x4dbde6['attributes']['groupId']!=_0x3d34b1)['map'](_0x237191=>({'listItem':_0x237191['getFirstRange']()['start']['nodeAfter'],'groupId':_0x237191['attributes']['groupId']})),_0x4e59e7=new Set();for(const {groupId:_0x35e054,listItem:_0x347120}of _0x32411f)_0x3317f4['has'](_0x347120)&&_0x4e59e7['add'](_0x35e054);for(const _0x48016d of _0x516080['getSuggestions']())_0x4e59e7['has'](_0x48016d['attributes']['groupId'])&&_0x48016d['setAttribute']('groupId',_0x3d34b1);}['_supportLegacySuggestions'](){const _0x15fb1b=this['editor'],_0x433ce7=_0x15fb1b['locale'],_0x311a34=_0x15fb1b['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x311a34['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x39d93b,_0x561c59){const _0x567e5a=[];for(let _0x128be3 of _0x39d93b)_0x128be3['start']['nodeAfter']===_0x128be3['end']['parent']&&(_0x128be3=_0x15fb1b['model']['createRange'](_0x15fb1b['model']['createPositionAt'](_0x128be3['start']['nodeAfter'],0x0))),_0x567e5a['push'](_0x128be3);_0x15fb1b['model']['change'](_0x5e5b87=>{const _0x5364cf=_0x15fb1b['model']['document']['selection'],_0x47bb1f=Array['from'](_0x5364cf['getRanges']())['map'](_0x12024f=>_0x5103d1['fromRange'](_0x12024f));_0x5e5b87['setSelection'](_0x567e5a),_0x15fb1b['commands']['get'](_0x561c59['commandName'])['refresh'](),_0x561c59['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x15fb1b['execute'](_0x561c59['commandName'],..._0x561c59['commandParams']),_0x5e5b87['setSelection'](_0x47bb1f);for(const _0x43f497 of _0x47bb1f)_0x43f497['detach']();});}),_0x311a34['descriptionFactory']['registerElementLabel'](function(_0x55dd5a){const _0x29b86e=!_0x15fb1b['model']['schema']['isObject'](_0x55dd5a),_0x356b5a=_0x55dd5a['previousSibling'],_0x13566f=_0x55dd5a['nextSibling'],_0x2c01f2=_0x55dd5a['getAttribute']('listItemId'),_0x3363b1=!_0x356b5a||_0x356b5a['getAttribute']('listItemId')!==_0x2c01f2,_0x3b720c=!_0x13566f||_0x13566f['getAttribute']('listItemId')!==_0x2c01f2;return _0x29b86e&&Boolean(_0x2c01f2)&&_0x3363b1&&_0x3b720c;},_0x25283b=>o(_0x433ce7,'ELEMENT_LIST_ITEM',_0x25283b));}['_registerLegacyDescription'](){const _0x5b8a2e=this['editor'],_0xc44207=_0x5b8a2e['locale'];function _0x44650a(_0x23c459){const _0x76adb9=_0x5b8a2e['commands']['get']('bulletedList')['value'],_0x104d10=_0x5b8a2e['commands']['get']('numberedList')['value'];return'numberedList'===_0x23c459?_0x76adb9:_0x104d10;}_0x5b8a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1861ee){if('formatBlock'!=_0x1861ee['type'])return;const {data:_0x5dd797}=_0x1861ee;if(!_0x5dd797)return;let _0x21ce8c,_0x19fa8e,_0x59717a,_0x441a98;switch(_0x5dd797['commandName']){case'bulletedList':_0x59717a=_0x5dd797['commandParams'][0x0]['forceValue'],_0x441a98=_0x44650a(_0x5dd797['commandName']),_0x21ce8c=_0x59717a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x441a98&&_0x5b8a2e['config']['get']('list.multiBlock')||(_0x21ce8c='*Change\x20to:*\x20%0'),_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x59717a=_0x5dd797['commandParams'][0x0]['forceValue'],_0x441a98=_0x44650a(_0x5dd797['commandName']),_0x21ce8c=_0x59717a?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x441a98&&_0x5b8a2e['config']['get']('list.multiBlock')||(_0x21ce8c='*Change\x20to:*\x20%0'),_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x21ce8c='*Indent:*\x20%0',_0x19fa8e={'type':'format','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x21ce8c=function(_0x378f9f){const _0x13568c=_0x378f9f['getFirstRange']();let _0x52f6fd=_0x13568c['start']['nodeAfter'];for(;_0x52f6fd&&_0x13568c['containsItem'](_0x52f6fd);){if(_0x52f6fd['getAttribute']('listIndent')>0x0)return!0x1;_0x52f6fd=_0x52f6fd['nextSibling'];}return!0x0;}(_0x1861ee)?o(_0xc44207,'*Format:*\x20remove\x20from\x20%0',o(_0xc44207,function(_0x35c153){return'ELEMENT_'+_0x35c153['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1861ee))):o(_0xc44207,'*Outdent:*\x20%0',o(_0xc44207,'ELEMENT_LIST_ITEM')),_0x19fa8e={'type':'format','content':_0x21ce8c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5dd797['multipleBlocks']&&(_0x21ce8c='*Merge:*\x20%0',_0x19fa8e={'type':'deletion','content':o(_0xc44207,_0x21ce8c,o(_0xc44207,'ELEMENT_LIST_ITEM'))});}return _0x19fa8e;});}}function Te(_0x3d9e65){let _0x57de86=_0x3d9e65['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x57de86;){const _0x19c523=_0x57de86['getAttribute']('listItemId');if(!_0x19c523)return!0x1;if(_0x19c523==_0x3d9e65['data']['newValue'])return'newValue';if(_0x19c523==_0x3d9e65['data']['oldValue'])return'oldValue';_0x57de86=_0x57de86['previousSibling'];}return!0x1;}class ye extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x129078=this['editor']['config']['get']('list.properties'),_0x65c635=this['editor']['plugins']['get']('TrackChangesEditing');_0x129078['styles']&&(_0x65c635['enableDefaultAttributesIntegration']('listStyle'),_0x65c635['registerBlockAttribute']('listStyle')),_0x129078['reversed']&&(_0x65c635['enableDefaultAttributesIntegration']('listReversed'),_0x65c635['registerBlockAttribute']('listReversed')),_0x129078['startIndex']&&(_0x65c635['enableDefaultAttributesIntegration']('listStart'),_0x65c635['registerBlockAttribute']('listStart'));const _0x1effb3={'type':'format','content':''};_0x65c635['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4f29a2=this['editor']['locale'];_0x65c635['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4f29a2,'FORMAT_LIST_REVERSED')),_0x65c635['descriptionFactory']['registerDescriptionCallback'](_0x3db2be=>{const {data:_0x44f2b9}=_0x3db2be;if(_0x44f2b9&&'listReversed'==_0x44f2b9['key'])return null==_0x44f2b9['newValue']||0x0==_0x44f2b9['newValue']&&null==_0x44f2b9['oldValue']?_0x1effb3:void 0x0;}),_0x65c635['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4f29a2,'FORMAT_LIST_START')),_0x65c635['descriptionFactory']['registerDescriptionCallback'](_0x54e705=>{const {data:_0x1e6459}=_0x54e705;if(_0x1e6459&&'listStart'==_0x1e6459['key'])return null==_0x1e6459['newValue']||0x1==_0x1e6459['newValue']&&null==_0x1e6459['oldValue']?_0x1effb3:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x174c5c=>{if(_0x174c5c['batch']['isUndo'])return!0x1;let _0x158b8f=!0x1;const _0x177a16=_0x65c635['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57beca=>{const _0x4d3f12=_0x65c635['_getAttributeKey'](_0x57beca);return'listStart'==_0x4d3f12||'listReversed'==_0x4d3f12;});for(const _0x333c5f of _0x177a16){const _0x42f300=_0x333c5f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x42f300||'customNumbered'==_0x42f300)continue;_0x65c635['_findSuggestions'](_0x333c5f['getFirstRange'](),'attribute')['find'](_0x511cbc=>'listType'==_0x65c635['_getAttributeKey'](_0x511cbc['suggestion']))||(_0x174c5c['removeMarker'](_0x333c5f['getFirstMarker']()),_0x158b8f=!0x0);}return _0x158b8f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xf392d9){const _0x17c3d2=this['editor']['locale'],{data:_0x473ea9}=_0xf392d9,_0xfc357={'type':'format','content':''};if(!_0x473ea9||'listStyle'!=_0x473ea9['key'])return;if(!_0x473ea9['oldValue'])return'default'==_0x473ea9['newValue']?_0xfc357:{'type':'format','content':''+o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['newValue'])))};if(!_0x473ea9['newValue']){if('default'==_0x473ea9['oldValue'])return _0xfc357;let _0x1f6487=_0xf392d9['head'];for(;_0x1f6487;){if(_0x1f6487['data']&&'listType'==_0x1f6487['data']['key']&&_0x1f6487['data']['newValue'])return _0xfc357;_0x1f6487=_0x1f6487['next'];}return{'type':'format','content':''+o(_0x17c3d2,'*Remove\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['oldValue'])))};}if('default'!=_0x473ea9['newValue'])return{'type':'format','content':''+o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,this['_getTranslationKeyForListStyle'](_0x473ea9['newValue'])))};let _0x808959=_0xf392d9['head'];for(;_0x808959;){if(_0x808959['data']&&'listType'==_0x808959['data']['key']&&_0x808959['data']['newValue']&&_0x808959['data']['oldValue'])return _0xfc357;_0x808959=_0x808959['next'];}return{'type':'format','content':o(_0x17c3d2,'*Set\x20format:*\x20%0',o(_0x17c3d2,'ELEMENT_'+_0xf392d9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x55eef1=this['editor'],_0x239e84=_0x55eef1['locale'];_0x55eef1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19447c=>{if('formatBlock'!=_0x19447c['type'])return;const {data:_0x4a9707}=_0x19447c;if(!_0x4a9707)return;let _0xd0ef58,_0xbf08ab;switch(_0x4a9707['commandName']){case'listStyle':_0xd0ef58='*Change\x20to:*\x20%0',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58,o(_0x239e84,this['_getTranslationKeyForListStyle'](_0x4a9707['commandParams'][0x0]['type'])))};break;case'listReversed':_0xd0ef58=_0x4a9707['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58)};break;case'listStart':_0xd0ef58='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xbf08ab={'type':'format','content':o(_0x239e84,_0xd0ef58,_0x4a9707['commandParams'][0x0]['startIndex'])};}return _0xbf08ab;});}['_getTranslationKeyForListStyle'](_0x30e9d0){return'ELEMENT_'+function(_0x26a763){if(Se['includes'](_0x26a763))return'bulleted';if(_e['includes'](_0x26a763))return'numbered';return null;}(_0x30e9d0)['toUpperCase']()+'_LIST_'+_0x30e9d0['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x24408b{static get['requires'](){return[_0x2cb551];}['init'](){const _0x4010ec=this['editor'],_0x517571=_0x4010ec['plugins']['get']('TrackChangesEditing'),_0x14069d=_0x4010ec['commands']['get']('enter');_0x517571['enableCommand']('enter',()=>{_0x4010ec['model']['change'](_0x494559=>{const _0x380906=_0x4010ec['model']['document']['selection'],_0x33ed0a=_0x380906['getFirstPosition'](),_0x3a67ee=_0x5103d1['fromRange'](_0x380906['getFirstRange']());if(_0x14069d['enterBlock'](_0x494559)){const _0x4f5e18=_0x4010ec['model']['createPositionAt'](_0x33ed0a['parent']['nextSibling'],0x0),_0x4f4acf=_0x494559['createRange'](_0x33ed0a,_0x4f5e18);_0x517571['markInsertion'](_0x4f4acf);}else _0x494559['setSelection'](_0x494559['createRange'](_0x3a67ee['end']));_0x3a67ee['detach'](),_0x14069d['fire']('afterExecute',{'writer':_0x494559});});}),_0x4010ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0x4010ec,'split'),{'priority':'high'}),_0x4010ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x45c00b,_0x34abdf,_0x40ed81)=>{const _0x3c02cc=_0x40ed81['mapper']['markerNameToElements'](_0x34abdf['markerName']);if(_0x3c02cc){for(const _0x303d52 of _0x3c02cc)_0x303d52['hasClass']('ck-suggestion-marker-split')&&(_0x40ed81['mapper']['unbindElementFromMarkerName'](_0x303d52,_0x34abdf['markerName']),_0x40ed81['writer']['remove'](_0x303d52));}},{'priority':'high'}),_0x4010ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x34c8ed,_0x1183ee,_0x294a06)=>{_0x294a06['options']['showSuggestionHighlights']&&Ne(_0x4010ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x34c8ed,_0x1183ee,_0x294a06);},{'priority':'high'});}}class Y extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x68dfe3=this['editor']['plugins']['get']('TrackChangesEditing');_0x68dfe3['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x68dfe3['enableCommand']('findNext'),_0x68dfe3['enableCommand']('findPrevious'),_0x68dfe3['enableCommand']('replace'),_0x68dfe3['enableCommand']('replaceAll');}['handleFindCommand'](_0x5f5928,_0x48be2c,_0x4cea33={}){const _0x4cb679=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x5f5928(_0x308b9f=>{let _0x4a594d=('string'==typeof _0x48be2c?_0x4cb679['findByTextCallback'](_0x48be2c,_0x4cea33):_0x48be2c)(_0x308b9f);Array['isArray'](_0x4a594d)&&(_0x4a594d={'results':_0x4a594d,'searchText':'string'==typeof _0x48be2c?_0x48be2c:''});const _0x25a42b=_0x4a594d['results']['filter'](_0x17b461=>!0x1===this['_isInDeletionRange'](_0x17b461,_0x308b9f['item']));return{..._0x4a594d,'results':_0x25a42b};},_0x4cea33);}['_isInDeletionRange'](_0x42019f,_0x49d018){const _0xc382b=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x49d018,_0x42019f['start']),this['editor']['model']['createPositionAt'](_0x49d018,_0x42019f['end']));for(const _0xed996a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xc382b['getIntersection'](_0xed996a['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 _0x24408b{['afterInit'](){const _0x2f3fbe=this['editor']['locale'],_0x5647cd=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2df365,commandName:_0x50ad9f}of ro)this['editor']['plugins']['has'](_0x2df365)&&(_0x5647cd['enableDefaultAttributesIntegration'](_0x50ad9f),_0x5647cd['registerInlineAttribute'](_0x50ad9f));_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2f3fbe,'FORMAT_FONT_SIZE')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2f3fbe,'FORMAT_FONT_FAMILY')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2f3fbe,'FORMAT_FONT_COLOR')),_0x5647cd['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2f3fbe,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1266a6=this['editor'],_0x62324d=_0x1266a6['locale'];_0x1266a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f4f01=>{const _0x1d3f60=_0x62324d['t'];if('formatInline'!=_0x3f4f01['type'])return;const {data:_0x487d05}=_0x3f4f01;if(null!=_0x487d05){if('fontSize'==_0x487d05['commandName']){const _0x7dfbc1=_0x487d05['commandParams'][0x0]['value'];if(_0x7dfbc1){const _0x478e99=_0x1d3f60(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4b1ce6=>_0x4b1ce6['model']==_0x7dfbc1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x62324d,'*Set\x20font\x20size:*\x20%0',_0x478e99)};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x487d05['commandName']){const _0x4a4e6c=_0x487d05['commandParams'][0x0]['value'];return _0x4a4e6c?{'type':'format','content':o(_0x62324d,'*Set\x20font\x20family:*\x20%0',_0x4a4e6c)}:{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x487d05['commandName']){const _0x5d052e=_0x487d05['commandParams'][0x0]['value'];if(_0x5d052e){const _0x5d1e99=_0x54f2d2(this['editor']['config']['get']('fontColor.colors'))['find'](_0x404df4=>_0x404df4['model']==_0x5d052e);let _0x38cf4b=_0x5d052e,_0x30e5d4='';return _0x5d1e99&&(_0x38cf4b=_0x5d1e99['label'],_0x30e5d4=_0x1d3f60(_0x38cf4b)['toLowerCase']()),{'type':'format','content':o(_0x62324d,'*Set\x20font\x20color:*\x20%0',_0x30e5d4)['trim'](),'color':{'value':_0x5d052e,'title':_0x30e5d4||_0x38cf4b}};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x487d05['commandName']){const _0x5bbf46=_0x487d05['commandParams'][0x0]['value'];if(_0x5bbf46){const _0x4a467f=_0x54f2d2(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x3e11b3=>_0x3e11b3['model']==_0x5bbf46);let _0x1a5da7=_0x5bbf46,_0x20208f='';return _0x4a467f&&(_0x1a5da7=_0x4a467f['label'],_0x20208f=_0x1d3f60(_0x1a5da7)['toLowerCase']()),{'type':'format','content':o(_0x62324d,'*Set\x20font\x20background\x20color:*\x20%0',_0x20208f)['trim'](),'color':{'value':_0x5bbf46,'title':_0x20208f||_0x1a5da7}};}return{'type':'format','content':o(_0x62324d,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x24408b{['afterInit'](){const _0x5e2230=this['editor'],_0x545a2c=_0x5e2230['plugins']['get']('TrackChangesEditing'),_0x1c0bf2=_0x5e2230['commands']['get']('copyFormat'),_0x2bd830=_0x5e2230['commands']['get']('pasteFormat');_0x1c0bf2&&_0x2bd830&&(_0x545a2c['enableDefaultAttributesIntegration']('pasteFormat'),_0x545a2c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5c95ac=this['editor'],_0x1b254d=_0x5c95ac['locale'];_0x5c95ac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bbf4=>{if('formatBlock'!=_0x28bbf4['type']&&'formatInline'!=_0x28bbf4['type'])return;const {data:_0x52aa1c}=_0x28bbf4;if(_0x52aa1c&&'pasteFormat'===_0x52aa1c['commandName']){const _0x5d485f=[],_0x2e729b=_0x52aa1c['commandParams'][0x0];for(const [_0x525b4b,_0x219f6a]of Object['entries'](_0x2e729b))_0x5d485f['push'](so(_0x5c95ac,_0x525b4b,_0x219f6a));return _0x5d485f['length']?{'type':'format','content':o(_0x1b254d,'*Set\x20format\x20to:*\x20%0',_0x5d485f['join'](',\x20'))}:{'type':'format','content':o(_0x1b254d,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5bd603,_0x283bef,_0x5bfcb1){const _0x865c7f=_0x5bd603['locale']['t'],_0x21a20e=_0x283bef['split'](/(?=[A-Z])/)['join']('\x20'),_0x20136b=_0x865c7f(_0x21a20e['charAt'](0x0)['toUpperCase']()+_0x21a20e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5bfcb1)return _0x20136b;if('fontColor'===_0x283bef||'fontBackgroundColor'===_0x283bef){const _0x126ba4=_0x54f2d2(_0x5bd603['config']['get']('fontColor.colors'))['find'](_0x14fd0a=>_0x14fd0a['model']==_0x5bfcb1);return _0x20136b+'\x20('+(_0x126ba4?_0x865c7f(_0x126ba4['label'])['toLowerCase']():_0x5bfcb1)+')';}if('fontSize'===_0x283bef&&isNaN(parseFloat(_0x5bfcb1))){const _0x4a2a8d=_0x5bd603['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5bd603['config']['get']('fontSize.options'))['find'](_0xf2e850=>_0xf2e850['model']==_0x5bfcb1);return _0x20136b+'\x20('+(_0x4a2a8d?_0x865c7f(_0x4a2a8d['title'])['toLowerCase']():_0x5bfcb1)+')';}return _0x20136b+'\x20('+_0x5bfcb1+')';}class nt extends _0x24408b{['_headingOptions'];['afterInit'](){const _0x318a8d=this['editor'];if(!_0x318a8d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x318a8d['config']['get']('heading.options');const _0x5177af=_0x318a8d['locale'],_0x5dfd08=_0x318a8d['plugins']['get']('TrackChangesEditing');_0x5dfd08['enableDefaultAttributesIntegration']('heading');for(const _0xadf1f2 of this['_headingOptions'])'paragraph'!=_0xadf1f2['model']&&_0x5dfd08['descriptionFactory']['registerElementLabel'](_0xadf1f2['model'],_0x83ae61=>{const _0x5ef854=this['_getHeadingLevel'](_0xadf1f2['model']);return null!==_0x5ef854?_0x23ddb2(_0x83ae61,_0x5ef854):_0x5a879c(_0x83ae61,_0xadf1f2['title']);});function _0x23ddb2(_0x5952ff,_0x197d93){return o(_0x5177af,'ELEMENT_HEADING',[_0x5952ff,_0x197d93]);}function _0x5a879c(_0x4e466c,_0x1beb38){return o(_0x5177af,'ELEMENT_HEADING_CUSTOM',[_0x4e466c,_0x1beb38]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b47d5=this['editor'],_0x31336d=_0x4b47d5['locale'];function _0x5ce6ad(_0x518acf,_0x5661be){return o(_0x31336d,'ELEMENT_HEADING_CUSTOM',[_0x518acf,_0x5661be]);}_0x4b47d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xff30d=>{if('formatBlock'!=_0xff30d['type'])return;const {data:_0x59d41e}=_0xff30d;if(_0x59d41e&&'heading'==_0x59d41e['commandName']){const _0x189f98=_0x59d41e['commandParams'][0x0]['value'],_0x417bba=this['_getHeadingLevel'](_0x189f98);if(null!==_0x417bba)return{'type':'format','content':o(_0x31336d,'*Change\x20to:*\x20%0',(_0x193711=0x1,_0x3de587=_0x417bba,o(_0x31336d,'ELEMENT_HEADING',[_0x193711,_0x3de587])))};const _0x309580=this['_headingOptions']['find'](_0x2f0989=>_0x2f0989['model']===_0x189f98)['title'];return{'type':'format','content':o(_0x31336d,'*Change\x20to:*\x20%0',_0x5ce6ad(0x1,_0x309580))};}var _0x193711,_0x3de587;});}['_getHeadingLevel'](_0x5cf50b){const _0x10606a=_0x5cf50b['match'](/^heading(\d+)/);if(_0x10606a)return _0x10606a[0x1];const _0x4bb75e=this['_headingOptions']?.['find'](_0x3dd3f1=>_0x3dd3f1['model']==_0x5cf50b);if(_0x4bb75e&&_0x4bb75e['view']){const _0x18be97=_0x4bb75e['view'],_0x330b8b=(_0x18be97['name']??_0x18be97)['match'](/^h(\d+)/);if(_0x330b8b)return _0x330b8b[0x1];}return null;}}class it extends _0x24408b{['afterInit'](){const _0x2c8063=this['editor'];if(!_0x2c8063['plugins']['has']('HighlightEditing'))return;const _0x265818=_0x2c8063['plugins']['get']('TrackChangesEditing'),_0x154f5e=_0x2c8063['locale'];_0x265818['enableDefaultAttributesIntegration']('highlight'),_0x265818['registerInlineAttribute']('highlight'),_0x265818['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x154f5e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42d41a=this['editor'],_0x41c1a9=_0x42d41a['locale'];_0x42d41a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x441653=>{if('formatInline'!=_0x441653['type'])return;const {data:_0x3158ed}=_0x441653;if(_0x3158ed&&'highlight'==_0x3158ed['commandName']){const _0x1d974f=_0x41c1a9['t'],_0x1fe0a2=_0x3158ed['commandParams'][0x0]['value'];if(_0x1fe0a2){const _0x35e099=_0x42d41a['config']['get']('highlight.options')['find'](_0x3af8df=>_0x3af8df['model']==_0x1fe0a2),_0x360e2b=_0x1d974f(_0x35e099['title'])['toLowerCase']();return{'type':'format','content':o(_0x41c1a9,'*Set\x20highlight:*\x20%0',_0x360e2b),'color':{'value':_0x35e099['color'],'title':_0x35e099['title']}};}return{'type':'format','content':o(_0x41c1a9,'*Remove\x20highlight*',o(_0x41c1a9,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x24408b{['afterInit'](){const _0xe52600=this['editor'];if(!_0xe52600['plugins']['has']('HorizontalLineEditing'))return;_0xe52600['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x9a526a=_0xe52600['plugins']['get']('TrackChangesEditing'),_0x1742c7=_0xe52600['locale'];_0x9a526a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x10e386=>o(_0x1742c7,'ELEMENT_HORIZONTAL_LINE',_0x10e386)),_0xe52600['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5d4e6f,{writer:_0x3669e5,options:_0x88d70a})=>{if(!_0x88d70a['showSuggestionHighlights'])return null;const _0x1d34d3=_0x3669e5['createContainerElement']('div'),_0x247136=_0x3669e5['createEmptyElement']('hr');return _0x3669e5['addClass']('ck-horizontal-line',_0x1d34d3),_0x3669e5['insert'](_0x3669e5['createPositionAt'](_0x1d34d3,0x0),_0x247136),_0x1d34d3;},'converterPriority':'high'});}}class st extends _0x24408b{['afterInit'](){const _0x1c8d89=this['editor'];if(!_0x1c8d89['plugins']['has']('HtmlEmbed'))return;const _0x169df0=_0x1c8d89['plugins']['get']('TrackChangesEditing'),_0x3243e6=_0x1c8d89['locale'];_0x169df0['descriptionFactory']['registerElementLabel']('rawHtml',_0x101e2b=>o(_0x3243e6,'ELEMENT_HTML_EMBED',_0x101e2b)),_0x169df0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x169df0['registerBlockAttribute']('value'),_0x169df0['descriptionFactory']['registerDescriptionCallback'](_0x4e8ad3=>{if('attribute'!=_0x4e8ad3['type'])return;const {data:_0x3c227e}=_0x4e8ad3;if(_0x3c227e&&'value'==_0x3c227e['key']&&_0x4e8ad3['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x736276=o(_0x3243e6,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3243e6,'*Change\x20%0\x20content*',_0x736276)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x464497=this['editor'],_0x16740a=_0x464497['locale'];_0x464497['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f3cc6=>{if('formatBlock'!=_0x1f3cc6['type'])return;const {data:_0x3919cb}=_0x1f3cc6;if(_0x3919cb&&'htmlEmbed'==_0x3919cb['commandName']){const _0x1cdf44=o(_0x16740a,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x16740a,'*Change\x20%0\x20content*',_0x1cdf44)};}});}}class ot extends _0x24408b{['afterInit'](){const _0x41f0bd=this['editor'];if(!_0x41f0bd['plugins']['has']('ImageEditing'))return;const _0x800477=_0x41f0bd['plugins']['get']('TrackChangesEditing'),_0x130235=_0x41f0bd['plugins']['get']('ImageUtils'),_0x16bbea=_0x41f0bd['locale'];_0x800477['enableCommand']('insertImage'),_0x800477['descriptionFactory']['registerElementLabel']('imageBlock',_0x2c4dd7=>o(_0x16bbea,'ELEMENT_IMAGE',_0x2c4dd7)),_0x800477['descriptionFactory']['registerElementLabel']('imageInline',_0xbde7c2=>o(_0x16bbea,'ELEMENT_INLINE_IMAGE',_0xbde7c2)),_0x800477['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x16bbea,'ELEMENT_CAPTION')),_0x41f0bd['plugins']['has']('ImageUploadEditing')&&_0x800477['enableCommand']('uploadImage'),_0x41f0bd['plugins']['has']('ImageBlockEditing')&&_0x41f0bd['plugins']['has']('ImageInlineEditing')&&(_0x800477['enableCommand']('imageTypeInline',(_0x51a8bb,_0x1ae3b8)=>{const _0x2b2a93=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']);_0x41f0bd['model']['change'](()=>{_0x800477['markBlockFormat'](_0x2b2a93,{'commandName':'imageTypeInline','commandParams':[_0x1ae3b8]},[],'convertBlockImageToInline');});}),_0x800477['enableCommand']('imageTypeBlock',(_0x171555,_0x315d17)=>{_0x41f0bd['model']['change'](_0x972b9b=>{let _0x68a855=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x3629ef=_0x972b9b['createRangeOn'](_0x68a855);const _0x5d38f4=_0x3db975['fromPosition'](_0x3629ef['start'],'toPrevious'),_0x166664=_0x3db975['fromPosition'](_0x3629ef['end'],'toNext');_0x800477['forceDefaultExecution'](()=>_0x171555(_0x315d17)),_0x68a855=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x3629ef=_0x972b9b['createRangeOn'](_0x68a855);const _0x27ecd9=_0x972b9b['createRange'](_0x5d38f4,_0x166664);_0x5d38f4['detach'](),_0x166664['detach'](),_0x800477['markBlockFormat'](_0x68a855,{'commandName':'imageTypeInline','commandParams':[_0x315d17]},[],'convertInlineImageToBlock'),_0x27ecd9['start']['isBefore'](_0x3629ef['start'])&&_0x800477['markInsertion'](_0x972b9b['createRange'](_0x27ecd9['start'],_0x3629ef['start']),'convertInlineImageToBlock'),_0x3629ef['end']['isBefore'](_0x27ecd9['end'])&&_0x800477['markInsertion'](_0x972b9b['createRange'](_0x3629ef['end'],_0x27ecd9['end']),'convertInlineImageToBlock');});}),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x800477['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x514b68])=>{const _0x4ab4fb=_0x800477['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x44a3e5=_0x514b68['start'],_0x2bb78d=_0x514b68['end'];const _0x4f35c9=_0x41f0bd['model']['schema']['getNearestSelectionRange'](_0x44a3e5,'backward'),_0x13c998=_0x41f0bd['model']['schema']['getNearestSelectionRange'](_0x2bb78d,'forward');_0x4f35c9['isCollapsed']&&(_0x44a3e5=_0x4f35c9['start']),_0x13c998['isCollapsed']&&(_0x2bb78d=_0x13c998['end']),_0x4ab4fb([_0x41f0bd['model']['createRange'](_0x44a3e5,_0x2bb78d)]);}),_0x800477['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x99cf9f),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x99cf9f)),_0x41f0bd['plugins']['has']('ImageCaptionEditing')&&(_0x800477['enableCommand']('toggleImageCaption',(_0x264603,_0x21cd04)=>{const _0x4cedbf=_0x41f0bd['plugins']['get']('ImageCaptionUtils');let _0x3a5c8a=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x366661=_0x4cedbf['getCaptionFromImageModelElement'](_0x3a5c8a);_0x41f0bd['model']['change'](()=>{if(_0x366661)return void _0x800477['markDeletion'](_0x41f0bd['model']['createRangeOn'](_0x366661));const _0x19bafc=_0x130235['isBlockImage'](_0x3a5c8a);_0x264603(_0x21cd04),_0x3a5c8a=_0x130235['getClosestSelectedImageElement'](_0x41f0bd['model']['document']['selection']),_0x366661=_0x4cedbf['getCaptionFromImageModelElement'](_0x3a5c8a),_0x800477['markInsertion'](_0x41f0bd['model']['createRangeOn'](_0x366661),_0x19bafc?null:'imageCaption');});}),_0x800477['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x99cf9f));const _0x456e43=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1066a7(_0x2642a3,_0x45f5b){const _0x38b414=_0x456e43['findIndex'](({type:_0x53aaa7,subType:_0x4aaf2c})=>_0x2642a3['type']==_0x53aaa7&&_0x2642a3['subType']==_0x4aaf2c),_0x499ad2=_0x456e43['findIndex'](({type:_0x708938,subType:_0x27bfd6})=>_0x45f5b['type']==_0x708938&&_0x45f5b['subType']==_0x27bfd6);if(_0x38b414<0x0||_0x499ad2<0x0)return!0x1;const _0x308e8b=_0x2642a3['getFirstRange'](),_0x4b4cb9=_0x45f5b['getFirstRange']();if((0x0==_0x38b414||0x1==_0x38b414)&&0x2==_0x499ad2&&_0x308e8b['isIntersecting'](_0x4b4cb9))return!0x0;if(0x2==_0x38b414&&0x3==_0x499ad2){const _0xbbbf9e=_0x800477['_findSuggestions'](_0x308e8b,'insertion')['filter'](({suggestion:_0x5a6127,meta:_0x3dc813})=>_0x3dc813['isOwn']&&'convertInlineImageToBlock'==_0x5a6127['subType']);if(_0xbbbf9e['length']>0x1&&_0x4b4cb9['end']['isEqual'](_0x308e8b['start']))return!0x0;if(0x1==_0xbbbf9e['length']&&(_0x308e8b['start']['isEqual'](_0x4b4cb9['end'])||_0x308e8b['end']['isEqual'](_0x4b4cb9['start'])))return!0x0;}if(0x3==_0x38b414&&0x3==_0x499ad2&&_0x308e8b['start']['isBefore'](_0x4b4cb9['start'])){const _0x4ba872=_0x308e8b['end']['nodeAfter'],_0xecd856=_0x4b4cb9['start']['nodeBefore'];return _0x130235['isBlockImage'](_0x4ba872)&&_0x4ba872===_0xecd856;}return!0x1;}function _0x99cf9f(_0x40ecf3,_0x51541f){return _0x1066a7(_0x40ecf3,_0x51541f)?[_0x40ecf3,_0x51541f]:_0x1066a7(_0x51541f,_0x40ecf3)?[_0x51541f,_0x40ecf3]:null;}_0x41f0bd['plugins']['has']('ImageResize')&&(_0x800477['enableDefaultAttributesIntegration']('resizeImage'),_0x800477['registerBlockAttribute']('resizedWidth'),_0x800477['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x16bbea,'FORMAT_IMAGE_SIZE'))),_0x41f0bd['plugins']['has']('ImageTextAlternativeEditing')&&(_0x800477['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x800477['registerBlockAttribute']('alt')),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x2e7cd0=>{if(!!_0x456e43['find'](({type:_0x4ea6bd,subType:_0x31cbe5})=>_0x2e7cd0['type']==_0x4ea6bd&&_0x2e7cd0['subType']==_0x31cbe5))return _0x2e7cd0['previous']?{}:void 0x0;}),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x5de85f=>{if('insertion'==_0x5de85f['type']||'deletion'==_0x5de85f['type']){const _0x5b03c8=_0x5de85f['getContainedElement']();if(_0x5b03c8&&_0x5b03c8['is']('element','caption'))return{'type':'insertion'==_0x5de85f['type']?'addObject':'removeObject','element':_0x5b03c8,'quantity':0x1};}}),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x5548ed=>'formatBlock'==_0x5548ed['type']&&'convertInlineImageToBlock'==_0x5548ed['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5548ed['type']&&'convertBlockImageToInline'==_0x5548ed['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x800477['descriptionFactory']['registerDescriptionCallback'](_0x3f71f8=>{if('attribute'!=_0x3f71f8['type'])return;const {data:_0x10ca43}=_0x3f71f8;if(!_0x10ca43||'alt'!=_0x10ca43['key'])return;const _0x275a85=_0x10ca43['newValue'];return _0x275a85?{'type':'format','content':o(_0x16bbea,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x275a85+'\x22')}:{'type':'format','content':o(_0x16bbea,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27641b=this['editor'],_0x5a214c=_0x27641b['locale'];_0x27641b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x527220=>{if('formatBlock'!=_0x527220['type']&&'formatInline'!=_0x527220['type'])return;const {data:_0x554594}=_0x527220;if(_0x554594){if('imageTextAlternative'==_0x554594['commandName']){const _0x19bbe7=_0x554594['commandParams'][0x0]['newValue'];return _0x19bbe7?{'type':'format','content':o(_0x5a214c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19bbe7+'\x22')}:{'type':'format','content':o(_0x5a214c,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x554594['commandName']){const _0x5bd0de=_0x554594['commandParams'][0x0]['width'];return _0x5bd0de?{'type':'format','content':o(_0x5a214c,'*Set\x20image\x20width:*\x20%0',_0x5bd0de)}:{'type':'format','content':o(_0x5a214c,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x550d73=this['editor']['locale'],_0xa6da5c=this['editor']['plugins']['get']('TrackChangesEditing');_0xa6da5c['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa6da5c['registerBlockAttribute']('src'),_0xa6da5c['descriptionFactory']['registerDescriptionCallback'](_0x4d8057=>{if('attribute'!=_0x4d8057['type'])return;const {data:_0x46b178}=_0x4d8057;return _0x46b178&&'src'==_0x46b178['key']?_0x46b178['newValue']&&_0x46b178['oldValue']?{'type':'format','content':o(_0x550d73,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x13bf77=this['editor']['plugins']['get']('TrackChangesEditing');_0x13bf77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x13bf77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13bf77['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x13bf77['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ffe40=this['editor'],_0x3fc564=_0x8ffe40['locale'];_0x8ffe40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0c6b=>{if('formatBlock'!=_0x5e0c6b['type']&&'formatInline'!=_0x5e0c6b['type'])return;const {data:_0x3c2b29}=_0x5e0c6b;if(!_0x3c2b29||'replaceImageSource'!=_0x3c2b29['commandName'])return;return{'type':'format','content':o(_0x3fc564,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x24408b{['afterInit'](){const _0x49e7ba=this['editor'];if(!_0x49e7ba['plugins']['has']('ImageStyleEditing'))return;const _0x374f0d=_0x49e7ba['plugins']['get']('TrackChangesEditing'),_0x5ab682=_0x49e7ba['plugins']['get']('ImageUtils'),_0x5b2c37={};_0x374f0d['enableCommand']('imageStyle',(_0x2af27a,_0x4661a5)=>{const _0x6bfe8a=_0x49e7ba['plugins']['get']('Users')['me'],_0x35ce96=_0x49e7ba['commands']['get']('imageStyle');let _0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),_0x3e1d6c=_0x49e7ba['model']['createRangeOn'](_0x17b2ea),_0x1b10c7=_0x35ce96['value'];if(_0x1b10c7==_0x4661a5['value'])return;const _0x1dd580={'commandName':'imageStyle','commandParams':[_0x4661a5],'formatGroupId':_0x425cf6()};_0x49e7ba['model']['change'](()=>{if(_0x374f0d['getSuggestions']()['filter'](_0x1cf690=>_0x1cf690['isInContent']&&_0x6bfe8a==_0x1cf690['author']&&('formatBlock'==_0x1cf690['type']||'formatInline'==_0x1cf690['type'])&&('imageStylePreApply'==_0x1cf690['subType']||'imageStylePostApply'==_0x1cf690['subType'])&&_0x1cf690['getFirstRange']()['isEqual'](_0x3e1d6c))['forEach'](_0x41f42e=>_0x374f0d['discardSuggestion'](_0x41f42e['head'])),_0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),_0x3e1d6c=_0x49e7ba['model']['createRangeOn'](_0x17b2ea),_0x35ce96['refresh'](),_0x49e7ba['commands']['get']('imageTypeInline')['refresh'](),_0x49e7ba['commands']['get']('imageTypeBlock')['refresh'](),_0x1b10c7=_0x35ce96['value'],_0x1b10c7!=_0x4661a5['value'])return _0x5ab682['isInlineImage'](_0x17b2ea)&&_0x35ce96['shouldConvertImageType'](_0x4661a5['value'],_0x17b2ea)?(_0x2af27a({..._0x4661a5,'setImageSizes':!0x1}),_0x17b2ea=_0x5ab682['getClosestSelectedImageElement'](_0x49e7ba['model']['document']['selection']),void _0x374f0d['markBlockFormat'](_0x17b2ea,{..._0x1dd580,'commandReversedParams':[{'value':_0x1b10c7||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5ab682['isBlockImage'](_0x17b2ea)?_0x374f0d['markBlockFormat'](_0x17b2ea,_0x1dd580,[],'imageStylePostApply'):_0x374f0d['markInlineFormat'](_0x3e1d6c,_0x1dd580,'imageStylePostApply'));});});for(const _0x1b2ebd of _0x49e7ba['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5b2c37[_0x1b2ebd['name']]=_0x1b2ebd['title']['toLowerCase']();_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf1f209])=>{_0x5ab682['setImageNaturalSizeAttributes'](_0xf1f209['getContainedElement']());}),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x194b6a,_0x1e40fe)=>{_0x374f0d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x194b6a,{'commandName':_0x1e40fe['commandName'],'commandParams':_0x1e40fe['commandReversedParams']});}),_0x374f0d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1c0b59,_0x29600e){if(_0x58dad7(_0x1c0b59,_0x29600e))return[_0x1c0b59,_0x29600e];if(_0x58dad7(_0x29600e,_0x1c0b59))return[_0x29600e,_0x1c0b59];return null;});const _0x1de5a3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x58dad7(_0x16d02b,_0x55f8c0){const _0x46ea05=_0x1de5a3['findIndex'](({type:_0x1dd22e,subType:_0x1841cf})=>_0x16d02b['type']==_0x1dd22e&&_0x16d02b['subType']==_0x1841cf),_0x2ad12c=_0x1de5a3['findIndex'](({type:_0xdee35f,subType:_0x57324a})=>_0x55f8c0['type']==_0xdee35f&&_0x55f8c0['subType']==_0x57324a);if(_0x46ea05<0x0||_0x2ad12c<0x0)return!0x1;const _0x5e43e4=_0x16d02b['getFirstRange'](),_0x51778d=_0x55f8c0['getFirstRange']();if((0x0==_0x46ea05||0x1==_0x46ea05)&&0x2==_0x2ad12c&&_0x5e43e4['isIntersecting'](_0x51778d))return!0x0;if(0x2==_0x46ea05&&0x3==_0x2ad12c){const _0x48e2da=_0x374f0d['_findSuggestions'](_0x5e43e4,'insertion')['filter'](({suggestion:_0x251a66,meta:_0x259253})=>_0x259253['isOwn']&&'convertInlineImageToBlock'==_0x251a66['subType']);if(_0x48e2da['length']>0x1&&_0x51778d['end']['isEqual'](_0x5e43e4['start']))return!0x0;if(0x1==_0x48e2da['length']&&(_0x5e43e4['start']['isEqual'](_0x51778d['end'])||_0x5e43e4['end']['isEqual'](_0x51778d['start'])))return!0x0;}if(0x3==_0x46ea05&&0x3==_0x2ad12c&&_0x5e43e4['start']['isBefore'](_0x51778d['start'])){const _0x1c2962=_0x5e43e4['end']['nodeAfter'],_0x4fb69d=_0x51778d['start']['nodeBefore'];return _0x5ab682['isBlockImage'](_0x1c2962)&&_0x1c2962===_0x4fb69d;}return!0x1;}_0x49e7ba['model']['document']['registerPostFixer'](()=>{let _0x45a5ef=!0x1;const _0x366daf=Array['from'](_0x49e7ba['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x208b47,data:_0x3efee8}of _0x366daf){const {group:_0xe485e6,type:_0x2b6e5e,subType:_0x4f4831,id:_0x15161c}=_0x374f0d['_splitMarkerName'](_0x208b47);if('suggestion'==_0xe485e6&&_0x374f0d['hasSuggestion'](_0x15161c)){if('formatBlock'==_0x2b6e5e&&('imageStylePreApply'==_0x4f4831||'imageStylePostApply'==_0x4f4831)){const _0x316a21=_0x374f0d['getSuggestion'](_0x15161c);if(_0x3efee8['newRange']){const _0x2ccbfc=_0x316a21['getFirstRange']()['getContainedElement']();if(_0x5ab682['isBlockImage'](_0x2ccbfc))continue;_0x374f0d['discardSuggestion'](_0x316a21),_0x45a5ef=!0x0;}}if('insertion'==_0x2b6e5e&&'imageCaption'==_0x4f4831&&!_0x3efee8['newRange']){const _0x161112=_0x374f0d['getSuggestion'](_0x15161c);_0x161112['next']&&_0x161112['next']['isInContent']&&(_0x374f0d['discardSuggestion'](_0x161112['next']),_0x45a5ef=!0x0);}}}return _0x45a5ef;}),this['_registerLegacyDescription'](_0x5b2c37);}['_registerLegacyDescription'](_0x2585b4){const _0x2fe1c6=this['editor'],_0x39fce8=_0x2fe1c6['locale'];_0x2fe1c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1ed3d4=>{if('formatBlock'!=_0x1ed3d4['type']&&'formatInline'!=_0x1ed3d4['type'])return;const {data:_0x38eaa2}=_0x1ed3d4;if(!_0x38eaa2||'imageStyle'!=_0x38eaa2['commandName'])return;const _0x9d5c97=_0x38eaa2['commandParams'][0x0]['value'];return _0x38fa5c('side'===_0x9d5c97?o(_0x39fce8,'FORMAT_SIDE_IMAGE'):_0x2585b4[_0x9d5c97]||_0x9d5c97);function _0x38fa5c(_0x11e697){return{'type':'format','content':o(_0x39fce8,'*Format:*\x20%0',_0x11e697)};}});}}class ct extends _0x24408b{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3644ad){super(_0x3644ad),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5eb837=this['editor'],_0x12065f=_0x5eb837['commands']['get']('importWord'),_0x88f290=_0x5eb837['commands']['get']('trackChanges');_0x12065f&&(_0x12065f['on']('execute',(_0x2046c5,[,_0x20cf92])=>{this['_trackChangesValueDuringImport']=_0x88f290['value'],_0x20cf92['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x12065f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x12065f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x88f290['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5eb837['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x4d3f4e,_0x2a3d38){const {suggestions:_0x567287}=_0x2a3d38,_0x307bc9=this['editor']['commands']['get']('trackChanges'),_0xb91f65=_0x307bc9['value'];this['_trackChangesValueDuringImport']!==_0xb91f65&&(_0x307bc9['execute'](),this['_trackChangesExecuted']=!0x0),_0x567287&&_0x567287['forEach'](({id:_0x1659ac,type:_0xe2e83c,author:_0x464c2c,created_at:_0x49d39e})=>{const _0x4c98c8={'id':_0x1659ac,'type':_0xe2e83c,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x464c2c,'createdAt':_0x49d39e?new Date(_0x49d39e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4c98c8);});}}class ut extends _0x24408b{['afterInit'](){const _0x5a3fd1=this['editor'],_0x48cfc7=_0x5a3fd1['plugins']['get']('TrackChangesEditing');if(_0x5a3fd1['plugins']['has']('IndentEditing')&&(_0x48cfc7['enableCommand']('indent'),_0x48cfc7['enableCommand']('outdent')),_0x5a3fd1['plugins']['has']('IndentBlock')){for(const _0x3351de of['indentBlock','outdentBlock'])_0x48cfc7['enableDefaultAttributesIntegration'](_0x3351de);}const _0x482f62=_0x5a3fd1['locale'];_0x48cfc7['registerBlockAttribute']('blockIndent'),_0x48cfc7['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x482f62,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488b8d=this['editor'],_0x304ea0=_0x488b8d['locale'],_0x4654ac=_0x488b8d['plugins']['get']('TrackChangesEditing');_0x4654ac['descriptionFactory']['registerDescriptionCallback'](_0x512ef7=>{if('formatBlock'!=_0x512ef7['type'])return;const {data:_0x262032}=_0x512ef7;if(!_0x262032)return;if('indentBlock'!=_0x262032['commandName']&&'outdentBlock'!=_0x262032['commandName'])return;const _0x515bf4=_0x512ef7['getItems']()[0x0],_0x2187fc=_0x4654ac['descriptionFactory']['getItemLabel'](_0x515bf4);return'indentBlock'==_0x262032['commandName']?{'type':'format','content':o(_0x304ea0,'*Indent:*\x20%0',_0x2187fc)}:'outdentBlock'==_0x262032['commandName']?{'type':'format','content':o(_0x304ea0,'*Outdent:*\x20%0',_0x2187fc)}:void 0x0;});}}class ft extends _0x24408b{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x24408b{['afterInit'](){const _0x245bb5=this['editor'];if(!_0x245bb5['plugins']['has']('LinkEditing'))return;const _0x19ea7b=_0x245bb5['plugins']['get']('TrackChangesEditing'),_0xca59ca=_0x245bb5['commands']['get']('link');_0x19ea7b['enableDefaultAttributesIntegration']('link'),_0x19ea7b['enableDefaultAttributesIntegration']('unlink'),_0x19ea7b['registerInlineAttribute']('linkHref');for(const _0x33471f of _0xca59ca['manualDecorators'])_0x19ea7b['registerInlineAttribute'](_0x33471f['id']),_0x19ea7b['descriptionFactory']['registerAttributeLabel'](_0x33471f['id'],'link\x20('+_0x33471f['label']['toLowerCase']()+')');_0x19ea7b['descriptionFactory']['registerDescriptionCallback'](_0x231cac=>{if('attribute'!=_0x231cac['type'])return;const {data:_0xcf52da}=_0x231cac;if(!_0xcf52da||'linkHref'!=_0xcf52da['key'])return;const _0x20da6d=_0xcf52da['newValue'],_0x11acec=_0x245bb5['locale'];return{'type':'format','content':null==_0x20da6d?o(_0x11acec,'*Remove\x20link*'):o(_0x11acec,'*Set\x20link:*\x20%0','\x22'+_0x20da6d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x115854=this['editor'],_0x21e561=_0x115854['locale'];_0x115854['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5fe86e=>{if('formatInline'!=_0x5fe86e['type'])return;const {data:_0x5b7224}=_0x5fe86e;if(_0x5b7224){if('link'==_0x5b7224['commandName']){const _0x4d8986=_0x5b7224['commandParams'][0x0];return{'type':'format','content':o(_0x21e561,'*Set\x20link:*\x20%0','\x22'+_0x4d8986+'\x22')};}return'unlink'==_0x5b7224['commandName']?{'type':'format','content':o(_0x21e561,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x24408b{['afterInit'](){const _0x231558=this['editor'],_0x289ae8=_0x231558['locale'];if(!_0x231558['plugins']['has']('LegacyListEditing'))return;const _0x276335=_0x231558['plugins']['get']('TrackChangesEditing'),_0x3f0b82=_0x231558['plugins']['has']('LegacyTodoListEditing');function _0x5d0748(_0x4f7563){return()=>{const _0x590c99=_0x231558['model']['document']['selection'],_0x12422e=_0x231558['commands']['get'](_0x4f7563);if(_0x12422e['value'])return void _0x231558['execute']('paragraph',{});const _0x478cd3=_0x4f7563['slice'](0x0,-0x4),_0x367f38=function(_0x16bf74,_0x3dcef0,_0x2cd702){let _0x1f111a=Array['from'](_0x16bf74)['filter'](_0x563d67=>function(_0x16ddb7,_0x8e33b9){return _0x8e33b9['checkChild'](_0x16ddb7['parent'],'listItem')&&!_0x8e33b9['isObject'](_0x16ddb7);}(_0x563d67,_0x2cd702));_0x1f111a=_0x1f111a['filter'](_0x16c577=>!_0x16c577['is']('element','listItem')||_0x16c577['getAttribute']('listType')!=_0x3dcef0);const _0x1da14e=new Set();for(const _0x4bde50 of _0x1f111a)_0x4bde50['is']('element','listItem')?_0x1da14e['add'](Le(_0x4bde50)):_0x1da14e['add'](_0x4bde50);return Array['from'](_0x1da14e);}(_0x590c99['getSelectedBlocks'](),_0x478cd3,_0x231558['model']['schema']);_0x231558['model']['change'](()=>{for(const _0x2ac4d6 of _0x367f38)_0x276335['markBlockFormat'](_0x2ac4d6,{'commandName':_0x4f7563,'commandParams':[{'forceValue':!_0x12422e['value']}],'formatGroupId':'blockName'},Ee(_0x2ac4d6));});};}function _0x2280eb(_0x287a59){return()=>{const _0x2d0e71=function(_0x1056d5){let _0x101db8=Array['from'](_0x1056d5);const _0xcd999b=_0x101db8['findIndex'](_0xae094e=>'listItem'!=_0xae094e['name']);return _0xcd999b>-0x1&&(_0x101db8=_0x101db8['slice'](0x0,_0xcd999b)),_0x101db8;}(_0x231558['model']['document']['selection']['getSelectedBlocks']()),_0x302a7f=_0x231558['model']['createRange'](_0x231558['model']['createPositionAt'](_0x2d0e71[0x0],'before'),_0x231558['model']['createPositionAt'](_0x2d0e71[_0x2d0e71['length']-0x1],'end'));_0x231558['model']['change'](()=>{_0x276335['markBlockFormat'](_0x302a7f,{'commandName':_0x287a59,'commandParams':[],'formatGroupId':'listIndent'},function(_0x287db6){const _0x460f79=new Set();for(const _0x2dc7fb of _0x287db6){let _0x3aada9=_0x2dc7fb['nextSibling'];for(;_0x3aada9&&_0x3aada9['getAttribute']('listIndent')>_0x2dc7fb['getAttribute']('listIndent');)_0x460f79['add'](_0x3aada9),_0x3aada9=_0x3aada9['nextSibling'];}return Array['from'](_0x460f79);}(_0x2d0e71));});};}_0x276335['enableCommand']('numberedList',_0x5d0748('numberedList')),_0x276335['enableCommand']('bulletedList',_0x5d0748('bulletedList')),_0x3f0b82&&_0x276335['enableCommand']('todoList',_0x5d0748('todoList')),_0x276335['enableCommand']('indentList',_0x2280eb('indentList')),_0x276335['enableCommand']('outdentList',_0x2280eb('outdentList')),_0x3f0b82&&_0x276335['enableCommand']('checkTodoList',()=>{const _0x4ec197=_0x231558['commands']['get']('checkTodoList'),_0x58d701=Array['from'](_0x4ec197['_selectedElements']);_0x58d701['filter'](_0x40c0e2=>_0x40c0e2['getAttribute']('todoListChecked')!=_0x4ec197['value']),_0x231558['model']['change'](()=>{for(const _0x52a8ac of _0x58d701)_0x276335['markBlockFormat'](_0x52a8ac,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4ec197['value']}]});});}),_0x276335['descriptionFactory']['registerElementLabel']('listItem',_0x54986c=>o(_0x289ae8,'ELEMENT_LIST_ITEM',_0x54986c)),_0x276335['descriptionFactory']['registerDescriptionCallback'](_0x481dcc=>{if('formatBlock'!=_0x481dcc['type']&&'formatInline'!=_0x481dcc['type'])return;const {data:_0x12609c}=_0x481dcc;if(_0x12609c){if('numberedList'==_0x12609c['commandName']||'bulletedList'==_0x12609c['commandName']||'todoList'==_0x12609c['commandName'])switch(_0x12609c['commandName']['replace']('List','')){case'bulleted':return _0x13a494(o(_0x289ae8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x13a494(o(_0x289ae8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x13a494(o(_0x289ae8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x12609c['commandName'])return{'type':'format','content':o(_0x289ae8,'*Indent:*\x20%0',o(_0x289ae8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x12609c['commandName'])return{'type':'format','content':o(_0x289ae8,'*Outdent:*\x20%0',o(_0x289ae8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x12609c['commandName'])return _0x12609c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x289ae8,'*Check\x20item*')}:{'type':'format','content':o(_0x289ae8,'*Uncheck\x20item*')};}function _0x13a494(_0x381131){return{'type':'format','content':o(_0x289ae8,'*Change\x20to:*\x20%0',_0x381131)};}});}}function Le(_0x4c3482){const _0x46fe24=_0x4c3482['getAttribute']('listIndent');if(0x0==_0x46fe24)return _0x4c3482;let _0x145419=_0x4c3482;for(;_0x4c3482['previousSibling']&&_0x4c3482['previousSibling']['is']('element','listItem');){const _0x1887b0=_0x4c3482['previousSibling']['getAttribute']('listIndent');if(_0x1887b0==_0x46fe24)_0x145419=_0x4c3482['previousSibling'];else{if(_0x1887b0<_0x46fe24)break;}_0x4c3482=_0x4c3482['previousSibling'];}return _0x145419;}function Ee(_0x109b9e){const _0x477ded=[];if(_0x109b9e['is']('element','listItem')&&_0x109b9e['getAttribute']('listIndent')>0x0){let _0x4a3f14=_0x109b9e['nextSibling'];for(;_0x4a3f14&&'listItem'==_0x4a3f14['name']&&_0x4a3f14['getAttribute']('listIndent')==_0x109b9e['getAttribute']('listIndent');)_0x477ded['push'](_0x4a3f14),_0x4a3f14=_0x4a3f14['nextSibling'];}return _0x477ded;}class Q extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x315fd9=this['editor']['config']['get']('list.properties'),_0x598e11=this['editor']['plugins']['get']('TrackChangesEditing');_0x315fd9['styles']&&_0x598e11['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x315fd9['reversed']&&_0x598e11['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x315fd9['startIndex']&&_0x598e11['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x598e11['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2e31fd,_0x27ffe4={}){const _0x5168ce=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1365c2=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5168ce['markMultiRangeBlockFormat'](_0x1365c2,{'commandName':'listStyle','commandParams':[{'type':_0x27ffe4['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36072e,_0x57a150={}){const _0x2a5561=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1586d1=this['_getSuggestionBlocks'](_0x302be5=>_0x302be5['is']('element','listItem')&&'numbered'===_0x302be5['getAttribute']('listType'));if(_0x1586d1['length']<0x1)return;const _0x112968=_0x1586d1['map'](_0x37c587=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x37c587,'before'),this['editor']['model']['createPositionAt'](_0x37c587,0x0)));this['editor']['model']['change'](()=>{_0x2a5561['markMultiRangeBlockFormat'](_0x112968,{'commandName':'listReversed','commandParams':[{'reversed':_0x57a150['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x48a0de,_0x5721d8={}){const _0x15e2d1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bf537=this['_getSuggestionBlocks'](_0x5d0c6e=>_0x5d0c6e['is']('element','listItem')&&'numbered'===_0x5d0c6e['getAttribute']('listType'));if(_0x1bf537['length']<0x1)return;const _0xe73971=_0x1bf537['map'](_0x3cd9c7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3cd9c7,'before'),this['editor']['model']['createPositionAt'](_0x3cd9c7,0x0)));this['editor']['model']['change'](()=>{_0x15e2d1['markMultiRangeBlockFormat'](_0xe73971,{'commandName':'listStart','commandParams':[{'startIndex':_0x5721d8['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x141c88){if('formatBlock'!=_0x141c88['type']&&'formatInline'!=_0x141c88['type'])return;const _0x45edee=this['editor']['locale'],{data:_0x14333f}=_0x141c88;if(!_0x14333f)return;let _0x2f73f0,_0x368dad;switch(_0x14333f['commandName']){case'listStyle':_0x2f73f0='*Change\x20to:*\x20%0',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0,o(_0x45edee,this['_getTranslationKeyForListStyle'](_0x14333f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f73f0=_0x14333f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0)};break;case'listStart':_0x2f73f0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x368dad={'type':'format','content':o(_0x45edee,_0x2f73f0,_0x14333f['commandParams'][0x0]['startIndex'])};}return _0x368dad;}['_getSuggestionBlocksForListStyle'](){const _0x576f4d=this['editor']['plugins']['get']('LegacyListUtils');let _0x26913e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x26913e[0x0]?.['is']('element','listItem')&&_0x26913e['unshift'](..._0x576f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x26913e[_0x26913e['length']-0x1]?.['is']('element','listItem')&&_0x26913e['push'](..._0x576f4d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x26913e=[...new Set(_0x26913e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x26913e=_0x26913e['filter'](_0x1694ed=>_0x1694ed['is']('element','listItem'))),_0x26913e;}['_getSuggestionBlocks'](_0x18a7bc){const _0x130a97=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c1727=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x18a7bc)['map'](_0x250f0a=>{const _0x366354=this['editor']['model']['createPositionAt'](_0x250f0a,0x0);return[..._0x130a97['getSiblingNodes'](_0x366354,'backward'),..._0x130a97['getSiblingNodes'](_0x366354,'forward')];})['flat']();return _0x4c1727=[...new Set(_0x4c1727)],_0x4c1727;}['_getTranslationKeyForListStyle'](_0x2d0d13){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2d0d13)||'default')['toUpperCase']()+'_LIST_'+_0x2d0d13['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x24408b{['afterInit'](){const _0x59cdfe=this['editor'];if(!_0x59cdfe['plugins']['has']('MediaEmbedEditing'))return;const _0x501dfc=_0x59cdfe['plugins']['get']('TrackChangesEditing'),_0x39e61a=_0x59cdfe['locale'];_0x501dfc['enableCommand']('mediaEmbed'),_0x501dfc['descriptionFactory']['registerElementLabel']('media',_0x417507=>o(_0x39e61a,'ELEMENT_MEDIA',_0x417507)),_0x59cdfe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x11167b,{writer:_0x350016,options:_0x164c1b})=>{if(_0x164c1b['showSuggestionHighlights'])return _0x350016['createEmptyElement']('div');},'converterPriority':'high'}),_0x59cdfe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x299c19,_0x17f380,_0x46b0d1)=>{_0x46b0d1['options']['showSuggestionHighlights']&&_0x299c19['stop']();},{'priority':'high'});}}class mt extends _0x24408b{['afterInit'](){const _0x12505c=this['editor'];_0x12505c['plugins']['has']('MentionEditing')&&_0x12505c['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x24408b{['afterInit'](){const _0x5b3058=this['editor'];if(!_0x5b3058['plugins']['has']('MergeFieldsEditing'))return;_0x5b3058['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x5b3058['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2dd45f=_0x5b3058['plugins']['get']('TrackChangesEditing'),_0x458c22=_0x5b3058['locale'];_0x2dd45f['descriptionFactory']['registerElementLabel']('mergeField',_0x554bc9=>o(_0x458c22,'ELEMENT_MERGE_FIELD',_0x554bc9)),_0x2dd45f['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x1f73a0=>o(_0x458c22,'ELEMENT_MERGE_FIELD',_0x1f73a0)),_0x2dd45f['descriptionFactory']['registerDescriptionCallback'](_0x1b3232=>{if('insertion'!=_0x1b3232['type']&&'deletion'!=_0x1b3232['type'])return;const _0x4cbaed=_0x1b3232['getContainedElement']();if(null==_0x4cbaed)return;if(!_0x4cbaed['is']('element','mergeField')&&!_0x4cbaed['is']('element','mergeFieldBlock'))return;const _0x46aa21=_0x5b3058['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x4cbaed['getAttribute']('id'));return'insertion'==_0x1b3232['type']?{'type':'insertion','content':o(_0x458c22,'*Insert:*\x20%0','\x22'+_0x46aa21+'\x22\x20'+o(_0x458c22,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x458c22,'*Remove:*\x20%0','\x22'+_0x46aa21+'\x22\x20'+o(_0x458c22,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x24408b{['afterInit'](){const _0x2e6ca5=this['editor'],_0x3d80a0=_0x2e6ca5['plugins']['get']('TrackChangesEditing');_0x2e6ca5['plugins']['has']('MultiLevelList')&&(_0x3d80a0['enableDefaultAttributesIntegration']('multiLevelList'),_0x3d80a0['registerBlockAttribute']('listMarkerStyle'),_0x3d80a0['descriptionFactory']['registerDescriptionCallback'](_0x472ae4=>this['handleDescriptions'](_0x472ae4)));}['handleDescriptions'](_0x173739){const _0x18e75a=this['editor']['locale'],{data:_0x334a9e}=_0x173739,_0x30f36d={'type':'format','content':''};if(_0x334a9e&&'listMarkerStyle'==_0x334a9e['key']){if(!_0x334a9e['oldValue'])return{'type':'format','content':o(_0x18e75a,'*Set\x20format:*\x20%0',o(_0x18e75a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x334a9e['newValue']+')'};if(!_0x334a9e['newValue']){let _0x27cd09=_0x173739['head'];for(;_0x27cd09;){if(_0x27cd09['data']&&'listType'==_0x27cd09['data']['key']&&_0x27cd09['data']['newValue'])return _0x30f36d;_0x27cd09=_0x27cd09['next'];}return{'type':'format','content':o(_0x18e75a,'*Remove\x20format:*\x20%0',o(_0x18e75a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x334a9e['oldValue']+')'};}}}}class kt extends _0x24408b{['afterInit'](){const _0x5b1d50=this['editor'];if(!_0x5b1d50['plugins']['has']('PageBreakEditing'))return;_0x5b1d50['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x25615a=_0x5b1d50['plugins']['get']('TrackChangesEditing'),_0x26b3bb=_0x5b1d50['locale'];_0x25615a['descriptionFactory']['registerElementLabel']('pageBreak',_0x508394=>o(_0x26b3bb,'ELEMENT_PAGE_BREAK',_0x508394));}}class bt extends _0x24408b{['afterInit'](){const _0x57c51b=this['editor'];if(!_0x57c51b['plugins']['has']('Paragraph'))return;const _0x115e55=_0x57c51b['locale'],_0x1f34d0=_0x57c51b['plugins']['get']('TrackChangesEditing');_0x1f34d0['descriptionFactory']['registerElementLabel']('paragraph',_0x1d74f4=>o(_0x115e55,'ELEMENT_PARAGRAPH',_0x1d74f4)),_0x1f34d0['enableDefaultAttributesIntegration']('paragraph'),_0x1f34d0['enableCommand']('insertParagraph'),_0x57c51b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x57c51b),{'priority':'highest'}),_0x57c51b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5909d3,_0x1f1919,_0x335bd6)=>{_0x335bd6['options']['showSuggestionHighlights']&&nr(_0x57c51b,{'showActiveMarker':!0x1})(_0x5909d3,_0x1f1919,_0x335bd6);},{'priority':'highest'});const _0x4fcaf1=_0x1f34d0['descriptionFactory'];_0x4fcaf1['registerDescriptionCallback'](_0x23d830=>{if('insertion'!==_0x23d830['type'])return;const {start:_0x3fd0af,end:_0x5141f5}=_0x23d830['getFirstRange']();if(!_0x3fd0af['isTouching'](_0x5141f5)||!_0x3fd0af['nodeAfter'])return;const _0x1acae0=_0x57c51b['model']['schema'],_0x14992b=_0x3fd0af['nodeAfter'];return _0x1acae0['isBlock'](_0x14992b)&&!_0x1acae0['isLimit'](_0x14992b)&&_0x1acae0['checkChild'](_0x14992b,'$text')?{'type':'insertion','content':o(_0x115e55,'*Insert:*\x20%0',_0x4fcaf1['getItemLabel'](_0x14992b,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e309f=this['editor'],_0x18ae5c=_0x4e309f['locale'];_0x4e309f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4873d4=>{if('formatBlock'!=_0x4873d4['type'])return;const {data:_0x1b8ff4}=_0x4873d4;return _0x1b8ff4&&'paragraph'==_0x1b8ff4['commandName']?{'type':'format','content':o(_0x18ae5c,'*Change\x20to:*\x20%0',o(_0x18ae5c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2918a6,{showActiveMarker:_0x5e430b=!0x0}={}){return(_0x373b7c,_0x19a67f,_0x451b07)=>{const _0x48ace8=_0x2918a6['plugins']['get']('TrackChangesEditing'),_0x2601ae=_0x19a67f['markerRange']['start'],_0x187465=_0x19a67f['markerRange']['end'],_0x124ac8=_0x2918a6['model']['schema'];if(!_0x2601ae['isTouching'](_0x187465)||!_0x2601ae['nodeAfter'])return;const _0x5bce93=_0x2601ae['nodeAfter'];if(_0x124ac8['isBlock'](_0x5bce93)&&!_0x124ac8['isLimit'](_0x5bce93)&&_0x124ac8['checkChild'](_0x5bce93,'$text')){if(!_0x451b07['consumable']['consume'](_0x19a67f['markerRange'],_0x373b7c['name']))return;const {authorId:_0x50a8df}=_0x48ace8['_splitMarkerName'](_0x19a67f['markerName']),_0x4ee7bf=_0x451b07['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x50a8df}),_0x2fea3f=_0x451b07['mapper']['toViewPosition'](_0x187465);_0x5e430b&&_0x48ace8['activeMarkers']['includes'](_0x19a67f['markerName'])&&_0x451b07['writer']['addClass']('ck-suggestion-marker--active',_0x4ee7bf),_0x451b07['writer']['insert'](_0x2fea3f,_0x4ee7bf),_0x451b07['mapper']['bindElementToMarker'](_0x4ee7bf,_0x19a67f['markerName']);}};}class yt extends _0x24408b{['afterInit'](){const _0x473cd6=this['editor'];if(!_0x473cd6['plugins']['has']('RemoveFormatEditing'))return;_0x473cd6['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x307f89=this['editor'];_0x307f89['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47702d=>{if('formatBlock'!=_0x47702d['type']&&'formatInline'!=_0x47702d['type'])return;const {data:_0x5036a9}=_0x47702d;return _0x5036a9&&'removeFormat'==_0x5036a9['commandName']?{'type':'format','content':o(_0x307f89['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x24408b{['afterInit'](){const _0x2adc36=this['editor'];if(!_0x2adc36['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5f1d69=_0x2adc36['plugins']['get']('TrackChangesEditing');_0x5f1d69['enableCommand']('goToPreviousRestrictedEditingException'),_0x5f1d69['enableCommand']('goToNextRestrictedEditingException');const _0x202c9d=_0x2adc36['plugins']['get']('RestrictedEditingModeEditing');_0x202c9d['enableCommand']('trackChanges'),_0x202c9d['enableCommand']('acceptSuggestion'),_0x202c9d['enableCommand']('discardSuggestion'),_0x202c9d['enableCommand']('acceptAllSuggestions'),_0x202c9d['enableCommand']('discardAllSuggestions'),_0x202c9d['enableCommand']('acceptSelectedSuggestions'),_0x202c9d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x24408b{static get['requires'](){return[_0x5507b4];}['init'](){const _0x1ed106=this['editor'],_0x2e6838=_0x1ed106['plugins']['get']('TrackChangesEditing');_0x2e6838['enableCommand']('shiftEnter'),_0x1ed106['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x1ed106),{'priority':'high'}),_0x1ed106['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x1ed106),{'priority':'high'}),_0x1ed106['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2c23b1,_0xea7861,_0x1eddfc)=>{_0x1eddfc['options']['showSuggestionHighlights']&&ke(_0x1ed106,{'showActiveMarker':!0x1})(_0x2c23b1,_0xea7861,_0x1eddfc);}),_0x2e6838['descriptionFactory']['registerElementLabel']('softBreak',_0x53bb7b=>o(_0x1ed106['locale'],'ELEMENT_LINE_BREAK',_0x53bb7b));}}function ke(_0x53266e,{showActiveMarker:_0x42fa60=!0x0}={}){return(_0x1fa866,_0x5207e2,_0x5a9726)=>{const _0x34b234=_0x53266e['plugins']['get']('TrackChangesEditing');if(!_0x5a9726['consumable']['test'](_0x5207e2['markerRange'],_0x1fa866['name']))return;const _0x5e9e02=_0x53266e['model'];for(const _0x3ad7fe of _0x5207e2['markerRange']['getItems']()){if(!_0x3ad7fe['is']('element','softBreak'))continue;const _0xc1a325='deletion'==_0x5207e2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x371462}=_0x34b234['_splitMarkerName'](_0x5207e2['markerName']),_0xeb126e=_0x5a9726['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xc1a325,'data-author-id':_0x371462}),_0x2e74be=_0x5a9726['mapper']['toViewPosition'](_0x5e9e02['createPositionBefore'](_0x3ad7fe));_0x42fa60&&_0x34b234['activeMarkers']['includes'](_0x5207e2['markerName'])&&_0x5a9726['writer']['addClass']('ck-suggestion-marker--active',_0xeb126e),_0x5a9726['writer']['insert'](_0x2e74be,_0xeb126e),_0x5a9726['mapper']['bindElementToMarker'](_0xeb126e,_0x5207e2['markerName']);}};}class At extends _0x24408b{['afterInit'](){const _0xda51d4=this['editor'],_0x4e7446=_0xda51d4['model'],_0x7ea8e2=_0xda51d4['locale'];if(!_0xda51d4['plugins']['has']('StandardEditingModeEditing'))return;const _0x991d42=_0xda51d4['plugins']['get']('TrackChangesEditing'),_0x1d7f5f='restrictedEditingException',_0x324c31=_0xda51d4['commands']['get'](_0x1d7f5f);_0x991d42['enableCommand'](_0x1d7f5f,(_0x37a891,_0x5564d1={})=>{const _0x1a9647=_0x4e7446['document']['selection'];if(_0x1a9647['isCollapsed'])return void _0x37a891(_0x5564d1);const _0x2b12c9=void 0x0!==_0x5564d1['forceValue']?_0x5564d1['forceValue']:!_0x324c31['value'];_0x4e7446['change'](()=>{const _0xf8ecf1=Array['from'](_0x1a9647['getRanges']());for(const _0x311651 of _0xf8ecf1){const _0x1b2454=_0x2b12c9?[_0x311651]:io(_0x1d7f5f,_0x311651,_0x4e7446);for(const _0x2ad95c of _0x1b2454)_0x991d42['markInlineFormat'](_0x2ad95c,{'commandName':_0x1d7f5f,'commandParams':[{'forceValue':_0x2b12c9}]});}});}),_0x991d42['descriptionFactory']['registerDescriptionCallback'](_0x1b91fe=>{if('formatBlock'!=_0x1b91fe['type']&&'formatInline'!=_0x1b91fe['type'])return;const {data:_0x337b82}=_0x1b91fe;return _0x337b82&&_0x337b82['commandName']==_0x1d7f5f?_0x337b82['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7ea8e2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x7ea8e2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x24408b{['afterInit'](){const _0x582861=this['editor'];if(!_0x582861['plugins']['has']('Style')||!_0x582861['plugins']['has']('DataSchema'))return;const _0x3845dc=_0x582861['plugins']['get']('TrackChangesEditing'),_0x38c9b5=_0x582861['locale'],_0x51cb64=_0x582861['config']['get']('style')||{},_0x31b696=_0x582861['plugins']['get']('GeneralHtmlSupport'),_0x45a221=_0x582861['plugins']['get']('StyleUtils')['normalizeConfig'](_0x582861['plugins']['get']('DataSchema'),_0x51cb64['definitions']);_0x3845dc['enableDefaultAttributesIntegration']('style');const _0x578f98=new Set();for(const _0x792015 of _0x45a221['block']){const _0x10695b=_0x31b696['getGhsAttributeNameForElement'](_0x792015['element']);_0x578f98['add'](_0x10695b);}const _0xe0fe23=new Set();for(const _0x261912 of _0x45a221['inline']){const _0x5af563=_0x31b696['getGhsAttributeNameForElement'](_0x261912['element']);_0xe0fe23['add'](_0x5af563);for(const _0x57384e of _0x261912['ghsAttributes'])_0xe0fe23['add'](_0x57384e);}for(const _0x47cde1 of _0x578f98)_0x3845dc['registerBlockAttribute'](_0x47cde1),_0x3845dc['descriptionFactory']['registerAttributeLabel'](_0x47cde1,o(_0x38c9b5,'FORMAT_STYLE'));for(const _0x9c06f2 of _0xe0fe23)_0x3845dc['registerInlineAttribute'](_0x9c06f2),_0x3845dc['descriptionFactory']['registerAttributeLabel'](_0x9c06f2,o(_0x38c9b5,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a1ec8=this['editor'],_0x4f2664=_0x3a1ec8['locale'];_0x3a1ec8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d8c06=>{if('formatBlock'!=_0x5d8c06['type']&&'formatInline'!=_0x5d8c06['type'])return;const {data:_0x3f8427}=_0x5d8c06;return _0x3f8427&&'style'===_0x3f8427['commandName']?_0x3f8427['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4f2664,'*Set\x20format:*\x20%0',_0x3f8427['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4f2664,'*Remove\x20format:*\x20%0',_0x3f8427['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x24408b{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x9ecea0){super(_0x9ecea0),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x995f96=this['editor'],_0x1d9ccf=_0x995f96['model']['document']['selection'];if(!_0x995f96['plugins']['has']('TableEditing'))return;const _0x1148af=_0x995f96['locale'],_0x1a82d2=_0x995f96['plugins']['get']('TrackChangesEditing'),_0x5ba9e6=_0x995f96['plugins']['get']('TableUtils');_0x1a82d2['descriptionFactory']['registerElementLabel']('table',_0x34dfd7=>o(_0x1148af,'ELEMENT_TABLE',_0x34dfd7)),this['_setupColumnsRowsFixing'](),_0x1a82d2['enableCommand']('insertTable'),_0x1a82d2['enableCommand']('selectTableRow'),_0x1a82d2['enableCommand']('selectTableColumn');for(const _0x117692 of['insertTableRowAbove','insertTableRowBelow']){const _0x2ea4ee=_0x995f96['commands']['get'](_0x117692);_0x1a82d2['enableCommand'](_0x117692,_0x43903e=>{_0x995f96['model']['change'](_0x2196f7=>{_0x43903e();const _0x4e6337='above'===_0x2ea4ee['order'],_0x56c437=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x5436bf=_0x5ba9e6['getRowIndexes'](_0x56c437),_0x4e5e46=_0x4e6337?_0x5436bf['first']-0x1:_0x5436bf['last']+0x1,_0xe7be7b=_0x56c437[0x0]['findAncestor']('table'),_0x163c64=_0x5ba9e6['createTableWalker'](_0xe7be7b,{'startRow':_0x4e5e46,'endRow':_0x4e5e46}),_0x277e9c=Array['from'](_0x163c64)['map'](_0x4c519b=>_0x2196f7['createRangeOn'](_0x4c519b['cell']));_0x1a82d2['markMultiRangeInsertion'](_0x277e9c,'tableRow');});});}for(const _0xb4d726 of['insertTableColumnLeft','insertTableColumnRight']){const _0x590330=_0x995f96['commands']['get'](_0xb4d726);_0x1a82d2['enableCommand'](_0xb4d726,_0x26a6cb=>{_0x995f96['model']['change'](_0x3db637=>{_0x26a6cb();const _0x4e75bc='left'===_0x590330['order'],_0x267a22=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x29db5c=_0x5ba9e6['getColumnIndexes'](_0x267a22),_0x58e40e=_0x4e75bc?_0x29db5c['first']-0x1:_0x29db5c['last']+0x1,_0x288916=_0x267a22[0x0]['findAncestor']('table'),_0x41e0a5=_0x5ba9e6['createTableWalker'](_0x288916,{'startRow':0x0,'column':_0x58e40e,'includeAllSlots':!0x1}),_0x3a4905=Array['from'](_0x41e0a5)['map'](_0x4a965c=>_0x3db637['createRangeOn'](_0x4a965c['cell']));_0x1a82d2['markMultiRangeInsertion'](_0x3a4905,'tableColumn');});});}for(const _0x2f7fd6 of['removeTableRow','removeTableColumn']){const _0x1d3229=_0x2f7fd6['substr'](0xb),_0x13c156=_0x1d3229['toLowerCase'](),_0x5e38bb=_0x13c156['substr'](0x0,0x3)+'span',_0x24e112='table'+_0x1d3229,_0x27f74f='min'+_0x1d3229,_0x2b3506='max'+_0x1d3229;_0x1a82d2['enableCommand'](_0x2f7fd6,()=>{_0x995f96['model']['change'](_0x260a09=>{const _0x33d7ad=_0x5ba9e6['getSelectionAffectedTableCells'](_0x1d9ccf),_0x334460=_0x33d7ad[0x0]['findAncestor']('table');let _0x3ce6ab;if('removeTableRow'==_0x2f7fd6){const _0x3d1214=_0x5ba9e6['getRowIndexes'](_0x33d7ad);_0x3ce6ab={'startRow':_0x3d1214['first'],'endRow':_0x3d1214['last'],'includeAllSlots':!0x0};}else{const _0x2fea8e=_0x5ba9e6['getColumnIndexes'](_0x33d7ad);_0x3ce6ab={'startColumn':_0x2fea8e['first'],'endColumn':_0x2fea8e['last'],'includeAllSlots':!0x0};}const _0x26d82f=_0x5ba9e6['createTableWalker'](_0x334460,_0x3ce6ab),_0x2ccada=Array['from'](_0x26d82f)['map'](({cell:_0x5cb6e4})=>_0x5cb6e4),_0x18a8c6=Re(_0x2ccada['filter'](_0x30e68e=>_0x30e68e['hasAttribute'](_0x5e38bb))),_0x50dbfc=Re(_0x2ccada['filter'](_0x4dc5be=>!_0x4dc5be['hasAttribute'](_0x5e38bb)))['map'](_0x28ef36=>_0x260a09['createRangeOn'](_0x28ef36)),_0x515488=_0x1a82d2['markMultiRangeDeletion'](_0x50dbfc,_0x24e112);if(_0x515488&&('tableRow'==_0x515488['subType']||'tableColumn'==_0x515488['subType'])){const _0x5270d9=this['_getSuggestionCoords'](_0x515488);for(const _0x2584e5 of _0x18a8c6){const _0x29b15f=_0x260a09['createRangeOn'](_0x2584e5),_0xe8557=_0x5ba9e6['getCellLocation'](_0x2584e5),_0x2b0f7e=_0x2584e5['getAttribute'](_0x5e38bb)-0x1,_0x5c9ade=_0x5270d9[_0x27f74f],_0x544aea=_0x5270d9[_0x2b3506];_0x5c9ade<=_0xe8557[_0x13c156]&&_0xe8557[_0x13c156]+_0x2b0f7e<=_0x544aea&&_0x515488['addRange'](_0x29b15f);}}});});}function _0x1d5007(_0x1dad6a){const _0x8f3b5e=Array['from'](_0x1d9ccf['getRanges']())['map'](_0x1d05d8=>_0x5103d1['fromRange'](_0x1d05d8));_0x995f96['model']['change'](_0x2ed3a4=>{const _0x388c10=_0x2ed3a4['batch'];_0x1dad6a=_0x1dad6a['filter'](_0xed617c=>'$graveyard'!=_0xed617c['root']['rootName']),_0x2ed3a4['setSelection'](_0x1dad6a),_0x995f96['commands']['get']('removeTableRow')['refresh'](),_0x995f96['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x995f96['model']['enqueueChange'](()=>{_0x995f96['model']['enqueueChange'](_0x388c10,_0x3e6ce1=>{const _0x3d9fe0=_0x8f3b5e['filter'](_0x12df5b=>'$graveyard'!=_0x12df5b['root']['rootName']);_0x3d9fe0['length']>0x0&&_0x3e6ce1['setSelection'](_0x3d9fe0);for(const _0x48436e of _0x8f3b5e)_0x48436e['detach']();});});});}function _0x414d21(_0x205484){_0x995f96['model']['change'](_0x3fdb25=>{const _0x55d0dc=Array['from'](_0x1d9ccf['getRanges']())['map'](_0xc6603f=>_0x5103d1['fromRange'](_0xc6603f)),_0x2ee349=[];for(const _0x1b3a77 of _0x205484)for(const _0x22d5de of _0x1b3a77['getItems']({'shallow':!0x0}))_0x2ee349['push'](_0x22d5de);for(const _0x279581 of _0x2ee349)'$graveyard'!=_0x279581['root']['rootName']&&(_0x3fdb25['setSelection'](_0x3fdb25['createPositionAt'](_0x279581,0x0)),_0x995f96['commands']['get']('removeTableColumn')['refresh'](),_0x995f96['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4fd654=_0x55d0dc['filter'](_0x17ce3f=>'$graveyard'!=_0x17ce3f['root']['rootName']);_0x4fd654['length']>0x0&&_0x3fdb25['setSelection'](_0x4fd654);for(const _0x5ee6dd of _0x55d0dc)_0x5ee6dd['detach']();});}function _0x120988(_0xa32696,_0x280d53){return _0x280d53['every'](_0x3f509a=>_0xa32696['some'](_0x4c11d4=>_0x4c11d4['end']['isEqual'](_0x3f509a['start'])||_0x3f509a['end']['isEqual'](_0x4c11d4['start'])));}function _0x52dc18(_0x4c4d42,_0x990eb9){return!_0x4c4d42['some'](_0x2e55a4=>_0x990eb9['some'](_0x5141ac=>_0x2e55a4['isIntersecting'](_0x5141ac)))&&_0x4c4d42['some'](_0x175b23=>_0x990eb9['some'](_0x22833b=>_0x175b23['end']['isTouching'](_0x22833b['start'])));}_0x995f96['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x42ba5b,_0x46f242,_0x18d5eb)=>{if(!_0x18d5eb['options']['showSuggestionHighlights'])return;const _0x233b0b=_0x46f242['item'];if(!_0x233b0b)return;const _0x35e270=_0x18d5eb['mapper']['toViewElement'](_0x233b0b);function _0x36230c(_0x2f7959){return Array['isArray'](_0x2f7959)?_0x2f7959:[_0x2f7959];}_0x35e270&&'tableCell'===_0x233b0b['name']&&_0x43bde1(_0x35e270,_0x18d5eb['writer'],(_0x3f4a8b,_0x4ba642,_0x2e7add)=>_0x2e7add['addClass'](_0x36230c(_0x4ba642['classes']),_0x3f4a8b),(_0x2b7831,_0x385588,_0xa7be3d)=>_0xa7be3d['removeClass'](_0x36230c(_0x385588['classes']),_0x2b7831));},{'priority':'highest'}),_0x1a82d2['descriptionFactory']['registerDescriptionCallback'](_0x324c22=>{if('insertion'!=_0x324c22['type']&&'deletion'!=_0x324c22['type'])return;const _0x57762b=_0x324c22['getContainedElement']();if(null!=_0x57762b&&_0x57762b['is']('element','table')){if('insertion'==_0x324c22['type']){const _0x5b0f08=_0x324c22['getItems']()['filter'](_0x6657a2=>_0x6657a2['is']('$textProxy'))['map'](_0x2c2b4b=>_0x2c2b4b['data']);if(_0x5b0f08['length'])return{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b0f08['join']('\x20')+'\x22'))};}if('deletion'==_0x324c22['type']){const _0x339efd=_0x324c22['getItems']()['filter'](_0x37528a=>_0x37528a['is']('$textProxy'))['map'](_0x129762=>_0x129762['data']);if(_0x339efd['length'])return{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x339efd['join']('\x20')+'\x22'))};}}}),_0x1a82d2['descriptionFactory']['registerDescriptionCallback'](_0x59f270=>{if('tableRow'==_0x59f270['subType']){const _0x5db80c=_0x59f270['getItems']()['filter'](_0x226802=>_0x226802['is']('$textProxy'))['map'](_0x2ce9fe=>_0x2ce9fe['data']),_0x3bb1a2=this['_getSuggestionCoords'](_0x59f270),_0x20c2d1=_0x3bb1a2['maxRow']-_0x3bb1a2['minRow']+0x1;if('insertion'==_0x59f270['type'])return _0x5db80c['length']?{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20c2d1,'\x22'+_0x5db80c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW',_0x20c2d1))};if('deletion'==_0x59f270['type'])return _0x5db80c['length']?{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x20c2d1,'\x22'+_0x5db80c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_ROW',_0x20c2d1))};}if('tableColumn'==_0x59f270['subType']){const _0x2158d4=_0x59f270['getItems']()['filter'](_0x3804fe=>_0x3804fe['is']('$textProxy'))['map'](_0x1f76d7=>_0x1f76d7['data']),_0x4962b9=this['_getSuggestionCoords'](_0x59f270),_0x34c4d1=_0x4962b9['maxColumn']-_0x4962b9['minColumn']+0x1;if('insertion'==_0x59f270['type'])return _0x2158d4['length']?{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34c4d1,'\x22'+_0x2158d4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1148af,'*Insert:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN',_0x34c4d1))};if('deletion'==_0x59f270['type'])return _0x2158d4['length']?{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34c4d1,'\x22'+_0x2158d4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1148af,'*Remove:*\x20%0',o(_0x1148af,'ELEMENT_TABLE_COLUMN',_0x34c4d1))};}}),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1d5007),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1d5007),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x414d21),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x414d21),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x120988),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x120988),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x52dc18),_0x1a82d2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x52dc18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5c1366=this['editor'],_0x54c97c=_0x5c1366['model']['document']['selection'];return(_0x15696f,_0xce704e)=>{_0x5c1366['model']['change'](_0x295900=>{const {commandName:_0x571332,commandParams:_0x27fe2e}=_0xce704e;let _0x39792d=_0x15696f[0x0]['end']['nodeBefore'];_0x27fe2e&&_0x27fe2e[0x0]&&!0x1===_0x27fe2e[0x0]['forceValue']&&(_0x39792d=_0x15696f[0x0]['start']['nodeAfter']);const _0x431d80=_0x295900['createRangeIn'](_0x39792d);if('$graveyard'==_0x431d80['root']['rootName'])return;const _0x7370eb=Array['from'](_0x54c97c['getRanges']())['map'](_0x59e83f=>_0x5103d1['fromRange'](_0x59e83f));_0x295900['setSelection'](_0x431d80),_0x5c1366['commands']['get'](_0x571332)['refresh'](),_0x27fe2e['push']({'forceDefaultExecution':!0x0}),_0x5c1366['execute'](_0x571332,..._0x27fe2e);const _0x17ef0e=_0x7370eb['filter'](_0x17a4d8=>'$graveyard'!=_0x17a4d8['root']['rootName']);_0x17ef0e['length']>0x0&&_0x295900['setSelection'](_0x17ef0e);for(const _0x231292 of _0x7370eb)_0x231292['detach']();});};}['_getCoordsForCells'](_0x1f344c){const _0x4d9d01=this['editor']['plugins']['get']('TableUtils');let _0xebb570=Number['MAX_SAFE_INTEGER'],_0x514d7b=Number['MIN_SAFE_INTEGER'],_0x394a66=Number['MAX_SAFE_INTEGER'],_0x289972=Number['MIN_SAFE_INTEGER'];for(const _0x4966a5 of _0x1f344c){if('$graveyard'==_0x4966a5['root']['rootName'])continue;const {row:_0x56e13c,column:_0x48ecc2}=_0x4d9d01['getCellLocation'](_0x4966a5),_0x3586db=_0x4966a5['hasAttribute']('rowspan')?_0x4966a5['getAttribute']('rowspan')-0x1:0x0,_0x421b74=_0x4966a5['hasAttribute']('colspan')?_0x4966a5['getAttribute']('colspan')-0x1:0x0;_0xebb570=_0x56e13c<_0xebb570?_0x56e13c:_0xebb570,_0x514d7b=_0x56e13c+_0x3586db>_0x514d7b?_0x56e13c+_0x3586db:_0x514d7b,_0x394a66=_0x48ecc2<_0x394a66?_0x48ecc2:_0x394a66,_0x289972=_0x48ecc2+_0x421b74>_0x289972?_0x48ecc2+_0x421b74:_0x289972;}return{'minRow':_0xebb570,'maxRow':_0x514d7b,'minColumn':_0x394a66,'maxColumn':_0x289972};}['_setupColumnsRowsFixing'](){const _0x3beb18=this['editor'],_0x33123c=_0x3beb18['plugins']['get']('TrackChangesEditing'),_0x28a8e2=_0x3beb18['plugins']['get']('TableUtils');_0x3beb18['model']['document']['on']('change:data',()=>{const _0x16eb58=Array['from'](_0x3beb18['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x152a9e,data:_0x2cd2ec}of _0x16eb58){const {group:_0x4ac936,id:_0xe9a993,subType:_0x367c9a}=_0x33123c['_splitMarkerName'](_0x152a9e);if('suggestion'!=_0x4ac936)continue;if(null!=_0x2cd2ec['oldRange'])continue;const _0x10be54=_0x33123c['getSuggestion'](_0xe9a993);this['_tablePostFixingSubtypes']['includes'](_0x367c9a)&&this['_tableSuggestions']['add'](_0x10be54);}},{'priority':'low'});const _0x4ca78e=(_0x3b91fc,_0x4db101)=>{let _0x2d44cb=!0x1;const _0x385402=_0x4db101['createRangeOn'](_0x3b91fc),_0x15a0ee=_0x3b91fc['findAncestor']('table'),_0x49cc0d=_0x28a8e2['getCellLocation'](_0x3b91fc);for(const _0xcfffa7 of this['_tableSuggestions']){const _0x398c37=_0xcfffa7['subType'],_0x68eef5=_0x398c37['startsWith']('tablePaste'),_0x10412e=_0x398c37['substr'](_0x68eef5?0xa:0x5),_0x4ab646=_0x10412e['toLowerCase'](),_0x2db108=_0x4ab646['substr'](0x0,0x3)+'span',_0x570cb7='min'+_0x10412e,_0x6adf9d='max'+_0x10412e;if(!_0xcfffa7['isInContent'])continue;if(_0x15a0ee!=_0xcfffa7['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xcfffa7['isIntersectingWithRange'](_0x385402))continue;const _0x26e1af=_0x3b91fc['hasAttribute'](_0x2db108)?_0x3b91fc['getAttribute'](_0x2db108)-0x1:0x0,_0x5b4973=this['_getSuggestionCoords'](_0xcfffa7),_0x68aec4=_0x5b4973[_0x570cb7],_0x515d98=_0x5b4973[_0x6adf9d];_0x68aec4<=_0x49cc0d[_0x4ab646]&&_0x49cc0d[_0x4ab646]+_0x26e1af<=_0x515d98&&(_0xcfffa7['addRange'](_0x385402),_0x2d44cb=!0x0);}return _0x2d44cb;};_0x3beb18['model']['document']['registerPostFixer'](_0x41f500=>{let _0x404c8b=!0x1;for(const _0x386c24 of _0x3beb18['model']['document']['differ']['getChanges']())if('insert'==_0x386c24['type']){if('tableRow'==_0x386c24['name']){for(const _0x2db797 of _0x386c24['position']['nodeAfter']['getChildren']())_0x404c8b=_0x404c8b||_0x4ca78e(_0x2db797,_0x41f500);}else'tableCell'==_0x386c24['name']&&(_0x404c8b=_0x404c8b||_0x4ca78e(_0x386c24['position']['nodeAfter'],_0x41f500));}return _0x404c8b;});}['_getSuggestionCoords'](_0x4e0bbc){return this['_getCoordsForCells'](_0x4e0bbc['getRanges']()['map'](_0x3fced9=>_0x3fced9['start']['nodeAfter']));}}function Re(_0x2c0ca9){return Array['from'](new Set(_0x2c0ca9)['values']());}class _t extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0x1a69d6=this['editor'],_0x3bfa39=_0x1a69d6['model']['document']['selection'],_0x522875=_0x1a69d6['locale'];if(!_0x1a69d6['plugins']['has']('TableEditing'))return;const _0x3d0eab=_0x1a69d6['plugins']['get']('TrackChangesEditing'),_0x2a2b28=_0x1a69d6['plugins']['get']('TableUtils'),_0x2118ba=_0x1a69d6['plugins']['get'](vt);_0x2118ba['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3d0eab['enableCommand']('mergeTableCells',()=>{const _0x3d0525=_0x2a2b28['getSelectionAffectedTableCells'](_0x1a69d6['model']['document']['selection']);_0x1a69d6['model']['change'](()=>{_0x3d0eab['markMultiRangeBlockFormat'](_0x3d0525,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x1a69d6['commands']['get']('mergeTableCells')['on']('execute',(_0x472363,_0x22733d)=>{_0x1a69d6['commands']['get']('trackChanges')['value']&&(_0x22733d['length']>0x0&&_0x22733d[_0x22733d['length']-0x1]&&_0x22733d[_0x22733d['length']-0x1]['forceDefaultExecution']||_0x3d0eab['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x472363['stop']());},{'priority':'highest'});for(const _0xd81caf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x449340=_0x1a69d6['commands']['get'](_0xd81caf);_0x3d0eab['enableCommand'](_0xd81caf,()=>{const _0x570920=_0x1a69d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x48ee3e=>_0x48ee3e['is']('element','tableCell')),_0x5b2eba=_0x449340['value'];_0x1a69d6['model']['change'](()=>{_0x3d0eab['markMultiRangeBlockFormat']([_0x570920,_0x5b2eba],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1557ac of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1c9826=_0x1a69d6['commands']['get'](_0x1557ac);_0x3d0eab['enableCommand'](_0x1557ac,()=>{const _0x2d1c3d=_0x2a2b28['getSelectionAffectedTableCells'](_0x1a69d6['model']['document']['selection'])[0x0],_0x4f21a7=_0x2d1c3d['findAncestor']('table'),{column:_0xfe0c64,row:_0x45458e}=_0x2a2b28['getCellLocation'](_0x2d1c3d);let _0x305d32=[];if('horizontally'==_0x1c9826['direction']){const _0x44fc48=_0x2a2b28['createTableWalker'](_0x4f21a7,{'startRow':_0x45458e,'endRow':_0x45458e,'includeAllSlots':!0x0});_0x305d32=Array['from'](_0x44fc48)['map'](_0x8a3fd3=>_0x8a3fd3['cell']);}else{const _0x43a545=_0x2a2b28['createTableWalker'](_0x4f21a7,{'column':_0xfe0c64,'includeAllSlots':!0x0});_0x305d32=Array['from'](_0x43a545)['map'](_0x361b0f=>_0x361b0f['cell']);}_0x1a69d6['model']['change'](_0x503689=>{_0x3d0eab['markBlockFormat'](_0x503689['createRangeOn'](_0x2d1c3d),{'commandName':_0x1557ac,'commandParams':[]},_0x305d32,_0x1557ac);});});}_0x3d0eab['descriptionFactory']['registerDescriptionCallback'](_0x18d584=>{if('formatBlock'!=_0x18d584['type']&&'formatInline'!=_0x18d584['type'])return;const {data:_0x59fe7b}=_0x18d584;return _0x59fe7b&&'mergeTableCells'==_0x59fe7b['commandName']?{'type':'format','content':o(_0x522875,'*Merge\x20cells*')}:void 0x0;}),_0x3d0eab['descriptionFactory']['registerDescriptionCallback'](_0x38e1d0=>{if('formatBlock'!=_0x38e1d0['type']&&'formatInline'!=_0x38e1d0['type'])return;const {data:_0x1aa639}=_0x38e1d0;return _0x1aa639?'splitTableCellVertically'==_0x1aa639['commandName']?{'type':'format','content':o(_0x522875,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1aa639['commandName']?{'type':'format','content':o(_0x522875,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x421f30=_0x2118ba['_acceptFormatSuggestionCallbackFactory']();for(const _0xd5cc34 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xd5cc34,'accept',_0x421f30);for(const _0x3ba8a2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3ba8a2,'accept',_0x421f30);_0x3d0eab['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x57811=>{_0x1a69d6['model']['change'](_0x4ce570=>{const _0x26a83c=Array['from'](_0x3bfa39['getRanges']())['map'](_0x7b4900=>_0x5103d1['fromRange'](_0x7b4900));_0x4ce570['setSelection'](_0x57811),_0x1a69d6['commands']['get']('mergeTableCells')['refresh'](),_0x1a69d6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x45b4fa=_0x26a83c['filter'](_0x4e87c9=>'$graveyard'!=_0x4e87c9['root']['rootName']);_0x45b4fa['length']>0x0&&_0x4ce570['setSelection'](_0x45b4fa);for(const _0x2474ba of _0x26a83c)_0x2474ba['detach']();});});for(const _0x2b6166 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37ffee=_0x1a69d6['commands']['get'](_0x2b6166);_0x37ffee['on']('set:isEnabled',(_0xb4a1ea,_0x5ff980,_0x3f910b)=>{if(_0x3f910b){const _0x4a58a9=_0x1a69d6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x45befc=>_0x45befc['is']('element','tableCell'));this['_areMergableCells'](_0x37ffee['value'],_0x4a58a9)||(_0xb4a1ea['return']=!0x1,_0xb4a1ea['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47ce5b=this['editor']['commands']['get']('mergeTableCells'),_0x1103f9=this['editor']['plugins']['get']('TableUtils');if(!_0x47ce5b['isEnabled'])return!0x1;const _0x3a8142=_0x1103f9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x36c9c2 of _0x3a8142)for(const _0x5c101d of _0x3a8142)if(_0x36c9c2!=_0x5c101d&&!this['_areMergableCells'](_0x36c9c2,_0x5c101d))return!0x1;return!0x0;}['_areMergableCells'](_0x5a9aba,_0x5cf946){const _0x468b69=this['editor']['plugins']['get']('TrackChangesEditing'),_0x236d87=this['editor']['model']['createRangeOn'](_0x5a9aba),_0x3cf699=this['editor']['model']['createRangeOn'](_0x5cf946),_0xb0b6e3=new Set(),_0x238e8b=new Set();for(const _0x36ad5c of _0x468b69['getSuggestions']())if(('insertion'==_0x36ad5c['type']||'deletion'==_0x36ad5c['type']||'mergeTableCells'==_0x36ad5c['subType'])&&_0x36ad5c['isInContent']){for(const _0x19bd77 of _0x36ad5c['getRanges']())_0x19bd77['containsRange'](_0x236d87,!0x0)&&_0xb0b6e3['add'](_0x36ad5c['type']+':'+_0x36ad5c['author']['id']),_0x19bd77['containsRange'](_0x3cf699,!0x0)&&_0x238e8b['add'](_0x36ad5c['type']+':'+_0x36ad5c['author']['id']);}if(_0xb0b6e3['size']!=_0x238e8b['size'])return!0x1;for(const _0x401b57 of _0xb0b6e3)if(!_0x238e8b['has'](_0x401b57))return!0x1;return!0x0;}}class Ct extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0xef537a=this['editor'];if(!_0xef537a['plugins']['has']('TableEditing'))return;const _0x5d4d37=_0xef537a['locale'],_0x4c8995=_0xef537a['plugins']['get']('TrackChangesEditing');_0x4c8995['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4c8995['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4c8995['registerBlockAttribute']('headingRows'),_0x4c8995['registerBlockAttribute']('headingColumns'),_0x4c8995['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5d4d37,'FORMAT_HEADER_ROW')),_0x4c8995['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5d4d37,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4e7ca4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1f3139=this['editor']['plugins']['get']('TableUtils'),_0x5e5a06=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x28585f({showActiveMarker:_0x26d101=!0x0,setDataAttribute:_0x2e2653=!0x0}={}){return(_0x2f08a7,_0x276a1e,_0x286733)=>{const {type:_0x2f027b,id:_0x2f80f2}=_0x4e7ca4['_splitMarkerName'](_0x276a1e['markerName']),_0x46db73=_0x4e7ca4['getSuggestion'](_0x2f80f2),_0x1bf1b1=_0x46db73['data'];if('formatBlock'!=_0x46db73['type']||!_0x1bf1b1||'setTableColumnHeader'!=_0x1bf1b1['commandName'])return;if(_0x276a1e['item'])return void _0x2f08a7['stop']();if(!_0x286733['consumable']['consume'](_0x276a1e['markerRange'],_0x2f08a7['name']))return;const _0x5c1c53=_0x276a1e['markerRange']['start']['nodeAfter'],_0x5e5225=_0x276a1e['markerRange']['end']['nodeBefore'],_0x42009f=_0x5c1c53['parent']['parent'],{column:_0x23c474}=_0x1f3139['getCellLocation'](_0x5c1c53),{column:_0x31f884}=_0x1f3139['getCellLocation'](_0x5e5225);for(let _0x2bb81e=_0x23c474;_0x2bb81e<=_0x31f884;_0x2bb81e++){const _0x3a4847=_0x1f3139['createTableWalker'](_0x42009f,{'column':_0x2bb81e,'includeAllSlots':!0x1});for(const _0x4a809a of _0x3a4847){const _0x182cf7=_0x4a809a['cell'],_0x452022=_0x286733['mapper']['toViewElement'](_0x182cf7);_0x286733['writer']['addClass']('ck-suggestion-marker-'+_0x2f027b,_0x452022),_0x2e2653&&_0x286733['writer']['setAttribute']('data-suggestion',_0x2f80f2,_0x452022),_0x286733['mapper']['bindElementToMarker'](_0x452022,_0x276a1e['markerName']),_0x26d101&&(_0x4e7ca4['activeMarkers']['includes'](_0x276a1e['markerName'])?_0x286733['writer']['addClass']('ck-suggestion-marker--active',_0x452022):_0x286733['writer']['removeClass']('ck-suggestion-marker--active',_0x452022));}}};}_0x4e7ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5e5a06),_0x4e7ca4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5e5a06),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x28585f(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4ce721,_0x3908a9,_0x15efea)=>{_0x15efea['options']['showSuggestionHighlights']&&_0x28585f({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4ce721,_0x3908a9,_0x15efea);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x37626,_0x1badd4,_0x5d24f6)=>{const {type:_0x4f2e11,id:_0x3c41b6}=_0x4e7ca4['_splitMarkerName'](_0x1badd4['markerName']),_0x55fdec=_0x4e7ca4['getSuggestion'](_0x3c41b6),_0x211e3c=_0x55fdec['data'];if('formatBlock'!=_0x55fdec['type']||!_0x211e3c||'setTableColumnHeader'!=_0x211e3c['commandName'])return;const _0x3ed3af=_0x5d24f6['mapper']['markerNameToElements'](_0x1badd4['markerName']);if(_0x3ed3af){for(const _0x36bce3 of _0x3ed3af)_0x5d24f6['writer']['removeClass']('ck-suggestion-marker-'+_0x4f2e11,_0x36bce3),_0x5d24f6['writer']['removeClass']('ck-suggestion-marker--active',_0x36bce3),_0x5d24f6['writer']['removeAttribute']('data-suggestion',_0x36bce3),_0x5d24f6['mapper']['unbindElementFromMarkerName'](_0x36bce3,_0x1badd4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x736712=this['editor'],_0x36adb2=_0x736712['locale'];function _0x53de0f(_0x310610){return{'type':'format','content':o(_0x36adb2,'*Format:*\x20%0',_0x310610)};}_0x736712['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d513=>{if('formatBlock'!=_0x46d513['type'])return;const {data:_0x28e314}=_0x46d513;if(_0x28e314){if('setTableRowHeader'==_0x28e314['commandName']){const _0x1c5c78=_0x28e314['commandParams'][0x0]['forceValue'];return _0x53de0f(o(_0x36adb2,_0x1c5c78?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x28e314['commandName']){const _0x5c65a5=_0x28e314['commandParams'][0x0]['forceValue'];return _0x53de0f(o(_0x36adb2,_0x5c65a5?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x21b4b5=>[_0x21b4b5,null]));class Nt extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0xbc6560=this['editor'];if(!_0xbc6560['plugins']['has']('TableClipboard'))return;const _0x470fa1=_0xbc6560['plugins']['get']('TrackChangesEditing'),_0x5a3416=_0xbc6560['plugins']['get']('TableUtils'),_0x268256=_0xbc6560['plugins']['get'](vt),_0x412ac3=_0xbc6560['plugins']['get']('TableClipboard');_0x268256['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xbc6560['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xbc6560['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4defa9=null;_0xbc6560['model']['on']('insertContent',(_0x323887,_0x6e55d7)=>{const [_0x3771cf,_0x140f9f]=_0x6e55d7,_0x1f029c=_0x6e55d7[_0x6e55d7['length']-0x1];_0x1f029c&&_0x1f029c['forceDefaultExecution']||_0x470fa1['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x26fa37,_0x1f9614,_0x86961,_0x5f280d,_0x40c583){if(_0x1f9614&&!_0x1f9614['is']('documentSelection'))return!0x1;const _0x44f374=_0x40c583['getTableIfOnlyTableInContent'](_0x26fa37,_0x86961);if(!_0x44f374||!Ae(_0x44f374,void 0x0,_0x5f280d))return!0x1;const _0x6b0b1a=_0x5f280d['getSelectionAffectedTableCells'](_0x86961['document']['selection']);if(!_0x6b0b1a['length'])return!0x1;const _0x3daf3f=_0x6b0b1a[0x0]['findAncestor']('table'),_0x14e2d0=_0x5f280d['getRowIndexes'](_0x6b0b1a),_0x56473d=_0x5f280d['getColumnIndexes'](_0x6b0b1a),_0x150abb={'startRow':_0x14e2d0['first'],'endRow':_0x14e2d0['last'],'startColumn':_0x56473d['first'],'endColumn':_0x56473d['last']};return 0x1==_0x6b0b1a['length']&&(_0x150abb['endRow']+=_0x5f280d['getRows'](_0x44f374)-0x1,_0x150abb['endColumn']+=_0x5f280d['getColumns'](_0x44f374)-0x1),Ae(_0x3daf3f,_0x150abb,_0x5f280d);}(_0x3771cf,_0x140f9f,_0xbc6560['model'],_0x5a3416,_0x412ac3)&&(_0x323887['stop'](),_0x4defa9={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xbc6560['model']['change'](()=>{_0xbc6560['model']['insertContent'](_0x6e55d7[0x0],_0x6e55d7[0x1],_0x6e55d7[0x2],{'forceDefaultExecution':!0x0});const _0x2903cd=_0x425cf6(),{rowInsertionRanges:_0x4cde32,columnInsertionRanges:_0x2edf37,insertionRanges:_0x12b8f3,deletionRanges:_0x51928e,cells:_0x2c57d6}=_0x4defa9;_0x4cde32['length']&&_0x470fa1['markMultiRangeInsertion'](_0x4cde32,'tablePasteRow',{'tablePasteChainId':_0x2903cd}),_0x2edf37['length']&&_0x470fa1['markMultiRangeInsertion'](_0x2edf37,'tablePasteColumn',{'tablePasteChainId':_0x2903cd}),_0x12b8f3['length']&&(_0x470fa1['markMultiRangeInsertion'](_0x12b8f3,'tablePaste',{'tablePasteChainId':_0x2903cd,'skipNestingCheck':!0x0}),_0x12b8f3['forEach'](_0x354fc4=>_0x354fc4['detach']?.())),_0x51928e['length']&&(_0x470fa1['markMultiRangeDeletion'](_0x51928e,'tablePaste',{'tablePasteChainId':_0x2903cd,'skipNestingCheck':!0x0}),_0x51928e['forEach'](_0x1b8086=>_0x1b8086['detach']?.()));const _0x11eaa2=_0x470fa1['markMultiRangeBlockFormat'](_0x2c57d6['map'](({element:_0x4f6e9f})=>_0x4f6e9f),{'formatGroupId':_0x425cf6()},[],'tablePasteCell',{'tablePasteChainId':_0x2903cd});if(_0x11eaa2){const _0x52b828=_0x11eaa2['getMarkers'](),_0x533c0e=[];for(const {element:_0x97f5ae,attributes:_0x2b6b23}of _0x2c57d6){if(!_0x2b6b23)continue;const _0x4ecfcc=_0xbc6560['model']['createRangeOn'](_0x97f5ae),_0x124bc4=_0x52b828['find'](_0x4f2f05=>_0x4f2f05['getRange']()['isEqual'](_0x4ecfcc));_0x124bc4&&_0x533c0e['push']([_0x124bc4['name'],_0x2b6b23]);}_0x533c0e['length']&&_0x11eaa2['setAttribute']('markerAttributes',Object['fromEntries'](_0x533c0e));}_0x4defa9=null;}));},{'priority':_0x5d6642['high']+0xa}),_0xbc6560['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x247df3,_0x55cab9)=>{const [_0x44f08e,_0x36975f,,_0x3962ec]=_0x55cab9;if(!_0x4defa9)return;_0x247df3['stop']();const _0x532454=_0x44f08e['cell'],_0x378ce7=_0x36975f,_0x27b786=je(_0x532454),_0x597a10=je(_0x378ce7);_0x247df3['return']=_0x532454;let _0x25a95d=null,_0x4836f7=null;if(_0x597a10||_0x27b786){if(_0x27b786&&!_0x597a10){_0x3962ec['remove'](_0x532454['getChild'](0x0));for(const _0x5b224a of Array['from'](_0x378ce7['getChildren']()))_0x3962ec['insert'](_0x5b224a,_0x532454,'end');const _0x470305=_0x4defa9['rowInsertionIndexes']['includes'](_0x44f08e['row']),_0xde6e50=_0x4defa9['columnInsertionIndexes']['includes'](_0x44f08e['column']);_0x470305||_0xde6e50||(_0x25a95d=_0x5103d1['fromRange'](_0x3962ec['createRangeIn'](_0x532454)));}else _0x597a10&&!_0x27b786&&(_0x4836f7=_0x3962ec['createRangeIn'](_0x532454));}else{const _0x3e737c=_0x3962ec['createElement']('tableCellSuggestion'),_0x557ab1=_0x3962ec['createElement']('tableCellSuggestion');_0x3962ec['wrap'](_0x3962ec['createRangeIn'](_0x532454),_0x557ab1),_0x3962ec['insert'](_0x3e737c,_0x532454,0x0);for(const _0x436102 of Array['from'](_0x378ce7['getChildren']()))_0x3962ec['insert'](_0x436102,_0x3e737c,'end');_0x25a95d=_0x5103d1['fromRange'](_0x3962ec['createRangeOn'](_0x3e737c)),_0x4836f7=_0x5103d1['fromRange'](_0x3962ec['createRangeOn'](_0x557ab1));}const _0x337b72=Array['from'](_0x378ce7['getAttributes']())['filter'](([_0x3328aa])=>we['includes'](_0x3328aa));_0x4defa9['cells']['push']({'element':_0x532454,'attributes':_0x337b72['length']?Object['fromEntries'](_0x337b72):null}),_0x25a95d&&_0x4defa9['insertionRanges']['push'](_0x25a95d),_0x4836f7&&_0x4defa9['deletionRanges']['push'](_0x4836f7);},{'priority':'high'}),_0x5a3416['on']('insertColumns',(_0x3e4919,_0x3bd0a8)=>{const [_0x5cb130,_0x2e3a43={}]=_0x3bd0a8;if(!_0x4defa9)return;const _0x59cea6=_0x2e3a43['at']||0x0,_0x2048dc=_0x2e3a43['columns']||0x1;_0x4defa9['columnInsertionIndexes']=new Array(_0x2048dc)['fill'](_0x59cea6)['map']((_0x3f6e8b,_0x41de78)=>_0x3f6e8b+_0x41de78);for(const {cell:_0x25f256}of _0x5a3416['createTableWalker'](_0x5cb130,{'startColumn':_0x59cea6,'endColumn':_0x59cea6+_0x2048dc-0x1}))_0x4defa9['columnInsertionRanges']['push'](_0xbc6560['model']['createRangeOn'](_0x25f256));},{'priority':'low'}),_0x5a3416['on']('insertRows',(_0xebeaa0,_0x34c7eb)=>{const [_0x3d6aa1,_0x1c9535={}]=_0x34c7eb;if(!_0x4defa9)return;const _0x44e41c=_0x1c9535['at']||0x0,_0x538c69=_0x1c9535['rows']||0x1;_0x4defa9['rowInsertionIndexes']=new Array(_0x538c69)['fill'](_0x44e41c)['map']((_0x57d185,_0x1b6471)=>_0x57d185+_0x1b6471);for(const {cell:_0x3ac2ae}of _0x5a3416['createTableWalker'](_0x3d6aa1,{'startRow':_0x44e41c,'endRow':_0x44e41c+_0x538c69-0x1}))_0x4defa9['rowInsertionRanges']['push'](_0xbc6560['model']['createRangeOn'](_0x3ac2ae));},{'priority':'low'}),_0x470fa1['descriptionFactory']['registerDescriptionCallback'](_0x3a8f58=>{if(_0x3a8f58['subType']&&_0x3a8f58['subType']['startsWith']('tablePaste'))return _0x3a8f58['previous']?{}:{'type':'insertion','content':o(_0xbc6560['locale'],'*Replace\x20table\x20cells*')};});const _0xf06d32=()=>!0x1;for(const _0x5d9f55 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion',_0x5d9f55,'join',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('deletion',_0x5d9f55,'join',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d9f55,'join',_0xf06d32);_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf06d32),_0x470fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x53e6f7,_0x55d39c,_0x4eed54)=>{const _0x2c331a=_0x53e6f7['map'](_0x861d1e=>_0x861d1e['getContainedElement']())['filter'](_0x3b4828=>_0x3b4828),_0x30b99e=new Map(_0x2c331a['map'](_0x4f0014=>[_0x4f0014,null]));if(_0x4defa9){for(const {element:_0x21a9ad,attributes:_0x3259b4}of _0x4defa9['cells'])_0x3259b4&&_0x30b99e['set'](_0x21a9ad,_0x3259b4);}else{if(_0x4eed54&&_0x4eed54['markerAttributes'])for(const [_0x1bcc88,_0x2f93d6]of Object['entries'](_0x4eed54['markerAttributes'])){const _0x8dfdd=_0xbc6560['model']['markers']['get'](_0x1bcc88),_0x5ef6b2=_0x8dfdd?_0x8dfdd['getRange']()['getContainedElement']():null;_0x5ef6b2&&_0x30b99e['set'](_0x5ef6b2,_0x2f93d6);}}_0xbc6560['model']['change'](_0x3fb28=>{for(const [_0x5ee34e,_0x31d846]of _0x30b99e)_0x3fb28['setAttributes']({...ve,..._0x31d846},_0x5ee34e);});});const _0x41cf59=(_0x48c064,_0x378137)=>{_0x470fa1['_suggestionFactory']['registerCustomCallback'](_0x48c064,'tablePaste',_0x378137,(_0xbc7653,_0x1f998e,_0x1cee8e)=>{_0xbc6560['model']['change'](_0x427b9f=>{const _0x164134=[];for(const _0x4c6b89 of _0xbc7653){const _0x3d8527=_0x4c6b89['start']['nodeAfter'];_0x3d8527['is']('element','tableCellSuggestion')&&_0x164134['push'](_0x3d8527);}_0x470fa1['_suggestionFactory']['getSuggestionCallback'](_0x48c064,null,_0x378137)(_0xbc7653,_0x1f998e,_0x1cee8e);for(const _0x2b63a6 of _0x164134)'$graveyard'!=_0x2b63a6['root']['rootName']&&_0x427b9f['unwrap'](_0x2b63a6);});});};_0x41cf59('insertion','accept'),_0x41cf59('insertion','discard'),_0x41cf59('deletion','accept'),_0x41cf59('deletion','discard'),_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f7db4=>{const _0x38c32a=_0x4f7db4['map'](_0x4d301d=>_0x4d301d['getContainedElement']()),_0x415c2d=_0x38c32a[0x0]['findAncestor']('table'),{minRow:_0x56b64a,maxRow:_0x13fdd3}=_0x268256['_getCoordsForCells'](_0x38c32a);_0x5a3416['removeRows'](_0x415c2d,{'at':_0x56b64a,'rows':_0x13fdd3-_0x56b64a+0x1});}),_0x470fa1['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x3d0ded=>{const _0x97cd2b=_0x3d0ded['map'](_0x1ad4ce=>_0x1ad4ce['getContainedElement']()),_0x2b0583=_0x97cd2b[0x0]['findAncestor']('table'),{minColumn:_0x1fd2aa,maxColumn:_0x594fe2}=_0x268256['_getCoordsForCells'](_0x97cd2b);_0x5a3416['removeColumns'](_0x2b0583,{'at':_0x1fd2aa,'columns':_0x594fe2-_0x1fd2aa+0x1});});const _0x24414f=(_0x1a7456,_0x356243)=>{if(!_0x356243['subType']||!_0x356243['subType']['startsWith']('tablePaste'))return;const _0x418214=_0x356243['attributes']['tablePasteChainId'],_0x27d764=_0x470fa1['getSuggestions']()['filter'](_0x1399e0=>_0x1399e0['isInContent']&&_0x1399e0['attributes']&&_0x1399e0['attributes']['tablePasteChainId']==_0x418214);_0x27d764['length']&&_0x356243['getAllAdjacentSuggestions']()['length']!=_0x27d764['length']&&_0x27d764['reduce']((_0x386f6a,_0x2e8443)=>(_0x386f6a['next']=_0x2e8443,_0x2e8443['previous']=_0x386f6a,_0x2e8443));};function _0x4d9aa5(_0x17a6ee,_0x3eaa33=!0x0){const {id:_0x1a469e,authorId:_0x4a1d1c}=_0x470fa1['_splitMarkerName'](_0x17a6ee['markerName']),_0x3b6d29=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4ee2c8=_0x470fa1['activeMarkers']['includes'](_0x17a6ee['markerName']);return _0x4ee2c8&&_0x3b6d29['push']('ck-suggestion-marker--active'),{'classes':_0x3b6d29,'attributes':{'data-suggestion':_0x1a469e,'data-author-id':_0x4a1d1c},'priority':_0x4ee2c8&&_0x3eaa33?0xbc2:0xbb8};}_0x470fa1['on']('suggestionLoaded',_0x24414f,{'priority':'high'}),_0x470fa1['on']('suggestionUnloaded',_0x24414f,{'priority':'high'}),_0xbc6560['model']['document']['registerPostFixer'](()=>{let _0x58c4c9=!0x1;const _0x1dc3a9=Array['from'](_0xbc6560['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2356de,data:_0x5ecb97}of _0x1dc3a9){const {group:_0x23e663,type:_0x4d0259,id:_0x2080b2}=_0x470fa1['_splitMarkerName'](_0x2356de);if('suggestion'!=_0x23e663||'deletion'!=_0x4d0259||_0x5ecb97['oldRange'])continue;if(!_0x470fa1['hasSuggestion'](_0x2080b2))continue;const _0x5d97d2=_0x470fa1['getSuggestion'](_0x2080b2)['getRanges'](),_0x40d6a8=_0xbc6560['plugins']['get']('Users')['me'];for(const _0x10b1f3 of _0x470fa1['getSuggestions']()){if(!_0x10b1f3['isInContent']||_0x10b1f3['author']!=_0x40d6a8)continue;if('formatBlock'!=_0x10b1f3['type']||'tablePasteCell'!=_0x10b1f3['subType'])continue;if(_0x10b1f3['getRanges']()['every'](_0x38565e=>_0x5d97d2['some'](_0x113315=>_0x113315['containsRange'](_0x38565e,!0x0)))){for(const _0x36f27f of _0x10b1f3['getAllAdjacentSuggestions']())_0x36f27f['isInContent']&&(_0x36f27f['discard'](),_0x58c4c9=!0x0);}}}return _0x58c4c9;}),_0xbc6560['model']['document']['registerPostFixer'](_0x314bf1=>{const _0x1e3b98=_0xbc6560['commands']['get']('redo');if(!_0x1e3b98||!_0x1e3b98['_createdBatches']['has'](_0x314bf1['batch']))return!0x1;let _0x43be44=!0x1;const _0x121465=_0xbc6560['plugins']['get']('Users')['me'],_0x5b70c4=_0xbc6560['model']['document']['differ']['getChanges'](),_0x3fcf3b=Array['from'](_0xbc6560['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x52c443,data:_0x48e51f})=>{const {group:_0x383eea,subType:_0x4d3515,authorId:_0x437921}=_0x470fa1['_splitMarkerName'](_0x52c443);return'suggestion'==_0x383eea&&'tablePaste'==_0x4d3515&&_0x437921==_0x121465['id']&&!_0x48e51f['oldRange'];});for(const _0x205035 of _0x5b70c4){if('insert'!=_0x205035['type']||'tableCellSuggestion'!=_0x205035['name']||0x1!=_0x205035['length'])continue;const _0x10b250=_0x314bf1['createRange'](_0x205035['position'],_0x205035['position']['getShiftedBy'](0x1));if(!_0x3fcf3b['find'](({data:_0x1bc3fc})=>_0x1bc3fc['newRange']['isEqual'](_0x10b250))){for(const {name:_0x445e89,data:_0x5b05a0}of _0x3fcf3b)if(_0x10b250['containsRange'](_0x5b05a0['newRange'])){_0x314bf1['updateMarker'](_0x445e89,{'range':_0x10b250}),_0x43be44=!0x0;break;}}}return _0x43be44;}),_0xbc6560['model']['document']['registerPostFixer'](_0x39f0a3=>{let _0x474649=!0x1;const _0x3ffb3f=_0xbc6560['plugins']['get']('Users')['me'],_0x2e3f88=_0x470fa1['getSuggestions']()['filter'](_0x4b7db5=>_0x4b7db5['isInContent']&&_0x4b7db5['author']==_0x3ffb3f),_0x5b1b1e=new Set(),_0x466079=new Set();for(const _0x299b3f of _0x2e3f88)if('tablePaste'==_0x299b3f['subType'])for(const _0x5232f5 of _0x299b3f['getMarkers']()){const _0x9391b0=_0x5232f5['getRange']()['getContainedElement']();if(_0x9391b0){if(_0x9391b0['is']('element','tableCellSuggestion')&&je(_0x9391b0)){_0x299b3f['removeMarker'](_0x5232f5['name']),_0x5b1b1e['add'](_0x9391b0),_0x474649=!0x0;const _0x4014ec=_0x9391b0['nextSibling'],_0x310d03=_0x9391b0['previousSibling'],_0x12d04c=_0x4014ec&&_0x4014ec['is']('element','tableCellSuggestion'),_0x1e1398=_0x310d03&&_0x310d03['is']('element','tableCellSuggestion');_0x12d04c&&!_0x5b1b1e['has'](_0x4014ec)&&_0x466079['add'](_0x4014ec),_0x1e1398&&!_0x5b1b1e['has'](_0x310d03)&&_0x466079['add'](_0x310d03);}else _0x9391b0['is']('element','paragraph')&&_0x9391b0['isEmpty']&&(_0x299b3f['removeMarker'](_0x5232f5['name']),_0x474649=!0x0);}}else{if('tablePasteCell'==_0x299b3f['subType']){if(!_0x299b3f['attributes']||!_0x299b3f['attributes']['tablePasteChainId'])continue;const _0x45bfa6=_0x299b3f['attributes']['markerAttributes'];if(_0x45bfa6&&Object['keys'](_0x45bfa6)['length'])continue;const _0x277e48=_0x299b3f['attributes']['tablePasteChainId'];let _0x185559=!0x0,_0x31d879=!0x0;for(const _0x4c139c of _0x2e3f88)if(_0x4c139c['subType']&&_0x4c139c['subType']['startsWith']('tablePaste')){if(!_0x4c139c['attributes']['tablePasteChainId']){_0x31d879=!0x1;break;}if(_0x4c139c['id']!=_0x299b3f['id']&&_0x4c139c['attributes']['tablePasteChainId']==_0x277e48){_0x185559=!0x1;break;}}_0x31d879&&_0x185559&&(_0x299b3f['removeMarkers'](),_0x474649=!0x0);}}for(const _0x42c8c6 of _0x5b1b1e)_0x39f0a3['remove'](_0x42c8c6);for(const _0xa7b85 of _0x466079)_0x39f0a3['unwrap'](_0xa7b85);return _0x474649;}),_0xbc6560['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2e1189=>_0x4d9aa5(_0x2e1189),'converterPriority':'high'}),_0xbc6560['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x363609,_0x553ffe)=>_0x553ffe['options']['showSuggestionHighlights']?_0x4d9aa5(_0x363609,!0x1):null,'converterPriority':'high'});const _0x5ed664=_0xbc6560['editing']['view'];this['listenTo'](_0x5ed664['document'],'clipboardOutput',(_0x45dc9e,_0x2a2b92)=>{const _0x1cd883=[];for(const _0x3affed of _0x5ed664['createRangeIn'](_0x2a2b92['content'])['getItems']())_0x3affed['is']('element','suggestion-td')&&_0x1cd883['push'](_0x3affed);_0x5ed664['change'](_0x2c00da=>{for(const _0x2eb626 of _0x1cd883)_0x2c00da['move'](_0x2c00da['createRangeIn'](_0x2eb626),_0x2c00da['createPositionBefore'](_0x2eb626)),_0x2c00da['remove'](_0x2eb626);});});}}function je(_0x4147cd){if(_0x4147cd['isEmpty'])return!0x0;const _0x244e40=_0x4147cd['getChild'](0x0);return _0x244e40['is']('element','paragraph')&&_0x244e40['isEmpty'];}function Ae(_0x19162e,_0x464aa7={},_0x3ca232){for(const {isAnchor:_0x34e01c,cellHeight:_0x508845,cellWidth:_0x2b2ffb}of _0x3ca232['createTableWalker'](_0x19162e,{'includeAllSlots':!0x0,..._0x464aa7}))if(!_0x34e01c||0x1!=_0x508845||0x1!=_0x2b2ffb)return!0x1;return!0x0;}class Dt extends _0x24408b{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x54e9c4=this['editor']['plugins']['get']('TrackChangesEditing');_0x54e9c4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x54e9c4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x54e9c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x54e9c4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x54e9c4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x54e9c4['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x864a4a,_0x170a31){const _0x56c99f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfb91d4=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2094de=_0x170a31['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x471dbd=_0xfb91d4['getColumnGroupElement'](_0x2094de);let _0x4f244b=_0x471dbd?_0xfb91d4['getTableColumnsWidths'](_0x471dbd):null,_0x3fc061=_0x2094de['getAttribute']('tableWidth')||null;const _0x445ff5=_0x170a31['tableWidth']||_0x3fc061,_0x145671=_0x170a31['columnWidths']||_0x4f244b,_0x2ed622=this['editor']['plugins']['get']('Users')['me'];for(const _0x34cce5 of _0x56c99f['getSuggestions']()){const _0x5ecccf=_0x34cce5['getContainedElement']();if('resizeTable'===_0x34cce5['subType']&&_0x5ecccf===_0x2094de){_0x34cce5['author']!==_0x2ed622&&_0x34cce5['discard']();const _0x4b72b0=_0x34cce5['data']['commandParams'];_0x3fc061=_0x4b72b0[0x0]['tableWidth'],_0x4f244b=_0x4b72b0[0x0]['columnWidths'];break;}}_0x864a4a({'table':_0x2094de,'tableWidth':_0x445ff5,'columnWidths':_0x145671}),_0x56c99f['markBlockFormat'](_0x2094de,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3fc061,'columnWidths':_0x4f244b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4c3491){if('formatBlock'!=_0x4c3491['type']&&'formatInline'!=_0x4c3491['type'])return;const {data:_0xdb41df}=_0x4c3491;if(_0xdb41df&&'resizeTable'===_0xdb41df['formatGroupId']){const _0x3cabc2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3cabc2)};}}}class Mt extends _0x24408b{['afterInit'](){const _0x1d73d5=this['editor'];_0x1d73d5['plugins']['has']('Template')&&_0x1d73d5['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x24408b{['afterInit'](){const _0x64531f=this['editor'];if(!_0x64531f['commands']['get']('insertTableOfContents'))return;_0x64531f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1b4188=_0x64531f['plugins']['get']('TrackChangesEditing'),_0x34920a=_0x64531f['locale'];_0x1b4188['descriptionFactory']['registerElementLabel']('tableOfContents',_0x352c2a=>o(_0x34920a,'ELEMENT_TABLE_OF_CONTENTS',_0x352c2a));}}class Bt extends _0x24408b{['afterInit'](){const _0x88b8cc=this['editor'];if(!_0x88b8cc['plugins']['has']('Title'))return;const _0x18bdfb=_0x88b8cc['plugins']['get']('TrackChangesEditing');_0x18bdfb['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x88b8cc['locale'],'ELEMENT_TITLE')),_0x88b8cc['model']['document']['registerPostFixer'](_0xed31ea=>{let _0x533036=!0x1;const _0x450f44=Array['from'](_0x88b8cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c57ec,data:_0x1696c9}of _0x450f44){const {group:_0x505105}=_0x18bdfb['_splitMarkerName'](_0x4c57ec);if('suggestion'!==_0x505105||!_0x1696c9['newRange'])continue;const _0x1d437c=_0x1696c9['newRange'],_0x1e5e63=_0x1d437c['end']['nodeBefore'];if(!_0x1e5e63||!_0x1e5e63['is']('element','title-content'))continue;if(!_0x1d437c['start']['isTouching'](_0x1d437c['end']))continue;const _0xb88d9f=_0x88b8cc['model']['schema']['getNearestSelectionRange'](_0x1d437c['end'],'forward');if(_0xb88d9f&&_0xb88d9f['isCollapsed']){const _0x481948=_0xed31ea['createRange'](_0x1d437c['start'],_0xb88d9f['start']);_0x481948['isEqual'](_0x1d437c)||(_0xed31ea['updateMarker'](_0x4c57ec,{'range':_0x481948}),_0x533036=!0x0);}_0x533036||(_0xed31ea['removeMarker'](_0x4c57ec),_0x533036=!0x0);}return _0x533036;});}}class Ot extends _0x24408b{['afterInit'](){const _0x3565c1=this['editor'],_0x1fc536=_0x3565c1['plugins']['get']('TrackChangesEditing');_0x3565c1['plugins']['has']('UndoEditing')&&(_0x1fc536['enableCommand']('undo'),_0x1fc536['enableCommand']('redo'));}}class Rt extends _0x24408b{static get['requires'](){return[vt];}['afterInit'](){const _0x5c1491=this['editor'];if(!_0x5c1491['plugins']['has']('TableCaptionEditing'))return;_0x5c1491['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x24408b{['tableProperties'];['tableCellProperties'];constructor(_0x58b4d5){super(_0x58b4d5),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 _0xca5d16=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x55672f of this['tableProperties'])_0xca5d16['enableCommand'](_0x55672f,(_0x3502c1,_0x366036)=>{const _0x1418ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x55672f,[_0x1418ee],this['tableProperties'],'tableProperties',_0x3502c1,_0x366036);});_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xca5d16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x24d090,_0x139dab)=>this['handleDiscardAction'](this['tableProperties'],_0x24d090,_0x139dab)),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x1380fc of this['tableCellProperties'])_0xca5d16['enableCommand'](_0x1380fc,(_0x1c94db,_0x489aa2)=>{const _0x350bf6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x1380fc,_0x350bf6,this['tableCellProperties'],'tableCellProperties',_0x1c94db,_0x489aa2);});_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xca5d16['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x24e2c3,_0x1b54d8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x24e2c3,_0x1b54d8)),_0xca5d16['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xca5d16['descriptionFactory']['registerDescriptionCallback'](_0x1f509c=>this['handleSuggestionDescription'](_0x1f509c));}['_handlePropertyChange'](_0x331b17,_0x1131ae,_0x333e3f,_0x2049fd,_0x2354df,_0x2ca71b){const _0x1f9bd5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2ca71b['batch'],()=>{for(const _0x297b71 of _0x1131ae){if(this['_getSuggestion'](_0x297b71,_0x2049fd))_0x2354df(_0x2ca71b);else{const _0x1868a0={};for(const _0x1176cc of _0x333e3f){const _0x37b5e7=_0x297b71['getAttribute'](_0x1176cc);void 0x0!==_0x37b5e7&&(_0x1868a0[_0x1176cc]=_0x37b5e7);}_0x2354df(_0x2ca71b),_0x1f9bd5['markBlockFormat'](_0x297b71,{'commandParams':[_0x1868a0]},[],_0x2049fd);}}});}['handleDiscardAction'](_0x337fd0,_0x263839,_0x1a7790){const _0x454955=_0x263839[0x0]['start']['nodeAfter'],_0xad85cd=_0x1a7790['commandParams'][0x0];this['editor']['model']['change'](_0x4441bc=>{for(const _0x59d19e of _0x337fd0)void 0x0!==_0xad85cd[_0x59d19e]?_0x4441bc['setAttribute'](_0x59d19e,_0xad85cd[_0x59d19e],_0x454955):_0x4441bc['removeAttribute'](_0x59d19e,_0x454955);});}['handleSuggestionDescription'](_0x1755b0){if(_0x1755b0['data'])switch(_0x1755b0['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'](_0x458cf4,_0x285e63){const _0x15ab76=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x10e9b8 of _0x15ab76['getSuggestions']({'skipNotAttached':!0x0})){const _0x17d77b=_0x10e9b8['getContainedElement']();if(_0x10e9b8['subType']===_0x285e63&&_0x17d77b===_0x458cf4)return _0x10e9b8;}return null;}}const m='$elementName';class p extends _0x24408b{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x21fc14,_0xd69aae,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(_0x4f3e5c){super(_0x4f3e5c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1b39b8,_0x1e1477,_0x418a2a,_0x3ff959)=>{this['_model']['change'](()=>{for(const _0xd72567 of[..._0x3ff959,..._0x418a2a])this['_model']['markers']['has'](_0xd72567)&&_0x4f3e5c['editing']['reconvertMarker'](_0xd72567);});}),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']=_0x4f3e5c['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(),_0x4f3e5c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4f3e5c['config']['get']('trackChanges.trackFormatChanges'),_0x4f3e5c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4f3e5c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4f3e5c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x524592=this['editor'],_0x2d7664=(_0x251ac9,_0x246aa0)=>{if('attribute'!=_0x251ac9)return'ck-suggestion-marker-'+_0x251ac9;const _0x4a9b51=_0x246aa0['split']('|')[0x0];return this['_isBlockAttribute'](_0x4a9b51)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x524592['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3cf7a1=>{const {id:_0x72e55f,authorId:_0x27b5f9,type:_0x297851,subType:_0xba1384}=this['_splitMarkerName'](_0x3cf7a1['markerName']),_0x22fc9c=['ck-suggestion-marker',_0x2d7664(_0x297851,_0xba1384)];let _0x46db69=0xbb8;return this['activeMarkers']['includes'](_0x3cf7a1['markerName'])&&(_0x22fc9c['push']('ck-suggestion-marker--active'),_0x46db69=0xbc2),'deletion'==_0x297851&&(_0x46db69+=0x5),{'classes':_0x22fc9c,'attributes':{'data-suggestion':_0x72e55f,'data-author-id':_0x27b5f9},'priority':_0x46db69};}}),_0x524592['conversion']['for']('dataDowncast')['add'](_0x33345d=>{_0x33345d['on']('addMarker:suggestion',(_0xe89091,_0x35f0c3,_0x14f669)=>{if(!_0x14f669['options']['showSuggestionHighlights'])return;const _0x225dc0=_0x35f0c3['item'];if(!_0x225dc0)return;const _0x1abf07=_0x14f669['mapper']['toViewElement'](_0x225dc0);_0x524592['model']['schema']['isObject'](_0x225dc0)&&_0x1abf07&&!_0x1abf07['getCustomProperty']('widget')&&_0x1abf07['is']('containerElement')&&_0x21cec0(_0x1abf07,_0x14f669['writer']);},{'priority':'high'});}),_0x524592['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x24016e,_0x5b1529)=>{if(!_0x5b1529['options']['showSuggestionHighlights'])return null;const {type:_0x4d3f10,subType:_0x471773}=this['_splitMarkerName'](_0x24016e['markerName']);return{'classes':['ck-suggestion-marker',_0x2d7664(_0x4d3f10,_0x471773)],'priority':0xbb8};}});const _0x4ca8fb=({showActiveMarkers:_0x392ad9=!0x0,isAttributeSuggestion:_0x38c228=!0x1}={})=>(_0x16f4a9,_0x1da861,_0x4ad37e)=>{if(!_0x1da861['item'])return;const {id:_0x1c20db,authorId:_0x243667}=this['_splitMarkerName'](_0x1da861['markerName']);if(_0x38c228){const _0x12abac=this['_suggestions']['get'](_0x1c20db),_0x2e37f6=this['_getAttributeKey'](_0x12abac);if(!this['_isBlockAttribute'](_0x2e37f6))return;}if(_0x1da861['item']['is']('selection'))return void _0x4ad37e['consumable']['consume'](_0x1da861['item'],_0x16f4a9['name']);const _0x4636f1=_0x4ad37e['mapper']['toViewElement'](_0x1da861['item']);if(_0x1da861['item']['is']('element')&&_0x524592['model']['schema']['isBlock'](_0x1da861['item'])&&!_0x4636f1['getCustomProperty']('addHighlight')){_0x4ad37e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4636f1),_0x4ad37e['writer']['setAttribute']('data-suggestion',_0x1c20db,_0x4636f1),_0x4ad37e['writer']['setAttribute']('data-author-id',_0x243667,_0x4636f1),_0x4ad37e['mapper']['bindElementToMarker'](_0x4636f1,_0x1da861['markerName']),_0x392ad9&&(this['activeMarkers']['includes'](_0x1da861['markerName'])?_0x4ad37e['writer']['addClass']('ck-suggestion-marker--active',_0x4636f1):_0x4ad37e['writer']['removeClass']('ck-suggestion-marker--active',_0x4636f1));for(const _0x179722 of _0x524592['model']['createRangeIn'](_0x1da861['item'])['getItems']())_0x4ad37e['consumable']['consume'](_0x179722,_0x16f4a9['name']);_0x4ad37e['consumable']['consume'](_0x1da861['item'],_0x16f4a9['name']);}};_0x524592['conversion']['for']('dataDowncast')['add'](_0x479079=>{_0x479079['on']('addMarker:suggestion:formatBlock',(_0x1a8bb2,_0x4d6258,_0x4ac67f)=>{_0x4ac67f['options']['showSuggestionHighlights']&&_0x4ca8fb({'showActiveMarkers':!0x1})(_0x1a8bb2,_0x4d6258,_0x4ac67f);},{'priority':'highest'});}),_0x524592['conversion']['for']('dataDowncast')['add'](_0x3055af=>{_0x3055af['on']('addMarker:suggestion:attribute',(_0x333394,_0x345414,_0x124051)=>{_0x124051['options']['showSuggestionHighlights']&&_0x4ca8fb({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x333394,_0x345414,_0x124051);},{'priority':'highest'});}),_0x524592['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4bfb23,_0x29830d)=>_0x29830d['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4bfb23['substr'](0xb)}}),_0x524592['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x503777,{writer:_0x43c0c2})=>{let _0x27df21='suggestion:'+_0x503777['getAttribute']('suggestion-type')+':'+_0x503777['getAttribute']('id');return _0x503777['getAttribute']('marker-count')&&(_0x27df21+=':'+_0x503777['getAttribute']('marker-count')),_0x43c0c2['createElement']('$marker',{'data-name':_0x27df21});}}),_0x524592['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x524592['conversion']['for']('editingDowncast')['add'](_0xc2ac19=>{_0xc2ac19['on']('addMarker:suggestion:formatBlock',_0x4ca8fb(),{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x177549=>{_0x177549['on']('addMarker:suggestion:attribute',_0x4ca8fb({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x5b581e=>{_0x5b581e['on']('removeMarker:suggestion:formatBlock',(_0x23be0c,_0x2633ad,_0x10fd4f)=>{const _0x36a245=_0x10fd4f['mapper']['markerNameToElements'](_0x2633ad['markerName']);if(_0x36a245){for(const _0x184196 of _0x36a245)_0x184196['getCustomProperty']('addHighlight')||(_0x10fd4f['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x184196),_0x10fd4f['writer']['removeAttribute']('data-suggestion',_0x184196),_0x10fd4f['writer']['removeAttribute']('data-author-id',_0x184196),_0x10fd4f['mapper']['unbindElementFromMarkerName'](_0x184196,_0x2633ad['markerName']));}},{'priority':'high'});}),_0x524592['conversion']['for']('editingDowncast')['add'](_0x430667=>{_0x430667['on']('removeMarker:suggestion:attribute',(_0x4b3ec0,_0x117dba,_0x2d83ac)=>{const _0x9e1724=_0x2d83ac['mapper']['markerNameToElements'](_0x117dba['markerName']);if(!_0x9e1724)return;const {id:_0x356c7c}=this['_splitMarkerName'](_0x117dba['markerName']),_0x27ccb9=this['_suggestions']['get'](_0x356c7c),_0x550ae6=this['_getAttributeKey'](_0x27ccb9);if(this['_isBlockAttribute'](_0x550ae6)){for(const _0xf92722 of _0x9e1724)_0xf92722['getCustomProperty']('addHighlight')||(_0x2d83ac['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xf92722),_0x2d83ac['writer']['removeAttribute']('data-suggestion',_0xf92722),_0x2d83ac['writer']['removeAttribute']('data-author-id',_0xf92722),_0x2d83ac['mapper']['unbindElementFromMarkerName'](_0xf92722,_0x117dba['markerName']));}},{'priority':'high'});}),_0x524592['model']['document']['registerPostFixer'](_0x1c832a=>{let _0x386d19=!0x1;const _0x113980=Array['from'](_0x524592['model']['document']['differ']['getChangedMarkers']()),_0x59d365=new Set();for(const {name:_0x1cf3bb,data:_0x1382b8}of _0x113980){const {group:_0x389960,type:_0x2e4472,subType:_0x3b5b53,id:_0x261244}=this['_splitMarkerName'](_0x1cf3bb);if('suggestion'!==_0x389960)continue;const _0xe4a4ee=this['_suggestions']['get'](_0x261244);if(null!=_0x1382b8['newRange']){'formatInline'==_0x2e4472&&(_0x386d19=_0x386d19||Pt(_0x1382b8['newRange'],_0x1cf3bb,_0x1c832a,_0x524592['model']['schema']));const _0xc2dbef='attribute'==_0x2e4472&&this['_isBlockAttribute'](_0x3b5b53['split']('|')[0x0]);if(_0x1382b8['newRange']['isCollapsed']||'$graveyard'==_0x1382b8['newRange']['root']['rootName']||'formatBlock'==_0x2e4472&&!Ft(_0x1382b8['newRange'])||_0xc2dbef&&!Ft(_0x1382b8['newRange'])||'deletion'==_0x2e4472&&!(!Vt(_0x5ebf84=_0x1382b8['newRange'])&&!function(_0x22e034){return _0x22e034['start']['parent']==_0x22e034['end']['nodeBefore']&&_0x22e034['start']['isAtEnd'];}(_0x5ebf84)))_0x1c832a['removeMarker'](_0x1cf3bb),_0x386d19=!0x0;else{if(!_0xe4a4ee||!_0xe4a4ee['isInContent'])continue;if(_0x1382b8['newRange']&&_0x1382b8['oldRange']&&_0x1382b8['newRange']['isEqual'](_0x1382b8['oldRange']))continue;_0x59d365['add'](_0xe4a4ee);}}}var _0x5ebf84;return _0x59d365['size']>0x0&&(_0x386d19=!!this['_joinWithAdjacentSuggestions'](_0x59d365)||_0x386d19),_0x386d19;}),_0x524592['model']['document']['registerPostFixer'](_0x21df93=>{let _0x281a4e=!0x1;for(const _0x4dcfd4 of _0x524592['model']['document']['differ']['getChanges']())if('insert'==_0x4dcfd4['type'])for(const _0x392f67 of this['_suggestions']['values']()){if(_0x392f67['isMultiRange']||!_0x392f67['isInContent'])continue;const _0x83ff59='formatBlock'==_0x392f67['type'],_0x3dddda=this['_getAttributeKey'](_0x392f67),_0x56b6fd=_0x3dddda&&this['_isBlockAttribute'](_0x3dddda);if(!_0x83ff59&&!_0x56b6fd)continue;const _0x3a79a1=_0x392f67['getFirstRange']();if(_0x3a79a1['start']['parent']!=_0x3a79a1['end']['parent']&&!_0x3a79a1['end']['isAtEnd']){const _0x35f2c0=_0x524592['model']['createPositionAt'](_0x3a79a1['start']['nodeAfter'],'end'),_0xb28752=_0x524592['model']['createRange'](_0x3a79a1['start'],_0x35f2c0);_0x21df93['updateMarker'](_0x392f67['getFirstMarker'](),{'range':_0xb28752}),_0x281a4e=!0x0;}}return _0x281a4e;}),_0x524592['model']['document']['registerPostFixer'](_0x4080d1=>this['_processAttributeChanges'](_0x4080d1)),_0x524592['model']['document']['registerPostFixer'](_0x527e43=>!_0x527e43['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x527e43)),_0x524592['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x524592['model']['document']['on']('change:data',(_0x3a1f2d,_0x155447)=>{if(!_0x155447['isLocal']||_0x155447['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5dd573=_0x524592['model']['document']['differ']['getChanges']();if(0x0==_0x5dd573['length'])return;const _0x22d9de=[],_0x3a85ee=_0x5dd573['filter'](_0x38b0f9=>'attribute'==_0x38b0f9['type']),_0x3b54d7=_0x5dd573['filter'](_0x1dd327=>'insert'==_0x1dd327['type']&&'$text'!=_0x1dd327['name']);for(const _0x1bdd4d of _0x3a85ee)this['_isRegisteredAttribute'](_0x1bdd4d['attributeKey'])&&_0x22d9de['push']({'key':_0x1bdd4d['attributeKey'],'newValue':_0x1bdd4d['attributeNewValue'],'oldValue':_0x1bdd4d['attributeOldValue'],'range':Lt(_0x1bdd4d['range'],_0x524592['model'])});for(const _0x377b4f of _0x3b54d7){if('rename'!=_0x377b4f['action']&&'refresh'!=_0x377b4f['action'])continue;const _0x2a1224=Jt(_0x377b4f['position']['nodeAfter'],_0x524592['model']),_0x24dbd5=_0x377b4f['before'];'rename'==_0x377b4f['action']&&_0x22d9de['push']({'key':m,'newValue':_0x377b4f['name'],'oldValue':_0x24dbd5['name'],'range':_0x2a1224});for(const [_0x41ce2c,_0x5207e3]of _0x24dbd5['attributes']){if(!this['_isRegisteredAttribute'](_0x41ce2c))continue;const _0x6c213f=_0x377b4f['attributes']['get'](_0x41ce2c);_0x5207e3!==_0x6c213f&&_0x22d9de['push']({'key':_0x41ce2c,'newValue':_0x6c213f,'oldValue':_0x5207e3,'range':_0x2a1224});}for(const [_0x4a86dd,_0x165488]of _0x377b4f['attributes'])this['_isRegisteredAttribute'](_0x4a86dd)&&(_0x24dbd5['attributes']['has'](_0x4a86dd)||_0x22d9de['push']({'key':_0x4a86dd,'newValue':_0x165488,'oldValue':null,'range':_0x2a1224}));}0x0!=_0x22d9de['length']&&_0x524592['model']['enqueueChange'](_0x155447,_0x2ca3a2=>{const _0x16dc01=_0x425cf6();for(const {range:_0x3b78a8,key:_0x76547d,oldValue:_0x4e5e8c,newValue:_0x470f5d}of _0x22d9de)this['markAttributeChange'](_0x3b78a8,_0x76547d,_0x4e5e8c,_0x470f5d,{'groupId':_0x16dc01});this['_reduceExistingSuggestions'](_0x2ca3a2,_0x22d9de);});},{'priority':'lowest'}),_0x524592['model']['markers']['on']('update:suggestion',(_0x29e965,_0x2075b4,_0x5939c6)=>{if(null==_0x5939c6){const {id:_0x10d1ac}=this['_splitMarkerName'](_0x2075b4['name']),_0x42e678=this['_suggestions']['get'](_0x10d1ac);_0x42e678&&_0x42e678['addMarkerName'](_0x2075b4['name']);}}),_0x524592['model']['document']['on']('change:data',()=>{const _0x5e4960=Array['from'](_0x524592['model']['document']['differ']['getChangedMarkers']())['filter'](_0x6a1797=>'suggestion'===this['_splitMarkerName'](_0x6a1797['name'])['group']);if(0x0===_0x5e4960['length'])return;_0x5e4960['sort']((_0x55c8ab,_0x195a29)=>{const _0x37cfa6=_0x55c8ab['data']['oldRange'],_0x50b30c=_0x195a29['data']['oldRange'];return null===_0x37cfa6&&null===_0x50b30c?0x0:null===_0x37cfa6&&null!==_0x50b30c?-0x1:null!==_0x37cfa6&&null===_0x50b30c?0x1:_0x37cfa6['start']['isBefore'](_0x50b30c['start'])?-0x1:0x1;});const _0x4d3012=new Set(),_0x1aa691=new Set();for(const {name:_0x306e9e,data:_0x275c0a}of _0x5e4960){const {id:_0x84c251}=this['_splitMarkerName'](_0x306e9e);if(null===_0x275c0a['oldRange']){const _0x4251df=this['_handleNewSuggestionMarker'](_0x306e9e);_0x1aa691['add'](_0x4251df);}else{const _0x558bb9=this['_suggestions']['get'](_0x84c251);null!==_0x275c0a['newRange']||_0x558bb9['isInContent']?(_0x4d3012['add'](_0x558bb9['head']),_0x1aa691['add'](_0x558bb9)):this['_removeSuggestion'](_0x558bb9);}}_0x1aa691['size']>0x0&&this['_refreshSuggestionsChain'](_0x1aa691);for(const _0x5d6f25 of _0x4d3012)this['fire']('suggestionChanged',_0x5d6f25);}),_0x524592['model']['on']('applyOperation',(_0x40521d,_0x40e1b7)=>{const _0x1c8c6a=_0x40e1b7[0x0];if(!this['_suggestions']['size'])return;if(!_0x1c8c6a['isDocumentOperation'])return;if(_0x1c8c6a['batch']['isUndo']||!_0x1c8c6a['batch']['isLocal'])return;let _0x10ec00,_0x5f4cbf;switch(_0x1c8c6a['type']){case'insert':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['position']),_0x5f4cbf=_0x10ec00['getShiftedBy'](_0x1c8c6a['howMany']);break;case'split':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['splitPosition']),_0x5f4cbf=_0x524592['model']['createPositionAt'](_0x1c8c6a['moveTargetPosition']);break;case'move':_0x10ec00=_0x524592['model']['createPositionAt'](_0x1c8c6a['targetPosition']),_0x5f4cbf=_0x10ec00['getShiftedBy'](_0x1c8c6a['howMany']);break;default:return;}const _0x5b86b9=_0x524592['model']['createRange'](_0x10ec00,_0x5f4cbf);_0x524592['model']['change'](()=>{for(const {suggestion:_0x445dd4,meta:_0x3e0ccc}of this['_findSuggestions'](_0x5b86b9)){if(_0x445dd4['isMultiRange'])continue;if('formatInline'==_0x445dd4['type'])continue;const _0x33e4be=this['_getAttributeKey'](_0x445dd4);if(_0x33e4be&&this['_isBlockAttribute'](_0x33e4be)&&'split'!=_0x1c8c6a['type'])continue;const _0x5eee34=_0x445dd4['data']&&_0x445dd4['data']['multipleBlocks'];('formatBlock'!=_0x445dd4['type']||'split'==_0x1c8c6a['type']&&!_0x5eee34)&&(_0x3e0ccc['containsRangeInObject']||'insertion'==_0x445dd4['type']&&_0x3e0ccc['isOwn']||_0x445dd4['getFirstRange']()['containsRange'](_0x5b86b9)&&this['_breakSuggestionMarker'](_0x445dd4,_0x10ec00,_0x5f4cbf));}});},{'priority':'lowest'}),_0x524592['model']['on']('deleteContent',(_0x3b0534,_0x88d12a)=>{const _0x247264=_0x88d12a[0x0],_0x1b6270=_0x88d12a[0x1];if(_0x1b6270&&_0x1b6270['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x247264['isCollapsed'])return;const _0x42f439=_0x524592['model']['schema'],{start:_0x9dcdb3,end:_0x47f044}=_0x247264['getFirstRange'](),_0x453c8f=_0x9dcdb3['nodeAfter']&&_0x42f439['isLimit'](_0x9dcdb3['nodeAfter'])?null:_0x42f439['getNearestSelectionRange'](_0x9dcdb3,'forward'),_0x1b70c3=_0x47f044['nodeBefore']&&_0x42f439['isLimit'](_0x47f044['nodeBefore'])?null:_0x42f439['getNearestSelectionRange'](_0x47f044,'backward'),_0x261ef8=_0x524592['model']['createRange'](_0x453c8f?_0x453c8f['start']:_0x9dcdb3,_0x1b70c3?_0x1b70c3['end']:_0x47f044);_0x524592['model']['change'](_0x48220a=>{this['markDeletion'](_0x261ef8);const _0x4360d8=_0x524592['model']['schema']['getNearestSelectionRange'](_0x261ef8['start']);_0x247264['is']('documentSelection')?_0x48220a['setSelection'](_0x4360d8):_0x247264['setTo'](_0x4360d8);}),_0x3b0534['stop']();},{'priority':_0x5d6642['normal']+0xa}),_0x524592['model']['on']('insertContent',(_0x20751f,_0x457f03)=>{const _0x5ca891=_0x457f03[_0x457f03['length']-0x1];_0x5ca891&&_0x5ca891['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x524592['model']['change'](()=>{let _0x421b00=_0x524592['model']['insertContent'](_0x457f03[0x0],_0x457f03[0x1],_0x457f03[0x2],{'forceDefaultExecution':!0x0});if(!_0x421b00)return;_0x20751f['return']=_0x421b00['clone']();const _0xf6f2d5=_0x421b00['end']['nodeBefore'],_0x5813c4=_0x524592['model']['schema'];_0xf6f2d5&&_0x5813c4['isBlock'](_0xf6f2d5)&&!_0x5813c4['isObject'](_0xf6f2d5)&&(_0x421b00=_0x524592['model']['createRange'](_0x421b00['start'],_0x524592['model']['createPositionAt'](_0xf6f2d5,'end'))),this['markInsertion'](_0x421b00);}),_0x20751f['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3a890b=new O(_0x524592,this['_suggestions']);_0x524592['commands']['add']('acceptSuggestion',_0x3a890b),this['enableCommand']('acceptSuggestion');const _0x38947b=new R(_0x524592,this['_suggestions']);_0x524592['commands']['add']('discardSuggestion',_0x38947b),this['enableCommand']('discardSuggestion'),_0x524592['commands']['add']('acceptAllSuggestions',new x(_0x524592,_0x3a890b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x524592['commands']['add']('discardAllSuggestions',new x(_0x524592,_0x38947b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x524592['commands']['add']('acceptSelectedSuggestions',new E(_0x524592,_0x3a890b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x524592['commands']['add']('discardSelectedSuggestions',new E(_0x524592,_0x38947b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x514a63=_0x524592['plugins']['get']('CommentsRepository');this['listenTo'](_0x514a63,'addComment',(_0x11505d,{threadId:_0x20ddd7})=>{const _0x192a9f=this['_suggestions']['get'](_0x20ddd7);_0x192a9f&&_0x192a9f['commentThread']&&0x1===_0x192a9f['commentThread']['length']&&this['_updateSuggestionData'](_0x20ddd7,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x514a63,'removeComment',(_0x16dc05,{threadId:_0x1107d6})=>{const _0x4ea497=this['_suggestions']['get'](_0x1107d6);_0x4ea497&&_0x4ea497['commentThread']&&!_0x4ea497['commentThread']['length']&&this['_updateSuggestionData'](_0x1107d6,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xa9c5bb){const _0x721ba6=_0x20a69a([0x6c,0x5a,0x32,0x65,0x31,0x67,0x4f,0x61,0x38,0x37,0x73,0x62,0x4a,0x41,0x4d,0x6e,0x7a,0x6d,0x4c,0x4e,0x76,0x30,0x59,0x53,0x79,0x42,0x55,0x49,0x63,0x71,0x75,0x47,0x6a,0x6b,0x74,0x33,0x43,0x56,0x66,0x57,0x52,0x39,0x69,0x34,0x45,0x64,0x77,0x6f,0x54,0x44,0x70,0x68,0x78,0x4b,0x48,0x36,0x58,0x72,0x46,0x35,0x51,0x50]),_0x183213=0x50cc1ebd,_0x32c3ad=0x50cb4485^_0x183213,_0x414ab9=window[_0x20a69a([0x44,0x61,0x74,0x65])][_0x20a69a([0x6e,0x6f,0x77])](),_0x5cc2f7=_0xa9c5bb[_0x20a69a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3454bc=new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x300155=>{_0x5cc2f7[_0x20a69a([0x6f,0x6e,0x63,0x65])](_0x20a69a([0x72,0x65,0x61,0x64,0x79]),_0x300155);}),_0x16d570={[_0x20a69a([0x6b,0x74,0x79])]:_0x20a69a([0x45,0x43]),[_0x20a69a([0x75,0x73,0x65])]:_0x20a69a([0x73,0x69,0x67]),[_0x20a69a([0x63,0x72,0x76])]:_0x20a69a([0x50,0x2d,0x32,0x35,0x36]),[_0x20a69a([0x78])]:_0x20a69a([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]),[_0x20a69a([0x79])]:_0x20a69a([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]),[_0x20a69a([0x61,0x6c,0x67])]:_0x20a69a([0x45,0x53,0x32,0x35,0x36])},_0x599378=_0x5cc2f7[_0x20a69a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20a69a([0x67,0x65,0x74])](_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3049fc(){let _0x372fcb,_0x3a8ca4=null,_0x5a081e=null;try{if(_0x599378==_0x20a69a([0x47,0x50,0x4c]))return _0x20a69a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x372fcb=_0x4d0dd9(),!_0x372fcb)return _0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x372fcb[_0x20a69a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a081e=_0x19af06(_0x372fcb[_0x20a69a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x372fcb[_0x20a69a([0x6a,0x74,0x69])])),await _0x21b366()?_0x3fbdb7()?_0x482c7d()?_0x20a69a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e3b52()?(_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a69a([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x3a8ca4=_0x2ff11d(_0x20a69a([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5491ee()):_0x20a69a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20a69a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x255415){return _0x20a69a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x482c7d(){const _0x27236f=[_0x20a69a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20a69a([0x74,0x72,0x69,0x61,0x6c])][_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x414ab9/0x3e8:0xe10*_0x32c3ad;return _0x372fcb[_0x20a69a([0x65,0x78,0x70])]<_0x27236f;}function _0x3fbdb7(){const _0xf55823=_0x372fcb[_0x20a69a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf55823)return!0x1;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x2a])))return!0x0;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x54,0x43])))return!0x0;if(_0xf55823[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x52,0x54,0x43]))){if(_0x4d8965())return!0x0;if(_0x49d28c()||_0x19bbf2())return!0x0;}return!0x1;}function _0x5e3b52(){const _0x4ddc07=_0x372fcb[_0x20a69a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ddc07||0x0==_0x4ddc07[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2dfecc}=new URL(window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ddc07[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dfecc))return!0x0;const _0x4a76f3=_0x2dfecc[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e]));return _0x4ddc07[_0x20a69a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1fdc20=>_0x1fdc20[_0x20a69a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a69a([0x2a])))[_0x20a69a([0x6d,0x61,0x70])](_0x41eab7=>_0x41eab7[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e])))[_0x20a69a([0x73,0x6f,0x6d,0x65])](_0x48e6ca=>_0x4a76f3[_0x20a69a([0x65,0x76,0x65,0x72,0x79])]((_0x1948f2,_0x2d7e9d)=>_0x48e6ca[_0x2d7e9d]===_0x1948f2||_0x48e6ca[_0x2d7e9d]===_0x20a69a([0x2a])));}function _0x5491ee(){return _0x3a8ca4&&_0x5a081e?new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x476c7d,_0x4cd3f2)=>{_0x3a8ca4[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x476c7d,_0x4cd3f2),_0x5a081e[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x59a92a=>{_0x59a92a!=_0x20a69a([0x56,0x61,0x6c,0x69,0x64])&&_0x476c7d(_0x59a92a);},_0x4cd3f2);}):_0x3a8ca4||_0x5a081e||_0x20a69a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19af06(_0x404061,_0x43cee2){return new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e77ab=>{if(_0x24c5c7())return _0x4e77ab(_0x20a69a([0x56,0x61,0x6c,0x69,0x64]));_0x2ffd13(),_0x5cc2f7[_0x20a69a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x345141=!0x1;const _0x2af86e=_0x425cf6();function _0x172da6(_0x13b6e9){return!!_0x13b6e9&&(typeof _0x13b6e9===_0x20a69a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13b6e9===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13b6e9[_0x20a69a([0x74,0x68,0x65,0x6e])]===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13b6e9[_0x20a69a([0x63,0x61,0x74,0x63,0x68])]===_0x20a69a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xc12f23(_0x3b66f6){_0x1b939f(_0x3b66f6)[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x13a884=>{if(!_0x13a884||_0x13a884[_0x20a69a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20a69a([0x6f,0x6b]))return _0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x45d121(_0x3976cb(_0x2af86e+_0x43cee2))!=_0x13a884[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20a69a([0x56,0x61,0x6c,0x69,0x64]);})[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x133ab2=>(_0x280eb7(),_0x133ab2),()=>{const _0x1f7c3f=_0xe50064();return null==_0x1f7c3f?(_0x280eb7(),_0x20a69a([0x56,0x61,0x6c,0x69,0x64])):_0x20a69a(_0x414ab9-_0x1f7c3f>(0x74c09abd^_0x183213)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x4e77ab)[_0x20a69a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x587076=0x50faf03d^_0x183213;function _0x280eb7(){const _0x5b414f=_0x20a69a([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d121(_0x3976cb(_0x404061)),_0xfec5ef=_0x5cab14(_0x45d121(window[_0x20a69a([0x4d,0x61,0x74,0x68])][_0x20a69a([0x63,0x65,0x69,0x6c])](_0x414ab9/_0x587076)));window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a69a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b414f,_0xfec5ef);}function _0xe50064(){const _0x3e4b33=_0x20a69a([0x6c,0x6c,0x63,0x74,0x2d])+_0x45d121(_0x3976cb(_0x404061)),_0x4cab0f=window[_0x20a69a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a69a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3e4b33);return _0x4cab0f?window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cab14(_0x4cab0f),0x10)*_0x587076:null;}function _0x1b939f(_0x27d375){return new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f15f7,_0x4d3020)=>{_0x27d375[_0x20a69a([0x74,0x68,0x65,0x6e])](_0x1f15f7,_0x4d3020),window[_0x20a69a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4d3020,0x50cdca7d^_0x183213);});}}_0x5cc2f7[_0x20a69a([0x6f,0x6e])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xefd352,_0x4e3c39)=>{if(_0x4e3c39[0x0]!=_0x404061)return _0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e3c39[0x1]={..._0x4e3c39[0x1],[_0x20a69a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2af86e};},{[_0x20a69a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a69a([0x68,0x69,0x67,0x68])}),_0x5cc2f7[_0x20a69a([0x6f,0x6e])](_0x20a69a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd65dd5=>{_0x172da6(_0xd65dd5[_0x20a69a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x345141=!0x0,_0xc12f23(_0xd65dd5[_0x20a69a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20a69a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a69a([0x6c,0x6f,0x77])}),_0x3454bc[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>{_0x345141||_0x4e77ab(_0x20a69a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24c5c7(){return _0x5cc2f7[_0x20a69a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a69a([0x76,0x69,0x65,0x77])][_0x20a69a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20a69a([0x61,0x75,0x74,0x6f]);}function _0x2ffd13(){_0x5cc2f7[_0x20a69a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a69a([0x76,0x69,0x65,0x77])][_0x20a69a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20a69a([0x61,0x75,0x74,0x6f]);}}function _0x2ff11d(_0x5e1384){const _0x141a82=[new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45362d=>setTimeout(_0x45362d,0x50c52071^_0x183213)),_0x3454bc[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe6cc=>{let _0x7fd360=0x0;_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x6f,0x6e])](_0x20a69a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2164ec,_0x36b349)=>{_0x36b349[0x0][_0x20a69a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x7fd360++,_0x7fd360==(0x50cc1f45^_0x183213)&&(_0x2fe6cc(),_0x2164ec[_0x20a69a([0x6f,0x66,0x66])]());});}))];return window[_0x20a69a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20a69a([0x72,0x61,0x63,0x65])](_0x141a82)[_0x20a69a([0x74,0x68,0x65,0x6e])](()=>_0x5e1384);}async function _0x3899a5(){await _0x3454bc,_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x34ede1,_0x5cc2f7[_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a69a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x34ede1,_0x5cc2f7[_0x20a69a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20a69a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4d8965(){return _0xf9508a(_0x20a69a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x423601(_0x20a69a([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x20a69a([0x73,0x74,0x61,0x74,0x65])]==_0x20a69a([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49d28c(){return _0xf9508a(_0x20a69a([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x19bbf2(){return _0xf9508a(_0x20a69a([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x170d12(_0x57d592){const _0xd1dc28=_0x29a793();_0x5cc2f7[_0xd1dc28]=_0x20a69a([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x57d592,_0x57d592!=_0x20a69a([0x56,0x61,0x6c,0x69,0x64])&&_0x3899a5();}function _0x29a793(){const _0x58e6b5=window[_0x20a69a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20a69a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20a69a([0x6e,0x6f,0x77])]())[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20a69a([0x2e]),'');let _0x16d493=_0x20a69a([0x6c]);for(let _0x367be2=0x0;_0x367be2<_0x58e6b5[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x367be2+=0x2){let _0x1b8c65=window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58e6b5[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x367be2,_0x367be2+0x2));_0x1b8c65>=_0x721ba6[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b8c65-=_0x721ba6[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x16d493+=_0x721ba6[_0x1b8c65];}return _0x16d493;}function _0x4d0dd9(){const _0x439a26=_0x599378[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e]));if(0x3!=_0x439a26[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x568a74(_0x439a26[0x1]);function _0x568a74(_0x399188){const _0x451385=_0x2678f0(_0x399188);return _0x451385&&_0x5eb062()?_0x451385:null;function _0x5eb062(){const _0x11c691=_0x451385[_0x20a69a([0x6a,0x74,0x69])],_0x238357=window[_0x20a69a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11c691[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x11c691[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1d4893={..._0x451385,[_0x20a69a([0x6a,0x74,0x69])]:_0x11c691[_0x20a69a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x11c691[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1d4893[_0x20a69a([0x76,0x63])],_0x3976cb(_0x1d4893)==_0x238357;}}}async function _0x21b366(){let _0x5c98d5=!0x0;try{const _0x4f582f=_0x599378[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])](_0x20a69a([0x2e])),[_0xd0f10d,_0x259971,_0x3fd487]=_0x4f582f;return _0x384356(_0xd0f10d),await _0x4aa3ef(_0xd0f10d,_0x259971,_0x3fd487),_0x5c98d5;}catch(_0x148a9b){return!0x1;}function _0x384356(_0x45e4b5){const _0x88d805=_0x2678f0(_0x45e4b5);_0x88d805&&_0x88d805[_0x20a69a([0x61,0x6c,0x67])]==_0x20a69a([0x45,0x53,0x32,0x35,0x36])||(_0x5c98d5=!0x1);}async function _0x4aa3ef(_0x106d8b,_0x5423f9,_0x52bd92){const _0x1d54df=window[_0x20a69a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20a69a([0x66,0x72,0x6f,0x6d])](_0x387f95(_0x52bd92),_0x569d49=>_0x569d49[_0x20a69a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26360e=new window[(_0x20a69a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20a69a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x106d8b+_0x20a69a([0x2e])+_0x5423f9),_0x5559a6=window[_0x20a69a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20a69a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5559a6)return;const _0x589714=await _0x5559a6[_0x20a69a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20a69a([0x6a,0x77,0x6b]),_0x16d570,{[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x45,0x43,0x44,0x53,0x41]),[_0x20a69a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20a69a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5559a6[_0x20a69a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x45,0x43,0x44,0x53,0x41]),[_0x20a69a([0x68,0x61,0x73,0x68])]:{[_0x20a69a([0x6e,0x61,0x6d,0x65])]:_0x20a69a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x589714,_0x1d54df,_0x26360e)||(_0x5c98d5=!0x1);}}function _0x2678f0(_0x4ea014){return _0x4ea014[_0x20a69a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20a69a([0x65,0x79]))?JSON[_0x20a69a([0x70,0x61,0x72,0x73,0x65])](_0x387f95(_0x4ea014)):null;}function _0x387f95(_0x1b47e6){return window[_0x20a69a([0x61,0x74,0x6f,0x62])](_0x1b47e6[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20a69a([0x2b]))[_0x20a69a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20a69a([0x2f])));}function _0x3976cb(_0x3feca8){let _0x3e3d72=0x1505;function _0x131a71(_0x4fd750){for(let _0x2687a4=0x0;_0x2687a4<_0x4fd750[_0x20a69a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2687a4++){const _0x5e77c7=_0x4fd750[_0x20a69a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2687a4);_0x3e3d72=(_0x3e3d72<<0x5)+_0x3e3d72+_0x5e77c7,_0x3e3d72&=_0x3e3d72;}}function _0x4c61de(_0xab3c16){Array[_0x20a69a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xab3c16)?_0xab3c16[_0x20a69a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c61de):_0xab3c16&&typeof _0xab3c16==_0x20a69a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20a69a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xab3c16)[_0x20a69a([0x73,0x6f,0x72,0x74])]()[_0x20a69a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x12a430,_0x5b6f9b])=>{_0x131a71(_0x12a430),_0x4c61de(_0x5b6f9b);}):_0x131a71(window[_0x20a69a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xab3c16));}return _0x4c61de(_0x3feca8),_0x3e3d72>>>0x0;}function _0x45d121(_0xc66dbd){return _0xc66dbd[_0x20a69a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20a69a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20a69a([0x30]));}function _0x5cab14(_0x153ba0){return _0x153ba0[_0x20a69a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20a69a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20a69a([0x6a,0x6f,0x69,0x6e])]('');}function _0xf9508a(_0x1fe22b){return _0x5cc2f7[_0x20a69a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20a69a([0x68,0x61,0x73])](_0x1fe22b);}function _0x423601(_0x1f1191){return _0x5cc2f7[_0x20a69a([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x20a69a([0x67,0x65,0x74])](_0x1f1191);}function _0x34ede1(){}function _0x20a69a(_0x4895c5){return _0x4895c5['map'](_0xce6edf=>String['fromCharCode'](_0xce6edf))['join']('');}_0x170d12(await _0x3049fc());}(this);}set['adapter'](_0x435141){if(this['_adapter'])throw new _0x8f85e0('track-changes-adapter-already-set',this);this['_adapter']=_0x435141;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41a183=!0x1,toJSON:_0x307bf2=!0x1}={}){const _0x439760=[];for(const _0x287c61 of this['_suggestions']['values']())_0x41a183&&!_0x287c61['isInContent']||_0x439760['push'](_0x287c61);return _0x307bf2?_0x439760['map'](_0x5cda45=>_0x5cda45['toJSON']()):_0x439760;}['getSuggestion'](_0x2f571a){const _0x386398=this['_suggestions']['get'](_0x2f571a);if(!_0x386398)throw new _0x8f85e0('track-changes-suggestion-not-found',this);return _0x386398;}['hasSuggestion'](_0x1f8fe0){return this['_suggestions']['has'](_0x1f8fe0);}['addSuggestionData'](_0x2ae5a4){const {authorId:_0x138e1b,id:_0x4a2685,attributes:_0x36bd1f}=_0x2ae5a4,[_0x1c5c22,_0x68d9d0]=_0x2ae5a4['type']['split'](':'),_0x203368=this['_suggestions']['get'](_0x4a2685)||this['_createSuggestion'](_0x1c5c22,_0x68d9d0,_0x4a2685,_0x138e1b,_0x36bd1f);if(this['_addThreadToSuggestion'](_0x203368),this['_checkSuggestionCorrectness'](_0x203368,_0x1c5c22,_0x68d9d0||null,_0x138e1b),_0x203368['createdAt']=_0x2ae5a4['createdAt'],_0x203368['_isDataLoaded']=!0x0,_0x36bd1f&&_0x36bd1f['@external']){const _0x853d2=_0x36bd1f['@external'],_0x11db48=this['_getExternalAuthor'](_0x853d2['authorName']);_0x203368['authoredAt']=_0x853d2['createdAt'],_0x203368['author']=_0x11db48,_0x203368['isExternal']=!0x0;}else _0x203368['authoredAt']=_0x2ae5a4['createdAt'];switch(_0x2ae5a4['data']&&(_0x203368['data']=_0x2ae5a4['data']),_0x2ae5a4['attributes']&&(_0x203368['attributes']=_0x2ae5a4['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x203368['_saved']=!0x0),this['_suggestionState']['get'](_0x203368)){case'notReady':this['_suggestionState']['set'](_0x203368,'dataReady');break;case'markerReady':_0x203368['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x203368])),this['_refreshSuggestionsChain'](new Set([_0x203368])),this['_suggestionState']['set'](_0x203368,'ready'),this['fire']('suggestionLoaded',_0x203368)):this['_suggestionState']['set'](_0x203368,'removed');}return _0x203368;}['acceptSuggestion'](_0x478709){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1aca03 of _0x478709['getAllAdjacentSuggestions']())_0x1aca03['accept']();});});}['discardSuggestion'](_0x39843c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x569a9d of _0x39843c['getAllAdjacentSuggestions']())_0x569a9d['discard']();});});}['enableCommand'](_0x1c0e84,_0xe18cc1){const _0x15c664=this['editor']['commands']['get'](_0x1c0e84);if(!_0x15c664)throw new _0x8f85e0('track-changes-command-not-found',this,{'commandName':_0x1c0e84});if(this['_enabledCommands']['has'](_0x15c664))throw new _0x8f85e0('track-changes-enable-command-twice',this,{'commandName':_0x1c0e84});this['_enabledCommands']['add'](_0x15c664),_0xe18cc1&&_0x15c664['on']('execute',(_0x3d600a,_0x17d5bd)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x17d5bd['length']>0x0&&_0x17d5bd[_0x17d5bd['length']-0x1]&&_0x17d5bd[_0x17d5bd['length']-0x1]['forceDefaultExecution']?_0x17d5bd['pop']():(_0x3d600a['return']=_0xe18cc1((..._0x4e307c)=>_0x15c664['execute'](..._0x4e307c,{'forceDefaultExecution':!0x0}),..._0x17d5bd),_0x3d600a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3625ab){let _0x5e8b35,_0x4e8019;const _0x3d159e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5e8b35=_0x3625ab();}catch(_0x5347b4){_0x4e8019=_0x5347b4;}return _0x3d159e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4e8019&&_0x8f85e0['rethrowUnexpectedError'](_0x4e8019,this),_0x5e8b35;}['markInsertion'](_0x4c079a,_0x63ee5e=null,_0x4072ec={}){if(_0x4c079a['isCollapsed'])return null;const _0x245f53=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x33dea0,meta:_0x12ab54}of this['_findSuggestions'](_0x4c079a,'insertion'))if(_0x12ab54['isOwn']){if(!_0x12ab54['isNextTo']){if(_0x12ab54['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x33dea0,_0x4072ec))continue;return _0x33dea0;}if(zt(_0x33dea0,_0x4072ec))return _0x33dea0;this['_breakSuggestionMarker'](_0x33dea0,_0x4c079a['start'],_0x4c079a['end']);break;}if(_0x63ee5e==_0x33dea0['subType']&&zt(_0x33dea0,_0x4072ec)){const _0x383e18=_0x33dea0['getFirstRange']();return _0x383e18['start']['isEqual'](_0x4c079a['end'])?this['_setSuggestionRange'](_0x33dea0,this['_model']['createRange'](_0x4c079a['start'],_0x383e18['end'])):this['_setSuggestionRange'](_0x33dea0,this['_model']['createRange'](_0x383e18['start'],_0x4c079a['end'])),_0x33dea0;}}const _0x5e3e41=_0x425cf6(),_0x5c1f09=_0x245f53['id'],_0x1170a7=_0x63ee5e?'insertion:'+_0x63ee5e:'insertion',_0x4bb295=this['_setSuggestionData']({'id':_0x5e3e41,'type':_0x1170a7,'createdAt':new Date(),'authorId':_0x5c1f09,'attributes':_0x4072ec});return this['_addSuggestionMarker'](_0x1170a7,_0x5e3e41,_0x5c1f09,_0x4c079a),_0x4bb295;}['markMultiRangeInsertion'](_0x11f9d5,_0x5cfe57='multi',_0x98c935={}){const _0x5072c8=this['editor']['plugins']['get']('Users')['me'],_0x4ec86c=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x5cfe57,'join');for(const _0xef70d9 of this['getSuggestions']())if(_0xef70d9['author']['id']==_0x5072c8['id']&&'insertion'==_0xef70d9['type']&&_0xef70d9['subType']==_0x5cfe57&&zt(_0xef70d9,_0x98c935)&&(_0x4ec86c(_0xef70d9['getRanges'](),_0x11f9d5)||_0x4ec86c(_0x11f9d5,_0xef70d9['getRanges']()))){for(const _0x446ac1 of _0x11f9d5)_0xef70d9['addRange'](_0x446ac1);return _0xef70d9;}for(const {suggestion:_0x56a405,meta:_0x3a2483}of this['_findSuggestions'](_0x11f9d5,'insertion')){if(!_0x3a2483['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3a2483['containsRangeInObject'])continue;if(!zt(_0x56a405,_0x98c935))continue;let _0xf38bad=!0x0;for(const _0x929571 of _0x56a405['getRanges']())for(const _0x15916f of _0x11f9d5)if(!_0x929571['containsRange'](_0x15916f)){_0xf38bad=!0x1;break;}if(_0xf38bad)return _0x56a405;}const _0x523aa9=_0x425cf6(),_0x32d3eb=_0x5072c8['id'],_0x179f6f='insertion:'+_0x5cfe57,_0x20b0d3=this['_setSuggestionData']({'id':_0x523aa9,'type':_0x179f6f,'createdAt':new Date(),'authorId':_0x32d3eb,'attributes':_0x98c935});for(const _0x4af4c1 of _0x11f9d5)this['_addSuggestionMarker'](_0x179f6f,_0x523aa9,_0x32d3eb,_0x4af4c1,u['getMultiRangeId']());return _0x20b0d3;}['markInlineFormat'](_0x313094,_0x2e1f7c,_0x27bb20=null,_0x2ee44f={}){if(_0x27bb20=_0x27bb20||Gt(_0x2e1f7c),_0x313094['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x250257=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27bb20,'accept');return this['forceDefaultExecution'](()=>_0x250257([_0x313094],_0x2e1f7c,_0x2ee44f)),null;}const _0x5bcea5=this['editor']['plugins']['get']('Users')['me'],_0x386bd3=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4a6ead,meta:_0x2f47be}of this['_findSuggestions'](_0x313094,'insertion'))_0x2f47be['isOwn']&&!_0x2f47be['isInsideObject']&&_0x386bd3['push'](..._0x4a6ead['getRanges']());}const _0x34232e=function(_0x5b980d,_0x24803c){const _0x653f71=[];for(const _0x2dc5e2 of _0x24803c){const _0x3478d6=_0x5b980d['getIntersection'](_0x2dc5e2);_0x3478d6&&_0x653f71['push'](_0x3478d6);}return _0x653f71;}(_0x313094,_0x386bd3),_0x234ff0=function(_0x55be20,_0x5d9437){const _0x57b842=[_0x55be20];for(const _0x514ab4 of _0x5d9437){let _0x42906c=0x0;for(;_0x42906c<_0x57b842['length'];){const _0x5318e5=_0x57b842[_0x42906c]['getDifference'](_0x514ab4);_0x57b842['splice'](_0x42906c,0x1,..._0x5318e5),_0x42906c+=_0x5318e5['length'];}}return _0x57b842;}(_0x313094,_0x386bd3);_0x34232e['length']&&this['_model']['change'](()=>{for(const _0x188432 of _0x34232e){const _0x275a8d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x27bb20,'accept');this['forceDefaultExecution'](()=>_0x275a8d([_0x188432],_0x2e1f7c,_0x2ee44f));}});for(const _0x11287a of _0x234ff0){let _0x2fbbcb=null,_0x2f95a2=_0x11287a['start'],_0x420c56=_0x11287a['end'];for(const {suggestion:_0x2cd0ad,meta:_0x40e38f}of this['_findSuggestions'](_0x11287a,'formatInline')){if(!_0x40e38f['isOwn'])continue;if(_0x2cd0ad['subType']!=_0x27bb20)continue;if(!zt(_0x2cd0ad,_0x2ee44f))continue;const _0x4915eb=_0x2cd0ad['getFirstRange']();if(_0x4915eb['containsRange'](_0x11287a,!0x0))return null;_0x2f95a2=_0x2f95a2['isBefore'](_0x4915eb['start'])?_0x2f95a2:_0x4915eb['start'],_0x420c56=_0x420c56['isAfter'](_0x4915eb['end'])?_0x420c56:_0x4915eb['end'],_0x2fbbcb?_0x4915eb['start']['isBefore'](_0x2fbbcb['getFirstRange']()['start'])?(_0x2fbbcb['removeMarkers'](),_0x2fbbcb=_0x2cd0ad):_0x2cd0ad['removeMarkers']():_0x2fbbcb=_0x2cd0ad;}const _0x4c2ffa=this['_model']['createRange'](_0x2f95a2,_0x420c56);if(_0x2fbbcb)this['_setSuggestionRange'](_0x2fbbcb,_0x4c2ffa);else{const _0x415083=_0x425cf6(),_0x14b9ba=_0x5bcea5['id'];this['_setSuggestionData']({'id':_0x415083,'type':'formatInline:'+_0x27bb20,'data':_0x2e1f7c,'createdAt':new Date(),'authorId':_0x14b9ba,'attributes':_0x2ee44f}),this['_addSuggestionMarker']('formatInline:'+_0x27bb20,_0x415083,_0x14b9ba,_0x4c2ffa);}}return null;}['markBlockFormat'](_0x41f1f0,_0x3dfc35,_0x3887c8=[],_0x131f1a=null,_0x4afcc6={}){_0x3dfc35['formatGroupId']||(_0x3dfc35['formatGroupId']=_0x3dfc35['commandName']),_0x3dfc35['multipleBlocks']=_0x41f1f0['is']('range'),_0x131f1a=_0x131f1a||Gt(_0x3dfc35);const _0x4256f7=_0x3887c8['map'](_0x224e86=>Jt(_0x224e86,this['_model'])),_0x5bffe1=_0x41f1f0['is']('range')?_0x41f1f0:Jt(_0x41f1f0,this['_model']);if('never'===this['_trackFormatChanges']){const _0xdcbf23=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x131f1a,'accept');return this['forceDefaultExecution'](()=>_0xdcbf23([_0x5bffe1],_0x3dfc35,_0x4afcc6)),null;}_0x4256f7['push'](_0x5bffe1);let _0x590431=!0x0;for(const _0x3d044e of _0x4256f7)if(!this['_rangeIsInLocalUserInsertion'](_0x3d044e)){_0x590431=!0x1;break;}if(_0x590431&&'always'!==this['_trackFormatChanges']){const _0x4cac18=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x131f1a,'accept');return this['forceDefaultExecution'](()=>_0x4cac18([_0x5bffe1],_0x3dfc35,_0x4afcc6)),null;}let _0x3cad8e=null,_0x3eb8f9=_0x5bffe1['start'],_0x1f7a93=_0x5bffe1['end'];for(const {suggestion:_0x2d6334,meta:_0x1cbd85}of this['_findSuggestions'](_0x5bffe1,'formatBlock')){if(!_0x1cbd85['isOwn'])continue;if(_0x1cbd85['isNextTo']||_0x1cbd85['containsRangeInObject']||_0x1cbd85['isInsideObject'])continue;if(_0x2d6334['data']['formatGroupId']!=_0x3dfc35['formatGroupId'])continue;if(!zt(_0x2d6334,_0x4afcc6))continue;const _0x33b161=_0x2d6334['getFirstRange']();if(_0x2d6334['subType']==_0x131f1a){if(_0x33b161['containsRange'](_0x5bffe1,!0x0))return null;_0x3eb8f9=_0x3eb8f9['isBefore'](_0x33b161['start'])?_0x3eb8f9:_0x33b161['start'],_0x1f7a93=_0x1f7a93['isAfter'](_0x33b161['end'])?_0x1f7a93:_0x33b161['end'],_0x3cad8e?_0x33b161['start']['isBefore'](_0x3cad8e['getFirstRange']()['start'])?(_0x3cad8e['removeMarkers'](),_0x3cad8e=_0x2d6334):_0x2d6334['removeMarkers']():_0x3cad8e=_0x2d6334;}else{const _0xa4757b=_0x5bffe1['getIntersection'](_0x33b161);this['_cutOutSuggestionMarker'](_0x2d6334,_0xa4757b);}}const _0x40208e=this['editor']['plugins']['get']('Users')['me'],_0x50ad68=_0x425cf6(),_0x33e46d=_0x40208e['id'];if(_0x3cad8e)return this['_setSuggestionRange'](_0x3cad8e,this['_model']['createRange'](_0x3eb8f9,_0x1f7a93)),_0x3cad8e;{const _0x5445c9=this['_setSuggestionData']({'id':_0x50ad68,'type':'formatBlock:'+_0x131f1a,'data':_0x3dfc35,'createdAt':new Date(),'authorId':_0x33e46d,'attributes':_0x4afcc6});return this['_addSuggestionMarker']('formatBlock:'+_0x131f1a,_0x50ad68,_0x33e46d,this['_model']['createRange'](_0x3eb8f9,_0x1f7a93)),_0x5445c9;}}['markMultiRangeBlockFormat'](_0x419337,_0x25f008,_0x26c49d=[],_0x2a7f8e=null,_0x2d3222={}){_0x25f008['formatGroupId']||(_0x25f008['formatGroupId']=_0x25f008['commandName']);const _0xac79fe=_0x419337[0x0];_0x25f008['multipleBlocks']=_0xac79fe['is']('range'),_0x2a7f8e=_0x2a7f8e||Gt(_0x25f008);const _0x4a724c=_0x26c49d['map'](_0x35683d=>Jt(_0x35683d,this['_model'])),_0x24a5f6=_0xac79fe['is']('range')?_0x419337:_0x419337['map'](_0x196fdc=>Jt(_0x196fdc,this['_model']));if('never'===this['_trackFormatChanges']){const _0x39fa8a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'accept');return this['forceDefaultExecution'](()=>_0x39fa8a(_0x24a5f6,_0x25f008,_0x2d3222)),null;}_0x4a724c['push'](..._0x24a5f6);let _0x444f00=!0x0;for(const _0x5d6c7d of _0x4a724c)if(!this['_rangeIsInLocalUserInsertion'](_0x5d6c7d)){_0x444f00=!0x1;break;}if(_0x444f00&&'always'!==this['_trackFormatChanges']){const _0x364cb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'accept');return this['forceDefaultExecution'](()=>_0x364cb9(_0x24a5f6,_0x25f008,_0x2d3222)),null;}const _0x1c3212=this['editor']['plugins']['get']('Users')['me'];for(const _0x25764f of this['getSuggestions']()){if(_0x25764f['author']['id']!=_0x1c3212['id'])continue;if('formatBlock'!=_0x25764f['type']||_0x25764f['data']['formatGroupId']!=_0x25f008['formatGroupId'])continue;if(!zt(_0x25764f,_0x2d3222))continue;const _0x542c75=_0x25764f['subType']==_0x2a7f8e;for(let _0x1a3fa4=0x0;_0x1a3fa4<_0x24a5f6['length'];_0x1a3fa4++){const _0x278e53=_0x24a5f6[_0x1a3fa4];for(const _0x313e50 of _0x25764f['getMarkers']()){const _0x2abb6d=_0x313e50['getRange']();if(_0x278e53['isEqual'](_0x2abb6d)){_0x542c75?(_0x24a5f6['splice'](_0x1a3fa4,0x1),_0x1a3fa4--):_0x25764f['removeMarker'](_0x313e50['name']);break;}}}}if(0x0==_0x24a5f6['length'])return null;const _0x3d483d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2a7f8e,'join');for(const _0x11c2cb of this['getSuggestions']())if(_0x11c2cb['author']['id']==_0x1c3212['id']&&'formatBlock'==_0x11c2cb['type']&&_0x11c2cb['data']['formatGroupId']==_0x25f008['formatGroupId']&&_0x11c2cb['subType']==_0x2a7f8e&&zt(_0x11c2cb,_0x2d3222)&&(_0x3d483d(_0x11c2cb['getRanges'](),_0x24a5f6)||_0x3d483d(_0x24a5f6,_0x11c2cb['getRanges']()))){for(const _0x5e5c3c of _0x24a5f6)_0x11c2cb['addRange'](_0x5e5c3c);return _0x11c2cb;}const _0x513372=_0x425cf6(),_0x1fd332=_0x1c3212['id'],_0x5bf126='formatBlock:'+_0x2a7f8e,_0x4f1724=this['_setSuggestionData']({'id':_0x513372,'type':_0x5bf126,'data':_0x25f008,'createdAt':new Date(),'authorId':_0x1fd332,'attributes':_0x2d3222});for(const _0x160c2c of _0x24a5f6)this['_addSuggestionMarker'](_0x5bf126,_0x513372,_0x1fd332,_0x160c2c,u['getMultiRangeId']());return _0x4f1724;}['markDeletion'](_0x542111,_0x4a0523=null,_0xa39652={}){if(_0x542111['isCollapsed'])return null;const _0x5373c5=this['editor']['plugins']['get']('Users')['me'],_0x3bf5e2=new _0x5103d1(_0x542111['start'],_0x542111['end']);for(const {suggestion:_0x164f9f,meta:_0x1b190d}of this['_findSuggestions'](_0x3bf5e2,'insertion'))if(_0x1b190d['isOwn']&&!_0x1b190d['isNextTo']){if(_0x164f9f['isMultiRange']){const _0x3e765b=_0x164f9f['getRanges']()['filter'](_0x3fb901=>'$graveyard'!=_0x3fb901['root']['rootName']);_0x3e765b['every'](_0x36f716=>_0x3bf5e2['containsRange'](_0x36f716,!0x0))&&_0x164f9f['discard']();if(_0x3e765b['some'](_0x382420=>_0x382420['containsRange'](_0x3bf5e2,!0x0))){const _0x59f727=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4a0523,'accept');return this['forceDefaultExecution'](()=>_0x59f727([_0x3bf5e2],null,_0xa39652)),null;}}else{const _0x36419f=_0x3bf5e2['getIntersection'](_0x164f9f['getFirstRange']());null!==_0x36419f&&_0x164f9f['_onDiscard']([_0x36419f],null,_0xa39652);}}if(_0x3bf5e2['detach'](),_0x3bf5e2['isCollapsed']||'$graveyard'==_0x3bf5e2['root']['rootName'])return null;let _0x448264=null,_0x426a32=_0x3bf5e2['start'],_0xfaeb48=_0x3bf5e2['end'];const _0x54c69f=this['_findSuggestions'](_0x3bf5e2,'deletion');for(const {suggestion:_0x2dde8d,meta:_0x2906fd}of _0x54c69f){const _0x446924=this['_model']['createRange'](_0x426a32,_0xfaeb48);if(_0x2906fd['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2906fd['containsRangeInObject']&&!_0x2906fd['isInsideObject'])){if(_0x2dde8d['isMultiRange']){if(!zt(_0x2dde8d,_0xa39652))continue;let _0x33fdda=!0x0;for(const _0x183093 of _0x2dde8d['getRanges']()){if(_0x183093['containsRange'](_0x446924,!0x0))return _0x2dde8d;_0x446924['containsRange'](_0x183093)||(_0x33fdda=!0x1);}_0x33fdda&&_0x2dde8d['discard']();}else{const _0x2848eb=_0x2dde8d['getFirstRange']();if(_0x2848eb['containsRange'](_0x446924,!0x0))return _0x2dde8d;if(!zt(_0x2dde8d,_0xa39652)){_0x446924['containsRange'](_0x2848eb)?_0x2dde8d['removeMarkers']():_0x2848eb['containsPosition'](_0x426a32)?_0x426a32=_0x2848eb['end']:_0x2848eb['containsPosition'](_0xfaeb48)&&(_0xfaeb48=_0x2848eb['start']);continue;}_0x426a32=_0x426a32['isBefore'](_0x2848eb['start'])?_0x426a32:_0x2848eb['start'],_0xfaeb48=_0xfaeb48['isAfter'](_0x2848eb['end'])?_0xfaeb48:_0x2848eb['end'],_0xa39652=Object['assign']({},_0x2dde8d['attributes']),_0x448264?_0x2848eb['start']['isBefore'](_0x448264['getFirstRange']()['start'])?(_0x448264['removeMarkers'](),_0x448264=_0x2dde8d):_0x2dde8d['removeMarkers']():_0x448264=_0x2dde8d;}}}if(_0x448264)return this['_setSuggestionRange'](_0x448264,this['_model']['createRange'](_0x426a32,_0xfaeb48)),_0x448264;{const _0x641e1b=_0x425cf6(),_0x564679=this['_model']['createRange'](_0x426a32,_0xfaeb48),_0x3e9cb2=_0x5373c5['id'],_0x4d1c7e=_0x4a0523?'deletion:'+_0x4a0523:'deletion',_0x57f766=this['_setSuggestionData']({'id':_0x641e1b,'type':_0x4d1c7e,'createdAt':new Date(),'authorId':_0x3e9cb2,'attributes':_0xa39652});return this['_addSuggestionMarker'](_0x4d1c7e,_0x641e1b,_0x3e9cb2,_0x564679),_0x57f766;}}['markMultiRangeDeletion'](_0x32ce96,_0x102b4c='multi',_0xe88df1={}){const _0x7ea43f=this['editor']['plugins']['get']('Users')['me'],_0x2fcd18=_0x32ce96['map'](_0x1639b7=>new _0x5103d1(_0x1639b7['start'],_0x1639b7['end'])),_0x5d84ff=new Set();for(const {suggestion:_0x14d802,meta:_0x4bc850}of this['_findSuggestions'](_0x2fcd18,'insertion'))_0x4bc850['isOwn']&&!_0x4bc850['isNextTo']&&_0x5d84ff['add'](_0x14d802);for(const _0x3b8391 of _0x5d84ff)if(_0x3b8391['isMultiRange']){const _0x23fbde=_0x3b8391['getRanges']();(!_0x3b8391['attributes']||!_0x3b8391['attributes']['skipNestingCheck'])&&(_0x23fbde['every'](_0x43f061=>_0x2fcd18['some'](_0x36ff23=>_0x36ff23['containsRange'](_0x43f061,!0x0)))&&_0x3b8391['discard']());if(_0x2fcd18['every'](_0x419933=>_0x23fbde['some'](_0x5ad3de=>_0x5ad3de['containsRange'](_0x419933,!0x0)))){const _0x2d8484=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'accept');return this['forceDefaultExecution'](()=>_0x2d8484(_0x32ce96,null,_0xe88df1)),null;}}else{const _0x48447f=_0x3b8391['getFirstRange']();_0x2fcd18['some'](_0xc7ed82=>_0xc7ed82['containsRange'](_0x48447f,!0x0))&&_0x3b8391['discard']();if(_0x2fcd18['every'](_0x5de477=>_0x48447f['containsRange'](_0x5de477,!0x0))){const _0x494d69=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'accept');return this['forceDefaultExecution'](()=>_0x494d69(_0x2fcd18,null,_0xe88df1)),null;}}const _0x4d93ea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x102b4c,'join');let _0x953f41=null;for(const _0x31f06d of this['getSuggestions']())if(_0x31f06d['author']['id']==_0x7ea43f['id']&&_0x31f06d['isInContent']&&'deletion'==_0x31f06d['type']&&_0x31f06d['subType']==_0x102b4c&&zt(_0x31f06d,_0xe88df1)&&(_0x4d93ea(_0x31f06d['getRanges'](),_0x2fcd18)||_0x4d93ea(_0x2fcd18,_0x31f06d['getRanges']()))){if(_0x953f41){if(_0x31f06d['commentThread']&&_0x31f06d['commentThread']['length'])continue;for(const _0x411583 of _0x31f06d['getRanges']())_0x953f41['isIntersectingWithRange'](_0x411583)||_0x953f41['addRange'](_0x411583);_0x31f06d['removeMarkers']();}else{_0x953f41=_0x31f06d;for(const _0x501ae8 of _0x2fcd18)_0x31f06d['isIntersectingWithRange'](_0x501ae8)||_0x31f06d['addRange'](_0x501ae8);}}if(_0x953f41)return _0x953f41;_0x5d84ff['clear']();for(const {suggestion:_0x54cd8e,meta:_0x2f22c6}of this['_findSuggestions'](_0x2fcd18,'deletion'))_0x2f22c6['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2f22c6['containsRangeInObject']&&!_0x2f22c6['isInsideObject'])&&zt(_0x54cd8e,_0xe88df1)&&_0x5d84ff['add'](_0x54cd8e);for(const _0x56af6a of _0x5d84ff){const _0x5ec8a8=_0x56af6a['getRanges']();if(!_0xe88df1||!_0xe88df1['skipNestingCheck']){if(_0x2fcd18['every'](_0x105617=>_0x5ec8a8['some'](_0x5b75a3=>_0x5b75a3['containsRange'](_0x105617,!0x0))))return _0x56af6a;}(!_0x56af6a['attributes']||!_0x56af6a['attributes']['skipNestingCheck'])&&(_0x5ec8a8['every'](_0xbe9c2=>_0x2fcd18['some'](_0x4d6d4d=>_0x4d6d4d['containsRange'](_0xbe9c2,!0x0)))&&_0x56af6a['discard']());}const _0x39da69=_0x425cf6(),_0x3d7893=_0x7ea43f['id'],_0x35f2d8='deletion:'+_0x102b4c,_0x11c93e=this['_setSuggestionData']({'id':_0x39da69,'type':_0x35f2d8,'createdAt':new Date(),'authorId':_0x3d7893,'attributes':_0xe88df1});for(const _0x1bf927 of _0x2fcd18)_0x1bf927['detach'](),_0x1bf927['isCollapsed']||'$graveyard'==_0x1bf927['root']['rootName']||this['_addSuggestionMarker'](_0x35f2d8,_0x39da69,_0x3d7893,_0x1bf927,u['getMultiRangeId']());return _0x11c93e;}['markAttributeChange'](_0x34211a,_0x1aa392,_0x4f70f6,_0x12b99a,_0x2db021){if(_0x34211a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x24d625=this['editor']['plugins']['get']('Users')['me']['id'],_0x110a2c=Array['from'](this['_suggestions']['values']())['filter'](_0x58fc3b=>'attribute'==_0x58fc3b['type']&&_0x58fc3b['data']['key']==_0x1aa392&&_0x58fc3b['isIntersectingWithRange'](_0x34211a));if('default'===this['_trackFormatChanges']){const _0x312cc8=this['_findSuggestions'](_0x34211a,'insertion')['filter'](({meta:_0x5d40fa})=>_0x5d40fa['isOwn']&&!_0x5d40fa['isInsideObject']&&!_0x5d40fa['isNextTo'])['map'](({suggestion:_0x195fe8})=>_0x195fe8);_0x110a2c['unshift'](..._0x312cc8);}const _0x1ce96a=new Map([[_0x34211a,_0x4f70f6]]);for(const _0x105db1 of _0x110a2c){const _0x1182d0='attribute'==_0x105db1['type']?_0x105db1['data']['oldValue']:void 0x0,_0x55815a=_0x105db1['getFirstRange'](),_0x37af74=Array['from'](_0x1ce96a['keys']())['find'](_0x3611c9=>_0x3611c9['isIntersecting'](_0x55815a));if(!_0x37af74)continue;const _0x301f7d=_0x37af74['getDifference'](_0x55815a);this['_isBlockAttribute'](_0x1aa392)&&'insertion'==_0x105db1['type']&&0x0!=_0x301f7d['length']||(_0x1ce96a['delete'](_0x37af74),_0x301f7d['forEach'](_0x55646f=>{_0x1ce96a['set'](_0x55646f,_0x4f70f6);}),'insertion'!=_0x105db1['type']&&_0x1182d0!=_0x12b99a&&_0x1ce96a['set'](_0x37af74['getIntersection'](_0x55815a),_0x1182d0));}const _0x7bbad5=[];for(const [_0x58aa50,_0x50796d]of _0x1ce96a){const _0x5b4af8=_0x425cf6(),_0x49ed9c={'key':_0x1aa392,'oldValue':_0x50796d,'newValue':_0x12b99a};_0x1aa392['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':_0x1aa392});const _0x54f79b=('attribute:'+(_0x1aa392+'|'+Gt({'newValue':_0x12b99a})))['substring'](0x0,0x3c),_0x39b57e=this['_setSuggestionData']({'id':_0x5b4af8,'type':_0x54f79b,'data':_0x49ed9c,'createdAt':new Date(),'authorId':_0x24d625,'attributes':_0x2db021});_0x7bbad5['push'](_0x39b57e),this['_addSuggestionMarker'](_0x54f79b,_0x5b4af8,_0x24d625,_0x58aa50);}return _0x7bbad5;}['enableDefaultAttributesIntegration'](_0x1b3626){this['enableCommand'](_0x1b3626,(_0x348ccc,..._0x278bfb)=>{this['_recordAttributeChanges'](()=>{_0x348ccc(..._0x278bfb);});});}['registerBlockAttribute'](_0x4eb447){this['_blockAttributeKeys']['add'](_0x4eb447);}['registerInlineAttribute'](_0x250084){this['_inlineAttributeKeys']['add'](_0x250084);}['_getAttributeKey'](_0x16139e){return'attribute'==_0x16139e['type']?_0x16139e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2cab15,_0x8b914b){const _0x2d7095=_0x2cab15['getFirstMarker']();this['_model']['change'](_0x224ead=>{_0x224ead['updateMarker'](_0x2d7095,{'range':_0x8b914b});});}['_addThreadToSuggestion'](_0x5b2b5f){const _0x872b14=_0x5b2b5f['id'],_0x92fba6=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x872b14)||this['_commentsRepository']['addCommentThread']({'channelId':_0x92fba6,'threadId':_0x872b14,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2a211c=this['_commentsRepository']['getCommentThread'](_0x872b14);_0x2a211c['unbind']('isRemovable'),_0x2a211c['isRemovable']=!0x1,_0x5b2b5f['commentThread']=_0x2a211c;}['_checkSuggestionCorrectness'](_0xcd59ac,_0x3b6bca,_0x26702a,_0x48be09){if(_0xcd59ac['type']!=_0x3b6bca||_0xcd59ac['subType']!=_0x26702a||_0xcd59ac['creator']['id']!=_0x48be09)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x8f85e0('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x44ee00,_0x27f56a){const _0x2b207e=_0x44ee00['getFirstRange']();if(_0x27f56a['isEqual'](_0x2b207e))_0x44ee00['removeMarkers']();else{if(_0x2b207e['containsRange'](_0x27f56a)){const _0xc0cca=this['_model']['createPositionAt'](_0x27f56a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x2b207e['start'],_0xc0cca));const _0x190021=_0x425cf6(),_0x56ac24=_0x44ee00['creator']['id'],_0x23a2f2=_0x44ee00['type']+':'+_0x44ee00['subType'];this['_setSuggestionData']({'id':_0x190021,'type':_0x23a2f2,'createdAt':new Date(),'authorId':_0x56ac24,'data':_0x44ee00['data'],'attributes':_0x44ee00['attributes']});const _0x3bd2ca=this['_model']['createPositionAt'](_0x27f56a['end']['parent'],'after'),_0x1f82ec=this['_model']['createRange'](_0x3bd2ca,_0x2b207e['end']);this['_addSuggestionMarker'](_0x23a2f2,_0x190021,_0x56ac24,_0x1f82ec);}else{if(_0x2b207e['containsPosition'](_0x27f56a['start'])){const _0x593f52=this['_model']['createPositionAt'](_0x27f56a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x2b207e['start'],_0x593f52));}else{const _0x59b022=this['_model']['createPositionAt'](_0x27f56a['end']['parent'],'after');this['_setSuggestionRange'](_0x44ee00,this['_model']['createRange'](_0x59b022,_0x2b207e['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4db931){for(const {suggestion:_0x44f3d4,meta:_0x578be5}of this['_findSuggestions'](_0x4db931,'insertion')){if(!_0x578be5['isOwn'])continue;const _0x2fad43=_0x44f3d4['getRanges']();for(const _0x2b3c38 of _0x2fad43)if(!_0x4db931['getDifference'](_0x2b3c38)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xb1dfb3){const _0x8c6ed=this['editor']['plugins']['get']('Users')['getUser'](_0xb1dfb3);if(!_0x8c6ed)throw new _0x8f85e0('track-changes-user-not-found',this);return _0x8c6ed;}['_getExternalAuthor'](_0x5f595a){const _0x186a60=this['editor']['plugins']['get']('Users'),_0x4768ad=_0x3aa329('external:'+_0x5f595a),_0x593894=_0x186a60['getUser'](_0x4768ad);return _0x593894||_0x186a60['addUser']({'id':_0x4768ad,'name':_0x5f595a});}['_createSuggestion'](_0x488003,_0x368f1d,_0x2b1b58,_0x4b230d,_0x3f0218){const _0x2ecfa3=this['_getAuthorFromId'](_0x4b230d),_0xac9d1c=this['_suggestionFactory']['buildSuggestion'](_0x488003,_0x368f1d,_0x2b1b58,_0x2ecfa3,_0x3f0218,_0x23bb9a=>{this['_updateSuggestionData'](_0x2b1b58,{'attributes':_0x23bb9a});const _0x3523b4=this['getSuggestion'](_0x2b1b58);this['_joinWithAdjacentSuggestions'](new Set([_0x3523b4])),this['_refreshSuggestionsChain'](new Set([_0x3523b4]));});return this['listenTo'](_0xac9d1c,'accept',()=>{this['_updateSuggestionData'](_0x2b1b58,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xac9d1c,'discard',()=>{this['_updateSuggestionData'](_0x2b1b58,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2b1b58,_0xac9d1c),this['_suggestionState']['set'](_0xac9d1c,'notReady'),_0xac9d1c;}['_splitMarkerName'](_0x1f7d87){const _0x50d91a=_0x1f7d87['split'](':');return{'group':_0x50d91a[0x0],'type':_0x50d91a[0x1],'subType':_0x50d91a['length']>=0x5?_0x50d91a[0x2]:null,'id':_0x50d91a['length']<0x5?_0x50d91a[0x2]:_0x50d91a[0x3],'authorId':_0x50d91a['length']<0x5?_0x50d91a[0x3]:_0x50d91a[0x4],'markerCount':0x6==_0x50d91a['length']?_0x50d91a[0x5]:null};}['_breakSuggestionMarker'](_0x1cccd4,_0x2b14bd,_0x19f3f8){const _0x41ac3d=_0x1cccd4['getFirstRange'](),_0x2aea40=_0x41ac3d['start'],_0xb19b1a=_0x41ac3d['end'];this['_setSuggestionRange'](_0x1cccd4,this['_model']['createRange'](_0x2aea40,_0x2b14bd));const _0x5e68de=_0x425cf6(),_0xf62a1=_0x1cccd4['creator']['id'],_0x3fc13b=_0x1cccd4['type']+(_0x1cccd4['subType']?':'+_0x1cccd4['subType']:'');this['_setSuggestionData']({'id':_0x5e68de,'type':_0x3fc13b,'createdAt':new Date(),'authorId':_0xf62a1,'originalSuggestionId':_0x1cccd4['id'],'attributes':_0x1cccd4['attributes'],'data':_0x1cccd4['data']});const _0x94a266=this['_getAttributeKey'](_0x1cccd4);('formatBlock'==_0x1cccd4['type']||_0x94a266&&this['_isBlockAttribute'](_0x94a266))&&(_0x19f3f8=this['_model']['createPositionBefore'](_0x19f3f8['parent'])),this['_addSuggestionMarker'](_0x3fc13b,_0x5e68de,_0xf62a1,this['_model']['createRange'](_0x19f3f8,_0xb19b1a));}['_findSuggestions'](_0x19d782,_0x287d78=null){const _0xee87f9=[],_0x571b9e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x19d782)||(_0x19d782=[_0x19d782]);for(const _0xd62746 of this['getSuggestions']()){if(!_0xd62746['isInContent'])continue;if(_0x287d78&&_0xd62746['type']!=_0x287d78)continue;let _0x3f55a7=!0x1;for(const _0x6cad86 of _0xd62746['getRanges']()){for(const _0x6d4a60 of _0x19d782){const _0x5506b5=_0x6d4a60['start']['isEqual'](_0x6cad86['end'])||_0x6d4a60['end']['isEqual'](_0x6cad86['start']);if(_0x5506b5||_0x6d4a60['getIntersection'](_0x6cad86)){const _0x18b253=_0x6d4a60['containsRange'](_0x6cad86)&&Ut(this['_model']['schema'],_0x6cad86['start'],_0x6d4a60),_0x10ec03=_0x6cad86['containsRange'](_0x6d4a60)&&Ut(this['_model']['schema'],_0x6d4a60['start'],_0x6cad86);_0xee87f9['push']({'suggestion':_0xd62746,'meta':{'isOwn':_0x571b9e==_0xd62746['author'],'isNextTo':_0x5506b5,'isInsideObject':_0x18b253,'containsRangeInObject':_0x10ec03}}),_0x3f55a7=!0x0;break;}}if(_0x3f55a7)break;}}return _0xee87f9;}['_addSuggestionMarker'](_0x5e5848,_0x2a6203,_0x3d3a54,_0x4f7756,_0x480c06){this['_model']['change'](_0x3e1d60=>{let _0x2db3cf='suggestion:'+_0x5e5848+':'+_0x2a6203+':'+_0x3d3a54;_0x480c06&&(_0x2db3cf=_0x2db3cf+':'+_0x480c06),_0x3e1d60['addMarker'](_0x2db3cf,{'range':_0x4f7756,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1f3cb3){const _0x3e4c16=_0x1f3cb3['previous'],_0x375c77=_0x1f3cb3['next'];_0x1f3cb3['previous']=null,_0x1f3cb3['next']=null,null!=_0x3e4c16&&_0x3e4c16['next']==_0x1f3cb3&&(_0x3e4c16['next']=_0x375c77),null!=_0x375c77&&_0x375c77['previous']==_0x1f3cb3&&(_0x375c77['previous']=_0x3e4c16),'ready'==this['_suggestionState']['get'](_0x1f3cb3)&&(this['_suggestionState']['set'](_0x1f3cb3,'removed'),this['fire']('suggestionUnloaded',_0x1f3cb3,_0x3e4c16,_0x375c77));}['_setSuggestionData'](_0x31fe92){const _0x4d951f=_0x31fe92['id'],_0x58a4bd=this['addSuggestionData'](_0x31fe92);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x11b9bb=this['editor']['plugins']['get']('PendingActions'),_0x45088b=_0x58a4bd['hasComments'],_0x43562a=_0x58a4bd['subType']?_0x58a4bd['type']+':'+_0x58a4bd['subType']:_0x58a4bd['type'],_0x1c4b84=this['editor']['locale'],_0x220a17=_0x11b9bb['add'](o(_0x1c4b84,'PENDING_ACTION_SUGGESTION')),_0x459998={'id':_0x4d951f,'type':_0x43562a,'hasComments':_0x45088b,'data':_0x31fe92['data']||null,'originalSuggestionId':_0x31fe92['originalSuggestionId']||null,'attributes':_0x58a4bd['attributes']};this['_adapter']['addSuggestion'](_0x459998)['then'](_0x6b77a4=>{_0x58a4bd['_saved']=!0x0,_0x11b9bb['remove'](_0x220a17),_0x6b77a4&&_0x6b77a4['createdAt']&&(this['_suggestions']['get'](_0x4d951f)['createdAt']=_0x6b77a4['createdAt']);})['catch'](_0x2fd35a=>{throw _0x28fa34('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x58a4bd['discard']();}),_0x58a4bd['stopListening'](),this['_suggestions']['delete'](_0x58a4bd['id']),this['_suggestionState']['delete'](_0x58a4bd),_0x2fd35a;});}return _0x58a4bd;}['_isBlockAttribute'](_0x412469){return this['_blockAttributeKeys']['has'](_0x412469);}['_updateSuggestionData'](_0x1373fe,_0x5d2e51){const _0x224062=this['editor']['plugins']['get']('PendingActions'),_0x24e770=this['getSuggestion'](_0x1373fe);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x24e770['_saved']){const _0x8b29f5=_0x224062['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x1373fe,_0x5d2e51)['then'](()=>{_0x224062['remove'](_0x8b29f5);});}else _0x24e770['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x1373fe,_0x5d2e51);});}}['_getSuggestionData'](_0x179cf0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x8f85e0('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x179cf0);}['_handleNewSuggestionMarker'](_0x5d8cfd){const {id:_0x4d7656,type:_0x4c6e69,subType:_0x3357b5,authorId:_0x1678b5}=this['_splitMarkerName'](_0x5d8cfd),_0x2fcef9=this['_suggestions']['get'](_0x4d7656)||this['_createSuggestion'](_0x4c6e69,_0x3357b5,_0x4d7656,_0x1678b5,{});switch(this['_checkSuggestionCorrectness'](_0x2fcef9,_0x4c6e69,_0x3357b5,_0x1678b5),this['_suggestionState']['get'](_0x2fcef9)){case'notReady':this['_getSuggestionData'](_0x4d7656)['then'](_0x15122b=>{let _0x108220=Promise['resolve']();_0x15122b['hasComments']&&(_0x108220=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x4d7656})),_0x108220['then'](()=>{this['addSuggestionData'](_0x15122b)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2fcef9,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x4d7656,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2fcef9,'ready'),this['fire']('suggestionLoaded',_0x2fcef9);break;case'ready':this['fire']('suggestionChanged',_0x2fcef9);}return _0x2fcef9['addMarkerName'](_0x5d8cfd),_0x2fcef9;}['_refreshSuggestionsChain'](_0x366794){const _0x1c6681=Array['from'](_0x366794),_0x32b106=_0x1c6681['filter'](_0x22e907=>'attribute'==_0x22e907['type']);this['_refreshAttributeSuggestionsChain'](_0x32b106);const _0x10f713=_0x1c6681['filter'](_0x3813e9=>!_0x3813e9['isMultiRange']&&'attribute'!=_0x3813e9['type']),_0x40c385=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2683e3=>!_0x2683e3['isMultiRange']&&'attribute'!=_0x2683e3['type']),_0x5d2362=_0x40c385['filter'](_0x4d216a=>!_0x366794['has'](_0x4d216a)),_0x6c6047=new Map(_0x40c385['map'](_0x18b5d7=>[_0x18b5d7,this['_suggestionFactory']['getSuggestionCallback'](_0x18b5d7['type'],_0x18b5d7['subType'],'chain')])),_0x1c7c5a=new Map(_0x40c385['map'](_0x4695a7=>[_0x4695a7,_0x4695a7['getFirstRange']()])),_0x2a0678=new Set(),_0x49b44f=new Set();for(let _0x41d4b1=0x0;_0x41d4b1<_0x10f713['length'];_0x41d4b1++)_0x5a0814(_0x10f713[_0x41d4b1],_0x10f713,_0x41d4b1+0x1);for(let _0x49f1b1=0x0;_0x49f1b1<_0x10f713['length'];_0x49f1b1++)_0x5a0814(_0x10f713[_0x49f1b1],_0x5d2362,0x0);const _0x5c1cf9=new Set();for(let _0x58ecd9=0x0;_0x58ecd9<_0x10f713['length'];_0x58ecd9++){const _0x5552b9=_0x10f713[_0x58ecd9];!_0x49b44f['has'](_0x5552b9)&&_0x5552b9['previous']&&(_0x5c1cf9['add'](_0x5552b9['previous']),_0x5552b9['previous']['next']===_0x5552b9&&(_0x5552b9['previous']['next']=null),_0x5552b9['previous']=null),!_0x2a0678['has'](_0x5552b9)&&_0x5552b9['next']&&(_0x5c1cf9['add'](_0x5552b9['next']),_0x5552b9['next']['previous']===_0x5552b9&&(_0x5552b9['next']['previous']=null),_0x5552b9['next']=null);}function _0x5a0814(_0x5af9e8,_0x40ab86,_0x380c37){for(let _0x5d8a12=_0x380c37;_0x5d8a12<_0x40ab86['length'];_0x5d8a12++){const _0x20815c=_0x118bf2(_0x5af9e8,_0x40ab86[_0x5d8a12]);_0x20815c&&(_0x20815c[0x0]['next']=_0x20815c[0x1],_0x20815c[0x1]['previous']=_0x20815c[0x0],_0x2a0678['add'](_0x20815c[0x0]),_0x49b44f['add'](_0x20815c[0x1]));}}function _0x118bf2(_0x2c2657,_0x19ed86){if(_0x2c2657['author']['id']!==_0x19ed86['author']['id'])return null;const _0x4af657=_0x6c6047['get'](_0x2c2657)(_0x2c2657,_0x19ed86,_0x1c7c5a['get'](_0x2c2657),_0x1c7c5a['get'](_0x19ed86));if(!_0x4af657)return null;return _0x6c6047['get'](_0x19ed86)(_0x2c2657,_0x19ed86,_0x1c7c5a['get'](_0x2c2657),_0x1c7c5a['get'](_0x19ed86))?_0x4af657[0x1]['commentThread']&&_0x4af657[0x1]['commentThread']['length']?null:_0x4af657:null;}_0x5c1cf9['size']&&this['_refreshSuggestionsChain'](_0x5c1cf9);}['_refreshAttributeSuggestionsChain'](_0x5ae477){if(0x0==_0x5ae477['length'])return;const _0x11426f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1906e6=>'attribute'==_0x1906e6['type']&&_0x1906e6['_isDataLoaded']),_0xacbbca=[],_0x121b55=new Map();for(const _0x3d197f of _0x11426f){const _0x52e0b0=_0x3aa329(_0x3d197f['attributes']);_0x121b55['has'](_0x52e0b0)||(_0x121b55['set'](_0x52e0b0,_0xacbbca['length']),_0xacbbca['push']([]));const _0x43654d=_0x121b55['get'](_0x52e0b0);_0xacbbca[_0x43654d]['push'](_0x3d197f);}!(function(){_0xacbbca['sort']((_0x1a4a17,_0x1bdd65)=>{const _0xff9332=_0x1a4a17[0x0]['createdAt'],_0x1eca26=_0x1bdd65[0x0]['createdAt'];return _0xff9332==_0x1eca26?_0x1a4a17[0x0]['attributes']['groupId']<_0x1bdd65[0x0]['attributes']['groupId']?-0x1:0x1:_0xff9332<_0x1eca26?-0x1:0x1;});for(const _0x43dca5 of _0xacbbca)_0x43dca5['sort']((_0x47dd95,_0x4116c9)=>_0x47dd95['id']<_0x4116c9['id']?-0x1:0x1);}());for(let _0x1f86aa=0x0;_0x1f86aa<_0xacbbca['length'];_0x1f86aa++){if(0x0==_0xacbbca[_0x1f86aa]['length'])continue;const _0x3882f9=[];for(let _0x417e68=_0x1f86aa+0x1;_0x417e68<_0xacbbca['length'];_0x417e68++)0x0!=_0xacbbca[_0x417e68]['length']&&_0x4959fe(_0xacbbca[_0x1f86aa],_0xacbbca[_0x417e68])&&_0x3882f9['push'](_0x417e68);for(const _0x5e9f6a of _0x3882f9)_0xacbbca[_0x1f86aa]=_0xacbbca[_0x1f86aa]['concat'](_0xacbbca[_0x5e9f6a]),_0xacbbca[_0x5e9f6a]=[];}for(const _0x3b7b94 of _0xacbbca)for(let _0x3aeb6a=0x0;_0x3aeb6a<_0x3b7b94['length'];_0x3aeb6a++){const _0x1bff87=_0x3b7b94[_0x3aeb6a+0x1]||null;_0x3b7b94[_0x3aeb6a]['next']!==_0x1bff87&&(_0x3b7b94[_0x3aeb6a]['next']=_0x1bff87);}for(const _0x2cb62b of _0xacbbca)for(let _0x4b2934=0x0;_0x4b2934<_0x2cb62b['length'];_0x4b2934++){const _0x4e95d3=_0x2cb62b[_0x4b2934-0x1]||null;_0x2cb62b[_0x4b2934]['previous']!==_0x4e95d3&&(_0x2cb62b[_0x4b2934]['previous']=_0x4e95d3);}function _0x4959fe(_0x3a4105,_0xe4d554){if(_0x3a4105[0x0]['attributes']['groupId']!==_0xe4d554[0x0]['attributes']['groupId']&&_0x3a4105[0x0]['author']!==_0xe4d554[0x0]['author'])return!0x1;if(!function(_0x524b43,_0x2db449){if(!_0x524b43['hasComments']&&!_0x2db449['hasComments'])return!0x0;if(_0x524b43['hasComments']&&_0x2db449['hasComments'])return!0x1;if(_0x524b43['hasComments']&&_0x2db449['createdAt']<_0x524b43['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x2db449['hasComments']&&_0x524b43['createdAt']<_0x2db449['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3a4105[0x0],_0xe4d554[0x0]))return!0x1;const _0x2384ab=xt(_0x3a4105[0x0]['attributes'],'groupId'),_0x2cdadb=xt(_0xe4d554[0x0]['attributes'],'groupId');if(!_0x189bdb(_0x2384ab,_0x2cdadb))return!0x1;return!!_0x3a4105['every'](_0x68a650=>_0xe4d554['some'](_0x15897f=>_0x68a650['getFirstRange']()['isEqual'](_0x15897f['getFirstRange']())))&&_0xe4d554['every'](_0x475d66=>_0x3a4105['some'](_0x572fbf=>_0x475d66['getFirstRange']()['isEqual'](_0x572fbf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x230a15){const _0x1bd16e=Array['from'](_0x230a15),_0x3edb43=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2eaca0=_0x3edb43['filter'](_0x59c107=>!_0x230a15['has'](_0x59c107)),_0x1ec0d5=new Map(_0x1bd16e['map'](_0x45ea77=>[_0x45ea77,this['_suggestionFactory']['getSuggestionCallback'](_0x45ea77['type'],_0x45ea77['subType'],'join')])),_0x3a0593=new Map(_0x3edb43['map'](_0x248566=>[_0x248566,_0x248566['getRanges']()]));for(let _0x57fe0c=0x0;_0x57fe0c<_0x1bd16e['length'];_0x57fe0c++){if(_0x5b67c8(this,_0x1bd16e[_0x57fe0c],_0x1bd16e,_0x57fe0c+0x1))return!0x0;}for(let _0x2c8fa1=0x0;_0x2c8fa1<_0x1bd16e['length'];_0x2c8fa1++){if(_0x5b67c8(this,_0x1bd16e[_0x2c8fa1],_0x2eaca0,0x0))return!0x0;}return!0x1;function _0x5b67c8(_0xb98e78,_0xd3fe46,_0x50d7fd,_0x4ef0f8){for(let _0x3bf6b3=_0x4ef0f8;_0x3bf6b3<_0x50d7fd['length'];_0x3bf6b3++){const _0x3224e5=_0x50d7fd[_0x3bf6b3];if(_0x3224e5['type']!==_0xd3fe46['type']||_0x3224e5['author']['id']!==_0xd3fe46['author']['id']||_0x3224e5['subType']!==_0xd3fe46['subType'])continue;if(!qt(_0xd3fe46,_0x3224e5))continue;if('attribute'==_0xd3fe46['type']&&_0xd3fe46['data']['oldValue']!=_0x3224e5['data']['oldValue'])continue;if('attribute'==_0xd3fe46['type']&&_0xb98e78['_isBlockAttribute'](_0xd3fe46['data']['key']))continue;if('formatBlock'==_0xd3fe46['type']){const _0x1a3c66=_0xb98e78['editor']['model'],_0x17946f=_0xd3fe46['getContainedElement']();if(_0x17946f&&(_0x1a3c66['schema']['isObject'](_0x17946f)||_0x1a3c66['schema']['isLimit'](_0x17946f)))continue;}const _0x59d881=_0x1ec0d5['get'](_0xd3fe46),_0x5ca447=_0x3a0593['get'](_0xd3fe46),_0x27470d=_0x3a0593['get'](_0x3224e5),_0x4aff3e=_0xd3fe46['commentThread']&&_0xd3fe46['commentThread']['length'],_0x25b709=_0x3224e5['commentThread']&&_0x3224e5['commentThread']['length'];if(!_0x4aff3e&&_0x59d881(_0x27470d,_0x5ca447))return _0xb98e78['_joinSuggestions'](_0x3224e5,_0xd3fe46),_0x3a0593['delete'](_0xd3fe46),!0x0;if(!_0x25b709&&_0x59d881(_0x5ca447,_0x27470d))return _0xb98e78['_joinSuggestions'](_0xd3fe46,_0x3224e5),_0x3a0593['delete'](_0x3224e5),!0x0;}return!0x1;}}['_joinSuggestions'](_0x16850e,_0x524f08){if(_0x16850e['isMultiRange']){for(const _0x43c43f of _0x524f08['getRanges']())_0x16850e['addRange'](_0x43c43f);}else{const _0x422d23=_0x524f08['getFirstRange']()['end'];this['_setSuggestionRange'](_0x16850e,this['_model']['createRange'](_0x16850e['getFirstRange']()['start'],_0x422d23));}_0x524f08['removeMarkers']();}['_getMarkerAnnouncementText'](_0x4a7c1f,_0x4f4fd5,_0x826be5){const _0x43783a=_0x4a7c1f['startsWith']('format')||_0x4a7c1f['startsWith']('attribute')?'FORMATTING':_0x4a7c1f['toUpperCase']();return o(this['editor']['locale'],_0x4f4fd5+'_'+_0x43783a+'_SUGGESTION_ANNOUNCEMENT',_0x826be5);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fc451=this['editor'];if(!_0x4fc451['ui'])return;const {ariaLiveAnnouncer:_0x2425c6}=_0x4fc451['ui'];_0x3efab9(this['_model'],({left:_0x3dd844,entered:_0x257e0f})=>{for(const _0x48b666 of _0x3dd844){const {group:_0x8afe91,type:_0xd89a56}=this['_splitMarkerName'](_0x48b666['name']);if('suggestion'===_0x8afe91){_0x2425c6['announce'](this['_getMarkerAnnouncementText'](_0xd89a56,'LEAVE'));break;}}for(const _0x597952 of _0x257e0f){const {group:_0x2b7234,type:_0x47459e}=this['_splitMarkerName'](_0x597952['name']);if('suggestion'===_0x2b7234){_0x2425c6['announce'](this['_getMarkerAnnouncementText'](_0x47459e,'ENTER',_0x5ec991(_0x46dbe4)));break;}}});}['_processAttributeChanges'](_0x552d48){if(this['_recordAttributeSuggestions'])return!0x1;const _0xe441=this['editor'],_0x22e8bd=_0xe441['model']['document']['differ']['getChanges']();if(0x0==_0x22e8bd['length'])return!0x1;const _0x4e2d4e=[],_0x39ead0=_0x22e8bd['filter'](_0x3bdb83=>'attribute'==_0x3bdb83['type']),_0x552eac=_0x22e8bd['filter'](_0x31cad9=>'insert'==_0x31cad9['type']&&'$text'!=_0x31cad9['name']),_0x1b9758=_0x22e8bd['filter'](_0x294b35=>'remove'==_0x294b35['type']&&'$text'!=_0x294b35['name']);for(const _0xd3bcd3 of _0x39ead0)_0x4e2d4e['push']({'key':_0xd3bcd3['attributeKey'],'newValue':_0xd3bcd3['attributeNewValue'],'oldValue':_0xd3bcd3['attributeOldValue'],'range':Lt(_0xd3bcd3['range'],_0xe441['model'])});for(const _0x38fb6a of _0x552eac){const _0x3bea16=_0x1b9758['find'](_0x455c55=>_0x455c55['position']['isEqual'](_0x38fb6a['position']));_0x3bea16&&_0x4e2d4e['push']({'key':m,'newValue':_0x38fb6a['name'],'oldValue':_0x3bea16['name'],'range':_0xe441['model']['createRangeOn'](_0x38fb6a['position']['nodeAfter'])});}return 0x0!=_0x4e2d4e['length']&&this['_reduceExistingSuggestions'](_0x552d48,_0x4e2d4e);}['_processAttributeSuggestions'](_0x2b5fd3){let _0x1be54b=!0x1;const _0x13f5b2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2ebd76=>_0x2ebd76['data']['newRange']&&_0x2ebd76['name']['startsWith']('suggestion:attribute:'));for(const _0x190979 of _0x13f5b2){const {subType:_0x5e31bb,id:_0xbec9db}=this['_splitMarkerName'](_0x190979['name']),_0x4a7723=_0x5e31bb['split']('|')[0x0];for(const _0x27ee56 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x27ee56['id']!=_0xbec9db&&'attribute'==_0x27ee56['type']&&_0x27ee56['data']&&_0x27ee56['data']['key']==_0x4a7723&&_0x27ee56['getFirstRange']()['isIntersecting'](_0x190979['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x27ee56,_0x190979['data']['newRange'],_0x2b5fd3),_0x1be54b=!0x0);}return _0x1be54b;}['_recordAttributeChanges'](_0x54bb6b){this['_recordAttributeSuggestions']=!0x0,_0x54bb6b();}['_isRegisteredAttribute'](_0x15d86c){const _0x23ada7=this['_isBlockAttribute'](_0x15d86c),_0x543782=this['_inlineAttributeKeys']['has'](_0x15d86c);return _0x23ada7||_0x543782;}['_reduceExistingSuggestions'](_0x45d332,_0x5a2d56){if(0x0==_0x5a2d56['length'])return!0x1;let _0x4fd3d6=!0x1;for(const _0x1fda25 of _0x5a2d56){const _0x42813a=this['_findSuggestions'](_0x1fda25['range'],'attribute')['filter'](_0x1d1a26=>!_0x1d1a26['meta']['isNextTo'])['map'](_0x2e3ed9=>_0x2e3ed9['suggestion']),_0x2ece19=_0x3aa329({'newValue':_0x1fda25['newValue']});_0x42813a['filter'](_0x48447b=>{const [_0x2c8c99,_0x14c214]=_0x48447b['subType']['split']('|');return _0x2c8c99==_0x1fda25['key']&&_0x14c214!=_0x2ece19;})['forEach'](_0x522ead=>{this['_reduceSuggestionAttributeRange'](_0x522ead,_0x1fda25['range'],_0x45d332),_0x4fd3d6=!0x0;});}return _0x4fd3d6;}['_reduceSuggestionAttributeRange'](_0xc0036e,_0x51c3e3,_0x53ed16){const _0xce3129=_0xc0036e['getFirstRange']()['getDifference'](_0x51c3e3);0x0!==_0xce3129['length']?0x1!==_0xce3129['length']?this['_breakSuggestionMarker'](_0xc0036e,_0x51c3e3['start'],_0x51c3e3['end']):this['_setSuggestionRange'](_0xc0036e,_0xce3129[0x0]):_0x53ed16['removeMarker'](_0xc0036e['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x71c2eb){this['_editor']=_0x71c2eb,this['_model']=_0x71c2eb['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x23443d,_0x4e4ae2,_0xa19503,_0x46c17a,_0x42a856,_0x17c469){return new u(this['_model'],{'type':_0x23443d,'subType':_0x4e4ae2,'id':_0xa19503,'author':_0x46c17a,'creator':_0x46c17a,'attributes':_0x42a856,'onAttributesChange':_0x17c469,'onAccept':(..._0x1739db)=>this['getSuggestionCallback'](_0x23443d,_0x4e4ae2,'accept')(..._0x1739db),'onDiscard':(..._0x30c2cf)=>this['getSuggestionCallback'](_0x23443d,_0x4e4ae2,'discard')(..._0x30c2cf)});}['registerCustomCallback'](_0xb5a25d,_0x12297c,_0x5ec6c7,_0x263555){const _0x1d484a=_0xb5a25d+':'+_0x12297c+':'+_0x5ec6c7;this['_customCallbacks']['set'](_0x1d484a,_0x263555);}['getSuggestionCallback'](_0x49c14e,_0xda13be,_0x4febc0){const _0x386a24=_0x49c14e+':'+_0xda13be+':'+_0x4febc0;return this['_customCallbacks']['get'](_0x386a24)||this['_defaultCallbacks']['get'](_0x49c14e+':'+_0x4febc0);}['_registerDefaultCallbacks'](){const _0x26eaaa=()=>!0x1,_0x52a767=_0x17dfcc=>{_0x17dfcc['sort']((_0x4c347f,_0x1e44c8)=>_0x4c347f['start']['isBefore'](_0x1e44c8['start'])?0x1:-0x1),this['_model']['change'](_0x5d50d7=>{for(const _0x35e034 of _0x17dfcc){let _0xb988bb;_0xb988bb=_0x35e034['end']['isAtEnd']&&_0x35e034['end']['parent']==_0x35e034['start']['nodeAfter']?_0x5d50d7['createSelection'](_0x35e034['start']['nodeAfter'],'on'):_0x5d50d7['createSelection'](_0x35e034),this['_model']['deleteContent'](_0xb988bb,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4f77e8=(_0x3b97be,_0x5d20b1)=>{_0x5d20b1&&this['_model']['change'](_0x25348f=>{const {commandName:_0x15a3fd,commandParams:_0x35599a=[]}=_0x5d20b1,_0x537a03=_0x3b97be['map'](_0x259139=>(Vt(_0x259139)&&(_0x259139=this['_model']['createRange'](_0x259139['end'])),_0x259139))['filter'](_0x2808a8=>'$graveyard'!==_0x2808a8['root']['rootName']);if(_0x537a03['length']<0x1)return;const _0x426fb3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x256ead=>_0x5103d1['fromRange'](_0x256ead));_0x25348f['setSelection'](_0x537a03);for(const _0x21089d of this['_editor']['commands']['commands']())_0x21089d['refresh']();_0x35599a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x15a3fd,..._0x35599a);const _0x3a1df8=_0x426fb3['filter'](_0x50e48a=>'$graveyard'!=_0x50e48a['root']['rootName']);_0x3a1df8['length']>0x0&&_0x25348f['setSelection'](_0x3a1df8);for(const _0x17d911 of _0x426fb3)_0x17d911['detach']();});},_0x501636=(_0x57dcc5,_0x1a38be)=>0x1==_0x57dcc5['length']&&0x1==_0x1a38be['length']&&_0x57dcc5[0x0]['end']['isEqual'](_0x1a38be[0x0]['start']),_0xcfc224=(_0x519aa2,_0xf9f2c3,_0x587de5,_0x39cb7e)=>Ht(_0x519aa2,_0xf9f2c3,_0x587de5,_0x39cb7e)?[_0x519aa2,_0xf9f2c3]:Ht(_0xf9f2c3,_0x519aa2,_0x39cb7e,_0x587de5)?[_0xf9f2c3,_0x519aa2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x26eaaa),this['_defaultCallbacks']['set']('insertion:discard',_0x52a767),this['_defaultCallbacks']['set']('insertion:join',_0x501636),this['_defaultCallbacks']['set']('insertion:chain',_0xcfc224),this['_defaultCallbacks']['set']('deletion:accept',_0x52a767),this['_defaultCallbacks']['set']('deletion:discard',_0x26eaaa),this['_defaultCallbacks']['set']('deletion:join',_0x501636),this['_defaultCallbacks']['set']('deletion:chain',_0xcfc224),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f77e8),this['_defaultCallbacks']['set']('formatInline:discard',_0x26eaaa),this['_defaultCallbacks']['set']('formatInline:join',_0x501636),this['_defaultCallbacks']['set']('formatInline:chain',_0x26eaaa),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f77e8),this['_defaultCallbacks']['set']('formatBlock:discard',_0x26eaaa),this['_defaultCallbacks']['set']('formatBlock:join',_0x501636),this['_defaultCallbacks']['set']('formatBlock:chain',_0x26eaaa),this['_defaultCallbacks']['set']('attribute:accept',_0x26eaaa),this['_defaultCallbacks']['set']('attribute:discard',(_0x442dd6,_0x4ba1ed)=>{if(!_0x4ba1ed)return;const _0x3c8d3f=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x488f9a=>{if(_0x4ba1ed['key']==m)for(const _0x3ac014 of _0x442dd6){const _0x14f083=_0x3ac014['start']['nodeAfter'],_0x22b18d=_0x4ba1ed['oldValue'];_0x488f9a['rename'](_0x14f083,_0x22b18d);}else{if(_0x3c8d3f['_isBlockAttribute'](_0x4ba1ed['key'])){for(const _0x3b985b of _0x442dd6)void 0x0!==_0x4ba1ed['oldValue']?_0x488f9a['setAttribute'](_0x4ba1ed['key'],_0x4ba1ed['oldValue'],_0x3b985b['start']['nodeAfter']):_0x488f9a['removeAttribute'](_0x4ba1ed['key'],_0x3b985b['start']['nodeAfter']);}else{for(const _0x592948 of _0x442dd6)_0x4ba1ed['oldValue']?_0x488f9a['setAttribute'](_0x4ba1ed['key'],_0x4ba1ed['oldValue'],_0x592948):_0x488f9a['removeAttribute'](_0x4ba1ed['key'],_0x592948);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x501636);}}function Ut(_0x393c82,_0x29bdff,_0x1b9518){for(const _0x24e4e1 of _0x29bdff['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x24e4e1['root']==_0x24e4e1)return!0x1;if(!_0x1b9518['containsItem'](_0x24e4e1))return!0x1;if(_0x393c82['isObject'](_0x24e4e1)||_0x393c82['isLimit'](_0x24e4e1))return!0x0;}return!0x1;}function Vt(_0x115c04){return _0x115c04['end']['parent']==_0x115c04['start']['nodeAfter']&&_0x115c04['end']['isAtStart'];}function Pt(_0x3c7e9c,_0x2720d9,_0x59633c,_0x3ac441){const _0x4d38f2=_0x4e27e3=>!_0x4e27e3['item']['is']('$textProxy')&&!_0x3ac441['isObject'](_0x4e27e3['item']),_0xf1cbb8=_0x3c7e9c['start']['getLastMatchingPosition'](_0x4d38f2),_0x467339=_0x3c7e9c['end']['getLastMatchingPosition'](_0x4d38f2,{'direction':'backward'});return(!_0x3c7e9c['start']['isEqual'](_0xf1cbb8)||!_0x3c7e9c['end']['isEqual'](_0x467339))&&(_0xf1cbb8['isBefore'](_0x467339)?_0x59633c['updateMarker'](_0x2720d9,{'range':_0x59633c['createRange'](_0xf1cbb8,_0x467339)}):_0x59633c['removeMarker'](_0x2720d9),!0x0);}function Gt(_0x82c1a2){return _0x3aa329(_0x82c1a2);}function Ft(_0x50ded6){const _0x1e43d2=_0x50ded6['start']['nodeAfter'];return _0x1e43d2&&_0x1e43d2['is']('element');}function Lt(_0x445bf9,_0x1c1395){return null==_0x445bf9['end']['nodeBefore']&&_0x445bf9['end']['parent']==_0x445bf9['start']['nodeAfter']?Jt(_0x445bf9['start']['nodeAfter'],_0x1c1395):_0x445bf9;}function Jt(_0x155811,_0x56da3c){const _0x2be251=_0x56da3c['schema']['isObject'](_0x155811)||_0x56da3c['schema']['isSelectable'](_0x155811);return _0x56da3c['createRange'](_0x56da3c['createPositionAt'](_0x155811,'before'),_0x2be251?_0x56da3c['createPositionAfter'](_0x155811):_0x56da3c['createPositionAt'](_0x155811,'end'));}function Ht(_0x13d8d1,_0x3ad453,_0x1811aa,_0x5f0a37){return!!qt(_0x13d8d1,_0x3ad453)&&_0x1811aa['end']['isEqual'](_0x5f0a37['start']);}function qt(_0x1d44e9,_0x140c4e){if(!_0x1d44e9['_isDataLoaded']||!_0x140c4e['_isDataLoaded'])return!0x1;const _0xe5d781=new Set(Object['keys'](_0x1d44e9['attributes'])),_0x42b6a9=new Set(Object['keys'](_0x140c4e['attributes']));if(_0xe5d781['delete']('groupId'),_0x42b6a9['delete']('groupId'),0x0==_0xe5d781['size']&&0x0==_0x42b6a9['size'])return!0x0;if(_0xe5d781['size']!=_0x42b6a9['size'])return!0x1;const _0x17b936={..._0x1d44e9['attributes']},_0x6712e0={..._0x140c4e['attributes']};return delete _0x17b936['groupId'],delete _0x6712e0['groupId'],JSON['stringify'](_0x17b936)==JSON['stringify'](_0x6712e0);}function zt(_0x1fcaa8,_0x1be890){const _0x2ee8d7=Kt(_0x1fcaa8['attributes']),_0x5a9509=Kt(_0x1be890);if(!_0x1fcaa8['_isDataLoaded'])return!0x1;for(const _0x324ff0 of Object['keys'](_0x5a9509))if(!_0x189bdb(_0x2ee8d7[_0x324ff0],_0x5a9509[_0x324ff0]))return!0x1;return!0x0;}function Kt(_0x478eed){const _0x15e200=Object['assign']({},_0x478eed);return delete _0x15e200['skipNestingCheck'],delete _0x15e200['tablePasteChainId'],_0x15e200;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x17df49(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1a0ca4,_0x25b518,_0x2aba7a,_0x4bc3a3){super(),this['model']=_0x25b518,this['view']=_0x2aba7a,this['commentThreadController']=_0x4bc3a3,this['_editor']=_0x1a0ca4,this['_acceptCommand']=_0x1a0ca4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1a0ca4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xb1f43b,_0xdf1686)=>_0xb1f43b||_0xdf1686),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x9fec0d=>_0x9fec0d&&this['_editor']['model']['canEditAt'](_0x25b518['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x15bfbd=>_0x15bfbd&&this['_editor']['model']['canEditAt'](_0x25b518['getRanges']())),this['_pendingAction']=null,_0x2aba7a['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2aba7a,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2aba7a,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2aba7a,'change:isDirty',()=>{_0x2aba7a['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 _0xaec7c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0xaec7c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x40ff7d{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xffd090,_0x51fe90,_0xf9a28a,_0x3804aa){super(_0xffd090),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x39d50d(_0xffd090,o(_0xffd090,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x51fe90['authoredAt']),this['bind']('authoredAt')['to'](_0x51fe90),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',_0x51fe90,'authoredAt',this,'descriptionParts',(_0x9661e0,_0x158a08,_0x3394cb)=>{const _0x1d01bd=_0x3394cb['map'](_0x4fe949=>ns(_0x4fe949['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x9661e0-0x1,_0x51fe90['author']['name'],_0x158a08?_0x3804aa['formatDateTime'](_0x158a08):'',new DOMParser()['parseFromString'](_0x1d01bd,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5ba192(),this['focusTracker']=new _0x3b7a61(),this['keystrokes']=new _0x3b9ae0(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x5349c0=>_0x5349c0['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x51fe90,this['_localUser']=_0xf9a28a,this['_config']=_0x3804aa,_0x3804aa['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x933eaf(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3772a2}=this['_config'];this['commentsListView']=new _0x3772a2(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',_0x5f1422=>_0x5f1422+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1840b0,_0x45ba5e)=>_0x1840b0||!!_0x45ba5e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4431f7}=this['_config'],_0x43466f=new _0x4431f7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x533145=_0x43466f['commentInputView'];return _0x43466f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x533145,'value',(_0x130833,_0x555590,_0xbaf1ab)=>!!_0xbaf1ab||_0x130833&&!_0x555590),_0x533145['on']('submit',(_0x3d627b,_0x2c57cb)=>{this['fire']('addComment',_0x2c57cb),_0x533145['editor']['setData']('');}),_0x533145['on']('cancel',()=>this['focus']()),_0x533145['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x43466f;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x1862d9,_0x35ecdb,_0x85bc0e,_0x433fdf){super(_0x1862d9,_0x35ecdb,_0x85bc0e,_0x433fdf),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2b7252=>_0x2b7252&&_0x2b7252[0x0]?_0x2b7252[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1e2979,_0x3ff77b)=>{let _0x4a48e7='';for(const _0x373615 of _0x1e2979)_0x4a48e7+='<p>'+ns(_0x373615['content'],_0x373615['color'])+'</p>';return _0x3ff77b?_0x4a48e7:ti(_0x4a48e7,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x433fdf['SuggestionView'](_0x1862d9,_0x35ecdb,{'formatDateTime':_0x433fdf['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 _0x48d00d=this['bindTemplate'],_0x41d16b=[this['suggestionView']];return this['commentsListView']&&_0x41d16b['push'](this['commentsListView']),this['commentThreadInputView']&&_0x41d16b['push'](this['commentThreadInputView']),_0x41d16b['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x48d00d['if']('isActive','ck-suggestion-wrapper--active'),_0x48d00d['to']('type',_0x1aff5e=>'ck-suggestion-'+_0x1aff5e),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':_0x48d00d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x41d16b};}['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 _0x40ff7d{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4f8978,_0x52b9ab,_0x171b0a){super(_0x4f8978),this['_model']=_0x52b9ab,this['_config']=_0x171b0a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x52b9ab),this['acceptButton']=this['_createButton'](o(_0x4f8978,'Accept\x20suggestion'),_0x43d26d['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4f8978,'Discard\x20suggestion'),_0x43d26d['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xdf1a50(_0x4f8978,_0x52b9ab['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5ba192([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x3b7a61(),this['keystrokes']=new _0x3b9ae0(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x20d92b=>_0x20d92b['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3a94c3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3a94c3['innerHTML']=this['description'],this['on']('change:description',(_0x1ed852,_0x5d4bcc,_0x4dcaae)=>{_0x3a94c3['innerHTML']=_0x4dcaae;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x2a529a=this['bindTemplate'],_0x5863a4=[{'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':_0x2a529a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2a529a['to']('authoredAt',_0xe96b19=>this['_config']['formatDateTime'](_0xe96b19))}]}]},{'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']&&_0x5863a4['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':_0x5863a4}]};}['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'](_0x4f320b,_0x49af28,_0x29f35d,_0x1f3f3f,_0x2e899f){const _0x56f01f=new _0x146dcb(this['locale']);return _0x56f01f['set']({'label':_0x4f320b,'icon':_0x49af28,'tooltip':!0x0,'tooltipPosition':_0x2e899f}),_0x56f01f['extendTemplate']({'attributes':{'class':_0x29f35d}}),_0x56f01f['on']('execute',()=>{this['fire'](_0x1f3f3f,this['_model']['id']);}),_0x56f01f;}['_setupKeyboardNavigation'](){const _0x97492f=this['element'];this['keystrokes']['listenTo'](_0x97492f);for(const _0x195e60 of this['focusables'])this['focusTracker']['add'](_0x195e60['element']),this['keystrokes']['listenTo'](_0x195e60['element']);this['keystrokes']['set']('enter',(_0x25b657,_0x113a90)=>{_0x97492f===_0x25b657['target']&&(this['focusCycler']['focusFirst'](),_0x113a90());}),this['keystrokes']['set']('esc',(_0x20b9d1,_0x177c9f)=>{_0x97492f!==_0x20b9d1['target']&&(this['focus'](),_0x177c9f());});}}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 _0x24408b{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x21fc14,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1adbcc){super(_0x1adbcc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x463641=this['editor']['config'];_0x463641['define']('trackChanges.SuggestionThreadView',de),_0x463641['define']('trackChanges.SuggestionView',ue),_0x463641['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x463641['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x265636,_0x1c57c1){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x42cfcc,_0x2bc6e5]of this['_handleControllerBuffer']){const _0x23959a=this['_suggestionToController']['has'](_0x42cfcc);_0x23959a||_0x2bc6e5?_0x23959a&&_0x2bc6e5&&this['_destroyController'](_0x42cfcc):this['_initializeController'](_0x42cfcc);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x265636,_0x1c57c1);}['init'](){const _0x3797df=this['editor'],_0x440d0e=_0x3797df['plugins']['get']('TrackChangesEditing'),_0x267707=_0x3797df['plugins']['get']('Annotations'),_0x4c5b81=_0x3797df['plugins']['get']('EditorAnnotations'),_0x17cc53=_0x3797df['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4c5b81['addSourceCollector'](()=>{const _0x57124b=[];for(const [_0x5b0966,_0x45d43e]of Array['from'](this['_suggestionToController'])){const _0x30ea37=_0x5b0966['getAllAdjacentSuggestions'](),_0x20d3e6=[];for(const _0x9d277c of _0x30ea37){if(!_0x9d277c['isInContent'])continue;if(_0x9d277c['isMultiRange']){_0x20d3e6['push'](..._0x9d277c['getRanges']());continue;}const _0x347c9c=_0x9d277c['getFirstRange']();if(_0x20d3e6['length']>0x0){const _0x4eadc3=_0x20d3e6[0x0]['getJoined'](_0x347c9c);if(_0x4eadc3){_0x20d3e6[0x0]=_0x4eadc3;continue;}}_0x20d3e6['push'](_0x347c9c);}_0x57124b['push']([_0x45d43e['view'],_0x20d3e6]);}return _0x57124b;}),this['listenTo'](_0x440d0e,'suggestionLoaded',(_0x5b0250,_0x525d6d)=>{this['listenTo'](_0x525d6d,'change:previous',(_0x1ded51,_0x5ee26c,_0x4353c8,_0x5f1fa8)=>{_0x525d6d['isInContent']&&(null==_0x4353c8?(this['_updateController'](_0x5f1fa8['head']),this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x1)):(this['_updateController'](_0x4353c8['head']),null==_0x5f1fa8&&this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x0)));}),null!==_0x525d6d['previous']?this['_updateController'](_0x525d6d['head']):this['_handleSuggestionControllerDelayed'](_0x525d6d,!0x1);}),this['listenTo'](_0x440d0e,'suggestionUnloaded',(_0x187c37,_0x1c2f75,_0x15882b)=>{this['stopListening'](_0x1c2f75,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c2f75),this['_suggestionToController']['has'](_0x1c2f75)&&this['_destroyController'](_0x1c2f75),_0x15882b&&this['_updateController'](_0x15882b['head']);}),this['listenTo'](_0x440d0e,'suggestionChanged',(_0x466d2d,_0x2d5c99)=>{this['_updateController'](_0x2d5c99);}),this['listenTo'](_0x267707,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x17cc53,'addComment',(_0x49cbc9,{threadId:_0x35ac1f,isFromAdapter:_0x2e654b})=>{if(_0x2e654b||!_0x440d0e['hasSuggestion'](_0x35ac1f))return;const _0x394e5f=_0x440d0e['getSuggestion'](_0x35ac1f);this['_suggestionToController']['get'](_0x394e5f)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x13d115=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2c5c48;for(const _0x2e76a1 in _0x13d115){const _0x1de3a6=_0x2e76a1,_0x309936=_0x13d115[_0x1de3a6];if('trackChangesLicenseKeyValid'==_0x309936||'trackChangesLicenseKeyInvalid'==_0x309936||'trackChangesLicenseKeyExpired'==_0x309936||'trackChangesLicenseKeyDomainLimit'==_0x309936||'trackChangesLicenseKeyNotAllowed'==_0x309936||'trackChangesLicenseKeyEvaluationLimit'==_0x309936||'trackChangesLicenseKeyTrialLimit'==_0x309936||'trackChangesLicenseKeyDevelopmentLimit'==_0x309936||'trackChangesLicenseKeyUsageLimit'==_0x309936){delete _0x13d115[_0x1de3a6],_0x2c5c48=_0x309936,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2c5c48&&_0x13d115['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2c5c48&&_0x13d115['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2c5c48&&_0x13d115['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2c5c48&&_0x13d115['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0xdb949a=this['editor']['plugins']['get']('Annotations'),_0x1b2870=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d8178=Array['from'](_0xdb949a['activeAnnotations'],_0x16471d=>_0x16471d['innerView'])['filter'](_0x2501d3=>this['_viewToController']['has'](_0x2501d3)),_0x437287=[];for(const _0x588944 of _0x4d8178){const _0x522c6e=this['_viewToController']['get'](_0x588944)['model']['getAllAdjacentSuggestions']();_0x437287['push'](..._0x522c6e['reduce']((_0x1fc785,_0x4df1a9)=>[..._0x1fc785,..._0x4df1a9['getMarkerNames']()],[]));}_0x1b2870['activeMarkers']=_0x437287;}['_addUIComponentsToFactory'](){const _0xebc55c=this['editor'],_0x501fd8=_0xebc55c['locale'],_0x3cf686=o(_0x501fd8,'Track\x20changes'),_0x5ef0b4=new _0x109d00([{'type':'switchbutton','model':new _0x864a73({'withText':!0x0,'isToggleable':!0x0,'label':_0x3cf686,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x864a73({'withText':!0x0,'label':o(_0x501fd8,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x27423f of _0x5ef0b4)if(pe(_0x27423f)){const _0x16b99b=_0xebc55c['commands']['get'](_0x27423f['model']['commandName']);_0x27423f['model']['bind']('isOn','isEnabled')['to'](_0x16b99b,'value','isEnabled');}_0xebc55c['ui']['componentFactory']['add']('trackChanges',_0x1229c6=>this['_createToolbarButton'](_0x1229c6,_0x5ef0b4,_0x3cf686)),_0xebc55c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2d6406=>this['_createMenuBarMenu'](_0x2d6406,_0x5ef0b4,_0x3cf686));}['_createToolbarButton'](_0x5ad76e,_0x27141f,_0x57700f){const _0x4b5e77=_0x1547e8(_0x5ad76e,_0x4431e6),_0x29158a=this['editor']['commands']['get']('trackChanges');_0x4b5e77['buttonView']['set']({'tooltip':_0x57700f,'label':_0x57700f,'icon':Ce}),_0x4b5e77['buttonView']['bind']('isOn')['to'](_0x29158a,'value'),_0x4b5e77['buttonView']['on']('execute',()=>{_0x29158a['execute'](),this['editor']['editing']['view']['focus']();}),te(_0x4b5e77,_0x27141f,{'role':'menu'});const _0x3ed416=[];for(const _0x4c285e of _0x27141f)pe(_0x4c285e)&&_0x3ed416['push'](this['editor']['commands']['get'](_0x4c285e['model']['commandName']));const _0x3e84c4=_0x4b5e77['buttonView'];return _0x3e84c4['actionView']['unbind']('isEnabled'),_0x3e84c4['arrowView']['unbind']('isEnabled'),_0x3e84c4['actionView']['bind']('isEnabled')['to'](_0x29158a,'isEnabled'),_0x3e84c4['arrowView']['bind']('isEnabled')['toMany'](_0x3ed416,'isEnabled',(..._0x238654)=>_0x238654['some'](_0x874b0d=>_0x874b0d)),_0x4b5e77['on']('execute',_0xaead0c=>{this['editor']['execute'](_0xaead0c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4b5e77;}['_createMenuBarMenu'](_0x59481d,_0x2c837a,_0x85deff){const _0x5ccc5b=new _0x3107b(_0x59481d),_0x89f048=this['editor']['commands']['get']('trackChanges');_0x5ccc5b['buttonView']['set']({'label':_0x85deff,'icon':Ce});const _0x15f023=new _0x4f4449(_0x59481d);for(const _0x190df2 of _0x2c837a){if('separator'==_0x190df2['type']){_0x15f023['items']['add'](new _0x1f6633(_0x59481d));continue;}const _0x4c66e5=new _0x32a6b8(_0x59481d,_0x5ccc5b),_0x5a09ef=new _0x18e15e(_0x59481d),_0x416d9e=_0x190df2['model'];_0x5a09ef['bind'](...Object['keys'](_0x416d9e))['to'](_0x416d9e),_0x5a09ef['delegate']('execute')['to'](_0x5ccc5b),_0x5a09ef['on']('execute',()=>{this['editor']['execute'](_0x416d9e['commandName']),this['editor']['editing']['view']['focus']();}),_0x4c66e5['children']['add'](_0x5a09ef),_0x15f023['items']['add'](_0x4c66e5);}return _0x5ccc5b['bind']('isEnabled')['to'](_0x89f048,'isEnabled'),_0x5ccc5b['panelView']['children']['add'](_0x15f023),_0x5ccc5b;}['_initializeController'](_0x2cf2b6){const _0x17cf1b=this['editor'],_0x4ed617=_0x17cf1b['config'],_0xb10811=_0x17cf1b['plugins']['get']('Annotations'),_0x427942=_0x17cf1b['plugins']['get']('CommentsRepository'),_0x401dd8=_0x17cf1b['plugins']['get']('EditorAnnotations'),_0x57a41=_0x17cf1b['plugins']['get'](_0x21fc14)['me'],_0x3a9e53=_0x4ed617['get']('trackChanges')['SuggestionThreadView'],_0x226240=_0x4ed617['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x3f9702,CommentThreadInputView:_0x244b14}=_0x17cf1b['plugins']['get']('CommentsUI');let _0x5a5a38,_0xa94de8,_0x2a0e91;this['_annotationViews']['has'](_0x2cf2b6['id'])?(_0xa94de8=this['_annotationViews']['get'](_0x2cf2b6['id']),_0x5a5a38=_0xa94de8['mainView']):(_0x5a5a38=new _0x3a9e53(_0x17cf1b['locale'],_0x2cf2b6,_0x57a41,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ed617['get']('comments.editorConfig'),'licenseKey':_0x4ed617['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ed617['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ed617['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ed617['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23e6a6(_0x4ed617['get']('locale')),'CommentView':_0x4ed617['get']('comments')['CommentView'],'CommentsListView':_0x3f9702,'CommentThreadInputView':_0x244b14,'SuggestionView':_0x226240}),_0x5a5a38['suggestionView']['acceptButton']['on']('execute',()=>{_0x17cf1b['editing']['view']['focus']();}),_0x5a5a38['suggestionView']['discardButton']['on']('execute',()=>{_0x17cf1b['editing']['view']['focus']();}),_0xa94de8=_0xb10811['createAnnotationView'](this['editor']['locale'],_0x5a5a38),_0xa94de8['bind']('isDirty')['to'](_0x5a5a38,'isDirty'),_0xa94de8['bind']('length')['to'](_0x5a5a38),_0xa94de8['bind']('type')['to'](_0x5a5a38,'type',_0x374c71=>'suggestion-'+_0x374c71),_0x5a5a38['on']('escape',()=>{_0x2a0e91['fire']('escape');}),this['_annotationViews']['set'](_0x2cf2b6['id'],_0xa94de8));const _0x1456e3=_0x427942['createCommentThreadController'](_0x2cf2b6['commentThread'],_0x5a5a38),_0x42dd31=new ge(_0x17cf1b,_0x2cf2b6,_0x5a5a38,_0x1456e3),_0x402666=_0x2cf2b6['getAllAdjacentSuggestions']()['filter'](_0x12715a=>_0x12715a['isInContent']);_0x5a5a38['descriptionParts']=_0x17cf1b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x402666),this['_suggestionToController']['set'](_0x2cf2b6,_0x42dd31),this['_viewToController']['set'](_0x5a5a38,_0x42dd31),_0x2a0e91=_0xb10811['createAnnotation']({'view':_0xa94de8,'target':()=>{const _0x2789e5=[],_0x363e67=_0x2cf2b6['getAllAdjacentSuggestions']()['filter'](_0x34dacd=>_0x34dacd['isInContent']);for(const _0x16292e of _0x363e67)_0x2789e5['push'](..._0x16292e['getMarkers']());return _0x3e695b(_0x17cf1b['editing'],_0x2789e5);},'type':()=>'suggestion-'+_0x42dd31['view']['type']}),_0x427942['_bindAnnotationToEditors'](_0x5a5a38,_0x2a0e91),_0xb10811['add'](_0x2a0e91),_0x401dd8['registerAnnotation'](_0x2a0e91);}['_destroyController'](_0x48d837){const _0x3c9bf8=this['editor']['plugins']['get']('CommentsRepository'),_0x5501e0=this['editor']['plugins']['get']('Annotations'),_0x52ffbb=this['_suggestionToController']['get'](_0x48d837),_0x5c22be=_0x52ffbb['view'],_0x3e0f7c=_0x5501e0['getByInnerView'](_0x5c22be);_0x3c9bf8['_unbindEditors'](_0x5c22be),_0x3e0f7c&&_0x5501e0['remove'](_0x3e0f7c),this['_suggestionToController']['delete'](_0x48d837),this['_viewToController']['delete'](_0x5c22be),_0x52ffbb['destroy']();}['_updateController'](_0x532582){if(!_0x532582['isInContent']||!this['_suggestionToController']['has'](_0x532582))return;const _0x2578c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c2d78=this['_suggestionToController']['get'](_0x532582),_0x170854=_0x532582['getAllAdjacentSuggestions']();_0x4c2d78['view']['descriptionParts']=_0x2578c1['descriptionFactory']['getDescriptions'](_0x170854);}['destroy'](){for(const _0x2063a6 of this['_suggestionToController']['keys']())this['_destroyController'](_0x2063a6);for(const _0x75a2da of this['_annotationViews']['values']())_0x75a2da['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x21d591){return'model'in _0x21d591;}class k extends _0x24408b{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x395b96){this['editor']['plugins']['get'](p)['adapter']=_0x395b96;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x319ef2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x319ef2);}['getSuggestions']({skipNotAttached:_0x15ae98=!0x1,toJSON:_0x2db6da=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x15ae98,'toJSON':_0x2db6da});}['getSuggestion'](_0xfd13d7){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xfd13d7);}}const w=['Pagination'];class T extends _0x24408b{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3e6cea=this['editor'];if(_0x3e6cea['config']['define']('trackChangesData.editorCreator',_0x39f502=>{const _0x10ba44=_0x3e6cea['model']['document']['getRootNames']()['reduce']((_0x15a85a,_0x36ffa4)=>(_0x15a85a[_0x36ffa4]='',_0x15a85a),{});return _0x3e6cea['constructor']['create'](_0x10ba44,_0x39f502);}),'function'!=typeof _0x3e6cea['config']['get']('trackChangesData')['editorCreator'])throw new _0x8f85e0('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x414b3f){return N(this['editor'],!0x0,_0x414b3f);}['getDataWithDiscardedSuggestions'](_0x804a19){return N(this['editor'],!0x1,_0x804a19);}}class D extends _0x24408b{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x383522){function _0x53c895(_0x22e9be){return _0x22e9be['map'](_0xbd3dd4=>String['fromCharCode'](_0xbd3dd4))['join']('');}super(_0x383522),this['result']='end',_0x383522[_0x53c895([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53c895([0x76,0x69,0x65,0x77])][_0x53c895([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53c895([0x61,0x75,0x74,0x6f]),_0x383522[_0x53c895([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x53c895([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53c895([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x53c895([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x53c895([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(_0x5e3e2b){return void 0x0!==_0x5e3e2b['getRootsAttributes'];}async function N(_0x4539b1,_0x321c72,_0x39fc0b){const _0x5b71ff=_0x1fc5ea(_0x4539b1,w);_0x5b71ff['plugins']['push'](p,D),_0x5b71ff['rootsAttributes']=v(_0x4539b1)?_0x4539b1['getRootsAttributes']():void 0x0;const _0x302912=document['createDocumentFragment'](),_0x2061b7=_0x4539b1['config']['get']('trackChangesData')['editorCreator'],_0x5b0327=await _0x2061b7(_0x5b71ff,()=>function(_0x51b157){const _0x4a2929=document['createElement']('div');return _0x51b157['appendChild'](_0x4a2929),_0x4a2929;}(_0x302912));!function(_0xfce603,_0x65b464){const _0x1ea72=_0xfce603['model']['document']['getRootNames']()['reduce']((_0x1aa9ec,_0x55feae)=>(_0x1aa9ec[_0x55feae]=_0xfce603['data']['get']({'rootName':_0x55feae}),_0x1aa9ec),{}),_0x2534f3=_0xfce603['plugins']['get']('Users')['users']['map'](_0x11fe15=>({'id':_0x11fe15['id'],'name':_0x11fe15['name']})),_0x3b18c6=_0xfce603['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5477f6=_0xfce603['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2f52e6=_0x65b464['plugins']['get']('Users'),_0x3db7ab=_0x65b464['plugins']['get']('TrackChangesEditing'),_0x4faee4=_0x65b464['plugins']['get']('CommentsRepository');for(const _0x405b3a of _0x4faee4['getCommentThreads']())_0x405b3a['remove']();for(const _0x2c3fc of _0x2534f3)_0x2f52e6['getUser'](_0x2c3fc['id'])||_0x2f52e6['addUser'](_0x2c3fc);_0x2f52e6['me']||_0x2f52e6['useAnonymousUser']();for(const _0x5394b6 of _0x5477f6)_0x4faee4['addCommentThread'](_0x5394b6);for(const _0x244e52 of _0x3b18c6)_0x3db7ab['addSuggestionData'](_0x244e52);_0x65b464['data']['set'](_0x1ea72);}(_0x4539b1,_0x5b0327),_0x5b0327['execute'](_0x321c72?'acceptAllSuggestions':'discardAllSuggestions');const _0x200226=v(_0x5b0327)?_0x5b0327['getFullData'](_0x39fc0b):_0x5b0327['data']['get'](_0x39fc0b);return await _0x5b0327['destroy'](),_0x200226;}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 _0x36effd,PendingActions as _0x5272c3,icons as _0x3a4c83}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x417294,ObservableMixin as _0x15e8cb,uid as _0x24c9d1,insertToPriorityArray as _0x1256d2,priorities as _0x2414e4,logWarning as _0x36dfff,getEnvKeystrokeText as _0x151c11,FocusTracker as _0x8c0b4,KeystrokeHandler as _0x5c8a15,Collection as _0x43721b}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2993e0,View as _0x35d39a,ViewCollection as _0x2ce7a6,FocusCycler as ts,ViewModel as _0x2dcafd,createDropdown as _0x23fcfb,SplitButtonView as _0x2d3a72,addListToDropdown as te,MenuBarMenuView as _0x5581f3,MenuBarMenuListView as _0x2fbf78,ListSeparatorView as _0x2dc935,MenuBarMenuListItemView as _0x44e088,MenuBarMenuListItemButtonView as _0x3f72ce}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2926f4,hashObject as _0x4e7683,surroundingMarkersDetector as _0x525849,FOCUS_ANNOTATION_KEYSTROKE as _0x2f4b59,AriaDescriptionView as _0x4bce2d,setupThreadKeyboardNavigation as _0x2b6d12,trimHtml as ti,UserView as _0xfefcd7,LateFocusButtonView as _0x1aa869,getDateTimeFormatter as _0x2ea635,getAllMarkersDomElementsSorted as _0x50c7ec,sanitizeEditorConfig as _0x12b514}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x429143,LiveRange as _0x495739,LivePosition as _0x2bf754}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3c08f7,toWidget as _0x4deaff}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x26b2b3,set as _0x3595e1,isEqual as _0x3519c5,unset as _0x2f7a43,omit as xt}from'lodash-es';import{Delete as _0x396962,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x25c296,ShiftEnter as _0xa84f6b}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x2a4db2,_0x4db0fc){super(_0x2a4db2),this['_enabledCommands']=_0x4db0fc,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 _0x4f8b0f of this['editor']['commands']['commands']())_0x4f8b0f['affectsData']&&!this['_enabledCommands']['has'](_0x4f8b0f)&&_0x4f8b0f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x368466 of this['editor']['commands']['commands']())_0x368466['affectsData']&&!this['_enabledCommands']['has'](_0x368466)&&_0x368466['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x3ca75c,_0x16c9ee){super(_0x3ca75c),this['_suggestions']=_0x16c9ee,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f4a06){const _0x40dc5c=this['_suggestions']['get'](_0x3f4a06);if(!_0x40dc5c)throw new _0x417294('track-changes-accept-suggestion-not-found',this);const _0x14b162=_0x40dc5c['getRanges']();this['editor']['model']['canEditAt'](_0x14b162)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x40dc5c);}}class R extends Qt{['_suggestions'];constructor(_0x4e39b5,_0x57a52c){super(_0x4e39b5),this['_suggestions']=_0x57a52c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xe7b373){const _0xb79f8a=this['_suggestions']['get'](_0xe7b373);if(!_0xb79f8a)throw new _0x417294('track-changes-discard-suggestion-not-found',this);const _0x12e246=_0xb79f8a['getRanges']();this['editor']['model']['canEditAt'](_0x12e246)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xb79f8a);}}function ns(_0xa304e9,_0xed79e2){let _0x2a7b68='';return _0x2a7b68+=_0xa304e9['split']('*')['map']((_0xb8b511,_0x186b60)=>_0x186b60%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xb8b511)+'</span>':nn(_0xb8b511))['join'](''),_0xed79e2&&(_0x2a7b68+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xed79e2['value']+'\x22\x20title=\x22'+_0xed79e2['title']+'\x22></span>'),_0x2a7b68;}function nn(_0x23cd4e){const _0x5be7ea=document['createElement']('span');return _0x5be7ea['innerText']=_0x23cd4e,_0x5be7ea['innerHTML'];}function Wt(_0x44bbfc){return _0x44bbfc['sort']((_0x25b217,_0x134f6f)=>'deletion'==_0x25b217['type']&&'deletion'!=_0x134f6f['type']?-0x1:'deletion'!=_0x25b217['type']&&'deletion'==_0x134f6f['type']?0x1:0x0);}function to(_0x5618f1,_0x387ec5){let _0x4b2bfa,_0x4ab4ad=0x0;const _0x45217c=[],_0x3fb189=_0x387ec5['schema'];for(;_0x4ab4ad<_0x5618f1['length'];){const _0x35e006=_0x5618f1[_0x4ab4ad],_0x55bda4=_0x5618f1[_0x4ab4ad+0x1];_0x4b2bfa||(_0x4b2bfa=_0x387ec5['createPositionBefore'](_0x35e006)),on(_0x387ec5,_0x35e006,_0x55bda4)||(_0x45217c['push'](_0x387ec5['createRange'](_0x4b2bfa,_0x3fb189['isObject'](_0x35e006)?_0x387ec5['createPositionAfter'](_0x35e006):_0x387ec5['createPositionAt'](_0x35e006,'end'))),_0x4b2bfa=null),_0x4ab4ad++;}return _0x45217c;}function on(_0x185ced,_0x52a13d,_0x2ffc82){if(!_0x2ffc82)return!0x1;const _0x24dcea=_0x185ced['createPositionAfter'](_0x52a13d),_0x592c4c=_0x185ced['createPositionBefore'](_0x2ffc82);return _0x24dcea['isTouching'](_0x592c4c);}function Xt(_0x49e25f,_0xc40e84,_0x44bdc3){for(;_0x44bdc3['length'];){const _0x3b2b64=_0x44bdc3['splice'](0x0,0x64);_0x49e25f['change'](()=>{for(const _0x54290d of _0x3b2b64)_0x54290d['isInContent']&&_0xc40e84['execute'](_0x54290d['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x44bf20,_0x3a5cb4,_0x14a0fa){super(_0x44bf20),this['_command']=_0x3a5cb4,this['_suggestions']=_0x14a0fa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2ad30f=Array['from'](this['_suggestions']['values']())['some'](_0x196311=>_0x196311['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2ad30f;}['execute'](){const _0x26afec=Wt(Array['from'](this['_suggestions']['values']()));for(const _0x448496 of _0x26afec){const _0x5a67b2=_0x448496['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5a67b2))return;}Xt(this['editor']['model'],this['_command'],_0x26afec);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1d5a10,_0x2d452b,_0x15992b){super(_0x1d5a10),this['_command']=_0x2d452b,this['_suggestions']=_0x15992b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e1ad0=this['editor']['model']['document']['selection'],_0x18a0b9=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5303f7,_0x54fa4c){const _0x424512=Array['from'](_0x5303f7['getRanges']()),_0xa45d3f=new Set();for(const _0x1faf7a of _0x54fa4c)if(_0x1faf7a['isInContent']){for(const _0x1e5080 of _0x424512)for(const _0x118358 of _0x1faf7a['getRanges']())(_0x1e5080['isIntersecting'](_0x118358)||_0x5303f7['isCollapsed']&&!_0x1faf7a['isMultiRange']&&_0x1faf7a['next']&&_0x118358['end']['isTouching'](_0x1e5080['start']))&&_0xa45d3f['add'](_0x1faf7a);}return _0xa45d3f;}(_0x3e1ad0,_0x18a0b9),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x22a050=Wt(Array['from'](this['_selectedSuggestions']));for(const _0x31772e of _0x22a050){const _0x47d819=_0x31772e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x47d819))return;}Xt(this['editor']['model'],this['_command'],_0x22a050);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x15e8cb(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c053b,_0x1e03b3){super(),this['id']=_0x1e03b3['id'],this['type']=_0x1e03b3['type'],this['subType']=_0x1e03b3['subType']||null,this['author']=_0x1e03b3['author'],this['creator']=_0x1e03b3['creator']||_0x1e03b3['author'],this['isExternal']=Boolean(_0x1e03b3['attributes']&&_0x1e03b3['attributes']['@external']),this['data']=null,this['_model']=_0x4c053b,this['_onAccept']=_0x1e03b3['onAccept'],this['_onDiscard']=_0x1e03b3['onDiscard'],this['_onAttributesChange']=_0x1e03b3['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1e03b3['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 _0x4417a1=this;for(;_0x4417a1['previous'];)_0x4417a1=_0x4417a1['previous'];return _0x4417a1;}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'](_0x45bee2){this['_markerNames']['add'](_0x45bee2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3cf446=>this['_model']['markers']['get'](_0x3cf446))['filter'](_0x34affc=>_0x34affc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5991fd=>{for(const _0x44fd0d of this['getMarkers']())_0x5991fd['removeMarker'](_0x44fd0d);}),this['_markerNames']['clear']();}['removeMarker'](_0x58a829){this['_model']['change'](_0xbba908=>{_0xbba908['removeMarker'](_0x58a829);}),this['_markerNames']['delete'](_0x58a829);}['addRange'](_0x41be5e){const _0x44deca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x44deca),this['_model']['change'](_0x35d815=>{_0x35d815['addMarker'](_0x44deca,{'range':_0x41be5e,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x346863){for(const _0xdad41 of this['getRanges']())if(_0xdad41['isIntersecting'](_0x346863))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4b375d=>_0x4b375d['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x14f9a7,_0x4d77a4)=>[..._0x14f9a7,..._0x4d77a4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x13ac01=this['getRanges']();if(0x1!=_0x13ac01['length'])return null;const _0x2d0d42=_0x13ac01[0x0],_0x3d8a2d=_0x2d0d42['start']['nodeAfter'],_0x4f6a98=_0x2d0d42['end']['nodeBefore'];return _0x3d8a2d instanceof _0x429143?_0x3d8a2d!=_0x4f6a98?null:_0x3d8a2d: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 _0x326e85=[];let _0x3bc076=this['head'];for(;_0x3bc076;)_0x326e85['push'](_0x3bc076),_0x3bc076=_0x3bc076['next'];return _0x326e85;}['setAttribute'](_0x1e249c,_0x10f12e){const _0x83bc6f=_0x26b2b3(this['attributes']);_0x3595e1(_0x83bc6f,_0x1e249c,_0x10f12e),_0x3519c5(_0x83bc6f,this['attributes'])||(this['attributes']=_0x83bc6f,this['_onAttributesChange'](_0x83bc6f));}['removeAttribute'](_0x2119b3){const _0x5c0842=_0x26b2b3(this['attributes']);_0x2f7a43(_0x5c0842,_0x2119b3),_0x3519c5(_0x5c0842,this['attributes'])||(this['attributes']=_0x5c0842,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 _0x24c9d1()['substr'](0x1,0x5);}}function o(_0x5a1ff2,_0x48ffc3,_0x596388){const _0x31bc1d=_0x5a1ff2['t'],t=_0x5a1ff2['t'];switch(_0x48ffc3){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',_0x596388);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x596388);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x596388);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x596388);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x596388);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',_0x596388);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x596388);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',_0x596388);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x596388);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x596388);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x596388);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x596388);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x596388);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x596388);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x596388);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x596388);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x596388);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x596388);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x596388);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x596388);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x596388);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x596388);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x596388);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x596388);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'},_0x596388);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x596388);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x596388);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x596388);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x596388);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x596388);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'},_0x596388);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x596388);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x596388);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x596388);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x596388);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'},_0x596388);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x596388);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'},_0x596388);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'},_0x596388);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x596388);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'},_0x596388);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x596388);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'},_0x596388);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x596388);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x596388);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'},_0x596388);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x596388);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 _0x31bc1d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x596388);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31bc1d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x596388);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x596388);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'},_0x596388);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'},_0x596388);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'},_0x596388);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x48ffc3;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1f6d37,_0x5b3afd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1f6d37,this['_locale']=_0x5b3afd;}['getDescriptions'](_0x3ea5d3){const _0x525660=[],_0x5b7066=new Set(),_0x46aa84=new Set();for(let _0x1f5193=0x0;_0x1f5193<_0x3ea5d3['length'];_0x1f5193++){const _0x1e7004=_0x3ea5d3[_0x1f5193];if(!_0x1e7004['isInContent'])continue;const _0x10dad1=this['_handleCustomCallbackDescription'](_0x1e7004);if(_0x10dad1){if(null!=_0x1e7004['subType']){if(_0x5b7066['has'](_0x1e7004['subType']))continue;_0x5b7066['add'](_0x1e7004['subType']);}_0x525660['push'](_0x10dad1);}else{if('attribute'!=_0x1e7004['type'])'insertion'!=_0x1e7004['type']&&'deletion'!=_0x1e7004['type']||this['_handleInsertRemoveSuggestionDescription'](_0x525660,_0x1e7004,_0x3ea5d3[_0x1f5193+0x1]);else{const _0xffcbf4=_0x1e7004['data']['key'];if(_0x46aa84['has'](_0xffcbf4))continue;_0x46aa84['add'](_0x1e7004['data']['key']),_0xffcbf4==m?this['_handleRenameSuggestionDescription'](_0x525660,_0x1e7004):this['_handleAttributeSuggestionDescription'](_0x525660,_0x1e7004);}}}return this['_resolveDescriptionItems'](_0x525660);}['registerDescriptionCallback'](_0x405fc6){this['_customCallbacks']['push'](_0x405fc6);}['registerElementLabel'](_0x1abda8,_0x4ab116,_0x2c7534=_0x2414e4['normal']){'function'==typeof _0x1abda8?_0x1256d2(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1abda8,'label':_0x4ab116,'priority':_0x2c7534}):this['_itemLabels']['set'](_0x1abda8,_0x4ab116);}['registerAttributeLabel'](_0x37a496,_0x2b2d8b){this['_attributeLabels']['set'](_0x37a496,_0x2b2d8b);}['getItemLabel'](_0x3cd461,_0x237557=0x1){let _0x95834b;for(const _0x57ecd5 of this['_itemLabelsCallbacks'])if(_0x57ecd5['matchingCallback'](_0x3cd461)){_0x95834b=_0x57ecd5['label'];break;}return _0x95834b||(_0x95834b=this['_itemLabels']['get'](_0x3cd461['name'])),_0x95834b?_0x95834b(_0x237557):0x1!==_0x237557?_0x237557+'\x20'+_0x3cd461['name']+'s':''+_0x3cd461['name'];}['_addDescriptionItems'](_0x5404ac,_0x22b0e6){const _0x53a3e1=_0x22b0e6['getFirstRange']()['getWalker'](),_0x271971='insertion'==_0x22b0e6['type']?'add':'remove';for(const _0x33b544 of _0x53a3e1){const _0x563ac4=_0x33b544['item'],_0x10aa64=_0x5404ac[_0x5404ac['length']-0x1];if(_0x563ac4['is']('$textProxy'))_0x10aa64&&_0x10aa64['type']['indexOf']('Container')>-0x1&&_0x5404ac['pop'](),_0x10aa64&&'text'==_0x10aa64['type']?_0x10aa64[_0x271971]+=_0x563ac4['data']:_0x5404ac['push']({'type':'text','add':'add'==_0x271971?_0x563ac4['data']:'','remove':'remove'==_0x271971?_0x563ac4['data']:''});else{if(this['_schema']['isObject'](_0x563ac4)){const _0x951d31=_0x563ac4;if(_0x10aa64&&_0x10aa64['type']['indexOf']('Container')>-0x1&&_0x5404ac['pop'](),'elementEnd'==_0x33b544['type'])continue;_0x10aa64&&_0x10aa64['type']==_0x271971+'Object'&&_0x10aa64['element']['name']==_0x951d31['name']?_0x10aa64['quantity']++:_0x5404ac['push']({'type':_0x271971+'Object','element':_0x951d31,'quantity':0x1}),_0x53a3e1['skip'](_0x430ad1=>!('elementEnd'==_0x430ad1['type']&&_0x430ad1['item']==_0x563ac4));}else{if(this['_schema']['checkChild'](_0x563ac4,'$text')||_0x563ac4['is']('element','softBreak')){const _0x3e3224=_0x563ac4;if('add'==_0x271971&&'elementStart'==_0x33b544['type']||'remove'==_0x271971&&'elementEnd'==_0x33b544['type'])continue;if(_0x10aa64&&-0x1==_0x10aa64['type']['indexOf']('Container')){'text'==_0x10aa64['type']&&(_0x10aa64[_0x271971]+='\x0a');continue;}let _0x39db9e;if(_0x39db9e='add'==_0x271971?_0x3e3224['nextSibling']&&!this['_schema']['isObject'](_0x3e3224['nextSibling'])?_0x3e3224['nextSibling']:null:_0x3e3224['previousSibling']&&!this['_schema']['isObject'](_0x3e3224['previousSibling'])?_0x3e3224['previousSibling']:null,_0x3e3224['isEmpty']||_0x39db9e&&_0x39db9e['isEmpty']){const _0x224fde=_0x39db9e&&_0x39db9e['isEmpty']?_0x39db9e:_0x3e3224;_0x10aa64&&_0x10aa64['type']==_0x271971+'EmptyContainer'&&_0x10aa64['element']['name']==_0x224fde['name']?_0x10aa64['quantity']++:_0x5404ac['push']({'type':_0x271971+'EmptyContainer','element':_0x224fde,'quantity':0x1});}else _0x5404ac['push']({'type':_0x271971+'Container','element':_0x3e3224});}}}}}['_resolveDescriptionItems'](_0x128e9e){const _0x34553e=this['_locale'],_0x36b704=[],_0x4cc101=[],_0x765910=[];for(const _0xfb6464 of _0x128e9e)switch(_0xfb6464['type']){case'text':if(_0xfb6464['add']=_0xfb6464['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xfb6464['remove']=_0xfb6464['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xfb6464['add']&&''!=_0xfb6464['remove']){_0x36b704['push']({'type':'replace','content':o(_0x34553e,'REPLACE_TEXT',['\x22'+_0xfb6464['remove']+'\x22','\x22'+_0xfb6464['add']+'\x22'])});continue;}if(null!=_0xfb6464['add']['match'](/^ +$/)){_0x36b704['push']({'type':'insertion','content':o(_0x34553e,'*Insert:*\x20%0',o(_0x34553e,'ELEMENT_SPACE',_0xfb6464['add']['length']))});continue;}if(null!=_0xfb6464['remove']['match'](/^ +$/)){_0x36b704['push']({'type':'deletion','content':o(_0x34553e,'*Remove:*\x20%0',o(_0x34553e,'ELEMENT_SPACE',_0xfb6464['remove']['length']))});continue;}if(''!=_0xfb6464['add']){_0x36b704['push']({'type':'insertion','content':o(_0x34553e,'*Insert:*\x20%0','\x22'+_0xfb6464['add']+'\x22')});continue;}_0x36b704['push']({'type':'deletion','content':o(_0x34553e,'*Remove:*\x20%0','\x22'+_0xfb6464['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x36b704['push']({'type':'insertion','content':o(_0x34553e,'*Insert:*\x20%0',this['getItemLabel'](_0xfb6464['element'],_0xfb6464['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x36b704['push']({'type':'deletion','content':o(_0x34553e,'*Remove:*\x20%0',this['getItemLabel'](_0xfb6464['element'],_0xfb6464['quantity']))});continue;case'addContainer':_0x36b704['push']({'type':'insertion','content':o(_0x34553e,'*Split:*\x20%0',this['getItemLabel'](_0xfb6464['element'],_0xfb6464['quantity']))});continue;case'removeContainer':_0x36b704['push']({'type':'deletion','content':o(_0x34553e,'*Merge:*\x20%0',this['getItemLabel'](_0xfb6464['element'],_0xfb6464['quantity']))});continue;case'addFormat':_0x4cc101['push'](_0xfb6464['key']);continue;case'removeFormat':_0x765910['push'](_0xfb6464['key']);continue;default:_0x36b704['push'](_0xfb6464);}if(_0x4cc101['length']){const _0x19e17a=_0x4cc101['map'](_0x51ef96=>this['_attributeLabels']['has'](_0x51ef96)?this['_attributeLabels']['get'](_0x51ef96):_0x51ef96)['join'](',\x20');_0x36b704['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x19e17a)});}if(_0x765910['length']){const _0x32091c=_0x765910['map'](_0x1070ed=>this['_attributeLabels']['has'](_0x1070ed)?this['_attributeLabels']['get'](_0x1070ed):_0x1070ed)['join'](',\x20');_0x36b704['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x32091c)});}return _0x36b704;}['_handleCustomCallbackDescription'](_0x3f2ea7){for(const _0x441c24 of this['_customCallbacks']){const _0x4985bc=_0x441c24(_0x3f2ea7);if(_0x4985bc&&'type'in _0x4985bc)return _0x4985bc;}}['_handleAttributeSuggestionDescription'](_0x120fce,_0x2dd6d2){const _0x36d24c=_0x2dd6d2['data'],_0x1e0732=void 0x0===_0x36d24c['newValue']?'removeFormat':'addFormat';_0x120fce['push']({'type':_0x1e0732,'key':_0x36d24c['key']});}['_handleRenameSuggestionDescription'](_0x291417,_0x1714ad){_0x291417['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x1714ad['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x166816,_0x639596,_0x351b4a){if(this['_addDescriptionItems'](_0x166816,_0x639596),_0x351b4a&&_0x351b4a['getFirstRange']()&&!_0x639596['getFirstRange']()['end']['isEqual'](_0x351b4a['getFirstRange']()['start'])){const _0x43f4e3=_0x166816[_0x166816['length']-0x1],_0x3ea4ea='insertion'==_0x639596['type']?'add':'remove';_0x43f4e3&&'text'==_0x43f4e3['type']&&(_0x43f4e3[_0x3ea4ea]+='\x0a');}}}class U extends _0x36effd{['afterInit'](){const _0x5039d2=this['editor'],_0x361d84=_0x5039d2['plugins']['get']('TrackChangesEditing');_0x5039d2['commands']['get']('showAIAssistant')&&_0x361d84['enableCommand']('showAIAssistant');}}class V extends _0x36effd{['afterInit'](){const _0x2c8415=this['editor'],_0x488a7f=_0x2c8415['locale'];if(!_0x2c8415['plugins']['has']('AlignmentEditing'))return;const _0x42215=_0x2c8415['plugins']['get']('TrackChangesEditing');_0x42215['enableDefaultAttributesIntegration']('alignment'),_0x42215['registerBlockAttribute']('alignment'),_0x42215['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x488a7f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x232e97=this['editor'],_0x320977=_0x232e97['locale'];_0x232e97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5100e0=>{if('formatBlock'!=_0x5100e0['type'])return;const {data:_0x10b544}=_0x5100e0;if(_0x10b544&&'alignment'==_0x10b544['commandName']){const _0x2d5b4c=_0x10b544['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x320977,'*Format:*\x20%0',function(_0x5c33ba){switch(_0x5c33ba){case'left':return o(_0x320977,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x320977,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x320977,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x320977,'FORMAT_JUSTIFY_TEXT');}}(_0x2d5b4c))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x36effd{['afterInit'](){const _0x1620a2=this['editor'],_0x2cc69b=_0x1620a2['plugins']['get']('TrackChangesEditing'),_0x572561=_0x1620a2['locale'];for(const _0x2ffa72 of Zt){if(!_0x1620a2['plugins']['has'](_0x2ffa72))continue;const _0x3861e6=_0x2ffa72['slice'](0x0,-0x7)['toLowerCase'](),_0x403a63='FORMAT_'+_0x3861e6['toUpperCase']();_0x2cc69b['enableDefaultAttributesIntegration'](_0x3861e6),_0x2cc69b['registerInlineAttribute'](_0x3861e6),_0x2cc69b['descriptionFactory']['registerAttributeLabel'](_0x3861e6,o(_0x572561,_0x403a63));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c3eb=this['editor'],_0x5de8fb=_0x47c3eb['locale'],_0x2ff597=_0x47c3eb['plugins']['get']('TrackChangesEditing');function _0x3ce02d(_0x264e73,_0x295b92){_0x2ff597['descriptionFactory']['registerDescriptionCallback'](_0x2993de=>{if('formatInline'!=_0x2993de['type'])return;const {data:_0xf04e66}=_0x2993de;return _0xf04e66&&_0xf04e66['commandName']===_0x264e73?_0xf04e66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5de8fb,'*Format:*\x20%0',_0x295b92)}:{'type':'format','content':o(_0x5de8fb,'*Remove\x20format:*\x20%0',_0x295b92)}:void 0x0;});}_0x3ce02d('bold',o(_0x5de8fb,'FORMAT_BOLD')),_0x3ce02d('italic',o(_0x5de8fb,'FORMAT_ITALIC')),_0x3ce02d('underline',o(_0x5de8fb,'FORMAT_UNDERLINE')),_0x3ce02d('code',o(_0x5de8fb,'FORMAT_CODE')),_0x3ce02d('strikethrough',o(_0x5de8fb,'FORMAT_STRIKETHROUGH')),_0x3ce02d('subscript',o(_0x5de8fb,'FORMAT_SUBSCRIPT')),_0x3ce02d('superscript',o(_0x5de8fb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x36effd{['afterInit'](){const _0x354dcb=this['editor'],_0x38d903=_0x354dcb['locale'];if(!_0x354dcb['plugins']['has']('BlockQuoteEditing'))return;const _0xf40fc6=_0x354dcb['plugins']['get']('TrackChangesEditing'),_0x44b056=this['editor']['commands']['get']('blockQuote');_0xf40fc6['enableCommand']('blockQuote',(_0x103e23,_0x1482bc={})=>{const _0x142a29=this['editor']['model']['document']['selection'],_0x264f3a=_0x1482bc&&void 0x0!==_0x1482bc['forceValue']?_0x1482bc['forceValue']:!_0x44b056['value'];let _0x1c887a=[];if(_0x264f3a){const _0x50bf06=Array['from'](_0x142a29['getSelectedBlocks']())['filter'](_0x11f926=>oo(_0x11f926)||function(_0x431c27,_0x162695){const _0x291818=_0x162695['checkChild'](_0x431c27['parent'],'blockQuote'),_0x14e781=_0x162695['checkChild'](['$root','blockQuote'],_0x431c27);return _0x291818&&_0x14e781;}(_0x11f926,this['editor']['model']['schema']));_0x1c887a=to(_0x50bf06,_0x354dcb['model']);}else{const _0x387690=Array['from'](_0x142a29['getSelectedBlocks']())['filter'](_0x23a543=>oo(_0x23a543));_0x1c887a=to(_0x387690,_0x354dcb['model']);}_0x354dcb['model']['change'](()=>{for(const _0x342746 of _0x1c887a)_0xf40fc6['markBlockFormat'](_0x342746,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x264f3a}]});});}),_0xf40fc6['descriptionFactory']['registerDescriptionCallback'](_0x33367f=>{const {data:_0x155645}=_0x33367f;if(_0x155645&&'blockQuote'==_0x155645['commandName']){const _0xed0ca4=o(_0x38d903,'ELEMENT_BLOCK_QUOTE');return _0x155645['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x38d903,'*Set\x20format:*\x20%0',_0xed0ca4)}:{'type':'format','content':o(_0x38d903,'*Remove\x20format:*\x20%0',_0xed0ca4)};}});}}function oo(_0x5b20fd){return'blockQuote'==_0x5b20fd['parent']['name'];}class L extends _0x36effd{['afterInit'](){const _0xbdef40=this['editor'],_0x4a0f72=_0xbdef40['locale'],_0x1fdadb=_0xbdef40['plugins']['get']('TrackChangesEditing');_0xbdef40['plugins']['has']('BookmarkEditing')&&(_0x1fdadb['enableCommand']('insertBookmark'),_0x1fdadb['enableDefaultAttributesIntegration']('updateBookmark'),_0x1fdadb['registerBlockAttribute']('bookmarkId'),_0x1fdadb['descriptionFactory']['registerDescriptionCallback'](_0x140e87=>{if('insertion'!=_0x140e87['type']&&'deletion'!=_0x140e87['type']&&'attribute'!=_0x140e87['type'])return;const _0x49783b=_0x140e87['getContainedElement']();if(null==_0x49783b)return;if(!_0x49783b['is']('element','bookmark'))return;const _0x22c73f=_0x49783b['getAttribute']('bookmarkId');if('insertion'==_0x140e87['type'])return{'type':'insertion','content':o(_0x4a0f72,'*Insert:*\x20%0','\x22'+_0x22c73f+'\x22\x20'+o(_0x4a0f72,'ELEMENT_BOOKMARK'))};if('deletion'==_0x140e87['type'])return{'type':'deletion','content':o(_0x4a0f72,'*Remove:*\x20%0','\x22'+_0x22c73f+'\x22\x20'+o(_0x4a0f72,'ELEMENT_BOOKMARK'))};const {data:_0xf9c9e3}=_0x140e87;if(!_0xf9c9e3||'bookmarkId'!=_0xf9c9e3['key'])return;return{'type':'format','content':o(_0x4a0f72,'*Set\x20bookmark:*\x20%0','\x22'+_0xf9c9e3['newValue']+'\x22')};}));}}class J extends _0x36effd{['afterInit'](){const _0x2fb2ce=this['editor'];_0x2fb2ce['plugins']['has']('CaseChange')&&(_0x2fb2ce['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2fb2ce['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2fb2ce['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x36effd{['afterInit'](){const _0x5b9782=this['editor'];_0x5b9782['commands']['get']('ckbox')&&_0x5b9782['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x36effd{['afterInit'](){const _0x408d78=this['editor'];if(!_0x408d78['plugins']['has']('CodeBlock'))return;const _0x1ecfb7=_0x408d78['plugins']['get']('TrackChangesEditing'),_0x4479ed=_0x408d78['locale'],_0x5a0ab5=_0x408d78['config']['get']('codeBlock')['languages'],_0x35cd81=_0x408d78['commands']['get']('codeBlock');_0x1ecfb7['enableCommand']('indentCodeBlock'),_0x1ecfb7['enableCommand']('outdentCodeBlock'),_0x1ecfb7['enableCommand']('codeBlock',(_0x196aa2,_0x362802={})=>{const _0x16da95=_0x408d78['model'],_0x54b0b4=_0x408d78['model']['document']['selection'],_0x18a861=_0x362802&&void 0x0!==_0x362802['forceValue']?_0x362802['forceValue']:!_0x35cd81['value'];let _0x2f32d1;_0x362802['language']||(_0x362802['language']=_0x5a0ab5[0x0]['language']),_0x2f32d1=_0x18a861?Array['from'](_0x54b0b4['getSelectedBlocks']())['filter'](_0x1427f6=>eo(_0x1427f6)||function(_0x4900ca,_0x34210e){if(_0x4900ca['is']('rootElement')||_0x34210e['isLimit'](_0x4900ca))return!0x1;return _0x34210e['checkChild'](_0x4900ca['parent'],'codeBlock');}(_0x1427f6,_0x16da95['schema'])):Array['from'](_0x54b0b4['getSelectedBlocks']())['filter'](_0x30acc8=>eo(_0x30acc8));const _0x5c6018=to(_0x2f32d1,_0x16da95);_0x16da95['change'](()=>{for(const _0xcd44d4 of _0x5c6018)_0x1ecfb7['markBlockFormat'](_0xcd44d4,{'commandName':'codeBlock','commandParams':[{..._0x362802,'forceValue':_0x18a861}],'formatGroupId':'blockName'});});}),(_0x1ecfb7['descriptionFactory']['registerElementLabel']('codeBlock',_0x51c504=>o(_0x4479ed,'ELEMENT_CODE_BLOCK',_0x51c504)),_0x1ecfb7['descriptionFactory']['registerDescriptionCallback'](_0x18c668=>{if('formatBlock'!=_0x18c668['type'])return;const _0x139a6d=_0x4479ed['t'],{data:_0xdb390}=_0x18c668;if(!_0xdb390||'codeBlock'!=_0xdb390['commandName'])return;const _0x1c017a=_0xdb390['commandParams'][0x0]['language'],_0x554e54=_0x139a6d(_0x5a0ab5['find'](_0x3f7d5a=>_0x3f7d5a['language']===_0x1c017a)['label'])['toLowerCase']();return _0xdb390['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4479ed,'*Set\x20format:*\x20%0',o(_0x4479ed,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x554e54+')')}:{'type':'format','content':o(_0x4479ed,'*Remove\x20format:*\x20%0',o(_0x4479ed,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x44270d){return'codeBlock'==_0x44270d['name'];}class z extends _0x36effd{['afterInit'](){const _0x54875c=this['editor'];if(!_0x54875c['plugins']['has']('CommentsEditing'))return;_0x54875c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x25824f,_0xf838cf,_0x34dadc){const _0x96cb26=[];for(const _0x3d6916 of _0xf838cf['getItems']())_0x3d6916['hasAttribute'](_0x25824f)&&_0x96cb26['push'](_0x34dadc['createRangeOn'](_0x3d6916));return _0x96cb26;}function Ne(_0x53985f,_0x34d4d8,{showActiveMarker:_0x118526=!0x0}={}){const _0xf1f5c2=_0x53985f['plugins']['get']('TrackChangesEditing');return(_0x2005a2,_0x36d5c9,_0x2f88d1)=>{if(!_0x2f88d1['consumable']['test'](_0x36d5c9['markerRange'],_0x2005a2['name']))return;const _0x227aab=_0x36d5c9['markerRange']['getWalker'](),_0x33e153=_0x36d5c9['markerRange']['start'],_0x11e961=_0x53985f['model']['schema'];let _0x8e2d91=null,_0x830cdf=null,_0x1effe5=!0x1,_0x53f0e3=!0x1;for(const _0x5e5a6b of _0x227aab){const _0x5ec493=_0x5e5a6b['item'];_0x1effe5=_0x1effe5||_0x11e961['isContent'](_0x5ec493);const _0x5d92d3=_0x2f88d1['mapper']['toViewElement'](_0x5ec493);if(_0x5d92d3&&_0x5d92d3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e5a6b['type']&&(_0x11e961['isBlock'](_0x5ec493)&&!_0x11e961['isLimit'](_0x5ec493)&&(_0x5ec493['nextSibling']||_0x33e153['isAtEnd']?_0x8e2d91&&_0x8e2d91['parent']==_0x5ec493||(_0x8e2d91=_0x5ec493,_0x4fa22a(_0x5e5a6b['previousPosition']),_0x53f0e3=!0x0):_0x830cdf=_0x830cdf||_0x5e5a6b['previousPosition']));}function _0x4fa22a(_0x57697c){const {authorId:_0x235257}=_0xf1f5c2['_splitMarkerName'](_0x36d5c9['markerName']),_0x3fde57=_0x2f88d1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x34d4d8,'data-author-id':_0x235257}),_0x463f03=_0x2f88d1['mapper']['toViewPosition'](_0x57697c);_0x118526&&_0xf1f5c2['activeMarkers']['includes'](_0x36d5c9['markerName'])&&_0x2f88d1['writer']['addClass']('ck-suggestion-marker--active',_0x3fde57),_0x2f88d1['writer']['insert'](_0x463f03,_0x3fde57),_0x2f88d1['mapper']['bindElementToMarker'](_0x3fde57,_0x36d5c9['markerName']);}_0x1effe5||_0x53f0e3||!_0x830cdf||_0x4fa22a(_0x830cdf);};}class K extends _0x36effd{static get['requires'](){return[_0x396962];}['init'](){const _0x2b304d=this['editor'],_0x3ec5f7=_0x2b304d['plugins']['get']('TrackChangesEditing');_0x3ec5f7['enableCommand']('delete');const _0x41a614=_0x2b304d['commands']['get']('deleteForward');_0x3ec5f7['enableCommand']('deleteForward',(_0x52f3b0,_0xd6f121={})=>{const _0x59e33f=_0x2b304d['model']['createSelection'](_0x2b304d['model']['document']['selection']);_0x59e33f['isCollapsed']&&_0x2b304d['model']['modifySelection'](_0x59e33f,{'direction':'forward','unit':_0xd6f121['unit']});const _0x31074e=_0x59e33f['getFirstRange'](),_0x580458=_0x495739['fromRange'](_0x31074e);let _0x504eff;_0x52f3b0(_0xd6f121),_0x504eff='$graveyard'==_0x580458['root']['rootName']?_0x2b304d['model']['createRange'](_0x31074e['start']):_0x2b304d['model']['createRange'](_0x580458['start'],_0x580458['end']),_0x580458['detach'](),_0x2b304d['model']['enqueueChange'](_0x41a614['buffer']['batch'],_0x10d712=>{_0x41a614['buffer']['lock'](),_0x10d712['setSelection'](_0x10d712['createRange'](_0x504eff['end'])),_0x41a614['buffer']['unlock']();});}),_0x2b304d['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Ne(_0x2b304d,'merge'),{'priority':'high'}),_0x2b304d['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4feeda,_0x34bf4d,_0x2ce127)=>{_0x2ce127['options']['showSuggestionHighlights']&&Ne(_0x2b304d,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4feeda,_0x34bf4d,_0x2ce127);},{'priority':'high'}),_0x2b304d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x19f402,_0x488325,_0x24e259)=>{const _0x5a84b5=_0x24e259['mapper']['markerNameToElements'](_0x488325['markerName']);if(_0x5a84b5){for(const _0x19cd0a of _0x5a84b5)_0x19cd0a['is']('uiElement')&&(_0x24e259['mapper']['unbindElementFromMarkerName'](_0x19cd0a,_0x488325['markerName']),_0x24e259['writer']['remove'](_0x19cd0a));}},{'priority':'high'});}}class W extends _0x36effd{['afterInit'](){const _0x4107a1=this['editor'];if(!_0x4107a1['plugins']['has']('ListEditing'))return;const _0x4cc3d3=_0x4107a1['locale'],_0x345fde=_0x4107a1['plugins']['get']('TrackChangesEditing'),_0x24f72a=_0x4107a1['plugins']['has']('TodoListEditing'),_0x372ab0=!!_0x4107a1['config']['get']('list.multiBlock');function _0x19e3a5(_0x2e4334){return{'type':'format','content':''+o(_0x4cc3d3,'*Set\x20format:*\x20%0',_0x2e4334)};}function _0x49f184(_0x3f2ebe){return{'type':'format','content':''+o(_0x4cc3d3,'*Remove\x20format:*\x20%0',_0x3f2ebe)};}_0x345fde['enableDefaultAttributesIntegration']('numberedList'),_0x345fde['enableDefaultAttributesIntegration']('bulletedList'),_0x345fde['enableDefaultAttributesIntegration']('customNumberedList'),_0x345fde['enableDefaultAttributesIntegration']('customBulletedList'),_0x345fde['enableDefaultAttributesIntegration']('indentList'),_0x345fde['enableDefaultAttributesIntegration']('outdentList'),_0x345fde['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x345fde['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x345fde['registerBlockAttribute']('listItemId'),_0x345fde['registerBlockAttribute']('listType'),_0x345fde['registerBlockAttribute']('listIndent'),_0x372ab0&&(_0x345fde['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x345fde['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x24f72a&&(_0x345fde['enableDefaultAttributesIntegration']('todoList'),_0x345fde['enableDefaultAttributesIntegration']('checkTodoList'),_0x345fde['registerBlockAttribute']('todoListChecked'),_0x345fde['descriptionFactory']['registerDescriptionCallback'](_0x469bbf=>{const {data:_0x34fdf1}=_0x469bbf;if(_0x34fdf1&&'todoListChecked'==_0x34fdf1['key'])return{'type':'format','content':_0x34fdf1['newValue']?o(_0x4cc3d3,'*Check\x20item*'):o(_0x4cc3d3,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4ff5c4=>{if(_0x4ff5c4['batch']['isUndo'])return!0x1;let _0x577e55=!0x1;const _0xe41354=_0x345fde['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x219c29=>'todoListChecked'===_0x345fde['_getAttributeKey'](_0x219c29));for(const _0x440c4f of _0xe41354){'todo'!=_0x440c4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x345fde['_findSuggestions'](_0x440c4f['getFirstRange'](),'attribute')['find'](_0x14cbab=>'listType'===_0x345fde['_getAttributeKey'](_0x14cbab['suggestion']))||(_0x4ff5c4['removeMarker'](_0x440c4f['getFirstMarker']()),_0x577e55=!0x0));}return _0x577e55;})),_0x345fde['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4cc3d3,'FORMAT_INDENT'));const _0x4cf42c={'type':'format','content':''};_0x345fde['descriptionFactory']['registerDescriptionCallback'](_0x20657d=>{const {data:_0xb304bd}=_0x20657d;if(!_0xb304bd||'listType'!=_0xb304bd['key'])return;let _0xee968f=_0x20657d['head'];for(;_0xee968f;){if(_0xee968f['data']&&(('listStyle'==_0xee968f['data']['key']||'listMarkerStyle'==_0xee968f['data']['key'])&&(_0xee968f['data']['newValue']&&'default'!=_0xee968f['data']['newValue']||'default'!=_0xee968f['data']['oldValue']&&!_0xb304bd['newValue'])||!_0x372ab0&&_0xee968f['data']['key']==m))return _0x4cf42c;_0xee968f=_0xee968f['next'];}if(null==_0xb304bd['newValue'])switch(_0xb304bd['oldValue']){case'bulleted':return _0x49f184(o(_0x4cc3d3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x49f184(o(_0x4cc3d3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x49f184(o(_0x4cc3d3,'ELEMENT_TODO_LIST'));}switch(_0xb304bd['newValue']){case'bulleted':return _0x19e3a5(o(_0x4cc3d3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19e3a5(o(_0x4cc3d3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19e3a5(o(_0x4cc3d3,'ELEMENT_TODO_LIST'));}}),_0x345fde['descriptionFactory']['registerDescriptionCallback'](_0x4b1a4e=>{const {data:_0x5c7bec}=_0x4b1a4e;if(_0x5c7bec&&'listIndent'==_0x5c7bec['key'])return null==_0x5c7bec['newValue']||null==_0x5c7bec['oldValue']&&0x0==_0x5c7bec['newValue']?_0x4cf42c:void 0x0;}),_0x345fde['descriptionFactory']['registerDescriptionCallback'](_0x3a0fa9=>{if('attribute'!=_0x3a0fa9['type'])return;const {data:_0x4a587f}=_0x3a0fa9;if(!_0x4a587f||'listItemId'!=_0x4a587f['key'])return;const _0x26c39e=Te(_0x3a0fa9);return'newValue'==_0x26c39e?{'type':'format','content':o(_0x4cc3d3,'*Merge:*\x20list\x20item')}:'oldValue'==_0x26c39e?{'type':'format','content':o(_0x4cc3d3,'*Split:*\x20list\x20item')}:_0x4cf42c;}),_0x4107a1['model']['document']['registerPostFixer'](_0x288009=>this['listItemIdFixer'](_0x288009)),_0x4107a1['model']['document']['registerPostFixer'](_0x3d0e7a=>this['noTrackChangesFixer'](_0x3d0e7a)),_0x4107a1['model']['document']['on']('change:data',(_0x26d48f,_0x1fc5ce)=>{if(_0x1fc5ce['isUndo']||!_0x1fc5ce['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x97d730){if(_0x97d730['batch']['isUndo']||!_0x97d730['batch']['isLocal'])return!0x1;let _0xfd2f6e=!0x1;const _0x5700a5=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x42798e=>_0x42798e['data']&&'listItemId'==_0x42798e['data']['key'])['filter'](_0x53ebcd=>_0x53ebcd['data']['newValue']&&_0x53ebcd['data']['oldValue']);for(const _0x314924 of _0x5700a5)Te(_0x314924)||(_0x97d730['removeMarker'](_0x314924['getFirstMarker']()),_0xfd2f6e=!0x0);return _0xfd2f6e;}['noTrackChangesFixer'](_0x32bc82){if(_0x32bc82['batch']['isUndo']||!_0x32bc82['batch']['isLocal'])return!0x1;const _0x4f8296=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4f8296['trackChangesCommand']['value'])return!0x1;let _0x39a6f8=!0x1;const _0xca4a1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x18ac66=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3d288c=>'attribute'==_0x3d288c['type'])['filter'](_0x4aa286=>_0xca4a1['includes'](_0x4aa286['attributeKey']));if(0x0==_0x18ac66['length'])return _0x39a6f8;for(const _0x1a9564 of _0x18ac66){const _0x1cc515=_0x4f8296['_findSuggestions'](_0x1a9564['range'],'attribute')['filter'](_0x1f29b9=>!_0x1f29b9['meta']['isNextTo'])['map'](_0x16501f=>_0x16501f['suggestion'])['filter'](_0x2d5bcf=>{const _0x4aad64=_0x4f8296['_getAttributeKey'](_0x2d5bcf);return _0xca4a1['includes'](_0x4aad64);});if(_0x1cc515['length']){for(const _0x229ec0 of _0x1cc515)_0x32bc82['removeMarker'](_0x229ec0['getFirstMarker']());_0x39a6f8=!0x0;}}return _0x39a6f8;}['assureChains'](){const _0x3d0984=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5325f2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x579ba1;const _0x51c164=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12179e=>{if(_0x12179e['data']['oldRange']||!_0x12179e['data']['newRange'])return null;if(!_0x12179e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x50a6b6}=_0x3d0984['_splitMarkerName'](_0x12179e['name']);if(!_0x3d0984['hasSuggestion'](_0x50a6b6))return null;const _0x4602c5=_0x3d0984['getSuggestion'](_0x50a6b6);return _0x5325f2['includes'](_0x4602c5['data']['key']);})['map'](_0x540832=>{const {id:_0x5db101}=_0x3d0984['_splitMarkerName'](_0x540832['name']),_0x93226a=_0x3d0984['getSuggestion'](_0x5db101);return _0x579ba1=_0x93226a['attributes']['groupId'],_0x93226a['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x51c164['size'])return;const _0x5e6fa5=_0x3d0984['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x384b33=>'attribute'==_0x384b33['type']&&_0x384b33['data']&&_0x5325f2['includes'](_0x384b33['data']['key'])&&_0x384b33['attributes']['groupId']!=_0x579ba1)['map'](_0x4e649c=>({'listItem':_0x4e649c['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4e649c['attributes']['groupId']})),_0x3c3761=new Set();for(const {groupId:_0x4e7b20,listItem:_0x1e21b1}of _0x5e6fa5)_0x51c164['has'](_0x1e21b1)&&_0x3c3761['add'](_0x4e7b20);for(const _0x2a8d19 of _0x3d0984['getSuggestions']())_0x3c3761['has'](_0x2a8d19['attributes']['groupId'])&&_0x2a8d19['setAttribute']('groupId',_0x579ba1);}['_supportLegacySuggestions'](){const _0x5486c0=this['editor'],_0x13fba6=_0x5486c0['locale'],_0x429d29=_0x5486c0['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x429d29['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x994ba5,_0x3c7c69){const _0x525f0d=[];for(let _0x45c5c8 of _0x994ba5)_0x45c5c8['start']['nodeAfter']===_0x45c5c8['end']['parent']&&(_0x45c5c8=_0x5486c0['model']['createRange'](_0x5486c0['model']['createPositionAt'](_0x45c5c8['start']['nodeAfter'],0x0))),_0x525f0d['push'](_0x45c5c8);_0x5486c0['model']['change'](_0x3b8b3f=>{const _0x334d8f=_0x5486c0['model']['document']['selection'],_0x5cf6f1=Array['from'](_0x334d8f['getRanges']())['map'](_0x2f930a=>_0x495739['fromRange'](_0x2f930a));_0x3b8b3f['setSelection'](_0x525f0d),_0x5486c0['commands']['get'](_0x3c7c69['commandName'])['refresh'](),_0x3c7c69['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x5486c0['execute'](_0x3c7c69['commandName'],..._0x3c7c69['commandParams']),_0x3b8b3f['setSelection'](_0x5cf6f1);for(const _0x3c38aa of _0x5cf6f1)_0x3c38aa['detach']();});}),_0x429d29['descriptionFactory']['registerElementLabel'](function(_0x2c6e30){const _0x2d74cd=!_0x5486c0['model']['schema']['isObject'](_0x2c6e30),_0x292ede=_0x2c6e30['previousSibling'],_0x84c6dc=_0x2c6e30['nextSibling'],_0x105f0d=_0x2c6e30['getAttribute']('listItemId'),_0xf1d665=!_0x292ede||_0x292ede['getAttribute']('listItemId')!==_0x105f0d,_0x333881=!_0x84c6dc||_0x84c6dc['getAttribute']('listItemId')!==_0x105f0d;return _0x2d74cd&&Boolean(_0x105f0d)&&_0xf1d665&&_0x333881;},_0x31a6df=>o(_0x13fba6,'ELEMENT_LIST_ITEM',_0x31a6df));}['_registerLegacyDescription'](){const _0x10c16c=this['editor'],_0x3ed85e=_0x10c16c['locale'];function _0x19bf94(_0xb043c4){const _0x38e751=_0x10c16c['commands']['get']('bulletedList')['value'],_0x23129c=_0x10c16c['commands']['get']('numberedList')['value'];return'numberedList'===_0xb043c4?_0x38e751:_0x23129c;}_0x10c16c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2ecf99){if('formatBlock'!=_0x2ecf99['type'])return;const {data:_0x13804d}=_0x2ecf99;if(!_0x13804d)return;let _0x2ae7ff,_0x165cb4,_0x582522,_0x502de6;switch(_0x13804d['commandName']){case'bulletedList':_0x582522=_0x13804d['commandParams'][0x0]['forceValue'],_0x502de6=_0x19bf94(_0x13804d['commandName']),_0x2ae7ff=_0x582522?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502de6&&_0x10c16c['config']['get']('list.multiBlock')||(_0x2ae7ff='*Change\x20to:*\x20%0'),_0x165cb4={'type':'format','content':o(_0x3ed85e,_0x2ae7ff,o(_0x3ed85e,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x582522=_0x13804d['commandParams'][0x0]['forceValue'],_0x502de6=_0x19bf94(_0x13804d['commandName']),_0x2ae7ff=_0x582522?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x502de6&&_0x10c16c['config']['get']('list.multiBlock')||(_0x2ae7ff='*Change\x20to:*\x20%0'),_0x165cb4={'type':'format','content':o(_0x3ed85e,_0x2ae7ff,o(_0x3ed85e,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2ae7ff='*Indent:*\x20%0',_0x165cb4={'type':'format','content':o(_0x3ed85e,_0x2ae7ff,o(_0x3ed85e,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2ae7ff=function(_0x57a23e){const _0x1549d7=_0x57a23e['getFirstRange']();let _0x275ba4=_0x1549d7['start']['nodeAfter'];for(;_0x275ba4&&_0x1549d7['containsItem'](_0x275ba4);){if(_0x275ba4['getAttribute']('listIndent')>0x0)return!0x1;_0x275ba4=_0x275ba4['nextSibling'];}return!0x0;}(_0x2ecf99)?o(_0x3ed85e,'*Format:*\x20remove\x20from\x20%0',o(_0x3ed85e,function(_0x29c0c6){return'ELEMENT_'+_0x29c0c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2ecf99))):o(_0x3ed85e,'*Outdent:*\x20%0',o(_0x3ed85e,'ELEMENT_LIST_ITEM')),_0x165cb4={'type':'format','content':_0x2ae7ff};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13804d['multipleBlocks']&&(_0x2ae7ff='*Merge:*\x20%0',_0x165cb4={'type':'deletion','content':o(_0x3ed85e,_0x2ae7ff,o(_0x3ed85e,'ELEMENT_LIST_ITEM'))});}return _0x165cb4;});}}function Te(_0x5532c6){let _0x5b1feb=_0x5532c6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x5b1feb;){const _0x4e4cd1=_0x5b1feb['getAttribute']('listItemId');if(!_0x4e4cd1)return!0x1;if(_0x4e4cd1==_0x5532c6['data']['newValue'])return'newValue';if(_0x4e4cd1==_0x5532c6['data']['oldValue'])return'oldValue';_0x5b1feb=_0x5b1feb['previousSibling'];}return!0x1;}class ye extends _0x36effd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x2033b3=this['editor']['config']['get']('list.properties'),_0x3ba72c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2033b3['styles']&&(_0x3ba72c['enableDefaultAttributesIntegration']('listStyle'),_0x3ba72c['registerBlockAttribute']('listStyle')),_0x2033b3['reversed']&&(_0x3ba72c['enableDefaultAttributesIntegration']('listReversed'),_0x3ba72c['registerBlockAttribute']('listReversed')),_0x2033b3['startIndex']&&(_0x3ba72c['enableDefaultAttributesIntegration']('listStart'),_0x3ba72c['registerBlockAttribute']('listStart'));const _0x433201={'type':'format','content':''};_0x3ba72c['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4db18f=this['editor']['locale'];_0x3ba72c['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4db18f,'FORMAT_LIST_REVERSED')),_0x3ba72c['descriptionFactory']['registerDescriptionCallback'](_0x5a2c19=>{const {data:_0x527936}=_0x5a2c19;if(_0x527936&&'listReversed'==_0x527936['key'])return null==_0x527936['newValue']||0x0==_0x527936['newValue']&&null==_0x527936['oldValue']?_0x433201:void 0x0;}),_0x3ba72c['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4db18f,'FORMAT_LIST_START')),_0x3ba72c['descriptionFactory']['registerDescriptionCallback'](_0x146f23=>{const {data:_0x1cda75}=_0x146f23;if(_0x1cda75&&'listStart'==_0x1cda75['key'])return null==_0x1cda75['newValue']||0x1==_0x1cda75['newValue']&&null==_0x1cda75['oldValue']?_0x433201:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x8d44bb=>{if(_0x8d44bb['batch']['isUndo'])return!0x1;let _0x44e249=!0x1;const _0x3eb8a6=_0x3ba72c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x24c602=>{const _0x168847=_0x3ba72c['_getAttributeKey'](_0x24c602);return'listStart'==_0x168847||'listReversed'==_0x168847;});for(const _0x615bfa of _0x3eb8a6){const _0x5d732c=_0x615bfa['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5d732c||'customNumbered'==_0x5d732c)continue;_0x3ba72c['_findSuggestions'](_0x615bfa['getFirstRange'](),'attribute')['find'](_0x152c72=>'listType'==_0x3ba72c['_getAttributeKey'](_0x152c72['suggestion']))||(_0x8d44bb['removeMarker'](_0x615bfa['getFirstMarker']()),_0x44e249=!0x0);}return _0x44e249;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1f72e9){const _0x46cdcd=this['editor']['locale'],{data:_0x2ea10b}=_0x1f72e9,_0x4895ab={'type':'format','content':''};if(!_0x2ea10b||'listStyle'!=_0x2ea10b['key'])return;if(!_0x2ea10b['oldValue'])return'default'==_0x2ea10b['newValue']?_0x4895ab:{'type':'format','content':''+o(_0x46cdcd,'*Set\x20format:*\x20%0',o(_0x46cdcd,this['_getTranslationKeyForListStyle'](_0x2ea10b['newValue'])))};if(!_0x2ea10b['newValue']){if('default'==_0x2ea10b['oldValue'])return _0x4895ab;let _0x18c08b=_0x1f72e9['head'];for(;_0x18c08b;){if(_0x18c08b['data']&&'listType'==_0x18c08b['data']['key']&&_0x18c08b['data']['newValue'])return _0x4895ab;_0x18c08b=_0x18c08b['next'];}return{'type':'format','content':''+o(_0x46cdcd,'*Remove\x20format:*\x20%0',o(_0x46cdcd,this['_getTranslationKeyForListStyle'](_0x2ea10b['oldValue'])))};}if('default'!=_0x2ea10b['newValue'])return{'type':'format','content':''+o(_0x46cdcd,'*Set\x20format:*\x20%0',o(_0x46cdcd,this['_getTranslationKeyForListStyle'](_0x2ea10b['newValue'])))};let _0x272c63=_0x1f72e9['head'];for(;_0x272c63;){if(_0x272c63['data']&&'listType'==_0x272c63['data']['key']&&_0x272c63['data']['newValue']&&_0x272c63['data']['oldValue'])return _0x4895ab;_0x272c63=_0x272c63['next'];}return{'type':'format','content':o(_0x46cdcd,'*Set\x20format:*\x20%0',o(_0x46cdcd,'ELEMENT_'+_0x1f72e9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x7848c4=this['editor'],_0x437002=_0x7848c4['locale'];_0x7848c4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39cede=>{if('formatBlock'!=_0x39cede['type'])return;const {data:_0x5514f1}=_0x39cede;if(!_0x5514f1)return;let _0x4105e0,_0x374e6e;switch(_0x5514f1['commandName']){case'listStyle':_0x4105e0='*Change\x20to:*\x20%0',_0x374e6e={'type':'format','content':o(_0x437002,_0x4105e0,o(_0x437002,this['_getTranslationKeyForListStyle'](_0x5514f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4105e0=_0x5514f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x374e6e={'type':'format','content':o(_0x437002,_0x4105e0)};break;case'listStart':_0x4105e0='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x374e6e={'type':'format','content':o(_0x437002,_0x4105e0,_0x5514f1['commandParams'][0x0]['startIndex'])};}return _0x374e6e;});}['_getTranslationKeyForListStyle'](_0x30ae5b){return'ELEMENT_'+function(_0x301685){if(Se['includes'](_0x301685))return'bulleted';if(_e['includes'](_0x301685))return'numbered';return null;}(_0x30ae5b)['toUpperCase']()+'_LIST_'+_0x30ae5b['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x36effd{static get['requires'](){return[_0x25c296];}['init'](){const _0xecb5d8=this['editor'],_0x284e2f=_0xecb5d8['plugins']['get']('TrackChangesEditing'),_0x57d16d=_0xecb5d8['commands']['get']('enter');_0x284e2f['enableCommand']('enter',()=>{_0xecb5d8['model']['change'](_0x40a970=>{const _0x494db3=_0xecb5d8['model']['document']['selection'],_0x42cc55=_0x494db3['getFirstPosition'](),_0x233c02=_0x495739['fromRange'](_0x494db3['getFirstRange']());if(_0x57d16d['enterBlock'](_0x40a970)){const _0x959b8c=_0xecb5d8['model']['createPositionAt'](_0x42cc55['parent']['nextSibling'],0x0),_0x46f10b=_0x40a970['createRange'](_0x42cc55,_0x959b8c);_0x284e2f['markInsertion'](_0x46f10b);}else _0x40a970['setSelection'](_0x40a970['createRange'](_0x233c02['end']));_0x233c02['detach'](),_0x57d16d['fire']('afterExecute',{'writer':_0x40a970});});}),_0xecb5d8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Ne(_0xecb5d8,'split'),{'priority':'high'}),_0xecb5d8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x44d82c,_0xf54400,_0x124274)=>{const _0x5ee3f0=_0x124274['mapper']['markerNameToElements'](_0xf54400['markerName']);if(_0x5ee3f0){for(const _0x544a2f of _0x5ee3f0)_0x544a2f['hasClass']('ck-suggestion-marker-split')&&(_0x124274['mapper']['unbindElementFromMarkerName'](_0x544a2f,_0xf54400['markerName']),_0x124274['writer']['remove'](_0x544a2f));}},{'priority':'high'}),_0xecb5d8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36122d,_0xb19375,_0x37cd08)=>{_0x37cd08['options']['showSuggestionHighlights']&&Ne(_0xecb5d8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x36122d,_0xb19375,_0x37cd08);},{'priority':'high'});}}class Y extends _0x36effd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5d9a5c=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d9a5c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5d9a5c['enableCommand']('findNext'),_0x5d9a5c['enableCommand']('findPrevious'),_0x5d9a5c['enableCommand']('replace'),_0x5d9a5c['enableCommand']('replaceAll');}['handleFindCommand'](_0x11e4dd,_0x1f3c17,_0x3b5d63={}){const _0x3ac4d7=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x11e4dd(_0x500de8=>{let _0x4e07cb=('string'==typeof _0x1f3c17?_0x3ac4d7['findByTextCallback'](_0x1f3c17,_0x3b5d63):_0x1f3c17)(_0x500de8);Array['isArray'](_0x4e07cb)&&(_0x4e07cb={'results':_0x4e07cb,'searchText':'string'==typeof _0x1f3c17?_0x1f3c17:''});const _0x57dca4=_0x4e07cb['results']['filter'](_0x3bf37f=>!0x1===this['_isInDeletionRange'](_0x3bf37f,_0x500de8['item']));return{..._0x4e07cb,'results':_0x57dca4};},_0x3b5d63);}['_isInDeletionRange'](_0x481964,_0x244814){const _0x5c78a6=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x244814,_0x481964['start']),this['editor']['model']['createPositionAt'](_0x244814,_0x481964['end']));for(const _0x9276ab of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5c78a6['getIntersection'](_0x9276ab['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 _0x36effd{['afterInit'](){const _0xcdb66=this['editor']['locale'],_0x1d6cd3=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1548d0,commandName:_0x2bdb8e}of ro)this['editor']['plugins']['has'](_0x1548d0)&&(_0x1d6cd3['enableDefaultAttributesIntegration'](_0x2bdb8e),_0x1d6cd3['registerInlineAttribute'](_0x2bdb8e));_0x1d6cd3['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0xcdb66,'FORMAT_FONT_SIZE')),_0x1d6cd3['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0xcdb66,'FORMAT_FONT_FAMILY')),_0x1d6cd3['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0xcdb66,'FORMAT_FONT_COLOR')),_0x1d6cd3['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0xcdb66,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x165192=this['editor'],_0x247113=_0x165192['locale'];_0x165192['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a2c27=>{const _0x483948=_0x247113['t'];if('formatInline'!=_0x4a2c27['type'])return;const {data:_0x21f195}=_0x4a2c27;if(null!=_0x21f195){if('fontSize'==_0x21f195['commandName']){const _0x549df3=_0x21f195['commandParams'][0x0]['value'];if(_0x549df3){const _0x503ee6=_0x483948(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4f7d8e=>_0x4f7d8e['model']==_0x549df3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x247113,'*Set\x20font\x20size:*\x20%0',_0x503ee6)};}return{'type':'format','content':o(_0x247113,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x21f195['commandName']){const _0x102a1f=_0x21f195['commandParams'][0x0]['value'];return _0x102a1f?{'type':'format','content':o(_0x247113,'*Set\x20font\x20family:*\x20%0',_0x102a1f)}:{'type':'format','content':o(_0x247113,'*Reset\x20font\x20family*')};}if('fontColor'==_0x21f195['commandName']){const _0x3b6672=_0x21f195['commandParams'][0x0]['value'];if(_0x3b6672){const _0x3d68cb=_0x2993e0(this['editor']['config']['get']('fontColor.colors'))['find'](_0x249a92=>_0x249a92['model']==_0x3b6672);let _0x326adc=_0x3b6672,_0x5bd94a='';return _0x3d68cb&&(_0x326adc=_0x3d68cb['label'],_0x5bd94a=_0x483948(_0x326adc)['toLowerCase']()),{'type':'format','content':o(_0x247113,'*Set\x20font\x20color:*\x20%0',_0x5bd94a)['trim'](),'color':{'value':_0x3b6672,'title':_0x5bd94a||_0x326adc}};}return{'type':'format','content':o(_0x247113,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x21f195['commandName']){const _0x24a49c=_0x21f195['commandParams'][0x0]['value'];if(_0x24a49c){const _0x13229f=_0x2993e0(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4c526a=>_0x4c526a['model']==_0x24a49c);let _0xb2e914=_0x24a49c,_0x45087e='';return _0x13229f&&(_0xb2e914=_0x13229f['label'],_0x45087e=_0x483948(_0xb2e914)['toLowerCase']()),{'type':'format','content':o(_0x247113,'*Set\x20font\x20background\x20color:*\x20%0',_0x45087e)['trim'](),'color':{'value':_0x24a49c,'title':_0x45087e||_0xb2e914}};}return{'type':'format','content':o(_0x247113,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x36effd{['afterInit'](){const _0x1603b2=this['editor'],_0x525309=_0x1603b2['plugins']['get']('TrackChangesEditing'),_0x2bc4e6=_0x1603b2['commands']['get']('copyFormat'),_0x5699eb=_0x1603b2['commands']['get']('pasteFormat');_0x2bc4e6&&_0x5699eb&&(_0x525309['enableDefaultAttributesIntegration']('pasteFormat'),_0x525309['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5958aa=this['editor'],_0x50f47b=_0x5958aa['locale'];_0x5958aa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10cb03=>{if('formatBlock'!=_0x10cb03['type']&&'formatInline'!=_0x10cb03['type'])return;const {data:_0x15db68}=_0x10cb03;if(_0x15db68&&'pasteFormat'===_0x15db68['commandName']){const _0x4a6ae3=[],_0x5dbc19=_0x15db68['commandParams'][0x0];for(const [_0x79afc1,_0x562029]of Object['entries'](_0x5dbc19))_0x4a6ae3['push'](so(_0x5958aa,_0x79afc1,_0x562029));return _0x4a6ae3['length']?{'type':'format','content':o(_0x50f47b,'*Set\x20format\x20to:*\x20%0',_0x4a6ae3['join'](',\x20'))}:{'type':'format','content':o(_0x50f47b,'*Remove\x20all\x20formatting*')};}});}}function so(_0x46ce81,_0x328975,_0x23d7c8){const _0x2fa73a=_0x46ce81['locale']['t'],_0x156712=_0x328975['split'](/(?=[A-Z])/)['join']('\x20'),_0x2ab782=_0x2fa73a(_0x156712['charAt'](0x0)['toUpperCase']()+_0x156712['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x23d7c8)return _0x2ab782;if('fontColor'===_0x328975||'fontBackgroundColor'===_0x328975){const _0x3cc644=_0x2993e0(_0x46ce81['config']['get']('fontColor.colors'))['find'](_0x1e47b8=>_0x1e47b8['model']==_0x23d7c8);return _0x2ab782+'\x20('+(_0x3cc644?_0x2fa73a(_0x3cc644['label'])['toLowerCase']():_0x23d7c8)+')';}if('fontSize'===_0x328975&&isNaN(parseFloat(_0x23d7c8))){const _0x3770dc=_0x46ce81['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x46ce81['config']['get']('fontSize.options'))['find'](_0x18a8e2=>_0x18a8e2['model']==_0x23d7c8);return _0x2ab782+'\x20('+(_0x3770dc?_0x2fa73a(_0x3770dc['title'])['toLowerCase']():_0x23d7c8)+')';}return _0x2ab782+'\x20('+_0x23d7c8+')';}class nt extends _0x36effd{['_headingOptions'];['afterInit'](){const _0x37dc35=this['editor'];if(!_0x37dc35['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37dc35['config']['get']('heading.options');const _0x8ff8fa=_0x37dc35['locale'],_0x311f28=_0x37dc35['plugins']['get']('TrackChangesEditing');_0x311f28['enableDefaultAttributesIntegration']('heading');for(const _0x161008 of this['_headingOptions'])'paragraph'!=_0x161008['model']&&_0x311f28['descriptionFactory']['registerElementLabel'](_0x161008['model'],_0x594d9c=>{const _0x1cbde6=this['_getHeadingLevel'](_0x161008['model']);return null!==_0x1cbde6?_0x46bc73(_0x594d9c,_0x1cbde6):_0x337d15(_0x594d9c,_0x161008['title']);});function _0x46bc73(_0x2ab1f3,_0x58418d){return o(_0x8ff8fa,'ELEMENT_HEADING',[_0x2ab1f3,_0x58418d]);}function _0x337d15(_0x559e07,_0x1df868){return o(_0x8ff8fa,'ELEMENT_HEADING_CUSTOM',[_0x559e07,_0x1df868]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x297d6c=this['editor'],_0x40e780=_0x297d6c['locale'];function _0x4b068d(_0x69d8c3,_0x3c468a){return o(_0x40e780,'ELEMENT_HEADING_CUSTOM',[_0x69d8c3,_0x3c468a]);}_0x297d6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x560632=>{if('formatBlock'!=_0x560632['type'])return;const {data:_0xa98cc4}=_0x560632;if(_0xa98cc4&&'heading'==_0xa98cc4['commandName']){const _0x6b1273=_0xa98cc4['commandParams'][0x0]['value'],_0x4d80b5=this['_getHeadingLevel'](_0x6b1273);if(null!==_0x4d80b5)return{'type':'format','content':o(_0x40e780,'*Change\x20to:*\x20%0',(_0x53065a=0x1,_0x4f7067=_0x4d80b5,o(_0x40e780,'ELEMENT_HEADING',[_0x53065a,_0x4f7067])))};const _0x2e9f33=this['_headingOptions']['find'](_0x1d6229=>_0x1d6229['model']===_0x6b1273)['title'];return{'type':'format','content':o(_0x40e780,'*Change\x20to:*\x20%0',_0x4b068d(0x1,_0x2e9f33))};}var _0x53065a,_0x4f7067;});}['_getHeadingLevel'](_0x1cfb40){const _0x4a1706=_0x1cfb40['match'](/^heading(\d+)/);if(_0x4a1706)return _0x4a1706[0x1];const _0x5d9679=this['_headingOptions']?.['find'](_0x46b732=>_0x46b732['model']==_0x1cfb40);if(_0x5d9679&&_0x5d9679['view']){const _0x177d1e=_0x5d9679['view'],_0x2a27ca=(_0x177d1e['name']??_0x177d1e)['match'](/^h(\d+)/);if(_0x2a27ca)return _0x2a27ca[0x1];}return null;}}class it extends _0x36effd{['afterInit'](){const _0x387e02=this['editor'];if(!_0x387e02['plugins']['has']('HighlightEditing'))return;const _0x2782a6=_0x387e02['plugins']['get']('TrackChangesEditing'),_0x5d2179=_0x387e02['locale'];_0x2782a6['enableDefaultAttributesIntegration']('highlight'),_0x2782a6['registerInlineAttribute']('highlight'),_0x2782a6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x5d2179,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x495f1e=this['editor'],_0x1c1bee=_0x495f1e['locale'];_0x495f1e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43644f=>{if('formatInline'!=_0x43644f['type'])return;const {data:_0x873c68}=_0x43644f;if(_0x873c68&&'highlight'==_0x873c68['commandName']){const _0x3d8fe5=_0x1c1bee['t'],_0x49d1f3=_0x873c68['commandParams'][0x0]['value'];if(_0x49d1f3){const _0x5e4cd=_0x495f1e['config']['get']('highlight.options')['find'](_0x14e4e7=>_0x14e4e7['model']==_0x49d1f3),_0x3187da=_0x3d8fe5(_0x5e4cd['title'])['toLowerCase']();return{'type':'format','content':o(_0x1c1bee,'*Set\x20highlight:*\x20%0',_0x3187da),'color':{'value':_0x5e4cd['color'],'title':_0x5e4cd['title']}};}return{'type':'format','content':o(_0x1c1bee,'*Remove\x20highlight*',o(_0x1c1bee,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x36effd{['afterInit'](){const _0xc83083=this['editor'];if(!_0xc83083['plugins']['has']('HorizontalLineEditing'))return;_0xc83083['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x290669=_0xc83083['plugins']['get']('TrackChangesEditing'),_0x2845ff=_0xc83083['locale'];_0x290669['descriptionFactory']['registerElementLabel']('horizontalLine',_0x353991=>o(_0x2845ff,'ELEMENT_HORIZONTAL_LINE',_0x353991)),_0xc83083['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x887dd7,{writer:_0x3fea4c,options:_0x23be84})=>{if(!_0x23be84['showSuggestionHighlights'])return null;const _0x549fa2=_0x3fea4c['createContainerElement']('div'),_0x6fa611=_0x3fea4c['createEmptyElement']('hr');return _0x3fea4c['addClass']('ck-horizontal-line',_0x549fa2),_0x3fea4c['insert'](_0x3fea4c['createPositionAt'](_0x549fa2,0x0),_0x6fa611),_0x549fa2;},'converterPriority':'high'});}}class st extends _0x36effd{['afterInit'](){const _0x55a2da=this['editor'];if(!_0x55a2da['plugins']['has']('HtmlEmbed'))return;const _0x5abccb=_0x55a2da['plugins']['get']('TrackChangesEditing'),_0x17d895=_0x55a2da['locale'];_0x5abccb['descriptionFactory']['registerElementLabel']('rawHtml',_0x2d0e93=>o(_0x17d895,'ELEMENT_HTML_EMBED',_0x2d0e93)),_0x5abccb['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5abccb['registerBlockAttribute']('value'),_0x5abccb['descriptionFactory']['registerDescriptionCallback'](_0x5e977b=>{if('attribute'!=_0x5e977b['type'])return;const {data:_0x154797}=_0x5e977b;if(_0x154797&&'value'==_0x154797['key']&&_0x5e977b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x6c3fa7=o(_0x17d895,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x17d895,'*Change\x20%0\x20content*',_0x6c3fa7)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x39bd72=this['editor'],_0x64907f=_0x39bd72['locale'];_0x39bd72['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b491=>{if('formatBlock'!=_0x32b491['type'])return;const {data:_0x4b61d0}=_0x32b491;if(_0x4b61d0&&'htmlEmbed'==_0x4b61d0['commandName']){const _0x265562=o(_0x64907f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x64907f,'*Change\x20%0\x20content*',_0x265562)};}});}}class ot extends _0x36effd{['afterInit'](){const _0x26f2d2=this['editor'];if(!_0x26f2d2['plugins']['has']('ImageEditing'))return;const _0x13d4e1=_0x26f2d2['plugins']['get']('TrackChangesEditing'),_0x281e5e=_0x26f2d2['plugins']['get']('ImageUtils'),_0x3134ff=_0x26f2d2['locale'];_0x13d4e1['enableCommand']('insertImage'),_0x13d4e1['descriptionFactory']['registerElementLabel']('imageBlock',_0x3b127b=>o(_0x3134ff,'ELEMENT_IMAGE',_0x3b127b)),_0x13d4e1['descriptionFactory']['registerElementLabel']('imageInline',_0x13b02a=>o(_0x3134ff,'ELEMENT_INLINE_IMAGE',_0x13b02a)),_0x13d4e1['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x3134ff,'ELEMENT_CAPTION')),_0x26f2d2['plugins']['has']('ImageUploadEditing')&&_0x13d4e1['enableCommand']('uploadImage'),_0x26f2d2['plugins']['has']('ImageBlockEditing')&&_0x26f2d2['plugins']['has']('ImageInlineEditing')&&(_0x13d4e1['enableCommand']('imageTypeInline',(_0x34429f,_0x401971)=>{const _0x5440d0=_0x281e5e['getClosestSelectedImageElement'](_0x26f2d2['model']['document']['selection']);_0x26f2d2['model']['change'](()=>{_0x13d4e1['markBlockFormat'](_0x5440d0,{'commandName':'imageTypeInline','commandParams':[_0x401971]},[],'convertBlockImageToInline');});}),_0x13d4e1['enableCommand']('imageTypeBlock',(_0x477217,_0x13854c)=>{_0x26f2d2['model']['change'](_0x28cd67=>{let _0x455e8d=_0x281e5e['getClosestSelectedImageElement'](_0x26f2d2['model']['document']['selection']),_0x1faa16=_0x28cd67['createRangeOn'](_0x455e8d);const _0x95fdd3=_0x2bf754['fromPosition'](_0x1faa16['start'],'toPrevious'),_0x5c66f4=_0x2bf754['fromPosition'](_0x1faa16['end'],'toNext');_0x13d4e1['forceDefaultExecution'](()=>_0x477217(_0x13854c)),_0x455e8d=_0x281e5e['getClosestSelectedImageElement'](_0x26f2d2['model']['document']['selection']),_0x1faa16=_0x28cd67['createRangeOn'](_0x455e8d);const _0x550701=_0x28cd67['createRange'](_0x95fdd3,_0x5c66f4);_0x95fdd3['detach'](),_0x5c66f4['detach'](),_0x13d4e1['markBlockFormat'](_0x455e8d,{'commandName':'imageTypeInline','commandParams':[_0x13854c]},[],'convertInlineImageToBlock'),_0x550701['start']['isBefore'](_0x1faa16['start'])&&_0x13d4e1['markInsertion'](_0x28cd67['createRange'](_0x550701['start'],_0x1faa16['start']),'convertInlineImageToBlock'),_0x1faa16['end']['isBefore'](_0x550701['end'])&&_0x13d4e1['markInsertion'](_0x28cd67['createRange'](_0x1faa16['end'],_0x550701['end']),'convertInlineImageToBlock');});}),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x13d4e1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4e40af])=>{const _0x107da9=_0x13d4e1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4c15b0=_0x4e40af['start'],_0x421a13=_0x4e40af['end'];const _0x4ed8e9=_0x26f2d2['model']['schema']['getNearestSelectionRange'](_0x4c15b0,'backward'),_0x1f4b84=_0x26f2d2['model']['schema']['getNearestSelectionRange'](_0x421a13,'forward');_0x4ed8e9['isCollapsed']&&(_0x4c15b0=_0x4ed8e9['start']),_0x1f4b84['isCollapsed']&&(_0x421a13=_0x1f4b84['end']),_0x107da9([_0x26f2d2['model']['createRange'](_0x4c15b0,_0x421a13)]);}),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1e1995),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1e1995)),_0x26f2d2['plugins']['has']('ImageCaptionEditing')&&(_0x13d4e1['enableCommand']('toggleImageCaption',(_0x2bf8f4,_0x295654)=>{const _0x502bb9=_0x26f2d2['plugins']['get']('ImageCaptionUtils');let _0x4046bf=_0x281e5e['getClosestSelectedImageElement'](_0x26f2d2['model']['document']['selection']),_0x24110b=_0x502bb9['getCaptionFromImageModelElement'](_0x4046bf);_0x26f2d2['model']['change'](()=>{if(_0x24110b)return void _0x13d4e1['markDeletion'](_0x26f2d2['model']['createRangeOn'](_0x24110b));const _0x910c8e=_0x281e5e['isBlockImage'](_0x4046bf);_0x2bf8f4(_0x295654),_0x4046bf=_0x281e5e['getClosestSelectedImageElement'](_0x26f2d2['model']['document']['selection']),_0x24110b=_0x502bb9['getCaptionFromImageModelElement'](_0x4046bf),_0x13d4e1['markInsertion'](_0x26f2d2['model']['createRangeOn'](_0x24110b),_0x910c8e?null:'imageCaption');});}),_0x13d4e1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1e1995));const _0x1155ba=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x59f69c(_0x476d40,_0x485452){const _0x3fdd61=_0x1155ba['findIndex'](({type:_0x39e9d7,subType:_0x47e773})=>_0x476d40['type']==_0x39e9d7&&_0x476d40['subType']==_0x47e773),_0x31eb5e=_0x1155ba['findIndex'](({type:_0x3733d5,subType:_0xe87d22})=>_0x485452['type']==_0x3733d5&&_0x485452['subType']==_0xe87d22);if(_0x3fdd61<0x0||_0x31eb5e<0x0)return!0x1;const _0x6cf3a1=_0x476d40['getFirstRange'](),_0x368702=_0x485452['getFirstRange']();if((0x0==_0x3fdd61||0x1==_0x3fdd61)&&0x2==_0x31eb5e&&_0x6cf3a1['isIntersecting'](_0x368702))return!0x0;if(0x2==_0x3fdd61&&0x3==_0x31eb5e){const _0x3137f6=_0x13d4e1['_findSuggestions'](_0x6cf3a1,'insertion')['filter'](({suggestion:_0x45f2d0,meta:_0x1a1623})=>_0x1a1623['isOwn']&&'convertInlineImageToBlock'==_0x45f2d0['subType']);if(_0x3137f6['length']>0x1&&_0x368702['end']['isEqual'](_0x6cf3a1['start']))return!0x0;if(0x1==_0x3137f6['length']&&(_0x6cf3a1['start']['isEqual'](_0x368702['end'])||_0x6cf3a1['end']['isEqual'](_0x368702['start'])))return!0x0;}if(0x3==_0x3fdd61&&0x3==_0x31eb5e&&_0x6cf3a1['start']['isBefore'](_0x368702['start'])){const _0x2b863d=_0x6cf3a1['end']['nodeAfter'],_0x425a6b=_0x368702['start']['nodeBefore'];return _0x281e5e['isBlockImage'](_0x2b863d)&&_0x2b863d===_0x425a6b;}return!0x1;}function _0x1e1995(_0x107257,_0x21552b){return _0x59f69c(_0x107257,_0x21552b)?[_0x107257,_0x21552b]:_0x59f69c(_0x21552b,_0x107257)?[_0x21552b,_0x107257]:null;}_0x26f2d2['plugins']['has']('ImageResize')&&(_0x13d4e1['enableDefaultAttributesIntegration']('resizeImage'),_0x13d4e1['registerBlockAttribute']('resizedWidth'),_0x13d4e1['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x3134ff,'FORMAT_IMAGE_SIZE'))),_0x26f2d2['plugins']['has']('ImageTextAlternativeEditing')&&(_0x13d4e1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x13d4e1['registerBlockAttribute']('alt')),_0x13d4e1['descriptionFactory']['registerDescriptionCallback'](_0x3ba75d=>{if(!!_0x1155ba['find'](({type:_0x17f217,subType:_0x10e7a7})=>_0x3ba75d['type']==_0x17f217&&_0x3ba75d['subType']==_0x10e7a7))return _0x3ba75d['previous']?{}:void 0x0;}),_0x13d4e1['descriptionFactory']['registerDescriptionCallback'](_0x44b8ad=>{if('insertion'==_0x44b8ad['type']||'deletion'==_0x44b8ad['type']){const _0x3b3296=_0x44b8ad['getContainedElement']();if(_0x3b3296&&_0x3b3296['is']('element','caption'))return{'type':'insertion'==_0x44b8ad['type']?'addObject':'removeObject','element':_0x3b3296,'quantity':0x1};}}),_0x13d4e1['descriptionFactory']['registerDescriptionCallback'](_0x4512e2=>'formatBlock'==_0x4512e2['type']&&'convertInlineImageToBlock'==_0x4512e2['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4512e2['type']&&'convertBlockImageToInline'==_0x4512e2['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x13d4e1['descriptionFactory']['registerDescriptionCallback'](_0xe1ff3b=>{if('attribute'!=_0xe1ff3b['type'])return;const {data:_0x504f77}=_0xe1ff3b;if(!_0x504f77||'alt'!=_0x504f77['key'])return;const _0x19a273=_0x504f77['newValue'];return _0x19a273?{'type':'format','content':o(_0x3134ff,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x19a273+'\x22')}:{'type':'format','content':o(_0x3134ff,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf36622=this['editor'],_0x16b900=_0xf36622['locale'];_0xf36622['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2df1aa=>{if('formatBlock'!=_0x2df1aa['type']&&'formatInline'!=_0x2df1aa['type'])return;const {data:_0x533125}=_0x2df1aa;if(_0x533125){if('imageTextAlternative'==_0x533125['commandName']){const _0x49d451=_0x533125['commandParams'][0x0]['newValue'];return _0x49d451?{'type':'format','content':o(_0x16b900,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x49d451+'\x22')}:{'type':'format','content':o(_0x16b900,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x533125['commandName']){const _0x224a98=_0x533125['commandParams'][0x0]['width'];return _0x224a98?{'type':'format','content':o(_0x16b900,'*Set\x20image\x20width:*\x20%0',_0x224a98)}:{'type':'format','content':o(_0x16b900,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x36effd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x52a01f=this['editor']['locale'],_0x43df46=this['editor']['plugins']['get']('TrackChangesEditing');_0x43df46['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43df46['registerBlockAttribute']('src'),_0x43df46['descriptionFactory']['registerDescriptionCallback'](_0x5f4758=>{if('attribute'!=_0x5f4758['type'])return;const {data:_0x7aaa81}=_0x5f4758;return _0x7aaa81&&'src'==_0x7aaa81['key']?_0x7aaa81['newValue']&&_0x7aaa81['oldValue']?{'type':'format','content':o(_0x52a01f,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2c978f=this['editor']['plugins']['get']('TrackChangesEditing');_0x2c978f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2c978f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2c978f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2c978f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe6c695=this['editor'],_0x244a6=_0xe6c695['locale'];_0xe6c695['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d7726=>{if('formatBlock'!=_0x3d7726['type']&&'formatInline'!=_0x3d7726['type'])return;const {data:_0x53b63c}=_0x3d7726;if(!_0x53b63c||'replaceImageSource'!=_0x53b63c['commandName'])return;return{'type':'format','content':o(_0x244a6,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x36effd{['afterInit'](){const _0x5b59ce=this['editor'];if(!_0x5b59ce['plugins']['has']('ImageStyleEditing'))return;const _0x839ba3=_0x5b59ce['plugins']['get']('TrackChangesEditing'),_0x2606fa=_0x5b59ce['plugins']['get']('ImageUtils'),_0x211545={};_0x839ba3['enableCommand']('imageStyle',(_0x6b1120,_0x251052)=>{const _0x82deca=_0x5b59ce['plugins']['get']('Users')['me'],_0x8bafd6=_0x5b59ce['commands']['get']('imageStyle');let _0x4397cc=_0x2606fa['getClosestSelectedImageElement'](_0x5b59ce['model']['document']['selection']),_0x4879ab=_0x5b59ce['model']['createRangeOn'](_0x4397cc),_0x1d1ebd=_0x8bafd6['value'];if(_0x1d1ebd==_0x251052['value'])return;const _0x48575b={'commandName':'imageStyle','commandParams':[_0x251052],'formatGroupId':_0x24c9d1()};_0x5b59ce['model']['change'](()=>{if(_0x839ba3['getSuggestions']()['filter'](_0x20d53d=>_0x20d53d['isInContent']&&_0x82deca==_0x20d53d['author']&&('formatBlock'==_0x20d53d['type']||'formatInline'==_0x20d53d['type'])&&('imageStylePreApply'==_0x20d53d['subType']||'imageStylePostApply'==_0x20d53d['subType'])&&_0x20d53d['getFirstRange']()['isEqual'](_0x4879ab))['forEach'](_0x3a897b=>_0x839ba3['discardSuggestion'](_0x3a897b['head'])),_0x4397cc=_0x2606fa['getClosestSelectedImageElement'](_0x5b59ce['model']['document']['selection']),_0x4879ab=_0x5b59ce['model']['createRangeOn'](_0x4397cc),_0x8bafd6['refresh'](),_0x5b59ce['commands']['get']('imageTypeInline')['refresh'](),_0x5b59ce['commands']['get']('imageTypeBlock')['refresh'](),_0x1d1ebd=_0x8bafd6['value'],_0x1d1ebd!=_0x251052['value'])return _0x2606fa['isInlineImage'](_0x4397cc)&&_0x8bafd6['shouldConvertImageType'](_0x251052['value'],_0x4397cc)?(_0x6b1120({..._0x251052,'setImageSizes':!0x1}),_0x4397cc=_0x2606fa['getClosestSelectedImageElement'](_0x5b59ce['model']['document']['selection']),void _0x839ba3['markBlockFormat'](_0x4397cc,{..._0x48575b,'commandReversedParams':[{'value':_0x1d1ebd||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2606fa['isBlockImage'](_0x4397cc)?_0x839ba3['markBlockFormat'](_0x4397cc,_0x48575b,[],'imageStylePostApply'):_0x839ba3['markInlineFormat'](_0x4879ab,_0x48575b,'imageStylePostApply'));});});for(const _0x5e659f of _0x5b59ce['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x211545[_0x5e659f['name']]=_0x5e659f['title']['toLowerCase']();_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5b4b63])=>{_0x2606fa['setImageNaturalSizeAttributes'](_0x5b4b63['getContainedElement']());}),_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4ab3ff,_0x47b94b)=>{_0x839ba3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4ab3ff,{'commandName':_0x47b94b['commandName'],'commandParams':_0x47b94b['commandReversedParams']});}),_0x839ba3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x491609,_0x22c977){if(_0x4a3e5b(_0x491609,_0x22c977))return[_0x491609,_0x22c977];if(_0x4a3e5b(_0x22c977,_0x491609))return[_0x22c977,_0x491609];return null;});const _0x3afdd6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4a3e5b(_0x111993,_0x48337d){const _0x314232=_0x3afdd6['findIndex'](({type:_0x12885d,subType:_0x2f5b72})=>_0x111993['type']==_0x12885d&&_0x111993['subType']==_0x2f5b72),_0x25f390=_0x3afdd6['findIndex'](({type:_0x43ee55,subType:_0x2291e7})=>_0x48337d['type']==_0x43ee55&&_0x48337d['subType']==_0x2291e7);if(_0x314232<0x0||_0x25f390<0x0)return!0x1;const _0x902508=_0x111993['getFirstRange'](),_0x202db3=_0x48337d['getFirstRange']();if((0x0==_0x314232||0x1==_0x314232)&&0x2==_0x25f390&&_0x902508['isIntersecting'](_0x202db3))return!0x0;if(0x2==_0x314232&&0x3==_0x25f390){const _0xf1a5d5=_0x839ba3['_findSuggestions'](_0x902508,'insertion')['filter'](({suggestion:_0x41a7cb,meta:_0x140c1d})=>_0x140c1d['isOwn']&&'convertInlineImageToBlock'==_0x41a7cb['subType']);if(_0xf1a5d5['length']>0x1&&_0x202db3['end']['isEqual'](_0x902508['start']))return!0x0;if(0x1==_0xf1a5d5['length']&&(_0x902508['start']['isEqual'](_0x202db3['end'])||_0x902508['end']['isEqual'](_0x202db3['start'])))return!0x0;}if(0x3==_0x314232&&0x3==_0x25f390&&_0x902508['start']['isBefore'](_0x202db3['start'])){const _0x1b05c0=_0x902508['end']['nodeAfter'],_0x2adac9=_0x202db3['start']['nodeBefore'];return _0x2606fa['isBlockImage'](_0x1b05c0)&&_0x1b05c0===_0x2adac9;}return!0x1;}_0x5b59ce['model']['document']['registerPostFixer'](()=>{let _0x4d8227=!0x1;const _0x2048b7=Array['from'](_0x5b59ce['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c1808,data:_0x108826}of _0x2048b7){const {group:_0x326a5a,type:_0x817a89,subType:_0x489b29,id:_0x54d5be}=_0x839ba3['_splitMarkerName'](_0x3c1808);if('suggestion'==_0x326a5a&&_0x839ba3['hasSuggestion'](_0x54d5be)){if('formatBlock'==_0x817a89&&('imageStylePreApply'==_0x489b29||'imageStylePostApply'==_0x489b29)){const _0x5e2dc3=_0x839ba3['getSuggestion'](_0x54d5be);if(_0x108826['newRange']){const _0x488323=_0x5e2dc3['getFirstRange']()['getContainedElement']();if(_0x2606fa['isBlockImage'](_0x488323))continue;_0x839ba3['discardSuggestion'](_0x5e2dc3),_0x4d8227=!0x0;}}if('insertion'==_0x817a89&&'imageCaption'==_0x489b29&&!_0x108826['newRange']){const _0x2c4e7c=_0x839ba3['getSuggestion'](_0x54d5be);_0x2c4e7c['next']&&_0x2c4e7c['next']['isInContent']&&(_0x839ba3['discardSuggestion'](_0x2c4e7c['next']),_0x4d8227=!0x0);}}}return _0x4d8227;}),this['_registerLegacyDescription'](_0x211545);}['_registerLegacyDescription'](_0x206292){const _0x1565be=this['editor'],_0x1817f5=_0x1565be['locale'];_0x1565be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x334fb7=>{if('formatBlock'!=_0x334fb7['type']&&'formatInline'!=_0x334fb7['type'])return;const {data:_0x1ba4cc}=_0x334fb7;if(!_0x1ba4cc||'imageStyle'!=_0x1ba4cc['commandName'])return;const _0x415fdf=_0x1ba4cc['commandParams'][0x0]['value'];return _0x33d3ae('side'===_0x415fdf?o(_0x1817f5,'FORMAT_SIDE_IMAGE'):_0x206292[_0x415fdf]||_0x415fdf);function _0x33d3ae(_0x6a1af4){return{'type':'format','content':o(_0x1817f5,'*Format:*\x20%0',_0x6a1af4)};}});}}class ct extends _0x36effd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x18cad1){super(_0x18cad1),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x352ef1=this['editor'],_0x2fd69a=_0x352ef1['commands']['get']('importWord'),_0x142b7d=_0x352ef1['commands']['get']('trackChanges');_0x2fd69a&&(_0x2fd69a['on']('execute',(_0x4bf0e6,[,_0x3cade9])=>{this['_trackChangesValueDuringImport']=_0x142b7d['value'],_0x3cade9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2fd69a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2fd69a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x142b7d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x352ef1['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x463877,_0x45fbbf){const {suggestions:_0x1de08f}=_0x45fbbf,_0x1f4705=this['editor']['commands']['get']('trackChanges'),_0x110e06=_0x1f4705['value'];this['_trackChangesValueDuringImport']!==_0x110e06&&(_0x1f4705['execute'](),this['_trackChangesExecuted']=!0x0),_0x1de08f&&_0x1de08f['forEach'](({id:_0x32f31f,type:_0x5aeecb,author:_0x345f45,created_at:_0x8a2082})=>{const _0x444f12={'id':_0x32f31f,'type':_0x5aeecb,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x345f45,'createdAt':_0x8a2082?new Date(_0x8a2082):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x444f12);});}}class ut extends _0x36effd{['afterInit'](){const _0x14e7f5=this['editor'],_0x2127e4=_0x14e7f5['plugins']['get']('TrackChangesEditing');if(_0x14e7f5['plugins']['has']('IndentEditing')&&(_0x2127e4['enableCommand']('indent'),_0x2127e4['enableCommand']('outdent')),_0x14e7f5['plugins']['has']('IndentBlock')){for(const _0x1e7d79 of['indentBlock','outdentBlock'])_0x2127e4['enableDefaultAttributesIntegration'](_0x1e7d79);}const _0x150bcc=_0x14e7f5['locale'];_0x2127e4['registerBlockAttribute']('blockIndent'),_0x2127e4['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x150bcc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x332386=this['editor'],_0x425142=_0x332386['locale'],_0x5d4913=_0x332386['plugins']['get']('TrackChangesEditing');_0x5d4913['descriptionFactory']['registerDescriptionCallback'](_0x192404=>{if('formatBlock'!=_0x192404['type'])return;const {data:_0x30a06f}=_0x192404;if(!_0x30a06f)return;if('indentBlock'!=_0x30a06f['commandName']&&'outdentBlock'!=_0x30a06f['commandName'])return;const _0x326643=_0x192404['getItems']()[0x0],_0x158ca6=_0x5d4913['descriptionFactory']['getItemLabel'](_0x326643);return'indentBlock'==_0x30a06f['commandName']?{'type':'format','content':o(_0x425142,'*Indent:*\x20%0',_0x158ca6)}:'outdentBlock'==_0x30a06f['commandName']?{'type':'format','content':o(_0x425142,'*Outdent:*\x20%0',_0x158ca6)}:void 0x0;});}}class ft extends _0x36effd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x36effd{['afterInit'](){const _0x4ecb03=this['editor'];if(!_0x4ecb03['plugins']['has']('LinkEditing'))return;const _0x2647cb=_0x4ecb03['plugins']['get']('TrackChangesEditing'),_0x48f51e=_0x4ecb03['commands']['get']('link');_0x2647cb['enableDefaultAttributesIntegration']('link'),_0x2647cb['enableDefaultAttributesIntegration']('unlink'),_0x2647cb['registerInlineAttribute']('linkHref');for(const _0x2f2b97 of _0x48f51e['manualDecorators'])_0x2647cb['registerInlineAttribute'](_0x2f2b97['id']),_0x2647cb['descriptionFactory']['registerAttributeLabel'](_0x2f2b97['id'],'link\x20('+_0x2f2b97['label']['toLowerCase']()+')');_0x2647cb['descriptionFactory']['registerDescriptionCallback'](_0x363053=>{if('attribute'!=_0x363053['type'])return;const {data:_0x1168c4}=_0x363053;if(!_0x1168c4||'linkHref'!=_0x1168c4['key'])return;const _0x4b768a=_0x1168c4['newValue'],_0xf8b5b5=_0x4ecb03['locale'];return{'type':'format','content':null==_0x4b768a?o(_0xf8b5b5,'*Remove\x20link*'):o(_0xf8b5b5,'*Set\x20link:*\x20%0','\x22'+_0x4b768a+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29c1ef=this['editor'],_0x1eba5a=_0x29c1ef['locale'];_0x29c1ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59cb99=>{if('formatInline'!=_0x59cb99['type'])return;const {data:_0x4a9d32}=_0x59cb99;if(_0x4a9d32){if('link'==_0x4a9d32['commandName']){const _0x4ddf7b=_0x4a9d32['commandParams'][0x0];return{'type':'format','content':o(_0x1eba5a,'*Set\x20link:*\x20%0','\x22'+_0x4ddf7b+'\x22')};}return'unlink'==_0x4a9d32['commandName']?{'type':'format','content':o(_0x1eba5a,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x36effd{['afterInit'](){const _0x55a8fb=this['editor'],_0xf7f10e=_0x55a8fb['locale'];if(!_0x55a8fb['plugins']['has']('LegacyListEditing'))return;const _0x5c5964=_0x55a8fb['plugins']['get']('TrackChangesEditing'),_0x284f52=_0x55a8fb['plugins']['has']('LegacyTodoListEditing');function _0x3c67a9(_0x513322){return()=>{const _0x5454b8=_0x55a8fb['model']['document']['selection'],_0x57c0c5=_0x55a8fb['commands']['get'](_0x513322);if(_0x57c0c5['value'])return void _0x55a8fb['execute']('paragraph',{});const _0x53e658=_0x513322['slice'](0x0,-0x4),_0x1d9d31=function(_0x219656,_0x4333a5,_0x54c8a3){let _0x41401d=Array['from'](_0x219656)['filter'](_0x50e101=>function(_0x40eb1e,_0x4d2fe9){return _0x4d2fe9['checkChild'](_0x40eb1e['parent'],'listItem')&&!_0x4d2fe9['isObject'](_0x40eb1e);}(_0x50e101,_0x54c8a3));_0x41401d=_0x41401d['filter'](_0x464657=>!_0x464657['is']('element','listItem')||_0x464657['getAttribute']('listType')!=_0x4333a5);const _0x5bce66=new Set();for(const _0x4cdc3b of _0x41401d)_0x4cdc3b['is']('element','listItem')?_0x5bce66['add'](Le(_0x4cdc3b)):_0x5bce66['add'](_0x4cdc3b);return Array['from'](_0x5bce66);}(_0x5454b8['getSelectedBlocks'](),_0x53e658,_0x55a8fb['model']['schema']);_0x55a8fb['model']['change'](()=>{for(const _0xacdcdd of _0x1d9d31)_0x5c5964['markBlockFormat'](_0xacdcdd,{'commandName':_0x513322,'commandParams':[{'forceValue':!_0x57c0c5['value']}],'formatGroupId':'blockName'},Ee(_0xacdcdd));});};}function _0xc001db(_0x355941){return()=>{const _0x1ae599=function(_0x3c73c6){let _0x4f38bb=Array['from'](_0x3c73c6);const _0x3a8ea6=_0x4f38bb['findIndex'](_0x14c167=>'listItem'!=_0x14c167['name']);return _0x3a8ea6>-0x1&&(_0x4f38bb=_0x4f38bb['slice'](0x0,_0x3a8ea6)),_0x4f38bb;}(_0x55a8fb['model']['document']['selection']['getSelectedBlocks']()),_0x2e4b24=_0x55a8fb['model']['createRange'](_0x55a8fb['model']['createPositionAt'](_0x1ae599[0x0],'before'),_0x55a8fb['model']['createPositionAt'](_0x1ae599[_0x1ae599['length']-0x1],'end'));_0x55a8fb['model']['change'](()=>{_0x5c5964['markBlockFormat'](_0x2e4b24,{'commandName':_0x355941,'commandParams':[],'formatGroupId':'listIndent'},function(_0x249d29){const _0x5c03c3=new Set();for(const _0x29fd98 of _0x249d29){let _0x4096d2=_0x29fd98['nextSibling'];for(;_0x4096d2&&_0x4096d2['getAttribute']('listIndent')>_0x29fd98['getAttribute']('listIndent');)_0x5c03c3['add'](_0x4096d2),_0x4096d2=_0x4096d2['nextSibling'];}return Array['from'](_0x5c03c3);}(_0x1ae599));});};}_0x5c5964['enableCommand']('numberedList',_0x3c67a9('numberedList')),_0x5c5964['enableCommand']('bulletedList',_0x3c67a9('bulletedList')),_0x284f52&&_0x5c5964['enableCommand']('todoList',_0x3c67a9('todoList')),_0x5c5964['enableCommand']('indentList',_0xc001db('indentList')),_0x5c5964['enableCommand']('outdentList',_0xc001db('outdentList')),_0x284f52&&_0x5c5964['enableCommand']('checkTodoList',()=>{const _0xc558af=_0x55a8fb['commands']['get']('checkTodoList'),_0x455e36=Array['from'](_0xc558af['_selectedElements']);_0x455e36['filter'](_0x16a010=>_0x16a010['getAttribute']('todoListChecked')!=_0xc558af['value']),_0x55a8fb['model']['change'](()=>{for(const _0x3e0c00 of _0x455e36)_0x5c5964['markBlockFormat'](_0x3e0c00,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xc558af['value']}]});});}),_0x5c5964['descriptionFactory']['registerElementLabel']('listItem',_0x3282ff=>o(_0xf7f10e,'ELEMENT_LIST_ITEM',_0x3282ff)),_0x5c5964['descriptionFactory']['registerDescriptionCallback'](_0xd91aea=>{if('formatBlock'!=_0xd91aea['type']&&'formatInline'!=_0xd91aea['type'])return;const {data:_0x21b2de}=_0xd91aea;if(_0x21b2de){if('numberedList'==_0x21b2de['commandName']||'bulletedList'==_0x21b2de['commandName']||'todoList'==_0x21b2de['commandName'])switch(_0x21b2de['commandName']['replace']('List','')){case'bulleted':return _0x4ba5d5(o(_0xf7f10e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4ba5d5(o(_0xf7f10e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4ba5d5(o(_0xf7f10e,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21b2de['commandName'])return{'type':'format','content':o(_0xf7f10e,'*Indent:*\x20%0',o(_0xf7f10e,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21b2de['commandName'])return{'type':'format','content':o(_0xf7f10e,'*Outdent:*\x20%0',o(_0xf7f10e,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21b2de['commandName'])return _0x21b2de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xf7f10e,'*Check\x20item*')}:{'type':'format','content':o(_0xf7f10e,'*Uncheck\x20item*')};}function _0x4ba5d5(_0x1294eb){return{'type':'format','content':o(_0xf7f10e,'*Change\x20to:*\x20%0',_0x1294eb)};}});}}function Le(_0xeb93d6){const _0x5a4f9d=_0xeb93d6['getAttribute']('listIndent');if(0x0==_0x5a4f9d)return _0xeb93d6;let _0xb81fab=_0xeb93d6;for(;_0xeb93d6['previousSibling']&&_0xeb93d6['previousSibling']['is']('element','listItem');){const _0x1065ad=_0xeb93d6['previousSibling']['getAttribute']('listIndent');if(_0x1065ad==_0x5a4f9d)_0xb81fab=_0xeb93d6['previousSibling'];else{if(_0x1065ad<_0x5a4f9d)break;}_0xeb93d6=_0xeb93d6['previousSibling'];}return _0xb81fab;}function Ee(_0xe3344){const _0x1c9487=[];if(_0xe3344['is']('element','listItem')&&_0xe3344['getAttribute']('listIndent')>0x0){let _0x2c7edd=_0xe3344['nextSibling'];for(;_0x2c7edd&&'listItem'==_0x2c7edd['name']&&_0x2c7edd['getAttribute']('listIndent')==_0xe3344['getAttribute']('listIndent');)_0x1c9487['push'](_0x2c7edd),_0x2c7edd=_0x2c7edd['nextSibling'];}return _0x1c9487;}class Q extends _0x36effd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x33212f=this['editor']['config']['get']('list.properties'),_0x17d7de=this['editor']['plugins']['get']('TrackChangesEditing');_0x33212f['styles']&&_0x17d7de['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x33212f['reversed']&&_0x17d7de['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x33212f['startIndex']&&_0x17d7de['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x17d7de['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x534cb3,_0x32bb90={}){const _0x3cb169=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe68888=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3cb169['markMultiRangeBlockFormat'](_0xe68888,{'commandName':'listStyle','commandParams':[{'type':_0x32bb90['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3c1e92,_0x333b1d={}){const _0x3c402c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x328d94=this['_getSuggestionBlocks'](_0x3e146f=>_0x3e146f['is']('element','listItem')&&'numbered'===_0x3e146f['getAttribute']('listType'));if(_0x328d94['length']<0x1)return;const _0x331e01=_0x328d94['map'](_0x1bc111=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bc111,'before'),this['editor']['model']['createPositionAt'](_0x1bc111,0x0)));this['editor']['model']['change'](()=>{_0x3c402c['markMultiRangeBlockFormat'](_0x331e01,{'commandName':'listReversed','commandParams':[{'reversed':_0x333b1d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xc6ff9d,_0x3a2fe4={}){const _0x51658c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d3d6a=this['_getSuggestionBlocks'](_0x3ac6b9=>_0x3ac6b9['is']('element','listItem')&&'numbered'===_0x3ac6b9['getAttribute']('listType'));if(_0x3d3d6a['length']<0x1)return;const _0x2df376=_0x3d3d6a['map'](_0x4dc96b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4dc96b,'before'),this['editor']['model']['createPositionAt'](_0x4dc96b,0x0)));this['editor']['model']['change'](()=>{_0x51658c['markMultiRangeBlockFormat'](_0x2df376,{'commandName':'listStart','commandParams':[{'startIndex':_0x3a2fe4['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5d2af3){if('formatBlock'!=_0x5d2af3['type']&&'formatInline'!=_0x5d2af3['type'])return;const _0x12f7d9=this['editor']['locale'],{data:_0x4a8fb0}=_0x5d2af3;if(!_0x4a8fb0)return;let _0x112b5c,_0x4d4089;switch(_0x4a8fb0['commandName']){case'listStyle':_0x112b5c='*Change\x20to:*\x20%0',_0x4d4089={'type':'format','content':o(_0x12f7d9,_0x112b5c,o(_0x12f7d9,this['_getTranslationKeyForListStyle'](_0x4a8fb0['commandParams'][0x0]['type'])))};break;case'listReversed':_0x112b5c=_0x4a8fb0['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4d4089={'type':'format','content':o(_0x12f7d9,_0x112b5c)};break;case'listStart':_0x112b5c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4d4089={'type':'format','content':o(_0x12f7d9,_0x112b5c,_0x4a8fb0['commandParams'][0x0]['startIndex'])};}return _0x4d4089;}['_getSuggestionBlocksForListStyle'](){const _0x3644c1=this['editor']['plugins']['get']('LegacyListUtils');let _0x5a730b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5a730b[0x0]?.['is']('element','listItem')&&_0x5a730b['unshift'](..._0x3644c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5a730b[_0x5a730b['length']-0x1]?.['is']('element','listItem')&&_0x5a730b['push'](..._0x3644c1['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5a730b=[...new Set(_0x5a730b)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5a730b=_0x5a730b['filter'](_0x2ba955=>_0x2ba955['is']('element','listItem'))),_0x5a730b;}['_getSuggestionBlocks'](_0x3dcfea){const _0x2f6257=this['editor']['plugins']['get']('LegacyListUtils');let _0x59d71e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3dcfea)['map'](_0x90542c=>{const _0x4a70c4=this['editor']['model']['createPositionAt'](_0x90542c,0x0);return[..._0x2f6257['getSiblingNodes'](_0x4a70c4,'backward'),..._0x2f6257['getSiblingNodes'](_0x4a70c4,'forward')];})['flat']();return _0x59d71e=[...new Set(_0x59d71e)],_0x59d71e;}['_getTranslationKeyForListStyle'](_0x4be3ee){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4be3ee)||'default')['toUpperCase']()+'_LIST_'+_0x4be3ee['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x36effd{['afterInit'](){const _0x2e4e60=this['editor'];if(!_0x2e4e60['plugins']['has']('MediaEmbedEditing'))return;const _0x537ffe=_0x2e4e60['plugins']['get']('TrackChangesEditing'),_0x395772=_0x2e4e60['locale'];_0x537ffe['enableCommand']('mediaEmbed'),_0x537ffe['descriptionFactory']['registerElementLabel']('media',_0x358608=>o(_0x395772,'ELEMENT_MEDIA',_0x358608)),_0x2e4e60['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x502993,{writer:_0x53560d,options:_0x317574})=>{if(_0x317574['showSuggestionHighlights'])return _0x53560d['createEmptyElement']('div');},'converterPriority':'high'}),_0x2e4e60['data']['downcastDispatcher']['on']('attribute:url:media',(_0x48143b,_0x1f80c5,_0x27d384)=>{_0x27d384['options']['showSuggestionHighlights']&&_0x48143b['stop']();},{'priority':'high'});}}class mt extends _0x36effd{['afterInit'](){const _0x5c5ef1=this['editor'];_0x5c5ef1['plugins']['has']('MentionEditing')&&_0x5c5ef1['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x36effd{['afterInit'](){const _0x2db0fe=this['editor'];if(!_0x2db0fe['plugins']['has']('MergeFieldsEditing'))return;_0x2db0fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x2db0fe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x1c7e09=_0x2db0fe['plugins']['get']('TrackChangesEditing'),_0x35fb94=_0x2db0fe['locale'];_0x1c7e09['descriptionFactory']['registerElementLabel']('mergeField',_0x205e34=>o(_0x35fb94,'ELEMENT_MERGE_FIELD',_0x205e34)),_0x1c7e09['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xcb4c76=>o(_0x35fb94,'ELEMENT_MERGE_FIELD',_0xcb4c76)),_0x1c7e09['descriptionFactory']['registerDescriptionCallback'](_0x4e67d8=>{if('insertion'!=_0x4e67d8['type']&&'deletion'!=_0x4e67d8['type'])return;const _0x142119=_0x4e67d8['getContainedElement']();if(null==_0x142119)return;if(!_0x142119['is']('element','mergeField')&&!_0x142119['is']('element','mergeFieldBlock'))return;const _0x24e226=_0x2db0fe['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x142119['getAttribute']('id'));return'insertion'==_0x4e67d8['type']?{'type':'insertion','content':o(_0x35fb94,'*Insert:*\x20%0','\x22'+_0x24e226+'\x22\x20'+o(_0x35fb94,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x35fb94,'*Remove:*\x20%0','\x22'+_0x24e226+'\x22\x20'+o(_0x35fb94,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x36effd{['afterInit'](){const _0x70e95d=this['editor'],_0x43c7c9=_0x70e95d['plugins']['get']('TrackChangesEditing');_0x70e95d['plugins']['has']('MultiLevelList')&&(_0x43c7c9['enableDefaultAttributesIntegration']('multiLevelList'),_0x43c7c9['registerBlockAttribute']('listMarkerStyle'),_0x43c7c9['descriptionFactory']['registerDescriptionCallback'](_0x1b50a1=>this['handleDescriptions'](_0x1b50a1)));}['handleDescriptions'](_0x1d7770){const _0x273642=this['editor']['locale'],{data:_0x3f4b75}=_0x1d7770,_0x552b75={'type':'format','content':''};if(_0x3f4b75&&'listMarkerStyle'==_0x3f4b75['key']){if(!_0x3f4b75['oldValue'])return{'type':'format','content':o(_0x273642,'*Set\x20format:*\x20%0',o(_0x273642,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f4b75['newValue']+')'};if(!_0x3f4b75['newValue']){let _0x49c87d=_0x1d7770['head'];for(;_0x49c87d;){if(_0x49c87d['data']&&'listType'==_0x49c87d['data']['key']&&_0x49c87d['data']['newValue'])return _0x552b75;_0x49c87d=_0x49c87d['next'];}return{'type':'format','content':o(_0x273642,'*Remove\x20format:*\x20%0',o(_0x273642,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3f4b75['oldValue']+')'};}}}}class kt extends _0x36effd{['afterInit'](){const _0x35b6e4=this['editor'];if(!_0x35b6e4['plugins']['has']('PageBreakEditing'))return;_0x35b6e4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x46181c=_0x35b6e4['plugins']['get']('TrackChangesEditing'),_0xec96e=_0x35b6e4['locale'];_0x46181c['descriptionFactory']['registerElementLabel']('pageBreak',_0x4c74bd=>o(_0xec96e,'ELEMENT_PAGE_BREAK',_0x4c74bd));}}class bt extends _0x36effd{['afterInit'](){const _0x4dde43=this['editor'];if(!_0x4dde43['plugins']['has']('Paragraph'))return;const _0x328e96=_0x4dde43['locale'],_0x7d52fa=_0x4dde43['plugins']['get']('TrackChangesEditing');_0x7d52fa['descriptionFactory']['registerElementLabel']('paragraph',_0xbd6a5b=>o(_0x328e96,'ELEMENT_PARAGRAPH',_0xbd6a5b)),_0x7d52fa['enableDefaultAttributesIntegration']('paragraph'),_0x7d52fa['enableCommand']('insertParagraph'),_0x4dde43['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4dde43),{'priority':'highest'}),_0x4dde43['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x275993,_0x27cf2a,_0xea2532)=>{_0xea2532['options']['showSuggestionHighlights']&&nr(_0x4dde43,{'showActiveMarker':!0x1})(_0x275993,_0x27cf2a,_0xea2532);},{'priority':'highest'});const _0x23162d=_0x7d52fa['descriptionFactory'];_0x23162d['registerDescriptionCallback'](_0x441f4f=>{if('insertion'!==_0x441f4f['type'])return;const {start:_0x23702f,end:_0x29bb66}=_0x441f4f['getFirstRange']();if(!_0x23702f['isTouching'](_0x29bb66)||!_0x23702f['nodeAfter'])return;const _0x3820d8=_0x4dde43['model']['schema'],_0x4f6790=_0x23702f['nodeAfter'];return _0x3820d8['isBlock'](_0x4f6790)&&!_0x3820d8['isLimit'](_0x4f6790)&&_0x3820d8['checkChild'](_0x4f6790,'$text')?{'type':'insertion','content':o(_0x328e96,'*Insert:*\x20%0',_0x23162d['getItemLabel'](_0x4f6790,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4076c7=this['editor'],_0x393021=_0x4076c7['locale'];_0x4076c7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c57f5=>{if('formatBlock'!=_0x5c57f5['type'])return;const {data:_0x4e6f2c}=_0x5c57f5;return _0x4e6f2c&&'paragraph'==_0x4e6f2c['commandName']?{'type':'format','content':o(_0x393021,'*Change\x20to:*\x20%0',o(_0x393021,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x274438,{showActiveMarker:_0x436031=!0x0}={}){return(_0x2291a6,_0x32d3a4,_0x5e0444)=>{const _0x5d0524=_0x274438['plugins']['get']('TrackChangesEditing'),_0x239abb=_0x32d3a4['markerRange']['start'],_0x32a5fa=_0x32d3a4['markerRange']['end'],_0x52552e=_0x274438['model']['schema'];if(!_0x239abb['isTouching'](_0x32a5fa)||!_0x239abb['nodeAfter'])return;const _0x1247a6=_0x239abb['nodeAfter'];if(_0x52552e['isBlock'](_0x1247a6)&&!_0x52552e['isLimit'](_0x1247a6)&&_0x52552e['checkChild'](_0x1247a6,'$text')){if(!_0x5e0444['consumable']['consume'](_0x32d3a4['markerRange'],_0x2291a6['name']))return;const {authorId:_0x43b693}=_0x5d0524['_splitMarkerName'](_0x32d3a4['markerName']),_0x2bf3b4=_0x5e0444['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x43b693}),_0x81f3ca=_0x5e0444['mapper']['toViewPosition'](_0x32a5fa);_0x436031&&_0x5d0524['activeMarkers']['includes'](_0x32d3a4['markerName'])&&_0x5e0444['writer']['addClass']('ck-suggestion-marker--active',_0x2bf3b4),_0x5e0444['writer']['insert'](_0x81f3ca,_0x2bf3b4),_0x5e0444['mapper']['bindElementToMarker'](_0x2bf3b4,_0x32d3a4['markerName']);}};}class yt extends _0x36effd{['afterInit'](){const _0x4051ca=this['editor'];if(!_0x4051ca['plugins']['has']('RemoveFormatEditing'))return;_0x4051ca['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x168513=this['editor'];_0x168513['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46768b=>{if('formatBlock'!=_0x46768b['type']&&'formatInline'!=_0x46768b['type'])return;const {data:_0x7d19d2}=_0x46768b;return _0x7d19d2&&'removeFormat'==_0x7d19d2['commandName']?{'type':'format','content':o(_0x168513['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x36effd{['afterInit'](){const _0x19d83d=this['editor'];if(!_0x19d83d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26e72d=_0x19d83d['plugins']['get']('TrackChangesEditing');_0x26e72d['enableCommand']('goToPreviousRestrictedEditingException'),_0x26e72d['enableCommand']('goToNextRestrictedEditingException');const _0x233a8d=_0x19d83d['plugins']['get']('RestrictedEditingModeEditing');_0x233a8d['enableCommand']('trackChanges'),_0x233a8d['enableCommand']('acceptSuggestion'),_0x233a8d['enableCommand']('discardSuggestion'),_0x233a8d['enableCommand']('acceptAllSuggestions'),_0x233a8d['enableCommand']('discardAllSuggestions'),_0x233a8d['enableCommand']('acceptSelectedSuggestions'),_0x233a8d['enableCommand']('discardSelectedSuggestions');}}class St extends _0x36effd{static get['requires'](){return[_0xa84f6b];}['init'](){const _0x2780ec=this['editor'],_0x30776b=_0x2780ec['plugins']['get']('TrackChangesEditing');_0x30776b['enableCommand']('shiftEnter'),_0x2780ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ke(_0x2780ec),{'priority':'high'}),_0x2780ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ke(_0x2780ec),{'priority':'high'}),_0x2780ec['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x460b38,_0x5ac06f,_0x54202e)=>{_0x54202e['options']['showSuggestionHighlights']&&ke(_0x2780ec,{'showActiveMarker':!0x1})(_0x460b38,_0x5ac06f,_0x54202e);}),_0x30776b['descriptionFactory']['registerElementLabel']('softBreak',_0x1df5d9=>o(_0x2780ec['locale'],'ELEMENT_LINE_BREAK',_0x1df5d9));}}function ke(_0x578a60,{showActiveMarker:_0x4006bf=!0x0}={}){return(_0x409435,_0x1cc46e,_0x141b1e)=>{const _0x41d2cc=_0x578a60['plugins']['get']('TrackChangesEditing');if(!_0x141b1e['consumable']['test'](_0x1cc46e['markerRange'],_0x409435['name']))return;const _0x1d6a9a=_0x578a60['model'];for(const _0x25eb29 of _0x1cc46e['markerRange']['getItems']()){if(!_0x25eb29['is']('element','softBreak'))continue;const _0x183189='deletion'==_0x1cc46e['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x577670}=_0x41d2cc['_splitMarkerName'](_0x1cc46e['markerName']),_0xe2d145=_0x141b1e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x183189,'data-author-id':_0x577670}),_0xe5db55=_0x141b1e['mapper']['toViewPosition'](_0x1d6a9a['createPositionBefore'](_0x25eb29));_0x4006bf&&_0x41d2cc['activeMarkers']['includes'](_0x1cc46e['markerName'])&&_0x141b1e['writer']['addClass']('ck-suggestion-marker--active',_0xe2d145),_0x141b1e['writer']['insert'](_0xe5db55,_0xe2d145),_0x141b1e['mapper']['bindElementToMarker'](_0xe2d145,_0x1cc46e['markerName']);}};}class At extends _0x36effd{['afterInit'](){const _0x4467ed=this['editor'],_0x50e249=_0x4467ed['model'],_0xb35370=_0x4467ed['locale'];if(!_0x4467ed['plugins']['has']('StandardEditingModeEditing'))return;const _0xe66ce8=_0x4467ed['plugins']['get']('TrackChangesEditing'),_0x1f6a1d='restrictedEditingException',_0x1622ae=_0x4467ed['commands']['get'](_0x1f6a1d);_0xe66ce8['enableCommand'](_0x1f6a1d,(_0x15ba80,_0x47af8a={})=>{const _0xf9975e=_0x50e249['document']['selection'];if(_0xf9975e['isCollapsed'])return void _0x15ba80(_0x47af8a);const _0x2d1b9b=void 0x0!==_0x47af8a['forceValue']?_0x47af8a['forceValue']:!_0x1622ae['value'];_0x50e249['change'](()=>{const _0x1fcad2=Array['from'](_0xf9975e['getRanges']());for(const _0x2344ef of _0x1fcad2){const _0x16775e=_0x2d1b9b?[_0x2344ef]:io(_0x1f6a1d,_0x2344ef,_0x50e249);for(const _0x17fc2e of _0x16775e)_0xe66ce8['markInlineFormat'](_0x17fc2e,{'commandName':_0x1f6a1d,'commandParams':[{'forceValue':_0x2d1b9b}]});}});}),_0xe66ce8['descriptionFactory']['registerDescriptionCallback'](_0x3d6840=>{if('formatBlock'!=_0x3d6840['type']&&'formatInline'!=_0x3d6840['type'])return;const {data:_0x2b5004}=_0x3d6840;return _0x2b5004&&_0x2b5004['commandName']==_0x1f6a1d?_0x2b5004['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb35370,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb35370,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x36effd{['afterInit'](){const _0x32576d=this['editor'];if(!_0x32576d['plugins']['has']('Style')||!_0x32576d['plugins']['has']('DataSchema'))return;const _0xc464c7=_0x32576d['plugins']['get']('TrackChangesEditing'),_0x4ed956=_0x32576d['locale'],_0x1cf0f2=_0x32576d['config']['get']('style')||{},_0x44acc5=_0x32576d['plugins']['get']('GeneralHtmlSupport'),_0x5d7dc3=_0x32576d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x32576d['plugins']['get']('DataSchema'),_0x1cf0f2['definitions']);_0xc464c7['enableDefaultAttributesIntegration']('style');const _0x5b1f1f=new Set();for(const _0x5222db of _0x5d7dc3['block']){const _0x4a4895=_0x44acc5['getGhsAttributeNameForElement'](_0x5222db['element']);_0x5b1f1f['add'](_0x4a4895);}const _0x4690ca=new Set();for(const _0x5b56df of _0x5d7dc3['inline']){const _0x4c43a8=_0x44acc5['getGhsAttributeNameForElement'](_0x5b56df['element']);_0x4690ca['add'](_0x4c43a8);for(const _0xf763ab of _0x5b56df['ghsAttributes'])_0x4690ca['add'](_0xf763ab);}for(const _0x2f6189 of _0x5b1f1f)_0xc464c7['registerBlockAttribute'](_0x2f6189),_0xc464c7['descriptionFactory']['registerAttributeLabel'](_0x2f6189,o(_0x4ed956,'FORMAT_STYLE'));for(const _0x545039 of _0x4690ca)_0xc464c7['registerInlineAttribute'](_0x545039),_0xc464c7['descriptionFactory']['registerAttributeLabel'](_0x545039,o(_0x4ed956,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b2022=this['editor'],_0x57995b=_0x2b2022['locale'];_0x2b2022['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd8e242=>{if('formatBlock'!=_0xd8e242['type']&&'formatInline'!=_0xd8e242['type'])return;const {data:_0x610405}=_0xd8e242;return _0x610405&&'style'===_0x610405['commandName']?_0x610405['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57995b,'*Set\x20format:*\x20%0',_0x610405['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x57995b,'*Remove\x20format:*\x20%0',_0x610405['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x36effd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x38fd22){super(_0x38fd22),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xf3cd08=this['editor'],_0x235601=_0xf3cd08['model']['document']['selection'];if(!_0xf3cd08['plugins']['has']('TableEditing'))return;const _0x1d3f5c=_0xf3cd08['locale'],_0x1ce083=_0xf3cd08['plugins']['get']('TrackChangesEditing'),_0x406311=_0xf3cd08['plugins']['get']('TableUtils');_0x1ce083['descriptionFactory']['registerElementLabel']('table',_0x30fa67=>o(_0x1d3f5c,'ELEMENT_TABLE',_0x30fa67)),this['_setupColumnsRowsFixing'](),_0x1ce083['enableCommand']('insertTable'),_0x1ce083['enableCommand']('selectTableRow'),_0x1ce083['enableCommand']('selectTableColumn');for(const _0x5827f2 of['insertTableRowAbove','insertTableRowBelow']){const _0x28d6e6=_0xf3cd08['commands']['get'](_0x5827f2);_0x1ce083['enableCommand'](_0x5827f2,_0x1be771=>{_0xf3cd08['model']['change'](_0x5a829e=>{_0x1be771();const _0x4a45d1='above'===_0x28d6e6['order'],_0x14828d=_0x406311['getSelectionAffectedTableCells'](_0x235601),_0x5c9132=_0x406311['getRowIndexes'](_0x14828d),_0x12c015=_0x4a45d1?_0x5c9132['first']-0x1:_0x5c9132['last']+0x1,_0x20281b=_0x14828d[0x0]['findAncestor']('table'),_0x179010=_0x406311['createTableWalker'](_0x20281b,{'startRow':_0x12c015,'endRow':_0x12c015}),_0x56a658=Array['from'](_0x179010)['map'](_0x55b987=>_0x5a829e['createRangeOn'](_0x55b987['cell']));_0x1ce083['markMultiRangeInsertion'](_0x56a658,'tableRow');});});}for(const _0x1cd3db of['insertTableColumnLeft','insertTableColumnRight']){const _0x770205=_0xf3cd08['commands']['get'](_0x1cd3db);_0x1ce083['enableCommand'](_0x1cd3db,_0x49811c=>{_0xf3cd08['model']['change'](_0x42f294=>{_0x49811c();const _0x299d04='left'===_0x770205['order'],_0x3d7fb4=_0x406311['getSelectionAffectedTableCells'](_0x235601),_0x2cc946=_0x406311['getColumnIndexes'](_0x3d7fb4),_0x31352a=_0x299d04?_0x2cc946['first']-0x1:_0x2cc946['last']+0x1,_0x8b84df=_0x3d7fb4[0x0]['findAncestor']('table'),_0x39ed5f=_0x406311['createTableWalker'](_0x8b84df,{'startRow':0x0,'column':_0x31352a,'includeAllSlots':!0x1}),_0x11a587=Array['from'](_0x39ed5f)['map'](_0x3f5c1c=>_0x42f294['createRangeOn'](_0x3f5c1c['cell']));_0x1ce083['markMultiRangeInsertion'](_0x11a587,'tableColumn');});});}for(const _0x2a515f of['removeTableRow','removeTableColumn']){const _0x2c487d=_0x2a515f['substr'](0xb),_0x5ba7b4=_0x2c487d['toLowerCase'](),_0x166026=_0x5ba7b4['substr'](0x0,0x3)+'span',_0x2e90f7='table'+_0x2c487d,_0x37d2dd='min'+_0x2c487d,_0x333b58='max'+_0x2c487d;_0x1ce083['enableCommand'](_0x2a515f,()=>{_0xf3cd08['model']['change'](_0x5524c1=>{const _0x2c3a16=_0x406311['getSelectionAffectedTableCells'](_0x235601),_0x4a90de=_0x2c3a16[0x0]['findAncestor']('table');let _0x172b74;if('removeTableRow'==_0x2a515f){const _0x2e0412=_0x406311['getRowIndexes'](_0x2c3a16);_0x172b74={'startRow':_0x2e0412['first'],'endRow':_0x2e0412['last'],'includeAllSlots':!0x0};}else{const _0x315e25=_0x406311['getColumnIndexes'](_0x2c3a16);_0x172b74={'startColumn':_0x315e25['first'],'endColumn':_0x315e25['last'],'includeAllSlots':!0x0};}const _0x186449=_0x406311['createTableWalker'](_0x4a90de,_0x172b74),_0x1a112b=Array['from'](_0x186449)['map'](({cell:_0x4572ed})=>_0x4572ed),_0x485a07=Re(_0x1a112b['filter'](_0x345f3d=>_0x345f3d['hasAttribute'](_0x166026))),_0xed33d8=Re(_0x1a112b['filter'](_0x2a93ee=>!_0x2a93ee['hasAttribute'](_0x166026)))['map'](_0x229d83=>_0x5524c1['createRangeOn'](_0x229d83)),_0x24ab22=_0x1ce083['markMultiRangeDeletion'](_0xed33d8,_0x2e90f7);if(_0x24ab22&&('tableRow'==_0x24ab22['subType']||'tableColumn'==_0x24ab22['subType'])){const _0x40c1c3=this['_getSuggestionCoords'](_0x24ab22);for(const _0x14e395 of _0x485a07){const _0x5c0626=_0x5524c1['createRangeOn'](_0x14e395),_0x4be6bd=_0x406311['getCellLocation'](_0x14e395),_0x485b4d=_0x14e395['getAttribute'](_0x166026)-0x1,_0x583618=_0x40c1c3[_0x37d2dd],_0x808f04=_0x40c1c3[_0x333b58];_0x583618<=_0x4be6bd[_0x5ba7b4]&&_0x4be6bd[_0x5ba7b4]+_0x485b4d<=_0x808f04&&_0x24ab22['addRange'](_0x5c0626);}}});});}function _0xe2f75(_0x5b92f0){const _0xf1a1e9=Array['from'](_0x235601['getRanges']())['map'](_0x3766b6=>_0x495739['fromRange'](_0x3766b6));_0xf3cd08['model']['change'](_0x2fe5dd=>{const _0x34a5a7=_0x2fe5dd['batch'];_0x5b92f0=_0x5b92f0['filter'](_0x3b6dbf=>'$graveyard'!=_0x3b6dbf['root']['rootName']),_0x2fe5dd['setSelection'](_0x5b92f0),_0xf3cd08['commands']['get']('removeTableRow')['refresh'](),_0xf3cd08['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xf3cd08['model']['enqueueChange'](()=>{_0xf3cd08['model']['enqueueChange'](_0x34a5a7,_0x5adcae=>{const _0x5ad29e=_0xf1a1e9['filter'](_0x414452=>'$graveyard'!=_0x414452['root']['rootName']);_0x5ad29e['length']>0x0&&_0x5adcae['setSelection'](_0x5ad29e);for(const _0x199937 of _0xf1a1e9)_0x199937['detach']();});});});}function _0x14c6cc(_0x3c40b6){_0xf3cd08['model']['change'](_0xe6f92=>{const _0x4495ae=Array['from'](_0x235601['getRanges']())['map'](_0x1e604d=>_0x495739['fromRange'](_0x1e604d)),_0x5ca0a8=[];for(const _0x81a522 of _0x3c40b6)for(const _0x5ef617 of _0x81a522['getItems']({'shallow':!0x0}))_0x5ca0a8['push'](_0x5ef617);for(const _0x2d960a of _0x5ca0a8)'$graveyard'!=_0x2d960a['root']['rootName']&&(_0xe6f92['setSelection'](_0xe6f92['createPositionAt'](_0x2d960a,0x0)),_0xf3cd08['commands']['get']('removeTableColumn')['refresh'](),_0xf3cd08['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e5a40=_0x4495ae['filter'](_0x1cbeb7=>'$graveyard'!=_0x1cbeb7['root']['rootName']);_0x3e5a40['length']>0x0&&_0xe6f92['setSelection'](_0x3e5a40);for(const _0x39eb1f of _0x4495ae)_0x39eb1f['detach']();});}function _0x2217f3(_0x11a314,_0x2f5aba){return _0x2f5aba['every'](_0x219823=>_0x11a314['some'](_0x248722=>_0x248722['end']['isEqual'](_0x219823['start'])||_0x219823['end']['isEqual'](_0x248722['start'])));}function _0x4b0ca3(_0x4c4761,_0x24747a){return!_0x4c4761['some'](_0x59c973=>_0x24747a['some'](_0x544f6e=>_0x59c973['isIntersecting'](_0x544f6e)))&&_0x4c4761['some'](_0x1bbb93=>_0x24747a['some'](_0x1c216a=>_0x1bbb93['end']['isTouching'](_0x1c216a['start'])));}_0xf3cd08['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c1f6d,_0x3170a6,_0x36ac21)=>{if(!_0x36ac21['options']['showSuggestionHighlights'])return;const _0x1bc6ff=_0x3170a6['item'];if(!_0x1bc6ff)return;const _0x3a19d5=_0x36ac21['mapper']['toViewElement'](_0x1bc6ff);function _0x18c94b(_0x78db7){return Array['isArray'](_0x78db7)?_0x78db7:[_0x78db7];}_0x3a19d5&&'tableCell'===_0x1bc6ff['name']&&_0x3c08f7(_0x3a19d5,_0x36ac21['writer'],(_0x2637aa,_0x4cbe79,_0x4baeea)=>_0x4baeea['addClass'](_0x18c94b(_0x4cbe79['classes']),_0x2637aa),(_0x189fe0,_0x28b366,_0x31c76a)=>_0x31c76a['removeClass'](_0x18c94b(_0x28b366['classes']),_0x189fe0));},{'priority':'highest'}),_0x1ce083['descriptionFactory']['registerDescriptionCallback'](_0x4d5104=>{if('insertion'!=_0x4d5104['type']&&'deletion'!=_0x4d5104['type'])return;const _0x4d8669=_0x4d5104['getContainedElement']();if(null!=_0x4d8669&&_0x4d8669['is']('element','table')){if('insertion'==_0x4d5104['type']){const _0x1f442c=_0x4d5104['getItems']()['filter'](_0x2c70ba=>_0x2c70ba['is']('$textProxy'))['map'](_0x149273=>_0x149273['data']);if(_0x1f442c['length'])return{'type':'insertion','content':o(_0x1d3f5c,'*Insert:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1f442c['join']('\x20')+'\x22'))};}if('deletion'==_0x4d5104['type']){const _0xfef5bd=_0x4d5104['getItems']()['filter'](_0x504e93=>_0x504e93['is']('$textProxy'))['map'](_0x186b31=>_0x186b31['data']);if(_0xfef5bd['length'])return{'type':'deletion','content':o(_0x1d3f5c,'*Remove:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xfef5bd['join']('\x20')+'\x22'))};}}}),_0x1ce083['descriptionFactory']['registerDescriptionCallback'](_0x2ba33f=>{if('tableRow'==_0x2ba33f['subType']){const _0x46c3c5=_0x2ba33f['getItems']()['filter'](_0x45aa4d=>_0x45aa4d['is']('$textProxy'))['map'](_0x15473c=>_0x15473c['data']),_0x49ffc3=this['_getSuggestionCoords'](_0x2ba33f),_0xe91ce4=_0x49ffc3['maxRow']-_0x49ffc3['minRow']+0x1;if('insertion'==_0x2ba33f['type'])return _0x46c3c5['length']?{'type':'insertion','content':o(_0x1d3f5c,'*Insert:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe91ce4,'\x22'+_0x46c3c5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d3f5c,'*Insert:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_ROW',_0xe91ce4))};if('deletion'==_0x2ba33f['type'])return _0x46c3c5['length']?{'type':'deletion','content':o(_0x1d3f5c,'*Remove:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xe91ce4,'\x22'+_0x46c3c5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d3f5c,'*Remove:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_ROW',_0xe91ce4))};}if('tableColumn'==_0x2ba33f['subType']){const _0x2b3081=_0x2ba33f['getItems']()['filter'](_0x2be958=>_0x2be958['is']('$textProxy'))['map'](_0x35668c=>_0x35668c['data']),_0x5d0c76=this['_getSuggestionCoords'](_0x2ba33f),_0x5ac599=_0x5d0c76['maxColumn']-_0x5d0c76['minColumn']+0x1;if('insertion'==_0x2ba33f['type'])return _0x2b3081['length']?{'type':'insertion','content':o(_0x1d3f5c,'*Insert:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ac599,'\x22'+_0x2b3081['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1d3f5c,'*Insert:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_COLUMN',_0x5ac599))};if('deletion'==_0x2ba33f['type'])return _0x2b3081['length']?{'type':'deletion','content':o(_0x1d3f5c,'*Remove:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5ac599,'\x22'+_0x2b3081['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1d3f5c,'*Remove:*\x20%0',o(_0x1d3f5c,'ELEMENT_TABLE_COLUMN',_0x5ac599))};}}),_0x1ce083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0xe2f75),_0x1ce083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0xe2f75),_0x1ce083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x14c6cc),_0x1ce083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x14c6cc),_0x1ce083['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2217f3),_0x1ce083['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2217f3),_0x1ce083['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4b0ca3),_0x1ce083['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4b0ca3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x16b6e7=this['editor'],_0x32ab16=_0x16b6e7['model']['document']['selection'];return(_0x534c79,_0xb60796)=>{_0x16b6e7['model']['change'](_0x251615=>{const {commandName:_0x3a89ab,commandParams:_0x451a2e}=_0xb60796;let _0x1050c7=_0x534c79[0x0]['end']['nodeBefore'];_0x451a2e&&_0x451a2e[0x0]&&!0x1===_0x451a2e[0x0]['forceValue']&&(_0x1050c7=_0x534c79[0x0]['start']['nodeAfter']);const _0x42e7ec=_0x251615['createRangeIn'](_0x1050c7);if('$graveyard'==_0x42e7ec['root']['rootName'])return;const _0x53201f=Array['from'](_0x32ab16['getRanges']())['map'](_0xd71d92=>_0x495739['fromRange'](_0xd71d92));_0x251615['setSelection'](_0x42e7ec),_0x16b6e7['commands']['get'](_0x3a89ab)['refresh'](),_0x451a2e['push']({'forceDefaultExecution':!0x0}),_0x16b6e7['execute'](_0x3a89ab,..._0x451a2e);const _0x4c881a=_0x53201f['filter'](_0x1de7be=>'$graveyard'!=_0x1de7be['root']['rootName']);_0x4c881a['length']>0x0&&_0x251615['setSelection'](_0x4c881a);for(const _0x2d78a1 of _0x53201f)_0x2d78a1['detach']();});};}['_getCoordsForCells'](_0xacd595){const _0x1024b2=this['editor']['plugins']['get']('TableUtils');let _0x3509ea=Number['MAX_SAFE_INTEGER'],_0x44213a=Number['MIN_SAFE_INTEGER'],_0x4dccd6=Number['MAX_SAFE_INTEGER'],_0xb8905=Number['MIN_SAFE_INTEGER'];for(const _0x3f7e49 of _0xacd595){if('$graveyard'==_0x3f7e49['root']['rootName'])continue;const {row:_0x206a4a,column:_0x2424f1}=_0x1024b2['getCellLocation'](_0x3f7e49),_0x80d041=_0x3f7e49['hasAttribute']('rowspan')?_0x3f7e49['getAttribute']('rowspan')-0x1:0x0,_0x28ee0b=_0x3f7e49['hasAttribute']('colspan')?_0x3f7e49['getAttribute']('colspan')-0x1:0x0;_0x3509ea=_0x206a4a<_0x3509ea?_0x206a4a:_0x3509ea,_0x44213a=_0x206a4a+_0x80d041>_0x44213a?_0x206a4a+_0x80d041:_0x44213a,_0x4dccd6=_0x2424f1<_0x4dccd6?_0x2424f1:_0x4dccd6,_0xb8905=_0x2424f1+_0x28ee0b>_0xb8905?_0x2424f1+_0x28ee0b:_0xb8905;}return{'minRow':_0x3509ea,'maxRow':_0x44213a,'minColumn':_0x4dccd6,'maxColumn':_0xb8905};}['_setupColumnsRowsFixing'](){const _0x5c498f=this['editor'],_0x5926ac=_0x5c498f['plugins']['get']('TrackChangesEditing'),_0x412768=_0x5c498f['plugins']['get']('TableUtils');_0x5c498f['model']['document']['on']('change:data',()=>{const _0x28c94b=Array['from'](_0x5c498f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2ac335,data:_0x36f8de}of _0x28c94b){const {group:_0x266664,id:_0x4a396b,subType:_0x23276f}=_0x5926ac['_splitMarkerName'](_0x2ac335);if('suggestion'!=_0x266664)continue;if(null!=_0x36f8de['oldRange'])continue;const _0x3f4aa6=_0x5926ac['getSuggestion'](_0x4a396b);this['_tablePostFixingSubtypes']['includes'](_0x23276f)&&this['_tableSuggestions']['add'](_0x3f4aa6);}},{'priority':'low'});const _0x234cd5=(_0x4542b7,_0x4768e2)=>{let _0x28830e=!0x1;const _0x5eae2d=_0x4768e2['createRangeOn'](_0x4542b7),_0x36bb17=_0x4542b7['findAncestor']('table'),_0x48f946=_0x412768['getCellLocation'](_0x4542b7);for(const _0x7897eb of this['_tableSuggestions']){const _0x1d60ec=_0x7897eb['subType'],_0x5964b6=_0x1d60ec['startsWith']('tablePaste'),_0x261d50=_0x1d60ec['substr'](_0x5964b6?0xa:0x5),_0x1a6f92=_0x261d50['toLowerCase'](),_0x34112b=_0x1a6f92['substr'](0x0,0x3)+'span',_0x2df094='min'+_0x261d50,_0x4edbc4='max'+_0x261d50;if(!_0x7897eb['isInContent'])continue;if(_0x36bb17!=_0x7897eb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x7897eb['isIntersectingWithRange'](_0x5eae2d))continue;const _0x475d4d=_0x4542b7['hasAttribute'](_0x34112b)?_0x4542b7['getAttribute'](_0x34112b)-0x1:0x0,_0x20043c=this['_getSuggestionCoords'](_0x7897eb),_0x5ef532=_0x20043c[_0x2df094],_0x50e745=_0x20043c[_0x4edbc4];_0x5ef532<=_0x48f946[_0x1a6f92]&&_0x48f946[_0x1a6f92]+_0x475d4d<=_0x50e745&&(_0x7897eb['addRange'](_0x5eae2d),_0x28830e=!0x0);}return _0x28830e;};_0x5c498f['model']['document']['registerPostFixer'](_0xb832c7=>{let _0x5d1832=!0x1;for(const _0x55a29b of _0x5c498f['model']['document']['differ']['getChanges']())if('insert'==_0x55a29b['type']){if('tableRow'==_0x55a29b['name']){for(const _0x762cfe of _0x55a29b['position']['nodeAfter']['getChildren']())_0x5d1832=_0x5d1832||_0x234cd5(_0x762cfe,_0xb832c7);}else'tableCell'==_0x55a29b['name']&&(_0x5d1832=_0x5d1832||_0x234cd5(_0x55a29b['position']['nodeAfter'],_0xb832c7));}return _0x5d1832;});}['_getSuggestionCoords'](_0x3aa194){return this['_getCoordsForCells'](_0x3aa194['getRanges']()['map'](_0x58581f=>_0x58581f['start']['nodeAfter']));}}function Re(_0x2b9d2a){return Array['from'](new Set(_0x2b9d2a)['values']());}class _t extends _0x36effd{static get['requires'](){return[vt];}['afterInit'](){const _0x179cae=this['editor'],_0x30c60e=_0x179cae['model']['document']['selection'],_0x388bd8=_0x179cae['locale'];if(!_0x179cae['plugins']['has']('TableEditing'))return;const _0x1bb6a5=_0x179cae['plugins']['get']('TrackChangesEditing'),_0x3e5cdb=_0x179cae['plugins']['get']('TableUtils'),_0x368ab2=_0x179cae['plugins']['get'](vt);_0x368ab2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x1bb6a5['enableCommand']('mergeTableCells',()=>{const _0x338555=_0x3e5cdb['getSelectionAffectedTableCells'](_0x179cae['model']['document']['selection']);_0x179cae['model']['change'](()=>{_0x1bb6a5['markMultiRangeBlockFormat'](_0x338555,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x179cae['commands']['get']('mergeTableCells')['on']('execute',(_0x3cffe6,_0x11fc27)=>{_0x179cae['commands']['get']('trackChanges')['value']&&(_0x11fc27['length']>0x0&&_0x11fc27[_0x11fc27['length']-0x1]&&_0x11fc27[_0x11fc27['length']-0x1]['forceDefaultExecution']||_0x1bb6a5['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3cffe6['stop']());},{'priority':'highest'});for(const _0x164c81 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x33921e=_0x179cae['commands']['get'](_0x164c81);_0x1bb6a5['enableCommand'](_0x164c81,()=>{const _0x5b4bec=_0x179cae['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4568e6=>_0x4568e6['is']('element','tableCell')),_0x116d8b=_0x33921e['value'];_0x179cae['model']['change'](()=>{_0x1bb6a5['markMultiRangeBlockFormat']([_0x5b4bec,_0x116d8b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xd86749 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x330144=_0x179cae['commands']['get'](_0xd86749);_0x1bb6a5['enableCommand'](_0xd86749,()=>{const _0xb34043=_0x3e5cdb['getSelectionAffectedTableCells'](_0x179cae['model']['document']['selection'])[0x0],_0x527ae3=_0xb34043['findAncestor']('table'),{column:_0x51dd3e,row:_0x429a6e}=_0x3e5cdb['getCellLocation'](_0xb34043);let _0x567fa4=[];if('horizontally'==_0x330144['direction']){const _0x30df6d=_0x3e5cdb['createTableWalker'](_0x527ae3,{'startRow':_0x429a6e,'endRow':_0x429a6e,'includeAllSlots':!0x0});_0x567fa4=Array['from'](_0x30df6d)['map'](_0x180124=>_0x180124['cell']);}else{const _0x4dd39f=_0x3e5cdb['createTableWalker'](_0x527ae3,{'column':_0x51dd3e,'includeAllSlots':!0x0});_0x567fa4=Array['from'](_0x4dd39f)['map'](_0x3d681f=>_0x3d681f['cell']);}_0x179cae['model']['change'](_0xacf085=>{_0x1bb6a5['markBlockFormat'](_0xacf085['createRangeOn'](_0xb34043),{'commandName':_0xd86749,'commandParams':[]},_0x567fa4,_0xd86749);});});}_0x1bb6a5['descriptionFactory']['registerDescriptionCallback'](_0x1ae102=>{if('formatBlock'!=_0x1ae102['type']&&'formatInline'!=_0x1ae102['type'])return;const {data:_0x3e0859}=_0x1ae102;return _0x3e0859&&'mergeTableCells'==_0x3e0859['commandName']?{'type':'format','content':o(_0x388bd8,'*Merge\x20cells*')}:void 0x0;}),_0x1bb6a5['descriptionFactory']['registerDescriptionCallback'](_0x4cbb55=>{if('formatBlock'!=_0x4cbb55['type']&&'formatInline'!=_0x4cbb55['type'])return;const {data:_0x3d6bf3}=_0x4cbb55;return _0x3d6bf3?'splitTableCellVertically'==_0x3d6bf3['commandName']?{'type':'format','content':o(_0x388bd8,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x3d6bf3['commandName']?{'type':'format','content':o(_0x388bd8,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x14cf6e=_0x368ab2['_acceptFormatSuggestionCallbackFactory']();for(const _0x1d9a0e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x1bb6a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1d9a0e,'accept',_0x14cf6e);for(const _0xa4141b of['splitTableCellVertically','splitTableCellHorizontally'])_0x1bb6a5['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xa4141b,'accept',_0x14cf6e);_0x1bb6a5['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x324c4a=>{_0x179cae['model']['change'](_0x5511ab=>{const _0x544ff3=Array['from'](_0x30c60e['getRanges']())['map'](_0x2b2b7b=>_0x495739['fromRange'](_0x2b2b7b));_0x5511ab['setSelection'](_0x324c4a),_0x179cae['commands']['get']('mergeTableCells')['refresh'](),_0x179cae['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x2094bb=_0x544ff3['filter'](_0x9728f4=>'$graveyard'!=_0x9728f4['root']['rootName']);_0x2094bb['length']>0x0&&_0x5511ab['setSelection'](_0x2094bb);for(const _0x51876c of _0x544ff3)_0x51876c['detach']();});});for(const _0x430473 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x48dd84=_0x179cae['commands']['get'](_0x430473);_0x48dd84['on']('set:isEnabled',(_0x1309f7,_0xff8cff,_0x2bb5ac)=>{if(_0x2bb5ac){const _0xb14198=_0x179cae['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x53b428=>_0x53b428['is']('element','tableCell'));this['_areMergableCells'](_0x48dd84['value'],_0xb14198)||(_0x1309f7['return']=!0x1,_0x1309f7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4ed005=this['editor']['commands']['get']('mergeTableCells'),_0x46c69b=this['editor']['plugins']['get']('TableUtils');if(!_0x4ed005['isEnabled'])return!0x1;const _0x3298a3=_0x46c69b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1786ea of _0x3298a3)for(const _0x40544d of _0x3298a3)if(_0x1786ea!=_0x40544d&&!this['_areMergableCells'](_0x1786ea,_0x40544d))return!0x1;return!0x0;}['_areMergableCells'](_0xc432c7,_0x382a5e){const _0xda3c56=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa1c83=this['editor']['model']['createRangeOn'](_0xc432c7),_0x3c21e9=this['editor']['model']['createRangeOn'](_0x382a5e),_0x5c5f3d=new Set(),_0x18c535=new Set();for(const _0x1a25c1 of _0xda3c56['getSuggestions']())if(('insertion'==_0x1a25c1['type']||'deletion'==_0x1a25c1['type']||'mergeTableCells'==_0x1a25c1['subType'])&&_0x1a25c1['isInContent']){for(const _0x4e3ec1 of _0x1a25c1['getRanges']())_0x4e3ec1['containsRange'](_0xa1c83,!0x0)&&_0x5c5f3d['add'](_0x1a25c1['type']+':'+_0x1a25c1['author']['id']),_0x4e3ec1['containsRange'](_0x3c21e9,!0x0)&&_0x18c535['add'](_0x1a25c1['type']+':'+_0x1a25c1['author']['id']);}if(_0x5c5f3d['size']!=_0x18c535['size'])return!0x1;for(const _0x296e4d of _0x5c5f3d)if(!_0x18c535['has'](_0x296e4d))return!0x1;return!0x0;}}class Ct extends _0x36effd{static get['requires'](){return[vt];}['afterInit'](){const _0x49d6f7=this['editor'];if(!_0x49d6f7['plugins']['has']('TableEditing'))return;const _0x159684=_0x49d6f7['locale'],_0x228404=_0x49d6f7['plugins']['get']('TrackChangesEditing');_0x228404['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x228404['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x228404['registerBlockAttribute']('headingRows'),_0x228404['registerBlockAttribute']('headingColumns'),_0x228404['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x159684,'FORMAT_HEADER_ROW')),_0x228404['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x159684,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5898c4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d6dc2=this['editor']['plugins']['get']('TableUtils'),_0x338c80=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x291887({showActiveMarker:_0x3a4fcd=!0x0,setDataAttribute:_0x313956=!0x0}={}){return(_0x532f13,_0x54e3d2,_0x4f7feb)=>{const {type:_0x4047b9,id:_0x150db1}=_0x5898c4['_splitMarkerName'](_0x54e3d2['markerName']),_0x2dd9fa=_0x5898c4['getSuggestion'](_0x150db1),_0x3e8cd9=_0x2dd9fa['data'];if('formatBlock'!=_0x2dd9fa['type']||!_0x3e8cd9||'setTableColumnHeader'!=_0x3e8cd9['commandName'])return;if(_0x54e3d2['item'])return void _0x532f13['stop']();if(!_0x4f7feb['consumable']['consume'](_0x54e3d2['markerRange'],_0x532f13['name']))return;const _0x49b80d=_0x54e3d2['markerRange']['start']['nodeAfter'],_0x2efcd3=_0x54e3d2['markerRange']['end']['nodeBefore'],_0x429791=_0x49b80d['parent']['parent'],{column:_0x367d95}=_0x1d6dc2['getCellLocation'](_0x49b80d),{column:_0xd6c6e9}=_0x1d6dc2['getCellLocation'](_0x2efcd3);for(let _0x5a2068=_0x367d95;_0x5a2068<=_0xd6c6e9;_0x5a2068++){const _0x103727=_0x1d6dc2['createTableWalker'](_0x429791,{'column':_0x5a2068,'includeAllSlots':!0x1});for(const _0x52ef25 of _0x103727){const _0x58779f=_0x52ef25['cell'],_0x1eed11=_0x4f7feb['mapper']['toViewElement'](_0x58779f);_0x4f7feb['writer']['addClass']('ck-suggestion-marker-'+_0x4047b9,_0x1eed11),_0x313956&&_0x4f7feb['writer']['setAttribute']('data-suggestion',_0x150db1,_0x1eed11),_0x4f7feb['mapper']['bindElementToMarker'](_0x1eed11,_0x54e3d2['markerName']),_0x3a4fcd&&(_0x5898c4['activeMarkers']['includes'](_0x54e3d2['markerName'])?_0x4f7feb['writer']['addClass']('ck-suggestion-marker--active',_0x1eed11):_0x4f7feb['writer']['removeClass']('ck-suggestion-marker--active',_0x1eed11));}}};}_0x5898c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x338c80),_0x5898c4['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x338c80),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x291887(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x423482,_0x44ea6b,_0x25e67f)=>{_0x25e67f['options']['showSuggestionHighlights']&&_0x291887({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x423482,_0x44ea6b,_0x25e67f);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1126b0,_0x350e7a,_0x41320c)=>{const {type:_0x329d1b,id:_0x2a4461}=_0x5898c4['_splitMarkerName'](_0x350e7a['markerName']),_0x2b8539=_0x5898c4['getSuggestion'](_0x2a4461),_0x49267a=_0x2b8539['data'];if('formatBlock'!=_0x2b8539['type']||!_0x49267a||'setTableColumnHeader'!=_0x49267a['commandName'])return;const _0xcb631d=_0x41320c['mapper']['markerNameToElements'](_0x350e7a['markerName']);if(_0xcb631d){for(const _0x55ca19 of _0xcb631d)_0x41320c['writer']['removeClass']('ck-suggestion-marker-'+_0x329d1b,_0x55ca19),_0x41320c['writer']['removeClass']('ck-suggestion-marker--active',_0x55ca19),_0x41320c['writer']['removeAttribute']('data-suggestion',_0x55ca19),_0x41320c['mapper']['unbindElementFromMarkerName'](_0x55ca19,_0x350e7a['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34949a=this['editor'],_0x4ac250=_0x34949a['locale'];function _0x42c53a(_0x156b59){return{'type':'format','content':o(_0x4ac250,'*Format:*\x20%0',_0x156b59)};}_0x34949a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18c293=>{if('formatBlock'!=_0x18c293['type'])return;const {data:_0x4b0dbe}=_0x18c293;if(_0x4b0dbe){if('setTableRowHeader'==_0x4b0dbe['commandName']){const _0x4eeb88=_0x4b0dbe['commandParams'][0x0]['forceValue'];return _0x42c53a(o(_0x4ac250,_0x4eeb88?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x4b0dbe['commandName']){const _0x4751a1=_0x4b0dbe['commandParams'][0x0]['forceValue'];return _0x42c53a(o(_0x4ac250,_0x4751a1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const we=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],ve=Object['fromEntries'](we['map'](_0x2556cb=>[_0x2556cb,null]));class Nt extends _0x36effd{static get['requires'](){return[vt];}['afterInit'](){const _0x29a5f6=this['editor'];if(!_0x29a5f6['plugins']['has']('TableClipboard'))return;const _0x444539=_0x29a5f6['plugins']['get']('TrackChangesEditing'),_0x28f3c2=_0x29a5f6['plugins']['get']('TableUtils'),_0x215ebf=_0x29a5f6['plugins']['get'](vt),_0x38d81c=_0x29a5f6['plugins']['get']('TableClipboard');_0x215ebf['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x29a5f6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x29a5f6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4c124b=null;_0x29a5f6['model']['on']('insertContent',(_0x3ec252,_0x14b77b)=>{const [_0x10f972,_0x5851b6]=_0x14b77b,_0x18c483=_0x14b77b[_0x14b77b['length']-0x1];_0x18c483&&_0x18c483['forceDefaultExecution']||_0x444539['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x300920,_0x23f9b9,_0x3439df,_0x370c9b,_0x3074e5){if(_0x23f9b9&&!_0x23f9b9['is']('documentSelection'))return!0x1;const _0x4f21e9=_0x3074e5['getTableIfOnlyTableInContent'](_0x300920,_0x3439df);if(!_0x4f21e9||!Ae(_0x4f21e9,void 0x0,_0x370c9b))return!0x1;const _0x1914e3=_0x370c9b['getSelectionAffectedTableCells'](_0x3439df['document']['selection']);if(!_0x1914e3['length'])return!0x1;const _0x3a4a2d=_0x1914e3[0x0]['findAncestor']('table'),_0x1c1d00=_0x370c9b['getRowIndexes'](_0x1914e3),_0x1b14f7=_0x370c9b['getColumnIndexes'](_0x1914e3),_0x23cb03={'startRow':_0x1c1d00['first'],'endRow':_0x1c1d00['last'],'startColumn':_0x1b14f7['first'],'endColumn':_0x1b14f7['last']};return 0x1==_0x1914e3['length']&&(_0x23cb03['endRow']+=_0x370c9b['getRows'](_0x4f21e9)-0x1,_0x23cb03['endColumn']+=_0x370c9b['getColumns'](_0x4f21e9)-0x1),Ae(_0x3a4a2d,_0x23cb03,_0x370c9b);}(_0x10f972,_0x5851b6,_0x29a5f6['model'],_0x28f3c2,_0x38d81c)&&(_0x3ec252['stop'](),_0x4c124b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x29a5f6['model']['change'](()=>{_0x29a5f6['model']['insertContent'](_0x14b77b[0x0],_0x14b77b[0x1],_0x14b77b[0x2],{'forceDefaultExecution':!0x0});const _0x3bd540=_0x24c9d1(),{rowInsertionRanges:_0x5a3d34,columnInsertionRanges:_0x36fe85,insertionRanges:_0x5bad5e,deletionRanges:_0x5cf5b3,cells:_0x41974e}=_0x4c124b;_0x5a3d34['length']&&_0x444539['markMultiRangeInsertion'](_0x5a3d34,'tablePasteRow',{'tablePasteChainId':_0x3bd540}),_0x36fe85['length']&&_0x444539['markMultiRangeInsertion'](_0x36fe85,'tablePasteColumn',{'tablePasteChainId':_0x3bd540}),_0x5bad5e['length']&&(_0x444539['markMultiRangeInsertion'](_0x5bad5e,'tablePaste',{'tablePasteChainId':_0x3bd540,'skipNestingCheck':!0x0}),_0x5bad5e['forEach'](_0x384c7f=>_0x384c7f['detach']?.())),_0x5cf5b3['length']&&(_0x444539['markMultiRangeDeletion'](_0x5cf5b3,'tablePaste',{'tablePasteChainId':_0x3bd540,'skipNestingCheck':!0x0}),_0x5cf5b3['forEach'](_0x5c73f2=>_0x5c73f2['detach']?.()));const _0xd41bc5=_0x444539['markMultiRangeBlockFormat'](_0x41974e['map'](({element:_0x528292})=>_0x528292),{'formatGroupId':_0x24c9d1()},[],'tablePasteCell',{'tablePasteChainId':_0x3bd540});if(_0xd41bc5){const _0x2bca8a=_0xd41bc5['getMarkers'](),_0x1710df=[];for(const {element:_0x272583,attributes:_0x2c6064}of _0x41974e){if(!_0x2c6064)continue;const _0x36a78e=_0x29a5f6['model']['createRangeOn'](_0x272583),_0x3e19df=_0x2bca8a['find'](_0x4209b1=>_0x4209b1['getRange']()['isEqual'](_0x36a78e));_0x3e19df&&_0x1710df['push']([_0x3e19df['name'],_0x2c6064]);}_0x1710df['length']&&_0xd41bc5['setAttribute']('markerAttributes',Object['fromEntries'](_0x1710df));}_0x4c124b=null;}));},{'priority':_0x2414e4['high']+0xa}),_0x29a5f6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xa52809,_0x38486a)=>{const [_0x4c4c51,_0x1fce6d,,_0x4f3e87]=_0x38486a;if(!_0x4c124b)return;_0xa52809['stop']();const _0x26f376=_0x4c4c51['cell'],_0x39882f=_0x1fce6d,_0x39697f=je(_0x26f376),_0x329cfd=je(_0x39882f);_0xa52809['return']=_0x26f376;let _0x4b23ac=null,_0x149cfa=null;if(_0x329cfd||_0x39697f){if(_0x39697f&&!_0x329cfd){_0x4f3e87['remove'](_0x26f376['getChild'](0x0));for(const _0x5c49f1 of Array['from'](_0x39882f['getChildren']()))_0x4f3e87['insert'](_0x5c49f1,_0x26f376,'end');const _0x304bb7=_0x4c124b['rowInsertionIndexes']['includes'](_0x4c4c51['row']),_0x3c3180=_0x4c124b['columnInsertionIndexes']['includes'](_0x4c4c51['column']);_0x304bb7||_0x3c3180||(_0x4b23ac=_0x495739['fromRange'](_0x4f3e87['createRangeIn'](_0x26f376)));}else _0x329cfd&&!_0x39697f&&(_0x149cfa=_0x4f3e87['createRangeIn'](_0x26f376));}else{const _0x2e4e1e=_0x4f3e87['createElement']('tableCellSuggestion'),_0x18c29e=_0x4f3e87['createElement']('tableCellSuggestion');_0x4f3e87['wrap'](_0x4f3e87['createRangeIn'](_0x26f376),_0x18c29e),_0x4f3e87['insert'](_0x2e4e1e,_0x26f376,0x0);for(const _0x550086 of Array['from'](_0x39882f['getChildren']()))_0x4f3e87['insert'](_0x550086,_0x2e4e1e,'end');_0x4b23ac=_0x495739['fromRange'](_0x4f3e87['createRangeOn'](_0x2e4e1e)),_0x149cfa=_0x495739['fromRange'](_0x4f3e87['createRangeOn'](_0x18c29e));}const _0x1fccb2=Array['from'](_0x39882f['getAttributes']())['filter'](([_0x1e6813])=>we['includes'](_0x1e6813));_0x4c124b['cells']['push']({'element':_0x26f376,'attributes':_0x1fccb2['length']?Object['fromEntries'](_0x1fccb2):null}),_0x4b23ac&&_0x4c124b['insertionRanges']['push'](_0x4b23ac),_0x149cfa&&_0x4c124b['deletionRanges']['push'](_0x149cfa);},{'priority':'high'}),_0x28f3c2['on']('insertColumns',(_0x352bfb,_0xe8e4)=>{const [_0x134b1b,_0x401f1e={}]=_0xe8e4;if(!_0x4c124b)return;const _0x36c131=_0x401f1e['at']||0x0,_0x11413c=_0x401f1e['columns']||0x1;_0x4c124b['columnInsertionIndexes']=new Array(_0x11413c)['fill'](_0x36c131)['map']((_0x1db957,_0x144998)=>_0x1db957+_0x144998);for(const {cell:_0x5c469e}of _0x28f3c2['createTableWalker'](_0x134b1b,{'startColumn':_0x36c131,'endColumn':_0x36c131+_0x11413c-0x1}))_0x4c124b['columnInsertionRanges']['push'](_0x29a5f6['model']['createRangeOn'](_0x5c469e));},{'priority':'low'}),_0x28f3c2['on']('insertRows',(_0x230807,_0x3bedfd)=>{const [_0x1f8ac2,_0x2d782b={}]=_0x3bedfd;if(!_0x4c124b)return;const _0x5511ba=_0x2d782b['at']||0x0,_0x1be74b=_0x2d782b['rows']||0x1;_0x4c124b['rowInsertionIndexes']=new Array(_0x1be74b)['fill'](_0x5511ba)['map']((_0x13cee7,_0x31bdb7)=>_0x13cee7+_0x31bdb7);for(const {cell:_0x58587d}of _0x28f3c2['createTableWalker'](_0x1f8ac2,{'startRow':_0x5511ba,'endRow':_0x5511ba+_0x1be74b-0x1}))_0x4c124b['rowInsertionRanges']['push'](_0x29a5f6['model']['createRangeOn'](_0x58587d));},{'priority':'low'}),_0x444539['descriptionFactory']['registerDescriptionCallback'](_0x3c2df1=>{if(_0x3c2df1['subType']&&_0x3c2df1['subType']['startsWith']('tablePaste'))return _0x3c2df1['previous']?{}:{'type':'insertion','content':o(_0x29a5f6['locale'],'*Replace\x20table\x20cells*')};});const _0x585df1=()=>!0x1;for(const _0x439256 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x444539['_suggestionFactory']['registerCustomCallback']('insertion',_0x439256,'join',_0x585df1),_0x444539['_suggestionFactory']['registerCustomCallback']('deletion',_0x439256,'join',_0x585df1),_0x444539['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x439256,'join',_0x585df1);_0x444539['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x585df1),_0x444539['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5bf77e,_0x245b21,_0x3f70f0)=>{const _0x1ab6db=_0x5bf77e['map'](_0x60ed78=>_0x60ed78['getContainedElement']())['filter'](_0x265b6f=>_0x265b6f),_0x5763ed=new Map(_0x1ab6db['map'](_0xe48923=>[_0xe48923,null]));if(_0x4c124b){for(const {element:_0x4530f4,attributes:_0xc4e9d6}of _0x4c124b['cells'])_0xc4e9d6&&_0x5763ed['set'](_0x4530f4,_0xc4e9d6);}else{if(_0x3f70f0&&_0x3f70f0['markerAttributes'])for(const [_0x55b975,_0x640a7d]of Object['entries'](_0x3f70f0['markerAttributes'])){const _0x5705dc=_0x29a5f6['model']['markers']['get'](_0x55b975),_0x159337=_0x5705dc?_0x5705dc['getRange']()['getContainedElement']():null;_0x159337&&_0x5763ed['set'](_0x159337,_0x640a7d);}}_0x29a5f6['model']['change'](_0x466a82=>{for(const [_0x1c4b61,_0x390dfe]of _0x5763ed)_0x466a82['setAttributes']({...ve,..._0x390dfe},_0x1c4b61);});});const _0x578057=(_0x56f294,_0x4dbe59)=>{_0x444539['_suggestionFactory']['registerCustomCallback'](_0x56f294,'tablePaste',_0x4dbe59,(_0x177a39,_0x8e071d,_0x4c1f3e)=>{_0x29a5f6['model']['change'](_0x475d83=>{const _0xf6fc38=[];for(const _0x5e66f4 of _0x177a39){const _0x4a5837=_0x5e66f4['start']['nodeAfter'];_0x4a5837['is']('element','tableCellSuggestion')&&_0xf6fc38['push'](_0x4a5837);}_0x444539['_suggestionFactory']['getSuggestionCallback'](_0x56f294,null,_0x4dbe59)(_0x177a39,_0x8e071d,_0x4c1f3e);for(const _0x542571 of _0xf6fc38)'$graveyard'!=_0x542571['root']['rootName']&&_0x475d83['unwrap'](_0x542571);});});};_0x578057('insertion','accept'),_0x578057('insertion','discard'),_0x578057('deletion','accept'),_0x578057('deletion','discard'),_0x444539['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x451c33=>{const _0x3f9bdd=_0x451c33['map'](_0x45e472=>_0x45e472['getContainedElement']()),_0x4bf30b=_0x3f9bdd[0x0]['findAncestor']('table'),{minRow:_0x1fd6bb,maxRow:_0x50c9b8}=_0x215ebf['_getCoordsForCells'](_0x3f9bdd);_0x28f3c2['removeRows'](_0x4bf30b,{'at':_0x1fd6bb,'rows':_0x50c9b8-_0x1fd6bb+0x1});}),_0x444539['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x50862d=>{const _0x3a5cf4=_0x50862d['map'](_0x291e1d=>_0x291e1d['getContainedElement']()),_0x32d96d=_0x3a5cf4[0x0]['findAncestor']('table'),{minColumn:_0x4583f6,maxColumn:_0x4538bd}=_0x215ebf['_getCoordsForCells'](_0x3a5cf4);_0x28f3c2['removeColumns'](_0x32d96d,{'at':_0x4583f6,'columns':_0x4538bd-_0x4583f6+0x1});});const _0x37942e=(_0x5849eb,_0x5a9be8)=>{if(!_0x5a9be8['subType']||!_0x5a9be8['subType']['startsWith']('tablePaste'))return;const _0x11d78e=_0x5a9be8['attributes']['tablePasteChainId'],_0x6515a4=_0x444539['getSuggestions']()['filter'](_0xfb5832=>_0xfb5832['isInContent']&&_0xfb5832['attributes']&&_0xfb5832['attributes']['tablePasteChainId']==_0x11d78e);_0x6515a4['length']&&_0x5a9be8['getAllAdjacentSuggestions']()['length']!=_0x6515a4['length']&&_0x6515a4['reduce']((_0x4e62a3,_0x392f59)=>(_0x4e62a3['next']=_0x392f59,_0x392f59['previous']=_0x4e62a3,_0x392f59));};function _0x285997(_0x3cecb6,_0x3fbbd5=!0x0){const {id:_0x42911b,authorId:_0x52952d}=_0x444539['_splitMarkerName'](_0x3cecb6['markerName']),_0x8b099b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xdfdad7=_0x444539['activeMarkers']['includes'](_0x3cecb6['markerName']);return _0xdfdad7&&_0x8b099b['push']('ck-suggestion-marker--active'),{'classes':_0x8b099b,'attributes':{'data-suggestion':_0x42911b,'data-author-id':_0x52952d},'priority':_0xdfdad7&&_0x3fbbd5?0xbc2:0xbb8};}_0x444539['on']('suggestionLoaded',_0x37942e,{'priority':'high'}),_0x444539['on']('suggestionUnloaded',_0x37942e,{'priority':'high'}),_0x29a5f6['model']['document']['registerPostFixer'](()=>{let _0x1b8765=!0x1;const _0x44bdd3=Array['from'](_0x29a5f6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x536869,data:_0x137abb}of _0x44bdd3){const {group:_0x3f458b,type:_0x1348f2,id:_0x25c02d}=_0x444539['_splitMarkerName'](_0x536869);if('suggestion'!=_0x3f458b||'deletion'!=_0x1348f2||_0x137abb['oldRange'])continue;if(!_0x444539['hasSuggestion'](_0x25c02d))continue;const _0x3b686c=_0x444539['getSuggestion'](_0x25c02d)['getRanges'](),_0x384bfd=_0x29a5f6['plugins']['get']('Users')['me'];for(const _0x4726a3 of _0x444539['getSuggestions']()){if(!_0x4726a3['isInContent']||_0x4726a3['author']!=_0x384bfd)continue;if('formatBlock'!=_0x4726a3['type']||'tablePasteCell'!=_0x4726a3['subType'])continue;if(_0x4726a3['getRanges']()['every'](_0x17d196=>_0x3b686c['some'](_0x3d4ebf=>_0x3d4ebf['containsRange'](_0x17d196,!0x0)))){for(const _0x3c2795 of _0x4726a3['getAllAdjacentSuggestions']())_0x3c2795['isInContent']&&(_0x3c2795['discard'](),_0x1b8765=!0x0);}}}return _0x1b8765;}),_0x29a5f6['model']['document']['registerPostFixer'](_0x365e69=>{const _0x30341a=_0x29a5f6['commands']['get']('redo');if(!_0x30341a||!_0x30341a['_createdBatches']['has'](_0x365e69['batch']))return!0x1;let _0x516bc6=!0x1;const _0x40f74c=_0x29a5f6['plugins']['get']('Users')['me'],_0x4bbd34=_0x29a5f6['model']['document']['differ']['getChanges'](),_0x76c8da=Array['from'](_0x29a5f6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xd46f03,data:_0x1755ad})=>{const {group:_0x3205c1,subType:_0x43a254,authorId:_0x266a42}=_0x444539['_splitMarkerName'](_0xd46f03);return'suggestion'==_0x3205c1&&'tablePaste'==_0x43a254&&_0x266a42==_0x40f74c['id']&&!_0x1755ad['oldRange'];});for(const _0x4b6b97 of _0x4bbd34){if('insert'!=_0x4b6b97['type']||'tableCellSuggestion'!=_0x4b6b97['name']||0x1!=_0x4b6b97['length'])continue;const _0x4163b8=_0x365e69['createRange'](_0x4b6b97['position'],_0x4b6b97['position']['getShiftedBy'](0x1));if(!_0x76c8da['find'](({data:_0x50fc7a})=>_0x50fc7a['newRange']['isEqual'](_0x4163b8))){for(const {name:_0x5223d1,data:_0xa8566e}of _0x76c8da)if(_0x4163b8['containsRange'](_0xa8566e['newRange'])){_0x365e69['updateMarker'](_0x5223d1,{'range':_0x4163b8}),_0x516bc6=!0x0;break;}}}return _0x516bc6;}),_0x29a5f6['model']['document']['registerPostFixer'](_0x425a7c=>{let _0x1b947b=!0x1;const _0x1f07f8=_0x29a5f6['plugins']['get']('Users')['me'],_0x8fdbb2=_0x444539['getSuggestions']()['filter'](_0x194a57=>_0x194a57['isInContent']&&_0x194a57['author']==_0x1f07f8),_0x5c135f=new Set(),_0x1e5d18=new Set();for(const _0x2012e0 of _0x8fdbb2)if('tablePaste'==_0x2012e0['subType'])for(const _0x3ec1f8 of _0x2012e0['getMarkers']()){const _0x66c0bc=_0x3ec1f8['getRange']()['getContainedElement']();if(_0x66c0bc){if(_0x66c0bc['is']('element','tableCellSuggestion')&&je(_0x66c0bc)){_0x2012e0['removeMarker'](_0x3ec1f8['name']),_0x5c135f['add'](_0x66c0bc),_0x1b947b=!0x0;const _0x76f80e=_0x66c0bc['nextSibling'],_0x3fdf22=_0x66c0bc['previousSibling'],_0x452a74=_0x76f80e&&_0x76f80e['is']('element','tableCellSuggestion'),_0x4671cb=_0x3fdf22&&_0x3fdf22['is']('element','tableCellSuggestion');_0x452a74&&!_0x5c135f['has'](_0x76f80e)&&_0x1e5d18['add'](_0x76f80e),_0x4671cb&&!_0x5c135f['has'](_0x3fdf22)&&_0x1e5d18['add'](_0x3fdf22);}else _0x66c0bc['is']('element','paragraph')&&_0x66c0bc['isEmpty']&&(_0x2012e0['removeMarker'](_0x3ec1f8['name']),_0x1b947b=!0x0);}}else{if('tablePasteCell'==_0x2012e0['subType']){if(!_0x2012e0['attributes']||!_0x2012e0['attributes']['tablePasteChainId'])continue;const _0x49a25f=_0x2012e0['attributes']['markerAttributes'];if(_0x49a25f&&Object['keys'](_0x49a25f)['length'])continue;const _0x38c62f=_0x2012e0['attributes']['tablePasteChainId'];let _0x146094=!0x0,_0x34b9cf=!0x0;for(const _0x3a8d1c of _0x8fdbb2)if(_0x3a8d1c['subType']&&_0x3a8d1c['subType']['startsWith']('tablePaste')){if(!_0x3a8d1c['attributes']['tablePasteChainId']){_0x34b9cf=!0x1;break;}if(_0x3a8d1c['id']!=_0x2012e0['id']&&_0x3a8d1c['attributes']['tablePasteChainId']==_0x38c62f){_0x146094=!0x1;break;}}_0x34b9cf&&_0x146094&&(_0x2012e0['removeMarkers'](),_0x1b947b=!0x0);}}for(const _0x4c21f3 of _0x5c135f)_0x425a7c['remove'](_0x4c21f3);for(const _0x1fdb41 of _0x1e5d18)_0x425a7c['unwrap'](_0x1fdb41);return _0x1b947b;}),_0x29a5f6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x73f421=>_0x285997(_0x73f421),'converterPriority':'high'}),_0x29a5f6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x17df90,_0x47a430)=>_0x47a430['options']['showSuggestionHighlights']?_0x285997(_0x17df90,!0x1):null,'converterPriority':'high'});const _0x36ed64=_0x29a5f6['editing']['view'];this['listenTo'](_0x36ed64['document'],'clipboardOutput',(_0x15507b,_0x491cd4)=>{const _0x572f59=[];for(const _0x183964 of _0x36ed64['createRangeIn'](_0x491cd4['content'])['getItems']())_0x183964['is']('element','suggestion-td')&&_0x572f59['push'](_0x183964);_0x36ed64['change'](_0x45030d=>{for(const _0x5d227c of _0x572f59)_0x45030d['move'](_0x45030d['createRangeIn'](_0x5d227c),_0x45030d['createPositionBefore'](_0x5d227c)),_0x45030d['remove'](_0x5d227c);});});}}function je(_0x4ddad1){if(_0x4ddad1['isEmpty'])return!0x0;const _0x10fc3d=_0x4ddad1['getChild'](0x0);return _0x10fc3d['is']('element','paragraph')&&_0x10fc3d['isEmpty'];}function Ae(_0x46be4a,_0x104d20={},_0xff6da){for(const {isAnchor:_0xfba0fa,cellHeight:_0x347421,cellWidth:_0x434209}of _0xff6da['createTableWalker'](_0x46be4a,{'includeAllSlots':!0x0,..._0x104d20}))if(!_0xfba0fa||0x1!=_0x347421||0x1!=_0x434209)return!0x1;return!0x0;}class Dt extends _0x36effd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4c597a=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c597a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4c597a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4c597a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4c597a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4c597a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4c597a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2d9e30,_0x45b0f9){const _0x110adf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x481e99=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2b16a1=_0x45b0f9['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x41bb9d=_0x481e99['getColumnGroupElement'](_0x2b16a1);let _0x49107e=_0x41bb9d?_0x481e99['getTableColumnsWidths'](_0x41bb9d):null,_0x72f41b=_0x2b16a1['getAttribute']('tableWidth')||null;const _0x3284bc=_0x45b0f9['tableWidth']||_0x72f41b,_0x41174e=_0x45b0f9['columnWidths']||_0x49107e,_0x76c810=this['editor']['plugins']['get']('Users')['me'];for(const _0x29b9ef of _0x110adf['getSuggestions']()){const _0x3962a5=_0x29b9ef['getContainedElement']();if('resizeTable'===_0x29b9ef['subType']&&_0x3962a5===_0x2b16a1){_0x29b9ef['author']!==_0x76c810&&_0x29b9ef['discard']();const _0x547d14=_0x29b9ef['data']['commandParams'];_0x72f41b=_0x547d14[0x0]['tableWidth'],_0x49107e=_0x547d14[0x0]['columnWidths'];break;}}_0x2d9e30({'table':_0x2b16a1,'tableWidth':_0x3284bc,'columnWidths':_0x41174e}),_0x110adf['markBlockFormat'](_0x2b16a1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x72f41b,'columnWidths':_0x49107e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5297f3){if('formatBlock'!=_0x5297f3['type']&&'formatInline'!=_0x5297f3['type'])return;const {data:_0x1d3a03}=_0x5297f3;if(_0x1d3a03&&'resizeTable'===_0x1d3a03['formatGroupId']){const _0x519c06='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x519c06)};}}}class Mt extends _0x36effd{['afterInit'](){const _0x3b921f=this['editor'];_0x3b921f['plugins']['has']('Template')&&_0x3b921f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x36effd{['afterInit'](){const _0x3e6479=this['editor'];if(!_0x3e6479['commands']['get']('insertTableOfContents'))return;_0x3e6479['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x287db8=_0x3e6479['plugins']['get']('TrackChangesEditing'),_0x188942=_0x3e6479['locale'];_0x287db8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x436e6d=>o(_0x188942,'ELEMENT_TABLE_OF_CONTENTS',_0x436e6d));}}class Bt extends _0x36effd{['afterInit'](){const _0x250b94=this['editor'];if(!_0x250b94['plugins']['has']('Title'))return;const _0x57997b=_0x250b94['plugins']['get']('TrackChangesEditing');_0x57997b['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x250b94['locale'],'ELEMENT_TITLE')),_0x250b94['model']['document']['registerPostFixer'](_0x382951=>{let _0x4148f2=!0x1;const _0x171131=Array['from'](_0x250b94['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xfddca3,data:_0x2fbbef}of _0x171131){const {group:_0x1a7029}=_0x57997b['_splitMarkerName'](_0xfddca3);if('suggestion'!==_0x1a7029||!_0x2fbbef['newRange'])continue;const _0x457ea4=_0x2fbbef['newRange'],_0x10f4a6=_0x457ea4['end']['nodeBefore'];if(!_0x10f4a6||!_0x10f4a6['is']('element','title-content'))continue;if(!_0x457ea4['start']['isTouching'](_0x457ea4['end']))continue;const _0x3b6406=_0x250b94['model']['schema']['getNearestSelectionRange'](_0x457ea4['end'],'forward');if(_0x3b6406&&_0x3b6406['isCollapsed']){const _0x386992=_0x382951['createRange'](_0x457ea4['start'],_0x3b6406['start']);_0x386992['isEqual'](_0x457ea4)||(_0x382951['updateMarker'](_0xfddca3,{'range':_0x386992}),_0x4148f2=!0x0);}_0x4148f2||(_0x382951['removeMarker'](_0xfddca3),_0x4148f2=!0x0);}return _0x4148f2;});}}class Ot extends _0x36effd{['afterInit'](){const _0x42190f=this['editor'],_0x3c8fb5=_0x42190f['plugins']['get']('TrackChangesEditing');_0x42190f['plugins']['has']('UndoEditing')&&(_0x3c8fb5['enableCommand']('undo'),_0x3c8fb5['enableCommand']('redo'));}}class Rt extends _0x36effd{static get['requires'](){return[vt];}['afterInit'](){const _0x1f40ba=this['editor'];if(!_0x1f40ba['plugins']['has']('TableCaptionEditing'))return;_0x1f40ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Tt extends _0x36effd{['tableProperties'];['tableCellProperties'];constructor(_0xb14746){super(_0xb14746),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 _0x5e6794=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x467866 of this['tableProperties'])_0x5e6794['enableCommand'](_0x467866,(_0x4df616,_0x15ad0b)=>{const _0x4be43d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x467866,[_0x4be43d],this['tableProperties'],'tableProperties',_0x4df616,_0x15ad0b);});_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e6794['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5ccb7b,_0x5812fc)=>this['handleDiscardAction'](this['tableProperties'],_0x5ccb7b,_0x5812fc)),_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x3ea188 of this['tableCellProperties'])_0x5e6794['enableCommand'](_0x3ea188,(_0x4d8db0,_0x44d841)=>{const _0x161e6d=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x3ea188,_0x161e6d,this['tableCellProperties'],'tableCellProperties',_0x4d8db0,_0x44d841);});_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e6794['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1ef445,_0x2631f0)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1ef445,_0x2631f0)),_0x5e6794['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e6794['descriptionFactory']['registerDescriptionCallback'](_0x43dc95=>this['handleSuggestionDescription'](_0x43dc95));}['_handlePropertyChange'](_0xca68b6,_0x25a06c,_0x33c466,_0x3c299a,_0x357ab9,_0x22ada5){const _0x5518f6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x22ada5['batch'],()=>{for(const _0x41679d of _0x25a06c){if(this['_getSuggestion'](_0x41679d,_0x3c299a))_0x357ab9(_0x22ada5);else{const _0x160cae={};for(const _0x178e2a of _0x33c466){const _0x35bab6=_0x41679d['getAttribute'](_0x178e2a);void 0x0!==_0x35bab6&&(_0x160cae[_0x178e2a]=_0x35bab6);}_0x357ab9(_0x22ada5),_0x5518f6['markBlockFormat'](_0x41679d,{'commandParams':[_0x160cae]},[],_0x3c299a);}}});}['handleDiscardAction'](_0xf7a720,_0x17f25d,_0x519ccc){const _0x26af50=_0x17f25d[0x0]['start']['nodeAfter'],_0x48a59b=_0x519ccc['commandParams'][0x0];this['editor']['model']['change'](_0xe1d6e9=>{for(const _0x4cedae of _0xf7a720)void 0x0!==_0x48a59b[_0x4cedae]?_0xe1d6e9['setAttribute'](_0x4cedae,_0x48a59b[_0x4cedae],_0x26af50):_0xe1d6e9['removeAttribute'](_0x4cedae,_0x26af50);});}['handleSuggestionDescription'](_0x37db0a){if(_0x37db0a['data'])switch(_0x37db0a['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'](_0x34acd4,_0x37ee4a){const _0x233a86=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1bab86 of _0x233a86['getSuggestions']({'skipNotAttached':!0x0})){const _0x2b517e=_0x1bab86['getContainedElement']();if(_0x1bab86['subType']===_0x37ee4a&&_0x2b517e===_0x34acd4)return _0x1bab86;}return null;}}const m='$elementName';class p extends _0x36effd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2926f4,_0x5272c3,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(_0x4b41bd){super(_0x4b41bd),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x208207,_0x24d4cd,_0x22d309,_0x379513)=>{this['_model']['change'](()=>{for(const _0x4889d3 of[..._0x379513,..._0x22d309])this['_model']['markers']['has'](_0x4889d3)&&_0x4b41bd['editing']['reconvertMarker'](_0x4889d3);});}),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']=_0x4b41bd['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(),_0x4b41bd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4b41bd['config']['get']('trackChanges.trackFormatChanges'),_0x4b41bd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4b41bd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4b41bd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3d2830=this['editor'],_0x2f8be5=(_0x18c61c,_0x38766f)=>{if('attribute'!=_0x18c61c)return'ck-suggestion-marker-'+_0x18c61c;const _0x49e14e=_0x38766f['split']('|')[0x0];return this['_isBlockAttribute'](_0x49e14e)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3d2830['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x18c5ce=>{const {id:_0x27e903,authorId:_0x2e1680,type:_0xf94ea8,subType:_0x129d0e}=this['_splitMarkerName'](_0x18c5ce['markerName']),_0x48f763=['ck-suggestion-marker',_0x2f8be5(_0xf94ea8,_0x129d0e)];let _0x317880=0xbb8;return this['activeMarkers']['includes'](_0x18c5ce['markerName'])&&(_0x48f763['push']('ck-suggestion-marker--active'),_0x317880=0xbc2),'deletion'==_0xf94ea8&&(_0x317880+=0x5),{'classes':_0x48f763,'attributes':{'data-suggestion':_0x27e903,'data-author-id':_0x2e1680},'priority':_0x317880};}}),_0x3d2830['conversion']['for']('dataDowncast')['add'](_0x569dfa=>{_0x569dfa['on']('addMarker:suggestion',(_0x14ee0c,_0x9c6e7e,_0x2458c3)=>{if(!_0x2458c3['options']['showSuggestionHighlights'])return;const _0x13d6ae=_0x9c6e7e['item'];if(!_0x13d6ae)return;const _0x42490c=_0x2458c3['mapper']['toViewElement'](_0x13d6ae);_0x3d2830['model']['schema']['isObject'](_0x13d6ae)&&_0x42490c&&!_0x42490c['getCustomProperty']('widget')&&_0x42490c['is']('containerElement')&&_0x4deaff(_0x42490c,_0x2458c3['writer']);},{'priority':'high'});}),_0x3d2830['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2b05ec,_0xcd5dcf)=>{if(!_0xcd5dcf['options']['showSuggestionHighlights'])return null;const {type:_0x24a81b,subType:_0x4fdec0}=this['_splitMarkerName'](_0x2b05ec['markerName']);return{'classes':['ck-suggestion-marker',_0x2f8be5(_0x24a81b,_0x4fdec0)],'priority':0xbb8};}});const _0x498b37=({showActiveMarkers:_0x9513af=!0x0,isAttributeSuggestion:_0x5d80f9=!0x1}={})=>(_0xe39da2,_0xd5d26b,_0x4a217e)=>{if(!_0xd5d26b['item'])return;const {id:_0x35c678,authorId:_0x29b902}=this['_splitMarkerName'](_0xd5d26b['markerName']);if(_0x5d80f9){const _0x204ffb=this['_suggestions']['get'](_0x35c678),_0x9937c7=this['_getAttributeKey'](_0x204ffb);if(!this['_isBlockAttribute'](_0x9937c7))return;}if(_0xd5d26b['item']['is']('selection'))return void _0x4a217e['consumable']['consume'](_0xd5d26b['item'],_0xe39da2['name']);const _0x475d8b=_0x4a217e['mapper']['toViewElement'](_0xd5d26b['item']);if(_0xd5d26b['item']['is']('element')&&_0x3d2830['model']['schema']['isBlock'](_0xd5d26b['item'])&&!_0x475d8b['getCustomProperty']('addHighlight')){_0x4a217e['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x475d8b),_0x4a217e['writer']['setAttribute']('data-suggestion',_0x35c678,_0x475d8b),_0x4a217e['writer']['setAttribute']('data-author-id',_0x29b902,_0x475d8b),_0x4a217e['mapper']['bindElementToMarker'](_0x475d8b,_0xd5d26b['markerName']),_0x9513af&&(this['activeMarkers']['includes'](_0xd5d26b['markerName'])?_0x4a217e['writer']['addClass']('ck-suggestion-marker--active',_0x475d8b):_0x4a217e['writer']['removeClass']('ck-suggestion-marker--active',_0x475d8b));for(const _0x349287 of _0x3d2830['model']['createRangeIn'](_0xd5d26b['item'])['getItems']())_0x4a217e['consumable']['consume'](_0x349287,_0xe39da2['name']);_0x4a217e['consumable']['consume'](_0xd5d26b['item'],_0xe39da2['name']);}};_0x3d2830['conversion']['for']('dataDowncast')['add'](_0x2470de=>{_0x2470de['on']('addMarker:suggestion:formatBlock',(_0x1e27cf,_0x4cf879,_0x2712bb)=>{_0x2712bb['options']['showSuggestionHighlights']&&_0x498b37({'showActiveMarkers':!0x1})(_0x1e27cf,_0x4cf879,_0x2712bb);},{'priority':'highest'});}),_0x3d2830['conversion']['for']('dataDowncast')['add'](_0x19809e=>{_0x19809e['on']('addMarker:suggestion:attribute',(_0x4f7237,_0x28ab37,_0x50852f)=>{_0x50852f['options']['showSuggestionHighlights']&&_0x498b37({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4f7237,_0x28ab37,_0x50852f);},{'priority':'highest'});}),_0x3d2830['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x143f9a,_0x33be4b)=>_0x33be4b['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x143f9a['substr'](0xb)}}),_0x3d2830['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x38aa39,{writer:_0x22cdaf})=>{let _0x2afd20='suggestion:'+_0x38aa39['getAttribute']('suggestion-type')+':'+_0x38aa39['getAttribute']('id');return _0x38aa39['getAttribute']('marker-count')&&(_0x2afd20+=':'+_0x38aa39['getAttribute']('marker-count')),_0x22cdaf['createElement']('$marker',{'data-name':_0x2afd20});}}),_0x3d2830['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3d2830['conversion']['for']('editingDowncast')['add'](_0x2352e4=>{_0x2352e4['on']('addMarker:suggestion:formatBlock',_0x498b37(),{'priority':'high'});}),_0x3d2830['conversion']['for']('editingDowncast')['add'](_0x5409df=>{_0x5409df['on']('addMarker:suggestion:attribute',_0x498b37({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3d2830['conversion']['for']('editingDowncast')['add'](_0x5c30d8=>{_0x5c30d8['on']('removeMarker:suggestion:formatBlock',(_0x144f42,_0x2ce71a,_0x25ccc5)=>{const _0x46e36a=_0x25ccc5['mapper']['markerNameToElements'](_0x2ce71a['markerName']);if(_0x46e36a){for(const _0x183aa6 of _0x46e36a)_0x183aa6['getCustomProperty']('addHighlight')||(_0x25ccc5['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x183aa6),_0x25ccc5['writer']['removeAttribute']('data-suggestion',_0x183aa6),_0x25ccc5['writer']['removeAttribute']('data-author-id',_0x183aa6),_0x25ccc5['mapper']['unbindElementFromMarkerName'](_0x183aa6,_0x2ce71a['markerName']));}},{'priority':'high'});}),_0x3d2830['conversion']['for']('editingDowncast')['add'](_0x130156=>{_0x130156['on']('removeMarker:suggestion:attribute',(_0x254f43,_0x2f2aee,_0x3e2f2a)=>{const _0x157191=_0x3e2f2a['mapper']['markerNameToElements'](_0x2f2aee['markerName']);if(!_0x157191)return;const {id:_0x5edb38}=this['_splitMarkerName'](_0x2f2aee['markerName']),_0xc2dc25=this['_suggestions']['get'](_0x5edb38),_0x4b61e1=this['_getAttributeKey'](_0xc2dc25);if(this['_isBlockAttribute'](_0x4b61e1)){for(const _0xde5f9f of _0x157191)_0xde5f9f['getCustomProperty']('addHighlight')||(_0x3e2f2a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xde5f9f),_0x3e2f2a['writer']['removeAttribute']('data-suggestion',_0xde5f9f),_0x3e2f2a['writer']['removeAttribute']('data-author-id',_0xde5f9f),_0x3e2f2a['mapper']['unbindElementFromMarkerName'](_0xde5f9f,_0x2f2aee['markerName']));}},{'priority':'high'});}),_0x3d2830['model']['document']['registerPostFixer'](_0x51755c=>{let _0x2494bb=!0x1;const _0x5905d7=Array['from'](_0x3d2830['model']['document']['differ']['getChangedMarkers']()),_0x281990=new Set();for(const {name:_0x1f2c52,data:_0x2fe8f2}of _0x5905d7){const {group:_0x14ad0e,type:_0x5ec542,subType:_0x243067,id:_0x4c475f}=this['_splitMarkerName'](_0x1f2c52);if('suggestion'!==_0x14ad0e)continue;const _0x383d12=this['_suggestions']['get'](_0x4c475f);if(null!=_0x2fe8f2['newRange']){'formatInline'==_0x5ec542&&(_0x2494bb=_0x2494bb||Pt(_0x2fe8f2['newRange'],_0x1f2c52,_0x51755c,_0x3d2830['model']['schema']));const _0x5e2f34='attribute'==_0x5ec542&&this['_isBlockAttribute'](_0x243067['split']('|')[0x0]);if(_0x2fe8f2['newRange']['isCollapsed']||'$graveyard'==_0x2fe8f2['newRange']['root']['rootName']||'formatBlock'==_0x5ec542&&!Ft(_0x2fe8f2['newRange'])||_0x5e2f34&&!Ft(_0x2fe8f2['newRange'])||'deletion'==_0x5ec542&&!(!Vt(_0x1dea09=_0x2fe8f2['newRange'])&&!function(_0x1a6ba1){return _0x1a6ba1['start']['parent']==_0x1a6ba1['end']['nodeBefore']&&_0x1a6ba1['start']['isAtEnd'];}(_0x1dea09)))_0x51755c['removeMarker'](_0x1f2c52),_0x2494bb=!0x0;else{if(!_0x383d12||!_0x383d12['isInContent'])continue;if(_0x2fe8f2['newRange']&&_0x2fe8f2['oldRange']&&_0x2fe8f2['newRange']['isEqual'](_0x2fe8f2['oldRange']))continue;_0x281990['add'](_0x383d12);}}}var _0x1dea09;return _0x281990['size']>0x0&&(_0x2494bb=!!this['_joinWithAdjacentSuggestions'](_0x281990)||_0x2494bb),_0x2494bb;}),_0x3d2830['model']['document']['registerPostFixer'](_0x5b5d96=>{let _0x43b13e=!0x1;for(const _0x26fe3f of _0x3d2830['model']['document']['differ']['getChanges']())if('insert'==_0x26fe3f['type'])for(const _0x269a4a of this['_suggestions']['values']()){if(_0x269a4a['isMultiRange']||!_0x269a4a['isInContent'])continue;const _0x3bdc81='formatBlock'==_0x269a4a['type'],_0x858b22=this['_getAttributeKey'](_0x269a4a),_0x221b06=_0x858b22&&this['_isBlockAttribute'](_0x858b22);if(!_0x3bdc81&&!_0x221b06)continue;const _0x3b4607=_0x269a4a['getFirstRange']();if(_0x3b4607['start']['parent']!=_0x3b4607['end']['parent']&&!_0x3b4607['end']['isAtEnd']){const _0x2c0d34=_0x3d2830['model']['createPositionAt'](_0x3b4607['start']['nodeAfter'],'end'),_0x6822ea=_0x3d2830['model']['createRange'](_0x3b4607['start'],_0x2c0d34);_0x5b5d96['updateMarker'](_0x269a4a['getFirstMarker'](),{'range':_0x6822ea}),_0x43b13e=!0x0;}}return _0x43b13e;}),_0x3d2830['model']['document']['registerPostFixer'](_0x398ee1=>this['_processAttributeChanges'](_0x398ee1)),_0x3d2830['model']['document']['registerPostFixer'](_0x2f2b59=>!_0x2f2b59['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f2b59)),_0x3d2830['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3d2830['model']['document']['on']('change:data',(_0x50677c,_0x253842)=>{if(!_0x253842['isLocal']||_0x253842['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x9ea827=_0x3d2830['model']['document']['differ']['getChanges']();if(0x0==_0x9ea827['length'])return;const _0x3dd02e=[],_0x3bfe93=_0x9ea827['filter'](_0x4f86b7=>'attribute'==_0x4f86b7['type']),_0x189c97=_0x9ea827['filter'](_0x38f5c9=>'insert'==_0x38f5c9['type']&&'$text'!=_0x38f5c9['name']);for(const _0x1ed22c of _0x3bfe93)this['_isRegisteredAttribute'](_0x1ed22c['attributeKey'])&&_0x3dd02e['push']({'key':_0x1ed22c['attributeKey'],'newValue':_0x1ed22c['attributeNewValue'],'oldValue':_0x1ed22c['attributeOldValue'],'range':Lt(_0x1ed22c['range'],_0x3d2830['model'])});for(const _0x330bfa of _0x189c97){if('rename'!=_0x330bfa['action']&&'refresh'!=_0x330bfa['action'])continue;const _0x46841b=Jt(_0x330bfa['position']['nodeAfter'],_0x3d2830['model']),_0xc12a61=_0x330bfa['before'];'rename'==_0x330bfa['action']&&_0x3dd02e['push']({'key':m,'newValue':_0x330bfa['name'],'oldValue':_0xc12a61['name'],'range':_0x46841b});for(const [_0x4ee821,_0x482e27]of _0xc12a61['attributes']){if(!this['_isRegisteredAttribute'](_0x4ee821))continue;const _0x7195ac=_0x330bfa['attributes']['get'](_0x4ee821);_0x482e27!==_0x7195ac&&_0x3dd02e['push']({'key':_0x4ee821,'newValue':_0x7195ac,'oldValue':_0x482e27,'range':_0x46841b});}for(const [_0x30b009,_0x5249a9]of _0x330bfa['attributes'])this['_isRegisteredAttribute'](_0x30b009)&&(_0xc12a61['attributes']['has'](_0x30b009)||_0x3dd02e['push']({'key':_0x30b009,'newValue':_0x5249a9,'oldValue':null,'range':_0x46841b}));}0x0!=_0x3dd02e['length']&&_0x3d2830['model']['enqueueChange'](_0x253842,_0x75eb7e=>{const _0x5eece3=_0x24c9d1();for(const {range:_0x5e4f92,key:_0x25cd8b,oldValue:_0xbe5ef7,newValue:_0x309e0a}of _0x3dd02e)this['markAttributeChange'](_0x5e4f92,_0x25cd8b,_0xbe5ef7,_0x309e0a,{'groupId':_0x5eece3});this['_reduceExistingSuggestions'](_0x75eb7e,_0x3dd02e);});},{'priority':'lowest'}),_0x3d2830['model']['markers']['on']('update:suggestion',(_0xbb83c9,_0x502507,_0x29eb85)=>{if(null==_0x29eb85){const {id:_0x1f3b3d}=this['_splitMarkerName'](_0x502507['name']),_0x735ef9=this['_suggestions']['get'](_0x1f3b3d);_0x735ef9&&_0x735ef9['addMarkerName'](_0x502507['name']);}}),_0x3d2830['model']['document']['on']('change:data',()=>{const _0x100530=Array['from'](_0x3d2830['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1aa5d9=>'suggestion'===this['_splitMarkerName'](_0x1aa5d9['name'])['group']);if(0x0===_0x100530['length'])return;_0x100530['sort']((_0x1de8c6,_0x33aa97)=>{const _0x338a5c=_0x1de8c6['data']['oldRange'],_0x14cc85=_0x33aa97['data']['oldRange'];return null===_0x338a5c&&null===_0x14cc85?0x0:null===_0x338a5c&&null!==_0x14cc85?-0x1:null!==_0x338a5c&&null===_0x14cc85?0x1:_0x338a5c['start']['isBefore'](_0x14cc85['start'])?-0x1:0x1;});const _0x33a670=new Set(),_0x474a2c=new Set();for(const {name:_0x2ac86d,data:_0x31e913}of _0x100530){const {id:_0x467b75}=this['_splitMarkerName'](_0x2ac86d);if(null===_0x31e913['oldRange']){const _0x455689=this['_handleNewSuggestionMarker'](_0x2ac86d);_0x474a2c['add'](_0x455689);}else{const _0x268f84=this['_suggestions']['get'](_0x467b75);null!==_0x31e913['newRange']||_0x268f84['isInContent']?(_0x33a670['add'](_0x268f84['head']),_0x474a2c['add'](_0x268f84)):this['_removeSuggestion'](_0x268f84);}}_0x474a2c['size']>0x0&&this['_refreshSuggestionsChain'](_0x474a2c);for(const _0x4b9e88 of _0x33a670)this['fire']('suggestionChanged',_0x4b9e88);}),_0x3d2830['model']['on']('applyOperation',(_0x4c7e61,_0x5e7ee1)=>{const _0x91b63b=_0x5e7ee1[0x0];if(!this['_suggestions']['size'])return;if(!_0x91b63b['isDocumentOperation'])return;if(_0x91b63b['batch']['isUndo']||!_0x91b63b['batch']['isLocal'])return;let _0x35a3ef,_0x5ba048;switch(_0x91b63b['type']){case'insert':_0x35a3ef=_0x3d2830['model']['createPositionAt'](_0x91b63b['position']),_0x5ba048=_0x35a3ef['getShiftedBy'](_0x91b63b['howMany']);break;case'split':_0x35a3ef=_0x3d2830['model']['createPositionAt'](_0x91b63b['splitPosition']),_0x5ba048=_0x3d2830['model']['createPositionAt'](_0x91b63b['moveTargetPosition']);break;case'move':_0x35a3ef=_0x3d2830['model']['createPositionAt'](_0x91b63b['targetPosition']),_0x5ba048=_0x35a3ef['getShiftedBy'](_0x91b63b['howMany']);break;default:return;}const _0x19a3c0=_0x3d2830['model']['createRange'](_0x35a3ef,_0x5ba048);_0x3d2830['model']['change'](()=>{for(const {suggestion:_0x1358ef,meta:_0x2ce79f}of this['_findSuggestions'](_0x19a3c0)){if(_0x1358ef['isMultiRange'])continue;if('formatInline'==_0x1358ef['type'])continue;const _0x599bb0=this['_getAttributeKey'](_0x1358ef);if(_0x599bb0&&this['_isBlockAttribute'](_0x599bb0)&&'split'!=_0x91b63b['type'])continue;const _0x29381d=_0x1358ef['data']&&_0x1358ef['data']['multipleBlocks'];('formatBlock'!=_0x1358ef['type']||'split'==_0x91b63b['type']&&!_0x29381d)&&(_0x2ce79f['containsRangeInObject']||'insertion'==_0x1358ef['type']&&_0x2ce79f['isOwn']||_0x1358ef['getFirstRange']()['containsRange'](_0x19a3c0)&&this['_breakSuggestionMarker'](_0x1358ef,_0x35a3ef,_0x5ba048));}});},{'priority':'lowest'}),_0x3d2830['model']['on']('deleteContent',(_0x38ec56,_0x58bd39)=>{const _0xcd568b=_0x58bd39[0x0],_0x5e01fc=_0x58bd39[0x1];if(_0x5e01fc&&_0x5e01fc['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xcd568b['isCollapsed'])return;const _0x468c40=_0x3d2830['model']['schema'],{start:_0x3c29f1,end:_0x4facb0}=_0xcd568b['getFirstRange'](),_0x3f74e4=_0x3c29f1['nodeAfter']&&_0x468c40['isLimit'](_0x3c29f1['nodeAfter'])?null:_0x468c40['getNearestSelectionRange'](_0x3c29f1,'forward'),_0x40d487=_0x4facb0['nodeBefore']&&_0x468c40['isLimit'](_0x4facb0['nodeBefore'])?null:_0x468c40['getNearestSelectionRange'](_0x4facb0,'backward'),_0x4196f0=_0x3d2830['model']['createRange'](_0x3f74e4?_0x3f74e4['start']:_0x3c29f1,_0x40d487?_0x40d487['end']:_0x4facb0);_0x3d2830['model']['change'](_0x147b99=>{this['markDeletion'](_0x4196f0);const _0x30dc1d=_0x3d2830['model']['schema']['getNearestSelectionRange'](_0x4196f0['start']);_0xcd568b['is']('documentSelection')?_0x147b99['setSelection'](_0x30dc1d):_0xcd568b['setTo'](_0x30dc1d);}),_0x38ec56['stop']();},{'priority':_0x2414e4['normal']+0xa}),_0x3d2830['model']['on']('insertContent',(_0x440e88,_0x357b61)=>{const _0x1e86c2=_0x357b61[_0x357b61['length']-0x1];_0x1e86c2&&_0x1e86c2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3d2830['model']['change'](()=>{let _0x33f438=_0x3d2830['model']['insertContent'](_0x357b61[0x0],_0x357b61[0x1],_0x357b61[0x2],{'forceDefaultExecution':!0x0});if(!_0x33f438)return;_0x440e88['return']=_0x33f438['clone']();const _0x46895d=_0x33f438['end']['nodeBefore'],_0x2b8e6a=_0x3d2830['model']['schema'];_0x46895d&&_0x2b8e6a['isBlock'](_0x46895d)&&!_0x2b8e6a['isObject'](_0x46895d)&&(_0x33f438=_0x3d2830['model']['createRange'](_0x33f438['start'],_0x3d2830['model']['createPositionAt'](_0x46895d,'end'))),this['markInsertion'](_0x33f438);}),_0x440e88['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x427c3f=new O(_0x3d2830,this['_suggestions']);_0x3d2830['commands']['add']('acceptSuggestion',_0x427c3f),this['enableCommand']('acceptSuggestion');const _0x2e95ed=new R(_0x3d2830,this['_suggestions']);_0x3d2830['commands']['add']('discardSuggestion',_0x2e95ed),this['enableCommand']('discardSuggestion'),_0x3d2830['commands']['add']('acceptAllSuggestions',new x(_0x3d2830,_0x427c3f,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3d2830['commands']['add']('discardAllSuggestions',new x(_0x3d2830,_0x2e95ed,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3d2830['commands']['add']('acceptSelectedSuggestions',new E(_0x3d2830,_0x427c3f,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3d2830['commands']['add']('discardSelectedSuggestions',new E(_0x3d2830,_0x2e95ed,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x177fc0=_0x3d2830['plugins']['get']('CommentsRepository');this['listenTo'](_0x177fc0,'addComment',(_0x45cda4,{threadId:_0x2a2a6b})=>{const _0x12dcd5=this['_suggestions']['get'](_0x2a2a6b);_0x12dcd5&&_0x12dcd5['commentThread']&&0x1===_0x12dcd5['commentThread']['length']&&this['_updateSuggestionData'](_0x2a2a6b,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x177fc0,'removeComment',(_0x7a259b,{threadId:_0x1e481d})=>{const _0x526cca=this['_suggestions']['get'](_0x1e481d);_0x526cca&&_0x526cca['commentThread']&&!_0x526cca['commentThread']['length']&&this['_updateSuggestionData'](_0x1e481d,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x2148ad){const _0x5c6651=_0x21c86d([0x57,0x6f,0x68,0x75,0x6b,0x6c,0x63,0x7a,0x58,0x70,0x53,0x34,0x38,0x4e,0x32,0x62,0x72,0x6a,0x49,0x37,0x44,0x6e,0x33,0x51,0x31,0x50,0x45,0x64,0x61,0x59,0x54,0x77,0x52,0x35,0x46,0x42,0x66,0x4a,0x30,0x73,0x36,0x5a,0x76,0x67,0x4b,0x4f,0x79,0x65,0x4d,0x74,0x55,0x4c,0x6d,0x48,0x71,0x56,0x39,0x47,0x69,0x43,0x78,0x41]),_0x475048=0x2846859d,_0x338528=0x2841dfcd^_0x475048,_0x5349c9=window[_0x21c86d([0x44,0x61,0x74,0x65])][_0x21c86d([0x6e,0x6f,0x77])](),_0x24a01e=_0x2148ad[_0x21c86d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x53e9fa=new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f58ae=>{_0x24a01e[_0x21c86d([0x6f,0x6e,0x63,0x65])](_0x21c86d([0x72,0x65,0x61,0x64,0x79]),_0x2f58ae);}),_0x28c8ac={[_0x21c86d([0x6b,0x74,0x79])]:_0x21c86d([0x45,0x43]),[_0x21c86d([0x75,0x73,0x65])]:_0x21c86d([0x73,0x69,0x67]),[_0x21c86d([0x63,0x72,0x76])]:_0x21c86d([0x50,0x2d,0x32,0x35,0x36]),[_0x21c86d([0x78])]:_0x21c86d([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]),[_0x21c86d([0x79])]:_0x21c86d([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]),[_0x21c86d([0x61,0x6c,0x67])]:_0x21c86d([0x45,0x53,0x32,0x35,0x36])},_0x21c68a=_0x24a01e[_0x21c86d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x21c86d([0x67,0x65,0x74])](_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2eda3e(){let _0x3d8626,_0x37f0d6=null,_0x20ba88=null;try{if(_0x21c68a==_0x21c86d([0x47,0x50,0x4c]))return _0x21c86d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3d8626=_0x4bb292(),!_0x3d8626)return _0x21c86d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3d8626[_0x21c86d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x20ba88=_0x1ea3f8(_0x3d8626[_0x21c86d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3d8626[_0x21c86d([0x6a,0x74,0x69])])),await _0x2bf8b1()?_0x19a06c()?_0x361aa1()?_0x21c86d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x97b6df()?(_0x3d8626[_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c86d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x37f0d6=_0x22cc06(_0x21c86d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d8626[_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c86d([0x74,0x72,0x69,0x61,0x6c])&&(_0x37f0d6=_0x22cc06(_0x21c86d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x3d8626[_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x21c86d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x37f0d6=_0x22cc06(_0x21c86d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ea02d()):_0x21c86d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x21c86d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x21c86d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1acd1a){return _0x21c86d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x361aa1(){const _0x187985=[_0x21c86d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x21c86d([0x74,0x72,0x69,0x61,0x6c])][_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d8626[_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5349c9/0x3e8:0xe10*_0x338528;return _0x3d8626[_0x21c86d([0x65,0x78,0x70])]<_0x187985;}function _0x19a06c(){const _0x3c3efe=_0x3d8626[_0x21c86d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x3c3efe)return!0x1;if(_0x3c3efe[_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c86d([0x2a])))return!0x0;if(_0x3c3efe[_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c86d([0x54,0x43])))return!0x0;if(_0x3c3efe[_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c86d([0x52,0x54,0x43]))){if(_0x1ab783())return!0x0;if(_0x49c274()||_0x5ecee4())return!0x0;}return!0x1;}function _0x97b6df(){const _0x3ab379=_0x3d8626[_0x21c86d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ab379||0x0==_0x3ab379[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2135f9}=new URL(window[_0x21c86d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ab379[_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2135f9))return!0x0;const _0x32899b=_0x2135f9[_0x21c86d([0x73,0x70,0x6c,0x69,0x74])](_0x21c86d([0x2e]));return _0x3ab379[_0x21c86d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x33cf6f=>_0x33cf6f[_0x21c86d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21c86d([0x2a])))[_0x21c86d([0x6d,0x61,0x70])](_0x439140=>_0x439140[_0x21c86d([0x73,0x70,0x6c,0x69,0x74])](_0x21c86d([0x2e])))[_0x21c86d([0x73,0x6f,0x6d,0x65])](_0x2a5927=>_0x32899b[_0x21c86d([0x65,0x76,0x65,0x72,0x79])]((_0x4c3e57,_0x9ed482)=>_0x2a5927[_0x9ed482]===_0x4c3e57||_0x2a5927[_0x9ed482]===_0x21c86d([0x2a])));}function _0x1ea02d(){return _0x37f0d6&&_0x20ba88?new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41848c,_0x435fd4)=>{_0x37f0d6[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x41848c,_0x435fd4),_0x20ba88[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x47858c=>{_0x47858c!=_0x21c86d([0x56,0x61,0x6c,0x69,0x64])&&_0x41848c(_0x47858c);},_0x435fd4);}):_0x37f0d6||_0x20ba88||_0x21c86d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1ea3f8(_0x320d92,_0x4248f3){return new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2dfc92=>{if(_0x4a72ab())return _0x2dfc92(_0x21c86d([0x56,0x61,0x6c,0x69,0x64]));_0x4dd2b3(),_0x24a01e[_0x21c86d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x21c86d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x23c7cc=!0x1;const _0xe6c4b8=_0x24c9d1();function _0x1bff0c(_0x5236b1){return!!_0x5236b1&&(typeof _0x5236b1===_0x21c86d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5236b1===_0x21c86d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5236b1[_0x21c86d([0x74,0x68,0x65,0x6e])]===_0x21c86d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5236b1[_0x21c86d([0x63,0x61,0x74,0x63,0x68])]===_0x21c86d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4a83eb(_0x1437f5){_0xd7be5e(_0x1437f5)[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x2c2375=>{if(!_0x2c2375||_0x2c2375[_0x21c86d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x21c86d([0x6f,0x6b]))return _0x21c86d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5287ae(_0x4a1889(_0xe6c4b8+_0x4248f3))!=_0x2c2375[_0x21c86d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x21c86d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x21c86d([0x56,0x61,0x6c,0x69,0x64]);})[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x5c8547=>(_0x407444(),_0x5c8547),()=>{const _0x252ba3=_0x3cb209();return null==_0x252ba3?(_0x407444(),_0x21c86d([0x56,0x61,0x6c,0x69,0x64])):_0x21c86d(_0x5349c9-_0x252ba3>(0xc4a019d^_0x475048)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x2dfc92)[_0x21c86d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2dfc92(_0x21c86d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55cebc=0x28706b1d^_0x475048;function _0x407444(){const _0x438056=_0x21c86d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5287ae(_0x4a1889(_0x320d92)),_0x4ff8c1=_0xd70976(_0x5287ae(window[_0x21c86d([0x4d,0x61,0x74,0x68])][_0x21c86d([0x63,0x65,0x69,0x6c])](_0x5349c9/_0x55cebc)));window[_0x21c86d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c86d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x438056,_0x4ff8c1);}function _0x3cb209(){const _0x145098=_0x21c86d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5287ae(_0x4a1889(_0x320d92)),_0x138059=window[_0x21c86d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x21c86d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x145098);return _0x138059?window[_0x21c86d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd70976(_0x138059),0x10)*_0x55cebc:null;}function _0xd7be5e(_0x17971b){return new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2468e6,_0xab39c2)=>{_0x17971b[_0x21c86d([0x74,0x68,0x65,0x6e])](_0x2468e6,_0xab39c2),window[_0x21c86d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xab39c2,0x2847515d^_0x475048);});}}_0x24a01e[_0x21c86d([0x6f,0x6e])](_0x21c86d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x13eb19,_0x8f6f1a)=>{if(_0x8f6f1a[0x0]!=_0x320d92)return _0x2dfc92(_0x21c86d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x8f6f1a[0x1]={..._0x8f6f1a[0x1],[_0x21c86d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xe6c4b8};},{[_0x21c86d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c86d([0x68,0x69,0x67,0x68])}),_0x24a01e[_0x21c86d([0x6f,0x6e])](_0x21c86d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37cb11=>{_0x1bff0c(_0x37cb11[_0x21c86d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x23c7cc=!0x0,_0x4a83eb(_0x37cb11[_0x21c86d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x21c86d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x21c86d([0x6c,0x6f,0x77])}),_0x53e9fa[_0x21c86d([0x74,0x68,0x65,0x6e])](()=>{_0x23c7cc||_0x2dfc92(_0x21c86d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a72ab(){return _0x24a01e[_0x21c86d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c86d([0x76,0x69,0x65,0x77])][_0x21c86d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x21c86d([0x61,0x75,0x74,0x6f]);}function _0x4dd2b3(){_0x24a01e[_0x21c86d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x21c86d([0x76,0x69,0x65,0x77])][_0x21c86d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x21c86d([0x61,0x75,0x74,0x6f]);}}function _0x22cc06(_0x5a5a35){const _0xd3514=[new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25270d=>setTimeout(_0x25270d,0x284fbb51^_0x475048)),_0x53e9fa[_0x21c86d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217b1e=>{let _0x427074=0x0;_0x24a01e[_0x21c86d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c86d([0x6f,0x6e])](_0x21c86d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4810bc,_0x48e3eb)=>{_0x48e3eb[0x0][_0x21c86d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x427074++,_0x427074==(0x28468465^_0x475048)&&(_0x217b1e(),_0x4810bc[_0x21c86d([0x6f,0x66,0x66])]());});}))];return window[_0x21c86d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x21c86d([0x72,0x61,0x63,0x65])](_0xd3514)[_0x21c86d([0x74,0x68,0x65,0x6e])](()=>_0x5a5a35);}async function _0x19d554(){await _0x53e9fa,_0x24a01e[_0x21c86d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c86d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xc46592,_0x24a01e[_0x21c86d([0x6d,0x6f,0x64,0x65,0x6c])][_0x21c86d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xc46592,_0x24a01e[_0x21c86d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x21c86d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ab783(){return _0x4c4b18(_0x21c86d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3dd21b(_0x21c86d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x21c86d([0x73,0x74,0x61,0x74,0x65])]==_0x21c86d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x49c274(){return _0x4c4b18(_0x21c86d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x5ecee4(){return _0x4c4b18(_0x21c86d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x156671(_0x4184d6){const _0x5d78c7=_0x3c052d();_0x24a01e[_0x5d78c7]=_0x21c86d([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4184d6,_0x4184d6!=_0x21c86d([0x56,0x61,0x6c,0x69,0x64])&&_0x19d554();}function _0x3c052d(){const _0x17f6b7=window[_0x21c86d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x21c86d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x21c86d([0x6e,0x6f,0x77])]())[_0x21c86d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x21c86d([0x2e]),'');let _0x2262ec=_0x21c86d([0x57]);for(let _0x3daba4=0x0;_0x3daba4<_0x17f6b7[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3daba4+=0x2){let _0x335df5=window[_0x21c86d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17f6b7[_0x21c86d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3daba4,_0x3daba4+0x2));_0x335df5>=_0x5c6651[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x335df5-=_0x5c6651[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2262ec+=_0x5c6651[_0x335df5];}return _0x2262ec;}function _0x4bb292(){const _0x43107a=_0x21c68a[_0x21c86d([0x73,0x70,0x6c,0x69,0x74])](_0x21c86d([0x2e]));if(0x3!=_0x43107a[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2db236(_0x43107a[0x1]);function _0x2db236(_0x527210){const _0x49160c=_0x27861d(_0x527210);return _0x49160c&&_0x3b16de()?_0x49160c:null;function _0x3b16de(){const _0x3e2a1f=_0x49160c[_0x21c86d([0x6a,0x74,0x69])],_0x40eaca=window[_0x21c86d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2a1f[_0x21c86d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2a1f[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x348ab8={..._0x49160c,[_0x21c86d([0x6a,0x74,0x69])]:_0x3e2a1f[_0x21c86d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e2a1f[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x348ab8[_0x21c86d([0x76,0x63])],_0x4a1889(_0x348ab8)==_0x40eaca;}}}async function _0x2bf8b1(){let _0x2575e8=!0x0;try{const _0x31d19d=_0x21c68a[_0x21c86d([0x73,0x70,0x6c,0x69,0x74])](_0x21c86d([0x2e])),[_0x81194a,_0x3865e1,_0x2c3f13]=_0x31d19d;return _0x47bffd(_0x81194a),await _0x1da952(_0x81194a,_0x3865e1,_0x2c3f13),_0x2575e8;}catch(_0x4f04c2){return!0x1;}function _0x47bffd(_0x187078){const _0x4bfc92=_0x27861d(_0x187078);_0x4bfc92&&_0x4bfc92[_0x21c86d([0x61,0x6c,0x67])]==_0x21c86d([0x45,0x53,0x32,0x35,0x36])||(_0x2575e8=!0x1);}async function _0x1da952(_0x2f2744,_0x8ccaf3,_0x573a93){const _0x2eeda4=window[_0x21c86d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x21c86d([0x66,0x72,0x6f,0x6d])](_0x21a9ea(_0x573a93),_0x1e690f=>_0x1e690f[_0x21c86d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3d76ce=new window[(_0x21c86d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x21c86d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2f2744+_0x21c86d([0x2e])+_0x8ccaf3),_0x2f16fb=window[_0x21c86d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x21c86d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2f16fb)return;const _0x1c6c31=await _0x2f16fb[_0x21c86d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x21c86d([0x6a,0x77,0x6b]),_0x28c8ac,{[_0x21c86d([0x6e,0x61,0x6d,0x65])]:_0x21c86d([0x45,0x43,0x44,0x53,0x41]),[_0x21c86d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x21c86d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x21c86d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2f16fb[_0x21c86d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x21c86d([0x6e,0x61,0x6d,0x65])]:_0x21c86d([0x45,0x43,0x44,0x53,0x41]),[_0x21c86d([0x68,0x61,0x73,0x68])]:{[_0x21c86d([0x6e,0x61,0x6d,0x65])]:_0x21c86d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c6c31,_0x2eeda4,_0x3d76ce)||(_0x2575e8=!0x1);}}function _0x27861d(_0x4d57e0){return _0x4d57e0[_0x21c86d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x21c86d([0x65,0x79]))?JSON[_0x21c86d([0x70,0x61,0x72,0x73,0x65])](_0x21a9ea(_0x4d57e0)):null;}function _0x21a9ea(_0x1fe0cb){return window[_0x21c86d([0x61,0x74,0x6f,0x62])](_0x1fe0cb[_0x21c86d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x21c86d([0x2b]))[_0x21c86d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x21c86d([0x2f])));}function _0x4a1889(_0x5d3de1){let _0x3ec955=0x1505;function _0x43a51c(_0xbcea89){for(let _0x3a94de=0x0;_0x3a94de<_0xbcea89[_0x21c86d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a94de++){const _0x43ba50=_0xbcea89[_0x21c86d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a94de);_0x3ec955=(_0x3ec955<<0x5)+_0x3ec955+_0x43ba50,_0x3ec955&=_0x3ec955;}}function _0x368e50(_0x2f249a){Array[_0x21c86d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2f249a)?_0x2f249a[_0x21c86d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x368e50):_0x2f249a&&typeof _0x2f249a==_0x21c86d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x21c86d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2f249a)[_0x21c86d([0x73,0x6f,0x72,0x74])]()[_0x21c86d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xb8b3b9,_0x5c086d])=>{_0x43a51c(_0xb8b3b9),_0x368e50(_0x5c086d);}):_0x43a51c(window[_0x21c86d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2f249a));}return _0x368e50(_0x5d3de1),_0x3ec955>>>0x0;}function _0x5287ae(_0x512b7d){return _0x512b7d[_0x21c86d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x21c86d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x21c86d([0x30]));}function _0xd70976(_0x15c3df){return _0x15c3df[_0x21c86d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x21c86d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x21c86d([0x6a,0x6f,0x69,0x6e])]('');}function _0x4c4b18(_0x574269){return _0x24a01e[_0x21c86d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21c86d([0x68,0x61,0x73])](_0x574269);}function _0x3dd21b(_0x27b72a){return _0x24a01e[_0x21c86d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x21c86d([0x67,0x65,0x74])](_0x27b72a);}function _0xc46592(){}function _0x21c86d(_0x5676e0){return _0x5676e0['map'](_0x54965d=>String['fromCharCode'](_0x54965d))['join']('');}_0x156671(await _0x2eda3e());}(this);}set['adapter'](_0x35b70b){if(this['_adapter'])throw new _0x417294('track-changes-adapter-already-set',this);this['_adapter']=_0x35b70b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4676eb=!0x1,toJSON:_0x5641a5=!0x1}={}){const _0x542622=[];for(const _0x12524a of this['_suggestions']['values']())_0x4676eb&&!_0x12524a['isInContent']||_0x542622['push'](_0x12524a);return _0x5641a5?_0x542622['map'](_0x4e7a02=>_0x4e7a02['toJSON']()):_0x542622;}['getSuggestion'](_0x8b60c){const _0x4f74a7=this['_suggestions']['get'](_0x8b60c);if(!_0x4f74a7)throw new _0x417294('track-changes-suggestion-not-found',this);return _0x4f74a7;}['hasSuggestion'](_0x447563){return this['_suggestions']['has'](_0x447563);}['addSuggestionData'](_0x500e98){const {authorId:_0x591e15,id:_0x6d5834,attributes:_0x47918a}=_0x500e98,[_0x529c65,_0x371234]=_0x500e98['type']['split'](':'),_0x37d760=this['_suggestions']['get'](_0x6d5834)||this['_createSuggestion'](_0x529c65,_0x371234,_0x6d5834,_0x591e15,_0x47918a);if(this['_addThreadToSuggestion'](_0x37d760),this['_checkSuggestionCorrectness'](_0x37d760,_0x529c65,_0x371234||null,_0x591e15),_0x37d760['createdAt']=_0x500e98['createdAt'],_0x37d760['_isDataLoaded']=!0x0,_0x47918a&&_0x47918a['@external']){const _0x2e4aea=_0x47918a['@external'],_0xe09650=this['_getExternalAuthor'](_0x2e4aea['authorName']);_0x37d760['authoredAt']=_0x2e4aea['createdAt'],_0x37d760['author']=_0xe09650,_0x37d760['isExternal']=!0x0;}else _0x37d760['authoredAt']=_0x500e98['createdAt'];switch(_0x500e98['data']&&(_0x37d760['data']=_0x500e98['data']),_0x500e98['attributes']&&(_0x37d760['attributes']=_0x500e98['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x37d760['_saved']=!0x0),this['_suggestionState']['get'](_0x37d760)){case'notReady':this['_suggestionState']['set'](_0x37d760,'dataReady');break;case'markerReady':_0x37d760['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x37d760])),this['_refreshSuggestionsChain'](new Set([_0x37d760])),this['_suggestionState']['set'](_0x37d760,'ready'),this['fire']('suggestionLoaded',_0x37d760)):this['_suggestionState']['set'](_0x37d760,'removed');}return _0x37d760;}['acceptSuggestion'](_0x55239f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x571de2 of _0x55239f['getAllAdjacentSuggestions']())_0x571de2['accept']();});});}['discardSuggestion'](_0x3e06cd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x307f87 of _0x3e06cd['getAllAdjacentSuggestions']())_0x307f87['discard']();});});}['enableCommand'](_0x44e04f,_0x456968){const _0x2a2d6a=this['editor']['commands']['get'](_0x44e04f);if(!_0x2a2d6a)throw new _0x417294('track-changes-command-not-found',this,{'commandName':_0x44e04f});if(this['_enabledCommands']['has'](_0x2a2d6a))throw new _0x417294('track-changes-enable-command-twice',this,{'commandName':_0x44e04f});this['_enabledCommands']['add'](_0x2a2d6a),_0x456968&&_0x2a2d6a['on']('execute',(_0xa9601c,_0x576484)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x576484['length']>0x0&&_0x576484[_0x576484['length']-0x1]&&_0x576484[_0x576484['length']-0x1]['forceDefaultExecution']?_0x576484['pop']():(_0xa9601c['return']=_0x456968((..._0x48b588)=>_0x2a2d6a['execute'](..._0x48b588,{'forceDefaultExecution':!0x0}),..._0x576484),_0xa9601c['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1bf6c3){let _0x21cc84,_0x194ce4;const _0x13903e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x21cc84=_0x1bf6c3();}catch(_0x2cda5b){_0x194ce4=_0x2cda5b;}return _0x13903e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x194ce4&&_0x417294['rethrowUnexpectedError'](_0x194ce4,this),_0x21cc84;}['markInsertion'](_0x5dbd92,_0x17630f=null,_0x2d58dd={}){if(_0x5dbd92['isCollapsed'])return null;const _0x4f8965=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5b05d4,meta:_0x4b572a}of this['_findSuggestions'](_0x5dbd92,'insertion'))if(_0x4b572a['isOwn']){if(!_0x4b572a['isNextTo']){if(_0x4b572a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!zt(_0x5b05d4,_0x2d58dd))continue;return _0x5b05d4;}if(zt(_0x5b05d4,_0x2d58dd))return _0x5b05d4;this['_breakSuggestionMarker'](_0x5b05d4,_0x5dbd92['start'],_0x5dbd92['end']);break;}if(_0x17630f==_0x5b05d4['subType']&&zt(_0x5b05d4,_0x2d58dd)){const _0x447ed1=_0x5b05d4['getFirstRange']();return _0x447ed1['start']['isEqual'](_0x5dbd92['end'])?this['_setSuggestionRange'](_0x5b05d4,this['_model']['createRange'](_0x5dbd92['start'],_0x447ed1['end'])):this['_setSuggestionRange'](_0x5b05d4,this['_model']['createRange'](_0x447ed1['start'],_0x5dbd92['end'])),_0x5b05d4;}}const _0x3cb227=_0x24c9d1(),_0x35dd09=_0x4f8965['id'],_0x34cb48=_0x17630f?'insertion:'+_0x17630f:'insertion',_0x466f3d=this['_setSuggestionData']({'id':_0x3cb227,'type':_0x34cb48,'createdAt':new Date(),'authorId':_0x35dd09,'attributes':_0x2d58dd});return this['_addSuggestionMarker'](_0x34cb48,_0x3cb227,_0x35dd09,_0x5dbd92),_0x466f3d;}['markMultiRangeInsertion'](_0x22334e,_0x321d96='multi',_0x4e3e68={}){const _0x45b608=this['editor']['plugins']['get']('Users')['me'],_0x59a1af=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x321d96,'join');for(const _0xa0be0a of this['getSuggestions']())if(_0xa0be0a['author']['id']==_0x45b608['id']&&'insertion'==_0xa0be0a['type']&&_0xa0be0a['subType']==_0x321d96&&zt(_0xa0be0a,_0x4e3e68)&&(_0x59a1af(_0xa0be0a['getRanges'](),_0x22334e)||_0x59a1af(_0x22334e,_0xa0be0a['getRanges']()))){for(const _0x1b8641 of _0x22334e)_0xa0be0a['addRange'](_0x1b8641);return _0xa0be0a;}for(const {suggestion:_0x542329,meta:_0xf2caaa}of this['_findSuggestions'](_0x22334e,'insertion')){if(!_0xf2caaa['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xf2caaa['containsRangeInObject'])continue;if(!zt(_0x542329,_0x4e3e68))continue;let _0x1ee179=!0x0;for(const _0x1d5fc9 of _0x542329['getRanges']())for(const _0x5828ef of _0x22334e)if(!_0x1d5fc9['containsRange'](_0x5828ef)){_0x1ee179=!0x1;break;}if(_0x1ee179)return _0x542329;}const _0xc46b20=_0x24c9d1(),_0x19b4c3=_0x45b608['id'],_0x451bd6='insertion:'+_0x321d96,_0x50aaee=this['_setSuggestionData']({'id':_0xc46b20,'type':_0x451bd6,'createdAt':new Date(),'authorId':_0x19b4c3,'attributes':_0x4e3e68});for(const _0x4ad758 of _0x22334e)this['_addSuggestionMarker'](_0x451bd6,_0xc46b20,_0x19b4c3,_0x4ad758,u['getMultiRangeId']());return _0x50aaee;}['markInlineFormat'](_0x84825d,_0x588f8e,_0x3fa6e5=null,_0x19ec17={}){if(_0x3fa6e5=_0x3fa6e5||Gt(_0x588f8e),_0x84825d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4dd9a9=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fa6e5,'accept');return this['forceDefaultExecution'](()=>_0x4dd9a9([_0x84825d],_0x588f8e,_0x19ec17)),null;}const _0x3cfb3d=this['editor']['plugins']['get']('Users')['me'],_0x2676f8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x356218,meta:_0x55756c}of this['_findSuggestions'](_0x84825d,'insertion'))_0x55756c['isOwn']&&!_0x55756c['isInsideObject']&&_0x2676f8['push'](..._0x356218['getRanges']());}const _0x2542a6=function(_0x4cb3e8,_0x132252){const _0x26357d=[];for(const _0x271184 of _0x132252){const _0x2661aa=_0x4cb3e8['getIntersection'](_0x271184);_0x2661aa&&_0x26357d['push'](_0x2661aa);}return _0x26357d;}(_0x84825d,_0x2676f8),_0x4e2798=function(_0x44b716,_0x14f17b){const _0x5407e0=[_0x44b716];for(const _0x3b69a2 of _0x14f17b){let _0x1e4464=0x0;for(;_0x1e4464<_0x5407e0['length'];){const _0x108aef=_0x5407e0[_0x1e4464]['getDifference'](_0x3b69a2);_0x5407e0['splice'](_0x1e4464,0x1,..._0x108aef),_0x1e4464+=_0x108aef['length'];}}return _0x5407e0;}(_0x84825d,_0x2676f8);_0x2542a6['length']&&this['_model']['change'](()=>{for(const _0x32e1de of _0x2542a6){const _0x1a0023=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3fa6e5,'accept');this['forceDefaultExecution'](()=>_0x1a0023([_0x32e1de],_0x588f8e,_0x19ec17));}});for(const _0x488cf0 of _0x4e2798){let _0x3a46f8=null,_0x2cdfe0=_0x488cf0['start'],_0x1e8ede=_0x488cf0['end'];for(const {suggestion:_0x5afa0a,meta:_0x5c86f0}of this['_findSuggestions'](_0x488cf0,'formatInline')){if(!_0x5c86f0['isOwn'])continue;if(_0x5afa0a['subType']!=_0x3fa6e5)continue;if(!zt(_0x5afa0a,_0x19ec17))continue;const _0x2d75d2=_0x5afa0a['getFirstRange']();if(_0x2d75d2['containsRange'](_0x488cf0,!0x0))return null;_0x2cdfe0=_0x2cdfe0['isBefore'](_0x2d75d2['start'])?_0x2cdfe0:_0x2d75d2['start'],_0x1e8ede=_0x1e8ede['isAfter'](_0x2d75d2['end'])?_0x1e8ede:_0x2d75d2['end'],_0x3a46f8?_0x2d75d2['start']['isBefore'](_0x3a46f8['getFirstRange']()['start'])?(_0x3a46f8['removeMarkers'](),_0x3a46f8=_0x5afa0a):_0x5afa0a['removeMarkers']():_0x3a46f8=_0x5afa0a;}const _0x14e508=this['_model']['createRange'](_0x2cdfe0,_0x1e8ede);if(_0x3a46f8)this['_setSuggestionRange'](_0x3a46f8,_0x14e508);else{const _0x928dbe=_0x24c9d1(),_0x51f270=_0x3cfb3d['id'];this['_setSuggestionData']({'id':_0x928dbe,'type':'formatInline:'+_0x3fa6e5,'data':_0x588f8e,'createdAt':new Date(),'authorId':_0x51f270,'attributes':_0x19ec17}),this['_addSuggestionMarker']('formatInline:'+_0x3fa6e5,_0x928dbe,_0x51f270,_0x14e508);}}return null;}['markBlockFormat'](_0x3df1d0,_0x19ed51,_0x546cc3=[],_0xb1721b=null,_0xb41f93={}){_0x19ed51['formatGroupId']||(_0x19ed51['formatGroupId']=_0x19ed51['commandName']),_0x19ed51['multipleBlocks']=_0x3df1d0['is']('range'),_0xb1721b=_0xb1721b||Gt(_0x19ed51);const _0x4769dc=_0x546cc3['map'](_0x8668dc=>Jt(_0x8668dc,this['_model'])),_0x3ce0d7=_0x3df1d0['is']('range')?_0x3df1d0:Jt(_0x3df1d0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d9f2a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb1721b,'accept');return this['forceDefaultExecution'](()=>_0x3d9f2a([_0x3ce0d7],_0x19ed51,_0xb41f93)),null;}_0x4769dc['push'](_0x3ce0d7);let _0xde3c05=!0x0;for(const _0x156a84 of _0x4769dc)if(!this['_rangeIsInLocalUserInsertion'](_0x156a84)){_0xde3c05=!0x1;break;}if(_0xde3c05&&'always'!==this['_trackFormatChanges']){const _0x44b2c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xb1721b,'accept');return this['forceDefaultExecution'](()=>_0x44b2c9([_0x3ce0d7],_0x19ed51,_0xb41f93)),null;}let _0x27df36=null,_0x16c89b=_0x3ce0d7['start'],_0x50acf2=_0x3ce0d7['end'];for(const {suggestion:_0x4ee3e3,meta:_0x7078eb}of this['_findSuggestions'](_0x3ce0d7,'formatBlock')){if(!_0x7078eb['isOwn'])continue;if(_0x7078eb['isNextTo']||_0x7078eb['containsRangeInObject']||_0x7078eb['isInsideObject'])continue;if(_0x4ee3e3['data']['formatGroupId']!=_0x19ed51['formatGroupId'])continue;if(!zt(_0x4ee3e3,_0xb41f93))continue;const _0x3d1d8a=_0x4ee3e3['getFirstRange']();if(_0x4ee3e3['subType']==_0xb1721b){if(_0x3d1d8a['containsRange'](_0x3ce0d7,!0x0))return null;_0x16c89b=_0x16c89b['isBefore'](_0x3d1d8a['start'])?_0x16c89b:_0x3d1d8a['start'],_0x50acf2=_0x50acf2['isAfter'](_0x3d1d8a['end'])?_0x50acf2:_0x3d1d8a['end'],_0x27df36?_0x3d1d8a['start']['isBefore'](_0x27df36['getFirstRange']()['start'])?(_0x27df36['removeMarkers'](),_0x27df36=_0x4ee3e3):_0x4ee3e3['removeMarkers']():_0x27df36=_0x4ee3e3;}else{const _0x3a22d8=_0x3ce0d7['getIntersection'](_0x3d1d8a);this['_cutOutSuggestionMarker'](_0x4ee3e3,_0x3a22d8);}}const _0x28c673=this['editor']['plugins']['get']('Users')['me'],_0x2034b8=_0x24c9d1(),_0x5b0e9d=_0x28c673['id'];if(_0x27df36)return this['_setSuggestionRange'](_0x27df36,this['_model']['createRange'](_0x16c89b,_0x50acf2)),_0x27df36;{const _0x55b250=this['_setSuggestionData']({'id':_0x2034b8,'type':'formatBlock:'+_0xb1721b,'data':_0x19ed51,'createdAt':new Date(),'authorId':_0x5b0e9d,'attributes':_0xb41f93});return this['_addSuggestionMarker']('formatBlock:'+_0xb1721b,_0x2034b8,_0x5b0e9d,this['_model']['createRange'](_0x16c89b,_0x50acf2)),_0x55b250;}}['markMultiRangeBlockFormat'](_0xbe12b,_0x5cb538,_0x546210=[],_0x22673f=null,_0xb6726d={}){_0x5cb538['formatGroupId']||(_0x5cb538['formatGroupId']=_0x5cb538['commandName']);const _0x5d8599=_0xbe12b[0x0];_0x5cb538['multipleBlocks']=_0x5d8599['is']('range'),_0x22673f=_0x22673f||Gt(_0x5cb538);const _0x206a94=_0x546210['map'](_0x540688=>Jt(_0x540688,this['_model'])),_0x5f0428=_0x5d8599['is']('range')?_0xbe12b:_0xbe12b['map'](_0x1febea=>Jt(_0x1febea,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1a2a21=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22673f,'accept');return this['forceDefaultExecution'](()=>_0x1a2a21(_0x5f0428,_0x5cb538,_0xb6726d)),null;}_0x206a94['push'](..._0x5f0428);let _0x517efd=!0x0;for(const _0x22e760 of _0x206a94)if(!this['_rangeIsInLocalUserInsertion'](_0x22e760)){_0x517efd=!0x1;break;}if(_0x517efd&&'always'!==this['_trackFormatChanges']){const _0x366346=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22673f,'accept');return this['forceDefaultExecution'](()=>_0x366346(_0x5f0428,_0x5cb538,_0xb6726d)),null;}const _0x1b168b=this['editor']['plugins']['get']('Users')['me'];for(const _0x900c44 of this['getSuggestions']()){if(_0x900c44['author']['id']!=_0x1b168b['id'])continue;if('formatBlock'!=_0x900c44['type']||_0x900c44['data']['formatGroupId']!=_0x5cb538['formatGroupId'])continue;if(!zt(_0x900c44,_0xb6726d))continue;const _0xbebb8f=_0x900c44['subType']==_0x22673f;for(let _0x544364=0x0;_0x544364<_0x5f0428['length'];_0x544364++){const _0xcdf597=_0x5f0428[_0x544364];for(const _0x1049ea of _0x900c44['getMarkers']()){const _0x442382=_0x1049ea['getRange']();if(_0xcdf597['isEqual'](_0x442382)){_0xbebb8f?(_0x5f0428['splice'](_0x544364,0x1),_0x544364--):_0x900c44['removeMarker'](_0x1049ea['name']);break;}}}}if(0x0==_0x5f0428['length'])return null;const _0x1816bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x22673f,'join');for(const _0x5b095b of this['getSuggestions']())if(_0x5b095b['author']['id']==_0x1b168b['id']&&'formatBlock'==_0x5b095b['type']&&_0x5b095b['data']['formatGroupId']==_0x5cb538['formatGroupId']&&_0x5b095b['subType']==_0x22673f&&zt(_0x5b095b,_0xb6726d)&&(_0x1816bb(_0x5b095b['getRanges'](),_0x5f0428)||_0x1816bb(_0x5f0428,_0x5b095b['getRanges']()))){for(const _0x544eba of _0x5f0428)_0x5b095b['addRange'](_0x544eba);return _0x5b095b;}const _0x3e9116=_0x24c9d1(),_0x4cd6b1=_0x1b168b['id'],_0x1ebad2='formatBlock:'+_0x22673f,_0x431383=this['_setSuggestionData']({'id':_0x3e9116,'type':_0x1ebad2,'data':_0x5cb538,'createdAt':new Date(),'authorId':_0x4cd6b1,'attributes':_0xb6726d});for(const _0x43dc4d of _0x5f0428)this['_addSuggestionMarker'](_0x1ebad2,_0x3e9116,_0x4cd6b1,_0x43dc4d,u['getMultiRangeId']());return _0x431383;}['markDeletion'](_0x465792,_0x5cc685=null,_0x399dde={}){if(_0x465792['isCollapsed'])return null;const _0x1148ca=this['editor']['plugins']['get']('Users')['me'],_0x1b3b8c=new _0x495739(_0x465792['start'],_0x465792['end']);for(const {suggestion:_0x449b52,meta:_0x5a97e9}of this['_findSuggestions'](_0x1b3b8c,'insertion'))if(_0x5a97e9['isOwn']&&!_0x5a97e9['isNextTo']){if(_0x449b52['isMultiRange']){const _0x33bba0=_0x449b52['getRanges']()['filter'](_0x2e2ae0=>'$graveyard'!=_0x2e2ae0['root']['rootName']);_0x33bba0['every'](_0x37d3c6=>_0x1b3b8c['containsRange'](_0x37d3c6,!0x0))&&_0x449b52['discard']();if(_0x33bba0['some'](_0x4d1e93=>_0x4d1e93['containsRange'](_0x1b3b8c,!0x0))){const _0x4e1808=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5cc685,'accept');return this['forceDefaultExecution'](()=>_0x4e1808([_0x1b3b8c],null,_0x399dde)),null;}}else{const _0x3be8dc=_0x1b3b8c['getIntersection'](_0x449b52['getFirstRange']());null!==_0x3be8dc&&_0x449b52['_onDiscard']([_0x3be8dc],null,_0x399dde);}}if(_0x1b3b8c['detach'](),_0x1b3b8c['isCollapsed']||'$graveyard'==_0x1b3b8c['root']['rootName'])return null;let _0x5e9ce7=null,_0x4acf41=_0x1b3b8c['start'],_0x24be98=_0x1b3b8c['end'];const _0x23abfa=this['_findSuggestions'](_0x1b3b8c,'deletion');for(const {suggestion:_0x535c55,meta:_0x30d463}of _0x23abfa){const _0x389efe=this['_model']['createRange'](_0x4acf41,_0x24be98);if(_0x30d463['isOwn']&&(this['_mergeNestedSuggestions']||!_0x30d463['containsRangeInObject']&&!_0x30d463['isInsideObject'])){if(_0x535c55['isMultiRange']){if(!zt(_0x535c55,_0x399dde))continue;let _0x55cd6a=!0x0;for(const _0x49ca4d of _0x535c55['getRanges']()){if(_0x49ca4d['containsRange'](_0x389efe,!0x0))return _0x535c55;_0x389efe['containsRange'](_0x49ca4d)||(_0x55cd6a=!0x1);}_0x55cd6a&&_0x535c55['discard']();}else{const _0x27ff9f=_0x535c55['getFirstRange']();if(_0x27ff9f['containsRange'](_0x389efe,!0x0))return _0x535c55;if(!zt(_0x535c55,_0x399dde)){_0x389efe['containsRange'](_0x27ff9f)?_0x535c55['removeMarkers']():_0x27ff9f['containsPosition'](_0x4acf41)?_0x4acf41=_0x27ff9f['end']:_0x27ff9f['containsPosition'](_0x24be98)&&(_0x24be98=_0x27ff9f['start']);continue;}_0x4acf41=_0x4acf41['isBefore'](_0x27ff9f['start'])?_0x4acf41:_0x27ff9f['start'],_0x24be98=_0x24be98['isAfter'](_0x27ff9f['end'])?_0x24be98:_0x27ff9f['end'],_0x399dde=Object['assign']({},_0x535c55['attributes']),_0x5e9ce7?_0x27ff9f['start']['isBefore'](_0x5e9ce7['getFirstRange']()['start'])?(_0x5e9ce7['removeMarkers'](),_0x5e9ce7=_0x535c55):_0x535c55['removeMarkers']():_0x5e9ce7=_0x535c55;}}}if(_0x5e9ce7)return this['_setSuggestionRange'](_0x5e9ce7,this['_model']['createRange'](_0x4acf41,_0x24be98)),_0x5e9ce7;{const _0xaa1dd5=_0x24c9d1(),_0x39ac58=this['_model']['createRange'](_0x4acf41,_0x24be98),_0x428e89=_0x1148ca['id'],_0x4c65bf=_0x5cc685?'deletion:'+_0x5cc685:'deletion',_0x425efa=this['_setSuggestionData']({'id':_0xaa1dd5,'type':_0x4c65bf,'createdAt':new Date(),'authorId':_0x428e89,'attributes':_0x399dde});return this['_addSuggestionMarker'](_0x4c65bf,_0xaa1dd5,_0x428e89,_0x39ac58),_0x425efa;}}['markMultiRangeDeletion'](_0x5b2f62,_0xea492='multi',_0x510115={}){const _0x1c53fa=this['editor']['plugins']['get']('Users')['me'],_0x3edb39=_0x5b2f62['map'](_0x2bc326=>new _0x495739(_0x2bc326['start'],_0x2bc326['end'])),_0x5e8306=new Set();for(const {suggestion:_0x234e7e,meta:_0x380ec4}of this['_findSuggestions'](_0x3edb39,'insertion'))_0x380ec4['isOwn']&&!_0x380ec4['isNextTo']&&_0x5e8306['add'](_0x234e7e);for(const _0xc7290c of _0x5e8306)if(_0xc7290c['isMultiRange']){const _0x4b679e=_0xc7290c['getRanges']();(!_0xc7290c['attributes']||!_0xc7290c['attributes']['skipNestingCheck'])&&(_0x4b679e['every'](_0x4afd0b=>_0x3edb39['some'](_0x2affd4=>_0x2affd4['containsRange'](_0x4afd0b,!0x0)))&&_0xc7290c['discard']());if(_0x3edb39['every'](_0x45d1e0=>_0x4b679e['some'](_0x3f886c=>_0x3f886c['containsRange'](_0x45d1e0,!0x0)))){const _0x7af03b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xea492,'accept');return this['forceDefaultExecution'](()=>_0x7af03b(_0x5b2f62,null,_0x510115)),null;}}else{const _0x2b090d=_0xc7290c['getFirstRange']();_0x3edb39['some'](_0x12e3cc=>_0x12e3cc['containsRange'](_0x2b090d,!0x0))&&_0xc7290c['discard']();if(_0x3edb39['every'](_0xa45e1f=>_0x2b090d['containsRange'](_0xa45e1f,!0x0))){const _0x5b3cb3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xea492,'accept');return this['forceDefaultExecution'](()=>_0x5b3cb3(_0x3edb39,null,_0x510115)),null;}}const _0x434e8d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xea492,'join');let _0x2bec9f=null;for(const _0x257970 of this['getSuggestions']())if(_0x257970['author']['id']==_0x1c53fa['id']&&_0x257970['isInContent']&&'deletion'==_0x257970['type']&&_0x257970['subType']==_0xea492&&zt(_0x257970,_0x510115)&&(_0x434e8d(_0x257970['getRanges'](),_0x3edb39)||_0x434e8d(_0x3edb39,_0x257970['getRanges']()))){if(_0x2bec9f){if(_0x257970['commentThread']&&_0x257970['commentThread']['length'])continue;for(const _0x3ff33a of _0x257970['getRanges']())_0x2bec9f['isIntersectingWithRange'](_0x3ff33a)||_0x2bec9f['addRange'](_0x3ff33a);_0x257970['removeMarkers']();}else{_0x2bec9f=_0x257970;for(const _0x18315d of _0x3edb39)_0x257970['isIntersectingWithRange'](_0x18315d)||_0x257970['addRange'](_0x18315d);}}if(_0x2bec9f)return _0x2bec9f;_0x5e8306['clear']();for(const {suggestion:_0x50fc26,meta:_0x2389ee}of this['_findSuggestions'](_0x3edb39,'deletion'))_0x2389ee['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2389ee['containsRangeInObject']&&!_0x2389ee['isInsideObject'])&&zt(_0x50fc26,_0x510115)&&_0x5e8306['add'](_0x50fc26);for(const _0xa010b0 of _0x5e8306){const _0x27b246=_0xa010b0['getRanges']();if(!_0x510115||!_0x510115['skipNestingCheck']){if(_0x3edb39['every'](_0x338e4a=>_0x27b246['some'](_0x1c1a1c=>_0x1c1a1c['containsRange'](_0x338e4a,!0x0))))return _0xa010b0;}(!_0xa010b0['attributes']||!_0xa010b0['attributes']['skipNestingCheck'])&&(_0x27b246['every'](_0x4cff40=>_0x3edb39['some'](_0x1d4f1b=>_0x1d4f1b['containsRange'](_0x4cff40,!0x0)))&&_0xa010b0['discard']());}const _0x5bd01=_0x24c9d1(),_0x57b5dd=_0x1c53fa['id'],_0x29c157='deletion:'+_0xea492,_0x10a5d9=this['_setSuggestionData']({'id':_0x5bd01,'type':_0x29c157,'createdAt':new Date(),'authorId':_0x57b5dd,'attributes':_0x510115});for(const _0x2e695d of _0x3edb39)_0x2e695d['detach'](),_0x2e695d['isCollapsed']||'$graveyard'==_0x2e695d['root']['rootName']||this['_addSuggestionMarker'](_0x29c157,_0x5bd01,_0x57b5dd,_0x2e695d,u['getMultiRangeId']());return _0x10a5d9;}['markAttributeChange'](_0x476e18,_0x21f4e4,_0x15da5d,_0x3ce4b0,_0x12f30f){if(_0x476e18['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2789c9=this['editor']['plugins']['get']('Users')['me']['id'],_0x800c3d=Array['from'](this['_suggestions']['values']())['filter'](_0x3cfb93=>'attribute'==_0x3cfb93['type']&&_0x3cfb93['data']['key']==_0x21f4e4&&_0x3cfb93['isIntersectingWithRange'](_0x476e18));if('default'===this['_trackFormatChanges']){const _0x274ecd=this['_findSuggestions'](_0x476e18,'insertion')['filter'](({meta:_0x4f8e95})=>_0x4f8e95['isOwn']&&!_0x4f8e95['isInsideObject']&&!_0x4f8e95['isNextTo'])['map'](({suggestion:_0x36ed68})=>_0x36ed68);_0x800c3d['unshift'](..._0x274ecd);}const _0x1cc145=new Map([[_0x476e18,_0x15da5d]]);for(const _0x3b4e2f of _0x800c3d){const _0xf2cb00='attribute'==_0x3b4e2f['type']?_0x3b4e2f['data']['oldValue']:void 0x0,_0xed4a19=_0x3b4e2f['getFirstRange'](),_0x18ecf4=Array['from'](_0x1cc145['keys']())['find'](_0x1a4de4=>_0x1a4de4['isIntersecting'](_0xed4a19));if(!_0x18ecf4)continue;const _0x33b2a2=_0x18ecf4['getDifference'](_0xed4a19);this['_isBlockAttribute'](_0x21f4e4)&&'insertion'==_0x3b4e2f['type']&&0x0!=_0x33b2a2['length']||(_0x1cc145['delete'](_0x18ecf4),_0x33b2a2['forEach'](_0x3f9bb0=>{_0x1cc145['set'](_0x3f9bb0,_0x15da5d);}),'insertion'!=_0x3b4e2f['type']&&_0xf2cb00!=_0x3ce4b0&&_0x1cc145['set'](_0x18ecf4['getIntersection'](_0xed4a19),_0xf2cb00));}const _0x41c87e=[];for(const [_0x82550,_0x3c8f86]of _0x1cc145){const _0x4b6be6=_0x24c9d1(),_0x2c9070={'key':_0x21f4e4,'oldValue':_0x3c8f86,'newValue':_0x3ce4b0};_0x21f4e4['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':_0x21f4e4});const _0x5e8f81=('attribute:'+(_0x21f4e4+'|'+Gt({'newValue':_0x3ce4b0})))['substring'](0x0,0x3c),_0x8200ea=this['_setSuggestionData']({'id':_0x4b6be6,'type':_0x5e8f81,'data':_0x2c9070,'createdAt':new Date(),'authorId':_0x2789c9,'attributes':_0x12f30f});_0x41c87e['push'](_0x8200ea),this['_addSuggestionMarker'](_0x5e8f81,_0x4b6be6,_0x2789c9,_0x82550);}return _0x41c87e;}['enableDefaultAttributesIntegration'](_0x4b1cbe){this['enableCommand'](_0x4b1cbe,(_0x4aea74,..._0x461d51)=>{this['_recordAttributeChanges'](()=>{_0x4aea74(..._0x461d51);});});}['registerBlockAttribute'](_0x1a94c9){this['_blockAttributeKeys']['add'](_0x1a94c9);}['registerInlineAttribute'](_0x5b01b8){this['_inlineAttributeKeys']['add'](_0x5b01b8);}['_getAttributeKey'](_0x412190){return'attribute'==_0x412190['type']?_0x412190['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5060e0,_0x4198d5){const _0x1c9d15=_0x5060e0['getFirstMarker']();this['_model']['change'](_0x49ff38=>{_0x49ff38['updateMarker'](_0x1c9d15,{'range':_0x4198d5});});}['_addThreadToSuggestion'](_0x49dd02){const _0x555212=_0x49dd02['id'],_0xb4b7e0=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x555212)||this['_commentsRepository']['addCommentThread']({'channelId':_0xb4b7e0,'threadId':_0x555212,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x39abe6=this['_commentsRepository']['getCommentThread'](_0x555212);_0x39abe6['unbind']('isRemovable'),_0x39abe6['isRemovable']=!0x1,_0x49dd02['commentThread']=_0x39abe6;}['_checkSuggestionCorrectness'](_0x277455,_0x526b8c,_0x17ad88,_0x54218b){if(_0x277455['type']!=_0x526b8c||_0x277455['subType']!=_0x17ad88||_0x277455['creator']['id']!=_0x54218b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x417294('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4eef99,_0x3ac4c8){const _0x4f3981=_0x4eef99['getFirstRange']();if(_0x3ac4c8['isEqual'](_0x4f3981))_0x4eef99['removeMarkers']();else{if(_0x4f3981['containsRange'](_0x3ac4c8)){const _0x5aff1d=this['_model']['createPositionAt'](_0x3ac4c8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4eef99,this['_model']['createRange'](_0x4f3981['start'],_0x5aff1d));const _0x54dc0f=_0x24c9d1(),_0x594219=_0x4eef99['creator']['id'],_0x30933f=_0x4eef99['type']+':'+_0x4eef99['subType'];this['_setSuggestionData']({'id':_0x54dc0f,'type':_0x30933f,'createdAt':new Date(),'authorId':_0x594219,'data':_0x4eef99['data'],'attributes':_0x4eef99['attributes']});const _0x352336=this['_model']['createPositionAt'](_0x3ac4c8['end']['parent'],'after'),_0x31f6e0=this['_model']['createRange'](_0x352336,_0x4f3981['end']);this['_addSuggestionMarker'](_0x30933f,_0x54dc0f,_0x594219,_0x31f6e0);}else{if(_0x4f3981['containsPosition'](_0x3ac4c8['start'])){const _0x5c46a6=this['_model']['createPositionAt'](_0x3ac4c8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4eef99,this['_model']['createRange'](_0x4f3981['start'],_0x5c46a6));}else{const _0x402957=this['_model']['createPositionAt'](_0x3ac4c8['end']['parent'],'after');this['_setSuggestionRange'](_0x4eef99,this['_model']['createRange'](_0x402957,_0x4f3981['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x137848){for(const {suggestion:_0x52d91b,meta:_0x52e138}of this['_findSuggestions'](_0x137848,'insertion')){if(!_0x52e138['isOwn'])continue;const _0x247f9a=_0x52d91b['getRanges']();for(const _0x3ce6a3 of _0x247f9a)if(!_0x137848['getDifference'](_0x3ce6a3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2551b0){const _0x58b94c=this['editor']['plugins']['get']('Users')['getUser'](_0x2551b0);if(!_0x58b94c)throw new _0x417294('track-changes-user-not-found',this);return _0x58b94c;}['_getExternalAuthor'](_0x17fe78){const _0x45345a=this['editor']['plugins']['get']('Users'),_0x4564da=_0x4e7683('external:'+_0x17fe78),_0x58ace1=_0x45345a['getUser'](_0x4564da);return _0x58ace1||_0x45345a['addUser']({'id':_0x4564da,'name':_0x17fe78});}['_createSuggestion'](_0x18a7da,_0x2941b5,_0x40285a,_0x4d53ab,_0x44fee8){const _0x457e32=this['_getAuthorFromId'](_0x4d53ab),_0x25d0f1=this['_suggestionFactory']['buildSuggestion'](_0x18a7da,_0x2941b5,_0x40285a,_0x457e32,_0x44fee8,_0xb8d061=>{this['_updateSuggestionData'](_0x40285a,{'attributes':_0xb8d061});const _0x21439e=this['getSuggestion'](_0x40285a);this['_joinWithAdjacentSuggestions'](new Set([_0x21439e])),this['_refreshSuggestionsChain'](new Set([_0x21439e]));});return this['listenTo'](_0x25d0f1,'accept',()=>{this['_updateSuggestionData'](_0x40285a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x25d0f1,'discard',()=>{this['_updateSuggestionData'](_0x40285a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x40285a,_0x25d0f1),this['_suggestionState']['set'](_0x25d0f1,'notReady'),_0x25d0f1;}['_splitMarkerName'](_0x99ac2b){const _0x46c4cb=_0x99ac2b['split'](':');return{'group':_0x46c4cb[0x0],'type':_0x46c4cb[0x1],'subType':_0x46c4cb['length']>=0x5?_0x46c4cb[0x2]:null,'id':_0x46c4cb['length']<0x5?_0x46c4cb[0x2]:_0x46c4cb[0x3],'authorId':_0x46c4cb['length']<0x5?_0x46c4cb[0x3]:_0x46c4cb[0x4],'markerCount':0x6==_0x46c4cb['length']?_0x46c4cb[0x5]:null};}['_breakSuggestionMarker'](_0x182a7e,_0x2f5a2d,_0x22f568){const _0x1acf0c=_0x182a7e['getFirstRange'](),_0x1403e4=_0x1acf0c['start'],_0x3f3648=_0x1acf0c['end'];this['_setSuggestionRange'](_0x182a7e,this['_model']['createRange'](_0x1403e4,_0x2f5a2d));const _0x14c57a=_0x24c9d1(),_0x409e6b=_0x182a7e['creator']['id'],_0x5a6895=_0x182a7e['type']+(_0x182a7e['subType']?':'+_0x182a7e['subType']:'');this['_setSuggestionData']({'id':_0x14c57a,'type':_0x5a6895,'createdAt':new Date(),'authorId':_0x409e6b,'originalSuggestionId':_0x182a7e['id'],'attributes':_0x182a7e['attributes'],'data':_0x182a7e['data']});const _0x20c386=this['_getAttributeKey'](_0x182a7e);('formatBlock'==_0x182a7e['type']||_0x20c386&&this['_isBlockAttribute'](_0x20c386))&&(_0x22f568=this['_model']['createPositionBefore'](_0x22f568['parent'])),this['_addSuggestionMarker'](_0x5a6895,_0x14c57a,_0x409e6b,this['_model']['createRange'](_0x22f568,_0x3f3648));}['_findSuggestions'](_0x45d994,_0x5c3f11=null){const _0x3af880=[],_0x5380bc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x45d994)||(_0x45d994=[_0x45d994]);for(const _0x23d932 of this['getSuggestions']()){if(!_0x23d932['isInContent'])continue;if(_0x5c3f11&&_0x23d932['type']!=_0x5c3f11)continue;let _0xc45a95=!0x1;for(const _0x248ccb of _0x23d932['getRanges']()){for(const _0x2c4541 of _0x45d994){const _0x423517=_0x2c4541['start']['isEqual'](_0x248ccb['end'])||_0x2c4541['end']['isEqual'](_0x248ccb['start']);if(_0x423517||_0x2c4541['getIntersection'](_0x248ccb)){const _0x171336=_0x2c4541['containsRange'](_0x248ccb)&&Ut(this['_model']['schema'],_0x248ccb['start'],_0x2c4541),_0x560ae3=_0x248ccb['containsRange'](_0x2c4541)&&Ut(this['_model']['schema'],_0x2c4541['start'],_0x248ccb);_0x3af880['push']({'suggestion':_0x23d932,'meta':{'isOwn':_0x5380bc==_0x23d932['author'],'isNextTo':_0x423517,'isInsideObject':_0x171336,'containsRangeInObject':_0x560ae3}}),_0xc45a95=!0x0;break;}}if(_0xc45a95)break;}}return _0x3af880;}['_addSuggestionMarker'](_0x5d7f01,_0xb42215,_0x517ea5,_0x1973a7,_0x2bfe65){this['_model']['change'](_0x522686=>{let _0x5aaa60='suggestion:'+_0x5d7f01+':'+_0xb42215+':'+_0x517ea5;_0x2bfe65&&(_0x5aaa60=_0x5aaa60+':'+_0x2bfe65),_0x522686['addMarker'](_0x5aaa60,{'range':_0x1973a7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x529112){const _0x3af813=_0x529112['previous'],_0x201e5c=_0x529112['next'];_0x529112['previous']=null,_0x529112['next']=null,null!=_0x3af813&&_0x3af813['next']==_0x529112&&(_0x3af813['next']=_0x201e5c),null!=_0x201e5c&&_0x201e5c['previous']==_0x529112&&(_0x201e5c['previous']=_0x3af813),'ready'==this['_suggestionState']['get'](_0x529112)&&(this['_suggestionState']['set'](_0x529112,'removed'),this['fire']('suggestionUnloaded',_0x529112,_0x3af813,_0x201e5c));}['_setSuggestionData'](_0x2da2a7){const _0x44731f=_0x2da2a7['id'],_0x216fb7=this['addSuggestionData'](_0x2da2a7);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x499012=this['editor']['plugins']['get']('PendingActions'),_0x18bc88=_0x216fb7['hasComments'],_0x1f6bfa=_0x216fb7['subType']?_0x216fb7['type']+':'+_0x216fb7['subType']:_0x216fb7['type'],_0x3b2e07=this['editor']['locale'],_0x464919=_0x499012['add'](o(_0x3b2e07,'PENDING_ACTION_SUGGESTION')),_0x596960={'id':_0x44731f,'type':_0x1f6bfa,'hasComments':_0x18bc88,'data':_0x2da2a7['data']||null,'originalSuggestionId':_0x2da2a7['originalSuggestionId']||null,'attributes':_0x216fb7['attributes']};this['_adapter']['addSuggestion'](_0x596960)['then'](_0x5f1eba=>{_0x216fb7['_saved']=!0x0,_0x499012['remove'](_0x464919),_0x5f1eba&&_0x5f1eba['createdAt']&&(this['_suggestions']['get'](_0x44731f)['createdAt']=_0x5f1eba['createdAt']);})['catch'](_0x350f39=>{throw _0x36dfff('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x216fb7['discard']();}),_0x216fb7['stopListening'](),this['_suggestions']['delete'](_0x216fb7['id']),this['_suggestionState']['delete'](_0x216fb7),_0x350f39;});}return _0x216fb7;}['_isBlockAttribute'](_0x51baa3){return this['_blockAttributeKeys']['has'](_0x51baa3);}['_updateSuggestionData'](_0x529048,_0x408cf7){const _0x16d527=this['editor']['plugins']['get']('PendingActions'),_0x2467e5=this['getSuggestion'](_0x529048);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2467e5['_saved']){const _0x2fc220=_0x16d527['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x529048,_0x408cf7)['then'](()=>{_0x16d527['remove'](_0x2fc220);});}else _0x2467e5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x529048,_0x408cf7);});}}['_getSuggestionData'](_0x622a57){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x417294('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x622a57);}['_handleNewSuggestionMarker'](_0x32c63b){const {id:_0x1c3efa,type:_0x5aa882,subType:_0x4f212b,authorId:_0x24c532}=this['_splitMarkerName'](_0x32c63b),_0xb426fc=this['_suggestions']['get'](_0x1c3efa)||this['_createSuggestion'](_0x5aa882,_0x4f212b,_0x1c3efa,_0x24c532,{});switch(this['_checkSuggestionCorrectness'](_0xb426fc,_0x5aa882,_0x4f212b,_0x24c532),this['_suggestionState']['get'](_0xb426fc)){case'notReady':this['_getSuggestionData'](_0x1c3efa)['then'](_0x40b236=>{let _0x18c125=Promise['resolve']();_0x40b236['hasComments']&&(_0x18c125=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1c3efa})),_0x18c125['then'](()=>{this['addSuggestionData'](_0x40b236)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xb426fc,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1c3efa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xb426fc,'ready'),this['fire']('suggestionLoaded',_0xb426fc);break;case'ready':this['fire']('suggestionChanged',_0xb426fc);}return _0xb426fc['addMarkerName'](_0x32c63b),_0xb426fc;}['_refreshSuggestionsChain'](_0x2c1480){const _0x390953=Array['from'](_0x2c1480),_0x4b3e4d=_0x390953['filter'](_0x2e634a=>'attribute'==_0x2e634a['type']);this['_refreshAttributeSuggestionsChain'](_0x4b3e4d);const _0x2220f1=_0x390953['filter'](_0x1c2628=>!_0x1c2628['isMultiRange']&&'attribute'!=_0x1c2628['type']),_0x31f6b5=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x509176=>!_0x509176['isMultiRange']&&'attribute'!=_0x509176['type']),_0x21738c=_0x31f6b5['filter'](_0x36c73d=>!_0x2c1480['has'](_0x36c73d)),_0x207a57=new Map(_0x31f6b5['map'](_0x6ff80d=>[_0x6ff80d,this['_suggestionFactory']['getSuggestionCallback'](_0x6ff80d['type'],_0x6ff80d['subType'],'chain')])),_0x475fdd=new Map(_0x31f6b5['map'](_0x13e619=>[_0x13e619,_0x13e619['getFirstRange']()])),_0xd745b3=new Set(),_0x1c265e=new Set();for(let _0x43d7ca=0x0;_0x43d7ca<_0x2220f1['length'];_0x43d7ca++)_0x5cda63(_0x2220f1[_0x43d7ca],_0x2220f1,_0x43d7ca+0x1);for(let _0x1b942a=0x0;_0x1b942a<_0x2220f1['length'];_0x1b942a++)_0x5cda63(_0x2220f1[_0x1b942a],_0x21738c,0x0);const _0x33c742=new Set();for(let _0x33ecaa=0x0;_0x33ecaa<_0x2220f1['length'];_0x33ecaa++){const _0x587d07=_0x2220f1[_0x33ecaa];!_0x1c265e['has'](_0x587d07)&&_0x587d07['previous']&&(_0x33c742['add'](_0x587d07['previous']),_0x587d07['previous']['next']===_0x587d07&&(_0x587d07['previous']['next']=null),_0x587d07['previous']=null),!_0xd745b3['has'](_0x587d07)&&_0x587d07['next']&&(_0x33c742['add'](_0x587d07['next']),_0x587d07['next']['previous']===_0x587d07&&(_0x587d07['next']['previous']=null),_0x587d07['next']=null);}function _0x5cda63(_0x397931,_0x568606,_0x4701c0){for(let _0x509941=_0x4701c0;_0x509941<_0x568606['length'];_0x509941++){const _0x3a7c06=_0x300f30(_0x397931,_0x568606[_0x509941]);_0x3a7c06&&(_0x3a7c06[0x0]['next']=_0x3a7c06[0x1],_0x3a7c06[0x1]['previous']=_0x3a7c06[0x0],_0xd745b3['add'](_0x3a7c06[0x0]),_0x1c265e['add'](_0x3a7c06[0x1]));}}function _0x300f30(_0x3b67d4,_0x84f6a8){if(_0x3b67d4['author']['id']!==_0x84f6a8['author']['id'])return null;const _0x130319=_0x207a57['get'](_0x3b67d4)(_0x3b67d4,_0x84f6a8,_0x475fdd['get'](_0x3b67d4),_0x475fdd['get'](_0x84f6a8));if(!_0x130319)return null;return _0x207a57['get'](_0x84f6a8)(_0x3b67d4,_0x84f6a8,_0x475fdd['get'](_0x3b67d4),_0x475fdd['get'](_0x84f6a8))?_0x130319[0x1]['commentThread']&&_0x130319[0x1]['commentThread']['length']?null:_0x130319:null;}_0x33c742['size']&&this['_refreshSuggestionsChain'](_0x33c742);}['_refreshAttributeSuggestionsChain'](_0x918848){if(0x0==_0x918848['length'])return;const _0x54d04a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x175576=>'attribute'==_0x175576['type']&&_0x175576['_isDataLoaded']),_0x941498=[],_0x31f872=new Map();for(const _0x3e6d55 of _0x54d04a){const _0x333201=_0x4e7683(_0x3e6d55['attributes']);_0x31f872['has'](_0x333201)||(_0x31f872['set'](_0x333201,_0x941498['length']),_0x941498['push']([]));const _0x202b26=_0x31f872['get'](_0x333201);_0x941498[_0x202b26]['push'](_0x3e6d55);}!(function(){_0x941498['sort']((_0x184964,_0x19f1b2)=>{const _0x4f6b5a=_0x184964[0x0]['createdAt'],_0x22e330=_0x19f1b2[0x0]['createdAt'];return _0x4f6b5a==_0x22e330?_0x184964[0x0]['attributes']['groupId']<_0x19f1b2[0x0]['attributes']['groupId']?-0x1:0x1:_0x4f6b5a<_0x22e330?-0x1:0x1;});for(const _0x5ed28a of _0x941498)_0x5ed28a['sort']((_0x2975e9,_0x9dc3c6)=>_0x2975e9['id']<_0x9dc3c6['id']?-0x1:0x1);}());for(let _0x1874bc=0x0;_0x1874bc<_0x941498['length'];_0x1874bc++){if(0x0==_0x941498[_0x1874bc]['length'])continue;const _0x3c99b0=[];for(let _0x289519=_0x1874bc+0x1;_0x289519<_0x941498['length'];_0x289519++)0x0!=_0x941498[_0x289519]['length']&&_0x110133(_0x941498[_0x1874bc],_0x941498[_0x289519])&&_0x3c99b0['push'](_0x289519);for(const _0x1fe4ed of _0x3c99b0)_0x941498[_0x1874bc]=_0x941498[_0x1874bc]['concat'](_0x941498[_0x1fe4ed]),_0x941498[_0x1fe4ed]=[];}for(const _0xff6df2 of _0x941498)for(let _0x23d1a6=0x0;_0x23d1a6<_0xff6df2['length'];_0x23d1a6++){const _0x56fd58=_0xff6df2[_0x23d1a6+0x1]||null;_0xff6df2[_0x23d1a6]['next']!==_0x56fd58&&(_0xff6df2[_0x23d1a6]['next']=_0x56fd58);}for(const _0x2a10a2 of _0x941498)for(let _0x363531=0x0;_0x363531<_0x2a10a2['length'];_0x363531++){const _0x3b8ce0=_0x2a10a2[_0x363531-0x1]||null;_0x2a10a2[_0x363531]['previous']!==_0x3b8ce0&&(_0x2a10a2[_0x363531]['previous']=_0x3b8ce0);}function _0x110133(_0x9b47ce,_0x147ed5){if(_0x9b47ce[0x0]['attributes']['groupId']!==_0x147ed5[0x0]['attributes']['groupId']&&_0x9b47ce[0x0]['author']!==_0x147ed5[0x0]['author'])return!0x1;if(!function(_0x110288,_0x1024d9){if(!_0x110288['hasComments']&&!_0x1024d9['hasComments'])return!0x0;if(_0x110288['hasComments']&&_0x1024d9['hasComments'])return!0x1;if(_0x110288['hasComments']&&_0x1024d9['createdAt']<_0x110288['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1024d9['hasComments']&&_0x110288['createdAt']<_0x1024d9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x9b47ce[0x0],_0x147ed5[0x0]))return!0x1;const _0x228c07=xt(_0x9b47ce[0x0]['attributes'],'groupId'),_0x1f904b=xt(_0x147ed5[0x0]['attributes'],'groupId');if(!_0x3519c5(_0x228c07,_0x1f904b))return!0x1;return!!_0x9b47ce['every'](_0xe29aa5=>_0x147ed5['some'](_0xef7135=>_0xe29aa5['getFirstRange']()['isEqual'](_0xef7135['getFirstRange']())))&&_0x147ed5['every'](_0x3c4a3e=>_0x9b47ce['some'](_0x4d0fff=>_0x3c4a3e['getFirstRange']()['isEqual'](_0x4d0fff['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x3713b4){const _0x7bc258=Array['from'](_0x3713b4),_0x384fe8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2c3ef1=_0x384fe8['filter'](_0x5ee34e=>!_0x3713b4['has'](_0x5ee34e)),_0xdba2e9=new Map(_0x7bc258['map'](_0x865787=>[_0x865787,this['_suggestionFactory']['getSuggestionCallback'](_0x865787['type'],_0x865787['subType'],'join')])),_0x1ebcd2=new Map(_0x384fe8['map'](_0x2fa4e4=>[_0x2fa4e4,_0x2fa4e4['getRanges']()]));for(let _0x572ef2=0x0;_0x572ef2<_0x7bc258['length'];_0x572ef2++){if(_0x1d3ce1(this,_0x7bc258[_0x572ef2],_0x7bc258,_0x572ef2+0x1))return!0x0;}for(let _0x175a5a=0x0;_0x175a5a<_0x7bc258['length'];_0x175a5a++){if(_0x1d3ce1(this,_0x7bc258[_0x175a5a],_0x2c3ef1,0x0))return!0x0;}return!0x1;function _0x1d3ce1(_0x440525,_0x6eb389,_0x1335f8,_0x5ea7d4){for(let _0xef2a79=_0x5ea7d4;_0xef2a79<_0x1335f8['length'];_0xef2a79++){const _0x198fa6=_0x1335f8[_0xef2a79];if(_0x198fa6['type']!==_0x6eb389['type']||_0x198fa6['author']['id']!==_0x6eb389['author']['id']||_0x198fa6['subType']!==_0x6eb389['subType'])continue;if(!qt(_0x6eb389,_0x198fa6))continue;if('attribute'==_0x6eb389['type']&&_0x6eb389['data']['oldValue']!=_0x198fa6['data']['oldValue'])continue;if('attribute'==_0x6eb389['type']&&_0x440525['_isBlockAttribute'](_0x6eb389['data']['key']))continue;if('formatBlock'==_0x6eb389['type']){const _0x318ab0=_0x440525['editor']['model'],_0x479ba0=_0x6eb389['getContainedElement']();if(_0x479ba0&&(_0x318ab0['schema']['isObject'](_0x479ba0)||_0x318ab0['schema']['isLimit'](_0x479ba0)))continue;}const _0x1678e8=_0xdba2e9['get'](_0x6eb389),_0x3acf4f=_0x1ebcd2['get'](_0x6eb389),_0x198640=_0x1ebcd2['get'](_0x198fa6),_0x1af2b8=_0x6eb389['commentThread']&&_0x6eb389['commentThread']['length'],_0x166b64=_0x198fa6['commentThread']&&_0x198fa6['commentThread']['length'];if(!_0x1af2b8&&_0x1678e8(_0x198640,_0x3acf4f))return _0x440525['_joinSuggestions'](_0x198fa6,_0x6eb389),_0x1ebcd2['delete'](_0x6eb389),!0x0;if(!_0x166b64&&_0x1678e8(_0x3acf4f,_0x198640))return _0x440525['_joinSuggestions'](_0x6eb389,_0x198fa6),_0x1ebcd2['delete'](_0x198fa6),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5197f7,_0x3dfbf5){if(_0x5197f7['isMultiRange']){for(const _0x5afee1 of _0x3dfbf5['getRanges']())_0x5197f7['addRange'](_0x5afee1);}else{const _0x2ac98d=_0x3dfbf5['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5197f7,this['_model']['createRange'](_0x5197f7['getFirstRange']()['start'],_0x2ac98d));}_0x3dfbf5['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c1ff5,_0x1d15ca,_0x514b4b){const _0x3e5cd7=_0x3c1ff5['startsWith']('format')||_0x3c1ff5['startsWith']('attribute')?'FORMATTING':_0x3c1ff5['toUpperCase']();return o(this['editor']['locale'],_0x1d15ca+'_'+_0x3e5cd7+'_SUGGESTION_ANNOUNCEMENT',_0x514b4b);}['_initAriaMarkerChangeAnnouncements'](){const _0x524c0f=this['editor'];if(!_0x524c0f['ui'])return;const {ariaLiveAnnouncer:_0x43859f}=_0x524c0f['ui'];_0x525849(this['_model'],({left:_0x443558,entered:_0x1050d1})=>{for(const _0x3b83ea of _0x443558){const {group:_0x37e341,type:_0x124846}=this['_splitMarkerName'](_0x3b83ea['name']);if('suggestion'===_0x37e341){_0x43859f['announce'](this['_getMarkerAnnouncementText'](_0x124846,'LEAVE'));break;}}for(const _0x484949 of _0x1050d1){const {group:_0x41f2cf,type:_0x133eb8}=this['_splitMarkerName'](_0x484949['name']);if('suggestion'===_0x41f2cf){_0x43859f['announce'](this['_getMarkerAnnouncementText'](_0x133eb8,'ENTER',_0x151c11(_0x2f4b59)));break;}}});}['_processAttributeChanges'](_0x47a212){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3a8982=this['editor'],_0x4e9462=_0x3a8982['model']['document']['differ']['getChanges']();if(0x0==_0x4e9462['length'])return!0x1;const _0xe09afb=[],_0xe48a60=_0x4e9462['filter'](_0x5e2fb8=>'attribute'==_0x5e2fb8['type']),_0xdd8f9=_0x4e9462['filter'](_0x46b998=>'insert'==_0x46b998['type']&&'$text'!=_0x46b998['name']),_0xb6974f=_0x4e9462['filter'](_0xa1440b=>'remove'==_0xa1440b['type']&&'$text'!=_0xa1440b['name']);for(const _0x20a202 of _0xe48a60)_0xe09afb['push']({'key':_0x20a202['attributeKey'],'newValue':_0x20a202['attributeNewValue'],'oldValue':_0x20a202['attributeOldValue'],'range':Lt(_0x20a202['range'],_0x3a8982['model'])});for(const _0x1ccc06 of _0xdd8f9){const _0x5aad7a=_0xb6974f['find'](_0x2e69cc=>_0x2e69cc['position']['isEqual'](_0x1ccc06['position']));_0x5aad7a&&_0xe09afb['push']({'key':m,'newValue':_0x1ccc06['name'],'oldValue':_0x5aad7a['name'],'range':_0x3a8982['model']['createRangeOn'](_0x1ccc06['position']['nodeAfter'])});}return 0x0!=_0xe09afb['length']&&this['_reduceExistingSuggestions'](_0x47a212,_0xe09afb);}['_processAttributeSuggestions'](_0x111c4f){let _0x35f4b3=!0x1;const _0x499ff3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x12106b=>_0x12106b['data']['newRange']&&_0x12106b['name']['startsWith']('suggestion:attribute:'));for(const _0x5a843d of _0x499ff3){const {subType:_0x139638,id:_0x304274}=this['_splitMarkerName'](_0x5a843d['name']),_0xee218a=_0x139638['split']('|')[0x0];for(const _0xac1ea8 of this['getSuggestions']({'skipNotAttached':!0x0}))_0xac1ea8['id']!=_0x304274&&'attribute'==_0xac1ea8['type']&&_0xac1ea8['data']&&_0xac1ea8['data']['key']==_0xee218a&&_0xac1ea8['getFirstRange']()['isIntersecting'](_0x5a843d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xac1ea8,_0x5a843d['data']['newRange'],_0x111c4f),_0x35f4b3=!0x0);}return _0x35f4b3;}['_recordAttributeChanges'](_0x509393){this['_recordAttributeSuggestions']=!0x0,_0x509393();}['_isRegisteredAttribute'](_0x271c63){const _0x3b4511=this['_isBlockAttribute'](_0x271c63),_0xdaf209=this['_inlineAttributeKeys']['has'](_0x271c63);return _0x3b4511||_0xdaf209;}['_reduceExistingSuggestions'](_0x3a1616,_0x4db565){if(0x0==_0x4db565['length'])return!0x1;let _0x2654a8=!0x1;for(const _0x30ddd7 of _0x4db565){const _0x3fde3b=this['_findSuggestions'](_0x30ddd7['range'],'attribute')['filter'](_0x18b9f1=>!_0x18b9f1['meta']['isNextTo'])['map'](_0x3b36f7=>_0x3b36f7['suggestion']),_0x22be4e=_0x4e7683({'newValue':_0x30ddd7['newValue']});_0x3fde3b['filter'](_0x19c8c9=>{const [_0x17c460,_0x1e13db]=_0x19c8c9['subType']['split']('|');return _0x17c460==_0x30ddd7['key']&&_0x1e13db!=_0x22be4e;})['forEach'](_0x9ef57b=>{this['_reduceSuggestionAttributeRange'](_0x9ef57b,_0x30ddd7['range'],_0x3a1616),_0x2654a8=!0x0;});}return _0x2654a8;}['_reduceSuggestionAttributeRange'](_0x44e925,_0x2961ce,_0x3cf2fa){const _0x2bc382=_0x44e925['getFirstRange']()['getDifference'](_0x2961ce);0x0!==_0x2bc382['length']?0x1!==_0x2bc382['length']?this['_breakSuggestionMarker'](_0x44e925,_0x2961ce['start'],_0x2961ce['end']):this['_setSuggestionRange'](_0x44e925,_0x2bc382[0x0]):_0x3cf2fa['removeMarker'](_0x44e925['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xf3b02){this['_editor']=_0xf3b02,this['_model']=_0xf3b02['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c4018,_0x69b23f,_0x59a08b,_0x5bb8e0,_0x4d59ef,_0x95a6ed){return new u(this['_model'],{'type':_0x3c4018,'subType':_0x69b23f,'id':_0x59a08b,'author':_0x5bb8e0,'creator':_0x5bb8e0,'attributes':_0x4d59ef,'onAttributesChange':_0x95a6ed,'onAccept':(..._0x57c39f)=>this['getSuggestionCallback'](_0x3c4018,_0x69b23f,'accept')(..._0x57c39f),'onDiscard':(..._0x572c49)=>this['getSuggestionCallback'](_0x3c4018,_0x69b23f,'discard')(..._0x572c49)});}['registerCustomCallback'](_0x1cd80e,_0x3b1afc,_0x25632b,_0x4bff81){const _0x12688d=_0x1cd80e+':'+_0x3b1afc+':'+_0x25632b;this['_customCallbacks']['set'](_0x12688d,_0x4bff81);}['getSuggestionCallback'](_0x298320,_0x2fac4c,_0x222689){const _0x2aa168=_0x298320+':'+_0x2fac4c+':'+_0x222689;return this['_customCallbacks']['get'](_0x2aa168)||this['_defaultCallbacks']['get'](_0x298320+':'+_0x222689);}['_registerDefaultCallbacks'](){const _0x4d7ddd=()=>!0x1,_0x35e4fa=_0x1a53d4=>{_0x1a53d4['sort']((_0x4776ab,_0x146605)=>_0x4776ab['start']['isBefore'](_0x146605['start'])?0x1:-0x1),this['_model']['change'](_0x393f13=>{for(const _0x39e568 of _0x1a53d4){let _0x28dffa;_0x28dffa=_0x39e568['end']['isAtEnd']&&_0x39e568['end']['parent']==_0x39e568['start']['nodeAfter']?_0x393f13['createSelection'](_0x39e568['start']['nodeAfter'],'on'):_0x393f13['createSelection'](_0x39e568),this['_model']['deleteContent'](_0x28dffa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c5e7c=(_0x47ae44,_0x227c3e)=>{_0x227c3e&&this['_model']['change'](_0x35bd41=>{const {commandName:_0x4fc74e,commandParams:_0xe4b807=[]}=_0x227c3e,_0x4b121c=_0x47ae44['map'](_0x3b182e=>(Vt(_0x3b182e)&&(_0x3b182e=this['_model']['createRange'](_0x3b182e['end'])),_0x3b182e))['filter'](_0x497965=>'$graveyard'!==_0x497965['root']['rootName']);if(_0x4b121c['length']<0x1)return;const _0x541767=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bc684=>_0x495739['fromRange'](_0x5bc684));_0x35bd41['setSelection'](_0x4b121c);for(const _0x1f1b23 of this['_editor']['commands']['commands']())_0x1f1b23['refresh']();_0xe4b807['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4fc74e,..._0xe4b807);const _0xe126ad=_0x541767['filter'](_0x36d667=>'$graveyard'!=_0x36d667['root']['rootName']);_0xe126ad['length']>0x0&&_0x35bd41['setSelection'](_0xe126ad);for(const _0x462594 of _0x541767)_0x462594['detach']();});},_0x330483=(_0x30dd10,_0x4cf1cc)=>0x1==_0x30dd10['length']&&0x1==_0x4cf1cc['length']&&_0x30dd10[0x0]['end']['isEqual'](_0x4cf1cc[0x0]['start']),_0x139074=(_0x4eae48,_0x58be80,_0xb11051,_0x1dd087)=>Ht(_0x4eae48,_0x58be80,_0xb11051,_0x1dd087)?[_0x4eae48,_0x58be80]:Ht(_0x58be80,_0x4eae48,_0x1dd087,_0xb11051)?[_0x58be80,_0x4eae48]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4d7ddd),this['_defaultCallbacks']['set']('insertion:discard',_0x35e4fa),this['_defaultCallbacks']['set']('insertion:join',_0x330483),this['_defaultCallbacks']['set']('insertion:chain',_0x139074),this['_defaultCallbacks']['set']('deletion:accept',_0x35e4fa),this['_defaultCallbacks']['set']('deletion:discard',_0x4d7ddd),this['_defaultCallbacks']['set']('deletion:join',_0x330483),this['_defaultCallbacks']['set']('deletion:chain',_0x139074),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c5e7c),this['_defaultCallbacks']['set']('formatInline:discard',_0x4d7ddd),this['_defaultCallbacks']['set']('formatInline:join',_0x330483),this['_defaultCallbacks']['set']('formatInline:chain',_0x4d7ddd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c5e7c),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4d7ddd),this['_defaultCallbacks']['set']('formatBlock:join',_0x330483),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4d7ddd),this['_defaultCallbacks']['set']('attribute:accept',_0x4d7ddd),this['_defaultCallbacks']['set']('attribute:discard',(_0x574bf2,_0x2c7457)=>{if(!_0x2c7457)return;const _0x21feca=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x540502=>{if(_0x2c7457['key']==m)for(const _0x817df of _0x574bf2){const _0x2d0fbf=_0x817df['start']['nodeAfter'],_0x526cc9=_0x2c7457['oldValue'];_0x540502['rename'](_0x2d0fbf,_0x526cc9);}else{if(_0x21feca['_isBlockAttribute'](_0x2c7457['key'])){for(const _0x3b4b01 of _0x574bf2)void 0x0!==_0x2c7457['oldValue']?_0x540502['setAttribute'](_0x2c7457['key'],_0x2c7457['oldValue'],_0x3b4b01['start']['nodeAfter']):_0x540502['removeAttribute'](_0x2c7457['key'],_0x3b4b01['start']['nodeAfter']);}else{for(const _0x5bd799 of _0x574bf2)_0x2c7457['oldValue']?_0x540502['setAttribute'](_0x2c7457['key'],_0x2c7457['oldValue'],_0x5bd799):_0x540502['removeAttribute'](_0x2c7457['key'],_0x5bd799);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x330483);}}function Ut(_0x53928,_0x385bd8,_0x30f0f6){for(const _0x3c93b7 of _0x385bd8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3c93b7['root']==_0x3c93b7)return!0x1;if(!_0x30f0f6['containsItem'](_0x3c93b7))return!0x1;if(_0x53928['isObject'](_0x3c93b7)||_0x53928['isLimit'](_0x3c93b7))return!0x0;}return!0x1;}function Vt(_0x2e06d7){return _0x2e06d7['end']['parent']==_0x2e06d7['start']['nodeAfter']&&_0x2e06d7['end']['isAtStart'];}function Pt(_0x455e0e,_0x2577ce,_0x35dc94,_0x44d60a){const _0x119299=_0x5893e6=>!_0x5893e6['item']['is']('$textProxy')&&!_0x44d60a['isObject'](_0x5893e6['item']),_0x36739f=_0x455e0e['start']['getLastMatchingPosition'](_0x119299),_0x94f06=_0x455e0e['end']['getLastMatchingPosition'](_0x119299,{'direction':'backward'});return(!_0x455e0e['start']['isEqual'](_0x36739f)||!_0x455e0e['end']['isEqual'](_0x94f06))&&(_0x36739f['isBefore'](_0x94f06)?_0x35dc94['updateMarker'](_0x2577ce,{'range':_0x35dc94['createRange'](_0x36739f,_0x94f06)}):_0x35dc94['removeMarker'](_0x2577ce),!0x0);}function Gt(_0x21d995){return _0x4e7683(_0x21d995);}function Ft(_0x104d09){const _0x8dbeeb=_0x104d09['start']['nodeAfter'];return _0x8dbeeb&&_0x8dbeeb['is']('element');}function Lt(_0x546ee4,_0x336121){return null==_0x546ee4['end']['nodeBefore']&&_0x546ee4['end']['parent']==_0x546ee4['start']['nodeAfter']?Jt(_0x546ee4['start']['nodeAfter'],_0x336121):_0x546ee4;}function Jt(_0x246f97,_0x1a8149){const _0x50d273=_0x1a8149['schema']['isObject'](_0x246f97)||_0x1a8149['schema']['isSelectable'](_0x246f97);return _0x1a8149['createRange'](_0x1a8149['createPositionAt'](_0x246f97,'before'),_0x50d273?_0x1a8149['createPositionAfter'](_0x246f97):_0x1a8149['createPositionAt'](_0x246f97,'end'));}function Ht(_0x4b968f,_0x31c2dc,_0x5e163f,_0x1c76d8){return!!qt(_0x4b968f,_0x31c2dc)&&_0x5e163f['end']['isEqual'](_0x1c76d8['start']);}function qt(_0x3ce8ba,_0x764d5){if(!_0x3ce8ba['_isDataLoaded']||!_0x764d5['_isDataLoaded'])return!0x1;const _0x2fb9f8=new Set(Object['keys'](_0x3ce8ba['attributes'])),_0x5bfaad=new Set(Object['keys'](_0x764d5['attributes']));if(_0x2fb9f8['delete']('groupId'),_0x5bfaad['delete']('groupId'),0x0==_0x2fb9f8['size']&&0x0==_0x5bfaad['size'])return!0x0;if(_0x2fb9f8['size']!=_0x5bfaad['size'])return!0x1;const _0x3f262c={..._0x3ce8ba['attributes']},_0x2b48fd={..._0x764d5['attributes']};return delete _0x3f262c['groupId'],delete _0x2b48fd['groupId'],JSON['stringify'](_0x3f262c)==JSON['stringify'](_0x2b48fd);}function zt(_0x126b5e,_0x5cef0a){const _0x37f10c=Kt(_0x126b5e['attributes']),_0x17a024=Kt(_0x5cef0a);if(!_0x126b5e['_isDataLoaded'])return!0x1;for(const _0x20f040 of Object['keys'](_0x17a024))if(!_0x3519c5(_0x37f10c[_0x20f040],_0x17a024[_0x20f040]))return!0x1;return!0x0;}function Kt(_0x35f412){const _0x3135e3=Object['assign']({},_0x35f412);return delete _0x3135e3['skipNestingCheck'],delete _0x3135e3['tablePasteChainId'],_0x3135e3;}class ge extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x15e8cb(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x524fa6,_0x4678a5,_0xa33f2c,_0x1afbf1){super(),this['model']=_0x4678a5,this['view']=_0xa33f2c,this['commentThreadController']=_0x1afbf1,this['_editor']=_0x524fa6,this['_acceptCommand']=_0x524fa6['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x524fa6['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1d5594,_0x426698)=>_0x1d5594||_0x426698),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x367a85=>_0x367a85&&this['_editor']['model']['canEditAt'](_0x4678a5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3598f9=>_0x3598f9&&this['_editor']['model']['canEditAt'](_0x4678a5['getRanges']())),this['_pendingAction']=null,_0xa33f2c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xa33f2c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xa33f2c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xa33f2c,'change:isDirty',()=>{_0xa33f2c['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 _0x4c2ec0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4c2ec0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x35d39a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43f6c6,_0x26dd83,_0x2e2484,_0x50f989){super(_0x43f6c6),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x4bce2d(_0x43f6c6,o(_0x43f6c6,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x26dd83['authoredAt']),this['bind']('authoredAt')['to'](_0x26dd83),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',_0x26dd83,'authoredAt',this,'descriptionParts',(_0x4a8933,_0x3596d8,_0x31a5a7)=>{const _0x255d38=_0x31a5a7['map'](_0x37ae70=>ns(_0x37ae70['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4a8933-0x1,_0x26dd83['author']['name'],_0x3596d8?_0x50f989['formatDateTime'](_0x3596d8):'',new DOMParser()['parseFromString'](_0x255d38,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2ce7a6(),this['focusTracker']=new _0x8c0b4(),this['keystrokes']=new _0x5c8a15(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x22cbfb=>_0x22cbfb['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x26dd83,this['_localUser']=_0x2e2484,this['_config']=_0x50f989,_0x50f989['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2b6d12(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x27daa3}=this['_config'];this['commentsListView']=new _0x27daa3(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',_0x69562f=>_0x69562f+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xf2f309,_0x1c6e4c)=>_0xf2f309||!!_0x1c6e4c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x5251ac}=this['_config'],_0x367839=new _0x5251ac(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3b9cd0=_0x367839['commentInputView'];return _0x367839['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3b9cd0,'value',(_0x307b9d,_0x52a195,_0xfb1150)=>!!_0xfb1150||_0x307b9d&&!_0x52a195),_0x3b9cd0['on']('submit',(_0xc3cab4,_0x2ab1ff)=>{this['fire']('addComment',_0x2ab1ff),_0x3b9cd0['editor']['setData']('');}),_0x3b9cd0['on']('cancel',()=>this['focus']()),_0x3b9cd0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x367839;}}class de extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4b74df,_0x7edd60,_0x18c58f,_0x2c46a2){super(_0x4b74df,_0x7edd60,_0x18c58f,_0x2c46a2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x3da93d=>_0x3da93d&&_0x3da93d[0x0]?_0x3da93d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x542efe,_0x4cc2d0)=>{let _0xba359d='';for(const _0x2b7d23 of _0x542efe)_0xba359d+='<p>'+ns(_0x2b7d23['content'],_0x2b7d23['color'])+'</p>';return _0x4cc2d0?_0xba359d:ti(_0xba359d,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2c46a2['SuggestionView'](_0x4b74df,_0x7edd60,{'formatDateTime':_0x2c46a2['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 _0x1ce3a4=this['bindTemplate'],_0x4880b9=[this['suggestionView']];return this['commentsListView']&&_0x4880b9['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4880b9['push'](this['commentThreadInputView']),_0x4880b9['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1ce3a4['if']('isActive','ck-suggestion-wrapper--active'),_0x1ce3a4['to']('type',_0x33d971=>'ck-suggestion-'+_0x33d971),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':_0x1ce3a4['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4880b9};}['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 _0x35d39a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x3b931d,_0x1754dc,_0x57d74a){super(_0x3b931d),this['_model']=_0x1754dc,this['_config']=_0x57d74a,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1754dc),this['acceptButton']=this['_createButton'](o(_0x3b931d,'Accept\x20suggestion'),_0x3a4c83['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x3b931d,'Discard\x20suggestion'),_0x3a4c83['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0xfefcd7(_0x3b931d,_0x1754dc['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ce7a6([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x8c0b4(),this['keystrokes']=new _0x5c8a15(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x240490=>_0x240490['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x18eebb=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x18eebb['innerHTML']=this['description'],this['on']('change:description',(_0x41af1f,_0x1ae6b5,_0x85c6a9)=>{_0x18eebb['innerHTML']=_0x85c6a9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xef2d48=this['bindTemplate'],_0x2af81d=[{'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':_0xef2d48['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xef2d48['to']('authoredAt',_0xe2a387=>this['_config']['formatDateTime'](_0xe2a387))}]}]},{'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']&&_0x2af81d['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':_0x2af81d}]};}['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'](_0x96362,_0x41cd77,_0x11e09b,_0x168bc5,_0x2c0031){const _0x36ecee=new _0x1aa869(this['locale']);return _0x36ecee['set']({'label':_0x96362,'icon':_0x41cd77,'tooltip':!0x0,'tooltipPosition':_0x2c0031}),_0x36ecee['extendTemplate']({'attributes':{'class':_0x11e09b}}),_0x36ecee['on']('execute',()=>{this['fire'](_0x168bc5,this['_model']['id']);}),_0x36ecee;}['_setupKeyboardNavigation'](){const _0x481aa5=this['element'];this['keystrokes']['listenTo'](_0x481aa5);for(const _0x3b5574 of this['focusables'])this['focusTracker']['add'](_0x3b5574['element']),this['keystrokes']['listenTo'](_0x3b5574['element']);this['keystrokes']['set']('enter',(_0x3351e0,_0x484ef5)=>{_0x481aa5===_0x3351e0['target']&&(this['focusCycler']['focusFirst'](),_0x484ef5());}),this['keystrokes']['set']('esc',(_0x1da5d1,_0x2588fb)=>{_0x481aa5!==_0x1da5d1['target']&&(this['focus'](),_0x2588fb());});}}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 _0x36effd{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2926f4,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2328ca){super(_0x2328ca),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1aa4bd=this['editor']['config'];_0x1aa4bd['define']('trackChanges.SuggestionThreadView',de),_0x1aa4bd['define']('trackChanges.SuggestionView',ue),_0x1aa4bd['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1aa4bd['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x5c3eb4,_0x586f64){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b569c,_0x245a8b]of this['_handleControllerBuffer']){const _0x2592f8=this['_suggestionToController']['has'](_0x1b569c);_0x2592f8||_0x245a8b?_0x2592f8&&_0x245a8b&&this['_destroyController'](_0x1b569c):this['_initializeController'](_0x1b569c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x5c3eb4,_0x586f64);}['init'](){const _0x5b6c9f=this['editor'],_0x2b8fdf=_0x5b6c9f['plugins']['get']('TrackChangesEditing'),_0x2ee9b0=_0x5b6c9f['plugins']['get']('Annotations'),_0x5da21c=_0x5b6c9f['plugins']['get']('EditorAnnotations'),_0x9e917c=_0x5b6c9f['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5da21c['addSourceCollector'](()=>{const _0x4fb785=[];for(const [_0x4f3c49,_0x562fb4]of Array['from'](this['_suggestionToController'])){const _0x2b0c89=_0x4f3c49['getAllAdjacentSuggestions'](),_0x541234=[];for(const _0x4bd08e of _0x2b0c89){if(!_0x4bd08e['isInContent'])continue;if(_0x4bd08e['isMultiRange']){_0x541234['push'](..._0x4bd08e['getRanges']());continue;}const _0xdc410a=_0x4bd08e['getFirstRange']();if(_0x541234['length']>0x0){const _0x29a861=_0x541234[0x0]['getJoined'](_0xdc410a);if(_0x29a861){_0x541234[0x0]=_0x29a861;continue;}}_0x541234['push'](_0xdc410a);}_0x4fb785['push']([_0x562fb4['view'],_0x541234]);}return _0x4fb785;}),this['listenTo'](_0x2b8fdf,'suggestionLoaded',(_0xe1bdd9,_0x41fed3)=>{this['listenTo'](_0x41fed3,'change:previous',(_0x225b63,_0xdf5582,_0x30429a,_0x26044b)=>{_0x41fed3['isInContent']&&(null==_0x30429a?(this['_updateController'](_0x26044b['head']),this['_handleSuggestionControllerDelayed'](_0x41fed3,!0x1)):(this['_updateController'](_0x30429a['head']),null==_0x26044b&&this['_handleSuggestionControllerDelayed'](_0x41fed3,!0x0)));}),null!==_0x41fed3['previous']?this['_updateController'](_0x41fed3['head']):this['_handleSuggestionControllerDelayed'](_0x41fed3,!0x1);}),this['listenTo'](_0x2b8fdf,'suggestionUnloaded',(_0x33e45c,_0x54cb18,_0xaec7fd)=>{this['stopListening'](_0x54cb18,'change:previous'),this['_handleControllerBuffer']['delete'](_0x54cb18),this['_suggestionToController']['has'](_0x54cb18)&&this['_destroyController'](_0x54cb18),_0xaec7fd&&this['_updateController'](_0xaec7fd['head']);}),this['listenTo'](_0x2b8fdf,'suggestionChanged',(_0x1b75c0,_0x28b87f)=>{this['_updateController'](_0x28b87f);}),this['listenTo'](_0x2ee9b0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x9e917c,'addComment',(_0x58373b,{threadId:_0x3d2392,isFromAdapter:_0x36299d})=>{if(_0x36299d||!_0x2b8fdf['hasSuggestion'](_0x3d2392))return;const _0x197f32=_0x2b8fdf['getSuggestion'](_0x3d2392);this['_suggestionToController']['get'](_0x197f32)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x560de9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2fb8e7;for(const _0x24a4ae in _0x560de9){const _0x2be0ee=_0x24a4ae,_0x55f457=_0x560de9[_0x2be0ee];if('trackChangesLicenseKeyValid'==_0x55f457||'trackChangesLicenseKeyInvalid'==_0x55f457||'trackChangesLicenseKeyExpired'==_0x55f457||'trackChangesLicenseKeyDomainLimit'==_0x55f457||'trackChangesLicenseKeyNotAllowed'==_0x55f457||'trackChangesLicenseKeyEvaluationLimit'==_0x55f457||'trackChangesLicenseKeyTrialLimit'==_0x55f457||'trackChangesLicenseKeyDevelopmentLimit'==_0x55f457||'trackChangesLicenseKeyUsageLimit'==_0x55f457){delete _0x560de9[_0x2be0ee],_0x2fb8e7=_0x55f457,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x2fb8e7&&_0x560de9['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x2fb8e7&&_0x560de9['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x2fb8e7&&_0x560de9['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x2fb8e7&&_0x560de9['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x2fb8e7&&_0x560de9['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x2fb8e7&&_0x560de9['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyDevelopmentLimit'==_0x2fb8e7&&_0x560de9['_showLicenseError']('developmentLimit'),'trackChangesLicenseKeyUsageLimit'==_0x2fb8e7&&_0x560de9['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x4b2341=this['editor']['plugins']['get']('Annotations'),_0x7e4faa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5ca0a5=Array['from'](_0x4b2341['activeAnnotations'],_0x3cabb6=>_0x3cabb6['innerView'])['filter'](_0x45363e=>this['_viewToController']['has'](_0x45363e)),_0xa1bedc=[];for(const _0x360586 of _0x5ca0a5){const _0x3a6b24=this['_viewToController']['get'](_0x360586)['model']['getAllAdjacentSuggestions']();_0xa1bedc['push'](..._0x3a6b24['reduce']((_0x3cd349,_0x1b3a49)=>[..._0x3cd349,..._0x1b3a49['getMarkerNames']()],[]));}_0x7e4faa['activeMarkers']=_0xa1bedc;}['_addUIComponentsToFactory'](){const _0x1ec099=this['editor'],_0x4080bd=_0x1ec099['locale'],_0x4f56b4=o(_0x4080bd,'Track\x20changes'),_0x3473a4=new _0x43721b([{'type':'switchbutton','model':new _0x2dcafd({'withText':!0x0,'isToggleable':!0x0,'label':_0x4f56b4,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2dcafd({'withText':!0x0,'label':o(_0x4080bd,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dcafd({'withText':!0x0,'label':o(_0x4080bd,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dcafd({'withText':!0x0,'label':o(_0x4080bd,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2dcafd({'withText':!0x0,'label':o(_0x4080bd,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xfdef1c of _0x3473a4)if(pe(_0xfdef1c)){const _0x2ab4a7=_0x1ec099['commands']['get'](_0xfdef1c['model']['commandName']);_0xfdef1c['model']['bind']('isOn','isEnabled')['to'](_0x2ab4a7,'value','isEnabled');}_0x1ec099['ui']['componentFactory']['add']('trackChanges',_0x3d51c9=>this['_createToolbarButton'](_0x3d51c9,_0x3473a4,_0x4f56b4)),_0x1ec099['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5a619b=>this['_createMenuBarMenu'](_0x5a619b,_0x3473a4,_0x4f56b4));}['_createToolbarButton'](_0xd95cd0,_0x3d1f63,_0x3608cf){const _0xc6b57c=_0x23fcfb(_0xd95cd0,_0x2d3a72),_0x5d54d4=this['editor']['commands']['get']('trackChanges');_0xc6b57c['buttonView']['set']({'tooltip':_0x3608cf,'label':_0x3608cf,'icon':Ce}),_0xc6b57c['buttonView']['bind']('isOn')['to'](_0x5d54d4,'value'),_0xc6b57c['buttonView']['on']('execute',()=>{_0x5d54d4['execute'](),this['editor']['editing']['view']['focus']();}),te(_0xc6b57c,_0x3d1f63,{'role':'menu'});const _0xeb4761=[];for(const _0xb9ca7d of _0x3d1f63)pe(_0xb9ca7d)&&_0xeb4761['push'](this['editor']['commands']['get'](_0xb9ca7d['model']['commandName']));const _0x2a1fe9=_0xc6b57c['buttonView'];return _0x2a1fe9['actionView']['unbind']('isEnabled'),_0x2a1fe9['arrowView']['unbind']('isEnabled'),_0x2a1fe9['actionView']['bind']('isEnabled')['to'](_0x5d54d4,'isEnabled'),_0x2a1fe9['arrowView']['bind']('isEnabled')['toMany'](_0xeb4761,'isEnabled',(..._0x50cb63)=>_0x50cb63['some'](_0xcdc428=>_0xcdc428)),_0xc6b57c['on']('execute',_0x482b6b=>{this['editor']['execute'](_0x482b6b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xc6b57c;}['_createMenuBarMenu'](_0x4d18e3,_0x14d44f,_0x352b6b){const _0xda65f0=new _0x5581f3(_0x4d18e3),_0x2d145a=this['editor']['commands']['get']('trackChanges');_0xda65f0['buttonView']['set']({'label':_0x352b6b,'icon':Ce});const _0x249935=new _0x2fbf78(_0x4d18e3);for(const _0x8859a4 of _0x14d44f){if('separator'==_0x8859a4['type']){_0x249935['items']['add'](new _0x2dc935(_0x4d18e3));continue;}const _0x15d84b=new _0x44e088(_0x4d18e3,_0xda65f0),_0x37a456=new _0x3f72ce(_0x4d18e3),_0x5ee96f=_0x8859a4['model'];_0x37a456['bind'](...Object['keys'](_0x5ee96f))['to'](_0x5ee96f),_0x37a456['delegate']('execute')['to'](_0xda65f0),_0x37a456['on']('execute',()=>{this['editor']['execute'](_0x5ee96f['commandName']),this['editor']['editing']['view']['focus']();}),_0x15d84b['children']['add'](_0x37a456),_0x249935['items']['add'](_0x15d84b);}return _0xda65f0['bind']('isEnabled')['to'](_0x2d145a,'isEnabled'),_0xda65f0['panelView']['children']['add'](_0x249935),_0xda65f0;}['_initializeController'](_0x4ade7e){const _0xd2c388=this['editor'],_0x270cdc=_0xd2c388['config'],_0x54a722=_0xd2c388['plugins']['get']('Annotations'),_0x35c4f5=_0xd2c388['plugins']['get']('CommentsRepository'),_0x10372a=_0xd2c388['plugins']['get']('EditorAnnotations'),_0x403468=_0xd2c388['plugins']['get'](_0x2926f4)['me'],_0xba083e=_0x270cdc['get']('trackChanges')['SuggestionThreadView'],_0x49c568=_0x270cdc['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x542022,CommentThreadInputView:_0x4fdd48}=_0xd2c388['plugins']['get']('CommentsUI');let _0x4c6373,_0x321892,_0x4b4792;this['_annotationViews']['has'](_0x4ade7e['id'])?(_0x321892=this['_annotationViews']['get'](_0x4ade7e['id']),_0x4c6373=_0x321892['mainView']):(_0x4c6373=new _0xba083e(_0xd2c388['locale'],_0x4ade7e,_0x403468,{'disableComments':this['_disableComments'],'editorConfig':{..._0x270cdc['get']('comments.editorConfig'),'licenseKey':_0x270cdc['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x270cdc['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x270cdc['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x270cdc['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x2ea635(_0x270cdc['get']('locale')),'CommentView':_0x270cdc['get']('comments')['CommentView'],'CommentsListView':_0x542022,'CommentThreadInputView':_0x4fdd48,'SuggestionView':_0x49c568}),_0x4c6373['suggestionView']['acceptButton']['on']('execute',()=>{_0xd2c388['editing']['view']['focus']();}),_0x4c6373['suggestionView']['discardButton']['on']('execute',()=>{_0xd2c388['editing']['view']['focus']();}),_0x321892=_0x54a722['createAnnotationView'](this['editor']['locale'],_0x4c6373),_0x321892['bind']('isDirty')['to'](_0x4c6373,'isDirty'),_0x321892['bind']('length')['to'](_0x4c6373),_0x321892['bind']('type')['to'](_0x4c6373,'type',_0x5f74c8=>'suggestion-'+_0x5f74c8),_0x4c6373['on']('escape',()=>{_0x4b4792['fire']('escape');}),this['_annotationViews']['set'](_0x4ade7e['id'],_0x321892));const _0x44d97f=_0x35c4f5['createCommentThreadController'](_0x4ade7e['commentThread'],_0x4c6373),_0x545a3c=new ge(_0xd2c388,_0x4ade7e,_0x4c6373,_0x44d97f),_0x3cd40f=_0x4ade7e['getAllAdjacentSuggestions']()['filter'](_0x3b4f7c=>_0x3b4f7c['isInContent']);_0x4c6373['descriptionParts']=_0xd2c388['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x3cd40f),this['_suggestionToController']['set'](_0x4ade7e,_0x545a3c),this['_viewToController']['set'](_0x4c6373,_0x545a3c),_0x4b4792=_0x54a722['createAnnotation']({'view':_0x321892,'target':()=>{const _0x49fd44=[],_0x3cdec1=_0x4ade7e['getAllAdjacentSuggestions']()['filter'](_0x1a7ab7=>_0x1a7ab7['isInContent']);for(const _0x26a829 of _0x3cdec1)_0x49fd44['push'](..._0x26a829['getMarkers']());return _0x50c7ec(_0xd2c388['editing'],_0x49fd44);},'type':()=>'suggestion-'+_0x545a3c['view']['type']}),_0x35c4f5['_bindAnnotationToEditors'](_0x4c6373,_0x4b4792),_0x54a722['add'](_0x4b4792),_0x10372a['registerAnnotation'](_0x4b4792);}['_destroyController'](_0x520ded){const _0x473fce=this['editor']['plugins']['get']('CommentsRepository'),_0x21d118=this['editor']['plugins']['get']('Annotations'),_0xd1d2f6=this['_suggestionToController']['get'](_0x520ded),_0x4d532e=_0xd1d2f6['view'],_0x41bbaa=_0x21d118['getByInnerView'](_0x4d532e);_0x473fce['_unbindEditors'](_0x4d532e),_0x41bbaa&&_0x21d118['remove'](_0x41bbaa),this['_suggestionToController']['delete'](_0x520ded),this['_viewToController']['delete'](_0x4d532e),_0xd1d2f6['destroy']();}['_updateController'](_0x5284be){if(!_0x5284be['isInContent']||!this['_suggestionToController']['has'](_0x5284be))return;const _0x436d0f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x37eeb4=this['_suggestionToController']['get'](_0x5284be),_0x3fe5b4=_0x5284be['getAllAdjacentSuggestions']();_0x37eeb4['view']['descriptionParts']=_0x436d0f['descriptionFactory']['getDescriptions'](_0x3fe5b4);}['destroy'](){for(const _0x52ab72 of this['_suggestionToController']['keys']())this['_destroyController'](_0x52ab72);for(const _0x4c5351 of this['_annotationViews']['values']())_0x4c5351['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function pe(_0x5b0aab){return'model'in _0x5b0aab;}class k extends _0x36effd{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x20e086){this['editor']['plugins']['get'](p)['adapter']=_0x20e086;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xcad61e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xcad61e);}['getSuggestions']({skipNotAttached:_0x550708=!0x1,toJSON:_0x4d5841=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x550708,'toJSON':_0x4d5841});}['getSuggestion'](_0xbeac95){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xbeac95);}}const w=['Pagination'];class T extends _0x36effd{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x547a47=this['editor'];if(_0x547a47['config']['define']('trackChangesData.editorCreator',_0x2fa36f=>{const _0x2dc383=_0x547a47['model']['document']['getRootNames']()['reduce']((_0x144957,_0x48f214)=>(_0x144957[_0x48f214]='',_0x144957),{});return _0x547a47['constructor']['create'](_0x2dc383,_0x2fa36f);}),'function'!=typeof _0x547a47['config']['get']('trackChangesData')['editorCreator'])throw new _0x417294('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5892d3){return N(this['editor'],!0x0,_0x5892d3);}['getDataWithDiscardedSuggestions'](_0x177ec0){return N(this['editor'],!0x1,_0x177ec0);}}class D extends _0x36effd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4f25c9){function _0x450e97(_0x1a3087){return _0x1a3087['map'](_0x18acf0=>String['fromCharCode'](_0x18acf0))['join']('');}super(_0x4f25c9),this['result']='end',_0x4f25c9[_0x450e97([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x450e97([0x76,0x69,0x65,0x77])][_0x450e97([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x450e97([0x61,0x75,0x74,0x6f]),_0x4f25c9[_0x450e97([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x450e97([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x450e97([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x450e97([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x450e97([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(_0x229f36){return void 0x0!==_0x229f36['getRootsAttributes'];}async function N(_0x2d62ba,_0x327e4a,_0x3c5893){const _0x45b3da=_0x12b514(_0x2d62ba,w);_0x45b3da['plugins']['push'](p,D),_0x45b3da['rootsAttributes']=v(_0x2d62ba)?_0x2d62ba['getRootsAttributes']():void 0x0;const _0x4aa40a=document['createDocumentFragment'](),_0x120dd2=_0x2d62ba['config']['get']('trackChangesData')['editorCreator'],_0x29b0e8=await _0x120dd2(_0x45b3da,()=>function(_0x494722){const _0x36b42f=document['createElement']('div');return _0x494722['appendChild'](_0x36b42f),_0x36b42f;}(_0x4aa40a));!function(_0x24b6ab,_0x23665b){const _0x345bab=_0x24b6ab['model']['document']['getRootNames']()['reduce']((_0x10e7d5,_0x3a6dcd)=>(_0x10e7d5[_0x3a6dcd]=_0x24b6ab['data']['get']({'rootName':_0x3a6dcd}),_0x10e7d5),{}),_0x54eb43=_0x24b6ab['plugins']['get']('Users')['users']['map'](_0x33fe8a=>({'id':_0x33fe8a['id'],'name':_0x33fe8a['name']})),_0x16da77=_0x24b6ab['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4b0831=_0x24b6ab['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3acb72=_0x23665b['plugins']['get']('Users'),_0x37dd76=_0x23665b['plugins']['get']('TrackChangesEditing'),_0xbaf2a8=_0x23665b['plugins']['get']('CommentsRepository');for(const _0x480c3a of _0xbaf2a8['getCommentThreads']())_0x480c3a['remove']();for(const _0xc975e0 of _0x54eb43)_0x3acb72['getUser'](_0xc975e0['id'])||_0x3acb72['addUser'](_0xc975e0);_0x3acb72['me']||_0x3acb72['useAnonymousUser']();for(const _0x58f0df of _0x4b0831)_0xbaf2a8['addCommentThread'](_0x58f0df);for(const _0x42eef1 of _0x16da77)_0x37dd76['addSuggestionData'](_0x42eef1);_0x23665b['data']['set'](_0x345bab);}(_0x2d62ba,_0x29b0e8),_0x29b0e8['execute'](_0x327e4a?'acceptAllSuggestions':'discardAllSuggestions');const _0xbbaf95=v(_0x29b0e8)?_0x29b0e8['getFullData'](_0x3c5893):_0x29b0e8['data']['get'](_0x3c5893);return await _0x29b0e8['destroy'](),_0xbbaf95;}export{as as BaseSuggestionThreadView,u as Suggestion,de as SuggestionThreadView,ue as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing};
|