@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250218.0 → 0.0.0-nightly-20250219.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,6 +20,6 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as Yt,Plugin as _0x337a55,PendingActions as _0x5e2d19,icons as _0x411df1}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1ee771,ObservableMixin as _0x116aa6,uid as _0x382bc4,priorities as _0x33629f,insertToPriorityArray as _0x30c1d4,logWarning as _0x120a0a,getEnvKeystrokeText as _0x12a48f,FocusTracker as _0x477bc1,KeystrokeHandler as _0x384d46,Collection as _0x3583f9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x46edf7,View as _0x29161b,ViewCollection as _0x6dcc9,FocusCycler as _0x4d9ab6,ViewModel as _0x5be1d6,createDropdown as _0x36e518,SplitButtonView as _0x5ed2e9,addListToDropdown as _0xaec9c4,MenuBarMenuView as _0x3ff63a,MenuBarMenuListView as _0x404bf7,ListSeparatorView as _0x4651d0,MenuBarMenuListItemView as _0x7409c6,MenuBarMenuListItemButtonView as _0x120271,BodyCollection as _0x5b8ff0,Dialog as _0x30d76b}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4640ff,hashObject as _0x39f6f4,surroundingMarkersDetector as _0x298dbf,FOCUS_ANNOTATION_KEYSTROKE as _0x56da03,AriaDescriptionView as _0x596b40,setupThreadKeyboardNavigation as _0x5296d1,trimHtml as _0x3f8634,UserView as _0x50aa22,LateFocusButtonView as _0x412048,getDateTimeFormatter as _0x40a2ac,getAllMarkersDomElementsSorted as _0x12e39b,sanitizeEditorConfig as _0x1931cc}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2e4843,LiveRange as _0x3d77a4,LivePosition as _0x7b7aa,DowncastWriter as _0x3d0c9f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x42648a,toWidget as _0x239b6a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1357e8,set as _0xc46eef,isEqual as _0x3b816e,unset as _0x5583a0,omit as Vt}from'lodash-es';import{Delete as _0x261ec4,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ed09f,ShiftEnter as _0x41ace4}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x3ab658,_0x4c3de1){super(_0x3ab658),this['_enabledCommands']=_0x4c3de1,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 _0x3851f9 of this['editor']['commands']['commands']())_0x3851f9['affectsData']&&!this['_enabledCommands']['has'](_0x3851f9)&&_0x3851f9['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x104c6b of this['editor']['commands']['commands']())_0x104c6b['affectsData']&&!this['_enabledCommands']['has'](_0x104c6b)&&_0x104c6b['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x55ac9d,_0x1a0c45){super(_0x55ac9d),this['_suggestions']=_0x1a0c45,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3ff27b){const _0x4223ac=this['_suggestions']['get'](_0x3ff27b);if(!_0x4223ac)throw new _0x1ee771('track-changes-accept-suggestion-not-found',this);const _0x25598f=_0x4223ac['getRanges']();this['editor']['model']['canEditAt'](_0x25598f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x4223ac);}}class R extends Yt{['_suggestions'];constructor(_0x557aab,_0x27fd06){super(_0x557aab),this['_suggestions']=_0x27fd06,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5322c1){const _0x298a03=this['_suggestions']['get'](_0x5322c1);if(!_0x298a03)throw new _0x1ee771('track-changes-discard-suggestion-not-found',this);const _0x410497=_0x298a03['getRanges']();this['editor']['model']['canEditAt'](_0x410497)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x298a03);}}function cs(_0xfa054a,_0x2df71e){let _0x40d470='';return _0x40d470+=_0xfa054a['split']('*')['map']((_0x2a1f9e,_0x260558)=>_0x260558%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x2a1f9e)+'</span>':nn(_0x2a1f9e))['join'](''),_0x2df71e&&(_0x40d470+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2df71e['value']+'\x22\x20title=\x22'+_0x2df71e['title']+'\x22></span>'),_0x40d470;}function nn(_0x269f83){const _0x438b31=document['createElement']('span');return _0x438b31['innerText']=_0x269f83,_0x438b31['innerHTML'];}function Zt(_0x599273){return _0x599273['sort']((_0x2697f7,_0x36148e)=>'deletion'==_0x2697f7['type']&&'deletion'!=_0x36148e['type']?-0x1:'deletion'!=_0x2697f7['type']&&'deletion'==_0x36148e['type']?0x1:0x0);}function to(_0xe30198,_0x522fea){let _0x47ee65,_0x13110c=0x0;const _0xd53d92=[],_0x2ed318=_0x522fea['schema'];for(;_0x13110c<_0xe30198['length'];){const _0x512fba=_0xe30198[_0x13110c],_0x54f7d5=_0xe30198[_0x13110c+0x1];_0x47ee65||(_0x47ee65=_0x522fea['createPositionBefore'](_0x512fba)),on(_0x522fea,_0x512fba,_0x54f7d5)||(_0xd53d92['push'](_0x522fea['createRange'](_0x47ee65,_0x2ed318['isObject'](_0x512fba)?_0x522fea['createPositionAfter'](_0x512fba):_0x522fea['createPositionAt'](_0x512fba,'end'))),_0x47ee65=null),_0x13110c++;}return _0xd53d92;}function on(_0x11b9ec,_0x14407e,_0x56281d){if(!_0x56281d)return!0x1;const _0x1650a1=_0x11b9ec['createPositionAfter'](_0x14407e),_0x131ba7=_0x11b9ec['createPositionBefore'](_0x56281d);return _0x1650a1['isTouching'](_0x131ba7);}function ts(_0x344faa,_0x524bdc,_0x3b055d){for(;_0x3b055d['length'];){const _0x193f0b=_0x3b055d['splice'](0x0,0x64);_0x344faa['change'](()=>{for(const _0x331657 of _0x193f0b)_0x331657['isInContent']&&_0x524bdc['execute'](_0x331657['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x3ce365,_0x74c172,_0xed7ace){super(_0x3ce365),this['_command']=_0x74c172,this['_suggestions']=_0xed7ace,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x261f73=Array['from'](this['_suggestions']['values']())['some'](_0x12d254=>_0x12d254['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x261f73;}['execute'](){const _0x5bf190=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x5e607e of _0x5bf190){const _0x24f1bd=_0x5e607e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x24f1bd))return;}ts(this['editor']['model'],this['_command'],_0x5bf190);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xfaf42c,_0x4bf837,_0x464fd4){super(_0xfaf42c),this['_command']=_0x4bf837,this['_suggestions']=_0x464fd4,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x12cfbf=this['editor']['model']['document']['selection'],_0x1ae40e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x2e3abc,_0x40d48a){const _0x1eded1=Array['from'](_0x2e3abc['getRanges']()),_0x2440dc=new Set();for(const _0x15a238 of _0x40d48a)if(_0x15a238['isInContent']){for(const _0x285081 of _0x1eded1)for(const _0x146df1 of _0x15a238['getRanges']())(_0x285081['isIntersecting'](_0x146df1)||_0x2e3abc['isCollapsed']&&!_0x15a238['isMultiRange']&&_0x15a238['next']&&_0x146df1['end']['isTouching'](_0x285081['start']))&&_0x2440dc['add'](_0x15a238);}return _0x2440dc;}(_0x12cfbf,_0x1ae40e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e650e=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x54a803 of _0x2e650e){const _0x45b45c=_0x54a803['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45b45c))return;}ts(this['editor']['model'],this['_command'],_0x2e650e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x116aa6(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x4c62d7,_0x5df48e){super(),this['id']=_0x5df48e['id'],this['type']=_0x5df48e['type'],this['subType']=_0x5df48e['subType']||null,this['author']=_0x5df48e['author'],this['creator']=_0x5df48e['creator']||_0x5df48e['author'],this['isExternal']=Boolean(_0x5df48e['attributes']&&_0x5df48e['attributes']['@external']),this['data']=null,this['_model']=_0x4c62d7,this['_onAccept']=_0x5df48e['onAccept'],this['_onDiscard']=_0x5df48e['onDiscard'],this['_onAttributesChange']=_0x5df48e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x5df48e['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 _0xd1b03a=this;for(;_0xd1b03a['previous'];)_0xd1b03a=_0xd1b03a['previous'];return _0xd1b03a;}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'](_0x49f328){this['_markerNames']['add'](_0x49f328);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x24d24c=>this['_model']['markers']['get'](_0x24d24c))['filter'](_0x1dd6a9=>_0x1dd6a9);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x51aad1=>{for(const _0xdb695e of this['getMarkers']())_0x51aad1['removeMarker'](_0xdb695e);}),this['_markerNames']['clear']();}['removeMarker'](_0xc5759b){this['_model']['change'](_0x2d5c95=>{_0x2d5c95['removeMarker'](_0xc5759b);}),this['_markerNames']['delete'](_0xc5759b);}['addRange'](_0x4b2746){const _0x40c346='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x40c346),this['_model']['change'](_0x4c3061=>{_0x4c3061['addMarker'](_0x40c346,{'range':_0x4b2746,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x164e5c){for(const _0x24ea7f of this['getRanges']())if(_0x24ea7f['isIntersecting'](_0x164e5c))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3eb091=>_0x3eb091['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2f6909,_0x383998)=>[..._0x2f6909,..._0x383998['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x15a863=this['getRanges']();if(0x1!=_0x15a863['length'])return null;const _0x2e9da5=_0x15a863[0x0],_0x524fd9=_0x2e9da5['start']['nodeAfter'],_0x84e412=_0x2e9da5['end']['nodeBefore'];return _0x524fd9 instanceof _0x2e4843?_0x524fd9!=_0x84e412?null:_0x524fd9: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 _0x3c3e16=[];let _0x3b6057=this['head'];for(;_0x3b6057;)_0x3c3e16['push'](_0x3b6057),_0x3b6057=_0x3b6057['next'];return _0x3c3e16;}['setAttribute'](_0x4c910e,_0x2b625a){const _0x492d69=_0x1357e8(this['attributes']);_0xc46eef(_0x492d69,_0x4c910e,_0x2b625a),_0x3b816e(_0x492d69,this['attributes'])||(this['attributes']=_0x492d69,this['_onAttributesChange'](_0x492d69));}['removeAttribute'](_0x470989){const _0xa765e7=_0x1357e8(this['attributes']);_0x5583a0(_0xa765e7,_0x470989),_0x3b816e(_0xa765e7,this['attributes'])||(this['attributes']=_0xa765e7,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 _0x382bc4()['substr'](0x1,0x5);}}function o(_0x56686d,_0x5d5043,_0x14193b){const _0x4ddb8d=_0x56686d['t'],t=_0x56686d['t'];switch(_0x5d5043){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',_0x14193b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x14193b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x14193b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x14193b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x14193b);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',_0x14193b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x14193b);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',_0x14193b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x14193b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x14193b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x14193b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x14193b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x14193b);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x14193b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x14193b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x14193b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x14193b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x14193b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x14193b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x14193b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x14193b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x14193b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x14193b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x14193b);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'},_0x14193b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x14193b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x14193b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x14193b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x14193b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x14193b);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'},_0x14193b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x14193b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x14193b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x14193b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x14193b);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'},_0x14193b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x14193b);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'},_0x14193b);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x14193b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x14193b);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'},_0x14193b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x14193b);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'},_0x14193b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x14193b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x14193b);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'},_0x14193b);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x14193b);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 _0x4ddb8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x14193b);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4ddb8d({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x14193b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x14193b);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'},_0x14193b);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'},_0x14193b);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'},_0x14193b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5d5043;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x50c634,_0x220256){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x50c634,this['_locale']=_0x220256;}['getDescriptions'](_0x3a00ef){const _0x2612b1=[],_0x5bfd52=new Set(),_0x9d6976=new Set();for(let _0x4d1ff0=0x0;_0x4d1ff0<_0x3a00ef['length'];_0x4d1ff0++){const _0x418e75=_0x3a00ef[_0x4d1ff0];if(!_0x418e75['isInContent'])continue;const _0x2d9154=this['_handleCustomCallbackDescription'](_0x418e75);if(_0x2d9154){if(null!=_0x418e75['subType']){if(_0x5bfd52['has'](_0x418e75['subType']))continue;_0x5bfd52['add'](_0x418e75['subType']);}_0x2612b1['push'](_0x2d9154);}else{if('attribute'!=_0x418e75['type'])'insertion'!=_0x418e75['type']&&'deletion'!=_0x418e75['type']||this['_handleInsertRemoveSuggestionDescription'](_0x2612b1,_0x418e75,_0x3a00ef[_0x4d1ff0+0x1]);else{const _0xc0145f=_0x418e75['data']['key'];if(_0x9d6976['has'](_0xc0145f))continue;_0x9d6976['add'](_0x418e75['data']['key']),_0xc0145f==m?this['_handleRenameSuggestionDescription'](_0x2612b1,_0x418e75):this['_handleAttributeSuggestionDescription'](_0x2612b1,_0x418e75);}}}return this['_resolveDescriptionItems'](_0x2612b1);}['registerDescriptionCallback'](_0x209b9e){this['_customCallbacks']['push'](_0x209b9e);}['registerElementLabel'](_0x5dd1bb,_0x23b242,_0x4805a7=_0x33629f['normal']){'function'==typeof _0x5dd1bb?_0x30c1d4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x5dd1bb,'label':_0x23b242,'priority':_0x4805a7}):this['_itemLabels']['set'](_0x5dd1bb,_0x23b242);}['registerAttributeLabel'](_0x4059bb,_0x991320){this['_attributeLabels']['set'](_0x4059bb,_0x991320);}['getItemLabel'](_0x56fe3e,_0x2c8c51=0x1){let _0x27ef47;for(const _0x4e5233 of this['_itemLabelsCallbacks'])if(_0x4e5233['matchingCallback'](_0x56fe3e)){_0x27ef47=_0x4e5233['label'];break;}return _0x27ef47||(_0x27ef47=this['_itemLabels']['get'](_0x56fe3e['name'])),_0x27ef47?_0x27ef47(_0x2c8c51):0x1!==_0x2c8c51?_0x2c8c51+'\x20'+_0x56fe3e['name']+'s':''+_0x56fe3e['name'];}['_addDescriptionItems'](_0x3f9237,_0x4b73d5){const _0x4d120c=_0x4b73d5['getFirstRange']()['getWalker'](),_0x4f1dcf='insertion'==_0x4b73d5['type']?'add':'remove';for(const _0x49400f of _0x4d120c){const _0x499ea5=_0x49400f['item'],_0x388264=_0x3f9237[_0x3f9237['length']-0x1];if(_0x499ea5['is']('$textProxy'))_0x388264&&_0x388264['type']['indexOf']('Container')>-0x1&&_0x3f9237['pop'](),_0x388264&&'text'==_0x388264['type']?_0x388264[_0x4f1dcf]+=_0x499ea5['data']:_0x3f9237['push']({'type':'text','add':'add'==_0x4f1dcf?_0x499ea5['data']:'','remove':'remove'==_0x4f1dcf?_0x499ea5['data']:''});else{if(this['_schema']['isObject'](_0x499ea5)){const _0x205c66=_0x499ea5;if(_0x388264&&_0x388264['type']['indexOf']('Container')>-0x1&&_0x3f9237['pop'](),'elementEnd'==_0x49400f['type'])continue;_0x388264&&_0x388264['type']==_0x4f1dcf+'Object'&&_0x388264['element']['name']==_0x205c66['name']?_0x388264['quantity']++:_0x3f9237['push']({'type':_0x4f1dcf+'Object','element':_0x205c66,'quantity':0x1}),_0x4d120c['skip'](_0x485a70=>!('elementEnd'==_0x485a70['type']&&_0x485a70['item']==_0x499ea5));}else{if(this['_schema']['checkChild'](_0x499ea5,'$text')||_0x499ea5['is']('element','softBreak')){const _0x39fcf5=_0x499ea5;if('add'==_0x4f1dcf&&'elementStart'==_0x49400f['type']||'remove'==_0x4f1dcf&&'elementEnd'==_0x49400f['type'])continue;if(_0x388264&&-0x1==_0x388264['type']['indexOf']('Container')){'text'==_0x388264['type']&&(_0x388264[_0x4f1dcf]+='\x0a');continue;}let _0x3e839a;if(_0x3e839a='add'==_0x4f1dcf?_0x39fcf5['nextSibling']&&!this['_schema']['isObject'](_0x39fcf5['nextSibling'])?_0x39fcf5['nextSibling']:null:_0x39fcf5['previousSibling']&&!this['_schema']['isObject'](_0x39fcf5['previousSibling'])?_0x39fcf5['previousSibling']:null,_0x39fcf5['isEmpty']||_0x3e839a&&_0x3e839a['isEmpty']){const _0x11ee0f=_0x3e839a&&_0x3e839a['isEmpty']?_0x3e839a:_0x39fcf5;_0x388264&&_0x388264['type']==_0x4f1dcf+'EmptyContainer'&&_0x388264['element']['name']==_0x11ee0f['name']?_0x388264['quantity']++:_0x3f9237['push']({'type':_0x4f1dcf+'EmptyContainer','element':_0x11ee0f,'quantity':0x1});}else _0x3f9237['push']({'type':_0x4f1dcf+'Container','element':_0x39fcf5});}}}}}['_resolveDescriptionItems'](_0x1e7a20){const _0x5ae4ab=this['_locale'],_0x58c1cc=[],_0x3688c1=[],_0x1d77b6=[];for(const _0x115dfa of _0x1e7a20)switch(_0x115dfa['type']){case'text':if(_0x115dfa['add']=_0x115dfa['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x115dfa['remove']=_0x115dfa['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x115dfa['add']&&''!=_0x115dfa['remove']){_0x58c1cc['push']({'type':'replace','content':o(_0x5ae4ab,'REPLACE_TEXT',['\x22'+_0x115dfa['remove']+'\x22','\x22'+_0x115dfa['add']+'\x22'])});continue;}if(null!=_0x115dfa['add']['match'](/^ +$/)){_0x58c1cc['push']({'type':'insertion','content':o(_0x5ae4ab,'*Insert:*\x20%0',o(_0x5ae4ab,'ELEMENT_SPACE',_0x115dfa['add']['length']))});continue;}if(null!=_0x115dfa['remove']['match'](/^ +$/)){_0x58c1cc['push']({'type':'deletion','content':o(_0x5ae4ab,'*Remove:*\x20%0',o(_0x5ae4ab,'ELEMENT_SPACE',_0x115dfa['remove']['length']))});continue;}if(''!=_0x115dfa['add']){_0x58c1cc['push']({'type':'insertion','content':o(_0x5ae4ab,'*Insert:*\x20%0','\x22'+_0x115dfa['add']+'\x22')});continue;}_0x58c1cc['push']({'type':'deletion','content':o(_0x5ae4ab,'*Remove:*\x20%0','\x22'+_0x115dfa['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x58c1cc['push']({'type':'insertion','content':o(_0x5ae4ab,'*Insert:*\x20%0',this['getItemLabel'](_0x115dfa['element'],_0x115dfa['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x58c1cc['push']({'type':'deletion','content':o(_0x5ae4ab,'*Remove:*\x20%0',this['getItemLabel'](_0x115dfa['element'],_0x115dfa['quantity']))});continue;case'addContainer':_0x58c1cc['push']({'type':'insertion','content':o(_0x5ae4ab,'*Split:*\x20%0',this['getItemLabel'](_0x115dfa['element'],_0x115dfa['quantity']))});continue;case'removeContainer':_0x58c1cc['push']({'type':'deletion','content':o(_0x5ae4ab,'*Merge:*\x20%0',this['getItemLabel'](_0x115dfa['element'],_0x115dfa['quantity']))});continue;case'addFormat':_0x3688c1['push'](_0x115dfa['key']);continue;case'removeFormat':_0x1d77b6['push'](_0x115dfa['key']);continue;default:_0x58c1cc['push'](_0x115dfa);}if(_0x3688c1['length']){const _0x1c72be=_0x3688c1['map'](_0x309597=>this['_attributeLabels']['has'](_0x309597)?this['_attributeLabels']['get'](_0x309597):_0x309597)['join'](',\x20');_0x58c1cc['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x1c72be)});}if(_0x1d77b6['length']){const _0x460fb8=_0x1d77b6['map'](_0x42a1ff=>this['_attributeLabels']['has'](_0x42a1ff)?this['_attributeLabels']['get'](_0x42a1ff):_0x42a1ff)['join'](',\x20');_0x58c1cc['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x460fb8)});}return _0x58c1cc;}['_handleCustomCallbackDescription'](_0x4ff601){for(const _0x465fba of this['_customCallbacks']){const _0x187bbd=_0x465fba(_0x4ff601);if(_0x187bbd&&'type'in _0x187bbd)return _0x187bbd;}}['_handleAttributeSuggestionDescription'](_0xf4d3e8,_0x47e039){const _0x4e6194=_0x47e039['data'],_0x26fbf9=void 0x0===_0x4e6194['newValue']?'removeFormat':'addFormat';_0xf4d3e8['push']({'type':_0x26fbf9,'key':_0x4e6194['key']});}['_handleRenameSuggestionDescription'](_0x244a50,_0x4f0fc5){_0x244a50['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4f0fc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x447875,_0x55d8c5,_0x222d22){if(this['_addDescriptionItems'](_0x447875,_0x55d8c5),_0x222d22&&_0x222d22['getFirstRange']()&&!_0x55d8c5['getFirstRange']()['end']['isEqual'](_0x222d22['getFirstRange']()['start'])){const _0x5cfe2e=_0x447875[_0x447875['length']-0x1],_0x41ce3a='insertion'==_0x55d8c5['type']?'add':'remove';_0x5cfe2e&&'text'==_0x5cfe2e['type']&&(_0x5cfe2e[_0x41ce3a]+='\x0a');}}}class U extends _0x337a55{['afterInit'](){const _0x24da27=this['editor'],_0x53fe00=_0x24da27['plugins']['get']('TrackChangesEditing');_0x24da27['commands']['get']('showAIAssistant')&&_0x53fe00['enableCommand']('showAIAssistant');}}class V extends _0x337a55{['afterInit'](){const _0x11843d=this['editor'],_0x4f5e53=_0x11843d['locale'];if(!_0x11843d['plugins']['has']('AlignmentEditing'))return;const _0x2fcea7=_0x11843d['plugins']['get']('TrackChangesEditing');_0x2fcea7['enableDefaultAttributesIntegration']('alignment'),_0x2fcea7['registerBlockAttribute']('alignment'),_0x2fcea7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4f5e53,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xdadc9=this['editor'],_0x3f0fc6=_0xdadc9['locale'];_0xdadc9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44af04=>{if('formatBlock'!=_0x44af04['type'])return;const {data:_0x2206d6}=_0x44af04;if(_0x2206d6&&'alignment'==_0x2206d6['commandName']){const _0x2e408a=_0x2206d6['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x3f0fc6,'*Format:*\x20%0',function(_0x3675f8){switch(_0x3675f8){case'left':return o(_0x3f0fc6,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x3f0fc6,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x3f0fc6,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x3f0fc6,'FORMAT_JUSTIFY_TEXT');}}(_0x2e408a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x337a55{['afterInit'](){const _0x49f293=this['editor'],_0x325f23=_0x49f293['plugins']['get']('TrackChangesEditing'),_0x1ac3e3=_0x49f293['locale'];for(const _0x3017b5 of ti){if(!_0x49f293['plugins']['has'](_0x3017b5))continue;const _0x425607=_0x3017b5['slice'](0x0,-0x7)['toLowerCase'](),_0x44c97a='FORMAT_'+_0x425607['toUpperCase']();_0x325f23['enableDefaultAttributesIntegration'](_0x425607),_0x325f23['registerInlineAttribute'](_0x425607),_0x325f23['descriptionFactory']['registerAttributeLabel'](_0x425607,o(_0x1ac3e3,_0x44c97a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45ca6d=this['editor'],_0x3b7577=_0x45ca6d['locale'],_0x21bcde=_0x45ca6d['plugins']['get']('TrackChangesEditing');function _0x3af0fb(_0x327997,_0x404a76){_0x21bcde['descriptionFactory']['registerDescriptionCallback'](_0x4c2e47=>{if('formatInline'!=_0x4c2e47['type'])return;const {data:_0x12e721}=_0x4c2e47;return _0x12e721&&_0x12e721['commandName']===_0x327997?_0x12e721['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b7577,'*Format:*\x20%0',_0x404a76)}:{'type':'format','content':o(_0x3b7577,'*Remove\x20format:*\x20%0',_0x404a76)}:void 0x0;});}_0x3af0fb('bold',o(_0x3b7577,'FORMAT_BOLD')),_0x3af0fb('italic',o(_0x3b7577,'FORMAT_ITALIC')),_0x3af0fb('underline',o(_0x3b7577,'FORMAT_UNDERLINE')),_0x3af0fb('code',o(_0x3b7577,'FORMAT_CODE')),_0x3af0fb('strikethrough',o(_0x3b7577,'FORMAT_STRIKETHROUGH')),_0x3af0fb('subscript',o(_0x3b7577,'FORMAT_SUBSCRIPT')),_0x3af0fb('superscript',o(_0x3b7577,'FORMAT_SUPERSCRIPT'));}}class F extends _0x337a55{['afterInit'](){const _0x30c5e3=this['editor'],_0x382c33=_0x30c5e3['locale'];if(!_0x30c5e3['plugins']['has']('BlockQuoteEditing'))return;const _0xfe41a7=_0x30c5e3['plugins']['get']('TrackChangesEditing'),_0x4f96fc=this['editor']['commands']['get']('blockQuote');_0xfe41a7['enableCommand']('blockQuote',(_0x235e9d,_0x201692={})=>{const _0x2d452d=this['editor']['model']['document']['selection'],_0x19d940=_0x201692&&void 0x0!==_0x201692['forceValue']?_0x201692['forceValue']:!_0x4f96fc['value'];let _0x222913=[];if(_0x19d940){const _0x2db399=Array['from'](_0x2d452d['getSelectedBlocks']())['filter'](_0x5dfb6a=>oo(_0x5dfb6a)||function(_0x4d64a5,_0x843fc4){const _0x572ea9=_0x843fc4['checkChild'](_0x4d64a5['parent'],'blockQuote'),_0x1c7795=_0x843fc4['checkChild'](['$root','blockQuote'],_0x4d64a5);return _0x572ea9&&_0x1c7795;}(_0x5dfb6a,this['editor']['model']['schema']));_0x222913=to(_0x2db399,_0x30c5e3['model']);}else{const _0xccba76=Array['from'](_0x2d452d['getSelectedBlocks']())['filter'](_0x3f619e=>oo(_0x3f619e));_0x222913=to(_0xccba76,_0x30c5e3['model']);}_0x30c5e3['model']['change'](()=>{for(const _0x17ecdd of _0x222913)_0xfe41a7['markBlockFormat'](_0x17ecdd,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x19d940}]});});}),_0xfe41a7['descriptionFactory']['registerDescriptionCallback'](_0x243b92=>{const {data:_0x85e5f6}=_0x243b92;if(_0x85e5f6&&'blockQuote'==_0x85e5f6['commandName']){const _0x2bd016=o(_0x382c33,'ELEMENT_BLOCK_QUOTE');return _0x85e5f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x382c33,'*Set\x20format:*\x20%0',_0x2bd016)}:{'type':'format','content':o(_0x382c33,'*Remove\x20format:*\x20%0',_0x2bd016)};}});}}function oo(_0x5e963b){return'blockQuote'==_0x5e963b['parent']['name'];}class L extends _0x337a55{['afterInit'](){const _0x59e692=this['editor'],_0x47fd32=_0x59e692['locale'],_0x171343=_0x59e692['plugins']['get']('TrackChangesEditing');_0x59e692['plugins']['has']('BookmarkEditing')&&(_0x171343['enableCommand']('insertBookmark'),_0x171343['enableDefaultAttributesIntegration']('updateBookmark'),_0x171343['registerBlockAttribute']('bookmarkId'),_0x171343['descriptionFactory']['registerDescriptionCallback'](_0x20cb82=>{if('insertion'!=_0x20cb82['type']&&'deletion'!=_0x20cb82['type']&&'attribute'!=_0x20cb82['type'])return;const _0x23fd5d=_0x20cb82['getContainedElement']();if(null==_0x23fd5d)return;if(!_0x23fd5d['is']('element','bookmark'))return;const _0x9b7679=_0x23fd5d['getAttribute']('bookmarkId');if('insertion'==_0x20cb82['type'])return{'type':'insertion','content':o(_0x47fd32,'*Insert:*\x20%0','\x22'+_0x9b7679+'\x22\x20'+o(_0x47fd32,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20cb82['type'])return{'type':'deletion','content':o(_0x47fd32,'*Remove:*\x20%0','\x22'+_0x9b7679+'\x22\x20'+o(_0x47fd32,'ELEMENT_BOOKMARK'))};const {data:_0x2db1e6}=_0x20cb82;if(!_0x2db1e6||'bookmarkId'!=_0x2db1e6['key'])return;return{'type':'format','content':o(_0x47fd32,'*Set\x20bookmark:*\x20%0','\x22'+_0x2db1e6['newValue']+'\x22')};}));}}class J extends _0x337a55{['afterInit'](){const _0x5c1ac1=this['editor'];_0x5c1ac1['plugins']['has']('CaseChange')&&(_0x5c1ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x5c1ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x5c1ac1['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x337a55{['afterInit'](){const _0x15ba25=this['editor'];_0x15ba25['commands']['get']('ckbox')&&_0x15ba25['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x337a55{['afterInit'](){const _0x29ef73=this['editor'];if(!_0x29ef73['plugins']['has']('CodeBlock'))return;const _0x508862=_0x29ef73['plugins']['get']('TrackChangesEditing'),_0x4c2640=_0x29ef73['locale'],_0x5b81da=_0x29ef73['config']['get']('codeBlock')['languages'],_0x388f97=_0x29ef73['commands']['get']('codeBlock');_0x508862['enableCommand']('indentCodeBlock'),_0x508862['enableCommand']('outdentCodeBlock'),_0x508862['enableCommand']('codeBlock',(_0x42486b,_0xfdfee={})=>{const _0x5bbeea=_0x29ef73['model'],_0x12b8bb=_0x29ef73['model']['document']['selection'],_0x27795f=_0xfdfee&&void 0x0!==_0xfdfee['forceValue']?_0xfdfee['forceValue']:!_0x388f97['value'];let _0x1b0212;_0xfdfee['language']||(_0xfdfee['language']=_0x5b81da[0x0]['language']),_0x1b0212=_0x27795f?Array['from'](_0x12b8bb['getSelectedBlocks']())['filter'](_0x46d4c3=>eo(_0x46d4c3)||function(_0x57b07d,_0x1603ca){if(_0x57b07d['is']('rootElement')||_0x1603ca['isLimit'](_0x57b07d))return!0x1;return _0x1603ca['checkChild'](_0x57b07d['parent'],'codeBlock');}(_0x46d4c3,_0x5bbeea['schema'])):Array['from'](_0x12b8bb['getSelectedBlocks']())['filter'](_0x244d1=>eo(_0x244d1));const _0x40ef16=to(_0x1b0212,_0x5bbeea);_0x5bbeea['change'](()=>{for(const _0x2b0c22 of _0x40ef16)_0x508862['markBlockFormat'](_0x2b0c22,{'commandName':'codeBlock','commandParams':[{..._0xfdfee,'forceValue':_0x27795f}],'formatGroupId':'blockName'});});}),(_0x508862['descriptionFactory']['registerElementLabel']('codeBlock',_0x4331ca=>o(_0x4c2640,'ELEMENT_CODE_BLOCK',_0x4331ca)),_0x508862['descriptionFactory']['registerDescriptionCallback'](_0x37223b=>{if('formatBlock'!=_0x37223b['type'])return;const _0x28892f=_0x4c2640['t'],{data:_0x5f2724}=_0x37223b;if(!_0x5f2724||'codeBlock'!=_0x5f2724['commandName'])return;const _0x32a2f9=_0x5f2724['commandParams'][0x0]['language'],_0xa5f68b=_0x28892f(_0x5b81da['find'](_0x4132be=>_0x4132be['language']===_0x32a2f9)['label'])['toLowerCase']();return _0x5f2724['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c2640,'*Set\x20format:*\x20%0',o(_0x4c2640,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xa5f68b+')')}:{'type':'format','content':o(_0x4c2640,'*Remove\x20format:*\x20%0',o(_0x4c2640,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3d137d){return'codeBlock'==_0x3d137d['name'];}class z extends _0x337a55{['afterInit'](){const _0x39bde5=this['editor'];if(!_0x39bde5['plugins']['has']('CommentsEditing'))return;_0x39bde5['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a63e2,_0x3c7dcd,_0x2d64be){const _0xad85c7=[];for(const _0x530ed5 of _0x3c7dcd['getItems']())_0x530ed5['hasAttribute'](_0x3a63e2)&&_0xad85c7['push'](_0x2d64be['createRangeOn'](_0x530ed5));return _0xad85c7;}function De(_0x44fc6b,_0x161d93,{showActiveMarker:_0x51cf51=!0x0}={}){const _0x58c109=_0x44fc6b['plugins']['get']('TrackChangesEditing');return(_0x592bac,_0x202fc0,_0xe109d4)=>{if(!_0xe109d4['consumable']['test'](_0x202fc0['markerRange'],_0x592bac['name']))return;const _0x5b2d68=_0x202fc0['markerRange']['getWalker'](),_0x1a21c1=_0x202fc0['markerRange']['start'],_0x15d876=_0x44fc6b['model']['schema'];let _0x2bcf17=null,_0x5def3c=null,_0x24c1a8=!0x1,_0x214a5d=!0x1;for(const _0x213b54 of _0x5b2d68){const _0xf1a2e5=_0x213b54['item'];_0x24c1a8=_0x24c1a8||_0x15d876['isContent'](_0xf1a2e5);const _0x4646e7=_0xe109d4['mapper']['toViewElement'](_0xf1a2e5);if(_0x4646e7&&_0x4646e7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x213b54['type']&&(_0x15d876['isBlock'](_0xf1a2e5)&&!_0x15d876['isLimit'](_0xf1a2e5)&&(_0xf1a2e5['nextSibling']||_0x1a21c1['isAtEnd']?_0x2bcf17&&_0x2bcf17['parent']==_0xf1a2e5||(_0x2bcf17=_0xf1a2e5,_0x306756(_0x213b54['previousPosition']),_0x214a5d=!0x0):_0x5def3c=_0x5def3c||_0x213b54['previousPosition']));}function _0x306756(_0xbf0d81){const {authorId:_0x481f2a}=_0x58c109['_splitMarkerName'](_0x202fc0['markerName']),_0x32e86a=_0xe109d4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x161d93,'data-author-id':_0x481f2a}),_0x11a74e=_0xe109d4['mapper']['toViewPosition'](_0xbf0d81);_0x51cf51&&_0x58c109['activeMarkers']['includes'](_0x202fc0['markerName'])&&_0xe109d4['writer']['addClass']('ck-suggestion-marker--active',_0x32e86a),_0xe109d4['writer']['insert'](_0x11a74e,_0x32e86a),_0xe109d4['mapper']['bindElementToMarker'](_0x32e86a,_0x202fc0['markerName']);}_0x24c1a8||_0x214a5d||!_0x5def3c||_0x306756(_0x5def3c);};}class K extends _0x337a55{static get['requires'](){return[_0x261ec4];}['init'](){const _0x5bfa8c=this['editor'],_0x1f5992=_0x5bfa8c['plugins']['get']('TrackChangesEditing');_0x1f5992['enableCommand']('delete');const _0x2d26f0=_0x5bfa8c['commands']['get']('deleteForward');_0x1f5992['enableCommand']('deleteForward',(_0x1d630a,_0x1a642d={})=>{const _0x32ab65=_0x5bfa8c['model']['createSelection'](_0x5bfa8c['model']['document']['selection']);_0x32ab65['isCollapsed']&&_0x5bfa8c['model']['modifySelection'](_0x32ab65,{'direction':'forward','unit':_0x1a642d['unit']});const _0x2c153f=_0x32ab65['getFirstRange'](),_0x592706=_0x3d77a4['fromRange'](_0x2c153f);let _0x2e5ab3;_0x1d630a(_0x1a642d),_0x2e5ab3='$graveyard'==_0x592706['root']['rootName']?_0x5bfa8c['model']['createRange'](_0x2c153f['start']):_0x5bfa8c['model']['createRange'](_0x592706['start'],_0x592706['end']),_0x592706['detach'](),_0x5bfa8c['model']['enqueueChange'](_0x2d26f0['buffer']['batch'],_0x24eb8e=>{_0x2d26f0['buffer']['lock'](),_0x24eb8e['setSelection'](_0x24eb8e['createRange'](_0x2e5ab3['end'])),_0x2d26f0['buffer']['unlock']();});}),_0x5bfa8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x5bfa8c,'merge'),{'priority':'high'}),_0x5bfa8c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xb26980,_0x2d63a5,_0x17f0a2)=>{_0x17f0a2['options']['showSuggestionHighlights']&&De(_0x5bfa8c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xb26980,_0x2d63a5,_0x17f0a2);},{'priority':'high'}),_0x5bfa8c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x510186,_0x26283c,_0x574df9)=>{const _0x1383cc=_0x574df9['mapper']['markerNameToElements'](_0x26283c['markerName']);if(_0x1383cc){for(const _0x175467 of _0x1383cc)_0x175467['is']('uiElement')&&(_0x574df9['mapper']['unbindElementFromMarkerName'](_0x175467,_0x26283c['markerName']),_0x574df9['writer']['remove'](_0x175467));}},{'priority':'high'});}}class W extends _0x337a55{['afterInit'](){const _0x4c78f6=this['editor'];if(!_0x4c78f6['plugins']['has']('ListEditing'))return;const _0x3d005b=_0x4c78f6['locale'],_0x3185fc=_0x4c78f6['plugins']['get']('TrackChangesEditing'),_0x424dce=_0x4c78f6['plugins']['has']('TodoListEditing'),_0x46c07b=!!_0x4c78f6['config']['get']('list.multiBlock');function _0x176d90(_0x1de048){return{'type':'format','content':''+o(_0x3d005b,'*Set\x20format:*\x20%0',_0x1de048)};}function _0x18f531(_0x2b4d97){return{'type':'format','content':''+o(_0x3d005b,'*Remove\x20format:*\x20%0',_0x2b4d97)};}_0x3185fc['enableDefaultAttributesIntegration']('numberedList'),_0x3185fc['enableDefaultAttributesIntegration']('bulletedList'),_0x3185fc['enableDefaultAttributesIntegration']('customNumberedList'),_0x3185fc['enableDefaultAttributesIntegration']('customBulletedList'),_0x3185fc['enableDefaultAttributesIntegration']('indentList'),_0x3185fc['enableDefaultAttributesIntegration']('outdentList'),_0x3185fc['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3185fc['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3185fc['registerBlockAttribute']('listItemId'),_0x3185fc['registerBlockAttribute']('listType'),_0x3185fc['registerBlockAttribute']('listIndent'),_0x46c07b&&(_0x3185fc['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3185fc['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x424dce&&(_0x3185fc['enableDefaultAttributesIntegration']('todoList'),_0x3185fc['enableDefaultAttributesIntegration']('checkTodoList'),_0x3185fc['registerBlockAttribute']('todoListChecked'),_0x3185fc['descriptionFactory']['registerDescriptionCallback'](_0x1924b4=>{const {data:_0x20c038}=_0x1924b4;if(_0x20c038&&'todoListChecked'==_0x20c038['key'])return{'type':'format','content':_0x20c038['newValue']?o(_0x3d005b,'*Check\x20item*'):o(_0x3d005b,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4e83b5=>{if(_0x4e83b5['batch']['isUndo'])return!0x1;let _0x1674fb=!0x1;const _0x6ddde3=_0x3185fc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a6dd3=>'todoListChecked'===_0x3185fc['_getAttributeKey'](_0x4a6dd3));for(const _0x3b5808 of _0x6ddde3){'todo'!=_0x3b5808['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3185fc['_findSuggestions'](_0x3b5808['getFirstRange'](),'attribute')['find'](_0x55f69b=>'listType'===_0x3185fc['_getAttributeKey'](_0x55f69b['suggestion']))||(_0x4e83b5['removeMarker'](_0x3b5808['getFirstMarker']()),_0x1674fb=!0x0));}return _0x1674fb;})),_0x3185fc['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x3d005b,'FORMAT_INDENT'));const _0x46603f={'type':'format','content':''};_0x3185fc['descriptionFactory']['registerDescriptionCallback'](_0x593ddb=>{const {data:_0x126a97}=_0x593ddb;if(!_0x126a97||'listType'!=_0x126a97['key'])return;let _0x1c0560=_0x593ddb['head'];for(;_0x1c0560;){if(_0x1c0560['data']&&(('listStyle'==_0x1c0560['data']['key']||'listMarkerStyle'==_0x1c0560['data']['key'])&&(_0x1c0560['data']['newValue']&&'default'!=_0x1c0560['data']['newValue']||'default'!=_0x1c0560['data']['oldValue']&&!_0x126a97['newValue'])||!_0x46c07b&&_0x1c0560['data']['key']==m))return _0x46603f;_0x1c0560=_0x1c0560['next'];}if(null==_0x126a97['newValue'])switch(_0x126a97['oldValue']){case'bulleted':return _0x18f531(o(_0x3d005b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x18f531(o(_0x3d005b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x18f531(o(_0x3d005b,'ELEMENT_TODO_LIST'));}switch(_0x126a97['newValue']){case'bulleted':return _0x176d90(o(_0x3d005b,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x176d90(o(_0x3d005b,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x176d90(o(_0x3d005b,'ELEMENT_TODO_LIST'));}}),_0x3185fc['descriptionFactory']['registerDescriptionCallback'](_0x128357=>{const {data:_0x307172}=_0x128357;if(_0x307172&&'listIndent'==_0x307172['key'])return null==_0x307172['newValue']||null==_0x307172['oldValue']&&0x0==_0x307172['newValue']?_0x46603f:void 0x0;}),_0x3185fc['descriptionFactory']['registerDescriptionCallback'](_0x2ae5d5=>{if('attribute'!=_0x2ae5d5['type'])return;const {data:_0xe01434}=_0x2ae5d5;if(!_0xe01434||'listItemId'!=_0xe01434['key'])return;const _0x4486a9=Te(_0x2ae5d5);return'newValue'==_0x4486a9?{'type':'format','content':o(_0x3d005b,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4486a9?{'type':'format','content':o(_0x3d005b,'*Split:*\x20list\x20item')}:_0x46603f;}),_0x4c78f6['model']['document']['registerPostFixer'](_0x39d369=>this['listItemIdFixer'](_0x39d369)),_0x4c78f6['model']['document']['registerPostFixer'](_0x4bb7d3=>this['noTrackChangesFixer'](_0x4bb7d3)),_0x4c78f6['model']['document']['on']('change:data',(_0x411c10,_0x388b83)=>{if(_0x388b83['isUndo']||!_0x388b83['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x503b89){if(_0x503b89['batch']['isUndo']||!_0x503b89['batch']['isLocal'])return!0x1;let _0x79412d=!0x1;const _0x2398eb=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f210f=>_0x3f210f['data']&&'listItemId'==_0x3f210f['data']['key'])['filter'](_0x9fdc31=>_0x9fdc31['data']['newValue']&&_0x9fdc31['data']['oldValue']);for(const _0x1a4d6b of _0x2398eb)Te(_0x1a4d6b)||(_0x503b89['removeMarker'](_0x1a4d6b['getFirstMarker']()),_0x79412d=!0x0);return _0x79412d;}['noTrackChangesFixer'](_0x25c5d6){if(_0x25c5d6['batch']['isUndo']||!_0x25c5d6['batch']['isLocal'])return!0x1;const _0x4a8ca0=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x4a8ca0['trackChangesCommand']['value'])return!0x1;let _0x3b6fde=!0x1;const _0x376f41=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ced91=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x453463=>'attribute'==_0x453463['type'])['filter'](_0x2d3555=>_0x376f41['includes'](_0x2d3555['attributeKey']));if(0x0==_0x3ced91['length'])return _0x3b6fde;for(const _0xb08fce of _0x3ced91){const _0x589d43=_0x4a8ca0['_findSuggestions'](_0xb08fce['range'],'attribute')['filter'](_0x1fc8f4=>!_0x1fc8f4['meta']['isNextTo'])['map'](_0x149ec8=>_0x149ec8['suggestion'])['filter'](_0x57237b=>{const _0x1efa21=_0x4a8ca0['_getAttributeKey'](_0x57237b);return _0x376f41['includes'](_0x1efa21);});if(_0x589d43['length']){for(const _0x5c1ea8 of _0x589d43)_0x25c5d6['removeMarker'](_0x5c1ea8['getFirstMarker']());_0x3b6fde=!0x0;}}return _0x3b6fde;}['assureChains'](){const _0x4e31cc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xd6ad59=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x228962;const _0x14f481=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x27e1a2=>{if(_0x27e1a2['data']['oldRange']||!_0x27e1a2['data']['newRange'])return null;if(!_0x27e1a2['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x1cefec}=_0x4e31cc['_splitMarkerName'](_0x27e1a2['name']);if(!_0x4e31cc['hasSuggestion'](_0x1cefec))return null;const _0x4e025d=_0x4e31cc['getSuggestion'](_0x1cefec);return _0xd6ad59['includes'](_0x4e025d['data']['key']);})['map'](_0x43a98f=>{const {id:_0x22ac34}=_0x4e31cc['_splitMarkerName'](_0x43a98f['name']),_0x3afc3b=_0x4e31cc['getSuggestion'](_0x22ac34);return _0x228962=_0x3afc3b['attributes']['groupId'],_0x3afc3b['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x14f481['size'])return;const _0x283ac4=_0x4e31cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f2e18=>'attribute'==_0x4f2e18['type']&&_0x4f2e18['data']&&_0xd6ad59['includes'](_0x4f2e18['data']['key'])&&_0x4f2e18['attributes']['groupId']!=_0x228962)['map'](_0x8a7c96=>({'listItem':_0x8a7c96['getFirstRange']()['start']['nodeAfter'],'groupId':_0x8a7c96['attributes']['groupId']})),_0x50efdc=new Set();for(const {groupId:_0x2182b4,listItem:_0x2e185f}of _0x283ac4)_0x14f481['has'](_0x2e185f)&&_0x50efdc['add'](_0x2182b4);for(const _0x312cbc of _0x4e31cc['getSuggestions']())_0x50efdc['has'](_0x312cbc['attributes']['groupId'])&&_0x312cbc['setAttribute']('groupId',_0x228962);}['_supportLegacySuggestions'](){const _0x34e9d6=this['editor'],_0x589c36=_0x34e9d6['locale'],_0x186834=_0x34e9d6['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x186834['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x1aafca,_0x38b4d6){const _0x5cc99b=[];for(let _0x4f7f5e of _0x1aafca)_0x4f7f5e['start']['nodeAfter']===_0x4f7f5e['end']['parent']&&(_0x4f7f5e=_0x34e9d6['model']['createRange'](_0x34e9d6['model']['createPositionAt'](_0x4f7f5e['start']['nodeAfter'],0x0))),_0x5cc99b['push'](_0x4f7f5e);_0x34e9d6['model']['change'](_0x1715b0=>{const _0x701e3c=_0x34e9d6['model']['document']['selection'],_0x3b81c4=Array['from'](_0x701e3c['getRanges']())['map'](_0x28daca=>_0x3d77a4['fromRange'](_0x28daca));_0x1715b0['setSelection'](_0x5cc99b),_0x34e9d6['commands']['get'](_0x38b4d6['commandName'])['refresh'](),_0x38b4d6['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x34e9d6['execute'](_0x38b4d6['commandName'],..._0x38b4d6['commandParams']),_0x1715b0['setSelection'](_0x3b81c4);for(const _0x43e46b of _0x3b81c4)_0x43e46b['detach']();});}),_0x186834['descriptionFactory']['registerElementLabel'](function(_0x43c797){const _0x16962a=!_0x34e9d6['model']['schema']['isObject'](_0x43c797),_0x3056a5=_0x43c797['previousSibling'],_0x4c5ae4=_0x43c797['nextSibling'],_0x4e718d=_0x43c797['getAttribute']('listItemId'),_0x386c8e=!_0x3056a5||_0x3056a5['getAttribute']('listItemId')!==_0x4e718d,_0x832bcc=!_0x4c5ae4||_0x4c5ae4['getAttribute']('listItemId')!==_0x4e718d;return _0x16962a&&Boolean(_0x4e718d)&&_0x386c8e&&_0x832bcc;},_0x2a0f13=>o(_0x589c36,'ELEMENT_LIST_ITEM',_0x2a0f13));}['_registerLegacyDescription'](){const _0x49052e=this['editor'],_0x133fdb=_0x49052e['locale'];function _0x443da5(_0x23bf3e){const _0x5beb3e=_0x49052e['commands']['get']('bulletedList')['value'],_0x2b98c6=_0x49052e['commands']['get']('numberedList')['value'];return'numberedList'===_0x23bf3e?_0x5beb3e:_0x2b98c6;}_0x49052e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x186f52){if('formatBlock'!=_0x186f52['type'])return;const {data:_0x389dbe}=_0x186f52;if(!_0x389dbe)return;let _0x482113,_0x70a579,_0x44f533,_0x3e2488;switch(_0x389dbe['commandName']){case'bulletedList':_0x44f533=_0x389dbe['commandParams'][0x0]['forceValue'],_0x3e2488=_0x443da5(_0x389dbe['commandName']),_0x482113=_0x44f533?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e2488&&_0x49052e['config']['get']('list.multiBlock')||(_0x482113='*Change\x20to:*\x20%0'),_0x70a579={'type':'format','content':o(_0x133fdb,_0x482113,o(_0x133fdb,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x44f533=_0x389dbe['commandParams'][0x0]['forceValue'],_0x3e2488=_0x443da5(_0x389dbe['commandName']),_0x482113=_0x44f533?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e2488&&_0x49052e['config']['get']('list.multiBlock')||(_0x482113='*Change\x20to:*\x20%0'),_0x70a579={'type':'format','content':o(_0x133fdb,_0x482113,o(_0x133fdb,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x482113='*Indent:*\x20%0',_0x70a579={'type':'format','content':o(_0x133fdb,_0x482113,o(_0x133fdb,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x482113=function(_0x5ae609){const _0x15e2d7=_0x5ae609['getFirstRange']();let _0x559603=_0x15e2d7['start']['nodeAfter'];for(;_0x559603&&_0x15e2d7['containsItem'](_0x559603);){if(_0x559603['getAttribute']('listIndent')>0x0)return!0x1;_0x559603=_0x559603['nextSibling'];}return!0x0;}(_0x186f52)?o(_0x133fdb,'*Format:*\x20remove\x20from\x20%0',o(_0x133fdb,function(_0xd03d69){return'ELEMENT_'+_0xd03d69['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x186f52))):o(_0x133fdb,'*Outdent:*\x20%0',o(_0x133fdb,'ELEMENT_LIST_ITEM')),_0x70a579={'type':'format','content':_0x482113};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x389dbe['multipleBlocks']&&(_0x482113='*Merge:*\x20%0',_0x70a579={'type':'deletion','content':o(_0x133fdb,_0x482113,o(_0x133fdb,'ELEMENT_LIST_ITEM'))});}return _0x70a579;});}}function Te(_0x83fcd1){let _0x517355=_0x83fcd1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x517355;){const _0x19be1f=_0x517355['getAttribute']('listItemId');if(!_0x19be1f)return!0x1;if(_0x19be1f==_0x83fcd1['data']['newValue'])return'newValue';if(_0x19be1f==_0x83fcd1['data']['oldValue'])return'oldValue';_0x517355=_0x517355['previousSibling'];}return!0x1;}class Se extends _0x337a55{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d3c61=this['editor']['config']['get']('list.properties'),_0xc44ae2=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3c61['styles']&&(_0xc44ae2['enableDefaultAttributesIntegration']('listStyle'),_0xc44ae2['registerBlockAttribute']('listStyle')),_0x5d3c61['reversed']&&(_0xc44ae2['enableDefaultAttributesIntegration']('listReversed'),_0xc44ae2['registerBlockAttribute']('listReversed')),_0x5d3c61['startIndex']&&(_0xc44ae2['enableDefaultAttributesIntegration']('listStart'),_0xc44ae2['registerBlockAttribute']('listStart'));const _0x46306a={'type':'format','content':''};_0xc44ae2['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x516056=this['editor']['locale'];_0xc44ae2['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x516056,'FORMAT_LIST_REVERSED')),_0xc44ae2['descriptionFactory']['registerDescriptionCallback'](_0x2d6f62=>{const {data:_0x256202}=_0x2d6f62;if(_0x256202&&'listReversed'==_0x256202['key'])return null==_0x256202['newValue']||0x0==_0x256202['newValue']&&null==_0x256202['oldValue']?_0x46306a:void 0x0;}),_0xc44ae2['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x516056,'FORMAT_LIST_START')),_0xc44ae2['descriptionFactory']['registerDescriptionCallback'](_0x1740a4=>{const {data:_0x57a229}=_0x1740a4;if(_0x57a229&&'listStart'==_0x57a229['key'])return null==_0x57a229['newValue']||0x1==_0x57a229['newValue']&&null==_0x57a229['oldValue']?_0x46306a:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1e0946=>{if(_0x1e0946['batch']['isUndo'])return!0x1;let _0x45fbdc=!0x1;const _0x4f1864=_0xc44ae2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x389fdb=>{const _0x31ec8c=_0xc44ae2['_getAttributeKey'](_0x389fdb);return'listStart'==_0x31ec8c||'listReversed'==_0x31ec8c;});for(const _0x126d23 of _0x4f1864){const _0x470a47=_0x126d23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x470a47||'customNumbered'==_0x470a47)continue;_0xc44ae2['_findSuggestions'](_0x126d23['getFirstRange'](),'attribute')['find'](_0x42af79=>'listType'==_0xc44ae2['_getAttributeKey'](_0x42af79['suggestion']))||(_0x1e0946['removeMarker'](_0x126d23['getFirstMarker']()),_0x45fbdc=!0x0);}return _0x45fbdc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x7219ba){const _0x162cce=this['editor']['locale'],{data:_0x2c200e}=_0x7219ba,_0x15bd9f={'type':'format','content':''};if(!_0x2c200e||'listStyle'!=_0x2c200e['key'])return;if(!_0x2c200e['oldValue'])return'default'==_0x2c200e['newValue']?_0x15bd9f:{'type':'format','content':''+o(_0x162cce,'*Set\x20format:*\x20%0',o(_0x162cce,this['_getTranslationKeyForListStyle'](_0x2c200e['newValue'])))};if(!_0x2c200e['newValue']){if('default'==_0x2c200e['oldValue'])return _0x15bd9f;let _0xc0691d=_0x7219ba['head'];for(;_0xc0691d;){if(_0xc0691d['data']&&'listType'==_0xc0691d['data']['key']&&_0xc0691d['data']['newValue'])return _0x15bd9f;_0xc0691d=_0xc0691d['next'];}return{'type':'format','content':''+o(_0x162cce,'*Remove\x20format:*\x20%0',o(_0x162cce,this['_getTranslationKeyForListStyle'](_0x2c200e['oldValue'])))};}if('default'!=_0x2c200e['newValue'])return{'type':'format','content':''+o(_0x162cce,'*Set\x20format:*\x20%0',o(_0x162cce,this['_getTranslationKeyForListStyle'](_0x2c200e['newValue'])))};let _0x3ca5e6=_0x7219ba['head'];for(;_0x3ca5e6;){if(_0x3ca5e6['data']&&'listType'==_0x3ca5e6['data']['key']&&_0x3ca5e6['data']['newValue']&&_0x3ca5e6['data']['oldValue'])return _0x15bd9f;_0x3ca5e6=_0x3ca5e6['next'];}return{'type':'format','content':o(_0x162cce,'*Set\x20format:*\x20%0',o(_0x162cce,'ELEMENT_'+_0x7219ba['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4ab632=this['editor'],_0x5586d1=_0x4ab632['locale'];_0x4ab632['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf94284=>{if('formatBlock'!=_0xf94284['type'])return;const {data:_0x1b27e6}=_0xf94284;if(!_0x1b27e6)return;let _0x3484fe,_0x572985;switch(_0x1b27e6['commandName']){case'listStyle':_0x3484fe='*Change\x20to:*\x20%0',_0x572985={'type':'format','content':o(_0x5586d1,_0x3484fe,o(_0x5586d1,this['_getTranslationKeyForListStyle'](_0x1b27e6['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3484fe=_0x1b27e6['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x572985={'type':'format','content':o(_0x5586d1,_0x3484fe)};break;case'listStart':_0x3484fe='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x572985={'type':'format','content':o(_0x5586d1,_0x3484fe,_0x1b27e6['commandParams'][0x0]['startIndex'])};}return _0x572985;});}['_getTranslationKeyForListStyle'](_0x162bb4){return'ELEMENT_'+function(_0x477893){if(_e['includes'](_0x477893))return'bulleted';if(Re['includes'](_0x477893))return'numbered';return null;}(_0x162bb4)['toUpperCase']()+'_LIST_'+_0x162bb4['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x337a55{['afterInit'](){const _0x4c048c=this['editor'];_0x4c048c['commands']['get']('emoji')&&_0x4c048c['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x337a55{static get['requires'](){return[_0x1ed09f];}['init'](){const _0x4c3e36=this['editor'],_0x221064=_0x4c3e36['plugins']['get']('TrackChangesEditing'),_0x37f07c=_0x4c3e36['commands']['get']('enter');_0x221064['enableCommand']('enter',()=>{_0x4c3e36['model']['change'](_0x24655d=>{const _0x58701b=_0x4c3e36['model']['document']['selection'],_0x520a0c=_0x58701b['getFirstPosition'](),_0x596e37=_0x3d77a4['fromRange'](_0x58701b['getFirstRange']());if(_0x37f07c['enterBlock'](_0x24655d)){const _0x8a4914=_0x4c3e36['model']['createPositionAt'](_0x520a0c['parent']['nextSibling'],0x0),_0x2d0d96=_0x24655d['createRange'](_0x520a0c,_0x8a4914);_0x221064['markInsertion'](_0x2d0d96);}else _0x24655d['setSelection'](_0x24655d['createRange'](_0x596e37['end']));_0x596e37['detach'](),_0x37f07c['fire']('afterExecute',{'writer':_0x24655d});});}),_0x4c3e36['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x4c3e36,'split'),{'priority':'high'}),_0x4c3e36['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x387315,_0x1e2217,_0xf81edb)=>{const _0x272d7e=_0xf81edb['mapper']['markerNameToElements'](_0x1e2217['markerName']);if(_0x272d7e){for(const _0x1c6fc1 of _0x272d7e)_0x1c6fc1['hasClass']('ck-suggestion-marker-split')&&(_0xf81edb['mapper']['unbindElementFromMarkerName'](_0x1c6fc1,_0x1e2217['markerName']),_0xf81edb['writer']['remove'](_0x1c6fc1));}},{'priority':'high'}),_0x4c3e36['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x48124d,_0x5ae079,_0x3bb142)=>{_0x3bb142['options']['showSuggestionHighlights']&&De(_0x4c3e36,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x48124d,_0x5ae079,_0x3bb142);},{'priority':'high'});}}class Z extends _0x337a55{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4c591c=this['editor']['plugins']['get']('TrackChangesEditing');_0x4c591c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4c591c['enableCommand']('findNext'),_0x4c591c['enableCommand']('findPrevious'),_0x4c591c['enableCommand']('replace'),_0x4c591c['enableCommand']('replaceAll');}['handleFindCommand'](_0x26f297,_0x469c51,_0x5760d5={}){const _0x5ee392=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x26f297(_0x29481a=>{let _0x3172a9=('string'==typeof _0x469c51?_0x5ee392['findByTextCallback'](_0x469c51,_0x5760d5):_0x469c51)(_0x29481a);Array['isArray'](_0x3172a9)&&(_0x3172a9={'results':_0x3172a9,'searchText':'string'==typeof _0x469c51?_0x469c51:''});const _0x5e1133=_0x3172a9['results']['filter'](_0x513d53=>!0x1===this['_isInDeletionRange'](_0x513d53,_0x29481a['item']));return{..._0x3172a9,'results':_0x5e1133};},_0x5760d5);}['_isInDeletionRange'](_0x2ecc19,_0x269dad){const _0x5104ee=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x269dad,_0x2ecc19['start']),this['editor']['model']['createPositionAt'](_0x269dad,_0x2ecc19['end']));for(const _0x599028 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x5104ee['getIntersection'](_0x599028['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x337a55{['afterInit'](){const _0x20e8f6=this['editor']['locale'],_0x33619f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1a4e64,commandName:_0x32cb26}of ro)this['editor']['plugins']['has'](_0x1a4e64)&&(_0x33619f['enableDefaultAttributesIntegration'](_0x32cb26),_0x33619f['registerInlineAttribute'](_0x32cb26));_0x33619f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x20e8f6,'FORMAT_FONT_SIZE')),_0x33619f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x20e8f6,'FORMAT_FONT_FAMILY')),_0x33619f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x20e8f6,'FORMAT_FONT_COLOR')),_0x33619f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x20e8f6,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x49d6fb=this['editor'],_0x196f41=_0x49d6fb['locale'];_0x49d6fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe70b84=>{const _0x4bf099=_0x196f41['t'];if('formatInline'!=_0xe70b84['type'])return;const {data:_0x440d5a}=_0xe70b84;if(null!=_0x440d5a){if('fontSize'==_0x440d5a['commandName']){const _0x13b299=_0x440d5a['commandParams'][0x0]['value'];if(_0x13b299){const _0x399f25=_0x4bf099(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1bd443=>_0x1bd443['model']==_0x13b299)['title'])['toLowerCase']();return{'type':'format','content':o(_0x196f41,'*Set\x20font\x20size:*\x20%0',_0x399f25)};}return{'type':'format','content':o(_0x196f41,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x440d5a['commandName']){const _0x1229f0=_0x440d5a['commandParams'][0x0]['value'];return _0x1229f0?{'type':'format','content':o(_0x196f41,'*Set\x20font\x20family:*\x20%0',_0x1229f0)}:{'type':'format','content':o(_0x196f41,'*Reset\x20font\x20family*')};}if('fontColor'==_0x440d5a['commandName']){const _0x320c71=_0x440d5a['commandParams'][0x0]['value'];if(_0x320c71){const _0xb1f714=_0x46edf7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x2a52bf=>_0x2a52bf['model']==_0x320c71);let _0xc0e10a=_0x320c71,_0x2ed820='';return _0xb1f714&&(_0xc0e10a=_0xb1f714['label'],_0x2ed820=_0x4bf099(_0xc0e10a)['toLowerCase']()),{'type':'format','content':o(_0x196f41,'*Set\x20font\x20color:*\x20%0',_0x2ed820)['trim'](),'color':{'value':_0x320c71,'title':_0x2ed820||_0xc0e10a}};}return{'type':'format','content':o(_0x196f41,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x440d5a['commandName']){const _0x28a15f=_0x440d5a['commandParams'][0x0]['value'];if(_0x28a15f){const _0x4089a2=_0x46edf7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x582e5e=>_0x582e5e['model']==_0x28a15f);let _0x1484f0=_0x28a15f,_0x560424='';return _0x4089a2&&(_0x1484f0=_0x4089a2['label'],_0x560424=_0x4bf099(_0x1484f0)['toLowerCase']()),{'type':'format','content':o(_0x196f41,'*Set\x20font\x20background\x20color:*\x20%0',_0x560424)['trim'](),'color':{'value':_0x28a15f,'title':_0x560424||_0x1484f0}};}return{'type':'format','content':o(_0x196f41,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x337a55{['afterInit'](){const _0xe67c8e=this['editor'],_0x2359f0=_0xe67c8e['plugins']['get']('TrackChangesEditing'),_0x1fc37e=_0xe67c8e['commands']['get']('copyFormat'),_0x53b559=_0xe67c8e['commands']['get']('pasteFormat');_0x1fc37e&&_0x53b559&&(_0x2359f0['enableDefaultAttributesIntegration']('pasteFormat'),_0x2359f0['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xf614c3=this['editor'],_0x3a37e=_0xf614c3['locale'];_0xf614c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x504aa9=>{if('formatBlock'!=_0x504aa9['type']&&'formatInline'!=_0x504aa9['type'])return;const {data:_0xcbdcbb}=_0x504aa9;if(_0xcbdcbb&&'pasteFormat'===_0xcbdcbb['commandName']){const _0x23fffb=[],_0x252377=_0xcbdcbb['commandParams'][0x0];for(const [_0x26d8a8,_0x536997]of Object['entries'](_0x252377))_0x23fffb['push'](so(_0xf614c3,_0x26d8a8,_0x536997));return _0x23fffb['length']?{'type':'format','content':o(_0x3a37e,'*Set\x20format\x20to:*\x20%0',_0x23fffb['join'](',\x20'))}:{'type':'format','content':o(_0x3a37e,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3e4337,_0x17d126,_0x569b7a){const _0xb4b586=_0x3e4337['locale']['t'],_0x521ebf=_0x17d126['split'](/(?=[A-Z])/)['join']('\x20'),_0x2520e7=_0xb4b586(_0x521ebf['charAt'](0x0)['toUpperCase']()+_0x521ebf['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x569b7a)return _0x2520e7;if('fontColor'===_0x17d126||'fontBackgroundColor'===_0x17d126){const _0x1f7e9f=_0x46edf7(_0x3e4337['config']['get']('fontColor.colors'))['find'](_0x2e5f8c=>_0x2e5f8c['model']==_0x569b7a);return _0x2520e7+'\x20('+(_0x1f7e9f?_0xb4b586(_0x1f7e9f['label'])['toLowerCase']():_0x569b7a)+')';}if('fontSize'===_0x17d126&&isNaN(parseFloat(_0x569b7a))){const _0x12200e=_0x3e4337['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3e4337['config']['get']('fontSize.options'))['find'](_0x331406=>_0x331406['model']==_0x569b7a);return _0x2520e7+'\x20('+(_0x12200e?_0xb4b586(_0x12200e['title'])['toLowerCase']():_0x569b7a)+')';}return _0x2520e7+'\x20('+_0x569b7a+')';}class it extends _0x337a55{['_headingOptions'];['afterInit'](){const _0x3218f6=this['editor'];if(!_0x3218f6['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x3218f6['config']['get']('heading.options');const _0x5a6fbc=_0x3218f6['locale'],_0x1bdc7a=_0x3218f6['plugins']['get']('TrackChangesEditing');_0x1bdc7a['enableDefaultAttributesIntegration']('heading');for(const _0x5cef04 of this['_headingOptions'])'paragraph'!=_0x5cef04['model']&&_0x1bdc7a['descriptionFactory']['registerElementLabel'](_0x5cef04['model'],_0x2093ca=>{const _0x2d9e7e=this['_getHeadingLevel'](_0x5cef04['model']);return null!==_0x2d9e7e?_0x490868(_0x2093ca,_0x2d9e7e):_0x47fc55(_0x2093ca,_0x5cef04['title']);});function _0x490868(_0x33e24d,_0x559f64){return o(_0x5a6fbc,'ELEMENT_HEADING',[_0x33e24d,_0x559f64]);}function _0x47fc55(_0x2c3515,_0x4dad81){return o(_0x5a6fbc,'ELEMENT_HEADING_CUSTOM',[_0x2c3515,_0x4dad81]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55f3a3=this['editor'],_0x9029c7=_0x55f3a3['locale'];function _0x3ec87d(_0x4cd92b,_0x37988e){return o(_0x9029c7,'ELEMENT_HEADING_CUSTOM',[_0x4cd92b,_0x37988e]);}_0x55f3a3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d383d=>{if('formatBlock'!=_0x5d383d['type'])return;const {data:_0x179177}=_0x5d383d;if(_0x179177&&'heading'==_0x179177['commandName']){const _0x5550f8=_0x179177['commandParams'][0x0]['value'],_0x4348e2=this['_getHeadingLevel'](_0x5550f8);if(null!==_0x4348e2)return{'type':'format','content':o(_0x9029c7,'*Change\x20to:*\x20%0',(_0x4c82db=0x1,_0x20c49a=_0x4348e2,o(_0x9029c7,'ELEMENT_HEADING',[_0x4c82db,_0x20c49a])))};const _0x155071=this['_headingOptions']['find'](_0x36d345=>_0x36d345['model']===_0x5550f8)['title'];return{'type':'format','content':o(_0x9029c7,'*Change\x20to:*\x20%0',_0x3ec87d(0x1,_0x155071))};}var _0x4c82db,_0x20c49a;});}['_getHeadingLevel'](_0x329dad){const _0x2ea489=_0x329dad['match'](/^heading(\d+)/);if(_0x2ea489)return _0x2ea489[0x1];const _0x3cb09b=this['_headingOptions']?.['find'](_0x78e6c3=>_0x78e6c3['model']==_0x329dad);if(_0x3cb09b&&_0x3cb09b['view']){const _0x377566=_0x3cb09b['view'],_0x37a1aa=(_0x377566['name']??_0x377566)['match'](/^h(\d+)/);if(_0x37a1aa)return _0x37a1aa[0x1];}return null;}}class et extends _0x337a55{['afterInit'](){const _0x15740c=this['editor'];if(!_0x15740c['plugins']['has']('HighlightEditing'))return;const _0x5cdc6a=_0x15740c['plugins']['get']('TrackChangesEditing'),_0x19a023=_0x15740c['locale'];_0x5cdc6a['enableDefaultAttributesIntegration']('highlight'),_0x5cdc6a['registerInlineAttribute']('highlight'),_0x5cdc6a['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x19a023,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x185b79=this['editor'],_0x45e286=_0x185b79['locale'];_0x185b79['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fb879=>{if('formatInline'!=_0x3fb879['type'])return;const {data:_0x4bd2f8}=_0x3fb879;if(_0x4bd2f8&&'highlight'==_0x4bd2f8['commandName']){const _0x119768=_0x45e286['t'],_0x355a68=_0x4bd2f8['commandParams'][0x0]['value'];if(_0x355a68){const _0x1e4612=_0x185b79['config']['get']('highlight.options')['find'](_0x164d54=>_0x164d54['model']==_0x355a68),_0x532f7c=_0x119768(_0x1e4612['title'])['toLowerCase']();return{'type':'format','content':o(_0x45e286,'*Set\x20highlight:*\x20%0',_0x532f7c),'color':{'value':_0x1e4612['color'],'title':_0x1e4612['title']}};}return{'type':'format','content':o(_0x45e286,'*Remove\x20highlight*',o(_0x45e286,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x337a55{['afterInit'](){const _0xc37a40=this['editor'];if(!_0xc37a40['plugins']['has']('HorizontalLineEditing'))return;_0xc37a40['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x59a8b9=_0xc37a40['plugins']['get']('TrackChangesEditing'),_0x12fe16=_0xc37a40['locale'];_0x59a8b9['descriptionFactory']['registerElementLabel']('horizontalLine',_0x1e32a8=>o(_0x12fe16,'ELEMENT_HORIZONTAL_LINE',_0x1e32a8)),_0xc37a40['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3db6ea,{writer:_0x1e591a,options:_0x4c1444})=>{if(!_0x4c1444['showSuggestionHighlights'])return null;const _0x562736=_0x1e591a['createContainerElement']('div'),_0x500f80=_0x1e591a['createEmptyElement']('hr');return _0x1e591a['addClass']('ck-horizontal-line',_0x562736),_0x1e591a['insert'](_0x1e591a['createPositionAt'](_0x562736,0x0),_0x500f80),_0x562736;},'converterPriority':'high'});}}class ot extends _0x337a55{['afterInit'](){const _0x3970db=this['editor'];if(!_0x3970db['plugins']['has']('HtmlEmbed'))return;const _0x17f63a=_0x3970db['plugins']['get']('TrackChangesEditing'),_0x270208=_0x3970db['locale'];_0x17f63a['descriptionFactory']['registerElementLabel']('rawHtml',_0x23030a=>o(_0x270208,'ELEMENT_HTML_EMBED',_0x23030a)),_0x17f63a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x17f63a['registerBlockAttribute']('value'),_0x17f63a['descriptionFactory']['registerDescriptionCallback'](_0x496c31=>{if('attribute'!=_0x496c31['type'])return;const {data:_0x4e2856}=_0x496c31;if(_0x4e2856&&'value'==_0x4e2856['key']&&_0x496c31['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1315dc=o(_0x270208,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x270208,'*Change\x20%0\x20content*',_0x1315dc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x292a42=this['editor'],_0x29d8fe=_0x292a42['locale'];_0x292a42['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a7126=>{if('formatBlock'!=_0x5a7126['type'])return;const {data:_0xd02fb3}=_0x5a7126;if(_0xd02fb3&&'htmlEmbed'==_0xd02fb3['commandName']){const _0x53f281=o(_0x29d8fe,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x29d8fe,'*Change\x20%0\x20content*',_0x53f281)};}});}}class rt extends _0x337a55{['afterInit'](){const _0x4be92=this['editor'];if(!_0x4be92['plugins']['has']('ImageEditing'))return;const _0x2a3a5f=_0x4be92['plugins']['get']('TrackChangesEditing'),_0x1d6e9c=_0x4be92['plugins']['get']('ImageUtils'),_0x4e121f=_0x4be92['locale'];_0x2a3a5f['enableCommand']('insertImage'),_0x2a3a5f['descriptionFactory']['registerElementLabel']('imageBlock',_0x249251=>o(_0x4e121f,'ELEMENT_IMAGE',_0x249251)),_0x2a3a5f['descriptionFactory']['registerElementLabel']('imageInline',_0x587cca=>o(_0x4e121f,'ELEMENT_INLINE_IMAGE',_0x587cca)),_0x2a3a5f['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4e121f,'ELEMENT_CAPTION')),_0x4be92['plugins']['has']('ImageUploadEditing')&&_0x2a3a5f['enableCommand']('uploadImage'),_0x4be92['plugins']['has']('ImageBlockEditing')&&_0x4be92['plugins']['has']('ImageInlineEditing')&&(_0x2a3a5f['enableCommand']('imageTypeInline',(_0x5829d1,_0x5cb308)=>{const _0x5765cf=_0x1d6e9c['getClosestSelectedImageElement'](_0x4be92['model']['document']['selection']);_0x4be92['model']['change'](()=>{_0x2a3a5f['markBlockFormat'](_0x5765cf,{'commandName':'imageTypeInline','commandParams':[_0x5cb308]},[],'convertBlockImageToInline');});}),_0x2a3a5f['enableCommand']('imageTypeBlock',(_0x1d5ce2,_0xc03130)=>{_0x4be92['model']['change'](_0x2220d6=>{let _0x33e30e=_0x1d6e9c['getClosestSelectedImageElement'](_0x4be92['model']['document']['selection']),_0x45ea7c=_0x2220d6['createRangeOn'](_0x33e30e);const _0x49c87d=_0x7b7aa['fromPosition'](_0x45ea7c['start'],'toPrevious'),_0x37915a=_0x7b7aa['fromPosition'](_0x45ea7c['end'],'toNext');_0x2a3a5f['forceDefaultExecution'](()=>_0x1d5ce2(_0xc03130)),_0x33e30e=_0x1d6e9c['getClosestSelectedImageElement'](_0x4be92['model']['document']['selection']),_0x45ea7c=_0x2220d6['createRangeOn'](_0x33e30e);const _0x553e35=_0x2220d6['createRange'](_0x49c87d,_0x37915a);_0x49c87d['detach'](),_0x37915a['detach'](),_0x2a3a5f['markBlockFormat'](_0x33e30e,{'commandName':'imageTypeInline','commandParams':[_0xc03130]},[],'convertInlineImageToBlock'),_0x553e35['start']['isBefore'](_0x45ea7c['start'])&&_0x2a3a5f['markInsertion'](_0x2220d6['createRange'](_0x553e35['start'],_0x45ea7c['start']),'convertInlineImageToBlock'),_0x45ea7c['end']['isBefore'](_0x553e35['end'])&&_0x2a3a5f['markInsertion'](_0x2220d6['createRange'](_0x45ea7c['end'],_0x553e35['end']),'convertInlineImageToBlock');});}),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2a3a5f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xeb5e39])=>{const _0x160219=_0x2a3a5f['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4ef09d=_0xeb5e39['start'],_0x6ea4a9=_0xeb5e39['end'];const _0x3d8c73=_0x4be92['model']['schema']['getNearestSelectionRange'](_0x4ef09d,'backward'),_0x3aba6e=_0x4be92['model']['schema']['getNearestSelectionRange'](_0x6ea4a9,'forward');_0x3d8c73['isCollapsed']&&(_0x4ef09d=_0x3d8c73['start']),_0x3aba6e['isCollapsed']&&(_0x6ea4a9=_0x3aba6e['end']),_0x160219([_0x4be92['model']['createRange'](_0x4ef09d,_0x6ea4a9)]);}),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x2d285b),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x2d285b)),_0x4be92['plugins']['has']('ImageCaptionEditing')&&(_0x2a3a5f['enableCommand']('toggleImageCaption',(_0x11efd3,_0x2538d0)=>{const _0x560fab=_0x4be92['plugins']['get']('ImageCaptionUtils');let _0x187744=_0x1d6e9c['getClosestSelectedImageElement'](_0x4be92['model']['document']['selection']),_0x447fb5=_0x560fab['getCaptionFromImageModelElement'](_0x187744);_0x4be92['model']['change'](()=>{if(_0x447fb5)return void _0x2a3a5f['markDeletion'](_0x4be92['model']['createRangeOn'](_0x447fb5));const _0x11665b=_0x1d6e9c['isBlockImage'](_0x187744);_0x11efd3(_0x2538d0),_0x187744=_0x1d6e9c['getClosestSelectedImageElement'](_0x4be92['model']['document']['selection']),_0x447fb5=_0x560fab['getCaptionFromImageModelElement'](_0x187744),_0x2a3a5f['markInsertion'](_0x4be92['model']['createRangeOn'](_0x447fb5),_0x11665b?null:'imageCaption');});}),_0x2a3a5f['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x2d285b));const _0x69ece6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3caf94(_0x36e52b,_0x21d5de){const _0xccfd09=_0x69ece6['findIndex'](({type:_0x21c2b0,subType:_0x22ff0d})=>_0x36e52b['type']==_0x21c2b0&&_0x36e52b['subType']==_0x22ff0d),_0x2b55f0=_0x69ece6['findIndex'](({type:_0x51dee6,subType:_0x23c056})=>_0x21d5de['type']==_0x51dee6&&_0x21d5de['subType']==_0x23c056);if(_0xccfd09<0x0||_0x2b55f0<0x0)return!0x1;const _0x136b78=_0x36e52b['getFirstRange'](),_0x23da18=_0x21d5de['getFirstRange']();if((0x0==_0xccfd09||0x1==_0xccfd09)&&0x2==_0x2b55f0&&_0x136b78['isIntersecting'](_0x23da18))return!0x0;if(0x2==_0xccfd09&&0x3==_0x2b55f0){const _0x341df0=_0x2a3a5f['_findSuggestions'](_0x136b78,'insertion')['filter'](({suggestion:_0x5b5907,meta:_0x54be3f})=>_0x54be3f['isOwn']&&'convertInlineImageToBlock'==_0x5b5907['subType']);if(_0x341df0['length']>0x1&&_0x23da18['end']['isEqual'](_0x136b78['start']))return!0x0;if(0x1==_0x341df0['length']&&(_0x136b78['start']['isEqual'](_0x23da18['end'])||_0x136b78['end']['isEqual'](_0x23da18['start'])))return!0x0;}if(0x3==_0xccfd09&&0x3==_0x2b55f0&&_0x136b78['start']['isBefore'](_0x23da18['start'])){const _0x59ae9a=_0x136b78['end']['nodeAfter'],_0x1a1d8e=_0x23da18['start']['nodeBefore'];return _0x1d6e9c['isBlockImage'](_0x59ae9a)&&_0x59ae9a===_0x1a1d8e;}return!0x1;}function _0x2d285b(_0x668dd6,_0xe5f136){return _0x3caf94(_0x668dd6,_0xe5f136)?[_0x668dd6,_0xe5f136]:_0x3caf94(_0xe5f136,_0x668dd6)?[_0xe5f136,_0x668dd6]:null;}_0x4be92['plugins']['has']('ImageResize')&&(_0x2a3a5f['enableDefaultAttributesIntegration']('resizeImage'),_0x2a3a5f['registerBlockAttribute']('resizedWidth'),_0x2a3a5f['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4e121f,'FORMAT_IMAGE_SIZE'))),_0x4be92['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2a3a5f['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2a3a5f['registerBlockAttribute']('alt')),_0x4be92['plugins']['has']('PictureEditing')&&(_0x2a3a5f['registerBlockAttribute']('sources'),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x1b99b3=>{if('attribute'!=_0x1b99b3['type'])return;const {data:_0xea8b19}=_0x1b99b3;return _0xea8b19&&'sources'==_0xea8b19['key']?{'type':'format','content':''}:void 0x0;})),_0x4be92['plugins']['has']('ImageSizeAttributes')&&(_0x2a3a5f['registerBlockAttribute']('width'),_0x2a3a5f['registerBlockAttribute']('height'),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x1965bb=>{if('attribute'!=_0x1965bb['type'])return;const {data:_0x533b80}=_0x1965bb;return!_0x533b80||'width'!=_0x533b80['key']&&'height'!=_0x533b80['key']?void 0x0:{'type':'format','content':''};})),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x15cd70=>{if(!!_0x69ece6['find'](({type:_0x448eb0,subType:_0x5dcbb2})=>_0x15cd70['type']==_0x448eb0&&_0x15cd70['subType']==_0x5dcbb2))return _0x15cd70['previous']?{}:void 0x0;}),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x820e96=>{if('insertion'==_0x820e96['type']||'deletion'==_0x820e96['type']){const _0x19543d=_0x820e96['getContainedElement']();if(_0x19543d&&_0x19543d['is']('element','caption'))return{'type':'insertion'==_0x820e96['type']?'addObject':'removeObject','element':_0x19543d,'quantity':0x1};}}),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x3f80d8=>'formatBlock'==_0x3f80d8['type']&&'convertInlineImageToBlock'==_0x3f80d8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3f80d8['type']&&'convertBlockImageToInline'==_0x3f80d8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2a3a5f['descriptionFactory']['registerDescriptionCallback'](_0x38b265=>{if('attribute'!=_0x38b265['type'])return;const {data:_0x741eae}=_0x38b265;if(!_0x741eae||'alt'!=_0x741eae['key'])return;const _0x551e2e=_0x741eae['newValue'];return _0x551e2e?{'type':'format','content':o(_0x4e121f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x551e2e+'\x22')}:{'type':'format','content':o(_0x4e121f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x346dfb=this['editor'],_0x5023f4=_0x346dfb['locale'];_0x346dfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa11bca=>{if('formatBlock'!=_0xa11bca['type']&&'formatInline'!=_0xa11bca['type'])return;const {data:_0x9f9e58}=_0xa11bca;if(_0x9f9e58){if('imageTextAlternative'==_0x9f9e58['commandName']){const _0x12166c=_0x9f9e58['commandParams'][0x0]['newValue'];return _0x12166c?{'type':'format','content':o(_0x5023f4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x12166c+'\x22')}:{'type':'format','content':o(_0x5023f4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x9f9e58['commandName']){const _0x2cbf88=_0x9f9e58['commandParams'][0x0]['width'];return _0x2cbf88?{'type':'format','content':o(_0x5023f4,'*Set\x20image\x20width:*\x20%0',_0x2cbf88)}:{'type':'format','content':o(_0x5023f4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x337a55{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5c26f2=this['editor']['locale'],_0x200703=this['editor']['plugins']['get']('TrackChangesEditing');_0x200703['enableDefaultAttributesIntegration']('replaceImageSource'),_0x200703['registerBlockAttribute']('src'),_0x200703['descriptionFactory']['registerDescriptionCallback'](_0x58d853=>{if('attribute'!=_0x58d853['type'])return;const {data:_0x26cf85}=_0x58d853;return _0x26cf85&&'src'==_0x26cf85['key']?_0x26cf85['newValue']&&_0x26cf85['oldValue']?{'type':'format','content':o(_0x5c26f2,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x33155c=this['editor']['plugins']['get']('TrackChangesEditing');_0x33155c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x33155c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x33155c['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x33155c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25aaf7=this['editor'],_0x4dde08=_0x25aaf7['locale'];_0x25aaf7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34db61=>{if('formatBlock'!=_0x34db61['type']&&'formatInline'!=_0x34db61['type'])return;const {data:_0x57da50}=_0x34db61;if(!_0x57da50||'replaceImageSource'!=_0x57da50['commandName'])return;return{'type':'format','content':o(_0x4dde08,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x337a55{['afterInit'](){const _0x27ee34=this['editor'];if(!_0x27ee34['plugins']['has']('ImageStyleEditing'))return;const _0x10a5b5=_0x27ee34['plugins']['get']('TrackChangesEditing'),_0x386926=_0x27ee34['plugins']['get']('ImageUtils'),_0x276f2f={};_0x10a5b5['enableCommand']('imageStyle',(_0x348ebf,_0x28e572)=>{const _0x10f218=_0x27ee34['plugins']['get']('Users')['me'],_0x1d7993=_0x27ee34['commands']['get']('imageStyle');let _0x14dda4=_0x386926['getClosestSelectedImageElement'](_0x27ee34['model']['document']['selection']),_0x1ba640=_0x27ee34['model']['createRangeOn'](_0x14dda4),_0x3bd416=_0x1d7993['value'];if(_0x3bd416==_0x28e572['value'])return;const _0xf3d118={'commandName':'imageStyle','commandParams':[_0x28e572],'formatGroupId':_0x382bc4()};_0x27ee34['model']['change'](()=>{if(_0x10a5b5['getSuggestions']()['filter'](_0x585c33=>_0x585c33['isInContent']&&_0x10f218==_0x585c33['author']&&('formatBlock'==_0x585c33['type']||'formatInline'==_0x585c33['type'])&&('imageStylePreApply'==_0x585c33['subType']||'imageStylePostApply'==_0x585c33['subType'])&&_0x585c33['getFirstRange']()['isEqual'](_0x1ba640))['forEach'](_0x537cf2=>_0x10a5b5['discardSuggestion'](_0x537cf2['head'])),_0x14dda4=_0x386926['getClosestSelectedImageElement'](_0x27ee34['model']['document']['selection']),_0x1ba640=_0x27ee34['model']['createRangeOn'](_0x14dda4),_0x1d7993['refresh'](),_0x27ee34['commands']['get']('imageTypeInline')['refresh'](),_0x27ee34['commands']['get']('imageTypeBlock')['refresh'](),_0x3bd416=_0x1d7993['value'],_0x3bd416!=_0x28e572['value'])return _0x386926['isInlineImage'](_0x14dda4)&&_0x1d7993['shouldConvertImageType'](_0x28e572['value'],_0x14dda4)?(_0x348ebf({..._0x28e572,'setImageSizes':!0x1}),_0x14dda4=_0x386926['getClosestSelectedImageElement'](_0x27ee34['model']['document']['selection']),void _0x10a5b5['markBlockFormat'](_0x14dda4,{..._0xf3d118,'commandReversedParams':[{'value':_0x3bd416||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x386926['isBlockImage'](_0x14dda4)?_0x10a5b5['markBlockFormat'](_0x14dda4,_0xf3d118,[],'imageStylePostApply'):_0x10a5b5['markInlineFormat'](_0x1ba640,_0xf3d118,'imageStylePostApply'));});});for(const _0x146c7f of _0x27ee34['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x276f2f[_0x146c7f['name']]=_0x146c7f['title']['toLowerCase']();_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x405f6f])=>{_0x386926['setImageNaturalSizeAttributes'](_0x405f6f['getContainedElement']());}),_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4205cf,_0x468ece)=>{_0x10a5b5['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4205cf,{'commandName':_0x468ece['commandName'],'commandParams':_0x468ece['commandReversedParams']});}),_0x10a5b5['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1dc2d5,_0x186eea){if(_0xa83a18(_0x1dc2d5,_0x186eea))return[_0x1dc2d5,_0x186eea];if(_0xa83a18(_0x186eea,_0x1dc2d5))return[_0x186eea,_0x1dc2d5];return null;});const _0x1bbe47=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xa83a18(_0x33dd1e,_0x1da3e3){const _0x83787a=_0x1bbe47['findIndex'](({type:_0x145f64,subType:_0x9f3bcc})=>_0x33dd1e['type']==_0x145f64&&_0x33dd1e['subType']==_0x9f3bcc),_0x4946a5=_0x1bbe47['findIndex'](({type:_0x57ec04,subType:_0x2fe10b})=>_0x1da3e3['type']==_0x57ec04&&_0x1da3e3['subType']==_0x2fe10b);if(_0x83787a<0x0||_0x4946a5<0x0)return!0x1;const _0xfe2f93=_0x33dd1e['getFirstRange'](),_0x1f7ae8=_0x1da3e3['getFirstRange']();if((0x0==_0x83787a||0x1==_0x83787a)&&0x2==_0x4946a5&&_0xfe2f93['isIntersecting'](_0x1f7ae8))return!0x0;if(0x2==_0x83787a&&0x3==_0x4946a5){const _0x3e6530=_0x10a5b5['_findSuggestions'](_0xfe2f93,'insertion')['filter'](({suggestion:_0x387407,meta:_0x5a69f6})=>_0x5a69f6['isOwn']&&'convertInlineImageToBlock'==_0x387407['subType']);if(_0x3e6530['length']>0x1&&_0x1f7ae8['end']['isEqual'](_0xfe2f93['start']))return!0x0;if(0x1==_0x3e6530['length']&&(_0xfe2f93['start']['isEqual'](_0x1f7ae8['end'])||_0xfe2f93['end']['isEqual'](_0x1f7ae8['start'])))return!0x0;}if(0x3==_0x83787a&&0x3==_0x4946a5&&_0xfe2f93['start']['isBefore'](_0x1f7ae8['start'])){const _0x598b41=_0xfe2f93['end']['nodeAfter'],_0x519eb5=_0x1f7ae8['start']['nodeBefore'];return _0x386926['isBlockImage'](_0x598b41)&&_0x598b41===_0x519eb5;}return!0x1;}_0x27ee34['model']['document']['registerPostFixer'](()=>{let _0x5b9253=!0x1;const _0x42cab1=Array['from'](_0x27ee34['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b862c,data:_0x27dcff}of _0x42cab1){const {group:_0x127ab1,type:_0x93c47c,subType:_0x544485,id:_0x3e4ac7}=_0x10a5b5['_splitMarkerName'](_0x5b862c);if('suggestion'==_0x127ab1&&_0x10a5b5['hasSuggestion'](_0x3e4ac7)){if('formatBlock'==_0x93c47c&&('imageStylePreApply'==_0x544485||'imageStylePostApply'==_0x544485)){const _0xc8fcf3=_0x10a5b5['getSuggestion'](_0x3e4ac7);if(_0x27dcff['newRange']){const _0x3fe7a2=_0xc8fcf3['getFirstRange']()['getContainedElement']();if(_0x386926['isBlockImage'](_0x3fe7a2))continue;_0x10a5b5['discardSuggestion'](_0xc8fcf3),_0x5b9253=!0x0;}}if('insertion'==_0x93c47c&&'imageCaption'==_0x544485&&!_0x27dcff['newRange']){const _0x2b0b96=_0x10a5b5['getSuggestion'](_0x3e4ac7);_0x2b0b96['next']&&_0x2b0b96['next']['isInContent']&&(_0x10a5b5['discardSuggestion'](_0x2b0b96['next']),_0x5b9253=!0x0);}}}return _0x5b9253;}),this['_registerLegacyDescription'](_0x276f2f);}['_registerLegacyDescription'](_0x143821){const _0x1f3c81=this['editor'],_0x5f04f1=_0x1f3c81['locale'];_0x1f3c81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5cb2d4=>{if('formatBlock'!=_0x5cb2d4['type']&&'formatInline'!=_0x5cb2d4['type'])return;const {data:_0xaf6eb7}=_0x5cb2d4;if(!_0xaf6eb7||'imageStyle'!=_0xaf6eb7['commandName'])return;const _0x66cf08=_0xaf6eb7['commandParams'][0x0]['value'];return _0x40b3bd('side'===_0x66cf08?o(_0x5f04f1,'FORMAT_SIDE_IMAGE'):_0x143821[_0x66cf08]||_0x66cf08);function _0x40b3bd(_0x369f8d){return{'type':'format','content':o(_0x5f04f1,'*Format:*\x20%0',_0x369f8d)};}});}}class ut extends _0x337a55{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5775bd){super(_0x5775bd),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x270463=this['editor'],_0xcd7851=_0x270463['commands']['get']('importWord'),_0x271103=_0x270463['commands']['get']('trackChanges');_0xcd7851&&(_0xcd7851['on']('execute',(_0x278cea,[,_0x321ac4])=>{this['_trackChangesValueDuringImport']=_0x271103['value'],_0x321ac4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xcd7851,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xcd7851,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x271103['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x270463['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2b7427,_0x2b073b){const {suggestions:_0x3e6d5f}=_0x2b073b,_0x2fc5c4=this['editor']['commands']['get']('trackChanges'),_0x48a0f9=_0x2fc5c4['value'];this['_trackChangesValueDuringImport']!==_0x48a0f9&&(_0x2fc5c4['execute'](),this['_trackChangesExecuted']=!0x0),_0x3e6d5f&&_0x3e6d5f['forEach'](({id:_0x54cd56,type:_0x1f57b7,author:_0x33ac9d,created_at:_0x237b07})=>{const _0xfae163={'id':_0x54cd56,'type':_0x1f57b7,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x33ac9d,'createdAt':_0x237b07?new Date(_0x237b07):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xfae163);});}}class ft extends _0x337a55{['afterInit'](){const _0x265244=this['editor'],_0x95d138=_0x265244['plugins']['get']('TrackChangesEditing');if(_0x265244['plugins']['has']('IndentEditing')&&(_0x95d138['enableCommand']('indent'),_0x95d138['enableCommand']('outdent')),_0x265244['plugins']['has']('IndentBlock')){for(const _0x21c2c9 of['indentBlock','outdentBlock'])_0x95d138['enableDefaultAttributesIntegration'](_0x21c2c9);}const _0x1995a2=_0x265244['locale'];_0x95d138['registerBlockAttribute']('blockIndent'),_0x95d138['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1995a2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58fe5b=this['editor'],_0x1db3c3=_0x58fe5b['locale'],_0x32b763=_0x58fe5b['plugins']['get']('TrackChangesEditing');_0x32b763['descriptionFactory']['registerDescriptionCallback'](_0x446290=>{if('formatBlock'!=_0x446290['type'])return;const {data:_0x3c4944}=_0x446290;if(!_0x3c4944)return;if('indentBlock'!=_0x3c4944['commandName']&&'outdentBlock'!=_0x3c4944['commandName'])return;const _0x3b511c=_0x446290['getItems']()[0x0],_0x327361=_0x32b763['descriptionFactory']['getItemLabel'](_0x3b511c);return'indentBlock'==_0x3c4944['commandName']?{'type':'format','content':o(_0x1db3c3,'*Indent:*\x20%0',_0x327361)}:'outdentBlock'==_0x3c4944['commandName']?{'type':'format','content':o(_0x1db3c3,'*Outdent:*\x20%0',_0x327361)}:void 0x0;});}}class ht extends _0x337a55{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x337a55{['afterInit'](){const _0x6e4693=this['editor'];if(!_0x6e4693['plugins']['has']('LinkEditing'))return;const _0x1d6d7e=_0x6e4693['plugins']['get']('TrackChangesEditing'),_0x729dc8=_0x6e4693['commands']['get']('link');_0x1d6d7e['enableDefaultAttributesIntegration']('link'),_0x1d6d7e['enableDefaultAttributesIntegration']('unlink'),_0x1d6d7e['registerInlineAttribute']('linkHref');for(const _0x4d3c9f of _0x729dc8['manualDecorators'])_0x1d6d7e['registerInlineAttribute'](_0x4d3c9f['id']),_0x1d6d7e['descriptionFactory']['registerAttributeLabel'](_0x4d3c9f['id'],'link\x20('+_0x4d3c9f['label']['toLowerCase']()+')');_0x1d6d7e['descriptionFactory']['registerDescriptionCallback'](_0x44440d=>{if('attribute'!=_0x44440d['type'])return;const {data:_0x33aa64}=_0x44440d;if(!_0x33aa64||'linkHref'!=_0x33aa64['key'])return;const _0x373f71=_0x33aa64['newValue'],_0x3c347b=_0x6e4693['locale'];return{'type':'format','content':null==_0x373f71?o(_0x3c347b,'*Remove\x20link*'):o(_0x3c347b,'*Set\x20link:*\x20%0','\x22'+_0x373f71+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47ad0e=this['editor'],_0x18212c=_0x47ad0e['locale'];_0x47ad0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa6ce89=>{if('formatInline'!=_0xa6ce89['type'])return;const {data:_0x139b33}=_0xa6ce89;if(_0x139b33){if('link'==_0x139b33['commandName']){const _0x31a994=_0x139b33['commandParams'][0x0];return{'type':'format','content':o(_0x18212c,'*Set\x20link:*\x20%0','\x22'+_0x31a994+'\x22')};}return'unlink'==_0x139b33['commandName']?{'type':'format','content':o(_0x18212c,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x337a55{['afterInit'](){const _0x4a9be7=this['editor'],_0x58b63f=_0x4a9be7['locale'];if(!_0x4a9be7['plugins']['has']('LegacyListEditing'))return;const _0x5ed4ff=_0x4a9be7['plugins']['get']('TrackChangesEditing'),_0x41fd0f=_0x4a9be7['plugins']['has']('LegacyTodoListEditing');function _0x330b5d(_0x29868c){return()=>{const _0x341a45=_0x4a9be7['model']['document']['selection'],_0x3e29ab=_0x4a9be7['commands']['get'](_0x29868c);if(_0x3e29ab['value'])return void _0x4a9be7['execute']('paragraph',{});const _0x261fa7=_0x29868c['slice'](0x0,-0x4),_0x417763=function(_0x5ba91e,_0x3d79ce,_0x21bf5f){let _0x3b8a45=Array['from'](_0x5ba91e)['filter'](_0x3cc037=>function(_0x18c949,_0x3402be){return _0x3402be['checkChild'](_0x18c949['parent'],'listItem')&&!_0x3402be['isObject'](_0x18c949);}(_0x3cc037,_0x21bf5f));_0x3b8a45=_0x3b8a45['filter'](_0x658fed=>!_0x658fed['is']('element','listItem')||_0x658fed['getAttribute']('listType')!=_0x3d79ce);const _0x2b5924=new Set();for(const _0x36acf8 of _0x3b8a45)_0x36acf8['is']('element','listItem')?_0x2b5924['add'](Le(_0x36acf8)):_0x2b5924['add'](_0x36acf8);return Array['from'](_0x2b5924);}(_0x341a45['getSelectedBlocks'](),_0x261fa7,_0x4a9be7['model']['schema']);_0x4a9be7['model']['change'](()=>{for(const _0x5f29ff of _0x417763)_0x5ed4ff['markBlockFormat'](_0x5f29ff,{'commandName':_0x29868c,'commandParams':[{'forceValue':!_0x3e29ab['value']}],'formatGroupId':'blockName'},Ee(_0x5f29ff));});};}function _0x34d7b9(_0x1f400a){return()=>{const _0x51acea=function(_0xda212a){let _0x181e92=Array['from'](_0xda212a);const _0x5396c0=_0x181e92['findIndex'](_0x27a1c0=>'listItem'!=_0x27a1c0['name']);return _0x5396c0>-0x1&&(_0x181e92=_0x181e92['slice'](0x0,_0x5396c0)),_0x181e92;}(_0x4a9be7['model']['document']['selection']['getSelectedBlocks']()),_0x2aaff7=_0x4a9be7['model']['createRange'](_0x4a9be7['model']['createPositionAt'](_0x51acea[0x0],'before'),_0x4a9be7['model']['createPositionAt'](_0x51acea[_0x51acea['length']-0x1],'end'));_0x4a9be7['model']['change'](()=>{_0x5ed4ff['markBlockFormat'](_0x2aaff7,{'commandName':_0x1f400a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x4b5070){const _0x3022c4=new Set();for(const _0x15e51c of _0x4b5070){let _0x4b75ff=_0x15e51c['nextSibling'];for(;_0x4b75ff&&_0x4b75ff['getAttribute']('listIndent')>_0x15e51c['getAttribute']('listIndent');)_0x3022c4['add'](_0x4b75ff),_0x4b75ff=_0x4b75ff['nextSibling'];}return Array['from'](_0x3022c4);}(_0x51acea));});};}_0x5ed4ff['enableCommand']('numberedList',_0x330b5d('numberedList')),_0x5ed4ff['enableCommand']('bulletedList',_0x330b5d('bulletedList')),_0x41fd0f&&_0x5ed4ff['enableCommand']('todoList',_0x330b5d('todoList')),_0x5ed4ff['enableCommand']('indentList',_0x34d7b9('indentList')),_0x5ed4ff['enableCommand']('outdentList',_0x34d7b9('outdentList')),_0x41fd0f&&_0x5ed4ff['enableCommand']('checkTodoList',()=>{const _0x4b0f95=_0x4a9be7['commands']['get']('checkTodoList'),_0x23bcc8=Array['from'](_0x4b0f95['_selectedElements']);_0x23bcc8['filter'](_0x598942=>_0x598942['getAttribute']('todoListChecked')!=_0x4b0f95['value']),_0x4a9be7['model']['change'](()=>{for(const _0x48cddf of _0x23bcc8)_0x5ed4ff['markBlockFormat'](_0x48cddf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4b0f95['value']}]});});}),_0x5ed4ff['descriptionFactory']['registerElementLabel']('listItem',_0x2b4519=>o(_0x58b63f,'ELEMENT_LIST_ITEM',_0x2b4519)),_0x5ed4ff['descriptionFactory']['registerDescriptionCallback'](_0x6684ab=>{if('formatBlock'!=_0x6684ab['type']&&'formatInline'!=_0x6684ab['type'])return;const {data:_0x2096b6}=_0x6684ab;if(_0x2096b6){if('numberedList'==_0x2096b6['commandName']||'bulletedList'==_0x2096b6['commandName']||'todoList'==_0x2096b6['commandName'])switch(_0x2096b6['commandName']['replace']('List','')){case'bulleted':return _0x284671(o(_0x58b63f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x284671(o(_0x58b63f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x284671(o(_0x58b63f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2096b6['commandName'])return{'type':'format','content':o(_0x58b63f,'*Indent:*\x20%0',o(_0x58b63f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2096b6['commandName'])return{'type':'format','content':o(_0x58b63f,'*Outdent:*\x20%0',o(_0x58b63f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2096b6['commandName'])return _0x2096b6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x58b63f,'*Check\x20item*')}:{'type':'format','content':o(_0x58b63f,'*Uncheck\x20item*')};}function _0x284671(_0x4239b9){return{'type':'format','content':o(_0x58b63f,'*Change\x20to:*\x20%0',_0x4239b9)};}});}}function Le(_0x305e1a){const _0x1c4096=_0x305e1a['getAttribute']('listIndent');if(0x0==_0x1c4096)return _0x305e1a;let _0x3c18b5=_0x305e1a;for(;_0x305e1a['previousSibling']&&_0x305e1a['previousSibling']['is']('element','listItem');){const _0x31bae1=_0x305e1a['previousSibling']['getAttribute']('listIndent');if(_0x31bae1==_0x1c4096)_0x3c18b5=_0x305e1a['previousSibling'];else{if(_0x31bae1<_0x1c4096)break;}_0x305e1a=_0x305e1a['previousSibling'];}return _0x3c18b5;}function Ee(_0x5db269){const _0x1df6e2=[];if(_0x5db269['is']('element','listItem')&&_0x5db269['getAttribute']('listIndent')>0x0){let _0x10ff44=_0x5db269['nextSibling'];for(;_0x10ff44&&'listItem'==_0x10ff44['name']&&_0x10ff44['getAttribute']('listIndent')==_0x5db269['getAttribute']('listIndent');)_0x1df6e2['push'](_0x10ff44),_0x10ff44=_0x10ff44['nextSibling'];}return _0x1df6e2;}class Q extends _0x337a55{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x16dc03=this['editor']['config']['get']('list.properties'),_0x3cf7ae=this['editor']['plugins']['get']('TrackChangesEditing');_0x16dc03['styles']&&_0x3cf7ae['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x16dc03['reversed']&&_0x3cf7ae['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x16dc03['startIndex']&&_0x3cf7ae['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3cf7ae['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x216682,_0xb20556={}){const _0x261065=this['editor']['plugins']['get']('TrackChangesEditing'),_0xca1667=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x261065['markMultiRangeBlockFormat'](_0xca1667,{'commandName':'listStyle','commandParams':[{'type':_0xb20556['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x167584,_0x208db4={}){const _0x3ef217=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d10ab=this['_getSuggestionBlocks'](_0x175f8a=>_0x175f8a['is']('element','listItem')&&'numbered'===_0x175f8a['getAttribute']('listType'));if(_0x5d10ab['length']<0x1)return;const _0x1f9195=_0x5d10ab['map'](_0x4ce9ef=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4ce9ef,'before'),this['editor']['model']['createPositionAt'](_0x4ce9ef,0x0)));this['editor']['model']['change'](()=>{_0x3ef217['markMultiRangeBlockFormat'](_0x1f9195,{'commandName':'listReversed','commandParams':[{'reversed':_0x208db4['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x472348,_0x1029fe={}){const _0x1924b9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x494e52=this['_getSuggestionBlocks'](_0x248b0b=>_0x248b0b['is']('element','listItem')&&'numbered'===_0x248b0b['getAttribute']('listType'));if(_0x494e52['length']<0x1)return;const _0x46492f=_0x494e52['map'](_0x3c9bc1=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3c9bc1,'before'),this['editor']['model']['createPositionAt'](_0x3c9bc1,0x0)));this['editor']['model']['change'](()=>{_0x1924b9['markMultiRangeBlockFormat'](_0x46492f,{'commandName':'listStart','commandParams':[{'startIndex':_0x1029fe['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5c30d1){if('formatBlock'!=_0x5c30d1['type']&&'formatInline'!=_0x5c30d1['type'])return;const _0x1f2fe7=this['editor']['locale'],{data:_0xc10d69}=_0x5c30d1;if(!_0xc10d69)return;let _0x1d5bfc,_0x91bec0;switch(_0xc10d69['commandName']){case'listStyle':_0x1d5bfc='*Change\x20to:*\x20%0',_0x91bec0={'type':'format','content':o(_0x1f2fe7,_0x1d5bfc,o(_0x1f2fe7,this['_getTranslationKeyForListStyle'](_0xc10d69['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1d5bfc=_0xc10d69['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x91bec0={'type':'format','content':o(_0x1f2fe7,_0x1d5bfc)};break;case'listStart':_0x1d5bfc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x91bec0={'type':'format','content':o(_0x1f2fe7,_0x1d5bfc,_0xc10d69['commandParams'][0x0]['startIndex'])};}return _0x91bec0;}['_getSuggestionBlocksForListStyle'](){const _0x3fc18d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5b81d4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x5b81d4[0x0]?.['is']('element','listItem')&&_0x5b81d4['unshift'](..._0x3fc18d['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x5b81d4[_0x5b81d4['length']-0x1]?.['is']('element','listItem')&&_0x5b81d4['push'](..._0x3fc18d['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x5b81d4=[...new Set(_0x5b81d4)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x5b81d4=_0x5b81d4['filter'](_0x2a0861=>_0x2a0861['is']('element','listItem'))),_0x5b81d4;}['_getSuggestionBlocks'](_0x27bd38){const _0x3aac0d=this['editor']['plugins']['get']('LegacyListUtils');let _0x5e7135=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x27bd38)['map'](_0x3919b7=>{const _0x3d4624=this['editor']['model']['createPositionAt'](_0x3919b7,0x0);return[..._0x3aac0d['getSiblingNodes'](_0x3d4624,'backward'),..._0x3aac0d['getSiblingNodes'](_0x3d4624,'forward')];})['flat']();return _0x5e7135=[...new Set(_0x5e7135)],_0x5e7135;}['_getTranslationKeyForListStyle'](_0x530158){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x530158)||'default')['toUpperCase']()+'_LIST_'+_0x530158['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x337a55{['afterInit'](){const _0x30d5ec=this['editor'];if(!_0x30d5ec['plugins']['has']('MediaEmbedEditing'))return;const _0x2fe331=_0x30d5ec['plugins']['get']('TrackChangesEditing'),_0x336169=_0x30d5ec['locale'];_0x2fe331['enableCommand']('mediaEmbed'),_0x2fe331['descriptionFactory']['registerElementLabel']('media',_0x1e8be0=>o(_0x336169,'ELEMENT_MEDIA',_0x1e8be0)),_0x30d5ec['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5bc3fe,{writer:_0x27ca9a,options:_0x30b0d1})=>{if(_0x30b0d1['showSuggestionHighlights'])return _0x27ca9a['createEmptyElement']('div');},'converterPriority':'high'}),_0x30d5ec['data']['downcastDispatcher']['on']('attribute:url:media',(_0x271e74,_0x31a2b6,_0x2ed258)=>{_0x2ed258['options']['showSuggestionHighlights']&&_0x271e74['stop']();},{'priority':'high'});}}class pt extends _0x337a55{['afterInit'](){const _0x2d5876=this['editor'];_0x2d5876['plugins']['has']('MentionEditing')&&_0x2d5876['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x337a55{['afterInit'](){const _0x4d32a3=this['editor'];if(!_0x4d32a3['plugins']['has']('MergeFieldsEditing'))return;const _0x4ca395=_0x4d32a3['plugins']['get']('TrackChangesEditing'),_0x99f93c=_0x4d32a3['locale'];_0x4ca395['enableCommand']('insertMergeField'),_0x4ca395['enableCommand']('insertMergeFieldBlock'),_0x4ca395['enableCommand']('insertMergeFieldImage'),_0x4ca395['descriptionFactory']['registerElementLabel']('mergeField',_0xc52291=>o(_0x99f93c,'ELEMENT_MERGE_FIELD',_0xc52291)),_0x4ca395['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x18c7f7=>o(_0x99f93c,'ELEMENT_MERGE_FIELD',_0x18c7f7)),_0x4ca395['descriptionFactory']['registerDescriptionCallback'](_0x57f621=>{if('insertion'!=_0x57f621['type']&&'deletion'!=_0x57f621['type'])return;const _0x587b67=_0x57f621['getContainedElement']();if(null==_0x587b67)return;const _0x145c49=_0x4d32a3['plugins']['get']('MergeFieldsEditing');let _0x517799;switch(_0x145c49['getMergeFieldType'](_0x587b67)){case null:return;case'image':{const _0x2371b1=_0x145c49['unwrapAffixes'](_0x587b67['getAttribute']('src'));_0x517799=_0x145c49['getLabel'](_0x2371b1)||_0x2371b1;break;}default:{const _0x33bb5e=_0x587b67['getAttribute']('id');_0x517799=_0x145c49['getLabel'](_0x33bb5e)||_0x33bb5e;break;}}return'insertion'==_0x57f621['type']?{'type':'insertion','content':o(_0x99f93c,'*Insert:*\x20%0','\x22'+_0x517799+'\x22\x20'+o(_0x99f93c,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x99f93c,'*Remove:*\x20%0','\x22'+_0x517799+'\x22\x20'+o(_0x99f93c,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x337a55{['afterInit'](){const _0x46c612=this['editor'],_0x2b7bc2=_0x46c612['plugins']['get']('TrackChangesEditing');_0x46c612['plugins']['has']('MultiLevelList')&&(_0x2b7bc2['enableDefaultAttributesIntegration']('multiLevelList'),_0x2b7bc2['registerBlockAttribute']('listMarkerStyle'),_0x2b7bc2['descriptionFactory']['registerDescriptionCallback'](_0x2a8d27=>this['handleDescriptions'](_0x2a8d27)));}['handleDescriptions'](_0x4ab5dd){const _0x5c71e0=this['editor']['locale'],{data:_0x5103cc}=_0x4ab5dd,_0x3f6cb2={'type':'format','content':''};if(_0x5103cc&&'listMarkerStyle'==_0x5103cc['key']){if(!_0x5103cc['oldValue'])return{'type':'format','content':o(_0x5c71e0,'*Set\x20format:*\x20%0',o(_0x5c71e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5103cc['newValue']+')'};if(!_0x5103cc['newValue']){let _0x298e5a=_0x4ab5dd['head'];for(;_0x298e5a;){if(_0x298e5a['data']&&'listType'==_0x298e5a['data']['key']&&_0x298e5a['data']['newValue'])return _0x3f6cb2;_0x298e5a=_0x298e5a['next'];}return{'type':'format','content':o(_0x5c71e0,'*Remove\x20format:*\x20%0',o(_0x5c71e0,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5103cc['oldValue']+')'};}}}}class bt extends _0x337a55{['afterInit'](){const _0x570252=this['editor'];if(!_0x570252['plugins']['has']('PageBreakEditing'))return;_0x570252['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x281213=_0x570252['plugins']['get']('TrackChangesEditing'),_0x3b150f=_0x570252['locale'];_0x281213['descriptionFactory']['registerElementLabel']('pageBreak',_0x207268=>o(_0x3b150f,'ELEMENT_PAGE_BREAK',_0x207268));}}class yt extends _0x337a55{['afterInit'](){const _0x487774=this['editor'];if(!_0x487774['plugins']['has']('Paragraph'))return;const _0x44b5b9=_0x487774['locale'],_0x1a2133=_0x487774['plugins']['get']('TrackChangesEditing');_0x1a2133['descriptionFactory']['registerElementLabel']('paragraph',_0x665dbe=>o(_0x44b5b9,'ELEMENT_PARAGRAPH',_0x665dbe)),_0x1a2133['enableDefaultAttributesIntegration']('paragraph'),_0x1a2133['enableCommand']('insertParagraph'),_0x487774['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x487774),{'priority':'highest'}),_0x487774['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x151e1c,_0x4ff1ab,_0x2c9d1f)=>{_0x2c9d1f['options']['showSuggestionHighlights']&&nr(_0x487774,{'showActiveMarker':!0x1})(_0x151e1c,_0x4ff1ab,_0x2c9d1f);},{'priority':'highest'});const _0x1d9d57=_0x1a2133['descriptionFactory'];_0x1d9d57['registerDescriptionCallback'](_0x973266=>{if('insertion'!==_0x973266['type'])return;const {start:_0x124fa5,end:_0xfb11c8}=_0x973266['getFirstRange']();if(!_0x124fa5['isTouching'](_0xfb11c8)||!_0x124fa5['nodeAfter'])return;const _0x233d7e=_0x487774['model']['schema'],_0x5dc2af=_0x124fa5['nodeAfter'];return _0x233d7e['isBlock'](_0x5dc2af)&&!_0x233d7e['isLimit'](_0x5dc2af)&&_0x233d7e['checkChild'](_0x5dc2af,'$text')?{'type':'insertion','content':o(_0x44b5b9,'*Insert:*\x20%0',_0x1d9d57['getItemLabel'](_0x5dc2af,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42f561=this['editor'],_0x324854=_0x42f561['locale'];_0x42f561['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f10fe=>{if('formatBlock'!=_0x1f10fe['type'])return;const {data:_0x412c18}=_0x1f10fe;return _0x412c18&&'paragraph'==_0x412c18['commandName']?{'type':'format','content':o(_0x324854,'*Change\x20to:*\x20%0',o(_0x324854,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c2742,{showActiveMarker:_0x4deeba=!0x0}={}){return(_0x285280,_0x545197,_0x30db21)=>{const _0x36778b=_0x3c2742['plugins']['get']('TrackChangesEditing'),_0xdcc282=_0x545197['markerRange']['start'],_0x49af75=_0x545197['markerRange']['end'],_0x47acf9=_0x3c2742['model']['schema'];if(!_0xdcc282['isTouching'](_0x49af75)||!_0xdcc282['nodeAfter'])return;const _0x416a7c=_0xdcc282['nodeAfter'];if(_0x47acf9['isBlock'](_0x416a7c)&&!_0x47acf9['isLimit'](_0x416a7c)&&_0x47acf9['checkChild'](_0x416a7c,'$text')){if(!_0x30db21['consumable']['consume'](_0x545197['markerRange'],_0x285280['name']))return;const {authorId:_0x430f98}=_0x36778b['_splitMarkerName'](_0x545197['markerName']),_0x4f5861=_0x30db21['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x430f98}),_0x5b332d=_0x30db21['mapper']['toViewPosition'](_0x49af75);_0x4deeba&&_0x36778b['activeMarkers']['includes'](_0x545197['markerName'])&&_0x30db21['writer']['addClass']('ck-suggestion-marker--active',_0x4f5861),_0x30db21['writer']['insert'](_0x5b332d,_0x4f5861),_0x30db21['mapper']['bindElementToMarker'](_0x4f5861,_0x545197['markerName']);}};}class jt extends _0x337a55{['afterInit'](){const _0x166767=this['editor'];_0x166767['commands']['get']('replaceSource')&&_0x166767['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x337a55{['afterInit'](){const _0x1817c9=this['editor'];if(!_0x1817c9['plugins']['has']('RemoveFormatEditing'))return;_0x1817c9['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x295301=this['editor'];_0x295301['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f21e=>{if('formatBlock'!=_0x45f21e['type']&&'formatInline'!=_0x45f21e['type'])return;const {data:_0x1f98ea}=_0x45f21e;return _0x1f98ea&&'removeFormat'==_0x1f98ea['commandName']?{'type':'format','content':o(_0x295301['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x337a55{['afterInit'](){const _0x2404f8=this['editor'];if(!_0x2404f8['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2a2fe1=_0x2404f8['plugins']['get']('TrackChangesEditing');_0x2a2fe1['enableCommand']('goToPreviousRestrictedEditingException'),_0x2a2fe1['enableCommand']('goToNextRestrictedEditingException');const _0x502f66=_0x2404f8['plugins']['get']('RestrictedEditingModeEditing');_0x502f66['enableCommand']('trackChanges'),_0x502f66['enableCommand']('acceptSuggestion'),_0x502f66['enableCommand']('discardSuggestion'),_0x502f66['enableCommand']('acceptAllSuggestions'),_0x502f66['enableCommand']('discardAllSuggestions'),_0x502f66['enableCommand']('acceptSelectedSuggestions'),_0x502f66['enableCommand']('discardSelectedSuggestions');}}class It extends _0x337a55{static get['requires'](){return[_0x41ace4];}['init'](){const _0xd6bac9=this['editor'],_0x3032e2=_0xd6bac9['plugins']['get']('TrackChangesEditing');_0x3032e2['enableCommand']('shiftEnter'),_0xd6bac9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xd6bac9),{'priority':'high'}),_0xd6bac9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xd6bac9),{'priority':'high'}),_0xd6bac9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1eb3d7,_0x4773c0,_0x268e1e)=>{_0x268e1e['options']['showSuggestionHighlights']&&je(_0xd6bac9,{'showActiveMarker':!0x1})(_0x1eb3d7,_0x4773c0,_0x268e1e);}),_0x3032e2['descriptionFactory']['registerElementLabel']('softBreak',_0x48ff25=>o(_0xd6bac9['locale'],'ELEMENT_LINE_BREAK',_0x48ff25));}}function je(_0x24b2a,{showActiveMarker:_0x14be98=!0x0}={}){return(_0x13a720,_0xd6f1b1,_0x284ab1)=>{const _0x37cde7=_0x24b2a['plugins']['get']('TrackChangesEditing');if(!_0x284ab1['consumable']['test'](_0xd6f1b1['markerRange'],_0x13a720['name']))return;const _0x3e5392=_0x24b2a['model'];for(const _0x145b51 of _0xd6f1b1['markerRange']['getItems']()){if(!_0x145b51['is']('element','softBreak'))continue;const _0x12920e='deletion'==_0xd6f1b1['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x11ae49}=_0x37cde7['_splitMarkerName'](_0xd6f1b1['markerName']),_0x3b7c77=_0x284ab1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12920e,'data-author-id':_0x11ae49}),_0x4b3d87=_0x284ab1['mapper']['toViewPosition'](_0x3e5392['createPositionBefore'](_0x145b51));_0x14be98&&_0x37cde7['activeMarkers']['includes'](_0xd6f1b1['markerName'])&&_0x284ab1['writer']['addClass']('ck-suggestion-marker--active',_0x3b7c77),_0x284ab1['writer']['insert'](_0x4b3d87,_0x3b7c77),_0x284ab1['mapper']['bindElementToMarker'](_0x3b7c77,_0xd6f1b1['markerName']);}};}class vt extends _0x337a55{['afterInit'](){const _0x1f389e=this['editor'],_0xddbc27=_0x1f389e['model'],_0x4e8ed5=_0x1f389e['locale'];if(!_0x1f389e['plugins']['has']('StandardEditingModeEditing'))return;const _0x407819=_0x1f389e['plugins']['get']('TrackChangesEditing'),_0x866832='restrictedEditingException',_0x3aabfd=_0x1f389e['commands']['get'](_0x866832);_0x407819['enableCommand'](_0x866832,(_0x4e60cf,_0x41d6f8={})=>{const _0x4dde79=_0xddbc27['document']['selection'];if(_0x4dde79['isCollapsed'])return void _0x4e60cf(_0x41d6f8);const _0x52356c=void 0x0!==_0x41d6f8['forceValue']?_0x41d6f8['forceValue']:!_0x3aabfd['value'];_0xddbc27['change'](()=>{const _0x44676b=Array['from'](_0x4dde79['getRanges']());for(const _0x4fb5c9 of _0x44676b){const _0x4e3ea5=_0x52356c?[_0x4fb5c9]:io(_0x866832,_0x4fb5c9,_0xddbc27);for(const _0x567cdf of _0x4e3ea5)_0x407819['markInlineFormat'](_0x567cdf,{'commandName':_0x866832,'commandParams':[{'forceValue':_0x52356c}]});}});}),_0x407819['descriptionFactory']['registerDescriptionCallback'](_0x1bda84=>{if('formatBlock'!=_0x1bda84['type']&&'formatInline'!=_0x1bda84['type'])return;const {data:_0x4974b7}=_0x1bda84;return _0x4974b7&&_0x4974b7['commandName']==_0x866832?_0x4974b7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4e8ed5,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4e8ed5,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x337a55{['afterInit'](){const _0x2ce548=this['editor'];if(!_0x2ce548['plugins']['has']('Style')||!_0x2ce548['plugins']['has']('DataSchema'))return;const _0x2113e7=_0x2ce548['plugins']['get']('TrackChangesEditing'),_0x22bbbe=_0x2ce548['locale'],_0x311f26=_0x2ce548['config']['get']('style')||{},_0x4769f7=_0x2ce548['plugins']['get']('GeneralHtmlSupport'),_0x59da38=_0x2ce548['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2ce548['plugins']['get']('DataSchema'),_0x311f26['definitions']);_0x2113e7['enableDefaultAttributesIntegration']('style');const _0x3d2ec5=new Set();for(const _0x34486a of _0x59da38['block']){const _0x3892a5=_0x4769f7['getGhsAttributeNameForElement'](_0x34486a['element']);_0x3d2ec5['add'](_0x3892a5);}const _0x31b326=new Set();for(const _0xce6caf of _0x59da38['inline']){const _0x36d0e0=_0x4769f7['getGhsAttributeNameForElement'](_0xce6caf['element']);_0x31b326['add'](_0x36d0e0);for(const _0x4890b4 of _0xce6caf['ghsAttributes'])_0x31b326['add'](_0x4890b4);}for(const _0x8f1b80 of _0x3d2ec5)_0x2113e7['registerBlockAttribute'](_0x8f1b80),_0x2113e7['descriptionFactory']['registerAttributeLabel'](_0x8f1b80,o(_0x22bbbe,'FORMAT_STYLE'));for(const _0x542f24 of _0x31b326)_0x2113e7['registerInlineAttribute'](_0x542f24),_0x2113e7['descriptionFactory']['registerAttributeLabel'](_0x542f24,o(_0x22bbbe,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dadc7=this['editor'],_0x4036d5=_0x4dadc7['locale'];_0x4dadc7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x413c5b=>{if('formatBlock'!=_0x413c5b['type']&&'formatInline'!=_0x413c5b['type'])return;const {data:_0x3627ba}=_0x413c5b;return _0x3627ba&&'style'===_0x3627ba['commandName']?_0x3627ba['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4036d5,'*Set\x20format:*\x20%0',_0x3627ba['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4036d5,'*Remove\x20format:*\x20%0',_0x3627ba['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x337a55{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x1f7c62){super(_0x1f7c62),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xb64aae=this['editor'],_0x403825=_0xb64aae['model']['document']['selection'];if(!_0xb64aae['plugins']['has']('TableEditing'))return;const _0x458441=_0xb64aae['locale'],_0x229c55=_0xb64aae['plugins']['get']('TrackChangesEditing'),_0x3be396=_0xb64aae['plugins']['get']('TableUtils');_0x229c55['descriptionFactory']['registerElementLabel']('table',_0x406036=>o(_0x458441,'ELEMENT_TABLE',_0x406036)),this['_setupColumnsRowsFixing'](),_0x229c55['enableCommand']('insertTable'),_0x229c55['enableCommand']('selectTableRow'),_0x229c55['enableCommand']('selectTableColumn');for(const _0x16cd13 of['insertTableRowAbove','insertTableRowBelow']){const _0x460fa8=_0xb64aae['commands']['get'](_0x16cd13);_0x229c55['enableCommand'](_0x16cd13,_0x59dc38=>{_0xb64aae['model']['change'](_0x4bbd95=>{_0x59dc38();const _0xd48b99='above'===_0x460fa8['order'],_0x4f7764=_0x3be396['getSelectionAffectedTableCells'](_0x403825),_0x35d058=_0x3be396['getRowIndexes'](_0x4f7764),_0x1e3f54=_0xd48b99?_0x35d058['first']-0x1:_0x35d058['last']+0x1,_0x24e9a8=_0x4f7764[0x0]['findAncestor']('table'),_0x2d6c70=_0x3be396['createTableWalker'](_0x24e9a8,{'startRow':_0x1e3f54,'endRow':_0x1e3f54}),_0x19256e=Array['from'](_0x2d6c70)['map'](_0x1844a6=>_0x4bbd95['createRangeOn'](_0x1844a6['cell']));_0x229c55['markMultiRangeInsertion'](_0x19256e,'tableRow');});});}for(const _0x53874b of['insertTableColumnLeft','insertTableColumnRight']){const _0xbf3c3c=_0xb64aae['commands']['get'](_0x53874b);_0x229c55['enableCommand'](_0x53874b,_0x3815cc=>{_0xb64aae['model']['change'](_0x4f6ef2=>{_0x3815cc();const _0x380d09='left'===_0xbf3c3c['order'],_0x53c402=_0x3be396['getSelectionAffectedTableCells'](_0x403825),_0x4e9271=_0x3be396['getColumnIndexes'](_0x53c402),_0x2b4b94=_0x380d09?_0x4e9271['first']-0x1:_0x4e9271['last']+0x1,_0x24198a=_0x53c402[0x0]['findAncestor']('table'),_0x2079a9=_0x3be396['createTableWalker'](_0x24198a,{'startRow':0x0,'column':_0x2b4b94,'includeAllSlots':!0x1}),_0x821231=Array['from'](_0x2079a9)['map'](_0x5b4f22=>_0x4f6ef2['createRangeOn'](_0x5b4f22['cell']));_0x229c55['markMultiRangeInsertion'](_0x821231,'tableColumn');});});}for(const _0x6da7aa of['removeTableRow','removeTableColumn']){const _0x5a4746=_0x6da7aa['substr'](0xb),_0x26e10f=_0x5a4746['toLowerCase'](),_0x4122fd=_0x26e10f['substr'](0x0,0x3)+'span',_0x1964d8='table'+_0x5a4746,_0x32324a='min'+_0x5a4746,_0x373c3e='max'+_0x5a4746;_0x229c55['enableCommand'](_0x6da7aa,()=>{_0xb64aae['model']['change'](_0x4164b1=>{const _0x296fc8=_0x3be396['getSelectionAffectedTableCells'](_0x403825),_0x4885cb=_0x296fc8[0x0]['findAncestor']('table');let _0x54fee3;if('removeTableRow'==_0x6da7aa){const _0x2555f3=_0x3be396['getRowIndexes'](_0x296fc8);_0x54fee3={'startRow':_0x2555f3['first'],'endRow':_0x2555f3['last'],'includeAllSlots':!0x0};}else{const _0x11a90d=_0x3be396['getColumnIndexes'](_0x296fc8);_0x54fee3={'startColumn':_0x11a90d['first'],'endColumn':_0x11a90d['last'],'includeAllSlots':!0x0};}const _0x88aa7b=_0x3be396['createTableWalker'](_0x4885cb,_0x54fee3),_0x206de2=Array['from'](_0x88aa7b)['map'](({cell:_0x2e00ff})=>_0x2e00ff),_0x22cb92=Ne(_0x206de2['filter'](_0x2d48c2=>_0x2d48c2['hasAttribute'](_0x4122fd))),_0x519831=Ne(_0x206de2['filter'](_0x3c2087=>!_0x3c2087['hasAttribute'](_0x4122fd)))['map'](_0x4b6505=>_0x4164b1['createRangeOn'](_0x4b6505)),_0x4aa692=_0x229c55['markMultiRangeDeletion'](_0x519831,_0x1964d8);if(_0x4aa692&&('tableRow'==_0x4aa692['subType']||'tableColumn'==_0x4aa692['subType'])){const _0x281448=this['_getSuggestionCoords'](_0x4aa692);for(const _0x284bd4 of _0x22cb92){const _0x57f7fc=_0x4164b1['createRangeOn'](_0x284bd4),_0x1a7d7d=_0x3be396['getCellLocation'](_0x284bd4),_0xafe1c4=_0x284bd4['getAttribute'](_0x4122fd)-0x1,_0x1cc494=_0x281448[_0x32324a],_0x31a457=_0x281448[_0x373c3e];_0x1cc494<=_0x1a7d7d[_0x26e10f]&&_0x1a7d7d[_0x26e10f]+_0xafe1c4<=_0x31a457&&_0x4aa692['addRange'](_0x57f7fc);}}});});}function _0x13e425(_0x445a33){const _0x172892=Array['from'](_0x403825['getRanges']())['map'](_0x5f4df9=>_0x3d77a4['fromRange'](_0x5f4df9));_0xb64aae['model']['change'](_0x204597=>{const _0x789c9=_0x204597['batch'];_0x445a33=_0x445a33['filter'](_0x35957d=>'$graveyard'!=_0x35957d['root']['rootName']),_0x204597['setSelection'](_0x445a33),_0xb64aae['commands']['get']('removeTableRow')['refresh'](),_0xb64aae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xb64aae['model']['enqueueChange'](()=>{_0xb64aae['model']['enqueueChange'](_0x789c9,_0x5c02db=>{const _0x2edb44=_0x172892['filter'](_0x3c3690=>'$graveyard'!=_0x3c3690['root']['rootName']);_0x2edb44['length']>0x0&&_0x5c02db['setSelection'](_0x2edb44);for(const _0x55871d of _0x172892)_0x55871d['detach']();});});});}function _0x3ff560(_0x47bde9){_0xb64aae['model']['change'](_0x50a052=>{const _0x2ceeee=Array['from'](_0x403825['getRanges']())['map'](_0x1070f0=>_0x3d77a4['fromRange'](_0x1070f0)),_0x37d110=[];for(const _0x20fea2 of _0x47bde9)for(const _0x52fd30 of _0x20fea2['getItems']({'shallow':!0x0}))_0x37d110['push'](_0x52fd30);for(const _0x18c652 of _0x37d110)'$graveyard'!=_0x18c652['root']['rootName']&&(_0x50a052['setSelection'](_0x50a052['createPositionAt'](_0x18c652,0x0)),_0xb64aae['commands']['get']('removeTableColumn')['refresh'](),_0xb64aae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4c9524=_0x2ceeee['filter'](_0x55c4b4=>'$graveyard'!=_0x55c4b4['root']['rootName']);_0x4c9524['length']>0x0&&_0x50a052['setSelection'](_0x4c9524);for(const _0x3975b6 of _0x2ceeee)_0x3975b6['detach']();});}function _0x1b91bd(_0x5dbcfe,_0x2b522d){return _0x2b522d['every'](_0x225b0c=>_0x5dbcfe['some'](_0x237138=>_0x237138['end']['isEqual'](_0x225b0c['start'])||_0x225b0c['end']['isEqual'](_0x237138['start'])));}function _0x57ad15(_0x465743,_0x35ddfc){return!_0x465743['some'](_0x4bd98a=>_0x35ddfc['some'](_0x540792=>_0x4bd98a['isIntersecting'](_0x540792)))&&_0x465743['some'](_0x5a0c0f=>_0x35ddfc['some'](_0x5b98d6=>_0x5a0c0f['end']['isTouching'](_0x5b98d6['start'])));}_0xb64aae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2a0a79,_0x37534d,_0x5a2b7d)=>{if(!_0x5a2b7d['options']['showSuggestionHighlights'])return;const _0x28dec2=_0x37534d['item'];if(!_0x28dec2)return;const _0x1a6921=_0x5a2b7d['mapper']['toViewElement'](_0x28dec2);function _0x184857(_0x2fec40){return Array['isArray'](_0x2fec40)?_0x2fec40:[_0x2fec40];}_0x1a6921&&'tableCell'===_0x28dec2['name']&&_0x42648a(_0x1a6921,_0x5a2b7d['writer'],(_0x11e55b,_0x259cba,_0x8f9003)=>_0x8f9003['addClass'](_0x184857(_0x259cba['classes']),_0x11e55b),(_0x291224,_0x2f48d9,_0x49a4b3)=>_0x49a4b3['removeClass'](_0x184857(_0x2f48d9['classes']),_0x291224));},{'priority':'highest'}),_0x229c55['descriptionFactory']['registerDescriptionCallback'](_0x119ece=>{if('insertion'!=_0x119ece['type']&&'deletion'!=_0x119ece['type'])return;const _0x2efe20=_0x119ece['getContainedElement']();if(null!=_0x2efe20&&_0x2efe20['is']('element','table')){if('insertion'==_0x119ece['type']){const _0x169a68=_0x119ece['getItems']()['filter'](_0x5999f8=>_0x5999f8['is']('$textProxy'))['map'](_0x19b80f=>_0x19b80f['data']);if(_0x169a68['length'])return{'type':'insertion','content':o(_0x458441,'*Insert:*\x20%0',o(_0x458441,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x169a68['join']('\x20')+'\x22'))};}if('deletion'==_0x119ece['type']){const _0x48c36b=_0x119ece['getItems']()['filter'](_0x4a30b6=>_0x4a30b6['is']('$textProxy'))['map'](_0xf6d5ad=>_0xf6d5ad['data']);if(_0x48c36b['length'])return{'type':'deletion','content':o(_0x458441,'*Remove:*\x20%0',o(_0x458441,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x48c36b['join']('\x20')+'\x22'))};}}}),_0x229c55['descriptionFactory']['registerDescriptionCallback'](_0x6ce735=>{if('tableRow'==_0x6ce735['subType']){const _0xa6be37=_0x6ce735['getItems']()['filter'](_0x4ae198=>_0x4ae198['is']('$textProxy'))['map'](_0x129ac7=>_0x129ac7['data']),_0x159886=this['_getSuggestionCoords'](_0x6ce735),_0x1aee36=_0x159886['maxRow']-_0x159886['minRow']+0x1;if('insertion'==_0x6ce735['type'])return _0xa6be37['length']?{'type':'insertion','content':o(_0x458441,'*Insert:*\x20%0',o(_0x458441,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1aee36,'\x22'+_0xa6be37['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x458441,'*Insert:*\x20%0',o(_0x458441,'ELEMENT_TABLE_ROW',_0x1aee36))};if('deletion'==_0x6ce735['type'])return _0xa6be37['length']?{'type':'deletion','content':o(_0x458441,'*Remove:*\x20%0',o(_0x458441,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1aee36,'\x22'+_0xa6be37['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x458441,'*Remove:*\x20%0',o(_0x458441,'ELEMENT_TABLE_ROW',_0x1aee36))};}if('tableColumn'==_0x6ce735['subType']){const _0x29805b=_0x6ce735['getItems']()['filter'](_0xc1d7a=>_0xc1d7a['is']('$textProxy'))['map'](_0x5a7982=>_0x5a7982['data']),_0x15809c=this['_getSuggestionCoords'](_0x6ce735),_0x52952e=_0x15809c['maxColumn']-_0x15809c['minColumn']+0x1;if('insertion'==_0x6ce735['type'])return _0x29805b['length']?{'type':'insertion','content':o(_0x458441,'*Insert:*\x20%0',o(_0x458441,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x52952e,'\x22'+_0x29805b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x458441,'*Insert:*\x20%0',o(_0x458441,'ELEMENT_TABLE_COLUMN',_0x52952e))};if('deletion'==_0x6ce735['type'])return _0x29805b['length']?{'type':'deletion','content':o(_0x458441,'*Remove:*\x20%0',o(_0x458441,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x52952e,'\x22'+_0x29805b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x458441,'*Remove:*\x20%0',o(_0x458441,'ELEMENT_TABLE_COLUMN',_0x52952e))};}}),_0x229c55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x13e425),_0x229c55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x13e425),_0x229c55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3ff560),_0x229c55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3ff560),_0x229c55['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1b91bd),_0x229c55['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1b91bd),_0x229c55['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x57ad15),_0x229c55['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x57ad15);}['_acceptFormatSuggestionCallbackFactory'](){const _0x20edd2=this['editor'],_0xdc0a88=_0x20edd2['model']['document']['selection'];return(_0x3444fa,_0x4b6785)=>{_0x20edd2['model']['change'](_0x55c112=>{const {commandName:_0x337cc3,commandParams:_0x577a67}=_0x4b6785;let _0x2b40a2=_0x3444fa[0x0]['end']['nodeBefore'];_0x577a67&&_0x577a67[0x0]&&!0x1===_0x577a67[0x0]['forceValue']&&(_0x2b40a2=_0x3444fa[0x0]['start']['nodeAfter']);const _0x492bb7=_0x55c112['createRangeIn'](_0x2b40a2);if('$graveyard'==_0x492bb7['root']['rootName'])return;const _0x352de2=Array['from'](_0xdc0a88['getRanges']())['map'](_0x124868=>_0x3d77a4['fromRange'](_0x124868));_0x55c112['setSelection'](_0x492bb7),_0x20edd2['commands']['get'](_0x337cc3)['refresh'](),_0x577a67['push']({'forceDefaultExecution':!0x0}),_0x20edd2['execute'](_0x337cc3,..._0x577a67);const _0x3bd84b=_0x352de2['filter'](_0x2f0b38=>'$graveyard'!=_0x2f0b38['root']['rootName']);_0x3bd84b['length']>0x0&&_0x55c112['setSelection'](_0x3bd84b);for(const _0x38e14c of _0x352de2)_0x38e14c['detach']();});};}['_getCoordsForCells'](_0x53bbf2){const _0x121240=this['editor']['plugins']['get']('TableUtils');let _0x14984c=Number['MAX_SAFE_INTEGER'],_0x4820b2=Number['MIN_SAFE_INTEGER'],_0x472ae4=Number['MAX_SAFE_INTEGER'],_0x3700a8=Number['MIN_SAFE_INTEGER'];for(const _0x1f5512 of _0x53bbf2){if('$graveyard'==_0x1f5512['root']['rootName'])continue;const {row:_0x4e4c46,column:_0x1adc5c}=_0x121240['getCellLocation'](_0x1f5512),_0x5c6a7e=_0x1f5512['hasAttribute']('rowspan')?_0x1f5512['getAttribute']('rowspan')-0x1:0x0,_0x42de71=_0x1f5512['hasAttribute']('colspan')?_0x1f5512['getAttribute']('colspan')-0x1:0x0;_0x14984c=_0x4e4c46<_0x14984c?_0x4e4c46:_0x14984c,_0x4820b2=_0x4e4c46+_0x5c6a7e>_0x4820b2?_0x4e4c46+_0x5c6a7e:_0x4820b2,_0x472ae4=_0x1adc5c<_0x472ae4?_0x1adc5c:_0x472ae4,_0x3700a8=_0x1adc5c+_0x42de71>_0x3700a8?_0x1adc5c+_0x42de71:_0x3700a8;}return{'minRow':_0x14984c,'maxRow':_0x4820b2,'minColumn':_0x472ae4,'maxColumn':_0x3700a8};}['_setupColumnsRowsFixing'](){const _0x1afb9c=this['editor'],_0x23c037=_0x1afb9c['plugins']['get']('TrackChangesEditing'),_0x54a7c8=_0x1afb9c['plugins']['get']('TableUtils');_0x1afb9c['model']['document']['on']('change:data',()=>{const _0x569ddb=Array['from'](_0x1afb9c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41cd1f,data:_0x367087}of _0x569ddb){const {group:_0xe11e97,id:_0x282f5f,subType:_0x2e3f64}=_0x23c037['_splitMarkerName'](_0x41cd1f);if('suggestion'!=_0xe11e97)continue;if(null!=_0x367087['oldRange'])continue;const _0x64c0d0=_0x23c037['getSuggestion'](_0x282f5f);this['_tablePostFixingSubtypes']['includes'](_0x2e3f64)&&this['_tableSuggestions']['add'](_0x64c0d0);}},{'priority':'low'});const _0x28950b=(_0x25b335,_0x429718)=>{let _0x23bed4=!0x1;const _0xff2cc0=_0x429718['createRangeOn'](_0x25b335),_0x240321=_0x25b335['findAncestor']('table'),_0x1fc36d=_0x54a7c8['getCellLocation'](_0x25b335);for(const _0x4cfbcb of this['_tableSuggestions']){const _0x5ddc53=_0x4cfbcb['subType'],_0x4b464b=_0x5ddc53['startsWith']('tablePaste'),_0x1e1c1d=_0x5ddc53['substr'](_0x4b464b?0xa:0x5),_0xbc3288=_0x1e1c1d['toLowerCase'](),_0x2e48f8=_0xbc3288['substr'](0x0,0x3)+'span',_0x3b7d49='min'+_0x1e1c1d,_0x2aae25='max'+_0x1e1c1d;if(!_0x4cfbcb['isInContent'])continue;if(_0x240321!=_0x4cfbcb['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4cfbcb['isIntersectingWithRange'](_0xff2cc0))continue;const _0x5ecf32=_0x25b335['hasAttribute'](_0x2e48f8)?_0x25b335['getAttribute'](_0x2e48f8)-0x1:0x0,_0x1151d3=this['_getSuggestionCoords'](_0x4cfbcb),_0x528f07=_0x1151d3[_0x3b7d49],_0x234d72=_0x1151d3[_0x2aae25];_0x528f07<=_0x1fc36d[_0xbc3288]&&_0x1fc36d[_0xbc3288]+_0x5ecf32<=_0x234d72&&(_0x4cfbcb['addRange'](_0xff2cc0),_0x23bed4=!0x0);}return _0x23bed4;};_0x1afb9c['model']['document']['registerPostFixer'](_0x34b466=>{let _0x71fc3c=!0x1;for(const _0x4889b9 of _0x1afb9c['model']['document']['differ']['getChanges']())if('insert'==_0x4889b9['type']){if('tableRow'==_0x4889b9['name']){for(const _0x2d857f of _0x4889b9['position']['nodeAfter']['getChildren']())_0x71fc3c=_0x71fc3c||_0x28950b(_0x2d857f,_0x34b466);}else'tableCell'==_0x4889b9['name']&&(_0x71fc3c=_0x71fc3c||_0x28950b(_0x4889b9['position']['nodeAfter'],_0x34b466));}return _0x71fc3c;});}['_getSuggestionCoords'](_0x52531a){return this['_getCoordsForCells'](_0x52531a['getRanges']()['map'](_0x41b1ac=>_0x41b1ac['start']['nodeAfter']));}}function Ne(_0x597705){return Array['from'](new Set(_0x597705)['values']());}class Nt extends _0x337a55{static get['requires'](){return[Ct];}['afterInit'](){const _0x29227f=this['editor'],_0x159734=_0x29227f['model']['document']['selection'],_0x31859e=_0x29227f['locale'];if(!_0x29227f['plugins']['has']('TableEditing'))return;const _0x28f751=_0x29227f['plugins']['get']('TrackChangesEditing'),_0x18f654=_0x29227f['plugins']['get']('TableUtils'),_0x2862e4=_0x29227f['plugins']['get'](Ct);_0x2862e4['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x28f751['enableCommand']('mergeTableCells',()=>{const _0x23e336=_0x18f654['getSelectionAffectedTableCells'](_0x29227f['model']['document']['selection']);_0x29227f['model']['change'](()=>{_0x28f751['markMultiRangeBlockFormat'](_0x23e336,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x29227f['commands']['get']('mergeTableCells')['on']('execute',(_0x10f95e,_0x505605)=>{_0x29227f['commands']['get']('trackChanges')['value']&&(_0x505605['length']>0x0&&_0x505605[_0x505605['length']-0x1]&&_0x505605[_0x505605['length']-0x1]['forceDefaultExecution']||_0x28f751['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x10f95e['stop']());},{'priority':'highest'});for(const _0x33bcc3 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1ac67e=_0x29227f['commands']['get'](_0x33bcc3);_0x28f751['enableCommand'](_0x33bcc3,()=>{const _0x407a56=_0x29227f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2d9039=>_0x2d9039['is']('element','tableCell')),_0x3d523d=_0x1ac67e['value'];_0x29227f['model']['change'](()=>{_0x28f751['markMultiRangeBlockFormat']([_0x407a56,_0x3d523d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x24a82c of['splitTableCellVertically','splitTableCellHorizontally']){const _0x301288=_0x29227f['commands']['get'](_0x24a82c);_0x28f751['enableCommand'](_0x24a82c,()=>{const _0x119a6f=_0x18f654['getSelectionAffectedTableCells'](_0x29227f['model']['document']['selection'])[0x0],_0x2f71af=_0x119a6f['findAncestor']('table'),{column:_0x1f510f,row:_0x3a2c77}=_0x18f654['getCellLocation'](_0x119a6f);let _0x5d2843=[];if('horizontally'==_0x301288['direction']){const _0x3ac19d=_0x18f654['createTableWalker'](_0x2f71af,{'startRow':_0x3a2c77,'endRow':_0x3a2c77,'includeAllSlots':!0x0});_0x5d2843=Array['from'](_0x3ac19d)['map'](_0x1ed240=>_0x1ed240['cell']);}else{const _0x409dfa=_0x18f654['createTableWalker'](_0x2f71af,{'column':_0x1f510f,'includeAllSlots':!0x0});_0x5d2843=Array['from'](_0x409dfa)['map'](_0x416d67=>_0x416d67['cell']);}_0x29227f['model']['change'](_0x14d5d2=>{_0x28f751['markBlockFormat'](_0x14d5d2['createRangeOn'](_0x119a6f),{'commandName':_0x24a82c,'commandParams':[]},_0x5d2843,_0x24a82c);});});}_0x28f751['descriptionFactory']['registerDescriptionCallback'](_0x127fc0=>{if('formatBlock'!=_0x127fc0['type']&&'formatInline'!=_0x127fc0['type'])return;const {data:_0x39876b}=_0x127fc0;return _0x39876b&&'mergeTableCells'==_0x39876b['commandName']?{'type':'format','content':o(_0x31859e,'*Merge\x20cells*')}:void 0x0;}),_0x28f751['descriptionFactory']['registerDescriptionCallback'](_0x3285d6=>{if('formatBlock'!=_0x3285d6['type']&&'formatInline'!=_0x3285d6['type'])return;const {data:_0x1e83bf}=_0x3285d6;return _0x1e83bf?'splitTableCellVertically'==_0x1e83bf['commandName']?{'type':'format','content':o(_0x31859e,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1e83bf['commandName']?{'type':'format','content':o(_0x31859e,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x46be71=_0x2862e4['_acceptFormatSuggestionCallbackFactory']();for(const _0x53d9ff of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x28f751['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x53d9ff,'accept',_0x46be71);for(const _0x54776c of['splitTableCellVertically','splitTableCellHorizontally'])_0x28f751['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x54776c,'accept',_0x46be71);_0x28f751['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x215486=>{_0x29227f['model']['change'](_0x12fec8=>{const _0x4e9dbc=Array['from'](_0x159734['getRanges']())['map'](_0x3dc761=>_0x3d77a4['fromRange'](_0x3dc761));_0x12fec8['setSelection'](_0x215486),_0x29227f['commands']['get']('mergeTableCells')['refresh'](),_0x29227f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3514be=_0x4e9dbc['filter'](_0x3f3348=>'$graveyard'!=_0x3f3348['root']['rootName']);_0x3514be['length']>0x0&&_0x12fec8['setSelection'](_0x3514be);for(const _0x477bf0 of _0x4e9dbc)_0x477bf0['detach']();});});for(const _0x2220c7 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x11ab82=_0x29227f['commands']['get'](_0x2220c7);_0x11ab82['on']('set:isEnabled',(_0x4cc588,_0x26d86d,_0x49fba7)=>{if(_0x49fba7){const _0x1e6a6b=_0x29227f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1044e5=>_0x1044e5['is']('element','tableCell'));this['_areMergableCells'](_0x11ab82['value'],_0x1e6a6b)||(_0x4cc588['return']=!0x1,_0x4cc588['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x48a6f2=this['editor']['commands']['get']('mergeTableCells'),_0x279284=this['editor']['plugins']['get']('TableUtils');if(!_0x48a6f2['isEnabled'])return!0x1;const _0x14e9b0=_0x279284['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x384542 of _0x14e9b0)for(const _0x501aab of _0x14e9b0)if(_0x384542!=_0x501aab&&!this['_areMergableCells'](_0x384542,_0x501aab))return!0x1;return!0x0;}['_areMergableCells'](_0x4cb5cd,_0x438023){const _0x564c90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4c7c3f=this['editor']['model']['createRangeOn'](_0x4cb5cd),_0xb3b94e=this['editor']['model']['createRangeOn'](_0x438023),_0x139c35=new Set(),_0x2359a6=new Set();for(const _0xe79d20 of _0x564c90['getSuggestions']())if(('insertion'==_0xe79d20['type']||'deletion'==_0xe79d20['type']||'mergeTableCells'==_0xe79d20['subType'])&&_0xe79d20['isInContent']){for(const _0x4ed30e of _0xe79d20['getRanges']())_0x4ed30e['containsRange'](_0x4c7c3f,!0x0)&&_0x139c35['add'](_0xe79d20['type']+':'+_0xe79d20['author']['id']),_0x4ed30e['containsRange'](_0xb3b94e,!0x0)&&_0x2359a6['add'](_0xe79d20['type']+':'+_0xe79d20['author']['id']);}if(_0x139c35['size']!=_0x2359a6['size'])return!0x1;for(const _0x37699c of _0x139c35)if(!_0x2359a6['has'](_0x37699c))return!0x1;return!0x0;}}class Dt extends _0x337a55{static get['requires'](){return[Ct];}['afterInit'](){const _0x1b6579=this['editor'];if(!_0x1b6579['plugins']['has']('TableEditing'))return;const _0x5e9c1b=_0x1b6579['locale'],_0x501fc9=_0x1b6579['plugins']['get']('TrackChangesEditing');_0x501fc9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x501fc9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x501fc9['registerBlockAttribute']('headingRows'),_0x501fc9['registerBlockAttribute']('headingColumns'),_0x501fc9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5e9c1b,'FORMAT_HEADER_ROW')),_0x501fc9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5e9c1b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5e974c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4f11d9=this['editor']['plugins']['get']('TableUtils'),_0x502f1f=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5bc4a2({showActiveMarker:_0x14cdcd=!0x0,setDataAttribute:_0xda8eb0=!0x0}={}){return(_0x58accd,_0x13f21f,_0x433de7)=>{const {type:_0x5af16f,id:_0x23cc3a}=_0x5e974c['_splitMarkerName'](_0x13f21f['markerName']),_0x3fc42a=_0x5e974c['getSuggestion'](_0x23cc3a),_0x54f754=_0x3fc42a['data'];if('formatBlock'!=_0x3fc42a['type']||!_0x54f754||'setTableColumnHeader'!=_0x54f754['commandName'])return;if(_0x13f21f['item'])return void _0x58accd['stop']();if(!_0x433de7['consumable']['consume'](_0x13f21f['markerRange'],_0x58accd['name']))return;const _0x3ddbed=_0x13f21f['markerRange']['start']['nodeAfter'],_0x1befc4=_0x13f21f['markerRange']['end']['nodeBefore'],_0x4ac8ea=_0x3ddbed['parent']['parent'],{column:_0x5acae8}=_0x4f11d9['getCellLocation'](_0x3ddbed),{column:_0x3c86f5}=_0x4f11d9['getCellLocation'](_0x1befc4);for(let _0x20cc98=_0x5acae8;_0x20cc98<=_0x3c86f5;_0x20cc98++){const _0xbf25ab=_0x4f11d9['createTableWalker'](_0x4ac8ea,{'column':_0x20cc98,'includeAllSlots':!0x1});for(const _0x16e996 of _0xbf25ab){const _0x1a943a=_0x16e996['cell'],_0x4f4d6f=_0x433de7['mapper']['toViewElement'](_0x1a943a);_0x433de7['writer']['addClass']('ck-suggestion-marker-'+_0x5af16f,_0x4f4d6f),_0xda8eb0&&_0x433de7['writer']['setAttribute']('data-suggestion',_0x23cc3a,_0x4f4d6f),_0x433de7['mapper']['bindElementToMarker'](_0x4f4d6f,_0x13f21f['markerName']),_0x14cdcd&&(_0x5e974c['activeMarkers']['includes'](_0x13f21f['markerName'])?_0x433de7['writer']['addClass']('ck-suggestion-marker--active',_0x4f4d6f):_0x433de7['writer']['removeClass']('ck-suggestion-marker--active',_0x4f4d6f));}}};}_0x5e974c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x502f1f),_0x5e974c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x502f1f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5bc4a2(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x380684,_0x3607bd,_0x5dc579)=>{_0x5dc579['options']['showSuggestionHighlights']&&_0x5bc4a2({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x380684,_0x3607bd,_0x5dc579);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xf69a6c,_0x389adb,_0x4ceba7)=>{const {type:_0x150bbd,id:_0xf01404}=_0x5e974c['_splitMarkerName'](_0x389adb['markerName']),_0x1bf1da=_0x5e974c['getSuggestion'](_0xf01404),_0x3cbc58=_0x1bf1da['data'];if('formatBlock'!=_0x1bf1da['type']||!_0x3cbc58||'setTableColumnHeader'!=_0x3cbc58['commandName'])return;const _0x200e95=_0x4ceba7['mapper']['markerNameToElements'](_0x389adb['markerName']);if(_0x200e95){for(const _0x78cbcf of _0x200e95)_0x4ceba7['writer']['removeClass']('ck-suggestion-marker-'+_0x150bbd,_0x78cbcf),_0x4ceba7['writer']['removeClass']('ck-suggestion-marker--active',_0x78cbcf),_0x4ceba7['writer']['removeAttribute']('data-suggestion',_0x78cbcf),_0x4ceba7['mapper']['unbindElementFromMarkerName'](_0x78cbcf,_0x389adb['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2abdd4=this['editor'],_0xfc229a=_0x2abdd4['locale'];function _0x405b78(_0x2ed770){return{'type':'format','content':o(_0xfc229a,'*Format:*\x20%0',_0x2ed770)};}_0x2abdd4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6dd1a7=>{if('formatBlock'!=_0x6dd1a7['type'])return;const {data:_0x511f4b}=_0x6dd1a7;if(_0x511f4b){if('setTableRowHeader'==_0x511f4b['commandName']){const _0x488e48=_0x511f4b['commandParams'][0x0]['forceValue'];return _0x405b78(o(_0xfc229a,_0x488e48?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x511f4b['commandName']){const _0x3b406f=_0x511f4b['commandParams'][0x0]['forceValue'];return _0x405b78(o(_0xfc229a,_0x3b406f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x590ca3=>[_0x590ca3,null]));class Mt extends _0x337a55{static get['requires'](){return[Ct];}['afterInit'](){const _0x12f148=this['editor'];if(!_0x12f148['plugins']['has']('TableClipboard'))return;const _0x5a9869=_0x12f148['plugins']['get']('TrackChangesEditing'),_0x40785c=_0x12f148['plugins']['get']('TableUtils'),_0x3f3954=_0x12f148['plugins']['get'](Ct),_0x137226=_0x12f148['plugins']['get']('TableClipboard');_0x3f3954['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x12f148['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x12f148['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x36d7bc=null;_0x12f148['model']['on']('insertContent',(_0x17daf1,_0x4a03ec)=>{const [_0x2f9da4,_0x30b57f]=_0x4a03ec,_0x48cd2f=_0x4a03ec[_0x4a03ec['length']-0x1];_0x48cd2f&&_0x48cd2f['forceDefaultExecution']||_0x5a9869['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x97b9e0,_0x3510f3,_0x10ef82,_0x3512a4,_0x1ca4f3){if(_0x3510f3&&!_0x3510f3['is']('documentSelection'))return!0x1;const _0x1a84fb=_0x1ca4f3['getTableIfOnlyTableInContent'](_0x97b9e0,_0x10ef82);if(!_0x1a84fb||!Ue(_0x1a84fb,void 0x0,_0x3512a4))return!0x1;const _0x3fc35b=_0x3512a4['getSelectionAffectedTableCells'](_0x10ef82['document']['selection']);if(!_0x3fc35b['length'])return!0x1;const _0x58a783=_0x3fc35b[0x0]['findAncestor']('table'),_0x4d5c0e=_0x3512a4['getRowIndexes'](_0x3fc35b),_0x159882=_0x3512a4['getColumnIndexes'](_0x3fc35b),_0x276e1b={'startRow':_0x4d5c0e['first'],'endRow':_0x4d5c0e['last'],'startColumn':_0x159882['first'],'endColumn':_0x159882['last']};return 0x1==_0x3fc35b['length']&&(_0x276e1b['endRow']+=_0x3512a4['getRows'](_0x1a84fb)-0x1,_0x276e1b['endColumn']+=_0x3512a4['getColumns'](_0x1a84fb)-0x1),Ue(_0x58a783,_0x276e1b,_0x3512a4);}(_0x2f9da4,_0x30b57f,_0x12f148['model'],_0x40785c,_0x137226)&&(_0x17daf1['stop'](),_0x36d7bc={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x12f148['model']['change'](()=>{_0x12f148['model']['insertContent'](_0x4a03ec[0x0],_0x4a03ec[0x1],_0x4a03ec[0x2],{'forceDefaultExecution':!0x0});const _0x15d9b6=_0x382bc4(),{rowInsertionRanges:_0x3ee897,columnInsertionRanges:_0x268f26,insertionRanges:_0x577e18,deletionRanges:_0x49369b,cells:_0x3c3a91}=_0x36d7bc;_0x3ee897['length']&&_0x5a9869['markMultiRangeInsertion'](_0x3ee897,'tablePasteRow',{'tablePasteChainId':_0x15d9b6}),_0x268f26['length']&&_0x5a9869['markMultiRangeInsertion'](_0x268f26,'tablePasteColumn',{'tablePasteChainId':_0x15d9b6}),_0x577e18['length']&&(_0x5a9869['markMultiRangeInsertion'](_0x577e18,'tablePaste',{'tablePasteChainId':_0x15d9b6,'skipNestingCheck':!0x0}),_0x577e18['forEach'](_0x5a9575=>_0x5a9575['detach']?.())),_0x49369b['length']&&(_0x5a9869['markMultiRangeDeletion'](_0x49369b,'tablePaste',{'tablePasteChainId':_0x15d9b6,'skipNestingCheck':!0x0}),_0x49369b['forEach'](_0x1fa749=>_0x1fa749['detach']?.()));const _0x5201a9=_0x5a9869['markMultiRangeBlockFormat'](_0x3c3a91['map'](({element:_0x12580b})=>_0x12580b),{'formatGroupId':_0x382bc4()},[],'tablePasteCell',{'tablePasteChainId':_0x15d9b6});if(_0x5201a9){const _0x4ba2cc=_0x5201a9['getMarkers'](),_0x38206d=[];for(const {element:_0x1112de,attributes:_0x1392b0}of _0x3c3a91){if(!_0x1392b0)continue;const _0x286daa=_0x12f148['model']['createRangeOn'](_0x1112de),_0x434607=_0x4ba2cc['find'](_0x3a7441=>_0x3a7441['getRange']()['isEqual'](_0x286daa));_0x434607&&_0x38206d['push']([_0x434607['name'],_0x1392b0]);}_0x38206d['length']&&_0x5201a9['setAttribute']('markerAttributes',Object['fromEntries'](_0x38206d));}_0x36d7bc=null;}));},{'priority':_0x33629f['high']+0xa}),_0x12f148['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x24f9df,_0x786d63)=>{const [_0x73530d,_0x8c0b36,,_0x22f56e]=_0x786d63;if(!_0x36d7bc)return;_0x24f9df['stop']();const _0xf0eff7=_0x73530d['cell'],_0x3ba14f=_0x8c0b36,_0x2e38a8=Oe(_0xf0eff7),_0x20142a=Oe(_0x3ba14f);_0x24f9df['return']=_0xf0eff7;let _0x2a0d77=null,_0x6bbfb5=null;if(_0x20142a||_0x2e38a8){if(_0x2e38a8&&!_0x20142a){_0x22f56e['remove'](_0xf0eff7['getChild'](0x0));for(const _0x4ec172 of Array['from'](_0x3ba14f['getChildren']()))_0x22f56e['insert'](_0x4ec172,_0xf0eff7,'end');const _0x1f8823=_0x36d7bc['rowInsertionIndexes']['includes'](_0x73530d['row']),_0x2a2fc2=_0x36d7bc['columnInsertionIndexes']['includes'](_0x73530d['column']);_0x1f8823||_0x2a2fc2||(_0x2a0d77=_0x3d77a4['fromRange'](_0x22f56e['createRangeIn'](_0xf0eff7)));}else _0x20142a&&!_0x2e38a8&&(_0x6bbfb5=_0x22f56e['createRangeIn'](_0xf0eff7));}else{const _0x4383d2=_0x22f56e['createElement']('tableCellSuggestion'),_0x512c93=_0x22f56e['createElement']('tableCellSuggestion');_0x22f56e['wrap'](_0x22f56e['createRangeIn'](_0xf0eff7),_0x512c93),_0x22f56e['insert'](_0x4383d2,_0xf0eff7,0x0);for(const _0x270c7 of Array['from'](_0x3ba14f['getChildren']()))_0x22f56e['insert'](_0x270c7,_0x4383d2,'end');_0x2a0d77=_0x3d77a4['fromRange'](_0x22f56e['createRangeOn'](_0x4383d2)),_0x6bbfb5=_0x3d77a4['fromRange'](_0x22f56e['createRangeOn'](_0x512c93));}const _0x25aec2=Array['from'](_0x3ba14f['getAttributes']())['filter'](([_0x1ea2b0])=>Be['includes'](_0x1ea2b0));_0x36d7bc['cells']['push']({'element':_0xf0eff7,'attributes':_0x25aec2['length']?Object['fromEntries'](_0x25aec2):null}),_0x2a0d77&&_0x36d7bc['insertionRanges']['push'](_0x2a0d77),_0x6bbfb5&&_0x36d7bc['deletionRanges']['push'](_0x6bbfb5);},{'priority':'high'}),_0x40785c['on']('insertColumns',(_0x5bd52d,_0x26fe13)=>{const [_0x7c82e7,_0x10d2db={}]=_0x26fe13;if(!_0x36d7bc)return;const _0x24e0f1=_0x10d2db['at']||0x0,_0x3a75a2=_0x10d2db['columns']||0x1;_0x36d7bc['columnInsertionIndexes']=new Array(_0x3a75a2)['fill'](_0x24e0f1)['map']((_0x2e27fd,_0x539f6e)=>_0x2e27fd+_0x539f6e);for(const {cell:_0x3ef77d}of _0x40785c['createTableWalker'](_0x7c82e7,{'startColumn':_0x24e0f1,'endColumn':_0x24e0f1+_0x3a75a2-0x1}))_0x36d7bc['columnInsertionRanges']['push'](_0x12f148['model']['createRangeOn'](_0x3ef77d));},{'priority':'low'}),_0x40785c['on']('insertRows',(_0x17855e,_0x3dba4c)=>{const [_0x51bcbd,_0x21936b={}]=_0x3dba4c;if(!_0x36d7bc)return;const _0x3e2031=_0x21936b['at']||0x0,_0x2ca403=_0x21936b['rows']||0x1;_0x36d7bc['rowInsertionIndexes']=new Array(_0x2ca403)['fill'](_0x3e2031)['map']((_0x1b18a6,_0x18f67a)=>_0x1b18a6+_0x18f67a);for(const {cell:_0x6b9cfd}of _0x40785c['createTableWalker'](_0x51bcbd,{'startRow':_0x3e2031,'endRow':_0x3e2031+_0x2ca403-0x1}))_0x36d7bc['rowInsertionRanges']['push'](_0x12f148['model']['createRangeOn'](_0x6b9cfd));},{'priority':'low'}),_0x5a9869['descriptionFactory']['registerDescriptionCallback'](_0x401039=>{if(_0x401039['subType']&&_0x401039['subType']['startsWith']('tablePaste'))return _0x401039['previous']?{}:{'type':'insertion','content':o(_0x12f148['locale'],'*Replace\x20table\x20cells*')};});const _0x322994=()=>!0x1;for(const _0x3d5480 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5a9869['_suggestionFactory']['registerCustomCallback']('insertion',_0x3d5480,'join',_0x322994),_0x5a9869['_suggestionFactory']['registerCustomCallback']('deletion',_0x3d5480,'join',_0x322994),_0x5a9869['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3d5480,'join',_0x322994);_0x5a9869['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x322994),_0x5a9869['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x57d30f,_0x48312f,_0x375234)=>{const _0x24cafb=_0x57d30f['map'](_0x3989a3=>_0x3989a3['getContainedElement']())['filter'](_0x46cae9=>_0x46cae9),_0x27075e=new Map(_0x24cafb['map'](_0x3385d3=>[_0x3385d3,null]));if(_0x36d7bc){for(const {element:_0x3a0c5c,attributes:_0x3584df}of _0x36d7bc['cells'])_0x3584df&&_0x27075e['set'](_0x3a0c5c,_0x3584df);}else{if(_0x375234&&_0x375234['markerAttributes'])for(const [_0x55a6f2,_0x5a4b30]of Object['entries'](_0x375234['markerAttributes'])){const _0x1c99ed=_0x12f148['model']['markers']['get'](_0x55a6f2),_0x43b8c5=_0x1c99ed?_0x1c99ed['getRange']()['getContainedElement']():null;_0x43b8c5&&_0x27075e['set'](_0x43b8c5,_0x5a4b30);}}_0x12f148['model']['change'](_0x6a10ab=>{for(const [_0x486b7e,_0x416223]of _0x27075e)_0x6a10ab['setAttributes']({...xe,..._0x416223},_0x486b7e);});});const _0x96514e=(_0x1c1d6c,_0x3ec6e9)=>{_0x5a9869['_suggestionFactory']['registerCustomCallback'](_0x1c1d6c,'tablePaste',_0x3ec6e9,(_0x2fbb0f,_0x244bc3,_0x42ed55)=>{_0x12f148['model']['change'](_0x40077f=>{const _0xec4fda=[];for(const _0x1f7377 of _0x2fbb0f){const _0xf3fde8=_0x1f7377['start']['nodeAfter'];_0xf3fde8['is']('element','tableCellSuggestion')&&_0xec4fda['push'](_0xf3fde8);}_0x5a9869['_suggestionFactory']['getSuggestionCallback'](_0x1c1d6c,null,_0x3ec6e9)(_0x2fbb0f,_0x244bc3,_0x42ed55);for(const _0x169bc5 of _0xec4fda)'$graveyard'!=_0x169bc5['root']['rootName']&&_0x40077f['unwrap'](_0x169bc5);});});};_0x96514e('insertion','accept'),_0x96514e('insertion','discard'),_0x96514e('deletion','accept'),_0x96514e('deletion','discard'),_0x5a9869['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x6ccb76=>{const _0x10d7db=_0x6ccb76['map'](_0x2ca160=>_0x2ca160['getContainedElement']()),_0x5b6ec6=_0x10d7db[0x0]['findAncestor']('table'),{minRow:_0x175bb9,maxRow:_0x39cbdd}=_0x3f3954['_getCoordsForCells'](_0x10d7db);_0x40785c['removeRows'](_0x5b6ec6,{'at':_0x175bb9,'rows':_0x39cbdd-_0x175bb9+0x1});}),_0x5a9869['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x2a0c1f=>{const _0x4e4714=_0x2a0c1f['map'](_0x128e39=>_0x128e39['getContainedElement']()),_0x28fa88=_0x4e4714[0x0]['findAncestor']('table'),{minColumn:_0x33c7b7,maxColumn:_0x1a5092}=_0x3f3954['_getCoordsForCells'](_0x4e4714);_0x40785c['removeColumns'](_0x28fa88,{'at':_0x33c7b7,'columns':_0x1a5092-_0x33c7b7+0x1});});const _0x2c787a=(_0x36a3a8,_0x3857e8)=>{if(!_0x3857e8['subType']||!_0x3857e8['subType']['startsWith']('tablePaste'))return;const _0x512dd5=_0x3857e8['attributes']['tablePasteChainId'],_0x4b4004=_0x5a9869['getSuggestions']()['filter'](_0x462f42=>_0x462f42['isInContent']&&_0x462f42['attributes']&&_0x462f42['attributes']['tablePasteChainId']==_0x512dd5);_0x4b4004['length']&&_0x3857e8['getAllAdjacentSuggestions']()['length']!=_0x4b4004['length']&&_0x4b4004['reduce']((_0x29f258,_0x1d0e06)=>(_0x29f258['next']=_0x1d0e06,_0x1d0e06['previous']=_0x29f258,_0x1d0e06));};function _0x39ea0a(_0x3a63af,_0x568388=!0x0){const {id:_0x54ef45,authorId:_0x267fc7}=_0x5a9869['_splitMarkerName'](_0x3a63af['markerName']),_0x29af5b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x45a9d5=_0x5a9869['activeMarkers']['includes'](_0x3a63af['markerName']);return _0x45a9d5&&_0x29af5b['push']('ck-suggestion-marker--active'),{'classes':_0x29af5b,'attributes':{'data-suggestion':_0x54ef45,'data-author-id':_0x267fc7},'priority':_0x45a9d5&&_0x568388?0xbc2:0xbb8};}_0x5a9869['on']('suggestionLoaded',_0x2c787a,{'priority':'high'}),_0x5a9869['on']('suggestionUnloaded',_0x2c787a,{'priority':'high'}),_0x12f148['model']['document']['registerPostFixer'](()=>{let _0x9c12c6=!0x1;const _0x29e4bf=Array['from'](_0x12f148['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4666de,data:_0x3a7632}of _0x29e4bf){const {group:_0x57200f,type:_0x708b39,id:_0x159e7f}=_0x5a9869['_splitMarkerName'](_0x4666de);if('suggestion'!=_0x57200f||'deletion'!=_0x708b39||_0x3a7632['oldRange'])continue;if(!_0x5a9869['hasSuggestion'](_0x159e7f))continue;const _0x5916bb=_0x5a9869['getSuggestion'](_0x159e7f)['getRanges'](),_0x48d592=_0x12f148['plugins']['get']('Users')['me'];for(const _0x5b042f of _0x5a9869['getSuggestions']()){if(!_0x5b042f['isInContent']||_0x5b042f['author']!=_0x48d592)continue;if('formatBlock'!=_0x5b042f['type']||'tablePasteCell'!=_0x5b042f['subType'])continue;if(_0x5b042f['getRanges']()['every'](_0x24a05f=>_0x5916bb['some'](_0x2a42c2=>_0x2a42c2['containsRange'](_0x24a05f,!0x0)))){for(const _0x11f931 of _0x5b042f['getAllAdjacentSuggestions']())_0x11f931['isInContent']&&(_0x11f931['discard'](),_0x9c12c6=!0x0);}}}return _0x9c12c6;}),_0x12f148['model']['document']['registerPostFixer'](_0x2f53d6=>{const _0x396139=_0x12f148['commands']['get']('redo');if(!_0x396139||!_0x396139['_createdBatches']['has'](_0x2f53d6['batch']))return!0x1;let _0x52d9e7=!0x1;const _0x50b6e1=_0x12f148['plugins']['get']('Users')['me'],_0x392a7c=_0x12f148['model']['document']['differ']['getChanges'](),_0x52af4f=Array['from'](_0x12f148['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x46161b,data:_0x23f50b})=>{const {group:_0x2c0060,subType:_0x4c57a5,authorId:_0x581763}=_0x5a9869['_splitMarkerName'](_0x46161b);return'suggestion'==_0x2c0060&&'tablePaste'==_0x4c57a5&&_0x581763==_0x50b6e1['id']&&!_0x23f50b['oldRange'];});for(const _0x58ae58 of _0x392a7c){if('insert'!=_0x58ae58['type']||'tableCellSuggestion'!=_0x58ae58['name']||0x1!=_0x58ae58['length'])continue;const _0x14d72c=_0x2f53d6['createRange'](_0x58ae58['position'],_0x58ae58['position']['getShiftedBy'](0x1));if(!_0x52af4f['find'](({data:_0x52ea39})=>_0x52ea39['newRange']['isEqual'](_0x14d72c))){for(const {name:_0x2f4de8,data:_0x2d1ae3}of _0x52af4f)if(_0x14d72c['containsRange'](_0x2d1ae3['newRange'])){_0x2f53d6['updateMarker'](_0x2f4de8,{'range':_0x14d72c}),_0x52d9e7=!0x0;break;}}}return _0x52d9e7;}),_0x12f148['model']['document']['registerPostFixer'](_0x912ae1=>{let _0x4e3637=!0x1;const _0x5476e5=_0x12f148['plugins']['get']('Users')['me'],_0x434390=_0x5a9869['getSuggestions']()['filter'](_0x2c5277=>_0x2c5277['isInContent']&&_0x2c5277['author']==_0x5476e5),_0x3aea0e=new Set(),_0x3bd27c=new Set();for(const _0x322d73 of _0x434390)if('tablePaste'==_0x322d73['subType'])for(const _0x2aee51 of _0x322d73['getMarkers']()){const _0x2e23d0=_0x2aee51['getRange']()['getContainedElement']();if(_0x2e23d0){if(_0x2e23d0['is']('element','tableCellSuggestion')&&Oe(_0x2e23d0)){_0x322d73['removeMarker'](_0x2aee51['name']),_0x3aea0e['add'](_0x2e23d0),_0x4e3637=!0x0;const _0x2771e5=_0x2e23d0['nextSibling'],_0x4479b8=_0x2e23d0['previousSibling'],_0x53f5a2=_0x2771e5&&_0x2771e5['is']('element','tableCellSuggestion'),_0x3d9ae5=_0x4479b8&&_0x4479b8['is']('element','tableCellSuggestion');_0x53f5a2&&!_0x3aea0e['has'](_0x2771e5)&&_0x3bd27c['add'](_0x2771e5),_0x3d9ae5&&!_0x3aea0e['has'](_0x4479b8)&&_0x3bd27c['add'](_0x4479b8);}else _0x2e23d0['is']('element','paragraph')&&_0x2e23d0['isEmpty']&&(_0x322d73['removeMarker'](_0x2aee51['name']),_0x4e3637=!0x0);}}else{if('tablePasteCell'==_0x322d73['subType']){if(!_0x322d73['attributes']||!_0x322d73['attributes']['tablePasteChainId'])continue;const _0x3649df=_0x322d73['attributes']['markerAttributes'];if(_0x3649df&&Object['keys'](_0x3649df)['length'])continue;const _0x176d93=_0x322d73['attributes']['tablePasteChainId'];let _0x2a7d77=!0x0,_0x991c00=!0x0;for(const _0x28aacc of _0x434390)if(_0x28aacc['subType']&&_0x28aacc['subType']['startsWith']('tablePaste')){if(!_0x28aacc['attributes']['tablePasteChainId']){_0x991c00=!0x1;break;}if(_0x28aacc['id']!=_0x322d73['id']&&_0x28aacc['attributes']['tablePasteChainId']==_0x176d93){_0x2a7d77=!0x1;break;}}_0x991c00&&_0x2a7d77&&(_0x322d73['removeMarkers'](),_0x4e3637=!0x0);}}for(const _0x3addc6 of _0x3aea0e)_0x912ae1['remove'](_0x3addc6);for(const _0x1a212c of _0x3bd27c)_0x912ae1['unwrap'](_0x1a212c);return _0x4e3637;}),_0x12f148['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0xfccb93=>_0x39ea0a(_0xfccb93),'converterPriority':'high'}),_0x12f148['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4ec04b,_0x21e266)=>_0x21e266['options']['showSuggestionHighlights']?_0x39ea0a(_0x4ec04b,!0x1):null,'converterPriority':'high'});const _0x3bd4aa=_0x12f148['editing']['view'];this['listenTo'](_0x3bd4aa['document'],'clipboardOutput',(_0x310c75,_0x15d91d)=>{const _0x1abc78=[];for(const _0x534559 of _0x3bd4aa['createRangeIn'](_0x15d91d['content'])['getItems']())_0x534559['is']('element','suggestion-td')&&_0x1abc78['push'](_0x534559);_0x3bd4aa['change'](_0x243147=>{for(const _0x142847 of _0x1abc78)_0x243147['move'](_0x243147['createRangeIn'](_0x142847),_0x243147['createPositionBefore'](_0x142847)),_0x243147['remove'](_0x142847);});});}}function Oe(_0x3d92bb){if(_0x3d92bb['isEmpty'])return!0x0;const _0x2dc3dd=_0x3d92bb['getChild'](0x0);return _0x2dc3dd['is']('element','paragraph')&&_0x2dc3dd['isEmpty'];}function Ue(_0x127760,_0x44f984={},_0xe69b62){for(const {isAnchor:_0x27e8f2,cellHeight:_0x32c343,cellWidth:_0xcc4695}of _0xe69b62['createTableWalker'](_0x127760,{'includeAllSlots':!0x0,..._0x44f984}))if(!_0x27e8f2||0x1!=_0x32c343||0x1!=_0xcc4695)return!0x1;return!0x0;}class $t extends _0x337a55{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2e098c=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e098c['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2e098c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2e098c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e098c['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2e098c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2e098c['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3319c4,_0x29071a){const _0x3a9433=this['editor']['plugins']['get']('TrackChangesEditing'),_0x49a349=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x309923=_0x29071a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x139347=_0x49a349['getColumnGroupElement'](_0x309923);let _0x3ba332=_0x139347?_0x49a349['getTableColumnsWidths'](_0x139347):null,_0x2c4927=_0x309923['getAttribute']('tableWidth')||null;const _0x3539d7=_0x29071a['tableWidth']||_0x2c4927,_0x59a063=_0x29071a['columnWidths']||_0x3ba332,_0x31346c=this['editor']['plugins']['get']('Users')['me'];for(const _0x5a50fd of _0x3a9433['getSuggestions']()){const _0x227b85=_0x5a50fd['getContainedElement']();if('resizeTable'===_0x5a50fd['subType']&&_0x227b85===_0x309923){_0x5a50fd['author']!==_0x31346c&&_0x5a50fd['discard']();const _0x3ed8d7=_0x5a50fd['data']['commandParams'];_0x2c4927=_0x3ed8d7[0x0]['tableWidth'],_0x3ba332=_0x3ed8d7[0x0]['columnWidths'];break;}}_0x3319c4({'table':_0x309923,'tableWidth':_0x3539d7,'columnWidths':_0x59a063}),_0x3a9433['markBlockFormat'](_0x309923,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2c4927,'columnWidths':_0x3ba332}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1c8e2a){if('formatBlock'!=_0x1c8e2a['type']&&'formatInline'!=_0x1c8e2a['type'])return;const {data:_0x173f91}=_0x1c8e2a;if(_0x173f91&&'resizeTable'===_0x173f91['formatGroupId']){const _0x3abece='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3abece)};}}}class Bt extends _0x337a55{['afterInit'](){const _0x4dbcff=this['editor'];_0x4dbcff['plugins']['has']('Template')&&_0x4dbcff['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x337a55{['afterInit'](){const _0x289be4=this['editor'];if(!_0x289be4['commands']['get']('insertTableOfContents'))return;_0x289be4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x9efe16=_0x289be4['plugins']['get']('TrackChangesEditing'),_0x50df56=_0x289be4['locale'];_0x9efe16['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1fc7e0=>o(_0x50df56,'ELEMENT_TABLE_OF_CONTENTS',_0x1fc7e0));}}class Rt extends _0x337a55{['afterInit'](){const _0x250d6e=this['editor'];if(!_0x250d6e['plugins']['has']('Title'))return;const _0x5c6105=_0x250d6e['plugins']['get']('TrackChangesEditing');_0x5c6105['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x250d6e['locale'],'ELEMENT_TITLE')),_0x250d6e['model']['document']['registerPostFixer'](_0x3e589f=>{let _0x17a57e=!0x1;const _0x7fae3c=Array['from'](_0x250d6e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x26f4d3,data:_0x44f9ed}of _0x7fae3c){const {group:_0x552354}=_0x5c6105['_splitMarkerName'](_0x26f4d3);if('suggestion'!==_0x552354||!_0x44f9ed['newRange'])continue;const _0xc0f1c5=_0x44f9ed['newRange'],_0x5e00b7=_0xc0f1c5['end']['nodeBefore'];if(!_0x5e00b7||!_0x5e00b7['is']('element','title-content'))continue;if(!_0xc0f1c5['start']['isTouching'](_0xc0f1c5['end']))continue;const _0x12a115=_0x250d6e['model']['schema']['getNearestSelectionRange'](_0xc0f1c5['end'],'forward');if(_0x12a115&&_0x12a115['isCollapsed']){const _0x5eb22b=_0x3e589f['createRange'](_0xc0f1c5['start'],_0x12a115['start']);_0x5eb22b['isEqual'](_0xc0f1c5)||(_0x3e589f['updateMarker'](_0x26f4d3,{'range':_0x5eb22b}),_0x17a57e=!0x0);}_0x17a57e||(_0x3e589f['removeMarker'](_0x26f4d3),_0x17a57e=!0x0);}return _0x17a57e;});}}class Tt extends _0x337a55{['afterInit'](){const _0x4d0cac=this['editor'],_0xc3a336=_0x4d0cac['plugins']['get']('TrackChangesEditing');_0x4d0cac['plugins']['has']('Uploadcare')&&(_0xc3a336['enableCommand']('uploadcare'),_0x4d0cac['plugins']['has']('UploadcareImageEdit')&&(_0xc3a336['enableCommand']('uploadcareImageEdit'),_0xc3a336['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xc3a336['registerBlockAttribute']('uploadcareImageId'),_0xc3a336['descriptionFactory']['registerDescriptionCallback'](_0x1121b5=>{if('attribute'!=_0x1121b5['type'])return;const {data:_0x92ac31}=_0x1121b5;return _0x92ac31&&'uploadcareImageId'==_0x92ac31['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x337a55{['afterInit'](){const _0x102261=this['editor'],_0x5345d3=_0x102261['plugins']['get']('TrackChangesEditing');_0x102261['plugins']['has']('UndoEditing')&&(_0x5345d3['enableCommand']('undo'),_0x5345d3['enableCommand']('redo'));}}class Et extends _0x337a55{static get['requires'](){return[Ct];}['afterInit'](){const _0xea6251=this['editor'];if(!_0xea6251['plugins']['has']('TableCaptionEditing'))return;_0xea6251['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x337a55{['tableProperties'];['tableCellProperties'];constructor(_0x2e40d9){super(_0x2e40d9),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 _0x2b0690=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3e7eff of this['tableProperties'])_0x2b0690['enableCommand'](_0x3e7eff,(_0x26add3,_0x5d2414)=>{const _0x53370d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3e7eff,[_0x53370d],this['tableProperties'],'tableProperties',_0x26add3,_0x5d2414);});_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2b0690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x347484,_0x555228)=>this['handleDiscardAction'](this['tableProperties'],_0x347484,_0x555228)),_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x20c064 of this['tableCellProperties'])_0x2b0690['enableCommand'](_0x20c064,(_0x8ad915,_0x14d4fc)=>{const _0x2cc6f2=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x20c064,_0x2cc6f2,this['tableCellProperties'],'tableCellProperties',_0x8ad915,_0x14d4fc);});_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2b0690['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34445c,_0x1c948d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34445c,_0x1c948d)),_0x2b0690['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2b0690['descriptionFactory']['registerDescriptionCallback'](_0x1c53ea=>this['handleSuggestionDescription'](_0x1c53ea));}['_handlePropertyChange'](_0x56010f,_0xbaa846,_0x118903,_0x4728d1,_0x1ac26e,_0x396e3d){const _0x49f4dd=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x396e3d['batch'],()=>{for(const _0x47d5b0 of _0xbaa846){if(this['_getSuggestion'](_0x47d5b0,_0x4728d1))_0x1ac26e(_0x396e3d);else{const _0x24a572={};for(const _0x5eec85 of _0x118903){const _0x1726b6=_0x47d5b0['getAttribute'](_0x5eec85);void 0x0!==_0x1726b6&&(_0x24a572[_0x5eec85]=_0x1726b6);}_0x1ac26e(_0x396e3d),_0x49f4dd['markBlockFormat'](_0x47d5b0,{'commandParams':[_0x24a572]},[],_0x4728d1);}}});}['handleDiscardAction'](_0x2949cb,_0x5a104c,_0x45aca9){const _0x41d998=_0x5a104c[0x0]['start']['nodeAfter'],_0x4bd321=_0x45aca9['commandParams'][0x0];this['editor']['model']['change'](_0x257597=>{for(const _0x1fc598 of _0x2949cb)void 0x0!==_0x4bd321[_0x1fc598]?_0x257597['setAttribute'](_0x1fc598,_0x4bd321[_0x1fc598],_0x41d998):_0x257597['removeAttribute'](_0x1fc598,_0x41d998);});}['handleSuggestionDescription'](_0x3dc6df){if(_0x3dc6df['data'])switch(_0x3dc6df['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'](_0x4062b7,_0x19c1d4){const _0x3aeb4f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x8873f of _0x3aeb4f['getSuggestions']({'skipNotAttached':!0x0})){const _0x563952=_0x8873f['getContainedElement']();if(_0x8873f['subType']===_0x19c1d4&&_0x563952===_0x4062b7)return _0x8873f;}return null;}}const m='$elementName';class p extends _0x337a55{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4640ff,_0x5e2d19,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c4ec2){super(_0x2c4ec2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x16ca82,_0x58f4cf,_0x2d3911,_0x28dd24)=>{this['_model']['change'](()=>{for(const _0x319e6b of[..._0x28dd24,..._0x2d3911])this['_model']['markers']['has'](_0x319e6b)&&_0x2c4ec2['editing']['reconvertMarker'](_0x319e6b);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2c4ec2['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(),_0x2c4ec2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2c4ec2['config']['get']('trackChanges.trackFormatChanges'),_0x2c4ec2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2c4ec2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2c4ec2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x411ff5=this['editor'],_0x55ff66=(_0x2b0652,_0x2815bd)=>{if('attribute'!=_0x2b0652)return'ck-suggestion-marker-'+_0x2b0652;const _0x5af2f2=_0x2815bd['split']('|')[0x0];return this['_isBlockAttribute'](_0x5af2f2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x411ff5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xbfa214=>{const {id:_0x473d3f,authorId:_0x3bcf16,type:_0x313785,subType:_0x2c69a7}=this['_splitMarkerName'](_0xbfa214['markerName']),_0x45470a=['ck-suggestion-marker',_0x55ff66(_0x313785,_0x2c69a7)];let _0x824a10=0xbb8;return this['activeMarkers']['includes'](_0xbfa214['markerName'])&&(_0x45470a['push']('ck-suggestion-marker--active'),_0x824a10=0xbc2),'deletion'==_0x313785&&(_0x824a10+=0x5),{'classes':_0x45470a,'attributes':{'data-suggestion':_0x473d3f,'data-author-id':_0x3bcf16},'priority':_0x824a10};}}),_0x411ff5['conversion']['for']('dataDowncast')['add'](_0x5af510=>{_0x5af510['on']('addMarker:suggestion',(_0x123a27,_0x50bea9,_0x359e89)=>{if(!_0x359e89['options']['showSuggestionHighlights'])return;const _0x263499=_0x50bea9['item'];if(!_0x263499)return;const _0xfd9666=_0x359e89['mapper']['toViewElement'](_0x263499);_0x411ff5['model']['schema']['isObject'](_0x263499)&&_0xfd9666&&!_0xfd9666['getCustomProperty']('widget')&&_0xfd9666['is']('containerElement')&&_0x239b6a(_0xfd9666,_0x359e89['writer']);},{'priority':'high'});}),_0x411ff5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x35cab6,_0x22fbae)=>{if(!_0x22fbae['options']['showSuggestionHighlights'])return null;const {type:_0x51acc0,subType:_0x47dae7}=this['_splitMarkerName'](_0x35cab6['markerName']);return{'classes':['ck-suggestion-marker',_0x55ff66(_0x51acc0,_0x47dae7)],'priority':0xbb8};}});const _0x3e6904=({showActiveMarkers:_0x396a71=!0x0,isAttributeSuggestion:_0x199327=!0x1}={})=>(_0xce46fa,_0x5c0a96,_0x7f8eaf)=>{if(!_0x5c0a96['item'])return;const {id:_0x28316a,authorId:_0x4eb984}=this['_splitMarkerName'](_0x5c0a96['markerName']);if(_0x199327){const _0x38d127=this['_suggestions']['get'](_0x28316a),_0x504cc9=this['_getAttributeKey'](_0x38d127);if(!this['_isBlockAttribute'](_0x504cc9))return;}if(_0x5c0a96['item']['is']('selection'))return void _0x7f8eaf['consumable']['consume'](_0x5c0a96['item'],_0xce46fa['name']);const _0x5a4aa1=_0x7f8eaf['mapper']['toViewElement'](_0x5c0a96['item']);if(_0x5c0a96['item']['is']('element')&&_0x411ff5['model']['schema']['isBlock'](_0x5c0a96['item'])&&!_0x5a4aa1['getCustomProperty']('addHighlight')){_0x7f8eaf['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5a4aa1),_0x7f8eaf['writer']['setAttribute']('data-suggestion',_0x28316a,_0x5a4aa1),_0x7f8eaf['writer']['setAttribute']('data-author-id',_0x4eb984,_0x5a4aa1),_0x7f8eaf['mapper']['bindElementToMarker'](_0x5a4aa1,_0x5c0a96['markerName']),_0x396a71&&(this['activeMarkers']['includes'](_0x5c0a96['markerName'])?_0x7f8eaf['writer']['addClass']('ck-suggestion-marker--active',_0x5a4aa1):_0x7f8eaf['writer']['removeClass']('ck-suggestion-marker--active',_0x5a4aa1));for(const _0x429111 of _0x411ff5['model']['createRangeIn'](_0x5c0a96['item'])['getItems']())_0x7f8eaf['consumable']['consume'](_0x429111,_0xce46fa['name']);_0x7f8eaf['consumable']['consume'](_0x5c0a96['item'],_0xce46fa['name']);}};_0x411ff5['conversion']['for']('dataDowncast')['add'](_0x7af6f0=>{_0x7af6f0['on']('addMarker:suggestion:formatBlock',(_0xdd744e,_0x13a8b2,_0x35a3e2)=>{_0x35a3e2['options']['showSuggestionHighlights']&&_0x3e6904({'showActiveMarkers':!0x1})(_0xdd744e,_0x13a8b2,_0x35a3e2);},{'priority':'highest'});}),_0x411ff5['conversion']['for']('dataDowncast')['add'](_0xd23784=>{_0xd23784['on']('addMarker:suggestion:attribute',(_0x4feae7,_0x3dac5f,_0x1a8b4e)=>{_0x1a8b4e['options']['showSuggestionHighlights']&&_0x3e6904({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4feae7,_0x3dac5f,_0x1a8b4e);},{'priority':'highest'});}),_0x411ff5['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4af521,_0x456b80)=>_0x456b80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4af521['substr'](0xb)}}),_0x411ff5['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xe1a0f2,{writer:_0x3b395d})=>{let _0x2dd6f7='suggestion:'+_0xe1a0f2['getAttribute']('suggestion-type')+':'+_0xe1a0f2['getAttribute']('id');return _0xe1a0f2['getAttribute']('marker-count')&&(_0x2dd6f7+=':'+_0xe1a0f2['getAttribute']('marker-count')),_0x3b395d['createElement']('$marker',{'data-name':_0x2dd6f7});}}),_0x411ff5['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x411ff5['conversion']['for']('editingDowncast')['add'](_0x95be13=>{_0x95be13['on']('addMarker:suggestion:formatBlock',_0x3e6904(),{'priority':'high'});}),_0x411ff5['conversion']['for']('editingDowncast')['add'](_0x21dff1=>{_0x21dff1['on']('addMarker:suggestion:attribute',_0x3e6904({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x411ff5['conversion']['for']('editingDowncast')['add'](_0x10fbbf=>{_0x10fbbf['on']('removeMarker:suggestion:formatBlock',(_0x44dad4,_0xc3910e,_0x760627)=>{const _0x3c69dc=_0x760627['mapper']['markerNameToElements'](_0xc3910e['markerName']);if(_0x3c69dc){for(const _0xcb1d39 of _0x3c69dc)_0xcb1d39['getCustomProperty']('addHighlight')||(_0x760627['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xcb1d39),_0x760627['writer']['removeAttribute']('data-suggestion',_0xcb1d39),_0x760627['writer']['removeAttribute']('data-author-id',_0xcb1d39),_0x760627['mapper']['unbindElementFromMarkerName'](_0xcb1d39,_0xc3910e['markerName']));}},{'priority':'high'});}),_0x411ff5['conversion']['for']('editingDowncast')['add'](_0x138a73=>{_0x138a73['on']('removeMarker:suggestion:attribute',(_0x2f4ab8,_0x31ac26,_0x43f992)=>{const _0x103673=_0x43f992['mapper']['markerNameToElements'](_0x31ac26['markerName']);if(!_0x103673)return;const {id:_0x48581f}=this['_splitMarkerName'](_0x31ac26['markerName']),_0x581ab9=this['_suggestions']['get'](_0x48581f),_0x1544db=this['_getAttributeKey'](_0x581ab9);if(this['_isBlockAttribute'](_0x1544db)){for(const _0x5b7b4a of _0x103673)_0x5b7b4a['getCustomProperty']('addHighlight')||(_0x43f992['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b7b4a),_0x43f992['writer']['removeAttribute']('data-suggestion',_0x5b7b4a),_0x43f992['writer']['removeAttribute']('data-author-id',_0x5b7b4a),_0x43f992['mapper']['unbindElementFromMarkerName'](_0x5b7b4a,_0x31ac26['markerName']));}},{'priority':'high'});}),_0x411ff5['model']['document']['registerPostFixer'](_0x41663c=>{let _0x561239=!0x1;const _0x17c1f7=Array['from'](_0x411ff5['model']['document']['differ']['getChangedMarkers']()),_0x39703f=new Set();for(const {name:_0x49f2a1,data:_0x779fcc}of _0x17c1f7){const {group:_0x393937,type:_0x2ebe81,subType:_0x278c53,id:_0x9b621b}=this['_splitMarkerName'](_0x49f2a1);if('suggestion'!==_0x393937)continue;const _0x2ea929=this['_suggestions']['get'](_0x9b621b);if(null!=_0x779fcc['newRange']){'formatInline'==_0x2ebe81&&(_0x561239=_0x561239||Lt(_0x779fcc['newRange'],_0x49f2a1,_0x41663c,_0x411ff5['model']['schema']));const _0x1d4c71='attribute'==_0x2ebe81&&this['_isBlockAttribute'](_0x278c53['split']('|')[0x0]);if(_0x779fcc['newRange']['isCollapsed']||'$graveyard'==_0x779fcc['newRange']['root']['rootName']||'formatBlock'==_0x2ebe81&&!Ht(_0x779fcc['newRange'])||_0x1d4c71&&!Ht(_0x779fcc['newRange'])||'deletion'==_0x2ebe81&&!(!Ft(_0x378284=_0x779fcc['newRange'])&&!function(_0x310332){return _0x310332['start']['parent']==_0x310332['end']['nodeBefore']&&_0x310332['start']['isAtEnd'];}(_0x378284)))_0x41663c['removeMarker'](_0x49f2a1),_0x561239=!0x0;else{if(!_0x2ea929||!_0x2ea929['isInContent'])continue;if(_0x779fcc['newRange']&&_0x779fcc['oldRange']&&_0x779fcc['newRange']['isEqual'](_0x779fcc['oldRange']))continue;_0x39703f['add'](_0x2ea929);}}}var _0x378284;return _0x39703f['size']>0x0&&(_0x561239=!!this['_joinWithAdjacentSuggestions'](_0x39703f)||_0x561239),_0x561239;}),_0x411ff5['model']['document']['registerPostFixer'](_0x4408c0=>{let _0x21f023=!0x1;for(const _0x3ea4bd of _0x411ff5['model']['document']['differ']['getChanges']())if('insert'==_0x3ea4bd['type'])for(const _0x458bd0 of this['_suggestions']['values']()){if(_0x458bd0['isMultiRange']||!_0x458bd0['isInContent'])continue;const _0x14342f='formatBlock'==_0x458bd0['type'],_0x93f1d9=this['_getAttributeKey'](_0x458bd0),_0x4a85fd=_0x93f1d9&&this['_isBlockAttribute'](_0x93f1d9);if(!_0x14342f&&!_0x4a85fd)continue;const _0x12c2e6=_0x458bd0['getFirstRange']();if(_0x12c2e6['start']['parent']!=_0x12c2e6['end']['parent']&&!_0x12c2e6['end']['isAtEnd']){const _0x465278=_0x411ff5['model']['createPositionAt'](_0x12c2e6['start']['nodeAfter'],'end'),_0x37a0e4=_0x411ff5['model']['createRange'](_0x12c2e6['start'],_0x465278);_0x4408c0['updateMarker'](_0x458bd0['getFirstMarker'](),{'range':_0x37a0e4}),_0x21f023=!0x0;}}return _0x21f023;}),_0x411ff5['model']['document']['registerPostFixer'](_0x98e6f1=>this['_processAttributeChanges'](_0x98e6f1)),_0x411ff5['model']['document']['registerPostFixer'](_0x2594ac=>!_0x2594ac['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2594ac)),_0x411ff5['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x411ff5['model']['document']['on']('change:data',(_0xdcafcb,_0x2e8db0)=>{if(!_0x2e8db0['isLocal']||_0x2e8db0['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x258e1f=_0x411ff5['model']['document']['differ']['getChanges']();if(0x0==_0x258e1f['length'])return;const _0xed5339=[],_0x47367c=_0x258e1f['filter'](_0x3a8e4f=>'attribute'==_0x3a8e4f['type']),_0x4f4f0e=_0x258e1f['filter'](_0x16349e=>'insert'==_0x16349e['type']&&'$text'!=_0x16349e['name']);for(const _0x2f84eb of _0x47367c)this['_isRegisteredAttribute'](_0x2f84eb['attributeKey'])&&_0xed5339['push']({'key':_0x2f84eb['attributeKey'],'newValue':_0x2f84eb['attributeNewValue'],'oldValue':_0x2f84eb['attributeOldValue'],'range':qt(_0x2f84eb['range'],_0x411ff5['model'])});for(const _0x2d1bdd of _0x4f4f0e){if('rename'!=_0x2d1bdd['action']&&'refresh'!=_0x2d1bdd['action'])continue;const _0x245a4c=zt(_0x2d1bdd['position']['nodeAfter'],_0x411ff5['model']),_0x37227e=_0x2d1bdd['before'];'rename'==_0x2d1bdd['action']&&_0xed5339['push']({'key':m,'newValue':_0x2d1bdd['name'],'oldValue':_0x37227e['name'],'range':_0x245a4c});for(const [_0x4b14de,_0x31533a]of _0x37227e['attributes']){if(!this['_isRegisteredAttribute'](_0x4b14de))continue;const _0x25e9d8=_0x2d1bdd['attributes']['get'](_0x4b14de);_0x31533a!==_0x25e9d8&&_0xed5339['push']({'key':_0x4b14de,'newValue':_0x25e9d8,'oldValue':_0x31533a,'range':_0x245a4c});}for(const [_0x3578d9,_0x36ae37]of _0x2d1bdd['attributes'])this['_isRegisteredAttribute'](_0x3578d9)&&(_0x37227e['attributes']['has'](_0x3578d9)||_0xed5339['push']({'key':_0x3578d9,'newValue':_0x36ae37,'oldValue':null,'range':_0x245a4c}));}0x0!=_0xed5339['length']&&_0x411ff5['model']['enqueueChange'](_0x2e8db0,_0x4bd592=>{const _0x11ba93=_0x382bc4();for(const {range:_0xdbc9fe,key:_0x3b7e83,oldValue:_0x51cd7f,newValue:_0x1dc130}of _0xed5339)this['markAttributeChange'](_0xdbc9fe,_0x3b7e83,_0x51cd7f,_0x1dc130,{'groupId':_0x11ba93});this['_reduceExistingSuggestions'](_0x4bd592,_0xed5339);});},{'priority':'lowest'}),_0x411ff5['model']['markers']['on']('update:suggestion',(_0x4e00cf,_0x556619,_0x2b9a66)=>{if(null==_0x2b9a66){const {id:_0x1a6879}=this['_splitMarkerName'](_0x556619['name']),_0x5dc2a7=this['_suggestions']['get'](_0x1a6879);_0x5dc2a7&&_0x5dc2a7['addMarkerName'](_0x556619['name']);}}),_0x411ff5['model']['document']['on']('change:data',()=>{const _0x3c25b3=Array['from'](_0x411ff5['model']['document']['differ']['getChangedMarkers']())['filter'](_0xc8e014=>'suggestion'===this['_splitMarkerName'](_0xc8e014['name'])['group']);if(0x0===_0x3c25b3['length'])return;_0x3c25b3['sort']((_0x11d816,_0x4316b6)=>{const _0x5bfc22=_0x11d816['data']['oldRange'],_0x8ee425=_0x4316b6['data']['oldRange'];return null===_0x5bfc22&&null===_0x8ee425?0x0:null===_0x5bfc22&&null!==_0x8ee425?-0x1:null!==_0x5bfc22&&null===_0x8ee425?0x1:_0x5bfc22['start']['isBefore'](_0x8ee425['start'])?-0x1:0x1;});const _0x111023=new Set(),_0x4c09be=new Set();for(const {name:_0x56f8df,data:_0x450d03}of _0x3c25b3){const {id:_0x5c3aec}=this['_splitMarkerName'](_0x56f8df);if(null===_0x450d03['oldRange']){const _0x30ddd0=this['_handleNewSuggestionMarker'](_0x56f8df);_0x4c09be['add'](_0x30ddd0);}else{const _0x1549c1=this['_suggestions']['get'](_0x5c3aec);null!==_0x450d03['newRange']||_0x1549c1['isInContent']?(_0x111023['add'](_0x1549c1['head']),_0x4c09be['add'](_0x1549c1)):this['_removeSuggestion'](_0x1549c1);}}_0x4c09be['size']>0x0&&this['_refreshSuggestionsChain'](_0x4c09be);for(const _0x11dea6 of _0x111023)this['fire']('suggestionChanged',_0x11dea6);}),_0x411ff5['model']['on']('applyOperation',(_0x4eb3f4,_0x45f0b6)=>{const _0x4e3cd2=_0x45f0b6[0x0];if(!this['_suggestions']['size'])return;if(!_0x4e3cd2['isDocumentOperation'])return;if(_0x4e3cd2['batch']['isUndo']||!_0x4e3cd2['batch']['isLocal'])return;let _0xa482d0,_0x146517;switch(_0x4e3cd2['type']){case'insert':_0xa482d0=_0x411ff5['model']['createPositionAt'](_0x4e3cd2['position']),_0x146517=_0xa482d0['getShiftedBy'](_0x4e3cd2['howMany']);break;case'split':_0xa482d0=_0x411ff5['model']['createPositionAt'](_0x4e3cd2['splitPosition']),_0x146517=_0x411ff5['model']['createPositionAt'](_0x4e3cd2['moveTargetPosition']);break;case'move':_0xa482d0=_0x411ff5['model']['createPositionAt'](_0x4e3cd2['targetPosition']),_0x146517=_0xa482d0['getShiftedBy'](_0x4e3cd2['howMany']);break;default:return;}const _0xfe9a74=_0x411ff5['model']['createRange'](_0xa482d0,_0x146517);_0x411ff5['model']['change'](()=>{for(const {suggestion:_0x23f584,meta:_0x116544}of this['_findSuggestions'](_0xfe9a74)){if(_0x23f584['isMultiRange'])continue;if('formatInline'==_0x23f584['type'])continue;const _0x9e932c=this['_getAttributeKey'](_0x23f584);if(_0x9e932c&&this['_isBlockAttribute'](_0x9e932c)&&'split'!=_0x4e3cd2['type'])continue;const _0x4ebb2f=_0x23f584['data']&&_0x23f584['data']['multipleBlocks'];('formatBlock'!=_0x23f584['type']||'split'==_0x4e3cd2['type']&&!_0x4ebb2f)&&(_0x116544['containsRangeInObject']||'insertion'==_0x23f584['type']&&_0x116544['isOwn']||_0x23f584['getFirstRange']()['containsRange'](_0xfe9a74)&&this['_breakSuggestionMarker'](_0x23f584,_0xa482d0,_0x146517));}});},{'priority':'lowest'}),_0x411ff5['model']['on']('deleteContent',(_0x18e233,_0x298411)=>{const _0xdb9ab=_0x298411[0x0],_0x322ea0=_0x298411[0x1];if(_0x322ea0&&_0x322ea0['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xdb9ab['isCollapsed'])return;const _0x48aa35=_0x411ff5['model']['schema'],{start:_0x27f2cd,end:_0x2fcbe7}=_0xdb9ab['getFirstRange'](),_0x4baf01=_0x27f2cd['nodeAfter']&&_0x48aa35['isLimit'](_0x27f2cd['nodeAfter'])?null:_0x48aa35['getNearestSelectionRange'](_0x27f2cd,'forward'),_0x1a1b53=_0x2fcbe7['nodeBefore']&&_0x48aa35['isLimit'](_0x2fcbe7['nodeBefore'])?null:_0x48aa35['getNearestSelectionRange'](_0x2fcbe7,'backward'),_0x35a824=_0x411ff5['model']['createRange'](_0x4baf01?_0x4baf01['start']:_0x27f2cd,_0x1a1b53?_0x1a1b53['end']:_0x2fcbe7);_0x411ff5['model']['change'](_0x5d914f=>{this['markDeletion'](_0x35a824);const _0x455fbb=_0x411ff5['model']['schema']['getNearestSelectionRange'](_0x35a824['start']);_0xdb9ab['is']('documentSelection')?_0x5d914f['setSelection'](_0x455fbb):_0xdb9ab['setTo'](_0x455fbb);}),_0x18e233['stop']();},{'priority':_0x33629f['normal']+0xa}),_0x411ff5['model']['on']('insertContent',(_0x592f99,_0x24139b)=>{const _0x540b4e=_0x24139b[_0x24139b['length']-0x1];_0x540b4e&&_0x540b4e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x411ff5['model']['change'](()=>{let _0x4236e1=_0x411ff5['model']['insertContent'](_0x24139b[0x0],_0x24139b[0x1],_0x24139b[0x2],{'forceDefaultExecution':!0x0});if(!_0x4236e1)return;_0x592f99['return']=_0x4236e1['clone']();const _0x39dfba=_0x4236e1['end']['nodeBefore'],_0x1346a9=_0x411ff5['model']['schema'];_0x39dfba&&_0x1346a9['isBlock'](_0x39dfba)&&!_0x1346a9['isObject'](_0x39dfba)&&(_0x4236e1=_0x411ff5['model']['createRange'](_0x4236e1['start'],_0x411ff5['model']['createPositionAt'](_0x39dfba,'end'))),this['markInsertion'](_0x4236e1);}),_0x592f99['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xc1553=new O(_0x411ff5,this['_suggestions']);_0x411ff5['commands']['add']('acceptSuggestion',_0xc1553),this['enableCommand']('acceptSuggestion');const _0x1ce2a2=new R(_0x411ff5,this['_suggestions']);_0x411ff5['commands']['add']('discardSuggestion',_0x1ce2a2),this['enableCommand']('discardSuggestion'),_0x411ff5['commands']['add']('acceptAllSuggestions',new x(_0x411ff5,_0xc1553,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x411ff5['commands']['add']('discardAllSuggestions',new x(_0x411ff5,_0x1ce2a2,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x411ff5['commands']['add']('acceptSelectedSuggestions',new E(_0x411ff5,_0xc1553,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x411ff5['commands']['add']('discardSelectedSuggestions',new E(_0x411ff5,_0x1ce2a2,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x349efa=_0x411ff5['plugins']['get']('CommentsRepository');this['listenTo'](_0x349efa,'addComment',(_0x2a236b,{threadId:_0x3c728a})=>{const _0x8609db=this['_suggestions']['get'](_0x3c728a);_0x8609db&&_0x8609db['commentThread']&&0x1===_0x8609db['commentThread']['length']&&this['_updateSuggestionData'](_0x3c728a,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x349efa,'removeComment',(_0x1782d6,{threadId:_0x2afe2c})=>{const _0x416943=this['_suggestions']['get'](_0x2afe2c);_0x416943&&_0x416943['commentThread']&&!_0x416943['commentThread']['length']&&this['_updateSuggestionData'](_0x2afe2c,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xac93ef){const _0x919bdd=_0x2527a8([0x63,0x67,0x4a,0x5a,0x46,0x4b,0x39,0x78,0x4e,0x34,0x41,0x59,0x44,0x77,0x6a,0x72,0x54,0x61,0x6d,0x70,0x56,0x35,0x31,0x36,0x37,0x33,0x75,0x47,0x6f,0x4c,0x58,0x76,0x43,0x38,0x49,0x6e,0x65,0x30,0x73,0x42,0x55,0x6b,0x69,0x50,0x4f,0x66,0x74,0x62,0x45,0x51,0x64,0x48,0x6c,0x7a,0x57,0x68,0x52,0x4d,0x32,0x71,0x79,0x53]),_0x389ac9=0x47129519,_0xbfd72a=0x4715cac1^_0x389ac9,_0x45d821=window[_0x2527a8([0x44,0x61,0x74,0x65])][_0x2527a8([0x6e,0x6f,0x77])](),_0x65965b=_0xac93ef[_0x2527a8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x332e9d=new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3abae3=>{_0x65965b[_0x2527a8([0x6f,0x6e,0x63,0x65])](_0x2527a8([0x72,0x65,0x61,0x64,0x79]),_0x3abae3);}),_0x3054b5={[_0x2527a8([0x6b,0x74,0x79])]:_0x2527a8([0x45,0x43]),[_0x2527a8([0x75,0x73,0x65])]:_0x2527a8([0x73,0x69,0x67]),[_0x2527a8([0x63,0x72,0x76])]:_0x2527a8([0x50,0x2d,0x32,0x35,0x36]),[_0x2527a8([0x78])]:_0x2527a8([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]),[_0x2527a8([0x79])]:_0x2527a8([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]),[_0x2527a8([0x61,0x6c,0x67])]:_0x2527a8([0x45,0x53,0x32,0x35,0x36])},_0x1cc831=_0x65965b[_0x2527a8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2527a8([0x67,0x65,0x74])](_0x2527a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2507dd(){let _0x30e7ab,_0x4d67e3=null,_0x1ebeef=null;try{if(_0x1cc831==_0x2527a8([0x47,0x50,0x4c]))return _0x2527a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30e7ab=_0x57c6bd(),!_0x30e7ab)return _0x2527a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30e7ab[_0x2527a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ebeef=_0x48cb47(_0x30e7ab[_0x2527a8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30e7ab[_0x2527a8([0x6a,0x74,0x69])])),await _0x4850c4()?_0x5d0320()?_0x550939()?_0x2527a8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a8325()?(_0x30e7ab[_0x2527a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2527a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4d67e3=_0xdcd3e3(_0x2527a8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30e7ab[_0x2527a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2527a8([0x74,0x72,0x69,0x61,0x6c])&&(_0x4d67e3=_0xdcd3e3(_0x2527a8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36aa0f()):_0x2527a8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2527a8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2527a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x581f2d){return _0x2527a8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x550939(){const _0x5adbc5=[_0x2527a8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2527a8([0x74,0x72,0x69,0x61,0x6c])][_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30e7ab[_0x2527a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45d821/0x3e8:0xe10*_0xbfd72a;return _0x30e7ab[_0x2527a8([0x65,0x78,0x70])]<_0x5adbc5;}function _0x5d0320(){const _0x37d138=_0x30e7ab[_0x2527a8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x37d138)return!0x1;if(_0x37d138[_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2527a8([0x2a])))return!0x0;if(_0x37d138[_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2527a8([0x54,0x43])))return!0x0;if(_0x37d138[_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2527a8([0x52,0x54,0x43]))){if(_0x2f6f82())return!0x0;if(_0x1e8eb8()||_0x194c9d())return!0x0;}return!0x1;}function _0x4a8325(){const _0x5eb7e5=_0x30e7ab[_0x2527a8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5eb7e5||0x0==_0x5eb7e5[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5a8288}=new URL(window[_0x2527a8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5eb7e5[_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a8288))return!0x0;const _0xfb84a=_0x5a8288[_0x2527a8([0x73,0x70,0x6c,0x69,0x74])](_0x2527a8([0x2e]));return _0x5eb7e5[_0x2527a8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x267bd4=>_0x267bd4[_0x2527a8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2527a8([0x2a])))[_0x2527a8([0x6d,0x61,0x70])](_0x34c1c4=>_0x34c1c4[_0x2527a8([0x73,0x70,0x6c,0x69,0x74])](_0x2527a8([0x2e])))[_0x2527a8([0x73,0x6f,0x6d,0x65])](_0x30e4d5=>_0xfb84a[_0x2527a8([0x65,0x76,0x65,0x72,0x79])]((_0x474ab3,_0x3a91aa)=>_0x30e4d5[_0x3a91aa]===_0x474ab3||_0x30e4d5[_0x3a91aa]===_0x2527a8([0x2a])));}function _0x36aa0f(){return _0x4d67e3&&_0x1ebeef?new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x16c7f9,_0x540860)=>{_0x4d67e3[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x16c7f9,_0x540860),_0x1ebeef[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x5a7b63=>{_0x5a7b63!=_0x2527a8([0x56,0x61,0x6c,0x69,0x64])&&_0x16c7f9(_0x5a7b63);},_0x540860);}):_0x4d67e3||_0x1ebeef||_0x2527a8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48cb47(_0x551267,_0x2c40c4){return new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1233=>{if(_0x3482da())return _0x2a1233(_0x2527a8([0x56,0x61,0x6c,0x69,0x64]));_0x11bafd(),_0x65965b[_0x2527a8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2527a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x34ef93=!0x1;const _0x148db9=_0x382bc4();function _0x1e0c39(_0x59e15e){return!!_0x59e15e&&(typeof _0x59e15e===_0x2527a8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x59e15e===_0x2527a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x59e15e[_0x2527a8([0x74,0x68,0x65,0x6e])]===_0x2527a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x59e15e[_0x2527a8([0x63,0x61,0x74,0x63,0x68])]===_0x2527a8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c9cdc(_0x4f26d4){_0x3d6a65(_0x4f26d4)[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x4457ad=>{if(!_0x4457ad||_0x4457ad[_0x2527a8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2527a8([0x6f,0x6b]))return _0x2527a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x20565c(_0xa41a90(_0x148db9+_0x2c40c4))!=_0x4457ad[_0x2527a8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2527a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2527a8([0x56,0x61,0x6c,0x69,0x64]);})[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x37e36a=>(_0x50bb13(),_0x37e36a),()=>{const _0x507aa7=_0x613175();return null==_0x507aa7?(_0x50bb13(),_0x2527a8([0x56,0x61,0x6c,0x69,0x64])):_0x2527a8(_0x45d821-_0x507aa7>(0x631e1119^_0x389ac9)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x2a1233)[_0x2527a8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2a1233(_0x2527a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f3f71=0x47247b99^_0x389ac9;function _0x50bb13(){const _0x228c59=_0x2527a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x20565c(_0xa41a90(_0x551267)),_0xe9e70f=_0x165f2c(_0x20565c(window[_0x2527a8([0x4d,0x61,0x74,0x68])][_0x2527a8([0x63,0x65,0x69,0x6c])](_0x45d821/_0x3f3f71)));window[_0x2527a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2527a8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x228c59,_0xe9e70f);}function _0x613175(){const _0x4ccf5f=_0x2527a8([0x6c,0x6c,0x63,0x74,0x2d])+_0x20565c(_0xa41a90(_0x551267)),_0x97a15=window[_0x2527a8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2527a8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ccf5f);return _0x97a15?window[_0x2527a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x165f2c(_0x97a15),0x10)*_0x3f3f71:null;}function _0x3d6a65(_0x15f778){return new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53d3d4,_0x1a4ea0)=>{_0x15f778[_0x2527a8([0x74,0x68,0x65,0x6e])](_0x53d3d4,_0x1a4ea0),window[_0x2527a8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a4ea0,0x471341d9^_0x389ac9);});}}_0x65965b[_0x2527a8([0x6f,0x6e])](_0x2527a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d4e48,_0x15baa9)=>{if(_0x15baa9[0x0]!=_0x551267)return _0x2a1233(_0x2527a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15baa9[0x1]={..._0x15baa9[0x1],[_0x2527a8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x148db9};},{[_0x2527a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2527a8([0x68,0x69,0x67,0x68])}),_0x65965b[_0x2527a8([0x6f,0x6e])](_0x2527a8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x43d518=>{_0x1e0c39(_0x43d518[_0x2527a8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x34ef93=!0x0,_0x5c9cdc(_0x43d518[_0x2527a8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2527a8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2527a8([0x6c,0x6f,0x77])}),_0x332e9d[_0x2527a8([0x74,0x68,0x65,0x6e])](()=>{_0x34ef93||_0x2a1233(_0x2527a8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3482da(){return _0x65965b[_0x2527a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2527a8([0x76,0x69,0x65,0x77])][_0x2527a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2527a8([0x61,0x75,0x74,0x6f]);}function _0x11bafd(){_0x65965b[_0x2527a8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2527a8([0x76,0x69,0x65,0x77])][_0x2527a8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2527a8([0x61,0x75,0x74,0x6f]);}}function _0xdcd3e3(_0x418e79){const _0x2e83c9=[new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x514131=>setTimeout(_0x514131,0x471babd5^_0x389ac9)),_0x332e9d[_0x2527a8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45454e=>{let _0x4e99f1=0x0;_0x65965b[_0x2527a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2527a8([0x6f,0x6e])](_0x2527a8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x17e485,_0x105ef3)=>{_0x105ef3[0x0][_0x2527a8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4e99f1++,_0x4e99f1==(0x471294e1^_0x389ac9)&&(_0x45454e(),_0x17e485[_0x2527a8([0x6f,0x66,0x66])]());});}))];return window[_0x2527a8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2527a8([0x72,0x61,0x63,0x65])](_0x2e83c9)[_0x2527a8([0x74,0x68,0x65,0x6e])](()=>_0x418e79);}async function _0x292e41(){await _0x332e9d,_0x65965b[_0x2527a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2527a8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x20afea,_0x65965b[_0x2527a8([0x6d,0x6f,0x64,0x65,0x6c])][_0x2527a8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x20afea,_0x65965b[_0x2527a8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2527a8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2f6f82(){return _0x625116(_0x2527a8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4e4096(_0x2527a8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2527a8([0x73,0x74,0x61,0x74,0x65])]==_0x2527a8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1e8eb8(){return _0x625116(_0x2527a8([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 _0x194c9d(){return _0x625116(_0x2527a8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xc01dd2(_0x1c90a1){const _0x548b52=_0x13baca();_0x65965b[_0x548b52]=_0x2527a8([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c90a1,_0x1c90a1!=_0x2527a8([0x56,0x61,0x6c,0x69,0x64])&&_0x292e41();}function _0x13baca(){const _0x251381=window[_0x2527a8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2527a8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2527a8([0x6e,0x6f,0x77])]())[_0x2527a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2527a8([0x2e]),'');let _0x5c0df5=_0x2527a8([0x63]);for(let _0x14ab2f=0x0;_0x14ab2f<_0x251381[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14ab2f+=0x2){let _0x4ec346=window[_0x2527a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x251381[_0x2527a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14ab2f,_0x14ab2f+0x2));_0x4ec346>=_0x919bdd[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4ec346-=_0x919bdd[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c0df5+=_0x919bdd[_0x4ec346];}return _0x5c0df5;}function _0x57c6bd(){const _0x56fa9c=_0x1cc831[_0x2527a8([0x73,0x70,0x6c,0x69,0x74])](_0x2527a8([0x2e]));if(0x3!=_0x56fa9c[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d8fb9(_0x56fa9c[0x1]);function _0x3d8fb9(_0xfed56a){const _0x554a53=_0x46f33c(_0xfed56a);return _0x554a53&&_0x3957b2()?_0x554a53:null;function _0x3957b2(){const _0x18d2f7=_0x554a53[_0x2527a8([0x6a,0x74,0x69])],_0x1b40f5=window[_0x2527a8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18d2f7[_0x2527a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x18d2f7[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x356914={..._0x554a53,[_0x2527a8([0x6a,0x74,0x69])]:_0x18d2f7[_0x2527a8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x18d2f7[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x356914[_0x2527a8([0x76,0x63])],_0xa41a90(_0x356914)==_0x1b40f5;}}}async function _0x4850c4(){let _0x5b3574=!0x0;try{const _0x1340c0=_0x1cc831[_0x2527a8([0x73,0x70,0x6c,0x69,0x74])](_0x2527a8([0x2e])),[_0x42ddc2,_0x49f415,_0x155d2d]=_0x1340c0;return _0x556c55(_0x42ddc2),await _0x196c10(_0x42ddc2,_0x49f415,_0x155d2d),_0x5b3574;}catch(_0x444b30){return!0x1;}function _0x556c55(_0x2322de){const _0x4117f6=_0x46f33c(_0x2322de);_0x4117f6&&_0x4117f6[_0x2527a8([0x61,0x6c,0x67])]==_0x2527a8([0x45,0x53,0x32,0x35,0x36])||(_0x5b3574=!0x1);}async function _0x196c10(_0x1e12a7,_0x12b9a8,_0x1834fd){const _0x20e0d7=window[_0x2527a8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2527a8([0x66,0x72,0x6f,0x6d])](_0x3eee5c(_0x1834fd),_0x284012=>_0x284012[_0x2527a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x867412=new window[(_0x2527a8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2527a8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1e12a7+_0x2527a8([0x2e])+_0x12b9a8),_0x2a7ef0=window[_0x2527a8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2527a8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2a7ef0)return;const _0x3d0a73=await _0x2a7ef0[_0x2527a8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2527a8([0x6a,0x77,0x6b]),_0x3054b5,{[_0x2527a8([0x6e,0x61,0x6d,0x65])]:_0x2527a8([0x45,0x43,0x44,0x53,0x41]),[_0x2527a8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2527a8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2527a8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2a7ef0[_0x2527a8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2527a8([0x6e,0x61,0x6d,0x65])]:_0x2527a8([0x45,0x43,0x44,0x53,0x41]),[_0x2527a8([0x68,0x61,0x73,0x68])]:{[_0x2527a8([0x6e,0x61,0x6d,0x65])]:_0x2527a8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3d0a73,_0x20e0d7,_0x867412)||(_0x5b3574=!0x1);}}function _0x46f33c(_0x4a511d){return _0x4a511d[_0x2527a8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2527a8([0x65,0x79]))?JSON[_0x2527a8([0x70,0x61,0x72,0x73,0x65])](_0x3eee5c(_0x4a511d)):null;}function _0x3eee5c(_0x149037){return window[_0x2527a8([0x61,0x74,0x6f,0x62])](_0x149037[_0x2527a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2527a8([0x2b]))[_0x2527a8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2527a8([0x2f])));}function _0xa41a90(_0xa53a83){let _0x49fbf9=0x1505;function _0x4fa864(_0x31173c){for(let _0xf52404=0x0;_0xf52404<_0x31173c[_0x2527a8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf52404++){const _0x5a1055=_0x31173c[_0x2527a8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf52404);_0x49fbf9=(_0x49fbf9<<0x5)+_0x49fbf9+_0x5a1055,_0x49fbf9&=_0x49fbf9;}}function _0x33c76f(_0x2d5c52){Array[_0x2527a8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d5c52)?_0x2d5c52[_0x2527a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x33c76f):_0x2d5c52&&typeof _0x2d5c52==_0x2527a8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2527a8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d5c52)[_0x2527a8([0x73,0x6f,0x72,0x74])]()[_0x2527a8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c9ca7,_0x185115])=>{_0x4fa864(_0x1c9ca7),_0x33c76f(_0x185115);}):_0x4fa864(window[_0x2527a8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d5c52));}return _0x33c76f(_0xa53a83),_0x49fbf9>>>0x0;}function _0x20565c(_0xe0d9ad){return _0xe0d9ad[_0x2527a8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2527a8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2527a8([0x30]));}function _0x165f2c(_0x874dbd){return _0x874dbd[_0x2527a8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2527a8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2527a8([0x6a,0x6f,0x69,0x6e])]('');}function _0x625116(_0x39633b){return _0x65965b[_0x2527a8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2527a8([0x68,0x61,0x73])](_0x39633b);}function _0x4e4096(_0x12bcc5){return _0x65965b[_0x2527a8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2527a8([0x67,0x65,0x74])](_0x12bcc5);}function _0x20afea(){}function _0x2527a8(_0x5455b3){return _0x5455b3['map'](_0x9bc90d=>String['fromCharCode'](_0x9bc90d))['join']('');}_0xc01dd2(await _0x2507dd());}(this);}set['adapter'](_0x47765a){if(this['_adapter'])throw new _0x1ee771('track-changes-adapter-already-set',this);this['_adapter']=_0x47765a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x406394=!0x1,toJSON:_0x32c900=!0x1}={}){const _0xb13ef7=[];for(const _0x48b225 of this['_suggestions']['values']())_0x406394&&!_0x48b225['isInContent']||_0xb13ef7['push'](_0x48b225);return _0x32c900?_0xb13ef7['map'](_0x576894=>_0x576894['toJSON']()):_0xb13ef7;}['getSuggestion'](_0x3322ae){const _0x3f9eb3=this['_suggestions']['get'](_0x3322ae);if(!_0x3f9eb3)throw new _0x1ee771('track-changes-suggestion-not-found',this);return _0x3f9eb3;}['hasSuggestion'](_0x13d91c){return this['_suggestions']['has'](_0x13d91c);}['addSuggestionData'](_0x523c65){const {authorId:_0x401b53,id:_0x5f430c,attributes:_0x45ed62}=_0x523c65,[_0x1d0f85,_0x51d1b1]=_0x523c65['type']['split'](':'),_0x45472b=this['_suggestions']['get'](_0x5f430c)||this['_createSuggestion'](_0x1d0f85,_0x51d1b1,_0x5f430c,_0x401b53,_0x45ed62);if(this['_addThreadToSuggestion'](_0x45472b),this['_checkSuggestionCorrectness'](_0x45472b,_0x1d0f85,_0x51d1b1||null,_0x401b53),_0x45472b['createdAt']=_0x523c65['createdAt'],_0x45472b['_isDataLoaded']=!0x0,_0x45ed62&&_0x45ed62['@external']){const _0x2dfc69=_0x45ed62['@external'],_0x49ba39=this['_getExternalAuthor'](_0x2dfc69['authorName']);_0x45472b['authoredAt']=_0x2dfc69['createdAt'],_0x45472b['author']=_0x49ba39,_0x45472b['isExternal']=!0x0;}else _0x45472b['authoredAt']=_0x523c65['createdAt'];switch(_0x523c65['data']&&(_0x45472b['data']=_0x523c65['data']),_0x523c65['attributes']&&(_0x45472b['attributes']=_0x523c65['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x45472b['_saved']=!0x0),this['_suggestionState']['get'](_0x45472b)){case'notReady':this['_suggestionState']['set'](_0x45472b,'dataReady');break;case'markerReady':_0x45472b['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x45472b])),this['_refreshSuggestionsChain'](new Set([_0x45472b])),this['_suggestionState']['set'](_0x45472b,'ready'),this['fire']('suggestionLoaded',_0x45472b)):this['_suggestionState']['set'](_0x45472b,'removed');}return _0x45472b;}['acceptSuggestion'](_0x184be7){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x305844 of _0x184be7['getAllAdjacentSuggestions']())_0x305844['accept']();});});}['discardSuggestion'](_0x3ac8da){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3e5c14 of _0x3ac8da['getAllAdjacentSuggestions']())_0x3e5c14['discard']();});});}['enableCommand'](_0x2c0c0b,_0x3cf598){const _0x10eb85=this['editor']['commands']['get'](_0x2c0c0b);if(!_0x10eb85)throw new _0x1ee771('track-changes-command-not-found',this,{'commandName':_0x2c0c0b});if(this['_enabledCommands']['has'](_0x10eb85))throw new _0x1ee771('track-changes-enable-command-twice',this,{'commandName':_0x2c0c0b});this['_enabledCommands']['add'](_0x10eb85),_0x3cf598&&_0x10eb85['on']('execute',(_0x3aeb57,_0x2a37f3)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x2a37f3['length']>0x0&&_0x2a37f3[_0x2a37f3['length']-0x1]&&_0x2a37f3[_0x2a37f3['length']-0x1]['forceDefaultExecution']?_0x2a37f3['pop']():(_0x3aeb57['return']=_0x3cf598((..._0x474218)=>_0x10eb85['execute'](..._0x474218,{'forceDefaultExecution':!0x0}),..._0x2a37f3),_0x3aeb57['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3bce01){let _0x33f54a,_0x4a6563;const _0x341b50=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x33f54a=_0x3bce01();}catch(_0x103369){_0x4a6563=_0x103369;}return _0x341b50||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4a6563&&_0x1ee771['rethrowUnexpectedError'](_0x4a6563,this),_0x33f54a;}['markInsertion'](_0x19d3ec,_0x23795c=null,_0x12ff12={}){if(_0x19d3ec['isCollapsed'])return null;const _0x5a3c8e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x14b993,meta:_0x471b1a}of this['_findSuggestions'](_0x19d3ec,'insertion'))if(_0x471b1a['isOwn']){if(!_0x471b1a['isNextTo']){if(_0x471b1a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0x14b993,_0x12ff12))continue;return _0x14b993;}if(Qt(_0x14b993,_0x12ff12))return _0x14b993;this['_breakSuggestionMarker'](_0x14b993,_0x19d3ec['start'],_0x19d3ec['end']);break;}if(_0x23795c==_0x14b993['subType']&&Qt(_0x14b993,_0x12ff12)){const _0x3501f3=_0x14b993['getFirstRange']();return _0x3501f3['start']['isEqual'](_0x19d3ec['end'])?this['_setSuggestionRange'](_0x14b993,this['_model']['createRange'](_0x19d3ec['start'],_0x3501f3['end'])):this['_setSuggestionRange'](_0x14b993,this['_model']['createRange'](_0x3501f3['start'],_0x19d3ec['end'])),_0x14b993;}}const _0x17e538=_0x382bc4(),_0xe701fe=_0x5a3c8e['id'],_0xa01e0=_0x23795c?'insertion:'+_0x23795c:'insertion',_0x21f885=this['_setSuggestionData']({'id':_0x17e538,'type':_0xa01e0,'createdAt':new Date(),'authorId':_0xe701fe,'attributes':_0x12ff12});return this['_addSuggestionMarker'](_0xa01e0,_0x17e538,_0xe701fe,_0x19d3ec),_0x21f885;}['markMultiRangeInsertion'](_0x117ee1,_0x2bead2='multi',_0x4a0f3f={}){const _0x21460f=this['editor']['plugins']['get']('Users')['me'],_0x265790=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2bead2,'join');for(const _0x2d20f6 of this['getSuggestions']())if(_0x2d20f6['author']['id']==_0x21460f['id']&&'insertion'==_0x2d20f6['type']&&_0x2d20f6['subType']==_0x2bead2&&Qt(_0x2d20f6,_0x4a0f3f)&&(_0x265790(_0x2d20f6['getRanges'](),_0x117ee1)||_0x265790(_0x117ee1,_0x2d20f6['getRanges']()))){for(const _0x2a1559 of _0x117ee1)_0x2d20f6['addRange'](_0x2a1559);return _0x2d20f6;}for(const {suggestion:_0x183c3d,meta:_0x486eca}of this['_findSuggestions'](_0x117ee1,'insertion')){if(!_0x486eca['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x486eca['containsRangeInObject'])continue;if(!Qt(_0x183c3d,_0x4a0f3f))continue;let _0x4bf428=!0x0;for(const _0x23db49 of _0x183c3d['getRanges']())for(const _0x85604e of _0x117ee1)if(!_0x23db49['containsRange'](_0x85604e)){_0x4bf428=!0x1;break;}if(_0x4bf428)return _0x183c3d;}const _0x22daa0=_0x382bc4(),_0x16e4a0=_0x21460f['id'],_0x466525='insertion:'+_0x2bead2,_0x4c4b28=this['_setSuggestionData']({'id':_0x22daa0,'type':_0x466525,'createdAt':new Date(),'authorId':_0x16e4a0,'attributes':_0x4a0f3f});for(const _0x2f7975 of _0x117ee1)this['_addSuggestionMarker'](_0x466525,_0x22daa0,_0x16e4a0,_0x2f7975,u['getMultiRangeId']());return _0x4c4b28;}['markInlineFormat'](_0xf73e5b,_0x2cab6a,_0x2e0bc5=null,_0x263afa={}){if(_0x2e0bc5=_0x2e0bc5||Jt(_0x2cab6a),_0xf73e5b['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x388de1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e0bc5,'accept');return this['forceDefaultExecution'](()=>_0x388de1([_0xf73e5b],_0x2cab6a,_0x263afa)),null;}const _0x3b3607=this['editor']['plugins']['get']('Users')['me'],_0x2d8489=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4ab124,meta:_0x240ce4}of this['_findSuggestions'](_0xf73e5b,'insertion'))_0x240ce4['isOwn']&&!_0x240ce4['isInsideObject']&&_0x2d8489['push'](..._0x4ab124['getRanges']());}const _0x1f6677=function(_0x282ab3,_0x1a6683){const _0x39d9ec=[];for(const _0x5c3ba6 of _0x1a6683){const _0x297cd3=_0x282ab3['getIntersection'](_0x5c3ba6);_0x297cd3&&_0x39d9ec['push'](_0x297cd3);}return _0x39d9ec;}(_0xf73e5b,_0x2d8489),_0x5f4013=function(_0x21f18c,_0x24963f){const _0x3dfe0c=[_0x21f18c];for(const _0xae5266 of _0x24963f){let _0x1f3082=0x0;for(;_0x1f3082<_0x3dfe0c['length'];){const _0x119fe5=_0x3dfe0c[_0x1f3082]['getDifference'](_0xae5266);_0x3dfe0c['splice'](_0x1f3082,0x1,..._0x119fe5),_0x1f3082+=_0x119fe5['length'];}}return _0x3dfe0c;}(_0xf73e5b,_0x2d8489);_0x1f6677['length']&&this['_model']['change'](()=>{for(const _0x359b46 of _0x1f6677){const _0x21ca67=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2e0bc5,'accept');this['forceDefaultExecution'](()=>_0x21ca67([_0x359b46],_0x2cab6a,_0x263afa));}});for(const _0x507532 of _0x5f4013){let _0x279c89=null,_0x1c871e=_0x507532['start'],_0x493324=_0x507532['end'];for(const {suggestion:_0x3ed751,meta:_0x4bb17d}of this['_findSuggestions'](_0x507532,'formatInline')){if(!_0x4bb17d['isOwn'])continue;if(_0x3ed751['subType']!=_0x2e0bc5)continue;if(!Qt(_0x3ed751,_0x263afa))continue;const _0x1c85c4=_0x3ed751['getFirstRange']();if(_0x1c85c4['containsRange'](_0x507532,!0x0))return null;_0x1c871e=_0x1c871e['isBefore'](_0x1c85c4['start'])?_0x1c871e:_0x1c85c4['start'],_0x493324=_0x493324['isAfter'](_0x1c85c4['end'])?_0x493324:_0x1c85c4['end'],_0x279c89?_0x1c85c4['start']['isBefore'](_0x279c89['getFirstRange']()['start'])?(_0x279c89['removeMarkers'](),_0x279c89=_0x3ed751):_0x3ed751['removeMarkers']():_0x279c89=_0x3ed751;}const _0x542e03=this['_model']['createRange'](_0x1c871e,_0x493324);if(_0x279c89)this['_setSuggestionRange'](_0x279c89,_0x542e03);else{const _0x4fe2cb=_0x382bc4(),_0x3e57a8=_0x3b3607['id'];this['_setSuggestionData']({'id':_0x4fe2cb,'type':'formatInline:'+_0x2e0bc5,'data':_0x2cab6a,'createdAt':new Date(),'authorId':_0x3e57a8,'attributes':_0x263afa}),this['_addSuggestionMarker']('formatInline:'+_0x2e0bc5,_0x4fe2cb,_0x3e57a8,_0x542e03);}}return null;}['markBlockFormat'](_0x8c51f7,_0x20e4f4,_0xce24b4=[],_0x3ecb01=null,_0x27b869={}){_0x20e4f4['formatGroupId']||(_0x20e4f4['formatGroupId']=_0x20e4f4['commandName']),_0x20e4f4['multipleBlocks']=_0x8c51f7['is']('range'),_0x3ecb01=_0x3ecb01||Jt(_0x20e4f4);const _0x4b6e0f=_0xce24b4['map'](_0x4b9ad2=>zt(_0x4b9ad2,this['_model'])),_0x1a3c5b=_0x8c51f7['is']('range')?_0x8c51f7:zt(_0x8c51f7,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5f314f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ecb01,'accept');return this['forceDefaultExecution'](()=>_0x5f314f([_0x1a3c5b],_0x20e4f4,_0x27b869)),null;}_0x4b6e0f['push'](_0x1a3c5b);let _0x3adb75=!0x0;for(const _0x4fffde of _0x4b6e0f)if(!this['_rangeIsInLocalUserInsertion'](_0x4fffde)){_0x3adb75=!0x1;break;}if(_0x3adb75&&'always'!==this['_trackFormatChanges']){const _0x258ead=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3ecb01,'accept');return this['forceDefaultExecution'](()=>_0x258ead([_0x1a3c5b],_0x20e4f4,_0x27b869)),null;}let _0x596d3a=null,_0x3587d1=_0x1a3c5b['start'],_0xd1a4f2=_0x1a3c5b['end'];for(const {suggestion:_0x3a09a4,meta:_0x32f564}of this['_findSuggestions'](_0x1a3c5b,'formatBlock')){if(!_0x32f564['isOwn'])continue;if(_0x32f564['isNextTo']||_0x32f564['containsRangeInObject']||_0x32f564['isInsideObject'])continue;if(_0x3a09a4['data']['formatGroupId']!=_0x20e4f4['formatGroupId'])continue;if(!Qt(_0x3a09a4,_0x27b869))continue;const _0x3154b5=_0x3a09a4['getFirstRange']();if(_0x3a09a4['subType']==_0x3ecb01){if(_0x3154b5['containsRange'](_0x1a3c5b,!0x0))return null;_0x3587d1=_0x3587d1['isBefore'](_0x3154b5['start'])?_0x3587d1:_0x3154b5['start'],_0xd1a4f2=_0xd1a4f2['isAfter'](_0x3154b5['end'])?_0xd1a4f2:_0x3154b5['end'],_0x596d3a?_0x3154b5['start']['isBefore'](_0x596d3a['getFirstRange']()['start'])?(_0x596d3a['removeMarkers'](),_0x596d3a=_0x3a09a4):_0x3a09a4['removeMarkers']():_0x596d3a=_0x3a09a4;}else{const _0x306ddc=_0x1a3c5b['getIntersection'](_0x3154b5);this['_cutOutSuggestionMarker'](_0x3a09a4,_0x306ddc);}}const _0x246f96=this['editor']['plugins']['get']('Users')['me'],_0x10d85d=_0x382bc4(),_0x2160e9=_0x246f96['id'];if(_0x596d3a)return this['_setSuggestionRange'](_0x596d3a,this['_model']['createRange'](_0x3587d1,_0xd1a4f2)),_0x596d3a;{const _0x5b9dc2=this['_setSuggestionData']({'id':_0x10d85d,'type':'formatBlock:'+_0x3ecb01,'data':_0x20e4f4,'createdAt':new Date(),'authorId':_0x2160e9,'attributes':_0x27b869});return this['_addSuggestionMarker']('formatBlock:'+_0x3ecb01,_0x10d85d,_0x2160e9,this['_model']['createRange'](_0x3587d1,_0xd1a4f2)),_0x5b9dc2;}}['markMultiRangeBlockFormat'](_0x41c626,_0xcdbfe0,_0x6d7553=[],_0x465693=null,_0x514ddb={}){_0xcdbfe0['formatGroupId']||(_0xcdbfe0['formatGroupId']=_0xcdbfe0['commandName']);const _0x2cc140=_0x41c626[0x0];_0xcdbfe0['multipleBlocks']=_0x2cc140['is']('range'),_0x465693=_0x465693||Jt(_0xcdbfe0);const _0x21c65e=_0x6d7553['map'](_0xa19c7c=>zt(_0xa19c7c,this['_model'])),_0x39b4be=_0x2cc140['is']('range')?_0x41c626:_0x41c626['map'](_0x22628a=>zt(_0x22628a,this['_model']));if('never'===this['_trackFormatChanges']){const _0x538e4f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x465693,'accept');return this['forceDefaultExecution'](()=>_0x538e4f(_0x39b4be,_0xcdbfe0,_0x514ddb)),null;}_0x21c65e['push'](..._0x39b4be);let _0x36efa8=!0x0;for(const _0x556b66 of _0x21c65e)if(!this['_rangeIsInLocalUserInsertion'](_0x556b66)){_0x36efa8=!0x1;break;}if(_0x36efa8&&'always'!==this['_trackFormatChanges']){const _0x3d5c1f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x465693,'accept');return this['forceDefaultExecution'](()=>_0x3d5c1f(_0x39b4be,_0xcdbfe0,_0x514ddb)),null;}const _0x1b5fa7=this['editor']['plugins']['get']('Users')['me'];for(const _0xddf0bc of this['getSuggestions']()){if(_0xddf0bc['author']['id']!=_0x1b5fa7['id'])continue;if('formatBlock'!=_0xddf0bc['type']||_0xddf0bc['data']['formatGroupId']!=_0xcdbfe0['formatGroupId'])continue;if(!Qt(_0xddf0bc,_0x514ddb))continue;const _0x5e87a4=_0xddf0bc['subType']==_0x465693;for(let _0x2e13eb=0x0;_0x2e13eb<_0x39b4be['length'];_0x2e13eb++){const _0x1abb78=_0x39b4be[_0x2e13eb];for(const _0x2978f6 of _0xddf0bc['getMarkers']()){const _0x423c49=_0x2978f6['getRange']();if(_0x1abb78['isEqual'](_0x423c49)){_0x5e87a4?(_0x39b4be['splice'](_0x2e13eb,0x1),_0x2e13eb--):_0xddf0bc['removeMarker'](_0x2978f6['name']);break;}}}}if(0x0==_0x39b4be['length'])return null;const _0x2365b4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x465693,'join');for(const _0x4b9492 of this['getSuggestions']())if(_0x4b9492['author']['id']==_0x1b5fa7['id']&&'formatBlock'==_0x4b9492['type']&&_0x4b9492['data']['formatGroupId']==_0xcdbfe0['formatGroupId']&&_0x4b9492['subType']==_0x465693&&Qt(_0x4b9492,_0x514ddb)&&(_0x2365b4(_0x4b9492['getRanges'](),_0x39b4be)||_0x2365b4(_0x39b4be,_0x4b9492['getRanges']()))){for(const _0x48185e of _0x39b4be)_0x4b9492['addRange'](_0x48185e);return _0x4b9492;}const _0x1a073f=_0x382bc4(),_0x298408=_0x1b5fa7['id'],_0x3f411f='formatBlock:'+_0x465693,_0x360ea9=this['_setSuggestionData']({'id':_0x1a073f,'type':_0x3f411f,'data':_0xcdbfe0,'createdAt':new Date(),'authorId':_0x298408,'attributes':_0x514ddb});for(const _0x46698e of _0x39b4be)this['_addSuggestionMarker'](_0x3f411f,_0x1a073f,_0x298408,_0x46698e,u['getMultiRangeId']());return _0x360ea9;}['markDeletion'](_0x2e298f,_0x3c7bfb=null,_0x38da5d={}){if(_0x2e298f['isCollapsed'])return null;const _0x4d0f39=this['editor']['plugins']['get']('Users')['me'],_0x182472=new _0x3d77a4(_0x2e298f['start'],_0x2e298f['end']);for(const {suggestion:_0x4c023a,meta:_0x162dbd}of this['_findSuggestions'](_0x182472,'insertion'))if(_0x162dbd['isOwn']&&!_0x162dbd['isNextTo']){if(_0x4c023a['isMultiRange']){const _0x49523b=_0x4c023a['getRanges']()['filter'](_0xcd996e=>'$graveyard'!=_0xcd996e['root']['rootName']);_0x49523b['every'](_0x4f5c1b=>_0x182472['containsRange'](_0x4f5c1b,!0x0))&&_0x4c023a['discard']();if(_0x49523b['some'](_0x313460=>_0x313460['containsRange'](_0x182472,!0x0))){const _0x51fb71=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3c7bfb,'accept');return this['forceDefaultExecution'](()=>_0x51fb71([_0x182472],null,_0x38da5d)),null;}}else{const _0x27bf46=_0x182472['getIntersection'](_0x4c023a['getFirstRange']());null!==_0x27bf46&&_0x4c023a['_onDiscard']([_0x27bf46],null,_0x38da5d);}}if(_0x182472['detach'](),_0x182472['isCollapsed']||'$graveyard'==_0x182472['root']['rootName'])return null;let _0x4a546a=null,_0x4f883e=_0x182472['start'],_0x22b194=_0x182472['end'];const _0x1a5562=this['_findSuggestions'](_0x182472,'deletion');for(const {suggestion:_0x1d2905,meta:_0x422f17}of _0x1a5562){const _0x5f45af=this['_model']['createRange'](_0x4f883e,_0x22b194);if(_0x422f17['isOwn']&&(this['_mergeNestedSuggestions']||!_0x422f17['containsRangeInObject']&&!_0x422f17['isInsideObject'])){if(_0x1d2905['isMultiRange']){if(!Qt(_0x1d2905,_0x38da5d))continue;let _0x2aaaa1=!0x0;for(const _0x2e9999 of _0x1d2905['getRanges']()){if(_0x2e9999['containsRange'](_0x5f45af,!0x0))return _0x1d2905;_0x5f45af['containsRange'](_0x2e9999)||(_0x2aaaa1=!0x1);}_0x2aaaa1&&_0x1d2905['discard']();}else{const _0xbf0e99=_0x1d2905['getFirstRange']();if(_0xbf0e99['containsRange'](_0x5f45af,!0x0))return _0x1d2905;if(!Qt(_0x1d2905,_0x38da5d)){_0x5f45af['containsRange'](_0xbf0e99)?_0x1d2905['removeMarkers']():_0xbf0e99['containsPosition'](_0x4f883e)?_0x4f883e=_0xbf0e99['end']:_0xbf0e99['containsPosition'](_0x22b194)&&(_0x22b194=_0xbf0e99['start']);continue;}_0x4f883e=_0x4f883e['isBefore'](_0xbf0e99['start'])?_0x4f883e:_0xbf0e99['start'],_0x22b194=_0x22b194['isAfter'](_0xbf0e99['end'])?_0x22b194:_0xbf0e99['end'],_0x38da5d=Object['assign']({},_0x1d2905['attributes']),_0x4a546a?_0xbf0e99['start']['isBefore'](_0x4a546a['getFirstRange']()['start'])?(_0x4a546a['removeMarkers'](),_0x4a546a=_0x1d2905):_0x1d2905['removeMarkers']():_0x4a546a=_0x1d2905;}}}if(_0x4a546a)return this['_setSuggestionRange'](_0x4a546a,this['_model']['createRange'](_0x4f883e,_0x22b194)),_0x4a546a;{const _0x5dfc19=_0x382bc4(),_0x566c51=this['_model']['createRange'](_0x4f883e,_0x22b194),_0x5428af=_0x4d0f39['id'],_0x1ca4cd=_0x3c7bfb?'deletion:'+_0x3c7bfb:'deletion',_0x424b41=this['_setSuggestionData']({'id':_0x5dfc19,'type':_0x1ca4cd,'createdAt':new Date(),'authorId':_0x5428af,'attributes':_0x38da5d});return this['_addSuggestionMarker'](_0x1ca4cd,_0x5dfc19,_0x5428af,_0x566c51),_0x424b41;}}['markMultiRangeDeletion'](_0x740537,_0x25b06b='multi',_0x11b8ba={}){const _0x1598f9=this['editor']['plugins']['get']('Users')['me'],_0x1d51fe=_0x740537['map'](_0x550e5a=>new _0x3d77a4(_0x550e5a['start'],_0x550e5a['end'])),_0x43bca5=new Set();for(const {suggestion:_0x155adf,meta:_0x732a06}of this['_findSuggestions'](_0x1d51fe,'insertion'))_0x732a06['isOwn']&&!_0x732a06['isNextTo']&&_0x43bca5['add'](_0x155adf);for(const _0x5c3d33 of _0x43bca5)if(_0x5c3d33['isMultiRange']){const _0x3b8771=_0x5c3d33['getRanges']();(!_0x5c3d33['attributes']||!_0x5c3d33['attributes']['skipNestingCheck'])&&(_0x3b8771['every'](_0x1c29aa=>_0x1d51fe['some'](_0x10f1f1=>_0x10f1f1['containsRange'](_0x1c29aa,!0x0)))&&_0x5c3d33['discard']());if(_0x1d51fe['every'](_0x22c5df=>_0x3b8771['some'](_0x35540e=>_0x35540e['containsRange'](_0x22c5df,!0x0)))){const _0x531240=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b06b,'accept');return this['forceDefaultExecution'](()=>_0x531240(_0x740537,null,_0x11b8ba)),null;}}else{const _0x3d69a9=_0x5c3d33['getFirstRange']();_0x1d51fe['some'](_0xaad222=>_0xaad222['containsRange'](_0x3d69a9,!0x0))&&_0x5c3d33['discard']();if(_0x1d51fe['every'](_0x4a8b90=>_0x3d69a9['containsRange'](_0x4a8b90,!0x0))){const _0x4f2221=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b06b,'accept');return this['forceDefaultExecution'](()=>_0x4f2221(_0x1d51fe,null,_0x11b8ba)),null;}}const _0x306eea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b06b,'join');let _0xc12064=null;for(const _0x2a81cd of this['getSuggestions']())if(_0x2a81cd['author']['id']==_0x1598f9['id']&&_0x2a81cd['isInContent']&&'deletion'==_0x2a81cd['type']&&_0x2a81cd['subType']==_0x25b06b&&Qt(_0x2a81cd,_0x11b8ba)&&(_0x306eea(_0x2a81cd['getRanges'](),_0x1d51fe)||_0x306eea(_0x1d51fe,_0x2a81cd['getRanges']()))){if(_0xc12064){if(_0x2a81cd['commentThread']&&_0x2a81cd['commentThread']['length'])continue;for(const _0x1fd72f of _0x2a81cd['getRanges']())_0xc12064['isIntersectingWithRange'](_0x1fd72f)||_0xc12064['addRange'](_0x1fd72f);_0x2a81cd['removeMarkers']();}else{_0xc12064=_0x2a81cd;for(const _0x4d3f5c of _0x1d51fe)_0x2a81cd['isIntersectingWithRange'](_0x4d3f5c)||_0x2a81cd['addRange'](_0x4d3f5c);}}if(_0xc12064)return _0xc12064;_0x43bca5['clear']();for(const {suggestion:_0x5037d0,meta:_0x662c2f}of this['_findSuggestions'](_0x1d51fe,'deletion'))_0x662c2f['isOwn']&&(this['_mergeNestedSuggestions']||!_0x662c2f['containsRangeInObject']&&!_0x662c2f['isInsideObject'])&&Qt(_0x5037d0,_0x11b8ba)&&_0x43bca5['add'](_0x5037d0);for(const _0x5ee300 of _0x43bca5){const _0x449063=_0x5ee300['getRanges']();if(!_0x11b8ba||!_0x11b8ba['skipNestingCheck']){if(_0x1d51fe['every'](_0x3dc812=>_0x449063['some'](_0x67fb00=>_0x67fb00['containsRange'](_0x3dc812,!0x0))))return _0x5ee300;}(!_0x5ee300['attributes']||!_0x5ee300['attributes']['skipNestingCheck'])&&(_0x449063['every'](_0x13a8bd=>_0x1d51fe['some'](_0x2d3495=>_0x2d3495['containsRange'](_0x13a8bd,!0x0)))&&_0x5ee300['discard']());}const _0x95f6e7=_0x382bc4(),_0x1194ee=_0x1598f9['id'],_0x471665='deletion:'+_0x25b06b,_0x924384=this['_setSuggestionData']({'id':_0x95f6e7,'type':_0x471665,'createdAt':new Date(),'authorId':_0x1194ee,'attributes':_0x11b8ba});for(const _0x5cd2b0 of _0x1d51fe)_0x5cd2b0['detach'](),_0x5cd2b0['isCollapsed']||'$graveyard'==_0x5cd2b0['root']['rootName']||this['_addSuggestionMarker'](_0x471665,_0x95f6e7,_0x1194ee,_0x5cd2b0,u['getMultiRangeId']());return _0x924384;}['markAttributeChange'](_0x33acf8,_0x2ead98,_0x2422bf,_0x27e833,_0xbc7f4b){if(_0x33acf8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x13b61a=this['editor']['plugins']['get']('Users')['me']['id'],_0x4098be=Array['from'](this['_suggestions']['values']())['filter'](_0x29c340=>'attribute'==_0x29c340['type']&&_0x29c340['data']['key']==_0x2ead98&&_0x29c340['isIntersectingWithRange'](_0x33acf8));if('default'===this['_trackFormatChanges']){const _0x1d388a=this['_findSuggestions'](_0x33acf8,'insertion')['filter'](({meta:_0x42be2f})=>_0x42be2f['isOwn']&&!_0x42be2f['isInsideObject']&&!_0x42be2f['isNextTo'])['map'](({suggestion:_0x58a0a4})=>_0x58a0a4);_0x4098be['unshift'](..._0x1d388a);}const _0x9a9c00=new Map([[_0x33acf8,_0x2422bf]]);for(const _0x13b9ff of _0x4098be){const _0x152f51='attribute'==_0x13b9ff['type']?_0x13b9ff['data']['oldValue']:void 0x0,_0x15c76f=_0x13b9ff['getFirstRange'](),_0x2f4002=Array['from'](_0x9a9c00['keys']())['find'](_0x5239d0=>_0x5239d0['isIntersecting'](_0x15c76f));if(!_0x2f4002)continue;const _0x2d0aa7=_0x2f4002['getDifference'](_0x15c76f);this['_isBlockAttribute'](_0x2ead98)&&'insertion'==_0x13b9ff['type']&&0x0!=_0x2d0aa7['length']||(_0x9a9c00['delete'](_0x2f4002),_0x2d0aa7['forEach'](_0x206826=>{_0x9a9c00['set'](_0x206826,_0x2422bf);}),'insertion'!=_0x13b9ff['type']&&_0x152f51!=_0x27e833&&_0x9a9c00['set'](_0x2f4002['getIntersection'](_0x15c76f),_0x152f51));}const _0x561d5d=[];for(const [_0x51b047,_0x3d03d6]of _0x9a9c00){const _0x5b46a6=_0x382bc4(),_0x37e1f7={'key':_0x2ead98,'oldValue':_0x3d03d6,'newValue':_0x27e833};_0x2ead98['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':_0x2ead98});const _0x209de0=('attribute:'+(_0x2ead98+'|'+Jt({'newValue':_0x27e833})))['substring'](0x0,0x3c),_0xdd2203=this['_setSuggestionData']({'id':_0x5b46a6,'type':_0x209de0,'data':_0x37e1f7,'createdAt':new Date(),'authorId':_0x13b61a,'attributes':_0xbc7f4b});_0x561d5d['push'](_0xdd2203),this['_addSuggestionMarker'](_0x209de0,_0x5b46a6,_0x13b61a,_0x51b047);}return _0x561d5d;}['enableDefaultAttributesIntegration'](_0x22ed3c){this['enableCommand'](_0x22ed3c,(_0x35a697,..._0x13ec99)=>{this['_recordAttributeChanges'](()=>{_0x35a697(..._0x13ec99);});});}['registerBlockAttribute'](_0x1cf6d2){this['_blockAttributeKeys']['add'](_0x1cf6d2);}['registerInlineAttribute'](_0xfb2ff4){this['_inlineAttributeKeys']['add'](_0xfb2ff4);}['_getAttributeKey'](_0x3aad9b){return'attribute'==_0x3aad9b['type']?_0x3aad9b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5cf186,_0x346243){const _0x5d0b74=_0x5cf186['getFirstMarker']();this['_model']['change'](_0x153c6d=>{_0x153c6d['updateMarker'](_0x5d0b74,{'range':_0x346243});});}['_addThreadToSuggestion'](_0x1df839){const _0x2a6004=_0x1df839['id'],_0x5772cf=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2a6004)||this['_commentsRepository']['addCommentThread']({'channelId':_0x5772cf,'threadId':_0x2a6004,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x2dae46=this['_commentsRepository']['getCommentThread'](_0x2a6004);_0x2dae46['unbind']('isRemovable'),_0x2dae46['isRemovable']=!0x1,_0x1df839['commentThread']=_0x2dae46;}['_checkSuggestionCorrectness'](_0x36a1a2,_0x1eb593,_0x5348ed,_0x403b81){if(_0x36a1a2['type']!=_0x1eb593||_0x36a1a2['subType']!=_0x5348ed||_0x36a1a2['creator']['id']!=_0x403b81)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1ee771('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x2859c8,_0x11dcb2){const _0x261950=_0x2859c8['getFirstRange']();if(_0x11dcb2['isEqual'](_0x261950))_0x2859c8['removeMarkers']();else{if(_0x261950['containsRange'](_0x11dcb2)){const _0x5a3d39=this['_model']['createPositionAt'](_0x11dcb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2859c8,this['_model']['createRange'](_0x261950['start'],_0x5a3d39));const _0x2f1e7e=_0x382bc4(),_0x67e2bb=_0x2859c8['creator']['id'],_0x106264=_0x2859c8['type']+':'+_0x2859c8['subType'];this['_setSuggestionData']({'id':_0x2f1e7e,'type':_0x106264,'createdAt':new Date(),'authorId':_0x67e2bb,'data':_0x2859c8['data'],'attributes':_0x2859c8['attributes']});const _0x3c2c25=this['_model']['createPositionAt'](_0x11dcb2['end']['parent'],'after'),_0x21c6c9=this['_model']['createRange'](_0x3c2c25,_0x261950['end']);this['_addSuggestionMarker'](_0x106264,_0x2f1e7e,_0x67e2bb,_0x21c6c9);}else{if(_0x261950['containsPosition'](_0x11dcb2['start'])){const _0x50d862=this['_model']['createPositionAt'](_0x11dcb2['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x2859c8,this['_model']['createRange'](_0x261950['start'],_0x50d862));}else{const _0x7f08b8=this['_model']['createPositionAt'](_0x11dcb2['end']['parent'],'after');this['_setSuggestionRange'](_0x2859c8,this['_model']['createRange'](_0x7f08b8,_0x261950['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2733ca){for(const {suggestion:_0x4c6f29,meta:_0xc0fa49}of this['_findSuggestions'](_0x2733ca,'insertion')){if(!_0xc0fa49['isOwn'])continue;const _0x2c2ba8=_0x4c6f29['getRanges']();for(const _0x1b0a66 of _0x2c2ba8)if(!_0x2733ca['getDifference'](_0x1b0a66)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x54de3b){const _0x3d4aaf=this['editor']['plugins']['get']('Users')['getUser'](_0x54de3b);if(!_0x3d4aaf)throw new _0x1ee771('track-changes-user-not-found',this);return _0x3d4aaf;}['_getExternalAuthor'](_0x35e85c){const _0x2421d5=this['editor']['plugins']['get']('Users'),_0x34c34e=_0x39f6f4('external:'+_0x35e85c),_0x3e777c=_0x2421d5['getUser'](_0x34c34e);return _0x3e777c||_0x2421d5['addUser']({'id':_0x34c34e,'name':_0x35e85c});}['_createSuggestion'](_0x43b8c3,_0x2076ff,_0x46f9dd,_0xf8ab86,_0x3c87cc){const _0x516b99=this['_getAuthorFromId'](_0xf8ab86),_0x38a8fa=this['_suggestionFactory']['buildSuggestion'](_0x43b8c3,_0x2076ff,_0x46f9dd,_0x516b99,_0x3c87cc,_0x31d779=>{this['_updateSuggestionData'](_0x46f9dd,{'attributes':_0x31d779});const _0x315d19=this['getSuggestion'](_0x46f9dd);this['_joinWithAdjacentSuggestions'](new Set([_0x315d19])),this['_refreshSuggestionsChain'](new Set([_0x315d19]));});return this['listenTo'](_0x38a8fa,'accept',()=>{this['_updateSuggestionData'](_0x46f9dd,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x38a8fa,'discard',()=>{this['_updateSuggestionData'](_0x46f9dd,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x46f9dd,_0x38a8fa),this['_suggestionState']['set'](_0x38a8fa,'notReady'),_0x38a8fa;}['_splitMarkerName'](_0x15fda2){const _0x3d257f=_0x15fda2['split'](':');return{'group':_0x3d257f[0x0],'type':_0x3d257f[0x1],'subType':_0x3d257f['length']>=0x5?_0x3d257f[0x2]:null,'id':_0x3d257f['length']<0x5?_0x3d257f[0x2]:_0x3d257f[0x3],'authorId':_0x3d257f['length']<0x5?_0x3d257f[0x3]:_0x3d257f[0x4],'markerCount':0x6==_0x3d257f['length']?_0x3d257f[0x5]:null};}['_breakSuggestionMarker'](_0x59b80a,_0x280bfd,_0x2610a3){const _0x11e25b=_0x59b80a['getFirstRange'](),_0x1f28a3=_0x11e25b['start'],_0x2e4138=_0x11e25b['end'];this['_setSuggestionRange'](_0x59b80a,this['_model']['createRange'](_0x1f28a3,_0x280bfd));const _0xd2a5ec=_0x382bc4(),_0x333549=_0x59b80a['creator']['id'],_0x40e61c=_0x59b80a['type']+(_0x59b80a['subType']?':'+_0x59b80a['subType']:'');this['_setSuggestionData']({'id':_0xd2a5ec,'type':_0x40e61c,'createdAt':new Date(),'authorId':_0x333549,'originalSuggestionId':_0x59b80a['id'],'attributes':_0x59b80a['attributes'],'data':_0x59b80a['data']});const _0x44a779=this['_getAttributeKey'](_0x59b80a);('formatBlock'==_0x59b80a['type']||_0x44a779&&this['_isBlockAttribute'](_0x44a779))&&(_0x2610a3=this['_model']['createPositionBefore'](_0x2610a3['parent'])),this['_addSuggestionMarker'](_0x40e61c,_0xd2a5ec,_0x333549,this['_model']['createRange'](_0x2610a3,_0x2e4138));}['_findSuggestions'](_0x500725,_0x170643=null){const _0x1b6f4d=[],_0x275a79=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x500725)||(_0x500725=[_0x500725]);for(const _0x246ae5 of this['getSuggestions']()){if(!_0x246ae5['isInContent'])continue;if(_0x170643&&_0x246ae5['type']!=_0x170643)continue;let _0x241774=!0x1;for(const _0x519bb5 of _0x246ae5['getRanges']()){for(const _0x4aedd8 of _0x500725){const _0x5f1e83=_0x4aedd8['start']['isEqual'](_0x519bb5['end'])||_0x4aedd8['end']['isEqual'](_0x519bb5['start']);if(_0x5f1e83||_0x4aedd8['getIntersection'](_0x519bb5)){const _0x25f80d=_0x4aedd8['containsRange'](_0x519bb5)&&Gt(this['_model']['schema'],_0x519bb5['start'],_0x4aedd8),_0x2379f6=_0x519bb5['containsRange'](_0x4aedd8)&&Gt(this['_model']['schema'],_0x4aedd8['start'],_0x519bb5);_0x1b6f4d['push']({'suggestion':_0x246ae5,'meta':{'isOwn':_0x275a79==_0x246ae5['author'],'isNextTo':_0x5f1e83,'isInsideObject':_0x25f80d,'containsRangeInObject':_0x2379f6}}),_0x241774=!0x0;break;}}if(_0x241774)break;}}return _0x1b6f4d;}['_addSuggestionMarker'](_0x37917f,_0x38469d,_0x17daf4,_0x5519ad,_0x330b20){this['_model']['change'](_0x331a0e=>{let _0x63caa2='suggestion:'+_0x37917f+':'+_0x38469d+':'+_0x17daf4;_0x330b20&&(_0x63caa2=_0x63caa2+':'+_0x330b20),_0x331a0e['addMarker'](_0x63caa2,{'range':_0x5519ad,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x387050){const _0xf1e615=_0x387050['previous'],_0x6f634c=_0x387050['next'];_0x387050['previous']=null,_0x387050['next']=null,null!=_0xf1e615&&_0xf1e615['next']==_0x387050&&(_0xf1e615['next']=_0x6f634c),null!=_0x6f634c&&_0x6f634c['previous']==_0x387050&&(_0x6f634c['previous']=_0xf1e615),'ready'==this['_suggestionState']['get'](_0x387050)&&(this['_suggestionState']['set'](_0x387050,'removed'),this['fire']('suggestionUnloaded',_0x387050,_0xf1e615,_0x6f634c));}['_setSuggestionData'](_0x2a21c1){const _0x57b85b=_0x2a21c1['id'],_0x4050c0=this['addSuggestionData'](_0x2a21c1);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x18c4b6=this['editor']['plugins']['get']('PendingActions'),_0x487012=_0x4050c0['hasComments'],_0x25fa7a=_0x4050c0['subType']?_0x4050c0['type']+':'+_0x4050c0['subType']:_0x4050c0['type'],_0x267fdd=this['editor']['locale'],_0x18efd9=_0x18c4b6['add'](o(_0x267fdd,'PENDING_ACTION_SUGGESTION')),_0x47774b={'id':_0x57b85b,'type':_0x25fa7a,'hasComments':_0x487012,'data':_0x2a21c1['data']||null,'originalSuggestionId':_0x2a21c1['originalSuggestionId']||null,'attributes':_0x4050c0['attributes']};this['_adapter']['addSuggestion'](_0x47774b)['then'](_0x367d38=>{_0x4050c0['_saved']=!0x0,_0x18c4b6['remove'](_0x18efd9),_0x367d38&&_0x367d38['createdAt']&&(this['_suggestions']['get'](_0x57b85b)['createdAt']=_0x367d38['createdAt']);})['catch'](_0x3b5a2e=>{throw _0x120a0a('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4050c0['discard']();}),_0x4050c0['stopListening'](),this['_suggestions']['delete'](_0x4050c0['id']),this['_suggestionState']['delete'](_0x4050c0),_0x3b5a2e;});}return _0x4050c0;}['_isBlockAttribute'](_0x318558){return this['_blockAttributeKeys']['has'](_0x318558);}['_updateSuggestionData'](_0x52a177,_0x1b3450){const _0x57a5da=this['editor']['plugins']['get']('PendingActions'),_0x1e7ddb=this['getSuggestion'](_0x52a177);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1e7ddb['_saved']){const _0x1af831=_0x57a5da['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x52a177,_0x1b3450)['then'](()=>{_0x57a5da['remove'](_0x1af831);});}else _0x1e7ddb['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x52a177,_0x1b3450);});}}['_getSuggestionData'](_0x43a4ec){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1ee771('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x43a4ec);}['_handleNewSuggestionMarker'](_0x1792a7){const {id:_0x1086d4,type:_0x2f3a75,subType:_0x3c67ac,authorId:_0x348a67}=this['_splitMarkerName'](_0x1792a7),_0x2d136c=this['_suggestions']['get'](_0x1086d4)||this['_createSuggestion'](_0x2f3a75,_0x3c67ac,_0x1086d4,_0x348a67,{});switch(this['_checkSuggestionCorrectness'](_0x2d136c,_0x2f3a75,_0x3c67ac,_0x348a67),this['_suggestionState']['get'](_0x2d136c)){case'notReady':this['_getSuggestionData'](_0x1086d4)['then'](_0x2417fe=>{let _0xd4bd7f=Promise['resolve']();_0x2417fe['hasComments']&&(_0xd4bd7f=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1086d4})),_0xd4bd7f['then'](()=>{this['addSuggestionData'](_0x2417fe)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2d136c,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1086d4,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2d136c,'ready'),this['fire']('suggestionLoaded',_0x2d136c);break;case'ready':this['fire']('suggestionChanged',_0x2d136c);}return _0x2d136c['addMarkerName'](_0x1792a7),_0x2d136c;}['_refreshSuggestionsChain'](_0x248aa0){const _0x17b38d=Array['from'](_0x248aa0),_0x1b5a09=_0x17b38d['filter'](_0x198bce=>'attribute'==_0x198bce['type']);this['_refreshAttributeSuggestionsChain'](_0x1b5a09);const _0x4f9d97=_0x17b38d['filter'](_0x4c33f3=>!_0x4c33f3['isMultiRange']&&'attribute'!=_0x4c33f3['type']),_0x3d78fd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4b8532=>!_0x4b8532['isMultiRange']&&'attribute'!=_0x4b8532['type']),_0x48fc2d=_0x3d78fd['filter'](_0x1f24ca=>!_0x248aa0['has'](_0x1f24ca)),_0x546ef6=new Map(_0x3d78fd['map'](_0x36174c=>[_0x36174c,this['_suggestionFactory']['getSuggestionCallback'](_0x36174c['type'],_0x36174c['subType'],'chain')])),_0x242e10=new Map(_0x3d78fd['map'](_0x32de50=>[_0x32de50,_0x32de50['getFirstRange']()])),_0x1e74df=new Set(),_0x22c4fc=new Set();for(let _0xd9ec6c=0x0;_0xd9ec6c<_0x4f9d97['length'];_0xd9ec6c++)_0x227f1a(_0x4f9d97[_0xd9ec6c],_0x4f9d97,_0xd9ec6c+0x1);for(let _0x462863=0x0;_0x462863<_0x4f9d97['length'];_0x462863++)_0x227f1a(_0x4f9d97[_0x462863],_0x48fc2d,0x0);const _0x3b2028=new Set();for(let _0x1e777c=0x0;_0x1e777c<_0x4f9d97['length'];_0x1e777c++){const _0x4fcfec=_0x4f9d97[_0x1e777c];!_0x22c4fc['has'](_0x4fcfec)&&_0x4fcfec['previous']&&(_0x3b2028['add'](_0x4fcfec['previous']),_0x4fcfec['previous']['next']===_0x4fcfec&&(_0x4fcfec['previous']['next']=null),_0x4fcfec['previous']=null),!_0x1e74df['has'](_0x4fcfec)&&_0x4fcfec['next']&&(_0x3b2028['add'](_0x4fcfec['next']),_0x4fcfec['next']['previous']===_0x4fcfec&&(_0x4fcfec['next']['previous']=null),_0x4fcfec['next']=null);}function _0x227f1a(_0x3e0623,_0x57fd7b,_0x420244){for(let _0x2b757d=_0x420244;_0x2b757d<_0x57fd7b['length'];_0x2b757d++){const _0x4e1ffa=_0x3aeb5d(_0x3e0623,_0x57fd7b[_0x2b757d]);_0x4e1ffa&&(_0x4e1ffa[0x0]['next']=_0x4e1ffa[0x1],_0x4e1ffa[0x1]['previous']=_0x4e1ffa[0x0],_0x1e74df['add'](_0x4e1ffa[0x0]),_0x22c4fc['add'](_0x4e1ffa[0x1]));}}function _0x3aeb5d(_0x46ee40,_0x23df17){if(_0x46ee40['author']['id']!==_0x23df17['author']['id'])return null;const _0x26b8cb=_0x546ef6['get'](_0x46ee40)(_0x46ee40,_0x23df17,_0x242e10['get'](_0x46ee40),_0x242e10['get'](_0x23df17));if(!_0x26b8cb)return null;return _0x546ef6['get'](_0x23df17)(_0x46ee40,_0x23df17,_0x242e10['get'](_0x46ee40),_0x242e10['get'](_0x23df17))?_0x26b8cb[0x1]['commentThread']&&_0x26b8cb[0x1]['commentThread']['length']?null:_0x26b8cb:null;}_0x3b2028['size']&&this['_refreshSuggestionsChain'](_0x3b2028);}['_refreshAttributeSuggestionsChain'](_0x2be65c){if(0x0==_0x2be65c['length'])return;const _0x498912=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54656a=>'attribute'==_0x54656a['type']&&_0x54656a['_isDataLoaded']),_0x11ee47=[],_0x31b48a=new Map();for(const _0x5d563a of _0x498912){const _0x3e0f8a=_0x39f6f4(_0x5d563a['attributes']);_0x31b48a['has'](_0x3e0f8a)||(_0x31b48a['set'](_0x3e0f8a,_0x11ee47['length']),_0x11ee47['push']([]));const _0x53b354=_0x31b48a['get'](_0x3e0f8a);_0x11ee47[_0x53b354]['push'](_0x5d563a);}!(function(){_0x11ee47['sort']((_0x238676,_0x9783d2)=>{const _0x148b18=_0x238676[0x0]['createdAt'],_0x120405=_0x9783d2[0x0]['createdAt'];return _0x148b18==_0x120405?_0x238676[0x0]['attributes']['groupId']<_0x9783d2[0x0]['attributes']['groupId']?-0x1:0x1:_0x148b18<_0x120405?-0x1:0x1;});for(const _0x12017b of _0x11ee47)_0x12017b['sort']((_0x261703,_0xe2cac9)=>_0x261703['id']<_0xe2cac9['id']?-0x1:0x1);}());for(let _0x2ecb45=0x0;_0x2ecb45<_0x11ee47['length'];_0x2ecb45++){if(0x0==_0x11ee47[_0x2ecb45]['length'])continue;const _0x162509=[];for(let _0x5a1eb4=_0x2ecb45+0x1;_0x5a1eb4<_0x11ee47['length'];_0x5a1eb4++)0x0!=_0x11ee47[_0x5a1eb4]['length']&&_0x47daeb(_0x11ee47[_0x2ecb45],_0x11ee47[_0x5a1eb4])&&_0x162509['push'](_0x5a1eb4);for(const _0x18b125 of _0x162509)_0x11ee47[_0x2ecb45]=_0x11ee47[_0x2ecb45]['concat'](_0x11ee47[_0x18b125]),_0x11ee47[_0x18b125]=[];}for(const _0x327a21 of _0x11ee47)for(let _0x52842b=0x0;_0x52842b<_0x327a21['length'];_0x52842b++){const _0x34a47e=_0x327a21[_0x52842b+0x1]||null;_0x327a21[_0x52842b]['next']!==_0x34a47e&&(_0x327a21[_0x52842b]['next']=_0x34a47e);}for(const _0x16fc2e of _0x11ee47)for(let _0x25d912=0x0;_0x25d912<_0x16fc2e['length'];_0x25d912++){const _0x59e587=_0x16fc2e[_0x25d912-0x1]||null;_0x16fc2e[_0x25d912]['previous']!==_0x59e587&&(_0x16fc2e[_0x25d912]['previous']=_0x59e587);}function _0x47daeb(_0x41125e,_0x57d4f5){if(_0x41125e[0x0]['attributes']['groupId']!==_0x57d4f5[0x0]['attributes']['groupId']&&_0x41125e[0x0]['author']!==_0x57d4f5[0x0]['author'])return!0x1;if(!function(_0x32fba7,_0x59a115){if(!_0x32fba7['hasComments']&&!_0x59a115['hasComments'])return!0x0;if(_0x32fba7['hasComments']&&_0x59a115['hasComments'])return!0x1;if(_0x32fba7['hasComments']&&_0x59a115['createdAt']<_0x32fba7['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x59a115['hasComments']&&_0x32fba7['createdAt']<_0x59a115['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x41125e[0x0],_0x57d4f5[0x0]))return!0x1;const _0x85377c=Vt(_0x41125e[0x0]['attributes'],'groupId'),_0x513f2a=Vt(_0x57d4f5[0x0]['attributes'],'groupId');if(!_0x3b816e(_0x85377c,_0x513f2a))return!0x1;return!!_0x41125e['every'](_0x5afa16=>_0x57d4f5['some'](_0xf6d6b2=>_0x5afa16['getFirstRange']()['isEqual'](_0xf6d6b2['getFirstRange']())))&&_0x57d4f5['every'](_0x5afa3b=>_0x41125e['some'](_0x218f3f=>_0x5afa3b['getFirstRange']()['isEqual'](_0x218f3f['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x221626){const _0x10fa0c=Array['from'](_0x221626),_0x40849e=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4613fc=_0x40849e['filter'](_0x15e8e2=>!_0x221626['has'](_0x15e8e2)),_0x1a3431=new Map(_0x10fa0c['map'](_0x577e5c=>[_0x577e5c,this['_suggestionFactory']['getSuggestionCallback'](_0x577e5c['type'],_0x577e5c['subType'],'join')])),_0x389aeb=new Map(_0x40849e['map'](_0xc216e2=>[_0xc216e2,_0xc216e2['getRanges']()]));for(let _0x140d0f=0x0;_0x140d0f<_0x10fa0c['length'];_0x140d0f++){if(_0x46f38f(this,_0x10fa0c[_0x140d0f],_0x10fa0c,_0x140d0f+0x1))return!0x0;}for(let _0x5add13=0x0;_0x5add13<_0x10fa0c['length'];_0x5add13++){if(_0x46f38f(this,_0x10fa0c[_0x5add13],_0x4613fc,0x0))return!0x0;}return!0x1;function _0x46f38f(_0x1cf6c6,_0x5f3cbf,_0x57dd47,_0x5d321b){for(let _0x15b7b7=_0x5d321b;_0x15b7b7<_0x57dd47['length'];_0x15b7b7++){const _0x32f74d=_0x57dd47[_0x15b7b7];if(_0x32f74d['type']!==_0x5f3cbf['type']||_0x32f74d['author']['id']!==_0x5f3cbf['author']['id']||_0x32f74d['subType']!==_0x5f3cbf['subType'])continue;if(!Wt(_0x5f3cbf,_0x32f74d))continue;if('attribute'==_0x5f3cbf['type']&&_0x5f3cbf['data']['oldValue']!=_0x32f74d['data']['oldValue'])continue;if('attribute'==_0x5f3cbf['type']&&_0x1cf6c6['_isBlockAttribute'](_0x5f3cbf['data']['key']))continue;if('formatBlock'==_0x5f3cbf['type']){const _0x179925=_0x1cf6c6['editor']['model'],_0x2af831=_0x5f3cbf['getContainedElement']();if(_0x2af831&&(_0x179925['schema']['isObject'](_0x2af831)||_0x179925['schema']['isLimit'](_0x2af831)))continue;}const _0x33f371=_0x1a3431['get'](_0x5f3cbf),_0xc6b7cc=_0x389aeb['get'](_0x5f3cbf),_0x4612e9=_0x389aeb['get'](_0x32f74d),_0x2ed30e=_0x5f3cbf['commentThread']&&_0x5f3cbf['commentThread']['length'],_0x441207=_0x32f74d['commentThread']&&_0x32f74d['commentThread']['length'];if(!_0x2ed30e&&_0x33f371(_0x4612e9,_0xc6b7cc))return _0x1cf6c6['_joinSuggestions'](_0x32f74d,_0x5f3cbf),_0x389aeb['delete'](_0x5f3cbf),!0x0;if(!_0x441207&&_0x33f371(_0xc6b7cc,_0x4612e9))return _0x1cf6c6['_joinSuggestions'](_0x5f3cbf,_0x32f74d),_0x389aeb['delete'](_0x32f74d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x80c491,_0x3153b1){if(_0x80c491['isMultiRange']){for(const _0x573d8b of _0x3153b1['getRanges']())_0x80c491['addRange'](_0x573d8b);}else{const _0x2542f7=_0x3153b1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x80c491,this['_model']['createRange'](_0x80c491['getFirstRange']()['start'],_0x2542f7));}_0x3153b1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x5f1168,_0x5137f5,_0x3c41db){const _0x11ce8c=_0x5f1168['startsWith']('format')||_0x5f1168['startsWith']('attribute')?'FORMATTING':_0x5f1168['toUpperCase']();return o(this['editor']['locale'],_0x5137f5+'_'+_0x11ce8c+'_SUGGESTION_ANNOUNCEMENT',_0x3c41db);}['_initAriaMarkerChangeAnnouncements'](){const _0x566e4b=this['editor'];if(!_0x566e4b['ui'])return;const {ariaLiveAnnouncer:_0x27fcdf}=_0x566e4b['ui'];_0x298dbf(this['_model'],({left:_0x40501b,entered:_0x11b321})=>{for(const _0x35b913 of _0x40501b){const {group:_0x1d653d,type:_0x5ef7b5}=this['_splitMarkerName'](_0x35b913['name']);if('suggestion'===_0x1d653d){_0x27fcdf['announce'](this['_getMarkerAnnouncementText'](_0x5ef7b5,'LEAVE'));break;}}for(const _0x1b5586 of _0x11b321){const {group:_0x41300c,type:_0x304357}=this['_splitMarkerName'](_0x1b5586['name']);if('suggestion'===_0x41300c){_0x27fcdf['announce'](this['_getMarkerAnnouncementText'](_0x304357,'ENTER',_0x12a48f(_0x56da03)));break;}}});}['_processAttributeChanges'](_0x49f1b2){if(this['_recordAttributeSuggestions'])return!0x1;const _0x151bec=this['editor'],_0xa8bc5f=_0x151bec['model']['document']['differ']['getChanges']();if(0x0==_0xa8bc5f['length'])return!0x1;const _0x2a6447=[],_0x3f64a3=_0xa8bc5f['filter'](_0x326a51=>'attribute'==_0x326a51['type']),_0x4d04e4=_0xa8bc5f['filter'](_0x2261b5=>'insert'==_0x2261b5['type']&&'$text'!=_0x2261b5['name']),_0x4cdb09=_0xa8bc5f['filter'](_0x52f555=>'remove'==_0x52f555['type']&&'$text'!=_0x52f555['name']);for(const _0x440c95 of _0x3f64a3)_0x2a6447['push']({'key':_0x440c95['attributeKey'],'newValue':_0x440c95['attributeNewValue'],'oldValue':_0x440c95['attributeOldValue'],'range':qt(_0x440c95['range'],_0x151bec['model'])});for(const _0x338f9e of _0x4d04e4){const _0x2910bf=_0x4cdb09['find'](_0x4531f4=>_0x4531f4['position']['isEqual'](_0x338f9e['position']));_0x2910bf&&_0x2a6447['push']({'key':m,'newValue':_0x338f9e['name'],'oldValue':_0x2910bf['name'],'range':_0x151bec['model']['createRangeOn'](_0x338f9e['position']['nodeAfter'])});}return 0x0!=_0x2a6447['length']&&this['_reduceExistingSuggestions'](_0x49f1b2,_0x2a6447);}['_processAttributeSuggestions'](_0x5e1c13){let _0x17fb85=!0x1;const _0x468efe=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x16762a=>_0x16762a['data']['newRange']&&_0x16762a['name']['startsWith']('suggestion:attribute:'));for(const _0x2748c9 of _0x468efe){const {subType:_0x1dcff0,id:_0x5d020b}=this['_splitMarkerName'](_0x2748c9['name']),_0x3c0078=_0x1dcff0['split']('|')[0x0];for(const _0x5d9dab of this['getSuggestions']({'skipNotAttached':!0x0}))_0x5d9dab['id']!=_0x5d020b&&'attribute'==_0x5d9dab['type']&&_0x5d9dab['data']&&_0x5d9dab['data']['key']==_0x3c0078&&_0x5d9dab['getFirstRange']()['isIntersecting'](_0x2748c9['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x5d9dab,_0x2748c9['data']['newRange'],_0x5e1c13),_0x17fb85=!0x0);}return _0x17fb85;}['_recordAttributeChanges'](_0x2204b2){this['_recordAttributeSuggestions']=!0x0,_0x2204b2();}['_isRegisteredAttribute'](_0x4fc8e1){const _0x23d56e=this['_isBlockAttribute'](_0x4fc8e1),_0x4ac048=this['_inlineAttributeKeys']['has'](_0x4fc8e1);return _0x23d56e||_0x4ac048;}['_reduceExistingSuggestions'](_0x381007,_0x31ec75){if(0x0==_0x31ec75['length'])return!0x1;let _0x87a3ac=!0x1;for(const _0x277b3c of _0x31ec75){const _0x5be815=this['_findSuggestions'](_0x277b3c['range'],'attribute')['filter'](_0xbe3352=>!_0xbe3352['meta']['isNextTo'])['map'](_0x30d473=>_0x30d473['suggestion']),_0xb4f650=_0x39f6f4({'newValue':_0x277b3c['newValue']});_0x5be815['filter'](_0x4f80f5=>{const [_0x2c0c5c,_0x33f363]=_0x4f80f5['subType']['split']('|');return _0x2c0c5c==_0x277b3c['key']&&_0x33f363!=_0xb4f650;})['forEach'](_0x30ecc7=>{this['_reduceSuggestionAttributeRange'](_0x30ecc7,_0x277b3c['range'],_0x381007),_0x87a3ac=!0x0;});}return _0x87a3ac;}['_reduceSuggestionAttributeRange'](_0x4098bb,_0x44c4af,_0x31b7b5){const _0xced39f=_0x4098bb['getFirstRange']()['getDifference'](_0x44c4af);0x0!==_0xced39f['length']?0x1!==_0xced39f['length']?this['_breakSuggestionMarker'](_0x4098bb,_0x44c4af['start'],_0x44c4af['end']):this['_setSuggestionRange'](_0x4098bb,_0xced39f[0x0]):_0x31b7b5['removeMarker'](_0x4098bb['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x43c118){this['_editor']=_0x43c118,this['_model']=_0x43c118['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1b8027,_0x27130a,_0x2151e0,_0x4615ed,_0x4dff05,_0x335609){return new u(this['_model'],{'type':_0x1b8027,'subType':_0x27130a,'id':_0x2151e0,'author':_0x4615ed,'creator':_0x4615ed,'attributes':_0x4dff05,'onAttributesChange':_0x335609,'onAccept':(..._0x29b164)=>this['getSuggestionCallback'](_0x1b8027,_0x27130a,'accept')(..._0x29b164),'onDiscard':(..._0x5c02a6)=>this['getSuggestionCallback'](_0x1b8027,_0x27130a,'discard')(..._0x5c02a6)});}['registerCustomCallback'](_0x184ce9,_0x25ab70,_0x3b9c2c,_0x5999a5){const _0xdc9ae6=_0x184ce9+':'+_0x25ab70+':'+_0x3b9c2c;this['_customCallbacks']['set'](_0xdc9ae6,_0x5999a5);}['getSuggestionCallback'](_0xe38bc0,_0x36321c,_0x492912){const _0x17be53=_0xe38bc0+':'+_0x36321c+':'+_0x492912;return this['_customCallbacks']['get'](_0x17be53)||this['_defaultCallbacks']['get'](_0xe38bc0+':'+_0x492912);}['_registerDefaultCallbacks'](){const _0x1e3bcb=()=>!0x1,_0x4baaff=_0x5d1e65=>{_0x5d1e65['sort']((_0x5d20e8,_0x54e23b)=>_0x5d20e8['start']['isBefore'](_0x54e23b['start'])?0x1:-0x1),this['_model']['change'](_0x4cc23e=>{for(const _0x593b06 of _0x5d1e65){let _0x25c4c3;_0x25c4c3=_0x593b06['end']['isAtEnd']&&_0x593b06['end']['parent']==_0x593b06['start']['nodeAfter']?_0x4cc23e['createSelection'](_0x593b06['start']['nodeAfter'],'on'):_0x4cc23e['createSelection'](_0x593b06),this['_model']['deleteContent'](_0x25c4c3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x34af25=(_0x1778a5,_0x1aaa66)=>{_0x1aaa66&&this['_model']['change'](_0x3c6e26=>{const {commandName:_0x1d959a,commandParams:_0x526298=[]}=_0x1aaa66,_0x117efc=_0x1778a5['map'](_0x5dd881=>(Ft(_0x5dd881)&&(_0x5dd881=this['_model']['createRange'](_0x5dd881['end'])),_0x5dd881))['filter'](_0x593767=>'$graveyard'!==_0x593767['root']['rootName']);if(_0x117efc['length']<0x1)return;const _0x147d11=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x1a6112=>_0x3d77a4['fromRange'](_0x1a6112));_0x3c6e26['setSelection'](_0x117efc);for(const _0x9de0fc of this['_editor']['commands']['commands']())_0x9de0fc['refresh']();_0x526298['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x1d959a,..._0x526298);const _0x251c67=_0x147d11['filter'](_0x28df97=>'$graveyard'!=_0x28df97['root']['rootName']);_0x251c67['length']>0x0&&_0x3c6e26['setSelection'](_0x251c67);for(const _0x4e92da of _0x147d11)_0x4e92da['detach']();});},_0x198eff=(_0xfe170a,_0x2e0bc1)=>0x1==_0xfe170a['length']&&0x1==_0x2e0bc1['length']&&_0xfe170a[0x0]['end']['isEqual'](_0x2e0bc1[0x0]['start']),_0x2e8239=(_0x3e92e3,_0x1b5e9f,_0x1c256b,_0x2ddaf6)=>Kt(_0x3e92e3,_0x1b5e9f,_0x1c256b,_0x2ddaf6)?[_0x3e92e3,_0x1b5e9f]:Kt(_0x1b5e9f,_0x3e92e3,_0x2ddaf6,_0x1c256b)?[_0x1b5e9f,_0x3e92e3]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x1e3bcb),this['_defaultCallbacks']['set']('insertion:discard',_0x4baaff),this['_defaultCallbacks']['set']('insertion:join',_0x198eff),this['_defaultCallbacks']['set']('insertion:chain',_0x2e8239),this['_defaultCallbacks']['set']('deletion:accept',_0x4baaff),this['_defaultCallbacks']['set']('deletion:discard',_0x1e3bcb),this['_defaultCallbacks']['set']('deletion:join',_0x198eff),this['_defaultCallbacks']['set']('deletion:chain',_0x2e8239),this['_defaultCallbacks']['set']('formatInline:accept',_0x34af25),this['_defaultCallbacks']['set']('formatInline:discard',_0x1e3bcb),this['_defaultCallbacks']['set']('formatInline:join',_0x198eff),this['_defaultCallbacks']['set']('formatInline:chain',_0x1e3bcb),this['_defaultCallbacks']['set']('formatBlock:accept',_0x34af25),this['_defaultCallbacks']['set']('formatBlock:discard',_0x1e3bcb),this['_defaultCallbacks']['set']('formatBlock:join',_0x198eff),this['_defaultCallbacks']['set']('formatBlock:chain',_0x1e3bcb),this['_defaultCallbacks']['set']('attribute:accept',_0x1e3bcb),this['_defaultCallbacks']['set']('attribute:discard',(_0x2c24fc,_0x182d93)=>{if(!_0x182d93)return;const _0x46f79d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5a8137=>{if(_0x182d93['key']==m)for(const _0x503dae of _0x2c24fc){const _0x47dc3a=_0x503dae['start']['nodeAfter'],_0x3ca53e=_0x182d93['oldValue'];_0x5a8137['rename'](_0x47dc3a,_0x3ca53e);}else{if(_0x46f79d['_isBlockAttribute'](_0x182d93['key'])){for(const _0x2f9a78 of _0x2c24fc)void 0x0!==_0x182d93['oldValue']?_0x5a8137['setAttribute'](_0x182d93['key'],_0x182d93['oldValue'],_0x2f9a78['start']['nodeAfter']):_0x5a8137['removeAttribute'](_0x182d93['key'],_0x2f9a78['start']['nodeAfter']);}else{for(const _0x34c8af of _0x2c24fc)_0x182d93['oldValue']?_0x5a8137['setAttribute'](_0x182d93['key'],_0x182d93['oldValue'],_0x34c8af):_0x5a8137['removeAttribute'](_0x182d93['key'],_0x34c8af);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x198eff);}}function Gt(_0x26a132,_0x5ad141,_0x4319a8){for(const _0x3de064 of _0x5ad141['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3de064['root']==_0x3de064)return!0x1;if(!_0x4319a8['containsItem'](_0x3de064))return!0x1;if(_0x26a132['isObject'](_0x3de064)||_0x26a132['isLimit'](_0x3de064))return!0x0;}return!0x1;}function Ft(_0xa32a26){return _0xa32a26['end']['parent']==_0xa32a26['start']['nodeAfter']&&_0xa32a26['end']['isAtStart'];}function Lt(_0x393949,_0xbe8c03,_0x226773,_0x274e83){const _0x1748a0=_0x50d295=>!_0x50d295['item']['is']('$textProxy')&&!_0x274e83['isObject'](_0x50d295['item']),_0x565b4b=_0x393949['start']['getLastMatchingPosition'](_0x1748a0),_0x46fcae=_0x393949['end']['getLastMatchingPosition'](_0x1748a0,{'direction':'backward'});return(!_0x393949['start']['isEqual'](_0x565b4b)||!_0x393949['end']['isEqual'](_0x46fcae))&&(_0x565b4b['isBefore'](_0x46fcae)?_0x226773['updateMarker'](_0xbe8c03,{'range':_0x226773['createRange'](_0x565b4b,_0x46fcae)}):_0x226773['removeMarker'](_0xbe8c03),!0x0);}function Jt(_0x2cecbd){return _0x39f6f4(_0x2cecbd);}function Ht(_0x12677b){const _0x407894=_0x12677b['start']['nodeAfter'];return _0x407894&&_0x407894['is']('element');}function qt(_0x32ccf3,_0x414ab8){return null==_0x32ccf3['end']['nodeBefore']&&_0x32ccf3['end']['parent']==_0x32ccf3['start']['nodeAfter']?zt(_0x32ccf3['start']['nodeAfter'],_0x414ab8):_0x32ccf3;}function zt(_0x577191,_0x5d22eb){const _0xe61975=_0x5d22eb['schema']['isObject'](_0x577191)||_0x5d22eb['schema']['isSelectable'](_0x577191);return _0x5d22eb['createRange'](_0x5d22eb['createPositionAt'](_0x577191,'before'),_0xe61975?_0x5d22eb['createPositionAfter'](_0x577191):_0x5d22eb['createPositionAt'](_0x577191,'end'));}function Kt(_0x8f82af,_0x341ee3,_0x5540a1,_0x3ffc44){return!!Wt(_0x8f82af,_0x341ee3)&&_0x5540a1['end']['isEqual'](_0x3ffc44['start']);}function Wt(_0x1770e5,_0x9c5ee6){if(!_0x1770e5['_isDataLoaded']||!_0x9c5ee6['_isDataLoaded'])return!0x1;const _0x35dbaf=new Set(Object['keys'](_0x1770e5['attributes'])),_0x3f1956=new Set(Object['keys'](_0x9c5ee6['attributes']));if(_0x35dbaf['delete']('groupId'),_0x3f1956['delete']('groupId'),0x0==_0x35dbaf['size']&&0x0==_0x3f1956['size'])return!0x0;if(_0x35dbaf['size']!=_0x3f1956['size'])return!0x1;const _0x145420={..._0x1770e5['attributes']},_0x4eb284={..._0x9c5ee6['attributes']};return delete _0x145420['groupId'],delete _0x4eb284['groupId'],JSON['stringify'](_0x145420)==JSON['stringify'](_0x4eb284);}function Qt(_0x2f78d9,_0x5677ff){const _0x33ea1b=Xt(_0x2f78d9['attributes']),_0x10e667=Xt(_0x5677ff);if(!_0x2f78d9['_isDataLoaded'])return!0x1;for(const _0x3fdd9d of Object['keys'](_0x10e667))if(!_0x3b816e(_0x33ea1b[_0x3fdd9d],_0x10e667[_0x3fdd9d]))return!0x1;return!0x0;}function Xt(_0x539122){const _0x323ab9=Object['assign']({},_0x539122);return delete _0x323ab9['skipNestingCheck'],delete _0x323ab9['tablePasteChainId'],_0x323ab9;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x116aa6(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1e29a1,_0x4c6397,_0x40bd0f,_0x31d6b4){super(),this['model']=_0x4c6397,this['view']=_0x40bd0f,this['commentThreadController']=_0x31d6b4,this['_editor']=_0x1e29a1,this['_acceptCommand']=_0x1e29a1['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1e29a1['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2215de,_0x218df0)=>_0x2215de||_0x218df0),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xe447cf=>_0xe447cf&&this['_editor']['model']['canEditAt'](_0x4c6397['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1e30bf=>_0x1e30bf&&this['_editor']['model']['canEditAt'](_0x4c6397['getRanges']())),this['_pendingAction']=null,_0x40bd0f['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x40bd0f,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x40bd0f,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x40bd0f,'change:isDirty',()=>{_0x40bd0f['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 _0x5165de=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5165de);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x29161b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x34e1fe,_0x3d2d11,_0x2a6bf7,_0x3b580a){super(_0x34e1fe),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x596b40(_0x34e1fe,o(_0x34e1fe,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3d2d11['authoredAt']),this['bind']('authoredAt')['to'](_0x3d2d11),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',_0x3d2d11,'authoredAt',this,'descriptionParts',(_0x3d290f,_0x34348d,_0x2a0f45)=>{const _0x2a04b2=_0x2a0f45['map'](_0x42499f=>cs(_0x42499f['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x3d290f-0x1,_0x3d2d11['author']['name'],_0x34348d?_0x3b580a['formatDateTime'](_0x34348d):'',new DOMParser()['parseFromString'](_0x2a04b2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x6dcc9(),this['focusTracker']=new _0x477bc1(),this['keystrokes']=new _0x384d46(),this['focusCycler']=new _0x4d9ab6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4543ce=>_0x4543ce['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3d2d11,this['_localUser']=_0x2a6bf7,this['_config']=_0x3b580a,_0x3b580a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5296d1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f4d04}=this['_config'];this['commentsListView']=new _0x1f4d04(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',_0x41107e=>_0x41107e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4de1f0,_0x5b9836)=>_0x4de1f0||!!_0x5b9836);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x55dd99}=this['_config'],_0x5786ee=new _0x55dd99(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b3876=_0x5786ee['commentInputView'];return _0x5786ee['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b3876,'value',(_0x110999,_0x52452a,_0xb05fa8)=>!!_0xb05fa8||_0x110999&&!_0x52452a),_0x1b3876['on']('submit',(_0x58dfdc,_0x43b939)=>{this['fire']('addComment',_0x43b939),_0x1b3876['editor']['setData']('');}),_0x1b3876['on']('cancel',()=>this['focus']()),_0x1b3876['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5786ee;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x15d93c,_0x24c893,_0x4cb258,_0x25ba66){super(_0x15d93c,_0x24c893,_0x4cb258,_0x25ba66),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4c5ed3=>_0x4c5ed3&&_0x4c5ed3[0x0]?_0x4c5ed3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5ecd12,_0x135057)=>{let _0x2815c2='';for(const _0x25c203 of _0x5ecd12)_0x2815c2+='<p>'+cs(_0x25c203['content'],_0x25c203['color'])+'</p>';return _0x135057?_0x2815c2:_0x3f8634(_0x2815c2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x25ba66['SuggestionView'](_0x15d93c,_0x24c893,{'formatDateTime':_0x25ba66['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 _0x4df686=this['bindTemplate'],_0x111f28=[this['suggestionView']];return this['commentsListView']&&_0x111f28['push'](this['commentsListView']),this['commentThreadInputView']&&_0x111f28['push'](this['commentThreadInputView']),_0x111f28['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x4df686['if']('isActive','ck-suggestion-wrapper--active'),_0x4df686['to']('type',_0x550b5d=>'ck-suggestion-'+_0x550b5d),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':_0x4df686['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x111f28};}['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 fe extends _0x29161b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x403223,_0x67cdde,_0x44297c){super(_0x403223),this['_model']=_0x67cdde,this['_config']=_0x44297c,this['set']('description',''),this['bind']('authoredAt')['to'](_0x67cdde),this['acceptButton']=this['_createButton'](o(_0x403223,'Accept\x20suggestion'),_0x411df1['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x403223,'Discard\x20suggestion'),_0x411df1['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x50aa22(_0x403223,_0x67cdde['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x6dcc9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x477bc1(),this['keystrokes']=new _0x384d46(),this['focusCycler']=new _0x4d9ab6({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3a7577=>_0x3a7577['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x52fcda=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x52fcda['innerHTML']=this['description'],this['on']('change:description',(_0x17df2a,_0x145348,_0x72c5aa)=>{_0x52fcda['innerHTML']=_0x72c5aa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1cadc5=this['bindTemplate'],_0x27a0cf=[{'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':_0x1cadc5['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1cadc5['to']('authoredAt',_0x2621a1=>this['_config']['formatDateTime'](_0x2621a1))}]}]},{'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']&&_0x27a0cf['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':_0x27a0cf}]};}['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'](_0x178560,_0x3bf26c,_0x394ec3,_0x39ccb6,_0x374429){const _0x40f305=new _0x412048(this['locale']);return _0x40f305['set']({'label':_0x178560,'icon':_0x3bf26c,'tooltip':!0x0,'tooltipPosition':_0x374429}),_0x40f305['extendTemplate']({'attributes':{'class':_0x394ec3}}),_0x40f305['on']('execute',()=>{this['fire'](_0x39ccb6,this['_model']['id']);}),_0x40f305;}['_setupKeyboardNavigation'](){const _0x15caf8=this['element'];this['keystrokes']['listenTo'](_0x15caf8);for(const _0x569a4f of this['focusables'])this['focusTracker']['add'](_0x569a4f['element']),this['keystrokes']['listenTo'](_0x569a4f['element']);this['keystrokes']['set']('enter',(_0x567251,_0x15343a)=>{_0x15caf8===_0x567251['target']&&(this['focusCycler']['focusFirst'](),_0x15343a());}),this['keystrokes']['set']('esc',(_0x501885,_0x25c47a)=>{_0x15caf8!==_0x501885['target']&&(this['focus'](),_0x25c47a());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x337a55{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4640ff,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2e6e4b){super(_0x2e6e4b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4c2b62=this['editor']['config'];_0x4c2b62['define']('trackChanges.SuggestionThreadView',pe),_0x4c2b62['define']('trackChanges.SuggestionView',fe),_0x4c2b62['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4c2b62['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x36686b,_0x1fe4ce){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2737a7,_0x561e08]of this['_handleControllerBuffer']){const _0x114ab5=this['_suggestionToController']['has'](_0x2737a7);_0x114ab5||_0x561e08?_0x114ab5&&_0x561e08&&this['_destroyController'](_0x2737a7):this['_initializeController'](_0x2737a7);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x36686b,_0x1fe4ce);}['init'](){const _0x1b5cbb=this['editor'],_0xd3a519=_0x1b5cbb['plugins']['get']('TrackChangesEditing'),_0x26aa6b=_0x1b5cbb['plugins']['get']('Annotations'),_0x4df70f=_0x1b5cbb['plugins']['get']('EditorAnnotations'),_0x145857=_0x1b5cbb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x4df70f['addSourceCollector'](()=>{const _0x5422f2=[];for(const [_0x3a8999,_0x1c8c92]of Array['from'](this['_suggestionToController'])){const _0xf08fbd=_0x3a8999['getAllAdjacentSuggestions'](),_0x4882c1=[];for(const _0x439062 of _0xf08fbd){if(!_0x439062['isInContent'])continue;if(_0x439062['isMultiRange']){_0x4882c1['push'](..._0x439062['getRanges']());continue;}const _0x631dee=_0x439062['getFirstRange']();if(_0x4882c1['length']>0x0){const _0x27de55=_0x4882c1[0x0]['getJoined'](_0x631dee);if(_0x27de55){_0x4882c1[0x0]=_0x27de55;continue;}}_0x4882c1['push'](_0x631dee);}_0x5422f2['push']([_0x1c8c92['view'],_0x4882c1]);}return _0x5422f2;}),this['listenTo'](_0xd3a519,'suggestionLoaded',(_0x344b99,_0x1d31dc)=>{this['listenTo'](_0x1d31dc,'change:previous',(_0x3080a7,_0x2b8000,_0x265d96,_0x2c45d6)=>{_0x1d31dc['isInContent']&&(null==_0x265d96?(this['_updateController'](_0x2c45d6['head']),this['_handleSuggestionControllerDelayed'](_0x1d31dc,!0x1)):(this['_updateController'](_0x265d96['head']),null==_0x2c45d6&&this['_handleSuggestionControllerDelayed'](_0x1d31dc,!0x0)));}),null!==_0x1d31dc['previous']?this['_updateController'](_0x1d31dc['head']):this['_handleSuggestionControllerDelayed'](_0x1d31dc,!0x1);}),this['listenTo'](_0xd3a519,'suggestionUnloaded',(_0x2a71c5,_0x3d4549,_0x4985b9)=>{this['stopListening'](_0x3d4549,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3d4549),this['_suggestionToController']['has'](_0x3d4549)&&this['_destroyController'](_0x3d4549),_0x4985b9&&this['_updateController'](_0x4985b9['head']);}),this['listenTo'](_0xd3a519,'suggestionChanged',(_0x12d75e,_0x9a8171)=>{this['_updateController'](_0x9a8171);}),this['listenTo'](_0x26aa6b,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x145857,'addComment',(_0x2b3eb4,{threadId:_0x4bd3cb,isFromAdapter:_0x4558a7})=>{if(_0x4558a7||!_0xd3a519['hasSuggestion'](_0x4bd3cb))return;const _0x834f32=_0xd3a519['getSuggestion'](_0x4bd3cb);this['_suggestionToController']['get'](_0x834f32)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xa62dbd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c1e18;for(const _0x9439cb in _0xa62dbd){const _0x3a0f14=_0x9439cb,_0x17dd10=_0xa62dbd[_0x3a0f14];if('trackChangesLicenseKeyValid'==_0x17dd10||'trackChangesLicenseKeyInvalid'==_0x17dd10||'trackChangesLicenseKeyExpired'==_0x17dd10||'trackChangesLicenseKeyDomainLimit'==_0x17dd10||'trackChangesLicenseKeyNotAllowed'==_0x17dd10||'trackChangesLicenseKeyEvaluationLimit'==_0x17dd10||'trackChangesLicenseKeyTrialLimit'==_0x17dd10||'trackChangesLicenseKeyUsageLimit'==_0x17dd10){delete _0xa62dbd[_0x3a0f14],_0x3c1e18=_0x17dd10,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x3c1e18&&_0xa62dbd['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x301744=this['editor']['plugins']['get']('Annotations'),_0x1732dd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4dabe3=Array['from'](_0x301744['activeAnnotations'],_0x162974=>_0x162974['innerView'])['filter'](_0x4e14b1=>this['_viewToController']['has'](_0x4e14b1)),_0x17efa5=[];for(const _0x2635dd of _0x4dabe3){const _0x5bd110=this['_viewToController']['get'](_0x2635dd)['model']['getAllAdjacentSuggestions']();_0x17efa5['push'](..._0x5bd110['reduce']((_0x3fab76,_0x2c13b3)=>[..._0x3fab76,..._0x2c13b3['getMarkerNames']()],[]));}_0x1732dd['activeMarkers']=_0x17efa5;}['_addUIComponentsToFactory'](){const _0x46853f=this['editor'],_0x5666c4=_0x46853f['locale'],_0x2f550c=o(_0x5666c4,'Track\x20changes'),_0x860d78=new _0x3583f9([{'type':'switchbutton','model':new _0x5be1d6({'withText':!0x0,'isToggleable':!0x0,'label':_0x2f550c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5be1d6({'withText':!0x0,'label':o(_0x5666c4,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5be1d6({'withText':!0x0,'label':o(_0x5666c4,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5be1d6({'withText':!0x0,'label':o(_0x5666c4,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5be1d6({'withText':!0x0,'label':o(_0x5666c4,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x46853f['plugins']['has']('TrackChangesPreview')&&_0x860d78['addMany']([{'type':'separator'},{'type':'button','model':new _0x5be1d6({'withText':!0x0,'label':o(_0x5666c4,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1e977c of _0x860d78)if(ke(_0x1e977c)){const _0x3570b6=_0x46853f['commands']['get'](_0x1e977c['model']['commandName']);_0x1e977c['model']['bind']('isOn','isEnabled')['to'](_0x3570b6,'value','isEnabled');}_0x46853f['ui']['componentFactory']['add']('trackChanges',_0x4742fa=>this['_createToolbarButton'](_0x4742fa,_0x860d78,_0x2f550c)),_0x46853f['ui']['componentFactory']['add']('menuBar:trackChanges',_0x36b874=>this['_createMenuBarMenu'](_0x36b874,_0x860d78,_0x2f550c));}['_createToolbarButton'](_0x35b025,_0x623d5a,_0x5f1394){const _0x52a390=_0x36e518(_0x35b025,_0x5ed2e9),_0x2a1ba1=this['editor']['commands']['get']('trackChanges');_0x52a390['buttonView']['set']({'tooltip':_0x5f1394,'label':_0x5f1394,'icon':we}),_0x52a390['buttonView']['bind']('isOn')['to'](_0x2a1ba1,'value'),_0x52a390['buttonView']['on']('execute',()=>{_0x2a1ba1['execute'](),this['editor']['editing']['view']['focus']();}),_0xaec9c4(_0x52a390,_0x623d5a,{'role':'menu'});const _0x4043ed=[];for(const _0x3189ea of _0x623d5a)ke(_0x3189ea)&&_0x4043ed['push'](this['editor']['commands']['get'](_0x3189ea['model']['commandName']));const _0x2988aa=_0x52a390['buttonView'];return _0x2988aa['actionView']['unbind']('isEnabled'),_0x2988aa['arrowView']['unbind']('isEnabled'),_0x2988aa['actionView']['bind']('isEnabled')['to'](_0x2a1ba1,'isEnabled'),_0x2988aa['arrowView']['bind']('isEnabled')['toMany'](_0x4043ed,'isEnabled',(..._0x351c12)=>_0x351c12['some'](_0xacee70=>_0xacee70)),_0x52a390['on']('execute',_0x215de7=>{this['editor']['execute'](_0x215de7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x52a390;}['_createMenuBarMenu'](_0x2ba2a3,_0x3457d9,_0x160e5f){const _0x51f7ef=new _0x3ff63a(_0x2ba2a3),_0x144727=this['editor']['commands']['get']('trackChanges');_0x51f7ef['buttonView']['set']({'label':_0x160e5f,'icon':we});const _0x329edb=new _0x404bf7(_0x2ba2a3);for(const _0x3e5a5f of _0x3457d9){if('separator'==_0x3e5a5f['type']){_0x329edb['items']['add'](new _0x4651d0(_0x2ba2a3));continue;}const _0x2ccc2b=new _0x7409c6(_0x2ba2a3,_0x51f7ef),_0x359307=new _0x120271(_0x2ba2a3),_0x400f4d=_0x3e5a5f['model'];_0x359307['bind'](...Object['keys'](_0x400f4d))['to'](_0x400f4d),_0x359307['delegate']('execute')['to'](_0x51f7ef),_0x359307['on']('execute',()=>{this['editor']['execute'](_0x400f4d['commandName']),this['editor']['editing']['view']['focus']();}),_0x2ccc2b['children']['add'](_0x359307),_0x329edb['items']['add'](_0x2ccc2b);}return _0x51f7ef['bind']('isEnabled')['to'](_0x144727,'isEnabled'),_0x51f7ef['panelView']['children']['add'](_0x329edb),_0x51f7ef;}['_initializeController'](_0x3ae40c){const _0x469229=this['editor'],_0x4ea965=_0x469229['config'],_0x5e4d34=_0x469229['plugins']['get']('Annotations'),_0x4390e6=_0x469229['plugins']['get']('CommentsRepository'),_0x33cc48=_0x469229['plugins']['get']('EditorAnnotations'),_0x48002d=_0x469229['plugins']['get'](_0x4640ff)['me'],_0x413c40=_0x4ea965['get']('trackChanges')['SuggestionThreadView'],_0x2836ee=_0x4ea965['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x4e8a16,CommentThreadInputView:_0x48ded6}=_0x469229['plugins']['get']('CommentsUI');let _0x11a640,_0x3f0afc,_0x2e2b68;this['_annotationViews']['has'](_0x3ae40c['id'])?(_0x3f0afc=this['_annotationViews']['get'](_0x3ae40c['id']),_0x11a640=_0x3f0afc['mainView']):(_0x11a640=new _0x413c40(_0x469229['locale'],_0x3ae40c,_0x48002d,{'disableComments':this['_disableComments'],'editorConfig':{..._0x4ea965['get']('comments.editorConfig'),'licenseKey':_0x4ea965['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x4ea965['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x4ea965['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x4ea965['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x40a2ac(_0x4ea965['get']('locale')),'CommentView':_0x4ea965['get']('comments')['CommentView'],'CommentsListView':_0x4e8a16,'CommentThreadInputView':_0x48ded6,'SuggestionView':_0x2836ee}),_0x11a640['suggestionView']['acceptButton']['on']('execute',()=>{_0x469229['editing']['view']['focus']();}),_0x11a640['suggestionView']['discardButton']['on']('execute',()=>{_0x469229['editing']['view']['focus']();}),_0x3f0afc=_0x5e4d34['createAnnotationView'](this['editor']['locale'],_0x11a640),_0x3f0afc['bind']('isDirty')['to'](_0x11a640,'isDirty'),_0x3f0afc['bind']('length')['to'](_0x11a640),_0x3f0afc['bind']('type')['to'](_0x11a640,'type',_0x3ab3f9=>'suggestion-'+_0x3ab3f9),_0x11a640['on']('escape',()=>{_0x2e2b68['fire']('escape');}),this['_annotationViews']['set'](_0x3ae40c['id'],_0x3f0afc));const _0x3e6a35=_0x4390e6['createCommentThreadController'](_0x3ae40c['commentThread'],_0x11a640),_0x2760e9=new Ce(_0x469229,_0x3ae40c,_0x11a640,_0x3e6a35),_0xc710ef=_0x3ae40c['getAllAdjacentSuggestions']()['filter'](_0x242d7a=>_0x242d7a['isInContent']);_0x11a640['descriptionParts']=_0x469229['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0xc710ef),this['_suggestionToController']['set'](_0x3ae40c,_0x2760e9),this['_viewToController']['set'](_0x11a640,_0x2760e9),_0x2e2b68=_0x5e4d34['createAnnotation']({'view':_0x3f0afc,'target':()=>{const _0x840a6a=[],_0x371121=_0x3ae40c['getAllAdjacentSuggestions']()['filter'](_0xd0b0d9=>_0xd0b0d9['isInContent']);for(const _0x1db996 of _0x371121)_0x840a6a['push'](..._0x1db996['getMarkers']());return _0x12e39b(_0x469229['editing'],_0x840a6a);},'type':()=>'suggestion-'+_0x2760e9['view']['type']}),_0x4390e6['_bindAnnotationToEditors'](_0x11a640,_0x2e2b68),_0x5e4d34['add'](_0x2e2b68),_0x33cc48['registerAnnotation'](_0x2e2b68);}['_destroyController'](_0x1b6c7c){const _0x54b3c9=this['editor']['plugins']['get']('CommentsRepository'),_0x56bf60=this['editor']['plugins']['get']('Annotations'),_0x5439b2=this['_suggestionToController']['get'](_0x1b6c7c),_0x45899b=_0x5439b2['view'],_0x769673=_0x56bf60['getByInnerView'](_0x45899b);_0x54b3c9['_unbindEditors'](_0x45899b),_0x769673&&_0x56bf60['remove'](_0x769673),this['_suggestionToController']['delete'](_0x1b6c7c),this['_viewToController']['delete'](_0x45899b),_0x5439b2['destroy']();}['_updateController'](_0x1e6058){if(!_0x1e6058['isInContent']||!this['_suggestionToController']['has'](_0x1e6058))return;const _0x4c1d04=this['editor']['plugins']['get']('TrackChangesEditing'),_0x389003=this['_suggestionToController']['get'](_0x1e6058),_0x239d97=_0x1e6058['getAllAdjacentSuggestions']();_0x389003['view']['descriptionParts']=_0x4c1d04['descriptionFactory']['getDescriptions'](_0x239d97);}['destroy'](){for(const _0x249b6d of this['_suggestionToController']['keys']())this['_destroyController'](_0x249b6d);for(const _0x559f54 of this['_annotationViews']['values']())_0x559f54['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2cbcdd){return'model'in _0x2cbcdd;}class k extends _0x337a55{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x3b7af4){this['editor']['plugins']['get'](p)['adapter']=_0x3b7af4;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x130e3f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x130e3f);}['getSuggestions']({skipNotAttached:_0x47f5a7=!0x1,toJSON:_0x313268=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x47f5a7,'toJSON':_0x313268});}['getSuggestion'](_0x1b4558){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x1b4558);}}const w=['Pagination'];class T extends _0x337a55{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x5e11a2=this['editor'];if(_0x5e11a2['config']['define']('trackChangesData.editorCreator',_0x424aca=>{const _0x4fa8a6=_0x5e11a2['model']['document']['getRootNames']()['reduce']((_0x4e1249,_0x3811cd)=>(_0x4e1249[_0x3811cd]='',_0x4e1249),{});return _0x5e11a2['constructor']['create'](_0x4fa8a6,_0x424aca);}),'function'!=typeof _0x5e11a2['config']['get']('trackChangesData')['editorCreator'])throw new _0x1ee771('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x1c6d02){return N(this['editor'],!0x0,_0x1c6d02);}['getDataWithDiscardedSuggestions'](_0x1cf3de){return N(this['editor'],!0x1,_0x1cf3de);}}class D extends _0x337a55{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x198acf){function _0x532038(_0x43447c){return _0x43447c['map'](_0xb71eaa=>String['fromCharCode'](_0xb71eaa))['join']('');}super(_0x198acf),this['result']='end',_0x198acf[_0x532038([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x532038([0x76,0x69,0x65,0x77])][_0x532038([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x532038([0x61,0x75,0x74,0x6f]),_0x198acf[_0x532038([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x532038([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x532038([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x532038([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x532038([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 Fe(_0x1a8685){return void 0x0!==_0x1a8685['getRootsAttributes'];}async function N(_0x560d8d,_0x3bec5a,_0x31841c){const _0x1e5239=_0x1931cc(_0x560d8d,w);_0x1e5239['plugins']['push'](p,D),_0x1e5239['rootsAttributes']=Fe(_0x560d8d)?_0x560d8d['getRootsAttributes']():void 0x0;const _0x5ee467=document['createDocumentFragment'](),_0x4a335c=_0x560d8d['config']['get']('trackChangesData')['editorCreator'],_0x2b0fd4=await _0x4a335c(_0x1e5239,()=>function(_0x573491){const _0x4050c4=document['createElement']('div');return _0x573491['appendChild'](_0x4050c4),_0x4050c4;}(_0x5ee467));!function(_0x2d5225,_0x562be4){const _0x24956b=_0x2d5225['model']['document']['getRootNames']()['reduce']((_0x1ca97d,_0x2f2487)=>(_0x1ca97d[_0x2f2487]=_0x2d5225['data']['get']({'rootName':_0x2f2487}),_0x1ca97d),{}),_0x5439eb=_0x2d5225['plugins']['get']('Users')['users']['map'](_0x1e011a=>({'id':_0x1e011a['id'],'name':_0x1e011a['name']})),_0xf5e305=_0x2d5225['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5e1502=_0x2d5225['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2abe52=_0x562be4['plugins']['get']('Users'),_0x6e17aa=_0x562be4['plugins']['get']('TrackChangesEditing'),_0xc1f613=_0x562be4['plugins']['get']('CommentsRepository');for(const _0x5198a0 of _0xc1f613['getCommentThreads']())_0x5198a0['remove']();for(const _0x14dd7c of _0x5439eb)_0x2abe52['getUser'](_0x14dd7c['id'])||_0x2abe52['addUser'](_0x14dd7c);_0x2abe52['me']||_0x2abe52['useAnonymousUser']();for(const _0x1a9bef of _0x5e1502)_0xc1f613['addCommentThread'](_0x1a9bef);for(const _0x26a96d of _0xf5e305)_0x6e17aa['addSuggestionData'](_0x26a96d);_0x562be4['data']['set'](_0x24956b);}(_0x560d8d,_0x2b0fd4),_0x2b0fd4['execute'](_0x3bec5a?'acceptAllSuggestions':'discardAllSuggestions');const _0x31dca7=Fe(_0x2b0fd4)?_0x2b0fd4['getFullData'](_0x31841c):_0x2b0fd4['data']['get'](_0x31841c);return await _0x2b0fd4['destroy'](),_0x31dca7;}class Me extends _0x29161b{['options'];constructor(_0x450975,_0x2c74f4){super(_0x450975),this['options']=_0x2c74f4,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'](_0x4e0fa3,_0x1beb17){if(!this['element'])return;const _0x17a42b=[];for(const [_0x2247ac,_0x57b4f5]of _0x4e0fa3){const _0x9e6d2d=document['createElement']('div');_0x9e6d2d['setAttribute']('data-ck-root-name',_0x2247ac),_0x9e6d2d['className']=_0x57b4f5['classes']+'\x20ck-track-changes-preview__root-container',_0x9e6d2d['innerHTML']=_0x57b4f5['content'],_0x17a42b['push'](_0x9e6d2d);}_0x1beb17(this['element'],_0x17a42b),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x372a2c){super(_0x372a2c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x44751e=this['editor'],_0x2efc3e=_0x44751e['locale'],_0x311d1c=_0x44751e['plugins']['get']('Dialog');let _0x2c863d;const _0x671e86=function(_0x1986e1){const _0x555c6c={};if('editables'in _0x1986e1['ui']['view']){for(const [_0xdb1b52,_0x4ed4ed]of Object['entries'](_0x1986e1['ui']['view']['editables']))_0x555c6c[_0xdb1b52]=_0x4ed4ed['element'];}else _0x555c6c[_0x1986e1['model']['document']['getRootNames']()[0x0]]=_0x1986e1['ui']['view']['editable']['element'];return _0x555c6c;}(_0x44751e),_0x115f71=function(_0x1ffb6b){let _0x543deb=0x0;for(const _0xf3828e of Object['values'](_0x1ffb6b))_0x543deb=Math['max'](_0x543deb,_0xf3828e['getBoundingClientRect']()['width']);let _0x114b4f=0x0;for(const _0x3da1ce of Object['values'](_0x1ffb6b))_0x114b4f+=_0x3da1ce['getBoundingClientRect']()['height'];const _0x4e2c81=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5ca5ba=Math['min'](_0x114b4f,_0x4e2c81);return{'width':_0x543deb,'height':_0x5ca5ba};}(_0x671e86);_0x311d1c['show']({'id':'finalContentPreview','title':o(_0x2efc3e,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2efc3e,{'dialogRects':_0x115f71}),'onHide':()=>{_0x2c863d['detachFromDom']();},'onShow':()=>{_0x44751e['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4abe3c=>{const _0x159234=this['_standarizeRootsData'](_0x4abe3c,_0x44751e,_0x671e86);_0x311d1c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x159234,_0x44751e['config']['get']('trackChanges.preview.renderFunction'));}),_0x2c863d=new _0x5b8ff0(_0x2efc3e,[_0x311d1c['view']]),_0x2c863d['attachToDom'](),_0x2c863d['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x44751e['once']('destroy',()=>{_0x2c863d['detachFromDom']();});const _0x1acd30=_0x311d1c['view']['headerView']['class'];_0x311d1c['view']['headerView']['class']=_0x1acd30?_0x1acd30+'\x20ck-reset_all':'ck-reset_all',_0x311d1c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x311d1c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x73aa35=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x2165f2=_0x73aa35['previewMode'],_0x5944ad={};if('$labels'===_0x2165f2){for(const _0x529ec6 of _0x73aa35['getMergeFieldsIds']())_0x5944ad[_0x529ec6]=_0x73aa35['getLabel'](_0x529ec6)||_0x529ec6;}else{const _0x114e3f='$defaultValues'===_0x2165f2?_0x73aa35['getDefaultValues']():_0x73aa35['getDataSetValues'](_0x2165f2,!0x0);for(const _0x4dea9f of Object['entries'](_0x114e3f)){const [_0x2d82eb,_0x2ce243]=_0x4dea9f;_0x5944ad[_0x2d82eb]=null!==_0x2ce243?_0x2ce243:_0x73aa35['getLabel'](_0x2d82eb)||_0x2d82eb;}}return{'mergeFieldsData':_0x5944ad};}['_standarizeRootsData'](_0x16fdd1,_0x2f7958,_0x8f2a65){let _0x5e8f69;if('string'==typeof _0x16fdd1){const _0x475c2f=_0x2f7958['model']['document']['getRootNames']()[0x0];_0x5e8f69={[_0x475c2f]:_0x16fdd1};}else _0x5e8f69=_0x16fdd1;const _0x289c81=this['_fixMediaEmbeds'](_0x5e8f69,_0x2f7958),_0x99ade9=function(_0x24286a,_0x5e31da){for(const [_0x1bb321,_0x229813]of _0x24286a)_0x229813['classes']=_0x5e31da[_0x1bb321]['classList']['value']['replace']('ck-focused','');return _0x24286a;}(this['_sortRoots'](_0x2f7958)['reduce']((_0x1f83e7,_0x13af23)=>(_0x1f83e7['push']([_0x13af23,{'content':_0x289c81[_0x13af23],'classes':''}]),_0x1f83e7),[]),_0x8f2a65);return _0x99ade9;}['_fixMediaEmbeds'](_0x488610,_0x9aecdc){if(!_0x9aecdc['plugins']['has']('MediaEmbedEditing'))return _0x488610;const _0x9003a0=_0x9aecdc['plugins']['get']('MediaEmbedEditing');for(const [_0x39bc58,_0x5b2de5]of Object['entries'](_0x488610)){const _0x12ad9a=document['createElement']('div');_0x12ad9a['innerHTML']=_0x5b2de5,(_0x12ad9a['querySelectorAll']('figure.media')['forEach'](_0x1509a9=>{const _0x3f4188=_0x1509a9['querySelector']('oembed');if(_0x3f4188){const _0x315882=_0x3f4188['getAttribute']('url');if(_0x315882){const _0x1061bd=_0x9003a0['registry']['getMediaViewElement'](new _0x3d0c9f(_0x9aecdc['editing']['view']['document']),_0x315882,{'elementName':'','renderForEditingView':!0x0}),_0x51b26f=document['createElement']('div');_0x51b26f['classList']['add']('ck-media__wrapper'),_0x1061bd['render'](_0x51b26f,_0x9aecdc['editing']['view']['domConverter']),_0x3f4188['replaceWith'](_0x51b26f);}}}),_0x488610[_0x39bc58]=_0x12ad9a['innerHTML']);}return _0x488610;}['_sortRoots'](_0x3fc99a){if(!function(_0x7d61b4){return void 0x0!==_0x7d61b4['getRootsAttributes'];}(_0x3fc99a))return _0x3fc99a['model']['document']['getRootNames']();const _0x2dae8c=[],_0x40c578=new Map();for(const _0x38abd7 of _0x3fc99a['model']['document']['getRootNames']()){const _0x1948a8=_0x3fc99a['editing']['view']['getDomRoot'](_0x38abd7)['getClientRects']()['item'](0x0);_0x2dae8c['push'](_0x38abd7),_0x40c578['set'](_0x38abd7,_0x1948a8);}return _0x2dae8c['sort']((_0x133474,_0x2adf03)=>{const _0x48b997=_0x40c578['get'](_0x133474),_0x47b941=_0x40c578['get'](_0x2adf03);return _0x48b997['y']-_0x47b941['y']||_0x48b997['x']-_0x47b941['x'];}),_0x2dae8c;}}class te extends _0x337a55{static get['requires'](){return[T,_0x30d76b];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3370bf){super(_0x3370bf),_0x3370bf['commands']['add']('previewFinalContent',new re(this['editor'])),_0x3370bf['config']['define']('trackChanges.preview.renderFunction',(_0x369273,_0x50e09d)=>{for(const _0x3ca725 of _0x50e09d)_0x369273['appendChild'](_0x3ca725);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Yt,Plugin as _0x99cb74,PendingActions as _0x8fe2ce,icons as _0x28a606}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x363806,ObservableMixin as _0x1c572a,uid as _0x161b41,priorities as _0x307cb7,insertToPriorityArray as _0x1e6b12,logWarning as _0x1249e,getEnvKeystrokeText as _0x210a24,FocusTracker as _0x8ba174,KeystrokeHandler as _0x4d9676,Collection as _0x16e4db}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x172371,View as _0x169e68,ViewCollection as _0x2a7b0c,FocusCycler as _0x217e84,ViewModel as _0x1386bf,createDropdown as _0xf538fe,SplitButtonView as _0x6e0785,addListToDropdown as _0x8733cc,MenuBarMenuView as _0x4f5ef6,MenuBarMenuListView as _0x5e83d8,ListSeparatorView as _0x2b38ba,MenuBarMenuListItemView as _0x3da773,MenuBarMenuListItemButtonView as _0x11b9be,BodyCollection as _0x8ef820,Dialog as _0x4e5225}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x19770a,hashObject as _0xc40bc9,surroundingMarkersDetector as _0x3a64cd,FOCUS_ANNOTATION_KEYSTROKE as _0x959940,AriaDescriptionView as _0x42432c,setupThreadKeyboardNavigation as _0x324976,trimHtml as _0x35231d,UserView as _0x4fcf28,LateFocusButtonView as _0x36d30d,getDateTimeFormatter as _0x300153,getAllMarkersDomElementsSorted as _0x3cbf24,sanitizeEditorConfig as _0x5e6d42}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2dca15,LiveRange as _0x3131df,LivePosition as _0x39ac4e,DowncastWriter as _0x4df6c2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x10de8c,toWidget as _0x256c33}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5c4c26,set as _0x111f07,isEqual as _0x57f90c,unset as _0x193ba6,omit as Vt}from'lodash-es';import{Delete as _0x202410,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x582fd5,ShiftEnter as _0x5fe290}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Yt{['_enabledCommands'];constructor(_0x5ae73d,_0x2df4d0){super(_0x5ae73d),this['_enabledCommands']=_0x2df4d0,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 _0x1f600d of this['editor']['commands']['commands']())_0x1f600d['affectsData']&&!this['_enabledCommands']['has'](_0x1f600d)&&_0x1f600d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x302482 of this['editor']['commands']['commands']())_0x302482['affectsData']&&!this['_enabledCommands']['has'](_0x302482)&&_0x302482['clearForceDisabled']('TrackChangesCommand');}}class O extends Yt{['_suggestions'];constructor(_0x55ca36,_0x3ff528){super(_0x55ca36),this['_suggestions']=_0x3ff528,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x146088){const _0x488def=this['_suggestions']['get'](_0x146088);if(!_0x488def)throw new _0x363806('track-changes-accept-suggestion-not-found',this);const _0x59481c=_0x488def['getRanges']();this['editor']['model']['canEditAt'](_0x59481c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x488def);}}class R extends Yt{['_suggestions'];constructor(_0x2eda13,_0x3c8ab1){super(_0x2eda13),this['_suggestions']=_0x3c8ab1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x82d60b){const _0x16204b=this['_suggestions']['get'](_0x82d60b);if(!_0x16204b)throw new _0x363806('track-changes-discard-suggestion-not-found',this);const _0xcbc230=_0x16204b['getRanges']();this['editor']['model']['canEditAt'](_0xcbc230)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x16204b);}}function cs(_0xc6a991,_0xb4cd01){let _0x43f791='';return _0x43f791+=_0xc6a991['split']('*')['map']((_0x26c97d,_0x3018b2)=>_0x3018b2%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x26c97d)+'</span>':nn(_0x26c97d))['join'](''),_0xb4cd01&&(_0x43f791+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xb4cd01['value']+'\x22\x20title=\x22'+_0xb4cd01['title']+'\x22></span>'),_0x43f791;}function nn(_0xe7420){const _0x2b8f64=document['createElement']('span');return _0x2b8f64['innerText']=_0xe7420,_0x2b8f64['innerHTML'];}function Zt(_0x4a8a2c){return _0x4a8a2c['sort']((_0x505c9a,_0x139f90)=>'deletion'==_0x505c9a['type']&&'deletion'!=_0x139f90['type']?-0x1:'deletion'!=_0x505c9a['type']&&'deletion'==_0x139f90['type']?0x1:0x0);}function to(_0x275e42,_0x2b2be0){let _0x3aa5a0,_0x4a7377=0x0;const _0x599905=[],_0x5d7354=_0x2b2be0['schema'];for(;_0x4a7377<_0x275e42['length'];){const _0x22556d=_0x275e42[_0x4a7377],_0x239d6b=_0x275e42[_0x4a7377+0x1];_0x3aa5a0||(_0x3aa5a0=_0x2b2be0['createPositionBefore'](_0x22556d)),on(_0x2b2be0,_0x22556d,_0x239d6b)||(_0x599905['push'](_0x2b2be0['createRange'](_0x3aa5a0,_0x5d7354['isObject'](_0x22556d)?_0x2b2be0['createPositionAfter'](_0x22556d):_0x2b2be0['createPositionAt'](_0x22556d,'end'))),_0x3aa5a0=null),_0x4a7377++;}return _0x599905;}function on(_0x242981,_0x1a1f65,_0x325433){if(!_0x325433)return!0x1;const _0x30da40=_0x242981['createPositionAfter'](_0x1a1f65),_0x5648d2=_0x242981['createPositionBefore'](_0x325433);return _0x30da40['isTouching'](_0x5648d2);}function ts(_0x5d293d,_0x34a84e,_0x1a6ba3){for(;_0x1a6ba3['length'];){const _0x430ac8=_0x1a6ba3['splice'](0x0,0x64);_0x5d293d['change'](()=>{for(const _0x12af64 of _0x430ac8)_0x12af64['isInContent']&&_0x34a84e['execute'](_0x12af64['id']);});}}class x extends Yt{['_command'];['_suggestions'];constructor(_0x384bb7,_0x3cb156,_0x3192b4){super(_0x384bb7),this['_command']=_0x3cb156,this['_suggestions']=_0x3192b4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1cd35d=Array['from'](this['_suggestions']['values']())['some'](_0x15afb7=>_0x15afb7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1cd35d;}['execute'](){const _0x1e7845=Zt(Array['from'](this['_suggestions']['values']()));for(const _0x4b8a1f of _0x1e7845){const _0x394d34=_0x4b8a1f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x394d34))return;}ts(this['editor']['model'],this['_command'],_0x1e7845);}}class E extends Yt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4b90d2,_0x52f7b8,_0x1992ce){super(_0x4b90d2),this['_command']=_0x52f7b8,this['_suggestions']=_0x1992ce,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x2eb92a=this['editor']['model']['document']['selection'],_0x282559=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x564f16,_0x3af33f){const _0x20430c=Array['from'](_0x564f16['getRanges']()),_0x4dc2ec=new Set();for(const _0x239b9d of _0x3af33f)if(_0x239b9d['isInContent']){for(const _0x46268c of _0x20430c)for(const _0x1689eb of _0x239b9d['getRanges']())(_0x46268c['isIntersecting'](_0x1689eb)||_0x564f16['isCollapsed']&&!_0x239b9d['isMultiRange']&&_0x239b9d['next']&&_0x1689eb['end']['isTouching'](_0x46268c['start']))&&_0x4dc2ec['add'](_0x239b9d);}return _0x4dc2ec;}(_0x2eb92a,_0x282559),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x195e5d=Zt(Array['from'](this['_selectedSuggestions']));for(const _0x308cac of _0x195e5d){const _0x198bc6=_0x308cac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x198bc6))return;}ts(this['editor']['model'],this['_command'],_0x195e5d);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1c572a(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x180a3d,_0x115655){super(),this['id']=_0x115655['id'],this['type']=_0x115655['type'],this['subType']=_0x115655['subType']||null,this['author']=_0x115655['author'],this['creator']=_0x115655['creator']||_0x115655['author'],this['isExternal']=Boolean(_0x115655['attributes']&&_0x115655['attributes']['@external']),this['data']=null,this['_model']=_0x180a3d,this['_onAccept']=_0x115655['onAccept'],this['_onDiscard']=_0x115655['onDiscard'],this['_onAttributesChange']=_0x115655['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x115655['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 _0x31ac12=this;for(;_0x31ac12['previous'];)_0x31ac12=_0x31ac12['previous'];return _0x31ac12;}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'](_0x302ffc){this['_markerNames']['add'](_0x302ffc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x468cc3=>this['_model']['markers']['get'](_0x468cc3))['filter'](_0x23ed67=>_0x23ed67);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x35fa17=>{for(const _0x5b844e of this['getMarkers']())_0x35fa17['removeMarker'](_0x5b844e);}),this['_markerNames']['clear']();}['removeMarker'](_0x4d87d4){this['_model']['change'](_0x10c5c2=>{_0x10c5c2['removeMarker'](_0x4d87d4);}),this['_markerNames']['delete'](_0x4d87d4);}['addRange'](_0x5936c2){const _0x4972ff='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x4972ff),this['_model']['change'](_0x4689ed=>{_0x4689ed['addMarker'](_0x4972ff,{'range':_0x5936c2,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x302441){for(const _0x5c0f58 of this['getRanges']())if(_0x5c0f58['isIntersecting'](_0x302441))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5e5cbe=>_0x5e5cbe['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x197b72,_0x36972b)=>[..._0x197b72,..._0x36972b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x1e0d45=this['getRanges']();if(0x1!=_0x1e0d45['length'])return null;const _0x3d4ef5=_0x1e0d45[0x0],_0x4a6984=_0x3d4ef5['start']['nodeAfter'],_0x3a934e=_0x3d4ef5['end']['nodeBefore'];return _0x4a6984 instanceof _0x2dca15?_0x4a6984!=_0x3a934e?null:_0x4a6984: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 _0x5ef5a9=[];let _0x1a9402=this['head'];for(;_0x1a9402;)_0x5ef5a9['push'](_0x1a9402),_0x1a9402=_0x1a9402['next'];return _0x5ef5a9;}['setAttribute'](_0x5a4a39,_0x37c21a){const _0x22fad6=_0x5c4c26(this['attributes']);_0x111f07(_0x22fad6,_0x5a4a39,_0x37c21a),_0x57f90c(_0x22fad6,this['attributes'])||(this['attributes']=_0x22fad6,this['_onAttributesChange'](_0x22fad6));}['removeAttribute'](_0x588a7f){const _0x590442=_0x5c4c26(this['attributes']);_0x193ba6(_0x590442,_0x588a7f),_0x57f90c(_0x590442,this['attributes'])||(this['attributes']=_0x590442,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 _0x161b41()['substr'](0x1,0x5);}}function o(_0x4c4775,_0x280249,_0x4806dd){const _0x1f584b=_0x4c4775['t'],t=_0x4c4775['t'];switch(_0x280249){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',_0x4806dd);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4806dd);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4806dd);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4806dd);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4806dd);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',_0x4806dd);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4806dd);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',_0x4806dd);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4806dd);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4806dd);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4806dd);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4806dd);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4806dd);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x4806dd);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4806dd);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4806dd);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4806dd);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4806dd);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4806dd);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4806dd);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4806dd);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4806dd);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4806dd);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4806dd);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'},_0x4806dd);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4806dd);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4806dd);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4806dd);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4806dd);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4806dd);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'},_0x4806dd);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4806dd);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4806dd);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4806dd);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4806dd);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'},_0x4806dd);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4806dd);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'},_0x4806dd);case'FORMAT_HEADER_COLUMN':return t({'string':'header\x20column','id':'FORMAT_HEADER_COLUMN'});case'FORMAT_REGULAR_COLUMN':return t({'string':'regular\x20column','id':'FORMAT_REGULAR_COLUMN'});case'FORMAT_HEADER_ROW':return t({'string':'header\x20row','id':'FORMAT_HEADER_ROW'});case'FORMAT_REGULAR_ROW':return t({'string':'regular\x20row','id':'FORMAT_REGULAR_ROW'});case'FORMAT_INDENT':return t({'string':'indent','id':'FORMAT_INDENT'});case'FORMAT_LIST_REVERSED':return t({'string':'list\x20reversed','id':'FORMAT_LIST_REVERSED'});case'FORMAT_LIST_START':return t({'string':'list\x20start','id':'FORMAT_LIST_START'});case'FORMAT_FONT_SIZE':return t({'string':'font\x20size','id':'FORMAT_FONT_SIZE'});case'FORMAT_FONT_FAMILY':return t({'string':'font\x20family','id':'FORMAT_FONT_FAMILY'});case'FORMAT_FONT_COLOR':return t({'string':'font\x20color','id':'FORMAT_FONT_COLOR'});case'FORMAT_FONT_BACKGROUND':return t({'string':'font\x20background\x20color','id':'FORMAT_FONT_BACKGROUND'});case'FORMAT_IMAGE_SIZE':return t({'string':'image\x20size','id':'FORMAT_IMAGE_SIZE'});case'FORMAT_STYLE':return t({'string':'style','id':'FORMAT_STYLE'});case'PENDING_ACTION_SUGGESTION':return t({'string':'Unsaved\x20change\x20in\x20suggestion.','id':'PENDING_ACTION_SUGGESTION'});case'ELEMENT_TABLE_WITH_TEXT':return t({'string':'table\x20*with\x20text*\x20%0','id':'ELEMENT_TABLE_WITH_TEXT'},_0x4806dd);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4806dd);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'},_0x4806dd);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4806dd);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'},_0x4806dd);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4806dd);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4806dd);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'},_0x4806dd);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x4806dd);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 _0x1f584b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x4806dd);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x1f584b({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x4806dd);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4806dd);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'},_0x4806dd);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'},_0x4806dd);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'},_0x4806dd);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x280249;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x3ed5b9,_0x5c0fca){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x3ed5b9,this['_locale']=_0x5c0fca;}['getDescriptions'](_0x48d54a){const _0x3a51c0=[],_0x4a9883=new Set(),_0x38f3fb=new Set();for(let _0x208cf7=0x0;_0x208cf7<_0x48d54a['length'];_0x208cf7++){const _0x20a361=_0x48d54a[_0x208cf7];if(!_0x20a361['isInContent'])continue;const _0x3e4095=this['_handleCustomCallbackDescription'](_0x20a361);if(_0x3e4095){if(null!=_0x20a361['subType']){if(_0x4a9883['has'](_0x20a361['subType']))continue;_0x4a9883['add'](_0x20a361['subType']);}_0x3a51c0['push'](_0x3e4095);}else{if('attribute'!=_0x20a361['type'])'insertion'!=_0x20a361['type']&&'deletion'!=_0x20a361['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3a51c0,_0x20a361,_0x48d54a[_0x208cf7+0x1]);else{const _0xe7b695=_0x20a361['data']['key'];if(_0x38f3fb['has'](_0xe7b695))continue;_0x38f3fb['add'](_0x20a361['data']['key']),_0xe7b695==m?this['_handleRenameSuggestionDescription'](_0x3a51c0,_0x20a361):this['_handleAttributeSuggestionDescription'](_0x3a51c0,_0x20a361);}}}return this['_resolveDescriptionItems'](_0x3a51c0);}['registerDescriptionCallback'](_0xbbce5e){this['_customCallbacks']['push'](_0xbbce5e);}['registerElementLabel'](_0x3ce934,_0x1bf975,_0x1fd536=_0x307cb7['normal']){'function'==typeof _0x3ce934?_0x1e6b12(this['_itemLabelsCallbacks'],{'matchingCallback':_0x3ce934,'label':_0x1bf975,'priority':_0x1fd536}):this['_itemLabels']['set'](_0x3ce934,_0x1bf975);}['registerAttributeLabel'](_0x1f833d,_0x26588e){this['_attributeLabels']['set'](_0x1f833d,_0x26588e);}['getItemLabel'](_0x46a9f9,_0x186407=0x1){let _0x257282;for(const _0x321871 of this['_itemLabelsCallbacks'])if(_0x321871['matchingCallback'](_0x46a9f9)){_0x257282=_0x321871['label'];break;}return _0x257282||(_0x257282=this['_itemLabels']['get'](_0x46a9f9['name'])),_0x257282?_0x257282(_0x186407):0x1!==_0x186407?_0x186407+'\x20'+_0x46a9f9['name']+'s':''+_0x46a9f9['name'];}['_addDescriptionItems'](_0x472506,_0x2ede32){const _0x50fc7c=_0x2ede32['getFirstRange']()['getWalker'](),_0x2813c6='insertion'==_0x2ede32['type']?'add':'remove';for(const _0x5b1f48 of _0x50fc7c){const _0x2600e2=_0x5b1f48['item'],_0x3241a0=_0x472506[_0x472506['length']-0x1];if(_0x2600e2['is']('$textProxy'))_0x3241a0&&_0x3241a0['type']['indexOf']('Container')>-0x1&&_0x472506['pop'](),_0x3241a0&&'text'==_0x3241a0['type']?_0x3241a0[_0x2813c6]+=_0x2600e2['data']:_0x472506['push']({'type':'text','add':'add'==_0x2813c6?_0x2600e2['data']:'','remove':'remove'==_0x2813c6?_0x2600e2['data']:''});else{if(this['_schema']['isObject'](_0x2600e2)){const _0x3cf20b=_0x2600e2;if(_0x3241a0&&_0x3241a0['type']['indexOf']('Container')>-0x1&&_0x472506['pop'](),'elementEnd'==_0x5b1f48['type'])continue;_0x3241a0&&_0x3241a0['type']==_0x2813c6+'Object'&&_0x3241a0['element']['name']==_0x3cf20b['name']?_0x3241a0['quantity']++:_0x472506['push']({'type':_0x2813c6+'Object','element':_0x3cf20b,'quantity':0x1}),_0x50fc7c['skip'](_0x15c18b=>!('elementEnd'==_0x15c18b['type']&&_0x15c18b['item']==_0x2600e2));}else{if(this['_schema']['checkChild'](_0x2600e2,'$text')||_0x2600e2['is']('element','softBreak')){const _0x582fda=_0x2600e2;if('add'==_0x2813c6&&'elementStart'==_0x5b1f48['type']||'remove'==_0x2813c6&&'elementEnd'==_0x5b1f48['type'])continue;if(_0x3241a0&&-0x1==_0x3241a0['type']['indexOf']('Container')){'text'==_0x3241a0['type']&&(_0x3241a0[_0x2813c6]+='\x0a');continue;}let _0x49f6d0;if(_0x49f6d0='add'==_0x2813c6?_0x582fda['nextSibling']&&!this['_schema']['isObject'](_0x582fda['nextSibling'])?_0x582fda['nextSibling']:null:_0x582fda['previousSibling']&&!this['_schema']['isObject'](_0x582fda['previousSibling'])?_0x582fda['previousSibling']:null,_0x582fda['isEmpty']||_0x49f6d0&&_0x49f6d0['isEmpty']){const _0x12b958=_0x49f6d0&&_0x49f6d0['isEmpty']?_0x49f6d0:_0x582fda;_0x3241a0&&_0x3241a0['type']==_0x2813c6+'EmptyContainer'&&_0x3241a0['element']['name']==_0x12b958['name']?_0x3241a0['quantity']++:_0x472506['push']({'type':_0x2813c6+'EmptyContainer','element':_0x12b958,'quantity':0x1});}else _0x472506['push']({'type':_0x2813c6+'Container','element':_0x582fda});}}}}}['_resolveDescriptionItems'](_0x1b6b92){const _0x3ec72b=this['_locale'],_0x49edab=[],_0x1a84a4=[],_0x3e854e=[];for(const _0x473d26 of _0x1b6b92)switch(_0x473d26['type']){case'text':if(_0x473d26['add']=_0x473d26['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x473d26['remove']=_0x473d26['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x473d26['add']&&''!=_0x473d26['remove']){_0x49edab['push']({'type':'replace','content':o(_0x3ec72b,'REPLACE_TEXT',['\x22'+_0x473d26['remove']+'\x22','\x22'+_0x473d26['add']+'\x22'])});continue;}if(null!=_0x473d26['add']['match'](/^ +$/)){_0x49edab['push']({'type':'insertion','content':o(_0x3ec72b,'*Insert:*\x20%0',o(_0x3ec72b,'ELEMENT_SPACE',_0x473d26['add']['length']))});continue;}if(null!=_0x473d26['remove']['match'](/^ +$/)){_0x49edab['push']({'type':'deletion','content':o(_0x3ec72b,'*Remove:*\x20%0',o(_0x3ec72b,'ELEMENT_SPACE',_0x473d26['remove']['length']))});continue;}if(''!=_0x473d26['add']){_0x49edab['push']({'type':'insertion','content':o(_0x3ec72b,'*Insert:*\x20%0','\x22'+_0x473d26['add']+'\x22')});continue;}_0x49edab['push']({'type':'deletion','content':o(_0x3ec72b,'*Remove:*\x20%0','\x22'+_0x473d26['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49edab['push']({'type':'insertion','content':o(_0x3ec72b,'*Insert:*\x20%0',this['getItemLabel'](_0x473d26['element'],_0x473d26['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49edab['push']({'type':'deletion','content':o(_0x3ec72b,'*Remove:*\x20%0',this['getItemLabel'](_0x473d26['element'],_0x473d26['quantity']))});continue;case'addContainer':_0x49edab['push']({'type':'insertion','content':o(_0x3ec72b,'*Split:*\x20%0',this['getItemLabel'](_0x473d26['element'],_0x473d26['quantity']))});continue;case'removeContainer':_0x49edab['push']({'type':'deletion','content':o(_0x3ec72b,'*Merge:*\x20%0',this['getItemLabel'](_0x473d26['element'],_0x473d26['quantity']))});continue;case'addFormat':_0x1a84a4['push'](_0x473d26['key']);continue;case'removeFormat':_0x3e854e['push'](_0x473d26['key']);continue;default:_0x49edab['push'](_0x473d26);}if(_0x1a84a4['length']){const _0x2b0b8d=_0x1a84a4['map'](_0x6038a0=>this['_attributeLabels']['has'](_0x6038a0)?this['_attributeLabels']['get'](_0x6038a0):_0x6038a0)['join'](',\x20');_0x49edab['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2b0b8d)});}if(_0x3e854e['length']){const _0x23a812=_0x3e854e['map'](_0x28a690=>this['_attributeLabels']['has'](_0x28a690)?this['_attributeLabels']['get'](_0x28a690):_0x28a690)['join'](',\x20');_0x49edab['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x23a812)});}return _0x49edab;}['_handleCustomCallbackDescription'](_0x32f38b){for(const _0x5042e2 of this['_customCallbacks']){const _0xb8c67a=_0x5042e2(_0x32f38b);if(_0xb8c67a&&'type'in _0xb8c67a)return _0xb8c67a;}}['_handleAttributeSuggestionDescription'](_0x5e9eeb,_0x436070){const _0x3e9018=_0x436070['data'],_0x370e84=void 0x0===_0x3e9018['newValue']?'removeFormat':'addFormat';_0x5e9eeb['push']({'type':_0x370e84,'key':_0x3e9018['key']});}['_handleRenameSuggestionDescription'](_0xd95544,_0x5279b1){_0xd95544['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5279b1['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2a63ed,_0x46eed3,_0x25a0c4){if(this['_addDescriptionItems'](_0x2a63ed,_0x46eed3),_0x25a0c4&&_0x25a0c4['getFirstRange']()&&!_0x46eed3['getFirstRange']()['end']['isEqual'](_0x25a0c4['getFirstRange']()['start'])){const _0x5bf740=_0x2a63ed[_0x2a63ed['length']-0x1],_0x4a2c29='insertion'==_0x46eed3['type']?'add':'remove';_0x5bf740&&'text'==_0x5bf740['type']&&(_0x5bf740[_0x4a2c29]+='\x0a');}}}class U extends _0x99cb74{['afterInit'](){const _0x430a15=this['editor'],_0x33616c=_0x430a15['plugins']['get']('TrackChangesEditing');_0x430a15['commands']['get']('showAIAssistant')&&_0x33616c['enableCommand']('showAIAssistant');}}class V extends _0x99cb74{['afterInit'](){const _0xe4c64c=this['editor'],_0x2d48d4=_0xe4c64c['locale'];if(!_0xe4c64c['plugins']['has']('AlignmentEditing'))return;const _0x3e2d8e=_0xe4c64c['plugins']['get']('TrackChangesEditing');_0x3e2d8e['enableDefaultAttributesIntegration']('alignment'),_0x3e2d8e['registerBlockAttribute']('alignment'),_0x3e2d8e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2d48d4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e5edc=this['editor'],_0x4ac017=_0x4e5edc['locale'];_0x4e5edc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x402e2d=>{if('formatBlock'!=_0x402e2d['type'])return;const {data:_0x548440}=_0x402e2d;if(_0x548440&&'alignment'==_0x548440['commandName']){const _0x2cee21=_0x548440['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4ac017,'*Format:*\x20%0',function(_0x2f3e74){switch(_0x2f3e74){case'left':return o(_0x4ac017,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4ac017,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4ac017,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4ac017,'FORMAT_JUSTIFY_TEXT');}}(_0x2cee21))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x99cb74{['afterInit'](){const _0x2123ef=this['editor'],_0x2623f1=_0x2123ef['plugins']['get']('TrackChangesEditing'),_0x56f96a=_0x2123ef['locale'];for(const _0x1c22e6 of ti){if(!_0x2123ef['plugins']['has'](_0x1c22e6))continue;const _0x46fc9e=_0x1c22e6['slice'](0x0,-0x7)['toLowerCase'](),_0x562f4f='FORMAT_'+_0x46fc9e['toUpperCase']();_0x2623f1['enableDefaultAttributesIntegration'](_0x46fc9e),_0x2623f1['registerInlineAttribute'](_0x46fc9e),_0x2623f1['descriptionFactory']['registerAttributeLabel'](_0x46fc9e,o(_0x56f96a,_0x562f4f));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f91c7=this['editor'],_0x341f31=_0x1f91c7['locale'],_0x45338a=_0x1f91c7['plugins']['get']('TrackChangesEditing');function _0x366898(_0x5cc476,_0x47c037){_0x45338a['descriptionFactory']['registerDescriptionCallback'](_0x22fe3b=>{if('formatInline'!=_0x22fe3b['type'])return;const {data:_0x139bf2}=_0x22fe3b;return _0x139bf2&&_0x139bf2['commandName']===_0x5cc476?_0x139bf2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x341f31,'*Format:*\x20%0',_0x47c037)}:{'type':'format','content':o(_0x341f31,'*Remove\x20format:*\x20%0',_0x47c037)}:void 0x0;});}_0x366898('bold',o(_0x341f31,'FORMAT_BOLD')),_0x366898('italic',o(_0x341f31,'FORMAT_ITALIC')),_0x366898('underline',o(_0x341f31,'FORMAT_UNDERLINE')),_0x366898('code',o(_0x341f31,'FORMAT_CODE')),_0x366898('strikethrough',o(_0x341f31,'FORMAT_STRIKETHROUGH')),_0x366898('subscript',o(_0x341f31,'FORMAT_SUBSCRIPT')),_0x366898('superscript',o(_0x341f31,'FORMAT_SUPERSCRIPT'));}}class F extends _0x99cb74{['afterInit'](){const _0x48ca1b=this['editor'],_0x5db222=_0x48ca1b['locale'];if(!_0x48ca1b['plugins']['has']('BlockQuoteEditing'))return;const _0x518345=_0x48ca1b['plugins']['get']('TrackChangesEditing'),_0x2cf37b=this['editor']['commands']['get']('blockQuote');_0x518345['enableCommand']('blockQuote',(_0x4446f6,_0x23e03d={})=>{const _0x5c67a5=this['editor']['model']['document']['selection'],_0x119979=_0x23e03d&&void 0x0!==_0x23e03d['forceValue']?_0x23e03d['forceValue']:!_0x2cf37b['value'];let _0x19be49=[];if(_0x119979){const _0x261ba2=Array['from'](_0x5c67a5['getSelectedBlocks']())['filter'](_0x32ebef=>oo(_0x32ebef)||function(_0x59c785,_0x5dc7ae){const _0x4a5ea2=_0x5dc7ae['checkChild'](_0x59c785['parent'],'blockQuote'),_0x2410dc=_0x5dc7ae['checkChild'](['$root','blockQuote'],_0x59c785);return _0x4a5ea2&&_0x2410dc;}(_0x32ebef,this['editor']['model']['schema']));_0x19be49=to(_0x261ba2,_0x48ca1b['model']);}else{const _0x367caf=Array['from'](_0x5c67a5['getSelectedBlocks']())['filter'](_0x5ed0cf=>oo(_0x5ed0cf));_0x19be49=to(_0x367caf,_0x48ca1b['model']);}_0x48ca1b['model']['change'](()=>{for(const _0x4f03e2 of _0x19be49)_0x518345['markBlockFormat'](_0x4f03e2,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x119979}]});});}),_0x518345['descriptionFactory']['registerDescriptionCallback'](_0x14af37=>{const {data:_0x1c272a}=_0x14af37;if(_0x1c272a&&'blockQuote'==_0x1c272a['commandName']){const _0x1cd205=o(_0x5db222,'ELEMENT_BLOCK_QUOTE');return _0x1c272a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5db222,'*Set\x20format:*\x20%0',_0x1cd205)}:{'type':'format','content':o(_0x5db222,'*Remove\x20format:*\x20%0',_0x1cd205)};}});}}function oo(_0x4ef1d5){return'blockQuote'==_0x4ef1d5['parent']['name'];}class L extends _0x99cb74{['afterInit'](){const _0x2ec5e4=this['editor'],_0x324368=_0x2ec5e4['locale'],_0x2eb1f0=_0x2ec5e4['plugins']['get']('TrackChangesEditing');_0x2ec5e4['plugins']['has']('BookmarkEditing')&&(_0x2eb1f0['enableCommand']('insertBookmark'),_0x2eb1f0['enableDefaultAttributesIntegration']('updateBookmark'),_0x2eb1f0['registerBlockAttribute']('bookmarkId'),_0x2eb1f0['descriptionFactory']['registerDescriptionCallback'](_0x3a96ff=>{if('insertion'!=_0x3a96ff['type']&&'deletion'!=_0x3a96ff['type']&&'attribute'!=_0x3a96ff['type'])return;const _0x175424=_0x3a96ff['getContainedElement']();if(null==_0x175424)return;if(!_0x175424['is']('element','bookmark'))return;const _0x1a5f23=_0x175424['getAttribute']('bookmarkId');if('insertion'==_0x3a96ff['type'])return{'type':'insertion','content':o(_0x324368,'*Insert:*\x20%0','\x22'+_0x1a5f23+'\x22\x20'+o(_0x324368,'ELEMENT_BOOKMARK'))};if('deletion'==_0x3a96ff['type'])return{'type':'deletion','content':o(_0x324368,'*Remove:*\x20%0','\x22'+_0x1a5f23+'\x22\x20'+o(_0x324368,'ELEMENT_BOOKMARK'))};const {data:_0x1d09a6}=_0x3a96ff;if(!_0x1d09a6||'bookmarkId'!=_0x1d09a6['key'])return;return{'type':'format','content':o(_0x324368,'*Set\x20bookmark:*\x20%0','\x22'+_0x1d09a6['newValue']+'\x22')};}));}}class J extends _0x99cb74{['afterInit'](){const _0x46f71c=this['editor'];_0x46f71c['plugins']['has']('CaseChange')&&(_0x46f71c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x46f71c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x46f71c['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x99cb74{['afterInit'](){const _0x11400f=this['editor'];_0x11400f['commands']['get']('ckbox')&&_0x11400f['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x99cb74{['afterInit'](){const _0x1a7024=this['editor'];if(!_0x1a7024['plugins']['has']('CodeBlock'))return;const _0x2a4d3c=_0x1a7024['plugins']['get']('TrackChangesEditing'),_0x3dd387=_0x1a7024['locale'],_0x3131c0=_0x1a7024['config']['get']('codeBlock')['languages'],_0x335405=_0x1a7024['commands']['get']('codeBlock');_0x2a4d3c['enableCommand']('indentCodeBlock'),_0x2a4d3c['enableCommand']('outdentCodeBlock'),_0x2a4d3c['enableCommand']('codeBlock',(_0x16788c,_0x5cc0a8={})=>{const _0x16a6d0=_0x1a7024['model'],_0x51a004=_0x1a7024['model']['document']['selection'],_0x32f21e=_0x5cc0a8&&void 0x0!==_0x5cc0a8['forceValue']?_0x5cc0a8['forceValue']:!_0x335405['value'];let _0x25e5df;_0x5cc0a8['language']||(_0x5cc0a8['language']=_0x3131c0[0x0]['language']),_0x25e5df=_0x32f21e?Array['from'](_0x51a004['getSelectedBlocks']())['filter'](_0x572afb=>eo(_0x572afb)||function(_0x1119f5,_0x4d6d59){if(_0x1119f5['is']('rootElement')||_0x4d6d59['isLimit'](_0x1119f5))return!0x1;return _0x4d6d59['checkChild'](_0x1119f5['parent'],'codeBlock');}(_0x572afb,_0x16a6d0['schema'])):Array['from'](_0x51a004['getSelectedBlocks']())['filter'](_0x1e1bb4=>eo(_0x1e1bb4));const _0xeb81fb=to(_0x25e5df,_0x16a6d0);_0x16a6d0['change'](()=>{for(const _0x582cf1 of _0xeb81fb)_0x2a4d3c['markBlockFormat'](_0x582cf1,{'commandName':'codeBlock','commandParams':[{..._0x5cc0a8,'forceValue':_0x32f21e}],'formatGroupId':'blockName'});});}),(_0x2a4d3c['descriptionFactory']['registerElementLabel']('codeBlock',_0x4b79be=>o(_0x3dd387,'ELEMENT_CODE_BLOCK',_0x4b79be)),_0x2a4d3c['descriptionFactory']['registerDescriptionCallback'](_0x2c3a0f=>{if('formatBlock'!=_0x2c3a0f['type'])return;const _0x23d9bd=_0x3dd387['t'],{data:_0x57cefc}=_0x2c3a0f;if(!_0x57cefc||'codeBlock'!=_0x57cefc['commandName'])return;const _0x24a7b8=_0x57cefc['commandParams'][0x0]['language'],_0x40bee3=_0x23d9bd(_0x3131c0['find'](_0x2dc461=>_0x2dc461['language']===_0x24a7b8)['label'])['toLowerCase']();return _0x57cefc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3dd387,'*Set\x20format:*\x20%0',o(_0x3dd387,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x40bee3+')')}:{'type':'format','content':o(_0x3dd387,'*Remove\x20format:*\x20%0',o(_0x3dd387,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3e1b8a){return'codeBlock'==_0x3e1b8a['name'];}class z extends _0x99cb74{['afterInit'](){const _0x12cbb8=this['editor'];if(!_0x12cbb8['plugins']['has']('CommentsEditing'))return;_0x12cbb8['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xedd1fb,_0x3095ea,_0x4e1640){const _0x3909d3=[];for(const _0x197428 of _0x3095ea['getItems']())_0x197428['hasAttribute'](_0xedd1fb)&&_0x3909d3['push'](_0x4e1640['createRangeOn'](_0x197428));return _0x3909d3;}function De(_0x3f6686,_0x12c21f,{showActiveMarker:_0x4d408e=!0x0}={}){const _0x34d3e1=_0x3f6686['plugins']['get']('TrackChangesEditing');return(_0x21391c,_0x53cf79,_0x47cc82)=>{if(!_0x47cc82['consumable']['test'](_0x53cf79['markerRange'],_0x21391c['name']))return;const _0x33b172=_0x53cf79['markerRange']['getWalker'](),_0x6a3658=_0x53cf79['markerRange']['start'],_0x26c4b1=_0x3f6686['model']['schema'];let _0x5337a3=null,_0x9ce86=null,_0x5e4369=!0x1,_0x317475=!0x1;for(const _0x7aca9a of _0x33b172){const _0x2b0a02=_0x7aca9a['item'];_0x5e4369=_0x5e4369||_0x26c4b1['isContent'](_0x2b0a02);const _0x2f80ee=_0x47cc82['mapper']['toViewElement'](_0x2b0a02);if(_0x2f80ee&&_0x2f80ee['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7aca9a['type']&&(_0x26c4b1['isBlock'](_0x2b0a02)&&!_0x26c4b1['isLimit'](_0x2b0a02)&&(_0x2b0a02['nextSibling']||_0x6a3658['isAtEnd']?_0x5337a3&&_0x5337a3['parent']==_0x2b0a02||(_0x5337a3=_0x2b0a02,_0x11f415(_0x7aca9a['previousPosition']),_0x317475=!0x0):_0x9ce86=_0x9ce86||_0x7aca9a['previousPosition']));}function _0x11f415(_0xf898db){const {authorId:_0x5880c7}=_0x34d3e1['_splitMarkerName'](_0x53cf79['markerName']),_0x45b098=_0x47cc82['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x12c21f,'data-author-id':_0x5880c7}),_0x164901=_0x47cc82['mapper']['toViewPosition'](_0xf898db);_0x4d408e&&_0x34d3e1['activeMarkers']['includes'](_0x53cf79['markerName'])&&_0x47cc82['writer']['addClass']('ck-suggestion-marker--active',_0x45b098),_0x47cc82['writer']['insert'](_0x164901,_0x45b098),_0x47cc82['mapper']['bindElementToMarker'](_0x45b098,_0x53cf79['markerName']);}_0x5e4369||_0x317475||!_0x9ce86||_0x11f415(_0x9ce86);};}class K extends _0x99cb74{static get['requires'](){return[_0x202410];}['init'](){const _0x26dd8f=this['editor'],_0x52e607=_0x26dd8f['plugins']['get']('TrackChangesEditing');_0x52e607['enableCommand']('delete');const _0x21d029=_0x26dd8f['commands']['get']('deleteForward');_0x52e607['enableCommand']('deleteForward',(_0x5797fb,_0x2e87cc={})=>{const _0x1d3c35=_0x26dd8f['model']['createSelection'](_0x26dd8f['model']['document']['selection']);_0x1d3c35['isCollapsed']&&_0x26dd8f['model']['modifySelection'](_0x1d3c35,{'direction':'forward','unit':_0x2e87cc['unit']});const _0x544fe4=_0x1d3c35['getFirstRange'](),_0x272d64=_0x3131df['fromRange'](_0x544fe4);let _0xcf98a;_0x5797fb(_0x2e87cc),_0xcf98a='$graveyard'==_0x272d64['root']['rootName']?_0x26dd8f['model']['createRange'](_0x544fe4['start']):_0x26dd8f['model']['createRange'](_0x272d64['start'],_0x272d64['end']),_0x272d64['detach'](),_0x26dd8f['model']['enqueueChange'](_0x21d029['buffer']['batch'],_0x570932=>{_0x21d029['buffer']['lock'](),_0x570932['setSelection'](_0x570932['createRange'](_0xcf98a['end'])),_0x21d029['buffer']['unlock']();});}),_0x26dd8f['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x26dd8f,'merge'),{'priority':'high'}),_0x26dd8f['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1511f7,_0x5b8e79,_0x4ef54e)=>{_0x4ef54e['options']['showSuggestionHighlights']&&De(_0x26dd8f,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1511f7,_0x5b8e79,_0x4ef54e);},{'priority':'high'}),_0x26dd8f['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fc859,_0x45a919,_0xe7529e)=>{const _0x1a8199=_0xe7529e['mapper']['markerNameToElements'](_0x45a919['markerName']);if(_0x1a8199){for(const _0x350d71 of _0x1a8199)_0x350d71['is']('uiElement')&&(_0xe7529e['mapper']['unbindElementFromMarkerName'](_0x350d71,_0x45a919['markerName']),_0xe7529e['writer']['remove'](_0x350d71));}},{'priority':'high'});}}class W extends _0x99cb74{['afterInit'](){const _0x250367=this['editor'];if(!_0x250367['plugins']['has']('ListEditing'))return;const _0x2e55e1=_0x250367['locale'],_0x3c1064=_0x250367['plugins']['get']('TrackChangesEditing'),_0x21b0b4=_0x250367['plugins']['has']('TodoListEditing'),_0x59c121=!!_0x250367['config']['get']('list.multiBlock');function _0x3a5632(_0x5ba09c){return{'type':'format','content':''+o(_0x2e55e1,'*Set\x20format:*\x20%0',_0x5ba09c)};}function _0x180fa2(_0x5ef0c8){return{'type':'format','content':''+o(_0x2e55e1,'*Remove\x20format:*\x20%0',_0x5ef0c8)};}_0x3c1064['enableDefaultAttributesIntegration']('numberedList'),_0x3c1064['enableDefaultAttributesIntegration']('bulletedList'),_0x3c1064['enableDefaultAttributesIntegration']('customNumberedList'),_0x3c1064['enableDefaultAttributesIntegration']('customBulletedList'),_0x3c1064['enableDefaultAttributesIntegration']('indentList'),_0x3c1064['enableDefaultAttributesIntegration']('outdentList'),_0x3c1064['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3c1064['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c1064['registerBlockAttribute']('listItemId'),_0x3c1064['registerBlockAttribute']('listType'),_0x3c1064['registerBlockAttribute']('listIndent'),_0x59c121&&(_0x3c1064['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3c1064['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x21b0b4&&(_0x3c1064['enableDefaultAttributesIntegration']('todoList'),_0x3c1064['enableDefaultAttributesIntegration']('checkTodoList'),_0x3c1064['registerBlockAttribute']('todoListChecked'),_0x3c1064['descriptionFactory']['registerDescriptionCallback'](_0x5c9343=>{const {data:_0x54be47}=_0x5c9343;if(_0x54be47&&'todoListChecked'==_0x54be47['key'])return{'type':'format','content':_0x54be47['newValue']?o(_0x2e55e1,'*Check\x20item*'):o(_0x2e55e1,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x50e39b=>{if(_0x50e39b['batch']['isUndo'])return!0x1;let _0x5ceb43=!0x1;const _0x347ca7=_0x3c1064['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5ec0b4=>'todoListChecked'===_0x3c1064['_getAttributeKey'](_0x5ec0b4));for(const _0x209a14 of _0x347ca7){'todo'!=_0x209a14['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3c1064['_findSuggestions'](_0x209a14['getFirstRange'](),'attribute')['find'](_0x167414=>'listType'===_0x3c1064['_getAttributeKey'](_0x167414['suggestion']))||(_0x50e39b['removeMarker'](_0x209a14['getFirstMarker']()),_0x5ceb43=!0x0));}return _0x5ceb43;})),_0x3c1064['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2e55e1,'FORMAT_INDENT'));const _0x2335a1={'type':'format','content':''};_0x3c1064['descriptionFactory']['registerDescriptionCallback'](_0x13b317=>{const {data:_0x5f2eaf}=_0x13b317;if(!_0x5f2eaf||'listType'!=_0x5f2eaf['key'])return;let _0x4309c0=_0x13b317['head'];for(;_0x4309c0;){if(_0x4309c0['data']&&(('listStyle'==_0x4309c0['data']['key']||'listMarkerStyle'==_0x4309c0['data']['key'])&&(_0x4309c0['data']['newValue']&&'default'!=_0x4309c0['data']['newValue']||'default'!=_0x4309c0['data']['oldValue']&&!_0x5f2eaf['newValue'])||!_0x59c121&&_0x4309c0['data']['key']==m))return _0x2335a1;_0x4309c0=_0x4309c0['next'];}if(null==_0x5f2eaf['newValue'])switch(_0x5f2eaf['oldValue']){case'bulleted':return _0x180fa2(o(_0x2e55e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x180fa2(o(_0x2e55e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x180fa2(o(_0x2e55e1,'ELEMENT_TODO_LIST'));}switch(_0x5f2eaf['newValue']){case'bulleted':return _0x3a5632(o(_0x2e55e1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a5632(o(_0x2e55e1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a5632(o(_0x2e55e1,'ELEMENT_TODO_LIST'));}}),_0x3c1064['descriptionFactory']['registerDescriptionCallback'](_0x144e78=>{const {data:_0x52b856}=_0x144e78;if(_0x52b856&&'listIndent'==_0x52b856['key'])return null==_0x52b856['newValue']||null==_0x52b856['oldValue']&&0x0==_0x52b856['newValue']?_0x2335a1:void 0x0;}),_0x3c1064['descriptionFactory']['registerDescriptionCallback'](_0x184687=>{if('attribute'!=_0x184687['type'])return;const {data:_0x589b81}=_0x184687;if(!_0x589b81||'listItemId'!=_0x589b81['key'])return;const _0x31d717=Te(_0x184687);return'newValue'==_0x31d717?{'type':'format','content':o(_0x2e55e1,'*Merge:*\x20list\x20item')}:'oldValue'==_0x31d717?{'type':'format','content':o(_0x2e55e1,'*Split:*\x20list\x20item')}:_0x2335a1;}),_0x250367['model']['document']['registerPostFixer'](_0x4e4905=>this['listItemIdFixer'](_0x4e4905)),_0x250367['model']['document']['registerPostFixer'](_0x3ab1c2=>this['noTrackChangesFixer'](_0x3ab1c2)),_0x250367['model']['document']['on']('change:data',(_0xae7edd,_0xe64e93)=>{if(_0xe64e93['isUndo']||!_0xe64e93['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4e9b85){if(_0x4e9b85['batch']['isUndo']||!_0x4e9b85['batch']['isLocal'])return!0x1;let _0x1b8c04=!0x1;const _0x5ef9e1=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f817f=>_0x4f817f['data']&&'listItemId'==_0x4f817f['data']['key'])['filter'](_0x462d7a=>_0x462d7a['data']['newValue']&&_0x462d7a['data']['oldValue']);for(const _0x82c9cd of _0x5ef9e1)Te(_0x82c9cd)||(_0x4e9b85['removeMarker'](_0x82c9cd['getFirstMarker']()),_0x1b8c04=!0x0);return _0x1b8c04;}['noTrackChangesFixer'](_0x3102e7){if(_0x3102e7['batch']['isUndo']||!_0x3102e7['batch']['isLocal'])return!0x1;const _0x24a3a8=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x24a3a8['trackChangesCommand']['value'])return!0x1;let _0x19f1d0=!0x1;const _0x445d60=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x145ca6=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x50a92a=>'attribute'==_0x50a92a['type'])['filter'](_0x4e11a9=>_0x445d60['includes'](_0x4e11a9['attributeKey']));if(0x0==_0x145ca6['length'])return _0x19f1d0;for(const _0x2f3ee0 of _0x145ca6){const _0x1aed7f=_0x24a3a8['_findSuggestions'](_0x2f3ee0['range'],'attribute')['filter'](_0x4c27f4=>!_0x4c27f4['meta']['isNextTo'])['map'](_0x364ced=>_0x364ced['suggestion'])['filter'](_0xb9da03=>{const _0x3be28e=_0x24a3a8['_getAttributeKey'](_0xb9da03);return _0x445d60['includes'](_0x3be28e);});if(_0x1aed7f['length']){for(const _0x20e2d0 of _0x1aed7f)_0x3102e7['removeMarker'](_0x20e2d0['getFirstMarker']());_0x19f1d0=!0x0;}}return _0x19f1d0;}['assureChains'](){const _0x37f566=this['editor']['plugins']['get']('TrackChangesEditing'),_0x57f308=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x2f5019;const _0x9429ed=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x19f0d8=>{if(_0x19f0d8['data']['oldRange']||!_0x19f0d8['data']['newRange'])return null;if(!_0x19f0d8['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3170ef}=_0x37f566['_splitMarkerName'](_0x19f0d8['name']);if(!_0x37f566['hasSuggestion'](_0x3170ef))return null;const _0x403853=_0x37f566['getSuggestion'](_0x3170ef);return _0x57f308['includes'](_0x403853['data']['key']);})['map'](_0x44838e=>{const {id:_0x2dc478}=_0x37f566['_splitMarkerName'](_0x44838e['name']),_0xc16e81=_0x37f566['getSuggestion'](_0x2dc478);return _0x2f5019=_0xc16e81['attributes']['groupId'],_0xc16e81['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x9429ed['size'])return;const _0x4db964=_0x37f566['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x484374=>'attribute'==_0x484374['type']&&_0x484374['data']&&_0x57f308['includes'](_0x484374['data']['key'])&&_0x484374['attributes']['groupId']!=_0x2f5019)['map'](_0x42e1f2=>({'listItem':_0x42e1f2['getFirstRange']()['start']['nodeAfter'],'groupId':_0x42e1f2['attributes']['groupId']})),_0x215d80=new Set();for(const {groupId:_0x455fef,listItem:_0x16878f}of _0x4db964)_0x9429ed['has'](_0x16878f)&&_0x215d80['add'](_0x455fef);for(const _0x1e07b6 of _0x37f566['getSuggestions']())_0x215d80['has'](_0x1e07b6['attributes']['groupId'])&&_0x1e07b6['setAttribute']('groupId',_0x2f5019);}['_supportLegacySuggestions'](){const _0x17db04=this['editor'],_0x19f56f=_0x17db04['locale'],_0x3e16c9=_0x17db04['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e16c9['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x342f87,_0x357430){const _0x173536=[];for(let _0x3a4df3 of _0x342f87)_0x3a4df3['start']['nodeAfter']===_0x3a4df3['end']['parent']&&(_0x3a4df3=_0x17db04['model']['createRange'](_0x17db04['model']['createPositionAt'](_0x3a4df3['start']['nodeAfter'],0x0))),_0x173536['push'](_0x3a4df3);_0x17db04['model']['change'](_0x1f55fb=>{const _0x5c3876=_0x17db04['model']['document']['selection'],_0x3ddc3c=Array['from'](_0x5c3876['getRanges']())['map'](_0x16314c=>_0x3131df['fromRange'](_0x16314c));_0x1f55fb['setSelection'](_0x173536),_0x17db04['commands']['get'](_0x357430['commandName'])['refresh'](),_0x357430['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x17db04['execute'](_0x357430['commandName'],..._0x357430['commandParams']),_0x1f55fb['setSelection'](_0x3ddc3c);for(const _0x2c2465 of _0x3ddc3c)_0x2c2465['detach']();});}),_0x3e16c9['descriptionFactory']['registerElementLabel'](function(_0x1c5fb8){const _0x54e344=!_0x17db04['model']['schema']['isObject'](_0x1c5fb8),_0x17aada=_0x1c5fb8['previousSibling'],_0x3c21a1=_0x1c5fb8['nextSibling'],_0x21d29b=_0x1c5fb8['getAttribute']('listItemId'),_0xb75ccd=!_0x17aada||_0x17aada['getAttribute']('listItemId')!==_0x21d29b,_0x4e6349=!_0x3c21a1||_0x3c21a1['getAttribute']('listItemId')!==_0x21d29b;return _0x54e344&&Boolean(_0x21d29b)&&_0xb75ccd&&_0x4e6349;},_0x54a2e6=>o(_0x19f56f,'ELEMENT_LIST_ITEM',_0x54a2e6));}['_registerLegacyDescription'](){const _0x519b57=this['editor'],_0x5acc7c=_0x519b57['locale'];function _0x5c4ac1(_0x120b12){const _0x39b595=_0x519b57['commands']['get']('bulletedList')['value'],_0x5ca876=_0x519b57['commands']['get']('numberedList')['value'];return'numberedList'===_0x120b12?_0x39b595:_0x5ca876;}_0x519b57['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x419330){if('formatBlock'!=_0x419330['type'])return;const {data:_0x7a119e}=_0x419330;if(!_0x7a119e)return;let _0x419db8,_0x1ade17,_0x46dbb1,_0x32c9b9;switch(_0x7a119e['commandName']){case'bulletedList':_0x46dbb1=_0x7a119e['commandParams'][0x0]['forceValue'],_0x32c9b9=_0x5c4ac1(_0x7a119e['commandName']),_0x419db8=_0x46dbb1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32c9b9&&_0x519b57['config']['get']('list.multiBlock')||(_0x419db8='*Change\x20to:*\x20%0'),_0x1ade17={'type':'format','content':o(_0x5acc7c,_0x419db8,o(_0x5acc7c,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x46dbb1=_0x7a119e['commandParams'][0x0]['forceValue'],_0x32c9b9=_0x5c4ac1(_0x7a119e['commandName']),_0x419db8=_0x46dbb1?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x32c9b9&&_0x519b57['config']['get']('list.multiBlock')||(_0x419db8='*Change\x20to:*\x20%0'),_0x1ade17={'type':'format','content':o(_0x5acc7c,_0x419db8,o(_0x5acc7c,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x419db8='*Indent:*\x20%0',_0x1ade17={'type':'format','content':o(_0x5acc7c,_0x419db8,o(_0x5acc7c,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x419db8=function(_0x14a284){const _0x552aa1=_0x14a284['getFirstRange']();let _0x5288ea=_0x552aa1['start']['nodeAfter'];for(;_0x5288ea&&_0x552aa1['containsItem'](_0x5288ea);){if(_0x5288ea['getAttribute']('listIndent')>0x0)return!0x1;_0x5288ea=_0x5288ea['nextSibling'];}return!0x0;}(_0x419330)?o(_0x5acc7c,'*Format:*\x20remove\x20from\x20%0',o(_0x5acc7c,function(_0x556529){return'ELEMENT_'+_0x556529['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x419330))):o(_0x5acc7c,'*Outdent:*\x20%0',o(_0x5acc7c,'ELEMENT_LIST_ITEM')),_0x1ade17={'type':'format','content':_0x419db8};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7a119e['multipleBlocks']&&(_0x419db8='*Merge:*\x20%0',_0x1ade17={'type':'deletion','content':o(_0x5acc7c,_0x419db8,o(_0x5acc7c,'ELEMENT_LIST_ITEM'))});}return _0x1ade17;});}}function Te(_0x52b789){let _0x4dedc7=_0x52b789['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4dedc7;){const _0x2a5669=_0x4dedc7['getAttribute']('listItemId');if(!_0x2a5669)return!0x1;if(_0x2a5669==_0x52b789['data']['newValue'])return'newValue';if(_0x2a5669==_0x52b789['data']['oldValue'])return'oldValue';_0x4dedc7=_0x4dedc7['previousSibling'];}return!0x1;}class Se extends _0x99cb74{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x26a2d6=this['editor']['config']['get']('list.properties'),_0xeea293=this['editor']['plugins']['get']('TrackChangesEditing');_0x26a2d6['styles']&&(_0xeea293['enableDefaultAttributesIntegration']('listStyle'),_0xeea293['registerBlockAttribute']('listStyle')),_0x26a2d6['reversed']&&(_0xeea293['enableDefaultAttributesIntegration']('listReversed'),_0xeea293['registerBlockAttribute']('listReversed')),_0x26a2d6['startIndex']&&(_0xeea293['enableDefaultAttributesIntegration']('listStart'),_0xeea293['registerBlockAttribute']('listStart'));const _0x1ed26b={'type':'format','content':''};_0xeea293['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x367690=this['editor']['locale'];_0xeea293['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x367690,'FORMAT_LIST_REVERSED')),_0xeea293['descriptionFactory']['registerDescriptionCallback'](_0x62e002=>{const {data:_0x46023a}=_0x62e002;if(_0x46023a&&'listReversed'==_0x46023a['key'])return null==_0x46023a['newValue']||0x0==_0x46023a['newValue']&&null==_0x46023a['oldValue']?_0x1ed26b:void 0x0;}),_0xeea293['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x367690,'FORMAT_LIST_START')),_0xeea293['descriptionFactory']['registerDescriptionCallback'](_0x1ba84f=>{const {data:_0x173780}=_0x1ba84f;if(_0x173780&&'listStart'==_0x173780['key'])return null==_0x173780['newValue']||0x1==_0x173780['newValue']&&null==_0x173780['oldValue']?_0x1ed26b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4f2d56=>{if(_0x4f2d56['batch']['isUndo'])return!0x1;let _0x35ab66=!0x1;const _0x58c36a=_0xeea293['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d649e=>{const _0x56df5d=_0xeea293['_getAttributeKey'](_0x2d649e);return'listStart'==_0x56df5d||'listReversed'==_0x56df5d;});for(const _0x202053 of _0x58c36a){const _0x53f0d0=_0x202053['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x53f0d0||'customNumbered'==_0x53f0d0)continue;_0xeea293['_findSuggestions'](_0x202053['getFirstRange'](),'attribute')['find'](_0x2f7cd4=>'listType'==_0xeea293['_getAttributeKey'](_0x2f7cd4['suggestion']))||(_0x4f2d56['removeMarker'](_0x202053['getFirstMarker']()),_0x35ab66=!0x0);}return _0x35ab66;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x28ead2){const _0x4d5786=this['editor']['locale'],{data:_0x39d64e}=_0x28ead2,_0x49e738={'type':'format','content':''};if(!_0x39d64e||'listStyle'!=_0x39d64e['key'])return;if(!_0x39d64e['oldValue'])return'default'==_0x39d64e['newValue']?_0x49e738:{'type':'format','content':''+o(_0x4d5786,'*Set\x20format:*\x20%0',o(_0x4d5786,this['_getTranslationKeyForListStyle'](_0x39d64e['newValue'])))};if(!_0x39d64e['newValue']){if('default'==_0x39d64e['oldValue'])return _0x49e738;let _0x793297=_0x28ead2['head'];for(;_0x793297;){if(_0x793297['data']&&'listType'==_0x793297['data']['key']&&_0x793297['data']['newValue'])return _0x49e738;_0x793297=_0x793297['next'];}return{'type':'format','content':''+o(_0x4d5786,'*Remove\x20format:*\x20%0',o(_0x4d5786,this['_getTranslationKeyForListStyle'](_0x39d64e['oldValue'])))};}if('default'!=_0x39d64e['newValue'])return{'type':'format','content':''+o(_0x4d5786,'*Set\x20format:*\x20%0',o(_0x4d5786,this['_getTranslationKeyForListStyle'](_0x39d64e['newValue'])))};let _0x2edadb=_0x28ead2['head'];for(;_0x2edadb;){if(_0x2edadb['data']&&'listType'==_0x2edadb['data']['key']&&_0x2edadb['data']['newValue']&&_0x2edadb['data']['oldValue'])return _0x49e738;_0x2edadb=_0x2edadb['next'];}return{'type':'format','content':o(_0x4d5786,'*Set\x20format:*\x20%0',o(_0x4d5786,'ELEMENT_'+_0x28ead2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x8ce30e=this['editor'],_0x2d8451=_0x8ce30e['locale'];_0x8ce30e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d97a8=>{if('formatBlock'!=_0x2d97a8['type'])return;const {data:_0x543d16}=_0x2d97a8;if(!_0x543d16)return;let _0x2ce81b,_0x58f1dd;switch(_0x543d16['commandName']){case'listStyle':_0x2ce81b='*Change\x20to:*\x20%0',_0x58f1dd={'type':'format','content':o(_0x2d8451,_0x2ce81b,o(_0x2d8451,this['_getTranslationKeyForListStyle'](_0x543d16['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2ce81b=_0x543d16['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x58f1dd={'type':'format','content':o(_0x2d8451,_0x2ce81b)};break;case'listStart':_0x2ce81b='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x58f1dd={'type':'format','content':o(_0x2d8451,_0x2ce81b,_0x543d16['commandParams'][0x0]['startIndex'])};}return _0x58f1dd;});}['_getTranslationKeyForListStyle'](_0x357ddc){return'ELEMENT_'+function(_0x4c53cb){if(_e['includes'](_0x4c53cb))return'bulleted';if(Re['includes'](_0x4c53cb))return'numbered';return null;}(_0x357ddc)['toUpperCase']()+'_LIST_'+_0x357ddc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x99cb74{['afterInit'](){const _0x51afb0=this['editor'];_0x51afb0['commands']['get']('emoji')&&_0x51afb0['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x99cb74{static get['requires'](){return[_0x582fd5];}['init'](){const _0x2b2d54=this['editor'],_0x4a6c54=_0x2b2d54['plugins']['get']('TrackChangesEditing'),_0xec8f57=_0x2b2d54['commands']['get']('enter');_0x4a6c54['enableCommand']('enter',()=>{_0x2b2d54['model']['change'](_0x2bb912=>{const _0x1114dc=_0x2b2d54['model']['document']['selection'],_0x48cd81=_0x1114dc['getFirstPosition'](),_0x244b71=_0x3131df['fromRange'](_0x1114dc['getFirstRange']());if(_0xec8f57['enterBlock'](_0x2bb912)){const _0x38d71a=_0x2b2d54['model']['createPositionAt'](_0x48cd81['parent']['nextSibling'],0x0),_0x24099e=_0x2bb912['createRange'](_0x48cd81,_0x38d71a);_0x4a6c54['markInsertion'](_0x24099e);}else _0x2bb912['setSelection'](_0x2bb912['createRange'](_0x244b71['end']));_0x244b71['detach'](),_0xec8f57['fire']('afterExecute',{'writer':_0x2bb912});});}),_0x2b2d54['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x2b2d54,'split'),{'priority':'high'}),_0x2b2d54['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4b3e14,_0x36e749,_0x5a6751)=>{const _0x7964c4=_0x5a6751['mapper']['markerNameToElements'](_0x36e749['markerName']);if(_0x7964c4){for(const _0x52af47 of _0x7964c4)_0x52af47['hasClass']('ck-suggestion-marker-split')&&(_0x5a6751['mapper']['unbindElementFromMarkerName'](_0x52af47,_0x36e749['markerName']),_0x5a6751['writer']['remove'](_0x52af47));}},{'priority':'high'}),_0x2b2d54['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15c144,_0x1c43f1,_0x42398a)=>{_0x42398a['options']['showSuggestionHighlights']&&De(_0x2b2d54,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15c144,_0x1c43f1,_0x42398a);},{'priority':'high'});}}class Z extends _0x99cb74{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2f5f98=this['editor']['plugins']['get']('TrackChangesEditing');_0x2f5f98['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2f5f98['enableCommand']('findNext'),_0x2f5f98['enableCommand']('findPrevious'),_0x2f5f98['enableCommand']('replace'),_0x2f5f98['enableCommand']('replaceAll');}['handleFindCommand'](_0x428215,_0x1f985c,_0x503363={}){const _0x95c45d=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x428215(_0x62223b=>{let _0x673459=('string'==typeof _0x1f985c?_0x95c45d['findByTextCallback'](_0x1f985c,_0x503363):_0x1f985c)(_0x62223b);Array['isArray'](_0x673459)&&(_0x673459={'results':_0x673459,'searchText':'string'==typeof _0x1f985c?_0x1f985c:''});const _0x29b882=_0x673459['results']['filter'](_0x294c61=>!0x1===this['_isInDeletionRange'](_0x294c61,_0x62223b['item']));return{..._0x673459,'results':_0x29b882};},_0x503363);}['_isInDeletionRange'](_0x4773ad,_0x6b34ee){const _0x35d880=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6b34ee,_0x4773ad['start']),this['editor']['model']['createPositionAt'](_0x6b34ee,_0x4773ad['end']));for(const _0x5c9aed of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x35d880['getIntersection'](_0x5c9aed['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class tt extends _0x99cb74{['afterInit'](){const _0x3517d8=this['editor']['locale'],_0x47cb8e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x21f268,commandName:_0x47f7b3}of ro)this['editor']['plugins']['has'](_0x21f268)&&(_0x47cb8e['enableDefaultAttributesIntegration'](_0x47f7b3),_0x47cb8e['registerInlineAttribute'](_0x47f7b3));_0x47cb8e['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3517d8,'FORMAT_FONT_SIZE')),_0x47cb8e['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3517d8,'FORMAT_FONT_FAMILY')),_0x47cb8e['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3517d8,'FORMAT_FONT_COLOR')),_0x47cb8e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3517d8,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x167085=this['editor'],_0x2f6136=_0x167085['locale'];_0x167085['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfc100e=>{const _0x20b2f9=_0x2f6136['t'];if('formatInline'!=_0xfc100e['type'])return;const {data:_0x18d1ae}=_0xfc100e;if(null!=_0x18d1ae){if('fontSize'==_0x18d1ae['commandName']){const _0x35750f=_0x18d1ae['commandParams'][0x0]['value'];if(_0x35750f){const _0x2c3865=_0x20b2f9(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x208329=>_0x208329['model']==_0x35750f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2f6136,'*Set\x20font\x20size:*\x20%0',_0x2c3865)};}return{'type':'format','content':o(_0x2f6136,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x18d1ae['commandName']){const _0x4a2c87=_0x18d1ae['commandParams'][0x0]['value'];return _0x4a2c87?{'type':'format','content':o(_0x2f6136,'*Set\x20font\x20family:*\x20%0',_0x4a2c87)}:{'type':'format','content':o(_0x2f6136,'*Reset\x20font\x20family*')};}if('fontColor'==_0x18d1ae['commandName']){const _0x2bc361=_0x18d1ae['commandParams'][0x0]['value'];if(_0x2bc361){const _0x46f732=_0x172371(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5f392e=>_0x5f392e['model']==_0x2bc361);let _0x25fad8=_0x2bc361,_0x10f9b6='';return _0x46f732&&(_0x25fad8=_0x46f732['label'],_0x10f9b6=_0x20b2f9(_0x25fad8)['toLowerCase']()),{'type':'format','content':o(_0x2f6136,'*Set\x20font\x20color:*\x20%0',_0x10f9b6)['trim'](),'color':{'value':_0x2bc361,'title':_0x10f9b6||_0x25fad8}};}return{'type':'format','content':o(_0x2f6136,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x18d1ae['commandName']){const _0x39af88=_0x18d1ae['commandParams'][0x0]['value'];if(_0x39af88){const _0x3a4a81=_0x172371(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x55849c=>_0x55849c['model']==_0x39af88);let _0x3a0c8a=_0x39af88,_0x4266f6='';return _0x3a4a81&&(_0x3a0c8a=_0x3a4a81['label'],_0x4266f6=_0x20b2f9(_0x3a0c8a)['toLowerCase']()),{'type':'format','content':o(_0x2f6136,'*Set\x20font\x20background\x20color:*\x20%0',_0x4266f6)['trim'](),'color':{'value':_0x39af88,'title':_0x4266f6||_0x3a0c8a}};}return{'type':'format','content':o(_0x2f6136,'*Reset\x20font\x20background\x20color*')};}}});}}class nt extends _0x99cb74{['afterInit'](){const _0x1a4806=this['editor'],_0x3084da=_0x1a4806['plugins']['get']('TrackChangesEditing'),_0x123b35=_0x1a4806['commands']['get']('copyFormat'),_0x28ab8e=_0x1a4806['commands']['get']('pasteFormat');_0x123b35&&_0x28ab8e&&(_0x3084da['enableDefaultAttributesIntegration']('pasteFormat'),_0x3084da['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x1a848b=this['editor'],_0x277654=_0x1a848b['locale'];_0x1a848b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x34608a=>{if('formatBlock'!=_0x34608a['type']&&'formatInline'!=_0x34608a['type'])return;const {data:_0x346ec4}=_0x34608a;if(_0x346ec4&&'pasteFormat'===_0x346ec4['commandName']){const _0x1a379f=[],_0x1ad50f=_0x346ec4['commandParams'][0x0];for(const [_0x3f2abc,_0x5ec6b2]of Object['entries'](_0x1ad50f))_0x1a379f['push'](so(_0x1a848b,_0x3f2abc,_0x5ec6b2));return _0x1a379f['length']?{'type':'format','content':o(_0x277654,'*Set\x20format\x20to:*\x20%0',_0x1a379f['join'](',\x20'))}:{'type':'format','content':o(_0x277654,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1300e1,_0xdc3d9f,_0x5a499e){const _0x5c3405=_0x1300e1['locale']['t'],_0x428b8f=_0xdc3d9f['split'](/(?=[A-Z])/)['join']('\x20'),_0x408b18=_0x5c3405(_0x428b8f['charAt'](0x0)['toUpperCase']()+_0x428b8f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5a499e)return _0x408b18;if('fontColor'===_0xdc3d9f||'fontBackgroundColor'===_0xdc3d9f){const _0x100fc0=_0x172371(_0x1300e1['config']['get']('fontColor.colors'))['find'](_0x5e4dfa=>_0x5e4dfa['model']==_0x5a499e);return _0x408b18+'\x20('+(_0x100fc0?_0x5c3405(_0x100fc0['label'])['toLowerCase']():_0x5a499e)+')';}if('fontSize'===_0xdc3d9f&&isNaN(parseFloat(_0x5a499e))){const _0x252693=_0x1300e1['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1300e1['config']['get']('fontSize.options'))['find'](_0x2effa0=>_0x2effa0['model']==_0x5a499e);return _0x408b18+'\x20('+(_0x252693?_0x5c3405(_0x252693['title'])['toLowerCase']():_0x5a499e)+')';}return _0x408b18+'\x20('+_0x5a499e+')';}class it extends _0x99cb74{['_headingOptions'];['afterInit'](){const _0x233dea=this['editor'];if(!_0x233dea['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x233dea['config']['get']('heading.options');const _0x3f58e9=_0x233dea['locale'],_0x5a493c=_0x233dea['plugins']['get']('TrackChangesEditing');_0x5a493c['enableDefaultAttributesIntegration']('heading');for(const _0x694c58 of this['_headingOptions'])'paragraph'!=_0x694c58['model']&&_0x5a493c['descriptionFactory']['registerElementLabel'](_0x694c58['model'],_0x3372f1=>{const _0x8ea018=this['_getHeadingLevel'](_0x694c58['model']);return null!==_0x8ea018?_0x1fa15e(_0x3372f1,_0x8ea018):_0xfd7b0d(_0x3372f1,_0x694c58['title']);});function _0x1fa15e(_0x8fa876,_0x14a4cd){return o(_0x3f58e9,'ELEMENT_HEADING',[_0x8fa876,_0x14a4cd]);}function _0xfd7b0d(_0xa631d2,_0x189524){return o(_0x3f58e9,'ELEMENT_HEADING_CUSTOM',[_0xa631d2,_0x189524]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46ae51=this['editor'],_0x3341f3=_0x46ae51['locale'];function _0x25f133(_0xe17bc2,_0x3cd95b){return o(_0x3341f3,'ELEMENT_HEADING_CUSTOM',[_0xe17bc2,_0x3cd95b]);}_0x46ae51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25a36e=>{if('formatBlock'!=_0x25a36e['type'])return;const {data:_0x53dd01}=_0x25a36e;if(_0x53dd01&&'heading'==_0x53dd01['commandName']){const _0x5a0168=_0x53dd01['commandParams'][0x0]['value'],_0x1d60e6=this['_getHeadingLevel'](_0x5a0168);if(null!==_0x1d60e6)return{'type':'format','content':o(_0x3341f3,'*Change\x20to:*\x20%0',(_0x45bbdc=0x1,_0x53b4cb=_0x1d60e6,o(_0x3341f3,'ELEMENT_HEADING',[_0x45bbdc,_0x53b4cb])))};const _0x23b60a=this['_headingOptions']['find'](_0x794b38=>_0x794b38['model']===_0x5a0168)['title'];return{'type':'format','content':o(_0x3341f3,'*Change\x20to:*\x20%0',_0x25f133(0x1,_0x23b60a))};}var _0x45bbdc,_0x53b4cb;});}['_getHeadingLevel'](_0x1e395e){const _0x21bf0e=_0x1e395e['match'](/^heading(\d+)/);if(_0x21bf0e)return _0x21bf0e[0x1];const _0x3db04d=this['_headingOptions']?.['find'](_0xde196e=>_0xde196e['model']==_0x1e395e);if(_0x3db04d&&_0x3db04d['view']){const _0x11971e=_0x3db04d['view'],_0xec285=(_0x11971e['name']??_0x11971e)['match'](/^h(\d+)/);if(_0xec285)return _0xec285[0x1];}return null;}}class et extends _0x99cb74{['afterInit'](){const _0x300fd3=this['editor'];if(!_0x300fd3['plugins']['has']('HighlightEditing'))return;const _0x4f8310=_0x300fd3['plugins']['get']('TrackChangesEditing'),_0x1b6929=_0x300fd3['locale'];_0x4f8310['enableDefaultAttributesIntegration']('highlight'),_0x4f8310['registerInlineAttribute']('highlight'),_0x4f8310['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1b6929,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56cb76=this['editor'],_0x267e05=_0x56cb76['locale'];_0x56cb76['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e7357=>{if('formatInline'!=_0x5e7357['type'])return;const {data:_0x2208e7}=_0x5e7357;if(_0x2208e7&&'highlight'==_0x2208e7['commandName']){const _0x77259b=_0x267e05['t'],_0x12455b=_0x2208e7['commandParams'][0x0]['value'];if(_0x12455b){const _0x5dd321=_0x56cb76['config']['get']('highlight.options')['find'](_0xf6a754=>_0xf6a754['model']==_0x12455b),_0x3ecc51=_0x77259b(_0x5dd321['title'])['toLowerCase']();return{'type':'format','content':o(_0x267e05,'*Set\x20highlight:*\x20%0',_0x3ecc51),'color':{'value':_0x5dd321['color'],'title':_0x5dd321['title']}};}return{'type':'format','content':o(_0x267e05,'*Remove\x20highlight*',o(_0x267e05,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x99cb74{['afterInit'](){const _0x2a420f=this['editor'];if(!_0x2a420f['plugins']['has']('HorizontalLineEditing'))return;_0x2a420f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x2ca121=_0x2a420f['plugins']['get']('TrackChangesEditing'),_0x2d0280=_0x2a420f['locale'];_0x2ca121['descriptionFactory']['registerElementLabel']('horizontalLine',_0xf36183=>o(_0x2d0280,'ELEMENT_HORIZONTAL_LINE',_0xf36183)),_0x2a420f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x34f004,{writer:_0x2b9779,options:_0x3072f6})=>{if(!_0x3072f6['showSuggestionHighlights'])return null;const _0x421fbf=_0x2b9779['createContainerElement']('div'),_0x37f9b0=_0x2b9779['createEmptyElement']('hr');return _0x2b9779['addClass']('ck-horizontal-line',_0x421fbf),_0x2b9779['insert'](_0x2b9779['createPositionAt'](_0x421fbf,0x0),_0x37f9b0),_0x421fbf;},'converterPriority':'high'});}}class ot extends _0x99cb74{['afterInit'](){const _0xddf4ac=this['editor'];if(!_0xddf4ac['plugins']['has']('HtmlEmbed'))return;const _0x5ea5a5=_0xddf4ac['plugins']['get']('TrackChangesEditing'),_0x243e10=_0xddf4ac['locale'];_0x5ea5a5['descriptionFactory']['registerElementLabel']('rawHtml',_0xce3040=>o(_0x243e10,'ELEMENT_HTML_EMBED',_0xce3040)),_0x5ea5a5['enableDefaultAttributesIntegration']('htmlEmbed'),_0x5ea5a5['registerBlockAttribute']('value'),_0x5ea5a5['descriptionFactory']['registerDescriptionCallback'](_0x5492f5=>{if('attribute'!=_0x5492f5['type'])return;const {data:_0xa8be2b}=_0x5492f5;if(_0xa8be2b&&'value'==_0xa8be2b['key']&&_0x5492f5['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xb37f2d=o(_0x243e10,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x243e10,'*Change\x20%0\x20content*',_0xb37f2d)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x8499e6=this['editor'],_0x93031b=_0x8499e6['locale'];_0x8499e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18fd40=>{if('formatBlock'!=_0x18fd40['type'])return;const {data:_0x2f9420}=_0x18fd40;if(_0x2f9420&&'htmlEmbed'==_0x2f9420['commandName']){const _0x5b2600=o(_0x93031b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x93031b,'*Change\x20%0\x20content*',_0x5b2600)};}});}}class rt extends _0x99cb74{['afterInit'](){const _0x4cc2a0=this['editor'];if(!_0x4cc2a0['plugins']['has']('ImageEditing'))return;const _0x51023c=_0x4cc2a0['plugins']['get']('TrackChangesEditing'),_0x3e3457=_0x4cc2a0['plugins']['get']('ImageUtils'),_0x57af17=_0x4cc2a0['locale'];_0x51023c['enableCommand']('insertImage'),_0x51023c['descriptionFactory']['registerElementLabel']('imageBlock',_0x2dcb28=>o(_0x57af17,'ELEMENT_IMAGE',_0x2dcb28)),_0x51023c['descriptionFactory']['registerElementLabel']('imageInline',_0x38a85b=>o(_0x57af17,'ELEMENT_INLINE_IMAGE',_0x38a85b)),_0x51023c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x57af17,'ELEMENT_CAPTION')),_0x4cc2a0['plugins']['has']('ImageUploadEditing')&&_0x51023c['enableCommand']('uploadImage'),_0x4cc2a0['plugins']['has']('ImageBlockEditing')&&_0x4cc2a0['plugins']['has']('ImageInlineEditing')&&(_0x51023c['enableCommand']('imageTypeInline',(_0x572ccd,_0x3151be)=>{const _0x1eb5fa=_0x3e3457['getClosestSelectedImageElement'](_0x4cc2a0['model']['document']['selection']);_0x4cc2a0['model']['change'](()=>{_0x51023c['markBlockFormat'](_0x1eb5fa,{'commandName':'imageTypeInline','commandParams':[_0x3151be]},[],'convertBlockImageToInline');});}),_0x51023c['enableCommand']('imageTypeBlock',(_0x392460,_0x2450b2)=>{_0x4cc2a0['model']['change'](_0x3361f7=>{let _0x174583=_0x3e3457['getClosestSelectedImageElement'](_0x4cc2a0['model']['document']['selection']),_0x4b0f29=_0x3361f7['createRangeOn'](_0x174583);const _0x2a7e9e=_0x39ac4e['fromPosition'](_0x4b0f29['start'],'toPrevious'),_0xee533a=_0x39ac4e['fromPosition'](_0x4b0f29['end'],'toNext');_0x51023c['forceDefaultExecution'](()=>_0x392460(_0x2450b2)),_0x174583=_0x3e3457['getClosestSelectedImageElement'](_0x4cc2a0['model']['document']['selection']),_0x4b0f29=_0x3361f7['createRangeOn'](_0x174583);const _0x324662=_0x3361f7['createRange'](_0x2a7e9e,_0xee533a);_0x2a7e9e['detach'](),_0xee533a['detach'](),_0x51023c['markBlockFormat'](_0x174583,{'commandName':'imageTypeInline','commandParams':[_0x2450b2]},[],'convertInlineImageToBlock'),_0x324662['start']['isBefore'](_0x4b0f29['start'])&&_0x51023c['markInsertion'](_0x3361f7['createRange'](_0x324662['start'],_0x4b0f29['start']),'convertInlineImageToBlock'),_0x4b0f29['end']['isBefore'](_0x324662['end'])&&_0x51023c['markInsertion'](_0x3361f7['createRange'](_0x4b0f29['end'],_0x324662['end']),'convertInlineImageToBlock');});}),_0x51023c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x51023c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x51023c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x51023c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x51023c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x51023c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x227184])=>{const _0x7a206f=_0x51023c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x86616d=_0x227184['start'],_0xaeeff=_0x227184['end'];const _0x3ea9d0=_0x4cc2a0['model']['schema']['getNearestSelectionRange'](_0x86616d,'backward'),_0x1cd508=_0x4cc2a0['model']['schema']['getNearestSelectionRange'](_0xaeeff,'forward');_0x3ea9d0['isCollapsed']&&(_0x86616d=_0x3ea9d0['start']),_0x1cd508['isCollapsed']&&(_0xaeeff=_0x1cd508['end']),_0x7a206f([_0x4cc2a0['model']['createRange'](_0x86616d,_0xaeeff)]);}),_0x51023c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x296d3c),_0x51023c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x296d3c)),_0x4cc2a0['plugins']['has']('ImageCaptionEditing')&&(_0x51023c['enableCommand']('toggleImageCaption',(_0x2ba0db,_0x11e650)=>{const _0xfd30e1=_0x4cc2a0['plugins']['get']('ImageCaptionUtils');let _0x37fffe=_0x3e3457['getClosestSelectedImageElement'](_0x4cc2a0['model']['document']['selection']),_0x4f6c13=_0xfd30e1['getCaptionFromImageModelElement'](_0x37fffe);_0x4cc2a0['model']['change'](()=>{if(_0x4f6c13)return void _0x51023c['markDeletion'](_0x4cc2a0['model']['createRangeOn'](_0x4f6c13));const _0x410165=_0x3e3457['isBlockImage'](_0x37fffe);_0x2ba0db(_0x11e650),_0x37fffe=_0x3e3457['getClosestSelectedImageElement'](_0x4cc2a0['model']['document']['selection']),_0x4f6c13=_0xfd30e1['getCaptionFromImageModelElement'](_0x37fffe),_0x51023c['markInsertion'](_0x4cc2a0['model']['createRangeOn'](_0x4f6c13),_0x410165?null:'imageCaption');});}),_0x51023c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x296d3c));const _0x46c338=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4ba8fd(_0x55089b,_0x19c8a1){const _0x24bfae=_0x46c338['findIndex'](({type:_0x557cfc,subType:_0x516182})=>_0x55089b['type']==_0x557cfc&&_0x55089b['subType']==_0x516182),_0x471152=_0x46c338['findIndex'](({type:_0x2846b0,subType:_0x2da421})=>_0x19c8a1['type']==_0x2846b0&&_0x19c8a1['subType']==_0x2da421);if(_0x24bfae<0x0||_0x471152<0x0)return!0x1;const _0x32b6c7=_0x55089b['getFirstRange'](),_0x33b047=_0x19c8a1['getFirstRange']();if((0x0==_0x24bfae||0x1==_0x24bfae)&&0x2==_0x471152&&_0x32b6c7['isIntersecting'](_0x33b047))return!0x0;if(0x2==_0x24bfae&&0x3==_0x471152){const _0x417594=_0x51023c['_findSuggestions'](_0x32b6c7,'insertion')['filter'](({suggestion:_0x320dcc,meta:_0x5ee70e})=>_0x5ee70e['isOwn']&&'convertInlineImageToBlock'==_0x320dcc['subType']);if(_0x417594['length']>0x1&&_0x33b047['end']['isEqual'](_0x32b6c7['start']))return!0x0;if(0x1==_0x417594['length']&&(_0x32b6c7['start']['isEqual'](_0x33b047['end'])||_0x32b6c7['end']['isEqual'](_0x33b047['start'])))return!0x0;}if(0x3==_0x24bfae&&0x3==_0x471152&&_0x32b6c7['start']['isBefore'](_0x33b047['start'])){const _0x319e87=_0x32b6c7['end']['nodeAfter'],_0x1e58a1=_0x33b047['start']['nodeBefore'];return _0x3e3457['isBlockImage'](_0x319e87)&&_0x319e87===_0x1e58a1;}return!0x1;}function _0x296d3c(_0x10b5ed,_0x18a017){return _0x4ba8fd(_0x10b5ed,_0x18a017)?[_0x10b5ed,_0x18a017]:_0x4ba8fd(_0x18a017,_0x10b5ed)?[_0x18a017,_0x10b5ed]:null;}_0x4cc2a0['plugins']['has']('ImageResize')&&(_0x51023c['enableDefaultAttributesIntegration']('resizeImage'),_0x51023c['registerBlockAttribute']('resizedWidth'),_0x51023c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x57af17,'FORMAT_IMAGE_SIZE'))),_0x4cc2a0['plugins']['has']('ImageTextAlternativeEditing')&&(_0x51023c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x51023c['registerBlockAttribute']('alt')),_0x4cc2a0['plugins']['has']('PictureEditing')&&(_0x51023c['registerBlockAttribute']('sources'),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x341060=>{if('attribute'!=_0x341060['type'])return;const {data:_0x189912}=_0x341060;return _0x189912&&'sources'==_0x189912['key']?{'type':'format','content':''}:void 0x0;})),_0x4cc2a0['plugins']['has']('ImageSizeAttributes')&&(_0x51023c['registerBlockAttribute']('width'),_0x51023c['registerBlockAttribute']('height'),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x124e79=>{if('attribute'!=_0x124e79['type'])return;const {data:_0x5015aa}=_0x124e79;return!_0x5015aa||'width'!=_0x5015aa['key']&&'height'!=_0x5015aa['key']?void 0x0:{'type':'format','content':''};})),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x4d56e7=>{if(!!_0x46c338['find'](({type:_0x27e748,subType:_0x561e37})=>_0x4d56e7['type']==_0x27e748&&_0x4d56e7['subType']==_0x561e37))return _0x4d56e7['previous']?{}:void 0x0;}),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x593ee0=>{if('insertion'==_0x593ee0['type']||'deletion'==_0x593ee0['type']){const _0x517097=_0x593ee0['getContainedElement']();if(_0x517097&&_0x517097['is']('element','caption'))return{'type':'insertion'==_0x593ee0['type']?'addObject':'removeObject','element':_0x517097,'quantity':0x1};}}),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x5e5053=>'formatBlock'==_0x5e5053['type']&&'convertInlineImageToBlock'==_0x5e5053['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5e5053['type']&&'convertBlockImageToInline'==_0x5e5053['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x51023c['descriptionFactory']['registerDescriptionCallback'](_0x4cbaef=>{if('attribute'!=_0x4cbaef['type'])return;const {data:_0x437ca4}=_0x4cbaef;if(!_0x437ca4||'alt'!=_0x437ca4['key'])return;const _0x4f18c3=_0x437ca4['newValue'];return _0x4f18c3?{'type':'format','content':o(_0x57af17,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f18c3+'\x22')}:{'type':'format','content':o(_0x57af17,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x507ce0=this['editor'],_0xe141b4=_0x507ce0['locale'];_0x507ce0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x97dfd7=>{if('formatBlock'!=_0x97dfd7['type']&&'formatInline'!=_0x97dfd7['type'])return;const {data:_0x138a7c}=_0x97dfd7;if(_0x138a7c){if('imageTextAlternative'==_0x138a7c['commandName']){const _0x371786=_0x138a7c['commandParams'][0x0]['newValue'];return _0x371786?{'type':'format','content':o(_0xe141b4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x371786+'\x22')}:{'type':'format','content':o(_0xe141b4,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x138a7c['commandName']){const _0x503a4b=_0x138a7c['commandParams'][0x0]['width'];return _0x503a4b?{'type':'format','content':o(_0xe141b4,'*Set\x20image\x20width:*\x20%0',_0x503a4b)}:{'type':'format','content':o(_0xe141b4,'*Reset\x20image\x20width*')};}}});}}class at extends _0x99cb74{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1e879c=this['editor']['locale'],_0x5d3742=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d3742['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5d3742['registerBlockAttribute']('src'),_0x5d3742['descriptionFactory']['registerDescriptionCallback'](_0x5db7a5=>{if('attribute'!=_0x5db7a5['type'])return;const {data:_0x566ce6}=_0x5db7a5;return _0x566ce6&&'src'==_0x566ce6['key']?_0x566ce6['newValue']&&_0x566ce6['oldValue']?{'type':'format','content':o(_0x1e879c,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5b2ae9=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b2ae9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5b2ae9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b2ae9['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5b2ae9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x303675=this['editor'],_0x44202a=_0x303675['locale'];_0x303675['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24a2bd=>{if('formatBlock'!=_0x24a2bd['type']&&'formatInline'!=_0x24a2bd['type'])return;const {data:_0x3add9b}=_0x24a2bd;if(!_0x3add9b||'replaceImageSource'!=_0x3add9b['commandName'])return;return{'type':'format','content':o(_0x44202a,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x99cb74{['afterInit'](){const _0x521f9b=this['editor'];if(!_0x521f9b['plugins']['has']('ImageStyleEditing'))return;const _0x26e065=_0x521f9b['plugins']['get']('TrackChangesEditing'),_0x1765b3=_0x521f9b['plugins']['get']('ImageUtils'),_0x58ba5a={};_0x26e065['enableCommand']('imageStyle',(_0xdf3cd3,_0x34fc53)=>{const _0x312036=_0x521f9b['plugins']['get']('Users')['me'],_0x471c1e=_0x521f9b['commands']['get']('imageStyle');let _0x33bad1=_0x1765b3['getClosestSelectedImageElement'](_0x521f9b['model']['document']['selection']),_0x5d7d08=_0x521f9b['model']['createRangeOn'](_0x33bad1),_0x3c4c4e=_0x471c1e['value'];if(_0x3c4c4e==_0x34fc53['value'])return;const _0x3af07a={'commandName':'imageStyle','commandParams':[_0x34fc53],'formatGroupId':_0x161b41()};_0x521f9b['model']['change'](()=>{if(_0x26e065['getSuggestions']()['filter'](_0x4a85d0=>_0x4a85d0['isInContent']&&_0x312036==_0x4a85d0['author']&&('formatBlock'==_0x4a85d0['type']||'formatInline'==_0x4a85d0['type'])&&('imageStylePreApply'==_0x4a85d0['subType']||'imageStylePostApply'==_0x4a85d0['subType'])&&_0x4a85d0['getFirstRange']()['isEqual'](_0x5d7d08))['forEach'](_0xcf1fcd=>_0x26e065['discardSuggestion'](_0xcf1fcd['head'])),_0x33bad1=_0x1765b3['getClosestSelectedImageElement'](_0x521f9b['model']['document']['selection']),_0x5d7d08=_0x521f9b['model']['createRangeOn'](_0x33bad1),_0x471c1e['refresh'](),_0x521f9b['commands']['get']('imageTypeInline')['refresh'](),_0x521f9b['commands']['get']('imageTypeBlock')['refresh'](),_0x3c4c4e=_0x471c1e['value'],_0x3c4c4e!=_0x34fc53['value'])return _0x1765b3['isInlineImage'](_0x33bad1)&&_0x471c1e['shouldConvertImageType'](_0x34fc53['value'],_0x33bad1)?(_0xdf3cd3({..._0x34fc53,'setImageSizes':!0x1}),_0x33bad1=_0x1765b3['getClosestSelectedImageElement'](_0x521f9b['model']['document']['selection']),void _0x26e065['markBlockFormat'](_0x33bad1,{..._0x3af07a,'commandReversedParams':[{'value':_0x3c4c4e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1765b3['isBlockImage'](_0x33bad1)?_0x26e065['markBlockFormat'](_0x33bad1,_0x3af07a,[],'imageStylePostApply'):_0x26e065['markInlineFormat'](_0x5d7d08,_0x3af07a,'imageStylePostApply'));});});for(const _0x197534 of _0x521f9b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x58ba5a[_0x197534['name']]=_0x197534['title']['toLowerCase']();_0x26e065['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x26e065['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x26e065['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x26e065['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47a032])=>{_0x1765b3['setImageNaturalSizeAttributes'](_0x47a032['getContainedElement']());}),_0x26e065['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4b0f71,_0xe7f0c0)=>{_0x26e065['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4b0f71,{'commandName':_0xe7f0c0['commandName'],'commandParams':_0xe7f0c0['commandReversedParams']});}),_0x26e065['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1eced2,_0x266fc4){if(_0x5854ae(_0x1eced2,_0x266fc4))return[_0x1eced2,_0x266fc4];if(_0x5854ae(_0x266fc4,_0x1eced2))return[_0x266fc4,_0x1eced2];return null;});const _0x59ea67=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5854ae(_0x1e0be6,_0x347c72){const _0x376b63=_0x59ea67['findIndex'](({type:_0x4203c4,subType:_0x429cec})=>_0x1e0be6['type']==_0x4203c4&&_0x1e0be6['subType']==_0x429cec),_0x345fb6=_0x59ea67['findIndex'](({type:_0x52825c,subType:_0x4c66f1})=>_0x347c72['type']==_0x52825c&&_0x347c72['subType']==_0x4c66f1);if(_0x376b63<0x0||_0x345fb6<0x0)return!0x1;const _0x198f43=_0x1e0be6['getFirstRange'](),_0x3e4021=_0x347c72['getFirstRange']();if((0x0==_0x376b63||0x1==_0x376b63)&&0x2==_0x345fb6&&_0x198f43['isIntersecting'](_0x3e4021))return!0x0;if(0x2==_0x376b63&&0x3==_0x345fb6){const _0xb49a3a=_0x26e065['_findSuggestions'](_0x198f43,'insertion')['filter'](({suggestion:_0x1e1ea5,meta:_0x27505a})=>_0x27505a['isOwn']&&'convertInlineImageToBlock'==_0x1e1ea5['subType']);if(_0xb49a3a['length']>0x1&&_0x3e4021['end']['isEqual'](_0x198f43['start']))return!0x0;if(0x1==_0xb49a3a['length']&&(_0x198f43['start']['isEqual'](_0x3e4021['end'])||_0x198f43['end']['isEqual'](_0x3e4021['start'])))return!0x0;}if(0x3==_0x376b63&&0x3==_0x345fb6&&_0x198f43['start']['isBefore'](_0x3e4021['start'])){const _0x4ade66=_0x198f43['end']['nodeAfter'],_0x5ebff7=_0x3e4021['start']['nodeBefore'];return _0x1765b3['isBlockImage'](_0x4ade66)&&_0x4ade66===_0x5ebff7;}return!0x1;}_0x521f9b['model']['document']['registerPostFixer'](()=>{let _0x159053=!0x1;const _0x440593=Array['from'](_0x521f9b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3e8a25,data:_0x5776d5}of _0x440593){const {group:_0x1e2c65,type:_0x5ea965,subType:_0x3501be,id:_0x5b225c}=_0x26e065['_splitMarkerName'](_0x3e8a25);if('suggestion'==_0x1e2c65&&_0x26e065['hasSuggestion'](_0x5b225c)){if('formatBlock'==_0x5ea965&&('imageStylePreApply'==_0x3501be||'imageStylePostApply'==_0x3501be)){const _0x355ba0=_0x26e065['getSuggestion'](_0x5b225c);if(_0x5776d5['newRange']){const _0x2fd21d=_0x355ba0['getFirstRange']()['getContainedElement']();if(_0x1765b3['isBlockImage'](_0x2fd21d))continue;_0x26e065['discardSuggestion'](_0x355ba0),_0x159053=!0x0;}}if('insertion'==_0x5ea965&&'imageCaption'==_0x3501be&&!_0x5776d5['newRange']){const _0x4f1e49=_0x26e065['getSuggestion'](_0x5b225c);_0x4f1e49['next']&&_0x4f1e49['next']['isInContent']&&(_0x26e065['discardSuggestion'](_0x4f1e49['next']),_0x159053=!0x0);}}}return _0x159053;}),this['_registerLegacyDescription'](_0x58ba5a);}['_registerLegacyDescription'](_0x33af90){const _0x1b5aef=this['editor'],_0x35043f=_0x1b5aef['locale'];_0x1b5aef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x163420=>{if('formatBlock'!=_0x163420['type']&&'formatInline'!=_0x163420['type'])return;const {data:_0x52b958}=_0x163420;if(!_0x52b958||'imageStyle'!=_0x52b958['commandName'])return;const _0x1b955e=_0x52b958['commandParams'][0x0]['value'];return _0x5745f7('side'===_0x1b955e?o(_0x35043f,'FORMAT_SIDE_IMAGE'):_0x33af90[_0x1b955e]||_0x1b955e);function _0x5745f7(_0x2be490){return{'type':'format','content':o(_0x35043f,'*Format:*\x20%0',_0x2be490)};}});}}class ut extends _0x99cb74{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x3da809){super(_0x3da809),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x2412cc=this['editor'],_0x257a25=_0x2412cc['commands']['get']('importWord'),_0x186b1f=_0x2412cc['commands']['get']('trackChanges');_0x257a25&&(_0x257a25['on']('execute',(_0x28bf2c,[,_0x59c973])=>{this['_trackChangesValueDuringImport']=_0x186b1f['value'],_0x59c973['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x257a25,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x257a25,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x186b1f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x2412cc['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x7ee27b,_0x2646ac){const {suggestions:_0x26dd40}=_0x2646ac,_0x89b2dc=this['editor']['commands']['get']('trackChanges'),_0x20a324=_0x89b2dc['value'];this['_trackChangesValueDuringImport']!==_0x20a324&&(_0x89b2dc['execute'](),this['_trackChangesExecuted']=!0x0),_0x26dd40&&_0x26dd40['forEach'](({id:_0x57a966,type:_0x455b26,author:_0x2f9d4c,created_at:_0x57740b})=>{const _0x43166e={'id':_0x57a966,'type':_0x455b26,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2f9d4c,'createdAt':_0x57740b?new Date(_0x57740b):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x43166e);});}}class ft extends _0x99cb74{['afterInit'](){const _0x5be84b=this['editor'],_0x2b1052=_0x5be84b['plugins']['get']('TrackChangesEditing');if(_0x5be84b['plugins']['has']('IndentEditing')&&(_0x2b1052['enableCommand']('indent'),_0x2b1052['enableCommand']('outdent')),_0x5be84b['plugins']['has']('IndentBlock')){for(const _0x38ebde of['indentBlock','outdentBlock'])_0x2b1052['enableDefaultAttributesIntegration'](_0x38ebde);}const _0x51f610=_0x5be84b['locale'];_0x2b1052['registerBlockAttribute']('blockIndent'),_0x2b1052['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x51f610,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x98048c=this['editor'],_0x4ab13f=_0x98048c['locale'],_0x3c28f1=_0x98048c['plugins']['get']('TrackChangesEditing');_0x3c28f1['descriptionFactory']['registerDescriptionCallback'](_0x576fba=>{if('formatBlock'!=_0x576fba['type'])return;const {data:_0x4d219f}=_0x576fba;if(!_0x4d219f)return;if('indentBlock'!=_0x4d219f['commandName']&&'outdentBlock'!=_0x4d219f['commandName'])return;const _0x47878f=_0x576fba['getItems']()[0x0],_0x2d7fe8=_0x3c28f1['descriptionFactory']['getItemLabel'](_0x47878f);return'indentBlock'==_0x4d219f['commandName']?{'type':'format','content':o(_0x4ab13f,'*Indent:*\x20%0',_0x2d7fe8)}:'outdentBlock'==_0x4d219f['commandName']?{'type':'format','content':o(_0x4ab13f,'*Outdent:*\x20%0',_0x2d7fe8)}:void 0x0;});}}class ht extends _0x99cb74{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x99cb74{['afterInit'](){const _0x5422be=this['editor'];if(!_0x5422be['plugins']['has']('LinkEditing'))return;const _0x4021cc=_0x5422be['plugins']['get']('TrackChangesEditing'),_0x7ff53c=_0x5422be['commands']['get']('link');_0x4021cc['enableDefaultAttributesIntegration']('link'),_0x4021cc['enableDefaultAttributesIntegration']('unlink'),_0x4021cc['registerInlineAttribute']('linkHref');for(const _0x3c9a57 of _0x7ff53c['manualDecorators'])_0x4021cc['registerInlineAttribute'](_0x3c9a57['id']),_0x4021cc['descriptionFactory']['registerAttributeLabel'](_0x3c9a57['id'],'link\x20('+_0x3c9a57['label']['toLowerCase']()+')');_0x4021cc['descriptionFactory']['registerDescriptionCallback'](_0x4dee35=>{if('attribute'!=_0x4dee35['type'])return;const {data:_0x57dc42}=_0x4dee35;if(!_0x57dc42||'linkHref'!=_0x57dc42['key'])return;const _0x4e6031=_0x57dc42['newValue'],_0x4d5c00=_0x5422be['locale'];return{'type':'format','content':null==_0x4e6031?o(_0x4d5c00,'*Remove\x20link*'):o(_0x4d5c00,'*Set\x20link:*\x20%0','\x22'+_0x4e6031+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14304c=this['editor'],_0x497360=_0x14304c['locale'];_0x14304c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3723b0=>{if('formatInline'!=_0x3723b0['type'])return;const {data:_0x1bcb51}=_0x3723b0;if(_0x1bcb51){if('link'==_0x1bcb51['commandName']){const _0x3f4cf0=_0x1bcb51['commandParams'][0x0];return{'type':'format','content':o(_0x497360,'*Set\x20link:*\x20%0','\x22'+_0x3f4cf0+'\x22')};}return'unlink'==_0x1bcb51['commandName']?{'type':'format','content':o(_0x497360,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x99cb74{['afterInit'](){const _0xbe70d6=this['editor'],_0x3e3c88=_0xbe70d6['locale'];if(!_0xbe70d6['plugins']['has']('LegacyListEditing'))return;const _0x42ae2b=_0xbe70d6['plugins']['get']('TrackChangesEditing'),_0x2e404f=_0xbe70d6['plugins']['has']('LegacyTodoListEditing');function _0x376924(_0x322db0){return()=>{const _0x955915=_0xbe70d6['model']['document']['selection'],_0xcafc23=_0xbe70d6['commands']['get'](_0x322db0);if(_0xcafc23['value'])return void _0xbe70d6['execute']('paragraph',{});const _0x1b118b=_0x322db0['slice'](0x0,-0x4),_0xac7c8e=function(_0x100e4d,_0x5ca61e,_0x5c8ef4){let _0xa2cb7a=Array['from'](_0x100e4d)['filter'](_0x305f84=>function(_0x505aa7,_0x184302){return _0x184302['checkChild'](_0x505aa7['parent'],'listItem')&&!_0x184302['isObject'](_0x505aa7);}(_0x305f84,_0x5c8ef4));_0xa2cb7a=_0xa2cb7a['filter'](_0x3a777c=>!_0x3a777c['is']('element','listItem')||_0x3a777c['getAttribute']('listType')!=_0x5ca61e);const _0x43dafc=new Set();for(const _0x4b7f68 of _0xa2cb7a)_0x4b7f68['is']('element','listItem')?_0x43dafc['add'](Le(_0x4b7f68)):_0x43dafc['add'](_0x4b7f68);return Array['from'](_0x43dafc);}(_0x955915['getSelectedBlocks'](),_0x1b118b,_0xbe70d6['model']['schema']);_0xbe70d6['model']['change'](()=>{for(const _0x121b59 of _0xac7c8e)_0x42ae2b['markBlockFormat'](_0x121b59,{'commandName':_0x322db0,'commandParams':[{'forceValue':!_0xcafc23['value']}],'formatGroupId':'blockName'},Ee(_0x121b59));});};}function _0x1901c0(_0x5a99b9){return()=>{const _0x363a6b=function(_0x487181){let _0x20e2b3=Array['from'](_0x487181);const _0x49a13d=_0x20e2b3['findIndex'](_0x2b6a4f=>'listItem'!=_0x2b6a4f['name']);return _0x49a13d>-0x1&&(_0x20e2b3=_0x20e2b3['slice'](0x0,_0x49a13d)),_0x20e2b3;}(_0xbe70d6['model']['document']['selection']['getSelectedBlocks']()),_0xf23ac=_0xbe70d6['model']['createRange'](_0xbe70d6['model']['createPositionAt'](_0x363a6b[0x0],'before'),_0xbe70d6['model']['createPositionAt'](_0x363a6b[_0x363a6b['length']-0x1],'end'));_0xbe70d6['model']['change'](()=>{_0x42ae2b['markBlockFormat'](_0xf23ac,{'commandName':_0x5a99b9,'commandParams':[],'formatGroupId':'listIndent'},function(_0x10190b){const _0x385588=new Set();for(const _0x47d7b4 of _0x10190b){let _0x5196cc=_0x47d7b4['nextSibling'];for(;_0x5196cc&&_0x5196cc['getAttribute']('listIndent')>_0x47d7b4['getAttribute']('listIndent');)_0x385588['add'](_0x5196cc),_0x5196cc=_0x5196cc['nextSibling'];}return Array['from'](_0x385588);}(_0x363a6b));});};}_0x42ae2b['enableCommand']('numberedList',_0x376924('numberedList')),_0x42ae2b['enableCommand']('bulletedList',_0x376924('bulletedList')),_0x2e404f&&_0x42ae2b['enableCommand']('todoList',_0x376924('todoList')),_0x42ae2b['enableCommand']('indentList',_0x1901c0('indentList')),_0x42ae2b['enableCommand']('outdentList',_0x1901c0('outdentList')),_0x2e404f&&_0x42ae2b['enableCommand']('checkTodoList',()=>{const _0x8df7e0=_0xbe70d6['commands']['get']('checkTodoList'),_0x3b2516=Array['from'](_0x8df7e0['_selectedElements']);_0x3b2516['filter'](_0x573359=>_0x573359['getAttribute']('todoListChecked')!=_0x8df7e0['value']),_0xbe70d6['model']['change'](()=>{for(const _0x32aa59 of _0x3b2516)_0x42ae2b['markBlockFormat'](_0x32aa59,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x8df7e0['value']}]});});}),_0x42ae2b['descriptionFactory']['registerElementLabel']('listItem',_0x1e052a=>o(_0x3e3c88,'ELEMENT_LIST_ITEM',_0x1e052a)),_0x42ae2b['descriptionFactory']['registerDescriptionCallback'](_0xe5cf98=>{if('formatBlock'!=_0xe5cf98['type']&&'formatInline'!=_0xe5cf98['type'])return;const {data:_0x3e93d4}=_0xe5cf98;if(_0x3e93d4){if('numberedList'==_0x3e93d4['commandName']||'bulletedList'==_0x3e93d4['commandName']||'todoList'==_0x3e93d4['commandName'])switch(_0x3e93d4['commandName']['replace']('List','')){case'bulleted':return _0x43d82e(o(_0x3e3c88,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x43d82e(o(_0x3e3c88,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x43d82e(o(_0x3e3c88,'ELEMENT_TODO_LIST'));}if('indentList'==_0x3e93d4['commandName'])return{'type':'format','content':o(_0x3e3c88,'*Indent:*\x20%0',o(_0x3e3c88,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x3e93d4['commandName'])return{'type':'format','content':o(_0x3e3c88,'*Outdent:*\x20%0',o(_0x3e3c88,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x3e93d4['commandName'])return _0x3e93d4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3e3c88,'*Check\x20item*')}:{'type':'format','content':o(_0x3e3c88,'*Uncheck\x20item*')};}function _0x43d82e(_0x1ff3de){return{'type':'format','content':o(_0x3e3c88,'*Change\x20to:*\x20%0',_0x1ff3de)};}});}}function Le(_0x39927d){const _0x5f0564=_0x39927d['getAttribute']('listIndent');if(0x0==_0x5f0564)return _0x39927d;let _0x2318b4=_0x39927d;for(;_0x39927d['previousSibling']&&_0x39927d['previousSibling']['is']('element','listItem');){const _0x4120db=_0x39927d['previousSibling']['getAttribute']('listIndent');if(_0x4120db==_0x5f0564)_0x2318b4=_0x39927d['previousSibling'];else{if(_0x4120db<_0x5f0564)break;}_0x39927d=_0x39927d['previousSibling'];}return _0x2318b4;}function Ee(_0x1f1108){const _0x266251=[];if(_0x1f1108['is']('element','listItem')&&_0x1f1108['getAttribute']('listIndent')>0x0){let _0x5f40c4=_0x1f1108['nextSibling'];for(;_0x5f40c4&&'listItem'==_0x5f40c4['name']&&_0x5f40c4['getAttribute']('listIndent')==_0x1f1108['getAttribute']('listIndent');)_0x266251['push'](_0x5f40c4),_0x5f40c4=_0x5f40c4['nextSibling'];}return _0x266251;}class Q extends _0x99cb74{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x350f2e=this['editor']['config']['get']('list.properties'),_0x3e9168=this['editor']['plugins']['get']('TrackChangesEditing');_0x350f2e['styles']&&_0x3e9168['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x350f2e['reversed']&&_0x3e9168['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x350f2e['startIndex']&&_0x3e9168['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3e9168['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x4c21cb,_0x55663d={}){const _0x27351b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x24b65e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x27351b['markMultiRangeBlockFormat'](_0x24b65e,{'commandName':'listStyle','commandParams':[{'type':_0x55663d['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x39b6b4,_0x480508={}){const _0x50d5c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7c2606=this['_getSuggestionBlocks'](_0x57b2b6=>_0x57b2b6['is']('element','listItem')&&'numbered'===_0x57b2b6['getAttribute']('listType'));if(_0x7c2606['length']<0x1)return;const _0x103836=_0x7c2606['map'](_0x24a0f5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x24a0f5,'before'),this['editor']['model']['createPositionAt'](_0x24a0f5,0x0)));this['editor']['model']['change'](()=>{_0x50d5c8['markMultiRangeBlockFormat'](_0x103836,{'commandName':'listReversed','commandParams':[{'reversed':_0x480508['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2ae4b2,_0x141104={}){const _0x1b61b6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x21778d=this['_getSuggestionBlocks'](_0x5d9fd7=>_0x5d9fd7['is']('element','listItem')&&'numbered'===_0x5d9fd7['getAttribute']('listType'));if(_0x21778d['length']<0x1)return;const _0x296ae1=_0x21778d['map'](_0x35ccc5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x35ccc5,'before'),this['editor']['model']['createPositionAt'](_0x35ccc5,0x0)));this['editor']['model']['change'](()=>{_0x1b61b6['markMultiRangeBlockFormat'](_0x296ae1,{'commandName':'listStart','commandParams':[{'startIndex':_0x141104['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2eb93c){if('formatBlock'!=_0x2eb93c['type']&&'formatInline'!=_0x2eb93c['type'])return;const _0x3f3ff0=this['editor']['locale'],{data:_0x49f7df}=_0x2eb93c;if(!_0x49f7df)return;let _0x391365,_0x3d08c1;switch(_0x49f7df['commandName']){case'listStyle':_0x391365='*Change\x20to:*\x20%0',_0x3d08c1={'type':'format','content':o(_0x3f3ff0,_0x391365,o(_0x3f3ff0,this['_getTranslationKeyForListStyle'](_0x49f7df['commandParams'][0x0]['type'])))};break;case'listReversed':_0x391365=_0x49f7df['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3d08c1={'type':'format','content':o(_0x3f3ff0,_0x391365)};break;case'listStart':_0x391365='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3d08c1={'type':'format','content':o(_0x3f3ff0,_0x391365,_0x49f7df['commandParams'][0x0]['startIndex'])};}return _0x3d08c1;}['_getSuggestionBlocksForListStyle'](){const _0x70d0e7=this['editor']['plugins']['get']('LegacyListUtils');let _0x11504e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11504e[0x0]?.['is']('element','listItem')&&_0x11504e['unshift'](..._0x70d0e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11504e[_0x11504e['length']-0x1]?.['is']('element','listItem')&&_0x11504e['push'](..._0x70d0e7['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11504e=[...new Set(_0x11504e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11504e=_0x11504e['filter'](_0x283f54=>_0x283f54['is']('element','listItem'))),_0x11504e;}['_getSuggestionBlocks'](_0x539f75){const _0x33f6f2=this['editor']['plugins']['get']('LegacyListUtils');let _0x7d1f9e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x539f75)['map'](_0xfac88d=>{const _0x77b81f=this['editor']['model']['createPositionAt'](_0xfac88d,0x0);return[..._0x33f6f2['getSiblingNodes'](_0x77b81f,'backward'),..._0x33f6f2['getSiblingNodes'](_0x77b81f,'forward')];})['flat']();return _0x7d1f9e=[...new Set(_0x7d1f9e)],_0x7d1f9e;}['_getTranslationKeyForListStyle'](_0x1ed922){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x1ed922)||'default')['toUpperCase']()+'_LIST_'+_0x1ed922['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x99cb74{['afterInit'](){const _0x237bd3=this['editor'];if(!_0x237bd3['plugins']['has']('MediaEmbedEditing'))return;const _0x2216a0=_0x237bd3['plugins']['get']('TrackChangesEditing'),_0xabd471=_0x237bd3['locale'];_0x2216a0['enableCommand']('mediaEmbed'),_0x2216a0['descriptionFactory']['registerElementLabel']('media',_0x184966=>o(_0xabd471,'ELEMENT_MEDIA',_0x184966)),_0x237bd3['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x33fa39,{writer:_0x19a5be,options:_0x206e4c})=>{if(_0x206e4c['showSuggestionHighlights'])return _0x19a5be['createEmptyElement']('div');},'converterPriority':'high'}),_0x237bd3['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2c0b89,_0x3b40a6,_0x3a9796)=>{_0x3a9796['options']['showSuggestionHighlights']&&_0x2c0b89['stop']();},{'priority':'high'});}}class pt extends _0x99cb74{['afterInit'](){const _0x915360=this['editor'];_0x915360['plugins']['has']('MentionEditing')&&_0x915360['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x99cb74{['afterInit'](){const _0xda1841=this['editor'];if(!_0xda1841['plugins']['has']('MergeFieldsEditing'))return;const _0x5e1fa4=_0xda1841['plugins']['get']('TrackChangesEditing'),_0x5162e6=_0xda1841['locale'];_0x5e1fa4['enableCommand']('insertMergeField'),_0x5e1fa4['enableCommand']('insertMergeFieldBlock'),_0x5e1fa4['enableCommand']('insertMergeFieldImage'),_0x5e1fa4['descriptionFactory']['registerElementLabel']('mergeField',_0x4799cd=>o(_0x5162e6,'ELEMENT_MERGE_FIELD',_0x4799cd)),_0x5e1fa4['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x345d37=>o(_0x5162e6,'ELEMENT_MERGE_FIELD',_0x345d37)),_0x5e1fa4['descriptionFactory']['registerDescriptionCallback'](_0x5a0cd7=>{if('insertion'!=_0x5a0cd7['type']&&'deletion'!=_0x5a0cd7['type'])return;const _0x20d53e=_0x5a0cd7['getContainedElement']();if(null==_0x20d53e)return;const _0x337b73=_0xda1841['plugins']['get']('MergeFieldsEditing');let _0x45afc8;switch(_0x337b73['getMergeFieldType'](_0x20d53e)){case null:return;case'image':{const _0x5b9e99=_0x337b73['unwrapAffixes'](_0x20d53e['getAttribute']('src'));_0x45afc8=_0x337b73['getLabel'](_0x5b9e99)||_0x5b9e99;break;}default:{const _0x20e08b=_0x20d53e['getAttribute']('id');_0x45afc8=_0x337b73['getLabel'](_0x20e08b)||_0x20e08b;break;}}return'insertion'==_0x5a0cd7['type']?{'type':'insertion','content':o(_0x5162e6,'*Insert:*\x20%0','\x22'+_0x45afc8+'\x22\x20'+o(_0x5162e6,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5162e6,'*Remove:*\x20%0','\x22'+_0x45afc8+'\x22\x20'+o(_0x5162e6,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x99cb74{['afterInit'](){const _0x4d600c=this['editor'],_0x27d834=_0x4d600c['plugins']['get']('TrackChangesEditing');_0x4d600c['plugins']['has']('MultiLevelList')&&(_0x27d834['enableDefaultAttributesIntegration']('multiLevelList'),_0x27d834['registerBlockAttribute']('listMarkerStyle'),_0x27d834['descriptionFactory']['registerDescriptionCallback'](_0x5943fd=>this['handleDescriptions'](_0x5943fd)));}['handleDescriptions'](_0x41d7a5){const _0x37412f=this['editor']['locale'],{data:_0x626afc}=_0x41d7a5,_0x5c82f3={'type':'format','content':''};if(_0x626afc&&'listMarkerStyle'==_0x626afc['key']){if(!_0x626afc['oldValue'])return{'type':'format','content':o(_0x37412f,'*Set\x20format:*\x20%0',o(_0x37412f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x626afc['newValue']+')'};if(!_0x626afc['newValue']){let _0x56111b=_0x41d7a5['head'];for(;_0x56111b;){if(_0x56111b['data']&&'listType'==_0x56111b['data']['key']&&_0x56111b['data']['newValue'])return _0x5c82f3;_0x56111b=_0x56111b['next'];}return{'type':'format','content':o(_0x37412f,'*Remove\x20format:*\x20%0',o(_0x37412f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x626afc['oldValue']+')'};}}}}class bt extends _0x99cb74{['afterInit'](){const _0x2fa207=this['editor'];if(!_0x2fa207['plugins']['has']('PageBreakEditing'))return;_0x2fa207['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xf1c06d=_0x2fa207['plugins']['get']('TrackChangesEditing'),_0x3db345=_0x2fa207['locale'];_0xf1c06d['descriptionFactory']['registerElementLabel']('pageBreak',_0x110fd7=>o(_0x3db345,'ELEMENT_PAGE_BREAK',_0x110fd7));}}class yt extends _0x99cb74{['afterInit'](){const _0x50c83b=this['editor'];if(!_0x50c83b['plugins']['has']('Paragraph'))return;const _0xf8027a=_0x50c83b['locale'],_0x26400b=_0x50c83b['plugins']['get']('TrackChangesEditing');_0x26400b['descriptionFactory']['registerElementLabel']('paragraph',_0xa277ab=>o(_0xf8027a,'ELEMENT_PARAGRAPH',_0xa277ab)),_0x26400b['enableDefaultAttributesIntegration']('paragraph'),_0x26400b['enableCommand']('insertParagraph'),_0x50c83b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x50c83b),{'priority':'highest'}),_0x50c83b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4bb945,_0x15cf5e,_0x2caa9c)=>{_0x2caa9c['options']['showSuggestionHighlights']&&nr(_0x50c83b,{'showActiveMarker':!0x1})(_0x4bb945,_0x15cf5e,_0x2caa9c);},{'priority':'highest'});const _0x2011b3=_0x26400b['descriptionFactory'];_0x2011b3['registerDescriptionCallback'](_0x1c6cfc=>{if('insertion'!==_0x1c6cfc['type'])return;const {start:_0x5df763,end:_0x41df54}=_0x1c6cfc['getFirstRange']();if(!_0x5df763['isTouching'](_0x41df54)||!_0x5df763['nodeAfter'])return;const _0x3198b2=_0x50c83b['model']['schema'],_0x56eced=_0x5df763['nodeAfter'];return _0x3198b2['isBlock'](_0x56eced)&&!_0x3198b2['isLimit'](_0x56eced)&&_0x3198b2['checkChild'](_0x56eced,'$text')?{'type':'insertion','content':o(_0xf8027a,'*Insert:*\x20%0',_0x2011b3['getItemLabel'](_0x56eced,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c0144=this['editor'],_0x615c3f=_0x4c0144['locale'];_0x4c0144['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x9aa060=>{if('formatBlock'!=_0x9aa060['type'])return;const {data:_0x4f1bbf}=_0x9aa060;return _0x4f1bbf&&'paragraph'==_0x4f1bbf['commandName']?{'type':'format','content':o(_0x615c3f,'*Change\x20to:*\x20%0',o(_0x615c3f,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x21f867,{showActiveMarker:_0x3c0736=!0x0}={}){return(_0x3b768f,_0x49e81c,_0x2817be)=>{const _0x331246=_0x21f867['plugins']['get']('TrackChangesEditing'),_0x255ca3=_0x49e81c['markerRange']['start'],_0x47a8f6=_0x49e81c['markerRange']['end'],_0x11faa1=_0x21f867['model']['schema'];if(!_0x255ca3['isTouching'](_0x47a8f6)||!_0x255ca3['nodeAfter'])return;const _0x5df9fe=_0x255ca3['nodeAfter'];if(_0x11faa1['isBlock'](_0x5df9fe)&&!_0x11faa1['isLimit'](_0x5df9fe)&&_0x11faa1['checkChild'](_0x5df9fe,'$text')){if(!_0x2817be['consumable']['consume'](_0x49e81c['markerRange'],_0x3b768f['name']))return;const {authorId:_0x841dc0}=_0x331246['_splitMarkerName'](_0x49e81c['markerName']),_0x57b669=_0x2817be['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x841dc0}),_0x160c14=_0x2817be['mapper']['toViewPosition'](_0x47a8f6);_0x3c0736&&_0x331246['activeMarkers']['includes'](_0x49e81c['markerName'])&&_0x2817be['writer']['addClass']('ck-suggestion-marker--active',_0x57b669),_0x2817be['writer']['insert'](_0x160c14,_0x57b669),_0x2817be['mapper']['bindElementToMarker'](_0x57b669,_0x49e81c['markerName']);}};}class jt extends _0x99cb74{['afterInit'](){const _0x46005a=this['editor'];_0x46005a['commands']['get']('replaceSource')&&_0x46005a['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x99cb74{['afterInit'](){const _0xc77a05=this['editor'];if(!_0xc77a05['plugins']['has']('RemoveFormatEditing'))return;_0xc77a05['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1c55=this['editor'];_0x1e1c55['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x472f54=>{if('formatBlock'!=_0x472f54['type']&&'formatInline'!=_0x472f54['type'])return;const {data:_0x553ce3}=_0x472f54;return _0x553ce3&&'removeFormat'==_0x553ce3['commandName']?{'type':'format','content':o(_0x1e1c55['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x99cb74{['afterInit'](){const _0xa17d35=this['editor'];if(!_0xa17d35['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5c6165=_0xa17d35['plugins']['get']('TrackChangesEditing');_0x5c6165['enableCommand']('goToPreviousRestrictedEditingException'),_0x5c6165['enableCommand']('goToNextRestrictedEditingException');const _0x5aef75=_0xa17d35['plugins']['get']('RestrictedEditingModeEditing');_0x5aef75['enableCommand']('trackChanges'),_0x5aef75['enableCommand']('acceptSuggestion'),_0x5aef75['enableCommand']('discardSuggestion'),_0x5aef75['enableCommand']('acceptAllSuggestions'),_0x5aef75['enableCommand']('discardAllSuggestions'),_0x5aef75['enableCommand']('acceptSelectedSuggestions'),_0x5aef75['enableCommand']('discardSelectedSuggestions');}}class It extends _0x99cb74{static get['requires'](){return[_0x5fe290];}['init'](){const _0x150dc9=this['editor'],_0x4bda50=_0x150dc9['plugins']['get']('TrackChangesEditing');_0x4bda50['enableCommand']('shiftEnter'),_0x150dc9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x150dc9),{'priority':'high'}),_0x150dc9['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x150dc9),{'priority':'high'}),_0x150dc9['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e7d2c,_0x32ba9d,_0x383a96)=>{_0x383a96['options']['showSuggestionHighlights']&&je(_0x150dc9,{'showActiveMarker':!0x1})(_0x5e7d2c,_0x32ba9d,_0x383a96);}),_0x4bda50['descriptionFactory']['registerElementLabel']('softBreak',_0x46e290=>o(_0x150dc9['locale'],'ELEMENT_LINE_BREAK',_0x46e290));}}function je(_0x13a19b,{showActiveMarker:_0x4fc613=!0x0}={}){return(_0x29207f,_0x4628dd,_0x322e18)=>{const _0x578a61=_0x13a19b['plugins']['get']('TrackChangesEditing');if(!_0x322e18['consumable']['test'](_0x4628dd['markerRange'],_0x29207f['name']))return;const _0xc84fe8=_0x13a19b['model'];for(const _0x4e94a2 of _0x4628dd['markerRange']['getItems']()){if(!_0x4e94a2['is']('element','softBreak'))continue;const _0xbdf502='deletion'==_0x4628dd['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x3fe3b8}=_0x578a61['_splitMarkerName'](_0x4628dd['markerName']),_0x11ec33=_0x322e18['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xbdf502,'data-author-id':_0x3fe3b8}),_0x1d237c=_0x322e18['mapper']['toViewPosition'](_0xc84fe8['createPositionBefore'](_0x4e94a2));_0x4fc613&&_0x578a61['activeMarkers']['includes'](_0x4628dd['markerName'])&&_0x322e18['writer']['addClass']('ck-suggestion-marker--active',_0x11ec33),_0x322e18['writer']['insert'](_0x1d237c,_0x11ec33),_0x322e18['mapper']['bindElementToMarker'](_0x11ec33,_0x4628dd['markerName']);}};}class vt extends _0x99cb74{['afterInit'](){const _0x1865c7=this['editor'],_0x41a924=_0x1865c7['model'],_0x26b081=_0x1865c7['locale'];if(!_0x1865c7['plugins']['has']('StandardEditingModeEditing'))return;const _0x215be3=_0x1865c7['plugins']['get']('TrackChangesEditing'),_0x51cc19='restrictedEditingException',_0x2cf136=_0x1865c7['commands']['get'](_0x51cc19);_0x215be3['enableCommand'](_0x51cc19,(_0xc629e4,_0x1c1550={})=>{const _0x4de876=_0x41a924['document']['selection'];if(_0x4de876['isCollapsed'])return void _0xc629e4(_0x1c1550);const _0x12a0eb=void 0x0!==_0x1c1550['forceValue']?_0x1c1550['forceValue']:!_0x2cf136['value'];_0x41a924['change'](()=>{const _0x471755=Array['from'](_0x4de876['getRanges']());for(const _0x2b7bf4 of _0x471755){const _0x25a18f=_0x12a0eb?[_0x2b7bf4]:io(_0x51cc19,_0x2b7bf4,_0x41a924);for(const _0x46df2c of _0x25a18f)_0x215be3['markInlineFormat'](_0x46df2c,{'commandName':_0x51cc19,'commandParams':[{'forceValue':_0x12a0eb}]});}});}),_0x215be3['descriptionFactory']['registerDescriptionCallback'](_0x3087c6=>{if('formatBlock'!=_0x3087c6['type']&&'formatInline'!=_0x3087c6['type'])return;const {data:_0x5aef1a}=_0x3087c6;return _0x5aef1a&&_0x5aef1a['commandName']==_0x51cc19?_0x5aef1a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x26b081,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x26b081,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class _t extends _0x99cb74{['afterInit'](){const _0xbe6698=this['editor'];if(!_0xbe6698['plugins']['has']('Style')||!_0xbe6698['plugins']['has']('DataSchema'))return;const _0x844164=_0xbe6698['plugins']['get']('TrackChangesEditing'),_0x4d6d7e=_0xbe6698['locale'],_0xcab89d=_0xbe6698['config']['get']('style')||{},_0x1a0905=_0xbe6698['plugins']['get']('GeneralHtmlSupport'),_0x1960cc=_0xbe6698['plugins']['get']('StyleUtils')['normalizeConfig'](_0xbe6698['plugins']['get']('DataSchema'),_0xcab89d['definitions']);_0x844164['enableDefaultAttributesIntegration']('style');const _0xdc0c7a=new Set();for(const _0x546aaf of _0x1960cc['block']){const _0x1a0bcb=_0x1a0905['getGhsAttributeNameForElement'](_0x546aaf['element']);_0xdc0c7a['add'](_0x1a0bcb);}const _0x35b96d=new Set();for(const _0x24a515 of _0x1960cc['inline']){const _0x317fb2=_0x1a0905['getGhsAttributeNameForElement'](_0x24a515['element']);_0x35b96d['add'](_0x317fb2);for(const _0x395a15 of _0x24a515['ghsAttributes'])_0x35b96d['add'](_0x395a15);}for(const _0x58bfd6 of _0xdc0c7a)_0x844164['registerBlockAttribute'](_0x58bfd6),_0x844164['descriptionFactory']['registerAttributeLabel'](_0x58bfd6,o(_0x4d6d7e,'FORMAT_STYLE'));for(const _0x35532f of _0x35b96d)_0x844164['registerInlineAttribute'](_0x35532f),_0x844164['descriptionFactory']['registerAttributeLabel'](_0x35532f,o(_0x4d6d7e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14f539=this['editor'],_0x47257c=_0x14f539['locale'];_0x14f539['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e5866=>{if('formatBlock'!=_0x2e5866['type']&&'formatInline'!=_0x2e5866['type'])return;const {data:_0x43476d}=_0x2e5866;return _0x43476d&&'style'===_0x43476d['commandName']?_0x43476d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47257c,'*Set\x20format:*\x20%0',_0x43476d['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x47257c,'*Remove\x20format:*\x20%0',_0x43476d['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x99cb74{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4606db){super(_0x4606db),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x29eaa2=this['editor'],_0x1d79e4=_0x29eaa2['model']['document']['selection'];if(!_0x29eaa2['plugins']['has']('TableEditing'))return;const _0x2e4e90=_0x29eaa2['locale'],_0xd3702f=_0x29eaa2['plugins']['get']('TrackChangesEditing'),_0x367c7b=_0x29eaa2['plugins']['get']('TableUtils');_0xd3702f['descriptionFactory']['registerElementLabel']('table',_0xfd577b=>o(_0x2e4e90,'ELEMENT_TABLE',_0xfd577b)),this['_setupColumnsRowsFixing'](),_0xd3702f['enableCommand']('insertTable'),_0xd3702f['enableCommand']('selectTableRow'),_0xd3702f['enableCommand']('selectTableColumn');for(const _0x52024f of['insertTableRowAbove','insertTableRowBelow']){const _0x4042e5=_0x29eaa2['commands']['get'](_0x52024f);_0xd3702f['enableCommand'](_0x52024f,_0x1f2470=>{_0x29eaa2['model']['change'](_0x380852=>{_0x1f2470();const _0x38ef32='above'===_0x4042e5['order'],_0x3ccac9=_0x367c7b['getSelectionAffectedTableCells'](_0x1d79e4),_0x1bfd31=_0x367c7b['getRowIndexes'](_0x3ccac9),_0x374f5d=_0x38ef32?_0x1bfd31['first']-0x1:_0x1bfd31['last']+0x1,_0x40cba9=_0x3ccac9[0x0]['findAncestor']('table'),_0x4a7bd4=_0x367c7b['createTableWalker'](_0x40cba9,{'startRow':_0x374f5d,'endRow':_0x374f5d}),_0x5793d3=Array['from'](_0x4a7bd4)['map'](_0x356840=>_0x380852['createRangeOn'](_0x356840['cell']));_0xd3702f['markMultiRangeInsertion'](_0x5793d3,'tableRow');});});}for(const _0x4888a6 of['insertTableColumnLeft','insertTableColumnRight']){const _0x41b711=_0x29eaa2['commands']['get'](_0x4888a6);_0xd3702f['enableCommand'](_0x4888a6,_0x5ac2ac=>{_0x29eaa2['model']['change'](_0x5a0e39=>{_0x5ac2ac();const _0x35cecd='left'===_0x41b711['order'],_0x17663b=_0x367c7b['getSelectionAffectedTableCells'](_0x1d79e4),_0x28d543=_0x367c7b['getColumnIndexes'](_0x17663b),_0x4bd545=_0x35cecd?_0x28d543['first']-0x1:_0x28d543['last']+0x1,_0x176ca4=_0x17663b[0x0]['findAncestor']('table'),_0x4737db=_0x367c7b['createTableWalker'](_0x176ca4,{'startRow':0x0,'column':_0x4bd545,'includeAllSlots':!0x1}),_0x436716=Array['from'](_0x4737db)['map'](_0x2673a1=>_0x5a0e39['createRangeOn'](_0x2673a1['cell']));_0xd3702f['markMultiRangeInsertion'](_0x436716,'tableColumn');});});}for(const _0x27249d of['removeTableRow','removeTableColumn']){const _0x1136c0=_0x27249d['substr'](0xb),_0x40f781=_0x1136c0['toLowerCase'](),_0x18551a=_0x40f781['substr'](0x0,0x3)+'span',_0x31b292='table'+_0x1136c0,_0x51eca1='min'+_0x1136c0,_0x5df0ae='max'+_0x1136c0;_0xd3702f['enableCommand'](_0x27249d,()=>{_0x29eaa2['model']['change'](_0x6a1f1f=>{const _0x34859c=_0x367c7b['getSelectionAffectedTableCells'](_0x1d79e4),_0x6b4b57=_0x34859c[0x0]['findAncestor']('table');let _0x3a617b;if('removeTableRow'==_0x27249d){const _0x4dffa3=_0x367c7b['getRowIndexes'](_0x34859c);_0x3a617b={'startRow':_0x4dffa3['first'],'endRow':_0x4dffa3['last'],'includeAllSlots':!0x0};}else{const _0x599082=_0x367c7b['getColumnIndexes'](_0x34859c);_0x3a617b={'startColumn':_0x599082['first'],'endColumn':_0x599082['last'],'includeAllSlots':!0x0};}const _0x55185d=_0x367c7b['createTableWalker'](_0x6b4b57,_0x3a617b),_0x2e73e0=Array['from'](_0x55185d)['map'](({cell:_0x1a365d})=>_0x1a365d),_0x337ff8=Ne(_0x2e73e0['filter'](_0xbf89f8=>_0xbf89f8['hasAttribute'](_0x18551a))),_0x48a46a=Ne(_0x2e73e0['filter'](_0x39ef3a=>!_0x39ef3a['hasAttribute'](_0x18551a)))['map'](_0x34bcb6=>_0x6a1f1f['createRangeOn'](_0x34bcb6)),_0x1797ad=_0xd3702f['markMultiRangeDeletion'](_0x48a46a,_0x31b292);if(_0x1797ad&&('tableRow'==_0x1797ad['subType']||'tableColumn'==_0x1797ad['subType'])){const _0x199bbb=this['_getSuggestionCoords'](_0x1797ad);for(const _0x1aa6dc of _0x337ff8){const _0xb490e1=_0x6a1f1f['createRangeOn'](_0x1aa6dc),_0x2914ae=_0x367c7b['getCellLocation'](_0x1aa6dc),_0x42a847=_0x1aa6dc['getAttribute'](_0x18551a)-0x1,_0x4e7883=_0x199bbb[_0x51eca1],_0x106d03=_0x199bbb[_0x5df0ae];_0x4e7883<=_0x2914ae[_0x40f781]&&_0x2914ae[_0x40f781]+_0x42a847<=_0x106d03&&_0x1797ad['addRange'](_0xb490e1);}}});});}function _0x3147c8(_0x1458e2){const _0x479548=Array['from'](_0x1d79e4['getRanges']())['map'](_0x2bcedf=>_0x3131df['fromRange'](_0x2bcedf));_0x29eaa2['model']['change'](_0x35e2e4=>{const _0x327ec6=_0x35e2e4['batch'];_0x1458e2=_0x1458e2['filter'](_0xd0c010=>'$graveyard'!=_0xd0c010['root']['rootName']),_0x35e2e4['setSelection'](_0x1458e2),_0x29eaa2['commands']['get']('removeTableRow')['refresh'](),_0x29eaa2['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x29eaa2['model']['enqueueChange'](()=>{_0x29eaa2['model']['enqueueChange'](_0x327ec6,_0x4ec150=>{const _0x3e067f=_0x479548['filter'](_0x2755de=>'$graveyard'!=_0x2755de['root']['rootName']);_0x3e067f['length']>0x0&&_0x4ec150['setSelection'](_0x3e067f);for(const _0x155861 of _0x479548)_0x155861['detach']();});});});}function _0x181ddc(_0x6f9d0){_0x29eaa2['model']['change'](_0x14bdcf=>{const _0x15757a=Array['from'](_0x1d79e4['getRanges']())['map'](_0x1ae4cf=>_0x3131df['fromRange'](_0x1ae4cf)),_0x1040c7=[];for(const _0x302c6e of _0x6f9d0)for(const _0x928c66 of _0x302c6e['getItems']({'shallow':!0x0}))_0x1040c7['push'](_0x928c66);for(const _0x33828d of _0x1040c7)'$graveyard'!=_0x33828d['root']['rootName']&&(_0x14bdcf['setSelection'](_0x14bdcf['createPositionAt'](_0x33828d,0x0)),_0x29eaa2['commands']['get']('removeTableColumn')['refresh'](),_0x29eaa2['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x462066=_0x15757a['filter'](_0x58bd50=>'$graveyard'!=_0x58bd50['root']['rootName']);_0x462066['length']>0x0&&_0x14bdcf['setSelection'](_0x462066);for(const _0xc8cbe2 of _0x15757a)_0xc8cbe2['detach']();});}function _0x5bc2b2(_0x381f00,_0xbb4417){return _0xbb4417['every'](_0x2485d8=>_0x381f00['some'](_0x574f6b=>_0x574f6b['end']['isEqual'](_0x2485d8['start'])||_0x2485d8['end']['isEqual'](_0x574f6b['start'])));}function _0xa517ae(_0x9dd1ce,_0x2ba015){return!_0x9dd1ce['some'](_0x1f340f=>_0x2ba015['some'](_0x21f996=>_0x1f340f['isIntersecting'](_0x21f996)))&&_0x9dd1ce['some'](_0x4f1aa9=>_0x2ba015['some'](_0x5c4bc3=>_0x4f1aa9['end']['isTouching'](_0x5c4bc3['start'])));}_0x29eaa2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x536701,_0x35cc1e,_0x3428da)=>{if(!_0x3428da['options']['showSuggestionHighlights'])return;const _0x5478cb=_0x35cc1e['item'];if(!_0x5478cb)return;const _0x55a081=_0x3428da['mapper']['toViewElement'](_0x5478cb);function _0x3496e8(_0x1023aa){return Array['isArray'](_0x1023aa)?_0x1023aa:[_0x1023aa];}_0x55a081&&'tableCell'===_0x5478cb['name']&&_0x10de8c(_0x55a081,_0x3428da['writer'],(_0x2acc2a,_0x5aab29,_0x477f85)=>_0x477f85['addClass'](_0x3496e8(_0x5aab29['classes']),_0x2acc2a),(_0x3d886f,_0x15b8ce,_0x3c26ed)=>_0x3c26ed['removeClass'](_0x3496e8(_0x15b8ce['classes']),_0x3d886f));},{'priority':'highest'}),_0xd3702f['descriptionFactory']['registerDescriptionCallback'](_0x297d28=>{if('insertion'!=_0x297d28['type']&&'deletion'!=_0x297d28['type'])return;const _0x492e5d=_0x297d28['getContainedElement']();if(null!=_0x492e5d&&_0x492e5d['is']('element','table')){if('insertion'==_0x297d28['type']){const _0x4ec9b0=_0x297d28['getItems']()['filter'](_0x299e85=>_0x299e85['is']('$textProxy'))['map'](_0x35f423=>_0x35f423['data']);if(_0x4ec9b0['length'])return{'type':'insertion','content':o(_0x2e4e90,'*Insert:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4ec9b0['join']('\x20')+'\x22'))};}if('deletion'==_0x297d28['type']){const _0xd240d2=_0x297d28['getItems']()['filter'](_0x58bf10=>_0x58bf10['is']('$textProxy'))['map'](_0x3dc419=>_0x3dc419['data']);if(_0xd240d2['length'])return{'type':'deletion','content':o(_0x2e4e90,'*Remove:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xd240d2['join']('\x20')+'\x22'))};}}}),_0xd3702f['descriptionFactory']['registerDescriptionCallback'](_0x3f6eef=>{if('tableRow'==_0x3f6eef['subType']){const _0x28b7ed=_0x3f6eef['getItems']()['filter'](_0x49325e=>_0x49325e['is']('$textProxy'))['map'](_0x399ed5=>_0x399ed5['data']),_0x2f10cd=this['_getSuggestionCoords'](_0x3f6eef),_0x4e3217=_0x2f10cd['maxRow']-_0x2f10cd['minRow']+0x1;if('insertion'==_0x3f6eef['type'])return _0x28b7ed['length']?{'type':'insertion','content':o(_0x2e4e90,'*Insert:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e3217,'\x22'+_0x28b7ed['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e4e90,'*Insert:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_ROW',_0x4e3217))};if('deletion'==_0x3f6eef['type'])return _0x28b7ed['length']?{'type':'deletion','content':o(_0x2e4e90,'*Remove:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x4e3217,'\x22'+_0x28b7ed['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e4e90,'*Remove:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_ROW',_0x4e3217))};}if('tableColumn'==_0x3f6eef['subType']){const _0xc88ebd=_0x3f6eef['getItems']()['filter'](_0x4d50f7=>_0x4d50f7['is']('$textProxy'))['map'](_0x19cf48=>_0x19cf48['data']),_0x1d6fdd=this['_getSuggestionCoords'](_0x3f6eef),_0x37fe2c=_0x1d6fdd['maxColumn']-_0x1d6fdd['minColumn']+0x1;if('insertion'==_0x3f6eef['type'])return _0xc88ebd['length']?{'type':'insertion','content':o(_0x2e4e90,'*Insert:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37fe2c,'\x22'+_0xc88ebd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x2e4e90,'*Insert:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_COLUMN',_0x37fe2c))};if('deletion'==_0x3f6eef['type'])return _0xc88ebd['length']?{'type':'deletion','content':o(_0x2e4e90,'*Remove:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x37fe2c,'\x22'+_0xc88ebd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x2e4e90,'*Remove:*\x20%0',o(_0x2e4e90,'ELEMENT_TABLE_COLUMN',_0x37fe2c))};}}),_0xd3702f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3147c8),_0xd3702f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3147c8),_0xd3702f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x181ddc),_0xd3702f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x181ddc),_0xd3702f['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5bc2b2),_0xd3702f['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5bc2b2),_0xd3702f['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xa517ae),_0xd3702f['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xa517ae);}['_acceptFormatSuggestionCallbackFactory'](){const _0xcbc3d0=this['editor'],_0x1c3cde=_0xcbc3d0['model']['document']['selection'];return(_0x1270fb,_0x10c652)=>{_0xcbc3d0['model']['change'](_0x4daf66=>{const {commandName:_0x358d77,commandParams:_0x4327ac}=_0x10c652;let _0x14e7ea=_0x1270fb[0x0]['end']['nodeBefore'];_0x4327ac&&_0x4327ac[0x0]&&!0x1===_0x4327ac[0x0]['forceValue']&&(_0x14e7ea=_0x1270fb[0x0]['start']['nodeAfter']);const _0x381df3=_0x4daf66['createRangeIn'](_0x14e7ea);if('$graveyard'==_0x381df3['root']['rootName'])return;const _0x2bc01b=Array['from'](_0x1c3cde['getRanges']())['map'](_0x5a0bd0=>_0x3131df['fromRange'](_0x5a0bd0));_0x4daf66['setSelection'](_0x381df3),_0xcbc3d0['commands']['get'](_0x358d77)['refresh'](),_0x4327ac['push']({'forceDefaultExecution':!0x0}),_0xcbc3d0['execute'](_0x358d77,..._0x4327ac);const _0x29ef27=_0x2bc01b['filter'](_0x42eec6=>'$graveyard'!=_0x42eec6['root']['rootName']);_0x29ef27['length']>0x0&&_0x4daf66['setSelection'](_0x29ef27);for(const _0xe74c48 of _0x2bc01b)_0xe74c48['detach']();});};}['_getCoordsForCells'](_0x2843fa){const _0x306d8b=this['editor']['plugins']['get']('TableUtils');let _0xb74213=Number['MAX_SAFE_INTEGER'],_0x3b83d4=Number['MIN_SAFE_INTEGER'],_0x4bf130=Number['MAX_SAFE_INTEGER'],_0x578cb7=Number['MIN_SAFE_INTEGER'];for(const _0x376c7f of _0x2843fa){if('$graveyard'==_0x376c7f['root']['rootName'])continue;const {row:_0x48aedc,column:_0x5b19bc}=_0x306d8b['getCellLocation'](_0x376c7f),_0x33df7b=_0x376c7f['hasAttribute']('rowspan')?_0x376c7f['getAttribute']('rowspan')-0x1:0x0,_0x5acdeb=_0x376c7f['hasAttribute']('colspan')?_0x376c7f['getAttribute']('colspan')-0x1:0x0;_0xb74213=_0x48aedc<_0xb74213?_0x48aedc:_0xb74213,_0x3b83d4=_0x48aedc+_0x33df7b>_0x3b83d4?_0x48aedc+_0x33df7b:_0x3b83d4,_0x4bf130=_0x5b19bc<_0x4bf130?_0x5b19bc:_0x4bf130,_0x578cb7=_0x5b19bc+_0x5acdeb>_0x578cb7?_0x5b19bc+_0x5acdeb:_0x578cb7;}return{'minRow':_0xb74213,'maxRow':_0x3b83d4,'minColumn':_0x4bf130,'maxColumn':_0x578cb7};}['_setupColumnsRowsFixing'](){const _0xcf772b=this['editor'],_0x5a1259=_0xcf772b['plugins']['get']('TrackChangesEditing'),_0x78b59e=_0xcf772b['plugins']['get']('TableUtils');_0xcf772b['model']['document']['on']('change:data',()=>{const _0x335c38=Array['from'](_0xcf772b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2504b2,data:_0x103db8}of _0x335c38){const {group:_0x1c453f,id:_0x6c5502,subType:_0x272773}=_0x5a1259['_splitMarkerName'](_0x2504b2);if('suggestion'!=_0x1c453f)continue;if(null!=_0x103db8['oldRange'])continue;const _0x47fd25=_0x5a1259['getSuggestion'](_0x6c5502);this['_tablePostFixingSubtypes']['includes'](_0x272773)&&this['_tableSuggestions']['add'](_0x47fd25);}},{'priority':'low'});const _0x313e64=(_0x360d9d,_0x305bdb)=>{let _0x3be279=!0x1;const _0x2508f0=_0x305bdb['createRangeOn'](_0x360d9d),_0x379b6d=_0x360d9d['findAncestor']('table'),_0x10d204=_0x78b59e['getCellLocation'](_0x360d9d);for(const _0x24173e of this['_tableSuggestions']){const _0x61d295=_0x24173e['subType'],_0x5bdd60=_0x61d295['startsWith']('tablePaste'),_0x53e738=_0x61d295['substr'](_0x5bdd60?0xa:0x5),_0x282af9=_0x53e738['toLowerCase'](),_0x415cf3=_0x282af9['substr'](0x0,0x3)+'span',_0x548652='min'+_0x53e738,_0x3affd9='max'+_0x53e738;if(!_0x24173e['isInContent'])continue;if(_0x379b6d!=_0x24173e['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x24173e['isIntersectingWithRange'](_0x2508f0))continue;const _0x2a901e=_0x360d9d['hasAttribute'](_0x415cf3)?_0x360d9d['getAttribute'](_0x415cf3)-0x1:0x0,_0x3da5a0=this['_getSuggestionCoords'](_0x24173e),_0x11531f=_0x3da5a0[_0x548652],_0x42f19c=_0x3da5a0[_0x3affd9];_0x11531f<=_0x10d204[_0x282af9]&&_0x10d204[_0x282af9]+_0x2a901e<=_0x42f19c&&(_0x24173e['addRange'](_0x2508f0),_0x3be279=!0x0);}return _0x3be279;};_0xcf772b['model']['document']['registerPostFixer'](_0x3e4e17=>{let _0x1aa5a6=!0x1;for(const _0x396016 of _0xcf772b['model']['document']['differ']['getChanges']())if('insert'==_0x396016['type']){if('tableRow'==_0x396016['name']){for(const _0x29bbe5 of _0x396016['position']['nodeAfter']['getChildren']())_0x1aa5a6=_0x1aa5a6||_0x313e64(_0x29bbe5,_0x3e4e17);}else'tableCell'==_0x396016['name']&&(_0x1aa5a6=_0x1aa5a6||_0x313e64(_0x396016['position']['nodeAfter'],_0x3e4e17));}return _0x1aa5a6;});}['_getSuggestionCoords'](_0x35dcd9){return this['_getCoordsForCells'](_0x35dcd9['getRanges']()['map'](_0x30c0dc=>_0x30c0dc['start']['nodeAfter']));}}function Ne(_0x1f10ce){return Array['from'](new Set(_0x1f10ce)['values']());}class Nt extends _0x99cb74{static get['requires'](){return[Ct];}['afterInit'](){const _0x5fe6f2=this['editor'],_0x209f36=_0x5fe6f2['model']['document']['selection'],_0x3fa6c6=_0x5fe6f2['locale'];if(!_0x5fe6f2['plugins']['has']('TableEditing'))return;const _0x191378=_0x5fe6f2['plugins']['get']('TrackChangesEditing'),_0x1ff7bb=_0x5fe6f2['plugins']['get']('TableUtils'),_0x3d6c50=_0x5fe6f2['plugins']['get'](Ct);_0x3d6c50['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x191378['enableCommand']('mergeTableCells',()=>{const _0x4c1863=_0x1ff7bb['getSelectionAffectedTableCells'](_0x5fe6f2['model']['document']['selection']);_0x5fe6f2['model']['change'](()=>{_0x191378['markMultiRangeBlockFormat'](_0x4c1863,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x5fe6f2['commands']['get']('mergeTableCells')['on']('execute',(_0x4f16ff,_0x1c15b8)=>{_0x5fe6f2['commands']['get']('trackChanges')['value']&&(_0x1c15b8['length']>0x0&&_0x1c15b8[_0x1c15b8['length']-0x1]&&_0x1c15b8[_0x1c15b8['length']-0x1]['forceDefaultExecution']||_0x191378['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f16ff['stop']());},{'priority':'highest'});for(const _0x2922db of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x530fc0=_0x5fe6f2['commands']['get'](_0x2922db);_0x191378['enableCommand'](_0x2922db,()=>{const _0x2da3e8=_0x5fe6f2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x148b25=>_0x148b25['is']('element','tableCell')),_0x135f1c=_0x530fc0['value'];_0x5fe6f2['model']['change'](()=>{_0x191378['markMultiRangeBlockFormat']([_0x2da3e8,_0x135f1c],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x400449 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5c08f2=_0x5fe6f2['commands']['get'](_0x400449);_0x191378['enableCommand'](_0x400449,()=>{const _0x29cebc=_0x1ff7bb['getSelectionAffectedTableCells'](_0x5fe6f2['model']['document']['selection'])[0x0],_0x55e32a=_0x29cebc['findAncestor']('table'),{column:_0x1a80d1,row:_0x4dfb40}=_0x1ff7bb['getCellLocation'](_0x29cebc);let _0x2da4aa=[];if('horizontally'==_0x5c08f2['direction']){const _0x4a1984=_0x1ff7bb['createTableWalker'](_0x55e32a,{'startRow':_0x4dfb40,'endRow':_0x4dfb40,'includeAllSlots':!0x0});_0x2da4aa=Array['from'](_0x4a1984)['map'](_0x29539e=>_0x29539e['cell']);}else{const _0x951f9b=_0x1ff7bb['createTableWalker'](_0x55e32a,{'column':_0x1a80d1,'includeAllSlots':!0x0});_0x2da4aa=Array['from'](_0x951f9b)['map'](_0x53f6e6=>_0x53f6e6['cell']);}_0x5fe6f2['model']['change'](_0x4f0ccf=>{_0x191378['markBlockFormat'](_0x4f0ccf['createRangeOn'](_0x29cebc),{'commandName':_0x400449,'commandParams':[]},_0x2da4aa,_0x400449);});});}_0x191378['descriptionFactory']['registerDescriptionCallback'](_0x5785a6=>{if('formatBlock'!=_0x5785a6['type']&&'formatInline'!=_0x5785a6['type'])return;const {data:_0x8c7796}=_0x5785a6;return _0x8c7796&&'mergeTableCells'==_0x8c7796['commandName']?{'type':'format','content':o(_0x3fa6c6,'*Merge\x20cells*')}:void 0x0;}),_0x191378['descriptionFactory']['registerDescriptionCallback'](_0x4b4500=>{if('formatBlock'!=_0x4b4500['type']&&'formatInline'!=_0x4b4500['type'])return;const {data:_0x2a92cf}=_0x4b4500;return _0x2a92cf?'splitTableCellVertically'==_0x2a92cf['commandName']?{'type':'format','content':o(_0x3fa6c6,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2a92cf['commandName']?{'type':'format','content':o(_0x3fa6c6,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x36092d=_0x3d6c50['_acceptFormatSuggestionCallbackFactory']();for(const _0x9615 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x191378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x9615,'accept',_0x36092d);for(const _0x3cf8c4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x191378['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cf8c4,'accept',_0x36092d);_0x191378['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x181a22=>{_0x5fe6f2['model']['change'](_0x299ec1=>{const _0x42288e=Array['from'](_0x209f36['getRanges']())['map'](_0x35b538=>_0x3131df['fromRange'](_0x35b538));_0x299ec1['setSelection'](_0x181a22),_0x5fe6f2['commands']['get']('mergeTableCells')['refresh'](),_0x5fe6f2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x9c35d3=_0x42288e['filter'](_0x19a171=>'$graveyard'!=_0x19a171['root']['rootName']);_0x9c35d3['length']>0x0&&_0x299ec1['setSelection'](_0x9c35d3);for(const _0x18cab3 of _0x42288e)_0x18cab3['detach']();});});for(const _0x49921f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x369c1c=_0x5fe6f2['commands']['get'](_0x49921f);_0x369c1c['on']('set:isEnabled',(_0x394233,_0x272364,_0x200fa5)=>{if(_0x200fa5){const _0x564d8d=_0x5fe6f2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x97b0c=>_0x97b0c['is']('element','tableCell'));this['_areMergableCells'](_0x369c1c['value'],_0x564d8d)||(_0x394233['return']=!0x1,_0x394233['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56c76b=this['editor']['commands']['get']('mergeTableCells'),_0x430ed9=this['editor']['plugins']['get']('TableUtils');if(!_0x56c76b['isEnabled'])return!0x1;const _0x1bdadb=_0x430ed9['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x5a99cc of _0x1bdadb)for(const _0x2fd0be of _0x1bdadb)if(_0x5a99cc!=_0x2fd0be&&!this['_areMergableCells'](_0x5a99cc,_0x2fd0be))return!0x1;return!0x0;}['_areMergableCells'](_0x3c7033,_0x1f3abc){const _0xa4d424=this['editor']['plugins']['get']('TrackChangesEditing'),_0x8750f4=this['editor']['model']['createRangeOn'](_0x3c7033),_0x3a66d9=this['editor']['model']['createRangeOn'](_0x1f3abc),_0x403203=new Set(),_0x4cc636=new Set();for(const _0x562cb6 of _0xa4d424['getSuggestions']())if(('insertion'==_0x562cb6['type']||'deletion'==_0x562cb6['type']||'mergeTableCells'==_0x562cb6['subType'])&&_0x562cb6['isInContent']){for(const _0x560115 of _0x562cb6['getRanges']())_0x560115['containsRange'](_0x8750f4,!0x0)&&_0x403203['add'](_0x562cb6['type']+':'+_0x562cb6['author']['id']),_0x560115['containsRange'](_0x3a66d9,!0x0)&&_0x4cc636['add'](_0x562cb6['type']+':'+_0x562cb6['author']['id']);}if(_0x403203['size']!=_0x4cc636['size'])return!0x1;for(const _0x48aa03 of _0x403203)if(!_0x4cc636['has'](_0x48aa03))return!0x1;return!0x0;}}class Dt extends _0x99cb74{static get['requires'](){return[Ct];}['afterInit'](){const _0x1d10b0=this['editor'];if(!_0x1d10b0['plugins']['has']('TableEditing'))return;const _0x49833b=_0x1d10b0['locale'],_0x553d04=_0x1d10b0['plugins']['get']('TrackChangesEditing');_0x553d04['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x553d04['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x553d04['registerBlockAttribute']('headingRows'),_0x553d04['registerBlockAttribute']('headingColumns'),_0x553d04['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x49833b,'FORMAT_HEADER_ROW')),_0x553d04['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x49833b,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x44f839=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33dd31=this['editor']['plugins']['get']('TableUtils'),_0x3cdcc3=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x151be5({showActiveMarker:_0x4d6c19=!0x0,setDataAttribute:_0x583221=!0x0}={}){return(_0x56fc14,_0xcbccc4,_0x4117d4)=>{const {type:_0x28f35c,id:_0x5ae16c}=_0x44f839['_splitMarkerName'](_0xcbccc4['markerName']),_0x8273c0=_0x44f839['getSuggestion'](_0x5ae16c),_0xecff48=_0x8273c0['data'];if('formatBlock'!=_0x8273c0['type']||!_0xecff48||'setTableColumnHeader'!=_0xecff48['commandName'])return;if(_0xcbccc4['item'])return void _0x56fc14['stop']();if(!_0x4117d4['consumable']['consume'](_0xcbccc4['markerRange'],_0x56fc14['name']))return;const _0x311163=_0xcbccc4['markerRange']['start']['nodeAfter'],_0x574361=_0xcbccc4['markerRange']['end']['nodeBefore'],_0x481c18=_0x311163['parent']['parent'],{column:_0x21f410}=_0x33dd31['getCellLocation'](_0x311163),{column:_0x573d94}=_0x33dd31['getCellLocation'](_0x574361);for(let _0x2fe76c=_0x21f410;_0x2fe76c<=_0x573d94;_0x2fe76c++){const _0x436445=_0x33dd31['createTableWalker'](_0x481c18,{'column':_0x2fe76c,'includeAllSlots':!0x1});for(const _0x1af833 of _0x436445){const _0xf8a124=_0x1af833['cell'],_0x6f6e2f=_0x4117d4['mapper']['toViewElement'](_0xf8a124);_0x4117d4['writer']['addClass']('ck-suggestion-marker-'+_0x28f35c,_0x6f6e2f),_0x583221&&_0x4117d4['writer']['setAttribute']('data-suggestion',_0x5ae16c,_0x6f6e2f),_0x4117d4['mapper']['bindElementToMarker'](_0x6f6e2f,_0xcbccc4['markerName']),_0x4d6c19&&(_0x44f839['activeMarkers']['includes'](_0xcbccc4['markerName'])?_0x4117d4['writer']['addClass']('ck-suggestion-marker--active',_0x6f6e2f):_0x4117d4['writer']['removeClass']('ck-suggestion-marker--active',_0x6f6e2f));}}};}_0x44f839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3cdcc3),_0x44f839['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3cdcc3),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x151be5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x787d0f,_0x39a340,_0x1e8214)=>{_0x1e8214['options']['showSuggestionHighlights']&&_0x151be5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x787d0f,_0x39a340,_0x1e8214);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x548ecd,_0x473f58,_0x4312e3)=>{const {type:_0x39c0ff,id:_0x26bec4}=_0x44f839['_splitMarkerName'](_0x473f58['markerName']),_0x2173d7=_0x44f839['getSuggestion'](_0x26bec4),_0x22349a=_0x2173d7['data'];if('formatBlock'!=_0x2173d7['type']||!_0x22349a||'setTableColumnHeader'!=_0x22349a['commandName'])return;const _0x15917a=_0x4312e3['mapper']['markerNameToElements'](_0x473f58['markerName']);if(_0x15917a){for(const _0x86e861 of _0x15917a)_0x4312e3['writer']['removeClass']('ck-suggestion-marker-'+_0x39c0ff,_0x86e861),_0x4312e3['writer']['removeClass']('ck-suggestion-marker--active',_0x86e861),_0x4312e3['writer']['removeAttribute']('data-suggestion',_0x86e861),_0x4312e3['mapper']['unbindElementFromMarkerName'](_0x86e861,_0x473f58['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x530c5e=this['editor'],_0x5b4b01=_0x530c5e['locale'];function _0x2923a3(_0x5242e0){return{'type':'format','content':o(_0x5b4b01,'*Format:*\x20%0',_0x5242e0)};}_0x530c5e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x206cf5=>{if('formatBlock'!=_0x206cf5['type'])return;const {data:_0x3adeb0}=_0x206cf5;if(_0x3adeb0){if('setTableRowHeader'==_0x3adeb0['commandName']){const _0x1ca787=_0x3adeb0['commandParams'][0x0]['forceValue'];return _0x2923a3(o(_0x5b4b01,_0x1ca787?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3adeb0['commandName']){const _0x33bb9c=_0x3adeb0['commandParams'][0x0]['forceValue'];return _0x2923a3(o(_0x5b4b01,_0x33bb9c?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x3e6102=>[_0x3e6102,null]));class Mt extends _0x99cb74{static get['requires'](){return[Ct];}['afterInit'](){const _0x4b1c0f=this['editor'];if(!_0x4b1c0f['plugins']['has']('TableClipboard'))return;const _0x1b8b47=_0x4b1c0f['plugins']['get']('TrackChangesEditing'),_0x171dd0=_0x4b1c0f['plugins']['get']('TableUtils'),_0x3911ed=_0x4b1c0f['plugins']['get'](Ct),_0x44b9fd=_0x4b1c0f['plugins']['get']('TableClipboard');_0x3911ed['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4b1c0f['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4b1c0f['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3d4122=null;_0x4b1c0f['model']['on']('insertContent',(_0x5b8c2d,_0x2f66d2)=>{const [_0x34471d,_0x62c3d0]=_0x2f66d2,_0x2577e1=_0x2f66d2[_0x2f66d2['length']-0x1];_0x2577e1&&_0x2577e1['forceDefaultExecution']||_0x1b8b47['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4da86c,_0x3dd3db,_0x2cb1ab,_0x101fb8,_0xfd737b){if(_0x3dd3db&&!_0x3dd3db['is']('documentSelection'))return!0x1;const _0x59601d=_0xfd737b['getTableIfOnlyTableInContent'](_0x4da86c,_0x2cb1ab);if(!_0x59601d||!Ue(_0x59601d,void 0x0,_0x101fb8))return!0x1;const _0x3ff479=_0x101fb8['getSelectionAffectedTableCells'](_0x2cb1ab['document']['selection']);if(!_0x3ff479['length'])return!0x1;const _0x1cbda1=_0x3ff479[0x0]['findAncestor']('table'),_0x5b1530=_0x101fb8['getRowIndexes'](_0x3ff479),_0x4847d9=_0x101fb8['getColumnIndexes'](_0x3ff479),_0x4cd964={'startRow':_0x5b1530['first'],'endRow':_0x5b1530['last'],'startColumn':_0x4847d9['first'],'endColumn':_0x4847d9['last']};return 0x1==_0x3ff479['length']&&(_0x4cd964['endRow']+=_0x101fb8['getRows'](_0x59601d)-0x1,_0x4cd964['endColumn']+=_0x101fb8['getColumns'](_0x59601d)-0x1),Ue(_0x1cbda1,_0x4cd964,_0x101fb8);}(_0x34471d,_0x62c3d0,_0x4b1c0f['model'],_0x171dd0,_0x44b9fd)&&(_0x5b8c2d['stop'](),_0x3d4122={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4b1c0f['model']['change'](()=>{_0x4b1c0f['model']['insertContent'](_0x2f66d2[0x0],_0x2f66d2[0x1],_0x2f66d2[0x2],{'forceDefaultExecution':!0x0});const _0xeb7f61=_0x161b41(),{rowInsertionRanges:_0x4cdc57,columnInsertionRanges:_0x59dd17,insertionRanges:_0x1a0043,deletionRanges:_0x38100b,cells:_0x428bbf}=_0x3d4122;_0x4cdc57['length']&&_0x1b8b47['markMultiRangeInsertion'](_0x4cdc57,'tablePasteRow',{'tablePasteChainId':_0xeb7f61}),_0x59dd17['length']&&_0x1b8b47['markMultiRangeInsertion'](_0x59dd17,'tablePasteColumn',{'tablePasteChainId':_0xeb7f61}),_0x1a0043['length']&&(_0x1b8b47['markMultiRangeInsertion'](_0x1a0043,'tablePaste',{'tablePasteChainId':_0xeb7f61,'skipNestingCheck':!0x0}),_0x1a0043['forEach'](_0xd699fe=>_0xd699fe['detach']?.())),_0x38100b['length']&&(_0x1b8b47['markMultiRangeDeletion'](_0x38100b,'tablePaste',{'tablePasteChainId':_0xeb7f61,'skipNestingCheck':!0x0}),_0x38100b['forEach'](_0x57259d=>_0x57259d['detach']?.()));const _0x271f42=_0x1b8b47['markMultiRangeBlockFormat'](_0x428bbf['map'](({element:_0x28fc28})=>_0x28fc28),{'formatGroupId':_0x161b41()},[],'tablePasteCell',{'tablePasteChainId':_0xeb7f61});if(_0x271f42){const _0x594a15=_0x271f42['getMarkers'](),_0x3161e3=[];for(const {element:_0x5656aa,attributes:_0x43d36a}of _0x428bbf){if(!_0x43d36a)continue;const _0x1ba423=_0x4b1c0f['model']['createRangeOn'](_0x5656aa),_0x381370=_0x594a15['find'](_0x2b3a18=>_0x2b3a18['getRange']()['isEqual'](_0x1ba423));_0x381370&&_0x3161e3['push']([_0x381370['name'],_0x43d36a]);}_0x3161e3['length']&&_0x271f42['setAttribute']('markerAttributes',Object['fromEntries'](_0x3161e3));}_0x3d4122=null;}));},{'priority':_0x307cb7['high']+0xa}),_0x4b1c0f['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x5d1b4f,_0x3a64ba)=>{const [_0x150380,_0x8360d4,,_0x23f3a5]=_0x3a64ba;if(!_0x3d4122)return;_0x5d1b4f['stop']();const _0x37576e=_0x150380['cell'],_0x3f8738=_0x8360d4,_0x29aa98=Oe(_0x37576e),_0x29b1df=Oe(_0x3f8738);_0x5d1b4f['return']=_0x37576e;let _0x178364=null,_0x4cb824=null;if(_0x29b1df||_0x29aa98){if(_0x29aa98&&!_0x29b1df){_0x23f3a5['remove'](_0x37576e['getChild'](0x0));for(const _0x1ff89f of Array['from'](_0x3f8738['getChildren']()))_0x23f3a5['insert'](_0x1ff89f,_0x37576e,'end');const _0x258b13=_0x3d4122['rowInsertionIndexes']['includes'](_0x150380['row']),_0x41cf49=_0x3d4122['columnInsertionIndexes']['includes'](_0x150380['column']);_0x258b13||_0x41cf49||(_0x178364=_0x3131df['fromRange'](_0x23f3a5['createRangeIn'](_0x37576e)));}else _0x29b1df&&!_0x29aa98&&(_0x4cb824=_0x23f3a5['createRangeIn'](_0x37576e));}else{const _0x16d4c4=_0x23f3a5['createElement']('tableCellSuggestion'),_0x1243a0=_0x23f3a5['createElement']('tableCellSuggestion');_0x23f3a5['wrap'](_0x23f3a5['createRangeIn'](_0x37576e),_0x1243a0),_0x23f3a5['insert'](_0x16d4c4,_0x37576e,0x0);for(const _0x371175 of Array['from'](_0x3f8738['getChildren']()))_0x23f3a5['insert'](_0x371175,_0x16d4c4,'end');_0x178364=_0x3131df['fromRange'](_0x23f3a5['createRangeOn'](_0x16d4c4)),_0x4cb824=_0x3131df['fromRange'](_0x23f3a5['createRangeOn'](_0x1243a0));}const _0x370dff=Array['from'](_0x3f8738['getAttributes']())['filter'](([_0x3d7df1])=>Be['includes'](_0x3d7df1));_0x3d4122['cells']['push']({'element':_0x37576e,'attributes':_0x370dff['length']?Object['fromEntries'](_0x370dff):null}),_0x178364&&_0x3d4122['insertionRanges']['push'](_0x178364),_0x4cb824&&_0x3d4122['deletionRanges']['push'](_0x4cb824);},{'priority':'high'}),_0x171dd0['on']('insertColumns',(_0x5a0cd3,_0x419404)=>{const [_0x2101b4,_0x1f55cf={}]=_0x419404;if(!_0x3d4122)return;const _0x7bff3c=_0x1f55cf['at']||0x0,_0x201775=_0x1f55cf['columns']||0x1;_0x3d4122['columnInsertionIndexes']=new Array(_0x201775)['fill'](_0x7bff3c)['map']((_0x14ed2c,_0x5e179a)=>_0x14ed2c+_0x5e179a);for(const {cell:_0x48e284}of _0x171dd0['createTableWalker'](_0x2101b4,{'startColumn':_0x7bff3c,'endColumn':_0x7bff3c+_0x201775-0x1}))_0x3d4122['columnInsertionRanges']['push'](_0x4b1c0f['model']['createRangeOn'](_0x48e284));},{'priority':'low'}),_0x171dd0['on']('insertRows',(_0x4c5bc9,_0xebecd9)=>{const [_0xd81e23,_0x1a8101={}]=_0xebecd9;if(!_0x3d4122)return;const _0xab071a=_0x1a8101['at']||0x0,_0x2f042a=_0x1a8101['rows']||0x1;_0x3d4122['rowInsertionIndexes']=new Array(_0x2f042a)['fill'](_0xab071a)['map']((_0x25835e,_0x2b132c)=>_0x25835e+_0x2b132c);for(const {cell:_0x2fc5eb}of _0x171dd0['createTableWalker'](_0xd81e23,{'startRow':_0xab071a,'endRow':_0xab071a+_0x2f042a-0x1}))_0x3d4122['rowInsertionRanges']['push'](_0x4b1c0f['model']['createRangeOn'](_0x2fc5eb));},{'priority':'low'}),_0x1b8b47['descriptionFactory']['registerDescriptionCallback'](_0x4116f7=>{if(_0x4116f7['subType']&&_0x4116f7['subType']['startsWith']('tablePaste'))return _0x4116f7['previous']?{}:{'type':'insertion','content':o(_0x4b1c0f['locale'],'*Replace\x20table\x20cells*')};});const _0x302601=()=>!0x1;for(const _0x21c5aa of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x1b8b47['_suggestionFactory']['registerCustomCallback']('insertion',_0x21c5aa,'join',_0x302601),_0x1b8b47['_suggestionFactory']['registerCustomCallback']('deletion',_0x21c5aa,'join',_0x302601),_0x1b8b47['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x21c5aa,'join',_0x302601);_0x1b8b47['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x302601),_0x1b8b47['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x575603,_0x24557c,_0x33fd05)=>{const _0x4c3cf9=_0x575603['map'](_0x262b2f=>_0x262b2f['getContainedElement']())['filter'](_0x1d2713=>_0x1d2713),_0x569c80=new Map(_0x4c3cf9['map'](_0x2cd913=>[_0x2cd913,null]));if(_0x3d4122){for(const {element:_0x564cd8,attributes:_0x16a3dc}of _0x3d4122['cells'])_0x16a3dc&&_0x569c80['set'](_0x564cd8,_0x16a3dc);}else{if(_0x33fd05&&_0x33fd05['markerAttributes'])for(const [_0x6eaef,_0x3b6681]of Object['entries'](_0x33fd05['markerAttributes'])){const _0xdeef69=_0x4b1c0f['model']['markers']['get'](_0x6eaef),_0x347070=_0xdeef69?_0xdeef69['getRange']()['getContainedElement']():null;_0x347070&&_0x569c80['set'](_0x347070,_0x3b6681);}}_0x4b1c0f['model']['change'](_0x3879c8=>{for(const [_0x5dfd4c,_0xb41857]of _0x569c80)_0x3879c8['setAttributes']({...xe,..._0xb41857},_0x5dfd4c);});});const _0x41f645=(_0x5c7ddb,_0x4a1731)=>{_0x1b8b47['_suggestionFactory']['registerCustomCallback'](_0x5c7ddb,'tablePaste',_0x4a1731,(_0x20ea24,_0x148e97,_0x1e8115)=>{_0x4b1c0f['model']['change'](_0x247a70=>{const _0x2b8750=[];for(const _0xaf5912 of _0x20ea24){const _0x31aa1b=_0xaf5912['start']['nodeAfter'];_0x31aa1b['is']('element','tableCellSuggestion')&&_0x2b8750['push'](_0x31aa1b);}_0x1b8b47['_suggestionFactory']['getSuggestionCallback'](_0x5c7ddb,null,_0x4a1731)(_0x20ea24,_0x148e97,_0x1e8115);for(const _0x41a883 of _0x2b8750)'$graveyard'!=_0x41a883['root']['rootName']&&_0x247a70['unwrap'](_0x41a883);});});};_0x41f645('insertion','accept'),_0x41f645('insertion','discard'),_0x41f645('deletion','accept'),_0x41f645('deletion','discard'),_0x1b8b47['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x52859b=>{const _0x3c5aa3=_0x52859b['map'](_0x2dd48e=>_0x2dd48e['getContainedElement']()),_0x359b62=_0x3c5aa3[0x0]['findAncestor']('table'),{minRow:_0x15bb0a,maxRow:_0x1e8cb8}=_0x3911ed['_getCoordsForCells'](_0x3c5aa3);_0x171dd0['removeRows'](_0x359b62,{'at':_0x15bb0a,'rows':_0x1e8cb8-_0x15bb0a+0x1});}),_0x1b8b47['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x40a473=>{const _0xe92f70=_0x40a473['map'](_0x2130c0=>_0x2130c0['getContainedElement']()),_0x3262ba=_0xe92f70[0x0]['findAncestor']('table'),{minColumn:_0xef1e5f,maxColumn:_0x3bacfd}=_0x3911ed['_getCoordsForCells'](_0xe92f70);_0x171dd0['removeColumns'](_0x3262ba,{'at':_0xef1e5f,'columns':_0x3bacfd-_0xef1e5f+0x1});});const _0x1d746b=(_0x1a5030,_0x4b5cad)=>{if(!_0x4b5cad['subType']||!_0x4b5cad['subType']['startsWith']('tablePaste'))return;const _0x15550d=_0x4b5cad['attributes']['tablePasteChainId'],_0xf0a6a0=_0x1b8b47['getSuggestions']()['filter'](_0x2c3706=>_0x2c3706['isInContent']&&_0x2c3706['attributes']&&_0x2c3706['attributes']['tablePasteChainId']==_0x15550d);_0xf0a6a0['length']&&_0x4b5cad['getAllAdjacentSuggestions']()['length']!=_0xf0a6a0['length']&&_0xf0a6a0['reduce']((_0x3ac3e2,_0x20e4c4)=>(_0x3ac3e2['next']=_0x20e4c4,_0x20e4c4['previous']=_0x3ac3e2,_0x20e4c4));};function _0x29b4ab(_0x23f233,_0x16bf5c=!0x0){const {id:_0x114d04,authorId:_0x203500}=_0x1b8b47['_splitMarkerName'](_0x23f233['markerName']),_0x21343b=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2eccc5=_0x1b8b47['activeMarkers']['includes'](_0x23f233['markerName']);return _0x2eccc5&&_0x21343b['push']('ck-suggestion-marker--active'),{'classes':_0x21343b,'attributes':{'data-suggestion':_0x114d04,'data-author-id':_0x203500},'priority':_0x2eccc5&&_0x16bf5c?0xbc2:0xbb8};}_0x1b8b47['on']('suggestionLoaded',_0x1d746b,{'priority':'high'}),_0x1b8b47['on']('suggestionUnloaded',_0x1d746b,{'priority':'high'}),_0x4b1c0f['model']['document']['registerPostFixer'](()=>{let _0x3f6757=!0x1;const _0x3dbcf9=Array['from'](_0x4b1c0f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3116ef,data:_0x57085c}of _0x3dbcf9){const {group:_0x14c852,type:_0x591a4c,id:_0x11abe1}=_0x1b8b47['_splitMarkerName'](_0x3116ef);if('suggestion'!=_0x14c852||'deletion'!=_0x591a4c||_0x57085c['oldRange'])continue;if(!_0x1b8b47['hasSuggestion'](_0x11abe1))continue;const _0x43d297=_0x1b8b47['getSuggestion'](_0x11abe1)['getRanges'](),_0x22e7f2=_0x4b1c0f['plugins']['get']('Users')['me'];for(const _0x241c3d of _0x1b8b47['getSuggestions']()){if(!_0x241c3d['isInContent']||_0x241c3d['author']!=_0x22e7f2)continue;if('formatBlock'!=_0x241c3d['type']||'tablePasteCell'!=_0x241c3d['subType'])continue;if(_0x241c3d['getRanges']()['every'](_0x2334cb=>_0x43d297['some'](_0x544aec=>_0x544aec['containsRange'](_0x2334cb,!0x0)))){for(const _0x193d78 of _0x241c3d['getAllAdjacentSuggestions']())_0x193d78['isInContent']&&(_0x193d78['discard'](),_0x3f6757=!0x0);}}}return _0x3f6757;}),_0x4b1c0f['model']['document']['registerPostFixer'](_0x5ec544=>{const _0x4205db=_0x4b1c0f['commands']['get']('redo');if(!_0x4205db||!_0x4205db['_createdBatches']['has'](_0x5ec544['batch']))return!0x1;let _0x3d20f9=!0x1;const _0x2551ce=_0x4b1c0f['plugins']['get']('Users')['me'],_0x24b1bf=_0x4b1c0f['model']['document']['differ']['getChanges'](),_0x4e1a9d=Array['from'](_0x4b1c0f['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x274746,data:_0x392c87})=>{const {group:_0x2b9a1,subType:_0x51cbec,authorId:_0x2a22a3}=_0x1b8b47['_splitMarkerName'](_0x274746);return'suggestion'==_0x2b9a1&&'tablePaste'==_0x51cbec&&_0x2a22a3==_0x2551ce['id']&&!_0x392c87['oldRange'];});for(const _0x370bca of _0x24b1bf){if('insert'!=_0x370bca['type']||'tableCellSuggestion'!=_0x370bca['name']||0x1!=_0x370bca['length'])continue;const _0x4f7dcc=_0x5ec544['createRange'](_0x370bca['position'],_0x370bca['position']['getShiftedBy'](0x1));if(!_0x4e1a9d['find'](({data:_0x2484db})=>_0x2484db['newRange']['isEqual'](_0x4f7dcc))){for(const {name:_0x27ddad,data:_0x1ddac6}of _0x4e1a9d)if(_0x4f7dcc['containsRange'](_0x1ddac6['newRange'])){_0x5ec544['updateMarker'](_0x27ddad,{'range':_0x4f7dcc}),_0x3d20f9=!0x0;break;}}}return _0x3d20f9;}),_0x4b1c0f['model']['document']['registerPostFixer'](_0x589715=>{let _0x3ac1e5=!0x1;const _0x6a5a94=_0x4b1c0f['plugins']['get']('Users')['me'],_0xdc7e07=_0x1b8b47['getSuggestions']()['filter'](_0x1b2c0d=>_0x1b2c0d['isInContent']&&_0x1b2c0d['author']==_0x6a5a94),_0x38f619=new Set(),_0x475a52=new Set();for(const _0x526c18 of _0xdc7e07)if('tablePaste'==_0x526c18['subType'])for(const _0x5621b6 of _0x526c18['getMarkers']()){const _0x314559=_0x5621b6['getRange']()['getContainedElement']();if(_0x314559){if(_0x314559['is']('element','tableCellSuggestion')&&Oe(_0x314559)){_0x526c18['removeMarker'](_0x5621b6['name']),_0x38f619['add'](_0x314559),_0x3ac1e5=!0x0;const _0x23f18b=_0x314559['nextSibling'],_0x366a22=_0x314559['previousSibling'],_0x31ff77=_0x23f18b&&_0x23f18b['is']('element','tableCellSuggestion'),_0x29903f=_0x366a22&&_0x366a22['is']('element','tableCellSuggestion');_0x31ff77&&!_0x38f619['has'](_0x23f18b)&&_0x475a52['add'](_0x23f18b),_0x29903f&&!_0x38f619['has'](_0x366a22)&&_0x475a52['add'](_0x366a22);}else _0x314559['is']('element','paragraph')&&_0x314559['isEmpty']&&(_0x526c18['removeMarker'](_0x5621b6['name']),_0x3ac1e5=!0x0);}}else{if('tablePasteCell'==_0x526c18['subType']){if(!_0x526c18['attributes']||!_0x526c18['attributes']['tablePasteChainId'])continue;const _0x236673=_0x526c18['attributes']['markerAttributes'];if(_0x236673&&Object['keys'](_0x236673)['length'])continue;const _0xaa9d9c=_0x526c18['attributes']['tablePasteChainId'];let _0x319d19=!0x0,_0x530806=!0x0;for(const _0x5c6962 of _0xdc7e07)if(_0x5c6962['subType']&&_0x5c6962['subType']['startsWith']('tablePaste')){if(!_0x5c6962['attributes']['tablePasteChainId']){_0x530806=!0x1;break;}if(_0x5c6962['id']!=_0x526c18['id']&&_0x5c6962['attributes']['tablePasteChainId']==_0xaa9d9c){_0x319d19=!0x1;break;}}_0x530806&&_0x319d19&&(_0x526c18['removeMarkers'](),_0x3ac1e5=!0x0);}}for(const _0x9858f2 of _0x38f619)_0x589715['remove'](_0x9858f2);for(const _0x135182 of _0x475a52)_0x589715['unwrap'](_0x135182);return _0x3ac1e5;}),_0x4b1c0f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x24bdb0=>_0x29b4ab(_0x24bdb0),'converterPriority':'high'}),_0x4b1c0f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2eac62,_0x44e31f)=>_0x44e31f['options']['showSuggestionHighlights']?_0x29b4ab(_0x2eac62,!0x1):null,'converterPriority':'high'});const _0x5a95bc=_0x4b1c0f['editing']['view'];this['listenTo'](_0x5a95bc['document'],'clipboardOutput',(_0x4ecd93,_0x14147d)=>{const _0x42d3e1=[];for(const _0x15b3ca of _0x5a95bc['createRangeIn'](_0x14147d['content'])['getItems']())_0x15b3ca['is']('element','suggestion-td')&&_0x42d3e1['push'](_0x15b3ca);_0x5a95bc['change'](_0x3019ea=>{for(const _0x6d19c9 of _0x42d3e1)_0x3019ea['move'](_0x3019ea['createRangeIn'](_0x6d19c9),_0x3019ea['createPositionBefore'](_0x6d19c9)),_0x3019ea['remove'](_0x6d19c9);});});}}function Oe(_0x2bbe5f){if(_0x2bbe5f['isEmpty'])return!0x0;const _0x48eb11=_0x2bbe5f['getChild'](0x0);return _0x48eb11['is']('element','paragraph')&&_0x48eb11['isEmpty'];}function Ue(_0x145aa0,_0x27dd98={},_0x4e992c){for(const {isAnchor:_0x5c5b00,cellHeight:_0x31fbb6,cellWidth:_0x4fa1ec}of _0x4e992c['createTableWalker'](_0x145aa0,{'includeAllSlots':!0x0,..._0x27dd98}))if(!_0x5c5b00||0x1!=_0x31fbb6||0x1!=_0x4fa1ec)return!0x1;return!0x0;}class $t extends _0x99cb74{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x474226=this['editor']['plugins']['get']('TrackChangesEditing');_0x474226['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x474226['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x474226['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x474226['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x474226['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x474226['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x140a14,_0x1501f5){const _0x2f1f34=this['editor']['plugins']['get']('TrackChangesEditing'),_0x252d05=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x46bb50=_0x1501f5['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x54283a=_0x252d05['getColumnGroupElement'](_0x46bb50);let _0x425303=_0x54283a?_0x252d05['getTableColumnsWidths'](_0x54283a):null,_0x3715e7=_0x46bb50['getAttribute']('tableWidth')||null;const _0x215057=_0x1501f5['tableWidth']||_0x3715e7,_0x111421=_0x1501f5['columnWidths']||_0x425303,_0x1111a2=this['editor']['plugins']['get']('Users')['me'];for(const _0x554f09 of _0x2f1f34['getSuggestions']()){const _0xe5cbda=_0x554f09['getContainedElement']();if('resizeTable'===_0x554f09['subType']&&_0xe5cbda===_0x46bb50){_0x554f09['author']!==_0x1111a2&&_0x554f09['discard']();const _0x5e7963=_0x554f09['data']['commandParams'];_0x3715e7=_0x5e7963[0x0]['tableWidth'],_0x425303=_0x5e7963[0x0]['columnWidths'];break;}}_0x140a14({'table':_0x46bb50,'tableWidth':_0x215057,'columnWidths':_0x111421}),_0x2f1f34['markBlockFormat'](_0x46bb50,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3715e7,'columnWidths':_0x425303}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x419cd3){if('formatBlock'!=_0x419cd3['type']&&'formatInline'!=_0x419cd3['type'])return;const {data:_0xad2a4}=_0x419cd3;if(_0xad2a4&&'resizeTable'===_0xad2a4['formatGroupId']){const _0x50150d='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x50150d)};}}}class Bt extends _0x99cb74{['afterInit'](){const _0x114be4=this['editor'];_0x114be4['plugins']['has']('Template')&&_0x114be4['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ot extends _0x99cb74{['afterInit'](){const _0x580faa=this['editor'];if(!_0x580faa['commands']['get']('insertTableOfContents'))return;_0x580faa['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0xccc54e=_0x580faa['plugins']['get']('TrackChangesEditing'),_0x42f8fd=_0x580faa['locale'];_0xccc54e['descriptionFactory']['registerElementLabel']('tableOfContents',_0x270d2a=>o(_0x42f8fd,'ELEMENT_TABLE_OF_CONTENTS',_0x270d2a));}}class Rt extends _0x99cb74{['afterInit'](){const _0x4dd10a=this['editor'];if(!_0x4dd10a['plugins']['has']('Title'))return;const _0x202ec9=_0x4dd10a['plugins']['get']('TrackChangesEditing');_0x202ec9['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4dd10a['locale'],'ELEMENT_TITLE')),_0x4dd10a['model']['document']['registerPostFixer'](_0x19d6b1=>{let _0x10272b=!0x1;const _0x583024=Array['from'](_0x4dd10a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4fcc29,data:_0x4511eb}of _0x583024){const {group:_0x4411cb}=_0x202ec9['_splitMarkerName'](_0x4fcc29);if('suggestion'!==_0x4411cb||!_0x4511eb['newRange'])continue;const _0x500fec=_0x4511eb['newRange'],_0x5bc30c=_0x500fec['end']['nodeBefore'];if(!_0x5bc30c||!_0x5bc30c['is']('element','title-content'))continue;if(!_0x500fec['start']['isTouching'](_0x500fec['end']))continue;const _0x46419a=_0x4dd10a['model']['schema']['getNearestSelectionRange'](_0x500fec['end'],'forward');if(_0x46419a&&_0x46419a['isCollapsed']){const _0x209848=_0x19d6b1['createRange'](_0x500fec['start'],_0x46419a['start']);_0x209848['isEqual'](_0x500fec)||(_0x19d6b1['updateMarker'](_0x4fcc29,{'range':_0x209848}),_0x10272b=!0x0);}_0x10272b||(_0x19d6b1['removeMarker'](_0x4fcc29),_0x10272b=!0x0);}return _0x10272b;});}}class Tt extends _0x99cb74{['afterInit'](){const _0x386f91=this['editor'],_0x4219bf=_0x386f91['plugins']['get']('TrackChangesEditing');_0x386f91['plugins']['has']('Uploadcare')&&(_0x4219bf['enableCommand']('uploadcare'),_0x386f91['plugins']['has']('UploadcareImageEdit')&&(_0x4219bf['enableCommand']('uploadcareImageEdit'),_0x4219bf['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x4219bf['registerBlockAttribute']('uploadcareImageId'),_0x4219bf['descriptionFactory']['registerDescriptionCallback'](_0x315f75=>{if('attribute'!=_0x315f75['type'])return;const {data:_0x3e11fa}=_0x315f75;return _0x3e11fa&&'uploadcareImageId'==_0x3e11fa['key']?{'type':'format','content':''}:void 0x0;})));}}class xt extends _0x99cb74{['afterInit'](){const _0x603f8d=this['editor'],_0x4265e9=_0x603f8d['plugins']['get']('TrackChangesEditing');_0x603f8d['plugins']['has']('UndoEditing')&&(_0x4265e9['enableCommand']('undo'),_0x4265e9['enableCommand']('redo'));}}class Et extends _0x99cb74{static get['requires'](){return[Ct];}['afterInit'](){const _0x41d309=this['editor'];if(!_0x41d309['plugins']['has']('TableCaptionEditing'))return;_0x41d309['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Ut extends _0x99cb74{['tableProperties'];['tableCellProperties'];constructor(_0x56229c){super(_0x56229c),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 _0x342f61=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3ad1ac of this['tableProperties'])_0x342f61['enableCommand'](_0x3ad1ac,(_0x5d984e,_0x1c4946)=>{const _0x5e8d46=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3ad1ac,[_0x5e8d46],this['tableProperties'],'tableProperties',_0x5d984e,_0x1c4946);});_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x342f61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2b6ee7,_0x23b350)=>this['handleDiscardAction'](this['tableProperties'],_0x2b6ee7,_0x23b350)),_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x58c3ae of this['tableCellProperties'])_0x342f61['enableCommand'](_0x58c3ae,(_0x7209a4,_0x89c999)=>{const _0x468209=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x58c3ae,_0x468209,this['tableCellProperties'],'tableCellProperties',_0x7209a4,_0x89c999);});_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x342f61['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x37d577,_0x4c071d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x37d577,_0x4c071d)),_0x342f61['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x342f61['descriptionFactory']['registerDescriptionCallback'](_0x592282=>this['handleSuggestionDescription'](_0x592282));}['_handlePropertyChange'](_0x1bd465,_0x58d6d3,_0x21857a,_0x2928c9,_0x5c23e6,_0x2985b3){const _0xbf05aa=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x2985b3['batch'],()=>{for(const _0x5a2b95 of _0x58d6d3){if(this['_getSuggestion'](_0x5a2b95,_0x2928c9))_0x5c23e6(_0x2985b3);else{const _0x365f81={};for(const _0x563827 of _0x21857a){const _0x25afdf=_0x5a2b95['getAttribute'](_0x563827);void 0x0!==_0x25afdf&&(_0x365f81[_0x563827]=_0x25afdf);}_0x5c23e6(_0x2985b3),_0xbf05aa['markBlockFormat'](_0x5a2b95,{'commandParams':[_0x365f81]},[],_0x2928c9);}}});}['handleDiscardAction'](_0x1a409c,_0x2511b0,_0x409846){const _0x1b2e21=_0x2511b0[0x0]['start']['nodeAfter'],_0xd7af94=_0x409846['commandParams'][0x0];this['editor']['model']['change'](_0x397132=>{for(const _0x828ec7 of _0x1a409c)void 0x0!==_0xd7af94[_0x828ec7]?_0x397132['setAttribute'](_0x828ec7,_0xd7af94[_0x828ec7],_0x1b2e21):_0x397132['removeAttribute'](_0x828ec7,_0x1b2e21);});}['handleSuggestionDescription'](_0x31da69){if(_0x31da69['data'])switch(_0x31da69['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'](_0x1da761,_0x18fc18){const _0x24c26b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x26b0dd of _0x24c26b['getSuggestions']({'skipNotAttached':!0x0})){const _0x55c34b=_0x26b0dd['getContainedElement']();if(_0x26b0dd['subType']===_0x18fc18&&_0x55c34b===_0x1da761)return _0x26b0dd;}return null;}}const m='$elementName';class p extends _0x99cb74{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x19770a,_0x8fe2ce,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,vt,_t,Ct,Nt,Dt,Et,Mt,$t,Ot,Ut,Bt,Rt,Tt,xt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x488c3f){super(_0x488c3f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x273ac0,_0x3f3a6e,_0x5e722b,_0x24c97d)=>{this['_model']['change'](()=>{for(const _0x275ee8 of[..._0x24c97d,..._0x5e722b])this['_model']['markers']['has'](_0x275ee8)&&_0x488c3f['editing']['reconvertMarker'](_0x275ee8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Pt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x488c3f['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(),_0x488c3f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x488c3f['config']['get']('trackChanges.trackFormatChanges'),_0x488c3f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x488c3f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x488c3f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xb55817=this['editor'],_0x3d9e99=(_0x39d35d,_0x189a16)=>{if('attribute'!=_0x39d35d)return'ck-suggestion-marker-'+_0x39d35d;const _0x5e6318=_0x189a16['split']('|')[0x0];return this['_isBlockAttribute'](_0x5e6318)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xb55817['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1fd256=>{const {id:_0x175883,authorId:_0xc87b18,type:_0x4f1aeb,subType:_0x3e5a02}=this['_splitMarkerName'](_0x1fd256['markerName']),_0x2d370f=['ck-suggestion-marker',_0x3d9e99(_0x4f1aeb,_0x3e5a02)];let _0x8feea6=0xbb8;return this['activeMarkers']['includes'](_0x1fd256['markerName'])&&(_0x2d370f['push']('ck-suggestion-marker--active'),_0x8feea6=0xbc2),'deletion'==_0x4f1aeb&&(_0x8feea6+=0x5),{'classes':_0x2d370f,'attributes':{'data-suggestion':_0x175883,'data-author-id':_0xc87b18},'priority':_0x8feea6};}}),_0xb55817['conversion']['for']('dataDowncast')['add'](_0x19f604=>{_0x19f604['on']('addMarker:suggestion',(_0x357f9c,_0x28ecca,_0x432185)=>{if(!_0x432185['options']['showSuggestionHighlights'])return;const _0x59470c=_0x28ecca['item'];if(!_0x59470c)return;const _0x505cd0=_0x432185['mapper']['toViewElement'](_0x59470c);_0xb55817['model']['schema']['isObject'](_0x59470c)&&_0x505cd0&&!_0x505cd0['getCustomProperty']('widget')&&_0x505cd0['is']('containerElement')&&_0x256c33(_0x505cd0,_0x432185['writer']);},{'priority':'high'});}),_0xb55817['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x582edc,_0x5bb735)=>{if(!_0x5bb735['options']['showSuggestionHighlights'])return null;const {type:_0xc0999,subType:_0x532b20}=this['_splitMarkerName'](_0x582edc['markerName']);return{'classes':['ck-suggestion-marker',_0x3d9e99(_0xc0999,_0x532b20)],'priority':0xbb8};}});const _0x445570=({showActiveMarkers:_0x35cb7e=!0x0,isAttributeSuggestion:_0x252125=!0x1}={})=>(_0x50188f,_0x14b419,_0x348a7d)=>{if(!_0x14b419['item'])return;const {id:_0x41102e,authorId:_0x120dbd}=this['_splitMarkerName'](_0x14b419['markerName']);if(_0x252125){const _0x4d8f53=this['_suggestions']['get'](_0x41102e),_0x5b4ec4=this['_getAttributeKey'](_0x4d8f53);if(!this['_isBlockAttribute'](_0x5b4ec4))return;}if(_0x14b419['item']['is']('selection'))return void _0x348a7d['consumable']['consume'](_0x14b419['item'],_0x50188f['name']);const _0x2b6320=_0x348a7d['mapper']['toViewElement'](_0x14b419['item']);if(_0x14b419['item']['is']('element')&&_0xb55817['model']['schema']['isBlock'](_0x14b419['item'])&&!_0x2b6320['getCustomProperty']('addHighlight')){_0x348a7d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2b6320),_0x348a7d['writer']['setAttribute']('data-suggestion',_0x41102e,_0x2b6320),_0x348a7d['writer']['setAttribute']('data-author-id',_0x120dbd,_0x2b6320),_0x348a7d['mapper']['bindElementToMarker'](_0x2b6320,_0x14b419['markerName']),_0x35cb7e&&(this['activeMarkers']['includes'](_0x14b419['markerName'])?_0x348a7d['writer']['addClass']('ck-suggestion-marker--active',_0x2b6320):_0x348a7d['writer']['removeClass']('ck-suggestion-marker--active',_0x2b6320));for(const _0x1a4400 of _0xb55817['model']['createRangeIn'](_0x14b419['item'])['getItems']())_0x348a7d['consumable']['consume'](_0x1a4400,_0x50188f['name']);_0x348a7d['consumable']['consume'](_0x14b419['item'],_0x50188f['name']);}};_0xb55817['conversion']['for']('dataDowncast')['add'](_0xaae40=>{_0xaae40['on']('addMarker:suggestion:formatBlock',(_0x46209e,_0x14c446,_0x57d0ec)=>{_0x57d0ec['options']['showSuggestionHighlights']&&_0x445570({'showActiveMarkers':!0x1})(_0x46209e,_0x14c446,_0x57d0ec);},{'priority':'highest'});}),_0xb55817['conversion']['for']('dataDowncast')['add'](_0x1c60c2=>{_0x1c60c2['on']('addMarker:suggestion:attribute',(_0x278ee9,_0x13826a,_0x41e82d)=>{_0x41e82d['options']['showSuggestionHighlights']&&_0x445570({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x278ee9,_0x13826a,_0x41e82d);},{'priority':'highest'});}),_0xb55817['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x5579ca,_0x55c019)=>_0x55c019['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x5579ca['substr'](0xb)}}),_0xb55817['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x372460,{writer:_0x51ba70})=>{let _0x5679ef='suggestion:'+_0x372460['getAttribute']('suggestion-type')+':'+_0x372460['getAttribute']('id');return _0x372460['getAttribute']('marker-count')&&(_0x5679ef+=':'+_0x372460['getAttribute']('marker-count')),_0x51ba70['createElement']('$marker',{'data-name':_0x5679ef});}}),_0xb55817['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xb55817['conversion']['for']('editingDowncast')['add'](_0xa47aa2=>{_0xa47aa2['on']('addMarker:suggestion:formatBlock',_0x445570(),{'priority':'high'});}),_0xb55817['conversion']['for']('editingDowncast')['add'](_0x19e5d3=>{_0x19e5d3['on']('addMarker:suggestion:attribute',_0x445570({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xb55817['conversion']['for']('editingDowncast')['add'](_0x24ab23=>{_0x24ab23['on']('removeMarker:suggestion:formatBlock',(_0x49e6a7,_0x193f9a,_0x7d3069)=>{const _0x30bbce=_0x7d3069['mapper']['markerNameToElements'](_0x193f9a['markerName']);if(_0x30bbce){for(const _0x55740c of _0x30bbce)_0x55740c['getCustomProperty']('addHighlight')||(_0x7d3069['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x55740c),_0x7d3069['writer']['removeAttribute']('data-suggestion',_0x55740c),_0x7d3069['writer']['removeAttribute']('data-author-id',_0x55740c),_0x7d3069['mapper']['unbindElementFromMarkerName'](_0x55740c,_0x193f9a['markerName']));}},{'priority':'high'});}),_0xb55817['conversion']['for']('editingDowncast')['add'](_0x363967=>{_0x363967['on']('removeMarker:suggestion:attribute',(_0x23c914,_0xb8e79a,_0x2b5075)=>{const _0x58f225=_0x2b5075['mapper']['markerNameToElements'](_0xb8e79a['markerName']);if(!_0x58f225)return;const {id:_0x3feef3}=this['_splitMarkerName'](_0xb8e79a['markerName']),_0x4321ae=this['_suggestions']['get'](_0x3feef3),_0x501cd1=this['_getAttributeKey'](_0x4321ae);if(this['_isBlockAttribute'](_0x501cd1)){for(const _0x53fa3e of _0x58f225)_0x53fa3e['getCustomProperty']('addHighlight')||(_0x2b5075['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x53fa3e),_0x2b5075['writer']['removeAttribute']('data-suggestion',_0x53fa3e),_0x2b5075['writer']['removeAttribute']('data-author-id',_0x53fa3e),_0x2b5075['mapper']['unbindElementFromMarkerName'](_0x53fa3e,_0xb8e79a['markerName']));}},{'priority':'high'});}),_0xb55817['model']['document']['registerPostFixer'](_0x34d444=>{let _0x233006=!0x1;const _0x3dd57d=Array['from'](_0xb55817['model']['document']['differ']['getChangedMarkers']()),_0x5070a8=new Set();for(const {name:_0x5266fe,data:_0x18d1cb}of _0x3dd57d){const {group:_0x1edf27,type:_0x52fd48,subType:_0x1caa69,id:_0x184bb8}=this['_splitMarkerName'](_0x5266fe);if('suggestion'!==_0x1edf27)continue;const _0x30221e=this['_suggestions']['get'](_0x184bb8);if(null!=_0x18d1cb['newRange']){'formatInline'==_0x52fd48&&(_0x233006=_0x233006||Lt(_0x18d1cb['newRange'],_0x5266fe,_0x34d444,_0xb55817['model']['schema']));const _0x2931dd='attribute'==_0x52fd48&&this['_isBlockAttribute'](_0x1caa69['split']('|')[0x0]);if(_0x18d1cb['newRange']['isCollapsed']||'$graveyard'==_0x18d1cb['newRange']['root']['rootName']||'formatBlock'==_0x52fd48&&!Ht(_0x18d1cb['newRange'])||_0x2931dd&&!Ht(_0x18d1cb['newRange'])||'deletion'==_0x52fd48&&!(!Ft(_0x5a952c=_0x18d1cb['newRange'])&&!function(_0x48b772){return _0x48b772['start']['parent']==_0x48b772['end']['nodeBefore']&&_0x48b772['start']['isAtEnd'];}(_0x5a952c)))_0x34d444['removeMarker'](_0x5266fe),_0x233006=!0x0;else{if(!_0x30221e||!_0x30221e['isInContent'])continue;if(_0x18d1cb['newRange']&&_0x18d1cb['oldRange']&&_0x18d1cb['newRange']['isEqual'](_0x18d1cb['oldRange']))continue;_0x5070a8['add'](_0x30221e);}}}var _0x5a952c;return _0x5070a8['size']>0x0&&(_0x233006=!!this['_joinWithAdjacentSuggestions'](_0x5070a8)||_0x233006),_0x233006;}),_0xb55817['model']['document']['registerPostFixer'](_0x4e4465=>{let _0x205255=!0x1;for(const _0x193d56 of _0xb55817['model']['document']['differ']['getChanges']())if('insert'==_0x193d56['type'])for(const _0x15a2cb of this['_suggestions']['values']()){if(_0x15a2cb['isMultiRange']||!_0x15a2cb['isInContent'])continue;const _0x4dacf5='formatBlock'==_0x15a2cb['type'],_0x5e2fed=this['_getAttributeKey'](_0x15a2cb),_0x221c8a=_0x5e2fed&&this['_isBlockAttribute'](_0x5e2fed);if(!_0x4dacf5&&!_0x221c8a)continue;const _0x18b550=_0x15a2cb['getFirstRange']();if(_0x18b550['start']['parent']!=_0x18b550['end']['parent']&&!_0x18b550['end']['isAtEnd']){const _0x1e2b77=_0xb55817['model']['createPositionAt'](_0x18b550['start']['nodeAfter'],'end'),_0x2d7c64=_0xb55817['model']['createRange'](_0x18b550['start'],_0x1e2b77);_0x4e4465['updateMarker'](_0x15a2cb['getFirstMarker'](),{'range':_0x2d7c64}),_0x205255=!0x0;}}return _0x205255;}),_0xb55817['model']['document']['registerPostFixer'](_0x5f0108=>this['_processAttributeChanges'](_0x5f0108)),_0xb55817['model']['document']['registerPostFixer'](_0x274d36=>!_0x274d36['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x274d36)),_0xb55817['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xb55817['model']['document']['on']('change:data',(_0x5ea19f,_0x309fbd)=>{if(!_0x309fbd['isLocal']||_0x309fbd['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5e1d01=_0xb55817['model']['document']['differ']['getChanges']();if(0x0==_0x5e1d01['length'])return;const _0x660f2=[],_0x74447f=_0x5e1d01['filter'](_0x5672f5=>'attribute'==_0x5672f5['type']),_0x34e9b2=_0x5e1d01['filter'](_0x1e9451=>'insert'==_0x1e9451['type']&&'$text'!=_0x1e9451['name']);for(const _0x371e37 of _0x74447f)this['_isRegisteredAttribute'](_0x371e37['attributeKey'])&&_0x660f2['push']({'key':_0x371e37['attributeKey'],'newValue':_0x371e37['attributeNewValue'],'oldValue':_0x371e37['attributeOldValue'],'range':qt(_0x371e37['range'],_0xb55817['model'])});for(const _0xfbde05 of _0x34e9b2){if('rename'!=_0xfbde05['action']&&'refresh'!=_0xfbde05['action'])continue;const _0x44a59e=zt(_0xfbde05['position']['nodeAfter'],_0xb55817['model']),_0x22d949=_0xfbde05['before'];'rename'==_0xfbde05['action']&&_0x660f2['push']({'key':m,'newValue':_0xfbde05['name'],'oldValue':_0x22d949['name'],'range':_0x44a59e});for(const [_0xcd1e6c,_0x4bafb7]of _0x22d949['attributes']){if(!this['_isRegisteredAttribute'](_0xcd1e6c))continue;const _0x289df5=_0xfbde05['attributes']['get'](_0xcd1e6c);_0x4bafb7!==_0x289df5&&_0x660f2['push']({'key':_0xcd1e6c,'newValue':_0x289df5,'oldValue':_0x4bafb7,'range':_0x44a59e});}for(const [_0x2566ed,_0x43fc68]of _0xfbde05['attributes'])this['_isRegisteredAttribute'](_0x2566ed)&&(_0x22d949['attributes']['has'](_0x2566ed)||_0x660f2['push']({'key':_0x2566ed,'newValue':_0x43fc68,'oldValue':null,'range':_0x44a59e}));}0x0!=_0x660f2['length']&&_0xb55817['model']['enqueueChange'](_0x309fbd,_0x5a424b=>{const _0x431bde=_0x161b41();for(const {range:_0x18fe67,key:_0x2dabb3,oldValue:_0xab046d,newValue:_0x5182fc}of _0x660f2)this['markAttributeChange'](_0x18fe67,_0x2dabb3,_0xab046d,_0x5182fc,{'groupId':_0x431bde});this['_reduceExistingSuggestions'](_0x5a424b,_0x660f2);});},{'priority':'lowest'}),_0xb55817['model']['markers']['on']('update:suggestion',(_0xa48ff4,_0x5f15c4,_0x2999a7)=>{if(null==_0x2999a7){const {id:_0x27a90d}=this['_splitMarkerName'](_0x5f15c4['name']),_0x4457ab=this['_suggestions']['get'](_0x27a90d);_0x4457ab&&_0x4457ab['addMarkerName'](_0x5f15c4['name']);}}),_0xb55817['model']['document']['on']('change:data',()=>{const _0x2e2688=Array['from'](_0xb55817['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3bb83c=>'suggestion'===this['_splitMarkerName'](_0x3bb83c['name'])['group']);if(0x0===_0x2e2688['length'])return;_0x2e2688['sort']((_0x3b707c,_0x30bbfc)=>{const _0x4313f5=_0x3b707c['data']['oldRange'],_0x43eb53=_0x30bbfc['data']['oldRange'];return null===_0x4313f5&&null===_0x43eb53?0x0:null===_0x4313f5&&null!==_0x43eb53?-0x1:null!==_0x4313f5&&null===_0x43eb53?0x1:_0x4313f5['start']['isBefore'](_0x43eb53['start'])?-0x1:0x1;});const _0x4358bc=new Set(),_0x12bfa0=new Set();for(const {name:_0xadc938,data:_0x499bb4}of _0x2e2688){const {id:_0x108b07}=this['_splitMarkerName'](_0xadc938);if(null===_0x499bb4['oldRange']){const _0x49899f=this['_handleNewSuggestionMarker'](_0xadc938);_0x12bfa0['add'](_0x49899f);}else{const _0x1e6229=this['_suggestions']['get'](_0x108b07);null!==_0x499bb4['newRange']||_0x1e6229['isInContent']?(_0x4358bc['add'](_0x1e6229['head']),_0x12bfa0['add'](_0x1e6229)):this['_removeSuggestion'](_0x1e6229);}}_0x12bfa0['size']>0x0&&this['_refreshSuggestionsChain'](_0x12bfa0);for(const _0x84369a of _0x4358bc)this['fire']('suggestionChanged',_0x84369a);}),_0xb55817['model']['on']('applyOperation',(_0x3d7e7f,_0x51a923)=>{const _0x4ea54b=_0x51a923[0x0];if(!this['_suggestions']['size'])return;if(!_0x4ea54b['isDocumentOperation'])return;if(_0x4ea54b['batch']['isUndo']||!_0x4ea54b['batch']['isLocal'])return;let _0x28586b,_0x23efdf;switch(_0x4ea54b['type']){case'insert':_0x28586b=_0xb55817['model']['createPositionAt'](_0x4ea54b['position']),_0x23efdf=_0x28586b['getShiftedBy'](_0x4ea54b['howMany']);break;case'split':_0x28586b=_0xb55817['model']['createPositionAt'](_0x4ea54b['splitPosition']),_0x23efdf=_0xb55817['model']['createPositionAt'](_0x4ea54b['moveTargetPosition']);break;case'move':_0x28586b=_0xb55817['model']['createPositionAt'](_0x4ea54b['targetPosition']),_0x23efdf=_0x28586b['getShiftedBy'](_0x4ea54b['howMany']);break;default:return;}const _0x1c79db=_0xb55817['model']['createRange'](_0x28586b,_0x23efdf);_0xb55817['model']['change'](()=>{for(const {suggestion:_0x863851,meta:_0x3e3369}of this['_findSuggestions'](_0x1c79db)){if(_0x863851['isMultiRange'])continue;if('formatInline'==_0x863851['type'])continue;const _0xd05e02=this['_getAttributeKey'](_0x863851);if(_0xd05e02&&this['_isBlockAttribute'](_0xd05e02)&&'split'!=_0x4ea54b['type'])continue;const _0x36bca9=_0x863851['data']&&_0x863851['data']['multipleBlocks'];('formatBlock'!=_0x863851['type']||'split'==_0x4ea54b['type']&&!_0x36bca9)&&(_0x3e3369['containsRangeInObject']||'insertion'==_0x863851['type']&&_0x3e3369['isOwn']||_0x863851['getFirstRange']()['containsRange'](_0x1c79db)&&this['_breakSuggestionMarker'](_0x863851,_0x28586b,_0x23efdf));}});},{'priority':'lowest'}),_0xb55817['model']['on']('deleteContent',(_0x188ff9,_0x150f97)=>{const _0x3ce604=_0x150f97[0x0],_0x1eb758=_0x150f97[0x1];if(_0x1eb758&&_0x1eb758['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3ce604['isCollapsed'])return;const _0xd2743a=_0xb55817['model']['schema'],{start:_0x29f270,end:_0x12fbb7}=_0x3ce604['getFirstRange'](),_0x2dd427=_0x29f270['nodeAfter']&&_0xd2743a['isLimit'](_0x29f270['nodeAfter'])?null:_0xd2743a['getNearestSelectionRange'](_0x29f270,'forward'),_0x578c3c=_0x12fbb7['nodeBefore']&&_0xd2743a['isLimit'](_0x12fbb7['nodeBefore'])?null:_0xd2743a['getNearestSelectionRange'](_0x12fbb7,'backward'),_0x1e1bf6=_0xb55817['model']['createRange'](_0x2dd427?_0x2dd427['start']:_0x29f270,_0x578c3c?_0x578c3c['end']:_0x12fbb7);_0xb55817['model']['change'](_0xc3b976=>{this['markDeletion'](_0x1e1bf6);const _0x2fef94=_0xb55817['model']['schema']['getNearestSelectionRange'](_0x1e1bf6['start']);_0x3ce604['is']('documentSelection')?_0xc3b976['setSelection'](_0x2fef94):_0x3ce604['setTo'](_0x2fef94);}),_0x188ff9['stop']();},{'priority':_0x307cb7['normal']+0xa}),_0xb55817['model']['on']('insertContent',(_0x1de0a5,_0x4bb43b)=>{const _0x6d177c=_0x4bb43b[_0x4bb43b['length']-0x1];_0x6d177c&&_0x6d177c['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xb55817['model']['change'](()=>{let _0x57884c=_0xb55817['model']['insertContent'](_0x4bb43b[0x0],_0x4bb43b[0x1],_0x4bb43b[0x2],{'forceDefaultExecution':!0x0});if(!_0x57884c)return;_0x1de0a5['return']=_0x57884c['clone']();const _0x242ffc=_0x57884c['end']['nodeBefore'],_0x27af56=_0xb55817['model']['schema'];_0x242ffc&&_0x27af56['isBlock'](_0x242ffc)&&!_0x27af56['isObject'](_0x242ffc)&&(_0x57884c=_0xb55817['model']['createRange'](_0x57884c['start'],_0xb55817['model']['createPositionAt'](_0x242ffc,'end'))),this['markInsertion'](_0x57884c);}),_0x1de0a5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x182b4a=new O(_0xb55817,this['_suggestions']);_0xb55817['commands']['add']('acceptSuggestion',_0x182b4a),this['enableCommand']('acceptSuggestion');const _0x230b7d=new R(_0xb55817,this['_suggestions']);_0xb55817['commands']['add']('discardSuggestion',_0x230b7d),this['enableCommand']('discardSuggestion'),_0xb55817['commands']['add']('acceptAllSuggestions',new x(_0xb55817,_0x182b4a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xb55817['commands']['add']('discardAllSuggestions',new x(_0xb55817,_0x230b7d,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xb55817['commands']['add']('acceptSelectedSuggestions',new E(_0xb55817,_0x182b4a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xb55817['commands']['add']('discardSelectedSuggestions',new E(_0xb55817,_0x230b7d,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ea3fd=_0xb55817['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ea3fd,'addComment',(_0x1bef7b,{threadId:_0x368a26})=>{const _0x553f1f=this['_suggestions']['get'](_0x368a26);_0x553f1f&&_0x553f1f['commentThread']&&0x1===_0x553f1f['commentThread']['length']&&this['_updateSuggestionData'](_0x368a26,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ea3fd,'removeComment',(_0x1987f8,{threadId:_0x28aa54})=>{const _0x39acfd=this['_suggestions']['get'](_0x28aa54);_0x39acfd&&_0x39acfd['commentThread']&&!_0x39acfd['commentThread']['length']&&this['_updateSuggestionData'](_0x28aa54,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x187fa7){const _0x504b4c=_0x185482([0x79,0x39,0x57,0x38,0x6d,0x47,0x56,0x31,0x42,0x37,0x53,0x76,0x5a,0x50,0x62,0x58,0x66,0x77,0x78,0x4b,0x34,0x73,0x41,0x6f,0x45,0x52,0x51,0x72,0x44,0x74,0x6a,0x4d,0x69,0x63,0x32,0x71,0x4e,0x49,0x33,0x7a,0x46,0x35,0x43,0x4f,0x65,0x55,0x4a,0x68,0x67,0x48,0x30,0x36,0x59,0x6c,0x6b,0x70,0x64,0x54,0x6e,0x4c,0x75,0x61]),_0x569a0d=0x26f72874,_0x5e0375=0x26f07784^_0x569a0d,_0x50d884=window[_0x185482([0x44,0x61,0x74,0x65])][_0x185482([0x6e,0x6f,0x77])](),_0xee9220=_0x187fa7[_0x185482([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x479c9d=new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x180e7c=>{_0xee9220[_0x185482([0x6f,0x6e,0x63,0x65])](_0x185482([0x72,0x65,0x61,0x64,0x79]),_0x180e7c);}),_0x4224f1={[_0x185482([0x6b,0x74,0x79])]:_0x185482([0x45,0x43]),[_0x185482([0x75,0x73,0x65])]:_0x185482([0x73,0x69,0x67]),[_0x185482([0x63,0x72,0x76])]:_0x185482([0x50,0x2d,0x32,0x35,0x36]),[_0x185482([0x78])]:_0x185482([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]),[_0x185482([0x79])]:_0x185482([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]),[_0x185482([0x61,0x6c,0x67])]:_0x185482([0x45,0x53,0x32,0x35,0x36])},_0x21496f=_0xee9220[_0x185482([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x185482([0x67,0x65,0x74])](_0x185482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd25c45(){let _0x53cff0,_0x3a9c8a=null,_0x34d0fc=null;try{if(_0x21496f==_0x185482([0x47,0x50,0x4c]))return _0x185482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x53cff0=_0x271ca0(),!_0x53cff0)return _0x185482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x53cff0[_0x185482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x34d0fc=_0x19afac(_0x53cff0[_0x185482([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x53cff0[_0x185482([0x6a,0x74,0x69])])),await _0xd82ffb()?_0x3d0bda()?_0x428b22()?_0x185482([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5c4adf()?(_0x53cff0[_0x185482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x185482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3a9c8a=_0x340b8d(_0x185482([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x53cff0[_0x185482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x185482([0x74,0x72,0x69,0x61,0x6c])&&(_0x3a9c8a=_0x340b8d(_0x185482([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1a58f9()):_0x185482([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x185482([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x185482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3d41cd){return _0x185482([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x428b22(){const _0x21342c=[_0x185482([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x185482([0x74,0x72,0x69,0x61,0x6c])][_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53cff0[_0x185482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50d884/0x3e8:0xe10*_0x5e0375;return _0x53cff0[_0x185482([0x65,0x78,0x70])]<_0x21342c;}function _0x3d0bda(){const _0x1ac57d=_0x53cff0[_0x185482([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ac57d)return!0x1;if(_0x1ac57d[_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x185482([0x2a])))return!0x0;if(_0x1ac57d[_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x185482([0x54,0x43])))return!0x0;if(_0x1ac57d[_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x185482([0x52,0x54,0x43]))){if(_0x1130e4())return!0x0;if(_0xa0ba80()||_0x57a0e5())return!0x0;}return!0x1;}function _0x5c4adf(){const _0x4e6fb8=_0x53cff0[_0x185482([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e6fb8||0x0==_0x4e6fb8[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x22a8d5}=new URL(window[_0x185482([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e6fb8[_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x22a8d5))return!0x0;const _0x335ba7=_0x22a8d5[_0x185482([0x73,0x70,0x6c,0x69,0x74])](_0x185482([0x2e]));return _0x4e6fb8[_0x185482([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5317bd=>_0x5317bd[_0x185482([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x185482([0x2a])))[_0x185482([0x6d,0x61,0x70])](_0x2363a9=>_0x2363a9[_0x185482([0x73,0x70,0x6c,0x69,0x74])](_0x185482([0x2e])))[_0x185482([0x73,0x6f,0x6d,0x65])](_0x28498d=>_0x335ba7[_0x185482([0x65,0x76,0x65,0x72,0x79])]((_0x2e7038,_0x58c74e)=>_0x28498d[_0x58c74e]===_0x2e7038||_0x28498d[_0x58c74e]===_0x185482([0x2a])));}function _0x1a58f9(){return _0x3a9c8a&&_0x34d0fc?new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cab20,_0x5c0994)=>{_0x3a9c8a[_0x185482([0x74,0x68,0x65,0x6e])](_0x2cab20,_0x5c0994),_0x34d0fc[_0x185482([0x74,0x68,0x65,0x6e])](_0x5f0572=>{_0x5f0572!=_0x185482([0x56,0x61,0x6c,0x69,0x64])&&_0x2cab20(_0x5f0572);},_0x5c0994);}):_0x3a9c8a||_0x34d0fc||_0x185482([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19afac(_0x45238f,_0x273441){return new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18a92d=>{if(_0x4e0133())return _0x18a92d(_0x185482([0x56,0x61,0x6c,0x69,0x64]));_0x554701(),_0xee9220[_0x185482([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x185482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3bf078=!0x1;const _0x116588=_0x161b41();function _0x195d89(_0x51ec85){return!!_0x51ec85&&(typeof _0x51ec85===_0x185482([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x51ec85===_0x185482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x51ec85[_0x185482([0x74,0x68,0x65,0x6e])]===_0x185482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x51ec85[_0x185482([0x63,0x61,0x74,0x63,0x68])]===_0x185482([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3113b5(_0x18354e){_0x55b378(_0x18354e)[_0x185482([0x74,0x68,0x65,0x6e])](_0x1dc325=>{if(!_0x1dc325||_0x1dc325[_0x185482([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x185482([0x6f,0x6b]))return _0x185482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4973cc(_0x3596a5(_0x116588+_0x273441))!=_0x1dc325[_0x185482([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x185482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x185482([0x56,0x61,0x6c,0x69,0x64]);})[_0x185482([0x74,0x68,0x65,0x6e])](_0x11d45b=>(_0x47b264(),_0x11d45b),()=>{const _0x3740b4=_0x495f53();return null==_0x3740b4?(_0x47b264(),_0x185482([0x56,0x61,0x6c,0x69,0x64])):_0x185482(_0x50d884-_0x3740b4>(0x2fbac74^_0x569a0d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x185482([0x74,0x68,0x65,0x6e])](_0x18a92d)[_0x185482([0x63,0x61,0x74,0x63,0x68])](()=>{_0x18a92d(_0x185482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xe2bd97=0x26c1c6f4^_0x569a0d;function _0x47b264(){const _0x486076=_0x185482([0x6c,0x6c,0x63,0x74,0x2d])+_0x4973cc(_0x3596a5(_0x45238f)),_0x435dce=_0x668ae8(_0x4973cc(window[_0x185482([0x4d,0x61,0x74,0x68])][_0x185482([0x63,0x65,0x69,0x6c])](_0x50d884/_0xe2bd97)));window[_0x185482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x185482([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x486076,_0x435dce);}function _0x495f53(){const _0x263d2e=_0x185482([0x6c,0x6c,0x63,0x74,0x2d])+_0x4973cc(_0x3596a5(_0x45238f)),_0x455941=window[_0x185482([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x185482([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x263d2e);return _0x455941?window[_0x185482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x668ae8(_0x455941),0x10)*_0xe2bd97:null;}function _0x55b378(_0x334769){return new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x568932,_0x41d48)=>{_0x334769[_0x185482([0x74,0x68,0x65,0x6e])](_0x568932,_0x41d48),window[_0x185482([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x41d48,0x26f6fcb4^_0x569a0d);});}}_0xee9220[_0x185482([0x6f,0x6e])](_0x185482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29f13b,_0x1f649f)=>{if(_0x1f649f[0x0]!=_0x45238f)return _0x18a92d(_0x185482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1f649f[0x1]={..._0x1f649f[0x1],[_0x185482([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x116588};},{[_0x185482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x185482([0x68,0x69,0x67,0x68])}),_0xee9220[_0x185482([0x6f,0x6e])](_0x185482([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25e442=>{_0x195d89(_0x25e442[_0x185482([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3bf078=!0x0,_0x3113b5(_0x25e442[_0x185482([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x185482([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x185482([0x6c,0x6f,0x77])}),_0x479c9d[_0x185482([0x74,0x68,0x65,0x6e])](()=>{_0x3bf078||_0x18a92d(_0x185482([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e0133(){return _0xee9220[_0x185482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x185482([0x76,0x69,0x65,0x77])][_0x185482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x185482([0x61,0x75,0x74,0x6f]);}function _0x554701(){_0xee9220[_0x185482([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x185482([0x76,0x69,0x65,0x77])][_0x185482([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x185482([0x61,0x75,0x74,0x6f]);}}function _0x340b8d(_0x2f2a73){const _0xfdb235=[new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x54a1a5=>setTimeout(_0x54a1a5,0x26fe16b8^_0x569a0d)),_0x479c9d[_0x185482([0x74,0x68,0x65,0x6e])](()=>new window[(_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x85d2a=>{let _0x100da3=0x0;_0xee9220[_0x185482([0x6d,0x6f,0x64,0x65,0x6c])][_0x185482([0x6f,0x6e])](_0x185482([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x46fda5,_0xcaba93)=>{_0xcaba93[0x0][_0x185482([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x100da3++,_0x100da3==(0x26f7298c^_0x569a0d)&&(_0x85d2a(),_0x46fda5[_0x185482([0x6f,0x66,0x66])]());});}))];return window[_0x185482([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x185482([0x72,0x61,0x63,0x65])](_0xfdb235)[_0x185482([0x74,0x68,0x65,0x6e])](()=>_0x2f2a73);}async function _0x25316b(){await _0x479c9d,_0xee9220[_0x185482([0x6d,0x6f,0x64,0x65,0x6c])][_0x185482([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e0e83,_0xee9220[_0x185482([0x6d,0x6f,0x64,0x65,0x6c])][_0x185482([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e0e83,_0xee9220[_0x185482([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x185482([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1130e4(){return _0x1e2b27(_0x185482([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5e096b(_0x185482([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x185482([0x73,0x74,0x61,0x74,0x65])]==_0x185482([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xa0ba80(){return _0x1e2b27(_0x185482([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 _0x57a0e5(){return _0x1e2b27(_0x185482([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b428a(_0x16987e){const _0x9fdf08=_0x21e53f();_0xee9220[_0x9fdf08]=_0x185482([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x16987e,_0x16987e!=_0x185482([0x56,0x61,0x6c,0x69,0x64])&&_0x25316b();}function _0x21e53f(){const _0x1172d7=window[_0x185482([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x185482([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x185482([0x6e,0x6f,0x77])]())[_0x185482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x185482([0x2e]),'');let _0x8260f4=_0x185482([0x79]);for(let _0x290b9e=0x0;_0x290b9e<_0x1172d7[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x290b9e+=0x2){let _0x132cb7=window[_0x185482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1172d7[_0x185482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x290b9e,_0x290b9e+0x2));_0x132cb7>=_0x504b4c[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x132cb7-=_0x504b4c[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x8260f4+=_0x504b4c[_0x132cb7];}return _0x8260f4;}function _0x271ca0(){const _0x1d8d53=_0x21496f[_0x185482([0x73,0x70,0x6c,0x69,0x74])](_0x185482([0x2e]));if(0x3!=_0x1d8d53[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1036f9(_0x1d8d53[0x1]);function _0x1036f9(_0x114302){const _0x512e9f=_0xd46171(_0x114302);return _0x512e9f&&_0x5d9906()?_0x512e9f:null;function _0x5d9906(){const _0x540496=_0x512e9f[_0x185482([0x6a,0x74,0x69])],_0x25f4cc=window[_0x185482([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x540496[_0x185482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x540496[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2d8def={..._0x512e9f,[_0x185482([0x6a,0x74,0x69])]:_0x540496[_0x185482([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x540496[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2d8def[_0x185482([0x76,0x63])],_0x3596a5(_0x2d8def)==_0x25f4cc;}}}async function _0xd82ffb(){let _0x2cefcd=!0x0;try{const _0xa29192=_0x21496f[_0x185482([0x73,0x70,0x6c,0x69,0x74])](_0x185482([0x2e])),[_0x54341e,_0x234616,_0x314cdb]=_0xa29192;return _0x26bee0(_0x54341e),await _0x487103(_0x54341e,_0x234616,_0x314cdb),_0x2cefcd;}catch(_0x3e8b63){return!0x1;}function _0x26bee0(_0x5d3a59){const _0x2476b2=_0xd46171(_0x5d3a59);_0x2476b2&&_0x2476b2[_0x185482([0x61,0x6c,0x67])]==_0x185482([0x45,0x53,0x32,0x35,0x36])||(_0x2cefcd=!0x1);}async function _0x487103(_0x505baf,_0x32a7a2,_0x3e2c23){const _0x506792=window[_0x185482([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x185482([0x66,0x72,0x6f,0x6d])](_0x297b48(_0x3e2c23),_0x31a457=>_0x31a457[_0x185482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x39aec1=new window[(_0x185482([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x185482([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x505baf+_0x185482([0x2e])+_0x32a7a2),_0xec95b0=window[_0x185482([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x185482([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xec95b0)return;const _0x57c0ea=await _0xec95b0[_0x185482([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x185482([0x6a,0x77,0x6b]),_0x4224f1,{[_0x185482([0x6e,0x61,0x6d,0x65])]:_0x185482([0x45,0x43,0x44,0x53,0x41]),[_0x185482([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x185482([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x185482([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xec95b0[_0x185482([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x185482([0x6e,0x61,0x6d,0x65])]:_0x185482([0x45,0x43,0x44,0x53,0x41]),[_0x185482([0x68,0x61,0x73,0x68])]:{[_0x185482([0x6e,0x61,0x6d,0x65])]:_0x185482([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57c0ea,_0x506792,_0x39aec1)||(_0x2cefcd=!0x1);}}function _0xd46171(_0x9ce316){return _0x9ce316[_0x185482([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x185482([0x65,0x79]))?JSON[_0x185482([0x70,0x61,0x72,0x73,0x65])](_0x297b48(_0x9ce316)):null;}function _0x297b48(_0x22431e){return window[_0x185482([0x61,0x74,0x6f,0x62])](_0x22431e[_0x185482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x185482([0x2b]))[_0x185482([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x185482([0x2f])));}function _0x3596a5(_0x2c9f17){let _0x35c070=0x1505;function _0x255b1e(_0x23dc21){for(let _0x3233f6=0x0;_0x3233f6<_0x23dc21[_0x185482([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3233f6++){const _0x2022f8=_0x23dc21[_0x185482([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3233f6);_0x35c070=(_0x35c070<<0x5)+_0x35c070+_0x2022f8,_0x35c070&=_0x35c070;}}function _0x4589be(_0x5ba95e){Array[_0x185482([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ba95e)?_0x5ba95e[_0x185482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4589be):_0x5ba95e&&typeof _0x5ba95e==_0x185482([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x185482([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ba95e)[_0x185482([0x73,0x6f,0x72,0x74])]()[_0x185482([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5242f4,_0x2e6da9])=>{_0x255b1e(_0x5242f4),_0x4589be(_0x2e6da9);}):_0x255b1e(window[_0x185482([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ba95e));}return _0x4589be(_0x2c9f17),_0x35c070>>>0x0;}function _0x4973cc(_0xc51170){return _0xc51170[_0x185482([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x185482([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x185482([0x30]));}function _0x668ae8(_0x37bc51){return _0x37bc51[_0x185482([0x73,0x70,0x6c,0x69,0x74])]('')[_0x185482([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x185482([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e2b27(_0x30463f){return _0xee9220[_0x185482([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x185482([0x68,0x61,0x73])](_0x30463f);}function _0x5e096b(_0x539bf3){return _0xee9220[_0x185482([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x185482([0x67,0x65,0x74])](_0x539bf3);}function _0x1e0e83(){}function _0x185482(_0xb0f11d){return _0xb0f11d['map'](_0x2b91e7=>String['fromCharCode'](_0x2b91e7))['join']('');}_0x3b428a(await _0xd25c45());}(this);}set['adapter'](_0x241171){if(this['_adapter'])throw new _0x363806('track-changes-adapter-already-set',this);this['_adapter']=_0x241171;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x35aa24=!0x1,toJSON:_0x23afe0=!0x1}={}){const _0x4aefc6=[];for(const _0x2e5fd4 of this['_suggestions']['values']())_0x35aa24&&!_0x2e5fd4['isInContent']||_0x4aefc6['push'](_0x2e5fd4);return _0x23afe0?_0x4aefc6['map'](_0x5d19a2=>_0x5d19a2['toJSON']()):_0x4aefc6;}['getSuggestion'](_0x4c30ef){const _0x2e8890=this['_suggestions']['get'](_0x4c30ef);if(!_0x2e8890)throw new _0x363806('track-changes-suggestion-not-found',this);return _0x2e8890;}['hasSuggestion'](_0x5a4785){return this['_suggestions']['has'](_0x5a4785);}['addSuggestionData'](_0xe62a8){const {authorId:_0x2aa857,id:_0x51ef79,attributes:_0x34271c}=_0xe62a8,[_0x11d5d8,_0x3a8692]=_0xe62a8['type']['split'](':'),_0x56306e=this['_suggestions']['get'](_0x51ef79)||this['_createSuggestion'](_0x11d5d8,_0x3a8692,_0x51ef79,_0x2aa857,_0x34271c);if(this['_addThreadToSuggestion'](_0x56306e),this['_checkSuggestionCorrectness'](_0x56306e,_0x11d5d8,_0x3a8692||null,_0x2aa857),_0x56306e['createdAt']=_0xe62a8['createdAt'],_0x56306e['_isDataLoaded']=!0x0,_0x34271c&&_0x34271c['@external']){const _0x542d60=_0x34271c['@external'],_0x25c954=this['_getExternalAuthor'](_0x542d60['authorName']);_0x56306e['authoredAt']=_0x542d60['createdAt'],_0x56306e['author']=_0x25c954,_0x56306e['isExternal']=!0x0;}else _0x56306e['authoredAt']=_0xe62a8['createdAt'];switch(_0xe62a8['data']&&(_0x56306e['data']=_0xe62a8['data']),_0xe62a8['attributes']&&(_0x56306e['attributes']=_0xe62a8['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x56306e['_saved']=!0x0),this['_suggestionState']['get'](_0x56306e)){case'notReady':this['_suggestionState']['set'](_0x56306e,'dataReady');break;case'markerReady':_0x56306e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x56306e])),this['_refreshSuggestionsChain'](new Set([_0x56306e])),this['_suggestionState']['set'](_0x56306e,'ready'),this['fire']('suggestionLoaded',_0x56306e)):this['_suggestionState']['set'](_0x56306e,'removed');}return _0x56306e;}['acceptSuggestion'](_0x498848){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x76ee82 of _0x498848['getAllAdjacentSuggestions']())_0x76ee82['accept']();});});}['discardSuggestion'](_0x50322a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x279bb5 of _0x50322a['getAllAdjacentSuggestions']())_0x279bb5['discard']();});});}['enableCommand'](_0x268018,_0x57c9cb){const _0x3f3532=this['editor']['commands']['get'](_0x268018);if(!_0x3f3532)throw new _0x363806('track-changes-command-not-found',this,{'commandName':_0x268018});if(this['_enabledCommands']['has'](_0x3f3532))throw new _0x363806('track-changes-enable-command-twice',this,{'commandName':_0x268018});this['_enabledCommands']['add'](_0x3f3532),_0x57c9cb&&_0x3f3532['on']('execute',(_0x40d7cc,_0x398ffb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x398ffb['length']>0x0&&_0x398ffb[_0x398ffb['length']-0x1]&&_0x398ffb[_0x398ffb['length']-0x1]['forceDefaultExecution']?_0x398ffb['pop']():(_0x40d7cc['return']=_0x57c9cb((..._0x40fb6d)=>_0x3f3532['execute'](..._0x40fb6d,{'forceDefaultExecution':!0x0}),..._0x398ffb),_0x40d7cc['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x43aa0c){let _0x3fbbcf,_0x18981d;const _0x3a4b3e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x3fbbcf=_0x43aa0c();}catch(_0x37cecd){_0x18981d=_0x37cecd;}return _0x3a4b3e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x18981d&&_0x363806['rethrowUnexpectedError'](_0x18981d,this),_0x3fbbcf;}['markInsertion'](_0x175915,_0x14fc25=null,_0xa6e722={}){if(_0x175915['isCollapsed'])return null;const _0x2c5450=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xe515,meta:_0x8ae90f}of this['_findSuggestions'](_0x175915,'insertion'))if(_0x8ae90f['isOwn']){if(!_0x8ae90f['isNextTo']){if(_0x8ae90f['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Qt(_0xe515,_0xa6e722))continue;return _0xe515;}if(Qt(_0xe515,_0xa6e722))return _0xe515;this['_breakSuggestionMarker'](_0xe515,_0x175915['start'],_0x175915['end']);break;}if(_0x14fc25==_0xe515['subType']&&Qt(_0xe515,_0xa6e722)){const _0x4042e7=_0xe515['getFirstRange']();return _0x4042e7['start']['isEqual'](_0x175915['end'])?this['_setSuggestionRange'](_0xe515,this['_model']['createRange'](_0x175915['start'],_0x4042e7['end'])):this['_setSuggestionRange'](_0xe515,this['_model']['createRange'](_0x4042e7['start'],_0x175915['end'])),_0xe515;}}const _0x2597cb=_0x161b41(),_0x116e88=_0x2c5450['id'],_0x549863=_0x14fc25?'insertion:'+_0x14fc25:'insertion',_0x50a6b8=this['_setSuggestionData']({'id':_0x2597cb,'type':_0x549863,'createdAt':new Date(),'authorId':_0x116e88,'attributes':_0xa6e722});return this['_addSuggestionMarker'](_0x549863,_0x2597cb,_0x116e88,_0x175915),_0x50a6b8;}['markMultiRangeInsertion'](_0xc97785,_0x1c159f='multi',_0x2af712={}){const _0x256c77=this['editor']['plugins']['get']('Users')['me'],_0x2c0df2=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1c159f,'join');for(const _0x38926c of this['getSuggestions']())if(_0x38926c['author']['id']==_0x256c77['id']&&'insertion'==_0x38926c['type']&&_0x38926c['subType']==_0x1c159f&&Qt(_0x38926c,_0x2af712)&&(_0x2c0df2(_0x38926c['getRanges'](),_0xc97785)||_0x2c0df2(_0xc97785,_0x38926c['getRanges']()))){for(const _0x516bdd of _0xc97785)_0x38926c['addRange'](_0x516bdd);return _0x38926c;}for(const {suggestion:_0x4174e7,meta:_0xa25de8}of this['_findSuggestions'](_0xc97785,'insertion')){if(!_0xa25de8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0xa25de8['containsRangeInObject'])continue;if(!Qt(_0x4174e7,_0x2af712))continue;let _0x295b7c=!0x0;for(const _0x42ae6d of _0x4174e7['getRanges']())for(const _0x557510 of _0xc97785)if(!_0x42ae6d['containsRange'](_0x557510)){_0x295b7c=!0x1;break;}if(_0x295b7c)return _0x4174e7;}const _0x900c0d=_0x161b41(),_0x22e91e=_0x256c77['id'],_0x3dd951='insertion:'+_0x1c159f,_0x20547c=this['_setSuggestionData']({'id':_0x900c0d,'type':_0x3dd951,'createdAt':new Date(),'authorId':_0x22e91e,'attributes':_0x2af712});for(const _0x107629 of _0xc97785)this['_addSuggestionMarker'](_0x3dd951,_0x900c0d,_0x22e91e,_0x107629,u['getMultiRangeId']());return _0x20547c;}['markInlineFormat'](_0x58684d,_0x27421d,_0x33a60b=null,_0x2c40b3={}){if(_0x33a60b=_0x33a60b||Jt(_0x27421d),_0x58684d['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x3365d8=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33a60b,'accept');return this['forceDefaultExecution'](()=>_0x3365d8([_0x58684d],_0x27421d,_0x2c40b3)),null;}const _0x3ad122=this['editor']['plugins']['get']('Users')['me'],_0x2254fc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x353694,meta:_0x53e7ac}of this['_findSuggestions'](_0x58684d,'insertion'))_0x53e7ac['isOwn']&&!_0x53e7ac['isInsideObject']&&_0x2254fc['push'](..._0x353694['getRanges']());}const _0x54cf51=function(_0x2c45d8,_0xab07a2){const _0x550453=[];for(const _0xdb88a6 of _0xab07a2){const _0x1151f9=_0x2c45d8['getIntersection'](_0xdb88a6);_0x1151f9&&_0x550453['push'](_0x1151f9);}return _0x550453;}(_0x58684d,_0x2254fc),_0x3a600b=function(_0x48aca4,_0x31ec26){const _0x29f937=[_0x48aca4];for(const _0x1a4845 of _0x31ec26){let _0x3ea37c=0x0;for(;_0x3ea37c<_0x29f937['length'];){const _0xca7286=_0x29f937[_0x3ea37c]['getDifference'](_0x1a4845);_0x29f937['splice'](_0x3ea37c,0x1,..._0xca7286),_0x3ea37c+=_0xca7286['length'];}}return _0x29f937;}(_0x58684d,_0x2254fc);_0x54cf51['length']&&this['_model']['change'](()=>{for(const _0x3e902c of _0x54cf51){const _0x392cd7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x33a60b,'accept');this['forceDefaultExecution'](()=>_0x392cd7([_0x3e902c],_0x27421d,_0x2c40b3));}});for(const _0x52b440 of _0x3a600b){let _0x57ec24=null,_0x305b60=_0x52b440['start'],_0x4dfec8=_0x52b440['end'];for(const {suggestion:_0x4cdf31,meta:_0x5b2e91}of this['_findSuggestions'](_0x52b440,'formatInline')){if(!_0x5b2e91['isOwn'])continue;if(_0x4cdf31['subType']!=_0x33a60b)continue;if(!Qt(_0x4cdf31,_0x2c40b3))continue;const _0x830d88=_0x4cdf31['getFirstRange']();if(_0x830d88['containsRange'](_0x52b440,!0x0))return null;_0x305b60=_0x305b60['isBefore'](_0x830d88['start'])?_0x305b60:_0x830d88['start'],_0x4dfec8=_0x4dfec8['isAfter'](_0x830d88['end'])?_0x4dfec8:_0x830d88['end'],_0x57ec24?_0x830d88['start']['isBefore'](_0x57ec24['getFirstRange']()['start'])?(_0x57ec24['removeMarkers'](),_0x57ec24=_0x4cdf31):_0x4cdf31['removeMarkers']():_0x57ec24=_0x4cdf31;}const _0x3ac6fc=this['_model']['createRange'](_0x305b60,_0x4dfec8);if(_0x57ec24)this['_setSuggestionRange'](_0x57ec24,_0x3ac6fc);else{const _0x43d11c=_0x161b41(),_0x12e8eb=_0x3ad122['id'];this['_setSuggestionData']({'id':_0x43d11c,'type':'formatInline:'+_0x33a60b,'data':_0x27421d,'createdAt':new Date(),'authorId':_0x12e8eb,'attributes':_0x2c40b3}),this['_addSuggestionMarker']('formatInline:'+_0x33a60b,_0x43d11c,_0x12e8eb,_0x3ac6fc);}}return null;}['markBlockFormat'](_0x1053da,_0x28a22e,_0x2cbaf6=[],_0x527780=null,_0x3028c0={}){_0x28a22e['formatGroupId']||(_0x28a22e['formatGroupId']=_0x28a22e['commandName']),_0x28a22e['multipleBlocks']=_0x1053da['is']('range'),_0x527780=_0x527780||Jt(_0x28a22e);const _0x259fd9=_0x2cbaf6['map'](_0x4abad1=>zt(_0x4abad1,this['_model'])),_0x657015=_0x1053da['is']('range')?_0x1053da:zt(_0x1053da,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5ef631=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527780,'accept');return this['forceDefaultExecution'](()=>_0x5ef631([_0x657015],_0x28a22e,_0x3028c0)),null;}_0x259fd9['push'](_0x657015);let _0x13c7b5=!0x0;for(const _0x39e3c4 of _0x259fd9)if(!this['_rangeIsInLocalUserInsertion'](_0x39e3c4)){_0x13c7b5=!0x1;break;}if(_0x13c7b5&&'always'!==this['_trackFormatChanges']){const _0x5bb860=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x527780,'accept');return this['forceDefaultExecution'](()=>_0x5bb860([_0x657015],_0x28a22e,_0x3028c0)),null;}let _0x45a330=null,_0x438e85=_0x657015['start'],_0x2620ef=_0x657015['end'];for(const {suggestion:_0x2edd94,meta:_0xd905d8}of this['_findSuggestions'](_0x657015,'formatBlock')){if(!_0xd905d8['isOwn'])continue;if(_0xd905d8['isNextTo']||_0xd905d8['containsRangeInObject']||_0xd905d8['isInsideObject'])continue;if(_0x2edd94['data']['formatGroupId']!=_0x28a22e['formatGroupId'])continue;if(!Qt(_0x2edd94,_0x3028c0))continue;const _0x5b8e97=_0x2edd94['getFirstRange']();if(_0x2edd94['subType']==_0x527780){if(_0x5b8e97['containsRange'](_0x657015,!0x0))return null;_0x438e85=_0x438e85['isBefore'](_0x5b8e97['start'])?_0x438e85:_0x5b8e97['start'],_0x2620ef=_0x2620ef['isAfter'](_0x5b8e97['end'])?_0x2620ef:_0x5b8e97['end'],_0x45a330?_0x5b8e97['start']['isBefore'](_0x45a330['getFirstRange']()['start'])?(_0x45a330['removeMarkers'](),_0x45a330=_0x2edd94):_0x2edd94['removeMarkers']():_0x45a330=_0x2edd94;}else{const _0x37ba2f=_0x657015['getIntersection'](_0x5b8e97);this['_cutOutSuggestionMarker'](_0x2edd94,_0x37ba2f);}}const _0x107855=this['editor']['plugins']['get']('Users')['me'],_0x55056d=_0x161b41(),_0x58c7da=_0x107855['id'];if(_0x45a330)return this['_setSuggestionRange'](_0x45a330,this['_model']['createRange'](_0x438e85,_0x2620ef)),_0x45a330;{const _0x1890b9=this['_setSuggestionData']({'id':_0x55056d,'type':'formatBlock:'+_0x527780,'data':_0x28a22e,'createdAt':new Date(),'authorId':_0x58c7da,'attributes':_0x3028c0});return this['_addSuggestionMarker']('formatBlock:'+_0x527780,_0x55056d,_0x58c7da,this['_model']['createRange'](_0x438e85,_0x2620ef)),_0x1890b9;}}['markMultiRangeBlockFormat'](_0x430986,_0x2c7c57,_0x4698c6=[],_0x366bbc=null,_0x21036b={}){_0x2c7c57['formatGroupId']||(_0x2c7c57['formatGroupId']=_0x2c7c57['commandName']);const _0x26be54=_0x430986[0x0];_0x2c7c57['multipleBlocks']=_0x26be54['is']('range'),_0x366bbc=_0x366bbc||Jt(_0x2c7c57);const _0x43d5c1=_0x4698c6['map'](_0x1a1861=>zt(_0x1a1861,this['_model'])),_0x3d6280=_0x26be54['is']('range')?_0x430986:_0x430986['map'](_0x2aef4e=>zt(_0x2aef4e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x35808b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366bbc,'accept');return this['forceDefaultExecution'](()=>_0x35808b(_0x3d6280,_0x2c7c57,_0x21036b)),null;}_0x43d5c1['push'](..._0x3d6280);let _0x577cb7=!0x0;for(const _0x54eb96 of _0x43d5c1)if(!this['_rangeIsInLocalUserInsertion'](_0x54eb96)){_0x577cb7=!0x1;break;}if(_0x577cb7&&'always'!==this['_trackFormatChanges']){const _0x4084f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366bbc,'accept');return this['forceDefaultExecution'](()=>_0x4084f8(_0x3d6280,_0x2c7c57,_0x21036b)),null;}const _0x16d613=this['editor']['plugins']['get']('Users')['me'];for(const _0x12e5c8 of this['getSuggestions']()){if(_0x12e5c8['author']['id']!=_0x16d613['id'])continue;if('formatBlock'!=_0x12e5c8['type']||_0x12e5c8['data']['formatGroupId']!=_0x2c7c57['formatGroupId'])continue;if(!Qt(_0x12e5c8,_0x21036b))continue;const _0x4da6fa=_0x12e5c8['subType']==_0x366bbc;for(let _0x51b718=0x0;_0x51b718<_0x3d6280['length'];_0x51b718++){const _0x5eae8e=_0x3d6280[_0x51b718];for(const _0x53bfc8 of _0x12e5c8['getMarkers']()){const _0x1fd139=_0x53bfc8['getRange']();if(_0x5eae8e['isEqual'](_0x1fd139)){_0x4da6fa?(_0x3d6280['splice'](_0x51b718,0x1),_0x51b718--):_0x12e5c8['removeMarker'](_0x53bfc8['name']);break;}}}}if(0x0==_0x3d6280['length'])return null;const _0x17138e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x366bbc,'join');for(const _0x573ba3 of this['getSuggestions']())if(_0x573ba3['author']['id']==_0x16d613['id']&&'formatBlock'==_0x573ba3['type']&&_0x573ba3['data']['formatGroupId']==_0x2c7c57['formatGroupId']&&_0x573ba3['subType']==_0x366bbc&&Qt(_0x573ba3,_0x21036b)&&(_0x17138e(_0x573ba3['getRanges'](),_0x3d6280)||_0x17138e(_0x3d6280,_0x573ba3['getRanges']()))){for(const _0x219271 of _0x3d6280)_0x573ba3['addRange'](_0x219271);return _0x573ba3;}const _0x2c839c=_0x161b41(),_0x5e25de=_0x16d613['id'],_0x235e4e='formatBlock:'+_0x366bbc,_0x245ae9=this['_setSuggestionData']({'id':_0x2c839c,'type':_0x235e4e,'data':_0x2c7c57,'createdAt':new Date(),'authorId':_0x5e25de,'attributes':_0x21036b});for(const _0x542586 of _0x3d6280)this['_addSuggestionMarker'](_0x235e4e,_0x2c839c,_0x5e25de,_0x542586,u['getMultiRangeId']());return _0x245ae9;}['markDeletion'](_0x3ff561,_0x23c70b=null,_0xcf56b3={}){if(_0x3ff561['isCollapsed'])return null;const _0x1fb243=this['editor']['plugins']['get']('Users')['me'],_0x61db5e=new _0x3131df(_0x3ff561['start'],_0x3ff561['end']);for(const {suggestion:_0x1af144,meta:_0x22f75f}of this['_findSuggestions'](_0x61db5e,'insertion'))if(_0x22f75f['isOwn']&&!_0x22f75f['isNextTo']){if(_0x1af144['isMultiRange']){const _0x857d13=_0x1af144['getRanges']()['filter'](_0x45840e=>'$graveyard'!=_0x45840e['root']['rootName']);_0x857d13['every'](_0x31172b=>_0x61db5e['containsRange'](_0x31172b,!0x0))&&_0x1af144['discard']();if(_0x857d13['some'](_0xd53645=>_0xd53645['containsRange'](_0x61db5e,!0x0))){const _0x308852=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x23c70b,'accept');return this['forceDefaultExecution'](()=>_0x308852([_0x61db5e],null,_0xcf56b3)),null;}}else{const _0x4531f9=_0x61db5e['getIntersection'](_0x1af144['getFirstRange']());null!==_0x4531f9&&_0x1af144['_onDiscard']([_0x4531f9],null,_0xcf56b3);}}if(_0x61db5e['detach'](),_0x61db5e['isCollapsed']||'$graveyard'==_0x61db5e['root']['rootName'])return null;let _0x9edf10=null,_0x3627f8=_0x61db5e['start'],_0x1352ae=_0x61db5e['end'];const _0x202314=this['_findSuggestions'](_0x61db5e,'deletion');for(const {suggestion:_0x24dcda,meta:_0x3c2b8a}of _0x202314){const _0x272a72=this['_model']['createRange'](_0x3627f8,_0x1352ae);if(_0x3c2b8a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3c2b8a['containsRangeInObject']&&!_0x3c2b8a['isInsideObject'])){if(_0x24dcda['isMultiRange']){if(!Qt(_0x24dcda,_0xcf56b3))continue;let _0x378275=!0x0;for(const _0x50288e of _0x24dcda['getRanges']()){if(_0x50288e['containsRange'](_0x272a72,!0x0))return _0x24dcda;_0x272a72['containsRange'](_0x50288e)||(_0x378275=!0x1);}_0x378275&&_0x24dcda['discard']();}else{const _0x193eca=_0x24dcda['getFirstRange']();if(_0x193eca['containsRange'](_0x272a72,!0x0))return _0x24dcda;if(!Qt(_0x24dcda,_0xcf56b3)){_0x272a72['containsRange'](_0x193eca)?_0x24dcda['removeMarkers']():_0x193eca['containsPosition'](_0x3627f8)?_0x3627f8=_0x193eca['end']:_0x193eca['containsPosition'](_0x1352ae)&&(_0x1352ae=_0x193eca['start']);continue;}_0x3627f8=_0x3627f8['isBefore'](_0x193eca['start'])?_0x3627f8:_0x193eca['start'],_0x1352ae=_0x1352ae['isAfter'](_0x193eca['end'])?_0x1352ae:_0x193eca['end'],_0xcf56b3=Object['assign']({},_0x24dcda['attributes']),_0x9edf10?_0x193eca['start']['isBefore'](_0x9edf10['getFirstRange']()['start'])?(_0x9edf10['removeMarkers'](),_0x9edf10=_0x24dcda):_0x24dcda['removeMarkers']():_0x9edf10=_0x24dcda;}}}if(_0x9edf10)return this['_setSuggestionRange'](_0x9edf10,this['_model']['createRange'](_0x3627f8,_0x1352ae)),_0x9edf10;{const _0x53c23d=_0x161b41(),_0x30ba54=this['_model']['createRange'](_0x3627f8,_0x1352ae),_0x1fb71c=_0x1fb243['id'],_0x1b7141=_0x23c70b?'deletion:'+_0x23c70b:'deletion',_0x30fc02=this['_setSuggestionData']({'id':_0x53c23d,'type':_0x1b7141,'createdAt':new Date(),'authorId':_0x1fb71c,'attributes':_0xcf56b3});return this['_addSuggestionMarker'](_0x1b7141,_0x53c23d,_0x1fb71c,_0x30ba54),_0x30fc02;}}['markMultiRangeDeletion'](_0x28057e,_0x538901='multi',_0x27c4d6={}){const _0x50ba88=this['editor']['plugins']['get']('Users')['me'],_0x80bad1=_0x28057e['map'](_0x33ce79=>new _0x3131df(_0x33ce79['start'],_0x33ce79['end'])),_0x2d156f=new Set();for(const {suggestion:_0x739f4b,meta:_0x114334}of this['_findSuggestions'](_0x80bad1,'insertion'))_0x114334['isOwn']&&!_0x114334['isNextTo']&&_0x2d156f['add'](_0x739f4b);for(const _0x2afd40 of _0x2d156f)if(_0x2afd40['isMultiRange']){const _0x3924c0=_0x2afd40['getRanges']();(!_0x2afd40['attributes']||!_0x2afd40['attributes']['skipNestingCheck'])&&(_0x3924c0['every'](_0x21101e=>_0x80bad1['some'](_0x2a2919=>_0x2a2919['containsRange'](_0x21101e,!0x0)))&&_0x2afd40['discard']());if(_0x80bad1['every'](_0x4ece1b=>_0x3924c0['some'](_0x28644a=>_0x28644a['containsRange'](_0x4ece1b,!0x0)))){const _0x494cc2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538901,'accept');return this['forceDefaultExecution'](()=>_0x494cc2(_0x28057e,null,_0x27c4d6)),null;}}else{const _0x1bcbbd=_0x2afd40['getFirstRange']();_0x80bad1['some'](_0x1ea531=>_0x1ea531['containsRange'](_0x1bcbbd,!0x0))&&_0x2afd40['discard']();if(_0x80bad1['every'](_0x2f5ebe=>_0x1bcbbd['containsRange'](_0x2f5ebe,!0x0))){const _0x7df3ef=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538901,'accept');return this['forceDefaultExecution'](()=>_0x7df3ef(_0x80bad1,null,_0x27c4d6)),null;}}const _0x5d87af=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x538901,'join');let _0x443e63=null;for(const _0x924a2e of this['getSuggestions']())if(_0x924a2e['author']['id']==_0x50ba88['id']&&_0x924a2e['isInContent']&&'deletion'==_0x924a2e['type']&&_0x924a2e['subType']==_0x538901&&Qt(_0x924a2e,_0x27c4d6)&&(_0x5d87af(_0x924a2e['getRanges'](),_0x80bad1)||_0x5d87af(_0x80bad1,_0x924a2e['getRanges']()))){if(_0x443e63){if(_0x924a2e['commentThread']&&_0x924a2e['commentThread']['length'])continue;for(const _0x191980 of _0x924a2e['getRanges']())_0x443e63['isIntersectingWithRange'](_0x191980)||_0x443e63['addRange'](_0x191980);_0x924a2e['removeMarkers']();}else{_0x443e63=_0x924a2e;for(const _0x319c9d of _0x80bad1)_0x924a2e['isIntersectingWithRange'](_0x319c9d)||_0x924a2e['addRange'](_0x319c9d);}}if(_0x443e63)return _0x443e63;_0x2d156f['clear']();for(const {suggestion:_0x1d5917,meta:_0xe01096}of this['_findSuggestions'](_0x80bad1,'deletion'))_0xe01096['isOwn']&&(this['_mergeNestedSuggestions']||!_0xe01096['containsRangeInObject']&&!_0xe01096['isInsideObject'])&&Qt(_0x1d5917,_0x27c4d6)&&_0x2d156f['add'](_0x1d5917);for(const _0xcb8520 of _0x2d156f){const _0x281c20=_0xcb8520['getRanges']();if(!_0x27c4d6||!_0x27c4d6['skipNestingCheck']){if(_0x80bad1['every'](_0x14597e=>_0x281c20['some'](_0x2944d5=>_0x2944d5['containsRange'](_0x14597e,!0x0))))return _0xcb8520;}(!_0xcb8520['attributes']||!_0xcb8520['attributes']['skipNestingCheck'])&&(_0x281c20['every'](_0xd6351=>_0x80bad1['some'](_0x463c69=>_0x463c69['containsRange'](_0xd6351,!0x0)))&&_0xcb8520['discard']());}const _0x33f88d=_0x161b41(),_0x5cbc80=_0x50ba88['id'],_0x2e24e6='deletion:'+_0x538901,_0x418742=this['_setSuggestionData']({'id':_0x33f88d,'type':_0x2e24e6,'createdAt':new Date(),'authorId':_0x5cbc80,'attributes':_0x27c4d6});for(const _0x5ada81 of _0x80bad1)_0x5ada81['detach'](),_0x5ada81['isCollapsed']||'$graveyard'==_0x5ada81['root']['rootName']||this['_addSuggestionMarker'](_0x2e24e6,_0x33f88d,_0x5cbc80,_0x5ada81,u['getMultiRangeId']());return _0x418742;}['markAttributeChange'](_0x2aa5e6,_0x57c7f9,_0x394f00,_0x388c9b,_0xd0454f){if(_0x2aa5e6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5d51f4=this['editor']['plugins']['get']('Users')['me']['id'],_0x2b9cb1=Array['from'](this['_suggestions']['values']())['filter'](_0x1657da=>'attribute'==_0x1657da['type']&&_0x1657da['data']['key']==_0x57c7f9&&_0x1657da['isIntersectingWithRange'](_0x2aa5e6));if('default'===this['_trackFormatChanges']){const _0xdb4822=this['_findSuggestions'](_0x2aa5e6,'insertion')['filter'](({meta:_0x459c70})=>_0x459c70['isOwn']&&!_0x459c70['isInsideObject']&&!_0x459c70['isNextTo'])['map'](({suggestion:_0x443376})=>_0x443376);_0x2b9cb1['unshift'](..._0xdb4822);}const _0x4e7374=new Map([[_0x2aa5e6,_0x394f00]]);for(const _0x3f7c9a of _0x2b9cb1){const _0x25a1ac='attribute'==_0x3f7c9a['type']?_0x3f7c9a['data']['oldValue']:void 0x0,_0x521300=_0x3f7c9a['getFirstRange'](),_0x1b4e52=Array['from'](_0x4e7374['keys']())['find'](_0x5b8c6c=>_0x5b8c6c['isIntersecting'](_0x521300));if(!_0x1b4e52)continue;const _0x193a85=_0x1b4e52['getDifference'](_0x521300);this['_isBlockAttribute'](_0x57c7f9)&&'insertion'==_0x3f7c9a['type']&&0x0!=_0x193a85['length']||(_0x4e7374['delete'](_0x1b4e52),_0x193a85['forEach'](_0x5c022b=>{_0x4e7374['set'](_0x5c022b,_0x394f00);}),'insertion'!=_0x3f7c9a['type']&&_0x25a1ac!=_0x388c9b&&_0x4e7374['set'](_0x1b4e52['getIntersection'](_0x521300),_0x25a1ac));}const _0x3c255b=[];for(const [_0x1fa6a2,_0x35f2a8]of _0x4e7374){const _0x339fd9=_0x161b41(),_0x4fa0d8={'key':_0x57c7f9,'oldValue':_0x35f2a8,'newValue':_0x388c9b};_0x57c7f9['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':_0x57c7f9});const _0x2d47df=('attribute:'+(_0x57c7f9+'|'+Jt({'newValue':_0x388c9b})))['substring'](0x0,0x3c),_0x1ccc58=this['_setSuggestionData']({'id':_0x339fd9,'type':_0x2d47df,'data':_0x4fa0d8,'createdAt':new Date(),'authorId':_0x5d51f4,'attributes':_0xd0454f});_0x3c255b['push'](_0x1ccc58),this['_addSuggestionMarker'](_0x2d47df,_0x339fd9,_0x5d51f4,_0x1fa6a2);}return _0x3c255b;}['enableDefaultAttributesIntegration'](_0x1500d2){this['enableCommand'](_0x1500d2,(_0x2780a2,..._0x4daf2e)=>{this['_recordAttributeChanges'](()=>{_0x2780a2(..._0x4daf2e);});});}['registerBlockAttribute'](_0x12f7b9){this['_blockAttributeKeys']['add'](_0x12f7b9);}['registerInlineAttribute'](_0x4860d5){this['_inlineAttributeKeys']['add'](_0x4860d5);}['_getAttributeKey'](_0x45d210){return'attribute'==_0x45d210['type']?_0x45d210['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x53495f,_0x219cf2){const _0x10bb1d=_0x53495f['getFirstMarker']();this['_model']['change'](_0x4c62ff=>{_0x4c62ff['updateMarker'](_0x10bb1d,{'range':_0x219cf2});});}['_addThreadToSuggestion'](_0x18808f){const _0x335c65=_0x18808f['id'],_0x3ad7da=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x335c65)||this['_commentsRepository']['addCommentThread']({'channelId':_0x3ad7da,'threadId':_0x335c65,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4fb7a9=this['_commentsRepository']['getCommentThread'](_0x335c65);_0x4fb7a9['unbind']('isRemovable'),_0x4fb7a9['isRemovable']=!0x1,_0x18808f['commentThread']=_0x4fb7a9;}['_checkSuggestionCorrectness'](_0x24b3a1,_0x284a0e,_0x10f0e4,_0x4e1e92){if(_0x24b3a1['type']!=_0x284a0e||_0x24b3a1['subType']!=_0x10f0e4||_0x24b3a1['creator']['id']!=_0x4e1e92)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x363806('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x56a70c,_0x3de4a9){const _0x1043ec=_0x56a70c['getFirstRange']();if(_0x3de4a9['isEqual'](_0x1043ec))_0x56a70c['removeMarkers']();else{if(_0x1043ec['containsRange'](_0x3de4a9)){const _0x16184b=this['_model']['createPositionAt'](_0x3de4a9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56a70c,this['_model']['createRange'](_0x1043ec['start'],_0x16184b));const _0x299498=_0x161b41(),_0x208c01=_0x56a70c['creator']['id'],_0x1a3b9e=_0x56a70c['type']+':'+_0x56a70c['subType'];this['_setSuggestionData']({'id':_0x299498,'type':_0x1a3b9e,'createdAt':new Date(),'authorId':_0x208c01,'data':_0x56a70c['data'],'attributes':_0x56a70c['attributes']});const _0x13ed52=this['_model']['createPositionAt'](_0x3de4a9['end']['parent'],'after'),_0x3ac880=this['_model']['createRange'](_0x13ed52,_0x1043ec['end']);this['_addSuggestionMarker'](_0x1a3b9e,_0x299498,_0x208c01,_0x3ac880);}else{if(_0x1043ec['containsPosition'](_0x3de4a9['start'])){const _0x8daa77=this['_model']['createPositionAt'](_0x3de4a9['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x56a70c,this['_model']['createRange'](_0x1043ec['start'],_0x8daa77));}else{const _0x48a061=this['_model']['createPositionAt'](_0x3de4a9['end']['parent'],'after');this['_setSuggestionRange'](_0x56a70c,this['_model']['createRange'](_0x48a061,_0x1043ec['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x10b694){for(const {suggestion:_0x4d1e4e,meta:_0x26bfe7}of this['_findSuggestions'](_0x10b694,'insertion')){if(!_0x26bfe7['isOwn'])continue;const _0x594822=_0x4d1e4e['getRanges']();for(const _0x55bbfd of _0x594822)if(!_0x10b694['getDifference'](_0x55bbfd)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x5241c2){const _0x1c641c=this['editor']['plugins']['get']('Users')['getUser'](_0x5241c2);if(!_0x1c641c)throw new _0x363806('track-changes-user-not-found',this);return _0x1c641c;}['_getExternalAuthor'](_0x205311){const _0xa3dd6=this['editor']['plugins']['get']('Users'),_0x31182b=_0xc40bc9('external:'+_0x205311),_0x5db1eb=_0xa3dd6['getUser'](_0x31182b);return _0x5db1eb||_0xa3dd6['addUser']({'id':_0x31182b,'name':_0x205311});}['_createSuggestion'](_0x539d3f,_0x2301a5,_0x4a0ca4,_0x33e193,_0x374936){const _0x3a36d5=this['_getAuthorFromId'](_0x33e193),_0x1ebddc=this['_suggestionFactory']['buildSuggestion'](_0x539d3f,_0x2301a5,_0x4a0ca4,_0x3a36d5,_0x374936,_0x471217=>{this['_updateSuggestionData'](_0x4a0ca4,{'attributes':_0x471217});const _0x5fc7f9=this['getSuggestion'](_0x4a0ca4);this['_joinWithAdjacentSuggestions'](new Set([_0x5fc7f9])),this['_refreshSuggestionsChain'](new Set([_0x5fc7f9]));});return this['listenTo'](_0x1ebddc,'accept',()=>{this['_updateSuggestionData'](_0x4a0ca4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1ebddc,'discard',()=>{this['_updateSuggestionData'](_0x4a0ca4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4a0ca4,_0x1ebddc),this['_suggestionState']['set'](_0x1ebddc,'notReady'),_0x1ebddc;}['_splitMarkerName'](_0xd80bed){const _0x209d3d=_0xd80bed['split'](':');return{'group':_0x209d3d[0x0],'type':_0x209d3d[0x1],'subType':_0x209d3d['length']>=0x5?_0x209d3d[0x2]:null,'id':_0x209d3d['length']<0x5?_0x209d3d[0x2]:_0x209d3d[0x3],'authorId':_0x209d3d['length']<0x5?_0x209d3d[0x3]:_0x209d3d[0x4],'markerCount':0x6==_0x209d3d['length']?_0x209d3d[0x5]:null};}['_breakSuggestionMarker'](_0x1ee4c0,_0x1c79a8,_0x4384b4){const _0xc25761=_0x1ee4c0['getFirstRange'](),_0xb0d88d=_0xc25761['start'],_0x4d77fb=_0xc25761['end'];this['_setSuggestionRange'](_0x1ee4c0,this['_model']['createRange'](_0xb0d88d,_0x1c79a8));const _0x43810c=_0x161b41(),_0x52b8b6=_0x1ee4c0['creator']['id'],_0x48d094=_0x1ee4c0['type']+(_0x1ee4c0['subType']?':'+_0x1ee4c0['subType']:'');this['_setSuggestionData']({'id':_0x43810c,'type':_0x48d094,'createdAt':new Date(),'authorId':_0x52b8b6,'originalSuggestionId':_0x1ee4c0['id'],'attributes':_0x1ee4c0['attributes'],'data':_0x1ee4c0['data']});const _0x1cd6be=this['_getAttributeKey'](_0x1ee4c0);('formatBlock'==_0x1ee4c0['type']||_0x1cd6be&&this['_isBlockAttribute'](_0x1cd6be))&&(_0x4384b4=this['_model']['createPositionBefore'](_0x4384b4['parent'])),this['_addSuggestionMarker'](_0x48d094,_0x43810c,_0x52b8b6,this['_model']['createRange'](_0x4384b4,_0x4d77fb));}['_findSuggestions'](_0x279e6a,_0x47001b=null){const _0x431e90=[],_0x285396=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x279e6a)||(_0x279e6a=[_0x279e6a]);for(const _0xc899a3 of this['getSuggestions']()){if(!_0xc899a3['isInContent'])continue;if(_0x47001b&&_0xc899a3['type']!=_0x47001b)continue;let _0x3492b2=!0x1;for(const _0x534f47 of _0xc899a3['getRanges']()){for(const _0x1d3b3e of _0x279e6a){const _0x327a1c=_0x1d3b3e['start']['isEqual'](_0x534f47['end'])||_0x1d3b3e['end']['isEqual'](_0x534f47['start']);if(_0x327a1c||_0x1d3b3e['getIntersection'](_0x534f47)){const _0x4a30a2=_0x1d3b3e['containsRange'](_0x534f47)&&Gt(this['_model']['schema'],_0x534f47['start'],_0x1d3b3e),_0x50f6c2=_0x534f47['containsRange'](_0x1d3b3e)&&Gt(this['_model']['schema'],_0x1d3b3e['start'],_0x534f47);_0x431e90['push']({'suggestion':_0xc899a3,'meta':{'isOwn':_0x285396==_0xc899a3['author'],'isNextTo':_0x327a1c,'isInsideObject':_0x4a30a2,'containsRangeInObject':_0x50f6c2}}),_0x3492b2=!0x0;break;}}if(_0x3492b2)break;}}return _0x431e90;}['_addSuggestionMarker'](_0x9a57c8,_0x5d6443,_0x2e01ad,_0x5bf17d,_0x2a7008){this['_model']['change'](_0x4afb38=>{let _0x3ff49b='suggestion:'+_0x9a57c8+':'+_0x5d6443+':'+_0x2e01ad;_0x2a7008&&(_0x3ff49b=_0x3ff49b+':'+_0x2a7008),_0x4afb38['addMarker'](_0x3ff49b,{'range':_0x5bf17d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x998602){const _0x2af626=_0x998602['previous'],_0x4bbb42=_0x998602['next'];_0x998602['previous']=null,_0x998602['next']=null,null!=_0x2af626&&_0x2af626['next']==_0x998602&&(_0x2af626['next']=_0x4bbb42),null!=_0x4bbb42&&_0x4bbb42['previous']==_0x998602&&(_0x4bbb42['previous']=_0x2af626),'ready'==this['_suggestionState']['get'](_0x998602)&&(this['_suggestionState']['set'](_0x998602,'removed'),this['fire']('suggestionUnloaded',_0x998602,_0x2af626,_0x4bbb42));}['_setSuggestionData'](_0x1cb670){const _0x29a262=_0x1cb670['id'],_0x3b6259=this['addSuggestionData'](_0x1cb670);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x148563=this['editor']['plugins']['get']('PendingActions'),_0x41bc58=_0x3b6259['hasComments'],_0x430d56=_0x3b6259['subType']?_0x3b6259['type']+':'+_0x3b6259['subType']:_0x3b6259['type'],_0x108feb=this['editor']['locale'],_0x5cc19a=_0x148563['add'](o(_0x108feb,'PENDING_ACTION_SUGGESTION')),_0x21bab3={'id':_0x29a262,'type':_0x430d56,'hasComments':_0x41bc58,'data':_0x1cb670['data']||null,'originalSuggestionId':_0x1cb670['originalSuggestionId']||null,'attributes':_0x3b6259['attributes']};this['_adapter']['addSuggestion'](_0x21bab3)['then'](_0x41d2d9=>{_0x3b6259['_saved']=!0x0,_0x148563['remove'](_0x5cc19a),_0x41d2d9&&_0x41d2d9['createdAt']&&(this['_suggestions']['get'](_0x29a262)['createdAt']=_0x41d2d9['createdAt']);})['catch'](_0x5d70f4=>{throw _0x1249e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3b6259['discard']();}),_0x3b6259['stopListening'](),this['_suggestions']['delete'](_0x3b6259['id']),this['_suggestionState']['delete'](_0x3b6259),_0x5d70f4;});}return _0x3b6259;}['_isBlockAttribute'](_0x2371e2){return this['_blockAttributeKeys']['has'](_0x2371e2);}['_updateSuggestionData'](_0x15c14d,_0x24d763){const _0x25d996=this['editor']['plugins']['get']('PendingActions'),_0x165661=this['getSuggestion'](_0x15c14d);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x165661['_saved']){const _0x5dd855=_0x25d996['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x15c14d,_0x24d763)['then'](()=>{_0x25d996['remove'](_0x5dd855);});}else _0x165661['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x15c14d,_0x24d763);});}}['_getSuggestionData'](_0x2de360){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x363806('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2de360);}['_handleNewSuggestionMarker'](_0x223e7d){const {id:_0x40ab20,type:_0x2ebfd2,subType:_0x4c254f,authorId:_0x679b04}=this['_splitMarkerName'](_0x223e7d),_0x40ea20=this['_suggestions']['get'](_0x40ab20)||this['_createSuggestion'](_0x2ebfd2,_0x4c254f,_0x40ab20,_0x679b04,{});switch(this['_checkSuggestionCorrectness'](_0x40ea20,_0x2ebfd2,_0x4c254f,_0x679b04),this['_suggestionState']['get'](_0x40ea20)){case'notReady':this['_getSuggestionData'](_0x40ab20)['then'](_0x1efb63=>{let _0x4f9356=Promise['resolve']();_0x1efb63['hasComments']&&(_0x4f9356=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x40ab20})),_0x4f9356['then'](()=>{this['addSuggestionData'](_0x1efb63)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x40ea20,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x40ab20,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x40ea20,'ready'),this['fire']('suggestionLoaded',_0x40ea20);break;case'ready':this['fire']('suggestionChanged',_0x40ea20);}return _0x40ea20['addMarkerName'](_0x223e7d),_0x40ea20;}['_refreshSuggestionsChain'](_0x216af5){const _0x39d9f6=Array['from'](_0x216af5),_0x49db70=_0x39d9f6['filter'](_0x434058=>'attribute'==_0x434058['type']);this['_refreshAttributeSuggestionsChain'](_0x49db70);const _0x56a2a5=_0x39d9f6['filter'](_0xbedcc=>!_0xbedcc['isMultiRange']&&'attribute'!=_0xbedcc['type']),_0x51dcf9=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x334de0=>!_0x334de0['isMultiRange']&&'attribute'!=_0x334de0['type']),_0x27b55c=_0x51dcf9['filter'](_0x200c0b=>!_0x216af5['has'](_0x200c0b)),_0xa54551=new Map(_0x51dcf9['map'](_0xe273c9=>[_0xe273c9,this['_suggestionFactory']['getSuggestionCallback'](_0xe273c9['type'],_0xe273c9['subType'],'chain')])),_0x5c09c9=new Map(_0x51dcf9['map'](_0x58e36e=>[_0x58e36e,_0x58e36e['getFirstRange']()])),_0x4cd92a=new Set(),_0x4b21dd=new Set();for(let _0x50b997=0x0;_0x50b997<_0x56a2a5['length'];_0x50b997++)_0x175d9b(_0x56a2a5[_0x50b997],_0x56a2a5,_0x50b997+0x1);for(let _0x11aaf4=0x0;_0x11aaf4<_0x56a2a5['length'];_0x11aaf4++)_0x175d9b(_0x56a2a5[_0x11aaf4],_0x27b55c,0x0);const _0x502e1a=new Set();for(let _0x3783b3=0x0;_0x3783b3<_0x56a2a5['length'];_0x3783b3++){const _0x4f0887=_0x56a2a5[_0x3783b3];!_0x4b21dd['has'](_0x4f0887)&&_0x4f0887['previous']&&(_0x502e1a['add'](_0x4f0887['previous']),_0x4f0887['previous']['next']===_0x4f0887&&(_0x4f0887['previous']['next']=null),_0x4f0887['previous']=null),!_0x4cd92a['has'](_0x4f0887)&&_0x4f0887['next']&&(_0x502e1a['add'](_0x4f0887['next']),_0x4f0887['next']['previous']===_0x4f0887&&(_0x4f0887['next']['previous']=null),_0x4f0887['next']=null);}function _0x175d9b(_0x500ff7,_0x3b4d4e,_0xc4e626){for(let _0x22c92d=_0xc4e626;_0x22c92d<_0x3b4d4e['length'];_0x22c92d++){const _0x29536c=_0x35ccc8(_0x500ff7,_0x3b4d4e[_0x22c92d]);_0x29536c&&(_0x29536c[0x0]['next']=_0x29536c[0x1],_0x29536c[0x1]['previous']=_0x29536c[0x0],_0x4cd92a['add'](_0x29536c[0x0]),_0x4b21dd['add'](_0x29536c[0x1]));}}function _0x35ccc8(_0xbefeee,_0x5d873d){if(_0xbefeee['author']['id']!==_0x5d873d['author']['id'])return null;const _0x57ec0d=_0xa54551['get'](_0xbefeee)(_0xbefeee,_0x5d873d,_0x5c09c9['get'](_0xbefeee),_0x5c09c9['get'](_0x5d873d));if(!_0x57ec0d)return null;return _0xa54551['get'](_0x5d873d)(_0xbefeee,_0x5d873d,_0x5c09c9['get'](_0xbefeee),_0x5c09c9['get'](_0x5d873d))?_0x57ec0d[0x1]['commentThread']&&_0x57ec0d[0x1]['commentThread']['length']?null:_0x57ec0d:null;}_0x502e1a['size']&&this['_refreshSuggestionsChain'](_0x502e1a);}['_refreshAttributeSuggestionsChain'](_0x4f7928){if(0x0==_0x4f7928['length'])return;const _0x463545=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x386c2e=>'attribute'==_0x386c2e['type']&&_0x386c2e['_isDataLoaded']),_0x2669ae=[],_0x3ae5b1=new Map();for(const _0x139f22 of _0x463545){const _0x174dec=_0xc40bc9(_0x139f22['attributes']);_0x3ae5b1['has'](_0x174dec)||(_0x3ae5b1['set'](_0x174dec,_0x2669ae['length']),_0x2669ae['push']([]));const _0x598725=_0x3ae5b1['get'](_0x174dec);_0x2669ae[_0x598725]['push'](_0x139f22);}!(function(){_0x2669ae['sort']((_0x20d9b3,_0x2f4cd8)=>{const _0x34a000=_0x20d9b3[0x0]['createdAt'],_0xbc623e=_0x2f4cd8[0x0]['createdAt'];return _0x34a000==_0xbc623e?_0x20d9b3[0x0]['attributes']['groupId']<_0x2f4cd8[0x0]['attributes']['groupId']?-0x1:0x1:_0x34a000<_0xbc623e?-0x1:0x1;});for(const _0x3e4672 of _0x2669ae)_0x3e4672['sort']((_0x1ae7a7,_0x35d81d)=>_0x1ae7a7['id']<_0x35d81d['id']?-0x1:0x1);}());for(let _0x4764bc=0x0;_0x4764bc<_0x2669ae['length'];_0x4764bc++){if(0x0==_0x2669ae[_0x4764bc]['length'])continue;const _0x197f85=[];for(let _0x4dc92e=_0x4764bc+0x1;_0x4dc92e<_0x2669ae['length'];_0x4dc92e++)0x0!=_0x2669ae[_0x4dc92e]['length']&&_0x28581b(_0x2669ae[_0x4764bc],_0x2669ae[_0x4dc92e])&&_0x197f85['push'](_0x4dc92e);for(const _0x11e4fb of _0x197f85)_0x2669ae[_0x4764bc]=_0x2669ae[_0x4764bc]['concat'](_0x2669ae[_0x11e4fb]),_0x2669ae[_0x11e4fb]=[];}for(const _0x1a1507 of _0x2669ae)for(let _0x43e58d=0x0;_0x43e58d<_0x1a1507['length'];_0x43e58d++){const _0x17d4b0=_0x1a1507[_0x43e58d+0x1]||null;_0x1a1507[_0x43e58d]['next']!==_0x17d4b0&&(_0x1a1507[_0x43e58d]['next']=_0x17d4b0);}for(const _0x3b6dbf of _0x2669ae)for(let _0x5bf18d=0x0;_0x5bf18d<_0x3b6dbf['length'];_0x5bf18d++){const _0x466d21=_0x3b6dbf[_0x5bf18d-0x1]||null;_0x3b6dbf[_0x5bf18d]['previous']!==_0x466d21&&(_0x3b6dbf[_0x5bf18d]['previous']=_0x466d21);}function _0x28581b(_0x5e1ef0,_0x23e7c8){if(_0x5e1ef0[0x0]['attributes']['groupId']!==_0x23e7c8[0x0]['attributes']['groupId']&&_0x5e1ef0[0x0]['author']!==_0x23e7c8[0x0]['author'])return!0x1;if(!function(_0x172035,_0x641a65){if(!_0x172035['hasComments']&&!_0x641a65['hasComments'])return!0x0;if(_0x172035['hasComments']&&_0x641a65['hasComments'])return!0x1;if(_0x172035['hasComments']&&_0x641a65['createdAt']<_0x172035['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x641a65['hasComments']&&_0x172035['createdAt']<_0x641a65['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5e1ef0[0x0],_0x23e7c8[0x0]))return!0x1;const _0x156d68=Vt(_0x5e1ef0[0x0]['attributes'],'groupId'),_0x3d0716=Vt(_0x23e7c8[0x0]['attributes'],'groupId');if(!_0x57f90c(_0x156d68,_0x3d0716))return!0x1;return!!_0x5e1ef0['every'](_0x13066e=>_0x23e7c8['some'](_0x1cbd7c=>_0x13066e['getFirstRange']()['isEqual'](_0x1cbd7c['getFirstRange']())))&&_0x23e7c8['every'](_0xbea324=>_0x5e1ef0['some'](_0x2fed6d=>_0xbea324['getFirstRange']()['isEqual'](_0x2fed6d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x388136){const _0x456ede=Array['from'](_0x388136),_0x73c864=this['getSuggestions']({'skipNotAttached':!0x0}),_0x22e55f=_0x73c864['filter'](_0x123c2e=>!_0x388136['has'](_0x123c2e)),_0x4891d6=new Map(_0x456ede['map'](_0x51cf48=>[_0x51cf48,this['_suggestionFactory']['getSuggestionCallback'](_0x51cf48['type'],_0x51cf48['subType'],'join')])),_0x59d952=new Map(_0x73c864['map'](_0x4c7723=>[_0x4c7723,_0x4c7723['getRanges']()]));for(let _0x131bf9=0x0;_0x131bf9<_0x456ede['length'];_0x131bf9++){if(_0xac9287(this,_0x456ede[_0x131bf9],_0x456ede,_0x131bf9+0x1))return!0x0;}for(let _0x4bc37e=0x0;_0x4bc37e<_0x456ede['length'];_0x4bc37e++){if(_0xac9287(this,_0x456ede[_0x4bc37e],_0x22e55f,0x0))return!0x0;}return!0x1;function _0xac9287(_0x3c4ca4,_0x34c024,_0x11e57c,_0x4a20db){for(let _0x2c3aeb=_0x4a20db;_0x2c3aeb<_0x11e57c['length'];_0x2c3aeb++){const _0x51b0aa=_0x11e57c[_0x2c3aeb];if(_0x51b0aa['type']!==_0x34c024['type']||_0x51b0aa['author']['id']!==_0x34c024['author']['id']||_0x51b0aa['subType']!==_0x34c024['subType'])continue;if(!Wt(_0x34c024,_0x51b0aa))continue;if('attribute'==_0x34c024['type']&&_0x34c024['data']['oldValue']!=_0x51b0aa['data']['oldValue'])continue;if('attribute'==_0x34c024['type']&&_0x3c4ca4['_isBlockAttribute'](_0x34c024['data']['key']))continue;if('formatBlock'==_0x34c024['type']){const _0x3876a1=_0x3c4ca4['editor']['model'],_0x4b98b7=_0x34c024['getContainedElement']();if(_0x4b98b7&&(_0x3876a1['schema']['isObject'](_0x4b98b7)||_0x3876a1['schema']['isLimit'](_0x4b98b7)))continue;}const _0x5b4d1b=_0x4891d6['get'](_0x34c024),_0x5e5dab=_0x59d952['get'](_0x34c024),_0x246698=_0x59d952['get'](_0x51b0aa),_0x26a2f5=_0x34c024['commentThread']&&_0x34c024['commentThread']['length'],_0x5a19e9=_0x51b0aa['commentThread']&&_0x51b0aa['commentThread']['length'];if(!_0x26a2f5&&_0x5b4d1b(_0x246698,_0x5e5dab))return _0x3c4ca4['_joinSuggestions'](_0x51b0aa,_0x34c024),_0x59d952['delete'](_0x34c024),!0x0;if(!_0x5a19e9&&_0x5b4d1b(_0x5e5dab,_0x246698))return _0x3c4ca4['_joinSuggestions'](_0x34c024,_0x51b0aa),_0x59d952['delete'](_0x51b0aa),!0x0;}return!0x1;}}['_joinSuggestions'](_0x463ccc,_0x541df3){if(_0x463ccc['isMultiRange']){for(const _0x2146b9 of _0x541df3['getRanges']())_0x463ccc['addRange'](_0x2146b9);}else{const _0x321f27=_0x541df3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x463ccc,this['_model']['createRange'](_0x463ccc['getFirstRange']()['start'],_0x321f27));}_0x541df3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x536088,_0x4a330c,_0x2d027f){const _0x3c8bcc=_0x536088['startsWith']('format')||_0x536088['startsWith']('attribute')?'FORMATTING':_0x536088['toUpperCase']();return o(this['editor']['locale'],_0x4a330c+'_'+_0x3c8bcc+'_SUGGESTION_ANNOUNCEMENT',_0x2d027f);}['_initAriaMarkerChangeAnnouncements'](){const _0x59045c=this['editor'];if(!_0x59045c['ui'])return;const {ariaLiveAnnouncer:_0x25b1dd}=_0x59045c['ui'];_0x3a64cd(this['_model'],({left:_0x2eb9e7,entered:_0x3583d3})=>{for(const _0x27fb7c of _0x2eb9e7){const {group:_0x4226ec,type:_0x408489}=this['_splitMarkerName'](_0x27fb7c['name']);if('suggestion'===_0x4226ec){_0x25b1dd['announce'](this['_getMarkerAnnouncementText'](_0x408489,'LEAVE'));break;}}for(const _0x10d6c5 of _0x3583d3){const {group:_0x79d45f,type:_0x3dda44}=this['_splitMarkerName'](_0x10d6c5['name']);if('suggestion'===_0x79d45f){_0x25b1dd['announce'](this['_getMarkerAnnouncementText'](_0x3dda44,'ENTER',_0x210a24(_0x959940)));break;}}});}['_processAttributeChanges'](_0x6bc5be){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1baf17=this['editor'],_0x4df6e7=_0x1baf17['model']['document']['differ']['getChanges']();if(0x0==_0x4df6e7['length'])return!0x1;const _0xd83d68=[],_0xefdc59=_0x4df6e7['filter'](_0x2cfd5b=>'attribute'==_0x2cfd5b['type']),_0x5ca10b=_0x4df6e7['filter'](_0x3d4064=>'insert'==_0x3d4064['type']&&'$text'!=_0x3d4064['name']),_0x2c902a=_0x4df6e7['filter'](_0x157d0b=>'remove'==_0x157d0b['type']&&'$text'!=_0x157d0b['name']);for(const _0x5299bb of _0xefdc59)_0xd83d68['push']({'key':_0x5299bb['attributeKey'],'newValue':_0x5299bb['attributeNewValue'],'oldValue':_0x5299bb['attributeOldValue'],'range':qt(_0x5299bb['range'],_0x1baf17['model'])});for(const _0x93f6ad of _0x5ca10b){const _0x3c2ef3=_0x2c902a['find'](_0x5dc991=>_0x5dc991['position']['isEqual'](_0x93f6ad['position']));_0x3c2ef3&&_0xd83d68['push']({'key':m,'newValue':_0x93f6ad['name'],'oldValue':_0x3c2ef3['name'],'range':_0x1baf17['model']['createRangeOn'](_0x93f6ad['position']['nodeAfter'])});}return 0x0!=_0xd83d68['length']&&this['_reduceExistingSuggestions'](_0x6bc5be,_0xd83d68);}['_processAttributeSuggestions'](_0x311424){let _0x4c0282=!0x1;const _0xfea724=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x416962=>_0x416962['data']['newRange']&&_0x416962['name']['startsWith']('suggestion:attribute:'));for(const _0xaaea80 of _0xfea724){const {subType:_0x18e146,id:_0x17eb05}=this['_splitMarkerName'](_0xaaea80['name']),_0x545017=_0x18e146['split']('|')[0x0];for(const _0x1de6a9 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1de6a9['id']!=_0x17eb05&&'attribute'==_0x1de6a9['type']&&_0x1de6a9['data']&&_0x1de6a9['data']['key']==_0x545017&&_0x1de6a9['getFirstRange']()['isIntersecting'](_0xaaea80['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1de6a9,_0xaaea80['data']['newRange'],_0x311424),_0x4c0282=!0x0);}return _0x4c0282;}['_recordAttributeChanges'](_0x4c00cc){this['_recordAttributeSuggestions']=!0x0,_0x4c00cc();}['_isRegisteredAttribute'](_0x3f4d2d){const _0x26dae2=this['_isBlockAttribute'](_0x3f4d2d),_0x57fe24=this['_inlineAttributeKeys']['has'](_0x3f4d2d);return _0x26dae2||_0x57fe24;}['_reduceExistingSuggestions'](_0x3df8d9,_0x3e1d61){if(0x0==_0x3e1d61['length'])return!0x1;let _0x42a70d=!0x1;for(const _0x29e987 of _0x3e1d61){const _0x245535=this['_findSuggestions'](_0x29e987['range'],'attribute')['filter'](_0x4e50bc=>!_0x4e50bc['meta']['isNextTo'])['map'](_0x19d4d0=>_0x19d4d0['suggestion']),_0x336b69=_0xc40bc9({'newValue':_0x29e987['newValue']});_0x245535['filter'](_0x4bd695=>{const [_0x17cc1b,_0x1dc4c4]=_0x4bd695['subType']['split']('|');return _0x17cc1b==_0x29e987['key']&&_0x1dc4c4!=_0x336b69;})['forEach'](_0x1df768=>{this['_reduceSuggestionAttributeRange'](_0x1df768,_0x29e987['range'],_0x3df8d9),_0x42a70d=!0x0;});}return _0x42a70d;}['_reduceSuggestionAttributeRange'](_0x23d850,_0xf968fb,_0x4394f8){const _0x5b7837=_0x23d850['getFirstRange']()['getDifference'](_0xf968fb);0x0!==_0x5b7837['length']?0x1!==_0x5b7837['length']?this['_breakSuggestionMarker'](_0x23d850,_0xf968fb['start'],_0xf968fb['end']):this['_setSuggestionRange'](_0x23d850,_0x5b7837[0x0]):_0x4394f8['removeMarker'](_0x23d850['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x5f08ec){this['_editor']=_0x5f08ec,this['_model']=_0x5f08ec['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3d21ce,_0x24fa7b,_0x1f8680,_0x273a20,_0x3ef177,_0x26ffee){return new u(this['_model'],{'type':_0x3d21ce,'subType':_0x24fa7b,'id':_0x1f8680,'author':_0x273a20,'creator':_0x273a20,'attributes':_0x3ef177,'onAttributesChange':_0x26ffee,'onAccept':(..._0x5ccb4e)=>this['getSuggestionCallback'](_0x3d21ce,_0x24fa7b,'accept')(..._0x5ccb4e),'onDiscard':(..._0x5c2ce8)=>this['getSuggestionCallback'](_0x3d21ce,_0x24fa7b,'discard')(..._0x5c2ce8)});}['registerCustomCallback'](_0x6de628,_0x35fe3f,_0x454044,_0x388cce){const _0xdea564=_0x6de628+':'+_0x35fe3f+':'+_0x454044;this['_customCallbacks']['set'](_0xdea564,_0x388cce);}['getSuggestionCallback'](_0x20e66b,_0x31ed10,_0x4b5de1){const _0x1d4d09=_0x20e66b+':'+_0x31ed10+':'+_0x4b5de1;return this['_customCallbacks']['get'](_0x1d4d09)||this['_defaultCallbacks']['get'](_0x20e66b+':'+_0x4b5de1);}['_registerDefaultCallbacks'](){const _0x14a331=()=>!0x1,_0x1f5199=_0x371398=>{_0x371398['sort']((_0x58e9f2,_0x4ec630)=>_0x58e9f2['start']['isBefore'](_0x4ec630['start'])?0x1:-0x1),this['_model']['change'](_0x1c8cf5=>{for(const _0x4abd80 of _0x371398){let _0xd0444f;_0xd0444f=_0x4abd80['end']['isAtEnd']&&_0x4abd80['end']['parent']==_0x4abd80['start']['nodeAfter']?_0x1c8cf5['createSelection'](_0x4abd80['start']['nodeAfter'],'on'):_0x1c8cf5['createSelection'](_0x4abd80),this['_model']['deleteContent'](_0xd0444f,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x263fc6=(_0x535156,_0x26d84d)=>{_0x26d84d&&this['_model']['change'](_0x1e1468=>{const {commandName:_0x13adc1,commandParams:_0x30e33d=[]}=_0x26d84d,_0x146e53=_0x535156['map'](_0x2cf0c4=>(Ft(_0x2cf0c4)&&(_0x2cf0c4=this['_model']['createRange'](_0x2cf0c4['end'])),_0x2cf0c4))['filter'](_0x52604d=>'$graveyard'!==_0x52604d['root']['rootName']);if(_0x146e53['length']<0x1)return;const _0x279d97=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x224715=>_0x3131df['fromRange'](_0x224715));_0x1e1468['setSelection'](_0x146e53);for(const _0x27139e of this['_editor']['commands']['commands']())_0x27139e['refresh']();_0x30e33d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x13adc1,..._0x30e33d);const _0x18e3fc=_0x279d97['filter'](_0x54e49f=>'$graveyard'!=_0x54e49f['root']['rootName']);_0x18e3fc['length']>0x0&&_0x1e1468['setSelection'](_0x18e3fc);for(const _0x946b77 of _0x279d97)_0x946b77['detach']();});},_0x498676=(_0x1ac64e,_0xa33dda)=>0x1==_0x1ac64e['length']&&0x1==_0xa33dda['length']&&_0x1ac64e[0x0]['end']['isEqual'](_0xa33dda[0x0]['start']),_0xa3fd86=(_0x1ebcfa,_0x354abf,_0x51b5f8,_0x3659bc)=>Kt(_0x1ebcfa,_0x354abf,_0x51b5f8,_0x3659bc)?[_0x1ebcfa,_0x354abf]:Kt(_0x354abf,_0x1ebcfa,_0x3659bc,_0x51b5f8)?[_0x354abf,_0x1ebcfa]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x14a331),this['_defaultCallbacks']['set']('insertion:discard',_0x1f5199),this['_defaultCallbacks']['set']('insertion:join',_0x498676),this['_defaultCallbacks']['set']('insertion:chain',_0xa3fd86),this['_defaultCallbacks']['set']('deletion:accept',_0x1f5199),this['_defaultCallbacks']['set']('deletion:discard',_0x14a331),this['_defaultCallbacks']['set']('deletion:join',_0x498676),this['_defaultCallbacks']['set']('deletion:chain',_0xa3fd86),this['_defaultCallbacks']['set']('formatInline:accept',_0x263fc6),this['_defaultCallbacks']['set']('formatInline:discard',_0x14a331),this['_defaultCallbacks']['set']('formatInline:join',_0x498676),this['_defaultCallbacks']['set']('formatInline:chain',_0x14a331),this['_defaultCallbacks']['set']('formatBlock:accept',_0x263fc6),this['_defaultCallbacks']['set']('formatBlock:discard',_0x14a331),this['_defaultCallbacks']['set']('formatBlock:join',_0x498676),this['_defaultCallbacks']['set']('formatBlock:chain',_0x14a331),this['_defaultCallbacks']['set']('attribute:accept',_0x14a331),this['_defaultCallbacks']['set']('attribute:discard',(_0x3356e4,_0x2d3be4)=>{if(!_0x2d3be4)return;const _0x3a7fae=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4b26f9=>{if(_0x2d3be4['key']==m)for(const _0x3198af of _0x3356e4){const _0x50768b=_0x3198af['start']['nodeAfter'],_0xe76426=_0x2d3be4['oldValue'];_0x4b26f9['rename'](_0x50768b,_0xe76426);}else{if(_0x3a7fae['_isBlockAttribute'](_0x2d3be4['key'])){for(const _0x2f3ecf of _0x3356e4)void 0x0!==_0x2d3be4['oldValue']?_0x4b26f9['setAttribute'](_0x2d3be4['key'],_0x2d3be4['oldValue'],_0x2f3ecf['start']['nodeAfter']):_0x4b26f9['removeAttribute'](_0x2d3be4['key'],_0x2f3ecf['start']['nodeAfter']);}else{for(const _0x19087b of _0x3356e4)_0x2d3be4['oldValue']?_0x4b26f9['setAttribute'](_0x2d3be4['key'],_0x2d3be4['oldValue'],_0x19087b):_0x4b26f9['removeAttribute'](_0x2d3be4['key'],_0x19087b);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x498676);}}function Gt(_0x522ed8,_0x1b9931,_0x4d4f62){for(const _0x22bea6 of _0x1b9931['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x22bea6['root']==_0x22bea6)return!0x1;if(!_0x4d4f62['containsItem'](_0x22bea6))return!0x1;if(_0x522ed8['isObject'](_0x22bea6)||_0x522ed8['isLimit'](_0x22bea6))return!0x0;}return!0x1;}function Ft(_0x51ff68){return _0x51ff68['end']['parent']==_0x51ff68['start']['nodeAfter']&&_0x51ff68['end']['isAtStart'];}function Lt(_0x6e301,_0x146cb3,_0x532dae,_0x22d176){const _0xfa0863=_0x2a4ba8=>!_0x2a4ba8['item']['is']('$textProxy')&&!_0x22d176['isObject'](_0x2a4ba8['item']),_0x3f1c23=_0x6e301['start']['getLastMatchingPosition'](_0xfa0863),_0xe15cb6=_0x6e301['end']['getLastMatchingPosition'](_0xfa0863,{'direction':'backward'});return(!_0x6e301['start']['isEqual'](_0x3f1c23)||!_0x6e301['end']['isEqual'](_0xe15cb6))&&(_0x3f1c23['isBefore'](_0xe15cb6)?_0x532dae['updateMarker'](_0x146cb3,{'range':_0x532dae['createRange'](_0x3f1c23,_0xe15cb6)}):_0x532dae['removeMarker'](_0x146cb3),!0x0);}function Jt(_0x154550){return _0xc40bc9(_0x154550);}function Ht(_0x307cc3){const _0x2bf49d=_0x307cc3['start']['nodeAfter'];return _0x2bf49d&&_0x2bf49d['is']('element');}function qt(_0x4a6742,_0x36ee33){return null==_0x4a6742['end']['nodeBefore']&&_0x4a6742['end']['parent']==_0x4a6742['start']['nodeAfter']?zt(_0x4a6742['start']['nodeAfter'],_0x36ee33):_0x4a6742;}function zt(_0xe82d78,_0xfc58bc){const _0x32d1e8=_0xfc58bc['schema']['isObject'](_0xe82d78)||_0xfc58bc['schema']['isSelectable'](_0xe82d78);return _0xfc58bc['createRange'](_0xfc58bc['createPositionAt'](_0xe82d78,'before'),_0x32d1e8?_0xfc58bc['createPositionAfter'](_0xe82d78):_0xfc58bc['createPositionAt'](_0xe82d78,'end'));}function Kt(_0x36ec8a,_0x22c952,_0x2b654e,_0x1f176d){return!!Wt(_0x36ec8a,_0x22c952)&&_0x2b654e['end']['isEqual'](_0x1f176d['start']);}function Wt(_0x505ea1,_0x2f5c57){if(!_0x505ea1['_isDataLoaded']||!_0x2f5c57['_isDataLoaded'])return!0x1;const _0x4c82eb=new Set(Object['keys'](_0x505ea1['attributes'])),_0x7e54cd=new Set(Object['keys'](_0x2f5c57['attributes']));if(_0x4c82eb['delete']('groupId'),_0x7e54cd['delete']('groupId'),0x0==_0x4c82eb['size']&&0x0==_0x7e54cd['size'])return!0x0;if(_0x4c82eb['size']!=_0x7e54cd['size'])return!0x1;const _0x27c936={..._0x505ea1['attributes']},_0x5c1c59={..._0x2f5c57['attributes']};return delete _0x27c936['groupId'],delete _0x5c1c59['groupId'],JSON['stringify'](_0x27c936)==JSON['stringify'](_0x5c1c59);}function Qt(_0x4ddfc7,_0x123d23){const _0x18a681=Xt(_0x4ddfc7['attributes']),_0x273fae=Xt(_0x123d23);if(!_0x4ddfc7['_isDataLoaded'])return!0x1;for(const _0x4a0bc7 of Object['keys'](_0x273fae))if(!_0x57f90c(_0x18a681[_0x4a0bc7],_0x273fae[_0x4a0bc7]))return!0x1;return!0x0;}function Xt(_0x171579){const _0x21b3d2=Object['assign']({},_0x171579);return delete _0x21b3d2['skipNestingCheck'],delete _0x21b3d2['tablePasteChainId'],_0x21b3d2;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x1c572a(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x4eefc4,_0x3a5b57,_0xc00679,_0x2eb037){super(),this['model']=_0x3a5b57,this['view']=_0xc00679,this['commentThreadController']=_0x2eb037,this['_editor']=_0x4eefc4,this['_acceptCommand']=_0x4eefc4['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x4eefc4['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x53e7d0,_0x4b4ec3)=>_0x53e7d0||_0x4b4ec3),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2376e3=>_0x2376e3&&this['_editor']['model']['canEditAt'](_0x3a5b57['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x14a21b=>_0x14a21b&&this['_editor']['model']['canEditAt'](_0x3a5b57['getRanges']())),this['_pendingAction']=null,_0xc00679['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xc00679,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xc00679,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xc00679,'change:isDirty',()=>{_0xc00679['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 _0x236698=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x236698);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class ms extends _0x169e68{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1336bc,_0x2ab2fa,_0x459a7b,_0x1c150f){super(_0x1336bc),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x42432c(_0x1336bc,o(_0x1336bc,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x2ab2fa['authoredAt']),this['bind']('authoredAt')['to'](_0x2ab2fa),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',_0x2ab2fa,'authoredAt',this,'descriptionParts',(_0x32f112,_0x9a0505,_0x3a67c5)=>{const _0x2f3ee2=_0x3a67c5['map'](_0x5ab29e=>cs(_0x5ab29e['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x32f112-0x1,_0x2ab2fa['author']['name'],_0x9a0505?_0x1c150f['formatDateTime'](_0x9a0505):'',new DOMParser()['parseFromString'](_0x2f3ee2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2a7b0c(),this['focusTracker']=new _0x8ba174(),this['keystrokes']=new _0x4d9676(),this['focusCycler']=new _0x217e84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x27ea52=>_0x27ea52['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x2ab2fa,this['_localUser']=_0x459a7b,this['_config']=_0x1c150f,_0x1c150f['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x324976(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4e9fb6}=this['_config'];this['commentsListView']=new _0x4e9fb6(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',_0x21a0e4=>_0x21a0e4+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x3eed5e,_0x56092b)=>_0x3eed5e||!!_0x56092b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1a0a49}=this['_config'],_0x7eb94c=new _0x1a0a49(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1f3b92=_0x7eb94c['commentInputView'];return _0x7eb94c['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1f3b92,'value',(_0x38bc90,_0xd38874,_0xccbccb)=>!!_0xccbccb||_0x38bc90&&!_0xd38874),_0x1f3b92['on']('submit',(_0x3e1af6,_0x1fd95d)=>{this['fire']('addComment',_0x1fd95d),_0x1f3b92['editor']['setData']('');}),_0x1f3b92['on']('cancel',()=>this['focus']()),_0x1f3b92['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7eb94c;}}class pe extends ms{['suggestionView'];['_descriptionElement'];constructor(_0x4a4b85,_0x335f97,_0x29071e,_0x2d8d27){super(_0x4a4b85,_0x335f97,_0x29071e,_0x2d8d27),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4fa4e1=>_0x4fa4e1&&_0x4fa4e1[0x0]?_0x4fa4e1[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xf8c059,_0x2bf39a)=>{let _0x115b87='';for(const _0x67f0ec of _0xf8c059)_0x115b87+='<p>'+cs(_0x67f0ec['content'],_0x67f0ec['color'])+'</p>';return _0x2bf39a?_0x115b87:_0x35231d(_0x115b87,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x2d8d27['SuggestionView'](_0x4a4b85,_0x335f97,{'formatDateTime':_0x2d8d27['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 _0x229db5=this['bindTemplate'],_0x4a0232=[this['suggestionView']];return this['commentsListView']&&_0x4a0232['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4a0232['push'](this['commentThreadInputView']),_0x4a0232['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x229db5['if']('isActive','ck-suggestion-wrapper--active'),_0x229db5['to']('type',_0x596c76=>'ck-suggestion-'+_0x596c76),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':_0x229db5['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4a0232};}['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 fe extends _0x169e68{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0xa3c4da,_0x54f942,_0x57b713){super(_0xa3c4da),this['_model']=_0x54f942,this['_config']=_0x57b713,this['set']('description',''),this['bind']('authoredAt')['to'](_0x54f942),this['acceptButton']=this['_createButton'](o(_0xa3c4da,'Accept\x20suggestion'),_0x28a606['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0xa3c4da,'Discard\x20suggestion'),_0x28a606['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4fcf28(_0xa3c4da,_0x54f942['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2a7b0c([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x8ba174(),this['keystrokes']=new _0x4d9676(),this['focusCycler']=new _0x217e84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x11f780=>_0x11f780['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x234939=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x234939['innerHTML']=this['description'],this['on']('change:description',(_0x54994d,_0x5a6eb5,_0xff5b98)=>{_0x234939['innerHTML']=_0xff5b98;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x49942a=this['bindTemplate'],_0x10cd00=[{'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':_0x49942a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x49942a['to']('authoredAt',_0x8780f6=>this['_config']['formatDateTime'](_0x8780f6))}]}]},{'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']&&_0x10cd00['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':_0x10cd00}]};}['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'](_0x5e7a8f,_0x555754,_0x29c612,_0x377df2,_0x1eb6d4){const _0x342bfa=new _0x36d30d(this['locale']);return _0x342bfa['set']({'label':_0x5e7a8f,'icon':_0x555754,'tooltip':!0x0,'tooltipPosition':_0x1eb6d4}),_0x342bfa['extendTemplate']({'attributes':{'class':_0x29c612}}),_0x342bfa['on']('execute',()=>{this['fire'](_0x377df2,this['_model']['id']);}),_0x342bfa;}['_setupKeyboardNavigation'](){const _0x442d8a=this['element'];this['keystrokes']['listenTo'](_0x442d8a);for(const _0x1bc307 of this['focusables'])this['focusTracker']['add'](_0x1bc307['element']),this['keystrokes']['listenTo'](_0x1bc307['element']);this['keystrokes']['set']('enter',(_0x9d5a12,_0x15cb6e)=>{_0x442d8a===_0x9d5a12['target']&&(this['focusCycler']['focusFirst'](),_0x15cb6e());}),this['keystrokes']['set']('esc',(_0x799189,_0x5bd5de)=>{_0x442d8a!==_0x799189['target']&&(this['focus'](),_0x5bd5de());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x99cb74{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x19770a,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ccda3){super(_0x5ccda3),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x42a650=this['editor']['config'];_0x42a650['define']('trackChanges.SuggestionThreadView',pe),_0x42a650['define']('trackChanges.SuggestionView',fe),_0x42a650['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x42a650['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x430c64,_0x4a5ad0){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x286a44,_0x334d90]of this['_handleControllerBuffer']){const _0x286273=this['_suggestionToController']['has'](_0x286a44);_0x286273||_0x334d90?_0x286273&&_0x334d90&&this['_destroyController'](_0x286a44):this['_initializeController'](_0x286a44);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x430c64,_0x4a5ad0);}['init'](){const _0x21deb4=this['editor'],_0x455cac=_0x21deb4['plugins']['get']('TrackChangesEditing'),_0x5e1323=_0x21deb4['plugins']['get']('Annotations'),_0x32083c=_0x21deb4['plugins']['get']('EditorAnnotations'),_0x3517ed=_0x21deb4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32083c['addSourceCollector'](()=>{const _0x5901fc=[];for(const [_0x34b952,_0x261aa2]of Array['from'](this['_suggestionToController'])){const _0x40d2c=_0x34b952['getAllAdjacentSuggestions'](),_0x4c16a4=[];for(const _0x141afe of _0x40d2c){if(!_0x141afe['isInContent'])continue;if(_0x141afe['isMultiRange']){_0x4c16a4['push'](..._0x141afe['getRanges']());continue;}const _0x4b9984=_0x141afe['getFirstRange']();if(_0x4c16a4['length']>0x0){const _0x41c599=_0x4c16a4[0x0]['getJoined'](_0x4b9984);if(_0x41c599){_0x4c16a4[0x0]=_0x41c599;continue;}}_0x4c16a4['push'](_0x4b9984);}_0x5901fc['push']([_0x261aa2['view'],_0x4c16a4]);}return _0x5901fc;}),this['listenTo'](_0x455cac,'suggestionLoaded',(_0x581fb1,_0x371044)=>{this['listenTo'](_0x371044,'change:previous',(_0x1f8b39,_0x522319,_0x1599d1,_0xbab811)=>{_0x371044['isInContent']&&(null==_0x1599d1?(this['_updateController'](_0xbab811['head']),this['_handleSuggestionControllerDelayed'](_0x371044,!0x1)):(this['_updateController'](_0x1599d1['head']),null==_0xbab811&&this['_handleSuggestionControllerDelayed'](_0x371044,!0x0)));}),null!==_0x371044['previous']?this['_updateController'](_0x371044['head']):this['_handleSuggestionControllerDelayed'](_0x371044,!0x1);}),this['listenTo'](_0x455cac,'suggestionUnloaded',(_0x4654c1,_0x420562,_0x517cde)=>{this['stopListening'](_0x420562,'change:previous'),this['_handleControllerBuffer']['delete'](_0x420562),this['_suggestionToController']['has'](_0x420562)&&this['_destroyController'](_0x420562),_0x517cde&&this['_updateController'](_0x517cde['head']);}),this['listenTo'](_0x455cac,'suggestionChanged',(_0x2c5bbd,_0x3f0a26)=>{this['_updateController'](_0x3f0a26);}),this['listenTo'](_0x5e1323,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3517ed,'addComment',(_0x56f0bf,{threadId:_0x464039,isFromAdapter:_0x49ce07})=>{if(_0x49ce07||!_0x455cac['hasSuggestion'](_0x464039))return;const _0x2454b7=_0x455cac['getSuggestion'](_0x464039);this['_suggestionToController']['get'](_0x2454b7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37945c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x294a18;for(const _0x296ef1 in _0x37945c){const _0x5863f4=_0x296ef1,_0x1c334b=_0x37945c[_0x5863f4];if('trackChangesLicenseKeyValid'==_0x1c334b||'trackChangesLicenseKeyInvalid'==_0x1c334b||'trackChangesLicenseKeyExpired'==_0x1c334b||'trackChangesLicenseKeyDomainLimit'==_0x1c334b||'trackChangesLicenseKeyNotAllowed'==_0x1c334b||'trackChangesLicenseKeyEvaluationLimit'==_0x1c334b||'trackChangesLicenseKeyTrialLimit'==_0x1c334b||'trackChangesLicenseKeyUsageLimit'==_0x1c334b){delete _0x37945c[_0x5863f4],_0x294a18=_0x1c334b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x294a18&&_0x37945c['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x294a18&&_0x37945c['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x294a18&&_0x37945c['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x294a18&&_0x37945c['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x294a18&&_0x37945c['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x294a18&&_0x37945c['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x294a18&&_0x37945c['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x1d5bd0=this['editor']['plugins']['get']('Annotations'),_0x758a15=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e3574=Array['from'](_0x1d5bd0['activeAnnotations'],_0x1ac763=>_0x1ac763['innerView'])['filter'](_0x3e52d5=>this['_viewToController']['has'](_0x3e52d5)),_0xb33f5c=[];for(const _0x534d1a of _0x3e3574){const _0x228747=this['_viewToController']['get'](_0x534d1a)['model']['getAllAdjacentSuggestions']();_0xb33f5c['push'](..._0x228747['reduce']((_0x29f547,_0x4e8c5f)=>[..._0x29f547,..._0x4e8c5f['getMarkerNames']()],[]));}_0x758a15['activeMarkers']=_0xb33f5c;}['_addUIComponentsToFactory'](){const _0x3f66b6=this['editor'],_0x518637=_0x3f66b6['locale'],_0x147561=o(_0x518637,'Track\x20changes'),_0x1fd778=new _0x16e4db([{'type':'switchbutton','model':new _0x1386bf({'withText':!0x0,'isToggleable':!0x0,'label':_0x147561,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x1386bf({'withText':!0x0,'label':o(_0x518637,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1386bf({'withText':!0x0,'label':o(_0x518637,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1386bf({'withText':!0x0,'label':o(_0x518637,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x1386bf({'withText':!0x0,'label':o(_0x518637,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x3f66b6['plugins']['has']('TrackChangesPreview')&&_0x1fd778['addMany']([{'type':'separator'},{'type':'button','model':new _0x1386bf({'withText':!0x0,'label':o(_0x518637,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x1b8f3d of _0x1fd778)if(ke(_0x1b8f3d)){const _0x52e040=_0x3f66b6['commands']['get'](_0x1b8f3d['model']['commandName']);_0x1b8f3d['model']['bind']('isOn','isEnabled')['to'](_0x52e040,'value','isEnabled');}_0x3f66b6['ui']['componentFactory']['add']('trackChanges',_0x374293=>this['_createToolbarButton'](_0x374293,_0x1fd778,_0x147561)),_0x3f66b6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x49b263=>this['_createMenuBarMenu'](_0x49b263,_0x1fd778,_0x147561));}['_createToolbarButton'](_0x387017,_0x939ebf,_0xd4865){const _0x2a0ad1=_0xf538fe(_0x387017,_0x6e0785),_0x4740b8=this['editor']['commands']['get']('trackChanges');_0x2a0ad1['buttonView']['set']({'tooltip':_0xd4865,'label':_0xd4865,'icon':we}),_0x2a0ad1['buttonView']['bind']('isOn')['to'](_0x4740b8,'value'),_0x2a0ad1['buttonView']['on']('execute',()=>{_0x4740b8['execute'](),this['editor']['editing']['view']['focus']();}),_0x8733cc(_0x2a0ad1,_0x939ebf,{'role':'menu'});const _0x1c369b=[];for(const _0x3deae9 of _0x939ebf)ke(_0x3deae9)&&_0x1c369b['push'](this['editor']['commands']['get'](_0x3deae9['model']['commandName']));const _0x154b8e=_0x2a0ad1['buttonView'];return _0x154b8e['actionView']['unbind']('isEnabled'),_0x154b8e['arrowView']['unbind']('isEnabled'),_0x154b8e['actionView']['bind']('isEnabled')['to'](_0x4740b8,'isEnabled'),_0x154b8e['arrowView']['bind']('isEnabled')['toMany'](_0x1c369b,'isEnabled',(..._0x4817b5)=>_0x4817b5['some'](_0x1ff2f9=>_0x1ff2f9)),_0x2a0ad1['on']('execute',_0x4fa1c7=>{this['editor']['execute'](_0x4fa1c7['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2a0ad1;}['_createMenuBarMenu'](_0xc41263,_0x655bd3,_0xacafad){const _0x368418=new _0x4f5ef6(_0xc41263),_0xcf127b=this['editor']['commands']['get']('trackChanges');_0x368418['buttonView']['set']({'label':_0xacafad,'icon':we});const _0x142c7a=new _0x5e83d8(_0xc41263);for(const _0x7616ff of _0x655bd3){if('separator'==_0x7616ff['type']){_0x142c7a['items']['add'](new _0x2b38ba(_0xc41263));continue;}const _0x4a5d99=new _0x3da773(_0xc41263,_0x368418),_0x7956aa=new _0x11b9be(_0xc41263),_0x1c3487=_0x7616ff['model'];_0x7956aa['bind'](...Object['keys'](_0x1c3487))['to'](_0x1c3487),_0x7956aa['delegate']('execute')['to'](_0x368418),_0x7956aa['on']('execute',()=>{this['editor']['execute'](_0x1c3487['commandName']),this['editor']['editing']['view']['focus']();}),_0x4a5d99['children']['add'](_0x7956aa),_0x142c7a['items']['add'](_0x4a5d99);}return _0x368418['bind']('isEnabled')['to'](_0xcf127b,'isEnabled'),_0x368418['panelView']['children']['add'](_0x142c7a),_0x368418;}['_initializeController'](_0x3e1878){const _0x224e6c=this['editor'],_0x3facfb=_0x224e6c['config'],_0x31dc08=_0x224e6c['plugins']['get']('Annotations'),_0x1e8bc3=_0x224e6c['plugins']['get']('CommentsRepository'),_0x1a71d8=_0x224e6c['plugins']['get']('EditorAnnotations'),_0x2c91cd=_0x224e6c['plugins']['get'](_0x19770a)['me'],_0xfb3a3c=_0x3facfb['get']('trackChanges')['SuggestionThreadView'],_0x4146af=_0x3facfb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x5b82a2,CommentThreadInputView:_0x2bac35}=_0x224e6c['plugins']['get']('CommentsUI');let _0xc44e7,_0xb3bdff,_0x57b5d0;this['_annotationViews']['has'](_0x3e1878['id'])?(_0xb3bdff=this['_annotationViews']['get'](_0x3e1878['id']),_0xc44e7=_0xb3bdff['mainView']):(_0xc44e7=new _0xfb3a3c(_0x224e6c['locale'],_0x3e1878,_0x2c91cd,{'disableComments':this['_disableComments'],'editorConfig':{..._0x3facfb['get']('comments.editorConfig'),'licenseKey':_0x3facfb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x3facfb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3facfb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3facfb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x300153(_0x3facfb['get']('locale')),'CommentView':_0x3facfb['get']('comments')['CommentView'],'CommentsListView':_0x5b82a2,'CommentThreadInputView':_0x2bac35,'SuggestionView':_0x4146af}),_0xc44e7['suggestionView']['acceptButton']['on']('execute',()=>{_0x224e6c['editing']['view']['focus']();}),_0xc44e7['suggestionView']['discardButton']['on']('execute',()=>{_0x224e6c['editing']['view']['focus']();}),_0xb3bdff=_0x31dc08['createAnnotationView'](this['editor']['locale'],_0xc44e7),_0xb3bdff['bind']('isDirty')['to'](_0xc44e7,'isDirty'),_0xb3bdff['bind']('length')['to'](_0xc44e7),_0xb3bdff['bind']('type')['to'](_0xc44e7,'type',_0x4aa475=>'suggestion-'+_0x4aa475),_0xc44e7['on']('escape',()=>{_0x57b5d0['fire']('escape');}),this['_annotationViews']['set'](_0x3e1878['id'],_0xb3bdff));const _0x27950a=_0x1e8bc3['createCommentThreadController'](_0x3e1878['commentThread'],_0xc44e7),_0xc80107=new Ce(_0x224e6c,_0x3e1878,_0xc44e7,_0x27950a),_0x445868=_0x3e1878['getAllAdjacentSuggestions']()['filter'](_0x2b805b=>_0x2b805b['isInContent']);_0xc44e7['descriptionParts']=_0x224e6c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x445868),this['_suggestionToController']['set'](_0x3e1878,_0xc80107),this['_viewToController']['set'](_0xc44e7,_0xc80107),_0x57b5d0=_0x31dc08['createAnnotation']({'view':_0xb3bdff,'target':()=>{const _0x48ce85=[],_0xdf5437=_0x3e1878['getAllAdjacentSuggestions']()['filter'](_0x3870ec=>_0x3870ec['isInContent']);for(const _0x5c6778 of _0xdf5437)_0x48ce85['push'](..._0x5c6778['getMarkers']());return _0x3cbf24(_0x224e6c['editing'],_0x48ce85);},'type':()=>'suggestion-'+_0xc80107['view']['type']}),_0x1e8bc3['_bindAnnotationToEditors'](_0xc44e7,_0x57b5d0),_0x31dc08['add'](_0x57b5d0),_0x1a71d8['registerAnnotation'](_0x57b5d0);}['_destroyController'](_0x2fe34f){const _0x3fe75b=this['editor']['plugins']['get']('CommentsRepository'),_0x237bdd=this['editor']['plugins']['get']('Annotations'),_0x16c982=this['_suggestionToController']['get'](_0x2fe34f),_0x451503=_0x16c982['view'],_0x4d14f9=_0x237bdd['getByInnerView'](_0x451503);_0x3fe75b['_unbindEditors'](_0x451503),_0x4d14f9&&_0x237bdd['remove'](_0x4d14f9),this['_suggestionToController']['delete'](_0x2fe34f),this['_viewToController']['delete'](_0x451503),_0x16c982['destroy']();}['_updateController'](_0x18ae83){if(!_0x18ae83['isInContent']||!this['_suggestionToController']['has'](_0x18ae83))return;const _0x390e53=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d900a=this['_suggestionToController']['get'](_0x18ae83),_0x3b9970=_0x18ae83['getAllAdjacentSuggestions']();_0x2d900a['view']['descriptionParts']=_0x390e53['descriptionFactory']['getDescriptions'](_0x3b9970);}['destroy'](){for(const _0x4dd9d8 of this['_suggestionToController']['keys']())this['_destroyController'](_0x4dd9d8);for(const _0x5f4645 of this['_annotationViews']['values']())_0x5f4645['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x22963f){return'model'in _0x22963f;}class k extends _0x99cb74{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1fafc2){this['editor']['plugins']['get'](p)['adapter']=_0x1fafc2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x7f138d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x7f138d);}['getSuggestions']({skipNotAttached:_0x5e1e96=!0x1,toJSON:_0x393244=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5e1e96,'toJSON':_0x393244});}['getSuggestion'](_0x2eeb15){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2eeb15);}}const w=['Pagination'];class T extends _0x99cb74{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x1291a4=this['editor'];if(_0x1291a4['config']['define']('trackChangesData.editorCreator',_0x3702c2=>{const _0xa5345b=_0x1291a4['model']['document']['getRootNames']()['reduce']((_0x24da20,_0xb202b9)=>(_0x24da20[_0xb202b9]='',_0x24da20),{});return _0x1291a4['constructor']['create'](_0xa5345b,_0x3702c2);}),'function'!=typeof _0x1291a4['config']['get']('trackChangesData')['editorCreator'])throw new _0x363806('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x16c1d7){return N(this['editor'],!0x0,_0x16c1d7);}['getDataWithDiscardedSuggestions'](_0x2baee4){return N(this['editor'],!0x1,_0x2baee4);}}class D extends _0x99cb74{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2fd228){function _0x3d16cc(_0x5099de){return _0x5099de['map'](_0xe68d71=>String['fromCharCode'](_0xe68d71))['join']('');}super(_0x2fd228),this['result']='end',_0x2fd228[_0x3d16cc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d16cc([0x76,0x69,0x65,0x77])][_0x3d16cc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d16cc([0x61,0x75,0x74,0x6f]),_0x2fd228[_0x3d16cc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3d16cc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d16cc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3d16cc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3d16cc([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 Fe(_0x4d0d8a){return void 0x0!==_0x4d0d8a['getRootsAttributes'];}async function N(_0x3fb82b,_0x135602,_0x2c37bf){const _0x5f194a=_0x5e6d42(_0x3fb82b,w);_0x5f194a['plugins']['push'](p,D),_0x5f194a['rootsAttributes']=Fe(_0x3fb82b)?_0x3fb82b['getRootsAttributes']():void 0x0;const _0xadbbdd=document['createDocumentFragment'](),_0x421c3=_0x3fb82b['config']['get']('trackChangesData')['editorCreator'],_0xea3dda=await _0x421c3(_0x5f194a,()=>function(_0x3b9c1d){const _0x2c24ca=document['createElement']('div');return _0x3b9c1d['appendChild'](_0x2c24ca),_0x2c24ca;}(_0xadbbdd));!function(_0x325188,_0x664b8d){const _0x4f82aa=_0x325188['model']['document']['getRootNames']()['reduce']((_0x5cd39e,_0x4ab375)=>(_0x5cd39e[_0x4ab375]=_0x325188['data']['get']({'rootName':_0x4ab375}),_0x5cd39e),{}),_0xf084b2=_0x325188['plugins']['get']('Users')['users']['map'](_0x252a0b=>({'id':_0x252a0b['id'],'name':_0x252a0b['name']})),_0x58b08a=_0x325188['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x40a6a2=_0x325188['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x25133b=_0x664b8d['plugins']['get']('Users'),_0x12a065=_0x664b8d['plugins']['get']('TrackChangesEditing'),_0x10cc0b=_0x664b8d['plugins']['get']('CommentsRepository');for(const _0x466b93 of _0x10cc0b['getCommentThreads']())_0x466b93['remove']();for(const _0x38451f of _0xf084b2)_0x25133b['getUser'](_0x38451f['id'])||_0x25133b['addUser'](_0x38451f);_0x25133b['me']||_0x25133b['useAnonymousUser']();for(const _0xf24a49 of _0x40a6a2)_0x10cc0b['addCommentThread'](_0xf24a49);for(const _0x5477a1 of _0x58b08a)_0x12a065['addSuggestionData'](_0x5477a1);_0x664b8d['data']['set'](_0x4f82aa);}(_0x3fb82b,_0xea3dda),_0xea3dda['execute'](_0x135602?'acceptAllSuggestions':'discardAllSuggestions');const _0x4c9d7e=Fe(_0xea3dda)?_0xea3dda['getFullData'](_0x2c37bf):_0xea3dda['data']['get'](_0x2c37bf);return await _0xea3dda['destroy'](),_0x4c9d7e;}class Me extends _0x169e68{['options'];constructor(_0x35ab41,_0x409438){super(_0x35ab41),this['options']=_0x409438,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'](_0x189a7e,_0x11a602){if(!this['element'])return;const _0xd5f1ef=[];for(const [_0x108238,_0x2799da]of _0x189a7e){const _0xf9673b=document['createElement']('div');_0xf9673b['setAttribute']('data-ck-root-name',_0x108238),_0xf9673b['className']=_0x2799da['classes']+'\x20ck-track-changes-preview__root-container',_0xf9673b['innerHTML']=_0x2799da['content'],_0xd5f1ef['push'](_0xf9673b);}_0x11a602(this['element'],_0xd5f1ef),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Yt{constructor(_0x5a6906){super(_0x5a6906),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x16d6b6=this['editor'],_0x10940a=_0x16d6b6['locale'],_0x540860=_0x16d6b6['plugins']['get']('Dialog');let _0x2a2435;const _0x18e10e=function(_0x4d1a77){const _0xa3f074={};if('editables'in _0x4d1a77['ui']['view']){for(const [_0x500e74,_0x40b049]of Object['entries'](_0x4d1a77['ui']['view']['editables']))_0xa3f074[_0x500e74]=_0x40b049['element'];}else _0xa3f074[_0x4d1a77['model']['document']['getRootNames']()[0x0]]=_0x4d1a77['ui']['view']['editable']['element'];return _0xa3f074;}(_0x16d6b6),_0x428e25=function(_0x7cb24){let _0x22a7ba=0x0;for(const _0x36a28d of Object['values'](_0x7cb24))_0x22a7ba=Math['max'](_0x22a7ba,_0x36a28d['getBoundingClientRect']()['width']);let _0x5df5cd=0x0;for(const _0x5df704 of Object['values'](_0x7cb24))_0x5df5cd+=_0x5df704['getBoundingClientRect']()['height'];const _0x3d8e6c=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x40421e=Math['min'](_0x5df5cd,_0x3d8e6c);return{'width':_0x22a7ba,'height':_0x40421e};}(_0x18e10e);_0x540860['show']({'id':'finalContentPreview','title':o(_0x10940a,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x10940a,{'dialogRects':_0x428e25}),'onHide':()=>{_0x2a2435['detachFromDom']();},'onShow':()=>{_0x16d6b6['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0xc12d46=>{const _0xd1b4dc=this['_standarizeRootsData'](_0xc12d46,_0x16d6b6,_0x18e10e);_0x540860['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0xd1b4dc,_0x16d6b6['config']['get']('trackChanges.preview.renderFunction'));}),_0x2a2435=new _0x8ef820(_0x10940a,[_0x540860['view']]),_0x2a2435['attachToDom'](),_0x2a2435['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x16d6b6['once']('destroy',()=>{_0x2a2435['detachFromDom']();});const _0x312b71=_0x540860['view']['headerView']['class'];_0x540860['view']['headerView']['class']=_0x312b71?_0x312b71+'\x20ck-reset_all':'ck-reset_all',_0x540860['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x540860['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x1ce411=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x16a1ef=_0x1ce411['previewMode'],_0x15aea7={};if('$labels'===_0x16a1ef){for(const _0x37d44c of _0x1ce411['getMergeFieldsIds']())_0x15aea7[_0x37d44c]=_0x1ce411['getLabel'](_0x37d44c)||_0x37d44c;}else{const _0x739c5='$defaultValues'===_0x16a1ef?_0x1ce411['getDefaultValues']():_0x1ce411['getDataSetValues'](_0x16a1ef,!0x0);for(const _0x1da011 of Object['entries'](_0x739c5)){const [_0x3fa49d,_0x18dc46]=_0x1da011;_0x15aea7[_0x3fa49d]=null!==_0x18dc46?_0x18dc46:_0x1ce411['getLabel'](_0x3fa49d)||_0x3fa49d;}}return{'mergeFieldsData':_0x15aea7};}['_standarizeRootsData'](_0x5da4fc,_0x5471d5,_0x31ca78){let _0x550fc8;if('string'==typeof _0x5da4fc){const _0x2b8cb0=_0x5471d5['model']['document']['getRootNames']()[0x0];_0x550fc8={[_0x2b8cb0]:_0x5da4fc};}else _0x550fc8=_0x5da4fc;const _0x1c9ea2=this['_fixMediaEmbeds'](_0x550fc8,_0x5471d5),_0x159668=function(_0x26e845,_0x242639){for(const [_0x57ffae,_0x227a82]of _0x26e845)_0x227a82['classes']=_0x242639[_0x57ffae]['classList']['value']['replace']('ck-focused','');return _0x26e845;}(this['_sortRoots'](_0x5471d5)['reduce']((_0x448a14,_0x42d8c1)=>(_0x448a14['push']([_0x42d8c1,{'content':_0x1c9ea2[_0x42d8c1],'classes':''}]),_0x448a14),[]),_0x31ca78);return _0x159668;}['_fixMediaEmbeds'](_0x2bd587,_0x4bbb22){if(!_0x4bbb22['plugins']['has']('MediaEmbedEditing'))return _0x2bd587;const _0x46c5c3=_0x4bbb22['plugins']['get']('MediaEmbedEditing');for(const [_0x3557d5,_0x3de529]of Object['entries'](_0x2bd587)){const _0x3a8d22=document['createElement']('div');_0x3a8d22['innerHTML']=_0x3de529,(_0x3a8d22['querySelectorAll']('figure.media')['forEach'](_0x132f80=>{const _0x48692=_0x132f80['querySelector']('oembed');if(_0x48692){const _0x612196=_0x48692['getAttribute']('url');if(_0x612196){const _0x31557d=_0x46c5c3['registry']['getMediaViewElement'](new _0x4df6c2(_0x4bbb22['editing']['view']['document']),_0x612196,{'elementName':'','renderForEditingView':!0x0}),_0x5b5316=document['createElement']('div');_0x5b5316['classList']['add']('ck-media__wrapper'),_0x31557d['render'](_0x5b5316,_0x4bbb22['editing']['view']['domConverter']),_0x48692['replaceWith'](_0x5b5316);}}}),_0x2bd587[_0x3557d5]=_0x3a8d22['innerHTML']);}return _0x2bd587;}['_sortRoots'](_0x3281cd){if(!function(_0x3754b1){return void 0x0!==_0x3754b1['getRootsAttributes'];}(_0x3281cd))return _0x3281cd['model']['document']['getRootNames']();const _0x1fbc18=[],_0x38954a=new Map();for(const _0x27f604 of _0x3281cd['model']['document']['getRootNames']()){const _0x3566ee=_0x3281cd['editing']['view']['getDomRoot'](_0x27f604)['getClientRects']()['item'](0x0);_0x1fbc18['push'](_0x27f604),_0x38954a['set'](_0x27f604,_0x3566ee);}return _0x1fbc18['sort']((_0x21dd8b,_0x2b7e81)=>{const _0x4e0ac3=_0x38954a['get'](_0x21dd8b),_0x3050a3=_0x38954a['get'](_0x2b7e81);return _0x4e0ac3['y']-_0x3050a3['y']||_0x4e0ac3['x']-_0x3050a3['x'];}),_0x1fbc18;}}class te extends _0x99cb74{static get['requires'](){return[T,_0x4e5225];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x538264){super(_0x538264),_0x538264['commands']['add']('previewFinalContent',new re(this['editor'])),_0x538264['config']['define']('trackChanges.preview.renderFunction',(_0x35c096,_0x2cb8f2)=>{for(const _0x4caa1e of _0x2cb8f2)_0x35c096['appendChild'](_0x4caa1e);});}}export{ms as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};