@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250706.0 → 0.0.0-nightly-20250707.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x204144,Plugin as _0x3befcd,PendingActions as _0xc073f7}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x30c4a5,ObservableMixin as _0x94f0a0,uid as _0x561a0d,priorities as _0xa538e4,insertToPriorityArray as _0x153d76,toArray as _0x587b9c,logWarning as _0xe9fa06,getEnvKeystrokeText as _0xc7afd0,FocusTracker as _0x4d52a4,KeystrokeHandler as _0x29b2c8,Collection as _0x45fe12}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1f2b93,IconCancel as _0x22fb32,IconTrackChanges as _0x265759}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4c3568,View as _0x217288,ViewCollection as _0x521e48,FocusCycler as _0x196fc6,UIModel as _0x323543,createDropdown as _0x47acf8,SplitButtonView as _0x1de016,addListToDropdown as _0x45cf8c,MenuBarMenuView as _0x6521e7,MenuBarMenuListView as _0x49f55c,ListSeparatorView as _0x3b83ac,MenuBarMenuListItemView as _0x2066f7,MenuBarMenuListItemButtonView as _0x116058,BodyCollection as _0x2e760d,Dialog as _0x5295ad}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x25350d,hashObject as _0x4aff99,surroundingMarkersDetector as _0x46e100,FOCUS_ANNOTATION_KEYSTROKE as _0x2ae170,AriaDescriptionView as _0x5e56ee,setupThreadKeyboardNavigation as _0x46a512,trimHtml as _0x4e090c,UserView as _0x151c35,LateFocusButtonView as _0x1f305c,getDateTimeFormatter as _0x130263,getAllMarkersDomElementsSorted as _0x367fb9,sanitizeEditorConfig as _0x4bd6ab}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x1080a1,ModelLiveRange as _0x39c36c,ModelLivePosition as _0x221699,ViewDowncastWriter as _0x3c06c6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x309566,toWidget as _0x51d3b9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4f8191,set as _0x464870,isEqual as _0x680d74,unset as _0x8f3943,omit as Ut}from'es-toolkit/compat';import{Delete as _0x4e04c1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x25a791}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x5b8178}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x204144{['_enabledCommands'];constructor(_0x54d7a8,_0xb8681f){super(_0x54d7a8),this['_enabledCommands']=_0xb8681f,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 _0x217668 of this['editor']['commands']['commands']())_0x217668['affectsData']&&!this['_enabledCommands']['has'](_0x217668)&&_0x217668['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4353e4 of this['editor']['commands']['commands']())_0x4353e4['affectsData']&&!this['_enabledCommands']['has'](_0x4353e4)&&_0x4353e4['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x204144{['_suggestions'];constructor(_0x3b80c9,_0x3d80e8){super(_0x3b80c9),this['_suggestions']=_0x3d80e8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x90a778){const _0x27ff71=this['_suggestions']['get'](_0x90a778);if(!_0x27ff71)throw new _0x30c4a5('track-changes-accept-suggestion-not-found',this);const _0x1deba7=_0x27ff71['getRanges']();this['editor']['model']['canEditAt'](_0x1deba7)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x27ff71);}}class M extends _0x204144{['_suggestions'];constructor(_0x42ea63,_0x1d2b28){super(_0x42ea63),this['_suggestions']=_0x1d2b28,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2d51f5){const _0x3da303=this['_suggestions']['get'](_0x2d51f5);if(!_0x3da303)throw new _0x30c4a5('track-changes-discard-suggestion-not-found',this);const _0x529676=_0x3da303['getRanges']();this['editor']['model']['canEditAt'](_0x529676)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3da303);}}function ls(_0x5047dd,_0x5e9d8f){let _0x23d894='';return _0x23d894+=_0x5047dd['split']('*')['map']((_0x2ad41b,_0x14a870)=>_0x14a870%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x2ad41b)+'</span>':Yt(_0x2ad41b))['join'](''),_0x5e9d8f&&(_0x23d894+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5e9d8f['value']+'\x22\x20title=\x22'+_0x5e9d8f['title']+'\x22></span>'),_0x23d894;}function Yt(_0x2af012){const _0x4a5962=document['createElement']('span');return _0x4a5962['innerText']=_0x2af012,_0x4a5962['innerHTML'];}function ts(_0x4649f1){return _0x4649f1['sort']((_0x3e3140,_0x88335b)=>'attribute'===_0x3e3140['type']&&'attribute'!==_0x88335b['type']?-0x1:'attribute'!==_0x3e3140['type']&&'attribute'===_0x88335b['type']?0x1:'deletion'==_0x3e3140['type']&&'deletion'!=_0x88335b['type']?-0x1:'deletion'!=_0x3e3140['type']&&'deletion'==_0x88335b['type']?0x1:0x0);}function to(_0x518dcc,_0x21d861){let _0x366eb0,_0x2d57ff=0x0;const _0x1b2f63=[],_0x2fbbc3=_0x21d861['schema'];for(;_0x2d57ff<_0x518dcc['length'];){const _0x5d9a80=_0x518dcc[_0x2d57ff],_0x4a102b=_0x518dcc[_0x2d57ff+0x1];_0x366eb0||(_0x366eb0=_0x21d861['createPositionBefore'](_0x5d9a80)),Zt(_0x21d861,_0x5d9a80,_0x4a102b)||(_0x1b2f63['push'](_0x21d861['createRange'](_0x366eb0,_0x2fbbc3['isObject'](_0x5d9a80)?_0x21d861['createPositionAfter'](_0x5d9a80):_0x21d861['createPositionAt'](_0x5d9a80,'end'))),_0x366eb0=null),_0x2d57ff++;}return _0x1b2f63;}function Zt(_0x2fe7b2,_0x4f6640,_0x4e3c05){if(!_0x4e3c05)return!0x1;const _0x2d4331=_0x2fe7b2['createPositionAfter'](_0x4f6640),_0x4857bd=_0x2fe7b2['createPositionBefore'](_0x4e3c05);return _0x2d4331['isTouching'](_0x4857bd);}function rs(_0x3cead8,_0x470f51,_0x35409b){for(;_0x35409b['length'];){const _0x57b504=_0x35409b['splice'](0x0,0x64);_0x3cead8['change'](()=>{for(const _0x4bb773 of _0x57b504)_0x4bb773['isInContent']&&_0x470f51['execute'](_0x4bb773['id']);});}}class $ extends _0x204144{['_command'];['_suggestions'];constructor(_0x2ebf29,_0x388813,_0x1b191d){super(_0x2ebf29),this['_command']=_0x388813,this['_suggestions']=_0x1b191d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2f6c7b=Array['from'](this['_suggestions']['values']())['some'](_0x396b81=>_0x396b81['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x2f6c7b;}['execute'](){const _0x473fe0=ts(Array['from'](this['_suggestions']['values']()));for(const _0x3d13bf of _0x473fe0){const _0x2adcbd=_0x3d13bf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2adcbd))return;}rs(this['editor']['model'],this['_command'],_0x473fe0);}}class B extends _0x204144{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1f5632,_0x47590a,_0x30124c){super(_0x1f5632),this['_command']=_0x47590a,this['_suggestions']=_0x30124c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ab12b=this['editor']['model']['document']['selection'],_0x2e97fc=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xe0ef25,_0x542853){const _0x33e9e8=Array['from'](_0xe0ef25['getRanges']()),_0x3bfa08=new Set();for(const _0x322e28 of _0x542853)if(_0x322e28['isInContent']){for(const _0x599369 of _0x33e9e8)for(const _0x114989 of _0x322e28['getRanges']())(_0x599369['isIntersecting'](_0x114989)||_0xe0ef25['isCollapsed']&&!_0x322e28['isMultiRange']&&_0x322e28['next']&&_0x114989['end']['isTouching'](_0x599369['start']))&&_0x3bfa08['add'](_0x322e28);}return _0x3bfa08;}(_0x5ab12b,_0x2e97fc),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xf25592=ts(Array['from'](this['_selectedSuggestions']));for(const _0x461b05 of _0xf25592){const _0x853ea4=_0x461b05['getRanges']();if(!this['editor']['model']['canEditAt'](_0x853ea4))return;}rs(this['editor']['model'],this['_command'],_0xf25592);}}class T extends/* #__PURE__ -- @preserve */
24
- _0x94f0a0(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x35c6a5,_0x6c4e50){super(),this['id']=_0x6c4e50['id'],this['type']=_0x6c4e50['type'],this['subType']=_0x6c4e50['subType']||null,this['author']=_0x6c4e50['author'],this['creator']=_0x6c4e50['creator']||_0x6c4e50['author'],this['isExternal']=Boolean(_0x6c4e50['attributes']&&_0x6c4e50['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x6c4e50['originalSuggestionId']||null,this['_model']=_0x35c6a5,this['_onAccept']=_0x6c4e50['onAccept'],this['_onDiscard']=_0x6c4e50['onDiscard'],this['_onAttributesChange']=_0x6c4e50['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x6c4e50['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 _0x2a40bb=this;for(;_0x2a40bb['previous'];)_0x2a40bb=_0x2a40bb['previous'];return _0x2a40bb;}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'](_0x4d9568){this['_markerNames']['add'](_0x4d9568);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x230114=>this['_model']['markers']['get'](_0x230114))['filter'](_0x38696d=>_0x38696d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xdf82e0=>{for(const _0x429f15 of this['getMarkers']())_0xdf82e0['removeMarker'](_0x429f15);}),this['_markerNames']['clear']();}['removeMarker'](_0x517ad8){this['_model']['change'](_0x361560=>{_0x361560['removeMarker'](_0x517ad8);}),this['_markerNames']['delete'](_0x517ad8);}['addRange'](_0x57cf39){const _0x5ec8e1='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x5ec8e1),this['_model']['change'](_0x336bea=>{_0x336bea['addMarker'](_0x5ec8e1,{'range':_0x57cf39,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x5dadea){for(const _0x3ef422 of this['getRanges']())if(_0x3ef422['isIntersecting'](_0x5dadea))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4f9c2a=>_0x4f9c2a['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x46384f,_0x22fd01)=>[..._0x46384f,..._0x22fd01['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x5c9e04=this['getRanges']();if(0x1!=_0x5c9e04['length'])return null;const _0x5ba382=_0x5c9e04[0x0],_0x2fce5d=_0x5ba382['start']['nodeAfter'],_0x51f06c=_0x5ba382['end']['nodeBefore'];return _0x2fce5d instanceof _0x1080a1?_0x2fce5d!=_0x51f06c?null:_0x2fce5d: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 _0x5a24d3=[];let _0x3dfa0d=this['head'];for(;_0x3dfa0d;)_0x5a24d3['push'](_0x3dfa0d),_0x3dfa0d=_0x3dfa0d['next'];return _0x5a24d3;}['setAttribute'](_0x1c54f2,_0x30a4e4){const _0x113f95=_0x4f8191(this['attributes']);_0x464870(_0x113f95,_0x1c54f2,_0x30a4e4),_0x680d74(_0x113f95,this['attributes'])||(this['attributes']=_0x113f95,this['_onAttributesChange'](_0x113f95));}['removeAttribute'](_0x2348d6){const _0x55c305=_0x4f8191(this['attributes']);_0x8f3943(_0x55c305,_0x2348d6),_0x680d74(_0x55c305,this['attributes'])||(this['attributes']=_0x55c305,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 _0x561a0d()['substr'](0x1,0x5);}}function o(_0x22de1f,_0x199b41,_0x2b75dc){const _0x2a1e18=_0x22de1f['t'],t=_0x22de1f['t'];switch(_0x199b41){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',_0x2b75dc);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x2b75dc);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x2b75dc);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x2b75dc);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x2b75dc);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',_0x2b75dc);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x2b75dc);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',_0x2b75dc);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x2b75dc);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x2b75dc);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x2b75dc);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x2b75dc);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x2b75dc);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x2b75dc);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x2b75dc);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x2b75dc);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x2b75dc);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x2b75dc);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x2b75dc);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x2b75dc);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x2b75dc);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x2b75dc);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x2b75dc);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x2b75dc);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x2b75dc);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x2b75dc);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x2b75dc);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x2b75dc);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x2b75dc);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x2b75dc);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x2b75dc);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x2b75dc);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x2b75dc);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x2b75dc);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'},_0x2b75dc);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'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'},_0x2b75dc);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x2b75dc);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x2b75dc);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'},_0x2b75dc);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x2b75dc);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 _0x2a1e18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x2b75dc);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2a1e18({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x2b75dc);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x2b75dc);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'},_0x2b75dc);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'},_0x2b75dc);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'},_0x2b75dc);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x199b41;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2d5ce2,_0x4f621f){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2d5ce2,this['_locale']=_0x4f621f;}['getDescriptions'](_0x79a6c8){const _0xbca243=[],_0x313b92=new Set(),_0x113159=new Set();for(let _0x17f65a=0x0;_0x17f65a<_0x79a6c8['length'];_0x17f65a++){const _0x474981=_0x79a6c8[_0x17f65a];if(!_0x474981['isInContent'])continue;const _0x1ac488=this['_handleCustomCallbackDescription'](_0x474981);if(_0x1ac488){if(null!=_0x474981['subType']){if(_0x313b92['has'](_0x474981['subType']))continue;_0x313b92['add'](_0x474981['subType']);}_0xbca243['push'](_0x1ac488);}else{if('attribute'==_0x474981['type']){const _0x3e5302=_0x474981['data']['key'];if(_0x113159['has'](_0x3e5302))continue;_0x113159['add'](_0x474981['data']['key']),_0x3e5302==m?this['_handleRenameSuggestionDescription'](_0xbca243,_0x474981):this['_handleAttributeSuggestionDescription'](_0xbca243,_0x474981);continue;}'insertion'!=_0x474981['type']&&'deletion'!=_0x474981['type']||this['_handleInsertRemoveSuggestionDescription'](_0xbca243,_0x474981,_0x79a6c8[_0x17f65a+0x1]);}}return this['_resolveDescriptionItems'](_0xbca243);}['registerDescriptionCallback'](_0x33a013){this['_customCallbacks']['push'](_0x33a013);}['registerElementLabel'](_0x1a64bd,_0x212af9,_0x5cf99a=_0xa538e4['normal']){'function'==typeof _0x1a64bd?_0x153d76(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1a64bd,'label':_0x212af9,'priority':_0x5cf99a}):this['_itemLabels']['set'](_0x1a64bd,_0x212af9);}['registerAttributeLabel'](_0x10f91a,_0x3254f5){this['_attributeLabels']['set'](_0x10f91a,_0x3254f5);}['getItemLabel'](_0x5cae33,_0x42658e=0x1){let _0x1c8d9c;for(const _0x70bb1c of this['_itemLabelsCallbacks'])if(_0x70bb1c['matchingCallback'](_0x5cae33)){_0x1c8d9c=_0x70bb1c['label'];break;}return _0x1c8d9c||(_0x1c8d9c=this['_itemLabels']['get'](_0x5cae33['name'])),_0x1c8d9c?_0x1c8d9c(_0x42658e):0x1!==_0x42658e?_0x42658e+'\x20'+_0x5cae33['name']+'s':''+_0x5cae33['name'];}['_addDescriptionItems'](_0x1c60c3,_0x27ac9f){const _0x339b77=_0x27ac9f['getFirstRange']()['getWalker'](),_0x56323f='insertion'==_0x27ac9f['type']?'add':'remove';for(const _0x52c107 of _0x339b77){const _0x3e5f52=_0x52c107['item'],_0x17e1df=_0x1c60c3[_0x1c60c3['length']-0x1];if(_0x3e5f52['is']('$textProxy'))_0x17e1df&&_0x17e1df['type']['indexOf']('Container')>-0x1&&_0x1c60c3['pop'](),_0x17e1df&&'text'==_0x17e1df['type']?_0x17e1df[_0x56323f]+=_0x3e5f52['data']:_0x1c60c3['push']({'type':'text','add':'add'==_0x56323f?_0x3e5f52['data']:'','remove':'remove'==_0x56323f?_0x3e5f52['data']:''});else{if(this['_schema']['isObject'](_0x3e5f52)){const _0x52e1a3=_0x3e5f52;if(_0x17e1df&&_0x17e1df['type']['indexOf']('Container')>-0x1&&_0x1c60c3['pop'](),'elementEnd'==_0x52c107['type'])continue;_0x17e1df&&_0x17e1df['type']==_0x56323f+'Object'&&_0x17e1df['element']['name']==_0x52e1a3['name']?_0x17e1df['quantity']++:_0x1c60c3['push']({'type':_0x56323f+'Object','element':_0x52e1a3,'quantity':0x1}),_0x339b77['skip'](_0x5ad128=>!('elementEnd'==_0x5ad128['type']&&_0x5ad128['item']==_0x3e5f52));}else{if(this['_schema']['checkChild'](_0x3e5f52,'$text')||_0x3e5f52['is']('element','softBreak')){const _0x391c1e=_0x3e5f52;if('add'==_0x56323f&&'elementStart'==_0x52c107['type']||'remove'==_0x56323f&&'elementEnd'==_0x52c107['type'])continue;if(_0x17e1df&&-0x1==_0x17e1df['type']['indexOf']('Container')){'text'==_0x17e1df['type']&&(_0x17e1df[_0x56323f]+='\x0a');continue;}let _0x372cda;if(_0x372cda='add'==_0x56323f?_0x391c1e['nextSibling']&&!this['_schema']['isObject'](_0x391c1e['nextSibling'])?_0x391c1e['nextSibling']:null:_0x391c1e['previousSibling']&&!this['_schema']['isObject'](_0x391c1e['previousSibling'])?_0x391c1e['previousSibling']:null,_0x391c1e['isEmpty']||_0x372cda&&_0x372cda['isEmpty']){const _0x2466cf=_0x372cda&&_0x372cda['isEmpty']?_0x372cda:_0x391c1e;_0x17e1df&&_0x17e1df['type']==_0x56323f+'EmptyContainer'&&_0x17e1df['element']['name']==_0x2466cf['name']?_0x17e1df['quantity']++:_0x1c60c3['push']({'type':_0x56323f+'EmptyContainer','element':_0x2466cf,'quantity':0x1});}else _0x1c60c3['push']({'type':_0x56323f+'Container','element':_0x391c1e});}}}}}['_resolveDescriptionItems'](_0x39dd47){const _0x5ba995=this['_locale'],_0x541071=[],_0x6ce4d0=[],_0x16902a=[];for(const _0x3bfc57 of _0x39dd47)switch(_0x3bfc57['type']){case'text':if(_0x3bfc57['add']=_0x3bfc57['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3bfc57['remove']=_0x3bfc57['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3bfc57['add']&&''!=_0x3bfc57['remove']){_0x541071['push']({'type':'replace','content':o(_0x5ba995,'REPLACE_TEXT',['\x22'+_0x3bfc57['remove']+'\x22','\x22'+_0x3bfc57['add']+'\x22'])});continue;}if(null!=_0x3bfc57['add']['match'](/^ +$/)){_0x541071['push']({'type':'insertion','content':o(_0x5ba995,'*Insert:*\x20%0',o(_0x5ba995,'ELEMENT_SPACE',_0x3bfc57['add']['length']))});continue;}if(null!=_0x3bfc57['remove']['match'](/^ +$/)){_0x541071['push']({'type':'deletion','content':o(_0x5ba995,'*Remove:*\x20%0',o(_0x5ba995,'ELEMENT_SPACE',_0x3bfc57['remove']['length']))});continue;}if(''!=_0x3bfc57['add']){_0x541071['push']({'type':'insertion','content':o(_0x5ba995,'*Insert:*\x20%0','\x22'+_0x3bfc57['add']+'\x22')});continue;}_0x541071['push']({'type':'deletion','content':o(_0x5ba995,'*Remove:*\x20%0','\x22'+_0x3bfc57['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x541071['push']({'type':'insertion','content':o(_0x5ba995,'*Insert:*\x20%0',this['getItemLabel'](_0x3bfc57['element'],_0x3bfc57['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x541071['push']({'type':'deletion','content':o(_0x5ba995,'*Remove:*\x20%0',this['getItemLabel'](_0x3bfc57['element'],_0x3bfc57['quantity']))});continue;case'addContainer':_0x541071['push']({'type':'insertion','content':o(_0x5ba995,'*Split:*\x20%0',this['getItemLabel'](_0x3bfc57['element'],_0x3bfc57['quantity']))});continue;case'removeContainer':_0x541071['push']({'type':'deletion','content':o(_0x5ba995,'*Merge:*\x20%0',this['getItemLabel'](_0x3bfc57['element'],_0x3bfc57['quantity']))});continue;case'addFormat':_0x6ce4d0['push'](_0x3bfc57['key']);continue;case'removeFormat':_0x16902a['push'](_0x3bfc57['key']);continue;default:_0x541071['push'](_0x3bfc57);}if(_0x6ce4d0['length']){const _0x13104f=_0x6ce4d0['map'](_0x21680b=>this['_attributeLabels']['has'](_0x21680b)?this['_attributeLabels']['get'](_0x21680b):_0x21680b)['join'](',\x20');_0x541071['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x13104f)});}if(_0x16902a['length']){const _0x7fa7d0=_0x16902a['map'](_0x73cb18=>this['_attributeLabels']['has'](_0x73cb18)?this['_attributeLabels']['get'](_0x73cb18):_0x73cb18)['join'](',\x20');_0x541071['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x7fa7d0)});}return _0x541071;}['_handleCustomCallbackDescription'](_0x109e2c){for(const _0x2585e2 of this['_customCallbacks']){const _0x3e64af=_0x2585e2(_0x109e2c);if(_0x3e64af&&'type'in _0x3e64af)return _0x3e64af;}}['_handleAttributeSuggestionDescription'](_0x563713,_0x15d72c){const _0x52d5ef=_0x15d72c['data'],_0x3241cd=void 0x0===_0x52d5ef['newValue']?'removeFormat':'addFormat';_0x563713['push']({'type':_0x3241cd,'key':_0x52d5ef['key']});}['_handleRenameSuggestionDescription'](_0xee552b,_0x451fbb){_0xee552b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x451fbb['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3f0c81,_0x2d9040,_0x328365){if(this['_addDescriptionItems'](_0x3f0c81,_0x2d9040),_0x328365&&_0x328365['getFirstRange']()&&!_0x2d9040['getFirstRange']()['end']['isEqual'](_0x328365['getFirstRange']()['start'])){const _0x42f84d=_0x3f0c81[_0x3f0c81['length']-0x1],_0x336a5='insertion'==_0x2d9040['type']?'add':'remove';_0x42f84d&&'text'==_0x42f84d['type']&&(_0x42f84d[_0x336a5]+='\x0a');}}}class O extends _0x3befcd{['afterInit'](){const _0x1fb218=this['editor'],_0xa8a40b=_0x1fb218['plugins']['get']('TrackChangesEditing');_0x1fb218['commands']['get']('showAIAssistant')&&_0xa8a40b['enableCommand']('showAIAssistant');}}class E extends _0x3befcd{['afterInit'](){const _0x488852=this['editor'],_0x4f7c30=_0x488852['locale'];if(!_0x488852['plugins']['has']('AlignmentEditing'))return;const _0x1c0132=_0x488852['plugins']['get']('TrackChangesEditing');_0x1c0132['enableDefaultAttributesIntegration']('alignment'),_0x1c0132['registerBlockAttribute']('alignment'),_0x1c0132['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f7c30,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x289a23=this['editor'],_0x48f441=_0x289a23['locale'];_0x289a23['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b4887=>{if('formatBlock'!=_0x5b4887['type'])return;const {data:_0x5ce11a}=_0x5b4887;if(_0x5ce11a&&'alignment'==_0x5ce11a['commandName']){const _0x38dc20=_0x5ce11a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x48f441,'*Format:*\x20%0',function(_0x19b20f){switch(_0x19b20f){case'left':return o(_0x48f441,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x48f441,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x48f441,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x48f441,'FORMAT_JUSTIFY_TEXT');}}(_0x38dc20))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x3befcd{['afterInit'](){const _0x362cb3=this['editor'],_0x425261=_0x362cb3['plugins']['get']('TrackChangesEditing'),_0x67a314=_0x362cb3['locale'];for(const _0x14cbd7 of ti){if(!_0x362cb3['plugins']['has'](_0x14cbd7))continue;const _0x9896=_0x14cbd7['slice'](0x0,-0x7)['toLowerCase'](),_0x2d0e26='FORMAT_'+_0x9896['toUpperCase']();_0x425261['enableDefaultAttributesIntegration'](_0x9896),_0x425261['registerInlineAttribute'](_0x9896),_0x425261['descriptionFactory']['registerAttributeLabel'](_0x9896,o(_0x67a314,_0x2d0e26));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x283df2=this['editor'],_0x31fd49=_0x283df2['locale'],_0xe1e775=_0x283df2['plugins']['get']('TrackChangesEditing');function _0x5bd22a(_0xcd9aad,_0x5470f0){_0xe1e775['descriptionFactory']['registerDescriptionCallback'](_0x435f8a=>{if('formatInline'!=_0x435f8a['type'])return;const {data:_0x493658}=_0x435f8a;return _0x493658&&_0x493658['commandName']===_0xcd9aad?_0x493658['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x31fd49,'*Format:*\x20%0',_0x5470f0)}:{'type':'format','content':o(_0x31fd49,'*Remove\x20format:*\x20%0',_0x5470f0)}:void 0x0;});}_0x5bd22a('bold',o(_0x31fd49,'FORMAT_BOLD')),_0x5bd22a('italic',o(_0x31fd49,'FORMAT_ITALIC')),_0x5bd22a('underline',o(_0x31fd49,'FORMAT_UNDERLINE')),_0x5bd22a('code',o(_0x31fd49,'FORMAT_CODE')),_0x5bd22a('strikethrough',o(_0x31fd49,'FORMAT_STRIKETHROUGH')),_0x5bd22a('subscript',o(_0x31fd49,'FORMAT_SUBSCRIPT')),_0x5bd22a('superscript',o(_0x31fd49,'FORMAT_SUPERSCRIPT'));}}class U extends _0x3befcd{['afterInit'](){const _0x230102=this['editor'],_0x19aaf9=_0x230102['locale'];if(!_0x230102['plugins']['has']('BlockQuoteEditing'))return;const _0x2817a2=_0x230102['plugins']['get']('TrackChangesEditing'),_0x5e3c21=this['editor']['commands']['get']('blockQuote');_0x2817a2['enableCommand']('blockQuote',(_0x4d9ead,_0x2127bc={})=>{const _0x1ac277=this['editor']['model']['document']['selection'],_0x216ae3=_0x2127bc&&void 0x0!==_0x2127bc['forceValue']?_0x2127bc['forceValue']:!_0x5e3c21['value'];let _0x2f10b0=[];if(_0x216ae3){const _0xf51d48=Array['from'](_0x1ac277['getSelectedBlocks']())['filter'](_0x853149=>oo(_0x853149)||function(_0x4bdb7c,_0x12d545){const _0x4fd547=_0x12d545['checkChild'](_0x4bdb7c['parent'],'blockQuote'),_0xaed4e1=_0x12d545['checkChild'](['$root','blockQuote'],_0x4bdb7c);return _0x4fd547&&_0xaed4e1;}(_0x853149,this['editor']['model']['schema']));_0x2f10b0=to(_0xf51d48,_0x230102['model']);}else{const _0x75df7=Array['from'](_0x1ac277['getSelectedBlocks']())['filter'](_0x3d80f2=>oo(_0x3d80f2));_0x2f10b0=to(_0x75df7,_0x230102['model']);}_0x230102['model']['change'](()=>{for(const _0x13df83 of _0x2f10b0)_0x2817a2['markBlockFormat'](_0x13df83,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x216ae3}]});});}),_0x2817a2['descriptionFactory']['registerDescriptionCallback'](_0x1f1234=>{const {data:_0x5ed5c3}=_0x1f1234;if(_0x5ed5c3&&'blockQuote'==_0x5ed5c3['commandName']){const _0x1730f4=o(_0x19aaf9,'ELEMENT_BLOCK_QUOTE');return _0x5ed5c3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x19aaf9,'*Set\x20format:*\x20%0',_0x1730f4)}:{'type':'format','content':o(_0x19aaf9,'*Remove\x20format:*\x20%0',_0x1730f4)};}});}}function oo(_0xa8c9c1){return'blockQuote'==_0xa8c9c1['parent']['name'];}class V extends _0x3befcd{['afterInit'](){const _0xd747cc=this['editor'],_0xd88505=_0xd747cc['locale'],_0x5810d6=_0xd747cc['plugins']['get']('TrackChangesEditing');_0xd747cc['plugins']['has']('BookmarkEditing')&&(_0x5810d6['enableCommand']('insertBookmark'),_0x5810d6['enableDefaultAttributesIntegration']('updateBookmark'),_0x5810d6['registerBlockAttribute']('bookmarkId'),_0x5810d6['descriptionFactory']['registerDescriptionCallback'](_0x5dbf5d=>{if('insertion'!=_0x5dbf5d['type']&&'deletion'!=_0x5dbf5d['type']&&'attribute'!=_0x5dbf5d['type'])return;const _0x708687=_0x5dbf5d['getContainedElement']();if(null==_0x708687)return;if(!_0x708687['is']('element','bookmark'))return;const _0x5955d0=_0x708687['getAttribute']('bookmarkId');if('insertion'==_0x5dbf5d['type'])return{'type':'insertion','content':o(_0xd88505,'*Insert:*\x20%0','\x22'+_0x5955d0+'\x22\x20'+o(_0xd88505,'ELEMENT_BOOKMARK'))};if('deletion'==_0x5dbf5d['type'])return{'type':'deletion','content':o(_0xd88505,'*Remove:*\x20%0','\x22'+_0x5955d0+'\x22\x20'+o(_0xd88505,'ELEMENT_BOOKMARK'))};const {data:_0xfeefc}=_0x5dbf5d;if(!_0xfeefc||'bookmarkId'!=_0xfeefc['key'])return;return{'type':'format','content':o(_0xd88505,'*Set\x20bookmark:*\x20%0','\x22'+_0xfeefc['newValue']+'\x22')};}));}}class F extends _0x3befcd{['afterInit'](){const _0x3c7649=this['editor'];_0x3c7649['plugins']['has']('CaseChange')&&(_0x3c7649['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3c7649['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3c7649['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x3befcd{['afterInit'](){const _0x57bc8d=this['editor'];_0x57bc8d['commands']['get']('ckbox')&&_0x57bc8d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x3befcd{['afterInit'](){const _0x28ae5e=this['editor'];if(!_0x28ae5e['plugins']['has']('CodeBlock'))return;const _0x7d08ac=_0x28ae5e['plugins']['get']('TrackChangesEditing'),_0x337621=_0x28ae5e['locale'],_0x37e47f=_0x28ae5e['config']['get']('codeBlock')['languages'],_0x102b37=_0x28ae5e['commands']['get']('codeBlock');_0x7d08ac['enableCommand']('indentCodeBlock'),_0x7d08ac['enableCommand']('outdentCodeBlock'),_0x7d08ac['enableCommand']('codeBlock',(_0x643ca2,_0x1df357={})=>{const _0x79a6cb=_0x28ae5e['model'],_0x3982a5=_0x28ae5e['model']['document']['selection'],_0x112234=_0x1df357&&void 0x0!==_0x1df357['forceValue']?_0x1df357['forceValue']:!_0x102b37['value'];let _0x5f7846;_0x1df357['language']||(_0x1df357['language']=_0x37e47f[0x0]['language']),_0x5f7846=_0x112234?Array['from'](_0x3982a5['getSelectedBlocks']())['filter'](_0x169d22=>co(_0x169d22)||function(_0x5043f8,_0x373562){if(_0x5043f8['is']('rootElement')||_0x373562['isLimit'](_0x5043f8))return!0x1;return _0x373562['checkChild'](_0x5043f8['parent'],'codeBlock');}(_0x169d22,_0x79a6cb['schema'])):Array['from'](_0x3982a5['getSelectedBlocks']())['filter'](_0x55d57b=>co(_0x55d57b));const _0x2a1704=to(_0x5f7846,_0x79a6cb);_0x79a6cb['change'](()=>{for(const _0x2af77c of _0x2a1704)_0x7d08ac['markBlockFormat'](_0x2af77c,{'commandName':'codeBlock','commandParams':[{..._0x1df357,'forceValue':_0x112234}],'formatGroupId':'blockName'});});}),(_0x7d08ac['descriptionFactory']['registerElementLabel']('codeBlock',_0x28f47b=>o(_0x337621,'ELEMENT_CODE_BLOCK',_0x28f47b)),_0x7d08ac['descriptionFactory']['registerDescriptionCallback'](_0x2efc9f=>{if('formatBlock'!=_0x2efc9f['type'])return;const _0x507937=_0x337621['t'],{data:_0x2a1741}=_0x2efc9f;if(!_0x2a1741||'codeBlock'!=_0x2a1741['commandName'])return;const _0x35249e=_0x2a1741['commandParams'][0x0]['language'],_0x2613d0=_0x507937(_0x37e47f['find'](_0x34b9a7=>_0x34b9a7['language']===_0x35249e)['label'])['toLowerCase']();return _0x2a1741['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x337621,'*Set\x20format:*\x20%0',o(_0x337621,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2613d0+')')}:{'type':'format','content':o(_0x337621,'*Remove\x20format:*\x20%0',o(_0x337621,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xcec8d0){return'codeBlock'==_0xcec8d0['name'];}class J extends _0x3befcd{['afterInit'](){const _0x44c5c2=this['editor'];if(!_0x44c5c2['plugins']['has']('CommentsEditing'))return;_0x44c5c2['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5eae53,_0x45d62a,_0x3b618c){const _0x123a4c=[];for(const _0x22df33 of _0x45d62a['getItems']())_0x22df33['hasAttribute'](_0x5eae53)&&_0x123a4c['push'](_0x3b618c['createRangeOn'](_0x22df33));return _0x123a4c;}function De(_0x387f86,_0x231f29,{showActiveMarker:_0x580f6c=!0x0}={}){const _0x23067f=_0x387f86['plugins']['get']('TrackChangesEditing');return(_0x4f241d,_0x51a2e1,_0x2800a1)=>{if(!_0x2800a1['consumable']['test'](_0x51a2e1['markerRange'],_0x4f241d['name']))return;const _0x22472f=_0x51a2e1['markerRange']['getWalker'](),_0x4dc37c=_0x51a2e1['markerRange']['start'],_0x3499fb=_0x387f86['model']['schema'];let _0x594d45=null,_0x38258a=null,_0x5162d6=!0x1,_0x3a46c6=!0x1;for(const _0x863bcc of _0x22472f){const _0x25fada=_0x863bcc['item'];_0x5162d6=_0x5162d6||_0x3499fb['isContent'](_0x25fada);const _0xaa8168=_0x2800a1['mapper']['toViewElement'](_0x25fada);if(_0xaa8168&&_0xaa8168['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x863bcc['type']&&(_0x3499fb['isBlock'](_0x25fada)&&!_0x3499fb['isLimit'](_0x25fada)&&(_0x25fada['nextSibling']||_0x4dc37c['isAtEnd']?_0x594d45&&_0x594d45['parent']==_0x25fada||(_0x594d45=_0x25fada,_0xc7461a(_0x863bcc['previousPosition']),_0x3a46c6=!0x0):_0x38258a=_0x38258a||_0x863bcc['previousPosition']));}function _0xc7461a(_0x1df94a){const {id:_0x1a5b42,authorId:_0x4c9c79}=_0x23067f['_splitMarkerName'](_0x51a2e1['markerName']),_0x73049a=_0x2800a1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x231f29,'data-suggestion':_0x1a5b42,'data-author-id':_0x4c9c79}),_0xa32be5=_0x2800a1['mapper']['toViewPosition'](_0x1df94a);_0x580f6c&&_0x23067f['activeMarkers']['includes'](_0x51a2e1['markerName'])&&_0x2800a1['writer']['addClass']('ck-suggestion-marker--active',_0x73049a),_0x2800a1['writer']['insert'](_0xa32be5,_0x73049a),_0x2800a1['mapper']['bindElementToMarker'](_0x73049a,_0x51a2e1['markerName']);}_0x5162d6||_0x3a46c6||!_0x38258a||_0xc7461a(_0x38258a);};}class K extends _0x3befcd{static get['requires'](){return[_0x4e04c1];}['init'](){const _0x171806=this['editor'],_0x266d86=_0x171806['plugins']['get']('TrackChangesEditing');_0x266d86['enableCommand']('delete');const _0xefbaf8=_0x171806['commands']['get']('deleteForward');_0x266d86['enableCommand']('deleteForward',(_0x32689e,_0x13fafb={})=>{const _0x4c0730=_0x171806['model']['createSelection'](_0x171806['model']['document']['selection']);_0x4c0730['isCollapsed']&&_0x171806['model']['modifySelection'](_0x4c0730,{'direction':'forward','unit':_0x13fafb['unit']});const _0x4f8fd3=_0x4c0730['getFirstRange'](),_0x4579e8=_0x39c36c['fromRange'](_0x4f8fd3);let _0x50eae9;_0x32689e(_0x13fafb),_0x50eae9='$graveyard'==_0x4579e8['root']['rootName']?_0x171806['model']['createRange'](_0x4f8fd3['start']):_0x171806['model']['createRange'](_0x4579e8['start'],_0x4579e8['end']),_0x4579e8['detach'](),_0x171806['model']['enqueueChange'](_0xefbaf8['buffer']['batch'],_0x43c4bf=>{_0xefbaf8['buffer']['lock'](),_0x43c4bf['setSelection'](_0x43c4bf['createRange'](_0x50eae9['end'])),_0xefbaf8['buffer']['unlock']();});}),_0x171806['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x171806,'merge'),{'priority':'high'}),_0x171806['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xea02a5,_0x436e6b,_0x3c644b)=>{_0x3c644b['options']['showSuggestionHighlights']&&De(_0x171806,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xea02a5,_0x436e6b,_0x3c644b);},{'priority':'high'}),_0x171806['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x28d288,_0x434840,_0x4982a3)=>{const _0x5bdecc=_0x4982a3['mapper']['markerNameToElements'](_0x434840['markerName']);if(_0x5bdecc){for(const _0xe4cb76 of _0x5bdecc)_0xe4cb76['is']('uiElement')&&(_0x4982a3['mapper']['unbindElementFromMarkerName'](_0xe4cb76,_0x434840['markerName']),_0x4982a3['writer']['remove'](_0xe4cb76));}},{'priority':'high'});}}class H extends _0x3befcd{['afterInit'](){const _0x5dc92b=this['editor'];if(!_0x5dc92b['plugins']['has']('ListEditing'))return;const _0x2d1008=_0x5dc92b['locale'],_0x53403d=_0x5dc92b['plugins']['get']('TrackChangesEditing'),_0x3a18a7=_0x5dc92b['plugins']['has']('TodoListEditing'),_0x9821a5=!!_0x5dc92b['config']['get']('list.multiBlock');function _0x31a7ee(_0x205b47){return{'type':'format','content':''+o(_0x2d1008,'*Set\x20format:*\x20%0',_0x205b47)};}function _0x3a5581(_0x3548e3){return{'type':'format','content':''+o(_0x2d1008,'*Remove\x20format:*\x20%0',_0x3548e3)};}_0x53403d['enableDefaultAttributesIntegration']('numberedList'),_0x53403d['enableDefaultAttributesIntegration']('bulletedList'),_0x53403d['enableDefaultAttributesIntegration']('customNumberedList'),_0x53403d['enableDefaultAttributesIntegration']('customBulletedList'),_0x53403d['enableDefaultAttributesIntegration']('indentList'),_0x53403d['enableDefaultAttributesIntegration']('outdentList'),_0x53403d['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x53403d['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x53403d['registerBlockAttribute']('listItemId'),_0x53403d['registerBlockAttribute']('listType'),_0x53403d['registerBlockAttribute']('listIndent'),_0x9821a5&&(_0x53403d['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x53403d['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3a18a7&&(_0x53403d['enableDefaultAttributesIntegration']('todoList'),_0x53403d['enableDefaultAttributesIntegration']('checkTodoList'),_0x53403d['registerBlockAttribute']('todoListChecked'),_0x53403d['descriptionFactory']['registerDescriptionCallback'](_0xaf49fb=>{const {data:_0x178bb3}=_0xaf49fb;if(_0x178bb3&&'todoListChecked'==_0x178bb3['key'])return{'type':'format','content':_0x178bb3['newValue']?o(_0x2d1008,'*Check\x20item*'):o(_0x2d1008,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e465f=>{if(_0x3e465f['batch']['isUndo'])return!0x1;let _0x332ad3=!0x1;const _0xc92d31=_0x53403d['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5a056f=>'todoListChecked'===_0x53403d['_getAttributeKey'](_0x5a056f));for(const _0x59f126 of _0xc92d31){'todo'!=_0x59f126['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x53403d['_findSuggestions'](_0x59f126['getFirstRange'](),'attribute')['find'](_0x134f87=>'listType'===_0x53403d['_getAttributeKey'](_0x134f87['suggestion']))||(_0x3e465f['removeMarker'](_0x59f126['getFirstMarker']()),_0x332ad3=!0x0));}return _0x332ad3;})),_0x53403d['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2d1008,'FORMAT_INDENT'));const _0x19a12a={'type':'format','content':''};_0x53403d['descriptionFactory']['registerDescriptionCallback'](_0x3539e0=>{const {data:_0x196746}=_0x3539e0;if(!_0x196746||'listType'!=_0x196746['key'])return;let _0x373ff9=_0x3539e0['head'];for(;_0x373ff9;){if(_0x373ff9['data']&&(('listStyle'==_0x373ff9['data']['key']||'listMarkerStyle'==_0x373ff9['data']['key'])&&(_0x373ff9['data']['newValue']&&'default'!=_0x373ff9['data']['newValue']||'default'!=_0x373ff9['data']['oldValue']&&!_0x196746['newValue'])||!_0x9821a5&&_0x373ff9['data']['key']==m))return _0x19a12a;_0x373ff9=_0x373ff9['next'];}if(null==_0x196746['newValue'])switch(_0x196746['oldValue']){case'bulleted':return _0x3a5581(o(_0x2d1008,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a5581(o(_0x2d1008,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a5581(o(_0x2d1008,'ELEMENT_TODO_LIST'));}switch(_0x196746['newValue']){case'bulleted':return _0x31a7ee(o(_0x2d1008,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x31a7ee(o(_0x2d1008,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x31a7ee(o(_0x2d1008,'ELEMENT_TODO_LIST'));}}),_0x53403d['descriptionFactory']['registerDescriptionCallback'](_0x1fe4f0=>{const {data:_0x3e903a}=_0x1fe4f0;if(_0x3e903a&&'listIndent'==_0x3e903a['key'])return null==_0x3e903a['newValue']||null==_0x3e903a['oldValue']&&0x0==_0x3e903a['newValue']?_0x19a12a:void 0x0;}),_0x53403d['descriptionFactory']['registerDescriptionCallback'](_0x2e68cb=>{if('attribute'!=_0x2e68cb['type'])return;const {data:_0x4dac9d}=_0x2e68cb;if(!_0x4dac9d||'listItemId'!=_0x4dac9d['key'])return;const _0x1a5590=Te(_0x2e68cb);return'newValue'==_0x1a5590?{'type':'format','content':o(_0x2d1008,'*Merge:*\x20list\x20item')}:'oldValue'==_0x1a5590?{'type':'format','content':o(_0x2d1008,'*Split:*\x20list\x20item')}:_0x19a12a;}),_0x5dc92b['model']['document']['registerPostFixer'](_0x1e732d=>this['listItemIdFixer'](_0x1e732d)),_0x5dc92b['model']['document']['registerPostFixer'](_0x5f2366=>this['noTrackChangesFixer'](_0x5f2366)),_0x5dc92b['model']['document']['on']('change:data',(_0x2cc5ae,_0x410c8e)=>{if(_0x410c8e['isUndo']||!_0x410c8e['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x13235a){if(_0x13235a['batch']['isUndo']||!_0x13235a['batch']['isLocal'])return!0x1;let _0xa5b2d1=!0x1;const _0x5a42d4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4297fe=>_0x4297fe['data']&&'listItemId'==_0x4297fe['data']['key'])['filter'](_0x53c1ec=>_0x53c1ec['data']['newValue']&&_0x53c1ec['data']['oldValue']);for(const _0x4b4233 of _0x5a42d4)Te(_0x4b4233)||(_0x13235a['removeMarker'](_0x4b4233['getFirstMarker']()),_0xa5b2d1=!0x0);return _0xa5b2d1;}['noTrackChangesFixer'](_0xe3c22f){if(_0xe3c22f['batch']['isUndo']||!_0xe3c22f['batch']['isLocal'])return!0x1;const _0x5c1854=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5c1854['trackChangesCommand']['value'])return!0x1;let _0x3e166d=!0x1;const _0x1b028b=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x57fc72=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x577f0d=>'attribute'==_0x577f0d['type'])['filter'](_0x456607=>_0x1b028b['includes'](_0x456607['attributeKey']));if(0x0==_0x57fc72['length'])return _0x3e166d;for(const _0xde6191 of _0x57fc72){const _0x4b6d9b=_0x5c1854['_findSuggestions'](_0xde6191['range'],'attribute')['filter'](_0x473bd9=>!_0x473bd9['meta']['isNextTo'])['map'](_0x73c153=>_0x73c153['suggestion'])['filter'](_0x470a20=>{const _0x5c4753=_0x5c1854['_getAttributeKey'](_0x470a20);return _0x1b028b['includes'](_0x5c4753);});if(_0x4b6d9b['length']){for(const _0x1f4283 of _0x4b6d9b)_0xe3c22f['removeMarker'](_0x1f4283['getFirstMarker']());_0x3e166d=!0x0;}}return _0x3e166d;}['assureChains'](){const _0x274e05=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2c2642=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5e6022;const _0x12e8f7=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x25c168=>{if(_0x25c168['data']['oldRange']||!_0x25c168['data']['newRange'])return null;if(!_0x25c168['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x157471}=_0x274e05['_splitMarkerName'](_0x25c168['name']);if(!_0x274e05['hasSuggestion'](_0x157471))return null;const _0x3cfe35=_0x274e05['getSuggestion'](_0x157471);return _0x2c2642['includes'](_0x3cfe35['data']['key']);})['map'](_0x427c27=>{const {id:_0x1b052c}=_0x274e05['_splitMarkerName'](_0x427c27['name']),_0x25529e=_0x274e05['getSuggestion'](_0x1b052c);return _0x5e6022=_0x25529e['attributes']['groupId'],_0x25529e['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12e8f7['size'])return;const _0x4ff98c=_0x274e05['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27c534=>'attribute'==_0x27c534['type']&&_0x27c534['data']&&_0x2c2642['includes'](_0x27c534['data']['key'])&&_0x27c534['attributes']['groupId']!=_0x5e6022)['map'](_0x517254=>({'listItem':_0x517254['getFirstRange']()['start']['nodeAfter'],'groupId':_0x517254['attributes']['groupId']})),_0x48c3d2=new Set();for(const {groupId:_0x4212f3,listItem:_0x808ac1}of _0x4ff98c)_0x12e8f7['has'](_0x808ac1)&&_0x48c3d2['add'](_0x4212f3);for(const _0x436c0e of _0x274e05['getSuggestions']())_0x48c3d2['has'](_0x436c0e['attributes']['groupId'])&&_0x436c0e['setAttribute']('groupId',_0x5e6022);}['_supportLegacySuggestions'](){const _0x290ee4=this['editor'],_0x3cdaba=_0x290ee4['locale'],_0x352e73=_0x290ee4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x352e73['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x27ffbb,_0x5b52fc){const _0x178c21=[];for(let _0x3e20ab of _0x27ffbb)_0x3e20ab['start']['nodeAfter']===_0x3e20ab['end']['parent']&&(_0x3e20ab=_0x290ee4['model']['createRange'](_0x290ee4['model']['createPositionAt'](_0x3e20ab['start']['nodeAfter'],0x0))),_0x178c21['push'](_0x3e20ab);_0x290ee4['model']['change'](_0x1168b6=>{const _0x2ae8a7=_0x290ee4['model']['document']['selection'],_0x53ec09=Array['from'](_0x2ae8a7['getRanges']())['map'](_0x26021d=>_0x39c36c['fromRange'](_0x26021d));_0x1168b6['setSelection'](_0x178c21),_0x290ee4['commands']['get'](_0x5b52fc['commandName'])['refresh'](),_0x5b52fc['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x290ee4['execute'](_0x5b52fc['commandName'],..._0x5b52fc['commandParams']),_0x1168b6['setSelection'](_0x53ec09);for(const _0xe5bb66 of _0x53ec09)_0xe5bb66['detach']();});}),_0x352e73['descriptionFactory']['registerElementLabel'](function(_0x16b608){const _0x5401d8=!_0x290ee4['model']['schema']['isObject'](_0x16b608),_0x307ebd=_0x16b608['previousSibling'],_0x18f0a3=_0x16b608['nextSibling'],_0x483e28=_0x16b608['getAttribute']('listItemId'),_0x491203=!_0x307ebd||_0x307ebd['getAttribute']('listItemId')!==_0x483e28,_0x83d4ac=!_0x18f0a3||_0x18f0a3['getAttribute']('listItemId')!==_0x483e28;return _0x5401d8&&Boolean(_0x483e28)&&_0x491203&&_0x83d4ac;},_0x4675fb=>o(_0x3cdaba,'ELEMENT_LIST_ITEM',_0x4675fb));}['_registerLegacyDescription'](){const _0x344464=this['editor'],_0x311cf3=_0x344464['locale'];function _0x53a3b6(_0x5e290c){const _0x2cc232=_0x344464['commands']['get']('bulletedList')['value'],_0x5914cd=_0x344464['commands']['get']('numberedList')['value'];return'numberedList'===_0x5e290c?_0x2cc232:_0x5914cd;}_0x344464['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x21588d){if('formatBlock'!=_0x21588d['type'])return;const {data:_0x2e0ac7}=_0x21588d;if(!_0x2e0ac7)return;let _0x47de34,_0x25981a,_0x22ae25,_0x2dce75;switch(_0x2e0ac7['commandName']){case'bulletedList':_0x22ae25=_0x2e0ac7['commandParams'][0x0]['forceValue'],_0x2dce75=_0x53a3b6(_0x2e0ac7['commandName']),_0x47de34=_0x22ae25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dce75&&_0x344464['config']['get']('list.multiBlock')||(_0x47de34='*Change\x20to:*\x20%0'),_0x25981a={'type':'format','content':o(_0x311cf3,_0x47de34,o(_0x311cf3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x22ae25=_0x2e0ac7['commandParams'][0x0]['forceValue'],_0x2dce75=_0x53a3b6(_0x2e0ac7['commandName']),_0x47de34=_0x22ae25?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dce75&&_0x344464['config']['get']('list.multiBlock')||(_0x47de34='*Change\x20to:*\x20%0'),_0x25981a={'type':'format','content':o(_0x311cf3,_0x47de34,o(_0x311cf3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x47de34='*Indent:*\x20%0',_0x25981a={'type':'format','content':o(_0x311cf3,_0x47de34,o(_0x311cf3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x47de34=function(_0x1e1626){const _0x341c64=_0x1e1626['getFirstRange']();let _0xf342ba=_0x341c64['start']['nodeAfter'];for(;_0xf342ba&&_0x341c64['containsItem'](_0xf342ba);){if(_0xf342ba['getAttribute']('listIndent')>0x0)return!0x1;_0xf342ba=_0xf342ba['nextSibling'];}return!0x0;}(_0x21588d)?o(_0x311cf3,'*Format:*\x20remove\x20from\x20%0',o(_0x311cf3,function(_0x59dc3d){return'ELEMENT_'+_0x59dc3d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x21588d))):o(_0x311cf3,'*Outdent:*\x20%0',o(_0x311cf3,'ELEMENT_LIST_ITEM')),_0x25981a={'type':'format','content':_0x47de34};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x2e0ac7['multipleBlocks']&&(_0x47de34='*Merge:*\x20%0',_0x25981a={'type':'deletion','content':o(_0x311cf3,_0x47de34,o(_0x311cf3,'ELEMENT_LIST_ITEM'))});}return _0x25981a;});}}function Te(_0x4adb3a){let _0x2c4e0c=_0x4adb3a['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c4e0c;){const _0x46a81a=_0x2c4e0c['getAttribute']('listItemId');if(!_0x46a81a)return!0x1;if(_0x46a81a==_0x4adb3a['data']['newValue'])return'newValue';if(_0x46a81a==_0x4adb3a['data']['oldValue'])return'oldValue';_0x2c4e0c=_0x2c4e0c['previousSibling'];}return!0x1;}class q extends _0x3befcd{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x26e05b=this['editor']['config']['get']('list.properties'),_0x217cbc=this['editor']['plugins']['get']('TrackChangesEditing');_0x26e05b['styles']&&(_0x217cbc['enableDefaultAttributesIntegration']('listStyle'),_0x217cbc['registerBlockAttribute']('listStyle')),_0x26e05b['reversed']&&(_0x217cbc['enableDefaultAttributesIntegration']('listReversed'),_0x217cbc['registerBlockAttribute']('listReversed')),_0x26e05b['startIndex']&&(_0x217cbc['enableDefaultAttributesIntegration']('listStart'),_0x217cbc['registerBlockAttribute']('listStart'));const _0x3db749={'type':'format','content':''};_0x217cbc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1a3b77=this['editor']['locale'];_0x217cbc['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1a3b77,'FORMAT_LIST_REVERSED')),_0x217cbc['descriptionFactory']['registerDescriptionCallback'](_0x1860ac=>{const {data:_0x56666f}=_0x1860ac;if(_0x56666f&&'listReversed'==_0x56666f['key'])return null==_0x56666f['newValue']||0x0==_0x56666f['newValue']&&null==_0x56666f['oldValue']?_0x3db749:void 0x0;}),_0x217cbc['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1a3b77,'FORMAT_LIST_START')),_0x217cbc['descriptionFactory']['registerDescriptionCallback'](_0x872dc4=>{const {data:_0x2f9228}=_0x872dc4;if(_0x2f9228&&'listStart'==_0x2f9228['key'])return null==_0x2f9228['newValue']||0x1==_0x2f9228['newValue']&&null==_0x2f9228['oldValue']?_0x3db749:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1870fc=>{if(_0x1870fc['batch']['isUndo'])return!0x1;let _0x164458=!0x1;const _0x1779ba=_0x217cbc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xbdcf37=>{const _0x32a692=_0x217cbc['_getAttributeKey'](_0xbdcf37);return'listStart'==_0x32a692||'listReversed'==_0x32a692;});for(const _0x19e72b of _0x1779ba){const _0xfc1f7f=_0x19e72b['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xfc1f7f||'customNumbered'==_0xfc1f7f)continue;_0x217cbc['_findSuggestions'](_0x19e72b['getFirstRange'](),'attribute')['find'](_0x202b95=>'listType'==_0x217cbc['_getAttributeKey'](_0x202b95['suggestion']))||(_0x1870fc['removeMarker'](_0x19e72b['getFirstMarker']()),_0x164458=!0x0);}return _0x164458;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1dbfdb){const _0x14d802=this['editor']['locale'],{data:_0x3adc5f}=_0x1dbfdb,_0x5c51b1={'type':'format','content':''};if(!_0x3adc5f||'listStyle'!=_0x3adc5f['key'])return;if(!_0x3adc5f['oldValue'])return'default'==_0x3adc5f['newValue']?_0x5c51b1:{'type':'format','content':''+o(_0x14d802,'*Set\x20format:*\x20%0',o(_0x14d802,this['_getTranslationKeyForListStyle'](_0x3adc5f['newValue'])))};if(!_0x3adc5f['newValue']){if('default'==_0x3adc5f['oldValue'])return _0x5c51b1;let _0x475b8b=_0x1dbfdb['head'];for(;_0x475b8b;){if(_0x475b8b['data']&&'listType'==_0x475b8b['data']['key']&&_0x475b8b['data']['newValue'])return _0x5c51b1;_0x475b8b=_0x475b8b['next'];}return{'type':'format','content':''+o(_0x14d802,'*Remove\x20format:*\x20%0',o(_0x14d802,this['_getTranslationKeyForListStyle'](_0x3adc5f['oldValue'])))};}if('default'!=_0x3adc5f['newValue'])return{'type':'format','content':''+o(_0x14d802,'*Set\x20format:*\x20%0',o(_0x14d802,this['_getTranslationKeyForListStyle'](_0x3adc5f['newValue'])))};let _0x4fc73b=_0x1dbfdb['head'];for(;_0x4fc73b;){if(_0x4fc73b['data']&&'listType'==_0x4fc73b['data']['key']&&_0x4fc73b['data']['newValue']&&_0x4fc73b['data']['oldValue'])return _0x5c51b1;_0x4fc73b=_0x4fc73b['next'];}return{'type':'format','content':o(_0x14d802,'*Set\x20format:*\x20%0',o(_0x14d802,'ELEMENT_'+_0x1dbfdb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x43f6ca=this['editor'],_0x4ac5be=_0x43f6ca['locale'];_0x43f6ca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc09018=>{if('formatBlock'!=_0xc09018['type'])return;const {data:_0x54dc1d}=_0xc09018;if(!_0x54dc1d)return;let _0x271290,_0x3970c7;switch(_0x54dc1d['commandName']){case'listStyle':_0x271290='*Change\x20to:*\x20%0',_0x3970c7={'type':'format','content':o(_0x4ac5be,_0x271290,o(_0x4ac5be,this['_getTranslationKeyForListStyle'](_0x54dc1d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x271290=_0x54dc1d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3970c7={'type':'format','content':o(_0x4ac5be,_0x271290)};break;case'listStart':_0x271290='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3970c7={'type':'format','content':o(_0x4ac5be,_0x271290,_0x54dc1d['commandParams'][0x0]['startIndex'])};}return _0x3970c7;});}['_getTranslationKeyForListStyle'](_0x37487f){return'ELEMENT_'+function(_0x1c071a){if(Se['includes'](_0x1c071a))return'bulleted';if(_e['includes'](_0x1c071a))return'numbered';return null;}(_0x37487f)['toUpperCase']()+'_LIST_'+_0x37487f['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x3befcd{['afterInit'](){const _0xe1ccc1=this['editor'];_0xe1ccc1['commands']['get']('emoji')&&_0xe1ccc1['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x3befcd{static get['requires'](){return[_0x25a791];}['init'](){const _0x5cbdf8=this['editor'],_0xf543e5=_0x5cbdf8['plugins']['get']('TrackChangesEditing'),_0x4578c8=_0x5cbdf8['commands']['get']('enter');_0xf543e5['enableCommand']('enter',()=>{_0x5cbdf8['model']['change'](_0x284af7=>{const _0x192e7b=_0x5cbdf8['model']['document']['selection'],_0x4bb13f=_0x192e7b['getFirstPosition'](),_0x5f41f6=_0x39c36c['fromRange'](_0x192e7b['getFirstRange']());if(_0x4578c8['enterBlock'](_0x284af7)){const _0x6ba766=_0x5cbdf8['model']['createPositionAt'](_0x4bb13f['parent']['nextSibling'],0x0),_0x42e70a=_0x284af7['createRange'](_0x4bb13f,_0x6ba766);_0xf543e5['markInsertion'](_0x42e70a);}else _0x284af7['setSelection'](_0x284af7['createRange'](_0x5f41f6['end']));_0x5f41f6['detach'](),_0x4578c8['fire']('afterExecute',{'writer':_0x284af7});});}),_0x5cbdf8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x5cbdf8,'split'),{'priority':'high'}),_0x5cbdf8['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x37e197,_0x416af8,_0x515c58)=>{const _0x4fe0bf=_0x515c58['mapper']['markerNameToElements'](_0x416af8['markerName']);if(_0x4fe0bf){for(const _0x160141 of _0x4fe0bf)_0x160141['hasClass']('ck-suggestion-marker-split')&&(_0x515c58['mapper']['unbindElementFromMarkerName'](_0x160141,_0x416af8['markerName']),_0x515c58['writer']['remove'](_0x160141));}},{'priority':'high'}),_0x5cbdf8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15da52,_0x22a6a3,_0x146e09)=>{_0x146e09['options']['showSuggestionHighlights']&&De(_0x5cbdf8,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15da52,_0x22a6a3,_0x146e09);},{'priority':'high'});}}class Q extends _0x3befcd{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x422eff=this['editor']['plugins']['get']('TrackChangesEditing');_0x422eff['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x422eff['enableCommand']('findNext'),_0x422eff['enableCommand']('findPrevious'),_0x422eff['enableCommand']('replace'),_0x422eff['enableCommand']('replaceAll');}['handleFindCommand'](_0x2afb99,_0x218273,_0x4fe2ad={}){const _0x21aa45=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x2afb99(_0x3cb840=>{let _0x2d96c7=('string'==typeof _0x218273?_0x21aa45['findByTextCallback'](_0x218273,_0x4fe2ad):_0x218273)(_0x3cb840);Array['isArray'](_0x2d96c7)&&(_0x2d96c7={'results':_0x2d96c7,'searchText':'string'==typeof _0x218273?_0x218273:''});const _0x5afaaa=_0x2d96c7['results']['filter'](_0x36d4b9=>!0x1===this['_isInDeletionRange'](_0x36d4b9,_0x3cb840['item']));return{..._0x2d96c7,'results':_0x5afaaa};},_0x4fe2ad);}['_isInDeletionRange'](_0x3c4345,_0x216426){const _0x134b47=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x216426,_0x3c4345['start']),this['editor']['model']['createPositionAt'](_0x216426,_0x3c4345['end']));for(const _0x17f5dd of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x134b47['getIntersection'](_0x17f5dd['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x3befcd{['afterInit'](){const _0x1d49c3=this['editor']['locale'],_0x19df0c=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x215af4,commandName:_0x19db11}of eo)this['editor']['plugins']['has'](_0x215af4)&&(_0x19df0c['enableDefaultAttributesIntegration'](_0x19db11),_0x19df0c['registerInlineAttribute'](_0x19db11));_0x19df0c['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x1d49c3,'FORMAT_FONT_SIZE')),_0x19df0c['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x1d49c3,'FORMAT_FONT_FAMILY')),_0x19df0c['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x1d49c3,'FORMAT_FONT_COLOR')),_0x19df0c['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x1d49c3,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x515f4a=this['editor'],_0xadf3b7=_0x515f4a['locale'];_0x515f4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d153b=>{const _0x5c417e=_0xadf3b7['t'];if('formatInline'!=_0x2d153b['type'])return;const {data:_0x12420a}=_0x2d153b;if(null!=_0x12420a){if('fontSize'==_0x12420a['commandName']){const _0xb7a11c=_0x12420a['commandParams'][0x0]['value'];if(_0xb7a11c){const _0x1d6eef=_0x5c417e(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x514b19=>_0x514b19['model']==_0xb7a11c)['title'])['toLowerCase']();return{'type':'format','content':o(_0xadf3b7,'*Set\x20font\x20size:*\x20%0',_0x1d6eef)};}return{'type':'format','content':o(_0xadf3b7,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x12420a['commandName']){const _0x20227f=_0x12420a['commandParams'][0x0]['value'];return _0x20227f?{'type':'format','content':o(_0xadf3b7,'*Set\x20font\x20family:*\x20%0',_0x20227f)}:{'type':'format','content':o(_0xadf3b7,'*Reset\x20font\x20family*')};}if('fontColor'==_0x12420a['commandName']){const _0x54ccf1=_0x12420a['commandParams'][0x0]['value'];if(_0x54ccf1){const _0x199429=_0x4c3568(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3fd661=>_0x3fd661['model']==_0x54ccf1);let _0x4d2754=_0x54ccf1,_0x3e080a='';return _0x199429&&(_0x4d2754=_0x199429['label'],_0x3e080a=_0x5c417e(_0x4d2754)['toLowerCase']()),{'type':'format','content':o(_0xadf3b7,'*Set\x20font\x20color:*\x20%0',_0x3e080a)['trim'](),'color':{'value':_0x54ccf1,'title':_0x3e080a||_0x4d2754}};}return{'type':'format','content':o(_0xadf3b7,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x12420a['commandName']){const _0x14f046=_0x12420a['commandParams'][0x0]['value'];if(_0x14f046){const _0x5eb3a5=_0x4c3568(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x34d9b2=>_0x34d9b2['model']==_0x14f046);let _0x570fee=_0x14f046,_0x26c6b0='';return _0x5eb3a5&&(_0x570fee=_0x5eb3a5['label'],_0x26c6b0=_0x5c417e(_0x570fee)['toLowerCase']()),{'type':'format','content':o(_0xadf3b7,'*Set\x20font\x20background\x20color:*\x20%0',_0x26c6b0)['trim'](),'color':{'value':_0x14f046,'title':_0x26c6b0||_0x570fee}};}return{'type':'format','content':o(_0xadf3b7,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x3befcd{['afterInit'](){const _0x38fd54=this['editor'],_0x40822f=_0x38fd54['plugins']['get']('TrackChangesEditing'),_0x1d2da2=_0x38fd54['commands']['get']('copyFormat'),_0x2ab748=_0x38fd54['commands']['get']('pasteFormat');_0x1d2da2&&_0x2ab748&&(_0x40822f['enableDefaultAttributesIntegration']('pasteFormat'),_0x40822f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x43e13e=this['editor'],_0x140a56=_0x43e13e['locale'];_0x43e13e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a3e30=>{if('formatBlock'!=_0x1a3e30['type']&&'formatInline'!=_0x1a3e30['type'])return;const {data:_0x1df24a}=_0x1a3e30;if(_0x1df24a&&'pasteFormat'===_0x1df24a['commandName']){const _0x41bf52=[],_0x24a696=_0x1df24a['commandParams'][0x0];for(const [_0x17dac8,_0x566135]of Object['entries'](_0x24a696))_0x41bf52['push'](ro(_0x43e13e,_0x17dac8,_0x566135));return _0x41bf52['length']?{'type':'format','content':o(_0x140a56,'*Set\x20format\x20to:*\x20%0',_0x41bf52['join'](',\x20'))}:{'type':'format','content':o(_0x140a56,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x1a87dd,_0x476b81,_0x3cbed4){const _0x1d596b=_0x1a87dd['locale']['t'],_0x458eec=_0x476b81['split'](/(?=[A-Z])/)['join']('\x20'),_0x17d379=_0x1d596b(_0x458eec['charAt'](0x0)['toUpperCase']()+_0x458eec['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3cbed4)return _0x17d379;if('fontColor'===_0x476b81||'fontBackgroundColor'===_0x476b81){const _0x2f0183=_0x4c3568(_0x1a87dd['config']['get']('fontColor.colors'))['find'](_0x926d02=>_0x926d02['model']==_0x3cbed4);return _0x17d379+'\x20('+(_0x2f0183?_0x1d596b(_0x2f0183['label'])['toLowerCase']():_0x3cbed4)+')';}if('fontSize'===_0x476b81&&isNaN(parseFloat(_0x3cbed4))){const _0x937d23=_0x1a87dd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1a87dd['config']['get']('fontSize.options'))['find'](_0x2ba2a7=>_0x2ba2a7['model']==_0x3cbed4);return _0x17d379+'\x20('+(_0x937d23?_0x1d596b(_0x937d23['title'])['toLowerCase']():_0x3cbed4)+')';}return _0x17d379+'\x20('+_0x3cbed4+')';}class Z extends _0x3befcd{['_headingOptions'];['afterInit'](){const _0x553942=this['editor'];if(!_0x553942['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x553942['config']['get']('heading.options');const _0x378f2f=_0x553942['locale'],_0x317d56=_0x553942['plugins']['get']('TrackChangesEditing');_0x317d56['enableDefaultAttributesIntegration']('heading');for(const _0x2a2c04 of this['_headingOptions'])'paragraph'!=_0x2a2c04['model']&&_0x317d56['descriptionFactory']['registerElementLabel'](_0x2a2c04['model'],_0x11e373=>{const _0x26e8c1=this['_getHeadingLevel'](_0x2a2c04['model']);return null!==_0x26e8c1?_0x15ef89(_0x11e373,_0x26e8c1):_0x1e32d0(_0x11e373,_0x2a2c04['title']);});function _0x15ef89(_0x4a6f4e,_0x371091){return o(_0x378f2f,'ELEMENT_HEADING',[_0x4a6f4e,_0x371091]);}function _0x1e32d0(_0x3aaa63,_0x3f7412){return o(_0x378f2f,'ELEMENT_HEADING_CUSTOM',[_0x3aaa63,_0x3f7412]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcbf856=this['editor'],_0x1b7d3b=_0xcbf856['locale'];function _0x5b54dd(_0x40fb56,_0x5902b8){return o(_0x1b7d3b,'ELEMENT_HEADING_CUSTOM',[_0x40fb56,_0x5902b8]);}_0xcbf856['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27f1ce=>{if('formatBlock'!=_0x27f1ce['type'])return;const {data:_0x77efd4}=_0x27f1ce;if(_0x77efd4&&'heading'==_0x77efd4['commandName']){const _0x2dafa6=_0x77efd4['commandParams'][0x0]['value'],_0xe28d72=this['_getHeadingLevel'](_0x2dafa6);if(null!==_0xe28d72)return{'type':'format','content':o(_0x1b7d3b,'*Change\x20to:*\x20%0',(_0x42417e=0x1,_0x51fd48=_0xe28d72,o(_0x1b7d3b,'ELEMENT_HEADING',[_0x42417e,_0x51fd48])))};const _0x292aa5=this['_headingOptions']['find'](_0x2dd786=>_0x2dd786['model']===_0x2dafa6)['title'];return{'type':'format','content':o(_0x1b7d3b,'*Change\x20to:*\x20%0',_0x5b54dd(0x1,_0x292aa5))};}var _0x42417e,_0x51fd48;});}['_getHeadingLevel'](_0x1b7f6f){const _0x29be8c=_0x1b7f6f['match'](/^heading(\d+)/);if(_0x29be8c)return _0x29be8c[0x1];const _0x664e09=this['_headingOptions']?.['find'](_0x56c875=>_0x56c875['model']==_0x1b7f6f);if(_0x664e09&&_0x664e09['view']){const _0x436b8e=_0x664e09['view'],_0x186373=(_0x436b8e['name']??_0x436b8e)['match'](/^h(\d+)/);if(_0x186373)return _0x186373[0x1];}return null;}}class tt extends _0x3befcd{['afterInit'](){const _0x284d32=this['editor'];if(!_0x284d32['plugins']['has']('HighlightEditing'))return;const _0x3339fa=_0x284d32['plugins']['get']('TrackChangesEditing'),_0x49a801=_0x284d32['locale'];_0x3339fa['enableDefaultAttributesIntegration']('highlight'),_0x3339fa['registerInlineAttribute']('highlight'),_0x3339fa['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x49a801,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x755787=this['editor'],_0x93d138=_0x755787['locale'];_0x755787['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x283e85=>{if('formatInline'!=_0x283e85['type'])return;const {data:_0x32b0a5}=_0x283e85;if(_0x32b0a5&&'highlight'==_0x32b0a5['commandName']){const _0x185254=_0x93d138['t'],_0x53799f=_0x32b0a5['commandParams'][0x0]['value'];if(_0x53799f){const _0x274ddf=_0x755787['config']['get']('highlight.options')['find'](_0x44ffe4=>_0x44ffe4['model']==_0x53799f),_0x459980=_0x185254(_0x274ddf['title'])['toLowerCase']();return{'type':'format','content':o(_0x93d138,'*Set\x20highlight:*\x20%0',_0x459980),'color':{'value':_0x274ddf['color'],'title':_0x274ddf['title']}};}return{'type':'format','content':o(_0x93d138,'*Remove\x20highlight*',o(_0x93d138,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3befcd{['afterInit'](){const _0x57a7eb=this['editor'];if(!_0x57a7eb['plugins']['has']('HorizontalLineEditing'))return;_0x57a7eb['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5a153d=_0x57a7eb['plugins']['get']('TrackChangesEditing'),_0x415eac=_0x57a7eb['locale'];_0x5a153d['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3c15e3=>o(_0x415eac,'ELEMENT_HORIZONTAL_LINE',_0x3c15e3)),_0x57a7eb['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb6f473,{writer:_0x15461d,options:_0x128491})=>{if(!_0x128491['showSuggestionHighlights'])return null;const _0x36ccf0=_0x15461d['createContainerElement']('div'),_0x6eac01=_0x15461d['createEmptyElement']('hr');return _0x15461d['addClass']('ck-horizontal-line',_0x36ccf0),_0x15461d['insert'](_0x15461d['createPositionAt'](_0x36ccf0,0x0),_0x6eac01),_0x36ccf0;},'converterPriority':'high'});}}class nt extends _0x3befcd{['afterInit'](){const _0x428f33=this['editor'];if(!_0x428f33['plugins']['has']('HtmlEmbed'))return;const _0x4d3935=_0x428f33['plugins']['get']('TrackChangesEditing'),_0x36b061=_0x428f33['locale'];_0x4d3935['descriptionFactory']['registerElementLabel']('rawHtml',_0x110c7f=>o(_0x36b061,'ELEMENT_HTML_EMBED',_0x110c7f)),_0x4d3935['enableDefaultAttributesIntegration']('htmlEmbed'),_0x4d3935['registerBlockAttribute']('value'),_0x4d3935['descriptionFactory']['registerDescriptionCallback'](_0x2efd6a=>{if('attribute'!=_0x2efd6a['type'])return;const {data:_0x9dad6b}=_0x2efd6a;if(_0x9dad6b&&'value'==_0x9dad6b['key']&&_0x2efd6a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x4a11bd=o(_0x36b061,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x36b061,'*Change\x20%0\x20content*',_0x4a11bd)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36143e=this['editor'],_0x1ae54b=_0x36143e['locale'];_0x36143e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d3347=>{if('formatBlock'!=_0x2d3347['type'])return;const {data:_0x635871}=_0x2d3347;if(_0x635871&&'htmlEmbed'==_0x635871['commandName']){const _0xb68bfa=o(_0x1ae54b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ae54b,'*Change\x20%0\x20content*',_0xb68bfa)};}});}}class et extends _0x3befcd{['afterInit'](){const _0x13d725=this['editor'];if(!_0x13d725['plugins']['has']('ImageEditing'))return;const _0x59cab3=_0x13d725['plugins']['get']('TrackChangesEditing'),_0x4a3050=_0x13d725['plugins']['get']('ImageUtils'),_0x1fab28=_0x13d725['locale'];_0x59cab3['enableCommand']('insertImage'),_0x59cab3['descriptionFactory']['registerElementLabel']('imageBlock',_0x29574f=>o(_0x1fab28,'ELEMENT_IMAGE',_0x29574f)),_0x59cab3['descriptionFactory']['registerElementLabel']('imageInline',_0x21958b=>o(_0x1fab28,'ELEMENT_INLINE_IMAGE',_0x21958b)),_0x59cab3['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1fab28,'ELEMENT_CAPTION')),_0x13d725['plugins']['has']('ImageUploadEditing')&&_0x59cab3['enableCommand']('uploadImage'),_0x13d725['plugins']['has']('ImageBlockEditing')&&_0x13d725['plugins']['has']('ImageInlineEditing')&&(_0x59cab3['enableCommand']('imageTypeInline',(_0x366ea3,_0x20acde)=>{const _0xe0a46a=_0x4a3050['getClosestSelectedImageElement'](_0x13d725['model']['document']['selection']);_0x13d725['model']['change'](()=>{_0x59cab3['markBlockFormat'](_0xe0a46a,{'commandName':'imageTypeInline','commandParams':[_0x20acde]},[],'convertBlockImageToInline');});}),_0x59cab3['enableCommand']('imageTypeBlock',(_0x2f7742,_0x5ec8ce)=>{_0x13d725['model']['change'](_0x51a761=>{let _0x3896a9=_0x4a3050['getClosestSelectedImageElement'](_0x13d725['model']['document']['selection']),_0x404a86=_0x51a761['createRangeOn'](_0x3896a9);const _0x40f691=_0x221699['fromPosition'](_0x404a86['start'],'toPrevious'),_0x57ca7f=_0x221699['fromPosition'](_0x404a86['end'],'toNext');_0x59cab3['forceDefaultExecution'](()=>_0x2f7742(_0x5ec8ce)),_0x3896a9=_0x4a3050['getClosestSelectedImageElement'](_0x13d725['model']['document']['selection']),_0x404a86=_0x51a761['createRangeOn'](_0x3896a9);const _0x357c22=_0x51a761['createRange'](_0x40f691,_0x57ca7f);_0x40f691['detach'](),_0x57ca7f['detach'](),_0x59cab3['markBlockFormat'](_0x3896a9,{'commandName':'imageTypeInline','commandParams':[_0x5ec8ce]},[],'convertInlineImageToBlock'),_0x357c22['start']['isBefore'](_0x404a86['start'])&&_0x59cab3['markInsertion'](_0x51a761['createRange'](_0x357c22['start'],_0x404a86['start']),'convertInlineImageToBlock'),_0x404a86['end']['isBefore'](_0x357c22['end'])&&_0x59cab3['markInsertion'](_0x51a761['createRange'](_0x404a86['end'],_0x357c22['end']),'convertInlineImageToBlock');});}),_0x59cab3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x59cab3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x59cab3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x59cab3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x59cab3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x59cab3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1abfb6])=>{const _0x813a79=_0x59cab3['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x27a3e6=_0x1abfb6['start'],_0x1aef64=_0x1abfb6['end'];const _0x5c64a3=_0x13d725['model']['schema']['getNearestSelectionRange'](_0x27a3e6,'backward'),_0x326afb=_0x13d725['model']['schema']['getNearestSelectionRange'](_0x1aef64,'forward');_0x5c64a3['isCollapsed']&&(_0x27a3e6=_0x5c64a3['start']),_0x326afb['isCollapsed']&&(_0x1aef64=_0x326afb['end']),_0x813a79([_0x13d725['model']['createRange'](_0x27a3e6,_0x1aef64)]);}),_0x59cab3['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x71d730),_0x59cab3['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x71d730)),_0x13d725['plugins']['has']('ImageCaptionEditing')&&(_0x59cab3['enableCommand']('toggleImageCaption',(_0x1649aa,_0x1957fe)=>{const _0x42732a=_0x13d725['plugins']['get']('ImageCaptionUtils');let _0x5b0076=_0x4a3050['getClosestSelectedImageElement'](_0x13d725['model']['document']['selection']),_0x522277=_0x42732a['getCaptionFromImageModelElement'](_0x5b0076);_0x13d725['model']['change'](()=>{if(_0x522277)return void _0x59cab3['markDeletion'](_0x13d725['model']['createRangeOn'](_0x522277));const _0x58a0bb=_0x4a3050['isBlockImage'](_0x5b0076);_0x1649aa(_0x1957fe),_0x5b0076=_0x4a3050['getClosestSelectedImageElement'](_0x13d725['model']['document']['selection']),_0x522277=_0x42732a['getCaptionFromImageModelElement'](_0x5b0076),_0x59cab3['markInsertion'](_0x13d725['model']['createRangeOn'](_0x522277),_0x58a0bb?null:'imageCaption');});}),_0x59cab3['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x71d730));const _0x60938e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x379c1c(_0x403f5d,_0x1cfcc4){const _0x23b44f=_0x60938e['findIndex'](({type:_0xe68655,subType:_0xa6de51})=>_0x403f5d['type']==_0xe68655&&_0x403f5d['subType']==_0xa6de51),_0x50c961=_0x60938e['findIndex'](({type:_0x187b18,subType:_0xeb8f3f})=>_0x1cfcc4['type']==_0x187b18&&_0x1cfcc4['subType']==_0xeb8f3f);if(_0x23b44f<0x0||_0x50c961<0x0)return!0x1;const _0x53e65b=_0x403f5d['getFirstRange'](),_0x56a881=_0x1cfcc4['getFirstRange']();if((0x0==_0x23b44f||0x1==_0x23b44f)&&0x2==_0x50c961&&_0x53e65b['isIntersecting'](_0x56a881))return!0x0;if(0x2==_0x23b44f&&0x3==_0x50c961){const _0x27b657=_0x59cab3['_findSuggestions'](_0x53e65b,'insertion')['filter'](({suggestion:_0x141c6b,meta:_0x58b7f7})=>_0x58b7f7['isOwn']&&'convertInlineImageToBlock'==_0x141c6b['subType']);if(_0x27b657['length']>0x1&&_0x56a881['end']['isEqual'](_0x53e65b['start']))return!0x0;if(0x1==_0x27b657['length']&&(_0x53e65b['start']['isEqual'](_0x56a881['end'])||_0x53e65b['end']['isEqual'](_0x56a881['start'])))return!0x0;}if(0x3==_0x23b44f&&0x3==_0x50c961&&_0x53e65b['start']['isBefore'](_0x56a881['start'])){const _0x382ab6=_0x53e65b['end']['nodeAfter'],_0x37ca75=_0x56a881['start']['nodeBefore'];return _0x4a3050['isBlockImage'](_0x382ab6)&&_0x382ab6===_0x37ca75;}return!0x1;}function _0x71d730(_0x48263f,_0x24f900){return _0x379c1c(_0x48263f,_0x24f900)?[_0x48263f,_0x24f900]:_0x379c1c(_0x24f900,_0x48263f)?[_0x24f900,_0x48263f]:null;}_0x13d725['plugins']['has']('ImageResize')&&(_0x59cab3['enableDefaultAttributesIntegration']('resizeImage'),_0x59cab3['registerBlockAttribute']('resizedWidth'),_0x59cab3['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1fab28,'FORMAT_IMAGE_SIZE'))),_0x13d725['plugins']['has']('ImageTextAlternativeEditing')&&(_0x59cab3['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x59cab3['registerBlockAttribute']('alt')),_0x13d725['plugins']['has']('PictureEditing')&&(_0x59cab3['registerBlockAttribute']('sources'),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x4c9334=>{if('attribute'!=_0x4c9334['type'])return;const {data:_0x4ea74c}=_0x4c9334;return _0x4ea74c&&'sources'==_0x4ea74c['key']?{'type':'format','content':''}:void 0x0;})),_0x13d725['plugins']['has']('ImageSizeAttributes')&&(_0x59cab3['registerBlockAttribute']('width'),_0x59cab3['registerBlockAttribute']('height'),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x494b84=>{if('attribute'!=_0x494b84['type'])return;const {data:_0x1afb78}=_0x494b84;return!_0x1afb78||'width'!=_0x1afb78['key']&&'height'!=_0x1afb78['key']?void 0x0:{'type':'format','content':''};})),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x3af70d=>{if(!!_0x60938e['find'](({type:_0x1cbea8,subType:_0x2e2c22})=>_0x3af70d['type']==_0x1cbea8&&_0x3af70d['subType']==_0x2e2c22))return _0x3af70d['previous']?{}:void 0x0;}),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x3e7b6a=>{if('insertion'==_0x3e7b6a['type']||'deletion'==_0x3e7b6a['type']){const _0x427fae=_0x3e7b6a['getContainedElement']();if(_0x427fae&&_0x427fae['is']('element','caption'))return{'type':'insertion'==_0x3e7b6a['type']?'addObject':'removeObject','element':_0x427fae,'quantity':0x1};}}),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x4c5f7d=>'formatBlock'==_0x4c5f7d['type']&&'convertInlineImageToBlock'==_0x4c5f7d['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4c5f7d['type']&&'convertBlockImageToInline'==_0x4c5f7d['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x59cab3['descriptionFactory']['registerDescriptionCallback'](_0x533ad7=>{if('attribute'!=_0x533ad7['type'])return;const {data:_0x397980}=_0x533ad7;if(!_0x397980||'alt'!=_0x397980['key'])return;const _0x5d0e2e=_0x397980['newValue'];return _0x5d0e2e?{'type':'format','content':o(_0x1fab28,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5d0e2e+'\x22')}:{'type':'format','content':o(_0x1fab28,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2b36ab=this['editor'],_0x2ab971=_0x2b36ab['locale'];_0x2b36ab['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x541117=>{if('formatBlock'!=_0x541117['type']&&'formatInline'!=_0x541117['type'])return;const {data:_0x31789a}=_0x541117;if(_0x31789a){if('imageTextAlternative'==_0x31789a['commandName']){const _0x314c28=_0x31789a['commandParams'][0x0]['newValue'];return _0x314c28?{'type':'format','content':o(_0x2ab971,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x314c28+'\x22')}:{'type':'format','content':o(_0x2ab971,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x31789a['commandName']){const _0x3356c8=_0x31789a['commandParams'][0x0]['width'];return _0x3356c8?{'type':'format','content':o(_0x2ab971,'*Set\x20image\x20width:*\x20%0',_0x3356c8)}:{'type':'format','content':o(_0x2ab971,'*Reset\x20image\x20width*')};}}});}}class st extends _0x3befcd{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x42e0d5=this['editor']['locale'],_0x4dfbb8=this['editor']['plugins']['get']('TrackChangesEditing');_0x4dfbb8['enableDefaultAttributesIntegration']('replaceImageSource'),_0x4dfbb8['registerBlockAttribute']('src'),_0x4dfbb8['descriptionFactory']['registerDescriptionCallback'](_0x188a34=>{if('attribute'!=_0x188a34['type'])return;const {data:_0x583e14}=_0x188a34;return _0x583e14&&'src'==_0x583e14['key']?_0x583e14['newValue']&&_0x583e14['oldValue']?{'type':'format','content':o(_0x42e0d5,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x34c272=this['editor']['plugins']['get']('TrackChangesEditing');_0x34c272['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x34c272['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34c272['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x34c272['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c5a2c=this['editor'],_0x4a7ef9=_0x3c5a2c['locale'];_0x3c5a2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34cf38=>{if('formatBlock'!=_0x34cf38['type']&&'formatInline'!=_0x34cf38['type'])return;const {data:_0x3ccaa7}=_0x34cf38;if(!_0x3ccaa7||'replaceImageSource'!=_0x3ccaa7['commandName'])return;return{'type':'format','content':o(_0x4a7ef9,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x3befcd{['afterInit'](){const _0xe60cc1=this['editor'];if(!_0xe60cc1['plugins']['has']('ImageStyleEditing'))return;const _0x996a2f=_0xe60cc1['plugins']['get']('TrackChangesEditing'),_0x2bf641=_0xe60cc1['plugins']['get']('ImageUtils'),_0x17e877={};_0x996a2f['enableCommand']('imageStyle',(_0x5cfd92,_0xd3f0a7)=>{const _0x5990db=_0xe60cc1['plugins']['get']('Users')['me'],_0x367f15=_0xe60cc1['commands']['get']('imageStyle');let _0x4a1bfa=_0x2bf641['getClosestSelectedImageElement'](_0xe60cc1['model']['document']['selection']),_0x32eab1=_0xe60cc1['model']['createRangeOn'](_0x4a1bfa),_0x1e0ea8=_0x367f15['value'];if(_0x1e0ea8==_0xd3f0a7['value'])return;const _0x632dc4={'commandName':'imageStyle','commandParams':[_0xd3f0a7],'formatGroupId':_0x561a0d()};_0xe60cc1['model']['change'](()=>{if(_0x996a2f['getSuggestions']()['filter'](_0x48ae06=>_0x48ae06['isInContent']&&_0x5990db==_0x48ae06['author']&&('formatBlock'==_0x48ae06['type']||'formatInline'==_0x48ae06['type'])&&('imageStylePreApply'==_0x48ae06['subType']||'imageStylePostApply'==_0x48ae06['subType'])&&_0x48ae06['getFirstRange']()['isEqual'](_0x32eab1))['forEach'](_0x480371=>_0x996a2f['discardSuggestion'](_0x480371['head'])),_0x4a1bfa=_0x2bf641['getClosestSelectedImageElement'](_0xe60cc1['model']['document']['selection']),_0x32eab1=_0xe60cc1['model']['createRangeOn'](_0x4a1bfa),_0x367f15['refresh'](),_0xe60cc1['commands']['get']('imageTypeInline')['refresh'](),_0xe60cc1['commands']['get']('imageTypeBlock')['refresh'](),_0x1e0ea8=_0x367f15['value'],_0x1e0ea8!=_0xd3f0a7['value'])return _0x2bf641['isInlineImage'](_0x4a1bfa)&&_0x367f15['shouldConvertImageType'](_0xd3f0a7['value'],_0x4a1bfa)?(_0x5cfd92({..._0xd3f0a7,'setImageSizes':!0x1}),_0x4a1bfa=_0x2bf641['getClosestSelectedImageElement'](_0xe60cc1['model']['document']['selection']),void _0x996a2f['markBlockFormat'](_0x4a1bfa,{..._0x632dc4,'commandReversedParams':[{'value':_0x1e0ea8||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x2bf641['isBlockImage'](_0x4a1bfa)?_0x996a2f['markBlockFormat'](_0x4a1bfa,_0x632dc4,[],'imageStylePostApply'):_0x996a2f['markInlineFormat'](_0x32eab1,_0x632dc4,'imageStylePostApply'));});});for(const _0x2343cc of _0xe60cc1['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17e877[_0x2343cc['name']]=_0x2343cc['title']['toLowerCase']();_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x58ff0a])=>{_0x2bf641['setImageNaturalSizeAttributes'](_0x58ff0a['getContainedElement']());}),_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2614dd,_0x261942)=>{_0x996a2f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2614dd,{'commandName':_0x261942['commandName'],'commandParams':_0x261942['commandReversedParams']});}),_0x996a2f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x14c688,_0x44dc52){if(_0xdb8ab0(_0x14c688,_0x44dc52))return[_0x14c688,_0x44dc52];if(_0xdb8ab0(_0x44dc52,_0x14c688))return[_0x44dc52,_0x14c688];return null;});const _0x15234c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xdb8ab0(_0x1a56aa,_0x26ec7e){const _0xbc21f4=_0x15234c['findIndex'](({type:_0x327e48,subType:_0x586320})=>_0x1a56aa['type']==_0x327e48&&_0x1a56aa['subType']==_0x586320),_0x14d4b6=_0x15234c['findIndex'](({type:_0x371891,subType:_0x3f9464})=>_0x26ec7e['type']==_0x371891&&_0x26ec7e['subType']==_0x3f9464);if(_0xbc21f4<0x0||_0x14d4b6<0x0)return!0x1;const _0x13266a=_0x1a56aa['getFirstRange'](),_0x37c457=_0x26ec7e['getFirstRange']();if((0x0==_0xbc21f4||0x1==_0xbc21f4)&&0x2==_0x14d4b6&&_0x13266a['isIntersecting'](_0x37c457))return!0x0;if(0x2==_0xbc21f4&&0x3==_0x14d4b6){const _0x3cedc3=_0x996a2f['_findSuggestions'](_0x13266a,'insertion')['filter'](({suggestion:_0x28643b,meta:_0x5b5eeb})=>_0x5b5eeb['isOwn']&&'convertInlineImageToBlock'==_0x28643b['subType']);if(_0x3cedc3['length']>0x1&&_0x37c457['end']['isEqual'](_0x13266a['start']))return!0x0;if(0x1==_0x3cedc3['length']&&(_0x13266a['start']['isEqual'](_0x37c457['end'])||_0x13266a['end']['isEqual'](_0x37c457['start'])))return!0x0;}if(0x3==_0xbc21f4&&0x3==_0x14d4b6&&_0x13266a['start']['isBefore'](_0x37c457['start'])){const _0x3624e2=_0x13266a['end']['nodeAfter'],_0x38f595=_0x37c457['start']['nodeBefore'];return _0x2bf641['isBlockImage'](_0x3624e2)&&_0x3624e2===_0x38f595;}return!0x1;}_0xe60cc1['model']['document']['registerPostFixer'](()=>{let _0x2cc59a=!0x1;const _0x3bd665=Array['from'](_0xe60cc1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30cac9,data:_0x266489}of _0x3bd665){const {group:_0x3466d7,type:_0x552348,subType:_0x1de6b2,id:_0x4a9419}=_0x996a2f['_splitMarkerName'](_0x30cac9);if('suggestion'==_0x3466d7&&_0x996a2f['hasSuggestion'](_0x4a9419)){if('formatBlock'==_0x552348&&('imageStylePreApply'==_0x1de6b2||'imageStylePostApply'==_0x1de6b2)){const _0x451bf0=_0x996a2f['getSuggestion'](_0x4a9419);if(_0x266489['newRange']){const _0x1c6198=_0x451bf0['getFirstRange']()['getContainedElement']();if(_0x2bf641['isBlockImage'](_0x1c6198))continue;_0x996a2f['discardSuggestion'](_0x451bf0),_0x2cc59a=!0x0;}}if('insertion'==_0x552348&&'imageCaption'==_0x1de6b2&&!_0x266489['newRange']){const _0x570d85=_0x996a2f['getSuggestion'](_0x4a9419);_0x570d85['next']&&_0x570d85['next']['isInContent']&&(_0x996a2f['discardSuggestion'](_0x570d85['next']),_0x2cc59a=!0x0);}}}return _0x2cc59a;}),this['_registerLegacyDescription'](_0x17e877);}['_registerLegacyDescription'](_0x413c2b){const _0x3778a1=this['editor'],_0x1ac3c9=_0x3778a1['locale'];_0x3778a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x525d17=>{if('formatBlock'!=_0x525d17['type']&&'formatInline'!=_0x525d17['type'])return;const {data:_0x367b21}=_0x525d17;if(!_0x367b21||'imageStyle'!=_0x367b21['commandName'])return;const _0xc06da2=_0x367b21['commandParams'][0x0]['value'];return _0x5058a0('side'===_0xc06da2?o(_0x1ac3c9,'FORMAT_SIDE_IMAGE'):_0x413c2b[_0xc06da2]||_0xc06da2);function _0x5058a0(_0x5bc482){return{'type':'format','content':o(_0x1ac3c9,'*Format:*\x20%0',_0x5bc482)};}});}}class rt extends _0x3befcd{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xdd3818){super(_0xdd3818),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x3b6d98=this['editor'],_0x4e0ffe=_0x3b6d98['commands']['get']('importWord'),_0x24f56a=_0x3b6d98['commands']['get']('trackChanges');_0x4e0ffe&&(_0x4e0ffe['on']('execute',(_0x989370,[,_0x3eed61])=>{this['_trackChangesValueDuringImport']=_0x24f56a['value'],_0x3eed61['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4e0ffe,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4e0ffe,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x24f56a['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x3b6d98['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x318f57,_0x1c93ce){const {suggestions:_0x113f57}=_0x1c93ce,_0x3ff7e1=this['editor']['commands']['get']('trackChanges'),_0x5b7c66=_0x3ff7e1['value'];this['_trackChangesValueDuringImport']!==_0x5b7c66&&(_0x3ff7e1['execute'](),this['_trackChangesExecuted']=!0x0),_0x113f57&&_0x113f57['forEach'](({id:_0x21f290,type:_0x491114,author:_0x52cfd6,created_at:_0x2055d6})=>{const _0x5f240f={'id':_0x21f290,'type':_0x491114,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x52cfd6,'createdAt':_0x2055d6?new Date(_0x2055d6):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f240f);});}}class at extends _0x3befcd{['afterInit'](){const _0x9d47d=this['editor'],_0x7f9679=_0x9d47d['plugins']['get']('TrackChangesEditing');if(_0x9d47d['plugins']['has']('IndentEditing')&&(_0x7f9679['enableCommand']('indent'),_0x7f9679['enableCommand']('outdent')),_0x9d47d['plugins']['has']('IndentBlock')){for(const _0xcaf26a of['indentBlock','outdentBlock'])_0x7f9679['enableDefaultAttributesIntegration'](_0xcaf26a);}const _0x4a8870=_0x9d47d['locale'];_0x7f9679['registerBlockAttribute']('blockIndent'),_0x7f9679['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a8870,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54648f=this['editor'],_0x4a342e=_0x54648f['locale'],_0x25fd64=_0x54648f['plugins']['get']('TrackChangesEditing');_0x25fd64['descriptionFactory']['registerDescriptionCallback'](_0x3a5356=>{if('formatBlock'!=_0x3a5356['type'])return;const {data:_0x18d83b}=_0x3a5356;if(!_0x18d83b)return;if('indentBlock'!=_0x18d83b['commandName']&&'outdentBlock'!=_0x18d83b['commandName'])return;const _0x252281=_0x3a5356['getItems']()[0x0],_0x18f2c4=_0x25fd64['descriptionFactory']['getItemLabel'](_0x252281);return'indentBlock'==_0x18d83b['commandName']?{'type':'format','content':o(_0x4a342e,'*Indent:*\x20%0',_0x18f2c4)}:'outdentBlock'==_0x18d83b['commandName']?{'type':'format','content':o(_0x4a342e,'*Outdent:*\x20%0',_0x18f2c4)}:void 0x0;});}}class ct extends _0x3befcd{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x3befcd{['afterInit'](){const _0x51ed6f=this['editor'];if(!_0x51ed6f['plugins']['has']('LinkEditing'))return;const _0x1f317b=_0x51ed6f['plugins']['get']('TrackChangesEditing'),_0x11ad70=_0x51ed6f['commands']['get']('link');_0x1f317b['enableDefaultAttributesIntegration']('link'),_0x1f317b['enableDefaultAttributesIntegration']('unlink'),_0x1f317b['registerInlineAttribute']('linkHref');for(const _0xf0817a of _0x11ad70['manualDecorators'])_0x1f317b['registerInlineAttribute'](_0xf0817a['id']),_0x1f317b['descriptionFactory']['registerAttributeLabel'](_0xf0817a['id'],'link\x20('+_0xf0817a['label']['toLowerCase']()+')');_0x1f317b['descriptionFactory']['registerDescriptionCallback'](_0xf94b4d=>{if('attribute'!=_0xf94b4d['type'])return;const {data:_0x39ad71}=_0xf94b4d;if(!_0x39ad71||'linkHref'!=_0x39ad71['key'])return;const _0xc36645=_0x39ad71['newValue'],_0x4620e1=_0x51ed6f['locale'];return{'type':'format','content':null==_0xc36645?o(_0x4620e1,'*Remove\x20link*'):o(_0x4620e1,'*Set\x20link:*\x20%0','\x22'+_0xc36645+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d31a0=this['editor'],_0x1df49f=_0x1d31a0['locale'];_0x1d31a0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xed49c9=>{if('formatInline'!=_0xed49c9['type'])return;const {data:_0xfea661}=_0xed49c9;if(_0xfea661){if('link'==_0xfea661['commandName']){const _0x521921=_0xfea661['commandParams'][0x0];return{'type':'format','content':o(_0x1df49f,'*Set\x20link:*\x20%0','\x22'+_0x521921+'\x22')};}return'unlink'==_0xfea661['commandName']?{'type':'format','content':o(_0x1df49f,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3befcd{['afterInit'](){const _0x25ef1e=this['editor'],_0x324888=_0x25ef1e['locale'];if(!_0x25ef1e['plugins']['has']('LegacyListEditing'))return;const _0x3f23c5=_0x25ef1e['plugins']['get']('TrackChangesEditing'),_0x5d310b=_0x25ef1e['plugins']['has']('LegacyTodoListEditing');function _0x729482(_0x15651f){return()=>{const _0x250dde=_0x25ef1e['model']['document']['selection'],_0x2c586a=_0x25ef1e['commands']['get'](_0x15651f);if(_0x2c586a['value'])return void _0x25ef1e['execute']('paragraph',{});const _0x547210=_0x15651f['slice'](0x0,-0x4),_0x22143f=function(_0x343610,_0x31bd78,_0x3ad15f){let _0x328130=Array['from'](_0x343610)['filter'](_0x4e8c43=>function(_0x1ae0fa,_0x4ce679){return _0x4ce679['checkChild'](_0x1ae0fa['parent'],'listItem')&&!_0x4ce679['isObject'](_0x1ae0fa);}(_0x4e8c43,_0x3ad15f));_0x328130=_0x328130['filter'](_0x390892=>!_0x390892['is']('element','listItem')||_0x390892['getAttribute']('listType')!=_0x31bd78);const _0x37e98b=new Set();for(const _0x39d276 of _0x328130)_0x39d276['is']('element','listItem')?_0x37e98b['add'](Le(_0x39d276)):_0x37e98b['add'](_0x39d276);return Array['from'](_0x37e98b);}(_0x250dde['getSelectedBlocks'](),_0x547210,_0x25ef1e['model']['schema']);_0x25ef1e['model']['change'](()=>{for(const _0x4d17b5 of _0x22143f)_0x3f23c5['markBlockFormat'](_0x4d17b5,{'commandName':_0x15651f,'commandParams':[{'forceValue':!_0x2c586a['value']}],'formatGroupId':'blockName'},Ee(_0x4d17b5));});};}function _0x33efcc(_0x292f39){return()=>{const _0x2b5f5e=function(_0x3fe3f1){let _0x27e39d=Array['from'](_0x3fe3f1);const _0x2e7ea4=_0x27e39d['findIndex'](_0x4c896b=>'listItem'!=_0x4c896b['name']);return _0x2e7ea4>-0x1&&(_0x27e39d=_0x27e39d['slice'](0x0,_0x2e7ea4)),_0x27e39d;}(_0x25ef1e['model']['document']['selection']['getSelectedBlocks']()),_0x1a4145=_0x25ef1e['model']['createRange'](_0x25ef1e['model']['createPositionAt'](_0x2b5f5e[0x0],'before'),_0x25ef1e['model']['createPositionAt'](_0x2b5f5e[_0x2b5f5e['length']-0x1],'end'));_0x25ef1e['model']['change'](()=>{_0x3f23c5['markBlockFormat'](_0x1a4145,{'commandName':_0x292f39,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5594ea){const _0x494387=new Set();for(const _0x533753 of _0x5594ea){let _0x44f289=_0x533753['nextSibling'];for(;_0x44f289&&_0x44f289['getAttribute']('listIndent')>_0x533753['getAttribute']('listIndent');)_0x494387['add'](_0x44f289),_0x44f289=_0x44f289['nextSibling'];}return Array['from'](_0x494387);}(_0x2b5f5e));});};}_0x3f23c5['enableCommand']('numberedList',_0x729482('numberedList')),_0x3f23c5['enableCommand']('bulletedList',_0x729482('bulletedList')),_0x5d310b&&_0x3f23c5['enableCommand']('todoList',_0x729482('todoList')),_0x3f23c5['enableCommand']('indentList',_0x33efcc('indentList')),_0x3f23c5['enableCommand']('outdentList',_0x33efcc('outdentList')),_0x5d310b&&_0x3f23c5['enableCommand']('checkTodoList',()=>{const _0x4118ed=_0x25ef1e['commands']['get']('checkTodoList'),_0x530cb9=Array['from'](_0x4118ed['_selectedElements']);_0x530cb9['filter'](_0x34626a=>_0x34626a['getAttribute']('todoListChecked')!=_0x4118ed['value']),_0x25ef1e['model']['change'](()=>{for(const _0x513184 of _0x530cb9)_0x3f23c5['markBlockFormat'](_0x513184,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4118ed['value']}]});});}),_0x3f23c5['descriptionFactory']['registerElementLabel']('listItem',_0x535313=>o(_0x324888,'ELEMENT_LIST_ITEM',_0x535313)),_0x3f23c5['descriptionFactory']['registerDescriptionCallback'](_0x4221a2=>{if('formatBlock'!=_0x4221a2['type']&&'formatInline'!=_0x4221a2['type'])return;const {data:_0x39d228}=_0x4221a2;if(_0x39d228){if('numberedList'==_0x39d228['commandName']||'bulletedList'==_0x39d228['commandName']||'todoList'==_0x39d228['commandName'])switch(_0x39d228['commandName']['replace']('List','')){case'bulleted':return _0x59db31(o(_0x324888,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x59db31(o(_0x324888,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x59db31(o(_0x324888,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39d228['commandName'])return{'type':'format','content':o(_0x324888,'*Indent:*\x20%0',o(_0x324888,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39d228['commandName'])return{'type':'format','content':o(_0x324888,'*Outdent:*\x20%0',o(_0x324888,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39d228['commandName'])return _0x39d228['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x324888,'*Check\x20item*')}:{'type':'format','content':o(_0x324888,'*Uncheck\x20item*')};}function _0x59db31(_0xe79fa1){return{'type':'format','content':o(_0x324888,'*Change\x20to:*\x20%0',_0xe79fa1)};}});}}function Le(_0x5bb4c9){const _0x237654=_0x5bb4c9['getAttribute']('listIndent');if(0x0==_0x237654)return _0x5bb4c9;let _0x1491dd=_0x5bb4c9;for(;_0x5bb4c9['previousSibling']&&_0x5bb4c9['previousSibling']['is']('element','listItem');){const _0x4ae10f=_0x5bb4c9['previousSibling']['getAttribute']('listIndent');if(_0x4ae10f==_0x237654)_0x1491dd=_0x5bb4c9['previousSibling'];else{if(_0x4ae10f<_0x237654)break;}_0x5bb4c9=_0x5bb4c9['previousSibling'];}return _0x1491dd;}function Ee(_0x22fa62){const _0x1c2f8c=[];if(_0x22fa62['is']('element','listItem')&&_0x22fa62['getAttribute']('listIndent')>0x0){let _0x4c948d=_0x22fa62['nextSibling'];for(;_0x4c948d&&'listItem'==_0x4c948d['name']&&_0x4c948d['getAttribute']('listIndent')==_0x22fa62['getAttribute']('listIndent');)_0x1c2f8c['push'](_0x4c948d),_0x4c948d=_0x4c948d['nextSibling'];}return _0x1c2f8c;}class ht extends _0x3befcd{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xfdd330=this['editor']['config']['get']('list.properties'),_0x258065=this['editor']['plugins']['get']('TrackChangesEditing');_0xfdd330['styles']&&_0x258065['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xfdd330['reversed']&&_0x258065['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xfdd330['startIndex']&&_0x258065['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x258065['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x33c5b3,_0xa9b373={}){const _0x414b6f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2abc9f=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x414b6f['markMultiRangeBlockFormat'](_0x2abc9f,{'commandName':'listStyle','commandParams':[{'type':_0xa9b373['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x5d5833,_0x268a0a={}){const _0x20beea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x488c2f=this['_getSuggestionBlocks'](_0x1a22f0=>_0x1a22f0['is']('element','listItem')&&'numbered'===_0x1a22f0['getAttribute']('listType'));if(_0x488c2f['length']<0x1)return;const _0x5770b8=_0x488c2f['map'](_0x51d68f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x51d68f,'before'),this['editor']['model']['createPositionAt'](_0x51d68f,0x0)));this['editor']['model']['change'](()=>{_0x20beea['markMultiRangeBlockFormat'](_0x5770b8,{'commandName':'listReversed','commandParams':[{'reversed':_0x268a0a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x161d0c,_0x509bab={}){const _0x144e94=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1901b6=this['_getSuggestionBlocks'](_0x5d9989=>_0x5d9989['is']('element','listItem')&&'numbered'===_0x5d9989['getAttribute']('listType'));if(_0x1901b6['length']<0x1)return;const _0x3bb1d4=_0x1901b6['map'](_0x117fec=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x117fec,'before'),this['editor']['model']['createPositionAt'](_0x117fec,0x0)));this['editor']['model']['change'](()=>{_0x144e94['markMultiRangeBlockFormat'](_0x3bb1d4,{'commandName':'listStart','commandParams':[{'startIndex':_0x509bab['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2b386){if('formatBlock'!=_0x2b386['type']&&'formatInline'!=_0x2b386['type'])return;const _0x45d7e9=this['editor']['locale'],{data:_0x548d98}=_0x2b386;if(!_0x548d98)return;let _0x1535a9,_0x531302;switch(_0x548d98['commandName']){case'listStyle':_0x1535a9='*Change\x20to:*\x20%0',_0x531302={'type':'format','content':o(_0x45d7e9,_0x1535a9,o(_0x45d7e9,this['_getTranslationKeyForListStyle'](_0x548d98['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1535a9=_0x548d98['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x531302={'type':'format','content':o(_0x45d7e9,_0x1535a9)};break;case'listStart':_0x1535a9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x531302={'type':'format','content':o(_0x45d7e9,_0x1535a9,_0x548d98['commandParams'][0x0]['startIndex'])};}return _0x531302;}['_getSuggestionBlocksForListStyle'](){const _0x4cedd6=this['editor']['plugins']['get']('LegacyListUtils');let _0x4d0a3e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4d0a3e[0x0]?.['is']('element','listItem')&&_0x4d0a3e['unshift'](..._0x4cedd6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4d0a3e[_0x4d0a3e['length']-0x1]?.['is']('element','listItem')&&_0x4d0a3e['push'](..._0x4cedd6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4d0a3e=[...new Set(_0x4d0a3e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4d0a3e=_0x4d0a3e['filter'](_0x2f720a=>_0x2f720a['is']('element','listItem'))),_0x4d0a3e;}['_getSuggestionBlocks'](_0x4d23e6){const _0x50a37b=this['editor']['plugins']['get']('LegacyListUtils');let _0xad9cfd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4d23e6)['map'](_0x2d0edd=>{const _0x6a5d18=this['editor']['model']['createPositionAt'](_0x2d0edd,0x0);return[..._0x50a37b['getSiblingNodes'](_0x6a5d18,'backward'),..._0x50a37b['getSiblingNodes'](_0x6a5d18,'forward')];})['flat']();return _0xad9cfd=[...new Set(_0xad9cfd)],_0xad9cfd;}['_getTranslationKeyForListStyle'](_0x5f2628){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5f2628)||'default')['toUpperCase']()+'_LIST_'+_0x5f2628['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x3befcd{['afterInit'](){const _0x3addfe=this['editor'];if(!_0x3addfe['plugins']['has']('MediaEmbedEditing'))return;const _0x831c50=_0x3addfe['plugins']['get']('TrackChangesEditing'),_0x27d926=_0x3addfe['locale'];_0x831c50['enableCommand']('mediaEmbed'),_0x831c50['descriptionFactory']['registerElementLabel']('media',_0x2d405d=>o(_0x27d926,'ELEMENT_MEDIA',_0x2d405d)),_0x3addfe['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x519d76,{writer:_0x5ad5c7,options:_0x3a1b94})=>{if(_0x3a1b94['showSuggestionHighlights'])return _0x5ad5c7['createEmptyElement']('div');},'converterPriority':'high'}),_0x3addfe['data']['downcastDispatcher']['on']('attribute:url:media',(_0x533118,_0xed8700,_0x5b7b26)=>{_0x5b7b26['options']['showSuggestionHighlights']&&_0x533118['stop']();},{'priority':'high'});}}class lt extends _0x3befcd{['afterInit'](){const _0x15c74=this['editor'];_0x15c74['plugins']['has']('MentionEditing')&&_0x15c74['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3befcd{['afterInit'](){const _0x252e55=this['editor'];if(!_0x252e55['plugins']['has']('MergeFieldsEditing'))return;const _0x1a35aa=_0x252e55['plugins']['get']('TrackChangesEditing'),_0x224243=_0x252e55['locale'];_0x1a35aa['enableCommand']('insertMergeField'),_0x1a35aa['enableCommand']('insertMergeFieldBlock'),_0x1a35aa['enableCommand']('insertMergeFieldImage'),_0x1a35aa['descriptionFactory']['registerElementLabel']('mergeField',_0x2d746a=>o(_0x224243,'ELEMENT_MERGE_FIELD',_0x2d746a)),_0x1a35aa['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x531bae=>o(_0x224243,'ELEMENT_MERGE_FIELD',_0x531bae)),_0x1a35aa['descriptionFactory']['registerDescriptionCallback'](_0x5df63a=>{if('insertion'!=_0x5df63a['type']&&'deletion'!=_0x5df63a['type'])return;const _0x5787d1=_0x5df63a['getContainedElement']();if(null==_0x5787d1)return;const _0x4a7dd1=_0x252e55['plugins']['get']('MergeFieldsEditing');let _0xac9a4b;switch(_0x4a7dd1['getMergeFieldType'](_0x5787d1)){case null:return;case'image':{const _0x11feee=_0x4a7dd1['unwrapAffixes'](_0x5787d1['getAttribute']('src'));_0xac9a4b=_0x4a7dd1['getLabel'](_0x11feee)||_0x11feee;break;}default:{const _0xd16b34=_0x5787d1['getAttribute']('id');_0xac9a4b=_0x4a7dd1['getLabel'](_0xd16b34)||_0xd16b34;break;}}return'insertion'==_0x5df63a['type']?{'type':'insertion','content':o(_0x224243,'*Insert:*\x20%0','\x22'+_0xac9a4b+'\x22\x20'+o(_0x224243,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x224243,'*Remove:*\x20%0','\x22'+_0xac9a4b+'\x22\x20'+o(_0x224243,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x3befcd{['afterInit'](){const _0x14707b=this['editor'],_0x5527f2=_0x14707b['plugins']['get']('TrackChangesEditing');_0x14707b['plugins']['has']('MultiLevelList')&&(_0x5527f2['enableDefaultAttributesIntegration']('multiLevelList'),_0x5527f2['registerBlockAttribute']('listMarkerStyle'),_0x5527f2['descriptionFactory']['registerDescriptionCallback'](_0x5eceea=>this['handleDescriptions'](_0x5eceea)));}['handleDescriptions'](_0x36d2be){const _0x168e1e=this['editor']['locale'],{data:_0x561e98}=_0x36d2be,_0x30e4b8={'type':'format','content':''};if(_0x561e98&&'listMarkerStyle'==_0x561e98['key']){if(!_0x561e98['oldValue'])return{'type':'format','content':o(_0x168e1e,'*Set\x20format:*\x20%0',o(_0x168e1e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x561e98['newValue']+')'};if(!_0x561e98['newValue']){let _0x58a96f=_0x36d2be['head'];for(;_0x58a96f;){if(_0x58a96f['data']&&'listType'==_0x58a96f['data']['key']&&_0x58a96f['data']['newValue'])return _0x30e4b8;_0x58a96f=_0x58a96f['next'];}return{'type':'format','content':o(_0x168e1e,'*Remove\x20format:*\x20%0',o(_0x168e1e,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x561e98['oldValue']+')'};}}}}class pt extends _0x3befcd{['afterInit'](){const _0x5617e6=this['editor'];if(!_0x5617e6['plugins']['has']('PageBreakEditing'))return;_0x5617e6['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x513f98=_0x5617e6['plugins']['get']('TrackChangesEditing'),_0x5ef881=_0x5617e6['locale'];_0x513f98['descriptionFactory']['registerElementLabel']('pageBreak',_0x2be868=>o(_0x5ef881,'ELEMENT_PAGE_BREAK',_0x2be868));}}class kt extends _0x3befcd{['afterInit'](){const _0xae96ad=this['editor'];if(!_0xae96ad['plugins']['has']('Paragraph'))return;const _0x9aa4fb=_0xae96ad['locale'],_0x4128a7=_0xae96ad['plugins']['get']('TrackChangesEditing');_0x4128a7['descriptionFactory']['registerElementLabel']('paragraph',_0x104c59=>o(_0x9aa4fb,'ELEMENT_PARAGRAPH',_0x104c59)),_0x4128a7['enableDefaultAttributesIntegration']('paragraph'),_0x4128a7['enableCommand']('insertParagraph'),_0xae96ad['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0xae96ad),{'priority':'highest'}),_0xae96ad['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e4970,_0x30895b,_0x356106)=>{_0x356106['options']['showSuggestionHighlights']&&nr(_0xae96ad,{'showActiveMarker':!0x1})(_0x1e4970,_0x30895b,_0x356106);},{'priority':'highest'});const _0x2cbe61=_0x4128a7['descriptionFactory'];_0x2cbe61['registerDescriptionCallback'](_0x31580f=>{if('insertion'!==_0x31580f['type'])return;const {start:_0x1391ef,end:_0x13695f}=_0x31580f['getFirstRange']();if(!_0x1391ef['isTouching'](_0x13695f)||!_0x1391ef['nodeAfter'])return;const _0x83b773=_0xae96ad['model']['schema'],_0x284e8c=_0x1391ef['nodeAfter'];return _0x83b773['isBlock'](_0x284e8c)&&!_0x83b773['isLimit'](_0x284e8c)&&_0x83b773['checkChild'](_0x284e8c,'$text')?{'type':'insertion','content':o(_0x9aa4fb,'*Insert:*\x20%0',_0x2cbe61['getItemLabel'](_0x284e8c,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d800b=this['editor'],_0x44a676=_0x1d800b['locale'];_0x1d800b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x125712=>{if('formatBlock'!=_0x125712['type'])return;const {data:_0x1611e0}=_0x125712;return _0x1611e0&&'paragraph'==_0x1611e0['commandName']?{'type':'format','content':o(_0x44a676,'*Change\x20to:*\x20%0',o(_0x44a676,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xad2644,{showActiveMarker:_0x565cd6=!0x0}={}){return(_0x4dc1dc,_0x5a5ef1,_0x1da5eb)=>{const _0x952062=_0xad2644['plugins']['get']('TrackChangesEditing'),_0x5bb377=_0x5a5ef1['markerRange']['start'],_0x8e98c1=_0x5a5ef1['markerRange']['end'],_0x3d746c=_0xad2644['model']['schema'];if(!_0x5bb377['isTouching'](_0x8e98c1)||!_0x5bb377['nodeAfter'])return;const _0x4ce896=_0x5bb377['nodeAfter'];if(_0x3d746c['isBlock'](_0x4ce896)&&!_0x3d746c['isLimit'](_0x4ce896)&&_0x3d746c['checkChild'](_0x4ce896,'$text')){if(!_0x1da5eb['consumable']['consume'](_0x5a5ef1['markerRange'],_0x4dc1dc['name']))return;const {id:_0x52258f,authorId:_0x126644}=_0x952062['_splitMarkerName'](_0x5a5ef1['markerName']),_0x1f6d3f=_0x1da5eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x52258f,'data-author-id':_0x126644}),_0x240d6a=_0x1da5eb['mapper']['toViewPosition'](_0x8e98c1);_0x565cd6&&_0x952062['activeMarkers']['includes'](_0x5a5ef1['markerName'])&&_0x1da5eb['writer']['addClass']('ck-suggestion-marker--active',_0x1f6d3f),_0x1da5eb['writer']['insert'](_0x240d6a,_0x1f6d3f),_0x1da5eb['mapper']['bindElementToMarker'](_0x1f6d3f,_0x5a5ef1['markerName']);}};}class wt extends _0x3befcd{['afterInit'](){const _0x3cba1c=this['editor'];_0x3cba1c['commands']['get']('replaceSource')&&_0x3cba1c['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x3befcd{['afterInit'](){const _0x3957d1=this['editor'];if(!_0x3957d1['plugins']['has']('RemoveFormatEditing'))return;_0x3957d1['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3416be=this['editor'];_0x3416be['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e2c9d=>{if('formatBlock'!=_0x1e2c9d['type']&&'formatInline'!=_0x1e2c9d['type'])return;const {data:_0x275e8b}=_0x1e2c9d;return _0x275e8b&&'removeFormat'==_0x275e8b['commandName']?{'type':'format','content':o(_0x3416be['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3befcd{['afterInit'](){const _0x213610=this['editor'];if(!_0x213610['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x26b461=_0x213610['plugins']['get']('TrackChangesEditing');_0x26b461['enableCommand']('goToPreviousRestrictedEditingException'),_0x26b461['enableCommand']('goToNextRestrictedEditingException');const _0x3fca6f=_0x213610['plugins']['get']('RestrictedEditingModeEditing');_0x3fca6f['enableCommand']('trackChanges'),_0x3fca6f['enableCommand']('acceptSuggestion'),_0x3fca6f['enableCommand']('discardSuggestion'),_0x3fca6f['enableCommand']('acceptAllSuggestions'),_0x3fca6f['enableCommand']('discardAllSuggestions'),_0x3fca6f['enableCommand']('acceptSelectedSuggestions'),_0x3fca6f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3befcd{['afterInit'](){const _0x4f1c42=this['editor'];if(!_0x4f1c42['plugins']['has']('ShiftEnter'))return;const _0x121816=_0x4f1c42['plugins']['get']('TrackChangesEditing');_0x121816['enableCommand']('shiftEnter'),_0x4f1c42['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x4f1c42),{'priority':'high'}),_0x4f1c42['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x4f1c42),{'priority':'high'}),_0x4f1c42['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2cab8a,_0x53ad16,_0x3590c1)=>{_0x3590c1['options']['showSuggestionHighlights']&&je(_0x4f1c42,{'showActiveMarker':!0x1})(_0x2cab8a,_0x53ad16,_0x3590c1);}),_0x121816['descriptionFactory']['registerElementLabel']('softBreak',_0x283a5a=>o(_0x4f1c42['locale'],'ELEMENT_LINE_BREAK',_0x283a5a));}}function je(_0x825279,{showActiveMarker:_0x344097=!0x0}={}){return(_0x3e16ba,_0x5c19a4,_0x122078)=>{const _0x666ef4=_0x825279['plugins']['get']('TrackChangesEditing');if(!_0x122078['consumable']['test'](_0x5c19a4['markerRange'],_0x3e16ba['name']))return;const _0x2d9440=_0x825279['model'];for(const _0x2c732e of _0x5c19a4['markerRange']['getItems']()){if(!_0x2c732e['is']('element','softBreak'))continue;const _0x4f4e0b='deletion'==_0x5c19a4['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x4625bf,authorId:_0x1e8654}=_0x666ef4['_splitMarkerName'](_0x5c19a4['markerName']),_0x53225a=_0x122078['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4f4e0b,'data-suggestion':_0x4625bf,'data-author-id':_0x1e8654}),_0x20c379=_0x122078['mapper']['toViewPosition'](_0x2d9440['createPositionBefore'](_0x2c732e));_0x344097&&_0x666ef4['activeMarkers']['includes'](_0x5c19a4['markerName'])&&_0x122078['writer']['addClass']('ck-suggestion-marker--active',_0x53225a),_0x122078['writer']['insert'](_0x20c379,_0x53225a),_0x122078['mapper']['bindElementToMarker'](_0x53225a,_0x5c19a4['markerName']);}};}class St extends _0x3befcd{['afterInit'](){const _0x314700=this['editor'],_0x2d73c8=_0x314700['model'],_0x52da50=_0x314700['locale'];if(!_0x314700['plugins']['has']('StandardEditingModeEditing'))return;const _0xf5b58b=_0x314700['plugins']['get']('TrackChangesEditing'),_0x5691ce='restrictedEditingException',_0x5622c4=_0x314700['commands']['get'](_0x5691ce);_0xf5b58b['enableCommand'](_0x5691ce,(_0x48f243,_0x4b1e64={})=>{const _0x467bdc=_0x2d73c8['document']['selection'];if(_0x467bdc['isCollapsed'])return void _0x48f243(_0x4b1e64);const _0x1bec29=void 0x0!==_0x4b1e64['forceValue']?_0x4b1e64['forceValue']:!_0x5622c4['value'];_0x2d73c8['change'](()=>{const _0x343f44=Array['from'](_0x467bdc['getRanges']());for(const _0x225c57 of _0x343f44){const _0x13cf3c=_0x1bec29?[_0x225c57]:io(_0x5691ce,_0x225c57,_0x2d73c8);for(const _0x2f1113 of _0x13cf3c)_0xf5b58b['markInlineFormat'](_0x2f1113,{'commandName':_0x5691ce,'commandParams':[{'forceValue':_0x1bec29}]});}});}),_0xf5b58b['descriptionFactory']['registerDescriptionCallback'](_0x10fe11=>{if('formatBlock'!=_0x10fe11['type']&&'formatInline'!=_0x10fe11['type'])return;const {data:_0x2bedfe}=_0x10fe11;return _0x2bedfe&&_0x2bedfe['commandName']==_0x5691ce?_0x2bedfe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52da50,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x52da50,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x3befcd{['afterInit'](){const _0x2e7e4d=this['editor'];if(!_0x2e7e4d['plugins']['has']('Style')||!_0x2e7e4d['plugins']['has']('DataSchema'))return;const _0x1cd17b=_0x2e7e4d['plugins']['get']('TrackChangesEditing'),_0xc7c938=_0x2e7e4d['locale'],_0x52b43c=_0x2e7e4d['config']['get']('style')||{},_0x5c61c3=_0x2e7e4d['plugins']['get']('GeneralHtmlSupport'),_0xaec250=_0x2e7e4d['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2e7e4d['plugins']['get']('DataSchema'),_0x52b43c['definitions']);_0x1cd17b['enableDefaultAttributesIntegration']('style');const _0x2ef146=new Set();for(const _0x3e2568 of _0xaec250['block']){const _0x269312=_0x5c61c3['getGhsAttributeNameForElement'](_0x3e2568['element']);_0x2ef146['add'](_0x269312);}const _0x26f7dd=new Set();for(const _0x631a78 of _0xaec250['inline']){const _0x5d4221=_0x5c61c3['getGhsAttributeNameForElement'](_0x631a78['element']);_0x26f7dd['add'](_0x5d4221);for(const _0xcc6c7d of _0x631a78['ghsAttributes'])_0x26f7dd['add'](_0xcc6c7d);}for(const _0x1d4cd8 of _0x2ef146)_0x1cd17b['registerBlockAttribute'](_0x1d4cd8),_0x1cd17b['descriptionFactory']['registerAttributeLabel'](_0x1d4cd8,o(_0xc7c938,'FORMAT_STYLE'));for(const _0x379251 of _0x26f7dd)_0x1cd17b['registerInlineAttribute'](_0x379251),_0x1cd17b['descriptionFactory']['registerAttributeLabel'](_0x379251,o(_0xc7c938,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8ea479=this['editor'],_0x2fce19=_0x8ea479['locale'];_0x8ea479['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19b989=>{if('formatBlock'!=_0x19b989['type']&&'formatInline'!=_0x19b989['type'])return;const {data:_0x412476}=_0x19b989;return _0x412476&&'style'===_0x412476['commandName']?_0x412476['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2fce19,'*Set\x20format:*\x20%0',_0x412476['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x2fce19,'*Remove\x20format:*\x20%0',_0x412476['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x3befcd{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x45dbab){super(_0x45dbab),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x59e54d=this['editor'],_0xaf53da=_0x59e54d['model']['document']['selection'];if(!_0x59e54d['plugins']['has']('TableEditing'))return;const _0x40bb7d=_0x59e54d['locale'],_0x48704f=_0x59e54d['plugins']['get']('TrackChangesEditing'),_0x1c4658=_0x59e54d['plugins']['get']('TableUtils');_0x48704f['descriptionFactory']['registerElementLabel']('table',_0x265b96=>o(_0x40bb7d,'ELEMENT_TABLE',_0x265b96)),this['_setupColumnsRowsFixing'](),_0x48704f['enableCommand']('insertTable'),_0x48704f['enableCommand']('selectTableRow'),_0x48704f['enableCommand']('selectTableColumn');for(const _0x42774f of['insertTableRowAbove','insertTableRowBelow']){const _0xc8a42b=_0x59e54d['commands']['get'](_0x42774f);_0x48704f['enableCommand'](_0x42774f,_0x6f8d63=>{_0x59e54d['model']['change'](_0x41fd15=>{_0x6f8d63();const _0x18b898='above'===_0xc8a42b['order'],_0x26fd2a=_0x1c4658['getSelectionAffectedTableCells'](_0xaf53da),_0x35571a=_0x1c4658['getRowIndexes'](_0x26fd2a),_0x52dbd0=_0x18b898?_0x35571a['first']-0x1:_0x35571a['last']+0x1,_0x2b9b0e=_0x26fd2a[0x0]['findAncestor']('table'),_0x598380=_0x1c4658['createTableWalker'](_0x2b9b0e,{'startRow':_0x52dbd0,'endRow':_0x52dbd0}),_0x4e70d9=Array['from'](_0x598380)['map'](_0x5a29a9=>_0x41fd15['createRangeOn'](_0x5a29a9['cell']));_0x48704f['markMultiRangeInsertion'](_0x4e70d9,'tableRow');});});}for(const _0x39e9fc of['insertTableColumnLeft','insertTableColumnRight']){const _0x4ccdfa=_0x59e54d['commands']['get'](_0x39e9fc);_0x48704f['enableCommand'](_0x39e9fc,_0x16d51e=>{_0x59e54d['model']['change'](_0xb60229=>{_0x16d51e();const _0x3d2b29='left'===_0x4ccdfa['order'],_0x38fba7=_0x1c4658['getSelectionAffectedTableCells'](_0xaf53da),_0x5b649f=_0x1c4658['getColumnIndexes'](_0x38fba7),_0x362904=_0x3d2b29?_0x5b649f['first']-0x1:_0x5b649f['last']+0x1,_0x11002e=_0x38fba7[0x0]['findAncestor']('table'),_0x5d46d7=_0x1c4658['createTableWalker'](_0x11002e,{'startRow':0x0,'column':_0x362904,'includeAllSlots':!0x1}),_0x1bbd0b=Array['from'](_0x5d46d7)['map'](_0x384a9f=>_0xb60229['createRangeOn'](_0x384a9f['cell']));_0x48704f['markMultiRangeInsertion'](_0x1bbd0b,'tableColumn');});});}for(const _0x4a4bd0 of['removeTableRow','removeTableColumn']){const _0x28bfc8=_0x4a4bd0['substr'](0xb),_0x481414=_0x28bfc8['toLowerCase'](),_0x1fe833=_0x481414['substr'](0x0,0x3)+'span',_0x567866='table'+_0x28bfc8,_0x5027de='min'+_0x28bfc8,_0x49a67f='max'+_0x28bfc8;_0x48704f['enableCommand'](_0x4a4bd0,()=>{_0x59e54d['model']['change'](_0x161907=>{const _0x15f8b3=_0x1c4658['getSelectionAffectedTableCells'](_0xaf53da),_0x2a80f7=_0x15f8b3[0x0]['findAncestor']('table');let _0x478eb2;if('removeTableRow'==_0x4a4bd0){const _0x56c13c=_0x1c4658['getRowIndexes'](_0x15f8b3);_0x478eb2={'startRow':_0x56c13c['first'],'endRow':_0x56c13c['last'],'includeAllSlots':!0x0};}else{const _0x514fe6=_0x1c4658['getColumnIndexes'](_0x15f8b3);_0x478eb2={'startColumn':_0x514fe6['first'],'endColumn':_0x514fe6['last'],'includeAllSlots':!0x0};}const _0x5b805d=_0x1c4658['createTableWalker'](_0x2a80f7,_0x478eb2),_0x137b6f=Array['from'](_0x5b805d)['map'](({cell:_0x39dcc4})=>_0x39dcc4),_0x4340e8=Ne(_0x137b6f['filter'](_0x3a444d=>_0x3a444d['hasAttribute'](_0x1fe833))),_0x357bc5=Ne(_0x137b6f['filter'](_0x483966=>!_0x483966['hasAttribute'](_0x1fe833)))['map'](_0x5558da=>_0x161907['createRangeOn'](_0x5558da)),_0x3a3554=_0x48704f['markMultiRangeDeletion'](_0x357bc5,_0x567866);if(_0x3a3554&&('tableRow'==_0x3a3554['subType']||'tableColumn'==_0x3a3554['subType'])){const _0x1de452=this['_getSuggestionCoords'](_0x3a3554);for(const _0x367381 of _0x4340e8){const _0x52ce6b=_0x161907['createRangeOn'](_0x367381),_0x171cb0=_0x1c4658['getCellLocation'](_0x367381),_0x2b29f2=_0x367381['getAttribute'](_0x1fe833)-0x1,_0x272414=_0x1de452[_0x5027de],_0x295137=_0x1de452[_0x49a67f];_0x272414<=_0x171cb0[_0x481414]&&_0x171cb0[_0x481414]+_0x2b29f2<=_0x295137&&_0x3a3554['addRange'](_0x52ce6b);}}});});}function _0x4fb7ff(_0x395921){const _0x1aece7=Array['from'](_0xaf53da['getRanges']())['map'](_0x53e9f4=>_0x39c36c['fromRange'](_0x53e9f4));_0x59e54d['model']['change'](_0x4ecc68=>{const _0x493686=_0x4ecc68['batch'];_0x395921=_0x395921['filter'](_0x54cd7c=>'$graveyard'!=_0x54cd7c['root']['rootName']),_0x4ecc68['setSelection'](_0x395921),_0x59e54d['commands']['get']('removeTableRow')['refresh'](),_0x59e54d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x59e54d['model']['enqueueChange'](()=>{_0x59e54d['model']['enqueueChange'](_0x493686,_0xe33ca6=>{const _0x5e6cec=_0x1aece7['filter'](_0x109278=>'$graveyard'!=_0x109278['root']['rootName']);_0x5e6cec['length']>0x0&&_0xe33ca6['setSelection'](_0x5e6cec);for(const _0x1c9e2e of _0x1aece7)_0x1c9e2e['detach']();});});});}function _0x3a5a75(_0x5789bb){_0x59e54d['model']['change'](_0x1278fa=>{const _0x36a0f4=Array['from'](_0xaf53da['getRanges']())['map'](_0xabd95e=>_0x39c36c['fromRange'](_0xabd95e)),_0x4cb7a4=[];for(const _0x310569 of _0x5789bb)for(const _0xa68b00 of _0x310569['getItems']({'shallow':!0x0}))_0x4cb7a4['push'](_0xa68b00);for(const _0x577035 of _0x4cb7a4)'$graveyard'!=_0x577035['root']['rootName']&&(_0x1278fa['setSelection'](_0x1278fa['createPositionAt'](_0x577035,0x0)),_0x59e54d['commands']['get']('removeTableColumn')['refresh'](),_0x59e54d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2efa0f=_0x36a0f4['filter'](_0x2d0481=>'$graveyard'!=_0x2d0481['root']['rootName']);_0x2efa0f['length']>0x0&&_0x1278fa['setSelection'](_0x2efa0f);for(const _0x1016ec of _0x36a0f4)_0x1016ec['detach']();});}function _0x2cebae(_0x53e818,_0x3db13d){return _0x3db13d['every'](_0x1a1519=>_0x53e818['some'](_0xe3c525=>_0xe3c525['end']['isEqual'](_0x1a1519['start'])||_0x1a1519['end']['isEqual'](_0xe3c525['start'])));}function _0x1b2a02(_0x49eaac,_0xf9e1a1){return!_0x49eaac['some'](_0x5b755c=>_0xf9e1a1['some'](_0x562f57=>_0x5b755c['isIntersecting'](_0x562f57)))&&_0x49eaac['some'](_0x39e0dd=>_0xf9e1a1['some'](_0x5de87a=>_0x39e0dd['end']['isTouching'](_0x5de87a['start'])));}_0x59e54d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11c674,_0x22eef2,_0x20b89)=>{if(!_0x20b89['options']['showSuggestionHighlights'])return;const _0x1acec6=_0x22eef2['item'];if(!_0x1acec6||!_0x1acec6['is']('element','tableCell'))return;const _0x552f59=_0x20b89['mapper']['toViewElement'](_0x1acec6);if(_0x552f59){const {id:_0x58b139,authorId:_0x1a355b}=_0x48704f['_splitMarkerName'](_0x22eef2['markerName']);_0x309566(_0x552f59,_0x20b89['writer'],(_0x52d188,_0x3d5b88,_0x3a8acd)=>{_0x3a8acd['addClass'](_0x587b9c(_0x3d5b88['classes']),_0x52d188),_0x3a8acd['setAttribute']('data-suggestion-id',_0x58b139,_0x52d188),_0x3a8acd['setAttribute']('data-author-id',_0x1a355b,_0x52d188);},(_0x4f0639,_0x28d741,_0x3075dd)=>{_0x3075dd['removeClass'](_0x587b9c(_0x28d741['classes']),_0x4f0639),_0x3075dd['removeAttribute']('data-suggestion-id',_0x4f0639),_0x3075dd['removeAttribute']('data-author-id',_0x4f0639);});}},{'priority':'highest'}),_0x48704f['descriptionFactory']['registerDescriptionCallback'](_0x1ab16a=>{if('insertion'!=_0x1ab16a['type']&&'deletion'!=_0x1ab16a['type'])return;const _0x599a46=_0x1ab16a['getContainedElement']();if(null!=_0x599a46&&_0x599a46['is']('element','table')){if('insertion'==_0x1ab16a['type']){const _0x24ddcf=_0x1ab16a['getItems']()['filter'](_0x4aa608=>_0x4aa608['is']('$textProxy'))['map'](_0x213413=>_0x213413['data']);if(_0x24ddcf['length'])return{'type':'insertion','content':o(_0x40bb7d,'*Insert:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x24ddcf['join']('\x20')+'\x22'))};}if('deletion'==_0x1ab16a['type']){const _0x6b0e84=_0x1ab16a['getItems']()['filter'](_0x2f9b39=>_0x2f9b39['is']('$textProxy'))['map'](_0x47166f=>_0x47166f['data']);if(_0x6b0e84['length'])return{'type':'deletion','content':o(_0x40bb7d,'*Remove:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x6b0e84['join']('\x20')+'\x22'))};}}}),_0x48704f['descriptionFactory']['registerDescriptionCallback'](_0x65132b=>{if('tableRow'==_0x65132b['subType']){const _0x2a0ca7=_0x65132b['getItems']()['filter'](_0x1511ea=>_0x1511ea['is']('$textProxy'))['map'](_0x58e3d6=>_0x58e3d6['data']),_0x1241aa=this['_getSuggestionCoords'](_0x65132b),_0x531da7=_0x1241aa['maxRow']-_0x1241aa['minRow']+0x1;if('insertion'==_0x65132b['type'])return _0x2a0ca7['length']?{'type':'insertion','content':o(_0x40bb7d,'*Insert:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x531da7,'\x22'+_0x2a0ca7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40bb7d,'*Insert:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_ROW',_0x531da7))};if('deletion'==_0x65132b['type'])return _0x2a0ca7['length']?{'type':'deletion','content':o(_0x40bb7d,'*Remove:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x531da7,'\x22'+_0x2a0ca7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40bb7d,'*Remove:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_ROW',_0x531da7))};}if('tableColumn'==_0x65132b['subType']){const _0x8858b4=_0x65132b['getItems']()['filter'](_0x55277c=>_0x55277c['is']('$textProxy'))['map'](_0x90e376=>_0x90e376['data']),_0x3becb8=this['_getSuggestionCoords'](_0x65132b),_0x286b03=_0x3becb8['maxColumn']-_0x3becb8['minColumn']+0x1;if('insertion'==_0x65132b['type'])return _0x8858b4['length']?{'type':'insertion','content':o(_0x40bb7d,'*Insert:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286b03,'\x22'+_0x8858b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x40bb7d,'*Insert:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_COLUMN',_0x286b03))};if('deletion'==_0x65132b['type'])return _0x8858b4['length']?{'type':'deletion','content':o(_0x40bb7d,'*Remove:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x286b03,'\x22'+_0x8858b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x40bb7d,'*Remove:*\x20%0',o(_0x40bb7d,'ELEMENT_TABLE_COLUMN',_0x286b03))};}}),_0x48704f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4fb7ff),_0x48704f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4fb7ff),_0x48704f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3a5a75),_0x48704f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3a5a75),_0x48704f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2cebae),_0x48704f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2cebae),_0x48704f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1b2a02),_0x48704f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1b2a02);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b08dd=this['editor'],_0x485bf9=_0x4b08dd['model']['document']['selection'];return(_0x281062,_0x5be599)=>{_0x4b08dd['model']['change'](_0xa46ade=>{const {commandName:_0x2d041a,commandParams:_0x4905c4}=_0x5be599;let _0x5cffc9=_0x281062[0x0]['end']['nodeBefore'];_0x4905c4&&_0x4905c4[0x0]&&!0x1===_0x4905c4[0x0]['forceValue']&&(_0x5cffc9=_0x281062[0x0]['start']['nodeAfter']);const _0x1f776b=_0xa46ade['createRangeIn'](_0x5cffc9);if('$graveyard'==_0x1f776b['root']['rootName'])return;const _0x36127d=Array['from'](_0x485bf9['getRanges']())['map'](_0x53354a=>_0x39c36c['fromRange'](_0x53354a));_0xa46ade['setSelection'](_0x1f776b),_0x4b08dd['commands']['get'](_0x2d041a)['refresh'](),_0x4905c4['push']({'forceDefaultExecution':!0x0}),_0x4b08dd['execute'](_0x2d041a,..._0x4905c4);const _0x59d94f=_0x36127d['filter'](_0x4591ba=>'$graveyard'!=_0x4591ba['root']['rootName']);_0x59d94f['length']>0x0&&_0xa46ade['setSelection'](_0x59d94f);for(const _0x4f4352 of _0x36127d)_0x4f4352['detach']();});};}['_getCoordsForCells'](_0x3d1bc7){const _0x3ac2f6=this['editor']['plugins']['get']('TableUtils');let _0x3fb3e1=Number['MAX_SAFE_INTEGER'],_0x2694c0=Number['MIN_SAFE_INTEGER'],_0x402240=Number['MAX_SAFE_INTEGER'],_0x527f50=Number['MIN_SAFE_INTEGER'];for(const _0x394397 of _0x3d1bc7){if('$graveyard'==_0x394397['root']['rootName'])continue;const {row:_0x5d3a48,column:_0x8c9a3c}=_0x3ac2f6['getCellLocation'](_0x394397),_0x4410b6=_0x394397['hasAttribute']('rowspan')?_0x394397['getAttribute']('rowspan')-0x1:0x0,_0x142467=_0x394397['hasAttribute']('colspan')?_0x394397['getAttribute']('colspan')-0x1:0x0;_0x3fb3e1=_0x5d3a48<_0x3fb3e1?_0x5d3a48:_0x3fb3e1,_0x2694c0=_0x5d3a48+_0x4410b6>_0x2694c0?_0x5d3a48+_0x4410b6:_0x2694c0,_0x402240=_0x8c9a3c<_0x402240?_0x8c9a3c:_0x402240,_0x527f50=_0x8c9a3c+_0x142467>_0x527f50?_0x8c9a3c+_0x142467:_0x527f50;}return{'minRow':_0x3fb3e1,'maxRow':_0x2694c0,'minColumn':_0x402240,'maxColumn':_0x527f50};}['_setupColumnsRowsFixing'](){const _0x337812=this['editor'],_0x592104=_0x337812['plugins']['get']('TrackChangesEditing'),_0x349dd2=_0x337812['plugins']['get']('TableUtils');_0x337812['model']['document']['on']('change:data',()=>{const _0x28ea4c=Array['from'](_0x337812['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4bcef9,data:_0x1cefee}of _0x28ea4c){const {group:_0xe06490,id:_0x161311,subType:_0x484b0a}=_0x592104['_splitMarkerName'](_0x4bcef9);if('suggestion'!=_0xe06490)continue;if(null!=_0x1cefee['oldRange'])continue;const _0x30f388=_0x592104['getSuggestion'](_0x161311);this['_tablePostFixingSubtypes']['includes'](_0x484b0a)&&this['_tableSuggestions']['add'](_0x30f388);}},{'priority':'low'});const _0x2f297a=(_0x5cc5d9,_0x48bef7)=>{let _0x1ce1c5=!0x1;const _0x176eb4=_0x48bef7['createRangeOn'](_0x5cc5d9),_0x4acf42=_0x5cc5d9['findAncestor']('table'),_0x2fa6f0=_0x349dd2['getCellLocation'](_0x5cc5d9);for(const _0x283bf0 of this['_tableSuggestions']){const _0x23d9e4=_0x283bf0['subType'],_0x21995d=_0x23d9e4['startsWith']('tablePaste'),_0x16c0e6=_0x23d9e4['substr'](_0x21995d?0xa:0x5),_0x55cd0c=_0x16c0e6['toLowerCase'](),_0x4ff78e=_0x55cd0c['substr'](0x0,0x3)+'span',_0x3d85aa='min'+_0x16c0e6,_0x120006='max'+_0x16c0e6;if(!_0x283bf0['isInContent'])continue;if(_0x4acf42!=_0x283bf0['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x283bf0['isIntersectingWithRange'](_0x176eb4))continue;const _0x15b916=_0x5cc5d9['hasAttribute'](_0x4ff78e)?_0x5cc5d9['getAttribute'](_0x4ff78e)-0x1:0x0,_0x42d990=this['_getSuggestionCoords'](_0x283bf0),_0x30db2b=_0x42d990[_0x3d85aa],_0x5db854=_0x42d990[_0x120006];_0x30db2b<=_0x2fa6f0[_0x55cd0c]&&_0x2fa6f0[_0x55cd0c]+_0x15b916<=_0x5db854&&(_0x283bf0['addRange'](_0x176eb4),_0x1ce1c5=!0x0);}return _0x1ce1c5;};_0x337812['model']['document']['registerPostFixer'](_0x21aa10=>{let _0x3833e9=!0x1;for(const _0x35cc1c of _0x337812['model']['document']['differ']['getChanges']())if('insert'==_0x35cc1c['type']){if('tableRow'==_0x35cc1c['name']){for(const _0x58f6ff of _0x35cc1c['position']['nodeAfter']['getChildren']())_0x3833e9=_0x3833e9||_0x2f297a(_0x58f6ff,_0x21aa10);}else'tableCell'==_0x35cc1c['name']&&(_0x3833e9=_0x3833e9||_0x2f297a(_0x35cc1c['position']['nodeAfter'],_0x21aa10));}return _0x3833e9;});}['_getSuggestionCoords'](_0x385cc2){return this['_getCoordsForCells'](_0x385cc2['getRanges']()['map'](_0x4e8d9f=>_0x4e8d9f['start']['nodeAfter']));}}function Ne(_0x150530){return Array['from'](new Set(_0x150530)['values']());}class _t extends _0x3befcd{static get['requires'](){return[At];}['afterInit'](){const _0x34dc96=this['editor'],_0x2a3f98=_0x34dc96['model']['document']['selection'],_0x112339=_0x34dc96['locale'];if(!_0x34dc96['plugins']['has']('TableEditing'))return;const _0x42029b=_0x34dc96['plugins']['get']('TrackChangesEditing'),_0x5906e9=_0x34dc96['plugins']['get']('TableUtils'),_0x37002c=_0x34dc96['plugins']['get'](At);_0x37002c['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x42029b['enableCommand']('mergeTableCells',()=>{const _0x4882da=_0x5906e9['getSelectionAffectedTableCells'](_0x34dc96['model']['document']['selection']);_0x34dc96['model']['change'](()=>{_0x42029b['markMultiRangeBlockFormat'](_0x4882da,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x34dc96['commands']['get']('mergeTableCells')['on']('execute',(_0xb97364,_0xbcdbaf)=>{_0x34dc96['commands']['get']('trackChanges')['value']&&(_0xbcdbaf['length']>0x0&&_0xbcdbaf[_0xbcdbaf['length']-0x1]&&_0xbcdbaf[_0xbcdbaf['length']-0x1]['forceDefaultExecution']||_0x42029b['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0xb97364['stop']());},{'priority':'highest'});for(const _0x3835fb of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x476fc5=_0x34dc96['commands']['get'](_0x3835fb);_0x42029b['enableCommand'](_0x3835fb,()=>{const _0x29a652=_0x34dc96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5b5e65=>_0x5b5e65['is']('element','tableCell')),_0x4c248b=_0x476fc5['value'];_0x34dc96['model']['change'](()=>{_0x42029b['markMultiRangeBlockFormat']([_0x29a652,_0x4c248b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1213d6 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x402e4d=_0x34dc96['commands']['get'](_0x1213d6);_0x42029b['enableCommand'](_0x1213d6,()=>{const _0x4c1784=_0x5906e9['getSelectionAffectedTableCells'](_0x34dc96['model']['document']['selection'])[0x0],_0x2d38fb=_0x4c1784['findAncestor']('table'),{column:_0x1546f6,row:_0x1e2ac8}=_0x5906e9['getCellLocation'](_0x4c1784);let _0x341687=[];if('horizontally'==_0x402e4d['direction']){const _0xe579dc=_0x5906e9['createTableWalker'](_0x2d38fb,{'startRow':_0x1e2ac8,'endRow':_0x1e2ac8,'includeAllSlots':!0x0});_0x341687=Array['from'](_0xe579dc)['map'](_0x20900e=>_0x20900e['cell']);}else{const _0x26dd63=_0x5906e9['createTableWalker'](_0x2d38fb,{'column':_0x1546f6,'includeAllSlots':!0x0});_0x341687=Array['from'](_0x26dd63)['map'](_0x11bfdd=>_0x11bfdd['cell']);}_0x34dc96['model']['change'](_0x4cbee9=>{_0x42029b['markBlockFormat'](_0x4cbee9['createRangeOn'](_0x4c1784),{'commandName':_0x1213d6,'commandParams':[]},_0x341687,_0x1213d6);});});}_0x42029b['descriptionFactory']['registerDescriptionCallback'](_0x2a5cb2=>{if('formatBlock'!=_0x2a5cb2['type']&&'formatInline'!=_0x2a5cb2['type'])return;const {data:_0x337b4d}=_0x2a5cb2;return _0x337b4d&&'mergeTableCells'==_0x337b4d['commandName']?{'type':'format','content':o(_0x112339,'*Merge\x20cells*')}:void 0x0;}),_0x42029b['descriptionFactory']['registerDescriptionCallback'](_0x361228=>{if('formatBlock'!=_0x361228['type']&&'formatInline'!=_0x361228['type'])return;const {data:_0xd27071}=_0x361228;return _0xd27071?'splitTableCellVertically'==_0xd27071['commandName']?{'type':'format','content':o(_0x112339,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0xd27071['commandName']?{'type':'format','content':o(_0x112339,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x2c2af6=_0x37002c['_acceptFormatSuggestionCallbackFactory']();for(const _0x17ebe5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x42029b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x17ebe5,'accept',_0x2c2af6);for(const _0x3915c4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x42029b['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3915c4,'accept',_0x2c2af6);_0x42029b['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4dc984=>{_0x34dc96['model']['change'](_0x3027ca=>{const _0x216c30=Array['from'](_0x2a3f98['getRanges']())['map'](_0x57636c=>_0x39c36c['fromRange'](_0x57636c));_0x3027ca['setSelection'](_0x4dc984),_0x34dc96['commands']['get']('mergeTableCells')['refresh'](),_0x34dc96['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x39629d=_0x216c30['filter'](_0x556621=>'$graveyard'!=_0x556621['root']['rootName']);_0x39629d['length']>0x0&&_0x3027ca['setSelection'](_0x39629d);for(const _0x2245f3 of _0x216c30)_0x2245f3['detach']();});});for(const _0x2a7fde of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3cec09=_0x34dc96['commands']['get'](_0x2a7fde);_0x3cec09['on']('set:isEnabled',(_0x562c53,_0x5ea6a7,_0x43f1d7)=>{if(_0x43f1d7){const _0x3899fb=_0x34dc96['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x10db17=>_0x10db17['is']('element','tableCell'));this['_areMergableCells'](_0x3cec09['value'],_0x3899fb)||(_0x562c53['return']=!0x1,_0x562c53['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3d41bc=this['editor']['commands']['get']('mergeTableCells'),_0x2fb953=this['editor']['plugins']['get']('TableUtils');if(!_0x3d41bc['isEnabled'])return!0x1;const _0x1990ca=_0x2fb953['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x448c68 of _0x1990ca)for(const _0x25feb6 of _0x1990ca)if(_0x448c68!=_0x25feb6&&!this['_areMergableCells'](_0x448c68,_0x25feb6))return!0x1;return!0x0;}['_areMergableCells'](_0x5798f4,_0x5a5d97){const _0x2bca60=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b78cd=this['editor']['model']['createRangeOn'](_0x5798f4),_0x141f1b=this['editor']['model']['createRangeOn'](_0x5a5d97),_0x24b24f=new Set(),_0x539c4e=new Set();for(const _0x3fc827 of _0x2bca60['getSuggestions']())if(('insertion'==_0x3fc827['type']||'deletion'==_0x3fc827['type']||'mergeTableCells'==_0x3fc827['subType'])&&_0x3fc827['isInContent']){for(const _0x56ace1 of _0x3fc827['getRanges']())_0x56ace1['containsRange'](_0x4b78cd,!0x0)&&_0x24b24f['add'](_0x3fc827['type']+':'+_0x3fc827['author']['id']),_0x56ace1['containsRange'](_0x141f1b,!0x0)&&_0x539c4e['add'](_0x3fc827['type']+':'+_0x3fc827['author']['id']);}if(_0x24b24f['size']!=_0x539c4e['size'])return!0x1;for(const _0x3c8cce of _0x24b24f)if(!_0x539c4e['has'](_0x3c8cce))return!0x1;return!0x0;}}class Ct extends _0x3befcd{static get['requires'](){return[At];}['afterInit'](){const _0x4b789c=this['editor'];if(!_0x4b789c['plugins']['has']('TableEditing'))return;const _0x23efbf=_0x4b789c['locale'],_0x3eb71c=_0x4b789c['plugins']['get']('TrackChangesEditing');_0x3eb71c['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3eb71c['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3eb71c['registerBlockAttribute']('headingRows'),_0x3eb71c['registerBlockAttribute']('headingColumns'),_0x3eb71c['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x23efbf,'FORMAT_HEADER_ROW')),_0x3eb71c['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x23efbf,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4377d0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494f58=this['editor']['plugins']['get']('TableUtils'),_0x58d3cc=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1835b2({showActiveMarker:_0x5f0665=!0x0,setDataAttribute:_0x3c737=!0x0}={}){return(_0x54a815,_0x247b79,_0x26d6f0)=>{const {type:_0x2e4c97,id:_0x1df60f}=_0x4377d0['_splitMarkerName'](_0x247b79['markerName']),_0xb34298=_0x4377d0['getSuggestion'](_0x1df60f),_0x381cdd=_0xb34298['data'];if('formatBlock'!=_0xb34298['type']||!_0x381cdd||'setTableColumnHeader'!=_0x381cdd['commandName'])return;if(_0x247b79['item'])return void _0x54a815['stop']();if(!_0x26d6f0['consumable']['consume'](_0x247b79['markerRange'],_0x54a815['name']))return;const _0x5aa4e4=_0x247b79['markerRange']['start']['nodeAfter'],_0xfa305b=_0x247b79['markerRange']['end']['nodeBefore'],_0x3c7dc5=_0x5aa4e4['parent']['parent'],{column:_0x463508}=_0x494f58['getCellLocation'](_0x5aa4e4),{column:_0x502ccf}=_0x494f58['getCellLocation'](_0xfa305b);for(let _0xf94169=_0x463508;_0xf94169<=_0x502ccf;_0xf94169++){const _0x2ba715=_0x494f58['createTableWalker'](_0x3c7dc5,{'column':_0xf94169,'includeAllSlots':!0x1});for(const _0x458bcb of _0x2ba715){const _0x2230e3=_0x458bcb['cell'],_0x32d10c=_0x26d6f0['mapper']['toViewElement'](_0x2230e3);_0x26d6f0['writer']['addClass']('ck-suggestion-marker-'+_0x2e4c97,_0x32d10c),_0x3c737&&_0x26d6f0['writer']['setAttribute']('data-suggestion',_0x1df60f,_0x32d10c),_0x26d6f0['mapper']['bindElementToMarker'](_0x32d10c,_0x247b79['markerName']),_0x5f0665&&(_0x4377d0['activeMarkers']['includes'](_0x247b79['markerName'])?_0x26d6f0['writer']['addClass']('ck-suggestion-marker--active',_0x32d10c):_0x26d6f0['writer']['removeClass']('ck-suggestion-marker--active',_0x32d10c));}}};}_0x4377d0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x58d3cc),_0x4377d0['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x58d3cc),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1835b2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16fd1e,_0x37c42a,_0x115d70)=>{_0x115d70['options']['showSuggestionHighlights']&&_0x1835b2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x16fd1e,_0x37c42a,_0x115d70);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1d3322,_0x3683ba,_0x40523e)=>{const {type:_0x53e58b,id:_0x52421f}=_0x4377d0['_splitMarkerName'](_0x3683ba['markerName']),_0x179dac=_0x4377d0['getSuggestion'](_0x52421f),_0x50bb0f=_0x179dac['data'];if('formatBlock'!=_0x179dac['type']||!_0x50bb0f||'setTableColumnHeader'!=_0x50bb0f['commandName'])return;const _0x1483ed=_0x40523e['mapper']['markerNameToElements'](_0x3683ba['markerName']);if(_0x1483ed){for(const _0x143d5d of _0x1483ed)_0x40523e['writer']['removeClass']('ck-suggestion-marker-'+_0x53e58b,_0x143d5d),_0x40523e['writer']['removeClass']('ck-suggestion-marker--active',_0x143d5d),_0x40523e['writer']['removeAttribute']('data-suggestion',_0x143d5d),_0x40523e['mapper']['unbindElementFromMarkerName'](_0x143d5d,_0x3683ba['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f407e=this['editor'],_0x69aa97=_0x1f407e['locale'];function _0x2a5f99(_0x819e6b){return{'type':'format','content':o(_0x69aa97,'*Format:*\x20%0',_0x819e6b)};}_0x1f407e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3099ac=>{if('formatBlock'!=_0x3099ac['type'])return;const {data:_0x5f2a1d}=_0x3099ac;if(_0x5f2a1d){if('setTableRowHeader'==_0x5f2a1d['commandName']){const _0x49a067=_0x5f2a1d['commandParams'][0x0]['forceValue'];return _0x2a5f99(o(_0x69aa97,_0x49a067?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x5f2a1d['commandName']){const _0x2f2142=_0x5f2a1d['commandParams'][0x0]['forceValue'];return _0x2a5f99(o(_0x69aa97,_0x2f2142?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x3befcd{['afterInit'](){const _0x40c590=this['editor'],_0x2b9e89=_0x40c590['locale'],_0x28d8b8=_0x40c590['plugins']['get']('TrackChangesEditing');function _0xd72f9f(_0x6c8d27){return{'type':'format','content':''+o(_0x2b9e89,'*Set\x20table\x20type:*\x20%0',_0x6c8d27)};}_0x40c590['plugins']['has']('TableLayout')&&(_0x28d8b8['enableCommand']('insertTableLayout'),_0x28d8b8['enableDefaultAttributesIntegration']('tableType'),_0x28d8b8['registerBlockAttribute']('tableType'),_0x28d8b8['descriptionFactory']['registerElementLabel'](_0x30f263=>_0x30f263['is']('element','table')&&'layout'===_0x30f263['getAttribute']('tableType'),_0x662e48=>o(_0x2b9e89,'ELEMENT_LAYOUT_TABLE',_0x662e48)),_0x28d8b8['descriptionFactory']['registerDescriptionCallback'](_0x45ebe3=>{const {data:_0x39b489}=_0x45ebe3;if(_0x39b489&&'tableType'==_0x39b489['key'])switch(_0x39b489['newValue']){case'layout':return _0xd72f9f(o(_0x2b9e89,'ELEMENT_LAYOUT_TABLE'));case'content':return _0xd72f9f(o(_0x2b9e89,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
- Object['fromEntries'](Be['map'](_0xd32121=>[_0xd32121,null]));class Nt extends _0x3befcd{static get['requires'](){return[At];}['afterInit'](){const _0x32505c=this['editor'];if(!_0x32505c['plugins']['has']('TableClipboard'))return;const _0x5721eb=_0x32505c['plugins']['get']('TrackChangesEditing'),_0x3acc72=_0x32505c['plugins']['get']('TableUtils'),_0x2720b2=_0x32505c['plugins']['get'](At),_0x130fd2=_0x32505c['plugins']['get']('TableClipboard'),_0x3a6a7a=_0x32505c['plugins']['get']('TableSelection'),_0x10dd7f=_0x32505c['plugins']['get'](_0x5b8178);_0x2720b2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x32505c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32505c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x165640=null,_0x353f49=!0x1;_0x10dd7f['on']('contentInsertion',(_0x3eed46,_0x153e05)=>{_0x353f49='paste'===_0x153e05['method'];}),_0x32505c['model']['on']('insertContent',(_0x65dec8,_0x4095b8)=>{if(!_0x353f49&&null===_0x3a6a7a['getSelectedTableCells']())return;const [_0x3d392e,_0x415972]=_0x4095b8,_0x394a35=_0x4095b8[_0x4095b8['length']-0x1];_0x394a35&&_0x394a35['forceDefaultExecution']||_0x5721eb['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1aa981,_0x18a6bc,_0x3ad04a,_0x5da340,_0x492841){if(_0x18a6bc&&!_0x18a6bc['is']('documentSelection'))return!0x1;const _0x4b8e74=_0x492841['getTableIfOnlyTableInContent'](_0x1aa981,_0x3ad04a);if(!_0x4b8e74||!Ue(_0x4b8e74,void 0x0,_0x5da340))return!0x1;const _0x5cda5c=_0x5da340['getSelectionAffectedTableCells'](_0x3ad04a['document']['selection']);if(!_0x5cda5c['length'])return!0x1;const _0x34f2fb=_0x5cda5c[0x0]['findAncestor']('table'),_0x3674ad=_0x5da340['getRowIndexes'](_0x5cda5c),_0x17e084=_0x5da340['getColumnIndexes'](_0x5cda5c),_0x300c36={'startRow':_0x3674ad['first'],'endRow':_0x3674ad['last'],'startColumn':_0x17e084['first'],'endColumn':_0x17e084['last']};return 0x1==_0x5cda5c['length']&&(_0x300c36['endRow']+=_0x5da340['getRows'](_0x4b8e74)-0x1,_0x300c36['endColumn']+=_0x5da340['getColumns'](_0x4b8e74)-0x1),Ue(_0x34f2fb,_0x300c36,_0x5da340);}(_0x3d392e,_0x415972,_0x32505c['model'],_0x3acc72,_0x130fd2)&&(_0x65dec8['stop'](),_0x165640={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32505c['model']['change'](()=>{_0x32505c['model']['insertContent'](_0x4095b8[0x0],_0x4095b8[0x1],_0x4095b8[0x2],{'forceDefaultExecution':!0x0});const _0x378346=_0x561a0d(),{rowInsertionRanges:_0x20465d,columnInsertionRanges:_0x4dbf64,insertionRanges:_0x1ae10e,deletionRanges:_0x1840e1,cells:_0x37dcb7}=_0x165640;_0x20465d['length']&&_0x5721eb['markMultiRangeInsertion'](_0x20465d,'tablePasteRow',{'tablePasteChainId':_0x378346}),_0x4dbf64['length']&&_0x5721eb['markMultiRangeInsertion'](_0x4dbf64,'tablePasteColumn',{'tablePasteChainId':_0x378346}),_0x1ae10e['length']&&(_0x5721eb['markMultiRangeInsertion'](_0x1ae10e,'tablePaste',{'tablePasteChainId':_0x378346,'skipNestingCheck':!0x0}),_0x1ae10e['forEach'](_0x2785df=>_0x2785df['detach']?.())),_0x1840e1['length']&&(_0x5721eb['markMultiRangeDeletion'](_0x1840e1,'tablePaste',{'tablePasteChainId':_0x378346,'skipNestingCheck':!0x0}),_0x1840e1['forEach'](_0x39a9de=>_0x39a9de['detach']?.()));const _0x4c501f=_0x5721eb['markMultiRangeBlockFormat'](_0x37dcb7['map'](({element:_0x4f8513})=>_0x4f8513),{'formatGroupId':_0x561a0d()},[],'tablePasteCell',{'tablePasteChainId':_0x378346});if(_0x4c501f){const _0x13831c=_0x4c501f['getMarkers'](),_0x31d190=[];for(const {element:_0x3f6a78,attributes:_0x55d7cb}of _0x37dcb7){if(!_0x55d7cb)continue;const _0x110d1e=_0x32505c['model']['createRangeOn'](_0x3f6a78),_0x5c4d6f=_0x13831c['find'](_0x4e68bb=>_0x4e68bb['getRange']()['isEqual'](_0x110d1e));_0x5c4d6f&&_0x31d190['push']([_0x5c4d6f['name'],_0x55d7cb]);}_0x31d190['length']&&_0x4c501f['setAttribute']('markerAttributes',Object['fromEntries'](_0x31d190));}_0x165640=null;}));},{'priority':_0xa538e4['high']+0xa}),_0x10dd7f['on']('contentInsertion',()=>{_0x353f49=!0x1;},{'priority':'lowest'}),_0x32505c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5f52a0,_0x5ef468)=>{const [_0x1e95f3,_0x5f3c08,,_0xbc81bc]=_0x5ef468;if(!_0x165640)return;_0x5f52a0['stop']();const _0x1c5c37=_0x1e95f3['cell'],_0x4f675c=_0x5f3c08,_0x343a29=Oe(_0x1c5c37),_0x422d95=Oe(_0x4f675c);_0x5f52a0['return']=_0x1c5c37;let _0x29100b=null,_0x29d1d5=null;if(_0x422d95||_0x343a29){if(_0x343a29&&!_0x422d95){_0xbc81bc['remove'](_0x1c5c37['getChild'](0x0));for(const _0x3d8b17 of Array['from'](_0x4f675c['getChildren']()))_0xbc81bc['insert'](_0x3d8b17,_0x1c5c37,'end');const _0x433c8e=_0x165640['rowInsertionIndexes']['includes'](_0x1e95f3['row']),_0x4ecc7a=_0x165640['columnInsertionIndexes']['includes'](_0x1e95f3['column']);_0x433c8e||_0x4ecc7a||(_0x29100b=_0x39c36c['fromRange'](_0xbc81bc['createRangeIn'](_0x1c5c37)));}else _0x422d95&&!_0x343a29&&(_0x29d1d5=_0xbc81bc['createRangeIn'](_0x1c5c37));}else{const _0x1cae46=_0xbc81bc['createElement']('tableCellSuggestion'),_0x3a96e8=_0xbc81bc['createElement']('tableCellSuggestion');_0xbc81bc['wrap'](_0xbc81bc['createRangeIn'](_0x1c5c37),_0x3a96e8),_0xbc81bc['insert'](_0x1cae46,_0x1c5c37,0x0);for(const _0x24e696 of Array['from'](_0x4f675c['getChildren']()))_0xbc81bc['insert'](_0x24e696,_0x1cae46,'end');_0x29100b=_0x39c36c['fromRange'](_0xbc81bc['createRangeOn'](_0x1cae46)),_0x29d1d5=_0x39c36c['fromRange'](_0xbc81bc['createRangeOn'](_0x3a96e8));}const _0x22b334=Array['from'](_0x4f675c['getAttributes']())['filter'](([_0x20018b])=>Be['includes'](_0x20018b));_0x165640['cells']['push']({'element':_0x1c5c37,'attributes':_0x22b334['length']?Object['fromEntries'](_0x22b334):null}),_0x29100b&&_0x165640['insertionRanges']['push'](_0x29100b),_0x29d1d5&&_0x165640['deletionRanges']['push'](_0x29d1d5);},{'priority':'high'}),_0x3acc72['on']('insertColumns',(_0x133765,_0xa74346)=>{const [_0x88637c,_0x456768={}]=_0xa74346;if(!_0x165640)return;const _0x398687=_0x456768['at']||0x0,_0x13088a=_0x456768['columns']||0x1;_0x165640['columnInsertionIndexes']=new Array(_0x13088a)['fill'](_0x398687)['map']((_0x4ad11b,_0x2f92cb)=>_0x4ad11b+_0x2f92cb);for(const {cell:_0x5f59e3}of _0x3acc72['createTableWalker'](_0x88637c,{'startColumn':_0x398687,'endColumn':_0x398687+_0x13088a-0x1}))_0x165640['columnInsertionRanges']['push'](_0x32505c['model']['createRangeOn'](_0x5f59e3));},{'priority':'low'}),_0x3acc72['on']('insertRows',(_0x2ecd6b,_0x333ca6)=>{const [_0x36df8c,_0x28b386={}]=_0x333ca6;if(!_0x165640)return;const _0x286d57=_0x28b386['at']||0x0,_0x519f22=_0x28b386['rows']||0x1;_0x165640['rowInsertionIndexes']=new Array(_0x519f22)['fill'](_0x286d57)['map']((_0x5675c6,_0x46b1ce)=>_0x5675c6+_0x46b1ce);for(const {cell:_0x33affe}of _0x3acc72['createTableWalker'](_0x36df8c,{'startRow':_0x286d57,'endRow':_0x286d57+_0x519f22-0x1}))_0x165640['rowInsertionRanges']['push'](_0x32505c['model']['createRangeOn'](_0x33affe));},{'priority':'low'}),_0x5721eb['descriptionFactory']['registerDescriptionCallback'](_0x56a046=>{if(_0x56a046['subType']&&_0x56a046['subType']['startsWith']('tablePaste'))return _0x56a046['previous']?{}:{'type':'insertion','content':o(_0x32505c['locale'],'*Replace\x20table\x20cells*')};});const _0x1f019b=()=>!0x1;for(const _0x5adbc1 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5721eb['_suggestionFactory']['registerCustomCallback']('insertion',_0x5adbc1,'join',_0x1f019b),_0x5721eb['_suggestionFactory']['registerCustomCallback']('deletion',_0x5adbc1,'join',_0x1f019b),_0x5721eb['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5adbc1,'join',_0x1f019b);_0x5721eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1f019b),_0x5721eb['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x282b95,_0x38960d,_0x5b15ec)=>{const _0x5a3be0=_0x282b95['map'](_0x141fc9=>_0x141fc9['getContainedElement']())['filter'](_0x1acf87=>_0x1acf87),_0x1a631f=new Map(_0x5a3be0['map'](_0x3a6a4f=>[_0x3a6a4f,null]));if(_0x165640){for(const {element:_0x4a911a,attributes:_0xa9fdaa}of _0x165640['cells'])_0xa9fdaa&&_0x1a631f['set'](_0x4a911a,_0xa9fdaa);}else{if(_0x5b15ec&&_0x5b15ec['markerAttributes'])for(const [_0x1a7dbd,_0x5e6f19]of Object['entries'](_0x5b15ec['markerAttributes'])){const _0x572073=_0x32505c['model']['markers']['get'](_0x1a7dbd),_0x572dfe=_0x572073?_0x572073['getRange']()['getContainedElement']():null;_0x572dfe&&_0x1a631f['set'](_0x572dfe,_0x5e6f19);}}_0x32505c['model']['change'](_0x2a4523=>{for(const [_0x59bbc3,_0x532419]of _0x1a631f)_0x2a4523['setAttributes']({...xe,..._0x532419},_0x59bbc3);});});const _0x3793c5=(_0x112122,_0x377930)=>{_0x5721eb['_suggestionFactory']['registerCustomCallback'](_0x112122,'tablePaste',_0x377930,(_0x5dd24e,_0x1451d1,_0x3b276d)=>{_0x32505c['model']['change'](_0x265fc0=>{const _0x5cef00=[];for(const _0x1cea4b of _0x5dd24e){const _0x436d9d=_0x1cea4b['start']['nodeAfter'];_0x436d9d['is']('element','tableCellSuggestion')&&_0x5cef00['push'](_0x436d9d);}_0x5721eb['_suggestionFactory']['getSuggestionCallback'](_0x112122,null,_0x377930)(_0x5dd24e,_0x1451d1,_0x3b276d);for(const _0xd3b521 of _0x5cef00)'$graveyard'!=_0xd3b521['root']['rootName']&&_0x265fc0['unwrap'](_0xd3b521);});});};_0x3793c5('insertion','accept'),_0x3793c5('insertion','discard'),_0x3793c5('deletion','accept'),_0x3793c5('deletion','discard'),_0x5721eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2f249d=>{const _0x321600=_0x2f249d['map'](_0x20aada=>_0x20aada['getContainedElement']()),_0x5e9f69=_0x321600[0x0]['findAncestor']('table'),{minRow:_0x5e0fbc,maxRow:_0x205eb6}=_0x2720b2['_getCoordsForCells'](_0x321600);_0x3acc72['removeRows'](_0x5e9f69,{'at':_0x5e0fbc,'rows':_0x205eb6-_0x5e0fbc+0x1});}),_0x5721eb['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d406a=>{const _0x433eeb=_0x4d406a['map'](_0x382066=>_0x382066['getContainedElement']()),_0x263f41=_0x433eeb[0x0]['findAncestor']('table'),{minColumn:_0x376c5c,maxColumn:_0x15ea7d}=_0x2720b2['_getCoordsForCells'](_0x433eeb);_0x3acc72['removeColumns'](_0x263f41,{'at':_0x376c5c,'columns':_0x15ea7d-_0x376c5c+0x1});});const _0x3c61b2=(_0x1baac1,_0x1cf98f)=>{if(!_0x1cf98f['subType']||!_0x1cf98f['subType']['startsWith']('tablePaste'))return;const _0x2d2c99=_0x1cf98f['attributes']['tablePasteChainId'],_0x55f318=_0x5721eb['getSuggestions']()['filter'](_0x3c534c=>_0x3c534c['isInContent']&&_0x3c534c['attributes']&&_0x3c534c['attributes']['tablePasteChainId']==_0x2d2c99);_0x55f318['length']&&_0x1cf98f['getAllAdjacentSuggestions']()['length']!=_0x55f318['length']&&_0x55f318['reduce']((_0x58d92a,_0x441915)=>(_0x58d92a['next']=_0x441915,_0x441915['previous']=_0x58d92a,_0x441915));};function _0x122eda(_0x40d59c,_0x55e801=!0x0){const {id:_0x40c571,authorId:_0x5ab40d}=_0x5721eb['_splitMarkerName'](_0x40d59c['markerName']),_0x5b60f1=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3e3f4d=_0x5721eb['activeMarkers']['includes'](_0x40d59c['markerName']);return _0x3e3f4d&&_0x5b60f1['push']('ck-suggestion-marker--active'),{'classes':_0x5b60f1,'attributes':{'data-suggestion':_0x40c571,'data-author-id':_0x5ab40d},'priority':_0x3e3f4d&&_0x55e801?0xbc2:0xbb8};}_0x5721eb['on']('suggestionLoaded',_0x3c61b2,{'priority':'high'}),_0x5721eb['on']('suggestionUnloaded',_0x3c61b2,{'priority':'high'}),_0x32505c['model']['document']['registerPostFixer'](()=>{let _0x2af941=!0x1;const _0x13d61e=Array['from'](_0x32505c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x267c00,data:_0x292af5}of _0x13d61e){const {group:_0xa85a44,type:_0x96bc,id:_0x3a23a3}=_0x5721eb['_splitMarkerName'](_0x267c00);if('suggestion'!=_0xa85a44||'deletion'!=_0x96bc||_0x292af5['oldRange'])continue;if(!_0x5721eb['hasSuggestion'](_0x3a23a3))continue;const _0x126d6a=_0x5721eb['getSuggestion'](_0x3a23a3)['getRanges'](),_0x420201=_0x32505c['plugins']['get']('Users')['me'];for(const _0x5df922 of _0x5721eb['getSuggestions']()){if(!_0x5df922['isInContent']||_0x5df922['author']!=_0x420201)continue;if('formatBlock'!=_0x5df922['type']||'tablePasteCell'!=_0x5df922['subType'])continue;if(_0x5df922['getRanges']()['every'](_0x4098fd=>_0x126d6a['some'](_0x4695d9=>_0x4695d9['containsRange'](_0x4098fd,!0x0)))){for(const _0x1ec84a of _0x5df922['getAllAdjacentSuggestions']())_0x1ec84a['isInContent']&&(_0x1ec84a['discard'](),_0x2af941=!0x0);}}}return _0x2af941;}),_0x32505c['model']['document']['registerPostFixer'](_0x1d076c=>{const _0x1a672c=_0x32505c['commands']['get']('redo');if(!_0x1a672c||!_0x1a672c['_createdBatches']['has'](_0x1d076c['batch']))return!0x1;let _0x193c65=!0x1;const _0x4f4593=_0x32505c['plugins']['get']('Users')['me'],_0x5339fa=_0x32505c['model']['document']['differ']['getChanges'](),_0x2ddc9a=Array['from'](_0x32505c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x161142,data:_0x5451cb})=>{const {group:_0x1b9bb3,subType:_0x2334b6,authorId:_0x3b29fb}=_0x5721eb['_splitMarkerName'](_0x161142);return'suggestion'==_0x1b9bb3&&'tablePaste'==_0x2334b6&&_0x3b29fb==_0x4f4593['id']&&!_0x5451cb['oldRange'];});for(const _0x1978d5 of _0x5339fa){if('insert'!=_0x1978d5['type']||'tableCellSuggestion'!=_0x1978d5['name']||0x1!=_0x1978d5['length'])continue;const _0x52af98=_0x1d076c['createRange'](_0x1978d5['position'],_0x1978d5['position']['getShiftedBy'](0x1));if(!_0x2ddc9a['find'](({data:_0x5f57e7})=>_0x5f57e7['newRange']['isEqual'](_0x52af98))){for(const {name:_0x106b65,data:_0x87d883}of _0x2ddc9a)if(_0x52af98['containsRange'](_0x87d883['newRange'])){_0x1d076c['updateMarker'](_0x106b65,{'range':_0x52af98}),_0x193c65=!0x0;break;}}}return _0x193c65;}),_0x32505c['model']['document']['registerPostFixer'](_0x53a19f=>{let _0x3dbf4d=!0x1;const _0x2dcdbb=_0x32505c['plugins']['get']('Users')['me'],_0x3f3c6d=_0x5721eb['getSuggestions']()['filter'](_0x3c49fc=>_0x3c49fc['isInContent']&&_0x3c49fc['author']==_0x2dcdbb),_0x19163d=new Set(),_0x9b7fe2=new Set();for(const _0x51c334 of _0x3f3c6d)if('tablePaste'==_0x51c334['subType'])for(const _0x1dc888 of _0x51c334['getMarkers']()){const _0x27fb67=_0x1dc888['getRange']()['getContainedElement']();if(_0x27fb67){if(_0x27fb67['is']('element','tableCellSuggestion')&&Oe(_0x27fb67)){_0x51c334['removeMarker'](_0x1dc888['name']),_0x19163d['add'](_0x27fb67),_0x3dbf4d=!0x0;const _0x4abb08=_0x27fb67['nextSibling'],_0x104211=_0x27fb67['previousSibling'],_0x56a040=_0x4abb08&&_0x4abb08['is']('element','tableCellSuggestion'),_0x18d275=_0x104211&&_0x104211['is']('element','tableCellSuggestion');_0x56a040&&!_0x19163d['has'](_0x4abb08)&&_0x9b7fe2['add'](_0x4abb08),_0x18d275&&!_0x19163d['has'](_0x104211)&&_0x9b7fe2['add'](_0x104211);}else _0x27fb67['is']('element','paragraph')&&_0x27fb67['isEmpty']&&(_0x51c334['removeMarker'](_0x1dc888['name']),_0x3dbf4d=!0x0);}}else{if('tablePasteCell'==_0x51c334['subType']){if(!_0x51c334['attributes']||!_0x51c334['attributes']['tablePasteChainId'])continue;const _0x6f422d=_0x51c334['attributes']['markerAttributes'];if(_0x6f422d&&Object['keys'](_0x6f422d)['length'])continue;const _0x4b8f82=_0x51c334['attributes']['tablePasteChainId'];let _0x38d627=!0x0,_0x6a66=!0x0;for(const _0x283f96 of _0x3f3c6d)if(_0x283f96['subType']&&_0x283f96['subType']['startsWith']('tablePaste')){if(!_0x283f96['attributes']['tablePasteChainId']){_0x6a66=!0x1;break;}if(_0x283f96['id']!=_0x51c334['id']&&_0x283f96['attributes']['tablePasteChainId']==_0x4b8f82){_0x38d627=!0x1;break;}}_0x6a66&&_0x38d627&&(_0x51c334['removeMarkers'](),_0x3dbf4d=!0x0);}}for(const _0x3308ca of _0x19163d)_0x53a19f['remove'](_0x3308ca);for(const _0x3aaf9c of _0x9b7fe2)_0x53a19f['unwrap'](_0x3aaf9c);return _0x3dbf4d;}),_0x32505c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1bfc9f=>_0x122eda(_0x1bfc9f),'converterPriority':'high'}),_0x32505c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x309432,_0x41a3c9)=>_0x41a3c9['options']['showSuggestionHighlights']?_0x122eda(_0x309432,!0x1):null,'converterPriority':'high'});const _0x546aef=_0x32505c['editing']['view'];this['listenTo'](_0x546aef['document'],'clipboardOutput',(_0x4112fa,_0x4e9bfa)=>{const _0x3e9aac=[];for(const _0x522e05 of _0x546aef['createRangeIn'](_0x4e9bfa['content'])['getItems']())_0x522e05['is']('element','suggestion-td')&&_0x3e9aac['push'](_0x522e05);_0x546aef['change'](_0x3b5250=>{for(const _0x54b57a of _0x3e9aac)_0x3b5250['move'](_0x3b5250['createRangeIn'](_0x54b57a),_0x3b5250['createPositionBefore'](_0x54b57a)),_0x3b5250['remove'](_0x54b57a);});});}}function Oe(_0x5b6895){if(_0x5b6895['isEmpty'])return!0x0;const _0x24cf6e=_0x5b6895['getChild'](0x0);return _0x24cf6e['is']('element','paragraph')&&_0x24cf6e['isEmpty'];}function Ue(_0x2c76df,_0x4e3ce2={},_0x5eb250){for(const {isAnchor:_0x406c8a,cellHeight:_0x580a89,cellWidth:_0x49dfb0}of _0x5eb250['createTableWalker'](_0x2c76df,{'includeAllSlots':!0x0,..._0x4e3ce2}))if(!_0x406c8a||0x1!=_0x580a89||0x1!=_0x49dfb0)return!0x1;return!0x0;}class Dt extends _0x3befcd{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x38b856=this['editor']['plugins']['get']('TrackChangesEditing');_0x38b856['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x38b856['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x38b856['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38b856['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x38b856['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x38b856['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb15294,_0x57941f){const _0x4f122e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1fef1e=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x4d687f=_0x57941f['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x225c1a=_0x1fef1e['getColumnGroupElement'](_0x4d687f);let _0x1a3d43=_0x225c1a?_0x1fef1e['getTableColumnsWidths'](_0x225c1a):null,_0x4eb3a9=_0x4d687f['getAttribute']('tableWidth')||null;const _0x17b34a=_0x57941f['tableWidth']||_0x4eb3a9,_0x54592c=_0x57941f['columnWidths']||_0x1a3d43,_0x169444=this['editor']['plugins']['get']('Users')['me'];for(const _0x29424e of _0x4f122e['getSuggestions']()){const _0x2be9cf=_0x29424e['getContainedElement']();if('resizeTable'===_0x29424e['subType']&&_0x2be9cf===_0x4d687f){_0x29424e['author']!==_0x169444&&_0x29424e['discard']();const _0x2e98b2=_0x29424e['data']['commandParams'];_0x4eb3a9=_0x2e98b2[0x0]['tableWidth'],_0x1a3d43=_0x2e98b2[0x0]['columnWidths'];break;}}_0xb15294({'table':_0x4d687f,'tableWidth':_0x17b34a,'columnWidths':_0x54592c}),_0x4f122e['markBlockFormat'](_0x4d687f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4eb3a9,'columnWidths':_0x1a3d43}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4da9d5){if('formatBlock'!=_0x4da9d5['type']&&'formatInline'!=_0x4da9d5['type'])return;const {data:_0x53f12f}=_0x4da9d5;if(_0x53f12f&&'resizeTable'===_0x53f12f['formatGroupId']){const _0x19ef9f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x19ef9f)};}}}class Mt extends _0x3befcd{['afterInit'](){const _0x354677=this['editor'];_0x354677['plugins']['has']('Template')&&_0x354677['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x3befcd{['afterInit'](){const _0x1f025c=this['editor'];if(!_0x1f025c['commands']['get']('insertTableOfContents'))return;_0x1f025c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3a6010=_0x1f025c['plugins']['get']('TrackChangesEditing'),_0x576a67=_0x1f025c['locale'];_0x3a6010['descriptionFactory']['registerElementLabel']('tableOfContents',_0x13ca9d=>o(_0x576a67,'ELEMENT_TABLE_OF_CONTENTS',_0x13ca9d));}}class Bt extends _0x3befcd{['afterInit'](){const _0x20fd93=this['editor'];if(!_0x20fd93['plugins']['has']('Title'))return;const _0x59007a=_0x20fd93['plugins']['get']('TrackChangesEditing');_0x59007a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x20fd93['locale'],'ELEMENT_TITLE')),_0x20fd93['model']['document']['registerPostFixer'](_0x191abe=>{let _0x19b6f9=!0x1;const _0x1e6663=Array['from'](_0x20fd93['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x143cb6,data:_0x225a2a}of _0x1e6663){const {group:_0x425c8a}=_0x59007a['_splitMarkerName'](_0x143cb6);if('suggestion'!==_0x425c8a||!_0x225a2a['newRange'])continue;const _0x267d6a=_0x225a2a['newRange'],_0x51942e=_0x267d6a['end']['nodeBefore'];if(!_0x51942e||!_0x51942e['is']('element','title-content'))continue;if(!_0x267d6a['start']['isTouching'](_0x267d6a['end']))continue;const _0x2e2bfb=_0x20fd93['model']['schema']['getNearestSelectionRange'](_0x267d6a['end'],'forward');if(_0x2e2bfb&&_0x2e2bfb['isCollapsed']){const _0x17c8cc=_0x191abe['createRange'](_0x267d6a['start'],_0x2e2bfb['start']);_0x17c8cc['isEqual'](_0x267d6a)||(_0x191abe['updateMarker'](_0x143cb6,{'range':_0x17c8cc}),_0x19b6f9=!0x0);}_0x19b6f9||(_0x191abe['removeMarker'](_0x143cb6),_0x19b6f9=!0x0);}return _0x19b6f9;});}}class Tt extends _0x3befcd{['afterInit'](){const _0x298107=this['editor'],_0x456050=_0x298107['plugins']['get']('TrackChangesEditing');_0x298107['plugins']['has']('Uploadcare')&&(_0x456050['enableCommand']('uploadcare'),_0x298107['plugins']['has']('UploadcareImageEdit')&&(_0x456050['enableCommand']('uploadcareImageEdit'),_0x456050['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x456050['registerBlockAttribute']('uploadcareImageId'),_0x456050['descriptionFactory']['registerDescriptionCallback'](_0x318b48=>{if('attribute'!=_0x318b48['type'])return;const {data:_0x426690}=_0x318b48;return _0x426690&&'uploadcareImageId'==_0x426690['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x3befcd{['afterInit'](){const _0xcc62b7=this['editor'],_0x29e021=_0xcc62b7['plugins']['get']('TrackChangesEditing');_0xcc62b7['plugins']['has']('UndoEditing')&&(_0x29e021['enableCommand']('undo'),_0x29e021['enableCommand']('redo'));}}class Ot extends _0x3befcd{static get['requires'](){return[At];}['afterInit'](){const _0x39d4ba=this['editor'];if(!_0x39d4ba['plugins']['has']('TableCaptionEditing'))return;_0x39d4ba['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x3befcd{['tableProperties'];['tableCellProperties'];constructor(_0x15f46b){super(_0x15f46b),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x506ff3=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d4086 of this['tableProperties'])_0x506ff3['enableCommand'](_0x1d4086,(_0x21463e,_0x4cd966)=>{const _0x4dc602=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d4086,[_0x4dc602],this['tableProperties'],'tableProperties',_0x21463e,_0x4cd966);});_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x506ff3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5c307e,_0x18f700)=>this['handleDiscardAction'](this['tableProperties'],_0x5c307e,_0x18f700)),_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x480ef4 of this['tableCellProperties'])_0x506ff3['enableCommand'](_0x480ef4,(_0x3322b8,_0x3e8614)=>{const _0x76d3d0=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x480ef4,_0x76d3d0,this['tableCellProperties'],'tableCellProperties',_0x3322b8,_0x3e8614);});_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x506ff3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x388cff,_0x402010)=>this['handleDiscardAction'](this['tableCellProperties'],_0x388cff,_0x402010)),_0x506ff3['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x506ff3['descriptionFactory']['registerDescriptionCallback'](_0x23a113=>this['handleSuggestionDescription'](_0x23a113));}['_handlePropertyChange'](_0x2d80b3,_0x25e198,_0x5750b9,_0x4f0efc,_0x107295,_0x435680){const _0x50e253=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x435680['batch'],()=>{for(const _0x4f30d3 of _0x25e198){if(this['_getSuggestion'](_0x4f30d3,_0x4f0efc))_0x107295(_0x435680);else{const _0x110e06={};for(const _0x5ab6df of _0x5750b9){const _0x3b8d83=_0x4f30d3['getAttribute'](_0x5ab6df);void 0x0!==_0x3b8d83&&(_0x110e06[_0x5ab6df]=_0x3b8d83);}_0x107295(_0x435680),_0x50e253['markBlockFormat'](_0x4f30d3,{'commandParams':[_0x110e06]},[],_0x4f0efc);}}});}['handleDiscardAction'](_0x216f0c,_0x2dda6c,_0x1c75a7){const _0x5b6149=_0x2dda6c[0x0]['start']['nodeAfter'],_0x2e2936=_0x1c75a7['commandParams'][0x0];this['editor']['model']['change'](_0x33cb4d=>{for(const _0x206f30 of _0x216f0c)void 0x0!==_0x2e2936[_0x206f30]?_0x33cb4d['setAttribute'](_0x206f30,_0x2e2936[_0x206f30],_0x5b6149):_0x33cb4d['removeAttribute'](_0x206f30,_0x5b6149);});}['handleSuggestionDescription'](_0x16de22){if(_0x16de22['data'])switch(_0x16de22['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x127918,_0x5bd514){const _0x226702=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x98cd0a of _0x226702['getSuggestions']({'skipNotAttached':!0x0})){const _0x1b2eb0=_0x98cd0a['getContainedElement']();if(_0x98cd0a['subType']===_0x5bd514&&_0x1b2eb0===_0x127918)return _0x98cd0a;}return null;}}class Rt extends _0x3befcd{['afterInit'](){const _0x20189e=this['editor'];if(!_0x20189e['plugins']['has']('LineHeight'))return;const _0x5e33c0=_0x20189e['plugins']['get']('TrackChangesEditing'),_0x40077a=_0x20189e['locale'];_0x5e33c0['enableDefaultAttributesIntegration']('lineHeight'),_0x5e33c0['registerBlockAttribute']('lineHeight'),_0x5e33c0['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x40077a,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x3befcd{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x25350d,_0xc073f7,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a559d){super(_0x3a559d),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x556627,_0x2992b6,_0x10dcdb,_0x457371)=>{this['_model']['change'](()=>{for(const _0xe14e20 of[..._0x457371,..._0x10dcdb])this['_model']['markers']['has'](_0xe14e20)&&_0x3a559d['editing']['reconvertMarker'](_0xe14e20);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3a559d['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3a559d['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3a559d['config']['get']('trackChanges.trackFormatChanges'),_0x3a559d['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3a559d['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x3a559d,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x1f4cd5=this['editor'],_0x41a26c=(_0x2c4976,_0x174df2)=>{if('attribute'!=_0x2c4976)return'ck-suggestion-marker-'+_0x2c4976;const _0x3c4728=_0x174df2['split']('|')[0x0];return this['_isBlockAttribute'](_0x3c4728)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1f4cd5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x414e32=>{const {id:_0x17da3f,authorId:_0x35c41e,type:_0x44635c,subType:_0x3fea13}=this['_splitMarkerName'](_0x414e32['markerName']),_0x242bd5=['ck-suggestion-marker',_0x41a26c(_0x44635c,_0x3fea13)];let _0x56ca77=0xbb8;return this['activeMarkers']['includes'](_0x414e32['markerName'])&&(_0x242bd5['push']('ck-suggestion-marker--active'),_0x56ca77=0xbc2),'deletion'==_0x44635c&&(_0x56ca77+=0x5),{'classes':_0x242bd5,'attributes':{'data-suggestion':_0x17da3f,'data-author-id':_0x35c41e},'priority':_0x56ca77};}}),_0x1f4cd5['conversion']['for']('dataDowncast')['add'](_0x4994b5=>{_0x4994b5['on']('addMarker:suggestion',(_0x114dbc,_0x170e28,_0x547423)=>{if(!_0x547423['options']['showSuggestionHighlights'])return;const _0x4e5d95=_0x170e28['item'];if(!_0x4e5d95)return;const _0x2ec8cd=_0x547423['mapper']['toViewElement'](_0x4e5d95);_0x1f4cd5['model']['schema']['isObject'](_0x4e5d95)&&_0x2ec8cd&&!_0x2ec8cd['getCustomProperty']('widget')&&_0x2ec8cd['is']('containerElement')&&_0x51d3b9(_0x2ec8cd,_0x547423['writer']);},{'priority':'high'});}),_0x1f4cd5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x1dd478,_0x233714)=>{if(!_0x233714['options']['showSuggestionHighlights'])return null;const {id:_0x568f09,authorId:_0x2ff353,type:_0x42a2cf,subType:_0xae8c00}=this['_splitMarkerName'](_0x1dd478['markerName']);return{'classes':['ck-suggestion-marker',_0x41a26c(_0x42a2cf,_0xae8c00)],'priority':0xbb8,'attributes':{'data-suggestion':_0x568f09,'data-author-id':_0x2ff353}};}});const _0x334ddc=({showActiveMarkers:_0x551bb0=!0x0,isAttributeSuggestion:_0x31aac7=!0x1}={})=>(_0x310c04,_0x30fbc9,_0xd44064)=>{if(!_0x30fbc9['item'])return;const {id:_0x4a7d90,authorId:_0x51caec}=this['_splitMarkerName'](_0x30fbc9['markerName']);if(_0x31aac7){const _0xb2bec=this['_suggestions']['get'](_0x4a7d90),_0x951d3a=this['_getAttributeKey'](_0xb2bec);if(!this['_isBlockAttribute'](_0x951d3a))return;}if(_0x30fbc9['item']['is']('selection'))return void _0xd44064['consumable']['consume'](_0x30fbc9['item'],_0x310c04['name']);const _0x22177d=_0xd44064['mapper']['toViewElement'](_0x30fbc9['item']);if(_0x30fbc9['item']['is']('element')&&_0x1f4cd5['model']['schema']['isBlock'](_0x30fbc9['item'])&&!_0x22177d['getCustomProperty']('addHighlight')){_0xd44064['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x22177d),_0xd44064['writer']['setAttribute']('data-suggestion',_0x4a7d90,_0x22177d),_0xd44064['writer']['setAttribute']('data-author-id',_0x51caec,_0x22177d),_0xd44064['mapper']['bindElementToMarker'](_0x22177d,_0x30fbc9['markerName']),_0x551bb0&&(this['activeMarkers']['includes'](_0x30fbc9['markerName'])?_0xd44064['writer']['addClass']('ck-suggestion-marker--active',_0x22177d):_0xd44064['writer']['removeClass']('ck-suggestion-marker--active',_0x22177d));for(const _0x329b94 of _0x1f4cd5['model']['createRangeIn'](_0x30fbc9['item'])['getItems']())_0xd44064['consumable']['consume'](_0x329b94,_0x310c04['name']);_0xd44064['consumable']['consume'](_0x30fbc9['item'],_0x310c04['name']);}};_0x1f4cd5['conversion']['for']('dataDowncast')['add'](_0x4d94ca=>{_0x4d94ca['on']('addMarker:suggestion:formatBlock',(_0xd6299,_0x4b8852,_0x29a712)=>{_0x29a712['options']['showSuggestionHighlights']&&_0x334ddc({'showActiveMarkers':!0x1})(_0xd6299,_0x4b8852,_0x29a712);},{'priority':'highest'});}),_0x1f4cd5['conversion']['for']('dataDowncast')['add'](_0x539078=>{_0x539078['on']('addMarker:suggestion:attribute',(_0x4d6f29,_0x5bc75c,_0x581ac3)=>{_0x581ac3['options']['showSuggestionHighlights']&&_0x334ddc({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4d6f29,_0x5bc75c,_0x581ac3);},{'priority':'highest'});}),_0x1f4cd5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4f5ad4,_0x5d25f3)=>{if(_0x5d25f3['options']['showSuggestionHighlights']){const {id:_0x237c89,authorId:_0x107966}=this['_splitMarkerName'](_0x4f5ad4);return _0x4f5ad4['includes'](':split')||_0x4f5ad4['includes'](':merge')?{'group':'suggestion','name':_0x4f5ad4['substr'](0xb),'attributes':{'data-suggestion':_0x237c89,'data-author-id':_0x107966}}:null;}return{'group':'suggestion','name':_0x4f5ad4['substr'](0xb)};}}),_0x1f4cd5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x486a46,{writer:_0x3fc078})=>{let _0x42e088='suggestion:'+_0x486a46['getAttribute']('suggestion-type')+':'+_0x486a46['getAttribute']('id');return _0x486a46['getAttribute']('marker-count')&&(_0x42e088+=':'+_0x486a46['getAttribute']('marker-count')),_0x3fc078['createElement']('$marker',{'data-name':_0x42e088});}}),_0x1f4cd5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1f4cd5['conversion']['for']('editingDowncast')['add'](_0x4240fa=>{_0x4240fa['on']('addMarker:suggestion:formatBlock',_0x334ddc(),{'priority':'high'});}),_0x1f4cd5['conversion']['for']('editingDowncast')['add'](_0x124631=>{_0x124631['on']('addMarker:suggestion:attribute',_0x334ddc({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1f4cd5['conversion']['for']('editingDowncast')['add'](_0x564a41=>{_0x564a41['on']('removeMarker:suggestion:formatBlock',(_0x27df37,_0x5a856c,_0x2ad0f1)=>{const _0x2377f7=_0x2ad0f1['mapper']['markerNameToElements'](_0x5a856c['markerName']);if(_0x2377f7){for(const _0xc61af1 of _0x2377f7)_0xc61af1['getCustomProperty']('addHighlight')||(_0x2ad0f1['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc61af1),_0x2ad0f1['writer']['removeAttribute']('data-suggestion',_0xc61af1),_0x2ad0f1['writer']['removeAttribute']('data-author-id',_0xc61af1),_0x2ad0f1['mapper']['unbindElementFromMarkerName'](_0xc61af1,_0x5a856c['markerName']));}},{'priority':'high'});}),_0x1f4cd5['conversion']['for']('editingDowncast')['add'](_0x150240=>{_0x150240['on']('removeMarker:suggestion:attribute',(_0x17a58f,_0x40e886,_0x2ef441)=>{const _0x129473=_0x2ef441['mapper']['markerNameToElements'](_0x40e886['markerName']);if(!_0x129473)return;const {id:_0x359b13}=this['_splitMarkerName'](_0x40e886['markerName']),_0xae58f6=this['_suggestions']['get'](_0x359b13),_0x23ea63=this['_getAttributeKey'](_0xae58f6);if(this['_isBlockAttribute'](_0x23ea63)){for(const _0x512993 of _0x129473)_0x512993['getCustomProperty']('addHighlight')||(_0x2ef441['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x512993),_0x2ef441['writer']['removeAttribute']('data-suggestion',_0x512993),_0x2ef441['writer']['removeAttribute']('data-author-id',_0x512993),_0x2ef441['mapper']['unbindElementFromMarkerName'](_0x512993,_0x40e886['markerName']));}},{'priority':'high'});}),_0x1f4cd5['model']['document']['registerPostFixer'](_0x4875c8=>{let _0x111338=!0x1;const _0x5725af=Array['from'](_0x1f4cd5['model']['document']['differ']['getChangedMarkers']()),_0x217d6a=new Set();for(const {name:_0x2a33e1,data:_0x544e7c}of _0x5725af){const {group:_0x207db0,type:_0x5cdfc3,subType:_0x248d15,id:_0x1f93bc}=this['_splitMarkerName'](_0x2a33e1);if('suggestion'!==_0x207db0)continue;const _0x2e6627=this['_suggestions']['get'](_0x1f93bc);if(null!=_0x544e7c['newRange']){'formatInline'==_0x5cdfc3&&(_0x111338=_0x111338||Gt(_0x544e7c['newRange'],_0x2a33e1,_0x4875c8,_0x1f4cd5['model']['schema']));const _0x267e7a='attribute'==_0x5cdfc3&&this['_isBlockAttribute'](_0x248d15['split']('|')[0x0]);if(_0x544e7c['newRange']['isCollapsed']||'$graveyard'==_0x544e7c['newRange']['root']['rootName']||'formatBlock'==_0x5cdfc3&&!Jt(_0x544e7c['newRange'])||_0x267e7a&&!Jt(_0x544e7c['newRange'])||'deletion'==_0x5cdfc3&&!Kt(_0x544e7c['newRange']))_0x4875c8['removeMarker'](_0x2a33e1),_0x111338=!0x0;else{if(!_0x2e6627||!_0x2e6627['isInContent'])continue;if(_0x544e7c['newRange']&&_0x544e7c['oldRange']&&_0x544e7c['newRange']['isEqual'](_0x544e7c['oldRange']))continue;_0x217d6a['add'](_0x2e6627);}}}return _0x217d6a['size']>0x0&&(_0x111338=!!this['_joinWithAdjacentSuggestions'](_0x217d6a)||_0x111338),_0x111338;}),_0x1f4cd5['model']['document']['registerPostFixer'](_0x1692e1=>{let _0x249208=!0x1;for(const _0x1c856d of _0x1f4cd5['model']['document']['differ']['getChanges']())if('insert'==_0x1c856d['type'])for(const _0x491700 of this['_suggestions']['values']()){if(_0x491700['isMultiRange']||!_0x491700['isInContent'])continue;const _0x3c3443='formatBlock'==_0x491700['type'],_0x4643d3=this['_getAttributeKey'](_0x491700),_0x12dea7=_0x4643d3&&this['_isBlockAttribute'](_0x4643d3);if(!_0x3c3443&&!_0x12dea7)continue;const _0x457849=_0x491700['getFirstRange']();if(_0x457849['start']['parent']!=_0x457849['end']['parent']&&!_0x457849['end']['isAtEnd']){const _0x153237=_0x1f4cd5['model']['createPositionAt'](_0x457849['start']['nodeAfter'],'end'),_0x3b5246=_0x1f4cd5['model']['createRange'](_0x457849['start'],_0x153237);_0x1692e1['updateMarker'](_0x491700['getFirstMarker'](),{'range':_0x3b5246}),_0x249208=!0x0;}}return _0x249208;}),_0x1f4cd5['model']['document']['registerPostFixer'](_0x23c199=>this['_processAttributeChanges'](_0x23c199)),_0x1f4cd5['model']['document']['registerPostFixer'](_0x299396=>!_0x299396['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x299396)),_0x1f4cd5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1f4cd5['model']['document']['on']('change:data',(_0x52f5a5,_0x43106a)=>{if(!_0x43106a['isLocal']||_0x43106a['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x17ff49=_0x1f4cd5['model']['document']['differ']['getChanges']();if(0x0==_0x17ff49['length'])return;const _0x13cfa1=[],_0xb5a8a9=_0x17ff49['filter'](_0x911e50=>'attribute'==_0x911e50['type']),_0x318317=_0x17ff49['filter'](_0xa8979d=>'insert'==_0xa8979d['type']&&'$text'!=_0xa8979d['name']);for(const _0x44ea6a of _0xb5a8a9)this['_isRegisteredAttribute'](_0x44ea6a['attributeKey'])&&_0x13cfa1['push']({'key':_0x44ea6a['attributeKey'],'newValue':_0x44ea6a['attributeNewValue'],'oldValue':_0x44ea6a['attributeOldValue'],'range':Ht(_0x44ea6a['range'],_0x1f4cd5['model'])});for(const _0x44fe48 of _0x318317){if('rename'!=_0x44fe48['action']&&'refresh'!=_0x44fe48['action'])continue;const _0xd78992=qt(_0x44fe48['position']['nodeAfter'],_0x1f4cd5['model']),_0x1c7bda=_0x44fe48['before'];'rename'==_0x44fe48['action']&&_0x13cfa1['push']({'key':m,'newValue':_0x44fe48['name'],'oldValue':_0x1c7bda['name'],'range':_0xd78992});for(const [_0x304e25,_0x256781]of _0x1c7bda['attributes']){if(!this['_isRegisteredAttribute'](_0x304e25))continue;const _0x354ed9=_0x44fe48['attributes']['get'](_0x304e25);_0x256781!==_0x354ed9&&_0x13cfa1['push']({'key':_0x304e25,'newValue':_0x354ed9,'oldValue':_0x256781,'range':_0xd78992});}for(const [_0x32486f,_0x4f0e0c]of _0x44fe48['attributes'])this['_isRegisteredAttribute'](_0x32486f)&&(_0x1c7bda['attributes']['has'](_0x32486f)||_0x13cfa1['push']({'key':_0x32486f,'newValue':_0x4f0e0c,'oldValue':null,'range':_0xd78992}));}0x0!=_0x13cfa1['length']&&_0x1f4cd5['model']['enqueueChange'](_0x43106a,_0x8b5998=>{const _0x3d372=_0x561a0d();for(const {range:_0x40ef30,key:_0x256b0f,oldValue:_0x131b7c,newValue:_0x4e818e}of _0x13cfa1)this['markAttributeChange'](_0x40ef30,_0x256b0f,_0x131b7c,_0x4e818e,{'groupId':_0x3d372});this['_reduceExistingSuggestions'](_0x8b5998,_0x13cfa1);});},{'priority':'lowest'}),_0x1f4cd5['model']['markers']['on']('update:suggestion',(_0x1addc1,_0x77f5e7,_0x154e95)=>{if(null==_0x154e95){const {id:_0x53736b}=this['_splitMarkerName'](_0x77f5e7['name']),_0x3c977d=this['_suggestions']['get'](_0x53736b);_0x3c977d&&_0x3c977d['addMarkerName'](_0x77f5e7['name']);}}),_0x1f4cd5['model']['document']['on']('change:data',()=>{const _0x303be2=Array['from'](_0x1f4cd5['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3eef22=>'suggestion'===this['_splitMarkerName'](_0x3eef22['name'])['group']);if(0x0===_0x303be2['length'])return;_0x303be2['sort']((_0x4e6855,_0x1048e0)=>{const _0xa11ad7=_0x4e6855['data']['oldRange'],_0x538d9e=_0x1048e0['data']['oldRange'];return null===_0xa11ad7&&null===_0x538d9e?0x0:null===_0xa11ad7&&null!==_0x538d9e?-0x1:null!==_0xa11ad7&&null===_0x538d9e?0x1:_0xa11ad7['start']['isBefore'](_0x538d9e['start'])?-0x1:0x1;});const _0x521f5a=new Set(),_0x56b8eb=new Set();for(const {name:_0x37566f,data:_0x4c0f5b}of _0x303be2){const {id:_0x3eb2f1}=this['_splitMarkerName'](_0x37566f);if(null===_0x4c0f5b['oldRange']){const _0x58f983=this['_handleNewSuggestionMarker'](_0x37566f);_0x56b8eb['add'](_0x58f983);}else{const _0xb5f6f0=this['_suggestions']['get'](_0x3eb2f1);null!==_0x4c0f5b['newRange']||_0xb5f6f0['isInContent']?(_0x521f5a['add'](_0xb5f6f0['head']),_0x56b8eb['add'](_0xb5f6f0)):this['_removeSuggestion'](_0xb5f6f0);}}_0x56b8eb['size']>0x0&&this['_refreshSuggestionsChain'](_0x56b8eb);for(const _0x2f947f of _0x521f5a)this['fire']('suggestionChanged',_0x2f947f);}),_0x1f4cd5['model']['on']('applyOperation',(_0x2b64b6,_0x517689)=>{const _0x272a16=_0x517689[0x0];if(!this['_suggestions']['size'])return;if(!_0x272a16['isDocumentOperation'])return;if(_0x272a16['batch']['isUndo']||!_0x272a16['batch']['isLocal'])return;let _0x4fc406,_0x4e9795;switch(_0x272a16['type']){case'insert':_0x4fc406=_0x1f4cd5['model']['createPositionAt'](_0x272a16['position']),_0x4e9795=_0x4fc406['getShiftedBy'](_0x272a16['howMany']);break;case'split':_0x4fc406=_0x1f4cd5['model']['createPositionAt'](_0x272a16['splitPosition']),_0x4e9795=_0x1f4cd5['model']['createPositionAt'](_0x272a16['moveTargetPosition']);break;case'move':_0x4fc406=_0x1f4cd5['model']['createPositionAt'](_0x272a16['targetPosition']),_0x4e9795=_0x4fc406['getShiftedBy'](_0x272a16['howMany']);break;default:return;}const _0x35bce0=_0x1f4cd5['model']['createRange'](_0x4fc406,_0x4e9795);_0x1f4cd5['model']['change'](()=>{for(const {suggestion:_0x2b5e4d,meta:_0x572361}of this['_findSuggestions'](_0x35bce0)){if(_0x2b5e4d['isMultiRange'])continue;if('formatInline'==_0x2b5e4d['type'])continue;const _0x3e9487=this['_getAttributeKey'](_0x2b5e4d);if(_0x3e9487&&this['_isBlockAttribute'](_0x3e9487)&&'split'!=_0x272a16['type'])continue;const _0x1ca7af=_0x2b5e4d['data']&&_0x2b5e4d['data']['multipleBlocks'];('formatBlock'!=_0x2b5e4d['type']||'split'==_0x272a16['type']&&!_0x1ca7af)&&(_0x572361['containsRangeInObject']||'insertion'==_0x2b5e4d['type']&&_0x572361['isOwn']||_0x2b5e4d['getFirstRange']()['containsRange'](_0x35bce0)&&this['_breakSuggestionMarker'](_0x2b5e4d,_0x4fc406,_0x4e9795));}});},{'priority':'lowest'}),_0x1f4cd5['model']['on']('deleteContent',(_0x30db0b,_0x496dee)=>{const _0x5a1c8e=_0x496dee[0x0],_0x2409ab=_0x496dee[0x1];if(_0x2409ab&&_0x2409ab['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x5a1c8e['isCollapsed'])return;const _0x2d6d15=_0x1f4cd5['model']['schema'],{start:_0x307e93,end:_0x110e93}=_0x5a1c8e['getFirstRange'](),_0x290188=_0x307e93['nodeAfter']&&_0x2d6d15['isLimit'](_0x307e93['nodeAfter'])?null:_0x2d6d15['getNearestSelectionRange'](_0x307e93,'forward'),_0x435282=_0x110e93['nodeBefore']&&_0x2d6d15['isLimit'](_0x110e93['nodeBefore'])?null:_0x2d6d15['getNearestSelectionRange'](_0x110e93,'backward'),_0x4b6c20=_0x1f4cd5['model']['createRange'](_0x290188?_0x290188['start']:_0x307e93,_0x435282?_0x435282['end']:_0x110e93);_0x1f4cd5['model']['change'](_0x29c535=>{this['markDeletion'](_0x4b6c20);const _0x4f5091=_0x1f4cd5['model']['schema']['getNearestSelectionRange'](_0x4b6c20['start']);_0x5a1c8e['is']('documentSelection')?_0x29c535['setSelection'](_0x4f5091):_0x5a1c8e['setTo'](_0x4f5091);}),_0x30db0b['stop']();},{'priority':_0xa538e4['normal']+0xa}),_0x1f4cd5['model']['on']('insertContent',(_0x1d80a1,_0x3776bb)=>{const _0x1fd22d=_0x3776bb[_0x3776bb['length']-0x1];_0x1fd22d&&_0x1fd22d['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1f4cd5['model']['change'](()=>{let _0x50a909=_0x1f4cd5['model']['insertContent'](_0x3776bb[0x0],_0x3776bb[0x1],_0x3776bb[0x2],{'forceDefaultExecution':!0x0});if(!_0x50a909)return;_0x1d80a1['return']=_0x50a909['clone']();const _0x4aabb2=_0x50a909['end']['nodeBefore'],_0x2e05b5=_0x1f4cd5['model']['schema'];_0x4aabb2&&_0x2e05b5['isBlock'](_0x4aabb2)&&!_0x2e05b5['isObject'](_0x4aabb2)&&(_0x50a909=_0x1f4cd5['model']['createRange'](_0x50a909['start'],_0x1f4cd5['model']['createPositionAt'](_0x4aabb2,'end'))),this['markInsertion'](_0x50a909);}),_0x1d80a1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x43f7a2=new D(_0x1f4cd5,this['_suggestions']);_0x1f4cd5['commands']['add']('acceptSuggestion',_0x43f7a2),this['enableCommand']('acceptSuggestion');const _0x3988c6=new M(_0x1f4cd5,this['_suggestions']);_0x1f4cd5['commands']['add']('discardSuggestion',_0x3988c6),this['enableCommand']('discardSuggestion'),_0x1f4cd5['commands']['add']('acceptAllSuggestions',new $(_0x1f4cd5,_0x43f7a2,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1f4cd5['commands']['add']('discardAllSuggestions',new $(_0x1f4cd5,_0x3988c6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1f4cd5['commands']['add']('acceptSelectedSuggestions',new B(_0x1f4cd5,_0x43f7a2,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1f4cd5['commands']['add']('discardSelectedSuggestions',new B(_0x1f4cd5,_0x3988c6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x8af3a5=_0x1f4cd5['plugins']['get']('CommentsRepository');this['listenTo'](_0x8af3a5,'addComment',(_0x3ba2de,{threadId:_0x44b2b2})=>{const _0x2cd2f4=this['_suggestions']['get'](_0x44b2b2);_0x2cd2f4&&_0x2cd2f4['commentThread']&&0x1===_0x2cd2f4['commentThread']['length']&&this['_updateSuggestionData'](_0x44b2b2,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x8af3a5,'removeComment',(_0x6eb0b6,{threadId:_0x9017eb})=>{const _0x28995b=this['_suggestions']['get'](_0x9017eb);_0x28995b&&_0x28995b['commentThread']&&!_0x28995b['commentThread']['length']&&this['_updateSuggestionData'](_0x9017eb,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x1d16dc){const _0x13ad9d=_0x27b66b([0x62,0x42,0x30,0x32,0x74,0x4e,0x50,0x68,0x31,0x6b,0x56,0x35,0x73,0x79,0x34,0x41,0x59,0x45,0x38,0x78,0x72,0x66,0x4b,0x61,0x57,0x36,0x6d,0x6a,0x53,0x75,0x54,0x76,0x77,0x6e,0x52,0x5a,0x69,0x64,0x39,0x47,0x4d,0x63,0x43,0x33,0x7a,0x51,0x37,0x67,0x71,0x49,0x6c,0x6f,0x48,0x65,0x58,0x46,0x70,0x55,0x44,0x4a,0x4f,0x4c]),_0x462218=0x68193220,_0x1c1233=0x681e5ee8^_0x462218,_0x211832=window[_0x27b66b([0x44,0x61,0x74,0x65])][_0x27b66b([0x6e,0x6f,0x77])](),_0x5df1cd=_0x1d16dc[_0x27b66b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xf0f7a0=new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a52d6=>{_0x5df1cd[_0x27b66b([0x6f,0x6e,0x63,0x65])](_0x27b66b([0x72,0x65,0x61,0x64,0x79]),_0x3a52d6);}),_0x360fcc={[_0x27b66b([0x6b,0x74,0x79])]:_0x27b66b([0x45,0x43]),[_0x27b66b([0x75,0x73,0x65])]:_0x27b66b([0x73,0x69,0x67]),[_0x27b66b([0x63,0x72,0x76])]:_0x27b66b([0x50,0x2d,0x32,0x35,0x36]),[_0x27b66b([0x78])]:_0x27b66b([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x27b66b([0x79])]:_0x27b66b([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x27b66b([0x61,0x6c,0x67])]:_0x27b66b([0x45,0x53,0x32,0x35,0x36])},_0xd1acc=_0x5df1cd[_0x27b66b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27b66b([0x67,0x65,0x74])](_0x27b66b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x44aec9(){let _0x2db403,_0x29dab3=null,_0x36f58a=null;try{if(_0xd1acc==_0x27b66b([0x47,0x50,0x4c]))return _0x27b66b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2db403=_0x525d69(),!_0x2db403)return _0x27b66b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2db403[_0x27b66b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36f58a=_0x2facc6(_0x2db403[_0x27b66b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2db403[_0x27b66b([0x6a,0x74,0x69])])),await _0x35a608()?_0x3df8e8()?_0x18c9e2()?_0x27b66b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5cacd8()?(_0x2db403[_0x27b66b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27b66b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29dab3=_0x13bbc8(_0x27b66b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2db403[_0x27b66b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27b66b([0x74,0x72,0x69,0x61,0x6c])&&(_0x29dab3=_0x13bbc8(_0x27b66b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb9526d()):_0x27b66b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27b66b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27b66b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27b66b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18c9e2(){const _0x58d7ab=[_0x27b66b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27b66b([0x74,0x72,0x69,0x61,0x6c])][_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2db403[_0x27b66b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x211832/0x3e8:0xe10*_0x1c1233;return _0x2db403[_0x27b66b([0x65,0x78,0x70])]<_0x58d7ab;}function _0x3df8e8(){const _0x39b5a5=_0x2db403[_0x27b66b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x39b5a5)return!0x1;if(_0x39b5a5[_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b66b([0x2a])))return!0x0;if(_0x39b5a5[_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b66b([0x54,0x43])))return!0x0;if(_0x39b5a5[_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b66b([0x52,0x54,0x43]))){if(_0x4f13c7())return!0x0;if(_0x1236cb()||_0x497fc7())return!0x0;}return!0x1;}function _0x5cacd8(){const _0x49cacf=_0x2db403[_0x27b66b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49cacf||0x0==_0x49cacf[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe0af8}=new URL(window[_0x27b66b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49cacf[_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe0af8))return!0x0;const _0x5ab0ac=_0xe0af8[_0x27b66b([0x73,0x70,0x6c,0x69,0x74])](_0x27b66b([0x2e]));return _0x49cacf[_0x27b66b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x562706=>_0x562706[_0x27b66b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27b66b([0x2a])))[_0x27b66b([0x6d,0x61,0x70])](_0x247bb2=>_0x247bb2[_0x27b66b([0x73,0x70,0x6c,0x69,0x74])](_0x27b66b([0x2e])))[_0x27b66b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ad489=>_0x3ad489[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ab0ac[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27b66b([0x6d,0x61,0x70])](_0x4d88b8=>Array(_0x5ab0ac[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4d88b8[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27b66b([0x66,0x69,0x6c,0x6c])](_0x4d88b8[0x0]===_0x27b66b([0x2a])?_0x27b66b([0x2a]):'')[_0x27b66b([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4d88b8))[_0x27b66b([0x73,0x6f,0x6d,0x65])](_0x8a2479=>_0x5ab0ac[_0x27b66b([0x65,0x76,0x65,0x72,0x79])]((_0x1d8f30,_0x5591b4)=>_0x8a2479[_0x5591b4]===_0x1d8f30||_0x8a2479[_0x5591b4]===_0x27b66b([0x2a])));}function _0xb9526d(){return _0x29dab3&&_0x36f58a?new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f86da,_0x26c736)=>{_0x29dab3[_0x27b66b([0x74,0x68,0x65,0x6e])](_0x5f86da,_0x26c736),_0x36f58a[_0x27b66b([0x74,0x68,0x65,0x6e])](_0x4981b3=>{_0x4981b3!=_0x27b66b([0x56,0x61,0x6c,0x69,0x64])&&_0x5f86da(_0x4981b3);},_0x26c736);}):_0x29dab3||_0x36f58a||_0x27b66b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2facc6(_0x40aed7,_0x13f544){return new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x291a67=>{if(_0x2fe317())return _0x291a67(_0x27b66b([0x56,0x61,0x6c,0x69,0x64]));_0x2708a8(),_0x5df1cd[_0x27b66b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27b66b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x171c4b=!0x1;const _0x23a1df=_0x561a0d();function _0x4163f7(_0x3c608f){return!!_0x3c608f&&(typeof _0x3c608f===_0x27b66b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3c608f===_0x27b66b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3c608f[_0x27b66b([0x74,0x68,0x65,0x6e])]===_0x27b66b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3c608f[_0x27b66b([0x63,0x61,0x74,0x63,0x68])]===_0x27b66b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c37c2(_0x5d12a0){_0x5a0d3c(_0x5d12a0)[_0x27b66b([0x74,0x68,0x65,0x6e])](_0x4d9343=>{if(!_0x4d9343||_0x4d9343[_0x27b66b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27b66b([0x6f,0x6b]))return _0x27b66b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xc01436(_0x36abc9(_0x23a1df+_0x13f544))!=_0x4d9343[_0x27b66b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27b66b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27b66b([0x56,0x61,0x6c,0x69,0x64]);})[_0x27b66b([0x74,0x68,0x65,0x6e])](_0xde58c=>(_0x49e7e8(),_0xde58c),()=>{const _0x2250fe=_0x5f3f84();return null==_0x2250fe?(_0x49e7e8(),_0x27b66b([0x56,0x61,0x6c,0x69,0x64])):_0x27b66b(_0x211832-_0x2250fe>(0x4c15b620^_0x462218)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27b66b([0x74,0x68,0x65,0x6e])](_0x291a67)[_0x27b66b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x291a67(_0x27b66b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4879bf=0x682fdca0^_0x462218;function _0x49e7e8(){const _0x880e1=_0x27b66b([0x6c,0x6c,0x63,0x74,0x2d])+_0xc01436(_0x36abc9(_0x40aed7)),_0x26e77a=_0x3f3563(_0xc01436(window[_0x27b66b([0x4d,0x61,0x74,0x68])][_0x27b66b([0x63,0x65,0x69,0x6c])](_0x211832/_0x4879bf)));window[_0x27b66b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27b66b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x880e1,_0x26e77a);}function _0x5f3f84(){const _0x3d77cc=_0x27b66b([0x6c,0x6c,0x63,0x74,0x2d])+_0xc01436(_0x36abc9(_0x40aed7)),_0x51d2aa=window[_0x27b66b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27b66b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d77cc);return _0x51d2aa?window[_0x27b66b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3563(_0x51d2aa),0x10)*_0x4879bf:null;}function _0x5a0d3c(_0xd20eb8){return new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1b9a4d,_0x334f7b)=>{_0xd20eb8[_0x27b66b([0x74,0x68,0x65,0x6e])](_0x1b9a4d,_0x334f7b),window[_0x27b66b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x334f7b,0x6818e6e0^_0x462218);});}}_0x5df1cd[_0x27b66b([0x6f,0x6e])](_0x27b66b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29f85f,_0x44061f)=>{if(_0x44061f[0x0]!=_0x40aed7)return _0x291a67(_0x27b66b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44061f[0x1]={..._0x44061f[0x1],[_0x27b66b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23a1df};},{[_0x27b66b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27b66b([0x68,0x69,0x67,0x68])}),_0x5df1cd[_0x27b66b([0x6f,0x6e])](_0x27b66b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x98cced=>{_0x4163f7(_0x98cced[_0x27b66b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x171c4b=!0x0,_0x1c37c2(_0x98cced[_0x27b66b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27b66b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27b66b([0x6c,0x6f,0x77])}),_0xf0f7a0[_0x27b66b([0x74,0x68,0x65,0x6e])](()=>{_0x171c4b||_0x291a67(_0x27b66b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2fe317(){return _0x5df1cd[_0x27b66b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27b66b([0x76,0x69,0x65,0x77])][_0x27b66b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27b66b([0x61,0x75,0x74,0x6f]);}function _0x2708a8(){_0x5df1cd[_0x27b66b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27b66b([0x76,0x69,0x65,0x77])][_0x27b66b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27b66b([0x61,0x75,0x74,0x6f]);}}function _0x13bbc8(_0x170251){const _0x18ef21=[new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa587b=>setTimeout(_0xa587b,0x68100cec^_0x462218)),_0xf0f7a0[_0x27b66b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391efc=>{let _0x59e662=0x0;_0x5df1cd[_0x27b66b([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b66b([0x6f,0x6e])](_0x27b66b([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xc7144f,_0x282300)=>{_0x282300[0x0][_0x27b66b([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x59e662++,_0x59e662==(0x681933d8^_0x462218)&&(_0x391efc(),_0xc7144f[_0x27b66b([0x6f,0x66,0x66])]());});}))];return window[_0x27b66b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27b66b([0x72,0x61,0x63,0x65])](_0x18ef21)[_0x27b66b([0x74,0x68,0x65,0x6e])](()=>_0x170251);}async function _0x4e100c(){await _0xf0f7a0,_0x5df1cd[_0x27b66b([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b66b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4369d0,_0x5df1cd[_0x27b66b([0x6d,0x6f,0x64,0x65,0x6c])][_0x27b66b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4369d0,_0x5df1cd[_0x27b66b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27b66b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f13c7(){return _0x19ef1c(_0x27b66b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2a093c(_0x27b66b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27b66b([0x73,0x74,0x61,0x74,0x65])]==_0x27b66b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1236cb(){return _0x19ef1c(_0x27b66b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x497fc7(){return _0x19ef1c(_0x27b66b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4cf8cd(_0x3f7cea){const _0x4dc9e7=_0x4a9791();_0x5df1cd[_0x4dc9e7]=_0x27b66b([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3f7cea,_0x3f7cea!=_0x27b66b([0x56,0x61,0x6c,0x69,0x64])&&_0x4e100c();}function _0x4a9791(){const _0x3f8e3e=window[_0x27b66b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27b66b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27b66b([0x6e,0x6f,0x77])]())[_0x27b66b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27b66b([0x2e]),'');let _0x46d25e=_0x27b66b([0x62]);for(let _0x21e631=0x0;_0x21e631<_0x3f8e3e[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21e631+=0x2){let _0x20acdc=window[_0x27b66b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f8e3e[_0x27b66b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21e631,_0x21e631+0x2));_0x20acdc>=_0x13ad9d[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x20acdc-=_0x13ad9d[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x46d25e+=_0x13ad9d[_0x20acdc];}return _0x46d25e;}function _0x525d69(){const _0x229856=_0xd1acc[_0x27b66b([0x73,0x70,0x6c,0x69,0x74])](_0x27b66b([0x2e]));if(0x3!=_0x229856[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24ffae(_0x229856[0x1]);function _0x24ffae(_0x4c32cb){const _0x13aa7e=_0x22594b(_0x4c32cb);return _0x13aa7e&&_0x1d3f05()?_0x13aa7e:null;function _0x1d3f05(){const _0x145146=_0x13aa7e[_0x27b66b([0x6a,0x74,0x69])],_0x202abf=window[_0x27b66b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x145146[_0x27b66b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x145146[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c7c9f={..._0x13aa7e,[_0x27b66b([0x6a,0x74,0x69])]:_0x145146[_0x27b66b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x145146[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c7c9f[_0x27b66b([0x76,0x63])],_0x36abc9(_0x2c7c9f)==_0x202abf;}}}async function _0x35a608(){let _0x1d0d20=!0x0;try{const _0x34cd4a=_0xd1acc[_0x27b66b([0x73,0x70,0x6c,0x69,0x74])](_0x27b66b([0x2e])),[_0x14c3a2,_0x3eaed6,_0x42f3af]=_0x34cd4a;return _0x3a3914(_0x14c3a2),await _0x17fc68(_0x14c3a2,_0x3eaed6,_0x42f3af),_0x1d0d20;}catch{return!0x1;}function _0x3a3914(_0x4996ac){const _0x399680=_0x22594b(_0x4996ac);_0x399680&&_0x399680[_0x27b66b([0x61,0x6c,0x67])]==_0x27b66b([0x45,0x53,0x32,0x35,0x36])||(_0x1d0d20=!0x1);}async function _0x17fc68(_0xf821fc,_0x1d1a16,_0x1d245d){const _0xc7be94=window[_0x27b66b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27b66b([0x66,0x72,0x6f,0x6d])](_0x13c471(_0x1d245d),_0x151f8d=>_0x151f8d[_0x27b66b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x329337=new window[(_0x27b66b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27b66b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf821fc+_0x27b66b([0x2e])+_0x1d1a16),_0x5e49ab=window[_0x27b66b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27b66b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5e49ab)return;const _0x441c88=await _0x5e49ab[_0x27b66b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27b66b([0x6a,0x77,0x6b]),_0x360fcc,{[_0x27b66b([0x6e,0x61,0x6d,0x65])]:_0x27b66b([0x45,0x43,0x44,0x53,0x41]),[_0x27b66b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27b66b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27b66b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5e49ab[_0x27b66b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27b66b([0x6e,0x61,0x6d,0x65])]:_0x27b66b([0x45,0x43,0x44,0x53,0x41]),[_0x27b66b([0x68,0x61,0x73,0x68])]:{[_0x27b66b([0x6e,0x61,0x6d,0x65])]:_0x27b66b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x441c88,_0xc7be94,_0x329337)||(_0x1d0d20=!0x1);}}function _0x22594b(_0x468fdc){return _0x468fdc[_0x27b66b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27b66b([0x65,0x79]))?JSON[_0x27b66b([0x70,0x61,0x72,0x73,0x65])](_0x13c471(_0x468fdc)):null;}function _0x13c471(_0x4021e2){return window[_0x27b66b([0x61,0x74,0x6f,0x62])](_0x4021e2[_0x27b66b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27b66b([0x2b]))[_0x27b66b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27b66b([0x2f])));}function _0x36abc9(_0x1c0d22){let _0xefb03f=0x1505;function _0x28b3e2(_0xcad464){for(let _0x347a6d=0x0;_0x347a6d<_0xcad464[_0x27b66b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x347a6d++){const _0x4356cb=_0xcad464[_0x27b66b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x347a6d);_0xefb03f=(_0xefb03f<<0x5)+_0xefb03f+_0x4356cb,_0xefb03f&=_0xefb03f;}}function _0x19e305(_0x5a1da2){Array[_0x27b66b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5a1da2)?_0x5a1da2[_0x27b66b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x19e305):_0x5a1da2&&typeof _0x5a1da2==_0x27b66b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27b66b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5a1da2)[_0x27b66b([0x73,0x6f,0x72,0x74])]()[_0x27b66b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1a3144,_0x30c5be])=>{_0x28b3e2(_0x1a3144),_0x19e305(_0x30c5be);}):_0x28b3e2(window[_0x27b66b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5a1da2));}return _0x19e305(_0x1c0d22),_0xefb03f>>>0x0;}function _0xc01436(_0x13a33f){return _0x13a33f[_0x27b66b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27b66b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27b66b([0x30]));}function _0x3f3563(_0x172fa7){return _0x172fa7[_0x27b66b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27b66b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27b66b([0x6a,0x6f,0x69,0x6e])]('');}function _0x19ef1c(_0x41cc0f){return _0x5df1cd[_0x27b66b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27b66b([0x68,0x61,0x73])](_0x41cc0f);}function _0x2a093c(_0x5c5b9a){return _0x5df1cd[_0x27b66b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27b66b([0x67,0x65,0x74])](_0x5c5b9a);}function _0x4369d0(){}function _0x27b66b(_0xabf4f9){return _0xabf4f9['map'](_0x2ca3dc=>String['fromCharCode'](_0x2ca3dc))['join']('');}_0x4cf8cd(await _0x44aec9());}(this);}set['adapter'](_0x522545){if(this['_adapter'])throw new _0x30c4a5('track-changes-adapter-already-set',this);this['_adapter']=_0x522545;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3ac772=!0x1,toJSON:_0x247513=!0x1}={}){const _0x464992=[];for(const _0x242ee3 of this['_suggestions']['values']())_0x3ac772&&!_0x242ee3['isInContent']||_0x464992['push'](_0x242ee3);return _0x247513?_0x464992['map'](_0x2969c0=>_0x2969c0['toJSON']()):_0x464992;}['getSuggestion'](_0xa9ef9b){const _0x510c30=this['_suggestions']['get'](_0xa9ef9b);if(!_0x510c30)throw new _0x30c4a5('track-changes-suggestion-not-found',this);return _0x510c30;}['hasSuggestion'](_0x12a230){return this['_suggestions']['has'](_0x12a230);}['addSuggestionData'](_0x5889a5){const {authorId:_0x5f1649,id:_0x4d97b9,originalSuggestionId:_0x290576,attributes:_0xea11f7}=_0x5889a5,[_0x283882,_0x4e1467]=_0x5889a5['type']['split'](':'),_0x10e3a2=this['_suggestions']['get'](_0x4d97b9)||this['_createSuggestion'](_0x283882,_0x4e1467,_0x4d97b9,_0x5f1649,_0xea11f7,_0x290576);if(this['_addThreadToSuggestion'](_0x10e3a2),this['_checkSuggestionCorrectness'](_0x10e3a2,_0x283882,_0x4e1467||null,_0x5f1649),_0x10e3a2['createdAt']=_0x5889a5['createdAt'],_0x10e3a2['_isDataLoaded']=!0x0,_0xea11f7&&_0xea11f7['@external']){const _0x205f63=_0xea11f7['@external'],_0x27a095=this['_getExternalAuthor'](_0x205f63['authorName']);_0x10e3a2['authoredAt']=_0x205f63['createdAt'],_0x10e3a2['author']=_0x27a095,_0x10e3a2['isExternal']=!0x0;}else _0x10e3a2['authoredAt']=_0x5889a5['createdAt'];switch(_0x5889a5['data']&&(_0x10e3a2['data']=_0x5889a5['data']),_0x5889a5['attributes']&&(_0x10e3a2['attributes']=_0x5889a5['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x10e3a2['_saved']=!0x0),this['_suggestionState']['get'](_0x10e3a2)){case'notReady':this['_suggestionState']['set'](_0x10e3a2,'dataReady');break;case'markerReady':_0x10e3a2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x10e3a2])),this['_refreshSuggestionsChain'](new Set([_0x10e3a2])),this['_suggestionState']['set'](_0x10e3a2,'ready'),this['fire']('suggestionLoaded',_0x10e3a2)):this['_suggestionState']['set'](_0x10e3a2,'removed');}return _0x10e3a2;}['acceptSuggestion'](_0x5a022d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2b082f of _0x5a022d['getAllAdjacentSuggestions']())_0x2b082f['accept']();});});}['discardSuggestion'](_0x254d22){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5f4e9a of _0x254d22['getAllAdjacentSuggestions']())_0x5f4e9a['discard']();});});}['enableCommand'](_0x3725b1,_0xa2c552){const _0x2736df=this['editor']['commands']['get'](_0x3725b1);if(!_0x2736df)throw new _0x30c4a5('track-changes-command-not-found',this,{'commandName':_0x3725b1});if(this['_enabledCommands']['has'](_0x2736df))throw new _0x30c4a5('track-changes-enable-command-twice',this,{'commandName':_0x3725b1});this['_enabledCommands']['add'](_0x2736df),_0xa2c552&&_0x2736df['on']('execute',(_0x30f16a,_0x1fb49b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x1fb49b['length']>0x0&&_0x1fb49b[_0x1fb49b['length']-0x1]&&_0x1fb49b[_0x1fb49b['length']-0x1]['forceDefaultExecution']?_0x1fb49b['pop']():(_0x30f16a['return']=_0xa2c552((..._0x1fa8d9)=>_0x2736df['execute'](..._0x1fa8d9,{'forceDefaultExecution':!0x0}),..._0x1fb49b),_0x30f16a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x411a9a){let _0x8e7e8,_0xe7a1ed;const _0x58b047=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8e7e8=_0x411a9a();}catch(_0x5cee49){_0xe7a1ed=_0x5cee49;}return _0x58b047||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xe7a1ed&&_0x30c4a5['rethrowUnexpectedError'](_0xe7a1ed,this),_0x8e7e8;}['markInsertion'](_0x41d4fc,_0x5d370c=null,_0x10630d={}){if(_0x41d4fc['isCollapsed'])return null;const _0x1e1007=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x10630d['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x22e332,meta:_0x5cea34}of this['_findSuggestions'](_0x41d4fc,'insertion'))if(_0x5cea34['isOwn']){if(!_0x5cea34['isNextTo']){if(_0x5cea34['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x22e332,_0x10630d))continue;return _0x22e332;}if(Qt(_0x22e332,_0x10630d))return _0x22e332;this['_breakSuggestionMarker'](_0x22e332,_0x41d4fc['start'],_0x41d4fc['end']);break;}if(_0x5d370c==_0x22e332['subType']&&Qt(_0x22e332,_0x10630d)){const _0x32fc9a=_0x22e332['getFirstRange']();return _0x32fc9a['start']['isEqual'](_0x41d4fc['end'])?this['_setSuggestionRange'](_0x22e332,this['_model']['createRange'](_0x41d4fc['start'],_0x32fc9a['end'])):this['_setSuggestionRange'](_0x22e332,this['_model']['createRange'](_0x32fc9a['start'],_0x41d4fc['end'])),_0x22e332;}}const _0x5e9729=_0x561a0d(),_0x355183=_0x1e1007['id'],_0x4395f2=_0x5d370c?'insertion:'+_0x5d370c:'insertion',_0x5ccb88=this['_setSuggestionData']({'id':_0x5e9729,'type':_0x4395f2,'createdAt':new Date(),'authorId':_0x355183,'attributes':_0x10630d});return this['_addSuggestionMarker'](_0x4395f2,_0x5e9729,_0x355183,_0x41d4fc),_0x5ccb88;}['markMultiRangeInsertion'](_0x20bdf4,_0x296e12='multi',_0x51e14d={}){const _0x229e7f=this['editor']['plugins']['get']('Users')['me'],_0x5cd516=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x296e12,'join');this['_trackingSessionId']&&(_0x51e14d['trackingSessionId']=this['_trackingSessionId']);for(const _0x5e5e06 of this['getSuggestions']())if(_0x5e5e06['author']['id']==_0x229e7f['id']&&'insertion'==_0x5e5e06['type']&&_0x5e5e06['subType']==_0x296e12&&Qt(_0x5e5e06,_0x51e14d)&&(_0x5cd516(_0x5e5e06['getRanges'](),_0x20bdf4)||_0x5cd516(_0x20bdf4,_0x5e5e06['getRanges']()))){for(const _0x5445ec of _0x20bdf4)_0x5e5e06['addRange'](_0x5445ec);return _0x5e5e06;}for(const {suggestion:_0x4a5a34,meta:_0x5b3a86}of this['_findSuggestions'](_0x20bdf4,'insertion')){if(!_0x5b3a86['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5b3a86['containsRangeInObject'])continue;if(!Qt(_0x4a5a34,_0x51e14d))continue;let _0x144416=!0x0;for(const _0x3362ef of _0x4a5a34['getRanges']())for(const _0x2815e4 of _0x20bdf4)if(!_0x3362ef['containsRange'](_0x2815e4)){_0x144416=!0x1;break;}if(_0x144416)return _0x4a5a34;}const _0x43b3d0=_0x561a0d(),_0x4dec6c=_0x229e7f['id'],_0x45e526='insertion:'+_0x296e12,_0x4a9ea9=this['_setSuggestionData']({'id':_0x43b3d0,'type':_0x45e526,'createdAt':new Date(),'authorId':_0x4dec6c,'attributes':_0x51e14d});for(const _0x23353f of _0x20bdf4)this['_addSuggestionMarker'](_0x45e526,_0x43b3d0,_0x4dec6c,_0x23353f,T['getMultiRangeId']());return _0x4a9ea9;}['markInlineFormat'](_0x394dbe,_0x417cf9,_0x398910=null,_0x1517e0={}){if(_0x398910=_0x398910||Lt(_0x417cf9),_0x394dbe['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x1517e0['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x11ddd8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x398910,'accept');return this['forceDefaultExecution'](()=>_0x11ddd8([_0x394dbe],_0x417cf9,_0x1517e0)),null;}const _0x4a5491=this['editor']['plugins']['get']('Users')['me'],_0x319ef6=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x18ee15,meta:_0x3af14b}of this['_findSuggestions'](_0x394dbe,'insertion'))_0x3af14b['isOwn']&&!_0x3af14b['isInsideObject']&&_0x319ef6['push'](..._0x18ee15['getRanges']());}const _0x2f923c=function(_0x42ea7f,_0x16f0b8){const _0x2ed039=[];for(const _0x193c75 of _0x16f0b8){const _0x590e60=_0x42ea7f['getIntersection'](_0x193c75);_0x590e60&&_0x2ed039['push'](_0x590e60);}return _0x2ed039;}(_0x394dbe,_0x319ef6),_0x46ebe5=function(_0x3db72f,_0x4bb641){const _0xa77e3d=[_0x3db72f];for(const _0x5c5dcd of _0x4bb641){let _0x3aec83=0x0;for(;_0x3aec83<_0xa77e3d['length'];){const _0x3834ec=_0xa77e3d[_0x3aec83]['getDifference'](_0x5c5dcd);_0xa77e3d['splice'](_0x3aec83,0x1,..._0x3834ec),_0x3aec83+=_0x3834ec['length'];}}return _0xa77e3d;}(_0x394dbe,_0x319ef6);_0x2f923c['length']&&this['_model']['change'](()=>{for(const _0x29cf3f of _0x2f923c){const _0x1ad92e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x398910,'accept');this['forceDefaultExecution'](()=>_0x1ad92e([_0x29cf3f],_0x417cf9,_0x1517e0));}});for(const _0x3a9871 of _0x46ebe5){let _0x403e21=null,_0x5ef919=_0x3a9871['start'],_0x1532c8=_0x3a9871['end'];for(const {suggestion:_0x30f817,meta:_0xf488b7}of this['_findSuggestions'](_0x3a9871,'formatInline')){if(!_0xf488b7['isOwn'])continue;if(_0x30f817['subType']!=_0x398910)continue;if(!Qt(_0x30f817,_0x1517e0))continue;const _0x61cca5=_0x30f817['getFirstRange']();if(_0x61cca5['containsRange'](_0x3a9871,!0x0))return null;_0x5ef919=_0x5ef919['isBefore'](_0x61cca5['start'])?_0x5ef919:_0x61cca5['start'],_0x1532c8=_0x1532c8['isAfter'](_0x61cca5['end'])?_0x1532c8:_0x61cca5['end'],_0x403e21?_0x61cca5['start']['isBefore'](_0x403e21['getFirstRange']()['start'])?(_0x403e21['removeMarkers'](),_0x403e21=_0x30f817):_0x30f817['removeMarkers']():_0x403e21=_0x30f817;}const _0x56db5d=this['_model']['createRange'](_0x5ef919,_0x1532c8);if(_0x403e21)this['_setSuggestionRange'](_0x403e21,_0x56db5d);else{const _0x22f944=_0x561a0d(),_0x1e1798=_0x4a5491['id'];this['_setSuggestionData']({'id':_0x22f944,'type':'formatInline:'+_0x398910,'data':_0x417cf9,'createdAt':new Date(),'authorId':_0x1e1798,'attributes':_0x1517e0}),this['_addSuggestionMarker']('formatInline:'+_0x398910,_0x22f944,_0x1e1798,_0x56db5d);}}return null;}['markBlockFormat'](_0x3ee3d6,_0xea4768,_0x233284=[],_0x190bad=null,_0x575adc={}){_0xea4768['formatGroupId']||(_0xea4768['formatGroupId']=_0xea4768['commandName']),_0xea4768['multipleBlocks']=_0x3ee3d6['is']('range'),_0x190bad=_0x190bad||Lt(_0xea4768);const _0x33c6d5=_0x233284['map'](_0x511dc8=>qt(_0x511dc8,this['_model'])),_0x4bf5d9=_0x3ee3d6['is']('range')?_0x3ee3d6:qt(_0x3ee3d6,this['_model']);if(this['_trackingSessionId']&&(_0x575adc['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4de430=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x190bad,'accept');return this['forceDefaultExecution'](()=>_0x4de430([_0x4bf5d9],_0xea4768,_0x575adc)),null;}_0x33c6d5['push'](_0x4bf5d9);let _0x772789=!0x0;for(const _0x589368 of _0x33c6d5)if(!this['_rangeIsInLocalUserInsertion'](_0x589368)){_0x772789=!0x1;break;}if(_0x772789&&'always'!==this['_trackFormatChanges']){const _0xdc53b0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x190bad,'accept');return this['forceDefaultExecution'](()=>_0xdc53b0([_0x4bf5d9],_0xea4768,_0x575adc)),null;}let _0x5b939e=null,_0x22f7ab=_0x4bf5d9['start'],_0xdb8d6=_0x4bf5d9['end'];for(const {suggestion:_0x454d39,meta:_0x3281e2}of this['_findSuggestions'](_0x4bf5d9,'formatBlock')){if(!_0x3281e2['isOwn'])continue;if(_0x3281e2['isNextTo']||_0x3281e2['containsRangeInObject']||_0x3281e2['isInsideObject'])continue;if(_0x454d39['data']['formatGroupId']!=_0xea4768['formatGroupId'])continue;if(!Qt(_0x454d39,_0x575adc))continue;const _0x2542a9=_0x454d39['getFirstRange']();if(_0x454d39['subType']==_0x190bad){if(_0x2542a9['containsRange'](_0x4bf5d9,!0x0))return null;_0x22f7ab=_0x22f7ab['isBefore'](_0x2542a9['start'])?_0x22f7ab:_0x2542a9['start'],_0xdb8d6=_0xdb8d6['isAfter'](_0x2542a9['end'])?_0xdb8d6:_0x2542a9['end'],_0x5b939e?_0x2542a9['start']['isBefore'](_0x5b939e['getFirstRange']()['start'])?(_0x5b939e['removeMarkers'](),_0x5b939e=_0x454d39):_0x454d39['removeMarkers']():_0x5b939e=_0x454d39;}else{const _0x26c749=_0x4bf5d9['getIntersection'](_0x2542a9);this['_cutOutSuggestionMarker'](_0x454d39,_0x26c749);}}const _0x4b911d=this['editor']['plugins']['get']('Users')['me'],_0x325be2=_0x561a0d(),_0x1ae2c1=_0x4b911d['id'];if(_0x5b939e)return this['_setSuggestionRange'](_0x5b939e,this['_model']['createRange'](_0x22f7ab,_0xdb8d6)),_0x5b939e;{const _0x2d5434=this['_setSuggestionData']({'id':_0x325be2,'type':'formatBlock:'+_0x190bad,'data':_0xea4768,'createdAt':new Date(),'authorId':_0x1ae2c1,'attributes':_0x575adc});return this['_addSuggestionMarker']('formatBlock:'+_0x190bad,_0x325be2,_0x1ae2c1,this['_model']['createRange'](_0x22f7ab,_0xdb8d6)),_0x2d5434;}}['markMultiRangeBlockFormat'](_0x234e49,_0x13810c,_0x5ae1cd=[],_0x3bedef=null,_0x5cc2b7={}){_0x13810c['formatGroupId']||(_0x13810c['formatGroupId']=_0x13810c['commandName']);const _0x155aad=_0x234e49[0x0];_0x13810c['multipleBlocks']=_0x155aad['is']('range'),_0x3bedef=_0x3bedef||Lt(_0x13810c);const _0x14ff50=_0x5ae1cd['map'](_0x3d2ee4=>qt(_0x3d2ee4,this['_model'])),_0x2225d2=_0x155aad['is']('range')?_0x234e49:_0x234e49['map'](_0x38412f=>qt(_0x38412f,this['_model']));if(this['_trackingSessionId']&&(_0x5cc2b7['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1d1aaa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bedef,'accept');return this['forceDefaultExecution'](()=>_0x1d1aaa(_0x2225d2,_0x13810c,_0x5cc2b7)),null;}_0x14ff50['push'](..._0x2225d2);let _0xf84bc4=!0x0;for(const _0x29be23 of _0x14ff50)if(!this['_rangeIsInLocalUserInsertion'](_0x29be23)){_0xf84bc4=!0x1;break;}if(_0xf84bc4&&'always'!==this['_trackFormatChanges']){const _0x452557=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bedef,'accept');return this['forceDefaultExecution'](()=>_0x452557(_0x2225d2,_0x13810c,_0x5cc2b7)),null;}const _0x4643fc=this['editor']['plugins']['get']('Users')['me'];for(const _0x176860 of this['getSuggestions']()){const _0xbfcbd4=_0x176860['data'];if(_0x176860['author']['id']!=_0x4643fc['id'])continue;if('formatBlock'!=_0x176860['type']||_0xbfcbd4['formatGroupId']!=_0x13810c['formatGroupId'])continue;if(!Qt(_0x176860,_0x5cc2b7))continue;const _0x95f9e=_0x176860['subType']==_0x3bedef;for(let _0x20afe1=0x0;_0x20afe1<_0x2225d2['length'];_0x20afe1++){const _0x2c8899=_0x2225d2[_0x20afe1];for(const _0x49b08a of _0x176860['getMarkers']()){const _0x22cc51=_0x49b08a['getRange']();if(_0x2c8899['isEqual'](_0x22cc51)){_0x95f9e?(_0x2225d2['splice'](_0x20afe1,0x1),_0x20afe1--):_0x176860['removeMarker'](_0x49b08a['name']);break;}}}}if(0x0==_0x2225d2['length'])return null;const _0x38db99=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3bedef,'join');for(const _0x4c65ee of this['getSuggestions']()){const _0x3d1daa=_0x4c65ee['data'];if(_0x4c65ee['author']['id']==_0x4643fc['id']&&('formatBlock'==_0x4c65ee['type']&&_0x3d1daa['formatGroupId']==_0x13810c['formatGroupId']&&_0x4c65ee['subType']==_0x3bedef&&Qt(_0x4c65ee,_0x5cc2b7)&&(_0x38db99(_0x4c65ee['getRanges'](),_0x2225d2)||_0x38db99(_0x2225d2,_0x4c65ee['getRanges']())))){for(const _0x2071fc of _0x2225d2)_0x4c65ee['addRange'](_0x2071fc);return _0x4c65ee;}}const _0xe85b01=_0x561a0d(),_0xc387e5=_0x4643fc['id'],_0x54a6a0='formatBlock:'+_0x3bedef,_0x5c0b10=this['_setSuggestionData']({'id':_0xe85b01,'type':_0x54a6a0,'data':_0x13810c,'createdAt':new Date(),'authorId':_0xc387e5,'attributes':_0x5cc2b7});for(const _0x3d82c4 of _0x2225d2)this['_addSuggestionMarker'](_0x54a6a0,_0xe85b01,_0xc387e5,_0x3d82c4,T['getMultiRangeId']());return _0x5c0b10;}['markDeletion'](_0x826dfa,_0x31d51f=null,_0x5acd44={}){if(_0x826dfa['isCollapsed'])return null;const _0x465751=this['editor']['plugins']['get']('Users')['me'],_0x25dac9=new _0x39c36c(_0x826dfa['start'],_0x826dfa['end']);this['_trackingSessionId']&&(_0x5acd44['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4a8d1c,meta:_0x17c3ef}of this['_findSuggestions'](_0x25dac9,'insertion'))if(_0x17c3ef['isOwn']&&!_0x17c3ef['isNextTo']){if(_0x4a8d1c['isMultiRange']){const _0x327094=_0x4a8d1c['getRanges']()['filter'](_0x528c9c=>'$graveyard'!=_0x528c9c['root']['rootName']);_0x327094['every'](_0x3e7657=>_0x25dac9['containsRange'](_0x3e7657,!0x0))&&_0x4a8d1c['discard']();if(_0x327094['some'](_0x32bd0a=>_0x32bd0a['containsRange'](_0x25dac9,!0x0))){const _0x50d13e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x31d51f,'accept');return this['forceDefaultExecution'](()=>_0x50d13e([_0x25dac9],null,_0x5acd44)),null;}}else{const _0x24fcea=_0x25dac9['getIntersection'](_0x4a8d1c['getFirstRange']());null!==_0x24fcea&&_0x4a8d1c['_onDiscard']([_0x24fcea],null,_0x5acd44);}}if(_0x25dac9['detach'](),_0x25dac9['isCollapsed']||'$graveyard'==_0x25dac9['root']['rootName'])return null;let _0x556cac=null,_0x9a911d=_0x25dac9['start'],_0x4eb5ef=_0x25dac9['end'];const _0x156024=this['_findSuggestions'](_0x25dac9,'deletion');for(const {suggestion:_0x31d6e7,meta:_0x5289c5}of _0x156024){const _0x5d5d6d=this['_model']['createRange'](_0x9a911d,_0x4eb5ef);if(_0x5289c5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5289c5['containsRangeInObject']&&!_0x5289c5['isInsideObject'])){if(_0x31d6e7['isMultiRange']){if(!Qt(_0x31d6e7,_0x5acd44))continue;let _0x98d592=!0x0;for(const _0x84cca7 of _0x31d6e7['getRanges']()){if(_0x84cca7['containsRange'](_0x5d5d6d,!0x0))return _0x31d6e7;_0x5d5d6d['containsRange'](_0x84cca7)||(_0x98d592=!0x1);}_0x98d592&&_0x31d6e7['discard']();}else{const _0x5316f1=_0x31d6e7['getFirstRange']();if(_0x5316f1['containsRange'](_0x5d5d6d,!0x0))return _0x31d6e7;if(!Qt(_0x31d6e7,_0x5acd44)){_0x5d5d6d['containsRange'](_0x5316f1)?_0x31d6e7['removeMarkers']():_0x5316f1['containsPosition'](_0x9a911d)?_0x9a911d=_0x5316f1['end']:_0x5316f1['containsPosition'](_0x4eb5ef)&&(_0x4eb5ef=_0x5316f1['start']);continue;}_0x9a911d=_0x9a911d['isBefore'](_0x5316f1['start'])?_0x9a911d:_0x5316f1['start'],_0x4eb5ef=_0x4eb5ef['isAfter'](_0x5316f1['end'])?_0x4eb5ef:_0x5316f1['end'],_0x5acd44=Object['assign']({},_0x31d6e7['attributes']),_0x556cac?_0x5316f1['start']['isBefore'](_0x556cac['getFirstRange']()['start'])?(_0x556cac['removeMarkers'](),_0x556cac=_0x31d6e7):_0x31d6e7['removeMarkers']():_0x556cac=_0x31d6e7;}}}if(_0x556cac)return this['_setSuggestionRange'](_0x556cac,this['_model']['createRange'](_0x9a911d,_0x4eb5ef)),_0x556cac;{const _0x16eb41=_0x561a0d(),_0x28db63=this['_model']['createRange'](_0x9a911d,_0x4eb5ef),_0x1418b6=_0x465751['id'],_0x48dfb2=_0x31d51f?'deletion:'+_0x31d51f:'deletion',_0x17d49f=this['_setSuggestionData']({'id':_0x16eb41,'type':_0x48dfb2,'createdAt':new Date(),'authorId':_0x1418b6,'attributes':_0x5acd44});return this['_addSuggestionMarker'](_0x48dfb2,_0x16eb41,_0x1418b6,_0x28db63),_0x17d49f;}}['markMultiRangeDeletion'](_0x1579da,_0x23a001='multi',_0xcf88a9={}){const _0x143cef=this['editor']['plugins']['get']('Users')['me'],_0x4f88e7=_0x1579da['map'](_0x282f74=>new _0x39c36c(_0x282f74['start'],_0x282f74['end'])),_0x2def1f=new Set();this['_trackingSessionId']&&(_0xcf88a9['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x3b45fb,meta:_0x125e05}of this['_findSuggestions'](_0x4f88e7,'insertion'))_0x125e05['isOwn']&&!_0x125e05['isNextTo']&&_0x2def1f['add'](_0x3b45fb);for(const _0x44d0f9 of _0x2def1f)if(_0x44d0f9['isMultiRange']){const _0x5091bf=_0x44d0f9['getRanges']();(!_0x44d0f9['attributes']||!_0x44d0f9['attributes']['skipNestingCheck'])&&(_0x5091bf['every'](_0x257370=>_0x4f88e7['some'](_0x56d8cd=>_0x56d8cd['containsRange'](_0x257370,!0x0)))&&_0x44d0f9['discard']());if(_0x4f88e7['every'](_0x5eec7d=>_0x5091bf['some'](_0x3f3dce=>_0x3f3dce['containsRange'](_0x5eec7d,!0x0)))){const _0x14a60c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23a001,'accept');return this['forceDefaultExecution'](()=>_0x14a60c(_0x1579da,null,_0xcf88a9)),null;}}else{const _0x585465=_0x44d0f9['getFirstRange']();_0x4f88e7['some'](_0x1d9933=>_0x1d9933['containsRange'](_0x585465,!0x0))&&_0x44d0f9['discard']();if(_0x4f88e7['every'](_0x251b10=>_0x585465['containsRange'](_0x251b10,!0x0))){const _0x5b228b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23a001,'accept');return this['forceDefaultExecution'](()=>_0x5b228b(_0x4f88e7,null,_0xcf88a9)),null;}}const _0x1914e0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23a001,'join');let _0x8812f2=null;for(const _0x5f31aa of this['getSuggestions']())if(_0x5f31aa['author']['id']==_0x143cef['id']&&_0x5f31aa['isInContent']&&'deletion'==_0x5f31aa['type']&&_0x5f31aa['subType']==_0x23a001&&Qt(_0x5f31aa,_0xcf88a9)&&(_0x1914e0(_0x5f31aa['getRanges'](),_0x4f88e7)||_0x1914e0(_0x4f88e7,_0x5f31aa['getRanges']()))){if(_0x8812f2){if(_0x5f31aa['commentThread']&&_0x5f31aa['commentThread']['length'])continue;for(const _0x25e476 of _0x5f31aa['getRanges']())_0x8812f2['isIntersectingWithRange'](_0x25e476)||_0x8812f2['addRange'](_0x25e476);_0x5f31aa['removeMarkers']();}else{_0x8812f2=_0x5f31aa;for(const _0x299a1d of _0x4f88e7)_0x5f31aa['isIntersectingWithRange'](_0x299a1d)||_0x5f31aa['addRange'](_0x299a1d);}}if(_0x8812f2)return _0x8812f2;_0x2def1f['clear']();for(const {suggestion:_0x461bb7,meta:_0x5ce3bb}of this['_findSuggestions'](_0x4f88e7,'deletion'))_0x5ce3bb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5ce3bb['containsRangeInObject']&&!_0x5ce3bb['isInsideObject'])&&Qt(_0x461bb7,_0xcf88a9)&&_0x2def1f['add'](_0x461bb7);for(const _0x121a12 of _0x2def1f){const _0x262552=_0x121a12['getRanges']();if(!_0xcf88a9||!_0xcf88a9['skipNestingCheck']){if(_0x4f88e7['every'](_0x260c6f=>_0x262552['some'](_0x52bdd6=>_0x52bdd6['containsRange'](_0x260c6f,!0x0))))return _0x121a12;}(!_0x121a12['attributes']||!_0x121a12['attributes']['skipNestingCheck'])&&(_0x262552['every'](_0x114062=>_0x4f88e7['some'](_0x3d84c7=>_0x3d84c7['containsRange'](_0x114062,!0x0)))&&_0x121a12['discard']());}const _0x2340f9=_0x561a0d(),_0x4d42ad=_0x143cef['id'],_0x1f28c9='deletion:'+_0x23a001,_0x25b692=this['_setSuggestionData']({'id':_0x2340f9,'type':_0x1f28c9,'createdAt':new Date(),'authorId':_0x4d42ad,'attributes':_0xcf88a9});for(const _0x5e4763 of _0x4f88e7)_0x5e4763['detach'](),_0x5e4763['isCollapsed']||'$graveyard'==_0x5e4763['root']['rootName']||this['_addSuggestionMarker'](_0x1f28c9,_0x2340f9,_0x4d42ad,_0x5e4763,T['getMultiRangeId']());return _0x25b692;}['markAttributeChange'](_0x4e186a,_0x466b23,_0x5ce702,_0xddba9,_0x38f220){if(_0x4e186a['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xd207e1=this['editor']['plugins']['get']('Users')['me']['id'],_0x15d770=Array['from'](this['_suggestions']['values']())['filter'](_0x10259c=>'attribute'==_0x10259c['type']&&_0x10259c['data']['key']==_0x466b23&&_0x10259c['isIntersectingWithRange'](_0x4e186a));if(this['_trackingSessionId']&&(_0x38f220['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x4d274=this['_findSuggestions'](_0x4e186a,'insertion')['filter'](({meta:_0x3ddf43})=>_0x3ddf43['isOwn']&&!_0x3ddf43['isInsideObject']&&!_0x3ddf43['isNextTo'])['map'](({suggestion:_0x3baf26})=>_0x3baf26);_0x15d770['unshift'](..._0x4d274);}const _0x4432d4=new Map([[_0x4e186a,_0x5ce702]]);for(const _0x5ada60 of _0x15d770){const _0x337b5d='attribute'==_0x5ada60['type']?_0x5ada60['data']['oldValue']:void 0x0,_0x1ec683=_0x5ada60['getFirstRange'](),_0x39b76d=Array['from'](_0x4432d4['keys']())['find'](_0x218132=>_0x218132['isIntersecting'](_0x1ec683));if(!_0x39b76d)continue;const _0x378518=_0x39b76d['getDifference'](_0x1ec683);this['_isBlockAttribute'](_0x466b23)&&'insertion'==_0x5ada60['type']&&0x0!=_0x378518['length']||(_0x4432d4['delete'](_0x39b76d),_0x378518['forEach'](_0x1e8a56=>{_0x4432d4['set'](_0x1e8a56,_0x5ce702);}),'insertion'!=_0x5ada60['type']&&_0x337b5d!=_0xddba9&&_0x4432d4['set'](_0x39b76d['getIntersection'](_0x1ec683),_0x337b5d));}const _0x1f83b9=[];for(const [_0x5c5369,_0x48540a]of _0x4432d4){const _0x467413=_0x561a0d(),_0x472bb8={'key':_0x466b23,'oldValue':_0x48540a,'newValue':_0xddba9};_0x466b23['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x466b23});const _0x316d0f=('attribute:'+(_0x466b23+'|'+Lt({'newValue':_0xddba9})))['substring'](0x0,0x3c),_0xa51e5d=this['_setSuggestionData']({'id':_0x467413,'type':_0x316d0f,'data':_0x472bb8,'createdAt':new Date(),'authorId':_0xd207e1,'attributes':_0x38f220});_0x1f83b9['push'](_0xa51e5d),this['_addSuggestionMarker'](_0x316d0f,_0x467413,_0xd207e1,_0x5c5369);}return _0x1f83b9;}['enableDefaultAttributesIntegration'](_0xe9e7ce){this['enableCommand'](_0xe9e7ce,(_0xcbda62,..._0x48eccb)=>{this['recordAttributeChanges'](()=>{_0xcbda62(..._0x48eccb);});});}['registerBlockAttribute'](_0x1f32b2){this['_blockAttributeKeys']['add'](_0x1f32b2);}['registerInlineAttribute'](_0x3744c2){this['_inlineAttributeKeys']['add'](_0x3744c2);}['startTrackingSession'](_0x3339a6){return this['_trackingSessionId']=void 0x0!==_0x3339a6?_0x3339a6:_0x561a0d(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1ed01b){return'attribute'==_0x1ed01b['type']?_0x1ed01b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x129d25,_0x1c97d4){const _0x1e8e94=_0x129d25['getFirstMarker']();this['_model']['change'](_0x2a98db=>{_0x2a98db['updateMarker'](_0x1e8e94,{'range':_0x1c97d4});});}['_addThreadToSuggestion'](_0x598bf7){const _0x177898=_0x598bf7['id'],_0x4a7325=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x177898)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4a7325,'threadId':_0x177898,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3b0770=this['_commentsRepository']['getCommentThread'](_0x177898);_0x3b0770['unbind']('isRemovable'),_0x3b0770['isRemovable']=!0x1,_0x598bf7['commentThread']=_0x3b0770;}['_checkSuggestionCorrectness'](_0x2d2819,_0xb28b44,_0x3ce19b,_0x8c97b4){if(_0x2d2819['type']!=_0xb28b44||_0x2d2819['subType']!=_0x3ce19b||_0x2d2819['creator']['id']!=_0x8c97b4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x30c4a5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3e30af,_0x16a9c4){const _0x1bd26c=_0x3e30af['getFirstRange']();if(_0x16a9c4['isEqual'](_0x1bd26c))_0x3e30af['removeMarkers']();else{if(_0x1bd26c['containsRange'](_0x16a9c4)){const _0x2504ff=this['_model']['createPositionAt'](_0x16a9c4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e30af,this['_model']['createRange'](_0x1bd26c['start'],_0x2504ff));const _0x3b0039=_0x561a0d(),_0x2b3cfa=_0x3e30af['creator']['id'],_0xf7d1f1=_0x3e30af['type']+':'+_0x3e30af['subType'];this['_setSuggestionData']({'id':_0x3b0039,'type':_0xf7d1f1,'createdAt':new Date(),'authorId':_0x2b3cfa,'data':_0x3e30af['data'],'attributes':_0x3e30af['attributes']});const _0x284ab6=this['_model']['createPositionAt'](_0x16a9c4['end']['parent'],'after'),_0x204954=this['_model']['createRange'](_0x284ab6,_0x1bd26c['end']);this['_addSuggestionMarker'](_0xf7d1f1,_0x3b0039,_0x2b3cfa,_0x204954);}else{if(_0x1bd26c['containsPosition'](_0x16a9c4['start'])){const _0x350b60=this['_model']['createPositionAt'](_0x16a9c4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3e30af,this['_model']['createRange'](_0x1bd26c['start'],_0x350b60));}else{const _0x2ed21f=this['_model']['createPositionAt'](_0x16a9c4['end']['parent'],'after');this['_setSuggestionRange'](_0x3e30af,this['_model']['createRange'](_0x2ed21f,_0x1bd26c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x133be7){for(const {suggestion:_0x493756,meta:_0x410a5f}of this['_findSuggestions'](_0x133be7,'insertion')){if(!_0x410a5f['isOwn'])continue;const _0x1b8d12=_0x493756['getRanges']();for(const _0x84aca0 of _0x1b8d12)if(!_0x133be7['getDifference'](_0x84aca0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4f7e9e){const _0x8bebf7=this['editor']['plugins']['get']('Users')['getUser'](_0x4f7e9e);if(!_0x8bebf7)throw new _0x30c4a5('track-changes-user-not-found',this);return _0x8bebf7;}['_getExternalAuthor'](_0x45200c){const _0x81100d=this['editor']['plugins']['get']('Users'),_0x5a0971=_0x4aff99('external:'+_0x45200c),_0x5a159e=_0x81100d['getUser'](_0x5a0971);return _0x5a159e||_0x81100d['addUser']({'id':_0x5a0971,'name':_0x45200c});}['_createSuggestion'](_0x316f83,_0x22d658,_0x27c2d7,_0x9444d5,_0x5be4ba,_0x597c23){const _0x1d04f6=this['_getAuthorFromId'](_0x9444d5),_0x545d0d=this['_suggestionFactory']['buildSuggestion'](_0x316f83,_0x22d658,_0x27c2d7,_0x1d04f6,_0x5be4ba,_0xe2f059=>{this['_updateSuggestionData'](_0x27c2d7,{'attributes':_0xe2f059});const _0x4d4acf=this['getSuggestion'](_0x27c2d7);this['_joinWithAdjacentSuggestions'](new Set([_0x4d4acf])),this['_refreshSuggestionsChain'](new Set([_0x4d4acf]));},_0x597c23);return this['listenTo'](_0x545d0d,'accept',()=>{this['_updateSuggestionData'](_0x27c2d7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x545d0d,'discard',()=>{this['_updateSuggestionData'](_0x27c2d7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x27c2d7,_0x545d0d),this['_suggestionState']['set'](_0x545d0d,'notReady'),_0x545d0d;}['_splitMarkerName'](_0x4b7b00){const _0x175293=_0x4b7b00['split'](':');return{'group':_0x175293[0x0],'type':_0x175293[0x1],'subType':_0x175293['length']>=0x5?_0x175293[0x2]:null,'id':_0x175293['length']<0x5?_0x175293[0x2]:_0x175293[0x3],'authorId':_0x175293['length']<0x5?_0x175293[0x3]:_0x175293[0x4],'markerCount':0x6==_0x175293['length']?_0x175293[0x5]:null};}['_breakSuggestionMarker'](_0x297301,_0x19113d,_0x2ba483){const _0x780696=_0x297301['getFirstRange'](),_0x5b7776=_0x780696['start'],_0x2e08f7=_0x780696['end'];this['_setSuggestionRange'](_0x297301,this['_model']['createRange'](_0x5b7776,_0x19113d));const _0x54250a=_0x561a0d(),_0x46f46f=_0x297301['creator']['id'],_0x11987c=_0x297301['type']+(_0x297301['subType']?':'+_0x297301['subType']:'');this['_setSuggestionData']({'id':_0x54250a,'type':_0x11987c,'createdAt':new Date(),'authorId':_0x46f46f,'originalSuggestionId':_0x297301['_originalSuggestionId']||_0x297301['id'],'attributes':_0x297301['attributes'],'data':_0x297301['data']});const _0x49e013=this['_getAttributeKey'](_0x297301);('formatBlock'==_0x297301['type']||_0x49e013&&this['_isBlockAttribute'](_0x49e013))&&(_0x2ba483=this['_model']['createPositionBefore'](_0x2ba483['parent'])),this['_addSuggestionMarker'](_0x11987c,_0x54250a,_0x46f46f,this['_model']['createRange'](_0x2ba483,_0x2e08f7));}['_findSuggestions'](_0x4b8cb8,_0x411923=null){const _0x40c6cc=[],_0x3fe1d9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x4b8cb8)||(_0x4b8cb8=[_0x4b8cb8]);for(const _0x107152 of this['getSuggestions']()){if(!_0x107152['isInContent'])continue;if(_0x411923&&_0x107152['type']!=_0x411923)continue;let _0x241567=!0x1;for(const _0xcb2ef3 of _0x107152['getRanges']()){for(const _0x1c33b1 of _0x4b8cb8){const _0x29f81e=_0x1c33b1['start']['isEqual'](_0xcb2ef3['end'])||_0x1c33b1['end']['isEqual'](_0xcb2ef3['start']);if(_0x29f81e||_0x1c33b1['getIntersection'](_0xcb2ef3)){const _0x11d6ed=_0x1c33b1['containsRange'](_0xcb2ef3)&&Ft(this['_model']['schema'],_0xcb2ef3['start'],_0x1c33b1),_0x426493=_0xcb2ef3['containsRange'](_0x1c33b1)&&Ft(this['_model']['schema'],_0x1c33b1['start'],_0xcb2ef3);_0x40c6cc['push']({'suggestion':_0x107152,'meta':{'isOwn':_0x3fe1d9==_0x107152['author'],'isNextTo':_0x29f81e,'isInsideObject':_0x11d6ed,'containsRangeInObject':_0x426493}}),_0x241567=!0x0;break;}}if(_0x241567)break;}}return _0x40c6cc;}['_addSuggestionMarker'](_0x464c27,_0x146230,_0x47a484,_0x40838d,_0x151031){this['_model']['change'](_0x34af85=>{let _0x44951c='suggestion:'+_0x464c27+':'+_0x146230+':'+_0x47a484;_0x151031&&(_0x44951c=_0x44951c+':'+_0x151031),_0x34af85['addMarker'](_0x44951c,{'range':_0x40838d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x31aa95){const _0x4e53ff=_0x31aa95['previous'],_0x52ec24=_0x31aa95['next'];_0x31aa95['previous']=null,_0x31aa95['next']=null,null!=_0x4e53ff&&_0x4e53ff['next']==_0x31aa95&&(_0x4e53ff['next']=_0x52ec24),null!=_0x52ec24&&_0x52ec24['previous']==_0x31aa95&&(_0x52ec24['previous']=_0x4e53ff),'ready'==this['_suggestionState']['get'](_0x31aa95)&&(this['_suggestionState']['set'](_0x31aa95,'removed'),this['fire']('suggestionUnloaded',_0x31aa95,_0x4e53ff,_0x52ec24));}['_setSuggestionData'](_0x4ea6bc){const _0x1fe829=_0x4ea6bc['id'],_0x3ccce3=this['addSuggestionData'](_0x4ea6bc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x30ad12=this['editor']['plugins']['get']('PendingActions'),_0x32ee5d=_0x3ccce3['hasComments'],_0x3689dc=_0x3ccce3['subType']?_0x3ccce3['type']+':'+_0x3ccce3['subType']:_0x3ccce3['type'],_0x2ce995=this['editor']['locale'],_0x8dc29c=_0x30ad12['add'](o(_0x2ce995,'PENDING_ACTION_SUGGESTION')),_0x4745bd={'id':_0x1fe829,'type':_0x3689dc,'hasComments':_0x32ee5d,'data':_0x4ea6bc['data']||null,'originalSuggestionId':_0x4ea6bc['originalSuggestionId']||null,'attributes':_0x3ccce3['attributes']};this['_adapter']['addSuggestion'](_0x4745bd)['then'](_0x4b4299=>{_0x3ccce3['_saved']=!0x0,_0x30ad12['remove'](_0x8dc29c),_0x4b4299&&_0x4b4299['createdAt']&&(this['_suggestions']['get'](_0x1fe829)['createdAt']=_0x4b4299['createdAt']);})['catch'](_0x28b9f5=>{throw _0xe9fa06('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3ccce3['discard']();}),_0x3ccce3['stopListening'](),this['_suggestions']['delete'](_0x3ccce3['id']),this['_suggestionState']['delete'](_0x3ccce3),_0x28b9f5;});}return _0x3ccce3;}['_isBlockAttribute'](_0x396181){return this['_blockAttributeKeys']['has'](_0x396181);}['_updateSuggestionData'](_0x15f83c,_0x4ddacb){const _0x3b2712=this['editor']['plugins']['get']('PendingActions'),_0x4e5ac7=this['getSuggestion'](_0x15f83c);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e5ac7['_saved']){const _0x30b5f6=_0x3b2712['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15f83c,_0x4ddacb)['then'](()=>{_0x3b2712['remove'](_0x30b5f6);});}else _0x4e5ac7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15f83c,_0x4ddacb);});}}['_getSuggestionData'](_0xea86a3){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x30c4a5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xea86a3);}['_handleNewSuggestionMarker'](_0x4c4d0e){const {id:_0x1d4532,type:_0x30277e,subType:_0x5ba589,authorId:_0x24a921}=this['_splitMarkerName'](_0x4c4d0e),_0x2d81bf=this['_suggestions']['get'](_0x1d4532)||this['_createSuggestion'](_0x30277e,_0x5ba589,_0x1d4532,_0x24a921,{});switch(this['_checkSuggestionCorrectness'](_0x2d81bf,_0x30277e,_0x5ba589,_0x24a921),this['_suggestionState']['get'](_0x2d81bf)){case'notReady':this['_getSuggestionData'](_0x1d4532)['then'](_0x2aef1a=>{let _0x35295d=Promise['resolve']();_0x2aef1a['hasComments']&&(_0x35295d=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d4532})),_0x35295d['then'](()=>{this['addSuggestionData'](_0x2aef1a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d81bf,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d4532,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d81bf,'ready'),this['fire']('suggestionLoaded',_0x2d81bf);break;case'ready':this['fire']('suggestionChanged',_0x2d81bf);}return _0x2d81bf['addMarkerName'](_0x4c4d0e),_0x2d81bf;}['_refreshSuggestionsChain'](_0x36a2e6){const _0x2ff49e=Array['from'](_0x36a2e6),_0x529730=_0x2ff49e['filter'](_0x2ea0bf=>'attribute'==_0x2ea0bf['type']);this['_refreshAttributeSuggestionsChain'](_0x529730);const _0x5c5226=_0x2ff49e['filter'](_0x184bbf=>!_0x184bbf['isMultiRange']&&'attribute'!=_0x184bbf['type']),_0x27ad6c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e815c=>!_0x1e815c['isMultiRange']&&'attribute'!=_0x1e815c['type']),_0x203a69=_0x27ad6c['filter'](_0x2ec271=>!_0x36a2e6['has'](_0x2ec271)),_0x100377=new Map(_0x27ad6c['map'](_0x288be3=>[_0x288be3,this['_suggestionFactory']['getSuggestionCallback'](_0x288be3['type'],_0x288be3['subType'],'chain')])),_0x57ed5e=new Map(_0x27ad6c['map'](_0x1b31c6=>[_0x1b31c6,_0x1b31c6['getFirstRange']()])),_0x14fcd9=new Set(),_0x378e34=new Set();for(let _0x2f093e=0x0;_0x2f093e<_0x5c5226['length'];_0x2f093e++)_0x3aa1ec(_0x5c5226[_0x2f093e],_0x5c5226,_0x2f093e+0x1);for(let _0x25f059=0x0;_0x25f059<_0x5c5226['length'];_0x25f059++)_0x3aa1ec(_0x5c5226[_0x25f059],_0x203a69,0x0);const _0x392143=new Set();for(let _0x331e0d=0x0;_0x331e0d<_0x5c5226['length'];_0x331e0d++){const _0x31de79=_0x5c5226[_0x331e0d];!_0x378e34['has'](_0x31de79)&&_0x31de79['previous']&&(_0x392143['add'](_0x31de79['previous']),_0x31de79['previous']['next']===_0x31de79&&(_0x31de79['previous']['next']=null),_0x31de79['previous']=null),!_0x14fcd9['has'](_0x31de79)&&_0x31de79['next']&&(_0x392143['add'](_0x31de79['next']),_0x31de79['next']['previous']===_0x31de79&&(_0x31de79['next']['previous']=null),_0x31de79['next']=null);}function _0x3aa1ec(_0x57abdd,_0x429f2c,_0x251259){for(let _0x1257f8=_0x251259;_0x1257f8<_0x429f2c['length'];_0x1257f8++){const _0x3c2d4c=_0x1708ed(_0x57abdd,_0x429f2c[_0x1257f8]);_0x3c2d4c&&(_0x3c2d4c[0x0]['next']=_0x3c2d4c[0x1],_0x3c2d4c[0x1]['previous']=_0x3c2d4c[0x0],_0x14fcd9['add'](_0x3c2d4c[0x0]),_0x378e34['add'](_0x3c2d4c[0x1]));}}function _0x1708ed(_0x2144a9,_0x13cd37){if(_0x2144a9['author']['id']!==_0x13cd37['author']['id'])return null;const _0x1a7f2f=_0x100377['get'](_0x2144a9)(_0x2144a9,_0x13cd37,_0x57ed5e['get'](_0x2144a9),_0x57ed5e['get'](_0x13cd37));if(!_0x1a7f2f)return null;return _0x100377['get'](_0x13cd37)(_0x2144a9,_0x13cd37,_0x57ed5e['get'](_0x2144a9),_0x57ed5e['get'](_0x13cd37))?_0x1a7f2f[0x1]['commentThread']&&_0x1a7f2f[0x1]['commentThread']['length']?null:_0x1a7f2f:null;}_0x392143['size']&&this['_refreshSuggestionsChain'](_0x392143);}['_refreshAttributeSuggestionsChain'](_0x2dae16){if(0x0==_0x2dae16['length'])return;const _0x46df9b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2ca0de=>'attribute'==_0x2ca0de['type']&&_0x2ca0de['_isDataLoaded']),_0x32ac67=[],_0x3afd6b=new Map();for(const _0x2c09d5 of _0x46df9b){const _0x5620bc=_0x4aff99(_0x2c09d5['attributes']);_0x3afd6b['has'](_0x5620bc)||(_0x3afd6b['set'](_0x5620bc,_0x32ac67['length']),_0x32ac67['push']([]));const _0xe015bf=_0x3afd6b['get'](_0x5620bc);_0x32ac67[_0xe015bf]['push'](_0x2c09d5);}!(function(){_0x32ac67['sort']((_0x5c4f64,_0x452dd9)=>{const _0x206d00=_0x5c4f64[0x0]['createdAt'],_0x310dcf=_0x452dd9[0x0]['createdAt'];return _0x206d00==_0x310dcf?_0x5c4f64[0x0]['attributes']['groupId']<_0x452dd9[0x0]['attributes']['groupId']?-0x1:0x1:_0x206d00<_0x310dcf?-0x1:0x1;});for(const _0x16069d of _0x32ac67)_0x16069d['sort']((_0x3add86,_0x19647a)=>_0x3add86['id']<_0x19647a['id']?-0x1:0x1);}());for(let _0xc91957=0x0;_0xc91957<_0x32ac67['length'];_0xc91957++){if(0x0==_0x32ac67[_0xc91957]['length'])continue;const _0xae0149=[];for(let _0x501202=_0xc91957+0x1;_0x501202<_0x32ac67['length'];_0x501202++)0x0!=_0x32ac67[_0x501202]['length']&&_0x65d085(_0x32ac67[_0xc91957],_0x32ac67[_0x501202])&&_0xae0149['push'](_0x501202);for(const _0x595078 of _0xae0149)_0x32ac67[_0xc91957]=_0x32ac67[_0xc91957]['concat'](_0x32ac67[_0x595078]),_0x32ac67[_0x595078]=[];}for(const _0x1d17ce of _0x32ac67)for(let _0x539c29=0x0;_0x539c29<_0x1d17ce['length'];_0x539c29++){const _0x30d103=_0x1d17ce[_0x539c29+0x1]||null;_0x1d17ce[_0x539c29]['next']!==_0x30d103&&(_0x1d17ce[_0x539c29]['next']=_0x30d103);}for(const _0x233efc of _0x32ac67)for(let _0x30d75c=0x0;_0x30d75c<_0x233efc['length'];_0x30d75c++){const _0xdbbaea=_0x233efc[_0x30d75c-0x1]||null;_0x233efc[_0x30d75c]['previous']!==_0xdbbaea&&(_0x233efc[_0x30d75c]['previous']=_0xdbbaea);}function _0x65d085(_0x3b5af7,_0xfc7e0){if(_0x3b5af7[0x0]['attributes']['groupId']!==_0xfc7e0[0x0]['attributes']['groupId']&&_0x3b5af7[0x0]['author']!==_0xfc7e0[0x0]['author'])return!0x1;if(!function(_0x30ccae,_0x462204){if(!_0x30ccae['hasComments']&&!_0x462204['hasComments'])return!0x0;if(_0x30ccae['hasComments']&&_0x462204['hasComments'])return!0x1;if(_0x30ccae['hasComments']&&_0x462204['createdAt']<_0x30ccae['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x462204['hasComments']&&_0x30ccae['createdAt']<_0x462204['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x3b5af7[0x0],_0xfc7e0[0x0]))return!0x1;const _0x1fedab=Ut(_0x3b5af7[0x0]['attributes'],['groupId','trackingSessionId']),_0x207026=Ut(_0xfc7e0[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x680d74(_0x1fedab,_0x207026))return!0x1;if(_0x3b5af7[0x0]['attributes']['groupId']==_0xfc7e0[0x0]['attributes']['groupId'])return!0x0;if(_0x3b5af7[0x0]['attributes']['trackingSessionId']!==_0xfc7e0[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x3b5af7['every'](_0x3df5a2=>_0xfc7e0['some'](_0x3575a3=>_0x3df5a2['getFirstRange']()['isEqual'](_0x3575a3['getFirstRange']())))&&_0xfc7e0['every'](_0xf84b6c=>_0x3b5af7['some'](_0x350202=>_0xf84b6c['getFirstRange']()['isEqual'](_0x350202['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x57bd3f){const _0x296347=Array['from'](_0x57bd3f),_0x1f1d9a=this['getSuggestions']({'skipNotAttached':!0x0}),_0x267f05=_0x1f1d9a['filter'](_0x45c5aa=>!_0x57bd3f['has'](_0x45c5aa)),_0x3a59f6=new Map(_0x296347['map'](_0x176448=>[_0x176448,this['_suggestionFactory']['getSuggestionCallback'](_0x176448['type'],_0x176448['subType'],'join')])),_0x57a126=new Map(_0x1f1d9a['map'](_0x487ef6=>[_0x487ef6,_0x487ef6['getRanges']()]));for(let _0x22ed9c=0x0;_0x22ed9c<_0x296347['length'];_0x22ed9c++){if(_0x5d7ae6(this,_0x296347[_0x22ed9c],_0x296347,_0x22ed9c+0x1))return!0x0;}for(let _0x323abf=0x0;_0x323abf<_0x296347['length'];_0x323abf++){if(_0x5d7ae6(this,_0x296347[_0x323abf],_0x267f05,0x0))return!0x0;}return!0x1;function _0x5d7ae6(_0x3ddb85,_0x40cb28,_0x4c8d16,_0x1345ff){for(let _0x209cf9=_0x1345ff;_0x209cf9<_0x4c8d16['length'];_0x209cf9++){const _0x50268b=_0x4c8d16[_0x209cf9];if(_0x50268b['type']!==_0x40cb28['type']||_0x50268b['author']['id']!==_0x40cb28['author']['id']||_0x50268b['subType']!==_0x40cb28['subType'])continue;if(!Wt(_0x40cb28,_0x50268b))continue;if('attribute'==_0x40cb28['type']&&_0x40cb28['data']['oldValue']!=_0x50268b['data']['oldValue'])continue;if('attribute'==_0x40cb28['type']&&_0x3ddb85['_isBlockAttribute'](_0x40cb28['data']['key']))continue;if('formatBlock'==_0x40cb28['type']){const _0x80cd21=_0x3ddb85['editor']['model'],_0x44ac09=_0x40cb28['getContainedElement']();if(_0x44ac09&&(_0x80cd21['schema']['isObject'](_0x44ac09)||_0x80cd21['schema']['isLimit'](_0x44ac09)))continue;}const _0x8b0c43=_0x3a59f6['get'](_0x40cb28),_0x5b63a9=_0x57a126['get'](_0x40cb28),_0x326247=_0x57a126['get'](_0x50268b),_0x210164=_0x40cb28['commentThread']&&_0x40cb28['commentThread']['length'],_0x49a90d=_0x50268b['commentThread']&&_0x50268b['commentThread']['length'];if(!_0x210164&&_0x8b0c43(_0x326247,_0x5b63a9))return _0x3ddb85['_joinSuggestions'](_0x50268b,_0x40cb28),_0x57a126['delete'](_0x40cb28),!0x0;if(!_0x49a90d&&_0x8b0c43(_0x5b63a9,_0x326247))return _0x3ddb85['_joinSuggestions'](_0x40cb28,_0x50268b),_0x57a126['delete'](_0x50268b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x20b233,_0x1ee09a){if(_0x20b233['isMultiRange']){for(const _0x5e13d8 of _0x1ee09a['getRanges']())_0x20b233['addRange'](_0x5e13d8);}else{const _0x44b6f4=_0x1ee09a['getFirstRange']()['end'];this['_setSuggestionRange'](_0x20b233,this['_model']['createRange'](_0x20b233['getFirstRange']()['start'],_0x44b6f4));}_0x1ee09a['removeMarkers']();}['_getMarkerAnnouncementText'](_0x11d101,_0x1a8aca,_0x320979){const _0x10f982=_0x11d101['startsWith']('format')||_0x11d101['startsWith']('attribute')?'FORMATTING':_0x11d101['toUpperCase']();return o(this['editor']['locale'],_0x1a8aca+'_'+_0x10f982+'_SUGGESTION_ANNOUNCEMENT',_0x320979);}['_initAriaMarkerChangeAnnouncements'](){const _0x27f28f=this['editor'];if(!_0x27f28f['ui'])return;const {ariaLiveAnnouncer:_0x16ceb9}=_0x27f28f['ui'];_0x46e100(this['_model'],({left:_0x4a0438,entered:_0x23957d})=>{for(const _0x1e3f47 of _0x4a0438){const {group:_0x1c1e41,type:_0x45885f}=this['_splitMarkerName'](_0x1e3f47['name']);if('suggestion'===_0x1c1e41){_0x16ceb9['announce'](this['_getMarkerAnnouncementText'](_0x45885f,'LEAVE'));break;}}for(const _0xf6d446 of _0x23957d){const {group:_0x17fab9,type:_0x3eac53}=this['_splitMarkerName'](_0xf6d446['name']);if('suggestion'===_0x17fab9){_0x16ceb9['announce'](this['_getMarkerAnnouncementText'](_0x3eac53,'ENTER',_0xc7afd0(_0x2ae170)));break;}}});}['_processAttributeChanges'](_0x446429){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4586f6=this['editor'],_0x2c6e02=_0x4586f6['model']['document']['differ']['getChanges']();if(0x0==_0x2c6e02['length'])return!0x1;const _0x502fa8=[],_0x38915c=_0x2c6e02['filter'](_0x10542e=>'attribute'==_0x10542e['type']),_0x1fd6fa=_0x2c6e02['filter'](_0x24e298=>'insert'==_0x24e298['type']&&'$text'!=_0x24e298['name']),_0xad42c8=_0x2c6e02['filter'](_0x5c85d7=>'remove'==_0x5c85d7['type']&&'$text'!=_0x5c85d7['name']);for(const _0x5dfe45 of _0x38915c)_0x502fa8['push']({'key':_0x5dfe45['attributeKey'],'newValue':_0x5dfe45['attributeNewValue'],'oldValue':_0x5dfe45['attributeOldValue'],'range':Ht(_0x5dfe45['range'],_0x4586f6['model'])});for(const _0x415eb0 of _0x1fd6fa){const _0xf93dea=_0xad42c8['find'](_0x4c369a=>_0x4c369a['position']['isEqual'](_0x415eb0['position']));_0xf93dea&&_0x502fa8['push']({'key':m,'newValue':_0x415eb0['name'],'oldValue':_0xf93dea['name'],'range':_0x4586f6['model']['createRangeOn'](_0x415eb0['position']['nodeAfter'])});}return 0x0!=_0x502fa8['length']&&this['_reduceExistingSuggestions'](_0x446429,_0x502fa8);}['_processAttributeSuggestions'](_0x30da71){let _0x3631f9=!0x1;const _0x482925=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x499554=>_0x499554['data']['newRange']&&_0x499554['name']['startsWith']('suggestion:attribute:'));for(const _0xf0ae07 of _0x482925){const {subType:_0x5d0bfe,id:_0x269440}=this['_splitMarkerName'](_0xf0ae07['name']),_0x451380=_0x5d0bfe['split']('|')[0x0];for(const _0x8215db of this['getSuggestions']({'skipNotAttached':!0x0}))_0x8215db['id']!=_0x269440&&'attribute'==_0x8215db['type']&&_0x8215db['data']&&_0x8215db['data']['key']==_0x451380&&_0x8215db['getFirstRange']()['isIntersecting'](_0xf0ae07['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x8215db,_0xf0ae07['data']['newRange'],_0x30da71),_0x3631f9=!0x0);}return _0x3631f9;}['recordAttributeChanges'](_0x3eefa4){this['_recordAttributeSuggestions']=!0x0,_0x3eefa4();}['_isRegisteredAttribute'](_0x1e43ec){const _0x417a4a=this['_isBlockAttribute'](_0x1e43ec),_0xc3130b=this['_inlineAttributeKeys']['has'](_0x1e43ec);return _0x417a4a||_0xc3130b;}['_reduceExistingSuggestions'](_0x423bd8,_0x16e301){if(0x0==_0x16e301['length'])return!0x1;let _0x372a88=!0x1;for(const _0x53842a of _0x16e301){const _0x5f56db=this['_findSuggestions'](_0x53842a['range'],'attribute')['filter'](_0x37d415=>!_0x37d415['meta']['isNextTo'])['map'](_0x2c61a0=>_0x2c61a0['suggestion']),_0x55f040=_0x4aff99({'newValue':_0x53842a['newValue']});_0x5f56db['filter'](_0x390435=>{const [_0x393734,_0x52c883]=_0x390435['subType']['split']('|');return _0x393734==_0x53842a['key']&&_0x52c883!=_0x55f040;})['forEach'](_0x22132b=>{this['_reduceSuggestionAttributeRange'](_0x22132b,_0x53842a['range'],_0x423bd8),_0x372a88=!0x0;});}return _0x372a88;}['_reduceSuggestionAttributeRange'](_0x2c2e5b,_0x525450,_0x167d59){const _0x5e2f59=_0x2c2e5b['getFirstRange']()['getDifference'](_0x525450);0x0!==_0x5e2f59['length']?0x1!==_0x5e2f59['length']?this['_breakSuggestionMarker'](_0x2c2e5b,_0x525450['start'],_0x525450['end']):this['_setSuggestionRange'](_0x2c2e5b,_0x5e2f59[0x0]):_0x167d59['removeMarker'](_0x2c2e5b['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x3a07c1){this['_editor']=_0x3a07c1,this['_model']=_0x3a07c1['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3faa79,_0x20086a,_0x5e788f,_0x6f4fe3,_0x480ae,_0x140eb9,_0x28e591){return new T(this['_model'],{'type':_0x3faa79,'subType':_0x20086a,'id':_0x5e788f,'originalSuggestionId':_0x28e591,'author':_0x6f4fe3,'creator':_0x6f4fe3,'attributes':_0x480ae,'onAttributesChange':_0x140eb9,'onAccept':(..._0x3a9cdf)=>this['getSuggestionCallback'](_0x3faa79,_0x20086a,'accept')(..._0x3a9cdf),'onDiscard':(..._0xaa44e2)=>this['getSuggestionCallback'](_0x3faa79,_0x20086a,'discard')(..._0xaa44e2)});}['registerCustomCallback'](_0x517b72,_0x386c15,_0x5af9b1,_0x36622e){const _0x39135f=_0x517b72+':'+_0x386c15+':'+_0x5af9b1;this['_customCallbacks']['set'](_0x39135f,_0x36622e);}['getSuggestionCallback'](_0x11f998,_0xae07d3,_0x384c23){const _0x1228e0=_0x11f998+':'+_0xae07d3+':'+_0x384c23;return this['_customCallbacks']['get'](_0x1228e0)||this['_defaultCallbacks']['get'](_0x11f998+':'+_0x384c23);}['_registerDefaultCallbacks'](){const _0x10b87b=()=>!0x1,_0x3d923d=_0x58569c=>{_0x58569c['sort']((_0x36eb88,_0x58f5e2)=>_0x36eb88['start']['isBefore'](_0x58f5e2['start'])?0x1:-0x1),this['_model']['change'](_0x112dea=>{for(const _0x199852 of _0x58569c){let _0x459c7e;_0x459c7e=_0x199852['end']['isAtEnd']&&_0x199852['end']['parent']==_0x199852['start']['nodeAfter']?_0x112dea['createSelection'](_0x199852['start']['nodeAfter'],'on'):_0x112dea['createSelection'](_0x199852),this['_model']['deleteContent'](_0x459c7e,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x2cc269=(_0x596472,_0x4b0d42)=>{_0x4b0d42&&this['_model']['change'](_0x1aa17a=>{const {commandName:_0x5d10c5,commandParams:_0x40dd64=[]}=_0x4b0d42,_0xa777fa=_0x596472['map'](_0x29933d=>(Pt(_0x29933d)&&(_0x29933d=this['_model']['createRange'](_0x29933d['end'])),_0x29933d))['filter'](_0x5639a2=>'$graveyard'!==_0x5639a2['root']['rootName']);if(_0xa777fa['length']<0x1)return;const _0x45765f=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x588a17=>_0x39c36c['fromRange'](_0x588a17));_0x1aa17a['setSelection'](_0xa777fa);for(const _0x373e56 of this['_editor']['commands']['commands']())_0x373e56['refresh']();_0x40dd64['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x5d10c5,..._0x40dd64);const _0x8a394e=_0x45765f['filter'](_0x109efd=>'$graveyard'!=_0x109efd['root']['rootName']);_0x8a394e['length']>0x0&&_0x1aa17a['setSelection'](_0x8a394e);for(const _0x511acf of _0x45765f)_0x511acf['detach']();});},_0x5e3a5c=(_0x3b4b30,_0x140ef2)=>0x1==_0x3b4b30['length']&&0x1==_0x140ef2['length']&&_0x3b4b30[0x0]['end']['isEqual'](_0x140ef2[0x0]['start']),_0x169455=(_0x2b437e,_0x330547,_0x1265f3,_0xd4e81)=>zt(_0x2b437e,_0x330547,_0x1265f3,_0xd4e81)?[_0x2b437e,_0x330547]:zt(_0x330547,_0x2b437e,_0xd4e81,_0x1265f3)?[_0x330547,_0x2b437e]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x10b87b),this['_defaultCallbacks']['set']('insertion:discard',_0x3d923d),this['_defaultCallbacks']['set']('insertion:join',_0x5e3a5c),this['_defaultCallbacks']['set']('insertion:chain',_0x169455),this['_defaultCallbacks']['set']('deletion:accept',_0x3d923d),this['_defaultCallbacks']['set']('deletion:discard',_0x10b87b),this['_defaultCallbacks']['set']('deletion:join',_0x5e3a5c),this['_defaultCallbacks']['set']('deletion:chain',_0x169455),this['_defaultCallbacks']['set']('formatInline:accept',_0x2cc269),this['_defaultCallbacks']['set']('formatInline:discard',_0x10b87b),this['_defaultCallbacks']['set']('formatInline:join',_0x5e3a5c),this['_defaultCallbacks']['set']('formatInline:chain',_0x10b87b),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2cc269),this['_defaultCallbacks']['set']('formatBlock:discard',_0x10b87b),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e3a5c),this['_defaultCallbacks']['set']('formatBlock:chain',_0x10b87b),this['_defaultCallbacks']['set']('attribute:accept',_0x10b87b),this['_defaultCallbacks']['set']('attribute:discard',(_0x4f7693,_0x4976c3)=>{if(!_0x4976c3)return;const _0x36cd1f=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x10de39=>{if(_0x4976c3['key']==m)for(const _0x1ada52 of _0x4f7693){const _0x2dcf02=_0x1ada52['start']['nodeAfter'],_0x43293d=_0x4976c3['oldValue'];_0x10de39['rename'](_0x2dcf02,_0x43293d);}else{if(_0x36cd1f['_isBlockAttribute'](_0x4976c3['key'])){for(const _0x29a545 of _0x4f7693)void 0x0!==_0x4976c3['oldValue']?_0x10de39['setAttribute'](_0x4976c3['key'],_0x4976c3['oldValue'],_0x29a545['start']['nodeAfter']):_0x10de39['removeAttribute'](_0x4976c3['key'],_0x29a545['start']['nodeAfter']);}else{for(const _0x359f9a of _0x4f7693)_0x4976c3['oldValue']?_0x10de39['setAttribute'](_0x4976c3['key'],_0x4976c3['oldValue'],_0x359f9a):_0x10de39['removeAttribute'](_0x4976c3['key'],_0x359f9a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e3a5c);}}function Ft(_0x2617e9,_0x65a6e2,_0x20b745){for(const _0x5c911c of _0x65a6e2['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x5c911c['root']==_0x5c911c)return!0x1;if(!_0x20b745['containsItem'](_0x5c911c))return!0x1;if(_0x2617e9['isObject'](_0x5c911c)||_0x2617e9['isLimit'](_0x5c911c))return!0x0;}return!0x1;}function Pt(_0x1eb48f){return _0x1eb48f['end']['parent']==_0x1eb48f['start']['nodeAfter']&&_0x1eb48f['end']['isAtStart'];}function Gt(_0x2cac65,_0x235bb0,_0x3d2cf7,_0x3e5a94){const _0x1e7e62=_0x2971cd=>!_0x2971cd['item']['is']('$textProxy')&&!_0x3e5a94['isObject'](_0x2971cd['item']),_0x79d810=_0x2cac65['start']['getLastMatchingPosition'](_0x1e7e62),_0x4b1a1a=_0x2cac65['end']['getLastMatchingPosition'](_0x1e7e62,{'direction':'backward'});return(!_0x2cac65['start']['isEqual'](_0x79d810)||!_0x2cac65['end']['isEqual'](_0x4b1a1a))&&(_0x79d810['isBefore'](_0x4b1a1a)?_0x3d2cf7['updateMarker'](_0x235bb0,{'range':_0x3d2cf7['createRange'](_0x79d810,_0x4b1a1a)}):_0x3d2cf7['removeMarker'](_0x235bb0),!0x0);}function Lt(_0x3eab52){return _0x4aff99(_0x3eab52);}function Jt(_0x5d394e){const _0x2ac452=_0x5d394e['start']['nodeAfter'];return _0x2ac452&&_0x2ac452['is']('element');}function Kt(_0x6b7fb8){return!Pt(_0x6b7fb8)&&!function(_0x2b6648){return _0x2b6648['start']['parent']==_0x2b6648['end']['nodeBefore']&&_0x2b6648['start']['isAtEnd'];}(_0x6b7fb8);}function Ht(_0x75ed9d,_0x34c74a){return null==_0x75ed9d['end']['nodeBefore']&&_0x75ed9d['end']['parent']==_0x75ed9d['start']['nodeAfter']?qt(_0x75ed9d['start']['nodeAfter'],_0x34c74a):_0x75ed9d;}function qt(_0x1f8da0,_0x587d8f){const _0x4257d8=_0x587d8f['schema']['isObject'](_0x1f8da0)||_0x587d8f['schema']['isSelectable'](_0x1f8da0);return _0x587d8f['createRange'](_0x587d8f['createPositionAt'](_0x1f8da0,'before'),_0x4257d8?_0x587d8f['createPositionAfter'](_0x1f8da0):_0x587d8f['createPositionAt'](_0x1f8da0,'end'));}function zt(_0x5ee124,_0x35b6ea,_0x1fd4bc,_0x3297d6){return!!Wt(_0x5ee124,_0x35b6ea)&&_0x1fd4bc['end']['isEqual'](_0x3297d6['start']);}function Wt(_0x3578f1,_0x26a8b2){if(!_0x3578f1['_isDataLoaded']||!_0x26a8b2['_isDataLoaded'])return!0x1;const _0x28da04=new Set(Object['keys'](_0x3578f1['attributes'])),_0x3d4c42=new Set(Object['keys'](_0x26a8b2['attributes']));if(_0x28da04['delete']('groupId'),_0x3d4c42['delete']('groupId'),0x0==_0x28da04['size']&&0x0==_0x3d4c42['size'])return!0x0;if(_0x28da04['size']!=_0x3d4c42['size'])return!0x1;const _0x2c5e92={..._0x3578f1['attributes']},_0x173e20={..._0x26a8b2['attributes']};return delete _0x2c5e92['groupId'],delete _0x173e20['groupId'],JSON['stringify'](_0x2c5e92)==JSON['stringify'](_0x173e20);}function Qt(_0x7ea4d2,_0x459ecd){const _0xa3901b=Xt(_0x7ea4d2['attributes']),_0x30ae52=Xt(_0x459ecd);if(!_0x7ea4d2['_isDataLoaded'])return!0x1;for(const _0x4943d2 of Object['keys'](_0x30ae52))if(!_0x680d74(_0xa3901b[_0x4943d2],_0x30ae52[_0x4943d2]))return!0x1;return!0x0;}function Xt(_0x42f7f0){const _0xde39fc=Object['assign']({},_0x42f7f0);return delete _0xde39fc['skipNestingCheck'],delete _0xde39fc['tablePasteChainId'],_0xde39fc;}class pe extends/* #__PURE__ -- @preserve */
26
- _0x94f0a0(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x25c573,_0x2acbba,_0x26e578,_0x1abb45){super(),this['model']=_0x2acbba,this['view']=_0x26e578,this['commentThreadController']=_0x1abb45,this['_editor']=_0x25c573,this['_acceptCommand']=_0x25c573['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x25c573['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x23eabf,_0x11fc88)=>_0x23eabf||_0x11fc88),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4a2b37=>_0x4a2b37&&this['_editor']['model']['canEditAt'](_0x2acbba['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x59cd98=>_0x59cd98&&this['_editor']['model']['canEditAt'](_0x2acbba['getRanges']())),this['_pendingAction']=null,_0x26e578['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x26e578,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x26e578,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x26e578,'change:isDirty',()=>{_0x26e578['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x45c430=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x45c430);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x217288{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1e5324,_0x5b5ea5,_0x48c2d9,_0x54f54a){super(_0x1e5324),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x5e56ee(_0x1e5324,o(_0x1e5324,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5b5ea5['authoredAt']),this['bind']('authoredAt')['to'](_0x5b5ea5),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x5b5ea5,'authoredAt',this,'descriptionParts',(_0xce6f2b,_0x3cf07b,_0x5bb3b6)=>{const _0x14dadf=_0x5bb3b6['map'](_0x382138=>ls(_0x382138['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xce6f2b-0x1,_0x5b5ea5['author']['name'],_0x3cf07b?_0x54f54a['formatDateTime'](_0x3cf07b):'',new DOMParser()['parseFromString'](_0x14dadf,'text/html')['body']['textContent']]);}),this['focusables']=new _0x521e48(),this['focusTracker']=new _0x4d52a4(),this['keystrokes']=new _0x29b2c8(),this['focusCycler']=new _0x196fc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x56d452=>_0x56d452['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5b5ea5,this['_localUser']=_0x48c2d9,this['_config']=_0x54f54a,_0x54f54a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x46a512(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1c034c}=this['_config'];this['commentsListView']=new _0x1c034c(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x1514db=>_0x1514db+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5d6693,_0x36ba6f)=>_0x5d6693||!!_0x36ba6f);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x766ed0}=this['_config'],_0x4f335f=new _0x766ed0(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4faa0a=_0x4f335f['commentInputView'];return _0x4f335f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4faa0a,'value',(_0x48bae4,_0x3f1a3b,_0x57030f)=>!!_0x57030f||_0x48bae4&&!_0x3f1a3b),_0x4faa0a['on']('submit',(_0x365397,_0x4a295e)=>{this['fire']('addComment',_0x4a295e),_0x4faa0a['editor']['setData']('');}),_0x4faa0a['on']('cancel',()=>this['focus']()),_0x4faa0a['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4f335f;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x52641e,_0x2c74d5,_0x9b722f,_0x12449f){super(_0x52641e,_0x2c74d5,_0x9b722f,_0x12449f),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x41983d=>_0x41983d&&_0x41983d[0x0]?_0x41983d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x27037c,_0x5c7828)=>{let _0x354cf0='';for(const _0x2d2704 of _0x27037c)_0x354cf0+='<p>'+ls(_0x2d2704['content'],_0x2d2704['color'])+'</p>';return _0x5c7828?_0x354cf0:_0x4e090c(_0x354cf0,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x12449f['SuggestionView'](_0x52641e,_0x2c74d5,{'formatDateTime':_0x12449f['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2c7a74=this['bindTemplate'],_0x5e15aa=[this['suggestionView']];return this['commentsListView']&&_0x5e15aa['push'](this['commentsListView']),this['commentThreadInputView']&&_0x5e15aa['push'](this['commentThreadInputView']),_0x5e15aa['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c7a74['if']('isActive','ck-suggestion-wrapper--active'),_0x2c7a74['to']('type',_0x1d4136=>'ck-suggestion-'+_0x1d4136),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2c7a74['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x5e15aa};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x217288{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x4b6da5,_0x3fd397,_0x37ae16){super(_0x4b6da5),this['_model']=_0x3fd397,this['_config']=_0x37ae16,this['set']('description',''),this['bind']('authoredAt')['to'](_0x3fd397),this['acceptButton']=this['_createButton'](o(_0x4b6da5,'Accept\x20suggestion'),_0x1f2b93,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x4b6da5,'Discard\x20suggestion'),_0x22fb32,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x151c35(_0x4b6da5,_0x3fd397['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x521e48([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x4d52a4(),this['keystrokes']=new _0x29b2c8(),this['focusCycler']=new _0x196fc6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x528672=>_0x528672['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x23e703=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x23e703['innerHTML']=this['description'],this['on']('change:description',(_0x4541bd,_0x2380f3,_0x455cd2)=>{_0x23e703['innerHTML']=_0x455cd2;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5bec9d=this['bindTemplate'],_0x3043e2=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x5bec9d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5bec9d['to']('authoredAt',_0x1ed482=>this['_config']['formatDateTime'](_0x1ed482))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x3043e2['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x3043e2}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x2a8ff3,_0x792307,_0x1d9d82,_0x1c8f32,_0x596816){const _0x4f8681=new _0x1f305c(this['locale']);return _0x4f8681['set']({'label':_0x2a8ff3,'icon':_0x792307,'tooltip':!0x0,'tooltipPosition':_0x596816}),_0x4f8681['extendTemplate']({'attributes':{'class':_0x1d9d82}}),_0x4f8681['on']('execute',()=>{this['fire'](_0x1c8f32,this['_model']['id']);}),_0x4f8681;}['_setupKeyboardNavigation'](){const _0x5310be=this['element'];this['keystrokes']['listenTo'](_0x5310be);for(const _0x458b90 of this['focusables'])this['focusTracker']['add'](_0x458b90['element']),this['keystrokes']['listenTo'](_0x458b90['element']);this['keystrokes']['set']('enter',(_0x1d807b,_0xc001c6)=>{_0x5310be===_0x1d807b['target']&&(this['focusCycler']['focusFirst'](),_0xc001c6());}),this['keystrokes']['set']('esc',(_0x5e3074,_0x3903b5)=>{_0x5310be!==_0x5e3074['target']&&(this['focus'](),_0x3903b5());});}}class u extends _0x3befcd{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x25350d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x48a9cf){super(_0x48a9cf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x2f00d2=this['editor']['config'];_0x2f00d2['define']('trackChanges.SuggestionThreadView',fe),_0x2f00d2['define']('trackChanges.SuggestionView',we),_0x2f00d2['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x2f00d2['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x58952d,_0xa0eff3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5c7c7a,_0x4039c0]of this['_handleControllerBuffer']){const _0x121fbf=this['_suggestionToController']['has'](_0x5c7c7a);_0x121fbf||_0x4039c0?_0x121fbf&&_0x4039c0&&this['_destroyController'](_0x5c7c7a):this['_initializeController'](_0x5c7c7a);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x58952d,_0xa0eff3);}['init'](){const _0x5725b8=this['editor'],_0x1b8cd0=_0x5725b8['plugins']['get']('TrackChangesEditing'),_0x78533c=_0x5725b8['plugins']['get']('Annotations'),_0x8fa41f=_0x5725b8['plugins']['get']('EditorAnnotations'),_0x1028dd=_0x5725b8['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x8fa41f['addSourceCollector'](()=>{const _0x55d5ff=[];for(const [_0x7704,_0x2337ca]of Array['from'](this['_suggestionToController'])){const _0x36a35e=_0x7704['getAllAdjacentSuggestions'](),_0x5bf270=[];for(const _0x3bcff4 of _0x36a35e){if(!_0x3bcff4['isInContent'])continue;if(_0x3bcff4['isMultiRange']){_0x5bf270['push'](..._0x3bcff4['getRanges']());continue;}const _0x583e1c=_0x3bcff4['getFirstRange']();if(_0x5bf270['length']>0x0){const _0xfa894a=_0x5bf270[0x0]['getJoined'](_0x583e1c);if(_0xfa894a){_0x5bf270[0x0]=_0xfa894a;continue;}}_0x5bf270['push'](_0x583e1c);}_0x55d5ff['push']([_0x2337ca['view'],_0x5bf270]);}return _0x55d5ff;}),this['listenTo'](_0x1b8cd0,'suggestionLoaded',(_0x52f293,_0xbc00b3)=>{this['listenTo'](_0xbc00b3,'change:previous',(_0x177b1f,_0x2519dd,_0x6bdb54,_0x1596dc)=>{_0xbc00b3['isInContent']&&(null==_0x6bdb54?(this['_updateController'](_0x1596dc['head']),this['_handleSuggestionControllerDelayed'](_0xbc00b3,!0x1)):(this['_updateController'](_0x6bdb54['head']),null==_0x1596dc&&this['_handleSuggestionControllerDelayed'](_0xbc00b3,!0x0)));}),null!==_0xbc00b3['previous']?this['_updateController'](_0xbc00b3['head']):this['_handleSuggestionControllerDelayed'](_0xbc00b3,!0x1);}),this['listenTo'](_0x1b8cd0,'suggestionUnloaded',(_0x1851af,_0x1c07a4,_0x219fcd)=>{this['stopListening'](_0x1c07a4,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1c07a4),this['_suggestionToController']['has'](_0x1c07a4)&&this['_destroyController'](_0x1c07a4),_0x219fcd&&this['_updateController'](_0x219fcd['head']);}),this['listenTo'](_0x1b8cd0,'suggestionChanged',(_0x448602,_0x160ddb)=>{this['_updateController'](_0x160ddb);}),this['listenTo'](_0x78533c,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1028dd,'addComment',(_0x362ac1,{threadId:_0x3a4968,isFromAdapter:_0x360b43})=>{if(_0x360b43||!_0x1b8cd0['hasSuggestion'](_0x3a4968))return;const _0x5beb00=_0x1b8cd0['getSuggestion'](_0x3a4968);this['_suggestionToController']['get'](_0x5beb00)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x572f9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40bce2;for(const _0x5c5e5b in _0x572f9c){const _0x41c868=_0x5c5e5b,_0x408011=_0x572f9c[_0x41c868];if('trackChangesLicenseKeyValid'==_0x408011||'trackChangesLicenseKeyInvalid'==_0x408011||'trackChangesLicenseKeyExpired'==_0x408011||'trackChangesLicenseKeyDomainLimit'==_0x408011||'trackChangesLicenseKeyNotAllowed'==_0x408011||'trackChangesLicenseKeyEvaluationLimit'==_0x408011||'trackChangesLicenseKeyTrialLimit'==_0x408011||'trackChangesLicenseKeyUsageLimit'==_0x408011){delete _0x572f9c[_0x41c868],_0x40bce2=_0x408011,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x40bce2&&_0x572f9c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x40bce2&&_0x572f9c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x40bce2&&_0x572f9c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x40bce2&&_0x572f9c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x40bce2&&_0x572f9c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x40bce2&&_0x572f9c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x40bce2&&_0x572f9c['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x5f55d5){const _0x12a72c=this['_suggestionToController']['get'](_0x5f55d5);if(!_0x12a72c)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x12a72c['view'])||null;}['getSuggestionForAnnotation'](_0x5480e3){const _0x24b03f=this['_viewToController']['get'](_0x5480e3['innerView']);return _0x24b03f?_0x24b03f['model']:null;}['_refreshActiveMarkers'](){const _0x21d2cd=this['editor']['plugins']['get']('Annotations'),_0xae172b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7852d6=Array['from'](_0x21d2cd['activeAnnotations'],_0x2a79fb=>_0x2a79fb['innerView'])['filter'](_0x1833d2=>this['_viewToController']['has'](_0x1833d2)),_0x4393b9=[];for(const _0x5a94ef of _0x7852d6){const _0x56aca6=this['_viewToController']['get'](_0x5a94ef)['model']['getAllAdjacentSuggestions']();_0x4393b9['push'](..._0x56aca6['reduce']((_0x109283,_0x2cadad)=>[..._0x109283,..._0x2cadad['getMarkerNames']()],[]));}_0xae172b['activeMarkers']=_0x4393b9;}['_addUIComponentsToFactory'](){const _0x35f476=this['editor'],_0x2b5da5=_0x35f476['locale'],_0x246bcd=o(_0x2b5da5,'Track\x20changes'),_0x599877=new _0x45fe12([{'type':'switchbutton','model':new _0x323543({'withText':!0x0,'isToggleable':!0x0,'label':_0x246bcd,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x323543({'withText':!0x0,'label':o(_0x2b5da5,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x323543({'withText':!0x0,'label':o(_0x2b5da5,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x323543({'withText':!0x0,'label':o(_0x2b5da5,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x323543({'withText':!0x0,'label':o(_0x2b5da5,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x35f476['plugins']['has']('TrackChangesPreview')&&_0x599877['addMany']([{'type':'separator'},{'type':'button','model':new _0x323543({'withText':!0x0,'label':o(_0x2b5da5,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x172ad9 of _0x599877)if(ke(_0x172ad9)){const _0x174d98=_0x35f476['commands']['get'](_0x172ad9['model']['commandName']);_0x172ad9['model']['bind']('isOn','isEnabled')['to'](_0x174d98,'value','isEnabled');}_0x35f476['ui']['componentFactory']['add']('trackChanges',_0x1a68fb=>this['_createToolbarButton'](_0x1a68fb,_0x599877,_0x246bcd)),_0x35f476['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2fbd5c=>this['_createMenuBarMenu'](_0x2fbd5c,_0x599877,_0x246bcd));}['_createToolbarButton'](_0x32343c,_0x55c69c,_0x141403){const _0x525acc=_0x47acf8(_0x32343c,_0x1de016),_0x4eba7d=this['editor']['commands']['get']('trackChanges');_0x525acc['buttonView']['set']({'tooltip':_0x141403,'label':_0x141403,'icon':_0x265759}),_0x525acc['buttonView']['bind']('isOn')['to'](_0x4eba7d,'value'),_0x525acc['buttonView']['on']('execute',()=>{_0x4eba7d['execute'](),this['editor']['editing']['view']['focus']();}),_0x45cf8c(_0x525acc,_0x55c69c,{'role':'menu'});const _0x499aca=[];for(const _0x4577c8 of _0x55c69c)ke(_0x4577c8)&&_0x499aca['push'](this['editor']['commands']['get'](_0x4577c8['model']['commandName']));const _0x2cc83d=_0x525acc['buttonView'];return _0x2cc83d['actionView']['unbind']('isEnabled'),_0x2cc83d['arrowView']['unbind']('isEnabled'),_0x2cc83d['actionView']['bind']('isEnabled')['to'](_0x4eba7d,'isEnabled'),_0x2cc83d['arrowView']['bind']('isEnabled')['toMany'](_0x499aca,'isEnabled',(..._0x2a9461)=>_0x2a9461['some'](_0xbda456=>_0xbda456)),_0x525acc['on']('execute',_0x3fed9e=>{this['editor']['execute'](_0x3fed9e['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x525acc;}['_createMenuBarMenu'](_0x480e47,_0x1929a1,_0xa1f866){const _0x3e08c9=new _0x6521e7(_0x480e47),_0x39237d=this['editor']['commands']['get']('trackChanges');_0x3e08c9['buttonView']['set']({'label':_0xa1f866,'icon':_0x265759});const _0x50312d=new _0x49f55c(_0x480e47);for(const _0x12f200 of _0x1929a1){if('separator'==_0x12f200['type']){_0x50312d['items']['add'](new _0x3b83ac(_0x480e47));continue;}const _0x3a2409=new _0x2066f7(_0x480e47,_0x3e08c9),_0x3895e9=new _0x116058(_0x480e47),_0x410a3f=_0x12f200['model'];_0x3895e9['bind'](...Object['keys'](_0x410a3f))['to'](_0x410a3f),_0x3895e9['delegate']('execute')['to'](_0x3e08c9),_0x3895e9['on']('execute',()=>{this['editor']['execute'](_0x410a3f['commandName']),this['editor']['editing']['view']['focus']();}),_0x3a2409['children']['add'](_0x3895e9),_0x50312d['items']['add'](_0x3a2409);}return _0x3e08c9['bind']('isEnabled')['to'](_0x39237d,'isEnabled'),_0x3e08c9['panelView']['children']['add'](_0x50312d),_0x3e08c9;}['_initializeController'](_0x29af49){const _0x2ccd55=this['editor'],_0x119801=_0x2ccd55['config'],_0x4be7a7=_0x2ccd55['plugins']['get']('Annotations'),_0x161527=_0x2ccd55['plugins']['get']('CommentsRepository'),_0x5b9e7a=_0x2ccd55['plugins']['get']('EditorAnnotations'),_0xc42439=_0x2ccd55['plugins']['get'](_0x25350d)['me'],_0x1fbed5=_0x119801['get']('trackChanges')['SuggestionThreadView'],_0x5cdbe3=_0x119801['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x51ac42,CommentThreadInputView:_0x3942f4}=_0x2ccd55['plugins']['get']('CommentsUI');let _0x3aa833,_0x56c94e,_0x4e82b0;this['_annotationViews']['has'](_0x29af49['id'])?(_0x56c94e=this['_annotationViews']['get'](_0x29af49['id']),_0x3aa833=_0x56c94e['mainView']):(_0x3aa833=new _0x1fbed5(_0x2ccd55['locale'],_0x29af49,_0xc42439,{'disableComments':this['_disableComments'],'editorConfig':{..._0x119801['get']('comments.editorConfig'),'licenseKey':_0x119801['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x119801['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x119801['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x119801['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x130263(_0x119801['get']('locale'),_0x2ccd55['locale']),'CommentView':_0x119801['get']('comments')['CommentView'],'CommentsListView':_0x51ac42,'CommentThreadInputView':_0x3942f4,'SuggestionView':_0x5cdbe3}),_0x3aa833['suggestionView']['acceptButton']['on']('execute',()=>{_0x2ccd55['editing']['view']['focus']();}),_0x3aa833['suggestionView']['discardButton']['on']('execute',()=>{_0x2ccd55['editing']['view']['focus']();}),_0x56c94e=_0x4be7a7['createAnnotationView'](this['editor']['locale'],_0x3aa833),_0x56c94e['bind']('isDirty')['to'](_0x3aa833,'isDirty'),_0x56c94e['bind']('length')['to'](_0x3aa833),_0x56c94e['bind']('type')['to'](_0x3aa833,'type',_0x56c77a=>'suggestion-'+_0x56c77a),_0x3aa833['on']('escape',()=>{_0x4e82b0['fire']('escape');}),this['_annotationViews']['set'](_0x29af49['id'],_0x56c94e));const _0x41652a=_0x161527['createCommentThreadController'](_0x29af49['commentThread'],_0x3aa833),_0x3f4801=new pe(_0x2ccd55,_0x29af49,_0x3aa833,_0x41652a),_0x242d7d=_0x29af49['getAllAdjacentSuggestions']()['filter'](_0xe97520=>_0xe97520['isInContent']);_0x3aa833['descriptionParts']=_0x2ccd55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x242d7d),this['_suggestionToController']['set'](_0x29af49,_0x3f4801),this['_viewToController']['set'](_0x3aa833,_0x3f4801),_0x4e82b0=_0x4be7a7['createAnnotation']({'view':_0x56c94e,'target':()=>{const _0x1a7f0d=[],_0x9bfe5=_0x29af49['getAllAdjacentSuggestions']()['filter'](_0x59854b=>_0x59854b['isInContent']);for(const _0x255a2c of _0x9bfe5)_0x1a7f0d['push'](..._0x255a2c['getMarkers']());return _0x367fb9(_0x2ccd55['editing'],_0x1a7f0d);},'type':()=>'suggestion-'+_0x3f4801['view']['type']}),_0x161527['_bindAnnotationToEditors'](_0x3aa833,_0x4e82b0),_0x4be7a7['add'](_0x4e82b0),_0x5b9e7a['registerAnnotation'](_0x4e82b0);}['_destroyController'](_0x49ff6e){const _0x1f0d8f=this['editor']['plugins']['get']('CommentsRepository'),_0x2c68ae=this['editor']['plugins']['get']('Annotations'),_0x247451=this['_suggestionToController']['get'](_0x49ff6e),_0x362226=_0x247451['view'],_0x1faac1=_0x2c68ae['getByInnerView'](_0x362226);_0x1f0d8f['_unbindEditors'](_0x362226),_0x1faac1&&_0x2c68ae['remove'](_0x1faac1),this['_suggestionToController']['delete'](_0x49ff6e),this['_viewToController']['delete'](_0x362226),_0x247451['destroy']();}['_updateController'](_0x1c09c5){if(!_0x1c09c5['isInContent']||!this['_suggestionToController']['has'](_0x1c09c5))return;const _0x1cf1da=this['editor']['plugins']['get']('TrackChangesEditing'),_0x305daf=this['_suggestionToController']['get'](_0x1c09c5),_0x49918b=_0x1c09c5['getAllAdjacentSuggestions']();_0x305daf['view']['descriptionParts']=_0x1cf1da['descriptionFactory']['getDescriptions'](_0x49918b);}['destroy'](){for(const _0x31dcb8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x31dcb8);for(const _0x8963c7 of this['_annotationViews']['values']())_0x8963c7['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3365ea){return'model'in _0x3365ea;}class Fe extends _0x3befcd{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3298bb){this['editor']['plugins']['get'](d)['adapter']=_0x3298bb;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x28ee49){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x28ee49);}['getSuggestions']({skipNotAttached:_0x4d318e=!0x1,toJSON:_0x21eb5a=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x4d318e,'toJSON':_0x21eb5a});}['getSuggestion'](_0x204ba3){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x204ba3);}}const p=['Pagination'];class re extends _0x3befcd{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5d25e5=this['editor'];if(_0x5d25e5['config']['define']('trackChangesData.editorCreator',_0x1e965e=>{const _0x217fc8=_0x5d25e5['model']['document']['getRootNames']()['reduce']((_0x4270cf,_0x5311af)=>(_0x4270cf[_0x5311af]='',_0x4270cf),{});return _0x5d25e5['constructor']['create'](_0x217fc8,_0x1e965e);}),'function'!=typeof _0x5d25e5['config']['get']('trackChangesData')['editorCreator'])throw new _0x30c4a5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x211f80){return P(this['editor'],!0x0,_0x211f80);}['getDataWithDiscardedSuggestions'](_0x240977){return P(this['editor'],!0x1,_0x240977);}}class Ge extends _0x3befcd{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c0a86){function _0x287cf8(_0x42a99c){return _0x42a99c['map'](_0x1435d3=>String['fromCharCode'](_0x1435d3))['join']('');}super(_0x2c0a86),this['result']='end',_0x2c0a86[_0x287cf8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x287cf8([0x76,0x69,0x65,0x77])][_0x287cf8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x287cf8([0x61,0x75,0x74,0x6f]),_0x2c0a86[_0x287cf8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x287cf8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x287cf8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x287cf8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x287cf8([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x4775c2){return void 0x0!==_0x4775c2['getRootsAttributes'];}async function P(_0x4c1d54,_0x13be88,_0x526470){const _0x459181=_0x4bd6ab(_0x4c1d54,p);_0x459181['plugins']['push'](d,Ge),_0x459181['rootsAttributes']=$e(_0x4c1d54)?_0x4c1d54['getRootsAttributes']():void 0x0;const _0x2929cb=document['createDocumentFragment'](),_0x3ddb25=_0x4c1d54['config']['get']('trackChangesData')['editorCreator'],_0x1f27af=await _0x3ddb25(_0x459181,()=>function(_0x43e23b){const _0x2c1a62=document['createElement']('div');return _0x43e23b['appendChild'](_0x2c1a62),_0x2c1a62;}(_0x2929cb));!function(_0xd091c2,_0x165b27){const _0x2ae9f6=_0xd091c2['model']['document']['getRootNames']()['reduce']((_0x104c79,_0x23666)=>(_0x104c79[_0x23666]=_0xd091c2['data']['get']({'rootName':_0x23666}),_0x104c79),{}),_0x462373=_0xd091c2['plugins']['get']('Users')['users']['map'](_0x3444e4=>({'id':_0x3444e4['id'],'name':_0x3444e4['name']})),_0x5e6f23=_0xd091c2['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x272afd=_0xd091c2['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x427410=_0x165b27['plugins']['get']('Users'),_0x2777b7=_0x165b27['plugins']['get']('TrackChangesEditing'),_0x1de7de=_0x165b27['plugins']['get']('CommentsRepository');for(const _0x2c40ce of _0x1de7de['getCommentThreads']())_0x2c40ce['remove']();for(const _0x57898e of _0x462373)_0x427410['getUser'](_0x57898e['id'])||_0x427410['addUser'](_0x57898e);_0x427410['me']||_0x427410['useAnonymousUser']();for(const _0x1bf7b0 of _0x272afd)_0x1de7de['addCommentThread'](_0x1bf7b0);for(const _0x5ad7bf of _0x5e6f23)_0x2777b7['addSuggestionData'](_0x5ad7bf);_0x165b27['data']['set'](_0x2ae9f6);}(_0x4c1d54,_0x1f27af),_0x1f27af['execute'](_0x13be88?'acceptAllSuggestions':'discardAllSuggestions');const _0x769e2f=$e(_0x1f27af)?_0x1f27af['getFullData'](_0x526470):_0x1f27af['data']['get'](_0x526470);return await _0x1f27af['destroy'](),_0x769e2f;}class Me extends _0x217288{['options'];constructor(_0x2b6232,_0x2a92dc){super(_0x2b6232),this['options']=_0x2a92dc,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0xabf4ca,_0x25e892){if(!this['element'])return;const _0x5bb6ce=[];for(const [_0x5b804c,_0x10a816]of _0xabf4ca){const _0x462685=document['createElement']('div');_0x462685['setAttribute']('data-ck-root-name',_0x5b804c),_0x462685['className']=_0x10a816['classes']+'\x20ck-track-changes-preview__root-container',_0x462685['innerHTML']=_0x10a816['content'],_0x5bb6ce['push'](_0x462685);}_0x25e892(this['element'],_0x5bb6ce),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x204144{constructor(_0x5564e8){super(_0x5564e8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x5aecc0=this['editor'],_0x14a8cf=_0x5aecc0['locale'],_0x5ec056=_0x5aecc0['plugins']['get']('Dialog');let _0x5843a3;const _0x3cc68c=function(_0x103a4b){const _0x3da105={};if('editables'in _0x103a4b['ui']['view']){for(const [_0x3c67ff,_0x674818]of Object['entries'](_0x103a4b['ui']['view']['editables']))_0x3da105[_0x3c67ff]=_0x674818['element'];}else _0x3da105[_0x103a4b['model']['document']['getRootNames']()[0x0]]=_0x103a4b['ui']['view']['editable']['element'];return _0x3da105;}(_0x5aecc0),_0x363a0a=function(_0x5a49a){let _0x209ff6=0x0;for(const _0x65a4a2 of Object['values'](_0x5a49a))_0x209ff6=Math['max'](_0x209ff6,_0x65a4a2['getBoundingClientRect']()['width']);let _0x1859b5=0x0;for(const _0x46b006 of Object['values'](_0x5a49a))_0x1859b5+=_0x46b006['getBoundingClientRect']()['height'];const _0x198524=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x3be3f9=Math['min'](_0x1859b5,_0x198524);return{'width':_0x209ff6,'height':_0x3be3f9};}(_0x3cc68c);_0x5ec056['show']({'id':'finalContentPreview','title':o(_0x14a8cf,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x14a8cf,{'dialogRects':_0x363a0a}),'onHide':()=>{_0x5843a3['detachFromDom']();},'onShow':()=>{_0x5aecc0['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x11d856=>{const _0x268ac6=this['_standarizeRootsData'](_0x11d856,_0x5aecc0,_0x3cc68c);_0x5ec056['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x268ac6,_0x5aecc0['config']['get']('trackChanges.preview.renderFunction'));}),_0x5843a3=new _0x2e760d(_0x14a8cf,[_0x5ec056['view']]),_0x5843a3['attachToDom'](),_0x5843a3['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x5aecc0['once']('destroy',()=>{_0x5843a3['detachFromDom']();});const _0x314eeb=_0x5ec056['view']['headerView']['class'];_0x5ec056['view']['headerView']['class']=_0x314eeb?_0x314eeb+'\x20ck-reset_all':'ck-reset_all',_0x5ec056['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x5ec056['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x4d9834=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x1d6a2d=_0x4d9834['previewMode'],_0x527b6f={};if('$labels'===_0x1d6a2d){for(const _0x401538 of _0x4d9834['getMergeFieldsIds']())_0x527b6f[_0x401538]=_0x4d9834['getLabel'](_0x401538)||_0x401538;}else{const _0x4b5fff='$defaultValues'===_0x1d6a2d?_0x4d9834['getDefaultValues']():_0x4d9834['getDataSetValues'](_0x1d6a2d,!0x0);for(const _0x43cdc6 of Object['entries'](_0x4b5fff)){const [_0x157b95,_0x3c1e1e]=_0x43cdc6;_0x527b6f[_0x157b95]=null!==_0x3c1e1e?_0x3c1e1e:_0x4d9834['getLabel'](_0x157b95)||_0x157b95;}}return{'mergeFieldsData':_0x527b6f};}['_standarizeRootsData'](_0x353551,_0x1ba308,_0x2abfd8){let _0x29fdad;if('string'==typeof _0x353551){const _0x324cd8=_0x1ba308['model']['document']['getRootNames']()[0x0];_0x29fdad={[_0x324cd8]:_0x353551};}else _0x29fdad=_0x353551;const _0x46df6c=this['_fixMediaEmbeds'](_0x29fdad,_0x1ba308),_0x5977a2=function(_0x75a04c,_0x4958b8){for(const [_0x5c1f1e,_0x214bfa]of _0x75a04c)_0x214bfa['classes']=_0x4958b8[_0x5c1f1e]['classList']['value']['replace']('ck-focused','');return _0x75a04c;}(this['_sortRoots'](_0x1ba308)['reduce']((_0x169233,_0x5422db)=>(_0x169233['push']([_0x5422db,{'content':_0x46df6c[_0x5422db],'classes':''}]),_0x169233),[]),_0x2abfd8);return _0x5977a2;}['_fixMediaEmbeds'](_0x2ed708,_0x41bd2a){if(!_0x41bd2a['plugins']['has']('MediaEmbedEditing'))return _0x2ed708;const _0x3d9153=_0x41bd2a['plugins']['get']('MediaEmbedEditing');for(const [_0x472e9b,_0x817d6c]of Object['entries'](_0x2ed708)){const _0x546386=document['createElement']('div');_0x546386['innerHTML']=_0x817d6c,(_0x546386['querySelectorAll']('figure.media')['forEach'](_0x62db54=>{const _0x3f560f=_0x62db54['querySelector']('oembed');if(_0x3f560f){const _0x132636=_0x3f560f['getAttribute']('url');if(_0x132636){const _0x356db9=_0x3d9153['registry']['getMediaViewElement'](new _0x3c06c6(_0x41bd2a['editing']['view']['document']),_0x132636,{'elementName':'','renderForEditingView':!0x0}),_0x5175fb=document['createElement']('div');_0x5175fb['classList']['add']('ck-media__wrapper'),_0x356db9['render'](_0x5175fb,_0x41bd2a['editing']['view']['domConverter']),_0x3f560f['replaceWith'](_0x5175fb);}}}),_0x2ed708[_0x472e9b]=_0x546386['innerHTML']);}return _0x2ed708;}['_sortRoots'](_0x3d2f8c){if(!function(_0x47b1a1){return void 0x0!==_0x47b1a1['getRootsAttributes'];}(_0x3d2f8c))return _0x3d2f8c['model']['document']['getRootNames']();const _0x2bd454=[],_0x208aac=new Map();for(const _0x47e226 of _0x3d2f8c['model']['document']['getRootNames']()){const _0x5bd97f=_0x3d2f8c['editing']['view']['getDomRoot'](_0x47e226)['getClientRects']()['item'](0x0);_0x2bd454['push'](_0x47e226),_0x208aac['set'](_0x47e226,_0x5bd97f);}return _0x2bd454['sort']((_0x4b5bd6,_0x58da08)=>{const _0x25e4a3=_0x208aac['get'](_0x4b5bd6),_0x1080b2=_0x208aac['get'](_0x58da08);return _0x25e4a3['y']-_0x1080b2['y']||_0x25e4a3['x']-_0x1080b2['x'];}),_0x2bd454;}}class He extends _0x3befcd{static get['requires'](){return[re,_0x5295ad];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x57aa09){super(_0x57aa09),_0x57aa09['commands']['add']('previewFinalContent',new te(this['editor'])),_0x57aa09['config']['define']('trackChanges.preview.renderFunction',(_0x40fa03,_0x28b44c)=>{for(const _0x4b69f6 of _0x28b44c)_0x40fa03['appendChild'](_0x4b69f6);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};
23
+ import{Command as _0x38a689,Plugin as _0x142398,PendingActions as _0x20a14a}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x33e300,ObservableMixin as _0x231f54,uid as _0x140250,priorities as _0x568555,insertToPriorityArray as _0x19bcc9,toArray as _0x337b53,logWarning as _0x51214e,getEnvKeystrokeText as _0x185a9c,FocusTracker as _0x30b267,KeystrokeHandler as _0x22e422,Collection as _0x1dd914}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x7f4849,IconCancel as _0x1a2728,IconTrackChanges as _0x43b753}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x444e09,View as _0x2bab32,ViewCollection as _0x4ad431,FocusCycler as _0x1213d5,UIModel as _0x5bca00,createDropdown as _0x1e437f,SplitButtonView as _0x202e1a,addListToDropdown as _0x152cdf,MenuBarMenuView as _0x392ca6,MenuBarMenuListView as _0x2bb303,ListSeparatorView as _0x3f8930,MenuBarMenuListItemView as _0x7d02b3,MenuBarMenuListItemButtonView as _0x433ed2,BodyCollection as _0x22e14b,Dialog as _0x1e62e1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1e445d,hashObject as _0x172249,surroundingMarkersDetector as _0x1f8bfc,FOCUS_ANNOTATION_KEYSTROKE as _0x44f7ba,AriaDescriptionView as _0x456c6a,setupThreadKeyboardNavigation as _0x10e5f9,trimHtml as _0x13706f,UserView as _0x1a32b2,LateFocusButtonView as _0x460bf7,getDateTimeFormatter as _0x36690b,getAllMarkersDomElementsSorted as _0x46a7c8,sanitizeEditorConfig as _0x2b55a4}from'ckeditor5-collaboration/dist/index.js';import{ModelElement as _0x3f3fae,ModelLiveRange as _0x3590e7,ModelLivePosition as _0x22b32f,ViewDowncastWriter as _0x155f8c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34ad7c,toWidget as _0x4c0789}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x513380,set as _0x30d626,isEqual as _0x48cd59,unset as _0xbc339,omit as Ut}from'es-toolkit/compat';import{Delete as _0x43362c,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x318fb5}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x27aa69}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class N extends _0x38a689{['_enabledCommands'];constructor(_0x2c6406,_0x32d952){super(_0x2c6406),this['_enabledCommands']=_0x32d952,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 _0x18a057 of this['editor']['commands']['commands']())_0x18a057['affectsData']&&!this['_enabledCommands']['has'](_0x18a057)&&_0x18a057['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x80c9c of this['editor']['commands']['commands']())_0x80c9c['affectsData']&&!this['_enabledCommands']['has'](_0x80c9c)&&_0x80c9c['clearForceDisabled']('TrackChangesCommand');}}class D extends _0x38a689{['_suggestions'];constructor(_0x7254fe,_0x5d86dc){super(_0x7254fe),this['_suggestions']=_0x5d86dc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58d56a){const _0x7aa76d=this['_suggestions']['get'](_0x58d56a);if(!_0x7aa76d)throw new _0x33e300('track-changes-accept-suggestion-not-found',this);const _0x2f67b5=_0x7aa76d['getRanges']();this['editor']['model']['canEditAt'](_0x2f67b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x7aa76d);}}class M extends _0x38a689{['_suggestions'];constructor(_0x4fe4a5,_0x58cb59){super(_0x4fe4a5),this['_suggestions']=_0x58cb59,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2520ac){const _0x35cb31=this['_suggestions']['get'](_0x2520ac);if(!_0x35cb31)throw new _0x33e300('track-changes-discard-suggestion-not-found',this);const _0x1c7666=_0x35cb31['getRanges']();this['editor']['model']['canEditAt'](_0x1c7666)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x35cb31);}}function ls(_0x660934,_0x1ed48b){let _0x4b5c06='';return _0x4b5c06+=_0x660934['split']('*')['map']((_0x22894b,_0x2af848)=>_0x2af848%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+Yt(_0x22894b)+'</span>':Yt(_0x22894b))['join'](''),_0x1ed48b&&(_0x4b5c06+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ed48b['value']+'\x22\x20title=\x22'+_0x1ed48b['title']+'\x22></span>'),_0x4b5c06;}function Yt(_0x1cb2fc){const _0x1674d8=document['createElement']('span');return _0x1674d8['innerText']=_0x1cb2fc,_0x1674d8['innerHTML'];}function ts(_0x1ed2b9){return _0x1ed2b9['sort']((_0x506b5a,_0x1a9927)=>'attribute'===_0x506b5a['type']&&'attribute'!==_0x1a9927['type']?-0x1:'attribute'!==_0x506b5a['type']&&'attribute'===_0x1a9927['type']?0x1:'deletion'==_0x506b5a['type']&&'deletion'!=_0x1a9927['type']?-0x1:'deletion'!=_0x506b5a['type']&&'deletion'==_0x1a9927['type']?0x1:0x0);}function to(_0x58ebc0,_0x7860b1){let _0x152262,_0x5d9618=0x0;const _0x1bb154=[],_0x5cbb60=_0x7860b1['schema'];for(;_0x5d9618<_0x58ebc0['length'];){const _0x32ad0f=_0x58ebc0[_0x5d9618],_0x56ab4c=_0x58ebc0[_0x5d9618+0x1];_0x152262||(_0x152262=_0x7860b1['createPositionBefore'](_0x32ad0f)),Zt(_0x7860b1,_0x32ad0f,_0x56ab4c)||(_0x1bb154['push'](_0x7860b1['createRange'](_0x152262,_0x5cbb60['isObject'](_0x32ad0f)?_0x7860b1['createPositionAfter'](_0x32ad0f):_0x7860b1['createPositionAt'](_0x32ad0f,'end'))),_0x152262=null),_0x5d9618++;}return _0x1bb154;}function Zt(_0x5cad4e,_0x317317,_0x2fdf5e){if(!_0x2fdf5e)return!0x1;const _0x1df6e4=_0x5cad4e['createPositionAfter'](_0x317317),_0x5bd59d=_0x5cad4e['createPositionBefore'](_0x2fdf5e);return _0x1df6e4['isTouching'](_0x5bd59d);}function rs(_0xc726eb,_0x3cdb67,_0x4de313){for(;_0x4de313['length'];){const _0x5e0d88=_0x4de313['splice'](0x0,0x64);_0xc726eb['change'](()=>{for(const _0x12ac56 of _0x5e0d88)_0x12ac56['isInContent']&&_0x3cdb67['execute'](_0x12ac56['id']);});}}class $ extends _0x38a689{['_command'];['_suggestions'];constructor(_0x15947c,_0x24f61e,_0x2013f1){super(_0x15947c),this['_command']=_0x24f61e,this['_suggestions']=_0x2013f1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5ac68c=Array['from'](this['_suggestions']['values']())['some'](_0x56c71a=>_0x56c71a['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5ac68c;}['execute'](){const _0x1a5c69=ts(Array['from'](this['_suggestions']['values']()));for(const _0x478a74 of _0x1a5c69){const _0x9e2c1f=_0x478a74['getRanges']();if(!this['editor']['model']['canEditAt'](_0x9e2c1f))return;}rs(this['editor']['model'],this['_command'],_0x1a5c69);}}class B extends _0x38a689{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x511cce,_0x489452,_0x157c57){super(_0x511cce),this['_command']=_0x489452,this['_suggestions']=_0x157c57,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x21634a=this['editor']['model']['document']['selection'],_0x373d6b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x21e09d,_0x4a206f){const _0x5b2072=Array['from'](_0x21e09d['getRanges']()),_0x18c066=new Set();for(const _0x2b8b79 of _0x4a206f)if(_0x2b8b79['isInContent']){for(const _0x3aa96e of _0x5b2072)for(const _0x22e792 of _0x2b8b79['getRanges']())(_0x3aa96e['isIntersecting'](_0x22e792)||_0x21e09d['isCollapsed']&&!_0x2b8b79['isMultiRange']&&_0x2b8b79['next']&&_0x22e792['end']['isTouching'](_0x3aa96e['start']))&&_0x18c066['add'](_0x2b8b79);}return _0x18c066;}(_0x21634a,_0x373d6b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x3df97a=ts(Array['from'](this['_selectedSuggestions']));for(const _0x2aad95 of _0x3df97a){const _0xacd0b=_0x2aad95['getRanges']();if(!this['editor']['model']['canEditAt'](_0xacd0b))return;}rs(this['editor']['model'],this['_command'],_0x3df97a);}}class T extends/* #__PURE__ -- @preserve */
24
+ _0x231f54(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_originalSuggestionId'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x16718e,_0x5d8f1e){super(),this['id']=_0x5d8f1e['id'],this['type']=_0x5d8f1e['type'],this['subType']=_0x5d8f1e['subType']||null,this['author']=_0x5d8f1e['author'],this['creator']=_0x5d8f1e['creator']||_0x5d8f1e['author'],this['isExternal']=Boolean(_0x5d8f1e['attributes']&&_0x5d8f1e['attributes']['@external']),this['data']=null,this['_originalSuggestionId']=_0x5d8f1e['originalSuggestionId']||null,this['_model']=_0x16718e,this['_onAccept']=_0x5d8f1e['onAccept'],this['_onDiscard']=_0x5d8f1e['onDiscard'],this['_onAttributesChange']=_0x5d8f1e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5d8f1e['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 _0x40782c=this;for(;_0x40782c['previous'];)_0x40782c=_0x40782c['previous'];return _0x40782c;}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'](_0x1235fe){this['_markerNames']['add'](_0x1235fe);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x195866=>this['_model']['markers']['get'](_0x195866))['filter'](_0x12e3af=>_0x12e3af);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x46e658=>{for(const _0x5e31e2 of this['getMarkers']())_0x46e658['removeMarker'](_0x5e31e2);}),this['_markerNames']['clear']();}['removeMarker'](_0x43557f){this['_model']['change'](_0x110979=>{_0x110979['removeMarker'](_0x43557f);}),this['_markerNames']['delete'](_0x43557f);}['addRange'](_0xd95be8){const _0x3e5352='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+T['getMultiRangeId']();this['addMarkerName'](_0x3e5352),this['_model']['change'](_0x1df384=>{_0x1df384['addMarker'](_0x3e5352,{'range':_0xd95be8,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xdb4e54){for(const _0x24048d of this['getRanges']())if(_0x24048d['isIntersecting'](_0xdb4e54))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33faa6=>_0x33faa6['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x41525d,_0x1606e5)=>[..._0x41525d,..._0x1606e5['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x46ac6a=this['getRanges']();if(0x1!=_0x46ac6a['length'])return null;const _0x1a1b1b=_0x46ac6a[0x0],_0x89f2cb=_0x1a1b1b['start']['nodeAfter'],_0x405db0=_0x1a1b1b['end']['nodeBefore'];return _0x89f2cb instanceof _0x3f3fae?_0x89f2cb!=_0x405db0?null:_0x89f2cb: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 _0x3ba07f=[];let _0x2471eb=this['head'];for(;_0x2471eb;)_0x3ba07f['push'](_0x2471eb),_0x2471eb=_0x2471eb['next'];return _0x3ba07f;}['setAttribute'](_0x2297c1,_0x135d0c){const _0x58b60a=_0x513380(this['attributes']);_0x30d626(_0x58b60a,_0x2297c1,_0x135d0c),_0x48cd59(_0x58b60a,this['attributes'])||(this['attributes']=_0x58b60a,this['_onAttributesChange'](_0x58b60a));}['removeAttribute'](_0x56cadc){const _0x3bd41b=_0x513380(this['attributes']);_0xbc339(_0x3bd41b,_0x56cadc),_0x48cd59(_0x3bd41b,this['attributes'])||(this['attributes']=_0x3bd41b,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 _0x140250()['substr'](0x1,0x5);}}function o(_0x319d1e,_0x2fa035,_0x4caf70){const _0x308be2=_0x319d1e['t'],t=_0x319d1e['t'];switch(_0x2fa035){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',_0x4caf70);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4caf70);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4caf70);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4caf70);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4caf70);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',_0x4caf70);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4caf70);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',_0x4caf70);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4caf70);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4caf70);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4caf70);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4caf70);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4caf70);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4caf70);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4caf70);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4caf70);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4caf70);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4caf70);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4caf70);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4caf70);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4caf70);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4caf70);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4caf70);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4caf70);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x4caf70);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'},_0x4caf70);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x4caf70);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x4caf70);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4caf70);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4caf70);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4caf70);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4caf70);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4caf70);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4caf70);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4caf70);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4caf70);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'},_0x4caf70);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'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'},_0x4caf70);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4caf70);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4caf70);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'},_0x4caf70);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4caf70);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 _0x308be2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4caf70);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x308be2({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4caf70);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4caf70);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'},_0x4caf70);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'},_0x4caf70);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'},_0x4caf70);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2fa035;}}class x{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0xb44bc1,_0x499754){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0xb44bc1,this['_locale']=_0x499754;}['getDescriptions'](_0x5ef7f1){const _0x38565d=[],_0x2a70e5=new Set(),_0x4adfa2=new Set();for(let _0x434698=0x0;_0x434698<_0x5ef7f1['length'];_0x434698++){const _0x21fdcf=_0x5ef7f1[_0x434698];if(!_0x21fdcf['isInContent'])continue;const _0x2c7ea5=this['_handleCustomCallbackDescription'](_0x21fdcf);if(_0x2c7ea5){if(null!=_0x21fdcf['subType']){if(_0x2a70e5['has'](_0x21fdcf['subType']))continue;_0x2a70e5['add'](_0x21fdcf['subType']);}_0x38565d['push'](_0x2c7ea5);}else{if('attribute'==_0x21fdcf['type']){const _0x27320d=_0x21fdcf['data']['key'];if(_0x4adfa2['has'](_0x27320d))continue;_0x4adfa2['add'](_0x21fdcf['data']['key']),_0x27320d==m?this['_handleRenameSuggestionDescription'](_0x38565d,_0x21fdcf):this['_handleAttributeSuggestionDescription'](_0x38565d,_0x21fdcf);continue;}'insertion'!=_0x21fdcf['type']&&'deletion'!=_0x21fdcf['type']||this['_handleInsertRemoveSuggestionDescription'](_0x38565d,_0x21fdcf,_0x5ef7f1[_0x434698+0x1]);}}return this['_resolveDescriptionItems'](_0x38565d);}['registerDescriptionCallback'](_0x26afe5){this['_customCallbacks']['push'](_0x26afe5);}['registerElementLabel'](_0x4c25fc,_0x2d19d4,_0x3df8f7=_0x568555['normal']){'function'==typeof _0x4c25fc?_0x19bcc9(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4c25fc,'label':_0x2d19d4,'priority':_0x3df8f7}):this['_itemLabels']['set'](_0x4c25fc,_0x2d19d4);}['registerAttributeLabel'](_0x1343c0,_0x22edde){this['_attributeLabels']['set'](_0x1343c0,_0x22edde);}['getItemLabel'](_0x440bf1,_0x5f19a5=0x1){let _0x57429f;for(const _0x1f1fda of this['_itemLabelsCallbacks'])if(_0x1f1fda['matchingCallback'](_0x440bf1)){_0x57429f=_0x1f1fda['label'];break;}return _0x57429f||(_0x57429f=this['_itemLabels']['get'](_0x440bf1['name'])),_0x57429f?_0x57429f(_0x5f19a5):0x1!==_0x5f19a5?_0x5f19a5+'\x20'+_0x440bf1['name']+'s':''+_0x440bf1['name'];}['_addDescriptionItems'](_0x5d5bb7,_0x57445d){const _0xc6ad=_0x57445d['getFirstRange']()['getWalker'](),_0x12cfc7='insertion'==_0x57445d['type']?'add':'remove';for(const _0x59f4b2 of _0xc6ad){const _0xa39df0=_0x59f4b2['item'],_0x51eceb=_0x5d5bb7[_0x5d5bb7['length']-0x1];if(_0xa39df0['is']('$textProxy'))_0x51eceb&&_0x51eceb['type']['indexOf']('Container')>-0x1&&_0x5d5bb7['pop'](),_0x51eceb&&'text'==_0x51eceb['type']?_0x51eceb[_0x12cfc7]+=_0xa39df0['data']:_0x5d5bb7['push']({'type':'text','add':'add'==_0x12cfc7?_0xa39df0['data']:'','remove':'remove'==_0x12cfc7?_0xa39df0['data']:''});else{if(this['_schema']['isObject'](_0xa39df0)){const _0x2e427d=_0xa39df0;if(_0x51eceb&&_0x51eceb['type']['indexOf']('Container')>-0x1&&_0x5d5bb7['pop'](),'elementEnd'==_0x59f4b2['type'])continue;_0x51eceb&&_0x51eceb['type']==_0x12cfc7+'Object'&&_0x51eceb['element']['name']==_0x2e427d['name']?_0x51eceb['quantity']++:_0x5d5bb7['push']({'type':_0x12cfc7+'Object','element':_0x2e427d,'quantity':0x1}),_0xc6ad['skip'](_0x20bdd0=>!('elementEnd'==_0x20bdd0['type']&&_0x20bdd0['item']==_0xa39df0));}else{if(this['_schema']['checkChild'](_0xa39df0,'$text')||_0xa39df0['is']('element','softBreak')){const _0x25a463=_0xa39df0;if('add'==_0x12cfc7&&'elementStart'==_0x59f4b2['type']||'remove'==_0x12cfc7&&'elementEnd'==_0x59f4b2['type'])continue;if(_0x51eceb&&-0x1==_0x51eceb['type']['indexOf']('Container')){'text'==_0x51eceb['type']&&(_0x51eceb[_0x12cfc7]+='\x0a');continue;}let _0x4539f1;if(_0x4539f1='add'==_0x12cfc7?_0x25a463['nextSibling']&&!this['_schema']['isObject'](_0x25a463['nextSibling'])?_0x25a463['nextSibling']:null:_0x25a463['previousSibling']&&!this['_schema']['isObject'](_0x25a463['previousSibling'])?_0x25a463['previousSibling']:null,_0x25a463['isEmpty']||_0x4539f1&&_0x4539f1['isEmpty']){const _0x4c4f9c=_0x4539f1&&_0x4539f1['isEmpty']?_0x4539f1:_0x25a463;_0x51eceb&&_0x51eceb['type']==_0x12cfc7+'EmptyContainer'&&_0x51eceb['element']['name']==_0x4c4f9c['name']?_0x51eceb['quantity']++:_0x5d5bb7['push']({'type':_0x12cfc7+'EmptyContainer','element':_0x4c4f9c,'quantity':0x1});}else _0x5d5bb7['push']({'type':_0x12cfc7+'Container','element':_0x25a463});}}}}}['_resolveDescriptionItems'](_0x3df2a4){const _0x277a31=this['_locale'],_0x54cb57=[],_0xdd6b48=[],_0x2e832a=[];for(const _0x915184 of _0x3df2a4)switch(_0x915184['type']){case'text':if(_0x915184['add']=_0x915184['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x915184['remove']=_0x915184['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x915184['add']&&''!=_0x915184['remove']){_0x54cb57['push']({'type':'replace','content':o(_0x277a31,'REPLACE_TEXT',['\x22'+_0x915184['remove']+'\x22','\x22'+_0x915184['add']+'\x22'])});continue;}if(null!=_0x915184['add']['match'](/^ +$/)){_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0',o(_0x277a31,'ELEMENT_SPACE',_0x915184['add']['length']))});continue;}if(null!=_0x915184['remove']['match'](/^ +$/)){_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0',o(_0x277a31,'ELEMENT_SPACE',_0x915184['remove']['length']))});continue;}if(''!=_0x915184['add']){_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0','\x22'+_0x915184['add']+'\x22')});continue;}_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0','\x22'+_0x915184['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Insert:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Remove:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'addContainer':_0x54cb57['push']({'type':'insertion','content':o(_0x277a31,'*Split:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'removeContainer':_0x54cb57['push']({'type':'deletion','content':o(_0x277a31,'*Merge:*\x20%0',this['getItemLabel'](_0x915184['element'],_0x915184['quantity']))});continue;case'addFormat':_0xdd6b48['push'](_0x915184['key']);continue;case'removeFormat':_0x2e832a['push'](_0x915184['key']);continue;default:_0x54cb57['push'](_0x915184);}if(_0xdd6b48['length']){const _0x10a998=_0xdd6b48['map'](_0x168784=>this['_attributeLabels']['has'](_0x168784)?this['_attributeLabels']['get'](_0x168784):_0x168784)['join'](',\x20');_0x54cb57['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x10a998)});}if(_0x2e832a['length']){const _0x296eb1=_0x2e832a['map'](_0x23d48c=>this['_attributeLabels']['has'](_0x23d48c)?this['_attributeLabels']['get'](_0x23d48c):_0x23d48c)['join'](',\x20');_0x54cb57['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x296eb1)});}return _0x54cb57;}['_handleCustomCallbackDescription'](_0x34f34e){for(const _0x357d1f of this['_customCallbacks']){const _0x3c2137=_0x357d1f(_0x34f34e);if(_0x3c2137&&'type'in _0x3c2137)return _0x3c2137;}}['_handleAttributeSuggestionDescription'](_0x17bf08,_0x21787b){const _0x58d801=_0x21787b['data'],_0x4969fe=void 0x0===_0x58d801['newValue']?'removeFormat':'addFormat';_0x17bf08['push']({'type':_0x4969fe,'key':_0x58d801['key']});}['_handleRenameSuggestionDescription'](_0x2233de,_0x3ece4b){_0x2233de['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x3ece4b['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0xe46151,_0x2af0bc,_0x4837b1){if(this['_addDescriptionItems'](_0xe46151,_0x2af0bc),_0x4837b1&&_0x4837b1['getFirstRange']()&&!_0x2af0bc['getFirstRange']()['end']['isEqual'](_0x4837b1['getFirstRange']()['start'])){const _0xdb4bd5=_0xe46151[_0xe46151['length']-0x1],_0xf2e0d7='insertion'==_0x2af0bc['type']?'add':'remove';_0xdb4bd5&&'text'==_0xdb4bd5['type']&&(_0xdb4bd5[_0xf2e0d7]+='\x0a');}}}class O extends _0x142398{['afterInit'](){const _0xc37629=this['editor'],_0x4c62ec=_0xc37629['plugins']['get']('TrackChangesEditing');_0xc37629['commands']['get']('showAIAssistant')&&_0x4c62ec['enableCommand']('showAIAssistant');}}class E extends _0x142398{['afterInit'](){const _0x57dae3=this['editor'],_0x45e039=_0x57dae3['locale'];if(!_0x57dae3['plugins']['has']('AlignmentEditing'))return;const _0x4a6ce7=_0x57dae3['plugins']['get']('TrackChangesEditing');_0x4a6ce7['enableDefaultAttributesIntegration']('alignment'),_0x4a6ce7['registerBlockAttribute']('alignment'),_0x4a6ce7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x45e039,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466f5a=this['editor'],_0x437e60=_0x466f5a['locale'];_0x466f5a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28f378=>{if('formatBlock'!=_0x28f378['type'])return;const {data:_0x2b9d45}=_0x28f378;if(_0x2b9d45&&'alignment'==_0x2b9d45['commandName']){const _0x206dcb=_0x2b9d45['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x437e60,'*Format:*\x20%0',function(_0x2a8158){switch(_0x2a8158){case'left':return o(_0x437e60,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x437e60,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x437e60,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x437e60,'FORMAT_JUSTIFY_TEXT');}}(_0x206dcb))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class R extends _0x142398{['afterInit'](){const _0x2cc67c=this['editor'],_0x535223=_0x2cc67c['plugins']['get']('TrackChangesEditing'),_0x2d13e8=_0x2cc67c['locale'];for(const _0x46a076 of ti){if(!_0x2cc67c['plugins']['has'](_0x46a076))continue;const _0x4df287=_0x46a076['slice'](0x0,-0x7)['toLowerCase'](),_0x28df2e='FORMAT_'+_0x4df287['toUpperCase']();_0x535223['enableDefaultAttributesIntegration'](_0x4df287),_0x535223['registerInlineAttribute'](_0x4df287),_0x535223['descriptionFactory']['registerAttributeLabel'](_0x4df287,o(_0x2d13e8,_0x28df2e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x531fa7=this['editor'],_0x26516d=_0x531fa7['locale'],_0x3c77ba=_0x531fa7['plugins']['get']('TrackChangesEditing');function _0x3e5bc2(_0x1d4499,_0x3a6a49){_0x3c77ba['descriptionFactory']['registerDescriptionCallback'](_0x5b1545=>{if('formatInline'!=_0x5b1545['type'])return;const {data:_0x134e89}=_0x5b1545;return _0x134e89&&_0x134e89['commandName']===_0x1d4499?_0x134e89['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26516d,'*Format:*\x20%0',_0x3a6a49)}:{'type':'format','content':o(_0x26516d,'*Remove\x20format:*\x20%0',_0x3a6a49)}:void 0x0;});}_0x3e5bc2('bold',o(_0x26516d,'FORMAT_BOLD')),_0x3e5bc2('italic',o(_0x26516d,'FORMAT_ITALIC')),_0x3e5bc2('underline',o(_0x26516d,'FORMAT_UNDERLINE')),_0x3e5bc2('code',o(_0x26516d,'FORMAT_CODE')),_0x3e5bc2('strikethrough',o(_0x26516d,'FORMAT_STRIKETHROUGH')),_0x3e5bc2('subscript',o(_0x26516d,'FORMAT_SUBSCRIPT')),_0x3e5bc2('superscript',o(_0x26516d,'FORMAT_SUPERSCRIPT'));}}class U extends _0x142398{['afterInit'](){const _0x3ffd7b=this['editor'],_0x33ff07=_0x3ffd7b['locale'];if(!_0x3ffd7b['plugins']['has']('BlockQuoteEditing'))return;const _0x10ac29=_0x3ffd7b['plugins']['get']('TrackChangesEditing'),_0x5c167d=this['editor']['commands']['get']('blockQuote');_0x10ac29['enableCommand']('blockQuote',(_0x526607,_0x89e608={})=>{const _0x3483b3=this['editor']['model']['document']['selection'],_0x5b40ae=_0x89e608&&void 0x0!==_0x89e608['forceValue']?_0x89e608['forceValue']:!_0x5c167d['value'];let _0x2492d4=[];if(_0x5b40ae){const _0x44b8ed=Array['from'](_0x3483b3['getSelectedBlocks']())['filter'](_0x5529df=>oo(_0x5529df)||function(_0x356b33,_0xbbf108){const _0x451511=_0xbbf108['checkChild'](_0x356b33['parent'],'blockQuote'),_0x2a7d28=_0xbbf108['checkChild'](['$root','blockQuote'],_0x356b33);return _0x451511&&_0x2a7d28;}(_0x5529df,this['editor']['model']['schema']));_0x2492d4=to(_0x44b8ed,_0x3ffd7b['model']);}else{const _0x771b6b=Array['from'](_0x3483b3['getSelectedBlocks']())['filter'](_0x56ed60=>oo(_0x56ed60));_0x2492d4=to(_0x771b6b,_0x3ffd7b['model']);}_0x3ffd7b['model']['change'](()=>{for(const _0x260577 of _0x2492d4)_0x10ac29['markBlockFormat'](_0x260577,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b40ae}]});});}),_0x10ac29['descriptionFactory']['registerDescriptionCallback'](_0xbc7422=>{const {data:_0x4c3c5a}=_0xbc7422;if(_0x4c3c5a&&'blockQuote'==_0x4c3c5a['commandName']){const _0x46f6d7=o(_0x33ff07,'ELEMENT_BLOCK_QUOTE');return _0x4c3c5a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33ff07,'*Set\x20format:*\x20%0',_0x46f6d7)}:{'type':'format','content':o(_0x33ff07,'*Remove\x20format:*\x20%0',_0x46f6d7)};}});}}function oo(_0x3f70b8){return'blockQuote'==_0x3f70b8['parent']['name'];}class V extends _0x142398{['afterInit'](){const _0x517b3a=this['editor'],_0x2b9b2d=_0x517b3a['locale'],_0x4416ab=_0x517b3a['plugins']['get']('TrackChangesEditing');_0x517b3a['plugins']['has']('BookmarkEditing')&&(_0x4416ab['enableCommand']('insertBookmark'),_0x4416ab['enableDefaultAttributesIntegration']('updateBookmark'),_0x4416ab['registerBlockAttribute']('bookmarkId'),_0x4416ab['descriptionFactory']['registerDescriptionCallback'](_0x147936=>{if('insertion'!=_0x147936['type']&&'deletion'!=_0x147936['type']&&'attribute'!=_0x147936['type'])return;const _0x39b914=_0x147936['getContainedElement']();if(null==_0x39b914)return;if(!_0x39b914['is']('element','bookmark'))return;const _0xf0f53d=_0x39b914['getAttribute']('bookmarkId');if('insertion'==_0x147936['type'])return{'type':'insertion','content':o(_0x2b9b2d,'*Insert:*\x20%0','\x22'+_0xf0f53d+'\x22\x20'+o(_0x2b9b2d,'ELEMENT_BOOKMARK'))};if('deletion'==_0x147936['type'])return{'type':'deletion','content':o(_0x2b9b2d,'*Remove:*\x20%0','\x22'+_0xf0f53d+'\x22\x20'+o(_0x2b9b2d,'ELEMENT_BOOKMARK'))};const {data:_0x2c9a6c}=_0x147936;if(!_0x2c9a6c||'bookmarkId'!=_0x2c9a6c['key'])return;return{'type':'format','content':o(_0x2b9b2d,'*Set\x20bookmark:*\x20%0','\x22'+_0x2c9a6c['newValue']+'\x22')};}));}}class F extends _0x142398{['afterInit'](){const _0x1e8854=this['editor'];_0x1e8854['plugins']['has']('CaseChange')&&(_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1e8854['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class G extends _0x142398{['afterInit'](){const _0x5940bb=this['editor'];_0x5940bb['commands']['get']('ckbox')&&_0x5940bb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x142398{['afterInit'](){const _0x454b81=this['editor'];if(!_0x454b81['plugins']['has']('CodeBlock'))return;const _0x342261=_0x454b81['plugins']['get']('TrackChangesEditing'),_0xb50ec5=_0x454b81['locale'],_0x25e138=_0x454b81['config']['get']('codeBlock')['languages'],_0x114ead=_0x454b81['commands']['get']('codeBlock');_0x342261['enableCommand']('indentCodeBlock'),_0x342261['enableCommand']('outdentCodeBlock'),_0x342261['enableCommand']('codeBlock',(_0x1326d4,_0x2dc0fd={})=>{const _0x27cc42=_0x454b81['model'],_0x4a861f=_0x454b81['model']['document']['selection'],_0x5030ab=_0x2dc0fd&&void 0x0!==_0x2dc0fd['forceValue']?_0x2dc0fd['forceValue']:!_0x114ead['value'];let _0x1e7b81;_0x2dc0fd['language']||(_0x2dc0fd['language']=_0x25e138[0x0]['language']),_0x1e7b81=_0x5030ab?Array['from'](_0x4a861f['getSelectedBlocks']())['filter'](_0x19dbd7=>co(_0x19dbd7)||function(_0x27eff3,_0x373493){if(_0x27eff3['is']('rootElement')||_0x373493['isLimit'](_0x27eff3))return!0x1;return _0x373493['checkChild'](_0x27eff3['parent'],'codeBlock');}(_0x19dbd7,_0x27cc42['schema'])):Array['from'](_0x4a861f['getSelectedBlocks']())['filter'](_0x4add82=>co(_0x4add82));const _0x55e1ad=to(_0x1e7b81,_0x27cc42);_0x27cc42['change'](()=>{for(const _0x18624a of _0x55e1ad)_0x342261['markBlockFormat'](_0x18624a,{'commandName':'codeBlock','commandParams':[{..._0x2dc0fd,'forceValue':_0x5030ab}],'formatGroupId':'blockName'});});}),(_0x342261['descriptionFactory']['registerElementLabel']('codeBlock',_0x378682=>o(_0xb50ec5,'ELEMENT_CODE_BLOCK',_0x378682)),_0x342261['descriptionFactory']['registerDescriptionCallback'](_0x1844ca=>{if('formatBlock'!=_0x1844ca['type'])return;const _0x1a0711=_0xb50ec5['t'],{data:_0x276cb8}=_0x1844ca;if(!_0x276cb8||'codeBlock'!=_0x276cb8['commandName'])return;const _0x3dce1f=_0x276cb8['commandParams'][0x0]['language'],_0x4d1f1f=_0x1a0711(_0x25e138['find'](_0x4c8631=>_0x4c8631['language']===_0x3dce1f)['label'])['toLowerCase']();return _0x276cb8['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb50ec5,'*Set\x20format:*\x20%0',o(_0xb50ec5,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x4d1f1f+')')}:{'type':'format','content':o(_0xb50ec5,'*Remove\x20format:*\x20%0',o(_0xb50ec5,'ELEMENT_CODE_BLOCK',0x1))};}));}}function co(_0xad4cc2){return'codeBlock'==_0xad4cc2['name'];}class J extends _0x142398{['afterInit'](){const _0x393cd3=this['editor'];if(!_0x393cd3['plugins']['has']('CommentsEditing'))return;_0x393cd3['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b9fcd,_0x4ac0db,_0x5277de){const _0x17f615=[];for(const _0x35d42a of _0x4ac0db['getItems']())_0x35d42a['hasAttribute'](_0x3b9fcd)&&_0x17f615['push'](_0x5277de['createRangeOn'](_0x35d42a));return _0x17f615;}function De(_0x5468ee,_0x509fef,{showActiveMarker:_0x45e5aa=!0x0}={}){const _0x399ece=_0x5468ee['plugins']['get']('TrackChangesEditing');return(_0x1069d6,_0x1ebc48,_0xb65169)=>{if(!_0xb65169['consumable']['test'](_0x1ebc48['markerRange'],_0x1069d6['name']))return;const _0xb060a9=_0x1ebc48['markerRange']['getWalker'](),_0x12cd9c=_0x1ebc48['markerRange']['start'],_0x1f57ab=_0x5468ee['model']['schema'];let _0x308d6d=null,_0x103186=null,_0x1e9d3f=!0x1,_0x109065=!0x1;for(const _0xf9656b of _0xb060a9){const _0x1d9033=_0xf9656b['item'];_0x1e9d3f=_0x1e9d3f||_0x1f57ab['isContent'](_0x1d9033);const _0xa0d3a4=_0xb65169['mapper']['toViewElement'](_0x1d9033);if(_0xa0d3a4&&_0xa0d3a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf9656b['type']&&(_0x1f57ab['isBlock'](_0x1d9033)&&!_0x1f57ab['isLimit'](_0x1d9033)&&(_0x1d9033['nextSibling']||_0x12cd9c['isAtEnd']?_0x308d6d&&_0x308d6d['parent']==_0x1d9033||(_0x308d6d=_0x1d9033,_0x10a0ae(_0xf9656b['previousPosition']),_0x109065=!0x0):_0x103186=_0x103186||_0xf9656b['previousPosition']));}function _0x10a0ae(_0x3ddad7){const {id:_0x37ea6c,authorId:_0x335752}=_0x399ece['_splitMarkerName'](_0x1ebc48['markerName']),_0x59ca73=_0xb65169['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x509fef,'data-suggestion':_0x37ea6c,'data-author-id':_0x335752}),_0x4507b8=_0xb65169['mapper']['toViewPosition'](_0x3ddad7);_0x45e5aa&&_0x399ece['activeMarkers']['includes'](_0x1ebc48['markerName'])&&_0xb65169['writer']['addClass']('ck-suggestion-marker--active',_0x59ca73),_0xb65169['writer']['insert'](_0x4507b8,_0x59ca73),_0xb65169['mapper']['bindElementToMarker'](_0x59ca73,_0x1ebc48['markerName']);}_0x1e9d3f||_0x109065||!_0x103186||_0x10a0ae(_0x103186);};}class K extends _0x142398{static get['requires'](){return[_0x43362c];}['init'](){const _0x31f43c=this['editor'],_0x4152d8=_0x31f43c['plugins']['get']('TrackChangesEditing');_0x4152d8['enableCommand']('delete');const _0x563c73=_0x31f43c['commands']['get']('deleteForward');_0x4152d8['enableCommand']('deleteForward',(_0x21ea09,_0x24112b={})=>{const _0x1d0f7f=_0x31f43c['model']['createSelection'](_0x31f43c['model']['document']['selection']);_0x1d0f7f['isCollapsed']&&_0x31f43c['model']['modifySelection'](_0x1d0f7f,{'direction':'forward','unit':_0x24112b['unit']});const _0x479464=_0x1d0f7f['getFirstRange'](),_0x59e222=_0x3590e7['fromRange'](_0x479464);let _0x47225b;_0x21ea09(_0x24112b),_0x47225b='$graveyard'==_0x59e222['root']['rootName']?_0x31f43c['model']['createRange'](_0x479464['start']):_0x31f43c['model']['createRange'](_0x59e222['start'],_0x59e222['end']),_0x59e222['detach'](),_0x31f43c['model']['enqueueChange'](_0x563c73['buffer']['batch'],_0x2c70a0=>{_0x563c73['buffer']['lock'](),_0x2c70a0['setSelection'](_0x2c70a0['createRange'](_0x47225b['end'])),_0x563c73['buffer']['unlock']();});}),_0x31f43c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x31f43c,'merge'),{'priority':'high'}),_0x31f43c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x278765,_0x401168,_0x34ad50)=>{_0x34ad50['options']['showSuggestionHighlights']&&De(_0x31f43c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x278765,_0x401168,_0x34ad50);},{'priority':'high'}),_0x31f43c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x57b32e,_0x20bacf,_0x3926f4)=>{const _0x243a84=_0x3926f4['mapper']['markerNameToElements'](_0x20bacf['markerName']);if(_0x243a84){for(const _0x227789 of _0x243a84)_0x227789['is']('uiElement')&&(_0x3926f4['mapper']['unbindElementFromMarkerName'](_0x227789,_0x20bacf['markerName']),_0x3926f4['writer']['remove'](_0x227789));}},{'priority':'high'});}}class H extends _0x142398{['afterInit'](){const _0x1bd3d1=this['editor'];if(!_0x1bd3d1['plugins']['has']('ListEditing'))return;const _0x1d76b7=_0x1bd3d1['locale'],_0x530202=_0x1bd3d1['plugins']['get']('TrackChangesEditing'),_0x3c0da7=_0x1bd3d1['plugins']['has']('TodoListEditing'),_0x43646d=!!_0x1bd3d1['config']['get']('list.multiBlock');function _0x1549a1(_0x7fb213){return{'type':'format','content':''+o(_0x1d76b7,'*Set\x20format:*\x20%0',_0x7fb213)};}function _0x2e984a(_0x3e9e38){return{'type':'format','content':''+o(_0x1d76b7,'*Remove\x20format:*\x20%0',_0x3e9e38)};}_0x530202['enableDefaultAttributesIntegration']('numberedList'),_0x530202['enableDefaultAttributesIntegration']('bulletedList'),_0x530202['enableDefaultAttributesIntegration']('customNumberedList'),_0x530202['enableDefaultAttributesIntegration']('customBulletedList'),_0x530202['enableDefaultAttributesIntegration']('indentList'),_0x530202['enableDefaultAttributesIntegration']('outdentList'),_0x530202['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x530202['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x530202['registerBlockAttribute']('listItemId'),_0x530202['registerBlockAttribute']('listType'),_0x530202['registerBlockAttribute']('listIndent'),_0x43646d&&(_0x530202['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x530202['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3c0da7&&(_0x530202['enableDefaultAttributesIntegration']('todoList'),_0x530202['enableDefaultAttributesIntegration']('checkTodoList'),_0x530202['registerBlockAttribute']('todoListChecked'),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x2ba2ee=>{const {data:_0x532a18}=_0x2ba2ee;if(_0x532a18&&'todoListChecked'==_0x532a18['key'])return{'type':'format','content':_0x532a18['newValue']?o(_0x1d76b7,'*Check\x20item*'):o(_0x1d76b7,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31cfc8=>{if(_0x31cfc8['batch']['isUndo'])return!0x1;let _0x45f32f=!0x1;const _0x3cc038=_0x530202['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2262e0=>'todoListChecked'===_0x530202['_getAttributeKey'](_0x2262e0));for(const _0x44ddef of _0x3cc038){'todo'!=_0x44ddef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x530202['_findSuggestions'](_0x44ddef['getFirstRange'](),'attribute')['find'](_0x36e6ac=>'listType'===_0x530202['_getAttributeKey'](_0x36e6ac['suggestion']))||(_0x31cfc8['removeMarker'](_0x44ddef['getFirstMarker']()),_0x45f32f=!0x0));}return _0x45f32f;})),_0x530202['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1d76b7,'FORMAT_INDENT'));const _0x2e257d={'type':'format','content':''};_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x320721=>{const {data:_0x3dd191}=_0x320721;if(!_0x3dd191||'listType'!=_0x3dd191['key'])return;let _0x4854a3=_0x320721['head'];for(;_0x4854a3;){if(_0x4854a3['data']&&(('listStyle'==_0x4854a3['data']['key']||'listMarkerStyle'==_0x4854a3['data']['key'])&&(_0x4854a3['data']['newValue']&&'default'!=_0x4854a3['data']['newValue']||'default'!=_0x4854a3['data']['oldValue']&&!_0x3dd191['newValue'])||!_0x43646d&&_0x4854a3['data']['key']==m))return _0x2e257d;_0x4854a3=_0x4854a3['next'];}if(null==_0x3dd191['newValue'])switch(_0x3dd191['oldValue']){case'bulleted':return _0x2e984a(o(_0x1d76b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2e984a(o(_0x1d76b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2e984a(o(_0x1d76b7,'ELEMENT_TODO_LIST'));}switch(_0x3dd191['newValue']){case'bulleted':return _0x1549a1(o(_0x1d76b7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1549a1(o(_0x1d76b7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1549a1(o(_0x1d76b7,'ELEMENT_TODO_LIST'));}}),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x131498=>{const {data:_0x507d32}=_0x131498;if(_0x507d32&&'listIndent'==_0x507d32['key'])return null==_0x507d32['newValue']||null==_0x507d32['oldValue']&&0x0==_0x507d32['newValue']?_0x2e257d:void 0x0;}),_0x530202['descriptionFactory']['registerDescriptionCallback'](_0x12f047=>{if('attribute'!=_0x12f047['type'])return;const {data:_0x4ccef4}=_0x12f047;if(!_0x4ccef4||'listItemId'!=_0x4ccef4['key'])return;const _0xac21b3=Te(_0x12f047);return'newValue'==_0xac21b3?{'type':'format','content':o(_0x1d76b7,'*Merge:*\x20list\x20item')}:'oldValue'==_0xac21b3?{'type':'format','content':o(_0x1d76b7,'*Split:*\x20list\x20item')}:_0x2e257d;}),_0x1bd3d1['model']['document']['registerPostFixer'](_0x36386c=>this['listItemIdFixer'](_0x36386c)),_0x1bd3d1['model']['document']['registerPostFixer'](_0x31de99=>this['noTrackChangesFixer'](_0x31de99)),_0x1bd3d1['model']['document']['on']('change:data',(_0x37bc9a,_0x498e3d)=>{if(_0x498e3d['isUndo']||!_0x498e3d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xdd34f8){if(_0xdd34f8['batch']['isUndo']||!_0xdd34f8['batch']['isLocal'])return!0x1;let _0x1e14b6=!0x1;const _0x2351c3=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d8dd4=>_0x5d8dd4['data']&&'listItemId'==_0x5d8dd4['data']['key'])['filter'](_0x1d81b4=>_0x1d81b4['data']['newValue']&&_0x1d81b4['data']['oldValue']);for(const _0x2e0af7 of _0x2351c3)Te(_0x2e0af7)||(_0xdd34f8['removeMarker'](_0x2e0af7['getFirstMarker']()),_0x1e14b6=!0x0);return _0x1e14b6;}['noTrackChangesFixer'](_0x3c2c20){if(_0x3c2c20['batch']['isUndo']||!_0x3c2c20['batch']['isLocal'])return!0x1;const _0xd6d9d4=this['editor']['plugins']['get']('TrackChangesEditing');if(_0xd6d9d4['trackChangesCommand']['value'])return!0x1;let _0x598977=!0x1;const _0xa0bd8d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x265423=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x29b326=>'attribute'==_0x29b326['type'])['filter'](_0x400896=>_0xa0bd8d['includes'](_0x400896['attributeKey']));if(0x0==_0x265423['length'])return _0x598977;for(const _0x21db74 of _0x265423){const _0x4ae1b3=_0xd6d9d4['_findSuggestions'](_0x21db74['range'],'attribute')['filter'](_0x381b49=>!_0x381b49['meta']['isNextTo'])['map'](_0xaa64ab=>_0xaa64ab['suggestion'])['filter'](_0x44b848=>{const _0x2d62ba=_0xd6d9d4['_getAttributeKey'](_0x44b848);return _0xa0bd8d['includes'](_0x2d62ba);});if(_0x4ae1b3['length']){for(const _0x11cdcd of _0x4ae1b3)_0x3c2c20['removeMarker'](_0x11cdcd['getFirstMarker']());_0x598977=!0x0;}}return _0x598977;}['assureChains'](){const _0x1bf9b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dbf4e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3e2ddd;const _0x1b5fb9=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4ea390=>{if(_0x4ea390['data']['oldRange']||!_0x4ea390['data']['newRange'])return null;if(!_0x4ea390['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x136f26}=_0x1bf9b9['_splitMarkerName'](_0x4ea390['name']);if(!_0x1bf9b9['hasSuggestion'](_0x136f26))return null;const _0x20078c=_0x1bf9b9['getSuggestion'](_0x136f26);return _0x1dbf4e['includes'](_0x20078c['data']['key']);})['map'](_0x2e7a18=>{const {id:_0x43bf8b}=_0x1bf9b9['_splitMarkerName'](_0x2e7a18['name']),_0x27a244=_0x1bf9b9['getSuggestion'](_0x43bf8b);return _0x3e2ddd=_0x27a244['attributes']['groupId'],_0x27a244['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x1b5fb9['size'])return;const _0x1f00e4=_0x1bf9b9['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x494740=>'attribute'==_0x494740['type']&&_0x494740['data']&&_0x1dbf4e['includes'](_0x494740['data']['key'])&&_0x494740['attributes']['groupId']!=_0x3e2ddd)['map'](_0x261174=>({'listItem':_0x261174['getFirstRange']()['start']['nodeAfter'],'groupId':_0x261174['attributes']['groupId']})),_0xcdddd5=new Set();for(const {groupId:_0x2e21c7,listItem:_0x2ed0b8}of _0x1f00e4)_0x1b5fb9['has'](_0x2ed0b8)&&_0xcdddd5['add'](_0x2e21c7);for(const _0x1b7ce3 of _0x1bf9b9['getSuggestions']())_0xcdddd5['has'](_0x1b7ce3['attributes']['groupId'])&&_0x1b7ce3['setAttribute']('groupId',_0x3e2ddd);}['_supportLegacySuggestions'](){const _0x43a158=this['editor'],_0x325f2f=_0x43a158['locale'],_0x21322b=_0x43a158['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21322b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x451d04,_0x38e95c){const _0x1fbbc1=[];for(let _0x1bc5af of _0x451d04)_0x1bc5af['start']['nodeAfter']===_0x1bc5af['end']['parent']&&(_0x1bc5af=_0x43a158['model']['createRange'](_0x43a158['model']['createPositionAt'](_0x1bc5af['start']['nodeAfter'],0x0))),_0x1fbbc1['push'](_0x1bc5af);_0x43a158['model']['change'](_0x1fe4d9=>{const _0x58662f=_0x43a158['model']['document']['selection'],_0x33d09f=Array['from'](_0x58662f['getRanges']())['map'](_0x3bab4b=>_0x3590e7['fromRange'](_0x3bab4b));_0x1fe4d9['setSelection'](_0x1fbbc1),_0x43a158['commands']['get'](_0x38e95c['commandName'])['refresh'](),_0x38e95c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x43a158['execute'](_0x38e95c['commandName'],..._0x38e95c['commandParams']),_0x1fe4d9['setSelection'](_0x33d09f);for(const _0x2470ce of _0x33d09f)_0x2470ce['detach']();});}),_0x21322b['descriptionFactory']['registerElementLabel'](function(_0x323985){const _0x4c5bd0=!_0x43a158['model']['schema']['isObject'](_0x323985),_0x758182=_0x323985['previousSibling'],_0x557e4c=_0x323985['nextSibling'],_0x592f2b=_0x323985['getAttribute']('listItemId'),_0x5bd364=!_0x758182||_0x758182['getAttribute']('listItemId')!==_0x592f2b,_0x1cadba=!_0x557e4c||_0x557e4c['getAttribute']('listItemId')!==_0x592f2b;return _0x4c5bd0&&Boolean(_0x592f2b)&&_0x5bd364&&_0x1cadba;},_0xeda896=>o(_0x325f2f,'ELEMENT_LIST_ITEM',_0xeda896));}['_registerLegacyDescription'](){const _0x3cf472=this['editor'],_0x2fe11c=_0x3cf472['locale'];function _0x44bef5(_0x2a7324){const _0x3dbcab=_0x3cf472['commands']['get']('bulletedList')['value'],_0x2de749=_0x3cf472['commands']['get']('numberedList')['value'];return'numberedList'===_0x2a7324?_0x3dbcab:_0x2de749;}_0x3cf472['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5565a9){if('formatBlock'!=_0x5565a9['type'])return;const {data:_0x3d763a}=_0x5565a9;if(!_0x3d763a)return;let _0x341940,_0x2a00a2,_0x237a6e,_0xe02947;switch(_0x3d763a['commandName']){case'bulletedList':_0x237a6e=_0x3d763a['commandParams'][0x0]['forceValue'],_0xe02947=_0x44bef5(_0x3d763a['commandName']),_0x341940=_0x237a6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe02947&&_0x3cf472['config']['get']('list.multiBlock')||(_0x341940='*Change\x20to:*\x20%0'),_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x237a6e=_0x3d763a['commandParams'][0x0]['forceValue'],_0xe02947=_0x44bef5(_0x3d763a['commandName']),_0x341940=_0x237a6e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xe02947&&_0x3cf472['config']['get']('list.multiBlock')||(_0x341940='*Change\x20to:*\x20%0'),_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x341940='*Indent:*\x20%0',_0x2a00a2={'type':'format','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x341940=function(_0x372b8f){const _0x21d8f7=_0x372b8f['getFirstRange']();let _0x34f747=_0x21d8f7['start']['nodeAfter'];for(;_0x34f747&&_0x21d8f7['containsItem'](_0x34f747);){if(_0x34f747['getAttribute']('listIndent')>0x0)return!0x1;_0x34f747=_0x34f747['nextSibling'];}return!0x0;}(_0x5565a9)?o(_0x2fe11c,'*Format:*\x20remove\x20from\x20%0',o(_0x2fe11c,function(_0x359fbc){return'ELEMENT_'+_0x359fbc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5565a9))):o(_0x2fe11c,'*Outdent:*\x20%0',o(_0x2fe11c,'ELEMENT_LIST_ITEM')),_0x2a00a2={'type':'format','content':_0x341940};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x3d763a['multipleBlocks']&&(_0x341940='*Merge:*\x20%0',_0x2a00a2={'type':'deletion','content':o(_0x2fe11c,_0x341940,o(_0x2fe11c,'ELEMENT_LIST_ITEM'))});}return _0x2a00a2;});}}function Te(_0x284c5c){let _0x18cc74=_0x284c5c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x18cc74;){const _0x7b74d0=_0x18cc74['getAttribute']('listItemId');if(!_0x7b74d0)return!0x1;if(_0x7b74d0==_0x284c5c['data']['newValue'])return'newValue';if(_0x7b74d0==_0x284c5c['data']['oldValue'])return'oldValue';_0x18cc74=_0x18cc74['previousSibling'];}return!0x1;}class q extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5106f6=this['editor']['config']['get']('list.properties'),_0x220dbb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5106f6['styles']&&(_0x220dbb['enableDefaultAttributesIntegration']('listStyle'),_0x220dbb['registerBlockAttribute']('listStyle')),_0x5106f6['reversed']&&(_0x220dbb['enableDefaultAttributesIntegration']('listReversed'),_0x220dbb['registerBlockAttribute']('listReversed')),_0x5106f6['startIndex']&&(_0x220dbb['enableDefaultAttributesIntegration']('listStart'),_0x220dbb['registerBlockAttribute']('listStart'));const _0x5d0b96={'type':'format','content':''};_0x220dbb['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1dc2fb=this['editor']['locale'];_0x220dbb['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1dc2fb,'FORMAT_LIST_REVERSED')),_0x220dbb['descriptionFactory']['registerDescriptionCallback'](_0x78ccf8=>{const {data:_0x2469b0}=_0x78ccf8;if(_0x2469b0&&'listReversed'==_0x2469b0['key'])return null==_0x2469b0['newValue']||0x0==_0x2469b0['newValue']&&null==_0x2469b0['oldValue']?_0x5d0b96:void 0x0;}),_0x220dbb['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1dc2fb,'FORMAT_LIST_START')),_0x220dbb['descriptionFactory']['registerDescriptionCallback'](_0x56aed6=>{const {data:_0x5ab32f}=_0x56aed6;if(_0x5ab32f&&'listStart'==_0x5ab32f['key'])return null==_0x5ab32f['newValue']||0x1==_0x5ab32f['newValue']&&null==_0x5ab32f['oldValue']?_0x5d0b96:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x598bef=>{if(_0x598bef['batch']['isUndo'])return!0x1;let _0x1c4546=!0x1;const _0x23cdf9=_0x220dbb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f01fd=>{const _0x56061a=_0x220dbb['_getAttributeKey'](_0x5f01fd);return'listStart'==_0x56061a||'listReversed'==_0x56061a;});for(const _0x449631 of _0x23cdf9){const _0x22e5b1=_0x449631['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x22e5b1||'customNumbered'==_0x22e5b1)continue;_0x220dbb['_findSuggestions'](_0x449631['getFirstRange'](),'attribute')['find'](_0x3a9d74=>'listType'==_0x220dbb['_getAttributeKey'](_0x3a9d74['suggestion']))||(_0x598bef['removeMarker'](_0x449631['getFirstMarker']()),_0x1c4546=!0x0);}return _0x1c4546;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x37c3ad){const _0x31fb01=this['editor']['locale'],{data:_0x1d2d8a}=_0x37c3ad,_0x8e6bd9={'type':'format','content':''};if(!_0x1d2d8a||'listStyle'!=_0x1d2d8a['key'])return;if(!_0x1d2d8a['oldValue'])return'default'==_0x1d2d8a['newValue']?_0x8e6bd9:{'type':'format','content':''+o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['newValue'])))};if(!_0x1d2d8a['newValue']){if('default'==_0x1d2d8a['oldValue'])return _0x8e6bd9;let _0x31e13f=_0x37c3ad['head'];for(;_0x31e13f;){if(_0x31e13f['data']&&'listType'==_0x31e13f['data']['key']&&_0x31e13f['data']['newValue'])return _0x8e6bd9;_0x31e13f=_0x31e13f['next'];}return{'type':'format','content':''+o(_0x31fb01,'*Remove\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['oldValue'])))};}if('default'!=_0x1d2d8a['newValue'])return{'type':'format','content':''+o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,this['_getTranslationKeyForListStyle'](_0x1d2d8a['newValue'])))};let _0x56e995=_0x37c3ad['head'];for(;_0x56e995;){if(_0x56e995['data']&&'listType'==_0x56e995['data']['key']&&_0x56e995['data']['newValue']&&_0x56e995['data']['oldValue'])return _0x8e6bd9;_0x56e995=_0x56e995['next'];}return{'type':'format','content':o(_0x31fb01,'*Set\x20format:*\x20%0',o(_0x31fb01,'ELEMENT_'+_0x37c3ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x544461=this['editor'],_0x400106=_0x544461['locale'];_0x544461['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56ab5a=>{if('formatBlock'!=_0x56ab5a['type'])return;const {data:_0x240d06}=_0x56ab5a;if(!_0x240d06)return;let _0x3211ef,_0x133d7f;switch(_0x240d06['commandName']){case'listStyle':_0x3211ef='*Change\x20to:*\x20%0',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef,o(_0x400106,this['_getTranslationKeyForListStyle'](_0x240d06['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3211ef=_0x240d06['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef)};break;case'listStart':_0x3211ef='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x133d7f={'type':'format','content':o(_0x400106,_0x3211ef,_0x240d06['commandParams'][0x0]['startIndex'])};}return _0x133d7f;});}['_getTranslationKeyForListStyle'](_0x1578a5){return'ELEMENT_'+function(_0x9ff93d){if(Se['includes'](_0x9ff93d))return'bulleted';if(_e['includes'](_0x9ff93d))return'numbered';return null;}(_0x1578a5)['toUpperCase']()+'_LIST_'+_0x1578a5['toUpperCase']()['replace'](/-/g,'_');}}const Se=['disc','circle','square'],_e=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class z extends _0x142398{['afterInit'](){const _0x1e0c93=this['editor'];_0x1e0c93['commands']['get']('emoji')&&_0x1e0c93['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class W extends _0x142398{static get['requires'](){return[_0x318fb5];}['init'](){const _0x4cc3ec=this['editor'],_0xf6f64a=_0x4cc3ec['plugins']['get']('TrackChangesEditing'),_0x53b336=_0x4cc3ec['commands']['get']('enter');_0xf6f64a['enableCommand']('enter',()=>{_0x4cc3ec['model']['change'](_0x5ba9ab=>{const _0x14c90f=_0x4cc3ec['model']['document']['selection'],_0xc4aa90=_0x14c90f['getFirstPosition'](),_0x38d9f2=_0x3590e7['fromRange'](_0x14c90f['getFirstRange']());if(_0x53b336['enterBlock'](_0x5ba9ab)){const _0x32768c=_0x4cc3ec['model']['createPositionAt'](_0xc4aa90['parent']['nextSibling'],0x0),_0x1612ec=_0x5ba9ab['createRange'](_0xc4aa90,_0x32768c);_0xf6f64a['markInsertion'](_0x1612ec);}else _0x5ba9ab['setSelection'](_0x5ba9ab['createRange'](_0x38d9f2['end']));_0x38d9f2['detach'](),_0x53b336['fire']('afterExecute',{'writer':_0x5ba9ab});});}),_0x4cc3ec['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4cc3ec,'split'),{'priority':'high'}),_0x4cc3ec['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5f017b,_0x316a5e,_0x2a2f4c)=>{const _0x413e94=_0x2a2f4c['mapper']['markerNameToElements'](_0x316a5e['markerName']);if(_0x413e94){for(const _0x31d357 of _0x413e94)_0x31d357['hasClass']('ck-suggestion-marker-split')&&(_0x2a2f4c['mapper']['unbindElementFromMarkerName'](_0x31d357,_0x316a5e['markerName']),_0x2a2f4c['writer']['remove'](_0x31d357));}},{'priority':'high'}),_0x4cc3ec['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5adf57,_0x38cd01,_0x274e25)=>{_0x274e25['options']['showSuggestionHighlights']&&De(_0x4cc3ec,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5adf57,_0x38cd01,_0x274e25);},{'priority':'high'});}}class Q extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4e4d38=this['editor']['plugins']['get']('TrackChangesEditing');_0x4e4d38['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4e4d38['enableCommand']('findNext'),_0x4e4d38['enableCommand']('findPrevious'),_0x4e4d38['enableCommand']('replace'),_0x4e4d38['enableCommand']('replaceAll');}['handleFindCommand'](_0x1d72f4,_0x1efb1d,_0x4893a7={}){const _0x80d449=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x1d72f4(_0x175cd3=>{let _0xca9e0f=('string'==typeof _0x1efb1d?_0x80d449['findByTextCallback'](_0x1efb1d,_0x4893a7):_0x1efb1d)(_0x175cd3);Array['isArray'](_0xca9e0f)&&(_0xca9e0f={'results':_0xca9e0f,'searchText':'string'==typeof _0x1efb1d?_0x1efb1d:''});const _0x3a9055=_0xca9e0f['results']['filter'](_0x46f2db=>!0x1===this['_isInDeletionRange'](_0x46f2db,_0x175cd3['item']));return{..._0xca9e0f,'results':_0x3a9055};},_0x4893a7);}['_isInDeletionRange'](_0x254d19,_0x252ae2){const _0x244f8f=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x252ae2,_0x254d19['start']),this['editor']['model']['createPositionAt'](_0x252ae2,_0x254d19['end']));for(const _0x1384a3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x244f8f['getIntersection'](_0x1384a3['getRange']()))return!0x0;return!0x1;}}const eo=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class X extends _0x142398{['afterInit'](){const _0x2379da=this['editor']['locale'],_0x49e777=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2c48a,commandName:_0x1f48ed}of eo)this['editor']['plugins']['has'](_0x2c48a)&&(_0x49e777['enableDefaultAttributesIntegration'](_0x1f48ed),_0x49e777['registerInlineAttribute'](_0x1f48ed));_0x49e777['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2379da,'FORMAT_FONT_SIZE')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2379da,'FORMAT_FONT_FAMILY')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2379da,'FORMAT_FONT_COLOR')),_0x49e777['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2379da,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59180a=this['editor'],_0x37f8e4=_0x59180a['locale'];_0x59180a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a1619=>{const _0x29b2f7=_0x37f8e4['t'];if('formatInline'!=_0x4a1619['type'])return;const {data:_0x203766}=_0x4a1619;if(null!=_0x203766){if('fontSize'==_0x203766['commandName']){const _0x57edb6=_0x203766['commandParams'][0x0]['value'];if(_0x57edb6){const _0x1231be=_0x29b2f7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1056c6=>_0x1056c6['model']==_0x57edb6)['title'])['toLowerCase']();return{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20size:*\x20%0',_0x1231be)};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x203766['commandName']){const _0x3b1865=_0x203766['commandParams'][0x0]['value'];return _0x3b1865?{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20family:*\x20%0',_0x3b1865)}:{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20family*')};}if('fontColor'==_0x203766['commandName']){const _0x2a70f3=_0x203766['commandParams'][0x0]['value'];if(_0x2a70f3){const _0x2d9fd0=_0x444e09(this['editor']['config']['get']('fontColor.colors'))['find'](_0xa12a2c=>_0xa12a2c['model']==_0x2a70f3);let _0x28d5e6=_0x2a70f3,_0x3a9b71='';return _0x2d9fd0&&(_0x28d5e6=_0x2d9fd0['label'],_0x3a9b71=_0x29b2f7(_0x28d5e6)['toLowerCase']()),{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20color:*\x20%0',_0x3a9b71)['trim'](),'color':{'value':_0x2a70f3,'title':_0x3a9b71||_0x28d5e6}};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x203766['commandName']){const _0x16fd5f=_0x203766['commandParams'][0x0]['value'];if(_0x16fd5f){const _0x25449a=_0x444e09(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1f4d1a=>_0x1f4d1a['model']==_0x16fd5f);let _0x3bb050=_0x16fd5f,_0xd480c='';return _0x25449a&&(_0x3bb050=_0x25449a['label'],_0xd480c=_0x29b2f7(_0x3bb050)['toLowerCase']()),{'type':'format','content':o(_0x37f8e4,'*Set\x20font\x20background\x20color:*\x20%0',_0xd480c)['trim'](),'color':{'value':_0x16fd5f,'title':_0xd480c||_0x3bb050}};}return{'type':'format','content':o(_0x37f8e4,'*Reset\x20font\x20background\x20color*')};}}});}}class Y extends _0x142398{['afterInit'](){const _0x54bf6c=this['editor'],_0x44f0c8=_0x54bf6c['plugins']['get']('TrackChangesEditing'),_0x18f092=_0x54bf6c['commands']['get']('copyFormat'),_0x39162f=_0x54bf6c['commands']['get']('pasteFormat');_0x18f092&&_0x39162f&&(_0x44f0c8['enableDefaultAttributesIntegration']('pasteFormat'),_0x44f0c8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2f7b97=this['editor'],_0x4096d8=_0x2f7b97['locale'];_0x2f7b97['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3cdd2a=>{if('formatBlock'!=_0x3cdd2a['type']&&'formatInline'!=_0x3cdd2a['type'])return;const {data:_0x24e10a}=_0x3cdd2a;if(_0x24e10a&&'pasteFormat'===_0x24e10a['commandName']){const _0x47283b=[],_0x51aea6=_0x24e10a['commandParams'][0x0];for(const [_0x4db39f,_0x5686a6]of Object['entries'](_0x51aea6))_0x47283b['push'](ro(_0x2f7b97,_0x4db39f,_0x5686a6));return _0x47283b['length']?{'type':'format','content':o(_0x4096d8,'*Set\x20format\x20to:*\x20%0',_0x47283b['join'](',\x20'))}:{'type':'format','content':o(_0x4096d8,'*Remove\x20all\x20formatting*')};}});}}function ro(_0x23c1e4,_0x222416,_0x469125){const _0x541caf=_0x23c1e4['locale']['t'],_0x16dd05=_0x222416['split'](/(?=[A-Z])/)['join']('\x20'),_0xdc5a01=_0x541caf(_0x16dd05['charAt'](0x0)['toUpperCase']()+_0x16dd05['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x469125)return _0xdc5a01;if('fontColor'===_0x222416||'fontBackgroundColor'===_0x222416){const _0x301c1c=_0x444e09(_0x23c1e4['config']['get']('fontColor.colors'))['find'](_0x24e447=>_0x24e447['model']==_0x469125);return _0xdc5a01+'\x20('+(_0x301c1c?_0x541caf(_0x301c1c['label'])['toLowerCase']():_0x469125)+')';}if('fontSize'===_0x222416&&isNaN(parseFloat(_0x469125))){const _0x238b5d=_0x23c1e4['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x23c1e4['config']['get']('fontSize.options'))['find'](_0x4f08ef=>_0x4f08ef['model']==_0x469125);return _0xdc5a01+'\x20('+(_0x238b5d?_0x541caf(_0x238b5d['title'])['toLowerCase']():_0x469125)+')';}return _0xdc5a01+'\x20('+_0x469125+')';}class Z extends _0x142398{['_headingOptions'];['afterInit'](){const _0x5b47bf=this['editor'];if(!_0x5b47bf['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b47bf['config']['get']('heading.options');const _0x2de2f=_0x5b47bf['locale'],_0x21201d=_0x5b47bf['plugins']['get']('TrackChangesEditing');_0x21201d['enableDefaultAttributesIntegration']('heading');for(const _0x1ff4f4 of this['_headingOptions'])'paragraph'!=_0x1ff4f4['model']&&_0x21201d['descriptionFactory']['registerElementLabel'](_0x1ff4f4['model'],_0x560406=>{const _0x421400=this['_getHeadingLevel'](_0x1ff4f4['model']);return null!==_0x421400?_0x5f0a89(_0x560406,_0x421400):_0x1e5fe3(_0x560406,_0x1ff4f4['title']);});function _0x5f0a89(_0x2d2514,_0x5d5d3f){return o(_0x2de2f,'ELEMENT_HEADING',[_0x2d2514,_0x5d5d3f]);}function _0x1e5fe3(_0xbf3e00,_0x172c3a){return o(_0x2de2f,'ELEMENT_HEADING_CUSTOM',[_0xbf3e00,_0x172c3a]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b06bd=this['editor'],_0x2c2d60=_0x3b06bd['locale'];function _0x3b11e1(_0x2342ca,_0x580c9e){return o(_0x2c2d60,'ELEMENT_HEADING_CUSTOM',[_0x2342ca,_0x580c9e]);}_0x3b06bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8953e4=>{if('formatBlock'!=_0x8953e4['type'])return;const {data:_0x3341cb}=_0x8953e4;if(_0x3341cb&&'heading'==_0x3341cb['commandName']){const _0x1c9978=_0x3341cb['commandParams'][0x0]['value'],_0x57e800=this['_getHeadingLevel'](_0x1c9978);if(null!==_0x57e800)return{'type':'format','content':o(_0x2c2d60,'*Change\x20to:*\x20%0',(_0x1f7ae3=0x1,_0x2c2a26=_0x57e800,o(_0x2c2d60,'ELEMENT_HEADING',[_0x1f7ae3,_0x2c2a26])))};const _0x5ab2e8=this['_headingOptions']['find'](_0x16bf41=>_0x16bf41['model']===_0x1c9978)['title'];return{'type':'format','content':o(_0x2c2d60,'*Change\x20to:*\x20%0',_0x3b11e1(0x1,_0x5ab2e8))};}var _0x1f7ae3,_0x2c2a26;});}['_getHeadingLevel'](_0x153d64){const _0x53c7db=_0x153d64['match'](/^heading(\d+)/);if(_0x53c7db)return _0x53c7db[0x1];const _0x354ce0=this['_headingOptions']?.['find'](_0x2ad900=>_0x2ad900['model']==_0x153d64);if(_0x354ce0&&_0x354ce0['view']){const _0x1d2581=_0x354ce0['view'],_0x1b1003=(_0x1d2581['name']??_0x1d2581)['match'](/^h(\d+)/);if(_0x1b1003)return _0x1b1003[0x1];}return null;}}class tt extends _0x142398{['afterInit'](){const _0x227b02=this['editor'];if(!_0x227b02['plugins']['has']('HighlightEditing'))return;const _0x5722f0=_0x227b02['plugins']['get']('TrackChangesEditing'),_0x57d70c=_0x227b02['locale'];_0x5722f0['enableDefaultAttributesIntegration']('highlight'),_0x5722f0['registerInlineAttribute']('highlight'),_0x5722f0['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x57d70c,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50a0b7=this['editor'],_0x489c4=_0x50a0b7['locale'];_0x50a0b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x401d9c=>{if('formatInline'!=_0x401d9c['type'])return;const {data:_0x31cfa4}=_0x401d9c;if(_0x31cfa4&&'highlight'==_0x31cfa4['commandName']){const _0x5368f3=_0x489c4['t'],_0x24ee6c=_0x31cfa4['commandParams'][0x0]['value'];if(_0x24ee6c){const _0x3ca615=_0x50a0b7['config']['get']('highlight.options')['find'](_0x50091b=>_0x50091b['model']==_0x24ee6c),_0x2a0f05=_0x5368f3(_0x3ca615['title'])['toLowerCase']();return{'type':'format','content':o(_0x489c4,'*Set\x20highlight:*\x20%0',_0x2a0f05),'color':{'value':_0x3ca615['color'],'title':_0x3ca615['title']}};}return{'type':'format','content':o(_0x489c4,'*Remove\x20highlight*',o(_0x489c4,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x142398{['afterInit'](){const _0x598a7b=this['editor'];if(!_0x598a7b['plugins']['has']('HorizontalLineEditing'))return;_0x598a7b['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xb2b192=_0x598a7b['plugins']['get']('TrackChangesEditing'),_0x55da0f=_0x598a7b['locale'];_0xb2b192['descriptionFactory']['registerElementLabel']('horizontalLine',_0x18ac18=>o(_0x55da0f,'ELEMENT_HORIZONTAL_LINE',_0x18ac18)),_0x598a7b['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x494bea,{writer:_0xf12679,options:_0xcb5ca7})=>{if(!_0xcb5ca7['showSuggestionHighlights'])return null;const _0x130f2a=_0xf12679['createContainerElement']('div'),_0x959ff7=_0xf12679['createEmptyElement']('hr');return _0xf12679['addClass']('ck-horizontal-line',_0x130f2a),_0xf12679['insert'](_0xf12679['createPositionAt'](_0x130f2a,0x0),_0x959ff7),_0x130f2a;},'converterPriority':'high'});}}class nt extends _0x142398{['afterInit'](){const _0x3d04cd=this['editor'];if(!_0x3d04cd['plugins']['has']('HtmlEmbed'))return;const _0x296a70=_0x3d04cd['plugins']['get']('TrackChangesEditing'),_0x451d3e=_0x3d04cd['locale'];_0x296a70['descriptionFactory']['registerElementLabel']('rawHtml',_0x4a0891=>o(_0x451d3e,'ELEMENT_HTML_EMBED',_0x4a0891)),_0x296a70['enableDefaultAttributesIntegration']('htmlEmbed'),_0x296a70['registerBlockAttribute']('value'),_0x296a70['descriptionFactory']['registerDescriptionCallback'](_0x430880=>{if('attribute'!=_0x430880['type'])return;const {data:_0x502d48}=_0x430880;if(_0x502d48&&'value'==_0x502d48['key']&&_0x430880['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x487d73=o(_0x451d3e,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x451d3e,'*Change\x20%0\x20content*',_0x487d73)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3930c2=this['editor'],_0x3c5f5c=_0x3930c2['locale'];_0x3930c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a517f=>{if('formatBlock'!=_0x5a517f['type'])return;const {data:_0x49efd1}=_0x5a517f;if(_0x49efd1&&'htmlEmbed'==_0x49efd1['commandName']){const _0x1e90bd=o(_0x3c5f5c,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3c5f5c,'*Change\x20%0\x20content*',_0x1e90bd)};}});}}class et extends _0x142398{['afterInit'](){const _0x590ebf=this['editor'];if(!_0x590ebf['plugins']['has']('ImageEditing'))return;const _0x4174bb=_0x590ebf['plugins']['get']('TrackChangesEditing'),_0xf036b6=_0x590ebf['plugins']['get']('ImageUtils'),_0xade5ad=_0x590ebf['locale'];_0x4174bb['enableCommand']('insertImage'),_0x4174bb['descriptionFactory']['registerElementLabel']('imageBlock',_0x45f3e9=>o(_0xade5ad,'ELEMENT_IMAGE',_0x45f3e9)),_0x4174bb['descriptionFactory']['registerElementLabel']('imageInline',_0xdc91dc=>o(_0xade5ad,'ELEMENT_INLINE_IMAGE',_0xdc91dc)),_0x4174bb['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xade5ad,'ELEMENT_CAPTION')),_0x590ebf['plugins']['has']('ImageUploadEditing')&&_0x4174bb['enableCommand']('uploadImage'),_0x590ebf['plugins']['has']('ImageBlockEditing')&&_0x590ebf['plugins']['has']('ImageInlineEditing')&&(_0x4174bb['enableCommand']('imageTypeInline',(_0x2b997b,_0x568669)=>{const _0x4b4722=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']);_0x590ebf['model']['change'](()=>{_0x4174bb['markBlockFormat'](_0x4b4722,{'commandName':'imageTypeInline','commandParams':[_0x568669]},[],'convertBlockImageToInline');});}),_0x4174bb['enableCommand']('imageTypeBlock',(_0x348202,_0x20f5aa)=>{_0x590ebf['model']['change'](_0x45437d=>{let _0x273be5=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x4272be=_0x45437d['createRangeOn'](_0x273be5);const _0x332aa1=_0x22b32f['fromPosition'](_0x4272be['start'],'toPrevious'),_0x19ccbf=_0x22b32f['fromPosition'](_0x4272be['end'],'toNext');_0x4174bb['forceDefaultExecution'](()=>_0x348202(_0x20f5aa)),_0x273be5=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x4272be=_0x45437d['createRangeOn'](_0x273be5);const _0x5def8c=_0x45437d['createRange'](_0x332aa1,_0x19ccbf);_0x332aa1['detach'](),_0x19ccbf['detach'](),_0x4174bb['markBlockFormat'](_0x273be5,{'commandName':'imageTypeInline','commandParams':[_0x20f5aa]},[],'convertInlineImageToBlock'),_0x5def8c['start']['isBefore'](_0x4272be['start'])&&_0x4174bb['markInsertion'](_0x45437d['createRange'](_0x5def8c['start'],_0x4272be['start']),'convertInlineImageToBlock'),_0x4272be['end']['isBefore'](_0x5def8c['end'])&&_0x4174bb['markInsertion'](_0x45437d['createRange'](_0x4272be['end'],_0x5def8c['end']),'convertInlineImageToBlock');});}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4174bb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1ce5a0])=>{const _0x4cfbb9=_0x4174bb['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x52223a=_0x1ce5a0['start'],_0x12719c=_0x1ce5a0['end'];const _0x24523a=_0x590ebf['model']['schema']['getNearestSelectionRange'](_0x52223a,'backward'),_0x5b2b83=_0x590ebf['model']['schema']['getNearestSelectionRange'](_0x12719c,'forward');_0x24523a['isCollapsed']&&(_0x52223a=_0x24523a['start']),_0x5b2b83['isCollapsed']&&(_0x12719c=_0x5b2b83['end']),_0x4cfbb9([_0x590ebf['model']['createRange'](_0x52223a,_0x12719c)]);}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1b96e6),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1b96e6)),_0x590ebf['plugins']['has']('ImageCaptionEditing')&&(_0x4174bb['enableCommand']('toggleImageCaption',(_0x877867,_0x3f8284)=>{const _0x34f341=_0x590ebf['plugins']['get']('ImageCaptionUtils');let _0x480f2b=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x3f3d7d=_0x34f341['getCaptionFromImageModelElement'](_0x480f2b);_0x590ebf['model']['change'](()=>{if(_0x3f3d7d)return void _0x4174bb['markDeletion'](_0x590ebf['model']['createRangeOn'](_0x3f3d7d));const _0x45bbb4=_0xf036b6['isBlockImage'](_0x480f2b);_0x877867(_0x3f8284),_0x480f2b=_0xf036b6['getClosestSelectedImageElement'](_0x590ebf['model']['document']['selection']),_0x3f3d7d=_0x34f341['getCaptionFromImageModelElement'](_0x480f2b),_0x4174bb['markInsertion'](_0x590ebf['model']['createRangeOn'](_0x3f3d7d),_0x45bbb4?null:'imageCaption');});}),_0x4174bb['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1b96e6));const _0x760646=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x104db8(_0x16a545,_0x4f75d0){const _0x593bc1=_0x760646['findIndex'](({type:_0x3c4f2d,subType:_0x5bd914})=>_0x16a545['type']==_0x3c4f2d&&_0x16a545['subType']==_0x5bd914),_0x38c125=_0x760646['findIndex'](({type:_0x4303aa,subType:_0x8dc2d0})=>_0x4f75d0['type']==_0x4303aa&&_0x4f75d0['subType']==_0x8dc2d0);if(_0x593bc1<0x0||_0x38c125<0x0)return!0x1;const _0x1a2019=_0x16a545['getFirstRange'](),_0x259a1d=_0x4f75d0['getFirstRange']();if((0x0==_0x593bc1||0x1==_0x593bc1)&&0x2==_0x38c125&&_0x1a2019['isIntersecting'](_0x259a1d))return!0x0;if(0x2==_0x593bc1&&0x3==_0x38c125){const _0x2a2550=_0x4174bb['_findSuggestions'](_0x1a2019,'insertion')['filter'](({suggestion:_0x5f3bfc,meta:_0x30339d})=>_0x30339d['isOwn']&&'convertInlineImageToBlock'==_0x5f3bfc['subType']);if(_0x2a2550['length']>0x1&&_0x259a1d['end']['isEqual'](_0x1a2019['start']))return!0x0;if(0x1==_0x2a2550['length']&&(_0x1a2019['start']['isEqual'](_0x259a1d['end'])||_0x1a2019['end']['isEqual'](_0x259a1d['start'])))return!0x0;}if(0x3==_0x593bc1&&0x3==_0x38c125&&_0x1a2019['start']['isBefore'](_0x259a1d['start'])){const _0x737af5=_0x1a2019['end']['nodeAfter'],_0x320265=_0x259a1d['start']['nodeBefore'];return _0xf036b6['isBlockImage'](_0x737af5)&&_0x737af5===_0x320265;}return!0x1;}function _0x1b96e6(_0x7fe373,_0x1abeff){return _0x104db8(_0x7fe373,_0x1abeff)?[_0x7fe373,_0x1abeff]:_0x104db8(_0x1abeff,_0x7fe373)?[_0x1abeff,_0x7fe373]:null;}_0x590ebf['plugins']['has']('ImageResize')&&(_0x4174bb['enableDefaultAttributesIntegration']('resizeImage'),_0x4174bb['registerBlockAttribute']('resizedWidth'),_0x4174bb['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xade5ad,'FORMAT_IMAGE_SIZE'))),_0x590ebf['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4174bb['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4174bb['registerBlockAttribute']('alt')),_0x590ebf['plugins']['has']('PictureEditing')&&(_0x4174bb['registerBlockAttribute']('sources'),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x33e122=>{if('attribute'!=_0x33e122['type'])return;const {data:_0x3203eb}=_0x33e122;return _0x3203eb&&'sources'==_0x3203eb['key']?{'type':'format','content':''}:void 0x0;})),_0x590ebf['plugins']['has']('ImageSizeAttributes')&&(_0x4174bb['registerBlockAttribute']('width'),_0x4174bb['registerBlockAttribute']('height'),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x54e650=>{if('attribute'!=_0x54e650['type'])return;const {data:_0x253777}=_0x54e650;return!_0x253777||'width'!=_0x253777['key']&&'height'!=_0x253777['key']?void 0x0:{'type':'format','content':''};})),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x3c8a2a=>{if(!!_0x760646['find'](({type:_0x58db74,subType:_0x45910c})=>_0x3c8a2a['type']==_0x58db74&&_0x3c8a2a['subType']==_0x45910c))return _0x3c8a2a['previous']?{}:void 0x0;}),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x465b4f=>{if('insertion'==_0x465b4f['type']||'deletion'==_0x465b4f['type']){const _0x1cc383=_0x465b4f['getContainedElement']();if(_0x1cc383&&_0x1cc383['is']('element','caption'))return{'type':'insertion'==_0x465b4f['type']?'addObject':'removeObject','element':_0x1cc383,'quantity':0x1};}}),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x29d658=>'formatBlock'==_0x29d658['type']&&'convertInlineImageToBlock'==_0x29d658['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x29d658['type']&&'convertBlockImageToInline'==_0x29d658['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4174bb['descriptionFactory']['registerDescriptionCallback'](_0x5362d5=>{if('attribute'!=_0x5362d5['type'])return;const {data:_0x165ab5}=_0x5362d5;if(!_0x165ab5||'alt'!=_0x165ab5['key'])return;const _0x9c73d8=_0x165ab5['newValue'];return _0x9c73d8?{'type':'format','content':o(_0xade5ad,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x9c73d8+'\x22')}:{'type':'format','content':o(_0xade5ad,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58b49b=this['editor'],_0x257e57=_0x58b49b['locale'];_0x58b49b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e4239=>{if('formatBlock'!=_0x3e4239['type']&&'formatInline'!=_0x3e4239['type'])return;const {data:_0x236775}=_0x3e4239;if(_0x236775){if('imageTextAlternative'==_0x236775['commandName']){const _0x1abe6e=_0x236775['commandParams'][0x0]['newValue'];return _0x1abe6e?{'type':'format','content':o(_0x257e57,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1abe6e+'\x22')}:{'type':'format','content':o(_0x257e57,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x236775['commandName']){const _0x50dd22=_0x236775['commandParams'][0x0]['width'];return _0x50dd22?{'type':'format','content':o(_0x257e57,'*Set\x20image\x20width:*\x20%0',_0x50dd22)}:{'type':'format','content':o(_0x257e57,'*Reset\x20image\x20width*')};}}});}}class st extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3c99bc=this['editor']['locale'],_0x2e0856=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e0856['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2e0856['registerBlockAttribute']('src'),_0x2e0856['descriptionFactory']['registerDescriptionCallback'](_0x52bc77=>{if('attribute'!=_0x52bc77['type'])return;const {data:_0x4869ca}=_0x52bc77;return _0x4869ca&&'src'==_0x4869ca['key']?_0x4869ca['newValue']&&_0x4869ca['oldValue']?{'type':'format','content':o(_0x3c99bc,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d302a=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d302a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d302a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d302a['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d302a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x155650=this['editor'],_0x26ee12=_0x155650['locale'];_0x155650['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc5803c=>{if('formatBlock'!=_0xc5803c['type']&&'formatInline'!=_0xc5803c['type'])return;const {data:_0x4df723}=_0xc5803c;if(!_0x4df723||'replaceImageSource'!=_0x4df723['commandName'])return;return{'type':'format','content':o(_0x26ee12,'*Format:*\x20replace\x20image\x20URL')};});}}class ot extends _0x142398{['afterInit'](){const _0x295646=this['editor'];if(!_0x295646['plugins']['has']('ImageStyleEditing'))return;const _0x3a7ad1=_0x295646['plugins']['get']('TrackChangesEditing'),_0x5bc0d5=_0x295646['plugins']['get']('ImageUtils'),_0x28116c={};_0x3a7ad1['enableCommand']('imageStyle',(_0xa1cb99,_0x25ab65)=>{const _0x370d78=_0x295646['plugins']['get']('Users')['me'],_0x31a8d6=_0x295646['commands']['get']('imageStyle');let _0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),_0x482052=_0x295646['model']['createRangeOn'](_0x26e09c),_0xfeb653=_0x31a8d6['value'];if(_0xfeb653==_0x25ab65['value'])return;const _0xb64b56={'commandName':'imageStyle','commandParams':[_0x25ab65],'formatGroupId':_0x140250()};_0x295646['model']['change'](()=>{if(_0x3a7ad1['getSuggestions']()['filter'](_0x27b871=>_0x27b871['isInContent']&&_0x370d78==_0x27b871['author']&&('formatBlock'==_0x27b871['type']||'formatInline'==_0x27b871['type'])&&('imageStylePreApply'==_0x27b871['subType']||'imageStylePostApply'==_0x27b871['subType'])&&_0x27b871['getFirstRange']()['isEqual'](_0x482052))['forEach'](_0x2ed985=>_0x3a7ad1['discardSuggestion'](_0x2ed985['head'])),_0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),_0x482052=_0x295646['model']['createRangeOn'](_0x26e09c),_0x31a8d6['refresh'](),_0x295646['commands']['get']('imageTypeInline')['refresh'](),_0x295646['commands']['get']('imageTypeBlock')['refresh'](),_0xfeb653=_0x31a8d6['value'],_0xfeb653!=_0x25ab65['value'])return _0x5bc0d5['isInlineImage'](_0x26e09c)&&_0x31a8d6['shouldConvertImageType'](_0x25ab65['value'],_0x26e09c)?(_0xa1cb99({..._0x25ab65,'setImageSizes':!0x1}),_0x26e09c=_0x5bc0d5['getClosestSelectedImageElement'](_0x295646['model']['document']['selection']),void _0x3a7ad1['markBlockFormat'](_0x26e09c,{..._0xb64b56,'commandReversedParams':[{'value':_0xfeb653||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5bc0d5['isBlockImage'](_0x26e09c)?_0x3a7ad1['markBlockFormat'](_0x26e09c,_0xb64b56,[],'imageStylePostApply'):_0x3a7ad1['markInlineFormat'](_0x482052,_0xb64b56,'imageStylePostApply'));});});for(const _0x5b370b of _0x295646['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x28116c[_0x5b370b['name']]=_0x5b370b['title']['toLowerCase']();_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4670fd])=>{_0x5bc0d5['setImageNaturalSizeAttributes'](_0x4670fd['getContainedElement']());}),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1d0313,_0x3e8a00)=>{_0x3a7ad1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1d0313,{'commandName':_0x3e8a00['commandName'],'commandParams':_0x3e8a00['commandReversedParams']});}),_0x3a7ad1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55a647,_0x5a3d56){if(_0x37a2a7(_0x55a647,_0x5a3d56))return[_0x55a647,_0x5a3d56];if(_0x37a2a7(_0x5a3d56,_0x55a647))return[_0x5a3d56,_0x55a647];return null;});const _0x2b42e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x37a2a7(_0x3ff843,_0xccb436){const _0x4cd87b=_0x2b42e0['findIndex'](({type:_0xbde48c,subType:_0x3c8ecd})=>_0x3ff843['type']==_0xbde48c&&_0x3ff843['subType']==_0x3c8ecd),_0x1898a5=_0x2b42e0['findIndex'](({type:_0x36fdef,subType:_0x1d474e})=>_0xccb436['type']==_0x36fdef&&_0xccb436['subType']==_0x1d474e);if(_0x4cd87b<0x0||_0x1898a5<0x0)return!0x1;const _0x23ff21=_0x3ff843['getFirstRange'](),_0x3f6cf0=_0xccb436['getFirstRange']();if((0x0==_0x4cd87b||0x1==_0x4cd87b)&&0x2==_0x1898a5&&_0x23ff21['isIntersecting'](_0x3f6cf0))return!0x0;if(0x2==_0x4cd87b&&0x3==_0x1898a5){const _0x35e508=_0x3a7ad1['_findSuggestions'](_0x23ff21,'insertion')['filter'](({suggestion:_0x491936,meta:_0x3b623d})=>_0x3b623d['isOwn']&&'convertInlineImageToBlock'==_0x491936['subType']);if(_0x35e508['length']>0x1&&_0x3f6cf0['end']['isEqual'](_0x23ff21['start']))return!0x0;if(0x1==_0x35e508['length']&&(_0x23ff21['start']['isEqual'](_0x3f6cf0['end'])||_0x23ff21['end']['isEqual'](_0x3f6cf0['start'])))return!0x0;}if(0x3==_0x4cd87b&&0x3==_0x1898a5&&_0x23ff21['start']['isBefore'](_0x3f6cf0['start'])){const _0x406e75=_0x23ff21['end']['nodeAfter'],_0x12d17c=_0x3f6cf0['start']['nodeBefore'];return _0x5bc0d5['isBlockImage'](_0x406e75)&&_0x406e75===_0x12d17c;}return!0x1;}_0x295646['model']['document']['registerPostFixer'](()=>{let _0x452465=!0x1;const _0x31b673=Array['from'](_0x295646['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x132fa9,data:_0x3ba2dc}of _0x31b673){const {group:_0x463573,type:_0xbfc77b,subType:_0x2fbe7c,id:_0x3723e3}=_0x3a7ad1['_splitMarkerName'](_0x132fa9);if('suggestion'==_0x463573&&_0x3a7ad1['hasSuggestion'](_0x3723e3)){if('formatBlock'==_0xbfc77b&&('imageStylePreApply'==_0x2fbe7c||'imageStylePostApply'==_0x2fbe7c)){const _0xe94a0=_0x3a7ad1['getSuggestion'](_0x3723e3);if(_0x3ba2dc['newRange']){const _0x29bfd0=_0xe94a0['getFirstRange']()['getContainedElement']();if(_0x5bc0d5['isBlockImage'](_0x29bfd0))continue;_0x3a7ad1['discardSuggestion'](_0xe94a0),_0x452465=!0x0;}}if('insertion'==_0xbfc77b&&'imageCaption'==_0x2fbe7c&&!_0x3ba2dc['newRange']){const _0x23f7d4=_0x3a7ad1['getSuggestion'](_0x3723e3);_0x23f7d4['next']&&_0x23f7d4['next']['isInContent']&&(_0x3a7ad1['discardSuggestion'](_0x23f7d4['next']),_0x452465=!0x0);}}}return _0x452465;}),this['_registerLegacyDescription'](_0x28116c);}['_registerLegacyDescription'](_0x44c3bd){const _0x3376f4=this['editor'],_0xa62147=_0x3376f4['locale'];_0x3376f4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a60a8=>{if('formatBlock'!=_0x5a60a8['type']&&'formatInline'!=_0x5a60a8['type'])return;const {data:_0x3ec93c}=_0x5a60a8;if(!_0x3ec93c||'imageStyle'!=_0x3ec93c['commandName'])return;const _0x3014b7=_0x3ec93c['commandParams'][0x0]['value'];return _0x200853('side'===_0x3014b7?o(_0xa62147,'FORMAT_SIDE_IMAGE'):_0x44c3bd[_0x3014b7]||_0x3014b7);function _0x200853(_0x2d940e){return{'type':'format','content':o(_0xa62147,'*Format:*\x20%0',_0x2d940e)};}});}}class rt extends _0x142398{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1b9a99){super(_0x1b9a99),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x36fdf3=this['editor'],_0x278d67=_0x36fdf3['commands']['get']('importWord'),_0x4e3ad4=_0x36fdf3['commands']['get']('trackChanges');_0x278d67&&(_0x278d67['on']('execute',(_0x597252,[,_0x4e8cef])=>{this['_trackChangesValueDuringImport']=_0x4e3ad4['value'],_0x4e8cef['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x278d67,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x278d67,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x4e3ad4['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x36fdf3['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xb67b13,_0x37fd62){const {suggestions:_0x1f09a6}=_0x37fd62,_0x53bff8=this['editor']['commands']['get']('trackChanges'),_0x158a0d=_0x53bff8['value'];this['_trackChangesValueDuringImport']!==_0x158a0d&&(_0x53bff8['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f09a6&&_0x1f09a6['forEach'](({id:_0x364abc,type:_0x131680,author:_0xf7949a,created_at:_0x59fa41})=>{const _0x3ea708={'id':_0x364abc,'type':_0x131680,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xf7949a,'createdAt':_0x59fa41?new Date(_0x59fa41):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3ea708);});}}class at extends _0x142398{['afterInit'](){const _0x320264=this['editor'],_0x2080ba=_0x320264['plugins']['get']('TrackChangesEditing');if(_0x320264['plugins']['has']('IndentEditing')&&(_0x2080ba['enableCommand']('indent'),_0x2080ba['enableCommand']('outdent')),_0x320264['plugins']['has']('IndentBlock')){for(const _0x3fd332 of['indentBlock','outdentBlock'])_0x2080ba['enableDefaultAttributesIntegration'](_0x3fd332);}const _0x262a79=_0x320264['locale'];_0x2080ba['registerBlockAttribute']('blockIndent'),_0x2080ba['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x262a79,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c1c62=this['editor'],_0x2da4ef=_0x4c1c62['locale'],_0xcc5b25=_0x4c1c62['plugins']['get']('TrackChangesEditing');_0xcc5b25['descriptionFactory']['registerDescriptionCallback'](_0x1e648f=>{if('formatBlock'!=_0x1e648f['type'])return;const {data:_0x514552}=_0x1e648f;if(!_0x514552)return;if('indentBlock'!=_0x514552['commandName']&&'outdentBlock'!=_0x514552['commandName'])return;const _0x42a152=_0x1e648f['getItems']()[0x0],_0x23e90b=_0xcc5b25['descriptionFactory']['getItemLabel'](_0x42a152);return'indentBlock'==_0x514552['commandName']?{'type':'format','content':o(_0x2da4ef,'*Indent:*\x20%0',_0x23e90b)}:'outdentBlock'==_0x514552['commandName']?{'type':'format','content':o(_0x2da4ef,'*Outdent:*\x20%0',_0x23e90b)}:void 0x0;});}}class ct extends _0x142398{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ut extends _0x142398{['afterInit'](){const _0x15a92f=this['editor'];if(!_0x15a92f['plugins']['has']('LinkEditing'))return;const _0xb3f8f=_0x15a92f['plugins']['get']('TrackChangesEditing'),_0x524375=_0x15a92f['commands']['get']('link');_0xb3f8f['enableDefaultAttributesIntegration']('link'),_0xb3f8f['enableDefaultAttributesIntegration']('unlink'),_0xb3f8f['registerInlineAttribute']('linkHref');for(const _0x4a1fa3 of _0x524375['manualDecorators'])_0xb3f8f['registerInlineAttribute'](_0x4a1fa3['id']),_0xb3f8f['descriptionFactory']['registerAttributeLabel'](_0x4a1fa3['id'],'link\x20('+_0x4a1fa3['label']['toLowerCase']()+')');_0xb3f8f['descriptionFactory']['registerDescriptionCallback'](_0x5d6ea4=>{if('attribute'!=_0x5d6ea4['type'])return;const {data:_0x4ac20f}=_0x5d6ea4;if(!_0x4ac20f||'linkHref'!=_0x4ac20f['key'])return;const _0x2a8bd6=_0x4ac20f['newValue'],_0xc92e34=_0x15a92f['locale'];return{'type':'format','content':null==_0x2a8bd6?o(_0xc92e34,'*Remove\x20link*'):o(_0xc92e34,'*Set\x20link:*\x20%0','\x22'+_0x2a8bd6+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x471aa2=this['editor'],_0x560171=_0x471aa2['locale'];_0x471aa2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x548072=>{if('formatInline'!=_0x548072['type'])return;const {data:_0x2baf38}=_0x548072;if(_0x2baf38){if('link'==_0x2baf38['commandName']){const _0x1ae34f=_0x2baf38['commandParams'][0x0];return{'type':'format','content':o(_0x560171,'*Set\x20link:*\x20%0','\x22'+_0x1ae34f+'\x22')};}return'unlink'==_0x2baf38['commandName']?{'type':'format','content':o(_0x560171,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x142398{['afterInit'](){const _0x1bab31=this['editor'],_0x3b30b1=_0x1bab31['locale'];if(!_0x1bab31['plugins']['has']('LegacyListEditing'))return;const _0x5c04a9=_0x1bab31['plugins']['get']('TrackChangesEditing'),_0x5a6826=_0x1bab31['plugins']['has']('LegacyTodoListEditing');function _0x117e7f(_0x5a88c1){return()=>{const _0x5c90af=_0x1bab31['model']['document']['selection'],_0x5d3876=_0x1bab31['commands']['get'](_0x5a88c1);if(_0x5d3876['value'])return void _0x1bab31['execute']('paragraph',{});const _0x4a7c9a=_0x5a88c1['slice'](0x0,-0x4),_0x3b2092=function(_0xd47bc7,_0xeb288d,_0x459a13){let _0x341b9f=Array['from'](_0xd47bc7)['filter'](_0x3ffb25=>function(_0x400455,_0x1be31e){return _0x1be31e['checkChild'](_0x400455['parent'],'listItem')&&!_0x1be31e['isObject'](_0x400455);}(_0x3ffb25,_0x459a13));_0x341b9f=_0x341b9f['filter'](_0x46b2ea=>!_0x46b2ea['is']('element','listItem')||_0x46b2ea['getAttribute']('listType')!=_0xeb288d);const _0x49dbf7=new Set();for(const _0x3929bb of _0x341b9f)_0x3929bb['is']('element','listItem')?_0x49dbf7['add'](Le(_0x3929bb)):_0x49dbf7['add'](_0x3929bb);return Array['from'](_0x49dbf7);}(_0x5c90af['getSelectedBlocks'](),_0x4a7c9a,_0x1bab31['model']['schema']);_0x1bab31['model']['change'](()=>{for(const _0x396b9a of _0x3b2092)_0x5c04a9['markBlockFormat'](_0x396b9a,{'commandName':_0x5a88c1,'commandParams':[{'forceValue':!_0x5d3876['value']}],'formatGroupId':'blockName'},Ee(_0x396b9a));});};}function _0x54f01f(_0x4b9480){return()=>{const _0xc6e368=function(_0x29722a){let _0x29f0b8=Array['from'](_0x29722a);const _0x30b4ba=_0x29f0b8['findIndex'](_0x2f9915=>'listItem'!=_0x2f9915['name']);return _0x30b4ba>-0x1&&(_0x29f0b8=_0x29f0b8['slice'](0x0,_0x30b4ba)),_0x29f0b8;}(_0x1bab31['model']['document']['selection']['getSelectedBlocks']()),_0x4af364=_0x1bab31['model']['createRange'](_0x1bab31['model']['createPositionAt'](_0xc6e368[0x0],'before'),_0x1bab31['model']['createPositionAt'](_0xc6e368[_0xc6e368['length']-0x1],'end'));_0x1bab31['model']['change'](()=>{_0x5c04a9['markBlockFormat'](_0x4af364,{'commandName':_0x4b9480,'commandParams':[],'formatGroupId':'listIndent'},function(_0xeb5aba){const _0x2a1b14=new Set();for(const _0x439283 of _0xeb5aba){let _0x3f2b68=_0x439283['nextSibling'];for(;_0x3f2b68&&_0x3f2b68['getAttribute']('listIndent')>_0x439283['getAttribute']('listIndent');)_0x2a1b14['add'](_0x3f2b68),_0x3f2b68=_0x3f2b68['nextSibling'];}return Array['from'](_0x2a1b14);}(_0xc6e368));});};}_0x5c04a9['enableCommand']('numberedList',_0x117e7f('numberedList')),_0x5c04a9['enableCommand']('bulletedList',_0x117e7f('bulletedList')),_0x5a6826&&_0x5c04a9['enableCommand']('todoList',_0x117e7f('todoList')),_0x5c04a9['enableCommand']('indentList',_0x54f01f('indentList')),_0x5c04a9['enableCommand']('outdentList',_0x54f01f('outdentList')),_0x5a6826&&_0x5c04a9['enableCommand']('checkTodoList',()=>{const _0x1b5afd=_0x1bab31['commands']['get']('checkTodoList'),_0x35f79d=Array['from'](_0x1b5afd['_selectedElements']);_0x35f79d['filter'](_0x171b5e=>_0x171b5e['getAttribute']('todoListChecked')!=_0x1b5afd['value']),_0x1bab31['model']['change'](()=>{for(const _0xfb3f7e of _0x35f79d)_0x5c04a9['markBlockFormat'](_0xfb3f7e,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1b5afd['value']}]});});}),_0x5c04a9['descriptionFactory']['registerElementLabel']('listItem',_0x56baeb=>o(_0x3b30b1,'ELEMENT_LIST_ITEM',_0x56baeb)),_0x5c04a9['descriptionFactory']['registerDescriptionCallback'](_0x18fc4e=>{if('formatBlock'!=_0x18fc4e['type']&&'formatInline'!=_0x18fc4e['type'])return;const {data:_0x3f0197}=_0x18fc4e;if(_0x3f0197){if('numberedList'==_0x3f0197['commandName']||'bulletedList'==_0x3f0197['commandName']||'todoList'==_0x3f0197['commandName'])switch(_0x3f0197['commandName']['replace']('List','')){case'bulleted':return _0x18c373(o(_0x3b30b1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18c373(o(_0x3b30b1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18c373(o(_0x3b30b1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3f0197['commandName'])return{'type':'format','content':o(_0x3b30b1,'*Indent:*\x20%0',o(_0x3b30b1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3f0197['commandName'])return{'type':'format','content':o(_0x3b30b1,'*Outdent:*\x20%0',o(_0x3b30b1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3f0197['commandName'])return _0x3f0197['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b30b1,'*Check\x20item*')}:{'type':'format','content':o(_0x3b30b1,'*Uncheck\x20item*')};}function _0x18c373(_0x30258d){return{'type':'format','content':o(_0x3b30b1,'*Change\x20to:*\x20%0',_0x30258d)};}});}}function Le(_0x3d19e6){const _0x238ca4=_0x3d19e6['getAttribute']('listIndent');if(0x0==_0x238ca4)return _0x3d19e6;let _0x592a35=_0x3d19e6;for(;_0x3d19e6['previousSibling']&&_0x3d19e6['previousSibling']['is']('element','listItem');){const _0x26a59f=_0x3d19e6['previousSibling']['getAttribute']('listIndent');if(_0x26a59f==_0x238ca4)_0x592a35=_0x3d19e6['previousSibling'];else{if(_0x26a59f<_0x238ca4)break;}_0x3d19e6=_0x3d19e6['previousSibling'];}return _0x592a35;}function Ee(_0x214823){const _0x47e43b=[];if(_0x214823['is']('element','listItem')&&_0x214823['getAttribute']('listIndent')>0x0){let _0x11a1c0=_0x214823['nextSibling'];for(;_0x11a1c0&&'listItem'==_0x11a1c0['name']&&_0x11a1c0['getAttribute']('listIndent')==_0x214823['getAttribute']('listIndent');)_0x47e43b['push'](_0x11a1c0),_0x11a1c0=_0x11a1c0['nextSibling'];}return _0x47e43b;}class ht extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3158e7=this['editor']['config']['get']('list.properties'),_0x299797=this['editor']['plugins']['get']('TrackChangesEditing');_0x3158e7['styles']&&_0x299797['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3158e7['reversed']&&_0x299797['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3158e7['startIndex']&&_0x299797['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x299797['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x43fc43,_0x213bd2={}){const _0x2bc393=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c8c19=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2bc393['markMultiRangeBlockFormat'](_0x5c8c19,{'commandName':'listStyle','commandParams':[{'type':_0x213bd2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x173c1e,_0x286973={}){const _0x5a0727=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17abe6=this['_getSuggestionBlocks'](_0x3c5d36=>_0x3c5d36['is']('element','listItem')&&'numbered'===_0x3c5d36['getAttribute']('listType'));if(_0x17abe6['length']<0x1)return;const _0x5a300a=_0x17abe6['map'](_0x274740=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x274740,'before'),this['editor']['model']['createPositionAt'](_0x274740,0x0)));this['editor']['model']['change'](()=>{_0x5a0727['markMultiRangeBlockFormat'](_0x5a300a,{'commandName':'listReversed','commandParams':[{'reversed':_0x286973['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x234275,_0x23cd70={}){const _0x2759c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d2e77=this['_getSuggestionBlocks'](_0x232c32=>_0x232c32['is']('element','listItem')&&'numbered'===_0x232c32['getAttribute']('listType'));if(_0x3d2e77['length']<0x1)return;const _0x125e07=_0x3d2e77['map'](_0x367c2c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x367c2c,'before'),this['editor']['model']['createPositionAt'](_0x367c2c,0x0)));this['editor']['model']['change'](()=>{_0x2759c5['markMultiRangeBlockFormat'](_0x125e07,{'commandName':'listStart','commandParams':[{'startIndex':_0x23cd70['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x535c63){if('formatBlock'!=_0x535c63['type']&&'formatInline'!=_0x535c63['type'])return;const _0x4780b5=this['editor']['locale'],{data:_0x1a0c99}=_0x535c63;if(!_0x1a0c99)return;let _0x230d21,_0x1dd1b0;switch(_0x1a0c99['commandName']){case'listStyle':_0x230d21='*Change\x20to:*\x20%0',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21,o(_0x4780b5,this['_getTranslationKeyForListStyle'](_0x1a0c99['commandParams'][0x0]['type'])))};break;case'listReversed':_0x230d21=_0x1a0c99['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21)};break;case'listStart':_0x230d21='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1dd1b0={'type':'format','content':o(_0x4780b5,_0x230d21,_0x1a0c99['commandParams'][0x0]['startIndex'])};}return _0x1dd1b0;}['_getSuggestionBlocksForListStyle'](){const _0x58106e=this['editor']['plugins']['get']('LegacyListUtils');let _0x2995ed=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x2995ed[0x0]?.['is']('element','listItem')&&_0x2995ed['unshift'](..._0x58106e['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x2995ed[_0x2995ed['length']-0x1]?.['is']('element','listItem')&&_0x2995ed['push'](..._0x58106e['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2995ed=[...new Set(_0x2995ed)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x2995ed=_0x2995ed['filter'](_0x58178d=>_0x58178d['is']('element','listItem'))),_0x2995ed;}['_getSuggestionBlocks'](_0x5fb352){const _0x150508=this['editor']['plugins']['get']('LegacyListUtils');let _0x52c6e4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5fb352)['map'](_0x39ee70=>{const _0x4025ff=this['editor']['model']['createPositionAt'](_0x39ee70,0x0);return[..._0x150508['getSiblingNodes'](_0x4025ff,'backward'),..._0x150508['getSiblingNodes'](_0x4025ff,'forward')];})['flat']();return _0x52c6e4=[...new Set(_0x52c6e4)],_0x52c6e4;}['_getTranslationKeyForListStyle'](_0x207c86){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x207c86)||'default')['toUpperCase']()+'_LIST_'+_0x207c86['toUpperCase']()['replace'](/-/g,'_');}}class gt extends _0x142398{['afterInit'](){const _0x39f08c=this['editor'];if(!_0x39f08c['plugins']['has']('MediaEmbedEditing'))return;const _0xe91a12=_0x39f08c['plugins']['get']('TrackChangesEditing'),_0x126833=_0x39f08c['locale'];_0xe91a12['enableCommand']('mediaEmbed'),_0xe91a12['descriptionFactory']['registerElementLabel']('media',_0x241aec=>o(_0x126833,'ELEMENT_MEDIA',_0x241aec)),_0x39f08c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4f6ca1,{writer:_0x27ab30,options:_0x5ce030})=>{if(_0x5ce030['showSuggestionHighlights'])return _0x27ab30['createEmptyElement']('div');},'converterPriority':'high'}),_0x39f08c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x57a3e1,_0x39d285,_0xa65e09)=>{_0xa65e09['options']['showSuggestionHighlights']&&_0x57a3e1['stop']();},{'priority':'high'});}}class lt extends _0x142398{['afterInit'](){const _0x2956df=this['editor'];_0x2956df['plugins']['has']('MentionEditing')&&_0x2956df['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x142398{['afterInit'](){const _0x13ebbb=this['editor'];if(!_0x13ebbb['plugins']['has']('MergeFieldsEditing'))return;const _0x970ef5=_0x13ebbb['plugins']['get']('TrackChangesEditing'),_0x132854=_0x13ebbb['locale'];_0x970ef5['enableCommand']('insertMergeField'),_0x970ef5['enableCommand']('insertMergeFieldBlock'),_0x970ef5['enableCommand']('insertMergeFieldImage'),_0x970ef5['descriptionFactory']['registerElementLabel']('mergeField',_0x4619e9=>o(_0x132854,'ELEMENT_MERGE_FIELD',_0x4619e9)),_0x970ef5['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x517840=>o(_0x132854,'ELEMENT_MERGE_FIELD',_0x517840)),_0x970ef5['descriptionFactory']['registerDescriptionCallback'](_0x245dad=>{if('insertion'!=_0x245dad['type']&&'deletion'!=_0x245dad['type'])return;const _0x1fc180=_0x245dad['getContainedElement']();if(null==_0x1fc180)return;const _0x47733e=_0x13ebbb['plugins']['get']('MergeFieldsEditing');let _0x4ed134;switch(_0x47733e['getMergeFieldType'](_0x1fc180)){case null:return;case'image':{const _0x4ed586=_0x47733e['unwrapAffixes'](_0x1fc180['getAttribute']('src'));_0x4ed134=_0x47733e['getLabel'](_0x4ed586)||_0x4ed586;break;}default:{const _0x13f30a=_0x1fc180['getAttribute']('id');_0x4ed134=_0x47733e['getLabel'](_0x13f30a)||_0x13f30a;break;}}return'insertion'==_0x245dad['type']?{'type':'insertion','content':o(_0x132854,'*Insert:*\x20%0','\x22'+_0x4ed134+'\x22\x20'+o(_0x132854,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x132854,'*Remove:*\x20%0','\x22'+_0x4ed134+'\x22\x20'+o(_0x132854,'ELEMENT_MERGE_FIELD'))};});}}class mt extends _0x142398{['afterInit'](){const _0x50d700=this['editor'],_0x3499c1=_0x50d700['plugins']['get']('TrackChangesEditing');_0x50d700['plugins']['has']('MultiLevelList')&&(_0x3499c1['enableDefaultAttributesIntegration']('multiLevelList'),_0x3499c1['registerBlockAttribute']('listMarkerStyle'),_0x3499c1['descriptionFactory']['registerDescriptionCallback'](_0x4e7713=>this['handleDescriptions'](_0x4e7713)));}['handleDescriptions'](_0x49c40a){const _0x15fc99=this['editor']['locale'],{data:_0x39458d}=_0x49c40a,_0x3e6c95={'type':'format','content':''};if(_0x39458d&&'listMarkerStyle'==_0x39458d['key']){if(!_0x39458d['oldValue'])return{'type':'format','content':o(_0x15fc99,'*Set\x20format:*\x20%0',o(_0x15fc99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39458d['newValue']+')'};if(!_0x39458d['newValue']){let _0x2b5771=_0x49c40a['head'];for(;_0x2b5771;){if(_0x2b5771['data']&&'listType'==_0x2b5771['data']['key']&&_0x2b5771['data']['newValue'])return _0x3e6c95;_0x2b5771=_0x2b5771['next'];}return{'type':'format','content':o(_0x15fc99,'*Remove\x20format:*\x20%0',o(_0x15fc99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x39458d['oldValue']+')'};}}}}class pt extends _0x142398{['afterInit'](){const _0x5dd93e=this['editor'];if(!_0x5dd93e['plugins']['has']('PageBreakEditing'))return;_0x5dd93e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3293ae=_0x5dd93e['plugins']['get']('TrackChangesEditing'),_0x527749=_0x5dd93e['locale'];_0x3293ae['descriptionFactory']['registerElementLabel']('pageBreak',_0x27a6ec=>o(_0x527749,'ELEMENT_PAGE_BREAK',_0x27a6ec));}}class kt extends _0x142398{['afterInit'](){const _0x3fda72=this['editor'];if(!_0x3fda72['plugins']['has']('Paragraph'))return;const _0x1e5fc8=_0x3fda72['locale'],_0x37fde2=_0x3fda72['plugins']['get']('TrackChangesEditing');_0x37fde2['descriptionFactory']['registerElementLabel']('paragraph',_0x5e5704=>o(_0x1e5fc8,'ELEMENT_PARAGRAPH',_0x5e5704)),_0x37fde2['enableDefaultAttributesIntegration']('paragraph'),_0x37fde2['enableCommand']('insertParagraph'),_0x3fda72['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3fda72),{'priority':'highest'}),_0x3fda72['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x12096c,_0x1a8e84,_0x5ea040)=>{_0x5ea040['options']['showSuggestionHighlights']&&nr(_0x3fda72,{'showActiveMarker':!0x1})(_0x12096c,_0x1a8e84,_0x5ea040);},{'priority':'highest'});const _0x4b2bd3=_0x37fde2['descriptionFactory'];_0x4b2bd3['registerDescriptionCallback'](_0x3e0c3c=>{if('insertion'!==_0x3e0c3c['type'])return;const {start:_0x16a1a8,end:_0x222f43}=_0x3e0c3c['getFirstRange']();if(!_0x16a1a8['isTouching'](_0x222f43)||!_0x16a1a8['nodeAfter'])return;const _0x3d70b6=_0x3fda72['model']['schema'],_0x398689=_0x16a1a8['nodeAfter'];return _0x3d70b6['isBlock'](_0x398689)&&!_0x3d70b6['isLimit'](_0x398689)&&_0x3d70b6['checkChild'](_0x398689,'$text')?{'type':'insertion','content':o(_0x1e5fc8,'*Insert:*\x20%0',_0x4b2bd3['getItemLabel'](_0x398689,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30b48b=this['editor'],_0x27706a=_0x30b48b['locale'];_0x30b48b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d9077=>{if('formatBlock'!=_0x1d9077['type'])return;const {data:_0x18fe3b}=_0x1d9077;return _0x18fe3b&&'paragraph'==_0x18fe3b['commandName']?{'type':'format','content':o(_0x27706a,'*Change\x20to:*\x20%0',o(_0x27706a,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xb45b80,{showActiveMarker:_0x192a3b=!0x0}={}){return(_0x23aff0,_0xf22f0,_0x3a9a6b)=>{const _0x1cedd0=_0xb45b80['plugins']['get']('TrackChangesEditing'),_0x23f6e4=_0xf22f0['markerRange']['start'],_0x56d78b=_0xf22f0['markerRange']['end'],_0x2c4e5=_0xb45b80['model']['schema'];if(!_0x23f6e4['isTouching'](_0x56d78b)||!_0x23f6e4['nodeAfter'])return;const _0x25c298=_0x23f6e4['nodeAfter'];if(_0x2c4e5['isBlock'](_0x25c298)&&!_0x2c4e5['isLimit'](_0x25c298)&&_0x2c4e5['checkChild'](_0x25c298,'$text')){if(!_0x3a9a6b['consumable']['consume'](_0xf22f0['markerRange'],_0x23aff0['name']))return;const {id:_0x1d031f,authorId:_0x2244c4}=_0x1cedd0['_splitMarkerName'](_0xf22f0['markerName']),_0x3b690c=_0x3a9a6b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-suggestion':_0x1d031f,'data-author-id':_0x2244c4}),_0x349f4f=_0x3a9a6b['mapper']['toViewPosition'](_0x56d78b);_0x192a3b&&_0x1cedd0['activeMarkers']['includes'](_0xf22f0['markerName'])&&_0x3a9a6b['writer']['addClass']('ck-suggestion-marker--active',_0x3b690c),_0x3a9a6b['writer']['insert'](_0x349f4f,_0x3b690c),_0x3a9a6b['mapper']['bindElementToMarker'](_0x3b690c,_0xf22f0['markerName']);}};}class wt extends _0x142398{['afterInit'](){const _0x240f6d=this['editor'];_0x240f6d['commands']['get']('replaceSource')&&_0x240f6d['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class bt extends _0x142398{['afterInit'](){const _0x13b179=this['editor'];if(!_0x13b179['plugins']['has']('RemoveFormatEditing'))return;_0x13b179['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x13aa88=this['editor'];_0x13aa88['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x28bfec=>{if('formatBlock'!=_0x28bfec['type']&&'formatInline'!=_0x28bfec['type'])return;const {data:_0x2f112c}=_0x28bfec;return _0x2f112c&&'removeFormat'==_0x2f112c['commandName']?{'type':'format','content':o(_0x13aa88['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x142398{['afterInit'](){const _0x42d687=this['editor'];if(!_0x42d687['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2c4629=_0x42d687['plugins']['get']('TrackChangesEditing');_0x2c4629['enableCommand']('goToPreviousRestrictedEditingException'),_0x2c4629['enableCommand']('goToNextRestrictedEditingException');const _0x1e6746=_0x42d687['plugins']['get']('RestrictedEditingModeEditing');_0x1e6746['enableCommand']('trackChanges'),_0x1e6746['enableCommand']('acceptSuggestion'),_0x1e6746['enableCommand']('discardSuggestion'),_0x1e6746['enableCommand']('acceptAllSuggestions'),_0x1e6746['enableCommand']('discardAllSuggestions'),_0x1e6746['enableCommand']('acceptSelectedSuggestions'),_0x1e6746['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x142398{['afterInit'](){const _0x292232=this['editor'];if(!_0x292232['plugins']['has']('ShiftEnter'))return;const _0x11d018=_0x292232['plugins']['get']('TrackChangesEditing');_0x11d018['enableCommand']('shiftEnter'),_0x292232['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x292232),{'priority':'high'}),_0x292232['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x292232),{'priority':'high'}),_0x292232['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x11e4b1,_0x5a13f3,_0x5d3a82)=>{_0x5d3a82['options']['showSuggestionHighlights']&&je(_0x292232,{'showActiveMarker':!0x1})(_0x11e4b1,_0x5a13f3,_0x5d3a82);}),_0x11d018['descriptionFactory']['registerElementLabel']('softBreak',_0x56b1b4=>o(_0x292232['locale'],'ELEMENT_LINE_BREAK',_0x56b1b4));}}function je(_0x22724b,{showActiveMarker:_0x7e366a=!0x0}={}){return(_0x2b17b3,_0x57c19f,_0x4f8616)=>{const _0x1ea1a1=_0x22724b['plugins']['get']('TrackChangesEditing');if(!_0x4f8616['consumable']['test'](_0x57c19f['markerRange'],_0x2b17b3['name']))return;const _0x2e2687=_0x22724b['model'];for(const _0x4cb4fa of _0x57c19f['markerRange']['getItems']()){if(!_0x4cb4fa['is']('element','softBreak'))continue;const _0x12e115='deletion'==_0x57c19f['markerName']['split'](':')[0x1]?'merge':'split',{id:_0x3bfdfe,authorId:_0x5c205d}=_0x1ea1a1['_splitMarkerName'](_0x57c19f['markerName']),_0x319572=_0x4f8616['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12e115,'data-suggestion':_0x3bfdfe,'data-author-id':_0x5c205d}),_0x121a8e=_0x4f8616['mapper']['toViewPosition'](_0x2e2687['createPositionBefore'](_0x4cb4fa));_0x7e366a&&_0x1ea1a1['activeMarkers']['includes'](_0x57c19f['markerName'])&&_0x4f8616['writer']['addClass']('ck-suggestion-marker--active',_0x319572),_0x4f8616['writer']['insert'](_0x121a8e,_0x319572),_0x4f8616['mapper']['bindElementToMarker'](_0x319572,_0x57c19f['markerName']);}};}class St extends _0x142398{['afterInit'](){const _0x2e5e9f=this['editor'],_0x5018ae=_0x2e5e9f['model'],_0x1d8714=_0x2e5e9f['locale'];if(!_0x2e5e9f['plugins']['has']('StandardEditingModeEditing'))return;const _0x8fd224=_0x2e5e9f['plugins']['get']('TrackChangesEditing'),_0x5aa05b='restrictedEditingException',_0x1885eb=_0x2e5e9f['commands']['get'](_0x5aa05b);_0x8fd224['enableCommand'](_0x5aa05b,(_0x3e6ec7,_0x548b6c={})=>{const _0x273bce=_0x5018ae['document']['selection'];if(_0x273bce['isCollapsed'])return void _0x3e6ec7(_0x548b6c);const _0x5da543=void 0x0!==_0x548b6c['forceValue']?_0x548b6c['forceValue']:!_0x1885eb['value'];_0x5018ae['change'](()=>{const _0x28d635=Array['from'](_0x273bce['getRanges']());for(const _0x974aab of _0x28d635){const _0x44ee9b=_0x5da543?[_0x974aab]:io(_0x5aa05b,_0x974aab,_0x5018ae);for(const _0x356c86 of _0x44ee9b)_0x8fd224['markInlineFormat'](_0x356c86,{'commandName':_0x5aa05b,'commandParams':[{'forceValue':_0x5da543}]});}});}),_0x8fd224['descriptionFactory']['registerDescriptionCallback'](_0xcfd656=>{if('formatBlock'!=_0xcfd656['type']&&'formatInline'!=_0xcfd656['type'])return;const {data:_0x15c978}=_0xcfd656;return _0x15c978&&_0x15c978['commandName']==_0x5aa05b?_0x15c978['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1d8714,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1d8714,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x142398{['afterInit'](){const _0x12a819=this['editor'];if(!_0x12a819['plugins']['has']('Style')||!_0x12a819['plugins']['has']('DataSchema'))return;const _0x538316=_0x12a819['plugins']['get']('TrackChangesEditing'),_0x11c3e7=_0x12a819['locale'],_0x48ba3e=_0x12a819['config']['get']('style')||{},_0x24a952=_0x12a819['plugins']['get']('GeneralHtmlSupport'),_0x5afae4=_0x12a819['plugins']['get']('StyleUtils')['normalizeConfig'](_0x12a819['plugins']['get']('DataSchema'),_0x48ba3e['definitions']);_0x538316['enableDefaultAttributesIntegration']('style');const _0x5e7afd=new Set();for(const _0x16629e of _0x5afae4['block']){const _0x50f1c3=_0x24a952['getGhsAttributeNameForElement'](_0x16629e['element']);_0x5e7afd['add'](_0x50f1c3);}const _0x49a7e7=new Set();for(const _0x77c3e8 of _0x5afae4['inline']){const _0x21a3b8=_0x24a952['getGhsAttributeNameForElement'](_0x77c3e8['element']);_0x49a7e7['add'](_0x21a3b8);for(const _0x3678a3 of _0x77c3e8['ghsAttributes'])_0x49a7e7['add'](_0x3678a3);}for(const _0x119665 of _0x5e7afd)_0x538316['registerBlockAttribute'](_0x119665),_0x538316['descriptionFactory']['registerAttributeLabel'](_0x119665,o(_0x11c3e7,'FORMAT_STYLE'));for(const _0x1a0bc5 of _0x49a7e7)_0x538316['registerInlineAttribute'](_0x1a0bc5),_0x538316['descriptionFactory']['registerAttributeLabel'](_0x1a0bc5,o(_0x11c3e7,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5699d0=this['editor'],_0x6900f8=_0x5699d0['locale'];_0x5699d0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52cb2e=>{if('formatBlock'!=_0x52cb2e['type']&&'formatInline'!=_0x52cb2e['type'])return;const {data:_0x203e66}=_0x52cb2e;return _0x203e66&&'style'===_0x203e66['commandName']?_0x203e66['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x6900f8,'*Set\x20format:*\x20%0',_0x203e66['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x6900f8,'*Remove\x20format:*\x20%0',_0x203e66['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class At extends _0x142398{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3cb353){super(_0x3cb353),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xa56de6=this['editor'],_0x336e36=_0xa56de6['model']['document']['selection'];if(!_0xa56de6['plugins']['has']('TableEditing'))return;const _0x237a10=_0xa56de6['locale'],_0x20ed08=_0xa56de6['plugins']['get']('TrackChangesEditing'),_0x10e1f4=_0xa56de6['plugins']['get']('TableUtils');_0x20ed08['descriptionFactory']['registerElementLabel']('table',_0x181892=>o(_0x237a10,'ELEMENT_TABLE',_0x181892)),this['_setupColumnsRowsFixing'](),_0x20ed08['enableCommand']('insertTable'),_0x20ed08['enableCommand']('selectTableRow'),_0x20ed08['enableCommand']('selectTableColumn');for(const _0x4256df of['insertTableRowAbove','insertTableRowBelow']){const _0x2fdc62=_0xa56de6['commands']['get'](_0x4256df);_0x20ed08['enableCommand'](_0x4256df,_0x4dd89a=>{_0xa56de6['model']['change'](_0xa8e77b=>{_0x4dd89a();const _0x3393c9='above'===_0x2fdc62['order'],_0x4761ab=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x12612d=_0x10e1f4['getRowIndexes'](_0x4761ab),_0x429c1b=_0x3393c9?_0x12612d['first']-0x1:_0x12612d['last']+0x1,_0x5d6820=_0x4761ab[0x0]['findAncestor']('table'),_0x4a00ee=_0x10e1f4['createTableWalker'](_0x5d6820,{'startRow':_0x429c1b,'endRow':_0x429c1b}),_0x35a0fb=Array['from'](_0x4a00ee)['map'](_0x4103cb=>_0xa8e77b['createRangeOn'](_0x4103cb['cell']));_0x20ed08['markMultiRangeInsertion'](_0x35a0fb,'tableRow');});});}for(const _0x23fe83 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4400f7=_0xa56de6['commands']['get'](_0x23fe83);_0x20ed08['enableCommand'](_0x23fe83,_0x490829=>{_0xa56de6['model']['change'](_0x1959aa=>{_0x490829();const _0x4fa42e='left'===_0x4400f7['order'],_0x4d0db7=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x5b1fe0=_0x10e1f4['getColumnIndexes'](_0x4d0db7),_0x4f0495=_0x4fa42e?_0x5b1fe0['first']-0x1:_0x5b1fe0['last']+0x1,_0x315020=_0x4d0db7[0x0]['findAncestor']('table'),_0xbe01e0=_0x10e1f4['createTableWalker'](_0x315020,{'startRow':0x0,'column':_0x4f0495,'includeAllSlots':!0x1}),_0x13591a=Array['from'](_0xbe01e0)['map'](_0x275938=>_0x1959aa['createRangeOn'](_0x275938['cell']));_0x20ed08['markMultiRangeInsertion'](_0x13591a,'tableColumn');});});}for(const _0xbe59c of['removeTableRow','removeTableColumn']){const _0x2777af=_0xbe59c['substr'](0xb),_0x2dc325=_0x2777af['toLowerCase'](),_0x48dd0b=_0x2dc325['substr'](0x0,0x3)+'span',_0x4a42f8='table'+_0x2777af,_0x24178b='min'+_0x2777af,_0x274814='max'+_0x2777af;_0x20ed08['enableCommand'](_0xbe59c,()=>{_0xa56de6['model']['change'](_0x150b03=>{const _0x543eae=_0x10e1f4['getSelectionAffectedTableCells'](_0x336e36),_0x2a6e5a=_0x543eae[0x0]['findAncestor']('table');let _0x9bdc1f;if('removeTableRow'==_0xbe59c){const _0x50552e=_0x10e1f4['getRowIndexes'](_0x543eae);_0x9bdc1f={'startRow':_0x50552e['first'],'endRow':_0x50552e['last'],'includeAllSlots':!0x0};}else{const _0xdd46=_0x10e1f4['getColumnIndexes'](_0x543eae);_0x9bdc1f={'startColumn':_0xdd46['first'],'endColumn':_0xdd46['last'],'includeAllSlots':!0x0};}const _0x3db1d=_0x10e1f4['createTableWalker'](_0x2a6e5a,_0x9bdc1f),_0x365419=Array['from'](_0x3db1d)['map'](({cell:_0x152599})=>_0x152599),_0x230013=Ne(_0x365419['filter'](_0xe1f656=>_0xe1f656['hasAttribute'](_0x48dd0b))),_0x39093a=Ne(_0x365419['filter'](_0x1a5cf0=>!_0x1a5cf0['hasAttribute'](_0x48dd0b)))['map'](_0x1db9da=>_0x150b03['createRangeOn'](_0x1db9da)),_0x26674b=_0x20ed08['markMultiRangeDeletion'](_0x39093a,_0x4a42f8);if(_0x26674b&&('tableRow'==_0x26674b['subType']||'tableColumn'==_0x26674b['subType'])){const _0x2398dc=this['_getSuggestionCoords'](_0x26674b);for(const _0x3d8573 of _0x230013){const _0x366f86=_0x150b03['createRangeOn'](_0x3d8573),_0x42e761=_0x10e1f4['getCellLocation'](_0x3d8573),_0x21cc70=_0x3d8573['getAttribute'](_0x48dd0b)-0x1,_0x529c45=_0x2398dc[_0x24178b],_0x9d4bcd=_0x2398dc[_0x274814];_0x529c45<=_0x42e761[_0x2dc325]&&_0x42e761[_0x2dc325]+_0x21cc70<=_0x9d4bcd&&_0x26674b['addRange'](_0x366f86);}}});});}function _0x1c0ce6(_0x4096f9){const _0x387bc4=Array['from'](_0x336e36['getRanges']())['map'](_0x31388a=>_0x3590e7['fromRange'](_0x31388a));_0xa56de6['model']['change'](_0xe51bcf=>{const _0x2bf52c=_0xe51bcf['batch'];_0x4096f9=_0x4096f9['filter'](_0x45a17b=>'$graveyard'!=_0x45a17b['root']['rootName']),_0xe51bcf['setSelection'](_0x4096f9),_0xa56de6['commands']['get']('removeTableRow')['refresh'](),_0xa56de6['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xa56de6['model']['enqueueChange'](()=>{_0xa56de6['model']['enqueueChange'](_0x2bf52c,_0x5bcbb2=>{const _0xdcbd38=_0x387bc4['filter'](_0x5b0ff5=>'$graveyard'!=_0x5b0ff5['root']['rootName']);_0xdcbd38['length']>0x0&&_0x5bcbb2['setSelection'](_0xdcbd38);for(const _0xcda424 of _0x387bc4)_0xcda424['detach']();});});});}function _0x1a50df(_0x1dbe61){_0xa56de6['model']['change'](_0x5c2489=>{const _0x48da91=Array['from'](_0x336e36['getRanges']())['map'](_0x5207ef=>_0x3590e7['fromRange'](_0x5207ef)),_0x33577b=[];for(const _0x6b3c0 of _0x1dbe61)for(const _0x52e469 of _0x6b3c0['getItems']({'shallow':!0x0}))_0x33577b['push'](_0x52e469);for(const _0x28b967 of _0x33577b)'$graveyard'!=_0x28b967['root']['rootName']&&(_0x5c2489['setSelection'](_0x5c2489['createPositionAt'](_0x28b967,0x0)),_0xa56de6['commands']['get']('removeTableColumn')['refresh'](),_0xa56de6['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x45a74b=_0x48da91['filter'](_0xbb5de0=>'$graveyard'!=_0xbb5de0['root']['rootName']);_0x45a74b['length']>0x0&&_0x5c2489['setSelection'](_0x45a74b);for(const _0x11f5c4 of _0x48da91)_0x11f5c4['detach']();});}function _0x2b2a26(_0x3bd269,_0x94ce89){return _0x94ce89['every'](_0x3781b6=>_0x3bd269['some'](_0x125677=>_0x125677['end']['isEqual'](_0x3781b6['start'])||_0x3781b6['end']['isEqual'](_0x125677['start'])));}function _0x163c8a(_0x155bf5,_0x1fec82){return!_0x155bf5['some'](_0x3092fe=>_0x1fec82['some'](_0x49dfad=>_0x3092fe['isIntersecting'](_0x49dfad)))&&_0x155bf5['some'](_0x49fa63=>_0x1fec82['some'](_0x4f11ab=>_0x49fa63['end']['isTouching'](_0x4f11ab['start'])));}_0xa56de6['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1695e0,_0x423e16,_0x4905fd)=>{if(!_0x4905fd['options']['showSuggestionHighlights'])return;const _0x5aa8ae=_0x423e16['item'];if(!_0x5aa8ae||!_0x5aa8ae['is']('element','tableCell'))return;const _0xa3e1ec=_0x4905fd['mapper']['toViewElement'](_0x5aa8ae);if(_0xa3e1ec){const {id:_0xe4dae2,authorId:_0x5f58b0}=_0x20ed08['_splitMarkerName'](_0x423e16['markerName']);_0x34ad7c(_0xa3e1ec,_0x4905fd['writer'],(_0x4be017,_0x424c53,_0x490e43)=>{_0x490e43['addClass'](_0x337b53(_0x424c53['classes']),_0x4be017),_0x490e43['setAttribute']('data-suggestion-id',_0xe4dae2,_0x4be017),_0x490e43['setAttribute']('data-author-id',_0x5f58b0,_0x4be017);},(_0x43e31c,_0x340937,_0x2d5033)=>{_0x2d5033['removeClass'](_0x337b53(_0x340937['classes']),_0x43e31c),_0x2d5033['removeAttribute']('data-suggestion-id',_0x43e31c),_0x2d5033['removeAttribute']('data-author-id',_0x43e31c);});}},{'priority':'highest'}),_0x20ed08['descriptionFactory']['registerDescriptionCallback'](_0x41feac=>{if('insertion'!=_0x41feac['type']&&'deletion'!=_0x41feac['type'])return;const _0x2bd882=_0x41feac['getContainedElement']();if(null!=_0x2bd882&&_0x2bd882['is']('element','table')){if('insertion'==_0x41feac['type']){const _0x2b1468=_0x41feac['getItems']()['filter'](_0x42f4a5=>_0x42f4a5['is']('$textProxy'))['map'](_0x295a50=>_0x295a50['data']);if(_0x2b1468['length'])return{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2b1468['join']('\x20')+'\x22'))};}if('deletion'==_0x41feac['type']){const _0x4fdccb=_0x41feac['getItems']()['filter'](_0x598c31=>_0x598c31['is']('$textProxy'))['map'](_0x1864fb=>_0x1864fb['data']);if(_0x4fdccb['length'])return{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4fdccb['join']('\x20')+'\x22'))};}}}),_0x20ed08['descriptionFactory']['registerDescriptionCallback'](_0x45db81=>{if('tableRow'==_0x45db81['subType']){const _0x19add8=_0x45db81['getItems']()['filter'](_0x491fbf=>_0x491fbf['is']('$textProxy'))['map'](_0x44c545=>_0x44c545['data']),_0x3b1342=this['_getSuggestionCoords'](_0x45db81),_0x58c7c5=_0x3b1342['maxRow']-_0x3b1342['minRow']+0x1;if('insertion'==_0x45db81['type'])return _0x19add8['length']?{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58c7c5,'\x22'+_0x19add8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW',_0x58c7c5))};if('deletion'==_0x45db81['type'])return _0x19add8['length']?{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58c7c5,'\x22'+_0x19add8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_ROW',_0x58c7c5))};}if('tableColumn'==_0x45db81['subType']){const _0xe90c=_0x45db81['getItems']()['filter'](_0x10e684=>_0x10e684['is']('$textProxy'))['map'](_0x2c8fea=>_0x2c8fea['data']),_0x4b65ff=this['_getSuggestionCoords'](_0x45db81),_0x4cafd1=_0x4b65ff['maxColumn']-_0x4b65ff['minColumn']+0x1;if('insertion'==_0x45db81['type'])return _0xe90c['length']?{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cafd1,'\x22'+_0xe90c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x237a10,'*Insert:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN',_0x4cafd1))};if('deletion'==_0x45db81['type'])return _0xe90c['length']?{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4cafd1,'\x22'+_0xe90c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x237a10,'*Remove:*\x20%0',o(_0x237a10,'ELEMENT_TABLE_COLUMN',_0x4cafd1))};}}),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1c0ce6),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1c0ce6),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1a50df),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1a50df),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2b2a26),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2b2a26),_0x20ed08['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x163c8a),_0x20ed08['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x163c8a);}['_acceptFormatSuggestionCallbackFactory'](){const _0x9c7862=this['editor'],_0x15f05a=_0x9c7862['model']['document']['selection'];return(_0x55ea9c,_0x12db17)=>{_0x9c7862['model']['change'](_0x159be0=>{const {commandName:_0x153e74,commandParams:_0x5f363c}=_0x12db17;let _0x26a278=_0x55ea9c[0x0]['end']['nodeBefore'];_0x5f363c&&_0x5f363c[0x0]&&!0x1===_0x5f363c[0x0]['forceValue']&&(_0x26a278=_0x55ea9c[0x0]['start']['nodeAfter']);const _0x5707b4=_0x159be0['createRangeIn'](_0x26a278);if('$graveyard'==_0x5707b4['root']['rootName'])return;const _0x310015=Array['from'](_0x15f05a['getRanges']())['map'](_0x23ca2c=>_0x3590e7['fromRange'](_0x23ca2c));_0x159be0['setSelection'](_0x5707b4),_0x9c7862['commands']['get'](_0x153e74)['refresh'](),_0x5f363c['push']({'forceDefaultExecution':!0x0}),_0x9c7862['execute'](_0x153e74,..._0x5f363c);const _0x226ad5=_0x310015['filter'](_0x272ada=>'$graveyard'!=_0x272ada['root']['rootName']);_0x226ad5['length']>0x0&&_0x159be0['setSelection'](_0x226ad5);for(const _0x382076 of _0x310015)_0x382076['detach']();});};}['_getCoordsForCells'](_0x1df0f1){const _0x2bfd22=this['editor']['plugins']['get']('TableUtils');let _0x75cc7d=Number['MAX_SAFE_INTEGER'],_0x592c34=Number['MIN_SAFE_INTEGER'],_0x37f10b=Number['MAX_SAFE_INTEGER'],_0x5ba4b8=Number['MIN_SAFE_INTEGER'];for(const _0x48e09c of _0x1df0f1){if('$graveyard'==_0x48e09c['root']['rootName'])continue;const {row:_0x32e6de,column:_0x2db148}=_0x2bfd22['getCellLocation'](_0x48e09c),_0x4866fd=_0x48e09c['hasAttribute']('rowspan')?_0x48e09c['getAttribute']('rowspan')-0x1:0x0,_0x39acb7=_0x48e09c['hasAttribute']('colspan')?_0x48e09c['getAttribute']('colspan')-0x1:0x0;_0x75cc7d=_0x32e6de<_0x75cc7d?_0x32e6de:_0x75cc7d,_0x592c34=_0x32e6de+_0x4866fd>_0x592c34?_0x32e6de+_0x4866fd:_0x592c34,_0x37f10b=_0x2db148<_0x37f10b?_0x2db148:_0x37f10b,_0x5ba4b8=_0x2db148+_0x39acb7>_0x5ba4b8?_0x2db148+_0x39acb7:_0x5ba4b8;}return{'minRow':_0x75cc7d,'maxRow':_0x592c34,'minColumn':_0x37f10b,'maxColumn':_0x5ba4b8};}['_setupColumnsRowsFixing'](){const _0x1950d7=this['editor'],_0x24bab0=_0x1950d7['plugins']['get']('TrackChangesEditing'),_0x37f904=_0x1950d7['plugins']['get']('TableUtils');_0x1950d7['model']['document']['on']('change:data',()=>{const _0x2e1654=Array['from'](_0x1950d7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x14a00b,data:_0x3ef5a9}of _0x2e1654){const {group:_0x40fb35,id:_0x11740d,subType:_0x4683d2}=_0x24bab0['_splitMarkerName'](_0x14a00b);if('suggestion'!=_0x40fb35)continue;if(null!=_0x3ef5a9['oldRange'])continue;const _0x433002=_0x24bab0['getSuggestion'](_0x11740d);this['_tablePostFixingSubtypes']['includes'](_0x4683d2)&&this['_tableSuggestions']['add'](_0x433002);}},{'priority':'low'});const _0x4b4f51=(_0x52d4fa,_0x73a8ba)=>{let _0x2c64e2=!0x1;const _0x1d9f58=_0x73a8ba['createRangeOn'](_0x52d4fa),_0x2bad80=_0x52d4fa['findAncestor']('table'),_0x242b8c=_0x37f904['getCellLocation'](_0x52d4fa);for(const _0x534002 of this['_tableSuggestions']){const _0x1b3e4f=_0x534002['subType'],_0x339ef6=_0x1b3e4f['startsWith']('tablePaste'),_0x551196=_0x1b3e4f['substr'](_0x339ef6?0xa:0x5),_0x5e2d5f=_0x551196['toLowerCase'](),_0x2220a0=_0x5e2d5f['substr'](0x0,0x3)+'span',_0x2e274c='min'+_0x551196,_0x4dd47a='max'+_0x551196;if(!_0x534002['isInContent'])continue;if(_0x2bad80!=_0x534002['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x534002['isIntersectingWithRange'](_0x1d9f58))continue;const _0x26d977=_0x52d4fa['hasAttribute'](_0x2220a0)?_0x52d4fa['getAttribute'](_0x2220a0)-0x1:0x0,_0x37f4f6=this['_getSuggestionCoords'](_0x534002),_0x2e151f=_0x37f4f6[_0x2e274c],_0x52751c=_0x37f4f6[_0x4dd47a];_0x2e151f<=_0x242b8c[_0x5e2d5f]&&_0x242b8c[_0x5e2d5f]+_0x26d977<=_0x52751c&&(_0x534002['addRange'](_0x1d9f58),_0x2c64e2=!0x0);}return _0x2c64e2;};_0x1950d7['model']['document']['registerPostFixer'](_0x435c34=>{let _0x1b38c2=!0x1;for(const _0x2b45ca of _0x1950d7['model']['document']['differ']['getChanges']())if('insert'==_0x2b45ca['type']){if('tableRow'==_0x2b45ca['name']){for(const _0x54c905 of _0x2b45ca['position']['nodeAfter']['getChildren']())_0x1b38c2=_0x1b38c2||_0x4b4f51(_0x54c905,_0x435c34);}else'tableCell'==_0x2b45ca['name']&&(_0x1b38c2=_0x1b38c2||_0x4b4f51(_0x2b45ca['position']['nodeAfter'],_0x435c34));}return _0x1b38c2;});}['_getSuggestionCoords'](_0x524aee){return this['_getCoordsForCells'](_0x524aee['getRanges']()['map'](_0x5a89a3=>_0x5a89a3['start']['nodeAfter']));}}function Ne(_0x199148){return Array['from'](new Set(_0x199148)['values']());}class _t extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x160b66=this['editor'],_0x37ead0=_0x160b66['model']['document']['selection'],_0x266894=_0x160b66['locale'];if(!_0x160b66['plugins']['has']('TableEditing'))return;const _0x5ac497=_0x160b66['plugins']['get']('TrackChangesEditing'),_0x45a9dd=_0x160b66['plugins']['get']('TableUtils'),_0x11ef8a=_0x160b66['plugins']['get'](At);_0x11ef8a['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5ac497['enableCommand']('mergeTableCells',()=>{const _0x53d809=_0x45a9dd['getSelectionAffectedTableCells'](_0x160b66['model']['document']['selection']);_0x160b66['model']['change'](()=>{_0x5ac497['markMultiRangeBlockFormat'](_0x53d809,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x160b66['commands']['get']('mergeTableCells')['on']('execute',(_0x5c6ca8,_0x56dc50)=>{_0x160b66['commands']['get']('trackChanges')['value']&&(_0x56dc50['length']>0x0&&_0x56dc50[_0x56dc50['length']-0x1]&&_0x56dc50[_0x56dc50['length']-0x1]['forceDefaultExecution']||_0x5ac497['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5c6ca8['stop']());},{'priority':'highest'});for(const _0x1039d8 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x35d3c0=_0x160b66['commands']['get'](_0x1039d8);_0x5ac497['enableCommand'](_0x1039d8,()=>{const _0x3d9a6b=_0x160b66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f4ec4=>_0x1f4ec4['is']('element','tableCell')),_0x31f73b=_0x35d3c0['value'];_0x160b66['model']['change'](()=>{_0x5ac497['markMultiRangeBlockFormat']([_0x3d9a6b,_0x31f73b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xf08a97 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x40fd73=_0x160b66['commands']['get'](_0xf08a97);_0x5ac497['enableCommand'](_0xf08a97,()=>{const _0x1ce315=_0x45a9dd['getSelectionAffectedTableCells'](_0x160b66['model']['document']['selection'])[0x0],_0x342ee9=_0x1ce315['findAncestor']('table'),{column:_0x1901e9,row:_0x3b2166}=_0x45a9dd['getCellLocation'](_0x1ce315);let _0x595112=[];if('horizontally'==_0x40fd73['direction']){const _0x318d4f=_0x45a9dd['createTableWalker'](_0x342ee9,{'startRow':_0x3b2166,'endRow':_0x3b2166,'includeAllSlots':!0x0});_0x595112=Array['from'](_0x318d4f)['map'](_0x5c3cb2=>_0x5c3cb2['cell']);}else{const _0x550ff8=_0x45a9dd['createTableWalker'](_0x342ee9,{'column':_0x1901e9,'includeAllSlots':!0x0});_0x595112=Array['from'](_0x550ff8)['map'](_0x4c9be9=>_0x4c9be9['cell']);}_0x160b66['model']['change'](_0x8626f3=>{_0x5ac497['markBlockFormat'](_0x8626f3['createRangeOn'](_0x1ce315),{'commandName':_0xf08a97,'commandParams':[]},_0x595112,_0xf08a97);});});}_0x5ac497['descriptionFactory']['registerDescriptionCallback'](_0x5d7840=>{if('formatBlock'!=_0x5d7840['type']&&'formatInline'!=_0x5d7840['type'])return;const {data:_0x1f4bd4}=_0x5d7840;return _0x1f4bd4&&'mergeTableCells'==_0x1f4bd4['commandName']?{'type':'format','content':o(_0x266894,'*Merge\x20cells*')}:void 0x0;}),_0x5ac497['descriptionFactory']['registerDescriptionCallback'](_0x289482=>{if('formatBlock'!=_0x289482['type']&&'formatInline'!=_0x289482['type'])return;const {data:_0x376b38}=_0x289482;return _0x376b38?'splitTableCellVertically'==_0x376b38['commandName']?{'type':'format','content':o(_0x266894,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x376b38['commandName']?{'type':'format','content':o(_0x266894,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x20d59c=_0x11ef8a['_acceptFormatSuggestionCallbackFactory']();for(const _0x4a6448 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4a6448,'accept',_0x20d59c);for(const _0x55165c of['splitTableCellVertically','splitTableCellHorizontally'])_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x55165c,'accept',_0x20d59c);_0x5ac497['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2bde9a=>{_0x160b66['model']['change'](_0x3f6d53=>{const _0x260d5d=Array['from'](_0x37ead0['getRanges']())['map'](_0x1141cf=>_0x3590e7['fromRange'](_0x1141cf));_0x3f6d53['setSelection'](_0x2bde9a),_0x160b66['commands']['get']('mergeTableCells')['refresh'](),_0x160b66['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x29b12d=_0x260d5d['filter'](_0x90a4b3=>'$graveyard'!=_0x90a4b3['root']['rootName']);_0x29b12d['length']>0x0&&_0x3f6d53['setSelection'](_0x29b12d);for(const _0x2a4cf9 of _0x260d5d)_0x2a4cf9['detach']();});});for(const _0x236207 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x49a0ff=_0x160b66['commands']['get'](_0x236207);_0x49a0ff['on']('set:isEnabled',(_0x235328,_0x444bd8,_0x5899cc)=>{if(_0x5899cc){const _0x521693=_0x160b66['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x352073=>_0x352073['is']('element','tableCell'));this['_areMergableCells'](_0x49a0ff['value'],_0x521693)||(_0x235328['return']=!0x1,_0x235328['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x80bcd6=this['editor']['commands']['get']('mergeTableCells'),_0x6ba82e=this['editor']['plugins']['get']('TableUtils');if(!_0x80bcd6['isEnabled'])return!0x1;const _0x5e3857=_0x6ba82e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x47d856 of _0x5e3857)for(const _0x33acde of _0x5e3857)if(_0x47d856!=_0x33acde&&!this['_areMergableCells'](_0x47d856,_0x33acde))return!0x1;return!0x0;}['_areMergableCells'](_0x2dd793,_0x152610){const _0x4b2678=this['editor']['plugins']['get']('TrackChangesEditing'),_0x17ab81=this['editor']['model']['createRangeOn'](_0x2dd793),_0xf7cad5=this['editor']['model']['createRangeOn'](_0x152610),_0x91d367=new Set(),_0xa2d1a5=new Set();for(const _0x3a8440 of _0x4b2678['getSuggestions']())if(('insertion'==_0x3a8440['type']||'deletion'==_0x3a8440['type']||'mergeTableCells'==_0x3a8440['subType'])&&_0x3a8440['isInContent']){for(const _0x3aadaa of _0x3a8440['getRanges']())_0x3aadaa['containsRange'](_0x17ab81,!0x0)&&_0x91d367['add'](_0x3a8440['type']+':'+_0x3a8440['author']['id']),_0x3aadaa['containsRange'](_0xf7cad5,!0x0)&&_0xa2d1a5['add'](_0x3a8440['type']+':'+_0x3a8440['author']['id']);}if(_0x91d367['size']!=_0xa2d1a5['size'])return!0x1;for(const _0x733bcc of _0x91d367)if(!_0xa2d1a5['has'](_0x733bcc))return!0x1;return!0x0;}}class Ct extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x129a47=this['editor'];if(!_0x129a47['plugins']['has']('TableEditing'))return;const _0x5a20cd=_0x129a47['locale'],_0x526070=_0x129a47['plugins']['get']('TrackChangesEditing');_0x526070['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x526070['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x526070['registerBlockAttribute']('headingRows'),_0x526070['registerBlockAttribute']('headingColumns'),_0x526070['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5a20cd,'FORMAT_HEADER_ROW')),_0x526070['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5a20cd,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2ed988=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d7d01=this['editor']['plugins']['get']('TableUtils'),_0x3f996e=this['editor']['plugins']['get'](At)['_acceptFormatSuggestionCallbackFactory']();function _0x1d860d({showActiveMarker:_0x168959=!0x0,setDataAttribute:_0x3e52a0=!0x0}={}){return(_0x2fd8c7,_0x64bcb7,_0x34aa31)=>{const {type:_0x255b66,id:_0x4e2e4a}=_0x2ed988['_splitMarkerName'](_0x64bcb7['markerName']),_0x2603f0=_0x2ed988['getSuggestion'](_0x4e2e4a),_0x1904e3=_0x2603f0['data'];if('formatBlock'!=_0x2603f0['type']||!_0x1904e3||'setTableColumnHeader'!=_0x1904e3['commandName'])return;if(_0x64bcb7['item'])return void _0x2fd8c7['stop']();if(!_0x34aa31['consumable']['consume'](_0x64bcb7['markerRange'],_0x2fd8c7['name']))return;const _0x1757e1=_0x64bcb7['markerRange']['start']['nodeAfter'],_0x5274b4=_0x64bcb7['markerRange']['end']['nodeBefore'],_0x83202b=_0x1757e1['parent']['parent'],{column:_0x167f3a}=_0x5d7d01['getCellLocation'](_0x1757e1),{column:_0x135dfa}=_0x5d7d01['getCellLocation'](_0x5274b4);for(let _0x33e0c8=_0x167f3a;_0x33e0c8<=_0x135dfa;_0x33e0c8++){const _0xeb6842=_0x5d7d01['createTableWalker'](_0x83202b,{'column':_0x33e0c8,'includeAllSlots':!0x1});for(const _0x271cb6 of _0xeb6842){const _0x2eccf0=_0x271cb6['cell'],_0x122251=_0x34aa31['mapper']['toViewElement'](_0x2eccf0);_0x34aa31['writer']['addClass']('ck-suggestion-marker-'+_0x255b66,_0x122251),_0x3e52a0&&_0x34aa31['writer']['setAttribute']('data-suggestion',_0x4e2e4a,_0x122251),_0x34aa31['mapper']['bindElementToMarker'](_0x122251,_0x64bcb7['markerName']),_0x168959&&(_0x2ed988['activeMarkers']['includes'](_0x64bcb7['markerName'])?_0x34aa31['writer']['addClass']('ck-suggestion-marker--active',_0x122251):_0x34aa31['writer']['removeClass']('ck-suggestion-marker--active',_0x122251));}}};}_0x2ed988['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3f996e),_0x2ed988['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3f996e),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1d860d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56ef86,_0x5166f6,_0x5a5166)=>{_0x5a5166['options']['showSuggestionHighlights']&&_0x1d860d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x56ef86,_0x5166f6,_0x5a5166);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x2341fa,_0x17e7ee,_0x55dd83)=>{const {type:_0x354a23,id:_0x3b0a9e}=_0x2ed988['_splitMarkerName'](_0x17e7ee['markerName']),_0x1dcea7=_0x2ed988['getSuggestion'](_0x3b0a9e),_0x1530ce=_0x1dcea7['data'];if('formatBlock'!=_0x1dcea7['type']||!_0x1530ce||'setTableColumnHeader'!=_0x1530ce['commandName'])return;const _0x1c14a4=_0x55dd83['mapper']['markerNameToElements'](_0x17e7ee['markerName']);if(_0x1c14a4){for(const _0x25f9a3 of _0x1c14a4)_0x55dd83['writer']['removeClass']('ck-suggestion-marker-'+_0x354a23,_0x25f9a3),_0x55dd83['writer']['removeClass']('ck-suggestion-marker--active',_0x25f9a3),_0x55dd83['writer']['removeAttribute']('data-suggestion',_0x25f9a3),_0x55dd83['mapper']['unbindElementFromMarkerName'](_0x25f9a3,_0x17e7ee['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32e0c2=this['editor'],_0x1ade1c=_0x32e0c2['locale'];function _0x51e30c(_0x7316c){return{'type':'format','content':o(_0x1ade1c,'*Format:*\x20%0',_0x7316c)};}_0x32e0c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ca4ae=>{if('formatBlock'!=_0x2ca4ae['type'])return;const {data:_0x37c71e}=_0x2ca4ae;if(_0x37c71e){if('setTableRowHeader'==_0x37c71e['commandName']){const _0x26c792=_0x37c71e['commandParams'][0x0]['forceValue'];return _0x51e30c(o(_0x1ade1c,_0x26c792?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x37c71e['commandName']){const _0xed36e=_0x37c71e['commandParams'][0x0]['forceValue'];return _0x51e30c(o(_0x1ade1c,_0xed36e?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class vt extends _0x142398{['afterInit'](){const _0x4312d4=this['editor'],_0x325706=_0x4312d4['locale'],_0x5585d0=_0x4312d4['plugins']['get']('TrackChangesEditing');function _0x41391b(_0xab5fe3){return{'type':'format','content':''+o(_0x325706,'*Set\x20table\x20type:*\x20%0',_0xab5fe3)};}_0x4312d4['plugins']['has']('TableLayout')&&(_0x5585d0['enableCommand']('insertTableLayout'),_0x5585d0['enableDefaultAttributesIntegration']('tableType'),_0x5585d0['registerBlockAttribute']('tableType'),_0x5585d0['descriptionFactory']['registerElementLabel'](_0xa39ccd=>_0xa39ccd['is']('element','table')&&'layout'===_0xa39ccd['getAttribute']('tableType'),_0x487449=>o(_0x325706,'ELEMENT_LAYOUT_TABLE',_0x487449)),_0x5585d0['descriptionFactory']['registerDescriptionCallback'](_0x1a8927=>{const {data:_0x2c11eb}=_0x1a8927;if(_0x2c11eb&&'tableType'==_0x2c11eb['key'])switch(_0x2c11eb['newValue']){case'layout':return _0x41391b(o(_0x325706,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x41391b(o(_0x325706,'ELEMENT_CONTENT_TABLE'));}}));}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=/* #__PURE__ -- @preserve */
25
+ Object['fromEntries'](Be['map'](_0x255ba8=>[_0x255ba8,null]));class Nt extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x270537=this['editor'];if(!_0x270537['plugins']['has']('TableClipboard'))return;const _0x42f611=_0x270537['plugins']['get']('TrackChangesEditing'),_0x1a47bc=_0x270537['plugins']['get']('TableUtils'),_0x4940b2=_0x270537['plugins']['get'](At),_0x2d3036=_0x270537['plugins']['get']('TableClipboard'),_0x43b344=_0x270537['plugins']['get']('TableSelection'),_0x4db1e1=_0x270537['plugins']['get'](_0x27aa69);_0x4940b2['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x270537['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x270537['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x55abe5=null,_0x3ce18a=!0x1;_0x4db1e1['on']('contentInsertion',(_0x5c90ad,_0x3e9f30)=>{_0x3ce18a='paste'===_0x3e9f30['method'];}),_0x270537['model']['on']('insertContent',(_0x1005ac,_0x36e94c)=>{if(!_0x3ce18a&&null===_0x43b344['getSelectedTableCells']())return;const [_0x326550,_0x3b2c47]=_0x36e94c,_0xc02ac3=_0x36e94c[_0x36e94c['length']-0x1];_0xc02ac3&&_0xc02ac3['forceDefaultExecution']||_0x42f611['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x39cb7b,_0x1d4791,_0x13feab,_0x36c146,_0x231ba6){if(_0x1d4791&&!_0x1d4791['is']('documentSelection'))return!0x1;const _0x40d124=_0x231ba6['getTableIfOnlyTableInContent'](_0x39cb7b,_0x13feab);if(!_0x40d124||!Ue(_0x40d124,void 0x0,_0x36c146))return!0x1;const _0x59749e=_0x36c146['getSelectionAffectedTableCells'](_0x13feab['document']['selection']);if(!_0x59749e['length'])return!0x1;const _0x35de85=_0x59749e[0x0]['findAncestor']('table'),_0x4206f3=_0x36c146['getRowIndexes'](_0x59749e),_0x4532d1=_0x36c146['getColumnIndexes'](_0x59749e),_0x2611dc={'startRow':_0x4206f3['first'],'endRow':_0x4206f3['last'],'startColumn':_0x4532d1['first'],'endColumn':_0x4532d1['last']};return 0x1==_0x59749e['length']&&(_0x2611dc['endRow']+=_0x36c146['getRows'](_0x40d124)-0x1,_0x2611dc['endColumn']+=_0x36c146['getColumns'](_0x40d124)-0x1),Ue(_0x35de85,_0x2611dc,_0x36c146);}(_0x326550,_0x3b2c47,_0x270537['model'],_0x1a47bc,_0x2d3036)&&(_0x1005ac['stop'](),_0x55abe5={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x270537['model']['change'](()=>{_0x270537['model']['insertContent'](_0x36e94c[0x0],_0x36e94c[0x1],_0x36e94c[0x2],{'forceDefaultExecution':!0x0});const _0x16aff2=_0x140250(),{rowInsertionRanges:_0x19dab3,columnInsertionRanges:_0x356bbc,insertionRanges:_0x5d4d72,deletionRanges:_0x3232b6,cells:_0x406afe}=_0x55abe5;_0x19dab3['length']&&_0x42f611['markMultiRangeInsertion'](_0x19dab3,'tablePasteRow',{'tablePasteChainId':_0x16aff2}),_0x356bbc['length']&&_0x42f611['markMultiRangeInsertion'](_0x356bbc,'tablePasteColumn',{'tablePasteChainId':_0x16aff2}),_0x5d4d72['length']&&(_0x42f611['markMultiRangeInsertion'](_0x5d4d72,'tablePaste',{'tablePasteChainId':_0x16aff2,'skipNestingCheck':!0x0}),_0x5d4d72['forEach'](_0x470343=>_0x470343['detach']?.())),_0x3232b6['length']&&(_0x42f611['markMultiRangeDeletion'](_0x3232b6,'tablePaste',{'tablePasteChainId':_0x16aff2,'skipNestingCheck':!0x0}),_0x3232b6['forEach'](_0x25bca8=>_0x25bca8['detach']?.()));const _0x541f4c=_0x42f611['markMultiRangeBlockFormat'](_0x406afe['map'](({element:_0x2e510a})=>_0x2e510a),{'formatGroupId':_0x140250()},[],'tablePasteCell',{'tablePasteChainId':_0x16aff2});if(_0x541f4c){const _0x2e845e=_0x541f4c['getMarkers'](),_0x17d292=[];for(const {element:_0xf20273,attributes:_0x2948b2}of _0x406afe){if(!_0x2948b2)continue;const _0x242985=_0x270537['model']['createRangeOn'](_0xf20273),_0x23222e=_0x2e845e['find'](_0x16c6a6=>_0x16c6a6['getRange']()['isEqual'](_0x242985));_0x23222e&&_0x17d292['push']([_0x23222e['name'],_0x2948b2]);}_0x17d292['length']&&_0x541f4c['setAttribute']('markerAttributes',Object['fromEntries'](_0x17d292));}_0x55abe5=null;}));},{'priority':_0x568555['high']+0xa}),_0x4db1e1['on']('contentInsertion',()=>{_0x3ce18a=!0x1;},{'priority':'lowest'}),_0x270537['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4f066a,_0x761a13)=>{const [_0x10c9fa,_0x4cf590,,_0x4e3857]=_0x761a13;if(!_0x55abe5)return;_0x4f066a['stop']();const _0x52a83f=_0x10c9fa['cell'],_0x115b60=_0x4cf590,_0x49896a=Oe(_0x52a83f),_0x42f4cc=Oe(_0x115b60);_0x4f066a['return']=_0x52a83f;let _0x272416=null,_0x2e75bd=null;if(_0x42f4cc||_0x49896a){if(_0x49896a&&!_0x42f4cc){_0x4e3857['remove'](_0x52a83f['getChild'](0x0));for(const _0x239849 of Array['from'](_0x115b60['getChildren']()))_0x4e3857['insert'](_0x239849,_0x52a83f,'end');const _0x217fd2=_0x55abe5['rowInsertionIndexes']['includes'](_0x10c9fa['row']),_0x2398c3=_0x55abe5['columnInsertionIndexes']['includes'](_0x10c9fa['column']);_0x217fd2||_0x2398c3||(_0x272416=_0x3590e7['fromRange'](_0x4e3857['createRangeIn'](_0x52a83f)));}else _0x42f4cc&&!_0x49896a&&(_0x2e75bd=_0x4e3857['createRangeIn'](_0x52a83f));}else{const _0x5c0158=_0x4e3857['createElement']('tableCellSuggestion'),_0x38f969=_0x4e3857['createElement']('tableCellSuggestion');_0x4e3857['wrap'](_0x4e3857['createRangeIn'](_0x52a83f),_0x38f969),_0x4e3857['insert'](_0x5c0158,_0x52a83f,0x0);for(const _0x5ae105 of Array['from'](_0x115b60['getChildren']()))_0x4e3857['insert'](_0x5ae105,_0x5c0158,'end');_0x272416=_0x3590e7['fromRange'](_0x4e3857['createRangeOn'](_0x5c0158)),_0x2e75bd=_0x3590e7['fromRange'](_0x4e3857['createRangeOn'](_0x38f969));}const _0x69923a=Array['from'](_0x115b60['getAttributes']())['filter'](([_0x4963bc])=>Be['includes'](_0x4963bc));_0x55abe5['cells']['push']({'element':_0x52a83f,'attributes':_0x69923a['length']?Object['fromEntries'](_0x69923a):null}),_0x272416&&_0x55abe5['insertionRanges']['push'](_0x272416),_0x2e75bd&&_0x55abe5['deletionRanges']['push'](_0x2e75bd);},{'priority':'high'}),_0x1a47bc['on']('insertColumns',(_0x3aeded,_0x2fb77a)=>{const [_0x406899,_0x269e08={}]=_0x2fb77a;if(!_0x55abe5)return;const _0x62ed61=_0x269e08['at']||0x0,_0x4c9bae=_0x269e08['columns']||0x1;_0x55abe5['columnInsertionIndexes']=new Array(_0x4c9bae)['fill'](_0x62ed61)['map']((_0x28b1c1,_0x1a6d37)=>_0x28b1c1+_0x1a6d37);for(const {cell:_0x49caa8}of _0x1a47bc['createTableWalker'](_0x406899,{'startColumn':_0x62ed61,'endColumn':_0x62ed61+_0x4c9bae-0x1}))_0x55abe5['columnInsertionRanges']['push'](_0x270537['model']['createRangeOn'](_0x49caa8));},{'priority':'low'}),_0x1a47bc['on']('insertRows',(_0xd02696,_0x1bda45)=>{const [_0x4a5d22,_0x2cd5c2={}]=_0x1bda45;if(!_0x55abe5)return;const _0x472638=_0x2cd5c2['at']||0x0,_0x462163=_0x2cd5c2['rows']||0x1;_0x55abe5['rowInsertionIndexes']=new Array(_0x462163)['fill'](_0x472638)['map']((_0x5cfc69,_0x55f33f)=>_0x5cfc69+_0x55f33f);for(const {cell:_0x273169}of _0x1a47bc['createTableWalker'](_0x4a5d22,{'startRow':_0x472638,'endRow':_0x472638+_0x462163-0x1}))_0x55abe5['rowInsertionRanges']['push'](_0x270537['model']['createRangeOn'](_0x273169));},{'priority':'low'}),_0x42f611['descriptionFactory']['registerDescriptionCallback'](_0x2c1592=>{if(_0x2c1592['subType']&&_0x2c1592['subType']['startsWith']('tablePaste'))return _0x2c1592['previous']?{}:{'type':'insertion','content':o(_0x270537['locale'],'*Replace\x20table\x20cells*')};});const _0x1fda03=()=>!0x1;for(const _0x13782c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion',_0x13782c,'join',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('deletion',_0x13782c,'join',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13782c,'join',_0x1fda03);_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x1fda03),_0x42f611['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x52056d,_0x29dd24,_0x3634c8)=>{const _0x53ad81=_0x52056d['map'](_0x599081=>_0x599081['getContainedElement']())['filter'](_0x487349=>_0x487349),_0x5d463e=new Map(_0x53ad81['map'](_0x4f0e9f=>[_0x4f0e9f,null]));if(_0x55abe5){for(const {element:_0x29b5fb,attributes:_0x51cc3e}of _0x55abe5['cells'])_0x51cc3e&&_0x5d463e['set'](_0x29b5fb,_0x51cc3e);}else{if(_0x3634c8&&_0x3634c8['markerAttributes'])for(const [_0x35ab78,_0x53f84d]of Object['entries'](_0x3634c8['markerAttributes'])){const _0x186f99=_0x270537['model']['markers']['get'](_0x35ab78),_0x722300=_0x186f99?_0x186f99['getRange']()['getContainedElement']():null;_0x722300&&_0x5d463e['set'](_0x722300,_0x53f84d);}}_0x270537['model']['change'](_0x2f22a7=>{for(const [_0x17eb05,_0xec848b]of _0x5d463e)_0x2f22a7['setAttributes']({...xe,..._0xec848b},_0x17eb05);});});const _0x30ebec=(_0x36a3e9,_0x2e1e82)=>{_0x42f611['_suggestionFactory']['registerCustomCallback'](_0x36a3e9,'tablePaste',_0x2e1e82,(_0x29c3fa,_0x160f5f,_0x69e6d3)=>{_0x270537['model']['change'](_0x115747=>{const _0x4cfca0=[];for(const _0x4be6c6 of _0x29c3fa){const _0x9538ab=_0x4be6c6['start']['nodeAfter'];_0x9538ab['is']('element','tableCellSuggestion')&&_0x4cfca0['push'](_0x9538ab);}_0x42f611['_suggestionFactory']['getSuggestionCallback'](_0x36a3e9,null,_0x2e1e82)(_0x29c3fa,_0x160f5f,_0x69e6d3);for(const _0x5284a2 of _0x4cfca0)'$graveyard'!=_0x5284a2['root']['rootName']&&_0x115747['unwrap'](_0x5284a2);});});};_0x30ebec('insertion','accept'),_0x30ebec('insertion','discard'),_0x30ebec('deletion','accept'),_0x30ebec('deletion','discard'),_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x38c45a=>{const _0x15c62f=_0x38c45a['map'](_0x30e915=>_0x30e915['getContainedElement']()),_0x49cc10=_0x15c62f[0x0]['findAncestor']('table'),{minRow:_0x10c50c,maxRow:_0xbd1189}=_0x4940b2['_getCoordsForCells'](_0x15c62f);_0x1a47bc['removeRows'](_0x49cc10,{'at':_0x10c50c,'rows':_0xbd1189-_0x10c50c+0x1});}),_0x42f611['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x164507=>{const _0x56de91=_0x164507['map'](_0x2ef4bd=>_0x2ef4bd['getContainedElement']()),_0x8e5121=_0x56de91[0x0]['findAncestor']('table'),{minColumn:_0x4359e8,maxColumn:_0x76ef5a}=_0x4940b2['_getCoordsForCells'](_0x56de91);_0x1a47bc['removeColumns'](_0x8e5121,{'at':_0x4359e8,'columns':_0x76ef5a-_0x4359e8+0x1});});const _0x452306=(_0x1d9609,_0x1ac6b0)=>{if(!_0x1ac6b0['subType']||!_0x1ac6b0['subType']['startsWith']('tablePaste'))return;const _0x48534d=_0x1ac6b0['attributes']['tablePasteChainId'],_0xbd74c1=_0x42f611['getSuggestions']()['filter'](_0x334d7e=>_0x334d7e['isInContent']&&_0x334d7e['attributes']&&_0x334d7e['attributes']['tablePasteChainId']==_0x48534d);_0xbd74c1['length']&&_0x1ac6b0['getAllAdjacentSuggestions']()['length']!=_0xbd74c1['length']&&_0xbd74c1['reduce']((_0x2c4abc,_0x54aa7a)=>(_0x2c4abc['next']=_0x54aa7a,_0x54aa7a['previous']=_0x2c4abc,_0x54aa7a));};function _0x3c1c8d(_0x232edf,_0x5c5282=!0x0){const {id:_0x29075f,authorId:_0x35cc7a}=_0x42f611['_splitMarkerName'](_0x232edf['markerName']),_0x59a25d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x37bbd2=_0x42f611['activeMarkers']['includes'](_0x232edf['markerName']);return _0x37bbd2&&_0x59a25d['push']('ck-suggestion-marker--active'),{'classes':_0x59a25d,'attributes':{'data-suggestion':_0x29075f,'data-author-id':_0x35cc7a},'priority':_0x37bbd2&&_0x5c5282?0xbc2:0xbb8};}_0x42f611['on']('suggestionLoaded',_0x452306,{'priority':'high'}),_0x42f611['on']('suggestionUnloaded',_0x452306,{'priority':'high'}),_0x270537['model']['document']['registerPostFixer'](()=>{let _0x7b3857=!0x1;const _0x14a872=Array['from'](_0x270537['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x47c6d8,data:_0xdc5c5f}of _0x14a872){const {group:_0x48b12f,type:_0x56014c,id:_0x1623b2}=_0x42f611['_splitMarkerName'](_0x47c6d8);if('suggestion'!=_0x48b12f||'deletion'!=_0x56014c||_0xdc5c5f['oldRange'])continue;if(!_0x42f611['hasSuggestion'](_0x1623b2))continue;const _0x3baf7=_0x42f611['getSuggestion'](_0x1623b2)['getRanges'](),_0x27ded4=_0x270537['plugins']['get']('Users')['me'];for(const _0x5e9aeb of _0x42f611['getSuggestions']()){if(!_0x5e9aeb['isInContent']||_0x5e9aeb['author']!=_0x27ded4)continue;if('formatBlock'!=_0x5e9aeb['type']||'tablePasteCell'!=_0x5e9aeb['subType'])continue;if(_0x5e9aeb['getRanges']()['every'](_0x5d1e7c=>_0x3baf7['some'](_0x98781c=>_0x98781c['containsRange'](_0x5d1e7c,!0x0)))){for(const _0x293a75 of _0x5e9aeb['getAllAdjacentSuggestions']())_0x293a75['isInContent']&&(_0x293a75['discard'](),_0x7b3857=!0x0);}}}return _0x7b3857;}),_0x270537['model']['document']['registerPostFixer'](_0x2e73da=>{const _0x40a0ed=_0x270537['commands']['get']('redo');if(!_0x40a0ed||!_0x40a0ed['_createdBatches']['has'](_0x2e73da['batch']))return!0x1;let _0x5bf1bc=!0x1;const _0x33e148=_0x270537['plugins']['get']('Users')['me'],_0x32877b=_0x270537['model']['document']['differ']['getChanges'](),_0x2767ff=Array['from'](_0x270537['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x5f5bb7,data:_0x2ba82b})=>{const {group:_0x1e05fc,subType:_0x83dacb,authorId:_0x46fff4}=_0x42f611['_splitMarkerName'](_0x5f5bb7);return'suggestion'==_0x1e05fc&&'tablePaste'==_0x83dacb&&_0x46fff4==_0x33e148['id']&&!_0x2ba82b['oldRange'];});for(const _0x257f89 of _0x32877b){if('insert'!=_0x257f89['type']||'tableCellSuggestion'!=_0x257f89['name']||0x1!=_0x257f89['length'])continue;const _0x23295d=_0x2e73da['createRange'](_0x257f89['position'],_0x257f89['position']['getShiftedBy'](0x1));if(!_0x2767ff['find'](({data:_0x3b1bda})=>_0x3b1bda['newRange']['isEqual'](_0x23295d))){for(const {name:_0x1d1786,data:_0x5258b6}of _0x2767ff)if(_0x23295d['containsRange'](_0x5258b6['newRange'])){_0x2e73da['updateMarker'](_0x1d1786,{'range':_0x23295d}),_0x5bf1bc=!0x0;break;}}}return _0x5bf1bc;}),_0x270537['model']['document']['registerPostFixer'](_0x145057=>{let _0x2decf4=!0x1;const _0x1f94cf=_0x270537['plugins']['get']('Users')['me'],_0x2eb896=_0x42f611['getSuggestions']()['filter'](_0x20356b=>_0x20356b['isInContent']&&_0x20356b['author']==_0x1f94cf),_0x4a8bf0=new Set(),_0x1ee566=new Set();for(const _0x42ffa1 of _0x2eb896)if('tablePaste'==_0x42ffa1['subType'])for(const _0x4f5da0 of _0x42ffa1['getMarkers']()){const _0x4bc5de=_0x4f5da0['getRange']()['getContainedElement']();if(_0x4bc5de){if(_0x4bc5de['is']('element','tableCellSuggestion')&&Oe(_0x4bc5de)){_0x42ffa1['removeMarker'](_0x4f5da0['name']),_0x4a8bf0['add'](_0x4bc5de),_0x2decf4=!0x0;const _0x48efa9=_0x4bc5de['nextSibling'],_0x332709=_0x4bc5de['previousSibling'],_0x557354=_0x48efa9&&_0x48efa9['is']('element','tableCellSuggestion'),_0x2d04f3=_0x332709&&_0x332709['is']('element','tableCellSuggestion');_0x557354&&!_0x4a8bf0['has'](_0x48efa9)&&_0x1ee566['add'](_0x48efa9),_0x2d04f3&&!_0x4a8bf0['has'](_0x332709)&&_0x1ee566['add'](_0x332709);}else _0x4bc5de['is']('element','paragraph')&&_0x4bc5de['isEmpty']&&(_0x42ffa1['removeMarker'](_0x4f5da0['name']),_0x2decf4=!0x0);}}else{if('tablePasteCell'==_0x42ffa1['subType']){if(!_0x42ffa1['attributes']||!_0x42ffa1['attributes']['tablePasteChainId'])continue;const _0x193df1=_0x42ffa1['attributes']['markerAttributes'];if(_0x193df1&&Object['keys'](_0x193df1)['length'])continue;const _0x2bc7c3=_0x42ffa1['attributes']['tablePasteChainId'];let _0x1eb03b=!0x0,_0xd6f2fd=!0x0;for(const _0x310f79 of _0x2eb896)if(_0x310f79['subType']&&_0x310f79['subType']['startsWith']('tablePaste')){if(!_0x310f79['attributes']['tablePasteChainId']){_0xd6f2fd=!0x1;break;}if(_0x310f79['id']!=_0x42ffa1['id']&&_0x310f79['attributes']['tablePasteChainId']==_0x2bc7c3){_0x1eb03b=!0x1;break;}}_0xd6f2fd&&_0x1eb03b&&(_0x42ffa1['removeMarkers'](),_0x2decf4=!0x0);}}for(const _0x526c81 of _0x4a8bf0)_0x145057['remove'](_0x526c81);for(const _0x2fbbfd of _0x1ee566)_0x145057['unwrap'](_0x2fbbfd);return _0x2decf4;}),_0x270537['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x4136e6=>_0x3c1c8d(_0x4136e6),'converterPriority':'high'}),_0x270537['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6f12de,_0x5991fb)=>_0x5991fb['options']['showSuggestionHighlights']?_0x3c1c8d(_0x6f12de,!0x1):null,'converterPriority':'high'});const _0x3cf481=_0x270537['editing']['view'];this['listenTo'](_0x3cf481['document'],'clipboardOutput',(_0x49161a,_0x15cc9b)=>{const _0x4e7fa8=[];for(const _0x1e11a6 of _0x3cf481['createRangeIn'](_0x15cc9b['content'])['getItems']())_0x1e11a6['is']('element','suggestion-td')&&_0x4e7fa8['push'](_0x1e11a6);_0x3cf481['change'](_0xac7e27=>{for(const _0x3cd7a3 of _0x4e7fa8)_0xac7e27['move'](_0xac7e27['createRangeIn'](_0x3cd7a3),_0xac7e27['createPositionBefore'](_0x3cd7a3)),_0xac7e27['remove'](_0x3cd7a3);});});}}function Oe(_0x62c366){if(_0x62c366['isEmpty'])return!0x0;const _0x9f79e3=_0x62c366['getChild'](0x0);return _0x9f79e3['is']('element','paragraph')&&_0x9f79e3['isEmpty'];}function Ue(_0x36300b,_0x27c713={},_0x21d32e){for(const {isAnchor:_0x3a630b,cellHeight:_0x26ea95,cellWidth:_0x3e746e}of _0x21d32e['createTableWalker'](_0x36300b,{'includeAllSlots':!0x0,..._0x27c713}))if(!_0x3a630b||0x1!=_0x26ea95||0x1!=_0x3e746e)return!0x1;return!0x0;}class Dt extends _0x142398{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0xae76af=this['editor']['plugins']['get']('TrackChangesEditing');_0xae76af['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0xae76af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0xae76af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xae76af['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0xae76af['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0xae76af['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3375b3,_0x403f85){const _0x52b5b7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42926b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x34b63f=_0x403f85['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x263da1=_0x42926b['getColumnGroupElement'](_0x34b63f);let _0x2fd94d=_0x263da1?_0x42926b['getTableColumnsWidths'](_0x263da1):null,_0x3dd25b=_0x34b63f['getAttribute']('tableWidth')||null;const _0x41f874=_0x403f85['tableWidth']||_0x3dd25b,_0x5c25fb=_0x403f85['columnWidths']||_0x2fd94d,_0x12d2e1=this['editor']['plugins']['get']('Users')['me'];for(const _0x3ae161 of _0x52b5b7['getSuggestions']()){const _0x6a9d26=_0x3ae161['getContainedElement']();if('resizeTable'===_0x3ae161['subType']&&_0x6a9d26===_0x34b63f){_0x3ae161['author']!==_0x12d2e1&&_0x3ae161['discard']();const _0x49baee=_0x3ae161['data']['commandParams'];_0x3dd25b=_0x49baee[0x0]['tableWidth'],_0x2fd94d=_0x49baee[0x0]['columnWidths'];break;}}_0x3375b3({'table':_0x34b63f,'tableWidth':_0x41f874,'columnWidths':_0x5c25fb}),_0x52b5b7['markBlockFormat'](_0x34b63f,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3dd25b,'columnWidths':_0x2fd94d}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xcf50c5){if('formatBlock'!=_0xcf50c5['type']&&'formatInline'!=_0xcf50c5['type'])return;const {data:_0x578e70}=_0xcf50c5;if(_0x578e70&&'resizeTable'===_0x578e70['formatGroupId']){const _0x297968='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x297968)};}}}class Mt extends _0x142398{['afterInit'](){const _0x1f188f=this['editor'];_0x1f188f['plugins']['has']('Template')&&_0x1f188f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x142398{['afterInit'](){const _0x5b5d3c=this['editor'];if(!_0x5b5d3c['commands']['get']('insertTableOfContents'))return;_0x5b5d3c['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x550b11=_0x5b5d3c['plugins']['get']('TrackChangesEditing'),_0x1ecc0f=_0x5b5d3c['locale'];_0x550b11['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1ddaf1=>o(_0x1ecc0f,'ELEMENT_TABLE_OF_CONTENTS',_0x1ddaf1));}}class Bt extends _0x142398{['afterInit'](){const _0x2f0a2b=this['editor'];if(!_0x2f0a2b['plugins']['has']('Title'))return;const _0x197568=_0x2f0a2b['plugins']['get']('TrackChangesEditing');_0x197568['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2f0a2b['locale'],'ELEMENT_TITLE')),_0x2f0a2b['model']['document']['registerPostFixer'](_0x57b340=>{let _0x1a12a2=!0x1;const _0x1afdae=Array['from'](_0x2f0a2b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x290813,data:_0x4f5718}of _0x1afdae){const {group:_0x113cb8}=_0x197568['_splitMarkerName'](_0x290813);if('suggestion'!==_0x113cb8||!_0x4f5718['newRange'])continue;const _0x26f9f3=_0x4f5718['newRange'],_0x4feb98=_0x26f9f3['end']['nodeBefore'];if(!_0x4feb98||!_0x4feb98['is']('element','title-content'))continue;if(!_0x26f9f3['start']['isTouching'](_0x26f9f3['end']))continue;const _0x5c8d08=_0x2f0a2b['model']['schema']['getNearestSelectionRange'](_0x26f9f3['end'],'forward');if(_0x5c8d08&&_0x5c8d08['isCollapsed']){const _0x383989=_0x57b340['createRange'](_0x26f9f3['start'],_0x5c8d08['start']);_0x383989['isEqual'](_0x26f9f3)||(_0x57b340['updateMarker'](_0x290813,{'range':_0x383989}),_0x1a12a2=!0x0);}_0x1a12a2||(_0x57b340['removeMarker'](_0x290813),_0x1a12a2=!0x0);}return _0x1a12a2;});}}class Tt extends _0x142398{['afterInit'](){const _0x3d3af9=this['editor'],_0x5d2edb=_0x3d3af9['plugins']['get']('TrackChangesEditing');_0x3d3af9['plugins']['has']('Uploadcare')&&(_0x5d2edb['enableCommand']('uploadcare'),_0x3d3af9['plugins']['has']('UploadcareImageEdit')&&(_0x5d2edb['enableCommand']('uploadcareImageEdit'),_0x5d2edb['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x5d2edb['registerBlockAttribute']('uploadcareImageId'),_0x5d2edb['descriptionFactory']['registerDescriptionCallback'](_0x2e02b8=>{if('attribute'!=_0x2e02b8['type'])return;const {data:_0x211be5}=_0x2e02b8;return _0x211be5&&'uploadcareImageId'==_0x211be5['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x142398{['afterInit'](){const _0x269aeb=this['editor'],_0x338710=_0x269aeb['plugins']['get']('TrackChangesEditing');_0x269aeb['plugins']['has']('UndoEditing')&&(_0x338710['enableCommand']('undo'),_0x338710['enableCommand']('redo'));}}class Ot extends _0x142398{static get['requires'](){return[At];}['afterInit'](){const _0x2d5e09=this['editor'];if(!_0x2d5e09['plugins']['has']('TableCaptionEditing'))return;_0x2d5e09['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Et extends _0x142398{['tableProperties'];['tableCellProperties'];constructor(_0x4a2406){super(_0x4a2406),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['afterInit'](){const _0x5c9290=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5739d7 of this['tableProperties'])_0x5c9290['enableCommand'](_0x5739d7,(_0x452e49,_0x476352)=>{const _0x19ad53=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5739d7,[_0x19ad53],this['tableProperties'],'tableProperties',_0x452e49,_0x476352);});_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5c9290['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1b3988,_0x20b2dc)=>this['handleDiscardAction'](this['tableProperties'],_0x1b3988,_0x20b2dc)),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x395817 of this['tableCellProperties'])_0x5c9290['enableCommand'](_0x395817,(_0x2d27f7,_0x4c63ca)=>{const _0x4c8871=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x395817,_0x4c8871,this['tableCellProperties'],'tableCellProperties',_0x2d27f7,_0x4c63ca);});_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5c9290['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x43f09c,_0x3c75b7)=>this['handleDiscardAction'](this['tableCellProperties'],_0x43f09c,_0x3c75b7)),_0x5c9290['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5c9290['descriptionFactory']['registerDescriptionCallback'](_0x51f466=>this['handleSuggestionDescription'](_0x51f466));}['_handlePropertyChange'](_0x3c181b,_0x480d74,_0x997c07,_0x3e7556,_0x1e82e1,_0x1148ba){const _0x413e0a=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x1148ba['batch'],()=>{for(const _0x16941e of _0x480d74){if(this['_getSuggestion'](_0x16941e,_0x3e7556))_0x1e82e1(_0x1148ba);else{const _0x5239a7={};for(const _0xe28908 of _0x997c07){const _0x576a88=_0x16941e['getAttribute'](_0xe28908);void 0x0!==_0x576a88&&(_0x5239a7[_0xe28908]=_0x576a88);}_0x1e82e1(_0x1148ba),_0x413e0a['markBlockFormat'](_0x16941e,{'commandParams':[_0x5239a7]},[],_0x3e7556);}}});}['handleDiscardAction'](_0x4349a3,_0x99760e,_0x473c27){const _0xf127c8=_0x99760e[0x0]['start']['nodeAfter'],_0x5e189b=_0x473c27['commandParams'][0x0];this['editor']['model']['change'](_0x265d77=>{for(const _0x342871 of _0x4349a3)void 0x0!==_0x5e189b[_0x342871]?_0x265d77['setAttribute'](_0x342871,_0x5e189b[_0x342871],_0xf127c8):_0x265d77['removeAttribute'](_0x342871,_0xf127c8);});}['handleSuggestionDescription'](_0x3495d8){if(_0x3495d8['data'])switch(_0x3495d8['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x22b48d,_0x3171ff){const _0x130b34=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1cee14 of _0x130b34['getSuggestions']({'skipNotAttached':!0x0})){const _0x2d5fd2=_0x1cee14['getContainedElement']();if(_0x1cee14['subType']===_0x3171ff&&_0x2d5fd2===_0x22b48d)return _0x1cee14;}return null;}}class Rt extends _0x142398{['afterInit'](){const _0x3238db=this['editor'];if(!_0x3238db['plugins']['has']('LineHeight'))return;const _0x5a2aac=_0x3238db['plugins']['get']('TrackChangesEditing'),_0x10fe05=_0x3238db['locale'];_0x5a2aac['enableDefaultAttributesIntegration']('lineHeight'),_0x5a2aac['registerBlockAttribute']('lineHeight'),_0x5a2aac['descriptionFactory']['registerAttributeLabel']('lineHeight',o(_0x10fe05,'FORMAT_LINE_HEIGHT'));}}const m='$elementName';class d extends _0x142398{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;['_trackingSessionId']=null;static get['requires'](){return['CommentsRepository',_0x1e445d,_0x20a14a,O,E,R,U,V,G,F,L,J,K,z,W,Q,X,Y,Z,tt,it,nt,et,ot,st,rt,at,ct,ft,ht,mt,ut,H,Rt,q,gt,lt,dt,pt,kt,wt,bt,yt,jt,St,It,At,_t,Ct,vt,Ot,Nt,Dt,$t,Et,Mt,Bt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x46fd51){super(_0x46fd51),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x1deb30,_0x20ff13,_0x448f10,_0x2068f2)=>{this['_model']['change'](()=>{for(const _0x325da2 of[..._0x2068f2,..._0x448f10])this['_model']['markers']['has'](_0x325da2)&&_0x46fd51['editing']['reconvertMarker'](_0x325da2);});}),this['descriptionFactory']=new x(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Vt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x46fd51['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x46fd51['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x46fd51['config']['get']('trackChanges.trackFormatChanges'),_0x46fd51['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x46fd51['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new N(_0x46fd51,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x13f71d=this['editor'],_0x84dda=(_0x1d1033,_0x4a5f8c)=>{if('attribute'!=_0x1d1033)return'ck-suggestion-marker-'+_0x1d1033;const _0x14432c=_0x4a5f8c['split']('|')[0x0];return this['_isBlockAttribute'](_0x14432c)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x13f71d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x240266=>{const {id:_0x232a31,authorId:_0x3e46af,type:_0x304802,subType:_0x234a2b}=this['_splitMarkerName'](_0x240266['markerName']),_0x37c05e=['ck-suggestion-marker',_0x84dda(_0x304802,_0x234a2b)];let _0x5b6c56=0xbb8;return this['activeMarkers']['includes'](_0x240266['markerName'])&&(_0x37c05e['push']('ck-suggestion-marker--active'),_0x5b6c56=0xbc2),'deletion'==_0x304802&&(_0x5b6c56+=0x5),{'classes':_0x37c05e,'attributes':{'data-suggestion':_0x232a31,'data-author-id':_0x3e46af},'priority':_0x5b6c56};}}),_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x49d99b=>{_0x49d99b['on']('addMarker:suggestion',(_0x1f8170,_0x294109,_0x542658)=>{if(!_0x542658['options']['showSuggestionHighlights'])return;const _0x1e4eaf=_0x294109['item'];if(!_0x1e4eaf)return;const _0x594943=_0x542658['mapper']['toViewElement'](_0x1e4eaf);_0x13f71d['model']['schema']['isObject'](_0x1e4eaf)&&_0x594943&&!_0x594943['getCustomProperty']('widget')&&_0x594943['is']('containerElement')&&_0x4c0789(_0x594943,_0x542658['writer']);},{'priority':'high'});}),_0x13f71d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x49da9b,_0x161d07)=>{if(!_0x161d07['options']['showSuggestionHighlights'])return null;const {id:_0x4fabe5,authorId:_0x444081,type:_0x4e1dfa,subType:_0x4fee08}=this['_splitMarkerName'](_0x49da9b['markerName']);return{'classes':['ck-suggestion-marker',_0x84dda(_0x4e1dfa,_0x4fee08)],'priority':0xbb8,'attributes':{'data-suggestion':_0x4fabe5,'data-author-id':_0x444081}};}});const _0x364606=({showActiveMarkers:_0x584376=!0x0,isAttributeSuggestion:_0x66df9d=!0x1}={})=>(_0x193248,_0x570a12,_0x28dd05)=>{if(!_0x570a12['item'])return;const {id:_0x1f0292,authorId:_0x442261}=this['_splitMarkerName'](_0x570a12['markerName']);if(_0x66df9d){const _0x85f382=this['_suggestions']['get'](_0x1f0292),_0x1d9dec=this['_getAttributeKey'](_0x85f382);if(!this['_isBlockAttribute'](_0x1d9dec))return;}if(_0x570a12['item']['is']('selection'))return void _0x28dd05['consumable']['consume'](_0x570a12['item'],_0x193248['name']);const _0x7a9004=_0x28dd05['mapper']['toViewElement'](_0x570a12['item']);if(_0x570a12['item']['is']('element')&&_0x13f71d['model']['schema']['isBlock'](_0x570a12['item'])&&!_0x7a9004['getCustomProperty']('addHighlight')){_0x28dd05['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x7a9004),_0x28dd05['writer']['setAttribute']('data-suggestion',_0x1f0292,_0x7a9004),_0x28dd05['writer']['setAttribute']('data-author-id',_0x442261,_0x7a9004),_0x28dd05['mapper']['bindElementToMarker'](_0x7a9004,_0x570a12['markerName']),_0x584376&&(this['activeMarkers']['includes'](_0x570a12['markerName'])?_0x28dd05['writer']['addClass']('ck-suggestion-marker--active',_0x7a9004):_0x28dd05['writer']['removeClass']('ck-suggestion-marker--active',_0x7a9004));for(const _0x15ebeb of _0x13f71d['model']['createRangeIn'](_0x570a12['item'])['getItems']())_0x28dd05['consumable']['consume'](_0x15ebeb,_0x193248['name']);_0x28dd05['consumable']['consume'](_0x570a12['item'],_0x193248['name']);}};_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x3bc801=>{_0x3bc801['on']('addMarker:suggestion:formatBlock',(_0x44752c,_0xa09484,_0x1e7f7e)=>{_0x1e7f7e['options']['showSuggestionHighlights']&&_0x364606({'showActiveMarkers':!0x1})(_0x44752c,_0xa09484,_0x1e7f7e);},{'priority':'highest'});}),_0x13f71d['conversion']['for']('dataDowncast')['add'](_0x1da43f=>{_0x1da43f['on']('addMarker:suggestion:attribute',(_0x20e240,_0x1aeb46,_0x4b835b)=>{_0x4b835b['options']['showSuggestionHighlights']&&_0x364606({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x20e240,_0x1aeb46,_0x4b835b);},{'priority':'highest'});}),_0x13f71d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4c916d,_0x585cc8)=>{if(_0x585cc8['options']['showSuggestionHighlights']){const {id:_0x37f98d,authorId:_0x24fcc9}=this['_splitMarkerName'](_0x4c916d);return _0x4c916d['includes'](':split')||_0x4c916d['includes'](':merge')?{'group':'suggestion','name':_0x4c916d['substr'](0xb),'attributes':{'data-suggestion':_0x37f98d,'data-author-id':_0x24fcc9}}:null;}return{'group':'suggestion','name':_0x4c916d['substr'](0xb)};}}),_0x13f71d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4a1230,{writer:_0x136c3b})=>{let _0x54d68b='suggestion:'+_0x4a1230['getAttribute']('suggestion-type')+':'+_0x4a1230['getAttribute']('id');return _0x4a1230['getAttribute']('marker-count')&&(_0x54d68b+=':'+_0x4a1230['getAttribute']('marker-count')),_0x136c3b['createElement']('$marker',{'data-name':_0x54d68b});}}),_0x13f71d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x3675fe=>{_0x3675fe['on']('addMarker:suggestion:formatBlock',_0x364606(),{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x161d20=>{_0x161d20['on']('addMarker:suggestion:attribute',_0x364606({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x9016c8=>{_0x9016c8['on']('removeMarker:suggestion:formatBlock',(_0x3e8cb2,_0x6c32e4,_0xde60ee)=>{const _0x1e5474=_0xde60ee['mapper']['markerNameToElements'](_0x6c32e4['markerName']);if(_0x1e5474){for(const _0x483908 of _0x1e5474)_0x483908['getCustomProperty']('addHighlight')||(_0xde60ee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x483908),_0xde60ee['writer']['removeAttribute']('data-suggestion',_0x483908),_0xde60ee['writer']['removeAttribute']('data-author-id',_0x483908),_0xde60ee['mapper']['unbindElementFromMarkerName'](_0x483908,_0x6c32e4['markerName']));}},{'priority':'high'});}),_0x13f71d['conversion']['for']('editingDowncast')['add'](_0x1b3453=>{_0x1b3453['on']('removeMarker:suggestion:attribute',(_0x5f2357,_0x529330,_0x44dcc6)=>{const _0x2e3068=_0x44dcc6['mapper']['markerNameToElements'](_0x529330['markerName']);if(!_0x2e3068)return;const {id:_0x305bc1}=this['_splitMarkerName'](_0x529330['markerName']),_0x49e0a3=this['_suggestions']['get'](_0x305bc1),_0x15918f=this['_getAttributeKey'](_0x49e0a3);if(this['_isBlockAttribute'](_0x15918f)){for(const _0x4fea96 of _0x2e3068)_0x4fea96['getCustomProperty']('addHighlight')||(_0x44dcc6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x4fea96),_0x44dcc6['writer']['removeAttribute']('data-suggestion',_0x4fea96),_0x44dcc6['writer']['removeAttribute']('data-author-id',_0x4fea96),_0x44dcc6['mapper']['unbindElementFromMarkerName'](_0x4fea96,_0x529330['markerName']));}},{'priority':'high'});}),_0x13f71d['model']['document']['registerPostFixer'](_0x33094f=>{let _0x3dce47=!0x1;const _0x20d420=Array['from'](_0x13f71d['model']['document']['differ']['getChangedMarkers']()),_0x436aa6=new Set();for(const {name:_0x420014,data:_0x4a000b}of _0x20d420){const {group:_0x3941bc,type:_0x5a9f9e,subType:_0x4317db,id:_0x1a5560}=this['_splitMarkerName'](_0x420014);if('suggestion'!==_0x3941bc)continue;const _0x4c089c=this['_suggestions']['get'](_0x1a5560);if(null!=_0x4a000b['newRange']){'formatInline'==_0x5a9f9e&&(_0x3dce47=_0x3dce47||Gt(_0x4a000b['newRange'],_0x420014,_0x33094f,_0x13f71d['model']['schema']));const _0x1f9f8c='attribute'==_0x5a9f9e&&this['_isBlockAttribute'](_0x4317db['split']('|')[0x0]);if(_0x4a000b['newRange']['isCollapsed']||'$graveyard'==_0x4a000b['newRange']['root']['rootName']||'formatBlock'==_0x5a9f9e&&!Jt(_0x4a000b['newRange'])||_0x1f9f8c&&!Jt(_0x4a000b['newRange'])||'deletion'==_0x5a9f9e&&!Kt(_0x4a000b['newRange']))_0x33094f['removeMarker'](_0x420014),_0x3dce47=!0x0;else{if(!_0x4c089c||!_0x4c089c['isInContent'])continue;if(_0x4a000b['newRange']&&_0x4a000b['oldRange']&&_0x4a000b['newRange']['isEqual'](_0x4a000b['oldRange']))continue;_0x436aa6['add'](_0x4c089c);}}}return _0x436aa6['size']>0x0&&(_0x3dce47=!!this['_joinWithAdjacentSuggestions'](_0x436aa6)||_0x3dce47),_0x3dce47;}),_0x13f71d['model']['document']['registerPostFixer'](_0x290fd8=>{let _0x5104b5=!0x1;for(const _0x1a55d3 of _0x13f71d['model']['document']['differ']['getChanges']())if('insert'==_0x1a55d3['type'])for(const _0x2a3ffc of this['_suggestions']['values']()){if(_0x2a3ffc['isMultiRange']||!_0x2a3ffc['isInContent'])continue;const _0x5d1a1d='formatBlock'==_0x2a3ffc['type'],_0x1977c3=this['_getAttributeKey'](_0x2a3ffc),_0x50fc77=_0x1977c3&&this['_isBlockAttribute'](_0x1977c3);if(!_0x5d1a1d&&!_0x50fc77)continue;const _0x19ba84=_0x2a3ffc['getFirstRange']();if(_0x19ba84['start']['parent']!=_0x19ba84['end']['parent']&&!_0x19ba84['end']['isAtEnd']){const _0x488f37=_0x13f71d['model']['createPositionAt'](_0x19ba84['start']['nodeAfter'],'end'),_0x30866a=_0x13f71d['model']['createRange'](_0x19ba84['start'],_0x488f37);_0x290fd8['updateMarker'](_0x2a3ffc['getFirstMarker'](),{'range':_0x30866a}),_0x5104b5=!0x0;}}return _0x5104b5;}),_0x13f71d['model']['document']['registerPostFixer'](_0x17fe53=>this['_processAttributeChanges'](_0x17fe53)),_0x13f71d['model']['document']['registerPostFixer'](_0x1bc3ca=>!_0x1bc3ca['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1bc3ca)),_0x13f71d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x13f71d['model']['document']['on']('change:data',(_0x2b6a2a,_0x94a40b)=>{if(!_0x94a40b['isLocal']||_0x94a40b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2cfa26=_0x13f71d['model']['document']['differ']['getChanges']();if(0x0==_0x2cfa26['length'])return;const _0x490701=[],_0x3b0b46=_0x2cfa26['filter'](_0x43d512=>'attribute'==_0x43d512['type']),_0x72aeb9=_0x2cfa26['filter'](_0x48db29=>'insert'==_0x48db29['type']&&'$text'!=_0x48db29['name']);for(const _0x14d1d4 of _0x3b0b46)this['_isRegisteredAttribute'](_0x14d1d4['attributeKey'])&&_0x490701['push']({'key':_0x14d1d4['attributeKey'],'newValue':_0x14d1d4['attributeNewValue'],'oldValue':_0x14d1d4['attributeOldValue'],'range':Ht(_0x14d1d4['range'],_0x13f71d['model'])});for(const _0x3b5ada of _0x72aeb9){if('rename'!=_0x3b5ada['action']&&'refresh'!=_0x3b5ada['action'])continue;const _0x3126a1=qt(_0x3b5ada['position']['nodeAfter'],_0x13f71d['model']),_0x4acfd5=_0x3b5ada['before'];'rename'==_0x3b5ada['action']&&_0x490701['push']({'key':m,'newValue':_0x3b5ada['name'],'oldValue':_0x4acfd5['name'],'range':_0x3126a1});for(const [_0x2749a9,_0x2963ff]of _0x4acfd5['attributes']){if(!this['_isRegisteredAttribute'](_0x2749a9))continue;const _0x26ce8a=_0x3b5ada['attributes']['get'](_0x2749a9);_0x2963ff!==_0x26ce8a&&_0x490701['push']({'key':_0x2749a9,'newValue':_0x26ce8a,'oldValue':_0x2963ff,'range':_0x3126a1});}for(const [_0x8c8411,_0x5f48b3]of _0x3b5ada['attributes'])this['_isRegisteredAttribute'](_0x8c8411)&&(_0x4acfd5['attributes']['has'](_0x8c8411)||_0x490701['push']({'key':_0x8c8411,'newValue':_0x5f48b3,'oldValue':null,'range':_0x3126a1}));}0x0!=_0x490701['length']&&_0x13f71d['model']['enqueueChange'](_0x94a40b,_0x53f09e=>{const _0x9a9b06=_0x140250();for(const {range:_0x5e0ee4,key:_0x169244,oldValue:_0x5279be,newValue:_0x153b73}of _0x490701)this['markAttributeChange'](_0x5e0ee4,_0x169244,_0x5279be,_0x153b73,{'groupId':_0x9a9b06});this['_reduceExistingSuggestions'](_0x53f09e,_0x490701);});},{'priority':'lowest'}),_0x13f71d['model']['markers']['on']('update:suggestion',(_0x1a3d92,_0x3c4aae,_0x3515cd)=>{if(null==_0x3515cd){const {id:_0x5b62b6}=this['_splitMarkerName'](_0x3c4aae['name']),_0x6c8d54=this['_suggestions']['get'](_0x5b62b6);_0x6c8d54&&_0x6c8d54['addMarkerName'](_0x3c4aae['name']);}}),_0x13f71d['model']['document']['on']('change:data',()=>{const _0x503d63=Array['from'](_0x13f71d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x32e508=>'suggestion'===this['_splitMarkerName'](_0x32e508['name'])['group']);if(0x0===_0x503d63['length'])return;_0x503d63['sort']((_0x32804f,_0x4ed864)=>{const _0x1fc767=_0x32804f['data']['oldRange'],_0x44c0ed=_0x4ed864['data']['oldRange'];return null===_0x1fc767&&null===_0x44c0ed?0x0:null===_0x1fc767&&null!==_0x44c0ed?-0x1:null!==_0x1fc767&&null===_0x44c0ed?0x1:_0x1fc767['start']['isBefore'](_0x44c0ed['start'])?-0x1:0x1;});const _0x4a43b2=new Set(),_0xc5dcb=new Set();for(const {name:_0x4ccac8,data:_0xf12e27}of _0x503d63){const {id:_0x398f5f}=this['_splitMarkerName'](_0x4ccac8);if(null===_0xf12e27['oldRange']){const _0x328a7d=this['_handleNewSuggestionMarker'](_0x4ccac8);_0xc5dcb['add'](_0x328a7d);}else{const _0xf14b75=this['_suggestions']['get'](_0x398f5f);null!==_0xf12e27['newRange']||_0xf14b75['isInContent']?(_0x4a43b2['add'](_0xf14b75['head']),_0xc5dcb['add'](_0xf14b75)):this['_removeSuggestion'](_0xf14b75);}}_0xc5dcb['size']>0x0&&this['_refreshSuggestionsChain'](_0xc5dcb);for(const _0x57dc3f of _0x4a43b2)this['fire']('suggestionChanged',_0x57dc3f);}),_0x13f71d['model']['on']('applyOperation',(_0xfcb74d,_0xb38edf)=>{const _0xc6935=_0xb38edf[0x0];if(!this['_suggestions']['size'])return;if(!_0xc6935['isDocumentOperation'])return;if(_0xc6935['batch']['isUndo']||!_0xc6935['batch']['isLocal'])return;let _0x33404b,_0x375d83;switch(_0xc6935['type']){case'insert':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['position']),_0x375d83=_0x33404b['getShiftedBy'](_0xc6935['howMany']);break;case'split':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['splitPosition']),_0x375d83=_0x13f71d['model']['createPositionAt'](_0xc6935['moveTargetPosition']);break;case'move':_0x33404b=_0x13f71d['model']['createPositionAt'](_0xc6935['targetPosition']),_0x375d83=_0x33404b['getShiftedBy'](_0xc6935['howMany']);break;default:return;}const _0xae6f93=_0x13f71d['model']['createRange'](_0x33404b,_0x375d83);_0x13f71d['model']['change'](()=>{for(const {suggestion:_0x401b82,meta:_0x52763b}of this['_findSuggestions'](_0xae6f93)){if(_0x401b82['isMultiRange'])continue;if('formatInline'==_0x401b82['type'])continue;const _0x216c9a=this['_getAttributeKey'](_0x401b82);if(_0x216c9a&&this['_isBlockAttribute'](_0x216c9a)&&'split'!=_0xc6935['type'])continue;const _0x4674c2=_0x401b82['data']&&_0x401b82['data']['multipleBlocks'];('formatBlock'!=_0x401b82['type']||'split'==_0xc6935['type']&&!_0x4674c2)&&(_0x52763b['containsRangeInObject']||'insertion'==_0x401b82['type']&&_0x52763b['isOwn']||_0x401b82['getFirstRange']()['containsRange'](_0xae6f93)&&this['_breakSuggestionMarker'](_0x401b82,_0x33404b,_0x375d83));}});},{'priority':'lowest'}),_0x13f71d['model']['on']('deleteContent',(_0x5fe9c6,_0x57e7b6)=>{const _0x15f818=_0x57e7b6[0x0],_0x2314c6=_0x57e7b6[0x1];if(_0x2314c6&&_0x2314c6['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x15f818['isCollapsed'])return;const _0x544095=_0x13f71d['model']['schema'],{start:_0x18584c,end:_0x19bf27}=_0x15f818['getFirstRange'](),_0x1700c9=_0x18584c['nodeAfter']&&_0x544095['isLimit'](_0x18584c['nodeAfter'])?null:_0x544095['getNearestSelectionRange'](_0x18584c,'forward'),_0x1a089b=_0x19bf27['nodeBefore']&&_0x544095['isLimit'](_0x19bf27['nodeBefore'])?null:_0x544095['getNearestSelectionRange'](_0x19bf27,'backward'),_0x3ffd14=_0x13f71d['model']['createRange'](_0x1700c9?_0x1700c9['start']:_0x18584c,_0x1a089b?_0x1a089b['end']:_0x19bf27);_0x13f71d['model']['change'](_0x5883c4=>{this['markDeletion'](_0x3ffd14);const _0x528b9d=_0x13f71d['model']['schema']['getNearestSelectionRange'](_0x3ffd14['start']);_0x15f818['is']('documentSelection')?_0x5883c4['setSelection'](_0x528b9d):_0x15f818['setTo'](_0x528b9d);}),_0x5fe9c6['stop']();},{'priority':_0x568555['normal']+0xa}),_0x13f71d['model']['on']('insertContent',(_0x3b5220,_0x303e58)=>{const _0x1416f4=_0x303e58[_0x303e58['length']-0x1];_0x1416f4&&_0x1416f4['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x13f71d['model']['change'](()=>{let _0x396955=_0x13f71d['model']['insertContent'](_0x303e58[0x0],_0x303e58[0x1],_0x303e58[0x2],{'forceDefaultExecution':!0x0});if(!_0x396955)return;_0x3b5220['return']=_0x396955['clone']();const _0xc8b88e=_0x396955['end']['nodeBefore'],_0x3215ea=_0x13f71d['model']['schema'];_0xc8b88e&&_0x3215ea['isBlock'](_0xc8b88e)&&!_0x3215ea['isObject'](_0xc8b88e)&&(_0x396955=_0x13f71d['model']['createRange'](_0x396955['start'],_0x13f71d['model']['createPositionAt'](_0xc8b88e,'end'))),this['markInsertion'](_0x396955);}),_0x3b5220['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x32db92=new D(_0x13f71d,this['_suggestions']);_0x13f71d['commands']['add']('acceptSuggestion',_0x32db92),this['enableCommand']('acceptSuggestion');const _0x30a14c=new M(_0x13f71d,this['_suggestions']);_0x13f71d['commands']['add']('discardSuggestion',_0x30a14c),this['enableCommand']('discardSuggestion'),_0x13f71d['commands']['add']('acceptAllSuggestions',new $(_0x13f71d,_0x32db92,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x13f71d['commands']['add']('discardAllSuggestions',new $(_0x13f71d,_0x30a14c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x13f71d['commands']['add']('acceptSelectedSuggestions',new B(_0x13f71d,_0x32db92,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x13f71d['commands']['add']('discardSelectedSuggestions',new B(_0x13f71d,_0x30a14c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2482bf=_0x13f71d['plugins']['get']('CommentsRepository');this['listenTo'](_0x2482bf,'addComment',(_0x4d4eb8,{threadId:_0x436ee6})=>{const _0x51e87e=this['_suggestions']['get'](_0x436ee6);_0x51e87e&&_0x51e87e['commentThread']&&0x1===_0x51e87e['commentThread']['length']&&this['_updateSuggestionData'](_0x436ee6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2482bf,'removeComment',(_0x188fed,{threadId:_0x2dd28f})=>{const _0x363d77=this['_suggestions']['get'](_0x2dd28f);_0x363d77&&_0x363d77['commentThread']&&!_0x363d77['commentThread']['length']&&this['_updateSuggestionData'](_0x2dd28f,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x39ec01){const _0x4dbd40=_0x5a541f([0x78,0x68,0x6a,0x6b,0x67,0x61,0x32,0x43,0x7a,0x56,0x50,0x36,0x34,0x58,0x41,0x4f,0x49,0x31,0x6e,0x64,0x71,0x35,0x37,0x48,0x66,0x73,0x47,0x53,0x76,0x72,0x4c,0x4e,0x52,0x74,0x30,0x38,0x51,0x44,0x69,0x54,0x62,0x59,0x77,0x6f,0x4b,0x33,0x46,0x57,0x4a,0x70,0x55,0x5a,0x79,0x4d,0x6d,0x75,0x63,0x39,0x45,0x65,0x6c,0x42]),_0xd3cc57=0x67596b20,_0x69d045=0x675e07c0^_0xd3cc57,_0x489375=window[_0x5a541f([0x44,0x61,0x74,0x65])][_0x5a541f([0x6e,0x6f,0x77])](),_0x16daa8=_0x39ec01[_0x5a541f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1d5d37=new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x359a15=>{_0x16daa8[_0x5a541f([0x6f,0x6e,0x63,0x65])](_0x5a541f([0x72,0x65,0x61,0x64,0x79]),_0x359a15);}),_0x4c35a8={[_0x5a541f([0x6b,0x74,0x79])]:_0x5a541f([0x45,0x43]),[_0x5a541f([0x75,0x73,0x65])]:_0x5a541f([0x73,0x69,0x67]),[_0x5a541f([0x63,0x72,0x76])]:_0x5a541f([0x50,0x2d,0x32,0x35,0x36]),[_0x5a541f([0x78])]:_0x5a541f([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x5a541f([0x79])]:_0x5a541f([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x5a541f([0x61,0x6c,0x67])]:_0x5a541f([0x45,0x53,0x32,0x35,0x36])},_0x8e5cc8=_0x16daa8[_0x5a541f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5a541f([0x67,0x65,0x74])](_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x8befa3(){let _0x9d5511,_0x4f2348=null,_0x26af2e=null;try{if(_0x8e5cc8==_0x5a541f([0x47,0x50,0x4c]))return _0x5a541f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9d5511=_0x1d484b(),!_0x9d5511)return _0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9d5511[_0x5a541f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x26af2e=_0x16d225(_0x9d5511[_0x5a541f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9d5511[_0x5a541f([0x6a,0x74,0x69])])),await _0x1ec898()?_0x2c16e8()?_0x47f3b2()?_0x5a541f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f4068()?(_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a541f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4f2348=_0x2c6d64(_0x5a541f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5a541f([0x74,0x72,0x69,0x61,0x6c])&&(_0x4f2348=_0x2c6d64(_0x5a541f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x375cfd()):_0x5a541f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5a541f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5a541f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47f3b2(){const _0x17e4c8=[_0x5a541f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5a541f([0x74,0x72,0x69,0x61,0x6c])][_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x489375/0x3e8:0xe10*_0x69d045;return _0x9d5511[_0x5a541f([0x65,0x78,0x70])]<_0x17e4c8;}function _0x2c16e8(){const _0xf9e505=_0x9d5511[_0x5a541f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf9e505)return!0x1;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x2a])))return!0x0;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x54,0x43])))return!0x0;if(_0xf9e505[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x52,0x54,0x43]))){if(_0x283ccc())return!0x0;if(_0x3419b2()||_0x453612())return!0x0;}return!0x1;}function _0x1f4068(){const _0x1fcec8=_0x9d5511[_0x5a541f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1fcec8||0x0==_0x1fcec8[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x355767}=new URL(window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1fcec8[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x355767))return!0x0;const _0x24232a=_0x355767[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e]));return _0x1fcec8[_0x5a541f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12a4ba=>_0x12a4ba[_0x5a541f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a541f([0x2a])))[_0x5a541f([0x6d,0x61,0x70])](_0x52856a=>_0x52856a[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e])))[_0x5a541f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3aca35=>_0x3aca35[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x24232a[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a541f([0x6d,0x61,0x70])](_0x104476=>Array(_0x24232a[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x104476[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5a541f([0x66,0x69,0x6c,0x6c])](_0x104476[0x0]===_0x5a541f([0x2a])?_0x5a541f([0x2a]):'')[_0x5a541f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x104476))[_0x5a541f([0x73,0x6f,0x6d,0x65])](_0x3f2a56=>_0x24232a[_0x5a541f([0x65,0x76,0x65,0x72,0x79])]((_0x4fb05a,_0x340f78)=>_0x3f2a56[_0x340f78]===_0x4fb05a||_0x3f2a56[_0x340f78]===_0x5a541f([0x2a])));}function _0x375cfd(){return _0x4f2348&&_0x26af2e?new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3eb6d1,_0x25802f)=>{_0x4f2348[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x3eb6d1,_0x25802f),_0x26af2e[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x15e65c=>{_0x15e65c!=_0x5a541f([0x56,0x61,0x6c,0x69,0x64])&&_0x3eb6d1(_0x15e65c);},_0x25802f);}):_0x4f2348||_0x26af2e||_0x5a541f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x16d225(_0x4b5be6,_0x5b6aa5){return new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bdf67=>{if(_0x45961c())return _0x1bdf67(_0x5a541f([0x56,0x61,0x6c,0x69,0x64]));_0x3f2a44(),_0x16daa8[_0x5a541f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5378f4=!0x1;const _0x34f21c=_0x140250();function _0x23fd52(_0x176365){return!!_0x176365&&(typeof _0x176365===_0x5a541f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x176365===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x176365[_0x5a541f([0x74,0x68,0x65,0x6e])]===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x176365[_0x5a541f([0x63,0x61,0x74,0x63,0x68])]===_0x5a541f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ac95f(_0x5de791){_0x464dfc(_0x5de791)[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x119a87=>{if(!_0x119a87||_0x119a87[_0x5a541f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5a541f([0x6f,0x6b]))return _0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x32ae2e(_0x58eef9(_0x34f21c+_0x5b6aa5))!=_0x119a87[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5a541f([0x56,0x61,0x6c,0x69,0x64]);})[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x3d00e2=>(_0x5b4cff(),_0x3d00e2),()=>{const _0x107917=_0x3e8e6c();return null==_0x107917?(_0x5b4cff(),_0x5a541f([0x56,0x61,0x6c,0x69,0x64])):_0x5a541f(_0x489375-_0x107917>(0x4355ef20^_0xd3cc57)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x1bdf67)[_0x5a541f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4628fc=0x676f85a0^_0xd3cc57;function _0x5b4cff(){const _0x2e51eb=_0x5a541f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32ae2e(_0x58eef9(_0x4b5be6)),_0x5303ed=_0x4c38ed(_0x32ae2e(window[_0x5a541f([0x4d,0x61,0x74,0x68])][_0x5a541f([0x63,0x65,0x69,0x6c])](_0x489375/_0x4628fc)));window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a541f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e51eb,_0x5303ed);}function _0x3e8e6c(){const _0x297f14=_0x5a541f([0x6c,0x6c,0x63,0x74,0x2d])+_0x32ae2e(_0x58eef9(_0x4b5be6)),_0x2bf026=window[_0x5a541f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5a541f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x297f14);return _0x2bf026?window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c38ed(_0x2bf026),0x10)*_0x4628fc:null;}function _0x464dfc(_0x20b2ff){return new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x423aed,_0x383f6b)=>{_0x20b2ff[_0x5a541f([0x74,0x68,0x65,0x6e])](_0x423aed,_0x383f6b),window[_0x5a541f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x383f6b,0x6758bfe0^_0xd3cc57);});}}_0x16daa8[_0x5a541f([0x6f,0x6e])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59e9d2,_0x2ef858)=>{if(_0x2ef858[0x0]!=_0x4b5be6)return _0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2ef858[0x1]={..._0x2ef858[0x1],[_0x5a541f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34f21c};},{[_0x5a541f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a541f([0x68,0x69,0x67,0x68])}),_0x16daa8[_0x5a541f([0x6f,0x6e])](_0x5a541f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2cdcbc=>{_0x23fd52(_0x2cdcbc[_0x5a541f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5378f4=!0x0,_0x4ac95f(_0x2cdcbc[_0x5a541f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5a541f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5a541f([0x6c,0x6f,0x77])}),_0x1d5d37[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>{_0x5378f4||_0x1bdf67(_0x5a541f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45961c(){return _0x16daa8[_0x5a541f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a541f([0x76,0x69,0x65,0x77])][_0x5a541f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5a541f([0x61,0x75,0x74,0x6f]);}function _0x3f2a44(){_0x16daa8[_0x5a541f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5a541f([0x76,0x69,0x65,0x77])][_0x5a541f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5a541f([0x61,0x75,0x74,0x6f]);}}function _0x2c6d64(_0x3277d7){const _0x65905=[new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x929b1f=>setTimeout(_0x929b1f,0x675055ec^_0xd3cc57)),_0x1d5d37[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x344007=>{let _0x39ec59=0x0;_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x6f,0x6e])](_0x5a541f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x530a62,_0x44a042)=>{_0x44a042[0x0][_0x5a541f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x39ec59++,_0x39ec59==(0x67596ad8^_0xd3cc57)&&(_0x344007(),_0x530a62[_0x5a541f([0x6f,0x66,0x66])]());});}))];return window[_0x5a541f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5a541f([0x72,0x61,0x63,0x65])](_0x65905)[_0x5a541f([0x74,0x68,0x65,0x6e])](()=>_0x3277d7);}async function _0x28001c(){await _0x1d5d37,_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x39c943,_0x16daa8[_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c])][_0x5a541f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x39c943,_0x16daa8[_0x5a541f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5a541f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x283ccc(){return _0x58e903(_0x5a541f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x15d39d(_0x5a541f([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5a541f([0x73,0x74,0x61,0x74,0x65])]==_0x5a541f([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3419b2(){return _0x58e903(_0x5a541f([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72,0x49,0x6e,0x74,0x65,0x67,0x72,0x61,0x74,0x69,0x6f,0x6e]));}function _0x453612(){return _0x58e903(_0x5a541f([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x20e995(_0x308c0b){const _0xed872e=_0x3ffde4();_0x16daa8[_0xed872e]=_0x5a541f([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x308c0b,_0x308c0b!=_0x5a541f([0x56,0x61,0x6c,0x69,0x64])&&_0x28001c();}function _0x3ffde4(){const _0x15bb60=window[_0x5a541f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5a541f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5a541f([0x6e,0x6f,0x77])]())[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5a541f([0x2e]),'');let _0x548ea7=_0x5a541f([0x78]);for(let _0x19ffbc=0x0;_0x19ffbc<_0x15bb60[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x19ffbc+=0x2){let _0x3aa447=window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15bb60[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x19ffbc,_0x19ffbc+0x2));_0x3aa447>=_0x4dbd40[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3aa447-=_0x4dbd40[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x548ea7+=_0x4dbd40[_0x3aa447];}return _0x548ea7;}function _0x1d484b(){const _0x4f7c59=_0x8e5cc8[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e]));if(0x3!=_0x4f7c59[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x58fee9(_0x4f7c59[0x1]);function _0x58fee9(_0x371fe8){const _0x4509d8=_0x40ea8d(_0x371fe8);return _0x4509d8&&_0x3f9a4e()?_0x4509d8:null;function _0x3f9a4e(){const _0x5b949f=_0x4509d8[_0x5a541f([0x6a,0x74,0x69])],_0x3700ca=window[_0x5a541f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b949f[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b949f[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50ff85={..._0x4509d8,[_0x5a541f([0x6a,0x74,0x69])]:_0x5b949f[_0x5a541f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5b949f[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50ff85[_0x5a541f([0x76,0x63])],_0x58eef9(_0x50ff85)==_0x3700ca;}}}async function _0x1ec898(){let _0x81429a=!0x0;try{const _0xf94637=_0x8e5cc8[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])](_0x5a541f([0x2e])),[_0x9c0c4c,_0x476ac3,_0x15e869]=_0xf94637;return _0x205e0b(_0x9c0c4c),await _0x1a3bf7(_0x9c0c4c,_0x476ac3,_0x15e869),_0x81429a;}catch{return!0x1;}function _0x205e0b(_0x2f1515){const _0x481d2c=_0x40ea8d(_0x2f1515);_0x481d2c&&_0x481d2c[_0x5a541f([0x61,0x6c,0x67])]==_0x5a541f([0x45,0x53,0x32,0x35,0x36])||(_0x81429a=!0x1);}async function _0x1a3bf7(_0x5659ca,_0x22bcb3,_0x267be9){const _0x4ed6b3=window[_0x5a541f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5a541f([0x66,0x72,0x6f,0x6d])](_0x3672d3(_0x267be9),_0x4e24da=>_0x4e24da[_0x5a541f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5b859b=new window[(_0x5a541f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5a541f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5659ca+_0x5a541f([0x2e])+_0x22bcb3),_0xec9cb7=window[_0x5a541f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5a541f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xec9cb7)return;const _0x4ca5f3=await _0xec9cb7[_0x5a541f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5a541f([0x6a,0x77,0x6b]),_0x4c35a8,{[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x45,0x43,0x44,0x53,0x41]),[_0x5a541f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5a541f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xec9cb7[_0x5a541f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x45,0x43,0x44,0x53,0x41]),[_0x5a541f([0x68,0x61,0x73,0x68])]:{[_0x5a541f([0x6e,0x61,0x6d,0x65])]:_0x5a541f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ca5f3,_0x4ed6b3,_0x5b859b)||(_0x81429a=!0x1);}}function _0x40ea8d(_0x4394ce){return _0x4394ce[_0x5a541f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5a541f([0x65,0x79]))?JSON[_0x5a541f([0x70,0x61,0x72,0x73,0x65])](_0x3672d3(_0x4394ce)):null;}function _0x3672d3(_0x38e107){return window[_0x5a541f([0x61,0x74,0x6f,0x62])](_0x38e107[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5a541f([0x2b]))[_0x5a541f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5a541f([0x2f])));}function _0x58eef9(_0x403307){let _0xb690e0=0x1505;function _0x680d8a(_0x14aaa3){for(let _0x2ccf22=0x0;_0x2ccf22<_0x14aaa3[_0x5a541f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2ccf22++){const _0x5edeec=_0x14aaa3[_0x5a541f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2ccf22);_0xb690e0=(_0xb690e0<<0x5)+_0xb690e0+_0x5edeec,_0xb690e0&=_0xb690e0;}}function _0x47c8f2(_0x4ef528){Array[_0x5a541f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ef528)?_0x4ef528[_0x5a541f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x47c8f2):_0x4ef528&&typeof _0x4ef528==_0x5a541f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5a541f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ef528)[_0x5a541f([0x73,0x6f,0x72,0x74])]()[_0x5a541f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x496ddd,_0x367344])=>{_0x680d8a(_0x496ddd),_0x47c8f2(_0x367344);}):_0x680d8a(window[_0x5a541f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ef528));}return _0x47c8f2(_0x403307),_0xb690e0>>>0x0;}function _0x32ae2e(_0x3dc295){return _0x3dc295[_0x5a541f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5a541f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5a541f([0x30]));}function _0x4c38ed(_0xf2ae82){return _0xf2ae82[_0x5a541f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5a541f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5a541f([0x6a,0x6f,0x69,0x6e])]('');}function _0x58e903(_0x49a307){return _0x16daa8[_0x5a541f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a541f([0x68,0x61,0x73])](_0x49a307);}function _0x15d39d(_0x49b63a){return _0x16daa8[_0x5a541f([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5a541f([0x67,0x65,0x74])](_0x49b63a);}function _0x39c943(){}function _0x5a541f(_0x50e6e8){return _0x50e6e8['map'](_0x10113f=>String['fromCharCode'](_0x10113f))['join']('');}_0x20e995(await _0x8befa3());}(this);}set['adapter'](_0x2c9381){if(this['_adapter'])throw new _0x33e300('track-changes-adapter-already-set',this);this['_adapter']=_0x2c9381;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x187fdd=!0x1,toJSON:_0x86275a=!0x1}={}){const _0xbf67da=[];for(const _0xa2bae2 of this['_suggestions']['values']())_0x187fdd&&!_0xa2bae2['isInContent']||_0xbf67da['push'](_0xa2bae2);return _0x86275a?_0xbf67da['map'](_0x3d84ac=>_0x3d84ac['toJSON']()):_0xbf67da;}['getSuggestion'](_0x447457){const _0x4eec4f=this['_suggestions']['get'](_0x447457);if(!_0x4eec4f)throw new _0x33e300('track-changes-suggestion-not-found',this);return _0x4eec4f;}['hasSuggestion'](_0x1caa81){return this['_suggestions']['has'](_0x1caa81);}['addSuggestionData'](_0x366406){const {authorId:_0x2f86aa,id:_0x16295d,originalSuggestionId:_0x43a518,attributes:_0x5382fb}=_0x366406,[_0x458655,_0x4e4191]=_0x366406['type']['split'](':'),_0xbc46d0=this['_suggestions']['get'](_0x16295d)||this['_createSuggestion'](_0x458655,_0x4e4191,_0x16295d,_0x2f86aa,_0x5382fb,_0x43a518);if(this['_addThreadToSuggestion'](_0xbc46d0),this['_checkSuggestionCorrectness'](_0xbc46d0,_0x458655,_0x4e4191||null,_0x2f86aa),_0xbc46d0['createdAt']=_0x366406['createdAt'],_0xbc46d0['_isDataLoaded']=!0x0,_0x5382fb&&_0x5382fb['@external']){const _0xa99896=_0x5382fb['@external'],_0x40e35d=this['_getExternalAuthor'](_0xa99896['authorName']);_0xbc46d0['authoredAt']=_0xa99896['createdAt'],_0xbc46d0['author']=_0x40e35d,_0xbc46d0['isExternal']=!0x0;}else _0xbc46d0['authoredAt']=_0x366406['createdAt'];switch(_0x366406['data']&&(_0xbc46d0['data']=_0x366406['data']),_0x366406['attributes']&&(_0xbc46d0['attributes']=_0x366406['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0xbc46d0['_saved']=!0x0),this['_suggestionState']['get'](_0xbc46d0)){case'notReady':this['_suggestionState']['set'](_0xbc46d0,'dataReady');break;case'markerReady':_0xbc46d0['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0xbc46d0])),this['_refreshSuggestionsChain'](new Set([_0xbc46d0])),this['_suggestionState']['set'](_0xbc46d0,'ready'),this['fire']('suggestionLoaded',_0xbc46d0)):this['_suggestionState']['set'](_0xbc46d0,'removed');}return _0xbc46d0;}['acceptSuggestion'](_0x4df528){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x15fb39 of _0x4df528['getAllAdjacentSuggestions']())_0x15fb39['accept']();});});}['discardSuggestion'](_0x3d8ac0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4a60e1 of _0x3d8ac0['getAllAdjacentSuggestions']())_0x4a60e1['discard']();});});}['enableCommand'](_0x184a2d,_0x44c6ce){const _0x2838e0=this['editor']['commands']['get'](_0x184a2d);if(!_0x2838e0)throw new _0x33e300('track-changes-command-not-found',this,{'commandName':_0x184a2d});if(this['_enabledCommands']['has'](_0x2838e0))throw new _0x33e300('track-changes-enable-command-twice',this,{'commandName':_0x184a2d});this['_enabledCommands']['add'](_0x2838e0),_0x44c6ce&&_0x2838e0['on']('execute',(_0x477575,_0x53f2cf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x53f2cf['length']>0x0&&_0x53f2cf[_0x53f2cf['length']-0x1]&&_0x53f2cf[_0x53f2cf['length']-0x1]['forceDefaultExecution']?_0x53f2cf['pop']():(_0x477575['return']=_0x44c6ce((..._0xea564f)=>_0x2838e0['execute'](..._0xea564f,{'forceDefaultExecution':!0x0}),..._0x53f2cf),_0x477575['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x54ab99){let _0x5b916e,_0x42bdcc;const _0x11ea5c=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5b916e=_0x54ab99();}catch(_0x5821f7){_0x42bdcc=_0x5821f7;}return _0x11ea5c||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x42bdcc&&_0x33e300['rethrowUnexpectedError'](_0x42bdcc,this),_0x5b916e;}['markInsertion'](_0x3929b4,_0x656bb2=null,_0x146a35={}){if(_0x3929b4['isCollapsed'])return null;const _0x4e4351=this['editor']['plugins']['get']('Users')['me'];this['_trackingSessionId']&&(_0x146a35['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x14d96a,meta:_0x57da22}of this['_findSuggestions'](_0x3929b4,'insertion'))if(_0x57da22['isOwn']){if(!_0x57da22['isNextTo']){if(_0x57da22['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x14d96a,_0x146a35))continue;return _0x14d96a;}if(Qt(_0x14d96a,_0x146a35))return _0x14d96a;this['_breakSuggestionMarker'](_0x14d96a,_0x3929b4['start'],_0x3929b4['end']);break;}if(_0x656bb2==_0x14d96a['subType']&&Qt(_0x14d96a,_0x146a35)){const _0x48c4ef=_0x14d96a['getFirstRange']();return _0x48c4ef['start']['isEqual'](_0x3929b4['end'])?this['_setSuggestionRange'](_0x14d96a,this['_model']['createRange'](_0x3929b4['start'],_0x48c4ef['end'])):this['_setSuggestionRange'](_0x14d96a,this['_model']['createRange'](_0x48c4ef['start'],_0x3929b4['end'])),_0x14d96a;}}const _0x3cce7f=_0x140250(),_0x370ab9=_0x4e4351['id'],_0x39c9f4=_0x656bb2?'insertion:'+_0x656bb2:'insertion',_0x507b44=this['_setSuggestionData']({'id':_0x3cce7f,'type':_0x39c9f4,'createdAt':new Date(),'authorId':_0x370ab9,'attributes':_0x146a35});return this['_addSuggestionMarker'](_0x39c9f4,_0x3cce7f,_0x370ab9,_0x3929b4),_0x507b44;}['markMultiRangeInsertion'](_0x5e5e2b,_0x21dbe6='multi',_0x668424={}){const _0x14e1c4=this['editor']['plugins']['get']('Users')['me'],_0x7a09b5=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x21dbe6,'join');this['_trackingSessionId']&&(_0x668424['trackingSessionId']=this['_trackingSessionId']);for(const _0x4e6ba2 of this['getSuggestions']())if(_0x4e6ba2['author']['id']==_0x14e1c4['id']&&'insertion'==_0x4e6ba2['type']&&_0x4e6ba2['subType']==_0x21dbe6&&Qt(_0x4e6ba2,_0x668424)&&(_0x7a09b5(_0x4e6ba2['getRanges'](),_0x5e5e2b)||_0x7a09b5(_0x5e5e2b,_0x4e6ba2['getRanges']()))){for(const _0x5d8140 of _0x5e5e2b)_0x4e6ba2['addRange'](_0x5d8140);return _0x4e6ba2;}for(const {suggestion:_0x14e9f9,meta:_0x19cbec}of this['_findSuggestions'](_0x5e5e2b,'insertion')){if(!_0x19cbec['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x19cbec['containsRangeInObject'])continue;if(!Qt(_0x14e9f9,_0x668424))continue;let _0x43577f=!0x0;for(const _0x4eb938 of _0x14e9f9['getRanges']())for(const _0x1ab8d7 of _0x5e5e2b)if(!_0x4eb938['containsRange'](_0x1ab8d7)){_0x43577f=!0x1;break;}if(_0x43577f)return _0x14e9f9;}const _0xb00e81=_0x140250(),_0x1c80a0=_0x14e1c4['id'],_0x3d9d25='insertion:'+_0x21dbe6,_0x2fe387=this['_setSuggestionData']({'id':_0xb00e81,'type':_0x3d9d25,'createdAt':new Date(),'authorId':_0x1c80a0,'attributes':_0x668424});for(const _0x1fe32c of _0x5e5e2b)this['_addSuggestionMarker'](_0x3d9d25,_0xb00e81,_0x1c80a0,_0x1fe32c,T['getMultiRangeId']());return _0x2fe387;}['markInlineFormat'](_0x471750,_0x3250a5,_0x52e074=null,_0x469909={}){if(_0x52e074=_0x52e074||Lt(_0x3250a5),_0x471750['isCollapsed'])return null;if(this['_trackingSessionId']&&(_0x469909['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x1ee662=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52e074,'accept');return this['forceDefaultExecution'](()=>_0x1ee662([_0x471750],_0x3250a5,_0x469909)),null;}const _0x5a62e4=this['editor']['plugins']['get']('Users')['me'],_0x95c12f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x29e619,meta:_0x28e92c}of this['_findSuggestions'](_0x471750,'insertion'))_0x28e92c['isOwn']&&!_0x28e92c['isInsideObject']&&_0x95c12f['push'](..._0x29e619['getRanges']());}const _0x1869f7=function(_0x519d9c,_0x3a6351){const _0x5c02ec=[];for(const _0x27e04a of _0x3a6351){const _0x5066a3=_0x519d9c['getIntersection'](_0x27e04a);_0x5066a3&&_0x5c02ec['push'](_0x5066a3);}return _0x5c02ec;}(_0x471750,_0x95c12f),_0x56f06c=function(_0x5b64de,_0x59544c){const _0x47d56b=[_0x5b64de];for(const _0x98da88 of _0x59544c){let _0x2793fa=0x0;for(;_0x2793fa<_0x47d56b['length'];){const _0x565295=_0x47d56b[_0x2793fa]['getDifference'](_0x98da88);_0x47d56b['splice'](_0x2793fa,0x1,..._0x565295),_0x2793fa+=_0x565295['length'];}}return _0x47d56b;}(_0x471750,_0x95c12f);_0x1869f7['length']&&this['_model']['change'](()=>{for(const _0x11b823 of _0x1869f7){const _0x494eb6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x52e074,'accept');this['forceDefaultExecution'](()=>_0x494eb6([_0x11b823],_0x3250a5,_0x469909));}});for(const _0x476373 of _0x56f06c){let _0x25c65a=null,_0x15651c=_0x476373['start'],_0xefdaf3=_0x476373['end'];for(const {suggestion:_0x5b25e8,meta:_0x2666ee}of this['_findSuggestions'](_0x476373,'formatInline')){if(!_0x2666ee['isOwn'])continue;if(_0x5b25e8['subType']!=_0x52e074)continue;if(!Qt(_0x5b25e8,_0x469909))continue;const _0x3a9a29=_0x5b25e8['getFirstRange']();if(_0x3a9a29['containsRange'](_0x476373,!0x0))return null;_0x15651c=_0x15651c['isBefore'](_0x3a9a29['start'])?_0x15651c:_0x3a9a29['start'],_0xefdaf3=_0xefdaf3['isAfter'](_0x3a9a29['end'])?_0xefdaf3:_0x3a9a29['end'],_0x25c65a?_0x3a9a29['start']['isBefore'](_0x25c65a['getFirstRange']()['start'])?(_0x25c65a['removeMarkers'](),_0x25c65a=_0x5b25e8):_0x5b25e8['removeMarkers']():_0x25c65a=_0x5b25e8;}const _0x2051d7=this['_model']['createRange'](_0x15651c,_0xefdaf3);if(_0x25c65a)this['_setSuggestionRange'](_0x25c65a,_0x2051d7);else{const _0x2e9835=_0x140250(),_0x2423de=_0x5a62e4['id'];this['_setSuggestionData']({'id':_0x2e9835,'type':'formatInline:'+_0x52e074,'data':_0x3250a5,'createdAt':new Date(),'authorId':_0x2423de,'attributes':_0x469909}),this['_addSuggestionMarker']('formatInline:'+_0x52e074,_0x2e9835,_0x2423de,_0x2051d7);}}return null;}['markBlockFormat'](_0x1fb9e4,_0x1bdded,_0x10e413=[],_0x48dcb2=null,_0x2a6a4e={}){_0x1bdded['formatGroupId']||(_0x1bdded['formatGroupId']=_0x1bdded['commandName']),_0x1bdded['multipleBlocks']=_0x1fb9e4['is']('range'),_0x48dcb2=_0x48dcb2||Lt(_0x1bdded);const _0x1f55da=_0x10e413['map'](_0x48c467=>qt(_0x48c467,this['_model'])),_0x1d0eb4=_0x1fb9e4['is']('range')?_0x1fb9e4:qt(_0x1fb9e4,this['_model']);if(this['_trackingSessionId']&&(_0x2a6a4e['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0xe396fb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48dcb2,'accept');return this['forceDefaultExecution'](()=>_0xe396fb([_0x1d0eb4],_0x1bdded,_0x2a6a4e)),null;}_0x1f55da['push'](_0x1d0eb4);let _0xfeba2a=!0x0;for(const _0x20fd84 of _0x1f55da)if(!this['_rangeIsInLocalUserInsertion'](_0x20fd84)){_0xfeba2a=!0x1;break;}if(_0xfeba2a&&'always'!==this['_trackFormatChanges']){const _0x35f542=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x48dcb2,'accept');return this['forceDefaultExecution'](()=>_0x35f542([_0x1d0eb4],_0x1bdded,_0x2a6a4e)),null;}let _0x5a4ac4=null,_0x56a1f3=_0x1d0eb4['start'],_0x48e0dd=_0x1d0eb4['end'];for(const {suggestion:_0x20f44b,meta:_0x259a0a}of this['_findSuggestions'](_0x1d0eb4,'formatBlock')){if(!_0x259a0a['isOwn'])continue;if(_0x259a0a['isNextTo']||_0x259a0a['containsRangeInObject']||_0x259a0a['isInsideObject'])continue;if(_0x20f44b['data']['formatGroupId']!=_0x1bdded['formatGroupId'])continue;if(!Qt(_0x20f44b,_0x2a6a4e))continue;const _0x55b946=_0x20f44b['getFirstRange']();if(_0x20f44b['subType']==_0x48dcb2){if(_0x55b946['containsRange'](_0x1d0eb4,!0x0))return null;_0x56a1f3=_0x56a1f3['isBefore'](_0x55b946['start'])?_0x56a1f3:_0x55b946['start'],_0x48e0dd=_0x48e0dd['isAfter'](_0x55b946['end'])?_0x48e0dd:_0x55b946['end'],_0x5a4ac4?_0x55b946['start']['isBefore'](_0x5a4ac4['getFirstRange']()['start'])?(_0x5a4ac4['removeMarkers'](),_0x5a4ac4=_0x20f44b):_0x20f44b['removeMarkers']():_0x5a4ac4=_0x20f44b;}else{const _0x1beb0e=_0x1d0eb4['getIntersection'](_0x55b946);this['_cutOutSuggestionMarker'](_0x20f44b,_0x1beb0e);}}const _0x3e5eee=this['editor']['plugins']['get']('Users')['me'],_0x256549=_0x140250(),_0x3ef851=_0x3e5eee['id'];if(_0x5a4ac4)return this['_setSuggestionRange'](_0x5a4ac4,this['_model']['createRange'](_0x56a1f3,_0x48e0dd)),_0x5a4ac4;{const _0x3dd01e=this['_setSuggestionData']({'id':_0x256549,'type':'formatBlock:'+_0x48dcb2,'data':_0x1bdded,'createdAt':new Date(),'authorId':_0x3ef851,'attributes':_0x2a6a4e});return this['_addSuggestionMarker']('formatBlock:'+_0x48dcb2,_0x256549,_0x3ef851,this['_model']['createRange'](_0x56a1f3,_0x48e0dd)),_0x3dd01e;}}['markMultiRangeBlockFormat'](_0x4cf559,_0x21ee6c,_0x393ec0=[],_0x32a053=null,_0x12223b={}){_0x21ee6c['formatGroupId']||(_0x21ee6c['formatGroupId']=_0x21ee6c['commandName']);const _0x597c39=_0x4cf559[0x0];_0x21ee6c['multipleBlocks']=_0x597c39['is']('range'),_0x32a053=_0x32a053||Lt(_0x21ee6c);const _0x70995b=_0x393ec0['map'](_0x13f3f6=>qt(_0x13f3f6,this['_model'])),_0x5f2cb6=_0x597c39['is']('range')?_0x4cf559:_0x4cf559['map'](_0x1ad0df=>qt(_0x1ad0df,this['_model']));if(this['_trackingSessionId']&&(_0x12223b['trackingSessionId']=this['_trackingSessionId']),'never'===this['_trackFormatChanges']){const _0x4075e7=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'accept');return this['forceDefaultExecution'](()=>_0x4075e7(_0x5f2cb6,_0x21ee6c,_0x12223b)),null;}_0x70995b['push'](..._0x5f2cb6);let _0x2d42a0=!0x0;for(const _0xdbf3d3 of _0x70995b)if(!this['_rangeIsInLocalUserInsertion'](_0xdbf3d3)){_0x2d42a0=!0x1;break;}if(_0x2d42a0&&'always'!==this['_trackFormatChanges']){const _0x3678f1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'accept');return this['forceDefaultExecution'](()=>_0x3678f1(_0x5f2cb6,_0x21ee6c,_0x12223b)),null;}const _0xc7bc44=this['editor']['plugins']['get']('Users')['me'];for(const _0xd6afbd of this['getSuggestions']()){const _0x3dd953=_0xd6afbd['data'];if(_0xd6afbd['author']['id']!=_0xc7bc44['id'])continue;if('formatBlock'!=_0xd6afbd['type']||_0x3dd953['formatGroupId']!=_0x21ee6c['formatGroupId'])continue;if(!Qt(_0xd6afbd,_0x12223b))continue;const _0x446764=_0xd6afbd['subType']==_0x32a053;for(let _0x4fc306=0x0;_0x4fc306<_0x5f2cb6['length'];_0x4fc306++){const _0xea5bd7=_0x5f2cb6[_0x4fc306];for(const _0x2667f3 of _0xd6afbd['getMarkers']()){const _0x3a8f4c=_0x2667f3['getRange']();if(_0xea5bd7['isEqual'](_0x3a8f4c)){_0x446764?(_0x5f2cb6['splice'](_0x4fc306,0x1),_0x4fc306--):_0xd6afbd['removeMarker'](_0x2667f3['name']);break;}}}}if(0x0==_0x5f2cb6['length'])return null;const _0x39963a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x32a053,'join');for(const _0x28753e of this['getSuggestions']()){const _0x3c790c=_0x28753e['data'];if(_0x28753e['author']['id']==_0xc7bc44['id']&&('formatBlock'==_0x28753e['type']&&_0x3c790c['formatGroupId']==_0x21ee6c['formatGroupId']&&_0x28753e['subType']==_0x32a053&&Qt(_0x28753e,_0x12223b)&&(_0x39963a(_0x28753e['getRanges'](),_0x5f2cb6)||_0x39963a(_0x5f2cb6,_0x28753e['getRanges']())))){for(const _0x47f161 of _0x5f2cb6)_0x28753e['addRange'](_0x47f161);return _0x28753e;}}const _0x5ad938=_0x140250(),_0x56aa2d=_0xc7bc44['id'],_0x367111='formatBlock:'+_0x32a053,_0x1b2f67=this['_setSuggestionData']({'id':_0x5ad938,'type':_0x367111,'data':_0x21ee6c,'createdAt':new Date(),'authorId':_0x56aa2d,'attributes':_0x12223b});for(const _0x1d0001 of _0x5f2cb6)this['_addSuggestionMarker'](_0x367111,_0x5ad938,_0x56aa2d,_0x1d0001,T['getMultiRangeId']());return _0x1b2f67;}['markDeletion'](_0x5edce8,_0x121d7a=null,_0x1798cf={}){if(_0x5edce8['isCollapsed'])return null;const _0x15b0f9=this['editor']['plugins']['get']('Users')['me'],_0xe846fa=new _0x3590e7(_0x5edce8['start'],_0x5edce8['end']);this['_trackingSessionId']&&(_0x1798cf['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x4f7b62,meta:_0x2522ad}of this['_findSuggestions'](_0xe846fa,'insertion'))if(_0x2522ad['isOwn']&&!_0x2522ad['isNextTo']){if(_0x4f7b62['isMultiRange']){const _0x4cb6c2=_0x4f7b62['getRanges']()['filter'](_0x302dab=>'$graveyard'!=_0x302dab['root']['rootName']);_0x4cb6c2['every'](_0x188ede=>_0xe846fa['containsRange'](_0x188ede,!0x0))&&_0x4f7b62['discard']();if(_0x4cb6c2['some'](_0x1480bb=>_0x1480bb['containsRange'](_0xe846fa,!0x0))){const _0x59b87f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121d7a,'accept');return this['forceDefaultExecution'](()=>_0x59b87f([_0xe846fa],null,_0x1798cf)),null;}}else{const _0x46d3bc=_0xe846fa['getIntersection'](_0x4f7b62['getFirstRange']());null!==_0x46d3bc&&_0x4f7b62['_onDiscard']([_0x46d3bc],null,_0x1798cf);}}if(_0xe846fa['detach'](),_0xe846fa['isCollapsed']||'$graveyard'==_0xe846fa['root']['rootName'])return null;let _0x16c1bf=null,_0x2e4497=_0xe846fa['start'],_0x20be79=_0xe846fa['end'];const _0x5d30c6=this['_findSuggestions'](_0xe846fa,'deletion');for(const {suggestion:_0x215a7,meta:_0x5c6a66}of _0x5d30c6){const _0x475bde=this['_model']['createRange'](_0x2e4497,_0x20be79);if(_0x5c6a66['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5c6a66['containsRangeInObject']&&!_0x5c6a66['isInsideObject'])){if(_0x215a7['isMultiRange']){if(!Qt(_0x215a7,_0x1798cf))continue;let _0x1aafc4=!0x0;for(const _0x28a587 of _0x215a7['getRanges']()){if(_0x28a587['containsRange'](_0x475bde,!0x0))return _0x215a7;_0x475bde['containsRange'](_0x28a587)||(_0x1aafc4=!0x1);}_0x1aafc4&&_0x215a7['discard']();}else{const _0xa2aa56=_0x215a7['getFirstRange']();if(_0xa2aa56['containsRange'](_0x475bde,!0x0))return _0x215a7;if(!Qt(_0x215a7,_0x1798cf)){_0x475bde['containsRange'](_0xa2aa56)?_0x215a7['removeMarkers']():_0xa2aa56['containsPosition'](_0x2e4497)?_0x2e4497=_0xa2aa56['end']:_0xa2aa56['containsPosition'](_0x20be79)&&(_0x20be79=_0xa2aa56['start']);continue;}_0x2e4497=_0x2e4497['isBefore'](_0xa2aa56['start'])?_0x2e4497:_0xa2aa56['start'],_0x20be79=_0x20be79['isAfter'](_0xa2aa56['end'])?_0x20be79:_0xa2aa56['end'],_0x1798cf=Object['assign']({},_0x215a7['attributes']),_0x16c1bf?_0xa2aa56['start']['isBefore'](_0x16c1bf['getFirstRange']()['start'])?(_0x16c1bf['removeMarkers'](),_0x16c1bf=_0x215a7):_0x215a7['removeMarkers']():_0x16c1bf=_0x215a7;}}}if(_0x16c1bf)return this['_setSuggestionRange'](_0x16c1bf,this['_model']['createRange'](_0x2e4497,_0x20be79)),_0x16c1bf;{const _0xe87113=_0x140250(),_0x273bc4=this['_model']['createRange'](_0x2e4497,_0x20be79),_0x55926f=_0x15b0f9['id'],_0x6f84a2=_0x121d7a?'deletion:'+_0x121d7a:'deletion',_0x5dc8a7=this['_setSuggestionData']({'id':_0xe87113,'type':_0x6f84a2,'createdAt':new Date(),'authorId':_0x55926f,'attributes':_0x1798cf});return this['_addSuggestionMarker'](_0x6f84a2,_0xe87113,_0x55926f,_0x273bc4),_0x5dc8a7;}}['markMultiRangeDeletion'](_0xedc16d,_0x3a144a='multi',_0x3ae2f5={}){const _0x108741=this['editor']['plugins']['get']('Users')['me'],_0x56d19e=_0xedc16d['map'](_0x3204b7=>new _0x3590e7(_0x3204b7['start'],_0x3204b7['end'])),_0x48e269=new Set();this['_trackingSessionId']&&(_0x3ae2f5['trackingSessionId']=this['_trackingSessionId']);for(const {suggestion:_0x437087,meta:_0x48bcf8}of this['_findSuggestions'](_0x56d19e,'insertion'))_0x48bcf8['isOwn']&&!_0x48bcf8['isNextTo']&&_0x48e269['add'](_0x437087);for(const _0x2854ec of _0x48e269)if(_0x2854ec['isMultiRange']){const _0x51de26=_0x2854ec['getRanges']();(!_0x2854ec['attributes']||!_0x2854ec['attributes']['skipNestingCheck'])&&(_0x51de26['every'](_0x5c75ca=>_0x56d19e['some'](_0x4613cd=>_0x4613cd['containsRange'](_0x5c75ca,!0x0)))&&_0x2854ec['discard']());if(_0x56d19e['every'](_0x343e4d=>_0x51de26['some'](_0x3d708e=>_0x3d708e['containsRange'](_0x343e4d,!0x0)))){const _0x5baf8f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'accept');return this['forceDefaultExecution'](()=>_0x5baf8f(_0xedc16d,null,_0x3ae2f5)),null;}}else{const _0x27c3a9=_0x2854ec['getFirstRange']();_0x56d19e['some'](_0x335b3f=>_0x335b3f['containsRange'](_0x27c3a9,!0x0))&&_0x2854ec['discard']();if(_0x56d19e['every'](_0x38708f=>_0x27c3a9['containsRange'](_0x38708f,!0x0))){const _0x2bfd27=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'accept');return this['forceDefaultExecution'](()=>_0x2bfd27(_0x56d19e,null,_0x3ae2f5)),null;}}const _0x3a3949=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3a144a,'join');let _0x160944=null;for(const _0x1ebbd0 of this['getSuggestions']())if(_0x1ebbd0['author']['id']==_0x108741['id']&&_0x1ebbd0['isInContent']&&'deletion'==_0x1ebbd0['type']&&_0x1ebbd0['subType']==_0x3a144a&&Qt(_0x1ebbd0,_0x3ae2f5)&&(_0x3a3949(_0x1ebbd0['getRanges'](),_0x56d19e)||_0x3a3949(_0x56d19e,_0x1ebbd0['getRanges']()))){if(_0x160944){if(_0x1ebbd0['commentThread']&&_0x1ebbd0['commentThread']['length'])continue;for(const _0x297c54 of _0x1ebbd0['getRanges']())_0x160944['isIntersectingWithRange'](_0x297c54)||_0x160944['addRange'](_0x297c54);_0x1ebbd0['removeMarkers']();}else{_0x160944=_0x1ebbd0;for(const _0x869816 of _0x56d19e)_0x1ebbd0['isIntersectingWithRange'](_0x869816)||_0x1ebbd0['addRange'](_0x869816);}}if(_0x160944)return _0x160944;_0x48e269['clear']();for(const {suggestion:_0x2ee8b2,meta:_0x57c88a}of this['_findSuggestions'](_0x56d19e,'deletion'))_0x57c88a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x57c88a['containsRangeInObject']&&!_0x57c88a['isInsideObject'])&&Qt(_0x2ee8b2,_0x3ae2f5)&&_0x48e269['add'](_0x2ee8b2);for(const _0x4d35d1 of _0x48e269){const _0x88000b=_0x4d35d1['getRanges']();if(!_0x3ae2f5||!_0x3ae2f5['skipNestingCheck']){if(_0x56d19e['every'](_0x174333=>_0x88000b['some'](_0x51afbc=>_0x51afbc['containsRange'](_0x174333,!0x0))))return _0x4d35d1;}(!_0x4d35d1['attributes']||!_0x4d35d1['attributes']['skipNestingCheck'])&&(_0x88000b['every'](_0x41f3fe=>_0x56d19e['some'](_0x2bc4e4=>_0x2bc4e4['containsRange'](_0x41f3fe,!0x0)))&&_0x4d35d1['discard']());}const _0x3c7552=_0x140250(),_0x38265c=_0x108741['id'],_0xad2d45='deletion:'+_0x3a144a,_0x45f447=this['_setSuggestionData']({'id':_0x3c7552,'type':_0xad2d45,'createdAt':new Date(),'authorId':_0x38265c,'attributes':_0x3ae2f5});for(const _0xc9162a of _0x56d19e)_0xc9162a['detach'](),_0xc9162a['isCollapsed']||'$graveyard'==_0xc9162a['root']['rootName']||this['_addSuggestionMarker'](_0xad2d45,_0x3c7552,_0x38265c,_0xc9162a,T['getMultiRangeId']());return _0x45f447;}['markAttributeChange'](_0x41aabc,_0x5d8034,_0x28086,_0xa7e9d0,_0x2cb7a4){if(_0x41aabc['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x75b14b=this['editor']['plugins']['get']('Users')['me']['id'],_0x578fd2=Array['from'](this['_suggestions']['values']())['filter'](_0x46e4a5=>'attribute'==_0x46e4a5['type']&&_0x46e4a5['data']['key']==_0x5d8034&&_0x46e4a5['isIntersectingWithRange'](_0x41aabc));if(this['_trackingSessionId']&&(_0x2cb7a4['trackingSessionId']=this['_trackingSessionId']),'default'===this['_trackFormatChanges']){const _0x21c47b=this['_findSuggestions'](_0x41aabc,'insertion')['filter'](({meta:_0x3467df})=>_0x3467df['isOwn']&&!_0x3467df['isInsideObject']&&!_0x3467df['isNextTo'])['map'](({suggestion:_0x474638})=>_0x474638);_0x578fd2['unshift'](..._0x21c47b);}const _0x5dfaa3=new Map([[_0x41aabc,_0x28086]]);for(const _0x405530 of _0x578fd2){const _0x12c431='attribute'==_0x405530['type']?_0x405530['data']['oldValue']:void 0x0,_0x258af3=_0x405530['getFirstRange'](),_0x596c80=Array['from'](_0x5dfaa3['keys']())['find'](_0x413c56=>_0x413c56['isIntersecting'](_0x258af3));if(!_0x596c80)continue;const _0x1752c7=_0x596c80['getDifference'](_0x258af3);this['_isBlockAttribute'](_0x5d8034)&&'insertion'==_0x405530['type']&&0x0!=_0x1752c7['length']||(_0x5dfaa3['delete'](_0x596c80),_0x1752c7['forEach'](_0x50baef=>{_0x5dfaa3['set'](_0x50baef,_0x28086);}),'insertion'!=_0x405530['type']&&_0x12c431!=_0xa7e9d0&&_0x5dfaa3['set'](_0x596c80['getIntersection'](_0x258af3),_0x12c431));}const _0x37443b=[];for(const [_0x1b1e96,_0x1a8a7c]of _0x5dfaa3){const _0x1e390b=_0x140250(),_0x84ff95={'key':_0x5d8034,'oldValue':_0x1a8a7c,'newValue':_0xa7e9d0};_0x5d8034['length']>0x25&&console['warn']('Creating\x20a\x20suggestion\x20for\x20attribute\x20with\x20too\x20long\x20attribute\x20key.\x20This\x20may\x20lead\x20to\x20errors.\x20Change\x20the\x20attribute\x20key\x20to\x20a\x20value\x20shorter\x20than\x2037\x20characters.',{'key':_0x5d8034});const _0x3d9c98=('attribute:'+(_0x5d8034+'|'+Lt({'newValue':_0xa7e9d0})))['substring'](0x0,0x3c),_0x2d1efa=this['_setSuggestionData']({'id':_0x1e390b,'type':_0x3d9c98,'data':_0x84ff95,'createdAt':new Date(),'authorId':_0x75b14b,'attributes':_0x2cb7a4});_0x37443b['push'](_0x2d1efa),this['_addSuggestionMarker'](_0x3d9c98,_0x1e390b,_0x75b14b,_0x1b1e96);}return _0x37443b;}['enableDefaultAttributesIntegration'](_0xdeab52){this['enableCommand'](_0xdeab52,(_0x19f44d,..._0x578664)=>{this['recordAttributeChanges'](()=>{_0x19f44d(..._0x578664);});});}['registerBlockAttribute'](_0x299ff7){this['_blockAttributeKeys']['add'](_0x299ff7);}['registerInlineAttribute'](_0x4c3720){this['_inlineAttributeKeys']['add'](_0x4c3720);}['startTrackingSession'](_0x394e8b){return this['_trackingSessionId']=void 0x0!==_0x394e8b?_0x394e8b:_0x140250(),this['_trackingSessionId'];}['_getAttributeKey'](_0x1fa19a){return'attribute'==_0x1fa19a['type']?_0x1fa19a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x168f8c,_0xe2f616){const _0x4f7116=_0x168f8c['getFirstMarker']();this['_model']['change'](_0x91b860=>{_0x91b860['updateMarker'](_0x4f7116,{'range':_0xe2f616});});}['_addThreadToSuggestion'](_0x258f6c){const _0x3c2650=_0x258f6c['id'],_0x182534=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x3c2650)||this['_commentsRepository']['addCommentThread']({'channelId':_0x182534,'threadId':_0x3c2650,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3ff2b5=this['_commentsRepository']['getCommentThread'](_0x3c2650);_0x3ff2b5['unbind']('isRemovable'),_0x3ff2b5['isRemovable']=!0x1,_0x258f6c['commentThread']=_0x3ff2b5;}['_checkSuggestionCorrectness'](_0x311276,_0x48e81c,_0x5ef66c,_0x3b5955){if(_0x311276['type']!=_0x48e81c||_0x311276['subType']!=_0x5ef66c||_0x311276['creator']['id']!=_0x3b5955)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x33e300('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x3cb0a3,_0x24ad17){const _0x4d8879=_0x3cb0a3['getFirstRange']();if(_0x24ad17['isEqual'](_0x4d8879))_0x3cb0a3['removeMarkers']();else{if(_0x4d8879['containsRange'](_0x24ad17)){const _0x2ef937=this['_model']['createPositionAt'](_0x24ad17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x4d8879['start'],_0x2ef937));const _0x3dcd99=_0x140250(),_0x4f978e=_0x3cb0a3['creator']['id'],_0x2d0b05=_0x3cb0a3['type']+':'+_0x3cb0a3['subType'];this['_setSuggestionData']({'id':_0x3dcd99,'type':_0x2d0b05,'createdAt':new Date(),'authorId':_0x4f978e,'data':_0x3cb0a3['data'],'attributes':_0x3cb0a3['attributes']});const _0x522c79=this['_model']['createPositionAt'](_0x24ad17['end']['parent'],'after'),_0x398228=this['_model']['createRange'](_0x522c79,_0x4d8879['end']);this['_addSuggestionMarker'](_0x2d0b05,_0x3dcd99,_0x4f978e,_0x398228);}else{if(_0x4d8879['containsPosition'](_0x24ad17['start'])){const _0x404aab=this['_model']['createPositionAt'](_0x24ad17['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x4d8879['start'],_0x404aab));}else{const _0x5dbeb1=this['_model']['createPositionAt'](_0x24ad17['end']['parent'],'after');this['_setSuggestionRange'](_0x3cb0a3,this['_model']['createRange'](_0x5dbeb1,_0x4d8879['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x5b8e3b){for(const {suggestion:_0x11530e,meta:_0x34114f}of this['_findSuggestions'](_0x5b8e3b,'insertion')){if(!_0x34114f['isOwn'])continue;const _0x4c4a11=_0x11530e['getRanges']();for(const _0x215163 of _0x4c4a11)if(!_0x5b8e3b['getDifference'](_0x215163)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x37cede){const _0x3112f4=this['editor']['plugins']['get']('Users')['getUser'](_0x37cede);if(!_0x3112f4)throw new _0x33e300('track-changes-user-not-found',this);return _0x3112f4;}['_getExternalAuthor'](_0x1ee97d){const _0x462b8b=this['editor']['plugins']['get']('Users'),_0x2f1d50=_0x172249('external:'+_0x1ee97d),_0x3826a5=_0x462b8b['getUser'](_0x2f1d50);return _0x3826a5||_0x462b8b['addUser']({'id':_0x2f1d50,'name':_0x1ee97d});}['_createSuggestion'](_0x4317a3,_0xebd98b,_0x1ea2ef,_0x19f9de,_0x276ba9,_0x25188e){const _0x358a94=this['_getAuthorFromId'](_0x19f9de),_0x3b6312=this['_suggestionFactory']['buildSuggestion'](_0x4317a3,_0xebd98b,_0x1ea2ef,_0x358a94,_0x276ba9,_0x17c25b=>{this['_updateSuggestionData'](_0x1ea2ef,{'attributes':_0x17c25b});const _0x5e3b8b=this['getSuggestion'](_0x1ea2ef);this['_joinWithAdjacentSuggestions'](new Set([_0x5e3b8b])),this['_refreshSuggestionsChain'](new Set([_0x5e3b8b]));},_0x25188e);return this['listenTo'](_0x3b6312,'accept',()=>{this['_updateSuggestionData'](_0x1ea2ef,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3b6312,'discard',()=>{this['_updateSuggestionData'](_0x1ea2ef,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1ea2ef,_0x3b6312),this['_suggestionState']['set'](_0x3b6312,'notReady'),_0x3b6312;}['_splitMarkerName'](_0x2c06d6){const _0x1ab4aa=_0x2c06d6['split'](':');return{'group':_0x1ab4aa[0x0],'type':_0x1ab4aa[0x1],'subType':_0x1ab4aa['length']>=0x5?_0x1ab4aa[0x2]:null,'id':_0x1ab4aa['length']<0x5?_0x1ab4aa[0x2]:_0x1ab4aa[0x3],'authorId':_0x1ab4aa['length']<0x5?_0x1ab4aa[0x3]:_0x1ab4aa[0x4],'markerCount':0x6==_0x1ab4aa['length']?_0x1ab4aa[0x5]:null};}['_breakSuggestionMarker'](_0x4aa204,_0x624b9d,_0x92c08c){const _0x1eea82=_0x4aa204['getFirstRange'](),_0x4bc757=_0x1eea82['start'],_0x35391e=_0x1eea82['end'];this['_setSuggestionRange'](_0x4aa204,this['_model']['createRange'](_0x4bc757,_0x624b9d));const _0x2deee4=_0x140250(),_0x85e096=_0x4aa204['creator']['id'],_0x2e7c62=_0x4aa204['type']+(_0x4aa204['subType']?':'+_0x4aa204['subType']:'');this['_setSuggestionData']({'id':_0x2deee4,'type':_0x2e7c62,'createdAt':new Date(),'authorId':_0x85e096,'originalSuggestionId':_0x4aa204['_originalSuggestionId']||_0x4aa204['id'],'attributes':_0x4aa204['attributes'],'data':_0x4aa204['data']});const _0x2d5b2f=this['_getAttributeKey'](_0x4aa204);('formatBlock'==_0x4aa204['type']||_0x2d5b2f&&this['_isBlockAttribute'](_0x2d5b2f))&&(_0x92c08c=this['_model']['createPositionBefore'](_0x92c08c['parent'])),this['_addSuggestionMarker'](_0x2e7c62,_0x2deee4,_0x85e096,this['_model']['createRange'](_0x92c08c,_0x35391e));}['_findSuggestions'](_0x503607,_0x1c952c=null){const _0x3aad07=[],_0x2b0750=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x503607)||(_0x503607=[_0x503607]);for(const _0x7b7d6a of this['getSuggestions']()){if(!_0x7b7d6a['isInContent'])continue;if(_0x1c952c&&_0x7b7d6a['type']!=_0x1c952c)continue;let _0x37418f=!0x1;for(const _0x36f45a of _0x7b7d6a['getRanges']()){for(const _0xd1eda5 of _0x503607){const _0x2977ae=_0xd1eda5['start']['isEqual'](_0x36f45a['end'])||_0xd1eda5['end']['isEqual'](_0x36f45a['start']);if(_0x2977ae||_0xd1eda5['getIntersection'](_0x36f45a)){const _0x23aa88=_0xd1eda5['containsRange'](_0x36f45a)&&Ft(this['_model']['schema'],_0x36f45a['start'],_0xd1eda5),_0x506b3e=_0x36f45a['containsRange'](_0xd1eda5)&&Ft(this['_model']['schema'],_0xd1eda5['start'],_0x36f45a);_0x3aad07['push']({'suggestion':_0x7b7d6a,'meta':{'isOwn':_0x2b0750==_0x7b7d6a['author'],'isNextTo':_0x2977ae,'isInsideObject':_0x23aa88,'containsRangeInObject':_0x506b3e}}),_0x37418f=!0x0;break;}}if(_0x37418f)break;}}return _0x3aad07;}['_addSuggestionMarker'](_0x4bc2db,_0x2cf6ec,_0xb91c46,_0x552661,_0x158ecc){this['_model']['change'](_0x109c0d=>{let _0x2e9c4c='suggestion:'+_0x4bc2db+':'+_0x2cf6ec+':'+_0xb91c46;_0x158ecc&&(_0x2e9c4c=_0x2e9c4c+':'+_0x158ecc),_0x109c0d['addMarker'](_0x2e9c4c,{'range':_0x552661,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x4b6926){const _0x4f9bc7=_0x4b6926['previous'],_0xbdbf55=_0x4b6926['next'];_0x4b6926['previous']=null,_0x4b6926['next']=null,null!=_0x4f9bc7&&_0x4f9bc7['next']==_0x4b6926&&(_0x4f9bc7['next']=_0xbdbf55),null!=_0xbdbf55&&_0xbdbf55['previous']==_0x4b6926&&(_0xbdbf55['previous']=_0x4f9bc7),'ready'==this['_suggestionState']['get'](_0x4b6926)&&(this['_suggestionState']['set'](_0x4b6926,'removed'),this['fire']('suggestionUnloaded',_0x4b6926,_0x4f9bc7,_0xbdbf55));}['_setSuggestionData'](_0x2889a9){const _0x14f89d=_0x2889a9['id'],_0x576f4b=this['addSuggestionData'](_0x2889a9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x56305f=this['editor']['plugins']['get']('PendingActions'),_0x3bde50=_0x576f4b['hasComments'],_0x2848d5=_0x576f4b['subType']?_0x576f4b['type']+':'+_0x576f4b['subType']:_0x576f4b['type'],_0x4f70d7=this['editor']['locale'],_0x3d8dcc=_0x56305f['add'](o(_0x4f70d7,'PENDING_ACTION_SUGGESTION')),_0x376ba4={'id':_0x14f89d,'type':_0x2848d5,'hasComments':_0x3bde50,'data':_0x2889a9['data']||null,'originalSuggestionId':_0x2889a9['originalSuggestionId']||null,'attributes':_0x576f4b['attributes']};this['_adapter']['addSuggestion'](_0x376ba4)['then'](_0x521918=>{_0x576f4b['_saved']=!0x0,_0x56305f['remove'](_0x3d8dcc),_0x521918&&_0x521918['createdAt']&&(this['_suggestions']['get'](_0x14f89d)['createdAt']=_0x521918['createdAt']);})['catch'](_0x5ae0ea=>{throw _0x51214e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x576f4b['discard']();}),_0x576f4b['stopListening'](),this['_suggestions']['delete'](_0x576f4b['id']),this['_suggestionState']['delete'](_0x576f4b),_0x5ae0ea;});}return _0x576f4b;}['_isBlockAttribute'](_0x1fce2b){return this['_blockAttributeKeys']['has'](_0x1fce2b);}['_updateSuggestionData'](_0x566632,_0x21e436){const _0x5cb5f4=this['editor']['plugins']['get']('PendingActions'),_0x404de5=this['getSuggestion'](_0x566632);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x404de5['_saved']){const _0x5eb367=_0x5cb5f4['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x566632,_0x21e436)['then'](()=>{_0x5cb5f4['remove'](_0x5eb367);});}else _0x404de5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x566632,_0x21e436);});}}['_getSuggestionData'](_0x387cb5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x33e300('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x387cb5);}['_handleNewSuggestionMarker'](_0x2b098d){const {id:_0x271882,type:_0x1dd5c1,subType:_0x40f52e,authorId:_0x302957}=this['_splitMarkerName'](_0x2b098d),_0x4b3dd6=this['_suggestions']['get'](_0x271882)||this['_createSuggestion'](_0x1dd5c1,_0x40f52e,_0x271882,_0x302957,{});switch(this['_checkSuggestionCorrectness'](_0x4b3dd6,_0x1dd5c1,_0x40f52e,_0x302957),this['_suggestionState']['get'](_0x4b3dd6)){case'notReady':this['_getSuggestionData'](_0x271882)['then'](_0xb9f2ff=>{let _0x11ca2b=Promise['resolve']();_0xb9f2ff['hasComments']&&(_0x11ca2b=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x271882})),_0x11ca2b['then'](()=>{this['addSuggestionData'](_0xb9f2ff)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b3dd6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x271882,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b3dd6,'ready'),this['fire']('suggestionLoaded',_0x4b3dd6);break;case'ready':this['fire']('suggestionChanged',_0x4b3dd6);}return _0x4b3dd6['addMarkerName'](_0x2b098d),_0x4b3dd6;}['_refreshSuggestionsChain'](_0x260d88){const _0x4d952e=Array['from'](_0x260d88),_0x54da50=_0x4d952e['filter'](_0x1603fd=>'attribute'==_0x1603fd['type']);this['_refreshAttributeSuggestionsChain'](_0x54da50);const _0x30dbdf=_0x4d952e['filter'](_0x103e02=>!_0x103e02['isMultiRange']&&'attribute'!=_0x103e02['type']),_0x529e05=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17612d=>!_0x17612d['isMultiRange']&&'attribute'!=_0x17612d['type']),_0x566833=_0x529e05['filter'](_0x263f3f=>!_0x260d88['has'](_0x263f3f)),_0x125258=new Map(_0x529e05['map'](_0x19441a=>[_0x19441a,this['_suggestionFactory']['getSuggestionCallback'](_0x19441a['type'],_0x19441a['subType'],'chain')])),_0x525061=new Map(_0x529e05['map'](_0x4da5d8=>[_0x4da5d8,_0x4da5d8['getFirstRange']()])),_0x3223f6=new Set(),_0x3d7e98=new Set();for(let _0x495c7e=0x0;_0x495c7e<_0x30dbdf['length'];_0x495c7e++)_0x25fdf6(_0x30dbdf[_0x495c7e],_0x30dbdf,_0x495c7e+0x1);for(let _0x90649e=0x0;_0x90649e<_0x30dbdf['length'];_0x90649e++)_0x25fdf6(_0x30dbdf[_0x90649e],_0x566833,0x0);const _0x440a56=new Set();for(let _0x2a4229=0x0;_0x2a4229<_0x30dbdf['length'];_0x2a4229++){const _0xf24ccf=_0x30dbdf[_0x2a4229];!_0x3d7e98['has'](_0xf24ccf)&&_0xf24ccf['previous']&&(_0x440a56['add'](_0xf24ccf['previous']),_0xf24ccf['previous']['next']===_0xf24ccf&&(_0xf24ccf['previous']['next']=null),_0xf24ccf['previous']=null),!_0x3223f6['has'](_0xf24ccf)&&_0xf24ccf['next']&&(_0x440a56['add'](_0xf24ccf['next']),_0xf24ccf['next']['previous']===_0xf24ccf&&(_0xf24ccf['next']['previous']=null),_0xf24ccf['next']=null);}function _0x25fdf6(_0xf7614,_0x290b02,_0x38fd43){for(let _0x2d9ab0=_0x38fd43;_0x2d9ab0<_0x290b02['length'];_0x2d9ab0++){const _0x4ea0bb=_0x2bf679(_0xf7614,_0x290b02[_0x2d9ab0]);_0x4ea0bb&&(_0x4ea0bb[0x0]['next']=_0x4ea0bb[0x1],_0x4ea0bb[0x1]['previous']=_0x4ea0bb[0x0],_0x3223f6['add'](_0x4ea0bb[0x0]),_0x3d7e98['add'](_0x4ea0bb[0x1]));}}function _0x2bf679(_0x28cdbf,_0x19877e){if(_0x28cdbf['author']['id']!==_0x19877e['author']['id'])return null;const _0x295cc1=_0x125258['get'](_0x28cdbf)(_0x28cdbf,_0x19877e,_0x525061['get'](_0x28cdbf),_0x525061['get'](_0x19877e));if(!_0x295cc1)return null;return _0x125258['get'](_0x19877e)(_0x28cdbf,_0x19877e,_0x525061['get'](_0x28cdbf),_0x525061['get'](_0x19877e))?_0x295cc1[0x1]['commentThread']&&_0x295cc1[0x1]['commentThread']['length']?null:_0x295cc1:null;}_0x440a56['size']&&this['_refreshSuggestionsChain'](_0x440a56);}['_refreshAttributeSuggestionsChain'](_0x4b3edb){if(0x0==_0x4b3edb['length'])return;const _0x370223=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e0daf=>'attribute'==_0x5e0daf['type']&&_0x5e0daf['_isDataLoaded']),_0x3dd8ae=[],_0x5462b6=new Map();for(const _0x4b9e62 of _0x370223){const _0x40ad4c=_0x172249(_0x4b9e62['attributes']);_0x5462b6['has'](_0x40ad4c)||(_0x5462b6['set'](_0x40ad4c,_0x3dd8ae['length']),_0x3dd8ae['push']([]));const _0x4c508a=_0x5462b6['get'](_0x40ad4c);_0x3dd8ae[_0x4c508a]['push'](_0x4b9e62);}!(function(){_0x3dd8ae['sort']((_0x2573f2,_0x3728ee)=>{const _0x48fa79=_0x2573f2[0x0]['createdAt'],_0x2836bb=_0x3728ee[0x0]['createdAt'];return _0x48fa79==_0x2836bb?_0x2573f2[0x0]['attributes']['groupId']<_0x3728ee[0x0]['attributes']['groupId']?-0x1:0x1:_0x48fa79<_0x2836bb?-0x1:0x1;});for(const _0x5a0221 of _0x3dd8ae)_0x5a0221['sort']((_0x53f196,_0x245e03)=>_0x53f196['id']<_0x245e03['id']?-0x1:0x1);}());for(let _0x1eb43d=0x0;_0x1eb43d<_0x3dd8ae['length'];_0x1eb43d++){if(0x0==_0x3dd8ae[_0x1eb43d]['length'])continue;const _0x371fc6=[];for(let _0x1ae6fb=_0x1eb43d+0x1;_0x1ae6fb<_0x3dd8ae['length'];_0x1ae6fb++)0x0!=_0x3dd8ae[_0x1ae6fb]['length']&&_0x9808bb(_0x3dd8ae[_0x1eb43d],_0x3dd8ae[_0x1ae6fb])&&_0x371fc6['push'](_0x1ae6fb);for(const _0x19ac61 of _0x371fc6)_0x3dd8ae[_0x1eb43d]=_0x3dd8ae[_0x1eb43d]['concat'](_0x3dd8ae[_0x19ac61]),_0x3dd8ae[_0x19ac61]=[];}for(const _0xf13174 of _0x3dd8ae)for(let _0x53b470=0x0;_0x53b470<_0xf13174['length'];_0x53b470++){const _0x263c41=_0xf13174[_0x53b470+0x1]||null;_0xf13174[_0x53b470]['next']!==_0x263c41&&(_0xf13174[_0x53b470]['next']=_0x263c41);}for(const _0x1c6588 of _0x3dd8ae)for(let _0x4bb73a=0x0;_0x4bb73a<_0x1c6588['length'];_0x4bb73a++){const _0x2f348b=_0x1c6588[_0x4bb73a-0x1]||null;_0x1c6588[_0x4bb73a]['previous']!==_0x2f348b&&(_0x1c6588[_0x4bb73a]['previous']=_0x2f348b);}function _0x9808bb(_0x56f07c,_0x98e54d){if(_0x56f07c[0x0]['attributes']['groupId']!==_0x98e54d[0x0]['attributes']['groupId']&&_0x56f07c[0x0]['author']!==_0x98e54d[0x0]['author'])return!0x1;if(!function(_0x4da725,_0x20126e){if(!_0x4da725['hasComments']&&!_0x20126e['hasComments'])return!0x0;if(_0x4da725['hasComments']&&_0x20126e['hasComments'])return!0x1;if(_0x4da725['hasComments']&&_0x20126e['createdAt']<_0x4da725['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x20126e['hasComments']&&_0x4da725['createdAt']<_0x20126e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x56f07c[0x0],_0x98e54d[0x0]))return!0x1;const _0x5c0bc7=Ut(_0x56f07c[0x0]['attributes'],['groupId','trackingSessionId']),_0x558993=Ut(_0x98e54d[0x0]['attributes'],['groupId','trackingSessionId']);if(!_0x48cd59(_0x5c0bc7,_0x558993))return!0x1;if(_0x56f07c[0x0]['attributes']['groupId']==_0x98e54d[0x0]['attributes']['groupId'])return!0x0;if(_0x56f07c[0x0]['attributes']['trackingSessionId']!==_0x98e54d[0x0]['attributes']['trackingSessionId'])return!0x1;return!!_0x56f07c['every'](_0xf2da16=>_0x98e54d['some'](_0x88fdcc=>_0xf2da16['getFirstRange']()['isEqual'](_0x88fdcc['getFirstRange']())))&&_0x98e54d['every'](_0x37851f=>_0x56f07c['some'](_0x87ef22=>_0x37851f['getFirstRange']()['isEqual'](_0x87ef22['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x19ac77){const _0x2e8297=Array['from'](_0x19ac77),_0x51b2b1=this['getSuggestions']({'skipNotAttached':!0x0}),_0x42625a=_0x51b2b1['filter'](_0x3689ec=>!_0x19ac77['has'](_0x3689ec)),_0x4b728a=new Map(_0x2e8297['map'](_0x537d3e=>[_0x537d3e,this['_suggestionFactory']['getSuggestionCallback'](_0x537d3e['type'],_0x537d3e['subType'],'join')])),_0x4508e7=new Map(_0x51b2b1['map'](_0x10794d=>[_0x10794d,_0x10794d['getRanges']()]));for(let _0x3a9d07=0x0;_0x3a9d07<_0x2e8297['length'];_0x3a9d07++){if(_0x346c06(this,_0x2e8297[_0x3a9d07],_0x2e8297,_0x3a9d07+0x1))return!0x0;}for(let _0x43377a=0x0;_0x43377a<_0x2e8297['length'];_0x43377a++){if(_0x346c06(this,_0x2e8297[_0x43377a],_0x42625a,0x0))return!0x0;}return!0x1;function _0x346c06(_0x5090d2,_0x47e03f,_0x2239fe,_0x1653d7){for(let _0x44ced4=_0x1653d7;_0x44ced4<_0x2239fe['length'];_0x44ced4++){const _0x2bc3a4=_0x2239fe[_0x44ced4];if(_0x2bc3a4['type']!==_0x47e03f['type']||_0x2bc3a4['author']['id']!==_0x47e03f['author']['id']||_0x2bc3a4['subType']!==_0x47e03f['subType'])continue;if(!Wt(_0x47e03f,_0x2bc3a4))continue;if('attribute'==_0x47e03f['type']&&_0x47e03f['data']['oldValue']!=_0x2bc3a4['data']['oldValue'])continue;if('attribute'==_0x47e03f['type']&&_0x5090d2['_isBlockAttribute'](_0x47e03f['data']['key']))continue;if('formatBlock'==_0x47e03f['type']){const _0x2b6532=_0x5090d2['editor']['model'],_0x79bd54=_0x47e03f['getContainedElement']();if(_0x79bd54&&(_0x2b6532['schema']['isObject'](_0x79bd54)||_0x2b6532['schema']['isLimit'](_0x79bd54)))continue;}const _0x2ae8a5=_0x4b728a['get'](_0x47e03f),_0x403788=_0x4508e7['get'](_0x47e03f),_0x5c53d0=_0x4508e7['get'](_0x2bc3a4),_0x836506=_0x47e03f['commentThread']&&_0x47e03f['commentThread']['length'],_0x3981fd=_0x2bc3a4['commentThread']&&_0x2bc3a4['commentThread']['length'];if(!_0x836506&&_0x2ae8a5(_0x5c53d0,_0x403788))return _0x5090d2['_joinSuggestions'](_0x2bc3a4,_0x47e03f),_0x4508e7['delete'](_0x47e03f),!0x0;if(!_0x3981fd&&_0x2ae8a5(_0x403788,_0x5c53d0))return _0x5090d2['_joinSuggestions'](_0x47e03f,_0x2bc3a4),_0x4508e7['delete'](_0x2bc3a4),!0x0;}return!0x1;}}['_joinSuggestions'](_0x126723,_0xc53112){if(_0x126723['isMultiRange']){for(const _0x40720f of _0xc53112['getRanges']())_0x126723['addRange'](_0x40720f);}else{const _0x1f2e5c=_0xc53112['getFirstRange']()['end'];this['_setSuggestionRange'](_0x126723,this['_model']['createRange'](_0x126723['getFirstRange']()['start'],_0x1f2e5c));}_0xc53112['removeMarkers']();}['_getMarkerAnnouncementText'](_0x312834,_0x13022c,_0x307644){const _0x5d7877=_0x312834['startsWith']('format')||_0x312834['startsWith']('attribute')?'FORMATTING':_0x312834['toUpperCase']();return o(this['editor']['locale'],_0x13022c+'_'+_0x5d7877+'_SUGGESTION_ANNOUNCEMENT',_0x307644);}['_initAriaMarkerChangeAnnouncements'](){const _0x4fe106=this['editor'];if(!_0x4fe106['ui'])return;const {ariaLiveAnnouncer:_0x5bbd1f}=_0x4fe106['ui'];_0x1f8bfc(this['_model'],({left:_0x165711,entered:_0x875072})=>{for(const _0x17c5cc of _0x165711){const {group:_0x51103c,type:_0x2ead43}=this['_splitMarkerName'](_0x17c5cc['name']);if('suggestion'===_0x51103c){_0x5bbd1f['announce'](this['_getMarkerAnnouncementText'](_0x2ead43,'LEAVE'));break;}}for(const _0x490818 of _0x875072){const {group:_0x8fbfd8,type:_0x4a176d}=this['_splitMarkerName'](_0x490818['name']);if('suggestion'===_0x8fbfd8){_0x5bbd1f['announce'](this['_getMarkerAnnouncementText'](_0x4a176d,'ENTER',_0x185a9c(_0x44f7ba)));break;}}});}['_processAttributeChanges'](_0x5a3f4f){if(this['_recordAttributeSuggestions'])return!0x1;const _0x58c40e=this['editor'],_0x51b159=_0x58c40e['model']['document']['differ']['getChanges']();if(0x0==_0x51b159['length'])return!0x1;const _0x1b3897=[],_0x14780b=_0x51b159['filter'](_0x4412b5=>'attribute'==_0x4412b5['type']),_0x131974=_0x51b159['filter'](_0x4d9230=>'insert'==_0x4d9230['type']&&'$text'!=_0x4d9230['name']),_0x1a96ef=_0x51b159['filter'](_0x510469=>'remove'==_0x510469['type']&&'$text'!=_0x510469['name']);for(const _0x15024d of _0x14780b)_0x1b3897['push']({'key':_0x15024d['attributeKey'],'newValue':_0x15024d['attributeNewValue'],'oldValue':_0x15024d['attributeOldValue'],'range':Ht(_0x15024d['range'],_0x58c40e['model'])});for(const _0x5e70c9 of _0x131974){const _0x1e21bb=_0x1a96ef['find'](_0x1af3d0=>_0x1af3d0['position']['isEqual'](_0x5e70c9['position']));_0x1e21bb&&_0x1b3897['push']({'key':m,'newValue':_0x5e70c9['name'],'oldValue':_0x1e21bb['name'],'range':_0x58c40e['model']['createRangeOn'](_0x5e70c9['position']['nodeAfter'])});}return 0x0!=_0x1b3897['length']&&this['_reduceExistingSuggestions'](_0x5a3f4f,_0x1b3897);}['_processAttributeSuggestions'](_0x3b8ddd){let _0x31fb2a=!0x1;const _0x3556be=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x253055=>_0x253055['data']['newRange']&&_0x253055['name']['startsWith']('suggestion:attribute:'));for(const _0x125a4f of _0x3556be){const {subType:_0x85fbc7,id:_0x2f3a91}=this['_splitMarkerName'](_0x125a4f['name']),_0x487699=_0x85fbc7['split']('|')[0x0];for(const _0x550d3a of this['getSuggestions']({'skipNotAttached':!0x0}))_0x550d3a['id']!=_0x2f3a91&&'attribute'==_0x550d3a['type']&&_0x550d3a['data']&&_0x550d3a['data']['key']==_0x487699&&_0x550d3a['getFirstRange']()['isIntersecting'](_0x125a4f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x550d3a,_0x125a4f['data']['newRange'],_0x3b8ddd),_0x31fb2a=!0x0);}return _0x31fb2a;}['recordAttributeChanges'](_0x4d223b){this['_recordAttributeSuggestions']=!0x0,_0x4d223b();}['_isRegisteredAttribute'](_0x3c6185){const _0x2fa28b=this['_isBlockAttribute'](_0x3c6185),_0x6eec5a=this['_inlineAttributeKeys']['has'](_0x3c6185);return _0x2fa28b||_0x6eec5a;}['_reduceExistingSuggestions'](_0x4c0b4d,_0x4394ab){if(0x0==_0x4394ab['length'])return!0x1;let _0x168dc0=!0x1;for(const _0x397bf3 of _0x4394ab){const _0xead900=this['_findSuggestions'](_0x397bf3['range'],'attribute')['filter'](_0x3c1761=>!_0x3c1761['meta']['isNextTo'])['map'](_0x23d5a4=>_0x23d5a4['suggestion']),_0x156428=_0x172249({'newValue':_0x397bf3['newValue']});_0xead900['filter'](_0x9197c8=>{const [_0x46abbc,_0x4146fc]=_0x9197c8['subType']['split']('|');return _0x46abbc==_0x397bf3['key']&&_0x4146fc!=_0x156428;})['forEach'](_0xc6ac0e=>{this['_reduceSuggestionAttributeRange'](_0xc6ac0e,_0x397bf3['range'],_0x4c0b4d),_0x168dc0=!0x0;});}return _0x168dc0;}['_reduceSuggestionAttributeRange'](_0x599566,_0x281d63,_0x3dd14f){const _0x42533a=_0x599566['getFirstRange']()['getDifference'](_0x281d63);0x0!==_0x42533a['length']?0x1!==_0x42533a['length']?this['_breakSuggestionMarker'](_0x599566,_0x281d63['start'],_0x281d63['end']):this['_setSuggestionRange'](_0x599566,_0x42533a[0x0]):_0x3dd14f['removeMarker'](_0x599566['getFirstMarker']());}}class Vt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x12ed5c){this['_editor']=_0x12ed5c,this['_model']=_0x12ed5c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4b7758,_0x40a27e,_0x1d72b8,_0x198d8c,_0xdfb2a1,_0x5a9f1d,_0x536628){return new T(this['_model'],{'type':_0x4b7758,'subType':_0x40a27e,'id':_0x1d72b8,'originalSuggestionId':_0x536628,'author':_0x198d8c,'creator':_0x198d8c,'attributes':_0xdfb2a1,'onAttributesChange':_0x5a9f1d,'onAccept':(..._0x7c03ad)=>this['getSuggestionCallback'](_0x4b7758,_0x40a27e,'accept')(..._0x7c03ad),'onDiscard':(..._0x4b67cc)=>this['getSuggestionCallback'](_0x4b7758,_0x40a27e,'discard')(..._0x4b67cc)});}['registerCustomCallback'](_0x2ba3c6,_0x2f971e,_0x14a96e,_0x384dd4){const _0x18dd1d=_0x2ba3c6+':'+_0x2f971e+':'+_0x14a96e;this['_customCallbacks']['set'](_0x18dd1d,_0x384dd4);}['getSuggestionCallback'](_0x10ed9b,_0x3fa83a,_0x4c8374){const _0x4a9fec=_0x10ed9b+':'+_0x3fa83a+':'+_0x4c8374;return this['_customCallbacks']['get'](_0x4a9fec)||this['_defaultCallbacks']['get'](_0x10ed9b+':'+_0x4c8374);}['_registerDefaultCallbacks'](){const _0x35d383=()=>!0x1,_0x3fe6f0=_0xcdd37f=>{_0xcdd37f['sort']((_0x2c8ca1,_0x2a7db0)=>_0x2c8ca1['start']['isBefore'](_0x2a7db0['start'])?0x1:-0x1),this['_model']['change'](_0x572767=>{for(const _0x2c6e0a of _0xcdd37f){let _0x21b76f;_0x21b76f=_0x2c6e0a['end']['isAtEnd']&&_0x2c6e0a['end']['parent']==_0x2c6e0a['start']['nodeAfter']?_0x572767['createSelection'](_0x2c6e0a['start']['nodeAfter'],'on'):_0x572767['createSelection'](_0x2c6e0a),this['_model']['deleteContent'](_0x21b76f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0,'doNotFixSelection':!0x0});}});},_0x6a1fae=(_0x45d801,_0x7af6a2)=>{_0x7af6a2&&this['_model']['change'](_0x28b9b0=>{const {commandName:_0x31df2a,commandParams:_0x17ce3a=[]}=_0x7af6a2,_0x70bcad=_0x45d801['map'](_0x1f89c2=>(Pt(_0x1f89c2)&&(_0x1f89c2=this['_model']['createRange'](_0x1f89c2['end'])),_0x1f89c2))['filter'](_0x52ff3c=>'$graveyard'!==_0x52ff3c['root']['rootName']);if(_0x70bcad['length']<0x1)return;const _0x596c90=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x54225a=>_0x3590e7['fromRange'](_0x54225a));_0x28b9b0['setSelection'](_0x70bcad);for(const _0x187ae2 of this['_editor']['commands']['commands']())_0x187ae2['refresh']();_0x17ce3a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x31df2a,..._0x17ce3a);const _0x3f656a=_0x596c90['filter'](_0x452294=>'$graveyard'!=_0x452294['root']['rootName']);_0x3f656a['length']>0x0&&_0x28b9b0['setSelection'](_0x3f656a);for(const _0x30d7ce of _0x596c90)_0x30d7ce['detach']();});},_0x5e6de5=(_0x1e1dd4,_0x1f2c53)=>0x1==_0x1e1dd4['length']&&0x1==_0x1f2c53['length']&&_0x1e1dd4[0x0]['end']['isEqual'](_0x1f2c53[0x0]['start']),_0x4c6fa1=(_0xe4e869,_0x39df70,_0x5b360c,_0x18f6b0)=>zt(_0xe4e869,_0x39df70,_0x5b360c,_0x18f6b0)?[_0xe4e869,_0x39df70]:zt(_0x39df70,_0xe4e869,_0x18f6b0,_0x5b360c)?[_0x39df70,_0xe4e869]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35d383),this['_defaultCallbacks']['set']('insertion:discard',_0x3fe6f0),this['_defaultCallbacks']['set']('insertion:join',_0x5e6de5),this['_defaultCallbacks']['set']('insertion:chain',_0x4c6fa1),this['_defaultCallbacks']['set']('deletion:accept',_0x3fe6f0),this['_defaultCallbacks']['set']('deletion:discard',_0x35d383),this['_defaultCallbacks']['set']('deletion:join',_0x5e6de5),this['_defaultCallbacks']['set']('deletion:chain',_0x4c6fa1),this['_defaultCallbacks']['set']('formatInline:accept',_0x6a1fae),this['_defaultCallbacks']['set']('formatInline:discard',_0x35d383),this['_defaultCallbacks']['set']('formatInline:join',_0x5e6de5),this['_defaultCallbacks']['set']('formatInline:chain',_0x35d383),this['_defaultCallbacks']['set']('formatBlock:accept',_0x6a1fae),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35d383),this['_defaultCallbacks']['set']('formatBlock:join',_0x5e6de5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35d383),this['_defaultCallbacks']['set']('attribute:accept',_0x35d383),this['_defaultCallbacks']['set']('attribute:discard',(_0x230770,_0x2c844f)=>{if(!_0x2c844f)return;const _0x1aa454=this['_editor']['plugins']['get'](d);this['_model']['change'](_0x446b5d=>{if(_0x2c844f['key']==m)for(const _0x2004a6 of _0x230770){const _0x2e4e7d=_0x2004a6['start']['nodeAfter'],_0x42f578=_0x2c844f['oldValue'];_0x446b5d['rename'](_0x2e4e7d,_0x42f578);}else{if(_0x1aa454['_isBlockAttribute'](_0x2c844f['key'])){for(const _0x24b92c of _0x230770)void 0x0!==_0x2c844f['oldValue']?_0x446b5d['setAttribute'](_0x2c844f['key'],_0x2c844f['oldValue'],_0x24b92c['start']['nodeAfter']):_0x446b5d['removeAttribute'](_0x2c844f['key'],_0x24b92c['start']['nodeAfter']);}else{for(const _0xd33c13 of _0x230770)_0x2c844f['oldValue']?_0x446b5d['setAttribute'](_0x2c844f['key'],_0x2c844f['oldValue'],_0xd33c13):_0x446b5d['removeAttribute'](_0x2c844f['key'],_0xd33c13);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5e6de5);}}function Ft(_0x5cc63a,_0x43f277,_0x57c0e3){for(const _0x2dde19 of _0x43f277['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2dde19['root']==_0x2dde19)return!0x1;if(!_0x57c0e3['containsItem'](_0x2dde19))return!0x1;if(_0x5cc63a['isObject'](_0x2dde19)||_0x5cc63a['isLimit'](_0x2dde19))return!0x0;}return!0x1;}function Pt(_0x46e637){return _0x46e637['end']['parent']==_0x46e637['start']['nodeAfter']&&_0x46e637['end']['isAtStart'];}function Gt(_0x43628d,_0x5d2c00,_0x3a201f,_0x4475e2){const _0x583329=_0x37b0e3=>!_0x37b0e3['item']['is']('$textProxy')&&!_0x4475e2['isObject'](_0x37b0e3['item']),_0x2cbc7f=_0x43628d['start']['getLastMatchingPosition'](_0x583329),_0x34dbb9=_0x43628d['end']['getLastMatchingPosition'](_0x583329,{'direction':'backward'});return(!_0x43628d['start']['isEqual'](_0x2cbc7f)||!_0x43628d['end']['isEqual'](_0x34dbb9))&&(_0x2cbc7f['isBefore'](_0x34dbb9)?_0x3a201f['updateMarker'](_0x5d2c00,{'range':_0x3a201f['createRange'](_0x2cbc7f,_0x34dbb9)}):_0x3a201f['removeMarker'](_0x5d2c00),!0x0);}function Lt(_0x116e3a){return _0x172249(_0x116e3a);}function Jt(_0xc363f3){const _0x2f37cf=_0xc363f3['start']['nodeAfter'];return _0x2f37cf&&_0x2f37cf['is']('element');}function Kt(_0x3e3416){return!Pt(_0x3e3416)&&!function(_0x337460){return _0x337460['start']['parent']==_0x337460['end']['nodeBefore']&&_0x337460['start']['isAtEnd'];}(_0x3e3416);}function Ht(_0x10702c,_0x4f4bfe){return null==_0x10702c['end']['nodeBefore']&&_0x10702c['end']['parent']==_0x10702c['start']['nodeAfter']?qt(_0x10702c['start']['nodeAfter'],_0x4f4bfe):_0x10702c;}function qt(_0x172dfc,_0x466182){const _0x5dfdef=_0x466182['schema']['isObject'](_0x172dfc)||_0x466182['schema']['isSelectable'](_0x172dfc);return _0x466182['createRange'](_0x466182['createPositionAt'](_0x172dfc,'before'),_0x5dfdef?_0x466182['createPositionAfter'](_0x172dfc):_0x466182['createPositionAt'](_0x172dfc,'end'));}function zt(_0xf73188,_0x574b92,_0x351d68,_0x27e76e){return!!Wt(_0xf73188,_0x574b92)&&_0x351d68['end']['isEqual'](_0x27e76e['start']);}function Wt(_0x3f274e,_0x2a479f){if(!_0x3f274e['_isDataLoaded']||!_0x2a479f['_isDataLoaded'])return!0x1;const _0x1f96e6=new Set(Object['keys'](_0x3f274e['attributes'])),_0x2c4942=new Set(Object['keys'](_0x2a479f['attributes']));if(_0x1f96e6['delete']('groupId'),_0x2c4942['delete']('groupId'),0x0==_0x1f96e6['size']&&0x0==_0x2c4942['size'])return!0x0;if(_0x1f96e6['size']!=_0x2c4942['size'])return!0x1;const _0x117038={..._0x3f274e['attributes']},_0xcca6e9={..._0x2a479f['attributes']};return delete _0x117038['groupId'],delete _0xcca6e9['groupId'],JSON['stringify'](_0x117038)==JSON['stringify'](_0xcca6e9);}function Qt(_0x2dd361,_0x2f64ff){const _0x3a9695=Xt(_0x2dd361['attributes']),_0x5b620c=Xt(_0x2f64ff);if(!_0x2dd361['_isDataLoaded'])return!0x1;for(const _0x8cc53c of Object['keys'](_0x5b620c))if(!_0x48cd59(_0x3a9695[_0x8cc53c],_0x5b620c[_0x8cc53c]))return!0x1;return!0x0;}function Xt(_0x3cde2b){const _0x4542cb=Object['assign']({},_0x3cde2b);return delete _0x4542cb['skipNestingCheck'],delete _0x4542cb['tablePasteChainId'],_0x4542cb;}class pe extends/* #__PURE__ -- @preserve */
26
+ _0x231f54(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x19ca72,_0x3f4fa4,_0x2e40e4,_0x42bd44){super(),this['model']=_0x3f4fa4,this['view']=_0x2e40e4,this['commentThreadController']=_0x42bd44,this['_editor']=_0x19ca72,this['_acceptCommand']=_0x19ca72['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x19ca72['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xf14c84,_0x99c6e3)=>_0xf14c84||_0x99c6e3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x23ef47=>_0x23ef47&&this['_editor']['model']['canEditAt'](_0x3f4fa4['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x4a46da=>_0x4a46da&&this['_editor']['model']['canEditAt'](_0x3f4fa4['getRanges']())),this['_pendingAction']=null,_0x2e40e4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x2e40e4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x2e40e4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x2e40e4,'change:isDirty',()=>{_0x2e40e4['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}['acceptSuggestion'](){this['_acceptCommand']['execute'](this['model']['id']);}['discardSuggestion'](){this['_discardCommand']['execute'](this['model']['id']);}['destroy'](){this['view']['unbind']('isEnabled'),this['view']['unbind']('canAccept'),this['view']['unbind']('canDiscard'),this['stopListening'](),this['commentThreadController']['destroy'](),this['_pendingAction']&&this['_removePendingAction']();}['_setPendingAction'](){const _0x39a36f=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x39a36f);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ii extends _0x2bab32{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4f1156,_0x2c7d83,_0x1e4fc6,_0x323b88){super(_0x4f1156),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x456c6a(_0x4f1156,o(_0x4f1156,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2c7d83['authoredAt']),this['bind']('authoredAt')['to'](_0x2c7d83),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x2c7d83,'authoredAt',this,'descriptionParts',(_0x162252,_0x28098b,_0x372d60)=>{const _0x17dd2c=_0x372d60['map'](_0x16410f=>ls(_0x16410f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x162252-0x1,_0x2c7d83['author']['name'],_0x28098b?_0x323b88['formatDateTime'](_0x28098b):'',new DOMParser()['parseFromString'](_0x17dd2c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4ad431(),this['focusTracker']=new _0x30b267(),this['keystrokes']=new _0x22e422(),this['focusCycler']=new _0x1213d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x349b97=>_0x349b97['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2c7d83,this['_localUser']=_0x1e4fc6,this['_config']=_0x323b88,_0x323b88['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x10e5f9(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a6ca2}=this['_config'];this['commentsListView']=new _0x1a6ca2(this['locale'],this['_model']['commentThread'],Object['assign']({'CommentView':this['_config']['CommentView']},this['_config'])),this['commentsListView']['delegate']('removeComment')['to'](this),this['commentsListView']['delegate']('updateComment')['to'](this),this['commentsListView']['bind']('isActive')['to'](this),this['set']('length',this['commentsListView']['length']+0x1),this['bind']('length')['to'](this['commentsListView'],'length',_0x623ec8=>_0x623ec8+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x2f3699,_0x2ff32d)=>_0x2f3699||!!_0x2ff32d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x27d497}=this['_config'],_0x407f3a=new _0x27d497(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3d5093=_0x407f3a['commentInputView'];return _0x407f3a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3d5093,'value',(_0xb40e9d,_0x57d010,_0x589ace)=>!!_0x589ace||_0xb40e9d&&!_0x57d010),_0x3d5093['on']('submit',(_0x451cf6,_0x4c581c)=>{this['fire']('addComment',_0x4c581c),_0x3d5093['editor']['setData']('');}),_0x3d5093['on']('cancel',()=>this['focus']()),_0x3d5093['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x407f3a;}}class fe extends ii{['suggestionView'];['_descriptionElement'];constructor(_0x17231b,_0x51c8a5,_0x443ab8,_0x560034){super(_0x17231b,_0x51c8a5,_0x443ab8,_0x560034),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0xf781da=>_0xf781da&&_0xf781da[0x0]?_0xf781da[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xe0a097,_0x322246)=>{let _0x1635e9='';for(const _0x123808 of _0xe0a097)_0x1635e9+='<p>'+ls(_0x123808['content'],_0x123808['color'])+'</p>';return _0x322246?_0x1635e9:_0x13706f(_0x1635e9,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x560034['SuggestionView'](_0x17231b,_0x51c8a5,{'formatDateTime':_0x560034['formatDateTime']}),this['suggestionView']['bind']('description')['to'](this),this['suggestionView']['delegate']('acceptSuggestion','discardSuggestion')['to'](this),this['suggestionView']['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['suggestionView']['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['focusables']['add'](this['suggestionView']),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x3fe11e=this['bindTemplate'],_0x1f1208=[this['suggestionView']];return this['commentsListView']&&_0x1f1208['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f1208['push'](this['commentThreadInputView']),_0x1f1208['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x3fe11e['if']('isActive','ck-suggestion-wrapper--active'),_0x3fe11e['to']('type',_0x4aa363=>'ck-suggestion-'+_0x4aa363),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x3fe11e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f1208};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x2bab32{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x45055d,_0x33a6d3,_0xcfac8e){super(_0x45055d),this['_model']=_0x33a6d3,this['_config']=_0xcfac8e,this['set']('description',''),this['bind']('authoredAt')['to'](_0x33a6d3),this['acceptButton']=this['_createButton'](o(_0x45055d,'Accept\x20suggestion'),_0x7f4849,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x45055d,'Discard\x20suggestion'),_0x1a2728,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x1a32b2(_0x45055d,_0x33a6d3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4ad431([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x30b267(),this['keystrokes']=new _0x22e422(),this['focusCycler']=new _0x1213d5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x1a08f0=>_0x1a08f0['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4450ba=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4450ba['innerHTML']=this['description'],this['on']('change:description',(_0x16b465,_0x1c9262,_0x11a135)=>{_0x4450ba['innerHTML']=_0x11a135;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1991a3=this['bindTemplate'],_0x1c687b=[{'tag':'div','attributes':{'class':['ck-suggestion__info','ck-annotation__info']},'children':[{'tag':'span','children':[{'text':this['userView']['name']}],'attributes':{'class':['ck-suggestion__info-name','ck-annotation__info-name'],'data-cke-tooltip-text':this['userView']['name']}},{'tag':'time','attributes':{'datetime':_0x1991a3['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1991a3['to']('authoredAt',_0xdb8258=>this['_config']['formatDateTime'](_0xdb8258))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];return this['_model']['isExternal']&&_0x1c687b['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]}),{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation'],'tabindex':-0x1},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x1c687b}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4f52a3,_0x3d19ce,_0x568124,_0x25cf20,_0x119bd7){const _0x132cac=new _0x460bf7(this['locale']);return _0x132cac['set']({'label':_0x4f52a3,'icon':_0x3d19ce,'tooltip':!0x0,'tooltipPosition':_0x119bd7}),_0x132cac['extendTemplate']({'attributes':{'class':_0x568124}}),_0x132cac['on']('execute',()=>{this['fire'](_0x25cf20,this['_model']['id']);}),_0x132cac;}['_setupKeyboardNavigation'](){const _0xf150a1=this['element'];this['keystrokes']['listenTo'](_0xf150a1);for(const _0x19602e of this['focusables'])this['focusTracker']['add'](_0x19602e['element']),this['keystrokes']['listenTo'](_0x19602e['element']);this['keystrokes']['set']('enter',(_0xf7d2b,_0x5a735e)=>{_0xf150a1===_0xf7d2b['target']&&(this['focusCycler']['focusFirst'](),_0x5a735e());}),this['keystrokes']['set']('esc',(_0x52d339,_0x7aa0fc)=>{_0xf150a1!==_0x52d339['target']&&(this['focus'](),_0x7aa0fc());});}}class u extends _0x142398{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[d,_0x1e445d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4b1778){super(_0x4b1778),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xb6c8b1=this['editor']['config'];_0xb6c8b1['define']('trackChanges.SuggestionThreadView',fe),_0xb6c8b1['define']('trackChanges.SuggestionView',we),_0xb6c8b1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xb6c8b1['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1fbe78,_0x67a13){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3b2e67,_0x2c2d77]of this['_handleControllerBuffer']){const _0x41a5c0=this['_suggestionToController']['has'](_0x3b2e67);_0x41a5c0||_0x2c2d77?_0x41a5c0&&_0x2c2d77&&this['_destroyController'](_0x3b2e67):this['_initializeController'](_0x3b2e67);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1fbe78,_0x67a13);}['init'](){const _0x4f834a=this['editor'],_0x34f7eb=_0x4f834a['plugins']['get']('TrackChangesEditing'),_0x28c031=_0x4f834a['plugins']['get']('Annotations'),_0x40126e=_0x4f834a['plugins']['get']('EditorAnnotations'),_0x56c084=_0x4f834a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x40126e['addSourceCollector'](()=>{const _0x26d43d=[];for(const [_0x3ab922,_0x30690e]of Array['from'](this['_suggestionToController'])){const _0x1d230b=_0x3ab922['getAllAdjacentSuggestions'](),_0x21424c=[];for(const _0x355471 of _0x1d230b){if(!_0x355471['isInContent'])continue;if(_0x355471['isMultiRange']){_0x21424c['push'](..._0x355471['getRanges']());continue;}const _0x43032f=_0x355471['getFirstRange']();if(_0x21424c['length']>0x0){const _0x544aa2=_0x21424c[0x0]['getJoined'](_0x43032f);if(_0x544aa2){_0x21424c[0x0]=_0x544aa2;continue;}}_0x21424c['push'](_0x43032f);}_0x26d43d['push']([_0x30690e['view'],_0x21424c]);}return _0x26d43d;}),this['listenTo'](_0x34f7eb,'suggestionLoaded',(_0x49303f,_0x26458a)=>{this['listenTo'](_0x26458a,'change:previous',(_0x2e2877,_0x2b2e6d,_0x3fbba2,_0x3e2688)=>{_0x26458a['isInContent']&&(null==_0x3fbba2?(this['_updateController'](_0x3e2688['head']),this['_handleSuggestionControllerDelayed'](_0x26458a,!0x1)):(this['_updateController'](_0x3fbba2['head']),null==_0x3e2688&&this['_handleSuggestionControllerDelayed'](_0x26458a,!0x0)));}),null!==_0x26458a['previous']?this['_updateController'](_0x26458a['head']):this['_handleSuggestionControllerDelayed'](_0x26458a,!0x1);}),this['listenTo'](_0x34f7eb,'suggestionUnloaded',(_0x44e1b5,_0xa23c81,_0x3061e0)=>{this['stopListening'](_0xa23c81,'change:previous'),this['_handleControllerBuffer']['delete'](_0xa23c81),this['_suggestionToController']['has'](_0xa23c81)&&this['_destroyController'](_0xa23c81),_0x3061e0&&this['_updateController'](_0x3061e0['head']);}),this['listenTo'](_0x34f7eb,'suggestionChanged',(_0xa69eec,_0x7650b6)=>{this['_updateController'](_0x7650b6);}),this['listenTo'](_0x28c031,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56c084,'addComment',(_0x2f37bc,{threadId:_0x24bbe5,isFromAdapter:_0x473374})=>{if(_0x473374||!_0x34f7eb['hasSuggestion'](_0x24bbe5))return;const _0x330bed=_0x34f7eb['getSuggestion'](_0x24bbe5);this['_suggestionToController']['get'](_0x330bed)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3b04f6=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x945d0d;for(const _0x2901d6 in _0x3b04f6){const _0x25d4f4=_0x2901d6,_0x5b081=_0x3b04f6[_0x25d4f4];if('trackChangesLicenseKeyValid'==_0x5b081||'trackChangesLicenseKeyInvalid'==_0x5b081||'trackChangesLicenseKeyExpired'==_0x5b081||'trackChangesLicenseKeyDomainLimit'==_0x5b081||'trackChangesLicenseKeyNotAllowed'==_0x5b081||'trackChangesLicenseKeyEvaluationLimit'==_0x5b081||'trackChangesLicenseKeyTrialLimit'==_0x5b081||'trackChangesLicenseKeyUsageLimit'==_0x5b081){delete _0x3b04f6[_0x25d4f4],_0x945d0d=_0x5b081,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x945d0d&&_0x3b04f6['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x945d0d&&_0x3b04f6['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x945d0d&&_0x3b04f6['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x945d0d&&_0x3b04f6['_showLicenseError']('usageLimit');},0x3e8);}['getAnnotationForSuggestion'](_0x551d93){const _0x13c7fd=this['_suggestionToController']['get'](_0x551d93);if(!_0x13c7fd)return null;return this['editor']['plugins']['get']('Annotations')['getByInnerView'](_0x13c7fd['view'])||null;}['getSuggestionForAnnotation'](_0x5d1d2f){const _0x5e5f25=this['_viewToController']['get'](_0x5d1d2f['innerView']);return _0x5e5f25?_0x5e5f25['model']:null;}['_refreshActiveMarkers'](){const _0x1b7c12=this['editor']['plugins']['get']('Annotations'),_0x32445d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e20b0=Array['from'](_0x1b7c12['activeAnnotations'],_0x2a041d=>_0x2a041d['innerView'])['filter'](_0x4f9e75=>this['_viewToController']['has'](_0x4f9e75)),_0x30763d=[];for(const _0x1b53e0 of _0x2e20b0){const _0x248f10=this['_viewToController']['get'](_0x1b53e0)['model']['getAllAdjacentSuggestions']();_0x30763d['push'](..._0x248f10['reduce']((_0x23652a,_0x1668d0)=>[..._0x23652a,..._0x1668d0['getMarkerNames']()],[]));}_0x32445d['activeMarkers']=_0x30763d;}['_addUIComponentsToFactory'](){const _0x19324f=this['editor'],_0x4500d7=_0x19324f['locale'],_0x23ef30=o(_0x4500d7,'Track\x20changes'),_0x1de2fe=new _0x1dd914([{'type':'switchbutton','model':new _0x5bca00({'withText':!0x0,'isToggleable':!0x0,'label':_0x23ef30,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x19324f['plugins']['has']('TrackChangesPreview')&&_0x1de2fe['addMany']([{'type':'separator'},{'type':'button','model':new _0x5bca00({'withText':!0x0,'label':o(_0x4500d7,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x450b4b of _0x1de2fe)if(ke(_0x450b4b)){const _0x42319c=_0x19324f['commands']['get'](_0x450b4b['model']['commandName']);_0x450b4b['model']['bind']('isOn','isEnabled')['to'](_0x42319c,'value','isEnabled');}_0x19324f['ui']['componentFactory']['add']('trackChanges',_0x1f9d11=>this['_createToolbarButton'](_0x1f9d11,_0x1de2fe,_0x23ef30)),_0x19324f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2ad4e7=>this['_createMenuBarMenu'](_0x2ad4e7,_0x1de2fe,_0x23ef30));}['_createToolbarButton'](_0x1c4cce,_0x203236,_0x11cd17){const _0x50886a=_0x1e437f(_0x1c4cce,_0x202e1a),_0x4b749e=this['editor']['commands']['get']('trackChanges');_0x50886a['buttonView']['set']({'tooltip':_0x11cd17,'label':_0x11cd17,'icon':_0x43b753}),_0x50886a['buttonView']['bind']('isOn')['to'](_0x4b749e,'value'),_0x50886a['buttonView']['on']('execute',()=>{_0x4b749e['execute'](),this['editor']['editing']['view']['focus']();}),_0x152cdf(_0x50886a,_0x203236,{'role':'menu'});const _0x3f4f32=[];for(const _0x1f8803 of _0x203236)ke(_0x1f8803)&&_0x3f4f32['push'](this['editor']['commands']['get'](_0x1f8803['model']['commandName']));const _0x399518=_0x50886a['buttonView'];return _0x399518['actionView']['unbind']('isEnabled'),_0x399518['arrowView']['unbind']('isEnabled'),_0x399518['actionView']['bind']('isEnabled')['to'](_0x4b749e,'isEnabled'),_0x399518['arrowView']['bind']('isEnabled')['toMany'](_0x3f4f32,'isEnabled',(..._0x4bd57f)=>_0x4bd57f['some'](_0x80a344=>_0x80a344)),_0x50886a['on']('execute',_0x3ab117=>{this['editor']['execute'](_0x3ab117['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x50886a;}['_createMenuBarMenu'](_0x3a9409,_0x6410bb,_0x55714a){const _0x4ef9bf=new _0x392ca6(_0x3a9409),_0x3761f8=this['editor']['commands']['get']('trackChanges');_0x4ef9bf['buttonView']['set']({'label':_0x55714a,'icon':_0x43b753});const _0xf3e743=new _0x2bb303(_0x3a9409);for(const _0x13bb95 of _0x6410bb){if('separator'==_0x13bb95['type']){_0xf3e743['items']['add'](new _0x3f8930(_0x3a9409));continue;}const _0xf38a09=new _0x7d02b3(_0x3a9409,_0x4ef9bf),_0x2b2498=new _0x433ed2(_0x3a9409),_0x4c5277=_0x13bb95['model'];_0x2b2498['bind'](...Object['keys'](_0x4c5277))['to'](_0x4c5277),_0x2b2498['delegate']('execute')['to'](_0x4ef9bf),_0x2b2498['on']('execute',()=>{this['editor']['execute'](_0x4c5277['commandName']),this['editor']['editing']['view']['focus']();}),_0xf38a09['children']['add'](_0x2b2498),_0xf3e743['items']['add'](_0xf38a09);}return _0x4ef9bf['bind']('isEnabled')['to'](_0x3761f8,'isEnabled'),_0x4ef9bf['panelView']['children']['add'](_0xf3e743),_0x4ef9bf;}['_initializeController'](_0x4654c7){const _0x146aaa=this['editor'],_0x224b5b=_0x146aaa['config'],_0x32637f=_0x146aaa['plugins']['get']('Annotations'),_0x5497c5=_0x146aaa['plugins']['get']('CommentsRepository'),_0x1f915d=_0x146aaa['plugins']['get']('EditorAnnotations'),_0x53864a=_0x146aaa['plugins']['get'](_0x1e445d)['me'],_0x59550f=_0x224b5b['get']('trackChanges')['SuggestionThreadView'],_0x24280e=_0x224b5b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5dd4f9,CommentThreadInputView:_0x10cd9e}=_0x146aaa['plugins']['get']('CommentsUI');let _0x101127,_0x294efc,_0x1364db;this['_annotationViews']['has'](_0x4654c7['id'])?(_0x294efc=this['_annotationViews']['get'](_0x4654c7['id']),_0x101127=_0x294efc['mainView']):(_0x101127=new _0x59550f(_0x146aaa['locale'],_0x4654c7,_0x53864a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x224b5b['get']('comments.editorConfig'),'licenseKey':_0x224b5b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x224b5b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x224b5b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x224b5b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x36690b(_0x224b5b['get']('locale'),_0x146aaa['locale']),'CommentView':_0x224b5b['get']('comments')['CommentView'],'CommentsListView':_0x5dd4f9,'CommentThreadInputView':_0x10cd9e,'SuggestionView':_0x24280e}),_0x101127['suggestionView']['acceptButton']['on']('execute',()=>{_0x146aaa['editing']['view']['focus']();}),_0x101127['suggestionView']['discardButton']['on']('execute',()=>{_0x146aaa['editing']['view']['focus']();}),_0x294efc=_0x32637f['createAnnotationView'](this['editor']['locale'],_0x101127),_0x294efc['bind']('isDirty')['to'](_0x101127,'isDirty'),_0x294efc['bind']('length')['to'](_0x101127),_0x294efc['bind']('type')['to'](_0x101127,'type',_0x24f825=>'suggestion-'+_0x24f825),_0x101127['on']('escape',()=>{_0x1364db['fire']('escape');}),this['_annotationViews']['set'](_0x4654c7['id'],_0x294efc));const _0x201e83=_0x5497c5['createCommentThreadController'](_0x4654c7['commentThread'],_0x101127),_0x181f61=new pe(_0x146aaa,_0x4654c7,_0x101127,_0x201e83),_0x346722=_0x4654c7['getAllAdjacentSuggestions']()['filter'](_0x5c49fe=>_0x5c49fe['isInContent']);_0x101127['descriptionParts']=_0x146aaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x346722),this['_suggestionToController']['set'](_0x4654c7,_0x181f61),this['_viewToController']['set'](_0x101127,_0x181f61),_0x1364db=_0x32637f['createAnnotation']({'view':_0x294efc,'target':()=>{const _0x1a38ee=[],_0x234dc1=_0x4654c7['getAllAdjacentSuggestions']()['filter'](_0xb196e=>_0xb196e['isInContent']);for(const _0x174bbc of _0x234dc1)_0x1a38ee['push'](..._0x174bbc['getMarkers']());return _0x46a7c8(_0x146aaa['editing'],_0x1a38ee);},'type':()=>'suggestion-'+_0x181f61['view']['type']}),_0x5497c5['_bindAnnotationToEditors'](_0x101127,_0x1364db),_0x32637f['add'](_0x1364db),_0x1f915d['registerAnnotation'](_0x1364db);}['_destroyController'](_0xff5ec7){const _0x2b2442=this['editor']['plugins']['get']('CommentsRepository'),_0x2c05e3=this['editor']['plugins']['get']('Annotations'),_0x494c12=this['_suggestionToController']['get'](_0xff5ec7),_0x614869=_0x494c12['view'],_0x5db40b=_0x2c05e3['getByInnerView'](_0x614869);_0x2b2442['_unbindEditors'](_0x614869),_0x5db40b&&_0x2c05e3['remove'](_0x5db40b),this['_suggestionToController']['delete'](_0xff5ec7),this['_viewToController']['delete'](_0x614869),_0x494c12['destroy']();}['_updateController'](_0x508b00){if(!_0x508b00['isInContent']||!this['_suggestionToController']['has'](_0x508b00))return;const _0x4d1853=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2797fe=this['_suggestionToController']['get'](_0x508b00),_0x35e7f2=_0x508b00['getAllAdjacentSuggestions']();_0x2797fe['view']['descriptionParts']=_0x4d1853['descriptionFactory']['getDescriptions'](_0x35e7f2);}['destroy'](){for(const _0x3bdf74 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3bdf74);for(const _0x16372f of this['_annotationViews']['values']())_0x16372f['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x47d55c){return'model'in _0x47d55c;}class Fe extends _0x142398{static get['requires'](){return[d,u,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x26a5d9){this['editor']['plugins']['get'](d)['adapter']=_0x26a5d9;}get['adapter'](){return this['editor']['plugins']['get'](d)['adapter'];}['addSuggestion'](_0x452478){return this['editor']['plugins']['get'](d)['addSuggestionData'](_0x452478);}['getSuggestions']({skipNotAttached:_0x49c705=!0x1,toJSON:_0x551fb0=!0x1}={}){return this['editor']['plugins']['get'](d)['getSuggestions']({'skipNotAttached':_0x49c705,'toJSON':_0x551fb0});}['getSuggestion'](_0x212781){return this['editor']['plugins']['get'](d)['getSuggestion'](_0x212781);}}const p=['Pagination'];class re extends _0x142398{static get['requires'](){return[d];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x162605=this['editor'];if(_0x162605['config']['define']('trackChangesData.editorCreator',_0x499bc4=>{const _0x292d7e=_0x162605['model']['document']['getRootNames']()['reduce']((_0x155417,_0x253c1f)=>(_0x155417[_0x253c1f]='',_0x155417),{});return _0x162605['constructor']['create'](_0x292d7e,_0x499bc4);}),'function'!=typeof _0x162605['config']['get']('trackChangesData')['editorCreator'])throw new _0x33e300('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ac989){return P(this['editor'],!0x0,_0x2ac989);}['getDataWithDiscardedSuggestions'](_0x30988c){return P(this['editor'],!0x1,_0x30988c);}}class Ge extends _0x142398{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x241766){function _0x17d273(_0xb7ea85){return _0xb7ea85['map'](_0x4c28d2=>String['fromCharCode'](_0x4c28d2))['join']('');}super(_0x241766),this['result']='end',_0x241766[_0x17d273([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17d273([0x76,0x69,0x65,0x77])][_0x17d273([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17d273([0x61,0x75,0x74,0x6f]),_0x241766[_0x17d273([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x17d273([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17d273([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x17d273([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x17d273([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function $e(_0x3f4634){return void 0x0!==_0x3f4634['getRootsAttributes'];}async function P(_0x44896a,_0x30df1a,_0x486a1f){const _0x519f82=_0x2b55a4(_0x44896a,p);_0x519f82['plugins']['push'](d,Ge),_0x519f82['rootsAttributes']=$e(_0x44896a)?_0x44896a['getRootsAttributes']():void 0x0;const _0x2abb40=document['createDocumentFragment'](),_0x3a653d=_0x44896a['config']['get']('trackChangesData')['editorCreator'],_0x4993fb=await _0x3a653d(_0x519f82,()=>function(_0x421a49){const _0x1a88ee=document['createElement']('div');return _0x421a49['appendChild'](_0x1a88ee),_0x1a88ee;}(_0x2abb40));!function(_0x485c35,_0x25e911){const _0x2a9dfa=_0x485c35['model']['document']['getRootNames']()['reduce']((_0x2867c6,_0x5354a7)=>(_0x2867c6[_0x5354a7]=_0x485c35['data']['get']({'rootName':_0x5354a7}),_0x2867c6),{}),_0x4761b7=_0x485c35['plugins']['get']('Users')['users']['map'](_0x30728c=>({'id':_0x30728c['id'],'name':_0x30728c['name']})),_0x3e77bf=_0x485c35['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2ab9fc=_0x485c35['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x20c1b2=_0x25e911['plugins']['get']('Users'),_0xe33a7e=_0x25e911['plugins']['get']('TrackChangesEditing'),_0x3aeab3=_0x25e911['plugins']['get']('CommentsRepository');for(const _0x4ca3db of _0x3aeab3['getCommentThreads']())_0x4ca3db['remove']();for(const _0x1cce1b of _0x4761b7)_0x20c1b2['getUser'](_0x1cce1b['id'])||_0x20c1b2['addUser'](_0x1cce1b);_0x20c1b2['me']||_0x20c1b2['useAnonymousUser']();for(const _0x1c6d8f of _0x2ab9fc)_0x3aeab3['addCommentThread'](_0x1c6d8f);for(const _0x5b5130 of _0x3e77bf)_0xe33a7e['addSuggestionData'](_0x5b5130);_0x25e911['data']['set'](_0x2a9dfa);}(_0x44896a,_0x4993fb),_0x4993fb['execute'](_0x30df1a?'acceptAllSuggestions':'discardAllSuggestions');const _0xbb9e8d=$e(_0x4993fb)?_0x4993fb['getFullData'](_0x486a1f):_0x4993fb['data']['get'](_0x486a1f);return await _0x4993fb['destroy'](),_0xbb9e8d;}class Me extends _0x2bab32{['options'];constructor(_0xe00348,_0x5c3d5a){super(_0xe00348),this['options']=_0x5c3d5a,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-track-changes-preview'],'tabindex':-0x1}});}['render'](){super['render'](),this['element']['style']['width']=this['options']['dialogRects']['width']+'px',this['element']['style']['height']=this['options']['dialogRects']['height']+'px';}['setPreviewData'](_0x2da0e3,_0x4819e1){if(!this['element'])return;const _0x7dabc7=[];for(const [_0x5383ec,_0x1ab618]of _0x2da0e3){const _0x1701bc=document['createElement']('div');_0x1701bc['setAttribute']('data-ck-root-name',_0x5383ec),_0x1701bc['className']=_0x1ab618['classes']+'\x20ck-track-changes-preview__root-container',_0x1701bc['innerHTML']=_0x1ab618['content'],_0x7dabc7['push'](_0x1701bc);}_0x4819e1(this['element'],_0x7dabc7),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class te extends _0x38a689{constructor(_0x22a9c1){super(_0x22a9c1),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x4f7f47=this['editor'],_0x5be10e=_0x4f7f47['locale'],_0x1b26c7=_0x4f7f47['plugins']['get']('Dialog');let _0x257d2c;const _0xed1f73=function(_0x5e73f3){const _0x43faa6={};if('editables'in _0x5e73f3['ui']['view']){for(const [_0x253f4d,_0x444aec]of Object['entries'](_0x5e73f3['ui']['view']['editables']))_0x43faa6[_0x253f4d]=_0x444aec['element'];}else _0x43faa6[_0x5e73f3['model']['document']['getRootNames']()[0x0]]=_0x5e73f3['ui']['view']['editable']['element'];return _0x43faa6;}(_0x4f7f47),_0x3bfdc2=function(_0x1a9aef){let _0xa420ba=0x0;for(const _0x215f0c of Object['values'](_0x1a9aef))_0xa420ba=Math['max'](_0xa420ba,_0x215f0c['getBoundingClientRect']()['width']);let _0x5d71fa=0x0;for(const _0x46b549 of Object['values'](_0x1a9aef))_0x5d71fa+=_0x46b549['getBoundingClientRect']()['height'];const _0x44db43=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x439d0f=Math['min'](_0x5d71fa,_0x44db43);return{'width':_0xa420ba,'height':_0x439d0f};}(_0xed1f73);_0x1b26c7['show']({'id':'finalContentPreview','title':o(_0x5be10e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x5be10e,{'dialogRects':_0x3bfdc2}),'onHide':()=>{_0x257d2c['detachFromDom']();},'onShow':()=>{_0x4f7f47['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x51fbdc=>{const _0x43e0cd=this['_standarizeRootsData'](_0x51fbdc,_0x4f7f47,_0xed1f73);_0x1b26c7['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x43e0cd,_0x4f7f47['config']['get']('trackChanges.preview.renderFunction'));}),_0x257d2c=new _0x22e14b(_0x5be10e,[_0x1b26c7['view']]),_0x257d2c['attachToDom'](),_0x257d2c['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x4f7f47['once']('destroy',()=>{_0x257d2c['detachFromDom']();});const _0x16b7b4=_0x1b26c7['view']['headerView']['class'];_0x1b26c7['view']['headerView']['class']=_0x16b7b4?_0x16b7b4+'\x20ck-reset_all':'ck-reset_all',_0x1b26c7['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x1b26c7['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x27f589=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x3b83c2=_0x27f589['previewMode'],_0x4bfbf0={};if('$labels'===_0x3b83c2){for(const _0x17decc of _0x27f589['getMergeFieldsIds']())_0x4bfbf0[_0x17decc]=_0x27f589['getLabel'](_0x17decc)||_0x17decc;}else{const _0x4cd19d='$defaultValues'===_0x3b83c2?_0x27f589['getDefaultValues']():_0x27f589['getDataSetValues'](_0x3b83c2,!0x0);for(const _0x4df8a0 of Object['entries'](_0x4cd19d)){const [_0x45b724,_0x46365b]=_0x4df8a0;_0x4bfbf0[_0x45b724]=null!==_0x46365b?_0x46365b:_0x27f589['getLabel'](_0x45b724)||_0x45b724;}}return{'mergeFieldsData':_0x4bfbf0};}['_standarizeRootsData'](_0x28e930,_0x28339d,_0x260575){let _0x339d6a;if('string'==typeof _0x28e930){const _0x16fa1b=_0x28339d['model']['document']['getRootNames']()[0x0];_0x339d6a={[_0x16fa1b]:_0x28e930};}else _0x339d6a=_0x28e930;const _0x11b34b=this['_fixMediaEmbeds'](_0x339d6a,_0x28339d),_0x26b09a=function(_0x5ed2d4,_0xfbcc30){for(const [_0x5d5451,_0x593dce]of _0x5ed2d4)_0x593dce['classes']=_0xfbcc30[_0x5d5451]['classList']['value']['replace']('ck-focused','');return _0x5ed2d4;}(this['_sortRoots'](_0x28339d)['reduce']((_0x447b1d,_0x167962)=>(_0x447b1d['push']([_0x167962,{'content':_0x11b34b[_0x167962],'classes':''}]),_0x447b1d),[]),_0x260575);return _0x26b09a;}['_fixMediaEmbeds'](_0x3090ec,_0xa00922){if(!_0xa00922['plugins']['has']('MediaEmbedEditing'))return _0x3090ec;const _0x58071b=_0xa00922['plugins']['get']('MediaEmbedEditing');for(const [_0x314b5c,_0x971431]of Object['entries'](_0x3090ec)){const _0x15f6b2=document['createElement']('div');_0x15f6b2['innerHTML']=_0x971431,(_0x15f6b2['querySelectorAll']('figure.media')['forEach'](_0x53ee2b=>{const _0x43c2f8=_0x53ee2b['querySelector']('oembed');if(_0x43c2f8){const _0x416ac9=_0x43c2f8['getAttribute']('url');if(_0x416ac9){const _0x49a4e0=_0x58071b['registry']['getMediaViewElement'](new _0x155f8c(_0xa00922['editing']['view']['document']),_0x416ac9,{'elementName':'','renderForEditingView':!0x0}),_0x30cd93=document['createElement']('div');_0x30cd93['classList']['add']('ck-media__wrapper'),_0x49a4e0['render'](_0x30cd93,_0xa00922['editing']['view']['domConverter']),_0x43c2f8['replaceWith'](_0x30cd93);}}}),_0x3090ec[_0x314b5c]=_0x15f6b2['innerHTML']);}return _0x3090ec;}['_sortRoots'](_0x165a37){if(!function(_0xf63d7a){return void 0x0!==_0xf63d7a['getRootsAttributes'];}(_0x165a37))return _0x165a37['model']['document']['getRootNames']();const _0x2319a8=[],_0x57a8ce=new Map();for(const _0x156043 of _0x165a37['model']['document']['getRootNames']()){const _0x3d1a50=_0x165a37['editing']['view']['getDomRoot'](_0x156043)['getClientRects']()['item'](0x0);_0x2319a8['push'](_0x156043),_0x57a8ce['set'](_0x156043,_0x3d1a50);}return _0x2319a8['sort']((_0x27d157,_0x2f8afe)=>{const _0x10d1c5=_0x57a8ce['get'](_0x27d157),_0x3e1014=_0x57a8ce['get'](_0x2f8afe);return _0x10d1c5['y']-_0x3e1014['y']||_0x10d1c5['x']-_0x3e1014['x'];}),_0x2319a8;}}class He extends _0x142398{static get['requires'](){return[re,_0x1e62e1];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ec819){super(_0x4ec819),_0x4ec819['commands']['add']('previewFinalContent',new te(this['editor'])),_0x4ec819['config']['define']('trackChanges.preview.renderFunction',(_0x44da0d,_0x4c02ca)=>{for(const _0x5aa539 of _0x4c02ca)_0x44da0d['appendChild'](_0x5aa539);});}}export{D as AcceptSuggestionCommand,ii as BaseSuggestionThreadView,M as DiscardSuggestionCommand,$ as ExecuteOnAllSuggestionsCommand,B as ExecuteOnSelectedSuggestionsCommand,te as PreviewFinalContentCommand,T as Suggestion,x as SuggestionDescriptionFactory,fe as SuggestionThreadView,we as SuggestionView,Fe as TrackChanges,N as TrackChangesCommand,re as TrackChangesData,Ge as TrackChangesDataGetter,d as TrackChangesEditing,He as TrackChangesPreview,Me as _SuggestionsPreviewView,m as _TRACK_CHANGES_RENAME_ATTRIBUTE_KEY};