@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
24 lines • 316 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
import{Command as _0x485279,Plugin as _0x2e402e,PendingActions as _0x324e00}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x154abc,ObservableMixin as _0x2fddcd,uid as _0x35a597,priorities as _0x38ebba,insertToPriorityArray as _0x338e6d,logWarning as _0x3f4f28,getEnvKeystrokeText as _0x241b6b,FocusTracker as _0x42da76,KeystrokeHandler as _0x3795a5,Collection as _0x175d96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0xcf3c42,IconCancel as _0x5a37ba,IconTrackChanges as _0x4b8ee1}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x3ad279,View as _0x1a32e9,ViewCollection as _0x350714,FocusCycler as _0x46bcaa,ViewModel as _0x117175,createDropdown as _0x3f8089,SplitButtonView as _0xe483bf,addListToDropdown as _0x38edf8,MenuBarMenuView as _0x2f2f68,MenuBarMenuListView as _0x248a9a,ListSeparatorView as _0x324f0a,MenuBarMenuListItemView as _0x17a348,MenuBarMenuListItemButtonView as _0x450363,BodyCollection as _0x3b21f6,Dialog as _0x8f1cc9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x370d6e,hashObject as _0x14074c,surroundingMarkersDetector as _0x336650,FOCUS_ANNOTATION_KEYSTROKE as _0x1ab607,AriaDescriptionView as _0xa7e2d6,setupThreadKeyboardNavigation as _0x4691ec,trimHtml as ti,UserView as _0x502fb1,LateFocusButtonView as _0x26e116,getDateTimeFormatter as _0x363307,getAllMarkersDomElementsSorted as _0x3866ae,sanitizeEditorConfig as _0x537397}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x6391f5,LiveRange as _0x29cc96,LivePosition as _0x2dfdcc,DowncastWriter as _0x530dcd}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x468aeb,toWidget as _0x46aac5}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x459926,set as _0x161986,isEqual as _0x258000,unset as _0x5cf20d,omit as Ft}from'es-toolkit/compat';import{Delete as _0xdc3ebc,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x642fd7}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x2cf5b4}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x485279{['_enabledCommands'];constructor(_0x40547b,_0x2ce5cf){super(_0x40547b),this['_enabledCommands']=_0x2ce5cf,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 _0x3a6568 of this['editor']['commands']['commands']())_0x3a6568['affectsData']&&!this['_enabledCommands']['has'](_0x3a6568)&&_0x3a6568['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x19d2f3 of this['editor']['commands']['commands']())_0x19d2f3['affectsData']&&!this['_enabledCommands']['has'](_0x19d2f3)&&_0x19d2f3['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x485279{['_suggestions'];constructor(_0x17e3ef,_0x1c1bbb){super(_0x17e3ef),this['_suggestions']=_0x1c1bbb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x25e2c1){const _0x38ed74=this['_suggestions']['get'](_0x25e2c1);if(!_0x38ed74)throw new _0x154abc('track-changes-accept-suggestion-not-found',this);const _0x4dc939=_0x38ed74['getRanges']();this['editor']['model']['canEditAt'](_0x4dc939)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x38ed74);}}class R extends _0x485279{['_suggestions'];constructor(_0x3f7658,_0x4bbcd4){super(_0x3f7658),this['_suggestions']=_0x4bbcd4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x291ad5){const _0x2b749f=this['_suggestions']['get'](_0x291ad5);if(!_0x2b749f)throw new _0x154abc('track-changes-discard-suggestion-not-found',this);const _0x270d21=_0x2b749f['getRanges']();this['editor']['model']['canEditAt'](_0x270d21)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2b749f);}}function ls(_0x245a1a,_0x36ef8d){let _0x2e77ca='';return _0x2e77ca+=_0x245a1a['split']('*')['map']((_0x59c973,_0x5c9b6d)=>_0x5c9b6d%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x59c973)+'</span>':nn(_0x59c973))['join'](''),_0x36ef8d&&(_0x2e77ca+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x36ef8d['value']+'\x22\x20title=\x22'+_0x36ef8d['title']+'\x22></span>'),_0x2e77ca;}function nn(_0x30c62d){const _0x150bec=document['createElement']('span');return _0x150bec['innerText']=_0x30c62d,_0x150bec['innerHTML'];}function ts(_0x156d58){return _0x156d58['sort']((_0x218305,_0x95d473)=>'deletion'==_0x218305['type']&&'deletion'!=_0x95d473['type']?-0x1:'deletion'!=_0x218305['type']&&'deletion'==_0x95d473['type']?0x1:0x0);}function to(_0x1cb642,_0x13cac2){let _0x5a4da7,_0x4feae8=0x0;const _0x12823b=[],_0x1a3aa3=_0x13cac2['schema'];for(;_0x4feae8<_0x1cb642['length'];){const _0x401a51=_0x1cb642[_0x4feae8],_0x4d7937=_0x1cb642[_0x4feae8+0x1];_0x5a4da7||(_0x5a4da7=_0x13cac2['createPositionBefore'](_0x401a51)),on(_0x13cac2,_0x401a51,_0x4d7937)||(_0x12823b['push'](_0x13cac2['createRange'](_0x5a4da7,_0x1a3aa3['isObject'](_0x401a51)?_0x13cac2['createPositionAfter'](_0x401a51):_0x13cac2['createPositionAt'](_0x401a51,'end'))),_0x5a4da7=null),_0x4feae8++;}return _0x12823b;}function on(_0x1bedcf,_0x15c12d,_0x185543){if(!_0x185543)return!0x1;const _0x11f72f=_0x1bedcf['createPositionAfter'](_0x15c12d),_0x3c5354=_0x1bedcf['createPositionBefore'](_0x185543);return _0x11f72f['isTouching'](_0x3c5354);}function rs(_0x31b738,_0x5aca74,_0x3dc059){for(;_0x3dc059['length'];){const _0x2add37=_0x3dc059['splice'](0x0,0x64);_0x31b738['change'](()=>{for(const _0x533064 of _0x2add37)_0x533064['isInContent']&&_0x5aca74['execute'](_0x533064['id']);});}}class x extends _0x485279{['_command'];['_suggestions'];constructor(_0x59f2b4,_0x2ef54c,_0x4e139b){super(_0x59f2b4),this['_command']=_0x2ef54c,this['_suggestions']=_0x4e139b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x20a321=Array['from'](this['_suggestions']['values']())['some'](_0x1fb195=>_0x1fb195['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20a321;}['execute'](){const _0x4794f9=ts(Array['from'](this['_suggestions']['values']()));for(const _0x16b17f of _0x4794f9){const _0x3eb359=_0x16b17f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3eb359))return;}rs(this['editor']['model'],this['_command'],_0x4794f9);}}class E extends _0x485279{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x234e9c,_0x22d861,_0x42345b){super(_0x234e9c),this['_command']=_0x22d861,this['_suggestions']=_0x42345b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1ceab5=this['editor']['model']['document']['selection'],_0x1fbda8=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1b8b40,_0x56a7da){const _0x4a58d7=Array['from'](_0x1b8b40['getRanges']()),_0x17de87=new Set();for(const _0x408473 of _0x56a7da)if(_0x408473['isInContent']){for(const _0x1c726e of _0x4a58d7)for(const _0x52c2b1 of _0x408473['getRanges']())(_0x1c726e['isIntersecting'](_0x52c2b1)||_0x1b8b40['isCollapsed']&&!_0x408473['isMultiRange']&&_0x408473['next']&&_0x52c2b1['end']['isTouching'](_0x1c726e['start']))&&_0x17de87['add'](_0x408473);}return _0x17de87;}(_0x1ceab5,_0x1fbda8),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d53fa=ts(Array['from'](this['_selectedSuggestions']));for(const _0x16c07e of _0x4d53fa){const _0x559550=_0x16c07e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x559550))return;}rs(this['editor']['model'],this['_command'],_0x4d53fa);}}class o extends/* #__PURE__ -- @preserve */
_0x2fddcd(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x287b06,_0x636794){super(),this['id']=_0x636794['id'],this['type']=_0x636794['type'],this['subType']=_0x636794['subType']||null,this['author']=_0x636794['author'],this['creator']=_0x636794['creator']||_0x636794['author'],this['isExternal']=Boolean(_0x636794['attributes']&&_0x636794['attributes']['@external']),this['data']=null,this['_model']=_0x287b06,this['_onAccept']=_0x636794['onAccept'],this['_onDiscard']=_0x636794['onDiscard'],this['_onAttributesChange']=_0x636794['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x636794['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 _0xe4fa28=this;for(;_0xe4fa28['previous'];)_0xe4fa28=_0xe4fa28['previous'];return _0xe4fa28;}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'](_0x1a3a9b){this['_markerNames']['add'](_0x1a3a9b);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44bc0f=>this['_model']['markers']['get'](_0x44bc0f))['filter'](_0x16d4fc=>_0x16d4fc);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x56eacb=>{for(const _0xfb9542 of this['getMarkers']())_0x56eacb['removeMarker'](_0xfb9542);}),this['_markerNames']['clear']();}['removeMarker'](_0x4af4d1){this['_model']['change'](_0x1b735e=>{_0x1b735e['removeMarker'](_0x4af4d1);}),this['_markerNames']['delete'](_0x4af4d1);}['addRange'](_0x5aaf30){const _0x18d41d='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x18d41d),this['_model']['change'](_0x15d04d=>{_0x15d04d['addMarker'](_0x18d41d,{'range':_0x5aaf30,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x39030c){for(const _0x52bfed of this['getRanges']())if(_0x52bfed['isIntersecting'](_0x39030c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2158b0=>_0x2158b0['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x30e3e1,_0x52b00f)=>[..._0x30e3e1,..._0x52b00f['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5d7c07=this['getRanges']();if(0x1!=_0x5d7c07['length'])return null;const _0x5e0d92=_0x5d7c07[0x0],_0x54f28e=_0x5e0d92['start']['nodeAfter'],_0x5a2c62=_0x5e0d92['end']['nodeBefore'];return _0x54f28e instanceof _0x6391f5?_0x54f28e!=_0x5a2c62?null:_0x54f28e: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 _0x197ca1=[];let _0xdae13e=this['head'];for(;_0xdae13e;)_0x197ca1['push'](_0xdae13e),_0xdae13e=_0xdae13e['next'];return _0x197ca1;}['setAttribute'](_0x4587c9,_0x28294d){const _0x363942=_0x459926(this['attributes']);_0x161986(_0x363942,_0x4587c9,_0x28294d),_0x258000(_0x363942,this['attributes'])||(this['attributes']=_0x363942,this['_onAttributesChange'](_0x363942));}['removeAttribute'](_0x16c264){const _0x11dbdd=_0x459926(this['attributes']);_0x5cf20d(_0x11dbdd,_0x16c264),_0x258000(_0x11dbdd,this['attributes'])||(this['attributes']=_0x11dbdd,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 _0x35a597()['substr'](0x1,0x5);}}function c(_0xb0bc3a,_0xd69f79,_0xd85e77){const _0x67c488=_0xb0bc3a['t'],t=_0xb0bc3a['t'];switch(_0xd69f79){case'Track\x20changes':return t('Track\x20changes');case'Accept\x20suggestion':return t('Accept\x20suggestion');case'Discard\x20suggestion':return t('Discard\x20suggestion');case'Accept\x20all\x20suggestions':return t('Accept\x20all\x20suggestions');case'Accept\x20all\x20selected\x20suggestions':return t('Accept\x20all\x20selected\x20suggestions');case'Discard\x20all\x20suggestions':return t('Discard\x20all\x20suggestions');case'Discard\x20all\x20selected\x20suggestions':return t('Discard\x20all\x20selected\x20suggestions');case'Preview\x20final\x20content':return t('Preview\x20final\x20content');case'Final\x20content\x20preview':return t('Final\x20content\x20preview');case'*Reset\x20font\x20size*':return t('*Reset\x20font\x20size*');case'*Reset\x20font\x20family*':return t('*Reset\x20font\x20family*');case'*Reset\x20font\x20color*':return t('*Reset\x20font\x20color*');case'*Reset\x20font\x20background\x20color*':return t('*Reset\x20font\x20background\x20color*');case'*Remove\x20image\x20text\x20alternative*':return t('*Remove\x20image\x20text\x20alternative*');case'*Reset\x20image\x20width*':return t('*Reset\x20image\x20width*');case'*Remove\x20link*':return t('*Remove\x20link*');case'*Check\x20item*':return t('*Check\x20item*');case'*Uncheck\x20item*':return t('*Uncheck\x20item*');case'*Remove\x20all\x20formatting*':return t('*Remove\x20all\x20formatting*');case'*Replace\x20table\x20cells*':return t('*Replace\x20table\x20cells*');case'*Merge\x20cells*':return t('*Merge\x20cells*');case'*Split\x20cell:*\x20vertically':return t('*Split\x20cell:*\x20vertically');case'*Split\x20cell:*\x20horizontally':return t('*Split\x20cell:*\x20horizontally');case'*Indent:*\x20%0':return t('*Indent:*\x20%0',_0xd85e77);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0xd85e77);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0xd85e77);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0xd85e77);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0xd85e77);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',_0xd85e77);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0xd85e77);case'*Replace\x20image*':return t('*Replace\x20image*');case'*Format:*\x20resize\x20table':return t('*Format:*\x20resize\x20table');case'*Format:*\x20set\x20order\x20to\x20reversed':return t('*Format:*\x20set\x20order\x20to\x20reversed');case'*Format:*\x20set\x20order\x20to\x20regular':return t('*Format:*\x20set\x20order\x20to\x20regular');case'*Format:*\x20set\x20start\x20index\x20to\x20%0':return t('*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd85e77);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0xd85e77);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0xd85e77);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0xd85e77);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0xd85e77);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0xd85e77);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0xd85e77);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0xd85e77);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0xd85e77);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0xd85e77);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0xd85e77);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0xd85e77);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0xd85e77);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0xd85e77);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0xd85e77);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0xd85e77);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0xd85e77);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0xd85e77);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'},_0xd85e77);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0xd85e77);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0xd85e77);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0xd85e77);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0xd85e77);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0xd85e77);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0xd85e77);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0xd85e77);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'},_0xd85e77);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0xd85e77);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0xd85e77);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0xd85e77);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0xd85e77);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'},_0xd85e77);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0xd85e77);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'},_0xd85e77);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'},_0xd85e77);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0xd85e77);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'},_0xd85e77);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0xd85e77);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'},_0xd85e77);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0xd85e77);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0xd85e77);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0xd85e77);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0xd85e77);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 _0x67c488({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0xd85e77);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x67c488({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0xd85e77);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0xd85e77);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0xd85e77);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0xd85e77);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0xd85e77);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0xd69f79;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x14145a,_0x364270){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x14145a,this['_locale']=_0x364270;}['getDescriptions'](_0x4ec02f){const _0x5dc0e1=[],_0x1ac3f6=new Set(),_0x4983fc=new Set();for(let _0x5e6d82=0x0;_0x5e6d82<_0x4ec02f['length'];_0x5e6d82++){const _0x7d1154=_0x4ec02f[_0x5e6d82];if(!_0x7d1154['isInContent'])continue;const _0x121f84=this['_handleCustomCallbackDescription'](_0x7d1154);if(_0x121f84){if(null!=_0x7d1154['subType']){if(_0x1ac3f6['has'](_0x7d1154['subType']))continue;_0x1ac3f6['add'](_0x7d1154['subType']);}_0x5dc0e1['push'](_0x121f84);}else{if('attribute'!=_0x7d1154['type'])'insertion'!=_0x7d1154['type']&&'deletion'!=_0x7d1154['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5dc0e1,_0x7d1154,_0x4ec02f[_0x5e6d82+0x1]);else{const _0x3094ee=_0x7d1154['data']['key'];if(_0x4983fc['has'](_0x3094ee))continue;_0x4983fc['add'](_0x7d1154['data']['key']),_0x3094ee==u?this['_handleRenameSuggestionDescription'](_0x5dc0e1,_0x7d1154):this['_handleAttributeSuggestionDescription'](_0x5dc0e1,_0x7d1154);}}}return this['_resolveDescriptionItems'](_0x5dc0e1);}['registerDescriptionCallback'](_0x23cfaa){this['_customCallbacks']['push'](_0x23cfaa);}['registerElementLabel'](_0x1fed68,_0x19e55d,_0xec7853=_0x38ebba['normal']){'function'==typeof _0x1fed68?_0x338e6d(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1fed68,'label':_0x19e55d,'priority':_0xec7853}):this['_itemLabels']['set'](_0x1fed68,_0x19e55d);}['registerAttributeLabel'](_0x2d9b3e,_0x47dd59){this['_attributeLabels']['set'](_0x2d9b3e,_0x47dd59);}['getItemLabel'](_0xf02981,_0x4b43aa=0x1){let _0x7ba121;for(const _0x4abd41 of this['_itemLabelsCallbacks'])if(_0x4abd41['matchingCallback'](_0xf02981)){_0x7ba121=_0x4abd41['label'];break;}return _0x7ba121||(_0x7ba121=this['_itemLabels']['get'](_0xf02981['name'])),_0x7ba121?_0x7ba121(_0x4b43aa):0x1!==_0x4b43aa?_0x4b43aa+'\x20'+_0xf02981['name']+'s':''+_0xf02981['name'];}['_addDescriptionItems'](_0x298602,_0x41f491){const _0x2281d6=_0x41f491['getFirstRange']()['getWalker'](),_0x2c86ae='insertion'==_0x41f491['type']?'add':'remove';for(const _0x1454c4 of _0x2281d6){const _0x110203=_0x1454c4['item'],_0x1d5d83=_0x298602[_0x298602['length']-0x1];if(_0x110203['is']('$textProxy'))_0x1d5d83&&_0x1d5d83['type']['indexOf']('Container')>-0x1&&_0x298602['pop'](),_0x1d5d83&&'text'==_0x1d5d83['type']?_0x1d5d83[_0x2c86ae]+=_0x110203['data']:_0x298602['push']({'type':'text','add':'add'==_0x2c86ae?_0x110203['data']:'','remove':'remove'==_0x2c86ae?_0x110203['data']:''});else{if(this['_schema']['isObject'](_0x110203)){const _0x2ca753=_0x110203;if(_0x1d5d83&&_0x1d5d83['type']['indexOf']('Container')>-0x1&&_0x298602['pop'](),'elementEnd'==_0x1454c4['type'])continue;_0x1d5d83&&_0x1d5d83['type']==_0x2c86ae+'Object'&&_0x1d5d83['element']['name']==_0x2ca753['name']?_0x1d5d83['quantity']++:_0x298602['push']({'type':_0x2c86ae+'Object','element':_0x2ca753,'quantity':0x1}),_0x2281d6['skip'](_0x39c778=>!('elementEnd'==_0x39c778['type']&&_0x39c778['item']==_0x110203));}else{if(this['_schema']['checkChild'](_0x110203,'$text')||_0x110203['is']('element','softBreak')){const _0x590c36=_0x110203;if('add'==_0x2c86ae&&'elementStart'==_0x1454c4['type']||'remove'==_0x2c86ae&&'elementEnd'==_0x1454c4['type'])continue;if(_0x1d5d83&&-0x1==_0x1d5d83['type']['indexOf']('Container')){'text'==_0x1d5d83['type']&&(_0x1d5d83[_0x2c86ae]+='\x0a');continue;}let _0x4e2187;if(_0x4e2187='add'==_0x2c86ae?_0x590c36['nextSibling']&&!this['_schema']['isObject'](_0x590c36['nextSibling'])?_0x590c36['nextSibling']:null:_0x590c36['previousSibling']&&!this['_schema']['isObject'](_0x590c36['previousSibling'])?_0x590c36['previousSibling']:null,_0x590c36['isEmpty']||_0x4e2187&&_0x4e2187['isEmpty']){const _0x3bb59c=_0x4e2187&&_0x4e2187['isEmpty']?_0x4e2187:_0x590c36;_0x1d5d83&&_0x1d5d83['type']==_0x2c86ae+'EmptyContainer'&&_0x1d5d83['element']['name']==_0x3bb59c['name']?_0x1d5d83['quantity']++:_0x298602['push']({'type':_0x2c86ae+'EmptyContainer','element':_0x3bb59c,'quantity':0x1});}else _0x298602['push']({'type':_0x2c86ae+'Container','element':_0x590c36});}}}}}['_resolveDescriptionItems'](_0x572ce2){const _0x126ade=this['_locale'],_0x4c6471=[],_0x5374a2=[],_0x74db48=[];for(const _0x2ec5bb of _0x572ce2)switch(_0x2ec5bb['type']){case'text':if(_0x2ec5bb['add']=_0x2ec5bb['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2ec5bb['remove']=_0x2ec5bb['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2ec5bb['add']&&''!=_0x2ec5bb['remove']){_0x4c6471['push']({'type':'replace','content':c(_0x126ade,'REPLACE_TEXT',['\x22'+_0x2ec5bb['remove']+'\x22','\x22'+_0x2ec5bb['add']+'\x22'])});continue;}if(null!=_0x2ec5bb['add']['match'](/^ +$/)){_0x4c6471['push']({'type':'insertion','content':c(_0x126ade,'*Insert:*\x20%0',c(_0x126ade,'ELEMENT_SPACE',_0x2ec5bb['add']['length']))});continue;}if(null!=_0x2ec5bb['remove']['match'](/^ +$/)){_0x4c6471['push']({'type':'deletion','content':c(_0x126ade,'*Remove:*\x20%0',c(_0x126ade,'ELEMENT_SPACE',_0x2ec5bb['remove']['length']))});continue;}if(''!=_0x2ec5bb['add']){_0x4c6471['push']({'type':'insertion','content':c(_0x126ade,'*Insert:*\x20%0','\x22'+_0x2ec5bb['add']+'\x22')});continue;}_0x4c6471['push']({'type':'deletion','content':c(_0x126ade,'*Remove:*\x20%0','\x22'+_0x2ec5bb['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x4c6471['push']({'type':'insertion','content':c(_0x126ade,'*Insert:*\x20%0',this['getItemLabel'](_0x2ec5bb['element'],_0x2ec5bb['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x4c6471['push']({'type':'deletion','content':c(_0x126ade,'*Remove:*\x20%0',this['getItemLabel'](_0x2ec5bb['element'],_0x2ec5bb['quantity']))});continue;case'addContainer':_0x4c6471['push']({'type':'insertion','content':c(_0x126ade,'*Split:*\x20%0',this['getItemLabel'](_0x2ec5bb['element'],_0x2ec5bb['quantity']))});continue;case'removeContainer':_0x4c6471['push']({'type':'deletion','content':c(_0x126ade,'*Merge:*\x20%0',this['getItemLabel'](_0x2ec5bb['element'],_0x2ec5bb['quantity']))});continue;case'addFormat':_0x5374a2['push'](_0x2ec5bb['key']);continue;case'removeFormat':_0x74db48['push'](_0x2ec5bb['key']);continue;default:_0x4c6471['push'](_0x2ec5bb);}if(_0x5374a2['length']){const _0x1e0738=_0x5374a2['map'](_0x5428ed=>this['_attributeLabels']['has'](_0x5428ed)?this['_attributeLabels']['get'](_0x5428ed):_0x5428ed)['join'](',\x20');_0x4c6471['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x1e0738)});}if(_0x74db48['length']){const _0x5895cb=_0x74db48['map'](_0x163c63=>this['_attributeLabels']['has'](_0x163c63)?this['_attributeLabels']['get'](_0x163c63):_0x163c63)['join'](',\x20');_0x4c6471['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x5895cb)});}return _0x4c6471;}['_handleCustomCallbackDescription'](_0x21d0f1){for(const _0x213f51 of this['_customCallbacks']){const _0x53179f=_0x213f51(_0x21d0f1);if(_0x53179f&&'type'in _0x53179f)return _0x53179f;}}['_handleAttributeSuggestionDescription'](_0x5f2c2c,_0x70fb43){const _0x19e7f4=_0x70fb43['data'],_0x1f5659=void 0x0===_0x19e7f4['newValue']?'removeFormat':'addFormat';_0x5f2c2c['push']({'type':_0x1f5659,'key':_0x19e7f4['key']});}['_handleRenameSuggestionDescription'](_0x3de9fc,_0x33e739){_0x3de9fc['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x33e739['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1f84f3,_0x254f73,_0x3ccfa8){if(this['_addDescriptionItems'](_0x1f84f3,_0x254f73),_0x3ccfa8&&_0x3ccfa8['getFirstRange']()&&!_0x254f73['getFirstRange']()['end']['isEqual'](_0x3ccfa8['getFirstRange']()['start'])){const _0x4b87b7=_0x1f84f3[_0x1f84f3['length']-0x1],_0x1d61b4='insertion'==_0x254f73['type']?'add':'remove';_0x4b87b7&&'text'==_0x4b87b7['type']&&(_0x4b87b7[_0x1d61b4]+='\x0a');}}}class U extends _0x2e402e{['afterInit'](){const _0x1b07f7=this['editor'],_0x5dff11=_0x1b07f7['plugins']['get']('TrackChangesEditing');_0x1b07f7['commands']['get']('showAIAssistant')&&_0x5dff11['enableCommand']('showAIAssistant');}}class V extends _0x2e402e{['afterInit'](){const _0x277076=this['editor'],_0x33cf71=_0x277076['locale'];if(!_0x277076['plugins']['has']('AlignmentEditing'))return;const _0x37259b=_0x277076['plugins']['get']('TrackChangesEditing');_0x37259b['enableDefaultAttributesIntegration']('alignment'),_0x37259b['registerBlockAttribute']('alignment'),_0x37259b['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x33cf71,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x373ef6=this['editor'],_0x447cb9=_0x373ef6['locale'];_0x373ef6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc2af59=>{if('formatBlock'!=_0xc2af59['type'])return;const {data:_0x30b506}=_0xc2af59;if(_0x30b506&&'alignment'==_0x30b506['commandName']){const _0x2c4670=_0x30b506['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x447cb9,'*Format:*\x20%0',function(_0x46f4e6){switch(_0x46f4e6){case'left':return c(_0x447cb9,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x447cb9,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x447cb9,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x447cb9,'FORMAT_JUSTIFY_TEXT');}}(_0x2c4670))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x2e402e{['afterInit'](){const _0x125469=this['editor'],_0x25cbc3=_0x125469['plugins']['get']('TrackChangesEditing'),_0x59cda2=_0x125469['locale'];for(const _0x494ef2 of Zt){if(!_0x125469['plugins']['has'](_0x494ef2))continue;const _0x49d3d2=_0x494ef2['slice'](0x0,-0x7)['toLowerCase'](),_0x19d2fc='FORMAT_'+_0x49d3d2['toUpperCase']();_0x25cbc3['enableDefaultAttributesIntegration'](_0x49d3d2),_0x25cbc3['registerInlineAttribute'](_0x49d3d2),_0x25cbc3['descriptionFactory']['registerAttributeLabel'](_0x49d3d2,c(_0x59cda2,_0x19d2fc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d58a0=this['editor'],_0x11dc73=_0x2d58a0['locale'],_0x17cb33=_0x2d58a0['plugins']['get']('TrackChangesEditing');function _0x21caa0(_0x460a59,_0x5e172f){_0x17cb33['descriptionFactory']['registerDescriptionCallback'](_0x47b0a7=>{if('formatInline'!=_0x47b0a7['type'])return;const {data:_0x5671ff}=_0x47b0a7;return _0x5671ff&&_0x5671ff['commandName']===_0x460a59?_0x5671ff['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x11dc73,'*Format:*\x20%0',_0x5e172f)}:{'type':'format','content':c(_0x11dc73,'*Remove\x20format:*\x20%0',_0x5e172f)}:void 0x0;});}_0x21caa0('bold',c(_0x11dc73,'FORMAT_BOLD')),_0x21caa0('italic',c(_0x11dc73,'FORMAT_ITALIC')),_0x21caa0('underline',c(_0x11dc73,'FORMAT_UNDERLINE')),_0x21caa0('code',c(_0x11dc73,'FORMAT_CODE')),_0x21caa0('strikethrough',c(_0x11dc73,'FORMAT_STRIKETHROUGH')),_0x21caa0('subscript',c(_0x11dc73,'FORMAT_SUBSCRIPT')),_0x21caa0('superscript',c(_0x11dc73,'FORMAT_SUPERSCRIPT'));}}class G extends _0x2e402e{['afterInit'](){const _0x552a33=this['editor'],_0x5da5cb=_0x552a33['locale'];if(!_0x552a33['plugins']['has']('BlockQuoteEditing'))return;const _0x30199a=_0x552a33['plugins']['get']('TrackChangesEditing'),_0x9f20ed=this['editor']['commands']['get']('blockQuote');_0x30199a['enableCommand']('blockQuote',(_0x1d495a,_0x2f08da={})=>{const _0x2df43b=this['editor']['model']['document']['selection'],_0x2fd099=_0x2f08da&&void 0x0!==_0x2f08da['forceValue']?_0x2f08da['forceValue']:!_0x9f20ed['value'];let _0x404c80=[];if(_0x2fd099){const _0x9c97ec=Array['from'](_0x2df43b['getSelectedBlocks']())['filter'](_0x5f0a58=>oo(_0x5f0a58)||function(_0x3a2b26,_0x23d79c){const _0x35800a=_0x23d79c['checkChild'](_0x3a2b26['parent'],'blockQuote'),_0x4d7f04=_0x23d79c['checkChild'](['$root','blockQuote'],_0x3a2b26);return _0x35800a&&_0x4d7f04;}(_0x5f0a58,this['editor']['model']['schema']));_0x404c80=to(_0x9c97ec,_0x552a33['model']);}else{const _0x5e311b=Array['from'](_0x2df43b['getSelectedBlocks']())['filter'](_0x46763e=>oo(_0x46763e));_0x404c80=to(_0x5e311b,_0x552a33['model']);}_0x552a33['model']['change'](()=>{for(const _0x4f4290 of _0x404c80)_0x30199a['markBlockFormat'](_0x4f4290,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2fd099}]});});}),_0x30199a['descriptionFactory']['registerDescriptionCallback'](_0x18c935=>{const {data:_0x1733d1}=_0x18c935;if(_0x1733d1&&'blockQuote'==_0x1733d1['commandName']){const _0xdf91db=c(_0x5da5cb,'ELEMENT_BLOCK_QUOTE');return _0x1733d1['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5da5cb,'*Set\x20format:*\x20%0',_0xdf91db)}:{'type':'format','content':c(_0x5da5cb,'*Remove\x20format:*\x20%0',_0xdf91db)};}});}}function oo(_0x158282){return'blockQuote'==_0x158282['parent']['name'];}class L extends _0x2e402e{['afterInit'](){const _0x328ea4=this['editor'],_0x1ab742=_0x328ea4['locale'],_0x104651=_0x328ea4['plugins']['get']('TrackChangesEditing');_0x328ea4['plugins']['has']('BookmarkEditing')&&(_0x104651['enableCommand']('insertBookmark'),_0x104651['enableDefaultAttributesIntegration']('updateBookmark'),_0x104651['registerBlockAttribute']('bookmarkId'),_0x104651['descriptionFactory']['registerDescriptionCallback'](_0x46539a=>{if('insertion'!=_0x46539a['type']&&'deletion'!=_0x46539a['type']&&'attribute'!=_0x46539a['type'])return;const _0x485b21=_0x46539a['getContainedElement']();if(null==_0x485b21)return;if(!_0x485b21['is']('element','bookmark'))return;const _0x1205ec=_0x485b21['getAttribute']('bookmarkId');if('insertion'==_0x46539a['type'])return{'type':'insertion','content':c(_0x1ab742,'*Insert:*\x20%0','\x22'+_0x1205ec+'\x22\x20'+c(_0x1ab742,'ELEMENT_BOOKMARK'))};if('deletion'==_0x46539a['type'])return{'type':'deletion','content':c(_0x1ab742,'*Remove:*\x20%0','\x22'+_0x1205ec+'\x22\x20'+c(_0x1ab742,'ELEMENT_BOOKMARK'))};const {data:_0x4072cd}=_0x46539a;if(!_0x4072cd||'bookmarkId'!=_0x4072cd['key'])return;return{'type':'format','content':c(_0x1ab742,'*Set\x20bookmark:*\x20%0','\x22'+_0x4072cd['newValue']+'\x22')};}));}}class J extends _0x2e402e{['afterInit'](){const _0x5381ef=this['editor'];_0x5381ef['plugins']['has']('CaseChange')&&(_0x5381ef['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5381ef['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5381ef['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x2e402e{['afterInit'](){const _0x3d783=this['editor'];_0x3d783['commands']['get']('ckbox')&&_0x3d783['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x2e402e{['afterInit'](){const _0x3bd1c0=this['editor'];if(!_0x3bd1c0['plugins']['has']('CodeBlock'))return;const _0xe75d57=_0x3bd1c0['plugins']['get']('TrackChangesEditing'),_0x47ef53=_0x3bd1c0['locale'],_0x499473=_0x3bd1c0['config']['get']('codeBlock')['languages'],_0x376e92=_0x3bd1c0['commands']['get']('codeBlock');_0xe75d57['enableCommand']('indentCodeBlock'),_0xe75d57['enableCommand']('outdentCodeBlock'),_0xe75d57['enableCommand']('codeBlock',(_0x240329,_0x33248a={})=>{const _0xdf3c4c=_0x3bd1c0['model'],_0x32e6a1=_0x3bd1c0['model']['document']['selection'],_0x3417cf=_0x33248a&&void 0x0!==_0x33248a['forceValue']?_0x33248a['forceValue']:!_0x376e92['value'];let _0xb50ba2;_0x33248a['language']||(_0x33248a['language']=_0x499473[0x0]['language']),_0xb50ba2=_0x3417cf?Array['from'](_0x32e6a1['getSelectedBlocks']())['filter'](_0x3ca57b=>eo(_0x3ca57b)||function(_0xaf33b,_0x20e10b){if(_0xaf33b['is']('rootElement')||_0x20e10b['isLimit'](_0xaf33b))return!0x1;return _0x20e10b['checkChild'](_0xaf33b['parent'],'codeBlock');}(_0x3ca57b,_0xdf3c4c['schema'])):Array['from'](_0x32e6a1['getSelectedBlocks']())['filter'](_0x5a79d9=>eo(_0x5a79d9));const _0x102114=to(_0xb50ba2,_0xdf3c4c);_0xdf3c4c['change'](()=>{for(const _0xe629f9 of _0x102114)_0xe75d57['markBlockFormat'](_0xe629f9,{'commandName':'codeBlock','commandParams':[{..._0x33248a,'forceValue':_0x3417cf}],'formatGroupId':'blockName'});});}),(_0xe75d57['descriptionFactory']['registerElementLabel']('codeBlock',_0x377ca4=>c(_0x47ef53,'ELEMENT_CODE_BLOCK',_0x377ca4)),_0xe75d57['descriptionFactory']['registerDescriptionCallback'](_0x31b9f9=>{if('formatBlock'!=_0x31b9f9['type'])return;const _0x523bc2=_0x47ef53['t'],{data:_0x3264a0}=_0x31b9f9;if(!_0x3264a0||'codeBlock'!=_0x3264a0['commandName'])return;const _0x2929a5=_0x3264a0['commandParams'][0x0]['language'],_0xa51861=_0x523bc2(_0x499473['find'](_0x6089c9=>_0x6089c9['language']===_0x2929a5)['label'])['toLowerCase']();return _0x3264a0['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x47ef53,'*Set\x20format:*\x20%0',c(_0x47ef53,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa51861+')')}:{'type':'format','content':c(_0x47ef53,'*Remove\x20format:*\x20%0',c(_0x47ef53,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x31e79a){return'codeBlock'==_0x31e79a['name'];}class q extends _0x2e402e{['afterInit'](){const _0x40deeb=this['editor'];if(!_0x40deeb['plugins']['has']('CommentsEditing'))return;_0x40deeb['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x439c99,_0x41812d,_0x557087){const _0x2fc375=[];for(const _0x3aaef4 of _0x41812d['getItems']())_0x3aaef4['hasAttribute'](_0x439c99)&&_0x2fc375['push'](_0x557087['createRangeOn'](_0x3aaef4));return _0x2fc375;}function Fe(_0x56dbd1,_0x20ff85,{showActiveMarker:_0xbac015=!0x0}={}){const _0x12552e=_0x56dbd1['plugins']['get']('TrackChangesEditing');return(_0x5c68cf,_0x4ca755,_0x16e054)=>{if(!_0x16e054['consumable']['test'](_0x4ca755['markerRange'],_0x5c68cf['name']))return;const _0x6c3a0c=_0x4ca755['markerRange']['getWalker'](),_0x57b41b=_0x4ca755['markerRange']['start'],_0x613cab=_0x56dbd1['model']['schema'];let _0x571944=null,_0x3950df=null,_0x19aa3b=!0x1,_0x4daa59=!0x1;for(const _0x1e0e33 of _0x6c3a0c){const _0x359c83=_0x1e0e33['item'];_0x19aa3b=_0x19aa3b||_0x613cab['isContent'](_0x359c83);const _0x2592b9=_0x16e054['mapper']['toViewElement'](_0x359c83);if(_0x2592b9&&_0x2592b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1e0e33['type']&&(_0x613cab['isBlock'](_0x359c83)&&!_0x613cab['isLimit'](_0x359c83)&&(_0x359c83['nextSibling']||_0x57b41b['isAtEnd']?_0x571944&&_0x571944['parent']==_0x359c83||(_0x571944=_0x359c83,_0x531825(_0x1e0e33['previousPosition']),_0x4daa59=!0x0):_0x3950df=_0x3950df||_0x1e0e33['previousPosition']));}function _0x531825(_0x3ff1a0){const {authorId:_0x1f521c}=_0x12552e['_splitMarkerName'](_0x4ca755['markerName']),_0x16aa7a=_0x16e054['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x20ff85,'data-author-id':_0x1f521c}),_0x244ea1=_0x16e054['mapper']['toViewPosition'](_0x3ff1a0);_0xbac015&&_0x12552e['activeMarkers']['includes'](_0x4ca755['markerName'])&&_0x16e054['writer']['addClass']('ck-suggestion-marker--active',_0x16aa7a),_0x16e054['writer']['insert'](_0x244ea1,_0x16aa7a),_0x16e054['mapper']['bindElementToMarker'](_0x16aa7a,_0x4ca755['markerName']);}_0x19aa3b||_0x4daa59||!_0x3950df||_0x531825(_0x3950df);};}class z extends _0x2e402e{static get['requires'](){return[_0xdc3ebc];}['init'](){const _0x329e14=this['editor'],_0x3436e2=_0x329e14['plugins']['get']('TrackChangesEditing');_0x3436e2['enableCommand']('delete');const _0x346443=_0x329e14['commands']['get']('deleteForward');_0x3436e2['enableCommand']('deleteForward',(_0x1b3d7f,_0x3ec73a={})=>{const _0x180544=_0x329e14['model']['createSelection'](_0x329e14['model']['document']['selection']);_0x180544['isCollapsed']&&_0x329e14['model']['modifySelection'](_0x180544,{'direction':'forward','unit':_0x3ec73a['unit']});const _0x5e1979=_0x180544['getFirstRange'](),_0x4c22b5=_0x29cc96['fromRange'](_0x5e1979);let _0x58211b;_0x1b3d7f(_0x3ec73a),_0x58211b='$graveyard'==_0x4c22b5['root']['rootName']?_0x329e14['model']['createRange'](_0x5e1979['start']):_0x329e14['model']['createRange'](_0x4c22b5['start'],_0x4c22b5['end']),_0x4c22b5['detach'](),_0x329e14['model']['enqueueChange'](_0x346443['buffer']['batch'],_0x1c6bfe=>{_0x346443['buffer']['lock'](),_0x1c6bfe['setSelection'](_0x1c6bfe['createRange'](_0x58211b['end'])),_0x346443['buffer']['unlock']();});}),_0x329e14['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x329e14,'merge'),{'priority':'high'}),_0x329e14['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3fa811,_0x52ffa4,_0x104ef7)=>{_0x104ef7['options']['showSuggestionHighlights']&&Fe(_0x329e14,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3fa811,_0x52ffa4,_0x104ef7);},{'priority':'high'}),_0x329e14['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x39185d,_0x292a83,_0x27ae23)=>{const _0x514e85=_0x27ae23['mapper']['markerNameToElements'](_0x292a83['markerName']);if(_0x514e85){for(const _0x3c950f of _0x514e85)_0x3c950f['is']('uiElement')&&(_0x27ae23['mapper']['unbindElementFromMarkerName'](_0x3c950f,_0x292a83['markerName']),_0x27ae23['writer']['remove'](_0x3c950f));}},{'priority':'high'});}}class W extends _0x2e402e{['afterInit'](){const _0x5c8e6c=this['editor'];if(!_0x5c8e6c['plugins']['has']('ListEditing'))return;const _0x44fcef=_0x5c8e6c['locale'],_0x34f43d=_0x5c8e6c['plugins']['get']('TrackChangesEditing'),_0x5c57fa=_0x5c8e6c['plugins']['has']('TodoListEditing'),_0x453f9a=!!_0x5c8e6c['config']['get']('list.multiBlock');function _0x234060(_0x2296d2){return{'type