@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
24 lines • 315 kB
JavaScript
/*
* Copyright (c) 2003-2026, 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 _0x22ac6a,PendingActions as _0x3fa9a4,Plugin as _0x449cd5}from'@ckeditor/ckeditor5-core';import{Annotations as _0x47fdc7,Comments as _0x522ebb,CommentsRepository as _0x29457b,EditorAnnotations as _0x2c98bc}from'@ckeditor/ckeditor5-comments';import{CKEditorError as _0x403c95,Collection as _0x96fb93,FocusTracker as _0x348918,KeystrokeHandler as _0x164365,ObservableMixin as _0x1c6439,getEnvKeystrokeText as _0x21d341,insertToPriorityArray as _0x2d03de,logWarning as _0x5338e2,priorities as _0x449a53,uid as _0x1c0f04}from'@ckeditor/ckeditor5-utils';import{IconAIAuthor as _0x188a57,IconCancel as _0x48ae6f,IconCheck as _0x5bafee,IconSparkle as _0x42dd33,IconTrackChanges as _0x149db9}from'@ckeditor/ckeditor5-icons';import{BodyCollection as _0x469b4b,Dialog as _0x2857d2,FocusCycler as _0x2b68a6,ListSeparatorView as _0x59f2ec,MenuBarMenuListItemButtonView as _0x107b4c,MenuBarMenuListItemView as _0x252db8,MenuBarMenuListView as _0x1aa70f,MenuBarMenuView as _0x13a0ed,SplitButtonView as _0x4ed210,UIModel as _0x5a9814,View as _0x341170,ViewCollection as _0x2d62a6,addListToDropdown as _0x4106d7,createDropdown as _0x2a87d2,normalizeColorOptions as _0x1df80d}from'@ckeditor/ckeditor5-ui';import{AriaDescriptionView as _0x453221,CollaborationUserColor as _0x1ac64f,DocumentCompare as _0xa1008,FOCUS_ANNOTATION_KEYSTROKE as _0x210fd5,LateFocusButtonView as _0x5ae44f,PillView as _0x3bac69,SuggestionsConversion as _0x2962ea,User as _0x38c04d,UserView as _0x3ba6de,Users as _0x31fa66,fixElementSuggestionRange as _0x1c310a,getAllMarkersDomElementsSorted as _0x23a1bb,getDateTimeFormatter as _0x487ee3,hashObject as _0x328459,sanitizeEditorConfig as _0x38df16,setupThreadKeyboardNavigation as _0xa5a80f,splitSuggestionMarkerName as tt,surroundingMarkersDetector as et,trimHtml as nt}from'@ckeditor/ckeditor5-collaboration-core';import{ModelElement as it,ModelLivePosition as st,ModelLiveRange as rt,ViewDowncastWriter as ot}from'@ckeditor/ckeditor5-engine';import{cloneDeep as at,isEqual as ct,omit as lt,set as ut,unset as dt}from'es-toolkit/compat';import{Delete as ht,Input as gt}from'@ckeditor/ckeditor5-typing';import{Enter as ft}from'@ckeditor/ckeditor5-enter';import{ClipboardPipeline as mt}from'@ckeditor/ckeditor5-clipboard';var Et=class extends _0x22ac6a{['_enabledCommands'];constructor(_0x10e9f2,_0x1eefc5){super(_0x10e9f2),this['_enabledCommands']=_0x1eefc5,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 _0x230376 of this['editor']['commands']['commands']())_0x230376['affectsData']&&!this['_enabledCommands']['has'](_0x230376)&&_0x230376['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x39139c of this['editor']['commands']['commands']())_0x39139c['affectsData']&&!this['_enabledCommands']['has'](_0x39139c)&&_0x39139c['clearForceDisabled']('TrackChangesCommand');}},Tt=class extends _0x22ac6a{['_suggestions'];constructor(_0xd8c5ad,_0x57b2de){super(_0xd8c5ad),this['_suggestions']=_0x57b2de,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x590a82){const _0x216c32=this['_suggestions']['get'](_0x590a82);if(!_0x216c32)throw new _0x403c95('track-changes-accept-suggestion-not-found',this);const _0x3290ad=_0x216c32['getRanges']();this['editor']['model']['canEditAt'](_0x3290ad)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x216c32);}},_t=class extends _0x22ac6a{['_suggestions'];constructor(_0x59fd10,_0x54a458){super(_0x59fd10),this['_suggestions']=_0x54a458,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x30608b){const _0x27ee9f=this['_suggestions']['get'](_0x30608b);if(!_0x27ee9f)throw new _0x403c95('track-changes-discard-suggestion-not-found',this);const _0x12d906=_0x27ee9f['getRanges']();this['editor']['model']['canEditAt'](_0x12d906)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x27ee9f);}};function pt(_0x1db470,_0x1127df){let _0x414fcb='';return _0x414fcb+=_0x1db470['split']('*')['map']((_0x1e8669,_0x1f2878)=>_0x1f2878%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Lt(_0x1e8669)+'</span>':Lt(_0x1e8669))['join'](''),_0x1127df&&(_0x414fcb+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1127df['value']+'\x22\x20title=\x22'+_0x1127df['title']+'\x22></span>'),_0x414fcb;}function Lt(_0xa2107d){const _0xd3ace4=document['createElement']('span');return _0xd3ace4['innerText']=_0xa2107d,_0xd3ace4['innerHTML'];}function It(_0x21c755){return _0x21c755['sort']((_0x4da73c,_0x9dd7a4)=>'attribute'===_0x4da73c['type']&&'attribute'!==_0x9dd7a4['type']?-0x1:'attribute'!==_0x4da73c['type']&&'attribute'===_0x9dd7a4['type']?0x1:'deletion'==_0x4da73c['type']&&'deletion'!=_0x9dd7a4['type']?-0x1:'deletion'!=_0x4da73c['type']&&'deletion'==_0x9dd7a4['type']?0x1:0x0);}function At(_0x270c19,_0x4dc449){let _0x4eb244,_0x516031=0x0;const _0x174e50=[],_0x5d347b=_0x4dc449['schema'];for(;_0x516031<_0x270c19['length'];){const _0x5c7faa=_0x270c19[_0x516031],_0x2492b9=_0x270c19[_0x516031+0x1];_0x4eb244||(_0x4eb244=_0x4dc449['createPositionBefore'](_0x5c7faa)),bt(_0x4dc449,_0x5c7faa,_0x2492b9)||(_0x174e50['push'](_0x4dc449['createRange'](_0x4eb244,_0x5d347b['isObject'](_0x5c7faa)?_0x4dc449['createPositionAfter'](_0x5c7faa):_0x4dc449['createPositionAt'](_0x5c7faa,'end'))),_0x4eb244=null),_0x516031++;}return _0x174e50;}function bt(_0x49ea7f,_0x134dae,_0x50b97f){if(!_0x50b97f)return!0x1;const _0x5eabba=_0x49ea7f['createPositionAfter'](_0x134dae),_0x24e5b5=_0x49ea7f['createPositionBefore'](_0x50b97f);return _0x5eabba['isTouching'](_0x24e5b5);}function kt(_0x428573,_0x2ef421,_0x3ad7bc){for(;_0x3ad7bc['length'];){const _0xca2d14=_0x3ad7bc['splice'](0x0,0x64);_0x428573['change'](()=>{for(const _0x4646b9 of _0xca2d14)_0x4646b9['isInContent']&&_0x2ef421['execute'](_0x4646b9['id']);});}}var Ct=class extends _0x22ac6a{['_command'];['_suggestions'];constructor(_0x18f53f,_0x167e4e,_0x4302c1){super(_0x18f53f),this['_command']=_0x167e4e,this['_suggestions']=_0x4302c1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36cc99=Array['from'](this['_suggestions']['values']())['some'](_0x11684c=>_0x11684c['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36cc99;}['execute'](){const _0x5cf11d=It(Array['from'](this['_suggestions']['values']()));for(const _0x575bc0 of _0x5cf11d){const _0x1986dd=_0x575bc0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1986dd))return;}kt(this['editor']['model'],this['_command'],_0x5cf11d);}},Rt=class extends _0x22ac6a{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4a45dc,_0x37f723,_0x9ad61c){super(_0x4a45dc),this['_command']=_0x37f723,this['_suggestions']=_0x9ad61c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5724c3=this['editor']['model']['document']['selection'],_0x36db51=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x184568,_0x2c9a92){const _0x228613=Array['from'](_0x184568['getRanges']()),_0x4ecd8e=new Set();for(const _0x7f3eb of _0x2c9a92)if(_0x7f3eb['isInContent']){for(const _0x11987d of _0x228613)for(const _0x57d9c0 of _0x7f3eb['getRanges']())(_0x11987d['isIntersecting'](_0x57d9c0)||_0x184568['isCollapsed']&&!_0x7f3eb['isMultiRange']&&_0x7f3eb['next']&&_0x57d9c0['end']['isTouching'](_0x11987d['start']))&&_0x4ecd8e['add'](_0x7f3eb);}return _0x4ecd8e;}(_0x5724c3,_0x36db51),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x50fe5d=It(Array['from'](this['_selectedSuggestions']));for(const _0xb050ed of _0x50fe5d){const _0x50bda6=_0xb050ed['getRanges']();if(!this['editor']['model']['canEditAt'](_0x50bda6))return;}kt(this['editor']['model'],this['_command'],_0x50fe5d);}};const Nt=/* #__PURE__ -- @preserve */
_0x1c6439();var yt=class Suggestion extends Nt{['id'];['type'];['subType'];['author'];['creator'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4cc1af,_0x4c13c9){super(),this['id']=_0x4c13c9['id'],this['type']=_0x4c13c9['type'],this['subType']=_0x4c13c9['subType']||null,this['author']=_0x4c13c9['author'],this['creator']=_0x4c13c9['creator']||_0x4c13c9['author'],this['data']=null,this['_originalSuggestionId']=_0x4c13c9['originalSuggestionId']||null,this['_model']=_0x4cc1af,this['_onAccept']=_0x4c13c9['onAccept'],this['_onDiscard']=_0x4c13c9['onDiscard'],this['_onAttributesChange']=_0x4c13c9['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4c13c9['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}get['isExternal'](){return Boolean(this['attributes']&&this['attributes']['@external']);}get['aiSource'](){return this['attributes']&&this['attributes']['@ai']?.['type']||null;}get['head'](){let _0x16e58b=this;for(;_0x16e58b['previous'];)_0x16e58b=_0x16e58b['previous'];return _0x16e58b;}get['hasComments'](){return!!this['commentThread']&&this['commentThread']['length']>0x0;}get['isMultiRange'](){return 0x0!=this['_markerNames']['size']&&0x6==Array['from'](this['_markerNames'])[0x0]['split'](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x1ffdcf){this['_markerNames']['add'](_0x1ffdcf);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x44fb2b=>this['_model']['markers']['get'](_0x44fb2b))['filter'](_0x41907f=>_0x41907f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f6a53=>{for(const _0x782e12 of this['getMarkers']())_0x1f6a53['removeMarker'](_0x782e12);}),this['_markerNames']['clear']();}['removeMarker'](_0xbb1212){this['_model']['change'](_0x58c0af=>{_0x58c0af['removeMarker'](_0xbb1212);}),this['_markerNames']['delete'](_0xbb1212);}['addRange'](_0x502608){const _0x35f93a='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+Suggestion['getMultiRangeId']();this['addMarkerName'](_0x35f93a),this['_model']['change'](_0x16e691=>{_0x16e691['addMarker'](_0x35f93a,{'range':_0x502608,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x46a882){for(const _0x27ac53 of this['getRanges']())if(_0x27ac53['isIntersecting'](_0x46a882))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x498034=>_0x498034['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x19ce98,_0x5c6d25)=>[..._0x19ce98,..._0x5c6d25['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x436081=this['getRanges']();if(0x1!=_0x436081['length'])return null;const _0x3aaef2=_0x436081[0x0],_0x379b83=_0x3aaef2['start']['nodeAfter'],_0x10c067=_0x3aaef2['end']['nodeBefore'];return _0x379b83 instanceof it?_0x379b83!=_0x10c067?null:_0x379b83: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 _0x3e2276=[];let _0xdabc6a=this['head'];for(;_0xdabc6a;)_0x3e2276['push'](_0xdabc6a),_0xdabc6a=_0xdabc6a['next'];return _0x3e2276;}['setAttribute'](_0x346cc6,_0xa50964){const _0x420706=at(this['attributes']);ut(_0x420706,_0x346cc6,_0xa50964),ct(_0x420706,this['attributes'])||(this['attributes']=_0x420706,this['_onAttributesChange'](_0x420706));}['removeAttribute'](_0xcbe8cd){const _0x3e3c70=at(this['attributes']);dt(_0x3e3c70,_0xcbe8cd),ct(_0x3e3c70,this['attributes'])||(this['attributes']=_0x3e3c70,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 _0x1c0f04()['substr'](0x1,0x5);}};function St(_0x860279,_0x43a3b1,_0x25a4ea){const _0x31c181=_0x860279['t'],t=_0x860279['t'];switch(_0x43a3b1){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',_0x25a4ea);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x25a4ea);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x25a4ea);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x25a4ea);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x25a4ea);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',_0x25a4ea);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x25a4ea);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',_0x25a4ea);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x25a4ea);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x25a4ea);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x25a4ea);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x25a4ea);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x25a4ea);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x25a4ea);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x25a4ea);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x25a4ea);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x25a4ea);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x25a4ea);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x25a4ea);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x25a4ea);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x25a4ea);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x25a4ea);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x25a4ea);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x25a4ea);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x25a4ea);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x25a4ea);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x25a4ea);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x25a4ea);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x25a4ea);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x25a4ea);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x25a4ea);case'FORMAT_SIDE_IMAGE':return t({'string':'side\x20image','id':'FORMAT_SIDE_IMAGE'});case'ELEMENT_RAW_HTML':return t({'string':'raw\x20HTML','id':'ELEMENT_RAW_HTML'});case'ELEMENT_HTML_TAG':return t({'string':'%1\x20element','plural':'%0\x20%1\x20elements','id':'ELEMENT_HTML_TAG'},_0x25a4ea);case'FORMAT_RAW_HTML_CONTENT':return t({'string':'raw\x20HTML\x20content','id':'FORMAT_RAW_HTML_CONTENT'});case'FORMAT_HTML_CLASS':return t({'string':'style','id':'FORMAT_HTML_CLASS'});case'FORMAT_HTML_ATTRIBUTE':return t({'string':'metadata','id':'FORMAT_HTML_ATTRIBUTE'});case'FORMAT_HTML_LIST_ITEM':return t({'string':'list\x20item\x20HTML','id':'FORMAT_HTML_LIST_ITEM'});case'FORMAT_HTML_BULLETED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_BULLETED_LIST'});case'FORMAT_HTML_NUMBERED_LIST':return t({'string':'list\x20HTML','id':'FORMAT_HTML_NUMBERED_LIST'});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'},_0x25a4ea);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x25a4ea);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x25a4ea);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x25a4ea);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x25a4ea);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_NUMBERED_LIST_ARABIC_INDIC':return t({'string':'numbered\x20list\x20(arabic-indic)','id':'ELEMENT_NUMBERED_LIST_ARABIC_INDIC'});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'},_0x25a4ea);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x25a4ea);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'},_0x25a4ea);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_FOOTER_ROW':return t({'string':'footer\x20row','id':'FORMAT_FOOTER_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_MEDIA_SIZE':return t({'string':'media\x20size','id':'FORMAT_MEDIA_SIZE'});case'FORMAT_MEDIA_ALIGN_LEFT':return t({'string':'align\x20left','id':'FORMAT_MEDIA_ALIGN_LEFT'});case'FORMAT_MEDIA_ALIGN_BLOCK_LEFT':return t({'string':'align\x20block\x20left','id':'FORMAT_MEDIA_ALIGN_BLOCK_LEFT'});case'FORMAT_MEDIA_ALIGN_CENTER':return t({'string':'align\x20center','id':'FORMAT_MEDIA_ALIGN_CENTER'});case'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT':return t({'string':'align\x20block\x20right','id':'FORMAT_MEDIA_ALIGN_BLOCK_RIGHT'});case'FORMAT_MEDIA_ALIGN_RIGHT':return t({'string':'align\x20right','id':'FORMAT_MEDIA_ALIGN_RIGHT'});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'FORMAT_TABLE_CELL_TYPE':return t({'string':'table\x20cell\x20type','id':'FORMAT_TABLE_CELL_TYPE'});case'FORMAT_FOOTNOTES_LIST_STYLE':return t({'string':'footnotes\x20list\x20style','id':'FORMAT_FOOTNOTES_LIST_STYLE'});case'FORMAT_FOOTNOTES_LIST_START':return t({'string':'footnotes\x20list\x20start','id':'FORMAT_FOOTNOTES_LIST_START'});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'},_0x25a4ea);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x25a4ea);case'ELEMENT_FOOTNOTE_REF':return t({'string':'footnote\x20reference','plural':'%0\x20footnote\x20references','id':'ELEMENT_FOOTNOTE_REF'},_0x25a4ea);case'ELEMENT_FOOTNOTE_DEFINITION':return t({'string':'footnote\x20definition','plural':'%0\x20footnote\x20definitions','id':'ELEMENT_FOOTNOTE_DEFINITION'},_0x25a4ea);case'ELEMENT_FOOTNOTES_DEFINITIONS_LIST':return t({'string':'footnotes\x20definitions\x20list','plural':'%0\x20footnotes\x20definitions','id':'ELEMENT_FOOTNOTES_DEFINITIONS_LIST'},_0x25a4ea);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x25a4ea);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'},_0x25a4ea);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x25a4ea);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'AI_SOURCE_PILL_LABEL':return t({'string':'AI-generated','id':'AI_SOURCE_PILL_LABEL'});case'AI_SOURCE_PILL_TOOLTIP':return t({'string':'This\x20suggestion\x20was\x20proposed\x20by\x20AI.','id':'AI_SOURCE_PILL_TOOLTIP'});case'AI_AUTHOR_DEFAULT_NAME':return t({'string':'AI\x20Assistant','id':'AI_AUTHOR_DEFAULT_NAME'});case'EXTERNAL_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x25a4ea);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x31c181({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x25a4ea);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x25a4ea);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'},_0x25a4ea);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'},_0x25a4ea);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'},_0x25a4ea);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x43a3b1;}}var Mt=class{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3b1d65,_0x2e6c0d){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3b1d65,this['_locale']=_0x2e6c0d;}['getDescriptions'](_0x281a37){const _0x98dceb=[],_0x44aa14=new Set(),_0x4a2d89=new Set();for(let _0x27e615=0x0;_0x27e615<_0x281a37['length'];_0x27e615++){const _0x3bc43f=_0x281a37[_0x27e615];if(!_0x3bc43f['isInContent'])continue;const _0x379c41=this['_handleCustomCallbackDescription'](_0x3bc43f);if(_0x379c41){if(null!=_0x3bc43f['subType']){if(_0x44aa14['has'](_0x3bc43f['subType']))continue;_0x44aa14['add'](_0x3bc43f['subType']);}_0x98dceb['push'](_0x379c41);}else{if('attribute'==_0x3bc43f['type']){const _0x29a484=_0x3bc43f['data']['key'];if(_0x4a2d89['has'](_0x29a484))continue;_0x4a2d89['add'](_0x3bc43f['data']['key']),'$elementName'==_0x29a484?this['_handleRenameSuggestionDescription'](_0x98dceb,_0x3bc43f):this['_handleAttributeSuggestionDescription'](_0x98dceb,_0x3bc43f);continue;}'insertion'!=_0x3bc43f['type']&&'deletion'!=_0x3bc43f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x98dceb,_0x3bc43f,_0x281a37[_0x27e615+0x1]);}}return this['_resolveDescriptionItems'](_0x98dceb);}['registerDescriptionCallback'](_0x2446e5){this['_customCallbacks']['push'](_0x2446e5);}['registerElementLabel'](_0x2f0dab,_0x5110c0,_0x10a859=_0x449a53['normal']){'function'==typeof _0x2f0dab?_0x2d03de(this['_itemLabelsCallbacks'],{'matchingCallback':_0x2f0dab,'label':_0x5110c0,'priority':_0x10a859}):this['_itemLabels']['set'](_0x2f0dab,_0x5110c0);}['registerAttributeLabel'](_0x3bdb17,_0x7f15fe){this['_attributeLabels']['set'](_0x3bdb17,_0x7f15fe);}['getItemLabel'](_0x94a783,_0xa39314=0x1){let _0x34e999;for(const _0x4a1d3e of this['_itemLabelsCallbacks'])if(_0x4a1d3e['matchingCallback'](_0x94a783)){_0x34e999=_0x4a1d3e['label'];break;}return _0x34e999||(_0x34e999=this['_itemLabels']['get'](_0x94a783['name'])),_0x34e999?_0x34e999(_0xa39314):0x1!==_0xa39314?_0xa39314+'\x20'+_0x94a783['name']+'s':''+_0x94a783['name'];}['_addDescriptionItems'](_0x2480c6,_0x4bf985){const _0x3ac5a0=_0x4bf985['getFirstRange']()['getWalker'](),_0xd29527='insertion'==_0x4bf985['type']?'add':'remove';for(const _0x3af41a of _0x3ac5a0){const _0x204d53=_0x3af41a['item'],_0x2c953=_0x2480c6[_0x2480c6['length']-0x1];if(_0x204d53['is']('$textProxy'))_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),_0x2c953&&'text'==_0x2c953['type']?_0x2c953[_0xd29527]+=_0x204d53['data']:_0x2480c6['push']({'type':'text','add':'add'==_0xd29527?_0x204d53['data']:'','remove':'remove'==_0xd29527?_0x204d53['data']:''});else{if(this['_schema']['isObject'](_0x204d53)){const _0xb7fe57=_0x204d53;if(_0x2c953&&_0x2c953['type']['indexOf']('Container')>-0x1&&_0x2480c6['pop'](),'elementEnd'==_0x3af41a['type'])continue;_0x2c953&&_0x2c953['type']==_0xd29527+'Object'&&_0x2c953['element']['name']==_0xb7fe57['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'Object','element':_0xb7fe57,'quantity':0x1}),_0x3ac5a0['skip'](_0x543a51=>!('elementEnd'==_0x543a51['type']&&_0x543a51['item']==_0x204d53));}else{if(this['_schema']['checkChild'](_0x204d53,'$text')||_0x204d53['is']('element','softBreak')){const _0x23e7de=_0x204d53;if('add'==_0xd29527&&'elementStart'==_0x3af41a['type']||'remove'==_0xd29527&&'elementEnd'==_0x3af41a['type'])continue;if(_0x2c953&&-0x1==_0x2c953['type']['indexOf']('Container')){'text'==_0x2c953['type']&&(_0x2c953[_0xd29527]+='\x0a');continue;}let _0x3bbb3c;if(_0x3bbb3c='add'==_0xd29527?_0x23e7de['nextSibling']&&!this['_schema']['isObject'](_0x23e7de['nextSibling'])?_0x23e7de['nextSibling']:null:_0x23e7de['previousSibling']&&!this['_schema']['isObject'](_0x23e7de['previousSibling'])?_0x23e7de['previousSibling']:null,_0x23e7de['isEmpty']||_0x3bbb3c&&_0x3bbb3c['isEmpty']){const _0xb225b0=_0x3bbb3c&&_0x3bbb3c['isEmpty']?_0x3bbb3c:_0x23e7de;_0x2c953&&_0x2c953['type']==_0xd29527+'EmptyContainer'&&_0x2c953['element']['name']==_0xb225b0['name']?_0x2c953['quantity']++:_0x2480c6['push']({'type':_0xd29527+'EmptyContainer','element':_0xb225b0,'quantity':0x1});}else _0x2480c6['push']({'type':_0xd29527+'Container','element':_0x23e7de});}}}}}['_resolveDescriptionItems'](_0x48876f){const _0x17c3eb=this['_locale'],_0x1e4499=[],_0x3d72dc=[],_0x536541=[];for(const _0x3cac27 of _0x48876f)switch(_0x3cac27['type']){case'text':if(_0x3cac27['add']=_0x3cac27['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3cac27['remove']=_0x3cac27['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3cac27['add']&&''!=_0x3cac27['remove']){_0x1e4499['push']({'type':'replace','content':St(_0x17c3eb,'REPLACE_TEXT',['\x22'+_0x3cac27['remove']+'\x22','\x22'+_0x3cac27['add']+'\x22'])});continue;}if(null!=_0x3cac27['add']['match'](/^ +$/)){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['add']['length']))});continue;}if(null!=_0x3cac27['remove']['match'](/^ +$/)){_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',St(_0x17c3eb,'ELEMENT_SPACE',_0x3cac27['remove']['length']))});continue;}if(''!=_0x3cac27['add']){_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0','\x22'+_0x3cac27['add']+'\x22')});continue;}_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0','\x22'+_0x3cac27['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Insert:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Remove:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addContainer':_0x1e4499['push']({'type':'insertion','content':St(_0x17c3eb,'*Split:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'removeContainer':_0x1e4499['push']({'type':'deletion','content':St(_0x17c3eb,'*Merge:*\x20%0',this['getItemLabel'](_0x3cac27['element'],_0x3cac27['quantity']))});continue;case'addFormat':_0x3d72dc['push'](_0x3cac27['key']);continue;case'removeFormat':_0x536541['push'](_0x3cac27['key']);continue;default:_0x1e4499['push'](_0x3cac27);}if(_0x3d72dc['length']){const _0x469fab=_0x3d72dc['map'](_0x2f5da7=>this['_attributeLabels']['has'](_0x2f5da7)?this['_attributeLabels']['get'](_0x2f5da7):_0x2f5da7)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Set\x20format:*\x20%0',_0x469fab)});}if(_0x536541['length']){const _0x3412a6=_0x536541['map'](_0x55ecd5=>this['_attributeLabels']['has'](_0x55ecd5)?this['_attributeLabels']['get'](_0x55ecd5):_0x55ecd5)['join'](',\x20');_0x1e4499['push']({'type':'format','content':St(this['_locale'],'*Remove\x20format:*\x20%0',_0x3412a6)});}return _0x1e4499;}['_handleCustomCallbackDescription'](_0x34062e){for(const _0x569849 of this['_customCallbacks']){const _0x436287=_0x569849(_0x34062e);if(_0x436287&&'type'in _0x436287)return _0x436287;}}['_handleAttributeSuggestionDescription'](_0x1e9277,_0x347a09){const _0xa3d840=_0x347a09['data'],_0x15570b=void 0x0===_0xa3d840['newValue']?'removeFormat':'addFormat';_0x1e9277['push']({'type':_0x15570b,'key':_0xa3d840['key']});}['_handleRenameSuggestionDescription'](_0x544951,_0x695cf3){_0x544951['push']({'type':'format','content':St(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x695cf3['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xebc61b,_0x2984e5,_0x3d7729){if(this['_addDescriptionItems'](_0xebc61b,_0x2984e5),_0x3d7729&&_0x3d7729['getFirstRange']()&&!_0x2984e5['getFirstRange']()['end']['isEqual'](_0x3d7729['getFirstRange']()['start'])){const _0x4e3dd4=_0xebc61b[_0xebc61b['length']-0x1],_0x227af8='insertion'==_0x2984e5['type']?'add':'remove';_0x4e3dd4&&'text'==_0x4e3dd4['type']&&(_0x4e3dd4[_0x227af8]+='\x0a');}}},Ot=class extends _0x449cd5{['afterInit'](){const _0x381337=this['editor'],_0x59659f=_0x381337['plugins']['get']('TrackChangesEditing');_0x381337['commands']['get']('showAIAssistant')&&_0x59659f['enableCommand']('showAIAssistant');}},wt=class extends _0x449cd5{['afterInit'](){const _0x4b6e5c=this['editor'],_0x356aad=_0x4b6e5c['plugins']['get']('TrackChangesEditing');_0x4b6e5c['commands']['get']('toggleAi')&&_0x356aad['enableCommand']('toggleAi');}},Ft=class extends _0x449cd5{['afterInit'](){const _0x348450=this['editor'],_0xf02f87=_0x348450['plugins']['get']('TrackChangesEditing');_0x348450['commands']['get']('aiQuickAction')&&_0xf02f87['enableCommand']('aiQuickAction');}},Bt=class extends _0x449cd5{['afterInit'](){const _0xd978d8=this['editor'],_0x1778aa=_0xd978d8['locale'];if(!_0xd978d8['plugins']['has']('AlignmentEditing'))return;const _0x47142c=_0xd978d8['plugins']['get']('TrackChangesEditing');_0x47142c['enableDefaultAttributesIntegration']('alignment'),_0x47142c['descriptionFactory']['registerAttributeLabel']('alignment',St(_0x1778aa,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xbded7d=this['editor'],_0x5077a4=_0xbded7d['locale'];_0xbded7d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24709e=>{if('formatBlock'!=_0x24709e['type'])return;const {data:_0x13672b}=_0x24709e;if(_0x13672b&&'alignment'==_0x13672b['commandName']){const _0x452610=_0x13672b['commandParams'][0x0]['value'];return{'type':'format','content':St(_0x5077a4,'*Format:*\x20%0',function(_0x43e82b){switch(_0x43e82b){case'left':return St(_0x5077a4,'FORMAT_ALIGN_TO_LEFT');case'right':return St(_0x5077a4,'FORMAT_ALIGN_TO_RIGHT');case'center':return St(_0x5077a4,'FORMAT_ALIGN_TO_CENTER');case'justify':return St(_0x5077a4,'FORMAT_JUSTIFY_TEXT');}}(_0x452610))};}});}};const vt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];var Dt=class extends _0x449cd5{['afterInit'](){const _0x46036d=this['editor'],_0xbab89=_0x46036d['plugins']['get']('TrackChangesEditing'),_0x378b27=_0x46036d['locale'];for(const _0x172ca9 of vt){if(!_0x46036d['plugins']['has'](_0x172ca9))continue;const _0xa02c78=_0x172ca9['slice'](0x0,-0x7)['toLowerCase'](),_0x5432f3='FORMAT_'+_0xa02c78['toUpperCase']();_0xbab89['enableDefaultAttributesIntegration'](_0xa02c78),_0xbab89['descriptionFactory']['registerAttributeLabel'](_0xa02c78,St(_0x378b27,_0x5432f3));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5dfaf7=this['editor'],_0x3c2318=_0x5dfaf7['locale'],_0x4676e5=_0x5dfaf7['plugins']['get']('TrackChangesEditing');function _0x3ca264(_0xc8ec42,_0x1cd273){_0x4676e5['descriptionFactory']['registerDescriptionCallback'](_0x3843d4=>{if('formatInline'!=_0x3843d4['type'])return;const {data:_0x373c28}=_0x3843d4;return _0x373c28&&_0x373c28['commandName']===_0xc8ec42?_0x373c28['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x3c2318,'*Format:*\x20%0',_0x1cd273)}:{'type':'format','content':St(_0x3c2318,'*Remove\x20format:*\x20%0',_0x1cd273)}:void 0x0;});}_0x3ca264('bold',St(_0x3c2318,'FORMAT_BOLD')),_0x3ca264('italic',St(_0x3c2318,'FORMAT_ITALIC')),_0x3ca264('underline',St(_0x3c2318,'FORMAT_UNDERLINE')),_0x3ca264('code',St(_0x3c2318,'FORMAT_CODE')),_0x3ca264('strikethrough',St(_0x3c2318,'FORMAT_STRIKETHROUGH')),_0x3ca264('subscript',St(_0x3c2318,'FORMAT_SUBSCRIPT')),_0x3ca264('superscript',St(_0x3c2318,'FORMAT_SUPERSCRIPT'));}},Ut=class extends _0x449cd5{['afterInit'](){const _0x58329c=this['editor'],_0x48e5da=_0x58329c['locale'];if(!_0x58329c['plugins']['has']('BlockQuoteEditing'))return;const _0x1ac582=_0x58329c['plugins']['get']('TrackChangesEditing'),_0x47c8c9=this['editor']['commands']['get']('blockQuote');_0x1ac582['enableCommand']('blockQuote',(_0x4aa77d,_0x2864fa={})=>{const _0x5021be=this['editor']['model']['document']['selection'],_0x25c731=_0x2864fa&&void 0x0!==_0x2864fa['forceValue']?_0x2864fa['forceValue']:!_0x47c8c9['value'];let _0x4bad52=[];_0x4bad52=At(_0x25c731?Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x61ed8b=>Pt(_0x61ed8b)||function(_0x2fe52a,_0x2a7a03){const _0x4cf0b3=_0x2a7a03['createContext'](_0x2fe52a['parent']);return!!_0x2a7a03['checkChild'](_0x4cf0b3,'blockQuote')&&!!_0x2a7a03['checkChild'](_0x4cf0b3['push']('blockQuote'),_0x2fe52a);}(_0x61ed8b,this['editor']['model']['schema'])):Array['from'](_0x5021be['getSelectedBlocks']())['filter'](_0x1b6e36=>Pt(_0x1b6e36)),_0x58329c['model']),_0x58329c['model']['change'](()=>{for(const _0x41064a of _0x4bad52)_0x1ac582['markBlockFormat'](_0x41064a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x25c731}]});});}),_0x1ac582['descriptionFactory']['registerDescriptionCallback'](_0x1fff54=>{const {data:_0x1e18b2}=_0x1fff54;if(_0x1e18b2&&'blockQuote'==_0x1e18b2['commandName']){const _0x1559f3=St(_0x48e5da,'ELEMENT_BLOCK_QUOTE');return _0x1e18b2['commandParams'][0x0]['forceValue']?{'type':'format','content':St(_0x48e5da,'*Set\x20format:*\x20%0',_0x1559f3)}:{'type':'format','content':St(_0x48e5da,'*Remove\x20format:*\x20%0',_0x1559f3)};}});}};function Pt(_0x57e37c){return'blockQuote'==_0x57e37c['parent']['name'];}var xt=class extends _0x449cd5{['afterInit'](){const _0x5a3fac=this['editor'],_0x307871=_0x5a3fac['locale'],_0x497b4c=_0x5a3fac['plugins']['get']('TrackChangesEditing');_0x5a3fac['plugins']['has']('BookmarkEditing')&&(_0x497b4c['enableCommand']('insertBookmark'),_0x497b4c['enableDefaultAttributesIntegration']('updateBookmark'),_0x497b4c['descriptionFactory']['registerDescriptionCallback'](_0x3bb9db=>{if('insertion'!=_0x3bb9db['type']&&'deletion'!=_0x3bb9db['type']&&'attribute'!=_0x3bb9db['type'])return;const _0x248e81=_0x3bb9db['getContainedElement']();if(null==_0x248e81)return;if(!_0x248e81['is']('element','bookmark'))return;const _0x3d9f09=_0x248e81['getAttribute']('bookmarkId');if('insertion'==_0x3bb9db['type'])return{'type':'insertion','content':St(_0x307871,'*Insert:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3bb9db['type'])return{'type':'deletion','content':St(_0x307871,'*Remove:*\x20%0','\x22'+_0x3d9f09+'\x22\x20'+St(_0x307871,'ELEMENT_BOOKMARK'))};const {data:_0x36b73a}=_0x3bb9db;return _0x36b73a&&'bookmarkId'==_0x36b73a['key']?{'type':'format','content':St(_0x307871,'*Set\x20bookmark:*\x20%0','\x22'+_0x36b73a['newValue']+'\x22')}:void 0x0;}));}},Gt=class extends _0x449cd5{['afterInit'](){const _0x41fcd3=this['editor'];_0x41fcd3['plugins']['has']('CaseChange')&&(_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x41fcd3['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}},Ht=class extends _0x449cd5{['afterInit'](){const _0x19419f=this['editor'];_0x19419f['commands']['get']('ckbox')&&_0x19419f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}},$t=class extends _0x449cd5{['afterInit'](){const _0x4a5835=this['editor'];if(!_0x4a5835['plugins']['has']('CodeBlock'))return;const _0x30eee5=_0x4a5835['plugins']['get']('TrackChangesEditing'),_0x5dda31=_0x4a5835['locale'],_0x19c2ec=_0x4a5835['config']['get']('codeBlock')['languages'],_0x3bc206=_0x4a5835['commands']['get']('codeBlock');_0x30eee5['enableCommand']('indentCodeBlock'),_0x30eee5['enableCommand']('outdentCodeBlock'),_0x30eee5['enableCommand']('codeBlock',(_0x47bb63,_0x88492d={})=>{const _0x4f12b7=_0x4a5835['model'],_0x3e252a=_0x4a5835['model']['document']['selection'],_0x4d1afb=_0x88492d&&void 0x0!==_0x88492d['forceValue']?_0x88492d['forceValue']:!_0x3bc206['value'];let _0x3ce6ae;_0x88492d['language']||(_0x88492d['language']=_0x19c2ec[0x0]['language']),_0x3ce6ae=_0x4d1afb?Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x1787f5=>{return Vt(_0x1787f5)||(_0x52d825=_0x1787f5,_0x2cae1e=_0x4f12b7['schema'],!_0x52d825['is']('rootElement')&&!_0x2cae1e['isLimit'](_0x52d825)&&_0x2cae1e['checkChild'](_0x52d825['parent'],'codeBlock'));var _0x52d825,_0x2cae1e;}):Array['from'](_0x3e252a['getSelectedBlocks']())['filter'](_0x2e36cd=>Vt(_0x2e36cd));const _0x55e9d7=At(_0x3ce6ae,_0x4f12b7);_0x4f12b7['c