@ckeditor/ckeditor5-track-changes 42.0.0-alpha.10 → 42.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -3
- package/src/trackchangesediting.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,6 +20,6 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as ts,Plugin as
|
|
24
|
-
_0x169485(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x101445,_0x230f23){super(),this['id']=_0x230f23['id'],this['type']=_0x230f23['type'],this['subType']=_0x230f23['subType']||null,this['author']=_0x230f23['author'],this['creator']=_0x230f23['creator']||_0x230f23['author'],this['isExternal']=Boolean(_0x230f23['attributes']&&_0x230f23['attributes']['@external']),this['data']=null,this['_model']=_0x101445,this['_onAccept']=_0x230f23['onAccept'],this['_onDiscard']=_0x230f23['onDiscard'],this['_onAttributesChange']=_0x230f23['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x230f23['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 _0x16de6c=this;for(;_0x16de6c['previous'];)_0x16de6c=_0x16de6c['previous'];return _0x16de6c;}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'](_0x31d09b){this['_markerNames']['add'](_0x31d09b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x29af08=>this['_model']['markers']['get'](_0x29af08))['filter'](_0x38444b=>_0x38444b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x90c382=>{for(const _0x43f1da of this['getMarkers']())_0x90c382['removeMarker'](_0x43f1da);}),this['_markerNames']['clear']();}['removeMarker'](_0x331a62){this['_model']['change'](_0x2dd7c3=>{_0x2dd7c3['removeMarker'](_0x331a62);}),this['_markerNames']['delete'](_0x331a62);}['addRange'](_0x23543b){const _0x35f06a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x35f06a),this['_model']['change'](_0x26476b=>{_0x26476b['addMarker'](_0x35f06a,{'range':_0x23543b,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x554a51){for(const _0x64567f of this['getRanges']())if(_0x64567f['isIntersecting'](_0x554a51))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x28a5b9=>_0x28a5b9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x43b85d,_0x2957c8)=>[..._0x43b85d,..._0x2957c8['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x4b516e=this['getRanges']();if(0x1!=_0x4b516e['length'])return null;const _0x4c2a4e=_0x4b516e[0x0],_0x5ab7d7=_0x4c2a4e['start']['nodeAfter'],_0x2b0fa9=_0x4c2a4e['end']['nodeBefore'];return _0x5ab7d7 instanceof _0x5b861f?_0x5ab7d7!=_0x2b0fa9?null:_0x5ab7d7: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 _0x3fdd67=[];let _0x33a645=this['head'];for(;_0x33a645;)_0x3fdd67['push'](_0x33a645),_0x33a645=_0x33a645['next'];return _0x3fdd67;}['setAttribute'](_0x30c48a,_0x2218ef){const _0x26e6bc=_0x1fa57d(this['attributes']);_0x348be6(_0x26e6bc,_0x30c48a,_0x2218ef),_0x1c0d8b(_0x26e6bc,this['attributes'])||(this['attributes']=_0x26e6bc,this['_onAttributesChange'](_0x26e6bc));}['removeAttribute'](_0x5df403){const _0x3f6a20=_0x1fa57d(this['attributes']);_0x5c4e94(_0x3f6a20,_0x5df403),_0x1c0d8b(_0x3f6a20,this['attributes'])||(this['attributes']=_0x3f6a20,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 _0xadd5e0()['substr'](0x1,0x5);}}function o(_0x3b95b1,_0x1ef271,_0x16bcf2){const t=_0x3b95b1['t'];switch(_0x1ef271){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x16bcf2);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x16bcf2);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x16bcf2);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x16bcf2);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x16bcf2);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',_0x16bcf2);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x16bcf2);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x16bcf2);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x16bcf2);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x16bcf2);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x16bcf2);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x16bcf2);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x16bcf2);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x16bcf2);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x16bcf2);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x16bcf2);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x16bcf2);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x16bcf2);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x16bcf2);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x16bcf2);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x16bcf2);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x16bcf2);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x16bcf2);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x16bcf2);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x16bcf2);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x16bcf2);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x16bcf2);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x16bcf2);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x16bcf2);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x16bcf2);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'},_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x16bcf2);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'},_0x16bcf2);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x16bcf2);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x16bcf2);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x16bcf2);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x16bcf2);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1ef271;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1d2b4a,_0xba60f6){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1d2b4a,this['_locale']=_0xba60f6;}['getDescriptions'](_0x2b29a1){const _0x394ccc=[],_0x595791=new Set(),_0x2c5dd8=new Set();for(let _0x4a2658=0x0;_0x4a2658<_0x2b29a1['length'];_0x4a2658++){const _0x5ef648=_0x2b29a1[_0x4a2658];if(!_0x5ef648['isInContent'])continue;const _0x34e79f=this['_handleCustomCallbackDescription'](_0x5ef648);if(_0x34e79f){if(null!=_0x5ef648['subType']){if(_0x595791['has'](_0x5ef648['subType']))continue;_0x595791['add'](_0x5ef648['subType']);}_0x394ccc['push'](_0x34e79f);}else{if('attribute'!=_0x5ef648['type'])'insertion'!=_0x5ef648['type']&&'deletion'!=_0x5ef648['type']||this['_handleInsertRemoveSuggestionDescription'](_0x394ccc,_0x5ef648,_0x2b29a1[_0x4a2658+0x1]);else{const _0x481c13=_0x5ef648['data']['key'];if(_0x2c5dd8['has'](_0x481c13))continue;_0x2c5dd8['add'](_0x5ef648['data']['key']),_0x481c13==m?this['_handleRenameSuggestionDescription'](_0x394ccc,_0x5ef648):this['_handleAttributeSuggestionDescription'](_0x394ccc,_0x5ef648);}}}return this['_resolveDescriptionItems'](_0x394ccc);}['registerDescriptionCallback'](_0x200bb5){this['_customCallbacks']['push'](_0x200bb5);}['registerElementLabel'](_0x3da94d,_0x5263ff,_0x4c05c1=_0x8ad537['normal']){'function'==typeof _0x3da94d?_0x2b1d67(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3da94d,'label':_0x5263ff,'priority':_0x4c05c1}):this['_itemLabels']['set'](_0x3da94d,_0x5263ff);}['registerAttributeLabel'](_0x2387e6,_0x10f12c){this['_attributeLabels']['set'](_0x2387e6,_0x10f12c);}['getItemLabel'](_0x327e29,_0x57c21b=0x1){let _0x6eeb28;for(const _0x157371 of this['_itemLabelsCallbacks'])if(_0x157371['matchingCallback'](_0x327e29)){_0x6eeb28=_0x157371['label'];break;}return _0x6eeb28||(_0x6eeb28=this['_itemLabels']['get'](_0x327e29['name'])),_0x6eeb28?_0x6eeb28(_0x57c21b):0x1!==_0x57c21b?_0x57c21b+'\x20'+_0x327e29['name']+'s':''+_0x327e29['name'];}['_addDescriptionItems'](_0x422313,_0x49948b){const _0x2cf2c5=_0x49948b['getFirstRange']()['getWalker'](),_0x175546='insertion'==_0x49948b['type']?'add':'remove';for(const _0x3c95b1 of _0x2cf2c5){const _0x58be32=_0x3c95b1['item'],_0x1a2443=_0x422313[_0x422313['length']-0x1];if(_0x58be32['is']('$textProxy'))_0x1a2443&&_0x1a2443['type']['indexOf']('Container')>-0x1&&_0x422313['pop'](),_0x1a2443&&'text'==_0x1a2443['type']?_0x1a2443[_0x175546]+=_0x58be32['data']:_0x422313['push']({'type':'text','add':'add'==_0x175546?_0x58be32['data']:'','remove':'remove'==_0x175546?_0x58be32['data']:''});else{if(this['_schema']['isObject'](_0x58be32)){const _0x240897=_0x58be32;if(_0x1a2443&&_0x1a2443['type']['indexOf']('Container')>-0x1&&_0x422313['pop'](),'elementEnd'==_0x3c95b1['type'])continue;_0x1a2443&&_0x1a2443['type']==_0x175546+'Object'&&_0x1a2443['element']['name']==_0x240897['name']?_0x1a2443['quantity']++:_0x422313['push']({'type':_0x175546+'Object','element':_0x240897,'quantity':0x1}),_0x2cf2c5['skip'](_0x2f891f=>!('elementEnd'==_0x2f891f['type']&&_0x2f891f['item']==_0x58be32));}else{if(this['_schema']['checkChild'](_0x58be32,'$text')||_0x58be32['is']('element','softBreak')){const _0x16eabe=_0x58be32;if('add'==_0x175546&&'elementStart'==_0x3c95b1['type']||'remove'==_0x175546&&'elementEnd'==_0x3c95b1['type'])continue;if(_0x1a2443&&-0x1==_0x1a2443['type']['indexOf']('Container')){'text'==_0x1a2443['type']&&(_0x1a2443[_0x175546]+='\x0a');continue;}let _0x1ee391;if(_0x1ee391='add'==_0x175546?_0x16eabe['nextSibling']&&!this['_schema']['isObject'](_0x16eabe['nextSibling'])?_0x16eabe['nextSibling']:null:_0x16eabe['previousSibling']&&!this['_schema']['isObject'](_0x16eabe['previousSibling'])?_0x16eabe['previousSibling']:null,_0x16eabe['isEmpty']||_0x1ee391&&_0x1ee391['isEmpty']){const _0x5e3271=_0x1ee391&&_0x1ee391['isEmpty']?_0x1ee391:_0x16eabe;_0x1a2443&&_0x1a2443['type']==_0x175546+'EmptyContainer'&&_0x1a2443['element']['name']==_0x5e3271['name']?_0x1a2443['quantity']++:_0x422313['push']({'type':_0x175546+'EmptyContainer','element':_0x5e3271,'quantity':0x1});}else _0x422313['push']({'type':_0x175546+'Container','element':_0x16eabe});}}}}}['_resolveDescriptionItems'](_0x53d1dc){const _0x3941ff=this['_locale'],_0xfd89b1=[],_0x2ca565=[],_0x4fa566=[];for(const _0x55a4fa of _0x53d1dc)switch(_0x55a4fa['type']){case'text':if(_0x55a4fa['add']=_0x55a4fa['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x55a4fa['remove']=_0x55a4fa['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x55a4fa['add']&&''!=_0x55a4fa['remove']){_0xfd89b1['push']({'type':'replace','content':o(_0x3941ff,'REPLACE_TEXT',['\x22'+_0x55a4fa['remove']+'\x22','\x22'+_0x55a4fa['add']+'\x22'])});continue;}if(null!=_0x55a4fa['add']['match'](/^ +$/)){_0xfd89b1['push']({'type':'insertion','content':o(_0x3941ff,'*Insert:*\x20%0',o(_0x3941ff,'ELEMENT_SPACE',_0x55a4fa['add']['length']))});continue;}if(null!=_0x55a4fa['remove']['match'](/^ +$/)){_0xfd89b1['push']({'type':'deletion','content':o(_0x3941ff,'*Remove:*\x20%0',o(_0x3941ff,'ELEMENT_SPACE',_0x55a4fa['remove']['length']))});continue;}if(''!=_0x55a4fa['add']){_0xfd89b1['push']({'type':'insertion','content':o(_0x3941ff,'*Insert:*\x20%0','\x22'+_0x55a4fa['add']+'\x22')});continue;}_0xfd89b1['push']({'type':'deletion','content':o(_0x3941ff,'*Remove:*\x20%0','\x22'+_0x55a4fa['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xfd89b1['push']({'type':'insertion','content':o(_0x3941ff,'*Insert:*\x20%0',this['getItemLabel'](_0x55a4fa['element'],_0x55a4fa['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xfd89b1['push']({'type':'deletion','content':o(_0x3941ff,'*Remove:*\x20%0',this['getItemLabel'](_0x55a4fa['element'],_0x55a4fa['quantity']))});continue;case'addContainer':_0xfd89b1['push']({'type':'insertion','content':o(_0x3941ff,'*Split:*\x20%0',this['getItemLabel'](_0x55a4fa['element'],_0x55a4fa['quantity']))});continue;case'removeContainer':_0xfd89b1['push']({'type':'deletion','content':o(_0x3941ff,'*Merge:*\x20%0',this['getItemLabel'](_0x55a4fa['element'],_0x55a4fa['quantity']))});continue;case'addFormat':_0x2ca565['push'](_0x55a4fa['key']);continue;case'removeFormat':_0x4fa566['push'](_0x55a4fa['key']);continue;default:_0xfd89b1['push'](_0x55a4fa);}if(_0x2ca565['length']){const _0xb4b47f=_0x2ca565['map'](_0x1d7eb3=>this['_attributeLabels']['has'](_0x1d7eb3)?this['_attributeLabels']['get'](_0x1d7eb3):_0x1d7eb3)['join'](',\x20');_0xfd89b1['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xb4b47f)});}if(_0x4fa566['length']){const _0x3b0f79=_0x4fa566['map'](_0x2bc3cf=>this['_attributeLabels']['has'](_0x2bc3cf)?this['_attributeLabels']['get'](_0x2bc3cf):_0x2bc3cf)['join'](',\x20');_0xfd89b1['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3b0f79)});}return _0xfd89b1;}['_handleCustomCallbackDescription'](_0x245cc5){for(const _0x20136f of this['_customCallbacks']){const _0x10148d=_0x20136f(_0x245cc5);if(_0x10148d&&'type'in _0x10148d)return _0x10148d;}}['_handleAttributeSuggestionDescription'](_0x15ad98,_0x59e3c6){const _0xffe210=_0x59e3c6['data'],_0x149c89=void 0x0===_0xffe210['newValue']?'removeFormat':'addFormat';_0x15ad98['push']({'type':_0x149c89,'key':_0xffe210['key']});}['_handleRenameSuggestionDescription'](_0xe526e5,_0x13a8a7){_0xe526e5['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13a8a7['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x150414,_0x1db43f,_0x276ba4){if(this['_addDescriptionItems'](_0x150414,_0x1db43f),_0x276ba4&&_0x276ba4['getFirstRange']()&&!_0x1db43f['getFirstRange']()['end']['isEqual'](_0x276ba4['getFirstRange']()['start'])){const _0x231dd0=_0x150414[_0x150414['length']-0x1],_0x29b5c6='insertion'==_0x1db43f['type']?'add':'remove';_0x231dd0&&'text'==_0x231dd0['type']&&(_0x231dd0[_0x29b5c6]+='\x0a');}}}class E extends _0x56b6e2{['afterInit'](){const _0x5f18be=this['editor'],_0x16f818=_0x5f18be['plugins']['get']('TrackChangesEditing');_0x5f18be['commands']['get']('showAIAssistant')&&_0x16f818['enableCommand']('showAIAssistant');}}class V extends _0x56b6e2{['afterInit'](){const _0x1860a7=this['editor'],_0x1e5f24=_0x1860a7['locale'];if(!_0x1860a7['plugins']['has']('AlignmentEditing'))return;const _0x2df8c6=_0x1860a7['plugins']['get']('TrackChangesEditing');_0x2df8c6['enableDefaultAttributesIntegration']('alignment'),_0x2df8c6['registerBlockAttribute']('alignment'),_0x2df8c6['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1e5f24,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526bc=this['editor'],_0x2a39cc=_0x526bc['locale'];_0x526bc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4aab47=>{if('formatBlock'!=_0x4aab47['type'])return;const {data:_0x509cd5}=_0x4aab47;if(_0x509cd5&&'alignment'==_0x509cd5['commandName']){const _0x154744=_0x509cd5['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a39cc,'*Format:*\x20%0',function(_0x129290){switch(_0x129290){case'left':return o(_0x2a39cc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a39cc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a39cc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a39cc,'FORMAT_JUSTIFY_TEXT');}}(_0x154744))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x56b6e2{['afterInit'](){const _0x51f90d=this['editor'],_0x34e0ce=_0x51f90d['plugins']['get']('TrackChangesEditing'),_0x9cf48e=_0x51f90d['locale'];for(const _0x596719 of ti){if(!_0x51f90d['plugins']['has'](_0x596719))continue;const _0x274b3f=_0x596719['slice'](0x0,-0x7)['toLowerCase'](),_0x29c33e='FORMAT_'+_0x274b3f['toUpperCase']();_0x34e0ce['enableDefaultAttributesIntegration'](_0x274b3f),_0x34e0ce['registerInlineAttribute'](_0x274b3f),_0x34e0ce['descriptionFactory']['registerAttributeLabel'](_0x274b3f,o(_0x9cf48e,_0x29c33e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17036b=this['editor'],_0x47b61f=_0x17036b['locale'],_0x2aebee=_0x17036b['plugins']['get']('TrackChangesEditing');function _0x3149c1(_0x8d8750,_0x4a11f3){_0x2aebee['descriptionFactory']['registerDescriptionCallback'](_0x59af98=>{if('formatInline'!=_0x59af98['type'])return;const {data:_0x2f621b}=_0x59af98;return _0x2f621b&&_0x2f621b['commandName']===_0x8d8750?_0x2f621b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47b61f,'*Format:*\x20%0',_0x4a11f3)}:{'type':'format','content':o(_0x47b61f,'*Remove\x20format:*\x20%0',_0x4a11f3)}:void 0x0;});}_0x3149c1('bold',o(_0x47b61f,'FORMAT_BOLD')),_0x3149c1('italic',o(_0x47b61f,'FORMAT_ITALIC')),_0x3149c1('underline',o(_0x47b61f,'FORMAT_UNDERLINE')),_0x3149c1('code',o(_0x47b61f,'FORMAT_CODE')),_0x3149c1('strikethrough',o(_0x47b61f,'FORMAT_STRIKETHROUGH')),_0x3149c1('subscript',o(_0x47b61f,'FORMAT_SUBSCRIPT')),_0x3149c1('superscript',o(_0x47b61f,'FORMAT_SUPERSCRIPT'));}}class O extends _0x56b6e2{['afterInit'](){const _0x51bddb=this['editor'],_0x4997db=_0x51bddb['locale'];if(!_0x51bddb['plugins']['has']('BlockQuoteEditing'))return;const _0x24e5f6=_0x51bddb['plugins']['get']('TrackChangesEditing'),_0x50483d=this['editor']['commands']['get']('blockQuote');_0x24e5f6['enableCommand']('blockQuote',(_0x2e52ed,_0xe08bad={})=>{const _0x2b7d58=this['editor']['model']['document']['selection'],_0x585521=_0xe08bad&&void 0x0!==_0xe08bad['forceValue']?_0xe08bad['forceValue']:!_0x50483d['value'];let _0x10fc3d=[];if(_0x585521){const _0x4b5233=Array['from'](_0x2b7d58['getSelectedBlocks']())['filter'](_0x48d94b=>oo(_0x48d94b)||function(_0xfee770,_0x21ffcf){const _0xca069f=_0x21ffcf['checkChild'](_0xfee770['parent'],'blockQuote'),_0x21e1fc=_0x21ffcf['checkChild'](['$root','blockQuote'],_0xfee770);return _0xca069f&&_0x21e1fc;}(_0x48d94b,this['editor']['model']['schema']));_0x10fc3d=to(_0x4b5233,_0x51bddb['model']);}else{const _0x250b72=Array['from'](_0x2b7d58['getSelectedBlocks']())['filter'](_0x54cc8b=>oo(_0x54cc8b));_0x10fc3d=to(_0x250b72,_0x51bddb['model']);}_0x51bddb['model']['change'](()=>{for(const _0x14a1c3 of _0x10fc3d)_0x24e5f6['markBlockFormat'](_0x14a1c3,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x585521}]});});}),_0x24e5f6['descriptionFactory']['registerDescriptionCallback'](_0x1a9d15=>{const {data:_0x108040}=_0x1a9d15;if(_0x108040&&'blockQuote'==_0x108040['commandName']){const _0x470aa4=o(_0x4997db,'ELEMENT_BLOCK_QUOTE');return _0x108040['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4997db,'*Set\x20format:*\x20%0',_0x470aa4)}:{'type':'format','content':o(_0x4997db,'*Remove\x20format:*\x20%0',_0x470aa4)};}});}}function oo(_0x5e0464){return'blockQuote'==_0x5e0464['parent']['name'];}class G extends _0x56b6e2{['afterInit'](){const _0x3df220=this['editor'];_0x3df220['plugins']['has']('CaseChange')&&(_0x3df220['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3df220['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3df220['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x56b6e2{['afterInit'](){const _0x4bb72d=this['editor'];_0x4bb72d['commands']['get']('ckbox')&&_0x4bb72d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x56b6e2{['afterInit'](){const _0x6948d=this['editor'];if(!_0x6948d['plugins']['has']('CodeBlock'))return;const _0x14b4ba=_0x6948d['plugins']['get']('TrackChangesEditing'),_0x155900=_0x6948d['locale'],_0x3cf8c3=_0x6948d['config']['get']('codeBlock')['languages'],_0x33739e=_0x6948d['commands']['get']('codeBlock');_0x14b4ba['enableCommand']('indentCodeBlock'),_0x14b4ba['enableCommand']('outdentCodeBlock'),_0x14b4ba['enableCommand']('codeBlock',(_0x896095,_0x317ce8={})=>{const _0x3ec316=_0x6948d['model'],_0x194b82=_0x6948d['model']['document']['selection'],_0x456aa8=_0x317ce8&&void 0x0!==_0x317ce8['forceValue']?_0x317ce8['forceValue']:!_0x33739e['value'];let _0x3fa43f;_0x317ce8['language']||(_0x317ce8['language']=_0x3cf8c3[0x0]['language']),_0x3fa43f=_0x456aa8?Array['from'](_0x194b82['getSelectedBlocks']())['filter'](_0x2b720d=>eo(_0x2b720d)||function(_0x556891,_0x1863b3){if(_0x556891['is']('rootElement')||_0x1863b3['isLimit'](_0x556891))return!0x1;return _0x1863b3['checkChild'](_0x556891['parent'],'codeBlock');}(_0x2b720d,_0x3ec316['schema'])):Array['from'](_0x194b82['getSelectedBlocks']())['filter'](_0x58110c=>eo(_0x58110c));const _0x513ef7=to(_0x3fa43f,_0x3ec316);_0x3ec316['change'](()=>{for(const _0x4f8ec4 of _0x513ef7)_0x14b4ba['markBlockFormat'](_0x4f8ec4,{'commandName':'codeBlock','commandParams':[{..._0x317ce8,'forceValue':_0x456aa8}],'formatGroupId':'blockName'});});}),(_0x14b4ba['descriptionFactory']['registerElementLabel']('codeBlock',_0x319761=>o(_0x155900,'ELEMENT_CODE_BLOCK',_0x319761)),_0x14b4ba['descriptionFactory']['registerDescriptionCallback'](_0x5043d6=>{if('formatBlock'!=_0x5043d6['type'])return;const _0x528f65=_0x155900['t'],{data:_0x212f86}=_0x5043d6;if(!_0x212f86||'codeBlock'!=_0x212f86['commandName'])return;const _0x14d0b9=_0x212f86['commandParams'][0x0]['language'],_0x199c7f=_0x528f65(_0x3cf8c3['find'](_0x1426b0=>_0x1426b0['language']===_0x14d0b9)['label'])['toLowerCase']();return _0x212f86['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x155900,'*Set\x20format:*\x20%0',o(_0x155900,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x199c7f+')')}:{'type':'format','content':o(_0x155900,'*Remove\x20format:*\x20%0',o(_0x155900,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xe1622d){return'codeBlock'==_0xe1622d['name'];}class H extends _0x56b6e2{['afterInit'](){const _0x3ac149=this['editor'];if(!_0x3ac149['plugins']['has']('CommentsEditing'))return;_0x3ac149['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x33c22b,_0x244a87,_0x85e022){const _0x493c82=[];for(const _0x5ab761 of _0x244a87['getItems']())_0x5ab761['hasAttribute'](_0x33c22b)&&_0x493c82['push'](_0x85e022['createRangeOn'](_0x5ab761));return _0x493c82;}function _e(_0x42ee75,_0x3b8d82,{showActiveMarker:_0x55d862=!0x0}={}){const _0x4e6141=_0x42ee75['plugins']['get']('TrackChangesEditing');return(_0x2cc8cb,_0x40c4d3,_0x4fab02)=>{if(!_0x4fab02['consumable']['test'](_0x40c4d3['markerRange'],_0x2cc8cb['name']))return;const _0x1e15d2=_0x40c4d3['markerRange']['getWalker'](),_0x196973=_0x40c4d3['markerRange']['start'],_0x53207c=_0x42ee75['model']['schema'];let _0x242a8f=null,_0x298bb0=null,_0x369385=!0x1,_0x246e29=!0x1;for(const _0x218da8 of _0x1e15d2){const _0x5392fe=_0x218da8['item'];_0x369385=_0x369385||_0x53207c['isContent'](_0x5392fe);const _0x22f98d=_0x4fab02['mapper']['toViewElement'](_0x5392fe);if(_0x22f98d&&_0x22f98d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x218da8['type']&&(_0x53207c['isBlock'](_0x5392fe)&&!_0x53207c['isLimit'](_0x5392fe)&&(_0x5392fe['nextSibling']||_0x196973['isAtEnd']?_0x242a8f&&_0x242a8f['parent']==_0x5392fe||(_0x242a8f=_0x5392fe,_0x58e522(_0x218da8['previousPosition']),_0x246e29=!0x0):_0x298bb0=_0x298bb0||_0x218da8['previousPosition']));}function _0x58e522(_0x2fce62){const _0x46c12a=_0x4fab02['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b8d82}),_0x3d14d4=_0x4fab02['mapper']['toViewPosition'](_0x2fce62);_0x55d862&&_0x4e6141['activeMarkers']['includes'](_0x40c4d3['markerName'])&&_0x4fab02['writer']['addClass']('ck-suggestion-marker--active',_0x46c12a),_0x4fab02['writer']['insert'](_0x3d14d4,_0x46c12a),_0x4fab02['mapper']['bindElementToMarker'](_0x46c12a,_0x40c4d3['markerName']);}_0x369385||_0x246e29||!_0x298bb0||_0x58e522(_0x298bb0);};}class q extends _0x56b6e2{static get['requires'](){return[_0x53a82a];}['init'](){const _0x533415=this['editor'],_0x175cc6=_0x533415['plugins']['get']('TrackChangesEditing');_0x175cc6['enableCommand']('delete');const _0x52b4f2=_0x533415['commands']['get']('deleteForward');_0x175cc6['enableCommand']('deleteForward',(_0x1c8c18,_0x2a5af2={})=>{const _0x259593=_0x533415['model']['createSelection'](_0x533415['model']['document']['selection']);_0x259593['isCollapsed']&&_0x533415['model']['modifySelection'](_0x259593,{'direction':'forward','unit':_0x2a5af2['unit']});const _0x2f6f3b=_0x259593['getFirstRange'](),_0x38a482=_0x46236['fromRange'](_0x2f6f3b);let _0x42e079;_0x1c8c18(_0x2a5af2),_0x42e079='$graveyard'==_0x38a482['root']['rootName']?_0x533415['model']['createRange'](_0x2f6f3b['start']):_0x533415['model']['createRange'](_0x38a482['start'],_0x38a482['end']),_0x38a482['detach'](),_0x533415['model']['enqueueChange'](_0x52b4f2['buffer']['batch'],_0x402dac=>{_0x52b4f2['buffer']['lock'](),_0x402dac['setSelection'](_0x402dac['createRange'](_0x42e079['end'])),_0x52b4f2['buffer']['unlock']();});}),_0x533415['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x533415,'merge'),{'priority':'high'}),_0x533415['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x560db4,_0x4b30f9,_0x47ad9f)=>{_0x47ad9f['options']['showSuggestionHighlights']&&_e(_0x533415,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x560db4,_0x4b30f9,_0x47ad9f);},{'priority':'high'}),_0x533415['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x34d6e8,_0x22490c,_0x6e911d)=>{const _0x45eef5=_0x6e911d['mapper']['markerNameToElements'](_0x22490c['markerName']);if(_0x45eef5){for(const _0x5bf9b1 of _0x45eef5)_0x5bf9b1['is']('uiElement')&&(_0x6e911d['mapper']['unbindElementFromMarkerName'](_0x5bf9b1,_0x22490c['markerName']),_0x6e911d['writer']['remove'](_0x5bf9b1));}},{'priority':'high'});}}class z extends _0x56b6e2{['afterInit'](){const _0x502a32=this['editor'];if(!_0x502a32['plugins']['has']('ListEditing'))return;const _0x12880c=_0x502a32['locale'],_0x4d9731=_0x502a32['plugins']['get']('TrackChangesEditing'),_0x204e2d=_0x502a32['plugins']['has']('TodoListEditing'),_0x111503=!!_0x502a32['config']['get']('list.multiBlock');function _0xe0b597(_0x3fc269){return{'type':'format','content':''+o(_0x12880c,'*Set\x20format:*\x20%0',_0x3fc269)};}function _0x5de02d(_0x26807c){return{'type':'format','content':''+o(_0x12880c,'*Remove\x20format:*\x20%0',_0x26807c)};}_0x4d9731['enableDefaultAttributesIntegration']('numberedList'),_0x4d9731['enableDefaultAttributesIntegration']('bulletedList'),_0x4d9731['enableDefaultAttributesIntegration']('customNumberedList'),_0x4d9731['enableDefaultAttributesIntegration']('customBulletedList'),_0x4d9731['enableDefaultAttributesIntegration']('indentList'),_0x4d9731['enableDefaultAttributesIntegration']('outdentList'),_0x4d9731['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4d9731['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4d9731['registerBlockAttribute']('listItemId'),_0x4d9731['registerBlockAttribute']('listType'),_0x4d9731['registerBlockAttribute']('listIndent'),_0x111503&&(_0x4d9731['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4d9731['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x204e2d&&(_0x4d9731['enableDefaultAttributesIntegration']('todoList'),_0x4d9731['enableDefaultAttributesIntegration']('checkTodoList'),_0x4d9731['registerBlockAttribute']('todoListChecked'),_0x4d9731['descriptionFactory']['registerDescriptionCallback'](_0x527f8f=>{const {data:_0x1f74c7}=_0x527f8f;if(_0x1f74c7&&'todoListChecked'==_0x1f74c7['key'])return{'type':'format','content':_0x1f74c7['newValue']?o(_0x12880c,'*Check\x20item*'):o(_0x12880c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x49dc8d=>{if(_0x49dc8d['batch']['isUndo'])return!0x1;let _0x2a1828=!0x1;const _0x4a2835=_0x4d9731['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7e9ebf=>'todoListChecked'===_0x4d9731['_getAttributeKey'](_0x7e9ebf));for(const _0x3c056e of _0x4a2835){'todo'!=_0x3c056e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4d9731['_findSuggestions'](_0x3c056e['getFirstRange'](),'attribute')['find'](_0x570d71=>'listType'===_0x4d9731['_getAttributeKey'](_0x570d71['suggestion']))||(_0x49dc8d['removeMarker'](_0x3c056e['getFirstMarker']()),_0x2a1828=!0x0));}return _0x2a1828;})),_0x4d9731['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x12880c,'FORMAT_INDENT'));const _0x32914f={'type':'format','content':''};_0x4d9731['descriptionFactory']['registerDescriptionCallback'](_0xb0b3fd=>{const {data:_0x37f355}=_0xb0b3fd;if(!_0x37f355||'listType'!=_0x37f355['key'])return;let _0x895378=_0xb0b3fd['head'];for(;_0x895378;){if(_0x895378['data']&&(('listStyle'==_0x895378['data']['key']||'listMarkerStyle'==_0x895378['data']['key'])&&(_0x895378['data']['newValue']&&'default'!=_0x895378['data']['newValue']||'default'!=_0x895378['data']['oldValue']&&!_0x37f355['newValue'])||!_0x111503&&_0x895378['data']['key']==m))return _0x32914f;_0x895378=_0x895378['next'];}if(null==_0x37f355['newValue'])switch(_0x37f355['oldValue']){case'bulleted':return _0x5de02d(o(_0x12880c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5de02d(o(_0x12880c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5de02d(o(_0x12880c,'ELEMENT_TODO_LIST'));}switch(_0x37f355['newValue']){case'bulleted':return _0xe0b597(o(_0x12880c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xe0b597(o(_0x12880c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xe0b597(o(_0x12880c,'ELEMENT_TODO_LIST'));}}),_0x4d9731['descriptionFactory']['registerDescriptionCallback'](_0x143e5c=>{const {data:_0x16df8d}=_0x143e5c;if(_0x16df8d&&'listIndent'==_0x16df8d['key'])return null==_0x16df8d['newValue']||null==_0x16df8d['oldValue']&&0x0==_0x16df8d['newValue']?_0x32914f:void 0x0;}),_0x4d9731['descriptionFactory']['registerDescriptionCallback'](_0x19ff3c=>{if('attribute'!=_0x19ff3c['type'])return;const {data:_0x18478a}=_0x19ff3c;if(!_0x18478a||'listItemId'!=_0x18478a['key'])return;const _0x315e6d=le(_0x19ff3c);return'newValue'==_0x315e6d?{'type':'format','content':o(_0x12880c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x315e6d?{'type':'format','content':o(_0x12880c,'*Split:*\x20list\x20item')}:_0x32914f;}),_0x502a32['model']['document']['registerPostFixer'](_0x57d160=>this['listItemIdFixer'](_0x57d160)),_0x502a32['model']['document']['registerPostFixer'](_0x2e557f=>this['noTrackChangesFixer'](_0x2e557f)),_0x502a32['model']['document']['registerPostFixer'](_0x522769=>this['assureChains'](_0x522769)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x2ea6b8){if(_0x2ea6b8['batch']['isUndo']||!_0x2ea6b8['batch']['isLocal'])return!0x1;let _0x83754c=!0x1;const _0x2d60e2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd84677=>_0xd84677['data']&&'listItemId'==_0xd84677['data']['key'])['filter'](_0x5b6335=>_0x5b6335['data']['newValue']&&_0x5b6335['data']['oldValue']);for(const _0xb6705b of _0x2d60e2)le(_0xb6705b)||(_0x2ea6b8['removeMarker'](_0xb6705b['getFirstMarker']()),_0x83754c=!0x0);return _0x83754c;}['noTrackChangesFixer'](_0x585f7f){if(_0x585f7f['batch']['isUndo']||!_0x585f7f['batch']['isLocal'])return!0x1;const _0x48890a=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x48890a['trackChangesCommand']['value'])return!0x1;let _0x527fa6=!0x1;const _0x1c8ca3=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30b5df=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x123725=>'attribute'==_0x123725['type'])['filter'](_0x26524c=>_0x1c8ca3['includes'](_0x26524c['attributeKey']));if(0x0==_0x30b5df['length'])return _0x527fa6;for(const _0x4962fd of _0x30b5df){const _0x112922=_0x48890a['_findSuggestions'](_0x4962fd['range'],'attribute')['filter'](_0x9446ce=>!_0x9446ce['meta']['isNextTo'])['map'](_0x285706=>_0x285706['suggestion'])['filter'](_0xb1dedb=>{const _0x511505=_0x48890a['_getAttributeKey'](_0xb1dedb);return _0x1c8ca3['includes'](_0x511505);});if(_0x112922['length']){for(const _0x3e7d39 of _0x112922)_0x585f7f['removeMarker'](_0x3e7d39['getFirstMarker']());_0x527fa6=!0x0;}}return _0x527fa6;}['assureChains'](_0x47201e){if(_0x47201e['batch']['isUndo']||!_0x47201e['batch']['isLocal'])return!0x1;const _0x2f027=this['editor']['plugins']['get']('TrackChangesEditing');let _0x363e0e=!0x1;const _0x330cb7=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1cd4e9 of _0x2f027['getSuggestions']({'skipNotAttached':!0x0})){const _0x46572a=_0x2f027['_findSuggestions'](_0x1cd4e9['getFirstRange'](),'attribute')['map'](_0x3fbd26=>_0x3fbd26['suggestion'])['filter'](_0x3a1465=>_0x3a1465['data']&&_0x330cb7['includes'](_0x3a1465['data']['key']));if(!_0x46572a['length'])continue;const _0x15d253=_0x46572a[0x0]['head']['attributes']['groupId'];if(!_0x46572a['every'](_0x4f72f2=>_0x4f72f2['attributes']['groupId']===_0x15d253)){for(const _0x2385f0 of _0x46572a)_0x3a6a32(_0x2385f0,_0x15d253)&&(_0x363e0e=!0x0);}}return _0x363e0e;function _0x34f264(_0x465c77,_0x49dba3){for(const _0x103d83 of _0x2f027['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x562638=>'attribute'==_0x562638['type']&&_0x562638['attributes']['groupId']==_0x465c77))_0x103d83['setAttribute']('groupId',_0x49dba3);}function _0x3a6a32(_0x54ad30,_0x250be3){let _0x1c07fb=_0x54ad30['head'],_0x10d763=!0x1;for(;_0x1c07fb;)_0x1c07fb['attributes']['groupId']!=_0x250be3&&(_0x34f264(_0x1c07fb['attributes']['groupId'],_0x250be3),_0x1c07fb['setAttribute']('groupId',_0x250be3),_0x10d763=!0x0),_0x1c07fb=_0x1c07fb['next'];return _0x10d763;}}['_supportLegacySuggestions'](){const _0x4630df=this['editor'],_0x191962=_0x4630df['locale'],_0x1598e5=_0x4630df['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1598e5['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1756c6,_0x5d862e){const _0x413bd4=[];for(let _0x1b1119 of _0x1756c6)_0x1b1119['start']['nodeAfter']===_0x1b1119['end']['parent']&&(_0x1b1119=_0x4630df['model']['createRange'](_0x4630df['model']['createPositionAt'](_0x1b1119['start']['nodeAfter'],0x0))),_0x413bd4['push'](_0x1b1119);_0x4630df['model']['change'](_0x3c1c84=>{const _0x30cf75=_0x4630df['model']['document']['selection'],_0x35e87a=Array['from'](_0x30cf75['getRanges']())['map'](_0x339cc7=>_0x46236['fromRange'](_0x339cc7));_0x3c1c84['setSelection'](_0x413bd4),_0x4630df['commands']['get'](_0x5d862e['commandName'])['refresh'](),_0x5d862e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4630df['execute'](_0x5d862e['commandName'],..._0x5d862e['commandParams']),_0x3c1c84['setSelection'](_0x35e87a);for(const _0x300bcd of _0x35e87a)_0x300bcd['detach']();});}),_0x1598e5['descriptionFactory']['registerElementLabel'](function(_0x1b0809){const _0x5a59b5=!_0x4630df['model']['schema']['isObject'](_0x1b0809),_0x3ef1cd=_0x1b0809['previousSibling'],_0x4654af=_0x1b0809['nextSibling'],_0x491c51=_0x1b0809['getAttribute']('listItemId'),_0x4a1d6c=!_0x3ef1cd||_0x3ef1cd['getAttribute']('listItemId')!==_0x491c51,_0x3024ce=!_0x4654af||_0x4654af['getAttribute']('listItemId')!==_0x491c51;return _0x5a59b5&&Boolean(_0x491c51)&&_0x4a1d6c&&_0x3024ce;},_0x2df88b=>o(_0x191962,'ELEMENT_LIST_ITEM',_0x2df88b));}['_registerLegacyDescription'](){const _0x116dd0=this['editor'],_0x3caaa1=_0x116dd0['locale'];function _0x3db0ec(_0x3b4278){const _0xfc53eb=_0x116dd0['commands']['get']('bulletedList')['value'],_0x5a3ec4=_0x116dd0['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b4278?_0xfc53eb:_0x5a3ec4;}_0x116dd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x2966ca){if('formatBlock'!=_0x2966ca['type'])return;const {data:_0x1ddd76}=_0x2966ca;if(!_0x1ddd76)return;let _0x51ec03,_0x37c83b,_0xa51f20,_0x57e2eb;switch(_0x1ddd76['commandName']){case'bulletedList':_0xa51f20=_0x1ddd76['commandParams'][0x0]['forceValue'],_0x57e2eb=_0x3db0ec(_0x1ddd76['commandName']),_0x51ec03=_0xa51f20?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x57e2eb&&_0x116dd0['config']['get']('list.multiBlock')||(_0x51ec03='*Change\x20to:*\x20%0'),_0x37c83b={'type':'format','content':o(_0x3caaa1,_0x51ec03,o(_0x3caaa1,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xa51f20=_0x1ddd76['commandParams'][0x0]['forceValue'],_0x57e2eb=_0x3db0ec(_0x1ddd76['commandName']),_0x51ec03=_0xa51f20?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x57e2eb&&_0x116dd0['config']['get']('list.multiBlock')||(_0x51ec03='*Change\x20to:*\x20%0'),_0x37c83b={'type':'format','content':o(_0x3caaa1,_0x51ec03,o(_0x3caaa1,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x51ec03='*Indent:*\x20%0',_0x37c83b={'type':'format','content':o(_0x3caaa1,_0x51ec03,o(_0x3caaa1,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x51ec03=function(_0x4864ba){const _0x48f1fd=_0x4864ba['getFirstRange']();let _0x49f85b=_0x48f1fd['start']['nodeAfter'];for(;_0x49f85b&&_0x48f1fd['containsItem'](_0x49f85b);){if(_0x49f85b['getAttribute']('listIndent')>0x0)return!0x1;_0x49f85b=_0x49f85b['nextSibling'];}return!0x0;}(_0x2966ca)?o(_0x3caaa1,'*Format:*\x20remove\x20from\x20%0',o(_0x3caaa1,function(_0x5df688){return'ELEMENT_'+_0x5df688['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x2966ca))):o(_0x3caaa1,'*Outdent:*\x20%0',o(_0x3caaa1,'ELEMENT_LIST_ITEM')),_0x37c83b={'type':'format','content':_0x51ec03};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x1ddd76['multipleBlocks']&&(_0x51ec03='*Merge:*\x20%0',_0x37c83b={'type':'deletion','content':o(_0x3caaa1,_0x51ec03,o(_0x3caaa1,'ELEMENT_LIST_ITEM'))});}return _0x37c83b;});}}function le(_0x56dc60){let _0x897a67=_0x56dc60['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x897a67;){const _0x28bf5a=_0x897a67['getAttribute']('listItemId');if(!_0x28bf5a)return!0x1;if(_0x28bf5a==_0x56dc60['data']['newValue'])return'newValue';if(_0x28bf5a==_0x56dc60['data']['oldValue'])return'oldValue';_0x897a67=_0x897a67['previousSibling'];}return!0x1;}class ue extends _0x56b6e2{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ba80a=this['editor']['config']['get']('list.properties'),_0x513efe=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ba80a['styles']&&(_0x513efe['enableDefaultAttributesIntegration']('listStyle'),_0x513efe['registerBlockAttribute']('listStyle')),_0x1ba80a['reversed']&&(_0x513efe['enableDefaultAttributesIntegration']('listReversed'),_0x513efe['registerBlockAttribute']('listReversed')),_0x1ba80a['startIndex']&&(_0x513efe['enableDefaultAttributesIntegration']('listStart'),_0x513efe['registerBlockAttribute']('listStart'));const _0x10a474={'type':'format','content':''};_0x513efe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a6550=this['editor']['locale'];_0x513efe['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a6550,'FORMAT_LIST_REVERSED')),_0x513efe['descriptionFactory']['registerDescriptionCallback'](_0x197cfe=>{const {data:_0x5952bb}=_0x197cfe;if(_0x5952bb&&'listReversed'==_0x5952bb['key'])return null==_0x5952bb['newValue']||0x0==_0x5952bb['newValue']&&null==_0x5952bb['oldValue']?_0x10a474:void 0x0;}),_0x513efe['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a6550,'FORMAT_LIST_START')),_0x513efe['descriptionFactory']['registerDescriptionCallback'](_0xdbea31=>{const {data:_0x4e30cc}=_0xdbea31;if(_0x4e30cc&&'listStart'==_0x4e30cc['key'])return null==_0x4e30cc['newValue']||0x1==_0x4e30cc['newValue']&&null==_0x4e30cc['oldValue']?_0x10a474:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5edc1c=>{if(_0x5edc1c['batch']['isUndo'])return!0x1;let _0x258322=!0x1;const _0x407b0b=_0x513efe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x516ebb=>{const _0x4f854f=_0x513efe['_getAttributeKey'](_0x516ebb);return'listStart'==_0x4f854f||'listReversed'==_0x4f854f;});for(const _0x31c7c0 of _0x407b0b){const _0x2fcc96=_0x31c7c0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2fcc96||'customNumbered'==_0x2fcc96)continue;_0x513efe['_findSuggestions'](_0x31c7c0['getFirstRange'](),'attribute')['find'](_0x2a6816=>'listType'==_0x513efe['_getAttributeKey'](_0x2a6816['suggestion']))||(_0x5edc1c['removeMarker'](_0x31c7c0['getFirstMarker']()),_0x258322=!0x0);}return _0x258322;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0xa094f3){const _0x50d5af=this['editor']['locale'],{data:_0x1b3183}=_0xa094f3,_0x2df4ff={'type':'format','content':''};if(!_0x1b3183||'listStyle'!=_0x1b3183['key'])return;if(!_0x1b3183['oldValue'])return'default'==_0x1b3183['newValue']?_0x2df4ff:{'type':'format','content':''+o(_0x50d5af,'*Set\x20format:*\x20%0',o(_0x50d5af,this['_getTranslationKeyForListStyle'](_0x1b3183['newValue'])))};if(!_0x1b3183['newValue']){if('default'==_0x1b3183['oldValue'])return _0x2df4ff;let _0x5bc06e=_0xa094f3['head'];for(;_0x5bc06e;){if(_0x5bc06e['data']&&'listType'==_0x5bc06e['data']['key']&&_0x5bc06e['data']['newValue'])return _0x2df4ff;_0x5bc06e=_0x5bc06e['next'];}return{'type':'format','content':''+o(_0x50d5af,'*Remove\x20format:*\x20%0',o(_0x50d5af,this['_getTranslationKeyForListStyle'](_0x1b3183['oldValue'])))};}if('default'!=_0x1b3183['newValue'])return{'type':'format','content':''+o(_0x50d5af,'*Set\x20format:*\x20%0',o(_0x50d5af,this['_getTranslationKeyForListStyle'](_0x1b3183['newValue'])))};let _0x470a9c=_0xa094f3['head'];for(;_0x470a9c;){if(_0x470a9c['data']&&'listType'==_0x470a9c['data']['key']&&_0x470a9c['data']['newValue']&&_0x470a9c['data']['oldValue'])return _0x2df4ff;_0x470a9c=_0x470a9c['next'];}return{'type':'format','content':o(_0x50d5af,'*Set\x20format:*\x20%0',o(_0x50d5af,'ELEMENT_'+_0xa094f3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1a7cd8=this['editor'],_0x27b428=_0x1a7cd8['locale'];_0x1a7cd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x599d10=>{if('formatBlock'!=_0x599d10['type'])return;const {data:_0x1a4409}=_0x599d10;if(!_0x1a4409)return;let _0x315168,_0x13742f;switch(_0x1a4409['commandName']){case'listStyle':_0x315168='*Change\x20to:*\x20%0',_0x13742f={'type':'format','content':o(_0x27b428,_0x315168,o(_0x27b428,this['_getTranslationKeyForListStyle'](_0x1a4409['commandParams'][0x0]['type'])))};break;case'listReversed':_0x315168=_0x1a4409['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13742f={'type':'format','content':o(_0x27b428,_0x315168)};break;case'listStart':_0x315168='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13742f={'type':'format','content':o(_0x27b428,_0x315168,_0x1a4409['commandParams'][0x0]['startIndex'])};}return _0x13742f;});}['_getTranslationKeyForListStyle'](_0x4cbf94){return'ELEMENT_'+function(_0x2edda9){if(pe['includes'](_0x2edda9))return'bulleted';if(ye['includes'](_0x2edda9))return'numbered';return null;}(_0x4cbf94)['toUpperCase']()+'_LIST_'+_0x4cbf94['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x56b6e2{static get['requires'](){return[_0x2c4c52];}['init'](){const _0x2a7efd=this['editor'],_0x351b80=_0x2a7efd['plugins']['get']('TrackChangesEditing'),_0x420e93=_0x2a7efd['commands']['get']('enter');_0x351b80['enableCommand']('enter',()=>{_0x2a7efd['model']['change'](_0x1fa8a3=>{const _0x64b8e7=_0x2a7efd['model']['document']['selection'],_0x4080b7=_0x64b8e7['getFirstPosition'](),_0x216ae0=_0x46236['fromRange'](_0x64b8e7['getFirstRange']());if(_0x420e93['enterBlock'](_0x1fa8a3)){const _0xb1d8f5=_0x2a7efd['model']['createPositionAt'](_0x4080b7['parent']['nextSibling'],0x0),_0xfed48e=_0x1fa8a3['createRange'](_0x4080b7,_0xb1d8f5);_0x351b80['markInsertion'](_0xfed48e);}else _0x1fa8a3['setSelection'](_0x1fa8a3['createRange'](_0x216ae0['end']));_0x216ae0['detach'](),_0x420e93['fire']('afterExecute',{'writer':_0x1fa8a3});});}),_0x2a7efd['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2a7efd,'split'),{'priority':'high'}),_0x2a7efd['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3fb5e1,_0x2b6f6d,_0x3ed167)=>{const _0x2765f1=_0x3ed167['mapper']['markerNameToElements'](_0x2b6f6d['markerName']);if(_0x2765f1){for(const _0x49e9e3 of _0x2765f1)_0x49e9e3['hasClass']('ck-suggestion-marker-split')&&(_0x3ed167['mapper']['unbindElementFromMarkerName'](_0x49e9e3,_0x2b6f6d['markerName']),_0x3ed167['writer']['remove'](_0x49e9e3));}},{'priority':'high'}),_0x2a7efd['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x495e7f,_0x16865c,_0x1b9c4e)=>{_0x1b9c4e['options']['showSuggestionHighlights']&&_e(_0x2a7efd,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x495e7f,_0x16865c,_0x1b9c4e);},{'priority':'high'});}}class J extends _0x56b6e2{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x30a302=this['editor']['plugins']['get']('TrackChangesEditing');_0x30a302['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x30a302['enableCommand']('findNext'),_0x30a302['enableCommand']('findPrevious'),_0x30a302['enableCommand']('replace'),_0x30a302['enableCommand']('replaceAll');}['handleFindCommand'](_0x1fae53,_0x5f150b,_0x38fe2f={}){const _0x3575ab=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1fae53(_0x2d5aaa=>('string'==typeof _0x5f150b?_0x3575ab['findByTextCallback'](_0x5f150b,_0x38fe2f):_0x5f150b)(_0x2d5aaa)['filter'](_0x5048f8=>!0x1===this['_isInDeletionRange'](_0x5048f8,_0x2d5aaa['item'])),_0x38fe2f);}['_isInDeletionRange'](_0x301467,_0x27412b){const _0x380e22=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x27412b,_0x301467['start']),this['editor']['model']['createPositionAt'](_0x27412b,_0x301467['end']));for(const _0x4311b3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x380e22['getIntersection'](_0x4311b3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x56b6e2{['afterInit'](){const _0x3179db=this['editor']['locale'],_0x913a22=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x50f1bf,commandName:_0xde8f33}of ro)this['editor']['plugins']['has'](_0x50f1bf)&&(_0x913a22['enableDefaultAttributesIntegration'](_0xde8f33),_0x913a22['registerInlineAttribute'](_0xde8f33));_0x3179db['t'],_0x913a22['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3179db,'FORMAT_FONT_SIZE')),_0x913a22['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3179db,'FORMAT_FONT_FAMILY')),_0x913a22['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3179db,'FORMAT_FONT_COLOR')),_0x913a22['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3179db,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1356cd=this['editor'],_0x1d9e36=_0x1356cd['locale'];_0x1356cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c36cd=>{const _0x18f19e=_0x1d9e36['t'];if('formatInline'!=_0x3c36cd['type'])return;const {data:_0x39992e}=_0x3c36cd;if(null!=_0x39992e){if('fontSize'==_0x39992e['commandName']){const _0x289c12=_0x39992e['commandParams'][0x0]['value'];if(_0x289c12){const _0x3ea1cb=_0x18f19e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x23156d=>_0x23156d['model']==_0x289c12)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1d9e36,'*Set\x20font\x20size:*\x20%0',_0x3ea1cb)};}return{'type':'format','content':o(_0x1d9e36,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x39992e['commandName']){const _0x5813c1=_0x39992e['commandParams'][0x0]['value'];return _0x5813c1?{'type':'format','content':o(_0x1d9e36,'*Set\x20font\x20family:*\x20%0',_0x5813c1)}:{'type':'format','content':o(_0x1d9e36,'*Reset\x20font\x20family*')};}if('fontColor'==_0x39992e['commandName']){const _0x1dcb0a=_0x39992e['commandParams'][0x0]['value'];if(_0x1dcb0a){const _0x5679f5=_0x4f6cb6(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2b20c3=>_0x2b20c3['model']==_0x1dcb0a);let _0x32ba70=_0x1dcb0a,_0x411768='';return _0x5679f5&&(_0x32ba70=_0x5679f5['label'],_0x411768=_0x18f19e(_0x32ba70)['toLowerCase']()),{'type':'format','content':o(_0x1d9e36,'*Set\x20font\x20color:*\x20%0',_0x411768)['trim'](),'color':{'value':_0x1dcb0a,'title':_0x411768||_0x32ba70}};}return{'type':'format','content':o(_0x1d9e36,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x39992e['commandName']){const _0x4879aa=_0x39992e['commandParams'][0x0]['value'];if(_0x4879aa){const _0x50a205=_0x4f6cb6(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x46f0b=>_0x46f0b['model']==_0x4879aa);let _0x4dfeaf=_0x4879aa,_0x27b2ff='';return _0x50a205&&(_0x4dfeaf=_0x50a205['label'],_0x27b2ff=_0x18f19e(_0x4dfeaf)['toLowerCase']()),{'type':'format','content':o(_0x1d9e36,'*Set\x20font\x20background\x20color:*\x20%0',_0x27b2ff)['trim'](),'color':{'value':_0x4879aa,'title':_0x27b2ff||_0x4dfeaf}};}return{'type':'format','content':o(_0x1d9e36,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x56b6e2{['afterInit'](){const _0x3307b7=this['editor'],_0x5624bd=_0x3307b7['plugins']['get']('TrackChangesEditing'),_0x3e465a=_0x3307b7['commands']['get']('copyFormat'),_0x189eee=_0x3307b7['commands']['get']('pasteFormat');_0x3e465a&&_0x189eee&&(_0x5624bd['enableDefaultAttributesIntegration']('pasteFormat'),_0x5624bd['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x481b03=this['editor'],_0x2a5f36=_0x481b03['locale'];_0x481b03['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e033e=>{if('formatBlock'!=_0x3e033e['type']&&'formatInline'!=_0x3e033e['type'])return;const {data:_0x4dd85d}=_0x3e033e;if(_0x4dd85d&&'pasteFormat'===_0x4dd85d['commandName']){const _0x3f7f82=[],_0x2170fe=_0x4dd85d['commandParams'][0x0];for(const [_0x491cb7,_0x4b9758]of Object['entries'](_0x2170fe))_0x3f7f82['push'](so(_0x481b03,_0x491cb7,_0x4b9758));return _0x3f7f82['length']?{'type':'format','content':o(_0x2a5f36,'*Set\x20format\x20to:*\x20%0',_0x3f7f82['join'](',\x20'))}:{'type':'format','content':o(_0x2a5f36,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37006b,_0x1f3d02,_0x34bd36){const _0x3c3e89=_0x37006b['locale']['t'],_0x484641=_0x1f3d02['split'](/(?=[A-Z])/)['join']('\x20'),_0x59c352=_0x3c3e89(_0x484641['charAt'](0x0)['toUpperCase']()+_0x484641['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x34bd36)return _0x59c352;if('fontColor'===_0x1f3d02||'fontBackgroundColor'===_0x1f3d02){const _0x156eab=_0x4f6cb6(_0x37006b['config']['get']('fontColor.colors'))['find'](_0x1c4c12=>_0x1c4c12['model']==_0x34bd36);return _0x59c352+'\x20('+(_0x156eab?_0x3c3e89(_0x156eab['label'])['toLowerCase']():_0x34bd36)+')';}if('fontSize'===_0x1f3d02&&isNaN(parseFloat(_0x34bd36))){const _0x1b45ac=_0x37006b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37006b['config']['get']('fontSize.options'))['find'](_0xd232a1=>_0xd232a1['model']==_0x34bd36);return _0x59c352+'\x20('+(_0x1b45ac?_0x3c3e89(_0x1b45ac['title'])['toLowerCase']():_0x34bd36)+')';}return _0x59c352+'\x20('+_0x34bd36+')';}class Y extends _0x56b6e2{['_headingOptions'];['afterInit'](){const _0x47e78a=this['editor'];if(!_0x47e78a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x47e78a['config']['get']('heading.options');const _0x3c3c14=_0x47e78a['locale'],_0x63c4e9=_0x47e78a['plugins']['get']('TrackChangesEditing');_0x63c4e9['enableDefaultAttributesIntegration']('heading');for(const _0x13eb97 of this['_headingOptions'])'paragraph'!=_0x13eb97['model']&&_0x63c4e9['descriptionFactory']['registerElementLabel'](_0x13eb97['model'],_0x189c29=>{const _0xf70294=this['_getHeadingLevel'](_0x13eb97['model']);return null!==_0xf70294?_0x59ceda(_0x189c29,_0xf70294):_0x16640d(_0x189c29,_0x13eb97['title']);});function _0x59ceda(_0x55e4ec,_0x518b91){return o(_0x3c3c14,'ELEMENT_HEADING',[_0x55e4ec,_0x518b91]);}function _0x16640d(_0xd80688,_0x46580c){return o(_0x3c3c14,'ELEMENT_HEADING_CUSTOM',[_0xd80688,_0x46580c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a19c6=this['editor'],_0x519f03=_0x4a19c6['locale'];function _0xc714b8(_0xd64fd1,_0x88834f){return o(_0x519f03,'ELEMENT_HEADING_CUSTOM',[_0xd64fd1,_0x88834f]);}_0x4a19c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4da9a6=>{if('formatBlock'!=_0x4da9a6['type'])return;const {data:_0x1eddf6}=_0x4da9a6;if(_0x1eddf6&&'heading'==_0x1eddf6['commandName']){const _0x3115ea=_0x1eddf6['commandParams'][0x0]['value'],_0x263f15=this['_getHeadingLevel'](_0x3115ea);if(null!==_0x263f15)return{'type':'format','content':o(_0x519f03,'*Change\x20to:*\x20%0',(_0x46d3be=0x1,_0xef51db=_0x263f15,o(_0x519f03,'ELEMENT_HEADING',[_0x46d3be,_0xef51db])))};const _0x3b729b=this['_headingOptions']['find'](_0x4475ab=>_0x4475ab['model']===_0x3115ea)['title'];return{'type':'format','content':o(_0x519f03,'*Change\x20to:*\x20%0',_0xc714b8(0x1,_0x3b729b))};}var _0x46d3be,_0xef51db;});}['_getHeadingLevel'](_0x49ce82){const _0x35f53c=_0x49ce82['match'](/^heading(\d+)/);if(_0x35f53c)return _0x35f53c[0x1];const _0x431ecd=this['_headingOptions']?.['find'](_0x573f40=>_0x573f40['model']==_0x49ce82);if(_0x431ecd&&_0x431ecd['view']){const _0x57ec1c=_0x431ecd['view'],_0x14c0f0=(_0x57ec1c['name']??_0x57ec1c)['match'](/^h(\d+)/);if(_0x14c0f0)return _0x14c0f0[0x1];}return null;}}class Z extends _0x56b6e2{['afterInit'](){const _0x29846f=this['editor'];if(!_0x29846f['plugins']['has']('HighlightEditing'))return;const _0x33fc45=_0x29846f['plugins']['get']('TrackChangesEditing'),_0x1b19ca=_0x29846f['locale'];_0x33fc45['enableDefaultAttributesIntegration']('highlight'),_0x33fc45['registerInlineAttribute']('highlight'),_0x33fc45['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b19ca,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11ed53=this['editor'],_0x1de233=_0x11ed53['locale'];_0x11ed53['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2b13=>{if('formatInline'!=_0x3c2b13['type'])return;const {data:_0x4ef666}=_0x3c2b13;if(_0x4ef666&&'highlight'==_0x4ef666['commandName']){const _0x494d20=_0x1de233['t'],_0xa8e40f=_0x4ef666['commandParams'][0x0]['value'];if(_0xa8e40f){const _0x4857c2=_0x11ed53['config']['get']('highlight.options')['find'](_0x116ba9=>_0x116ba9['model']==_0xa8e40f),_0x41b66a=_0x494d20(_0x4857c2['title'])['toLowerCase']();return{'type':'format','content':o(_0x1de233,'*Set\x20highlight:*\x20%0',_0x41b66a),'color':{'value':_0x4857c2['color'],'title':_0x4857c2['title']}};}return{'type':'format','content':o(_0x1de233,'*Remove\x20highlight*',o(_0x1de233,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x56b6e2{['afterInit'](){const _0x42d6f1=this['editor'];if(!_0x42d6f1['plugins']['has']('HorizontalLineEditing'))return;_0x42d6f1['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x230a18=_0x42d6f1['plugins']['get']('TrackChangesEditing'),_0x2438a9=_0x42d6f1['locale'];_0x230a18['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2215b9=>o(_0x2438a9,'ELEMENT_HORIZONTAL_LINE',_0x2215b9)),_0x42d6f1['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x20356c,{writer:_0x53b8c8,options:_0x284f85})=>{if(!_0x284f85['showSuggestionHighlights'])return null;const _0x2500b5=_0x53b8c8['createContainerElement']('div'),_0x2c4e22=_0x53b8c8['createEmptyElement']('hr');return _0x53b8c8['addClass']('ck-horizontal-line',_0x2500b5),_0x53b8c8['insert'](_0x53b8c8['createPositionAt'](_0x2500b5,0x0),_0x2c4e22),_0x2500b5;},'converterPriority':'high'});}}class et extends _0x56b6e2{['afterInit'](){const _0x53ebe0=this['editor'];if(!_0x53ebe0['plugins']['has']('HtmlEmbed'))return;const _0x25f4cc=_0x53ebe0['plugins']['get']('TrackChangesEditing'),_0x349a30=_0x53ebe0['locale'];_0x25f4cc['descriptionFactory']['registerElementLabel']('rawHtml',_0x5a8279=>o(_0x349a30,'ELEMENT_HTML_EMBED',_0x5a8279)),_0x25f4cc['enableDefaultAttributesIntegration']('htmlEmbed'),_0x25f4cc['registerBlockAttribute']('value'),_0x25f4cc['descriptionFactory']['registerDescriptionCallback'](_0x191548=>{if('attribute'!=_0x191548['type'])return;const {data:_0x510292}=_0x191548;if(_0x510292&&'value'==_0x510292['key']&&_0x191548['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x27c7d5=o(_0x349a30,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x349a30,'*Change\x20%0\x20content*',_0x27c7d5)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f6bde=this['editor'],_0x27f46f=_0x1f6bde['locale'];_0x1f6bde['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3d2f78=>{if('formatBlock'!=_0x3d2f78['type'])return;const {data:_0x1c62df}=_0x3d2f78;if(_0x1c62df&&'htmlEmbed'==_0x1c62df['commandName']){const _0xd0d442=o(_0x27f46f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27f46f,'*Change\x20%0\x20content*',_0xd0d442)};}});}}class it extends _0x56b6e2{['afterInit'](){const _0x2c2cbe=this['editor'];if(!_0x2c2cbe['plugins']['has']('ImageEditing'))return;const _0x23a388=_0x2c2cbe['plugins']['get']('TrackChangesEditing'),_0x2119d7=_0x2c2cbe['plugins']['get']('ImageUtils'),_0x1e73c1=_0x2c2cbe['locale'];_0x23a388['enableCommand']('insertImage'),_0x23a388['descriptionFactory']['registerElementLabel']('imageBlock',_0x4d7ef2=>o(_0x1e73c1,'ELEMENT_IMAGE',_0x4d7ef2)),_0x23a388['descriptionFactory']['registerElementLabel']('imageInline',_0xe4db77=>o(_0x1e73c1,'ELEMENT_INLINE_IMAGE',_0xe4db77)),_0x23a388['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1e73c1,'ELEMENT_CAPTION')),_0x2c2cbe['plugins']['has']('ImageUploadEditing')&&_0x23a388['enableCommand']('uploadImage'),_0x2c2cbe['plugins']['has']('ImageBlockEditing')&&_0x2c2cbe['plugins']['has']('ImageInlineEditing')&&(_0x23a388['enableCommand']('imageTypeInline',(_0x5acbcd,_0x3b3b74)=>{const _0x4caefd=_0x2119d7['getClosestSelectedImageElement'](_0x2c2cbe['model']['document']['selection']);_0x2c2cbe['model']['change'](()=>{_0x23a388['markBlockFormat'](_0x4caefd,{'commandName':'imageTypeInline','commandParams':[_0x3b3b74]},[],'convertBlockImageToInline');});}),_0x23a388['enableCommand']('imageTypeBlock',(_0x477d91,_0x1ebec1)=>{_0x2c2cbe['model']['change'](_0x352dbf=>{let _0x5bc5f8=_0x2119d7['getClosestSelectedImageElement'](_0x2c2cbe['model']['document']['selection']),_0x5a4c60=_0x352dbf['createRangeOn'](_0x5bc5f8);const _0x1da55f=_0x3f1028['fromPosition'](_0x5a4c60['start'],'toPrevious'),_0x193daa=_0x3f1028['fromPosition'](_0x5a4c60['end'],'toNext');_0x23a388['forceDefaultExecution'](()=>_0x477d91(_0x1ebec1)),_0x5bc5f8=_0x2119d7['getClosestSelectedImageElement'](_0x2c2cbe['model']['document']['selection']),_0x5a4c60=_0x352dbf['createRangeOn'](_0x5bc5f8);const _0x10250a=_0x352dbf['createRange'](_0x1da55f,_0x193daa);_0x1da55f['detach'](),_0x193daa['detach'](),_0x23a388['markBlockFormat'](_0x5bc5f8,{'commandName':'imageTypeInline','commandParams':[_0x1ebec1]},[],'convertInlineImageToBlock'),_0x10250a['start']['isBefore'](_0x5a4c60['start'])&&_0x23a388['markInsertion'](_0x352dbf['createRange'](_0x10250a['start'],_0x5a4c60['start']),'convertInlineImageToBlock'),_0x5a4c60['end']['isBefore'](_0x10250a['end'])&&_0x23a388['markInsertion'](_0x352dbf['createRange'](_0x5a4c60['end'],_0x10250a['end']),'convertInlineImageToBlock');});}),_0x23a388['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x23a388['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x23a388['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x23a388['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x23a388['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x23a388['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x553706])=>{const _0x46b7aa=_0x23a388['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x36348a=_0x553706['start'],_0x2e0f97=_0x553706['end'];const _0x3febd8=_0x2c2cbe['model']['schema']['getNearestSelectionRange'](_0x36348a,'backward'),_0x9a93cd=_0x2c2cbe['model']['schema']['getNearestSelectionRange'](_0x2e0f97,'forward');_0x3febd8['isCollapsed']&&(_0x36348a=_0x3febd8['start']),_0x9a93cd['isCollapsed']&&(_0x2e0f97=_0x9a93cd['end']),_0x46b7aa([_0x2c2cbe['model']['createRange'](_0x36348a,_0x2e0f97)]);}),_0x23a388['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x39f9b5),_0x23a388['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x39f9b5)),_0x2c2cbe['plugins']['has']('ImageCaptionEditing')&&(_0x23a388['enableCommand']('toggleImageCaption',(_0x4babea,_0x158328)=>{const _0x23726d=_0x2c2cbe['plugins']['get']('ImageCaptionUtils');let _0x7a07ad=_0x2119d7['getClosestSelectedImageElement'](_0x2c2cbe['model']['document']['selection']),_0x40cfd7=_0x23726d['getCaptionFromImageModelElement'](_0x7a07ad);_0x2c2cbe['model']['change'](()=>{if(_0x40cfd7)return void _0x23a388['markDeletion'](_0x2c2cbe['model']['createRangeOn'](_0x40cfd7));const _0x2a883e=_0x2119d7['isBlockImage'](_0x7a07ad);_0x4babea(_0x158328),_0x7a07ad=_0x2119d7['getClosestSelectedImageElement'](_0x2c2cbe['model']['document']['selection']),_0x40cfd7=_0x23726d['getCaptionFromImageModelElement'](_0x7a07ad),_0x23a388['markInsertion'](_0x2c2cbe['model']['createRangeOn'](_0x40cfd7),_0x2a883e?null:'imageCaption');});}),_0x23a388['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x39f9b5));const _0x27f563=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x49f984(_0x37cd2a,_0x33f2fb){const _0x381ff3=_0x27f563['findIndex'](({type:_0xd0748f,subType:_0x339dd8})=>_0x37cd2a['type']==_0xd0748f&&_0x37cd2a['subType']==_0x339dd8),_0x2e48c6=_0x27f563['findIndex'](({type:_0x256d85,subType:_0x168812})=>_0x33f2fb['type']==_0x256d85&&_0x33f2fb['subType']==_0x168812);if(_0x381ff3<0x0||_0x2e48c6<0x0)return!0x1;const _0x1645be=_0x37cd2a['getFirstRange'](),_0x233998=_0x33f2fb['getFirstRange']();if((0x0==_0x381ff3||0x1==_0x381ff3)&&0x2==_0x2e48c6&&_0x1645be['isIntersecting'](_0x233998))return!0x0;if(0x2==_0x381ff3&&0x3==_0x2e48c6){const _0x3f3f78=_0x23a388['_findSuggestions'](_0x1645be,'insertion')['filter'](({suggestion:_0x3742ed,meta:_0x11bb66})=>_0x11bb66['isOwn']&&'convertInlineImageToBlock'==_0x3742ed['subType']);if(_0x3f3f78['length']>0x1&&_0x233998['end']['isEqual'](_0x1645be['start']))return!0x0;if(0x1==_0x3f3f78['length']&&(_0x1645be['start']['isEqual'](_0x233998['end'])||_0x1645be['end']['isEqual'](_0x233998['start'])))return!0x0;}if(0x3==_0x381ff3&&0x3==_0x2e48c6&&_0x1645be['start']['isBefore'](_0x233998['start'])){const _0x363371=_0x1645be['end']['nodeAfter'],_0x3d6bbe=_0x233998['start']['nodeBefore'];return _0x2119d7['isBlockImage'](_0x363371)&&_0x363371===_0x3d6bbe;}return!0x1;}function _0x39f9b5(_0x5bfe50,_0x57049d){return _0x49f984(_0x5bfe50,_0x57049d)?[_0x5bfe50,_0x57049d]:_0x49f984(_0x57049d,_0x5bfe50)?[_0x57049d,_0x5bfe50]:null;}_0x2c2cbe['plugins']['has']('ImageResize')&&(_0x23a388['enableDefaultAttributesIntegration']('resizeImage'),_0x23a388['registerBlockAttribute']('resizedWidth'),_0x23a388['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1e73c1,'FORMAT_IMAGE_SIZE'))),_0x2c2cbe['plugins']['has']('ImageTextAlternativeEditing')&&(_0x23a388['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x23a388['registerBlockAttribute']('alt')),_0x23a388['descriptionFactory']['registerDescriptionCallback'](_0xb83589=>{if(!!_0x27f563['find'](({type:_0x4fc693,subType:_0x4f3bf8})=>_0xb83589['type']==_0x4fc693&&_0xb83589['subType']==_0x4f3bf8))return _0xb83589['previous']?{}:void 0x0;}),_0x23a388['descriptionFactory']['registerDescriptionCallback'](_0x3a712e=>{if('insertion'==_0x3a712e['type']||'deletion'==_0x3a712e['type']){const _0xf17c26=_0x3a712e['getContainedElement']();if(_0xf17c26&&_0xf17c26['is']('element','caption'))return{'type':'insertion'==_0x3a712e['type']?'addObject':'removeObject','element':_0xf17c26,'quantity':0x1};}}),_0x23a388['descriptionFactory']['registerDescriptionCallback'](_0x5a0653=>'formatBlock'==_0x5a0653['type']&&'convertInlineImageToBlock'==_0x5a0653['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5a0653['type']&&'convertBlockImageToInline'==_0x5a0653['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x23a388['descriptionFactory']['registerDescriptionCallback'](_0x2eb593=>{if('attribute'!=_0x2eb593['type'])return;const {data:_0x50cd70}=_0x2eb593;if(!_0x50cd70||'alt'!=_0x50cd70['key'])return;const _0x389223=_0x50cd70['newValue'];return _0x389223?{'type':'format','content':o(_0x1e73c1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x389223+'\x22')}:{'type':'format','content':o(_0x1e73c1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24f2d6=this['editor'],_0x3b1a42=_0x24f2d6['locale'];_0x24f2d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1be56f=>{if('formatBlock'!=_0x1be56f['type']&&'formatInline'!=_0x1be56f['type'])return;const {data:_0x48c706}=_0x1be56f;if(_0x48c706){if('imageTextAlternative'==_0x48c706['commandName']){const _0xb0beb=_0x48c706['commandParams'][0x0]['newValue'];return _0xb0beb?{'type':'format','content':o(_0x3b1a42,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb0beb+'\x22')}:{'type':'format','content':o(_0x3b1a42,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x48c706['commandName']){const _0x5c473f=_0x48c706['commandParams'][0x0]['width'];return _0x5c473f?{'type':'format','content':o(_0x3b1a42,'*Set\x20image\x20width:*\x20%0',_0x5c473f)}:{'type':'format','content':o(_0x3b1a42,'*Reset\x20image\x20width*')};}}});}}class st extends _0x56b6e2{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x579346=this['editor']['locale'],_0x26edd1=this['editor']['plugins']['get']('TrackChangesEditing');_0x26edd1['enableDefaultAttributesIntegration']('replaceImageSource'),_0x26edd1['registerBlockAttribute']('src'),_0x26edd1['descriptionFactory']['registerDescriptionCallback'](_0x19bbb0=>{if('attribute'!=_0x19bbb0['type'])return;const {data:_0x139ab8}=_0x19bbb0;return _0x139ab8&&'src'==_0x139ab8['key']?_0x139ab8['newValue']&&_0x139ab8['oldValue']?{'type':'format','content':o(_0x579346,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x941fb7=this['editor']['plugins']['get']('TrackChangesEditing');_0x941fb7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x941fb7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x941fb7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x941fb7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d1221=this['editor'],_0x234094=_0x1d1221['locale'];_0x1d1221['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53c410=>{if('formatBlock'!=_0x53c410['type']&&'formatInline'!=_0x53c410['type'])return;const {data:_0x510323}=_0x53c410;if(!_0x510323||'replaceImageSource'!=_0x510323['commandName'])return;return{'type':'format','content':o(_0x234094,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x56b6e2{['afterInit'](){const _0x3a4675=this['editor'];if(!_0x3a4675['plugins']['has']('ImageStyleEditing'))return;const _0x495170=_0x3a4675['plugins']['get']('TrackChangesEditing'),_0x18d2b9=_0x3a4675['plugins']['get']('ImageUtils'),_0x56eba1={};_0x495170['enableCommand']('imageStyle',(_0x429d5d,_0x984cd4)=>{const _0x29babe=_0x3a4675['plugins']['get']('Users')['me'],_0x34e2de=_0x3a4675['commands']['get']('imageStyle');let _0x111691=_0x18d2b9['getClosestSelectedImageElement'](_0x3a4675['model']['document']['selection']),_0x1995c4=_0x3a4675['model']['createRangeOn'](_0x111691),_0x2b8284=_0x34e2de['value'];if(_0x2b8284==_0x984cd4['value'])return;const _0x4c1d20={'commandName':'imageStyle','commandParams':[_0x984cd4],'formatGroupId':_0xadd5e0()};_0x3a4675['model']['change'](()=>{if(_0x495170['getSuggestions']()['filter'](_0xd74dfb=>_0xd74dfb['isInContent']&&_0x29babe==_0xd74dfb['author']&&('formatBlock'==_0xd74dfb['type']||'formatInline'==_0xd74dfb['type'])&&('imageStylePreApply'==_0xd74dfb['subType']||'imageStylePostApply'==_0xd74dfb['subType'])&&_0xd74dfb['getFirstRange']()['isEqual'](_0x1995c4))['forEach'](_0x1c918f=>_0x495170['discardSuggestion'](_0x1c918f['head'])),_0x111691=_0x18d2b9['getClosestSelectedImageElement'](_0x3a4675['model']['document']['selection']),_0x1995c4=_0x3a4675['model']['createRangeOn'](_0x111691),_0x34e2de['refresh'](),_0x3a4675['commands']['get']('imageTypeInline')['refresh'](),_0x3a4675['commands']['get']('imageTypeBlock')['refresh'](),_0x2b8284=_0x34e2de['value'],_0x2b8284!=_0x984cd4['value'])return _0x18d2b9['isInlineImage'](_0x111691)&&_0x34e2de['shouldConvertImageType'](_0x984cd4['value'],_0x111691)?(_0x429d5d({..._0x984cd4,'setImageSizes':!0x1}),_0x111691=_0x18d2b9['getClosestSelectedImageElement'](_0x3a4675['model']['document']['selection']),void _0x495170['markBlockFormat'](_0x111691,{..._0x4c1d20,'commandReversedParams':[{'value':_0x2b8284||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x18d2b9['isBlockImage'](_0x111691)?_0x495170['markBlockFormat'](_0x111691,_0x4c1d20,[],'imageStylePostApply'):_0x495170['markInlineFormat'](_0x1995c4,_0x4c1d20,'imageStylePostApply'));});});for(const _0x2e4723 of _0x3a4675['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x56eba1[_0x2e4723['name']]=_0x2e4723['title']['toLowerCase']();_0x495170['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x495170['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x495170['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x495170['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xbf4221])=>{_0x18d2b9['setImageNaturalSizeAttributes'](_0xbf4221['getContainedElement']());}),_0x495170['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5d6368,_0x14e1b8)=>{_0x495170['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5d6368,{'commandName':_0x14e1b8['commandName'],'commandParams':_0x14e1b8['commandReversedParams']});}),_0x495170['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x28d933,_0x1cab03){if(_0x51944c(_0x28d933,_0x1cab03))return[_0x28d933,_0x1cab03];if(_0x51944c(_0x1cab03,_0x28d933))return[_0x1cab03,_0x28d933];return null;});const _0x39aea2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x51944c(_0x4ee42c,_0x295de0){const _0x3c5f0e=_0x39aea2['findIndex'](({type:_0xfd9689,subType:_0x5a82fe})=>_0x4ee42c['type']==_0xfd9689&&_0x4ee42c['subType']==_0x5a82fe),_0x432932=_0x39aea2['findIndex'](({type:_0x1cb84a,subType:_0x977ec4})=>_0x295de0['type']==_0x1cb84a&&_0x295de0['subType']==_0x977ec4);if(_0x3c5f0e<0x0||_0x432932<0x0)return!0x1;const _0x368874=_0x4ee42c['getFirstRange'](),_0x52307c=_0x295de0['getFirstRange']();if((0x0==_0x3c5f0e||0x1==_0x3c5f0e)&&0x2==_0x432932&&_0x368874['isIntersecting'](_0x52307c))return!0x0;if(0x2==_0x3c5f0e&&0x3==_0x432932){const _0x685136=_0x495170['_findSuggestions'](_0x368874,'insertion')['filter'](({suggestion:_0x4cb46f,meta:_0x411a42})=>_0x411a42['isOwn']&&'convertInlineImageToBlock'==_0x4cb46f['subType']);if(_0x685136['length']>0x1&&_0x52307c['end']['isEqual'](_0x368874['start']))return!0x0;if(0x1==_0x685136['length']&&(_0x368874['start']['isEqual'](_0x52307c['end'])||_0x368874['end']['isEqual'](_0x52307c['start'])))return!0x0;}if(0x3==_0x3c5f0e&&0x3==_0x432932&&_0x368874['start']['isBefore'](_0x52307c['start'])){const _0x214453=_0x368874['end']['nodeAfter'],_0xe78cf7=_0x52307c['start']['nodeBefore'];return _0x18d2b9['isBlockImage'](_0x214453)&&_0x214453===_0xe78cf7;}return!0x1;}_0x3a4675['model']['document']['registerPostFixer'](()=>{let _0x5e84b7=!0x1;const _0x1cd4ae=Array['from'](_0x3a4675['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f9483,data:_0x3c5dd0}of _0x1cd4ae){const {group:_0x5c102a,type:_0x5d8e46,subType:_0x4a914f,id:_0x28b95b}=_0x495170['_splitMarkerName'](_0x3f9483);if('suggestion'==_0x5c102a&&_0x495170['hasSuggestion'](_0x28b95b)){if('formatBlock'==_0x5d8e46&&('imageStylePreApply'==_0x4a914f||'imageStylePostApply'==_0x4a914f)){const _0x265ed2=_0x495170['getSuggestion'](_0x28b95b);if(_0x3c5dd0['newRange']){const _0x122bee=_0x265ed2['getFirstRange']()['getContainedElement']();if(_0x18d2b9['isBlockImage'](_0x122bee))continue;_0x495170['discardSuggestion'](_0x265ed2),_0x5e84b7=!0x0;}}if('insertion'==_0x5d8e46&&'imageCaption'==_0x4a914f&&!_0x3c5dd0['newRange']){const _0x2209bc=_0x495170['getSuggestion'](_0x28b95b);_0x2209bc['next']&&_0x2209bc['next']['isInContent']&&(_0x495170['discardSuggestion'](_0x2209bc['next']),_0x5e84b7=!0x0);}}}return _0x5e84b7;}),this['_registerLegacyDescription'](_0x56eba1);}['_registerLegacyDescription'](_0x3b5d41){const _0x19814b=this['editor'],_0x14677a=_0x19814b['locale'];_0x19814b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4afd8a=>{if('formatBlock'!=_0x4afd8a['type']&&'formatInline'!=_0x4afd8a['type'])return;const {data:_0x43cd65}=_0x4afd8a;if(!_0x43cd65||'imageStyle'!=_0x43cd65['commandName'])return;const _0x1f61cb=_0x43cd65['commandParams'][0x0]['value'];return _0x1d95f7('side'===_0x1f61cb?o(_0x14677a,'FORMAT_SIDE_IMAGE'):_0x3b5d41[_0x1f61cb]||_0x1f61cb);function _0x1d95f7(_0x1bd1a9){return{'type':'format','content':o(_0x14677a,'*Format:*\x20%0',_0x1bd1a9)};}});}}class ot extends _0x56b6e2{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x50c749){super(_0x50c749),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xfb0947=this['editor'],_0x24f2d4=_0xfb0947['commands']['get']('importWord'),_0x41543d=_0xfb0947['commands']['get']('trackChanges');_0x24f2d4&&(_0x24f2d4['on']('execute',(_0x20ebbb,[,_0x2e9e4f])=>{this['_trackChangesValueDuringImport']=_0x41543d['value'],_0x2e9e4f['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x24f2d4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x24f2d4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x41543d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xfb0947['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x48cc54,_0xa3cf89){const {suggestions:_0x1c873e}=_0xa3cf89,_0x8d66b3=this['editor']['commands']['get']('trackChanges'),_0x28f780=_0x8d66b3['value'];this['_trackChangesValueDuringImport']!==_0x28f780&&(_0x8d66b3['execute'](),this['_trackChangesExecuted']=!0x0),_0x1c873e&&_0x1c873e['forEach'](({id:_0x1635a1,type:_0x3c3960,author:_0x34d57f,created_at:_0x409a5e})=>{const _0x206596={'id':_0x1635a1,'type':_0x3c3960,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x34d57f,'createdAt':_0x409a5e?new Date(_0x409a5e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x206596);});}}class rt extends _0x56b6e2{['afterInit'](){const _0x5475f5=this['editor'],_0x2b9534=_0x5475f5['plugins']['get']('TrackChangesEditing');if(_0x5475f5['plugins']['has']('IndentEditing')&&(_0x2b9534['enableCommand']('indent'),_0x2b9534['enableCommand']('outdent')),_0x5475f5['plugins']['has']('IndentBlock')){for(const _0x41bad of['indentBlock','outdentBlock'])_0x2b9534['enableDefaultAttributesIntegration'](_0x41bad);}const _0x545f18=_0x5475f5['locale'];_0x2b9534['registerBlockAttribute']('blockIndent'),_0x2b9534['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x545f18,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34d98b=this['editor'],_0x547563=_0x34d98b['locale'],_0xcf5651=_0x34d98b['plugins']['get']('TrackChangesEditing');_0xcf5651['descriptionFactory']['registerDescriptionCallback'](_0xa73102=>{if('formatBlock'!=_0xa73102['type'])return;const {data:_0x72c06b}=_0xa73102;if(!_0x72c06b)return;if('indentBlock'!=_0x72c06b['commandName']&&'outdentBlock'!=_0x72c06b['commandName'])return;const _0x5df202=_0xa73102['getItems']()[0x0],_0x41a95f=_0xcf5651['descriptionFactory']['getItemLabel'](_0x5df202);return'indentBlock'==_0x72c06b['commandName']?{'type':'format','content':o(_0x547563,'*Indent:*\x20%0',_0x41a95f)}:'outdentBlock'==_0x72c06b['commandName']?{'type':'format','content':o(_0x547563,'*Outdent:*\x20%0',_0x41a95f)}:void 0x0;});}}class at extends _0x56b6e2{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x56b6e2{['afterInit'](){const _0x586ff9=this['editor'];if(!_0x586ff9['plugins']['has']('LinkEditing'))return;const _0x50e392=_0x586ff9['plugins']['get']('TrackChangesEditing'),_0x4783f6=_0x586ff9['commands']['get']('link');_0x50e392['enableDefaultAttributesIntegration']('link'),_0x50e392['enableDefaultAttributesIntegration']('unlink'),_0x50e392['registerInlineAttribute']('linkHref');for(const _0xa6e502 of _0x4783f6['manualDecorators'])_0x50e392['registerInlineAttribute'](_0xa6e502['id']),_0x50e392['descriptionFactory']['registerAttributeLabel'](_0xa6e502['id'],'link\x20('+_0xa6e502['label']['toLowerCase']()+')');_0x50e392['descriptionFactory']['registerDescriptionCallback'](_0x39038e=>{if('attribute'!=_0x39038e['type'])return;const {data:_0x4be3b6}=_0x39038e;if(!_0x4be3b6||'linkHref'!=_0x4be3b6['key'])return;const _0x310c08=_0x4be3b6['newValue'],_0x3d3162=_0x586ff9['locale'];return{'type':'format','content':null==_0x310c08?o(_0x3d3162,'*Remove\x20link*'):o(_0x3d3162,'*Set\x20link:*\x20%0','\x22'+_0x310c08+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26d1d5=this['editor'],_0x2705dc=_0x26d1d5['locale'];_0x26d1d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x386ccc=>{if('formatInline'!=_0x386ccc['type'])return;const {data:_0x194c7f}=_0x386ccc;if(_0x194c7f){if('link'==_0x194c7f['commandName']){const _0xd2879c=_0x194c7f['commandParams'][0x0];return{'type':'format','content':o(_0x2705dc,'*Set\x20link:*\x20%0','\x22'+_0xd2879c+'\x22')};}return'unlink'==_0x194c7f['commandName']?{'type':'format','content':o(_0x2705dc,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x56b6e2{['afterInit'](){const _0x4e0f71=this['editor'],_0x478c34=_0x4e0f71['locale'];if(!_0x4e0f71['plugins']['has']('LegacyListEditing'))return;const _0x5613d6=_0x4e0f71['plugins']['get']('TrackChangesEditing'),_0x433bee=_0x4e0f71['plugins']['has']('LegacyTodoListEditing');function _0x199f09(_0x365653){return()=>{const _0x433949=_0x4e0f71['model']['document']['selection'],_0x3980c7=_0x4e0f71['commands']['get'](_0x365653);if(_0x3980c7['value'])return void _0x4e0f71['execute']('paragraph',{});const _0x322241=_0x365653['slice'](0x0,-0x4),_0x4297aa=function(_0x30d16f,_0x5ef253,_0x4e2c7a){let _0xc2d9f9=Array['from'](_0x30d16f)['filter'](_0x53ef21=>function(_0x57a7c6,_0x1f99af){return _0x1f99af['checkChild'](_0x57a7c6['parent'],'listItem')&&!_0x1f99af['isObject'](_0x57a7c6);}(_0x53ef21,_0x4e2c7a));_0xc2d9f9=_0xc2d9f9['filter'](_0x371b97=>!_0x371b97['is']('element','listItem')||_0x371b97['getAttribute']('listType')!=_0x5ef253);const _0x2130f2=new Set();for(const _0x316e5c of _0xc2d9f9)_0x316e5c['is']('element','listItem')?_0x2130f2['add'](me(_0x316e5c)):_0x2130f2['add'](_0x316e5c);return Array['from'](_0x2130f2);}(_0x433949['getSelectedBlocks'](),_0x322241,_0x4e0f71['model']['schema']);_0x4e0f71['model']['change'](()=>{for(const _0x54f96b of _0x4297aa)_0x5613d6['markBlockFormat'](_0x54f96b,{'commandName':_0x365653,'commandParams':[{'forceValue':!_0x3980c7['value']}],'formatGroupId':'blockName'},fe(_0x54f96b));});};}function _0x4f5ab1(_0x5a847e){return()=>{const _0x1d8784=function(_0xc45909){let _0x3de4fc=Array['from'](_0xc45909);const _0x49e07e=_0x3de4fc['findIndex'](_0x50fc48=>'listItem'!=_0x50fc48['name']);return _0x49e07e>-0x1&&(_0x3de4fc=_0x3de4fc['slice'](0x0,_0x49e07e)),_0x3de4fc;}(_0x4e0f71['model']['document']['selection']['getSelectedBlocks']()),_0x24e27e=_0x4e0f71['model']['createRange'](_0x4e0f71['model']['createPositionAt'](_0x1d8784[0x0],'before'),_0x4e0f71['model']['createPositionAt'](_0x1d8784[_0x1d8784['length']-0x1],'end'));_0x4e0f71['model']['change'](()=>{_0x5613d6['markBlockFormat'](_0x24e27e,{'commandName':_0x5a847e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2dd328){const _0x3cd256=new Set();for(const _0x118e8d of _0x2dd328){let _0x5488eb=_0x118e8d['nextSibling'];for(;_0x5488eb&&_0x5488eb['getAttribute']('listIndent')>_0x118e8d['getAttribute']('listIndent');)_0x3cd256['add'](_0x5488eb),_0x5488eb=_0x5488eb['nextSibling'];}return Array['from'](_0x3cd256);}(_0x1d8784));});};}_0x5613d6['enableCommand']('numberedList',_0x199f09('numberedList')),_0x5613d6['enableCommand']('bulletedList',_0x199f09('bulletedList')),_0x433bee&&_0x5613d6['enableCommand']('todoList',_0x199f09('todoList')),_0x5613d6['enableCommand']('indentList',_0x4f5ab1('indentList')),_0x5613d6['enableCommand']('outdentList',_0x4f5ab1('outdentList')),_0x433bee&&_0x5613d6['enableCommand']('checkTodoList',()=>{const _0xb8865b=_0x4e0f71['commands']['get']('checkTodoList'),_0x2549cd=Array['from'](_0xb8865b['_selectedElements']);_0x2549cd['filter'](_0x9bc63=>_0x9bc63['getAttribute']('todoListChecked')!=_0xb8865b['value']),_0x4e0f71['model']['change'](()=>{for(const _0x8ddeeb of _0x2549cd)_0x5613d6['markBlockFormat'](_0x8ddeeb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0xb8865b['value']}]});});}),_0x5613d6['descriptionFactory']['registerElementLabel']('listItem',_0x2ae4b7=>o(_0x478c34,'ELEMENT_LIST_ITEM',_0x2ae4b7)),_0x5613d6['descriptionFactory']['registerDescriptionCallback'](_0x1cfdc4=>{if('formatBlock'!=_0x1cfdc4['type']&&'formatInline'!=_0x1cfdc4['type'])return;const {data:_0x2da97b}=_0x1cfdc4;if(_0x2da97b){if('numberedList'==_0x2da97b['commandName']||'bulletedList'==_0x2da97b['commandName']||'todoList'==_0x2da97b['commandName'])switch(_0x2da97b['commandName']['replace']('List','')){case'bulleted':return _0x28a1fc(o(_0x478c34,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x28a1fc(o(_0x478c34,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x28a1fc(o(_0x478c34,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2da97b['commandName'])return{'type':'format','content':o(_0x478c34,'*Indent:*\x20%0',o(_0x478c34,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2da97b['commandName'])return{'type':'format','content':o(_0x478c34,'*Outdent:*\x20%0',o(_0x478c34,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2da97b['commandName'])return _0x2da97b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x478c34,'*Check\x20item*')}:{'type':'format','content':o(_0x478c34,'*Uncheck\x20item*')};}function _0x28a1fc(_0x237b8e){return{'type':'format','content':o(_0x478c34,'*Change\x20to:*\x20%0',_0x237b8e)};}});}}function me(_0x5dff34){const _0x56f2d6=_0x5dff34['getAttribute']('listIndent');if(0x0==_0x56f2d6)return _0x5dff34;let _0xc14676=_0x5dff34;for(;_0x5dff34['previousSibling']&&_0x5dff34['previousSibling']['is']('element','listItem');){const _0xf8bb1a=_0x5dff34['previousSibling']['getAttribute']('listIndent');if(_0xf8bb1a==_0x56f2d6)_0xc14676=_0x5dff34['previousSibling'];else{if(_0xf8bb1a<_0x56f2d6)break;}_0x5dff34=_0x5dff34['previousSibling'];}return _0xc14676;}function fe(_0x51b8d8){const _0x4c4a4d=[];if(_0x51b8d8['is']('element','listItem')&&_0x51b8d8['getAttribute']('listIndent')>0x0){let _0x7515ca=_0x51b8d8['nextSibling'];for(;_0x7515ca&&'listItem'==_0x7515ca['name']&&_0x7515ca['getAttribute']('listIndent')==_0x51b8d8['getAttribute']('listIndent');)_0x4c4a4d['push'](_0x7515ca),_0x7515ca=_0x7515ca['nextSibling'];}return _0x4c4a4d;}class K extends _0x56b6e2{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x151cef=this['editor']['config']['get']('list.properties'),_0x289da9=this['editor']['plugins']['get']('TrackChangesEditing');_0x151cef['styles']&&_0x289da9['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x151cef['reversed']&&_0x289da9['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x151cef['startIndex']&&_0x289da9['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x289da9['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x188411,_0x34785f={}){const _0x23dd75=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a5266=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x23dd75['markMultiRangeBlockFormat'](_0x1a5266,{'commandName':'listStyle','commandParams':[{'type':_0x34785f['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x13fc60,_0xf74f75={}){const _0x6cb001=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4bac3a=this['_getSuggestionBlocks'](_0x4aff6f=>_0x4aff6f['is']('element','listItem')&&'numbered'===_0x4aff6f['getAttribute']('listType'));if(_0x4bac3a['length']<0x1)return;const _0x4835b2=_0x4bac3a['map'](_0xb64639=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xb64639,'before'),this['editor']['model']['createPositionAt'](_0xb64639,0x0)));this['editor']['model']['change'](()=>{_0x6cb001['markMultiRangeBlockFormat'](_0x4835b2,{'commandName':'listReversed','commandParams':[{'reversed':_0xf74f75['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3058d3,_0x1b6e36={}){const _0x261eb1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x543120=this['_getSuggestionBlocks'](_0x243716=>_0x243716['is']('element','listItem')&&'numbered'===_0x243716['getAttribute']('listType'));if(_0x543120['length']<0x1)return;const _0x5cc842=_0x543120['map'](_0x1bebd9=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1bebd9,'before'),this['editor']['model']['createPositionAt'](_0x1bebd9,0x0)));this['editor']['model']['change'](()=>{_0x261eb1['markMultiRangeBlockFormat'](_0x5cc842,{'commandName':'listStart','commandParams':[{'startIndex':_0x1b6e36['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x221d5e){if('formatBlock'!=_0x221d5e['type']&&'formatInline'!=_0x221d5e['type'])return;const _0xc3d78b=this['editor']['locale'],{data:_0x2436b9}=_0x221d5e;if(!_0x2436b9)return;let _0x247d4a,_0xa75b3;switch(_0x2436b9['commandName']){case'listStyle':_0x247d4a='*Change\x20to:*\x20%0',_0xa75b3={'type':'format','content':o(_0xc3d78b,_0x247d4a,o(_0xc3d78b,this['_getTranslationKeyForListStyle'](_0x2436b9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x247d4a=_0x2436b9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xa75b3={'type':'format','content':o(_0xc3d78b,_0x247d4a)};break;case'listStart':_0x247d4a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xa75b3={'type':'format','content':o(_0xc3d78b,_0x247d4a,_0x2436b9['commandParams'][0x0]['startIndex'])};}return _0xa75b3;}['_getSuggestionBlocksForListStyle'](){const _0x3cf77a=this['editor']['plugins']['get']('LegacyListUtils');let _0x52e3c1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x52e3c1[0x0]?.['is']('element','listItem')&&_0x52e3c1['unshift'](..._0x3cf77a['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x52e3c1[_0x52e3c1['length']-0x1]?.['is']('element','listItem')&&_0x52e3c1['push'](..._0x3cf77a['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x52e3c1=[...new Set(_0x52e3c1)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x52e3c1=_0x52e3c1['filter'](_0x33f847=>_0x33f847['is']('element','listItem'))),_0x52e3c1;}['_getSuggestionBlocks'](_0x4e82c9){const _0x3a5d54=this['editor']['plugins']['get']('LegacyListUtils');let _0x10b18b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4e82c9)['map'](_0x1d76e3=>{const _0x2272de=this['editor']['model']['createPositionAt'](_0x1d76e3,0x0);return[..._0x3a5d54['getSiblingNodes'](_0x2272de,'backward'),..._0x3a5d54['getSiblingNodes'](_0x2272de,'forward')];})['flat']();return _0x10b18b=[...new Set(_0x10b18b)],_0x10b18b;}['_getTranslationKeyForListStyle'](_0x2deb48){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2deb48)||'default')['toUpperCase']()+'_LIST_'+_0x2deb48['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x56b6e2{['afterInit'](){const _0x24c0a4=this['editor'];if(!_0x24c0a4['plugins']['has']('MediaEmbedEditing'))return;const _0x2c744b=_0x24c0a4['plugins']['get']('TrackChangesEditing'),_0x12b816=_0x24c0a4['locale'];_0x2c744b['enableCommand']('mediaEmbed'),_0x2c744b['descriptionFactory']['registerElementLabel']('media',_0x2f5bd4=>o(_0x12b816,'ELEMENT_MEDIA',_0x2f5bd4)),_0x24c0a4['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x490550,{writer:_0x3c7a15,options:_0x29ee1e})=>{if(_0x29ee1e['showSuggestionHighlights'])return _0x3c7a15['createEmptyElement']('div');},'converterPriority':'high'}),_0x24c0a4['data']['downcastDispatcher']['on']('attribute:url:media',(_0x33fa89,_0xd803ed,_0x55b355)=>{_0x55b355['options']['showSuggestionHighlights']&&_0x33fa89['stop']();},{'priority':'high'});}}class gt extends _0x56b6e2{['afterInit'](){const _0x5012ac=this['editor'];_0x5012ac['plugins']['has']('MentionEditing')&&_0x5012ac['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x56b6e2{['afterInit'](){const _0x226fa8=this['editor'],_0x25723b=_0x226fa8['plugins']['get']('TrackChangesEditing');_0x226fa8['plugins']['has']('MultiLevelList')&&(_0x25723b['enableDefaultAttributesIntegration']('multiLevelList'),_0x25723b['registerBlockAttribute']('listMarkerStyle'),_0x25723b['descriptionFactory']['registerDescriptionCallback'](_0x346f31=>this['handleDescriptions'](_0x346f31)));}['handleDescriptions'](_0x1e12ea){const _0x1a1597=this['editor']['locale'],{data:_0x3ff3d7}=_0x1e12ea,_0x1b27e0={'type':'format','content':''};if(_0x3ff3d7&&'listMarkerStyle'==_0x3ff3d7['key']){if(!_0x3ff3d7['oldValue'])return{'type':'format','content':o(_0x1a1597,'*Set\x20format:*\x20%0',o(_0x1a1597,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff3d7['newValue']+')'};if(!_0x3ff3d7['newValue']){let _0x1c6818=_0x1e12ea['head'];for(;_0x1c6818;){if(_0x1c6818['data']&&'listType'==_0x1c6818['data']['key']&&_0x1c6818['data']['newValue'])return _0x1b27e0;_0x1c6818=_0x1c6818['next'];}return{'type':'format','content':o(_0x1a1597,'*Remove\x20format:*\x20%0',o(_0x1a1597,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3ff3d7['oldValue']+')'};}}}}class mt extends _0x56b6e2{['afterInit'](){const _0x527f06=this['editor'];if(!_0x527f06['plugins']['has']('PageBreakEditing'))return;_0x527f06['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2635d1=_0x527f06['plugins']['get']('TrackChangesEditing'),_0xad3d88=_0x527f06['locale'];_0x2635d1['descriptionFactory']['registerElementLabel']('pageBreak',_0x17af62=>o(_0xad3d88,'ELEMENT_PAGE_BREAK',_0x17af62));}}class dt extends _0x56b6e2{['afterInit'](){const _0x313339=this['editor'];if(!_0x313339['plugins']['has']('Paragraph'))return;const _0x24dde2=_0x313339['locale'],_0x333c11=_0x313339['plugins']['get']('TrackChangesEditing');_0x333c11['descriptionFactory']['registerElementLabel']('paragraph',_0x112d57=>o(_0x24dde2,'ELEMENT_PARAGRAPH',_0x112d57)),_0x333c11['enableDefaultAttributesIntegration']('paragraph'),_0x333c11['enableCommand']('insertParagraph'),_0x313339['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x313339),{'priority':'highest'}),_0x313339['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x51db16,_0x47addc,_0x104bfd)=>{_0x104bfd['options']['showSuggestionHighlights']&&nr(_0x313339,{'showActiveMarker':!0x1})(_0x51db16,_0x47addc,_0x104bfd);},{'priority':'highest'});const _0x1af73a=_0x333c11['descriptionFactory'];_0x1af73a['registerDescriptionCallback'](_0x16c8e8=>{if('insertion'!==_0x16c8e8['type'])return;const {start:_0x17712f,end:_0x20adaa}=_0x16c8e8['getFirstRange']();if(!_0x17712f['isTouching'](_0x20adaa)||!_0x17712f['nodeAfter'])return;const _0xd72565=_0x313339['model']['schema'],_0xa190d8=_0x17712f['nodeAfter'];return _0xd72565['isBlock'](_0xa190d8)&&!_0xd72565['isLimit'](_0xa190d8)&&_0xd72565['checkChild'](_0xa190d8,'$text')?{'type':'insertion','content':o(_0x24dde2,'*Insert:*\x20%0',_0x1af73a['getItemLabel'](_0xa190d8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41435e=this['editor'],_0x5d3fbc=_0x41435e['locale'];_0x41435e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fa829=>{if('formatBlock'!=_0x3fa829['type'])return;const {data:_0x18d0e3}=_0x3fa829;return _0x18d0e3&&'paragraph'==_0x18d0e3['commandName']?{'type':'format','content':o(_0x5d3fbc,'*Change\x20to:*\x20%0',o(_0x5d3fbc,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x318a04,{showActiveMarker:_0x1406e1=!0x0}={}){return(_0x237622,_0x56d4ed,_0x8c4eed)=>{const _0x4c0510=_0x318a04['plugins']['get']('TrackChangesEditing'),_0x226ce6=_0x56d4ed['markerRange']['start'],_0x5f222e=_0x56d4ed['markerRange']['end'],_0x77e2b9=_0x318a04['model']['schema'];if(!_0x226ce6['isTouching'](_0x5f222e)||!_0x226ce6['nodeAfter'])return;const _0x382952=_0x226ce6['nodeAfter'];if(_0x77e2b9['isBlock'](_0x382952)&&!_0x77e2b9['isLimit'](_0x382952)&&_0x77e2b9['checkChild'](_0x382952,'$text')){if(!_0x8c4eed['consumable']['consume'](_0x56d4ed['markerRange'],_0x237622['name']))return;const _0x1e94cd=_0x8c4eed['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x42d46d=_0x8c4eed['mapper']['toViewPosition'](_0x5f222e);_0x1406e1&&_0x4c0510['activeMarkers']['includes'](_0x56d4ed['markerName'])&&_0x8c4eed['writer']['addClass']('ck-suggestion-marker--active',_0x1e94cd),_0x8c4eed['writer']['insert'](_0x42d46d,_0x1e94cd),_0x8c4eed['mapper']['bindElementToMarker'](_0x1e94cd,_0x56d4ed['markerName']);}};}class pt extends _0x56b6e2{['afterInit'](){const _0x4cab03=this['editor'];if(!_0x4cab03['plugins']['has']('RemoveFormatEditing'))return;_0x4cab03['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3950e8=this['editor'];_0x3950e8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bd983=>{if('formatBlock'!=_0x2bd983['type']&&'formatInline'!=_0x2bd983['type'])return;const {data:_0x502a51}=_0x2bd983;return _0x502a51&&'removeFormat'==_0x502a51['commandName']?{'type':'format','content':o(_0x3950e8['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x56b6e2{['afterInit'](){const _0x314de2=this['editor'];if(!_0x314de2['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4bfabe=_0x314de2['plugins']['get']('TrackChangesEditing');_0x4bfabe['enableCommand']('goToPreviousRestrictedEditingException'),_0x4bfabe['enableCommand']('goToNextRestrictedEditingException');const _0x19906b=_0x314de2['plugins']['get']('RestrictedEditingModeEditing');_0x19906b['enableCommand']('trackChanges'),_0x19906b['enableCommand']('acceptSuggestion'),_0x19906b['enableCommand']('discardSuggestion'),_0x19906b['enableCommand']('acceptAllSuggestions'),_0x19906b['enableCommand']('discardAllSuggestions'),_0x19906b['enableCommand']('acceptSelectedSuggestions'),_0x19906b['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x56b6e2{static get['requires'](){return[_0x5e5a5e];}['init'](){const _0x3d5f6f=this['editor'],_0x2f70db=_0x3d5f6f['plugins']['get']('TrackChangesEditing');_0x2f70db['enableCommand']('shiftEnter'),_0x3d5f6f['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x3d5f6f),{'priority':'high'}),_0x3d5f6f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x3d5f6f),{'priority':'high'}),_0x3d5f6f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x27d5fa,_0x42b0fa,_0x168957)=>{_0x168957['options']['showSuggestionHighlights']&&de(_0x3d5f6f,{'showActiveMarker':!0x1})(_0x27d5fa,_0x42b0fa,_0x168957);}),_0x2f70db['descriptionFactory']['registerElementLabel']('softBreak',_0x2024a1=>o(_0x3d5f6f['locale'],'ELEMENT_LINE_BREAK',_0x2024a1));}}function de(_0x2947a1,{showActiveMarker:_0x38e846=!0x0}={}){return(_0x5a2b11,_0xcbc5cf,_0x9ec295)=>{const _0x380763=_0x2947a1['plugins']['get']('TrackChangesEditing');if(!_0x9ec295['consumable']['test'](_0xcbc5cf['markerRange'],_0x5a2b11['name']))return;const _0x619aec=_0x2947a1['model'];for(const _0x169391 of _0xcbc5cf['markerRange']['getItems']()){if(!_0x169391['is']('element','softBreak'))continue;const _0x3b6a62='deletion'==_0xcbc5cf['markerName']['split'](':')[0x1]?'merge':'split',_0x3bffeb=_0x9ec295['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b6a62}),_0x34d066=_0x9ec295['mapper']['toViewPosition'](_0x619aec['createPositionBefore'](_0x169391));_0x38e846&&_0x380763['activeMarkers']['includes'](_0xcbc5cf['markerName'])&&_0x9ec295['writer']['addClass']('ck-suggestion-marker--active',_0x3bffeb),_0x9ec295['writer']['insert'](_0x34d066,_0x3bffeb),_0x9ec295['mapper']['bindElementToMarker'](_0x3bffeb,_0xcbc5cf['markerName']);}};}class wt extends _0x56b6e2{['afterInit'](){const _0x5eac0a=this['editor'],_0x28fcc4=_0x5eac0a['model'],_0x4762ea=_0x5eac0a['locale'];if(!_0x5eac0a['plugins']['has']('StandardEditingModeEditing'))return;const _0x13203f=_0x5eac0a['plugins']['get']('TrackChangesEditing'),_0x2daed6='restrictedEditingException',_0x596364=_0x5eac0a['commands']['get'](_0x2daed6);_0x13203f['enableCommand'](_0x2daed6,(_0x46dd31,_0x38b7ea={})=>{const _0x545dbb=_0x28fcc4['document']['selection'];if(_0x545dbb['isCollapsed'])return void _0x46dd31(_0x38b7ea);const _0x538995=void 0x0!==_0x38b7ea['forceValue']?_0x38b7ea['forceValue']:!_0x596364['value'];_0x28fcc4['change'](()=>{const _0x58c3b7=Array['from'](_0x545dbb['getRanges']());for(const _0x67e615 of _0x58c3b7){const _0x28dd2a=_0x538995?[_0x67e615]:io(_0x2daed6,_0x67e615,_0x28fcc4);for(const _0x18931b of _0x28dd2a)_0x13203f['markInlineFormat'](_0x18931b,{'commandName':_0x2daed6,'commandParams':[{'forceValue':_0x538995}]});}});}),_0x13203f['descriptionFactory']['registerDescriptionCallback'](_0x3bc10e=>{if('formatBlock'!=_0x3bc10e['type']&&'formatInline'!=_0x3bc10e['type'])return;const {data:_0x13bff3}=_0x3bc10e;return _0x13bff3&&_0x13bff3['commandName']==_0x2daed6?_0x13bff3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4762ea,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4762ea,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x56b6e2{['afterInit'](){const _0x233f50=this['editor'];if(!_0x233f50['plugins']['has']('Style')||!_0x233f50['plugins']['has']('DataSchema'))return;const _0xcafc8=_0x233f50['plugins']['get']('TrackChangesEditing'),_0x3d61c7=_0x233f50['locale'],_0x4b08f4=_0x233f50['config']['get']('style')||{},_0x66f2c3=_0x233f50['plugins']['get']('GeneralHtmlSupport'),_0x7c5f9b=_0x233f50['plugins']['get']('StyleUtils')['normalizeConfig'](_0x233f50['plugins']['get']('DataSchema'),_0x4b08f4['definitions']);_0xcafc8['enableDefaultAttributesIntegration']('style');const _0x1d7d4e=new Set();for(const _0x51a21d of _0x7c5f9b['block']){const _0x3a8588=_0x66f2c3['getGhsAttributeNameForElement'](_0x51a21d['element']);_0x1d7d4e['add'](_0x3a8588);}const _0x449702=new Set();for(const _0x2c7ed4 of _0x7c5f9b['inline']){const _0x26e214=_0x66f2c3['getGhsAttributeNameForElement'](_0x2c7ed4['element']);_0x449702['add'](_0x26e214);for(const _0x2675cc of _0x2c7ed4['ghsAttributes'])_0x449702['add'](_0x2675cc);}for(const _0x40e66a of _0x1d7d4e)_0xcafc8['registerBlockAttribute'](_0x40e66a),_0xcafc8['descriptionFactory']['registerAttributeLabel'](_0x40e66a,o(_0x3d61c7,'FORMAT_STYLE'));for(const _0xa55c8b of _0x449702)_0xcafc8['registerInlineAttribute'](_0xa55c8b),_0xcafc8['descriptionFactory']['registerAttributeLabel'](_0xa55c8b,o(_0x3d61c7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x21de19=this['editor'],_0x2aa1ae=_0x21de19['locale'];_0x21de19['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x60e801=>{if('formatBlock'!=_0x60e801['type']&&'formatInline'!=_0x60e801['type'])return;const {data:_0x328ab6}=_0x60e801;return _0x328ab6&&'style'===_0x328ab6['commandName']?_0x328ab6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2aa1ae,'*Set\x20format:*\x20%0',_0x328ab6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2aa1ae,'*Remove\x20format:*\x20%0',_0x328ab6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x56b6e2{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x18916b){super(_0x18916b),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3f3b34=this['editor'],_0x2543c9=_0x3f3b34['model']['document']['selection'];if(!_0x3f3b34['plugins']['has']('TableEditing'))return;const _0x3be56e=_0x3f3b34['locale'],_0xc009c9=_0x3f3b34['plugins']['get']('TrackChangesEditing'),_0x588758=_0x3f3b34['plugins']['get']('TableUtils');_0xc009c9['descriptionFactory']['registerElementLabel']('table',_0x673403=>o(_0x3be56e,'ELEMENT_TABLE',_0x673403)),this['_setupColumnsRowsFixing'](),_0xc009c9['enableCommand']('insertTable'),_0xc009c9['enableCommand']('selectTableRow'),_0xc009c9['enableCommand']('selectTableColumn');for(const _0x26a6f9 of['insertTableRowAbove','insertTableRowBelow']){const _0x3154bd=_0x3f3b34['commands']['get'](_0x26a6f9);_0xc009c9['enableCommand'](_0x26a6f9,_0x1575fb=>{_0x3f3b34['model']['change'](_0x18ef2f=>{_0x1575fb();const _0x1c22a1='above'===_0x3154bd['order'],_0x18f314=_0x588758['getSelectionAffectedTableCells'](_0x2543c9),_0x1d8a82=_0x588758['getRowIndexes'](_0x18f314),_0x37b426=_0x1c22a1?_0x1d8a82['first']-0x1:_0x1d8a82['last']+0x1,_0x286e17=_0x18f314[0x0]['findAncestor']('table'),_0x924c37=_0x588758['createTableWalker'](_0x286e17,{'startRow':_0x37b426,'endRow':_0x37b426}),_0x419bb9=Array['from'](_0x924c37)['map'](_0x56a181=>_0x18ef2f['createRangeOn'](_0x56a181['cell']));_0xc009c9['markMultiRangeInsertion'](_0x419bb9,'tableRow');});});}for(const _0x180148 of['insertTableColumnLeft','insertTableColumnRight']){const _0x295d23=_0x3f3b34['commands']['get'](_0x180148);_0xc009c9['enableCommand'](_0x180148,_0x14df74=>{_0x3f3b34['model']['change'](_0x190640=>{_0x14df74();const _0x20c8bf='left'===_0x295d23['order'],_0x53824e=_0x588758['getSelectionAffectedTableCells'](_0x2543c9),_0x443bf8=_0x588758['getColumnIndexes'](_0x53824e),_0x1c0f69=_0x20c8bf?_0x443bf8['first']-0x1:_0x443bf8['last']+0x1,_0x5288c0=_0x53824e[0x0]['findAncestor']('table'),_0x4e9a6c=_0x588758['createTableWalker'](_0x5288c0,{'startRow':0x0,'column':_0x1c0f69,'includeAllSlots':!0x1}),_0x23a5a3=Array['from'](_0x4e9a6c)['map'](_0xb7c61c=>_0x190640['createRangeOn'](_0xb7c61c['cell']));_0xc009c9['markMultiRangeInsertion'](_0x23a5a3,'tableColumn');});});}for(const _0x1e1d4c of['removeTableRow','removeTableColumn']){const _0x47773f=_0x1e1d4c['substr'](0xb),_0x35c5d7=_0x47773f['toLowerCase'](),_0x4c1a94=_0x35c5d7['substr'](0x0,0x3)+'span',_0x2e2433='table'+_0x47773f,_0x7c1c44='min'+_0x47773f,_0x134ac3='max'+_0x47773f;_0xc009c9['enableCommand'](_0x1e1d4c,()=>{_0x3f3b34['model']['change'](_0x2f7638=>{const _0x1ef864=_0x588758['getSelectionAffectedTableCells'](_0x2543c9),_0x5c2ef3=_0x1ef864[0x0]['findAncestor']('table');let _0x2bc13d;if('removeTableRow'==_0x1e1d4c){const _0x59bed3=_0x588758['getRowIndexes'](_0x1ef864);_0x2bc13d={'startRow':_0x59bed3['first'],'endRow':_0x59bed3['last'],'includeAllSlots':!0x0};}else{const _0x213a62=_0x588758['getColumnIndexes'](_0x1ef864);_0x2bc13d={'startColumn':_0x213a62['first'],'endColumn':_0x213a62['last'],'includeAllSlots':!0x0};}const _0x47e3d8=_0x588758['createTableWalker'](_0x5c2ef3,_0x2bc13d),_0x579af1=Array['from'](_0x47e3d8)['map'](({cell:_0x1778ea})=>_0x1778ea),_0x87caf1=Ee(_0x579af1['filter'](_0x1725b1=>_0x1725b1['hasAttribute'](_0x4c1a94))),_0x5c7c26=Ee(_0x579af1['filter'](_0x325eb6=>!_0x325eb6['hasAttribute'](_0x4c1a94)))['map'](_0xd8937a=>_0x2f7638['createRangeOn'](_0xd8937a)),_0x35a7e3=_0xc009c9['markMultiRangeDeletion'](_0x5c7c26,_0x2e2433);if(_0x35a7e3&&('tableRow'==_0x35a7e3['subType']||'tableColumn'==_0x35a7e3['subType'])){const _0x3f0106=this['_getSuggestionCoords'](_0x35a7e3);for(const _0x1deb4d of _0x87caf1){const _0x227475=_0x2f7638['createRangeOn'](_0x1deb4d),_0x361981=_0x588758['getCellLocation'](_0x1deb4d),_0x299fd0=_0x1deb4d['getAttribute'](_0x4c1a94)-0x1,_0x5908a0=_0x3f0106[_0x7c1c44],_0x156cd7=_0x3f0106[_0x134ac3];_0x5908a0<=_0x361981[_0x35c5d7]&&_0x361981[_0x35c5d7]+_0x299fd0<=_0x156cd7&&_0x35a7e3['addRange'](_0x227475);}}});});}function _0x3e343b(_0xdd5791){const _0x113968=Array['from'](_0x2543c9['getRanges']())['map'](_0x34defa=>_0x46236['fromRange'](_0x34defa));_0x3f3b34['model']['change'](_0x73ee05=>{const _0x1bf49c=_0x73ee05['batch'];_0xdd5791=_0xdd5791['filter'](_0x315c07=>'$graveyard'!=_0x315c07['root']['rootName']),_0x73ee05['setSelection'](_0xdd5791),_0x3f3b34['commands']['get']('removeTableRow')['refresh'](),_0x3f3b34['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3f3b34['model']['enqueueChange'](()=>{_0x3f3b34['model']['enqueueChange'](_0x1bf49c,_0x25a139=>{const _0x1619b5=_0x113968['filter'](_0x497417=>'$graveyard'!=_0x497417['root']['rootName']);_0x1619b5['length']>0x0&&_0x25a139['setSelection'](_0x1619b5);for(const _0x1efa43 of _0x113968)_0x1efa43['detach']();});});});}function _0x7becdd(_0x1f086c){_0x3f3b34['model']['change'](_0x37474e=>{const _0x6b4cac=Array['from'](_0x2543c9['getRanges']())['map'](_0x19ba3c=>_0x46236['fromRange'](_0x19ba3c)),_0x23ab1f=[];for(const _0x16d307 of _0x1f086c)for(const _0xa436c7 of _0x16d307['getItems']({'shallow':!0x0}))_0x23ab1f['push'](_0xa436c7);for(const _0x49caa4 of _0x23ab1f)'$graveyard'!=_0x49caa4['root']['rootName']&&(_0x37474e['setSelection'](_0x37474e['createPositionAt'](_0x49caa4,0x0)),_0x3f3b34['commands']['get']('removeTableColumn')['refresh'](),_0x3f3b34['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5cb0c0=_0x6b4cac['filter'](_0x30fbdb=>'$graveyard'!=_0x30fbdb['root']['rootName']);_0x5cb0c0['length']>0x0&&_0x37474e['setSelection'](_0x5cb0c0);for(const _0x49fc74 of _0x6b4cac)_0x49fc74['detach']();});}function _0x4a5061(_0x589a25,_0x16f931){return _0x16f931['every'](_0x37b918=>_0x589a25['some'](_0x1bdcd0=>_0x1bdcd0['end']['isEqual'](_0x37b918['start'])||_0x37b918['end']['isEqual'](_0x1bdcd0['start'])));}function _0xd3f3d(_0x58f6f0,_0x357a4c){return!_0x58f6f0['some'](_0x25b8dc=>_0x357a4c['some'](_0x37c321=>_0x25b8dc['isIntersecting'](_0x37c321)))&&_0x58f6f0['some'](_0x20c34a=>_0x357a4c['some'](_0x444924=>_0x20c34a['end']['isTouching'](_0x444924['start'])));}_0x3f3b34['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16dbdb,_0x5012f8,_0x3ddd94)=>{if(!_0x3ddd94['options']['showSuggestionHighlights'])return;const _0x3ae63b=_0x5012f8['item'];if(!_0x3ae63b)return;const _0x4203cd=_0x3ddd94['mapper']['toViewElement'](_0x3ae63b);function _0x523b8f(_0x355f01){return Array['isArray'](_0x355f01)?_0x355f01:[_0x355f01];}_0x4203cd&&'tableCell'===_0x3ae63b['name']&&_0x2fcf22(_0x4203cd,_0x3ddd94['writer'],(_0x3e5863,_0x46ec91,_0x1b3059)=>_0x1b3059['addClass'](_0x523b8f(_0x46ec91['classes']),_0x3e5863),(_0x3d6471,_0x53ed9a,_0x3773c8)=>_0x3773c8['removeClass'](_0x523b8f(_0x53ed9a['classes']),_0x3d6471));},{'priority':'highest'}),_0xc009c9['descriptionFactory']['registerDescriptionCallback'](_0x4022b1=>{if('insertion'!=_0x4022b1['type']&&'deletion'!=_0x4022b1['type'])return;const _0x1fe771=_0x4022b1['getContainedElement']();if(null!=_0x1fe771&&_0x1fe771['is']('element','table')){if('insertion'==_0x4022b1['type']){const _0x2697d1=_0x4022b1['getItems']()['filter'](_0x4a528b=>_0x4a528b['is']('$textProxy'))['map'](_0x461f3c=>_0x461f3c['data']);if(_0x2697d1['length'])return{'type':'insertion','content':o(_0x3be56e,'*Insert:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2697d1['join']('\x20')+'\x22'))};}if('deletion'==_0x4022b1['type']){const _0x5ef239=_0x4022b1['getItems']()['filter'](_0x1bb2dc=>_0x1bb2dc['is']('$textProxy'))['map'](_0xcadfcb=>_0xcadfcb['data']);if(_0x5ef239['length'])return{'type':'deletion','content':o(_0x3be56e,'*Remove:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5ef239['join']('\x20')+'\x22'))};}}}),_0xc009c9['descriptionFactory']['registerDescriptionCallback'](_0x2edc65=>{if('tableRow'==_0x2edc65['subType']){const _0x5b9e93=_0x2edc65['getItems']()['filter'](_0x547ab7=>_0x547ab7['is']('$textProxy'))['map'](_0x42727a=>_0x42727a['data']),_0x5146df=this['_getSuggestionCoords'](_0x2edc65),_0x599f55=_0x5146df['maxRow']-_0x5146df['minRow']+0x1;if('insertion'==_0x2edc65['type'])return _0x5b9e93['length']?{'type':'insertion','content':o(_0x3be56e,'*Insert:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599f55,'\x22'+_0x5b9e93['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3be56e,'*Insert:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_ROW',_0x599f55))};if('deletion'==_0x2edc65['type'])return _0x5b9e93['length']?{'type':'deletion','content':o(_0x3be56e,'*Remove:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x599f55,'\x22'+_0x5b9e93['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3be56e,'*Remove:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_ROW',_0x599f55))};}if('tableColumn'==_0x2edc65['subType']){const _0x510a77=_0x2edc65['getItems']()['filter'](_0x70be8f=>_0x70be8f['is']('$textProxy'))['map'](_0x5aadfb=>_0x5aadfb['data']),_0x1b8ffc=this['_getSuggestionCoords'](_0x2edc65),_0x1a3c5a=_0x1b8ffc['maxColumn']-_0x1b8ffc['minColumn']+0x1;if('insertion'==_0x2edc65['type'])return _0x510a77['length']?{'type':'insertion','content':o(_0x3be56e,'*Insert:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3c5a,'\x22'+_0x510a77['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x3be56e,'*Insert:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_COLUMN',_0x1a3c5a))};if('deletion'==_0x2edc65['type'])return _0x510a77['length']?{'type':'deletion','content':o(_0x3be56e,'*Remove:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1a3c5a,'\x22'+_0x510a77['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x3be56e,'*Remove:*\x20%0',o(_0x3be56e,'ELEMENT_TABLE_COLUMN',_0x1a3c5a))};}}),_0xc009c9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3e343b),_0xc009c9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3e343b),_0xc009c9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x7becdd),_0xc009c9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x7becdd),_0xc009c9['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x4a5061),_0xc009c9['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x4a5061),_0xc009c9['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xd3f3d),_0xc009c9['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xd3f3d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20500e=this['editor'],_0x1c560a=_0x20500e['model']['document']['selection'];return(_0x5e81f8,_0x231f27)=>{_0x20500e['model']['change'](_0x44e2e6=>{const {commandName:_0x5083fc,commandParams:_0x5e4a91}=_0x231f27;let _0x3dbe92=_0x5e81f8[0x0]['end']['nodeBefore'];_0x5e4a91&&_0x5e4a91[0x0]&&!0x1===_0x5e4a91[0x0]['forceValue']&&(_0x3dbe92=_0x5e81f8[0x0]['start']['nodeAfter']);const _0x334b40=_0x44e2e6['createRangeIn'](_0x3dbe92);if('$graveyard'==_0x334b40['root']['rootName'])return;const _0x3102aa=Array['from'](_0x1c560a['getRanges']())['map'](_0x2cf43a=>_0x46236['fromRange'](_0x2cf43a));_0x44e2e6['setSelection'](_0x334b40),_0x20500e['commands']['get'](_0x5083fc)['refresh'](),_0x5e4a91['push']({'forceDefaultExecution':!0x0}),_0x20500e['execute'](_0x5083fc,..._0x5e4a91);const _0x2c0616=_0x3102aa['filter'](_0x45fc48=>'$graveyard'!=_0x45fc48['root']['rootName']);_0x2c0616['length']>0x0&&_0x44e2e6['setSelection'](_0x2c0616);for(const _0x227355 of _0x3102aa)_0x227355['detach']();});};}['_getCoordsForCells'](_0x2dc4b4){const _0x2e16a4=this['editor']['plugins']['get']('TableUtils');let _0x14b280=Number['MAX_SAFE_INTEGER'],_0x51ad74=Number['MIN_SAFE_INTEGER'],_0x5c5c46=Number['MAX_SAFE_INTEGER'],_0xf73716=Number['MIN_SAFE_INTEGER'];for(const _0x26277c of _0x2dc4b4){if('$graveyard'==_0x26277c['root']['rootName'])continue;const {row:_0x5da2f3,column:_0x8de974}=_0x2e16a4['getCellLocation'](_0x26277c),_0x23101d=_0x26277c['hasAttribute']('rowspan')?_0x26277c['getAttribute']('rowspan')-0x1:0x0,_0x174e41=_0x26277c['hasAttribute']('colspan')?_0x26277c['getAttribute']('colspan')-0x1:0x0;_0x14b280=_0x5da2f3<_0x14b280?_0x5da2f3:_0x14b280,_0x51ad74=_0x5da2f3+_0x23101d>_0x51ad74?_0x5da2f3+_0x23101d:_0x51ad74,_0x5c5c46=_0x8de974<_0x5c5c46?_0x8de974:_0x5c5c46,_0xf73716=_0x8de974+_0x174e41>_0xf73716?_0x8de974+_0x174e41:_0xf73716;}return{'minRow':_0x14b280,'maxRow':_0x51ad74,'minColumn':_0x5c5c46,'maxColumn':_0xf73716};}['_setupColumnsRowsFixing'](){const _0x3afd31=this['editor'],_0x1fb7bd=_0x3afd31['plugins']['get']('TrackChangesEditing'),_0x5b6930=_0x3afd31['plugins']['get']('TableUtils');_0x3afd31['model']['document']['on']('change:data',()=>{const _0x488fc0=Array['from'](_0x3afd31['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xd62f5d,data:_0xad12c0}of _0x488fc0){const {group:_0x25e670,id:_0x337562,subType:_0x406ea9}=_0x1fb7bd['_splitMarkerName'](_0xd62f5d);if('suggestion'!=_0x25e670)continue;if(null!=_0xad12c0['oldRange'])continue;const _0x2aa30e=_0x1fb7bd['getSuggestion'](_0x337562);this['_tablePostFixingSubtypes']['includes'](_0x406ea9)&&this['_tableSuggestions']['add'](_0x2aa30e);}},{'priority':'low'});const _0x382b24=(_0x5c4695,_0x422470)=>{let _0x45b438=!0x1;const _0x16d183=_0x422470['createRangeOn'](_0x5c4695),_0x2054eb=_0x5c4695['findAncestor']('table'),_0x4072ed=_0x5b6930['getCellLocation'](_0x5c4695);for(const _0x3ad463 of this['_tableSuggestions']){const _0x512864=_0x3ad463['subType'],_0x3ffb7d=_0x512864['startsWith']('tablePaste'),_0x2b723a=_0x512864['substr'](_0x3ffb7d?0xa:0x5),_0x2f3462=_0x2b723a['toLowerCase'](),_0x2afcec=_0x2f3462['substr'](0x0,0x3)+'span',_0x240cbf='min'+_0x2b723a,_0x413636='max'+_0x2b723a;if(!_0x3ad463['isInContent'])continue;if(_0x2054eb!=_0x3ad463['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x3ad463['isIntersectingWithRange'](_0x16d183))continue;const _0x34a861=_0x5c4695['hasAttribute'](_0x2afcec)?_0x5c4695['getAttribute'](_0x2afcec)-0x1:0x0,_0x29e518=this['_getSuggestionCoords'](_0x3ad463),_0x3b4541=_0x29e518[_0x240cbf],_0x245b99=_0x29e518[_0x413636];_0x3b4541<=_0x4072ed[_0x2f3462]&&_0x4072ed[_0x2f3462]+_0x34a861<=_0x245b99&&(_0x3ad463['addRange'](_0x16d183),_0x45b438=!0x0);}return _0x45b438;};_0x3afd31['model']['document']['registerPostFixer'](_0x568bdc=>{let _0xf7897f=!0x1;for(const _0x37a5e0 of _0x3afd31['model']['document']['differ']['getChanges']())if('insert'==_0x37a5e0['type']){if('tableRow'==_0x37a5e0['name']){for(const _0x45e7c6 of _0x37a5e0['position']['nodeAfter']['getChildren']())_0xf7897f=_0xf7897f||_0x382b24(_0x45e7c6,_0x568bdc);}else'tableCell'==_0x37a5e0['name']&&(_0xf7897f=_0xf7897f||_0x382b24(_0x37a5e0['position']['nodeAfter'],_0x568bdc));}return _0xf7897f;});}['_getSuggestionCoords'](_0x55e49d){return this['_getCoordsForCells'](_0x55e49d['getRanges']()['map'](_0x3d1743=>_0x3d1743['start']['nodeAfter']));}}function Ee(_0x59105b){return Array['from'](new Set(_0x59105b)['values']());}class St extends _0x56b6e2{static get['requires'](){return[jt];}['afterInit'](){const _0x10cae9=this['editor'],_0x11f7b5=_0x10cae9['model']['document']['selection'],_0x5b53f7=_0x10cae9['locale'];if(!_0x10cae9['plugins']['has']('TableEditing'))return;const _0x5894a9=_0x10cae9['plugins']['get']('TrackChangesEditing'),_0x4784f5=_0x10cae9['plugins']['get']('TableUtils'),_0x19257c=_0x10cae9['plugins']['get'](jt);_0x19257c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5894a9['enableCommand']('mergeTableCells',()=>{const _0xb10414=_0x4784f5['getSelectionAffectedTableCells'](_0x10cae9['model']['document']['selection']);_0x10cae9['model']['change'](()=>{_0x5894a9['markMultiRangeBlockFormat'](_0xb10414,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x10cae9['commands']['get']('mergeTableCells')['on']('execute',(_0x550ba6,_0xa7eab9)=>{_0x10cae9['commands']['get']('trackChanges')['value']&&(_0xa7eab9['length']>0x0&&_0xa7eab9[_0xa7eab9['length']-0x1]&&_0xa7eab9[_0xa7eab9['length']-0x1]['forceDefaultExecution']||_0x5894a9['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x550ba6['stop']());},{'priority':'highest'});for(const _0xe52711 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x151a5c=_0x10cae9['commands']['get'](_0xe52711);_0x5894a9['enableCommand'](_0xe52711,()=>{const _0x2fc852=_0x10cae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x18a3fa=>_0x18a3fa['is']('element','tableCell')),_0x5374a4=_0x151a5c['value'];_0x10cae9['model']['change'](()=>{_0x5894a9['markMultiRangeBlockFormat']([_0x2fc852,_0x5374a4],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x111f1c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1b2da1=_0x10cae9['commands']['get'](_0x111f1c);_0x5894a9['enableCommand'](_0x111f1c,()=>{const _0x7d00c1=_0x4784f5['getSelectionAffectedTableCells'](_0x10cae9['model']['document']['selection'])[0x0],_0x306129=_0x7d00c1['findAncestor']('table'),{column:_0x33a7ba,row:_0x1c4c5a}=_0x4784f5['getCellLocation'](_0x7d00c1);let _0x181868=[];if('horizontally'==_0x1b2da1['direction']){const _0x269116=_0x4784f5['createTableWalker'](_0x306129,{'startRow':_0x1c4c5a,'endRow':_0x1c4c5a,'includeAllSlots':!0x0});_0x181868=Array['from'](_0x269116)['map'](_0x4e521a=>_0x4e521a['cell']);}else{const _0x2b70a7=_0x4784f5['createTableWalker'](_0x306129,{'column':_0x33a7ba,'includeAllSlots':!0x0});_0x181868=Array['from'](_0x2b70a7)['map'](_0x243ec2=>_0x243ec2['cell']);}_0x10cae9['model']['change'](_0x5ab668=>{_0x5894a9['markBlockFormat'](_0x5ab668['createRangeOn'](_0x7d00c1),{'commandName':_0x111f1c,'commandParams':[]},_0x181868,_0x111f1c);});});}_0x5894a9['descriptionFactory']['registerDescriptionCallback'](_0x463094=>{if('formatBlock'!=_0x463094['type']&&'formatInline'!=_0x463094['type'])return;const {data:_0x5e628f}=_0x463094;return _0x5e628f&&'mergeTableCells'==_0x5e628f['commandName']?{'type':'format','content':o(_0x5b53f7,'*Merge\x20cells*')}:void 0x0;}),_0x5894a9['descriptionFactory']['registerDescriptionCallback'](_0x39ced2=>{if('formatBlock'!=_0x39ced2['type']&&'formatInline'!=_0x39ced2['type'])return;const {data:_0x1ed83f}=_0x39ced2;return _0x1ed83f?'splitTableCellVertically'==_0x1ed83f['commandName']?{'type':'format','content':o(_0x5b53f7,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1ed83f['commandName']?{'type':'format','content':o(_0x5b53f7,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3a3374=_0x19257c['_acceptFormatSuggestionCallbackFactory']();for(const _0x2ac1b4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5894a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ac1b4,'accept',_0x3a3374);for(const _0x4cccde of['splitTableCellVertically','splitTableCellHorizontally'])_0x5894a9['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4cccde,'accept',_0x3a3374);_0x5894a9['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ac50d=>{_0x10cae9['model']['change'](_0x396625=>{const _0x39b44e=Array['from'](_0x11f7b5['getRanges']())['map'](_0x5d58ce=>_0x46236['fromRange'](_0x5d58ce));_0x396625['setSelection'](_0x4ac50d),_0x10cae9['commands']['get']('mergeTableCells')['refresh'](),_0x10cae9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3cdd74=_0x39b44e['filter'](_0xf0501f=>'$graveyard'!=_0xf0501f['root']['rootName']);_0x3cdd74['length']>0x0&&_0x396625['setSelection'](_0x3cdd74);for(const _0x3bc686 of _0x39b44e)_0x3bc686['detach']();});});for(const _0x3e6111 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x29ac74=_0x10cae9['commands']['get'](_0x3e6111);_0x29ac74['on']('set:isEnabled',(_0x1ce183,_0x3486f3,_0x5ecfcb)=>{if(_0x5ecfcb){const _0x1e8631=_0x10cae9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xde3ee7=>_0xde3ee7['is']('element','tableCell'));this['_areMergableCells'](_0x29ac74['value'],_0x1e8631)||(_0x1ce183['return']=!0x1,_0x1ce183['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1c6b46=this['editor']['commands']['get']('mergeTableCells'),_0x257232=this['editor']['plugins']['get']('TableUtils');if(!_0x1c6b46['isEnabled'])return!0x1;const _0x1377cf=_0x257232['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x57d7a1 of _0x1377cf)for(const _0x4bcfa5 of _0x1377cf)if(_0x57d7a1!=_0x4bcfa5&&!this['_areMergableCells'](_0x57d7a1,_0x4bcfa5))return!0x1;return!0x0;}['_areMergableCells'](_0x2343b8,_0x22ace8){const _0x5cc599=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2db724=this['editor']['model']['createRangeOn'](_0x2343b8),_0x435f77=this['editor']['model']['createRangeOn'](_0x22ace8),_0x432035=new Set(),_0x2a831b=new Set();for(const _0x1c957f of _0x5cc599['getSuggestions']())if(('insertion'==_0x1c957f['type']||'deletion'==_0x1c957f['type']||'mergeTableCells'==_0x1c957f['subType'])&&_0x1c957f['isInContent']){for(const _0x362ea5 of _0x1c957f['getRanges']())_0x362ea5['containsRange'](_0x2db724,!0x0)&&_0x432035['add'](_0x1c957f['type']+':'+_0x1c957f['author']['id']),_0x362ea5['containsRange'](_0x435f77,!0x0)&&_0x2a831b['add'](_0x1c957f['type']+':'+_0x1c957f['author']['id']);}if(_0x432035['size']!=_0x2a831b['size'])return!0x1;for(const _0x2d58b4 of _0x432035)if(!_0x2a831b['has'](_0x2d58b4))return!0x1;return!0x0;}}class At extends _0x56b6e2{static get['requires'](){return[jt];}['afterInit'](){const _0x11e85b=this['editor'];if(!_0x11e85b['plugins']['has']('TableEditing'))return;const _0x5b1ab5=_0x11e85b['locale'],_0x5df0c2=_0x11e85b['plugins']['get']('TrackChangesEditing');_0x5df0c2['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x5df0c2['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x5df0c2['registerBlockAttribute']('headingRows'),_0x5df0c2['registerBlockAttribute']('headingColumns'),_0x5df0c2['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5b1ab5,'FORMAT_HEADER_ROW')),_0x5df0c2['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5b1ab5,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x9ef2bb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x574b0c=this['editor']['plugins']['get']('TableUtils'),_0xbec424=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0xfec2af({showActiveMarker:_0xbc95c5=!0x0,setDataAttribute:_0x383789=!0x0}={}){return(_0x3311af,_0x26592d,_0x33df19)=>{const {type:_0x12ee3c,id:_0x239159}=_0x9ef2bb['_splitMarkerName'](_0x26592d['markerName']),_0x251d41=_0x9ef2bb['getSuggestion'](_0x239159),_0x3fc92e=_0x251d41['data'];if('formatBlock'!=_0x251d41['type']||!_0x3fc92e||'setTableColumnHeader'!=_0x3fc92e['commandName'])return;if(_0x26592d['item'])return void _0x3311af['stop']();if(!_0x33df19['consumable']['consume'](_0x26592d['markerRange'],_0x3311af['name']))return;const _0x3ab98f=_0x26592d['markerRange']['start']['nodeAfter'],_0x14e7d6=_0x26592d['markerRange']['end']['nodeBefore'],_0x9dd2e4=_0x3ab98f['parent']['parent'],{column:_0x423c51}=_0x574b0c['getCellLocation'](_0x3ab98f),{column:_0x4b4523}=_0x574b0c['getCellLocation'](_0x14e7d6);for(let _0x1c7b5e=_0x423c51;_0x1c7b5e<=_0x4b4523;_0x1c7b5e++){const _0x4963bd=_0x574b0c['createTableWalker'](_0x9dd2e4,{'column':_0x1c7b5e,'includeAllSlots':!0x1});for(const _0x24851c of _0x4963bd){const _0x1ef0b0=_0x24851c['cell'],_0x27701e=_0x33df19['mapper']['toViewElement'](_0x1ef0b0);_0x33df19['writer']['addClass']('ck-suggestion-marker-'+_0x12ee3c,_0x27701e),_0x383789&&_0x33df19['writer']['setAttribute']('data-suggestion',_0x239159,_0x27701e),_0x33df19['mapper']['bindElementToMarker'](_0x27701e,_0x26592d['markerName']),_0xbc95c5&&(_0x9ef2bb['activeMarkers']['includes'](_0x26592d['markerName'])?_0x33df19['writer']['addClass']('ck-suggestion-marker--active',_0x27701e):_0x33df19['writer']['removeClass']('ck-suggestion-marker--active',_0x27701e));}}};}_0x9ef2bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xbec424),_0x9ef2bb['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xbec424),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xfec2af(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x9428e3,_0x1af725,_0x442a2a)=>{_0x442a2a['options']['showSuggestionHighlights']&&_0xfec2af({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x9428e3,_0x1af725,_0x442a2a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x7e966e,_0x5c173d,_0x215ea1)=>{const {type:_0x19926f,id:_0x1479d2}=_0x9ef2bb['_splitMarkerName'](_0x5c173d['markerName']),_0x38eb98=_0x9ef2bb['getSuggestion'](_0x1479d2),_0x43e53d=_0x38eb98['data'];if('formatBlock'!=_0x38eb98['type']||!_0x43e53d||'setTableColumnHeader'!=_0x43e53d['commandName'])return;const _0x2cadb3=_0x215ea1['mapper']['markerNameToElements'](_0x5c173d['markerName']);if(_0x2cadb3){for(const _0x353739 of _0x2cadb3)_0x215ea1['writer']['removeClass']('ck-suggestion-marker-'+_0x19926f,_0x353739),_0x215ea1['writer']['removeClass']('ck-suggestion-marker--active',_0x353739),_0x215ea1['writer']['removeAttribute']('data-suggestion',_0x353739),_0x215ea1['mapper']['unbindElementFromMarkerName'](_0x353739,_0x5c173d['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2951fc=this['editor'],_0xfdae60=_0x2951fc['locale'];function _0x38236d(_0x500235){return{'type':'format','content':o(_0xfdae60,'*Format:*\x20%0',_0x500235)};}_0x2951fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1dcda5=>{if('formatBlock'!=_0x1dcda5['type'])return;const {data:_0x5bf90c}=_0x1dcda5;if(_0x5bf90c){if('setTableRowHeader'==_0x5bf90c['commandName']){const _0x56d601=_0x5bf90c['commandParams'][0x0]['forceValue'];return _0x38236d(o(_0xfdae60,_0x56d601?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5bf90c['commandName']){const _0x1b1647=_0x5bf90c['commandParams'][0x0]['forceValue'];return _0x38236d(o(_0xfdae60,_0x1b1647?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x718bc=>[_0x718bc,null]));class It extends _0x56b6e2{static get['requires'](){return[jt];}['afterInit'](){const _0x4aff3d=this['editor'];if(!_0x4aff3d['plugins']['has']('TableClipboard'))return;const _0x2baad6=_0x4aff3d['plugins']['get']('TrackChangesEditing'),_0x5e4b1a=_0x4aff3d['plugins']['get']('TableUtils'),_0x497303=_0x4aff3d['plugins']['get'](jt),_0x1fd2f1=_0x4aff3d['plugins']['get']('TableClipboard');_0x497303['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4aff3d['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4aff3d['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2c4f8f=null;_0x4aff3d['model']['on']('insertContent',(_0x1bf695,_0x22cd38)=>{const [_0x1ddeb3,_0x284770]=_0x22cd38,_0x32deca=_0x22cd38[_0x22cd38['length']-0x1];_0x32deca&&_0x32deca['forceDefaultExecution']||_0x2baad6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x102f75,_0x35dd7d,_0x31ee45,_0x1dac4d,_0x42b9ca){if(_0x35dd7d&&!_0x35dd7d['is']('documentSelection'))return!0x1;const _0x176cee=_0x42b9ca['getTableIfOnlyTableInContent'](_0x102f75,_0x31ee45);if(!_0x176cee||!he(_0x176cee,void 0x0,_0x1dac4d))return!0x1;const _0x41df7e=_0x1dac4d['getSelectionAffectedTableCells'](_0x31ee45['document']['selection']);if(!_0x41df7e['length'])return!0x1;const _0x156d49=_0x41df7e[0x0]['findAncestor']('table'),_0x38063c=_0x1dac4d['getRowIndexes'](_0x41df7e),_0x2808d2=_0x1dac4d['getColumnIndexes'](_0x41df7e),_0x52cbe9={'startRow':_0x38063c['first'],'endRow':_0x38063c['last'],'startColumn':_0x2808d2['first'],'endColumn':_0x2808d2['last']};return 0x1==_0x41df7e['length']&&(_0x52cbe9['endRow']+=_0x1dac4d['getRows'](_0x176cee)-0x1,_0x52cbe9['endColumn']+=_0x1dac4d['getColumns'](_0x176cee)-0x1),he(_0x156d49,_0x52cbe9,_0x1dac4d);}(_0x1ddeb3,_0x284770,_0x4aff3d['model'],_0x5e4b1a,_0x1fd2f1)&&(_0x1bf695['stop'](),_0x2c4f8f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4aff3d['model']['change'](()=>{_0x4aff3d['model']['insertContent'](_0x22cd38[0x0],_0x22cd38[0x1],_0x22cd38[0x2],{'forceDefaultExecution':!0x0});const _0x575f60=_0xadd5e0(),{rowInsertionRanges:_0x2825af,columnInsertionRanges:_0x31d0cb,insertionRanges:_0x53fd2b,deletionRanges:_0x1734dc,cells:_0x414b17}=_0x2c4f8f;_0x2825af['length']&&_0x2baad6['markMultiRangeInsertion'](_0x2825af,'tablePasteRow',{'tablePasteChainId':_0x575f60}),_0x31d0cb['length']&&_0x2baad6['markMultiRangeInsertion'](_0x31d0cb,'tablePasteColumn',{'tablePasteChainId':_0x575f60}),_0x53fd2b['length']&&(_0x2baad6['markMultiRangeInsertion'](_0x53fd2b,'tablePaste',{'tablePasteChainId':_0x575f60,'skipNestingCheck':!0x0}),_0x53fd2b['forEach'](_0x514f8d=>_0x514f8d['detach']?.())),_0x1734dc['length']&&(_0x2baad6['markMultiRangeDeletion'](_0x1734dc,'tablePaste',{'tablePasteChainId':_0x575f60,'skipNestingCheck':!0x0}),_0x1734dc['forEach'](_0x444ea5=>_0x444ea5['detach']?.()));const _0x1508a4=_0x2baad6['markMultiRangeBlockFormat'](_0x414b17['map'](({element:_0x42979e})=>_0x42979e),{'formatGroupId':_0xadd5e0()},[],'tablePasteCell',{'tablePasteChainId':_0x575f60});if(_0x1508a4){const _0x1e7e2e=_0x1508a4['getMarkers'](),_0x4cfddf=[];for(const {element:_0x3e526a,attributes:_0xf9c016}of _0x414b17){if(!_0xf9c016)continue;const _0x5a33e2=_0x4aff3d['model']['createRangeOn'](_0x3e526a),_0x366c74=_0x1e7e2e['find'](_0x333ed8=>_0x333ed8['getRange']()['isEqual'](_0x5a33e2));_0x366c74&&_0x4cfddf['push']([_0x366c74['name'],_0xf9c016]);}_0x4cfddf['length']&&_0x1508a4['setAttribute']('markerAttributes',Object['fromEntries'](_0x4cfddf));}_0x2c4f8f=null;}));},{'priority':_0x8ad537['high']+0xa}),_0x4aff3d['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x44f912,_0x2d3d0c)=>{const [_0x5582d4,_0x2df63d,,_0x45b3bb]=_0x2d3d0c;if(!_0x2c4f8f)return;_0x44f912['stop']();const _0x2778b1=_0x5582d4['cell'],_0x93881c=_0x2df63d,_0xb2f292=Pe(_0x2778b1),_0x2e75f5=Pe(_0x93881c);_0x44f912['return']=_0x2778b1;let _0x418ffe=null,_0x50bb85=null;if(_0x2e75f5||_0xb2f292){if(_0xb2f292&&!_0x2e75f5){_0x45b3bb['remove'](_0x2778b1['getChild'](0x0));for(const _0x6e4d1f of Array['from'](_0x93881c['getChildren']()))_0x45b3bb['insert'](_0x6e4d1f,_0x2778b1,'end');const _0x51e7c8=_0x2c4f8f['rowInsertionIndexes']['includes'](_0x5582d4['row']),_0x19fa97=_0x2c4f8f['columnInsertionIndexes']['includes'](_0x5582d4['column']);_0x51e7c8||_0x19fa97||(_0x418ffe=_0x46236['fromRange'](_0x45b3bb['createRangeIn'](_0x2778b1)));}else _0x2e75f5&&!_0xb2f292&&(_0x50bb85=_0x45b3bb['createRangeIn'](_0x2778b1));}else{const _0xc19ff9=_0x45b3bb['createElement']('tableCellSuggestion'),_0x102b5c=_0x45b3bb['createElement']('tableCellSuggestion');_0x45b3bb['wrap'](_0x45b3bb['createRangeIn'](_0x2778b1),_0x102b5c),_0x45b3bb['insert'](_0xc19ff9,_0x2778b1,0x0);for(const _0x3a687c of Array['from'](_0x93881c['getChildren']()))_0x45b3bb['insert'](_0x3a687c,_0xc19ff9,'end');_0x418ffe=_0x46236['fromRange'](_0x45b3bb['createRangeOn'](_0xc19ff9)),_0x50bb85=_0x46236['fromRange'](_0x45b3bb['createRangeOn'](_0x102b5c));}const _0x5f572a=Array['from'](_0x93881c['getAttributes']())['filter'](([_0x598dda])=>ge['includes'](_0x598dda));_0x2c4f8f['cells']['push']({'element':_0x2778b1,'attributes':_0x5f572a['length']?Object['fromEntries'](_0x5f572a):null}),_0x418ffe&&_0x2c4f8f['insertionRanges']['push'](_0x418ffe),_0x50bb85&&_0x2c4f8f['deletionRanges']['push'](_0x50bb85);},{'priority':'high'}),_0x5e4b1a['on']('insertColumns',(_0x19d0c3,_0x2906c3)=>{const [_0x866b31,_0x4ecc2b={}]=_0x2906c3;if(!_0x2c4f8f)return;const _0x1b866a=_0x4ecc2b['at']||0x0,_0xb5674a=_0x4ecc2b['columns']||0x1;_0x2c4f8f['columnInsertionIndexes']=new Array(_0xb5674a)['fill'](_0x1b866a)['map']((_0x57bf3d,_0x3283d2)=>_0x57bf3d+_0x3283d2);for(const {cell:_0x523f28}of _0x5e4b1a['createTableWalker'](_0x866b31,{'startColumn':_0x1b866a,'endColumn':_0x1b866a+_0xb5674a-0x1}))_0x2c4f8f['columnInsertionRanges']['push'](_0x4aff3d['model']['createRangeOn'](_0x523f28));},{'priority':'low'}),_0x5e4b1a['on']('insertRows',(_0x34ed0c,_0x351a4f)=>{const [_0x3697e5,_0x53458f={}]=_0x351a4f;if(!_0x2c4f8f)return;const _0x4b5f28=_0x53458f['at']||0x0,_0x30213f=_0x53458f['rows']||0x1;_0x2c4f8f['rowInsertionIndexes']=new Array(_0x30213f)['fill'](_0x4b5f28)['map']((_0x282471,_0x310c7f)=>_0x282471+_0x310c7f);for(const {cell:_0x48867e}of _0x5e4b1a['createTableWalker'](_0x3697e5,{'startRow':_0x4b5f28,'endRow':_0x4b5f28+_0x30213f-0x1}))_0x2c4f8f['rowInsertionRanges']['push'](_0x4aff3d['model']['createRangeOn'](_0x48867e));},{'priority':'low'}),_0x2baad6['descriptionFactory']['registerDescriptionCallback'](_0x303cb0=>{if(_0x303cb0['subType']&&_0x303cb0['subType']['startsWith']('tablePaste'))return _0x303cb0['previous']?{}:{'type':'insertion','content':o(_0x4aff3d['locale'],'*Replace\x20table\x20cells*')};});const _0x401da3=()=>!0x1;for(const _0xf3174a of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2baad6['_suggestionFactory']['registerCustomCallback']('insertion',_0xf3174a,'join',_0x401da3),_0x2baad6['_suggestionFactory']['registerCustomCallback']('deletion',_0xf3174a,'join',_0x401da3),_0x2baad6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xf3174a,'join',_0x401da3);_0x2baad6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x401da3),_0x2baad6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x48f098,_0x4bc263,_0x35dce4)=>{const _0x1d7c99=_0x48f098['map'](_0x54c6f8=>_0x54c6f8['getContainedElement']())['filter'](_0x4fd06e=>_0x4fd06e),_0x82ab95=new Map(_0x1d7c99['map'](_0x147c20=>[_0x147c20,null]));if(_0x2c4f8f){for(const {element:_0x1bdc11,attributes:_0x2176db}of _0x2c4f8f['cells'])_0x2176db&&_0x82ab95['set'](_0x1bdc11,_0x2176db);}else{if(_0x35dce4&&_0x35dce4['markerAttributes'])for(const [_0x41eae8,_0x269984]of Object['entries'](_0x35dce4['markerAttributes'])){const _0x34b014=_0x4aff3d['model']['markers']['get'](_0x41eae8),_0x5d4e50=_0x34b014?_0x34b014['getRange']()['getContainedElement']():null;_0x5d4e50&&_0x82ab95['set'](_0x5d4e50,_0x269984);}}_0x4aff3d['model']['change'](_0x5dc04b=>{for(const [_0x4beaa4,_0x5a3b55]of _0x82ab95)_0x5dc04b['setAttributes']({...Ce,..._0x5a3b55},_0x4beaa4);});});const _0x14806a=(_0x5e9c7f,_0x1de34d)=>{_0x2baad6['_suggestionFactory']['registerCustomCallback'](_0x5e9c7f,'tablePaste',_0x1de34d,(_0x652ab5,_0x2a822d,_0x3aada3)=>{_0x4aff3d['model']['change'](_0x238897=>{const _0x55dfb9=[];for(const _0x3b4976 of _0x652ab5){const _0x134c18=_0x3b4976['start']['nodeAfter'];_0x134c18['is']('element','tableCellSuggestion')&&_0x55dfb9['push'](_0x134c18);}_0x2baad6['_suggestionFactory']['getSuggestionCallback'](_0x5e9c7f,null,_0x1de34d)(_0x652ab5,_0x2a822d,_0x3aada3);for(const _0x285eba of _0x55dfb9)'$graveyard'!=_0x285eba['root']['rootName']&&_0x238897['unwrap'](_0x285eba);});});};_0x14806a('insertion','accept'),_0x14806a('insertion','discard'),_0x14806a('deletion','accept'),_0x14806a('deletion','discard'),_0x2baad6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3b3192=>{const _0x2b708d=_0x3b3192['map'](_0x48e7f5=>_0x48e7f5['getContainedElement']()),_0x50f4b6=_0x2b708d[0x0]['findAncestor']('table'),{minRow:_0xc22f1,maxRow:_0x51871f}=_0x497303['_getCoordsForCells'](_0x2b708d);_0x5e4b1a['removeRows'](_0x50f4b6,{'at':_0xc22f1,'rows':_0x51871f-_0xc22f1+0x1});}),_0x2baad6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x58705e=>{const _0x54bdda=_0x58705e['map'](_0x382551=>_0x382551['getContainedElement']()),_0x325227=_0x54bdda[0x0]['findAncestor']('table'),{minColumn:_0x84aff1,maxColumn:_0x2ce8d4}=_0x497303['_getCoordsForCells'](_0x54bdda);_0x5e4b1a['removeColumns'](_0x325227,{'at':_0x84aff1,'columns':_0x2ce8d4-_0x84aff1+0x1});});const _0x2219c0=(_0x589648,_0x2d0839)=>{if(!_0x2d0839['subType']||!_0x2d0839['subType']['startsWith']('tablePaste'))return;const _0x43e3c2=_0x2d0839['attributes']['tablePasteChainId'],_0x5a3f0e=_0x2baad6['getSuggestions']()['filter'](_0x3477a1=>_0x3477a1['isInContent']&&_0x3477a1['attributes']&&_0x3477a1['attributes']['tablePasteChainId']==_0x43e3c2);_0x5a3f0e['length']&&_0x2d0839['getAllAdjacentSuggestions']()['length']!=_0x5a3f0e['length']&&_0x5a3f0e['reduce']((_0x4c2935,_0x5252aa)=>(_0x4c2935['next']=_0x5252aa,_0x5252aa['previous']=_0x4c2935,_0x5252aa));};function _0x53fff8(_0x322d4b,_0x5e566e=!0x0){const {id:_0x28ef91}=_0x2baad6['_splitMarkerName'](_0x322d4b['markerName']),_0x1e02dc=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x29c049=_0x2baad6['activeMarkers']['includes'](_0x322d4b['markerName']);return _0x29c049&&_0x1e02dc['push']('ck-suggestion-marker--active'),{'classes':_0x1e02dc,'attributes':{'data-suggestion':_0x28ef91},'priority':_0x29c049&&_0x5e566e?0xbc2:0xbb8};}_0x2baad6['on']('suggestionLoaded',_0x2219c0,{'priority':'high'}),_0x2baad6['on']('suggestionUnloaded',_0x2219c0,{'priority':'high'}),_0x4aff3d['model']['document']['registerPostFixer'](()=>{let _0x1acdd7=!0x1;const _0x3a4273=Array['from'](_0x4aff3d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a7ae4,data:_0x995e5c}of _0x3a4273){const {group:_0x5c36bb,type:_0x184507,id:_0x5f1921}=_0x2baad6['_splitMarkerName'](_0x5a7ae4);if('suggestion'!=_0x5c36bb||'deletion'!=_0x184507||_0x995e5c['oldRange'])continue;if(!_0x2baad6['hasSuggestion'](_0x5f1921))continue;const _0x487df0=_0x2baad6['getSuggestion'](_0x5f1921)['getRanges'](),_0x24e1e6=_0x4aff3d['plugins']['get']('Users')['me'];for(const _0xb1bdcf of _0x2baad6['getSuggestions']()){if(!_0xb1bdcf['isInContent']||_0xb1bdcf['author']!=_0x24e1e6)continue;if('formatBlock'!=_0xb1bdcf['type']||'tablePasteCell'!=_0xb1bdcf['subType'])continue;if(_0xb1bdcf['getRanges']()['every'](_0x12b607=>_0x487df0['some'](_0x3ce17e=>_0x3ce17e['containsRange'](_0x12b607,!0x0)))){for(const _0x4c2e33 of _0xb1bdcf['getAllAdjacentSuggestions']())_0x4c2e33['isInContent']&&(_0x4c2e33['discard'](),_0x1acdd7=!0x0);}}}return _0x1acdd7;}),_0x4aff3d['model']['document']['registerPostFixer'](_0x3a6cb4=>{const _0x2057d0=_0x4aff3d['commands']['get']('redo');if(!_0x2057d0||!_0x2057d0['_createdBatches']['has'](_0x3a6cb4['batch']))return!0x1;let _0x335f0=!0x1;const _0x1dcb37=_0x4aff3d['plugins']['get']('Users')['me'],_0x20e094=_0x4aff3d['model']['document']['differ']['getChanges'](),_0x416fc2=Array['from'](_0x4aff3d['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4615e4,data:_0x205712})=>{const {group:_0x33e820,subType:_0x38b3e2,authorId:_0x56abdc}=_0x2baad6['_splitMarkerName'](_0x4615e4);return'suggestion'==_0x33e820&&'tablePaste'==_0x38b3e2&&_0x56abdc==_0x1dcb37['id']&&!_0x205712['oldRange'];});for(const _0x22d8d5 of _0x20e094){if('insert'!=_0x22d8d5['type']||'tableCellSuggestion'!=_0x22d8d5['name']||0x1!=_0x22d8d5['length'])continue;const _0x28701d=_0x3a6cb4['createRange'](_0x22d8d5['position'],_0x22d8d5['position']['getShiftedBy'](0x1));if(!_0x416fc2['find'](({data:_0x8701b8})=>_0x8701b8['newRange']['isEqual'](_0x28701d))){for(const {name:_0x25297e,data:_0x19d24f}of _0x416fc2)if(_0x28701d['containsRange'](_0x19d24f['newRange'])){_0x3a6cb4['updateMarker'](_0x25297e,{'range':_0x28701d}),_0x335f0=!0x0;break;}}}return _0x335f0;}),_0x4aff3d['model']['document']['registerPostFixer'](_0x139150=>{let _0x3b1980=!0x1;const _0x17a169=_0x4aff3d['plugins']['get']('Users')['me'],_0x1e6bd0=_0x2baad6['getSuggestions']()['filter'](_0x4abf03=>_0x4abf03['isInContent']&&_0x4abf03['author']==_0x17a169),_0x1204b4=new Set(),_0x253cec=new Set();for(const _0xb2829a of _0x1e6bd0)if('tablePaste'==_0xb2829a['subType'])for(const _0x7aaa26 of _0xb2829a['getMarkers']()){const _0x3cc556=_0x7aaa26['getRange']()['getContainedElement']();if(_0x3cc556){if(_0x3cc556['is']('element','tableCellSuggestion')&&Pe(_0x3cc556)){_0xb2829a['removeMarker'](_0x7aaa26['name']),_0x1204b4['add'](_0x3cc556),_0x3b1980=!0x0;const _0x2a0926=_0x3cc556['nextSibling'],_0xdad29a=_0x3cc556['previousSibling'],_0x361d71=_0x2a0926&&_0x2a0926['is']('element','tableCellSuggestion'),_0x408597=_0xdad29a&&_0xdad29a['is']('element','tableCellSuggestion');_0x361d71&&!_0x1204b4['has'](_0x2a0926)&&_0x253cec['add'](_0x2a0926),_0x408597&&!_0x1204b4['has'](_0xdad29a)&&_0x253cec['add'](_0xdad29a);}else _0x3cc556['is']('element','paragraph')&&_0x3cc556['isEmpty']&&(_0xb2829a['removeMarker'](_0x7aaa26['name']),_0x3b1980=!0x0);}}else{if('tablePasteCell'==_0xb2829a['subType']){if(!_0xb2829a['attributes']||!_0xb2829a['attributes']['tablePasteChainId'])continue;const _0x5f411a=_0xb2829a['attributes']['markerAttributes'];if(_0x5f411a&&Object['keys'](_0x5f411a)['length'])continue;const _0x506a05=_0xb2829a['attributes']['tablePasteChainId'];let _0x23aacb=!0x0,_0x2abfe1=!0x0;for(const _0x2cd677 of _0x1e6bd0)if(_0x2cd677['subType']&&_0x2cd677['subType']['startsWith']('tablePaste')){if(!_0x2cd677['attributes']['tablePasteChainId']){_0x2abfe1=!0x1;break;}if(_0x2cd677['id']!=_0xb2829a['id']&&_0x2cd677['attributes']['tablePasteChainId']==_0x506a05){_0x23aacb=!0x1;break;}}_0x2abfe1&&_0x23aacb&&(_0xb2829a['removeMarkers'](),_0x3b1980=!0x0);}}for(const _0x420c8b of _0x1204b4)_0x139150['remove'](_0x420c8b);for(const _0x4b9641 of _0x253cec)_0x139150['unwrap'](_0x4b9641);return _0x3b1980;}),_0x4aff3d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x68b243,_0x513452)=>_0x53fff8(_0x68b243),'converterPriority':'high'}),_0x4aff3d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x37ee46,_0x144ba3)=>_0x144ba3['options']['showSuggestionHighlights']?_0x53fff8(_0x37ee46,!0x1):null,'converterPriority':'high'});const _0x5015c6=_0x4aff3d['editing']['view'];this['listenTo'](_0x5015c6['document'],'clipboardOutput',(_0x3564e9,_0xd13ed2)=>{const _0x593e1a=[];for(const _0x65bc8d of _0x5015c6['createRangeIn'](_0xd13ed2['content'])['getItems']())_0x65bc8d['is']('element','suggestion-td')&&_0x593e1a['push'](_0x65bc8d);_0x5015c6['change'](_0x399547=>{for(const _0x511d6e of _0x593e1a)_0x399547['move'](_0x399547['createRangeIn'](_0x511d6e),_0x399547['createPositionBefore'](_0x511d6e)),_0x399547['remove'](_0x511d6e);});});}}function Pe(_0x5b4017){if(_0x5b4017['isEmpty'])return!0x0;const _0x4c7531=_0x5b4017['getChild'](0x0);return _0x4c7531['is']('element','paragraph')&&_0x4c7531['isEmpty'];}function he(_0x30594b,_0x23daba={},_0x54885d){for(const {isAnchor:_0x3c272a,cellHeight:_0x580f16,cellWidth:_0x3c0a31}of _0x54885d['createTableWalker'](_0x30594b,{'includeAllSlots':!0x0,..._0x23daba}))if(!_0x3c272a||0x1!=_0x580f16||0x1!=_0x3c0a31)return!0x1;return!0x0;}class vt extends _0x56b6e2{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x363f53=this['editor']['plugins']['get']('TrackChangesEditing');_0x363f53['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x363f53['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x363f53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x363f53['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x363f53['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x363f53['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x508958,_0x2c38db){const _0x4f246c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4666fb=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x6038e0=_0x2c38db['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x1491d1=_0x4666fb['getColumnGroupElement'](_0x6038e0);let _0x5621c6=_0x1491d1?_0x4666fb['getTableColumnsWidths'](_0x1491d1):null,_0x16f491=_0x6038e0['getAttribute']('tableWidth')||null;const _0x2e2458=_0x2c38db['tableWidth']||_0x16f491,_0x35acce=_0x2c38db['columnWidths']||_0x5621c6,_0xfa086=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d43e1 of _0x4f246c['getSuggestions']()){const _0x4640be=_0x3d43e1['getContainedElement']();if('resizeTable'===_0x3d43e1['subType']&&_0x4640be===_0x6038e0){_0x3d43e1['author']!==_0xfa086&&_0x3d43e1['discard']();const _0x1bc8b2=_0x3d43e1['data']['commandParams'];_0x16f491=_0x1bc8b2[0x0]['tableWidth'],_0x5621c6=_0x1bc8b2[0x0]['columnWidths'];break;}}_0x508958({'table':_0x6038e0,'tableWidth':_0x2e2458,'columnWidths':_0x35acce}),_0x4f246c['markBlockFormat'](_0x6038e0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x16f491,'columnWidths':_0x5621c6}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x57a41b){if('formatBlock'!=_0x57a41b['type']&&'formatInline'!=_0x57a41b['type'])return;const {data:_0x37c59a}=_0x57a41b;if(_0x37c59a&&'resizeTable'===_0x37c59a['formatGroupId']){const _0x216d75='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x216d75)};}}}class Ct extends _0x56b6e2{['afterInit'](){const _0x16edcd=this['editor'];_0x16edcd['plugins']['has']('Template')&&_0x16edcd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x56b6e2{['afterInit'](){const _0x4663c0=this['editor'];if(!_0x4663c0['commands']['get']('insertTableOfContents'))return;_0x4663c0['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3d739d=_0x4663c0['plugins']['get']('TrackChangesEditing'),_0x17b1ea=_0x4663c0['locale'];_0x3d739d['descriptionFactory']['registerElementLabel']('tableOfContents',_0xb53f4b=>o(_0x17b1ea,'ELEMENT_TABLE_OF_CONTENTS',_0xb53f4b));}}class Dt extends _0x56b6e2{['afterInit'](){const _0x3d4f2a=this['editor'];if(!_0x3d4f2a['plugins']['has']('Title'))return;const _0x4a5cf8=_0x3d4f2a['plugins']['get']('TrackChangesEditing');_0x4a5cf8['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3d4f2a['locale'],'ELEMENT_TITLE')),_0x3d4f2a['model']['document']['registerPostFixer'](_0x3036b9=>{let _0x3f05c7=!0x1;const _0x385882=Array['from'](_0x3d4f2a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x462613,data:_0x54bed7}of _0x385882){const {group:_0x3cdb64}=_0x4a5cf8['_splitMarkerName'](_0x462613);if('suggestion'!==_0x3cdb64||!_0x54bed7['newRange'])continue;const _0x535679=_0x54bed7['newRange'],_0xcd41bb=_0x535679['end']['nodeBefore'];if(!_0xcd41bb||!_0xcd41bb['is']('element','title-content'))continue;if(!_0x535679['start']['isTouching'](_0x535679['end']))continue;const _0x44a70c=_0x3d4f2a['model']['schema']['getNearestSelectionRange'](_0x535679['end'],'forward');if(_0x44a70c&&_0x44a70c['isCollapsed']){const _0x19e499=_0x3036b9['createRange'](_0x535679['start'],_0x44a70c['start']);_0x19e499['isEqual'](_0x535679)||(_0x3036b9['updateMarker'](_0x462613,{'range':_0x19e499}),_0x3f05c7=!0x0);}_0x3f05c7||(_0x3036b9['removeMarker'](_0x462613),_0x3f05c7=!0x0);}return _0x3f05c7;});}}class Nt extends _0x56b6e2{['afterInit'](){const _0x519aa8=this['editor'],_0x2361b1=_0x519aa8['plugins']['get']('TrackChangesEditing');_0x519aa8['plugins']['has']('UndoEditing')&&(_0x2361b1['enableCommand']('undo'),_0x2361b1['enableCommand']('redo'));}}class Mt extends _0x56b6e2{static get['requires'](){return[jt];}['afterInit'](){const _0x476780=this['editor'];if(!_0x476780['plugins']['has']('TableCaptionEditing'))return;_0x476780['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x56b6e2{['tableProperties'];['tableCellProperties'];constructor(_0x1e1010){super(_0x1e1010),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x3c45c0=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x385761 of this['tableProperties'])_0x3c45c0['enableCommand'](_0x385761,(_0x1e6170,_0x11a982)=>{const _0x4fc165=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x385761,[_0x4fc165],this['tableProperties'],'tableProperties',_0x1e6170,_0x11a982);});_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c45c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x532d7d,_0x17b5fb)=>this['handleDiscardAction'](this['tableProperties'],_0x532d7d,_0x17b5fb)),_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe53fab of this['tableCellProperties'])_0x3c45c0['enableCommand'](_0xe53fab,(_0x5bdf1e,_0x589e69)=>{const _0xe47bf4=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe53fab,_0xe47bf4,this['tableCellProperties'],'tableCellProperties',_0x5bdf1e,_0x589e69);});_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c45c0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x420cd4,_0x7e31a9)=>this['handleDiscardAction'](this['tableCellProperties'],_0x420cd4,_0x7e31a9)),_0x3c45c0['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c45c0['descriptionFactory']['registerDescriptionCallback'](_0x2f7c64=>this['handleSuggestionDescription'](_0x2f7c64));}['_handlePropertyChange'](_0x537c9c,_0x35495f,_0x11de02,_0x39eecd,_0x2d7d76,_0x4880ed){const _0x3c332f=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4880ed['batch'],()=>{for(const _0x470274 of _0x35495f){if(this['_getSuggestion'](_0x470274,_0x39eecd))_0x2d7d76(_0x4880ed);else{const _0x2be7bb={};for(const _0x2627fc of _0x11de02){const _0x2f94ac=_0x470274['getAttribute'](_0x2627fc);void 0x0!==_0x2f94ac&&(_0x2be7bb[_0x2627fc]=_0x2f94ac);}_0x2d7d76(_0x4880ed),_0x3c332f['markBlockFormat'](_0x470274,{'commandParams':[_0x2be7bb]},[],_0x39eecd);}}});}['handleDiscardAction'](_0x37471b,_0x4d3f34,_0x32a2b9){const _0x3eda73=_0x4d3f34[0x0]['start']['nodeAfter'],_0xca7ccd=_0x32a2b9['commandParams'][0x0];this['editor']['model']['change'](_0x52fc47=>{for(const _0x43e805 of _0x37471b)void 0x0!==_0xca7ccd[_0x43e805]?_0x52fc47['setAttribute'](_0x43e805,_0xca7ccd[_0x43e805],_0x3eda73):_0x52fc47['removeAttribute'](_0x43e805,_0x3eda73);});}['handleSuggestionDescription'](_0x4ca226){if(_0x4ca226['data'])switch(_0x4ca226['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x3adde1,_0x2d3477){const _0x170cd0=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1b9ecc of _0x170cd0['getSuggestions']({'skipNotAttached':!0x0})){const _0x4a42e4=_0x1b9ecc['getContainedElement']();if(_0x1b9ecc['subType']===_0x2d3477&&_0x4a42e4===_0x3adde1)return _0x1b9ecc;}return null;}}const m='$elementName';class p extends _0x56b6e2{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4b85f6,_0x4df029,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1c856d){function _0x55d5b0(_0x1ec3a3){return _0x1ec3a3['map'](_0x1348c2=>String['fromCharCode'](_0x1348c2))['join']('');}super(_0x1c856d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0xb4ffb7,_0x40232,_0x1818a6,_0x3605b1)=>{this['_model']['change'](()=>{for(const _0x48d54d of[..._0x3605b1,..._0x1818a6])this['_model']['markers']['has'](_0x48d54d)&&_0x1c856d['editing']['reconvertMarker'](_0x48d54d);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1c856d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x1c856d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1c856d['config']['get']('trackChanges.trackFormatChanges'),_0x1c856d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1c856d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1c856d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x55d5b0([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55d5b0([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x30]);}['init'](){const _0x341637=this['editor'],_0x1646b7=(_0x5eb23c,_0x2d5c4b)=>{if('attribute'!=_0x5eb23c)return'ck-suggestion-marker-'+_0x5eb23c;const _0x47284c=_0x2d5c4b['split']('|')[0x0];return this['_isBlockAttribute'](_0x47284c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x341637['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x133915=>{const {id:_0x338616,type:_0x48a93e,subType:_0x23fd60}=this['_splitMarkerName'](_0x133915['markerName']),_0x2e8920=['ck-suggestion-marker',_0x1646b7(_0x48a93e,_0x23fd60)];let _0x1d693f=0xbb8;return this['activeMarkers']['includes'](_0x133915['markerName'])&&(_0x2e8920['push']('ck-suggestion-marker--active'),_0x1d693f=0xbc2),'deletion'==_0x48a93e&&(_0x1d693f+=0x5),{'classes':_0x2e8920,'attributes':{'data-suggestion':_0x338616},'priority':_0x1d693f};}}),_0x341637['conversion']['for']('dataDowncast')['add'](_0x5ba649=>{_0x5ba649['on']('addMarker:suggestion',(_0x369987,_0x2f66a2,_0x314976)=>{if(!_0x314976['options']['showSuggestionHighlights'])return;const _0x30ffda=_0x2f66a2['item'];if(!_0x30ffda)return;const _0x5537bc=_0x314976['mapper']['toViewElement'](_0x30ffda);_0x341637['model']['schema']['isObject'](_0x30ffda)&&_0x5537bc&&!_0x5537bc['getCustomProperty']('widget')&&_0x5537bc['is']('containerElement')&&_0x59e12f(_0x5537bc,_0x314976['writer']);},{'priority':'high'});}),_0x341637['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x53186a,_0x57c1aa)=>{if(!_0x57c1aa['options']['showSuggestionHighlights'])return null;const {type:_0x274794,subType:_0x5af5b1}=this['_splitMarkerName'](_0x53186a['markerName']);return{'classes':['ck-suggestion-marker',_0x1646b7(_0x274794,_0x5af5b1)],'priority':0xbb8};}});const _0x284984=({showActiveMarkers:_0x3fa89a=!0x0,isAttributeSuggestion:_0x2e20af=!0x1}={})=>(_0x1443a8,_0x5875ab,_0x29ea87)=>{if(!_0x5875ab['item'])return;const {id:_0x3e7170}=this['_splitMarkerName'](_0x5875ab['markerName']);if(_0x2e20af){const _0x527ac2=this['_suggestions']['get'](_0x3e7170),_0x4bd6a8=this['_getAttributeKey'](_0x527ac2);if(!this['_isBlockAttribute'](_0x4bd6a8))return;}if(_0x5875ab['item']['is']('selection'))return void _0x29ea87['consumable']['consume'](_0x5875ab['item'],_0x1443a8['name']);const _0xfbac1f=_0x29ea87['mapper']['toViewElement'](_0x5875ab['item']);if(_0x5875ab['item']['is']('element')&&_0x341637['model']['schema']['isBlock'](_0x5875ab['item'])&&!_0xfbac1f['getCustomProperty']('addHighlight')){_0x29ea87['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xfbac1f),_0x29ea87['writer']['setAttribute']('data-suggestion',_0x3e7170,_0xfbac1f),_0x29ea87['mapper']['bindElementToMarker'](_0xfbac1f,_0x5875ab['markerName']),_0x3fa89a&&(this['activeMarkers']['includes'](_0x5875ab['markerName'])?_0x29ea87['writer']['addClass']('ck-suggestion-marker--active',_0xfbac1f):_0x29ea87['writer']['removeClass']('ck-suggestion-marker--active',_0xfbac1f));for(const _0x5d934a of _0x341637['model']['createRangeIn'](_0x5875ab['item'])['getItems']())_0x29ea87['consumable']['consume'](_0x5d934a,_0x1443a8['name']);_0x29ea87['consumable']['consume'](_0x5875ab['item'],_0x1443a8['name']);}};_0x341637['conversion']['for']('dataDowncast')['add'](_0x1042b3=>{_0x1042b3['on']('addMarker:suggestion:formatBlock',(_0xd87f8d,_0x25ddba,_0x2e62bb)=>{_0x2e62bb['options']['showSuggestionHighlights']&&_0x284984({'showActiveMarkers':!0x1})(_0xd87f8d,_0x25ddba,_0x2e62bb);},{'priority':'highest'});}),_0x341637['conversion']['for']('dataDowncast')['add'](_0x4374d4=>{_0x4374d4['on']('addMarker:suggestion:attribute',(_0x33a069,_0x36b531,_0x4edc5d)=>{_0x4edc5d['options']['showSuggestionHighlights']&&_0x284984({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x33a069,_0x36b531,_0x4edc5d);},{'priority':'highest'});}),_0x341637['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x1b58c3,_0x5cf334)=>_0x5cf334['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x1b58c3['substr'](0xb)}}),_0x341637['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x1acfe4,{writer:_0x21f2b5})=>{let _0x3f4dd5='suggestion:'+_0x1acfe4['getAttribute']('suggestion-type')+':'+_0x1acfe4['getAttribute']('id');return _0x1acfe4['getAttribute']('marker-count')&&(_0x3f4dd5+=':'+_0x1acfe4['getAttribute']('marker-count')),_0x21f2b5['createElement']('$marker',{'data-name':_0x3f4dd5});}}),_0x341637['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x341637['conversion']['for']('editingDowncast')['add'](_0x586621=>{_0x586621['on']('addMarker:suggestion:formatBlock',_0x284984(),{'priority':'high'});}),_0x341637['conversion']['for']('editingDowncast')['add'](_0x3133d7=>{_0x3133d7['on']('addMarker:suggestion:attribute',_0x284984({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x341637['conversion']['for']('editingDowncast')['add'](_0x452483=>{_0x452483['on']('removeMarker:suggestion:formatBlock',(_0x4149ad,_0x53b93c,_0x3eb733)=>{const _0x2ed7e8=_0x3eb733['mapper']['markerNameToElements'](_0x53b93c['markerName']);if(_0x2ed7e8){for(const _0x1b8474 of _0x2ed7e8)_0x1b8474['getCustomProperty']('addHighlight')||(_0x3eb733['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x1b8474),_0x3eb733['writer']['removeAttribute']('data-suggestion',_0x1b8474),_0x3eb733['mapper']['unbindElementFromMarkerName'](_0x1b8474,_0x53b93c['markerName']));}},{'priority':'high'});}),_0x341637['conversion']['for']('editingDowncast')['add'](_0x337f0b=>{_0x337f0b['on']('removeMarker:suggestion:attribute',(_0x519fe1,_0x29c4bc,_0x27cd14)=>{const _0x3b2629=_0x27cd14['mapper']['markerNameToElements'](_0x29c4bc['markerName']);if(!_0x3b2629)return;const {id:_0x4e70df}=this['_splitMarkerName'](_0x29c4bc['markerName']),_0x43648d=this['_suggestions']['get'](_0x4e70df),_0x2328d7=this['_getAttributeKey'](_0x43648d);if(this['_isBlockAttribute'](_0x2328d7)){for(const _0x3b3f2c of _0x3b2629)_0x3b3f2c['getCustomProperty']('addHighlight')||(_0x27cd14['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3b3f2c),_0x27cd14['writer']['removeAttribute']('data-suggestion',_0x3b3f2c),_0x27cd14['mapper']['unbindElementFromMarkerName'](_0x3b3f2c,_0x29c4bc['markerName']));}},{'priority':'high'});}),_0x341637['model']['document']['registerPostFixer'](_0x2b10ba=>{let _0xc84085=!0x1;const _0x241e3e=Array['from'](_0x341637['model']['document']['differ']['getChangedMarkers']()),_0x772c66=new Set();for(const {name:_0x116062,data:_0x4779f9}of _0x241e3e){const {group:_0x503285,type:_0xfd41a9,subType:_0x28031f,id:_0x4c531b}=this['_splitMarkerName'](_0x116062);if('suggestion'!==_0x503285)continue;const _0x1f9122=this['_suggestions']['get'](_0x4c531b);if(null!=_0x4779f9['newRange']){'formatInline'==_0xfd41a9&&(_0xc84085=_0xc84085||Et(_0x4779f9['newRange'],_0x116062,_0x2b10ba,_0x341637['model']['schema']));const _0x4add0f='attribute'==_0xfd41a9&&this['_isBlockAttribute'](_0x28031f['split']('|')[0x0]);if(_0x4779f9['newRange']['isCollapsed']||'$graveyard'==_0x4779f9['newRange']['root']['rootName']||'formatBlock'==_0xfd41a9&&!Ut(_0x4779f9['newRange'])||_0x4add0f&&!Ut(_0x4779f9['newRange'])||'deletion'==_0xfd41a9&&!(!Tt(_0xd9d024=_0x4779f9['newRange'])&&!function(_0x1fd1ed){return _0x1fd1ed['start']['parent']==_0x1fd1ed['end']['nodeBefore']&&_0x1fd1ed['start']['isAtEnd'];}(_0xd9d024)))_0x2b10ba['removeMarker'](_0x116062),_0xc84085=!0x0;else{if(!_0x1f9122||!_0x1f9122['isInContent'])continue;_0x772c66['add'](_0x1f9122);}}}var _0xd9d024;return _0x772c66['size']>0x0&&(_0xc84085=!!this['_joinWithAdjacentSuggestions'](_0x772c66)||_0xc84085),_0xc84085;}),_0x341637['model']['document']['registerPostFixer'](_0x37a161=>{let _0x6736e1=!0x1;for(const _0x48402 of _0x341637['model']['document']['differ']['getChanges']())if('insert'==_0x48402['type'])for(const _0x3005cc of this['_suggestions']['values']()){if(_0x3005cc['isMultiRange']||!_0x3005cc['isInContent'])continue;const _0x4bee23='formatBlock'==_0x3005cc['type'],_0x16c3b7=this['_getAttributeKey'](_0x3005cc),_0x1ed637=_0x16c3b7&&this['_isBlockAttribute'](_0x16c3b7);if(!_0x4bee23&&!_0x1ed637)continue;const _0x35efc1=_0x3005cc['getFirstRange']();if(_0x35efc1['start']['parent']!=_0x35efc1['end']['parent']&&!_0x35efc1['end']['isAtEnd']){const _0x1b156b=_0x341637['model']['createPositionAt'](_0x35efc1['start']['nodeAfter'],'end'),_0x224cba=_0x341637['model']['createRange'](_0x35efc1['start'],_0x1b156b);_0x37a161['updateMarker'](_0x3005cc['getFirstMarker'](),{'range':_0x224cba}),_0x6736e1=!0x0;}}return _0x6736e1;}),_0x341637['model']['document']['registerPostFixer'](_0x3d26ff=>this['_processAttributeChanges'](_0x3d26ff)),_0x341637['model']['document']['registerPostFixer'](_0x2cd83f=>!_0x2cd83f['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2cd83f)),_0x341637['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x341637['model']['document']['on']('change:data',(_0x2ccddb,_0x592b57)=>{if(!_0x592b57['isLocal']||_0x592b57['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5d3136=_0x341637['model']['document']['differ']['getChanges']();if(0x0==_0x5d3136['length'])return;const _0x298b96=[],_0x59fafb=_0x5d3136['filter'](_0x51cefd=>'attribute'==_0x51cefd['type']),_0x485978=_0x5d3136['filter'](_0x47841f=>'insert'==_0x47841f['type']&&'$text'!=_0x47841f['name']);for(const _0x62c09f of _0x59fafb)this['_isRegisteredAttribute'](_0x62c09f['attributeKey'])&&_0x298b96['push']({'key':_0x62c09f['attributeKey'],'newValue':_0x62c09f['attributeNewValue'],'oldValue':_0x62c09f['attributeOldValue'],'range':Ot(_0x62c09f['range'],_0x341637['model'])});for(const _0x549a7d of _0x485978){if('rename'!=_0x549a7d['action']&&'refresh'!=_0x549a7d['action'])continue;const _0x502ed7=Gt(_0x549a7d['position']['nodeAfter'],_0x341637['model']),_0x359b31=_0x549a7d['before'];'rename'==_0x549a7d['action']&&_0x298b96['push']({'key':m,'newValue':_0x549a7d['name'],'oldValue':_0x359b31['name'],'range':_0x502ed7});for(const [_0x5d6794,_0x13bc55]of _0x359b31['attributes']){if(!this['_isRegisteredAttribute'](_0x5d6794))continue;const _0x1c6db9=_0x549a7d['attributes']['get'](_0x5d6794);_0x13bc55!==_0x1c6db9&&_0x298b96['push']({'key':_0x5d6794,'newValue':_0x1c6db9,'oldValue':_0x13bc55,'range':_0x502ed7});}for(const [_0x302b7f,_0x570448]of _0x549a7d['attributes'])this['_isRegisteredAttribute'](_0x302b7f)&&(_0x359b31['attributes']['has'](_0x302b7f)||_0x298b96['push']({'key':_0x302b7f,'newValue':_0x570448,'oldValue':null,'range':_0x502ed7}));}0x0!=_0x298b96['length']&&_0x341637['model']['enqueueChange'](_0x592b57,_0xfec9f8=>{const _0x1ff0ce=_0xadd5e0();for(const {range:_0x49893c,key:_0x8419e0,oldValue:_0x25b420,newValue:_0x38fbb9}of _0x298b96)this['markAttributeChange'](_0x49893c,_0x8419e0,_0x25b420,_0x38fbb9,{'groupId':_0x1ff0ce});this['_reduceExistingSuggestions'](_0xfec9f8,_0x298b96);});},{'priority':'lowest'}),_0x341637['model']['markers']['on']('update:suggestion',(_0x13af6d,_0x3f19bf,_0x308e3f)=>{if(null==_0x308e3f){const {id:_0x1316a0}=this['_splitMarkerName'](_0x3f19bf['name']),_0x31f630=this['_suggestions']['get'](_0x1316a0);_0x31f630&&_0x31f630['addMarkerName'](_0x3f19bf['name']);}}),_0x341637['model']['document']['on']('change:data',()=>{const _0x1dd9cf=Array['from'](_0x341637['model']['document']['differ']['getChangedMarkers']())['filter'](_0x1ce610=>'suggestion'===this['_splitMarkerName'](_0x1ce610['name'])['group']);if(0x0===_0x1dd9cf['length'])return;_0x1dd9cf['sort']((_0x10e0d7,_0x2c413a)=>{const _0x14d7d5=_0x10e0d7['data']['oldRange'],_0x322cc0=_0x2c413a['data']['oldRange'];return null===_0x14d7d5&&null===_0x322cc0?0x0:null===_0x14d7d5&&null!==_0x322cc0?-0x1:null!==_0x14d7d5&&null===_0x322cc0?0x1:_0x14d7d5['start']['isBefore'](_0x322cc0['start'])?-0x1:0x1;});const _0x359726=new Set(),_0x144c87=new Set();for(const {name:_0x587646,data:_0x4268c6}of _0x1dd9cf){const {id:_0x541cc9}=this['_splitMarkerName'](_0x587646);if(null===_0x4268c6['oldRange']){const _0x2de726=this['_handleNewSuggestionMarker'](_0x587646);_0x144c87['add'](_0x2de726);}else{const _0x10c35c=this['_suggestions']['get'](_0x541cc9);null!==_0x4268c6['newRange']||_0x10c35c['isInContent']?(_0x359726['add'](_0x10c35c['head']),_0x144c87['add'](_0x10c35c)):this['_removeSuggestion'](_0x10c35c);}}_0x144c87['size']>0x0&&this['_refreshSuggestionsChain'](_0x144c87);for(const _0x2c3728 of _0x359726)this['fire']('suggestionChanged',_0x2c3728);}),_0x341637['model']['on']('applyOperation',(_0x1090cb,_0x2c7d08)=>{const _0x4b43d9=_0x2c7d08[0x0];if(!this['_suggestions']['size'])return;if(!_0x4b43d9['isDocumentOperation'])return;if(_0x4b43d9['batch']['isUndo']||!_0x4b43d9['batch']['isLocal'])return;let _0x6707a1,_0x4814a7;switch(_0x4b43d9['type']){case'insert':_0x6707a1=_0x341637['model']['createPositionAt'](_0x4b43d9['position']),_0x4814a7=_0x6707a1['getShiftedBy'](_0x4b43d9['howMany']);break;case'split':_0x6707a1=_0x341637['model']['createPositionAt'](_0x4b43d9['splitPosition']),_0x4814a7=_0x341637['model']['createPositionAt'](_0x4b43d9['moveTargetPosition']);break;case'move':_0x6707a1=_0x341637['model']['createPositionAt'](_0x4b43d9['targetPosition']),_0x4814a7=_0x6707a1['getShiftedBy'](_0x4b43d9['howMany']);break;default:return;}const _0x45546c=_0x341637['model']['createRange'](_0x6707a1,_0x4814a7);_0x341637['model']['change'](()=>{for(const {suggestion:_0x297988,meta:_0x4744b8}of this['_findSuggestions'](_0x45546c)){if(_0x297988['isMultiRange'])continue;if('formatInline'==_0x297988['type'])continue;const _0x486e34=this['_getAttributeKey'](_0x297988);if(_0x486e34&&this['_isBlockAttribute'](_0x486e34)&&'split'!=_0x4b43d9['type'])continue;const _0x5490bb=_0x297988['data']&&_0x297988['data']['multipleBlocks'];('formatBlock'!=_0x297988['type']||'split'==_0x4b43d9['type']&&!_0x5490bb)&&(_0x4744b8['containsRangeInObject']||'insertion'==_0x297988['type']&&_0x4744b8['isOwn']||_0x297988['getFirstRange']()['containsRange'](_0x45546c)&&this['_breakSuggestionMarker'](_0x297988,_0x6707a1,_0x4814a7));}});},{'priority':'lowest'}),_0x341637['model']['on']('deleteContent',(_0x1eed70,_0x497180)=>{const _0x2dfdd4=_0x497180[0x0],_0x4eb183=_0x497180[0x1];if(_0x4eb183&&_0x4eb183['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2dfdd4['isCollapsed'])return;const _0x519f0a=_0x341637['model']['schema'],{start:_0x14e2d4,end:_0x15f618}=_0x2dfdd4['getFirstRange'](),_0x43202e=_0x14e2d4['nodeAfter']&&_0x519f0a['isLimit'](_0x14e2d4['nodeAfter'])?null:_0x519f0a['getNearestSelectionRange'](_0x14e2d4,'forward'),_0x5510cf=_0x15f618['nodeBefore']&&_0x519f0a['isLimit'](_0x15f618['nodeBefore'])?null:_0x519f0a['getNearestSelectionRange'](_0x15f618,'backward'),_0x2e48ba=_0x341637['model']['createRange'](_0x43202e?_0x43202e['start']:_0x14e2d4,_0x5510cf?_0x5510cf['end']:_0x15f618);_0x341637['model']['change'](_0x168b9e=>{this['markDeletion'](_0x2e48ba);const _0x21246f=_0x341637['model']['schema']['getNearestSelectionRange'](_0x2e48ba['start']);_0x2dfdd4['is']('documentSelection')?_0x168b9e['setSelection'](_0x21246f):_0x2dfdd4['setTo'](_0x21246f);}),_0x1eed70['stop']();},{'priority':_0x8ad537['normal']+0xa}),_0x341637['model']['on']('insertContent',(_0x4105b2,_0x19d02a)=>{const _0x33e1b0=_0x19d02a[_0x19d02a['length']-0x1];_0x33e1b0&&_0x33e1b0['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x341637['model']['change'](()=>{let _0x4b48d2=_0x341637['model']['insertContent'](_0x19d02a[0x0],_0x19d02a[0x1],_0x19d02a[0x2],{'forceDefaultExecution':!0x0});if(!_0x4b48d2)return;_0x4105b2['return']=_0x4b48d2['clone']();const _0x218654=_0x4b48d2['end']['nodeBefore'],_0x3b03db=_0x341637['model']['schema'];_0x218654&&_0x3b03db['isBlock'](_0x218654)&&!_0x3b03db['isObject'](_0x218654)&&(_0x4b48d2=_0x341637['model']['createRange'](_0x4b48d2['start'],_0x341637['model']['createPositionAt'](_0x218654,'end'))),this['markInsertion'](_0x4b48d2);}),_0x4105b2['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x163546=new $(_0x341637,this['_suggestions']);_0x341637['commands']['add']('acceptSuggestion',_0x163546),this['enableCommand']('acceptSuggestion');const _0xdbcb9e=new B(_0x341637,this['_suggestions']);_0x341637['commands']['add']('discardSuggestion',_0xdbcb9e),this['enableCommand']('discardSuggestion'),_0x341637['commands']['add']('acceptAllSuggestions',new x(_0x341637,_0x163546,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x341637['commands']['add']('discardAllSuggestions',new x(_0x341637,_0xdbcb9e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x341637['commands']['add']('acceptSelectedSuggestions',new R(_0x341637,_0x163546,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x341637['commands']['add']('discardSelectedSuggestions',new R(_0x341637,_0xdbcb9e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ace5d=_0x341637['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ace5d,'addComment',(_0x5f575d,{threadId:_0x35feab})=>{const _0x5b0737=this['_suggestions']['get'](_0x35feab);_0x5b0737&&_0x5b0737['commentThread']&&0x1===_0x5b0737['commentThread']['length']&&this['_updateSuggestionData'](_0x35feab,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ace5d,'removeComment',(_0x557fb6,{threadId:_0x5a07b5})=>{const _0x176817=this['_suggestions']['get'](_0x5a07b5);_0x176817&&_0x176817['commentThread']&&!_0x176817['commentThread']['length']&&this['_updateSuggestionData'](_0x5a07b5,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5d3ca4){if(this['_adapter'])throw new _0x2a8160('track-changes-adapter-already-set',this);this['_adapter']=_0x5d3ca4;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x105b86=!0x1,toJSON:_0x46f9d8=!0x1}={}){const _0x460385=[];for(const _0x264fab of this['_suggestions']['values']())_0x105b86&&!_0x264fab['isInContent']||_0x460385['push'](_0x264fab);return _0x46f9d8?_0x460385['map'](_0x824c2=>_0x824c2['toJSON']()):_0x460385;}['getSuggestion'](_0x3d81e6){const _0xac6224=this['_suggestions']['get'](_0x3d81e6);if(!_0xac6224)throw new _0x2a8160('track-changes-suggestion-not-found',this);return _0xac6224;}['hasSuggestion'](_0x1ba2bc){return this['_suggestions']['has'](_0x1ba2bc);}['addSuggestionData'](_0x29bd09){const {authorId:_0x1471cf,id:_0x5f4c17,attributes:_0x16a091}=_0x29bd09,[_0x1178df,_0x21afa7]=_0x29bd09['type']['split'](':'),_0x3b1b49=this['_suggestions']['get'](_0x5f4c17)||this['_createSuggestion'](_0x1178df,_0x21afa7,_0x5f4c17,_0x1471cf,_0x16a091);if(this['_addThreadToSuggestion'](_0x3b1b49),this['_checkSuggestionCorrectness'](_0x3b1b49,_0x1178df,_0x21afa7||null,_0x1471cf),_0x3b1b49['createdAt']=_0x29bd09['createdAt'],_0x3b1b49['_isDataLoaded']=!0x0,_0x16a091&&_0x16a091['@external']){const _0x363323=_0x16a091['@external'],_0x4641a0=this['_getExternalAuthor'](_0x363323['authorName']);_0x3b1b49['authoredAt']=_0x363323['createdAt'],_0x3b1b49['author']=_0x4641a0,_0x3b1b49['isExternal']=!0x0;}else _0x3b1b49['authoredAt']=_0x29bd09['createdAt'];switch(_0x29bd09['data']&&(_0x3b1b49['data']=_0x29bd09['data']),_0x29bd09['attributes']&&(_0x3b1b49['attributes']=_0x29bd09['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b1b49['_saved']=!0x0),this['_suggestionState']['get'](_0x3b1b49)){case'notReady':this['_suggestionState']['set'](_0x3b1b49,'dataReady');break;case'markerReady':_0x3b1b49['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b1b49])),this['_refreshSuggestionsChain'](new Set([_0x3b1b49])),this['_suggestionState']['set'](_0x3b1b49,'ready'),this['fire']('suggestionLoaded',_0x3b1b49)):this['_suggestionState']['set'](_0x3b1b49,'removed');}return _0x3b1b49;}['acceptSuggestion'](_0x40cc4e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x317545 of _0x40cc4e['getAllAdjacentSuggestions']())_0x317545['accept']();});});}['discardSuggestion'](_0x31e3f0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xa3487a of _0x31e3f0['getAllAdjacentSuggestions']())_0xa3487a['discard']();});});}['enableCommand'](_0x1eca46,_0x5606e2){const _0x45fc30=this['editor']['commands']['get'](_0x1eca46);if(!_0x45fc30)throw new _0x2a8160('track-changes-command-not-found',this,{'commandName':_0x1eca46});if(this['_enabledCommands']['has'](_0x45fc30))throw new _0x2a8160('track-changes-enable-command-twice',this,{'commandName':_0x1eca46});this['_enabledCommands']['add'](_0x45fc30),_0x5606e2&&_0x45fc30['on']('execute',(_0xff482,_0x194cb8)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x194cb8['length']>0x0&&_0x194cb8[_0x194cb8['length']-0x1]&&_0x194cb8[_0x194cb8['length']-0x1]['forceDefaultExecution']?_0x194cb8['pop']():(_0xff482['return']=_0x5606e2((..._0x363171)=>_0x45fc30['execute'](..._0x363171,{'forceDefaultExecution':!0x0}),..._0x194cb8),_0xff482['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x14381a){let _0xd8000a,_0x1c2f42;const _0x5794ac=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xd8000a=_0x14381a();}catch(_0x205b2b){_0x1c2f42=_0x205b2b;}return _0x5794ac||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1c2f42&&_0x2a8160['rethrowUnexpectedError'](_0x1c2f42,this),_0xd8000a;}['markInsertion'](_0x8f0af9,_0x2fd5ba=null,_0x4266ef={}){if(_0x8f0af9['isCollapsed'])return null;const _0x59a767=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x4f26d4,meta:_0x2475c9}of this['_findSuggestions'](_0x8f0af9,'insertion'))if(_0x2475c9['isOwn']){if(!_0x2475c9['isNextTo']){if(_0x2475c9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x4f26d4,_0x4266ef))continue;return _0x4f26d4;}if(Lt(_0x4f26d4,_0x4266ef))return _0x4f26d4;this['_breakSuggestionMarker'](_0x4f26d4,_0x8f0af9['start'],_0x8f0af9['end']);break;}if(_0x2fd5ba==_0x4f26d4['subType']&&Lt(_0x4f26d4,_0x4266ef)){const _0x2e462a=_0x4f26d4['getFirstRange']();return _0x2e462a['start']['isEqual'](_0x8f0af9['end'])?this['_setSuggestionRange'](_0x4f26d4,this['_model']['createRange'](_0x8f0af9['start'],_0x2e462a['end'])):this['_setSuggestionRange'](_0x4f26d4,this['_model']['createRange'](_0x2e462a['start'],_0x8f0af9['end'])),_0x4f26d4;}}const _0x5c24d4=_0xadd5e0(),_0x4acbb4=_0x59a767['id'],_0x558e25=_0x2fd5ba?'insertion:'+_0x2fd5ba:'insertion',_0x25d4ec=this['_setSuggestionData']({'id':_0x5c24d4,'type':_0x558e25,'createdAt':new Date(),'authorId':_0x4acbb4,'attributes':_0x4266ef});return this['_addSuggestionMarker'](_0x558e25,_0x5c24d4,_0x4acbb4,_0x8f0af9),_0x25d4ec;}['markMultiRangeInsertion'](_0x7684b6,_0x28fdc='multi',_0x2b661b={}){const _0xc0eed5=this['editor']['plugins']['get']('Users')['me'],_0x12cbab=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x28fdc,'join');for(const _0x1b57b6 of this['getSuggestions']())if(_0x1b57b6['author']['id']==_0xc0eed5['id']&&'insertion'==_0x1b57b6['type']&&_0x1b57b6['subType']==_0x28fdc&&Lt(_0x1b57b6,_0x2b661b)&&(_0x12cbab(_0x1b57b6['getRanges'](),_0x7684b6)||_0x12cbab(_0x7684b6,_0x1b57b6['getRanges']()))){for(const _0x369d92 of _0x7684b6)_0x1b57b6['addRange'](_0x369d92);return _0x1b57b6;}for(const {suggestion:_0x4c8945,meta:_0x18409e}of this['_findSuggestions'](_0x7684b6,'insertion')){if(!_0x18409e['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x18409e['containsRangeInObject'])continue;if(!Lt(_0x4c8945,_0x2b661b))continue;let _0xd20304=!0x0;for(const _0x49cc57 of _0x4c8945['getRanges']())for(const _0x430a1a of _0x7684b6)if(!_0x49cc57['containsRange'](_0x430a1a)){_0xd20304=!0x1;break;}if(_0xd20304)return _0x4c8945;}const _0x446cef=_0xadd5e0(),_0x1e9735=_0xc0eed5['id'],_0x2c5f81='insertion:'+_0x28fdc,_0x2a375b=this['_setSuggestionData']({'id':_0x446cef,'type':_0x2c5f81,'createdAt':new Date(),'authorId':_0x1e9735,'attributes':_0x2b661b});for(const _0x19336b of _0x7684b6)this['_addSuggestionMarker'](_0x2c5f81,_0x446cef,_0x1e9735,_0x19336b,u['getMultiRangeId']());return _0x2a375b;}['markInlineFormat'](_0x2f12c4,_0x36475b,_0x173676=null,_0x4f2a8a={}){if(_0x173676=_0x173676||Vt(_0x36475b),_0x2f12c4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x26bb65=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x173676,'accept');return this['forceDefaultExecution'](()=>_0x26bb65([_0x2f12c4],_0x36475b,_0x4f2a8a)),null;}const _0x382c52=this['editor']['plugins']['get']('Users')['me'],_0x1bfe40=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x33375c,meta:_0x3e2225}of this['_findSuggestions'](_0x2f12c4,'insertion'))_0x3e2225['isOwn']&&!_0x3e2225['isInsideObject']&&_0x1bfe40['push'](..._0x33375c['getRanges']());}const _0x389175=function(_0x1c1dcd,_0x5ad2a5){const _0x3681a1=[];for(const _0x396465 of _0x5ad2a5){const _0x4af377=_0x1c1dcd['getIntersection'](_0x396465);_0x4af377&&_0x3681a1['push'](_0x4af377);}return _0x3681a1;}(_0x2f12c4,_0x1bfe40),_0x1027e5=function(_0x34e75b,_0x2f318b){const _0x53b2e9=[_0x34e75b];for(const _0x5b373e of _0x2f318b){let _0x1af72a=0x0;for(;_0x1af72a<_0x53b2e9['length'];){const _0x5264eb=_0x53b2e9[_0x1af72a]['getDifference'](_0x5b373e);_0x53b2e9['splice'](_0x1af72a,0x1,..._0x5264eb),_0x1af72a+=_0x5264eb['length'];}}return _0x53b2e9;}(_0x2f12c4,_0x1bfe40);_0x389175['length']&&this['_model']['change'](()=>{for(const _0x1cf436 of _0x389175){const _0x4ea3aa=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x173676,'accept');this['forceDefaultExecution'](()=>_0x4ea3aa([_0x1cf436],_0x36475b,_0x4f2a8a));}});for(const _0x2344c6 of _0x1027e5){let _0x5d489f=null,_0x59b2a1=_0x2344c6['start'],_0x259b5e=_0x2344c6['end'];for(const {suggestion:_0x44bd06,meta:_0x355331}of this['_findSuggestions'](_0x2344c6,'formatInline')){if(!_0x355331['isOwn'])continue;if(_0x44bd06['subType']!=_0x173676)continue;if(!Lt(_0x44bd06,_0x4f2a8a))continue;const _0x98ebc1=_0x44bd06['getFirstRange']();if(_0x98ebc1['containsRange'](_0x2344c6,!0x0))return null;_0x59b2a1=_0x59b2a1['isBefore'](_0x98ebc1['start'])?_0x59b2a1:_0x98ebc1['start'],_0x259b5e=_0x259b5e['isAfter'](_0x98ebc1['end'])?_0x259b5e:_0x98ebc1['end'],_0x5d489f?_0x98ebc1['start']['isBefore'](_0x5d489f['getFirstRange']()['start'])?(_0x5d489f['removeMarkers'](),_0x5d489f=_0x44bd06):_0x44bd06['removeMarkers']():_0x5d489f=_0x44bd06;}const _0x379ced=this['_model']['createRange'](_0x59b2a1,_0x259b5e);if(_0x5d489f)this['_setSuggestionRange'](_0x5d489f,_0x379ced);else{const _0x13ef1d=_0xadd5e0(),_0x271c3a=_0x382c52['id'];this['_setSuggestionData']({'id':_0x13ef1d,'type':'formatInline:'+_0x173676,'data':_0x36475b,'createdAt':new Date(),'authorId':_0x271c3a,'attributes':_0x4f2a8a}),this['_addSuggestionMarker']('formatInline:'+_0x173676,_0x13ef1d,_0x271c3a,_0x379ced);}}return null;}['markBlockFormat'](_0x41d500,_0x4b2595,_0x5f4c91=[],_0x23495a=null,_0x1bedcc={}){_0x4b2595['formatGroupId']||(_0x4b2595['formatGroupId']=_0x4b2595['commandName']),_0x4b2595['multipleBlocks']=_0x41d500['is']('range'),_0x23495a=_0x23495a||Vt(_0x4b2595);const _0x5c73fc=_0x5f4c91['map'](_0x870356=>Gt(_0x870356,this['_model'])),_0x3b9c4b=_0x41d500['is']('range')?_0x41d500:Gt(_0x41d500,this['_model']);if('never'===this['_trackFormatChanges']){const _0x7b44c9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23495a,'accept');return this['forceDefaultExecution'](()=>_0x7b44c9([_0x3b9c4b],_0x4b2595,_0x1bedcc)),null;}_0x5c73fc['push'](_0x3b9c4b);let _0x144b3a=!0x0;for(const _0x27dec2 of _0x5c73fc)if(!this['_rangeIsInLocalUserInsertion'](_0x27dec2)){_0x144b3a=!0x1;break;}if(_0x144b3a&&'always'!==this['_trackFormatChanges']){const _0x277fb5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x23495a,'accept');return this['forceDefaultExecution'](()=>_0x277fb5([_0x3b9c4b],_0x4b2595,_0x1bedcc)),null;}let _0x163ed8=null,_0x13f331=_0x3b9c4b['start'],_0x17745b=_0x3b9c4b['end'];for(const {suggestion:_0x297dee,meta:_0x358f6b}of this['_findSuggestions'](_0x3b9c4b,'formatBlock')){if(!_0x358f6b['isOwn'])continue;if(_0x358f6b['isNextTo']||_0x358f6b['containsRangeInObject']||_0x358f6b['isInsideObject'])continue;if(_0x297dee['data']['formatGroupId']!=_0x4b2595['formatGroupId'])continue;if(!Lt(_0x297dee,_0x1bedcc))continue;const _0x38462e=_0x297dee['getFirstRange']();if(_0x297dee['subType']==_0x23495a){if(_0x38462e['containsRange'](_0x3b9c4b,!0x0))return null;_0x13f331=_0x13f331['isBefore'](_0x38462e['start'])?_0x13f331:_0x38462e['start'],_0x17745b=_0x17745b['isAfter'](_0x38462e['end'])?_0x17745b:_0x38462e['end'],_0x163ed8?_0x38462e['start']['isBefore'](_0x163ed8['getFirstRange']()['start'])?(_0x163ed8['removeMarkers'](),_0x163ed8=_0x297dee):_0x297dee['removeMarkers']():_0x163ed8=_0x297dee;}else{const _0x2e8520=_0x3b9c4b['getIntersection'](_0x38462e);this['_cutOutSuggestionMarker'](_0x297dee,_0x2e8520);}}const _0x4f1de7=this['editor']['plugins']['get']('Users')['me'],_0xed1bed=_0xadd5e0(),_0x14b839=_0x4f1de7['id'];if(_0x163ed8)return this['_setSuggestionRange'](_0x163ed8,this['_model']['createRange'](_0x13f331,_0x17745b)),_0x163ed8;{const _0x438285=this['_setSuggestionData']({'id':_0xed1bed,'type':'formatBlock:'+_0x23495a,'data':_0x4b2595,'createdAt':new Date(),'authorId':_0x14b839,'attributes':_0x1bedcc});return this['_addSuggestionMarker']('formatBlock:'+_0x23495a,_0xed1bed,_0x14b839,this['_model']['createRange'](_0x13f331,_0x17745b)),_0x438285;}}['markMultiRangeBlockFormat'](_0x5787e6,_0x47f375,_0x2220aa=[],_0xf3c70d=null,_0x3825c2={}){_0x47f375['formatGroupId']||(_0x47f375['formatGroupId']=_0x47f375['commandName']);const _0x4e7308=_0x5787e6[0x0];_0x47f375['multipleBlocks']=_0x4e7308['is']('range'),_0xf3c70d=_0xf3c70d||Vt(_0x47f375);const _0x436491=_0x2220aa['map'](_0x3607ed=>Gt(_0x3607ed,this['_model'])),_0x556e26=_0x4e7308['is']('range')?_0x5787e6:_0x5787e6['map'](_0x266670=>Gt(_0x266670,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2200de=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3c70d,'accept');return this['forceDefaultExecution'](()=>_0x2200de(_0x556e26,_0x47f375,_0x3825c2)),null;}_0x436491['push'](..._0x556e26);let _0x437fd2=!0x0;for(const _0x342634 of _0x436491)if(!this['_rangeIsInLocalUserInsertion'](_0x342634)){_0x437fd2=!0x1;break;}if(_0x437fd2&&'always'!==this['_trackFormatChanges']){const _0xf15f99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3c70d,'accept');return this['forceDefaultExecution'](()=>_0xf15f99(_0x556e26,_0x47f375,_0x3825c2)),null;}const _0x1f27cb=this['editor']['plugins']['get']('Users')['me'];for(const _0x15f9ba of this['getSuggestions']()){if(_0x15f9ba['author']['id']!=_0x1f27cb['id'])continue;if('formatBlock'!=_0x15f9ba['type']||_0x15f9ba['data']['formatGroupId']!=_0x47f375['formatGroupId'])continue;if(!Lt(_0x15f9ba,_0x3825c2))continue;const _0x423b7f=_0x15f9ba['subType']==_0xf3c70d;for(let _0x471a20=0x0;_0x471a20<_0x556e26['length'];_0x471a20++){const _0x4d2de0=_0x556e26[_0x471a20];for(const _0x2d007e of _0x15f9ba['getMarkers']()){const _0x14600a=_0x2d007e['getRange']();if(_0x4d2de0['isEqual'](_0x14600a)){_0x423b7f?(_0x556e26['splice'](_0x471a20,0x1),_0x471a20--):_0x15f9ba['removeMarker'](_0x2d007e['name']);break;}}}}if(0x0==_0x556e26['length'])return null;const _0x2daf15=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3c70d,'join');for(const _0x41e5bd of this['getSuggestions']())if(_0x41e5bd['author']['id']==_0x1f27cb['id']&&'formatBlock'==_0x41e5bd['type']&&_0x41e5bd['data']['formatGroupId']==_0x47f375['formatGroupId']&&_0x41e5bd['subType']==_0xf3c70d&&Lt(_0x41e5bd,_0x3825c2)&&(_0x2daf15(_0x41e5bd['getRanges'](),_0x556e26)||_0x2daf15(_0x556e26,_0x41e5bd['getRanges']()))){for(const _0x19712f of _0x556e26)_0x41e5bd['addRange'](_0x19712f);return _0x41e5bd;}const _0x25ba50=_0xadd5e0(),_0x2c260c=_0x1f27cb['id'],_0x21eb77='formatBlock:'+_0xf3c70d,_0xf2a33=this['_setSuggestionData']({'id':_0x25ba50,'type':_0x21eb77,'data':_0x47f375,'createdAt':new Date(),'authorId':_0x2c260c,'attributes':_0x3825c2});for(const _0x2db08b of _0x556e26)this['_addSuggestionMarker'](_0x21eb77,_0x25ba50,_0x2c260c,_0x2db08b,u['getMultiRangeId']());return _0xf2a33;}['markDeletion'](_0x499c05,_0xa32f10=null,_0x635160={}){if(_0x499c05['isCollapsed'])return null;const _0x25797d=this['editor']['plugins']['get']('Users')['me'],_0x5ada94=new _0x46236(_0x499c05['start'],_0x499c05['end']);for(const {suggestion:_0x2acb33,meta:_0x5ec86b}of this['_findSuggestions'](_0x5ada94,'insertion'))if(_0x5ec86b['isOwn']&&!_0x5ec86b['isNextTo']){if(_0x2acb33['isMultiRange']){const _0x34b5ab=_0x2acb33['getRanges']()['filter'](_0x109e3d=>'$graveyard'!=_0x109e3d['root']['rootName']);_0x34b5ab['every'](_0x19174d=>_0x5ada94['containsRange'](_0x19174d,!0x0))&&_0x2acb33['discard']();if(_0x34b5ab['some'](_0x4caa18=>_0x4caa18['containsRange'](_0x5ada94,!0x0))){const _0x957eab=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa32f10,'accept');return this['forceDefaultExecution'](()=>_0x957eab([_0x5ada94],null,_0x635160)),null;}}else{const _0x56d106=_0x5ada94['getIntersection'](_0x2acb33['getFirstRange']());null!==_0x56d106&&_0x2acb33['_onDiscard']([_0x56d106],null,_0x635160);}}if(_0x5ada94['detach'](),_0x5ada94['isCollapsed']||'$graveyard'==_0x5ada94['root']['rootName'])return null;let _0x74c2dd=null,_0x24e830=_0x5ada94['start'],_0x3aa1b4=_0x5ada94['end'];const _0x5a6487=this['_findSuggestions'](_0x5ada94,'deletion');for(const {suggestion:_0x2dd8fe,meta:_0x3b5b34}of _0x5a6487){const _0x4af527=this['_model']['createRange'](_0x24e830,_0x3aa1b4);if(_0x3b5b34['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3b5b34['containsRangeInObject']&&!_0x3b5b34['isInsideObject'])){if(_0x2dd8fe['isMultiRange']){if(!Lt(_0x2dd8fe,_0x635160))continue;let _0x5b2098=!0x0;for(const _0x2ebd63 of _0x2dd8fe['getRanges']()){if(_0x2ebd63['containsRange'](_0x4af527,!0x0))return _0x2dd8fe;_0x4af527['containsRange'](_0x2ebd63)||(_0x5b2098=!0x1);}_0x5b2098&&_0x2dd8fe['discard']();}else{const _0x39eb59=_0x2dd8fe['getFirstRange']();if(_0x39eb59['containsRange'](_0x4af527,!0x0))return _0x2dd8fe;if(!Lt(_0x2dd8fe,_0x635160)){_0x4af527['containsRange'](_0x39eb59)?_0x2dd8fe['removeMarkers']():_0x39eb59['containsPosition'](_0x24e830)?_0x24e830=_0x39eb59['end']:_0x39eb59['containsPosition'](_0x3aa1b4)&&(_0x3aa1b4=_0x39eb59['start']);continue;}_0x24e830=_0x24e830['isBefore'](_0x39eb59['start'])?_0x24e830:_0x39eb59['start'],_0x3aa1b4=_0x3aa1b4['isAfter'](_0x39eb59['end'])?_0x3aa1b4:_0x39eb59['end'],_0x635160=Object['assign']({},_0x2dd8fe['attributes']),_0x74c2dd?_0x39eb59['start']['isBefore'](_0x74c2dd['getFirstRange']()['start'])?(_0x74c2dd['removeMarkers'](),_0x74c2dd=_0x2dd8fe):_0x2dd8fe['removeMarkers']():_0x74c2dd=_0x2dd8fe;}}}if(_0x74c2dd)return this['_setSuggestionRange'](_0x74c2dd,this['_model']['createRange'](_0x24e830,_0x3aa1b4)),_0x74c2dd;{const _0x4ecb2d=_0xadd5e0(),_0x427570=this['_model']['createRange'](_0x24e830,_0x3aa1b4),_0x16f4ff=_0x25797d['id'],_0x43b921=_0xa32f10?'deletion:'+_0xa32f10:'deletion',_0x3a6201=this['_setSuggestionData']({'id':_0x4ecb2d,'type':_0x43b921,'createdAt':new Date(),'authorId':_0x16f4ff,'attributes':_0x635160});return this['_addSuggestionMarker'](_0x43b921,_0x4ecb2d,_0x16f4ff,_0x427570),_0x3a6201;}}['markMultiRangeDeletion'](_0x4aaa39,_0x37925e='multi',_0x8bb860={}){const _0x306a70=this['editor']['plugins']['get']('Users')['me'],_0x75e6c5=_0x4aaa39['map'](_0x591b3d=>new _0x46236(_0x591b3d['start'],_0x591b3d['end'])),_0x21d67e=new Set();for(const {suggestion:_0x16bf59,meta:_0x38cce4}of this['_findSuggestions'](_0x75e6c5,'insertion'))_0x38cce4['isOwn']&&!_0x38cce4['isNextTo']&&_0x21d67e['add'](_0x16bf59);for(const _0xa624c5 of _0x21d67e)if(_0xa624c5['isMultiRange']){const _0x4f9eda=_0xa624c5['getRanges']();(!_0xa624c5['attributes']||!_0xa624c5['attributes']['skipNestingCheck'])&&(_0x4f9eda['every'](_0xfe094a=>_0x75e6c5['some'](_0x5ac98e=>_0x5ac98e['containsRange'](_0xfe094a,!0x0)))&&_0xa624c5['discard']());if(_0x75e6c5['every'](_0x3c6dc9=>_0x4f9eda['some'](_0x41a3ad=>_0x41a3ad['containsRange'](_0x3c6dc9,!0x0)))){const _0x51b555=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37925e,'accept');return this['forceDefaultExecution'](()=>_0x51b555(_0x4aaa39,null,_0x8bb860)),null;}}else{const _0x532a8a=_0xa624c5['getFirstRange']();_0x75e6c5['some'](_0x3675ab=>_0x3675ab['containsRange'](_0x532a8a,!0x0))&&_0xa624c5['discard']();if(_0x75e6c5['every'](_0x565b4a=>_0x532a8a['containsRange'](_0x565b4a,!0x0))){const _0x233ea3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37925e,'accept');return this['forceDefaultExecution'](()=>_0x233ea3(_0x75e6c5,null,_0x8bb860)),null;}}const _0x22230a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x37925e,'join');let _0x468121=null;for(const _0xa3889f of this['getSuggestions']())if(_0xa3889f['author']['id']==_0x306a70['id']&&_0xa3889f['isInContent']&&'deletion'==_0xa3889f['type']&&_0xa3889f['subType']==_0x37925e&&Lt(_0xa3889f,_0x8bb860)&&(_0x22230a(_0xa3889f['getRanges'](),_0x75e6c5)||_0x22230a(_0x75e6c5,_0xa3889f['getRanges']()))){if(_0x468121){if(_0xa3889f['commentThread']&&_0xa3889f['commentThread']['length'])continue;for(const _0x346f8b of _0xa3889f['getRanges']())_0x468121['isIntersectingWithRange'](_0x346f8b)||_0x468121['addRange'](_0x346f8b);_0xa3889f['removeMarkers']();}else{_0x468121=_0xa3889f;for(const _0x160cb9 of _0x75e6c5)_0xa3889f['isIntersectingWithRange'](_0x160cb9)||_0xa3889f['addRange'](_0x160cb9);}}if(_0x468121)return _0x468121;_0x21d67e['clear']();for(const {suggestion:_0x4a5a11,meta:_0x20e087}of this['_findSuggestions'](_0x75e6c5,'deletion'))_0x20e087['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e087['containsRangeInObject']&&!_0x20e087['isInsideObject'])&&Lt(_0x4a5a11,_0x8bb860)&&_0x21d67e['add'](_0x4a5a11);for(const _0x949f83 of _0x21d67e){const _0xa9e350=_0x949f83['getRanges']();if(!_0x8bb860||!_0x8bb860['skipNestingCheck']){if(_0x75e6c5['every'](_0x257ae9=>_0xa9e350['some'](_0x1472ed=>_0x1472ed['containsRange'](_0x257ae9,!0x0))))return _0x949f83;}(!_0x949f83['attributes']||!_0x949f83['attributes']['skipNestingCheck'])&&(_0xa9e350['every'](_0x1fc0e6=>_0x75e6c5['some'](_0x10bf1d=>_0x10bf1d['containsRange'](_0x1fc0e6,!0x0)))&&_0x949f83['discard']());}const _0x10c242=_0xadd5e0(),_0x4d9208=_0x306a70['id'],_0xa087e1='deletion:'+_0x37925e,_0x29e1d8=this['_setSuggestionData']({'id':_0x10c242,'type':_0xa087e1,'createdAt':new Date(),'authorId':_0x4d9208,'attributes':_0x8bb860});for(const _0x1f7644 of _0x75e6c5)_0x1f7644['detach'](),_0x1f7644['isCollapsed']||'$graveyard'==_0x1f7644['root']['rootName']||this['_addSuggestionMarker'](_0xa087e1,_0x10c242,_0x4d9208,_0x1f7644,u['getMultiRangeId']());return _0x29e1d8;}['markAttributeChange'](_0x30b2fc,_0x3146ae,_0x56622c,_0x1d573d,_0xf6e2bc){if(_0x30b2fc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x347fb1=this['editor']['plugins']['get']('Users')['me']['id'],_0x1dbc7d=Array['from'](this['_suggestions']['values']())['filter'](_0x5e9720=>'attribute'==_0x5e9720['type']&&_0x5e9720['data']['key']==_0x3146ae&&_0x5e9720['isIntersectingWithRange'](_0x30b2fc));if('default'===this['_trackFormatChanges']){const _0x3cba06=this['_findSuggestions'](_0x30b2fc,'insertion')['filter'](({meta:_0x29754f})=>_0x29754f['isOwn']&&!_0x29754f['isInsideObject']&&!_0x29754f['isNextTo'])['map'](({suggestion:_0x5e3730})=>_0x5e3730);_0x1dbc7d['unshift'](..._0x3cba06);}const _0x17ef64=new Map([[_0x30b2fc,_0x56622c]]);for(const _0x340afc of _0x1dbc7d){const _0x148d0e='attribute'==_0x340afc['type']?_0x340afc['data']['oldValue']:void 0x0,_0x2267a3=_0x340afc['getFirstRange'](),_0x3a842d=Array['from'](_0x17ef64['keys']())['find'](_0x3863d1=>_0x3863d1['isIntersecting'](_0x2267a3));if(!_0x3a842d)continue;const _0x1b1f1f=_0x3a842d['getDifference'](_0x2267a3);this['_isBlockAttribute'](_0x3146ae)&&'insertion'==_0x340afc['type']&&0x0!=_0x1b1f1f['length']||(_0x17ef64['delete'](_0x3a842d),_0x1b1f1f['forEach'](_0x305453=>{_0x17ef64['set'](_0x305453,_0x56622c);}),'insertion'!=_0x340afc['type']&&_0x148d0e!=_0x1d573d&&_0x17ef64['set'](_0x3a842d['getIntersection'](_0x2267a3),_0x148d0e));}const _0x974741=[];for(const [_0x521c51,_0x555a89]of _0x17ef64){const _0x3c7b00=_0xadd5e0(),_0x18db66={'key':_0x3146ae,'oldValue':_0x555a89,'newValue':_0x1d573d};_0x3146ae['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':_0x3146ae});const _0x2d1120=('attribute:'+(_0x3146ae+'|'+Vt({'newValue':_0x1d573d})))['substring'](0x0,0x3c),_0x309f4f=this['_setSuggestionData']({'id':_0x3c7b00,'type':_0x2d1120,'data':_0x18db66,'createdAt':new Date(),'authorId':_0x347fb1,'attributes':_0xf6e2bc});_0x974741['push'](_0x309f4f),this['_addSuggestionMarker'](_0x2d1120,_0x3c7b00,_0x347fb1,_0x521c51);}return _0x974741;}['enableDefaultAttributesIntegration'](_0x3e6245){this['enableCommand'](_0x3e6245,(_0xcf07e3,..._0x273f8d)=>{this['_recordAttributeChanges'](()=>{_0xcf07e3(..._0x273f8d);});});}['registerBlockAttribute'](_0x1bb120){this['_blockAttributeKeys']['add'](_0x1bb120);}['registerInlineAttribute'](_0x55a9d8){this['_inlineAttributeKeys']['add'](_0x55a9d8);}['_getAttributeKey'](_0x5e0118){return'attribute'==_0x5e0118['type']?_0x5e0118['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x3ead42,_0x27b66f){const _0x2a8c8e=_0x3ead42['getFirstMarker']();this['_model']['change'](_0x2b0b58=>{_0x2b0b58['updateMarker'](_0x2a8c8e,{'range':_0x27b66f});});}['_addThreadToSuggestion'](_0x242871){const _0x59ffca=_0x242871['id'],_0x55c536=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x59ffca)||this['_commentsRepository']['addCommentThread']({'channelId':_0x55c536,'threadId':_0x59ffca,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2cd6e0=this['_commentsRepository']['getCommentThread'](_0x59ffca);_0x2cd6e0['unbind']('isRemovable'),_0x2cd6e0['isRemovable']=!0x1,_0x242871['commentThread']=_0x2cd6e0;}['_checkSuggestionCorrectness'](_0x4a62c3,_0x308043,_0x3dbdb0,_0x5ac15a){if(_0x4a62c3['type']!=_0x308043||_0x4a62c3['subType']!=_0x3dbdb0||_0x4a62c3['creator']['id']!=_0x5ac15a)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a8160('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x27a264,_0x1f9d58){const _0x26e6dc=_0x27a264['getFirstRange']();if(_0x1f9d58['isEqual'](_0x26e6dc))_0x27a264['removeMarkers']();else{if(_0x26e6dc['containsRange'](_0x1f9d58)){const _0x53cdf4=this['_model']['createPositionAt'](_0x1f9d58['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27a264,this['_model']['createRange'](_0x26e6dc['start'],_0x53cdf4));const _0x14cd12=_0xadd5e0(),_0xd92130=_0x27a264['creator']['id'],_0x40fb5a=_0x27a264['type']+':'+_0x27a264['subType'];this['_setSuggestionData']({'id':_0x14cd12,'type':_0x40fb5a,'createdAt':new Date(),'authorId':_0xd92130,'data':_0x27a264['data'],'attributes':_0x27a264['attributes']});const _0x2c576f=this['_model']['createPositionAt'](_0x1f9d58['end']['parent'],'after'),_0x11e8f4=this['_model']['createRange'](_0x2c576f,_0x26e6dc['end']);this['_addSuggestionMarker'](_0x40fb5a,_0x14cd12,_0xd92130,_0x11e8f4);}else{if(_0x26e6dc['containsPosition'](_0x1f9d58['start'])){const _0x39c85a=this['_model']['createPositionAt'](_0x1f9d58['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x27a264,this['_model']['createRange'](_0x26e6dc['start'],_0x39c85a));}else{const _0x58f0cb=this['_model']['createPositionAt'](_0x1f9d58['end']['parent'],'after');this['_setSuggestionRange'](_0x27a264,this['_model']['createRange'](_0x58f0cb,_0x26e6dc['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4db988){for(const {suggestion:_0xf191d3,meta:_0x59a4e2}of this['_findSuggestions'](_0x4db988,'insertion')){if(!_0x59a4e2['isOwn'])continue;const _0x463c70=_0xf191d3['getRanges']();for(const _0x266b17 of _0x463c70)if(!_0x4db988['getDifference'](_0x266b17)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x46cccd){const _0x43795c=this['editor']['plugins']['get']('Users')['getUser'](_0x46cccd);if(!_0x43795c)throw new _0x2a8160('track-changes-user-not-found',this);return _0x43795c;}['_getExternalAuthor'](_0x218f02){const _0x1eae8d=this['editor']['plugins']['get']('Users'),_0x5e2485=_0x3c0efd('external:'+_0x218f02),_0x3eba10=_0x1eae8d['getUser'](_0x5e2485);return _0x3eba10||_0x1eae8d['addUser']({'id':_0x5e2485,'name':_0x218f02});}['_createSuggestion'](_0xb8dbd1,_0x26a775,_0x54ff82,_0x683c4a,_0x388ebb){const _0x14778d=this['_getAuthorFromId'](_0x683c4a),_0x319ef5=this['_suggestionFactory']['buildSuggestion'](_0xb8dbd1,_0x26a775,_0x54ff82,_0x14778d,_0x388ebb,_0x1d8ae4=>{this['_updateSuggestionData'](_0x54ff82,{'attributes':_0x1d8ae4});const _0x53c72d=this['getSuggestion'](_0x54ff82);this['_joinWithAdjacentSuggestions'](new Set([_0x53c72d])),this['_refreshSuggestionsChain'](new Set([_0x53c72d]));});return this['listenTo'](_0x319ef5,'accept',()=>{this['_updateSuggestionData'](_0x54ff82,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x319ef5,'discard',()=>{this['_updateSuggestionData'](_0x54ff82,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x54ff82,_0x319ef5),this['_suggestionState']['set'](_0x319ef5,'notReady'),_0x319ef5;}['_splitMarkerName'](_0x618693){const _0x3eff9a=_0x618693['split'](':');return{'group':_0x3eff9a[0x0],'type':_0x3eff9a[0x1],'subType':_0x3eff9a['length']>=0x5?_0x3eff9a[0x2]:null,'id':_0x3eff9a['length']<0x5?_0x3eff9a[0x2]:_0x3eff9a[0x3],'authorId':_0x3eff9a['length']<0x5?_0x3eff9a[0x3]:_0x3eff9a[0x4],'markerCount':0x6==_0x3eff9a['length']?_0x3eff9a[0x5]:null};}['_breakSuggestionMarker'](_0x39db4d,_0x3beec3,_0x5ba35e){const _0x46aafe=_0x39db4d['getFirstRange'](),_0x4003f0=_0x46aafe['start'],_0x136f6e=_0x46aafe['end'];this['_setSuggestionRange'](_0x39db4d,this['_model']['createRange'](_0x4003f0,_0x3beec3));const _0x4149bf=_0xadd5e0(),_0x22569e=_0x39db4d['creator']['id'],_0x5efb8f=_0x39db4d['type']+(_0x39db4d['subType']?':'+_0x39db4d['subType']:'');this['_setSuggestionData']({'id':_0x4149bf,'type':_0x5efb8f,'createdAt':new Date(),'authorId':_0x22569e,'originalSuggestionId':_0x39db4d['id'],'attributes':_0x39db4d['attributes'],'data':_0x39db4d['data']});const _0x1c1499=this['_getAttributeKey'](_0x39db4d);('formatBlock'==_0x39db4d['type']||_0x1c1499&&this['_isBlockAttribute'](_0x1c1499))&&(_0x5ba35e=this['_model']['createPositionBefore'](_0x5ba35e['parent'])),this['_addSuggestionMarker'](_0x5efb8f,_0x4149bf,_0x22569e,this['_model']['createRange'](_0x5ba35e,_0x136f6e));}['_findSuggestions'](_0x83b158,_0x1f6382=null){const _0xbab33d=[],_0xfefa57=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x83b158)||(_0x83b158=[_0x83b158]);for(const _0x58d63a of this['getSuggestions']()){if(!_0x58d63a['isInContent'])continue;if(_0x1f6382&&_0x58d63a['type']!=_0x1f6382)continue;let _0x32a3e7=!0x1;for(const _0x228967 of _0x58d63a['getRanges']()){for(const _0x5d1823 of _0x83b158){const _0x5a574f=_0x5d1823['start']['isEqual'](_0x228967['end'])||_0x5d1823['end']['isEqual'](_0x228967['start']);if(_0x5a574f||_0x5d1823['getIntersection'](_0x228967)){const _0x1a545a=_0x5d1823['containsRange'](_0x228967)&&Rt(this['_model']['schema'],_0x228967['start'],_0x5d1823),_0x110c3e=_0x228967['containsRange'](_0x5d1823)&&Rt(this['_model']['schema'],_0x5d1823['start'],_0x228967);_0xbab33d['push']({'suggestion':_0x58d63a,'meta':{'isOwn':_0xfefa57==_0x58d63a['author'],'isNextTo':_0x5a574f,'isInsideObject':_0x1a545a,'containsRangeInObject':_0x110c3e}}),_0x32a3e7=!0x0;break;}}if(_0x32a3e7)break;}}return _0xbab33d;}['_addSuggestionMarker'](_0x23c5c3,_0x52a14f,_0x28dc85,_0x44efea,_0x54953c){this['_model']['change'](_0xd68116=>{let _0x24064e='suggestion:'+_0x23c5c3+':'+_0x52a14f+':'+_0x28dc85;_0x54953c&&(_0x24064e=_0x24064e+':'+_0x54953c),_0xd68116['addMarker'](_0x24064e,{'range':_0x44efea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x493586){const _0x1924c4=_0x493586['previous'],_0x1e0da1=_0x493586['next'];_0x493586['previous']=null,_0x493586['next']=null,null!=_0x1924c4&&_0x1924c4['next']==_0x493586&&(_0x1924c4['next']=_0x1e0da1),null!=_0x1e0da1&&_0x1e0da1['previous']==_0x493586&&(_0x1e0da1['previous']=_0x1924c4),'ready'==this['_suggestionState']['get'](_0x493586)&&(this['_suggestionState']['set'](_0x493586,'removed'),this['fire']('suggestionUnloaded',_0x493586,_0x1924c4,_0x1e0da1));}['_setSuggestionData'](_0x33e4c4){const _0x30ff36=_0x33e4c4['id'],_0x1522d8=this['addSuggestionData'](_0x33e4c4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1dd613=this['editor']['plugins']['get']('PendingActions'),_0x18210b=_0x1522d8['hasComments'],_0x2f5af4=_0x1522d8['subType']?_0x1522d8['type']+':'+_0x1522d8['subType']:_0x1522d8['type'],_0x470b51=this['editor']['locale'],_0x19908c=_0x1dd613['add'](o(_0x470b51,'PENDING_ACTION_SUGGESTION')),_0x347812={'id':_0x30ff36,'type':_0x2f5af4,'hasComments':_0x18210b,'data':_0x33e4c4['data']||null,'originalSuggestionId':_0x33e4c4['originalSuggestionId']||null,'attributes':_0x1522d8['attributes']};this['_adapter']['addSuggestion'](_0x347812)['then'](_0x73f784=>{_0x1522d8['_saved']=!0x0,_0x1dd613['remove'](_0x19908c),_0x73f784&&_0x73f784['createdAt']&&(this['_suggestions']['get'](_0x30ff36)['createdAt']=_0x73f784['createdAt']);})['catch'](_0x4e08ce=>{throw _0x10fa15('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1522d8['discard']();}),_0x1522d8['stopListening'](),this['_suggestions']['delete'](_0x1522d8['id']),this['_suggestionState']['delete'](_0x1522d8),_0x4e08ce;});}return _0x1522d8;}['_isBlockAttribute'](_0x1e3678){return this['_blockAttributeKeys']['has'](_0x1e3678);}['_updateSuggestionData'](_0x212845,_0x2391ec){const _0x1b1fa3=this['editor']['plugins']['get']('PendingActions'),_0x2cb692=this['getSuggestion'](_0x212845);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x2cb692['_saved']){const _0x4038b4=_0x1b1fa3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x212845,_0x2391ec)['then'](()=>{_0x1b1fa3['remove'](_0x4038b4);});}else _0x2cb692['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x212845,_0x2391ec);});}}['_getSuggestionData'](_0x3adadf){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a8160('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3adadf);}['_handleNewSuggestionMarker'](_0x5ed889){const {id:_0x2e2828,type:_0x5b9ae9,subType:_0x321b44,authorId:_0x5ceb66}=this['_splitMarkerName'](_0x5ed889),_0x17c1de=this['_suggestions']['get'](_0x2e2828)||this['_createSuggestion'](_0x5b9ae9,_0x321b44,_0x2e2828,_0x5ceb66,{});switch(this['_checkSuggestionCorrectness'](_0x17c1de,_0x5b9ae9,_0x321b44,_0x5ceb66),this['_suggestionState']['get'](_0x17c1de)){case'notReady':this['_getSuggestionData'](_0x2e2828)['then'](_0x5c2d23=>{let _0xf1653c=Promise['resolve']();_0x5c2d23['hasComments']&&(_0xf1653c=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2e2828})),_0xf1653c['then'](()=>{this['addSuggestionData'](_0x5c2d23)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x17c1de,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2e2828,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x17c1de,'ready'),this['fire']('suggestionLoaded',_0x17c1de);break;case'ready':this['fire']('suggestionChanged',_0x17c1de);}return _0x17c1de['addMarkerName'](_0x5ed889),_0x17c1de;}['_refreshSuggestionsChain'](_0x474fe2){const _0x5bd797=Array['from'](_0x474fe2),_0x14acaa=_0x5bd797['filter'](_0x1b031a=>'attribute'==_0x1b031a['type']);this['_refreshAttributeSuggestionsChain'](_0x14acaa);const _0xac3c70=_0x5bd797['filter'](_0x5c56c2=>!_0x5c56c2['isMultiRange']&&'attribute'!=_0x5c56c2['type']),_0x1d1321=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e3d9b=>!_0x3e3d9b['isMultiRange']&&'attribute'!=_0x3e3d9b['type']),_0x4fc056=_0x1d1321['filter'](_0x45e5ff=>!_0x474fe2['has'](_0x45e5ff)),_0x5e9b23=new Map(_0x1d1321['map'](_0x559660=>[_0x559660,this['_suggestionFactory']['getSuggestionCallback'](_0x559660['type'],_0x559660['subType'],'chain')])),_0x192161=new Map(_0x1d1321['map'](_0x40c5c3=>[_0x40c5c3,_0x40c5c3['getFirstRange']()])),_0x1f8869=new Set(),_0x2f3f02=new Set();for(let _0x306339=0x0;_0x306339<_0xac3c70['length'];_0x306339++)_0xf96904(_0xac3c70[_0x306339],_0xac3c70,_0x306339+0x1);for(let _0x52c42c=0x0;_0x52c42c<_0xac3c70['length'];_0x52c42c++)_0xf96904(_0xac3c70[_0x52c42c],_0x4fc056,0x0);const _0x561c48=new Set();for(let _0x18dedc=0x0;_0x18dedc<_0xac3c70['length'];_0x18dedc++){const _0x2ed614=_0xac3c70[_0x18dedc];!_0x2f3f02['has'](_0x2ed614)&&_0x2ed614['previous']&&(_0x561c48['add'](_0x2ed614['previous']),_0x2ed614['previous']['next']===_0x2ed614&&(_0x2ed614['previous']['next']=null),_0x2ed614['previous']=null),!_0x1f8869['has'](_0x2ed614)&&_0x2ed614['next']&&(_0x561c48['add'](_0x2ed614['next']),_0x2ed614['next']['previous']===_0x2ed614&&(_0x2ed614['next']['previous']=null),_0x2ed614['next']=null);}function _0xf96904(_0x197646,_0x44fb8f,_0x3e3deb){for(let _0x51065a=_0x3e3deb;_0x51065a<_0x44fb8f['length'];_0x51065a++){const _0x25a78b=_0x497f71(_0x197646,_0x44fb8f[_0x51065a]);_0x25a78b&&(_0x25a78b[0x0]['next']=_0x25a78b[0x1],_0x25a78b[0x1]['previous']=_0x25a78b[0x0],_0x1f8869['add'](_0x25a78b[0x0]),_0x2f3f02['add'](_0x25a78b[0x1]));}}function _0x497f71(_0x362567,_0x57eae4){if(_0x362567['author']['id']!==_0x57eae4['author']['id'])return null;const _0x1e4ac7=_0x5e9b23['get'](_0x362567)(_0x362567,_0x57eae4,_0x192161['get'](_0x362567),_0x192161['get'](_0x57eae4));if(!_0x1e4ac7)return null;return _0x5e9b23['get'](_0x57eae4)(_0x362567,_0x57eae4,_0x192161['get'](_0x362567),_0x192161['get'](_0x57eae4))?_0x1e4ac7[0x1]['commentThread']&&_0x1e4ac7[0x1]['commentThread']['length']?null:_0x1e4ac7:null;}_0x561c48['size']&&this['_refreshSuggestionsChain'](_0x561c48);}['_refreshAttributeSuggestionsChain'](_0x56508b){if(0x0==_0x56508b['length'])return;const _0x2a503d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445eb4=>'attribute'==_0x445eb4['type']&&_0x445eb4['_isDataLoaded']),_0x32a647=[],_0x58f3e6=new Map();for(const _0x228401 of _0x2a503d){const _0x98b6d=_0x3c0efd(_0x228401['attributes']);_0x58f3e6['has'](_0x98b6d)||(_0x58f3e6['set'](_0x98b6d,_0x32a647['length']),_0x32a647['push']([]));const _0xaf8cf9=_0x58f3e6['get'](_0x98b6d);_0x32a647[_0xaf8cf9]['push'](_0x228401);}!(function(){_0x32a647['sort']((_0x50e4c9,_0xa7064c)=>{const _0x251455=_0x50e4c9[0x0]['createdAt'],_0x2aff3e=_0xa7064c[0x0]['createdAt'];return _0x251455==_0x2aff3e?_0x50e4c9[0x0]['attributes']['groupId']<_0xa7064c[0x0]['attributes']['groupId']?-0x1:0x1:_0x251455<_0x2aff3e?-0x1:0x1;});for(const _0x1b7584 of _0x32a647)_0x1b7584['sort']((_0x32389d,_0x56c947)=>_0x32389d['id']<_0x56c947['id']?-0x1:0x1);}());for(let _0x1e9ecb=0x0;_0x1e9ecb<_0x32a647['length'];_0x1e9ecb++){if(0x0==_0x32a647[_0x1e9ecb]['length'])continue;const _0x2f881c=[];for(let _0x2e4187=_0x1e9ecb+0x1;_0x2e4187<_0x32a647['length'];_0x2e4187++)0x0!=_0x32a647[_0x2e4187]['length']&&_0x4aa7f7(_0x32a647[_0x1e9ecb],_0x32a647[_0x2e4187])&&_0x2f881c['push'](_0x2e4187);for(const _0x2fd852 of _0x2f881c)_0x32a647[_0x1e9ecb]=_0x32a647[_0x1e9ecb]['concat'](_0x32a647[_0x2fd852]),_0x32a647[_0x2fd852]=[];}for(const _0x26fa91 of _0x32a647)for(let _0x24b5fc=0x0;_0x24b5fc<_0x26fa91['length'];_0x24b5fc++)_0x26fa91[_0x24b5fc]['next']=_0x26fa91[_0x24b5fc+0x1]||null;for(const _0x4d4a27 of _0x32a647)for(let _0x1aaaed=0x0;_0x1aaaed<_0x4d4a27['length'];_0x1aaaed++)_0x4d4a27[_0x1aaaed]['previous']=_0x4d4a27[_0x1aaaed-0x1]||null;function _0x4aa7f7(_0x514ff2,_0x21195c){if(_0x514ff2[0x0]['attributes']['groupId']!==_0x21195c[0x0]['attributes']['groupId']&&_0x514ff2[0x0]['author']!==_0x21195c[0x0]['author'])return!0x1;if(!function(_0x221959,_0x486fe7){if(!_0x221959['hasComments']&&!_0x486fe7['hasComments'])return!0x0;if(_0x221959['hasComments']&&_0x486fe7['hasComments'])return!0x1;if(_0x221959['hasComments']&&_0x486fe7['createdAt']<_0x221959['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x486fe7['hasComments']&&_0x221959['createdAt']<_0x486fe7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x514ff2[0x0],_0x21195c[0x0]))return!0x1;const _0x1a1d6b=Bt(_0x514ff2[0x0]['attributes'],'groupId'),_0x5f2070=Bt(_0x21195c[0x0]['attributes'],'groupId');if(!_0x1c0d8b(_0x1a1d6b,_0x5f2070))return!0x1;return!!_0x514ff2['every'](_0xa390a8=>_0x21195c['some'](_0x4d2829=>_0xa390a8['getFirstRange']()['isEqual'](_0x4d2829['getFirstRange']())))&&_0x21195c['every'](_0x643169=>_0x514ff2['some'](_0x5dfffc=>_0x643169['getFirstRange']()['isEqual'](_0x5dfffc['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1af477){const _0x2aec14=Array['from'](_0x1af477),_0x37f529=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57545a=_0x37f529['filter'](_0x2219ab=>!_0x1af477['has'](_0x2219ab)),_0x55527e=new Map(_0x2aec14['map'](_0x2ea0fa=>[_0x2ea0fa,this['_suggestionFactory']['getSuggestionCallback'](_0x2ea0fa['type'],_0x2ea0fa['subType'],'join')])),_0x2135dd=new Map(_0x37f529['map'](_0x56d003=>[_0x56d003,_0x56d003['getRanges']()]));for(let _0xccb444=0x0;_0xccb444<_0x2aec14['length'];_0xccb444++){if(_0x42df60(this,_0x2aec14[_0xccb444],_0x2aec14,_0xccb444+0x1))return!0x0;}for(let _0x53a29f=0x0;_0x53a29f<_0x2aec14['length'];_0x53a29f++){if(_0x42df60(this,_0x2aec14[_0x53a29f],_0x57545a,0x0))return!0x0;}return!0x1;function _0x42df60(_0x5ac371,_0x455f8c,_0xec3737,_0x23ff4b){for(let _0xb0a4a6=_0x23ff4b;_0xb0a4a6<_0xec3737['length'];_0xb0a4a6++){const _0x46b9c4=_0xec3737[_0xb0a4a6];if(_0x46b9c4['type']!==_0x455f8c['type']||_0x46b9c4['author']['id']!==_0x455f8c['author']['id']||_0x46b9c4['subType']!==_0x455f8c['subType'])continue;if(!Pt(_0x455f8c,_0x46b9c4,['groupId']))continue;if('attribute'==_0x455f8c['type']&&_0x455f8c['data']['oldValue']!=_0x46b9c4['data']['oldValue'])continue;if('attribute'==_0x455f8c['type']&&_0x5ac371['_isBlockAttribute'](_0x455f8c['data']['key']))continue;if('formatBlock'==_0x455f8c['type']){const _0x293d1e=_0x5ac371['editor']['model'],_0x566bc6=_0x455f8c['getContainedElement']();if(_0x566bc6&&(_0x293d1e['schema']['isObject'](_0x566bc6)||_0x293d1e['schema']['isLimit'](_0x566bc6)))continue;}const _0x286557=_0x55527e['get'](_0x455f8c),_0x478cfd=_0x2135dd['get'](_0x455f8c),_0x41a9f1=_0x2135dd['get'](_0x46b9c4),_0x6fc436=_0x455f8c['commentThread']&&_0x455f8c['commentThread']['length'],_0x3eb375=_0x46b9c4['commentThread']&&_0x46b9c4['commentThread']['length'];if(!_0x6fc436&&_0x286557(_0x41a9f1,_0x478cfd))return _0x5ac371['_joinSuggestions'](_0x46b9c4,_0x455f8c),_0x2135dd['delete'](_0x455f8c),!0x0;if(!_0x3eb375&&_0x286557(_0x478cfd,_0x41a9f1))return _0x5ac371['_joinSuggestions'](_0x455f8c,_0x46b9c4),_0x2135dd['delete'](_0x46b9c4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x359c6c,_0x4f1c35){if(_0x359c6c['isMultiRange']){for(const _0x2e69fa of _0x4f1c35['getRanges']())_0x359c6c['addRange'](_0x2e69fa);}else{const _0xc4b091=_0x4f1c35['getFirstRange']()['end'];this['_setSuggestionRange'](_0x359c6c,this['_model']['createRange'](_0x359c6c['getFirstRange']()['start'],_0xc4b091));}_0x4f1c35['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5d9fcb,_0x9a4169){const _0x3b6e53=_0x5d9fcb['startsWith']('format')||_0x5d9fcb['startsWith']('attribute')?'FORMATTING':_0x5d9fcb['toUpperCase']();return o(this['editor']['locale'],_0x9a4169+'_'+_0x3b6e53+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x380820=this['editor'];if(!_0x380820['ui'])return;const {ariaLiveAnnouncer:_0x24f8ec}=_0x380820['ui'];_0x2bc4c8(this['_model'],({left:_0x2bd016,entered:_0x30b371})=>{for(const _0xcf9e80 of _0x2bd016){const {group:_0x47c4df,type:_0x1e6be6}=this['_splitMarkerName'](_0xcf9e80['name']);if('suggestion'===_0x47c4df){_0x24f8ec['announce'](this['_getMarkerAnnouncementText'](_0x1e6be6,'LEAVE'));break;}}for(const _0x2c8c89 of _0x30b371){const {group:_0x2282e1,type:_0x4e29bd}=this['_splitMarkerName'](_0x2c8c89['name']);if('suggestion'===_0x2282e1){_0x24f8ec['announce'](this['_getMarkerAnnouncementText'](_0x4e29bd,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18e8fd){if(this['_recordAttributeSuggestions'])return!0x1;const _0x24b428=this['editor'],_0x55c53d=_0x24b428['model']['document']['differ']['getChanges']();if(0x0==_0x55c53d['length'])return!0x1;const _0x3bb93f=[],_0x616ad2=_0x55c53d['filter'](_0x3fbf7e=>'attribute'==_0x3fbf7e['type']),_0x731996=_0x55c53d['filter'](_0x1d0361=>'insert'==_0x1d0361['type']&&'$text'!=_0x1d0361['name']),_0x2c716d=_0x55c53d['filter'](_0xd2f46b=>'remove'==_0xd2f46b['type']&&'$text'!=_0xd2f46b['name']);for(const _0x13dd53 of _0x616ad2)_0x3bb93f['push']({'key':_0x13dd53['attributeKey'],'newValue':_0x13dd53['attributeNewValue'],'oldValue':_0x13dd53['attributeOldValue'],'range':Ot(_0x13dd53['range'],_0x24b428['model'])});for(const _0x55c486 of _0x731996){const _0x7c18df=_0x2c716d['find'](_0x6654eb=>_0x6654eb['position']['isEqual'](_0x55c486['position']));_0x7c18df&&_0x3bb93f['push']({'key':m,'newValue':_0x55c486['name'],'oldValue':_0x7c18df['name'],'range':_0x24b428['model']['createRangeOn'](_0x55c486['position']['nodeAfter'])});}return 0x0!=_0x3bb93f['length']&&this['_reduceExistingSuggestions'](_0x18e8fd,_0x3bb93f);}['_processAttributeSuggestions'](_0x465b44){let _0x2ecf8d=!0x1;const _0x2c240c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x47ed5f=>_0x47ed5f['data']['newRange']&&_0x47ed5f['name']['startsWith']('suggestion:attribute:'));for(const _0x2f8fad of _0x2c240c){const {subType:_0x54c728,id:_0x2916a1}=this['_splitMarkerName'](_0x2f8fad['name']),_0x5dc67b=_0x54c728['split']('|')[0x0];for(const _0x2b20a3 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2b20a3['id']!=_0x2916a1&&'attribute'==_0x2b20a3['type']&&_0x2b20a3['data']&&_0x2b20a3['data']['key']==_0x5dc67b&&_0x2b20a3['getFirstRange']()['isIntersecting'](_0x2f8fad['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2b20a3,_0x2f8fad['data']['newRange'],_0x465b44),_0x2ecf8d=!0x0);}return _0x2ecf8d;}['_recordAttributeChanges'](_0x7974b5){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x7974b5();}['_isRegisteredAttribute'](_0x87c269){const _0x395e53=this['_isBlockAttribute'](_0x87c269),_0x21fb26=this['_inlineAttributeKeys']['has'](_0x87c269);return _0x395e53||_0x21fb26;}['_reduceExistingSuggestions'](_0x686d73,_0x5f0bf9){if(0x0==_0x5f0bf9['length'])return!0x1;let _0x1d502d=!0x1;for(const _0x4b1e74 of _0x5f0bf9){const _0x1661d3=this['_findSuggestions'](_0x4b1e74['range'],'attribute')['filter'](_0x2b839c=>!_0x2b839c['meta']['isNextTo'])['map'](_0x58f44c=>_0x58f44c['suggestion']),_0x1e7915=_0x3c0efd({'newValue':_0x4b1e74['newValue']});_0x1661d3['filter'](_0x50e849=>{const [_0x5bcdc1,_0x1cf39b]=_0x50e849['subType']['split']('|');return _0x5bcdc1==_0x4b1e74['key']&&_0x1cf39b!=_0x1e7915;})['forEach'](_0x462c5=>{this['_reduceSuggestionAttributeRange'](_0x462c5,_0x4b1e74['range'],_0x686d73),_0x1d502d=!0x0;});}return _0x1d502d;}['_reduceSuggestionAttributeRange'](_0x267a23,_0x14c706,_0x3e8b03){const _0x4fb0f9=_0x267a23['getFirstRange']()['getDifference'](_0x14c706);0x0!==_0x4fb0f9['length']?0x1!==_0x4fb0f9['length']?this['_breakSuggestionMarker'](_0x267a23,_0x14c706['start'],_0x14c706['end']):this['_setSuggestionRange'](_0x267a23,_0x4fb0f9[0x0]):_0x3e8b03['removeMarker'](_0x267a23['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x1d2197){this['_editor']=_0x1d2197,this['_model']=_0x1d2197['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2e2dcf,_0x2029e8,_0x4e3441,_0x11eab5,_0x419403,_0x4ef26f){return new u(this['_model'],{'type':_0x2e2dcf,'subType':_0x2029e8,'id':_0x4e3441,'author':_0x11eab5,'creator':_0x11eab5,'attributes':_0x419403,'onAttributesChange':_0x4ef26f,'onAccept':(..._0xbe4f3e)=>this['getSuggestionCallback'](_0x2e2dcf,_0x2029e8,'accept')(..._0xbe4f3e),'onDiscard':(..._0x52996c)=>this['getSuggestionCallback'](_0x2e2dcf,_0x2029e8,'discard')(..._0x52996c)});}['registerCustomCallback'](_0x4825fd,_0x417553,_0x2029ea,_0x2691a4){const _0x2d5113=_0x4825fd+':'+_0x417553+':'+_0x2029ea;this['_customCallbacks']['set'](_0x2d5113,_0x2691a4);}['getSuggestionCallback'](_0x2bcece,_0x7dce83,_0x255eb9){const _0x4124ca=_0x2bcece+':'+_0x7dce83+':'+_0x255eb9;return this['_customCallbacks']['get'](_0x4124ca)||this['_defaultCallbacks']['get'](_0x2bcece+':'+_0x255eb9);}['_registerDefaultCallbacks'](){const _0x154db7=()=>!0x1,_0x1d490c=_0x3079a1=>{_0x3079a1['sort']((_0x2676d1,_0x181302)=>_0x2676d1['start']['isBefore'](_0x181302['start'])?0x1:-0x1),this['_model']['change'](_0x591302=>{for(const _0xdcabf6 of _0x3079a1){let _0xa91915;_0xa91915=_0xdcabf6['end']['isAtEnd']&&_0xdcabf6['end']['parent']==_0xdcabf6['start']['nodeAfter']?_0x591302['createSelection'](_0xdcabf6['start']['nodeAfter'],'on'):_0x591302['createSelection'](_0xdcabf6),this['_model']['deleteContent'](_0xa91915,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x178a70=(_0x115327,_0x183040)=>{_0x183040&&this['_model']['change'](_0x3e0ab=>{const {commandName:_0x1533e6,commandParams:_0x68f34f=[]}=_0x183040,_0x3bbf0b=_0x115327['map'](_0x4abdaf=>(Tt(_0x4abdaf)&&(_0x4abdaf=this['_model']['createRange'](_0x4abdaf['end'])),_0x4abdaf))['filter'](_0x4164c9=>'$graveyard'!==_0x4164c9['root']['rootName']);if(_0x3bbf0b['length']<0x1)return;const _0x2f9cc7=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4c8122=>_0x46236['fromRange'](_0x4c8122));_0x3e0ab['setSelection'](_0x3bbf0b);for(const _0x3c4ecf of this['_editor']['commands']['commands']())_0x3c4ecf['refresh']();_0x68f34f['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1533e6,..._0x68f34f);const _0x42a0b8=_0x2f9cc7['filter'](_0x404ece=>'$graveyard'!=_0x404ece['root']['rootName']);_0x42a0b8['length']>0x0&&_0x3e0ab['setSelection'](_0x42a0b8);for(const _0x58eb4b of _0x2f9cc7)_0x58eb4b['detach']();});},_0x312170=(_0x2e5a49,_0x4acf4a)=>0x1==_0x2e5a49['length']&&0x1==_0x4acf4a['length']&&_0x2e5a49[0x0]['end']['isEqual'](_0x4acf4a[0x0]['start']),_0x2eb916=(_0x1825d1,_0xc7c6f9,_0x20991a,_0x2c2934)=>Ft(_0x1825d1,_0xc7c6f9,_0x20991a,_0x2c2934,this['_model'])?[_0x1825d1,_0xc7c6f9]:Ft(_0xc7c6f9,_0x1825d1,_0x2c2934,_0x20991a,this['_model'])?[_0xc7c6f9,_0x1825d1]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x154db7),this['_defaultCallbacks']['set']('insertion:discard',_0x1d490c),this['_defaultCallbacks']['set']('insertion:join',_0x312170),this['_defaultCallbacks']['set']('insertion:chain',_0x2eb916),this['_defaultCallbacks']['set']('deletion:accept',_0x1d490c),this['_defaultCallbacks']['set']('deletion:discard',_0x154db7),this['_defaultCallbacks']['set']('deletion:join',_0x312170),this['_defaultCallbacks']['set']('deletion:chain',_0x2eb916),this['_defaultCallbacks']['set']('formatInline:accept',_0x178a70),this['_defaultCallbacks']['set']('formatInline:discard',_0x154db7),this['_defaultCallbacks']['set']('formatInline:join',_0x312170),this['_defaultCallbacks']['set']('formatInline:chain',_0x154db7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x178a70),this['_defaultCallbacks']['set']('formatBlock:discard',_0x154db7),this['_defaultCallbacks']['set']('formatBlock:join',_0x312170),this['_defaultCallbacks']['set']('formatBlock:chain',_0x154db7),this['_defaultCallbacks']['set']('attribute:accept',_0x154db7),this['_defaultCallbacks']['set']('attribute:discard',(_0x596e66,_0x1fa48f)=>{if(!_0x1fa48f)return;const _0x7f4995=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x22f30f=>{if(_0x1fa48f['key']==m)for(const _0x157cfb of _0x596e66){const _0x26c3f3=_0x157cfb['start']['nodeAfter'],_0x86416e=_0x1fa48f['oldValue'];_0x22f30f['rename'](_0x26c3f3,_0x86416e);}else{if(_0x7f4995['_isBlockAttribute'](_0x1fa48f['key'])){for(const _0x5b052f of _0x596e66)void 0x0!==_0x1fa48f['oldValue']?_0x22f30f['setAttribute'](_0x1fa48f['key'],_0x1fa48f['oldValue'],_0x5b052f['start']['nodeAfter']):_0x22f30f['removeAttribute'](_0x1fa48f['key'],_0x5b052f['start']['nodeAfter']);}else{for(const _0x570a63 of _0x596e66)_0x1fa48f['oldValue']?_0x22f30f['setAttribute'](_0x1fa48f['key'],_0x1fa48f['oldValue'],_0x570a63):_0x22f30f['removeAttribute'](_0x1fa48f['key'],_0x570a63);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x312170);}}function Rt(_0x172030,_0x2130fd,_0x49c131){for(const _0x34213c of _0x2130fd['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x34213c['root']==_0x34213c)return!0x1;if(!_0x49c131['containsItem'](_0x34213c))return!0x1;if(_0x172030['isObject'](_0x34213c)||_0x172030['isLimit'](_0x34213c))return!0x0;}return!0x1;}function Tt(_0x758b5c){return _0x758b5c['end']['parent']==_0x758b5c['start']['nodeAfter']&&_0x758b5c['end']['isAtStart'];}function Et(_0x242d7c,_0x283cb2,_0xe1d233,_0x2304b3){const _0x11314a=_0x1c6787=>!_0x1c6787['item']['is']('$textProxy')&&!_0x2304b3['isObject'](_0x1c6787['item']),_0xc6b0cc=_0x242d7c['start']['getLastMatchingPosition'](_0x11314a),_0xf359d1=_0x242d7c['end']['getLastMatchingPosition'](_0x11314a,{'direction':'backward'});return(!_0x242d7c['start']['isEqual'](_0xc6b0cc)||!_0x242d7c['end']['isEqual'](_0xf359d1))&&(_0xc6b0cc['isBefore'](_0xf359d1)?_0xe1d233['updateMarker'](_0x283cb2,{'range':_0xe1d233['createRange'](_0xc6b0cc,_0xf359d1)}):_0xe1d233['removeMarker'](_0x283cb2),!0x0);}function Vt(_0x32233d){return _0x3c0efd(_0x32233d);}function Ut(_0x44b6b5){const _0x658d28=_0x44b6b5['start']['nodeAfter'];return _0x658d28&&_0x658d28['is']('element');}function Ot(_0x16467a,_0x47bd55){return null==_0x16467a['end']['nodeBefore']&&_0x16467a['end']['parent']==_0x16467a['start']['nodeAfter']?Gt(_0x16467a['start']['nodeAfter'],_0x47bd55):_0x16467a;}function Gt(_0x4c97d8,_0x1d081e){const _0x42a160=_0x1d081e['schema']['isObject'](_0x4c97d8)||_0x1d081e['schema']['isSelectable'](_0x4c97d8);return _0x1d081e['createRange'](_0x1d081e['createPositionAt'](_0x4c97d8,'before'),_0x42a160?_0x1d081e['createPositionAfter'](_0x4c97d8):_0x1d081e['createPositionAt'](_0x4c97d8,'end'));}function Ft(_0x2d19e2,_0x3bb0aa,_0x1d4882,_0x514352,_0x27154f){if(!Pt(_0x2d19e2,_0x3bb0aa))return!0x1;if(_0x1d4882['end']['isEqual'](_0x514352['start']))return!0x0;if(_0x2d19e2['type']!=_0x3bb0aa['type'])return!0x1;if(!_0x1d4882['end']['isTouching'](_0x514352['start']))return!0x1;const _0x5725a0=_0x27154f['createRange'](_0x1d4882['end'],_0x514352['start'])['getWalker']();for(const _0x49eb9f of _0x5725a0)if(['elementStart','elementEnd']['includes'](_0x49eb9f['type'])&&_0x27154f['schema']['isLimit'](_0x49eb9f['item']))return!0x1;return!0x0;}function Pt(_0x5aec26,_0xed91fc,_0xfd2283=[]){return!(!_0x5aec26['_isDataLoaded']||!_0xed91fc['_isDataLoaded'])&&_0x1c0d8b(Bt(_0x5aec26['attributes'],_0xfd2283),Bt(_0xed91fc['attributes'],_0xfd2283));}function Lt(_0x48aa2c,_0x3cdd96){const _0x379d7b=Ht(_0x48aa2c['attributes']),_0x169fc8=Ht(_0x3cdd96);if(!_0x48aa2c['_isDataLoaded'])return!0x1;for(const _0x1b91bf of Object['keys'](_0x169fc8))if(!_0x1c0d8b(_0x379d7b[_0x1b91bf],_0x169fc8[_0x1b91bf]))return!0x1;return!0x0;}function Ht(_0x1871f2){const _0x19a1f8=Object['assign']({},_0x1871f2);return delete _0x19a1f8['skipNestingCheck'],delete _0x19a1f8['tablePasteChainId'],_0x19a1f8;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x169485(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0xa435c4,_0x242921,_0xa73f33,_0x283794){super(),this['model']=_0x242921,this['view']=_0xa73f33,this['commentThreadController']=_0x283794,this['_editor']=_0xa435c4,this['_acceptCommand']=_0xa435c4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0xa435c4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x3a76ab,_0x51d66d)=>_0x3a76ab||_0x51d66d),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x18127c=>_0x18127c&&this['_editor']['model']['canEditAt'](_0x242921['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x287459=>_0x287459&&this['_editor']['model']['canEditAt'](_0x242921['getRanges']())),this['_pendingAction']=null,_0xa73f33['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xa73f33,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xa73f33,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xa73f33,'change:isDirty',()=>{_0xa73f33['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 _0x411b81=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x411b81);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x237910{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x52513c,_0x5d65d4,_0x18d74f,_0x2af436){super(_0x52513c),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5d65d4['authoredAt']),this['bind']('authoredAt')['to'](_0x5d65d4),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5d65d4,this['_localUser']=_0x18d74f,this['_config']=_0x2af436,_0x2af436['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x39b8fb}=this['_config'];this['commentsListView']=new _0x39b8fb(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',_0x3d73ce=>_0x3d73ce+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1322fa,_0x3f015e)=>_0x1322fa||!!_0x3f015e);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2246b7}=this['_config'],_0xbc6ab3=new _0x2246b7(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x2216e8=_0xbc6ab3['commentInputView'];return _0xbc6ab3['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x2216e8,'value',(_0x5e1d9e,_0x3259fb,_0x483bbd)=>!!_0x483bbd||_0x5e1d9e&&!_0x3259fb),_0x2216e8['on']('submit',(_0x38d653,_0x149e08)=>{this['fire']('addComment',_0x149e08),_0x2216e8['editor']['setData']('');}),_0x2216e8['on']('cancel',()=>this['focus']()),_0x2216e8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xbc6ab3;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5cc795,_0x5ab98f,_0xe8893,_0x454382){super(_0x5cc795,_0x5ab98f,_0xe8893,_0x454382),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x21af5d=>_0x21af5d&&_0x21af5d[0x0]?_0x21af5d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3c1d71,_0x5f4577)=>{let _0x5c62b6='';for(const _0x440c26 of _0x3c1d71)_0x5c62b6+='<p>'+ds(_0x440c26['content'],_0x440c26['color'])+'</p>';return _0x5f4577?_0x5c62b6:_0x205197(_0x5c62b6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5cc795,'Accept\x20suggestion'),_0x3fd01f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5cc795,'Discard\x20suggestion'),_0x3fd01f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5359a0(_0x5cc795,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x16e19c=this['bindTemplate'],_0x5e0133=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x16e19c['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x16e19c['to']('authoredAt',_0x9de420=>this['_config']['formatDateTime'](_0x9de420))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x5e0133['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x238e2f={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x16e19c['if']('isActive','ck-suggestion-wrapper--active'),_0x16e19c['to']('type',_0x47e26c=>'ck-suggestion-'+_0x47e26c),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x5e0133}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x238e2f['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x238e2f;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x286086,_0x46989e,_0x1a6ed9)=>{this['_descriptionElement']['innerHTML']=_0x1a6ed9;});}['_createButton'](_0x5708c0,_0x5128b9,_0x2cf41a,_0x32319f,_0x265474){const _0x106a97=new _0x25df2e(this['locale']);return _0x106a97['set']({'label':_0x5708c0,'icon':_0x5128b9,'tooltip':!0x0,'tooltipPosition':_0x265474}),_0x106a97['extendTemplate']({'attributes':{'class':_0x2cf41a}}),_0x106a97['on']('execute',()=>{this['fire'](_0x32319f,this['_model']['id']);}),_0x106a97;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x218d4e,_0x26f873){let _0x258605='';return _0x258605+=_0x218d4e['split']('*')['map']((_0x134d9c,_0x578be5)=>_0x578be5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x134d9c)+'</span>':us(_0x134d9c))['join'](''),_0x26f873&&(_0x258605+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26f873['value']+'\x22\x20title=\x22'+_0x26f873['title']+'\x22></span>'),_0x258605;}function us(_0x2ee18e){const _0x3f925d=document['createElement']('span');return _0x3f925d['innerText']=_0x2ee18e,_0x3f925d['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x56b6e2{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4b85f6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x53fe01){super(_0x53fe01),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x30c775=this['editor']['config'];_0x30c775['define']('trackChanges.SuggestionThreadView',ne),_0x30c775['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x30c775['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x49b5f6,_0x461036){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x449080,_0x423bea]of this['_handleControllerBuffer']){const _0x6dbb2d=this['_suggestionToController']['has'](_0x449080);_0x6dbb2d||_0x423bea?_0x6dbb2d&&_0x423bea&&this['_destroyController'](_0x449080):this['_initializeController'](_0x449080);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x49b5f6,_0x461036);}['init'](){const _0x24819b=this['editor'],_0x1cf567=_0x24819b['plugins']['get']('TrackChangesEditing'),_0x3b3bd1=_0x24819b['plugins']['get']('Annotations'),_0x47fabd=_0x24819b['plugins']['get']('EditorAnnotations'),_0x4bc2e7=_0x24819b['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x47fabd['addSourceCollector'](()=>{const _0x55973c=[];for(const [_0x166659,_0x121ba5]of Array['from'](this['_suggestionToController'])){const _0x15cf2d=_0x166659['getAllAdjacentSuggestions'](),_0x511285=[];for(const _0x2cebc8 of _0x15cf2d){if(!_0x2cebc8['isInContent'])continue;if(_0x2cebc8['isMultiRange']){_0x511285['push'](..._0x2cebc8['getRanges']());continue;}const _0x41fddd=_0x2cebc8['getFirstRange']();if(_0x511285['length']>0x0){const _0x29de31=_0x511285[0x0]['getJoined'](_0x41fddd);if(_0x29de31){_0x511285[0x0]=_0x29de31;continue;}}_0x511285['push'](_0x41fddd);}_0x55973c['push']([_0x121ba5['view'],_0x511285]);}return _0x55973c;}),this['listenTo'](_0x1cf567,'suggestionLoaded',(_0xd502a9,_0xc57e90)=>{this['listenTo'](_0xc57e90,'change:previous',(_0x4d1e36,_0xca6699,_0x136108,_0x4065ec)=>{_0xc57e90['isInContent']&&(null==_0x136108?(this['_updateController'](_0x4065ec['head']),this['_handleSuggestionControllerDelayed'](_0xc57e90,!0x1)):(this['_updateController'](_0x136108['head']),null==_0x4065ec&&this['_handleSuggestionControllerDelayed'](_0xc57e90,!0x0)));}),null!==_0xc57e90['previous']?this['_updateController'](_0xc57e90['head']):this['_handleSuggestionControllerDelayed'](_0xc57e90,!0x1);}),this['listenTo'](_0x1cf567,'suggestionUnloaded',(_0x3994e4,_0x39e273,_0x3cb262)=>{this['stopListening'](_0x39e273,'change:previous'),this['_handleControllerBuffer']['delete'](_0x39e273),this['_suggestionToController']['has'](_0x39e273)&&this['_destroyController'](_0x39e273),_0x3cb262&&this['_updateController'](_0x3cb262['head']);}),this['listenTo'](_0x1cf567,'suggestionChanged',(_0x3caa47,_0x327224)=>{this['_updateController'](_0x327224);}),this['listenTo'](_0x3b3bd1,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4bc2e7,'addComment',(_0x1f00c3,{threadId:_0x91ab5f,isFromAdapter:_0x5a3b5d})=>{if(_0x5a3b5d||!_0x1cf567['hasSuggestion'](_0x91ab5f))return;const _0x43dd45=_0x1cf567['getSuggestion'](_0x91ab5f);this['_suggestionToController']['get'](_0x43dd45)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x37e273=this['editor']['plugins']['get']('Annotations'),_0x5419a5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57d03a=Array['from'](_0x37e273['activeAnnotations'],_0x37420e=>_0x37420e['innerView'])['filter'](_0x3e9b6f=>this['_viewToController']['has'](_0x3e9b6f)),_0x3327fb=[];for(const _0x4f9aa2 of _0x57d03a){const _0x4d614d=this['_viewToController']['get'](_0x4f9aa2)['model']['getAllAdjacentSuggestions']();_0x3327fb['push'](..._0x4d614d['reduce']((_0x24ba3e,_0x15d06a)=>[..._0x24ba3e,..._0x15d06a['getMarkerNames']()],[]));}_0x5419a5['activeMarkers']=_0x3327fb;}['_addUIComponentsToFactory'](){const _0x3c4a7e=this['editor'],_0x1cc07d=_0x3c4a7e['locale'],_0x1b3d83=o(_0x1cc07d,'Track\x20changes'),_0x3fa591=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x1b3d83,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1cc07d,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1cc07d,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1cc07d,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x1cc07d,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x5e0e99 of _0x3fa591)if(ae(_0x5e0e99)){const _0x41abb6=_0x3c4a7e['commands']['get'](_0x5e0e99['model']['commandName']);_0x5e0e99['model']['bind']('isOn','isEnabled')['to'](_0x41abb6,'value','isEnabled');}_0x3c4a7e['ui']['componentFactory']['add']('trackChanges',_0xea2ede=>this['_createToolbarButton'](_0xea2ede,_0x3fa591,_0x1b3d83)),_0x3c4a7e['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1a7346=>this['_createMenuBarMenu'](_0x1a7346,_0x3fa591,_0x1b3d83));}['_createToolbarButton'](_0x111353,_0x5742ad,_0x1f66df){const _0x4440df=zt(_0x111353,Zt),_0x321727=this['editor']['commands']['get']('trackChanges');_0x4440df['buttonView']['set']({'tooltip':_0x1f66df,'label':_0x1f66df,'icon':ie}),_0x4440df['buttonView']['bind']('isOn')['to'](_0x321727,'value'),_0x4440df['buttonView']['on']('execute',()=>{_0x321727['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x4440df,_0x5742ad,{'role':'menu'});const _0x157ab3=[];for(const _0x110a28 of _0x5742ad)ae(_0x110a28)&&_0x157ab3['push'](this['editor']['commands']['get'](_0x110a28['model']['commandName']));const _0x281167=_0x4440df['buttonView'];return _0x281167['actionView']['unbind']('isEnabled'),_0x281167['arrowView']['unbind']('isEnabled'),_0x281167['actionView']['bind']('isEnabled')['to'](_0x321727,'isEnabled'),_0x281167['arrowView']['bind']('isEnabled')['toMany'](_0x157ab3,'isEnabled',(..._0x291042)=>_0x291042['some'](_0xdf7e3d=>_0xdf7e3d)),_0x4440df['on']('execute',_0x33525d=>{this['editor']['execute'](_0x33525d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x4440df;}['_createMenuBarMenu'](_0x178ffe,_0x21434a,_0xd961ec){const _0x1e6dfe=new Kt(_0x178ffe),_0x2423e1=this['editor']['commands']['get']('trackChanges');_0x1e6dfe['buttonView']['set']({'label':_0xd961ec,'icon':ie});const _0xa3def=new Qt(_0x178ffe);for(const _0xe7c075 of _0x21434a){if('separator'==_0xe7c075['type']){_0xa3def['items']['add'](new Jt(_0x178ffe));continue;}const _0x41a71b=new Xt(_0x178ffe,_0x1e6dfe),_0x11cecc=new Yt(_0x178ffe),_0x3e85c2=_0xe7c075['model'];_0x11cecc['bind'](...Object['keys'](_0x3e85c2))['to'](_0x3e85c2),_0x11cecc['delegate']('execute')['to'](_0x1e6dfe),_0x11cecc['on']('execute',()=>{this['editor']['execute'](_0x3e85c2['commandName']),this['editor']['editing']['view']['focus']();}),_0x41a71b['children']['add'](_0x11cecc),_0xa3def['items']['add'](_0x41a71b);}return _0x1e6dfe['bind']('isEnabled')['to'](_0x2423e1,'isEnabled'),_0x1e6dfe['panelView']['children']['add'](_0xa3def),_0x1e6dfe;}['_initializeController'](_0xd4a1c2){const _0x3a86c8=this['editor'],_0x14d8e0=_0x3a86c8['config'],_0x2c0367=_0x3a86c8['plugins']['get']('Annotations'),_0x279a60=_0x3a86c8['plugins']['get']('CommentsRepository'),_0x5b707e=_0x3a86c8['plugins']['get']('EditorAnnotations'),_0x85d21=_0x3a86c8['plugins']['get'](_0x4b85f6)['me'],_0x5d70c2=_0x14d8e0['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x17da18,CommentThreadInputView:_0x3b40db}=_0x3a86c8['plugins']['get']('CommentsUI');let _0xb95258,_0x1917ec;this['_annotationViews']['has'](_0xd4a1c2['id'])?(_0x1917ec=this['_annotationViews']['get'](_0xd4a1c2['id']),_0xb95258=_0x1917ec['mainView']):(_0xb95258=new _0x5d70c2(_0x3a86c8['locale'],_0xd4a1c2,_0x85d21,{'disableComments':this['_disableComments'],'editorConfig':_0x14d8e0['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x14d8e0['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x14d8e0['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x14d8e0['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x350414(_0x14d8e0['get']('locale')),'CommentView':_0x14d8e0['get']('comments')['CommentView'],'CommentsListView':_0x17da18,'CommentThreadInputView':_0x3b40db}),_0xb95258['acceptButton']['on']('execute',()=>{_0x3a86c8['editing']['view']['focus']();}),_0xb95258['discardButton']['on']('execute',()=>{_0x3a86c8['editing']['view']['focus']();}),_0x1917ec=_0x2c0367['createAnnotationView'](this['editor']['locale'],_0xb95258),_0x1917ec['bind']('isDirty')['to'](_0xb95258,'isDirty'),_0x1917ec['bind']('length')['to'](_0xb95258),_0x1917ec['bind']('type')['to'](_0xb95258,'type',_0x866e47=>'suggestion-'+_0x866e47),this['_annotationViews']['set'](_0xd4a1c2['id'],_0x1917ec));const _0x1e1a3d=_0x279a60['createCommentThreadController'](_0xd4a1c2['commentThread'],_0xb95258),_0x112b15=new oe(_0x3a86c8,_0xd4a1c2,_0xb95258,_0x1e1a3d),_0x51e235=_0xd4a1c2['getAllAdjacentSuggestions']()['filter'](_0x49607b=>_0x49607b['isInContent']);_0xb95258['descriptionParts']=_0x3a86c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x51e235),this['_suggestionToController']['set'](_0xd4a1c2,_0x112b15),this['_viewToController']['set'](_0xb95258,_0x112b15);const _0x469b00=_0x2c0367['createAnnotation']({'view':_0x1917ec,'target':()=>{const _0x4854e7=[],_0x39e891=_0xd4a1c2['getAllAdjacentSuggestions']()['filter'](_0x3f72ca=>_0x3f72ca['isInContent']);for(const _0x22d76a of _0x39e891)_0x4854e7['push'](..._0x22d76a['getMarkers']());return _0x2cec6(_0x3a86c8['editing'],_0x4854e7);},'type':()=>'suggestion-'+_0x112b15['view']['type']});_0x279a60['_bindAnnotationToEditors'](_0xb95258,_0x469b00),_0x2c0367['add'](_0x469b00),_0x5b707e['registerAnnotation'](_0x469b00);}['_destroyController'](_0x1a52e0){const _0x57d23a=this['editor']['plugins']['get']('CommentsRepository'),_0x4ecc5f=this['editor']['plugins']['get']('Annotations'),_0x2dcd79=this['_suggestionToController']['get'](_0x1a52e0),_0x3c237a=_0x2dcd79['view'],_0x5efbd8=_0x4ecc5f['getByInnerView'](_0x3c237a);_0x57d23a['_unbindEditors'](_0x3c237a),_0x5efbd8&&_0x4ecc5f['remove'](_0x5efbd8),this['_suggestionToController']['delete'](_0x1a52e0),this['_viewToController']['delete'](_0x3c237a),_0x2dcd79['destroy']();}['_updateController'](_0x2eae6e){if(!_0x2eae6e['isInContent']||!this['_suggestionToController']['has'](_0x2eae6e))return;const _0x313aea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1be337=this['_suggestionToController']['get'](_0x2eae6e),_0x3f5518=_0x2eae6e['getAllAdjacentSuggestions']();_0x1be337['view']['descriptionParts']=_0x313aea['descriptionFactory']['getDescriptions'](_0x3f5518);}['destroy'](){for(const _0x490458 of this['_suggestionToController']['keys']())this['_destroyController'](_0x490458);for(const _0x4a95c2 of this['_annotationViews']['values']())_0x4a95c2['mainView']['destroy']();super['destroy']();}}function ae(_0x4cf0ae){return'model'in _0x4cf0ae;}class k extends _0x56b6e2{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x31a287){this['editor']['plugins']['get'](p)['adapter']=_0x31a287;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d362e){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d362e);}['getSuggestions']({skipNotAttached:_0x225c4b=!0x1,toJSON:_0x4fd053=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x225c4b,'toJSON':_0x4fd053});}['getSuggestion'](_0xf4a781){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xf4a781);}}const T=['Pagination'];class P extends _0x56b6e2{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x48b958=this['editor'];if(_0x48b958['config']['define']('trackChangesData.editorCreator',_0x201883=>{const _0x5c6c7e=_0x48b958['model']['document']['getRootNames']()['reduce']((_0x2ce7be,_0x49f3fc)=>(_0x2ce7be[_0x49f3fc]='',_0x2ce7be),{});return _0x48b958['constructor']['create'](_0x5c6c7e,_0x201883);}),'function'!=typeof _0x48b958['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a8160('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x17c2dc){return N(this['editor'],!0x0,_0x17c2dc);}['getDataWithDiscardedSuggestions'](_0x42418b){return N(this['editor'],!0x1,_0x42418b);}}class D extends _0x56b6e2{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xb9ff99){super(_0xb9ff99),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x508ccc){return void 0x0!==_0x508ccc['getRootsAttributes'];}async function N(_0x9878b5,_0x581278,_0x571459){const _0x6c9b1=_0x1a7a63(_0x9878b5,T);_0x6c9b1['plugins']['push'](p,D),_0x6c9b1['rootsAttributes']=v(_0x9878b5)?_0x9878b5['getRootsAttributes']():void 0x0;const _0x497cfb=document['createDocumentFragment'](),_0x20bdb9=_0x9878b5['config']['get']('trackChangesData')['editorCreator'],_0x10b1b5=await _0x20bdb9(_0x6c9b1,()=>function(_0x1f84e0){const _0x3cb1a5=document['createElement']('div');return _0x1f84e0['appendChild'](_0x3cb1a5),_0x3cb1a5;}(_0x497cfb));!function(_0x3b2c94,_0x28709b){const _0x4117c2=_0x3b2c94['model']['document']['getRootNames']()['reduce']((_0x514449,_0x10f8f0)=>(_0x514449[_0x10f8f0]=_0x3b2c94['data']['get']({'rootName':_0x10f8f0}),_0x514449),{}),_0x4777a9=_0x3b2c94['plugins']['get']('Users')['users']['map'](_0x33439b=>({'id':_0x33439b['id'],'name':_0x33439b['name']})),_0x208aa1=_0x3b2c94['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x38e85d=_0x3b2c94['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3b2534=_0x28709b['plugins']['get']('Users'),_0x3ff516=_0x28709b['plugins']['get']('TrackChangesEditing'),_0x9879e2=_0x28709b['plugins']['get']('CommentsRepository');for(const _0x5e94d of _0x4777a9)_0x3b2534['getUser'](_0x5e94d['id'])||_0x3b2534['addUser'](_0x5e94d);_0x3b2534['me']||_0x3b2534['useAnonymousUser']();for(const _0x47feb8 of _0x38e85d)_0x9879e2['addCommentThread'](_0x47feb8);for(const _0x4dc652 of _0x208aa1)_0x3ff516['addSuggestionData'](_0x4dc652);_0x28709b['data']['set'](_0x4117c2);}(_0x9878b5,_0x10b1b5),_0x10b1b5['execute'](_0x581278?'acceptAllSuggestions':'discardAllSuggestions');const _0x1dee8d=v(_0x10b1b5)?_0x10b1b5['getFullData'](_0x571459):_0x10b1b5['data']['get'](_0x571459);return await _0x10b1b5['destroy'](),_0x1dee8d;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|
|
23
|
+
import{Command as ts,Plugin as _0x4f5a27,PendingActions as _0x50a4a7,icons as _0x300afb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x175af6,ObservableMixin as _0x3e7508,uid as _0x3dae9a,insertToPriorityArray as _0xe1cb41,priorities as _0x3ca1ca,logWarning as _0x351a3b,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xa41901,View as _0x5f0a0f,ButtonView as _0x563aa5,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x5aeff2,hashObject as _0x4b9707,surroundingMarkersDetector as _0x2dea51,trimHtml as _0x297855,UserView as _0x2b0c55,getDateTimeFormatter as _0x160ec9,getAllMarkersDomElementsSorted as _0x7165d0,sanitizeEditorConfig as _0x25fe9b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5798d3,LiveRange as _0x828bf8,LivePosition as _0x4e2973}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x243104,toWidget as _0x38640c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4bf222,set as _0x332997,isEqual as _0x22c2ec,unset as _0x1c9605,omit as Bt}from'lodash-es';import{Delete as _0x44d923,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2577bf,ShiftEnter as _0x7e37a9}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xaa823f,_0x7c879f){super(_0xaa823f),this['_enabledCommands']=_0x7c879f,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 _0x17fdcf of this['editor']['commands']['commands']())_0x17fdcf['affectsData']&&!this['_enabledCommands']['has'](_0x17fdcf)&&_0x17fdcf['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x9fb2ba of this['editor']['commands']['commands']())_0x9fb2ba['affectsData']&&!this['_enabledCommands']['has'](_0x9fb2ba)&&_0x9fb2ba['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x217a98,_0x309651){super(_0x217a98),this['_suggestions']=_0x309651,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x584db2){const _0x1bd277=this['_suggestions']['get'](_0x584db2);if(!_0x1bd277)throw new _0x175af6('track-changes-accept-suggestion-not-found',this);const _0x538b88=_0x1bd277['getRanges']();this['editor']['model']['canEditAt'](_0x538b88)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x1bd277);}}class B extends ts{['_suggestions'];constructor(_0x4f1e34,_0x572e5d){super(_0x4f1e34),this['_suggestions']=_0x572e5d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1c7521){const _0x2d5142=this['_suggestions']['get'](_0x1c7521);if(!_0x2d5142)throw new _0x175af6('track-changes-discard-suggestion-not-found',this);const _0x3ab0ac=_0x2d5142['getRanges']();this['editor']['model']['canEditAt'](_0x3ab0ac)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2d5142);}}function ss(_0x2d7dc4){return _0x2d7dc4['sort']((_0x30296d,_0x355cdf)=>'deletion'==_0x30296d['type']&&'deletion'!=_0x355cdf['type']?-0x1:'deletion'!=_0x30296d['type']&&'deletion'==_0x355cdf['type']?0x1:0x0);}function to(_0xdc0b3c,_0x41b5f3){let _0x3980cd,_0x3aa2ce=0x0;const _0x121ef1=[],_0x31859a=_0x41b5f3['schema'];for(;_0x3aa2ce<_0xdc0b3c['length'];){const _0x441077=_0xdc0b3c[_0x3aa2ce],_0x56fe18=_0xdc0b3c[_0x3aa2ce+0x1];_0x3980cd||(_0x3980cd=_0x41b5f3['createPositionBefore'](_0x441077)),co(_0x41b5f3,_0x441077,_0x56fe18)||(_0x121ef1['push'](_0x41b5f3['createRange'](_0x3980cd,_0x31859a['isObject'](_0x441077)?_0x41b5f3['createPositionAfter'](_0x441077):_0x41b5f3['createPositionAt'](_0x441077,'end'))),_0x3980cd=null),_0x3aa2ce++;}return _0x121ef1;}function co(_0x129225,_0x178806,_0x3f29de){if(!_0x3f29de)return!0x1;const _0x106579=_0x129225['createPositionAfter'](_0x178806),_0x4cb44a=_0x129225['createPositionBefore'](_0x3f29de);return _0x106579['isTouching'](_0x4cb44a);}function rs(_0x48b6f8,_0x253e16,_0x262ea6){for(;_0x262ea6['length'];){const _0x21b535=_0x262ea6['splice'](0x0,0x64);_0x48b6f8['change'](()=>{for(const _0x2ceb48 of _0x21b535)_0x2ceb48['isInContent']&&_0x253e16['execute'](_0x2ceb48['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x40a71c,_0x69950d,_0x1a585c){super(_0x40a71c),this['_command']=_0x69950d,this['_suggestions']=_0x1a585c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x504988=Array['from'](this['_suggestions']['values']())['some'](_0x31e5cf=>_0x31e5cf['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x504988;}['execute'](){const _0xf3b43f=ss(Array['from'](this['_suggestions']['values']()));for(const _0x49f6fa of _0xf3b43f){const _0x266b16=_0x49f6fa['getRanges']();if(!this['editor']['model']['canEditAt'](_0x266b16))return;}rs(this['editor']['model'],this['_command'],_0xf3b43f);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3ceef2,_0x1b1216,_0x5ec6b4){super(_0x3ceef2),this['_command']=_0x1b1216,this['_suggestions']=_0x5ec6b4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x15f670=this['editor']['model']['document']['selection'],_0x435777=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x488fd2,_0x1ef4ac){const _0x2d3519=Array['from'](_0x488fd2['getRanges']()),_0x32bfec=new Set();for(const _0x185159 of _0x1ef4ac)if(_0x185159['isInContent']){for(const _0xff5aef of _0x2d3519)for(const _0x2aa404 of _0x185159['getRanges']())(_0xff5aef['isIntersecting'](_0x2aa404)||_0x488fd2['isCollapsed']&&!_0x185159['isMultiRange']&&_0x185159['next']&&_0x2aa404['end']['isTouching'](_0xff5aef['start']))&&_0x32bfec['add'](_0x185159);}return _0x32bfec;}(_0x15f670,_0x435777),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e2410=ss(Array['from'](this['_selectedSuggestions']));for(const _0x8c41e3 of _0x2e2410){const _0x3d8ac1=_0x8c41e3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3d8ac1))return;}rs(this['editor']['model'],this['_command'],_0x2e2410);}}class u extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3e7508(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xf10c89,_0x49ae41){super(),this['id']=_0x49ae41['id'],this['type']=_0x49ae41['type'],this['subType']=_0x49ae41['subType']||null,this['author']=_0x49ae41['author'],this['creator']=_0x49ae41['creator']||_0x49ae41['author'],this['isExternal']=Boolean(_0x49ae41['attributes']&&_0x49ae41['attributes']['@external']),this['data']=null,this['_model']=_0xf10c89,this['_onAccept']=_0x49ae41['onAccept'],this['_onDiscard']=_0x49ae41['onDiscard'],this['_onAttributesChange']=_0x49ae41['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x49ae41['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 _0x3f0338=this;for(;_0x3f0338['previous'];)_0x3f0338=_0x3f0338['previous'];return _0x3f0338;}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'](_0x40b1f6){this['_markerNames']['add'](_0x40b1f6);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x514f93=>this['_model']['markers']['get'](_0x514f93))['filter'](_0x222ca5=>_0x222ca5);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e37fe=>{for(const _0x294df6 of this['getMarkers']())_0x4e37fe['removeMarker'](_0x294df6);}),this['_markerNames']['clear']();}['removeMarker'](_0x5e4894){this['_model']['change'](_0x46a245=>{_0x46a245['removeMarker'](_0x5e4894);}),this['_markerNames']['delete'](_0x5e4894);}['addRange'](_0x7e5039){const _0x118bfc='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x118bfc),this['_model']['change'](_0x11f91c=>{_0x11f91c['addMarker'](_0x118bfc,{'range':_0x7e5039,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xa79da8){for(const _0x101d9c of this['getRanges']())if(_0x101d9c['isIntersecting'](_0xa79da8))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x27c17f=>_0x27c17f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x58ea85,_0x25f285)=>[..._0x58ea85,..._0x25f285['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xd898ff=this['getRanges']();if(0x1!=_0xd898ff['length'])return null;const _0x15b1ee=_0xd898ff[0x0],_0x137ab1=_0x15b1ee['start']['nodeAfter'],_0x449204=_0x15b1ee['end']['nodeBefore'];return _0x137ab1 instanceof _0x5798d3?_0x137ab1!=_0x449204?null:_0x137ab1: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 _0x1b24bb=[];let _0x5a2f1d=this['head'];for(;_0x5a2f1d;)_0x1b24bb['push'](_0x5a2f1d),_0x5a2f1d=_0x5a2f1d['next'];return _0x1b24bb;}['setAttribute'](_0x222ba0,_0x38f62e){const _0x20dbd9=_0x4bf222(this['attributes']);_0x332997(_0x20dbd9,_0x222ba0,_0x38f62e),_0x22c2ec(_0x20dbd9,this['attributes'])||(this['attributes']=_0x20dbd9,this['_onAttributesChange'](_0x20dbd9));}['removeAttribute'](_0x5e71a4){const _0x73c1e2=_0x4bf222(this['attributes']);_0x1c9605(_0x73c1e2,_0x5e71a4),_0x22c2ec(_0x73c1e2,this['attributes'])||(this['attributes']=_0x73c1e2,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 _0x3dae9a()['substr'](0x1,0x5);}}function o(_0x21b62f,_0x1b0ffb,_0x2ec647){const t=_0x21b62f['t'];switch(_0x1b0ffb){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0x2ec647);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2ec647);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2ec647);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2ec647);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2ec647);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',_0x2ec647);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2ec647);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2ec647);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2ec647);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2ec647);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2ec647);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2ec647);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2ec647);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2ec647);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2ec647);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2ec647);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2ec647);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2ec647);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2ec647);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2ec647);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2ec647);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2ec647);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2ec647);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'},_0x2ec647);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2ec647);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2ec647);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2ec647);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2ec647);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2ec647);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2ec647);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2ec647);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2ec647);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'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2ec647);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'},_0x2ec647);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2ec647);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2ec647);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2ec647);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2ec647);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x1b0ffb;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14bb94,_0x12dce7){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14bb94,this['_locale']=_0x12dce7;}['getDescriptions'](_0x44f958){const _0x52ec34=[],_0x1bb915=new Set(),_0xb44874=new Set();for(let _0x3fdb75=0x0;_0x3fdb75<_0x44f958['length'];_0x3fdb75++){const _0x4a5784=_0x44f958[_0x3fdb75];if(!_0x4a5784['isInContent'])continue;const _0x5737ea=this['_handleCustomCallbackDescription'](_0x4a5784);if(_0x5737ea){if(null!=_0x4a5784['subType']){if(_0x1bb915['has'](_0x4a5784['subType']))continue;_0x1bb915['add'](_0x4a5784['subType']);}_0x52ec34['push'](_0x5737ea);}else{if('attribute'!=_0x4a5784['type'])'insertion'!=_0x4a5784['type']&&'deletion'!=_0x4a5784['type']||this['_handleInsertRemoveSuggestionDescription'](_0x52ec34,_0x4a5784,_0x44f958[_0x3fdb75+0x1]);else{const _0x14b76a=_0x4a5784['data']['key'];if(_0xb44874['has'](_0x14b76a))continue;_0xb44874['add'](_0x4a5784['data']['key']),_0x14b76a==m?this['_handleRenameSuggestionDescription'](_0x52ec34,_0x4a5784):this['_handleAttributeSuggestionDescription'](_0x52ec34,_0x4a5784);}}}return this['_resolveDescriptionItems'](_0x52ec34);}['registerDescriptionCallback'](_0x5af2d9){this['_customCallbacks']['push'](_0x5af2d9);}['registerElementLabel'](_0x11b9a3,_0x5e733a,_0x5799b3=_0x3ca1ca['normal']){'function'==typeof _0x11b9a3?_0xe1cb41(this['_itemLabelsCallbacks'],{'matchingCallback':_0x11b9a3,'label':_0x5e733a,'priority':_0x5799b3}):this['_itemLabels']['set'](_0x11b9a3,_0x5e733a);}['registerAttributeLabel'](_0x12bb7d,_0x57aa5f){this['_attributeLabels']['set'](_0x12bb7d,_0x57aa5f);}['getItemLabel'](_0x2815dc,_0x3ba6ec=0x1){let _0x805e26;for(const _0x4abbb4 of this['_itemLabelsCallbacks'])if(_0x4abbb4['matchingCallback'](_0x2815dc)){_0x805e26=_0x4abbb4['label'];break;}return _0x805e26||(_0x805e26=this['_itemLabels']['get'](_0x2815dc['name'])),_0x805e26?_0x805e26(_0x3ba6ec):0x1!==_0x3ba6ec?_0x3ba6ec+'\x20'+_0x2815dc['name']+'s':''+_0x2815dc['name'];}['_addDescriptionItems'](_0x50f3aa,_0x802bc2){const _0x47ee2b=_0x802bc2['getFirstRange']()['getWalker'](),_0x3f7223='insertion'==_0x802bc2['type']?'add':'remove';for(const _0xc7c25f of _0x47ee2b){const _0x5c4d11=_0xc7c25f['item'],_0x23cde5=_0x50f3aa[_0x50f3aa['length']-0x1];if(_0x5c4d11['is']('$textProxy'))_0x23cde5&&_0x23cde5['type']['indexOf']('Container')>-0x1&&_0x50f3aa['pop'](),_0x23cde5&&'text'==_0x23cde5['type']?_0x23cde5[_0x3f7223]+=_0x5c4d11['data']:_0x50f3aa['push']({'type':'text','add':'add'==_0x3f7223?_0x5c4d11['data']:'','remove':'remove'==_0x3f7223?_0x5c4d11['data']:''});else{if(this['_schema']['isObject'](_0x5c4d11)){const _0x3ddb96=_0x5c4d11;if(_0x23cde5&&_0x23cde5['type']['indexOf']('Container')>-0x1&&_0x50f3aa['pop'](),'elementEnd'==_0xc7c25f['type'])continue;_0x23cde5&&_0x23cde5['type']==_0x3f7223+'Object'&&_0x23cde5['element']['name']==_0x3ddb96['name']?_0x23cde5['quantity']++:_0x50f3aa['push']({'type':_0x3f7223+'Object','element':_0x3ddb96,'quantity':0x1}),_0x47ee2b['skip'](_0x107d03=>!('elementEnd'==_0x107d03['type']&&_0x107d03['item']==_0x5c4d11));}else{if(this['_schema']['checkChild'](_0x5c4d11,'$text')||_0x5c4d11['is']('element','softBreak')){const _0xc6cb0a=_0x5c4d11;if('add'==_0x3f7223&&'elementStart'==_0xc7c25f['type']||'remove'==_0x3f7223&&'elementEnd'==_0xc7c25f['type'])continue;if(_0x23cde5&&-0x1==_0x23cde5['type']['indexOf']('Container')){'text'==_0x23cde5['type']&&(_0x23cde5[_0x3f7223]+='\x0a');continue;}let _0x137a7a;if(_0x137a7a='add'==_0x3f7223?_0xc6cb0a['nextSibling']&&!this['_schema']['isObject'](_0xc6cb0a['nextSibling'])?_0xc6cb0a['nextSibling']:null:_0xc6cb0a['previousSibling']&&!this['_schema']['isObject'](_0xc6cb0a['previousSibling'])?_0xc6cb0a['previousSibling']:null,_0xc6cb0a['isEmpty']||_0x137a7a&&_0x137a7a['isEmpty']){const _0x42c848=_0x137a7a&&_0x137a7a['isEmpty']?_0x137a7a:_0xc6cb0a;_0x23cde5&&_0x23cde5['type']==_0x3f7223+'EmptyContainer'&&_0x23cde5['element']['name']==_0x42c848['name']?_0x23cde5['quantity']++:_0x50f3aa['push']({'type':_0x3f7223+'EmptyContainer','element':_0x42c848,'quantity':0x1});}else _0x50f3aa['push']({'type':_0x3f7223+'Container','element':_0xc6cb0a});}}}}}['_resolveDescriptionItems'](_0x598fb9){const _0x60d033=this['_locale'],_0xb72d29=[],_0x350e1f=[],_0x55801b=[];for(const _0x49dfd7 of _0x598fb9)switch(_0x49dfd7['type']){case'text':if(_0x49dfd7['add']=_0x49dfd7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x49dfd7['remove']=_0x49dfd7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x49dfd7['add']&&''!=_0x49dfd7['remove']){_0xb72d29['push']({'type':'replace','content':o(_0x60d033,'REPLACE_TEXT',['\x22'+_0x49dfd7['remove']+'\x22','\x22'+_0x49dfd7['add']+'\x22'])});continue;}if(null!=_0x49dfd7['add']['match'](/^ +$/)){_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0',o(_0x60d033,'ELEMENT_SPACE',_0x49dfd7['add']['length']))});continue;}if(null!=_0x49dfd7['remove']['match'](/^ +$/)){_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0',o(_0x60d033,'ELEMENT_SPACE',_0x49dfd7['remove']['length']))});continue;}if(''!=_0x49dfd7['add']){_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0','\x22'+_0x49dfd7['add']+'\x22')});continue;}_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0','\x22'+_0x49dfd7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Insert:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Remove:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'addContainer':_0xb72d29['push']({'type':'insertion','content':o(_0x60d033,'*Split:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'removeContainer':_0xb72d29['push']({'type':'deletion','content':o(_0x60d033,'*Merge:*\x20%0',this['getItemLabel'](_0x49dfd7['element'],_0x49dfd7['quantity']))});continue;case'addFormat':_0x350e1f['push'](_0x49dfd7['key']);continue;case'removeFormat':_0x55801b['push'](_0x49dfd7['key']);continue;default:_0xb72d29['push'](_0x49dfd7);}if(_0x350e1f['length']){const _0x5e9377=_0x350e1f['map'](_0x576aef=>this['_attributeLabels']['has'](_0x576aef)?this['_attributeLabels']['get'](_0x576aef):_0x576aef)['join'](',\x20');_0xb72d29['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5e9377)});}if(_0x55801b['length']){const _0x5b410d=_0x55801b['map'](_0x39e030=>this['_attributeLabels']['has'](_0x39e030)?this['_attributeLabels']['get'](_0x39e030):_0x39e030)['join'](',\x20');_0xb72d29['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x5b410d)});}return _0xb72d29;}['_handleCustomCallbackDescription'](_0x46a6db){for(const _0x528e70 of this['_customCallbacks']){const _0xab17ea=_0x528e70(_0x46a6db);if(_0xab17ea&&'type'in _0xab17ea)return _0xab17ea;}}['_handleAttributeSuggestionDescription'](_0x2c2717,_0x330a11){const _0x1015a4=_0x330a11['data'],_0xbf5ef1=void 0x0===_0x1015a4['newValue']?'removeFormat':'addFormat';_0x2c2717['push']({'type':_0xbf5ef1,'key':_0x1015a4['key']});}['_handleRenameSuggestionDescription'](_0x1e2053,_0x336750){_0x1e2053['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x336750['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2bf642,_0x8ce108,_0x3d6658){if(this['_addDescriptionItems'](_0x2bf642,_0x8ce108),_0x3d6658&&_0x3d6658['getFirstRange']()&&!_0x8ce108['getFirstRange']()['end']['isEqual'](_0x3d6658['getFirstRange']()['start'])){const _0x556223=_0x2bf642[_0x2bf642['length']-0x1],_0xa3517d='insertion'==_0x8ce108['type']?'add':'remove';_0x556223&&'text'==_0x556223['type']&&(_0x556223[_0xa3517d]+='\x0a');}}}class E extends _0x4f5a27{['afterInit'](){const _0x13a6d7=this['editor'],_0x24c61e=_0x13a6d7['plugins']['get']('TrackChangesEditing');_0x13a6d7['commands']['get']('showAIAssistant')&&_0x24c61e['enableCommand']('showAIAssistant');}}class V extends _0x4f5a27{['afterInit'](){const _0x463a0e=this['editor'],_0x494db2=_0x463a0e['locale'];if(!_0x463a0e['plugins']['has']('AlignmentEditing'))return;const _0x2585b4=_0x463a0e['plugins']['get']('TrackChangesEditing');_0x2585b4['enableDefaultAttributesIntegration']('alignment'),_0x2585b4['registerBlockAttribute']('alignment'),_0x2585b4['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x494db2,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x528694=this['editor'],_0x3f0b9f=_0x528694['locale'];_0x528694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2c9e28=>{if('formatBlock'!=_0x2c9e28['type'])return;const {data:_0x3c81cd}=_0x2c9e28;if(_0x3c81cd&&'alignment'==_0x3c81cd['commandName']){const _0x368b10=_0x3c81cd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3f0b9f,'*Format:*\x20%0',function(_0x4d9cc4){switch(_0x4d9cc4){case'left':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3f0b9f,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3f0b9f,'FORMAT_JUSTIFY_TEXT');}}(_0x368b10))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4f5a27{['afterInit'](){const _0x30b629=this['editor'],_0xf50b1=_0x30b629['plugins']['get']('TrackChangesEditing'),_0x44ab9f=_0x30b629['locale'];for(const _0x2aa780 of ti){if(!_0x30b629['plugins']['has'](_0x2aa780))continue;const _0x28d20f=_0x2aa780['slice'](0x0,-0x7)['toLowerCase'](),_0x1b47e1='FORMAT_'+_0x28d20f['toUpperCase']();_0xf50b1['enableDefaultAttributesIntegration'](_0x28d20f),_0xf50b1['registerInlineAttribute'](_0x28d20f),_0xf50b1['descriptionFactory']['registerAttributeLabel'](_0x28d20f,o(_0x44ab9f,_0x1b47e1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x398cd0=this['editor'],_0x1a4aff=_0x398cd0['locale'],_0xc22926=_0x398cd0['plugins']['get']('TrackChangesEditing');function _0x3687ea(_0x23cf4e,_0x54811b){_0xc22926['descriptionFactory']['registerDescriptionCallback'](_0x598a53=>{if('formatInline'!=_0x598a53['type'])return;const {data:_0x590118}=_0x598a53;return _0x590118&&_0x590118['commandName']===_0x23cf4e?_0x590118['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a4aff,'*Format:*\x20%0',_0x54811b)}:{'type':'format','content':o(_0x1a4aff,'*Remove\x20format:*\x20%0',_0x54811b)}:void 0x0;});}_0x3687ea('bold',o(_0x1a4aff,'FORMAT_BOLD')),_0x3687ea('italic',o(_0x1a4aff,'FORMAT_ITALIC')),_0x3687ea('underline',o(_0x1a4aff,'FORMAT_UNDERLINE')),_0x3687ea('code',o(_0x1a4aff,'FORMAT_CODE')),_0x3687ea('strikethrough',o(_0x1a4aff,'FORMAT_STRIKETHROUGH')),_0x3687ea('subscript',o(_0x1a4aff,'FORMAT_SUBSCRIPT')),_0x3687ea('superscript',o(_0x1a4aff,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4f5a27{['afterInit'](){const _0x11836b=this['editor'],_0x42c144=_0x11836b['locale'];if(!_0x11836b['plugins']['has']('BlockQuoteEditing'))return;const _0x1063a8=_0x11836b['plugins']['get']('TrackChangesEditing'),_0x1bdf43=this['editor']['commands']['get']('blockQuote');_0x1063a8['enableCommand']('blockQuote',(_0x56d2bd,_0x56c9d7={})=>{const _0x4c54c5=this['editor']['model']['document']['selection'],_0x5a7d34=_0x56c9d7&&void 0x0!==_0x56c9d7['forceValue']?_0x56c9d7['forceValue']:!_0x1bdf43['value'];let _0x1fa0ab=[];if(_0x5a7d34){const _0x50f275=Array['from'](_0x4c54c5['getSelectedBlocks']())['filter'](_0x2a2343=>oo(_0x2a2343)||function(_0x4190c4,_0x57321a){const _0x12efab=_0x57321a['checkChild'](_0x4190c4['parent'],'blockQuote'),_0x33358d=_0x57321a['checkChild'](['$root','blockQuote'],_0x4190c4);return _0x12efab&&_0x33358d;}(_0x2a2343,this['editor']['model']['schema']));_0x1fa0ab=to(_0x50f275,_0x11836b['model']);}else{const _0x7225d1=Array['from'](_0x4c54c5['getSelectedBlocks']())['filter'](_0x33858c=>oo(_0x33858c));_0x1fa0ab=to(_0x7225d1,_0x11836b['model']);}_0x11836b['model']['change'](()=>{for(const _0x7d855b of _0x1fa0ab)_0x1063a8['markBlockFormat'](_0x7d855b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5a7d34}]});});}),_0x1063a8['descriptionFactory']['registerDescriptionCallback'](_0x43c3d8=>{const {data:_0x5845ad}=_0x43c3d8;if(_0x5845ad&&'blockQuote'==_0x5845ad['commandName']){const _0x4ac1e7=o(_0x42c144,'ELEMENT_BLOCK_QUOTE');return _0x5845ad['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42c144,'*Set\x20format:*\x20%0',_0x4ac1e7)}:{'type':'format','content':o(_0x42c144,'*Remove\x20format:*\x20%0',_0x4ac1e7)};}});}}function oo(_0x14bcad){return'blockQuote'==_0x14bcad['parent']['name'];}class G extends _0x4f5a27{['afterInit'](){const _0x53abc5=this['editor'];_0x53abc5['plugins']['has']('CaseChange')&&(_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x53abc5['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4f5a27{['afterInit'](){const _0x480c5f=this['editor'];_0x480c5f['commands']['get']('ckbox')&&_0x480c5f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4f5a27{['afterInit'](){const _0x2a364e=this['editor'];if(!_0x2a364e['plugins']['has']('CodeBlock'))return;const _0x585096=_0x2a364e['plugins']['get']('TrackChangesEditing'),_0x25b7ce=_0x2a364e['locale'],_0x641669=_0x2a364e['config']['get']('codeBlock')['languages'],_0x5ecc42=_0x2a364e['commands']['get']('codeBlock');_0x585096['enableCommand']('indentCodeBlock'),_0x585096['enableCommand']('outdentCodeBlock'),_0x585096['enableCommand']('codeBlock',(_0xa32372,_0x2e21c9={})=>{const _0x521d38=_0x2a364e['model'],_0x490482=_0x2a364e['model']['document']['selection'],_0x55019b=_0x2e21c9&&void 0x0!==_0x2e21c9['forceValue']?_0x2e21c9['forceValue']:!_0x5ecc42['value'];let _0x5c4c52;_0x2e21c9['language']||(_0x2e21c9['language']=_0x641669[0x0]['language']),_0x5c4c52=_0x55019b?Array['from'](_0x490482['getSelectedBlocks']())['filter'](_0xa14f52=>eo(_0xa14f52)||function(_0x44ef58,_0x576129){if(_0x44ef58['is']('rootElement')||_0x576129['isLimit'](_0x44ef58))return!0x1;return _0x576129['checkChild'](_0x44ef58['parent'],'codeBlock');}(_0xa14f52,_0x521d38['schema'])):Array['from'](_0x490482['getSelectedBlocks']())['filter'](_0x49ad3b=>eo(_0x49ad3b));const _0x2cacb8=to(_0x5c4c52,_0x521d38);_0x521d38['change'](()=>{for(const _0x1e88f3 of _0x2cacb8)_0x585096['markBlockFormat'](_0x1e88f3,{'commandName':'codeBlock','commandParams':[{..._0x2e21c9,'forceValue':_0x55019b}],'formatGroupId':'blockName'});});}),(_0x585096['descriptionFactory']['registerElementLabel']('codeBlock',_0x3d822b=>o(_0x25b7ce,'ELEMENT_CODE_BLOCK',_0x3d822b)),_0x585096['descriptionFactory']['registerDescriptionCallback'](_0x439655=>{if('formatBlock'!=_0x439655['type'])return;const _0x44f0f0=_0x25b7ce['t'],{data:_0x4d018c}=_0x439655;if(!_0x4d018c||'codeBlock'!=_0x4d018c['commandName'])return;const _0x38426b=_0x4d018c['commandParams'][0x0]['language'],_0x576783=_0x44f0f0(_0x641669['find'](_0x472c6a=>_0x472c6a['language']===_0x38426b)['label'])['toLowerCase']();return _0x4d018c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x25b7ce,'*Set\x20format:*\x20%0',o(_0x25b7ce,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x576783+')')}:{'type':'format','content':o(_0x25b7ce,'*Remove\x20format:*\x20%0',o(_0x25b7ce,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2473d7){return'codeBlock'==_0x2473d7['name'];}class H extends _0x4f5a27{['afterInit'](){const _0x1d5f7c=this['editor'];if(!_0x1d5f7c['plugins']['has']('CommentsEditing'))return;_0x1d5f7c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18da80,_0x337ab3,_0x521202){const _0x1866da=[];for(const _0xeccf74 of _0x337ab3['getItems']())_0xeccf74['hasAttribute'](_0x18da80)&&_0x1866da['push'](_0x521202['createRangeOn'](_0xeccf74));return _0x1866da;}function _e(_0xe62250,_0x31d6c1,{showActiveMarker:_0x17efad=!0x0}={}){const _0x2da31f=_0xe62250['plugins']['get']('TrackChangesEditing');return(_0x4b653f,_0x4f33b6,_0x2fecd9)=>{if(!_0x2fecd9['consumable']['test'](_0x4f33b6['markerRange'],_0x4b653f['name']))return;const _0x4efbf2=_0x4f33b6['markerRange']['getWalker'](),_0xaf3c55=_0x4f33b6['markerRange']['start'],_0x372375=_0xe62250['model']['schema'];let _0xa78eb7=null,_0x2b87a1=null,_0x584304=!0x1,_0x350835=!0x1;for(const _0x1ed21d of _0x4efbf2){const _0x2f16dd=_0x1ed21d['item'];_0x584304=_0x584304||_0x372375['isContent'](_0x2f16dd);const _0x4982a2=_0x2fecd9['mapper']['toViewElement'](_0x2f16dd);if(_0x4982a2&&_0x4982a2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1ed21d['type']&&(_0x372375['isBlock'](_0x2f16dd)&&!_0x372375['isLimit'](_0x2f16dd)&&(_0x2f16dd['nextSibling']||_0xaf3c55['isAtEnd']?_0xa78eb7&&_0xa78eb7['parent']==_0x2f16dd||(_0xa78eb7=_0x2f16dd,_0x5e4ad1(_0x1ed21d['previousPosition']),_0x350835=!0x0):_0x2b87a1=_0x2b87a1||_0x1ed21d['previousPosition']));}function _0x5e4ad1(_0x11a210){const _0x1e4de5=_0x2fecd9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31d6c1}),_0x45b2c0=_0x2fecd9['mapper']['toViewPosition'](_0x11a210);_0x17efad&&_0x2da31f['activeMarkers']['includes'](_0x4f33b6['markerName'])&&_0x2fecd9['writer']['addClass']('ck-suggestion-marker--active',_0x1e4de5),_0x2fecd9['writer']['insert'](_0x45b2c0,_0x1e4de5),_0x2fecd9['mapper']['bindElementToMarker'](_0x1e4de5,_0x4f33b6['markerName']);}_0x584304||_0x350835||!_0x2b87a1||_0x5e4ad1(_0x2b87a1);};}class q extends _0x4f5a27{static get['requires'](){return[_0x44d923];}['init'](){const _0x5b2c9a=this['editor'],_0x5433c4=_0x5b2c9a['plugins']['get']('TrackChangesEditing');_0x5433c4['enableCommand']('delete');const _0x3fc834=_0x5b2c9a['commands']['get']('deleteForward');_0x5433c4['enableCommand']('deleteForward',(_0x473603,_0x2fde4b={})=>{const _0x303623=_0x5b2c9a['model']['createSelection'](_0x5b2c9a['model']['document']['selection']);_0x303623['isCollapsed']&&_0x5b2c9a['model']['modifySelection'](_0x303623,{'direction':'forward','unit':_0x2fde4b['unit']});const _0x2753dc=_0x303623['getFirstRange'](),_0x1804fe=_0x828bf8['fromRange'](_0x2753dc);let _0x35dfbb;_0x473603(_0x2fde4b),_0x35dfbb='$graveyard'==_0x1804fe['root']['rootName']?_0x5b2c9a['model']['createRange'](_0x2753dc['start']):_0x5b2c9a['model']['createRange'](_0x1804fe['start'],_0x1804fe['end']),_0x1804fe['detach'](),_0x5b2c9a['model']['enqueueChange'](_0x3fc834['buffer']['batch'],_0x5b6487=>{_0x3fc834['buffer']['lock'](),_0x5b6487['setSelection'](_0x5b6487['createRange'](_0x35dfbb['end'])),_0x3fc834['buffer']['unlock']();});}),_0x5b2c9a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5b2c9a,'merge'),{'priority':'high'}),_0x5b2c9a['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x5522cb,_0x19b721,_0x19eac4)=>{_0x19eac4['options']['showSuggestionHighlights']&&_e(_0x5b2c9a,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x5522cb,_0x19b721,_0x19eac4);},{'priority':'high'}),_0x5b2c9a['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x508196,_0x14da1b,_0x49b165)=>{const _0x368f0c=_0x49b165['mapper']['markerNameToElements'](_0x14da1b['markerName']);if(_0x368f0c){for(const _0x2f3705 of _0x368f0c)_0x2f3705['is']('uiElement')&&(_0x49b165['mapper']['unbindElementFromMarkerName'](_0x2f3705,_0x14da1b['markerName']),_0x49b165['writer']['remove'](_0x2f3705));}},{'priority':'high'});}}class z extends _0x4f5a27{['afterInit'](){const _0x34fe5e=this['editor'];if(!_0x34fe5e['plugins']['has']('ListEditing'))return;const _0x277d45=_0x34fe5e['locale'],_0x245526=_0x34fe5e['plugins']['get']('TrackChangesEditing'),_0x2be123=_0x34fe5e['plugins']['has']('TodoListEditing'),_0x363b44=!!_0x34fe5e['config']['get']('list.multiBlock');function _0x37fd60(_0x2cda16){return{'type':'format','content':''+o(_0x277d45,'*Set\x20format:*\x20%0',_0x2cda16)};}function _0x2aebeb(_0x46de32){return{'type':'format','content':''+o(_0x277d45,'*Remove\x20format:*\x20%0',_0x46de32)};}_0x245526['enableDefaultAttributesIntegration']('numberedList'),_0x245526['enableDefaultAttributesIntegration']('bulletedList'),_0x245526['enableDefaultAttributesIntegration']('customNumberedList'),_0x245526['enableDefaultAttributesIntegration']('customBulletedList'),_0x245526['enableDefaultAttributesIntegration']('indentList'),_0x245526['enableDefaultAttributesIntegration']('outdentList'),_0x245526['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x245526['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x245526['registerBlockAttribute']('listItemId'),_0x245526['registerBlockAttribute']('listType'),_0x245526['registerBlockAttribute']('listIndent'),_0x363b44&&(_0x245526['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x245526['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2be123&&(_0x245526['enableDefaultAttributesIntegration']('todoList'),_0x245526['enableDefaultAttributesIntegration']('checkTodoList'),_0x245526['registerBlockAttribute']('todoListChecked'),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x58492e=>{const {data:_0x15d915}=_0x58492e;if(_0x15d915&&'todoListChecked'==_0x15d915['key'])return{'type':'format','content':_0x15d915['newValue']?o(_0x277d45,'*Check\x20item*'):o(_0x277d45,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x256d71=>{if(_0x256d71['batch']['isUndo'])return!0x1;let _0x56003f=!0x1;const _0x13318d=_0x245526['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x111b51=>'todoListChecked'===_0x245526['_getAttributeKey'](_0x111b51));for(const _0x3a5280 of _0x13318d){'todo'!=_0x3a5280['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x245526['_findSuggestions'](_0x3a5280['getFirstRange'](),'attribute')['find'](_0xb8c8bb=>'listType'===_0x245526['_getAttributeKey'](_0xb8c8bb['suggestion']))||(_0x256d71['removeMarker'](_0x3a5280['getFirstMarker']()),_0x56003f=!0x0));}return _0x56003f;})),_0x245526['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x277d45,'FORMAT_INDENT'));const _0x34f46e={'type':'format','content':''};_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x552d78=>{const {data:_0xbd37e}=_0x552d78;if(!_0xbd37e||'listType'!=_0xbd37e['key'])return;let _0x25cb5d=_0x552d78['head'];for(;_0x25cb5d;){if(_0x25cb5d['data']&&(('listStyle'==_0x25cb5d['data']['key']||'listMarkerStyle'==_0x25cb5d['data']['key'])&&(_0x25cb5d['data']['newValue']&&'default'!=_0x25cb5d['data']['newValue']||'default'!=_0x25cb5d['data']['oldValue']&&!_0xbd37e['newValue'])||!_0x363b44&&_0x25cb5d['data']['key']==m))return _0x34f46e;_0x25cb5d=_0x25cb5d['next'];}if(null==_0xbd37e['newValue'])switch(_0xbd37e['oldValue']){case'bulleted':return _0x2aebeb(o(_0x277d45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2aebeb(o(_0x277d45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2aebeb(o(_0x277d45,'ELEMENT_TODO_LIST'));}switch(_0xbd37e['newValue']){case'bulleted':return _0x37fd60(o(_0x277d45,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x37fd60(o(_0x277d45,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x37fd60(o(_0x277d45,'ELEMENT_TODO_LIST'));}}),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x3c1ad6=>{const {data:_0x9fbf63}=_0x3c1ad6;if(_0x9fbf63&&'listIndent'==_0x9fbf63['key'])return null==_0x9fbf63['newValue']||null==_0x9fbf63['oldValue']&&0x0==_0x9fbf63['newValue']?_0x34f46e:void 0x0;}),_0x245526['descriptionFactory']['registerDescriptionCallback'](_0x33da4c=>{if('attribute'!=_0x33da4c['type'])return;const {data:_0x2d6a6c}=_0x33da4c;if(!_0x2d6a6c||'listItemId'!=_0x2d6a6c['key'])return;const _0x1672fb=le(_0x33da4c);return'newValue'==_0x1672fb?{'type':'format','content':o(_0x277d45,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1672fb?{'type':'format','content':o(_0x277d45,'*Split:*\x20list\x20item')}:_0x34f46e;}),_0x34fe5e['model']['document']['registerPostFixer'](_0x42d4a1=>this['listItemIdFixer'](_0x42d4a1)),_0x34fe5e['model']['document']['registerPostFixer'](_0x4f827d=>this['noTrackChangesFixer'](_0x4f827d)),_0x34fe5e['model']['document']['registerPostFixer'](_0x645b98=>this['assureChains'](_0x645b98)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x494c25){if(_0x494c25['batch']['isUndo']||!_0x494c25['batch']['isLocal'])return!0x1;let _0x34c020=!0x1;const _0x13e2bc=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a9b74=>_0x4a9b74['data']&&'listItemId'==_0x4a9b74['data']['key'])['filter'](_0x2ecda6=>_0x2ecda6['data']['newValue']&&_0x2ecda6['data']['oldValue']);for(const _0xdc78e9 of _0x13e2bc)le(_0xdc78e9)||(_0x494c25['removeMarker'](_0xdc78e9['getFirstMarker']()),_0x34c020=!0x0);return _0x34c020;}['noTrackChangesFixer'](_0x82b2ff){if(_0x82b2ff['batch']['isUndo']||!_0x82b2ff['batch']['isLocal'])return!0x1;const _0x30ff5b=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30ff5b['trackChangesCommand']['value'])return!0x1;let _0x32d695=!0x1;const _0xf85fd0=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x168e29=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x92fb5e=>'attribute'==_0x92fb5e['type'])['filter'](_0x5a9c8c=>_0xf85fd0['includes'](_0x5a9c8c['attributeKey']));if(0x0==_0x168e29['length'])return _0x32d695;for(const _0x2cab1c of _0x168e29){const _0x4206e3=_0x30ff5b['_findSuggestions'](_0x2cab1c['range'],'attribute')['filter'](_0x3726f2=>!_0x3726f2['meta']['isNextTo'])['map'](_0x3e3d70=>_0x3e3d70['suggestion'])['filter'](_0x346cf0=>{const _0x19de58=_0x30ff5b['_getAttributeKey'](_0x346cf0);return _0xf85fd0['includes'](_0x19de58);});if(_0x4206e3['length']){for(const _0x2b95c8 of _0x4206e3)_0x82b2ff['removeMarker'](_0x2b95c8['getFirstMarker']());_0x32d695=!0x0;}}return _0x32d695;}['assureChains'](_0x576912){if(_0x576912['batch']['isUndo']||!_0x576912['batch']['isLocal'])return!0x1;const _0x1fb156=this['editor']['plugins']['get']('TrackChangesEditing');let _0x11c2a8=!0x1;const _0x881953=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x51ba47 of _0x1fb156['getSuggestions']({'skipNotAttached':!0x0})){const _0x4ad521=_0x1fb156['_findSuggestions'](_0x51ba47['getFirstRange'](),'attribute')['map'](_0x53dfe3=>_0x53dfe3['suggestion'])['filter'](_0x40e4e1=>_0x40e4e1['data']&&_0x881953['includes'](_0x40e4e1['data']['key']));if(!_0x4ad521['length'])continue;const _0x4d2cd5=_0x4ad521[0x0]['head']['attributes']['groupId'];if(!_0x4ad521['every'](_0x258656=>_0x258656['attributes']['groupId']===_0x4d2cd5)){for(const _0x5d3fb6 of _0x4ad521)_0x1a5e77(_0x5d3fb6,_0x4d2cd5)&&(_0x11c2a8=!0x0);}}return _0x11c2a8;function _0x4bc75f(_0xce13a2,_0x1dfd4e){for(const _0x3c8b56 of _0x1fb156['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5858ee=>'attribute'==_0x5858ee['type']&&_0x5858ee['attributes']['groupId']==_0xce13a2))_0x3c8b56['setAttribute']('groupId',_0x1dfd4e);}function _0x1a5e77(_0x1e4126,_0x3eaba0){let _0x3bd999=_0x1e4126['head'],_0x25db44=!0x1;for(;_0x3bd999;)_0x3bd999['attributes']['groupId']!=_0x3eaba0&&(_0x4bc75f(_0x3bd999['attributes']['groupId'],_0x3eaba0),_0x3bd999['setAttribute']('groupId',_0x3eaba0),_0x25db44=!0x0),_0x3bd999=_0x3bd999['next'];return _0x25db44;}}['_supportLegacySuggestions'](){const _0x12ac6f=this['editor'],_0x54d9fb=_0x12ac6f['locale'],_0x49b687=_0x12ac6f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x49b687['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x473c30,_0x1b2051){const _0x32fe9c=[];for(let _0x2afa34 of _0x473c30)_0x2afa34['start']['nodeAfter']===_0x2afa34['end']['parent']&&(_0x2afa34=_0x12ac6f['model']['createRange'](_0x12ac6f['model']['createPositionAt'](_0x2afa34['start']['nodeAfter'],0x0))),_0x32fe9c['push'](_0x2afa34);_0x12ac6f['model']['change'](_0x899e8c=>{const _0x27fe3e=_0x12ac6f['model']['document']['selection'],_0x208749=Array['from'](_0x27fe3e['getRanges']())['map'](_0x423032=>_0x828bf8['fromRange'](_0x423032));_0x899e8c['setSelection'](_0x32fe9c),_0x12ac6f['commands']['get'](_0x1b2051['commandName'])['refresh'](),_0x1b2051['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x12ac6f['execute'](_0x1b2051['commandName'],..._0x1b2051['commandParams']),_0x899e8c['setSelection'](_0x208749);for(const _0x5a19d4 of _0x208749)_0x5a19d4['detach']();});}),_0x49b687['descriptionFactory']['registerElementLabel'](function(_0x24b7d9){const _0xc85703=!_0x12ac6f['model']['schema']['isObject'](_0x24b7d9),_0x49a1ea=_0x24b7d9['previousSibling'],_0x4857a8=_0x24b7d9['nextSibling'],_0x122ab1=_0x24b7d9['getAttribute']('listItemId'),_0x132a35=!_0x49a1ea||_0x49a1ea['getAttribute']('listItemId')!==_0x122ab1,_0x5b4529=!_0x4857a8||_0x4857a8['getAttribute']('listItemId')!==_0x122ab1;return _0xc85703&&Boolean(_0x122ab1)&&_0x132a35&&_0x5b4529;},_0x334b3d=>o(_0x54d9fb,'ELEMENT_LIST_ITEM',_0x334b3d));}['_registerLegacyDescription'](){const _0x84f18f=this['editor'],_0x4fed47=_0x84f18f['locale'];function _0x4550dc(_0x5063c2){const _0x4d9411=_0x84f18f['commands']['get']('bulletedList')['value'],_0x3752fd=_0x84f18f['commands']['get']('numberedList')['value'];return'numberedList'===_0x5063c2?_0x4d9411:_0x3752fd;}_0x84f18f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x59b709){if('formatBlock'!=_0x59b709['type'])return;const {data:_0x2f6637}=_0x59b709;if(!_0x2f6637)return;let _0x5e4a2c,_0x5541da,_0x1c8ff7,_0x49ffa4;switch(_0x2f6637['commandName']){case'bulletedList':_0x1c8ff7=_0x2f6637['commandParams'][0x0]['forceValue'],_0x49ffa4=_0x4550dc(_0x2f6637['commandName']),_0x5e4a2c=_0x1c8ff7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49ffa4&&_0x84f18f['config']['get']('list.multiBlock')||(_0x5e4a2c='*Change\x20to:*\x20%0'),_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1c8ff7=_0x2f6637['commandParams'][0x0]['forceValue'],_0x49ffa4=_0x4550dc(_0x2f6637['commandName']),_0x5e4a2c=_0x1c8ff7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x49ffa4&&_0x84f18f['config']['get']('list.multiBlock')||(_0x5e4a2c='*Change\x20to:*\x20%0'),_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5e4a2c='*Indent:*\x20%0',_0x5541da={'type':'format','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5e4a2c=function(_0x393c21){const _0x4f83c1=_0x393c21['getFirstRange']();let _0x9409ed=_0x4f83c1['start']['nodeAfter'];for(;_0x9409ed&&_0x4f83c1['containsItem'](_0x9409ed);){if(_0x9409ed['getAttribute']('listIndent')>0x0)return!0x1;_0x9409ed=_0x9409ed['nextSibling'];}return!0x0;}(_0x59b709)?o(_0x4fed47,'*Format:*\x20remove\x20from\x20%0',o(_0x4fed47,function(_0x16af07){return'ELEMENT_'+_0x16af07['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x59b709))):o(_0x4fed47,'*Outdent:*\x20%0',o(_0x4fed47,'ELEMENT_LIST_ITEM')),_0x5541da={'type':'format','content':_0x5e4a2c};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2f6637['multipleBlocks']&&(_0x5e4a2c='*Merge:*\x20%0',_0x5541da={'type':'deletion','content':o(_0x4fed47,_0x5e4a2c,o(_0x4fed47,'ELEMENT_LIST_ITEM'))});}return _0x5541da;});}}function le(_0x4a447e){let _0x4e8ec9=_0x4a447e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e8ec9;){const _0x2145b3=_0x4e8ec9['getAttribute']('listItemId');if(!_0x2145b3)return!0x1;if(_0x2145b3==_0x4a447e['data']['newValue'])return'newValue';if(_0x2145b3==_0x4a447e['data']['oldValue'])return'oldValue';_0x4e8ec9=_0x4e8ec9['previousSibling'];}return!0x1;}class ue extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x51c35d=this['editor']['config']['get']('list.properties'),_0x2f39a7=this['editor']['plugins']['get']('TrackChangesEditing');_0x51c35d['styles']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listStyle'),_0x2f39a7['registerBlockAttribute']('listStyle')),_0x51c35d['reversed']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listReversed'),_0x2f39a7['registerBlockAttribute']('listReversed')),_0x51c35d['startIndex']&&(_0x2f39a7['enableDefaultAttributesIntegration']('listStart'),_0x2f39a7['registerBlockAttribute']('listStart'));const _0x138edc={'type':'format','content':''};_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xcef5c0=this['editor']['locale'];_0x2f39a7['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xcef5c0,'FORMAT_LIST_REVERSED')),_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](_0x296c38=>{const {data:_0x2e2045}=_0x296c38;if(_0x2e2045&&'listReversed'==_0x2e2045['key'])return null==_0x2e2045['newValue']||0x0==_0x2e2045['newValue']&&null==_0x2e2045['oldValue']?_0x138edc:void 0x0;}),_0x2f39a7['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xcef5c0,'FORMAT_LIST_START')),_0x2f39a7['descriptionFactory']['registerDescriptionCallback'](_0x4020b5=>{const {data:_0x2df8fc}=_0x4020b5;if(_0x2df8fc&&'listStart'==_0x2df8fc['key'])return null==_0x2df8fc['newValue']||0x1==_0x2df8fc['newValue']&&null==_0x2df8fc['oldValue']?_0x138edc:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1ad883=>{if(_0x1ad883['batch']['isUndo'])return!0x1;let _0x1a7f5b=!0x1;const _0x4233ab=_0x2f39a7['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x124204=>{const _0x429e17=_0x2f39a7['_getAttributeKey'](_0x124204);return'listStart'==_0x429e17||'listReversed'==_0x429e17;});for(const _0x378d0a of _0x4233ab){const _0x30f99d=_0x378d0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x30f99d||'customNumbered'==_0x30f99d)continue;_0x2f39a7['_findSuggestions'](_0x378d0a['getFirstRange'](),'attribute')['find'](_0x3fcdc2=>'listType'==_0x2f39a7['_getAttributeKey'](_0x3fcdc2['suggestion']))||(_0x1ad883['removeMarker'](_0x378d0a['getFirstMarker']()),_0x1a7f5b=!0x0);}return _0x1a7f5b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x122048){const _0x3134e4=this['editor']['locale'],{data:_0xe6e18b}=_0x122048,_0x2d5d30={'type':'format','content':''};if(!_0xe6e18b||'listStyle'!=_0xe6e18b['key'])return;if(!_0xe6e18b['oldValue'])return'default'==_0xe6e18b['newValue']?_0x2d5d30:{'type':'format','content':''+o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['newValue'])))};if(!_0xe6e18b['newValue']){if('default'==_0xe6e18b['oldValue'])return _0x2d5d30;let _0x14f764=_0x122048['head'];for(;_0x14f764;){if(_0x14f764['data']&&'listType'==_0x14f764['data']['key']&&_0x14f764['data']['newValue'])return _0x2d5d30;_0x14f764=_0x14f764['next'];}return{'type':'format','content':''+o(_0x3134e4,'*Remove\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['oldValue'])))};}if('default'!=_0xe6e18b['newValue'])return{'type':'format','content':''+o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,this['_getTranslationKeyForListStyle'](_0xe6e18b['newValue'])))};let _0x20381f=_0x122048['head'];for(;_0x20381f;){if(_0x20381f['data']&&'listType'==_0x20381f['data']['key']&&_0x20381f['data']['newValue']&&_0x20381f['data']['oldValue'])return _0x2d5d30;_0x20381f=_0x20381f['next'];}return{'type':'format','content':o(_0x3134e4,'*Set\x20format:*\x20%0',o(_0x3134e4,'ELEMENT_'+_0x122048['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x266fd8=this['editor'],_0x1d0f99=_0x266fd8['locale'];_0x266fd8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31877a=>{if('formatBlock'!=_0x31877a['type'])return;const {data:_0x12f8a5}=_0x31877a;if(!_0x12f8a5)return;let _0x11a55b,_0x5533c0;switch(_0x12f8a5['commandName']){case'listStyle':_0x11a55b='*Change\x20to:*\x20%0',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b,o(_0x1d0f99,this['_getTranslationKeyForListStyle'](_0x12f8a5['commandParams'][0x0]['type'])))};break;case'listReversed':_0x11a55b=_0x12f8a5['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b)};break;case'listStart':_0x11a55b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5533c0={'type':'format','content':o(_0x1d0f99,_0x11a55b,_0x12f8a5['commandParams'][0x0]['startIndex'])};}return _0x5533c0;});}['_getTranslationKeyForListStyle'](_0x557a6b){return'ELEMENT_'+function(_0x4aa9a2){if(pe['includes'](_0x4aa9a2))return'bulleted';if(ye['includes'](_0x4aa9a2))return'numbered';return null;}(_0x557a6b)['toUpperCase']()+'_LIST_'+_0x557a6b['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4f5a27{static get['requires'](){return[_0x2577bf];}['init'](){const _0x2d6eda=this['editor'],_0x2d9fc8=_0x2d6eda['plugins']['get']('TrackChangesEditing'),_0x14de2d=_0x2d6eda['commands']['get']('enter');_0x2d9fc8['enableCommand']('enter',()=>{_0x2d6eda['model']['change'](_0x5a1bc2=>{const _0x50f08b=_0x2d6eda['model']['document']['selection'],_0x590e8d=_0x50f08b['getFirstPosition'](),_0x53f5e8=_0x828bf8['fromRange'](_0x50f08b['getFirstRange']());if(_0x14de2d['enterBlock'](_0x5a1bc2)){const _0x5d8577=_0x2d6eda['model']['createPositionAt'](_0x590e8d['parent']['nextSibling'],0x0),_0x3c2074=_0x5a1bc2['createRange'](_0x590e8d,_0x5d8577);_0x2d9fc8['markInsertion'](_0x3c2074);}else _0x5a1bc2['setSelection'](_0x5a1bc2['createRange'](_0x53f5e8['end']));_0x53f5e8['detach'](),_0x14de2d['fire']('afterExecute',{'writer':_0x5a1bc2});});}),_0x2d6eda['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2d6eda,'split'),{'priority':'high'}),_0x2d6eda['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4b3082,_0x5caf87,_0xfa5d78)=>{const _0x5a5867=_0xfa5d78['mapper']['markerNameToElements'](_0x5caf87['markerName']);if(_0x5a5867){for(const _0x104708 of _0x5a5867)_0x104708['hasClass']('ck-suggestion-marker-split')&&(_0xfa5d78['mapper']['unbindElementFromMarkerName'](_0x104708,_0x5caf87['markerName']),_0xfa5d78['writer']['remove'](_0x104708));}},{'priority':'high'}),_0x2d6eda['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1d0f93,_0x218b15,_0xe96d5a)=>{_0xe96d5a['options']['showSuggestionHighlights']&&_e(_0x2d6eda,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1d0f93,_0x218b15,_0xe96d5a);},{'priority':'high'});}}class J extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x50bbf2=this['editor']['plugins']['get']('TrackChangesEditing');_0x50bbf2['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x50bbf2['enableCommand']('findNext'),_0x50bbf2['enableCommand']('findPrevious'),_0x50bbf2['enableCommand']('replace'),_0x50bbf2['enableCommand']('replaceAll');}['handleFindCommand'](_0x352456,_0x2b1e67,_0x5afc46={}){const _0x410c79=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x352456(_0x4adf9f=>('string'==typeof _0x2b1e67?_0x410c79['findByTextCallback'](_0x2b1e67,_0x5afc46):_0x2b1e67)(_0x4adf9f)['filter'](_0x148c57=>!0x1===this['_isInDeletionRange'](_0x148c57,_0x4adf9f['item'])),_0x5afc46);}['_isInDeletionRange'](_0x41a54b,_0x535b02){const _0x38a2fe=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x535b02,_0x41a54b['start']),this['editor']['model']['createPositionAt'](_0x535b02,_0x41a54b['end']));for(const _0x4cbe83 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38a2fe['getIntersection'](_0x4cbe83['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4f5a27{['afterInit'](){const _0x39c37b=this['editor']['locale'],_0x7e519d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x389e1f,commandName:_0x413c4c}of ro)this['editor']['plugins']['has'](_0x389e1f)&&(_0x7e519d['enableDefaultAttributesIntegration'](_0x413c4c),_0x7e519d['registerInlineAttribute'](_0x413c4c));_0x39c37b['t'],_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x39c37b,'FORMAT_FONT_SIZE')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x39c37b,'FORMAT_FONT_FAMILY')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x39c37b,'FORMAT_FONT_COLOR')),_0x7e519d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x39c37b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x532b40=this['editor'],_0x20aec6=_0x532b40['locale'];_0x532b40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5da8d7=>{const _0x1c5d1f=_0x20aec6['t'];if('formatInline'!=_0x5da8d7['type'])return;const {data:_0x2d0a92}=_0x5da8d7;if(null!=_0x2d0a92){if('fontSize'==_0x2d0a92['commandName']){const _0x44ee17=_0x2d0a92['commandParams'][0x0]['value'];if(_0x44ee17){const _0x5b1b5a=_0x1c5d1f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x67842=>_0x67842['model']==_0x44ee17)['title'])['toLowerCase']();return{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20size:*\x20%0',_0x5b1b5a)};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2d0a92['commandName']){const _0x3212e2=_0x2d0a92['commandParams'][0x0]['value'];return _0x3212e2?{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20family:*\x20%0',_0x3212e2)}:{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2d0a92['commandName']){const _0x166bb1=_0x2d0a92['commandParams'][0x0]['value'];if(_0x166bb1){const _0x46ae44=_0xa41901(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3a7c57=>_0x3a7c57['model']==_0x166bb1);let _0x203d61=_0x166bb1,_0x4e13df='';return _0x46ae44&&(_0x203d61=_0x46ae44['label'],_0x4e13df=_0x1c5d1f(_0x203d61)['toLowerCase']()),{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20color:*\x20%0',_0x4e13df)['trim'](),'color':{'value':_0x166bb1,'title':_0x4e13df||_0x203d61}};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2d0a92['commandName']){const _0x596ba8=_0x2d0a92['commandParams'][0x0]['value'];if(_0x596ba8){const _0x3a0599=_0xa41901(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x47eed4=>_0x47eed4['model']==_0x596ba8);let _0x1a1af8=_0x596ba8,_0x2520fd='';return _0x3a0599&&(_0x1a1af8=_0x3a0599['label'],_0x2520fd=_0x1c5d1f(_0x1a1af8)['toLowerCase']()),{'type':'format','content':o(_0x20aec6,'*Set\x20font\x20background\x20color:*\x20%0',_0x2520fd)['trim'](),'color':{'value':_0x596ba8,'title':_0x2520fd||_0x1a1af8}};}return{'type':'format','content':o(_0x20aec6,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4f5a27{['afterInit'](){const _0x3fa478=this['editor'],_0x110700=_0x3fa478['plugins']['get']('TrackChangesEditing'),_0x253c91=_0x3fa478['commands']['get']('copyFormat'),_0x1ed7fb=_0x3fa478['commands']['get']('pasteFormat');_0x253c91&&_0x1ed7fb&&(_0x110700['enableDefaultAttributesIntegration']('pasteFormat'),_0x110700['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3eceda=this['editor'],_0x5aed93=_0x3eceda['locale'];_0x3eceda['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4adda2=>{if('formatBlock'!=_0x4adda2['type']&&'formatInline'!=_0x4adda2['type'])return;const {data:_0x383018}=_0x4adda2;if(_0x383018&&'pasteFormat'===_0x383018['commandName']){const _0x1e61f7=[],_0x4171ad=_0x383018['commandParams'][0x0];for(const [_0x3e7aa4,_0xf4f55b]of Object['entries'](_0x4171ad))_0x1e61f7['push'](so(_0x3eceda,_0x3e7aa4,_0xf4f55b));return _0x1e61f7['length']?{'type':'format','content':o(_0x5aed93,'*Set\x20format\x20to:*\x20%0',_0x1e61f7['join'](',\x20'))}:{'type':'format','content':o(_0x5aed93,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1282ad,_0x92ac9b,_0xf783a8){const _0x270438=_0x1282ad['locale']['t'],_0x442abe=_0x92ac9b['split'](/(?=[A-Z])/)['join']('\x20'),_0x103f64=_0x270438(_0x442abe['charAt'](0x0)['toUpperCase']()+_0x442abe['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf783a8)return _0x103f64;if('fontColor'===_0x92ac9b||'fontBackgroundColor'===_0x92ac9b){const _0x299db1=_0xa41901(_0x1282ad['config']['get']('fontColor.colors'))['find'](_0x8c591a=>_0x8c591a['model']==_0xf783a8);return _0x103f64+'\x20('+(_0x299db1?_0x270438(_0x299db1['label'])['toLowerCase']():_0xf783a8)+')';}if('fontSize'===_0x92ac9b&&isNaN(parseFloat(_0xf783a8))){const _0x17e497=_0x1282ad['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1282ad['config']['get']('fontSize.options'))['find'](_0x7fce76=>_0x7fce76['model']==_0xf783a8);return _0x103f64+'\x20('+(_0x17e497?_0x270438(_0x17e497['title'])['toLowerCase']():_0xf783a8)+')';}return _0x103f64+'\x20('+_0xf783a8+')';}class Y extends _0x4f5a27{['_headingOptions'];['afterInit'](){const _0x22ba07=this['editor'];if(!_0x22ba07['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x22ba07['config']['get']('heading.options');const _0x51cc82=_0x22ba07['locale'],_0x4d9193=_0x22ba07['plugins']['get']('TrackChangesEditing');_0x4d9193['enableDefaultAttributesIntegration']('heading');for(const _0x341fa6 of this['_headingOptions'])'paragraph'!=_0x341fa6['model']&&_0x4d9193['descriptionFactory']['registerElementLabel'](_0x341fa6['model'],_0x29057b=>{const _0x4bf998=this['_getHeadingLevel'](_0x341fa6['model']);return null!==_0x4bf998?_0x542855(_0x29057b,_0x4bf998):_0xd6c85d(_0x29057b,_0x341fa6['title']);});function _0x542855(_0x2193c2,_0x5bcbab){return o(_0x51cc82,'ELEMENT_HEADING',[_0x2193c2,_0x5bcbab]);}function _0xd6c85d(_0x25683c,_0x5725d1){return o(_0x51cc82,'ELEMENT_HEADING_CUSTOM',[_0x25683c,_0x5725d1]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x634b63=this['editor'],_0x4ea064=_0x634b63['locale'];function _0x11ce55(_0x10c759,_0x30923e){return o(_0x4ea064,'ELEMENT_HEADING_CUSTOM',[_0x10c759,_0x30923e]);}_0x634b63['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x383fe0=>{if('formatBlock'!=_0x383fe0['type'])return;const {data:_0xf1ff63}=_0x383fe0;if(_0xf1ff63&&'heading'==_0xf1ff63['commandName']){const _0x1010b8=_0xf1ff63['commandParams'][0x0]['value'],_0x2cadcd=this['_getHeadingLevel'](_0x1010b8);if(null!==_0x2cadcd)return{'type':'format','content':o(_0x4ea064,'*Change\x20to:*\x20%0',(_0x70066d=0x1,_0x297bf8=_0x2cadcd,o(_0x4ea064,'ELEMENT_HEADING',[_0x70066d,_0x297bf8])))};const _0xd41509=this['_headingOptions']['find'](_0x330345=>_0x330345['model']===_0x1010b8)['title'];return{'type':'format','content':o(_0x4ea064,'*Change\x20to:*\x20%0',_0x11ce55(0x1,_0xd41509))};}var _0x70066d,_0x297bf8;});}['_getHeadingLevel'](_0x43cddd){const _0x10bfa5=_0x43cddd['match'](/^heading(\d+)/);if(_0x10bfa5)return _0x10bfa5[0x1];const _0x1aa530=this['_headingOptions']?.['find'](_0x30dfe3=>_0x30dfe3['model']==_0x43cddd);if(_0x1aa530&&_0x1aa530['view']){const _0x47f864=_0x1aa530['view'],_0x14480a=(_0x47f864['name']??_0x47f864)['match'](/^h(\d+)/);if(_0x14480a)return _0x14480a[0x1];}return null;}}class Z extends _0x4f5a27{['afterInit'](){const _0x455123=this['editor'];if(!_0x455123['plugins']['has']('HighlightEditing'))return;const _0x50fcd1=_0x455123['plugins']['get']('TrackChangesEditing'),_0x18e4ea=_0x455123['locale'];_0x50fcd1['enableDefaultAttributesIntegration']('highlight'),_0x50fcd1['registerInlineAttribute']('highlight'),_0x50fcd1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x18e4ea,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x17eceb=this['editor'],_0x460317=_0x17eceb['locale'];_0x17eceb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5ab013=>{if('formatInline'!=_0x5ab013['type'])return;const {data:_0x4e6af8}=_0x5ab013;if(_0x4e6af8&&'highlight'==_0x4e6af8['commandName']){const _0x210416=_0x460317['t'],_0x4ca36c=_0x4e6af8['commandParams'][0x0]['value'];if(_0x4ca36c){const _0x5e56b8=_0x17eceb['config']['get']('highlight.options')['find'](_0x446c2d=>_0x446c2d['model']==_0x4ca36c),_0x31298f=_0x210416(_0x5e56b8['title'])['toLowerCase']();return{'type':'format','content':o(_0x460317,'*Set\x20highlight:*\x20%0',_0x31298f),'color':{'value':_0x5e56b8['color'],'title':_0x5e56b8['title']}};}return{'type':'format','content':o(_0x460317,'*Remove\x20highlight*',o(_0x460317,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4f5a27{['afterInit'](){const _0x59d5f8=this['editor'];if(!_0x59d5f8['plugins']['has']('HorizontalLineEditing'))return;_0x59d5f8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x29e48a=_0x59d5f8['plugins']['get']('TrackChangesEditing'),_0x3cedf6=_0x59d5f8['locale'];_0x29e48a['descriptionFactory']['registerElementLabel']('horizontalLine',_0x315148=>o(_0x3cedf6,'ELEMENT_HORIZONTAL_LINE',_0x315148)),_0x59d5f8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x316d97,{writer:_0x1867eb,options:_0x4f04aa})=>{if(!_0x4f04aa['showSuggestionHighlights'])return null;const _0x32eae2=_0x1867eb['createContainerElement']('div'),_0x12d05e=_0x1867eb['createEmptyElement']('hr');return _0x1867eb['addClass']('ck-horizontal-line',_0x32eae2),_0x1867eb['insert'](_0x1867eb['createPositionAt'](_0x32eae2,0x0),_0x12d05e),_0x32eae2;},'converterPriority':'high'});}}class et extends _0x4f5a27{['afterInit'](){const _0x1b1780=this['editor'];if(!_0x1b1780['plugins']['has']('HtmlEmbed'))return;const _0x17b08d=_0x1b1780['plugins']['get']('TrackChangesEditing'),_0x52b8e4=_0x1b1780['locale'];_0x17b08d['descriptionFactory']['registerElementLabel']('rawHtml',_0x5321e8=>o(_0x52b8e4,'ELEMENT_HTML_EMBED',_0x5321e8)),_0x17b08d['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17b08d['registerBlockAttribute']('value'),_0x17b08d['descriptionFactory']['registerDescriptionCallback'](_0x4162bb=>{if('attribute'!=_0x4162bb['type'])return;const {data:_0xb79355}=_0x4162bb;if(_0xb79355&&'value'==_0xb79355['key']&&_0x4162bb['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1d04bb=o(_0x52b8e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x52b8e4,'*Change\x20%0\x20content*',_0x1d04bb)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f1aea=this['editor'],_0x1da4e4=_0x5f1aea['locale'];_0x5f1aea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3245bf=>{if('formatBlock'!=_0x3245bf['type'])return;const {data:_0x3722a1}=_0x3245bf;if(_0x3722a1&&'htmlEmbed'==_0x3722a1['commandName']){const _0x4083e7=o(_0x1da4e4,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1da4e4,'*Change\x20%0\x20content*',_0x4083e7)};}});}}class it extends _0x4f5a27{['afterInit'](){const _0x5d0006=this['editor'];if(!_0x5d0006['plugins']['has']('ImageEditing'))return;const _0x1d7ea2=_0x5d0006['plugins']['get']('TrackChangesEditing'),_0x37c613=_0x5d0006['plugins']['get']('ImageUtils'),_0x1a9a7c=_0x5d0006['locale'];_0x1d7ea2['enableCommand']('insertImage'),_0x1d7ea2['descriptionFactory']['registerElementLabel']('imageBlock',_0x263dc1=>o(_0x1a9a7c,'ELEMENT_IMAGE',_0x263dc1)),_0x1d7ea2['descriptionFactory']['registerElementLabel']('imageInline',_0x122d4e=>o(_0x1a9a7c,'ELEMENT_INLINE_IMAGE',_0x122d4e)),_0x1d7ea2['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1a9a7c,'ELEMENT_CAPTION')),_0x5d0006['plugins']['has']('ImageUploadEditing')&&_0x1d7ea2['enableCommand']('uploadImage'),_0x5d0006['plugins']['has']('ImageBlockEditing')&&_0x5d0006['plugins']['has']('ImageInlineEditing')&&(_0x1d7ea2['enableCommand']('imageTypeInline',(_0xfea71c,_0x3d4f43)=>{const _0x14e85c=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']);_0x5d0006['model']['change'](()=>{_0x1d7ea2['markBlockFormat'](_0x14e85c,{'commandName':'imageTypeInline','commandParams':[_0x3d4f43]},[],'convertBlockImageToInline');});}),_0x1d7ea2['enableCommand']('imageTypeBlock',(_0xf7f9d9,_0x269499)=>{_0x5d0006['model']['change'](_0x434ad5=>{let _0xeba3fd=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x46580c=_0x434ad5['createRangeOn'](_0xeba3fd);const _0x388d87=_0x4e2973['fromPosition'](_0x46580c['start'],'toPrevious'),_0x1dc076=_0x4e2973['fromPosition'](_0x46580c['end'],'toNext');_0x1d7ea2['forceDefaultExecution'](()=>_0xf7f9d9(_0x269499)),_0xeba3fd=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x46580c=_0x434ad5['createRangeOn'](_0xeba3fd);const _0x464614=_0x434ad5['createRange'](_0x388d87,_0x1dc076);_0x388d87['detach'](),_0x1dc076['detach'](),_0x1d7ea2['markBlockFormat'](_0xeba3fd,{'commandName':'imageTypeInline','commandParams':[_0x269499]},[],'convertInlineImageToBlock'),_0x464614['start']['isBefore'](_0x46580c['start'])&&_0x1d7ea2['markInsertion'](_0x434ad5['createRange'](_0x464614['start'],_0x46580c['start']),'convertInlineImageToBlock'),_0x46580c['end']['isBefore'](_0x464614['end'])&&_0x1d7ea2['markInsertion'](_0x434ad5['createRange'](_0x46580c['end'],_0x464614['end']),'convertInlineImageToBlock');});}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1d7ea2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2da5a1])=>{const _0x335f6e=_0x1d7ea2['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27dcaf=_0x2da5a1['start'],_0x2f06cd=_0x2da5a1['end'];const _0x563809=_0x5d0006['model']['schema']['getNearestSelectionRange'](_0x27dcaf,'backward'),_0x561711=_0x5d0006['model']['schema']['getNearestSelectionRange'](_0x2f06cd,'forward');_0x563809['isCollapsed']&&(_0x27dcaf=_0x563809['start']),_0x561711['isCollapsed']&&(_0x2f06cd=_0x561711['end']),_0x335f6e([_0x5d0006['model']['createRange'](_0x27dcaf,_0x2f06cd)]);}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xda3d1a),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xda3d1a)),_0x5d0006['plugins']['has']('ImageCaptionEditing')&&(_0x1d7ea2['enableCommand']('toggleImageCaption',(_0x441c41,_0x386486)=>{const _0xd2f01a=_0x5d0006['plugins']['get']('ImageCaptionUtils');let _0x449fe3=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x47970f=_0xd2f01a['getCaptionFromImageModelElement'](_0x449fe3);_0x5d0006['model']['change'](()=>{if(_0x47970f)return void _0x1d7ea2['markDeletion'](_0x5d0006['model']['createRangeOn'](_0x47970f));const _0x787e14=_0x37c613['isBlockImage'](_0x449fe3);_0x441c41(_0x386486),_0x449fe3=_0x37c613['getClosestSelectedImageElement'](_0x5d0006['model']['document']['selection']),_0x47970f=_0xd2f01a['getCaptionFromImageModelElement'](_0x449fe3),_0x1d7ea2['markInsertion'](_0x5d0006['model']['createRangeOn'](_0x47970f),_0x787e14?null:'imageCaption');});}),_0x1d7ea2['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xda3d1a));const _0x25657d=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x18dfac(_0x2d0a33,_0x299ba6){const _0x59affe=_0x25657d['findIndex'](({type:_0x4af2ea,subType:_0x1bb09b})=>_0x2d0a33['type']==_0x4af2ea&&_0x2d0a33['subType']==_0x1bb09b),_0x42f5ea=_0x25657d['findIndex'](({type:_0x230e3d,subType:_0x21b7ff})=>_0x299ba6['type']==_0x230e3d&&_0x299ba6['subType']==_0x21b7ff);if(_0x59affe<0x0||_0x42f5ea<0x0)return!0x1;const _0x26ac41=_0x2d0a33['getFirstRange'](),_0x306c7e=_0x299ba6['getFirstRange']();if((0x0==_0x59affe||0x1==_0x59affe)&&0x2==_0x42f5ea&&_0x26ac41['isIntersecting'](_0x306c7e))return!0x0;if(0x2==_0x59affe&&0x3==_0x42f5ea){const _0x2c78ac=_0x1d7ea2['_findSuggestions'](_0x26ac41,'insertion')['filter'](({suggestion:_0x365932,meta:_0x3d41f4})=>_0x3d41f4['isOwn']&&'convertInlineImageToBlock'==_0x365932['subType']);if(_0x2c78ac['length']>0x1&&_0x306c7e['end']['isEqual'](_0x26ac41['start']))return!0x0;if(0x1==_0x2c78ac['length']&&(_0x26ac41['start']['isEqual'](_0x306c7e['end'])||_0x26ac41['end']['isEqual'](_0x306c7e['start'])))return!0x0;}if(0x3==_0x59affe&&0x3==_0x42f5ea&&_0x26ac41['start']['isBefore'](_0x306c7e['start'])){const _0x31352e=_0x26ac41['end']['nodeAfter'],_0x1d62be=_0x306c7e['start']['nodeBefore'];return _0x37c613['isBlockImage'](_0x31352e)&&_0x31352e===_0x1d62be;}return!0x1;}function _0xda3d1a(_0x2cd3b1,_0x4d2b46){return _0x18dfac(_0x2cd3b1,_0x4d2b46)?[_0x2cd3b1,_0x4d2b46]:_0x18dfac(_0x4d2b46,_0x2cd3b1)?[_0x4d2b46,_0x2cd3b1]:null;}_0x5d0006['plugins']['has']('ImageResize')&&(_0x1d7ea2['enableDefaultAttributesIntegration']('resizeImage'),_0x1d7ea2['registerBlockAttribute']('resizedWidth'),_0x1d7ea2['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1a9a7c,'FORMAT_IMAGE_SIZE'))),_0x5d0006['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1d7ea2['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1d7ea2['registerBlockAttribute']('alt')),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x1d4603=>{if(!!_0x25657d['find'](({type:_0x2b1b08,subType:_0x298ea1})=>_0x1d4603['type']==_0x2b1b08&&_0x1d4603['subType']==_0x298ea1))return _0x1d4603['previous']?{}:void 0x0;}),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x3e785d=>{if('insertion'==_0x3e785d['type']||'deletion'==_0x3e785d['type']){const _0x31d7bd=_0x3e785d['getContainedElement']();if(_0x31d7bd&&_0x31d7bd['is']('element','caption'))return{'type':'insertion'==_0x3e785d['type']?'addObject':'removeObject','element':_0x31d7bd,'quantity':0x1};}}),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x26c5eb=>'formatBlock'==_0x26c5eb['type']&&'convertInlineImageToBlock'==_0x26c5eb['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x26c5eb['type']&&'convertBlockImageToInline'==_0x26c5eb['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1d7ea2['descriptionFactory']['registerDescriptionCallback'](_0x563c2c=>{if('attribute'!=_0x563c2c['type'])return;const {data:_0x29e866}=_0x563c2c;if(!_0x29e866||'alt'!=_0x29e866['key'])return;const _0x45b050=_0x29e866['newValue'];return _0x45b050?{'type':'format','content':o(_0x1a9a7c,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x45b050+'\x22')}:{'type':'format','content':o(_0x1a9a7c,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x117c34=this['editor'],_0x2f55c3=_0x117c34['locale'];_0x117c34['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c9a6d=>{if('formatBlock'!=_0x3c9a6d['type']&&'formatInline'!=_0x3c9a6d['type'])return;const {data:_0x4a0438}=_0x3c9a6d;if(_0x4a0438){if('imageTextAlternative'==_0x4a0438['commandName']){const _0x126214=_0x4a0438['commandParams'][0x0]['newValue'];return _0x126214?{'type':'format','content':o(_0x2f55c3,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x126214+'\x22')}:{'type':'format','content':o(_0x2f55c3,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x4a0438['commandName']){const _0x9cfe03=_0x4a0438['commandParams'][0x0]['width'];return _0x9cfe03?{'type':'format','content':o(_0x2f55c3,'*Set\x20image\x20width:*\x20%0',_0x9cfe03)}:{'type':'format','content':o(_0x2f55c3,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x367574=this['editor']['locale'],_0x43f56b=this['editor']['plugins']['get']('TrackChangesEditing');_0x43f56b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x43f56b['registerBlockAttribute']('src'),_0x43f56b['descriptionFactory']['registerDescriptionCallback'](_0x14451c=>{if('attribute'!=_0x14451c['type'])return;const {data:_0xe26a53}=_0x14451c;return _0xe26a53&&'src'==_0xe26a53['key']?_0xe26a53['newValue']&&_0xe26a53['oldValue']?{'type':'format','content':o(_0x367574,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4289d3=this['editor']['plugins']['get']('TrackChangesEditing');_0x4289d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4289d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4289d3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4289d3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3cce5b=this['editor'],_0x2f3318=_0x3cce5b['locale'];_0x3cce5b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x7fd5d1=>{if('formatBlock'!=_0x7fd5d1['type']&&'formatInline'!=_0x7fd5d1['type'])return;const {data:_0x21a80f}=_0x7fd5d1;if(!_0x21a80f||'replaceImageSource'!=_0x21a80f['commandName'])return;return{'type':'format','content':o(_0x2f3318,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4f5a27{['afterInit'](){const _0x2bdd20=this['editor'];if(!_0x2bdd20['plugins']['has']('ImageStyleEditing'))return;const _0x3932ff=_0x2bdd20['plugins']['get']('TrackChangesEditing'),_0x3d92cc=_0x2bdd20['plugins']['get']('ImageUtils'),_0x4e4a69={};_0x3932ff['enableCommand']('imageStyle',(_0x151258,_0x13def0)=>{const _0x135ca8=_0x2bdd20['plugins']['get']('Users')['me'],_0x3d7be3=_0x2bdd20['commands']['get']('imageStyle');let _0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),_0x18b284=_0x2bdd20['model']['createRangeOn'](_0x304c0c),_0x1c9d09=_0x3d7be3['value'];if(_0x1c9d09==_0x13def0['value'])return;const _0x141aa0={'commandName':'imageStyle','commandParams':[_0x13def0],'formatGroupId':_0x3dae9a()};_0x2bdd20['model']['change'](()=>{if(_0x3932ff['getSuggestions']()['filter'](_0x262bec=>_0x262bec['isInContent']&&_0x135ca8==_0x262bec['author']&&('formatBlock'==_0x262bec['type']||'formatInline'==_0x262bec['type'])&&('imageStylePreApply'==_0x262bec['subType']||'imageStylePostApply'==_0x262bec['subType'])&&_0x262bec['getFirstRange']()['isEqual'](_0x18b284))['forEach'](_0x487310=>_0x3932ff['discardSuggestion'](_0x487310['head'])),_0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),_0x18b284=_0x2bdd20['model']['createRangeOn'](_0x304c0c),_0x3d7be3['refresh'](),_0x2bdd20['commands']['get']('imageTypeInline')['refresh'](),_0x2bdd20['commands']['get']('imageTypeBlock')['refresh'](),_0x1c9d09=_0x3d7be3['value'],_0x1c9d09!=_0x13def0['value'])return _0x3d92cc['isInlineImage'](_0x304c0c)&&_0x3d7be3['shouldConvertImageType'](_0x13def0['value'],_0x304c0c)?(_0x151258({..._0x13def0,'setImageSizes':!0x1}),_0x304c0c=_0x3d92cc['getClosestSelectedImageElement'](_0x2bdd20['model']['document']['selection']),void _0x3932ff['markBlockFormat'](_0x304c0c,{..._0x141aa0,'commandReversedParams':[{'value':_0x1c9d09||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3d92cc['isBlockImage'](_0x304c0c)?_0x3932ff['markBlockFormat'](_0x304c0c,_0x141aa0,[],'imageStylePostApply'):_0x3932ff['markInlineFormat'](_0x18b284,_0x141aa0,'imageStylePostApply'));});});for(const _0x55f5c5 of _0x2bdd20['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4e4a69[_0x55f5c5['name']]=_0x55f5c5['title']['toLowerCase']();_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x304a85])=>{_0x3d92cc['setImageNaturalSizeAttributes'](_0x304a85['getContainedElement']());}),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3f20c8,_0x348e07)=>{_0x3932ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3f20c8,{'commandName':_0x348e07['commandName'],'commandParams':_0x348e07['commandReversedParams']});}),_0x3932ff['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1f45ad,_0x1f6b19){if(_0x32641b(_0x1f45ad,_0x1f6b19))return[_0x1f45ad,_0x1f6b19];if(_0x32641b(_0x1f6b19,_0x1f45ad))return[_0x1f6b19,_0x1f45ad];return null;});const _0x33f10b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x32641b(_0x52a8c8,_0x3ff351){const _0x267735=_0x33f10b['findIndex'](({type:_0x109fef,subType:_0xfa9585})=>_0x52a8c8['type']==_0x109fef&&_0x52a8c8['subType']==_0xfa9585),_0x1e5250=_0x33f10b['findIndex'](({type:_0x76ae24,subType:_0x193e7f})=>_0x3ff351['type']==_0x76ae24&&_0x3ff351['subType']==_0x193e7f);if(_0x267735<0x0||_0x1e5250<0x0)return!0x1;const _0x8a1fcf=_0x52a8c8['getFirstRange'](),_0x45de4d=_0x3ff351['getFirstRange']();if((0x0==_0x267735||0x1==_0x267735)&&0x2==_0x1e5250&&_0x8a1fcf['isIntersecting'](_0x45de4d))return!0x0;if(0x2==_0x267735&&0x3==_0x1e5250){const _0x2fcb0e=_0x3932ff['_findSuggestions'](_0x8a1fcf,'insertion')['filter'](({suggestion:_0x142fc7,meta:_0x35b684})=>_0x35b684['isOwn']&&'convertInlineImageToBlock'==_0x142fc7['subType']);if(_0x2fcb0e['length']>0x1&&_0x45de4d['end']['isEqual'](_0x8a1fcf['start']))return!0x0;if(0x1==_0x2fcb0e['length']&&(_0x8a1fcf['start']['isEqual'](_0x45de4d['end'])||_0x8a1fcf['end']['isEqual'](_0x45de4d['start'])))return!0x0;}if(0x3==_0x267735&&0x3==_0x1e5250&&_0x8a1fcf['start']['isBefore'](_0x45de4d['start'])){const _0xbafb44=_0x8a1fcf['end']['nodeAfter'],_0x30e57f=_0x45de4d['start']['nodeBefore'];return _0x3d92cc['isBlockImage'](_0xbafb44)&&_0xbafb44===_0x30e57f;}return!0x1;}_0x2bdd20['model']['document']['registerPostFixer'](()=>{let _0x5a7b87=!0x1;const _0x4acf85=Array['from'](_0x2bdd20['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32fa12,data:_0x249ead}of _0x4acf85){const {group:_0x29bb70,type:_0x549098,subType:_0x4d52f2,id:_0x581daa}=_0x3932ff['_splitMarkerName'](_0x32fa12);if('suggestion'==_0x29bb70&&_0x3932ff['hasSuggestion'](_0x581daa)){if('formatBlock'==_0x549098&&('imageStylePreApply'==_0x4d52f2||'imageStylePostApply'==_0x4d52f2)){const _0x486cd7=_0x3932ff['getSuggestion'](_0x581daa);if(_0x249ead['newRange']){const _0x1a9748=_0x486cd7['getFirstRange']()['getContainedElement']();if(_0x3d92cc['isBlockImage'](_0x1a9748))continue;_0x3932ff['discardSuggestion'](_0x486cd7),_0x5a7b87=!0x0;}}if('insertion'==_0x549098&&'imageCaption'==_0x4d52f2&&!_0x249ead['newRange']){const _0x123b35=_0x3932ff['getSuggestion'](_0x581daa);_0x123b35['next']&&_0x123b35['next']['isInContent']&&(_0x3932ff['discardSuggestion'](_0x123b35['next']),_0x5a7b87=!0x0);}}}return _0x5a7b87;}),this['_registerLegacyDescription'](_0x4e4a69);}['_registerLegacyDescription'](_0x5d6361){const _0x1534b2=this['editor'],_0x5e436f=_0x1534b2['locale'];_0x1534b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf8652c=>{if('formatBlock'!=_0xf8652c['type']&&'formatInline'!=_0xf8652c['type'])return;const {data:_0x1bfb6f}=_0xf8652c;if(!_0x1bfb6f||'imageStyle'!=_0x1bfb6f['commandName'])return;const _0x689dcc=_0x1bfb6f['commandParams'][0x0]['value'];return _0x3b1a62('side'===_0x689dcc?o(_0x5e436f,'FORMAT_SIDE_IMAGE'):_0x5d6361[_0x689dcc]||_0x689dcc);function _0x3b1a62(_0x53c52d){return{'type':'format','content':o(_0x5e436f,'*Format:*\x20%0',_0x53c52d)};}});}}class ot extends _0x4f5a27{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5626a6){super(_0x5626a6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2fdfe0=this['editor'],_0xd94ee0=_0x2fdfe0['commands']['get']('importWord'),_0x4cbc6c=_0x2fdfe0['commands']['get']('trackChanges');_0xd94ee0&&(_0xd94ee0['on']('execute',(_0x2d444f,[,_0x5ab028])=>{this['_trackChangesValueDuringImport']=_0x4cbc6c['value'],_0x5ab028['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xd94ee0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xd94ee0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4cbc6c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2fdfe0['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2ac65d,_0x4e7a05){const {suggestions:_0x22813e}=_0x4e7a05,_0x3a0ea6=this['editor']['commands']['get']('trackChanges'),_0x26c1b2=_0x3a0ea6['value'];this['_trackChangesValueDuringImport']!==_0x26c1b2&&(_0x3a0ea6['execute'](),this['_trackChangesExecuted']=!0x0),_0x22813e&&_0x22813e['forEach'](({id:_0x12ad90,type:_0x133178,author:_0x5433df,created_at:_0xa362e})=>{const _0x2ccc4f={'id':_0x12ad90,'type':_0x133178,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5433df,'createdAt':_0xa362e?new Date(_0xa362e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x2ccc4f);});}}class rt extends _0x4f5a27{['afterInit'](){const _0x4a5bd8=this['editor'],_0x5aad07=_0x4a5bd8['plugins']['get']('TrackChangesEditing');if(_0x4a5bd8['plugins']['has']('IndentEditing')&&(_0x5aad07['enableCommand']('indent'),_0x5aad07['enableCommand']('outdent')),_0x4a5bd8['plugins']['has']('IndentBlock')){for(const _0x3554ce of['indentBlock','outdentBlock'])_0x5aad07['enableDefaultAttributesIntegration'](_0x3554ce);}const _0x247b92=_0x4a5bd8['locale'];_0x5aad07['registerBlockAttribute']('blockIndent'),_0x5aad07['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x247b92,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4319f9=this['editor'],_0x564d3d=_0x4319f9['locale'],_0x38a7f4=_0x4319f9['plugins']['get']('TrackChangesEditing');_0x38a7f4['descriptionFactory']['registerDescriptionCallback'](_0x1122be=>{if('formatBlock'!=_0x1122be['type'])return;const {data:_0x585aae}=_0x1122be;if(!_0x585aae)return;if('indentBlock'!=_0x585aae['commandName']&&'outdentBlock'!=_0x585aae['commandName'])return;const _0x1790d2=_0x1122be['getItems']()[0x0],_0x5b6bc7=_0x38a7f4['descriptionFactory']['getItemLabel'](_0x1790d2);return'indentBlock'==_0x585aae['commandName']?{'type':'format','content':o(_0x564d3d,'*Indent:*\x20%0',_0x5b6bc7)}:'outdentBlock'==_0x585aae['commandName']?{'type':'format','content':o(_0x564d3d,'*Outdent:*\x20%0',_0x5b6bc7)}:void 0x0;});}}class at extends _0x4f5a27{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4f5a27{['afterInit'](){const _0x423d72=this['editor'];if(!_0x423d72['plugins']['has']('LinkEditing'))return;const _0x2781a9=_0x423d72['plugins']['get']('TrackChangesEditing'),_0x6a2d3e=_0x423d72['commands']['get']('link');_0x2781a9['enableDefaultAttributesIntegration']('link'),_0x2781a9['enableDefaultAttributesIntegration']('unlink'),_0x2781a9['registerInlineAttribute']('linkHref');for(const _0xaeed16 of _0x6a2d3e['manualDecorators'])_0x2781a9['registerInlineAttribute'](_0xaeed16['id']),_0x2781a9['descriptionFactory']['registerAttributeLabel'](_0xaeed16['id'],'link\x20('+_0xaeed16['label']['toLowerCase']()+')');_0x2781a9['descriptionFactory']['registerDescriptionCallback'](_0x165b1b=>{if('attribute'!=_0x165b1b['type'])return;const {data:_0x4b2b01}=_0x165b1b;if(!_0x4b2b01||'linkHref'!=_0x4b2b01['key'])return;const _0x4a3f15=_0x4b2b01['newValue'],_0x383f14=_0x423d72['locale'];return{'type':'format','content':null==_0x4a3f15?o(_0x383f14,'*Remove\x20link*'):o(_0x383f14,'*Set\x20link:*\x20%0','\x22'+_0x4a3f15+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2397a8=this['editor'],_0x5ceba0=_0x2397a8['locale'];_0x2397a8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x477813=>{if('formatInline'!=_0x477813['type'])return;const {data:_0x975dd4}=_0x477813;if(_0x975dd4){if('link'==_0x975dd4['commandName']){const _0x54af0c=_0x975dd4['commandParams'][0x0];return{'type':'format','content':o(_0x5ceba0,'*Set\x20link:*\x20%0','\x22'+_0x54af0c+'\x22')};}return'unlink'==_0x975dd4['commandName']?{'type':'format','content':o(_0x5ceba0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4f5a27{['afterInit'](){const _0x37e5a0=this['editor'],_0x5dd592=_0x37e5a0['locale'];if(!_0x37e5a0['plugins']['has']('LegacyListEditing'))return;const _0x579004=_0x37e5a0['plugins']['get']('TrackChangesEditing'),_0x2e1c54=_0x37e5a0['plugins']['has']('LegacyTodoListEditing');function _0x1620eb(_0x2ce4c4){return()=>{const _0x4cacf2=_0x37e5a0['model']['document']['selection'],_0x38b1d6=_0x37e5a0['commands']['get'](_0x2ce4c4);if(_0x38b1d6['value'])return void _0x37e5a0['execute']('paragraph',{});const _0x14cda3=_0x2ce4c4['slice'](0x0,-0x4),_0x3b41cf=function(_0x3b5f9e,_0xee8a6f,_0x50b11c){let _0x4654a6=Array['from'](_0x3b5f9e)['filter'](_0xaad819=>function(_0x5df4dc,_0x4354d6){return _0x4354d6['checkChild'](_0x5df4dc['parent'],'listItem')&&!_0x4354d6['isObject'](_0x5df4dc);}(_0xaad819,_0x50b11c));_0x4654a6=_0x4654a6['filter'](_0x1b2f96=>!_0x1b2f96['is']('element','listItem')||_0x1b2f96['getAttribute']('listType')!=_0xee8a6f);const _0x11baab=new Set();for(const _0x48c6dd of _0x4654a6)_0x48c6dd['is']('element','listItem')?_0x11baab['add'](me(_0x48c6dd)):_0x11baab['add'](_0x48c6dd);return Array['from'](_0x11baab);}(_0x4cacf2['getSelectedBlocks'](),_0x14cda3,_0x37e5a0['model']['schema']);_0x37e5a0['model']['change'](()=>{for(const _0x5b561a of _0x3b41cf)_0x579004['markBlockFormat'](_0x5b561a,{'commandName':_0x2ce4c4,'commandParams':[{'forceValue':!_0x38b1d6['value']}],'formatGroupId':'blockName'},fe(_0x5b561a));});};}function _0x350d24(_0x324e2f){return()=>{const _0x3db66f=function(_0x145b82){let _0x150b85=Array['from'](_0x145b82);const _0x3f9e78=_0x150b85['findIndex'](_0x337211=>'listItem'!=_0x337211['name']);return _0x3f9e78>-0x1&&(_0x150b85=_0x150b85['slice'](0x0,_0x3f9e78)),_0x150b85;}(_0x37e5a0['model']['document']['selection']['getSelectedBlocks']()),_0x1b7a95=_0x37e5a0['model']['createRange'](_0x37e5a0['model']['createPositionAt'](_0x3db66f[0x0],'before'),_0x37e5a0['model']['createPositionAt'](_0x3db66f[_0x3db66f['length']-0x1],'end'));_0x37e5a0['model']['change'](()=>{_0x579004['markBlockFormat'](_0x1b7a95,{'commandName':_0x324e2f,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b7c4e){const _0x4571ee=new Set();for(const _0x58af32 of _0x2b7c4e){let _0x4587b0=_0x58af32['nextSibling'];for(;_0x4587b0&&_0x4587b0['getAttribute']('listIndent')>_0x58af32['getAttribute']('listIndent');)_0x4571ee['add'](_0x4587b0),_0x4587b0=_0x4587b0['nextSibling'];}return Array['from'](_0x4571ee);}(_0x3db66f));});};}_0x579004['enableCommand']('numberedList',_0x1620eb('numberedList')),_0x579004['enableCommand']('bulletedList',_0x1620eb('bulletedList')),_0x2e1c54&&_0x579004['enableCommand']('todoList',_0x1620eb('todoList')),_0x579004['enableCommand']('indentList',_0x350d24('indentList')),_0x579004['enableCommand']('outdentList',_0x350d24('outdentList')),_0x2e1c54&&_0x579004['enableCommand']('checkTodoList',()=>{const _0x17acd5=_0x37e5a0['commands']['get']('checkTodoList'),_0x20bb9e=Array['from'](_0x17acd5['_selectedElements']);_0x20bb9e['filter'](_0xbf6afe=>_0xbf6afe['getAttribute']('todoListChecked')!=_0x17acd5['value']),_0x37e5a0['model']['change'](()=>{for(const _0x238e8d of _0x20bb9e)_0x579004['markBlockFormat'](_0x238e8d,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x17acd5['value']}]});});}),_0x579004['descriptionFactory']['registerElementLabel']('listItem',_0x482e25=>o(_0x5dd592,'ELEMENT_LIST_ITEM',_0x482e25)),_0x579004['descriptionFactory']['registerDescriptionCallback'](_0x1a4775=>{if('formatBlock'!=_0x1a4775['type']&&'formatInline'!=_0x1a4775['type'])return;const {data:_0x32452f}=_0x1a4775;if(_0x32452f){if('numberedList'==_0x32452f['commandName']||'bulletedList'==_0x32452f['commandName']||'todoList'==_0x32452f['commandName'])switch(_0x32452f['commandName']['replace']('List','')){case'bulleted':return _0x55ec19(o(_0x5dd592,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x55ec19(o(_0x5dd592,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x55ec19(o(_0x5dd592,'ELEMENT_TODO_LIST'));}if('indentList'==_0x32452f['commandName'])return{'type':'format','content':o(_0x5dd592,'*Indent:*\x20%0',o(_0x5dd592,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x32452f['commandName'])return{'type':'format','content':o(_0x5dd592,'*Outdent:*\x20%0',o(_0x5dd592,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x32452f['commandName'])return _0x32452f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5dd592,'*Check\x20item*')}:{'type':'format','content':o(_0x5dd592,'*Uncheck\x20item*')};}function _0x55ec19(_0x57c8a5){return{'type':'format','content':o(_0x5dd592,'*Change\x20to:*\x20%0',_0x57c8a5)};}});}}function me(_0x274612){const _0x16856d=_0x274612['getAttribute']('listIndent');if(0x0==_0x16856d)return _0x274612;let _0x279bbf=_0x274612;for(;_0x274612['previousSibling']&&_0x274612['previousSibling']['is']('element','listItem');){const _0x5343ba=_0x274612['previousSibling']['getAttribute']('listIndent');if(_0x5343ba==_0x16856d)_0x279bbf=_0x274612['previousSibling'];else{if(_0x5343ba<_0x16856d)break;}_0x274612=_0x274612['previousSibling'];}return _0x279bbf;}function fe(_0x15dc26){const _0x582960=[];if(_0x15dc26['is']('element','listItem')&&_0x15dc26['getAttribute']('listIndent')>0x0){let _0x8c295a=_0x15dc26['nextSibling'];for(;_0x8c295a&&'listItem'==_0x8c295a['name']&&_0x8c295a['getAttribute']('listIndent')==_0x15dc26['getAttribute']('listIndent');)_0x582960['push'](_0x8c295a),_0x8c295a=_0x8c295a['nextSibling'];}return _0x582960;}class K extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6f4ed2=this['editor']['config']['get']('list.properties'),_0x352b7a=this['editor']['plugins']['get']('TrackChangesEditing');_0x6f4ed2['styles']&&_0x352b7a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6f4ed2['reversed']&&_0x352b7a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6f4ed2['startIndex']&&_0x352b7a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x352b7a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46a405,_0x3fc84a={}){const _0x11458d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d2233=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11458d['markMultiRangeBlockFormat'](_0x2d2233,{'commandName':'listStyle','commandParams':[{'type':_0x3fc84a['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x4e21ec,_0x535bdc={}){const _0x9a6dc5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x436a1a=this['_getSuggestionBlocks'](_0x128746=>_0x128746['is']('element','listItem')&&'numbered'===_0x128746['getAttribute']('listType'));if(_0x436a1a['length']<0x1)return;const _0x15e80b=_0x436a1a['map'](_0x3a3972=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3a3972,'before'),this['editor']['model']['createPositionAt'](_0x3a3972,0x0)));this['editor']['model']['change'](()=>{_0x9a6dc5['markMultiRangeBlockFormat'](_0x15e80b,{'commandName':'listReversed','commandParams':[{'reversed':_0x535bdc['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3a9d7b,_0x2c894a={}){const _0x170e4a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24149c=this['_getSuggestionBlocks'](_0x51e60b=>_0x51e60b['is']('element','listItem')&&'numbered'===_0x51e60b['getAttribute']('listType'));if(_0x24149c['length']<0x1)return;const _0x45296a=_0x24149c['map'](_0x25ab94=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x25ab94,'before'),this['editor']['model']['createPositionAt'](_0x25ab94,0x0)));this['editor']['model']['change'](()=>{_0x170e4a['markMultiRangeBlockFormat'](_0x45296a,{'commandName':'listStart','commandParams':[{'startIndex':_0x2c894a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x519bbf){if('formatBlock'!=_0x519bbf['type']&&'formatInline'!=_0x519bbf['type'])return;const _0x2ea0dd=this['editor']['locale'],{data:_0x501953}=_0x519bbf;if(!_0x501953)return;let _0x4b6233,_0x548d11;switch(_0x501953['commandName']){case'listStyle':_0x4b6233='*Change\x20to:*\x20%0',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233,o(_0x2ea0dd,this['_getTranslationKeyForListStyle'](_0x501953['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4b6233=_0x501953['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233)};break;case'listStart':_0x4b6233='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x548d11={'type':'format','content':o(_0x2ea0dd,_0x4b6233,_0x501953['commandParams'][0x0]['startIndex'])};}return _0x548d11;}['_getSuggestionBlocksForListStyle'](){const _0x4d4685=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b741d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2b741d[0x0]?.['is']('element','listItem')&&_0x2b741d['unshift'](..._0x4d4685['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2b741d[_0x2b741d['length']-0x1]?.['is']('element','listItem')&&_0x2b741d['push'](..._0x4d4685['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b741d=[...new Set(_0x2b741d)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2b741d=_0x2b741d['filter'](_0x48404d=>_0x48404d['is']('element','listItem'))),_0x2b741d;}['_getSuggestionBlocks'](_0x3880fc){const _0x2e468e=this['editor']['plugins']['get']('LegacyListUtils');let _0xaba7f7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3880fc)['map'](_0x1bb929=>{const _0xfc2f71=this['editor']['model']['createPositionAt'](_0x1bb929,0x0);return[..._0x2e468e['getSiblingNodes'](_0xfc2f71,'backward'),..._0x2e468e['getSiblingNodes'](_0xfc2f71,'forward')];})['flat']();return _0xaba7f7=[...new Set(_0xaba7f7)],_0xaba7f7;}['_getTranslationKeyForListStyle'](_0x5bfb15){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5bfb15)||'default')['toUpperCase']()+'_LIST_'+_0x5bfb15['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4f5a27{['afterInit'](){const _0x53f173=this['editor'];if(!_0x53f173['plugins']['has']('MediaEmbedEditing'))return;const _0x23e7eb=_0x53f173['plugins']['get']('TrackChangesEditing'),_0x35e5d2=_0x53f173['locale'];_0x23e7eb['enableCommand']('mediaEmbed'),_0x23e7eb['descriptionFactory']['registerElementLabel']('media',_0x43da47=>o(_0x35e5d2,'ELEMENT_MEDIA',_0x43da47)),_0x53f173['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0xc8ed12,{writer:_0x45c13a,options:_0x5b6bf8})=>{if(_0x5b6bf8['showSuggestionHighlights'])return _0x45c13a['createEmptyElement']('div');},'converterPriority':'high'}),_0x53f173['data']['downcastDispatcher']['on']('attribute:url:media',(_0x7d428c,_0x259044,_0x23799c)=>{_0x23799c['options']['showSuggestionHighlights']&&_0x7d428c['stop']();},{'priority':'high'});}}class gt extends _0x4f5a27{['afterInit'](){const _0x5b8793=this['editor'];_0x5b8793['plugins']['has']('MentionEditing')&&_0x5b8793['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4f5a27{['afterInit'](){const _0x1f2de4=this['editor'],_0x4b0fe2=_0x1f2de4['plugins']['get']('TrackChangesEditing');_0x1f2de4['plugins']['has']('MultiLevelList')&&(_0x4b0fe2['enableDefaultAttributesIntegration']('multiLevelList'),_0x4b0fe2['registerBlockAttribute']('listMarkerStyle'),_0x4b0fe2['descriptionFactory']['registerDescriptionCallback'](_0x350e0d=>this['handleDescriptions'](_0x350e0d)));}['handleDescriptions'](_0x54245e){const _0x4b636d=this['editor']['locale'],{data:_0x1dfeb1}=_0x54245e,_0x330dd5={'type':'format','content':''};if(_0x1dfeb1&&'listMarkerStyle'==_0x1dfeb1['key']){if(!_0x1dfeb1['oldValue'])return{'type':'format','content':o(_0x4b636d,'*Set\x20format:*\x20%0',o(_0x4b636d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dfeb1['newValue']+')'};if(!_0x1dfeb1['newValue']){let _0xb9f803=_0x54245e['head'];for(;_0xb9f803;){if(_0xb9f803['data']&&'listType'==_0xb9f803['data']['key']&&_0xb9f803['data']['newValue'])return _0x330dd5;_0xb9f803=_0xb9f803['next'];}return{'type':'format','content':o(_0x4b636d,'*Remove\x20format:*\x20%0',o(_0x4b636d,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1dfeb1['oldValue']+')'};}}}}class mt extends _0x4f5a27{['afterInit'](){const _0xe3db2e=this['editor'];if(!_0xe3db2e['plugins']['has']('PageBreakEditing'))return;_0xe3db2e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x488e68=_0xe3db2e['plugins']['get']('TrackChangesEditing'),_0x111149=_0xe3db2e['locale'];_0x488e68['descriptionFactory']['registerElementLabel']('pageBreak',_0x542a06=>o(_0x111149,'ELEMENT_PAGE_BREAK',_0x542a06));}}class dt extends _0x4f5a27{['afterInit'](){const _0x2a7b99=this['editor'];if(!_0x2a7b99['plugins']['has']('Paragraph'))return;const _0x540c9d=_0x2a7b99['locale'],_0x13f0c6=_0x2a7b99['plugins']['get']('TrackChangesEditing');_0x13f0c6['descriptionFactory']['registerElementLabel']('paragraph',_0x77cf95=>o(_0x540c9d,'ELEMENT_PARAGRAPH',_0x77cf95)),_0x13f0c6['enableDefaultAttributesIntegration']('paragraph'),_0x13f0c6['enableCommand']('insertParagraph'),_0x2a7b99['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x2a7b99),{'priority':'highest'}),_0x2a7b99['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4f2aa9,_0x189bfb,_0x5d93a0)=>{_0x5d93a0['options']['showSuggestionHighlights']&&nr(_0x2a7b99,{'showActiveMarker':!0x1})(_0x4f2aa9,_0x189bfb,_0x5d93a0);},{'priority':'highest'});const _0x13ca7c=_0x13f0c6['descriptionFactory'];_0x13ca7c['registerDescriptionCallback'](_0x17663c=>{if('insertion'!==_0x17663c['type'])return;const {start:_0xc02c57,end:_0x189cf0}=_0x17663c['getFirstRange']();if(!_0xc02c57['isTouching'](_0x189cf0)||!_0xc02c57['nodeAfter'])return;const _0x345246=_0x2a7b99['model']['schema'],_0x176121=_0xc02c57['nodeAfter'];return _0x345246['isBlock'](_0x176121)&&!_0x345246['isLimit'](_0x176121)&&_0x345246['checkChild'](_0x176121,'$text')?{'type':'insertion','content':o(_0x540c9d,'*Insert:*\x20%0',_0x13ca7c['getItemLabel'](_0x176121,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x37daf6=this['editor'],_0x2aa683=_0x37daf6['locale'];_0x37daf6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2cf175=>{if('formatBlock'!=_0x2cf175['type'])return;const {data:_0x254de2}=_0x2cf175;return _0x254de2&&'paragraph'==_0x254de2['commandName']?{'type':'format','content':o(_0x2aa683,'*Change\x20to:*\x20%0',o(_0x2aa683,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2f009d,{showActiveMarker:_0x12736e=!0x0}={}){return(_0x269c2c,_0x4cfeb3,_0x5049c4)=>{const _0x355c36=_0x2f009d['plugins']['get']('TrackChangesEditing'),_0x1869b9=_0x4cfeb3['markerRange']['start'],_0x289c9f=_0x4cfeb3['markerRange']['end'],_0x19be67=_0x2f009d['model']['schema'];if(!_0x1869b9['isTouching'](_0x289c9f)||!_0x1869b9['nodeAfter'])return;const _0x338612=_0x1869b9['nodeAfter'];if(_0x19be67['isBlock'](_0x338612)&&!_0x19be67['isLimit'](_0x338612)&&_0x19be67['checkChild'](_0x338612,'$text')){if(!_0x5049c4['consumable']['consume'](_0x4cfeb3['markerRange'],_0x269c2c['name']))return;const _0x3c2f4a=_0x5049c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x522198=_0x5049c4['mapper']['toViewPosition'](_0x289c9f);_0x12736e&&_0x355c36['activeMarkers']['includes'](_0x4cfeb3['markerName'])&&_0x5049c4['writer']['addClass']('ck-suggestion-marker--active',_0x3c2f4a),_0x5049c4['writer']['insert'](_0x522198,_0x3c2f4a),_0x5049c4['mapper']['bindElementToMarker'](_0x3c2f4a,_0x4cfeb3['markerName']);}};}class pt extends _0x4f5a27{['afterInit'](){const _0x2c68ad=this['editor'];if(!_0x2c68ad['plugins']['has']('RemoveFormatEditing'))return;_0x2c68ad['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb0cef0=this['editor'];_0xb0cef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2069dc=>{if('formatBlock'!=_0x2069dc['type']&&'formatInline'!=_0x2069dc['type'])return;const {data:_0x5c7335}=_0x2069dc;return _0x5c7335&&'removeFormat'==_0x5c7335['commandName']?{'type':'format','content':o(_0xb0cef0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4f5a27{['afterInit'](){const _0x21d7d6=this['editor'];if(!_0x21d7d6['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x87444a=_0x21d7d6['plugins']['get']('TrackChangesEditing');_0x87444a['enableCommand']('goToPreviousRestrictedEditingException'),_0x87444a['enableCommand']('goToNextRestrictedEditingException');const _0x177b52=_0x21d7d6['plugins']['get']('RestrictedEditingModeEditing');_0x177b52['enableCommand']('trackChanges'),_0x177b52['enableCommand']('acceptSuggestion'),_0x177b52['enableCommand']('discardSuggestion'),_0x177b52['enableCommand']('acceptAllSuggestions'),_0x177b52['enableCommand']('discardAllSuggestions'),_0x177b52['enableCommand']('acceptSelectedSuggestions'),_0x177b52['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4f5a27{static get['requires'](){return[_0x7e37a9];}['init'](){const _0x592648=this['editor'],_0x18f830=_0x592648['plugins']['get']('TrackChangesEditing');_0x18f830['enableCommand']('shiftEnter'),_0x592648['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x592648),{'priority':'high'}),_0x592648['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x592648),{'priority':'high'}),_0x592648['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcae93c,_0x2c5490,_0x59faa6)=>{_0x59faa6['options']['showSuggestionHighlights']&&de(_0x592648,{'showActiveMarker':!0x1})(_0xcae93c,_0x2c5490,_0x59faa6);}),_0x18f830['descriptionFactory']['registerElementLabel']('softBreak',_0x488c5a=>o(_0x592648['locale'],'ELEMENT_LINE_BREAK',_0x488c5a));}}function de(_0x8bc6e,{showActiveMarker:_0x5f1df5=!0x0}={}){return(_0x13b89d,_0x3ad6e6,_0x164c2f)=>{const _0x1f6b61=_0x8bc6e['plugins']['get']('TrackChangesEditing');if(!_0x164c2f['consumable']['test'](_0x3ad6e6['markerRange'],_0x13b89d['name']))return;const _0xf65d5d=_0x8bc6e['model'];for(const _0x1ca921 of _0x3ad6e6['markerRange']['getItems']()){if(!_0x1ca921['is']('element','softBreak'))continue;const _0x2ece42='deletion'==_0x3ad6e6['markerName']['split'](':')[0x1]?'merge':'split',_0x5aab2e=_0x164c2f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ece42}),_0x5268c0=_0x164c2f['mapper']['toViewPosition'](_0xf65d5d['createPositionBefore'](_0x1ca921));_0x5f1df5&&_0x1f6b61['activeMarkers']['includes'](_0x3ad6e6['markerName'])&&_0x164c2f['writer']['addClass']('ck-suggestion-marker--active',_0x5aab2e),_0x164c2f['writer']['insert'](_0x5268c0,_0x5aab2e),_0x164c2f['mapper']['bindElementToMarker'](_0x5aab2e,_0x3ad6e6['markerName']);}};}class wt extends _0x4f5a27{['afterInit'](){const _0x9ee8c8=this['editor'],_0x18f240=_0x9ee8c8['model'],_0x3df14f=_0x9ee8c8['locale'];if(!_0x9ee8c8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2c532c=_0x9ee8c8['plugins']['get']('TrackChangesEditing'),_0x56e0d0='restrictedEditingException',_0x4d27ef=_0x9ee8c8['commands']['get'](_0x56e0d0);_0x2c532c['enableCommand'](_0x56e0d0,(_0x4e3273,_0x2cf68d={})=>{const _0x4de22c=_0x18f240['document']['selection'];if(_0x4de22c['isCollapsed'])return void _0x4e3273(_0x2cf68d);const _0x23b445=void 0x0!==_0x2cf68d['forceValue']?_0x2cf68d['forceValue']:!_0x4d27ef['value'];_0x18f240['change'](()=>{const _0x59decb=Array['from'](_0x4de22c['getRanges']());for(const _0x39074e of _0x59decb){const _0x3d0941=_0x23b445?[_0x39074e]:io(_0x56e0d0,_0x39074e,_0x18f240);for(const _0x1478ad of _0x3d0941)_0x2c532c['markInlineFormat'](_0x1478ad,{'commandName':_0x56e0d0,'commandParams':[{'forceValue':_0x23b445}]});}});}),_0x2c532c['descriptionFactory']['registerDescriptionCallback'](_0x2c4849=>{if('formatBlock'!=_0x2c4849['type']&&'formatInline'!=_0x2c4849['type'])return;const {data:_0x197e09}=_0x2c4849;return _0x197e09&&_0x197e09['commandName']==_0x56e0d0?_0x197e09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3df14f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3df14f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4f5a27{['afterInit'](){const _0x25125a=this['editor'];if(!_0x25125a['plugins']['has']('Style')||!_0x25125a['plugins']['has']('DataSchema'))return;const _0xcc6bf7=_0x25125a['plugins']['get']('TrackChangesEditing'),_0x5bfcce=_0x25125a['locale'],_0x17c1c3=_0x25125a['config']['get']('style')||{},_0x246faa=_0x25125a['plugins']['get']('GeneralHtmlSupport'),_0x5159db=_0x25125a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x25125a['plugins']['get']('DataSchema'),_0x17c1c3['definitions']);_0xcc6bf7['enableDefaultAttributesIntegration']('style');const _0x866e77=new Set();for(const _0x5b36eb of _0x5159db['block']){const _0x3dfd43=_0x246faa['getGhsAttributeNameForElement'](_0x5b36eb['element']);_0x866e77['add'](_0x3dfd43);}const _0x1bc515=new Set();for(const _0x11ebe1 of _0x5159db['inline']){const _0x310ee1=_0x246faa['getGhsAttributeNameForElement'](_0x11ebe1['element']);_0x1bc515['add'](_0x310ee1);for(const _0x14e3d7 of _0x11ebe1['ghsAttributes'])_0x1bc515['add'](_0x14e3d7);}for(const _0x458684 of _0x866e77)_0xcc6bf7['registerBlockAttribute'](_0x458684),_0xcc6bf7['descriptionFactory']['registerAttributeLabel'](_0x458684,o(_0x5bfcce,'FORMAT_STYLE'));for(const _0xa3e14b of _0x1bc515)_0xcc6bf7['registerInlineAttribute'](_0xa3e14b),_0xcc6bf7['descriptionFactory']['registerAttributeLabel'](_0xa3e14b,o(_0x5bfcce,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x288586=this['editor'],_0xad2c66=_0x288586['locale'];_0x288586['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47d1cd=>{if('formatBlock'!=_0x47d1cd['type']&&'formatInline'!=_0x47d1cd['type'])return;const {data:_0x33cb06}=_0x47d1cd;return _0x33cb06&&'style'===_0x33cb06['commandName']?_0x33cb06['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xad2c66,'*Set\x20format:*\x20%0',_0x33cb06['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xad2c66,'*Remove\x20format:*\x20%0',_0x33cb06['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4f5a27{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x184b06){super(_0x184b06),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x450f98=this['editor'],_0x4fc16b=_0x450f98['model']['document']['selection'];if(!_0x450f98['plugins']['has']('TableEditing'))return;const _0x5b6d17=_0x450f98['locale'],_0x333942=_0x450f98['plugins']['get']('TrackChangesEditing'),_0x177ceb=_0x450f98['plugins']['get']('TableUtils');_0x333942['descriptionFactory']['registerElementLabel']('table',_0x535dff=>o(_0x5b6d17,'ELEMENT_TABLE',_0x535dff)),this['_setupColumnsRowsFixing'](),_0x333942['enableCommand']('insertTable'),_0x333942['enableCommand']('selectTableRow'),_0x333942['enableCommand']('selectTableColumn');for(const _0x4f2314 of['insertTableRowAbove','insertTableRowBelow']){const _0x25358a=_0x450f98['commands']['get'](_0x4f2314);_0x333942['enableCommand'](_0x4f2314,_0x274b40=>{_0x450f98['model']['change'](_0x5a3c8c=>{_0x274b40();const _0x37c57c='above'===_0x25358a['order'],_0x1f0f43=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x4b6c4a=_0x177ceb['getRowIndexes'](_0x1f0f43),_0x2f35f6=_0x37c57c?_0x4b6c4a['first']-0x1:_0x4b6c4a['last']+0x1,_0x3093e4=_0x1f0f43[0x0]['findAncestor']('table'),_0x4168a3=_0x177ceb['createTableWalker'](_0x3093e4,{'startRow':_0x2f35f6,'endRow':_0x2f35f6}),_0x1a9370=Array['from'](_0x4168a3)['map'](_0x50de6e=>_0x5a3c8c['createRangeOn'](_0x50de6e['cell']));_0x333942['markMultiRangeInsertion'](_0x1a9370,'tableRow');});});}for(const _0x57c373 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4bfbe7=_0x450f98['commands']['get'](_0x57c373);_0x333942['enableCommand'](_0x57c373,_0x104034=>{_0x450f98['model']['change'](_0x3ce555=>{_0x104034();const _0x29fb7b='left'===_0x4bfbe7['order'],_0x459ede=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x292dc7=_0x177ceb['getColumnIndexes'](_0x459ede),_0x484e1e=_0x29fb7b?_0x292dc7['first']-0x1:_0x292dc7['last']+0x1,_0x545921=_0x459ede[0x0]['findAncestor']('table'),_0x35d472=_0x177ceb['createTableWalker'](_0x545921,{'startRow':0x0,'column':_0x484e1e,'includeAllSlots':!0x1}),_0x55932b=Array['from'](_0x35d472)['map'](_0x156f28=>_0x3ce555['createRangeOn'](_0x156f28['cell']));_0x333942['markMultiRangeInsertion'](_0x55932b,'tableColumn');});});}for(const _0x4632ad of['removeTableRow','removeTableColumn']){const _0x3df9c0=_0x4632ad['substr'](0xb),_0x3f7486=_0x3df9c0['toLowerCase'](),_0x148f1b=_0x3f7486['substr'](0x0,0x3)+'span',_0x32e054='table'+_0x3df9c0,_0x22236e='min'+_0x3df9c0,_0x19c437='max'+_0x3df9c0;_0x333942['enableCommand'](_0x4632ad,()=>{_0x450f98['model']['change'](_0x230306=>{const _0x2f432e=_0x177ceb['getSelectionAffectedTableCells'](_0x4fc16b),_0x5c5334=_0x2f432e[0x0]['findAncestor']('table');let _0x1e59cf;if('removeTableRow'==_0x4632ad){const _0x309541=_0x177ceb['getRowIndexes'](_0x2f432e);_0x1e59cf={'startRow':_0x309541['first'],'endRow':_0x309541['last'],'includeAllSlots':!0x0};}else{const _0x32284f=_0x177ceb['getColumnIndexes'](_0x2f432e);_0x1e59cf={'startColumn':_0x32284f['first'],'endColumn':_0x32284f['last'],'includeAllSlots':!0x0};}const _0x5bdd0e=_0x177ceb['createTableWalker'](_0x5c5334,_0x1e59cf),_0x41c917=Array['from'](_0x5bdd0e)['map'](({cell:_0x2625d6})=>_0x2625d6),_0x3a11bb=Ee(_0x41c917['filter'](_0x24e5af=>_0x24e5af['hasAttribute'](_0x148f1b))),_0x7dff93=Ee(_0x41c917['filter'](_0xa05079=>!_0xa05079['hasAttribute'](_0x148f1b)))['map'](_0x1d8e17=>_0x230306['createRangeOn'](_0x1d8e17)),_0x49f975=_0x333942['markMultiRangeDeletion'](_0x7dff93,_0x32e054);if(_0x49f975&&('tableRow'==_0x49f975['subType']||'tableColumn'==_0x49f975['subType'])){const _0xb1b070=this['_getSuggestionCoords'](_0x49f975);for(const _0x4ea917 of _0x3a11bb){const _0x18d3ad=_0x230306['createRangeOn'](_0x4ea917),_0x287c76=_0x177ceb['getCellLocation'](_0x4ea917),_0x4128d3=_0x4ea917['getAttribute'](_0x148f1b)-0x1,_0x11951a=_0xb1b070[_0x22236e],_0x42364c=_0xb1b070[_0x19c437];_0x11951a<=_0x287c76[_0x3f7486]&&_0x287c76[_0x3f7486]+_0x4128d3<=_0x42364c&&_0x49f975['addRange'](_0x18d3ad);}}});});}function _0x4d5155(_0x3aa149){const _0x33614a=Array['from'](_0x4fc16b['getRanges']())['map'](_0x104990=>_0x828bf8['fromRange'](_0x104990));_0x450f98['model']['change'](_0x2efccd=>{const _0x460fa4=_0x2efccd['batch'];_0x3aa149=_0x3aa149['filter'](_0x1d5e60=>'$graveyard'!=_0x1d5e60['root']['rootName']),_0x2efccd['setSelection'](_0x3aa149),_0x450f98['commands']['get']('removeTableRow')['refresh'](),_0x450f98['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x450f98['model']['enqueueChange'](()=>{_0x450f98['model']['enqueueChange'](_0x460fa4,_0x2cf62c=>{const _0x5070fa=_0x33614a['filter'](_0x253b1b=>'$graveyard'!=_0x253b1b['root']['rootName']);_0x5070fa['length']>0x0&&_0x2cf62c['setSelection'](_0x5070fa);for(const _0x1a43b0 of _0x33614a)_0x1a43b0['detach']();});});});}function _0x148252(_0x1cd745){_0x450f98['model']['change'](_0x346a44=>{const _0x2e91a5=Array['from'](_0x4fc16b['getRanges']())['map'](_0x26013b=>_0x828bf8['fromRange'](_0x26013b)),_0x55dc0e=[];for(const _0x2e3d66 of _0x1cd745)for(const _0x2f9d08 of _0x2e3d66['getItems']({'shallow':!0x0}))_0x55dc0e['push'](_0x2f9d08);for(const _0x2e29e7 of _0x55dc0e)'$graveyard'!=_0x2e29e7['root']['rootName']&&(_0x346a44['setSelection'](_0x346a44['createPositionAt'](_0x2e29e7,0x0)),_0x450f98['commands']['get']('removeTableColumn')['refresh'](),_0x450f98['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x72f5cb=_0x2e91a5['filter'](_0x456c80=>'$graveyard'!=_0x456c80['root']['rootName']);_0x72f5cb['length']>0x0&&_0x346a44['setSelection'](_0x72f5cb);for(const _0x1954f4 of _0x2e91a5)_0x1954f4['detach']();});}function _0x93c94(_0x18cfaf,_0x1374d2){return _0x1374d2['every'](_0x3214f6=>_0x18cfaf['some'](_0x1bce8f=>_0x1bce8f['end']['isEqual'](_0x3214f6['start'])||_0x3214f6['end']['isEqual'](_0x1bce8f['start'])));}function _0x290e18(_0x2114cd,_0x2c946e){return!_0x2114cd['some'](_0x444b87=>_0x2c946e['some'](_0x4e4b8c=>_0x444b87['isIntersecting'](_0x4e4b8c)))&&_0x2114cd['some'](_0x570b18=>_0x2c946e['some'](_0xc770ca=>_0x570b18['end']['isTouching'](_0xc770ca['start'])));}_0x450f98['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x10b156,_0x6feaf1,_0x5af466)=>{if(!_0x5af466['options']['showSuggestionHighlights'])return;const _0x5e550c=_0x6feaf1['item'];if(!_0x5e550c)return;const _0x5e76e9=_0x5af466['mapper']['toViewElement'](_0x5e550c);function _0x3bd5a3(_0x43419f){return Array['isArray'](_0x43419f)?_0x43419f:[_0x43419f];}_0x5e76e9&&'tableCell'===_0x5e550c['name']&&_0x243104(_0x5e76e9,_0x5af466['writer'],(_0x552271,_0x3422bc,_0x51b57f)=>_0x51b57f['addClass'](_0x3bd5a3(_0x3422bc['classes']),_0x552271),(_0x2f79de,_0x5d65e5,_0x28566b)=>_0x28566b['removeClass'](_0x3bd5a3(_0x5d65e5['classes']),_0x2f79de));},{'priority':'highest'}),_0x333942['descriptionFactory']['registerDescriptionCallback'](_0x276740=>{if('insertion'!=_0x276740['type']&&'deletion'!=_0x276740['type'])return;const _0xc55182=_0x276740['getContainedElement']();if(null!=_0xc55182&&_0xc55182['is']('element','table')){if('insertion'==_0x276740['type']){const _0x19ea11=_0x276740['getItems']()['filter'](_0x3f8ca9=>_0x3f8ca9['is']('$textProxy'))['map'](_0x289310=>_0x289310['data']);if(_0x19ea11['length'])return{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19ea11['join']('\x20')+'\x22'))};}if('deletion'==_0x276740['type']){const _0x2de5b6=_0x276740['getItems']()['filter'](_0x54702d=>_0x54702d['is']('$textProxy'))['map'](_0x508bbe=>_0x508bbe['data']);if(_0x2de5b6['length'])return{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2de5b6['join']('\x20')+'\x22'))};}}}),_0x333942['descriptionFactory']['registerDescriptionCallback'](_0x4c8fbe=>{if('tableRow'==_0x4c8fbe['subType']){const _0x2902e0=_0x4c8fbe['getItems']()['filter'](_0x3ebc97=>_0x3ebc97['is']('$textProxy'))['map'](_0x3a08d9=>_0x3a08d9['data']),_0x3c3cc1=this['_getSuggestionCoords'](_0x4c8fbe),_0x12edc0=_0x3c3cc1['maxRow']-_0x3c3cc1['minRow']+0x1;if('insertion'==_0x4c8fbe['type'])return _0x2902e0['length']?{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12edc0,'\x22'+_0x2902e0['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW',_0x12edc0))};if('deletion'==_0x4c8fbe['type'])return _0x2902e0['length']?{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x12edc0,'\x22'+_0x2902e0['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_ROW',_0x12edc0))};}if('tableColumn'==_0x4c8fbe['subType']){const _0x19c591=_0x4c8fbe['getItems']()['filter'](_0x58e31d=>_0x58e31d['is']('$textProxy'))['map'](_0x32a6b6=>_0x32a6b6['data']),_0x1dd7d3=this['_getSuggestionCoords'](_0x4c8fbe),_0x113976=_0x1dd7d3['maxColumn']-_0x1dd7d3['minColumn']+0x1;if('insertion'==_0x4c8fbe['type'])return _0x19c591['length']?{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x113976,'\x22'+_0x19c591['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5b6d17,'*Insert:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN',_0x113976))};if('deletion'==_0x4c8fbe['type'])return _0x19c591['length']?{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x113976,'\x22'+_0x19c591['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5b6d17,'*Remove:*\x20%0',o(_0x5b6d17,'ELEMENT_TABLE_COLUMN',_0x113976))};}}),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4d5155),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4d5155),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x148252),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x148252),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x93c94),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x93c94),_0x333942['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x290e18),_0x333942['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x290e18);}['_acceptFormatSuggestionCallbackFactory'](){const _0x14fcfe=this['editor'],_0x3866b8=_0x14fcfe['model']['document']['selection'];return(_0x4eb138,_0x1f5403)=>{_0x14fcfe['model']['change'](_0x236287=>{const {commandName:_0x3e9b98,commandParams:_0x541094}=_0x1f5403;let _0x3561e9=_0x4eb138[0x0]['end']['nodeBefore'];_0x541094&&_0x541094[0x0]&&!0x1===_0x541094[0x0]['forceValue']&&(_0x3561e9=_0x4eb138[0x0]['start']['nodeAfter']);const _0x1989ea=_0x236287['createRangeIn'](_0x3561e9);if('$graveyard'==_0x1989ea['root']['rootName'])return;const _0x5e726c=Array['from'](_0x3866b8['getRanges']())['map'](_0x4b94be=>_0x828bf8['fromRange'](_0x4b94be));_0x236287['setSelection'](_0x1989ea),_0x14fcfe['commands']['get'](_0x3e9b98)['refresh'](),_0x541094['push']({'forceDefaultExecution':!0x0}),_0x14fcfe['execute'](_0x3e9b98,..._0x541094);const _0x56cc90=_0x5e726c['filter'](_0x581e6a=>'$graveyard'!=_0x581e6a['root']['rootName']);_0x56cc90['length']>0x0&&_0x236287['setSelection'](_0x56cc90);for(const _0x238d3e of _0x5e726c)_0x238d3e['detach']();});};}['_getCoordsForCells'](_0x454532){const _0x15a1f7=this['editor']['plugins']['get']('TableUtils');let _0x328535=Number['MAX_SAFE_INTEGER'],_0x36b27d=Number['MIN_SAFE_INTEGER'],_0x6c856c=Number['MAX_SAFE_INTEGER'],_0x41c96e=Number['MIN_SAFE_INTEGER'];for(const _0x59eabe of _0x454532){if('$graveyard'==_0x59eabe['root']['rootName'])continue;const {row:_0x31be53,column:_0x5d34c4}=_0x15a1f7['getCellLocation'](_0x59eabe),_0x21f224=_0x59eabe['hasAttribute']('rowspan')?_0x59eabe['getAttribute']('rowspan')-0x1:0x0,_0x2c4628=_0x59eabe['hasAttribute']('colspan')?_0x59eabe['getAttribute']('colspan')-0x1:0x0;_0x328535=_0x31be53<_0x328535?_0x31be53:_0x328535,_0x36b27d=_0x31be53+_0x21f224>_0x36b27d?_0x31be53+_0x21f224:_0x36b27d,_0x6c856c=_0x5d34c4<_0x6c856c?_0x5d34c4:_0x6c856c,_0x41c96e=_0x5d34c4+_0x2c4628>_0x41c96e?_0x5d34c4+_0x2c4628:_0x41c96e;}return{'minRow':_0x328535,'maxRow':_0x36b27d,'minColumn':_0x6c856c,'maxColumn':_0x41c96e};}['_setupColumnsRowsFixing'](){const _0x19ba90=this['editor'],_0x2aad64=_0x19ba90['plugins']['get']('TrackChangesEditing'),_0x1da0b6=_0x19ba90['plugins']['get']('TableUtils');_0x19ba90['model']['document']['on']('change:data',()=>{const _0x19fb2b=Array['from'](_0x19ba90['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12bbf4,data:_0x32d94a}of _0x19fb2b){const {group:_0x4189a9,id:_0x59b252,subType:_0x2d8f24}=_0x2aad64['_splitMarkerName'](_0x12bbf4);if('suggestion'!=_0x4189a9)continue;if(null!=_0x32d94a['oldRange'])continue;const _0x158819=_0x2aad64['getSuggestion'](_0x59b252);this['_tablePostFixingSubtypes']['includes'](_0x2d8f24)&&this['_tableSuggestions']['add'](_0x158819);}},{'priority':'low'});const _0x108376=(_0x5cef6e,_0x5dc3c0)=>{let _0x4d5e15=!0x1;const _0x327713=_0x5dc3c0['createRangeOn'](_0x5cef6e),_0xf09162=_0x5cef6e['findAncestor']('table'),_0x5c1c95=_0x1da0b6['getCellLocation'](_0x5cef6e);for(const _0x133bf9 of this['_tableSuggestions']){const _0x22327b=_0x133bf9['subType'],_0x23fc6e=_0x22327b['startsWith']('tablePaste'),_0x593a84=_0x22327b['substr'](_0x23fc6e?0xa:0x5),_0x9e80ab=_0x593a84['toLowerCase'](),_0x2cb6cd=_0x9e80ab['substr'](0x0,0x3)+'span',_0x98ae56='min'+_0x593a84,_0x226625='max'+_0x593a84;if(!_0x133bf9['isInContent'])continue;if(_0xf09162!=_0x133bf9['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x133bf9['isIntersectingWithRange'](_0x327713))continue;const _0x4e591e=_0x5cef6e['hasAttribute'](_0x2cb6cd)?_0x5cef6e['getAttribute'](_0x2cb6cd)-0x1:0x0,_0x466382=this['_getSuggestionCoords'](_0x133bf9),_0x13c321=_0x466382[_0x98ae56],_0x3f341e=_0x466382[_0x226625];_0x13c321<=_0x5c1c95[_0x9e80ab]&&_0x5c1c95[_0x9e80ab]+_0x4e591e<=_0x3f341e&&(_0x133bf9['addRange'](_0x327713),_0x4d5e15=!0x0);}return _0x4d5e15;};_0x19ba90['model']['document']['registerPostFixer'](_0x1f0215=>{let _0x41bfe5=!0x1;for(const _0x4ec77a of _0x19ba90['model']['document']['differ']['getChanges']())if('insert'==_0x4ec77a['type']){if('tableRow'==_0x4ec77a['name']){for(const _0x4b0ac0 of _0x4ec77a['position']['nodeAfter']['getChildren']())_0x41bfe5=_0x41bfe5||_0x108376(_0x4b0ac0,_0x1f0215);}else'tableCell'==_0x4ec77a['name']&&(_0x41bfe5=_0x41bfe5||_0x108376(_0x4ec77a['position']['nodeAfter'],_0x1f0215));}return _0x41bfe5;});}['_getSuggestionCoords'](_0x187e5f){return this['_getCoordsForCells'](_0x187e5f['getRanges']()['map'](_0x1fda8e=>_0x1fda8e['start']['nodeAfter']));}}function Ee(_0x115f9a){return Array['from'](new Set(_0x115f9a)['values']());}class St extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x5b755d=this['editor'],_0x4d1c8d=_0x5b755d['model']['document']['selection'],_0xf646fb=_0x5b755d['locale'];if(!_0x5b755d['plugins']['has']('TableEditing'))return;const _0x3a5048=_0x5b755d['plugins']['get']('TrackChangesEditing'),_0x1651f9=_0x5b755d['plugins']['get']('TableUtils'),_0x520f31=_0x5b755d['plugins']['get'](jt);_0x520f31['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x3a5048['enableCommand']('mergeTableCells',()=>{const _0x43f309=_0x1651f9['getSelectionAffectedTableCells'](_0x5b755d['model']['document']['selection']);_0x5b755d['model']['change'](()=>{_0x3a5048['markMultiRangeBlockFormat'](_0x43f309,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5b755d['commands']['get']('mergeTableCells')['on']('execute',(_0x113058,_0x27d43a)=>{_0x5b755d['commands']['get']('trackChanges')['value']&&(_0x27d43a['length']>0x0&&_0x27d43a[_0x27d43a['length']-0x1]&&_0x27d43a[_0x27d43a['length']-0x1]['forceDefaultExecution']||_0x3a5048['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x113058['stop']());},{'priority':'highest'});for(const _0x2944d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x49caa1=_0x5b755d['commands']['get'](_0x2944d8);_0x3a5048['enableCommand'](_0x2944d8,()=>{const _0x135b8d=_0x5b755d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3717fc=>_0x3717fc['is']('element','tableCell')),_0x2e3385=_0x49caa1['value'];_0x5b755d['model']['change'](()=>{_0x3a5048['markMultiRangeBlockFormat']([_0x135b8d,_0x2e3385],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2247a8 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x33762a=_0x5b755d['commands']['get'](_0x2247a8);_0x3a5048['enableCommand'](_0x2247a8,()=>{const _0x4df394=_0x1651f9['getSelectionAffectedTableCells'](_0x5b755d['model']['document']['selection'])[0x0],_0x1bd8ca=_0x4df394['findAncestor']('table'),{column:_0x32b9a5,row:_0x57b993}=_0x1651f9['getCellLocation'](_0x4df394);let _0x525922=[];if('horizontally'==_0x33762a['direction']){const _0x4ba351=_0x1651f9['createTableWalker'](_0x1bd8ca,{'startRow':_0x57b993,'endRow':_0x57b993,'includeAllSlots':!0x0});_0x525922=Array['from'](_0x4ba351)['map'](_0x328ca3=>_0x328ca3['cell']);}else{const _0x479acb=_0x1651f9['createTableWalker'](_0x1bd8ca,{'column':_0x32b9a5,'includeAllSlots':!0x0});_0x525922=Array['from'](_0x479acb)['map'](_0x104065=>_0x104065['cell']);}_0x5b755d['model']['change'](_0x4cadb7=>{_0x3a5048['markBlockFormat'](_0x4cadb7['createRangeOn'](_0x4df394),{'commandName':_0x2247a8,'commandParams':[]},_0x525922,_0x2247a8);});});}_0x3a5048['descriptionFactory']['registerDescriptionCallback'](_0x216195=>{if('formatBlock'!=_0x216195['type']&&'formatInline'!=_0x216195['type'])return;const {data:_0xcd03ce}=_0x216195;return _0xcd03ce&&'mergeTableCells'==_0xcd03ce['commandName']?{'type':'format','content':o(_0xf646fb,'*Merge\x20cells*')}:void 0x0;}),_0x3a5048['descriptionFactory']['registerDescriptionCallback'](_0x5118a6=>{if('formatBlock'!=_0x5118a6['type']&&'formatInline'!=_0x5118a6['type'])return;const {data:_0x417dbd}=_0x5118a6;return _0x417dbd?'splitTableCellVertically'==_0x417dbd['commandName']?{'type':'format','content':o(_0xf646fb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x417dbd['commandName']?{'type':'format','content':o(_0xf646fb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4c2f12=_0x520f31['_acceptFormatSuggestionCallbackFactory']();for(const _0x550bad of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x550bad,'accept',_0x4c2f12);for(const _0x375cc1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x375cc1,'accept',_0x4c2f12);_0x3a5048['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x20cdbb=>{_0x5b755d['model']['change'](_0x44e9ea=>{const _0x39e474=Array['from'](_0x4d1c8d['getRanges']())['map'](_0x31640d=>_0x828bf8['fromRange'](_0x31640d));_0x44e9ea['setSelection'](_0x20cdbb),_0x5b755d['commands']['get']('mergeTableCells')['refresh'](),_0x5b755d['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c7848=_0x39e474['filter'](_0x48cbe6=>'$graveyard'!=_0x48cbe6['root']['rootName']);_0x5c7848['length']>0x0&&_0x44e9ea['setSelection'](_0x5c7848);for(const _0x27b5cb of _0x39e474)_0x27b5cb['detach']();});});for(const _0x5e3ec2 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x158120=_0x5b755d['commands']['get'](_0x5e3ec2);_0x158120['on']('set:isEnabled',(_0x137cc1,_0x13e783,_0x4983ac)=>{if(_0x4983ac){const _0x5809a4=_0x5b755d['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5bae1b=>_0x5bae1b['is']('element','tableCell'));this['_areMergableCells'](_0x158120['value'],_0x5809a4)||(_0x137cc1['return']=!0x1,_0x137cc1['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x802f1d=this['editor']['commands']['get']('mergeTableCells'),_0x2c798c=this['editor']['plugins']['get']('TableUtils');if(!_0x802f1d['isEnabled'])return!0x1;const _0x2885be=_0x2c798c['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5946c1 of _0x2885be)for(const _0x41cd9a of _0x2885be)if(_0x5946c1!=_0x41cd9a&&!this['_areMergableCells'](_0x5946c1,_0x41cd9a))return!0x1;return!0x0;}['_areMergableCells'](_0x4db934,_0x1e7d54){const _0x2204a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c4cc3=this['editor']['model']['createRangeOn'](_0x4db934),_0x3fc48f=this['editor']['model']['createRangeOn'](_0x1e7d54),_0x446869=new Set(),_0x729ad7=new Set();for(const _0x3e8d49 of _0x2204a1['getSuggestions']())if(('insertion'==_0x3e8d49['type']||'deletion'==_0x3e8d49['type']||'mergeTableCells'==_0x3e8d49['subType'])&&_0x3e8d49['isInContent']){for(const _0x357e9e of _0x3e8d49['getRanges']())_0x357e9e['containsRange'](_0x2c4cc3,!0x0)&&_0x446869['add'](_0x3e8d49['type']+':'+_0x3e8d49['author']['id']),_0x357e9e['containsRange'](_0x3fc48f,!0x0)&&_0x729ad7['add'](_0x3e8d49['type']+':'+_0x3e8d49['author']['id']);}if(_0x446869['size']!=_0x729ad7['size'])return!0x1;for(const _0x48b6ee of _0x446869)if(!_0x729ad7['has'](_0x48b6ee))return!0x1;return!0x0;}}class At extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x361744=this['editor'];if(!_0x361744['plugins']['has']('TableEditing'))return;const _0x4c9cf7=_0x361744['locale'],_0x4e17db=_0x361744['plugins']['get']('TrackChangesEditing');_0x4e17db['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x4e17db['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x4e17db['registerBlockAttribute']('headingRows'),_0x4e17db['registerBlockAttribute']('headingColumns'),_0x4e17db['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4c9cf7,'FORMAT_HEADER_ROW')),_0x4e17db['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4c9cf7,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30a6d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30118a=this['editor']['plugins']['get']('TableUtils'),_0x43171d=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2412b1({showActiveMarker:_0x579efe=!0x0,setDataAttribute:_0x469004=!0x0}={}){return(_0x7722a3,_0x3a6f13,_0x4e3e5d)=>{const {type:_0x27070a,id:_0x270b9d}=_0x30a6d5['_splitMarkerName'](_0x3a6f13['markerName']),_0xb8cf17=_0x30a6d5['getSuggestion'](_0x270b9d),_0xb1cabf=_0xb8cf17['data'];if('formatBlock'!=_0xb8cf17['type']||!_0xb1cabf||'setTableColumnHeader'!=_0xb1cabf['commandName'])return;if(_0x3a6f13['item'])return void _0x7722a3['stop']();if(!_0x4e3e5d['consumable']['consume'](_0x3a6f13['markerRange'],_0x7722a3['name']))return;const _0x128be7=_0x3a6f13['markerRange']['start']['nodeAfter'],_0x1de884=_0x3a6f13['markerRange']['end']['nodeBefore'],_0x1dd9d9=_0x128be7['parent']['parent'],{column:_0x1feda3}=_0x30118a['getCellLocation'](_0x128be7),{column:_0x3fd4ba}=_0x30118a['getCellLocation'](_0x1de884);for(let _0x4d43f0=_0x1feda3;_0x4d43f0<=_0x3fd4ba;_0x4d43f0++){const _0x49dfd6=_0x30118a['createTableWalker'](_0x1dd9d9,{'column':_0x4d43f0,'includeAllSlots':!0x1});for(const _0x46084f of _0x49dfd6){const _0xdf6645=_0x46084f['cell'],_0xdb3677=_0x4e3e5d['mapper']['toViewElement'](_0xdf6645);_0x4e3e5d['writer']['addClass']('ck-suggestion-marker-'+_0x27070a,_0xdb3677),_0x469004&&_0x4e3e5d['writer']['setAttribute']('data-suggestion',_0x270b9d,_0xdb3677),_0x4e3e5d['mapper']['bindElementToMarker'](_0xdb3677,_0x3a6f13['markerName']),_0x579efe&&(_0x30a6d5['activeMarkers']['includes'](_0x3a6f13['markerName'])?_0x4e3e5d['writer']['addClass']('ck-suggestion-marker--active',_0xdb3677):_0x4e3e5d['writer']['removeClass']('ck-suggestion-marker--active',_0xdb3677));}}};}_0x30a6d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x43171d),_0x30a6d5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x43171d),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2412b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xcb0109,_0x449bf9,_0x15dbdf)=>{_0x15dbdf['options']['showSuggestionHighlights']&&_0x2412b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xcb0109,_0x449bf9,_0x15dbdf);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2cc41a,_0x418796,_0x440cbd)=>{const {type:_0x2972d8,id:_0xac8560}=_0x30a6d5['_splitMarkerName'](_0x418796['markerName']),_0x16b500=_0x30a6d5['getSuggestion'](_0xac8560),_0x295f6d=_0x16b500['data'];if('formatBlock'!=_0x16b500['type']||!_0x295f6d||'setTableColumnHeader'!=_0x295f6d['commandName'])return;const _0x2bb939=_0x440cbd['mapper']['markerNameToElements'](_0x418796['markerName']);if(_0x2bb939){for(const _0x47e525 of _0x2bb939)_0x440cbd['writer']['removeClass']('ck-suggestion-marker-'+_0x2972d8,_0x47e525),_0x440cbd['writer']['removeClass']('ck-suggestion-marker--active',_0x47e525),_0x440cbd['writer']['removeAttribute']('data-suggestion',_0x47e525),_0x440cbd['mapper']['unbindElementFromMarkerName'](_0x47e525,_0x418796['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5afe8e=this['editor'],_0x2e8c87=_0x5afe8e['locale'];function _0x20e63a(_0x5ca216){return{'type':'format','content':o(_0x2e8c87,'*Format:*\x20%0',_0x5ca216)};}_0x5afe8e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42bda4=>{if('formatBlock'!=_0x42bda4['type'])return;const {data:_0x24fea7}=_0x42bda4;if(_0x24fea7){if('setTableRowHeader'==_0x24fea7['commandName']){const _0x366937=_0x24fea7['commandParams'][0x0]['forceValue'];return _0x20e63a(o(_0x2e8c87,_0x366937?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x24fea7['commandName']){const _0x872919=_0x24fea7['commandParams'][0x0]['forceValue'];return _0x20e63a(o(_0x2e8c87,_0x872919?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x41b091=>[_0x41b091,null]));class It extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0x4480ac=this['editor'];if(!_0x4480ac['plugins']['has']('TableClipboard'))return;const _0x2c004b=_0x4480ac['plugins']['get']('TrackChangesEditing'),_0x42879f=_0x4480ac['plugins']['get']('TableUtils'),_0x1fb1b4=_0x4480ac['plugins']['get'](jt),_0x369395=_0x4480ac['plugins']['get']('TableClipboard');_0x1fb1b4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4480ac['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4480ac['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3fbc6d=null;_0x4480ac['model']['on']('insertContent',(_0x5d8755,_0x21934e)=>{const [_0x4e86e6,_0x5e5e58]=_0x21934e,_0x1971b5=_0x21934e[_0x21934e['length']-0x1];_0x1971b5&&_0x1971b5['forceDefaultExecution']||_0x2c004b['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x539c99,_0x55a990,_0x342ee5,_0x270302,_0x3c0032){if(_0x55a990&&!_0x55a990['is']('documentSelection'))return!0x1;const _0x50e7c6=_0x3c0032['getTableIfOnlyTableInContent'](_0x539c99,_0x342ee5);if(!_0x50e7c6||!he(_0x50e7c6,void 0x0,_0x270302))return!0x1;const _0x309173=_0x270302['getSelectionAffectedTableCells'](_0x342ee5['document']['selection']);if(!_0x309173['length'])return!0x1;const _0x2ea457=_0x309173[0x0]['findAncestor']('table'),_0x26ee34=_0x270302['getRowIndexes'](_0x309173),_0x593b66=_0x270302['getColumnIndexes'](_0x309173),_0x388e1f={'startRow':_0x26ee34['first'],'endRow':_0x26ee34['last'],'startColumn':_0x593b66['first'],'endColumn':_0x593b66['last']};return 0x1==_0x309173['length']&&(_0x388e1f['endRow']+=_0x270302['getRows'](_0x50e7c6)-0x1,_0x388e1f['endColumn']+=_0x270302['getColumns'](_0x50e7c6)-0x1),he(_0x2ea457,_0x388e1f,_0x270302);}(_0x4e86e6,_0x5e5e58,_0x4480ac['model'],_0x42879f,_0x369395)&&(_0x5d8755['stop'](),_0x3fbc6d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4480ac['model']['change'](()=>{_0x4480ac['model']['insertContent'](_0x21934e[0x0],_0x21934e[0x1],_0x21934e[0x2],{'forceDefaultExecution':!0x0});const _0x13906a=_0x3dae9a(),{rowInsertionRanges:_0x1b7a8d,columnInsertionRanges:_0x4a4ca3,insertionRanges:_0x37bcbf,deletionRanges:_0x66ce3d,cells:_0x46ad2e}=_0x3fbc6d;_0x1b7a8d['length']&&_0x2c004b['markMultiRangeInsertion'](_0x1b7a8d,'tablePasteRow',{'tablePasteChainId':_0x13906a}),_0x4a4ca3['length']&&_0x2c004b['markMultiRangeInsertion'](_0x4a4ca3,'tablePasteColumn',{'tablePasteChainId':_0x13906a}),_0x37bcbf['length']&&(_0x2c004b['markMultiRangeInsertion'](_0x37bcbf,'tablePaste',{'tablePasteChainId':_0x13906a,'skipNestingCheck':!0x0}),_0x37bcbf['forEach'](_0x572751=>_0x572751['detach']?.())),_0x66ce3d['length']&&(_0x2c004b['markMultiRangeDeletion'](_0x66ce3d,'tablePaste',{'tablePasteChainId':_0x13906a,'skipNestingCheck':!0x0}),_0x66ce3d['forEach'](_0x553d72=>_0x553d72['detach']?.()));const _0x1c0638=_0x2c004b['markMultiRangeBlockFormat'](_0x46ad2e['map'](({element:_0x470b43})=>_0x470b43),{'formatGroupId':_0x3dae9a()},[],'tablePasteCell',{'tablePasteChainId':_0x13906a});if(_0x1c0638){const _0x14ed23=_0x1c0638['getMarkers'](),_0x1d2260=[];for(const {element:_0x26d498,attributes:_0x7096c}of _0x46ad2e){if(!_0x7096c)continue;const _0x4e925a=_0x4480ac['model']['createRangeOn'](_0x26d498),_0x21496e=_0x14ed23['find'](_0x24c45e=>_0x24c45e['getRange']()['isEqual'](_0x4e925a));_0x21496e&&_0x1d2260['push']([_0x21496e['name'],_0x7096c]);}_0x1d2260['length']&&_0x1c0638['setAttribute']('markerAttributes',Object['fromEntries'](_0x1d2260));}_0x3fbc6d=null;}));},{'priority':_0x3ca1ca['high']+0xa}),_0x4480ac['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x121e8e,_0x400fb2)=>{const [_0x2253a6,_0x2f6e39,,_0x19d0ad]=_0x400fb2;if(!_0x3fbc6d)return;_0x121e8e['stop']();const _0x1657fc=_0x2253a6['cell'],_0x10a219=_0x2f6e39,_0x4f77e3=Pe(_0x1657fc),_0x306632=Pe(_0x10a219);_0x121e8e['return']=_0x1657fc;let _0x28b15f=null,_0xc48dcb=null;if(_0x306632||_0x4f77e3){if(_0x4f77e3&&!_0x306632){_0x19d0ad['remove'](_0x1657fc['getChild'](0x0));for(const _0x464397 of Array['from'](_0x10a219['getChildren']()))_0x19d0ad['insert'](_0x464397,_0x1657fc,'end');const _0x28ff1c=_0x3fbc6d['rowInsertionIndexes']['includes'](_0x2253a6['row']),_0x406aae=_0x3fbc6d['columnInsertionIndexes']['includes'](_0x2253a6['column']);_0x28ff1c||_0x406aae||(_0x28b15f=_0x828bf8['fromRange'](_0x19d0ad['createRangeIn'](_0x1657fc)));}else _0x306632&&!_0x4f77e3&&(_0xc48dcb=_0x19d0ad['createRangeIn'](_0x1657fc));}else{const _0x4e34ce=_0x19d0ad['createElement']('tableCellSuggestion'),_0x55f328=_0x19d0ad['createElement']('tableCellSuggestion');_0x19d0ad['wrap'](_0x19d0ad['createRangeIn'](_0x1657fc),_0x55f328),_0x19d0ad['insert'](_0x4e34ce,_0x1657fc,0x0);for(const _0x35c2c2 of Array['from'](_0x10a219['getChildren']()))_0x19d0ad['insert'](_0x35c2c2,_0x4e34ce,'end');_0x28b15f=_0x828bf8['fromRange'](_0x19d0ad['createRangeOn'](_0x4e34ce)),_0xc48dcb=_0x828bf8['fromRange'](_0x19d0ad['createRangeOn'](_0x55f328));}const _0x23208e=Array['from'](_0x10a219['getAttributes']())['filter'](([_0x446f6d])=>ge['includes'](_0x446f6d));_0x3fbc6d['cells']['push']({'element':_0x1657fc,'attributes':_0x23208e['length']?Object['fromEntries'](_0x23208e):null}),_0x28b15f&&_0x3fbc6d['insertionRanges']['push'](_0x28b15f),_0xc48dcb&&_0x3fbc6d['deletionRanges']['push'](_0xc48dcb);},{'priority':'high'}),_0x42879f['on']('insertColumns',(_0x4bc39d,_0x47b938)=>{const [_0x36fe7c,_0x284d53={}]=_0x47b938;if(!_0x3fbc6d)return;const _0x48eb54=_0x284d53['at']||0x0,_0x1c6054=_0x284d53['columns']||0x1;_0x3fbc6d['columnInsertionIndexes']=new Array(_0x1c6054)['fill'](_0x48eb54)['map']((_0x155968,_0x48b1d7)=>_0x155968+_0x48b1d7);for(const {cell:_0x14f4c9}of _0x42879f['createTableWalker'](_0x36fe7c,{'startColumn':_0x48eb54,'endColumn':_0x48eb54+_0x1c6054-0x1}))_0x3fbc6d['columnInsertionRanges']['push'](_0x4480ac['model']['createRangeOn'](_0x14f4c9));},{'priority':'low'}),_0x42879f['on']('insertRows',(_0x1d858c,_0x3dfe00)=>{const [_0x3ab495,_0x1d018b={}]=_0x3dfe00;if(!_0x3fbc6d)return;const _0x3d8db6=_0x1d018b['at']||0x0,_0x437263=_0x1d018b['rows']||0x1;_0x3fbc6d['rowInsertionIndexes']=new Array(_0x437263)['fill'](_0x3d8db6)['map']((_0x1050a2,_0x43d4c5)=>_0x1050a2+_0x43d4c5);for(const {cell:_0x13a809}of _0x42879f['createTableWalker'](_0x3ab495,{'startRow':_0x3d8db6,'endRow':_0x3d8db6+_0x437263-0x1}))_0x3fbc6d['rowInsertionRanges']['push'](_0x4480ac['model']['createRangeOn'](_0x13a809));},{'priority':'low'}),_0x2c004b['descriptionFactory']['registerDescriptionCallback'](_0x1dd122=>{if(_0x1dd122['subType']&&_0x1dd122['subType']['startsWith']('tablePaste'))return _0x1dd122['previous']?{}:{'type':'insertion','content':o(_0x4480ac['locale'],'*Replace\x20table\x20cells*')};});const _0x536113=()=>!0x1;for(const _0x2ecc39 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion',_0x2ecc39,'join',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('deletion',_0x2ecc39,'join',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ecc39,'join',_0x536113);_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x536113),_0x2c004b['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x25e398,_0x126381,_0x4421c9)=>{const _0x2b9fcf=_0x25e398['map'](_0x4a72bc=>_0x4a72bc['getContainedElement']())['filter'](_0x4b596f=>_0x4b596f),_0x900831=new Map(_0x2b9fcf['map'](_0x1101d1=>[_0x1101d1,null]));if(_0x3fbc6d){for(const {element:_0xd6f1a,attributes:_0x239a02}of _0x3fbc6d['cells'])_0x239a02&&_0x900831['set'](_0xd6f1a,_0x239a02);}else{if(_0x4421c9&&_0x4421c9['markerAttributes'])for(const [_0x437979,_0x4bb538]of Object['entries'](_0x4421c9['markerAttributes'])){const _0x10d84e=_0x4480ac['model']['markers']['get'](_0x437979),_0x6dbd19=_0x10d84e?_0x10d84e['getRange']()['getContainedElement']():null;_0x6dbd19&&_0x900831['set'](_0x6dbd19,_0x4bb538);}}_0x4480ac['model']['change'](_0x554899=>{for(const [_0x4002b6,_0x2aa176]of _0x900831)_0x554899['setAttributes']({...Ce,..._0x2aa176},_0x4002b6);});});const _0x5d2384=(_0x43e1a7,_0x529fa8)=>{_0x2c004b['_suggestionFactory']['registerCustomCallback'](_0x43e1a7,'tablePaste',_0x529fa8,(_0x512c97,_0x44f9aa,_0x4bf6c9)=>{_0x4480ac['model']['change'](_0x221496=>{const _0x15586b=[];for(const _0x50bd2c of _0x512c97){const _0x18d06c=_0x50bd2c['start']['nodeAfter'];_0x18d06c['is']('element','tableCellSuggestion')&&_0x15586b['push'](_0x18d06c);}_0x2c004b['_suggestionFactory']['getSuggestionCallback'](_0x43e1a7,null,_0x529fa8)(_0x512c97,_0x44f9aa,_0x4bf6c9);for(const _0x12464f of _0x15586b)'$graveyard'!=_0x12464f['root']['rootName']&&_0x221496['unwrap'](_0x12464f);});});};_0x5d2384('insertion','accept'),_0x5d2384('insertion','discard'),_0x5d2384('deletion','accept'),_0x5d2384('deletion','discard'),_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x37115a=>{const _0x2a3e92=_0x37115a['map'](_0x113540=>_0x113540['getContainedElement']()),_0x7d4d63=_0x2a3e92[0x0]['findAncestor']('table'),{minRow:_0x353722,maxRow:_0x42265a}=_0x1fb1b4['_getCoordsForCells'](_0x2a3e92);_0x42879f['removeRows'](_0x7d4d63,{'at':_0x353722,'rows':_0x42265a-_0x353722+0x1});}),_0x2c004b['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x482cf2=>{const _0x5c9df1=_0x482cf2['map'](_0x22fa9e=>_0x22fa9e['getContainedElement']()),_0x4480cc=_0x5c9df1[0x0]['findAncestor']('table'),{minColumn:_0x5d4cbb,maxColumn:_0x21edbb}=_0x1fb1b4['_getCoordsForCells'](_0x5c9df1);_0x42879f['removeColumns'](_0x4480cc,{'at':_0x5d4cbb,'columns':_0x21edbb-_0x5d4cbb+0x1});});const _0x5c1ea9=(_0x4a88db,_0x670bac)=>{if(!_0x670bac['subType']||!_0x670bac['subType']['startsWith']('tablePaste'))return;const _0x758bb2=_0x670bac['attributes']['tablePasteChainId'],_0x4f3f60=_0x2c004b['getSuggestions']()['filter'](_0x32b88b=>_0x32b88b['isInContent']&&_0x32b88b['attributes']&&_0x32b88b['attributes']['tablePasteChainId']==_0x758bb2);_0x4f3f60['length']&&_0x670bac['getAllAdjacentSuggestions']()['length']!=_0x4f3f60['length']&&_0x4f3f60['reduce']((_0x1eb302,_0x5c066f)=>(_0x1eb302['next']=_0x5c066f,_0x5c066f['previous']=_0x1eb302,_0x5c066f));};function _0x2ea29c(_0x4f3045,_0x438fcc=!0x0){const {id:_0x31a580}=_0x2c004b['_splitMarkerName'](_0x4f3045['markerName']),_0x4d9121=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2e1650=_0x2c004b['activeMarkers']['includes'](_0x4f3045['markerName']);return _0x2e1650&&_0x4d9121['push']('ck-suggestion-marker--active'),{'classes':_0x4d9121,'attributes':{'data-suggestion':_0x31a580},'priority':_0x2e1650&&_0x438fcc?0xbc2:0xbb8};}_0x2c004b['on']('suggestionLoaded',_0x5c1ea9,{'priority':'high'}),_0x2c004b['on']('suggestionUnloaded',_0x5c1ea9,{'priority':'high'}),_0x4480ac['model']['document']['registerPostFixer'](()=>{let _0x46ad66=!0x1;const _0x289d57=Array['from'](_0x4480ac['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x56a53c,data:_0xbb2f6d}of _0x289d57){const {group:_0x21690b,type:_0x49a330,id:_0x15e07b}=_0x2c004b['_splitMarkerName'](_0x56a53c);if('suggestion'!=_0x21690b||'deletion'!=_0x49a330||_0xbb2f6d['oldRange'])continue;if(!_0x2c004b['hasSuggestion'](_0x15e07b))continue;const _0x5ce9c3=_0x2c004b['getSuggestion'](_0x15e07b)['getRanges'](),_0x328cbd=_0x4480ac['plugins']['get']('Users')['me'];for(const _0x20e329 of _0x2c004b['getSuggestions']()){if(!_0x20e329['isInContent']||_0x20e329['author']!=_0x328cbd)continue;if('formatBlock'!=_0x20e329['type']||'tablePasteCell'!=_0x20e329['subType'])continue;if(_0x20e329['getRanges']()['every'](_0x2dd6c2=>_0x5ce9c3['some'](_0x288dcc=>_0x288dcc['containsRange'](_0x2dd6c2,!0x0)))){for(const _0x2d91fa of _0x20e329['getAllAdjacentSuggestions']())_0x2d91fa['isInContent']&&(_0x2d91fa['discard'](),_0x46ad66=!0x0);}}}return _0x46ad66;}),_0x4480ac['model']['document']['registerPostFixer'](_0x4c0acf=>{const _0x11973a=_0x4480ac['commands']['get']('redo');if(!_0x11973a||!_0x11973a['_createdBatches']['has'](_0x4c0acf['batch']))return!0x1;let _0x221d12=!0x1;const _0x3938b6=_0x4480ac['plugins']['get']('Users')['me'],_0x5d0e56=_0x4480ac['model']['document']['differ']['getChanges'](),_0x568820=Array['from'](_0x4480ac['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x1e1351,data:_0x1ee04e})=>{const {group:_0x4b8fa4,subType:_0x4f8533,authorId:_0x28e805}=_0x2c004b['_splitMarkerName'](_0x1e1351);return'suggestion'==_0x4b8fa4&&'tablePaste'==_0x4f8533&&_0x28e805==_0x3938b6['id']&&!_0x1ee04e['oldRange'];});for(const _0x252048 of _0x5d0e56){if('insert'!=_0x252048['type']||'tableCellSuggestion'!=_0x252048['name']||0x1!=_0x252048['length'])continue;const _0x474a21=_0x4c0acf['createRange'](_0x252048['position'],_0x252048['position']['getShiftedBy'](0x1));if(!_0x568820['find'](({data:_0x2c0a57})=>_0x2c0a57['newRange']['isEqual'](_0x474a21))){for(const {name:_0x51f753,data:_0x485f46}of _0x568820)if(_0x474a21['containsRange'](_0x485f46['newRange'])){_0x4c0acf['updateMarker'](_0x51f753,{'range':_0x474a21}),_0x221d12=!0x0;break;}}}return _0x221d12;}),_0x4480ac['model']['document']['registerPostFixer'](_0x1faf08=>{let _0x4ce517=!0x1;const _0x40e238=_0x4480ac['plugins']['get']('Users')['me'],_0x5c22df=_0x2c004b['getSuggestions']()['filter'](_0x1a9fe9=>_0x1a9fe9['isInContent']&&_0x1a9fe9['author']==_0x40e238),_0x55efb5=new Set(),_0x319ccc=new Set();for(const _0x36ba2f of _0x5c22df)if('tablePaste'==_0x36ba2f['subType'])for(const _0x3fd36a of _0x36ba2f['getMarkers']()){const _0x4dfcfb=_0x3fd36a['getRange']()['getContainedElement']();if(_0x4dfcfb){if(_0x4dfcfb['is']('element','tableCellSuggestion')&&Pe(_0x4dfcfb)){_0x36ba2f['removeMarker'](_0x3fd36a['name']),_0x55efb5['add'](_0x4dfcfb),_0x4ce517=!0x0;const _0x5c5921=_0x4dfcfb['nextSibling'],_0x21a2d7=_0x4dfcfb['previousSibling'],_0x3c7011=_0x5c5921&&_0x5c5921['is']('element','tableCellSuggestion'),_0x5161eb=_0x21a2d7&&_0x21a2d7['is']('element','tableCellSuggestion');_0x3c7011&&!_0x55efb5['has'](_0x5c5921)&&_0x319ccc['add'](_0x5c5921),_0x5161eb&&!_0x55efb5['has'](_0x21a2d7)&&_0x319ccc['add'](_0x21a2d7);}else _0x4dfcfb['is']('element','paragraph')&&_0x4dfcfb['isEmpty']&&(_0x36ba2f['removeMarker'](_0x3fd36a['name']),_0x4ce517=!0x0);}}else{if('tablePasteCell'==_0x36ba2f['subType']){if(!_0x36ba2f['attributes']||!_0x36ba2f['attributes']['tablePasteChainId'])continue;const _0x3fb6d2=_0x36ba2f['attributes']['markerAttributes'];if(_0x3fb6d2&&Object['keys'](_0x3fb6d2)['length'])continue;const _0xbeba82=_0x36ba2f['attributes']['tablePasteChainId'];let _0x4da54d=!0x0,_0x2cf6cc=!0x0;for(const _0x1ed9db of _0x5c22df)if(_0x1ed9db['subType']&&_0x1ed9db['subType']['startsWith']('tablePaste')){if(!_0x1ed9db['attributes']['tablePasteChainId']){_0x2cf6cc=!0x1;break;}if(_0x1ed9db['id']!=_0x36ba2f['id']&&_0x1ed9db['attributes']['tablePasteChainId']==_0xbeba82){_0x4da54d=!0x1;break;}}_0x2cf6cc&&_0x4da54d&&(_0x36ba2f['removeMarkers'](),_0x4ce517=!0x0);}}for(const _0xd76db5 of _0x55efb5)_0x1faf08['remove'](_0xd76db5);for(const _0x533e8f of _0x319ccc)_0x1faf08['unwrap'](_0x533e8f);return _0x4ce517;}),_0x4480ac['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1071fd,_0x494a23)=>_0x2ea29c(_0x1071fd),'converterPriority':'high'}),_0x4480ac['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x28d8d,_0x3957c6)=>_0x3957c6['options']['showSuggestionHighlights']?_0x2ea29c(_0x28d8d,!0x1):null,'converterPriority':'high'});const _0x5aca45=_0x4480ac['editing']['view'];this['listenTo'](_0x5aca45['document'],'clipboardOutput',(_0x54d424,_0xd7a690)=>{const _0x5156ec=[];for(const _0x31c8d6 of _0x5aca45['createRangeIn'](_0xd7a690['content'])['getItems']())_0x31c8d6['is']('element','suggestion-td')&&_0x5156ec['push'](_0x31c8d6);_0x5aca45['change'](_0x5ed560=>{for(const _0x4e3c22 of _0x5156ec)_0x5ed560['move'](_0x5ed560['createRangeIn'](_0x4e3c22),_0x5ed560['createPositionBefore'](_0x4e3c22)),_0x5ed560['remove'](_0x4e3c22);});});}}function Pe(_0x422db7){if(_0x422db7['isEmpty'])return!0x0;const _0x211f6b=_0x422db7['getChild'](0x0);return _0x211f6b['is']('element','paragraph')&&_0x211f6b['isEmpty'];}function he(_0x218f23,_0x25aa19={},_0x3a59e8){for(const {isAnchor:_0x341fb9,cellHeight:_0x175f0a,cellWidth:_0x498fb2}of _0x3a59e8['createTableWalker'](_0x218f23,{'includeAllSlots':!0x0,..._0x25aa19}))if(!_0x341fb9||0x1!=_0x175f0a||0x1!=_0x498fb2)return!0x1;return!0x0;}class vt extends _0x4f5a27{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x29398b=this['editor']['plugins']['get']('TrackChangesEditing');_0x29398b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x29398b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x29398b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x29398b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x29398b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x29398b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x5bb8cd,_0x1d2450){const _0x54d735=this['editor']['plugins']['get']('TrackChangesEditing'),_0x255f60=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x16ecf8=_0x1d2450['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xedb840=_0x255f60['getColumnGroupElement'](_0x16ecf8);let _0xfb9ed3=_0xedb840?_0x255f60['getTableColumnsWidths'](_0xedb840):null,_0x2d6c81=_0x16ecf8['getAttribute']('tableWidth')||null;const _0x3d1ea5=_0x1d2450['tableWidth']||_0x2d6c81,_0x41f78f=_0x1d2450['columnWidths']||_0xfb9ed3,_0xf65193=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ee54c of _0x54d735['getSuggestions']()){const _0x15dcb4=_0x3ee54c['getContainedElement']();if('resizeTable'===_0x3ee54c['subType']&&_0x15dcb4===_0x16ecf8){_0x3ee54c['author']!==_0xf65193&&_0x3ee54c['discard']();const _0x4ff255=_0x3ee54c['data']['commandParams'];_0x2d6c81=_0x4ff255[0x0]['tableWidth'],_0xfb9ed3=_0x4ff255[0x0]['columnWidths'];break;}}_0x5bb8cd({'table':_0x16ecf8,'tableWidth':_0x3d1ea5,'columnWidths':_0x41f78f}),_0x54d735['markBlockFormat'](_0x16ecf8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2d6c81,'columnWidths':_0xfb9ed3}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4585df){if('formatBlock'!=_0x4585df['type']&&'formatInline'!=_0x4585df['type'])return;const {data:_0x1ba9c1}=_0x4585df;if(_0x1ba9c1&&'resizeTable'===_0x1ba9c1['formatGroupId']){const _0x4f9b4a='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4f9b4a)};}}}class Ct extends _0x4f5a27{['afterInit'](){const _0x42df9b=this['editor'];_0x42df9b['plugins']['has']('Template')&&_0x42df9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4f5a27{['afterInit'](){const _0xd13a9b=this['editor'];if(!_0xd13a9b['commands']['get']('insertTableOfContents'))return;_0xd13a9b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x28d1ca=_0xd13a9b['plugins']['get']('TrackChangesEditing'),_0x30d39a=_0xd13a9b['locale'];_0x28d1ca['descriptionFactory']['registerElementLabel']('tableOfContents',_0x9bb887=>o(_0x30d39a,'ELEMENT_TABLE_OF_CONTENTS',_0x9bb887));}}class Dt extends _0x4f5a27{['afterInit'](){const _0x29c34c=this['editor'];if(!_0x29c34c['plugins']['has']('Title'))return;const _0x543d1a=_0x29c34c['plugins']['get']('TrackChangesEditing');_0x543d1a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x29c34c['locale'],'ELEMENT_TITLE')),_0x29c34c['model']['document']['registerPostFixer'](_0x2bcb42=>{let _0x1e70c6=!0x1;const _0x706ee0=Array['from'](_0x29c34c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2fe8c7,data:_0x3b7dae}of _0x706ee0){const {group:_0x39b100}=_0x543d1a['_splitMarkerName'](_0x2fe8c7);if('suggestion'!==_0x39b100||!_0x3b7dae['newRange'])continue;const _0x5cfc47=_0x3b7dae['newRange'],_0x1b8fdc=_0x5cfc47['end']['nodeBefore'];if(!_0x1b8fdc||!_0x1b8fdc['is']('element','title-content'))continue;if(!_0x5cfc47['start']['isTouching'](_0x5cfc47['end']))continue;const _0x380b47=_0x29c34c['model']['schema']['getNearestSelectionRange'](_0x5cfc47['end'],'forward');if(_0x380b47&&_0x380b47['isCollapsed']){const _0x4a8d83=_0x2bcb42['createRange'](_0x5cfc47['start'],_0x380b47['start']);_0x4a8d83['isEqual'](_0x5cfc47)||(_0x2bcb42['updateMarker'](_0x2fe8c7,{'range':_0x4a8d83}),_0x1e70c6=!0x0);}_0x1e70c6||(_0x2bcb42['removeMarker'](_0x2fe8c7),_0x1e70c6=!0x0);}return _0x1e70c6;});}}class Nt extends _0x4f5a27{['afterInit'](){const _0x33148a=this['editor'],_0x5e32fc=_0x33148a['plugins']['get']('TrackChangesEditing');_0x33148a['plugins']['has']('UndoEditing')&&(_0x5e32fc['enableCommand']('undo'),_0x5e32fc['enableCommand']('redo'));}}class Mt extends _0x4f5a27{static get['requires'](){return[jt];}['afterInit'](){const _0xe00d3=this['editor'];if(!_0xe00d3['plugins']['has']('TableCaptionEditing'))return;_0xe00d3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4f5a27{['tableProperties'];['tableCellProperties'];constructor(_0x435319){super(_0x435319),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x31cc0f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2bed4a of this['tableProperties'])_0x31cc0f['enableCommand'](_0x2bed4a,(_0x4f78be,_0x324678)=>{const _0x171016=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2bed4a,[_0x171016],this['tableProperties'],'tableProperties',_0x4f78be,_0x324678);});_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x31cc0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2d03b1,_0x47310f)=>this['handleDiscardAction'](this['tableProperties'],_0x2d03b1,_0x47310f)),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x8236f9 of this['tableCellProperties'])_0x31cc0f['enableCommand'](_0x8236f9,(_0x2ca8de,_0x250031)=>{const _0x42001c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x8236f9,_0x42001c,this['tableCellProperties'],'tableCellProperties',_0x2ca8de,_0x250031);});_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x31cc0f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x153e05,_0x3cd827)=>this['handleDiscardAction'](this['tableCellProperties'],_0x153e05,_0x3cd827)),_0x31cc0f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x31cc0f['descriptionFactory']['registerDescriptionCallback'](_0x50f133=>this['handleSuggestionDescription'](_0x50f133));}['_handlePropertyChange'](_0x232fea,_0x257fd1,_0x4a476d,_0x54c9d1,_0x5e7d96,_0x50ad7e){const _0x302c01=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x50ad7e['batch'],()=>{for(const _0x592582 of _0x257fd1){if(this['_getSuggestion'](_0x592582,_0x54c9d1))_0x5e7d96(_0x50ad7e);else{const _0x148a90={};for(const _0x5b3c12 of _0x4a476d){const _0x2263a7=_0x592582['getAttribute'](_0x5b3c12);void 0x0!==_0x2263a7&&(_0x148a90[_0x5b3c12]=_0x2263a7);}_0x5e7d96(_0x50ad7e),_0x302c01['markBlockFormat'](_0x592582,{'commandParams':[_0x148a90]},[],_0x54c9d1);}}});}['handleDiscardAction'](_0x5288ef,_0x44027e,_0x102596){const _0x2407ff=_0x44027e[0x0]['start']['nodeAfter'],_0x166c00=_0x102596['commandParams'][0x0];this['editor']['model']['change'](_0x10d2d8=>{for(const _0x2b2443 of _0x5288ef)void 0x0!==_0x166c00[_0x2b2443]?_0x10d2d8['setAttribute'](_0x2b2443,_0x166c00[_0x2b2443],_0x2407ff):_0x10d2d8['removeAttribute'](_0x2b2443,_0x2407ff);});}['handleSuggestionDescription'](_0x1f79fa){if(_0x1f79fa['data'])switch(_0x1f79fa['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0xedc8b9,_0x3aade2){const _0x896b40=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x177d59 of _0x896b40['getSuggestions']({'skipNotAttached':!0x0})){const _0x32dcb4=_0x177d59['getContainedElement']();if(_0x177d59['subType']===_0x3aade2&&_0x32dcb4===_0xedc8b9)return _0x177d59;}return null;}}const m='$elementName';class p extends _0x4f5a27{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x5aeff2,_0x50a4a7,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x5eda90){function _0x5bb058(_0x1c07fc){return _0x1c07fc['map'](_0x1887e3=>String['fromCharCode'](_0x1887e3))['join']('');}super(_0x5eda90),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1658d5,_0x2d26cc,_0x1f3362,_0x45db44)=>{this['_model']['change'](()=>{for(const _0x173c05 of[..._0x45db44,..._0x1f3362])this['_model']['markers']['has'](_0x173c05)&&_0x5eda90['editing']['reconvertMarker'](_0x173c05);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x5eda90['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x5eda90['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x5eda90['config']['get']('trackChanges.trackFormatChanges'),_0x5eda90['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x5eda90['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x5eda90,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5bb058([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5bb058([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x34]);}['init'](){const _0x11f0d6=this['editor'],_0x551693=(_0x30d682,_0x1a7509)=>{if('attribute'!=_0x30d682)return'ck-suggestion-marker-'+_0x30d682;const _0x1a0415=_0x1a7509['split']('|')[0x0];return this['_isBlockAttribute'](_0x1a0415)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x11f0d6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x14118f=>{const {id:_0x2d3d23,type:_0x2b581e,subType:_0xd0af7f}=this['_splitMarkerName'](_0x14118f['markerName']),_0x9bc57e=['ck-suggestion-marker',_0x551693(_0x2b581e,_0xd0af7f)];let _0x5388c0=0xbb8;return this['activeMarkers']['includes'](_0x14118f['markerName'])&&(_0x9bc57e['push']('ck-suggestion-marker--active'),_0x5388c0=0xbc2),'deletion'==_0x2b581e&&(_0x5388c0+=0x5),{'classes':_0x9bc57e,'attributes':{'data-suggestion':_0x2d3d23},'priority':_0x5388c0};}}),_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x1a5b28=>{_0x1a5b28['on']('addMarker:suggestion',(_0x40690d,_0x452f30,_0x34416c)=>{if(!_0x34416c['options']['showSuggestionHighlights'])return;const _0x4f3a72=_0x452f30['item'];if(!_0x4f3a72)return;const _0x1f127f=_0x34416c['mapper']['toViewElement'](_0x4f3a72);_0x11f0d6['model']['schema']['isObject'](_0x4f3a72)&&_0x1f127f&&!_0x1f127f['getCustomProperty']('widget')&&_0x1f127f['is']('containerElement')&&_0x38640c(_0x1f127f,_0x34416c['writer']);},{'priority':'high'});}),_0x11f0d6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd3b19a,_0x587827)=>{if(!_0x587827['options']['showSuggestionHighlights'])return null;const {type:_0x4bb3ea,subType:_0x1752ae}=this['_splitMarkerName'](_0xd3b19a['markerName']);return{'classes':['ck-suggestion-marker',_0x551693(_0x4bb3ea,_0x1752ae)],'priority':0xbb8};}});const _0x2f35ab=({showActiveMarkers:_0x267a9a=!0x0,isAttributeSuggestion:_0x13ac71=!0x1}={})=>(_0x3ed8ec,_0x1d69fa,_0x5b8e41)=>{if(!_0x1d69fa['item'])return;const {id:_0x199f60}=this['_splitMarkerName'](_0x1d69fa['markerName']);if(_0x13ac71){const _0x5c62d2=this['_suggestions']['get'](_0x199f60),_0x380e76=this['_getAttributeKey'](_0x5c62d2);if(!this['_isBlockAttribute'](_0x380e76))return;}if(_0x1d69fa['item']['is']('selection'))return void _0x5b8e41['consumable']['consume'](_0x1d69fa['item'],_0x3ed8ec['name']);const _0xc201e1=_0x5b8e41['mapper']['toViewElement'](_0x1d69fa['item']);if(_0x1d69fa['item']['is']('element')&&_0x11f0d6['model']['schema']['isBlock'](_0x1d69fa['item'])&&!_0xc201e1['getCustomProperty']('addHighlight')){_0x5b8e41['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0xc201e1),_0x5b8e41['writer']['setAttribute']('data-suggestion',_0x199f60,_0xc201e1),_0x5b8e41['mapper']['bindElementToMarker'](_0xc201e1,_0x1d69fa['markerName']),_0x267a9a&&(this['activeMarkers']['includes'](_0x1d69fa['markerName'])?_0x5b8e41['writer']['addClass']('ck-suggestion-marker--active',_0xc201e1):_0x5b8e41['writer']['removeClass']('ck-suggestion-marker--active',_0xc201e1));for(const _0x24d8e4 of _0x11f0d6['model']['createRangeIn'](_0x1d69fa['item'])['getItems']())_0x5b8e41['consumable']['consume'](_0x24d8e4,_0x3ed8ec['name']);_0x5b8e41['consumable']['consume'](_0x1d69fa['item'],_0x3ed8ec['name']);}};_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x57ddc=>{_0x57ddc['on']('addMarker:suggestion:formatBlock',(_0x32db12,_0x5a7a49,_0x40dffa)=>{_0x40dffa['options']['showSuggestionHighlights']&&_0x2f35ab({'showActiveMarkers':!0x1})(_0x32db12,_0x5a7a49,_0x40dffa);},{'priority':'highest'});}),_0x11f0d6['conversion']['for']('dataDowncast')['add'](_0x592dfe=>{_0x592dfe['on']('addMarker:suggestion:attribute',(_0x4ae6dd,_0x3d6873,_0x1a7bc5)=>{_0x1a7bc5['options']['showSuggestionHighlights']&&_0x2f35ab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4ae6dd,_0x3d6873,_0x1a7bc5);},{'priority':'highest'});}),_0x11f0d6['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ef470,_0x2d9eff)=>_0x2d9eff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4ef470['substr'](0xb)}}),_0x11f0d6['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe8504b,{writer:_0xd97e3e})=>{let _0x689aa5='suggestion:'+_0xe8504b['getAttribute']('suggestion-type')+':'+_0xe8504b['getAttribute']('id');return _0xe8504b['getAttribute']('marker-count')&&(_0x689aa5+=':'+_0xe8504b['getAttribute']('marker-count')),_0xd97e3e['createElement']('$marker',{'data-name':_0x689aa5});}}),_0x11f0d6['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x56a304=>{_0x56a304['on']('addMarker:suggestion:formatBlock',_0x2f35ab(),{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x1b78b7=>{_0x1b78b7['on']('addMarker:suggestion:attribute',_0x2f35ab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x3f4d09=>{_0x3f4d09['on']('removeMarker:suggestion:formatBlock',(_0x2c97e5,_0x1367c4,_0x4deaf7)=>{const _0x59f72b=_0x4deaf7['mapper']['markerNameToElements'](_0x1367c4['markerName']);if(_0x59f72b){for(const _0x532670 of _0x59f72b)_0x532670['getCustomProperty']('addHighlight')||(_0x4deaf7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x532670),_0x4deaf7['writer']['removeAttribute']('data-suggestion',_0x532670),_0x4deaf7['mapper']['unbindElementFromMarkerName'](_0x532670,_0x1367c4['markerName']));}},{'priority':'high'});}),_0x11f0d6['conversion']['for']('editingDowncast')['add'](_0x2ae07e=>{_0x2ae07e['on']('removeMarker:suggestion:attribute',(_0x4f80b8,_0x48228d,_0x289471)=>{const _0xafe155=_0x289471['mapper']['markerNameToElements'](_0x48228d['markerName']);if(!_0xafe155)return;const {id:_0x1efe6e}=this['_splitMarkerName'](_0x48228d['markerName']),_0x4a87f1=this['_suggestions']['get'](_0x1efe6e),_0x32c8d8=this['_getAttributeKey'](_0x4a87f1);if(this['_isBlockAttribute'](_0x32c8d8)){for(const _0x4937ce of _0xafe155)_0x4937ce['getCustomProperty']('addHighlight')||(_0x289471['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4937ce),_0x289471['writer']['removeAttribute']('data-suggestion',_0x4937ce),_0x289471['mapper']['unbindElementFromMarkerName'](_0x4937ce,_0x48228d['markerName']));}},{'priority':'high'});}),_0x11f0d6['model']['document']['registerPostFixer'](_0x630ef7=>{let _0x2e32a6=!0x1;const _0x4527fb=Array['from'](_0x11f0d6['model']['document']['differ']['getChangedMarkers']()),_0x25d142=new Set();for(const {name:_0x4b0345,data:_0xe1896}of _0x4527fb){const {group:_0x20987a,type:_0x17912f,subType:_0xb9e96e,id:_0x415dce}=this['_splitMarkerName'](_0x4b0345);if('suggestion'!==_0x20987a)continue;const _0x235da0=this['_suggestions']['get'](_0x415dce);if(null!=_0xe1896['newRange']){'formatInline'==_0x17912f&&(_0x2e32a6=_0x2e32a6||Et(_0xe1896['newRange'],_0x4b0345,_0x630ef7,_0x11f0d6['model']['schema']));const _0x388cb3='attribute'==_0x17912f&&this['_isBlockAttribute'](_0xb9e96e['split']('|')[0x0]);if(_0xe1896['newRange']['isCollapsed']||'$graveyard'==_0xe1896['newRange']['root']['rootName']||'formatBlock'==_0x17912f&&!Ut(_0xe1896['newRange'])||_0x388cb3&&!Ut(_0xe1896['newRange'])||'deletion'==_0x17912f&&!(!Tt(_0x3ee243=_0xe1896['newRange'])&&!function(_0x2d547e){return _0x2d547e['start']['parent']==_0x2d547e['end']['nodeBefore']&&_0x2d547e['start']['isAtEnd'];}(_0x3ee243)))_0x630ef7['removeMarker'](_0x4b0345),_0x2e32a6=!0x0;else{if(!_0x235da0||!_0x235da0['isInContent'])continue;_0x25d142['add'](_0x235da0);}}}var _0x3ee243;return _0x25d142['size']>0x0&&(_0x2e32a6=!!this['_joinWithAdjacentSuggestions'](_0x25d142)||_0x2e32a6),_0x2e32a6;}),_0x11f0d6['model']['document']['registerPostFixer'](_0x99e49f=>{let _0xe64b86=!0x1;for(const _0x2a04d4 of _0x11f0d6['model']['document']['differ']['getChanges']())if('insert'==_0x2a04d4['type'])for(const _0x491c5f of this['_suggestions']['values']()){if(_0x491c5f['isMultiRange']||!_0x491c5f['isInContent'])continue;const _0x35ed75='formatBlock'==_0x491c5f['type'],_0x1d9637=this['_getAttributeKey'](_0x491c5f),_0x21dc3f=_0x1d9637&&this['_isBlockAttribute'](_0x1d9637);if(!_0x35ed75&&!_0x21dc3f)continue;const _0x15a7ac=_0x491c5f['getFirstRange']();if(_0x15a7ac['start']['parent']!=_0x15a7ac['end']['parent']&&!_0x15a7ac['end']['isAtEnd']){const _0x2a3792=_0x11f0d6['model']['createPositionAt'](_0x15a7ac['start']['nodeAfter'],'end'),_0x1a01d6=_0x11f0d6['model']['createRange'](_0x15a7ac['start'],_0x2a3792);_0x99e49f['updateMarker'](_0x491c5f['getFirstMarker'](),{'range':_0x1a01d6}),_0xe64b86=!0x0;}}return _0xe64b86;}),_0x11f0d6['model']['document']['registerPostFixer'](_0x17d4dd=>this['_processAttributeChanges'](_0x17d4dd)),_0x11f0d6['model']['document']['registerPostFixer'](_0x2c2ba1=>!_0x2c2ba1['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2c2ba1)),_0x11f0d6['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x11f0d6['model']['document']['on']('change:data',(_0x211413,_0x47bd66)=>{if(!_0x47bd66['isLocal']||_0x47bd66['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x359c49=_0x11f0d6['model']['document']['differ']['getChanges']();if(0x0==_0x359c49['length'])return;const _0x2c5dea=[],_0x2453c2=_0x359c49['filter'](_0x4f2137=>'attribute'==_0x4f2137['type']),_0x4a199c=_0x359c49['filter'](_0x532f66=>'insert'==_0x532f66['type']&&'$text'!=_0x532f66['name']);for(const _0x20d563 of _0x2453c2)this['_isRegisteredAttribute'](_0x20d563['attributeKey'])&&_0x2c5dea['push']({'key':_0x20d563['attributeKey'],'newValue':_0x20d563['attributeNewValue'],'oldValue':_0x20d563['attributeOldValue'],'range':Ot(_0x20d563['range'],_0x11f0d6['model'])});for(const _0x408514 of _0x4a199c){if('rename'!=_0x408514['action']&&'refresh'!=_0x408514['action'])continue;const _0x3d8360=Gt(_0x408514['position']['nodeAfter'],_0x11f0d6['model']),_0x5f1c10=_0x408514['before'];'rename'==_0x408514['action']&&_0x2c5dea['push']({'key':m,'newValue':_0x408514['name'],'oldValue':_0x5f1c10['name'],'range':_0x3d8360});for(const [_0x7e6983,_0x206ab4]of _0x5f1c10['attributes']){if(!this['_isRegisteredAttribute'](_0x7e6983))continue;const _0x577ca7=_0x408514['attributes']['get'](_0x7e6983);_0x206ab4!==_0x577ca7&&_0x2c5dea['push']({'key':_0x7e6983,'newValue':_0x577ca7,'oldValue':_0x206ab4,'range':_0x3d8360});}for(const [_0x3aadd8,_0x2022e8]of _0x408514['attributes'])this['_isRegisteredAttribute'](_0x3aadd8)&&(_0x5f1c10['attributes']['has'](_0x3aadd8)||_0x2c5dea['push']({'key':_0x3aadd8,'newValue':_0x2022e8,'oldValue':null,'range':_0x3d8360}));}0x0!=_0x2c5dea['length']&&_0x11f0d6['model']['enqueueChange'](_0x47bd66,_0xc4cd02=>{const _0x2daa6e=_0x3dae9a();for(const {range:_0x4849c2,key:_0x19110,oldValue:_0x2f7cfe,newValue:_0x39f3cb}of _0x2c5dea)this['markAttributeChange'](_0x4849c2,_0x19110,_0x2f7cfe,_0x39f3cb,{'groupId':_0x2daa6e});this['_reduceExistingSuggestions'](_0xc4cd02,_0x2c5dea);});},{'priority':'lowest'}),_0x11f0d6['model']['markers']['on']('update:suggestion',(_0xdbf930,_0x4320d9,_0x47bca0)=>{if(null==_0x47bca0){const {id:_0x21d793}=this['_splitMarkerName'](_0x4320d9['name']),_0x4d38a3=this['_suggestions']['get'](_0x21d793);_0x4d38a3&&_0x4d38a3['addMarkerName'](_0x4320d9['name']);}}),_0x11f0d6['model']['document']['on']('change:data',()=>{const _0xbc7331=Array['from'](_0x11f0d6['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2d0000=>'suggestion'===this['_splitMarkerName'](_0x2d0000['name'])['group']);if(0x0===_0xbc7331['length'])return;_0xbc7331['sort']((_0x48ef15,_0x36863b)=>{const _0x499a9f=_0x48ef15['data']['oldRange'],_0x31d7b1=_0x36863b['data']['oldRange'];return null===_0x499a9f&&null===_0x31d7b1?0x0:null===_0x499a9f&&null!==_0x31d7b1?-0x1:null!==_0x499a9f&&null===_0x31d7b1?0x1:_0x499a9f['start']['isBefore'](_0x31d7b1['start'])?-0x1:0x1;});const _0xfc7923=new Set(),_0x435286=new Set();for(const {name:_0x13e8e6,data:_0x153630}of _0xbc7331){const {id:_0x5c91f0}=this['_splitMarkerName'](_0x13e8e6);if(null===_0x153630['oldRange']){const _0x36dda8=this['_handleNewSuggestionMarker'](_0x13e8e6);_0x435286['add'](_0x36dda8);}else{const _0x4446c8=this['_suggestions']['get'](_0x5c91f0);null!==_0x153630['newRange']||_0x4446c8['isInContent']?(_0xfc7923['add'](_0x4446c8['head']),_0x435286['add'](_0x4446c8)):this['_removeSuggestion'](_0x4446c8);}}_0x435286['size']>0x0&&this['_refreshSuggestionsChain'](_0x435286);for(const _0x3f48ab of _0xfc7923)this['fire']('suggestionChanged',_0x3f48ab);}),_0x11f0d6['model']['on']('applyOperation',(_0x253313,_0x190628)=>{const _0x4e2ab2=_0x190628[0x0];if(!this['_suggestions']['size'])return;if(!_0x4e2ab2['isDocumentOperation'])return;if(_0x4e2ab2['batch']['isUndo']||!_0x4e2ab2['batch']['isLocal'])return;let _0x4044c2,_0x1c674e;switch(_0x4e2ab2['type']){case'insert':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['position']),_0x1c674e=_0x4044c2['getShiftedBy'](_0x4e2ab2['howMany']);break;case'split':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['splitPosition']),_0x1c674e=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['moveTargetPosition']);break;case'move':_0x4044c2=_0x11f0d6['model']['createPositionAt'](_0x4e2ab2['targetPosition']),_0x1c674e=_0x4044c2['getShiftedBy'](_0x4e2ab2['howMany']);break;default:return;}const _0x22a0d6=_0x11f0d6['model']['createRange'](_0x4044c2,_0x1c674e);_0x11f0d6['model']['change'](()=>{for(const {suggestion:_0x3fa772,meta:_0x5c076}of this['_findSuggestions'](_0x22a0d6)){if(_0x3fa772['isMultiRange'])continue;if('formatInline'==_0x3fa772['type'])continue;const _0x248325=this['_getAttributeKey'](_0x3fa772);if(_0x248325&&this['_isBlockAttribute'](_0x248325)&&'split'!=_0x4e2ab2['type'])continue;const _0x3d8db2=_0x3fa772['data']&&_0x3fa772['data']['multipleBlocks'];('formatBlock'!=_0x3fa772['type']||'split'==_0x4e2ab2['type']&&!_0x3d8db2)&&(_0x5c076['containsRangeInObject']||'insertion'==_0x3fa772['type']&&_0x5c076['isOwn']||_0x3fa772['getFirstRange']()['containsRange'](_0x22a0d6)&&this['_breakSuggestionMarker'](_0x3fa772,_0x4044c2,_0x1c674e));}});},{'priority':'lowest'}),_0x11f0d6['model']['on']('deleteContent',(_0x1a162e,_0x3b1fda)=>{const _0x8a18c6=_0x3b1fda[0x0],_0xc07f65=_0x3b1fda[0x1];if(_0xc07f65&&_0xc07f65['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x8a18c6['isCollapsed'])return;const _0x17ef93=_0x11f0d6['model']['schema'],{start:_0x3e55ea,end:_0x199e7e}=_0x8a18c6['getFirstRange'](),_0x37746d=_0x3e55ea['nodeAfter']&&_0x17ef93['isLimit'](_0x3e55ea['nodeAfter'])?null:_0x17ef93['getNearestSelectionRange'](_0x3e55ea,'forward'),_0x175e7b=_0x199e7e['nodeBefore']&&_0x17ef93['isLimit'](_0x199e7e['nodeBefore'])?null:_0x17ef93['getNearestSelectionRange'](_0x199e7e,'backward'),_0x3a3360=_0x11f0d6['model']['createRange'](_0x37746d?_0x37746d['start']:_0x3e55ea,_0x175e7b?_0x175e7b['end']:_0x199e7e);_0x11f0d6['model']['change'](_0x21793b=>{this['markDeletion'](_0x3a3360);const _0x57ed30=_0x11f0d6['model']['schema']['getNearestSelectionRange'](_0x3a3360['start']);_0x8a18c6['is']('documentSelection')?_0x21793b['setSelection'](_0x57ed30):_0x8a18c6['setTo'](_0x57ed30);}),_0x1a162e['stop']();},{'priority':_0x3ca1ca['normal']+0xa}),_0x11f0d6['model']['on']('insertContent',(_0x670c31,_0x230ce7)=>{const _0x32b049=_0x230ce7[_0x230ce7['length']-0x1];_0x32b049&&_0x32b049['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x11f0d6['model']['change'](()=>{let _0x1bdfef=_0x11f0d6['model']['insertContent'](_0x230ce7[0x0],_0x230ce7[0x1],_0x230ce7[0x2],{'forceDefaultExecution':!0x0});if(!_0x1bdfef)return;_0x670c31['return']=_0x1bdfef['clone']();const _0x5f5b1c=_0x1bdfef['end']['nodeBefore'],_0x976bdf=_0x11f0d6['model']['schema'];_0x5f5b1c&&_0x976bdf['isBlock'](_0x5f5b1c)&&!_0x976bdf['isObject'](_0x5f5b1c)&&(_0x1bdfef=_0x11f0d6['model']['createRange'](_0x1bdfef['start'],_0x11f0d6['model']['createPositionAt'](_0x5f5b1c,'end'))),this['markInsertion'](_0x1bdfef);}),_0x670c31['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x2adb40=new $(_0x11f0d6,this['_suggestions']);_0x11f0d6['commands']['add']('acceptSuggestion',_0x2adb40),this['enableCommand']('acceptSuggestion');const _0x52a811=new B(_0x11f0d6,this['_suggestions']);_0x11f0d6['commands']['add']('discardSuggestion',_0x52a811),this['enableCommand']('discardSuggestion'),_0x11f0d6['commands']['add']('acceptAllSuggestions',new x(_0x11f0d6,_0x2adb40,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x11f0d6['commands']['add']('discardAllSuggestions',new x(_0x11f0d6,_0x52a811,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x11f0d6['commands']['add']('acceptSelectedSuggestions',new R(_0x11f0d6,_0x2adb40,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x11f0d6['commands']['add']('discardSelectedSuggestions',new R(_0x11f0d6,_0x52a811,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x58c78d=_0x11f0d6['plugins']['get']('CommentsRepository');this['listenTo'](_0x58c78d,'addComment',(_0x311764,{threadId:_0x500843})=>{const _0x39e762=this['_suggestions']['get'](_0x500843);_0x39e762&&_0x39e762['commentThread']&&0x1===_0x39e762['commentThread']['length']&&this['_updateSuggestionData'](_0x500843,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x58c78d,'removeComment',(_0xf9e5a5,{threadId:_0x66327b})=>{const _0x550e45=this['_suggestions']['get'](_0x66327b);_0x550e45&&_0x550e45['commentThread']&&!_0x550e45['commentThread']['length']&&this['_updateSuggestionData'](_0x66327b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x113743){if(this['_adapter'])throw new _0x175af6('track-changes-adapter-already-set',this);this['_adapter']=_0x113743;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x54d059=!0x1,toJSON:_0x410728=!0x1}={}){const _0x1f5828=[];for(const _0x4d926a of this['_suggestions']['values']())_0x54d059&&!_0x4d926a['isInContent']||_0x1f5828['push'](_0x4d926a);return _0x410728?_0x1f5828['map'](_0x5c3cbe=>_0x5c3cbe['toJSON']()):_0x1f5828;}['getSuggestion'](_0x415cd8){const _0x4b2eac=this['_suggestions']['get'](_0x415cd8);if(!_0x4b2eac)throw new _0x175af6('track-changes-suggestion-not-found',this);return _0x4b2eac;}['hasSuggestion'](_0x5a49fe){return this['_suggestions']['has'](_0x5a49fe);}['addSuggestionData'](_0x26e89f){const {authorId:_0x1b7c1a,id:_0x5868ad,attributes:_0x2f62d3}=_0x26e89f,[_0x217ff3,_0x491927]=_0x26e89f['type']['split'](':'),_0x38220f=this['_suggestions']['get'](_0x5868ad)||this['_createSuggestion'](_0x217ff3,_0x491927,_0x5868ad,_0x1b7c1a,_0x2f62d3);if(this['_addThreadToSuggestion'](_0x38220f),this['_checkSuggestionCorrectness'](_0x38220f,_0x217ff3,_0x491927||null,_0x1b7c1a),_0x38220f['createdAt']=_0x26e89f['createdAt'],_0x38220f['_isDataLoaded']=!0x0,_0x2f62d3&&_0x2f62d3['@external']){const _0x1a3cdb=_0x2f62d3['@external'],_0x4a0794=this['_getExternalAuthor'](_0x1a3cdb['authorName']);_0x38220f['authoredAt']=_0x1a3cdb['createdAt'],_0x38220f['author']=_0x4a0794,_0x38220f['isExternal']=!0x0;}else _0x38220f['authoredAt']=_0x26e89f['createdAt'];switch(_0x26e89f['data']&&(_0x38220f['data']=_0x26e89f['data']),_0x26e89f['attributes']&&(_0x38220f['attributes']=_0x26e89f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x38220f['_saved']=!0x0),this['_suggestionState']['get'](_0x38220f)){case'notReady':this['_suggestionState']['set'](_0x38220f,'dataReady');break;case'markerReady':_0x38220f['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x38220f])),this['_refreshSuggestionsChain'](new Set([_0x38220f])),this['_suggestionState']['set'](_0x38220f,'ready'),this['fire']('suggestionLoaded',_0x38220f)):this['_suggestionState']['set'](_0x38220f,'removed');}return _0x38220f;}['acceptSuggestion'](_0x28711f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1f4368 of _0x28711f['getAllAdjacentSuggestions']())_0x1f4368['accept']();});});}['discardSuggestion'](_0x15f534){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4df2c1 of _0x15f534['getAllAdjacentSuggestions']())_0x4df2c1['discard']();});});}['enableCommand'](_0x3eb6be,_0x5bb6f5){const _0x4a65a4=this['editor']['commands']['get'](_0x3eb6be);if(!_0x4a65a4)throw new _0x175af6('track-changes-command-not-found',this,{'commandName':_0x3eb6be});if(this['_enabledCommands']['has'](_0x4a65a4))throw new _0x175af6('track-changes-enable-command-twice',this,{'commandName':_0x3eb6be});this['_enabledCommands']['add'](_0x4a65a4),_0x5bb6f5&&_0x4a65a4['on']('execute',(_0x5cc7d3,_0xb1b3d7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xb1b3d7['length']>0x0&&_0xb1b3d7[_0xb1b3d7['length']-0x1]&&_0xb1b3d7[_0xb1b3d7['length']-0x1]['forceDefaultExecution']?_0xb1b3d7['pop']():(_0x5cc7d3['return']=_0x5bb6f5((..._0x2d8bab)=>_0x4a65a4['execute'](..._0x2d8bab,{'forceDefaultExecution':!0x0}),..._0xb1b3d7),_0x5cc7d3['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x467068){let _0x4a4124,_0xcacc8d;const _0x1858c3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4a4124=_0x467068();}catch(_0x3d1456){_0xcacc8d=_0x3d1456;}return _0x1858c3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcacc8d&&_0x175af6['rethrowUnexpectedError'](_0xcacc8d,this),_0x4a4124;}['markInsertion'](_0xd85ae0,_0x5d1ca0=null,_0x1ce1cf={}){if(_0xd85ae0['isCollapsed'])return null;const _0x31b96c=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x53a73d,meta:_0x1ee24d}of this['_findSuggestions'](_0xd85ae0,'insertion'))if(_0x1ee24d['isOwn']){if(!_0x1ee24d['isNextTo']){if(_0x1ee24d['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x53a73d,_0x1ce1cf))continue;return _0x53a73d;}if(Lt(_0x53a73d,_0x1ce1cf))return _0x53a73d;this['_breakSuggestionMarker'](_0x53a73d,_0xd85ae0['start'],_0xd85ae0['end']);break;}if(_0x5d1ca0==_0x53a73d['subType']&&Lt(_0x53a73d,_0x1ce1cf)){const _0xa104aa=_0x53a73d['getFirstRange']();return _0xa104aa['start']['isEqual'](_0xd85ae0['end'])?this['_setSuggestionRange'](_0x53a73d,this['_model']['createRange'](_0xd85ae0['start'],_0xa104aa['end'])):this['_setSuggestionRange'](_0x53a73d,this['_model']['createRange'](_0xa104aa['start'],_0xd85ae0['end'])),_0x53a73d;}}const _0x94017=_0x3dae9a(),_0x2211a4=_0x31b96c['id'],_0xc50ea6=_0x5d1ca0?'insertion:'+_0x5d1ca0:'insertion',_0xc7a685=this['_setSuggestionData']({'id':_0x94017,'type':_0xc50ea6,'createdAt':new Date(),'authorId':_0x2211a4,'attributes':_0x1ce1cf});return this['_addSuggestionMarker'](_0xc50ea6,_0x94017,_0x2211a4,_0xd85ae0),_0xc7a685;}['markMultiRangeInsertion'](_0x222072,_0x31ee56='multi',_0x451828={}){const _0x7c446c=this['editor']['plugins']['get']('Users')['me'],_0x2bebbd=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x31ee56,'join');for(const _0xcd7fbf of this['getSuggestions']())if(_0xcd7fbf['author']['id']==_0x7c446c['id']&&'insertion'==_0xcd7fbf['type']&&_0xcd7fbf['subType']==_0x31ee56&&Lt(_0xcd7fbf,_0x451828)&&(_0x2bebbd(_0xcd7fbf['getRanges'](),_0x222072)||_0x2bebbd(_0x222072,_0xcd7fbf['getRanges']()))){for(const _0x5cfd8b of _0x222072)_0xcd7fbf['addRange'](_0x5cfd8b);return _0xcd7fbf;}for(const {suggestion:_0x4bf09e,meta:_0x969c35}of this['_findSuggestions'](_0x222072,'insertion')){if(!_0x969c35['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x969c35['containsRangeInObject'])continue;if(!Lt(_0x4bf09e,_0x451828))continue;let _0x1427a7=!0x0;for(const _0x4b3f3b of _0x4bf09e['getRanges']())for(const _0x4f2e46 of _0x222072)if(!_0x4b3f3b['containsRange'](_0x4f2e46)){_0x1427a7=!0x1;break;}if(_0x1427a7)return _0x4bf09e;}const _0x31e4ba=_0x3dae9a(),_0x331fc8=_0x7c446c['id'],_0x1907f3='insertion:'+_0x31ee56,_0x2ff161=this['_setSuggestionData']({'id':_0x31e4ba,'type':_0x1907f3,'createdAt':new Date(),'authorId':_0x331fc8,'attributes':_0x451828});for(const _0xcd9f38 of _0x222072)this['_addSuggestionMarker'](_0x1907f3,_0x31e4ba,_0x331fc8,_0xcd9f38,u['getMultiRangeId']());return _0x2ff161;}['markInlineFormat'](_0x202e73,_0x142872,_0x3242c1=null,_0x40a720={}){if(_0x3242c1=_0x3242c1||Vt(_0x142872),_0x202e73['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1055fd=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3242c1,'accept');return this['forceDefaultExecution'](()=>_0x1055fd([_0x202e73],_0x142872,_0x40a720)),null;}const _0x448b2a=this['editor']['plugins']['get']('Users')['me'],_0x32795f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x361bb7,meta:_0x184af7}of this['_findSuggestions'](_0x202e73,'insertion'))_0x184af7['isOwn']&&!_0x184af7['isInsideObject']&&_0x32795f['push'](..._0x361bb7['getRanges']());}const _0x479ed6=function(_0x5f44b1,_0x26e494){const _0x131d6d=[];for(const _0x1fe399 of _0x26e494){const _0xd23019=_0x5f44b1['getIntersection'](_0x1fe399);_0xd23019&&_0x131d6d['push'](_0xd23019);}return _0x131d6d;}(_0x202e73,_0x32795f),_0x2b279f=function(_0x4d0d84,_0x1f5871){const _0x2c5da3=[_0x4d0d84];for(const _0x16deed of _0x1f5871){let _0x14899e=0x0;for(;_0x14899e<_0x2c5da3['length'];){const _0x45cc0b=_0x2c5da3[_0x14899e]['getDifference'](_0x16deed);_0x2c5da3['splice'](_0x14899e,0x1,..._0x45cc0b),_0x14899e+=_0x45cc0b['length'];}}return _0x2c5da3;}(_0x202e73,_0x32795f);_0x479ed6['length']&&this['_model']['change'](()=>{for(const _0x336296 of _0x479ed6){const _0x4aec25=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3242c1,'accept');this['forceDefaultExecution'](()=>_0x4aec25([_0x336296],_0x142872,_0x40a720));}});for(const _0x37f071 of _0x2b279f){let _0x427a46=null,_0x1d2392=_0x37f071['start'],_0x2b803d=_0x37f071['end'];for(const {suggestion:_0x3fc951,meta:_0x2a3adf}of this['_findSuggestions'](_0x37f071,'formatInline')){if(!_0x2a3adf['isOwn'])continue;if(_0x3fc951['subType']!=_0x3242c1)continue;if(!Lt(_0x3fc951,_0x40a720))continue;const _0x80c53f=_0x3fc951['getFirstRange']();if(_0x80c53f['containsRange'](_0x37f071,!0x0))return null;_0x1d2392=_0x1d2392['isBefore'](_0x80c53f['start'])?_0x1d2392:_0x80c53f['start'],_0x2b803d=_0x2b803d['isAfter'](_0x80c53f['end'])?_0x2b803d:_0x80c53f['end'],_0x427a46?_0x80c53f['start']['isBefore'](_0x427a46['getFirstRange']()['start'])?(_0x427a46['removeMarkers'](),_0x427a46=_0x3fc951):_0x3fc951['removeMarkers']():_0x427a46=_0x3fc951;}const _0x1a468e=this['_model']['createRange'](_0x1d2392,_0x2b803d);if(_0x427a46)this['_setSuggestionRange'](_0x427a46,_0x1a468e);else{const _0x11aee1=_0x3dae9a(),_0x4aaf33=_0x448b2a['id'];this['_setSuggestionData']({'id':_0x11aee1,'type':'formatInline:'+_0x3242c1,'data':_0x142872,'createdAt':new Date(),'authorId':_0x4aaf33,'attributes':_0x40a720}),this['_addSuggestionMarker']('formatInline:'+_0x3242c1,_0x11aee1,_0x4aaf33,_0x1a468e);}}return null;}['markBlockFormat'](_0x534905,_0x46c2e3,_0x590cd1=[],_0x4ae5c6=null,_0x2006fa={}){_0x46c2e3['formatGroupId']||(_0x46c2e3['formatGroupId']=_0x46c2e3['commandName']),_0x46c2e3['multipleBlocks']=_0x534905['is']('range'),_0x4ae5c6=_0x4ae5c6||Vt(_0x46c2e3);const _0x3e2e38=_0x590cd1['map'](_0x4a38fa=>Gt(_0x4a38fa,this['_model'])),_0x1fe728=_0x534905['is']('range')?_0x534905:Gt(_0x534905,this['_model']);if('never'===this['_trackFormatChanges']){const _0x1e09b6=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae5c6,'accept');return this['forceDefaultExecution'](()=>_0x1e09b6([_0x1fe728],_0x46c2e3,_0x2006fa)),null;}_0x3e2e38['push'](_0x1fe728);let _0x5028e0=!0x0;for(const _0x5dc57c of _0x3e2e38)if(!this['_rangeIsInLocalUserInsertion'](_0x5dc57c)){_0x5028e0=!0x1;break;}if(_0x5028e0&&'always'!==this['_trackFormatChanges']){const _0x2ba014=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae5c6,'accept');return this['forceDefaultExecution'](()=>_0x2ba014([_0x1fe728],_0x46c2e3,_0x2006fa)),null;}let _0x1b9bbb=null,_0x3461ac=_0x1fe728['start'],_0x12a8b0=_0x1fe728['end'];for(const {suggestion:_0x1a3d64,meta:_0x19becc}of this['_findSuggestions'](_0x1fe728,'formatBlock')){if(!_0x19becc['isOwn'])continue;if(_0x19becc['isNextTo']||_0x19becc['containsRangeInObject']||_0x19becc['isInsideObject'])continue;if(_0x1a3d64['data']['formatGroupId']!=_0x46c2e3['formatGroupId'])continue;if(!Lt(_0x1a3d64,_0x2006fa))continue;const _0x1c45d2=_0x1a3d64['getFirstRange']();if(_0x1a3d64['subType']==_0x4ae5c6){if(_0x1c45d2['containsRange'](_0x1fe728,!0x0))return null;_0x3461ac=_0x3461ac['isBefore'](_0x1c45d2['start'])?_0x3461ac:_0x1c45d2['start'],_0x12a8b0=_0x12a8b0['isAfter'](_0x1c45d2['end'])?_0x12a8b0:_0x1c45d2['end'],_0x1b9bbb?_0x1c45d2['start']['isBefore'](_0x1b9bbb['getFirstRange']()['start'])?(_0x1b9bbb['removeMarkers'](),_0x1b9bbb=_0x1a3d64):_0x1a3d64['removeMarkers']():_0x1b9bbb=_0x1a3d64;}else{const _0x5140be=_0x1fe728['getIntersection'](_0x1c45d2);this['_cutOutSuggestionMarker'](_0x1a3d64,_0x5140be);}}const _0x304d0e=this['editor']['plugins']['get']('Users')['me'],_0x5ad2d8=_0x3dae9a(),_0x4731f0=_0x304d0e['id'];if(_0x1b9bbb)return this['_setSuggestionRange'](_0x1b9bbb,this['_model']['createRange'](_0x3461ac,_0x12a8b0)),_0x1b9bbb;{const _0x422d07=this['_setSuggestionData']({'id':_0x5ad2d8,'type':'formatBlock:'+_0x4ae5c6,'data':_0x46c2e3,'createdAt':new Date(),'authorId':_0x4731f0,'attributes':_0x2006fa});return this['_addSuggestionMarker']('formatBlock:'+_0x4ae5c6,_0x5ad2d8,_0x4731f0,this['_model']['createRange'](_0x3461ac,_0x12a8b0)),_0x422d07;}}['markMultiRangeBlockFormat'](_0x29c164,_0x24a55f,_0x206eef=[],_0x527727=null,_0x39ec3b={}){_0x24a55f['formatGroupId']||(_0x24a55f['formatGroupId']=_0x24a55f['commandName']);const _0x12f908=_0x29c164[0x0];_0x24a55f['multipleBlocks']=_0x12f908['is']('range'),_0x527727=_0x527727||Vt(_0x24a55f);const _0x5d1a7f=_0x206eef['map'](_0xd7d044=>Gt(_0xd7d044,this['_model'])),_0xe04cd7=_0x12f908['is']('range')?_0x29c164:_0x29c164['map'](_0x12f31f=>Gt(_0x12f31f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x8f4b1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'accept');return this['forceDefaultExecution'](()=>_0x8f4b1f(_0xe04cd7,_0x24a55f,_0x39ec3b)),null;}_0x5d1a7f['push'](..._0xe04cd7);let _0x19216c=!0x0;for(const _0x22906c of _0x5d1a7f)if(!this['_rangeIsInLocalUserInsertion'](_0x22906c)){_0x19216c=!0x1;break;}if(_0x19216c&&'always'!==this['_trackFormatChanges']){const _0x51b5be=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'accept');return this['forceDefaultExecution'](()=>_0x51b5be(_0xe04cd7,_0x24a55f,_0x39ec3b)),null;}const _0x241d1a=this['editor']['plugins']['get']('Users')['me'];for(const _0x50c2a7 of this['getSuggestions']()){if(_0x50c2a7['author']['id']!=_0x241d1a['id'])continue;if('formatBlock'!=_0x50c2a7['type']||_0x50c2a7['data']['formatGroupId']!=_0x24a55f['formatGroupId'])continue;if(!Lt(_0x50c2a7,_0x39ec3b))continue;const _0x5bb1ef=_0x50c2a7['subType']==_0x527727;for(let _0x52d08d=0x0;_0x52d08d<_0xe04cd7['length'];_0x52d08d++){const _0x34ad69=_0xe04cd7[_0x52d08d];for(const _0x59374f of _0x50c2a7['getMarkers']()){const _0x97fa0d=_0x59374f['getRange']();if(_0x34ad69['isEqual'](_0x97fa0d)){_0x5bb1ef?(_0xe04cd7['splice'](_0x52d08d,0x1),_0x52d08d--):_0x50c2a7['removeMarker'](_0x59374f['name']);break;}}}}if(0x0==_0xe04cd7['length'])return null;const _0x2a0066=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527727,'join');for(const _0x12c063 of this['getSuggestions']())if(_0x12c063['author']['id']==_0x241d1a['id']&&'formatBlock'==_0x12c063['type']&&_0x12c063['data']['formatGroupId']==_0x24a55f['formatGroupId']&&_0x12c063['subType']==_0x527727&&Lt(_0x12c063,_0x39ec3b)&&(_0x2a0066(_0x12c063['getRanges'](),_0xe04cd7)||_0x2a0066(_0xe04cd7,_0x12c063['getRanges']()))){for(const _0x477195 of _0xe04cd7)_0x12c063['addRange'](_0x477195);return _0x12c063;}const _0x121d58=_0x3dae9a(),_0x27df81=_0x241d1a['id'],_0x5b7903='formatBlock:'+_0x527727,_0x3351eb=this['_setSuggestionData']({'id':_0x121d58,'type':_0x5b7903,'data':_0x24a55f,'createdAt':new Date(),'authorId':_0x27df81,'attributes':_0x39ec3b});for(const _0x196b1b of _0xe04cd7)this['_addSuggestionMarker'](_0x5b7903,_0x121d58,_0x27df81,_0x196b1b,u['getMultiRangeId']());return _0x3351eb;}['markDeletion'](_0x3986d4,_0x1f31df=null,_0x612d99={}){if(_0x3986d4['isCollapsed'])return null;const _0x71921c=this['editor']['plugins']['get']('Users')['me'],_0x2206d6=new _0x828bf8(_0x3986d4['start'],_0x3986d4['end']);for(const {suggestion:_0x53fb7e,meta:_0x356dff}of this['_findSuggestions'](_0x2206d6,'insertion'))if(_0x356dff['isOwn']&&!_0x356dff['isNextTo']){if(_0x53fb7e['isMultiRange']){const _0x4c0804=_0x53fb7e['getRanges']()['filter'](_0x5b8dbd=>'$graveyard'!=_0x5b8dbd['root']['rootName']);_0x4c0804['every'](_0xea1764=>_0x2206d6['containsRange'](_0xea1764,!0x0))&&_0x53fb7e['discard']();if(_0x4c0804['some'](_0x1544a1=>_0x1544a1['containsRange'](_0x2206d6,!0x0))){const _0x579349=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1f31df,'accept');return this['forceDefaultExecution'](()=>_0x579349([_0x2206d6],null,_0x612d99)),null;}}else{const _0x5d99c0=_0x2206d6['getIntersection'](_0x53fb7e['getFirstRange']());null!==_0x5d99c0&&_0x53fb7e['_onDiscard']([_0x5d99c0],null,_0x612d99);}}if(_0x2206d6['detach'](),_0x2206d6['isCollapsed']||'$graveyard'==_0x2206d6['root']['rootName'])return null;let _0x5b64fb=null,_0x453bcf=_0x2206d6['start'],_0x550e54=_0x2206d6['end'];const _0x3559e3=this['_findSuggestions'](_0x2206d6,'deletion');for(const {suggestion:_0x7522c2,meta:_0x22442f}of _0x3559e3){const _0x49b36c=this['_model']['createRange'](_0x453bcf,_0x550e54);if(_0x22442f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x22442f['containsRangeInObject']&&!_0x22442f['isInsideObject'])){if(_0x7522c2['isMultiRange']){if(!Lt(_0x7522c2,_0x612d99))continue;let _0x26d044=!0x0;for(const _0x39e546 of _0x7522c2['getRanges']()){if(_0x39e546['containsRange'](_0x49b36c,!0x0))return _0x7522c2;_0x49b36c['containsRange'](_0x39e546)||(_0x26d044=!0x1);}_0x26d044&&_0x7522c2['discard']();}else{const _0x507e44=_0x7522c2['getFirstRange']();if(_0x507e44['containsRange'](_0x49b36c,!0x0))return _0x7522c2;if(!Lt(_0x7522c2,_0x612d99)){_0x49b36c['containsRange'](_0x507e44)?_0x7522c2['removeMarkers']():_0x507e44['containsPosition'](_0x453bcf)?_0x453bcf=_0x507e44['end']:_0x507e44['containsPosition'](_0x550e54)&&(_0x550e54=_0x507e44['start']);continue;}_0x453bcf=_0x453bcf['isBefore'](_0x507e44['start'])?_0x453bcf:_0x507e44['start'],_0x550e54=_0x550e54['isAfter'](_0x507e44['end'])?_0x550e54:_0x507e44['end'],_0x612d99=Object['assign']({},_0x7522c2['attributes']),_0x5b64fb?_0x507e44['start']['isBefore'](_0x5b64fb['getFirstRange']()['start'])?(_0x5b64fb['removeMarkers'](),_0x5b64fb=_0x7522c2):_0x7522c2['removeMarkers']():_0x5b64fb=_0x7522c2;}}}if(_0x5b64fb)return this['_setSuggestionRange'](_0x5b64fb,this['_model']['createRange'](_0x453bcf,_0x550e54)),_0x5b64fb;{const _0x4ad559=_0x3dae9a(),_0x1960ed=this['_model']['createRange'](_0x453bcf,_0x550e54),_0x30b056=_0x71921c['id'],_0x5c1379=_0x1f31df?'deletion:'+_0x1f31df:'deletion',_0x2472fc=this['_setSuggestionData']({'id':_0x4ad559,'type':_0x5c1379,'createdAt':new Date(),'authorId':_0x30b056,'attributes':_0x612d99});return this['_addSuggestionMarker'](_0x5c1379,_0x4ad559,_0x30b056,_0x1960ed),_0x2472fc;}}['markMultiRangeDeletion'](_0x3aadf6,_0x2d2fce='multi',_0xcc9a99={}){const _0x1985f6=this['editor']['plugins']['get']('Users')['me'],_0x323ea6=_0x3aadf6['map'](_0x3da837=>new _0x828bf8(_0x3da837['start'],_0x3da837['end'])),_0x7cddac=new Set();for(const {suggestion:_0x675fe0,meta:_0x5aa60e}of this['_findSuggestions'](_0x323ea6,'insertion'))_0x5aa60e['isOwn']&&!_0x5aa60e['isNextTo']&&_0x7cddac['add'](_0x675fe0);for(const _0x2c245e of _0x7cddac)if(_0x2c245e['isMultiRange']){const _0xc3e18e=_0x2c245e['getRanges']();(!_0x2c245e['attributes']||!_0x2c245e['attributes']['skipNestingCheck'])&&(_0xc3e18e['every'](_0x3f00f6=>_0x323ea6['some'](_0xa8c836=>_0xa8c836['containsRange'](_0x3f00f6,!0x0)))&&_0x2c245e['discard']());if(_0x323ea6['every'](_0x23a1e7=>_0xc3e18e['some'](_0x260880=>_0x260880['containsRange'](_0x23a1e7,!0x0)))){const _0x3af417=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'accept');return this['forceDefaultExecution'](()=>_0x3af417(_0x3aadf6,null,_0xcc9a99)),null;}}else{const _0x4483d2=_0x2c245e['getFirstRange']();_0x323ea6['some'](_0x508f5a=>_0x508f5a['containsRange'](_0x4483d2,!0x0))&&_0x2c245e['discard']();if(_0x323ea6['every'](_0xa66540=>_0x4483d2['containsRange'](_0xa66540,!0x0))){const _0xd588a0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'accept');return this['forceDefaultExecution'](()=>_0xd588a0(_0x323ea6,null,_0xcc9a99)),null;}}const _0x42e89d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d2fce,'join');let _0x4b1292=null;for(const _0x118e01 of this['getSuggestions']())if(_0x118e01['author']['id']==_0x1985f6['id']&&_0x118e01['isInContent']&&'deletion'==_0x118e01['type']&&_0x118e01['subType']==_0x2d2fce&&Lt(_0x118e01,_0xcc9a99)&&(_0x42e89d(_0x118e01['getRanges'](),_0x323ea6)||_0x42e89d(_0x323ea6,_0x118e01['getRanges']()))){if(_0x4b1292){if(_0x118e01['commentThread']&&_0x118e01['commentThread']['length'])continue;for(const _0x28c118 of _0x118e01['getRanges']())_0x4b1292['isIntersectingWithRange'](_0x28c118)||_0x4b1292['addRange'](_0x28c118);_0x118e01['removeMarkers']();}else{_0x4b1292=_0x118e01;for(const _0x12ea9b of _0x323ea6)_0x118e01['isIntersectingWithRange'](_0x12ea9b)||_0x118e01['addRange'](_0x12ea9b);}}if(_0x4b1292)return _0x4b1292;_0x7cddac['clear']();for(const {suggestion:_0xc5ae8,meta:_0x1d27fe}of this['_findSuggestions'](_0x323ea6,'deletion'))_0x1d27fe['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1d27fe['containsRangeInObject']&&!_0x1d27fe['isInsideObject'])&&Lt(_0xc5ae8,_0xcc9a99)&&_0x7cddac['add'](_0xc5ae8);for(const _0x3d28af of _0x7cddac){const _0x2b0683=_0x3d28af['getRanges']();if(!_0xcc9a99||!_0xcc9a99['skipNestingCheck']){if(_0x323ea6['every'](_0x70b402=>_0x2b0683['some'](_0x128536=>_0x128536['containsRange'](_0x70b402,!0x0))))return _0x3d28af;}(!_0x3d28af['attributes']||!_0x3d28af['attributes']['skipNestingCheck'])&&(_0x2b0683['every'](_0xb4d167=>_0x323ea6['some'](_0x268791=>_0x268791['containsRange'](_0xb4d167,!0x0)))&&_0x3d28af['discard']());}const _0xc340fb=_0x3dae9a(),_0x2c9ccc=_0x1985f6['id'],_0x5e5d89='deletion:'+_0x2d2fce,_0x409d2b=this['_setSuggestionData']({'id':_0xc340fb,'type':_0x5e5d89,'createdAt':new Date(),'authorId':_0x2c9ccc,'attributes':_0xcc9a99});for(const _0x33acc4 of _0x323ea6)_0x33acc4['detach'](),_0x33acc4['isCollapsed']||'$graveyard'==_0x33acc4['root']['rootName']||this['_addSuggestionMarker'](_0x5e5d89,_0xc340fb,_0x2c9ccc,_0x33acc4,u['getMultiRangeId']());return _0x409d2b;}['markAttributeChange'](_0x61b74a,_0x2c2d4f,_0x3e0525,_0x4d798e,_0x448ecd){if(_0x61b74a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2deaf9=this['editor']['plugins']['get']('Users')['me']['id'],_0x45fc7c=Array['from'](this['_suggestions']['values']())['filter'](_0x5f3b02=>'attribute'==_0x5f3b02['type']&&_0x5f3b02['data']['key']==_0x2c2d4f&&_0x5f3b02['isIntersectingWithRange'](_0x61b74a));if('default'===this['_trackFormatChanges']){const _0x34f980=this['_findSuggestions'](_0x61b74a,'insertion')['filter'](({meta:_0x47d908})=>_0x47d908['isOwn']&&!_0x47d908['isInsideObject']&&!_0x47d908['isNextTo'])['map'](({suggestion:_0x3f1d09})=>_0x3f1d09);_0x45fc7c['unshift'](..._0x34f980);}const _0x2e213e=new Map([[_0x61b74a,_0x3e0525]]);for(const _0x3778a0 of _0x45fc7c){const _0x1ff5d4='attribute'==_0x3778a0['type']?_0x3778a0['data']['oldValue']:void 0x0,_0x55197c=_0x3778a0['getFirstRange'](),_0xa1f19e=Array['from'](_0x2e213e['keys']())['find'](_0x2863f4=>_0x2863f4['isIntersecting'](_0x55197c));if(!_0xa1f19e)continue;const _0x4867eb=_0xa1f19e['getDifference'](_0x55197c);this['_isBlockAttribute'](_0x2c2d4f)&&'insertion'==_0x3778a0['type']&&0x0!=_0x4867eb['length']||(_0x2e213e['delete'](_0xa1f19e),_0x4867eb['forEach'](_0x101f57=>{_0x2e213e['set'](_0x101f57,_0x3e0525);}),'insertion'!=_0x3778a0['type']&&_0x1ff5d4!=_0x4d798e&&_0x2e213e['set'](_0xa1f19e['getIntersection'](_0x55197c),_0x1ff5d4));}const _0x3286e7=[];for(const [_0x49ce40,_0x185bdb]of _0x2e213e){const _0x42bb81=_0x3dae9a(),_0x2911a4={'key':_0x2c2d4f,'oldValue':_0x185bdb,'newValue':_0x4d798e};_0x2c2d4f['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':_0x2c2d4f});const _0x2857a7=('attribute:'+(_0x2c2d4f+'|'+Vt({'newValue':_0x4d798e})))['substring'](0x0,0x3c),_0x154176=this['_setSuggestionData']({'id':_0x42bb81,'type':_0x2857a7,'data':_0x2911a4,'createdAt':new Date(),'authorId':_0x2deaf9,'attributes':_0x448ecd});_0x3286e7['push'](_0x154176),this['_addSuggestionMarker'](_0x2857a7,_0x42bb81,_0x2deaf9,_0x49ce40);}return _0x3286e7;}['enableDefaultAttributesIntegration'](_0x4db4a1){this['enableCommand'](_0x4db4a1,(_0x6c7577,..._0x5806c3)=>{this['_recordAttributeChanges'](()=>{_0x6c7577(..._0x5806c3);});});}['registerBlockAttribute'](_0x5345b4){this['_blockAttributeKeys']['add'](_0x5345b4);}['registerInlineAttribute'](_0x214d8e){this['_inlineAttributeKeys']['add'](_0x214d8e);}['_getAttributeKey'](_0x423ae6){return'attribute'==_0x423ae6['type']?_0x423ae6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x141165,_0x2e6683){const _0x400b8e=_0x141165['getFirstMarker']();this['_model']['change'](_0x52f8d8=>{_0x52f8d8['updateMarker'](_0x400b8e,{'range':_0x2e6683});});}['_addThreadToSuggestion'](_0x456c23){const _0x46c496=_0x456c23['id'],_0x217c3e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46c496)||this['_commentsRepository']['addCommentThread']({'channelId':_0x217c3e,'threadId':_0x46c496,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x40028a=this['_commentsRepository']['getCommentThread'](_0x46c496);_0x40028a['unbind']('isRemovable'),_0x40028a['isRemovable']=!0x1,_0x456c23['commentThread']=_0x40028a;}['_checkSuggestionCorrectness'](_0x27a0bd,_0x34d068,_0x38bd85,_0x4b0094){if(_0x27a0bd['type']!=_0x34d068||_0x27a0bd['subType']!=_0x38bd85||_0x27a0bd['creator']['id']!=_0x4b0094)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x175af6('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x19fb88,_0x31ac7c){const _0x469a1d=_0x19fb88['getFirstRange']();if(_0x31ac7c['isEqual'](_0x469a1d))_0x19fb88['removeMarkers']();else{if(_0x469a1d['containsRange'](_0x31ac7c)){const _0x573de9=this['_model']['createPositionAt'](_0x31ac7c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x469a1d['start'],_0x573de9));const _0x40cbfc=_0x3dae9a(),_0x25a2d2=_0x19fb88['creator']['id'],_0xa6b1af=_0x19fb88['type']+':'+_0x19fb88['subType'];this['_setSuggestionData']({'id':_0x40cbfc,'type':_0xa6b1af,'createdAt':new Date(),'authorId':_0x25a2d2,'data':_0x19fb88['data'],'attributes':_0x19fb88['attributes']});const _0x18b774=this['_model']['createPositionAt'](_0x31ac7c['end']['parent'],'after'),_0x220547=this['_model']['createRange'](_0x18b774,_0x469a1d['end']);this['_addSuggestionMarker'](_0xa6b1af,_0x40cbfc,_0x25a2d2,_0x220547);}else{if(_0x469a1d['containsPosition'](_0x31ac7c['start'])){const _0x141e5d=this['_model']['createPositionAt'](_0x31ac7c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x469a1d['start'],_0x141e5d));}else{const _0x13a040=this['_model']['createPositionAt'](_0x31ac7c['end']['parent'],'after');this['_setSuggestionRange'](_0x19fb88,this['_model']['createRange'](_0x13a040,_0x469a1d['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xdc6d47){for(const {suggestion:_0x462496,meta:_0xbb13af}of this['_findSuggestions'](_0xdc6d47,'insertion')){if(!_0xbb13af['isOwn'])continue;const _0x4780a8=_0x462496['getRanges']();for(const _0x5908c9 of _0x4780a8)if(!_0xdc6d47['getDifference'](_0x5908c9)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x25cb3a){const _0x447e0d=this['editor']['plugins']['get']('Users')['getUser'](_0x25cb3a);if(!_0x447e0d)throw new _0x175af6('track-changes-user-not-found',this);return _0x447e0d;}['_getExternalAuthor'](_0x2dee32){const _0x5e289d=this['editor']['plugins']['get']('Users'),_0x390671=_0x4b9707('external:'+_0x2dee32),_0x3cfb6e=_0x5e289d['getUser'](_0x390671);return _0x3cfb6e||_0x5e289d['addUser']({'id':_0x390671,'name':_0x2dee32});}['_createSuggestion'](_0x48425e,_0x4542ab,_0x4f7e3a,_0xd60c8c,_0xa39365){const _0x4a3f6c=this['_getAuthorFromId'](_0xd60c8c),_0x3e8ec0=this['_suggestionFactory']['buildSuggestion'](_0x48425e,_0x4542ab,_0x4f7e3a,_0x4a3f6c,_0xa39365,_0x24ede0=>{this['_updateSuggestionData'](_0x4f7e3a,{'attributes':_0x24ede0});const _0x23fbc6=this['getSuggestion'](_0x4f7e3a);this['_joinWithAdjacentSuggestions'](new Set([_0x23fbc6])),this['_refreshSuggestionsChain'](new Set([_0x23fbc6]));});return this['listenTo'](_0x3e8ec0,'accept',()=>{this['_updateSuggestionData'](_0x4f7e3a,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3e8ec0,'discard',()=>{this['_updateSuggestionData'](_0x4f7e3a,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4f7e3a,_0x3e8ec0),this['_suggestionState']['set'](_0x3e8ec0,'notReady'),_0x3e8ec0;}['_splitMarkerName'](_0x3e78fb){const _0x2a05df=_0x3e78fb['split'](':');return{'group':_0x2a05df[0x0],'type':_0x2a05df[0x1],'subType':_0x2a05df['length']>=0x5?_0x2a05df[0x2]:null,'id':_0x2a05df['length']<0x5?_0x2a05df[0x2]:_0x2a05df[0x3],'authorId':_0x2a05df['length']<0x5?_0x2a05df[0x3]:_0x2a05df[0x4],'markerCount':0x6==_0x2a05df['length']?_0x2a05df[0x5]:null};}['_breakSuggestionMarker'](_0xeb266a,_0x2ae702,_0x483e50){const _0x1ab84d=_0xeb266a['getFirstRange'](),_0x3fca9b=_0x1ab84d['start'],_0x19a46f=_0x1ab84d['end'];this['_setSuggestionRange'](_0xeb266a,this['_model']['createRange'](_0x3fca9b,_0x2ae702));const _0x27c4fc=_0x3dae9a(),_0x1cacbc=_0xeb266a['creator']['id'],_0x445c05=_0xeb266a['type']+(_0xeb266a['subType']?':'+_0xeb266a['subType']:'');this['_setSuggestionData']({'id':_0x27c4fc,'type':_0x445c05,'createdAt':new Date(),'authorId':_0x1cacbc,'originalSuggestionId':_0xeb266a['id'],'attributes':_0xeb266a['attributes'],'data':_0xeb266a['data']});const _0x351fd2=this['_getAttributeKey'](_0xeb266a);('formatBlock'==_0xeb266a['type']||_0x351fd2&&this['_isBlockAttribute'](_0x351fd2))&&(_0x483e50=this['_model']['createPositionBefore'](_0x483e50['parent'])),this['_addSuggestionMarker'](_0x445c05,_0x27c4fc,_0x1cacbc,this['_model']['createRange'](_0x483e50,_0x19a46f));}['_findSuggestions'](_0x103148,_0x338a99=null){const _0x21d7d7=[],_0x28af49=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x103148)||(_0x103148=[_0x103148]);for(const _0x21208b of this['getSuggestions']()){if(!_0x21208b['isInContent'])continue;if(_0x338a99&&_0x21208b['type']!=_0x338a99)continue;let _0x5a51de=!0x1;for(const _0x28cce4 of _0x21208b['getRanges']()){for(const _0x17aa20 of _0x103148){const _0x141c66=_0x17aa20['start']['isEqual'](_0x28cce4['end'])||_0x17aa20['end']['isEqual'](_0x28cce4['start']);if(_0x141c66||_0x17aa20['getIntersection'](_0x28cce4)){const _0x491be3=_0x17aa20['containsRange'](_0x28cce4)&&Rt(this['_model']['schema'],_0x28cce4['start'],_0x17aa20),_0x4987b9=_0x28cce4['containsRange'](_0x17aa20)&&Rt(this['_model']['schema'],_0x17aa20['start'],_0x28cce4);_0x21d7d7['push']({'suggestion':_0x21208b,'meta':{'isOwn':_0x28af49==_0x21208b['author'],'isNextTo':_0x141c66,'isInsideObject':_0x491be3,'containsRangeInObject':_0x4987b9}}),_0x5a51de=!0x0;break;}}if(_0x5a51de)break;}}return _0x21d7d7;}['_addSuggestionMarker'](_0x594bba,_0x49bfae,_0x40a45,_0x133012,_0x3a0b1a){this['_model']['change'](_0x4c8927=>{let _0x57c1ae='suggestion:'+_0x594bba+':'+_0x49bfae+':'+_0x40a45;_0x3a0b1a&&(_0x57c1ae=_0x57c1ae+':'+_0x3a0b1a),_0x4c8927['addMarker'](_0x57c1ae,{'range':_0x133012,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x750a03){const _0x1c339a=_0x750a03['previous'],_0x1c55d2=_0x750a03['next'];_0x750a03['previous']=null,_0x750a03['next']=null,null!=_0x1c339a&&_0x1c339a['next']==_0x750a03&&(_0x1c339a['next']=_0x1c55d2),null!=_0x1c55d2&&_0x1c55d2['previous']==_0x750a03&&(_0x1c55d2['previous']=_0x1c339a),'ready'==this['_suggestionState']['get'](_0x750a03)&&(this['_suggestionState']['set'](_0x750a03,'removed'),this['fire']('suggestionUnloaded',_0x750a03,_0x1c339a,_0x1c55d2));}['_setSuggestionData'](_0x1561b4){const _0x17c0ab=_0x1561b4['id'],_0x418e2a=this['addSuggestionData'](_0x1561b4);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4741cb=this['editor']['plugins']['get']('PendingActions'),_0x14241b=_0x418e2a['hasComments'],_0x236279=_0x418e2a['subType']?_0x418e2a['type']+':'+_0x418e2a['subType']:_0x418e2a['type'],_0x1c0774=this['editor']['locale'],_0x3d0ac5=_0x4741cb['add'](o(_0x1c0774,'PENDING_ACTION_SUGGESTION')),_0x11a367={'id':_0x17c0ab,'type':_0x236279,'hasComments':_0x14241b,'data':_0x1561b4['data']||null,'originalSuggestionId':_0x1561b4['originalSuggestionId']||null,'attributes':_0x418e2a['attributes']};this['_adapter']['addSuggestion'](_0x11a367)['then'](_0x50a0af=>{_0x418e2a['_saved']=!0x0,_0x4741cb['remove'](_0x3d0ac5),_0x50a0af&&_0x50a0af['createdAt']&&(this['_suggestions']['get'](_0x17c0ab)['createdAt']=_0x50a0af['createdAt']);})['catch'](_0x43fa26=>{throw _0x351a3b('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x418e2a['discard']();}),_0x418e2a['stopListening'](),this['_suggestions']['delete'](_0x418e2a['id']),this['_suggestionState']['delete'](_0x418e2a),_0x43fa26;});}return _0x418e2a;}['_isBlockAttribute'](_0x405767){return this['_blockAttributeKeys']['has'](_0x405767);}['_updateSuggestionData'](_0x5d37d3,_0x79d870){const _0x4516db=this['editor']['plugins']['get']('PendingActions'),_0x5107a9=this['getSuggestion'](_0x5d37d3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5107a9['_saved']){const _0x1b645b=_0x4516db['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5d37d3,_0x79d870)['then'](()=>{_0x4516db['remove'](_0x1b645b);});}else _0x5107a9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5d37d3,_0x79d870);});}}['_getSuggestionData'](_0x379753){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x175af6('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x379753);}['_handleNewSuggestionMarker'](_0x411d5d){const {id:_0x29233c,type:_0x24797c,subType:_0xbc8b4,authorId:_0x2b8c7c}=this['_splitMarkerName'](_0x411d5d),_0x5bf594=this['_suggestions']['get'](_0x29233c)||this['_createSuggestion'](_0x24797c,_0xbc8b4,_0x29233c,_0x2b8c7c,{});switch(this['_checkSuggestionCorrectness'](_0x5bf594,_0x24797c,_0xbc8b4,_0x2b8c7c),this['_suggestionState']['get'](_0x5bf594)){case'notReady':this['_getSuggestionData'](_0x29233c)['then'](_0x46a355=>{let _0x10f225=Promise['resolve']();_0x46a355['hasComments']&&(_0x10f225=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x29233c})),_0x10f225['then'](()=>{this['addSuggestionData'](_0x46a355)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5bf594,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x29233c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5bf594,'ready'),this['fire']('suggestionLoaded',_0x5bf594);break;case'ready':this['fire']('suggestionChanged',_0x5bf594);}return _0x5bf594['addMarkerName'](_0x411d5d),_0x5bf594;}['_refreshSuggestionsChain'](_0x1d1213){const _0x3c9a30=Array['from'](_0x1d1213),_0x22550b=_0x3c9a30['filter'](_0x289502=>'attribute'==_0x289502['type']);this['_refreshAttributeSuggestionsChain'](_0x22550b);const _0x45a3b1=_0x3c9a30['filter'](_0x304917=>!_0x304917['isMultiRange']&&'attribute'!=_0x304917['type']),_0x187c8=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1ecccc=>!_0x1ecccc['isMultiRange']&&'attribute'!=_0x1ecccc['type']),_0x3b0ab1=_0x187c8['filter'](_0x1a5d5f=>!_0x1d1213['has'](_0x1a5d5f)),_0x1cd78b=new Map(_0x187c8['map'](_0x22c067=>[_0x22c067,this['_suggestionFactory']['getSuggestionCallback'](_0x22c067['type'],_0x22c067['subType'],'chain')])),_0x18e89c=new Map(_0x187c8['map'](_0xad8fea=>[_0xad8fea,_0xad8fea['getFirstRange']()])),_0x4b080e=new Set(),_0x4c176a=new Set();for(let _0x3e9f84=0x0;_0x3e9f84<_0x45a3b1['length'];_0x3e9f84++)_0x4cd1df(_0x45a3b1[_0x3e9f84],_0x45a3b1,_0x3e9f84+0x1);for(let _0x1afb71=0x0;_0x1afb71<_0x45a3b1['length'];_0x1afb71++)_0x4cd1df(_0x45a3b1[_0x1afb71],_0x3b0ab1,0x0);const _0x3c5f30=new Set();for(let _0x554bb9=0x0;_0x554bb9<_0x45a3b1['length'];_0x554bb9++){const _0x407f51=_0x45a3b1[_0x554bb9];!_0x4c176a['has'](_0x407f51)&&_0x407f51['previous']&&(_0x3c5f30['add'](_0x407f51['previous']),_0x407f51['previous']['next']===_0x407f51&&(_0x407f51['previous']['next']=null),_0x407f51['previous']=null),!_0x4b080e['has'](_0x407f51)&&_0x407f51['next']&&(_0x3c5f30['add'](_0x407f51['next']),_0x407f51['next']['previous']===_0x407f51&&(_0x407f51['next']['previous']=null),_0x407f51['next']=null);}function _0x4cd1df(_0x1f1cf1,_0x227cff,_0x1324ba){for(let _0x3ab015=_0x1324ba;_0x3ab015<_0x227cff['length'];_0x3ab015++){const _0x5d389e=_0x27254a(_0x1f1cf1,_0x227cff[_0x3ab015]);_0x5d389e&&(_0x5d389e[0x0]['next']=_0x5d389e[0x1],_0x5d389e[0x1]['previous']=_0x5d389e[0x0],_0x4b080e['add'](_0x5d389e[0x0]),_0x4c176a['add'](_0x5d389e[0x1]));}}function _0x27254a(_0x2de045,_0x45be3d){if(_0x2de045['author']['id']!==_0x45be3d['author']['id'])return null;const _0x2d7178=_0x1cd78b['get'](_0x2de045)(_0x2de045,_0x45be3d,_0x18e89c['get'](_0x2de045),_0x18e89c['get'](_0x45be3d));if(!_0x2d7178)return null;return _0x1cd78b['get'](_0x45be3d)(_0x2de045,_0x45be3d,_0x18e89c['get'](_0x2de045),_0x18e89c['get'](_0x45be3d))?_0x2d7178[0x1]['commentThread']&&_0x2d7178[0x1]['commentThread']['length']?null:_0x2d7178:null;}_0x3c5f30['size']&&this['_refreshSuggestionsChain'](_0x3c5f30);}['_refreshAttributeSuggestionsChain'](_0x26ef0f){if(0x0==_0x26ef0f['length'])return;const _0x211e59=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x265085=>'attribute'==_0x265085['type']&&_0x265085['_isDataLoaded']),_0x83da06=[],_0x3efef1=new Map();for(const _0x93f3ef of _0x211e59){const _0x5c8b10=_0x4b9707(_0x93f3ef['attributes']);_0x3efef1['has'](_0x5c8b10)||(_0x3efef1['set'](_0x5c8b10,_0x83da06['length']),_0x83da06['push']([]));const _0x3c892b=_0x3efef1['get'](_0x5c8b10);_0x83da06[_0x3c892b]['push'](_0x93f3ef);}!(function(){_0x83da06['sort']((_0x2b31ff,_0xe76421)=>{const _0x5ee23a=_0x2b31ff[0x0]['createdAt'],_0x34a793=_0xe76421[0x0]['createdAt'];return _0x5ee23a==_0x34a793?_0x2b31ff[0x0]['attributes']['groupId']<_0xe76421[0x0]['attributes']['groupId']?-0x1:0x1:_0x5ee23a<_0x34a793?-0x1:0x1;});for(const _0x251d92 of _0x83da06)_0x251d92['sort']((_0x7b1869,_0x419fd6)=>_0x7b1869['id']<_0x419fd6['id']?-0x1:0x1);}());for(let _0x3502be=0x0;_0x3502be<_0x83da06['length'];_0x3502be++){if(0x0==_0x83da06[_0x3502be]['length'])continue;const _0x5f4a40=[];for(let _0x3e7271=_0x3502be+0x1;_0x3e7271<_0x83da06['length'];_0x3e7271++)0x0!=_0x83da06[_0x3e7271]['length']&&_0x1d6f59(_0x83da06[_0x3502be],_0x83da06[_0x3e7271])&&_0x5f4a40['push'](_0x3e7271);for(const _0x48c4e3 of _0x5f4a40)_0x83da06[_0x3502be]=_0x83da06[_0x3502be]['concat'](_0x83da06[_0x48c4e3]),_0x83da06[_0x48c4e3]=[];}for(const _0x33d5fa of _0x83da06)for(let _0xd91b14=0x0;_0xd91b14<_0x33d5fa['length'];_0xd91b14++)_0x33d5fa[_0xd91b14]['next']=_0x33d5fa[_0xd91b14+0x1]||null;for(const _0x190197 of _0x83da06)for(let _0x45622d=0x0;_0x45622d<_0x190197['length'];_0x45622d++)_0x190197[_0x45622d]['previous']=_0x190197[_0x45622d-0x1]||null;function _0x1d6f59(_0x439d9a,_0x219b48){if(_0x439d9a[0x0]['attributes']['groupId']!==_0x219b48[0x0]['attributes']['groupId']&&_0x439d9a[0x0]['author']!==_0x219b48[0x0]['author'])return!0x1;if(!function(_0x4e6acf,_0x52c003){if(!_0x4e6acf['hasComments']&&!_0x52c003['hasComments'])return!0x0;if(_0x4e6acf['hasComments']&&_0x52c003['hasComments'])return!0x1;if(_0x4e6acf['hasComments']&&_0x52c003['createdAt']<_0x4e6acf['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x52c003['hasComments']&&_0x4e6acf['createdAt']<_0x52c003['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x439d9a[0x0],_0x219b48[0x0]))return!0x1;const _0x3a5d0b=Bt(_0x439d9a[0x0]['attributes'],'groupId'),_0x415ca3=Bt(_0x219b48[0x0]['attributes'],'groupId');if(!_0x22c2ec(_0x3a5d0b,_0x415ca3))return!0x1;return!!_0x439d9a['every'](_0xed0b1f=>_0x219b48['some'](_0x170a59=>_0xed0b1f['getFirstRange']()['isEqual'](_0x170a59['getFirstRange']())))&&_0x219b48['every'](_0x39df37=>_0x439d9a['some'](_0x16f02e=>_0x39df37['getFirstRange']()['isEqual'](_0x16f02e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x27a3d6){const _0x5798f1=Array['from'](_0x27a3d6),_0x4d9f9c=this['getSuggestions']({'skipNotAttached':!0x0}),_0x38214e=_0x4d9f9c['filter'](_0x27dbee=>!_0x27a3d6['has'](_0x27dbee)),_0x46f620=new Map(_0x5798f1['map'](_0x17b1ef=>[_0x17b1ef,this['_suggestionFactory']['getSuggestionCallback'](_0x17b1ef['type'],_0x17b1ef['subType'],'join')])),_0x5a4bea=new Map(_0x4d9f9c['map'](_0x1a58ed=>[_0x1a58ed,_0x1a58ed['getRanges']()]));for(let _0x33506f=0x0;_0x33506f<_0x5798f1['length'];_0x33506f++){if(_0x449407(this,_0x5798f1[_0x33506f],_0x5798f1,_0x33506f+0x1))return!0x0;}for(let _0x4ed963=0x0;_0x4ed963<_0x5798f1['length'];_0x4ed963++){if(_0x449407(this,_0x5798f1[_0x4ed963],_0x38214e,0x0))return!0x0;}return!0x1;function _0x449407(_0x4f9d06,_0x2bf2ca,_0x4356b1,_0x4690b2){for(let _0xff2228=_0x4690b2;_0xff2228<_0x4356b1['length'];_0xff2228++){const _0x2e665f=_0x4356b1[_0xff2228];if(_0x2e665f['type']!==_0x2bf2ca['type']||_0x2e665f['author']['id']!==_0x2bf2ca['author']['id']||_0x2e665f['subType']!==_0x2bf2ca['subType'])continue;if(!Pt(_0x2bf2ca,_0x2e665f,['groupId']))continue;if('attribute'==_0x2bf2ca['type']&&_0x2bf2ca['data']['oldValue']!=_0x2e665f['data']['oldValue'])continue;if('attribute'==_0x2bf2ca['type']&&_0x4f9d06['_isBlockAttribute'](_0x2bf2ca['data']['key']))continue;if('formatBlock'==_0x2bf2ca['type']){const _0x241221=_0x4f9d06['editor']['model'],_0x357f37=_0x2bf2ca['getContainedElement']();if(_0x357f37&&(_0x241221['schema']['isObject'](_0x357f37)||_0x241221['schema']['isLimit'](_0x357f37)))continue;}const _0x134908=_0x46f620['get'](_0x2bf2ca),_0x3b13a9=_0x5a4bea['get'](_0x2bf2ca),_0x369a41=_0x5a4bea['get'](_0x2e665f),_0x189308=_0x2bf2ca['commentThread']&&_0x2bf2ca['commentThread']['length'],_0x572417=_0x2e665f['commentThread']&&_0x2e665f['commentThread']['length'];if(!_0x189308&&_0x134908(_0x369a41,_0x3b13a9))return _0x4f9d06['_joinSuggestions'](_0x2e665f,_0x2bf2ca),_0x5a4bea['delete'](_0x2bf2ca),!0x0;if(!_0x572417&&_0x134908(_0x3b13a9,_0x369a41))return _0x4f9d06['_joinSuggestions'](_0x2bf2ca,_0x2e665f),_0x5a4bea['delete'](_0x2e665f),!0x0;}return!0x1;}}['_joinSuggestions'](_0xa08068,_0x85638d){if(_0xa08068['isMultiRange']){for(const _0x4b3e3b of _0x85638d['getRanges']())_0xa08068['addRange'](_0x4b3e3b);}else{const _0x284497=_0x85638d['getFirstRange']()['end'];this['_setSuggestionRange'](_0xa08068,this['_model']['createRange'](_0xa08068['getFirstRange']()['start'],_0x284497));}_0x85638d['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3b9922,_0x5ab082){const _0x2bbea4=_0x3b9922['startsWith']('format')||_0x3b9922['startsWith']('attribute')?'FORMATTING':_0x3b9922['toUpperCase']();return o(this['editor']['locale'],_0x5ab082+'_'+_0x2bbea4+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x4ee38f=this['editor'];if(!_0x4ee38f['ui'])return;const {ariaLiveAnnouncer:_0x1452ab}=_0x4ee38f['ui'];_0x2dea51(this['_model'],({left:_0x55938e,entered:_0x28f47a})=>{for(const _0x553b7c of _0x55938e){const {group:_0xe693c1,type:_0x3cc91e}=this['_splitMarkerName'](_0x553b7c['name']);if('suggestion'===_0xe693c1){_0x1452ab['announce'](this['_getMarkerAnnouncementText'](_0x3cc91e,'LEAVE'));break;}}for(const _0x319c2 of _0x28f47a){const {group:_0x5b8521,type:_0x26f1a8}=this['_splitMarkerName'](_0x319c2['name']);if('suggestion'===_0x5b8521){_0x1452ab['announce'](this['_getMarkerAnnouncementText'](_0x26f1a8,'ENTER'));break;}}});}['_processAttributeChanges'](_0x47e625){if(this['_recordAttributeSuggestions'])return!0x1;const _0x23d27a=this['editor'],_0x1a5d13=_0x23d27a['model']['document']['differ']['getChanges']();if(0x0==_0x1a5d13['length'])return!0x1;const _0x4b93a6=[],_0x393e70=_0x1a5d13['filter'](_0xfa3bea=>'attribute'==_0xfa3bea['type']),_0x5646d5=_0x1a5d13['filter'](_0x596e06=>'insert'==_0x596e06['type']&&'$text'!=_0x596e06['name']),_0x17feda=_0x1a5d13['filter'](_0x165ab8=>'remove'==_0x165ab8['type']&&'$text'!=_0x165ab8['name']);for(const _0x474b67 of _0x393e70)_0x4b93a6['push']({'key':_0x474b67['attributeKey'],'newValue':_0x474b67['attributeNewValue'],'oldValue':_0x474b67['attributeOldValue'],'range':Ot(_0x474b67['range'],_0x23d27a['model'])});for(const _0x436f53 of _0x5646d5){const _0x8ee4e0=_0x17feda['find'](_0x269774=>_0x269774['position']['isEqual'](_0x436f53['position']));_0x8ee4e0&&_0x4b93a6['push']({'key':m,'newValue':_0x436f53['name'],'oldValue':_0x8ee4e0['name'],'range':_0x23d27a['model']['createRangeOn'](_0x436f53['position']['nodeAfter'])});}return 0x0!=_0x4b93a6['length']&&this['_reduceExistingSuggestions'](_0x47e625,_0x4b93a6);}['_processAttributeSuggestions'](_0x469974){let _0x2c0214=!0x1;const _0x27aa1f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1c8c7a=>_0x1c8c7a['data']['newRange']&&_0x1c8c7a['name']['startsWith']('suggestion:attribute:'));for(const _0x361b84 of _0x27aa1f){const {subType:_0x7dd8f3,id:_0x5af166}=this['_splitMarkerName'](_0x361b84['name']),_0x4d0daa=_0x7dd8f3['split']('|')[0x0];for(const _0x127fbd of this['getSuggestions']({'skipNotAttached':!0x0}))_0x127fbd['id']!=_0x5af166&&'attribute'==_0x127fbd['type']&&_0x127fbd['data']&&_0x127fbd['data']['key']==_0x4d0daa&&_0x127fbd['getFirstRange']()['isIntersecting'](_0x361b84['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x127fbd,_0x361b84['data']['newRange'],_0x469974),_0x2c0214=!0x0);}return _0x2c0214;}['_recordAttributeChanges'](_0x2b7f73){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2b7f73();}['_isRegisteredAttribute'](_0x32c885){const _0x55f44=this['_isBlockAttribute'](_0x32c885),_0x5d9e24=this['_inlineAttributeKeys']['has'](_0x32c885);return _0x55f44||_0x5d9e24;}['_reduceExistingSuggestions'](_0x2ed598,_0x4d0542){if(0x0==_0x4d0542['length'])return!0x1;let _0x5e2fd6=!0x1;for(const _0x189d24 of _0x4d0542){const _0x2bfb12=this['_findSuggestions'](_0x189d24['range'],'attribute')['filter'](_0x4d2b05=>!_0x4d2b05['meta']['isNextTo'])['map'](_0x436dcf=>_0x436dcf['suggestion']),_0x5d5d8a=_0x4b9707({'newValue':_0x189d24['newValue']});_0x2bfb12['filter'](_0x1f6ed2=>{const [_0xe08260,_0x4faeb4]=_0x1f6ed2['subType']['split']('|');return _0xe08260==_0x189d24['key']&&_0x4faeb4!=_0x5d5d8a;})['forEach'](_0x2071af=>{this['_reduceSuggestionAttributeRange'](_0x2071af,_0x189d24['range'],_0x2ed598),_0x5e2fd6=!0x0;});}return _0x5e2fd6;}['_reduceSuggestionAttributeRange'](_0x2b853e,_0x2aeda3,_0x164916){const _0x1c5c8e=_0x2b853e['getFirstRange']()['getDifference'](_0x2aeda3);0x0!==_0x1c5c8e['length']?0x1!==_0x1c5c8e['length']?this['_breakSuggestionMarker'](_0x2b853e,_0x2aeda3['start'],_0x2aeda3['end']):this['_setSuggestionRange'](_0x2b853e,_0x1c5c8e[0x0]):_0x164916['removeMarker'](_0x2b853e['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x435cf8){this['_editor']=_0x435cf8,this['_model']=_0x435cf8['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2a4f67,_0x460336,_0x5d685d,_0x56bde7,_0x52dde9,_0x4fff36){return new u(this['_model'],{'type':_0x2a4f67,'subType':_0x460336,'id':_0x5d685d,'author':_0x56bde7,'creator':_0x56bde7,'attributes':_0x52dde9,'onAttributesChange':_0x4fff36,'onAccept':(..._0x44d0d8)=>this['getSuggestionCallback'](_0x2a4f67,_0x460336,'accept')(..._0x44d0d8),'onDiscard':(..._0x4a2efb)=>this['getSuggestionCallback'](_0x2a4f67,_0x460336,'discard')(..._0x4a2efb)});}['registerCustomCallback'](_0x1570ba,_0x159bb9,_0x66abad,_0x3764c1){const _0x54e5d7=_0x1570ba+':'+_0x159bb9+':'+_0x66abad;this['_customCallbacks']['set'](_0x54e5d7,_0x3764c1);}['getSuggestionCallback'](_0x24394b,_0x2ac9d9,_0x3d60e3){const _0x2e01cb=_0x24394b+':'+_0x2ac9d9+':'+_0x3d60e3;return this['_customCallbacks']['get'](_0x2e01cb)||this['_defaultCallbacks']['get'](_0x24394b+':'+_0x3d60e3);}['_registerDefaultCallbacks'](){const _0xf57579=()=>!0x1,_0x5196dc=_0x56e28a=>{_0x56e28a['sort']((_0x13716c,_0x581981)=>_0x13716c['start']['isBefore'](_0x581981['start'])?0x1:-0x1),this['_model']['change'](_0x3c40e0=>{for(const _0x1bb9e8 of _0x56e28a){let _0x1bb600;_0x1bb600=_0x1bb9e8['end']['isAtEnd']&&_0x1bb9e8['end']['parent']==_0x1bb9e8['start']['nodeAfter']?_0x3c40e0['createSelection'](_0x1bb9e8['start']['nodeAfter'],'on'):_0x3c40e0['createSelection'](_0x1bb9e8),this['_model']['deleteContent'](_0x1bb600,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x17a2c1=(_0xd91c06,_0xa59515)=>{_0xa59515&&this['_model']['change'](_0x39056b=>{const {commandName:_0x2be3fb,commandParams:_0x2facba=[]}=_0xa59515,_0x863a3a=_0xd91c06['map'](_0x198769=>(Tt(_0x198769)&&(_0x198769=this['_model']['createRange'](_0x198769['end'])),_0x198769))['filter'](_0x562041=>'$graveyard'!==_0x562041['root']['rootName']);if(_0x863a3a['length']<0x1)return;const _0x5ddd4e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0xd571cb=>_0x828bf8['fromRange'](_0xd571cb));_0x39056b['setSelection'](_0x863a3a);for(const _0xeca737 of this['_editor']['commands']['commands']())_0xeca737['refresh']();_0x2facba['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2be3fb,..._0x2facba);const _0x1c70cd=_0x5ddd4e['filter'](_0x11aa74=>'$graveyard'!=_0x11aa74['root']['rootName']);_0x1c70cd['length']>0x0&&_0x39056b['setSelection'](_0x1c70cd);for(const _0xf5c2ca of _0x5ddd4e)_0xf5c2ca['detach']();});},_0x24d2e0=(_0x145dba,_0xe61a8f)=>0x1==_0x145dba['length']&&0x1==_0xe61a8f['length']&&_0x145dba[0x0]['end']['isEqual'](_0xe61a8f[0x0]['start']),_0x335cc8=(_0x3608c0,_0x633de2,_0x4122fe,_0x27a313)=>Ft(_0x3608c0,_0x633de2,_0x4122fe,_0x27a313,this['_model'])?[_0x3608c0,_0x633de2]:Ft(_0x633de2,_0x3608c0,_0x27a313,_0x4122fe,this['_model'])?[_0x633de2,_0x3608c0]:null;this['_defaultCallbacks']['set']('insertion:accept',_0xf57579),this['_defaultCallbacks']['set']('insertion:discard',_0x5196dc),this['_defaultCallbacks']['set']('insertion:join',_0x24d2e0),this['_defaultCallbacks']['set']('insertion:chain',_0x335cc8),this['_defaultCallbacks']['set']('deletion:accept',_0x5196dc),this['_defaultCallbacks']['set']('deletion:discard',_0xf57579),this['_defaultCallbacks']['set']('deletion:join',_0x24d2e0),this['_defaultCallbacks']['set']('deletion:chain',_0x335cc8),this['_defaultCallbacks']['set']('formatInline:accept',_0x17a2c1),this['_defaultCallbacks']['set']('formatInline:discard',_0xf57579),this['_defaultCallbacks']['set']('formatInline:join',_0x24d2e0),this['_defaultCallbacks']['set']('formatInline:chain',_0xf57579),this['_defaultCallbacks']['set']('formatBlock:accept',_0x17a2c1),this['_defaultCallbacks']['set']('formatBlock:discard',_0xf57579),this['_defaultCallbacks']['set']('formatBlock:join',_0x24d2e0),this['_defaultCallbacks']['set']('formatBlock:chain',_0xf57579),this['_defaultCallbacks']['set']('attribute:accept',_0xf57579),this['_defaultCallbacks']['set']('attribute:discard',(_0x215189,_0x270ca5)=>{if(!_0x270ca5)return;const _0x4e20d7=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5732ad=>{if(_0x270ca5['key']==m)for(const _0x5a1f14 of _0x215189){const _0x31d238=_0x5a1f14['start']['nodeAfter'],_0x2cf579=_0x270ca5['oldValue'];_0x5732ad['rename'](_0x31d238,_0x2cf579);}else{if(_0x4e20d7['_isBlockAttribute'](_0x270ca5['key'])){for(const _0x52fb95 of _0x215189)void 0x0!==_0x270ca5['oldValue']?_0x5732ad['setAttribute'](_0x270ca5['key'],_0x270ca5['oldValue'],_0x52fb95['start']['nodeAfter']):_0x5732ad['removeAttribute'](_0x270ca5['key'],_0x52fb95['start']['nodeAfter']);}else{for(const _0x43a240 of _0x215189)_0x270ca5['oldValue']?_0x5732ad['setAttribute'](_0x270ca5['key'],_0x270ca5['oldValue'],_0x43a240):_0x5732ad['removeAttribute'](_0x270ca5['key'],_0x43a240);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x24d2e0);}}function Rt(_0x15a1d0,_0x2a44e7,_0xd14bac){for(const _0x305aa7 of _0x2a44e7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x305aa7['root']==_0x305aa7)return!0x1;if(!_0xd14bac['containsItem'](_0x305aa7))return!0x1;if(_0x15a1d0['isObject'](_0x305aa7)||_0x15a1d0['isLimit'](_0x305aa7))return!0x0;}return!0x1;}function Tt(_0xfda3df){return _0xfda3df['end']['parent']==_0xfda3df['start']['nodeAfter']&&_0xfda3df['end']['isAtStart'];}function Et(_0x5a1217,_0x163df2,_0x47a942,_0xc6fc1c){const _0x4fd6b4=_0x145332=>!_0x145332['item']['is']('$textProxy')&&!_0xc6fc1c['isObject'](_0x145332['item']),_0x23e9a7=_0x5a1217['start']['getLastMatchingPosition'](_0x4fd6b4),_0x4ce9e1=_0x5a1217['end']['getLastMatchingPosition'](_0x4fd6b4,{'direction':'backward'});return(!_0x5a1217['start']['isEqual'](_0x23e9a7)||!_0x5a1217['end']['isEqual'](_0x4ce9e1))&&(_0x23e9a7['isBefore'](_0x4ce9e1)?_0x47a942['updateMarker'](_0x163df2,{'range':_0x47a942['createRange'](_0x23e9a7,_0x4ce9e1)}):_0x47a942['removeMarker'](_0x163df2),!0x0);}function Vt(_0x27d4f8){return _0x4b9707(_0x27d4f8);}function Ut(_0x292deb){const _0x15a310=_0x292deb['start']['nodeAfter'];return _0x15a310&&_0x15a310['is']('element');}function Ot(_0x381c8d,_0x390e2f){return null==_0x381c8d['end']['nodeBefore']&&_0x381c8d['end']['parent']==_0x381c8d['start']['nodeAfter']?Gt(_0x381c8d['start']['nodeAfter'],_0x390e2f):_0x381c8d;}function Gt(_0x51c460,_0x4ffe85){const _0x59c5b9=_0x4ffe85['schema']['isObject'](_0x51c460)||_0x4ffe85['schema']['isSelectable'](_0x51c460);return _0x4ffe85['createRange'](_0x4ffe85['createPositionAt'](_0x51c460,'before'),_0x59c5b9?_0x4ffe85['createPositionAfter'](_0x51c460):_0x4ffe85['createPositionAt'](_0x51c460,'end'));}function Ft(_0x48652c,_0x5317bf,_0xe9f76a,_0x798877,_0x2842de){if(!Pt(_0x48652c,_0x5317bf))return!0x1;if(_0xe9f76a['end']['isEqual'](_0x798877['start']))return!0x0;if(_0x48652c['type']!=_0x5317bf['type'])return!0x1;if(!_0xe9f76a['end']['isTouching'](_0x798877['start']))return!0x1;const _0x971e3b=_0x2842de['createRange'](_0xe9f76a['end'],_0x798877['start'])['getWalker']();for(const _0x360494 of _0x971e3b)if(['elementStart','elementEnd']['includes'](_0x360494['type'])&&_0x2842de['schema']['isLimit'](_0x360494['item']))return!0x1;return!0x0;}function Pt(_0x37a605,_0x18c6c3,_0x5cb753=[]){return!(!_0x37a605['_isDataLoaded']||!_0x18c6c3['_isDataLoaded'])&&_0x22c2ec(Bt(_0x37a605['attributes'],_0x5cb753),Bt(_0x18c6c3['attributes'],_0x5cb753));}function Lt(_0x45230d,_0x2a37ea){const _0xfa5ac0=Ht(_0x45230d['attributes']),_0x442e7f=Ht(_0x2a37ea);if(!_0x45230d['_isDataLoaded'])return!0x1;for(const _0x183407 of Object['keys'](_0x442e7f))if(!_0x22c2ec(_0xfa5ac0[_0x183407],_0x442e7f[_0x183407]))return!0x1;return!0x0;}function Ht(_0x5caca5){const _0x5ac59c=Object['assign']({},_0x5caca5);return delete _0x5ac59c['skipNestingCheck'],delete _0x5ac59c['tablePasteChainId'],_0x5ac59c;}class oe extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3e7508(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3887e7,_0x4eb334,_0x4526a7,_0x584d66){super(),this['model']=_0x4eb334,this['view']=_0x4526a7,this['commentThreadController']=_0x584d66,this['_editor']=_0x3887e7,this['_acceptCommand']=_0x3887e7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3887e7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x9592de,_0x451fe9)=>_0x9592de||_0x451fe9),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xcfa71=>_0xcfa71&&this['_editor']['model']['canEditAt'](_0x4eb334['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0xa4b43f=>_0xa4b43f&&this['_editor']['model']['canEditAt'](_0x4eb334['getRanges']())),this['_pendingAction']=null,_0x4526a7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4526a7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4526a7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4526a7,'change:isDirty',()=>{_0x4526a7['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 _0x5349a7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5349a7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5f0a0f{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x361f56,_0x48c48d,_0x69471d,_0x5284e5){super(_0x361f56),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x48c48d['authoredAt']),this['bind']('authoredAt')['to'](_0x48c48d),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x48c48d,this['_localUser']=_0x69471d,this['_config']=_0x5284e5,_0x5284e5['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x5cd925}=this['_config'];this['commentsListView']=new _0x5cd925(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',_0x2f311d=>_0x2f311d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3a64ed,_0x462ca7)=>_0x3a64ed||!!_0x462ca7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xc12577}=this['_config'],_0x261ba5=new _0xc12577(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x566d43=_0x261ba5['commentInputView'];return _0x261ba5['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x566d43,'value',(_0x339049,_0x4056de,_0x529a91)=>!!_0x529a91||_0x339049&&!_0x4056de),_0x566d43['on']('submit',(_0xe3af8b,_0x2ed1a0)=>{this['fire']('addComment',_0x2ed1a0),_0x566d43['editor']['setData']('');}),_0x566d43['on']('cancel',()=>this['focus']()),_0x566d43['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x261ba5;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x21b972,_0x5308d9,_0x15aa61,_0x270590){super(_0x21b972,_0x5308d9,_0x15aa61,_0x270590),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x83dfb6=>_0x83dfb6&&_0x83dfb6[0x0]?_0x83dfb6[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3943f3,_0x4ad0c7)=>{let _0xdc5cf6='';for(const _0x1da355 of _0x3943f3)_0xdc5cf6+='<p>'+ds(_0x1da355['content'],_0x1da355['color'])+'</p>';return _0x4ad0c7?_0xdc5cf6:_0x297855(_0xdc5cf6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x21b972,'Accept\x20suggestion'),_0x300afb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x21b972,'Discard\x20suggestion'),_0x300afb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2b0c55(_0x21b972,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x449b76=this['bindTemplate'],_0x207dec=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name']}},{'tag':'time','attributes':{'datetime':_0x449b76['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x449b76['to']('authoredAt',_0x204b7e=>this['_config']['formatDateTime'](_0x204b7e))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x207dec['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x5bc826={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x449b76['if']('isActive','ck-suggestion-wrapper--active'),_0x449b76['to']('type',_0x1631a2=>'ck-suggestion-'+_0x1631a2),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x207dec}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x5bc826['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x5bc826;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x8c2d33,_0x511de1,_0x3b3af1)=>{this['_descriptionElement']['innerHTML']=_0x3b3af1;});}['_createButton'](_0x4d00cb,_0x3936d9,_0x1b0feb,_0x3c021d,_0xd8e5d7){const _0x44294d=new _0x563aa5(this['locale']);return _0x44294d['set']({'label':_0x4d00cb,'icon':_0x3936d9,'tooltip':!0x0,'tooltipPosition':_0xd8e5d7}),_0x44294d['extendTemplate']({'attributes':{'class':_0x1b0feb}}),_0x44294d['on']('execute',()=>{this['fire'](_0x3c021d,this['_model']['id']);}),_0x44294d;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x125ebb,_0x529d3a){let _0x1bb529='';return _0x1bb529+=_0x125ebb['split']('*')['map']((_0x162dfa,_0x3c51d8)=>_0x3c51d8%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x162dfa)+'</span>':us(_0x162dfa))['join'](''),_0x529d3a&&(_0x1bb529+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x529d3a['value']+'\x22\x20title=\x22'+_0x529d3a['title']+'\x22></span>'),_0x1bb529;}function us(_0x1c686a){const _0x149047=document['createElement']('span');return _0x149047['innerText']=_0x1c686a,_0x149047['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4f5a27{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x5aeff2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x357968){super(_0x357968),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5b4760=this['editor']['config'];_0x5b4760['define']('trackChanges.SuggestionThreadView',ne),_0x5b4760['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5b4760['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36d23f,_0x2fdb59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5e9163,_0x283773]of this['_handleControllerBuffer']){const _0x54147f=this['_suggestionToController']['has'](_0x5e9163);_0x54147f||_0x283773?_0x54147f&&_0x283773&&this['_destroyController'](_0x5e9163):this['_initializeController'](_0x5e9163);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36d23f,_0x2fdb59);}['init'](){const _0x4c9f81=this['editor'],_0x16f2aa=_0x4c9f81['plugins']['get']('TrackChangesEditing'),_0x32546a=_0x4c9f81['plugins']['get']('Annotations'),_0x5f0bac=_0x4c9f81['plugins']['get']('EditorAnnotations'),_0x4e6367=_0x4c9f81['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x5f0bac['addSourceCollector'](()=>{const _0x166e1a=[];for(const [_0x3ffb54,_0x58f28e]of Array['from'](this['_suggestionToController'])){const _0x1b0d1c=_0x3ffb54['getAllAdjacentSuggestions'](),_0x2faab0=[];for(const _0x6c60ce of _0x1b0d1c){if(!_0x6c60ce['isInContent'])continue;if(_0x6c60ce['isMultiRange']){_0x2faab0['push'](..._0x6c60ce['getRanges']());continue;}const _0x44d53a=_0x6c60ce['getFirstRange']();if(_0x2faab0['length']>0x0){const _0x5ae2d7=_0x2faab0[0x0]['getJoined'](_0x44d53a);if(_0x5ae2d7){_0x2faab0[0x0]=_0x5ae2d7;continue;}}_0x2faab0['push'](_0x44d53a);}_0x166e1a['push']([_0x58f28e['view'],_0x2faab0]);}return _0x166e1a;}),this['listenTo'](_0x16f2aa,'suggestionLoaded',(_0x4509fd,_0x10a232)=>{this['listenTo'](_0x10a232,'change:previous',(_0x452d3b,_0xc8f5f5,_0x1bc4ef,_0x1bfef3)=>{_0x10a232['isInContent']&&(null==_0x1bc4ef?(this['_updateController'](_0x1bfef3['head']),this['_handleSuggestionControllerDelayed'](_0x10a232,!0x1)):(this['_updateController'](_0x1bc4ef['head']),null==_0x1bfef3&&this['_handleSuggestionControllerDelayed'](_0x10a232,!0x0)));}),null!==_0x10a232['previous']?this['_updateController'](_0x10a232['head']):this['_handleSuggestionControllerDelayed'](_0x10a232,!0x1);}),this['listenTo'](_0x16f2aa,'suggestionUnloaded',(_0x27deec,_0x49ceac,_0x3e3b4f)=>{this['stopListening'](_0x49ceac,'change:previous'),this['_handleControllerBuffer']['delete'](_0x49ceac),this['_suggestionToController']['has'](_0x49ceac)&&this['_destroyController'](_0x49ceac),_0x3e3b4f&&this['_updateController'](_0x3e3b4f['head']);}),this['listenTo'](_0x16f2aa,'suggestionChanged',(_0x5d450c,_0x183496)=>{this['_updateController'](_0x183496);}),this['listenTo'](_0x32546a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4e6367,'addComment',(_0x4f6c98,{threadId:_0x376e30,isFromAdapter:_0x1d074f})=>{if(_0x1d074f||!_0x16f2aa['hasSuggestion'](_0x376e30))return;const _0x101783=_0x16f2aa['getSuggestion'](_0x376e30);this['_suggestionToController']['get'](_0x101783)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3fe909=this['editor']['plugins']['get']('Annotations'),_0x88bae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1a355d=Array['from'](_0x3fe909['activeAnnotations'],_0x559693=>_0x559693['innerView'])['filter'](_0x338430=>this['_viewToController']['has'](_0x338430)),_0x122d0c=[];for(const _0x1c9667 of _0x1a355d){const _0x9a6103=this['_viewToController']['get'](_0x1c9667)['model']['getAllAdjacentSuggestions']();_0x122d0c['push'](..._0x9a6103['reduce']((_0x272016,_0x191263)=>[..._0x272016,..._0x191263['getMarkerNames']()],[]));}_0x88bae['activeMarkers']=_0x122d0c;}['_addUIComponentsToFactory'](){const _0x281c36=this['editor'],_0x51c944=_0x281c36['locale'],_0x9d19bd=o(_0x51c944,'Track\x20changes'),_0x32035b=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x9d19bd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x51c944,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1bc751 of _0x32035b)if(ae(_0x1bc751)){const _0xb8d5a5=_0x281c36['commands']['get'](_0x1bc751['model']['commandName']);_0x1bc751['model']['bind']('isOn','isEnabled')['to'](_0xb8d5a5,'value','isEnabled');}_0x281c36['ui']['componentFactory']['add']('trackChanges',_0x3d7296=>this['_createToolbarButton'](_0x3d7296,_0x32035b,_0x9d19bd)),_0x281c36['ui']['componentFactory']['add']('menuBar:trackChanges',_0x15416f=>this['_createMenuBarMenu'](_0x15416f,_0x32035b,_0x9d19bd));}['_createToolbarButton'](_0x1da32d,_0x2d6169,_0x1c1066){const _0x2d7dc0=zt(_0x1da32d,Zt),_0x4cb13d=this['editor']['commands']['get']('trackChanges');_0x2d7dc0['buttonView']['set']({'tooltip':_0x1c1066,'label':_0x1c1066,'icon':ie}),_0x2d7dc0['buttonView']['bind']('isOn')['to'](_0x4cb13d,'value'),_0x2d7dc0['buttonView']['on']('execute',()=>{_0x4cb13d['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x2d7dc0,_0x2d6169,{'role':'menu'});const _0x2de74a=[];for(const _0x2e37fd of _0x2d6169)ae(_0x2e37fd)&&_0x2de74a['push'](this['editor']['commands']['get'](_0x2e37fd['model']['commandName']));const _0x4134c2=_0x2d7dc0['buttonView'];return _0x4134c2['actionView']['unbind']('isEnabled'),_0x4134c2['arrowView']['unbind']('isEnabled'),_0x4134c2['actionView']['bind']('isEnabled')['to'](_0x4cb13d,'isEnabled'),_0x4134c2['arrowView']['bind']('isEnabled')['toMany'](_0x2de74a,'isEnabled',(..._0x1fab9d)=>_0x1fab9d['some'](_0x5730b6=>_0x5730b6)),_0x2d7dc0['on']('execute',_0x4e67ae=>{this['editor']['execute'](_0x4e67ae['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2d7dc0;}['_createMenuBarMenu'](_0x64e3ff,_0x1772d5,_0x10464a){const _0x2075ad=new Kt(_0x64e3ff),_0x52f084=this['editor']['commands']['get']('trackChanges');_0x2075ad['buttonView']['set']({'label':_0x10464a,'icon':ie});const _0x3d2537=new Qt(_0x64e3ff);for(const _0x17d118 of _0x1772d5){if('separator'==_0x17d118['type']){_0x3d2537['items']['add'](new Jt(_0x64e3ff));continue;}const _0x288bb0=new Xt(_0x64e3ff,_0x2075ad),_0x32482e=new Yt(_0x64e3ff),_0x3817cf=_0x17d118['model'];_0x32482e['bind'](...Object['keys'](_0x3817cf))['to'](_0x3817cf),_0x32482e['delegate']('execute')['to'](_0x2075ad),_0x32482e['on']('execute',()=>{this['editor']['execute'](_0x3817cf['commandName']),this['editor']['editing']['view']['focus']();}),_0x288bb0['children']['add'](_0x32482e),_0x3d2537['items']['add'](_0x288bb0);}return _0x2075ad['bind']('isEnabled')['to'](_0x52f084,'isEnabled'),_0x2075ad['panelView']['children']['add'](_0x3d2537),_0x2075ad;}['_initializeController'](_0xbc9f51){const _0x476e77=this['editor'],_0x275c41=_0x476e77['config'],_0x1e9ec3=_0x476e77['plugins']['get']('Annotations'),_0x2a0f46=_0x476e77['plugins']['get']('CommentsRepository'),_0x5a50cd=_0x476e77['plugins']['get']('EditorAnnotations'),_0x228125=_0x476e77['plugins']['get'](_0x5aeff2)['me'],_0x16ef06=_0x275c41['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x38fe61,CommentThreadInputView:_0xd4e260}=_0x476e77['plugins']['get']('CommentsUI');let _0x40c3fe,_0xe762ad;this['_annotationViews']['has'](_0xbc9f51['id'])?(_0xe762ad=this['_annotationViews']['get'](_0xbc9f51['id']),_0x40c3fe=_0xe762ad['mainView']):(_0x40c3fe=new _0x16ef06(_0x476e77['locale'],_0xbc9f51,_0x228125,{'disableComments':this['_disableComments'],'editorConfig':_0x275c41['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x275c41['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x275c41['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x275c41['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x160ec9(_0x275c41['get']('locale')),'CommentView':_0x275c41['get']('comments')['CommentView'],'CommentsListView':_0x38fe61,'CommentThreadInputView':_0xd4e260}),_0x40c3fe['acceptButton']['on']('execute',()=>{_0x476e77['editing']['view']['focus']();}),_0x40c3fe['discardButton']['on']('execute',()=>{_0x476e77['editing']['view']['focus']();}),_0xe762ad=_0x1e9ec3['createAnnotationView'](this['editor']['locale'],_0x40c3fe),_0xe762ad['bind']('isDirty')['to'](_0x40c3fe,'isDirty'),_0xe762ad['bind']('length')['to'](_0x40c3fe),_0xe762ad['bind']('type')['to'](_0x40c3fe,'type',_0x3afa27=>'suggestion-'+_0x3afa27),this['_annotationViews']['set'](_0xbc9f51['id'],_0xe762ad));const _0x4a4622=_0x2a0f46['createCommentThreadController'](_0xbc9f51['commentThread'],_0x40c3fe),_0x459b64=new oe(_0x476e77,_0xbc9f51,_0x40c3fe,_0x4a4622),_0x10cd50=_0xbc9f51['getAllAdjacentSuggestions']()['filter'](_0xfa8860=>_0xfa8860['isInContent']);_0x40c3fe['descriptionParts']=_0x476e77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x10cd50),this['_suggestionToController']['set'](_0xbc9f51,_0x459b64),this['_viewToController']['set'](_0x40c3fe,_0x459b64);const _0x1bc03b=_0x1e9ec3['createAnnotation']({'view':_0xe762ad,'target':()=>{const _0x1254fb=[],_0x13ff04=_0xbc9f51['getAllAdjacentSuggestions']()['filter'](_0x319f54=>_0x319f54['isInContent']);for(const _0x1f2077 of _0x13ff04)_0x1254fb['push'](..._0x1f2077['getMarkers']());return _0x7165d0(_0x476e77['editing'],_0x1254fb);},'type':()=>'suggestion-'+_0x459b64['view']['type']});_0x2a0f46['_bindAnnotationToEditors'](_0x40c3fe,_0x1bc03b),_0x1e9ec3['add'](_0x1bc03b),_0x5a50cd['registerAnnotation'](_0x1bc03b);}['_destroyController'](_0x99453f){const _0x5f5acb=this['editor']['plugins']['get']('CommentsRepository'),_0x285fdb=this['editor']['plugins']['get']('Annotations'),_0x57747f=this['_suggestionToController']['get'](_0x99453f),_0x1004e2=_0x57747f['view'],_0xc2cec5=_0x285fdb['getByInnerView'](_0x1004e2);_0x5f5acb['_unbindEditors'](_0x1004e2),_0xc2cec5&&_0x285fdb['remove'](_0xc2cec5),this['_suggestionToController']['delete'](_0x99453f),this['_viewToController']['delete'](_0x1004e2),_0x57747f['destroy']();}['_updateController'](_0x52d14c){if(!_0x52d14c['isInContent']||!this['_suggestionToController']['has'](_0x52d14c))return;const _0x5345a0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fd057=this['_suggestionToController']['get'](_0x52d14c),_0x1fc405=_0x52d14c['getAllAdjacentSuggestions']();_0x1fd057['view']['descriptionParts']=_0x5345a0['descriptionFactory']['getDescriptions'](_0x1fc405);}['destroy'](){for(const _0x44a0c0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x44a0c0);for(const _0x1b6958 of this['_annotationViews']['values']())_0x1b6958['mainView']['destroy']();super['destroy']();}}function ae(_0x42b1a9){return'model'in _0x42b1a9;}class k extends _0x4f5a27{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x353f49){this['editor']['plugins']['get'](p)['adapter']=_0x353f49;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x14e082){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x14e082);}['getSuggestions']({skipNotAttached:_0x444e6a=!0x1,toJSON:_0xe43b44=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x444e6a,'toJSON':_0xe43b44});}['getSuggestion'](_0x95855c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x95855c);}}const T=['Pagination'];class P extends _0x4f5a27{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x44f905=this['editor'];if(_0x44f905['config']['define']('trackChangesData.editorCreator',_0x531663=>{const _0x2e1d5f=_0x44f905['model']['document']['getRootNames']()['reduce']((_0x3dd804,_0x4acb7a)=>(_0x3dd804[_0x4acb7a]='',_0x3dd804),{});return _0x44f905['constructor']['create'](_0x2e1d5f,_0x531663);}),'function'!=typeof _0x44f905['config']['get']('trackChangesData')['editorCreator'])throw new _0x175af6('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1227da){return N(this['editor'],!0x0,_0x1227da);}['getDataWithDiscardedSuggestions'](_0x340fab){return N(this['editor'],!0x1,_0x340fab);}}class D extends _0x4f5a27{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x94f153){super(_0x94f153),this['result']='end';}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function v(_0x4dc125){return void 0x0!==_0x4dc125['getRootsAttributes'];}async function N(_0x90ef6e,_0x54d8a,_0x4fa797){const _0x1f4e18=_0x25fe9b(_0x90ef6e,T);_0x1f4e18['plugins']['push'](p,D),_0x1f4e18['rootsAttributes']=v(_0x90ef6e)?_0x90ef6e['getRootsAttributes']():void 0x0;const _0x1531b6=document['createDocumentFragment'](),_0x4ebbf9=_0x90ef6e['config']['get']('trackChangesData')['editorCreator'],_0x4336c3=await _0x4ebbf9(_0x1f4e18,()=>function(_0x216cc5){const _0x485deb=document['createElement']('div');return _0x216cc5['appendChild'](_0x485deb),_0x485deb;}(_0x1531b6));!function(_0x3971fa,_0x9a2005){const _0xad4a45=_0x3971fa['model']['document']['getRootNames']()['reduce']((_0x4d3f05,_0x24cb72)=>(_0x4d3f05[_0x24cb72]=_0x3971fa['data']['get']({'rootName':_0x24cb72}),_0x4d3f05),{}),_0x12e870=_0x3971fa['plugins']['get']('Users')['users']['map'](_0xd0ebec=>({'id':_0xd0ebec['id'],'name':_0xd0ebec['name']})),_0x4e3117=_0x3971fa['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x308c44=_0x3971fa['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1b7cf9=_0x9a2005['plugins']['get']('Users'),_0x48214c=_0x9a2005['plugins']['get']('TrackChangesEditing'),_0x4a7b77=_0x9a2005['plugins']['get']('CommentsRepository');for(const _0x19055c of _0x12e870)_0x1b7cf9['getUser'](_0x19055c['id'])||_0x1b7cf9['addUser'](_0x19055c);_0x1b7cf9['me']||_0x1b7cf9['useAnonymousUser']();for(const _0x3da404 of _0x308c44)_0x4a7b77['addCommentThread'](_0x3da404);for(const _0xb4447c of _0x4e3117)_0x48214c['addSuggestionData'](_0xb4447c);_0x9a2005['data']['set'](_0xad4a45);}(_0x90ef6e,_0x4336c3),_0x4336c3['execute'](_0x54d8a?'acceptAllSuggestions':'discardAllSuggestions');const _0x177536=v(_0x4336c3)?_0x4336c3['getFullData'](_0x4fa797):_0x4336c3['data']['get'](_0x4fa797);return await _0x4336c3['destroy'](),_0x177536;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
|