@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
24 lines • 323 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 _0x486b17,Plugin as _0x36e179,PendingActions as _0x3ab434}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x68278f,ObservableMixin as _0x4776a4,uid as _0x596f17,priorities as _0x5c7bf7,insertToPriorityArray as _0x2ed597,toArray as _0x28687d,logWarning as _0x4527a6,getEnvKeystrokeText as _0x553197,FocusTracker as _0x96df75,KeystrokeHandler as _0x77e3aa,Collection as _0x11ed54}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x46e812,IconCancel as _0x5f41d0,IconTrackChanges as _0x10b6ab}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xde6efc,View as _0x5768ab,ViewCollection as _0x2ff916,FocusCycler as _0x1e1f36,UIModel as _0x450f32,createDropdown as _0x2eceb4,SplitButtonView as _0x43e221,addListToDropdown as _0x15e42f,MenuBarMenuView as _0x392e21,MenuBarMenuListView as _0x4ba7c9,ListSeparatorView as _0x1e1d22,MenuBarMenuListItemView as _0x401d01,MenuBarMenuListItemButtonView as _0x2d5650,BodyCollection as _0x3d1065,Dialog as _0x5c0e38}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x288732,hashObject as _0x4549e9,surroundingMarkersDetector as _0x58c907,FOCUS_ANNOTATION_KEYSTROKE as _0x11dcaf,AriaDescriptionView as _0x4911fd,setupThreadKeyboardNavigation as _0x490447,trimHtml as _0x16c27c,UserView as _0x44a919,LateFocusButtonView as _0x596dbe,getDateTimeFormatter as _0x5d2ab7,getAllMarkersDomElementsSorted as _0x2f26df,sanitizeEditorConfig as _0x117474}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x866ca4,ModelLiveRange as _0x5b683d,ModelLivePosition as _0x438e15,ViewDowncastWriter as _0x26bef0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3d6ec7,toWidget as _0x399527}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x38510f,set as _0x8f73c8,isEqual as _0x24b9b1,unset as _0x4e6070,omit as Ut}from'es-toolkit/compat';import{Delete as _0x37585e,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3c481e}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x655eda}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x486b17{['_enabledCommands'];constructor(_0x574d00,_0xd39e4d){super(_0x574d00),this['_enabledCommands']=_0xd39e4d,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 _0x438cf6 of this['editor']['commands']['commands']())_0x438cf6['affectsData']&&!this['_enabledCommands']['has'](_0x438cf6)&&_0x438cf6['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x10ed6f of this['editor']['commands']['commands']())_0x10ed6f['affectsData']&&!this['_enabledCommands']['has'](_0x10ed6f)&&_0x10ed6f['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x486b17{['_suggestions'];constructor(_0x44a59e,_0x249eb5){super(_0x44a59e),this['_suggestions']=_0x249eb5,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x95b7d2){const _0x34e0f8=this['_suggestions']['get'](_0x95b7d2);if(!_0x34e0f8)throw new _0x68278f('track-changes-accept-suggestion-not-found',this);const _0x5be80c=_0x34e0f8['getRanges']();this['editor']['model']['canEditAt'](_0x5be80c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x34e0f8);}}class M extends _0x486b17{['_suggestions'];constructor(_0x242c85,_0x3930a3){super(_0x242c85),this['_suggestions']=_0x3930a3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x150a6e){const _0x276431=this['_suggestions']['get'](_0x150a6e);if(!_0x276431)throw new _0x68278f('track-changes-discard-suggestion-not-found',this);const _0x5a7331=_0x276431['getRanges']();this['editor']['model']['canEditAt'](_0x5a7331)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x276431);}}function ls(_0x36b75f,_0x4c0b74){let _0x4ef1b6='';return _0x4ef1b6+=_0x36b75f['split']('*')['map']((_0x471524,_0x5d2c9a)=>_0x5d2c9a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x471524)+'</span>':Yt(_0x471524))['join'](''),_0x4c0b74&&(_0x4ef1b6+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4c0b74['value']+'\x22\x20title=\x22'+_0x4c0b74['title']+'\x22></span>'),_0x4ef1b6;}function Yt(_0x49eba4){const _0x54b3d7=document['createElement']('span');return _0x54b3d7['innerText']=_0x49eba4,_0x54b3d7['innerHTML'];}function ts(_0x280e30){return _0x280e30['sort']((_0x234a11,_0x34aadf)=>'attribute'===_0x234a11['type']&&'attribute'!==_0x34aadf['type']?-0x1:'attribute'!==_0x234a11['type']&&'attribute'===_0x34aadf['type']?0x1:'deletion'==_0x234a11['type']&&'deletion'!=_0x34aadf['type']?-0x1:'deletion'!=_0x234a11['type']&&'deletion'==_0x34aadf['type']?0x1:0x0);}function to(_0x1d4b1d,_0x1fd64c){let _0x3fa180,_0x59b04a=0x0;const _0x22c78c=[],_0x100864=_0x1fd64c['schema'];for(;_0x59b04a<_0x1d4b1d['length'];){const _0x4dd0e7=_0x1d4b1d[_0x59b04a],_0x5bf378=_0x1d4b1d[_0x59b04a+0x1];_0x3fa180||(_0x3fa180=_0x1fd64c['createPositionBefore'](_0x4dd0e7)),Zt(_0x1fd64c,_0x4dd0e7,_0x5bf378)||(_0x22c78c['push'](_0x1fd64c['createRange'](_0x3fa180,_0x100864['isObject'](_0x4dd0e7)?_0x1fd64c['createPositionAfter'](_0x4dd0e7):_0x1fd64c['createPositionAt'](_0x4dd0e7,'end'))),_0x3fa180=null),_0x59b04a++;}return _0x22c78c;}function Zt(_0x1e8d41,_0x43451f,_0x490cf8){if(!_0x490cf8)return!0x1;const _0xb07903=_0x1e8d41['createPositionAfter'](_0x43451f),_0xde610e=_0x1e8d41['createPositionBefore'](_0x490cf8);return _0xb07903['isTouching'](_0xde610e);}function rs(_0x174636,_0xb320e8,_0x4d7ec3){for(;_0x4d7ec3['length'];){const _0x3e6bf3=_0x4d7ec3['splice'](0x0,0x64);_0x174636['change'](()=>{for(const _0x2427f3 of _0x3e6bf3)_0x2427f3['isInContent']&&_0xb320e8['execute'](_0x2427f3['id']);});}}class $ extends _0x486b17{['_command'];['_suggestions'];constructor(_0x8cce5c,_0x227e7b,_0x188656){super(_0x8cce5c),this['_command']=_0x227e7b,this['_suggestions']=_0x188656,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x78dd16=Array['from'](this['_suggestions']['values']())['some'](_0x128578=>_0x128578['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x78dd16;}['execute'](){const _0x3cbfba=ts(Array['from'](this['_suggestions']['values']()));for(const _0x35b7e7 of _0x3cbfba){const _0x7541fc=_0x35b7e7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x7541fc))return;}rs(this['editor']['model'],this['_command'],_0x3cbfba);}}class B extends _0x486b17{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x148058,_0x5bb7a6,_0x2c400c){super(_0x148058),this['_command']=_0x5bb7a6,this['_suggestions']=_0x2c400c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1e99c1=this['editor']['model']['document']['selection'],_0x78cb5e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x1abea9,_0x54caa3){const _0x5280ce=Array['from'](_0x1abea9['getRanges']()),_0x417274=new Set();for(const _0x485175 of _0x54caa3)if(_0x485175['isInContent']){for(const _0x35a2a7 of _0x5280ce)for(const _0x5a71ca of _0x485175['getRanges']())(_0x35a2a7['isIntersecting'](_0x5a71ca)||_0x1abea9['isCollapsed']&&!_0x485175['isMultiRange']&&_0x485175['next']&&_0x5a71ca['end']['isTouching'](_0x35a2a7['start']))&&_0x417274['add'](_0x485175);}return _0x417274;}(_0x1e99c1,_0x78cb5e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x129159=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1e6cc7 of _0x129159){const _0x2d4604=_0x1e6cc7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2d4604))return;}rs(this['editor']['model'],this['_command'],_0x129159);}}class T extends/* #__PURE__ -- @preserve */
_0x4776a4(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x12507b,_0x11464b){super(),this['id']=_0x11464b['id'],this['type']=_0x11464b['type'],this['subType']=_0x11464b['subType']||null,this['author']=_0x11464b['author'],this['creator']=_0x11464b['creator']||_0x11464b['author'],this['isExternal']=Boolean(_0x11464b['attributes']&&_0x11464b['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x11464b['originalSuggestionId']||null,this['_model']=_0x12507b,this['_onAccept']=_0x11464b['onAccept'],this['_onDiscard']=_0x11464b['onDiscard'],this['_onAttributesChange']=_0x11464b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x11464b['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 _0x5f2119=this;for(;_0x5f2119['previous'];)_0x5f2119=_0x5f2119['previous'];return _0x5f2119;}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'](_0x4f7aec){this['_markerNames']['add'](_0x4f7aec);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x40ea9e=>this['_model']['markers']['get'](_0x40ea9e))['filter'](_0x1aa033=>_0x1aa033);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5d3d39=>{for(const _0x2b12dd of this['getMarkers']())_0x5d3d39['removeMarker'](_0x2b12dd);}),this['_markerNames']['clear']();}['removeMarker'](_0x4c9523){this['_model']['change'](_0x73d892=>{_0x73d892['removeMarker'](_0x4c9523);}),this['_markerNames']['delete'](_0x4c9523);}['addRange'](_0x178418){const _0x395150='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x395150),this['_model']['change'](_0x4537bf=>{_0x4537bf['addMarker'](_0x395150,{'range':_0x178418,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4314d4){for(const _0x3fdf80 of this['getRanges']())if(_0x3fdf80['isIntersecting'](_0x4314d4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x19cbdf=>_0x19cbdf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5ef911,_0x1698d2)=>[..._0x5ef911,..._0x1698d2['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x246fb6=this['getRanges']();if(0x1!=_0x246fb6['length'])return null;const _0x5d2adf=_0x246fb6[0x0],_0x3ba704=_0x5d2adf['start']['nodeAfter'],_0x1eefcd=_0x5d2adf['end']['nodeBefore'];return _0x3ba704 instanceof _0x866ca4?_0x3ba704!=_0x1eefcd?null:_0x3ba704: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 _0x5d1a38=[];let _0x24e23f=this['head'];for(;_0x24e23f;)_0x5d1a38['push'](_0x24e23f),_0x24e23f=_0x24e23f['next'];return _0x5d1a38;}['setAttribute'](_0xcc6969,_0x1dd13f){const _0x5d1d0e=_0x38510f(this['attributes']);_0x8f73c8(_0x5d1d0e,_0xcc6969,_0x1dd13f),_0x24b9b1(_0x5d1d0e,this['attributes'])||(this['attributes']=_0x5d1d0e,this['_onAttributesChange'](_0x5d1d0e));}['removeAttribute'](_0x3b82ad){const _0x59ce10=_0x38510f(this['attributes']);_0x4e6070(_0x59ce10,_0x3b82ad),_0x24b9b1(_0x59ce10,this['attributes'])||(this['attributes']=_0x59ce10,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 _0x596f17()['substr'](0x1,0x5);}}function o(_0x4674df,_0x1c0a07,_0x143f42){const _0x2d189c=_0x4674df['t'],t=_0x4674df['t'];switch(_0x1c0a07){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',_0x143f42);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x143f42);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x143f42);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x143f42);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x143f42);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',_0x143f42);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x143f42);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',_0x143f42);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x143f42);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x143f42);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x143f42);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x143f42);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x143f42);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x143f42);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x143f42);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x143f42);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x143f42);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x143f42);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x143f42);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x143f42);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x143f42);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x143f42);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x143f42);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x143f42);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x143f42);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'},_0x143f42);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x143f42);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x143f42);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x143f42);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x143f42);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x143f42);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x143f42);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x143f42);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'},_0x143f42);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x143f42);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x143f42);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x143f42);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x143f42);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'},_0x143f42);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x143f42);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'},_0x143f42);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'FORMAT_LINE_HEIGHT':return t({'string':'line\x20height','id':'FORMAT_LINE_HEIGHT'});case'FORMAT_TABLE_BORDER_COLOR':return t({'string':'table\x20border\x20color','id':'FORMAT_TABLE_BORDER_COLOR'});case'FORMAT_TABLE_BORDER_STYLE':return t({'string':'table\x20border\x20style','id':'FORMAT_TABLE_BORDER_STYLE'});case'FORMAT_TABLE_BORDER_WIDTH':return t({'string':'table\x20border\x20width','id':'FORMAT_TABLE_BORDER_WIDTH'});case'FORMAT_TABLE_ALIGNMENT':return t({'string':'table\x20alignment','id':'FORMAT_TABLE_ALIGNMENT'});case'FORMAT_TABLE_WIDTH':return t({'string':'table\x20width','id':'FORMAT_TABLE_WIDTH'});case'FORMAT_TABLE_HEIGHT':return t({'string':'table\x20height','id':'FORMAT_TABLE_HEIGHT'});case'FORMAT_TABLE_BACKGROUND_COLOR':return t({'string':'table\x20background\x20color','id':'FORMAT_TABLE_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_BORDER_COLOR':return t({'string':'table\x20cell\x20border\x20color','id':'FORMAT_TABLE_CELL_BORDER_COLOR'});case'FORMAT_TABLE_CELL_BORDER_STYLE':return t({'string':'table\x20cell\x20border\x20style','id':'FORMAT_TABLE_CELL_BORDER_STYLE'});case'FORMAT_TABLE_CELL_BORDER_WIDTH':return t({'string':'table\x20cell\x20border\x20width','id':'FORMAT_TABLE_CELL_BORDER_WIDTH'});case'FORMAT_TABLE_CELL_PADDING':return t({'string':'table\x20cell\x20padding','id':'FORMAT_TABLE_CELL_PADDING'});case'FORMAT_TABLE_CELL_WIDTH':return t({'string':'table\x20cell\x20width','id':'FORMAT_TABLE_CELL_WIDTH'});case'FORMAT_TABLE_CELL_HEIGHT':return t({'string':'table\x20cell\x20height','id':'FORMAT_TABLE_CELL_HEIGHT'});case'FORMAT_TABLE_CELL_BACKGROUND_COLOR':return t({'string':'table\x20cell\x20background\x20color','id':'FORMAT_TABLE_CELL_BACKGROUND_COLOR'});case'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT':return t({'string':'table\x20cell\x20horizontal\x20alignment','id':'FORMAT_TABLE_CELL_HORIZONTAL_ALIGNMENT'});case'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT':return t({'string':'table\x20cell\x20vertical\x20alignment','id':'FORMAT_TABLE_CELL_VERTICAL_ALIGNMENT'});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'},_0x143f42);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x143f42);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'},_0x143f42);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x143f42);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'},_0x143f42);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x143f42);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x143f42);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'},_0x143f42);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x143f42);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 _0x2d189c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x143f42);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2d189c({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x143f42);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x143f42);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'},_0x143f42);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'},_0x143f42);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'},_0x143f42);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1c0a07;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x598d4c,_0x296b1c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x598d4c,this['_locale']=_0x296b1c;}['getDescriptions'](_0x929c63){const _0x5e63d5=[],_0x2c4ae8=new Set(),_0x2bd5ca=new Set();for(let _0x178196=0x0;_0x178196<_0x929c63['length'];_0x178196++){const _0x39a87f=_0x929c63[_0x178196];if(!_0x39a87f['isInContent'])continue;const _0x3df490=this['_handleCustomCallbackDescription'](_0x39a87f);if(_0x3df490){if(null!=_0x39a87f['subType']){if(_0x2c4ae8['has'](_0x39a87f['subType']))continue;_0x2c4ae8['add'](_0x39a87f['subType']);}_0x5e63d5['push'](_0x3df490);}else{if('attribute'==_0x39a87f['type']){const _0x5a53bb=_0x39a87f['data']['key'];if(_0x2bd5ca['has'](_0x5a53bb))continue;_0x2bd5ca['add'](_0x39a87f['data']['key']),_0x5a53bb==m?this['_handleRenameSuggestionDescription'](_0x5e63d5,_0x39a87f):this['_handleAttributeSuggestionDescription'](_0x5e63d5,_0x39a87f);continue;}'insertion'!=_0x39a87f['type']&&'deletion'!=_0x39a87f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x5e63d5,_0x39a87f,_0x929c63[_0x178196+0x1]);}}return this['_resolveDescriptionItems'](_0x5e63d5);}['registerDescriptionCallback'](_0xc56f13){this['_customCallbacks']['push'](_0xc56f13);}['registerElementLabel'](_0x1fe8a9,_0x25a534,_0xce337b=_0x5c7bf7['normal']){'function'==typeof _0x1fe8a9?_0x2ed597(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1fe8a9,'label':_0x25a534,'priority':_0xce337b}):this['_itemLabels']['set'](_0x1fe8a9,_0x25a534);}['registerAttributeLabel'](_0x25e5bf,_0x1a1e44){this['_attributeLabels']['set'](_0x25e5bf,_0x1a1e44);}['getItemLabel'](_0x20f40f,_0x40f3c8=0x1){let _0x3cf5f5;for(const _0x367f28 of this['_itemLabelsCallbacks'])if(_0x367f28['matchingCallback'](_0x20f40f)){_0x3cf5f5=_0x367f28['label'];break;}return _0x3cf5f5||(_0x3cf5f5=this['_itemLabels']['get'](_0x20f40f['name'])),_0x3cf5f5?_0x3cf5f5(_0x40f3c8):0x1!==_0x40f3c8?_0x40f3c8+'\x20'+_0x20f40f['name']+'s':''+_0x20f40f['name'];}['_addDescriptionItems'](_0x18d051,_0x2a6526){const _0x5560d4=_0x2a6526['getFirstRange']()['getWalker'](),_0x20da44='insertion'==_0x2a6526['type']?'add':'remove';for(const _0xb8b540 of _0x5560d4){const _0xeabe2c=_0xb8b540['item'],_0x40fc12=_0x18d051[_0x18d051['length']-0x1];if(_0xeabe2c['is']('$textProxy'))_0x40fc12&&_0x40fc12['type']['indexOf']('Container')>-0x1&&_0x18d051['pop'](),_0x40fc12&&'text'==_0x40fc12['type']?_0x40fc12[_0x20da44]+=_0xeabe2c['data']:_0x18d051['push']({'type':'text','add':'add'==_0x20da44?_0xeabe2c['data']:'','remove':'remove'==_0x20da44?_0xeabe2c['data']:''});else{if(this['_schema']['isObject'](_0xeabe2c)){const _0x2f7198=_0xeabe2c;if(_0x40fc12&&_0x40fc12['type']['indexOf']('Container')>-0x1&&_0x18d051['pop'](),'elementEnd'==_0xb8b540['type'])continue;_0x40fc12&&_0x40fc12['type']==_0x20da44+'Object'&&_0x40fc12['element']['name']==_0x2f7198['name']?_0x40fc12['quantity']++:_0x18d051['push']({'type':_0x20da44+'Object','element':_0x2f7198,'quantity':0x1}),_0x5560d4['skip'](_0x1b85e5=>!('elementEnd'==_0x1b85e5['type']&&_0x1b85e5['item']==_0xeabe2c));}else{if(this['_schema']['checkChild'](_0xeabe2c,'$text')||_0xeabe2c['is']('element','softBreak')){const _0x55c8cc=_0xeabe2c;if('add'==_0x20da44&&'elementStart'==_0xb8b540['type']||'remove'==_0x20da44&&'elementEnd'==_0xb8b540['type'])continue;if(_0x40fc12&&-0x1==_0x40fc12['type']['indexOf']('Container')){'text'==_0x40fc12['type']&&(_0x40fc12[_0x20da44]+='\x0a');continue;}let _0x4663c6;if(_0x4663c6='add'==_0x20da44?_0x55c8cc['nextSibling']&&!this['_schema']['isObject'](_0x55c8cc['nextSibling'])?_0x55c8cc['nextSibling']:null:_0x55c8cc['previousSibling']&&!this['_schema']['isObject'](_0x55c8cc['previousSibling'])?_0x55c8cc['previousSibling']:null,_0x55c8cc['isEmpty']||_0x4663c6&&_0x4663c6['isEmpty']){const _0xabe9ef=_0x4663c6&&_0x4663c6['isEmpty']?_0x4663c6:_0x55c8cc;_0x40fc12&&_0x40fc12['type']==_0x20da44+'EmptyContainer'&&_0x40fc12['element']['name']==_0xabe9ef['name']?_0x40fc12['quantity']++:_0x18d051['push']({'type':_0x20da44+'EmptyContainer','element':_0xabe9ef,'quantity':0x1});}else _0x18d051['push']({'type':_0x20da44+'Container','element':_0x55c8cc});}}}}}['_resolveDescriptionItems'](_0x2ddb4e){const _0x376fcc=this['_locale'],_0x2b2e0f=[],_0x4f6378=[],_0x4f2dec=[];for(const _0x27f4a2 of _0x2ddb4e)switch(_0x27f4a2['type']){case'text':if(_0x27f4a2['add']=_0x27f4a2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x27f4a2['remove']=_0x27f4a2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x27f4a2['add']&&''!=_0x27f4a2['remove']){_0x2b2e0f['push']({'type':'replace','content':o(_0x376fcc,'REPLACE_TEXT',['\x22'+_0x27f4a2['remove']+'\x22','\x22'+_0x27f4a2['add']+'\x22'])});continue;}if(null!=_0x27f4a2['add']['match'](/^ +$/)){_0x2b2e0f['push']({'type':'insertion','content':o(_0x376fcc,'*Insert:*\x20%0',o(_0x376fcc,'ELEMENT_SPACE',_0x27f4a2['add']['length']))});continue;}if(null!=_0x27f4a2['remove']['match'](/^ +$/)){_0x2b2e0f['push']({'type':'deletion','content':o(_0x376fcc,'*Remove:*\x20%0',o(_0x376fcc,'ELEMENT_SPACE',_0x27f4a2['remove']['length']))});continue;}if(''!=_0x27f4a2['add']){_0x2b2e0f['push']({'type':'insertion','content':o(_0x376fcc,'*Insert:*\x20%0','\x22'+_0x27f4a2['add']+'\x22')});continue;}_0x2b2e0f['push']({'type':'deletion','content':o(_0x376fcc,'*Remove:*\x20%0','\x22'+_0x27f4a2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2b2e0f['push']({'type':'insertion','content':o(_0x376fcc,'*Insert:*\x20%0',this['getItemLabel'](_0x27f4a2['element'],_0x27f4a2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2b2e0f['push']({'type':'deletion','content':o(_0x376fcc,'*Remove:*\x20%0',this['getItemLabel'](_0x27f4a2['element'],_0x27f4a2['quantity']))});continue;case'addContainer':_0x2b2e0f['push']({'type':'insertion','content':o(_0x376fcc,'*Split:*\x20%0',this['getItemLabel'](_0x27f4a2['element'],_0x27f4a2['quantity']))});continue;case'removeContainer':_0x2b2e0f['push']({'type':'deletion','content':o(_0x376fcc,'*Merge:*\x20%0',this['getItemLabel'](_0x27f4a2['element'],_0x27f4a2['quantity']))});continue;case'addFormat':_0x4f6378['push'](_0x27f4a2['key']);continue;case'removeFormat':_0x4f2dec['push'](_0x27f4a2['key']);continue;default:_0x2b2e0f['push'](_0x27f4a2);}if(_0x4f6378['length']){const _0x399715=_0x4f6378['map'](_0xb933b2=>this['_attributeLabels']['has'](_0xb933b2)?this['_attributeLabels']['get'](_0xb933b2):_0xb933b2)['join'](',\x20');_0x2b2e0f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x399715)});}if(_0x4f2dec['length']){const _0x406c16=_0x4f2dec['map'](_0x56eb38=>this['_attributeLabels']['has'](_0x56eb38)?this['_attributeLabels']['get'](_0x56eb38):_0x56eb38)['join'](',\x20');_0x2b2e0f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x406c16)});}return _0x2b2e0f;}['_handleCustomCallbackDescription'](_0x4c7ff4){for(const _0x2eca3f of this['_customCallbacks']){const _0x45db91=_0x2eca3f(_0x4c7ff4);if(_0x45db91&&'type'in _0x45db91)return _0x45db91;}}['_handleAttributeSuggestionDescription'](_0x58ac0d,_0x418f05){const _0xa70d11=_0x418f05['data'],_0x5c0da1=void 0x0===_0xa70d11['newValue']?'removeFormat':'addFormat';_0x58ac0d['push']({'type':_0x5c0da1,'key':_0xa70d11['key']});}['_handleRenameSuggestionDescription'](_0x1cdb07,_0x15f79e){_0x1cdb07['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x15f79e['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1e4bdc,_0x5caa00,_0xe8d50f){if(this['_addDescriptionItems'](_0x1e4bdc,_0x5caa00),_0xe8d50f&&_0xe8d50f['getFirstRange']()&&!_0x5caa00['getFirstRange']()['end']['isEqual'](_0xe8d50f['getFirstRange']()['start'])){const _0x25d48c=_0x1e4bdc[_0x1e4bdc['length']-0x1],_0x55171c='insertion'==_0x5caa00['type']?'add':'remove';_0x25d48c&&'text'==_0x25d48c['type']&&(_0x25d48c[_0x55171c]+='\x0a');}}}class O extends _0x36e179{['afterInit'](){const _0x69be2=this['editor'],_0x534980=_0x69be2['plugins']['get']('TrackChangesEditing');_0x69be2['commands']['get']('showAIAssistant')&&_0x534980['enableCommand']('showAIAssistant');}}class E extends _0x36e179{['afterInit'](){const _0x5894dc=this['editor'],_0x254c7d=_0x5894dc['locale'];if(!_0x5894dc['plugins']['has']('AlignmentEditing'))return;const _0x193940=_0x5894dc['plugins']['get']('TrackChangesEditing');_0x193940['enableDefaultAttributesIntegration']('alignment'),_0x193940['registerBlockAttribute']('alignment'),_0x193940['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x254c7d,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c70d=this['editor'],_0x3782fb=_0x45c70d['locale'];_0x45c70d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39e165=>{if('formatBlock'!=_0x39e165['type'])return;const {data:_0xfa7236}=_0x39e165;if(_0xfa7236&&'alignment'==_0xfa7236['commandName']){const _0x15c74d=_0xfa7236['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3782fb,'*Format:*\x20%0',function(_0x4e039e){switch(_0x4e039e){case'left':return o(_0x3782fb,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3782fb,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3782fb,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3782fb,'FORMAT_JUSTIFY_TEXT');}}(_0x15c74d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x36e179{['afterInit'](){const _0x2ce041=this['editor'],_0x48a7f2=_0x2ce041['plugins']['get']('TrackChangesEditing'),_0x4723d7=_0x2ce041['locale'];for(const _0x56d206 of ti){if(!_0x2ce041['plugins']['has'](_0x56d206))continue;const _0x1f819b=_0x56d206['slice'](0x0,-0x7)['toLowerCase'](),_0x3501c4='FORMAT_'+_0x1f819b['toUpperCase']();_0x48a7f2['enableDefaultAttributesIntegration'](_0x1f819b),_0x48a7f2['registerInlineAttribute'](_0x1f819b),_0x48a7f2['descriptionFactory']['registerAttributeLabel'](_0x1f819b,o(_0x4723d7,_0x3501c4));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ffbdd=this['editor'],_0x2e1195=_0x3ffbdd['locale'],_0x57b644=_0x3ffbdd['plugins']['get']('TrackChangesEditing');function _0x178a2b(_0x194d31,_0x1a1443){_0x57b644['descriptionFactory']['registerDescriptionCallback'](_0x916cbf=>{if('formatInline'!=_0x916cbf['type'])return;const {data:_0x2a9517}=_0x916cbf;return _0x2a9517&&_0x2a9517['commandName']===_0x194d31?_0x2a9517['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2e1195,'*Format:*\x20%0',_0x1a1443)}:{'type':'format','content':o(_0x2e1195,'*Remove\x20format:*\x20%0',_0x1a1443)}:void 0x0;});}_0x178a2b('bold',o(_0x2e1195,'FORMAT_BOLD')),_0x178a2b('italic',o(_0x2e1195,'FORMAT_ITALIC')),_0x178a2b('underline',o(_0x2e1195,'FORMAT_UNDERLINE')),_0x178a2b('code',o(_0x2e1195,'FORMAT_CODE')),_0x178a2b('strikethrough',o(_0x2e1195,'FORMAT_STRIKETHROUGH')),_0x178a2b('subscript',o(_0x2e1195,'FORMAT_SUBSCRIPT')),_0x178a2b('superscript',o(_0x2e1195,'FORMAT_SUPERSCRIPT'));}}class U extends _0x36e179{['afterInit'](){const _0x2ee10b=this['editor'],_0x37b74a=_0x2ee10b['locale'];if(!_0x2ee10b['plugins']['has']('BlockQuoteEditing'))return;const _0x440ea2=_0x2ee10b['plugins']['get']('TrackChangesEditing'),_0xfdc821=this['editor']['commands']['get']('blockQuote');_0x440ea2['enableCommand']('blockQuote',(_0x416492,_0x87f907={})=>{const _0x51b4ba=this['editor']['model']['document']['selection'],_0x1f4c32=_0x87f907&&void 0x0!==_0x87f907['forceValue']?_0x87f907['forceValue']:!_0xfdc821['value'];let _0x448040=[];if(_0x1f4c32){const _0x8f13f2=Array['from'](_0x51b4ba['getSelectedBlocks']())['filter'](_0xd305a8=>oo(_0xd305a8)||function(_0x230f3b,_0x522c75){const _0x5d98e7=_0x522c75['checkChild'](_0x230f3b['parent'],'blockQuote'),_0x5801ec=_0x522c75['checkChild'](['$root','blockQuote'],_0x230f3b);return _0x5d98e7&&_0x5801ec;}(_0xd305a8,this['editor']['model']['schema']));_0x448040=to(_0x8f13f2,_0x2ee10b['model']);}else{const _0x439ef9=Array['from'](_0x51b4ba['getSelectedBlocks']())['filter'](_0x345e8d=>oo(_0x345e8d));_0x448040=to(_0x439ef9,_0x2ee10b['model']);}_0x2ee10b['model']['change'](()=>{for(const _0xd2d6d7 of _0x448040)_0x440ea2['markBlockFormat'](_0xd2d6d7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1f4c32}]});});}),_0x440ea2['descriptionFactory']['registerDescriptionCallback'](_0x122c22=>{const {data:_0x180ded}=_0x122c22;if(_0x180ded&&'blockQuote'==_0x180ded['commandName']){const _0x3459e9=o(_0x37b74a,'ELEMENT_BLOCK_QUOTE');return _0x180ded['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x37b74a,'*Set\x20format:*\x20%0',_0x3459e9)}:{'type':'format','content':o(_0x37b74a,'*Remove\x20format:*\x20%0',_0x3459e9)};}});}}function oo(_0x5aeb3c){return'blockQuote'==_0x5aeb3c['parent']['name'];}class V extends _0x36e179{['afterInit'](){const _0x545ca3=this['editor'],_0x2f20f3=_0x545ca3['locale'],_0xfbcb11=_0x545ca3['plugins']['get']('TrackChangesEditing');_0x545ca3['plugins']['has']('BookmarkEditing')&&(_0xfbcb11['enableCommand']('insertBookmark'),_0xfbcb11['enableDefaultAttributesIntegration']('updateBookmark'),_0xfbcb11['registerBlockAttribute']('bookmarkId'),_0xfbcb11['descriptionFactory']['registerDescriptionCallback'](_0x28929c=>{if('insertion'!=_0x28929c['type']&&'deletion'!=_0x28929c['type']&&'attribute'!=_0x28929c['type'])return;const _0x1d2936=_0x28929c['getContainedElement']();if(null==_0x1d2936)return;if(!_0x1d2936['is']('element','bookmark'))return;const _0x5c8f2b=_0x1d2936['getAttribute']('bookmarkId');if('insertion'==_0x28929c['type'])return{'type':'insertion','content':o(_0x2f20f3,'*Insert:*\x20%0','\x22'+_0x5c8f2b+'\x22\x20'+o(_0x2f20f3,'ELEMENT_BOOKMARK'))};if('deletion'==_0x28929c['type'])return{'type':'deletion','content':o(_0x2f20f3,'*Remove:*\x20%0','\x22'+_0x5c8f2b+'\x22\x20'+o(_0x2f20f3,'ELEMENT_BOOKMARK'))};const {data:_0xb791c1}=_0x28929c;if(!_0xb791c1||'bookmarkId'!=_0xb791c1['key'])return;return{'type':'format','content':o(_0x2f20f3,'*Set\x20bookmark:*\x20%0','\x22'+_0xb791c1['newValue']+'\x22')};}));}}class F extends _0x36e179{['afterInit'](){const _0x3a443f=this['editor'];_0x3a443f['plugins']['has']('CaseChange')&&(_0x3a443f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3a443f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3a443f['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x36e179{['afterInit'](){const _0x21029b=this['editor'];_0x21029b['commands']['get']('ckbox')&&_0x21029b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x36e179{['afterInit'](){const _0x2354f5=this['editor'];if(!_0x2354f5['plugins']['has']('CodeBlock'))return;const _0x2eb543=_0x2354f5['plugins']['get']('TrackChangesEditing'),_0x48582e=_0x2354f5['locale'],_0x38b1db=_0x2354f5['config']['get']('codeBlock')['languages'],_0x235770=_0x2354f5['commands']['get']('codeBlock');_0x2eb543['enableCommand']('indentCodeBlock'),_0x2eb543['enableCommand']('outdentCodeBlock'),_0x2eb543['enableCommand']('codeBlock',(_0x50959c,_0x349e81={})=>{const _0x5bdd54=_0x2354f5['model'],_0x4ee70c=_0x2354f5['model']['document']['selection'],_0x12d334=_0x349e81&&void 0x0!==_0x349e81['forceValue']?_0x349e81['forceValue']:!_0x235770['value'];let _0x5df0ca;_0x349e81['language']||(_0x349e81['language']=_0x38b1db[0x0]['language']),_0x5df0ca=_0x12d334?Array['from'](_0x4ee70c['getSelectedBlocks']())['filter'](_0x300aed=>co(_0x300aed)||function(_0x4b27c4,_0x4c0981){if(_0x4b27c4['is']('rootElement')||_0x4c0981['isLimit'](_0x4b27c4))return!0x1;return _0x4c0981['checkChild'](_0x4b27c4['parent'],'codeBlock');}(_0x300aed,_0x5bdd54['schema'])):Array['from'](_0x4ee70c['getSelectedBlocks']())['filter'](_0x2338e7=>co(_0x2338e7));const _0x4973a4=to(_0x5df0ca,_0x5bdd54);_0x5bdd54['change'](()=>{for(const _0x404b1f of _0x4973a4)_0x2eb543['markBlockFormat'](_0x404b1f,{'commandName':'codeBlock','commandParams':[{..._0x349e81,'forceValue':_0x12d334}],'formatGroupId':'blockName'});});}),(_0x2eb543['descriptionFactory']['registerElementLabel']('codeBlock',_0x31f4ad=>o(_0x48582e,'ELEMENT_CODE_BLOCK',_0x31f4ad)),_0x2eb543['descriptionFactory']['registerDescriptionCallback'](_0x5a4278=>{if('formatBlock'!=_0x5a4278['type'])return;const _0x32fb97=_0x48582e['t'],{data:_0x3f5761}=_0x5a4278;if(!_0x3f5761||'codeBlock'!=_0x3f5761['commandName'])return;const _0x3d1b3b=_0x3f5761['commandParams'][0x0]['language'],_0x5ec9b8=_0x32fb97(_0x38b1db['find'](_0x370a3c=>_0x370a3c['language']===_0x3d1b3b)['label'])['toLowerCase']();return _0x3f5761['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x48582e,'*Set\x20format:*\x20%0',o(_0x48582e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5ec9b8+')')}:{'type':'format','content':o(_0x48582e,'*Remove\x20format:*\x20%0',o(_0x48582e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0x17cee4){return'codeBlock'==_0x17cee4['name'];}class J extends _0x36e179{['afterInit'](){const _0x3cd1aa=this['editor'];if(!_0x3cd1aa['plugins']['has']('CommentsEditing'))return;_0x3cd1aa['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x160faa,_0x2b04d2,_0x1116b8){const _0x408981=[];for(const _0x5281cf of _0x2b04d2['getItems']())_0x5281cf['hasAttribute'](_0x160faa)&&_0x408981['push'](_0x1116b8['createRangeOn'](_0x5281cf));return _0x408981;}function De(_0x384cfc,_0x148eeb,{showActiveMarker:_0x1f5f2d=!0x0}={}){const _0x560572=_0x384cfc['plugins']['get']('TrackChangesEditing');return(_0x21e1e2,_0x5872ab,_0x345af2)=>{if(!_0x345af2['consumable']['test'](_0x5872ab['markerRange'],_0x21e1e2['name']))return;const _0x10d973=_0x5872ab['markerRange']['getWalker'](),_0x223e3e=_0x5872ab['markerRange']['start'],_0x363a9b=_0x384cfc['model']['schema'];let _0x28dca5=null,_0x16a645=null,_0x4432a6=!0x1,_0x2ac58c=!0x1;for(const _0x391898 of _0x10d973){const _0xb64ed8=_0x391898['item'];_0x4432a6=_0x4432a6||_0x363a9b['isContent'](_0xb64ed8);const _0x23b342=_0x345af2['mapper']['toViewElement'](_0xb64ed8);if(_0x23b342&&_0x23b342['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x391898['type']&&(_0x363a9b['isBlock'](_0xb64ed8)&&!_0x363a9b['isLimit'](_0xb64ed8)&&(_0xb64ed8['nextSibling']||_0x223e3e['isAtEnd']?_0x28dca5&&_0x28dca5['parent']==_0xb64ed8||(_0x28dca5=_0xb64ed8,_0x5f2be7(_0x391898['previousPosition']),_0x2ac58c=!0x0):_0x16a645=_0x16a645||_0x391898['previousPosition']));}function _0x5f2be7(_0x34bbfe){const {id:_0x6796c4,authorId:_0xa6445c}=_0x560572['_splitMarkerName'](_0x5872ab['markerName']),_0x51afee=_0x345af2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x148eeb,'data-suggestion':_0x6796c4,'data-author-id':_0xa6445c}),_0x36b4ea=_0x345af2['mapper']['toViewPosition'](_0x34bbfe);_0x1f5f2d&&_0x560572['activeMarkers']['includes'](_0x5872ab['markerName'])&&_0x345af2['writer']['addClass']('ck-suggestion-marker--active',_0x51afee),_0x345af2['writer']['insert'](_0x36b4ea,_0x51afee),_0x345af2['mapper']['bindElementToMarker'](_0x51afee,_0x5872ab['markerName']);}_0x4432a6||_0x2ac58c||!_0x16a645||_0x5f2be7(_0