@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250503.0 → 0.0.0-nightly-20250505.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 +27 -27
- 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
|
|
24
|
-
_0x16ce4b(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x40a5d4,_0xca0b4e){super(),this['id']=_0xca0b4e['id'],this['type']=_0xca0b4e['type'],this['subType']=_0xca0b4e['subType']||null,this['author']=_0xca0b4e['author'],this['creator']=_0xca0b4e['creator']||_0xca0b4e['author'],this['isExternal']=Boolean(_0xca0b4e['attributes']&&_0xca0b4e['attributes']['@external']),this['data']=null,this['_model']=_0x40a5d4,this['_onAccept']=_0xca0b4e['onAccept'],this['_onDiscard']=_0xca0b4e['onDiscard'],this['_onAttributesChange']=_0xca0b4e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0xca0b4e['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 _0x1c76e4=this;for(;_0x1c76e4['previous'];)_0x1c76e4=_0x1c76e4['previous'];return _0x1c76e4;}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'](_0xcb3396){this['_markerNames']['add'](_0xcb3396);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x239b8a=>this['_model']['markers']['get'](_0x239b8a))['filter'](_0x52ecc4=>_0x52ecc4);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x8fbf2d=>{for(const _0x5bc2b1 of this['getMarkers']())_0x8fbf2d['removeMarker'](_0x5bc2b1);}),this['_markerNames']['clear']();}['removeMarker'](_0x3f9343){this['_model']['change'](_0x299a7e=>{_0x299a7e['removeMarker'](_0x3f9343);}),this['_markerNames']['delete'](_0x3f9343);}['addRange'](_0x12c73b){const _0x35e3cc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x35e3cc),this['_model']['change'](_0x5824d9=>{_0x5824d9['addMarker'](_0x35e3cc,{'range':_0x12c73b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x179a2a){for(const _0x14a87d of this['getRanges']())if(_0x14a87d['isIntersecting'](_0x179a2a))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1fed27=>_0x1fed27['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x11b3ea,_0x59e4d4)=>[..._0x11b3ea,..._0x59e4d4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3e5444=this['getRanges']();if(0x1!=_0x3e5444['length'])return null;const _0x1008a9=_0x3e5444[0x0],_0x5c592c=_0x1008a9['start']['nodeAfter'],_0x30437c=_0x1008a9['end']['nodeBefore'];return _0x5c592c instanceof _0x288260?_0x5c592c!=_0x30437c?null:_0x5c592c: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 _0x5e1d00=[];let _0xe4d055=this['head'];for(;_0xe4d055;)_0x5e1d00['push'](_0xe4d055),_0xe4d055=_0xe4d055['next'];return _0x5e1d00;}['setAttribute'](_0x8f32c7,_0x1b7ec3){const _0x36cbe5=_0x5e8802(this['attributes']);_0xb27ea9(_0x36cbe5,_0x8f32c7,_0x1b7ec3),_0x1370a7(_0x36cbe5,this['attributes'])||(this['attributes']=_0x36cbe5,this['_onAttributesChange'](_0x36cbe5));}['removeAttribute'](_0x39cf63){const _0x4eb775=_0x5e8802(this['attributes']);_0x5f2b71(_0x4eb775,_0x39cf63),_0x1370a7(_0x4eb775,this['attributes'])||(this['attributes']=_0x4eb775,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 _0x20de28()['substr'](0x1,0x5);}}function c(_0x57b5a5,_0x2e3d88,_0x1f25a8){const _0x4c541b=_0x57b5a5['t'],t=_0x57b5a5['t'];switch(_0x2e3d88){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x1f25a8);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1f25a8);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1f25a8);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1f25a8);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1f25a8);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',_0x1f25a8);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1f25a8);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f25a8);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1f25a8);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1f25a8);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1f25a8);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1f25a8);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1f25a8);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1f25a8);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1f25a8);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1f25a8);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1f25a8);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1f25a8);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1f25a8);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1f25a8);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1f25a8);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1f25a8);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1f25a8);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1f25a8);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x1f25a8);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x1f25a8);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1f25a8);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1f25a8);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1f25a8);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1f25a8);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1f25a8);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1f25a8);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1f25a8);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1f25a8);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'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1f25a8);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1f25a8);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'},_0x1f25a8);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1f25a8);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 _0x4c541b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1f25a8);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4c541b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1f25a8);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1f25a8);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'},_0x1f25a8);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'},_0x1f25a8);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'},_0x1f25a8);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2e3d88;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3e9c26,_0x3d4319){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3e9c26,this['_locale']=_0x3d4319;}['getDescriptions'](_0x1c8197){const _0x5b338c=[],_0x59e3c3=new Set(),_0x288cf8=new Set();for(let _0x19cbe1=0x0;_0x19cbe1<_0x1c8197['length'];_0x19cbe1++){const _0x871b93=_0x1c8197[_0x19cbe1];if(!_0x871b93['isInContent'])continue;const _0x530d79=this['_handleCustomCallbackDescription'](_0x871b93);if(_0x530d79){if(null!=_0x871b93['subType']){if(_0x59e3c3['has'](_0x871b93['subType']))continue;_0x59e3c3['add'](_0x871b93['subType']);}_0x5b338c['push'](_0x530d79);}else{if('attribute'!=_0x871b93['type'])'insertion'!=_0x871b93['type']&&'deletion'!=_0x871b93['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5b338c,_0x871b93,_0x1c8197[_0x19cbe1+0x1]);else{const _0x3bf1d6=_0x871b93['data']['key'];if(_0x288cf8['has'](_0x3bf1d6))continue;_0x288cf8['add'](_0x871b93['data']['key']),_0x3bf1d6==u?this['_handleRenameSuggestionDescription'](_0x5b338c,_0x871b93):this['_handleAttributeSuggestionDescription'](_0x5b338c,_0x871b93);}}}return this['_resolveDescriptionItems'](_0x5b338c);}['registerDescriptionCallback'](_0x2454ac){this['_customCallbacks']['push'](_0x2454ac);}['registerElementLabel'](_0xccae99,_0x16d45a,_0x20ef72=_0x1626e5['normal']){'function'==typeof _0xccae99?_0x58f348(this['_itemLabelsCallbacks'],{'matchingCallback':_0xccae99,'label':_0x16d45a,'priority':_0x20ef72}):this['_itemLabels']['set'](_0xccae99,_0x16d45a);}['registerAttributeLabel'](_0x40f427,_0xa7c5f2){this['_attributeLabels']['set'](_0x40f427,_0xa7c5f2);}['getItemLabel'](_0x400fac,_0x3d985e=0x1){let _0x522db3;for(const _0x3b0c29 of this['_itemLabelsCallbacks'])if(_0x3b0c29['matchingCallback'](_0x400fac)){_0x522db3=_0x3b0c29['label'];break;}return _0x522db3||(_0x522db3=this['_itemLabels']['get'](_0x400fac['name'])),_0x522db3?_0x522db3(_0x3d985e):0x1!==_0x3d985e?_0x3d985e+'\x20'+_0x400fac['name']+'s':''+_0x400fac['name'];}['_addDescriptionItems'](_0x50bc01,_0x40b131){const _0x316460=_0x40b131['getFirstRange']()['getWalker'](),_0x1049c8='insertion'==_0x40b131['type']?'add':'remove';for(const _0x3e32bb of _0x316460){const _0x802a9b=_0x3e32bb['item'],_0x28bcd5=_0x50bc01[_0x50bc01['length']-0x1];if(_0x802a9b['is']('$textProxy'))_0x28bcd5&&_0x28bcd5['type']['indexOf']('Container')>-0x1&&_0x50bc01['pop'](),_0x28bcd5&&'text'==_0x28bcd5['type']?_0x28bcd5[_0x1049c8]+=_0x802a9b['data']:_0x50bc01['push']({'type':'text','add':'add'==_0x1049c8?_0x802a9b['data']:'','remove':'remove'==_0x1049c8?_0x802a9b['data']:''});else{if(this['_schema']['isObject'](_0x802a9b)){const _0x21244d=_0x802a9b;if(_0x28bcd5&&_0x28bcd5['type']['indexOf']('Container')>-0x1&&_0x50bc01['pop'](),'elementEnd'==_0x3e32bb['type'])continue;_0x28bcd5&&_0x28bcd5['type']==_0x1049c8+'Object'&&_0x28bcd5['element']['name']==_0x21244d['name']?_0x28bcd5['quantity']++:_0x50bc01['push']({'type':_0x1049c8+'Object','element':_0x21244d,'quantity':0x1}),_0x316460['skip'](_0x5c66c4=>!('elementEnd'==_0x5c66c4['type']&&_0x5c66c4['item']==_0x802a9b));}else{if(this['_schema']['checkChild'](_0x802a9b,'$text')||_0x802a9b['is']('element','softBreak')){const _0x4dc7ee=_0x802a9b;if('add'==_0x1049c8&&'elementStart'==_0x3e32bb['type']||'remove'==_0x1049c8&&'elementEnd'==_0x3e32bb['type'])continue;if(_0x28bcd5&&-0x1==_0x28bcd5['type']['indexOf']('Container')){'text'==_0x28bcd5['type']&&(_0x28bcd5[_0x1049c8]+='\x0a');continue;}let _0x481a78;if(_0x481a78='add'==_0x1049c8?_0x4dc7ee['nextSibling']&&!this['_schema']['isObject'](_0x4dc7ee['nextSibling'])?_0x4dc7ee['nextSibling']:null:_0x4dc7ee['previousSibling']&&!this['_schema']['isObject'](_0x4dc7ee['previousSibling'])?_0x4dc7ee['previousSibling']:null,_0x4dc7ee['isEmpty']||_0x481a78&&_0x481a78['isEmpty']){const _0x402b19=_0x481a78&&_0x481a78['isEmpty']?_0x481a78:_0x4dc7ee;_0x28bcd5&&_0x28bcd5['type']==_0x1049c8+'EmptyContainer'&&_0x28bcd5['element']['name']==_0x402b19['name']?_0x28bcd5['quantity']++:_0x50bc01['push']({'type':_0x1049c8+'EmptyContainer','element':_0x402b19,'quantity':0x1});}else _0x50bc01['push']({'type':_0x1049c8+'Container','element':_0x4dc7ee});}}}}}['_resolveDescriptionItems'](_0x58cb7a){const _0x1f0f70=this['_locale'],_0x182988=[],_0x3fbb1c=[],_0x21dbe4=[];for(const _0x46b76a of _0x58cb7a)switch(_0x46b76a['type']){case'text':if(_0x46b76a['add']=_0x46b76a['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x46b76a['remove']=_0x46b76a['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x46b76a['add']&&''!=_0x46b76a['remove']){_0x182988['push']({'type':'replace','content':c(_0x1f0f70,'REPLACE_TEXT',['\x22'+_0x46b76a['remove']+'\x22','\x22'+_0x46b76a['add']+'\x22'])});continue;}if(null!=_0x46b76a['add']['match'](/^ +$/)){_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0',c(_0x1f0f70,'ELEMENT_SPACE',_0x46b76a['add']['length']))});continue;}if(null!=_0x46b76a['remove']['match'](/^ +$/)){_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0',c(_0x1f0f70,'ELEMENT_SPACE',_0x46b76a['remove']['length']))});continue;}if(''!=_0x46b76a['add']){_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0','\x22'+_0x46b76a['add']+'\x22')});continue;}_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0','\x22'+_0x46b76a['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Insert:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Remove:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'addContainer':_0x182988['push']({'type':'insertion','content':c(_0x1f0f70,'*Split:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'removeContainer':_0x182988['push']({'type':'deletion','content':c(_0x1f0f70,'*Merge:*\x20%0',this['getItemLabel'](_0x46b76a['element'],_0x46b76a['quantity']))});continue;case'addFormat':_0x3fbb1c['push'](_0x46b76a['key']);continue;case'removeFormat':_0x21dbe4['push'](_0x46b76a['key']);continue;default:_0x182988['push'](_0x46b76a);}if(_0x3fbb1c['length']){const _0x156200=_0x3fbb1c['map'](_0x1b164b=>this['_attributeLabels']['has'](_0x1b164b)?this['_attributeLabels']['get'](_0x1b164b):_0x1b164b)['join'](',\x20');_0x182988['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x156200)});}if(_0x21dbe4['length']){const _0x581d79=_0x21dbe4['map'](_0xf38d35=>this['_attributeLabels']['has'](_0xf38d35)?this['_attributeLabels']['get'](_0xf38d35):_0xf38d35)['join'](',\x20');_0x182988['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x581d79)});}return _0x182988;}['_handleCustomCallbackDescription'](_0x194cfb){for(const _0x46e72b of this['_customCallbacks']){const _0x427a25=_0x46e72b(_0x194cfb);if(_0x427a25&&'type'in _0x427a25)return _0x427a25;}}['_handleAttributeSuggestionDescription'](_0x355d71,_0x3067d1){const _0x44310b=_0x3067d1['data'],_0x4af1f7=void 0x0===_0x44310b['newValue']?'removeFormat':'addFormat';_0x355d71['push']({'type':_0x4af1f7,'key':_0x44310b['key']});}['_handleRenameSuggestionDescription'](_0x5c9906,_0x53a125){_0x5c9906['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53a125['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x19eb40,_0x3af653,_0x3e96dc){if(this['_addDescriptionItems'](_0x19eb40,_0x3af653),_0x3e96dc&&_0x3e96dc['getFirstRange']()&&!_0x3af653['getFirstRange']()['end']['isEqual'](_0x3e96dc['getFirstRange']()['start'])){const _0x2ebde6=_0x19eb40[_0x19eb40['length']-0x1],_0x245757='insertion'==_0x3af653['type']?'add':'remove';_0x2ebde6&&'text'==_0x2ebde6['type']&&(_0x2ebde6[_0x245757]+='\x0a');}}}class U extends _0x483067{['afterInit'](){const _0x50a083=this['editor'],_0x2eeb55=_0x50a083['plugins']['get']('TrackChangesEditing');_0x50a083['commands']['get']('showAIAssistant')&&_0x2eeb55['enableCommand']('showAIAssistant');}}class V extends _0x483067{['afterInit'](){const _0x2e0952=this['editor'],_0x5ad303=_0x2e0952['locale'];if(!_0x2e0952['plugins']['has']('AlignmentEditing'))return;const _0x4ef5a5=_0x2e0952['plugins']['get']('TrackChangesEditing');_0x4ef5a5['enableDefaultAttributesIntegration']('alignment'),_0x4ef5a5['registerBlockAttribute']('alignment'),_0x4ef5a5['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x5ad303,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5549f7=this['editor'],_0x25c497=_0x5549f7['locale'];_0x5549f7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5950d3=>{if('formatBlock'!=_0x5950d3['type'])return;const {data:_0x39a898}=_0x5950d3;if(_0x39a898&&'alignment'==_0x39a898['commandName']){const _0x5ae924=_0x39a898['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x25c497,'*Format:*\x20%0',function(_0x1f6968){switch(_0x1f6968){case'left':return c(_0x25c497,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x25c497,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x25c497,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x25c497,'FORMAT_JUSTIFY_TEXT');}}(_0x5ae924))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x483067{['afterInit'](){const _0x3d425a=this['editor'],_0x3d3562=_0x3d425a['plugins']['get']('TrackChangesEditing'),_0x2081ab=_0x3d425a['locale'];for(const _0x43008 of Zt){if(!_0x3d425a['plugins']['has'](_0x43008))continue;const _0x26f8c0=_0x43008['slice'](0x0,-0x7)['toLowerCase'](),_0x342470='FORMAT_'+_0x26f8c0['toUpperCase']();_0x3d3562['enableDefaultAttributesIntegration'](_0x26f8c0),_0x3d3562['registerInlineAttribute'](_0x26f8c0),_0x3d3562['descriptionFactory']['registerAttributeLabel'](_0x26f8c0,c(_0x2081ab,_0x342470));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c450a=this['editor'],_0x67d25=_0x4c450a['locale'],_0xeb72f=_0x4c450a['plugins']['get']('TrackChangesEditing');function _0x82a18c(_0x1f3f3e,_0x4edc05){_0xeb72f['descriptionFactory']['registerDescriptionCallback'](_0x4b322f=>{if('formatInline'!=_0x4b322f['type'])return;const {data:_0x3f71b7}=_0x4b322f;return _0x3f71b7&&_0x3f71b7['commandName']===_0x1f3f3e?_0x3f71b7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x67d25,'*Format:*\x20%0',_0x4edc05)}:{'type':'format','content':c(_0x67d25,'*Remove\x20format:*\x20%0',_0x4edc05)}:void 0x0;});}_0x82a18c('bold',c(_0x67d25,'FORMAT_BOLD')),_0x82a18c('italic',c(_0x67d25,'FORMAT_ITALIC')),_0x82a18c('underline',c(_0x67d25,'FORMAT_UNDERLINE')),_0x82a18c('code',c(_0x67d25,'FORMAT_CODE')),_0x82a18c('strikethrough',c(_0x67d25,'FORMAT_STRIKETHROUGH')),_0x82a18c('subscript',c(_0x67d25,'FORMAT_SUBSCRIPT')),_0x82a18c('superscript',c(_0x67d25,'FORMAT_SUPERSCRIPT'));}}class G extends _0x483067{['afterInit'](){const _0x529f03=this['editor'],_0x1b90aa=_0x529f03['locale'];if(!_0x529f03['plugins']['has']('BlockQuoteEditing'))return;const _0x1009f0=_0x529f03['plugins']['get']('TrackChangesEditing'),_0xc9848c=this['editor']['commands']['get']('blockQuote');_0x1009f0['enableCommand']('blockQuote',(_0x4444af,_0x102f24={})=>{const _0x4f9be6=this['editor']['model']['document']['selection'],_0x3f1e66=_0x102f24&&void 0x0!==_0x102f24['forceValue']?_0x102f24['forceValue']:!_0xc9848c['value'];let _0x59054c=[];if(_0x3f1e66){const _0x2d2c31=Array['from'](_0x4f9be6['getSelectedBlocks']())['filter'](_0x2e75a5=>oo(_0x2e75a5)||function(_0xbeedf5,_0x2d0296){const _0x45be87=_0x2d0296['checkChild'](_0xbeedf5['parent'],'blockQuote'),_0xb12d2d=_0x2d0296['checkChild'](['$root','blockQuote'],_0xbeedf5);return _0x45be87&&_0xb12d2d;}(_0x2e75a5,this['editor']['model']['schema']));_0x59054c=to(_0x2d2c31,_0x529f03['model']);}else{const _0x1ce960=Array['from'](_0x4f9be6['getSelectedBlocks']())['filter'](_0x165632=>oo(_0x165632));_0x59054c=to(_0x1ce960,_0x529f03['model']);}_0x529f03['model']['change'](()=>{for(const _0x1206cf of _0x59054c)_0x1009f0['markBlockFormat'](_0x1206cf,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f1e66}]});});}),_0x1009f0['descriptionFactory']['registerDescriptionCallback'](_0x3e0f16=>{const {data:_0x4d27f3}=_0x3e0f16;if(_0x4d27f3&&'blockQuote'==_0x4d27f3['commandName']){const _0xf79535=c(_0x1b90aa,'ELEMENT_BLOCK_QUOTE');return _0x4d27f3['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1b90aa,'*Set\x20format:*\x20%0',_0xf79535)}:{'type':'format','content':c(_0x1b90aa,'*Remove\x20format:*\x20%0',_0xf79535)};}});}}function oo(_0xf110c6){return'blockQuote'==_0xf110c6['parent']['name'];}class L extends _0x483067{['afterInit'](){const _0x23bd79=this['editor'],_0x10a2ca=_0x23bd79['locale'],_0x18da3e=_0x23bd79['plugins']['get']('TrackChangesEditing');_0x23bd79['plugins']['has']('BookmarkEditing')&&(_0x18da3e['enableCommand']('insertBookmark'),_0x18da3e['enableDefaultAttributesIntegration']('updateBookmark'),_0x18da3e['registerBlockAttribute']('bookmarkId'),_0x18da3e['descriptionFactory']['registerDescriptionCallback'](_0x31303a=>{if('insertion'!=_0x31303a['type']&&'deletion'!=_0x31303a['type']&&'attribute'!=_0x31303a['type'])return;const _0x455060=_0x31303a['getContainedElement']();if(null==_0x455060)return;if(!_0x455060['is']('element','bookmark'))return;const _0x40d7a9=_0x455060['getAttribute']('bookmarkId');if('insertion'==_0x31303a['type'])return{'type':'insertion','content':c(_0x10a2ca,'*Insert:*\x20%0','\x22'+_0x40d7a9+'\x22\x20'+c(_0x10a2ca,'ELEMENT_BOOKMARK'))};if('deletion'==_0x31303a['type'])return{'type':'deletion','content':c(_0x10a2ca,'*Remove:*\x20%0','\x22'+_0x40d7a9+'\x22\x20'+c(_0x10a2ca,'ELEMENT_BOOKMARK'))};const {data:_0x3903ee}=_0x31303a;if(!_0x3903ee||'bookmarkId'!=_0x3903ee['key'])return;return{'type':'format','content':c(_0x10a2ca,'*Set\x20bookmark:*\x20%0','\x22'+_0x3903ee['newValue']+'\x22')};}));}}class J extends _0x483067{['afterInit'](){const _0x48cf64=this['editor'];_0x48cf64['plugins']['has']('CaseChange')&&(_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x48cf64['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x483067{['afterInit'](){const _0x3beb02=this['editor'];_0x3beb02['commands']['get']('ckbox')&&_0x3beb02['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x483067{['afterInit'](){const _0x236eef=this['editor'];if(!_0x236eef['plugins']['has']('CodeBlock'))return;const _0x44e68e=_0x236eef['plugins']['get']('TrackChangesEditing'),_0x334c99=_0x236eef['locale'],_0x4de469=_0x236eef['config']['get']('codeBlock')['languages'],_0x3e288c=_0x236eef['commands']['get']('codeBlock');_0x44e68e['enableCommand']('indentCodeBlock'),_0x44e68e['enableCommand']('outdentCodeBlock'),_0x44e68e['enableCommand']('codeBlock',(_0x29b8a7,_0x14b6da={})=>{const _0x4ce7c2=_0x236eef['model'],_0x4ab306=_0x236eef['model']['document']['selection'],_0xd1f6bb=_0x14b6da&&void 0x0!==_0x14b6da['forceValue']?_0x14b6da['forceValue']:!_0x3e288c['value'];let _0x235a24;_0x14b6da['language']||(_0x14b6da['language']=_0x4de469[0x0]['language']),_0x235a24=_0xd1f6bb?Array['from'](_0x4ab306['getSelectedBlocks']())['filter'](_0x141ba3=>eo(_0x141ba3)||function(_0x40071f,_0x2c9141){if(_0x40071f['is']('rootElement')||_0x2c9141['isLimit'](_0x40071f))return!0x1;return _0x2c9141['checkChild'](_0x40071f['parent'],'codeBlock');}(_0x141ba3,_0x4ce7c2['schema'])):Array['from'](_0x4ab306['getSelectedBlocks']())['filter'](_0x3a3376=>eo(_0x3a3376));const _0x4b04e1=to(_0x235a24,_0x4ce7c2);_0x4ce7c2['change'](()=>{for(const _0x2a23de of _0x4b04e1)_0x44e68e['markBlockFormat'](_0x2a23de,{'commandName':'codeBlock','commandParams':[{..._0x14b6da,'forceValue':_0xd1f6bb}],'formatGroupId':'blockName'});});}),(_0x44e68e['descriptionFactory']['registerElementLabel']('codeBlock',_0xd7c51=>c(_0x334c99,'ELEMENT_CODE_BLOCK',_0xd7c51)),_0x44e68e['descriptionFactory']['registerDescriptionCallback'](_0x3087d8=>{if('formatBlock'!=_0x3087d8['type'])return;const _0xd03c3d=_0x334c99['t'],{data:_0x36275b}=_0x3087d8;if(!_0x36275b||'codeBlock'!=_0x36275b['commandName'])return;const _0x50c2b2=_0x36275b['commandParams'][0x0]['language'],_0x37dda8=_0xd03c3d(_0x4de469['find'](_0x322ecd=>_0x322ecd['language']===_0x50c2b2)['label'])['toLowerCase']();return _0x36275b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x334c99,'*Set\x20format:*\x20%0',c(_0x334c99,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x37dda8+')')}:{'type':'format','content':c(_0x334c99,'*Remove\x20format:*\x20%0',c(_0x334c99,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x4bb504){return'codeBlock'==_0x4bb504['name'];}class q extends _0x483067{['afterInit'](){const _0x12e1ee=this['editor'];if(!_0x12e1ee['plugins']['has']('CommentsEditing'))return;_0x12e1ee['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x20815b,_0x7cf7f6,_0x12aa03){const _0x509bda=[];for(const _0x6cbca8 of _0x7cf7f6['getItems']())_0x6cbca8['hasAttribute'](_0x20815b)&&_0x509bda['push'](_0x12aa03['createRangeOn'](_0x6cbca8));return _0x509bda;}function Fe(_0x4a1eee,_0x1a5d1d,{showActiveMarker:_0x5528e8=!0x0}={}){const _0x250fb2=_0x4a1eee['plugins']['get']('TrackChangesEditing');return(_0x2ce343,_0x497695,_0x26b9b7)=>{if(!_0x26b9b7['consumable']['test'](_0x497695['markerRange'],_0x2ce343['name']))return;const _0x168de4=_0x497695['markerRange']['getWalker'](),_0x42c18a=_0x497695['markerRange']['start'],_0x39ff0f=_0x4a1eee['model']['schema'];let _0x2d1538=null,_0x2689fe=null,_0x5e2345=!0x1,_0xcd58d9=!0x1;for(const _0x145ead of _0x168de4){const _0x9d87a9=_0x145ead['item'];_0x5e2345=_0x5e2345||_0x39ff0f['isContent'](_0x9d87a9);const _0x17acb7=_0x26b9b7['mapper']['toViewElement'](_0x9d87a9);if(_0x17acb7&&_0x17acb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x145ead['type']&&(_0x39ff0f['isBlock'](_0x9d87a9)&&!_0x39ff0f['isLimit'](_0x9d87a9)&&(_0x9d87a9['nextSibling']||_0x42c18a['isAtEnd']?_0x2d1538&&_0x2d1538['parent']==_0x9d87a9||(_0x2d1538=_0x9d87a9,_0x4e193a(_0x145ead['previousPosition']),_0xcd58d9=!0x0):_0x2689fe=_0x2689fe||_0x145ead['previousPosition']));}function _0x4e193a(_0x2a259d){const {id:_0x3bc87d,authorId:_0xbf811f}=_0x250fb2['_splitMarkerName'](_0x497695['markerName']),_0x33fdf9=_0x26b9b7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1a5d1d,'data-suggestion':_0x3bc87d,'data-author-id':_0xbf811f}),_0x1c65e8=_0x26b9b7['mapper']['toViewPosition'](_0x2a259d);_0x5528e8&&_0x250fb2['activeMarkers']['includes'](_0x497695['markerName'])&&_0x26b9b7['writer']['addClass']('ck-suggestion-marker--active',_0x33fdf9),_0x26b9b7['writer']['insert'](_0x1c65e8,_0x33fdf9),_0x26b9b7['mapper']['bindElementToMarker'](_0x33fdf9,_0x497695['markerName']);}_0x5e2345||_0xcd58d9||!_0x2689fe||_0x4e193a(_0x2689fe);};}class z extends _0x483067{static get['requires'](){return[_0x212892];}['init'](){const _0x2245db=this['editor'],_0x524d61=_0x2245db['plugins']['get']('TrackChangesEditing');_0x524d61['enableCommand']('delete');const _0x10c296=_0x2245db['commands']['get']('deleteForward');_0x524d61['enableCommand']('deleteForward',(_0x42bd1d,_0x53f631={})=>{const _0x37a9e3=_0x2245db['model']['createSelection'](_0x2245db['model']['document']['selection']);_0x37a9e3['isCollapsed']&&_0x2245db['model']['modifySelection'](_0x37a9e3,{'direction':'forward','unit':_0x53f631['unit']});const _0x2dc8c3=_0x37a9e3['getFirstRange'](),_0x1cc115=_0x3bdca8['fromRange'](_0x2dc8c3);let _0x15fcd4;_0x42bd1d(_0x53f631),_0x15fcd4='$graveyard'==_0x1cc115['root']['rootName']?_0x2245db['model']['createRange'](_0x2dc8c3['start']):_0x2245db['model']['createRange'](_0x1cc115['start'],_0x1cc115['end']),_0x1cc115['detach'](),_0x2245db['model']['enqueueChange'](_0x10c296['buffer']['batch'],_0x4fa936=>{_0x10c296['buffer']['lock'](),_0x4fa936['setSelection'](_0x4fa936['createRange'](_0x15fcd4['end'])),_0x10c296['buffer']['unlock']();});}),_0x2245db['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2245db,'merge'),{'priority':'high'}),_0x2245db['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3d6abc,_0x4ebb4c,_0x543e41)=>{_0x543e41['options']['showSuggestionHighlights']&&Fe(_0x2245db,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3d6abc,_0x4ebb4c,_0x543e41);},{'priority':'high'}),_0x2245db['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x172a80,_0x4f0600,_0x17bf85)=>{const _0x5485bf=_0x17bf85['mapper']['markerNameToElements'](_0x4f0600['markerName']);if(_0x5485bf){for(const _0x2d4cb6 of _0x5485bf)_0x2d4cb6['is']('uiElement')&&(_0x17bf85['mapper']['unbindElementFromMarkerName'](_0x2d4cb6,_0x4f0600['markerName']),_0x17bf85['writer']['remove'](_0x2d4cb6));}},{'priority':'high'});}}class W extends _0x483067{['afterInit'](){const _0x1fca2e=this['editor'];if(!_0x1fca2e['plugins']['has']('ListEditing'))return;const _0x5f4028=_0x1fca2e['locale'],_0x4f4c70=_0x1fca2e['plugins']['get']('TrackChangesEditing'),_0x4e2895=_0x1fca2e['plugins']['has']('TodoListEditing'),_0x139902=!!_0x1fca2e['config']['get']('list.multiBlock');function _0x1e8ee5(_0x4cafa6){return{'type':'format','content':''+c(_0x5f4028,'*Set\x20format:*\x20%0',_0x4cafa6)};}function _0x1294ab(_0x3a8978){return{'type':'format','content':''+c(_0x5f4028,'*Remove\x20format:*\x20%0',_0x3a8978)};}_0x4f4c70['enableDefaultAttributesIntegration']('numberedList'),_0x4f4c70['enableDefaultAttributesIntegration']('bulletedList'),_0x4f4c70['enableDefaultAttributesIntegration']('customNumberedList'),_0x4f4c70['enableDefaultAttributesIntegration']('customBulletedList'),_0x4f4c70['enableDefaultAttributesIntegration']('indentList'),_0x4f4c70['enableDefaultAttributesIntegration']('outdentList'),_0x4f4c70['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4f4c70['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4f4c70['registerBlockAttribute']('listItemId'),_0x4f4c70['registerBlockAttribute']('listType'),_0x4f4c70['registerBlockAttribute']('listIndent'),_0x139902&&(_0x4f4c70['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4f4c70['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4e2895&&(_0x4f4c70['enableDefaultAttributesIntegration']('todoList'),_0x4f4c70['enableDefaultAttributesIntegration']('checkTodoList'),_0x4f4c70['registerBlockAttribute']('todoListChecked'),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x13879e=>{const {data:_0xf6f13c}=_0x13879e;if(_0xf6f13c&&'todoListChecked'==_0xf6f13c['key'])return{'type':'format','content':_0xf6f13c['newValue']?c(_0x5f4028,'*Check\x20item*'):c(_0x5f4028,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3c3704=>{if(_0x3c3704['batch']['isUndo'])return!0x1;let _0x3d26f9=!0x1;const _0x13c72b=_0x4f4c70['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x50248a=>'todoListChecked'===_0x4f4c70['_getAttributeKey'](_0x50248a));for(const _0x14691f of _0x13c72b){'todo'!=_0x14691f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4f4c70['_findSuggestions'](_0x14691f['getFirstRange'](),'attribute')['find'](_0x3586cf=>'listType'===_0x4f4c70['_getAttributeKey'](_0x3586cf['suggestion']))||(_0x3c3704['removeMarker'](_0x14691f['getFirstMarker']()),_0x3d26f9=!0x0));}return _0x3d26f9;})),_0x4f4c70['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x5f4028,'FORMAT_INDENT'));const _0x44fafb={'type':'format','content':''};_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x500a4e=>{const {data:_0x5920f7}=_0x500a4e;if(!_0x5920f7||'listType'!=_0x5920f7['key'])return;let _0x443660=_0x500a4e['head'];for(;_0x443660;){if(_0x443660['data']&&(('listStyle'==_0x443660['data']['key']||'listMarkerStyle'==_0x443660['data']['key'])&&(_0x443660['data']['newValue']&&'default'!=_0x443660['data']['newValue']||'default'!=_0x443660['data']['oldValue']&&!_0x5920f7['newValue'])||!_0x139902&&_0x443660['data']['key']==u))return _0x44fafb;_0x443660=_0x443660['next'];}if(null==_0x5920f7['newValue'])switch(_0x5920f7['oldValue']){case'bulleted':return _0x1294ab(c(_0x5f4028,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1294ab(c(_0x5f4028,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1294ab(c(_0x5f4028,'ELEMENT_TODO_LIST'));}switch(_0x5920f7['newValue']){case'bulleted':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1e8ee5(c(_0x5f4028,'ELEMENT_TODO_LIST'));}}),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x4702b3=>{const {data:_0x22145f}=_0x4702b3;if(_0x22145f&&'listIndent'==_0x22145f['key'])return null==_0x22145f['newValue']||null==_0x22145f['oldValue']&&0x0==_0x22145f['newValue']?_0x44fafb:void 0x0;}),_0x4f4c70['descriptionFactory']['registerDescriptionCallback'](_0x1bd0da=>{if('attribute'!=_0x1bd0da['type'])return;const {data:_0xb56e41}=_0x1bd0da;if(!_0xb56e41||'listItemId'!=_0xb56e41['key'])return;const _0x5955ed=Te(_0x1bd0da);return'newValue'==_0x5955ed?{'type':'format','content':c(_0x5f4028,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5955ed?{'type':'format','content':c(_0x5f4028,'*Split:*\x20list\x20item')}:_0x44fafb;}),_0x1fca2e['model']['document']['registerPostFixer'](_0x15ba02=>this['listItemIdFixer'](_0x15ba02)),_0x1fca2e['model']['document']['registerPostFixer'](_0x4bdc55=>this['noTrackChangesFixer'](_0x4bdc55)),_0x1fca2e['model']['document']['on']('change:data',(_0x5bd87d,_0x5eb26e)=>{if(_0x5eb26e['isUndo']||!_0x5eb26e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x171baf){if(_0x171baf['batch']['isUndo']||!_0x171baf['batch']['isLocal'])return!0x1;let _0x4b23e6=!0x1;const _0x261612=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3278f2=>_0x3278f2['data']&&'listItemId'==_0x3278f2['data']['key'])['filter'](_0x5c315d=>_0x5c315d['data']['newValue']&&_0x5c315d['data']['oldValue']);for(const _0x9d761f of _0x261612)Te(_0x9d761f)||(_0x171baf['removeMarker'](_0x9d761f['getFirstMarker']()),_0x4b23e6=!0x0);return _0x4b23e6;}['noTrackChangesFixer'](_0x57a6a6){if(_0x57a6a6['batch']['isUndo']||!_0x57a6a6['batch']['isLocal'])return!0x1;const _0x4e2fb8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4e2fb8['trackChangesCommand']['value'])return!0x1;let _0xb23317=!0x1;const _0x4799b2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57fdc5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29a0a6=>'attribute'==_0x29a0a6['type'])['filter'](_0x1d98cd=>_0x4799b2['includes'](_0x1d98cd['attributeKey']));if(0x0==_0x57fdc5['length'])return _0xb23317;for(const _0x45ce00 of _0x57fdc5){const _0x281e42=_0x4e2fb8['_findSuggestions'](_0x45ce00['range'],'attribute')['filter'](_0x2cf719=>!_0x2cf719['meta']['isNextTo'])['map'](_0x1fffe9=>_0x1fffe9['suggestion'])['filter'](_0x5b8872=>{const _0x272e02=_0x4e2fb8['_getAttributeKey'](_0x5b8872);return _0x4799b2['includes'](_0x272e02);});if(_0x281e42['length']){for(const _0x41a856 of _0x281e42)_0x57a6a6['removeMarker'](_0x41a856['getFirstMarker']());_0xb23317=!0x0;}}return _0xb23317;}['assureChains'](){const _0x5d54e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22b711=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x7fdd9c;const _0x30add2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xe83756=>{if(_0xe83756['data']['oldRange']||!_0xe83756['data']['newRange'])return null;if(!_0xe83756['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1e4181}=_0x5d54e2['_splitMarkerName'](_0xe83756['name']);if(!_0x5d54e2['hasSuggestion'](_0x1e4181))return null;const _0x103f7b=_0x5d54e2['getSuggestion'](_0x1e4181);return _0x22b711['includes'](_0x103f7b['data']['key']);})['map'](_0x39c887=>{const {id:_0x64cf29}=_0x5d54e2['_splitMarkerName'](_0x39c887['name']),_0xc3286b=_0x5d54e2['getSuggestion'](_0x64cf29);return _0x7fdd9c=_0xc3286b['attributes']['groupId'],_0xc3286b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x30add2['size'])return;const _0x57d47d=_0x5d54e2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27c197=>'attribute'==_0x27c197['type']&&_0x27c197['data']&&_0x22b711['includes'](_0x27c197['data']['key'])&&_0x27c197['attributes']['groupId']!=_0x7fdd9c)['map'](_0x243560=>({'listItem':_0x243560['getFirstRange']()['start']['nodeAfter'],'groupId':_0x243560['attributes']['groupId']})),_0x3b5778=new Set();for(const {groupId:_0x326d3d,listItem:_0x2daba6}of _0x57d47d)_0x30add2['has'](_0x2daba6)&&_0x3b5778['add'](_0x326d3d);for(const _0x1c2505 of _0x5d54e2['getSuggestions']())_0x3b5778['has'](_0x1c2505['attributes']['groupId'])&&_0x1c2505['setAttribute']('groupId',_0x7fdd9c);}['_supportLegacySuggestions'](){const _0x3bab70=this['editor'],_0x5a283e=_0x3bab70['locale'],_0x86ac2d=_0x3bab70['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x86ac2d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3dd4f3,_0x33b80f){const _0xeed9dd=[];for(let _0x45d299 of _0x3dd4f3)_0x45d299['start']['nodeAfter']===_0x45d299['end']['parent']&&(_0x45d299=_0x3bab70['model']['createRange'](_0x3bab70['model']['createPositionAt'](_0x45d299['start']['nodeAfter'],0x0))),_0xeed9dd['push'](_0x45d299);_0x3bab70['model']['change'](_0x2100ce=>{const _0x80fa83=_0x3bab70['model']['document']['selection'],_0x4d208c=Array['from'](_0x80fa83['getRanges']())['map'](_0x1fe37f=>_0x3bdca8['fromRange'](_0x1fe37f));_0x2100ce['setSelection'](_0xeed9dd),_0x3bab70['commands']['get'](_0x33b80f['commandName'])['refresh'](),_0x33b80f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3bab70['execute'](_0x33b80f['commandName'],..._0x33b80f['commandParams']),_0x2100ce['setSelection'](_0x4d208c);for(const _0x137b1a of _0x4d208c)_0x137b1a['detach']();});}),_0x86ac2d['descriptionFactory']['registerElementLabel'](function(_0x5c2538){const _0x5bcf51=!_0x3bab70['model']['schema']['isObject'](_0x5c2538),_0x449a05=_0x5c2538['previousSibling'],_0x46a32e=_0x5c2538['nextSibling'],_0x294698=_0x5c2538['getAttribute']('listItemId'),_0x37c2c9=!_0x449a05||_0x449a05['getAttribute']('listItemId')!==_0x294698,_0x4ec4b7=!_0x46a32e||_0x46a32e['getAttribute']('listItemId')!==_0x294698;return _0x5bcf51&&Boolean(_0x294698)&&_0x37c2c9&&_0x4ec4b7;},_0x41a699=>c(_0x5a283e,'ELEMENT_LIST_ITEM',_0x41a699));}['_registerLegacyDescription'](){const _0x335478=this['editor'],_0x3ba968=_0x335478['locale'];function _0x46edbd(_0x3676b6){const _0x17dc9c=_0x335478['commands']['get']('bulletedList')['value'],_0xf9d883=_0x335478['commands']['get']('numberedList')['value'];return'numberedList'===_0x3676b6?_0x17dc9c:_0xf9d883;}_0x335478['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x3806e9){if('formatBlock'!=_0x3806e9['type'])return;const {data:_0x4b0d31}=_0x3806e9;if(!_0x4b0d31)return;let _0x512f95,_0x2a7c0c,_0x131c63,_0x2abedf;switch(_0x4b0d31['commandName']){case'bulletedList':_0x131c63=_0x4b0d31['commandParams'][0x0]['forceValue'],_0x2abedf=_0x46edbd(_0x4b0d31['commandName']),_0x512f95=_0x131c63?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2abedf&&_0x335478['config']['get']('list.multiBlock')||(_0x512f95='*Change\x20to:*\x20%0'),_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x131c63=_0x4b0d31['commandParams'][0x0]['forceValue'],_0x2abedf=_0x46edbd(_0x4b0d31['commandName']),_0x512f95=_0x131c63?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2abedf&&_0x335478['config']['get']('list.multiBlock')||(_0x512f95='*Change\x20to:*\x20%0'),_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x512f95='*Indent:*\x20%0',_0x2a7c0c={'type':'format','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x512f95=function(_0x455a0b){const _0x4a9a57=_0x455a0b['getFirstRange']();let _0x55a3e0=_0x4a9a57['start']['nodeAfter'];for(;_0x55a3e0&&_0x4a9a57['containsItem'](_0x55a3e0);){if(_0x55a3e0['getAttribute']('listIndent')>0x0)return!0x1;_0x55a3e0=_0x55a3e0['nextSibling'];}return!0x0;}(_0x3806e9)?c(_0x3ba968,'*Format:*\x20remove\x20from\x20%0',c(_0x3ba968,function(_0x1d1024){return'ELEMENT_'+_0x1d1024['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x3806e9))):c(_0x3ba968,'*Outdent:*\x20%0',c(_0x3ba968,'ELEMENT_LIST_ITEM')),_0x2a7c0c={'type':'format','content':_0x512f95};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4b0d31['multipleBlocks']&&(_0x512f95='*Merge:*\x20%0',_0x2a7c0c={'type':'deletion','content':c(_0x3ba968,_0x512f95,c(_0x3ba968,'ELEMENT_LIST_ITEM'))});}return _0x2a7c0c;});}}function Te(_0xd91899){let _0x4d4ba0=_0xd91899['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d4ba0;){const _0x3efca3=_0x4d4ba0['getAttribute']('listItemId');if(!_0x3efca3)return!0x1;if(_0x3efca3==_0xd91899['data']['newValue'])return'newValue';if(_0x3efca3==_0xd91899['data']['oldValue'])return'oldValue';_0x4d4ba0=_0x4d4ba0['previousSibling'];}return!0x1;}class Se extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4c74b2=this['editor']['config']['get']('list.properties'),_0x25b695=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c74b2['styles']&&(_0x25b695['enableDefaultAttributesIntegration']('listStyle'),_0x25b695['registerBlockAttribute']('listStyle')),_0x4c74b2['reversed']&&(_0x25b695['enableDefaultAttributesIntegration']('listReversed'),_0x25b695['registerBlockAttribute']('listReversed')),_0x4c74b2['startIndex']&&(_0x25b695['enableDefaultAttributesIntegration']('listStart'),_0x25b695['registerBlockAttribute']('listStart'));const _0x57e4aa={'type':'format','content':''};_0x25b695['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3231d0=this['editor']['locale'];_0x25b695['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x3231d0,'FORMAT_LIST_REVERSED')),_0x25b695['descriptionFactory']['registerDescriptionCallback'](_0x2101fb=>{const {data:_0x54b476}=_0x2101fb;if(_0x54b476&&'listReversed'==_0x54b476['key'])return null==_0x54b476['newValue']||0x0==_0x54b476['newValue']&&null==_0x54b476['oldValue']?_0x57e4aa:void 0x0;}),_0x25b695['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x3231d0,'FORMAT_LIST_START')),_0x25b695['descriptionFactory']['registerDescriptionCallback'](_0x19ba7b=>{const {data:_0x5d81c9}=_0x19ba7b;if(_0x5d81c9&&'listStart'==_0x5d81c9['key'])return null==_0x5d81c9['newValue']||0x1==_0x5d81c9['newValue']&&null==_0x5d81c9['oldValue']?_0x57e4aa:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x597da5=>{if(_0x597da5['batch']['isUndo'])return!0x1;let _0x1c852d=!0x1;const _0x5e9b62=_0x25b695['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x60b20d=>{const _0x595762=_0x25b695['_getAttributeKey'](_0x60b20d);return'listStart'==_0x595762||'listReversed'==_0x595762;});for(const _0x45b922 of _0x5e9b62){const _0x4ec874=_0x45b922['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x4ec874||'customNumbered'==_0x4ec874)continue;_0x25b695['_findSuggestions'](_0x45b922['getFirstRange'](),'attribute')['find'](_0x1cc6bd=>'listType'==_0x25b695['_getAttributeKey'](_0x1cc6bd['suggestion']))||(_0x597da5['removeMarker'](_0x45b922['getFirstMarker']()),_0x1c852d=!0x0);}return _0x1c852d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xef79fe){const _0x495686=this['editor']['locale'],{data:_0xa2803c}=_0xef79fe,_0x3e138a={'type':'format','content':''};if(!_0xa2803c||'listStyle'!=_0xa2803c['key'])return;if(!_0xa2803c['oldValue'])return'default'==_0xa2803c['newValue']?_0x3e138a:{'type':'format','content':''+c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['newValue'])))};if(!_0xa2803c['newValue']){if('default'==_0xa2803c['oldValue'])return _0x3e138a;let _0x289e6d=_0xef79fe['head'];for(;_0x289e6d;){if(_0x289e6d['data']&&'listType'==_0x289e6d['data']['key']&&_0x289e6d['data']['newValue'])return _0x3e138a;_0x289e6d=_0x289e6d['next'];}return{'type':'format','content':''+c(_0x495686,'*Remove\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['oldValue'])))};}if('default'!=_0xa2803c['newValue'])return{'type':'format','content':''+c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,this['_getTranslationKeyForListStyle'](_0xa2803c['newValue'])))};let _0x2d7163=_0xef79fe['head'];for(;_0x2d7163;){if(_0x2d7163['data']&&'listType'==_0x2d7163['data']['key']&&_0x2d7163['data']['newValue']&&_0x2d7163['data']['oldValue'])return _0x3e138a;_0x2d7163=_0x2d7163['next'];}return{'type':'format','content':c(_0x495686,'*Set\x20format:*\x20%0',c(_0x495686,'ELEMENT_'+_0xef79fe['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x652106=this['editor'],_0x1af9ad=_0x652106['locale'];_0x652106['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46d18a=>{if('formatBlock'!=_0x46d18a['type'])return;const {data:_0x4360f1}=_0x46d18a;if(!_0x4360f1)return;let _0x56f899,_0x304216;switch(_0x4360f1['commandName']){case'listStyle':_0x56f899='*Change\x20to:*\x20%0',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899,c(_0x1af9ad,this['_getTranslationKeyForListStyle'](_0x4360f1['commandParams'][0x0]['type'])))};break;case'listReversed':_0x56f899=_0x4360f1['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899)};break;case'listStart':_0x56f899='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x304216={'type':'format','content':c(_0x1af9ad,_0x56f899,_0x4360f1['commandParams'][0x0]['startIndex'])};}return _0x304216;});}['_getTranslationKeyForListStyle'](_0x287e77){return'ELEMENT_'+function(_0x14bf8f){if(_e['includes'](_0x14bf8f))return'bulleted';if(Re['includes'](_0x14bf8f))return'numbered';return null;}(_0x287e77)['toUpperCase']()+'_LIST_'+_0x287e77['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x483067{['afterInit'](){const _0x287532=this['editor'];_0x287532['commands']['get']('emoji')&&_0x287532['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x483067{static get['requires'](){return[_0x250e76];}['init'](){const _0x33fbd4=this['editor'],_0x1d4151=_0x33fbd4['plugins']['get']('TrackChangesEditing'),_0x5bbcb3=_0x33fbd4['commands']['get']('enter');_0x1d4151['enableCommand']('enter',()=>{_0x33fbd4['model']['change'](_0x23ef50=>{const _0x283929=_0x33fbd4['model']['document']['selection'],_0x5c7f77=_0x283929['getFirstPosition'](),_0x34ca2b=_0x3bdca8['fromRange'](_0x283929['getFirstRange']());if(_0x5bbcb3['enterBlock'](_0x23ef50)){const _0x375be6=_0x33fbd4['model']['createPositionAt'](_0x5c7f77['parent']['nextSibling'],0x0),_0x40f39f=_0x23ef50['createRange'](_0x5c7f77,_0x375be6);_0x1d4151['markInsertion'](_0x40f39f);}else _0x23ef50['setSelection'](_0x23ef50['createRange'](_0x34ca2b['end']));_0x34ca2b['detach'](),_0x5bbcb3['fire']('afterExecute',{'writer':_0x23ef50});});}),_0x33fbd4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x33fbd4,'split'),{'priority':'high'}),_0x33fbd4['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x574c62,_0x1670a7,_0x5d903a)=>{const _0x5a629a=_0x5d903a['mapper']['markerNameToElements'](_0x1670a7['markerName']);if(_0x5a629a){for(const _0x4c6447 of _0x5a629a)_0x4c6447['hasClass']('ck-suggestion-marker-split')&&(_0x5d903a['mapper']['unbindElementFromMarkerName'](_0x4c6447,_0x1670a7['markerName']),_0x5d903a['writer']['remove'](_0x4c6447));}},{'priority':'high'}),_0x33fbd4['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1ddb47,_0x1dcae8,_0x53445d)=>{_0x53445d['options']['showSuggestionHighlights']&&Fe(_0x33fbd4,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1ddb47,_0x1dcae8,_0x53445d);},{'priority':'high'});}}class Z extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x385617=this['editor']['plugins']['get']('TrackChangesEditing');_0x385617['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x385617['enableCommand']('findNext'),_0x385617['enableCommand']('findPrevious'),_0x385617['enableCommand']('replace'),_0x385617['enableCommand']('replaceAll');}['handleFindCommand'](_0x325cbd,_0x4d3925,_0xede1f4={}){const _0x351827=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x325cbd(_0x209c7b=>{let _0x11b56f=('string'==typeof _0x4d3925?_0x351827['findByTextCallback'](_0x4d3925,_0xede1f4):_0x4d3925)(_0x209c7b);Array['isArray'](_0x11b56f)&&(_0x11b56f={'results':_0x11b56f,'searchText':'string'==typeof _0x4d3925?_0x4d3925:''});const _0x2e0e5a=_0x11b56f['results']['filter'](_0x40a186=>!0x1===this['_isInDeletionRange'](_0x40a186,_0x209c7b['item']));return{..._0x11b56f,'results':_0x2e0e5a};},_0xede1f4);}['_isInDeletionRange'](_0x705412,_0x883a0d){const _0x29b9c3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x883a0d,_0x705412['start']),this['editor']['model']['createPositionAt'](_0x883a0d,_0x705412['end']));for(const _0x4f47fb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x29b9c3['getIntersection'](_0x4f47fb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x483067{['afterInit'](){const _0x1fd0ce=this['editor']['locale'],_0x301378=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3c1f39,commandName:_0x503765}of ro)this['editor']['plugins']['has'](_0x3c1f39)&&(_0x301378['enableDefaultAttributesIntegration'](_0x503765),_0x301378['registerInlineAttribute'](_0x503765));_0x301378['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x1fd0ce,'FORMAT_FONT_SIZE')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x1fd0ce,'FORMAT_FONT_FAMILY')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x1fd0ce,'FORMAT_FONT_COLOR')),_0x301378['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x1fd0ce,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x229184=this['editor'],_0x556cdd=_0x229184['locale'];_0x229184['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x10ad63=>{const _0xbe8cd3=_0x556cdd['t'];if('formatInline'!=_0x10ad63['type'])return;const {data:_0x45396c}=_0x10ad63;if(null!=_0x45396c){if('fontSize'==_0x45396c['commandName']){const _0xfa041=_0x45396c['commandParams'][0x0]['value'];if(_0xfa041){const _0x2f4e7b=_0xbe8cd3(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x24173f=>_0x24173f['model']==_0xfa041)['title'])['toLowerCase']();return{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20size:*\x20%0',_0x2f4e7b)};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x45396c['commandName']){const _0x86911a=_0x45396c['commandParams'][0x0]['value'];return _0x86911a?{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20family:*\x20%0',_0x86911a)}:{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20family*')};}if('fontColor'==_0x45396c['commandName']){const _0x24fd92=_0x45396c['commandParams'][0x0]['value'];if(_0x24fd92){const _0x3c6371=_0x514ef4(this['editor']['config']['get']('fontColor.colors'))['find'](_0x122144=>_0x122144['model']==_0x24fd92);let _0x133b13=_0x24fd92,_0x418f91='';return _0x3c6371&&(_0x133b13=_0x3c6371['label'],_0x418f91=_0xbe8cd3(_0x133b13)['toLowerCase']()),{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20color:*\x20%0',_0x418f91)['trim'](),'color':{'value':_0x24fd92,'title':_0x418f91||_0x133b13}};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x45396c['commandName']){const _0x4d1ea4=_0x45396c['commandParams'][0x0]['value'];if(_0x4d1ea4){const _0x35666c=_0x514ef4(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x150bcb=>_0x150bcb['model']==_0x4d1ea4);let _0x4794de=_0x4d1ea4,_0x1fe54a='';return _0x35666c&&(_0x4794de=_0x35666c['label'],_0x1fe54a=_0xbe8cd3(_0x4794de)['toLowerCase']()),{'type':'format','content':c(_0x556cdd,'*Set\x20font\x20background\x20color:*\x20%0',_0x1fe54a)['trim'](),'color':{'value':_0x4d1ea4,'title':_0x1fe54a||_0x4794de}};}return{'type':'format','content':c(_0x556cdd,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x483067{['afterInit'](){const _0x59fb25=this['editor'],_0x28978d=_0x59fb25['plugins']['get']('TrackChangesEditing'),_0x4a9061=_0x59fb25['commands']['get']('copyFormat'),_0x455476=_0x59fb25['commands']['get']('pasteFormat');_0x4a9061&&_0x455476&&(_0x28978d['enableDefaultAttributesIntegration']('pasteFormat'),_0x28978d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1f5692=this['editor'],_0x57d883=_0x1f5692['locale'];_0x1f5692['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x17c429=>{if('formatBlock'!=_0x17c429['type']&&'formatInline'!=_0x17c429['type'])return;const {data:_0x53f84e}=_0x17c429;if(_0x53f84e&&'pasteFormat'===_0x53f84e['commandName']){const _0x85df92=[],_0x38216d=_0x53f84e['commandParams'][0x0];for(const [_0x41c6f9,_0x30893e]of Object['entries'](_0x38216d))_0x85df92['push'](so(_0x1f5692,_0x41c6f9,_0x30893e));return _0x85df92['length']?{'type':'format','content':c(_0x57d883,'*Set\x20format\x20to:*\x20%0',_0x85df92['join'](',\x20'))}:{'type':'format','content':c(_0x57d883,'*Remove\x20all\x20formatting*')};}});}}function so(_0x59a15a,_0x2bc860,_0x11d34d){const _0x597bb7=_0x59a15a['locale']['t'],_0x2ce873=_0x2bc860['split'](/(?=[A-Z])/)['join']('\x20'),_0x8a03ce=_0x597bb7(_0x2ce873['charAt'](0x0)['toUpperCase']()+_0x2ce873['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x11d34d)return _0x8a03ce;if('fontColor'===_0x2bc860||'fontBackgroundColor'===_0x2bc860){const _0x1372ef=_0x514ef4(_0x59a15a['config']['get']('fontColor.colors'))['find'](_0x373d01=>_0x373d01['model']==_0x11d34d);return _0x8a03ce+'\x20('+(_0x1372ef?_0x597bb7(_0x1372ef['label'])['toLowerCase']():_0x11d34d)+')';}if('fontSize'===_0x2bc860&&isNaN(parseFloat(_0x11d34d))){const _0x592d38=_0x59a15a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x59a15a['config']['get']('fontSize.options'))['find'](_0x1a871e=>_0x1a871e['model']==_0x11d34d);return _0x8a03ce+'\x20('+(_0x592d38?_0x597bb7(_0x592d38['title'])['toLowerCase']():_0x11d34d)+')';}return _0x8a03ce+'\x20('+_0x11d34d+')';}class it extends _0x483067{['_headingOptions'];['afterInit'](){const _0x87c970=this['editor'];if(!_0x87c970['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x87c970['config']['get']('heading.options');const _0x5fd668=_0x87c970['locale'],_0x1a2887=_0x87c970['plugins']['get']('TrackChangesEditing');_0x1a2887['enableDefaultAttributesIntegration']('heading');for(const _0x2531df of this['_headingOptions'])'paragraph'!=_0x2531df['model']&&_0x1a2887['descriptionFactory']['registerElementLabel'](_0x2531df['model'],_0x42ac65=>{const _0x19354b=this['_getHeadingLevel'](_0x2531df['model']);return null!==_0x19354b?_0x44446e(_0x42ac65,_0x19354b):_0x22d943(_0x42ac65,_0x2531df['title']);});function _0x44446e(_0x4c87d9,_0x5d92c5){return c(_0x5fd668,'ELEMENT_HEADING',[_0x4c87d9,_0x5d92c5]);}function _0x22d943(_0x2133c8,_0x390a88){return c(_0x5fd668,'ELEMENT_HEADING_CUSTOM',[_0x2133c8,_0x390a88]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53e754=this['editor'],_0x1efbfc=_0x53e754['locale'];function _0x5c6489(_0x42093c,_0x49fe13){return c(_0x1efbfc,'ELEMENT_HEADING_CUSTOM',[_0x42093c,_0x49fe13]);}_0x53e754['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x115193=>{if('formatBlock'!=_0x115193['type'])return;const {data:_0x4ad694}=_0x115193;if(_0x4ad694&&'heading'==_0x4ad694['commandName']){const _0x4f57dd=_0x4ad694['commandParams'][0x0]['value'],_0x4773c0=this['_getHeadingLevel'](_0x4f57dd);if(null!==_0x4773c0)return{'type':'format','content':c(_0x1efbfc,'*Change\x20to:*\x20%0',(_0x5c887e=0x1,_0x4c1d9a=_0x4773c0,c(_0x1efbfc,'ELEMENT_HEADING',[_0x5c887e,_0x4c1d9a])))};const _0x1bca35=this['_headingOptions']['find'](_0x2685a9=>_0x2685a9['model']===_0x4f57dd)['title'];return{'type':'format','content':c(_0x1efbfc,'*Change\x20to:*\x20%0',_0x5c6489(0x1,_0x1bca35))};}var _0x5c887e,_0x4c1d9a;});}['_getHeadingLevel'](_0x27bb90){const _0x15a172=_0x27bb90['match'](/^heading(\d+)/);if(_0x15a172)return _0x15a172[0x1];const _0x3ecbcf=this['_headingOptions']?.['find'](_0x5b6d11=>_0x5b6d11['model']==_0x27bb90);if(_0x3ecbcf&&_0x3ecbcf['view']){const _0x1a44f8=_0x3ecbcf['view'],_0x49d4f2=(_0x1a44f8['name']??_0x1a44f8)['match'](/^h(\d+)/);if(_0x49d4f2)return _0x49d4f2[0x1];}return null;}}class nt extends _0x483067{['afterInit'](){const _0xdd65c1=this['editor'];if(!_0xdd65c1['plugins']['has']('HighlightEditing'))return;const _0x390d09=_0xdd65c1['plugins']['get']('TrackChangesEditing'),_0x12925c=_0xdd65c1['locale'];_0x390d09['enableDefaultAttributesIntegration']('highlight'),_0x390d09['registerInlineAttribute']('highlight'),_0x390d09['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x12925c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x141731=this['editor'],_0x3df5e5=_0x141731['locale'];_0x141731['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2687a0=>{if('formatInline'!=_0x2687a0['type'])return;const {data:_0x5407cd}=_0x2687a0;if(_0x5407cd&&'highlight'==_0x5407cd['commandName']){const _0x55bc18=_0x3df5e5['t'],_0x2e13ea=_0x5407cd['commandParams'][0x0]['value'];if(_0x2e13ea){const _0x258bee=_0x141731['config']['get']('highlight.options')['find'](_0x4fb8be=>_0x4fb8be['model']==_0x2e13ea),_0x44ef6b=_0x55bc18(_0x258bee['title'])['toLowerCase']();return{'type':'format','content':c(_0x3df5e5,'*Set\x20highlight:*\x20%0',_0x44ef6b),'color':{'value':_0x258bee['color'],'title':_0x258bee['title']}};}return{'type':'format','content':c(_0x3df5e5,'*Remove\x20highlight*',c(_0x3df5e5,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x483067{['afterInit'](){const _0x243d1f=this['editor'];if(!_0x243d1f['plugins']['has']('HorizontalLineEditing'))return;_0x243d1f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x268c61=_0x243d1f['plugins']['get']('TrackChangesEditing'),_0x56b905=_0x243d1f['locale'];_0x268c61['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4588d0=>c(_0x56b905,'ELEMENT_HORIZONTAL_LINE',_0x4588d0)),_0x243d1f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x263de4,{writer:_0x580a43,options:_0x1cc740})=>{if(!_0x1cc740['showSuggestionHighlights'])return null;const _0x23b8a1=_0x580a43['createContainerElement']('div'),_0x5c3790=_0x580a43['createEmptyElement']('hr');return _0x580a43['addClass']('ck-horizontal-line',_0x23b8a1),_0x580a43['insert'](_0x580a43['createPositionAt'](_0x23b8a1,0x0),_0x5c3790),_0x23b8a1;},'converterPriority':'high'});}}class ot extends _0x483067{['afterInit'](){const _0x4c94c9=this['editor'];if(!_0x4c94c9['plugins']['has']('HtmlEmbed'))return;const _0x140e6e=_0x4c94c9['plugins']['get']('TrackChangesEditing'),_0x16bfcf=_0x4c94c9['locale'];_0x140e6e['descriptionFactory']['registerElementLabel']('rawHtml',_0x3cce89=>c(_0x16bfcf,'ELEMENT_HTML_EMBED',_0x3cce89)),_0x140e6e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x140e6e['registerBlockAttribute']('value'),_0x140e6e['descriptionFactory']['registerDescriptionCallback'](_0x4e6604=>{if('attribute'!=_0x4e6604['type'])return;const {data:_0x4324eb}=_0x4e6604;if(_0x4324eb&&'value'==_0x4324eb['key']&&_0x4e6604['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x30750f=c(_0x16bfcf,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x16bfcf,'*Change\x20%0\x20content*',_0x30750f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbaa3b5=this['editor'],_0x4211eb=_0xbaa3b5['locale'];_0xbaa3b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3505b2=>{if('formatBlock'!=_0x3505b2['type'])return;const {data:_0x4e53dd}=_0x3505b2;if(_0x4e53dd&&'htmlEmbed'==_0x4e53dd['commandName']){const _0x27248f=c(_0x4211eb,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x4211eb,'*Change\x20%0\x20content*',_0x27248f)};}});}}class rt extends _0x483067{['afterInit'](){const _0x394ed8=this['editor'];if(!_0x394ed8['plugins']['has']('ImageEditing'))return;const _0x34e2d1=_0x394ed8['plugins']['get']('TrackChangesEditing'),_0x4cebe9=_0x394ed8['plugins']['get']('ImageUtils'),_0xfb77e6=_0x394ed8['locale'];_0x34e2d1['enableCommand']('insertImage'),_0x34e2d1['descriptionFactory']['registerElementLabel']('imageBlock',_0x6b2694=>c(_0xfb77e6,'ELEMENT_IMAGE',_0x6b2694)),_0x34e2d1['descriptionFactory']['registerElementLabel']('imageInline',_0x5c0807=>c(_0xfb77e6,'ELEMENT_INLINE_IMAGE',_0x5c0807)),_0x34e2d1['descriptionFactory']['registerElementLabel']('caption',()=>c(_0xfb77e6,'ELEMENT_CAPTION')),_0x394ed8['plugins']['has']('ImageUploadEditing')&&_0x34e2d1['enableCommand']('uploadImage'),_0x394ed8['plugins']['has']('ImageBlockEditing')&&_0x394ed8['plugins']['has']('ImageInlineEditing')&&(_0x34e2d1['enableCommand']('imageTypeInline',(_0x29e143,_0x5e7203)=>{const _0x2603f6=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']);_0x394ed8['model']['change'](()=>{_0x34e2d1['markBlockFormat'](_0x2603f6,{'commandName':'imageTypeInline','commandParams':[_0x5e7203]},[],'convertBlockImageToInline');});}),_0x34e2d1['enableCommand']('imageTypeBlock',(_0x236e76,_0x55843a)=>{_0x394ed8['model']['change'](_0x5bc2a0=>{let _0xed70dd=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x3e677b=_0x5bc2a0['createRangeOn'](_0xed70dd);const _0x2a72d1=_0x3b1981['fromPosition'](_0x3e677b['start'],'toPrevious'),_0x56d7c4=_0x3b1981['fromPosition'](_0x3e677b['end'],'toNext');_0x34e2d1['forceDefaultExecution'](()=>_0x236e76(_0x55843a)),_0xed70dd=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x3e677b=_0x5bc2a0['createRangeOn'](_0xed70dd);const _0x136379=_0x5bc2a0['createRange'](_0x2a72d1,_0x56d7c4);_0x2a72d1['detach'](),_0x56d7c4['detach'](),_0x34e2d1['markBlockFormat'](_0xed70dd,{'commandName':'imageTypeInline','commandParams':[_0x55843a]},[],'convertInlineImageToBlock'),_0x136379['start']['isBefore'](_0x3e677b['start'])&&_0x34e2d1['markInsertion'](_0x5bc2a0['createRange'](_0x136379['start'],_0x3e677b['start']),'convertInlineImageToBlock'),_0x3e677b['end']['isBefore'](_0x136379['end'])&&_0x34e2d1['markInsertion'](_0x5bc2a0['createRange'](_0x3e677b['end'],_0x136379['end']),'convertInlineImageToBlock');});}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x34e2d1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x3cae00])=>{const _0x3bbd84=_0x34e2d1['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x1bbe36=_0x3cae00['start'],_0x3522a6=_0x3cae00['end'];const _0x219bab=_0x394ed8['model']['schema']['getNearestSelectionRange'](_0x1bbe36,'backward'),_0x4aee34=_0x394ed8['model']['schema']['getNearestSelectionRange'](_0x3522a6,'forward');_0x219bab['isCollapsed']&&(_0x1bbe36=_0x219bab['start']),_0x4aee34['isCollapsed']&&(_0x3522a6=_0x4aee34['end']),_0x3bbd84([_0x394ed8['model']['createRange'](_0x1bbe36,_0x3522a6)]);}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x47709f),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x47709f)),_0x394ed8['plugins']['has']('ImageCaptionEditing')&&(_0x34e2d1['enableCommand']('toggleImageCaption',(_0x53b456,_0x55cef3)=>{const _0x1fbe57=_0x394ed8['plugins']['get']('ImageCaptionUtils');let _0x394a8b=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x550b76=_0x1fbe57['getCaptionFromImageModelElement'](_0x394a8b);_0x394ed8['model']['change'](()=>{if(_0x550b76)return void _0x34e2d1['markDeletion'](_0x394ed8['model']['createRangeOn'](_0x550b76));const _0x40d3a5=_0x4cebe9['isBlockImage'](_0x394a8b);_0x53b456(_0x55cef3),_0x394a8b=_0x4cebe9['getClosestSelectedImageElement'](_0x394ed8['model']['document']['selection']),_0x550b76=_0x1fbe57['getCaptionFromImageModelElement'](_0x394a8b),_0x34e2d1['markInsertion'](_0x394ed8['model']['createRangeOn'](_0x550b76),_0x40d3a5?null:'imageCaption');});}),_0x34e2d1['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x47709f));const _0x4d47da=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2e7fd8(_0x180dc2,_0x3a2b90){const _0x1ea497=_0x4d47da['findIndex'](({type:_0x1d5aaa,subType:_0x2d253a})=>_0x180dc2['type']==_0x1d5aaa&&_0x180dc2['subType']==_0x2d253a),_0x2ec63e=_0x4d47da['findIndex'](({type:_0x5c07fc,subType:_0x51f5af})=>_0x3a2b90['type']==_0x5c07fc&&_0x3a2b90['subType']==_0x51f5af);if(_0x1ea497<0x0||_0x2ec63e<0x0)return!0x1;const _0x2eaf3e=_0x180dc2['getFirstRange'](),_0xb6d918=_0x3a2b90['getFirstRange']();if((0x0==_0x1ea497||0x1==_0x1ea497)&&0x2==_0x2ec63e&&_0x2eaf3e['isIntersecting'](_0xb6d918))return!0x0;if(0x2==_0x1ea497&&0x3==_0x2ec63e){const _0x494401=_0x34e2d1['_findSuggestions'](_0x2eaf3e,'insertion')['filter'](({suggestion:_0x37e4c6,meta:_0x518954})=>_0x518954['isOwn']&&'convertInlineImageToBlock'==_0x37e4c6['subType']);if(_0x494401['length']>0x1&&_0xb6d918['end']['isEqual'](_0x2eaf3e['start']))return!0x0;if(0x1==_0x494401['length']&&(_0x2eaf3e['start']['isEqual'](_0xb6d918['end'])||_0x2eaf3e['end']['isEqual'](_0xb6d918['start'])))return!0x0;}if(0x3==_0x1ea497&&0x3==_0x2ec63e&&_0x2eaf3e['start']['isBefore'](_0xb6d918['start'])){const _0x57fccd=_0x2eaf3e['end']['nodeAfter'],_0x13be74=_0xb6d918['start']['nodeBefore'];return _0x4cebe9['isBlockImage'](_0x57fccd)&&_0x57fccd===_0x13be74;}return!0x1;}function _0x47709f(_0x218e0a,_0x3e1f41){return _0x2e7fd8(_0x218e0a,_0x3e1f41)?[_0x218e0a,_0x3e1f41]:_0x2e7fd8(_0x3e1f41,_0x218e0a)?[_0x3e1f41,_0x218e0a]:null;}_0x394ed8['plugins']['has']('ImageResize')&&(_0x34e2d1['enableDefaultAttributesIntegration']('resizeImage'),_0x34e2d1['registerBlockAttribute']('resizedWidth'),_0x34e2d1['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0xfb77e6,'FORMAT_IMAGE_SIZE'))),_0x394ed8['plugins']['has']('ImageTextAlternativeEditing')&&(_0x34e2d1['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x34e2d1['registerBlockAttribute']('alt')),_0x394ed8['plugins']['has']('PictureEditing')&&(_0x34e2d1['registerBlockAttribute']('sources'),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x312511=>{if('attribute'!=_0x312511['type'])return;const {data:_0xd5b62f}=_0x312511;return _0xd5b62f&&'sources'==_0xd5b62f['key']?{'type':'format','content':''}:void 0x0;})),_0x394ed8['plugins']['has']('ImageSizeAttributes')&&(_0x34e2d1['registerBlockAttribute']('width'),_0x34e2d1['registerBlockAttribute']('height'),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x46f205=>{if('attribute'!=_0x46f205['type'])return;const {data:_0x5d878a}=_0x46f205;return!_0x5d878a||'width'!=_0x5d878a['key']&&'height'!=_0x5d878a['key']?void 0x0:{'type':'format','content':''};})),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x4b3041=>{if(!!_0x4d47da['find'](({type:_0x5b9986,subType:_0x1e3372})=>_0x4b3041['type']==_0x5b9986&&_0x4b3041['subType']==_0x1e3372))return _0x4b3041['previous']?{}:void 0x0;}),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0xef5aa2=>{if('insertion'==_0xef5aa2['type']||'deletion'==_0xef5aa2['type']){const _0x241069=_0xef5aa2['getContainedElement']();if(_0x241069&&_0x241069['is']('element','caption'))return{'type':'insertion'==_0xef5aa2['type']?'addObject':'removeObject','element':_0x241069,'quantity':0x1};}}),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x287f3d=>'formatBlock'==_0x287f3d['type']&&'convertInlineImageToBlock'==_0x287f3d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x287f3d['type']&&'convertBlockImageToInline'==_0x287f3d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x34e2d1['descriptionFactory']['registerDescriptionCallback'](_0x461a2a=>{if('attribute'!=_0x461a2a['type'])return;const {data:_0x3b7a08}=_0x461a2a;if(!_0x3b7a08||'alt'!=_0x3b7a08['key'])return;const _0x2c0bba=_0x3b7a08['newValue'];return _0x2c0bba?{'type':'format','content':c(_0xfb77e6,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2c0bba+'\x22')}:{'type':'format','content':c(_0xfb77e6,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c8c17=this['editor'],_0x348e36=_0x5c8c17['locale'];_0x5c8c17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e51e0=>{if('formatBlock'!=_0x4e51e0['type']&&'formatInline'!=_0x4e51e0['type'])return;const {data:_0x41b14b}=_0x4e51e0;if(_0x41b14b){if('imageTextAlternative'==_0x41b14b['commandName']){const _0x43b6dd=_0x41b14b['commandParams'][0x0]['newValue'];return _0x43b6dd?{'type':'format','content':c(_0x348e36,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x43b6dd+'\x22')}:{'type':'format','content':c(_0x348e36,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x41b14b['commandName']){const _0x2e02f6=_0x41b14b['commandParams'][0x0]['width'];return _0x2e02f6?{'type':'format','content':c(_0x348e36,'*Set\x20image\x20width:*\x20%0',_0x2e02f6)}:{'type':'format','content':c(_0x348e36,'*Reset\x20image\x20width*')};}}});}}class at extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5521f8=this['editor']['locale'],_0x44de12=this['editor']['plugins']['get']('TrackChangesEditing');_0x44de12['enableDefaultAttributesIntegration']('replaceImageSource'),_0x44de12['registerBlockAttribute']('src'),_0x44de12['descriptionFactory']['registerDescriptionCallback'](_0x1b3a9a=>{if('attribute'!=_0x1b3a9a['type'])return;const {data:_0x441296}=_0x1b3a9a;return _0x441296&&'src'==_0x441296['key']?_0x441296['newValue']&&_0x441296['oldValue']?{'type':'format','content':c(_0x5521f8,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ba2b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ba2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ba2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ba2b5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ba2b5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x481d36=this['editor'],_0x1e7f50=_0x481d36['locale'];_0x481d36['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25860b=>{if('formatBlock'!=_0x25860b['type']&&'formatInline'!=_0x25860b['type'])return;const {data:_0x18f1b0}=_0x25860b;if(!_0x18f1b0||'replaceImageSource'!=_0x18f1b0['commandName'])return;return{'type':'format','content':c(_0x1e7f50,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x483067{['afterInit'](){const _0x334148=this['editor'];if(!_0x334148['plugins']['has']('ImageStyleEditing'))return;const _0x5014d5=_0x334148['plugins']['get']('TrackChangesEditing'),_0x330711=_0x334148['plugins']['get']('ImageUtils'),_0x3fe2dd={};_0x5014d5['enableCommand']('imageStyle',(_0x2f439f,_0x5e5817)=>{const _0x1040ba=_0x334148['plugins']['get']('Users')['me'],_0x3d4e72=_0x334148['commands']['get']('imageStyle');let _0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),_0x1d69eb=_0x334148['model']['createRangeOn'](_0x420e33),_0x35b530=_0x3d4e72['value'];if(_0x35b530==_0x5e5817['value'])return;const _0x134a68={'commandName':'imageStyle','commandParams':[_0x5e5817],'formatGroupId':_0x20de28()};_0x334148['model']['change'](()=>{if(_0x5014d5['getSuggestions']()['filter'](_0xb30df7=>_0xb30df7['isInContent']&&_0x1040ba==_0xb30df7['author']&&('formatBlock'==_0xb30df7['type']||'formatInline'==_0xb30df7['type'])&&('imageStylePreApply'==_0xb30df7['subType']||'imageStylePostApply'==_0xb30df7['subType'])&&_0xb30df7['getFirstRange']()['isEqual'](_0x1d69eb))['forEach'](_0xa5cdae=>_0x5014d5['discardSuggestion'](_0xa5cdae['head'])),_0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),_0x1d69eb=_0x334148['model']['createRangeOn'](_0x420e33),_0x3d4e72['refresh'](),_0x334148['commands']['get']('imageTypeInline')['refresh'](),_0x334148['commands']['get']('imageTypeBlock')['refresh'](),_0x35b530=_0x3d4e72['value'],_0x35b530!=_0x5e5817['value'])return _0x330711['isInlineImage'](_0x420e33)&&_0x3d4e72['shouldConvertImageType'](_0x5e5817['value'],_0x420e33)?(_0x2f439f({..._0x5e5817,'setImageSizes':!0x1}),_0x420e33=_0x330711['getClosestSelectedImageElement'](_0x334148['model']['document']['selection']),void _0x5014d5['markBlockFormat'](_0x420e33,{..._0x134a68,'commandReversedParams':[{'value':_0x35b530||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x330711['isBlockImage'](_0x420e33)?_0x5014d5['markBlockFormat'](_0x420e33,_0x134a68,[],'imageStylePostApply'):_0x5014d5['markInlineFormat'](_0x1d69eb,_0x134a68,'imageStylePostApply'));});});for(const _0x37a434 of _0x334148['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x3fe2dd[_0x37a434['name']]=_0x37a434['title']['toLowerCase']();_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x2dd6c4])=>{_0x330711['setImageNaturalSizeAttributes'](_0x2dd6c4['getContainedElement']());}),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x50d619,_0x2f8fe0)=>{_0x5014d5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x50d619,{'commandName':_0x2f8fe0['commandName'],'commandParams':_0x2f8fe0['commandReversedParams']});}),_0x5014d5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x57251b,_0x3813c8){if(_0x1d269a(_0x57251b,_0x3813c8))return[_0x57251b,_0x3813c8];if(_0x1d269a(_0x3813c8,_0x57251b))return[_0x3813c8,_0x57251b];return null;});const _0x18824f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d269a(_0x3404f3,_0x2c2e40){const _0xd8095c=_0x18824f['findIndex'](({type:_0x28d3dd,subType:_0x435736})=>_0x3404f3['type']==_0x28d3dd&&_0x3404f3['subType']==_0x435736),_0x413b71=_0x18824f['findIndex'](({type:_0x3cfb91,subType:_0x113fac})=>_0x2c2e40['type']==_0x3cfb91&&_0x2c2e40['subType']==_0x113fac);if(_0xd8095c<0x0||_0x413b71<0x0)return!0x1;const _0x40a689=_0x3404f3['getFirstRange'](),_0x39e841=_0x2c2e40['getFirstRange']();if((0x0==_0xd8095c||0x1==_0xd8095c)&&0x2==_0x413b71&&_0x40a689['isIntersecting'](_0x39e841))return!0x0;if(0x2==_0xd8095c&&0x3==_0x413b71){const _0x38d279=_0x5014d5['_findSuggestions'](_0x40a689,'insertion')['filter'](({suggestion:_0x153e2e,meta:_0x26242e})=>_0x26242e['isOwn']&&'convertInlineImageToBlock'==_0x153e2e['subType']);if(_0x38d279['length']>0x1&&_0x39e841['end']['isEqual'](_0x40a689['start']))return!0x0;if(0x1==_0x38d279['length']&&(_0x40a689['start']['isEqual'](_0x39e841['end'])||_0x40a689['end']['isEqual'](_0x39e841['start'])))return!0x0;}if(0x3==_0xd8095c&&0x3==_0x413b71&&_0x40a689['start']['isBefore'](_0x39e841['start'])){const _0x361ca1=_0x40a689['end']['nodeAfter'],_0x57a578=_0x39e841['start']['nodeBefore'];return _0x330711['isBlockImage'](_0x361ca1)&&_0x361ca1===_0x57a578;}return!0x1;}_0x334148['model']['document']['registerPostFixer'](()=>{let _0x1d6dd9=!0x1;const _0x400141=Array['from'](_0x334148['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e595f,data:_0x5dd9f0}of _0x400141){const {group:_0x35f6f2,type:_0x4a5092,subType:_0x485862,id:_0x236176}=_0x5014d5['_splitMarkerName'](_0x3e595f);if('suggestion'==_0x35f6f2&&_0x5014d5['hasSuggestion'](_0x236176)){if('formatBlock'==_0x4a5092&&('imageStylePreApply'==_0x485862||'imageStylePostApply'==_0x485862)){const _0x37ebd9=_0x5014d5['getSuggestion'](_0x236176);if(_0x5dd9f0['newRange']){const _0x447678=_0x37ebd9['getFirstRange']()['getContainedElement']();if(_0x330711['isBlockImage'](_0x447678))continue;_0x5014d5['discardSuggestion'](_0x37ebd9),_0x1d6dd9=!0x0;}}if('insertion'==_0x4a5092&&'imageCaption'==_0x485862&&!_0x5dd9f0['newRange']){const _0x3d3ed4=_0x5014d5['getSuggestion'](_0x236176);_0x3d3ed4['next']&&_0x3d3ed4['next']['isInContent']&&(_0x5014d5['discardSuggestion'](_0x3d3ed4['next']),_0x1d6dd9=!0x0);}}}return _0x1d6dd9;}),this['_registerLegacyDescription'](_0x3fe2dd);}['_registerLegacyDescription'](_0x838e6b){const _0x1f31b7=this['editor'],_0x18e31a=_0x1f31b7['locale'];_0x1f31b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x600b66=>{if('formatBlock'!=_0x600b66['type']&&'formatInline'!=_0x600b66['type'])return;const {data:_0x1f7c5b}=_0x600b66;if(!_0x1f7c5b||'imageStyle'!=_0x1f7c5b['commandName'])return;const _0x3d5779=_0x1f7c5b['commandParams'][0x0]['value'];return _0x2ddfd5('side'===_0x3d5779?c(_0x18e31a,'FORMAT_SIDE_IMAGE'):_0x838e6b[_0x3d5779]||_0x3d5779);function _0x2ddfd5(_0x2963eb){return{'type':'format','content':c(_0x18e31a,'*Format:*\x20%0',_0x2963eb)};}});}}class ut extends _0x483067{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xcc2be8){super(_0xcc2be8),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x391a02=this['editor'],_0x5cd95d=_0x391a02['commands']['get']('importWord'),_0x2c77dc=_0x391a02['commands']['get']('trackChanges');_0x5cd95d&&(_0x5cd95d['on']('execute',(_0x5f54e6,[,_0x539b4e])=>{this['_trackChangesValueDuringImport']=_0x2c77dc['value'],_0x539b4e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x5cd95d,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x5cd95d,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2c77dc['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x391a02['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x395cba,_0x3a70c2){const {suggestions:_0x6e0401}=_0x3a70c2,_0x556046=this['editor']['commands']['get']('trackChanges'),_0x5c0ddd=_0x556046['value'];this['_trackChangesValueDuringImport']!==_0x5c0ddd&&(_0x556046['execute'](),this['_trackChangesExecuted']=!0x0),_0x6e0401&&_0x6e0401['forEach'](({id:_0x22f734,type:_0x746116,author:_0xceea2f,created_at:_0x2cd206})=>{const _0x394c93={'id':_0x22f734,'type':_0x746116,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xceea2f,'createdAt':_0x2cd206?new Date(_0x2cd206):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x394c93);});}}class ft extends _0x483067{['afterInit'](){const _0x46a0df=this['editor'],_0x10fe27=_0x46a0df['plugins']['get']('TrackChangesEditing');if(_0x46a0df['plugins']['has']('IndentEditing')&&(_0x10fe27['enableCommand']('indent'),_0x10fe27['enableCommand']('outdent')),_0x46a0df['plugins']['has']('IndentBlock')){for(const _0x100981 of['indentBlock','outdentBlock'])_0x10fe27['enableDefaultAttributesIntegration'](_0x100981);}const _0x548407=_0x46a0df['locale'];_0x10fe27['registerBlockAttribute']('blockIndent'),_0x10fe27['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x548407,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9ad2be=this['editor'],_0xfd7d92=_0x9ad2be['locale'],_0x29cc43=_0x9ad2be['plugins']['get']('TrackChangesEditing');_0x29cc43['descriptionFactory']['registerDescriptionCallback'](_0x20c151=>{if('formatBlock'!=_0x20c151['type'])return;const {data:_0x298257}=_0x20c151;if(!_0x298257)return;if('indentBlock'!=_0x298257['commandName']&&'outdentBlock'!=_0x298257['commandName'])return;const _0x26819e=_0x20c151['getItems']()[0x0],_0x4fa295=_0x29cc43['descriptionFactory']['getItemLabel'](_0x26819e);return'indentBlock'==_0x298257['commandName']?{'type':'format','content':c(_0xfd7d92,'*Indent:*\x20%0',_0x4fa295)}:'outdentBlock'==_0x298257['commandName']?{'type':'format','content':c(_0xfd7d92,'*Outdent:*\x20%0',_0x4fa295)}:void 0x0;});}}class ht extends _0x483067{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x483067{['afterInit'](){const _0x1b78aa=this['editor'];if(!_0x1b78aa['plugins']['has']('LinkEditing'))return;const _0x3ed3d1=_0x1b78aa['plugins']['get']('TrackChangesEditing'),_0x47423f=_0x1b78aa['commands']['get']('link');_0x3ed3d1['enableDefaultAttributesIntegration']('link'),_0x3ed3d1['enableDefaultAttributesIntegration']('unlink'),_0x3ed3d1['registerInlineAttribute']('linkHref');for(const _0x10cef0 of _0x47423f['manualDecorators'])_0x3ed3d1['registerInlineAttribute'](_0x10cef0['id']),_0x3ed3d1['descriptionFactory']['registerAttributeLabel'](_0x10cef0['id'],'link\x20('+_0x10cef0['label']['toLowerCase']()+')');_0x3ed3d1['descriptionFactory']['registerDescriptionCallback'](_0x3a5a9b=>{if('attribute'!=_0x3a5a9b['type'])return;const {data:_0x125264}=_0x3a5a9b;if(!_0x125264||'linkHref'!=_0x125264['key'])return;const _0x2d8aa2=_0x125264['newValue'],_0x400db0=_0x1b78aa['locale'];return{'type':'format','content':null==_0x2d8aa2?c(_0x400db0,'*Remove\x20link*'):c(_0x400db0,'*Set\x20link:*\x20%0','\x22'+_0x2d8aa2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16f320=this['editor'],_0x255b5e=_0x16f320['locale'];_0x16f320['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9415b2=>{if('formatInline'!=_0x9415b2['type'])return;const {data:_0x14a76f}=_0x9415b2;if(_0x14a76f){if('link'==_0x14a76f['commandName']){const _0x1ddd6d=_0x14a76f['commandParams'][0x0];return{'type':'format','content':c(_0x255b5e,'*Set\x20link:*\x20%0','\x22'+_0x1ddd6d+'\x22')};}return'unlink'==_0x14a76f['commandName']?{'type':'format','content':c(_0x255b5e,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x483067{['afterInit'](){const _0x3b09d3=this['editor'],_0x544420=_0x3b09d3['locale'];if(!_0x3b09d3['plugins']['has']('LegacyListEditing'))return;const _0x3a807a=_0x3b09d3['plugins']['get']('TrackChangesEditing'),_0x489f86=_0x3b09d3['plugins']['has']('LegacyTodoListEditing');function _0x4e68b7(_0x6f2485){return()=>{const _0x11c9fb=_0x3b09d3['model']['document']['selection'],_0x54ed8b=_0x3b09d3['commands']['get'](_0x6f2485);if(_0x54ed8b['value'])return void _0x3b09d3['execute']('paragraph',{});const _0xb550f0=_0x6f2485['slice'](0x0,-0x4),_0x17815f=function(_0x367489,_0x243a62,_0x56d750){let _0xe7c93c=Array['from'](_0x367489)['filter'](_0x4cffa0=>function(_0xd63d2,_0x2b4d6f){return _0x2b4d6f['checkChild'](_0xd63d2['parent'],'listItem')&&!_0x2b4d6f['isObject'](_0xd63d2);}(_0x4cffa0,_0x56d750));_0xe7c93c=_0xe7c93c['filter'](_0x374b02=>!_0x374b02['is']('element','listItem')||_0x374b02['getAttribute']('listType')!=_0x243a62);const _0x595085=new Set();for(const _0x1e3f14 of _0xe7c93c)_0x1e3f14['is']('element','listItem')?_0x595085['add'](Le(_0x1e3f14)):_0x595085['add'](_0x1e3f14);return Array['from'](_0x595085);}(_0x11c9fb['getSelectedBlocks'](),_0xb550f0,_0x3b09d3['model']['schema']);_0x3b09d3['model']['change'](()=>{for(const _0x32b5cb of _0x17815f)_0x3a807a['markBlockFormat'](_0x32b5cb,{'commandName':_0x6f2485,'commandParams':[{'forceValue':!_0x54ed8b['value']}],'formatGroupId':'blockName'},Ee(_0x32b5cb));});};}function _0x23aeda(_0x56c6df){return()=>{const _0x558555=function(_0x37fc88){let _0x501bf5=Array['from'](_0x37fc88);const _0x409de9=_0x501bf5['findIndex'](_0x304a19=>'listItem'!=_0x304a19['name']);return _0x409de9>-0x1&&(_0x501bf5=_0x501bf5['slice'](0x0,_0x409de9)),_0x501bf5;}(_0x3b09d3['model']['document']['selection']['getSelectedBlocks']()),_0x40a34a=_0x3b09d3['model']['createRange'](_0x3b09d3['model']['createPositionAt'](_0x558555[0x0],'before'),_0x3b09d3['model']['createPositionAt'](_0x558555[_0x558555['length']-0x1],'end'));_0x3b09d3['model']['change'](()=>{_0x3a807a['markBlockFormat'](_0x40a34a,{'commandName':_0x56c6df,'commandParams':[],'formatGroupId':'listIndent'},function(_0x3fbdb4){const _0x521ae2=new Set();for(const _0x515652 of _0x3fbdb4){let _0x44295e=_0x515652['nextSibling'];for(;_0x44295e&&_0x44295e['getAttribute']('listIndent')>_0x515652['getAttribute']('listIndent');)_0x521ae2['add'](_0x44295e),_0x44295e=_0x44295e['nextSibling'];}return Array['from'](_0x521ae2);}(_0x558555));});};}_0x3a807a['enableCommand']('numberedList',_0x4e68b7('numberedList')),_0x3a807a['enableCommand']('bulletedList',_0x4e68b7('bulletedList')),_0x489f86&&_0x3a807a['enableCommand']('todoList',_0x4e68b7('todoList')),_0x3a807a['enableCommand']('indentList',_0x23aeda('indentList')),_0x3a807a['enableCommand']('outdentList',_0x23aeda('outdentList')),_0x489f86&&_0x3a807a['enableCommand']('checkTodoList',()=>{const _0x147871=_0x3b09d3['commands']['get']('checkTodoList'),_0x3374bf=Array['from'](_0x147871['_selectedElements']);_0x3374bf['filter'](_0x4e9fcd=>_0x4e9fcd['getAttribute']('todoListChecked')!=_0x147871['value']),_0x3b09d3['model']['change'](()=>{for(const _0x3a69a9 of _0x3374bf)_0x3a807a['markBlockFormat'](_0x3a69a9,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x147871['value']}]});});}),_0x3a807a['descriptionFactory']['registerElementLabel']('listItem',_0x21e534=>c(_0x544420,'ELEMENT_LIST_ITEM',_0x21e534)),_0x3a807a['descriptionFactory']['registerDescriptionCallback'](_0x574c7e=>{if('formatBlock'!=_0x574c7e['type']&&'formatInline'!=_0x574c7e['type'])return;const {data:_0x23832b}=_0x574c7e;if(_0x23832b){if('numberedList'==_0x23832b['commandName']||'bulletedList'==_0x23832b['commandName']||'todoList'==_0x23832b['commandName'])switch(_0x23832b['commandName']['replace']('List','')){case'bulleted':return _0x11cbc8(c(_0x544420,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x11cbc8(c(_0x544420,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x11cbc8(c(_0x544420,'ELEMENT_TODO_LIST'));}if('indentList'==_0x23832b['commandName'])return{'type':'format','content':c(_0x544420,'*Indent:*\x20%0',c(_0x544420,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x23832b['commandName'])return{'type':'format','content':c(_0x544420,'*Outdent:*\x20%0',c(_0x544420,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x23832b['commandName'])return _0x23832b['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x544420,'*Check\x20item*')}:{'type':'format','content':c(_0x544420,'*Uncheck\x20item*')};}function _0x11cbc8(_0x442c8a){return{'type':'format','content':c(_0x544420,'*Change\x20to:*\x20%0',_0x442c8a)};}});}}function Le(_0x383b74){const _0x23f7d4=_0x383b74['getAttribute']('listIndent');if(0x0==_0x23f7d4)return _0x383b74;let _0x52e3e8=_0x383b74;for(;_0x383b74['previousSibling']&&_0x383b74['previousSibling']['is']('element','listItem');){const _0x45ced4=_0x383b74['previousSibling']['getAttribute']('listIndent');if(_0x45ced4==_0x23f7d4)_0x52e3e8=_0x383b74['previousSibling'];else{if(_0x45ced4<_0x23f7d4)break;}_0x383b74=_0x383b74['previousSibling'];}return _0x52e3e8;}function Ee(_0x3399c3){const _0x1081b4=[];if(_0x3399c3['is']('element','listItem')&&_0x3399c3['getAttribute']('listIndent')>0x0){let _0x565d20=_0x3399c3['nextSibling'];for(;_0x565d20&&'listItem'==_0x565d20['name']&&_0x565d20['getAttribute']('listIndent')==_0x3399c3['getAttribute']('listIndent');)_0x1081b4['push'](_0x565d20),_0x565d20=_0x565d20['nextSibling'];}return _0x1081b4;}class Q extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x7e5e69=this['editor']['config']['get']('list.properties'),_0x46ffd4=this['editor']['plugins']['get']('TrackChangesEditing');_0x7e5e69['styles']&&_0x46ffd4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x7e5e69['reversed']&&_0x46ffd4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x7e5e69['startIndex']&&_0x46ffd4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x46ffd4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x23c651,_0x32bf4b={}){const _0x395c01=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20eea0=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x395c01['markMultiRangeBlockFormat'](_0x20eea0,{'commandName':'listStyle','commandParams':[{'type':_0x32bf4b['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x135bba,_0x3e42c8={}){const _0x5498cb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22ffe8=this['_getSuggestionBlocks'](_0x58f317=>_0x58f317['is']('element','listItem')&&'numbered'===_0x58f317['getAttribute']('listType'));if(_0x22ffe8['length']<0x1)return;const _0x34763b=_0x22ffe8['map'](_0x14a2d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x14a2d2,'before'),this['editor']['model']['createPositionAt'](_0x14a2d2,0x0)));this['editor']['model']['change'](()=>{_0x5498cb['markMultiRangeBlockFormat'](_0x34763b,{'commandName':'listReversed','commandParams':[{'reversed':_0x3e42c8['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x9407a5,_0x4e57e1={}){const _0x3e062e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x676a45=this['_getSuggestionBlocks'](_0x12bd0e=>_0x12bd0e['is']('element','listItem')&&'numbered'===_0x12bd0e['getAttribute']('listType'));if(_0x676a45['length']<0x1)return;const _0x173910=_0x676a45['map'](_0x5cb37f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5cb37f,'before'),this['editor']['model']['createPositionAt'](_0x5cb37f,0x0)));this['editor']['model']['change'](()=>{_0x3e062e['markMultiRangeBlockFormat'](_0x173910,{'commandName':'listStart','commandParams':[{'startIndex':_0x4e57e1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x543239){if('formatBlock'!=_0x543239['type']&&'formatInline'!=_0x543239['type'])return;const _0x4d8887=this['editor']['locale'],{data:_0x2ade89}=_0x543239;if(!_0x2ade89)return;let _0x5d8bd3,_0x520bb0;switch(_0x2ade89['commandName']){case'listStyle':_0x5d8bd3='*Change\x20to:*\x20%0',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3,c(_0x4d8887,this['_getTranslationKeyForListStyle'](_0x2ade89['commandParams'][0x0]['type'])))};break;case'listReversed':_0x5d8bd3=_0x2ade89['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3)};break;case'listStart':_0x5d8bd3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x520bb0={'type':'format','content':c(_0x4d8887,_0x5d8bd3,_0x2ade89['commandParams'][0x0]['startIndex'])};}return _0x520bb0;}['_getSuggestionBlocksForListStyle'](){const _0x1e8431=this['editor']['plugins']['get']('LegacyListUtils');let _0x19c4d0=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x19c4d0[0x0]?.['is']('element','listItem')&&_0x19c4d0['unshift'](..._0x1e8431['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x19c4d0[_0x19c4d0['length']-0x1]?.['is']('element','listItem')&&_0x19c4d0['push'](..._0x1e8431['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x19c4d0=[...new Set(_0x19c4d0)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x19c4d0=_0x19c4d0['filter'](_0x479db5=>_0x479db5['is']('element','listItem'))),_0x19c4d0;}['_getSuggestionBlocks'](_0x320909){const _0xe023b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x17ba9c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x320909)['map'](_0x4a6c1a=>{const _0x399d04=this['editor']['model']['createPositionAt'](_0x4a6c1a,0x0);return[..._0xe023b7['getSiblingNodes'](_0x399d04,'backward'),..._0xe023b7['getSiblingNodes'](_0x399d04,'forward')];})['flat']();return _0x17ba9c=[...new Set(_0x17ba9c)],_0x17ba9c;}['_getTranslationKeyForListStyle'](_0x15fcf8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x15fcf8)||'default')['toUpperCase']()+'_LIST_'+_0x15fcf8['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x483067{['afterInit'](){const _0x34b286=this['editor'];if(!_0x34b286['plugins']['has']('MediaEmbedEditing'))return;const _0x1aa6e9=_0x34b286['plugins']['get']('TrackChangesEditing'),_0x3ed1a3=_0x34b286['locale'];_0x1aa6e9['enableCommand']('mediaEmbed'),_0x1aa6e9['descriptionFactory']['registerElementLabel']('media',_0x211493=>c(_0x3ed1a3,'ELEMENT_MEDIA',_0x211493)),_0x34b286['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d267b,{writer:_0x26d358,options:_0x4aab14})=>{if(_0x4aab14['showSuggestionHighlights'])return _0x26d358['createEmptyElement']('div');},'converterPriority':'high'}),_0x34b286['data']['downcastDispatcher']['on']('attribute:url:media',(_0x40494c,_0x6bb83d,_0x37b716)=>{_0x37b716['options']['showSuggestionHighlights']&&_0x40494c['stop']();},{'priority':'high'});}}class pt extends _0x483067{['afterInit'](){const _0x3ca7e8=this['editor'];_0x3ca7e8['plugins']['has']('MentionEditing')&&_0x3ca7e8['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x483067{['afterInit'](){const _0x110160=this['editor'];if(!_0x110160['plugins']['has']('MergeFieldsEditing'))return;const _0x4899c8=_0x110160['plugins']['get']('TrackChangesEditing'),_0x48cf16=_0x110160['locale'];_0x4899c8['enableCommand']('insertMergeField'),_0x4899c8['enableCommand']('insertMergeFieldBlock'),_0x4899c8['enableCommand']('insertMergeFieldImage'),_0x4899c8['descriptionFactory']['registerElementLabel']('mergeField',_0x1cb194=>c(_0x48cf16,'ELEMENT_MERGE_FIELD',_0x1cb194)),_0x4899c8['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x26c791=>c(_0x48cf16,'ELEMENT_MERGE_FIELD',_0x26c791)),_0x4899c8['descriptionFactory']['registerDescriptionCallback'](_0x230f35=>{if('insertion'!=_0x230f35['type']&&'deletion'!=_0x230f35['type'])return;const _0x31298d=_0x230f35['getContainedElement']();if(null==_0x31298d)return;const _0x5ab282=_0x110160['plugins']['get']('MergeFieldsEditing');let _0x285cda;switch(_0x5ab282['getMergeFieldType'](_0x31298d)){case null:return;case'image':{const _0x5aa10d=_0x5ab282['unwrapAffixes'](_0x31298d['getAttribute']('src'));_0x285cda=_0x5ab282['getLabel'](_0x5aa10d)||_0x5aa10d;break;}default:{const _0x4c106e=_0x31298d['getAttribute']('id');_0x285cda=_0x5ab282['getLabel'](_0x4c106e)||_0x4c106e;break;}}return'insertion'==_0x230f35['type']?{'type':'insertion','content':c(_0x48cf16,'*Insert:*\x20%0','\x22'+_0x285cda+'\x22\x20'+c(_0x48cf16,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x48cf16,'*Remove:*\x20%0','\x22'+_0x285cda+'\x22\x20'+c(_0x48cf16,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x483067{['afterInit'](){const _0x4e96a3=this['editor'],_0x1f2147=_0x4e96a3['plugins']['get']('TrackChangesEditing');_0x4e96a3['plugins']['has']('MultiLevelList')&&(_0x1f2147['enableDefaultAttributesIntegration']('multiLevelList'),_0x1f2147['registerBlockAttribute']('listMarkerStyle'),_0x1f2147['descriptionFactory']['registerDescriptionCallback'](_0x1a2dc4=>this['handleDescriptions'](_0x1a2dc4)));}['handleDescriptions'](_0x15de9c){const _0x50158e=this['editor']['locale'],{data:_0x4ce818}=_0x15de9c,_0x3d26bd={'type':'format','content':''};if(_0x4ce818&&'listMarkerStyle'==_0x4ce818['key']){if(!_0x4ce818['oldValue'])return{'type':'format','content':c(_0x50158e,'*Set\x20format:*\x20%0',c(_0x50158e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ce818['newValue']+')'};if(!_0x4ce818['newValue']){let _0x1177b5=_0x15de9c['head'];for(;_0x1177b5;){if(_0x1177b5['data']&&'listType'==_0x1177b5['data']['key']&&_0x1177b5['data']['newValue'])return _0x3d26bd;_0x1177b5=_0x1177b5['next'];}return{'type':'format','content':c(_0x50158e,'*Remove\x20format:*\x20%0',c(_0x50158e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4ce818['oldValue']+')'};}}}}class bt extends _0x483067{['afterInit'](){const _0x257842=this['editor'];if(!_0x257842['plugins']['has']('PageBreakEditing'))return;_0x257842['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f2e39=_0x257842['plugins']['get']('TrackChangesEditing'),_0x3f3021=_0x257842['locale'];_0x3f2e39['descriptionFactory']['registerElementLabel']('pageBreak',_0x1dcd3a=>c(_0x3f3021,'ELEMENT_PAGE_BREAK',_0x1dcd3a));}}class yt extends _0x483067{['afterInit'](){const _0x42eb7a=this['editor'];if(!_0x42eb7a['plugins']['has']('Paragraph'))return;const _0x443a44=_0x42eb7a['locale'],_0x3fc82c=_0x42eb7a['plugins']['get']('TrackChangesEditing');_0x3fc82c['descriptionFactory']['registerElementLabel']('paragraph',_0x2c4291=>c(_0x443a44,'ELEMENT_PARAGRAPH',_0x2c4291)),_0x3fc82c['enableDefaultAttributesIntegration']('paragraph'),_0x3fc82c['enableCommand']('insertParagraph'),_0x42eb7a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x42eb7a),{'priority':'highest'}),_0x42eb7a['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x17a81b,_0x26f8dd,_0x3ca950)=>{_0x3ca950['options']['showSuggestionHighlights']&&nr(_0x42eb7a,{'showActiveMarker':!0x1})(_0x17a81b,_0x26f8dd,_0x3ca950);},{'priority':'highest'});const _0x25c636=_0x3fc82c['descriptionFactory'];_0x25c636['registerDescriptionCallback'](_0x37d2ba=>{if('insertion'!==_0x37d2ba['type'])return;const {start:_0x56865e,end:_0x393c59}=_0x37d2ba['getFirstRange']();if(!_0x56865e['isTouching'](_0x393c59)||!_0x56865e['nodeAfter'])return;const _0x141940=_0x42eb7a['model']['schema'],_0x4c4696=_0x56865e['nodeAfter'];return _0x141940['isBlock'](_0x4c4696)&&!_0x141940['isLimit'](_0x4c4696)&&_0x141940['checkChild'](_0x4c4696,'$text')?{'type':'insertion','content':c(_0x443a44,'*Insert:*\x20%0',_0x25c636['getItemLabel'](_0x4c4696,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x230b2b=this['editor'],_0xdb3ff7=_0x230b2b['locale'];_0x230b2b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5f2d14=>{if('formatBlock'!=_0x5f2d14['type'])return;const {data:_0x3069fd}=_0x5f2d14;return _0x3069fd&&'paragraph'==_0x3069fd['commandName']?{'type':'format','content':c(_0xdb3ff7,'*Change\x20to:*\x20%0',c(_0xdb3ff7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x25d4ed,{showActiveMarker:_0x59ba84=!0x0}={}){return(_0x23e21b,_0x3e5f01,_0x2016ba)=>{const _0x753418=_0x25d4ed['plugins']['get']('TrackChangesEditing'),_0x3b05ab=_0x3e5f01['markerRange']['start'],_0x7569cb=_0x3e5f01['markerRange']['end'],_0x4d0d8f=_0x25d4ed['model']['schema'];if(!_0x3b05ab['isTouching'](_0x7569cb)||!_0x3b05ab['nodeAfter'])return;const _0xfd1f5a=_0x3b05ab['nodeAfter'];if(_0x4d0d8f['isBlock'](_0xfd1f5a)&&!_0x4d0d8f['isLimit'](_0xfd1f5a)&&_0x4d0d8f['checkChild'](_0xfd1f5a,'$text')){if(!_0x2016ba['consumable']['consume'](_0x3e5f01['markerRange'],_0x23e21b['name']))return;const {id:_0x5dc448,authorId:_0x13813c}=_0x753418['_splitMarkerName'](_0x3e5f01['markerName']),_0x47aa54=_0x2016ba['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x5dc448,'data-author-id':_0x13813c}),_0x15eb20=_0x2016ba['mapper']['toViewPosition'](_0x7569cb);_0x59ba84&&_0x753418['activeMarkers']['includes'](_0x3e5f01['markerName'])&&_0x2016ba['writer']['addClass']('ck-suggestion-marker--active',_0x47aa54),_0x2016ba['writer']['insert'](_0x15eb20,_0x47aa54),_0x2016ba['mapper']['bindElementToMarker'](_0x47aa54,_0x3e5f01['markerName']);}};}class jt extends _0x483067{['afterInit'](){const _0x51e5ee=this['editor'];_0x51e5ee['commands']['get']('replaceSource')&&_0x51e5ee['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x483067{['afterInit'](){const _0x145f56=this['editor'];if(!_0x145f56['plugins']['has']('RemoveFormatEditing'))return;_0x145f56['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488b48=this['editor'];_0x488b48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aa7a1=>{if('formatBlock'!=_0x1aa7a1['type']&&'formatInline'!=_0x1aa7a1['type'])return;const {data:_0x4a0af1}=_0x1aa7a1;return _0x4a0af1&&'removeFormat'==_0x4a0af1['commandName']?{'type':'format','content':c(_0x488b48['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x483067{['afterInit'](){const _0x2b7112=this['editor'];if(!_0x2b7112['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5537b8=_0x2b7112['plugins']['get']('TrackChangesEditing');_0x5537b8['enableCommand']('goToPreviousRestrictedEditingException'),_0x5537b8['enableCommand']('goToNextRestrictedEditingException');const _0x2c7e7a=_0x2b7112['plugins']['get']('RestrictedEditingModeEditing');_0x2c7e7a['enableCommand']('trackChanges'),_0x2c7e7a['enableCommand']('acceptSuggestion'),_0x2c7e7a['enableCommand']('discardSuggestion'),_0x2c7e7a['enableCommand']('acceptAllSuggestions'),_0x2c7e7a['enableCommand']('discardAllSuggestions'),_0x2c7e7a['enableCommand']('acceptSelectedSuggestions'),_0x2c7e7a['enableCommand']('discardSelectedSuggestions');}}class It extends _0x483067{['afterInit'](){const _0x40e61a=this['editor'];if(!_0x40e61a['plugins']['has']('ShiftEnter'))return;const _0x56b869=_0x40e61a['plugins']['get']('TrackChangesEditing');_0x56b869['enableCommand']('shiftEnter'),_0x40e61a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x40e61a),{'priority':'high'}),_0x40e61a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x40e61a),{'priority':'high'}),_0x40e61a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x582866,_0x176f49,_0x4550fc)=>{_0x4550fc['options']['showSuggestionHighlights']&&je(_0x40e61a,{'showActiveMarker':!0x1})(_0x582866,_0x176f49,_0x4550fc);}),_0x56b869['descriptionFactory']['registerElementLabel']('softBreak',_0x1737e4=>c(_0x40e61a['locale'],'ELEMENT_LINE_BREAK',_0x1737e4));}}function je(_0x4b43c1,{showActiveMarker:_0x2e6795=!0x0}={}){return(_0x386d00,_0x107ea8,_0x58a29b)=>{const _0x1aa1d7=_0x4b43c1['plugins']['get']('TrackChangesEditing');if(!_0x58a29b['consumable']['test'](_0x107ea8['markerRange'],_0x386d00['name']))return;const _0x33ea3b=_0x4b43c1['model'];for(const _0x3e58a4 of _0x107ea8['markerRange']['getItems']()){if(!_0x3e58a4['is']('element','softBreak'))continue;const _0x54c72d='deletion'==_0x107ea8['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1441de,authorId:_0x58a7fd}=_0x1aa1d7['_splitMarkerName'](_0x107ea8['markerName']),_0x2a74c6=_0x58a29b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54c72d,'data-suggestion':_0x1441de,'data-author-id':_0x58a7fd}),_0x3b5fe9=_0x58a29b['mapper']['toViewPosition'](_0x33ea3b['createPositionBefore'](_0x3e58a4));_0x2e6795&&_0x1aa1d7['activeMarkers']['includes'](_0x107ea8['markerName'])&&_0x58a29b['writer']['addClass']('ck-suggestion-marker--active',_0x2a74c6),_0x58a29b['writer']['insert'](_0x3b5fe9,_0x2a74c6),_0x58a29b['mapper']['bindElementToMarker'](_0x2a74c6,_0x107ea8['markerName']);}};}class _t extends _0x483067{['afterInit'](){const _0x589fc4=this['editor'],_0x503746=_0x589fc4['model'],_0x472982=_0x589fc4['locale'];if(!_0x589fc4['plugins']['has']('StandardEditingModeEditing'))return;const _0x35d014=_0x589fc4['plugins']['get']('TrackChangesEditing'),_0x286cc9='restrictedEditingException',_0x42d961=_0x589fc4['commands']['get'](_0x286cc9);_0x35d014['enableCommand'](_0x286cc9,(_0x56d95a,_0x3c7a34={})=>{const _0x1ad865=_0x503746['document']['selection'];if(_0x1ad865['isCollapsed'])return void _0x56d95a(_0x3c7a34);const _0x413f06=void 0x0!==_0x3c7a34['forceValue']?_0x3c7a34['forceValue']:!_0x42d961['value'];_0x503746['change'](()=>{const _0x103e34=Array['from'](_0x1ad865['getRanges']());for(const _0x59135c of _0x103e34){const _0x193dcf=_0x413f06?[_0x59135c]:io(_0x286cc9,_0x59135c,_0x503746);for(const _0x2c834f of _0x193dcf)_0x35d014['markInlineFormat'](_0x2c834f,{'commandName':_0x286cc9,'commandParams':[{'forceValue':_0x413f06}]});}});}),_0x35d014['descriptionFactory']['registerDescriptionCallback'](_0x1c10c3=>{if('formatBlock'!=_0x1c10c3['type']&&'formatInline'!=_0x1c10c3['type'])return;const {data:_0x109869}=_0x1c10c3;return _0x109869&&_0x109869['commandName']==_0x286cc9?_0x109869['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x472982,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x472982,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x483067{['afterInit'](){const _0x4aa436=this['editor'];if(!_0x4aa436['plugins']['has']('Style')||!_0x4aa436['plugins']['has']('DataSchema'))return;const _0x4d5c5e=_0x4aa436['plugins']['get']('TrackChangesEditing'),_0x3f2b3d=_0x4aa436['locale'],_0x2f248c=_0x4aa436['config']['get']('style')||{},_0x3e2af7=_0x4aa436['plugins']['get']('GeneralHtmlSupport'),_0x2450b1=_0x4aa436['plugins']['get']('StyleUtils')['normalizeConfig'](_0x4aa436['plugins']['get']('DataSchema'),_0x2f248c['definitions']);_0x4d5c5e['enableDefaultAttributesIntegration']('style');const _0x10bbbb=new Set();for(const _0x24ead9 of _0x2450b1['block']){const _0x2f10cd=_0x3e2af7['getGhsAttributeNameForElement'](_0x24ead9['element']);_0x10bbbb['add'](_0x2f10cd);}const _0x26ffc9=new Set();for(const _0x1f090b of _0x2450b1['inline']){const _0x1e53d9=_0x3e2af7['getGhsAttributeNameForElement'](_0x1f090b['element']);_0x26ffc9['add'](_0x1e53d9);for(const _0x55021e of _0x1f090b['ghsAttributes'])_0x26ffc9['add'](_0x55021e);}for(const _0x4053b3 of _0x10bbbb)_0x4d5c5e['registerBlockAttribute'](_0x4053b3),_0x4d5c5e['descriptionFactory']['registerAttributeLabel'](_0x4053b3,c(_0x3f2b3d,'FORMAT_STYLE'));for(const _0x11dd88 of _0x26ffc9)_0x4d5c5e['registerInlineAttribute'](_0x11dd88),_0x4d5c5e['descriptionFactory']['registerAttributeLabel'](_0x11dd88,c(_0x3f2b3d,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x501e04=this['editor'],_0x2dc28a=_0x501e04['locale'];_0x501e04['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f27d3=>{if('formatBlock'!=_0x2f27d3['type']&&'formatInline'!=_0x2f27d3['type'])return;const {data:_0x337fc0}=_0x2f27d3;return _0x337fc0&&'style'===_0x337fc0['commandName']?_0x337fc0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2dc28a,'*Set\x20format:*\x20%0',_0x337fc0['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x2dc28a,'*Remove\x20format:*\x20%0',_0x337fc0['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x483067{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x22382f){super(_0x22382f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xd17675=this['editor'],_0xa39f01=_0xd17675['model']['document']['selection'];if(!_0xd17675['plugins']['has']('TableEditing'))return;const _0x590ac0=_0xd17675['locale'],_0x57e030=_0xd17675['plugins']['get']('TrackChangesEditing'),_0x23b037=_0xd17675['plugins']['get']('TableUtils');_0x57e030['descriptionFactory']['registerElementLabel']('table',_0x2f5864=>c(_0x590ac0,'ELEMENT_TABLE',_0x2f5864)),this['_setupColumnsRowsFixing'](),_0x57e030['enableCommand']('insertTable'),_0x57e030['enableCommand']('selectTableRow'),_0x57e030['enableCommand']('selectTableColumn');for(const _0x17f604 of['insertTableRowAbove','insertTableRowBelow']){const _0x310be8=_0xd17675['commands']['get'](_0x17f604);_0x57e030['enableCommand'](_0x17f604,_0x3bb182=>{_0xd17675['model']['change'](_0x27dc42=>{_0x3bb182();const _0x9b6e79='above'===_0x310be8['order'],_0x3c8689=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x54f0b9=_0x23b037['getRowIndexes'](_0x3c8689),_0x190f6f=_0x9b6e79?_0x54f0b9['first']-0x1:_0x54f0b9['last']+0x1,_0x521b28=_0x3c8689[0x0]['findAncestor']('table'),_0x93cf4c=_0x23b037['createTableWalker'](_0x521b28,{'startRow':_0x190f6f,'endRow':_0x190f6f}),_0x33c37c=Array['from'](_0x93cf4c)['map'](_0x53ba41=>_0x27dc42['createRangeOn'](_0x53ba41['cell']));_0x57e030['markMultiRangeInsertion'](_0x33c37c,'tableRow');});});}for(const _0x33013d of['insertTableColumnLeft','insertTableColumnRight']){const _0x40cc7d=_0xd17675['commands']['get'](_0x33013d);_0x57e030['enableCommand'](_0x33013d,_0xeeefda=>{_0xd17675['model']['change'](_0x3b4a1c=>{_0xeeefda();const _0x5bace0='left'===_0x40cc7d['order'],_0x47ee5f=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x3534d5=_0x23b037['getColumnIndexes'](_0x47ee5f),_0x5399f4=_0x5bace0?_0x3534d5['first']-0x1:_0x3534d5['last']+0x1,_0x3ee72a=_0x47ee5f[0x0]['findAncestor']('table'),_0x3a7bd7=_0x23b037['createTableWalker'](_0x3ee72a,{'startRow':0x0,'column':_0x5399f4,'includeAllSlots':!0x1}),_0x19c578=Array['from'](_0x3a7bd7)['map'](_0x53dea7=>_0x3b4a1c['createRangeOn'](_0x53dea7['cell']));_0x57e030['markMultiRangeInsertion'](_0x19c578,'tableColumn');});});}for(const _0x284e58 of['removeTableRow','removeTableColumn']){const _0x29637c=_0x284e58['substr'](0xb),_0x2035ad=_0x29637c['toLowerCase'](),_0x4a4465=_0x2035ad['substr'](0x0,0x3)+'span',_0x44f88d='table'+_0x29637c,_0x422d6b='min'+_0x29637c,_0x4db621='max'+_0x29637c;_0x57e030['enableCommand'](_0x284e58,()=>{_0xd17675['model']['change'](_0x91f3d7=>{const _0x3839d4=_0x23b037['getSelectionAffectedTableCells'](_0xa39f01),_0x5f6662=_0x3839d4[0x0]['findAncestor']('table');let _0x2a1042;if('removeTableRow'==_0x284e58){const _0x22d6c3=_0x23b037['getRowIndexes'](_0x3839d4);_0x2a1042={'startRow':_0x22d6c3['first'],'endRow':_0x22d6c3['last'],'includeAllSlots':!0x0};}else{const _0x42ba20=_0x23b037['getColumnIndexes'](_0x3839d4);_0x2a1042={'startColumn':_0x42ba20['first'],'endColumn':_0x42ba20['last'],'includeAllSlots':!0x0};}const _0x456a09=_0x23b037['createTableWalker'](_0x5f6662,_0x2a1042),_0x197fe4=Array['from'](_0x456a09)['map'](({cell:_0x2c628b})=>_0x2c628b),_0x50fce8=xe(_0x197fe4['filter'](_0x7a8c1f=>_0x7a8c1f['hasAttribute'](_0x4a4465))),_0x50c6ce=xe(_0x197fe4['filter'](_0x1996a6=>!_0x1996a6['hasAttribute'](_0x4a4465)))['map'](_0x4345e8=>_0x91f3d7['createRangeOn'](_0x4345e8)),_0x1276c9=_0x57e030['markMultiRangeDeletion'](_0x50c6ce,_0x44f88d);if(_0x1276c9&&('tableRow'==_0x1276c9['subType']||'tableColumn'==_0x1276c9['subType'])){const _0x46aeba=this['_getSuggestionCoords'](_0x1276c9);for(const _0x3b44a9 of _0x50fce8){const _0x538b74=_0x91f3d7['createRangeOn'](_0x3b44a9),_0x41c96e=_0x23b037['getCellLocation'](_0x3b44a9),_0x2231a1=_0x3b44a9['getAttribute'](_0x4a4465)-0x1,_0x111322=_0x46aeba[_0x422d6b],_0x188f1=_0x46aeba[_0x4db621];_0x111322<=_0x41c96e[_0x2035ad]&&_0x41c96e[_0x2035ad]+_0x2231a1<=_0x188f1&&_0x1276c9['addRange'](_0x538b74);}}});});}function _0x687061(_0x5a1fb1){const _0x592d1b=Array['from'](_0xa39f01['getRanges']())['map'](_0x812dc2=>_0x3bdca8['fromRange'](_0x812dc2));_0xd17675['model']['change'](_0x2334f0=>{const _0x3a8ce8=_0x2334f0['batch'];_0x5a1fb1=_0x5a1fb1['filter'](_0x493e11=>'$graveyard'!=_0x493e11['root']['rootName']),_0x2334f0['setSelection'](_0x5a1fb1),_0xd17675['commands']['get']('removeTableRow')['refresh'](),_0xd17675['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xd17675['model']['enqueueChange'](()=>{_0xd17675['model']['enqueueChange'](_0x3a8ce8,_0x53085e=>{const _0x214999=_0x592d1b['filter'](_0x3f9263=>'$graveyard'!=_0x3f9263['root']['rootName']);_0x214999['length']>0x0&&_0x53085e['setSelection'](_0x214999);for(const _0x50fb59 of _0x592d1b)_0x50fb59['detach']();});});});}function _0x11b236(_0x3e5659){_0xd17675['model']['change'](_0x546f50=>{const _0x441590=Array['from'](_0xa39f01['getRanges']())['map'](_0x242e31=>_0x3bdca8['fromRange'](_0x242e31)),_0x2528c1=[];for(const _0x10044a of _0x3e5659)for(const _0x540c1b of _0x10044a['getItems']({'shallow':!0x0}))_0x2528c1['push'](_0x540c1b);for(const _0x5dfefa of _0x2528c1)'$graveyard'!=_0x5dfefa['root']['rootName']&&(_0x546f50['setSelection'](_0x546f50['createPositionAt'](_0x5dfefa,0x0)),_0xd17675['commands']['get']('removeTableColumn')['refresh'](),_0xd17675['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5a1315=_0x441590['filter'](_0x107505=>'$graveyard'!=_0x107505['root']['rootName']);_0x5a1315['length']>0x0&&_0x546f50['setSelection'](_0x5a1315);for(const _0x476827 of _0x441590)_0x476827['detach']();});}function _0x53199c(_0x1e61cf,_0x4801bd){return _0x4801bd['every'](_0x339f92=>_0x1e61cf['some'](_0xa4393d=>_0xa4393d['end']['isEqual'](_0x339f92['start'])||_0x339f92['end']['isEqual'](_0xa4393d['start'])));}function _0x504e4b(_0x2bc920,_0x44b645){return!_0x2bc920['some'](_0x2e68d8=>_0x44b645['some'](_0x5ed57a=>_0x2e68d8['isIntersecting'](_0x5ed57a)))&&_0x2bc920['some'](_0x4c4549=>_0x44b645['some'](_0x678a17=>_0x4c4549['end']['isTouching'](_0x678a17['start'])));}_0xd17675['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4c6677,_0x4278c8,_0x1dfef8)=>{if(!_0x1dfef8['options']['showSuggestionHighlights'])return;const _0x4588f3=_0x4278c8['item'];if(!_0x4588f3||!_0x4588f3['is']('element','tableCell'))return;const _0x2fba9e=_0x1dfef8['mapper']['toViewElement'](_0x4588f3);if(_0x2fba9e){const {id:_0xd381b1,authorId:_0x3fc1da}=_0x57e030['_splitMarkerName'](_0x4278c8['markerName']);_0x48b275(_0x2fba9e,_0x1dfef8['writer'],(_0x4fb10b,_0x1d4075,_0x1e2189)=>{_0x1e2189['addClass'](_0x49c6d9(_0x1d4075['classes']),_0x4fb10b),_0x1e2189['setAttribute']('data-suggestion-id',_0xd381b1,_0x4fb10b),_0x1e2189['setAttribute']('data-author-id',_0x3fc1da,_0x4fb10b);},(_0x135e66,_0x568adf,_0xdb3f56)=>{_0xdb3f56['removeClass'](_0x49c6d9(_0x568adf['classes']),_0x135e66),_0xdb3f56['removeAttribute']('data-suggestion-id',_0x135e66),_0xdb3f56['removeAttribute']('data-author-id',_0x135e66);});}},{'priority':'highest'}),_0x57e030['descriptionFactory']['registerDescriptionCallback'](_0x535fc6=>{if('insertion'!=_0x535fc6['type']&&'deletion'!=_0x535fc6['type'])return;const _0x4a2ddd=_0x535fc6['getContainedElement']();if(null!=_0x4a2ddd&&_0x4a2ddd['is']('element','table')){if('insertion'==_0x535fc6['type']){const _0x571f7b=_0x535fc6['getItems']()['filter'](_0x44d41e=>_0x44d41e['is']('$textProxy'))['map'](_0x159535=>_0x159535['data']);if(_0x571f7b['length'])return{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x571f7b['join']('\x20')+'\x22'))};}if('deletion'==_0x535fc6['type']){const _0x42f013=_0x535fc6['getItems']()['filter'](_0x494bab=>_0x494bab['is']('$textProxy'))['map'](_0x542627=>_0x542627['data']);if(_0x42f013['length'])return{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x42f013['join']('\x20')+'\x22'))};}}}),_0x57e030['descriptionFactory']['registerDescriptionCallback'](_0x55ae11=>{if('tableRow'==_0x55ae11['subType']){const _0x360b7c=_0x55ae11['getItems']()['filter'](_0x438877=>_0x438877['is']('$textProxy'))['map'](_0x27c2c9=>_0x27c2c9['data']),_0x5d9031=this['_getSuggestionCoords'](_0x55ae11),_0xbe800f=_0x5d9031['maxRow']-_0x5d9031['minRow']+0x1;if('insertion'==_0x55ae11['type'])return _0x360b7c['length']?{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbe800f,'\x22'+_0x360b7c['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW',_0xbe800f))};if('deletion'==_0x55ae11['type'])return _0x360b7c['length']?{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xbe800f,'\x22'+_0x360b7c['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_ROW',_0xbe800f))};}if('tableColumn'==_0x55ae11['subType']){const _0xf66842=_0x55ae11['getItems']()['filter'](_0x4a3ffd=>_0x4a3ffd['is']('$textProxy'))['map'](_0x5c0bbc=>_0x5c0bbc['data']),_0x14f1b5=this['_getSuggestionCoords'](_0x55ae11),_0x3ad16c=_0x14f1b5['maxColumn']-_0x14f1b5['minColumn']+0x1;if('insertion'==_0x55ae11['type'])return _0xf66842['length']?{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ad16c,'\x22'+_0xf66842['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x590ac0,'*Insert:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN',_0x3ad16c))};if('deletion'==_0x55ae11['type'])return _0xf66842['length']?{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3ad16c,'\x22'+_0xf66842['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x590ac0,'*Remove:*\x20%0',c(_0x590ac0,'ELEMENT_TABLE_COLUMN',_0x3ad16c))};}}),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x687061),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x687061),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11b236),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11b236),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x53199c),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x53199c),_0x57e030['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x504e4b),_0x57e030['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x504e4b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x55832d=this['editor'],_0x5a07d9=_0x55832d['model']['document']['selection'];return(_0x6c35e7,_0x23ea99)=>{_0x55832d['model']['change'](_0x5363e2=>{const {commandName:_0x4c476b,commandParams:_0x496328}=_0x23ea99;let _0x5e0fee=_0x6c35e7[0x0]['end']['nodeBefore'];_0x496328&&_0x496328[0x0]&&!0x1===_0x496328[0x0]['forceValue']&&(_0x5e0fee=_0x6c35e7[0x0]['start']['nodeAfter']);const _0x2d12c3=_0x5363e2['createRangeIn'](_0x5e0fee);if('$graveyard'==_0x2d12c3['root']['rootName'])return;const _0x4cb762=Array['from'](_0x5a07d9['getRanges']())['map'](_0x549513=>_0x3bdca8['fromRange'](_0x549513));_0x5363e2['setSelection'](_0x2d12c3),_0x55832d['commands']['get'](_0x4c476b)['refresh'](),_0x496328['push']({'forceDefaultExecution':!0x0}),_0x55832d['execute'](_0x4c476b,..._0x496328);const _0x52838d=_0x4cb762['filter'](_0x47d93d=>'$graveyard'!=_0x47d93d['root']['rootName']);_0x52838d['length']>0x0&&_0x5363e2['setSelection'](_0x52838d);for(const _0x37c41c of _0x4cb762)_0x37c41c['detach']();});};}['_getCoordsForCells'](_0x1ef25b){const _0x36a307=this['editor']['plugins']['get']('TableUtils');let _0x1dfda4=Number['MAX_SAFE_INTEGER'],_0x414c5d=Number['MIN_SAFE_INTEGER'],_0x5d2ddc=Number['MAX_SAFE_INTEGER'],_0x3fdb7d=Number['MIN_SAFE_INTEGER'];for(const _0xd4123e of _0x1ef25b){if('$graveyard'==_0xd4123e['root']['rootName'])continue;const {row:_0x36a0b7,column:_0x5d7085}=_0x36a307['getCellLocation'](_0xd4123e),_0x323f24=_0xd4123e['hasAttribute']('rowspan')?_0xd4123e['getAttribute']('rowspan')-0x1:0x0,_0x1be35d=_0xd4123e['hasAttribute']('colspan')?_0xd4123e['getAttribute']('colspan')-0x1:0x0;_0x1dfda4=_0x36a0b7<_0x1dfda4?_0x36a0b7:_0x1dfda4,_0x414c5d=_0x36a0b7+_0x323f24>_0x414c5d?_0x36a0b7+_0x323f24:_0x414c5d,_0x5d2ddc=_0x5d7085<_0x5d2ddc?_0x5d7085:_0x5d2ddc,_0x3fdb7d=_0x5d7085+_0x1be35d>_0x3fdb7d?_0x5d7085+_0x1be35d:_0x3fdb7d;}return{'minRow':_0x1dfda4,'maxRow':_0x414c5d,'minColumn':_0x5d2ddc,'maxColumn':_0x3fdb7d};}['_setupColumnsRowsFixing'](){const _0x2a6420=this['editor'],_0x2a39dc=_0x2a6420['plugins']['get']('TrackChangesEditing'),_0x44ad37=_0x2a6420['plugins']['get']('TableUtils');_0x2a6420['model']['document']['on']('change:data',()=>{const _0x4dbb9c=Array['from'](_0x2a6420['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47b907,data:_0x5ea491}of _0x4dbb9c){const {group:_0x330524,id:_0x45ce77,subType:_0x3012c6}=_0x2a39dc['_splitMarkerName'](_0x47b907);if('suggestion'!=_0x330524)continue;if(null!=_0x5ea491['oldRange'])continue;const _0x3d8d41=_0x2a39dc['getSuggestion'](_0x45ce77);this['_tablePostFixingSubtypes']['includes'](_0x3012c6)&&this['_tableSuggestions']['add'](_0x3d8d41);}},{'priority':'low'});const _0x149d60=(_0x32c23f,_0x37be3f)=>{let _0xe38a34=!0x1;const _0x3fe33d=_0x37be3f['createRangeOn'](_0x32c23f),_0x609c1=_0x32c23f['findAncestor']('table'),_0x264129=_0x44ad37['getCellLocation'](_0x32c23f);for(const _0x492562 of this['_tableSuggestions']){const _0xa4a33c=_0x492562['subType'],_0x3df008=_0xa4a33c['startsWith']('tablePaste'),_0x475584=_0xa4a33c['substr'](_0x3df008?0xa:0x5),_0x29c74a=_0x475584['toLowerCase'](),_0x5c4d04=_0x29c74a['substr'](0x0,0x3)+'span',_0x275ac6='min'+_0x475584,_0x167090='max'+_0x475584;if(!_0x492562['isInContent'])continue;if(_0x609c1!=_0x492562['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x492562['isIntersectingWithRange'](_0x3fe33d))continue;const _0x51e925=_0x32c23f['hasAttribute'](_0x5c4d04)?_0x32c23f['getAttribute'](_0x5c4d04)-0x1:0x0,_0x3e8e40=this['_getSuggestionCoords'](_0x492562),_0x3ead48=_0x3e8e40[_0x275ac6],_0x54cd31=_0x3e8e40[_0x167090];_0x3ead48<=_0x264129[_0x29c74a]&&_0x264129[_0x29c74a]+_0x51e925<=_0x54cd31&&(_0x492562['addRange'](_0x3fe33d),_0xe38a34=!0x0);}return _0xe38a34;};_0x2a6420['model']['document']['registerPostFixer'](_0x13406b=>{let _0x3ac7c6=!0x1;for(const _0x460543 of _0x2a6420['model']['document']['differ']['getChanges']())if('insert'==_0x460543['type']){if('tableRow'==_0x460543['name']){for(const _0x506965 of _0x460543['position']['nodeAfter']['getChildren']())_0x3ac7c6=_0x3ac7c6||_0x149d60(_0x506965,_0x13406b);}else'tableCell'==_0x460543['name']&&(_0x3ac7c6=_0x3ac7c6||_0x149d60(_0x460543['position']['nodeAfter'],_0x13406b));}return _0x3ac7c6;});}['_getSuggestionCoords'](_0x5117da){return this['_getCoordsForCells'](_0x5117da['getRanges']()['map'](_0x1200b3=>_0x1200b3['start']['nodeAfter']));}}function xe(_0x5abf0c){return Array['from'](new Set(_0x5abf0c)['values']());}class Nt extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x40e677=this['editor'],_0x106b40=_0x40e677['model']['document']['selection'],_0x297d5a=_0x40e677['locale'];if(!_0x40e677['plugins']['has']('TableEditing'))return;const _0x5691cf=_0x40e677['plugins']['get']('TrackChangesEditing'),_0x3187af=_0x40e677['plugins']['get']('TableUtils'),_0x2a9d60=_0x40e677['plugins']['get'](Ct);_0x2a9d60['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5691cf['enableCommand']('mergeTableCells',()=>{const _0x53c739=_0x3187af['getSelectionAffectedTableCells'](_0x40e677['model']['document']['selection']);_0x40e677['model']['change'](()=>{_0x5691cf['markMultiRangeBlockFormat'](_0x53c739,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x40e677['commands']['get']('mergeTableCells')['on']('execute',(_0x3ff184,_0x260892)=>{_0x40e677['commands']['get']('trackChanges')['value']&&(_0x260892['length']>0x0&&_0x260892[_0x260892['length']-0x1]&&_0x260892[_0x260892['length']-0x1]['forceDefaultExecution']||_0x5691cf['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3ff184['stop']());},{'priority':'highest'});for(const _0x4ce06c of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x514eaa=_0x40e677['commands']['get'](_0x4ce06c);_0x5691cf['enableCommand'](_0x4ce06c,()=>{const _0x110a45=_0x40e677['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3948c9=>_0x3948c9['is']('element','tableCell')),_0x33e26c=_0x514eaa['value'];_0x40e677['model']['change'](()=>{_0x5691cf['markMultiRangeBlockFormat']([_0x110a45,_0x33e26c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x30bccd of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2f9bad=_0x40e677['commands']['get'](_0x30bccd);_0x5691cf['enableCommand'](_0x30bccd,()=>{const _0x3a0afe=_0x3187af['getSelectionAffectedTableCells'](_0x40e677['model']['document']['selection'])[0x0],_0x4bb7a0=_0x3a0afe['findAncestor']('table'),{column:_0x15c10f,row:_0x16e300}=_0x3187af['getCellLocation'](_0x3a0afe);let _0x2b0408=[];if('horizontally'==_0x2f9bad['direction']){const _0x1afa78=_0x3187af['createTableWalker'](_0x4bb7a0,{'startRow':_0x16e300,'endRow':_0x16e300,'includeAllSlots':!0x0});_0x2b0408=Array['from'](_0x1afa78)['map'](_0x379f86=>_0x379f86['cell']);}else{const _0xb54fa0=_0x3187af['createTableWalker'](_0x4bb7a0,{'column':_0x15c10f,'includeAllSlots':!0x0});_0x2b0408=Array['from'](_0xb54fa0)['map'](_0x225d78=>_0x225d78['cell']);}_0x40e677['model']['change'](_0xafc3c0=>{_0x5691cf['markBlockFormat'](_0xafc3c0['createRangeOn'](_0x3a0afe),{'commandName':_0x30bccd,'commandParams':[]},_0x2b0408,_0x30bccd);});});}_0x5691cf['descriptionFactory']['registerDescriptionCallback'](_0x24717d=>{if('formatBlock'!=_0x24717d['type']&&'formatInline'!=_0x24717d['type'])return;const {data:_0x37dea6}=_0x24717d;return _0x37dea6&&'mergeTableCells'==_0x37dea6['commandName']?{'type':'format','content':c(_0x297d5a,'*Merge\x20cells*')}:void 0x0;}),_0x5691cf['descriptionFactory']['registerDescriptionCallback'](_0x11b5a2=>{if('formatBlock'!=_0x11b5a2['type']&&'formatInline'!=_0x11b5a2['type'])return;const {data:_0x564f41}=_0x11b5a2;return _0x564f41?'splitTableCellVertically'==_0x564f41['commandName']?{'type':'format','content':c(_0x297d5a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x564f41['commandName']?{'type':'format','content':c(_0x297d5a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3dcd8d=_0x2a9d60['_acceptFormatSuggestionCallbackFactory']();for(const _0x277ed9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x277ed9,'accept',_0x3dcd8d);for(const _0x36448d of['splitTableCellVertically','splitTableCellHorizontally'])_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36448d,'accept',_0x3dcd8d);_0x5691cf['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x8b336=>{_0x40e677['model']['change'](_0x5ebf6a=>{const _0x2893b6=Array['from'](_0x106b40['getRanges']())['map'](_0x146531=>_0x3bdca8['fromRange'](_0x146531));_0x5ebf6a['setSelection'](_0x8b336),_0x40e677['commands']['get']('mergeTableCells')['refresh'](),_0x40e677['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x424bb8=_0x2893b6['filter'](_0xa37c59=>'$graveyard'!=_0xa37c59['root']['rootName']);_0x424bb8['length']>0x0&&_0x5ebf6a['setSelection'](_0x424bb8);for(const _0x4978cf of _0x2893b6)_0x4978cf['detach']();});});for(const _0x2c4d1f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1fec7a=_0x40e677['commands']['get'](_0x2c4d1f);_0x1fec7a['on']('set:isEnabled',(_0x52eeb8,_0x4d0228,_0x226d5d)=>{if(_0x226d5d){const _0x2a83fb=_0x40e677['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x238e1d=>_0x238e1d['is']('element','tableCell'));this['_areMergableCells'](_0x1fec7a['value'],_0x2a83fb)||(_0x52eeb8['return']=!0x1,_0x52eeb8['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4c1efa=this['editor']['commands']['get']('mergeTableCells'),_0x5b83be=this['editor']['plugins']['get']('TableUtils');if(!_0x4c1efa['isEnabled'])return!0x1;const _0x1d940f=_0x5b83be['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x15f695 of _0x1d940f)for(const _0x453967 of _0x1d940f)if(_0x15f695!=_0x453967&&!this['_areMergableCells'](_0x15f695,_0x453967))return!0x1;return!0x0;}['_areMergableCells'](_0x112282,_0x3d53dc){const _0x41f462=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1daad2=this['editor']['model']['createRangeOn'](_0x112282),_0x494841=this['editor']['model']['createRangeOn'](_0x3d53dc),_0xbf3791=new Set(),_0x3988f1=new Set();for(const _0x3848cf of _0x41f462['getSuggestions']())if(('insertion'==_0x3848cf['type']||'deletion'==_0x3848cf['type']||'mergeTableCells'==_0x3848cf['subType'])&&_0x3848cf['isInContent']){for(const _0xba8091 of _0x3848cf['getRanges']())_0xba8091['containsRange'](_0x1daad2,!0x0)&&_0xbf3791['add'](_0x3848cf['type']+':'+_0x3848cf['author']['id']),_0xba8091['containsRange'](_0x494841,!0x0)&&_0x3988f1['add'](_0x3848cf['type']+':'+_0x3848cf['author']['id']);}if(_0xbf3791['size']!=_0x3988f1['size'])return!0x1;for(const _0x267569 of _0xbf3791)if(!_0x3988f1['has'](_0x267569))return!0x1;return!0x0;}}class Dt extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x3234ae=this['editor'];if(!_0x3234ae['plugins']['has']('TableEditing'))return;const _0x163a3e=_0x3234ae['locale'],_0x22389c=_0x3234ae['plugins']['get']('TrackChangesEditing');_0x22389c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x22389c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x22389c['registerBlockAttribute']('headingRows'),_0x22389c['registerBlockAttribute']('headingColumns'),_0x22389c['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x163a3e,'FORMAT_HEADER_ROW')),_0x22389c['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x163a3e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x307e97=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b13af=this['editor']['plugins']['get']('TableUtils'),_0x390a10=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x15b315({showActiveMarker:_0x580d88=!0x0,setDataAttribute:_0x144806=!0x0}={}){return(_0x63ea0d,_0x5ee691,_0x2ef389)=>{const {type:_0x4b0889,id:_0x473012}=_0x307e97['_splitMarkerName'](_0x5ee691['markerName']),_0x38dfdc=_0x307e97['getSuggestion'](_0x473012),_0x5b75fc=_0x38dfdc['data'];if('formatBlock'!=_0x38dfdc['type']||!_0x5b75fc||'setTableColumnHeader'!=_0x5b75fc['commandName'])return;if(_0x5ee691['item'])return void _0x63ea0d['stop']();if(!_0x2ef389['consumable']['consume'](_0x5ee691['markerRange'],_0x63ea0d['name']))return;const _0x217ed3=_0x5ee691['markerRange']['start']['nodeAfter'],_0x11b85f=_0x5ee691['markerRange']['end']['nodeBefore'],_0x33fd15=_0x217ed3['parent']['parent'],{column:_0x121a95}=_0x2b13af['getCellLocation'](_0x217ed3),{column:_0x355066}=_0x2b13af['getCellLocation'](_0x11b85f);for(let _0x2fc68c=_0x121a95;_0x2fc68c<=_0x355066;_0x2fc68c++){const _0x40fa2f=_0x2b13af['createTableWalker'](_0x33fd15,{'column':_0x2fc68c,'includeAllSlots':!0x1});for(const _0x2e8dc5 of _0x40fa2f){const _0x308f73=_0x2e8dc5['cell'],_0x48373e=_0x2ef389['mapper']['toViewElement'](_0x308f73);_0x2ef389['writer']['addClass']('ck-suggestion-marker-'+_0x4b0889,_0x48373e),_0x144806&&_0x2ef389['writer']['setAttribute']('data-suggestion',_0x473012,_0x48373e),_0x2ef389['mapper']['bindElementToMarker'](_0x48373e,_0x5ee691['markerName']),_0x580d88&&(_0x307e97['activeMarkers']['includes'](_0x5ee691['markerName'])?_0x2ef389['writer']['addClass']('ck-suggestion-marker--active',_0x48373e):_0x2ef389['writer']['removeClass']('ck-suggestion-marker--active',_0x48373e));}}};}_0x307e97['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x390a10),_0x307e97['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x390a10),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x15b315(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x113e8c,_0x2623b9,_0x31e914)=>{_0x31e914['options']['showSuggestionHighlights']&&_0x15b315({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x113e8c,_0x2623b9,_0x31e914);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4a5e57,_0x5e40e6,_0x52f021)=>{const {type:_0x69dbc1,id:_0x439ca4}=_0x307e97['_splitMarkerName'](_0x5e40e6['markerName']),_0xe23898=_0x307e97['getSuggestion'](_0x439ca4),_0x351ed3=_0xe23898['data'];if('formatBlock'!=_0xe23898['type']||!_0x351ed3||'setTableColumnHeader'!=_0x351ed3['commandName'])return;const _0x35f2f8=_0x52f021['mapper']['markerNameToElements'](_0x5e40e6['markerName']);if(_0x35f2f8){for(const _0xf5af17 of _0x35f2f8)_0x52f021['writer']['removeClass']('ck-suggestion-marker-'+_0x69dbc1,_0xf5af17),_0x52f021['writer']['removeClass']('ck-suggestion-marker--active',_0xf5af17),_0x52f021['writer']['removeAttribute']('data-suggestion',_0xf5af17),_0x52f021['mapper']['unbindElementFromMarkerName'](_0xf5af17,_0x5e40e6['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x159980=this['editor'],_0x49f21a=_0x159980['locale'];function _0xf9ffa5(_0x385c1c){return{'type':'format','content':c(_0x49f21a,'*Format:*\x20%0',_0x385c1c)};}_0x159980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x298dce=>{if('formatBlock'!=_0x298dce['type'])return;const {data:_0x285005}=_0x298dce;if(_0x285005){if('setTableRowHeader'==_0x285005['commandName']){const _0x1081aa=_0x285005['commandParams'][0x0]['forceValue'];return _0xf9ffa5(c(_0x49f21a,_0x1081aa?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x285005['commandName']){const _0x24ac5f=_0x285005['commandParams'][0x0]['forceValue'];return _0xf9ffa5(c(_0x49f21a,_0x24ac5f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x483067{['afterInit'](){const _0x4f3f94=this['editor'],_0x311660=_0x4f3f94['locale'],_0xd2fa3f=_0x4f3f94['plugins']['get']('TrackChangesEditing');function _0x5bc89d(_0x4bf6d4){return{'type':'format','content':''+c(_0x311660,'*Set\x20table\x20type:*\x20%0',_0x4bf6d4)};}_0x4f3f94['plugins']['has']('TableLayout')&&(_0xd2fa3f['enableCommand']('insertTableLayout'),_0xd2fa3f['enableDefaultAttributesIntegration']('tableType'),_0xd2fa3f['registerBlockAttribute']('tableType'),_0xd2fa3f['descriptionFactory']['registerElementLabel'](_0x1ab8b1=>_0x1ab8b1['is']('element','table')&&'layout'===_0x1ab8b1['getAttribute']('tableType'),_0x4c49e3=>c(_0x311660,'ELEMENT_LAYOUT_TABLE',_0x4c49e3)),_0xd2fa3f['descriptionFactory']['registerDescriptionCallback'](_0xb427c=>{const {data:_0x293796}=_0xb427c;if(_0x293796&&'tableType'==_0x293796['key'])switch(_0x293796['newValue']){case'layout':return _0x5bc89d(c(_0x311660,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5bc89d(c(_0x311660,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x32f465=>[_0x32f465,null]));class $t extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x36167e=this['editor'];if(!_0x36167e['plugins']['has']('TableClipboard'))return;const _0x537ae6=_0x36167e['plugins']['get']('TrackChangesEditing'),_0x30c50b=_0x36167e['plugins']['get']('TableUtils'),_0x23ea31=_0x36167e['plugins']['get'](Ct),_0x51505=_0x36167e['plugins']['get']('TableClipboard'),_0x26b425=_0x36167e['plugins']['get']('TableSelection'),_0x552c94=_0x36167e['plugins']['get'](_0x1ec869);_0x23ea31['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x36167e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x36167e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1ae91f=null,_0x57fb0e=!0x1;_0x552c94['on']('contentInsertion',(_0x2b647d,_0x59425d)=>{_0x57fb0e='paste'===_0x59425d['method'];}),_0x36167e['model']['on']('insertContent',(_0x4c7b7a,_0x1abec7)=>{if(!_0x57fb0e&&null===_0x26b425['getSelectedTableCells']())return;const [_0x1a9813,_0x108ec2]=_0x1abec7,_0x582893=_0x1abec7[_0x1abec7['length']-0x1];_0x582893&&_0x582893['forceDefaultExecution']||_0x537ae6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x13d081,_0x35d943,_0xa425c8,_0x543041,_0x10d606){if(_0x35d943&&!_0x35d943['is']('documentSelection'))return!0x1;const _0x187bac=_0x10d606['getTableIfOnlyTableInContent'](_0x13d081,_0xa425c8);if(!_0x187bac||!He(_0x187bac,void 0x0,_0x543041))return!0x1;const _0x36efb9=_0x543041['getSelectionAffectedTableCells'](_0xa425c8['document']['selection']);if(!_0x36efb9['length'])return!0x1;const _0x3eee31=_0x36efb9[0x0]['findAncestor']('table'),_0x3a447a=_0x543041['getRowIndexes'](_0x36efb9),_0x20d6cb=_0x543041['getColumnIndexes'](_0x36efb9),_0x57aedd={'startRow':_0x3a447a['first'],'endRow':_0x3a447a['last'],'startColumn':_0x20d6cb['first'],'endColumn':_0x20d6cb['last']};return 0x1==_0x36efb9['length']&&(_0x57aedd['endRow']+=_0x543041['getRows'](_0x187bac)-0x1,_0x57aedd['endColumn']+=_0x543041['getColumns'](_0x187bac)-0x1),He(_0x3eee31,_0x57aedd,_0x543041);}(_0x1a9813,_0x108ec2,_0x36167e['model'],_0x30c50b,_0x51505)&&(_0x4c7b7a['stop'](),_0x1ae91f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x36167e['model']['change'](()=>{_0x36167e['model']['insertContent'](_0x1abec7[0x0],_0x1abec7[0x1],_0x1abec7[0x2],{'forceDefaultExecution':!0x0});const _0x29c6c0=_0x20de28(),{rowInsertionRanges:_0x46a117,columnInsertionRanges:_0x9e9268,insertionRanges:_0x2b4da7,deletionRanges:_0x58dd78,cells:_0x2bc333}=_0x1ae91f;_0x46a117['length']&&_0x537ae6['markMultiRangeInsertion'](_0x46a117,'tablePasteRow',{'tablePasteChainId':_0x29c6c0}),_0x9e9268['length']&&_0x537ae6['markMultiRangeInsertion'](_0x9e9268,'tablePasteColumn',{'tablePasteChainId':_0x29c6c0}),_0x2b4da7['length']&&(_0x537ae6['markMultiRangeInsertion'](_0x2b4da7,'tablePaste',{'tablePasteChainId':_0x29c6c0,'skipNestingCheck':!0x0}),_0x2b4da7['forEach'](_0x417031=>_0x417031['detach']?.())),_0x58dd78['length']&&(_0x537ae6['markMultiRangeDeletion'](_0x58dd78,'tablePaste',{'tablePasteChainId':_0x29c6c0,'skipNestingCheck':!0x0}),_0x58dd78['forEach'](_0x283ac0=>_0x283ac0['detach']?.()));const _0x39bb0b=_0x537ae6['markMultiRangeBlockFormat'](_0x2bc333['map'](({element:_0x9b4842})=>_0x9b4842),{'formatGroupId':_0x20de28()},[],'tablePasteCell',{'tablePasteChainId':_0x29c6c0});if(_0x39bb0b){const _0x479778=_0x39bb0b['getMarkers'](),_0xd03622=[];for(const {element:_0x527272,attributes:_0x131655}of _0x2bc333){if(!_0x131655)continue;const _0x4685b6=_0x36167e['model']['createRangeOn'](_0x527272),_0x23b54c=_0x479778['find'](_0x28f843=>_0x28f843['getRange']()['isEqual'](_0x4685b6));_0x23b54c&&_0xd03622['push']([_0x23b54c['name'],_0x131655]);}_0xd03622['length']&&_0x39bb0b['setAttribute']('markerAttributes',Object['fromEntries'](_0xd03622));}_0x1ae91f=null;}));},{'priority':_0x1626e5['high']+0xa}),_0x552c94['on']('contentInsertion',()=>{_0x57fb0e=!0x1;},{'priority':'lowest'}),_0x36167e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4671d2,_0x236b65)=>{const [_0x5927de,_0x2e72fc,,_0x966f05]=_0x236b65;if(!_0x1ae91f)return;_0x4671d2['stop']();const _0x5e587e=_0x5927de['cell'],_0x41aa8b=_0x2e72fc,_0x4525a1=De(_0x5e587e),_0x174ef2=De(_0x41aa8b);_0x4671d2['return']=_0x5e587e;let _0x3e97d7=null,_0x205cdb=null;if(_0x174ef2||_0x4525a1){if(_0x4525a1&&!_0x174ef2){_0x966f05['remove'](_0x5e587e['getChild'](0x0));for(const _0x10dd96 of Array['from'](_0x41aa8b['getChildren']()))_0x966f05['insert'](_0x10dd96,_0x5e587e,'end');const _0x34ed3d=_0x1ae91f['rowInsertionIndexes']['includes'](_0x5927de['row']),_0x5c3a52=_0x1ae91f['columnInsertionIndexes']['includes'](_0x5927de['column']);_0x34ed3d||_0x5c3a52||(_0x3e97d7=_0x3bdca8['fromRange'](_0x966f05['createRangeIn'](_0x5e587e)));}else _0x174ef2&&!_0x4525a1&&(_0x205cdb=_0x966f05['createRangeIn'](_0x5e587e));}else{const _0x34cc62=_0x966f05['createElement']('tableCellSuggestion'),_0x185869=_0x966f05['createElement']('tableCellSuggestion');_0x966f05['wrap'](_0x966f05['createRangeIn'](_0x5e587e),_0x185869),_0x966f05['insert'](_0x34cc62,_0x5e587e,0x0);for(const _0x236b31 of Array['from'](_0x41aa8b['getChildren']()))_0x966f05['insert'](_0x236b31,_0x34cc62,'end');_0x3e97d7=_0x3bdca8['fromRange'](_0x966f05['createRangeOn'](_0x34cc62)),_0x205cdb=_0x3bdca8['fromRange'](_0x966f05['createRangeOn'](_0x185869));}const _0xa4762e=Array['from'](_0x41aa8b['getAttributes']())['filter'](([_0x175c81])=>Oe['includes'](_0x175c81));_0x1ae91f['cells']['push']({'element':_0x5e587e,'attributes':_0xa4762e['length']?Object['fromEntries'](_0xa4762e):null}),_0x3e97d7&&_0x1ae91f['insertionRanges']['push'](_0x3e97d7),_0x205cdb&&_0x1ae91f['deletionRanges']['push'](_0x205cdb);},{'priority':'high'}),_0x30c50b['on']('insertColumns',(_0x546b0c,_0x5cb46a)=>{const [_0x2620c0,_0x355a28={}]=_0x5cb46a;if(!_0x1ae91f)return;const _0x3a62e2=_0x355a28['at']||0x0,_0x49ac17=_0x355a28['columns']||0x1;_0x1ae91f['columnInsertionIndexes']=new Array(_0x49ac17)['fill'](_0x3a62e2)['map']((_0x21addb,_0x31f464)=>_0x21addb+_0x31f464);for(const {cell:_0x56079f}of _0x30c50b['createTableWalker'](_0x2620c0,{'startColumn':_0x3a62e2,'endColumn':_0x3a62e2+_0x49ac17-0x1}))_0x1ae91f['columnInsertionRanges']['push'](_0x36167e['model']['createRangeOn'](_0x56079f));},{'priority':'low'}),_0x30c50b['on']('insertRows',(_0x5322f3,_0x47d889)=>{const [_0x4f056c,_0x34110e={}]=_0x47d889;if(!_0x1ae91f)return;const _0x406d4a=_0x34110e['at']||0x0,_0x592624=_0x34110e['rows']||0x1;_0x1ae91f['rowInsertionIndexes']=new Array(_0x592624)['fill'](_0x406d4a)['map']((_0x516f4d,_0x4dfa65)=>_0x516f4d+_0x4dfa65);for(const {cell:_0x47fe35}of _0x30c50b['createTableWalker'](_0x4f056c,{'startRow':_0x406d4a,'endRow':_0x406d4a+_0x592624-0x1}))_0x1ae91f['rowInsertionRanges']['push'](_0x36167e['model']['createRangeOn'](_0x47fe35));},{'priority':'low'}),_0x537ae6['descriptionFactory']['registerDescriptionCallback'](_0x4d395c=>{if(_0x4d395c['subType']&&_0x4d395c['subType']['startsWith']('tablePaste'))return _0x4d395c['previous']?{}:{'type':'insertion','content':c(_0x36167e['locale'],'*Replace\x20table\x20cells*')};});const _0x362864=()=>!0x1;for(const _0x1f97d1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion',_0x1f97d1,'join',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('deletion',_0x1f97d1,'join',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1f97d1,'join',_0x362864);_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x362864),_0x537ae6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x15fecf,_0x5b02fe,_0x1b3d6c)=>{const _0xa2e68c=_0x15fecf['map'](_0x57ef93=>_0x57ef93['getContainedElement']())['filter'](_0x12788f=>_0x12788f),_0x338ec6=new Map(_0xa2e68c['map'](_0x288849=>[_0x288849,null]));if(_0x1ae91f){for(const {element:_0x438af4,attributes:_0x1f5d3a}of _0x1ae91f['cells'])_0x1f5d3a&&_0x338ec6['set'](_0x438af4,_0x1f5d3a);}else{if(_0x1b3d6c&&_0x1b3d6c['markerAttributes'])for(const [_0x24350b,_0x47752f]of Object['entries'](_0x1b3d6c['markerAttributes'])){const _0x5daed3=_0x36167e['model']['markers']['get'](_0x24350b),_0x6a2332=_0x5daed3?_0x5daed3['getRange']()['getContainedElement']():null;_0x6a2332&&_0x338ec6['set'](_0x6a2332,_0x47752f);}}_0x36167e['model']['change'](_0x26c045=>{for(const [_0x583f0e,_0x26d921]of _0x338ec6)_0x26c045['setAttributes']({...Ue,..._0x26d921},_0x583f0e);});});const _0x4d1213=(_0x5f4eb0,_0x2da516)=>{_0x537ae6['_suggestionFactory']['registerCustomCallback'](_0x5f4eb0,'tablePaste',_0x2da516,(_0x2bccb8,_0x105749,_0x75930e)=>{_0x36167e['model']['change'](_0xe3c60=>{const _0x211f09=[];for(const _0x14c354 of _0x2bccb8){const _0x54052c=_0x14c354['start']['nodeAfter'];_0x54052c['is']('element','tableCellSuggestion')&&_0x211f09['push'](_0x54052c);}_0x537ae6['_suggestionFactory']['getSuggestionCallback'](_0x5f4eb0,null,_0x2da516)(_0x2bccb8,_0x105749,_0x75930e);for(const _0x30549 of _0x211f09)'$graveyard'!=_0x30549['root']['rootName']&&_0xe3c60['unwrap'](_0x30549);});});};_0x4d1213('insertion','accept'),_0x4d1213('insertion','discard'),_0x4d1213('deletion','accept'),_0x4d1213('deletion','discard'),_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2d6980=>{const _0x155818=_0x2d6980['map'](_0x1eeea8=>_0x1eeea8['getContainedElement']()),_0x35b3ed=_0x155818[0x0]['findAncestor']('table'),{minRow:_0x1453a5,maxRow:_0x313239}=_0x23ea31['_getCoordsForCells'](_0x155818);_0x30c50b['removeRows'](_0x35b3ed,{'at':_0x1453a5,'rows':_0x313239-_0x1453a5+0x1});}),_0x537ae6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xde9eca=>{const _0x42d576=_0xde9eca['map'](_0x261a50=>_0x261a50['getContainedElement']()),_0x5d364d=_0x42d576[0x0]['findAncestor']('table'),{minColumn:_0x2e36cb,maxColumn:_0x2446b1}=_0x23ea31['_getCoordsForCells'](_0x42d576);_0x30c50b['removeColumns'](_0x5d364d,{'at':_0x2e36cb,'columns':_0x2446b1-_0x2e36cb+0x1});});const _0x22b2b7=(_0x2b572c,_0x1b0eae)=>{if(!_0x1b0eae['subType']||!_0x1b0eae['subType']['startsWith']('tablePaste'))return;const _0x596361=_0x1b0eae['attributes']['tablePasteChainId'],_0x25dae3=_0x537ae6['getSuggestions']()['filter'](_0x23df47=>_0x23df47['isInContent']&&_0x23df47['attributes']&&_0x23df47['attributes']['tablePasteChainId']==_0x596361);_0x25dae3['length']&&_0x1b0eae['getAllAdjacentSuggestions']()['length']!=_0x25dae3['length']&&_0x25dae3['reduce']((_0x2e94ee,_0x190378)=>(_0x2e94ee['next']=_0x190378,_0x190378['previous']=_0x2e94ee,_0x190378));};function _0x2996b2(_0x40043a,_0x540c31=!0x0){const {id:_0x11155d,authorId:_0x544f19}=_0x537ae6['_splitMarkerName'](_0x40043a['markerName']),_0x3eb740=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x40740c=_0x537ae6['activeMarkers']['includes'](_0x40043a['markerName']);return _0x40740c&&_0x3eb740['push']('ck-suggestion-marker--active'),{'classes':_0x3eb740,'attributes':{'data-suggestion':_0x11155d,'data-author-id':_0x544f19},'priority':_0x40740c&&_0x540c31?0xbc2:0xbb8};}_0x537ae6['on']('suggestionLoaded',_0x22b2b7,{'priority':'high'}),_0x537ae6['on']('suggestionUnloaded',_0x22b2b7,{'priority':'high'}),_0x36167e['model']['document']['registerPostFixer'](()=>{let _0x39c22b=!0x1;const _0x5ed413=Array['from'](_0x36167e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26cd60,data:_0x28f74f}of _0x5ed413){const {group:_0x5cbe23,type:_0x10518c,id:_0x5482e4}=_0x537ae6['_splitMarkerName'](_0x26cd60);if('suggestion'!=_0x5cbe23||'deletion'!=_0x10518c||_0x28f74f['oldRange'])continue;if(!_0x537ae6['hasSuggestion'](_0x5482e4))continue;const _0x342635=_0x537ae6['getSuggestion'](_0x5482e4)['getRanges'](),_0x127585=_0x36167e['plugins']['get']('Users')['me'];for(const _0x27e847 of _0x537ae6['getSuggestions']()){if(!_0x27e847['isInContent']||_0x27e847['author']!=_0x127585)continue;if('formatBlock'!=_0x27e847['type']||'tablePasteCell'!=_0x27e847['subType'])continue;if(_0x27e847['getRanges']()['every'](_0x2e75e6=>_0x342635['some'](_0x510498=>_0x510498['containsRange'](_0x2e75e6,!0x0)))){for(const _0x141766 of _0x27e847['getAllAdjacentSuggestions']())_0x141766['isInContent']&&(_0x141766['discard'](),_0x39c22b=!0x0);}}}return _0x39c22b;}),_0x36167e['model']['document']['registerPostFixer'](_0x2b179f=>{const _0x3161bf=_0x36167e['commands']['get']('redo');if(!_0x3161bf||!_0x3161bf['_createdBatches']['has'](_0x2b179f['batch']))return!0x1;let _0x2b2b46=!0x1;const _0x2900ed=_0x36167e['plugins']['get']('Users')['me'],_0x5124a2=_0x36167e['model']['document']['differ']['getChanges'](),_0x28fe29=Array['from'](_0x36167e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x478f66,data:_0x4fb348})=>{const {group:_0x48eecf,subType:_0x4e0f04,authorId:_0x42b0d2}=_0x537ae6['_splitMarkerName'](_0x478f66);return'suggestion'==_0x48eecf&&'tablePaste'==_0x4e0f04&&_0x42b0d2==_0x2900ed['id']&&!_0x4fb348['oldRange'];});for(const _0x4fd15b of _0x5124a2){if('insert'!=_0x4fd15b['type']||'tableCellSuggestion'!=_0x4fd15b['name']||0x1!=_0x4fd15b['length'])continue;const _0x2fb017=_0x2b179f['createRange'](_0x4fd15b['position'],_0x4fd15b['position']['getShiftedBy'](0x1));if(!_0x28fe29['find'](({data:_0x276efe})=>_0x276efe['newRange']['isEqual'](_0x2fb017))){for(const {name:_0x1c7dea,data:_0x468d17}of _0x28fe29)if(_0x2fb017['containsRange'](_0x468d17['newRange'])){_0x2b179f['updateMarker'](_0x1c7dea,{'range':_0x2fb017}),_0x2b2b46=!0x0;break;}}}return _0x2b2b46;}),_0x36167e['model']['document']['registerPostFixer'](_0x1d19d9=>{let _0xfe141c=!0x1;const _0x166bb7=_0x36167e['plugins']['get']('Users')['me'],_0xb84df5=_0x537ae6['getSuggestions']()['filter'](_0x237e9d=>_0x237e9d['isInContent']&&_0x237e9d['author']==_0x166bb7),_0x305a85=new Set(),_0x154f9f=new Set();for(const _0x364189 of _0xb84df5)if('tablePaste'==_0x364189['subType'])for(const _0x46c627 of _0x364189['getMarkers']()){const _0x50f8bd=_0x46c627['getRange']()['getContainedElement']();if(_0x50f8bd){if(_0x50f8bd['is']('element','tableCellSuggestion')&&De(_0x50f8bd)){_0x364189['removeMarker'](_0x46c627['name']),_0x305a85['add'](_0x50f8bd),_0xfe141c=!0x0;const _0x3649b4=_0x50f8bd['nextSibling'],_0x454d7f=_0x50f8bd['previousSibling'],_0x4b822e=_0x3649b4&&_0x3649b4['is']('element','tableCellSuggestion'),_0x52dc28=_0x454d7f&&_0x454d7f['is']('element','tableCellSuggestion');_0x4b822e&&!_0x305a85['has'](_0x3649b4)&&_0x154f9f['add'](_0x3649b4),_0x52dc28&&!_0x305a85['has'](_0x454d7f)&&_0x154f9f['add'](_0x454d7f);}else _0x50f8bd['is']('element','paragraph')&&_0x50f8bd['isEmpty']&&(_0x364189['removeMarker'](_0x46c627['name']),_0xfe141c=!0x0);}}else{if('tablePasteCell'==_0x364189['subType']){if(!_0x364189['attributes']||!_0x364189['attributes']['tablePasteChainId'])continue;const _0xad4113=_0x364189['attributes']['markerAttributes'];if(_0xad4113&&Object['keys'](_0xad4113)['length'])continue;const _0x3a1666=_0x364189['attributes']['tablePasteChainId'];let _0x195c9b=!0x0,_0x59e21d=!0x0;for(const _0x937e1b of _0xb84df5)if(_0x937e1b['subType']&&_0x937e1b['subType']['startsWith']('tablePaste')){if(!_0x937e1b['attributes']['tablePasteChainId']){_0x59e21d=!0x1;break;}if(_0x937e1b['id']!=_0x364189['id']&&_0x937e1b['attributes']['tablePasteChainId']==_0x3a1666){_0x195c9b=!0x1;break;}}_0x59e21d&&_0x195c9b&&(_0x364189['removeMarkers'](),_0xfe141c=!0x0);}}for(const _0x10f764 of _0x305a85)_0x1d19d9['remove'](_0x10f764);for(const _0x24d75b of _0x154f9f)_0x1d19d9['unwrap'](_0x24d75b);return _0xfe141c;}),_0x36167e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x2bb888=>_0x2996b2(_0x2bb888),'converterPriority':'high'}),_0x36167e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x136463,_0x17b31d)=>_0x17b31d['options']['showSuggestionHighlights']?_0x2996b2(_0x136463,!0x1):null,'converterPriority':'high'});const _0x1f734b=_0x36167e['editing']['view'];this['listenTo'](_0x1f734b['document'],'clipboardOutput',(_0x3ae171,_0x13d701)=>{const _0x2ccd7f=[];for(const _0x3fdd60 of _0x1f734b['createRangeIn'](_0x13d701['content'])['getItems']())_0x3fdd60['is']('element','suggestion-td')&&_0x2ccd7f['push'](_0x3fdd60);_0x1f734b['change'](_0x4ce6ac=>{for(const _0x5ee736 of _0x2ccd7f)_0x4ce6ac['move'](_0x4ce6ac['createRangeIn'](_0x5ee736),_0x4ce6ac['createPositionBefore'](_0x5ee736)),_0x4ce6ac['remove'](_0x5ee736);});});}}function De(_0x13bd98){if(_0x13bd98['isEmpty'])return!0x0;const _0x47bba7=_0x13bd98['getChild'](0x0);return _0x47bba7['is']('element','paragraph')&&_0x47bba7['isEmpty'];}function He(_0x3b7692,_0x42b255={},_0x51752a){for(const {isAnchor:_0xb52a17,cellHeight:_0x488da4,cellWidth:_0xa9dafb}of _0x51752a['createTableWalker'](_0x3b7692,{'includeAllSlots':!0x0,..._0x42b255}))if(!_0xb52a17||0x1!=_0x488da4||0x1!=_0xa9dafb)return!0x1;return!0x0;}class Bt extends _0x483067{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3b2a6b=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b2a6b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3b2a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3b2a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b2a6b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3b2a6b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3b2a6b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x44a559,_0x15a68f){const _0x564e78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x273a7f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46eeef=_0x15a68f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x5acd3d=_0x273a7f['getColumnGroupElement'](_0x46eeef);let _0x1368e8=_0x5acd3d?_0x273a7f['getTableColumnsWidths'](_0x5acd3d):null,_0x2265e3=_0x46eeef['getAttribute']('tableWidth')||null;const _0x311588=_0x15a68f['tableWidth']||_0x2265e3,_0x4e6159=_0x15a68f['columnWidths']||_0x1368e8,_0x218cf1=this['editor']['plugins']['get']('Users')['me'];for(const _0x52bd97 of _0x564e78['getSuggestions']()){const _0x492883=_0x52bd97['getContainedElement']();if('resizeTable'===_0x52bd97['subType']&&_0x492883===_0x46eeef){_0x52bd97['author']!==_0x218cf1&&_0x52bd97['discard']();const _0x1ce0aa=_0x52bd97['data']['commandParams'];_0x2265e3=_0x1ce0aa[0x0]['tableWidth'],_0x1368e8=_0x1ce0aa[0x0]['columnWidths'];break;}}_0x44a559({'table':_0x46eeef,'tableWidth':_0x311588,'columnWidths':_0x4e6159}),_0x564e78['markBlockFormat'](_0x46eeef,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2265e3,'columnWidths':_0x1368e8}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x410221){if('formatBlock'!=_0x410221['type']&&'formatInline'!=_0x410221['type'])return;const {data:_0x4664b5}=_0x410221;if(_0x4664b5&&'resizeTable'===_0x4664b5['formatGroupId']){const _0x25dab6='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x25dab6)};}}}class Ot extends _0x483067{['afterInit'](){const _0x1d7f83=this['editor'];_0x1d7f83['plugins']['has']('Template')&&_0x1d7f83['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x483067{['afterInit'](){const _0x2daf1d=this['editor'];if(!_0x2daf1d['commands']['get']('insertTableOfContents'))return;_0x2daf1d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xde2efa=_0x2daf1d['plugins']['get']('TrackChangesEditing'),_0x850af1=_0x2daf1d['locale'];_0xde2efa['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1d2024=>c(_0x850af1,'ELEMENT_TABLE_OF_CONTENTS',_0x1d2024));}}class xt extends _0x483067{['afterInit'](){const _0x2206c6=this['editor'];if(!_0x2206c6['plugins']['has']('Title'))return;const _0x15b4ff=_0x2206c6['plugins']['get']('TrackChangesEditing');_0x15b4ff['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x2206c6['locale'],'ELEMENT_TITLE')),_0x2206c6['model']['document']['registerPostFixer'](_0x4c7088=>{let _0x3138d7=!0x1;const _0x270a25=Array['from'](_0x2206c6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x213203,data:_0x2aaa30}of _0x270a25){const {group:_0x313e3f}=_0x15b4ff['_splitMarkerName'](_0x213203);if('suggestion'!==_0x313e3f||!_0x2aaa30['newRange'])continue;const _0x210147=_0x2aaa30['newRange'],_0x504c8e=_0x210147['end']['nodeBefore'];if(!_0x504c8e||!_0x504c8e['is']('element','title-content'))continue;if(!_0x210147['start']['isTouching'](_0x210147['end']))continue;const _0x2b7787=_0x2206c6['model']['schema']['getNearestSelectionRange'](_0x210147['end'],'forward');if(_0x2b7787&&_0x2b7787['isCollapsed']){const _0x19beab=_0x4c7088['createRange'](_0x210147['start'],_0x2b7787['start']);_0x19beab['isEqual'](_0x210147)||(_0x4c7088['updateMarker'](_0x213203,{'range':_0x19beab}),_0x3138d7=!0x0);}_0x3138d7||(_0x4c7088['removeMarker'](_0x213203),_0x3138d7=!0x0);}return _0x3138d7;});}}class Tt extends _0x483067{['afterInit'](){const _0x16dac6=this['editor'],_0x257d55=_0x16dac6['plugins']['get']('TrackChangesEditing');_0x16dac6['plugins']['has']('Uploadcare')&&(_0x257d55['enableCommand']('uploadcare'),_0x16dac6['plugins']['has']('UploadcareImageEdit')&&(_0x257d55['enableCommand']('uploadcareImageEdit'),_0x257d55['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x257d55['registerBlockAttribute']('uploadcareImageId'),_0x257d55['descriptionFactory']['registerDescriptionCallback'](_0x18f86c=>{if('attribute'!=_0x18f86c['type'])return;const {data:_0x4fb04b}=_0x18f86c;return _0x4fb04b&&'uploadcareImageId'==_0x4fb04b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x483067{['afterInit'](){const _0x4c16a6=this['editor'],_0x3c6aee=_0x4c16a6['plugins']['get']('TrackChangesEditing');_0x4c16a6['plugins']['has']('UndoEditing')&&(_0x3c6aee['enableCommand']('undo'),_0x3c6aee['enableCommand']('redo'));}}class Ut extends _0x483067{static get['requires'](){return[Ct];}['afterInit'](){const _0x481d4f=this['editor'];if(!_0x481d4f['plugins']['has']('TableCaptionEditing'))return;_0x481d4f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x483067{['tableProperties'];['tableCellProperties'];constructor(_0x155467){super(_0x155467),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 _0x5e673e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5bfa6c of this['tableProperties'])_0x5e673e['enableCommand'](_0x5bfa6c,(_0x5d5980,_0x39abfb)=>{const _0x152214=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5bfa6c,[_0x152214],this['tableProperties'],'tableProperties',_0x5d5980,_0x39abfb);});_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5e673e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x16867c,_0x11afdc)=>this['handleDiscardAction'](this['tableProperties'],_0x16867c,_0x11afdc)),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x26b4bf of this['tableCellProperties'])_0x5e673e['enableCommand'](_0x26b4bf,(_0x5e7288,_0x200095)=>{const _0x4a6485=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x26b4bf,_0x4a6485,this['tableCellProperties'],'tableCellProperties',_0x5e7288,_0x200095);});_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5e673e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2e8267,_0x5d23a9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2e8267,_0x5d23a9)),_0x5e673e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5e673e['descriptionFactory']['registerDescriptionCallback'](_0x2d0465=>this['handleSuggestionDescription'](_0x2d0465));}['_handlePropertyChange'](_0x7b23a0,_0x16f151,_0x1c0898,_0x34bdda,_0x31d200,_0x5d04fc){const _0x23e6ad=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5d04fc['batch'],()=>{for(const _0x25f5ed of _0x16f151){if(this['_getSuggestion'](_0x25f5ed,_0x34bdda))_0x31d200(_0x5d04fc);else{const _0x261cbc={};for(const _0x6f8d7 of _0x1c0898){const _0x529724=_0x25f5ed['getAttribute'](_0x6f8d7);void 0x0!==_0x529724&&(_0x261cbc[_0x6f8d7]=_0x529724);}_0x31d200(_0x5d04fc),_0x23e6ad['markBlockFormat'](_0x25f5ed,{'commandParams':[_0x261cbc]},[],_0x34bdda);}}});}['handleDiscardAction'](_0x5e0596,_0x24f2ef,_0xafbd4){const _0x47433b=_0x24f2ef[0x0]['start']['nodeAfter'],_0x47edec=_0xafbd4['commandParams'][0x0];this['editor']['model']['change'](_0x2d9b08=>{for(const _0x21c0cd of _0x5e0596)void 0x0!==_0x47edec[_0x21c0cd]?_0x2d9b08['setAttribute'](_0x21c0cd,_0x47edec[_0x21c0cd],_0x47433b):_0x2d9b08['removeAttribute'](_0x21c0cd,_0x47433b);});}['handleSuggestionDescription'](_0x4a24fa){if(_0x4a24fa['data'])switch(_0x4a24fa['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x5c3630,_0x69d881){const _0x1d30ba=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1e7143 of _0x1d30ba['getSuggestions']({'skipNotAttached':!0x0})){const _0xb2e9d4=_0x1e7143['getContainedElement']();if(_0x1e7143['subType']===_0x69d881&&_0xb2e9d4===_0x5c3630)return _0x1e7143;}return null;}}const u='$elementName';class p extends _0x483067{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2624ff,_0x59bb81,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,it,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,mt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x8af488){super(_0x8af488),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x35d889,_0x4d6ec3,_0x135576,_0x3888c5)=>{this['_model']['change'](()=>{for(const _0xdcdec4 of[..._0x3888c5,..._0x135576])this['_model']['markers']['has'](_0xdcdec4)&&_0x8af488['editing']['reconvertMarker'](_0xdcdec4);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x8af488['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x8af488['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x8af488['config']['get']('trackChanges.trackFormatChanges'),_0x8af488['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x8af488['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x8af488,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x3e2f21=this['editor'],_0x126bb7=(_0x47f0d4,_0x53a80c)=>{if('attribute'!=_0x47f0d4)return'ck-suggestion-marker-'+_0x47f0d4;const _0x470150=_0x53a80c['split']('|')[0x0];return this['_isBlockAttribute'](_0x470150)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3e2f21['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f2f06=>{const {id:_0x170d4d,authorId:_0x1a1358,type:_0x37f139,subType:_0x4e3299}=this['_splitMarkerName'](_0x1f2f06['markerName']),_0x5dc021=['ck-suggestion-marker',_0x126bb7(_0x37f139,_0x4e3299)];let _0x121323=0xbb8;return this['activeMarkers']['includes'](_0x1f2f06['markerName'])&&(_0x5dc021['push']('ck-suggestion-marker--active'),_0x121323=0xbc2),'deletion'==_0x37f139&&(_0x121323+=0x5),{'classes':_0x5dc021,'attributes':{'data-suggestion':_0x170d4d,'data-author-id':_0x1a1358},'priority':_0x121323};}}),_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x51bff2=>{_0x51bff2['on']('addMarker:suggestion',(_0x585de0,_0x19c2fb,_0x1ccfb2)=>{if(!_0x1ccfb2['options']['showSuggestionHighlights'])return;const _0x39d89e=_0x19c2fb['item'];if(!_0x39d89e)return;const _0x4740a7=_0x1ccfb2['mapper']['toViewElement'](_0x39d89e);_0x3e2f21['model']['schema']['isObject'](_0x39d89e)&&_0x4740a7&&!_0x4740a7['getCustomProperty']('widget')&&_0x4740a7['is']('containerElement')&&_0x54a5a0(_0x4740a7,_0x1ccfb2['writer']);},{'priority':'high'});}),_0x3e2f21['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x822883,_0x131685)=>{if(!_0x131685['options']['showSuggestionHighlights'])return null;const {id:_0x32e3d8,authorId:_0x5335a0,type:_0xcb0568,subType:_0x51dd90}=this['_splitMarkerName'](_0x822883['markerName']);return{'classes':['ck-suggestion-marker',_0x126bb7(_0xcb0568,_0x51dd90)],'priority':0xbb8,'attributes':{'data-suggestion':_0x32e3d8,'data-author-id':_0x5335a0}};}});const _0x3a7ad0=({showActiveMarkers:_0x792d8e=!0x0,isAttributeSuggestion:_0x117a50=!0x1}={})=>(_0x744f76,_0x5e7db2,_0x4eaad5)=>{if(!_0x5e7db2['item'])return;const {id:_0x95f033,authorId:_0x24c812}=this['_splitMarkerName'](_0x5e7db2['markerName']);if(_0x117a50){const _0x4a93e5=this['_suggestions']['get'](_0x95f033),_0x186231=this['_getAttributeKey'](_0x4a93e5);if(!this['_isBlockAttribute'](_0x186231))return;}if(_0x5e7db2['item']['is']('selection'))return void _0x4eaad5['consumable']['consume'](_0x5e7db2['item'],_0x744f76['name']);const _0x399230=_0x4eaad5['mapper']['toViewElement'](_0x5e7db2['item']);if(_0x5e7db2['item']['is']('element')&&_0x3e2f21['model']['schema']['isBlock'](_0x5e7db2['item'])&&!_0x399230['getCustomProperty']('addHighlight')){_0x4eaad5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x399230),_0x4eaad5['writer']['setAttribute']('data-suggestion',_0x95f033,_0x399230),_0x4eaad5['writer']['setAttribute']('data-author-id',_0x24c812,_0x399230),_0x4eaad5['mapper']['bindElementToMarker'](_0x399230,_0x5e7db2['markerName']),_0x792d8e&&(this['activeMarkers']['includes'](_0x5e7db2['markerName'])?_0x4eaad5['writer']['addClass']('ck-suggestion-marker--active',_0x399230):_0x4eaad5['writer']['removeClass']('ck-suggestion-marker--active',_0x399230));for(const _0x5046ca of _0x3e2f21['model']['createRangeIn'](_0x5e7db2['item'])['getItems']())_0x4eaad5['consumable']['consume'](_0x5046ca,_0x744f76['name']);_0x4eaad5['consumable']['consume'](_0x5e7db2['item'],_0x744f76['name']);}};_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x31a23b=>{_0x31a23b['on']('addMarker:suggestion:formatBlock',(_0x5ef673,_0x8f6517,_0x1d59cc)=>{_0x1d59cc['options']['showSuggestionHighlights']&&_0x3a7ad0({'showActiveMarkers':!0x1})(_0x5ef673,_0x8f6517,_0x1d59cc);},{'priority':'highest'});}),_0x3e2f21['conversion']['for']('dataDowncast')['add'](_0x2e09a7=>{_0x2e09a7['on']('addMarker:suggestion:attribute',(_0x37ae9b,_0x1faa02,_0x1cca36)=>{_0x1cca36['options']['showSuggestionHighlights']&&_0x3a7ad0({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x37ae9b,_0x1faa02,_0x1cca36);},{'priority':'highest'});}),_0x3e2f21['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c3650,_0xb323eb)=>{if(_0xb323eb['options']['showSuggestionHighlights']){const {id:_0x27d4d4,authorId:_0x4d41f4}=this['_splitMarkerName'](_0x4c3650);return _0x4c3650['includes'](':split')||_0x4c3650['includes'](':merge')?{'group':'suggestion','name':_0x4c3650['substr'](0xb),'attributes':{'data-suggestion':_0x27d4d4,'data-author-id':_0x4d41f4}}:null;}return{'group':'suggestion','name':_0x4c3650['substr'](0xb)};}}),_0x3e2f21['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x50e111,{writer:_0x37f1db})=>{let _0x21abe4='suggestion:'+_0x50e111['getAttribute']('suggestion-type')+':'+_0x50e111['getAttribute']('id');return _0x50e111['getAttribute']('marker-count')&&(_0x21abe4+=':'+_0x50e111['getAttribute']('marker-count')),_0x37f1db['createElement']('$marker',{'data-name':_0x21abe4});}}),_0x3e2f21['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x361b93=>{_0x361b93['on']('addMarker:suggestion:formatBlock',_0x3a7ad0(),{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x28c61c=>{_0x28c61c['on']('addMarker:suggestion:attribute',_0x3a7ad0({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x3e4a34=>{_0x3e4a34['on']('removeMarker:suggestion:formatBlock',(_0xcf31f2,_0x2c703a,_0x907421)=>{const _0xe1a814=_0x907421['mapper']['markerNameToElements'](_0x2c703a['markerName']);if(_0xe1a814){for(const _0x145ae2 of _0xe1a814)_0x145ae2['getCustomProperty']('addHighlight')||(_0x907421['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x145ae2),_0x907421['writer']['removeAttribute']('data-suggestion',_0x145ae2),_0x907421['writer']['removeAttribute']('data-author-id',_0x145ae2),_0x907421['mapper']['unbindElementFromMarkerName'](_0x145ae2,_0x2c703a['markerName']));}},{'priority':'high'});}),_0x3e2f21['conversion']['for']('editingDowncast')['add'](_0x36feba=>{_0x36feba['on']('removeMarker:suggestion:attribute',(_0x2e63d3,_0x1c8b7f,_0x19a584)=>{const _0x3abfe6=_0x19a584['mapper']['markerNameToElements'](_0x1c8b7f['markerName']);if(!_0x3abfe6)return;const {id:_0x44f882}=this['_splitMarkerName'](_0x1c8b7f['markerName']),_0x3baecb=this['_suggestions']['get'](_0x44f882),_0x183330=this['_getAttributeKey'](_0x3baecb);if(this['_isBlockAttribute'](_0x183330)){for(const _0x2bc651 of _0x3abfe6)_0x2bc651['getCustomProperty']('addHighlight')||(_0x19a584['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2bc651),_0x19a584['writer']['removeAttribute']('data-suggestion',_0x2bc651),_0x19a584['writer']['removeAttribute']('data-author-id',_0x2bc651),_0x19a584['mapper']['unbindElementFromMarkerName'](_0x2bc651,_0x1c8b7f['markerName']));}},{'priority':'high'});}),_0x3e2f21['model']['document']['registerPostFixer'](_0x30d965=>{let _0x283d5f=!0x1;const _0x80caee=Array['from'](_0x3e2f21['model']['document']['differ']['getChangedMarkers']()),_0x2b93a8=new Set();for(const {name:_0x5ca7b0,data:_0x410ffe}of _0x80caee){const {group:_0x1521e6,type:_0x3c2657,subType:_0x2c38da,id:_0x18d15a}=this['_splitMarkerName'](_0x5ca7b0);if('suggestion'!==_0x1521e6)continue;const _0x3c6ff0=this['_suggestions']['get'](_0x18d15a);if(null!=_0x410ffe['newRange']){'formatInline'==_0x3c2657&&(_0x283d5f=_0x283d5f||Jt(_0x410ffe['newRange'],_0x5ca7b0,_0x30d965,_0x3e2f21['model']['schema']));const _0x413225='attribute'==_0x3c2657&&this['_isBlockAttribute'](_0x2c38da['split']('|')[0x0]);if(_0x410ffe['newRange']['isCollapsed']||'$graveyard'==_0x410ffe['newRange']['root']['rootName']||'formatBlock'==_0x3c2657&&!Ht(_0x410ffe['newRange'])||_0x413225&&!Ht(_0x410ffe['newRange'])||'deletion'==_0x3c2657&&!(!Lt(_0x37d562=_0x410ffe['newRange'])&&!function(_0x396ca1){return _0x396ca1['start']['parent']==_0x396ca1['end']['nodeBefore']&&_0x396ca1['start']['isAtEnd'];}(_0x37d562)))_0x30d965['removeMarker'](_0x5ca7b0),_0x283d5f=!0x0;else{if(!_0x3c6ff0||!_0x3c6ff0['isInContent'])continue;if(_0x410ffe['newRange']&&_0x410ffe['oldRange']&&_0x410ffe['newRange']['isEqual'](_0x410ffe['oldRange']))continue;_0x2b93a8['add'](_0x3c6ff0);}}}var _0x37d562;return _0x2b93a8['size']>0x0&&(_0x283d5f=!!this['_joinWithAdjacentSuggestions'](_0x2b93a8)||_0x283d5f),_0x283d5f;}),_0x3e2f21['model']['document']['registerPostFixer'](_0x31e2d0=>{let _0x2cd241=!0x1;for(const _0x5d25a0 of _0x3e2f21['model']['document']['differ']['getChanges']())if('insert'==_0x5d25a0['type'])for(const _0x15c1b0 of this['_suggestions']['values']()){if(_0x15c1b0['isMultiRange']||!_0x15c1b0['isInContent'])continue;const _0x474948='formatBlock'==_0x15c1b0['type'],_0x33d46c=this['_getAttributeKey'](_0x15c1b0),_0x2e8f1c=_0x33d46c&&this['_isBlockAttribute'](_0x33d46c);if(!_0x474948&&!_0x2e8f1c)continue;const _0x4133d0=_0x15c1b0['getFirstRange']();if(_0x4133d0['start']['parent']!=_0x4133d0['end']['parent']&&!_0x4133d0['end']['isAtEnd']){const _0x1cc299=_0x3e2f21['model']['createPositionAt'](_0x4133d0['start']['nodeAfter'],'end'),_0x2df9ec=_0x3e2f21['model']['createRange'](_0x4133d0['start'],_0x1cc299);_0x31e2d0['updateMarker'](_0x15c1b0['getFirstMarker'](),{'range':_0x2df9ec}),_0x2cd241=!0x0;}}return _0x2cd241;}),_0x3e2f21['model']['document']['registerPostFixer'](_0x23f333=>this['_processAttributeChanges'](_0x23f333)),_0x3e2f21['model']['document']['registerPostFixer'](_0x5be510=>!_0x5be510['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x5be510)),_0x3e2f21['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3e2f21['model']['document']['on']('change:data',(_0x3e659f,_0x53f1ee)=>{if(!_0x53f1ee['isLocal']||_0x53f1ee['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x17974c=_0x3e2f21['model']['document']['differ']['getChanges']();if(0x0==_0x17974c['length'])return;const _0x147853=[],_0xc4ac18=_0x17974c['filter'](_0xe87c11=>'attribute'==_0xe87c11['type']),_0x2e51d2=_0x17974c['filter'](_0x559135=>'insert'==_0x559135['type']&&'$text'!=_0x559135['name']);for(const _0x1498e5 of _0xc4ac18)this['_isRegisteredAttribute'](_0x1498e5['attributeKey'])&&_0x147853['push']({'key':_0x1498e5['attributeKey'],'newValue':_0x1498e5['attributeNewValue'],'oldValue':_0x1498e5['attributeOldValue'],'range':qt(_0x1498e5['range'],_0x3e2f21['model'])});for(const _0xfbb18a of _0x2e51d2){if('rename'!=_0xfbb18a['action']&&'refresh'!=_0xfbb18a['action'])continue;const _0x4b4842=zt(_0xfbb18a['position']['nodeAfter'],_0x3e2f21['model']),_0x81e573=_0xfbb18a['before'];'rename'==_0xfbb18a['action']&&_0x147853['push']({'key':u,'newValue':_0xfbb18a['name'],'oldValue':_0x81e573['name'],'range':_0x4b4842});for(const [_0x250bd1,_0x6c6978]of _0x81e573['attributes']){if(!this['_isRegisteredAttribute'](_0x250bd1))continue;const _0x43a4c5=_0xfbb18a['attributes']['get'](_0x250bd1);_0x6c6978!==_0x43a4c5&&_0x147853['push']({'key':_0x250bd1,'newValue':_0x43a4c5,'oldValue':_0x6c6978,'range':_0x4b4842});}for(const [_0x4659c7,_0xff8d75]of _0xfbb18a['attributes'])this['_isRegisteredAttribute'](_0x4659c7)&&(_0x81e573['attributes']['has'](_0x4659c7)||_0x147853['push']({'key':_0x4659c7,'newValue':_0xff8d75,'oldValue':null,'range':_0x4b4842}));}0x0!=_0x147853['length']&&_0x3e2f21['model']['enqueueChange'](_0x53f1ee,_0x186b1c=>{const _0x4afa41=_0x20de28();for(const {range:_0x210d9d,key:_0xc10d93,oldValue:_0x1d1963,newValue:_0x11de08}of _0x147853)this['markAttributeChange'](_0x210d9d,_0xc10d93,_0x1d1963,_0x11de08,{'groupId':_0x4afa41});this['_reduceExistingSuggestions'](_0x186b1c,_0x147853);});},{'priority':'lowest'}),_0x3e2f21['model']['markers']['on']('update:suggestion',(_0x9ff86e,_0xced2e6,_0x4cd78b)=>{if(null==_0x4cd78b){const {id:_0x25cafe}=this['_splitMarkerName'](_0xced2e6['name']),_0x43c2b6=this['_suggestions']['get'](_0x25cafe);_0x43c2b6&&_0x43c2b6['addMarkerName'](_0xced2e6['name']);}}),_0x3e2f21['model']['document']['on']('change:data',()=>{const _0x71551=Array['from'](_0x3e2f21['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1a3aff=>'suggestion'===this['_splitMarkerName'](_0x1a3aff['name'])['group']);if(0x0===_0x71551['length'])return;_0x71551['sort']((_0x3ee071,_0x4ce32c)=>{const _0x7aa7da=_0x3ee071['data']['oldRange'],_0xacb210=_0x4ce32c['data']['oldRange'];return null===_0x7aa7da&&null===_0xacb210?0x0:null===_0x7aa7da&&null!==_0xacb210?-0x1:null!==_0x7aa7da&&null===_0xacb210?0x1:_0x7aa7da['start']['isBefore'](_0xacb210['start'])?-0x1:0x1;});const _0x4fd32d=new Set(),_0x49f240=new Set();for(const {name:_0x2a3abc,data:_0x2fe298}of _0x71551){const {id:_0x5058de}=this['_splitMarkerName'](_0x2a3abc);if(null===_0x2fe298['oldRange']){const _0x24bdea=this['_handleNewSuggestionMarker'](_0x2a3abc);_0x49f240['add'](_0x24bdea);}else{const _0x187c25=this['_suggestions']['get'](_0x5058de);null!==_0x2fe298['newRange']||_0x187c25['isInContent']?(_0x4fd32d['add'](_0x187c25['head']),_0x49f240['add'](_0x187c25)):this['_removeSuggestion'](_0x187c25);}}_0x49f240['size']>0x0&&this['_refreshSuggestionsChain'](_0x49f240);for(const _0x112fc6 of _0x4fd32d)this['fire']('suggestionChanged',_0x112fc6);}),_0x3e2f21['model']['on']('applyOperation',(_0x13d86d,_0x4f2a0e)=>{const _0x287863=_0x4f2a0e[0x0];if(!this['_suggestions']['size'])return;if(!_0x287863['isDocumentOperation'])return;if(_0x287863['batch']['isUndo']||!_0x287863['batch']['isLocal'])return;let _0x85b57d,_0x453df5;switch(_0x287863['type']){case'insert':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['position']),_0x453df5=_0x85b57d['getShiftedBy'](_0x287863['howMany']);break;case'split':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['splitPosition']),_0x453df5=_0x3e2f21['model']['createPositionAt'](_0x287863['moveTargetPosition']);break;case'move':_0x85b57d=_0x3e2f21['model']['createPositionAt'](_0x287863['targetPosition']),_0x453df5=_0x85b57d['getShiftedBy'](_0x287863['howMany']);break;default:return;}const _0x5e3429=_0x3e2f21['model']['createRange'](_0x85b57d,_0x453df5);_0x3e2f21['model']['change'](()=>{for(const {suggestion:_0x450afb,meta:_0x36add5}of this['_findSuggestions'](_0x5e3429)){if(_0x450afb['isMultiRange'])continue;if('formatInline'==_0x450afb['type'])continue;const _0x334802=this['_getAttributeKey'](_0x450afb);if(_0x334802&&this['_isBlockAttribute'](_0x334802)&&'split'!=_0x287863['type'])continue;const _0x4ce0b9=_0x450afb['data']&&_0x450afb['data']['multipleBlocks'];('formatBlock'!=_0x450afb['type']||'split'==_0x287863['type']&&!_0x4ce0b9)&&(_0x36add5['containsRangeInObject']||'insertion'==_0x450afb['type']&&_0x36add5['isOwn']||_0x450afb['getFirstRange']()['containsRange'](_0x5e3429)&&this['_breakSuggestionMarker'](_0x450afb,_0x85b57d,_0x453df5));}});},{'priority':'lowest'}),_0x3e2f21['model']['on']('deleteContent',(_0x723460,_0x14dd25)=>{const _0x48b855=_0x14dd25[0x0],_0x3b4ca8=_0x14dd25[0x1];if(_0x3b4ca8&&_0x3b4ca8['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x48b855['isCollapsed'])return;const _0x3d0b99=_0x3e2f21['model']['schema'],{start:_0x5d99f7,end:_0x5b263a}=_0x48b855['getFirstRange'](),_0x56d77b=_0x5d99f7['nodeAfter']&&_0x3d0b99['isLimit'](_0x5d99f7['nodeAfter'])?null:_0x3d0b99['getNearestSelectionRange'](_0x5d99f7,'forward'),_0xf583b7=_0x5b263a['nodeBefore']&&_0x3d0b99['isLimit'](_0x5b263a['nodeBefore'])?null:_0x3d0b99['getNearestSelectionRange'](_0x5b263a,'backward'),_0x6c4a75=_0x3e2f21['model']['createRange'](_0x56d77b?_0x56d77b['start']:_0x5d99f7,_0xf583b7?_0xf583b7['end']:_0x5b263a);_0x3e2f21['model']['change'](_0x44812e=>{this['markDeletion'](_0x6c4a75);const _0x283839=_0x3e2f21['model']['schema']['getNearestSelectionRange'](_0x6c4a75['start']);_0x48b855['is']('documentSelection')?_0x44812e['setSelection'](_0x283839):_0x48b855['setTo'](_0x283839);}),_0x723460['stop']();},{'priority':_0x1626e5['normal']+0xa}),_0x3e2f21['model']['on']('insertContent',(_0x3b06f8,_0x15b056)=>{const _0x3924c9=_0x15b056[_0x15b056['length']-0x1];_0x3924c9&&_0x3924c9['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3e2f21['model']['change'](()=>{let _0x39ae75=_0x3e2f21['model']['insertContent'](_0x15b056[0x0],_0x15b056[0x1],_0x15b056[0x2],{'forceDefaultExecution':!0x0});if(!_0x39ae75)return;_0x3b06f8['return']=_0x39ae75['clone']();const _0x997c21=_0x39ae75['end']['nodeBefore'],_0x20a06d=_0x3e2f21['model']['schema'];_0x997c21&&_0x20a06d['isBlock'](_0x997c21)&&!_0x20a06d['isObject'](_0x997c21)&&(_0x39ae75=_0x3e2f21['model']['createRange'](_0x39ae75['start'],_0x3e2f21['model']['createPositionAt'](_0x997c21,'end'))),this['markInsertion'](_0x39ae75);}),_0x3b06f8['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5788f7=new O(_0x3e2f21,this['_suggestions']);_0x3e2f21['commands']['add']('acceptSuggestion',_0x5788f7),this['enableCommand']('acceptSuggestion');const _0x5e654b=new R(_0x3e2f21,this['_suggestions']);_0x3e2f21['commands']['add']('discardSuggestion',_0x5e654b),this['enableCommand']('discardSuggestion'),_0x3e2f21['commands']['add']('acceptAllSuggestions',new x(_0x3e2f21,_0x5788f7,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3e2f21['commands']['add']('discardAllSuggestions',new x(_0x3e2f21,_0x5e654b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3e2f21['commands']['add']('acceptSelectedSuggestions',new E(_0x3e2f21,_0x5788f7,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3e2f21['commands']['add']('discardSelectedSuggestions',new E(_0x3e2f21,_0x5e654b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x81af43=_0x3e2f21['plugins']['get']('CommentsRepository');this['listenTo'](_0x81af43,'addComment',(_0x33b6db,{threadId:_0x2118ce})=>{const _0xfe0630=this['_suggestions']['get'](_0x2118ce);_0xfe0630&&_0xfe0630['commentThread']&&0x1===_0xfe0630['commentThread']['length']&&this['_updateSuggestionData'](_0x2118ce,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x81af43,'removeComment',(_0x4193d4,{threadId:_0x100082})=>{const _0x54ccbf=this['_suggestions']['get'](_0x100082);_0x54ccbf&&_0x54ccbf['commentThread']&&!_0x54ccbf['commentThread']['length']&&this['_updateSuggestionData'](_0x100082,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x210258){const _0x36ce19=_0x27341e([0x6e,0x34,0x52,0x69,0x32,0x76,0x39,0x77,0x48,0x61,0x66,0x36,0x4b,0x51,0x67,0x31,0x56,0x65,0x64,0x44,0x4a,0x63,0x58,0x43,0x68,0x33,0x74,0x35,0x50,0x4c,0x30,0x72,0x46,0x47,0x38,0x53,0x4f,0x73,0x71,0x49,0x75,0x54,0x4d,0x6b,0x70,0x7a,0x41,0x5a,0x37,0x79,0x6c,0x78,0x57,0x4e,0x62,0x55,0x6f,0x42,0x45,0x6a,0x59,0x6d]),_0xb856ac=0x2ec314f8,_0x58fb13=0x2ec47230^_0xb856ac,_0xc0f5a6=window[_0x27341e([0x44,0x61,0x74,0x65])][_0x27341e([0x6e,0x6f,0x77])](),_0x224b25=_0x210258[_0x27341e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2e09d6=new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4add12=>{_0x224b25[_0x27341e([0x6f,0x6e,0x63,0x65])](_0x27341e([0x72,0x65,0x61,0x64,0x79]),_0x4add12);}),_0xc3d0bf={[_0x27341e([0x6b,0x74,0x79])]:_0x27341e([0x45,0x43]),[_0x27341e([0x75,0x73,0x65])]:_0x27341e([0x73,0x69,0x67]),[_0x27341e([0x63,0x72,0x76])]:_0x27341e([0x50,0x2d,0x32,0x35,0x36]),[_0x27341e([0x78])]:_0x27341e([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]),[_0x27341e([0x79])]:_0x27341e([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]),[_0x27341e([0x61,0x6c,0x67])]:_0x27341e([0x45,0x53,0x32,0x35,0x36])},_0x3afa2e=_0x224b25[_0x27341e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27341e([0x67,0x65,0x74])](_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x90c037(){let _0x474ec5,_0x59c452=null,_0x229419=null;try{if(_0x3afa2e==_0x27341e([0x47,0x50,0x4c]))return _0x27341e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x474ec5=_0x545236(),!_0x474ec5)return _0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x474ec5[_0x27341e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x229419=_0x4b4a03(_0x474ec5[_0x27341e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x474ec5[_0x27341e([0x6a,0x74,0x69])])),await _0x2366c0()?_0x1d3781()?_0x4b457e()?_0x27341e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x188392()?(_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27341e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x59c452=_0x3b7c2d(_0x27341e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27341e([0x74,0x72,0x69,0x61,0x6c])&&(_0x59c452=_0x3b7c2d(_0x27341e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x243050()):_0x27341e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27341e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3afcc8){return _0x27341e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b457e(){const _0x23c659=[_0x27341e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27341e([0x74,0x72,0x69,0x61,0x6c])][_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xc0f5a6/0x3e8:0xe10*_0x58fb13;return _0x474ec5[_0x27341e([0x65,0x78,0x70])]<_0x23c659;}function _0x1d3781(){const _0x584c3f=_0x474ec5[_0x27341e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x584c3f)return!0x1;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x2a])))return!0x0;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x54,0x43])))return!0x0;if(_0x584c3f[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x52,0x54,0x43]))){if(_0x3c66d7())return!0x0;if(_0x4b5c6e()||_0xca27fd())return!0x0;}return!0x1;}function _0x188392(){const _0x3bd4ef=_0x474ec5[_0x27341e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3bd4ef||0x0==_0x3bd4ef[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3771b7}=new URL(window[_0x27341e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3bd4ef[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3771b7))return!0x0;const _0x2d91c9=_0x3771b7[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e]));return _0x3bd4ef[_0x27341e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x576584=>_0x576584[_0x27341e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27341e([0x2a])))[_0x27341e([0x6d,0x61,0x70])](_0x37f2d6=>_0x37f2d6[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e])))[_0x27341e([0x73,0x6f,0x6d,0x65])](_0xba22e6=>_0x2d91c9[_0x27341e([0x65,0x76,0x65,0x72,0x79])]((_0x3083f3,_0x3b34fb)=>_0xba22e6[_0x3b34fb]===_0x3083f3||_0xba22e6[_0x3b34fb]===_0x27341e([0x2a])));}function _0x243050(){return _0x59c452&&_0x229419?new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x131241,_0x221f61)=>{_0x59c452[_0x27341e([0x74,0x68,0x65,0x6e])](_0x131241,_0x221f61),_0x229419[_0x27341e([0x74,0x68,0x65,0x6e])](_0x16104d=>{_0x16104d!=_0x27341e([0x56,0x61,0x6c,0x69,0x64])&&_0x131241(_0x16104d);},_0x221f61);}):_0x59c452||_0x229419||_0x27341e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b4a03(_0x33c2fb,_0x28b779){return new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51eca8=>{if(_0x502959())return _0x51eca8(_0x27341e([0x56,0x61,0x6c,0x69,0x64]));_0x3fbc9d(),_0x224b25[_0x27341e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x27ef03=!0x1;const _0x24eaf7=_0x20de28();function _0x24ee83(_0x181d00){return!!_0x181d00&&(typeof _0x181d00===_0x27341e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x181d00===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x181d00[_0x27341e([0x74,0x68,0x65,0x6e])]===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x181d00[_0x27341e([0x63,0x61,0x74,0x63,0x68])]===_0x27341e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2e6b28(_0x3ba1f9){_0x3ab0ee(_0x3ba1f9)[_0x27341e([0x74,0x68,0x65,0x6e])](_0x4085d1=>{if(!_0x4085d1||_0x4085d1[_0x27341e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27341e([0x6f,0x6b]))return _0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d95ec(_0x4b680d(_0x24eaf7+_0x28b779))!=_0x4085d1[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27341e([0x56,0x61,0x6c,0x69,0x64]);})[_0x27341e([0x74,0x68,0x65,0x6e])](_0x351850=>(_0x37dca0(),_0x351850),()=>{const _0x4d5fd2=_0x138a0f();return null==_0x4d5fd2?(_0x37dca0(),_0x27341e([0x56,0x61,0x6c,0x69,0x64])):_0x27341e(_0xc0f5a6-_0x4d5fd2>(0xacf90f8^_0xb856ac)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27341e([0x74,0x68,0x65,0x6e])](_0x51eca8)[_0x27341e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1539d2=0x2ef5fa78^_0xb856ac;function _0x37dca0(){const _0x217ac1=_0x27341e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d95ec(_0x4b680d(_0x33c2fb)),_0x7d79f=_0x1950d2(_0x4d95ec(window[_0x27341e([0x4d,0x61,0x74,0x68])][_0x27341e([0x63,0x65,0x69,0x6c])](_0xc0f5a6/_0x1539d2)));window[_0x27341e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27341e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x217ac1,_0x7d79f);}function _0x138a0f(){const _0x32aedb=_0x27341e([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d95ec(_0x4b680d(_0x33c2fb)),_0x4c51da=window[_0x27341e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27341e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32aedb);return _0x4c51da?window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1950d2(_0x4c51da),0x10)*_0x1539d2:null;}function _0x3ab0ee(_0x5a419e){return new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31c25f,_0x26a3ec)=>{_0x5a419e[_0x27341e([0x74,0x68,0x65,0x6e])](_0x31c25f,_0x26a3ec),window[_0x27341e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26a3ec,0x2ec2c038^_0xb856ac);});}}_0x224b25[_0x27341e([0x6f,0x6e])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x37d372,_0x2c596c)=>{if(_0x2c596c[0x0]!=_0x33c2fb)return _0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c596c[0x1]={..._0x2c596c[0x1],[_0x27341e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x24eaf7};},{[_0x27341e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27341e([0x68,0x69,0x67,0x68])}),_0x224b25[_0x27341e([0x6f,0x6e])](_0x27341e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x209f8d=>{_0x24ee83(_0x209f8d[_0x27341e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x27ef03=!0x0,_0x2e6b28(_0x209f8d[_0x27341e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27341e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27341e([0x6c,0x6f,0x77])}),_0x2e09d6[_0x27341e([0x74,0x68,0x65,0x6e])](()=>{_0x27ef03||_0x51eca8(_0x27341e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x502959(){return _0x224b25[_0x27341e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27341e([0x76,0x69,0x65,0x77])][_0x27341e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27341e([0x61,0x75,0x74,0x6f]);}function _0x3fbc9d(){_0x224b25[_0x27341e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27341e([0x76,0x69,0x65,0x77])][_0x27341e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27341e([0x61,0x75,0x74,0x6f]);}}function _0x3b7c2d(_0x71ca68){const _0x3d1d1f=[new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b51b=>setTimeout(_0x58b51b,0x2eca2a34^_0xb856ac)),_0x2e09d6[_0x27341e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7f9f46=>{let _0x13ff18=0x0;_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x6f,0x6e])](_0x27341e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x468b7d,_0x306ee5)=>{_0x306ee5[0x0][_0x27341e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13ff18++,_0x13ff18==(0x2ec31500^_0xb856ac)&&(_0x7f9f46(),_0x468b7d[_0x27341e([0x6f,0x66,0x66])]());});}))];return window[_0x27341e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27341e([0x72,0x61,0x63,0x65])](_0x3d1d1f)[_0x27341e([0x74,0x68,0x65,0x6e])](()=>_0x71ca68);}async function _0x4b374f(){await _0x2e09d6,_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x560e4d,_0x224b25[_0x27341e([0x6d,0x6f,0x64,0x65,0x6c])][_0x27341e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x560e4d,_0x224b25[_0x27341e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27341e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c66d7(){return _0x5458c2(_0x27341e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x374ae1(_0x27341e([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27341e([0x73,0x74,0x61,0x74,0x65])]==_0x27341e([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4b5c6e(){return _0x5458c2(_0x27341e([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 _0xca27fd(){return _0x5458c2(_0x27341e([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1fab75(_0x23e5f5){const _0x31f0ce=_0x41dd03();_0x224b25[_0x31f0ce]=_0x27341e([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x23e5f5,_0x23e5f5!=_0x27341e([0x56,0x61,0x6c,0x69,0x64])&&_0x4b374f();}function _0x41dd03(){const _0x3b774a=window[_0x27341e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27341e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27341e([0x6e,0x6f,0x77])]())[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27341e([0x2e]),'');let _0xdddd88=_0x27341e([0x6e]);for(let _0x158934=0x0;_0x158934<_0x3b774a[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x158934+=0x2){let _0x402332=window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b774a[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x158934,_0x158934+0x2));_0x402332>=_0x36ce19[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x402332-=_0x36ce19[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xdddd88+=_0x36ce19[_0x402332];}return _0xdddd88;}function _0x545236(){const _0x59514f=_0x3afa2e[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e]));if(0x3!=_0x59514f[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x179fdf(_0x59514f[0x1]);function _0x179fdf(_0x4b7fc5){const _0x26724d=_0x3b2c51(_0x4b7fc5);return _0x26724d&&_0x4a7fd6()?_0x26724d:null;function _0x4a7fd6(){const _0x4b2953=_0x26724d[_0x27341e([0x6a,0x74,0x69])],_0x32ca72=window[_0x27341e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b2953[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4b2953[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4da649={..._0x26724d,[_0x27341e([0x6a,0x74,0x69])]:_0x4b2953[_0x27341e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4b2953[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4da649[_0x27341e([0x76,0x63])],_0x4b680d(_0x4da649)==_0x32ca72;}}}async function _0x2366c0(){let _0x16c9d6=!0x0;try{const _0x125026=_0x3afa2e[_0x27341e([0x73,0x70,0x6c,0x69,0x74])](_0x27341e([0x2e])),[_0x2a395d,_0x543ad4,_0x36f1cc]=_0x125026;return _0x1f84ec(_0x2a395d),await _0x505774(_0x2a395d,_0x543ad4,_0x36f1cc),_0x16c9d6;}catch(_0x48aeca){return!0x1;}function _0x1f84ec(_0xd569f2){const _0x406bdd=_0x3b2c51(_0xd569f2);_0x406bdd&&_0x406bdd[_0x27341e([0x61,0x6c,0x67])]==_0x27341e([0x45,0x53,0x32,0x35,0x36])||(_0x16c9d6=!0x1);}async function _0x505774(_0x30a576,_0x4d73e5,_0x60fc6e){const _0xf35588=window[_0x27341e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27341e([0x66,0x72,0x6f,0x6d])](_0x5409c8(_0x60fc6e),_0x2e344d=>_0x2e344d[_0x27341e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x11d1a8=new window[(_0x27341e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27341e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30a576+_0x27341e([0x2e])+_0x4d73e5),_0x5c039b=window[_0x27341e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27341e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5c039b)return;const _0x11c3de=await _0x5c039b[_0x27341e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27341e([0x6a,0x77,0x6b]),_0xc3d0bf,{[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x45,0x43,0x44,0x53,0x41]),[_0x27341e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27341e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5c039b[_0x27341e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x45,0x43,0x44,0x53,0x41]),[_0x27341e([0x68,0x61,0x73,0x68])]:{[_0x27341e([0x6e,0x61,0x6d,0x65])]:_0x27341e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11c3de,_0xf35588,_0x11d1a8)||(_0x16c9d6=!0x1);}}function _0x3b2c51(_0x4db0f0){return _0x4db0f0[_0x27341e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27341e([0x65,0x79]))?JSON[_0x27341e([0x70,0x61,0x72,0x73,0x65])](_0x5409c8(_0x4db0f0)):null;}function _0x5409c8(_0x52d3b8){return window[_0x27341e([0x61,0x74,0x6f,0x62])](_0x52d3b8[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27341e([0x2b]))[_0x27341e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27341e([0x2f])));}function _0x4b680d(_0x255cb0){let _0x270ed1=0x1505;function _0x3dd628(_0x557568){for(let _0x3c55ef=0x0;_0x3c55ef<_0x557568[_0x27341e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c55ef++){const _0x376621=_0x557568[_0x27341e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c55ef);_0x270ed1=(_0x270ed1<<0x5)+_0x270ed1+_0x376621,_0x270ed1&=_0x270ed1;}}function _0x33445c(_0xb04415){Array[_0x27341e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb04415)?_0xb04415[_0x27341e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33445c):_0xb04415&&typeof _0xb04415==_0x27341e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27341e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb04415)[_0x27341e([0x73,0x6f,0x72,0x74])]()[_0x27341e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a0df7,_0x2473ae])=>{_0x3dd628(_0x5a0df7),_0x33445c(_0x2473ae);}):_0x3dd628(window[_0x27341e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb04415));}return _0x33445c(_0x255cb0),_0x270ed1>>>0x0;}function _0x4d95ec(_0x3a649d){return _0x3a649d[_0x27341e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27341e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27341e([0x30]));}function _0x1950d2(_0x115410){return _0x115410[_0x27341e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27341e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27341e([0x6a,0x6f,0x69,0x6e])]('');}function _0x5458c2(_0x3b7a9d){return _0x224b25[_0x27341e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27341e([0x68,0x61,0x73])](_0x3b7a9d);}function _0x374ae1(_0x187e3a){return _0x224b25[_0x27341e([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27341e([0x67,0x65,0x74])](_0x187e3a);}function _0x560e4d(){}function _0x27341e(_0xed9cf1){return _0xed9cf1['map'](_0x3864c0=>String['fromCharCode'](_0x3864c0))['join']('');}_0x1fab75(await _0x90c037());}(this);}set['adapter'](_0x3e6adf){if(this['_adapter'])throw new _0x213580('track-changes-adapter-already-set',this);this['_adapter']=_0x3e6adf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x502e07=!0x1,toJSON:_0x38fbf8=!0x1}={}){const _0x1b1d84=[];for(const _0x34050e of this['_suggestions']['values']())_0x502e07&&!_0x34050e['isInContent']||_0x1b1d84['push'](_0x34050e);return _0x38fbf8?_0x1b1d84['map'](_0x36a02c=>_0x36a02c['toJSON']()):_0x1b1d84;}['getSuggestion'](_0x5cbb10){const _0x1006b0=this['_suggestions']['get'](_0x5cbb10);if(!_0x1006b0)throw new _0x213580('track-changes-suggestion-not-found',this);return _0x1006b0;}['hasSuggestion'](_0x37c2a0){return this['_suggestions']['has'](_0x37c2a0);}['addSuggestionData'](_0x46ac41){const {authorId:_0xea449b,id:_0xc05612,attributes:_0x54a7fe}=_0x46ac41,[_0x31a53f,_0x34215a]=_0x46ac41['type']['split'](':'),_0x3f89f2=this['_suggestions']['get'](_0xc05612)||this['_createSuggestion'](_0x31a53f,_0x34215a,_0xc05612,_0xea449b,_0x54a7fe);if(this['_addThreadToSuggestion'](_0x3f89f2),this['_checkSuggestionCorrectness'](_0x3f89f2,_0x31a53f,_0x34215a||null,_0xea449b),_0x3f89f2['createdAt']=_0x46ac41['createdAt'],_0x3f89f2['_isDataLoaded']=!0x0,_0x54a7fe&&_0x54a7fe['@external']){const _0x4b907b=_0x54a7fe['@external'],_0x386772=this['_getExternalAuthor'](_0x4b907b['authorName']);_0x3f89f2['authoredAt']=_0x4b907b['createdAt'],_0x3f89f2['author']=_0x386772,_0x3f89f2['isExternal']=!0x0;}else _0x3f89f2['authoredAt']=_0x46ac41['createdAt'];switch(_0x46ac41['data']&&(_0x3f89f2['data']=_0x46ac41['data']),_0x46ac41['attributes']&&(_0x3f89f2['attributes']=_0x46ac41['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3f89f2['_saved']=!0x0),this['_suggestionState']['get'](_0x3f89f2)){case'notReady':this['_suggestionState']['set'](_0x3f89f2,'dataReady');break;case'markerReady':_0x3f89f2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3f89f2])),this['_refreshSuggestionsChain'](new Set([_0x3f89f2])),this['_suggestionState']['set'](_0x3f89f2,'ready'),this['fire']('suggestionLoaded',_0x3f89f2)):this['_suggestionState']['set'](_0x3f89f2,'removed');}return _0x3f89f2;}['acceptSuggestion'](_0x513a95){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x57c13c of _0x513a95['getAllAdjacentSuggestions']())_0x57c13c['accept']();});});}['discardSuggestion'](_0x3a74ae){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3000bc of _0x3a74ae['getAllAdjacentSuggestions']())_0x3000bc['discard']();});});}['enableCommand'](_0x4007c6,_0x359391){const _0x12fd05=this['editor']['commands']['get'](_0x4007c6);if(!_0x12fd05)throw new _0x213580('track-changes-command-not-found',this,{'commandName':_0x4007c6});if(this['_enabledCommands']['has'](_0x12fd05))throw new _0x213580('track-changes-enable-command-twice',this,{'commandName':_0x4007c6});this['_enabledCommands']['add'](_0x12fd05),_0x359391&&_0x12fd05['on']('execute',(_0xc4ad7,_0x382bd9)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x382bd9['length']>0x0&&_0x382bd9[_0x382bd9['length']-0x1]&&_0x382bd9[_0x382bd9['length']-0x1]['forceDefaultExecution']?_0x382bd9['pop']():(_0xc4ad7['return']=_0x359391((..._0x161a97)=>_0x12fd05['execute'](..._0x161a97,{'forceDefaultExecution':!0x0}),..._0x382bd9),_0xc4ad7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x9b545a){let _0x2eca89,_0x22640a;const _0x519570=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2eca89=_0x9b545a();}catch(_0x133c6b){_0x22640a=_0x133c6b;}return _0x519570||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x22640a&&_0x213580['rethrowUnexpectedError'](_0x22640a,this),_0x2eca89;}['markInsertion'](_0x6a39a8,_0x1a1c5c=null,_0x1b7cb3={}){if(_0x6a39a8['isCollapsed'])return null;const _0xfc797=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x1631e5,meta:_0x33117f}of this['_findSuggestions'](_0x6a39a8,'insertion'))if(_0x33117f['isOwn']){if(!_0x33117f['isNextTo']){if(_0x33117f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x1631e5,_0x1b7cb3))continue;return _0x1631e5;}if(Xt(_0x1631e5,_0x1b7cb3))return _0x1631e5;this['_breakSuggestionMarker'](_0x1631e5,_0x6a39a8['start'],_0x6a39a8['end']);break;}if(_0x1a1c5c==_0x1631e5['subType']&&Xt(_0x1631e5,_0x1b7cb3)){const _0x377301=_0x1631e5['getFirstRange']();return _0x377301['start']['isEqual'](_0x6a39a8['end'])?this['_setSuggestionRange'](_0x1631e5,this['_model']['createRange'](_0x6a39a8['start'],_0x377301['end'])):this['_setSuggestionRange'](_0x1631e5,this['_model']['createRange'](_0x377301['start'],_0x6a39a8['end'])),_0x1631e5;}}const _0x24134c=_0x20de28(),_0x4b67a5=_0xfc797['id'],_0x3402b1=_0x1a1c5c?'insertion:'+_0x1a1c5c:'insertion',_0x211f49=this['_setSuggestionData']({'id':_0x24134c,'type':_0x3402b1,'createdAt':new Date(),'authorId':_0x4b67a5,'attributes':_0x1b7cb3});return this['_addSuggestionMarker'](_0x3402b1,_0x24134c,_0x4b67a5,_0x6a39a8),_0x211f49;}['markMultiRangeInsertion'](_0x49d9c7,_0x575f57='multi',_0x4a15b3={}){const _0x4d1806=this['editor']['plugins']['get']('Users')['me'],_0x10f988=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x575f57,'join');for(const _0x73f01 of this['getSuggestions']())if(_0x73f01['author']['id']==_0x4d1806['id']&&'insertion'==_0x73f01['type']&&_0x73f01['subType']==_0x575f57&&Xt(_0x73f01,_0x4a15b3)&&(_0x10f988(_0x73f01['getRanges'](),_0x49d9c7)||_0x10f988(_0x49d9c7,_0x73f01['getRanges']()))){for(const _0x866343 of _0x49d9c7)_0x73f01['addRange'](_0x866343);return _0x73f01;}for(const {suggestion:_0xb00fab,meta:_0x52fccc}of this['_findSuggestions'](_0x49d9c7,'insertion')){if(!_0x52fccc['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52fccc['containsRangeInObject'])continue;if(!Xt(_0xb00fab,_0x4a15b3))continue;let _0x8eaa8e=!0x0;for(const _0x288b22 of _0xb00fab['getRanges']())for(const _0x376b0b of _0x49d9c7)if(!_0x288b22['containsRange'](_0x376b0b)){_0x8eaa8e=!0x1;break;}if(_0x8eaa8e)return _0xb00fab;}const _0x4fe125=_0x20de28(),_0x29f6b9=_0x4d1806['id'],_0x497d71='insertion:'+_0x575f57,_0x475705=this['_setSuggestionData']({'id':_0x4fe125,'type':_0x497d71,'createdAt':new Date(),'authorId':_0x29f6b9,'attributes':_0x4a15b3});for(const _0x27510d of _0x49d9c7)this['_addSuggestionMarker'](_0x497d71,_0x4fe125,_0x29f6b9,_0x27510d,o['getMultiRangeId']());return _0x475705;}['markInlineFormat'](_0x4da707,_0x241eb2,_0x2f1f76=null,_0x4f8436={}){if(_0x2f1f76=_0x2f1f76||Kt(_0x241eb2),_0x4da707['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3cf01a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f1f76,'accept');return this['forceDefaultExecution'](()=>_0x3cf01a([_0x4da707],_0x241eb2,_0x4f8436)),null;}const _0x399507=this['editor']['plugins']['get']('Users')['me'],_0x373560=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x3eb3a8,meta:_0x10278c}of this['_findSuggestions'](_0x4da707,'insertion'))_0x10278c['isOwn']&&!_0x10278c['isInsideObject']&&_0x373560['push'](..._0x3eb3a8['getRanges']());}const _0x1617be=function(_0x139dd5,_0x1f42c4){const _0x55150d=[];for(const _0x517f55 of _0x1f42c4){const _0x4d01c7=_0x139dd5['getIntersection'](_0x517f55);_0x4d01c7&&_0x55150d['push'](_0x4d01c7);}return _0x55150d;}(_0x4da707,_0x373560),_0x3ebc77=function(_0x2cb903,_0x52d2ad){const _0x5d8771=[_0x2cb903];for(const _0x39abd8 of _0x52d2ad){let _0x32b179=0x0;for(;_0x32b179<_0x5d8771['length'];){const _0x1f1a9c=_0x5d8771[_0x32b179]['getDifference'](_0x39abd8);_0x5d8771['splice'](_0x32b179,0x1,..._0x1f1a9c),_0x32b179+=_0x1f1a9c['length'];}}return _0x5d8771;}(_0x4da707,_0x373560);_0x1617be['length']&&this['_model']['change'](()=>{for(const _0x370f37 of _0x1617be){const _0x11434a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2f1f76,'accept');this['forceDefaultExecution'](()=>_0x11434a([_0x370f37],_0x241eb2,_0x4f8436));}});for(const _0x13e694 of _0x3ebc77){let _0x3b59b7=null,_0x4b9dc7=_0x13e694['start'],_0x44dfe5=_0x13e694['end'];for(const {suggestion:_0x1955ed,meta:_0x224de2}of this['_findSuggestions'](_0x13e694,'formatInline')){if(!_0x224de2['isOwn'])continue;if(_0x1955ed['subType']!=_0x2f1f76)continue;if(!Xt(_0x1955ed,_0x4f8436))continue;const _0x518c9f=_0x1955ed['getFirstRange']();if(_0x518c9f['containsRange'](_0x13e694,!0x0))return null;_0x4b9dc7=_0x4b9dc7['isBefore'](_0x518c9f['start'])?_0x4b9dc7:_0x518c9f['start'],_0x44dfe5=_0x44dfe5['isAfter'](_0x518c9f['end'])?_0x44dfe5:_0x518c9f['end'],_0x3b59b7?_0x518c9f['start']['isBefore'](_0x3b59b7['getFirstRange']()['start'])?(_0x3b59b7['removeMarkers'](),_0x3b59b7=_0x1955ed):_0x1955ed['removeMarkers']():_0x3b59b7=_0x1955ed;}const _0x485175=this['_model']['createRange'](_0x4b9dc7,_0x44dfe5);if(_0x3b59b7)this['_setSuggestionRange'](_0x3b59b7,_0x485175);else{const _0x3097a8=_0x20de28(),_0x55ce46=_0x399507['id'];this['_setSuggestionData']({'id':_0x3097a8,'type':'formatInline:'+_0x2f1f76,'data':_0x241eb2,'createdAt':new Date(),'authorId':_0x55ce46,'attributes':_0x4f8436}),this['_addSuggestionMarker']('formatInline:'+_0x2f1f76,_0x3097a8,_0x55ce46,_0x485175);}}return null;}['markBlockFormat'](_0x54b03d,_0x2fcfc6,_0x24d8b8=[],_0x192beb=null,_0x29869d={}){_0x2fcfc6['formatGroupId']||(_0x2fcfc6['formatGroupId']=_0x2fcfc6['commandName']),_0x2fcfc6['multipleBlocks']=_0x54b03d['is']('range'),_0x192beb=_0x192beb||Kt(_0x2fcfc6);const _0x594c0c=_0x24d8b8['map'](_0x50f473=>zt(_0x50f473,this['_model'])),_0x8c2700=_0x54b03d['is']('range')?_0x54b03d:zt(_0x54b03d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x4385e3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192beb,'accept');return this['forceDefaultExecution'](()=>_0x4385e3([_0x8c2700],_0x2fcfc6,_0x29869d)),null;}_0x594c0c['push'](_0x8c2700);let _0x1c85d7=!0x0;for(const _0x580104 of _0x594c0c)if(!this['_rangeIsInLocalUserInsertion'](_0x580104)){_0x1c85d7=!0x1;break;}if(_0x1c85d7&&'always'!==this['_trackFormatChanges']){const _0x2c9f58=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x192beb,'accept');return this['forceDefaultExecution'](()=>_0x2c9f58([_0x8c2700],_0x2fcfc6,_0x29869d)),null;}let _0x1ed2f5=null,_0x2593e3=_0x8c2700['start'],_0x1bdf75=_0x8c2700['end'];for(const {suggestion:_0x27a633,meta:_0xa49b3}of this['_findSuggestions'](_0x8c2700,'formatBlock')){if(!_0xa49b3['isOwn'])continue;if(_0xa49b3['isNextTo']||_0xa49b3['containsRangeInObject']||_0xa49b3['isInsideObject'])continue;if(_0x27a633['data']['formatGroupId']!=_0x2fcfc6['formatGroupId'])continue;if(!Xt(_0x27a633,_0x29869d))continue;const _0x199176=_0x27a633['getFirstRange']();if(_0x27a633['subType']==_0x192beb){if(_0x199176['containsRange'](_0x8c2700,!0x0))return null;_0x2593e3=_0x2593e3['isBefore'](_0x199176['start'])?_0x2593e3:_0x199176['start'],_0x1bdf75=_0x1bdf75['isAfter'](_0x199176['end'])?_0x1bdf75:_0x199176['end'],_0x1ed2f5?_0x199176['start']['isBefore'](_0x1ed2f5['getFirstRange']()['start'])?(_0x1ed2f5['removeMarkers'](),_0x1ed2f5=_0x27a633):_0x27a633['removeMarkers']():_0x1ed2f5=_0x27a633;}else{const _0x231f43=_0x8c2700['getIntersection'](_0x199176);this['_cutOutSuggestionMarker'](_0x27a633,_0x231f43);}}const _0x5c1bc6=this['editor']['plugins']['get']('Users')['me'],_0x9e3601=_0x20de28(),_0x411af0=_0x5c1bc6['id'];if(_0x1ed2f5)return this['_setSuggestionRange'](_0x1ed2f5,this['_model']['createRange'](_0x2593e3,_0x1bdf75)),_0x1ed2f5;{const _0x376cf0=this['_setSuggestionData']({'id':_0x9e3601,'type':'formatBlock:'+_0x192beb,'data':_0x2fcfc6,'createdAt':new Date(),'authorId':_0x411af0,'attributes':_0x29869d});return this['_addSuggestionMarker']('formatBlock:'+_0x192beb,_0x9e3601,_0x411af0,this['_model']['createRange'](_0x2593e3,_0x1bdf75)),_0x376cf0;}}['markMultiRangeBlockFormat'](_0x548241,_0x1e0c22,_0x3929c1=[],_0x5712be=null,_0x4589b4={}){_0x1e0c22['formatGroupId']||(_0x1e0c22['formatGroupId']=_0x1e0c22['commandName']);const _0x5da48d=_0x548241[0x0];_0x1e0c22['multipleBlocks']=_0x5da48d['is']('range'),_0x5712be=_0x5712be||Kt(_0x1e0c22);const _0x4b4389=_0x3929c1['map'](_0x3aa5be=>zt(_0x3aa5be,this['_model'])),_0x5efc12=_0x5da48d['is']('range')?_0x548241:_0x548241['map'](_0x1472c1=>zt(_0x1472c1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x11a098=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'accept');return this['forceDefaultExecution'](()=>_0x11a098(_0x5efc12,_0x1e0c22,_0x4589b4)),null;}_0x4b4389['push'](..._0x5efc12);let _0x3c1b8f=!0x0;for(const _0x3cb460 of _0x4b4389)if(!this['_rangeIsInLocalUserInsertion'](_0x3cb460)){_0x3c1b8f=!0x1;break;}if(_0x3c1b8f&&'always'!==this['_trackFormatChanges']){const _0x54b454=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'accept');return this['forceDefaultExecution'](()=>_0x54b454(_0x5efc12,_0x1e0c22,_0x4589b4)),null;}const _0x3a583b=this['editor']['plugins']['get']('Users')['me'];for(const _0x5da67f of this['getSuggestions']()){if(_0x5da67f['author']['id']!=_0x3a583b['id'])continue;if('formatBlock'!=_0x5da67f['type']||_0x5da67f['data']['formatGroupId']!=_0x1e0c22['formatGroupId'])continue;if(!Xt(_0x5da67f,_0x4589b4))continue;const _0x400a4a=_0x5da67f['subType']==_0x5712be;for(let _0x333f7b=0x0;_0x333f7b<_0x5efc12['length'];_0x333f7b++){const _0x2653cc=_0x5efc12[_0x333f7b];for(const _0x41b946 of _0x5da67f['getMarkers']()){const _0x537d0b=_0x41b946['getRange']();if(_0x2653cc['isEqual'](_0x537d0b)){_0x400a4a?(_0x5efc12['splice'](_0x333f7b,0x1),_0x333f7b--):_0x5da67f['removeMarker'](_0x41b946['name']);break;}}}}if(0x0==_0x5efc12['length'])return null;const _0xca6bf9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5712be,'join');for(const _0x10d6cd of this['getSuggestions']())if(_0x10d6cd['author']['id']==_0x3a583b['id']&&'formatBlock'==_0x10d6cd['type']&&_0x10d6cd['data']['formatGroupId']==_0x1e0c22['formatGroupId']&&_0x10d6cd['subType']==_0x5712be&&Xt(_0x10d6cd,_0x4589b4)&&(_0xca6bf9(_0x10d6cd['getRanges'](),_0x5efc12)||_0xca6bf9(_0x5efc12,_0x10d6cd['getRanges']()))){for(const _0x5118bd of _0x5efc12)_0x10d6cd['addRange'](_0x5118bd);return _0x10d6cd;}const _0x2f469a=_0x20de28(),_0x25a90b=_0x3a583b['id'],_0x353d8e='formatBlock:'+_0x5712be,_0x836fa0=this['_setSuggestionData']({'id':_0x2f469a,'type':_0x353d8e,'data':_0x1e0c22,'createdAt':new Date(),'authorId':_0x25a90b,'attributes':_0x4589b4});for(const _0x4fea0d of _0x5efc12)this['_addSuggestionMarker'](_0x353d8e,_0x2f469a,_0x25a90b,_0x4fea0d,o['getMultiRangeId']());return _0x836fa0;}['markDeletion'](_0x57b8e6,_0x19d923=null,_0x53b299={}){if(_0x57b8e6['isCollapsed'])return null;const _0x2f8aa8=this['editor']['plugins']['get']('Users')['me'],_0x375217=new _0x3bdca8(_0x57b8e6['start'],_0x57b8e6['end']);for(const {suggestion:_0x30b0b9,meta:_0x14ff77}of this['_findSuggestions'](_0x375217,'insertion'))if(_0x14ff77['isOwn']&&!_0x14ff77['isNextTo']){if(_0x30b0b9['isMultiRange']){const _0x3729a6=_0x30b0b9['getRanges']()['filter'](_0x1e1903=>'$graveyard'!=_0x1e1903['root']['rootName']);_0x3729a6['every'](_0x39cfa9=>_0x375217['containsRange'](_0x39cfa9,!0x0))&&_0x30b0b9['discard']();if(_0x3729a6['some'](_0x5ab856=>_0x5ab856['containsRange'](_0x375217,!0x0))){const _0x3c5217=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x19d923,'accept');return this['forceDefaultExecution'](()=>_0x3c5217([_0x375217],null,_0x53b299)),null;}}else{const _0x14a54a=_0x375217['getIntersection'](_0x30b0b9['getFirstRange']());null!==_0x14a54a&&_0x30b0b9['_onDiscard']([_0x14a54a],null,_0x53b299);}}if(_0x375217['detach'](),_0x375217['isCollapsed']||'$graveyard'==_0x375217['root']['rootName'])return null;let _0x168792=null,_0x1c847c=_0x375217['start'],_0x102009=_0x375217['end'];const _0x4aaad7=this['_findSuggestions'](_0x375217,'deletion');for(const {suggestion:_0x32d2a6,meta:_0x26c2a8}of _0x4aaad7){const _0xa8420b=this['_model']['createRange'](_0x1c847c,_0x102009);if(_0x26c2a8['isOwn']&&(this['_mergeNestedSuggestions']||!_0x26c2a8['containsRangeInObject']&&!_0x26c2a8['isInsideObject'])){if(_0x32d2a6['isMultiRange']){if(!Xt(_0x32d2a6,_0x53b299))continue;let _0x4fdf7e=!0x0;for(const _0xa8c997 of _0x32d2a6['getRanges']()){if(_0xa8c997['containsRange'](_0xa8420b,!0x0))return _0x32d2a6;_0xa8420b['containsRange'](_0xa8c997)||(_0x4fdf7e=!0x1);}_0x4fdf7e&&_0x32d2a6['discard']();}else{const _0x5bebd9=_0x32d2a6['getFirstRange']();if(_0x5bebd9['containsRange'](_0xa8420b,!0x0))return _0x32d2a6;if(!Xt(_0x32d2a6,_0x53b299)){_0xa8420b['containsRange'](_0x5bebd9)?_0x32d2a6['removeMarkers']():_0x5bebd9['containsPosition'](_0x1c847c)?_0x1c847c=_0x5bebd9['end']:_0x5bebd9['containsPosition'](_0x102009)&&(_0x102009=_0x5bebd9['start']);continue;}_0x1c847c=_0x1c847c['isBefore'](_0x5bebd9['start'])?_0x1c847c:_0x5bebd9['start'],_0x102009=_0x102009['isAfter'](_0x5bebd9['end'])?_0x102009:_0x5bebd9['end'],_0x53b299=Object['assign']({},_0x32d2a6['attributes']),_0x168792?_0x5bebd9['start']['isBefore'](_0x168792['getFirstRange']()['start'])?(_0x168792['removeMarkers'](),_0x168792=_0x32d2a6):_0x32d2a6['removeMarkers']():_0x168792=_0x32d2a6;}}}if(_0x168792)return this['_setSuggestionRange'](_0x168792,this['_model']['createRange'](_0x1c847c,_0x102009)),_0x168792;{const _0x15b0fc=_0x20de28(),_0x164bfa=this['_model']['createRange'](_0x1c847c,_0x102009),_0x3a6c6=_0x2f8aa8['id'],_0x987306=_0x19d923?'deletion:'+_0x19d923:'deletion',_0x21dbd2=this['_setSuggestionData']({'id':_0x15b0fc,'type':_0x987306,'createdAt':new Date(),'authorId':_0x3a6c6,'attributes':_0x53b299});return this['_addSuggestionMarker'](_0x987306,_0x15b0fc,_0x3a6c6,_0x164bfa),_0x21dbd2;}}['markMultiRangeDeletion'](_0x429f77,_0x3585b8='multi',_0x3abc9f={}){const _0x3532b5=this['editor']['plugins']['get']('Users')['me'],_0x3d2e0c=_0x429f77['map'](_0x22a575=>new _0x3bdca8(_0x22a575['start'],_0x22a575['end'])),_0x1939e2=new Set();for(const {suggestion:_0x459385,meta:_0x190f41}of this['_findSuggestions'](_0x3d2e0c,'insertion'))_0x190f41['isOwn']&&!_0x190f41['isNextTo']&&_0x1939e2['add'](_0x459385);for(const _0x1671fc of _0x1939e2)if(_0x1671fc['isMultiRange']){const _0x44a8d8=_0x1671fc['getRanges']();(!_0x1671fc['attributes']||!_0x1671fc['attributes']['skipNestingCheck'])&&(_0x44a8d8['every'](_0x130403=>_0x3d2e0c['some'](_0xc46345=>_0xc46345['containsRange'](_0x130403,!0x0)))&&_0x1671fc['discard']());if(_0x3d2e0c['every'](_0x418c3f=>_0x44a8d8['some'](_0x5a3778=>_0x5a3778['containsRange'](_0x418c3f,!0x0)))){const _0x4c224d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'accept');return this['forceDefaultExecution'](()=>_0x4c224d(_0x429f77,null,_0x3abc9f)),null;}}else{const _0x39c0e4=_0x1671fc['getFirstRange']();_0x3d2e0c['some'](_0x569eb2=>_0x569eb2['containsRange'](_0x39c0e4,!0x0))&&_0x1671fc['discard']();if(_0x3d2e0c['every'](_0x4d75cc=>_0x39c0e4['containsRange'](_0x4d75cc,!0x0))){const _0x5b509d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'accept');return this['forceDefaultExecution'](()=>_0x5b509d(_0x3d2e0c,null,_0x3abc9f)),null;}}const _0x2d44f2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3585b8,'join');let _0x1abfbb=null;for(const _0x3ee0c6 of this['getSuggestions']())if(_0x3ee0c6['author']['id']==_0x3532b5['id']&&_0x3ee0c6['isInContent']&&'deletion'==_0x3ee0c6['type']&&_0x3ee0c6['subType']==_0x3585b8&&Xt(_0x3ee0c6,_0x3abc9f)&&(_0x2d44f2(_0x3ee0c6['getRanges'](),_0x3d2e0c)||_0x2d44f2(_0x3d2e0c,_0x3ee0c6['getRanges']()))){if(_0x1abfbb){if(_0x3ee0c6['commentThread']&&_0x3ee0c6['commentThread']['length'])continue;for(const _0x39e375 of _0x3ee0c6['getRanges']())_0x1abfbb['isIntersectingWithRange'](_0x39e375)||_0x1abfbb['addRange'](_0x39e375);_0x3ee0c6['removeMarkers']();}else{_0x1abfbb=_0x3ee0c6;for(const _0x1abce6 of _0x3d2e0c)_0x3ee0c6['isIntersectingWithRange'](_0x1abce6)||_0x3ee0c6['addRange'](_0x1abce6);}}if(_0x1abfbb)return _0x1abfbb;_0x1939e2['clear']();for(const {suggestion:_0xb47063,meta:_0x43d118}of this['_findSuggestions'](_0x3d2e0c,'deletion'))_0x43d118['isOwn']&&(this['_mergeNestedSuggestions']||!_0x43d118['containsRangeInObject']&&!_0x43d118['isInsideObject'])&&Xt(_0xb47063,_0x3abc9f)&&_0x1939e2['add'](_0xb47063);for(const _0x55f3c4 of _0x1939e2){const _0x521974=_0x55f3c4['getRanges']();if(!_0x3abc9f||!_0x3abc9f['skipNestingCheck']){if(_0x3d2e0c['every'](_0x250734=>_0x521974['some'](_0x4d4d18=>_0x4d4d18['containsRange'](_0x250734,!0x0))))return _0x55f3c4;}(!_0x55f3c4['attributes']||!_0x55f3c4['attributes']['skipNestingCheck'])&&(_0x521974['every'](_0x476592=>_0x3d2e0c['some'](_0x930056=>_0x930056['containsRange'](_0x476592,!0x0)))&&_0x55f3c4['discard']());}const _0x5a0762=_0x20de28(),_0x3cf469=_0x3532b5['id'],_0xee4931='deletion:'+_0x3585b8,_0x28b2e6=this['_setSuggestionData']({'id':_0x5a0762,'type':_0xee4931,'createdAt':new Date(),'authorId':_0x3cf469,'attributes':_0x3abc9f});for(const _0x1513ec of _0x3d2e0c)_0x1513ec['detach'](),_0x1513ec['isCollapsed']||'$graveyard'==_0x1513ec['root']['rootName']||this['_addSuggestionMarker'](_0xee4931,_0x5a0762,_0x3cf469,_0x1513ec,o['getMultiRangeId']());return _0x28b2e6;}['markAttributeChange'](_0x1b045c,_0x199964,_0x5acd06,_0x3bc182,_0x457c88){if(_0x1b045c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x35174e=this['editor']['plugins']['get']('Users')['me']['id'],_0x16409d=Array['from'](this['_suggestions']['values']())['filter'](_0x441cd5=>'attribute'==_0x441cd5['type']&&_0x441cd5['data']['key']==_0x199964&&_0x441cd5['isIntersectingWithRange'](_0x1b045c));if('default'===this['_trackFormatChanges']){const _0x368a49=this['_findSuggestions'](_0x1b045c,'insertion')['filter'](({meta:_0x1da9db})=>_0x1da9db['isOwn']&&!_0x1da9db['isInsideObject']&&!_0x1da9db['isNextTo'])['map'](({suggestion:_0x420506})=>_0x420506);_0x16409d['unshift'](..._0x368a49);}const _0x4f9619=new Map([[_0x1b045c,_0x5acd06]]);for(const _0x474bf7 of _0x16409d){const _0x2843f1='attribute'==_0x474bf7['type']?_0x474bf7['data']['oldValue']:void 0x0,_0x37c37b=_0x474bf7['getFirstRange'](),_0x5a92b1=Array['from'](_0x4f9619['keys']())['find'](_0x47a73c=>_0x47a73c['isIntersecting'](_0x37c37b));if(!_0x5a92b1)continue;const _0xb94cec=_0x5a92b1['getDifference'](_0x37c37b);this['_isBlockAttribute'](_0x199964)&&'insertion'==_0x474bf7['type']&&0x0!=_0xb94cec['length']||(_0x4f9619['delete'](_0x5a92b1),_0xb94cec['forEach'](_0x122a53=>{_0x4f9619['set'](_0x122a53,_0x5acd06);}),'insertion'!=_0x474bf7['type']&&_0x2843f1!=_0x3bc182&&_0x4f9619['set'](_0x5a92b1['getIntersection'](_0x37c37b),_0x2843f1));}const _0x331e80=[];for(const [_0x39fb41,_0x22e51a]of _0x4f9619){const _0x5a6936=_0x20de28(),_0x117430={'key':_0x199964,'oldValue':_0x22e51a,'newValue':_0x3bc182};_0x199964['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':_0x199964});const _0x393e69=('attribute:'+(_0x199964+'|'+Kt({'newValue':_0x3bc182})))['substring'](0x0,0x3c),_0x402abc=this['_setSuggestionData']({'id':_0x5a6936,'type':_0x393e69,'data':_0x117430,'createdAt':new Date(),'authorId':_0x35174e,'attributes':_0x457c88});_0x331e80['push'](_0x402abc),this['_addSuggestionMarker'](_0x393e69,_0x5a6936,_0x35174e,_0x39fb41);}return _0x331e80;}['enableDefaultAttributesIntegration'](_0x55ef2c){this['enableCommand'](_0x55ef2c,(_0x357097,..._0x473946)=>{this['_recordAttributeChanges'](()=>{_0x357097(..._0x473946);});});}['registerBlockAttribute'](_0x593487){this['_blockAttributeKeys']['add'](_0x593487);}['registerInlineAttribute'](_0x5c2550){this['_inlineAttributeKeys']['add'](_0x5c2550);}['_getAttributeKey'](_0x5ca6b8){return'attribute'==_0x5ca6b8['type']?_0x5ca6b8['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x48ec55,_0x36979f){const _0x43ec25=_0x48ec55['getFirstMarker']();this['_model']['change'](_0x5cbfad=>{_0x5cbfad['updateMarker'](_0x43ec25,{'range':_0x36979f});});}['_addThreadToSuggestion'](_0x2a73ee){const _0x4bbd39=_0x2a73ee['id'],_0x2525ef=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4bbd39)||this['_commentsRepository']['addCommentThread']({'channelId':_0x2525ef,'threadId':_0x4bbd39,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2327f9=this['_commentsRepository']['getCommentThread'](_0x4bbd39);_0x2327f9['unbind']('isRemovable'),_0x2327f9['isRemovable']=!0x1,_0x2a73ee['commentThread']=_0x2327f9;}['_checkSuggestionCorrectness'](_0x53abff,_0x5a4153,_0x4e06f4,_0x286537){if(_0x53abff['type']!=_0x5a4153||_0x53abff['subType']!=_0x4e06f4||_0x53abff['creator']['id']!=_0x286537)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x213580('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x331295,_0x231ff1){const _0x593c83=_0x331295['getFirstRange']();if(_0x231ff1['isEqual'](_0x593c83))_0x331295['removeMarkers']();else{if(_0x593c83['containsRange'](_0x231ff1)){const _0x2d4e4c=this['_model']['createPositionAt'](_0x231ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x593c83['start'],_0x2d4e4c));const _0x2b4e0c=_0x20de28(),_0x4e8592=_0x331295['creator']['id'],_0x59fe6b=_0x331295['type']+':'+_0x331295['subType'];this['_setSuggestionData']({'id':_0x2b4e0c,'type':_0x59fe6b,'createdAt':new Date(),'authorId':_0x4e8592,'data':_0x331295['data'],'attributes':_0x331295['attributes']});const _0x1f61db=this['_model']['createPositionAt'](_0x231ff1['end']['parent'],'after'),_0x28c9c6=this['_model']['createRange'](_0x1f61db,_0x593c83['end']);this['_addSuggestionMarker'](_0x59fe6b,_0x2b4e0c,_0x4e8592,_0x28c9c6);}else{if(_0x593c83['containsPosition'](_0x231ff1['start'])){const _0x173a14=this['_model']['createPositionAt'](_0x231ff1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x593c83['start'],_0x173a14));}else{const _0x2e5385=this['_model']['createPositionAt'](_0x231ff1['end']['parent'],'after');this['_setSuggestionRange'](_0x331295,this['_model']['createRange'](_0x2e5385,_0x593c83['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1bd986){for(const {suggestion:_0x585e23,meta:_0x4331eb}of this['_findSuggestions'](_0x1bd986,'insertion')){if(!_0x4331eb['isOwn'])continue;const _0x427d12=_0x585e23['getRanges']();for(const _0x21f414 of _0x427d12)if(!_0x1bd986['getDifference'](_0x21f414)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xb4dc9f){const _0x33c72d=this['editor']['plugins']['get']('Users')['getUser'](_0xb4dc9f);if(!_0x33c72d)throw new _0x213580('track-changes-user-not-found',this);return _0x33c72d;}['_getExternalAuthor'](_0x13b18f){const _0x291809=this['editor']['plugins']['get']('Users'),_0x238542=_0x5f3945('external:'+_0x13b18f),_0x3c1deb=_0x291809['getUser'](_0x238542);return _0x3c1deb||_0x291809['addUser']({'id':_0x238542,'name':_0x13b18f});}['_createSuggestion'](_0x1fff9b,_0x1bd108,_0x2bc0da,_0x1c7474,_0x3e29fe){const _0x1d7014=this['_getAuthorFromId'](_0x1c7474),_0x37ea1d=this['_suggestionFactory']['buildSuggestion'](_0x1fff9b,_0x1bd108,_0x2bc0da,_0x1d7014,_0x3e29fe,_0x4c199f=>{this['_updateSuggestionData'](_0x2bc0da,{'attributes':_0x4c199f});const _0x44c0ca=this['getSuggestion'](_0x2bc0da);this['_joinWithAdjacentSuggestions'](new Set([_0x44c0ca])),this['_refreshSuggestionsChain'](new Set([_0x44c0ca]));});return this['listenTo'](_0x37ea1d,'accept',()=>{this['_updateSuggestionData'](_0x2bc0da,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x37ea1d,'discard',()=>{this['_updateSuggestionData'](_0x2bc0da,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2bc0da,_0x37ea1d),this['_suggestionState']['set'](_0x37ea1d,'notReady'),_0x37ea1d;}['_splitMarkerName'](_0x5093b9){const _0xa1f39c=_0x5093b9['split'](':');return{'group':_0xa1f39c[0x0],'type':_0xa1f39c[0x1],'subType':_0xa1f39c['length']>=0x5?_0xa1f39c[0x2]:null,'id':_0xa1f39c['length']<0x5?_0xa1f39c[0x2]:_0xa1f39c[0x3],'authorId':_0xa1f39c['length']<0x5?_0xa1f39c[0x3]:_0xa1f39c[0x4],'markerCount':0x6==_0xa1f39c['length']?_0xa1f39c[0x5]:null};}['_breakSuggestionMarker'](_0x156723,_0x1fba84,_0xf9799f){const _0x5de1f8=_0x156723['getFirstRange'](),_0x3fa4c7=_0x5de1f8['start'],_0x5b9fca=_0x5de1f8['end'];this['_setSuggestionRange'](_0x156723,this['_model']['createRange'](_0x3fa4c7,_0x1fba84));const _0x700158=_0x20de28(),_0x4f4e72=_0x156723['creator']['id'],_0x202d16=_0x156723['type']+(_0x156723['subType']?':'+_0x156723['subType']:'');this['_setSuggestionData']({'id':_0x700158,'type':_0x202d16,'createdAt':new Date(),'authorId':_0x4f4e72,'originalSuggestionId':_0x156723['id'],'attributes':_0x156723['attributes'],'data':_0x156723['data']});const _0x1a4f2c=this['_getAttributeKey'](_0x156723);('formatBlock'==_0x156723['type']||_0x1a4f2c&&this['_isBlockAttribute'](_0x1a4f2c))&&(_0xf9799f=this['_model']['createPositionBefore'](_0xf9799f['parent'])),this['_addSuggestionMarker'](_0x202d16,_0x700158,_0x4f4e72,this['_model']['createRange'](_0xf9799f,_0x5b9fca));}['_findSuggestions'](_0x41f9c2,_0x2a2208=null){const _0x461665=[],_0x3417e2=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x41f9c2)||(_0x41f9c2=[_0x41f9c2]);for(const _0x4ca7a2 of this['getSuggestions']()){if(!_0x4ca7a2['isInContent'])continue;if(_0x2a2208&&_0x4ca7a2['type']!=_0x2a2208)continue;let _0x2c0733=!0x1;for(const _0x5723f6 of _0x4ca7a2['getRanges']()){for(const _0x301f5b of _0x41f9c2){const _0x51a9f9=_0x301f5b['start']['isEqual'](_0x5723f6['end'])||_0x301f5b['end']['isEqual'](_0x5723f6['start']);if(_0x51a9f9||_0x301f5b['getIntersection'](_0x5723f6)){const _0x5346f3=_0x301f5b['containsRange'](_0x5723f6)&&Gt(this['_model']['schema'],_0x5723f6['start'],_0x301f5b),_0x1e049a=_0x5723f6['containsRange'](_0x301f5b)&&Gt(this['_model']['schema'],_0x301f5b['start'],_0x5723f6);_0x461665['push']({'suggestion':_0x4ca7a2,'meta':{'isOwn':_0x3417e2==_0x4ca7a2['author'],'isNextTo':_0x51a9f9,'isInsideObject':_0x5346f3,'containsRangeInObject':_0x1e049a}}),_0x2c0733=!0x0;break;}}if(_0x2c0733)break;}}return _0x461665;}['_addSuggestionMarker'](_0x594e91,_0x31fd66,_0x26bbde,_0x13d9fd,_0x1fe373){this['_model']['change'](_0x15a2f1=>{let _0x40a72b='suggestion:'+_0x594e91+':'+_0x31fd66+':'+_0x26bbde;_0x1fe373&&(_0x40a72b=_0x40a72b+':'+_0x1fe373),_0x15a2f1['addMarker'](_0x40a72b,{'range':_0x13d9fd,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x19f340){const _0x55424f=_0x19f340['previous'],_0x11cac3=_0x19f340['next'];_0x19f340['previous']=null,_0x19f340['next']=null,null!=_0x55424f&&_0x55424f['next']==_0x19f340&&(_0x55424f['next']=_0x11cac3),null!=_0x11cac3&&_0x11cac3['previous']==_0x19f340&&(_0x11cac3['previous']=_0x55424f),'ready'==this['_suggestionState']['get'](_0x19f340)&&(this['_suggestionState']['set'](_0x19f340,'removed'),this['fire']('suggestionUnloaded',_0x19f340,_0x55424f,_0x11cac3));}['_setSuggestionData'](_0x2a5d19){const _0x37c20e=_0x2a5d19['id'],_0x2369b3=this['addSuggestionData'](_0x2a5d19);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5945c7=this['editor']['plugins']['get']('PendingActions'),_0x111597=_0x2369b3['hasComments'],_0x8e0cdd=_0x2369b3['subType']?_0x2369b3['type']+':'+_0x2369b3['subType']:_0x2369b3['type'],_0x13951a=this['editor']['locale'],_0x4df536=_0x5945c7['add'](c(_0x13951a,'PENDING_ACTION_SUGGESTION')),_0x1a7d04={'id':_0x37c20e,'type':_0x8e0cdd,'hasComments':_0x111597,'data':_0x2a5d19['data']||null,'originalSuggestionId':_0x2a5d19['originalSuggestionId']||null,'attributes':_0x2369b3['attributes']};this['_adapter']['addSuggestion'](_0x1a7d04)['then'](_0x46422d=>{_0x2369b3['_saved']=!0x0,_0x5945c7['remove'](_0x4df536),_0x46422d&&_0x46422d['createdAt']&&(this['_suggestions']['get'](_0x37c20e)['createdAt']=_0x46422d['createdAt']);})['catch'](_0x4de2fa=>{throw _0x585e27('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2369b3['discard']();}),_0x2369b3['stopListening'](),this['_suggestions']['delete'](_0x2369b3['id']),this['_suggestionState']['delete'](_0x2369b3),_0x4de2fa;});}return _0x2369b3;}['_isBlockAttribute'](_0x4b0447){return this['_blockAttributeKeys']['has'](_0x4b0447);}['_updateSuggestionData'](_0x5f12e3,_0x1d8768){const _0x41ee5e=this['editor']['plugins']['get']('PendingActions'),_0x1d35be=this['getSuggestion'](_0x5f12e3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1d35be['_saved']){const _0x142755=_0x41ee5e['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5f12e3,_0x1d8768)['then'](()=>{_0x41ee5e['remove'](_0x142755);});}else _0x1d35be['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5f12e3,_0x1d8768);});}}['_getSuggestionData'](_0x55b650){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x213580('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x55b650);}['_handleNewSuggestionMarker'](_0xadea52){const {id:_0xf1f123,type:_0x3fbc88,subType:_0x90c5b2,authorId:_0xa18936}=this['_splitMarkerName'](_0xadea52),_0x1a374c=this['_suggestions']['get'](_0xf1f123)||this['_createSuggestion'](_0x3fbc88,_0x90c5b2,_0xf1f123,_0xa18936,{});switch(this['_checkSuggestionCorrectness'](_0x1a374c,_0x3fbc88,_0x90c5b2,_0xa18936),this['_suggestionState']['get'](_0x1a374c)){case'notReady':this['_getSuggestionData'](_0xf1f123)['then'](_0x32a3bb=>{let _0x3da9fd=Promise['resolve']();_0x32a3bb['hasComments']&&(_0x3da9fd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xf1f123})),_0x3da9fd['then'](()=>{this['addSuggestionData'](_0x32a3bb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1a374c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xf1f123,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1a374c,'ready'),this['fire']('suggestionLoaded',_0x1a374c);break;case'ready':this['fire']('suggestionChanged',_0x1a374c);}return _0x1a374c['addMarkerName'](_0xadea52),_0x1a374c;}['_refreshSuggestionsChain'](_0x2fa57e){const _0x530a37=Array['from'](_0x2fa57e),_0x24a67b=_0x530a37['filter'](_0x212037=>'attribute'==_0x212037['type']);this['_refreshAttributeSuggestionsChain'](_0x24a67b);const _0x15e0bc=_0x530a37['filter'](_0x12c219=>!_0x12c219['isMultiRange']&&'attribute'!=_0x12c219['type']),_0x446c09=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4dcc91=>!_0x4dcc91['isMultiRange']&&'attribute'!=_0x4dcc91['type']),_0x327ae7=_0x446c09['filter'](_0x371a47=>!_0x2fa57e['has'](_0x371a47)),_0x505daf=new Map(_0x446c09['map'](_0x5eaac4=>[_0x5eaac4,this['_suggestionFactory']['getSuggestionCallback'](_0x5eaac4['type'],_0x5eaac4['subType'],'chain')])),_0x3110b3=new Map(_0x446c09['map'](_0x5a7632=>[_0x5a7632,_0x5a7632['getFirstRange']()])),_0x37cbe5=new Set(),_0x2010ee=new Set();for(let _0x4f5da0=0x0;_0x4f5da0<_0x15e0bc['length'];_0x4f5da0++)_0x5c86f9(_0x15e0bc[_0x4f5da0],_0x15e0bc,_0x4f5da0+0x1);for(let _0x4b7597=0x0;_0x4b7597<_0x15e0bc['length'];_0x4b7597++)_0x5c86f9(_0x15e0bc[_0x4b7597],_0x327ae7,0x0);const _0x4fcaea=new Set();for(let _0x46d651=0x0;_0x46d651<_0x15e0bc['length'];_0x46d651++){const _0x55f811=_0x15e0bc[_0x46d651];!_0x2010ee['has'](_0x55f811)&&_0x55f811['previous']&&(_0x4fcaea['add'](_0x55f811['previous']),_0x55f811['previous']['next']===_0x55f811&&(_0x55f811['previous']['next']=null),_0x55f811['previous']=null),!_0x37cbe5['has'](_0x55f811)&&_0x55f811['next']&&(_0x4fcaea['add'](_0x55f811['next']),_0x55f811['next']['previous']===_0x55f811&&(_0x55f811['next']['previous']=null),_0x55f811['next']=null);}function _0x5c86f9(_0xf83af0,_0x449170,_0x42a39d){for(let _0xb664f5=_0x42a39d;_0xb664f5<_0x449170['length'];_0xb664f5++){const _0x55fe45=_0x3125d7(_0xf83af0,_0x449170[_0xb664f5]);_0x55fe45&&(_0x55fe45[0x0]['next']=_0x55fe45[0x1],_0x55fe45[0x1]['previous']=_0x55fe45[0x0],_0x37cbe5['add'](_0x55fe45[0x0]),_0x2010ee['add'](_0x55fe45[0x1]));}}function _0x3125d7(_0x3a75e5,_0x4e47a6){if(_0x3a75e5['author']['id']!==_0x4e47a6['author']['id'])return null;const _0x229ea4=_0x505daf['get'](_0x3a75e5)(_0x3a75e5,_0x4e47a6,_0x3110b3['get'](_0x3a75e5),_0x3110b3['get'](_0x4e47a6));if(!_0x229ea4)return null;return _0x505daf['get'](_0x4e47a6)(_0x3a75e5,_0x4e47a6,_0x3110b3['get'](_0x3a75e5),_0x3110b3['get'](_0x4e47a6))?_0x229ea4[0x1]['commentThread']&&_0x229ea4[0x1]['commentThread']['length']?null:_0x229ea4:null;}_0x4fcaea['size']&&this['_refreshSuggestionsChain'](_0x4fcaea);}['_refreshAttributeSuggestionsChain'](_0x2937b7){if(0x0==_0x2937b7['length'])return;const _0x42c249=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x524747=>'attribute'==_0x524747['type']&&_0x524747['_isDataLoaded']),_0x582fa9=[],_0x2e5bb9=new Map();for(const _0x1c1111 of _0x42c249){const _0x27ae28=_0x5f3945(_0x1c1111['attributes']);_0x2e5bb9['has'](_0x27ae28)||(_0x2e5bb9['set'](_0x27ae28,_0x582fa9['length']),_0x582fa9['push']([]));const _0xca6970=_0x2e5bb9['get'](_0x27ae28);_0x582fa9[_0xca6970]['push'](_0x1c1111);}!(function(){_0x582fa9['sort']((_0x43bf2c,_0x146a38)=>{const _0xed96de=_0x43bf2c[0x0]['createdAt'],_0x26c20c=_0x146a38[0x0]['createdAt'];return _0xed96de==_0x26c20c?_0x43bf2c[0x0]['attributes']['groupId']<_0x146a38[0x0]['attributes']['groupId']?-0x1:0x1:_0xed96de<_0x26c20c?-0x1:0x1;});for(const _0x3c2cdf of _0x582fa9)_0x3c2cdf['sort']((_0x204706,_0x5c13dc)=>_0x204706['id']<_0x5c13dc['id']?-0x1:0x1);}());for(let _0x239b2e=0x0;_0x239b2e<_0x582fa9['length'];_0x239b2e++){if(0x0==_0x582fa9[_0x239b2e]['length'])continue;const _0x268900=[];for(let _0xb56e3c=_0x239b2e+0x1;_0xb56e3c<_0x582fa9['length'];_0xb56e3c++)0x0!=_0x582fa9[_0xb56e3c]['length']&&_0x78002(_0x582fa9[_0x239b2e],_0x582fa9[_0xb56e3c])&&_0x268900['push'](_0xb56e3c);for(const _0x4035d8 of _0x268900)_0x582fa9[_0x239b2e]=_0x582fa9[_0x239b2e]['concat'](_0x582fa9[_0x4035d8]),_0x582fa9[_0x4035d8]=[];}for(const _0x254f3a of _0x582fa9)for(let _0x1068b1=0x0;_0x1068b1<_0x254f3a['length'];_0x1068b1++){const _0x302a53=_0x254f3a[_0x1068b1+0x1]||null;_0x254f3a[_0x1068b1]['next']!==_0x302a53&&(_0x254f3a[_0x1068b1]['next']=_0x302a53);}for(const _0x4a117c of _0x582fa9)for(let _0x5cd096=0x0;_0x5cd096<_0x4a117c['length'];_0x5cd096++){const _0x49d78d=_0x4a117c[_0x5cd096-0x1]||null;_0x4a117c[_0x5cd096]['previous']!==_0x49d78d&&(_0x4a117c[_0x5cd096]['previous']=_0x49d78d);}function _0x78002(_0x503a1f,_0x204b90){if(_0x503a1f[0x0]['attributes']['groupId']!==_0x204b90[0x0]['attributes']['groupId']&&_0x503a1f[0x0]['author']!==_0x204b90[0x0]['author'])return!0x1;if(!function(_0x289da5,_0x7197b){if(!_0x289da5['hasComments']&&!_0x7197b['hasComments'])return!0x0;if(_0x289da5['hasComments']&&_0x7197b['hasComments'])return!0x1;if(_0x289da5['hasComments']&&_0x7197b['createdAt']<_0x289da5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7197b['hasComments']&&_0x289da5['createdAt']<_0x7197b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x503a1f[0x0],_0x204b90[0x0]))return!0x1;const _0x335154=Ft(_0x503a1f[0x0]['attributes'],'groupId'),_0x371f95=Ft(_0x204b90[0x0]['attributes'],'groupId');if(!_0x1370a7(_0x335154,_0x371f95))return!0x1;return!!_0x503a1f['every'](_0xc262fa=>_0x204b90['some'](_0x1f6422=>_0xc262fa['getFirstRange']()['isEqual'](_0x1f6422['getFirstRange']())))&&_0x204b90['every'](_0x46dfb3=>_0x503a1f['some'](_0x1d23db=>_0x46dfb3['getFirstRange']()['isEqual'](_0x1d23db['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1779b1){const _0x176d53=Array['from'](_0x1779b1),_0x2812c3=this['getSuggestions']({'skipNotAttached':!0x0}),_0x16508f=_0x2812c3['filter'](_0x31d1f5=>!_0x1779b1['has'](_0x31d1f5)),_0x2bb20f=new Map(_0x176d53['map'](_0x48bc0d=>[_0x48bc0d,this['_suggestionFactory']['getSuggestionCallback'](_0x48bc0d['type'],_0x48bc0d['subType'],'join')])),_0x3fe39b=new Map(_0x2812c3['map'](_0x1047d1=>[_0x1047d1,_0x1047d1['getRanges']()]));for(let _0x991fb5=0x0;_0x991fb5<_0x176d53['length'];_0x991fb5++){if(_0xee7042(this,_0x176d53[_0x991fb5],_0x176d53,_0x991fb5+0x1))return!0x0;}for(let _0x3f1bbf=0x0;_0x3f1bbf<_0x176d53['length'];_0x3f1bbf++){if(_0xee7042(this,_0x176d53[_0x3f1bbf],_0x16508f,0x0))return!0x0;}return!0x1;function _0xee7042(_0x113f4b,_0x57de18,_0x110bee,_0x23b5c3){for(let _0x5c3c51=_0x23b5c3;_0x5c3c51<_0x110bee['length'];_0x5c3c51++){const _0x627148=_0x110bee[_0x5c3c51];if(_0x627148['type']!==_0x57de18['type']||_0x627148['author']['id']!==_0x57de18['author']['id']||_0x627148['subType']!==_0x57de18['subType'])continue;if(!Qt(_0x57de18,_0x627148))continue;if('attribute'==_0x57de18['type']&&_0x57de18['data']['oldValue']!=_0x627148['data']['oldValue'])continue;if('attribute'==_0x57de18['type']&&_0x113f4b['_isBlockAttribute'](_0x57de18['data']['key']))continue;if('formatBlock'==_0x57de18['type']){const _0x24ea2a=_0x113f4b['editor']['model'],_0x33c8b2=_0x57de18['getContainedElement']();if(_0x33c8b2&&(_0x24ea2a['schema']['isObject'](_0x33c8b2)||_0x24ea2a['schema']['isLimit'](_0x33c8b2)))continue;}const _0x2511da=_0x2bb20f['get'](_0x57de18),_0x3c75a8=_0x3fe39b['get'](_0x57de18),_0x1257a1=_0x3fe39b['get'](_0x627148),_0x2fc1e0=_0x57de18['commentThread']&&_0x57de18['commentThread']['length'],_0xac0bd4=_0x627148['commentThread']&&_0x627148['commentThread']['length'];if(!_0x2fc1e0&&_0x2511da(_0x1257a1,_0x3c75a8))return _0x113f4b['_joinSuggestions'](_0x627148,_0x57de18),_0x3fe39b['delete'](_0x57de18),!0x0;if(!_0xac0bd4&&_0x2511da(_0x3c75a8,_0x1257a1))return _0x113f4b['_joinSuggestions'](_0x57de18,_0x627148),_0x3fe39b['delete'](_0x627148),!0x0;}return!0x1;}}['_joinSuggestions'](_0x10a829,_0x4462f2){if(_0x10a829['isMultiRange']){for(const _0x3f4c3f of _0x4462f2['getRanges']())_0x10a829['addRange'](_0x3f4c3f);}else{const _0x1228bb=_0x4462f2['getFirstRange']()['end'];this['_setSuggestionRange'](_0x10a829,this['_model']['createRange'](_0x10a829['getFirstRange']()['start'],_0x1228bb));}_0x4462f2['removeMarkers']();}['_getMarkerAnnouncementText'](_0xb695a7,_0x538ab0,_0x410406){const _0xb0bb3c=_0xb695a7['startsWith']('format')||_0xb695a7['startsWith']('attribute')?'FORMATTING':_0xb695a7['toUpperCase']();return c(this['editor']['locale'],_0x538ab0+'_'+_0xb0bb3c+'_SUGGESTION_ANNOUNCEMENT',_0x410406);}['_initAriaMarkerChangeAnnouncements'](){const _0x1e3006=this['editor'];if(!_0x1e3006['ui'])return;const {ariaLiveAnnouncer:_0x2fd2e0}=_0x1e3006['ui'];_0x527820(this['_model'],({left:_0x5f0c1d,entered:_0x2945fd})=>{for(const _0x55b4e9 of _0x5f0c1d){const {group:_0x5193a9,type:_0x1e4c23}=this['_splitMarkerName'](_0x55b4e9['name']);if('suggestion'===_0x5193a9){_0x2fd2e0['announce'](this['_getMarkerAnnouncementText'](_0x1e4c23,'LEAVE'));break;}}for(const _0x4283c3 of _0x2945fd){const {group:_0x5658d1,type:_0x3b6b3d}=this['_splitMarkerName'](_0x4283c3['name']);if('suggestion'===_0x5658d1){_0x2fd2e0['announce'](this['_getMarkerAnnouncementText'](_0x3b6b3d,'ENTER',_0x57d5f0(_0x5302ad)));break;}}});}['_processAttributeChanges'](_0x501e09){if(this['_recordAttributeSuggestions'])return!0x1;const _0x453eed=this['editor'],_0x3d2913=_0x453eed['model']['document']['differ']['getChanges']();if(0x0==_0x3d2913['length'])return!0x1;const _0x3b1646=[],_0x467ca8=_0x3d2913['filter'](_0x3d99c2=>'attribute'==_0x3d99c2['type']),_0x1c8b56=_0x3d2913['filter'](_0x17a877=>'insert'==_0x17a877['type']&&'$text'!=_0x17a877['name']),_0x34956c=_0x3d2913['filter'](_0x5ad92c=>'remove'==_0x5ad92c['type']&&'$text'!=_0x5ad92c['name']);for(const _0x56a0f7 of _0x467ca8)_0x3b1646['push']({'key':_0x56a0f7['attributeKey'],'newValue':_0x56a0f7['attributeNewValue'],'oldValue':_0x56a0f7['attributeOldValue'],'range':qt(_0x56a0f7['range'],_0x453eed['model'])});for(const _0xf04eab of _0x1c8b56){const _0x4c6c5c=_0x34956c['find'](_0x2e9917=>_0x2e9917['position']['isEqual'](_0xf04eab['position']));_0x4c6c5c&&_0x3b1646['push']({'key':u,'newValue':_0xf04eab['name'],'oldValue':_0x4c6c5c['name'],'range':_0x453eed['model']['createRangeOn'](_0xf04eab['position']['nodeAfter'])});}return 0x0!=_0x3b1646['length']&&this['_reduceExistingSuggestions'](_0x501e09,_0x3b1646);}['_processAttributeSuggestions'](_0x1052ce){let _0x4b4959=!0x1;const _0x5b2628=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1765bb=>_0x1765bb['data']['newRange']&&_0x1765bb['name']['startsWith']('suggestion:attribute:'));for(const _0x2ceceb of _0x5b2628){const {subType:_0x5830e5,id:_0x1339e8}=this['_splitMarkerName'](_0x2ceceb['name']),_0x550422=_0x5830e5['split']('|')[0x0];for(const _0x1b86c9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1b86c9['id']!=_0x1339e8&&'attribute'==_0x1b86c9['type']&&_0x1b86c9['data']&&_0x1b86c9['data']['key']==_0x550422&&_0x1b86c9['getFirstRange']()['isIntersecting'](_0x2ceceb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1b86c9,_0x2ceceb['data']['newRange'],_0x1052ce),_0x4b4959=!0x0);}return _0x4b4959;}['_recordAttributeChanges'](_0xc63504){this['_recordAttributeSuggestions']=!0x0,_0xc63504();}['_isRegisteredAttribute'](_0x265fdb){const _0x2f643b=this['_isBlockAttribute'](_0x265fdb),_0x55b62c=this['_inlineAttributeKeys']['has'](_0x265fdb);return _0x2f643b||_0x55b62c;}['_reduceExistingSuggestions'](_0x5d8809,_0x43b178){if(0x0==_0x43b178['length'])return!0x1;let _0x462cf0=!0x1;for(const _0x596a36 of _0x43b178){const _0x3d1427=this['_findSuggestions'](_0x596a36['range'],'attribute')['filter'](_0x482f93=>!_0x482f93['meta']['isNextTo'])['map'](_0x3e48a4=>_0x3e48a4['suggestion']),_0x3e53f6=_0x5f3945({'newValue':_0x596a36['newValue']});_0x3d1427['filter'](_0x2728d2=>{const [_0x20be3c,_0x5a4a0c]=_0x2728d2['subType']['split']('|');return _0x20be3c==_0x596a36['key']&&_0x5a4a0c!=_0x3e53f6;})['forEach'](_0x4b9ba8=>{this['_reduceSuggestionAttributeRange'](_0x4b9ba8,_0x596a36['range'],_0x5d8809),_0x462cf0=!0x0;});}return _0x462cf0;}['_reduceSuggestionAttributeRange'](_0x32448f,_0x3ad5d1,_0x507d71){const _0x5583d0=_0x32448f['getFirstRange']()['getDifference'](_0x3ad5d1);0x0!==_0x5583d0['length']?0x1!==_0x5583d0['length']?this['_breakSuggestionMarker'](_0x32448f,_0x3ad5d1['start'],_0x3ad5d1['end']):this['_setSuggestionRange'](_0x32448f,_0x5583d0[0x0]):_0x507d71['removeMarker'](_0x32448f['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3159ea){this['_editor']=_0x3159ea,this['_model']=_0x3159ea['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x5062a2,_0x558eb5,_0x3fda67,_0x34c265,_0x5bdf7f,_0x497d33){return new o(this['_model'],{'type':_0x5062a2,'subType':_0x558eb5,'id':_0x3fda67,'author':_0x34c265,'creator':_0x34c265,'attributes':_0x5bdf7f,'onAttributesChange':_0x497d33,'onAccept':(..._0x1b8c30)=>this['getSuggestionCallback'](_0x5062a2,_0x558eb5,'accept')(..._0x1b8c30),'onDiscard':(..._0x24ed1e)=>this['getSuggestionCallback'](_0x5062a2,_0x558eb5,'discard')(..._0x24ed1e)});}['registerCustomCallback'](_0x59a6f8,_0x22e10e,_0x399e63,_0x1e79d0){const _0x1f1b37=_0x59a6f8+':'+_0x22e10e+':'+_0x399e63;this['_customCallbacks']['set'](_0x1f1b37,_0x1e79d0);}['getSuggestionCallback'](_0x4212f8,_0x491eda,_0xb52cf6){const _0x1d1e43=_0x4212f8+':'+_0x491eda+':'+_0xb52cf6;return this['_customCallbacks']['get'](_0x1d1e43)||this['_defaultCallbacks']['get'](_0x4212f8+':'+_0xb52cf6);}['_registerDefaultCallbacks'](){const _0xd0f2bd=()=>!0x1,_0x34353f=_0x3f1abe=>{_0x3f1abe['sort']((_0x32b3f9,_0x56556b)=>_0x32b3f9['start']['isBefore'](_0x56556b['start'])?0x1:-0x1),this['_model']['change'](_0x9c7bfb=>{for(const _0x5f55a1 of _0x3f1abe){let _0x4458aa;_0x4458aa=_0x5f55a1['end']['isAtEnd']&&_0x5f55a1['end']['parent']==_0x5f55a1['start']['nodeAfter']?_0x9c7bfb['createSelection'](_0x5f55a1['start']['nodeAfter'],'on'):_0x9c7bfb['createSelection'](_0x5f55a1),this['_model']['deleteContent'](_0x4458aa,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2c7fa6=(_0x5354c0,_0x54d5cd)=>{_0x54d5cd&&this['_model']['change'](_0x2db887=>{const {commandName:_0x52dd3a,commandParams:_0x44ccdf=[]}=_0x54d5cd,_0x415ced=_0x5354c0['map'](_0x2798f3=>(Lt(_0x2798f3)&&(_0x2798f3=this['_model']['createRange'](_0x2798f3['end'])),_0x2798f3))['filter'](_0x25bb6f=>'$graveyard'!==_0x25bb6f['root']['rootName']);if(_0x415ced['length']<0x1)return;const _0x1a827d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x42c775=>_0x3bdca8['fromRange'](_0x42c775));_0x2db887['setSelection'](_0x415ced);for(const _0x428b5f of this['_editor']['commands']['commands']())_0x428b5f['refresh']();_0x44ccdf['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x52dd3a,..._0x44ccdf);const _0x2720c5=_0x1a827d['filter'](_0x23cd66=>'$graveyard'!=_0x23cd66['root']['rootName']);_0x2720c5['length']>0x0&&_0x2db887['setSelection'](_0x2720c5);for(const _0x47995e of _0x1a827d)_0x47995e['detach']();});},_0x3f1b30=(_0x14c265,_0x41b9da)=>0x1==_0x14c265['length']&&0x1==_0x41b9da['length']&&_0x14c265[0x0]['end']['isEqual'](_0x41b9da[0x0]['start']),_0x5da821=(_0x25e0c2,_0xa56515,_0x59e41c,_0x312a0d)=>Wt(_0x25e0c2,_0xa56515,_0x59e41c,_0x312a0d)?[_0x25e0c2,_0xa56515]:Wt(_0xa56515,_0x25e0c2,_0x312a0d,_0x59e41c)?[_0xa56515,_0x25e0c2]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xd0f2bd),this['_defaultCallbacks']['set']('insertion:discard',_0x34353f),this['_defaultCallbacks']['set']('insertion:join',_0x3f1b30),this['_defaultCallbacks']['set']('insertion:chain',_0x5da821),this['_defaultCallbacks']['set']('deletion:accept',_0x34353f),this['_defaultCallbacks']['set']('deletion:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('deletion:join',_0x3f1b30),this['_defaultCallbacks']['set']('deletion:chain',_0x5da821),this['_defaultCallbacks']['set']('formatInline:accept',_0x2c7fa6),this['_defaultCallbacks']['set']('formatInline:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('formatInline:join',_0x3f1b30),this['_defaultCallbacks']['set']('formatInline:chain',_0xd0f2bd),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2c7fa6),this['_defaultCallbacks']['set']('formatBlock:discard',_0xd0f2bd),this['_defaultCallbacks']['set']('formatBlock:join',_0x3f1b30),this['_defaultCallbacks']['set']('formatBlock:chain',_0xd0f2bd),this['_defaultCallbacks']['set']('attribute:accept',_0xd0f2bd),this['_defaultCallbacks']['set']('attribute:discard',(_0x1975a9,_0x496f43)=>{if(!_0x496f43)return;const _0x1e2bb7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ccbbd=>{if(_0x496f43['key']==u)for(const _0x292af5 of _0x1975a9){const _0x3a8093=_0x292af5['start']['nodeAfter'],_0x2ee4d9=_0x496f43['oldValue'];_0x4ccbbd['rename'](_0x3a8093,_0x2ee4d9);}else{if(_0x1e2bb7['_isBlockAttribute'](_0x496f43['key'])){for(const _0x2a711f of _0x1975a9)void 0x0!==_0x496f43['oldValue']?_0x4ccbbd['setAttribute'](_0x496f43['key'],_0x496f43['oldValue'],_0x2a711f['start']['nodeAfter']):_0x4ccbbd['removeAttribute'](_0x496f43['key'],_0x2a711f['start']['nodeAfter']);}else{for(const _0xb0f10e of _0x1975a9)_0x496f43['oldValue']?_0x4ccbbd['setAttribute'](_0x496f43['key'],_0x496f43['oldValue'],_0xb0f10e):_0x4ccbbd['removeAttribute'](_0x496f43['key'],_0xb0f10e);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3f1b30);}}function Gt(_0xf1ee63,_0x3f9b22,_0x3fa123){for(const _0x3bc3b3 of _0x3f9b22['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3bc3b3['root']==_0x3bc3b3)return!0x1;if(!_0x3fa123['containsItem'](_0x3bc3b3))return!0x1;if(_0xf1ee63['isObject'](_0x3bc3b3)||_0xf1ee63['isLimit'](_0x3bc3b3))return!0x0;}return!0x1;}function Lt(_0xd4c9c0){return _0xd4c9c0['end']['parent']==_0xd4c9c0['start']['nodeAfter']&&_0xd4c9c0['end']['isAtStart'];}function Jt(_0x562177,_0x5b04b9,_0x4385b4,_0x3839d1){const _0x523cd7=_0x1c981b=>!_0x1c981b['item']['is']('$textProxy')&&!_0x3839d1['isObject'](_0x1c981b['item']),_0x1902f2=_0x562177['start']['getLastMatchingPosition'](_0x523cd7),_0x259bd4=_0x562177['end']['getLastMatchingPosition'](_0x523cd7,{'direction':'backward'});return(!_0x562177['start']['isEqual'](_0x1902f2)||!_0x562177['end']['isEqual'](_0x259bd4))&&(_0x1902f2['isBefore'](_0x259bd4)?_0x4385b4['updateMarker'](_0x5b04b9,{'range':_0x4385b4['createRange'](_0x1902f2,_0x259bd4)}):_0x4385b4['removeMarker'](_0x5b04b9),!0x0);}function Kt(_0x531278){return _0x5f3945(_0x531278);}function Ht(_0x35613f){const _0x340911=_0x35613f['start']['nodeAfter'];return _0x340911&&_0x340911['is']('element');}function qt(_0xc346ac,_0x3e70db){return null==_0xc346ac['end']['nodeBefore']&&_0xc346ac['end']['parent']==_0xc346ac['start']['nodeAfter']?zt(_0xc346ac['start']['nodeAfter'],_0x3e70db):_0xc346ac;}function zt(_0x2b451d,_0xaae625){const _0x97d9fa=_0xaae625['schema']['isObject'](_0x2b451d)||_0xaae625['schema']['isSelectable'](_0x2b451d);return _0xaae625['createRange'](_0xaae625['createPositionAt'](_0x2b451d,'before'),_0x97d9fa?_0xaae625['createPositionAfter'](_0x2b451d):_0xaae625['createPositionAt'](_0x2b451d,'end'));}function Wt(_0x1ea2fc,_0x226c38,_0x36b5d5,_0xa908f0){return!!Qt(_0x1ea2fc,_0x226c38)&&_0x36b5d5['end']['isEqual'](_0xa908f0['start']);}function Qt(_0x3adf42,_0x30d1a3){if(!_0x3adf42['_isDataLoaded']||!_0x30d1a3['_isDataLoaded'])return!0x1;const _0x400975=new Set(Object['keys'](_0x3adf42['attributes'])),_0xa67619=new Set(Object['keys'](_0x30d1a3['attributes']));if(_0x400975['delete']('groupId'),_0xa67619['delete']('groupId'),0x0==_0x400975['size']&&0x0==_0xa67619['size'])return!0x0;if(_0x400975['size']!=_0xa67619['size'])return!0x1;const _0x19b1bc={..._0x3adf42['attributes']},_0x3041d7={..._0x30d1a3['attributes']};return delete _0x19b1bc['groupId'],delete _0x3041d7['groupId'],JSON['stringify'](_0x19b1bc)==JSON['stringify'](_0x3041d7);}function Xt(_0x2857a6,_0x2812de){const _0x2ebbfb=Yt(_0x2857a6['attributes']),_0x40eab7=Yt(_0x2812de);if(!_0x2857a6['_isDataLoaded'])return!0x1;for(const _0x4dd487 of Object['keys'](_0x40eab7))if(!_0x1370a7(_0x2ebbfb[_0x4dd487],_0x40eab7[_0x4dd487]))return!0x1;return!0x0;}function Yt(_0xacc0a5){const _0x3c6745=Object['assign']({},_0xacc0a5);return delete _0x3c6745['skipNestingCheck'],delete _0x3c6745['tablePasteChainId'],_0x3c6745;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x16ce4b(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1e04a1,_0x2efcb0,_0x6bb5f0,_0x838585){super(),this['model']=_0x2efcb0,this['view']=_0x6bb5f0,this['commentThreadController']=_0x838585,this['_editor']=_0x1e04a1,this['_acceptCommand']=_0x1e04a1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1e04a1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x334a14,_0x27d814)=>_0x334a14||_0x27d814),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4d1ad7=>_0x4d1ad7&&this['_editor']['model']['canEditAt'](_0x2efcb0['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x5d04d1=>_0x5d04d1&&this['_editor']['model']['canEditAt'](_0x2efcb0['getRanges']())),this['_pendingAction']=null,_0x6bb5f0['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x6bb5f0,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x6bb5f0,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x6bb5f0,'change:isDirty',()=>{_0x6bb5f0['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 _0x5aa525=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5aa525);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x1b6ec0{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4a3494,_0x10fc5c,_0x3dd360,_0x2d3970){super(_0x4a3494),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x297bff(_0x4a3494,c(_0x4a3494,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x10fc5c['authoredAt']),this['bind']('authoredAt')['to'](_0x10fc5c),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',_0x10fc5c,'authoredAt',this,'descriptionParts',(_0x1be15f,_0x331c79,_0xfd4635)=>{const _0x168311=_0xfd4635['map'](_0x33d6a2=>ls(_0x33d6a2['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1be15f-0x1,_0x10fc5c['author']['name'],_0x331c79?_0x2d3970['formatDateTime'](_0x331c79):'',new DOMParser()['parseFromString'](_0x168311,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3157bd(),this['focusTracker']=new _0x1bb104(),this['keystrokes']=new _0x2a082f(),this['focusCycler']=new _0x2f68ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x59528f=>_0x59528f['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x10fc5c,this['_localUser']=_0x3dd360,this['_config']=_0x2d3970,_0x2d3970['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1d5e35(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xc35f2a}=this['_config'];this['commentsListView']=new _0xc35f2a(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',_0x58b127=>_0x58b127+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1ebbc1,_0x2739d3)=>_0x1ebbc1||!!_0x2739d3);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x531736}=this['_config'],_0x2e338a=new _0x531736(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x558685=_0x2e338a['commentInputView'];return _0x2e338a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x558685,'value',(_0x798eb8,_0x5c5228,_0x3d5e73)=>!!_0x3d5e73||_0x798eb8&&!_0x5c5228),_0x558685['on']('submit',(_0x4f2cb8,_0x4ff04a)=>{this['fire']('addComment',_0x4ff04a),_0x558685['editor']['setData']('');}),_0x558685['on']('cancel',()=>this['focus']()),_0x558685['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2e338a;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x2077ba,_0x4936c4,_0x3df46d,_0xd6783b){super(_0x2077ba,_0x4936c4,_0x3df46d,_0xd6783b),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5809ff=>_0x5809ff&&_0x5809ff[0x0]?_0x5809ff[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x17b4f3,_0x33cb78)=>{let _0x40bca8='';for(const _0x60850b of _0x17b4f3)_0x40bca8+='<p>'+ls(_0x60850b['content'],_0x60850b['color'])+'</p>';return _0x33cb78?_0x40bca8:ti(_0x40bca8,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xd6783b['SuggestionView'](_0x2077ba,_0x4936c4,{'formatDateTime':_0xd6783b['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 _0x330794=this['bindTemplate'],_0x53a413=[this['suggestionView']];return this['commentsListView']&&_0x53a413['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53a413['push'](this['commentThreadInputView']),_0x53a413['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x330794['if']('isActive','ck-suggestion-wrapper--active'),_0x330794['to']('type',_0x4ff231=>'ck-suggestion-'+_0x4ff231),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':_0x330794['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53a413};}['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 we extends _0x1b6ec0{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xab111c,_0x26c975,_0x1e1fec){super(_0xab111c),this['_model']=_0x26c975,this['_config']=_0x1e1fec,this['set']('description',''),this['bind']('authoredAt')['to'](_0x26c975),this['acceptButton']=this['_createButton'](c(_0xab111c,'Accept\x20suggestion'),_0x4abeb0,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0xab111c,'Discard\x20suggestion'),_0x3ab9dd,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x316145(_0xab111c,_0x26c975['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x3157bd([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x1bb104(),this['keystrokes']=new _0x2a082f(),this['focusCycler']=new _0x2f68ed({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x166cd7=>_0x166cd7['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4bba77=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4bba77['innerHTML']=this['description'],this['on']('change:description',(_0x1805c9,_0x1a5b56,_0x2f9e59)=>{_0x4bba77['innerHTML']=_0x2f9e59;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x42f611=this['bindTemplate'],_0x96e67a=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x42f611['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x42f611['to']('authoredAt',_0x2240fa=>this['_config']['formatDateTime'](_0x2240fa))}]}]},{'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']&&_0x96e67a['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':_0x96e67a}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x3ba808,_0x2f7cd3,_0x419ba5,_0x299e2a,_0x2f3dd4){const _0x2e3e12=new _0x138b31(this['locale']);return _0x2e3e12['set']({'label':_0x3ba808,'icon':_0x2f7cd3,'tooltip':!0x0,'tooltipPosition':_0x2f3dd4}),_0x2e3e12['extendTemplate']({'attributes':{'class':_0x419ba5}}),_0x2e3e12['on']('execute',()=>{this['fire'](_0x299e2a,this['_model']['id']);}),_0x2e3e12;}['_setupKeyboardNavigation'](){const _0x5b090f=this['element'];this['keystrokes']['listenTo'](_0x5b090f);for(const _0x46821d of this['focusables'])this['focusTracker']['add'](_0x46821d['element']),this['keystrokes']['listenTo'](_0x46821d['element']);this['keystrokes']['set']('enter',(_0x16873a,_0x207826)=>{_0x5b090f===_0x16873a['target']&&(this['focusCycler']['focusFirst'](),_0x207826());}),this['keystrokes']['set']('esc',(_0x3da7a6,_0x230760)=>{_0x5b090f!==_0x3da7a6['target']&&(this['focus'](),_0x230760());});}}class d extends _0x483067{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2624ff,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x145786){super(_0x145786),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x58b568=this['editor']['config'];_0x58b568['define']('trackChanges.SuggestionThreadView',fe),_0x58b568['define']('trackChanges.SuggestionView',we),_0x58b568['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x58b568['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x2a375d,_0x5cf654){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1a9fbd,_0x4bccfa]of this['_handleControllerBuffer']){const _0x8ee601=this['_suggestionToController']['has'](_0x1a9fbd);_0x8ee601||_0x4bccfa?_0x8ee601&&_0x4bccfa&&this['_destroyController'](_0x1a9fbd):this['_initializeController'](_0x1a9fbd);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a375d,_0x5cf654);}['init'](){const _0x2306a7=this['editor'],_0x5b6a6d=_0x2306a7['plugins']['get']('TrackChangesEditing'),_0x6e7962=_0x2306a7['plugins']['get']('Annotations'),_0x460d07=_0x2306a7['plugins']['get']('EditorAnnotations'),_0x2e1983=_0x2306a7['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x460d07['addSourceCollector'](()=>{const _0x5ba446=[];for(const [_0x2d6738,_0x1e0ea1]of Array['from'](this['_suggestionToController'])){const _0x102e73=_0x2d6738['getAllAdjacentSuggestions'](),_0xbff5d9=[];for(const _0x4d99d7 of _0x102e73){if(!_0x4d99d7['isInContent'])continue;if(_0x4d99d7['isMultiRange']){_0xbff5d9['push'](..._0x4d99d7['getRanges']());continue;}const _0x79f40b=_0x4d99d7['getFirstRange']();if(_0xbff5d9['length']>0x0){const _0x100233=_0xbff5d9[0x0]['getJoined'](_0x79f40b);if(_0x100233){_0xbff5d9[0x0]=_0x100233;continue;}}_0xbff5d9['push'](_0x79f40b);}_0x5ba446['push']([_0x1e0ea1['view'],_0xbff5d9]);}return _0x5ba446;}),this['listenTo'](_0x5b6a6d,'suggestionLoaded',(_0x2f3e28,_0x2589c6)=>{this['listenTo'](_0x2589c6,'change:previous',(_0x4ed521,_0x15319d,_0x3711c4,_0x7d9e6)=>{_0x2589c6['isInContent']&&(null==_0x3711c4?(this['_updateController'](_0x7d9e6['head']),this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x1)):(this['_updateController'](_0x3711c4['head']),null==_0x7d9e6&&this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x0)));}),null!==_0x2589c6['previous']?this['_updateController'](_0x2589c6['head']):this['_handleSuggestionControllerDelayed'](_0x2589c6,!0x1);}),this['listenTo'](_0x5b6a6d,'suggestionUnloaded',(_0x5d1db7,_0x48b586,_0x33affa)=>{this['stopListening'](_0x48b586,'change:previous'),this['_handleControllerBuffer']['delete'](_0x48b586),this['_suggestionToController']['has'](_0x48b586)&&this['_destroyController'](_0x48b586),_0x33affa&&this['_updateController'](_0x33affa['head']);}),this['listenTo'](_0x5b6a6d,'suggestionChanged',(_0x21e88d,_0x319022)=>{this['_updateController'](_0x319022);}),this['listenTo'](_0x6e7962,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x2e1983,'addComment',(_0x322eed,{threadId:_0xbf8f99,isFromAdapter:_0x181a1e})=>{if(_0x181a1e||!_0x5b6a6d['hasSuggestion'](_0xbf8f99))return;const _0x30afd9=_0x5b6a6d['getSuggestion'](_0xbf8f99);this['_suggestionToController']['get'](_0x30afd9)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x280653=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x12e49e;for(const _0x875919 in _0x280653){const _0x27a4ae=_0x875919,_0x37ad2b=_0x280653[_0x27a4ae];if('trackChangesLicenseKeyValid'==_0x37ad2b||'trackChangesLicenseKeyInvalid'==_0x37ad2b||'trackChangesLicenseKeyExpired'==_0x37ad2b||'trackChangesLicenseKeyDomainLimit'==_0x37ad2b||'trackChangesLicenseKeyNotAllowed'==_0x37ad2b||'trackChangesLicenseKeyEvaluationLimit'==_0x37ad2b||'trackChangesLicenseKeyTrialLimit'==_0x37ad2b||'trackChangesLicenseKeyUsageLimit'==_0x37ad2b){delete _0x280653[_0x27a4ae],_0x12e49e=_0x37ad2b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x12e49e&&_0x280653['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x12e49e&&_0x280653['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x12e49e&&_0x280653['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x12e49e&&_0x280653['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x12e49e&&_0x280653['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x12e49e&&_0x280653['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x12e49e&&_0x280653['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x18c01a=this['editor']['plugins']['get']('Annotations'),_0x9fdb12=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe3343e=Array['from'](_0x18c01a['activeAnnotations'],_0x35602f=>_0x35602f['innerView'])['filter'](_0x14c664=>this['_viewToController']['has'](_0x14c664)),_0xbfb28a=[];for(const _0x5a36d5 of _0xe3343e){const _0x30c9a8=this['_viewToController']['get'](_0x5a36d5)['model']['getAllAdjacentSuggestions']();_0xbfb28a['push'](..._0x30c9a8['reduce']((_0x104e44,_0x22a974)=>[..._0x104e44,..._0x22a974['getMarkerNames']()],[]));}_0x9fdb12['activeMarkers']=_0xbfb28a;}['_addUIComponentsToFactory'](){const _0xca345c=this['editor'],_0x41495b=_0xca345c['locale'],_0x236875=c(_0x41495b,'Track\x20changes'),_0x57c9b6=new _0x4cdcfa([{'type':'switchbutton','model':new _0x4c579a({'withText':!0x0,'isToggleable':!0x0,'label':_0x236875,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0xca345c['plugins']['has']('TrackChangesPreview')&&_0x57c9b6['addMany']([{'type':'separator'},{'type':'button','model':new _0x4c579a({'withText':!0x0,'label':c(_0x41495b,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2de590 of _0x57c9b6)if(ke(_0x2de590)){const _0x53ff01=_0xca345c['commands']['get'](_0x2de590['model']['commandName']);_0x2de590['model']['bind']('isOn','isEnabled')['to'](_0x53ff01,'value','isEnabled');}_0xca345c['ui']['componentFactory']['add']('trackChanges',_0x11fb61=>this['_createToolbarButton'](_0x11fb61,_0x57c9b6,_0x236875)),_0xca345c['ui']['componentFactory']['add']('menuBar:trackChanges',_0x5cb983=>this['_createMenuBarMenu'](_0x5cb983,_0x57c9b6,_0x236875));}['_createToolbarButton'](_0x829609,_0x596493,_0x5a2787){const _0x172f57=_0x1f4905(_0x829609,_0x3543b6),_0x5beb9e=this['editor']['commands']['get']('trackChanges');_0x172f57['buttonView']['set']({'tooltip':_0x5a2787,'label':_0x5a2787,'icon':_0x3f3917}),_0x172f57['buttonView']['bind']('isOn')['to'](_0x5beb9e,'value'),_0x172f57['buttonView']['on']('execute',()=>{_0x5beb9e['execute'](),this['editor']['editing']['view']['focus']();}),_0x5f3c1f(_0x172f57,_0x596493,{'role':'menu'});const _0x2bb24c=[];for(const _0xf8060c of _0x596493)ke(_0xf8060c)&&_0x2bb24c['push'](this['editor']['commands']['get'](_0xf8060c['model']['commandName']));const _0x1d0f5e=_0x172f57['buttonView'];return _0x1d0f5e['actionView']['unbind']('isEnabled'),_0x1d0f5e['arrowView']['unbind']('isEnabled'),_0x1d0f5e['actionView']['bind']('isEnabled')['to'](_0x5beb9e,'isEnabled'),_0x1d0f5e['arrowView']['bind']('isEnabled')['toMany'](_0x2bb24c,'isEnabled',(..._0x3bc531)=>_0x3bc531['some'](_0x1f3049=>_0x1f3049)),_0x172f57['on']('execute',_0x487dd6=>{this['editor']['execute'](_0x487dd6['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x172f57;}['_createMenuBarMenu'](_0x33e47d,_0x1eda99,_0x40ba7c){const _0x8f3127=new _0x28ce3b(_0x33e47d),_0x24e644=this['editor']['commands']['get']('trackChanges');_0x8f3127['buttonView']['set']({'label':_0x40ba7c,'icon':_0x3f3917});const _0x11e99b=new _0xf507fe(_0x33e47d);for(const _0x499944 of _0x1eda99){if('separator'==_0x499944['type']){_0x11e99b['items']['add'](new _0x19802b(_0x33e47d));continue;}const _0x3b0c2b=new _0x2e0e52(_0x33e47d,_0x8f3127),_0x12ec18=new _0xfebad4(_0x33e47d),_0x5c5e59=_0x499944['model'];_0x12ec18['bind'](...Object['keys'](_0x5c5e59))['to'](_0x5c5e59),_0x12ec18['delegate']('execute')['to'](_0x8f3127),_0x12ec18['on']('execute',()=>{this['editor']['execute'](_0x5c5e59['commandName']),this['editor']['editing']['view']['focus']();}),_0x3b0c2b['children']['add'](_0x12ec18),_0x11e99b['items']['add'](_0x3b0c2b);}return _0x8f3127['bind']('isEnabled')['to'](_0x24e644,'isEnabled'),_0x8f3127['panelView']['children']['add'](_0x11e99b),_0x8f3127;}['_initializeController'](_0x13c3c4){const _0xb15ab9=this['editor'],_0x4643ac=_0xb15ab9['config'],_0x405d0f=_0xb15ab9['plugins']['get']('Annotations'),_0x48896e=_0xb15ab9['plugins']['get']('CommentsRepository'),_0x4b7406=_0xb15ab9['plugins']['get']('EditorAnnotations'),_0x109321=_0xb15ab9['plugins']['get'](_0x2624ff)['me'],_0x682e41=_0x4643ac['get']('trackChanges')['SuggestionThreadView'],_0x38e5c2=_0x4643ac['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5451d2,CommentThreadInputView:_0x3d0ade}=_0xb15ab9['plugins']['get']('CommentsUI');let _0xbae9,_0x529d46,_0x19695d;this['_annotationViews']['has'](_0x13c3c4['id'])?(_0x529d46=this['_annotationViews']['get'](_0x13c3c4['id']),_0xbae9=_0x529d46['mainView']):(_0xbae9=new _0x682e41(_0xb15ab9['locale'],_0x13c3c4,_0x109321,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4643ac['get']('comments.editorConfig'),'licenseKey':_0x4643ac['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4643ac['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4643ac['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4643ac['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x59bd06(_0x4643ac['get']('locale'),_0xb15ab9['locale']),'CommentView':_0x4643ac['get']('comments')['CommentView'],'CommentsListView':_0x5451d2,'CommentThreadInputView':_0x3d0ade,'SuggestionView':_0x38e5c2}),_0xbae9['suggestionView']['acceptButton']['on']('execute',()=>{_0xb15ab9['editing']['view']['focus']();}),_0xbae9['suggestionView']['discardButton']['on']('execute',()=>{_0xb15ab9['editing']['view']['focus']();}),_0x529d46=_0x405d0f['createAnnotationView'](this['editor']['locale'],_0xbae9),_0x529d46['bind']('isDirty')['to'](_0xbae9,'isDirty'),_0x529d46['bind']('length')['to'](_0xbae9),_0x529d46['bind']('type')['to'](_0xbae9,'type',_0x5702ec=>'suggestion-'+_0x5702ec),_0xbae9['on']('escape',()=>{_0x19695d['fire']('escape');}),this['_annotationViews']['set'](_0x13c3c4['id'],_0x529d46));const _0xb99649=_0x48896e['createCommentThreadController'](_0x13c3c4['commentThread'],_0xbae9),_0x2389d0=new pe(_0xb15ab9,_0x13c3c4,_0xbae9,_0xb99649),_0x1550d5=_0x13c3c4['getAllAdjacentSuggestions']()['filter'](_0x24ecf1=>_0x24ecf1['isInContent']);_0xbae9['descriptionParts']=_0xb15ab9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1550d5),this['_suggestionToController']['set'](_0x13c3c4,_0x2389d0),this['_viewToController']['set'](_0xbae9,_0x2389d0),_0x19695d=_0x405d0f['createAnnotation']({'view':_0x529d46,'target':()=>{const _0x1136b9=[],_0x42a1bd=_0x13c3c4['getAllAdjacentSuggestions']()['filter'](_0x33f395=>_0x33f395['isInContent']);for(const _0x356c26 of _0x42a1bd)_0x1136b9['push'](..._0x356c26['getMarkers']());return _0x342b89(_0xb15ab9['editing'],_0x1136b9);},'type':()=>'suggestion-'+_0x2389d0['view']['type']}),_0x48896e['_bindAnnotationToEditors'](_0xbae9,_0x19695d),_0x405d0f['add'](_0x19695d),_0x4b7406['registerAnnotation'](_0x19695d);}['_destroyController'](_0x23a18b){const _0x60f8e4=this['editor']['plugins']['get']('CommentsRepository'),_0x3c9cec=this['editor']['plugins']['get']('Annotations'),_0x437a42=this['_suggestionToController']['get'](_0x23a18b),_0xbab9c4=_0x437a42['view'],_0x59396c=_0x3c9cec['getByInnerView'](_0xbab9c4);_0x60f8e4['_unbindEditors'](_0xbab9c4),_0x59396c&&_0x3c9cec['remove'](_0x59396c),this['_suggestionToController']['delete'](_0x23a18b),this['_viewToController']['delete'](_0xbab9c4),_0x437a42['destroy']();}['_updateController'](_0x24fa67){if(!_0x24fa67['isInContent']||!this['_suggestionToController']['has'](_0x24fa67))return;const _0x63d314=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22cdff=this['_suggestionToController']['get'](_0x24fa67),_0x36d1b6=_0x24fa67['getAllAdjacentSuggestions']();_0x22cdff['view']['descriptionParts']=_0x63d314['descriptionFactory']['getDescriptions'](_0x36d1b6);}['destroy'](){for(const _0x54d2c9 of this['_suggestionToController']['keys']())this['_destroyController'](_0x54d2c9);for(const _0x752f1e of this['_annotationViews']['values']())_0x752f1e['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x523746){return'model'in _0x523746;}class k extends _0x483067{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0xd61035){this['editor']['plugins']['get'](p)['adapter']=_0xd61035;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x11e491){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x11e491);}['getSuggestions']({skipNotAttached:_0x44b445=!0x1,toJSON:_0x2ef715=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x44b445,'toJSON':_0x2ef715});}['getSuggestion'](_0x440f4b){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x440f4b);}}const w=['Pagination'];class T extends _0x483067{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x474d08=this['editor'];if(_0x474d08['config']['define']('trackChangesData.editorCreator',_0x27fa89=>{const _0xbbf8b7=_0x474d08['model']['document']['getRootNames']()['reduce']((_0x1a8dc0,_0x23e787)=>(_0x1a8dc0[_0x23e787]='',_0x1a8dc0),{});return _0x474d08['constructor']['create'](_0xbbf8b7,_0x27fa89);}),'function'!=typeof _0x474d08['config']['get']('trackChangesData')['editorCreator'])throw new _0x213580('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x410ebb){return N(this['editor'],!0x0,_0x410ebb);}['getDataWithDiscardedSuggestions'](_0x467a97){return N(this['editor'],!0x1,_0x467a97);}}class D extends _0x483067{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16f42d){function _0x562c42(_0x5cbe69){return _0x5cbe69['map'](_0x3e677a=>String['fromCharCode'](_0x3e677a))['join']('');}super(_0x16f42d),this['result']='end',_0x16f42d[_0x562c42([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x562c42([0x76,0x69,0x65,0x77])][_0x562c42([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x562c42([0x61,0x75,0x74,0x6f]),_0x16f42d[_0x562c42([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x562c42([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x562c42([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x562c42([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x562c42([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 Ge(_0x5e7761){return void 0x0!==_0x5e7761['getRootsAttributes'];}async function N(_0x23ca69,_0x23b351,_0x4fc9d0){const _0x58ab8=_0x516d15(_0x23ca69,w);_0x58ab8['plugins']['push'](p,D),_0x58ab8['rootsAttributes']=Ge(_0x23ca69)?_0x23ca69['getRootsAttributes']():void 0x0;const _0x4b2ef4=document['createDocumentFragment'](),_0x81914d=_0x23ca69['config']['get']('trackChangesData')['editorCreator'],_0x5c5991=await _0x81914d(_0x58ab8,()=>function(_0x25fb4c){const _0x59c5ad=document['createElement']('div');return _0x25fb4c['appendChild'](_0x59c5ad),_0x59c5ad;}(_0x4b2ef4));!function(_0x55b0d4,_0x534dbd){const _0x5d8956=_0x55b0d4['model']['document']['getRootNames']()['reduce']((_0x4807b8,_0x58ed0f)=>(_0x4807b8[_0x58ed0f]=_0x55b0d4['data']['get']({'rootName':_0x58ed0f}),_0x4807b8),{}),_0x48f5db=_0x55b0d4['plugins']['get']('Users')['users']['map'](_0x5909c7=>({'id':_0x5909c7['id'],'name':_0x5909c7['name']})),_0x3edc55=_0x55b0d4['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4cc067=_0x55b0d4['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x52c6ee=_0x534dbd['plugins']['get']('Users'),_0x45e2c7=_0x534dbd['plugins']['get']('TrackChangesEditing'),_0x1de5c9=_0x534dbd['plugins']['get']('CommentsRepository');for(const _0x550365 of _0x1de5c9['getCommentThreads']())_0x550365['remove']();for(const _0x13b042 of _0x48f5db)_0x52c6ee['getUser'](_0x13b042['id'])||_0x52c6ee['addUser'](_0x13b042);_0x52c6ee['me']||_0x52c6ee['useAnonymousUser']();for(const _0x52894c of _0x4cc067)_0x1de5c9['addCommentThread'](_0x52894c);for(const _0x51d586 of _0x3edc55)_0x45e2c7['addSuggestionData'](_0x51d586);_0x534dbd['data']['set'](_0x5d8956);}(_0x23ca69,_0x5c5991),_0x5c5991['execute'](_0x23b351?'acceptAllSuggestions':'discardAllSuggestions');const _0x57335a=Ge(_0x5c5991)?_0x5c5991['getFullData'](_0x4fc9d0):_0x5c5991['data']['get'](_0x4fc9d0);return await _0x5c5991['destroy'](),_0x57335a;}class Me extends _0x1b6ec0{['options'];constructor(_0x29a613,_0x336f7d){super(_0x29a613),this['options']=_0x336f7d,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x4af9b3,_0x20de47){if(!this['element'])return;const _0xaee916=[];for(const [_0x1e8b10,_0x4f1df3]of _0x4af9b3){const _0x4cc499=document['createElement']('div');_0x4cc499['setAttribute']('data-ck-root-name',_0x1e8b10),_0x4cc499['className']=_0x4f1df3['classes']+'\x20ck-track-changes-preview__root-container',_0x4cc499['innerHTML']=_0x4f1df3['content'],_0xaee916['push'](_0x4cc499);}_0x20de47(this['element'],_0xaee916),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x228e76{constructor(_0x17c54c){super(_0x17c54c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x18d956=this['editor'],_0x247af8=_0x18d956['locale'],_0x526719=_0x18d956['plugins']['get']('Dialog');let _0x100e3a;const _0x49aee8=function(_0x4f4f06){const _0x34c4b7={};if('editables'in _0x4f4f06['ui']['view']){for(const [_0x5b4fc8,_0x5c1836]of Object['entries'](_0x4f4f06['ui']['view']['editables']))_0x34c4b7[_0x5b4fc8]=_0x5c1836['element'];}else _0x34c4b7[_0x4f4f06['model']['document']['getRootNames']()[0x0]]=_0x4f4f06['ui']['view']['editable']['element'];return _0x34c4b7;}(_0x18d956),_0x4f9545=function(_0x5ecbeb){let _0xdfab19=0x0;for(const _0x55c1db of Object['values'](_0x5ecbeb))_0xdfab19=Math['max'](_0xdfab19,_0x55c1db['getBoundingClientRect']()['width']);let _0x42cc54=0x0;for(const _0x475882 of Object['values'](_0x5ecbeb))_0x42cc54+=_0x475882['getBoundingClientRect']()['height'];const _0x345233=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x207d47=Math['min'](_0x42cc54,_0x345233);return{'width':_0xdfab19,'height':_0x207d47};}(_0x49aee8);_0x526719['show']({'id':'finalContentPreview','title':c(_0x247af8,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x247af8,{'dialogRects':_0x4f9545}),'onHide':()=>{_0x100e3a['detachFromDom']();},'onShow':()=>{_0x18d956['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2b22f8=>{const _0x4df5f7=this['_standarizeRootsData'](_0x2b22f8,_0x18d956,_0x49aee8);_0x526719['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4df5f7,_0x18d956['config']['get']('trackChanges.preview.renderFunction'));}),_0x100e3a=new _0x4227a4(_0x247af8,[_0x526719['view']]),_0x100e3a['attachToDom'](),_0x100e3a['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x18d956['once']('destroy',()=>{_0x100e3a['detachFromDom']();});const _0x82be32=_0x526719['view']['headerView']['class'];_0x526719['view']['headerView']['class']=_0x82be32?_0x82be32+'\x20ck-reset_all':'ck-reset_all',_0x526719['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x526719['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x70f441=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3780b9=_0x70f441['previewMode'],_0x1ab97b={};if('$labels'===_0x3780b9){for(const _0x582717 of _0x70f441['getMergeFieldsIds']())_0x1ab97b[_0x582717]=_0x70f441['getLabel'](_0x582717)||_0x582717;}else{const _0x42c7e2='$defaultValues'===_0x3780b9?_0x70f441['getDefaultValues']():_0x70f441['getDataSetValues'](_0x3780b9,!0x0);for(const _0x15fce3 of Object['entries'](_0x42c7e2)){const [_0xa62690,_0xc1971f]=_0x15fce3;_0x1ab97b[_0xa62690]=null!==_0xc1971f?_0xc1971f:_0x70f441['getLabel'](_0xa62690)||_0xa62690;}}return{'mergeFieldsData':_0x1ab97b};}['_standarizeRootsData'](_0xb171f5,_0x2f19ad,_0x4c8996){let _0x3b2d22;if('string'==typeof _0xb171f5){const _0x203d1e=_0x2f19ad['model']['document']['getRootNames']()[0x0];_0x3b2d22={[_0x203d1e]:_0xb171f5};}else _0x3b2d22=_0xb171f5;const _0x324b0a=this['_fixMediaEmbeds'](_0x3b2d22,_0x2f19ad),_0xf57723=function(_0x463080,_0x13cfbd){for(const [_0x22a087,_0x2f193c]of _0x463080)_0x2f193c['classes']=_0x13cfbd[_0x22a087]['classList']['value']['replace']('ck-focused','');return _0x463080;}(this['_sortRoots'](_0x2f19ad)['reduce']((_0x4777fc,_0x250f3a)=>(_0x4777fc['push']([_0x250f3a,{'content':_0x324b0a[_0x250f3a],'classes':''}]),_0x4777fc),[]),_0x4c8996);return _0xf57723;}['_fixMediaEmbeds'](_0x239da0,_0x311e47){if(!_0x311e47['plugins']['has']('MediaEmbedEditing'))return _0x239da0;const _0x4b9e78=_0x311e47['plugins']['get']('MediaEmbedEditing');for(const [_0x469f5f,_0x15924b]of Object['entries'](_0x239da0)){const _0x5416a6=document['createElement']('div');_0x5416a6['innerHTML']=_0x15924b,(_0x5416a6['querySelectorAll']('figure.media')['forEach'](_0x59afa1=>{const _0x2cebca=_0x59afa1['querySelector']('oembed');if(_0x2cebca){const _0x4bacf3=_0x2cebca['getAttribute']('url');if(_0x4bacf3){const _0x55c8f2=_0x4b9e78['registry']['getMediaViewElement'](new _0x3f4f1c(_0x311e47['editing']['view']['document']),_0x4bacf3,{'elementName':'','renderForEditingView':!0x0}),_0x58dcbd=document['createElement']('div');_0x58dcbd['classList']['add']('ck-media__wrapper'),_0x55c8f2['render'](_0x58dcbd,_0x311e47['editing']['view']['domConverter']),_0x2cebca['replaceWith'](_0x58dcbd);}}}),_0x239da0[_0x469f5f]=_0x5416a6['innerHTML']);}return _0x239da0;}['_sortRoots'](_0x5ec17a){if(!function(_0x13b3ad){return void 0x0!==_0x13b3ad['getRootsAttributes'];}(_0x5ec17a))return _0x5ec17a['model']['document']['getRootNames']();const _0x2c3477=[],_0x375b43=new Map();for(const _0x7e46ff of _0x5ec17a['model']['document']['getRootNames']()){const _0xb37233=_0x5ec17a['editing']['view']['getDomRoot'](_0x7e46ff)['getClientRects']()['item'](0x0);_0x2c3477['push'](_0x7e46ff),_0x375b43['set'](_0x7e46ff,_0xb37233);}return _0x2c3477['sort']((_0x1c702f,_0x3aaec6)=>{const _0x358c98=_0x375b43['get'](_0x1c702f),_0x566c0c=_0x375b43['get'](_0x3aaec6);return _0x358c98['y']-_0x566c0c['y']||_0x358c98['x']-_0x566c0c['x'];}),_0x2c3477;}}class te extends _0x483067{static get['requires'](){return[T,_0x2960d0];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x378833){super(_0x378833),_0x378833['commands']['add']('previewFinalContent',new re(this['editor'])),_0x378833['config']['define']('trackChanges.preview.renderFunction',(_0x1f4ca9,_0x569d4e)=>{for(const _0x4c758e of _0x569d4e)_0x1f4ca9['appendChild'](_0x4c758e);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|
|
23
|
+
import{Command as _0x159156,Plugin as _0x48ff0c,PendingActions as _0x3786e5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x3d4c39,ObservableMixin as _0x2284c7,uid as _0x2789d7,priorities as _0x45b1e2,insertToPriorityArray as _0x6ab92a,toArray as _0x564a48,logWarning as _0x30f62c,getEnvKeystrokeText as _0x384aa5,FocusTracker as _0x2b5a6d,KeystrokeHandler as _0x169dd8,Collection as _0xc4c908}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x9715d6,IconCancel as _0x1916af,IconTrackChanges as _0x905e1b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x372230,View as _0xc088de,ViewCollection as _0x4c80ed,FocusCycler as _0x457f9d,ViewModel as _0x45db26,createDropdown as _0x30bdae,SplitButtonView as _0x3997ff,addListToDropdown as _0x1ba1c8,MenuBarMenuView as _0x24cbe4,MenuBarMenuListView as _0x4151be,ListSeparatorView as _0x47c3c2,MenuBarMenuListItemView as _0x42d612,MenuBarMenuListItemButtonView as _0x165d31,BodyCollection as _0x3d0687,Dialog as _0x5d9784}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x27c4c5,hashObject as _0x2af07e,surroundingMarkersDetector as _0x51036d,FOCUS_ANNOTATION_KEYSTROKE as _0x168795,AriaDescriptionView as _0xffbd6,setupThreadKeyboardNavigation as _0x16983b,trimHtml as ti,UserView as _0x5141a4,LateFocusButtonView as _0x27e066,getDateTimeFormatter as _0x101be9,getAllMarkersDomElementsSorted as _0x14fb39,sanitizeEditorConfig as _0x1753c0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x562f09,LiveRange as _0x2ee791,LivePosition as _0xdb5cd7,DowncastWriter as _0x1add0b}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x121fef,toWidget as _0x5b3515}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x245e5c,set as _0x21997a,isEqual as _0xa63f93,unset as _0x6ae69b,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1faa63,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x174698}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x42fb35}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x159156{['_enabledCommands'];constructor(_0x485d4a,_0x2aa9b5){super(_0x485d4a),this['_enabledCommands']=_0x2aa9b5,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 _0x447bba of this['editor']['commands']['commands']())_0x447bba['affectsData']&&!this['_enabledCommands']['has'](_0x447bba)&&_0x447bba['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1ffbcb of this['editor']['commands']['commands']())_0x1ffbcb['affectsData']&&!this['_enabledCommands']['has'](_0x1ffbcb)&&_0x1ffbcb['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x159156{['_suggestions'];constructor(_0x230db7,_0x5e9cb6){super(_0x230db7),this['_suggestions']=_0x5e9cb6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c05d9){const _0x1ee0a4=this['_suggestions']['get'](_0x1c05d9);if(!_0x1ee0a4)throw new _0x3d4c39('track-changes-accept-suggestion-not-found',this);const _0x18a5c6=_0x1ee0a4['getRanges']();this['editor']['model']['canEditAt'](_0x18a5c6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1ee0a4);}}class R extends _0x159156{['_suggestions'];constructor(_0x17c771,_0x530092){super(_0x17c771),this['_suggestions']=_0x530092,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x35ac2a){const _0x21cb4a=this['_suggestions']['get'](_0x35ac2a);if(!_0x21cb4a)throw new _0x3d4c39('track-changes-discard-suggestion-not-found',this);const _0x20f6c7=_0x21cb4a['getRanges']();this['editor']['model']['canEditAt'](_0x20f6c7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x21cb4a);}}function ls(_0x3143b2,_0x488b1c){let _0x453426='';return _0x453426+=_0x3143b2['split']('*')['map']((_0x1cc6b2,_0x563d89)=>_0x563d89%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x1cc6b2)+'</span>':nn(_0x1cc6b2))['join'](''),_0x488b1c&&(_0x453426+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x488b1c['value']+'\x22\x20title=\x22'+_0x488b1c['title']+'\x22></span>'),_0x453426;}function nn(_0x4ccca9){const _0x22cd8c=document['createElement']('span');return _0x22cd8c['innerText']=_0x4ccca9,_0x22cd8c['innerHTML'];}function ts(_0x4b0d54){return _0x4b0d54['sort']((_0x358010,_0x51a97f)=>'deletion'==_0x358010['type']&&'deletion'!=_0x51a97f['type']?-0x1:'deletion'!=_0x358010['type']&&'deletion'==_0x51a97f['type']?0x1:0x0);}function to(_0xbf1514,_0x589dec){let _0x12f831,_0x395c3b=0x0;const _0x3d287c=[],_0x55b43d=_0x589dec['schema'];for(;_0x395c3b<_0xbf1514['length'];){const _0x5f12a2=_0xbf1514[_0x395c3b],_0x3c4903=_0xbf1514[_0x395c3b+0x1];_0x12f831||(_0x12f831=_0x589dec['createPositionBefore'](_0x5f12a2)),on(_0x589dec,_0x5f12a2,_0x3c4903)||(_0x3d287c['push'](_0x589dec['createRange'](_0x12f831,_0x55b43d['isObject'](_0x5f12a2)?_0x589dec['createPositionAfter'](_0x5f12a2):_0x589dec['createPositionAt'](_0x5f12a2,'end'))),_0x12f831=null),_0x395c3b++;}return _0x3d287c;}function on(_0x1f2c65,_0x1272f1,_0x4b2358){if(!_0x4b2358)return!0x1;const _0x10d711=_0x1f2c65['createPositionAfter'](_0x1272f1),_0x24e98c=_0x1f2c65['createPositionBefore'](_0x4b2358);return _0x10d711['isTouching'](_0x24e98c);}function rs(_0x33ca36,_0x22ac60,_0xb57dea){for(;_0xb57dea['length'];){const _0x2340fb=_0xb57dea['splice'](0x0,0x64);_0x33ca36['change'](()=>{for(const _0x1689f0 of _0x2340fb)_0x1689f0['isInContent']&&_0x22ac60['execute'](_0x1689f0['id']);});}}class x extends _0x159156{['_command'];['_suggestions'];constructor(_0x1e67f3,_0x55aeaf,_0x5043e3){super(_0x1e67f3),this['_command']=_0x55aeaf,this['_suggestions']=_0x5043e3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b12e8=Array['from'](this['_suggestions']['values']())['some'](_0x5b5041=>_0x5b5041['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b12e8;}['execute'](){const _0x3ef5c0=ts(Array['from'](this['_suggestions']['values']()));for(const _0x4d8089 of _0x3ef5c0){const _0x571c02=_0x4d8089['getRanges']();if(!this['editor']['model']['canEditAt'](_0x571c02))return;}rs(this['editor']['model'],this['_command'],_0x3ef5c0);}}class E extends _0x159156{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x309da4,_0x2c87c3,_0x1c8ccd){super(_0x309da4),this['_command']=_0x2c87c3,this['_suggestions']=_0x1c8ccd,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x50e6b6=this['editor']['model']['document']['selection'],_0x46944b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x9b0675,_0x48e863){const _0x74c30d=Array['from'](_0x9b0675['getRanges']()),_0x513fd1=new Set();for(const _0x32f822 of _0x48e863)if(_0x32f822['isInContent']){for(const _0x515be4 of _0x74c30d)for(const _0x5e281b of _0x32f822['getRanges']())(_0x515be4['isIntersecting'](_0x5e281b)||_0x9b0675['isCollapsed']&&!_0x32f822['isMultiRange']&&_0x32f822['next']&&_0x5e281b['end']['isTouching'](_0x515be4['start']))&&_0x513fd1['add'](_0x32f822);}return _0x513fd1;}(_0x50e6b6,_0x46944b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x7311b5=ts(Array['from'](this['_selectedSuggestions']));for(const _0x465045 of _0x7311b5){const _0x155d1f=_0x465045['getRanges']();if(!this['editor']['model']['canEditAt'](_0x155d1f))return;}rs(this['editor']['model'],this['_command'],_0x7311b5);}}class o extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2284c7(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2c88e6,_0x4d2625){super(),this['id']=_0x4d2625['id'],this['type']=_0x4d2625['type'],this['subType']=_0x4d2625['subType']||null,this['author']=_0x4d2625['author'],this['creator']=_0x4d2625['creator']||_0x4d2625['author'],this['isExternal']=Boolean(_0x4d2625['attributes']&&_0x4d2625['attributes']['@external']),this['data']=null,this['_model']=_0x2c88e6,this['_onAccept']=_0x4d2625['onAccept'],this['_onDiscard']=_0x4d2625['onDiscard'],this['_onAttributesChange']=_0x4d2625['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4d2625['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 _0x2f2c55=this;for(;_0x2f2c55['previous'];)_0x2f2c55=_0x2f2c55['previous'];return _0x2f2c55;}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'](_0x4a58f8){this['_markerNames']['add'](_0x4a58f8);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x542a3b=>this['_model']['markers']['get'](_0x542a3b))['filter'](_0x3ec868=>_0x3ec868);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x516d1e=>{for(const _0xa39ddb of this['getMarkers']())_0x516d1e['removeMarker'](_0xa39ddb);}),this['_markerNames']['clear']();}['removeMarker'](_0x6c25b0){this['_model']['change'](_0x16295f=>{_0x16295f['removeMarker'](_0x6c25b0);}),this['_markerNames']['delete'](_0x6c25b0);}['addRange'](_0x33e190){const _0x2a964b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x2a964b),this['_model']['change'](_0x340c19=>{_0x340c19['addMarker'](_0x2a964b,{'range':_0x33e190,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3fdae8){for(const _0x824dcd of this['getRanges']())if(_0x824dcd['isIntersecting'](_0x3fdae8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ca8ac=>_0x4ca8ac['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x184b6a,_0x13d82c)=>[..._0x184b6a,..._0x13d82c['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x3573b5=this['getRanges']();if(0x1!=_0x3573b5['length'])return null;const _0x202e85=_0x3573b5[0x0],_0x36b134=_0x202e85['start']['nodeAfter'],_0x2ba52a=_0x202e85['end']['nodeBefore'];return _0x36b134 instanceof _0x562f09?_0x36b134!=_0x2ba52a?null:_0x36b134: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 _0x4c6695=[];let _0x384a76=this['head'];for(;_0x384a76;)_0x4c6695['push'](_0x384a76),_0x384a76=_0x384a76['next'];return _0x4c6695;}['setAttribute'](_0x1f10db,_0x24cf01){const _0x53b25d=_0x245e5c(this['attributes']);_0x21997a(_0x53b25d,_0x1f10db,_0x24cf01),_0xa63f93(_0x53b25d,this['attributes'])||(this['attributes']=_0x53b25d,this['_onAttributesChange'](_0x53b25d));}['removeAttribute'](_0x3b008e){const _0x5565f6=_0x245e5c(this['attributes']);_0x6ae69b(_0x5565f6,_0x3b008e),_0xa63f93(_0x5565f6,this['attributes'])||(this['attributes']=_0x5565f6,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 _0x2789d7()['substr'](0x1,0x5);}}function c(_0x3f7d8d,_0x25b9a2,_0x4dde0c){const _0xe51249=_0x3f7d8d['t'],t=_0x3f7d8d['t'];switch(_0x25b9a2){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x4dde0c);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4dde0c);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4dde0c);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4dde0c);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4dde0c);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',_0x4dde0c);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4dde0c);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dde0c);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4dde0c);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4dde0c);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4dde0c);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4dde0c);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4dde0c);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4dde0c);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4dde0c);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4dde0c);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4dde0c);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4dde0c);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4dde0c);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4dde0c);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4dde0c);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4dde0c);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4dde0c);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4dde0c);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4dde0c);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4dde0c);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4dde0c);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4dde0c);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4dde0c);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4dde0c);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4dde0c);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4dde0c);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4dde0c);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4dde0c);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'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4dde0c);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4dde0c);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'},_0x4dde0c);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4dde0c);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 _0xe51249({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4dde0c);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xe51249({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4dde0c);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4dde0c);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'},_0x4dde0c);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'},_0x4dde0c);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'},_0x4dde0c);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x25b9a2;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x47e055,_0xdbe837){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x47e055,this['_locale']=_0xdbe837;}['getDescriptions'](_0x4f0933){const _0x59a49d=[],_0x33f62f=new Set(),_0x4887f9=new Set();for(let _0x3bb9bd=0x0;_0x3bb9bd<_0x4f0933['length'];_0x3bb9bd++){const _0x522b2c=_0x4f0933[_0x3bb9bd];if(!_0x522b2c['isInContent'])continue;const _0x1a9291=this['_handleCustomCallbackDescription'](_0x522b2c);if(_0x1a9291){if(null!=_0x522b2c['subType']){if(_0x33f62f['has'](_0x522b2c['subType']))continue;_0x33f62f['add'](_0x522b2c['subType']);}_0x59a49d['push'](_0x1a9291);}else{if('attribute'!=_0x522b2c['type'])'insertion'!=_0x522b2c['type']&&'deletion'!=_0x522b2c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x59a49d,_0x522b2c,_0x4f0933[_0x3bb9bd+0x1]);else{const _0x567ffc=_0x522b2c['data']['key'];if(_0x4887f9['has'](_0x567ffc))continue;_0x4887f9['add'](_0x522b2c['data']['key']),_0x567ffc==u?this['_handleRenameSuggestionDescription'](_0x59a49d,_0x522b2c):this['_handleAttributeSuggestionDescription'](_0x59a49d,_0x522b2c);}}}return this['_resolveDescriptionItems'](_0x59a49d);}['registerDescriptionCallback'](_0x54705d){this['_customCallbacks']['push'](_0x54705d);}['registerElementLabel'](_0x26eecf,_0x6a1060,_0x4bf1ad=_0x45b1e2['normal']){'function'==typeof _0x26eecf?_0x6ab92a(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26eecf,'label':_0x6a1060,'priority':_0x4bf1ad}):this['_itemLabels']['set'](_0x26eecf,_0x6a1060);}['registerAttributeLabel'](_0x3628ee,_0x35ec19){this['_attributeLabels']['set'](_0x3628ee,_0x35ec19);}['getItemLabel'](_0xaf864c,_0x1dec1d=0x1){let _0x4a7729;for(const _0x27a45f of this['_itemLabelsCallbacks'])if(_0x27a45f['matchingCallback'](_0xaf864c)){_0x4a7729=_0x27a45f['label'];break;}return _0x4a7729||(_0x4a7729=this['_itemLabels']['get'](_0xaf864c['name'])),_0x4a7729?_0x4a7729(_0x1dec1d):0x1!==_0x1dec1d?_0x1dec1d+'\x20'+_0xaf864c['name']+'s':''+_0xaf864c['name'];}['_addDescriptionItems'](_0x3397e4,_0x3644e4){const _0x140653=_0x3644e4['getFirstRange']()['getWalker'](),_0x3a6f55='insertion'==_0x3644e4['type']?'add':'remove';for(const _0x1468eb of _0x140653){const _0x39c926=_0x1468eb['item'],_0x45cac3=_0x3397e4[_0x3397e4['length']-0x1];if(_0x39c926['is']('$textProxy'))_0x45cac3&&_0x45cac3['type']['indexOf']('Container')>-0x1&&_0x3397e4['pop'](),_0x45cac3&&'text'==_0x45cac3['type']?_0x45cac3[_0x3a6f55]+=_0x39c926['data']:_0x3397e4['push']({'type':'text','add':'add'==_0x3a6f55?_0x39c926['data']:'','remove':'remove'==_0x3a6f55?_0x39c926['data']:''});else{if(this['_schema']['isObject'](_0x39c926)){const _0x504daa=_0x39c926;if(_0x45cac3&&_0x45cac3['type']['indexOf']('Container')>-0x1&&_0x3397e4['pop'](),'elementEnd'==_0x1468eb['type'])continue;_0x45cac3&&_0x45cac3['type']==_0x3a6f55+'Object'&&_0x45cac3['element']['name']==_0x504daa['name']?_0x45cac3['quantity']++:_0x3397e4['push']({'type':_0x3a6f55+'Object','element':_0x504daa,'quantity':0x1}),_0x140653['skip'](_0x12edcb=>!('elementEnd'==_0x12edcb['type']&&_0x12edcb['item']==_0x39c926));}else{if(this['_schema']['checkChild'](_0x39c926,'$text')||_0x39c926['is']('element','softBreak')){const _0x4ff6bb=_0x39c926;if('add'==_0x3a6f55&&'elementStart'==_0x1468eb['type']||'remove'==_0x3a6f55&&'elementEnd'==_0x1468eb['type'])continue;if(_0x45cac3&&-0x1==_0x45cac3['type']['indexOf']('Container')){'text'==_0x45cac3['type']&&(_0x45cac3[_0x3a6f55]+='\x0a');continue;}let _0x102034;if(_0x102034='add'==_0x3a6f55?_0x4ff6bb['nextSibling']&&!this['_schema']['isObject'](_0x4ff6bb['nextSibling'])?_0x4ff6bb['nextSibling']:null:_0x4ff6bb['previousSibling']&&!this['_schema']['isObject'](_0x4ff6bb['previousSibling'])?_0x4ff6bb['previousSibling']:null,_0x4ff6bb['isEmpty']||_0x102034&&_0x102034['isEmpty']){const _0x344873=_0x102034&&_0x102034['isEmpty']?_0x102034:_0x4ff6bb;_0x45cac3&&_0x45cac3['type']==_0x3a6f55+'EmptyContainer'&&_0x45cac3['element']['name']==_0x344873['name']?_0x45cac3['quantity']++:_0x3397e4['push']({'type':_0x3a6f55+'EmptyContainer','element':_0x344873,'quantity':0x1});}else _0x3397e4['push']({'type':_0x3a6f55+'Container','element':_0x4ff6bb});}}}}}['_resolveDescriptionItems'](_0x516cc9){const _0x58ef2a=this['_locale'],_0x2dacf5=[],_0xc9b1e5=[],_0x27885f=[];for(const _0x513cd1 of _0x516cc9)switch(_0x513cd1['type']){case'text':if(_0x513cd1['add']=_0x513cd1['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x513cd1['remove']=_0x513cd1['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x513cd1['add']&&''!=_0x513cd1['remove']){_0x2dacf5['push']({'type':'replace','content':c(_0x58ef2a,'REPLACE_TEXT',['\x22'+_0x513cd1['remove']+'\x22','\x22'+_0x513cd1['add']+'\x22'])});continue;}if(null!=_0x513cd1['add']['match'](/^ +$/)){_0x2dacf5['push']({'type':'insertion','content':c(_0x58ef2a,'*Insert:*\x20%0',c(_0x58ef2a,'ELEMENT_SPACE',_0x513cd1['add']['length']))});continue;}if(null!=_0x513cd1['remove']['match'](/^ +$/)){_0x2dacf5['push']({'type':'deletion','content':c(_0x58ef2a,'*Remove:*\x20%0',c(_0x58ef2a,'ELEMENT_SPACE',_0x513cd1['remove']['length']))});continue;}if(''!=_0x513cd1['add']){_0x2dacf5['push']({'type':'insertion','content':c(_0x58ef2a,'*Insert:*\x20%0','\x22'+_0x513cd1['add']+'\x22')});continue;}_0x2dacf5['push']({'type':'deletion','content':c(_0x58ef2a,'*Remove:*\x20%0','\x22'+_0x513cd1['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2dacf5['push']({'type':'insertion','content':c(_0x58ef2a,'*Insert:*\x20%0',this['getItemLabel'](_0x513cd1['element'],_0x513cd1['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2dacf5['push']({'type':'deletion','content':c(_0x58ef2a,'*Remove:*\x20%0',this['getItemLabel'](_0x513cd1['element'],_0x513cd1['quantity']))});continue;case'addContainer':_0x2dacf5['push']({'type':'insertion','content':c(_0x58ef2a,'*Split:*\x20%0',this['getItemLabel'](_0x513cd1['element'],_0x513cd1['quantity']))});continue;case'removeContainer':_0x2dacf5['push']({'type':'deletion','content':c(_0x58ef2a,'*Merge:*\x20%0',this['getItemLabel'](_0x513cd1['element'],_0x513cd1['quantity']))});continue;case'addFormat':_0xc9b1e5['push'](_0x513cd1['key']);continue;case'removeFormat':_0x27885f['push'](_0x513cd1['key']);continue;default:_0x2dacf5['push'](_0x513cd1);}if(_0xc9b1e5['length']){const _0x4061da=_0xc9b1e5['map'](_0x40f4ce=>this['_attributeLabels']['has'](_0x40f4ce)?this['_attributeLabels']['get'](_0x40f4ce):_0x40f4ce)['join'](',\x20');_0x2dacf5['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x4061da)});}if(_0x27885f['length']){const _0x3d676f=_0x27885f['map'](_0x2d2527=>this['_attributeLabels']['has'](_0x2d2527)?this['_attributeLabels']['get'](_0x2d2527):_0x2d2527)['join'](',\x20');_0x2dacf5['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x3d676f)});}return _0x2dacf5;}['_handleCustomCallbackDescription'](_0x3634c3){for(const _0x14072d of this['_customCallbacks']){const _0x3541ce=_0x14072d(_0x3634c3);if(_0x3541ce&&'type'in _0x3541ce)return _0x3541ce;}}['_handleAttributeSuggestionDescription'](_0x5c10b7,_0x1f4f69){const _0x16010c=_0x1f4f69['data'],_0x30e5ec=void 0x0===_0x16010c['newValue']?'removeFormat':'addFormat';_0x5c10b7['push']({'type':_0x30e5ec,'key':_0x16010c['key']});}['_handleRenameSuggestionDescription'](_0x11b64,_0x43a32f){_0x11b64['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x43a32f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x95ad4,_0x459727,_0xb8048b){if(this['_addDescriptionItems'](_0x95ad4,_0x459727),_0xb8048b&&_0xb8048b['getFirstRange']()&&!_0x459727['getFirstRange']()['end']['isEqual'](_0xb8048b['getFirstRange']()['start'])){const _0x301e8b=_0x95ad4[_0x95ad4['length']-0x1],_0x872f84='insertion'==_0x459727['type']?'add':'remove';_0x301e8b&&'text'==_0x301e8b['type']&&(_0x301e8b[_0x872f84]+='\x0a');}}}class U extends _0x48ff0c{['afterInit'](){const _0x515ca9=this['editor'],_0x1e19b8=_0x515ca9['plugins']['get']('TrackChangesEditing');_0x515ca9['commands']['get']('showAIAssistant')&&_0x1e19b8['enableCommand']('showAIAssistant');}}class V extends _0x48ff0c{['afterInit'](){const _0x22d38b=this['editor'],_0x75596d=_0x22d38b['locale'];if(!_0x22d38b['plugins']['has']('AlignmentEditing'))return;const _0x46767e=_0x22d38b['plugins']['get']('TrackChangesEditing');_0x46767e['enableDefaultAttributesIntegration']('alignment'),_0x46767e['registerBlockAttribute']('alignment'),_0x46767e['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x75596d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4680b9=this['editor'],_0x25687a=_0x4680b9['locale'];_0x4680b9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2794c9=>{if('formatBlock'!=_0x2794c9['type'])return;const {data:_0x49492c}=_0x2794c9;if(_0x49492c&&'alignment'==_0x49492c['commandName']){const _0x55156b=_0x49492c['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x25687a,'*Format:*\x20%0',function(_0x58c72c){switch(_0x58c72c){case'left':return c(_0x25687a,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x25687a,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x25687a,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x25687a,'FORMAT_JUSTIFY_TEXT');}}(_0x55156b))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x48ff0c{['afterInit'](){const _0x148d4d=this['editor'],_0x55cc6d=_0x148d4d['plugins']['get']('TrackChangesEditing'),_0x139003=_0x148d4d['locale'];for(const _0x440142 of Zt){if(!_0x148d4d['plugins']['has'](_0x440142))continue;const _0x216d6b=_0x440142['slice'](0x0,-0x7)['toLowerCase'](),_0x3f5ce3='FORMAT_'+_0x216d6b['toUpperCase']();_0x55cc6d['enableDefaultAttributesIntegration'](_0x216d6b),_0x55cc6d['registerInlineAttribute'](_0x216d6b),_0x55cc6d['descriptionFactory']['registerAttributeLabel'](_0x216d6b,c(_0x139003,_0x3f5ce3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x500334=this['editor'],_0x147a1a=_0x500334['locale'],_0x35dd8c=_0x500334['plugins']['get']('TrackChangesEditing');function _0x43d35b(_0x1a0783,_0x57d821){_0x35dd8c['descriptionFactory']['registerDescriptionCallback'](_0x4f529f=>{if('formatInline'!=_0x4f529f['type'])return;const {data:_0xc15a3d}=_0x4f529f;return _0xc15a3d&&_0xc15a3d['commandName']===_0x1a0783?_0xc15a3d['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x147a1a,'*Format:*\x20%0',_0x57d821)}:{'type':'format','content':c(_0x147a1a,'*Remove\x20format:*\x20%0',_0x57d821)}:void 0x0;});}_0x43d35b('bold',c(_0x147a1a,'FORMAT_BOLD')),_0x43d35b('italic',c(_0x147a1a,'FORMAT_ITALIC')),_0x43d35b('underline',c(_0x147a1a,'FORMAT_UNDERLINE')),_0x43d35b('code',c(_0x147a1a,'FORMAT_CODE')),_0x43d35b('strikethrough',c(_0x147a1a,'FORMAT_STRIKETHROUGH')),_0x43d35b('subscript',c(_0x147a1a,'FORMAT_SUBSCRIPT')),_0x43d35b('superscript',c(_0x147a1a,'FORMAT_SUPERSCRIPT'));}}class G extends _0x48ff0c{['afterInit'](){const _0x3188e8=this['editor'],_0x3c9d86=_0x3188e8['locale'];if(!_0x3188e8['plugins']['has']('BlockQuoteEditing'))return;const _0x365c19=_0x3188e8['plugins']['get']('TrackChangesEditing'),_0x1b8c98=this['editor']['commands']['get']('blockQuote');_0x365c19['enableCommand']('blockQuote',(_0xd3657b,_0x2f7352={})=>{const _0xf0e0ea=this['editor']['model']['document']['selection'],_0x3da851=_0x2f7352&&void 0x0!==_0x2f7352['forceValue']?_0x2f7352['forceValue']:!_0x1b8c98['value'];let _0x9d4b84=[];if(_0x3da851){const _0x1d394e=Array['from'](_0xf0e0ea['getSelectedBlocks']())['filter'](_0x439aa8=>oo(_0x439aa8)||function(_0x55f9e3,_0x2eb9df){const _0x5cd6b8=_0x2eb9df['checkChild'](_0x55f9e3['parent'],'blockQuote'),_0x3f9242=_0x2eb9df['checkChild'](['$root','blockQuote'],_0x55f9e3);return _0x5cd6b8&&_0x3f9242;}(_0x439aa8,this['editor']['model']['schema']));_0x9d4b84=to(_0x1d394e,_0x3188e8['model']);}else{const _0x1688ed=Array['from'](_0xf0e0ea['getSelectedBlocks']())['filter'](_0x2844ac=>oo(_0x2844ac));_0x9d4b84=to(_0x1688ed,_0x3188e8['model']);}_0x3188e8['model']['change'](()=>{for(const _0x39f0b8 of _0x9d4b84)_0x365c19['markBlockFormat'](_0x39f0b8,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3da851}]});});}),_0x365c19['descriptionFactory']['registerDescriptionCallback'](_0x4c9085=>{const {data:_0x1f2334}=_0x4c9085;if(_0x1f2334&&'blockQuote'==_0x1f2334['commandName']){const _0x5ae9db=c(_0x3c9d86,'ELEMENT_BLOCK_QUOTE');return _0x1f2334['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3c9d86,'*Set\x20format:*\x20%0',_0x5ae9db)}:{'type':'format','content':c(_0x3c9d86,'*Remove\x20format:*\x20%0',_0x5ae9db)};}});}}function oo(_0x271783){return'blockQuote'==_0x271783['parent']['name'];}class L extends _0x48ff0c{['afterInit'](){const _0x27ff60=this['editor'],_0x37c8a3=_0x27ff60['locale'],_0x423246=_0x27ff60['plugins']['get']('TrackChangesEditing');_0x27ff60['plugins']['has']('BookmarkEditing')&&(_0x423246['enableCommand']('insertBookmark'),_0x423246['enableDefaultAttributesIntegration']('updateBookmark'),_0x423246['registerBlockAttribute']('bookmarkId'),_0x423246['descriptionFactory']['registerDescriptionCallback'](_0x2547b7=>{if('insertion'!=_0x2547b7['type']&&'deletion'!=_0x2547b7['type']&&'attribute'!=_0x2547b7['type'])return;const _0x8e93d4=_0x2547b7['getContainedElement']();if(null==_0x8e93d4)return;if(!_0x8e93d4['is']('element','bookmark'))return;const _0x20e8ef=_0x8e93d4['getAttribute']('bookmarkId');if('insertion'==_0x2547b7['type'])return{'type':'insertion','content':c(_0x37c8a3,'*Insert:*\x20%0','\x22'+_0x20e8ef+'\x22\x20'+c(_0x37c8a3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2547b7['type'])return{'type':'deletion','content':c(_0x37c8a3,'*Remove:*\x20%0','\x22'+_0x20e8ef+'\x22\x20'+c(_0x37c8a3,'ELEMENT_BOOKMARK'))};const {data:_0x207879}=_0x2547b7;if(!_0x207879||'bookmarkId'!=_0x207879['key'])return;return{'type':'format','content':c(_0x37c8a3,'*Set\x20bookmark:*\x20%0','\x22'+_0x207879['newValue']+'\x22')};}));}}class J extends _0x48ff0c{['afterInit'](){const _0x3029e2=this['editor'];_0x3029e2['plugins']['has']('CaseChange')&&(_0x3029e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3029e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3029e2['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x48ff0c{['afterInit'](){const _0xabe66e=this['editor'];_0xabe66e['commands']['get']('ckbox')&&_0xabe66e['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x48ff0c{['afterInit'](){const _0x388ec7=this['editor'];if(!_0x388ec7['plugins']['has']('CodeBlock'))return;const _0x2982a6=_0x388ec7['plugins']['get']('TrackChangesEditing'),_0x3b3680=_0x388ec7['locale'],_0x58e760=_0x388ec7['config']['get']('codeBlock')['languages'],_0x13b790=_0x388ec7['commands']['get']('codeBlock');_0x2982a6['enableCommand']('indentCodeBlock'),_0x2982a6['enableCommand']('outdentCodeBlock'),_0x2982a6['enableCommand']('codeBlock',(_0x8d0a10,_0x4f7592={})=>{const _0xc017aa=_0x388ec7['model'],_0x89407=_0x388ec7['model']['document']['selection'],_0x4fe6bd=_0x4f7592&&void 0x0!==_0x4f7592['forceValue']?_0x4f7592['forceValue']:!_0x13b790['value'];let _0x12aadc;_0x4f7592['language']||(_0x4f7592['language']=_0x58e760[0x0]['language']),_0x12aadc=_0x4fe6bd?Array['from'](_0x89407['getSelectedBlocks']())['filter'](_0x59e24b=>eo(_0x59e24b)||function(_0x3042b2,_0x2baf9b){if(_0x3042b2['is']('rootElement')||_0x2baf9b['isLimit'](_0x3042b2))return!0x1;return _0x2baf9b['checkChild'](_0x3042b2['parent'],'codeBlock');}(_0x59e24b,_0xc017aa['schema'])):Array['from'](_0x89407['getSelectedBlocks']())['filter'](_0x513de4=>eo(_0x513de4));const _0x1b74ee=to(_0x12aadc,_0xc017aa);_0xc017aa['change'](()=>{for(const _0x17268a of _0x1b74ee)_0x2982a6['markBlockFormat'](_0x17268a,{'commandName':'codeBlock','commandParams':[{..._0x4f7592,'forceValue':_0x4fe6bd}],'formatGroupId':'blockName'});});}),(_0x2982a6['descriptionFactory']['registerElementLabel']('codeBlock',_0x445aa4=>c(_0x3b3680,'ELEMENT_CODE_BLOCK',_0x445aa4)),_0x2982a6['descriptionFactory']['registerDescriptionCallback'](_0x117bbe=>{if('formatBlock'!=_0x117bbe['type'])return;const _0x429f81=_0x3b3680['t'],{data:_0x2542f8}=_0x117bbe;if(!_0x2542f8||'codeBlock'!=_0x2542f8['commandName'])return;const _0x4fc3dd=_0x2542f8['commandParams'][0x0]['language'],_0xe334b0=_0x429f81(_0x58e760['find'](_0x1998c8=>_0x1998c8['language']===_0x4fc3dd)['label'])['toLowerCase']();return _0x2542f8['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3b3680,'*Set\x20format:*\x20%0',c(_0x3b3680,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe334b0+')')}:{'type':'format','content':c(_0x3b3680,'*Remove\x20format:*\x20%0',c(_0x3b3680,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5ab9bd){return'codeBlock'==_0x5ab9bd['name'];}class q extends _0x48ff0c{['afterInit'](){const _0x2d5485=this['editor'];if(!_0x2d5485['plugins']['has']('CommentsEditing'))return;_0x2d5485['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x4862f1,_0x58b264,_0x212b5e){const _0x595a05=[];for(const _0x523499 of _0x58b264['getItems']())_0x523499['hasAttribute'](_0x4862f1)&&_0x595a05['push'](_0x212b5e['createRangeOn'](_0x523499));return _0x595a05;}function Fe(_0x117091,_0x3be3a8,{showActiveMarker:_0x4e3c2e=!0x0}={}){const _0x18ee0b=_0x117091['plugins']['get']('TrackChangesEditing');return(_0x368db2,_0xb0a983,_0x1f08a5)=>{if(!_0x1f08a5['consumable']['test'](_0xb0a983['markerRange'],_0x368db2['name']))return;const _0x2e67f5=_0xb0a983['markerRange']['getWalker'](),_0x585273=_0xb0a983['markerRange']['start'],_0xb33733=_0x117091['model']['schema'];let _0xa37c48=null,_0x4115a3=null,_0x57f22a=!0x1,_0x11c81d=!0x1;for(const _0x51bafb of _0x2e67f5){const _0x315865=_0x51bafb['item'];_0x57f22a=_0x57f22a||_0xb33733['isContent'](_0x315865);const _0x5b8506=_0x1f08a5['mapper']['toViewElement'](_0x315865);if(_0x5b8506&&_0x5b8506['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51bafb['type']&&(_0xb33733['isBlock'](_0x315865)&&!_0xb33733['isLimit'](_0x315865)&&(_0x315865['nextSibling']||_0x585273['isAtEnd']?_0xa37c48&&_0xa37c48['parent']==_0x315865||(_0xa37c48=_0x315865,_0x49033b(_0x51bafb['previousPosition']),_0x11c81d=!0x0):_0x4115a3=_0x4115a3||_0x51bafb['previousPosition']));}function _0x49033b(_0x32565f){const {id:_0x2cddf6,authorId:_0x5e3312}=_0x18ee0b['_splitMarkerName'](_0xb0a983['markerName']),_0x491b5c=_0x1f08a5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3be3a8,'data-suggestion':_0x2cddf6,'data-author-id':_0x5e3312}),_0x17ecc5=_0x1f08a5['mapper']['toViewPosition'](_0x32565f);_0x4e3c2e&&_0x18ee0b['activeMarkers']['includes'](_0xb0a983['markerName'])&&_0x1f08a5['writer']['addClass']('ck-suggestion-marker--active',_0x491b5c),_0x1f08a5['writer']['insert'](_0x17ecc5,_0x491b5c),_0x1f08a5['mapper']['bindElementToMarker'](_0x491b5c,_0xb0a983['markerName']);}_0x57f22a||_0x11c81d||!_0x4115a3||_0x49033b(_0x4115a3);};}class z extends _0x48ff0c{static get['requires'](){return[_0x1faa63];}['init'](){const _0x14f148=this['editor'],_0x4d363c=_0x14f148['plugins']['get']('TrackChangesEditing');_0x4d363c['enableCommand']('delete');const _0x3834b7=_0x14f148['commands']['get']('deleteForward');_0x4d363c['enableCommand']('deleteForward',(_0x3df553,_0xe5018f={})=>{const _0x15f1c4=_0x14f148['model']['createSelection'](_0x14f148['model']['document']['selection']);_0x15f1c4['isCollapsed']&&_0x14f148['model']['modifySelection'](_0x15f1c4,{'direction':'forward','unit':_0xe5018f['unit']});const _0x1daf59=_0x15f1c4['getFirstRange'](),_0x35cbc5=_0x2ee791['fromRange'](_0x1daf59);let _0x40e8ba;_0x3df553(_0xe5018f),_0x40e8ba='$graveyard'==_0x35cbc5['root']['rootName']?_0x14f148['model']['createRange'](_0x1daf59['start']):_0x14f148['model']['createRange'](_0x35cbc5['start'],_0x35cbc5['end']),_0x35cbc5['detach'](),_0x14f148['model']['enqueueChange'](_0x3834b7['buffer']['batch'],_0xb9937a=>{_0x3834b7['buffer']['lock'](),_0xb9937a['setSelection'](_0xb9937a['createRange'](_0x40e8ba['end'])),_0x3834b7['buffer']['unlock']();});}),_0x14f148['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x14f148,'merge'),{'priority':'high'}),_0x14f148['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x292375,_0x160cab,_0x118c25)=>{_0x118c25['options']['showSuggestionHighlights']&&Fe(_0x14f148,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x292375,_0x160cab,_0x118c25);},{'priority':'high'}),_0x14f148['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4d3499,_0x2062ad,_0x4c8dfa)=>{const _0x1d749c=_0x4c8dfa['mapper']['markerNameToElements'](_0x2062ad['markerName']);if(_0x1d749c){for(const _0x4a5847 of _0x1d749c)_0x4a5847['is']('uiElement')&&(_0x4c8dfa['mapper']['unbindElementFromMarkerName'](_0x4a5847,_0x2062ad['markerName']),_0x4c8dfa['writer']['remove'](_0x4a5847));}},{'priority':'high'});}}class W extends _0x48ff0c{['afterInit'](){const _0x3bd6ed=this['editor'];if(!_0x3bd6ed['plugins']['has']('ListEditing'))return;const _0x24fc9e=_0x3bd6ed['locale'],_0x38b903=_0x3bd6ed['plugins']['get']('TrackChangesEditing'),_0x337b3e=_0x3bd6ed['plugins']['has']('TodoListEditing'),_0x2cd22d=!!_0x3bd6ed['config']['get']('list.multiBlock');function _0x5eb74f(_0x3a7b09){return{'type':'format','content':''+c(_0x24fc9e,'*Set\x20format:*\x20%0',_0x3a7b09)};}function _0x2968df(_0x21f9f5){return{'type':'format','content':''+c(_0x24fc9e,'*Remove\x20format:*\x20%0',_0x21f9f5)};}_0x38b903['enableDefaultAttributesIntegration']('numberedList'),_0x38b903['enableDefaultAttributesIntegration']('bulletedList'),_0x38b903['enableDefaultAttributesIntegration']('customNumberedList'),_0x38b903['enableDefaultAttributesIntegration']('customBulletedList'),_0x38b903['enableDefaultAttributesIntegration']('indentList'),_0x38b903['enableDefaultAttributesIntegration']('outdentList'),_0x38b903['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x38b903['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x38b903['registerBlockAttribute']('listItemId'),_0x38b903['registerBlockAttribute']('listType'),_0x38b903['registerBlockAttribute']('listIndent'),_0x2cd22d&&(_0x38b903['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x38b903['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x337b3e&&(_0x38b903['enableDefaultAttributesIntegration']('todoList'),_0x38b903['enableDefaultAttributesIntegration']('checkTodoList'),_0x38b903['registerBlockAttribute']('todoListChecked'),_0x38b903['descriptionFactory']['registerDescriptionCallback'](_0x9d7aca=>{const {data:_0x5a886d}=_0x9d7aca;if(_0x5a886d&&'todoListChecked'==_0x5a886d['key'])return{'type':'format','content':_0x5a886d['newValue']?c(_0x24fc9e,'*Check\x20item*'):c(_0x24fc9e,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x14d0af=>{if(_0x14d0af['batch']['isUndo'])return!0x1;let _0x4e054e=!0x1;const _0x40b2c3=_0x38b903['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2956b3=>'todoListChecked'===_0x38b903['_getAttributeKey'](_0x2956b3));for(const _0x517a2c of _0x40b2c3){'todo'!=_0x517a2c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x38b903['_findSuggestions'](_0x517a2c['getFirstRange'](),'attribute')['find'](_0x5663eb=>'listType'===_0x38b903['_getAttributeKey'](_0x5663eb['suggestion']))||(_0x14d0af['removeMarker'](_0x517a2c['getFirstMarker']()),_0x4e054e=!0x0));}return _0x4e054e;})),_0x38b903['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x24fc9e,'FORMAT_INDENT'));const _0x3ad638={'type':'format','content':''};_0x38b903['descriptionFactory']['registerDescriptionCallback'](_0xf7674f=>{const {data:_0x106d67}=_0xf7674f;if(!_0x106d67||'listType'!=_0x106d67['key'])return;let _0x28471b=_0xf7674f['head'];for(;_0x28471b;){if(_0x28471b['data']&&(('listStyle'==_0x28471b['data']['key']||'listMarkerStyle'==_0x28471b['data']['key'])&&(_0x28471b['data']['newValue']&&'default'!=_0x28471b['data']['newValue']||'default'!=_0x28471b['data']['oldValue']&&!_0x106d67['newValue'])||!_0x2cd22d&&_0x28471b['data']['key']==u))return _0x3ad638;_0x28471b=_0x28471b['next'];}if(null==_0x106d67['newValue'])switch(_0x106d67['oldValue']){case'bulleted':return _0x2968df(c(_0x24fc9e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2968df(c(_0x24fc9e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2968df(c(_0x24fc9e,'ELEMENT_TODO_LIST'));}switch(_0x106d67['newValue']){case'bulleted':return _0x5eb74f(c(_0x24fc9e,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5eb74f(c(_0x24fc9e,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5eb74f(c(_0x24fc9e,'ELEMENT_TODO_LIST'));}}),_0x38b903['descriptionFactory']['registerDescriptionCallback'](_0x2f52d8=>{const {data:_0x42fb99}=_0x2f52d8;if(_0x42fb99&&'listIndent'==_0x42fb99['key'])return null==_0x42fb99['newValue']||null==_0x42fb99['oldValue']&&0x0==_0x42fb99['newValue']?_0x3ad638:void 0x0;}),_0x38b903['descriptionFactory']['registerDescriptionCallback'](_0x528b1c=>{if('attribute'!=_0x528b1c['type'])return;const {data:_0x2fa569}=_0x528b1c;if(!_0x2fa569||'listItemId'!=_0x2fa569['key'])return;const _0x200901=Te(_0x528b1c);return'newValue'==_0x200901?{'type':'format','content':c(_0x24fc9e,'*Merge:*\x20list\x20item')}:'oldValue'==_0x200901?{'type':'format','content':c(_0x24fc9e,'*Split:*\x20list\x20item')}:_0x3ad638;}),_0x3bd6ed['model']['document']['registerPostFixer'](_0x4e73d0=>this['listItemIdFixer'](_0x4e73d0)),_0x3bd6ed['model']['document']['registerPostFixer'](_0x579c22=>this['noTrackChangesFixer'](_0x579c22)),_0x3bd6ed['model']['document']['on']('change:data',(_0x360fe0,_0x4088c2)=>{if(_0x4088c2['isUndo']||!_0x4088c2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x301f96){if(_0x301f96['batch']['isUndo']||!_0x301f96['batch']['isLocal'])return!0x1;let _0x29d846=!0x1;const _0x54ef2d=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12b33b=>_0x12b33b['data']&&'listItemId'==_0x12b33b['data']['key'])['filter'](_0x55741f=>_0x55741f['data']['newValue']&&_0x55741f['data']['oldValue']);for(const _0x4bc649 of _0x54ef2d)Te(_0x4bc649)||(_0x301f96['removeMarker'](_0x4bc649['getFirstMarker']()),_0x29d846=!0x0);return _0x29d846;}['noTrackChangesFixer'](_0x315a2f){if(_0x315a2f['batch']['isUndo']||!_0x315a2f['batch']['isLocal'])return!0x1;const _0x534e50=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x534e50['trackChangesCommand']['value'])return!0x1;let _0xb58bdc=!0x1;const _0x25bed1=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x35f6d5=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x4ee2a6=>'attribute'==_0x4ee2a6['type'])['filter'](_0x40abc6=>_0x25bed1['includes'](_0x40abc6['attributeKey']));if(0x0==_0x35f6d5['length'])return _0xb58bdc;for(const _0x166434 of _0x35f6d5){const _0x3da46c=_0x534e50['_findSuggestions'](_0x166434['range'],'attribute')['filter'](_0xda3bc4=>!_0xda3bc4['meta']['isNextTo'])['map'](_0x12e84b=>_0x12e84b['suggestion'])['filter'](_0x3b5f34=>{const _0x1b14ca=_0x534e50['_getAttributeKey'](_0x3b5f34);return _0x25bed1['includes'](_0x1b14ca);});if(_0x3da46c['length']){for(const _0x3ad10f of _0x3da46c)_0x315a2f['removeMarker'](_0x3ad10f['getFirstMarker']());_0xb58bdc=!0x0;}}return _0xb58bdc;}['assureChains'](){const _0x381351=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41b2c6=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x10fb83;const _0x5966cf=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x29e427=>{if(_0x29e427['data']['oldRange']||!_0x29e427['data']['newRange'])return null;if(!_0x29e427['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x31db78}=_0x381351['_splitMarkerName'](_0x29e427['name']);if(!_0x381351['hasSuggestion'](_0x31db78))return null;const _0x3c9cb0=_0x381351['getSuggestion'](_0x31db78);return _0x41b2c6['includes'](_0x3c9cb0['data']['key']);})['map'](_0x2b9eda=>{const {id:_0x2854b1}=_0x381351['_splitMarkerName'](_0x2b9eda['name']),_0x4da7f2=_0x381351['getSuggestion'](_0x2854b1);return _0x10fb83=_0x4da7f2['attributes']['groupId'],_0x4da7f2['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5966cf['size'])return;const _0x2903b1=_0x381351['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2215fd=>'attribute'==_0x2215fd['type']&&_0x2215fd['data']&&_0x41b2c6['includes'](_0x2215fd['data']['key'])&&_0x2215fd['attributes']['groupId']!=_0x10fb83)['map'](_0x4e5a66=>({'listItem':_0x4e5a66['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4e5a66['attributes']['groupId']})),_0x1cf7bd=new Set();for(const {groupId:_0x494ab4,listItem:_0x225004}of _0x2903b1)_0x5966cf['has'](_0x225004)&&_0x1cf7bd['add'](_0x494ab4);for(const _0x4cf9ee of _0x381351['getSuggestions']())_0x1cf7bd['has'](_0x4cf9ee['attributes']['groupId'])&&_0x4cf9ee['setAttribute']('groupId',_0x10fb83);}['_supportLegacySuggestions'](){const _0x56fd6d=this['editor'],_0xf682cb=_0x56fd6d['locale'],_0x6243ce=_0x56fd6d['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6243ce['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x569ed1,_0x2a6ab3){const _0xc45e65=[];for(let _0xb2f2ab of _0x569ed1)_0xb2f2ab['start']['nodeAfter']===_0xb2f2ab['end']['parent']&&(_0xb2f2ab=_0x56fd6d['model']['createRange'](_0x56fd6d['model']['createPositionAt'](_0xb2f2ab['start']['nodeAfter'],0x0))),_0xc45e65['push'](_0xb2f2ab);_0x56fd6d['model']['change'](_0x323708=>{const _0x55a961=_0x56fd6d['model']['document']['selection'],_0x4d60fa=Array['from'](_0x55a961['getRanges']())['map'](_0x380e2c=>_0x2ee791['fromRange'](_0x380e2c));_0x323708['setSelection'](_0xc45e65),_0x56fd6d['commands']['get'](_0x2a6ab3['commandName'])['refresh'](),_0x2a6ab3['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x56fd6d['execute'](_0x2a6ab3['commandName'],..._0x2a6ab3['commandParams']),_0x323708['setSelection'](_0x4d60fa);for(const _0x550a5a of _0x4d60fa)_0x550a5a['detach']();});}),_0x6243ce['descriptionFactory']['registerElementLabel'](function(_0x316ea0){const _0x4fe7e0=!_0x56fd6d['model']['schema']['isObject'](_0x316ea0),_0x3581eb=_0x316ea0['previousSibling'],_0x205775=_0x316ea0['nextSibling'],_0x293c26=_0x316ea0['getAttribute']('listItemId'),_0x5cabbe=!_0x3581eb||_0x3581eb['getAttribute']('listItemId')!==_0x293c26,_0x1c745c=!_0x205775||_0x205775['getAttribute']('listItemId')!==_0x293c26;return _0x4fe7e0&&Boolean(_0x293c26)&&_0x5cabbe&&_0x1c745c;},_0x18e141=>c(_0xf682cb,'ELEMENT_LIST_ITEM',_0x18e141));}['_registerLegacyDescription'](){const _0x487510=this['editor'],_0x9c1816=_0x487510['locale'];function _0xaff353(_0x236d46){const _0x272202=_0x487510['commands']['get']('bulletedList')['value'],_0x29d021=_0x487510['commands']['get']('numberedList')['value'];return'numberedList'===_0x236d46?_0x272202:_0x29d021;}_0x487510['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x4aa983){if('formatBlock'!=_0x4aa983['type'])return;const {data:_0x58eeb8}=_0x4aa983;if(!_0x58eeb8)return;let _0x4a9a74,_0x3a0734,_0x206531,_0x343493;switch(_0x58eeb8['commandName']){case'bulletedList':_0x206531=_0x58eeb8['commandParams'][0x0]['forceValue'],_0x343493=_0xaff353(_0x58eeb8['commandName']),_0x4a9a74=_0x206531?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x343493&&_0x487510['config']['get']('list.multiBlock')||(_0x4a9a74='*Change\x20to:*\x20%0'),_0x3a0734={'type':'format','content':c(_0x9c1816,_0x4a9a74,c(_0x9c1816,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x206531=_0x58eeb8['commandParams'][0x0]['forceValue'],_0x343493=_0xaff353(_0x58eeb8['commandName']),_0x4a9a74=_0x206531?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x343493&&_0x487510['config']['get']('list.multiBlock')||(_0x4a9a74='*Change\x20to:*\x20%0'),_0x3a0734={'type':'format','content':c(_0x9c1816,_0x4a9a74,c(_0x9c1816,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x4a9a74='*Indent:*\x20%0',_0x3a0734={'type':'format','content':c(_0x9c1816,_0x4a9a74,c(_0x9c1816,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x4a9a74=function(_0x1b5ec8){const _0x1150b7=_0x1b5ec8['getFirstRange']();let _0x189a9a=_0x1150b7['start']['nodeAfter'];for(;_0x189a9a&&_0x1150b7['containsItem'](_0x189a9a);){if(_0x189a9a['getAttribute']('listIndent')>0x0)return!0x1;_0x189a9a=_0x189a9a['nextSibling'];}return!0x0;}(_0x4aa983)?c(_0x9c1816,'*Format:*\x20remove\x20from\x20%0',c(_0x9c1816,function(_0x548979){return'ELEMENT_'+_0x548979['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4aa983))):c(_0x9c1816,'*Outdent:*\x20%0',c(_0x9c1816,'ELEMENT_LIST_ITEM')),_0x3a0734={'type':'format','content':_0x4a9a74};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58eeb8['multipleBlocks']&&(_0x4a9a74='*Merge:*\x20%0',_0x3a0734={'type':'deletion','content':c(_0x9c1816,_0x4a9a74,c(_0x9c1816,'ELEMENT_LIST_ITEM'))});}return _0x3a0734;});}}function Te(_0x3f6f6){let _0x4d2df4=_0x3f6f6['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4d2df4;){const _0x456c4e=_0x4d2df4['getAttribute']('listItemId');if(!_0x456c4e)return!0x1;if(_0x456c4e==_0x3f6f6['data']['newValue'])return'newValue';if(_0x456c4e==_0x3f6f6['data']['oldValue'])return'oldValue';_0x4d2df4=_0x4d2df4['previousSibling'];}return!0x1;}class Se extends _0x48ff0c{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x3024bb=this['editor']['config']['get']('list.properties'),_0x55442a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3024bb['styles']&&(_0x55442a['enableDefaultAttributesIntegration']('listStyle'),_0x55442a['registerBlockAttribute']('listStyle')),_0x3024bb['reversed']&&(_0x55442a['enableDefaultAttributesIntegration']('listReversed'),_0x55442a['registerBlockAttribute']('listReversed')),_0x3024bb['startIndex']&&(_0x55442a['enableDefaultAttributesIntegration']('listStart'),_0x55442a['registerBlockAttribute']('listStart'));const _0x53b30a={'type':'format','content':''};_0x55442a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2bd40b=this['editor']['locale'];_0x55442a['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2bd40b,'FORMAT_LIST_REVERSED')),_0x55442a['descriptionFactory']['registerDescriptionCallback'](_0x22bb0e=>{const {data:_0x610103}=_0x22bb0e;if(_0x610103&&'listReversed'==_0x610103['key'])return null==_0x610103['newValue']||0x0==_0x610103['newValue']&&null==_0x610103['oldValue']?_0x53b30a:void 0x0;}),_0x55442a['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2bd40b,'FORMAT_LIST_START')),_0x55442a['descriptionFactory']['registerDescriptionCallback'](_0xf294d1=>{const {data:_0x4d96b4}=_0xf294d1;if(_0x4d96b4&&'listStart'==_0x4d96b4['key'])return null==_0x4d96b4['newValue']||0x1==_0x4d96b4['newValue']&&null==_0x4d96b4['oldValue']?_0x53b30a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x10386c=>{if(_0x10386c['batch']['isUndo'])return!0x1;let _0x483f32=!0x1;const _0x905326=_0x55442a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x21ce1e=>{const _0x4016fa=_0x55442a['_getAttributeKey'](_0x21ce1e);return'listStart'==_0x4016fa||'listReversed'==_0x4016fa;});for(const _0x1f93a3 of _0x905326){const _0x580f69=_0x1f93a3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x580f69||'customNumbered'==_0x580f69)continue;_0x55442a['_findSuggestions'](_0x1f93a3['getFirstRange'](),'attribute')['find'](_0x568cd3=>'listType'==_0x55442a['_getAttributeKey'](_0x568cd3['suggestion']))||(_0x10386c['removeMarker'](_0x1f93a3['getFirstMarker']()),_0x483f32=!0x0);}return _0x483f32;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x28574c){const _0x25b773=this['editor']['locale'],{data:_0x3abfd0}=_0x28574c,_0x4c6688={'type':'format','content':''};if(!_0x3abfd0||'listStyle'!=_0x3abfd0['key'])return;if(!_0x3abfd0['oldValue'])return'default'==_0x3abfd0['newValue']?_0x4c6688:{'type':'format','content':''+c(_0x25b773,'*Set\x20format:*\x20%0',c(_0x25b773,this['_getTranslationKeyForListStyle'](_0x3abfd0['newValue'])))};if(!_0x3abfd0['newValue']){if('default'==_0x3abfd0['oldValue'])return _0x4c6688;let _0x5b96a9=_0x28574c['head'];for(;_0x5b96a9;){if(_0x5b96a9['data']&&'listType'==_0x5b96a9['data']['key']&&_0x5b96a9['data']['newValue'])return _0x4c6688;_0x5b96a9=_0x5b96a9['next'];}return{'type':'format','content':''+c(_0x25b773,'*Remove\x20format:*\x20%0',c(_0x25b773,this['_getTranslationKeyForListStyle'](_0x3abfd0['oldValue'])))};}if('default'!=_0x3abfd0['newValue'])return{'type':'format','content':''+c(_0x25b773,'*Set\x20format:*\x20%0',c(_0x25b773,this['_getTranslationKeyForListStyle'](_0x3abfd0['newValue'])))};let _0x32827c=_0x28574c['head'];for(;_0x32827c;){if(_0x32827c['data']&&'listType'==_0x32827c['data']['key']&&_0x32827c['data']['newValue']&&_0x32827c['data']['oldValue'])return _0x4c6688;_0x32827c=_0x32827c['next'];}return{'type':'format','content':c(_0x25b773,'*Set\x20format:*\x20%0',c(_0x25b773,'ELEMENT_'+_0x28574c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x54ac9a=this['editor'],_0x2534ff=_0x54ac9a['locale'];_0x54ac9a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47ea81=>{if('formatBlock'!=_0x47ea81['type'])return;const {data:_0x3872b}=_0x47ea81;if(!_0x3872b)return;let _0x2c6111,_0x41fdab;switch(_0x3872b['commandName']){case'listStyle':_0x2c6111='*Change\x20to:*\x20%0',_0x41fdab={'type':'format','content':c(_0x2534ff,_0x2c6111,c(_0x2534ff,this['_getTranslationKeyForListStyle'](_0x3872b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2c6111=_0x3872b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x41fdab={'type':'format','content':c(_0x2534ff,_0x2c6111)};break;case'listStart':_0x2c6111='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x41fdab={'type':'format','content':c(_0x2534ff,_0x2c6111,_0x3872b['commandParams'][0x0]['startIndex'])};}return _0x41fdab;});}['_getTranslationKeyForListStyle'](_0x53629c){return'ELEMENT_'+function(_0x3b5456){if(_e['includes'](_0x3b5456))return'bulleted';if(Re['includes'](_0x3b5456))return'numbered';return null;}(_0x53629c)['toUpperCase']()+'_LIST_'+_0x53629c['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x48ff0c{['afterInit'](){const _0x4ab416=this['editor'];_0x4ab416['commands']['get']('emoji')&&_0x4ab416['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x48ff0c{static get['requires'](){return[_0x174698];}['init'](){const _0x476089=this['editor'],_0x2ee7eb=_0x476089['plugins']['get']('TrackChangesEditing'),_0x5c6f17=_0x476089['commands']['get']('enter');_0x2ee7eb['enableCommand']('enter',()=>{_0x476089['model']['change'](_0x4fb498=>{const _0x4a7791=_0x476089['model']['document']['selection'],_0x1fc986=_0x4a7791['getFirstPosition'](),_0x4b3243=_0x2ee791['fromRange'](_0x4a7791['getFirstRange']());if(_0x5c6f17['enterBlock'](_0x4fb498)){const _0x37b051=_0x476089['model']['createPositionAt'](_0x1fc986['parent']['nextSibling'],0x0),_0x3503b9=_0x4fb498['createRange'](_0x1fc986,_0x37b051);_0x2ee7eb['markInsertion'](_0x3503b9);}else _0x4fb498['setSelection'](_0x4fb498['createRange'](_0x4b3243['end']));_0x4b3243['detach'](),_0x5c6f17['fire']('afterExecute',{'writer':_0x4fb498});});}),_0x476089['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x476089,'split'),{'priority':'high'}),_0x476089['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4c9bc8,_0x66c9ef,_0x5d34c3)=>{const _0x238357=_0x5d34c3['mapper']['markerNameToElements'](_0x66c9ef['markerName']);if(_0x238357){for(const _0x17f213 of _0x238357)_0x17f213['hasClass']('ck-suggestion-marker-split')&&(_0x5d34c3['mapper']['unbindElementFromMarkerName'](_0x17f213,_0x66c9ef['markerName']),_0x5d34c3['writer']['remove'](_0x17f213));}},{'priority':'high'}),_0x476089['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5b4b4f,_0x5b17bb,_0x3ace10)=>{_0x3ace10['options']['showSuggestionHighlights']&&Fe(_0x476089,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5b4b4f,_0x5b17bb,_0x3ace10);},{'priority':'high'});}}class Z extends _0x48ff0c{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2a18b5=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a18b5['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2a18b5['enableCommand']('findNext'),_0x2a18b5['enableCommand']('findPrevious'),_0x2a18b5['enableCommand']('replace'),_0x2a18b5['enableCommand']('replaceAll');}['handleFindCommand'](_0x3cff17,_0x466adb,_0x3f3f3b={}){const _0x15bda3=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3cff17(_0x2bd3b8=>{let _0x256b8d=('string'==typeof _0x466adb?_0x15bda3['findByTextCallback'](_0x466adb,_0x3f3f3b):_0x466adb)(_0x2bd3b8);Array['isArray'](_0x256b8d)&&(_0x256b8d={'results':_0x256b8d,'searchText':'string'==typeof _0x466adb?_0x466adb:''});const _0x59ec11=_0x256b8d['results']['filter'](_0x1c261b=>!0x1===this['_isInDeletionRange'](_0x1c261b,_0x2bd3b8['item']));return{..._0x256b8d,'results':_0x59ec11};},_0x3f3f3b);}['_isInDeletionRange'](_0x361cfd,_0x47f08f){const _0x3649d2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x47f08f,_0x361cfd['start']),this['editor']['model']['createPositionAt'](_0x47f08f,_0x361cfd['end']));for(const _0x4de6d4 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3649d2['getIntersection'](_0x4de6d4['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x48ff0c{['afterInit'](){const _0x454ad2=this['editor']['locale'],_0x4dae5e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x37d279,commandName:_0x45db47}of ro)this['editor']['plugins']['has'](_0x37d279)&&(_0x4dae5e['enableDefaultAttributesIntegration'](_0x45db47),_0x4dae5e['registerInlineAttribute'](_0x45db47));_0x4dae5e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x454ad2,'FORMAT_FONT_SIZE')),_0x4dae5e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x454ad2,'FORMAT_FONT_FAMILY')),_0x4dae5e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x454ad2,'FORMAT_FONT_COLOR')),_0x4dae5e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x454ad2,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x446699=this['editor'],_0x212d8c=_0x446699['locale'];_0x446699['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50bf39=>{const _0x3cf63d=_0x212d8c['t'];if('formatInline'!=_0x50bf39['type'])return;const {data:_0x1157bb}=_0x50bf39;if(null!=_0x1157bb){if('fontSize'==_0x1157bb['commandName']){const _0x58c2bf=_0x1157bb['commandParams'][0x0]['value'];if(_0x58c2bf){const _0x160102=_0x3cf63d(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x6639ac=>_0x6639ac['model']==_0x58c2bf)['title'])['toLowerCase']();return{'type':'format','content':c(_0x212d8c,'*Set\x20font\x20size:*\x20%0',_0x160102)};}return{'type':'format','content':c(_0x212d8c,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1157bb['commandName']){const _0x5c873f=_0x1157bb['commandParams'][0x0]['value'];return _0x5c873f?{'type':'format','content':c(_0x212d8c,'*Set\x20font\x20family:*\x20%0',_0x5c873f)}:{'type':'format','content':c(_0x212d8c,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1157bb['commandName']){const _0x59c0a3=_0x1157bb['commandParams'][0x0]['value'];if(_0x59c0a3){const _0x59a215=_0x372230(this['editor']['config']['get']('fontColor.colors'))['find'](_0x8dc8fb=>_0x8dc8fb['model']==_0x59c0a3);let _0x463e36=_0x59c0a3,_0xc726bb='';return _0x59a215&&(_0x463e36=_0x59a215['label'],_0xc726bb=_0x3cf63d(_0x463e36)['toLowerCase']()),{'type':'format','content':c(_0x212d8c,'*Set\x20font\x20color:*\x20%0',_0xc726bb)['trim'](),'color':{'value':_0x59c0a3,'title':_0xc726bb||_0x463e36}};}return{'type':'format','content':c(_0x212d8c,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1157bb['commandName']){const _0x568567=_0x1157bb['commandParams'][0x0]['value'];if(_0x568567){const _0x29c4ac=_0x372230(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x198a91=>_0x198a91['model']==_0x568567);let _0x41d50b=_0x568567,_0x117097='';return _0x29c4ac&&(_0x41d50b=_0x29c4ac['label'],_0x117097=_0x3cf63d(_0x41d50b)['toLowerCase']()),{'type':'format','content':c(_0x212d8c,'*Set\x20font\x20background\x20color:*\x20%0',_0x117097)['trim'](),'color':{'value':_0x568567,'title':_0x117097||_0x41d50b}};}return{'type':'format','content':c(_0x212d8c,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x48ff0c{['afterInit'](){const _0x6325a0=this['editor'],_0x113513=_0x6325a0['plugins']['get']('TrackChangesEditing'),_0x26929d=_0x6325a0['commands']['get']('copyFormat'),_0x1874cf=_0x6325a0['commands']['get']('pasteFormat');_0x26929d&&_0x1874cf&&(_0x113513['enableDefaultAttributesIntegration']('pasteFormat'),_0x113513['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x63a35f=this['editor'],_0x1a9359=_0x63a35f['locale'];_0x63a35f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x168793=>{if('formatBlock'!=_0x168793['type']&&'formatInline'!=_0x168793['type'])return;const {data:_0x32fdee}=_0x168793;if(_0x32fdee&&'pasteFormat'===_0x32fdee['commandName']){const _0x13f2aa=[],_0x180e4d=_0x32fdee['commandParams'][0x0];for(const [_0x5ed496,_0x55f802]of Object['entries'](_0x180e4d))_0x13f2aa['push'](so(_0x63a35f,_0x5ed496,_0x55f802));return _0x13f2aa['length']?{'type':'format','content':c(_0x1a9359,'*Set\x20format\x20to:*\x20%0',_0x13f2aa['join'](',\x20'))}:{'type':'format','content':c(_0x1a9359,'*Remove\x20all\x20formatting*')};}});}}function so(_0x46cf7d,_0x5aa449,_0x1798df){const _0x5322ed=_0x46cf7d['locale']['t'],_0x13758c=_0x5aa449['split'](/(?=[A-Z])/)['join']('\x20'),_0xed4c90=_0x5322ed(_0x13758c['charAt'](0x0)['toUpperCase']()+_0x13758c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1798df)return _0xed4c90;if('fontColor'===_0x5aa449||'fontBackgroundColor'===_0x5aa449){const _0x1abdc6=_0x372230(_0x46cf7d['config']['get']('fontColor.colors'))['find'](_0x577583=>_0x577583['model']==_0x1798df);return _0xed4c90+'\x20('+(_0x1abdc6?_0x5322ed(_0x1abdc6['label'])['toLowerCase']():_0x1798df)+')';}if('fontSize'===_0x5aa449&&isNaN(parseFloat(_0x1798df))){const _0xa6ac5=_0x46cf7d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x46cf7d['config']['get']('fontSize.options'))['find'](_0x1f3bad=>_0x1f3bad['model']==_0x1798df);return _0xed4c90+'\x20('+(_0xa6ac5?_0x5322ed(_0xa6ac5['title'])['toLowerCase']():_0x1798df)+')';}return _0xed4c90+'\x20('+_0x1798df+')';}class it extends _0x48ff0c{['_headingOptions'];['afterInit'](){const _0x512576=this['editor'];if(!_0x512576['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x512576['config']['get']('heading.options');const _0x2636aa=_0x512576['locale'],_0x50159b=_0x512576['plugins']['get']('TrackChangesEditing');_0x50159b['enableDefaultAttributesIntegration']('heading');for(const _0x41be34 of this['_headingOptions'])'paragraph'!=_0x41be34['model']&&_0x50159b['descriptionFactory']['registerElementLabel'](_0x41be34['model'],_0x22fdb0=>{const _0x11646d=this['_getHeadingLevel'](_0x41be34['model']);return null!==_0x11646d?_0x5c4149(_0x22fdb0,_0x11646d):_0xb332cb(_0x22fdb0,_0x41be34['title']);});function _0x5c4149(_0x220eab,_0x1386bc){return c(_0x2636aa,'ELEMENT_HEADING',[_0x220eab,_0x1386bc]);}function _0xb332cb(_0x29318b,_0x52cc36){return c(_0x2636aa,'ELEMENT_HEADING_CUSTOM',[_0x29318b,_0x52cc36]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcc9980=this['editor'],_0x5d74c4=_0xcc9980['locale'];function _0x488dbb(_0x43aac4,_0x57d19e){return c(_0x5d74c4,'ELEMENT_HEADING_CUSTOM',[_0x43aac4,_0x57d19e]);}_0xcc9980['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b4d8=>{if('formatBlock'!=_0x44b4d8['type'])return;const {data:_0x543442}=_0x44b4d8;if(_0x543442&&'heading'==_0x543442['commandName']){const _0x18d58c=_0x543442['commandParams'][0x0]['value'],_0x4c4d18=this['_getHeadingLevel'](_0x18d58c);if(null!==_0x4c4d18)return{'type':'format','content':c(_0x5d74c4,'*Change\x20to:*\x20%0',(_0x172f5d=0x1,_0x4649e9=_0x4c4d18,c(_0x5d74c4,'ELEMENT_HEADING',[_0x172f5d,_0x4649e9])))};const _0x19e683=this['_headingOptions']['find'](_0x74704e=>_0x74704e['model']===_0x18d58c)['title'];return{'type':'format','content':c(_0x5d74c4,'*Change\x20to:*\x20%0',_0x488dbb(0x1,_0x19e683))};}var _0x172f5d,_0x4649e9;});}['_getHeadingLevel'](_0x9f9f85){const _0x5011ed=_0x9f9f85['match'](/^heading(\d+)/);if(_0x5011ed)return _0x5011ed[0x1];const _0x1c55dc=this['_headingOptions']?.['find'](_0x3576e1=>_0x3576e1['model']==_0x9f9f85);if(_0x1c55dc&&_0x1c55dc['view']){const _0x19941c=_0x1c55dc['view'],_0xcd345=(_0x19941c['name']??_0x19941c)['match'](/^h(\d+)/);if(_0xcd345)return _0xcd345[0x1];}return null;}}class nt extends _0x48ff0c{['afterInit'](){const _0x1e5cee=this['editor'];if(!_0x1e5cee['plugins']['has']('HighlightEditing'))return;const _0x22fa66=_0x1e5cee['plugins']['get']('TrackChangesEditing'),_0x30398f=_0x1e5cee['locale'];_0x22fa66['enableDefaultAttributesIntegration']('highlight'),_0x22fa66['registerInlineAttribute']('highlight'),_0x22fa66['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x30398f,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e3ff6=this['editor'],_0x3c56e0=_0x5e3ff6['locale'];_0x5e3ff6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e0ef=>{if('formatInline'!=_0x32e0ef['type'])return;const {data:_0x5a0861}=_0x32e0ef;if(_0x5a0861&&'highlight'==_0x5a0861['commandName']){const _0x456c82=_0x3c56e0['t'],_0x3e14ea=_0x5a0861['commandParams'][0x0]['value'];if(_0x3e14ea){const _0x16d105=_0x5e3ff6['config']['get']('highlight.options')['find'](_0x525ad9=>_0x525ad9['model']==_0x3e14ea),_0x3a791e=_0x456c82(_0x16d105['title'])['toLowerCase']();return{'type':'format','content':c(_0x3c56e0,'*Set\x20highlight:*\x20%0',_0x3a791e),'color':{'value':_0x16d105['color'],'title':_0x16d105['title']}};}return{'type':'format','content':c(_0x3c56e0,'*Remove\x20highlight*',c(_0x3c56e0,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x48ff0c{['afterInit'](){const _0x4b8b87=this['editor'];if(!_0x4b8b87['plugins']['has']('HorizontalLineEditing'))return;_0x4b8b87['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1802bb=_0x4b8b87['plugins']['get']('TrackChangesEditing'),_0xd09dc1=_0x4b8b87['locale'];_0x1802bb['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2aee77=>c(_0xd09dc1,'ELEMENT_HORIZONTAL_LINE',_0x2aee77)),_0x4b8b87['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3f9a7e,{writer:_0x445d98,options:_0x1347e8})=>{if(!_0x1347e8['showSuggestionHighlights'])return null;const _0x81ded8=_0x445d98['createContainerElement']('div'),_0x5800e9=_0x445d98['createEmptyElement']('hr');return _0x445d98['addClass']('ck-horizontal-line',_0x81ded8),_0x445d98['insert'](_0x445d98['createPositionAt'](_0x81ded8,0x0),_0x5800e9),_0x81ded8;},'converterPriority':'high'});}}class ot extends _0x48ff0c{['afterInit'](){const _0x5ac156=this['editor'];if(!_0x5ac156['plugins']['has']('HtmlEmbed'))return;const _0x28825e=_0x5ac156['plugins']['get']('TrackChangesEditing'),_0x40f372=_0x5ac156['locale'];_0x28825e['descriptionFactory']['registerElementLabel']('rawHtml',_0xf645c6=>c(_0x40f372,'ELEMENT_HTML_EMBED',_0xf645c6)),_0x28825e['enableDefaultAttributesIntegration']('htmlEmbed'),_0x28825e['registerBlockAttribute']('value'),_0x28825e['descriptionFactory']['registerDescriptionCallback'](_0x3d1053=>{if('attribute'!=_0x3d1053['type'])return;const {data:_0x44f063}=_0x3d1053;if(_0x44f063&&'value'==_0x44f063['key']&&_0x3d1053['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x269b8b=c(_0x40f372,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x40f372,'*Change\x20%0\x20content*',_0x269b8b)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3e808f=this['editor'],_0x522a21=_0x3e808f['locale'];_0x3e808f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52cfa0=>{if('formatBlock'!=_0x52cfa0['type'])return;const {data:_0x218b08}=_0x52cfa0;if(_0x218b08&&'htmlEmbed'==_0x218b08['commandName']){const _0x22cbfe=c(_0x522a21,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x522a21,'*Change\x20%0\x20content*',_0x22cbfe)};}});}}class rt extends _0x48ff0c{['afterInit'](){const _0x4a39e1=this['editor'];if(!_0x4a39e1['plugins']['has']('ImageEditing'))return;const _0x2ee226=_0x4a39e1['plugins']['get']('TrackChangesEditing'),_0x17dc19=_0x4a39e1['plugins']['get']('ImageUtils'),_0x2aa111=_0x4a39e1['locale'];_0x2ee226['enableCommand']('insertImage'),_0x2ee226['descriptionFactory']['registerElementLabel']('imageBlock',_0x63c9e5=>c(_0x2aa111,'ELEMENT_IMAGE',_0x63c9e5)),_0x2ee226['descriptionFactory']['registerElementLabel']('imageInline',_0x1fe3fd=>c(_0x2aa111,'ELEMENT_INLINE_IMAGE',_0x1fe3fd)),_0x2ee226['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x2aa111,'ELEMENT_CAPTION')),_0x4a39e1['plugins']['has']('ImageUploadEditing')&&_0x2ee226['enableCommand']('uploadImage'),_0x4a39e1['plugins']['has']('ImageBlockEditing')&&_0x4a39e1['plugins']['has']('ImageInlineEditing')&&(_0x2ee226['enableCommand']('imageTypeInline',(_0x30cab1,_0x3896a7)=>{const _0x5adfef=_0x17dc19['getClosestSelectedImageElement'](_0x4a39e1['model']['document']['selection']);_0x4a39e1['model']['change'](()=>{_0x2ee226['markBlockFormat'](_0x5adfef,{'commandName':'imageTypeInline','commandParams':[_0x3896a7]},[],'convertBlockImageToInline');});}),_0x2ee226['enableCommand']('imageTypeBlock',(_0x6d3928,_0x3a8d62)=>{_0x4a39e1['model']['change'](_0x65759a=>{let _0x541791=_0x17dc19['getClosestSelectedImageElement'](_0x4a39e1['model']['document']['selection']),_0x408721=_0x65759a['createRangeOn'](_0x541791);const _0x55ea18=_0xdb5cd7['fromPosition'](_0x408721['start'],'toPrevious'),_0xb1009e=_0xdb5cd7['fromPosition'](_0x408721['end'],'toNext');_0x2ee226['forceDefaultExecution'](()=>_0x6d3928(_0x3a8d62)),_0x541791=_0x17dc19['getClosestSelectedImageElement'](_0x4a39e1['model']['document']['selection']),_0x408721=_0x65759a['createRangeOn'](_0x541791);const _0x2544c2=_0x65759a['createRange'](_0x55ea18,_0xb1009e);_0x55ea18['detach'](),_0xb1009e['detach'](),_0x2ee226['markBlockFormat'](_0x541791,{'commandName':'imageTypeInline','commandParams':[_0x3a8d62]},[],'convertInlineImageToBlock'),_0x2544c2['start']['isBefore'](_0x408721['start'])&&_0x2ee226['markInsertion'](_0x65759a['createRange'](_0x2544c2['start'],_0x408721['start']),'convertInlineImageToBlock'),_0x408721['end']['isBefore'](_0x2544c2['end'])&&_0x2ee226['markInsertion'](_0x65759a['createRange'](_0x408721['end'],_0x2544c2['end']),'convertInlineImageToBlock');});}),_0x2ee226['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2ee226['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2ee226['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2ee226['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2ee226['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2ee226['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4513e5])=>{const _0x24c28c=_0x2ee226['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5ad053=_0x4513e5['start'],_0x38c916=_0x4513e5['end'];const _0x5d1a85=_0x4a39e1['model']['schema']['getNearestSelectionRange'](_0x5ad053,'backward'),_0x14f734=_0x4a39e1['model']['schema']['getNearestSelectionRange'](_0x38c916,'forward');_0x5d1a85['isCollapsed']&&(_0x5ad053=_0x5d1a85['start']),_0x14f734['isCollapsed']&&(_0x38c916=_0x14f734['end']),_0x24c28c([_0x4a39e1['model']['createRange'](_0x5ad053,_0x38c916)]);}),_0x2ee226['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x50dd68),_0x2ee226['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x50dd68)),_0x4a39e1['plugins']['has']('ImageCaptionEditing')&&(_0x2ee226['enableCommand']('toggleImageCaption',(_0x213e00,_0xcff57e)=>{const _0x4bca18=_0x4a39e1['plugins']['get']('ImageCaptionUtils');let _0xad1d07=_0x17dc19['getClosestSelectedImageElement'](_0x4a39e1['model']['document']['selection']),_0x565a3a=_0x4bca18['getCaptionFromImageModelElement'](_0xad1d07);_0x4a39e1['model']['change'](()=>{if(_0x565a3a)return void _0x2ee226['markDeletion'](_0x4a39e1['model']['createRangeOn'](_0x565a3a));const _0x37af16=_0x17dc19['isBlockImage'](_0xad1d07);_0x213e00(_0xcff57e),_0xad1d07=_0x17dc19['getClosestSelectedImageElement'](_0x4a39e1['model']['document']['selection']),_0x565a3a=_0x4bca18['getCaptionFromImageModelElement'](_0xad1d07),_0x2ee226['markInsertion'](_0x4a39e1['model']['createRangeOn'](_0x565a3a),_0x37af16?null:'imageCaption');});}),_0x2ee226['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x50dd68));const _0x327c21=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x12bad0(_0x1f6f71,_0x443136){const _0x13d89d=_0x327c21['findIndex'](({type:_0x241dff,subType:_0x252200})=>_0x1f6f71['type']==_0x241dff&&_0x1f6f71['subType']==_0x252200),_0x17a383=_0x327c21['findIndex'](({type:_0x1295da,subType:_0x1b18f3})=>_0x443136['type']==_0x1295da&&_0x443136['subType']==_0x1b18f3);if(_0x13d89d<0x0||_0x17a383<0x0)return!0x1;const _0x394935=_0x1f6f71['getFirstRange'](),_0x4d41af=_0x443136['getFirstRange']();if((0x0==_0x13d89d||0x1==_0x13d89d)&&0x2==_0x17a383&&_0x394935['isIntersecting'](_0x4d41af))return!0x0;if(0x2==_0x13d89d&&0x3==_0x17a383){const _0x47dce2=_0x2ee226['_findSuggestions'](_0x394935,'insertion')['filter'](({suggestion:_0x42e8bf,meta:_0x25bd11})=>_0x25bd11['isOwn']&&'convertInlineImageToBlock'==_0x42e8bf['subType']);if(_0x47dce2['length']>0x1&&_0x4d41af['end']['isEqual'](_0x394935['start']))return!0x0;if(0x1==_0x47dce2['length']&&(_0x394935['start']['isEqual'](_0x4d41af['end'])||_0x394935['end']['isEqual'](_0x4d41af['start'])))return!0x0;}if(0x3==_0x13d89d&&0x3==_0x17a383&&_0x394935['start']['isBefore'](_0x4d41af['start'])){const _0x3e1524=_0x394935['end']['nodeAfter'],_0x5170e4=_0x4d41af['start']['nodeBefore'];return _0x17dc19['isBlockImage'](_0x3e1524)&&_0x3e1524===_0x5170e4;}return!0x1;}function _0x50dd68(_0x186de3,_0x2bcdb6){return _0x12bad0(_0x186de3,_0x2bcdb6)?[_0x186de3,_0x2bcdb6]:_0x12bad0(_0x2bcdb6,_0x186de3)?[_0x2bcdb6,_0x186de3]:null;}_0x4a39e1['plugins']['has']('ImageResize')&&(_0x2ee226['enableDefaultAttributesIntegration']('resizeImage'),_0x2ee226['registerBlockAttribute']('resizedWidth'),_0x2ee226['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x2aa111,'FORMAT_IMAGE_SIZE'))),_0x4a39e1['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2ee226['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2ee226['registerBlockAttribute']('alt')),_0x4a39e1['plugins']['has']('PictureEditing')&&(_0x2ee226['registerBlockAttribute']('sources'),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0x48a9e8=>{if('attribute'!=_0x48a9e8['type'])return;const {data:_0x4e23d2}=_0x48a9e8;return _0x4e23d2&&'sources'==_0x4e23d2['key']?{'type':'format','content':''}:void 0x0;})),_0x4a39e1['plugins']['has']('ImageSizeAttributes')&&(_0x2ee226['registerBlockAttribute']('width'),_0x2ee226['registerBlockAttribute']('height'),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0x4f8dc3=>{if('attribute'!=_0x4f8dc3['type'])return;const {data:_0x23f43d}=_0x4f8dc3;return!_0x23f43d||'width'!=_0x23f43d['key']&&'height'!=_0x23f43d['key']?void 0x0:{'type':'format','content':''};})),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0x55c775=>{if(!!_0x327c21['find'](({type:_0x5788c6,subType:_0x5838bc})=>_0x55c775['type']==_0x5788c6&&_0x55c775['subType']==_0x5838bc))return _0x55c775['previous']?{}:void 0x0;}),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0x23e458=>{if('insertion'==_0x23e458['type']||'deletion'==_0x23e458['type']){const _0x14aeb8=_0x23e458['getContainedElement']();if(_0x14aeb8&&_0x14aeb8['is']('element','caption'))return{'type':'insertion'==_0x23e458['type']?'addObject':'removeObject','element':_0x14aeb8,'quantity':0x1};}}),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0x4b8b03=>'formatBlock'==_0x4b8b03['type']&&'convertInlineImageToBlock'==_0x4b8b03['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b8b03['type']&&'convertBlockImageToInline'==_0x4b8b03['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2ee226['descriptionFactory']['registerDescriptionCallback'](_0xc0854=>{if('attribute'!=_0xc0854['type'])return;const {data:_0x32c945}=_0xc0854;if(!_0x32c945||'alt'!=_0x32c945['key'])return;const _0x369826=_0x32c945['newValue'];return _0x369826?{'type':'format','content':c(_0x2aa111,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x369826+'\x22')}:{'type':'format','content':c(_0x2aa111,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x346240=this['editor'],_0x40b7d7=_0x346240['locale'];_0x346240['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa7a43=>{if('formatBlock'!=_0xa7a43['type']&&'formatInline'!=_0xa7a43['type'])return;const {data:_0x187dcb}=_0xa7a43;if(_0x187dcb){if('imageTextAlternative'==_0x187dcb['commandName']){const _0x36acf1=_0x187dcb['commandParams'][0x0]['newValue'];return _0x36acf1?{'type':'format','content':c(_0x40b7d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36acf1+'\x22')}:{'type':'format','content':c(_0x40b7d7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x187dcb['commandName']){const _0x3f179e=_0x187dcb['commandParams'][0x0]['width'];return _0x3f179e?{'type':'format','content':c(_0x40b7d7,'*Set\x20image\x20width:*\x20%0',_0x3f179e)}:{'type':'format','content':c(_0x40b7d7,'*Reset\x20image\x20width*')};}}});}}class at extends _0x48ff0c{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c97c7=this['editor']['locale'],_0x20ce78=this['editor']['plugins']['get']('TrackChangesEditing');_0x20ce78['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20ce78['registerBlockAttribute']('src'),_0x20ce78['descriptionFactory']['registerDescriptionCallback'](_0x494e21=>{if('attribute'!=_0x494e21['type'])return;const {data:_0x40c3d7}=_0x494e21;return _0x40c3d7&&'src'==_0x40c3d7['key']?_0x40c3d7['newValue']&&_0x40c3d7['oldValue']?{'type':'format','content':c(_0x5c97c7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5ec4e5=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ec4e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5ec4e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5ec4e5['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5ec4e5['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16ce00=this['editor'],_0x4613d7=_0x16ce00['locale'];_0x16ce00['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x382e3a=>{if('formatBlock'!=_0x382e3a['type']&&'formatInline'!=_0x382e3a['type'])return;const {data:_0x73400f}=_0x382e3a;if(!_0x73400f||'replaceImageSource'!=_0x73400f['commandName'])return;return{'type':'format','content':c(_0x4613d7,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x48ff0c{['afterInit'](){const _0x163444=this['editor'];if(!_0x163444['plugins']['has']('ImageStyleEditing'))return;const _0x11e52d=_0x163444['plugins']['get']('TrackChangesEditing'),_0x2181a1=_0x163444['plugins']['get']('ImageUtils'),_0x130be6={};_0x11e52d['enableCommand']('imageStyle',(_0x426e7c,_0x43301b)=>{const _0x3dc049=_0x163444['plugins']['get']('Users')['me'],_0x17ae60=_0x163444['commands']['get']('imageStyle');let _0x55d733=_0x2181a1['getClosestSelectedImageElement'](_0x163444['model']['document']['selection']),_0x5b0523=_0x163444['model']['createRangeOn'](_0x55d733),_0x2f43b4=_0x17ae60['value'];if(_0x2f43b4==_0x43301b['value'])return;const _0x5cd96d={'commandName':'imageStyle','commandParams':[_0x43301b],'formatGroupId':_0x2789d7()};_0x163444['model']['change'](()=>{if(_0x11e52d['getSuggestions']()['filter'](_0x2dfb1e=>_0x2dfb1e['isInContent']&&_0x3dc049==_0x2dfb1e['author']&&('formatBlock'==_0x2dfb1e['type']||'formatInline'==_0x2dfb1e['type'])&&('imageStylePreApply'==_0x2dfb1e['subType']||'imageStylePostApply'==_0x2dfb1e['subType'])&&_0x2dfb1e['getFirstRange']()['isEqual'](_0x5b0523))['forEach'](_0x2426f8=>_0x11e52d['discardSuggestion'](_0x2426f8['head'])),_0x55d733=_0x2181a1['getClosestSelectedImageElement'](_0x163444['model']['document']['selection']),_0x5b0523=_0x163444['model']['createRangeOn'](_0x55d733),_0x17ae60['refresh'](),_0x163444['commands']['get']('imageTypeInline')['refresh'](),_0x163444['commands']['get']('imageTypeBlock')['refresh'](),_0x2f43b4=_0x17ae60['value'],_0x2f43b4!=_0x43301b['value'])return _0x2181a1['isInlineImage'](_0x55d733)&&_0x17ae60['shouldConvertImageType'](_0x43301b['value'],_0x55d733)?(_0x426e7c({..._0x43301b,'setImageSizes':!0x1}),_0x55d733=_0x2181a1['getClosestSelectedImageElement'](_0x163444['model']['document']['selection']),void _0x11e52d['markBlockFormat'](_0x55d733,{..._0x5cd96d,'commandReversedParams':[{'value':_0x2f43b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2181a1['isBlockImage'](_0x55d733)?_0x11e52d['markBlockFormat'](_0x55d733,_0x5cd96d,[],'imageStylePostApply'):_0x11e52d['markInlineFormat'](_0x5b0523,_0x5cd96d,'imageStylePostApply'));});});for(const _0x2431ff of _0x163444['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x130be6[_0x2431ff['name']]=_0x2431ff['title']['toLowerCase']();_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4dea89])=>{_0x2181a1['setImageNaturalSizeAttributes'](_0x4dea89['getContainedElement']());}),_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x938fa2,_0xce63e4)=>{_0x11e52d['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x938fa2,{'commandName':_0xce63e4['commandName'],'commandParams':_0xce63e4['commandReversedParams']});}),_0x11e52d['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4fd74a,_0x3e59f1){if(_0x5d98df(_0x4fd74a,_0x3e59f1))return[_0x4fd74a,_0x3e59f1];if(_0x5d98df(_0x3e59f1,_0x4fd74a))return[_0x3e59f1,_0x4fd74a];return null;});const _0x3fcfc2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d98df(_0x3c89a9,_0x5bef61){const _0x2acc22=_0x3fcfc2['findIndex'](({type:_0x4e4c45,subType:_0x25d945})=>_0x3c89a9['type']==_0x4e4c45&&_0x3c89a9['subType']==_0x25d945),_0x9ab21f=_0x3fcfc2['findIndex'](({type:_0x40c9dc,subType:_0xa3e009})=>_0x5bef61['type']==_0x40c9dc&&_0x5bef61['subType']==_0xa3e009);if(_0x2acc22<0x0||_0x9ab21f<0x0)return!0x1;const _0x5afcaa=_0x3c89a9['getFirstRange'](),_0x474ebb=_0x5bef61['getFirstRange']();if((0x0==_0x2acc22||0x1==_0x2acc22)&&0x2==_0x9ab21f&&_0x5afcaa['isIntersecting'](_0x474ebb))return!0x0;if(0x2==_0x2acc22&&0x3==_0x9ab21f){const _0x44b93f=_0x11e52d['_findSuggestions'](_0x5afcaa,'insertion')['filter'](({suggestion:_0x392605,meta:_0x494057})=>_0x494057['isOwn']&&'convertInlineImageToBlock'==_0x392605['subType']);if(_0x44b93f['length']>0x1&&_0x474ebb['end']['isEqual'](_0x5afcaa['start']))return!0x0;if(0x1==_0x44b93f['length']&&(_0x5afcaa['start']['isEqual'](_0x474ebb['end'])||_0x5afcaa['end']['isEqual'](_0x474ebb['start'])))return!0x0;}if(0x3==_0x2acc22&&0x3==_0x9ab21f&&_0x5afcaa['start']['isBefore'](_0x474ebb['start'])){const _0x4389c3=_0x5afcaa['end']['nodeAfter'],_0x311791=_0x474ebb['start']['nodeBefore'];return _0x2181a1['isBlockImage'](_0x4389c3)&&_0x4389c3===_0x311791;}return!0x1;}_0x163444['model']['document']['registerPostFixer'](()=>{let _0x1e4791=!0x1;const _0x32e594=Array['from'](_0x163444['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b8758,data:_0x560e5c}of _0x32e594){const {group:_0x559178,type:_0x1bb58e,subType:_0x3d7e11,id:_0x397427}=_0x11e52d['_splitMarkerName'](_0x1b8758);if('suggestion'==_0x559178&&_0x11e52d['hasSuggestion'](_0x397427)){if('formatBlock'==_0x1bb58e&&('imageStylePreApply'==_0x3d7e11||'imageStylePostApply'==_0x3d7e11)){const _0x3a3793=_0x11e52d['getSuggestion'](_0x397427);if(_0x560e5c['newRange']){const _0x3c29fc=_0x3a3793['getFirstRange']()['getContainedElement']();if(_0x2181a1['isBlockImage'](_0x3c29fc))continue;_0x11e52d['discardSuggestion'](_0x3a3793),_0x1e4791=!0x0;}}if('insertion'==_0x1bb58e&&'imageCaption'==_0x3d7e11&&!_0x560e5c['newRange']){const _0x49b7c8=_0x11e52d['getSuggestion'](_0x397427);_0x49b7c8['next']&&_0x49b7c8['next']['isInContent']&&(_0x11e52d['discardSuggestion'](_0x49b7c8['next']),_0x1e4791=!0x0);}}}return _0x1e4791;}),this['_registerLegacyDescription'](_0x130be6);}['_registerLegacyDescription'](_0x216a38){const _0x2a48ab=this['editor'],_0x15af8c=_0x2a48ab['locale'];_0x2a48ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44f5cd=>{if('formatBlock'!=_0x44f5cd['type']&&'formatInline'!=_0x44f5cd['type'])return;const {data:_0x327f3c}=_0x44f5cd;if(!_0x327f3c||'imageStyle'!=_0x327f3c['commandName'])return;const _0x1afe5f=_0x327f3c['commandParams'][0x0]['value'];return _0x5b4918('side'===_0x1afe5f?c(_0x15af8c,'FORMAT_SIDE_IMAGE'):_0x216a38[_0x1afe5f]||_0x1afe5f);function _0x5b4918(_0x24705b){return{'type':'format','content':c(_0x15af8c,'*Format:*\x20%0',_0x24705b)};}});}}class ut extends _0x48ff0c{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c6e06){super(_0x1c6e06),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x51d436=this['editor'],_0x53e82b=_0x51d436['commands']['get']('importWord'),_0x242d51=_0x51d436['commands']['get']('trackChanges');_0x53e82b&&(_0x53e82b['on']('execute',(_0x5074b9,[,_0x33c40a])=>{this['_trackChangesValueDuringImport']=_0x242d51['value'],_0x33c40a['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x53e82b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x53e82b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x242d51['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x51d436['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x20572e,_0x5f0031){const {suggestions:_0x3a3f22}=_0x5f0031,_0x530663=this['editor']['commands']['get']('trackChanges'),_0x431349=_0x530663['value'];this['_trackChangesValueDuringImport']!==_0x431349&&(_0x530663['execute'](),this['_trackChangesExecuted']=!0x0),_0x3a3f22&&_0x3a3f22['forEach'](({id:_0x4b0e57,type:_0x3cd312,author:_0x591121,created_at:_0x5d1d92})=>{const _0x388b60={'id':_0x4b0e57,'type':_0x3cd312,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x591121,'createdAt':_0x5d1d92?new Date(_0x5d1d92):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x388b60);});}}class ft extends _0x48ff0c{['afterInit'](){const _0x9eff58=this['editor'],_0x5e691b=_0x9eff58['plugins']['get']('TrackChangesEditing');if(_0x9eff58['plugins']['has']('IndentEditing')&&(_0x5e691b['enableCommand']('indent'),_0x5e691b['enableCommand']('outdent')),_0x9eff58['plugins']['has']('IndentBlock')){for(const _0x1e53f6 of['indentBlock','outdentBlock'])_0x5e691b['enableDefaultAttributesIntegration'](_0x1e53f6);}const _0x13ecf4=_0x9eff58['locale'];_0x5e691b['registerBlockAttribute']('blockIndent'),_0x5e691b['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x13ecf4,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c6f15=this['editor'],_0x557536=_0x1c6f15['locale'],_0x20694f=_0x1c6f15['plugins']['get']('TrackChangesEditing');_0x20694f['descriptionFactory']['registerDescriptionCallback'](_0x19e2e1=>{if('formatBlock'!=_0x19e2e1['type'])return;const {data:_0x7b3fb}=_0x19e2e1;if(!_0x7b3fb)return;if('indentBlock'!=_0x7b3fb['commandName']&&'outdentBlock'!=_0x7b3fb['commandName'])return;const _0x51656b=_0x19e2e1['getItems']()[0x0],_0x2c2995=_0x20694f['descriptionFactory']['getItemLabel'](_0x51656b);return'indentBlock'==_0x7b3fb['commandName']?{'type':'format','content':c(_0x557536,'*Indent:*\x20%0',_0x2c2995)}:'outdentBlock'==_0x7b3fb['commandName']?{'type':'format','content':c(_0x557536,'*Outdent:*\x20%0',_0x2c2995)}:void 0x0;});}}class ht extends _0x48ff0c{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x48ff0c{['afterInit'](){const _0x30b626=this['editor'];if(!_0x30b626['plugins']['has']('LinkEditing'))return;const _0x50f9b1=_0x30b626['plugins']['get']('TrackChangesEditing'),_0x513001=_0x30b626['commands']['get']('link');_0x50f9b1['enableDefaultAttributesIntegration']('link'),_0x50f9b1['enableDefaultAttributesIntegration']('unlink'),_0x50f9b1['registerInlineAttribute']('linkHref');for(const _0x2cfdc6 of _0x513001['manualDecorators'])_0x50f9b1['registerInlineAttribute'](_0x2cfdc6['id']),_0x50f9b1['descriptionFactory']['registerAttributeLabel'](_0x2cfdc6['id'],'link\x20('+_0x2cfdc6['label']['toLowerCase']()+')');_0x50f9b1['descriptionFactory']['registerDescriptionCallback'](_0x372faa=>{if('attribute'!=_0x372faa['type'])return;const {data:_0x1e594d}=_0x372faa;if(!_0x1e594d||'linkHref'!=_0x1e594d['key'])return;const _0x597c00=_0x1e594d['newValue'],_0x5a0f7b=_0x30b626['locale'];return{'type':'format','content':null==_0x597c00?c(_0x5a0f7b,'*Remove\x20link*'):c(_0x5a0f7b,'*Set\x20link:*\x20%0','\x22'+_0x597c00+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf99cb5=this['editor'],_0x22c6b6=_0xf99cb5['locale'];_0xf99cb5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36fe16=>{if('formatInline'!=_0x36fe16['type'])return;const {data:_0x346534}=_0x36fe16;if(_0x346534){if('link'==_0x346534['commandName']){const _0x25e21c=_0x346534['commandParams'][0x0];return{'type':'format','content':c(_0x22c6b6,'*Set\x20link:*\x20%0','\x22'+_0x25e21c+'\x22')};}return'unlink'==_0x346534['commandName']?{'type':'format','content':c(_0x22c6b6,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x48ff0c{['afterInit'](){const _0x2d60ed=this['editor'],_0x2f9ecb=_0x2d60ed['locale'];if(!_0x2d60ed['plugins']['has']('LegacyListEditing'))return;const _0x1df491=_0x2d60ed['plugins']['get']('TrackChangesEditing'),_0x183dae=_0x2d60ed['plugins']['has']('LegacyTodoListEditing');function _0x9a52c4(_0x1ef67d){return()=>{const _0x489b0d=_0x2d60ed['model']['document']['selection'],_0xcc81a7=_0x2d60ed['commands']['get'](_0x1ef67d);if(_0xcc81a7['value'])return void _0x2d60ed['execute']('paragraph',{});const _0x2d605a=_0x1ef67d['slice'](0x0,-0x4),_0xd56273=function(_0x2cf230,_0x15a4c5,_0x2b83be){let _0x49e19b=Array['from'](_0x2cf230)['filter'](_0x170e3e=>function(_0x2395eb,_0xf62727){return _0xf62727['checkChild'](_0x2395eb['parent'],'listItem')&&!_0xf62727['isObject'](_0x2395eb);}(_0x170e3e,_0x2b83be));_0x49e19b=_0x49e19b['filter'](_0x112c94=>!_0x112c94['is']('element','listItem')||_0x112c94['getAttribute']('listType')!=_0x15a4c5);const _0x4306af=new Set();for(const _0x6bea76 of _0x49e19b)_0x6bea76['is']('element','listItem')?_0x4306af['add'](Le(_0x6bea76)):_0x4306af['add'](_0x6bea76);return Array['from'](_0x4306af);}(_0x489b0d['getSelectedBlocks'](),_0x2d605a,_0x2d60ed['model']['schema']);_0x2d60ed['model']['change'](()=>{for(const _0x569512 of _0xd56273)_0x1df491['markBlockFormat'](_0x569512,{'commandName':_0x1ef67d,'commandParams':[{'forceValue':!_0xcc81a7['value']}],'formatGroupId':'blockName'},Ee(_0x569512));});};}function _0xb98420(_0x557e9d){return()=>{const _0x248201=function(_0x12c90d){let _0x255ca9=Array['from'](_0x12c90d);const _0x260df9=_0x255ca9['findIndex'](_0x3d235f=>'listItem'!=_0x3d235f['name']);return _0x260df9>-0x1&&(_0x255ca9=_0x255ca9['slice'](0x0,_0x260df9)),_0x255ca9;}(_0x2d60ed['model']['document']['selection']['getSelectedBlocks']()),_0x38f928=_0x2d60ed['model']['createRange'](_0x2d60ed['model']['createPositionAt'](_0x248201[0x0],'before'),_0x2d60ed['model']['createPositionAt'](_0x248201[_0x248201['length']-0x1],'end'));_0x2d60ed['model']['change'](()=>{_0x1df491['markBlockFormat'](_0x38f928,{'commandName':_0x557e9d,'commandParams':[],'formatGroupId':'listIndent'},function(_0x442d66){const _0x9b3931=new Set();for(const _0x22bf21 of _0x442d66){let _0x121506=_0x22bf21['nextSibling'];for(;_0x121506&&_0x121506['getAttribute']('listIndent')>_0x22bf21['getAttribute']('listIndent');)_0x9b3931['add'](_0x121506),_0x121506=_0x121506['nextSibling'];}return Array['from'](_0x9b3931);}(_0x248201));});};}_0x1df491['enableCommand']('numberedList',_0x9a52c4('numberedList')),_0x1df491['enableCommand']('bulletedList',_0x9a52c4('bulletedList')),_0x183dae&&_0x1df491['enableCommand']('todoList',_0x9a52c4('todoList')),_0x1df491['enableCommand']('indentList',_0xb98420('indentList')),_0x1df491['enableCommand']('outdentList',_0xb98420('outdentList')),_0x183dae&&_0x1df491['enableCommand']('checkTodoList',()=>{const _0x4ddd6b=_0x2d60ed['commands']['get']('checkTodoList'),_0x423cb0=Array['from'](_0x4ddd6b['_selectedElements']);_0x423cb0['filter'](_0x6a511a=>_0x6a511a['getAttribute']('todoListChecked')!=_0x4ddd6b['value']),_0x2d60ed['model']['change'](()=>{for(const _0x569953 of _0x423cb0)_0x1df491['markBlockFormat'](_0x569953,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4ddd6b['value']}]});});}),_0x1df491['descriptionFactory']['registerElementLabel']('listItem',_0x5e52e6=>c(_0x2f9ecb,'ELEMENT_LIST_ITEM',_0x5e52e6)),_0x1df491['descriptionFactory']['registerDescriptionCallback'](_0xcc0396=>{if('formatBlock'!=_0xcc0396['type']&&'formatInline'!=_0xcc0396['type'])return;const {data:_0x4aa5cb}=_0xcc0396;if(_0x4aa5cb){if('numberedList'==_0x4aa5cb['commandName']||'bulletedList'==_0x4aa5cb['commandName']||'todoList'==_0x4aa5cb['commandName'])switch(_0x4aa5cb['commandName']['replace']('List','')){case'bulleted':return _0x3c95e9(c(_0x2f9ecb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3c95e9(c(_0x2f9ecb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3c95e9(c(_0x2f9ecb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x4aa5cb['commandName'])return{'type':'format','content':c(_0x2f9ecb,'*Indent:*\x20%0',c(_0x2f9ecb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x4aa5cb['commandName'])return{'type':'format','content':c(_0x2f9ecb,'*Outdent:*\x20%0',c(_0x2f9ecb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x4aa5cb['commandName'])return _0x4aa5cb['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2f9ecb,'*Check\x20item*')}:{'type':'format','content':c(_0x2f9ecb,'*Uncheck\x20item*')};}function _0x3c95e9(_0x176591){return{'type':'format','content':c(_0x2f9ecb,'*Change\x20to:*\x20%0',_0x176591)};}});}}function Le(_0x4df0a4){const _0x105522=_0x4df0a4['getAttribute']('listIndent');if(0x0==_0x105522)return _0x4df0a4;let _0x456d0f=_0x4df0a4;for(;_0x4df0a4['previousSibling']&&_0x4df0a4['previousSibling']['is']('element','listItem');){const _0x11c8f0=_0x4df0a4['previousSibling']['getAttribute']('listIndent');if(_0x11c8f0==_0x105522)_0x456d0f=_0x4df0a4['previousSibling'];else{if(_0x11c8f0<_0x105522)break;}_0x4df0a4=_0x4df0a4['previousSibling'];}return _0x456d0f;}function Ee(_0x4e27ad){const _0x516c42=[];if(_0x4e27ad['is']('element','listItem')&&_0x4e27ad['getAttribute']('listIndent')>0x0){let _0x2ea300=_0x4e27ad['nextSibling'];for(;_0x2ea300&&'listItem'==_0x2ea300['name']&&_0x2ea300['getAttribute']('listIndent')==_0x4e27ad['getAttribute']('listIndent');)_0x516c42['push'](_0x2ea300),_0x2ea300=_0x2ea300['nextSibling'];}return _0x516c42;}class Q extends _0x48ff0c{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3909e5=this['editor']['config']['get']('list.properties'),_0x49668e=this['editor']['plugins']['get']('TrackChangesEditing');_0x3909e5['styles']&&_0x49668e['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3909e5['reversed']&&_0x49668e['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3909e5['startIndex']&&_0x49668e['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49668e['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1ac023,_0x53eac5={}){const _0x596f21=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10f8e3=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x596f21['markMultiRangeBlockFormat'](_0x10f8e3,{'commandName':'listStyle','commandParams':[{'type':_0x53eac5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x22b7e2,_0x3512b5={}){const _0x5e3903=this['editor']['plugins']['get']('TrackChangesEditing'),_0x223094=this['_getSuggestionBlocks'](_0x24ff2b=>_0x24ff2b['is']('element','listItem')&&'numbered'===_0x24ff2b['getAttribute']('listType'));if(_0x223094['length']<0x1)return;const _0x9bd0bc=_0x223094['map'](_0x2bf5cd=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2bf5cd,'before'),this['editor']['model']['createPositionAt'](_0x2bf5cd,0x0)));this['editor']['model']['change'](()=>{_0x5e3903['markMultiRangeBlockFormat'](_0x9bd0bc,{'commandName':'listReversed','commandParams':[{'reversed':_0x3512b5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x51070b,_0xfb5889={}){const _0x691cd5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e56a7=this['_getSuggestionBlocks'](_0x291e98=>_0x291e98['is']('element','listItem')&&'numbered'===_0x291e98['getAttribute']('listType'));if(_0x3e56a7['length']<0x1)return;const _0x51aa1e=_0x3e56a7['map'](_0x28f566=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x28f566,'before'),this['editor']['model']['createPositionAt'](_0x28f566,0x0)));this['editor']['model']['change'](()=>{_0x691cd5['markMultiRangeBlockFormat'](_0x51aa1e,{'commandName':'listStart','commandParams':[{'startIndex':_0xfb5889['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xfee480){if('formatBlock'!=_0xfee480['type']&&'formatInline'!=_0xfee480['type'])return;const _0x979b79=this['editor']['locale'],{data:_0x2d1793}=_0xfee480;if(!_0x2d1793)return;let _0x113f38,_0x3ca3fd;switch(_0x2d1793['commandName']){case'listStyle':_0x113f38='*Change\x20to:*\x20%0',_0x3ca3fd={'type':'format','content':c(_0x979b79,_0x113f38,c(_0x979b79,this['_getTranslationKeyForListStyle'](_0x2d1793['commandParams'][0x0]['type'])))};break;case'listReversed':_0x113f38=_0x2d1793['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3ca3fd={'type':'format','content':c(_0x979b79,_0x113f38)};break;case'listStart':_0x113f38='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3ca3fd={'type':'format','content':c(_0x979b79,_0x113f38,_0x2d1793['commandParams'][0x0]['startIndex'])};}return _0x3ca3fd;}['_getSuggestionBlocksForListStyle'](){const _0x3fb8b7=this['editor']['plugins']['get']('LegacyListUtils');let _0x5ec60d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5ec60d[0x0]?.['is']('element','listItem')&&_0x5ec60d['unshift'](..._0x3fb8b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5ec60d[_0x5ec60d['length']-0x1]?.['is']('element','listItem')&&_0x5ec60d['push'](..._0x3fb8b7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5ec60d=[...new Set(_0x5ec60d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5ec60d=_0x5ec60d['filter'](_0x403833=>_0x403833['is']('element','listItem'))),_0x5ec60d;}['_getSuggestionBlocks'](_0x136100){const _0x477400=this['editor']['plugins']['get']('LegacyListUtils');let _0x405fa3=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x136100)['map'](_0x1469e1=>{const _0x575f78=this['editor']['model']['createPositionAt'](_0x1469e1,0x0);return[..._0x477400['getSiblingNodes'](_0x575f78,'backward'),..._0x477400['getSiblingNodes'](_0x575f78,'forward')];})['flat']();return _0x405fa3=[...new Set(_0x405fa3)],_0x405fa3;}['_getTranslationKeyForListStyle'](_0xdf6b14){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0xdf6b14)||'default')['toUpperCase']()+'_LIST_'+_0xdf6b14['toUpperCase']()['replace'](/-/g,'_');}}class mt extends _0x48ff0c{['afterInit'](){const _0x107bcb=this['editor'];if(!_0x107bcb['plugins']['has']('MediaEmbedEditing'))return;const _0x376b79=_0x107bcb['plugins']['get']('TrackChangesEditing'),_0x3477e6=_0x107bcb['locale'];_0x376b79['enableCommand']('mediaEmbed'),_0x376b79['descriptionFactory']['registerElementLabel']('media',_0x4be4b0=>c(_0x3477e6,'ELEMENT_MEDIA',_0x4be4b0)),_0x107bcb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x21e793,{writer:_0x278dd8,options:_0x1d0c2c})=>{if(_0x1d0c2c['showSuggestionHighlights'])return _0x278dd8['createEmptyElement']('div');},'converterPriority':'high'}),_0x107bcb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4f0052,_0x3d19f6,_0x3d19d9)=>{_0x3d19d9['options']['showSuggestionHighlights']&&_0x4f0052['stop']();},{'priority':'high'});}}class pt extends _0x48ff0c{['afterInit'](){const _0x1d9560=this['editor'];_0x1d9560['plugins']['has']('MentionEditing')&&_0x1d9560['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x48ff0c{['afterInit'](){const _0x1bfeae=this['editor'];if(!_0x1bfeae['plugins']['has']('MergeFieldsEditing'))return;const _0x11d28b=_0x1bfeae['plugins']['get']('TrackChangesEditing'),_0x17e724=_0x1bfeae['locale'];_0x11d28b['enableCommand']('insertMergeField'),_0x11d28b['enableCommand']('insertMergeFieldBlock'),_0x11d28b['enableCommand']('insertMergeFieldImage'),_0x11d28b['descriptionFactory']['registerElementLabel']('mergeField',_0x344b95=>c(_0x17e724,'ELEMENT_MERGE_FIELD',_0x344b95)),_0x11d28b['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x58a519=>c(_0x17e724,'ELEMENT_MERGE_FIELD',_0x58a519)),_0x11d28b['descriptionFactory']['registerDescriptionCallback'](_0x5a98c6=>{if('insertion'!=_0x5a98c6['type']&&'deletion'!=_0x5a98c6['type'])return;const _0x5d9131=_0x5a98c6['getContainedElement']();if(null==_0x5d9131)return;const _0x200c54=_0x1bfeae['plugins']['get']('MergeFieldsEditing');let _0x6d274c;switch(_0x200c54['getMergeFieldType'](_0x5d9131)){case null:return;case'image':{const _0x326d8e=_0x200c54['unwrapAffixes'](_0x5d9131['getAttribute']('src'));_0x6d274c=_0x200c54['getLabel'](_0x326d8e)||_0x326d8e;break;}default:{const _0xc74484=_0x5d9131['getAttribute']('id');_0x6d274c=_0x200c54['getLabel'](_0xc74484)||_0xc74484;break;}}return'insertion'==_0x5a98c6['type']?{'type':'insertion','content':c(_0x17e724,'*Insert:*\x20%0','\x22'+_0x6d274c+'\x22\x20'+c(_0x17e724,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x17e724,'*Remove:*\x20%0','\x22'+_0x6d274c+'\x22\x20'+c(_0x17e724,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x48ff0c{['afterInit'](){const _0x49ff97=this['editor'],_0x48284f=_0x49ff97['plugins']['get']('TrackChangesEditing');_0x49ff97['plugins']['has']('MultiLevelList')&&(_0x48284f['enableDefaultAttributesIntegration']('multiLevelList'),_0x48284f['registerBlockAttribute']('listMarkerStyle'),_0x48284f['descriptionFactory']['registerDescriptionCallback'](_0x198310=>this['handleDescriptions'](_0x198310)));}['handleDescriptions'](_0x10d121){const _0x2ed87a=this['editor']['locale'],{data:_0x220a85}=_0x10d121,_0x5c771b={'type':'format','content':''};if(_0x220a85&&'listMarkerStyle'==_0x220a85['key']){if(!_0x220a85['oldValue'])return{'type':'format','content':c(_0x2ed87a,'*Set\x20format:*\x20%0',c(_0x2ed87a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x220a85['newValue']+')'};if(!_0x220a85['newValue']){let _0x3ab9cf=_0x10d121['head'];for(;_0x3ab9cf;){if(_0x3ab9cf['data']&&'listType'==_0x3ab9cf['data']['key']&&_0x3ab9cf['data']['newValue'])return _0x5c771b;_0x3ab9cf=_0x3ab9cf['next'];}return{'type':'format','content':c(_0x2ed87a,'*Remove\x20format:*\x20%0',c(_0x2ed87a,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x220a85['oldValue']+')'};}}}}class bt extends _0x48ff0c{['afterInit'](){const _0x33184a=this['editor'];if(!_0x33184a['plugins']['has']('PageBreakEditing'))return;_0x33184a['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xc8f2e7=_0x33184a['plugins']['get']('TrackChangesEditing'),_0x551841=_0x33184a['locale'];_0xc8f2e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x2af865=>c(_0x551841,'ELEMENT_PAGE_BREAK',_0x2af865));}}class yt extends _0x48ff0c{['afterInit'](){const _0x3955b1=this['editor'];if(!_0x3955b1['plugins']['has']('Paragraph'))return;const _0x29df2c=_0x3955b1['locale'],_0x2315c9=_0x3955b1['plugins']['get']('TrackChangesEditing');_0x2315c9['descriptionFactory']['registerElementLabel']('paragraph',_0x5b831e=>c(_0x29df2c,'ELEMENT_PARAGRAPH',_0x5b831e)),_0x2315c9['enableDefaultAttributesIntegration']('paragraph'),_0x2315c9['enableCommand']('insertParagraph'),_0x3955b1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3955b1),{'priority':'highest'}),_0x3955b1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36a806,_0x530bfa,_0x2f9c46)=>{_0x2f9c46['options']['showSuggestionHighlights']&&nr(_0x3955b1,{'showActiveMarker':!0x1})(_0x36a806,_0x530bfa,_0x2f9c46);},{'priority':'highest'});const _0x4d861b=_0x2315c9['descriptionFactory'];_0x4d861b['registerDescriptionCallback'](_0x51edeb=>{if('insertion'!==_0x51edeb['type'])return;const {start:_0x239ce4,end:_0x4210a6}=_0x51edeb['getFirstRange']();if(!_0x239ce4['isTouching'](_0x4210a6)||!_0x239ce4['nodeAfter'])return;const _0x6c8c2b=_0x3955b1['model']['schema'],_0x24da10=_0x239ce4['nodeAfter'];return _0x6c8c2b['isBlock'](_0x24da10)&&!_0x6c8c2b['isLimit'](_0x24da10)&&_0x6c8c2b['checkChild'](_0x24da10,'$text')?{'type':'insertion','content':c(_0x29df2c,'*Insert:*\x20%0',_0x4d861b['getItemLabel'](_0x24da10,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25b2e9=this['editor'],_0x565daf=_0x25b2e9['locale'];_0x25b2e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x23bac4=>{if('formatBlock'!=_0x23bac4['type'])return;const {data:_0x217cbc}=_0x23bac4;return _0x217cbc&&'paragraph'==_0x217cbc['commandName']?{'type':'format','content':c(_0x565daf,'*Change\x20to:*\x20%0',c(_0x565daf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x29df5a,{showActiveMarker:_0x3b1a06=!0x0}={}){return(_0x12f7c3,_0x536358,_0x5785ed)=>{const _0x58c47c=_0x29df5a['plugins']['get']('TrackChangesEditing'),_0x12de50=_0x536358['markerRange']['start'],_0x5efb0a=_0x536358['markerRange']['end'],_0x58f1ba=_0x29df5a['model']['schema'];if(!_0x12de50['isTouching'](_0x5efb0a)||!_0x12de50['nodeAfter'])return;const _0xbdf149=_0x12de50['nodeAfter'];if(_0x58f1ba['isBlock'](_0xbdf149)&&!_0x58f1ba['isLimit'](_0xbdf149)&&_0x58f1ba['checkChild'](_0xbdf149,'$text')){if(!_0x5785ed['consumable']['consume'](_0x536358['markerRange'],_0x12f7c3['name']))return;const {id:_0x332e15,authorId:_0x51575d}=_0x58c47c['_splitMarkerName'](_0x536358['markerName']),_0x3201ff=_0x5785ed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x332e15,'data-author-id':_0x51575d}),_0x2a6f47=_0x5785ed['mapper']['toViewPosition'](_0x5efb0a);_0x3b1a06&&_0x58c47c['activeMarkers']['includes'](_0x536358['markerName'])&&_0x5785ed['writer']['addClass']('ck-suggestion-marker--active',_0x3201ff),_0x5785ed['writer']['insert'](_0x2a6f47,_0x3201ff),_0x5785ed['mapper']['bindElementToMarker'](_0x3201ff,_0x536358['markerName']);}};}class jt extends _0x48ff0c{['afterInit'](){const _0x1c33fc=this['editor'];_0x1c33fc['commands']['get']('replaceSource')&&_0x1c33fc['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x48ff0c{['afterInit'](){const _0x4c237d=this['editor'];if(!_0x4c237d['plugins']['has']('RemoveFormatEditing'))return;_0x4c237d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4efc8b=this['editor'];_0x4efc8b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da1f5=>{if('formatBlock'!=_0x5da1f5['type']&&'formatInline'!=_0x5da1f5['type'])return;const {data:_0x7da49b}=_0x5da1f5;return _0x7da49b&&'removeFormat'==_0x7da49b['commandName']?{'type':'format','content':c(_0x4efc8b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x48ff0c{['afterInit'](){const _0xf0ec81=this['editor'];if(!_0xf0ec81['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x929b03=_0xf0ec81['plugins']['get']('TrackChangesEditing');_0x929b03['enableCommand']('goToPreviousRestrictedEditingException'),_0x929b03['enableCommand']('goToNextRestrictedEditingException');const _0x5829d8=_0xf0ec81['plugins']['get']('RestrictedEditingModeEditing');_0x5829d8['enableCommand']('trackChanges'),_0x5829d8['enableCommand']('acceptSuggestion'),_0x5829d8['enableCommand']('discardSuggestion'),_0x5829d8['enableCommand']('acceptAllSuggestions'),_0x5829d8['enableCommand']('discardAllSuggestions'),_0x5829d8['enableCommand']('acceptSelectedSuggestions'),_0x5829d8['enableCommand']('discardSelectedSuggestions');}}class It extends _0x48ff0c{['afterInit'](){const _0x320513=this['editor'];if(!_0x320513['plugins']['has']('ShiftEnter'))return;const _0x5c49b7=_0x320513['plugins']['get']('TrackChangesEditing');_0x5c49b7['enableCommand']('shiftEnter'),_0x320513['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x320513),{'priority':'high'}),_0x320513['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x320513),{'priority':'high'}),_0x320513['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x35314b,_0x393b33,_0x337fe5)=>{_0x337fe5['options']['showSuggestionHighlights']&&je(_0x320513,{'showActiveMarker':!0x1})(_0x35314b,_0x393b33,_0x337fe5);}),_0x5c49b7['descriptionFactory']['registerElementLabel']('softBreak',_0x265581=>c(_0x320513['locale'],'ELEMENT_LINE_BREAK',_0x265581));}}function je(_0x51734d,{showActiveMarker:_0x5c7bda=!0x0}={}){return(_0x4583bc,_0x555a54,_0x589eac)=>{const _0x5c6df0=_0x51734d['plugins']['get']('TrackChangesEditing');if(!_0x589eac['consumable']['test'](_0x555a54['markerRange'],_0x4583bc['name']))return;const _0x322135=_0x51734d['model'];for(const _0x9c48be of _0x555a54['markerRange']['getItems']()){if(!_0x9c48be['is']('element','softBreak'))continue;const _0x2c94aa='deletion'==_0x555a54['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x1f68c4,authorId:_0x30e151}=_0x5c6df0['_splitMarkerName'](_0x555a54['markerName']),_0x4f0a1c=_0x589eac['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2c94aa,'data-suggestion':_0x1f68c4,'data-author-id':_0x30e151}),_0x60ae96=_0x589eac['mapper']['toViewPosition'](_0x322135['createPositionBefore'](_0x9c48be));_0x5c7bda&&_0x5c6df0['activeMarkers']['includes'](_0x555a54['markerName'])&&_0x589eac['writer']['addClass']('ck-suggestion-marker--active',_0x4f0a1c),_0x589eac['writer']['insert'](_0x60ae96,_0x4f0a1c),_0x589eac['mapper']['bindElementToMarker'](_0x4f0a1c,_0x555a54['markerName']);}};}class _t extends _0x48ff0c{['afterInit'](){const _0x15f4f7=this['editor'],_0xb4c74f=_0x15f4f7['model'],_0x47c1ec=_0x15f4f7['locale'];if(!_0x15f4f7['plugins']['has']('StandardEditingModeEditing'))return;const _0x1386b4=_0x15f4f7['plugins']['get']('TrackChangesEditing'),_0x710bb0='restrictedEditingException',_0xfb04fc=_0x15f4f7['commands']['get'](_0x710bb0);_0x1386b4['enableCommand'](_0x710bb0,(_0x40c0bc,_0x2e299f={})=>{const _0x4f44cc=_0xb4c74f['document']['selection'];if(_0x4f44cc['isCollapsed'])return void _0x40c0bc(_0x2e299f);const _0x52d13b=void 0x0!==_0x2e299f['forceValue']?_0x2e299f['forceValue']:!_0xfb04fc['value'];_0xb4c74f['change'](()=>{const _0x339ff0=Array['from'](_0x4f44cc['getRanges']());for(const _0x3dbeab of _0x339ff0){const _0x457523=_0x52d13b?[_0x3dbeab]:io(_0x710bb0,_0x3dbeab,_0xb4c74f);for(const _0x3dde58 of _0x457523)_0x1386b4['markInlineFormat'](_0x3dde58,{'commandName':_0x710bb0,'commandParams':[{'forceValue':_0x52d13b}]});}});}),_0x1386b4['descriptionFactory']['registerDescriptionCallback'](_0x3e1810=>{if('formatBlock'!=_0x3e1810['type']&&'formatInline'!=_0x3e1810['type'])return;const {data:_0x274101}=_0x3e1810;return _0x274101&&_0x274101['commandName']==_0x710bb0?_0x274101['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47c1ec,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x47c1ec,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x48ff0c{['afterInit'](){const _0x3ca24e=this['editor'];if(!_0x3ca24e['plugins']['has']('Style')||!_0x3ca24e['plugins']['has']('DataSchema'))return;const _0x4a5643=_0x3ca24e['plugins']['get']('TrackChangesEditing'),_0x5038f3=_0x3ca24e['locale'],_0x378858=_0x3ca24e['config']['get']('style')||{},_0x2730fc=_0x3ca24e['plugins']['get']('GeneralHtmlSupport'),_0x2cb7db=_0x3ca24e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ca24e['plugins']['get']('DataSchema'),_0x378858['definitions']);_0x4a5643['enableDefaultAttributesIntegration']('style');const _0x209ab1=new Set();for(const _0x1e5872 of _0x2cb7db['block']){const _0x241411=_0x2730fc['getGhsAttributeNameForElement'](_0x1e5872['element']);_0x209ab1['add'](_0x241411);}const _0x1ace46=new Set();for(const _0x342b28 of _0x2cb7db['inline']){const _0x547017=_0x2730fc['getGhsAttributeNameForElement'](_0x342b28['element']);_0x1ace46['add'](_0x547017);for(const _0x5110e1 of _0x342b28['ghsAttributes'])_0x1ace46['add'](_0x5110e1);}for(const _0x211639 of _0x209ab1)_0x4a5643['registerBlockAttribute'](_0x211639),_0x4a5643['descriptionFactory']['registerAttributeLabel'](_0x211639,c(_0x5038f3,'FORMAT_STYLE'));for(const _0x52207c of _0x1ace46)_0x4a5643['registerInlineAttribute'](_0x52207c),_0x4a5643['descriptionFactory']['registerAttributeLabel'](_0x52207c,c(_0x5038f3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbfe815=this['editor'],_0x46fae1=_0xbfe815['locale'];_0xbfe815['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1642f7=>{if('formatBlock'!=_0x1642f7['type']&&'formatInline'!=_0x1642f7['type'])return;const {data:_0x4ac0da}=_0x1642f7;return _0x4ac0da&&'style'===_0x4ac0da['commandName']?_0x4ac0da['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x46fae1,'*Set\x20format:*\x20%0',_0x4ac0da['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x46fae1,'*Remove\x20format:*\x20%0',_0x4ac0da['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x48ff0c{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x11210c){super(_0x11210c),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x583dd4=this['editor'],_0x4619ce=_0x583dd4['model']['document']['selection'];if(!_0x583dd4['plugins']['has']('TableEditing'))return;const _0x3dfb01=_0x583dd4['locale'],_0xe21076=_0x583dd4['plugins']['get']('TrackChangesEditing'),_0x4abcb5=_0x583dd4['plugins']['get']('TableUtils');_0xe21076['descriptionFactory']['registerElementLabel']('table',_0x4babee=>c(_0x3dfb01,'ELEMENT_TABLE',_0x4babee)),this['_setupColumnsRowsFixing'](),_0xe21076['enableCommand']('insertTable'),_0xe21076['enableCommand']('selectTableRow'),_0xe21076['enableCommand']('selectTableColumn');for(const _0xafa5a8 of['insertTableRowAbove','insertTableRowBelow']){const _0x40daf7=_0x583dd4['commands']['get'](_0xafa5a8);_0xe21076['enableCommand'](_0xafa5a8,_0x5c72c9=>{_0x583dd4['model']['change'](_0x37f9c4=>{_0x5c72c9();const _0x4b3658='above'===_0x40daf7['order'],_0xedd7d5=_0x4abcb5['getSelectionAffectedTableCells'](_0x4619ce),_0x530d08=_0x4abcb5['getRowIndexes'](_0xedd7d5),_0x579f6e=_0x4b3658?_0x530d08['first']-0x1:_0x530d08['last']+0x1,_0x2072f8=_0xedd7d5[0x0]['findAncestor']('table'),_0x429cbb=_0x4abcb5['createTableWalker'](_0x2072f8,{'startRow':_0x579f6e,'endRow':_0x579f6e}),_0x13bf5a=Array['from'](_0x429cbb)['map'](_0x23e872=>_0x37f9c4['createRangeOn'](_0x23e872['cell']));_0xe21076['markMultiRangeInsertion'](_0x13bf5a,'tableRow');});});}for(const _0x34be6e of['insertTableColumnLeft','insertTableColumnRight']){const _0x493618=_0x583dd4['commands']['get'](_0x34be6e);_0xe21076['enableCommand'](_0x34be6e,_0x237a91=>{_0x583dd4['model']['change'](_0x3391a3=>{_0x237a91();const _0x58bdd1='left'===_0x493618['order'],_0x4b8af1=_0x4abcb5['getSelectionAffectedTableCells'](_0x4619ce),_0x310d3a=_0x4abcb5['getColumnIndexes'](_0x4b8af1),_0x78dc5d=_0x58bdd1?_0x310d3a['first']-0x1:_0x310d3a['last']+0x1,_0x51294e=_0x4b8af1[0x0]['findAncestor']('table'),_0x62c18b=_0x4abcb5['createTableWalker'](_0x51294e,{'startRow':0x0,'column':_0x78dc5d,'includeAllSlots':!0x1}),_0x12dc84=Array['from'](_0x62c18b)['map'](_0x5595e4=>_0x3391a3['createRangeOn'](_0x5595e4['cell']));_0xe21076['markMultiRangeInsertion'](_0x12dc84,'tableColumn');});});}for(const _0x155086 of['removeTableRow','removeTableColumn']){const _0x2c55c8=_0x155086['substr'](0xb),_0x46d006=_0x2c55c8['toLowerCase'](),_0x195233=_0x46d006['substr'](0x0,0x3)+'span',_0x1447f2='table'+_0x2c55c8,_0x4d97d3='min'+_0x2c55c8,_0x2388b2='max'+_0x2c55c8;_0xe21076['enableCommand'](_0x155086,()=>{_0x583dd4['model']['change'](_0x3a822b=>{const _0x299659=_0x4abcb5['getSelectionAffectedTableCells'](_0x4619ce),_0xedf1a=_0x299659[0x0]['findAncestor']('table');let _0x204502;if('removeTableRow'==_0x155086){const _0x371375=_0x4abcb5['getRowIndexes'](_0x299659);_0x204502={'startRow':_0x371375['first'],'endRow':_0x371375['last'],'includeAllSlots':!0x0};}else{const _0x50280a=_0x4abcb5['getColumnIndexes'](_0x299659);_0x204502={'startColumn':_0x50280a['first'],'endColumn':_0x50280a['last'],'includeAllSlots':!0x0};}const _0x14edcc=_0x4abcb5['createTableWalker'](_0xedf1a,_0x204502),_0x3f6c93=Array['from'](_0x14edcc)['map'](({cell:_0x23c09c})=>_0x23c09c),_0x3fdee1=xe(_0x3f6c93['filter'](_0x129a8c=>_0x129a8c['hasAttribute'](_0x195233))),_0x158e10=xe(_0x3f6c93['filter'](_0x3b1e10=>!_0x3b1e10['hasAttribute'](_0x195233)))['map'](_0x4249e5=>_0x3a822b['createRangeOn'](_0x4249e5)),_0x2ee2da=_0xe21076['markMultiRangeDeletion'](_0x158e10,_0x1447f2);if(_0x2ee2da&&('tableRow'==_0x2ee2da['subType']||'tableColumn'==_0x2ee2da['subType'])){const _0x4c68b8=this['_getSuggestionCoords'](_0x2ee2da);for(const _0x1006e0 of _0x3fdee1){const _0xb52cb=_0x3a822b['createRangeOn'](_0x1006e0),_0x23a663=_0x4abcb5['getCellLocation'](_0x1006e0),_0xa9470a=_0x1006e0['getAttribute'](_0x195233)-0x1,_0x4446ff=_0x4c68b8[_0x4d97d3],_0x3d272f=_0x4c68b8[_0x2388b2];_0x4446ff<=_0x23a663[_0x46d006]&&_0x23a663[_0x46d006]+_0xa9470a<=_0x3d272f&&_0x2ee2da['addRange'](_0xb52cb);}}});});}function _0x278f19(_0x488863){const _0x5ac0a2=Array['from'](_0x4619ce['getRanges']())['map'](_0x350bc7=>_0x2ee791['fromRange'](_0x350bc7));_0x583dd4['model']['change'](_0x203b8f=>{const _0x1972e5=_0x203b8f['batch'];_0x488863=_0x488863['filter'](_0x3e3534=>'$graveyard'!=_0x3e3534['root']['rootName']),_0x203b8f['setSelection'](_0x488863),_0x583dd4['commands']['get']('removeTableRow')['refresh'](),_0x583dd4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x583dd4['model']['enqueueChange'](()=>{_0x583dd4['model']['enqueueChange'](_0x1972e5,_0x50d92c=>{const _0x437adb=_0x5ac0a2['filter'](_0x2a1b88=>'$graveyard'!=_0x2a1b88['root']['rootName']);_0x437adb['length']>0x0&&_0x50d92c['setSelection'](_0x437adb);for(const _0x56aa61 of _0x5ac0a2)_0x56aa61['detach']();});});});}function _0x3964da(_0x53929c){_0x583dd4['model']['change'](_0x242ba4=>{const _0x4aa6dc=Array['from'](_0x4619ce['getRanges']())['map'](_0x4f679c=>_0x2ee791['fromRange'](_0x4f679c)),_0x139f1a=[];for(const _0x505638 of _0x53929c)for(const _0x15e864 of _0x505638['getItems']({'shallow':!0x0}))_0x139f1a['push'](_0x15e864);for(const _0x3892e6 of _0x139f1a)'$graveyard'!=_0x3892e6['root']['rootName']&&(_0x242ba4['setSelection'](_0x242ba4['createPositionAt'](_0x3892e6,0x0)),_0x583dd4['commands']['get']('removeTableColumn')['refresh'](),_0x583dd4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x200cd3=_0x4aa6dc['filter'](_0x33f580=>'$graveyard'!=_0x33f580['root']['rootName']);_0x200cd3['length']>0x0&&_0x242ba4['setSelection'](_0x200cd3);for(const _0x472c75 of _0x4aa6dc)_0x472c75['detach']();});}function _0x51a9c1(_0x53e68b,_0x2bffbc){return _0x2bffbc['every'](_0x4b44a6=>_0x53e68b['some'](_0x14fabc=>_0x14fabc['end']['isEqual'](_0x4b44a6['start'])||_0x4b44a6['end']['isEqual'](_0x14fabc['start'])));}function _0x1c63f2(_0x301730,_0x341388){return!_0x301730['some'](_0x30a6e3=>_0x341388['some'](_0x1307fc=>_0x30a6e3['isIntersecting'](_0x1307fc)))&&_0x301730['some'](_0x160c2a=>_0x341388['some'](_0x45f94b=>_0x160c2a['end']['isTouching'](_0x45f94b['start'])));}_0x583dd4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xdbfcc,_0x3f151a,_0x5865d8)=>{if(!_0x5865d8['options']['showSuggestionHighlights'])return;const _0x16849c=_0x3f151a['item'];if(!_0x16849c||!_0x16849c['is']('element','tableCell'))return;const _0x22ad61=_0x5865d8['mapper']['toViewElement'](_0x16849c);if(_0x22ad61){const {id:_0x2e987d,authorId:_0x2feab5}=_0xe21076['_splitMarkerName'](_0x3f151a['markerName']);_0x121fef(_0x22ad61,_0x5865d8['writer'],(_0x2a2722,_0x4c5fc8,_0x36ea4a)=>{_0x36ea4a['addClass'](_0x564a48(_0x4c5fc8['classes']),_0x2a2722),_0x36ea4a['setAttribute']('data-suggestion-id',_0x2e987d,_0x2a2722),_0x36ea4a['setAttribute']('data-author-id',_0x2feab5,_0x2a2722);},(_0x1a6413,_0x32a627,_0x3a02e0)=>{_0x3a02e0['removeClass'](_0x564a48(_0x32a627['classes']),_0x1a6413),_0x3a02e0['removeAttribute']('data-suggestion-id',_0x1a6413),_0x3a02e0['removeAttribute']('data-author-id',_0x1a6413);});}},{'priority':'highest'}),_0xe21076['descriptionFactory']['registerDescriptionCallback'](_0x9b4e5b=>{if('insertion'!=_0x9b4e5b['type']&&'deletion'!=_0x9b4e5b['type'])return;const _0x1285c1=_0x9b4e5b['getContainedElement']();if(null!=_0x1285c1&&_0x1285c1['is']('element','table')){if('insertion'==_0x9b4e5b['type']){const _0x883007=_0x9b4e5b['getItems']()['filter'](_0x10ead8=>_0x10ead8['is']('$textProxy'))['map'](_0x16a6a1=>_0x16a6a1['data']);if(_0x883007['length'])return{'type':'insertion','content':c(_0x3dfb01,'*Insert:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x883007['join']('\x20')+'\x22'))};}if('deletion'==_0x9b4e5b['type']){const _0xd7b359=_0x9b4e5b['getItems']()['filter'](_0x59924e=>_0x59924e['is']('$textProxy'))['map'](_0x1228a0=>_0x1228a0['data']);if(_0xd7b359['length'])return{'type':'deletion','content':c(_0x3dfb01,'*Remove:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd7b359['join']('\x20')+'\x22'))};}}}),_0xe21076['descriptionFactory']['registerDescriptionCallback'](_0x36ac5d=>{if('tableRow'==_0x36ac5d['subType']){const _0x4d8940=_0x36ac5d['getItems']()['filter'](_0x1f8631=>_0x1f8631['is']('$textProxy'))['map'](_0x492b73=>_0x492b73['data']),_0x26a2fb=this['_getSuggestionCoords'](_0x36ac5d),_0x3cd219=_0x26a2fb['maxRow']-_0x26a2fb['minRow']+0x1;if('insertion'==_0x36ac5d['type'])return _0x4d8940['length']?{'type':'insertion','content':c(_0x3dfb01,'*Insert:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3cd219,'\x22'+_0x4d8940['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3dfb01,'*Insert:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_ROW',_0x3cd219))};if('deletion'==_0x36ac5d['type'])return _0x4d8940['length']?{'type':'deletion','content':c(_0x3dfb01,'*Remove:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3cd219,'\x22'+_0x4d8940['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3dfb01,'*Remove:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_ROW',_0x3cd219))};}if('tableColumn'==_0x36ac5d['subType']){const _0x163bf0=_0x36ac5d['getItems']()['filter'](_0x1e9388=>_0x1e9388['is']('$textProxy'))['map'](_0x5be5d0=>_0x5be5d0['data']),_0x243561=this['_getSuggestionCoords'](_0x36ac5d),_0x5c4047=_0x243561['maxColumn']-_0x243561['minColumn']+0x1;if('insertion'==_0x36ac5d['type'])return _0x163bf0['length']?{'type':'insertion','content':c(_0x3dfb01,'*Insert:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c4047,'\x22'+_0x163bf0['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x3dfb01,'*Insert:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_COLUMN',_0x5c4047))};if('deletion'==_0x36ac5d['type'])return _0x163bf0['length']?{'type':'deletion','content':c(_0x3dfb01,'*Remove:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5c4047,'\x22'+_0x163bf0['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x3dfb01,'*Remove:*\x20%0',c(_0x3dfb01,'ELEMENT_TABLE_COLUMN',_0x5c4047))};}}),_0xe21076['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x278f19),_0xe21076['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x278f19),_0xe21076['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3964da),_0xe21076['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3964da),_0xe21076['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x51a9c1),_0xe21076['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x51a9c1),_0xe21076['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1c63f2),_0xe21076['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1c63f2);}['_acceptFormatSuggestionCallbackFactory'](){const _0x903c96=this['editor'],_0x27c04a=_0x903c96['model']['document']['selection'];return(_0x3e4bee,_0x537fe6)=>{_0x903c96['model']['change'](_0x59f0a6=>{const {commandName:_0x39c461,commandParams:_0x437781}=_0x537fe6;let _0xacebba=_0x3e4bee[0x0]['end']['nodeBefore'];_0x437781&&_0x437781[0x0]&&!0x1===_0x437781[0x0]['forceValue']&&(_0xacebba=_0x3e4bee[0x0]['start']['nodeAfter']);const _0x481c76=_0x59f0a6['createRangeIn'](_0xacebba);if('$graveyard'==_0x481c76['root']['rootName'])return;const _0x305989=Array['from'](_0x27c04a['getRanges']())['map'](_0xe3e835=>_0x2ee791['fromRange'](_0xe3e835));_0x59f0a6['setSelection'](_0x481c76),_0x903c96['commands']['get'](_0x39c461)['refresh'](),_0x437781['push']({'forceDefaultExecution':!0x0}),_0x903c96['execute'](_0x39c461,..._0x437781);const _0x1ab6d6=_0x305989['filter'](_0x5acbec=>'$graveyard'!=_0x5acbec['root']['rootName']);_0x1ab6d6['length']>0x0&&_0x59f0a6['setSelection'](_0x1ab6d6);for(const _0x43f871 of _0x305989)_0x43f871['detach']();});};}['_getCoordsForCells'](_0x210a49){const _0x3705b1=this['editor']['plugins']['get']('TableUtils');let _0x11088f=Number['MAX_SAFE_INTEGER'],_0x307a98=Number['MIN_SAFE_INTEGER'],_0x3baed3=Number['MAX_SAFE_INTEGER'],_0x339d67=Number['MIN_SAFE_INTEGER'];for(const _0xfb2c1f of _0x210a49){if('$graveyard'==_0xfb2c1f['root']['rootName'])continue;const {row:_0x164fc4,column:_0x5d5af0}=_0x3705b1['getCellLocation'](_0xfb2c1f),_0x446ca9=_0xfb2c1f['hasAttribute']('rowspan')?_0xfb2c1f['getAttribute']('rowspan')-0x1:0x0,_0x41bacf=_0xfb2c1f['hasAttribute']('colspan')?_0xfb2c1f['getAttribute']('colspan')-0x1:0x0;_0x11088f=_0x164fc4<_0x11088f?_0x164fc4:_0x11088f,_0x307a98=_0x164fc4+_0x446ca9>_0x307a98?_0x164fc4+_0x446ca9:_0x307a98,_0x3baed3=_0x5d5af0<_0x3baed3?_0x5d5af0:_0x3baed3,_0x339d67=_0x5d5af0+_0x41bacf>_0x339d67?_0x5d5af0+_0x41bacf:_0x339d67;}return{'minRow':_0x11088f,'maxRow':_0x307a98,'minColumn':_0x3baed3,'maxColumn':_0x339d67};}['_setupColumnsRowsFixing'](){const _0x27cbad=this['editor'],_0x19bc3c=_0x27cbad['plugins']['get']('TrackChangesEditing'),_0xba3366=_0x27cbad['plugins']['get']('TableUtils');_0x27cbad['model']['document']['on']('change:data',()=>{const _0x4c8c16=Array['from'](_0x27cbad['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x38c2fe,data:_0x31ca7e}of _0x4c8c16){const {group:_0x475f7d,id:_0x171cf6,subType:_0x455dcd}=_0x19bc3c['_splitMarkerName'](_0x38c2fe);if('suggestion'!=_0x475f7d)continue;if(null!=_0x31ca7e['oldRange'])continue;const _0x22b4e5=_0x19bc3c['getSuggestion'](_0x171cf6);this['_tablePostFixingSubtypes']['includes'](_0x455dcd)&&this['_tableSuggestions']['add'](_0x22b4e5);}},{'priority':'low'});const _0x4688df=(_0x289ecf,_0x50834d)=>{let _0x3aae3a=!0x1;const _0x28cc9c=_0x50834d['createRangeOn'](_0x289ecf),_0x5a63ba=_0x289ecf['findAncestor']('table'),_0x151c42=_0xba3366['getCellLocation'](_0x289ecf);for(const _0x423427 of this['_tableSuggestions']){const _0x54b65b=_0x423427['subType'],_0x150edb=_0x54b65b['startsWith']('tablePaste'),_0x28db85=_0x54b65b['substr'](_0x150edb?0xa:0x5),_0xa69ff7=_0x28db85['toLowerCase'](),_0x144c64=_0xa69ff7['substr'](0x0,0x3)+'span',_0x3a75b0='min'+_0x28db85,_0x357834='max'+_0x28db85;if(!_0x423427['isInContent'])continue;if(_0x5a63ba!=_0x423427['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x423427['isIntersectingWithRange'](_0x28cc9c))continue;const _0x5c1327=_0x289ecf['hasAttribute'](_0x144c64)?_0x289ecf['getAttribute'](_0x144c64)-0x1:0x0,_0x316674=this['_getSuggestionCoords'](_0x423427),_0x14028b=_0x316674[_0x3a75b0],_0x222b83=_0x316674[_0x357834];_0x14028b<=_0x151c42[_0xa69ff7]&&_0x151c42[_0xa69ff7]+_0x5c1327<=_0x222b83&&(_0x423427['addRange'](_0x28cc9c),_0x3aae3a=!0x0);}return _0x3aae3a;};_0x27cbad['model']['document']['registerPostFixer'](_0x1b20fe=>{let _0x701bc5=!0x1;for(const _0x4e1e3d of _0x27cbad['model']['document']['differ']['getChanges']())if('insert'==_0x4e1e3d['type']){if('tableRow'==_0x4e1e3d['name']){for(const _0x290e29 of _0x4e1e3d['position']['nodeAfter']['getChildren']())_0x701bc5=_0x701bc5||_0x4688df(_0x290e29,_0x1b20fe);}else'tableCell'==_0x4e1e3d['name']&&(_0x701bc5=_0x701bc5||_0x4688df(_0x4e1e3d['position']['nodeAfter'],_0x1b20fe));}return _0x701bc5;});}['_getSuggestionCoords'](_0x21d464){return this['_getCoordsForCells'](_0x21d464['getRanges']()['map'](_0x133a39=>_0x133a39['start']['nodeAfter']));}}function xe(_0x34cadb){return Array['from'](new Set(_0x34cadb)['values']());}class Nt extends _0x48ff0c{static get['requires'](){return[Ct];}['afterInit'](){const _0x510ac5=this['editor'],_0x2f1da5=_0x510ac5['model']['document']['selection'],_0x2d084c=_0x510ac5['locale'];if(!_0x510ac5['plugins']['has']('TableEditing'))return;const _0x423a78=_0x510ac5['plugins']['get']('TrackChangesEditing'),_0x1ec512=_0x510ac5['plugins']['get']('TableUtils'),_0xd51574=_0x510ac5['plugins']['get'](Ct);_0xd51574['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x423a78['enableCommand']('mergeTableCells',()=>{const _0x8d689b=_0x1ec512['getSelectionAffectedTableCells'](_0x510ac5['model']['document']['selection']);_0x510ac5['model']['change'](()=>{_0x423a78['markMultiRangeBlockFormat'](_0x8d689b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x510ac5['commands']['get']('mergeTableCells')['on']('execute',(_0x252f0b,_0x5b7abf)=>{_0x510ac5['commands']['get']('trackChanges')['value']&&(_0x5b7abf['length']>0x0&&_0x5b7abf[_0x5b7abf['length']-0x1]&&_0x5b7abf[_0x5b7abf['length']-0x1]['forceDefaultExecution']||_0x423a78['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x252f0b['stop']());},{'priority':'highest'});for(const _0x5b4d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x2ebd58=_0x510ac5['commands']['get'](_0x5b4d8);_0x423a78['enableCommand'](_0x5b4d8,()=>{const _0xe3764=_0x510ac5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15db41=>_0x15db41['is']('element','tableCell')),_0x26ab15=_0x2ebd58['value'];_0x510ac5['model']['change'](()=>{_0x423a78['markMultiRangeBlockFormat']([_0xe3764,_0x26ab15],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x204040 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1fd42d=_0x510ac5['commands']['get'](_0x204040);_0x423a78['enableCommand'](_0x204040,()=>{const _0x31deda=_0x1ec512['getSelectionAffectedTableCells'](_0x510ac5['model']['document']['selection'])[0x0],_0x119613=_0x31deda['findAncestor']('table'),{column:_0x2025fa,row:_0x4426c1}=_0x1ec512['getCellLocation'](_0x31deda);let _0x55dff1=[];if('horizontally'==_0x1fd42d['direction']){const _0x4a548e=_0x1ec512['createTableWalker'](_0x119613,{'startRow':_0x4426c1,'endRow':_0x4426c1,'includeAllSlots':!0x0});_0x55dff1=Array['from'](_0x4a548e)['map'](_0x253420=>_0x253420['cell']);}else{const _0x179005=_0x1ec512['createTableWalker'](_0x119613,{'column':_0x2025fa,'includeAllSlots':!0x0});_0x55dff1=Array['from'](_0x179005)['map'](_0xb5f843=>_0xb5f843['cell']);}_0x510ac5['model']['change'](_0x2c1244=>{_0x423a78['markBlockFormat'](_0x2c1244['createRangeOn'](_0x31deda),{'commandName':_0x204040,'commandParams':[]},_0x55dff1,_0x204040);});});}_0x423a78['descriptionFactory']['registerDescriptionCallback'](_0x48e56b=>{if('formatBlock'!=_0x48e56b['type']&&'formatInline'!=_0x48e56b['type'])return;const {data:_0x1e18a3}=_0x48e56b;return _0x1e18a3&&'mergeTableCells'==_0x1e18a3['commandName']?{'type':'format','content':c(_0x2d084c,'*Merge\x20cells*')}:void 0x0;}),_0x423a78['descriptionFactory']['registerDescriptionCallback'](_0x5d473a=>{if('formatBlock'!=_0x5d473a['type']&&'formatInline'!=_0x5d473a['type'])return;const {data:_0x1d9a0f}=_0x5d473a;return _0x1d9a0f?'splitTableCellVertically'==_0x1d9a0f['commandName']?{'type':'format','content':c(_0x2d084c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1d9a0f['commandName']?{'type':'format','content':c(_0x2d084c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2fd84a=_0xd51574['_acceptFormatSuggestionCallbackFactory']();for(const _0x4c20b9 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x423a78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4c20b9,'accept',_0x2fd84a);for(const _0x252d63 of['splitTableCellVertically','splitTableCellHorizontally'])_0x423a78['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x252d63,'accept',_0x2fd84a);_0x423a78['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x30a3a1=>{_0x510ac5['model']['change'](_0x590519=>{const _0x3e988a=Array['from'](_0x2f1da5['getRanges']())['map'](_0x31703d=>_0x2ee791['fromRange'](_0x31703d));_0x590519['setSelection'](_0x30a3a1),_0x510ac5['commands']['get']('mergeTableCells')['refresh'](),_0x510ac5['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x17d09f=_0x3e988a['filter'](_0x977988=>'$graveyard'!=_0x977988['root']['rootName']);_0x17d09f['length']>0x0&&_0x590519['setSelection'](_0x17d09f);for(const _0x14a9ba of _0x3e988a)_0x14a9ba['detach']();});});for(const _0x531df6 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xd57fc7=_0x510ac5['commands']['get'](_0x531df6);_0xd57fc7['on']('set:isEnabled',(_0x2174da,_0x1d3c9d,_0x5063b6)=>{if(_0x5063b6){const _0x599a73=_0x510ac5['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2c2a2a=>_0x2c2a2a['is']('element','tableCell'));this['_areMergableCells'](_0xd57fc7['value'],_0x599a73)||(_0x2174da['return']=!0x1,_0x2174da['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x40dd37=this['editor']['commands']['get']('mergeTableCells'),_0x2783db=this['editor']['plugins']['get']('TableUtils');if(!_0x40dd37['isEnabled'])return!0x1;const _0x33b281=_0x2783db['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x37cbea of _0x33b281)for(const _0x49f845 of _0x33b281)if(_0x37cbea!=_0x49f845&&!this['_areMergableCells'](_0x37cbea,_0x49f845))return!0x1;return!0x0;}['_areMergableCells'](_0x2d07aa,_0x2b0ede){const _0x48bb74=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b5610=this['editor']['model']['createRangeOn'](_0x2d07aa),_0x590c9c=this['editor']['model']['createRangeOn'](_0x2b0ede),_0x481a73=new Set(),_0x22509e=new Set();for(const _0x3ec80c of _0x48bb74['getSuggestions']())if(('insertion'==_0x3ec80c['type']||'deletion'==_0x3ec80c['type']||'mergeTableCells'==_0x3ec80c['subType'])&&_0x3ec80c['isInContent']){for(const _0x284177 of _0x3ec80c['getRanges']())_0x284177['containsRange'](_0x1b5610,!0x0)&&_0x481a73['add'](_0x3ec80c['type']+':'+_0x3ec80c['author']['id']),_0x284177['containsRange'](_0x590c9c,!0x0)&&_0x22509e['add'](_0x3ec80c['type']+':'+_0x3ec80c['author']['id']);}if(_0x481a73['size']!=_0x22509e['size'])return!0x1;for(const _0x454b16 of _0x481a73)if(!_0x22509e['has'](_0x454b16))return!0x1;return!0x0;}}class Dt extends _0x48ff0c{static get['requires'](){return[Ct];}['afterInit'](){const _0x1356c1=this['editor'];if(!_0x1356c1['plugins']['has']('TableEditing'))return;const _0x2ca0a7=_0x1356c1['locale'],_0x33249e=_0x1356c1['plugins']['get']('TrackChangesEditing');_0x33249e['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x33249e['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x33249e['registerBlockAttribute']('headingRows'),_0x33249e['registerBlockAttribute']('headingColumns'),_0x33249e['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x2ca0a7,'FORMAT_HEADER_ROW')),_0x33249e['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x2ca0a7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x145631=this['editor']['plugins']['get']('TrackChangesEditing'),_0xdddca6=this['editor']['plugins']['get']('TableUtils'),_0x5d6daa=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x495c6a({showActiveMarker:_0x9eca49=!0x0,setDataAttribute:_0x30b21b=!0x0}={}){return(_0x15531d,_0x302fc9,_0x4b0e83)=>{const {type:_0x3e8e48,id:_0x448e74}=_0x145631['_splitMarkerName'](_0x302fc9['markerName']),_0x9321fa=_0x145631['getSuggestion'](_0x448e74),_0x49539b=_0x9321fa['data'];if('formatBlock'!=_0x9321fa['type']||!_0x49539b||'setTableColumnHeader'!=_0x49539b['commandName'])return;if(_0x302fc9['item'])return void _0x15531d['stop']();if(!_0x4b0e83['consumable']['consume'](_0x302fc9['markerRange'],_0x15531d['name']))return;const _0x3d8a83=_0x302fc9['markerRange']['start']['nodeAfter'],_0x453164=_0x302fc9['markerRange']['end']['nodeBefore'],_0x3500aa=_0x3d8a83['parent']['parent'],{column:_0x5255ac}=_0xdddca6['getCellLocation'](_0x3d8a83),{column:_0x300724}=_0xdddca6['getCellLocation'](_0x453164);for(let _0x45a85c=_0x5255ac;_0x45a85c<=_0x300724;_0x45a85c++){const _0x26c1ac=_0xdddca6['createTableWalker'](_0x3500aa,{'column':_0x45a85c,'includeAllSlots':!0x1});for(const _0x2ce2b8 of _0x26c1ac){const _0x453864=_0x2ce2b8['cell'],_0x1a9b13=_0x4b0e83['mapper']['toViewElement'](_0x453864);_0x4b0e83['writer']['addClass']('ck-suggestion-marker-'+_0x3e8e48,_0x1a9b13),_0x30b21b&&_0x4b0e83['writer']['setAttribute']('data-suggestion',_0x448e74,_0x1a9b13),_0x4b0e83['mapper']['bindElementToMarker'](_0x1a9b13,_0x302fc9['markerName']),_0x9eca49&&(_0x145631['activeMarkers']['includes'](_0x302fc9['markerName'])?_0x4b0e83['writer']['addClass']('ck-suggestion-marker--active',_0x1a9b13):_0x4b0e83['writer']['removeClass']('ck-suggestion-marker--active',_0x1a9b13));}}};}_0x145631['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5d6daa),_0x145631['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5d6daa),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x495c6a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xe77153,_0x261652,_0x4d84a5)=>{_0x4d84a5['options']['showSuggestionHighlights']&&_0x495c6a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xe77153,_0x261652,_0x4d84a5);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1f2b36,_0x4390e4,_0x16213f)=>{const {type:_0x2091ad,id:_0x3445dc}=_0x145631['_splitMarkerName'](_0x4390e4['markerName']),_0x14cb3f=_0x145631['getSuggestion'](_0x3445dc),_0x11f849=_0x14cb3f['data'];if('formatBlock'!=_0x14cb3f['type']||!_0x11f849||'setTableColumnHeader'!=_0x11f849['commandName'])return;const _0x5a6a00=_0x16213f['mapper']['markerNameToElements'](_0x4390e4['markerName']);if(_0x5a6a00){for(const _0x536fbf of _0x5a6a00)_0x16213f['writer']['removeClass']('ck-suggestion-marker-'+_0x2091ad,_0x536fbf),_0x16213f['writer']['removeClass']('ck-suggestion-marker--active',_0x536fbf),_0x16213f['writer']['removeAttribute']('data-suggestion',_0x536fbf),_0x16213f['mapper']['unbindElementFromMarkerName'](_0x536fbf,_0x4390e4['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x321ba4=this['editor'],_0x3276ab=_0x321ba4['locale'];function _0x50fade(_0x1751ce){return{'type':'format','content':c(_0x3276ab,'*Format:*\x20%0',_0x1751ce)};}_0x321ba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2f6a19=>{if('formatBlock'!=_0x2f6a19['type'])return;const {data:_0x363378}=_0x2f6a19;if(_0x363378){if('setTableRowHeader'==_0x363378['commandName']){const _0xc49c22=_0x363378['commandParams'][0x0]['forceValue'];return _0x50fade(c(_0x3276ab,_0xc49c22?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x363378['commandName']){const _0x5cbd8c=_0x363378['commandParams'][0x0]['forceValue'];return _0x50fade(c(_0x3276ab,_0x5cbd8c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x48ff0c{['afterInit'](){const _0x3ba63a=this['editor'],_0x3e2c43=_0x3ba63a['locale'],_0x475703=_0x3ba63a['plugins']['get']('TrackChangesEditing');function _0x4b37a2(_0x73d5ab){return{'type':'format','content':''+c(_0x3e2c43,'*Set\x20table\x20type:*\x20%0',_0x73d5ab)};}_0x3ba63a['plugins']['has']('TableLayout')&&(_0x475703['enableCommand']('insertTableLayout'),_0x475703['enableDefaultAttributesIntegration']('tableType'),_0x475703['registerBlockAttribute']('tableType'),_0x475703['descriptionFactory']['registerElementLabel'](_0x3d2ed6=>_0x3d2ed6['is']('element','table')&&'layout'===_0x3d2ed6['getAttribute']('tableType'),_0xd5d455=>c(_0x3e2c43,'ELEMENT_LAYOUT_TABLE',_0xd5d455)),_0x475703['descriptionFactory']['registerDescriptionCallback'](_0x3ab14e=>{const {data:_0x3cc232}=_0x3ab14e;if(_0x3cc232&&'tableType'==_0x3cc232['key'])switch(_0x3cc232['newValue']){case'layout':return _0x4b37a2(c(_0x3e2c43,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x4b37a2(c(_0x3e2c43,'ELEMENT_CONTENT_TABLE'));}}));}}const Oe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ue=Object['fromEntries'](Oe['map'](_0x183752=>[_0x183752,null]));class $t extends _0x48ff0c{static get['requires'](){return[Ct];}['afterInit'](){const _0x544984=this['editor'];if(!_0x544984['plugins']['has']('TableClipboard'))return;const _0x46bd9b=_0x544984['plugins']['get']('TrackChangesEditing'),_0x394189=_0x544984['plugins']['get']('TableUtils'),_0x3987eb=_0x544984['plugins']['get'](Ct),_0x2d260a=_0x544984['plugins']['get']('TableClipboard'),_0x343796=_0x544984['plugins']['get']('TableSelection'),_0x1a95f2=_0x544984['plugins']['get'](_0x42fb35);_0x3987eb['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x544984['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x544984['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x499433=null,_0x31da0f=!0x1;_0x1a95f2['on']('contentInsertion',(_0x3029c4,_0x4a8a11)=>{_0x31da0f='paste'===_0x4a8a11['method'];}),_0x544984['model']['on']('insertContent',(_0x4c1d30,_0x266534)=>{if(!_0x31da0f&&null===_0x343796['getSelectedTableCells']())return;const [_0x3fcbf9,_0x36ce77]=_0x266534,_0x26c200=_0x266534[_0x266534['length']-0x1];_0x26c200&&_0x26c200['forceDefaultExecution']||_0x46bd9b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x7ccc9d,_0x364e29,_0x2c81dd,_0x5b416f,_0x1b8add){if(_0x364e29&&!_0x364e29['is']('documentSelection'))return!0x1;const _0x4ebb5c=_0x1b8add['getTableIfOnlyTableInContent'](_0x7ccc9d,_0x2c81dd);if(!_0x4ebb5c||!He(_0x4ebb5c,void 0x0,_0x5b416f))return!0x1;const _0x3e7ae2=_0x5b416f['getSelectionAffectedTableCells'](_0x2c81dd['document']['selection']);if(!_0x3e7ae2['length'])return!0x1;const _0x1ffddf=_0x3e7ae2[0x0]['findAncestor']('table'),_0x33ceca=_0x5b416f['getRowIndexes'](_0x3e7ae2),_0x1fd674=_0x5b416f['getColumnIndexes'](_0x3e7ae2),_0x7ae8f6={'startRow':_0x33ceca['first'],'endRow':_0x33ceca['last'],'startColumn':_0x1fd674['first'],'endColumn':_0x1fd674['last']};return 0x1==_0x3e7ae2['length']&&(_0x7ae8f6['endRow']+=_0x5b416f['getRows'](_0x4ebb5c)-0x1,_0x7ae8f6['endColumn']+=_0x5b416f['getColumns'](_0x4ebb5c)-0x1),He(_0x1ffddf,_0x7ae8f6,_0x5b416f);}(_0x3fcbf9,_0x36ce77,_0x544984['model'],_0x394189,_0x2d260a)&&(_0x4c1d30['stop'](),_0x499433={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x544984['model']['change'](()=>{_0x544984['model']['insertContent'](_0x266534[0x0],_0x266534[0x1],_0x266534[0x2],{'forceDefaultExecution':!0x0});const _0xe37126=_0x2789d7(),{rowInsertionRanges:_0x11f15f,columnInsertionRanges:_0x58e82f,insertionRanges:_0x1d7d97,deletionRanges:_0x3d4a7b,cells:_0x28dda1}=_0x499433;_0x11f15f['length']&&_0x46bd9b['markMultiRangeInsertion'](_0x11f15f,'tablePasteRow',{'tablePasteChainId':_0xe37126}),_0x58e82f['length']&&_0x46bd9b['markMultiRangeInsertion'](_0x58e82f,'tablePasteColumn',{'tablePasteChainId':_0xe37126}),_0x1d7d97['length']&&(_0x46bd9b['markMultiRangeInsertion'](_0x1d7d97,'tablePaste',{'tablePasteChainId':_0xe37126,'skipNestingCheck':!0x0}),_0x1d7d97['forEach'](_0x56b380=>_0x56b380['detach']?.())),_0x3d4a7b['length']&&(_0x46bd9b['markMultiRangeDeletion'](_0x3d4a7b,'tablePaste',{'tablePasteChainId':_0xe37126,'skipNestingCheck':!0x0}),_0x3d4a7b['forEach'](_0x302317=>_0x302317['detach']?.()));const _0x5b4471=_0x46bd9b['markMultiRangeBlockFormat'](_0x28dda1['map'](({element:_0x8c96bf})=>_0x8c96bf),{'formatGroupId':_0x2789d7()},[],'tablePasteCell',{'tablePasteChainId':_0xe37126});if(_0x5b4471){const _0x3768b9=_0x5b4471['getMarkers'](),_0x3f9f94=[];for(const {element:_0x208a42,attributes:_0x46de4d}of _0x28dda1){if(!_0x46de4d)continue;const _0x5feed3=_0x544984['model']['createRangeOn'](_0x208a42),_0x17d630=_0x3768b9['find'](_0x601e04=>_0x601e04['getRange']()['isEqual'](_0x5feed3));_0x17d630&&_0x3f9f94['push']([_0x17d630['name'],_0x46de4d]);}_0x3f9f94['length']&&_0x5b4471['setAttribute']('markerAttributes',Object['fromEntries'](_0x3f9f94));}_0x499433=null;}));},{'priority':_0x45b1e2['high']+0xa}),_0x1a95f2['on']('contentInsertion',()=>{_0x31da0f=!0x1;},{'priority':'lowest'}),_0x544984['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2b6a70,_0x407eff)=>{const [_0x9e5cd7,_0x141a8e,,_0x2c9aae]=_0x407eff;if(!_0x499433)return;_0x2b6a70['stop']();const _0xccd97b=_0x9e5cd7['cell'],_0x1096c1=_0x141a8e,_0x29df80=De(_0xccd97b),_0x263c54=De(_0x1096c1);_0x2b6a70['return']=_0xccd97b;let _0x2617de=null,_0x3e13e2=null;if(_0x263c54||_0x29df80){if(_0x29df80&&!_0x263c54){_0x2c9aae['remove'](_0xccd97b['getChild'](0x0));for(const _0x514363 of Array['from'](_0x1096c1['getChildren']()))_0x2c9aae['insert'](_0x514363,_0xccd97b,'end');const _0x2e7f8f=_0x499433['rowInsertionIndexes']['includes'](_0x9e5cd7['row']),_0x54d901=_0x499433['columnInsertionIndexes']['includes'](_0x9e5cd7['column']);_0x2e7f8f||_0x54d901||(_0x2617de=_0x2ee791['fromRange'](_0x2c9aae['createRangeIn'](_0xccd97b)));}else _0x263c54&&!_0x29df80&&(_0x3e13e2=_0x2c9aae['createRangeIn'](_0xccd97b));}else{const _0x51b783=_0x2c9aae['createElement']('tableCellSuggestion'),_0x29f0e8=_0x2c9aae['createElement']('tableCellSuggestion');_0x2c9aae['wrap'](_0x2c9aae['createRangeIn'](_0xccd97b),_0x29f0e8),_0x2c9aae['insert'](_0x51b783,_0xccd97b,0x0);for(const _0x2c78cc of Array['from'](_0x1096c1['getChildren']()))_0x2c9aae['insert'](_0x2c78cc,_0x51b783,'end');_0x2617de=_0x2ee791['fromRange'](_0x2c9aae['createRangeOn'](_0x51b783)),_0x3e13e2=_0x2ee791['fromRange'](_0x2c9aae['createRangeOn'](_0x29f0e8));}const _0x29cdea=Array['from'](_0x1096c1['getAttributes']())['filter'](([_0x4c3994])=>Oe['includes'](_0x4c3994));_0x499433['cells']['push']({'element':_0xccd97b,'attributes':_0x29cdea['length']?Object['fromEntries'](_0x29cdea):null}),_0x2617de&&_0x499433['insertionRanges']['push'](_0x2617de),_0x3e13e2&&_0x499433['deletionRanges']['push'](_0x3e13e2);},{'priority':'high'}),_0x394189['on']('insertColumns',(_0x3411dd,_0x14a365)=>{const [_0x2cad49,_0xe9d863={}]=_0x14a365;if(!_0x499433)return;const _0x115a97=_0xe9d863['at']||0x0,_0xf65f93=_0xe9d863['columns']||0x1;_0x499433['columnInsertionIndexes']=new Array(_0xf65f93)['fill'](_0x115a97)['map']((_0x5b9ad5,_0x81490)=>_0x5b9ad5+_0x81490);for(const {cell:_0x4e0d25}of _0x394189['createTableWalker'](_0x2cad49,{'startColumn':_0x115a97,'endColumn':_0x115a97+_0xf65f93-0x1}))_0x499433['columnInsertionRanges']['push'](_0x544984['model']['createRangeOn'](_0x4e0d25));},{'priority':'low'}),_0x394189['on']('insertRows',(_0xf81eb4,_0x3f2f9b)=>{const [_0x21f305,_0x2fd3d8={}]=_0x3f2f9b;if(!_0x499433)return;const _0x2f7d08=_0x2fd3d8['at']||0x0,_0x5d0827=_0x2fd3d8['rows']||0x1;_0x499433['rowInsertionIndexes']=new Array(_0x5d0827)['fill'](_0x2f7d08)['map']((_0x1b0bf1,_0x5f2ea3)=>_0x1b0bf1+_0x5f2ea3);for(const {cell:_0x42cdd4}of _0x394189['createTableWalker'](_0x21f305,{'startRow':_0x2f7d08,'endRow':_0x2f7d08+_0x5d0827-0x1}))_0x499433['rowInsertionRanges']['push'](_0x544984['model']['createRangeOn'](_0x42cdd4));},{'priority':'low'}),_0x46bd9b['descriptionFactory']['registerDescriptionCallback'](_0x4ce86f=>{if(_0x4ce86f['subType']&&_0x4ce86f['subType']['startsWith']('tablePaste'))return _0x4ce86f['previous']?{}:{'type':'insertion','content':c(_0x544984['locale'],'*Replace\x20table\x20cells*')};});const _0x560d0a=()=>!0x1;for(const _0x1e7d40 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x46bd9b['_suggestionFactory']['registerCustomCallback']('insertion',_0x1e7d40,'join',_0x560d0a),_0x46bd9b['_suggestionFactory']['registerCustomCallback']('deletion',_0x1e7d40,'join',_0x560d0a),_0x46bd9b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1e7d40,'join',_0x560d0a);_0x46bd9b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x560d0a),_0x46bd9b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38da08,_0x1e06c6,_0x4d1744)=>{const _0x2f30e5=_0x38da08['map'](_0x20b51d=>_0x20b51d['getContainedElement']())['filter'](_0x23af15=>_0x23af15),_0x522532=new Map(_0x2f30e5['map'](_0x2e4aca=>[_0x2e4aca,null]));if(_0x499433){for(const {element:_0x28bee2,attributes:_0x3041fa}of _0x499433['cells'])_0x3041fa&&_0x522532['set'](_0x28bee2,_0x3041fa);}else{if(_0x4d1744&&_0x4d1744['markerAttributes'])for(const [_0x428624,_0x555ec6]of Object['entries'](_0x4d1744['markerAttributes'])){const _0x4b4bb4=_0x544984['model']['markers']['get'](_0x428624),_0x594779=_0x4b4bb4?_0x4b4bb4['getRange']()['getContainedElement']():null;_0x594779&&_0x522532['set'](_0x594779,_0x555ec6);}}_0x544984['model']['change'](_0x351340=>{for(const [_0x19594f,_0x49fa0a]of _0x522532)_0x351340['setAttributes']({...Ue,..._0x49fa0a},_0x19594f);});});const _0x121c5a=(_0x1d79ae,_0x248d1d)=>{_0x46bd9b['_suggestionFactory']['registerCustomCallback'](_0x1d79ae,'tablePaste',_0x248d1d,(_0x49fa74,_0x5bb6ca,_0x32b946)=>{_0x544984['model']['change'](_0x12b794=>{const _0x338823=[];for(const _0x6e22bc of _0x49fa74){const _0x1722ce=_0x6e22bc['start']['nodeAfter'];_0x1722ce['is']('element','tableCellSuggestion')&&_0x338823['push'](_0x1722ce);}_0x46bd9b['_suggestionFactory']['getSuggestionCallback'](_0x1d79ae,null,_0x248d1d)(_0x49fa74,_0x5bb6ca,_0x32b946);for(const _0x2d6bfc of _0x338823)'$graveyard'!=_0x2d6bfc['root']['rootName']&&_0x12b794['unwrap'](_0x2d6bfc);});});};_0x121c5a('insertion','accept'),_0x121c5a('insertion','discard'),_0x121c5a('deletion','accept'),_0x121c5a('deletion','discard'),_0x46bd9b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xf049a8=>{const _0x5c3f65=_0xf049a8['map'](_0x214717=>_0x214717['getContainedElement']()),_0x4ed499=_0x5c3f65[0x0]['findAncestor']('table'),{minRow:_0x32cb4d,maxRow:_0x4d892d}=_0x3987eb['_getCoordsForCells'](_0x5c3f65);_0x394189['removeRows'](_0x4ed499,{'at':_0x32cb4d,'rows':_0x4d892d-_0x32cb4d+0x1});}),_0x46bd9b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x46a4c0=>{const _0x99a8a0=_0x46a4c0['map'](_0x3a4628=>_0x3a4628['getContainedElement']()),_0x321751=_0x99a8a0[0x0]['findAncestor']('table'),{minColumn:_0x45dde9,maxColumn:_0x3fd239}=_0x3987eb['_getCoordsForCells'](_0x99a8a0);_0x394189['removeColumns'](_0x321751,{'at':_0x45dde9,'columns':_0x3fd239-_0x45dde9+0x1});});const _0x4070f5=(_0x57b3ac,_0x51e623)=>{if(!_0x51e623['subType']||!_0x51e623['subType']['startsWith']('tablePaste'))return;const _0x4fa3d2=_0x51e623['attributes']['tablePasteChainId'],_0x40cc40=_0x46bd9b['getSuggestions']()['filter'](_0x5ad8f0=>_0x5ad8f0['isInContent']&&_0x5ad8f0['attributes']&&_0x5ad8f0['attributes']['tablePasteChainId']==_0x4fa3d2);_0x40cc40['length']&&_0x51e623['getAllAdjacentSuggestions']()['length']!=_0x40cc40['length']&&_0x40cc40['reduce']((_0x124e70,_0x118476)=>(_0x124e70['next']=_0x118476,_0x118476['previous']=_0x124e70,_0x118476));};function _0xc924c3(_0xf28181,_0x4db80b=!0x0){const {id:_0x3d90eb,authorId:_0x38e9dd}=_0x46bd9b['_splitMarkerName'](_0xf28181['markerName']),_0x5e5430=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x411fd6=_0x46bd9b['activeMarkers']['includes'](_0xf28181['markerName']);return _0x411fd6&&_0x5e5430['push']('ck-suggestion-marker--active'),{'classes':_0x5e5430,'attributes':{'data-suggestion':_0x3d90eb,'data-author-id':_0x38e9dd},'priority':_0x411fd6&&_0x4db80b?0xbc2:0xbb8};}_0x46bd9b['on']('suggestionLoaded',_0x4070f5,{'priority':'high'}),_0x46bd9b['on']('suggestionUnloaded',_0x4070f5,{'priority':'high'}),_0x544984['model']['document']['registerPostFixer'](()=>{let _0x3970f4=!0x1;const _0x3ff744=Array['from'](_0x544984['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2a49d0,data:_0x58edde}of _0x3ff744){const {group:_0x4f9bdd,type:_0x2f18f1,id:_0x24e889}=_0x46bd9b['_splitMarkerName'](_0x2a49d0);if('suggestion'!=_0x4f9bdd||'deletion'!=_0x2f18f1||_0x58edde['oldRange'])continue;if(!_0x46bd9b['hasSuggestion'](_0x24e889))continue;const _0x5f5903=_0x46bd9b['getSuggestion'](_0x24e889)['getRanges'](),_0x3d261a=_0x544984['plugins']['get']('Users')['me'];for(const _0x47712d of _0x46bd9b['getSuggestions']()){if(!_0x47712d['isInContent']||_0x47712d['author']!=_0x3d261a)continue;if('formatBlock'!=_0x47712d['type']||'tablePasteCell'!=_0x47712d['subType'])continue;if(_0x47712d['getRanges']()['every'](_0x5609a7=>_0x5f5903['some'](_0x1c8325=>_0x1c8325['containsRange'](_0x5609a7,!0x0)))){for(const _0x5c3547 of _0x47712d['getAllAdjacentSuggestions']())_0x5c3547['isInContent']&&(_0x5c3547['discard'](),_0x3970f4=!0x0);}}}return _0x3970f4;}),_0x544984['model']['document']['registerPostFixer'](_0x1b8537=>{const _0xff0d53=_0x544984['commands']['get']('redo');if(!_0xff0d53||!_0xff0d53['_createdBatches']['has'](_0x1b8537['batch']))return!0x1;let _0x3992dc=!0x1;const _0x106313=_0x544984['plugins']['get']('Users')['me'],_0x4676f5=_0x544984['model']['document']['differ']['getChanges'](),_0x153200=Array['from'](_0x544984['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x3b3f63,data:_0x5ea1ac})=>{const {group:_0x3f5c06,subType:_0x2c6683,authorId:_0x2e61a7}=_0x46bd9b['_splitMarkerName'](_0x3b3f63);return'suggestion'==_0x3f5c06&&'tablePaste'==_0x2c6683&&_0x2e61a7==_0x106313['id']&&!_0x5ea1ac['oldRange'];});for(const _0x23e200 of _0x4676f5){if('insert'!=_0x23e200['type']||'tableCellSuggestion'!=_0x23e200['name']||0x1!=_0x23e200['length'])continue;const _0xda7ccb=_0x1b8537['createRange'](_0x23e200['position'],_0x23e200['position']['getShiftedBy'](0x1));if(!_0x153200['find'](({data:_0x47d73a})=>_0x47d73a['newRange']['isEqual'](_0xda7ccb))){for(const {name:_0x4a3eb5,data:_0x5af2f2}of _0x153200)if(_0xda7ccb['containsRange'](_0x5af2f2['newRange'])){_0x1b8537['updateMarker'](_0x4a3eb5,{'range':_0xda7ccb}),_0x3992dc=!0x0;break;}}}return _0x3992dc;}),_0x544984['model']['document']['registerPostFixer'](_0x48fe8f=>{let _0x3db2b4=!0x1;const _0x1c6130=_0x544984['plugins']['get']('Users')['me'],_0x5c5bee=_0x46bd9b['getSuggestions']()['filter'](_0x4ca030=>_0x4ca030['isInContent']&&_0x4ca030['author']==_0x1c6130),_0x4eba05=new Set(),_0x2f7561=new Set();for(const _0x2f8565 of _0x5c5bee)if('tablePaste'==_0x2f8565['subType'])for(const _0x4dddd7 of _0x2f8565['getMarkers']()){const _0x57e6ca=_0x4dddd7['getRange']()['getContainedElement']();if(_0x57e6ca){if(_0x57e6ca['is']('element','tableCellSuggestion')&&De(_0x57e6ca)){_0x2f8565['removeMarker'](_0x4dddd7['name']),_0x4eba05['add'](_0x57e6ca),_0x3db2b4=!0x0;const _0x4dfd29=_0x57e6ca['nextSibling'],_0x391731=_0x57e6ca['previousSibling'],_0x3ebb31=_0x4dfd29&&_0x4dfd29['is']('element','tableCellSuggestion'),_0x20249a=_0x391731&&_0x391731['is']('element','tableCellSuggestion');_0x3ebb31&&!_0x4eba05['has'](_0x4dfd29)&&_0x2f7561['add'](_0x4dfd29),_0x20249a&&!_0x4eba05['has'](_0x391731)&&_0x2f7561['add'](_0x391731);}else _0x57e6ca['is']('element','paragraph')&&_0x57e6ca['isEmpty']&&(_0x2f8565['removeMarker'](_0x4dddd7['name']),_0x3db2b4=!0x0);}}else{if('tablePasteCell'==_0x2f8565['subType']){if(!_0x2f8565['attributes']||!_0x2f8565['attributes']['tablePasteChainId'])continue;const _0x5078b2=_0x2f8565['attributes']['markerAttributes'];if(_0x5078b2&&Object['keys'](_0x5078b2)['length'])continue;const _0x9295d1=_0x2f8565['attributes']['tablePasteChainId'];let _0x2dfc36=!0x0,_0x58df11=!0x0;for(const _0x2d7f2d of _0x5c5bee)if(_0x2d7f2d['subType']&&_0x2d7f2d['subType']['startsWith']('tablePaste')){if(!_0x2d7f2d['attributes']['tablePasteChainId']){_0x58df11=!0x1;break;}if(_0x2d7f2d['id']!=_0x2f8565['id']&&_0x2d7f2d['attributes']['tablePasteChainId']==_0x9295d1){_0x2dfc36=!0x1;break;}}_0x58df11&&_0x2dfc36&&(_0x2f8565['removeMarkers'](),_0x3db2b4=!0x0);}}for(const _0x2fdeed of _0x4eba05)_0x48fe8f['remove'](_0x2fdeed);for(const _0x61a70c of _0x2f7561)_0x48fe8f['unwrap'](_0x61a70c);return _0x3db2b4;}),_0x544984['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x5a287b=>_0xc924c3(_0x5a287b),'converterPriority':'high'}),_0x544984['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6bee22,_0x4a95ba)=>_0x4a95ba['options']['showSuggestionHighlights']?_0xc924c3(_0x6bee22,!0x1):null,'converterPriority':'high'});const _0x55939c=_0x544984['editing']['view'];this['listenTo'](_0x55939c['document'],'clipboardOutput',(_0x161baf,_0x24a8cb)=>{const _0x38e2db=[];for(const _0x4d9357 of _0x55939c['createRangeIn'](_0x24a8cb['content'])['getItems']())_0x4d9357['is']('element','suggestion-td')&&_0x38e2db['push'](_0x4d9357);_0x55939c['change'](_0x2cf78b=>{for(const _0x3ad70c of _0x38e2db)_0x2cf78b['move'](_0x2cf78b['createRangeIn'](_0x3ad70c),_0x2cf78b['createPositionBefore'](_0x3ad70c)),_0x2cf78b['remove'](_0x3ad70c);});});}}function De(_0x566597){if(_0x566597['isEmpty'])return!0x0;const _0x418d91=_0x566597['getChild'](0x0);return _0x418d91['is']('element','paragraph')&&_0x418d91['isEmpty'];}function He(_0x3e21ed,_0x12ae26={},_0x435c3f){for(const {isAnchor:_0x8ab92d,cellHeight:_0x3f21fc,cellWidth:_0x5b4b7d}of _0x435c3f['createTableWalker'](_0x3e21ed,{'includeAllSlots':!0x0,..._0x12ae26}))if(!_0x8ab92d||0x1!=_0x3f21fc||0x1!=_0x5b4b7d)return!0x1;return!0x0;}class Bt extends _0x48ff0c{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x4601c7=this['editor']['plugins']['get']('TrackChangesEditing');_0x4601c7['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x4601c7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x4601c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4601c7['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x4601c7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x4601c7['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xa87fd,_0x59a30c){const _0x5b1e36=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d296c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4a533a=_0x59a30c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58fc80=_0x2d296c['getColumnGroupElement'](_0x4a533a);let _0x2d76c1=_0x58fc80?_0x2d296c['getTableColumnsWidths'](_0x58fc80):null,_0x1cc579=_0x4a533a['getAttribute']('tableWidth')||null;const _0x3a0bcf=_0x59a30c['tableWidth']||_0x1cc579,_0xa1d545=_0x59a30c['columnWidths']||_0x2d76c1,_0x728515=this['editor']['plugins']['get']('Users')['me'];for(const _0xdb1e85 of _0x5b1e36['getSuggestions']()){const _0x5a6352=_0xdb1e85['getContainedElement']();if('resizeTable'===_0xdb1e85['subType']&&_0x5a6352===_0x4a533a){_0xdb1e85['author']!==_0x728515&&_0xdb1e85['discard']();const _0x2c4142=_0xdb1e85['data']['commandParams'];_0x1cc579=_0x2c4142[0x0]['tableWidth'],_0x2d76c1=_0x2c4142[0x0]['columnWidths'];break;}}_0xa87fd({'table':_0x4a533a,'tableWidth':_0x3a0bcf,'columnWidths':_0xa1d545}),_0x5b1e36['markBlockFormat'](_0x4a533a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1cc579,'columnWidths':_0x2d76c1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x7744bf){if('formatBlock'!=_0x7744bf['type']&&'formatInline'!=_0x7744bf['type'])return;const {data:_0x9666ef}=_0x7744bf;if(_0x9666ef&&'resizeTable'===_0x9666ef['formatGroupId']){const _0x3d5e06='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x3d5e06)};}}}class Ot extends _0x48ff0c{['afterInit'](){const _0x45b60b=this['editor'];_0x45b60b['plugins']['has']('Template')&&_0x45b60b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x48ff0c{['afterInit'](){const _0x71e80a=this['editor'];if(!_0x71e80a['commands']['get']('insertTableOfContents'))return;_0x71e80a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x55ae27=_0x71e80a['plugins']['get']('TrackChangesEditing'),_0x63f15b=_0x71e80a['locale'];_0x55ae27['descriptionFactory']['registerElementLabel']('tableOfContents',_0x42ed11=>c(_0x63f15b,'ELEMENT_TABLE_OF_CONTENTS',_0x42ed11));}}class xt extends _0x48ff0c{['afterInit'](){const _0x40bee6=this['editor'];if(!_0x40bee6['plugins']['has']('Title'))return;const _0x342c5e=_0x40bee6['plugins']['get']('TrackChangesEditing');_0x342c5e['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x40bee6['locale'],'ELEMENT_TITLE')),_0x40bee6['model']['document']['registerPostFixer'](_0x1da224=>{let _0x35d7ce=!0x1;const _0x1730a4=Array['from'](_0x40bee6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c3ea6,data:_0x5487de}of _0x1730a4){const {group:_0x5c1734}=_0x342c5e['_splitMarkerName'](_0x5c3ea6);if('suggestion'!==_0x5c1734||!_0x5487de['newRange'])continue;const _0xddbdb9=_0x5487de['newRange'],_0x4e96ac=_0xddbdb9['end']['nodeBefore'];if(!_0x4e96ac||!_0x4e96ac['is']('element','title-content'))continue;if(!_0xddbdb9['start']['isTouching'](_0xddbdb9['end']))continue;const _0x52153b=_0x40bee6['model']['schema']['getNearestSelectionRange'](_0xddbdb9['end'],'forward');if(_0x52153b&&_0x52153b['isCollapsed']){const _0x11de8c=_0x1da224['createRange'](_0xddbdb9['start'],_0x52153b['start']);_0x11de8c['isEqual'](_0xddbdb9)||(_0x1da224['updateMarker'](_0x5c3ea6,{'range':_0x11de8c}),_0x35d7ce=!0x0);}_0x35d7ce||(_0x1da224['removeMarker'](_0x5c3ea6),_0x35d7ce=!0x0);}return _0x35d7ce;});}}class Tt extends _0x48ff0c{['afterInit'](){const _0x487669=this['editor'],_0x10d94d=_0x487669['plugins']['get']('TrackChangesEditing');_0x487669['plugins']['has']('Uploadcare')&&(_0x10d94d['enableCommand']('uploadcare'),_0x487669['plugins']['has']('UploadcareImageEdit')&&(_0x10d94d['enableCommand']('uploadcareImageEdit'),_0x10d94d['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x10d94d['registerBlockAttribute']('uploadcareImageId'),_0x10d94d['descriptionFactory']['registerDescriptionCallback'](_0x392e47=>{if('attribute'!=_0x392e47['type'])return;const {data:_0x37a00b}=_0x392e47;return _0x37a00b&&'uploadcareImageId'==_0x37a00b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x48ff0c{['afterInit'](){const _0xc9491a=this['editor'],_0x50914e=_0xc9491a['plugins']['get']('TrackChangesEditing');_0xc9491a['plugins']['has']('UndoEditing')&&(_0x50914e['enableCommand']('undo'),_0x50914e['enableCommand']('redo'));}}class Ut extends _0x48ff0c{static get['requires'](){return[Ct];}['afterInit'](){const _0xf3437d=this['editor'];if(!_0xf3437d['plugins']['has']('TableCaptionEditing'))return;_0xf3437d['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x48ff0c{['tableProperties'];['tableCellProperties'];constructor(_0x16e312){super(_0x16e312),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 _0x2f50c3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1abc45 of this['tableProperties'])_0x2f50c3['enableCommand'](_0x1abc45,(_0x1c9bc5,_0xe5acc9)=>{const _0x63e08a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1abc45,[_0x63e08a],this['tableProperties'],'tableProperties',_0x1c9bc5,_0xe5acc9);});_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2f50c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x295b12,_0x31de80)=>this['handleDiscardAction'](this['tableProperties'],_0x295b12,_0x31de80)),_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x4117a1 of this['tableCellProperties'])_0x2f50c3['enableCommand'](_0x4117a1,(_0x3556eb,_0xdcbc58)=>{const _0x21b679=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x4117a1,_0x21b679,this['tableCellProperties'],'tableCellProperties',_0x3556eb,_0xdcbc58);});_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2f50c3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3eb672,_0x5f4bab)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3eb672,_0x5f4bab)),_0x2f50c3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2f50c3['descriptionFactory']['registerDescriptionCallback'](_0x41fda3=>this['handleSuggestionDescription'](_0x41fda3));}['_handlePropertyChange'](_0x1bd5b7,_0x1cebc0,_0x2d356c,_0x386eaa,_0x550a7c,_0x21f1ff){const _0x2ae25a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x21f1ff['batch'],()=>{for(const _0x27a426 of _0x1cebc0){if(this['_getSuggestion'](_0x27a426,_0x386eaa))_0x550a7c(_0x21f1ff);else{const _0x4ab8d9={};for(const _0x436a0b of _0x2d356c){const _0xee41ef=_0x27a426['getAttribute'](_0x436a0b);void 0x0!==_0xee41ef&&(_0x4ab8d9[_0x436a0b]=_0xee41ef);}_0x550a7c(_0x21f1ff),_0x2ae25a['markBlockFormat'](_0x27a426,{'commandParams':[_0x4ab8d9]},[],_0x386eaa);}}});}['handleDiscardAction'](_0x1de8bb,_0x2e00bb,_0x4f924c){const _0x428dce=_0x2e00bb[0x0]['start']['nodeAfter'],_0xed400b=_0x4f924c['commandParams'][0x0];this['editor']['model']['change'](_0x198524=>{for(const _0x476218 of _0x1de8bb)void 0x0!==_0xed400b[_0x476218]?_0x198524['setAttribute'](_0x476218,_0xed400b[_0x476218],_0x428dce):_0x198524['removeAttribute'](_0x476218,_0x428dce);});}['handleSuggestionDescription'](_0x3660f4){if(_0x3660f4['data'])switch(_0x3660f4['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3b26ea,_0x30967e){const _0x445f09=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2c41cc of _0x445f09['getSuggestions']({'skipNotAttached':!0x0})){const _0x65df0f=_0x2c41cc['getContainedElement']();if(_0x2c41cc['subType']===_0x30967e&&_0x65df0f===_0x3b26ea)return _0x2c41cc;}return null;}}const u='$elementName';class p extends _0x48ff0c{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x27c4c5,_0x3786e5,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,it,nt,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,mt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x43857a){super(_0x43857a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4e1feb,_0x31f3b9,_0x420517,_0x458726)=>{this['_model']['change'](()=>{for(const _0x3013e6 of[..._0x458726,..._0x420517])this['_model']['markers']['has'](_0x3013e6)&&_0x43857a['editing']['reconvertMarker'](_0x3013e6);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x43857a['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x43857a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x43857a['config']['get']('trackChanges.trackFormatChanges'),_0x43857a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x43857a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x43857a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ff064=this['editor'],_0x565e8d=(_0x26409a,_0x114bec)=>{if('attribute'!=_0x26409a)return'ck-suggestion-marker-'+_0x26409a;const _0x5caf6f=_0x114bec['split']('|')[0x0];return this['_isBlockAttribute'](_0x5caf6f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4ff064['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2cb4b4=>{const {id:_0x195a5a,authorId:_0x127d25,type:_0x118a59,subType:_0x11d1ef}=this['_splitMarkerName'](_0x2cb4b4['markerName']),_0x11bed4=['ck-suggestion-marker',_0x565e8d(_0x118a59,_0x11d1ef)];let _0x58f952=0xbb8;return this['activeMarkers']['includes'](_0x2cb4b4['markerName'])&&(_0x11bed4['push']('ck-suggestion-marker--active'),_0x58f952=0xbc2),'deletion'==_0x118a59&&(_0x58f952+=0x5),{'classes':_0x11bed4,'attributes':{'data-suggestion':_0x195a5a,'data-author-id':_0x127d25},'priority':_0x58f952};}}),_0x4ff064['conversion']['for']('dataDowncast')['add'](_0x5bbe75=>{_0x5bbe75['on']('addMarker:suggestion',(_0x265af6,_0x350001,_0xdb4b04)=>{if(!_0xdb4b04['options']['showSuggestionHighlights'])return;const _0x361d33=_0x350001['item'];if(!_0x361d33)return;const _0x76694a=_0xdb4b04['mapper']['toViewElement'](_0x361d33);_0x4ff064['model']['schema']['isObject'](_0x361d33)&&_0x76694a&&!_0x76694a['getCustomProperty']('widget')&&_0x76694a['is']('containerElement')&&_0x5b3515(_0x76694a,_0xdb4b04['writer']);},{'priority':'high'});}),_0x4ff064['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x25316c,_0x5b8b2b)=>{if(!_0x5b8b2b['options']['showSuggestionHighlights'])return null;const {id:_0x37b4a2,authorId:_0x5a5f7f,type:_0x1deaae,subType:_0xcfc64b}=this['_splitMarkerName'](_0x25316c['markerName']);return{'classes':['ck-suggestion-marker',_0x565e8d(_0x1deaae,_0xcfc64b)],'priority':0xbb8,'attributes':{'data-suggestion':_0x37b4a2,'data-author-id':_0x5a5f7f}};}});const _0x8cec98=({showActiveMarkers:_0x24dfa0=!0x0,isAttributeSuggestion:_0x31c22d=!0x1}={})=>(_0x332065,_0x27de93,_0x299195)=>{if(!_0x27de93['item'])return;const {id:_0x3b2b52,authorId:_0xbbd7af}=this['_splitMarkerName'](_0x27de93['markerName']);if(_0x31c22d){const _0xdafda=this['_suggestions']['get'](_0x3b2b52),_0x3a8300=this['_getAttributeKey'](_0xdafda);if(!this['_isBlockAttribute'](_0x3a8300))return;}if(_0x27de93['item']['is']('selection'))return void _0x299195['consumable']['consume'](_0x27de93['item'],_0x332065['name']);const _0x34f4e4=_0x299195['mapper']['toViewElement'](_0x27de93['item']);if(_0x27de93['item']['is']('element')&&_0x4ff064['model']['schema']['isBlock'](_0x27de93['item'])&&!_0x34f4e4['getCustomProperty']('addHighlight')){_0x299195['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x34f4e4),_0x299195['writer']['setAttribute']('data-suggestion',_0x3b2b52,_0x34f4e4),_0x299195['writer']['setAttribute']('data-author-id',_0xbbd7af,_0x34f4e4),_0x299195['mapper']['bindElementToMarker'](_0x34f4e4,_0x27de93['markerName']),_0x24dfa0&&(this['activeMarkers']['includes'](_0x27de93['markerName'])?_0x299195['writer']['addClass']('ck-suggestion-marker--active',_0x34f4e4):_0x299195['writer']['removeClass']('ck-suggestion-marker--active',_0x34f4e4));for(const _0x8f793b of _0x4ff064['model']['createRangeIn'](_0x27de93['item'])['getItems']())_0x299195['consumable']['consume'](_0x8f793b,_0x332065['name']);_0x299195['consumable']['consume'](_0x27de93['item'],_0x332065['name']);}};_0x4ff064['conversion']['for']('dataDowncast')['add'](_0x1d55cd=>{_0x1d55cd['on']('addMarker:suggestion:formatBlock',(_0x4168da,_0x9900ed,_0xfa11ce)=>{_0xfa11ce['options']['showSuggestionHighlights']&&_0x8cec98({'showActiveMarkers':!0x1})(_0x4168da,_0x9900ed,_0xfa11ce);},{'priority':'highest'});}),_0x4ff064['conversion']['for']('dataDowncast')['add'](_0xbd7ed8=>{_0xbd7ed8['on']('addMarker:suggestion:attribute',(_0x5e9c93,_0x5448f1,_0x269eb0)=>{_0x269eb0['options']['showSuggestionHighlights']&&_0x8cec98({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5e9c93,_0x5448f1,_0x269eb0);},{'priority':'highest'});}),_0x4ff064['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x42ec3f,_0x5677ff)=>{if(_0x5677ff['options']['showSuggestionHighlights']){const {id:_0x3d694f,authorId:_0x1e3c25}=this['_splitMarkerName'](_0x42ec3f);return _0x42ec3f['includes'](':split')||_0x42ec3f['includes'](':merge')?{'group':'suggestion','name':_0x42ec3f['substr'](0xb),'attributes':{'data-suggestion':_0x3d694f,'data-author-id':_0x1e3c25}}:null;}return{'group':'suggestion','name':_0x42ec3f['substr'](0xb)};}}),_0x4ff064['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5ee260,{writer:_0x38c252})=>{let _0x4d8250='suggestion:'+_0x5ee260['getAttribute']('suggestion-type')+':'+_0x5ee260['getAttribute']('id');return _0x5ee260['getAttribute']('marker-count')&&(_0x4d8250+=':'+_0x5ee260['getAttribute']('marker-count')),_0x38c252['createElement']('$marker',{'data-name':_0x4d8250});}}),_0x4ff064['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ff064['conversion']['for']('editingDowncast')['add'](_0x2af256=>{_0x2af256['on']('addMarker:suggestion:formatBlock',_0x8cec98(),{'priority':'high'});}),_0x4ff064['conversion']['for']('editingDowncast')['add'](_0x111ac1=>{_0x111ac1['on']('addMarker:suggestion:attribute',_0x8cec98({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4ff064['conversion']['for']('editingDowncast')['add'](_0x10a514=>{_0x10a514['on']('removeMarker:suggestion:formatBlock',(_0x364c7a,_0x188617,_0x149f08)=>{const _0x51fbc0=_0x149f08['mapper']['markerNameToElements'](_0x188617['markerName']);if(_0x51fbc0){for(const _0xd8d7fa of _0x51fbc0)_0xd8d7fa['getCustomProperty']('addHighlight')||(_0x149f08['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xd8d7fa),_0x149f08['writer']['removeAttribute']('data-suggestion',_0xd8d7fa),_0x149f08['writer']['removeAttribute']('data-author-id',_0xd8d7fa),_0x149f08['mapper']['unbindElementFromMarkerName'](_0xd8d7fa,_0x188617['markerName']));}},{'priority':'high'});}),_0x4ff064['conversion']['for']('editingDowncast')['add'](_0x659740=>{_0x659740['on']('removeMarker:suggestion:attribute',(_0x19b950,_0x54f509,_0x384352)=>{const _0x1de386=_0x384352['mapper']['markerNameToElements'](_0x54f509['markerName']);if(!_0x1de386)return;const {id:_0x38e5fe}=this['_splitMarkerName'](_0x54f509['markerName']),_0x5d0579=this['_suggestions']['get'](_0x38e5fe),_0x41ee73=this['_getAttributeKey'](_0x5d0579);if(this['_isBlockAttribute'](_0x41ee73)){for(const _0x412066 of _0x1de386)_0x412066['getCustomProperty']('addHighlight')||(_0x384352['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x412066),_0x384352['writer']['removeAttribute']('data-suggestion',_0x412066),_0x384352['writer']['removeAttribute']('data-author-id',_0x412066),_0x384352['mapper']['unbindElementFromMarkerName'](_0x412066,_0x54f509['markerName']));}},{'priority':'high'});}),_0x4ff064['model']['document']['registerPostFixer'](_0x422ff2=>{let _0x55be84=!0x1;const _0x16dcf1=Array['from'](_0x4ff064['model']['document']['differ']['getChangedMarkers']()),_0x4aec9a=new Set();for(const {name:_0x2c90aa,data:_0x9080a2}of _0x16dcf1){const {group:_0x1a6f00,type:_0x299b67,subType:_0xad9956,id:_0x11c223}=this['_splitMarkerName'](_0x2c90aa);if('suggestion'!==_0x1a6f00)continue;const _0x4252b9=this['_suggestions']['get'](_0x11c223);if(null!=_0x9080a2['newRange']){'formatInline'==_0x299b67&&(_0x55be84=_0x55be84||Jt(_0x9080a2['newRange'],_0x2c90aa,_0x422ff2,_0x4ff064['model']['schema']));const _0x34e865='attribute'==_0x299b67&&this['_isBlockAttribute'](_0xad9956['split']('|')[0x0]);if(_0x9080a2['newRange']['isCollapsed']||'$graveyard'==_0x9080a2['newRange']['root']['rootName']||'formatBlock'==_0x299b67&&!Ht(_0x9080a2['newRange'])||_0x34e865&&!Ht(_0x9080a2['newRange'])||'deletion'==_0x299b67&&!(!Lt(_0x1e2817=_0x9080a2['newRange'])&&!function(_0x1d575b){return _0x1d575b['start']['parent']==_0x1d575b['end']['nodeBefore']&&_0x1d575b['start']['isAtEnd'];}(_0x1e2817)))_0x422ff2['removeMarker'](_0x2c90aa),_0x55be84=!0x0;else{if(!_0x4252b9||!_0x4252b9['isInContent'])continue;if(_0x9080a2['newRange']&&_0x9080a2['oldRange']&&_0x9080a2['newRange']['isEqual'](_0x9080a2['oldRange']))continue;_0x4aec9a['add'](_0x4252b9);}}}var _0x1e2817;return _0x4aec9a['size']>0x0&&(_0x55be84=!!this['_joinWithAdjacentSuggestions'](_0x4aec9a)||_0x55be84),_0x55be84;}),_0x4ff064['model']['document']['registerPostFixer'](_0x577f82=>{let _0x447260=!0x1;for(const _0x419687 of _0x4ff064['model']['document']['differ']['getChanges']())if('insert'==_0x419687['type'])for(const _0x3a82c5 of this['_suggestions']['values']()){if(_0x3a82c5['isMultiRange']||!_0x3a82c5['isInContent'])continue;const _0x2666f4='formatBlock'==_0x3a82c5['type'],_0x36c290=this['_getAttributeKey'](_0x3a82c5),_0x2359ba=_0x36c290&&this['_isBlockAttribute'](_0x36c290);if(!_0x2666f4&&!_0x2359ba)continue;const _0x5caa29=_0x3a82c5['getFirstRange']();if(_0x5caa29['start']['parent']!=_0x5caa29['end']['parent']&&!_0x5caa29['end']['isAtEnd']){const _0xc1041=_0x4ff064['model']['createPositionAt'](_0x5caa29['start']['nodeAfter'],'end'),_0x40e6b9=_0x4ff064['model']['createRange'](_0x5caa29['start'],_0xc1041);_0x577f82['updateMarker'](_0x3a82c5['getFirstMarker'](),{'range':_0x40e6b9}),_0x447260=!0x0;}}return _0x447260;}),_0x4ff064['model']['document']['registerPostFixer'](_0xbd0ef0=>this['_processAttributeChanges'](_0xbd0ef0)),_0x4ff064['model']['document']['registerPostFixer'](_0x32c2e3=>!_0x32c2e3['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x32c2e3)),_0x4ff064['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ff064['model']['document']['on']('change:data',(_0x3f8b48,_0x1b3796)=>{if(!_0x1b3796['isLocal']||_0x1b3796['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xe1786b=_0x4ff064['model']['document']['differ']['getChanges']();if(0x0==_0xe1786b['length'])return;const _0x2b772f=[],_0x3ba409=_0xe1786b['filter'](_0x1b5005=>'attribute'==_0x1b5005['type']),_0x2e88f3=_0xe1786b['filter'](_0x54f6fb=>'insert'==_0x54f6fb['type']&&'$text'!=_0x54f6fb['name']);for(const _0x3a6a7a of _0x3ba409)this['_isRegisteredAttribute'](_0x3a6a7a['attributeKey'])&&_0x2b772f['push']({'key':_0x3a6a7a['attributeKey'],'newValue':_0x3a6a7a['attributeNewValue'],'oldValue':_0x3a6a7a['attributeOldValue'],'range':qt(_0x3a6a7a['range'],_0x4ff064['model'])});for(const _0x528438 of _0x2e88f3){if('rename'!=_0x528438['action']&&'refresh'!=_0x528438['action'])continue;const _0x52736b=zt(_0x528438['position']['nodeAfter'],_0x4ff064['model']),_0x54873a=_0x528438['before'];'rename'==_0x528438['action']&&_0x2b772f['push']({'key':u,'newValue':_0x528438['name'],'oldValue':_0x54873a['name'],'range':_0x52736b});for(const [_0x39a7e6,_0x5cb37b]of _0x54873a['attributes']){if(!this['_isRegisteredAttribute'](_0x39a7e6))continue;const _0x8ff71=_0x528438['attributes']['get'](_0x39a7e6);_0x5cb37b!==_0x8ff71&&_0x2b772f['push']({'key':_0x39a7e6,'newValue':_0x8ff71,'oldValue':_0x5cb37b,'range':_0x52736b});}for(const [_0x55d52b,_0xe67470]of _0x528438['attributes'])this['_isRegisteredAttribute'](_0x55d52b)&&(_0x54873a['attributes']['has'](_0x55d52b)||_0x2b772f['push']({'key':_0x55d52b,'newValue':_0xe67470,'oldValue':null,'range':_0x52736b}));}0x0!=_0x2b772f['length']&&_0x4ff064['model']['enqueueChange'](_0x1b3796,_0x341196=>{const _0x4fff8a=_0x2789d7();for(const {range:_0x5813de,key:_0x8a8ea7,oldValue:_0x36688c,newValue:_0x1d7200}of _0x2b772f)this['markAttributeChange'](_0x5813de,_0x8a8ea7,_0x36688c,_0x1d7200,{'groupId':_0x4fff8a});this['_reduceExistingSuggestions'](_0x341196,_0x2b772f);});},{'priority':'lowest'}),_0x4ff064['model']['markers']['on']('update:suggestion',(_0xa310fa,_0x18352e,_0x4c932c)=>{if(null==_0x4c932c){const {id:_0x424783}=this['_splitMarkerName'](_0x18352e['name']),_0x2bff4d=this['_suggestions']['get'](_0x424783);_0x2bff4d&&_0x2bff4d['addMarkerName'](_0x18352e['name']);}}),_0x4ff064['model']['document']['on']('change:data',()=>{const _0x1276c4=Array['from'](_0x4ff064['model']['document']['differ']['getChangedMarkers']())['filter'](_0x255195=>'suggestion'===this['_splitMarkerName'](_0x255195['name'])['group']);if(0x0===_0x1276c4['length'])return;_0x1276c4['sort']((_0x1c72e4,_0x3d4de4)=>{const _0x375a94=_0x1c72e4['data']['oldRange'],_0x220709=_0x3d4de4['data']['oldRange'];return null===_0x375a94&&null===_0x220709?0x0:null===_0x375a94&&null!==_0x220709?-0x1:null!==_0x375a94&&null===_0x220709?0x1:_0x375a94['start']['isBefore'](_0x220709['start'])?-0x1:0x1;});const _0x1c34da=new Set(),_0x1b9d5b=new Set();for(const {name:_0x2e4ee3,data:_0xa32866}of _0x1276c4){const {id:_0x5c5812}=this['_splitMarkerName'](_0x2e4ee3);if(null===_0xa32866['oldRange']){const _0xa2a714=this['_handleNewSuggestionMarker'](_0x2e4ee3);_0x1b9d5b['add'](_0xa2a714);}else{const _0x40df55=this['_suggestions']['get'](_0x5c5812);null!==_0xa32866['newRange']||_0x40df55['isInContent']?(_0x1c34da['add'](_0x40df55['head']),_0x1b9d5b['add'](_0x40df55)):this['_removeSuggestion'](_0x40df55);}}_0x1b9d5b['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b9d5b);for(const _0x128f3d of _0x1c34da)this['fire']('suggestionChanged',_0x128f3d);}),_0x4ff064['model']['on']('applyOperation',(_0x2a2212,_0x11e9dc)=>{const _0x5e9bdf=_0x11e9dc[0x0];if(!this['_suggestions']['size'])return;if(!_0x5e9bdf['isDocumentOperation'])return;if(_0x5e9bdf['batch']['isUndo']||!_0x5e9bdf['batch']['isLocal'])return;let _0x4b54c5,_0x70838;switch(_0x5e9bdf['type']){case'insert':_0x4b54c5=_0x4ff064['model']['createPositionAt'](_0x5e9bdf['position']),_0x70838=_0x4b54c5['getShiftedBy'](_0x5e9bdf['howMany']);break;case'split':_0x4b54c5=_0x4ff064['model']['createPositionAt'](_0x5e9bdf['splitPosition']),_0x70838=_0x4ff064['model']['createPositionAt'](_0x5e9bdf['moveTargetPosition']);break;case'move':_0x4b54c5=_0x4ff064['model']['createPositionAt'](_0x5e9bdf['targetPosition']),_0x70838=_0x4b54c5['getShiftedBy'](_0x5e9bdf['howMany']);break;default:return;}const _0x49a96a=_0x4ff064['model']['createRange'](_0x4b54c5,_0x70838);_0x4ff064['model']['change'](()=>{for(const {suggestion:_0x269f3f,meta:_0x131ffb}of this['_findSuggestions'](_0x49a96a)){if(_0x269f3f['isMultiRange'])continue;if('formatInline'==_0x269f3f['type'])continue;const _0x351e10=this['_getAttributeKey'](_0x269f3f);if(_0x351e10&&this['_isBlockAttribute'](_0x351e10)&&'split'!=_0x5e9bdf['type'])continue;const _0x29ad45=_0x269f3f['data']&&_0x269f3f['data']['multipleBlocks'];('formatBlock'!=_0x269f3f['type']||'split'==_0x5e9bdf['type']&&!_0x29ad45)&&(_0x131ffb['containsRangeInObject']||'insertion'==_0x269f3f['type']&&_0x131ffb['isOwn']||_0x269f3f['getFirstRange']()['containsRange'](_0x49a96a)&&this['_breakSuggestionMarker'](_0x269f3f,_0x4b54c5,_0x70838));}});},{'priority':'lowest'}),_0x4ff064['model']['on']('deleteContent',(_0x312cf9,_0x4fd65c)=>{const _0x113023=_0x4fd65c[0x0],_0x4f6e8d=_0x4fd65c[0x1];if(_0x4f6e8d&&_0x4f6e8d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x113023['isCollapsed'])return;const _0x45d2d7=_0x4ff064['model']['schema'],{start:_0x1d89e9,end:_0x1507f6}=_0x113023['getFirstRange'](),_0x3e5484=_0x1d89e9['nodeAfter']&&_0x45d2d7['isLimit'](_0x1d89e9['nodeAfter'])?null:_0x45d2d7['getNearestSelectionRange'](_0x1d89e9,'forward'),_0x2c9fea=_0x1507f6['nodeBefore']&&_0x45d2d7['isLimit'](_0x1507f6['nodeBefore'])?null:_0x45d2d7['getNearestSelectionRange'](_0x1507f6,'backward'),_0xb3d5f7=_0x4ff064['model']['createRange'](_0x3e5484?_0x3e5484['start']:_0x1d89e9,_0x2c9fea?_0x2c9fea['end']:_0x1507f6);_0x4ff064['model']['change'](_0x25ec83=>{this['markDeletion'](_0xb3d5f7);const _0x2d5220=_0x4ff064['model']['schema']['getNearestSelectionRange'](_0xb3d5f7['start']);_0x113023['is']('documentSelection')?_0x25ec83['setSelection'](_0x2d5220):_0x113023['setTo'](_0x2d5220);}),_0x312cf9['stop']();},{'priority':_0x45b1e2['normal']+0xa}),_0x4ff064['model']['on']('insertContent',(_0x4026f3,_0x31a1ea)=>{const _0x1f1404=_0x31a1ea[_0x31a1ea['length']-0x1];_0x1f1404&&_0x1f1404['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ff064['model']['change'](()=>{let _0x16df6d=_0x4ff064['model']['insertContent'](_0x31a1ea[0x0],_0x31a1ea[0x1],_0x31a1ea[0x2],{'forceDefaultExecution':!0x0});if(!_0x16df6d)return;_0x4026f3['return']=_0x16df6d['clone']();const _0x560536=_0x16df6d['end']['nodeBefore'],_0x28723b=_0x4ff064['model']['schema'];_0x560536&&_0x28723b['isBlock'](_0x560536)&&!_0x28723b['isObject'](_0x560536)&&(_0x16df6d=_0x4ff064['model']['createRange'](_0x16df6d['start'],_0x4ff064['model']['createPositionAt'](_0x560536,'end'))),this['markInsertion'](_0x16df6d);}),_0x4026f3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2033a3=new O(_0x4ff064,this['_suggestions']);_0x4ff064['commands']['add']('acceptSuggestion',_0x2033a3),this['enableCommand']('acceptSuggestion');const _0x2b0efb=new R(_0x4ff064,this['_suggestions']);_0x4ff064['commands']['add']('discardSuggestion',_0x2b0efb),this['enableCommand']('discardSuggestion'),_0x4ff064['commands']['add']('acceptAllSuggestions',new x(_0x4ff064,_0x2033a3,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ff064['commands']['add']('discardAllSuggestions',new x(_0x4ff064,_0x2b0efb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ff064['commands']['add']('acceptSelectedSuggestions',new E(_0x4ff064,_0x2033a3,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ff064['commands']['add']('discardSelectedSuggestions',new E(_0x4ff064,_0x2b0efb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x51a38c=_0x4ff064['plugins']['get']('CommentsRepository');this['listenTo'](_0x51a38c,'addComment',(_0x23f263,{threadId:_0x4d9351})=>{const _0x500cad=this['_suggestions']['get'](_0x4d9351);_0x500cad&&_0x500cad['commentThread']&&0x1===_0x500cad['commentThread']['length']&&this['_updateSuggestionData'](_0x4d9351,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x51a38c,'removeComment',(_0x222e85,{threadId:_0x12b15e})=>{const _0x114479=this['_suggestions']['get'](_0x12b15e);_0x114479&&_0x114479['commentThread']&&!_0x114479['commentThread']['length']&&this['_updateSuggestionData'](_0x12b15e,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x5a12bf){const _0x2f5fa7=_0x6a0350([0x56,0x42,0x51,0x47,0x54,0x6a,0x78,0x39,0x76,0x4d,0x6b,0x61,0x33,0x59,0x64,0x4b,0x6e,0x30,0x6c,0x77,0x46,0x45,0x65,0x43,0x55,0x6d,0x4c,0x73,0x52,0x41,0x31,0x37,0x49,0x58,0x62,0x34,0x71,0x36,0x67,0x4a,0x57,0x4f,0x68,0x66,0x72,0x70,0x79,0x38,0x53,0x50,0x7a,0x32,0x4e,0x75,0x74,0x69,0x44,0x6f,0x48,0x63,0x5a,0x35]),_0x2f4583=0x5a9889d8,_0x4ff787=0x5a9fef20^_0x2f4583,_0x4fdc08=window[_0x6a0350([0x44,0x61,0x74,0x65])][_0x6a0350([0x6e,0x6f,0x77])](),_0x4e6f6e=_0x5a12bf[_0x6a0350([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2416c8=new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f0213=>{_0x4e6f6e[_0x6a0350([0x6f,0x6e,0x63,0x65])](_0x6a0350([0x72,0x65,0x61,0x64,0x79]),_0x1f0213);}),_0x1c705f={[_0x6a0350([0x6b,0x74,0x79])]:_0x6a0350([0x45,0x43]),[_0x6a0350([0x75,0x73,0x65])]:_0x6a0350([0x73,0x69,0x67]),[_0x6a0350([0x63,0x72,0x76])]:_0x6a0350([0x50,0x2d,0x32,0x35,0x36]),[_0x6a0350([0x78])]:_0x6a0350([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]),[_0x6a0350([0x79])]:_0x6a0350([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]),[_0x6a0350([0x61,0x6c,0x67])]:_0x6a0350([0x45,0x53,0x32,0x35,0x36])},_0xa175b9=_0x4e6f6e[_0x6a0350([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6a0350([0x67,0x65,0x74])](_0x6a0350([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa3dc1e(){let _0x1b912d,_0x5e8436=null,_0x49cbe6=null;try{if(_0xa175b9==_0x6a0350([0x47,0x50,0x4c]))return _0x6a0350([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1b912d=_0x144637(),!_0x1b912d)return _0x6a0350([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1b912d[_0x6a0350([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49cbe6=_0x1c624a(_0x1b912d[_0x6a0350([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1b912d[_0x6a0350([0x6a,0x74,0x69])])),await _0x10203d()?_0x1a243f()?_0x5a4c3c()?_0x6a0350([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x31577b()?(_0x1b912d[_0x6a0350([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6a0350([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e8436=_0x31bdf5(_0x6a0350([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1b912d[_0x6a0350([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6a0350([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e8436=_0x31bdf5(_0x6a0350([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xa0dadc()):_0x6a0350([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6a0350([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6a0350([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3dd0fc){return _0x6a0350([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a4c3c(){const _0x4c80de=[_0x6a0350([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6a0350([0x74,0x72,0x69,0x61,0x6c])][_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b912d[_0x6a0350([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4fdc08/0x3e8:0xe10*_0x4ff787;return _0x1b912d[_0x6a0350([0x65,0x78,0x70])]<_0x4c80de;}function _0x1a243f(){const _0x6ecb28=_0x1b912d[_0x6a0350([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6ecb28)return!0x1;if(_0x6ecb28[_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a0350([0x2a])))return!0x0;if(_0x6ecb28[_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a0350([0x54,0x43])))return!0x0;if(_0x6ecb28[_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a0350([0x52,0x54,0x43]))){if(_0x22e0cb())return!0x0;if(_0x30bc0c()||_0x5bc1c7())return!0x0;}return!0x1;}function _0x31577b(){const _0x40f45f=_0x1b912d[_0x6a0350([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x40f45f||0x0==_0x40f45f[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4c1e62}=new URL(window[_0x6a0350([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x40f45f[_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4c1e62))return!0x0;const _0x4d9c7d=_0x4c1e62[_0x6a0350([0x73,0x70,0x6c,0x69,0x74])](_0x6a0350([0x2e]));return _0x40f45f[_0x6a0350([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5403d7=>_0x5403d7[_0x6a0350([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6a0350([0x2a])))[_0x6a0350([0x6d,0x61,0x70])](_0x44d02e=>_0x44d02e[_0x6a0350([0x73,0x70,0x6c,0x69,0x74])](_0x6a0350([0x2e])))[_0x6a0350([0x73,0x6f,0x6d,0x65])](_0x1654f0=>_0x4d9c7d[_0x6a0350([0x65,0x76,0x65,0x72,0x79])]((_0x1e0a57,_0x5d6c6e)=>_0x1654f0[_0x5d6c6e]===_0x1e0a57||_0x1654f0[_0x5d6c6e]===_0x6a0350([0x2a])));}function _0xa0dadc(){return _0x5e8436&&_0x49cbe6?new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x594b67,_0x104d6a)=>{_0x5e8436[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x594b67,_0x104d6a),_0x49cbe6[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x43353e=>{_0x43353e!=_0x6a0350([0x56,0x61,0x6c,0x69,0x64])&&_0x594b67(_0x43353e);},_0x104d6a);}):_0x5e8436||_0x49cbe6||_0x6a0350([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1c624a(_0x59f411,_0x9781d0){return new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cc774=>{if(_0x49d175())return _0x3cc774(_0x6a0350([0x56,0x61,0x6c,0x69,0x64]));_0x168160(),_0x4e6f6e[_0x6a0350([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6a0350([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5e80f4=!0x1;const _0x5915c5=_0x2789d7();function _0x5a1b4b(_0x293ad5){return!!_0x293ad5&&(typeof _0x293ad5===_0x6a0350([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x293ad5===_0x6a0350([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x293ad5[_0x6a0350([0x74,0x68,0x65,0x6e])]===_0x6a0350([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x293ad5[_0x6a0350([0x63,0x61,0x74,0x63,0x68])]===_0x6a0350([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x14ab01(_0x4bb136){_0x4cf39b(_0x4bb136)[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x560e0f=>{if(!_0x560e0f||_0x560e0f[_0x6a0350([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6a0350([0x6f,0x6b]))return _0x6a0350([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e5adc(_0x39c0e6(_0x5915c5+_0x9781d0))!=_0x560e0f[_0x6a0350([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6a0350([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6a0350([0x56,0x61,0x6c,0x69,0x64]);})[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x525593=>(_0x22946a(),_0x525593),()=>{const _0x2dc19c=_0xd179c5();return null==_0x2dc19c?(_0x22946a(),_0x6a0350([0x56,0x61,0x6c,0x69,0x64])):_0x6a0350(_0x4fdc08-_0x2dc19c>(0x7e940dd8^_0x2f4583)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x3cc774)[_0x6a0350([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3cc774(_0x6a0350([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x464968=0x5aae6758^_0x2f4583;function _0x22946a(){const _0x28c708=_0x6a0350([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e5adc(_0x39c0e6(_0x59f411)),_0x2a0eb5=_0x349957(_0x3e5adc(window[_0x6a0350([0x4d,0x61,0x74,0x68])][_0x6a0350([0x63,0x65,0x69,0x6c])](_0x4fdc08/_0x464968)));window[_0x6a0350([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6a0350([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28c708,_0x2a0eb5);}function _0xd179c5(){const _0x518410=_0x6a0350([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e5adc(_0x39c0e6(_0x59f411)),_0x4a3638=window[_0x6a0350([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6a0350([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x518410);return _0x4a3638?window[_0x6a0350([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x349957(_0x4a3638),0x10)*_0x464968:null;}function _0x4cf39b(_0x529801){return new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fb6e9,_0x1ce66d)=>{_0x529801[_0x6a0350([0x74,0x68,0x65,0x6e])](_0x2fb6e9,_0x1ce66d),window[_0x6a0350([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ce66d,0x5a995d18^_0x2f4583);});}}_0x4e6f6e[_0x6a0350([0x6f,0x6e])](_0x6a0350([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a330b,_0x1a4886)=>{if(_0x1a4886[0x0]!=_0x59f411)return _0x3cc774(_0x6a0350([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a4886[0x1]={..._0x1a4886[0x1],[_0x6a0350([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5915c5};},{[_0x6a0350([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6a0350([0x68,0x69,0x67,0x68])}),_0x4e6f6e[_0x6a0350([0x6f,0x6e])](_0x6a0350([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5f2cbc=>{_0x5a1b4b(_0x5f2cbc[_0x6a0350([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5e80f4=!0x0,_0x14ab01(_0x5f2cbc[_0x6a0350([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6a0350([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6a0350([0x6c,0x6f,0x77])}),_0x2416c8[_0x6a0350([0x74,0x68,0x65,0x6e])](()=>{_0x5e80f4||_0x3cc774(_0x6a0350([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x49d175(){return _0x4e6f6e[_0x6a0350([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6a0350([0x76,0x69,0x65,0x77])][_0x6a0350([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6a0350([0x61,0x75,0x74,0x6f]);}function _0x168160(){_0x4e6f6e[_0x6a0350([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6a0350([0x76,0x69,0x65,0x77])][_0x6a0350([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6a0350([0x61,0x75,0x74,0x6f]);}}function _0x31bdf5(_0x42cee9){const _0x34491c=[new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3faec5=>setTimeout(_0x3faec5,0x5a91b714^_0x2f4583)),_0x2416c8[_0x6a0350([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x566fb4=>{let _0x13211e=0x0;_0x4e6f6e[_0x6a0350([0x6d,0x6f,0x64,0x65,0x6c])][_0x6a0350([0x6f,0x6e])](_0x6a0350([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb98acb,_0x3bb4b4)=>{_0x3bb4b4[0x0][_0x6a0350([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x13211e++,_0x13211e==(0x5a988820^_0x2f4583)&&(_0x566fb4(),_0xb98acb[_0x6a0350([0x6f,0x66,0x66])]());});}))];return window[_0x6a0350([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6a0350([0x72,0x61,0x63,0x65])](_0x34491c)[_0x6a0350([0x74,0x68,0x65,0x6e])](()=>_0x42cee9);}async function _0x413f8f(){await _0x2416c8,_0x4e6f6e[_0x6a0350([0x6d,0x6f,0x64,0x65,0x6c])][_0x6a0350([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x460326,_0x4e6f6e[_0x6a0350([0x6d,0x6f,0x64,0x65,0x6c])][_0x6a0350([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x460326,_0x4e6f6e[_0x6a0350([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6a0350([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x22e0cb(){return _0x44a398(_0x6a0350([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x599a2d(_0x6a0350([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6a0350([0x73,0x74,0x61,0x74,0x65])]==_0x6a0350([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x30bc0c(){return _0x44a398(_0x6a0350([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 _0x5bc1c7(){return _0x44a398(_0x6a0350([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xd009d7(_0x274a7e){const _0x3ba72c=_0xb1a348();_0x4e6f6e[_0x3ba72c]=_0x6a0350([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x274a7e,_0x274a7e!=_0x6a0350([0x56,0x61,0x6c,0x69,0x64])&&_0x413f8f();}function _0xb1a348(){const _0x564f83=window[_0x6a0350([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6a0350([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6a0350([0x6e,0x6f,0x77])]())[_0x6a0350([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6a0350([0x2e]),'');let _0x577f7d=_0x6a0350([0x56]);for(let _0x3fb360=0x0;_0x3fb360<_0x564f83[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3fb360+=0x2){let _0x1490ec=window[_0x6a0350([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x564f83[_0x6a0350([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fb360,_0x3fb360+0x2));_0x1490ec>=_0x2f5fa7[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1490ec-=_0x2f5fa7[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x577f7d+=_0x2f5fa7[_0x1490ec];}return _0x577f7d;}function _0x144637(){const _0x1d320b=_0xa175b9[_0x6a0350([0x73,0x70,0x6c,0x69,0x74])](_0x6a0350([0x2e]));if(0x3!=_0x1d320b[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a8149(_0x1d320b[0x1]);function _0x5a8149(_0x6654e7){const _0x16f1f9=_0x1a2468(_0x6654e7);return _0x16f1f9&&_0x1c767e()?_0x16f1f9:null;function _0x1c767e(){const _0x22825b=_0x16f1f9[_0x6a0350([0x6a,0x74,0x69])],_0x27de40=window[_0x6a0350([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22825b[_0x6a0350([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22825b[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x23bf0b={..._0x16f1f9,[_0x6a0350([0x6a,0x74,0x69])]:_0x22825b[_0x6a0350([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x22825b[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x23bf0b[_0x6a0350([0x76,0x63])],_0x39c0e6(_0x23bf0b)==_0x27de40;}}}async function _0x10203d(){let _0x464069=!0x0;try{const _0x1b4e87=_0xa175b9[_0x6a0350([0x73,0x70,0x6c,0x69,0x74])](_0x6a0350([0x2e])),[_0xdad829,_0x2b1206,_0x5220ca]=_0x1b4e87;return _0x46ed1c(_0xdad829),await _0x3ce4aa(_0xdad829,_0x2b1206,_0x5220ca),_0x464069;}catch(_0x276ad7){return!0x1;}function _0x46ed1c(_0x3deb26){const _0x54c64c=_0x1a2468(_0x3deb26);_0x54c64c&&_0x54c64c[_0x6a0350([0x61,0x6c,0x67])]==_0x6a0350([0x45,0x53,0x32,0x35,0x36])||(_0x464069=!0x1);}async function _0x3ce4aa(_0x2cfe70,_0x5e23a9,_0x54ed32){const _0x4b02b3=window[_0x6a0350([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6a0350([0x66,0x72,0x6f,0x6d])](_0x277140(_0x54ed32),_0x22f796=>_0x22f796[_0x6a0350([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x404420=new window[(_0x6a0350([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6a0350([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cfe70+_0x6a0350([0x2e])+_0x5e23a9),_0x131ab1=window[_0x6a0350([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6a0350([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x131ab1)return;const _0x294136=await _0x131ab1[_0x6a0350([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6a0350([0x6a,0x77,0x6b]),_0x1c705f,{[_0x6a0350([0x6e,0x61,0x6d,0x65])]:_0x6a0350([0x45,0x43,0x44,0x53,0x41]),[_0x6a0350([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6a0350([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6a0350([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x131ab1[_0x6a0350([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6a0350([0x6e,0x61,0x6d,0x65])]:_0x6a0350([0x45,0x43,0x44,0x53,0x41]),[_0x6a0350([0x68,0x61,0x73,0x68])]:{[_0x6a0350([0x6e,0x61,0x6d,0x65])]:_0x6a0350([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x294136,_0x4b02b3,_0x404420)||(_0x464069=!0x1);}}function _0x1a2468(_0x3cfd43){return _0x3cfd43[_0x6a0350([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6a0350([0x65,0x79]))?JSON[_0x6a0350([0x70,0x61,0x72,0x73,0x65])](_0x277140(_0x3cfd43)):null;}function _0x277140(_0x3af3db){return window[_0x6a0350([0x61,0x74,0x6f,0x62])](_0x3af3db[_0x6a0350([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6a0350([0x2b]))[_0x6a0350([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6a0350([0x2f])));}function _0x39c0e6(_0x2af9ea){let _0x5b883a=0x1505;function _0x4c6ec5(_0x5c7468){for(let _0x36c1d3=0x0;_0x36c1d3<_0x5c7468[_0x6a0350([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36c1d3++){const _0x1289c9=_0x5c7468[_0x6a0350([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x36c1d3);_0x5b883a=(_0x5b883a<<0x5)+_0x5b883a+_0x1289c9,_0x5b883a&=_0x5b883a;}}function _0x125027(_0x348d17){Array[_0x6a0350([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x348d17)?_0x348d17[_0x6a0350([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x125027):_0x348d17&&typeof _0x348d17==_0x6a0350([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6a0350([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x348d17)[_0x6a0350([0x73,0x6f,0x72,0x74])]()[_0x6a0350([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x216832,_0x4ad7cc])=>{_0x4c6ec5(_0x216832),_0x125027(_0x4ad7cc);}):_0x4c6ec5(window[_0x6a0350([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x348d17));}return _0x125027(_0x2af9ea),_0x5b883a>>>0x0;}function _0x3e5adc(_0x4fb8d3){return _0x4fb8d3[_0x6a0350([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6a0350([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6a0350([0x30]));}function _0x349957(_0x249879){return _0x249879[_0x6a0350([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6a0350([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6a0350([0x6a,0x6f,0x69,0x6e])]('');}function _0x44a398(_0x52b4a9){return _0x4e6f6e[_0x6a0350([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6a0350([0x68,0x61,0x73])](_0x52b4a9);}function _0x599a2d(_0x8855fb){return _0x4e6f6e[_0x6a0350([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6a0350([0x67,0x65,0x74])](_0x8855fb);}function _0x460326(){}function _0x6a0350(_0x1e89d9){return _0x1e89d9['map'](_0x63b28d=>String['fromCharCode'](_0x63b28d))['join']('');}_0xd009d7(await _0xa3dc1e());}(this);}set['adapter'](_0x1333b2){if(this['_adapter'])throw new _0x3d4c39('track-changes-adapter-already-set',this);this['_adapter']=_0x1333b2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x46b7c9=!0x1,toJSON:_0x20f505=!0x1}={}){const _0x50cfe4=[];for(const _0x5897c9 of this['_suggestions']['values']())_0x46b7c9&&!_0x5897c9['isInContent']||_0x50cfe4['push'](_0x5897c9);return _0x20f505?_0x50cfe4['map'](_0x32f1e6=>_0x32f1e6['toJSON']()):_0x50cfe4;}['getSuggestion'](_0x5d9f83){const _0x4139ae=this['_suggestions']['get'](_0x5d9f83);if(!_0x4139ae)throw new _0x3d4c39('track-changes-suggestion-not-found',this);return _0x4139ae;}['hasSuggestion'](_0x18b05d){return this['_suggestions']['has'](_0x18b05d);}['addSuggestionData'](_0x45e19d){const {authorId:_0x536d6d,id:_0x4ac8c2,attributes:_0x2f4081}=_0x45e19d,[_0x10c7cf,_0x2728ca]=_0x45e19d['type']['split'](':'),_0x525db1=this['_suggestions']['get'](_0x4ac8c2)||this['_createSuggestion'](_0x10c7cf,_0x2728ca,_0x4ac8c2,_0x536d6d,_0x2f4081);if(this['_addThreadToSuggestion'](_0x525db1),this['_checkSuggestionCorrectness'](_0x525db1,_0x10c7cf,_0x2728ca||null,_0x536d6d),_0x525db1['createdAt']=_0x45e19d['createdAt'],_0x525db1['_isDataLoaded']=!0x0,_0x2f4081&&_0x2f4081['@external']){const _0x5a2c7c=_0x2f4081['@external'],_0x2a4eb6=this['_getExternalAuthor'](_0x5a2c7c['authorName']);_0x525db1['authoredAt']=_0x5a2c7c['createdAt'],_0x525db1['author']=_0x2a4eb6,_0x525db1['isExternal']=!0x0;}else _0x525db1['authoredAt']=_0x45e19d['createdAt'];switch(_0x45e19d['data']&&(_0x525db1['data']=_0x45e19d['data']),_0x45e19d['attributes']&&(_0x525db1['attributes']=_0x45e19d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x525db1['_saved']=!0x0),this['_suggestionState']['get'](_0x525db1)){case'notReady':this['_suggestionState']['set'](_0x525db1,'dataReady');break;case'markerReady':_0x525db1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x525db1])),this['_refreshSuggestionsChain'](new Set([_0x525db1])),this['_suggestionState']['set'](_0x525db1,'ready'),this['fire']('suggestionLoaded',_0x525db1)):this['_suggestionState']['set'](_0x525db1,'removed');}return _0x525db1;}['acceptSuggestion'](_0x5a2794){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1fa3a4 of _0x5a2794['getAllAdjacentSuggestions']())_0x1fa3a4['accept']();});});}['discardSuggestion'](_0x37627e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1d030c of _0x37627e['getAllAdjacentSuggestions']())_0x1d030c['discard']();});});}['enableCommand'](_0x270bd9,_0x27c08d){const _0x39b991=this['editor']['commands']['get'](_0x270bd9);if(!_0x39b991)throw new _0x3d4c39('track-changes-command-not-found',this,{'commandName':_0x270bd9});if(this['_enabledCommands']['has'](_0x39b991))throw new _0x3d4c39('track-changes-enable-command-twice',this,{'commandName':_0x270bd9});this['_enabledCommands']['add'](_0x39b991),_0x27c08d&&_0x39b991['on']('execute',(_0x32f290,_0x5b636c)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5b636c['length']>0x0&&_0x5b636c[_0x5b636c['length']-0x1]&&_0x5b636c[_0x5b636c['length']-0x1]['forceDefaultExecution']?_0x5b636c['pop']():(_0x32f290['return']=_0x27c08d((..._0x402752)=>_0x39b991['execute'](..._0x402752,{'forceDefaultExecution':!0x0}),..._0x5b636c),_0x32f290['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x50a51c){let _0x5816c0,_0x48d8aa;const _0x2aa202=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5816c0=_0x50a51c();}catch(_0x2b6a7d){_0x48d8aa=_0x2b6a7d;}return _0x2aa202||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x48d8aa&&_0x3d4c39['rethrowUnexpectedError'](_0x48d8aa,this),_0x5816c0;}['markInsertion'](_0x3b16f7,_0x587477=null,_0x17bff0={}){if(_0x3b16f7['isCollapsed'])return null;const _0x5e50fa=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x72a833,meta:_0x5d855b}of this['_findSuggestions'](_0x3b16f7,'insertion'))if(_0x5d855b['isOwn']){if(!_0x5d855b['isNextTo']){if(_0x5d855b['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x72a833,_0x17bff0))continue;return _0x72a833;}if(Xt(_0x72a833,_0x17bff0))return _0x72a833;this['_breakSuggestionMarker'](_0x72a833,_0x3b16f7['start'],_0x3b16f7['end']);break;}if(_0x587477==_0x72a833['subType']&&Xt(_0x72a833,_0x17bff0)){const _0x32273e=_0x72a833['getFirstRange']();return _0x32273e['start']['isEqual'](_0x3b16f7['end'])?this['_setSuggestionRange'](_0x72a833,this['_model']['createRange'](_0x3b16f7['start'],_0x32273e['end'])):this['_setSuggestionRange'](_0x72a833,this['_model']['createRange'](_0x32273e['start'],_0x3b16f7['end'])),_0x72a833;}}const _0x2c3650=_0x2789d7(),_0x571a59=_0x5e50fa['id'],_0x3bc3e7=_0x587477?'insertion:'+_0x587477:'insertion',_0x150c30=this['_setSuggestionData']({'id':_0x2c3650,'type':_0x3bc3e7,'createdAt':new Date(),'authorId':_0x571a59,'attributes':_0x17bff0});return this['_addSuggestionMarker'](_0x3bc3e7,_0x2c3650,_0x571a59,_0x3b16f7),_0x150c30;}['markMultiRangeInsertion'](_0x22cdea,_0x31af5e='multi',_0x1d5dde={}){const _0x179018=this['editor']['plugins']['get']('Users')['me'],_0x4f3ea6=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31af5e,'join');for(const _0x579a88 of this['getSuggestions']())if(_0x579a88['author']['id']==_0x179018['id']&&'insertion'==_0x579a88['type']&&_0x579a88['subType']==_0x31af5e&&Xt(_0x579a88,_0x1d5dde)&&(_0x4f3ea6(_0x579a88['getRanges'](),_0x22cdea)||_0x4f3ea6(_0x22cdea,_0x579a88['getRanges']()))){for(const _0x4b30bc of _0x22cdea)_0x579a88['addRange'](_0x4b30bc);return _0x579a88;}for(const {suggestion:_0x4854e1,meta:_0x5c82e2}of this['_findSuggestions'](_0x22cdea,'insertion')){if(!_0x5c82e2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5c82e2['containsRangeInObject'])continue;if(!Xt(_0x4854e1,_0x1d5dde))continue;let _0x2bc145=!0x0;for(const _0x271634 of _0x4854e1['getRanges']())for(const _0x39bbd8 of _0x22cdea)if(!_0x271634['containsRange'](_0x39bbd8)){_0x2bc145=!0x1;break;}if(_0x2bc145)return _0x4854e1;}const _0x1ae620=_0x2789d7(),_0x27aee4=_0x179018['id'],_0x481bb5='insertion:'+_0x31af5e,_0x5295d3=this['_setSuggestionData']({'id':_0x1ae620,'type':_0x481bb5,'createdAt':new Date(),'authorId':_0x27aee4,'attributes':_0x1d5dde});for(const _0x233044 of _0x22cdea)this['_addSuggestionMarker'](_0x481bb5,_0x1ae620,_0x27aee4,_0x233044,o['getMultiRangeId']());return _0x5295d3;}['markInlineFormat'](_0x1618c5,_0x488e7c,_0x4757e6=null,_0x6f1354={}){if(_0x4757e6=_0x4757e6||Kt(_0x488e7c),_0x1618c5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3b931d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4757e6,'accept');return this['forceDefaultExecution'](()=>_0x3b931d([_0x1618c5],_0x488e7c,_0x6f1354)),null;}const _0x393d92=this['editor']['plugins']['get']('Users')['me'],_0x2c54d9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4e96fa,meta:_0x2d6ded}of this['_findSuggestions'](_0x1618c5,'insertion'))_0x2d6ded['isOwn']&&!_0x2d6ded['isInsideObject']&&_0x2c54d9['push'](..._0x4e96fa['getRanges']());}const _0x4eeaac=function(_0x36f378,_0x3a817d){const _0x1a5fb7=[];for(const _0x46d413 of _0x3a817d){const _0x3d8dcf=_0x36f378['getIntersection'](_0x46d413);_0x3d8dcf&&_0x1a5fb7['push'](_0x3d8dcf);}return _0x1a5fb7;}(_0x1618c5,_0x2c54d9),_0x36bf02=function(_0x201ffb,_0x179fd2){const _0x2cf882=[_0x201ffb];for(const _0x20e9a9 of _0x179fd2){let _0x3ebc63=0x0;for(;_0x3ebc63<_0x2cf882['length'];){const _0x25ee1b=_0x2cf882[_0x3ebc63]['getDifference'](_0x20e9a9);_0x2cf882['splice'](_0x3ebc63,0x1,..._0x25ee1b),_0x3ebc63+=_0x25ee1b['length'];}}return _0x2cf882;}(_0x1618c5,_0x2c54d9);_0x4eeaac['length']&&this['_model']['change'](()=>{for(const _0x362fbf of _0x4eeaac){const _0x5b0b0c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4757e6,'accept');this['forceDefaultExecution'](()=>_0x5b0b0c([_0x362fbf],_0x488e7c,_0x6f1354));}});for(const _0x19d29d of _0x36bf02){let _0x3a5f1c=null,_0x59620a=_0x19d29d['start'],_0xd634d4=_0x19d29d['end'];for(const {suggestion:_0x4c35db,meta:_0x401089}of this['_findSuggestions'](_0x19d29d,'formatInline')){if(!_0x401089['isOwn'])continue;if(_0x4c35db['subType']!=_0x4757e6)continue;if(!Xt(_0x4c35db,_0x6f1354))continue;const _0x28b487=_0x4c35db['getFirstRange']();if(_0x28b487['containsRange'](_0x19d29d,!0x0))return null;_0x59620a=_0x59620a['isBefore'](_0x28b487['start'])?_0x59620a:_0x28b487['start'],_0xd634d4=_0xd634d4['isAfter'](_0x28b487['end'])?_0xd634d4:_0x28b487['end'],_0x3a5f1c?_0x28b487['start']['isBefore'](_0x3a5f1c['getFirstRange']()['start'])?(_0x3a5f1c['removeMarkers'](),_0x3a5f1c=_0x4c35db):_0x4c35db['removeMarkers']():_0x3a5f1c=_0x4c35db;}const _0x5252c1=this['_model']['createRange'](_0x59620a,_0xd634d4);if(_0x3a5f1c)this['_setSuggestionRange'](_0x3a5f1c,_0x5252c1);else{const _0x591b38=_0x2789d7(),_0x24a581=_0x393d92['id'];this['_setSuggestionData']({'id':_0x591b38,'type':'formatInline:'+_0x4757e6,'data':_0x488e7c,'createdAt':new Date(),'authorId':_0x24a581,'attributes':_0x6f1354}),this['_addSuggestionMarker']('formatInline:'+_0x4757e6,_0x591b38,_0x24a581,_0x5252c1);}}return null;}['markBlockFormat'](_0x387f97,_0x1d8b7c,_0x3b0c7d=[],_0x53a414=null,_0x2e1ecb={}){_0x1d8b7c['formatGroupId']||(_0x1d8b7c['formatGroupId']=_0x1d8b7c['commandName']),_0x1d8b7c['multipleBlocks']=_0x387f97['is']('range'),_0x53a414=_0x53a414||Kt(_0x1d8b7c);const _0x18b9d9=_0x3b0c7d['map'](_0xa403b8=>zt(_0xa403b8,this['_model'])),_0x2c2f20=_0x387f97['is']('range')?_0x387f97:zt(_0x387f97,this['_model']);if('never'===this['_trackFormatChanges']){const _0x563741=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53a414,'accept');return this['forceDefaultExecution'](()=>_0x563741([_0x2c2f20],_0x1d8b7c,_0x2e1ecb)),null;}_0x18b9d9['push'](_0x2c2f20);let _0x392857=!0x0;for(const _0x467ca7 of _0x18b9d9)if(!this['_rangeIsInLocalUserInsertion'](_0x467ca7)){_0x392857=!0x1;break;}if(_0x392857&&'always'!==this['_trackFormatChanges']){const _0x53115e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x53a414,'accept');return this['forceDefaultExecution'](()=>_0x53115e([_0x2c2f20],_0x1d8b7c,_0x2e1ecb)),null;}let _0x5c5d7b=null,_0x3bb7fc=_0x2c2f20['start'],_0x4afcb9=_0x2c2f20['end'];for(const {suggestion:_0x2f2aad,meta:_0x1e55f2}of this['_findSuggestions'](_0x2c2f20,'formatBlock')){if(!_0x1e55f2['isOwn'])continue;if(_0x1e55f2['isNextTo']||_0x1e55f2['containsRangeInObject']||_0x1e55f2['isInsideObject'])continue;if(_0x2f2aad['data']['formatGroupId']!=_0x1d8b7c['formatGroupId'])continue;if(!Xt(_0x2f2aad,_0x2e1ecb))continue;const _0x4864ee=_0x2f2aad['getFirstRange']();if(_0x2f2aad['subType']==_0x53a414){if(_0x4864ee['containsRange'](_0x2c2f20,!0x0))return null;_0x3bb7fc=_0x3bb7fc['isBefore'](_0x4864ee['start'])?_0x3bb7fc:_0x4864ee['start'],_0x4afcb9=_0x4afcb9['isAfter'](_0x4864ee['end'])?_0x4afcb9:_0x4864ee['end'],_0x5c5d7b?_0x4864ee['start']['isBefore'](_0x5c5d7b['getFirstRange']()['start'])?(_0x5c5d7b['removeMarkers'](),_0x5c5d7b=_0x2f2aad):_0x2f2aad['removeMarkers']():_0x5c5d7b=_0x2f2aad;}else{const _0x40217f=_0x2c2f20['getIntersection'](_0x4864ee);this['_cutOutSuggestionMarker'](_0x2f2aad,_0x40217f);}}const _0x14885f=this['editor']['plugins']['get']('Users')['me'],_0x310823=_0x2789d7(),_0x5bbd8b=_0x14885f['id'];if(_0x5c5d7b)return this['_setSuggestionRange'](_0x5c5d7b,this['_model']['createRange'](_0x3bb7fc,_0x4afcb9)),_0x5c5d7b;{const _0x1d6c1a=this['_setSuggestionData']({'id':_0x310823,'type':'formatBlock:'+_0x53a414,'data':_0x1d8b7c,'createdAt':new Date(),'authorId':_0x5bbd8b,'attributes':_0x2e1ecb});return this['_addSuggestionMarker']('formatBlock:'+_0x53a414,_0x310823,_0x5bbd8b,this['_model']['createRange'](_0x3bb7fc,_0x4afcb9)),_0x1d6c1a;}}['markMultiRangeBlockFormat'](_0x1b8dcd,_0x430435,_0x4e1b80=[],_0x37fcd4=null,_0x58731e={}){_0x430435['formatGroupId']||(_0x430435['formatGroupId']=_0x430435['commandName']);const _0x240b60=_0x1b8dcd[0x0];_0x430435['multipleBlocks']=_0x240b60['is']('range'),_0x37fcd4=_0x37fcd4||Kt(_0x430435);const _0x38d17d=_0x4e1b80['map'](_0x140679=>zt(_0x140679,this['_model'])),_0xa8d49e=_0x240b60['is']('range')?_0x1b8dcd:_0x1b8dcd['map'](_0x1f1744=>zt(_0x1f1744,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3dbe40=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37fcd4,'accept');return this['forceDefaultExecution'](()=>_0x3dbe40(_0xa8d49e,_0x430435,_0x58731e)),null;}_0x38d17d['push'](..._0xa8d49e);let _0x44db61=!0x0;for(const _0x1fb376 of _0x38d17d)if(!this['_rangeIsInLocalUserInsertion'](_0x1fb376)){_0x44db61=!0x1;break;}if(_0x44db61&&'always'!==this['_trackFormatChanges']){const _0x56caf3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37fcd4,'accept');return this['forceDefaultExecution'](()=>_0x56caf3(_0xa8d49e,_0x430435,_0x58731e)),null;}const _0x28a62e=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d58ce of this['getSuggestions']()){if(_0x3d58ce['author']['id']!=_0x28a62e['id'])continue;if('formatBlock'!=_0x3d58ce['type']||_0x3d58ce['data']['formatGroupId']!=_0x430435['formatGroupId'])continue;if(!Xt(_0x3d58ce,_0x58731e))continue;const _0x4c3f0c=_0x3d58ce['subType']==_0x37fcd4;for(let _0xa84413=0x0;_0xa84413<_0xa8d49e['length'];_0xa84413++){const _0x2e1783=_0xa8d49e[_0xa84413];for(const _0x26b5dd of _0x3d58ce['getMarkers']()){const _0x59b269=_0x26b5dd['getRange']();if(_0x2e1783['isEqual'](_0x59b269)){_0x4c3f0c?(_0xa8d49e['splice'](_0xa84413,0x1),_0xa84413--):_0x3d58ce['removeMarker'](_0x26b5dd['name']);break;}}}}if(0x0==_0xa8d49e['length'])return null;const _0x4caeae=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x37fcd4,'join');for(const _0xa8e2d1 of this['getSuggestions']())if(_0xa8e2d1['author']['id']==_0x28a62e['id']&&'formatBlock'==_0xa8e2d1['type']&&_0xa8e2d1['data']['formatGroupId']==_0x430435['formatGroupId']&&_0xa8e2d1['subType']==_0x37fcd4&&Xt(_0xa8e2d1,_0x58731e)&&(_0x4caeae(_0xa8e2d1['getRanges'](),_0xa8d49e)||_0x4caeae(_0xa8d49e,_0xa8e2d1['getRanges']()))){for(const _0x3ecc14 of _0xa8d49e)_0xa8e2d1['addRange'](_0x3ecc14);return _0xa8e2d1;}const _0x55d5ce=_0x2789d7(),_0x27632f=_0x28a62e['id'],_0x30c115='formatBlock:'+_0x37fcd4,_0x4a9dcb=this['_setSuggestionData']({'id':_0x55d5ce,'type':_0x30c115,'data':_0x430435,'createdAt':new Date(),'authorId':_0x27632f,'attributes':_0x58731e});for(const _0x326be1 of _0xa8d49e)this['_addSuggestionMarker'](_0x30c115,_0x55d5ce,_0x27632f,_0x326be1,o['getMultiRangeId']());return _0x4a9dcb;}['markDeletion'](_0x2eb325,_0x40c939=null,_0x934b5={}){if(_0x2eb325['isCollapsed'])return null;const _0x482e0f=this['editor']['plugins']['get']('Users')['me'],_0x2e632f=new _0x2ee791(_0x2eb325['start'],_0x2eb325['end']);for(const {suggestion:_0x2fe1b9,meta:_0x24bb0f}of this['_findSuggestions'](_0x2e632f,'insertion'))if(_0x24bb0f['isOwn']&&!_0x24bb0f['isNextTo']){if(_0x2fe1b9['isMultiRange']){const _0x1a90d3=_0x2fe1b9['getRanges']()['filter'](_0xc557f5=>'$graveyard'!=_0xc557f5['root']['rootName']);_0x1a90d3['every'](_0x1c460e=>_0x2e632f['containsRange'](_0x1c460e,!0x0))&&_0x2fe1b9['discard']();if(_0x1a90d3['some'](_0x5184b9=>_0x5184b9['containsRange'](_0x2e632f,!0x0))){const _0xa74694=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40c939,'accept');return this['forceDefaultExecution'](()=>_0xa74694([_0x2e632f],null,_0x934b5)),null;}}else{const _0x5e4e4d=_0x2e632f['getIntersection'](_0x2fe1b9['getFirstRange']());null!==_0x5e4e4d&&_0x2fe1b9['_onDiscard']([_0x5e4e4d],null,_0x934b5);}}if(_0x2e632f['detach'](),_0x2e632f['isCollapsed']||'$graveyard'==_0x2e632f['root']['rootName'])return null;let _0x4cd403=null,_0x19ee24=_0x2e632f['start'],_0x1607d0=_0x2e632f['end'];const _0x1fc46d=this['_findSuggestions'](_0x2e632f,'deletion');for(const {suggestion:_0x448e46,meta:_0x1f8b79}of _0x1fc46d){const _0x128301=this['_model']['createRange'](_0x19ee24,_0x1607d0);if(_0x1f8b79['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f8b79['containsRangeInObject']&&!_0x1f8b79['isInsideObject'])){if(_0x448e46['isMultiRange']){if(!Xt(_0x448e46,_0x934b5))continue;let _0x4fbec8=!0x0;for(const _0x49e9df of _0x448e46['getRanges']()){if(_0x49e9df['containsRange'](_0x128301,!0x0))return _0x448e46;_0x128301['containsRange'](_0x49e9df)||(_0x4fbec8=!0x1);}_0x4fbec8&&_0x448e46['discard']();}else{const _0x4c2760=_0x448e46['getFirstRange']();if(_0x4c2760['containsRange'](_0x128301,!0x0))return _0x448e46;if(!Xt(_0x448e46,_0x934b5)){_0x128301['containsRange'](_0x4c2760)?_0x448e46['removeMarkers']():_0x4c2760['containsPosition'](_0x19ee24)?_0x19ee24=_0x4c2760['end']:_0x4c2760['containsPosition'](_0x1607d0)&&(_0x1607d0=_0x4c2760['start']);continue;}_0x19ee24=_0x19ee24['isBefore'](_0x4c2760['start'])?_0x19ee24:_0x4c2760['start'],_0x1607d0=_0x1607d0['isAfter'](_0x4c2760['end'])?_0x1607d0:_0x4c2760['end'],_0x934b5=Object['assign']({},_0x448e46['attributes']),_0x4cd403?_0x4c2760['start']['isBefore'](_0x4cd403['getFirstRange']()['start'])?(_0x4cd403['removeMarkers'](),_0x4cd403=_0x448e46):_0x448e46['removeMarkers']():_0x4cd403=_0x448e46;}}}if(_0x4cd403)return this['_setSuggestionRange'](_0x4cd403,this['_model']['createRange'](_0x19ee24,_0x1607d0)),_0x4cd403;{const _0x461284=_0x2789d7(),_0x105c7d=this['_model']['createRange'](_0x19ee24,_0x1607d0),_0x59426e=_0x482e0f['id'],_0x49a430=_0x40c939?'deletion:'+_0x40c939:'deletion',_0x330785=this['_setSuggestionData']({'id':_0x461284,'type':_0x49a430,'createdAt':new Date(),'authorId':_0x59426e,'attributes':_0x934b5});return this['_addSuggestionMarker'](_0x49a430,_0x461284,_0x59426e,_0x105c7d),_0x330785;}}['markMultiRangeDeletion'](_0x4496ce,_0x4fde38='multi',_0xce79b1={}){const _0x35b21b=this['editor']['plugins']['get']('Users')['me'],_0x97f80=_0x4496ce['map'](_0x264198=>new _0x2ee791(_0x264198['start'],_0x264198['end'])),_0x3a5c29=new Set();for(const {suggestion:_0x25d2f1,meta:_0x4701f1}of this['_findSuggestions'](_0x97f80,'insertion'))_0x4701f1['isOwn']&&!_0x4701f1['isNextTo']&&_0x3a5c29['add'](_0x25d2f1);for(const _0x8940b2 of _0x3a5c29)if(_0x8940b2['isMultiRange']){const _0x8d26de=_0x8940b2['getRanges']();(!_0x8940b2['attributes']||!_0x8940b2['attributes']['skipNestingCheck'])&&(_0x8d26de['every'](_0x18cfe7=>_0x97f80['some'](_0x5a4aa8=>_0x5a4aa8['containsRange'](_0x18cfe7,!0x0)))&&_0x8940b2['discard']());if(_0x97f80['every'](_0x5a7555=>_0x8d26de['some'](_0x1fd40b=>_0x1fd40b['containsRange'](_0x5a7555,!0x0)))){const _0x300e32=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fde38,'accept');return this['forceDefaultExecution'](()=>_0x300e32(_0x4496ce,null,_0xce79b1)),null;}}else{const _0x4ca83c=_0x8940b2['getFirstRange']();_0x97f80['some'](_0x44da59=>_0x44da59['containsRange'](_0x4ca83c,!0x0))&&_0x8940b2['discard']();if(_0x97f80['every'](_0x25b268=>_0x4ca83c['containsRange'](_0x25b268,!0x0))){const _0x476e3c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fde38,'accept');return this['forceDefaultExecution'](()=>_0x476e3c(_0x97f80,null,_0xce79b1)),null;}}const _0x3f96d1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4fde38,'join');let _0x4bffda=null;for(const _0x88b7c1 of this['getSuggestions']())if(_0x88b7c1['author']['id']==_0x35b21b['id']&&_0x88b7c1['isInContent']&&'deletion'==_0x88b7c1['type']&&_0x88b7c1['subType']==_0x4fde38&&Xt(_0x88b7c1,_0xce79b1)&&(_0x3f96d1(_0x88b7c1['getRanges'](),_0x97f80)||_0x3f96d1(_0x97f80,_0x88b7c1['getRanges']()))){if(_0x4bffda){if(_0x88b7c1['commentThread']&&_0x88b7c1['commentThread']['length'])continue;for(const _0xd53609 of _0x88b7c1['getRanges']())_0x4bffda['isIntersectingWithRange'](_0xd53609)||_0x4bffda['addRange'](_0xd53609);_0x88b7c1['removeMarkers']();}else{_0x4bffda=_0x88b7c1;for(const _0x46d24a of _0x97f80)_0x88b7c1['isIntersectingWithRange'](_0x46d24a)||_0x88b7c1['addRange'](_0x46d24a);}}if(_0x4bffda)return _0x4bffda;_0x3a5c29['clear']();for(const {suggestion:_0x11c0c9,meta:_0x260d78}of this['_findSuggestions'](_0x97f80,'deletion'))_0x260d78['isOwn']&&(this['_mergeNestedSuggestions']||!_0x260d78['containsRangeInObject']&&!_0x260d78['isInsideObject'])&&Xt(_0x11c0c9,_0xce79b1)&&_0x3a5c29['add'](_0x11c0c9);for(const _0x5c0e6c of _0x3a5c29){const _0x114187=_0x5c0e6c['getRanges']();if(!_0xce79b1||!_0xce79b1['skipNestingCheck']){if(_0x97f80['every'](_0x3677ae=>_0x114187['some'](_0x531ce9=>_0x531ce9['containsRange'](_0x3677ae,!0x0))))return _0x5c0e6c;}(!_0x5c0e6c['attributes']||!_0x5c0e6c['attributes']['skipNestingCheck'])&&(_0x114187['every'](_0x5ea26e=>_0x97f80['some'](_0x5e3f92=>_0x5e3f92['containsRange'](_0x5ea26e,!0x0)))&&_0x5c0e6c['discard']());}const _0x3ab69b=_0x2789d7(),_0x3f1cbb=_0x35b21b['id'],_0x262786='deletion:'+_0x4fde38,_0x33c7bd=this['_setSuggestionData']({'id':_0x3ab69b,'type':_0x262786,'createdAt':new Date(),'authorId':_0x3f1cbb,'attributes':_0xce79b1});for(const _0x47528e of _0x97f80)_0x47528e['detach'](),_0x47528e['isCollapsed']||'$graveyard'==_0x47528e['root']['rootName']||this['_addSuggestionMarker'](_0x262786,_0x3ab69b,_0x3f1cbb,_0x47528e,o['getMultiRangeId']());return _0x33c7bd;}['markAttributeChange'](_0x1dde3a,_0x156125,_0x53808c,_0x3b8845,_0x51e26a){if(_0x1dde3a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x29408f=this['editor']['plugins']['get']('Users')['me']['id'],_0x2061b4=Array['from'](this['_suggestions']['values']())['filter'](_0x342548=>'attribute'==_0x342548['type']&&_0x342548['data']['key']==_0x156125&&_0x342548['isIntersectingWithRange'](_0x1dde3a));if('default'===this['_trackFormatChanges']){const _0x4ad4f8=this['_findSuggestions'](_0x1dde3a,'insertion')['filter'](({meta:_0x1baf02})=>_0x1baf02['isOwn']&&!_0x1baf02['isInsideObject']&&!_0x1baf02['isNextTo'])['map'](({suggestion:_0x4610bf})=>_0x4610bf);_0x2061b4['unshift'](..._0x4ad4f8);}const _0x2ed860=new Map([[_0x1dde3a,_0x53808c]]);for(const _0x318332 of _0x2061b4){const _0x3ed73a='attribute'==_0x318332['type']?_0x318332['data']['oldValue']:void 0x0,_0xd569f8=_0x318332['getFirstRange'](),_0x3bfa45=Array['from'](_0x2ed860['keys']())['find'](_0x476072=>_0x476072['isIntersecting'](_0xd569f8));if(!_0x3bfa45)continue;const _0x435fe5=_0x3bfa45['getDifference'](_0xd569f8);this['_isBlockAttribute'](_0x156125)&&'insertion'==_0x318332['type']&&0x0!=_0x435fe5['length']||(_0x2ed860['delete'](_0x3bfa45),_0x435fe5['forEach'](_0x33f996=>{_0x2ed860['set'](_0x33f996,_0x53808c);}),'insertion'!=_0x318332['type']&&_0x3ed73a!=_0x3b8845&&_0x2ed860['set'](_0x3bfa45['getIntersection'](_0xd569f8),_0x3ed73a));}const _0x4df684=[];for(const [_0x2bb3a7,_0x3c2f2e]of _0x2ed860){const _0x3cc628=_0x2789d7(),_0x4cc1a3={'key':_0x156125,'oldValue':_0x3c2f2e,'newValue':_0x3b8845};_0x156125['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':_0x156125});const _0x1dfc7f=('attribute:'+(_0x156125+'|'+Kt({'newValue':_0x3b8845})))['substring'](0x0,0x3c),_0x38ac5e=this['_setSuggestionData']({'id':_0x3cc628,'type':_0x1dfc7f,'data':_0x4cc1a3,'createdAt':new Date(),'authorId':_0x29408f,'attributes':_0x51e26a});_0x4df684['push'](_0x38ac5e),this['_addSuggestionMarker'](_0x1dfc7f,_0x3cc628,_0x29408f,_0x2bb3a7);}return _0x4df684;}['enableDefaultAttributesIntegration'](_0x2223b0){this['enableCommand'](_0x2223b0,(_0x35d985,..._0x15131d)=>{this['_recordAttributeChanges'](()=>{_0x35d985(..._0x15131d);});});}['registerBlockAttribute'](_0x2e639b){this['_blockAttributeKeys']['add'](_0x2e639b);}['registerInlineAttribute'](_0x3ccbbe){this['_inlineAttributeKeys']['add'](_0x3ccbbe);}['_getAttributeKey'](_0x3998bf){return'attribute'==_0x3998bf['type']?_0x3998bf['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x52323f,_0x2a85ce){const _0x1f3d5d=_0x52323f['getFirstMarker']();this['_model']['change'](_0x3dbd31=>{_0x3dbd31['updateMarker'](_0x1f3d5d,{'range':_0x2a85ce});});}['_addThreadToSuggestion'](_0x1ba99b){const _0x125fa1=_0x1ba99b['id'],_0x164dda=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x125fa1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x164dda,'threadId':_0x125fa1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x346955=this['_commentsRepository']['getCommentThread'](_0x125fa1);_0x346955['unbind']('isRemovable'),_0x346955['isRemovable']=!0x1,_0x1ba99b['commentThread']=_0x346955;}['_checkSuggestionCorrectness'](_0x469e5f,_0x2578b4,_0x8dd00c,_0x25652e){if(_0x469e5f['type']!=_0x2578b4||_0x469e5f['subType']!=_0x8dd00c||_0x469e5f['creator']['id']!=_0x25652e)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x3d4c39('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x59794c,_0x5366d1){const _0x3db636=_0x59794c['getFirstRange']();if(_0x5366d1['isEqual'](_0x3db636))_0x59794c['removeMarkers']();else{if(_0x3db636['containsRange'](_0x5366d1)){const _0x2cc2b0=this['_model']['createPositionAt'](_0x5366d1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59794c,this['_model']['createRange'](_0x3db636['start'],_0x2cc2b0));const _0x15b52b=_0x2789d7(),_0x2f4033=_0x59794c['creator']['id'],_0xab85fd=_0x59794c['type']+':'+_0x59794c['subType'];this['_setSuggestionData']({'id':_0x15b52b,'type':_0xab85fd,'createdAt':new Date(),'authorId':_0x2f4033,'data':_0x59794c['data'],'attributes':_0x59794c['attributes']});const _0x4a119b=this['_model']['createPositionAt'](_0x5366d1['end']['parent'],'after'),_0x31e074=this['_model']['createRange'](_0x4a119b,_0x3db636['end']);this['_addSuggestionMarker'](_0xab85fd,_0x15b52b,_0x2f4033,_0x31e074);}else{if(_0x3db636['containsPosition'](_0x5366d1['start'])){const _0x24b08e=this['_model']['createPositionAt'](_0x5366d1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x59794c,this['_model']['createRange'](_0x3db636['start'],_0x24b08e));}else{const _0x55041c=this['_model']['createPositionAt'](_0x5366d1['end']['parent'],'after');this['_setSuggestionRange'](_0x59794c,this['_model']['createRange'](_0x55041c,_0x3db636['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x524e25){for(const {suggestion:_0x30a2c5,meta:_0x139310}of this['_findSuggestions'](_0x524e25,'insertion')){if(!_0x139310['isOwn'])continue;const _0x1e5f62=_0x30a2c5['getRanges']();for(const _0x4690f5 of _0x1e5f62)if(!_0x524e25['getDifference'](_0x4690f5)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x33c820){const _0x517267=this['editor']['plugins']['get']('Users')['getUser'](_0x33c820);if(!_0x517267)throw new _0x3d4c39('track-changes-user-not-found',this);return _0x517267;}['_getExternalAuthor'](_0x2b07f2){const _0x5c24ce=this['editor']['plugins']['get']('Users'),_0x139791=_0x2af07e('external:'+_0x2b07f2),_0x1e1174=_0x5c24ce['getUser'](_0x139791);return _0x1e1174||_0x5c24ce['addUser']({'id':_0x139791,'name':_0x2b07f2});}['_createSuggestion'](_0x36deee,_0x1e6ffc,_0x544915,_0x3a962f,_0x4c47b4){const _0x44f14f=this['_getAuthorFromId'](_0x3a962f),_0x1ef18a=this['_suggestionFactory']['buildSuggestion'](_0x36deee,_0x1e6ffc,_0x544915,_0x44f14f,_0x4c47b4,_0xe3e0c8=>{this['_updateSuggestionData'](_0x544915,{'attributes':_0xe3e0c8});const _0x45e3b7=this['getSuggestion'](_0x544915);this['_joinWithAdjacentSuggestions'](new Set([_0x45e3b7])),this['_refreshSuggestionsChain'](new Set([_0x45e3b7]));});return this['listenTo'](_0x1ef18a,'accept',()=>{this['_updateSuggestionData'](_0x544915,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ef18a,'discard',()=>{this['_updateSuggestionData'](_0x544915,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x544915,_0x1ef18a),this['_suggestionState']['set'](_0x1ef18a,'notReady'),_0x1ef18a;}['_splitMarkerName'](_0x1f9704){const _0x151fd0=_0x1f9704['split'](':');return{'group':_0x151fd0[0x0],'type':_0x151fd0[0x1],'subType':_0x151fd0['length']>=0x5?_0x151fd0[0x2]:null,'id':_0x151fd0['length']<0x5?_0x151fd0[0x2]:_0x151fd0[0x3],'authorId':_0x151fd0['length']<0x5?_0x151fd0[0x3]:_0x151fd0[0x4],'markerCount':0x6==_0x151fd0['length']?_0x151fd0[0x5]:null};}['_breakSuggestionMarker'](_0x4989d1,_0x2f4ac1,_0x3a126b){const _0x4ddbbb=_0x4989d1['getFirstRange'](),_0x3c43da=_0x4ddbbb['start'],_0x26a298=_0x4ddbbb['end'];this['_setSuggestionRange'](_0x4989d1,this['_model']['createRange'](_0x3c43da,_0x2f4ac1));const _0x257c11=_0x2789d7(),_0x42c5dd=_0x4989d1['creator']['id'],_0x21d5db=_0x4989d1['type']+(_0x4989d1['subType']?':'+_0x4989d1['subType']:'');this['_setSuggestionData']({'id':_0x257c11,'type':_0x21d5db,'createdAt':new Date(),'authorId':_0x42c5dd,'originalSuggestionId':_0x4989d1['id'],'attributes':_0x4989d1['attributes'],'data':_0x4989d1['data']});const _0x17cfc5=this['_getAttributeKey'](_0x4989d1);('formatBlock'==_0x4989d1['type']||_0x17cfc5&&this['_isBlockAttribute'](_0x17cfc5))&&(_0x3a126b=this['_model']['createPositionBefore'](_0x3a126b['parent'])),this['_addSuggestionMarker'](_0x21d5db,_0x257c11,_0x42c5dd,this['_model']['createRange'](_0x3a126b,_0x26a298));}['_findSuggestions'](_0x453969,_0x4f3bd0=null){const _0x5c89c3=[],_0xfb68dc=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x453969)||(_0x453969=[_0x453969]);for(const _0x2d218c of this['getSuggestions']()){if(!_0x2d218c['isInContent'])continue;if(_0x4f3bd0&&_0x2d218c['type']!=_0x4f3bd0)continue;let _0x4e36dd=!0x1;for(const _0x2e2d9e of _0x2d218c['getRanges']()){for(const _0x114bbf of _0x453969){const _0x4de265=_0x114bbf['start']['isEqual'](_0x2e2d9e['end'])||_0x114bbf['end']['isEqual'](_0x2e2d9e['start']);if(_0x4de265||_0x114bbf['getIntersection'](_0x2e2d9e)){const _0x2bef42=_0x114bbf['containsRange'](_0x2e2d9e)&&Gt(this['_model']['schema'],_0x2e2d9e['start'],_0x114bbf),_0x572e6e=_0x2e2d9e['containsRange'](_0x114bbf)&&Gt(this['_model']['schema'],_0x114bbf['start'],_0x2e2d9e);_0x5c89c3['push']({'suggestion':_0x2d218c,'meta':{'isOwn':_0xfb68dc==_0x2d218c['author'],'isNextTo':_0x4de265,'isInsideObject':_0x2bef42,'containsRangeInObject':_0x572e6e}}),_0x4e36dd=!0x0;break;}}if(_0x4e36dd)break;}}return _0x5c89c3;}['_addSuggestionMarker'](_0xdd6f21,_0x24b7df,_0x12cdb4,_0x338ef7,_0x5d775b){this['_model']['change'](_0xf5584b=>{let _0x419fb7='suggestion:'+_0xdd6f21+':'+_0x24b7df+':'+_0x12cdb4;_0x5d775b&&(_0x419fb7=_0x419fb7+':'+_0x5d775b),_0xf5584b['addMarker'](_0x419fb7,{'range':_0x338ef7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2202e3){const _0x3494d5=_0x2202e3['previous'],_0x55e38e=_0x2202e3['next'];_0x2202e3['previous']=null,_0x2202e3['next']=null,null!=_0x3494d5&&_0x3494d5['next']==_0x2202e3&&(_0x3494d5['next']=_0x55e38e),null!=_0x55e38e&&_0x55e38e['previous']==_0x2202e3&&(_0x55e38e['previous']=_0x3494d5),'ready'==this['_suggestionState']['get'](_0x2202e3)&&(this['_suggestionState']['set'](_0x2202e3,'removed'),this['fire']('suggestionUnloaded',_0x2202e3,_0x3494d5,_0x55e38e));}['_setSuggestionData'](_0x2b3357){const _0x4096b3=_0x2b3357['id'],_0xaa0b58=this['addSuggestionData'](_0x2b3357);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x3aa62e=this['editor']['plugins']['get']('PendingActions'),_0x2d9c38=_0xaa0b58['hasComments'],_0x7f910f=_0xaa0b58['subType']?_0xaa0b58['type']+':'+_0xaa0b58['subType']:_0xaa0b58['type'],_0x256b54=this['editor']['locale'],_0x4357e4=_0x3aa62e['add'](c(_0x256b54,'PENDING_ACTION_SUGGESTION')),_0x10bd36={'id':_0x4096b3,'type':_0x7f910f,'hasComments':_0x2d9c38,'data':_0x2b3357['data']||null,'originalSuggestionId':_0x2b3357['originalSuggestionId']||null,'attributes':_0xaa0b58['attributes']};this['_adapter']['addSuggestion'](_0x10bd36)['then'](_0x1ea894=>{_0xaa0b58['_saved']=!0x0,_0x3aa62e['remove'](_0x4357e4),_0x1ea894&&_0x1ea894['createdAt']&&(this['_suggestions']['get'](_0x4096b3)['createdAt']=_0x1ea894['createdAt']);})['catch'](_0xd7fb1e=>{throw _0x30f62c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xaa0b58['discard']();}),_0xaa0b58['stopListening'](),this['_suggestions']['delete'](_0xaa0b58['id']),this['_suggestionState']['delete'](_0xaa0b58),_0xd7fb1e;});}return _0xaa0b58;}['_isBlockAttribute'](_0x36cc9c){return this['_blockAttributeKeys']['has'](_0x36cc9c);}['_updateSuggestionData'](_0x29cfcd,_0x22b577){const _0x1f10d6=this['editor']['plugins']['get']('PendingActions'),_0x50bf08=this['getSuggestion'](_0x29cfcd);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x50bf08['_saved']){const _0x1d097d=_0x1f10d6['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x29cfcd,_0x22b577)['then'](()=>{_0x1f10d6['remove'](_0x1d097d);});}else _0x50bf08['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x29cfcd,_0x22b577);});}}['_getSuggestionData'](_0x1c8ba0){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x3d4c39('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1c8ba0);}['_handleNewSuggestionMarker'](_0x1ba8d5){const {id:_0x408515,type:_0x134d4,subType:_0x48e3a5,authorId:_0x1ea7e8}=this['_splitMarkerName'](_0x1ba8d5),_0x151a42=this['_suggestions']['get'](_0x408515)||this['_createSuggestion'](_0x134d4,_0x48e3a5,_0x408515,_0x1ea7e8,{});switch(this['_checkSuggestionCorrectness'](_0x151a42,_0x134d4,_0x48e3a5,_0x1ea7e8),this['_suggestionState']['get'](_0x151a42)){case'notReady':this['_getSuggestionData'](_0x408515)['then'](_0x26aadf=>{let _0x32df43=Promise['resolve']();_0x26aadf['hasComments']&&(_0x32df43=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x408515})),_0x32df43['then'](()=>{this['addSuggestionData'](_0x26aadf)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x151a42,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x408515,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x151a42,'ready'),this['fire']('suggestionLoaded',_0x151a42);break;case'ready':this['fire']('suggestionChanged',_0x151a42);}return _0x151a42['addMarkerName'](_0x1ba8d5),_0x151a42;}['_refreshSuggestionsChain'](_0x433a99){const _0x42eca5=Array['from'](_0x433a99),_0x4217c3=_0x42eca5['filter'](_0x4ab18c=>'attribute'==_0x4ab18c['type']);this['_refreshAttributeSuggestionsChain'](_0x4217c3);const _0x3ffb84=_0x42eca5['filter'](_0x5a92e0=>!_0x5a92e0['isMultiRange']&&'attribute'!=_0x5a92e0['type']),_0x2e0333=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f2125=>!_0x5f2125['isMultiRange']&&'attribute'!=_0x5f2125['type']),_0x5c1b8f=_0x2e0333['filter'](_0x557171=>!_0x433a99['has'](_0x557171)),_0x561451=new Map(_0x2e0333['map'](_0x551167=>[_0x551167,this['_suggestionFactory']['getSuggestionCallback'](_0x551167['type'],_0x551167['subType'],'chain')])),_0x25519c=new Map(_0x2e0333['map'](_0x1eb694=>[_0x1eb694,_0x1eb694['getFirstRange']()])),_0x5337b1=new Set(),_0xf3100=new Set();for(let _0x1db5a6=0x0;_0x1db5a6<_0x3ffb84['length'];_0x1db5a6++)_0x2f968a(_0x3ffb84[_0x1db5a6],_0x3ffb84,_0x1db5a6+0x1);for(let _0x57f1d7=0x0;_0x57f1d7<_0x3ffb84['length'];_0x57f1d7++)_0x2f968a(_0x3ffb84[_0x57f1d7],_0x5c1b8f,0x0);const _0x48b741=new Set();for(let _0x41a2ba=0x0;_0x41a2ba<_0x3ffb84['length'];_0x41a2ba++){const _0x3c097e=_0x3ffb84[_0x41a2ba];!_0xf3100['has'](_0x3c097e)&&_0x3c097e['previous']&&(_0x48b741['add'](_0x3c097e['previous']),_0x3c097e['previous']['next']===_0x3c097e&&(_0x3c097e['previous']['next']=null),_0x3c097e['previous']=null),!_0x5337b1['has'](_0x3c097e)&&_0x3c097e['next']&&(_0x48b741['add'](_0x3c097e['next']),_0x3c097e['next']['previous']===_0x3c097e&&(_0x3c097e['next']['previous']=null),_0x3c097e['next']=null);}function _0x2f968a(_0x12123a,_0x1fc72a,_0x3cfe48){for(let _0x24d309=_0x3cfe48;_0x24d309<_0x1fc72a['length'];_0x24d309++){const _0x1dddd2=_0x525913(_0x12123a,_0x1fc72a[_0x24d309]);_0x1dddd2&&(_0x1dddd2[0x0]['next']=_0x1dddd2[0x1],_0x1dddd2[0x1]['previous']=_0x1dddd2[0x0],_0x5337b1['add'](_0x1dddd2[0x0]),_0xf3100['add'](_0x1dddd2[0x1]));}}function _0x525913(_0x263d54,_0x111c5d){if(_0x263d54['author']['id']!==_0x111c5d['author']['id'])return null;const _0x49d84a=_0x561451['get'](_0x263d54)(_0x263d54,_0x111c5d,_0x25519c['get'](_0x263d54),_0x25519c['get'](_0x111c5d));if(!_0x49d84a)return null;return _0x561451['get'](_0x111c5d)(_0x263d54,_0x111c5d,_0x25519c['get'](_0x263d54),_0x25519c['get'](_0x111c5d))?_0x49d84a[0x1]['commentThread']&&_0x49d84a[0x1]['commentThread']['length']?null:_0x49d84a:null;}_0x48b741['size']&&this['_refreshSuggestionsChain'](_0x48b741);}['_refreshAttributeSuggestionsChain'](_0x397e6c){if(0x0==_0x397e6c['length'])return;const _0x9e3dbd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e49cd=>'attribute'==_0x5e49cd['type']&&_0x5e49cd['_isDataLoaded']),_0x34c65d=[],_0x34fe50=new Map();for(const _0x382a6d of _0x9e3dbd){const _0x2f8dab=_0x2af07e(_0x382a6d['attributes']);_0x34fe50['has'](_0x2f8dab)||(_0x34fe50['set'](_0x2f8dab,_0x34c65d['length']),_0x34c65d['push']([]));const _0x443c4b=_0x34fe50['get'](_0x2f8dab);_0x34c65d[_0x443c4b]['push'](_0x382a6d);}!(function(){_0x34c65d['sort']((_0x1e3d5f,_0x34b450)=>{const _0x512515=_0x1e3d5f[0x0]['createdAt'],_0x192aa3=_0x34b450[0x0]['createdAt'];return _0x512515==_0x192aa3?_0x1e3d5f[0x0]['attributes']['groupId']<_0x34b450[0x0]['attributes']['groupId']?-0x1:0x1:_0x512515<_0x192aa3?-0x1:0x1;});for(const _0x3ba9ec of _0x34c65d)_0x3ba9ec['sort']((_0x4daa19,_0xba9bec)=>_0x4daa19['id']<_0xba9bec['id']?-0x1:0x1);}());for(let _0x23b3ff=0x0;_0x23b3ff<_0x34c65d['length'];_0x23b3ff++){if(0x0==_0x34c65d[_0x23b3ff]['length'])continue;const _0x5ab9a9=[];for(let _0x4a296c=_0x23b3ff+0x1;_0x4a296c<_0x34c65d['length'];_0x4a296c++)0x0!=_0x34c65d[_0x4a296c]['length']&&_0x5bfdcc(_0x34c65d[_0x23b3ff],_0x34c65d[_0x4a296c])&&_0x5ab9a9['push'](_0x4a296c);for(const _0x5b4e1b of _0x5ab9a9)_0x34c65d[_0x23b3ff]=_0x34c65d[_0x23b3ff]['concat'](_0x34c65d[_0x5b4e1b]),_0x34c65d[_0x5b4e1b]=[];}for(const _0x4ce24c of _0x34c65d)for(let _0xc870c2=0x0;_0xc870c2<_0x4ce24c['length'];_0xc870c2++){const _0x5e57a0=_0x4ce24c[_0xc870c2+0x1]||null;_0x4ce24c[_0xc870c2]['next']!==_0x5e57a0&&(_0x4ce24c[_0xc870c2]['next']=_0x5e57a0);}for(const _0x2fee1f of _0x34c65d)for(let _0xd8fd8c=0x0;_0xd8fd8c<_0x2fee1f['length'];_0xd8fd8c++){const _0x12eaae=_0x2fee1f[_0xd8fd8c-0x1]||null;_0x2fee1f[_0xd8fd8c]['previous']!==_0x12eaae&&(_0x2fee1f[_0xd8fd8c]['previous']=_0x12eaae);}function _0x5bfdcc(_0x1e9f7b,_0x4244f0){if(_0x1e9f7b[0x0]['attributes']['groupId']!==_0x4244f0[0x0]['attributes']['groupId']&&_0x1e9f7b[0x0]['author']!==_0x4244f0[0x0]['author'])return!0x1;if(!function(_0x518e30,_0x4afed5){if(!_0x518e30['hasComments']&&!_0x4afed5['hasComments'])return!0x0;if(_0x518e30['hasComments']&&_0x4afed5['hasComments'])return!0x1;if(_0x518e30['hasComments']&&_0x4afed5['createdAt']<_0x518e30['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4afed5['hasComments']&&_0x518e30['createdAt']<_0x4afed5['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x1e9f7b[0x0],_0x4244f0[0x0]))return!0x1;const _0x5cab5e=Ft(_0x1e9f7b[0x0]['attributes'],'groupId'),_0x10b20d=Ft(_0x4244f0[0x0]['attributes'],'groupId');if(!_0xa63f93(_0x5cab5e,_0x10b20d))return!0x1;return!!_0x1e9f7b['every'](_0x18a7f0=>_0x4244f0['some'](_0x35a864=>_0x18a7f0['getFirstRange']()['isEqual'](_0x35a864['getFirstRange']())))&&_0x4244f0['every'](_0x4b2cb7=>_0x1e9f7b['some'](_0x5d0bdf=>_0x4b2cb7['getFirstRange']()['isEqual'](_0x5d0bdf['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xa55c1d){const _0x581d99=Array['from'](_0xa55c1d),_0x6698fe=this['getSuggestions']({'skipNotAttached':!0x0}),_0x418e50=_0x6698fe['filter'](_0x38ab5f=>!_0xa55c1d['has'](_0x38ab5f)),_0x42db09=new Map(_0x581d99['map'](_0x36aab0=>[_0x36aab0,this['_suggestionFactory']['getSuggestionCallback'](_0x36aab0['type'],_0x36aab0['subType'],'join')])),_0x133694=new Map(_0x6698fe['map'](_0x1ce0b1=>[_0x1ce0b1,_0x1ce0b1['getRanges']()]));for(let _0x2af8a7=0x0;_0x2af8a7<_0x581d99['length'];_0x2af8a7++){if(_0x494e74(this,_0x581d99[_0x2af8a7],_0x581d99,_0x2af8a7+0x1))return!0x0;}for(let _0x57cc17=0x0;_0x57cc17<_0x581d99['length'];_0x57cc17++){if(_0x494e74(this,_0x581d99[_0x57cc17],_0x418e50,0x0))return!0x0;}return!0x1;function _0x494e74(_0x41188a,_0x4b5ab9,_0x249312,_0x11e96c){for(let _0x54e595=_0x11e96c;_0x54e595<_0x249312['length'];_0x54e595++){const _0x2ec82e=_0x249312[_0x54e595];if(_0x2ec82e['type']!==_0x4b5ab9['type']||_0x2ec82e['author']['id']!==_0x4b5ab9['author']['id']||_0x2ec82e['subType']!==_0x4b5ab9['subType'])continue;if(!Qt(_0x4b5ab9,_0x2ec82e))continue;if('attribute'==_0x4b5ab9['type']&&_0x4b5ab9['data']['oldValue']!=_0x2ec82e['data']['oldValue'])continue;if('attribute'==_0x4b5ab9['type']&&_0x41188a['_isBlockAttribute'](_0x4b5ab9['data']['key']))continue;if('formatBlock'==_0x4b5ab9['type']){const _0x31b3f5=_0x41188a['editor']['model'],_0x21d0a2=_0x4b5ab9['getContainedElement']();if(_0x21d0a2&&(_0x31b3f5['schema']['isObject'](_0x21d0a2)||_0x31b3f5['schema']['isLimit'](_0x21d0a2)))continue;}const _0x123505=_0x42db09['get'](_0x4b5ab9),_0x480743=_0x133694['get'](_0x4b5ab9),_0x5677a2=_0x133694['get'](_0x2ec82e),_0xae2faa=_0x4b5ab9['commentThread']&&_0x4b5ab9['commentThread']['length'],_0x2e9228=_0x2ec82e['commentThread']&&_0x2ec82e['commentThread']['length'];if(!_0xae2faa&&_0x123505(_0x5677a2,_0x480743))return _0x41188a['_joinSuggestions'](_0x2ec82e,_0x4b5ab9),_0x133694['delete'](_0x4b5ab9),!0x0;if(!_0x2e9228&&_0x123505(_0x480743,_0x5677a2))return _0x41188a['_joinSuggestions'](_0x4b5ab9,_0x2ec82e),_0x133694['delete'](_0x2ec82e),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4b8b50,_0x42d72e){if(_0x4b8b50['isMultiRange']){for(const _0x5a5246 of _0x42d72e['getRanges']())_0x4b8b50['addRange'](_0x5a5246);}else{const _0x576b8a=_0x42d72e['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4b8b50,this['_model']['createRange'](_0x4b8b50['getFirstRange']()['start'],_0x576b8a));}_0x42d72e['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11f687,_0x1c38f4,_0x370364){const _0x39aaf6=_0x11f687['startsWith']('format')||_0x11f687['startsWith']('attribute')?'FORMATTING':_0x11f687['toUpperCase']();return c(this['editor']['locale'],_0x1c38f4+'_'+_0x39aaf6+'_SUGGESTION_ANNOUNCEMENT',_0x370364);}['_initAriaMarkerChangeAnnouncements'](){const _0x3a1bd8=this['editor'];if(!_0x3a1bd8['ui'])return;const {ariaLiveAnnouncer:_0x1a5141}=_0x3a1bd8['ui'];_0x51036d(this['_model'],({left:_0x41f3e2,entered:_0x5306b1})=>{for(const _0x1f3210 of _0x41f3e2){const {group:_0x4a8ee7,type:_0x31f875}=this['_splitMarkerName'](_0x1f3210['name']);if('suggestion'===_0x4a8ee7){_0x1a5141['announce'](this['_getMarkerAnnouncementText'](_0x31f875,'LEAVE'));break;}}for(const _0x22b748 of _0x5306b1){const {group:_0x298918,type:_0x12f997}=this['_splitMarkerName'](_0x22b748['name']);if('suggestion'===_0x298918){_0x1a5141['announce'](this['_getMarkerAnnouncementText'](_0x12f997,'ENTER',_0x384aa5(_0x168795)));break;}}});}['_processAttributeChanges'](_0x436e5e){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f62fb=this['editor'],_0x6441cb=_0x1f62fb['model']['document']['differ']['getChanges']();if(0x0==_0x6441cb['length'])return!0x1;const _0x1cb710=[],_0x1cb4a6=_0x6441cb['filter'](_0x1a336a=>'attribute'==_0x1a336a['type']),_0x4c9d07=_0x6441cb['filter'](_0x7096fe=>'insert'==_0x7096fe['type']&&'$text'!=_0x7096fe['name']),_0x106787=_0x6441cb['filter'](_0x248ce8=>'remove'==_0x248ce8['type']&&'$text'!=_0x248ce8['name']);for(const _0xfefccc of _0x1cb4a6)_0x1cb710['push']({'key':_0xfefccc['attributeKey'],'newValue':_0xfefccc['attributeNewValue'],'oldValue':_0xfefccc['attributeOldValue'],'range':qt(_0xfefccc['range'],_0x1f62fb['model'])});for(const _0x1a1258 of _0x4c9d07){const _0x5283f6=_0x106787['find'](_0x3a2809=>_0x3a2809['position']['isEqual'](_0x1a1258['position']));_0x5283f6&&_0x1cb710['push']({'key':u,'newValue':_0x1a1258['name'],'oldValue':_0x5283f6['name'],'range':_0x1f62fb['model']['createRangeOn'](_0x1a1258['position']['nodeAfter'])});}return 0x0!=_0x1cb710['length']&&this['_reduceExistingSuggestions'](_0x436e5e,_0x1cb710);}['_processAttributeSuggestions'](_0x1b6077){let _0x544062=!0x1;const _0x203aa2=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x225825=>_0x225825['data']['newRange']&&_0x225825['name']['startsWith']('suggestion:attribute:'));for(const _0x5540da of _0x203aa2){const {subType:_0x675674,id:_0x19df5a}=this['_splitMarkerName'](_0x5540da['name']),_0x18e9c8=_0x675674['split']('|')[0x0];for(const _0x24ce14 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24ce14['id']!=_0x19df5a&&'attribute'==_0x24ce14['type']&&_0x24ce14['data']&&_0x24ce14['data']['key']==_0x18e9c8&&_0x24ce14['getFirstRange']()['isIntersecting'](_0x5540da['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24ce14,_0x5540da['data']['newRange'],_0x1b6077),_0x544062=!0x0);}return _0x544062;}['_recordAttributeChanges'](_0x3f3ff8){this['_recordAttributeSuggestions']=!0x0,_0x3f3ff8();}['_isRegisteredAttribute'](_0x40e661){const _0x4f4e6e=this['_isBlockAttribute'](_0x40e661),_0x503f09=this['_inlineAttributeKeys']['has'](_0x40e661);return _0x4f4e6e||_0x503f09;}['_reduceExistingSuggestions'](_0xbbf20e,_0x4792e6){if(0x0==_0x4792e6['length'])return!0x1;let _0x51ef08=!0x1;for(const _0x52fd31 of _0x4792e6){const _0x43710a=this['_findSuggestions'](_0x52fd31['range'],'attribute')['filter'](_0x53731d=>!_0x53731d['meta']['isNextTo'])['map'](_0x51298b=>_0x51298b['suggestion']),_0x42c84d=_0x2af07e({'newValue':_0x52fd31['newValue']});_0x43710a['filter'](_0x52d785=>{const [_0x42d2b5,_0x692ad1]=_0x52d785['subType']['split']('|');return _0x42d2b5==_0x52fd31['key']&&_0x692ad1!=_0x42c84d;})['forEach'](_0x4abc26=>{this['_reduceSuggestionAttributeRange'](_0x4abc26,_0x52fd31['range'],_0xbbf20e),_0x51ef08=!0x0;});}return _0x51ef08;}['_reduceSuggestionAttributeRange'](_0x3aaa35,_0x2d232,_0x422526){const _0x3df87f=_0x3aaa35['getFirstRange']()['getDifference'](_0x2d232);0x0!==_0x3df87f['length']?0x1!==_0x3df87f['length']?this['_breakSuggestionMarker'](_0x3aaa35,_0x2d232['start'],_0x2d232['end']):this['_setSuggestionRange'](_0x3aaa35,_0x3df87f[0x0]):_0x422526['removeMarker'](_0x3aaa35['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x25ed08){this['_editor']=_0x25ed08,this['_model']=_0x25ed08['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1277f5,_0xda9aed,_0x1cee52,_0x340bf2,_0x20ac5b,_0x55f865){return new o(this['_model'],{'type':_0x1277f5,'subType':_0xda9aed,'id':_0x1cee52,'author':_0x340bf2,'creator':_0x340bf2,'attributes':_0x20ac5b,'onAttributesChange':_0x55f865,'onAccept':(..._0x422d76)=>this['getSuggestionCallback'](_0x1277f5,_0xda9aed,'accept')(..._0x422d76),'onDiscard':(..._0xa9b29)=>this['getSuggestionCallback'](_0x1277f5,_0xda9aed,'discard')(..._0xa9b29)});}['registerCustomCallback'](_0x28a9fa,_0x17e9c0,_0x380d30,_0x386b50){const _0x11fcd0=_0x28a9fa+':'+_0x17e9c0+':'+_0x380d30;this['_customCallbacks']['set'](_0x11fcd0,_0x386b50);}['getSuggestionCallback'](_0x17ab35,_0x31055d,_0x3bf2c4){const _0x35471c=_0x17ab35+':'+_0x31055d+':'+_0x3bf2c4;return this['_customCallbacks']['get'](_0x35471c)||this['_defaultCallbacks']['get'](_0x17ab35+':'+_0x3bf2c4);}['_registerDefaultCallbacks'](){const _0x3cf245=()=>!0x1,_0x3bad7e=_0x58e9ba=>{_0x58e9ba['sort']((_0x3fc9ce,_0x2002c1)=>_0x3fc9ce['start']['isBefore'](_0x2002c1['start'])?0x1:-0x1),this['_model']['change'](_0x425ff9=>{for(const _0x83e8d9 of _0x58e9ba){let _0x5ac8f6;_0x5ac8f6=_0x83e8d9['end']['isAtEnd']&&_0x83e8d9['end']['parent']==_0x83e8d9['start']['nodeAfter']?_0x425ff9['createSelection'](_0x83e8d9['start']['nodeAfter'],'on'):_0x425ff9['createSelection'](_0x83e8d9),this['_model']['deleteContent'](_0x5ac8f6,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3cf1a4=(_0xddc0e,_0x11afff)=>{_0x11afff&&this['_model']['change'](_0x4e9002=>{const {commandName:_0x62c5f2,commandParams:_0x3db661=[]}=_0x11afff,_0x262e68=_0xddc0e['map'](_0x4c83c8=>(Lt(_0x4c83c8)&&(_0x4c83c8=this['_model']['createRange'](_0x4c83c8['end'])),_0x4c83c8))['filter'](_0x2d6f12=>'$graveyard'!==_0x2d6f12['root']['rootName']);if(_0x262e68['length']<0x1)return;const _0x3c7887=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1b6161=>_0x2ee791['fromRange'](_0x1b6161));_0x4e9002['setSelection'](_0x262e68);for(const _0x4cff5a of this['_editor']['commands']['commands']())_0x4cff5a['refresh']();_0x3db661['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x62c5f2,..._0x3db661);const _0x11cc27=_0x3c7887['filter'](_0x3614c3=>'$graveyard'!=_0x3614c3['root']['rootName']);_0x11cc27['length']>0x0&&_0x4e9002['setSelection'](_0x11cc27);for(const _0x137af8 of _0x3c7887)_0x137af8['detach']();});},_0x480f01=(_0x2c3963,_0x4dbf53)=>0x1==_0x2c3963['length']&&0x1==_0x4dbf53['length']&&_0x2c3963[0x0]['end']['isEqual'](_0x4dbf53[0x0]['start']),_0x429754=(_0x50d6ab,_0x261d54,_0x57c7ab,_0xf33063)=>Wt(_0x50d6ab,_0x261d54,_0x57c7ab,_0xf33063)?[_0x50d6ab,_0x261d54]:Wt(_0x261d54,_0x50d6ab,_0xf33063,_0x57c7ab)?[_0x261d54,_0x50d6ab]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3cf245),this['_defaultCallbacks']['set']('insertion:discard',_0x3bad7e),this['_defaultCallbacks']['set']('insertion:join',_0x480f01),this['_defaultCallbacks']['set']('insertion:chain',_0x429754),this['_defaultCallbacks']['set']('deletion:accept',_0x3bad7e),this['_defaultCallbacks']['set']('deletion:discard',_0x3cf245),this['_defaultCallbacks']['set']('deletion:join',_0x480f01),this['_defaultCallbacks']['set']('deletion:chain',_0x429754),this['_defaultCallbacks']['set']('formatInline:accept',_0x3cf1a4),this['_defaultCallbacks']['set']('formatInline:discard',_0x3cf245),this['_defaultCallbacks']['set']('formatInline:join',_0x480f01),this['_defaultCallbacks']['set']('formatInline:chain',_0x3cf245),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3cf1a4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3cf245),this['_defaultCallbacks']['set']('formatBlock:join',_0x480f01),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3cf245),this['_defaultCallbacks']['set']('attribute:accept',_0x3cf245),this['_defaultCallbacks']['set']('attribute:discard',(_0x5d3bc3,_0x45948b)=>{if(!_0x45948b)return;const _0x1281d3=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x253c54=>{if(_0x45948b['key']==u)for(const _0x4b34f8 of _0x5d3bc3){const _0x510cb1=_0x4b34f8['start']['nodeAfter'],_0x56765e=_0x45948b['oldValue'];_0x253c54['rename'](_0x510cb1,_0x56765e);}else{if(_0x1281d3['_isBlockAttribute'](_0x45948b['key'])){for(const _0x4e4ece of _0x5d3bc3)void 0x0!==_0x45948b['oldValue']?_0x253c54['setAttribute'](_0x45948b['key'],_0x45948b['oldValue'],_0x4e4ece['start']['nodeAfter']):_0x253c54['removeAttribute'](_0x45948b['key'],_0x4e4ece['start']['nodeAfter']);}else{for(const _0x18b563 of _0x5d3bc3)_0x45948b['oldValue']?_0x253c54['setAttribute'](_0x45948b['key'],_0x45948b['oldValue'],_0x18b563):_0x253c54['removeAttribute'](_0x45948b['key'],_0x18b563);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x480f01);}}function Gt(_0x3a3707,_0x31eab4,_0xadddf8){for(const _0x4ab3e2 of _0x31eab4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4ab3e2['root']==_0x4ab3e2)return!0x1;if(!_0xadddf8['containsItem'](_0x4ab3e2))return!0x1;if(_0x3a3707['isObject'](_0x4ab3e2)||_0x3a3707['isLimit'](_0x4ab3e2))return!0x0;}return!0x1;}function Lt(_0x38f8b2){return _0x38f8b2['end']['parent']==_0x38f8b2['start']['nodeAfter']&&_0x38f8b2['end']['isAtStart'];}function Jt(_0x40e7b2,_0x2c8f83,_0x139b0d,_0x8d20c7){const _0x5b79ac=_0x614534=>!_0x614534['item']['is']('$textProxy')&&!_0x8d20c7['isObject'](_0x614534['item']),_0x3019f6=_0x40e7b2['start']['getLastMatchingPosition'](_0x5b79ac),_0x2b2d4b=_0x40e7b2['end']['getLastMatchingPosition'](_0x5b79ac,{'direction':'backward'});return(!_0x40e7b2['start']['isEqual'](_0x3019f6)||!_0x40e7b2['end']['isEqual'](_0x2b2d4b))&&(_0x3019f6['isBefore'](_0x2b2d4b)?_0x139b0d['updateMarker'](_0x2c8f83,{'range':_0x139b0d['createRange'](_0x3019f6,_0x2b2d4b)}):_0x139b0d['removeMarker'](_0x2c8f83),!0x0);}function Kt(_0x2698b9){return _0x2af07e(_0x2698b9);}function Ht(_0x1fc143){const _0x1137ea=_0x1fc143['start']['nodeAfter'];return _0x1137ea&&_0x1137ea['is']('element');}function qt(_0x33e8b2,_0x3eefa2){return null==_0x33e8b2['end']['nodeBefore']&&_0x33e8b2['end']['parent']==_0x33e8b2['start']['nodeAfter']?zt(_0x33e8b2['start']['nodeAfter'],_0x3eefa2):_0x33e8b2;}function zt(_0x36d148,_0x22a6d4){const _0x335eef=_0x22a6d4['schema']['isObject'](_0x36d148)||_0x22a6d4['schema']['isSelectable'](_0x36d148);return _0x22a6d4['createRange'](_0x22a6d4['createPositionAt'](_0x36d148,'before'),_0x335eef?_0x22a6d4['createPositionAfter'](_0x36d148):_0x22a6d4['createPositionAt'](_0x36d148,'end'));}function Wt(_0x49bebe,_0x54b9cb,_0x166f5f,_0x6f8d03){return!!Qt(_0x49bebe,_0x54b9cb)&&_0x166f5f['end']['isEqual'](_0x6f8d03['start']);}function Qt(_0x2b186a,_0x4f110a){if(!_0x2b186a['_isDataLoaded']||!_0x4f110a['_isDataLoaded'])return!0x1;const _0xa07d0e=new Set(Object['keys'](_0x2b186a['attributes'])),_0x84e028=new Set(Object['keys'](_0x4f110a['attributes']));if(_0xa07d0e['delete']('groupId'),_0x84e028['delete']('groupId'),0x0==_0xa07d0e['size']&&0x0==_0x84e028['size'])return!0x0;if(_0xa07d0e['size']!=_0x84e028['size'])return!0x1;const _0x3187b3={..._0x2b186a['attributes']},_0x45cac5={..._0x4f110a['attributes']};return delete _0x3187b3['groupId'],delete _0x45cac5['groupId'],JSON['stringify'](_0x3187b3)==JSON['stringify'](_0x45cac5);}function Xt(_0x50f5f9,_0x117d3e){const _0x113a1b=Yt(_0x50f5f9['attributes']),_0x14cbad=Yt(_0x117d3e);if(!_0x50f5f9['_isDataLoaded'])return!0x1;for(const _0x100a0a of Object['keys'](_0x14cbad))if(!_0xa63f93(_0x113a1b[_0x100a0a],_0x14cbad[_0x100a0a]))return!0x1;return!0x0;}function Yt(_0x40afe6){const _0x41cf02=Object['assign']({},_0x40afe6);return delete _0x41cf02['skipNestingCheck'],delete _0x41cf02['tablePasteChainId'],_0x41cf02;}class pe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2284c7(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1d8610,_0x1c4b39,_0x585148,_0x4f0e9b){super(),this['model']=_0x1c4b39,this['view']=_0x585148,this['commentThreadController']=_0x4f0e9b,this['_editor']=_0x1d8610,this['_acceptCommand']=_0x1d8610['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1d8610['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5780b8,_0xce70a7)=>_0x5780b8||_0xce70a7),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x198560=>_0x198560&&this['_editor']['model']['canEditAt'](_0x1c4b39['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x146caa=>_0x146caa&&this['_editor']['model']['canEditAt'](_0x1c4b39['getRanges']())),this['_pendingAction']=null,_0x585148['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x585148,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x585148,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x585148,'change:isDirty',()=>{_0x585148['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 _0x180ef7=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x180ef7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0xc088de{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x19d586,_0x3e01f4,_0xc45d12,_0x4b65f8){super(_0x19d586),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0xffbd6(_0x19d586,c(_0x19d586,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3e01f4['authoredAt']),this['bind']('authoredAt')['to'](_0x3e01f4),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',_0x3e01f4,'authoredAt',this,'descriptionParts',(_0x4edc36,_0x39ba40,_0x1a6043)=>{const _0x3a69ab=_0x1a6043['map'](_0x239a60=>ls(_0x239a60['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4edc36-0x1,_0x3e01f4['author']['name'],_0x39ba40?_0x4b65f8['formatDateTime'](_0x39ba40):'',new DOMParser()['parseFromString'](_0x3a69ab,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4c80ed(),this['focusTracker']=new _0x2b5a6d(),this['keystrokes']=new _0x169dd8(),this['focusCycler']=new _0x457f9d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a8e5d=>_0x4a8e5d['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3e01f4,this['_localUser']=_0xc45d12,this['_config']=_0x4b65f8,_0x4b65f8['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x16983b(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5d9197}=this['_config'];this['commentsListView']=new _0x5d9197(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',_0x4ac964=>_0x4ac964+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0xd75fde,_0xcbe98c)=>_0xd75fde||!!_0xcbe98c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x57b120}=this['_config'],_0x222fac=new _0x57b120(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1231d2=_0x222fac['commentInputView'];return _0x222fac['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1231d2,'value',(_0x140a27,_0x3885db,_0x2e3a8a)=>!!_0x2e3a8a||_0x140a27&&!_0x3885db),_0x1231d2['on']('submit',(_0x122b22,_0x2956bb)=>{this['fire']('addComment',_0x2956bb),_0x1231d2['editor']['setData']('');}),_0x1231d2['on']('cancel',()=>this['focus']()),_0x1231d2['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x222fac;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x56a146,_0x1aa214,_0x35ecf9,_0x4f1a1e){super(_0x56a146,_0x1aa214,_0x35ecf9,_0x4f1a1e),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2a65bf=>_0x2a65bf&&_0x2a65bf[0x0]?_0x2a65bf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x4ae203,_0x35a88e)=>{let _0x1c797b='';for(const _0x463262 of _0x4ae203)_0x1c797b+='<p>'+ls(_0x463262['content'],_0x463262['color'])+'</p>';return _0x35a88e?_0x1c797b:ti(_0x1c797b,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4f1a1e['SuggestionView'](_0x56a146,_0x1aa214,{'formatDateTime':_0x4f1a1e['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 _0x59045d=this['bindTemplate'],_0x4b5a07=[this['suggestionView']];return this['commentsListView']&&_0x4b5a07['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4b5a07['push'](this['commentThreadInputView']),_0x4b5a07['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x59045d['if']('isActive','ck-suggestion-wrapper--active'),_0x59045d['to']('type',_0x16bd68=>'ck-suggestion-'+_0x16bd68),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':_0x59045d['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4b5a07};}['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 we extends _0xc088de{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x181cbd,_0x5b0e7d,_0x5717fe){super(_0x181cbd),this['_model']=_0x5b0e7d,this['_config']=_0x5717fe,this['set']('description',''),this['bind']('authoredAt')['to'](_0x5b0e7d),this['acceptButton']=this['_createButton'](c(_0x181cbd,'Accept\x20suggestion'),_0x9715d6,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x181cbd,'Discard\x20suggestion'),_0x1916af,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5141a4(_0x181cbd,_0x5b0e7d['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4c80ed([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2b5a6d(),this['keystrokes']=new _0x169dd8(),this['focusCycler']=new _0x457f9d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x34bf52=>_0x34bf52['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4d7f6a=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4d7f6a['innerHTML']=this['description'],this['on']('change:description',(_0x3588f0,_0x1b2b13,_0x5c73e6)=>{_0x4d7f6a['innerHTML']=_0x5c73e6;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x46d899=this['bindTemplate'],_0x4805d0=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x46d899['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x46d899['to']('authoredAt',_0x109e03=>this['_config']['formatDateTime'](_0x109e03))}]}]},{'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']&&_0x4805d0['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':_0x4805d0}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x54dd81,_0x2a13ce,_0x418788,_0x29cfa8,_0x334bdb){const _0x2eb1db=new _0x27e066(this['locale']);return _0x2eb1db['set']({'label':_0x54dd81,'icon':_0x2a13ce,'tooltip':!0x0,'tooltipPosition':_0x334bdb}),_0x2eb1db['extendTemplate']({'attributes':{'class':_0x418788}}),_0x2eb1db['on']('execute',()=>{this['fire'](_0x29cfa8,this['_model']['id']);}),_0x2eb1db;}['_setupKeyboardNavigation'](){const _0x4044f6=this['element'];this['keystrokes']['listenTo'](_0x4044f6);for(const _0x39a16a of this['focusables'])this['focusTracker']['add'](_0x39a16a['element']),this['keystrokes']['listenTo'](_0x39a16a['element']);this['keystrokes']['set']('enter',(_0x583bc8,_0x4ab61d)=>{_0x4044f6===_0x583bc8['target']&&(this['focusCycler']['focusFirst'](),_0x4ab61d());}),this['keystrokes']['set']('esc',(_0x45dc49,_0x4475a1)=>{_0x4044f6!==_0x45dc49['target']&&(this['focus'](),_0x4475a1());});}}class d extends _0x48ff0c{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x27c4c5,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16bb5f){super(_0x16bb5f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a3e2b=this['editor']['config'];_0x4a3e2b['define']('trackChanges.SuggestionThreadView',fe),_0x4a3e2b['define']('trackChanges.SuggestionView',we),_0x4a3e2b['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a3e2b['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x473e3a,_0x57c0e4){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x30349d,_0x1f488f]of this['_handleControllerBuffer']){const _0x32f077=this['_suggestionToController']['has'](_0x30349d);_0x32f077||_0x1f488f?_0x32f077&&_0x1f488f&&this['_destroyController'](_0x30349d):this['_initializeController'](_0x30349d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x473e3a,_0x57c0e4);}['init'](){const _0x539618=this['editor'],_0x138be7=_0x539618['plugins']['get']('TrackChangesEditing'),_0x4e58f5=_0x539618['plugins']['get']('Annotations'),_0x5262bf=_0x539618['plugins']['get']('EditorAnnotations'),_0x111be8=_0x539618['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5262bf['addSourceCollector'](()=>{const _0x45b152=[];for(const [_0x18e5f2,_0x3c3c56]of Array['from'](this['_suggestionToController'])){const _0x3e9934=_0x18e5f2['getAllAdjacentSuggestions'](),_0x58649f=[];for(const _0x2ece91 of _0x3e9934){if(!_0x2ece91['isInContent'])continue;if(_0x2ece91['isMultiRange']){_0x58649f['push'](..._0x2ece91['getRanges']());continue;}const _0x29c91e=_0x2ece91['getFirstRange']();if(_0x58649f['length']>0x0){const _0xd5ba67=_0x58649f[0x0]['getJoined'](_0x29c91e);if(_0xd5ba67){_0x58649f[0x0]=_0xd5ba67;continue;}}_0x58649f['push'](_0x29c91e);}_0x45b152['push']([_0x3c3c56['view'],_0x58649f]);}return _0x45b152;}),this['listenTo'](_0x138be7,'suggestionLoaded',(_0x4c137f,_0x35ff19)=>{this['listenTo'](_0x35ff19,'change:previous',(_0x5db95b,_0x508183,_0x2d0e69,_0x2b114d)=>{_0x35ff19['isInContent']&&(null==_0x2d0e69?(this['_updateController'](_0x2b114d['head']),this['_handleSuggestionControllerDelayed'](_0x35ff19,!0x1)):(this['_updateController'](_0x2d0e69['head']),null==_0x2b114d&&this['_handleSuggestionControllerDelayed'](_0x35ff19,!0x0)));}),null!==_0x35ff19['previous']?this['_updateController'](_0x35ff19['head']):this['_handleSuggestionControllerDelayed'](_0x35ff19,!0x1);}),this['listenTo'](_0x138be7,'suggestionUnloaded',(_0x358a78,_0x59d786,_0x5456c3)=>{this['stopListening'](_0x59d786,'change:previous'),this['_handleControllerBuffer']['delete'](_0x59d786),this['_suggestionToController']['has'](_0x59d786)&&this['_destroyController'](_0x59d786),_0x5456c3&&this['_updateController'](_0x5456c3['head']);}),this['listenTo'](_0x138be7,'suggestionChanged',(_0x313d8b,_0x3fc7d2)=>{this['_updateController'](_0x3fc7d2);}),this['listenTo'](_0x4e58f5,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x111be8,'addComment',(_0xc018d2,{threadId:_0x3a245b,isFromAdapter:_0x46aaaf})=>{if(_0x46aaaf||!_0x138be7['hasSuggestion'](_0x3a245b))return;const _0x5bc290=_0x138be7['getSuggestion'](_0x3a245b);this['_suggestionToController']['get'](_0x5bc290)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x42badc=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4c139c;for(const _0x424111 in _0x42badc){const _0x5ca506=_0x424111,_0x3f5f66=_0x42badc[_0x5ca506];if('trackChangesLicenseKeyValid'==_0x3f5f66||'trackChangesLicenseKeyInvalid'==_0x3f5f66||'trackChangesLicenseKeyExpired'==_0x3f5f66||'trackChangesLicenseKeyDomainLimit'==_0x3f5f66||'trackChangesLicenseKeyNotAllowed'==_0x3f5f66||'trackChangesLicenseKeyEvaluationLimit'==_0x3f5f66||'trackChangesLicenseKeyTrialLimit'==_0x3f5f66||'trackChangesLicenseKeyUsageLimit'==_0x3f5f66){delete _0x42badc[_0x5ca506],_0x4c139c=_0x3f5f66,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x4c139c&&_0x42badc['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x4c139c&&_0x42badc['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x4c139c&&_0x42badc['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x4c139c&&_0x42badc['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x4c139c&&_0x42badc['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x4c139c&&_0x42badc['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x4c139c&&_0x42badc['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x5564db=this['editor']['plugins']['get']('Annotations'),_0x1224b2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1d0d0a=Array['from'](_0x5564db['activeAnnotations'],_0x44dc37=>_0x44dc37['innerView'])['filter'](_0x24be9c=>this['_viewToController']['has'](_0x24be9c)),_0x26b8c2=[];for(const _0x52e9b4 of _0x1d0d0a){const _0x442d1c=this['_viewToController']['get'](_0x52e9b4)['model']['getAllAdjacentSuggestions']();_0x26b8c2['push'](..._0x442d1c['reduce']((_0x368e57,_0xaf0f31)=>[..._0x368e57,..._0xaf0f31['getMarkerNames']()],[]));}_0x1224b2['activeMarkers']=_0x26b8c2;}['_addUIComponentsToFactory'](){const _0x5a5405=this['editor'],_0x576f88=_0x5a5405['locale'],_0x1fcc6c=c(_0x576f88,'Track\x20changes'),_0x2a72be=new _0xc4c908([{'type':'switchbutton','model':new _0x45db26({'withText':!0x0,'isToggleable':!0x0,'label':_0x1fcc6c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x45db26({'withText':!0x0,'label':c(_0x576f88,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45db26({'withText':!0x0,'label':c(_0x576f88,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45db26({'withText':!0x0,'label':c(_0x576f88,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x45db26({'withText':!0x0,'label':c(_0x576f88,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x5a5405['plugins']['has']('TrackChangesPreview')&&_0x2a72be['addMany']([{'type':'separator'},{'type':'button','model':new _0x45db26({'withText':!0x0,'label':c(_0x576f88,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x54c8d3 of _0x2a72be)if(ke(_0x54c8d3)){const _0x4c4e7a=_0x5a5405['commands']['get'](_0x54c8d3['model']['commandName']);_0x54c8d3['model']['bind']('isOn','isEnabled')['to'](_0x4c4e7a,'value','isEnabled');}_0x5a5405['ui']['componentFactory']['add']('trackChanges',_0x1ec5c0=>this['_createToolbarButton'](_0x1ec5c0,_0x2a72be,_0x1fcc6c)),_0x5a5405['ui']['componentFactory']['add']('menuBar:trackChanges',_0x210e80=>this['_createMenuBarMenu'](_0x210e80,_0x2a72be,_0x1fcc6c));}['_createToolbarButton'](_0x341282,_0x498220,_0x3f6da3){const _0x15eb2b=_0x30bdae(_0x341282,_0x3997ff),_0x1493e9=this['editor']['commands']['get']('trackChanges');_0x15eb2b['buttonView']['set']({'tooltip':_0x3f6da3,'label':_0x3f6da3,'icon':_0x905e1b}),_0x15eb2b['buttonView']['bind']('isOn')['to'](_0x1493e9,'value'),_0x15eb2b['buttonView']['on']('execute',()=>{_0x1493e9['execute'](),this['editor']['editing']['view']['focus']();}),_0x1ba1c8(_0x15eb2b,_0x498220,{'role':'menu'});const _0x480c9f=[];for(const _0x5417b8 of _0x498220)ke(_0x5417b8)&&_0x480c9f['push'](this['editor']['commands']['get'](_0x5417b8['model']['commandName']));const _0x596db3=_0x15eb2b['buttonView'];return _0x596db3['actionView']['unbind']('isEnabled'),_0x596db3['arrowView']['unbind']('isEnabled'),_0x596db3['actionView']['bind']('isEnabled')['to'](_0x1493e9,'isEnabled'),_0x596db3['arrowView']['bind']('isEnabled')['toMany'](_0x480c9f,'isEnabled',(..._0x5205b0)=>_0x5205b0['some'](_0x1680bb=>_0x1680bb)),_0x15eb2b['on']('execute',_0x47fe52=>{this['editor']['execute'](_0x47fe52['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x15eb2b;}['_createMenuBarMenu'](_0x2e6b53,_0x38951e,_0x46a451){const _0xbcb3=new _0x24cbe4(_0x2e6b53),_0x145ae4=this['editor']['commands']['get']('trackChanges');_0xbcb3['buttonView']['set']({'label':_0x46a451,'icon':_0x905e1b});const _0x140169=new _0x4151be(_0x2e6b53);for(const _0x374d7b of _0x38951e){if('separator'==_0x374d7b['type']){_0x140169['items']['add'](new _0x47c3c2(_0x2e6b53));continue;}const _0x4b07d8=new _0x42d612(_0x2e6b53,_0xbcb3),_0x35bf53=new _0x165d31(_0x2e6b53),_0xb7ea16=_0x374d7b['model'];_0x35bf53['bind'](...Object['keys'](_0xb7ea16))['to'](_0xb7ea16),_0x35bf53['delegate']('execute')['to'](_0xbcb3),_0x35bf53['on']('execute',()=>{this['editor']['execute'](_0xb7ea16['commandName']),this['editor']['editing']['view']['focus']();}),_0x4b07d8['children']['add'](_0x35bf53),_0x140169['items']['add'](_0x4b07d8);}return _0xbcb3['bind']('isEnabled')['to'](_0x145ae4,'isEnabled'),_0xbcb3['panelView']['children']['add'](_0x140169),_0xbcb3;}['_initializeController'](_0x42cfc1){const _0x56dd98=this['editor'],_0x17e98b=_0x56dd98['config'],_0x2293b1=_0x56dd98['plugins']['get']('Annotations'),_0x3eca90=_0x56dd98['plugins']['get']('CommentsRepository'),_0x11511=_0x56dd98['plugins']['get']('EditorAnnotations'),_0x496998=_0x56dd98['plugins']['get'](_0x27c4c5)['me'],_0x596d06=_0x17e98b['get']('trackChanges')['SuggestionThreadView'],_0x14f75a=_0x17e98b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x50641f,CommentThreadInputView:_0x226cee}=_0x56dd98['plugins']['get']('CommentsUI');let _0x176f1d,_0x54d694,_0x3e5b57;this['_annotationViews']['has'](_0x42cfc1['id'])?(_0x54d694=this['_annotationViews']['get'](_0x42cfc1['id']),_0x176f1d=_0x54d694['mainView']):(_0x176f1d=new _0x596d06(_0x56dd98['locale'],_0x42cfc1,_0x496998,{'disableComments':this['_disableComments'],'editorConfig':{..._0x17e98b['get']('comments.editorConfig'),'licenseKey':_0x17e98b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x17e98b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x17e98b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x17e98b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x101be9(_0x17e98b['get']('locale'),_0x56dd98['locale']),'CommentView':_0x17e98b['get']('comments')['CommentView'],'CommentsListView':_0x50641f,'CommentThreadInputView':_0x226cee,'SuggestionView':_0x14f75a}),_0x176f1d['suggestionView']['acceptButton']['on']('execute',()=>{_0x56dd98['editing']['view']['focus']();}),_0x176f1d['suggestionView']['discardButton']['on']('execute',()=>{_0x56dd98['editing']['view']['focus']();}),_0x54d694=_0x2293b1['createAnnotationView'](this['editor']['locale'],_0x176f1d),_0x54d694['bind']('isDirty')['to'](_0x176f1d,'isDirty'),_0x54d694['bind']('length')['to'](_0x176f1d),_0x54d694['bind']('type')['to'](_0x176f1d,'type',_0x29e6a4=>'suggestion-'+_0x29e6a4),_0x176f1d['on']('escape',()=>{_0x3e5b57['fire']('escape');}),this['_annotationViews']['set'](_0x42cfc1['id'],_0x54d694));const _0x130e66=_0x3eca90['createCommentThreadController'](_0x42cfc1['commentThread'],_0x176f1d),_0x3f0870=new pe(_0x56dd98,_0x42cfc1,_0x176f1d,_0x130e66),_0x430c5f=_0x42cfc1['getAllAdjacentSuggestions']()['filter'](_0x13adf9=>_0x13adf9['isInContent']);_0x176f1d['descriptionParts']=_0x56dd98['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x430c5f),this['_suggestionToController']['set'](_0x42cfc1,_0x3f0870),this['_viewToController']['set'](_0x176f1d,_0x3f0870),_0x3e5b57=_0x2293b1['createAnnotation']({'view':_0x54d694,'target':()=>{const _0x14063d=[],_0x355110=_0x42cfc1['getAllAdjacentSuggestions']()['filter'](_0x45b0be=>_0x45b0be['isInContent']);for(const _0x135cb9 of _0x355110)_0x14063d['push'](..._0x135cb9['getMarkers']());return _0x14fb39(_0x56dd98['editing'],_0x14063d);},'type':()=>'suggestion-'+_0x3f0870['view']['type']}),_0x3eca90['_bindAnnotationToEditors'](_0x176f1d,_0x3e5b57),_0x2293b1['add'](_0x3e5b57),_0x11511['registerAnnotation'](_0x3e5b57);}['_destroyController'](_0x3985c2){const _0x105791=this['editor']['plugins']['get']('CommentsRepository'),_0x2cf56d=this['editor']['plugins']['get']('Annotations'),_0x2030d9=this['_suggestionToController']['get'](_0x3985c2),_0x9f1969=_0x2030d9['view'],_0x4f4dad=_0x2cf56d['getByInnerView'](_0x9f1969);_0x105791['_unbindEditors'](_0x9f1969),_0x4f4dad&&_0x2cf56d['remove'](_0x4f4dad),this['_suggestionToController']['delete'](_0x3985c2),this['_viewToController']['delete'](_0x9f1969),_0x2030d9['destroy']();}['_updateController'](_0x1f7b01){if(!_0x1f7b01['isInContent']||!this['_suggestionToController']['has'](_0x1f7b01))return;const _0x3500d6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2cc0e8=this['_suggestionToController']['get'](_0x1f7b01),_0x1b083f=_0x1f7b01['getAllAdjacentSuggestions']();_0x2cc0e8['view']['descriptionParts']=_0x3500d6['descriptionFactory']['getDescriptions'](_0x1b083f);}['destroy'](){for(const _0x212863 of this['_suggestionToController']['keys']())this['_destroyController'](_0x212863);for(const _0x87fe7f of this['_annotationViews']['values']())_0x87fe7f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x48b634){return'model'in _0x48b634;}class k extends _0x48ff0c{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x61f6fb){this['editor']['plugins']['get'](p)['adapter']=_0x61f6fb;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x13e781){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x13e781);}['getSuggestions']({skipNotAttached:_0x5d2380=!0x1,toJSON:_0x2bc781=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5d2380,'toJSON':_0x2bc781});}['getSuggestion'](_0x3940b9){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3940b9);}}const w=['Pagination'];class T extends _0x48ff0c{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1e924e=this['editor'];if(_0x1e924e['config']['define']('trackChangesData.editorCreator',_0x477bd0=>{const _0x2c16fd=_0x1e924e['model']['document']['getRootNames']()['reduce']((_0x3b7a03,_0x5bed72)=>(_0x3b7a03[_0x5bed72]='',_0x3b7a03),{});return _0x1e924e['constructor']['create'](_0x2c16fd,_0x477bd0);}),'function'!=typeof _0x1e924e['config']['get']('trackChangesData')['editorCreator'])throw new _0x3d4c39('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x448441){return N(this['editor'],!0x0,_0x448441);}['getDataWithDiscardedSuggestions'](_0x356c2d){return N(this['editor'],!0x1,_0x356c2d);}}class D extends _0x48ff0c{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52ced6){function _0x191219(_0x25698b){return _0x25698b['map'](_0x1d8c44=>String['fromCharCode'](_0x1d8c44))['join']('');}super(_0x52ced6),this['result']='end',_0x52ced6[_0x191219([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x191219([0x76,0x69,0x65,0x77])][_0x191219([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x191219([0x61,0x75,0x74,0x6f]),_0x52ced6[_0x191219([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x191219([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x191219([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x191219([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x191219([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 Ge(_0x16ebe0){return void 0x0!==_0x16ebe0['getRootsAttributes'];}async function N(_0x208dda,_0x5eaa94,_0x2e6516){const _0x20ffa7=_0x1753c0(_0x208dda,w);_0x20ffa7['plugins']['push'](p,D),_0x20ffa7['rootsAttributes']=Ge(_0x208dda)?_0x208dda['getRootsAttributes']():void 0x0;const _0x43d68f=document['createDocumentFragment'](),_0x2bc146=_0x208dda['config']['get']('trackChangesData')['editorCreator'],_0x29f9de=await _0x2bc146(_0x20ffa7,()=>function(_0x32634d){const _0x296a2a=document['createElement']('div');return _0x32634d['appendChild'](_0x296a2a),_0x296a2a;}(_0x43d68f));!function(_0x340616,_0x260faa){const _0x3ea62a=_0x340616['model']['document']['getRootNames']()['reduce']((_0x35d90b,_0x1946a8)=>(_0x35d90b[_0x1946a8]=_0x340616['data']['get']({'rootName':_0x1946a8}),_0x35d90b),{}),_0x12f235=_0x340616['plugins']['get']('Users')['users']['map'](_0x235475=>({'id':_0x235475['id'],'name':_0x235475['name']})),_0x14d4b3=_0x340616['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xf82ebe=_0x340616['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x24b451=_0x260faa['plugins']['get']('Users'),_0x5cf8eb=_0x260faa['plugins']['get']('TrackChangesEditing'),_0x4e0195=_0x260faa['plugins']['get']('CommentsRepository');for(const _0x17cbeb of _0x4e0195['getCommentThreads']())_0x17cbeb['remove']();for(const _0x57518d of _0x12f235)_0x24b451['getUser'](_0x57518d['id'])||_0x24b451['addUser'](_0x57518d);_0x24b451['me']||_0x24b451['useAnonymousUser']();for(const _0x3eefd1 of _0xf82ebe)_0x4e0195['addCommentThread'](_0x3eefd1);for(const _0x14d605 of _0x14d4b3)_0x5cf8eb['addSuggestionData'](_0x14d605);_0x260faa['data']['set'](_0x3ea62a);}(_0x208dda,_0x29f9de),_0x29f9de['execute'](_0x5eaa94?'acceptAllSuggestions':'discardAllSuggestions');const _0xb6197c=Ge(_0x29f9de)?_0x29f9de['getFullData'](_0x2e6516):_0x29f9de['data']['get'](_0x2e6516);return await _0x29f9de['destroy'](),_0xb6197c;}class Me extends _0xc088de{['options'];constructor(_0x21d8bd,_0x4cd779){super(_0x21d8bd),this['options']=_0x4cd779,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x3212bd,_0x573c10){if(!this['element'])return;const _0x2e6917=[];for(const [_0x56a7ac,_0x5b7876]of _0x3212bd){const _0x34999a=document['createElement']('div');_0x34999a['setAttribute']('data-ck-root-name',_0x56a7ac),_0x34999a['className']=_0x5b7876['classes']+'\x20ck-track-changes-preview__root-container',_0x34999a['innerHTML']=_0x5b7876['content'],_0x2e6917['push'](_0x34999a);}_0x573c10(this['element'],_0x2e6917),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x159156{constructor(_0xe2d9ee){super(_0xe2d9ee),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x2343b7=this['editor'],_0xb1e6fb=_0x2343b7['locale'],_0x2986ce=_0x2343b7['plugins']['get']('Dialog');let _0x18c5f0;const _0x5625f6=function(_0x2843cb){const _0x22dcc4={};if('editables'in _0x2843cb['ui']['view']){for(const [_0x40a6d8,_0x3a89f4]of Object['entries'](_0x2843cb['ui']['view']['editables']))_0x22dcc4[_0x40a6d8]=_0x3a89f4['element'];}else _0x22dcc4[_0x2843cb['model']['document']['getRootNames']()[0x0]]=_0x2843cb['ui']['view']['editable']['element'];return _0x22dcc4;}(_0x2343b7),_0x14342e=function(_0x43e494){let _0x2ccffe=0x0;for(const _0x4d7d26 of Object['values'](_0x43e494))_0x2ccffe=Math['max'](_0x2ccffe,_0x4d7d26['getBoundingClientRect']()['width']);let _0xe423b=0x0;for(const _0x42ebd2 of Object['values'](_0x43e494))_0xe423b+=_0x42ebd2['getBoundingClientRect']()['height'];const _0x584138=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x421049=Math['min'](_0xe423b,_0x584138);return{'width':_0x2ccffe,'height':_0x421049};}(_0x5625f6);_0x2986ce['show']({'id':'finalContentPreview','title':c(_0xb1e6fb,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xb1e6fb,{'dialogRects':_0x14342e}),'onHide':()=>{_0x18c5f0['detachFromDom']();},'onShow':()=>{_0x2343b7['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x1d8ad5=>{const _0x1e8494=this['_standarizeRootsData'](_0x1d8ad5,_0x2343b7,_0x5625f6);_0x2986ce['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x1e8494,_0x2343b7['config']['get']('trackChanges.preview.renderFunction'));}),_0x18c5f0=new _0x3d0687(_0xb1e6fb,[_0x2986ce['view']]),_0x18c5f0['attachToDom'](),_0x18c5f0['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x2343b7['once']('destroy',()=>{_0x18c5f0['detachFromDom']();});const _0x4daf3e=_0x2986ce['view']['headerView']['class'];_0x2986ce['view']['headerView']['class']=_0x4daf3e?_0x4daf3e+'\x20ck-reset_all':'ck-reset_all',_0x2986ce['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2986ce['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1b01a1=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x5c9239=_0x1b01a1['previewMode'],_0x53d352={};if('$labels'===_0x5c9239){for(const _0x517721 of _0x1b01a1['getMergeFieldsIds']())_0x53d352[_0x517721]=_0x1b01a1['getLabel'](_0x517721)||_0x517721;}else{const _0xe6402f='$defaultValues'===_0x5c9239?_0x1b01a1['getDefaultValues']():_0x1b01a1['getDataSetValues'](_0x5c9239,!0x0);for(const _0x31d28a of Object['entries'](_0xe6402f)){const [_0x3a3d23,_0x2b5d8d]=_0x31d28a;_0x53d352[_0x3a3d23]=null!==_0x2b5d8d?_0x2b5d8d:_0x1b01a1['getLabel'](_0x3a3d23)||_0x3a3d23;}}return{'mergeFieldsData':_0x53d352};}['_standarizeRootsData'](_0x58d672,_0x9d00fb,_0x4abc74){let _0x32746d;if('string'==typeof _0x58d672){const _0xfd4883=_0x9d00fb['model']['document']['getRootNames']()[0x0];_0x32746d={[_0xfd4883]:_0x58d672};}else _0x32746d=_0x58d672;const _0x18828c=this['_fixMediaEmbeds'](_0x32746d,_0x9d00fb),_0x10fa54=function(_0x26f702,_0x2ae522){for(const [_0x376576,_0x3765f9]of _0x26f702)_0x3765f9['classes']=_0x2ae522[_0x376576]['classList']['value']['replace']('ck-focused','');return _0x26f702;}(this['_sortRoots'](_0x9d00fb)['reduce']((_0x5269fc,_0x3faefc)=>(_0x5269fc['push']([_0x3faefc,{'content':_0x18828c[_0x3faefc],'classes':''}]),_0x5269fc),[]),_0x4abc74);return _0x10fa54;}['_fixMediaEmbeds'](_0x5b2c78,_0x34a16e){if(!_0x34a16e['plugins']['has']('MediaEmbedEditing'))return _0x5b2c78;const _0x162090=_0x34a16e['plugins']['get']('MediaEmbedEditing');for(const [_0x5908f2,_0x5d2e6d]of Object['entries'](_0x5b2c78)){const _0x23189b=document['createElement']('div');_0x23189b['innerHTML']=_0x5d2e6d,(_0x23189b['querySelectorAll']('figure.media')['forEach'](_0x5bc213=>{const _0xbdd934=_0x5bc213['querySelector']('oembed');if(_0xbdd934){const _0xeda976=_0xbdd934['getAttribute']('url');if(_0xeda976){const _0x43b8fd=_0x162090['registry']['getMediaViewElement'](new _0x1add0b(_0x34a16e['editing']['view']['document']),_0xeda976,{'elementName':'','renderForEditingView':!0x0}),_0x2f267b=document['createElement']('div');_0x2f267b['classList']['add']('ck-media__wrapper'),_0x43b8fd['render'](_0x2f267b,_0x34a16e['editing']['view']['domConverter']),_0xbdd934['replaceWith'](_0x2f267b);}}}),_0x5b2c78[_0x5908f2]=_0x23189b['innerHTML']);}return _0x5b2c78;}['_sortRoots'](_0x28f80b){if(!function(_0x5a7ce1){return void 0x0!==_0x5a7ce1['getRootsAttributes'];}(_0x28f80b))return _0x28f80b['model']['document']['getRootNames']();const _0x48859f=[],_0x12c43e=new Map();for(const _0x5e2114 of _0x28f80b['model']['document']['getRootNames']()){const _0x298a9b=_0x28f80b['editing']['view']['getDomRoot'](_0x5e2114)['getClientRects']()['item'](0x0);_0x48859f['push'](_0x5e2114),_0x12c43e['set'](_0x5e2114,_0x298a9b);}return _0x48859f['sort']((_0x1d0177,_0x3c7dcd)=>{const _0x12a049=_0x12c43e['get'](_0x1d0177),_0x22ce1f=_0x12c43e['get'](_0x3c7dcd);return _0x12a049['y']-_0x22ce1f['y']||_0x12a049['x']-_0x22ce1f['x'];}),_0x48859f;}}class te extends _0x48ff0c{static get['requires'](){return[T,_0x5d9784];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xa9a193){super(_0xa9a193),_0xa9a193['commands']['add']('previewFinalContent',new re(this['editor'])),_0xa9a193['config']['define']('trackChanges.preview.renderFunction',(_0x38e0df,_0x3b2837)=>{for(const _0x139bba of _0x3b2837)_0x38e0df['appendChild'](_0x139bba);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
|