@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250405.0 → 0.0.0-nightly-20250406.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 _0xf75a64,Plugin as _0x5543a6,PendingActions as _0xe971b5}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x4f581a,ObservableMixin as _0xd83ec1,uid as _0x25d5a0,priorities as _0xc6f25c,insertToPriorityArray as _0x33c3a3,logWarning as _0x2fb80f,getEnvKeystrokeText as _0x105d0d,FocusTracker as _0x5f3a02,KeystrokeHandler as _0x1a48a0,Collection as _0x212a21}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x207077,IconCancel as _0x2371e1,IconTrackChanges as _0x50eba3}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0xd37628,View as _0x6ca1cc,ViewCollection as _0x177fd0,FocusCycler as _0xd93ef5,ViewModel as _0x2ac537,createDropdown as _0x4d94ac,SplitButtonView as _0x8d227a,addListToDropdown as _0x4fd256,MenuBarMenuView as _0x331706,MenuBarMenuListView as _0x43292a,ListSeparatorView as _0x5af358,MenuBarMenuListItemView as _0x468583,MenuBarMenuListItemButtonView as _0x3067f9,BodyCollection as _0x1f385a,Dialog as _0x1ea185}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x327c0e,hashObject as _0x526b92,surroundingMarkersDetector as _0xa66937,FOCUS_ANNOTATION_KEYSTROKE as _0x669480,AriaDescriptionView as _0x482e8d,setupThreadKeyboardNavigation as _0x1de87c,trimHtml as ti,UserView as _0x798988,LateFocusButtonView as _0x53595a,getDateTimeFormatter as _0x5e9250,getAllMarkersDomElementsSorted as _0x39b2e,sanitizeEditorConfig as _0x40a73e}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x322663,LiveRange as _0x24a0f9,LivePosition as _0xf32cb9,DowncastWriter as _0x45bb38}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x255fa8,toWidget as _0x1add60}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3f5df1,set as _0x484f7f,isEqual as _0x53b5bd,unset as _0x28112b,omit as Ft}from'es-toolkit/compat';import{Delete as _0x1ed0ec,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0xa783ec}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x3d6ba0}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0xf75a64{['_enabledCommands'];constructor(_0x13a834,_0x508df9){super(_0x13a834),this['_enabledCommands']=_0x508df9,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 _0x440d9d of this['editor']['commands']['commands']())_0x440d9d['affectsData']&&!this['_enabledCommands']['has'](_0x440d9d)&&_0x440d9d['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3ef5ed of this['editor']['commands']['commands']())_0x3ef5ed['affectsData']&&!this['_enabledCommands']['has'](_0x3ef5ed)&&_0x3ef5ed['clearForceDisabled']('TrackChangesCommand');}}class O extends _0xf75a64{['_suggestions'];constructor(_0x1dac5d,_0x343dd4){super(_0x1dac5d),this['_suggestions']=_0x343dd4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x29baf1){const _0xd9f32a=this['_suggestions']['get'](_0x29baf1);if(!_0xd9f32a)throw new _0x4f581a('track-changes-accept-suggestion-not-found',this);const _0x457fa5=_0xd9f32a['getRanges']();this['editor']['model']['canEditAt'](_0x457fa5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xd9f32a);}}class R extends _0xf75a64{['_suggestions'];constructor(_0x4c4101,_0xa4612a){super(_0x4c4101),this['_suggestions']=_0xa4612a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5e5732){const _0x2996c2=this['_suggestions']['get'](_0x5e5732);if(!_0x2996c2)throw new _0x4f581a('track-changes-discard-suggestion-not-found',this);const _0x2d492=_0x2996c2['getRanges']();this['editor']['model']['canEditAt'](_0x2d492)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2996c2);}}function ls(_0x49411c,_0x77445d){let _0x1bb6df='';return _0x1bb6df+=_0x49411c['split']('*')['map']((_0x337297,_0x23082a)=>_0x23082a%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x337297)+'</span>':nn(_0x337297))['join'](''),_0x77445d&&(_0x1bb6df+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x77445d['value']+'\x22\x20title=\x22'+_0x77445d['title']+'\x22></span>'),_0x1bb6df;}function nn(_0x17738d){const _0x45a440=document['createElement']('span');return _0x45a440['innerText']=_0x17738d,_0x45a440['innerHTML'];}function ts(_0xe6b21a){return _0xe6b21a['sort']((_0x1c935e,_0x3c7cd6)=>'deletion'==_0x1c935e['type']&&'deletion'!=_0x3c7cd6['type']?-0x1:'deletion'!=_0x1c935e['type']&&'deletion'==_0x3c7cd6['type']?0x1:0x0);}function to(_0x5ea2e7,_0x543b22){let _0x5ba72,_0x181265=0x0;const _0x39e417=[],_0xc03f1d=_0x543b22['schema'];for(;_0x181265<_0x5ea2e7['length'];){const _0x5196f7=_0x5ea2e7[_0x181265],_0x9ce1f5=_0x5ea2e7[_0x181265+0x1];_0x5ba72||(_0x5ba72=_0x543b22['createPositionBefore'](_0x5196f7)),on(_0x543b22,_0x5196f7,_0x9ce1f5)||(_0x39e417['push'](_0x543b22['createRange'](_0x5ba72,_0xc03f1d['isObject'](_0x5196f7)?_0x543b22['createPositionAfter'](_0x5196f7):_0x543b22['createPositionAt'](_0x5196f7,'end'))),_0x5ba72=null),_0x181265++;}return _0x39e417;}function on(_0x5f54d1,_0x5e1814,_0x2749c4){if(!_0x2749c4)return!0x1;const _0x132a60=_0x5f54d1['createPositionAfter'](_0x5e1814),_0x469dc8=_0x5f54d1['createPositionBefore'](_0x2749c4);return _0x132a60['isTouching'](_0x469dc8);}function rs(_0x355707,_0x1dab15,_0x3e09ae){for(;_0x3e09ae['length'];){const _0x5ab310=_0x3e09ae['splice'](0x0,0x64);_0x355707['change'](()=>{for(const _0x2d0f92 of _0x5ab310)_0x2d0f92['isInContent']&&_0x1dab15['execute'](_0x2d0f92['id']);});}}class x extends _0xf75a64{['_command'];['_suggestions'];constructor(_0x223250,_0x4758e0,_0x2ef41b){super(_0x223250),this['_command']=_0x4758e0,this['_suggestions']=_0x2ef41b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3b89be=Array['from'](this['_suggestions']['values']())['some'](_0x3dd6f9=>_0x3dd6f9['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3b89be;}['execute'](){const _0x14403a=ts(Array['from'](this['_suggestions']['values']()));for(const _0x25a152 of _0x14403a){const _0x358427=_0x25a152['getRanges']();if(!this['editor']['model']['canEditAt'](_0x358427))return;}rs(this['editor']['model'],this['_command'],_0x14403a);}}class E extends _0xf75a64{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x511db8,_0x35eebe,_0x43d37c){super(_0x511db8),this['_command']=_0x35eebe,this['_suggestions']=_0x43d37c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdbb2aa=this['editor']['model']['document']['selection'],_0x374c40=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x90100e,_0x302608){const _0x29fc3d=Array['from'](_0x90100e['getRanges']()),_0x2694ba=new Set();for(const _0xb15793 of _0x302608)if(_0xb15793['isInContent']){for(const _0x3e839b of _0x29fc3d)for(const _0x1de6b2 of _0xb15793['getRanges']())(_0x3e839b['isIntersecting'](_0x1de6b2)||_0x90100e['isCollapsed']&&!_0xb15793['isMultiRange']&&_0xb15793['next']&&_0x1de6b2['end']['isTouching'](_0x3e839b['start']))&&_0x2694ba['add'](_0xb15793);}return _0x2694ba;}(_0xdbb2aa,_0x374c40),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x56c205=ts(Array['from'](this['_selectedSuggestions']));for(const _0x3dc85f of _0x56c205){const _0x1e6ce0=_0x3dc85f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e6ce0))return;}rs(this['editor']['model'],this['_command'],_0x56c205);}}class o extends/* #__PURE__ -- @preserve */
24
- _0xd83ec1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3ad1de,_0x3aeef7){super(),this['id']=_0x3aeef7['id'],this['type']=_0x3aeef7['type'],this['subType']=_0x3aeef7['subType']||null,this['author']=_0x3aeef7['author'],this['creator']=_0x3aeef7['creator']||_0x3aeef7['author'],this['isExternal']=Boolean(_0x3aeef7['attributes']&&_0x3aeef7['attributes']['@external']),this['data']=null,this['_model']=_0x3ad1de,this['_onAccept']=_0x3aeef7['onAccept'],this['_onDiscard']=_0x3aeef7['onDiscard'],this['_onAttributesChange']=_0x3aeef7['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x3aeef7['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 _0x1f278f=this;for(;_0x1f278f['previous'];)_0x1f278f=_0x1f278f['previous'];return _0x1f278f;}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'](_0x5ca783){this['_markerNames']['add'](_0x5ca783);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x30aa25=>this['_model']['markers']['get'](_0x30aa25))['filter'](_0xc75926=>_0xc75926);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x6d388e=>{for(const _0x558e53 of this['getMarkers']())_0x6d388e['removeMarker'](_0x558e53);}),this['_markerNames']['clear']();}['removeMarker'](_0x33d410){this['_model']['change'](_0x151325=>{_0x151325['removeMarker'](_0x33d410);}),this['_markerNames']['delete'](_0x33d410);}['addRange'](_0x30b692){const _0x514f3e='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x514f3e),this['_model']['change'](_0x221841=>{_0x221841['addMarker'](_0x514f3e,{'range':_0x30b692,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x55a845){for(const _0xf20ae1 of this['getRanges']())if(_0xf20ae1['isIntersecting'](_0x55a845))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x5bd143=>_0x5bd143['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0xc8b40a,_0xd8fc21)=>[..._0xc8b40a,..._0xd8fc21['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x15e41e=this['getRanges']();if(0x1!=_0x15e41e['length'])return null;const _0x13ab10=_0x15e41e[0x0],_0x4286f8=_0x13ab10['start']['nodeAfter'],_0x2a9f59=_0x13ab10['end']['nodeBefore'];return _0x4286f8 instanceof _0x322663?_0x4286f8!=_0x2a9f59?null:_0x4286f8: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 _0x4fbbbc=[];let _0x57c81d=this['head'];for(;_0x57c81d;)_0x4fbbbc['push'](_0x57c81d),_0x57c81d=_0x57c81d['next'];return _0x4fbbbc;}['setAttribute'](_0x30df56,_0x2b31e5){const _0x52abe8=_0x3f5df1(this['attributes']);_0x484f7f(_0x52abe8,_0x30df56,_0x2b31e5),_0x53b5bd(_0x52abe8,this['attributes'])||(this['attributes']=_0x52abe8,this['_onAttributesChange'](_0x52abe8));}['removeAttribute'](_0x3877ba){const _0x119b2e=_0x3f5df1(this['attributes']);_0x28112b(_0x119b2e,_0x3877ba),_0x53b5bd(_0x119b2e,this['attributes'])||(this['attributes']=_0x119b2e,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 _0x25d5a0()['substr'](0x1,0x5);}}function c(_0x41e894,_0x499c8b,_0x3b8eae){const _0x4f335f=_0x41e894['t'],t=_0x41e894['t'];switch(_0x499c8b){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',_0x3b8eae);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3b8eae);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3b8eae);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3b8eae);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3b8eae);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',_0x3b8eae);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3b8eae);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',_0x3b8eae);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3b8eae);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3b8eae);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3b8eae);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3b8eae);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3b8eae);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3b8eae);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3b8eae);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3b8eae);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3b8eae);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3b8eae);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3b8eae);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3b8eae);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3b8eae);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3b8eae);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3b8eae);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3b8eae);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3b8eae);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3b8eae);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3b8eae);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3b8eae);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3b8eae);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3b8eae);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3b8eae);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3b8eae);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3b8eae);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3b8eae);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3b8eae);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'},_0x3b8eae);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3b8eae);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 _0x4f335f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3b8eae);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x4f335f({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3b8eae);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);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'},_0x3b8eae);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x499c8b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a7e20,_0x311cad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a7e20,this['_locale']=_0x311cad;}['getDescriptions'](_0x39e890){const _0x257609=[],_0x259939=new Set(),_0x1b3754=new Set();for(let _0x1d318d=0x0;_0x1d318d<_0x39e890['length'];_0x1d318d++){const _0x404d27=_0x39e890[_0x1d318d];if(!_0x404d27['isInContent'])continue;const _0xbc0bb3=this['_handleCustomCallbackDescription'](_0x404d27);if(_0xbc0bb3){if(null!=_0x404d27['subType']){if(_0x259939['has'](_0x404d27['subType']))continue;_0x259939['add'](_0x404d27['subType']);}_0x257609['push'](_0xbc0bb3);}else{if('attribute'!=_0x404d27['type'])'insertion'!=_0x404d27['type']&&'deletion'!=_0x404d27['type']||this['_handleInsertRemoveSuggestionDescription'](_0x257609,_0x404d27,_0x39e890[_0x1d318d+0x1]);else{const _0xcccab8=_0x404d27['data']['key'];if(_0x1b3754['has'](_0xcccab8))continue;_0x1b3754['add'](_0x404d27['data']['key']),_0xcccab8==u?this['_handleRenameSuggestionDescription'](_0x257609,_0x404d27):this['_handleAttributeSuggestionDescription'](_0x257609,_0x404d27);}}}return this['_resolveDescriptionItems'](_0x257609);}['registerDescriptionCallback'](_0x33a93f){this['_customCallbacks']['push'](_0x33a93f);}['registerElementLabel'](_0x1ea8dd,_0x2f37c1,_0x2c01d1=_0xc6f25c['normal']){'function'==typeof _0x1ea8dd?_0x33c3a3(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ea8dd,'label':_0x2f37c1,'priority':_0x2c01d1}):this['_itemLabels']['set'](_0x1ea8dd,_0x2f37c1);}['registerAttributeLabel'](_0x204a23,_0x5d0914){this['_attributeLabels']['set'](_0x204a23,_0x5d0914);}['getItemLabel'](_0x3de5ed,_0x16f589=0x1){let _0x1c52c6;for(const _0x234a4b of this['_itemLabelsCallbacks'])if(_0x234a4b['matchingCallback'](_0x3de5ed)){_0x1c52c6=_0x234a4b['label'];break;}return _0x1c52c6||(_0x1c52c6=this['_itemLabels']['get'](_0x3de5ed['name'])),_0x1c52c6?_0x1c52c6(_0x16f589):0x1!==_0x16f589?_0x16f589+'\x20'+_0x3de5ed['name']+'s':''+_0x3de5ed['name'];}['_addDescriptionItems'](_0x59b0ab,_0x5ce062){const _0x5a6761=_0x5ce062['getFirstRange']()['getWalker'](),_0x2966fb='insertion'==_0x5ce062['type']?'add':'remove';for(const _0x30fd34 of _0x5a6761){const _0x51b942=_0x30fd34['item'],_0x4c4c35=_0x59b0ab[_0x59b0ab['length']-0x1];if(_0x51b942['is']('$textProxy'))_0x4c4c35&&_0x4c4c35['type']['indexOf']('Container')>-0x1&&_0x59b0ab['pop'](),_0x4c4c35&&'text'==_0x4c4c35['type']?_0x4c4c35[_0x2966fb]+=_0x51b942['data']:_0x59b0ab['push']({'type':'text','add':'add'==_0x2966fb?_0x51b942['data']:'','remove':'remove'==_0x2966fb?_0x51b942['data']:''});else{if(this['_schema']['isObject'](_0x51b942)){const _0x1fc6b9=_0x51b942;if(_0x4c4c35&&_0x4c4c35['type']['indexOf']('Container')>-0x1&&_0x59b0ab['pop'](),'elementEnd'==_0x30fd34['type'])continue;_0x4c4c35&&_0x4c4c35['type']==_0x2966fb+'Object'&&_0x4c4c35['element']['name']==_0x1fc6b9['name']?_0x4c4c35['quantity']++:_0x59b0ab['push']({'type':_0x2966fb+'Object','element':_0x1fc6b9,'quantity':0x1}),_0x5a6761['skip'](_0x2fa4ed=>!('elementEnd'==_0x2fa4ed['type']&&_0x2fa4ed['item']==_0x51b942));}else{if(this['_schema']['checkChild'](_0x51b942,'$text')||_0x51b942['is']('element','softBreak')){const _0x45ad77=_0x51b942;if('add'==_0x2966fb&&'elementStart'==_0x30fd34['type']||'remove'==_0x2966fb&&'elementEnd'==_0x30fd34['type'])continue;if(_0x4c4c35&&-0x1==_0x4c4c35['type']['indexOf']('Container')){'text'==_0x4c4c35['type']&&(_0x4c4c35[_0x2966fb]+='\x0a');continue;}let _0x5b4901;if(_0x5b4901='add'==_0x2966fb?_0x45ad77['nextSibling']&&!this['_schema']['isObject'](_0x45ad77['nextSibling'])?_0x45ad77['nextSibling']:null:_0x45ad77['previousSibling']&&!this['_schema']['isObject'](_0x45ad77['previousSibling'])?_0x45ad77['previousSibling']:null,_0x45ad77['isEmpty']||_0x5b4901&&_0x5b4901['isEmpty']){const _0x3585fa=_0x5b4901&&_0x5b4901['isEmpty']?_0x5b4901:_0x45ad77;_0x4c4c35&&_0x4c4c35['type']==_0x2966fb+'EmptyContainer'&&_0x4c4c35['element']['name']==_0x3585fa['name']?_0x4c4c35['quantity']++:_0x59b0ab['push']({'type':_0x2966fb+'EmptyContainer','element':_0x3585fa,'quantity':0x1});}else _0x59b0ab['push']({'type':_0x2966fb+'Container','element':_0x45ad77});}}}}}['_resolveDescriptionItems'](_0xd6a333){const _0x349472=this['_locale'],_0x226d56=[],_0x185076=[],_0x352b2d=[];for(const _0x1d18ea of _0xd6a333)switch(_0x1d18ea['type']){case'text':if(_0x1d18ea['add']=_0x1d18ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1d18ea['remove']=_0x1d18ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1d18ea['add']&&''!=_0x1d18ea['remove']){_0x226d56['push']({'type':'replace','content':c(_0x349472,'REPLACE_TEXT',['\x22'+_0x1d18ea['remove']+'\x22','\x22'+_0x1d18ea['add']+'\x22'])});continue;}if(null!=_0x1d18ea['add']['match'](/^ +$/)){_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0',c(_0x349472,'ELEMENT_SPACE',_0x1d18ea['add']['length']))});continue;}if(null!=_0x1d18ea['remove']['match'](/^ +$/)){_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0',c(_0x349472,'ELEMENT_SPACE',_0x1d18ea['remove']['length']))});continue;}if(''!=_0x1d18ea['add']){_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0','\x22'+_0x1d18ea['add']+'\x22')});continue;}_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0','\x22'+_0x1d18ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Insert:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Remove:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'addContainer':_0x226d56['push']({'type':'insertion','content':c(_0x349472,'*Split:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'removeContainer':_0x226d56['push']({'type':'deletion','content':c(_0x349472,'*Merge:*\x20%0',this['getItemLabel'](_0x1d18ea['element'],_0x1d18ea['quantity']))});continue;case'addFormat':_0x185076['push'](_0x1d18ea['key']);continue;case'removeFormat':_0x352b2d['push'](_0x1d18ea['key']);continue;default:_0x226d56['push'](_0x1d18ea);}if(_0x185076['length']){const _0x43d9a0=_0x185076['map'](_0x714b4a=>this['_attributeLabels']['has'](_0x714b4a)?this['_attributeLabels']['get'](_0x714b4a):_0x714b4a)['join'](',\x20');_0x226d56['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x43d9a0)});}if(_0x352b2d['length']){const _0x11dc9f=_0x352b2d['map'](_0x4970f1=>this['_attributeLabels']['has'](_0x4970f1)?this['_attributeLabels']['get'](_0x4970f1):_0x4970f1)['join'](',\x20');_0x226d56['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x11dc9f)});}return _0x226d56;}['_handleCustomCallbackDescription'](_0x5693f4){for(const _0x19deee of this['_customCallbacks']){const _0x39aed3=_0x19deee(_0x5693f4);if(_0x39aed3&&'type'in _0x39aed3)return _0x39aed3;}}['_handleAttributeSuggestionDescription'](_0xcbd1fc,_0x53a97e){const _0x1297ec=_0x53a97e['data'],_0x305051=void 0x0===_0x1297ec['newValue']?'removeFormat':'addFormat';_0xcbd1fc['push']({'type':_0x305051,'key':_0x1297ec['key']});}['_handleRenameSuggestionDescription'](_0x3a3b5c,_0x450bf5){_0x3a3b5c['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x450bf5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2fabfb,_0x17d8d7,_0x1a898e){if(this['_addDescriptionItems'](_0x2fabfb,_0x17d8d7),_0x1a898e&&_0x1a898e['getFirstRange']()&&!_0x17d8d7['getFirstRange']()['end']['isEqual'](_0x1a898e['getFirstRange']()['start'])){const _0x6e73df=_0x2fabfb[_0x2fabfb['length']-0x1],_0x39b737='insertion'==_0x17d8d7['type']?'add':'remove';_0x6e73df&&'text'==_0x6e73df['type']&&(_0x6e73df[_0x39b737]+='\x0a');}}}class U extends _0x5543a6{['afterInit'](){const _0x1d9ee3=this['editor'],_0x345fd6=_0x1d9ee3['plugins']['get']('TrackChangesEditing');_0x1d9ee3['commands']['get']('showAIAssistant')&&_0x345fd6['enableCommand']('showAIAssistant');}}class V extends _0x5543a6{['afterInit'](){const _0x27afb5=this['editor'],_0x21c645=_0x27afb5['locale'];if(!_0x27afb5['plugins']['has']('AlignmentEditing'))return;const _0x487d66=_0x27afb5['plugins']['get']('TrackChangesEditing');_0x487d66['enableDefaultAttributesIntegration']('alignment'),_0x487d66['registerBlockAttribute']('alignment'),_0x487d66['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x21c645,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42df39=this['editor'],_0x445e96=_0x42df39['locale'];_0x42df39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aff62=>{if('formatBlock'!=_0x1aff62['type'])return;const {data:_0x3d4442}=_0x1aff62;if(_0x3d4442&&'alignment'==_0x3d4442['commandName']){const _0x2a5466=_0x3d4442['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x445e96,'*Format:*\x20%0',function(_0x2e38fe){switch(_0x2e38fe){case'left':return c(_0x445e96,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x445e96,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x445e96,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x445e96,'FORMAT_JUSTIFY_TEXT');}}(_0x2a5466))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x5543a6{['afterInit'](){const _0x3b4188=this['editor'],_0x2bd32d=_0x3b4188['plugins']['get']('TrackChangesEditing'),_0x3fcaa7=_0x3b4188['locale'];for(const _0x1533af of Zt){if(!_0x3b4188['plugins']['has'](_0x1533af))continue;const _0x162fe4=_0x1533af['slice'](0x0,-0x7)['toLowerCase'](),_0x47af0c='FORMAT_'+_0x162fe4['toUpperCase']();_0x2bd32d['enableDefaultAttributesIntegration'](_0x162fe4),_0x2bd32d['registerInlineAttribute'](_0x162fe4),_0x2bd32d['descriptionFactory']['registerAttributeLabel'](_0x162fe4,c(_0x3fcaa7,_0x47af0c));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c531d=this['editor'],_0x3128f8=_0x3c531d['locale'],_0x37e962=_0x3c531d['plugins']['get']('TrackChangesEditing');function _0x8cf666(_0x23a9f7,_0x13d684){_0x37e962['descriptionFactory']['registerDescriptionCallback'](_0x3bd89b=>{if('formatInline'!=_0x3bd89b['type'])return;const {data:_0x52e01c}=_0x3bd89b;return _0x52e01c&&_0x52e01c['commandName']===_0x23a9f7?_0x52e01c['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x3128f8,'*Format:*\x20%0',_0x13d684)}:{'type':'format','content':c(_0x3128f8,'*Remove\x20format:*\x20%0',_0x13d684)}:void 0x0;});}_0x8cf666('bold',c(_0x3128f8,'FORMAT_BOLD')),_0x8cf666('italic',c(_0x3128f8,'FORMAT_ITALIC')),_0x8cf666('underline',c(_0x3128f8,'FORMAT_UNDERLINE')),_0x8cf666('code',c(_0x3128f8,'FORMAT_CODE')),_0x8cf666('strikethrough',c(_0x3128f8,'FORMAT_STRIKETHROUGH')),_0x8cf666('subscript',c(_0x3128f8,'FORMAT_SUBSCRIPT')),_0x8cf666('superscript',c(_0x3128f8,'FORMAT_SUPERSCRIPT'));}}class G extends _0x5543a6{['afterInit'](){const _0x238a22=this['editor'],_0xc64444=_0x238a22['locale'];if(!_0x238a22['plugins']['has']('BlockQuoteEditing'))return;const _0x59f0e7=_0x238a22['plugins']['get']('TrackChangesEditing'),_0x2ad763=this['editor']['commands']['get']('blockQuote');_0x59f0e7['enableCommand']('blockQuote',(_0x2fca4e,_0x49084b={})=>{const _0x10d3c8=this['editor']['model']['document']['selection'],_0x306fd2=_0x49084b&&void 0x0!==_0x49084b['forceValue']?_0x49084b['forceValue']:!_0x2ad763['value'];let _0x123d69=[];if(_0x306fd2){const _0x1652cf=Array['from'](_0x10d3c8['getSelectedBlocks']())['filter'](_0x516de5=>oo(_0x516de5)||function(_0x3ce396,_0x40cd6f){const _0xd4ac82=_0x40cd6f['checkChild'](_0x3ce396['parent'],'blockQuote'),_0x5d6400=_0x40cd6f['checkChild'](['$root','blockQuote'],_0x3ce396);return _0xd4ac82&&_0x5d6400;}(_0x516de5,this['editor']['model']['schema']));_0x123d69=to(_0x1652cf,_0x238a22['model']);}else{const _0x18f219=Array['from'](_0x10d3c8['getSelectedBlocks']())['filter'](_0x81da0a=>oo(_0x81da0a));_0x123d69=to(_0x18f219,_0x238a22['model']);}_0x238a22['model']['change'](()=>{for(const _0x3d18bb of _0x123d69)_0x59f0e7['markBlockFormat'](_0x3d18bb,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x306fd2}]});});}),_0x59f0e7['descriptionFactory']['registerDescriptionCallback'](_0x508354=>{const {data:_0x31e38a}=_0x508354;if(_0x31e38a&&'blockQuote'==_0x31e38a['commandName']){const _0x4f11a=c(_0xc64444,'ELEMENT_BLOCK_QUOTE');return _0x31e38a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xc64444,'*Set\x20format:*\x20%0',_0x4f11a)}:{'type':'format','content':c(_0xc64444,'*Remove\x20format:*\x20%0',_0x4f11a)};}});}}function oo(_0x39bb49){return'blockQuote'==_0x39bb49['parent']['name'];}class L extends _0x5543a6{['afterInit'](){const _0x46f384=this['editor'],_0x2a8ced=_0x46f384['locale'],_0x527b50=_0x46f384['plugins']['get']('TrackChangesEditing');_0x46f384['plugins']['has']('BookmarkEditing')&&(_0x527b50['enableCommand']('insertBookmark'),_0x527b50['enableDefaultAttributesIntegration']('updateBookmark'),_0x527b50['registerBlockAttribute']('bookmarkId'),_0x527b50['descriptionFactory']['registerDescriptionCallback'](_0x2ff8db=>{if('insertion'!=_0x2ff8db['type']&&'deletion'!=_0x2ff8db['type']&&'attribute'!=_0x2ff8db['type'])return;const _0xbd1c4=_0x2ff8db['getContainedElement']();if(null==_0xbd1c4)return;if(!_0xbd1c4['is']('element','bookmark'))return;const _0x3b7c22=_0xbd1c4['getAttribute']('bookmarkId');if('insertion'==_0x2ff8db['type'])return{'type':'insertion','content':c(_0x2a8ced,'*Insert:*\x20%0','\x22'+_0x3b7c22+'\x22\x20'+c(_0x2a8ced,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2ff8db['type'])return{'type':'deletion','content':c(_0x2a8ced,'*Remove:*\x20%0','\x22'+_0x3b7c22+'\x22\x20'+c(_0x2a8ced,'ELEMENT_BOOKMARK'))};const {data:_0x549206}=_0x2ff8db;if(!_0x549206||'bookmarkId'!=_0x549206['key'])return;return{'type':'format','content':c(_0x2a8ced,'*Set\x20bookmark:*\x20%0','\x22'+_0x549206['newValue']+'\x22')};}));}}class J extends _0x5543a6{['afterInit'](){const _0x15497d=this['editor'];_0x15497d['plugins']['has']('CaseChange')&&(_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x15497d['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x5543a6{['afterInit'](){const _0x335814=this['editor'];_0x335814['commands']['get']('ckbox')&&_0x335814['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x5543a6{['afterInit'](){const _0x119ae5=this['editor'];if(!_0x119ae5['plugins']['has']('CodeBlock'))return;const _0x302d6a=_0x119ae5['plugins']['get']('TrackChangesEditing'),_0x5a0b0d=_0x119ae5['locale'],_0x23200b=_0x119ae5['config']['get']('codeBlock')['languages'],_0x5bd401=_0x119ae5['commands']['get']('codeBlock');_0x302d6a['enableCommand']('indentCodeBlock'),_0x302d6a['enableCommand']('outdentCodeBlock'),_0x302d6a['enableCommand']('codeBlock',(_0x2c9eda,_0x36509c={})=>{const _0x13c718=_0x119ae5['model'],_0x375fef=_0x119ae5['model']['document']['selection'],_0x2fbe22=_0x36509c&&void 0x0!==_0x36509c['forceValue']?_0x36509c['forceValue']:!_0x5bd401['value'];let _0x534305;_0x36509c['language']||(_0x36509c['language']=_0x23200b[0x0]['language']),_0x534305=_0x2fbe22?Array['from'](_0x375fef['getSelectedBlocks']())['filter'](_0x9a3477=>eo(_0x9a3477)||function(_0x58838e,_0x4a64a3){if(_0x58838e['is']('rootElement')||_0x4a64a3['isLimit'](_0x58838e))return!0x1;return _0x4a64a3['checkChild'](_0x58838e['parent'],'codeBlock');}(_0x9a3477,_0x13c718['schema'])):Array['from'](_0x375fef['getSelectedBlocks']())['filter'](_0x38234b=>eo(_0x38234b));const _0x3c15a6=to(_0x534305,_0x13c718);_0x13c718['change'](()=>{for(const _0x1090a7 of _0x3c15a6)_0x302d6a['markBlockFormat'](_0x1090a7,{'commandName':'codeBlock','commandParams':[{..._0x36509c,'forceValue':_0x2fbe22}],'formatGroupId':'blockName'});});}),(_0x302d6a['descriptionFactory']['registerElementLabel']('codeBlock',_0x2953be=>c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',_0x2953be)),_0x302d6a['descriptionFactory']['registerDescriptionCallback'](_0x1efe93=>{if('formatBlock'!=_0x1efe93['type'])return;const _0xad7ac7=_0x5a0b0d['t'],{data:_0x4afb17}=_0x1efe93;if(!_0x4afb17||'codeBlock'!=_0x4afb17['commandName'])return;const _0x263e0d=_0x4afb17['commandParams'][0x0]['language'],_0x56909e=_0xad7ac7(_0x23200b['find'](_0x1b60bd=>_0x1b60bd['language']===_0x263e0d)['label'])['toLowerCase']();return _0x4afb17['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x5a0b0d,'*Set\x20format:*\x20%0',c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x56909e+')')}:{'type':'format','content':c(_0x5a0b0d,'*Remove\x20format:*\x20%0',c(_0x5a0b0d,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x5bb71f){return'codeBlock'==_0x5bb71f['name'];}class q extends _0x5543a6{['afterInit'](){const _0x1d3099=this['editor'];if(!_0x1d3099['plugins']['has']('CommentsEditing'))return;_0x1d3099['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x2e91a8,_0x1a81aa,_0x2271bf){const _0x4c0d5d=[];for(const _0x18e939 of _0x1a81aa['getItems']())_0x18e939['hasAttribute'](_0x2e91a8)&&_0x4c0d5d['push'](_0x2271bf['createRangeOn'](_0x18e939));return _0x4c0d5d;}function Fe(_0x15cced,_0x1fe86b,{showActiveMarker:_0x51d983=!0x0}={}){const _0x848300=_0x15cced['plugins']['get']('TrackChangesEditing');return(_0x45a585,_0x594f30,_0x2d3380)=>{if(!_0x2d3380['consumable']['test'](_0x594f30['markerRange'],_0x45a585['name']))return;const _0x48a07f=_0x594f30['markerRange']['getWalker'](),_0x3b95b0=_0x594f30['markerRange']['start'],_0x49e216=_0x15cced['model']['schema'];let _0x39c0ee=null,_0x2e145f=null,_0x47ad69=!0x1,_0x39ad07=!0x1;for(const _0x543c42 of _0x48a07f){const _0x472b1b=_0x543c42['item'];_0x47ad69=_0x47ad69||_0x49e216['isContent'](_0x472b1b);const _0x28eaee=_0x2d3380['mapper']['toViewElement'](_0x472b1b);if(_0x28eaee&&_0x28eaee['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x543c42['type']&&(_0x49e216['isBlock'](_0x472b1b)&&!_0x49e216['isLimit'](_0x472b1b)&&(_0x472b1b['nextSibling']||_0x3b95b0['isAtEnd']?_0x39c0ee&&_0x39c0ee['parent']==_0x472b1b||(_0x39c0ee=_0x472b1b,_0x84df0d(_0x543c42['previousPosition']),_0x39ad07=!0x0):_0x2e145f=_0x2e145f||_0x543c42['previousPosition']));}function _0x84df0d(_0x40e8d4){const {authorId:_0x582aea}=_0x848300['_splitMarkerName'](_0x594f30['markerName']),_0x227b16=_0x2d3380['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1fe86b,'data-author-id':_0x582aea}),_0x59e70e=_0x2d3380['mapper']['toViewPosition'](_0x40e8d4);_0x51d983&&_0x848300['activeMarkers']['includes'](_0x594f30['markerName'])&&_0x2d3380['writer']['addClass']('ck-suggestion-marker--active',_0x227b16),_0x2d3380['writer']['insert'](_0x59e70e,_0x227b16),_0x2d3380['mapper']['bindElementToMarker'](_0x227b16,_0x594f30['markerName']);}_0x47ad69||_0x39ad07||!_0x2e145f||_0x84df0d(_0x2e145f);};}class z extends _0x5543a6{static get['requires'](){return[_0x1ed0ec];}['init'](){const _0x249364=this['editor'],_0x1629a5=_0x249364['plugins']['get']('TrackChangesEditing');_0x1629a5['enableCommand']('delete');const _0x5bf4b4=_0x249364['commands']['get']('deleteForward');_0x1629a5['enableCommand']('deleteForward',(_0xb80685,_0x335eeb={})=>{const _0x3161ac=_0x249364['model']['createSelection'](_0x249364['model']['document']['selection']);_0x3161ac['isCollapsed']&&_0x249364['model']['modifySelection'](_0x3161ac,{'direction':'forward','unit':_0x335eeb['unit']});const _0x1d623e=_0x3161ac['getFirstRange'](),_0x5b4e9b=_0x24a0f9['fromRange'](_0x1d623e);let _0x291d57;_0xb80685(_0x335eeb),_0x291d57='$graveyard'==_0x5b4e9b['root']['rootName']?_0x249364['model']['createRange'](_0x1d623e['start']):_0x249364['model']['createRange'](_0x5b4e9b['start'],_0x5b4e9b['end']),_0x5b4e9b['detach'](),_0x249364['model']['enqueueChange'](_0x5bf4b4['buffer']['batch'],_0x51d29c=>{_0x5bf4b4['buffer']['lock'](),_0x51d29c['setSelection'](_0x51d29c['createRange'](_0x291d57['end'])),_0x5bf4b4['buffer']['unlock']();});}),_0x249364['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x249364,'merge'),{'priority':'high'}),_0x249364['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x50de61,_0x5e88a4,_0x1715a6)=>{_0x1715a6['options']['showSuggestionHighlights']&&Fe(_0x249364,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x50de61,_0x5e88a4,_0x1715a6);},{'priority':'high'}),_0x249364['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4b7a06,_0x51e067,_0x502ec9)=>{const _0x3f768c=_0x502ec9['mapper']['markerNameToElements'](_0x51e067['markerName']);if(_0x3f768c){for(const _0x47e685 of _0x3f768c)_0x47e685['is']('uiElement')&&(_0x502ec9['mapper']['unbindElementFromMarkerName'](_0x47e685,_0x51e067['markerName']),_0x502ec9['writer']['remove'](_0x47e685));}},{'priority':'high'});}}class W extends _0x5543a6{['afterInit'](){const _0x4cd18a=this['editor'];if(!_0x4cd18a['plugins']['has']('ListEditing'))return;const _0x4d4099=_0x4cd18a['locale'],_0x3d5656=_0x4cd18a['plugins']['get']('TrackChangesEditing'),_0x316107=_0x4cd18a['plugins']['has']('TodoListEditing'),_0x10e277=!!_0x4cd18a['config']['get']('list.multiBlock');function _0x10c47b(_0x50e4db){return{'type':'format','content':''+c(_0x4d4099,'*Set\x20format:*\x20%0',_0x50e4db)};}function _0x493dc5(_0x2812bc){return{'type':'format','content':''+c(_0x4d4099,'*Remove\x20format:*\x20%0',_0x2812bc)};}_0x3d5656['enableDefaultAttributesIntegration']('numberedList'),_0x3d5656['enableDefaultAttributesIntegration']('bulletedList'),_0x3d5656['enableDefaultAttributesIntegration']('customNumberedList'),_0x3d5656['enableDefaultAttributesIntegration']('customBulletedList'),_0x3d5656['enableDefaultAttributesIntegration']('indentList'),_0x3d5656['enableDefaultAttributesIntegration']('outdentList'),_0x3d5656['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3d5656['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3d5656['registerBlockAttribute']('listItemId'),_0x3d5656['registerBlockAttribute']('listType'),_0x3d5656['registerBlockAttribute']('listIndent'),_0x10e277&&(_0x3d5656['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3d5656['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x316107&&(_0x3d5656['enableDefaultAttributesIntegration']('todoList'),_0x3d5656['enableDefaultAttributesIntegration']('checkTodoList'),_0x3d5656['registerBlockAttribute']('todoListChecked'),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x9317d1=>{const {data:_0x468500}=_0x9317d1;if(_0x468500&&'todoListChecked'==_0x468500['key'])return{'type':'format','content':_0x468500['newValue']?c(_0x4d4099,'*Check\x20item*'):c(_0x4d4099,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3ff9be=>{if(_0x3ff9be['batch']['isUndo'])return!0x1;let _0x51e109=!0x1;const _0x124e49=_0x3d5656['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2554ef=>'todoListChecked'===_0x3d5656['_getAttributeKey'](_0x2554ef));for(const _0x31fdfc of _0x124e49){'todo'!=_0x31fdfc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3d5656['_findSuggestions'](_0x31fdfc['getFirstRange'](),'attribute')['find'](_0x359641=>'listType'===_0x3d5656['_getAttributeKey'](_0x359641['suggestion']))||(_0x3ff9be['removeMarker'](_0x31fdfc['getFirstMarker']()),_0x51e109=!0x0));}return _0x51e109;})),_0x3d5656['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x4d4099,'FORMAT_INDENT'));const _0x588393={'type':'format','content':''};_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x63af04=>{const {data:_0x32ddf5}=_0x63af04;if(!_0x32ddf5||'listType'!=_0x32ddf5['key'])return;let _0x5d56be=_0x63af04['head'];for(;_0x5d56be;){if(_0x5d56be['data']&&(('listStyle'==_0x5d56be['data']['key']||'listMarkerStyle'==_0x5d56be['data']['key'])&&(_0x5d56be['data']['newValue']&&'default'!=_0x5d56be['data']['newValue']||'default'!=_0x5d56be['data']['oldValue']&&!_0x32ddf5['newValue'])||!_0x10e277&&_0x5d56be['data']['key']==u))return _0x588393;_0x5d56be=_0x5d56be['next'];}if(null==_0x32ddf5['newValue'])switch(_0x32ddf5['oldValue']){case'bulleted':return _0x493dc5(c(_0x4d4099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x493dc5(c(_0x4d4099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x493dc5(c(_0x4d4099,'ELEMENT_TODO_LIST'));}switch(_0x32ddf5['newValue']){case'bulleted':return _0x10c47b(c(_0x4d4099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x10c47b(c(_0x4d4099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x10c47b(c(_0x4d4099,'ELEMENT_TODO_LIST'));}}),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x2da93b=>{const {data:_0x30a76e}=_0x2da93b;if(_0x30a76e&&'listIndent'==_0x30a76e['key'])return null==_0x30a76e['newValue']||null==_0x30a76e['oldValue']&&0x0==_0x30a76e['newValue']?_0x588393:void 0x0;}),_0x3d5656['descriptionFactory']['registerDescriptionCallback'](_0x436318=>{if('attribute'!=_0x436318['type'])return;const {data:_0x54b936}=_0x436318;if(!_0x54b936||'listItemId'!=_0x54b936['key'])return;const _0x590899=Te(_0x436318);return'newValue'==_0x590899?{'type':'format','content':c(_0x4d4099,'*Merge:*\x20list\x20item')}:'oldValue'==_0x590899?{'type':'format','content':c(_0x4d4099,'*Split:*\x20list\x20item')}:_0x588393;}),_0x4cd18a['model']['document']['registerPostFixer'](_0x3adc28=>this['listItemIdFixer'](_0x3adc28)),_0x4cd18a['model']['document']['registerPostFixer'](_0x410aeb=>this['noTrackChangesFixer'](_0x410aeb)),_0x4cd18a['model']['document']['on']('change:data',(_0x1dbddb,_0x5ac0fd)=>{if(_0x5ac0fd['isUndo']||!_0x5ac0fd['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1078ab){if(_0x1078ab['batch']['isUndo']||!_0x1078ab['batch']['isLocal'])return!0x1;let _0x5a67f2=!0x1;const _0x33f5a4=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x196114=>_0x196114['data']&&'listItemId'==_0x196114['data']['key'])['filter'](_0x353b3d=>_0x353b3d['data']['newValue']&&_0x353b3d['data']['oldValue']);for(const _0x5958c6 of _0x33f5a4)Te(_0x5958c6)||(_0x1078ab['removeMarker'](_0x5958c6['getFirstMarker']()),_0x5a67f2=!0x0);return _0x5a67f2;}['noTrackChangesFixer'](_0xaccf1b){if(_0xaccf1b['batch']['isUndo']||!_0xaccf1b['batch']['isLocal'])return!0x1;const _0x2b4fff=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b4fff['trackChangesCommand']['value'])return!0x1;let _0x4c4c05=!0x1;const _0xe1aca8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3ec0a9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3188a8=>'attribute'==_0x3188a8['type'])['filter'](_0x5d23bb=>_0xe1aca8['includes'](_0x5d23bb['attributeKey']));if(0x0==_0x3ec0a9['length'])return _0x4c4c05;for(const _0x515a6e of _0x3ec0a9){const _0x5467cd=_0x2b4fff['_findSuggestions'](_0x515a6e['range'],'attribute')['filter'](_0x23ec61=>!_0x23ec61['meta']['isNextTo'])['map'](_0x179ae3=>_0x179ae3['suggestion'])['filter'](_0x36cb02=>{const _0xbb1e1e=_0x2b4fff['_getAttributeKey'](_0x36cb02);return _0xe1aca8['includes'](_0xbb1e1e);});if(_0x5467cd['length']){for(const _0x18ebfa of _0x5467cd)_0xaccf1b['removeMarker'](_0x18ebfa['getFirstMarker']());_0x4c4c05=!0x0;}}return _0x4c4c05;}['assureChains'](){const _0x42ea20=this['editor']['plugins']['get']('TrackChangesEditing'),_0x16d20a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x57fa8e;const _0x3eedf0=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xab8fb4=>{if(_0xab8fb4['data']['oldRange']||!_0xab8fb4['data']['newRange'])return null;if(!_0xab8fb4['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x29de9e}=_0x42ea20['_splitMarkerName'](_0xab8fb4['name']);if(!_0x42ea20['hasSuggestion'](_0x29de9e))return null;const _0x5b421d=_0x42ea20['getSuggestion'](_0x29de9e);return _0x16d20a['includes'](_0x5b421d['data']['key']);})['map'](_0x378a0a=>{const {id:_0x522209}=_0x42ea20['_splitMarkerName'](_0x378a0a['name']),_0x437334=_0x42ea20['getSuggestion'](_0x522209);return _0x57fa8e=_0x437334['attributes']['groupId'],_0x437334['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3eedf0['size'])return;const _0x7b904f=_0x42ea20['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x26388e=>'attribute'==_0x26388e['type']&&_0x26388e['data']&&_0x16d20a['includes'](_0x26388e['data']['key'])&&_0x26388e['attributes']['groupId']!=_0x57fa8e)['map'](_0x315415=>({'listItem':_0x315415['getFirstRange']()['start']['nodeAfter'],'groupId':_0x315415['attributes']['groupId']})),_0x43acc9=new Set();for(const {groupId:_0x23e99f,listItem:_0x5b6670}of _0x7b904f)_0x3eedf0['has'](_0x5b6670)&&_0x43acc9['add'](_0x23e99f);for(const _0xaa7c8d of _0x42ea20['getSuggestions']())_0x43acc9['has'](_0xaa7c8d['attributes']['groupId'])&&_0xaa7c8d['setAttribute']('groupId',_0x57fa8e);}['_supportLegacySuggestions'](){const _0x4ba1d7=this['editor'],_0x9ae23e=_0x4ba1d7['locale'],_0x6fe617=_0x4ba1d7['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x6fe617['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x57006f,_0x263f43){const _0x45c3bf=[];for(let _0x1d8494 of _0x57006f)_0x1d8494['start']['nodeAfter']===_0x1d8494['end']['parent']&&(_0x1d8494=_0x4ba1d7['model']['createRange'](_0x4ba1d7['model']['createPositionAt'](_0x1d8494['start']['nodeAfter'],0x0))),_0x45c3bf['push'](_0x1d8494);_0x4ba1d7['model']['change'](_0x347f1c=>{const _0x3c78c4=_0x4ba1d7['model']['document']['selection'],_0x4f3177=Array['from'](_0x3c78c4['getRanges']())['map'](_0x124277=>_0x24a0f9['fromRange'](_0x124277));_0x347f1c['setSelection'](_0x45c3bf),_0x4ba1d7['commands']['get'](_0x263f43['commandName'])['refresh'](),_0x263f43['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4ba1d7['execute'](_0x263f43['commandName'],..._0x263f43['commandParams']),_0x347f1c['setSelection'](_0x4f3177);for(const _0x1ffefb of _0x4f3177)_0x1ffefb['detach']();});}),_0x6fe617['descriptionFactory']['registerElementLabel'](function(_0x3d5c12){const _0x15d7b9=!_0x4ba1d7['model']['schema']['isObject'](_0x3d5c12),_0x518815=_0x3d5c12['previousSibling'],_0xcd69ed=_0x3d5c12['nextSibling'],_0x3e9608=_0x3d5c12['getAttribute']('listItemId'),_0x248a83=!_0x518815||_0x518815['getAttribute']('listItemId')!==_0x3e9608,_0x224117=!_0xcd69ed||_0xcd69ed['getAttribute']('listItemId')!==_0x3e9608;return _0x15d7b9&&Boolean(_0x3e9608)&&_0x248a83&&_0x224117;},_0x59e630=>c(_0x9ae23e,'ELEMENT_LIST_ITEM',_0x59e630));}['_registerLegacyDescription'](){const _0xb3246c=this['editor'],_0x3bf883=_0xb3246c['locale'];function _0x38ec9(_0x319acb){const _0x4389e0=_0xb3246c['commands']['get']('bulletedList')['value'],_0x1e5cf6=_0xb3246c['commands']['get']('numberedList')['value'];return'numberedList'===_0x319acb?_0x4389e0:_0x1e5cf6;}_0xb3246c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x14786c){if('formatBlock'!=_0x14786c['type'])return;const {data:_0x55d33a}=_0x14786c;if(!_0x55d33a)return;let _0x80a5e1,_0x44e9a0,_0x3aa035,_0x5bc339;switch(_0x55d33a['commandName']){case'bulletedList':_0x3aa035=_0x55d33a['commandParams'][0x0]['forceValue'],_0x5bc339=_0x38ec9(_0x55d33a['commandName']),_0x80a5e1=_0x3aa035?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc339&&_0xb3246c['config']['get']('list.multiBlock')||(_0x80a5e1='*Change\x20to:*\x20%0'),_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3aa035=_0x55d33a['commandParams'][0x0]['forceValue'],_0x5bc339=_0x38ec9(_0x55d33a['commandName']),_0x80a5e1=_0x3aa035?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x5bc339&&_0xb3246c['config']['get']('list.multiBlock')||(_0x80a5e1='*Change\x20to:*\x20%0'),_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x80a5e1='*Indent:*\x20%0',_0x44e9a0={'type':'format','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x80a5e1=function(_0x2b599e){const _0x19d515=_0x2b599e['getFirstRange']();let _0x517a49=_0x19d515['start']['nodeAfter'];for(;_0x517a49&&_0x19d515['containsItem'](_0x517a49);){if(_0x517a49['getAttribute']('listIndent')>0x0)return!0x1;_0x517a49=_0x517a49['nextSibling'];}return!0x0;}(_0x14786c)?c(_0x3bf883,'*Format:*\x20remove\x20from\x20%0',c(_0x3bf883,function(_0x5818f8){return'ELEMENT_'+_0x5818f8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x14786c))):c(_0x3bf883,'*Outdent:*\x20%0',c(_0x3bf883,'ELEMENT_LIST_ITEM')),_0x44e9a0={'type':'format','content':_0x80a5e1};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x55d33a['multipleBlocks']&&(_0x80a5e1='*Merge:*\x20%0',_0x44e9a0={'type':'deletion','content':c(_0x3bf883,_0x80a5e1,c(_0x3bf883,'ELEMENT_LIST_ITEM'))});}return _0x44e9a0;});}}function Te(_0x4d96a8){let _0x1eabb6=_0x4d96a8['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1eabb6;){const _0x447d44=_0x1eabb6['getAttribute']('listItemId');if(!_0x447d44)return!0x1;if(_0x447d44==_0x4d96a8['data']['newValue'])return'newValue';if(_0x447d44==_0x4d96a8['data']['oldValue'])return'oldValue';_0x1eabb6=_0x1eabb6['previousSibling'];}return!0x1;}class Se extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4d03c6=this['editor']['config']['get']('list.properties'),_0x44fdb5=this['editor']['plugins']['get']('TrackChangesEditing');_0x4d03c6['styles']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listStyle'),_0x44fdb5['registerBlockAttribute']('listStyle')),_0x4d03c6['reversed']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listReversed'),_0x44fdb5['registerBlockAttribute']('listReversed')),_0x4d03c6['startIndex']&&(_0x44fdb5['enableDefaultAttributesIntegration']('listStart'),_0x44fdb5['registerBlockAttribute']('listStart'));const _0x19942f={'type':'format','content':''};_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2a43d9=this['editor']['locale'];_0x44fdb5['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x2a43d9,'FORMAT_LIST_REVERSED')),_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](_0xc237aa=>{const {data:_0x1c345b}=_0xc237aa;if(_0x1c345b&&'listReversed'==_0x1c345b['key'])return null==_0x1c345b['newValue']||0x0==_0x1c345b['newValue']&&null==_0x1c345b['oldValue']?_0x19942f:void 0x0;}),_0x44fdb5['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x2a43d9,'FORMAT_LIST_START')),_0x44fdb5['descriptionFactory']['registerDescriptionCallback'](_0x326ec6=>{const {data:_0x58030a}=_0x326ec6;if(_0x58030a&&'listStart'==_0x58030a['key'])return null==_0x58030a['newValue']||0x1==_0x58030a['newValue']&&null==_0x58030a['oldValue']?_0x19942f:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x408f39=>{if(_0x408f39['batch']['isUndo'])return!0x1;let _0x2c32ef=!0x1;const _0x25877f=_0x44fdb5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x201e76=>{const _0xc779c3=_0x44fdb5['_getAttributeKey'](_0x201e76);return'listStart'==_0xc779c3||'listReversed'==_0xc779c3;});for(const _0x1df1c6 of _0x25877f){const _0x255635=_0x1df1c6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x255635||'customNumbered'==_0x255635)continue;_0x44fdb5['_findSuggestions'](_0x1df1c6['getFirstRange'](),'attribute')['find'](_0x309915=>'listType'==_0x44fdb5['_getAttributeKey'](_0x309915['suggestion']))||(_0x408f39['removeMarker'](_0x1df1c6['getFirstMarker']()),_0x2c32ef=!0x0);}return _0x2c32ef;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2e4b4e){const _0x3c7e11=this['editor']['locale'],{data:_0x25e62a}=_0x2e4b4e,_0x3cfbd1={'type':'format','content':''};if(!_0x25e62a||'listStyle'!=_0x25e62a['key'])return;if(!_0x25e62a['oldValue'])return'default'==_0x25e62a['newValue']?_0x3cfbd1:{'type':'format','content':''+c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['newValue'])))};if(!_0x25e62a['newValue']){if('default'==_0x25e62a['oldValue'])return _0x3cfbd1;let _0x1b99ec=_0x2e4b4e['head'];for(;_0x1b99ec;){if(_0x1b99ec['data']&&'listType'==_0x1b99ec['data']['key']&&_0x1b99ec['data']['newValue'])return _0x3cfbd1;_0x1b99ec=_0x1b99ec['next'];}return{'type':'format','content':''+c(_0x3c7e11,'*Remove\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['oldValue'])))};}if('default'!=_0x25e62a['newValue'])return{'type':'format','content':''+c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,this['_getTranslationKeyForListStyle'](_0x25e62a['newValue'])))};let _0x78bf51=_0x2e4b4e['head'];for(;_0x78bf51;){if(_0x78bf51['data']&&'listType'==_0x78bf51['data']['key']&&_0x78bf51['data']['newValue']&&_0x78bf51['data']['oldValue'])return _0x3cfbd1;_0x78bf51=_0x78bf51['next'];}return{'type':'format','content':c(_0x3c7e11,'*Set\x20format:*\x20%0',c(_0x3c7e11,'ELEMENT_'+_0x2e4b4e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x18e344=this['editor'],_0x23c65c=_0x18e344['locale'];_0x18e344['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x573567=>{if('formatBlock'!=_0x573567['type'])return;const {data:_0x392171}=_0x573567;if(!_0x392171)return;let _0x556fb7,_0x11e444;switch(_0x392171['commandName']){case'listStyle':_0x556fb7='*Change\x20to:*\x20%0',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7,c(_0x23c65c,this['_getTranslationKeyForListStyle'](_0x392171['commandParams'][0x0]['type'])))};break;case'listReversed':_0x556fb7=_0x392171['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7)};break;case'listStart':_0x556fb7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x11e444={'type':'format','content':c(_0x23c65c,_0x556fb7,_0x392171['commandParams'][0x0]['startIndex'])};}return _0x11e444;});}['_getTranslationKeyForListStyle'](_0xd602e9){return'ELEMENT_'+function(_0x342214){if(_e['includes'](_0x342214))return'bulleted';if(Re['includes'](_0x342214))return'numbered';return null;}(_0xd602e9)['toUpperCase']()+'_LIST_'+_0xd602e9['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5543a6{['afterInit'](){const _0x38b7eb=this['editor'];_0x38b7eb['commands']['get']('emoji')&&_0x38b7eb['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x5543a6{static get['requires'](){return[_0xa783ec];}['init'](){const _0x3136f1=this['editor'],_0x482b6a=_0x3136f1['plugins']['get']('TrackChangesEditing'),_0x30f892=_0x3136f1['commands']['get']('enter');_0x482b6a['enableCommand']('enter',()=>{_0x3136f1['model']['change'](_0x191ff6=>{const _0xb0a0c7=_0x3136f1['model']['document']['selection'],_0x6344c8=_0xb0a0c7['getFirstPosition'](),_0x50ed7f=_0x24a0f9['fromRange'](_0xb0a0c7['getFirstRange']());if(_0x30f892['enterBlock'](_0x191ff6)){const _0x4c8f7d=_0x3136f1['model']['createPositionAt'](_0x6344c8['parent']['nextSibling'],0x0),_0x54bf0d=_0x191ff6['createRange'](_0x6344c8,_0x4c8f7d);_0x482b6a['markInsertion'](_0x54bf0d);}else _0x191ff6['setSelection'](_0x191ff6['createRange'](_0x50ed7f['end']));_0x50ed7f['detach'](),_0x30f892['fire']('afterExecute',{'writer':_0x191ff6});});}),_0x3136f1['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x3136f1,'split'),{'priority':'high'}),_0x3136f1['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x502417,_0xf7d22c,_0x4d5561)=>{const _0x39b321=_0x4d5561['mapper']['markerNameToElements'](_0xf7d22c['markerName']);if(_0x39b321){for(const _0x1b5104 of _0x39b321)_0x1b5104['hasClass']('ck-suggestion-marker-split')&&(_0x4d5561['mapper']['unbindElementFromMarkerName'](_0x1b5104,_0xf7d22c['markerName']),_0x4d5561['writer']['remove'](_0x1b5104));}},{'priority':'high'}),_0x3136f1['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x15d8c1,_0xe167fe,_0x5d8323)=>{_0x5d8323['options']['showSuggestionHighlights']&&Fe(_0x3136f1,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x15d8c1,_0xe167fe,_0x5d8323);},{'priority':'high'});}}class Z extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x350beb=this['editor']['plugins']['get']('TrackChangesEditing');_0x350beb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x350beb['enableCommand']('findNext'),_0x350beb['enableCommand']('findPrevious'),_0x350beb['enableCommand']('replace'),_0x350beb['enableCommand']('replaceAll');}['handleFindCommand'](_0x569f96,_0x5cfd1f,_0x4294f0={}){const _0x3dc352=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x569f96(_0x2808b7=>{let _0x495509=('string'==typeof _0x5cfd1f?_0x3dc352['findByTextCallback'](_0x5cfd1f,_0x4294f0):_0x5cfd1f)(_0x2808b7);Array['isArray'](_0x495509)&&(_0x495509={'results':_0x495509,'searchText':'string'==typeof _0x5cfd1f?_0x5cfd1f:''});const _0x4c31e7=_0x495509['results']['filter'](_0xf673ac=>!0x1===this['_isInDeletionRange'](_0xf673ac,_0x2808b7['item']));return{..._0x495509,'results':_0x4c31e7};},_0x4294f0);}['_isInDeletionRange'](_0x2048bb,_0x29c42a){const _0x48bfdc=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x29c42a,_0x2048bb['start']),this['editor']['model']['createPositionAt'](_0x29c42a,_0x2048bb['end']));for(const _0x391307 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x48bfdc['getIntersection'](_0x391307['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 _0x5543a6{['afterInit'](){const _0xcf726e=this['editor']['locale'],_0x40c25e=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x407681,commandName:_0x39e152}of ro)this['editor']['plugins']['has'](_0x407681)&&(_0x40c25e['enableDefaultAttributesIntegration'](_0x39e152),_0x40c25e['registerInlineAttribute'](_0x39e152));_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0xcf726e,'FORMAT_FONT_SIZE')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0xcf726e,'FORMAT_FONT_FAMILY')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0xcf726e,'FORMAT_FONT_COLOR')),_0x40c25e['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0xcf726e,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403170=this['editor'],_0x5d39a0=_0x403170['locale'];_0x403170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41ea50=>{const _0x2d1c94=_0x5d39a0['t'];if('formatInline'!=_0x41ea50['type'])return;const {data:_0xb7351a}=_0x41ea50;if(null!=_0xb7351a){if('fontSize'==_0xb7351a['commandName']){const _0x5772f9=_0xb7351a['commandParams'][0x0]['value'];if(_0x5772f9){const _0x417da3=_0x2d1c94(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x189cf4=>_0x189cf4['model']==_0x5772f9)['title'])['toLowerCase']();return{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20size:*\x20%0',_0x417da3)};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20size*')};}if('fontFamily'==_0xb7351a['commandName']){const _0x1ba3a8=_0xb7351a['commandParams'][0x0]['value'];return _0x1ba3a8?{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20family:*\x20%0',_0x1ba3a8)}:{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20family*')};}if('fontColor'==_0xb7351a['commandName']){const _0xf12b73=_0xb7351a['commandParams'][0x0]['value'];if(_0xf12b73){const _0x173dac=_0xd37628(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3e5dad=>_0x3e5dad['model']==_0xf12b73);let _0x4d3c40=_0xf12b73,_0x443aff='';return _0x173dac&&(_0x4d3c40=_0x173dac['label'],_0x443aff=_0x2d1c94(_0x4d3c40)['toLowerCase']()),{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20color:*\x20%0',_0x443aff)['trim'](),'color':{'value':_0xf12b73,'title':_0x443aff||_0x4d3c40}};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0xb7351a['commandName']){const _0x3f3400=_0xb7351a['commandParams'][0x0]['value'];if(_0x3f3400){const _0x8b54d4=_0xd37628(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xe12b1b=>_0xe12b1b['model']==_0x3f3400);let _0x386627=_0x3f3400,_0x1c206a='';return _0x8b54d4&&(_0x386627=_0x8b54d4['label'],_0x1c206a=_0x2d1c94(_0x386627)['toLowerCase']()),{'type':'format','content':c(_0x5d39a0,'*Set\x20font\x20background\x20color:*\x20%0',_0x1c206a)['trim'](),'color':{'value':_0x3f3400,'title':_0x1c206a||_0x386627}};}return{'type':'format','content':c(_0x5d39a0,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x5543a6{['afterInit'](){const _0x5c8d0f=this['editor'],_0x4cbc9f=_0x5c8d0f['plugins']['get']('TrackChangesEditing'),_0x1eb117=_0x5c8d0f['commands']['get']('copyFormat'),_0x5aa05d=_0x5c8d0f['commands']['get']('pasteFormat');_0x1eb117&&_0x5aa05d&&(_0x4cbc9f['enableDefaultAttributesIntegration']('pasteFormat'),_0x4cbc9f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x136012=this['editor'],_0x20d532=_0x136012['locale'];_0x136012['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x308c4a=>{if('formatBlock'!=_0x308c4a['type']&&'formatInline'!=_0x308c4a['type'])return;const {data:_0x91d965}=_0x308c4a;if(_0x91d965&&'pasteFormat'===_0x91d965['commandName']){const _0xe857e2=[],_0xa90f4d=_0x91d965['commandParams'][0x0];for(const [_0x484e5e,_0x213ee6]of Object['entries'](_0xa90f4d))_0xe857e2['push'](so(_0x136012,_0x484e5e,_0x213ee6));return _0xe857e2['length']?{'type':'format','content':c(_0x20d532,'*Set\x20format\x20to:*\x20%0',_0xe857e2['join'](',\x20'))}:{'type':'format','content':c(_0x20d532,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5e5e4e,_0x292f58,_0x57e2b9){const _0x41a697=_0x5e5e4e['locale']['t'],_0x11692f=_0x292f58['split'](/(?=[A-Z])/)['join']('\x20'),_0x4dde38=_0x41a697(_0x11692f['charAt'](0x0)['toUpperCase']()+_0x11692f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x57e2b9)return _0x4dde38;if('fontColor'===_0x292f58||'fontBackgroundColor'===_0x292f58){const _0x22ffb8=_0xd37628(_0x5e5e4e['config']['get']('fontColor.colors'))['find'](_0x22c270=>_0x22c270['model']==_0x57e2b9);return _0x4dde38+'\x20('+(_0x22ffb8?_0x41a697(_0x22ffb8['label'])['toLowerCase']():_0x57e2b9)+')';}if('fontSize'===_0x292f58&&isNaN(parseFloat(_0x57e2b9))){const _0x3e5757=_0x5e5e4e['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5e5e4e['config']['get']('fontSize.options'))['find'](_0x3677ec=>_0x3677ec['model']==_0x57e2b9);return _0x4dde38+'\x20('+(_0x3e5757?_0x41a697(_0x3e5757['title'])['toLowerCase']():_0x57e2b9)+')';}return _0x4dde38+'\x20('+_0x57e2b9+')';}class nt extends _0x5543a6{['_headingOptions'];['afterInit'](){const _0x5b18aa=this['editor'];if(!_0x5b18aa['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x5b18aa['config']['get']('heading.options');const _0x917f91=_0x5b18aa['locale'],_0x5bc2b2=_0x5b18aa['plugins']['get']('TrackChangesEditing');_0x5bc2b2['enableDefaultAttributesIntegration']('heading');for(const _0x5a8b8c of this['_headingOptions'])'paragraph'!=_0x5a8b8c['model']&&_0x5bc2b2['descriptionFactory']['registerElementLabel'](_0x5a8b8c['model'],_0x4d9181=>{const _0x12b7d8=this['_getHeadingLevel'](_0x5a8b8c['model']);return null!==_0x12b7d8?_0x3693d3(_0x4d9181,_0x12b7d8):_0x2074dc(_0x4d9181,_0x5a8b8c['title']);});function _0x3693d3(_0x5aa2a0,_0x52424d){return c(_0x917f91,'ELEMENT_HEADING',[_0x5aa2a0,_0x52424d]);}function _0x2074dc(_0x49d362,_0x29c6ef){return c(_0x917f91,'ELEMENT_HEADING_CUSTOM',[_0x49d362,_0x29c6ef]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x397924=this['editor'],_0xcec508=_0x397924['locale'];function _0x4e365d(_0x394f0c,_0x14642c){return c(_0xcec508,'ELEMENT_HEADING_CUSTOM',[_0x394f0c,_0x14642c]);}_0x397924['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37b1ed=>{if('formatBlock'!=_0x37b1ed['type'])return;const {data:_0x10e4be}=_0x37b1ed;if(_0x10e4be&&'heading'==_0x10e4be['commandName']){const _0xf6e67c=_0x10e4be['commandParams'][0x0]['value'],_0x598c31=this['_getHeadingLevel'](_0xf6e67c);if(null!==_0x598c31)return{'type':'format','content':c(_0xcec508,'*Change\x20to:*\x20%0',(_0x2a18f6=0x1,_0x36db82=_0x598c31,c(_0xcec508,'ELEMENT_HEADING',[_0x2a18f6,_0x36db82])))};const _0x2218a0=this['_headingOptions']['find'](_0x34de16=>_0x34de16['model']===_0xf6e67c)['title'];return{'type':'format','content':c(_0xcec508,'*Change\x20to:*\x20%0',_0x4e365d(0x1,_0x2218a0))};}var _0x2a18f6,_0x36db82;});}['_getHeadingLevel'](_0x69be17){const _0x271a23=_0x69be17['match'](/^heading(\d+)/);if(_0x271a23)return _0x271a23[0x1];const _0x208e5a=this['_headingOptions']?.['find'](_0x3a8992=>_0x3a8992['model']==_0x69be17);if(_0x208e5a&&_0x208e5a['view']){const _0x5e6c89=_0x208e5a['view'],_0x576f62=(_0x5e6c89['name']??_0x5e6c89)['match'](/^h(\d+)/);if(_0x576f62)return _0x576f62[0x1];}return null;}}class it extends _0x5543a6{['afterInit'](){const _0x53af9f=this['editor'];if(!_0x53af9f['plugins']['has']('HighlightEditing'))return;const _0x3f6148=_0x53af9f['plugins']['get']('TrackChangesEditing'),_0x4e7f63=_0x53af9f['locale'];_0x3f6148['enableDefaultAttributesIntegration']('highlight'),_0x3f6148['registerInlineAttribute']('highlight'),_0x3f6148['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x4e7f63,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x52766b=this['editor'],_0x410c9d=_0x52766b['locale'];_0x52766b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x53568e=>{if('formatInline'!=_0x53568e['type'])return;const {data:_0x2993ea}=_0x53568e;if(_0x2993ea&&'highlight'==_0x2993ea['commandName']){const _0x55bd17=_0x410c9d['t'],_0x117e80=_0x2993ea['commandParams'][0x0]['value'];if(_0x117e80){const _0x191b2e=_0x52766b['config']['get']('highlight.options')['find'](_0x5a3784=>_0x5a3784['model']==_0x117e80),_0x5a7db6=_0x55bd17(_0x191b2e['title'])['toLowerCase']();return{'type':'format','content':c(_0x410c9d,'*Set\x20highlight:*\x20%0',_0x5a7db6),'color':{'value':_0x191b2e['color'],'title':_0x191b2e['title']}};}return{'type':'format','content':c(_0x410c9d,'*Remove\x20highlight*',c(_0x410c9d,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x5543a6{['afterInit'](){const _0x12d777=this['editor'];if(!_0x12d777['plugins']['has']('HorizontalLineEditing'))return;_0x12d777['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x46c11c=_0x12d777['plugins']['get']('TrackChangesEditing'),_0x31a990=_0x12d777['locale'];_0x46c11c['descriptionFactory']['registerElementLabel']('horizontalLine',_0x7d73ae=>c(_0x31a990,'ELEMENT_HORIZONTAL_LINE',_0x7d73ae)),_0x12d777['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xb1d4fc,{writer:_0x5aa791,options:_0xcd8a70})=>{if(!_0xcd8a70['showSuggestionHighlights'])return null;const _0x4d60c8=_0x5aa791['createContainerElement']('div'),_0x3332d2=_0x5aa791['createEmptyElement']('hr');return _0x5aa791['addClass']('ck-horizontal-line',_0x4d60c8),_0x5aa791['insert'](_0x5aa791['createPositionAt'](_0x4d60c8,0x0),_0x3332d2),_0x4d60c8;},'converterPriority':'high'});}}class ot extends _0x5543a6{['afterInit'](){const _0x1bec25=this['editor'];if(!_0x1bec25['plugins']['has']('HtmlEmbed'))return;const _0x62dfd0=_0x1bec25['plugins']['get']('TrackChangesEditing'),_0x12c955=_0x1bec25['locale'];_0x62dfd0['descriptionFactory']['registerElementLabel']('rawHtml',_0x2563b5=>c(_0x12c955,'ELEMENT_HTML_EMBED',_0x2563b5)),_0x62dfd0['enableDefaultAttributesIntegration']('htmlEmbed'),_0x62dfd0['registerBlockAttribute']('value'),_0x62dfd0['descriptionFactory']['registerDescriptionCallback'](_0x5e8bc4=>{if('attribute'!=_0x5e8bc4['type'])return;const {data:_0x28f325}=_0x5e8bc4;if(_0x28f325&&'value'==_0x28f325['key']&&_0x5e8bc4['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x2dd5ee=c(_0x12c955,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x12c955,'*Change\x20%0\x20content*',_0x2dd5ee)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ec33a=this['editor'],_0x25ebe7=_0x3ec33a['locale'];_0x3ec33a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e0c02=>{if('formatBlock'!=_0x4e0c02['type'])return;const {data:_0x4a69ce}=_0x4e0c02;if(_0x4a69ce&&'htmlEmbed'==_0x4a69ce['commandName']){const _0x2c2f2c=c(_0x25ebe7,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x25ebe7,'*Change\x20%0\x20content*',_0x2c2f2c)};}});}}class rt extends _0x5543a6{['afterInit'](){const _0x56466f=this['editor'];if(!_0x56466f['plugins']['has']('ImageEditing'))return;const _0x2039ac=_0x56466f['plugins']['get']('TrackChangesEditing'),_0x44dc17=_0x56466f['plugins']['get']('ImageUtils'),_0x230f81=_0x56466f['locale'];_0x2039ac['enableCommand']('insertImage'),_0x2039ac['descriptionFactory']['registerElementLabel']('imageBlock',_0x2afd32=>c(_0x230f81,'ELEMENT_IMAGE',_0x2afd32)),_0x2039ac['descriptionFactory']['registerElementLabel']('imageInline',_0x581a00=>c(_0x230f81,'ELEMENT_INLINE_IMAGE',_0x581a00)),_0x2039ac['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x230f81,'ELEMENT_CAPTION')),_0x56466f['plugins']['has']('ImageUploadEditing')&&_0x2039ac['enableCommand']('uploadImage'),_0x56466f['plugins']['has']('ImageBlockEditing')&&_0x56466f['plugins']['has']('ImageInlineEditing')&&(_0x2039ac['enableCommand']('imageTypeInline',(_0x10b112,_0x5630e6)=>{const _0x52becf=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']);_0x56466f['model']['change'](()=>{_0x2039ac['markBlockFormat'](_0x52becf,{'commandName':'imageTypeInline','commandParams':[_0x5630e6]},[],'convertBlockImageToInline');});}),_0x2039ac['enableCommand']('imageTypeBlock',(_0x5537d2,_0x34b576)=>{_0x56466f['model']['change'](_0x51c8bb=>{let _0x515365=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x4e7748=_0x51c8bb['createRangeOn'](_0x515365);const _0x3d66df=_0xf32cb9['fromPosition'](_0x4e7748['start'],'toPrevious'),_0x3d9912=_0xf32cb9['fromPosition'](_0x4e7748['end'],'toNext');_0x2039ac['forceDefaultExecution'](()=>_0x5537d2(_0x34b576)),_0x515365=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x4e7748=_0x51c8bb['createRangeOn'](_0x515365);const _0x5b5f90=_0x51c8bb['createRange'](_0x3d66df,_0x3d9912);_0x3d66df['detach'](),_0x3d9912['detach'](),_0x2039ac['markBlockFormat'](_0x515365,{'commandName':'imageTypeInline','commandParams':[_0x34b576]},[],'convertInlineImageToBlock'),_0x5b5f90['start']['isBefore'](_0x4e7748['start'])&&_0x2039ac['markInsertion'](_0x51c8bb['createRange'](_0x5b5f90['start'],_0x4e7748['start']),'convertInlineImageToBlock'),_0x4e7748['end']['isBefore'](_0x5b5f90['end'])&&_0x2039ac['markInsertion'](_0x51c8bb['createRange'](_0x4e7748['end'],_0x5b5f90['end']),'convertInlineImageToBlock');});}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x2039ac['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x555cae])=>{const _0x1c4f6e=_0x2039ac['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5095bb=_0x555cae['start'],_0xe0834=_0x555cae['end'];const _0xebeea2=_0x56466f['model']['schema']['getNearestSelectionRange'](_0x5095bb,'backward'),_0x1f7383=_0x56466f['model']['schema']['getNearestSelectionRange'](_0xe0834,'forward');_0xebeea2['isCollapsed']&&(_0x5095bb=_0xebeea2['start']),_0x1f7383['isCollapsed']&&(_0xe0834=_0x1f7383['end']),_0x1c4f6e([_0x56466f['model']['createRange'](_0x5095bb,_0xe0834)]);}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3af8d1),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3af8d1)),_0x56466f['plugins']['has']('ImageCaptionEditing')&&(_0x2039ac['enableCommand']('toggleImageCaption',(_0x46f2bf,_0x1152c1)=>{const _0x30260a=_0x56466f['plugins']['get']('ImageCaptionUtils');let _0x55b0a7=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x36c8d4=_0x30260a['getCaptionFromImageModelElement'](_0x55b0a7);_0x56466f['model']['change'](()=>{if(_0x36c8d4)return void _0x2039ac['markDeletion'](_0x56466f['model']['createRangeOn'](_0x36c8d4));const _0x4b1f04=_0x44dc17['isBlockImage'](_0x55b0a7);_0x46f2bf(_0x1152c1),_0x55b0a7=_0x44dc17['getClosestSelectedImageElement'](_0x56466f['model']['document']['selection']),_0x36c8d4=_0x30260a['getCaptionFromImageModelElement'](_0x55b0a7),_0x2039ac['markInsertion'](_0x56466f['model']['createRangeOn'](_0x36c8d4),_0x4b1f04?null:'imageCaption');});}),_0x2039ac['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3af8d1));const _0x3cd7d1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5d9e09(_0x1697a6,_0x37b980){const _0x5d1a4d=_0x3cd7d1['findIndex'](({type:_0x50b07c,subType:_0x526e94})=>_0x1697a6['type']==_0x50b07c&&_0x1697a6['subType']==_0x526e94),_0x41eaf4=_0x3cd7d1['findIndex'](({type:_0x31c813,subType:_0x2f4da0})=>_0x37b980['type']==_0x31c813&&_0x37b980['subType']==_0x2f4da0);if(_0x5d1a4d<0x0||_0x41eaf4<0x0)return!0x1;const _0x5a99d5=_0x1697a6['getFirstRange'](),_0x10b1d0=_0x37b980['getFirstRange']();if((0x0==_0x5d1a4d||0x1==_0x5d1a4d)&&0x2==_0x41eaf4&&_0x5a99d5['isIntersecting'](_0x10b1d0))return!0x0;if(0x2==_0x5d1a4d&&0x3==_0x41eaf4){const _0x542316=_0x2039ac['_findSuggestions'](_0x5a99d5,'insertion')['filter'](({suggestion:_0x472780,meta:_0x4a8049})=>_0x4a8049['isOwn']&&'convertInlineImageToBlock'==_0x472780['subType']);if(_0x542316['length']>0x1&&_0x10b1d0['end']['isEqual'](_0x5a99d5['start']))return!0x0;if(0x1==_0x542316['length']&&(_0x5a99d5['start']['isEqual'](_0x10b1d0['end'])||_0x5a99d5['end']['isEqual'](_0x10b1d0['start'])))return!0x0;}if(0x3==_0x5d1a4d&&0x3==_0x41eaf4&&_0x5a99d5['start']['isBefore'](_0x10b1d0['start'])){const _0x5c291e=_0x5a99d5['end']['nodeAfter'],_0x272495=_0x10b1d0['start']['nodeBefore'];return _0x44dc17['isBlockImage'](_0x5c291e)&&_0x5c291e===_0x272495;}return!0x1;}function _0x3af8d1(_0x5ebf2a,_0xf10743){return _0x5d9e09(_0x5ebf2a,_0xf10743)?[_0x5ebf2a,_0xf10743]:_0x5d9e09(_0xf10743,_0x5ebf2a)?[_0xf10743,_0x5ebf2a]:null;}_0x56466f['plugins']['has']('ImageResize')&&(_0x2039ac['enableDefaultAttributesIntegration']('resizeImage'),_0x2039ac['registerBlockAttribute']('resizedWidth'),_0x2039ac['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x230f81,'FORMAT_IMAGE_SIZE'))),_0x56466f['plugins']['has']('ImageTextAlternativeEditing')&&(_0x2039ac['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x2039ac['registerBlockAttribute']('alt')),_0x56466f['plugins']['has']('PictureEditing')&&(_0x2039ac['registerBlockAttribute']('sources'),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x131052=>{if('attribute'!=_0x131052['type'])return;const {data:_0x5d8128}=_0x131052;return _0x5d8128&&'sources'==_0x5d8128['key']?{'type':'format','content':''}:void 0x0;})),_0x56466f['plugins']['has']('ImageSizeAttributes')&&(_0x2039ac['registerBlockAttribute']('width'),_0x2039ac['registerBlockAttribute']('height'),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x24177a=>{if('attribute'!=_0x24177a['type'])return;const {data:_0x52b383}=_0x24177a;return!_0x52b383||'width'!=_0x52b383['key']&&'height'!=_0x52b383['key']?void 0x0:{'type':'format','content':''};})),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x1bdd79=>{if(!!_0x3cd7d1['find'](({type:_0x410485,subType:_0x5a8ace})=>_0x1bdd79['type']==_0x410485&&_0x1bdd79['subType']==_0x5a8ace))return _0x1bdd79['previous']?{}:void 0x0;}),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x439686=>{if('insertion'==_0x439686['type']||'deletion'==_0x439686['type']){const _0x36197b=_0x439686['getContainedElement']();if(_0x36197b&&_0x36197b['is']('element','caption'))return{'type':'insertion'==_0x439686['type']?'addObject':'removeObject','element':_0x36197b,'quantity':0x1};}}),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x47ac10=>'formatBlock'==_0x47ac10['type']&&'convertInlineImageToBlock'==_0x47ac10['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x47ac10['type']&&'convertBlockImageToInline'==_0x47ac10['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x2039ac['descriptionFactory']['registerDescriptionCallback'](_0x282995=>{if('attribute'!=_0x282995['type'])return;const {data:_0x353d98}=_0x282995;if(!_0x353d98||'alt'!=_0x353d98['key'])return;const _0x7091=_0x353d98['newValue'];return _0x7091?{'type':'format','content':c(_0x230f81,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x7091+'\x22')}:{'type':'format','content':c(_0x230f81,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x149a4a=this['editor'],_0x2786fd=_0x149a4a['locale'];_0x149a4a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47f08c=>{if('formatBlock'!=_0x47f08c['type']&&'formatInline'!=_0x47f08c['type'])return;const {data:_0x5e911f}=_0x47f08c;if(_0x5e911f){if('imageTextAlternative'==_0x5e911f['commandName']){const _0x3b58b1=_0x5e911f['commandParams'][0x0]['newValue'];return _0x3b58b1?{'type':'format','content':c(_0x2786fd,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b58b1+'\x22')}:{'type':'format','content':c(_0x2786fd,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5e911f['commandName']){const _0x2ee1e4=_0x5e911f['commandParams'][0x0]['width'];return _0x2ee1e4?{'type':'format','content':c(_0x2786fd,'*Set\x20image\x20width:*\x20%0',_0x2ee1e4)}:{'type':'format','content':c(_0x2786fd,'*Reset\x20image\x20width*')};}}});}}class at extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x30b5e7=this['editor']['locale'],_0x1e2861=this['editor']['plugins']['get']('TrackChangesEditing');_0x1e2861['enableDefaultAttributesIntegration']('replaceImageSource'),_0x1e2861['registerBlockAttribute']('src'),_0x1e2861['descriptionFactory']['registerDescriptionCallback'](_0x4377b4=>{if('attribute'!=_0x4377b4['type'])return;const {data:_0x21f41b}=_0x4377b4;return _0x21f41b&&'src'==_0x21f41b['key']?_0x21f41b['newValue']&&_0x21f41b['oldValue']?{'type':'format','content':c(_0x30b5e7,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x468dd7=this['editor']['plugins']['get']('TrackChangesEditing');_0x468dd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x468dd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x468dd7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x468dd7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5334e6=this['editor'],_0x5619bb=_0x5334e6['locale'];_0x5334e6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf93cde=>{if('formatBlock'!=_0xf93cde['type']&&'formatInline'!=_0xf93cde['type'])return;const {data:_0x3d1fd3}=_0xf93cde;if(!_0x3d1fd3||'replaceImageSource'!=_0x3d1fd3['commandName'])return;return{'type':'format','content':c(_0x5619bb,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x5543a6{['afterInit'](){const _0x5bddb7=this['editor'];if(!_0x5bddb7['plugins']['has']('ImageStyleEditing'))return;const _0xcbd6c2=_0x5bddb7['plugins']['get']('TrackChangesEditing'),_0x3068f1=_0x5bddb7['plugins']['get']('ImageUtils'),_0x2ac91f={};_0xcbd6c2['enableCommand']('imageStyle',(_0x363e12,_0x52ed8b)=>{const _0x4a5884=_0x5bddb7['plugins']['get']('Users')['me'],_0x5ae064=_0x5bddb7['commands']['get']('imageStyle');let _0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),_0x58e201=_0x5bddb7['model']['createRangeOn'](_0x4c4cd0),_0x260396=_0x5ae064['value'];if(_0x260396==_0x52ed8b['value'])return;const _0xe5757e={'commandName':'imageStyle','commandParams':[_0x52ed8b],'formatGroupId':_0x25d5a0()};_0x5bddb7['model']['change'](()=>{if(_0xcbd6c2['getSuggestions']()['filter'](_0x3dcd63=>_0x3dcd63['isInContent']&&_0x4a5884==_0x3dcd63['author']&&('formatBlock'==_0x3dcd63['type']||'formatInline'==_0x3dcd63['type'])&&('imageStylePreApply'==_0x3dcd63['subType']||'imageStylePostApply'==_0x3dcd63['subType'])&&_0x3dcd63['getFirstRange']()['isEqual'](_0x58e201))['forEach'](_0x35f8d1=>_0xcbd6c2['discardSuggestion'](_0x35f8d1['head'])),_0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),_0x58e201=_0x5bddb7['model']['createRangeOn'](_0x4c4cd0),_0x5ae064['refresh'](),_0x5bddb7['commands']['get']('imageTypeInline')['refresh'](),_0x5bddb7['commands']['get']('imageTypeBlock')['refresh'](),_0x260396=_0x5ae064['value'],_0x260396!=_0x52ed8b['value'])return _0x3068f1['isInlineImage'](_0x4c4cd0)&&_0x5ae064['shouldConvertImageType'](_0x52ed8b['value'],_0x4c4cd0)?(_0x363e12({..._0x52ed8b,'setImageSizes':!0x1}),_0x4c4cd0=_0x3068f1['getClosestSelectedImageElement'](_0x5bddb7['model']['document']['selection']),void _0xcbd6c2['markBlockFormat'](_0x4c4cd0,{..._0xe5757e,'commandReversedParams':[{'value':_0x260396||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3068f1['isBlockImage'](_0x4c4cd0)?_0xcbd6c2['markBlockFormat'](_0x4c4cd0,_0xe5757e,[],'imageStylePostApply'):_0xcbd6c2['markInlineFormat'](_0x58e201,_0xe5757e,'imageStylePostApply'));});});for(const _0x1344ab of _0x5bddb7['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2ac91f[_0x1344ab['name']]=_0x1344ab['title']['toLowerCase']();_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb7fd18])=>{_0x3068f1['setImageNaturalSizeAttributes'](_0xb7fd18['getContainedElement']());}),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x326f8e,_0x49b3c4)=>{_0xcbd6c2['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x326f8e,{'commandName':_0x49b3c4['commandName'],'commandParams':_0x49b3c4['commandReversedParams']});}),_0xcbd6c2['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x249988,_0x5da8d9){if(_0x291b9f(_0x249988,_0x5da8d9))return[_0x249988,_0x5da8d9];if(_0x291b9f(_0x5da8d9,_0x249988))return[_0x5da8d9,_0x249988];return null;});const _0x5d5298=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x291b9f(_0x3c3af3,_0x33a7d4){const _0x4abdd2=_0x5d5298['findIndex'](({type:_0x97777e,subType:_0x36ad21})=>_0x3c3af3['type']==_0x97777e&&_0x3c3af3['subType']==_0x36ad21),_0x494d71=_0x5d5298['findIndex'](({type:_0x34ed3f,subType:_0x475796})=>_0x33a7d4['type']==_0x34ed3f&&_0x33a7d4['subType']==_0x475796);if(_0x4abdd2<0x0||_0x494d71<0x0)return!0x1;const _0x1ebf16=_0x3c3af3['getFirstRange'](),_0xe4c3a4=_0x33a7d4['getFirstRange']();if((0x0==_0x4abdd2||0x1==_0x4abdd2)&&0x2==_0x494d71&&_0x1ebf16['isIntersecting'](_0xe4c3a4))return!0x0;if(0x2==_0x4abdd2&&0x3==_0x494d71){const _0x16a491=_0xcbd6c2['_findSuggestions'](_0x1ebf16,'insertion')['filter'](({suggestion:_0x184ac9,meta:_0x28df8f})=>_0x28df8f['isOwn']&&'convertInlineImageToBlock'==_0x184ac9['subType']);if(_0x16a491['length']>0x1&&_0xe4c3a4['end']['isEqual'](_0x1ebf16['start']))return!0x0;if(0x1==_0x16a491['length']&&(_0x1ebf16['start']['isEqual'](_0xe4c3a4['end'])||_0x1ebf16['end']['isEqual'](_0xe4c3a4['start'])))return!0x0;}if(0x3==_0x4abdd2&&0x3==_0x494d71&&_0x1ebf16['start']['isBefore'](_0xe4c3a4['start'])){const _0x1e461b=_0x1ebf16['end']['nodeAfter'],_0x3a6d0a=_0xe4c3a4['start']['nodeBefore'];return _0x3068f1['isBlockImage'](_0x1e461b)&&_0x1e461b===_0x3a6d0a;}return!0x1;}_0x5bddb7['model']['document']['registerPostFixer'](()=>{let _0x3a1104=!0x1;const _0x246ded=Array['from'](_0x5bddb7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x492699,data:_0x260388}of _0x246ded){const {group:_0x341a1b,type:_0x267b27,subType:_0x12746e,id:_0x134dcf}=_0xcbd6c2['_splitMarkerName'](_0x492699);if('suggestion'==_0x341a1b&&_0xcbd6c2['hasSuggestion'](_0x134dcf)){if('formatBlock'==_0x267b27&&('imageStylePreApply'==_0x12746e||'imageStylePostApply'==_0x12746e)){const _0x45916f=_0xcbd6c2['getSuggestion'](_0x134dcf);if(_0x260388['newRange']){const _0x5bc12b=_0x45916f['getFirstRange']()['getContainedElement']();if(_0x3068f1['isBlockImage'](_0x5bc12b))continue;_0xcbd6c2['discardSuggestion'](_0x45916f),_0x3a1104=!0x0;}}if('insertion'==_0x267b27&&'imageCaption'==_0x12746e&&!_0x260388['newRange']){const _0x45a00c=_0xcbd6c2['getSuggestion'](_0x134dcf);_0x45a00c['next']&&_0x45a00c['next']['isInContent']&&(_0xcbd6c2['discardSuggestion'](_0x45a00c['next']),_0x3a1104=!0x0);}}}return _0x3a1104;}),this['_registerLegacyDescription'](_0x2ac91f);}['_registerLegacyDescription'](_0x46c14a){const _0x3d85fb=this['editor'],_0x425eff=_0x3d85fb['locale'];_0x3d85fb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54be72=>{if('formatBlock'!=_0x54be72['type']&&'formatInline'!=_0x54be72['type'])return;const {data:_0x439b17}=_0x54be72;if(!_0x439b17||'imageStyle'!=_0x439b17['commandName'])return;const _0x3976c3=_0x439b17['commandParams'][0x0]['value'];return _0x9b4fe('side'===_0x3976c3?c(_0x425eff,'FORMAT_SIDE_IMAGE'):_0x46c14a[_0x3976c3]||_0x3976c3);function _0x9b4fe(_0xbd8be9){return{'type':'format','content':c(_0x425eff,'*Format:*\x20%0',_0xbd8be9)};}});}}class ut extends _0x5543a6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x41f63f){super(_0x41f63f),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x5ad300=this['editor'],_0xc506c0=_0x5ad300['commands']['get']('importWord'),_0xde7413=_0x5ad300['commands']['get']('trackChanges');_0xc506c0&&(_0xc506c0['on']('execute',(_0xd1bca2,[,_0xcb6ee9])=>{this['_trackChangesValueDuringImport']=_0xde7413['value'],_0xcb6ee9['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xc506c0,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xc506c0,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xde7413['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x5ad300['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x393955,_0x203c7f){const {suggestions:_0x54fbc5}=_0x203c7f,_0x354ab2=this['editor']['commands']['get']('trackChanges'),_0x12fcdb=_0x354ab2['value'];this['_trackChangesValueDuringImport']!==_0x12fcdb&&(_0x354ab2['execute'](),this['_trackChangesExecuted']=!0x0),_0x54fbc5&&_0x54fbc5['forEach'](({id:_0x1abc20,type:_0x96aa76,author:_0xc9768,created_at:_0x3cfcf3})=>{const _0x13030e={'id':_0x1abc20,'type':_0x96aa76,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xc9768,'createdAt':_0x3cfcf3?new Date(_0x3cfcf3):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x13030e);});}}class ft extends _0x5543a6{['afterInit'](){const _0x44bf30=this['editor'],_0x3f752d=_0x44bf30['plugins']['get']('TrackChangesEditing');if(_0x44bf30['plugins']['has']('IndentEditing')&&(_0x3f752d['enableCommand']('indent'),_0x3f752d['enableCommand']('outdent')),_0x44bf30['plugins']['has']('IndentBlock')){for(const _0x308068 of['indentBlock','outdentBlock'])_0x3f752d['enableDefaultAttributesIntegration'](_0x308068);}const _0x49e646=_0x44bf30['locale'];_0x3f752d['registerBlockAttribute']('blockIndent'),_0x3f752d['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x49e646,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36bb0b=this['editor'],_0x2a3cdd=_0x36bb0b['locale'],_0x58a2a7=_0x36bb0b['plugins']['get']('TrackChangesEditing');_0x58a2a7['descriptionFactory']['registerDescriptionCallback'](_0x92c417=>{if('formatBlock'!=_0x92c417['type'])return;const {data:_0x210767}=_0x92c417;if(!_0x210767)return;if('indentBlock'!=_0x210767['commandName']&&'outdentBlock'!=_0x210767['commandName'])return;const _0x3896ff=_0x92c417['getItems']()[0x0],_0x3c5223=_0x58a2a7['descriptionFactory']['getItemLabel'](_0x3896ff);return'indentBlock'==_0x210767['commandName']?{'type':'format','content':c(_0x2a3cdd,'*Indent:*\x20%0',_0x3c5223)}:'outdentBlock'==_0x210767['commandName']?{'type':'format','content':c(_0x2a3cdd,'*Outdent:*\x20%0',_0x3c5223)}:void 0x0;});}}class ht extends _0x5543a6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x5543a6{['afterInit'](){const _0x10c5d7=this['editor'];if(!_0x10c5d7['plugins']['has']('LinkEditing'))return;const _0x1b7057=_0x10c5d7['plugins']['get']('TrackChangesEditing'),_0x35118f=_0x10c5d7['commands']['get']('link');_0x1b7057['enableDefaultAttributesIntegration']('link'),_0x1b7057['enableDefaultAttributesIntegration']('unlink'),_0x1b7057['registerInlineAttribute']('linkHref');for(const _0x3d1880 of _0x35118f['manualDecorators'])_0x1b7057['registerInlineAttribute'](_0x3d1880['id']),_0x1b7057['descriptionFactory']['registerAttributeLabel'](_0x3d1880['id'],'link\x20('+_0x3d1880['label']['toLowerCase']()+')');_0x1b7057['descriptionFactory']['registerDescriptionCallback'](_0x23a4db=>{if('attribute'!=_0x23a4db['type'])return;const {data:_0x53406c}=_0x23a4db;if(!_0x53406c||'linkHref'!=_0x53406c['key'])return;const _0x1bc4cd=_0x53406c['newValue'],_0x541e5f=_0x10c5d7['locale'];return{'type':'format','content':null==_0x1bc4cd?c(_0x541e5f,'*Remove\x20link*'):c(_0x541e5f,'*Set\x20link:*\x20%0','\x22'+_0x1bc4cd+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x56f242=this['editor'],_0x5f0fa0=_0x56f242['locale'];_0x56f242['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x259dc7=>{if('formatInline'!=_0x259dc7['type'])return;const {data:_0x4e9cfc}=_0x259dc7;if(_0x4e9cfc){if('link'==_0x4e9cfc['commandName']){const _0x580d05=_0x4e9cfc['commandParams'][0x0];return{'type':'format','content':c(_0x5f0fa0,'*Set\x20link:*\x20%0','\x22'+_0x580d05+'\x22')};}return'unlink'==_0x4e9cfc['commandName']?{'type':'format','content':c(_0x5f0fa0,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x5543a6{['afterInit'](){const _0x4f74ae=this['editor'],_0x269c14=_0x4f74ae['locale'];if(!_0x4f74ae['plugins']['has']('LegacyListEditing'))return;const _0x52c77b=_0x4f74ae['plugins']['get']('TrackChangesEditing'),_0x4f06f2=_0x4f74ae['plugins']['has']('LegacyTodoListEditing');function _0x2f6677(_0x368abb){return()=>{const _0x5ac49f=_0x4f74ae['model']['document']['selection'],_0x20c144=_0x4f74ae['commands']['get'](_0x368abb);if(_0x20c144['value'])return void _0x4f74ae['execute']('paragraph',{});const _0x3e52e8=_0x368abb['slice'](0x0,-0x4),_0x1bc479=function(_0x1e6db4,_0x29b0e5,_0x3bb415){let _0x1d68fb=Array['from'](_0x1e6db4)['filter'](_0x4bdbdb=>function(_0x55f657,_0x149a83){return _0x149a83['checkChild'](_0x55f657['parent'],'listItem')&&!_0x149a83['isObject'](_0x55f657);}(_0x4bdbdb,_0x3bb415));_0x1d68fb=_0x1d68fb['filter'](_0x28cea8=>!_0x28cea8['is']('element','listItem')||_0x28cea8['getAttribute']('listType')!=_0x29b0e5);const _0x52ebbc=new Set();for(const _0x4dfdd5 of _0x1d68fb)_0x4dfdd5['is']('element','listItem')?_0x52ebbc['add'](Le(_0x4dfdd5)):_0x52ebbc['add'](_0x4dfdd5);return Array['from'](_0x52ebbc);}(_0x5ac49f['getSelectedBlocks'](),_0x3e52e8,_0x4f74ae['model']['schema']);_0x4f74ae['model']['change'](()=>{for(const _0x60c0e1 of _0x1bc479)_0x52c77b['markBlockFormat'](_0x60c0e1,{'commandName':_0x368abb,'commandParams':[{'forceValue':!_0x20c144['value']}],'formatGroupId':'blockName'},Ee(_0x60c0e1));});};}function _0x403011(_0x43195a){return()=>{const _0x3ca387=function(_0x2d68de){let _0x54bc9f=Array['from'](_0x2d68de);const _0x366e6c=_0x54bc9f['findIndex'](_0x521c7e=>'listItem'!=_0x521c7e['name']);return _0x366e6c>-0x1&&(_0x54bc9f=_0x54bc9f['slice'](0x0,_0x366e6c)),_0x54bc9f;}(_0x4f74ae['model']['document']['selection']['getSelectedBlocks']()),_0x17d2d4=_0x4f74ae['model']['createRange'](_0x4f74ae['model']['createPositionAt'](_0x3ca387[0x0],'before'),_0x4f74ae['model']['createPositionAt'](_0x3ca387[_0x3ca387['length']-0x1],'end'));_0x4f74ae['model']['change'](()=>{_0x52c77b['markBlockFormat'](_0x17d2d4,{'commandName':_0x43195a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x599342){const _0x47e447=new Set();for(const _0x3648cf of _0x599342){let _0xf2d0c2=_0x3648cf['nextSibling'];for(;_0xf2d0c2&&_0xf2d0c2['getAttribute']('listIndent')>_0x3648cf['getAttribute']('listIndent');)_0x47e447['add'](_0xf2d0c2),_0xf2d0c2=_0xf2d0c2['nextSibling'];}return Array['from'](_0x47e447);}(_0x3ca387));});};}_0x52c77b['enableCommand']('numberedList',_0x2f6677('numberedList')),_0x52c77b['enableCommand']('bulletedList',_0x2f6677('bulletedList')),_0x4f06f2&&_0x52c77b['enableCommand']('todoList',_0x2f6677('todoList')),_0x52c77b['enableCommand']('indentList',_0x403011('indentList')),_0x52c77b['enableCommand']('outdentList',_0x403011('outdentList')),_0x4f06f2&&_0x52c77b['enableCommand']('checkTodoList',()=>{const _0x5baa94=_0x4f74ae['commands']['get']('checkTodoList'),_0x29be8e=Array['from'](_0x5baa94['_selectedElements']);_0x29be8e['filter'](_0x3a933b=>_0x3a933b['getAttribute']('todoListChecked')!=_0x5baa94['value']),_0x4f74ae['model']['change'](()=>{for(const _0x12c101 of _0x29be8e)_0x52c77b['markBlockFormat'](_0x12c101,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5baa94['value']}]});});}),_0x52c77b['descriptionFactory']['registerElementLabel']('listItem',_0x70e2ab=>c(_0x269c14,'ELEMENT_LIST_ITEM',_0x70e2ab)),_0x52c77b['descriptionFactory']['registerDescriptionCallback'](_0x23868f=>{if('formatBlock'!=_0x23868f['type']&&'formatInline'!=_0x23868f['type'])return;const {data:_0x21f10a}=_0x23868f;if(_0x21f10a){if('numberedList'==_0x21f10a['commandName']||'bulletedList'==_0x21f10a['commandName']||'todoList'==_0x21f10a['commandName'])switch(_0x21f10a['commandName']['replace']('List','')){case'bulleted':return _0x5c65cb(c(_0x269c14,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5c65cb(c(_0x269c14,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5c65cb(c(_0x269c14,'ELEMENT_TODO_LIST'));}if('indentList'==_0x21f10a['commandName'])return{'type':'format','content':c(_0x269c14,'*Indent:*\x20%0',c(_0x269c14,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x21f10a['commandName'])return{'type':'format','content':c(_0x269c14,'*Outdent:*\x20%0',c(_0x269c14,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x21f10a['commandName'])return _0x21f10a['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x269c14,'*Check\x20item*')}:{'type':'format','content':c(_0x269c14,'*Uncheck\x20item*')};}function _0x5c65cb(_0x3c4db3){return{'type':'format','content':c(_0x269c14,'*Change\x20to:*\x20%0',_0x3c4db3)};}});}}function Le(_0x2d341a){const _0x4ac21c=_0x2d341a['getAttribute']('listIndent');if(0x0==_0x4ac21c)return _0x2d341a;let _0x2f5c26=_0x2d341a;for(;_0x2d341a['previousSibling']&&_0x2d341a['previousSibling']['is']('element','listItem');){const _0x4b4553=_0x2d341a['previousSibling']['getAttribute']('listIndent');if(_0x4b4553==_0x4ac21c)_0x2f5c26=_0x2d341a['previousSibling'];else{if(_0x4b4553<_0x4ac21c)break;}_0x2d341a=_0x2d341a['previousSibling'];}return _0x2f5c26;}function Ee(_0x112276){const _0x16ad88=[];if(_0x112276['is']('element','listItem')&&_0x112276['getAttribute']('listIndent')>0x0){let _0x3f4de8=_0x112276['nextSibling'];for(;_0x3f4de8&&'listItem'==_0x3f4de8['name']&&_0x3f4de8['getAttribute']('listIndent')==_0x112276['getAttribute']('listIndent');)_0x16ad88['push'](_0x3f4de8),_0x3f4de8=_0x3f4de8['nextSibling'];}return _0x16ad88;}class Q extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x55d8c8=this['editor']['config']['get']('list.properties'),_0x49c306=this['editor']['plugins']['get']('TrackChangesEditing');_0x55d8c8['styles']&&_0x49c306['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x55d8c8['reversed']&&_0x49c306['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x55d8c8['startIndex']&&_0x49c306['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x49c306['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5d5470,_0x1b8f00={}){const _0x47a7bd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x39d179=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x47a7bd['markMultiRangeBlockFormat'](_0x39d179,{'commandName':'listStyle','commandParams':[{'type':_0x1b8f00['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x9433cd,_0x3dfdb0={}){const _0x5f2111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x975a53=this['_getSuggestionBlocks'](_0x86a300=>_0x86a300['is']('element','listItem')&&'numbered'===_0x86a300['getAttribute']('listType'));if(_0x975a53['length']<0x1)return;const _0x423c68=_0x975a53['map'](_0x18177f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x18177f,'before'),this['editor']['model']['createPositionAt'](_0x18177f,0x0)));this['editor']['model']['change'](()=>{_0x5f2111['markMultiRangeBlockFormat'](_0x423c68,{'commandName':'listReversed','commandParams':[{'reversed':_0x3dfdb0['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x236cb0,_0x3ef812={}){const _0x464e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5bd0b2=this['_getSuggestionBlocks'](_0x4e5902=>_0x4e5902['is']('element','listItem')&&'numbered'===_0x4e5902['getAttribute']('listType'));if(_0x5bd0b2['length']<0x1)return;const _0x6d2956=_0x5bd0b2['map'](_0x32ffaf=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32ffaf,'before'),this['editor']['model']['createPositionAt'](_0x32ffaf,0x0)));this['editor']['model']['change'](()=>{_0x464e5b['markMultiRangeBlockFormat'](_0x6d2956,{'commandName':'listStart','commandParams':[{'startIndex':_0x3ef812['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5a499e){if('formatBlock'!=_0x5a499e['type']&&'formatInline'!=_0x5a499e['type'])return;const _0x223c34=this['editor']['locale'],{data:_0x1ce6bc}=_0x5a499e;if(!_0x1ce6bc)return;let _0xfe068d,_0x587081;switch(_0x1ce6bc['commandName']){case'listStyle':_0xfe068d='*Change\x20to:*\x20%0',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d,c(_0x223c34,this['_getTranslationKeyForListStyle'](_0x1ce6bc['commandParams'][0x0]['type'])))};break;case'listReversed':_0xfe068d=_0x1ce6bc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d)};break;case'listStart':_0xfe068d='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x587081={'type':'format','content':c(_0x223c34,_0xfe068d,_0x1ce6bc['commandParams'][0x0]['startIndex'])};}return _0x587081;}['_getSuggestionBlocksForListStyle'](){const _0x1e12ac=this['editor']['plugins']['get']('LegacyListUtils');let _0x33c63e=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x33c63e[0x0]?.['is']('element','listItem')&&_0x33c63e['unshift'](..._0x1e12ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x33c63e[_0x33c63e['length']-0x1]?.['is']('element','listItem')&&_0x33c63e['push'](..._0x1e12ac['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x33c63e=[...new Set(_0x33c63e)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x33c63e=_0x33c63e['filter'](_0x32268c=>_0x32268c['is']('element','listItem'))),_0x33c63e;}['_getSuggestionBlocks'](_0x5c11fd){const _0x342114=this['editor']['plugins']['get']('LegacyListUtils');let _0x330280=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c11fd)['map'](_0x30bd64=>{const _0x3ec0f0=this['editor']['model']['createPositionAt'](_0x30bd64,0x0);return[..._0x342114['getSiblingNodes'](_0x3ec0f0,'backward'),..._0x342114['getSiblingNodes'](_0x3ec0f0,'forward')];})['flat']();return _0x330280=[...new Set(_0x330280)],_0x330280;}['_getTranslationKeyForListStyle'](_0x3ae0c0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3ae0c0)||'default')['toUpperCase']()+'_LIST_'+_0x3ae0c0['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5543a6{['afterInit'](){const _0xc06bbd=this['editor'];if(!_0xc06bbd['plugins']['has']('MediaEmbedEditing'))return;const _0x35340e=_0xc06bbd['plugins']['get']('TrackChangesEditing'),_0x1b6555=_0xc06bbd['locale'];_0x35340e['enableCommand']('mediaEmbed'),_0x35340e['descriptionFactory']['registerElementLabel']('media',_0x12d500=>c(_0x1b6555,'ELEMENT_MEDIA',_0x12d500)),_0xc06bbd['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x47f3d5,{writer:_0x2ed47e,options:_0x44f425})=>{if(_0x44f425['showSuggestionHighlights'])return _0x2ed47e['createEmptyElement']('div');},'converterPriority':'high'}),_0xc06bbd['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4d2f17,_0x59f10b,_0x7d6887)=>{_0x7d6887['options']['showSuggestionHighlights']&&_0x4d2f17['stop']();},{'priority':'high'});}}class pt extends _0x5543a6{['afterInit'](){const _0x15e42b=this['editor'];_0x15e42b['plugins']['has']('MentionEditing')&&_0x15e42b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x5543a6{['afterInit'](){const _0x5a7b09=this['editor'];if(!_0x5a7b09['plugins']['has']('MergeFieldsEditing'))return;const _0x1ade98=_0x5a7b09['plugins']['get']('TrackChangesEditing'),_0x25eb1d=_0x5a7b09['locale'];_0x1ade98['enableCommand']('insertMergeField'),_0x1ade98['enableCommand']('insertMergeFieldBlock'),_0x1ade98['enableCommand']('insertMergeFieldImage'),_0x1ade98['descriptionFactory']['registerElementLabel']('mergeField',_0x48befa=>c(_0x25eb1d,'ELEMENT_MERGE_FIELD',_0x48befa)),_0x1ade98['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x155364=>c(_0x25eb1d,'ELEMENT_MERGE_FIELD',_0x155364)),_0x1ade98['descriptionFactory']['registerDescriptionCallback'](_0x45719f=>{if('insertion'!=_0x45719f['type']&&'deletion'!=_0x45719f['type'])return;const _0x11888a=_0x45719f['getContainedElement']();if(null==_0x11888a)return;const _0x10ff11=_0x5a7b09['plugins']['get']('MergeFieldsEditing');let _0x5062b3;switch(_0x10ff11['getMergeFieldType'](_0x11888a)){case null:return;case'image':{const _0x213b81=_0x10ff11['unwrapAffixes'](_0x11888a['getAttribute']('src'));_0x5062b3=_0x10ff11['getLabel'](_0x213b81)||_0x213b81;break;}default:{const _0x978b66=_0x11888a['getAttribute']('id');_0x5062b3=_0x10ff11['getLabel'](_0x978b66)||_0x978b66;break;}}return'insertion'==_0x45719f['type']?{'type':'insertion','content':c(_0x25eb1d,'*Insert:*\x20%0','\x22'+_0x5062b3+'\x22\x20'+c(_0x25eb1d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0x25eb1d,'*Remove:*\x20%0','\x22'+_0x5062b3+'\x22\x20'+c(_0x25eb1d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x5543a6{['afterInit'](){const _0x12f703=this['editor'],_0x48fa4b=_0x12f703['plugins']['get']('TrackChangesEditing');_0x12f703['plugins']['has']('MultiLevelList')&&(_0x48fa4b['enableDefaultAttributesIntegration']('multiLevelList'),_0x48fa4b['registerBlockAttribute']('listMarkerStyle'),_0x48fa4b['descriptionFactory']['registerDescriptionCallback'](_0x4f243b=>this['handleDescriptions'](_0x4f243b)));}['handleDescriptions'](_0x148513){const _0x4a58b8=this['editor']['locale'],{data:_0x570cda}=_0x148513,_0x745fd1={'type':'format','content':''};if(_0x570cda&&'listMarkerStyle'==_0x570cda['key']){if(!_0x570cda['oldValue'])return{'type':'format','content':c(_0x4a58b8,'*Set\x20format:*\x20%0',c(_0x4a58b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570cda['newValue']+')'};if(!_0x570cda['newValue']){let _0x47fccc=_0x148513['head'];for(;_0x47fccc;){if(_0x47fccc['data']&&'listType'==_0x47fccc['data']['key']&&_0x47fccc['data']['newValue'])return _0x745fd1;_0x47fccc=_0x47fccc['next'];}return{'type':'format','content':c(_0x4a58b8,'*Remove\x20format:*\x20%0',c(_0x4a58b8,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x570cda['oldValue']+')'};}}}}class bt extends _0x5543a6{['afterInit'](){const _0x396d6e=this['editor'];if(!_0x396d6e['plugins']['has']('PageBreakEditing'))return;_0x396d6e['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x2fcebc=_0x396d6e['plugins']['get']('TrackChangesEditing'),_0x325c43=_0x396d6e['locale'];_0x2fcebc['descriptionFactory']['registerElementLabel']('pageBreak',_0x11a853=>c(_0x325c43,'ELEMENT_PAGE_BREAK',_0x11a853));}}class yt extends _0x5543a6{['afterInit'](){const _0x1b0bf7=this['editor'];if(!_0x1b0bf7['plugins']['has']('Paragraph'))return;const _0x540112=_0x1b0bf7['locale'],_0xd29597=_0x1b0bf7['plugins']['get']('TrackChangesEditing');_0xd29597['descriptionFactory']['registerElementLabel']('paragraph',_0x30d09f=>c(_0x540112,'ELEMENT_PARAGRAPH',_0x30d09f)),_0xd29597['enableDefaultAttributesIntegration']('paragraph'),_0xd29597['enableCommand']('insertParagraph'),_0x1b0bf7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1b0bf7),{'priority':'highest'}),_0x1b0bf7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x14de32,_0x4fe4a0,_0x195af8)=>{_0x195af8['options']['showSuggestionHighlights']&&nr(_0x1b0bf7,{'showActiveMarker':!0x1})(_0x14de32,_0x4fe4a0,_0x195af8);},{'priority':'highest'});const _0x270525=_0xd29597['descriptionFactory'];_0x270525['registerDescriptionCallback'](_0xc3655e=>{if('insertion'!==_0xc3655e['type'])return;const {start:_0x441c57,end:_0x3a80e0}=_0xc3655e['getFirstRange']();if(!_0x441c57['isTouching'](_0x3a80e0)||!_0x441c57['nodeAfter'])return;const _0x2ecb8f=_0x1b0bf7['model']['schema'],_0x4fdd51=_0x441c57['nodeAfter'];return _0x2ecb8f['isBlock'](_0x4fdd51)&&!_0x2ecb8f['isLimit'](_0x4fdd51)&&_0x2ecb8f['checkChild'](_0x4fdd51,'$text')?{'type':'insertion','content':c(_0x540112,'*Insert:*\x20%0',_0x270525['getItemLabel'](_0x4fdd51,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a0635=this['editor'],_0x3cbe13=_0x3a0635['locale'];_0x3a0635['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592b8b=>{if('formatBlock'!=_0x592b8b['type'])return;const {data:_0x247dc1}=_0x592b8b;return _0x247dc1&&'paragraph'==_0x247dc1['commandName']?{'type':'format','content':c(_0x3cbe13,'*Change\x20to:*\x20%0',c(_0x3cbe13,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xac6e54,{showActiveMarker:_0xf3ba51=!0x0}={}){return(_0x16f190,_0x4073e3,_0x53202f)=>{const _0x5b7c48=_0xac6e54['plugins']['get']('TrackChangesEditing'),_0x21e7fd=_0x4073e3['markerRange']['start'],_0x3c9f84=_0x4073e3['markerRange']['end'],_0x247593=_0xac6e54['model']['schema'];if(!_0x21e7fd['isTouching'](_0x3c9f84)||!_0x21e7fd['nodeAfter'])return;const _0x12dc20=_0x21e7fd['nodeAfter'];if(_0x247593['isBlock'](_0x12dc20)&&!_0x247593['isLimit'](_0x12dc20)&&_0x247593['checkChild'](_0x12dc20,'$text')){if(!_0x53202f['consumable']['consume'](_0x4073e3['markerRange'],_0x16f190['name']))return;const {authorId:_0x164001}=_0x5b7c48['_splitMarkerName'](_0x4073e3['markerName']),_0x237bf4=_0x53202f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x164001}),_0x35dfb0=_0x53202f['mapper']['toViewPosition'](_0x3c9f84);_0xf3ba51&&_0x5b7c48['activeMarkers']['includes'](_0x4073e3['markerName'])&&_0x53202f['writer']['addClass']('ck-suggestion-marker--active',_0x237bf4),_0x53202f['writer']['insert'](_0x35dfb0,_0x237bf4),_0x53202f['mapper']['bindElementToMarker'](_0x237bf4,_0x4073e3['markerName']);}};}class jt extends _0x5543a6{['afterInit'](){const _0x534822=this['editor'];_0x534822['commands']['get']('replaceSource')&&_0x534822['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x5543a6{['afterInit'](){const _0x6ffef2=this['editor'];if(!_0x6ffef2['plugins']['has']('RemoveFormatEditing'))return;_0x6ffef2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505be9=this['editor'];_0x505be9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49fb73=>{if('formatBlock'!=_0x49fb73['type']&&'formatInline'!=_0x49fb73['type'])return;const {data:_0xa71611}=_0x49fb73;return _0xa71611&&'removeFormat'==_0xa71611['commandName']?{'type':'format','content':c(_0x505be9['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x5543a6{['afterInit'](){const _0x34bd17=this['editor'];if(!_0x34bd17['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x31226d=_0x34bd17['plugins']['get']('TrackChangesEditing');_0x31226d['enableCommand']('goToPreviousRestrictedEditingException'),_0x31226d['enableCommand']('goToNextRestrictedEditingException');const _0x54c1af=_0x34bd17['plugins']['get']('RestrictedEditingModeEditing');_0x54c1af['enableCommand']('trackChanges'),_0x54c1af['enableCommand']('acceptSuggestion'),_0x54c1af['enableCommand']('discardSuggestion'),_0x54c1af['enableCommand']('acceptAllSuggestions'),_0x54c1af['enableCommand']('discardAllSuggestions'),_0x54c1af['enableCommand']('acceptSelectedSuggestions'),_0x54c1af['enableCommand']('discardSelectedSuggestions');}}class It extends _0x5543a6{['afterInit'](){const _0xf8477a=this['editor'];if(!_0xf8477a['plugins']['has']('ShiftEnter'))return;const _0x25260e=_0xf8477a['plugins']['get']('TrackChangesEditing');_0x25260e['enableCommand']('shiftEnter'),_0xf8477a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0xf8477a),{'priority':'high'}),_0xf8477a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0xf8477a),{'priority':'high'}),_0xf8477a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3e15c2,_0x553f71,_0x1d63a9)=>{_0x1d63a9['options']['showSuggestionHighlights']&&je(_0xf8477a,{'showActiveMarker':!0x1})(_0x3e15c2,_0x553f71,_0x1d63a9);}),_0x25260e['descriptionFactory']['registerElementLabel']('softBreak',_0xe95a22=>c(_0xf8477a['locale'],'ELEMENT_LINE_BREAK',_0xe95a22));}}function je(_0x3c57a5,{showActiveMarker:_0x552399=!0x0}={}){return(_0x5d1bb2,_0x152573,_0x580c31)=>{const _0x35e5ea=_0x3c57a5['plugins']['get']('TrackChangesEditing');if(!_0x580c31['consumable']['test'](_0x152573['markerRange'],_0x5d1bb2['name']))return;const _0x1cbe70=_0x3c57a5['model'];for(const _0x3a07a2 of _0x152573['markerRange']['getItems']()){if(!_0x3a07a2['is']('element','softBreak'))continue;const _0x2632ae='deletion'==_0x152573['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x341712}=_0x35e5ea['_splitMarkerName'](_0x152573['markerName']),_0x15bbc0=_0x580c31['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2632ae,'data-author-id':_0x341712}),_0x305f33=_0x580c31['mapper']['toViewPosition'](_0x1cbe70['createPositionBefore'](_0x3a07a2));_0x552399&&_0x35e5ea['activeMarkers']['includes'](_0x152573['markerName'])&&_0x580c31['writer']['addClass']('ck-suggestion-marker--active',_0x15bbc0),_0x580c31['writer']['insert'](_0x305f33,_0x15bbc0),_0x580c31['mapper']['bindElementToMarker'](_0x15bbc0,_0x152573['markerName']);}};}class _t extends _0x5543a6{['afterInit'](){const _0xd9205a=this['editor'],_0x3b13b9=_0xd9205a['model'],_0x1ad5af=_0xd9205a['locale'];if(!_0xd9205a['plugins']['has']('StandardEditingModeEditing'))return;const _0x5aed6c=_0xd9205a['plugins']['get']('TrackChangesEditing'),_0x29c756='restrictedEditingException',_0x4340de=_0xd9205a['commands']['get'](_0x29c756);_0x5aed6c['enableCommand'](_0x29c756,(_0x2a8f20,_0x20fc65={})=>{const _0x3f9939=_0x3b13b9['document']['selection'];if(_0x3f9939['isCollapsed'])return void _0x2a8f20(_0x20fc65);const _0x394d7e=void 0x0!==_0x20fc65['forceValue']?_0x20fc65['forceValue']:!_0x4340de['value'];_0x3b13b9['change'](()=>{const _0x5d5b4d=Array['from'](_0x3f9939['getRanges']());for(const _0x5cd489 of _0x5d5b4d){const _0x4ad58c=_0x394d7e?[_0x5cd489]:io(_0x29c756,_0x5cd489,_0x3b13b9);for(const _0x526ff6 of _0x4ad58c)_0x5aed6c['markInlineFormat'](_0x526ff6,{'commandName':_0x29c756,'commandParams':[{'forceValue':_0x394d7e}]});}});}),_0x5aed6c['descriptionFactory']['registerDescriptionCallback'](_0x3b2f69=>{if('formatBlock'!=_0x3b2f69['type']&&'formatInline'!=_0x3b2f69['type'])return;const {data:_0x383b2f}=_0x3b2f69;return _0x383b2f&&_0x383b2f['commandName']==_0x29c756?_0x383b2f['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1ad5af,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x1ad5af,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x5543a6{['afterInit'](){const _0x1f1fb2=this['editor'];if(!_0x1f1fb2['plugins']['has']('Style')||!_0x1f1fb2['plugins']['has']('DataSchema'))return;const _0x3ea90e=_0x1f1fb2['plugins']['get']('TrackChangesEditing'),_0x312bd1=_0x1f1fb2['locale'],_0x37b9ab=_0x1f1fb2['config']['get']('style')||{},_0x40a042=_0x1f1fb2['plugins']['get']('GeneralHtmlSupport'),_0x24cba1=_0x1f1fb2['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1f1fb2['plugins']['get']('DataSchema'),_0x37b9ab['definitions']);_0x3ea90e['enableDefaultAttributesIntegration']('style');const _0x11df61=new Set();for(const _0x4a195f of _0x24cba1['block']){const _0x211ed0=_0x40a042['getGhsAttributeNameForElement'](_0x4a195f['element']);_0x11df61['add'](_0x211ed0);}const _0x19582a=new Set();for(const _0x59d2d8 of _0x24cba1['inline']){const _0x3f1c63=_0x40a042['getGhsAttributeNameForElement'](_0x59d2d8['element']);_0x19582a['add'](_0x3f1c63);for(const _0x44b961 of _0x59d2d8['ghsAttributes'])_0x19582a['add'](_0x44b961);}for(const _0x3f52fb of _0x11df61)_0x3ea90e['registerBlockAttribute'](_0x3f52fb),_0x3ea90e['descriptionFactory']['registerAttributeLabel'](_0x3f52fb,c(_0x312bd1,'FORMAT_STYLE'));for(const _0x4be039 of _0x19582a)_0x3ea90e['registerInlineAttribute'](_0x4be039),_0x3ea90e['descriptionFactory']['registerAttributeLabel'](_0x4be039,c(_0x312bd1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x423c58=this['editor'],_0x41bf07=_0x423c58['locale'];_0x423c58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4789ed=>{if('formatBlock'!=_0x4789ed['type']&&'formatInline'!=_0x4789ed['type'])return;const {data:_0x2283a7}=_0x4789ed;return _0x2283a7&&'style'===_0x2283a7['commandName']?_0x2283a7['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x41bf07,'*Set\x20format:*\x20%0',_0x2283a7['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0x41bf07,'*Remove\x20format:*\x20%0',_0x2283a7['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x5543a6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xff361){super(_0xff361),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x51f197=this['editor'],_0x3b7ca3=_0x51f197['model']['document']['selection'];if(!_0x51f197['plugins']['has']('TableEditing'))return;const _0x509b66=_0x51f197['locale'],_0x13ea7b=_0x51f197['plugins']['get']('TrackChangesEditing'),_0x400782=_0x51f197['plugins']['get']('TableUtils');_0x13ea7b['descriptionFactory']['registerElementLabel']('table',_0x1e05b8=>c(_0x509b66,'ELEMENT_TABLE',_0x1e05b8)),this['_setupColumnsRowsFixing'](),_0x13ea7b['enableCommand']('insertTable'),_0x13ea7b['enableCommand']('selectTableRow'),_0x13ea7b['enableCommand']('selectTableColumn');for(const _0xc3c36c of['insertTableRowAbove','insertTableRowBelow']){const _0x3f50d5=_0x51f197['commands']['get'](_0xc3c36c);_0x13ea7b['enableCommand'](_0xc3c36c,_0x539147=>{_0x51f197['model']['change'](_0x3bcbf6=>{_0x539147();const _0x1daab5='above'===_0x3f50d5['order'],_0x29ae93=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x5639b3=_0x400782['getRowIndexes'](_0x29ae93),_0x34e36a=_0x1daab5?_0x5639b3['first']-0x1:_0x5639b3['last']+0x1,_0x2bc466=_0x29ae93[0x0]['findAncestor']('table'),_0x31b0ca=_0x400782['createTableWalker'](_0x2bc466,{'startRow':_0x34e36a,'endRow':_0x34e36a}),_0x311df5=Array['from'](_0x31b0ca)['map'](_0xb64493=>_0x3bcbf6['createRangeOn'](_0xb64493['cell']));_0x13ea7b['markMultiRangeInsertion'](_0x311df5,'tableRow');});});}for(const _0x386345 of['insertTableColumnLeft','insertTableColumnRight']){const _0x178d18=_0x51f197['commands']['get'](_0x386345);_0x13ea7b['enableCommand'](_0x386345,_0x434d80=>{_0x51f197['model']['change'](_0x27275c=>{_0x434d80();const _0x4618b8='left'===_0x178d18['order'],_0x4240e6=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x32c5c7=_0x400782['getColumnIndexes'](_0x4240e6),_0x55a0a1=_0x4618b8?_0x32c5c7['first']-0x1:_0x32c5c7['last']+0x1,_0x26d3b7=_0x4240e6[0x0]['findAncestor']('table'),_0x280f27=_0x400782['createTableWalker'](_0x26d3b7,{'startRow':0x0,'column':_0x55a0a1,'includeAllSlots':!0x1}),_0x24d9f9=Array['from'](_0x280f27)['map'](_0x145cb7=>_0x27275c['createRangeOn'](_0x145cb7['cell']));_0x13ea7b['markMultiRangeInsertion'](_0x24d9f9,'tableColumn');});});}for(const _0x218018 of['removeTableRow','removeTableColumn']){const _0x311602=_0x218018['substr'](0xb),_0x6676a=_0x311602['toLowerCase'](),_0x2064f3=_0x6676a['substr'](0x0,0x3)+'span',_0x47c585='table'+_0x311602,_0x42befc='min'+_0x311602,_0x32d16a='max'+_0x311602;_0x13ea7b['enableCommand'](_0x218018,()=>{_0x51f197['model']['change'](_0x327041=>{const _0x3ef310=_0x400782['getSelectionAffectedTableCells'](_0x3b7ca3),_0x343f42=_0x3ef310[0x0]['findAncestor']('table');let _0x1a203a;if('removeTableRow'==_0x218018){const _0x4c2304=_0x400782['getRowIndexes'](_0x3ef310);_0x1a203a={'startRow':_0x4c2304['first'],'endRow':_0x4c2304['last'],'includeAllSlots':!0x0};}else{const _0x3d2bec=_0x400782['getColumnIndexes'](_0x3ef310);_0x1a203a={'startColumn':_0x3d2bec['first'],'endColumn':_0x3d2bec['last'],'includeAllSlots':!0x0};}const _0x5a9d74=_0x400782['createTableWalker'](_0x343f42,_0x1a203a),_0x1fe8bd=Array['from'](_0x5a9d74)['map'](({cell:_0x1c933a})=>_0x1c933a),_0x31012f=Ne(_0x1fe8bd['filter'](_0x1b4896=>_0x1b4896['hasAttribute'](_0x2064f3))),_0x48a218=Ne(_0x1fe8bd['filter'](_0x396442=>!_0x396442['hasAttribute'](_0x2064f3)))['map'](_0x428973=>_0x327041['createRangeOn'](_0x428973)),_0x1fb0e8=_0x13ea7b['markMultiRangeDeletion'](_0x48a218,_0x47c585);if(_0x1fb0e8&&('tableRow'==_0x1fb0e8['subType']||'tableColumn'==_0x1fb0e8['subType'])){const _0x4eced6=this['_getSuggestionCoords'](_0x1fb0e8);for(const _0x3ff65d of _0x31012f){const _0xd202a9=_0x327041['createRangeOn'](_0x3ff65d),_0xb19445=_0x400782['getCellLocation'](_0x3ff65d),_0xccfbbe=_0x3ff65d['getAttribute'](_0x2064f3)-0x1,_0x4b8acb=_0x4eced6[_0x42befc],_0x205a35=_0x4eced6[_0x32d16a];_0x4b8acb<=_0xb19445[_0x6676a]&&_0xb19445[_0x6676a]+_0xccfbbe<=_0x205a35&&_0x1fb0e8['addRange'](_0xd202a9);}}});});}function _0x2f1033(_0x3c9c11){const _0x1cde3d=Array['from'](_0x3b7ca3['getRanges']())['map'](_0xa80e15=>_0x24a0f9['fromRange'](_0xa80e15));_0x51f197['model']['change'](_0xb4044=>{const _0xe65afb=_0xb4044['batch'];_0x3c9c11=_0x3c9c11['filter'](_0x139160=>'$graveyard'!=_0x139160['root']['rootName']),_0xb4044['setSelection'](_0x3c9c11),_0x51f197['commands']['get']('removeTableRow')['refresh'](),_0x51f197['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x51f197['model']['enqueueChange'](()=>{_0x51f197['model']['enqueueChange'](_0xe65afb,_0xc20802=>{const _0x544acb=_0x1cde3d['filter'](_0x3896f1=>'$graveyard'!=_0x3896f1['root']['rootName']);_0x544acb['length']>0x0&&_0xc20802['setSelection'](_0x544acb);for(const _0x2f9783 of _0x1cde3d)_0x2f9783['detach']();});});});}function _0x1d6de7(_0x239658){_0x51f197['model']['change'](_0x21ba7e=>{const _0x23460f=Array['from'](_0x3b7ca3['getRanges']())['map'](_0x2911e2=>_0x24a0f9['fromRange'](_0x2911e2)),_0x4cd357=[];for(const _0x24d15c of _0x239658)for(const _0x5c7428 of _0x24d15c['getItems']({'shallow':!0x0}))_0x4cd357['push'](_0x5c7428);for(const _0x5319fa of _0x4cd357)'$graveyard'!=_0x5319fa['root']['rootName']&&(_0x21ba7e['setSelection'](_0x21ba7e['createPositionAt'](_0x5319fa,0x0)),_0x51f197['commands']['get']('removeTableColumn')['refresh'](),_0x51f197['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xc8934=_0x23460f['filter'](_0x33bbcf=>'$graveyard'!=_0x33bbcf['root']['rootName']);_0xc8934['length']>0x0&&_0x21ba7e['setSelection'](_0xc8934);for(const _0x244a84 of _0x23460f)_0x244a84['detach']();});}function _0x2fa0b7(_0x16998a,_0x1ea6e9){return _0x1ea6e9['every'](_0x5e19ed=>_0x16998a['some'](_0x490401=>_0x490401['end']['isEqual'](_0x5e19ed['start'])||_0x5e19ed['end']['isEqual'](_0x490401['start'])));}function _0x1595e6(_0x24e435,_0x4f71f7){return!_0x24e435['some'](_0x457657=>_0x4f71f7['some'](_0x1d31ea=>_0x457657['isIntersecting'](_0x1d31ea)))&&_0x24e435['some'](_0x221147=>_0x4f71f7['some'](_0x2b62eb=>_0x221147['end']['isTouching'](_0x2b62eb['start'])));}_0x51f197['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3aa568,_0x2d804f,_0x1da07e)=>{if(!_0x1da07e['options']['showSuggestionHighlights'])return;const _0x3b4257=_0x2d804f['item'];if(!_0x3b4257)return;const _0x27704f=_0x1da07e['mapper']['toViewElement'](_0x3b4257);function _0x552da7(_0x2ce789){return Array['isArray'](_0x2ce789)?_0x2ce789:[_0x2ce789];}_0x27704f&&'tableCell'===_0x3b4257['name']&&_0x255fa8(_0x27704f,_0x1da07e['writer'],(_0x324db2,_0x91fa7,_0x2fd389)=>_0x2fd389['addClass'](_0x552da7(_0x91fa7['classes']),_0x324db2),(_0x3b18e1,_0x3031ae,_0x5a1c1e)=>_0x5a1c1e['removeClass'](_0x552da7(_0x3031ae['classes']),_0x3b18e1));},{'priority':'highest'}),_0x13ea7b['descriptionFactory']['registerDescriptionCallback'](_0x58ae31=>{if('insertion'!=_0x58ae31['type']&&'deletion'!=_0x58ae31['type'])return;const _0x529d4d=_0x58ae31['getContainedElement']();if(null!=_0x529d4d&&_0x529d4d['is']('element','table')){if('insertion'==_0x58ae31['type']){const _0x4f4e79=_0x58ae31['getItems']()['filter'](_0x237802=>_0x237802['is']('$textProxy'))['map'](_0x2bc164=>_0x2bc164['data']);if(_0x4f4e79['length'])return{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4f4e79['join']('\x20')+'\x22'))};}if('deletion'==_0x58ae31['type']){const _0x5457a0=_0x58ae31['getItems']()['filter'](_0x3fde34=>_0x3fde34['is']('$textProxy'))['map'](_0x474c3d=>_0x474c3d['data']);if(_0x5457a0['length'])return{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5457a0['join']('\x20')+'\x22'))};}}}),_0x13ea7b['descriptionFactory']['registerDescriptionCallback'](_0x74d880=>{if('tableRow'==_0x74d880['subType']){const _0x23e572=_0x74d880['getItems']()['filter'](_0x410c5e=>_0x410c5e['is']('$textProxy'))['map'](_0x4e899d=>_0x4e899d['data']),_0x556e6b=this['_getSuggestionCoords'](_0x74d880),_0xae6b04=_0x556e6b['maxRow']-_0x556e6b['minRow']+0x1;if('insertion'==_0x74d880['type'])return _0x23e572['length']?{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xae6b04,'\x22'+_0x23e572['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW',_0xae6b04))};if('deletion'==_0x74d880['type'])return _0x23e572['length']?{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xae6b04,'\x22'+_0x23e572['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_ROW',_0xae6b04))};}if('tableColumn'==_0x74d880['subType']){const _0x284834=_0x74d880['getItems']()['filter'](_0x508589=>_0x508589['is']('$textProxy'))['map'](_0x6f2e1b=>_0x6f2e1b['data']),_0x965a83=this['_getSuggestionCoords'](_0x74d880),_0x10a19d=_0x965a83['maxColumn']-_0x965a83['minColumn']+0x1;if('insertion'==_0x74d880['type'])return _0x284834['length']?{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10a19d,'\x22'+_0x284834['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x509b66,'*Insert:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN',_0x10a19d))};if('deletion'==_0x74d880['type'])return _0x284834['length']?{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x10a19d,'\x22'+_0x284834['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x509b66,'*Remove:*\x20%0',c(_0x509b66,'ELEMENT_TABLE_COLUMN',_0x10a19d))};}}),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2f1033),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2f1033),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1d6de7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1d6de7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x2fa0b7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x2fa0b7),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1595e6),_0x13ea7b['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1595e6);}['_acceptFormatSuggestionCallbackFactory'](){const _0x175c95=this['editor'],_0x147ef8=_0x175c95['model']['document']['selection'];return(_0x47911f,_0x319767)=>{_0x175c95['model']['change'](_0x3cf360=>{const {commandName:_0x2fc065,commandParams:_0x109828}=_0x319767;let _0x138092=_0x47911f[0x0]['end']['nodeBefore'];_0x109828&&_0x109828[0x0]&&!0x1===_0x109828[0x0]['forceValue']&&(_0x138092=_0x47911f[0x0]['start']['nodeAfter']);const _0x139ecc=_0x3cf360['createRangeIn'](_0x138092);if('$graveyard'==_0x139ecc['root']['rootName'])return;const _0x1d454f=Array['from'](_0x147ef8['getRanges']())['map'](_0x38a405=>_0x24a0f9['fromRange'](_0x38a405));_0x3cf360['setSelection'](_0x139ecc),_0x175c95['commands']['get'](_0x2fc065)['refresh'](),_0x109828['push']({'forceDefaultExecution':!0x0}),_0x175c95['execute'](_0x2fc065,..._0x109828);const _0x129ee8=_0x1d454f['filter'](_0x564e55=>'$graveyard'!=_0x564e55['root']['rootName']);_0x129ee8['length']>0x0&&_0x3cf360['setSelection'](_0x129ee8);for(const _0x30c96b of _0x1d454f)_0x30c96b['detach']();});};}['_getCoordsForCells'](_0x302d0a){const _0x2f9b19=this['editor']['plugins']['get']('TableUtils');let _0x5c210b=Number['MAX_SAFE_INTEGER'],_0x464881=Number['MIN_SAFE_INTEGER'],_0x14ef93=Number['MAX_SAFE_INTEGER'],_0x190ed2=Number['MIN_SAFE_INTEGER'];for(const _0x4d62be of _0x302d0a){if('$graveyard'==_0x4d62be['root']['rootName'])continue;const {row:_0x5a2ddf,column:_0x317379}=_0x2f9b19['getCellLocation'](_0x4d62be),_0x237236=_0x4d62be['hasAttribute']('rowspan')?_0x4d62be['getAttribute']('rowspan')-0x1:0x0,_0x3ef594=_0x4d62be['hasAttribute']('colspan')?_0x4d62be['getAttribute']('colspan')-0x1:0x0;_0x5c210b=_0x5a2ddf<_0x5c210b?_0x5a2ddf:_0x5c210b,_0x464881=_0x5a2ddf+_0x237236>_0x464881?_0x5a2ddf+_0x237236:_0x464881,_0x14ef93=_0x317379<_0x14ef93?_0x317379:_0x14ef93,_0x190ed2=_0x317379+_0x3ef594>_0x190ed2?_0x317379+_0x3ef594:_0x190ed2;}return{'minRow':_0x5c210b,'maxRow':_0x464881,'minColumn':_0x14ef93,'maxColumn':_0x190ed2};}['_setupColumnsRowsFixing'](){const _0x57072f=this['editor'],_0x306970=_0x57072f['plugins']['get']('TrackChangesEditing'),_0x3a62e9=_0x57072f['plugins']['get']('TableUtils');_0x57072f['model']['document']['on']('change:data',()=>{const _0xed3752=Array['from'](_0x57072f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30e999,data:_0x4181a9}of _0xed3752){const {group:_0x2ba642,id:_0x30ccc7,subType:_0x4372d5}=_0x306970['_splitMarkerName'](_0x30e999);if('suggestion'!=_0x2ba642)continue;if(null!=_0x4181a9['oldRange'])continue;const _0x2dfe13=_0x306970['getSuggestion'](_0x30ccc7);this['_tablePostFixingSubtypes']['includes'](_0x4372d5)&&this['_tableSuggestions']['add'](_0x2dfe13);}},{'priority':'low'});const _0x13fe2d=(_0xbb3829,_0x31a383)=>{let _0x552ab5=!0x1;const _0x148aee=_0x31a383['createRangeOn'](_0xbb3829),_0x31c953=_0xbb3829['findAncestor']('table'),_0x5ab812=_0x3a62e9['getCellLocation'](_0xbb3829);for(const _0x4dc4f2 of this['_tableSuggestions']){const _0x43b607=_0x4dc4f2['subType'],_0x4c61ca=_0x43b607['startsWith']('tablePaste'),_0x14d44a=_0x43b607['substr'](_0x4c61ca?0xa:0x5),_0x591b03=_0x14d44a['toLowerCase'](),_0x3dce8b=_0x591b03['substr'](0x0,0x3)+'span',_0x563c23='min'+_0x14d44a,_0x2e841d='max'+_0x14d44a;if(!_0x4dc4f2['isInContent'])continue;if(_0x31c953!=_0x4dc4f2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4dc4f2['isIntersectingWithRange'](_0x148aee))continue;const _0x20ab7a=_0xbb3829['hasAttribute'](_0x3dce8b)?_0xbb3829['getAttribute'](_0x3dce8b)-0x1:0x0,_0x19ffb6=this['_getSuggestionCoords'](_0x4dc4f2),_0x291cef=_0x19ffb6[_0x563c23],_0xc1db29=_0x19ffb6[_0x2e841d];_0x291cef<=_0x5ab812[_0x591b03]&&_0x5ab812[_0x591b03]+_0x20ab7a<=_0xc1db29&&(_0x4dc4f2['addRange'](_0x148aee),_0x552ab5=!0x0);}return _0x552ab5;};_0x57072f['model']['document']['registerPostFixer'](_0x507837=>{let _0x3aac95=!0x1;for(const _0x244860 of _0x57072f['model']['document']['differ']['getChanges']())if('insert'==_0x244860['type']){if('tableRow'==_0x244860['name']){for(const _0x2aa241 of _0x244860['position']['nodeAfter']['getChildren']())_0x3aac95=_0x3aac95||_0x13fe2d(_0x2aa241,_0x507837);}else'tableCell'==_0x244860['name']&&(_0x3aac95=_0x3aac95||_0x13fe2d(_0x244860['position']['nodeAfter'],_0x507837));}return _0x3aac95;});}['_getSuggestionCoords'](_0x19909d){return this['_getCoordsForCells'](_0x19909d['getRanges']()['map'](_0x35708f=>_0x35708f['start']['nodeAfter']));}}function Ne(_0x145b73){return Array['from'](new Set(_0x145b73)['values']());}class Nt extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x48be33=this['editor'],_0x52b410=_0x48be33['model']['document']['selection'],_0x5922cb=_0x48be33['locale'];if(!_0x48be33['plugins']['has']('TableEditing'))return;const _0x19a5f7=_0x48be33['plugins']['get']('TrackChangesEditing'),_0xbc7f61=_0x48be33['plugins']['get']('TableUtils'),_0x22ae14=_0x48be33['plugins']['get'](Ct);_0x22ae14['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x19a5f7['enableCommand']('mergeTableCells',()=>{const _0x1d74ca=_0xbc7f61['getSelectionAffectedTableCells'](_0x48be33['model']['document']['selection']);_0x48be33['model']['change'](()=>{_0x19a5f7['markMultiRangeBlockFormat'](_0x1d74ca,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x48be33['commands']['get']('mergeTableCells')['on']('execute',(_0x21328a,_0x39f728)=>{_0x48be33['commands']['get']('trackChanges')['value']&&(_0x39f728['length']>0x0&&_0x39f728[_0x39f728['length']-0x1]&&_0x39f728[_0x39f728['length']-0x1]['forceDefaultExecution']||_0x19a5f7['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x21328a['stop']());},{'priority':'highest'});for(const _0x23130b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x57daa2=_0x48be33['commands']['get'](_0x23130b);_0x19a5f7['enableCommand'](_0x23130b,()=>{const _0x36fbaa=_0x48be33['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x9d42c4=>_0x9d42c4['is']('element','tableCell')),_0x385c5b=_0x57daa2['value'];_0x48be33['model']['change'](()=>{_0x19a5f7['markMultiRangeBlockFormat']([_0x36fbaa,_0x385c5b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x321316 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x45d0d4=_0x48be33['commands']['get'](_0x321316);_0x19a5f7['enableCommand'](_0x321316,()=>{const _0x219a9e=_0xbc7f61['getSelectionAffectedTableCells'](_0x48be33['model']['document']['selection'])[0x0],_0x360e0b=_0x219a9e['findAncestor']('table'),{column:_0x29ae31,row:_0x380c01}=_0xbc7f61['getCellLocation'](_0x219a9e);let _0x4ea1ff=[];if('horizontally'==_0x45d0d4['direction']){const _0x5a4a21=_0xbc7f61['createTableWalker'](_0x360e0b,{'startRow':_0x380c01,'endRow':_0x380c01,'includeAllSlots':!0x0});_0x4ea1ff=Array['from'](_0x5a4a21)['map'](_0x16df78=>_0x16df78['cell']);}else{const _0x921a58=_0xbc7f61['createTableWalker'](_0x360e0b,{'column':_0x29ae31,'includeAllSlots':!0x0});_0x4ea1ff=Array['from'](_0x921a58)['map'](_0x568978=>_0x568978['cell']);}_0x48be33['model']['change'](_0x225e71=>{_0x19a5f7['markBlockFormat'](_0x225e71['createRangeOn'](_0x219a9e),{'commandName':_0x321316,'commandParams':[]},_0x4ea1ff,_0x321316);});});}_0x19a5f7['descriptionFactory']['registerDescriptionCallback'](_0x25cb65=>{if('formatBlock'!=_0x25cb65['type']&&'formatInline'!=_0x25cb65['type'])return;const {data:_0x213a48}=_0x25cb65;return _0x213a48&&'mergeTableCells'==_0x213a48['commandName']?{'type':'format','content':c(_0x5922cb,'*Merge\x20cells*')}:void 0x0;}),_0x19a5f7['descriptionFactory']['registerDescriptionCallback'](_0x32d3c7=>{if('formatBlock'!=_0x32d3c7['type']&&'formatInline'!=_0x32d3c7['type'])return;const {data:_0x72c56e}=_0x32d3c7;return _0x72c56e?'splitTableCellVertically'==_0x72c56e['commandName']?{'type':'format','content':c(_0x5922cb,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x72c56e['commandName']?{'type':'format','content':c(_0x5922cb,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x15d9ad=_0x22ae14['_acceptFormatSuggestionCallbackFactory']();for(const _0x1feebf of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1feebf,'accept',_0x15d9ad);for(const _0x5e4ed6 of['splitTableCellVertically','splitTableCellHorizontally'])_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5e4ed6,'accept',_0x15d9ad);_0x19a5f7['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x25d68d=>{_0x48be33['model']['change'](_0x2ed053=>{const _0x5a5400=Array['from'](_0x52b410['getRanges']())['map'](_0x1097c5=>_0x24a0f9['fromRange'](_0x1097c5));_0x2ed053['setSelection'](_0x25d68d),_0x48be33['commands']['get']('mergeTableCells')['refresh'](),_0x48be33['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x289257=_0x5a5400['filter'](_0x2bd820=>'$graveyard'!=_0x2bd820['root']['rootName']);_0x289257['length']>0x0&&_0x2ed053['setSelection'](_0x289257);for(const _0x47e895 of _0x5a5400)_0x47e895['detach']();});});for(const _0x553f47 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xe03c75=_0x48be33['commands']['get'](_0x553f47);_0xe03c75['on']('set:isEnabled',(_0x329e1a,_0x8c836,_0x1c6204)=>{if(_0x1c6204){const _0x1f1b28=_0x48be33['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5ace8b=>_0x5ace8b['is']('element','tableCell'));this['_areMergableCells'](_0xe03c75['value'],_0x1f1b28)||(_0x329e1a['return']=!0x1,_0x329e1a['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe3dbd6=this['editor']['commands']['get']('mergeTableCells'),_0x175dcf=this['editor']['plugins']['get']('TableUtils');if(!_0xe3dbd6['isEnabled'])return!0x1;const _0x2fd36c=_0x175dcf['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x2128c1 of _0x2fd36c)for(const _0x292245 of _0x2fd36c)if(_0x2128c1!=_0x292245&&!this['_areMergableCells'](_0x2128c1,_0x292245))return!0x1;return!0x0;}['_areMergableCells'](_0x3bfb62,_0x3cfeb5){const _0x2def72=this['editor']['plugins']['get']('TrackChangesEditing'),_0x42ea58=this['editor']['model']['createRangeOn'](_0x3bfb62),_0x53de7e=this['editor']['model']['createRangeOn'](_0x3cfeb5),_0x40e82d=new Set(),_0x150174=new Set();for(const _0x2a402f of _0x2def72['getSuggestions']())if(('insertion'==_0x2a402f['type']||'deletion'==_0x2a402f['type']||'mergeTableCells'==_0x2a402f['subType'])&&_0x2a402f['isInContent']){for(const _0x460a12 of _0x2a402f['getRanges']())_0x460a12['containsRange'](_0x42ea58,!0x0)&&_0x40e82d['add'](_0x2a402f['type']+':'+_0x2a402f['author']['id']),_0x460a12['containsRange'](_0x53de7e,!0x0)&&_0x150174['add'](_0x2a402f['type']+':'+_0x2a402f['author']['id']);}if(_0x40e82d['size']!=_0x150174['size'])return!0x1;for(const _0x21b044 of _0x40e82d)if(!_0x150174['has'](_0x21b044))return!0x1;return!0x0;}}class Dt extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x4eab14=this['editor'];if(!_0x4eab14['plugins']['has']('TableEditing'))return;const _0x4b74f4=_0x4eab14['locale'],_0x1cbbaa=_0x4eab14['plugins']['get']('TrackChangesEditing');_0x1cbbaa['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1cbbaa['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1cbbaa['registerBlockAttribute']('headingRows'),_0x1cbbaa['registerBlockAttribute']('headingColumns'),_0x1cbbaa['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x4b74f4,'FORMAT_HEADER_ROW')),_0x1cbbaa['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x4b74f4,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1406da=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb9cbdd=this['editor']['plugins']['get']('TableUtils'),_0x200a32=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x2099f1({showActiveMarker:_0x184419=!0x0,setDataAttribute:_0x23021a=!0x0}={}){return(_0xab18a4,_0x1f82df,_0x425eb0)=>{const {type:_0x58f8ed,id:_0x20cf5e}=_0x1406da['_splitMarkerName'](_0x1f82df['markerName']),_0x58e2b4=_0x1406da['getSuggestion'](_0x20cf5e),_0x4f0603=_0x58e2b4['data'];if('formatBlock'!=_0x58e2b4['type']||!_0x4f0603||'setTableColumnHeader'!=_0x4f0603['commandName'])return;if(_0x1f82df['item'])return void _0xab18a4['stop']();if(!_0x425eb0['consumable']['consume'](_0x1f82df['markerRange'],_0xab18a4['name']))return;const _0x5ec3fc=_0x1f82df['markerRange']['start']['nodeAfter'],_0x504475=_0x1f82df['markerRange']['end']['nodeBefore'],_0x54803f=_0x5ec3fc['parent']['parent'],{column:_0x1b5bbe}=_0xb9cbdd['getCellLocation'](_0x5ec3fc),{column:_0x424b37}=_0xb9cbdd['getCellLocation'](_0x504475);for(let _0x28211d=_0x1b5bbe;_0x28211d<=_0x424b37;_0x28211d++){const _0x49d123=_0xb9cbdd['createTableWalker'](_0x54803f,{'column':_0x28211d,'includeAllSlots':!0x1});for(const _0x6455d of _0x49d123){const _0x57beff=_0x6455d['cell'],_0x7dd51e=_0x425eb0['mapper']['toViewElement'](_0x57beff);_0x425eb0['writer']['addClass']('ck-suggestion-marker-'+_0x58f8ed,_0x7dd51e),_0x23021a&&_0x425eb0['writer']['setAttribute']('data-suggestion',_0x20cf5e,_0x7dd51e),_0x425eb0['mapper']['bindElementToMarker'](_0x7dd51e,_0x1f82df['markerName']),_0x184419&&(_0x1406da['activeMarkers']['includes'](_0x1f82df['markerName'])?_0x425eb0['writer']['addClass']('ck-suggestion-marker--active',_0x7dd51e):_0x425eb0['writer']['removeClass']('ck-suggestion-marker--active',_0x7dd51e));}}};}_0x1406da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x200a32),_0x1406da['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x200a32),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2099f1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1b1040,_0x335907,_0x4eedad)=>{_0x4eedad['options']['showSuggestionHighlights']&&_0x2099f1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x1b1040,_0x335907,_0x4eedad);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x27f381,_0x3af76b,_0x43b77d)=>{const {type:_0x2dfa18,id:_0x4ac5bb}=_0x1406da['_splitMarkerName'](_0x3af76b['markerName']),_0x403208=_0x1406da['getSuggestion'](_0x4ac5bb),_0x36d09c=_0x403208['data'];if('formatBlock'!=_0x403208['type']||!_0x36d09c||'setTableColumnHeader'!=_0x36d09c['commandName'])return;const _0x1960a9=_0x43b77d['mapper']['markerNameToElements'](_0x3af76b['markerName']);if(_0x1960a9){for(const _0x254213 of _0x1960a9)_0x43b77d['writer']['removeClass']('ck-suggestion-marker-'+_0x2dfa18,_0x254213),_0x43b77d['writer']['removeClass']('ck-suggestion-marker--active',_0x254213),_0x43b77d['writer']['removeAttribute']('data-suggestion',_0x254213),_0x43b77d['mapper']['unbindElementFromMarkerName'](_0x254213,_0x3af76b['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1aa8d9=this['editor'],_0x29a74c=_0x1aa8d9['locale'];function _0x37fcc1(_0x251e55){return{'type':'format','content':c(_0x29a74c,'*Format:*\x20%0',_0x251e55)};}_0x1aa8d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1526a5=>{if('formatBlock'!=_0x1526a5['type'])return;const {data:_0x11d773}=_0x1526a5;if(_0x11d773){if('setTableRowHeader'==_0x11d773['commandName']){const _0x1fcc59=_0x11d773['commandParams'][0x0]['forceValue'];return _0x37fcc1(c(_0x29a74c,_0x1fcc59?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x11d773['commandName']){const _0x49cebb=_0x11d773['commandParams'][0x0]['forceValue'];return _0x37fcc1(c(_0x29a74c,_0x49cebb?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x5543a6{['afterInit'](){const _0x5e3141=this['editor'],_0x3af075=_0x5e3141['locale'],_0x7c503f=_0x5e3141['plugins']['get']('TrackChangesEditing');function _0x1b81ed(_0x3484c9){return{'type':'format','content':''+c(_0x3af075,'*Set\x20table\x20type:*\x20%0',_0x3484c9)};}_0x5e3141['plugins']['has']('TableLayout')&&(_0x7c503f['enableCommand']('insertTableLayout'),_0x7c503f['enableDefaultAttributesIntegration']('tableType'),_0x7c503f['registerBlockAttribute']('tableType'),_0x7c503f['descriptionFactory']['registerElementLabel'](_0x2ec20e=>_0x2ec20e['is']('element','table')&&'layout'===_0x2ec20e['getAttribute']('tableType'),_0x3a2989=>c(_0x3af075,'ELEMENT_LAYOUT_TABLE',_0x3a2989)),_0x7c503f['descriptionFactory']['registerDescriptionCallback'](_0x541898=>{const {data:_0x4dd85d}=_0x541898;if(_0x4dd85d&&'tableType'==_0x4dd85d['key'])switch(_0x4dd85d['newValue']){case'layout':return _0x1b81ed(c(_0x3af075,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x1b81ed(c(_0x3af075,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x57117a=>[_0x57117a,null]));class $t extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x184c1c=this['editor'];if(!_0x184c1c['plugins']['has']('TableClipboard'))return;const _0x2b9265=_0x184c1c['plugins']['get']('TrackChangesEditing'),_0x2e8806=_0x184c1c['plugins']['get']('TableUtils'),_0x4ea636=_0x184c1c['plugins']['get'](Ct),_0xb29113=_0x184c1c['plugins']['get']('TableClipboard'),_0x2727e9=_0x184c1c['plugins']['get']('TableSelection'),_0x2c0587=_0x184c1c['plugins']['get'](_0x3d6ba0);_0x4ea636['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x184c1c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x184c1c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x568073=null,_0x34eff2=!0x1;_0x2c0587['on']('contentInsertion',(_0x56e2b0,_0x364db5)=>{_0x34eff2='paste'===_0x364db5['method'];}),_0x184c1c['model']['on']('insertContent',(_0x4ea56d,_0x553c5d)=>{if(!_0x34eff2&&null===_0x2727e9['getSelectedTableCells']())return;const [_0x3bc61f,_0x223ff2]=_0x553c5d,_0x5e4e36=_0x553c5d[_0x553c5d['length']-0x1];_0x5e4e36&&_0x5e4e36['forceDefaultExecution']||_0x2b9265['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x9184c7,_0x951f21,_0x2713c7,_0x316f54,_0x6806e9){if(_0x951f21&&!_0x951f21['is']('documentSelection'))return!0x1;const _0xa1571b=_0x6806e9['getTableIfOnlyTableInContent'](_0x9184c7,_0x2713c7);if(!_0xa1571b||!De(_0xa1571b,void 0x0,_0x316f54))return!0x1;const _0x17cf10=_0x316f54['getSelectionAffectedTableCells'](_0x2713c7['document']['selection']);if(!_0x17cf10['length'])return!0x1;const _0x31fc01=_0x17cf10[0x0]['findAncestor']('table'),_0x1b374e=_0x316f54['getRowIndexes'](_0x17cf10),_0x12c17d=_0x316f54['getColumnIndexes'](_0x17cf10),_0x70960c={'startRow':_0x1b374e['first'],'endRow':_0x1b374e['last'],'startColumn':_0x12c17d['first'],'endColumn':_0x12c17d['last']};return 0x1==_0x17cf10['length']&&(_0x70960c['endRow']+=_0x316f54['getRows'](_0xa1571b)-0x1,_0x70960c['endColumn']+=_0x316f54['getColumns'](_0xa1571b)-0x1),De(_0x31fc01,_0x70960c,_0x316f54);}(_0x3bc61f,_0x223ff2,_0x184c1c['model'],_0x2e8806,_0xb29113)&&(_0x4ea56d['stop'](),_0x568073={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x184c1c['model']['change'](()=>{_0x184c1c['model']['insertContent'](_0x553c5d[0x0],_0x553c5d[0x1],_0x553c5d[0x2],{'forceDefaultExecution':!0x0});const _0x185d15=_0x25d5a0(),{rowInsertionRanges:_0x4905b3,columnInsertionRanges:_0xface1f,insertionRanges:_0x5739bf,deletionRanges:_0x3f94f7,cells:_0x3ce70d}=_0x568073;_0x4905b3['length']&&_0x2b9265['markMultiRangeInsertion'](_0x4905b3,'tablePasteRow',{'tablePasteChainId':_0x185d15}),_0xface1f['length']&&_0x2b9265['markMultiRangeInsertion'](_0xface1f,'tablePasteColumn',{'tablePasteChainId':_0x185d15}),_0x5739bf['length']&&(_0x2b9265['markMultiRangeInsertion'](_0x5739bf,'tablePaste',{'tablePasteChainId':_0x185d15,'skipNestingCheck':!0x0}),_0x5739bf['forEach'](_0x4a70dd=>_0x4a70dd['detach']?.())),_0x3f94f7['length']&&(_0x2b9265['markMultiRangeDeletion'](_0x3f94f7,'tablePaste',{'tablePasteChainId':_0x185d15,'skipNestingCheck':!0x0}),_0x3f94f7['forEach'](_0x232a4c=>_0x232a4c['detach']?.()));const _0x5caee4=_0x2b9265['markMultiRangeBlockFormat'](_0x3ce70d['map'](({element:_0x26db6c})=>_0x26db6c),{'formatGroupId':_0x25d5a0()},[],'tablePasteCell',{'tablePasteChainId':_0x185d15});if(_0x5caee4){const _0x5b20d3=_0x5caee4['getMarkers'](),_0x43620f=[];for(const {element:_0x2e9436,attributes:_0x11aa57}of _0x3ce70d){if(!_0x11aa57)continue;const _0x293a1e=_0x184c1c['model']['createRangeOn'](_0x2e9436),_0x9f0e79=_0x5b20d3['find'](_0x191674=>_0x191674['getRange']()['isEqual'](_0x293a1e));_0x9f0e79&&_0x43620f['push']([_0x9f0e79['name'],_0x11aa57]);}_0x43620f['length']&&_0x5caee4['setAttribute']('markerAttributes',Object['fromEntries'](_0x43620f));}_0x568073=null;}));},{'priority':_0xc6f25c['high']+0xa}),_0x2c0587['on']('contentInsertion',()=>{_0x34eff2=!0x1;},{'priority':'lowest'}),_0x184c1c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2e3b65,_0x5b8daa)=>{const [_0x408754,_0x561c54,,_0x390504]=_0x5b8daa;if(!_0x568073)return;_0x2e3b65['stop']();const _0x43425a=_0x408754['cell'],_0x328436=_0x561c54,_0x524df6=Ue(_0x43425a),_0xef2ea6=Ue(_0x328436);_0x2e3b65['return']=_0x43425a;let _0x352763=null,_0xb9c47e=null;if(_0xef2ea6||_0x524df6){if(_0x524df6&&!_0xef2ea6){_0x390504['remove'](_0x43425a['getChild'](0x0));for(const _0x281d38 of Array['from'](_0x328436['getChildren']()))_0x390504['insert'](_0x281d38,_0x43425a,'end');const _0x148bbf=_0x568073['rowInsertionIndexes']['includes'](_0x408754['row']),_0x3bfcd6=_0x568073['columnInsertionIndexes']['includes'](_0x408754['column']);_0x148bbf||_0x3bfcd6||(_0x352763=_0x24a0f9['fromRange'](_0x390504['createRangeIn'](_0x43425a)));}else _0xef2ea6&&!_0x524df6&&(_0xb9c47e=_0x390504['createRangeIn'](_0x43425a));}else{const _0x41c8df=_0x390504['createElement']('tableCellSuggestion'),_0x3a6768=_0x390504['createElement']('tableCellSuggestion');_0x390504['wrap'](_0x390504['createRangeIn'](_0x43425a),_0x3a6768),_0x390504['insert'](_0x41c8df,_0x43425a,0x0);for(const _0x2409b5 of Array['from'](_0x328436['getChildren']()))_0x390504['insert'](_0x2409b5,_0x41c8df,'end');_0x352763=_0x24a0f9['fromRange'](_0x390504['createRangeOn'](_0x41c8df)),_0xb9c47e=_0x24a0f9['fromRange'](_0x390504['createRangeOn'](_0x3a6768));}const _0x561c96=Array['from'](_0x328436['getAttributes']())['filter'](([_0x2e7c34])=>xe['includes'](_0x2e7c34));_0x568073['cells']['push']({'element':_0x43425a,'attributes':_0x561c96['length']?Object['fromEntries'](_0x561c96):null}),_0x352763&&_0x568073['insertionRanges']['push'](_0x352763),_0xb9c47e&&_0x568073['deletionRanges']['push'](_0xb9c47e);},{'priority':'high'}),_0x2e8806['on']('insertColumns',(_0x1751d9,_0x321c5c)=>{const [_0x3ce776,_0x298769={}]=_0x321c5c;if(!_0x568073)return;const _0x597282=_0x298769['at']||0x0,_0x47d553=_0x298769['columns']||0x1;_0x568073['columnInsertionIndexes']=new Array(_0x47d553)['fill'](_0x597282)['map']((_0x2b50cf,_0x497217)=>_0x2b50cf+_0x497217);for(const {cell:_0x17dc1e}of _0x2e8806['createTableWalker'](_0x3ce776,{'startColumn':_0x597282,'endColumn':_0x597282+_0x47d553-0x1}))_0x568073['columnInsertionRanges']['push'](_0x184c1c['model']['createRangeOn'](_0x17dc1e));},{'priority':'low'}),_0x2e8806['on']('insertRows',(_0x4eb167,_0x3018af)=>{const [_0x2249b6,_0x1a1deb={}]=_0x3018af;if(!_0x568073)return;const _0x2a573b=_0x1a1deb['at']||0x0,_0x1266da=_0x1a1deb['rows']||0x1;_0x568073['rowInsertionIndexes']=new Array(_0x1266da)['fill'](_0x2a573b)['map']((_0x3e2097,_0x144b4e)=>_0x3e2097+_0x144b4e);for(const {cell:_0x4e37e1}of _0x2e8806['createTableWalker'](_0x2249b6,{'startRow':_0x2a573b,'endRow':_0x2a573b+_0x1266da-0x1}))_0x568073['rowInsertionRanges']['push'](_0x184c1c['model']['createRangeOn'](_0x4e37e1));},{'priority':'low'}),_0x2b9265['descriptionFactory']['registerDescriptionCallback'](_0x3fea61=>{if(_0x3fea61['subType']&&_0x3fea61['subType']['startsWith']('tablePaste'))return _0x3fea61['previous']?{}:{'type':'insertion','content':c(_0x184c1c['locale'],'*Replace\x20table\x20cells*')};});const _0x5e4998=()=>!0x1;for(const _0x1056be of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion',_0x1056be,'join',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('deletion',_0x1056be,'join',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1056be,'join',_0x5e4998);_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5e4998),_0x2b9265['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x8300a9,_0x1fb5e4,_0x68c3ab)=>{const _0x63a06a=_0x8300a9['map'](_0x22aec2=>_0x22aec2['getContainedElement']())['filter'](_0x15bce2=>_0x15bce2),_0xc22d01=new Map(_0x63a06a['map'](_0x27fd2d=>[_0x27fd2d,null]));if(_0x568073){for(const {element:_0x12a402,attributes:_0x257f49}of _0x568073['cells'])_0x257f49&&_0xc22d01['set'](_0x12a402,_0x257f49);}else{if(_0x68c3ab&&_0x68c3ab['markerAttributes'])for(const [_0x3ba5d3,_0x280803]of Object['entries'](_0x68c3ab['markerAttributes'])){const _0xd96c10=_0x184c1c['model']['markers']['get'](_0x3ba5d3),_0x819464=_0xd96c10?_0xd96c10['getRange']()['getContainedElement']():null;_0x819464&&_0xc22d01['set'](_0x819464,_0x280803);}}_0x184c1c['model']['change'](_0x5d655b=>{for(const [_0x4da4d7,_0x1e1ede]of _0xc22d01)_0x5d655b['setAttributes']({...Oe,..._0x1e1ede},_0x4da4d7);});});const _0x472292=(_0xc8223b,_0x2f6744)=>{_0x2b9265['_suggestionFactory']['registerCustomCallback'](_0xc8223b,'tablePaste',_0x2f6744,(_0x3bd0af,_0x578e01,_0x59bb36)=>{_0x184c1c['model']['change'](_0x1a5127=>{const _0x44643c=[];for(const _0x208198 of _0x3bd0af){const _0x52cb9b=_0x208198['start']['nodeAfter'];_0x52cb9b['is']('element','tableCellSuggestion')&&_0x44643c['push'](_0x52cb9b);}_0x2b9265['_suggestionFactory']['getSuggestionCallback'](_0xc8223b,null,_0x2f6744)(_0x3bd0af,_0x578e01,_0x59bb36);for(const _0x40566a of _0x44643c)'$graveyard'!=_0x40566a['root']['rootName']&&_0x1a5127['unwrap'](_0x40566a);});});};_0x472292('insertion','accept'),_0x472292('insertion','discard'),_0x472292('deletion','accept'),_0x472292('deletion','discard'),_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x45e1c8=>{const _0x179133=_0x45e1c8['map'](_0x13e71f=>_0x13e71f['getContainedElement']()),_0x4cca8f=_0x179133[0x0]['findAncestor']('table'),{minRow:_0x53044e,maxRow:_0x10204a}=_0x4ea636['_getCoordsForCells'](_0x179133);_0x2e8806['removeRows'](_0x4cca8f,{'at':_0x53044e,'rows':_0x10204a-_0x53044e+0x1});}),_0x2b9265['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22bf80=>{const _0x5e2254=_0x22bf80['map'](_0x22fe40=>_0x22fe40['getContainedElement']()),_0x2b5655=_0x5e2254[0x0]['findAncestor']('table'),{minColumn:_0x4eb9f,maxColumn:_0x3933c2}=_0x4ea636['_getCoordsForCells'](_0x5e2254);_0x2e8806['removeColumns'](_0x2b5655,{'at':_0x4eb9f,'columns':_0x3933c2-_0x4eb9f+0x1});});const _0x247abf=(_0x1089b9,_0x1eebae)=>{if(!_0x1eebae['subType']||!_0x1eebae['subType']['startsWith']('tablePaste'))return;const _0x189438=_0x1eebae['attributes']['tablePasteChainId'],_0x23b26c=_0x2b9265['getSuggestions']()['filter'](_0x247a13=>_0x247a13['isInContent']&&_0x247a13['attributes']&&_0x247a13['attributes']['tablePasteChainId']==_0x189438);_0x23b26c['length']&&_0x1eebae['getAllAdjacentSuggestions']()['length']!=_0x23b26c['length']&&_0x23b26c['reduce']((_0x2daf9b,_0x495d9a)=>(_0x2daf9b['next']=_0x495d9a,_0x495d9a['previous']=_0x2daf9b,_0x495d9a));};function _0x16577d(_0x1409af,_0x3f787e=!0x0){const {id:_0x1dff59,authorId:_0x4dc1a6}=_0x2b9265['_splitMarkerName'](_0x1409af['markerName']),_0x4972a8=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x2396e=_0x2b9265['activeMarkers']['includes'](_0x1409af['markerName']);return _0x2396e&&_0x4972a8['push']('ck-suggestion-marker--active'),{'classes':_0x4972a8,'attributes':{'data-suggestion':_0x1dff59,'data-author-id':_0x4dc1a6},'priority':_0x2396e&&_0x3f787e?0xbc2:0xbb8};}_0x2b9265['on']('suggestionLoaded',_0x247abf,{'priority':'high'}),_0x2b9265['on']('suggestionUnloaded',_0x247abf,{'priority':'high'}),_0x184c1c['model']['document']['registerPostFixer'](()=>{let _0x1dae7e=!0x1;const _0x10f2e6=Array['from'](_0x184c1c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24b272,data:_0x2dc8cd}of _0x10f2e6){const {group:_0x1e104b,type:_0x3ee5b5,id:_0x2614b3}=_0x2b9265['_splitMarkerName'](_0x24b272);if('suggestion'!=_0x1e104b||'deletion'!=_0x3ee5b5||_0x2dc8cd['oldRange'])continue;if(!_0x2b9265['hasSuggestion'](_0x2614b3))continue;const _0x9c66d9=_0x2b9265['getSuggestion'](_0x2614b3)['getRanges'](),_0x912df5=_0x184c1c['plugins']['get']('Users')['me'];for(const _0x51b874 of _0x2b9265['getSuggestions']()){if(!_0x51b874['isInContent']||_0x51b874['author']!=_0x912df5)continue;if('formatBlock'!=_0x51b874['type']||'tablePasteCell'!=_0x51b874['subType'])continue;if(_0x51b874['getRanges']()['every'](_0x467487=>_0x9c66d9['some'](_0x5f02ee=>_0x5f02ee['containsRange'](_0x467487,!0x0)))){for(const _0x20d2c9 of _0x51b874['getAllAdjacentSuggestions']())_0x20d2c9['isInContent']&&(_0x20d2c9['discard'](),_0x1dae7e=!0x0);}}}return _0x1dae7e;}),_0x184c1c['model']['document']['registerPostFixer'](_0x989992=>{const _0x3cc7c6=_0x184c1c['commands']['get']('redo');if(!_0x3cc7c6||!_0x3cc7c6['_createdBatches']['has'](_0x989992['batch']))return!0x1;let _0x5575c9=!0x1;const _0x5c1d16=_0x184c1c['plugins']['get']('Users')['me'],_0x2948e3=_0x184c1c['model']['document']['differ']['getChanges'](),_0x5dafee=Array['from'](_0x184c1c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xff3229,data:_0x4d0230})=>{const {group:_0x49856f,subType:_0x4596c3,authorId:_0x4dbc2e}=_0x2b9265['_splitMarkerName'](_0xff3229);return'suggestion'==_0x49856f&&'tablePaste'==_0x4596c3&&_0x4dbc2e==_0x5c1d16['id']&&!_0x4d0230['oldRange'];});for(const _0x60b2de of _0x2948e3){if('insert'!=_0x60b2de['type']||'tableCellSuggestion'!=_0x60b2de['name']||0x1!=_0x60b2de['length'])continue;const _0xb721ab=_0x989992['createRange'](_0x60b2de['position'],_0x60b2de['position']['getShiftedBy'](0x1));if(!_0x5dafee['find'](({data:_0x4e64f4})=>_0x4e64f4['newRange']['isEqual'](_0xb721ab))){for(const {name:_0x1bd209,data:_0x186cb6}of _0x5dafee)if(_0xb721ab['containsRange'](_0x186cb6['newRange'])){_0x989992['updateMarker'](_0x1bd209,{'range':_0xb721ab}),_0x5575c9=!0x0;break;}}}return _0x5575c9;}),_0x184c1c['model']['document']['registerPostFixer'](_0x53b1f5=>{let _0x2d1df5=!0x1;const _0xb29ad0=_0x184c1c['plugins']['get']('Users')['me'],_0x6fe7e=_0x2b9265['getSuggestions']()['filter'](_0x4f70fd=>_0x4f70fd['isInContent']&&_0x4f70fd['author']==_0xb29ad0),_0x3990c7=new Set(),_0xecad6d=new Set();for(const _0x25280f of _0x6fe7e)if('tablePaste'==_0x25280f['subType'])for(const _0x10ea86 of _0x25280f['getMarkers']()){const _0x4bd800=_0x10ea86['getRange']()['getContainedElement']();if(_0x4bd800){if(_0x4bd800['is']('element','tableCellSuggestion')&&Ue(_0x4bd800)){_0x25280f['removeMarker'](_0x10ea86['name']),_0x3990c7['add'](_0x4bd800),_0x2d1df5=!0x0;const _0x4dbdc2=_0x4bd800['nextSibling'],_0x4fc373=_0x4bd800['previousSibling'],_0x143b79=_0x4dbdc2&&_0x4dbdc2['is']('element','tableCellSuggestion'),_0x2d5d40=_0x4fc373&&_0x4fc373['is']('element','tableCellSuggestion');_0x143b79&&!_0x3990c7['has'](_0x4dbdc2)&&_0xecad6d['add'](_0x4dbdc2),_0x2d5d40&&!_0x3990c7['has'](_0x4fc373)&&_0xecad6d['add'](_0x4fc373);}else _0x4bd800['is']('element','paragraph')&&_0x4bd800['isEmpty']&&(_0x25280f['removeMarker'](_0x10ea86['name']),_0x2d1df5=!0x0);}}else{if('tablePasteCell'==_0x25280f['subType']){if(!_0x25280f['attributes']||!_0x25280f['attributes']['tablePasteChainId'])continue;const _0x207c0a=_0x25280f['attributes']['markerAttributes'];if(_0x207c0a&&Object['keys'](_0x207c0a)['length'])continue;const _0x4565bc=_0x25280f['attributes']['tablePasteChainId'];let _0x2c354d=!0x0,_0x2a84d5=!0x0;for(const _0x5bf560 of _0x6fe7e)if(_0x5bf560['subType']&&_0x5bf560['subType']['startsWith']('tablePaste')){if(!_0x5bf560['attributes']['tablePasteChainId']){_0x2a84d5=!0x1;break;}if(_0x5bf560['id']!=_0x25280f['id']&&_0x5bf560['attributes']['tablePasteChainId']==_0x4565bc){_0x2c354d=!0x1;break;}}_0x2a84d5&&_0x2c354d&&(_0x25280f['removeMarkers'](),_0x2d1df5=!0x0);}}for(const _0x11c4d8 of _0x3990c7)_0x53b1f5['remove'](_0x11c4d8);for(const _0x42cd8f of _0xecad6d)_0x53b1f5['unwrap'](_0x42cd8f);return _0x2d1df5;}),_0x184c1c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x237649=>_0x16577d(_0x237649),'converterPriority':'high'}),_0x184c1c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2c7eed,_0x36abfa)=>_0x36abfa['options']['showSuggestionHighlights']?_0x16577d(_0x2c7eed,!0x1):null,'converterPriority':'high'});const _0x147369=_0x184c1c['editing']['view'];this['listenTo'](_0x147369['document'],'clipboardOutput',(_0x2bba5c,_0x58c987)=>{const _0x5a9b21=[];for(const _0x59388c of _0x147369['createRangeIn'](_0x58c987['content'])['getItems']())_0x59388c['is']('element','suggestion-td')&&_0x5a9b21['push'](_0x59388c);_0x147369['change'](_0x5ae333=>{for(const _0x4ae22d of _0x5a9b21)_0x5ae333['move'](_0x5ae333['createRangeIn'](_0x4ae22d),_0x5ae333['createPositionBefore'](_0x4ae22d)),_0x5ae333['remove'](_0x4ae22d);});});}}function Ue(_0x110b0a){if(_0x110b0a['isEmpty'])return!0x0;const _0x2d5e21=_0x110b0a['getChild'](0x0);return _0x2d5e21['is']('element','paragraph')&&_0x2d5e21['isEmpty'];}function De(_0x411597,_0xa6f6d1={},_0x4ae816){for(const {isAnchor:_0x1eed43,cellHeight:_0x14d2bb,cellWidth:_0xc5d28d}of _0x4ae816['createTableWalker'](_0x411597,{'includeAllSlots':!0x0,..._0xa6f6d1}))if(!_0x1eed43||0x1!=_0x14d2bb||0x1!=_0xc5d28d)return!0x1;return!0x0;}class Bt extends _0x5543a6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x827cbc=this['editor']['plugins']['get']('TrackChangesEditing');_0x827cbc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x827cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x827cbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x827cbc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x827cbc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x827cbc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4dfa0f,_0x3adf56){const _0x26ec52=this['editor']['plugins']['get']('TrackChangesEditing'),_0xe925ed=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0xbc4569=_0x3adf56['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2f9f77=_0xe925ed['getColumnGroupElement'](_0xbc4569);let _0x510288=_0x2f9f77?_0xe925ed['getTableColumnsWidths'](_0x2f9f77):null,_0x3beb7b=_0xbc4569['getAttribute']('tableWidth')||null;const _0x54473c=_0x3adf56['tableWidth']||_0x3beb7b,_0x46bd7f=_0x3adf56['columnWidths']||_0x510288,_0x4f130f=this['editor']['plugins']['get']('Users')['me'];for(const _0xfd02c7 of _0x26ec52['getSuggestions']()){const _0x5b90a2=_0xfd02c7['getContainedElement']();if('resizeTable'===_0xfd02c7['subType']&&_0x5b90a2===_0xbc4569){_0xfd02c7['author']!==_0x4f130f&&_0xfd02c7['discard']();const _0x4e3dcb=_0xfd02c7['data']['commandParams'];_0x3beb7b=_0x4e3dcb[0x0]['tableWidth'],_0x510288=_0x4e3dcb[0x0]['columnWidths'];break;}}_0x4dfa0f({'table':_0xbc4569,'tableWidth':_0x54473c,'columnWidths':_0x46bd7f}),_0x26ec52['markBlockFormat'](_0xbc4569,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x3beb7b,'columnWidths':_0x510288}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x595f6c){if('formatBlock'!=_0x595f6c['type']&&'formatInline'!=_0x595f6c['type'])return;const {data:_0x2809e4}=_0x595f6c;if(_0x2809e4&&'resizeTable'===_0x2809e4['formatGroupId']){const _0x1d0546='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x1d0546)};}}}class Ot extends _0x5543a6{['afterInit'](){const _0x143ee1=this['editor'];_0x143ee1['plugins']['has']('Template')&&_0x143ee1['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x5543a6{['afterInit'](){const _0x4834f3=this['editor'];if(!_0x4834f3['commands']['get']('insertTableOfContents'))return;_0x4834f3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x27f189=_0x4834f3['plugins']['get']('TrackChangesEditing'),_0x629525=_0x4834f3['locale'];_0x27f189['descriptionFactory']['registerElementLabel']('tableOfContents',_0x27e3f7=>c(_0x629525,'ELEMENT_TABLE_OF_CONTENTS',_0x27e3f7));}}class xt extends _0x5543a6{['afterInit'](){const _0x1a4565=this['editor'];if(!_0x1a4565['plugins']['has']('Title'))return;const _0x2bdf58=_0x1a4565['plugins']['get']('TrackChangesEditing');_0x2bdf58['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x1a4565['locale'],'ELEMENT_TITLE')),_0x1a4565['model']['document']['registerPostFixer'](_0x3cf88d=>{let _0x4ba95a=!0x1;const _0x4a41f8=Array['from'](_0x1a4565['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13c13b,data:_0x20e89d}of _0x4a41f8){const {group:_0x2f7e6a}=_0x2bdf58['_splitMarkerName'](_0x13c13b);if('suggestion'!==_0x2f7e6a||!_0x20e89d['newRange'])continue;const _0x274753=_0x20e89d['newRange'],_0x4ac91d=_0x274753['end']['nodeBefore'];if(!_0x4ac91d||!_0x4ac91d['is']('element','title-content'))continue;if(!_0x274753['start']['isTouching'](_0x274753['end']))continue;const _0x28e8ec=_0x1a4565['model']['schema']['getNearestSelectionRange'](_0x274753['end'],'forward');if(_0x28e8ec&&_0x28e8ec['isCollapsed']){const _0x59c1ff=_0x3cf88d['createRange'](_0x274753['start'],_0x28e8ec['start']);_0x59c1ff['isEqual'](_0x274753)||(_0x3cf88d['updateMarker'](_0x13c13b,{'range':_0x59c1ff}),_0x4ba95a=!0x0);}_0x4ba95a||(_0x3cf88d['removeMarker'](_0x13c13b),_0x4ba95a=!0x0);}return _0x4ba95a;});}}class Tt extends _0x5543a6{['afterInit'](){const _0x290d51=this['editor'],_0xd90017=_0x290d51['plugins']['get']('TrackChangesEditing');_0x290d51['plugins']['has']('Uploadcare')&&(_0xd90017['enableCommand']('uploadcare'),_0x290d51['plugins']['has']('UploadcareImageEdit')&&(_0xd90017['enableCommand']('uploadcareImageEdit'),_0xd90017['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0xd90017['registerBlockAttribute']('uploadcareImageId'),_0xd90017['descriptionFactory']['registerDescriptionCallback'](_0x3eef9a=>{if('attribute'!=_0x3eef9a['type'])return;const {data:_0x545e4b}=_0x3eef9a;return _0x545e4b&&'uploadcareImageId'==_0x545e4b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x5543a6{['afterInit'](){const _0x266a05=this['editor'],_0xfcc2fd=_0x266a05['plugins']['get']('TrackChangesEditing');_0x266a05['plugins']['has']('UndoEditing')&&(_0xfcc2fd['enableCommand']('undo'),_0xfcc2fd['enableCommand']('redo'));}}class Ut extends _0x5543a6{static get['requires'](){return[Ct];}['afterInit'](){const _0x562e69=this['editor'];if(!_0x562e69['plugins']['has']('TableCaptionEditing'))return;_0x562e69['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x5543a6{['tableProperties'];['tableCellProperties'];constructor(_0x1a8fcd){super(_0x1a8fcd),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 _0x4a33ad=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x278988 of this['tableProperties'])_0x4a33ad['enableCommand'](_0x278988,(_0x259f6c,_0x4503cb)=>{const _0x87e78=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x278988,[_0x87e78],this['tableProperties'],'tableProperties',_0x259f6c,_0x4503cb);});_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x4a33ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x18aff5,_0x4b6746)=>this['handleDiscardAction'](this['tableProperties'],_0x18aff5,_0x4b6746)),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe1caa1 of this['tableCellProperties'])_0x4a33ad['enableCommand'](_0xe1caa1,(_0x1f5f5a,_0x54c019)=>{const _0x4c2067=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe1caa1,_0x4c2067,this['tableCellProperties'],'tableCellProperties',_0x1f5f5a,_0x54c019);});_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x4a33ad['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3b3210,_0x4ec0c2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3b3210,_0x4ec0c2)),_0x4a33ad['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x4a33ad['descriptionFactory']['registerDescriptionCallback'](_0xaa4435=>this['handleSuggestionDescription'](_0xaa4435));}['_handlePropertyChange'](_0x5d1486,_0x3c8b94,_0x513e33,_0x54c7d0,_0x588f2f,_0x59a2eb){const _0x464cfb=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x59a2eb['batch'],()=>{for(const _0x239b93 of _0x3c8b94){if(this['_getSuggestion'](_0x239b93,_0x54c7d0))_0x588f2f(_0x59a2eb);else{const _0xb18dd={};for(const _0xddc47c of _0x513e33){const _0x42a706=_0x239b93['getAttribute'](_0xddc47c);void 0x0!==_0x42a706&&(_0xb18dd[_0xddc47c]=_0x42a706);}_0x588f2f(_0x59a2eb),_0x464cfb['markBlockFormat'](_0x239b93,{'commandParams':[_0xb18dd]},[],_0x54c7d0);}}});}['handleDiscardAction'](_0x8b7e07,_0x41d976,_0x553029){const _0xa52464=_0x41d976[0x0]['start']['nodeAfter'],_0x7c6438=_0x553029['commandParams'][0x0];this['editor']['model']['change'](_0x4446a6=>{for(const _0x258157 of _0x8b7e07)void 0x0!==_0x7c6438[_0x258157]?_0x4446a6['setAttribute'](_0x258157,_0x7c6438[_0x258157],_0xa52464):_0x4446a6['removeAttribute'](_0x258157,_0xa52464);});}['handleSuggestionDescription'](_0x389b8c){if(_0x389b8c['data'])switch(_0x389b8c['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x455dd1,_0x416626){const _0x628f84=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x2b1b42 of _0x628f84['getSuggestions']({'skipNotAttached':!0x0})){const _0x454ee3=_0x2b1b42['getContainedElement']();if(_0x2b1b42['subType']===_0x416626&&_0x454ee3===_0x455dd1)return _0x2b1b42;}return null;}}const u='$elementName';class p extends _0x5543a6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x327c0e,_0xe971b5,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4bfbf1){super(_0x4bfbf1),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x528b17,_0x5f5bcc,_0x11fbb2,_0x25a8c4)=>{this['_model']['change'](()=>{for(const _0x28cda6 of[..._0x25a8c4,..._0x11fbb2])this['_model']['markers']['has'](_0x28cda6)&&_0x4bfbf1['editing']['reconvertMarker'](_0x28cda6);});}),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']=_0x4bfbf1['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x4bfbf1['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4bfbf1['config']['get']('trackChanges.trackFormatChanges'),_0x4bfbf1['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4bfbf1['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x4bfbf1,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x392a80=this['editor'],_0x491850=(_0x1d3ba2,_0x3e58d3)=>{if('attribute'!=_0x1d3ba2)return'ck-suggestion-marker-'+_0x1d3ba2;const _0x26b8f1=_0x3e58d3['split']('|')[0x0];return this['_isBlockAttribute'](_0x26b8f1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x392a80['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd68698=>{const {id:_0x3ec50e,authorId:_0x1a7560,type:_0x2ce781,subType:_0x483462}=this['_splitMarkerName'](_0xd68698['markerName']),_0x2eb0c3=['ck-suggestion-marker',_0x491850(_0x2ce781,_0x483462)];let _0x5eff9f=0xbb8;return this['activeMarkers']['includes'](_0xd68698['markerName'])&&(_0x2eb0c3['push']('ck-suggestion-marker--active'),_0x5eff9f=0xbc2),'deletion'==_0x2ce781&&(_0x5eff9f+=0x5),{'classes':_0x2eb0c3,'attributes':{'data-suggestion':_0x3ec50e,'data-author-id':_0x1a7560},'priority':_0x5eff9f};}}),_0x392a80['conversion']['for']('dataDowncast')['add'](_0x5f3277=>{_0x5f3277['on']('addMarker:suggestion',(_0x26237a,_0x3f9a67,_0xb5e6c6)=>{if(!_0xb5e6c6['options']['showSuggestionHighlights'])return;const _0xee1bf1=_0x3f9a67['item'];if(!_0xee1bf1)return;const _0x2f4c4e=_0xb5e6c6['mapper']['toViewElement'](_0xee1bf1);_0x392a80['model']['schema']['isObject'](_0xee1bf1)&&_0x2f4c4e&&!_0x2f4c4e['getCustomProperty']('widget')&&_0x2f4c4e['is']('containerElement')&&_0x1add60(_0x2f4c4e,_0xb5e6c6['writer']);},{'priority':'high'});}),_0x392a80['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcdd9a2,_0x4d5f5c)=>{if(!_0x4d5f5c['options']['showSuggestionHighlights'])return null;const {type:_0x38c972,subType:_0x1d34ea}=this['_splitMarkerName'](_0xcdd9a2['markerName']);return{'classes':['ck-suggestion-marker',_0x491850(_0x38c972,_0x1d34ea)],'priority':0xbb8};}});const _0x27223a=({showActiveMarkers:_0x259156=!0x0,isAttributeSuggestion:_0xa0ef26=!0x1}={})=>(_0x28f482,_0x1c11ea,_0x12982f)=>{if(!_0x1c11ea['item'])return;const {id:_0x2037ec,authorId:_0x39eb19}=this['_splitMarkerName'](_0x1c11ea['markerName']);if(_0xa0ef26){const _0x4bb818=this['_suggestions']['get'](_0x2037ec),_0x3a61a4=this['_getAttributeKey'](_0x4bb818);if(!this['_isBlockAttribute'](_0x3a61a4))return;}if(_0x1c11ea['item']['is']('selection'))return void _0x12982f['consumable']['consume'](_0x1c11ea['item'],_0x28f482['name']);const _0x4b2f8e=_0x12982f['mapper']['toViewElement'](_0x1c11ea['item']);if(_0x1c11ea['item']['is']('element')&&_0x392a80['model']['schema']['isBlock'](_0x1c11ea['item'])&&!_0x4b2f8e['getCustomProperty']('addHighlight')){_0x12982f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4b2f8e),_0x12982f['writer']['setAttribute']('data-suggestion',_0x2037ec,_0x4b2f8e),_0x12982f['writer']['setAttribute']('data-author-id',_0x39eb19,_0x4b2f8e),_0x12982f['mapper']['bindElementToMarker'](_0x4b2f8e,_0x1c11ea['markerName']),_0x259156&&(this['activeMarkers']['includes'](_0x1c11ea['markerName'])?_0x12982f['writer']['addClass']('ck-suggestion-marker--active',_0x4b2f8e):_0x12982f['writer']['removeClass']('ck-suggestion-marker--active',_0x4b2f8e));for(const _0xc4d77e of _0x392a80['model']['createRangeIn'](_0x1c11ea['item'])['getItems']())_0x12982f['consumable']['consume'](_0xc4d77e,_0x28f482['name']);_0x12982f['consumable']['consume'](_0x1c11ea['item'],_0x28f482['name']);}};_0x392a80['conversion']['for']('dataDowncast')['add'](_0x2331c2=>{_0x2331c2['on']('addMarker:suggestion:formatBlock',(_0x29414e,_0x5ce33a,_0x128632)=>{_0x128632['options']['showSuggestionHighlights']&&_0x27223a({'showActiveMarkers':!0x1})(_0x29414e,_0x5ce33a,_0x128632);},{'priority':'highest'});}),_0x392a80['conversion']['for']('dataDowncast')['add'](_0x25e467=>{_0x25e467['on']('addMarker:suggestion:attribute',(_0x4e74bf,_0x25d4d0,_0x500380)=>{_0x500380['options']['showSuggestionHighlights']&&_0x27223a({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4e74bf,_0x25d4d0,_0x500380);},{'priority':'highest'});}),_0x392a80['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xab0830,_0x3a4a78)=>_0x3a4a78['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xab0830['substr'](0xb)}}),_0x392a80['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x488bca,{writer:_0xa09e9e})=>{let _0x387ac2='suggestion:'+_0x488bca['getAttribute']('suggestion-type')+':'+_0x488bca['getAttribute']('id');return _0x488bca['getAttribute']('marker-count')&&(_0x387ac2+=':'+_0x488bca['getAttribute']('marker-count')),_0xa09e9e['createElement']('$marker',{'data-name':_0x387ac2});}}),_0x392a80['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x1a0741=>{_0x1a0741['on']('addMarker:suggestion:formatBlock',_0x27223a(),{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x4e3686=>{_0x4e3686['on']('addMarker:suggestion:attribute',_0x27223a({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x183f29=>{_0x183f29['on']('removeMarker:suggestion:formatBlock',(_0x587dbb,_0x452612,_0x57d1db)=>{const _0x2e23ae=_0x57d1db['mapper']['markerNameToElements'](_0x452612['markerName']);if(_0x2e23ae){for(const _0x299faf of _0x2e23ae)_0x299faf['getCustomProperty']('addHighlight')||(_0x57d1db['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x299faf),_0x57d1db['writer']['removeAttribute']('data-suggestion',_0x299faf),_0x57d1db['writer']['removeAttribute']('data-author-id',_0x299faf),_0x57d1db['mapper']['unbindElementFromMarkerName'](_0x299faf,_0x452612['markerName']));}},{'priority':'high'});}),_0x392a80['conversion']['for']('editingDowncast')['add'](_0x538831=>{_0x538831['on']('removeMarker:suggestion:attribute',(_0x3a91dd,_0x56f07a,_0x466b9c)=>{const _0x45f2dd=_0x466b9c['mapper']['markerNameToElements'](_0x56f07a['markerName']);if(!_0x45f2dd)return;const {id:_0xc0e13}=this['_splitMarkerName'](_0x56f07a['markerName']),_0x47d455=this['_suggestions']['get'](_0xc0e13),_0x4a599b=this['_getAttributeKey'](_0x47d455);if(this['_isBlockAttribute'](_0x4a599b)){for(const _0x291940 of _0x45f2dd)_0x291940['getCustomProperty']('addHighlight')||(_0x466b9c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x291940),_0x466b9c['writer']['removeAttribute']('data-suggestion',_0x291940),_0x466b9c['writer']['removeAttribute']('data-author-id',_0x291940),_0x466b9c['mapper']['unbindElementFromMarkerName'](_0x291940,_0x56f07a['markerName']));}},{'priority':'high'});}),_0x392a80['model']['document']['registerPostFixer'](_0xc6d6b0=>{let _0x10e20c=!0x1;const _0x19b977=Array['from'](_0x392a80['model']['document']['differ']['getChangedMarkers']()),_0x26c33e=new Set();for(const {name:_0x40f58b,data:_0x1b2208}of _0x19b977){const {group:_0x5248bd,type:_0x101f2d,subType:_0x384ac0,id:_0x28b153}=this['_splitMarkerName'](_0x40f58b);if('suggestion'!==_0x5248bd)continue;const _0x3c5546=this['_suggestions']['get'](_0x28b153);if(null!=_0x1b2208['newRange']){'formatInline'==_0x101f2d&&(_0x10e20c=_0x10e20c||Jt(_0x1b2208['newRange'],_0x40f58b,_0xc6d6b0,_0x392a80['model']['schema']));const _0x4a6620='attribute'==_0x101f2d&&this['_isBlockAttribute'](_0x384ac0['split']('|')[0x0]);if(_0x1b2208['newRange']['isCollapsed']||'$graveyard'==_0x1b2208['newRange']['root']['rootName']||'formatBlock'==_0x101f2d&&!Ht(_0x1b2208['newRange'])||_0x4a6620&&!Ht(_0x1b2208['newRange'])||'deletion'==_0x101f2d&&!(!Lt(_0x109c60=_0x1b2208['newRange'])&&!function(_0x1cbf50){return _0x1cbf50['start']['parent']==_0x1cbf50['end']['nodeBefore']&&_0x1cbf50['start']['isAtEnd'];}(_0x109c60)))_0xc6d6b0['removeMarker'](_0x40f58b),_0x10e20c=!0x0;else{if(!_0x3c5546||!_0x3c5546['isInContent'])continue;if(_0x1b2208['newRange']&&_0x1b2208['oldRange']&&_0x1b2208['newRange']['isEqual'](_0x1b2208['oldRange']))continue;_0x26c33e['add'](_0x3c5546);}}}var _0x109c60;return _0x26c33e['size']>0x0&&(_0x10e20c=!!this['_joinWithAdjacentSuggestions'](_0x26c33e)||_0x10e20c),_0x10e20c;}),_0x392a80['model']['document']['registerPostFixer'](_0x32066d=>{let _0xbc1584=!0x1;for(const _0xb44c01 of _0x392a80['model']['document']['differ']['getChanges']())if('insert'==_0xb44c01['type'])for(const _0x336263 of this['_suggestions']['values']()){if(_0x336263['isMultiRange']||!_0x336263['isInContent'])continue;const _0x5e2eb9='formatBlock'==_0x336263['type'],_0x2beaa2=this['_getAttributeKey'](_0x336263),_0x4629ae=_0x2beaa2&&this['_isBlockAttribute'](_0x2beaa2);if(!_0x5e2eb9&&!_0x4629ae)continue;const _0x50393a=_0x336263['getFirstRange']();if(_0x50393a['start']['parent']!=_0x50393a['end']['parent']&&!_0x50393a['end']['isAtEnd']){const _0x425666=_0x392a80['model']['createPositionAt'](_0x50393a['start']['nodeAfter'],'end'),_0x24b4ba=_0x392a80['model']['createRange'](_0x50393a['start'],_0x425666);_0x32066d['updateMarker'](_0x336263['getFirstMarker'](),{'range':_0x24b4ba}),_0xbc1584=!0x0;}}return _0xbc1584;}),_0x392a80['model']['document']['registerPostFixer'](_0x256aa1=>this['_processAttributeChanges'](_0x256aa1)),_0x392a80['model']['document']['registerPostFixer'](_0x1a0370=>!_0x1a0370['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1a0370)),_0x392a80['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x392a80['model']['document']['on']('change:data',(_0x1aec2e,_0x60c82d)=>{if(!_0x60c82d['isLocal']||_0x60c82d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x3a8f04=_0x392a80['model']['document']['differ']['getChanges']();if(0x0==_0x3a8f04['length'])return;const _0x39a830=[],_0x19ee8b=_0x3a8f04['filter'](_0x3ee40a=>'attribute'==_0x3ee40a['type']),_0x141db0=_0x3a8f04['filter'](_0x378fbb=>'insert'==_0x378fbb['type']&&'$text'!=_0x378fbb['name']);for(const _0x42e389 of _0x19ee8b)this['_isRegisteredAttribute'](_0x42e389['attributeKey'])&&_0x39a830['push']({'key':_0x42e389['attributeKey'],'newValue':_0x42e389['attributeNewValue'],'oldValue':_0x42e389['attributeOldValue'],'range':qt(_0x42e389['range'],_0x392a80['model'])});for(const _0x5ce3a2 of _0x141db0){if('rename'!=_0x5ce3a2['action']&&'refresh'!=_0x5ce3a2['action'])continue;const _0x591107=zt(_0x5ce3a2['position']['nodeAfter'],_0x392a80['model']),_0x36472a=_0x5ce3a2['before'];'rename'==_0x5ce3a2['action']&&_0x39a830['push']({'key':u,'newValue':_0x5ce3a2['name'],'oldValue':_0x36472a['name'],'range':_0x591107});for(const [_0x252d2b,_0x5f1270]of _0x36472a['attributes']){if(!this['_isRegisteredAttribute'](_0x252d2b))continue;const _0x3f469b=_0x5ce3a2['attributes']['get'](_0x252d2b);_0x5f1270!==_0x3f469b&&_0x39a830['push']({'key':_0x252d2b,'newValue':_0x3f469b,'oldValue':_0x5f1270,'range':_0x591107});}for(const [_0x1d8b5a,_0x391513]of _0x5ce3a2['attributes'])this['_isRegisteredAttribute'](_0x1d8b5a)&&(_0x36472a['attributes']['has'](_0x1d8b5a)||_0x39a830['push']({'key':_0x1d8b5a,'newValue':_0x391513,'oldValue':null,'range':_0x591107}));}0x0!=_0x39a830['length']&&_0x392a80['model']['enqueueChange'](_0x60c82d,_0x1b87ce=>{const _0x5c2f40=_0x25d5a0();for(const {range:_0x440f70,key:_0x14f350,oldValue:_0x252db2,newValue:_0x2e8560}of _0x39a830)this['markAttributeChange'](_0x440f70,_0x14f350,_0x252db2,_0x2e8560,{'groupId':_0x5c2f40});this['_reduceExistingSuggestions'](_0x1b87ce,_0x39a830);});},{'priority':'lowest'}),_0x392a80['model']['markers']['on']('update:suggestion',(_0x24f3c9,_0x414cbd,_0xbcb47a)=>{if(null==_0xbcb47a){const {id:_0x47dbff}=this['_splitMarkerName'](_0x414cbd['name']),_0x529dae=this['_suggestions']['get'](_0x47dbff);_0x529dae&&_0x529dae['addMarkerName'](_0x414cbd['name']);}}),_0x392a80['model']['document']['on']('change:data',()=>{const _0x3a2988=Array['from'](_0x392a80['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3022a9=>'suggestion'===this['_splitMarkerName'](_0x3022a9['name'])['group']);if(0x0===_0x3a2988['length'])return;_0x3a2988['sort']((_0x253775,_0x97c5c5)=>{const _0x4b4acf=_0x253775['data']['oldRange'],_0x1b87ca=_0x97c5c5['data']['oldRange'];return null===_0x4b4acf&&null===_0x1b87ca?0x0:null===_0x4b4acf&&null!==_0x1b87ca?-0x1:null!==_0x4b4acf&&null===_0x1b87ca?0x1:_0x4b4acf['start']['isBefore'](_0x1b87ca['start'])?-0x1:0x1;});const _0x3df47b=new Set(),_0x17dabf=new Set();for(const {name:_0x375107,data:_0x348b5b}of _0x3a2988){const {id:_0x3cd3e6}=this['_splitMarkerName'](_0x375107);if(null===_0x348b5b['oldRange']){const _0x5dbcfe=this['_handleNewSuggestionMarker'](_0x375107);_0x17dabf['add'](_0x5dbcfe);}else{const _0x53ee56=this['_suggestions']['get'](_0x3cd3e6);null!==_0x348b5b['newRange']||_0x53ee56['isInContent']?(_0x3df47b['add'](_0x53ee56['head']),_0x17dabf['add'](_0x53ee56)):this['_removeSuggestion'](_0x53ee56);}}_0x17dabf['size']>0x0&&this['_refreshSuggestionsChain'](_0x17dabf);for(const _0x500df3 of _0x3df47b)this['fire']('suggestionChanged',_0x500df3);}),_0x392a80['model']['on']('applyOperation',(_0x44979f,_0x33ea92)=>{const _0x109332=_0x33ea92[0x0];if(!this['_suggestions']['size'])return;if(!_0x109332['isDocumentOperation'])return;if(_0x109332['batch']['isUndo']||!_0x109332['batch']['isLocal'])return;let _0x250915,_0x313cbc;switch(_0x109332['type']){case'insert':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['position']),_0x313cbc=_0x250915['getShiftedBy'](_0x109332['howMany']);break;case'split':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['splitPosition']),_0x313cbc=_0x392a80['model']['createPositionAt'](_0x109332['moveTargetPosition']);break;case'move':_0x250915=_0x392a80['model']['createPositionAt'](_0x109332['targetPosition']),_0x313cbc=_0x250915['getShiftedBy'](_0x109332['howMany']);break;default:return;}const _0x8fa7a1=_0x392a80['model']['createRange'](_0x250915,_0x313cbc);_0x392a80['model']['change'](()=>{for(const {suggestion:_0x4dba75,meta:_0x551eef}of this['_findSuggestions'](_0x8fa7a1)){if(_0x4dba75['isMultiRange'])continue;if('formatInline'==_0x4dba75['type'])continue;const _0x44a904=this['_getAttributeKey'](_0x4dba75);if(_0x44a904&&this['_isBlockAttribute'](_0x44a904)&&'split'!=_0x109332['type'])continue;const _0x48e07c=_0x4dba75['data']&&_0x4dba75['data']['multipleBlocks'];('formatBlock'!=_0x4dba75['type']||'split'==_0x109332['type']&&!_0x48e07c)&&(_0x551eef['containsRangeInObject']||'insertion'==_0x4dba75['type']&&_0x551eef['isOwn']||_0x4dba75['getFirstRange']()['containsRange'](_0x8fa7a1)&&this['_breakSuggestionMarker'](_0x4dba75,_0x250915,_0x313cbc));}});},{'priority':'lowest'}),_0x392a80['model']['on']('deleteContent',(_0x4b1a49,_0x458e25)=>{const _0x382904=_0x458e25[0x0],_0x131ad5=_0x458e25[0x1];if(_0x131ad5&&_0x131ad5['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x382904['isCollapsed'])return;const _0x56f2f3=_0x392a80['model']['schema'],{start:_0x150b61,end:_0x572143}=_0x382904['getFirstRange'](),_0x74f4e8=_0x150b61['nodeAfter']&&_0x56f2f3['isLimit'](_0x150b61['nodeAfter'])?null:_0x56f2f3['getNearestSelectionRange'](_0x150b61,'forward'),_0xdcca8f=_0x572143['nodeBefore']&&_0x56f2f3['isLimit'](_0x572143['nodeBefore'])?null:_0x56f2f3['getNearestSelectionRange'](_0x572143,'backward'),_0x589966=_0x392a80['model']['createRange'](_0x74f4e8?_0x74f4e8['start']:_0x150b61,_0xdcca8f?_0xdcca8f['end']:_0x572143);_0x392a80['model']['change'](_0x3bbbf4=>{this['markDeletion'](_0x589966);const _0x15b86e=_0x392a80['model']['schema']['getNearestSelectionRange'](_0x589966['start']);_0x382904['is']('documentSelection')?_0x3bbbf4['setSelection'](_0x15b86e):_0x382904['setTo'](_0x15b86e);}),_0x4b1a49['stop']();},{'priority':_0xc6f25c['normal']+0xa}),_0x392a80['model']['on']('insertContent',(_0x61e0de,_0x463caf)=>{const _0x55edbe=_0x463caf[_0x463caf['length']-0x1];_0x55edbe&&_0x55edbe['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x392a80['model']['change'](()=>{let _0x5b787f=_0x392a80['model']['insertContent'](_0x463caf[0x0],_0x463caf[0x1],_0x463caf[0x2],{'forceDefaultExecution':!0x0});if(!_0x5b787f)return;_0x61e0de['return']=_0x5b787f['clone']();const _0x173c53=_0x5b787f['end']['nodeBefore'],_0x3ec2db=_0x392a80['model']['schema'];_0x173c53&&_0x3ec2db['isBlock'](_0x173c53)&&!_0x3ec2db['isObject'](_0x173c53)&&(_0x5b787f=_0x392a80['model']['createRange'](_0x5b787f['start'],_0x392a80['model']['createPositionAt'](_0x173c53,'end'))),this['markInsertion'](_0x5b787f);}),_0x61e0de['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0xf66d9b=new O(_0x392a80,this['_suggestions']);_0x392a80['commands']['add']('acceptSuggestion',_0xf66d9b),this['enableCommand']('acceptSuggestion');const _0x162840=new R(_0x392a80,this['_suggestions']);_0x392a80['commands']['add']('discardSuggestion',_0x162840),this['enableCommand']('discardSuggestion'),_0x392a80['commands']['add']('acceptAllSuggestions',new x(_0x392a80,_0xf66d9b,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x392a80['commands']['add']('discardAllSuggestions',new x(_0x392a80,_0x162840,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x392a80['commands']['add']('acceptSelectedSuggestions',new E(_0x392a80,_0xf66d9b,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x392a80['commands']['add']('discardSelectedSuggestions',new E(_0x392a80,_0x162840,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x4168de=_0x392a80['plugins']['get']('CommentsRepository');this['listenTo'](_0x4168de,'addComment',(_0x3eb79d,{threadId:_0x1eb7ef})=>{const _0x57fb45=this['_suggestions']['get'](_0x1eb7ef);_0x57fb45&&_0x57fb45['commentThread']&&0x1===_0x57fb45['commentThread']['length']&&this['_updateSuggestionData'](_0x1eb7ef,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x4168de,'removeComment',(_0x23718c,{threadId:_0x558c64})=>{const _0x32f198=this['_suggestions']['get'](_0x558c64);_0x32f198&&_0x32f198['commentThread']&&!_0x32f198['commentThread']['length']&&this['_updateSuggestionData'](_0x558c64,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0xda5486){const _0x316470=_0x1afab1([0x37,0x72,0x41,0x70,0x68,0x63,0x77,0x31,0x6a,0x62,0x79,0x56,0x34,0x32,0x4d,0x4e,0x6f,0x6c,0x57,0x42,0x55,0x43,0x69,0x38,0x54,0x6d,0x44,0x75,0x53,0x78,0x49,0x4c,0x5a,0x76,0x67,0x65,0x71,0x33,0x36,0x73,0x30,0x64,0x45,0x74,0x35,0x58,0x61,0x6b,0x39,0x59,0x66,0x47,0x6e,0x48,0x52,0x4f,0x51,0x50,0x4b,0x7a,0x46,0x4a]),_0x2e5f79=0x7dd392dc,_0x2cb9da=0x7dd4f6f4^_0x2e5f79,_0x195506=window[_0x1afab1([0x44,0x61,0x74,0x65])][_0x1afab1([0x6e,0x6f,0x77])](),_0x28cd7c=_0xda5486[_0x1afab1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d1d0d=new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x102ddb=>{_0x28cd7c[_0x1afab1([0x6f,0x6e,0x63,0x65])](_0x1afab1([0x72,0x65,0x61,0x64,0x79]),_0x102ddb);}),_0x26c1b1={[_0x1afab1([0x6b,0x74,0x79])]:_0x1afab1([0x45,0x43]),[_0x1afab1([0x75,0x73,0x65])]:_0x1afab1([0x73,0x69,0x67]),[_0x1afab1([0x63,0x72,0x76])]:_0x1afab1([0x50,0x2d,0x32,0x35,0x36]),[_0x1afab1([0x78])]:_0x1afab1([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]),[_0x1afab1([0x79])]:_0x1afab1([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]),[_0x1afab1([0x61,0x6c,0x67])]:_0x1afab1([0x45,0x53,0x32,0x35,0x36])},_0x491134=_0x28cd7c[_0x1afab1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1afab1([0x67,0x65,0x74])](_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x10de1(){let _0x31bff7,_0x5beb10=null,_0x50022b=null;try{if(_0x491134==_0x1afab1([0x47,0x50,0x4c]))return _0x1afab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x31bff7=_0x3f9b1c(),!_0x31bff7)return _0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x31bff7[_0x1afab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50022b=_0xa878fa(_0x31bff7[_0x1afab1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x31bff7[_0x1afab1([0x6a,0x74,0x69])])),await _0x38ce26()?_0x528a85()?_0x41d4fc()?_0x1afab1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5696fb()?(_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5beb10=_0x301c0b(_0x1afab1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1afab1([0x74,0x72,0x69,0x61,0x6c])&&(_0x5beb10=_0x301c0b(_0x1afab1([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x417c5f()):_0x1afab1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1afab1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x313e1a){return _0x1afab1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41d4fc(){const _0x477d74=[_0x1afab1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1afab1([0x74,0x72,0x69,0x61,0x6c])][_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x195506/0x3e8:0xe10*_0x2cb9da;return _0x31bff7[_0x1afab1([0x65,0x78,0x70])]<_0x477d74;}function _0x528a85(){const _0xa9c920=_0x31bff7[_0x1afab1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xa9c920)return!0x1;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x2a])))return!0x0;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x54,0x43])))return!0x0;if(_0xa9c920[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x52,0x54,0x43]))){if(_0x562ece())return!0x0;if(_0x4fc9c2()||_0x4bacbd())return!0x0;}return!0x1;}function _0x5696fb(){const _0x1aedb1=_0x31bff7[_0x1afab1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1aedb1||0x0==_0x1aedb1[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x357c6e}=new URL(window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1aedb1[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357c6e))return!0x0;const _0x321d93=_0x357c6e[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e]));return _0x1aedb1[_0x1afab1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4e78f8=>_0x4e78f8[_0x1afab1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1afab1([0x2a])))[_0x1afab1([0x6d,0x61,0x70])](_0x523e04=>_0x523e04[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e])))[_0x1afab1([0x73,0x6f,0x6d,0x65])](_0x22bfe9=>_0x321d93[_0x1afab1([0x65,0x76,0x65,0x72,0x79])]((_0x575ebc,_0x2f4ab2)=>_0x22bfe9[_0x2f4ab2]===_0x575ebc||_0x22bfe9[_0x2f4ab2]===_0x1afab1([0x2a])));}function _0x417c5f(){return _0x5beb10&&_0x50022b?new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x277775,_0x15cdce)=>{_0x5beb10[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x277775,_0x15cdce),_0x50022b[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x85ae6b=>{_0x85ae6b!=_0x1afab1([0x56,0x61,0x6c,0x69,0x64])&&_0x277775(_0x85ae6b);},_0x15cdce);}):_0x5beb10||_0x50022b||_0x1afab1([0x56,0x61,0x6c,0x69,0x64]);}}function _0xa878fa(_0x113495,_0x264e2d){return new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x68f584=>{if(_0xb10190())return _0x68f584(_0x1afab1([0x56,0x61,0x6c,0x69,0x64]));_0x1658e5(),_0x28cd7c[_0x1afab1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d1d72=!0x1;const _0x51c9ab=_0x25d5a0();function _0x3a22f2(_0x5da2cd){return!!_0x5da2cd&&(typeof _0x5da2cd===_0x1afab1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5da2cd===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5da2cd[_0x1afab1([0x74,0x68,0x65,0x6e])]===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5da2cd[_0x1afab1([0x63,0x61,0x74,0x63,0x68])]===_0x1afab1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1c8134(_0x1379e9){_0x1af3fa(_0x1379e9)[_0x1afab1([0x74,0x68,0x65,0x6e])](_0xd6f096=>{if(!_0xd6f096||_0xd6f096[_0x1afab1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1afab1([0x6f,0x6b]))return _0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x60e1a0(_0x349a73(_0x51c9ab+_0x264e2d))!=_0xd6f096[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1afab1([0x56,0x61,0x6c,0x69,0x64]);})[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x20fbe6=>(_0x3e24a9(),_0x20fbe6),()=>{const _0x29c1bb=_0xead6fc();return null==_0x29c1bb?(_0x3e24a9(),_0x1afab1([0x56,0x61,0x6c,0x69,0x64])):_0x1afab1(_0x195506-_0x29c1bb>(0x59df16dc^_0x2e5f79)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x68f584)[_0x1afab1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1e13d8=0x7de57c5c^_0x2e5f79;function _0x3e24a9(){const _0x4dedf0=_0x1afab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x60e1a0(_0x349a73(_0x113495)),_0x182eef=_0x247dae(_0x60e1a0(window[_0x1afab1([0x4d,0x61,0x74,0x68])][_0x1afab1([0x63,0x65,0x69,0x6c])](_0x195506/_0x1e13d8)));window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afab1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4dedf0,_0x182eef);}function _0xead6fc(){const _0x36a080=_0x1afab1([0x6c,0x6c,0x63,0x74,0x2d])+_0x60e1a0(_0x349a73(_0x113495)),_0xa9b489=window[_0x1afab1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1afab1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36a080);return _0xa9b489?window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x247dae(_0xa9b489),0x10)*_0x1e13d8:null;}function _0x1af3fa(_0x4dfa12){return new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13c64a,_0x3f8e12)=>{_0x4dfa12[_0x1afab1([0x74,0x68,0x65,0x6e])](_0x13c64a,_0x3f8e12),window[_0x1afab1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f8e12,0x7dd2461c^_0x2e5f79);});}}_0x28cd7c[_0x1afab1([0x6f,0x6e])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a55c2,_0x223a73)=>{if(_0x223a73[0x0]!=_0x113495)return _0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x223a73[0x1]={..._0x223a73[0x1],[_0x1afab1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51c9ab};},{[_0x1afab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afab1([0x68,0x69,0x67,0x68])}),_0x28cd7c[_0x1afab1([0x6f,0x6e])](_0x1afab1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3b4487=>{_0x3a22f2(_0x3b4487[_0x1afab1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d1d72=!0x0,_0x1c8134(_0x3b4487[_0x1afab1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1afab1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1afab1([0x6c,0x6f,0x77])}),_0x3d1d0d[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>{_0x1d1d72||_0x68f584(_0x1afab1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xb10190(){return _0x28cd7c[_0x1afab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afab1([0x76,0x69,0x65,0x77])][_0x1afab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1afab1([0x61,0x75,0x74,0x6f]);}function _0x1658e5(){_0x28cd7c[_0x1afab1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1afab1([0x76,0x69,0x65,0x77])][_0x1afab1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1afab1([0x61,0x75,0x74,0x6f]);}}function _0x301c0b(_0x4f1046){const _0x30367b=[new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ccbe4=>setTimeout(_0x1ccbe4,0x7ddaac10^_0x2e5f79)),_0x3d1d0d[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37d54f=>{let _0x5af712=0x0;_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x6f,0x6e])](_0x1afab1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12b136,_0x1a2fe2)=>{_0x1a2fe2[0x0][_0x1afab1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5af712++,_0x5af712==(0x7dd39324^_0x2e5f79)&&(_0x37d54f(),_0x12b136[_0x1afab1([0x6f,0x66,0x66])]());});}))];return window[_0x1afab1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1afab1([0x72,0x61,0x63,0x65])](_0x30367b)[_0x1afab1([0x74,0x68,0x65,0x6e])](()=>_0x4f1046);}async function _0x587d67(){await _0x3d1d0d,_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2cf30e,_0x28cd7c[_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1afab1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2cf30e,_0x28cd7c[_0x1afab1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1afab1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x562ece(){return _0x12a6e2(_0x1afab1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x32f903(_0x1afab1([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1afab1([0x73,0x74,0x61,0x74,0x65])]==_0x1afab1([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4fc9c2(){return _0x12a6e2(_0x1afab1([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 _0x4bacbd(){return _0x12a6e2(_0x1afab1([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3af2c9(_0x5eb786){const _0x4872b8=_0x4f0db4();_0x28cd7c[_0x4872b8]=_0x1afab1([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5eb786,_0x5eb786!=_0x1afab1([0x56,0x61,0x6c,0x69,0x64])&&_0x587d67();}function _0x4f0db4(){const _0xa96fe3=window[_0x1afab1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1afab1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1afab1([0x6e,0x6f,0x77])]())[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1afab1([0x2e]),'');let _0x40e32a=_0x1afab1([0x72]);for(let _0x48ae6c=0x0;_0x48ae6c<_0xa96fe3[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x48ae6c+=0x2){let _0x13dcf5=window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa96fe3[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48ae6c,_0x48ae6c+0x2));_0x13dcf5>=_0x316470[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13dcf5-=_0x316470[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x40e32a+=_0x316470[_0x13dcf5];}return _0x40e32a;}function _0x3f9b1c(){const _0x1120cf=_0x491134[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e]));if(0x3!=_0x1120cf[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x116792(_0x1120cf[0x1]);function _0x116792(_0x4c7d71){const _0x467745=_0x4cc551(_0x4c7d71);return _0x467745&&_0x12ffd3()?_0x467745:null;function _0x12ffd3(){const _0x39c695=_0x467745[_0x1afab1([0x6a,0x74,0x69])],_0x274256=window[_0x1afab1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39c695[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39c695[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2938ca={..._0x467745,[_0x1afab1([0x6a,0x74,0x69])]:_0x39c695[_0x1afab1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x39c695[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2938ca[_0x1afab1([0x76,0x63])],_0x349a73(_0x2938ca)==_0x274256;}}}async function _0x38ce26(){let _0x540372=!0x0;try{const _0x58da2b=_0x491134[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])](_0x1afab1([0x2e])),[_0x7c75d2,_0x25c38e,_0x1c7961]=_0x58da2b;return _0x5589bb(_0x7c75d2),await _0x2efc14(_0x7c75d2,_0x25c38e,_0x1c7961),_0x540372;}catch(_0x26b6e9){return!0x1;}function _0x5589bb(_0x2577b8){const _0x4856e9=_0x4cc551(_0x2577b8);_0x4856e9&&_0x4856e9[_0x1afab1([0x61,0x6c,0x67])]==_0x1afab1([0x45,0x53,0x32,0x35,0x36])||(_0x540372=!0x1);}async function _0x2efc14(_0xaa1515,_0x5df5bd,_0x4ec651){const _0x5e5156=window[_0x1afab1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1afab1([0x66,0x72,0x6f,0x6d])](_0x44b471(_0x4ec651),_0x22e483=>_0x22e483[_0x1afab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b62b3=new window[(_0x1afab1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1afab1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xaa1515+_0x1afab1([0x2e])+_0x5df5bd),_0x51455d=window[_0x1afab1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1afab1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51455d)return;const _0x57d02e=await _0x51455d[_0x1afab1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1afab1([0x6a,0x77,0x6b]),_0x26c1b1,{[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x45,0x43,0x44,0x53,0x41]),[_0x1afab1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1afab1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51455d[_0x1afab1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x45,0x43,0x44,0x53,0x41]),[_0x1afab1([0x68,0x61,0x73,0x68])]:{[_0x1afab1([0x6e,0x61,0x6d,0x65])]:_0x1afab1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57d02e,_0x5e5156,_0x2b62b3)||(_0x540372=!0x1);}}function _0x4cc551(_0x40ab28){return _0x40ab28[_0x1afab1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1afab1([0x65,0x79]))?JSON[_0x1afab1([0x70,0x61,0x72,0x73,0x65])](_0x44b471(_0x40ab28)):null;}function _0x44b471(_0x8d7321){return window[_0x1afab1([0x61,0x74,0x6f,0x62])](_0x8d7321[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1afab1([0x2b]))[_0x1afab1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1afab1([0x2f])));}function _0x349a73(_0xb526bf){let _0x3e85ec=0x1505;function _0x5ebd72(_0x37051f){for(let _0x226ec1=0x0;_0x226ec1<_0x37051f[_0x1afab1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x226ec1++){const _0x11a464=_0x37051f[_0x1afab1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x226ec1);_0x3e85ec=(_0x3e85ec<<0x5)+_0x3e85ec+_0x11a464,_0x3e85ec&=_0x3e85ec;}}function _0x256553(_0x19b845){Array[_0x1afab1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19b845)?_0x19b845[_0x1afab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x256553):_0x19b845&&typeof _0x19b845==_0x1afab1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1afab1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19b845)[_0x1afab1([0x73,0x6f,0x72,0x74])]()[_0x1afab1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x34b769,_0x31a6f5])=>{_0x5ebd72(_0x34b769),_0x256553(_0x31a6f5);}):_0x5ebd72(window[_0x1afab1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19b845));}return _0x256553(_0xb526bf),_0x3e85ec>>>0x0;}function _0x60e1a0(_0x1a5503){return _0x1a5503[_0x1afab1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1afab1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1afab1([0x30]));}function _0x247dae(_0x2a1922){return _0x2a1922[_0x1afab1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1afab1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1afab1([0x6a,0x6f,0x69,0x6e])]('');}function _0x12a6e2(_0x19460f){return _0x28cd7c[_0x1afab1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afab1([0x68,0x61,0x73])](_0x19460f);}function _0x32f903(_0x56ca6a){return _0x28cd7c[_0x1afab1([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1afab1([0x67,0x65,0x74])](_0x56ca6a);}function _0x2cf30e(){}function _0x1afab1(_0x861193){return _0x861193['map'](_0x4c1e3a=>String['fromCharCode'](_0x4c1e3a))['join']('');}_0x3af2c9(await _0x10de1());}(this);}set['adapter'](_0x50adaf){if(this['_adapter'])throw new _0x4f581a('track-changes-adapter-already-set',this);this['_adapter']=_0x50adaf;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4c4201=!0x1,toJSON:_0xf572f5=!0x1}={}){const _0x5afd26=[];for(const _0x5184a3 of this['_suggestions']['values']())_0x4c4201&&!_0x5184a3['isInContent']||_0x5afd26['push'](_0x5184a3);return _0xf572f5?_0x5afd26['map'](_0x46523d=>_0x46523d['toJSON']()):_0x5afd26;}['getSuggestion'](_0x4c95d3){const _0x53541d=this['_suggestions']['get'](_0x4c95d3);if(!_0x53541d)throw new _0x4f581a('track-changes-suggestion-not-found',this);return _0x53541d;}['hasSuggestion'](_0x279967){return this['_suggestions']['has'](_0x279967);}['addSuggestionData'](_0x157f5e){const {authorId:_0x465e5d,id:_0x14e077,attributes:_0x4fdbbb}=_0x157f5e,[_0x2385b8,_0x10fcf1]=_0x157f5e['type']['split'](':'),_0x24b843=this['_suggestions']['get'](_0x14e077)||this['_createSuggestion'](_0x2385b8,_0x10fcf1,_0x14e077,_0x465e5d,_0x4fdbbb);if(this['_addThreadToSuggestion'](_0x24b843),this['_checkSuggestionCorrectness'](_0x24b843,_0x2385b8,_0x10fcf1||null,_0x465e5d),_0x24b843['createdAt']=_0x157f5e['createdAt'],_0x24b843['_isDataLoaded']=!0x0,_0x4fdbbb&&_0x4fdbbb['@external']){const _0x3d1149=_0x4fdbbb['@external'],_0x4dfc32=this['_getExternalAuthor'](_0x3d1149['authorName']);_0x24b843['authoredAt']=_0x3d1149['createdAt'],_0x24b843['author']=_0x4dfc32,_0x24b843['isExternal']=!0x0;}else _0x24b843['authoredAt']=_0x157f5e['createdAt'];switch(_0x157f5e['data']&&(_0x24b843['data']=_0x157f5e['data']),_0x157f5e['attributes']&&(_0x24b843['attributes']=_0x157f5e['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x24b843['_saved']=!0x0),this['_suggestionState']['get'](_0x24b843)){case'notReady':this['_suggestionState']['set'](_0x24b843,'dataReady');break;case'markerReady':_0x24b843['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x24b843])),this['_refreshSuggestionsChain'](new Set([_0x24b843])),this['_suggestionState']['set'](_0x24b843,'ready'),this['fire']('suggestionLoaded',_0x24b843)):this['_suggestionState']['set'](_0x24b843,'removed');}return _0x24b843;}['acceptSuggestion'](_0x1f7d88){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x526c19 of _0x1f7d88['getAllAdjacentSuggestions']())_0x526c19['accept']();});});}['discardSuggestion'](_0x1e5768){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16af59 of _0x1e5768['getAllAdjacentSuggestions']())_0x16af59['discard']();});});}['enableCommand'](_0x16414c,_0x1d98f4){const _0x401411=this['editor']['commands']['get'](_0x16414c);if(!_0x401411)throw new _0x4f581a('track-changes-command-not-found',this,{'commandName':_0x16414c});if(this['_enabledCommands']['has'](_0x401411))throw new _0x4f581a('track-changes-enable-command-twice',this,{'commandName':_0x16414c});this['_enabledCommands']['add'](_0x401411),_0x1d98f4&&_0x401411['on']('execute',(_0xbb6258,_0x3a1dbf)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3a1dbf['length']>0x0&&_0x3a1dbf[_0x3a1dbf['length']-0x1]&&_0x3a1dbf[_0x3a1dbf['length']-0x1]['forceDefaultExecution']?_0x3a1dbf['pop']():(_0xbb6258['return']=_0x1d98f4((..._0x595263)=>_0x401411['execute'](..._0x595263,{'forceDefaultExecution':!0x0}),..._0x3a1dbf),_0xbb6258['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x1c17a4){let _0x87fab5,_0x17c892;const _0xf867b7=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x87fab5=_0x1c17a4();}catch(_0x5f3531){_0x17c892=_0x5f3531;}return _0xf867b7||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x17c892&&_0x4f581a['rethrowUnexpectedError'](_0x17c892,this),_0x87fab5;}['markInsertion'](_0x2604f2,_0x5c8971=null,_0x45ee06={}){if(_0x2604f2['isCollapsed'])return null;const _0x5bf65a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x3907bf,meta:_0x4c74de}of this['_findSuggestions'](_0x2604f2,'insertion'))if(_0x4c74de['isOwn']){if(!_0x4c74de['isNextTo']){if(_0x4c74de['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x3907bf,_0x45ee06))continue;return _0x3907bf;}if(Xt(_0x3907bf,_0x45ee06))return _0x3907bf;this['_breakSuggestionMarker'](_0x3907bf,_0x2604f2['start'],_0x2604f2['end']);break;}if(_0x5c8971==_0x3907bf['subType']&&Xt(_0x3907bf,_0x45ee06)){const _0x1e7c6c=_0x3907bf['getFirstRange']();return _0x1e7c6c['start']['isEqual'](_0x2604f2['end'])?this['_setSuggestionRange'](_0x3907bf,this['_model']['createRange'](_0x2604f2['start'],_0x1e7c6c['end'])):this['_setSuggestionRange'](_0x3907bf,this['_model']['createRange'](_0x1e7c6c['start'],_0x2604f2['end'])),_0x3907bf;}}const _0x1694d2=_0x25d5a0(),_0x3d2d01=_0x5bf65a['id'],_0x498f80=_0x5c8971?'insertion:'+_0x5c8971:'insertion',_0x361818=this['_setSuggestionData']({'id':_0x1694d2,'type':_0x498f80,'createdAt':new Date(),'authorId':_0x3d2d01,'attributes':_0x45ee06});return this['_addSuggestionMarker'](_0x498f80,_0x1694d2,_0x3d2d01,_0x2604f2),_0x361818;}['markMultiRangeInsertion'](_0x6d621d,_0x2fba45='multi',_0xd4fd86={}){const _0x52f43f=this['editor']['plugins']['get']('Users')['me'],_0x488a6e=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2fba45,'join');for(const _0x621dc3 of this['getSuggestions']())if(_0x621dc3['author']['id']==_0x52f43f['id']&&'insertion'==_0x621dc3['type']&&_0x621dc3['subType']==_0x2fba45&&Xt(_0x621dc3,_0xd4fd86)&&(_0x488a6e(_0x621dc3['getRanges'](),_0x6d621d)||_0x488a6e(_0x6d621d,_0x621dc3['getRanges']()))){for(const _0x328782 of _0x6d621d)_0x621dc3['addRange'](_0x328782);return _0x621dc3;}for(const {suggestion:_0x2367f8,meta:_0x52b3d0}of this['_findSuggestions'](_0x6d621d,'insertion')){if(!_0x52b3d0['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x52b3d0['containsRangeInObject'])continue;if(!Xt(_0x2367f8,_0xd4fd86))continue;let _0x55cdf7=!0x0;for(const _0x339050 of _0x2367f8['getRanges']())for(const _0x1b07c4 of _0x6d621d)if(!_0x339050['containsRange'](_0x1b07c4)){_0x55cdf7=!0x1;break;}if(_0x55cdf7)return _0x2367f8;}const _0x5199bb=_0x25d5a0(),_0x16aef4=_0x52f43f['id'],_0x2535a7='insertion:'+_0x2fba45,_0x34f50d=this['_setSuggestionData']({'id':_0x5199bb,'type':_0x2535a7,'createdAt':new Date(),'authorId':_0x16aef4,'attributes':_0xd4fd86});for(const _0x45b608 of _0x6d621d)this['_addSuggestionMarker'](_0x2535a7,_0x5199bb,_0x16aef4,_0x45b608,o['getMultiRangeId']());return _0x34f50d;}['markInlineFormat'](_0x49ddd5,_0xd389b7,_0x1620f0=null,_0x58ce8f={}){if(_0x1620f0=_0x1620f0||Kt(_0xd389b7),_0x49ddd5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x13786a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1620f0,'accept');return this['forceDefaultExecution'](()=>_0x13786a([_0x49ddd5],_0xd389b7,_0x58ce8f)),null;}const _0x3c5aab=this['editor']['plugins']['get']('Users')['me'],_0x882c1d=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f8692,meta:_0x5d84fe}of this['_findSuggestions'](_0x49ddd5,'insertion'))_0x5d84fe['isOwn']&&!_0x5d84fe['isInsideObject']&&_0x882c1d['push'](..._0x1f8692['getRanges']());}const _0x290594=function(_0x2b415e,_0xfe9b27){const _0x11c356=[];for(const _0x4f41d2 of _0xfe9b27){const _0x133f47=_0x2b415e['getIntersection'](_0x4f41d2);_0x133f47&&_0x11c356['push'](_0x133f47);}return _0x11c356;}(_0x49ddd5,_0x882c1d),_0x2c9167=function(_0x525f07,_0x1e6efc){const _0x5c778b=[_0x525f07];for(const _0x2ac312 of _0x1e6efc){let _0x385d56=0x0;for(;_0x385d56<_0x5c778b['length'];){const _0x3a5122=_0x5c778b[_0x385d56]['getDifference'](_0x2ac312);_0x5c778b['splice'](_0x385d56,0x1,..._0x3a5122),_0x385d56+=_0x3a5122['length'];}}return _0x5c778b;}(_0x49ddd5,_0x882c1d);_0x290594['length']&&this['_model']['change'](()=>{for(const _0x51e4f6 of _0x290594){const _0x242d6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x1620f0,'accept');this['forceDefaultExecution'](()=>_0x242d6c([_0x51e4f6],_0xd389b7,_0x58ce8f));}});for(const _0x4b43ef of _0x2c9167){let _0x548e19=null,_0x1170e5=_0x4b43ef['start'],_0x5c0267=_0x4b43ef['end'];for(const {suggestion:_0x4d6b02,meta:_0x512740}of this['_findSuggestions'](_0x4b43ef,'formatInline')){if(!_0x512740['isOwn'])continue;if(_0x4d6b02['subType']!=_0x1620f0)continue;if(!Xt(_0x4d6b02,_0x58ce8f))continue;const _0x356725=_0x4d6b02['getFirstRange']();if(_0x356725['containsRange'](_0x4b43ef,!0x0))return null;_0x1170e5=_0x1170e5['isBefore'](_0x356725['start'])?_0x1170e5:_0x356725['start'],_0x5c0267=_0x5c0267['isAfter'](_0x356725['end'])?_0x5c0267:_0x356725['end'],_0x548e19?_0x356725['start']['isBefore'](_0x548e19['getFirstRange']()['start'])?(_0x548e19['removeMarkers'](),_0x548e19=_0x4d6b02):_0x4d6b02['removeMarkers']():_0x548e19=_0x4d6b02;}const _0x313c54=this['_model']['createRange'](_0x1170e5,_0x5c0267);if(_0x548e19)this['_setSuggestionRange'](_0x548e19,_0x313c54);else{const _0xcb0899=_0x25d5a0(),_0x56a6ec=_0x3c5aab['id'];this['_setSuggestionData']({'id':_0xcb0899,'type':'formatInline:'+_0x1620f0,'data':_0xd389b7,'createdAt':new Date(),'authorId':_0x56a6ec,'attributes':_0x58ce8f}),this['_addSuggestionMarker']('formatInline:'+_0x1620f0,_0xcb0899,_0x56a6ec,_0x313c54);}}return null;}['markBlockFormat'](_0x3ccb81,_0x5027ab,_0x4c070b=[],_0x43b04c=null,_0x30cbd2={}){_0x5027ab['formatGroupId']||(_0x5027ab['formatGroupId']=_0x5027ab['commandName']),_0x5027ab['multipleBlocks']=_0x3ccb81['is']('range'),_0x43b04c=_0x43b04c||Kt(_0x5027ab);const _0xb3e19=_0x4c070b['map'](_0x4d3cd0=>zt(_0x4d3cd0,this['_model'])),_0x4dcade=_0x3ccb81['is']('range')?_0x3ccb81:zt(_0x3ccb81,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5c4af5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43b04c,'accept');return this['forceDefaultExecution'](()=>_0x5c4af5([_0x4dcade],_0x5027ab,_0x30cbd2)),null;}_0xb3e19['push'](_0x4dcade);let _0x11789a=!0x0;for(const _0x917523 of _0xb3e19)if(!this['_rangeIsInLocalUserInsertion'](_0x917523)){_0x11789a=!0x1;break;}if(_0x11789a&&'always'!==this['_trackFormatChanges']){const _0x578fa9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43b04c,'accept');return this['forceDefaultExecution'](()=>_0x578fa9([_0x4dcade],_0x5027ab,_0x30cbd2)),null;}let _0x20ac11=null,_0x497daa=_0x4dcade['start'],_0x3d2935=_0x4dcade['end'];for(const {suggestion:_0x2afbe2,meta:_0xba52c7}of this['_findSuggestions'](_0x4dcade,'formatBlock')){if(!_0xba52c7['isOwn'])continue;if(_0xba52c7['isNextTo']||_0xba52c7['containsRangeInObject']||_0xba52c7['isInsideObject'])continue;if(_0x2afbe2['data']['formatGroupId']!=_0x5027ab['formatGroupId'])continue;if(!Xt(_0x2afbe2,_0x30cbd2))continue;const _0x174e0d=_0x2afbe2['getFirstRange']();if(_0x2afbe2['subType']==_0x43b04c){if(_0x174e0d['containsRange'](_0x4dcade,!0x0))return null;_0x497daa=_0x497daa['isBefore'](_0x174e0d['start'])?_0x497daa:_0x174e0d['start'],_0x3d2935=_0x3d2935['isAfter'](_0x174e0d['end'])?_0x3d2935:_0x174e0d['end'],_0x20ac11?_0x174e0d['start']['isBefore'](_0x20ac11['getFirstRange']()['start'])?(_0x20ac11['removeMarkers'](),_0x20ac11=_0x2afbe2):_0x2afbe2['removeMarkers']():_0x20ac11=_0x2afbe2;}else{const _0x1a0533=_0x4dcade['getIntersection'](_0x174e0d);this['_cutOutSuggestionMarker'](_0x2afbe2,_0x1a0533);}}const _0x1be692=this['editor']['plugins']['get']('Users')['me'],_0x5bc1d5=_0x25d5a0(),_0x50972d=_0x1be692['id'];if(_0x20ac11)return this['_setSuggestionRange'](_0x20ac11,this['_model']['createRange'](_0x497daa,_0x3d2935)),_0x20ac11;{const _0x4af5bc=this['_setSuggestionData']({'id':_0x5bc1d5,'type':'formatBlock:'+_0x43b04c,'data':_0x5027ab,'createdAt':new Date(),'authorId':_0x50972d,'attributes':_0x30cbd2});return this['_addSuggestionMarker']('formatBlock:'+_0x43b04c,_0x5bc1d5,_0x50972d,this['_model']['createRange'](_0x497daa,_0x3d2935)),_0x4af5bc;}}['markMultiRangeBlockFormat'](_0x4ff2dc,_0x4a0892,_0x4e4582=[],_0x479496=null,_0x3862e2={}){_0x4a0892['formatGroupId']||(_0x4a0892['formatGroupId']=_0x4a0892['commandName']);const _0x54007b=_0x4ff2dc[0x0];_0x4a0892['multipleBlocks']=_0x54007b['is']('range'),_0x479496=_0x479496||Kt(_0x4a0892);const _0x3413cd=_0x4e4582['map'](_0x40544d=>zt(_0x40544d,this['_model'])),_0x2bcb2c=_0x54007b['is']('range')?_0x4ff2dc:_0x4ff2dc['map'](_0x304227=>zt(_0x304227,this['_model']));if('never'===this['_trackFormatChanges']){const _0x388e47=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'accept');return this['forceDefaultExecution'](()=>_0x388e47(_0x2bcb2c,_0x4a0892,_0x3862e2)),null;}_0x3413cd['push'](..._0x2bcb2c);let _0x169733=!0x0;for(const _0x3c21b0 of _0x3413cd)if(!this['_rangeIsInLocalUserInsertion'](_0x3c21b0)){_0x169733=!0x1;break;}if(_0x169733&&'always'!==this['_trackFormatChanges']){const _0x1fa040=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'accept');return this['forceDefaultExecution'](()=>_0x1fa040(_0x2bcb2c,_0x4a0892,_0x3862e2)),null;}const _0xf75c1b=this['editor']['plugins']['get']('Users')['me'];for(const _0x4c538a of this['getSuggestions']()){if(_0x4c538a['author']['id']!=_0xf75c1b['id'])continue;if('formatBlock'!=_0x4c538a['type']||_0x4c538a['data']['formatGroupId']!=_0x4a0892['formatGroupId'])continue;if(!Xt(_0x4c538a,_0x3862e2))continue;const _0x566f61=_0x4c538a['subType']==_0x479496;for(let _0x3a919f=0x0;_0x3a919f<_0x2bcb2c['length'];_0x3a919f++){const _0x45277c=_0x2bcb2c[_0x3a919f];for(const _0x12d23b of _0x4c538a['getMarkers']()){const _0x182f49=_0x12d23b['getRange']();if(_0x45277c['isEqual'](_0x182f49)){_0x566f61?(_0x2bcb2c['splice'](_0x3a919f,0x1),_0x3a919f--):_0x4c538a['removeMarker'](_0x12d23b['name']);break;}}}}if(0x0==_0x2bcb2c['length'])return null;const _0x4c3ffc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x479496,'join');for(const _0x14f51c of this['getSuggestions']())if(_0x14f51c['author']['id']==_0xf75c1b['id']&&'formatBlock'==_0x14f51c['type']&&_0x14f51c['data']['formatGroupId']==_0x4a0892['formatGroupId']&&_0x14f51c['subType']==_0x479496&&Xt(_0x14f51c,_0x3862e2)&&(_0x4c3ffc(_0x14f51c['getRanges'](),_0x2bcb2c)||_0x4c3ffc(_0x2bcb2c,_0x14f51c['getRanges']()))){for(const _0x595efd of _0x2bcb2c)_0x14f51c['addRange'](_0x595efd);return _0x14f51c;}const _0x5b414d=_0x25d5a0(),_0x1674ed=_0xf75c1b['id'],_0x148e38='formatBlock:'+_0x479496,_0x2b323c=this['_setSuggestionData']({'id':_0x5b414d,'type':_0x148e38,'data':_0x4a0892,'createdAt':new Date(),'authorId':_0x1674ed,'attributes':_0x3862e2});for(const _0x33850e of _0x2bcb2c)this['_addSuggestionMarker'](_0x148e38,_0x5b414d,_0x1674ed,_0x33850e,o['getMultiRangeId']());return _0x2b323c;}['markDeletion'](_0x505fa,_0x56094a=null,_0x4ad00f={}){if(_0x505fa['isCollapsed'])return null;const _0x4c72cd=this['editor']['plugins']['get']('Users')['me'],_0x1a8e5c=new _0x24a0f9(_0x505fa['start'],_0x505fa['end']);for(const {suggestion:_0x2e902b,meta:_0x341569}of this['_findSuggestions'](_0x1a8e5c,'insertion'))if(_0x341569['isOwn']&&!_0x341569['isNextTo']){if(_0x2e902b['isMultiRange']){const _0x3be6d9=_0x2e902b['getRanges']()['filter'](_0x4e8a00=>'$graveyard'!=_0x4e8a00['root']['rootName']);_0x3be6d9['every'](_0x1b0324=>_0x1a8e5c['containsRange'](_0x1b0324,!0x0))&&_0x2e902b['discard']();if(_0x3be6d9['some'](_0x3a724e=>_0x3a724e['containsRange'](_0x1a8e5c,!0x0))){const _0x3a0e59=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x56094a,'accept');return this['forceDefaultExecution'](()=>_0x3a0e59([_0x1a8e5c],null,_0x4ad00f)),null;}}else{const _0x316a07=_0x1a8e5c['getIntersection'](_0x2e902b['getFirstRange']());null!==_0x316a07&&_0x2e902b['_onDiscard']([_0x316a07],null,_0x4ad00f);}}if(_0x1a8e5c['detach'](),_0x1a8e5c['isCollapsed']||'$graveyard'==_0x1a8e5c['root']['rootName'])return null;let _0x5bc188=null,_0x5034c9=_0x1a8e5c['start'],_0x34fbf1=_0x1a8e5c['end'];const _0x827d3c=this['_findSuggestions'](_0x1a8e5c,'deletion');for(const {suggestion:_0xe1d7da,meta:_0x6bcc01}of _0x827d3c){const _0x1e3c4b=this['_model']['createRange'](_0x5034c9,_0x34fbf1);if(_0x6bcc01['isOwn']&&(this['_mergeNestedSuggestions']||!_0x6bcc01['containsRangeInObject']&&!_0x6bcc01['isInsideObject'])){if(_0xe1d7da['isMultiRange']){if(!Xt(_0xe1d7da,_0x4ad00f))continue;let _0x3382da=!0x0;for(const _0x4b0ea3 of _0xe1d7da['getRanges']()){if(_0x4b0ea3['containsRange'](_0x1e3c4b,!0x0))return _0xe1d7da;_0x1e3c4b['containsRange'](_0x4b0ea3)||(_0x3382da=!0x1);}_0x3382da&&_0xe1d7da['discard']();}else{const _0x424d8c=_0xe1d7da['getFirstRange']();if(_0x424d8c['containsRange'](_0x1e3c4b,!0x0))return _0xe1d7da;if(!Xt(_0xe1d7da,_0x4ad00f)){_0x1e3c4b['containsRange'](_0x424d8c)?_0xe1d7da['removeMarkers']():_0x424d8c['containsPosition'](_0x5034c9)?_0x5034c9=_0x424d8c['end']:_0x424d8c['containsPosition'](_0x34fbf1)&&(_0x34fbf1=_0x424d8c['start']);continue;}_0x5034c9=_0x5034c9['isBefore'](_0x424d8c['start'])?_0x5034c9:_0x424d8c['start'],_0x34fbf1=_0x34fbf1['isAfter'](_0x424d8c['end'])?_0x34fbf1:_0x424d8c['end'],_0x4ad00f=Object['assign']({},_0xe1d7da['attributes']),_0x5bc188?_0x424d8c['start']['isBefore'](_0x5bc188['getFirstRange']()['start'])?(_0x5bc188['removeMarkers'](),_0x5bc188=_0xe1d7da):_0xe1d7da['removeMarkers']():_0x5bc188=_0xe1d7da;}}}if(_0x5bc188)return this['_setSuggestionRange'](_0x5bc188,this['_model']['createRange'](_0x5034c9,_0x34fbf1)),_0x5bc188;{const _0x2d3550=_0x25d5a0(),_0x3fa431=this['_model']['createRange'](_0x5034c9,_0x34fbf1),_0x2f0ffc=_0x4c72cd['id'],_0x31520d=_0x56094a?'deletion:'+_0x56094a:'deletion',_0x5bca28=this['_setSuggestionData']({'id':_0x2d3550,'type':_0x31520d,'createdAt':new Date(),'authorId':_0x2f0ffc,'attributes':_0x4ad00f});return this['_addSuggestionMarker'](_0x31520d,_0x2d3550,_0x2f0ffc,_0x3fa431),_0x5bca28;}}['markMultiRangeDeletion'](_0x5b57ce,_0x5ee568='multi',_0x544dbb={}){const _0x453e43=this['editor']['plugins']['get']('Users')['me'],_0x5d61b7=_0x5b57ce['map'](_0x54c554=>new _0x24a0f9(_0x54c554['start'],_0x54c554['end'])),_0x588f39=new Set();for(const {suggestion:_0x590747,meta:_0x21a00a}of this['_findSuggestions'](_0x5d61b7,'insertion'))_0x21a00a['isOwn']&&!_0x21a00a['isNextTo']&&_0x588f39['add'](_0x590747);for(const _0x2062a9 of _0x588f39)if(_0x2062a9['isMultiRange']){const _0x3246a6=_0x2062a9['getRanges']();(!_0x2062a9['attributes']||!_0x2062a9['attributes']['skipNestingCheck'])&&(_0x3246a6['every'](_0x4c5d6c=>_0x5d61b7['some'](_0x23c2b8=>_0x23c2b8['containsRange'](_0x4c5d6c,!0x0)))&&_0x2062a9['discard']());if(_0x5d61b7['every'](_0x2cea30=>_0x3246a6['some'](_0x5de5a6=>_0x5de5a6['containsRange'](_0x2cea30,!0x0)))){const _0x3e0a6b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'accept');return this['forceDefaultExecution'](()=>_0x3e0a6b(_0x5b57ce,null,_0x544dbb)),null;}}else{const _0x367cbe=_0x2062a9['getFirstRange']();_0x5d61b7['some'](_0x402cf7=>_0x402cf7['containsRange'](_0x367cbe,!0x0))&&_0x2062a9['discard']();if(_0x5d61b7['every'](_0x279640=>_0x367cbe['containsRange'](_0x279640,!0x0))){const _0x5c3375=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'accept');return this['forceDefaultExecution'](()=>_0x5c3375(_0x5d61b7,null,_0x544dbb)),null;}}const _0x3074f3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5ee568,'join');let _0x78405e=null;for(const _0x58273d of this['getSuggestions']())if(_0x58273d['author']['id']==_0x453e43['id']&&_0x58273d['isInContent']&&'deletion'==_0x58273d['type']&&_0x58273d['subType']==_0x5ee568&&Xt(_0x58273d,_0x544dbb)&&(_0x3074f3(_0x58273d['getRanges'](),_0x5d61b7)||_0x3074f3(_0x5d61b7,_0x58273d['getRanges']()))){if(_0x78405e){if(_0x58273d['commentThread']&&_0x58273d['commentThread']['length'])continue;for(const _0x3f9876 of _0x58273d['getRanges']())_0x78405e['isIntersectingWithRange'](_0x3f9876)||_0x78405e['addRange'](_0x3f9876);_0x58273d['removeMarkers']();}else{_0x78405e=_0x58273d;for(const _0x455930 of _0x5d61b7)_0x58273d['isIntersectingWithRange'](_0x455930)||_0x58273d['addRange'](_0x455930);}}if(_0x78405e)return _0x78405e;_0x588f39['clear']();for(const {suggestion:_0x42ef93,meta:_0x493c79}of this['_findSuggestions'](_0x5d61b7,'deletion'))_0x493c79['isOwn']&&(this['_mergeNestedSuggestions']||!_0x493c79['containsRangeInObject']&&!_0x493c79['isInsideObject'])&&Xt(_0x42ef93,_0x544dbb)&&_0x588f39['add'](_0x42ef93);for(const _0x4757d3 of _0x588f39){const _0x53b80b=_0x4757d3['getRanges']();if(!_0x544dbb||!_0x544dbb['skipNestingCheck']){if(_0x5d61b7['every'](_0x2c0193=>_0x53b80b['some'](_0x5712bc=>_0x5712bc['containsRange'](_0x2c0193,!0x0))))return _0x4757d3;}(!_0x4757d3['attributes']||!_0x4757d3['attributes']['skipNestingCheck'])&&(_0x53b80b['every'](_0xf17fb4=>_0x5d61b7['some'](_0x107ed5=>_0x107ed5['containsRange'](_0xf17fb4,!0x0)))&&_0x4757d3['discard']());}const _0x2f3d2e=_0x25d5a0(),_0x138d4b=_0x453e43['id'],_0x454f21='deletion:'+_0x5ee568,_0x3bc461=this['_setSuggestionData']({'id':_0x2f3d2e,'type':_0x454f21,'createdAt':new Date(),'authorId':_0x138d4b,'attributes':_0x544dbb});for(const _0x9c3806 of _0x5d61b7)_0x9c3806['detach'](),_0x9c3806['isCollapsed']||'$graveyard'==_0x9c3806['root']['rootName']||this['_addSuggestionMarker'](_0x454f21,_0x2f3d2e,_0x138d4b,_0x9c3806,o['getMultiRangeId']());return _0x3bc461;}['markAttributeChange'](_0x580ef8,_0x346f81,_0x1ef7fe,_0x555b82,_0x327b6a){if(_0x580ef8['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x27e606=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fe867=Array['from'](this['_suggestions']['values']())['filter'](_0x83ca02=>'attribute'==_0x83ca02['type']&&_0x83ca02['data']['key']==_0x346f81&&_0x83ca02['isIntersectingWithRange'](_0x580ef8));if('default'===this['_trackFormatChanges']){const _0xd420bc=this['_findSuggestions'](_0x580ef8,'insertion')['filter'](({meta:_0x51e74a})=>_0x51e74a['isOwn']&&!_0x51e74a['isInsideObject']&&!_0x51e74a['isNextTo'])['map'](({suggestion:_0x33d77f})=>_0x33d77f);_0x3fe867['unshift'](..._0xd420bc);}const _0x346cf6=new Map([[_0x580ef8,_0x1ef7fe]]);for(const _0x2d270 of _0x3fe867){const _0x5eb39a='attribute'==_0x2d270['type']?_0x2d270['data']['oldValue']:void 0x0,_0x1d066c=_0x2d270['getFirstRange'](),_0xe43bd1=Array['from'](_0x346cf6['keys']())['find'](_0x4d4abf=>_0x4d4abf['isIntersecting'](_0x1d066c));if(!_0xe43bd1)continue;const _0x1685d5=_0xe43bd1['getDifference'](_0x1d066c);this['_isBlockAttribute'](_0x346f81)&&'insertion'==_0x2d270['type']&&0x0!=_0x1685d5['length']||(_0x346cf6['delete'](_0xe43bd1),_0x1685d5['forEach'](_0x5bd2ad=>{_0x346cf6['set'](_0x5bd2ad,_0x1ef7fe);}),'insertion'!=_0x2d270['type']&&_0x5eb39a!=_0x555b82&&_0x346cf6['set'](_0xe43bd1['getIntersection'](_0x1d066c),_0x5eb39a));}const _0x22b3ec=[];for(const [_0x39233a,_0x38f63b]of _0x346cf6){const _0x7418d9=_0x25d5a0(),_0xa34b41={'key':_0x346f81,'oldValue':_0x38f63b,'newValue':_0x555b82};_0x346f81['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':_0x346f81});const _0x8e44d1=('attribute:'+(_0x346f81+'|'+Kt({'newValue':_0x555b82})))['substring'](0x0,0x3c),_0x2c4fdc=this['_setSuggestionData']({'id':_0x7418d9,'type':_0x8e44d1,'data':_0xa34b41,'createdAt':new Date(),'authorId':_0x27e606,'attributes':_0x327b6a});_0x22b3ec['push'](_0x2c4fdc),this['_addSuggestionMarker'](_0x8e44d1,_0x7418d9,_0x27e606,_0x39233a);}return _0x22b3ec;}['enableDefaultAttributesIntegration'](_0x31fd10){this['enableCommand'](_0x31fd10,(_0x49e7e2,..._0xd233db)=>{this['_recordAttributeChanges'](()=>{_0x49e7e2(..._0xd233db);});});}['registerBlockAttribute'](_0x43b243){this['_blockAttributeKeys']['add'](_0x43b243);}['registerInlineAttribute'](_0x3c50d7){this['_inlineAttributeKeys']['add'](_0x3c50d7);}['_getAttributeKey'](_0x389ce6){return'attribute'==_0x389ce6['type']?_0x389ce6['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xd092aa,_0x358242){const _0x4cb63f=_0xd092aa['getFirstMarker']();this['_model']['change'](_0x28c09a=>{_0x28c09a['updateMarker'](_0x4cb63f,{'range':_0x358242});});}['_addThreadToSuggestion'](_0x5dca3c){const _0x2d4d8c=_0x5dca3c['id'],_0x523d42=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2d4d8c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x523d42,'threadId':_0x2d4d8c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0xd4916=this['_commentsRepository']['getCommentThread'](_0x2d4d8c);_0xd4916['unbind']('isRemovable'),_0xd4916['isRemovable']=!0x1,_0x5dca3c['commentThread']=_0xd4916;}['_checkSuggestionCorrectness'](_0x3917e5,_0x481661,_0x55ccb4,_0x2ada44){if(_0x3917e5['type']!=_0x481661||_0x3917e5['subType']!=_0x55ccb4||_0x3917e5['creator']['id']!=_0x2ada44)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x4f581a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x18aa36,_0x4a904e){const _0x2add08=_0x18aa36['getFirstRange']();if(_0x4a904e['isEqual'](_0x2add08))_0x18aa36['removeMarkers']();else{if(_0x2add08['containsRange'](_0x4a904e)){const _0x43022d=this['_model']['createPositionAt'](_0x4a904e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x2add08['start'],_0x43022d));const _0x176190=_0x25d5a0(),_0x440b87=_0x18aa36['creator']['id'],_0x5df772=_0x18aa36['type']+':'+_0x18aa36['subType'];this['_setSuggestionData']({'id':_0x176190,'type':_0x5df772,'createdAt':new Date(),'authorId':_0x440b87,'data':_0x18aa36['data'],'attributes':_0x18aa36['attributes']});const _0x2fde3e=this['_model']['createPositionAt'](_0x4a904e['end']['parent'],'after'),_0xf946d6=this['_model']['createRange'](_0x2fde3e,_0x2add08['end']);this['_addSuggestionMarker'](_0x5df772,_0x176190,_0x440b87,_0xf946d6);}else{if(_0x2add08['containsPosition'](_0x4a904e['start'])){const _0x3f8371=this['_model']['createPositionAt'](_0x4a904e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x2add08['start'],_0x3f8371));}else{const _0x1d216c=this['_model']['createPositionAt'](_0x4a904e['end']['parent'],'after');this['_setSuggestionRange'](_0x18aa36,this['_model']['createRange'](_0x1d216c,_0x2add08['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x9533e9){for(const {suggestion:_0x288e3e,meta:_0x50c55b}of this['_findSuggestions'](_0x9533e9,'insertion')){if(!_0x50c55b['isOwn'])continue;const _0x18778f=_0x288e3e['getRanges']();for(const _0x8c1c68 of _0x18778f)if(!_0x9533e9['getDifference'](_0x8c1c68)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x39f109){const _0x5516da=this['editor']['plugins']['get']('Users')['getUser'](_0x39f109);if(!_0x5516da)throw new _0x4f581a('track-changes-user-not-found',this);return _0x5516da;}['_getExternalAuthor'](_0x3864f2){const _0x256ee6=this['editor']['plugins']['get']('Users'),_0x4bf1bd=_0x526b92('external:'+_0x3864f2),_0x240a80=_0x256ee6['getUser'](_0x4bf1bd);return _0x240a80||_0x256ee6['addUser']({'id':_0x4bf1bd,'name':_0x3864f2});}['_createSuggestion'](_0xc6225f,_0x4e1c6e,_0x51825e,_0x3c241c,_0x3ca389){const _0x1da5d9=this['_getAuthorFromId'](_0x3c241c),_0x145033=this['_suggestionFactory']['buildSuggestion'](_0xc6225f,_0x4e1c6e,_0x51825e,_0x1da5d9,_0x3ca389,_0x1cad50=>{this['_updateSuggestionData'](_0x51825e,{'attributes':_0x1cad50});const _0x31ea61=this['getSuggestion'](_0x51825e);this['_joinWithAdjacentSuggestions'](new Set([_0x31ea61])),this['_refreshSuggestionsChain'](new Set([_0x31ea61]));});return this['listenTo'](_0x145033,'accept',()=>{this['_updateSuggestionData'](_0x51825e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x145033,'discard',()=>{this['_updateSuggestionData'](_0x51825e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x51825e,_0x145033),this['_suggestionState']['set'](_0x145033,'notReady'),_0x145033;}['_splitMarkerName'](_0x4a2a11){const _0x34734c=_0x4a2a11['split'](':');return{'group':_0x34734c[0x0],'type':_0x34734c[0x1],'subType':_0x34734c['length']>=0x5?_0x34734c[0x2]:null,'id':_0x34734c['length']<0x5?_0x34734c[0x2]:_0x34734c[0x3],'authorId':_0x34734c['length']<0x5?_0x34734c[0x3]:_0x34734c[0x4],'markerCount':0x6==_0x34734c['length']?_0x34734c[0x5]:null};}['_breakSuggestionMarker'](_0x12f15b,_0x4a989b,_0x55f07a){const _0x227ddc=_0x12f15b['getFirstRange'](),_0x4ba459=_0x227ddc['start'],_0x330eed=_0x227ddc['end'];this['_setSuggestionRange'](_0x12f15b,this['_model']['createRange'](_0x4ba459,_0x4a989b));const _0x5dabf5=_0x25d5a0(),_0x403a9e=_0x12f15b['creator']['id'],_0x1fc3d8=_0x12f15b['type']+(_0x12f15b['subType']?':'+_0x12f15b['subType']:'');this['_setSuggestionData']({'id':_0x5dabf5,'type':_0x1fc3d8,'createdAt':new Date(),'authorId':_0x403a9e,'originalSuggestionId':_0x12f15b['id'],'attributes':_0x12f15b['attributes'],'data':_0x12f15b['data']});const _0x111fad=this['_getAttributeKey'](_0x12f15b);('formatBlock'==_0x12f15b['type']||_0x111fad&&this['_isBlockAttribute'](_0x111fad))&&(_0x55f07a=this['_model']['createPositionBefore'](_0x55f07a['parent'])),this['_addSuggestionMarker'](_0x1fc3d8,_0x5dabf5,_0x403a9e,this['_model']['createRange'](_0x55f07a,_0x330eed));}['_findSuggestions'](_0x59907d,_0x4c7432=null){const _0x19a65d=[],_0x1394d8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x59907d)||(_0x59907d=[_0x59907d]);for(const _0x12df6c of this['getSuggestions']()){if(!_0x12df6c['isInContent'])continue;if(_0x4c7432&&_0x12df6c['type']!=_0x4c7432)continue;let _0x4c2810=!0x1;for(const _0xe48535 of _0x12df6c['getRanges']()){for(const _0x396073 of _0x59907d){const _0x5c7a71=_0x396073['start']['isEqual'](_0xe48535['end'])||_0x396073['end']['isEqual'](_0xe48535['start']);if(_0x5c7a71||_0x396073['getIntersection'](_0xe48535)){const _0x415aca=_0x396073['containsRange'](_0xe48535)&&Gt(this['_model']['schema'],_0xe48535['start'],_0x396073),_0x50f117=_0xe48535['containsRange'](_0x396073)&&Gt(this['_model']['schema'],_0x396073['start'],_0xe48535);_0x19a65d['push']({'suggestion':_0x12df6c,'meta':{'isOwn':_0x1394d8==_0x12df6c['author'],'isNextTo':_0x5c7a71,'isInsideObject':_0x415aca,'containsRangeInObject':_0x50f117}}),_0x4c2810=!0x0;break;}}if(_0x4c2810)break;}}return _0x19a65d;}['_addSuggestionMarker'](_0x4c3f4b,_0x3f886d,_0x11a91f,_0x5d4173,_0x303e5e){this['_model']['change'](_0x276c40=>{let _0x4503f4='suggestion:'+_0x4c3f4b+':'+_0x3f886d+':'+_0x11a91f;_0x303e5e&&(_0x4503f4=_0x4503f4+':'+_0x303e5e),_0x276c40['addMarker'](_0x4503f4,{'range':_0x5d4173,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x3dbd1e){const _0x2fd130=_0x3dbd1e['previous'],_0x202815=_0x3dbd1e['next'];_0x3dbd1e['previous']=null,_0x3dbd1e['next']=null,null!=_0x2fd130&&_0x2fd130['next']==_0x3dbd1e&&(_0x2fd130['next']=_0x202815),null!=_0x202815&&_0x202815['previous']==_0x3dbd1e&&(_0x202815['previous']=_0x2fd130),'ready'==this['_suggestionState']['get'](_0x3dbd1e)&&(this['_suggestionState']['set'](_0x3dbd1e,'removed'),this['fire']('suggestionUnloaded',_0x3dbd1e,_0x2fd130,_0x202815));}['_setSuggestionData'](_0x136b78){const _0x6a702d=_0x136b78['id'],_0x42f07f=this['addSuggestionData'](_0x136b78);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4260b0=this['editor']['plugins']['get']('PendingActions'),_0xa5bafc=_0x42f07f['hasComments'],_0x539587=_0x42f07f['subType']?_0x42f07f['type']+':'+_0x42f07f['subType']:_0x42f07f['type'],_0x8ef9bd=this['editor']['locale'],_0x2180e6=_0x4260b0['add'](c(_0x8ef9bd,'PENDING_ACTION_SUGGESTION')),_0x23ad85={'id':_0x6a702d,'type':_0x539587,'hasComments':_0xa5bafc,'data':_0x136b78['data']||null,'originalSuggestionId':_0x136b78['originalSuggestionId']||null,'attributes':_0x42f07f['attributes']};this['_adapter']['addSuggestion'](_0x23ad85)['then'](_0x1047b7=>{_0x42f07f['_saved']=!0x0,_0x4260b0['remove'](_0x2180e6),_0x1047b7&&_0x1047b7['createdAt']&&(this['_suggestions']['get'](_0x6a702d)['createdAt']=_0x1047b7['createdAt']);})['catch'](_0x4c0d09=>{throw _0x2fb80f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x42f07f['discard']();}),_0x42f07f['stopListening'](),this['_suggestions']['delete'](_0x42f07f['id']),this['_suggestionState']['delete'](_0x42f07f),_0x4c0d09;});}return _0x42f07f;}['_isBlockAttribute'](_0x862373){return this['_blockAttributeKeys']['has'](_0x862373);}['_updateSuggestionData'](_0x25f8fa,_0x28b799){const _0x274d97=this['editor']['plugins']['get']('PendingActions'),_0x543713=this['getSuggestion'](_0x25f8fa);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x543713['_saved']){const _0x3f888c=_0x274d97['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x25f8fa,_0x28b799)['then'](()=>{_0x274d97['remove'](_0x3f888c);});}else _0x543713['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x25f8fa,_0x28b799);});}}['_getSuggestionData'](_0x529ea8){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x4f581a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x529ea8);}['_handleNewSuggestionMarker'](_0x16bd30){const {id:_0x3e2d4e,type:_0x200237,subType:_0x173f8b,authorId:_0xa63fed}=this['_splitMarkerName'](_0x16bd30),_0x3a0332=this['_suggestions']['get'](_0x3e2d4e)||this['_createSuggestion'](_0x200237,_0x173f8b,_0x3e2d4e,_0xa63fed,{});switch(this['_checkSuggestionCorrectness'](_0x3a0332,_0x200237,_0x173f8b,_0xa63fed),this['_suggestionState']['get'](_0x3a0332)){case'notReady':this['_getSuggestionData'](_0x3e2d4e)['then'](_0x4c385d=>{let _0x5f58fc=Promise['resolve']();_0x4c385d['hasComments']&&(_0x5f58fc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e2d4e})),_0x5f58fc['then'](()=>{this['addSuggestionData'](_0x4c385d)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3a0332,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e2d4e,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3a0332,'ready'),this['fire']('suggestionLoaded',_0x3a0332);break;case'ready':this['fire']('suggestionChanged',_0x3a0332);}return _0x3a0332['addMarkerName'](_0x16bd30),_0x3a0332;}['_refreshSuggestionsChain'](_0xe835d5){const _0xdc45ba=Array['from'](_0xe835d5),_0xf8060c=_0xdc45ba['filter'](_0x4af256=>'attribute'==_0x4af256['type']);this['_refreshAttributeSuggestionsChain'](_0xf8060c);const _0x344409=_0xdc45ba['filter'](_0x79340e=>!_0x79340e['isMultiRange']&&'attribute'!=_0x79340e['type']),_0x2d61e3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x245ce3=>!_0x245ce3['isMultiRange']&&'attribute'!=_0x245ce3['type']),_0xc32653=_0x2d61e3['filter'](_0x347cc4=>!_0xe835d5['has'](_0x347cc4)),_0x4332f5=new Map(_0x2d61e3['map'](_0x4ca75c=>[_0x4ca75c,this['_suggestionFactory']['getSuggestionCallback'](_0x4ca75c['type'],_0x4ca75c['subType'],'chain')])),_0x22cba5=new Map(_0x2d61e3['map'](_0x392ecf=>[_0x392ecf,_0x392ecf['getFirstRange']()])),_0xe585c7=new Set(),_0xe884b9=new Set();for(let _0x37180d=0x0;_0x37180d<_0x344409['length'];_0x37180d++)_0x2f5b06(_0x344409[_0x37180d],_0x344409,_0x37180d+0x1);for(let _0x931cb=0x0;_0x931cb<_0x344409['length'];_0x931cb++)_0x2f5b06(_0x344409[_0x931cb],_0xc32653,0x0);const _0x59b8c4=new Set();for(let _0xb54858=0x0;_0xb54858<_0x344409['length'];_0xb54858++){const _0x996085=_0x344409[_0xb54858];!_0xe884b9['has'](_0x996085)&&_0x996085['previous']&&(_0x59b8c4['add'](_0x996085['previous']),_0x996085['previous']['next']===_0x996085&&(_0x996085['previous']['next']=null),_0x996085['previous']=null),!_0xe585c7['has'](_0x996085)&&_0x996085['next']&&(_0x59b8c4['add'](_0x996085['next']),_0x996085['next']['previous']===_0x996085&&(_0x996085['next']['previous']=null),_0x996085['next']=null);}function _0x2f5b06(_0x393924,_0xb71e52,_0x58c3f6){for(let _0xac160b=_0x58c3f6;_0xac160b<_0xb71e52['length'];_0xac160b++){const _0x5e24fd=_0x4f5ad2(_0x393924,_0xb71e52[_0xac160b]);_0x5e24fd&&(_0x5e24fd[0x0]['next']=_0x5e24fd[0x1],_0x5e24fd[0x1]['previous']=_0x5e24fd[0x0],_0xe585c7['add'](_0x5e24fd[0x0]),_0xe884b9['add'](_0x5e24fd[0x1]));}}function _0x4f5ad2(_0x4e930f,_0x3c9bb7){if(_0x4e930f['author']['id']!==_0x3c9bb7['author']['id'])return null;const _0x2df493=_0x4332f5['get'](_0x4e930f)(_0x4e930f,_0x3c9bb7,_0x22cba5['get'](_0x4e930f),_0x22cba5['get'](_0x3c9bb7));if(!_0x2df493)return null;return _0x4332f5['get'](_0x3c9bb7)(_0x4e930f,_0x3c9bb7,_0x22cba5['get'](_0x4e930f),_0x22cba5['get'](_0x3c9bb7))?_0x2df493[0x1]['commentThread']&&_0x2df493[0x1]['commentThread']['length']?null:_0x2df493:null;}_0x59b8c4['size']&&this['_refreshSuggestionsChain'](_0x59b8c4);}['_refreshAttributeSuggestionsChain'](_0x864d64){if(0x0==_0x864d64['length'])return;const _0x40ce4e=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x543175=>'attribute'==_0x543175['type']&&_0x543175['_isDataLoaded']),_0x1cda78=[],_0x821ebf=new Map();for(const _0x7f6aa9 of _0x40ce4e){const _0x27af05=_0x526b92(_0x7f6aa9['attributes']);_0x821ebf['has'](_0x27af05)||(_0x821ebf['set'](_0x27af05,_0x1cda78['length']),_0x1cda78['push']([]));const _0x59aeb0=_0x821ebf['get'](_0x27af05);_0x1cda78[_0x59aeb0]['push'](_0x7f6aa9);}!(function(){_0x1cda78['sort']((_0x4c3ce5,_0x30f2ca)=>{const _0x24db9e=_0x4c3ce5[0x0]['createdAt'],_0x1efc2b=_0x30f2ca[0x0]['createdAt'];return _0x24db9e==_0x1efc2b?_0x4c3ce5[0x0]['attributes']['groupId']<_0x30f2ca[0x0]['attributes']['groupId']?-0x1:0x1:_0x24db9e<_0x1efc2b?-0x1:0x1;});for(const _0x5f0441 of _0x1cda78)_0x5f0441['sort']((_0xa3f1df,_0x448d38)=>_0xa3f1df['id']<_0x448d38['id']?-0x1:0x1);}());for(let _0x288b5e=0x0;_0x288b5e<_0x1cda78['length'];_0x288b5e++){if(0x0==_0x1cda78[_0x288b5e]['length'])continue;const _0x379edb=[];for(let _0x209cad=_0x288b5e+0x1;_0x209cad<_0x1cda78['length'];_0x209cad++)0x0!=_0x1cda78[_0x209cad]['length']&&_0x543df3(_0x1cda78[_0x288b5e],_0x1cda78[_0x209cad])&&_0x379edb['push'](_0x209cad);for(const _0x331388 of _0x379edb)_0x1cda78[_0x288b5e]=_0x1cda78[_0x288b5e]['concat'](_0x1cda78[_0x331388]),_0x1cda78[_0x331388]=[];}for(const _0x376bf4 of _0x1cda78)for(let _0x3a02a8=0x0;_0x3a02a8<_0x376bf4['length'];_0x3a02a8++){const _0x1d4b1b=_0x376bf4[_0x3a02a8+0x1]||null;_0x376bf4[_0x3a02a8]['next']!==_0x1d4b1b&&(_0x376bf4[_0x3a02a8]['next']=_0x1d4b1b);}for(const _0x27855d of _0x1cda78)for(let _0xdbd5bd=0x0;_0xdbd5bd<_0x27855d['length'];_0xdbd5bd++){const _0x2d6f84=_0x27855d[_0xdbd5bd-0x1]||null;_0x27855d[_0xdbd5bd]['previous']!==_0x2d6f84&&(_0x27855d[_0xdbd5bd]['previous']=_0x2d6f84);}function _0x543df3(_0x393187,_0x3780a1){if(_0x393187[0x0]['attributes']['groupId']!==_0x3780a1[0x0]['attributes']['groupId']&&_0x393187[0x0]['author']!==_0x3780a1[0x0]['author'])return!0x1;if(!function(_0x3c8963,_0x3ed525){if(!_0x3c8963['hasComments']&&!_0x3ed525['hasComments'])return!0x0;if(_0x3c8963['hasComments']&&_0x3ed525['hasComments'])return!0x1;if(_0x3c8963['hasComments']&&_0x3ed525['createdAt']<_0x3c8963['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3ed525['hasComments']&&_0x3c8963['createdAt']<_0x3ed525['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x393187[0x0],_0x3780a1[0x0]))return!0x1;const _0x414d46=Ft(_0x393187[0x0]['attributes'],'groupId'),_0x403db0=Ft(_0x3780a1[0x0]['attributes'],'groupId');if(!_0x53b5bd(_0x414d46,_0x403db0))return!0x1;return!!_0x393187['every'](_0x3a970e=>_0x3780a1['some'](_0x5cff57=>_0x3a970e['getFirstRange']()['isEqual'](_0x5cff57['getFirstRange']())))&&_0x3780a1['every'](_0x4ffc9f=>_0x393187['some'](_0x354b81=>_0x4ffc9f['getFirstRange']()['isEqual'](_0x354b81['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4cde61){const _0x416044=Array['from'](_0x4cde61),_0x1f1cfa=this['getSuggestions']({'skipNotAttached':!0x0}),_0x50b8e8=_0x1f1cfa['filter'](_0x5c1c9b=>!_0x4cde61['has'](_0x5c1c9b)),_0x4ec42e=new Map(_0x416044['map'](_0x1aa750=>[_0x1aa750,this['_suggestionFactory']['getSuggestionCallback'](_0x1aa750['type'],_0x1aa750['subType'],'join')])),_0x3b6d02=new Map(_0x1f1cfa['map'](_0x12ad00=>[_0x12ad00,_0x12ad00['getRanges']()]));for(let _0x4bc3df=0x0;_0x4bc3df<_0x416044['length'];_0x4bc3df++){if(_0x493de8(this,_0x416044[_0x4bc3df],_0x416044,_0x4bc3df+0x1))return!0x0;}for(let _0x2321d2=0x0;_0x2321d2<_0x416044['length'];_0x2321d2++){if(_0x493de8(this,_0x416044[_0x2321d2],_0x50b8e8,0x0))return!0x0;}return!0x1;function _0x493de8(_0x4ff186,_0x288fbb,_0xda3ed,_0x22c8a9){for(let _0x440160=_0x22c8a9;_0x440160<_0xda3ed['length'];_0x440160++){const _0x11ceea=_0xda3ed[_0x440160];if(_0x11ceea['type']!==_0x288fbb['type']||_0x11ceea['author']['id']!==_0x288fbb['author']['id']||_0x11ceea['subType']!==_0x288fbb['subType'])continue;if(!Qt(_0x288fbb,_0x11ceea))continue;if('attribute'==_0x288fbb['type']&&_0x288fbb['data']['oldValue']!=_0x11ceea['data']['oldValue'])continue;if('attribute'==_0x288fbb['type']&&_0x4ff186['_isBlockAttribute'](_0x288fbb['data']['key']))continue;if('formatBlock'==_0x288fbb['type']){const _0x201a5f=_0x4ff186['editor']['model'],_0x5d4c4d=_0x288fbb['getContainedElement']();if(_0x5d4c4d&&(_0x201a5f['schema']['isObject'](_0x5d4c4d)||_0x201a5f['schema']['isLimit'](_0x5d4c4d)))continue;}const _0x2deced=_0x4ec42e['get'](_0x288fbb),_0x214e09=_0x3b6d02['get'](_0x288fbb),_0x2553ef=_0x3b6d02['get'](_0x11ceea),_0x31f9c1=_0x288fbb['commentThread']&&_0x288fbb['commentThread']['length'],_0x15e7d0=_0x11ceea['commentThread']&&_0x11ceea['commentThread']['length'];if(!_0x31f9c1&&_0x2deced(_0x2553ef,_0x214e09))return _0x4ff186['_joinSuggestions'](_0x11ceea,_0x288fbb),_0x3b6d02['delete'](_0x288fbb),!0x0;if(!_0x15e7d0&&_0x2deced(_0x214e09,_0x2553ef))return _0x4ff186['_joinSuggestions'](_0x288fbb,_0x11ceea),_0x3b6d02['delete'](_0x11ceea),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c35f,_0x18ce51){if(_0x2c35f['isMultiRange']){for(const _0x37e32b of _0x18ce51['getRanges']())_0x2c35f['addRange'](_0x37e32b);}else{const _0x1d43d1=_0x18ce51['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c35f,this['_model']['createRange'](_0x2c35f['getFirstRange']()['start'],_0x1d43d1));}_0x18ce51['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2c0b4e,_0x55f881,_0x5560fd){const _0x5e8641=_0x2c0b4e['startsWith']('format')||_0x2c0b4e['startsWith']('attribute')?'FORMATTING':_0x2c0b4e['toUpperCase']();return c(this['editor']['locale'],_0x55f881+'_'+_0x5e8641+'_SUGGESTION_ANNOUNCEMENT',_0x5560fd);}['_initAriaMarkerChangeAnnouncements'](){const _0x28bf71=this['editor'];if(!_0x28bf71['ui'])return;const {ariaLiveAnnouncer:_0x195f54}=_0x28bf71['ui'];_0xa66937(this['_model'],({left:_0x596709,entered:_0x352318})=>{for(const _0x43a038 of _0x596709){const {group:_0x4d22e4,type:_0x3ac6e1}=this['_splitMarkerName'](_0x43a038['name']);if('suggestion'===_0x4d22e4){_0x195f54['announce'](this['_getMarkerAnnouncementText'](_0x3ac6e1,'LEAVE'));break;}}for(const _0x24e1f9 of _0x352318){const {group:_0x512bb1,type:_0x3a0f0e}=this['_splitMarkerName'](_0x24e1f9['name']);if('suggestion'===_0x512bb1){_0x195f54['announce'](this['_getMarkerAnnouncementText'](_0x3a0f0e,'ENTER',_0x105d0d(_0x669480)));break;}}});}['_processAttributeChanges'](_0x1534f3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x44670a=this['editor'],_0x4b6031=_0x44670a['model']['document']['differ']['getChanges']();if(0x0==_0x4b6031['length'])return!0x1;const _0x34f014=[],_0x3ab78f=_0x4b6031['filter'](_0x10f905=>'attribute'==_0x10f905['type']),_0x2a5399=_0x4b6031['filter'](_0x263396=>'insert'==_0x263396['type']&&'$text'!=_0x263396['name']),_0x723a88=_0x4b6031['filter'](_0x2dd50c=>'remove'==_0x2dd50c['type']&&'$text'!=_0x2dd50c['name']);for(const _0x4d95f8 of _0x3ab78f)_0x34f014['push']({'key':_0x4d95f8['attributeKey'],'newValue':_0x4d95f8['attributeNewValue'],'oldValue':_0x4d95f8['attributeOldValue'],'range':qt(_0x4d95f8['range'],_0x44670a['model'])});for(const _0x230937 of _0x2a5399){const _0x69ea2c=_0x723a88['find'](_0xdf2e4c=>_0xdf2e4c['position']['isEqual'](_0x230937['position']));_0x69ea2c&&_0x34f014['push']({'key':u,'newValue':_0x230937['name'],'oldValue':_0x69ea2c['name'],'range':_0x44670a['model']['createRangeOn'](_0x230937['position']['nodeAfter'])});}return 0x0!=_0x34f014['length']&&this['_reduceExistingSuggestions'](_0x1534f3,_0x34f014);}['_processAttributeSuggestions'](_0x4577ba){let _0x56fddb=!0x1;const _0x7d996c=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x14885b=>_0x14885b['data']['newRange']&&_0x14885b['name']['startsWith']('suggestion:attribute:'));for(const _0x15cedb of _0x7d996c){const {subType:_0x2b9552,id:_0x33f928}=this['_splitMarkerName'](_0x15cedb['name']),_0x4e2f1f=_0x2b9552['split']('|')[0x0];for(const _0x52e5d0 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x52e5d0['id']!=_0x33f928&&'attribute'==_0x52e5d0['type']&&_0x52e5d0['data']&&_0x52e5d0['data']['key']==_0x4e2f1f&&_0x52e5d0['getFirstRange']()['isIntersecting'](_0x15cedb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x52e5d0,_0x15cedb['data']['newRange'],_0x4577ba),_0x56fddb=!0x0);}return _0x56fddb;}['_recordAttributeChanges'](_0x4bfd8e){this['_recordAttributeSuggestions']=!0x0,_0x4bfd8e();}['_isRegisteredAttribute'](_0x11a13d){const _0x1a57ee=this['_isBlockAttribute'](_0x11a13d),_0x1aa01b=this['_inlineAttributeKeys']['has'](_0x11a13d);return _0x1a57ee||_0x1aa01b;}['_reduceExistingSuggestions'](_0x5f3f74,_0x3a7ca9){if(0x0==_0x3a7ca9['length'])return!0x1;let _0x2472ad=!0x1;for(const _0x2d14c2 of _0x3a7ca9){const _0x2c0a76=this['_findSuggestions'](_0x2d14c2['range'],'attribute')['filter'](_0x9043b3=>!_0x9043b3['meta']['isNextTo'])['map'](_0x38f399=>_0x38f399['suggestion']),_0x47411b=_0x526b92({'newValue':_0x2d14c2['newValue']});_0x2c0a76['filter'](_0xbed3a9=>{const [_0x2f6362,_0x4706f1]=_0xbed3a9['subType']['split']('|');return _0x2f6362==_0x2d14c2['key']&&_0x4706f1!=_0x47411b;})['forEach'](_0x1c8891=>{this['_reduceSuggestionAttributeRange'](_0x1c8891,_0x2d14c2['range'],_0x5f3f74),_0x2472ad=!0x0;});}return _0x2472ad;}['_reduceSuggestionAttributeRange'](_0x2af9fc,_0x200297,_0x22dcad){const _0x1b0b91=_0x2af9fc['getFirstRange']()['getDifference'](_0x200297);0x0!==_0x1b0b91['length']?0x1!==_0x1b0b91['length']?this['_breakSuggestionMarker'](_0x2af9fc,_0x200297['start'],_0x200297['end']):this['_setSuggestionRange'](_0x2af9fc,_0x1b0b91[0x0]):_0x22dcad['removeMarker'](_0x2af9fc['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x58bf28){this['_editor']=_0x58bf28,this['_model']=_0x58bf28['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x19e34d,_0x2fce21,_0x4eb2f9,_0x50df45,_0x466c56,_0x5d7342){return new o(this['_model'],{'type':_0x19e34d,'subType':_0x2fce21,'id':_0x4eb2f9,'author':_0x50df45,'creator':_0x50df45,'attributes':_0x466c56,'onAttributesChange':_0x5d7342,'onAccept':(..._0x518224)=>this['getSuggestionCallback'](_0x19e34d,_0x2fce21,'accept')(..._0x518224),'onDiscard':(..._0x4aa50e)=>this['getSuggestionCallback'](_0x19e34d,_0x2fce21,'discard')(..._0x4aa50e)});}['registerCustomCallback'](_0x4b2334,_0x30ac00,_0x2f86d9,_0x43b20a){const _0x1774b2=_0x4b2334+':'+_0x30ac00+':'+_0x2f86d9;this['_customCallbacks']['set'](_0x1774b2,_0x43b20a);}['getSuggestionCallback'](_0x16461f,_0x2c81e7,_0x506ea2){const _0x2657b8=_0x16461f+':'+_0x2c81e7+':'+_0x506ea2;return this['_customCallbacks']['get'](_0x2657b8)||this['_defaultCallbacks']['get'](_0x16461f+':'+_0x506ea2);}['_registerDefaultCallbacks'](){const _0x442a96=()=>!0x1,_0x54627f=_0x2f24d5=>{_0x2f24d5['sort']((_0x935d92,_0x501c84)=>_0x935d92['start']['isBefore'](_0x501c84['start'])?0x1:-0x1),this['_model']['change'](_0x5ab0d7=>{for(const _0x51fbd0 of _0x2f24d5){let _0x11980b;_0x11980b=_0x51fbd0['end']['isAtEnd']&&_0x51fbd0['end']['parent']==_0x51fbd0['start']['nodeAfter']?_0x5ab0d7['createSelection'](_0x51fbd0['start']['nodeAfter'],'on'):_0x5ab0d7['createSelection'](_0x51fbd0),this['_model']['deleteContent'](_0x11980b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x295a50=(_0x32192d,_0x18f8d5)=>{_0x18f8d5&&this['_model']['change'](_0xb2790d=>{const {commandName:_0x4e70e5,commandParams:_0x48547d=[]}=_0x18f8d5,_0x39adad=_0x32192d['map'](_0x1f0896=>(Lt(_0x1f0896)&&(_0x1f0896=this['_model']['createRange'](_0x1f0896['end'])),_0x1f0896))['filter'](_0x25d076=>'$graveyard'!==_0x25d076['root']['rootName']);if(_0x39adad['length']<0x1)return;const _0x3e40e9=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2500de=>_0x24a0f9['fromRange'](_0x2500de));_0xb2790d['setSelection'](_0x39adad);for(const _0x30dabe of this['_editor']['commands']['commands']())_0x30dabe['refresh']();_0x48547d['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4e70e5,..._0x48547d);const _0x322f88=_0x3e40e9['filter'](_0x44640a=>'$graveyard'!=_0x44640a['root']['rootName']);_0x322f88['length']>0x0&&_0xb2790d['setSelection'](_0x322f88);for(const _0x562e62 of _0x3e40e9)_0x562e62['detach']();});},_0x691f83=(_0xb05fd9,_0x71aeea)=>0x1==_0xb05fd9['length']&&0x1==_0x71aeea['length']&&_0xb05fd9[0x0]['end']['isEqual'](_0x71aeea[0x0]['start']),_0x3c704e=(_0x395531,_0x3ff728,_0x3d7168,_0x5805bc)=>Wt(_0x395531,_0x3ff728,_0x3d7168,_0x5805bc)?[_0x395531,_0x3ff728]:Wt(_0x3ff728,_0x395531,_0x5805bc,_0x3d7168)?[_0x3ff728,_0x395531]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x442a96),this['_defaultCallbacks']['set']('insertion:discard',_0x54627f),this['_defaultCallbacks']['set']('insertion:join',_0x691f83),this['_defaultCallbacks']['set']('insertion:chain',_0x3c704e),this['_defaultCallbacks']['set']('deletion:accept',_0x54627f),this['_defaultCallbacks']['set']('deletion:discard',_0x442a96),this['_defaultCallbacks']['set']('deletion:join',_0x691f83),this['_defaultCallbacks']['set']('deletion:chain',_0x3c704e),this['_defaultCallbacks']['set']('formatInline:accept',_0x295a50),this['_defaultCallbacks']['set']('formatInline:discard',_0x442a96),this['_defaultCallbacks']['set']('formatInline:join',_0x691f83),this['_defaultCallbacks']['set']('formatInline:chain',_0x442a96),this['_defaultCallbacks']['set']('formatBlock:accept',_0x295a50),this['_defaultCallbacks']['set']('formatBlock:discard',_0x442a96),this['_defaultCallbacks']['set']('formatBlock:join',_0x691f83),this['_defaultCallbacks']['set']('formatBlock:chain',_0x442a96),this['_defaultCallbacks']['set']('attribute:accept',_0x442a96),this['_defaultCallbacks']['set']('attribute:discard',(_0x161afa,_0x366583)=>{if(!_0x366583)return;const _0x3a1f62=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3a0137=>{if(_0x366583['key']==u)for(const _0x3bedf0 of _0x161afa){const _0x97cb2a=_0x3bedf0['start']['nodeAfter'],_0x555838=_0x366583['oldValue'];_0x3a0137['rename'](_0x97cb2a,_0x555838);}else{if(_0x3a1f62['_isBlockAttribute'](_0x366583['key'])){for(const _0x4495e4 of _0x161afa)void 0x0!==_0x366583['oldValue']?_0x3a0137['setAttribute'](_0x366583['key'],_0x366583['oldValue'],_0x4495e4['start']['nodeAfter']):_0x3a0137['removeAttribute'](_0x366583['key'],_0x4495e4['start']['nodeAfter']);}else{for(const _0x9eb166 of _0x161afa)_0x366583['oldValue']?_0x3a0137['setAttribute'](_0x366583['key'],_0x366583['oldValue'],_0x9eb166):_0x3a0137['removeAttribute'](_0x366583['key'],_0x9eb166);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x691f83);}}function Gt(_0x576ec8,_0x55736b,_0x589cc0){for(const _0x29dc6f of _0x55736b['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x29dc6f['root']==_0x29dc6f)return!0x1;if(!_0x589cc0['containsItem'](_0x29dc6f))return!0x1;if(_0x576ec8['isObject'](_0x29dc6f)||_0x576ec8['isLimit'](_0x29dc6f))return!0x0;}return!0x1;}function Lt(_0x124d0e){return _0x124d0e['end']['parent']==_0x124d0e['start']['nodeAfter']&&_0x124d0e['end']['isAtStart'];}function Jt(_0x368313,_0x1a2f12,_0x5c1c9c,_0x4f1f24){const _0x128f41=_0x1966be=>!_0x1966be['item']['is']('$textProxy')&&!_0x4f1f24['isObject'](_0x1966be['item']),_0x5b9d81=_0x368313['start']['getLastMatchingPosition'](_0x128f41),_0xdcf522=_0x368313['end']['getLastMatchingPosition'](_0x128f41,{'direction':'backward'});return(!_0x368313['start']['isEqual'](_0x5b9d81)||!_0x368313['end']['isEqual'](_0xdcf522))&&(_0x5b9d81['isBefore'](_0xdcf522)?_0x5c1c9c['updateMarker'](_0x1a2f12,{'range':_0x5c1c9c['createRange'](_0x5b9d81,_0xdcf522)}):_0x5c1c9c['removeMarker'](_0x1a2f12),!0x0);}function Kt(_0x408a0a){return _0x526b92(_0x408a0a);}function Ht(_0x3560ad){const _0x438362=_0x3560ad['start']['nodeAfter'];return _0x438362&&_0x438362['is']('element');}function qt(_0x4954aa,_0x787cdf){return null==_0x4954aa['end']['nodeBefore']&&_0x4954aa['end']['parent']==_0x4954aa['start']['nodeAfter']?zt(_0x4954aa['start']['nodeAfter'],_0x787cdf):_0x4954aa;}function zt(_0x67c62d,_0x439540){const _0x21681e=_0x439540['schema']['isObject'](_0x67c62d)||_0x439540['schema']['isSelectable'](_0x67c62d);return _0x439540['createRange'](_0x439540['createPositionAt'](_0x67c62d,'before'),_0x21681e?_0x439540['createPositionAfter'](_0x67c62d):_0x439540['createPositionAt'](_0x67c62d,'end'));}function Wt(_0xca2d8e,_0x26fb81,_0x5109b6,_0x3f00dd){return!!Qt(_0xca2d8e,_0x26fb81)&&_0x5109b6['end']['isEqual'](_0x3f00dd['start']);}function Qt(_0x150f40,_0x9eba67){if(!_0x150f40['_isDataLoaded']||!_0x9eba67['_isDataLoaded'])return!0x1;const _0x4bf6d5=new Set(Object['keys'](_0x150f40['attributes'])),_0x133327=new Set(Object['keys'](_0x9eba67['attributes']));if(_0x4bf6d5['delete']('groupId'),_0x133327['delete']('groupId'),0x0==_0x4bf6d5['size']&&0x0==_0x133327['size'])return!0x0;if(_0x4bf6d5['size']!=_0x133327['size'])return!0x1;const _0x42a858={..._0x150f40['attributes']},_0x4b5dd5={..._0x9eba67['attributes']};return delete _0x42a858['groupId'],delete _0x4b5dd5['groupId'],JSON['stringify'](_0x42a858)==JSON['stringify'](_0x4b5dd5);}function Xt(_0x5d5e47,_0x4f3703){const _0x4d3219=Yt(_0x5d5e47['attributes']),_0x2c7644=Yt(_0x4f3703);if(!_0x5d5e47['_isDataLoaded'])return!0x1;for(const _0x6b5c94 of Object['keys'](_0x2c7644))if(!_0x53b5bd(_0x4d3219[_0x6b5c94],_0x2c7644[_0x6b5c94]))return!0x1;return!0x0;}function Yt(_0x13f99a){const _0x1db849=Object['assign']({},_0x13f99a);return delete _0x1db849['skipNestingCheck'],delete _0x1db849['tablePasteChainId'],_0x1db849;}class pe extends/* #__PURE__ -- @preserve */
25
- _0xd83ec1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45c055,_0x4e7c54,_0x3c43de,_0x2cc1cb){super(),this['model']=_0x4e7c54,this['view']=_0x3c43de,this['commentThreadController']=_0x2cc1cb,this['_editor']=_0x45c055,this['_acceptCommand']=_0x45c055['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45c055['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x300b99,_0x3d4bb5)=>_0x300b99||_0x3d4bb5),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2e1677=>_0x2e1677&&this['_editor']['model']['canEditAt'](_0x4e7c54['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x269745=>_0x269745&&this['_editor']['model']['canEditAt'](_0x4e7c54['getRanges']())),this['_pendingAction']=null,_0x3c43de['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3c43de,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3c43de,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3c43de,'change:isDirty',()=>{_0x3c43de['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 _0x34f063=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x34f063);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x6ca1cc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1fd931,_0x4c4187,_0x1cf943,_0x27dcc9){super(_0x1fd931),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x482e8d(_0x1fd931,c(_0x1fd931,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c4187['authoredAt']),this['bind']('authoredAt')['to'](_0x4c4187),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',_0x4c4187,'authoredAt',this,'descriptionParts',(_0x1a1a8f,_0x52c6c0,_0xde724f)=>{const _0x504682=_0xde724f['map'](_0x276850=>ls(_0x276850['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1a1a8f-0x1,_0x4c4187['author']['name'],_0x52c6c0?_0x27dcc9['formatDateTime'](_0x52c6c0):'',new DOMParser()['parseFromString'](_0x504682,'text/html')['body']['textContent']]);}),this['focusables']=new _0x177fd0(),this['focusTracker']=new _0x5f3a02(),this['keystrokes']=new _0x1a48a0(),this['focusCycler']=new _0xd93ef5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4d7b03=>_0x4d7b03['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4c4187,this['_localUser']=_0x1cf943,this['_config']=_0x27dcc9,_0x27dcc9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x1de87c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3ff920}=this['_config'];this['commentsListView']=new _0x3ff920(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',_0x965712=>_0x965712+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x47545a,_0x35f5e6)=>_0x47545a||!!_0x35f5e6);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x27285c}=this['_config'],_0x259517=new _0x27285c(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b7e3b=_0x259517['commentInputView'];return _0x259517['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b7e3b,'value',(_0x52efa6,_0xc52b2e,_0x27c587)=>!!_0x27c587||_0x52efa6&&!_0xc52b2e),_0x1b7e3b['on']('submit',(_0x2b9223,_0x2b5306)=>{this['fire']('addComment',_0x2b5306),_0x1b7e3b['editor']['setData']('');}),_0x1b7e3b['on']('cancel',()=>this['focus']()),_0x1b7e3b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x259517;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x1f4fc3,_0x2d6b0f,_0x4db7aa,_0x38ff1c){super(_0x1f4fc3,_0x2d6b0f,_0x4db7aa,_0x38ff1c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x463f62=>_0x463f62&&_0x463f62[0x0]?_0x463f62[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x18db4d,_0x2b818c)=>{let _0x40e168='';for(const _0x243784 of _0x18db4d)_0x40e168+='<p>'+ls(_0x243784['content'],_0x243784['color'])+'</p>';return _0x2b818c?_0x40e168:ti(_0x40e168,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x38ff1c['SuggestionView'](_0x1f4fc3,_0x2d6b0f,{'formatDateTime':_0x38ff1c['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 _0x18a9df=this['bindTemplate'],_0x2017b8=[this['suggestionView']];return this['commentsListView']&&_0x2017b8['push'](this['commentsListView']),this['commentThreadInputView']&&_0x2017b8['push'](this['commentThreadInputView']),_0x2017b8['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x18a9df['if']('isActive','ck-suggestion-wrapper--active'),_0x18a9df['to']('type',_0x339d3b=>'ck-suggestion-'+_0x339d3b),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':_0x18a9df['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x2017b8};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x6ca1cc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x310a5c,_0x16b5f7,_0x255b39){super(_0x310a5c),this['_model']=_0x16b5f7,this['_config']=_0x255b39,this['set']('description',''),this['bind']('authoredAt')['to'](_0x16b5f7),this['acceptButton']=this['_createButton'](c(_0x310a5c,'Accept\x20suggestion'),_0x207077,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x310a5c,'Discard\x20suggestion'),_0x2371e1,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x798988(_0x310a5c,_0x16b5f7['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x177fd0([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5f3a02(),this['keystrokes']=new _0x1a48a0(),this['focusCycler']=new _0xd93ef5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x3dbc04=>_0x3dbc04['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x68ccef=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x68ccef['innerHTML']=this['description'],this['on']('change:description',(_0x47296e,_0x442973,_0x4c4baa)=>{_0x68ccef['innerHTML']=_0x4c4baa;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x31b2e4=this['bindTemplate'],_0x56c791=[{'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':_0x31b2e4['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x31b2e4['to']('authoredAt',_0x195abf=>this['_config']['formatDateTime'](_0x195abf))}]}]},{'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']&&_0x56c791['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':_0x56c791}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x23bf46,_0x2ab9b8,_0x4f1da5,_0x43c4d7,_0x1ae651){const _0x2467e6=new _0x53595a(this['locale']);return _0x2467e6['set']({'label':_0x23bf46,'icon':_0x2ab9b8,'tooltip':!0x0,'tooltipPosition':_0x1ae651}),_0x2467e6['extendTemplate']({'attributes':{'class':_0x4f1da5}}),_0x2467e6['on']('execute',()=>{this['fire'](_0x43c4d7,this['_model']['id']);}),_0x2467e6;}['_setupKeyboardNavigation'](){const _0x4a8154=this['element'];this['keystrokes']['listenTo'](_0x4a8154);for(const _0x21ec94 of this['focusables'])this['focusTracker']['add'](_0x21ec94['element']),this['keystrokes']['listenTo'](_0x21ec94['element']);this['keystrokes']['set']('enter',(_0x5783be,_0x3bff60)=>{_0x4a8154===_0x5783be['target']&&(this['focusCycler']['focusFirst'](),_0x3bff60());}),this['keystrokes']['set']('esc',(_0x207d18,_0x1e484a)=>{_0x4a8154!==_0x207d18['target']&&(this['focus'](),_0x1e484a());});}}class d extends _0x5543a6{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x327c0e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x174e9c){super(_0x174e9c),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x3f8f77=this['editor']['config'];_0x3f8f77['define']('trackChanges.SuggestionThreadView',fe),_0x3f8f77['define']('trackChanges.SuggestionView',we),_0x3f8f77['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x3f8f77['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4df122,_0xec7d08){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5be936,_0x4d90c1]of this['_handleControllerBuffer']){const _0x27d8cf=this['_suggestionToController']['has'](_0x5be936);_0x27d8cf||_0x4d90c1?_0x27d8cf&&_0x4d90c1&&this['_destroyController'](_0x5be936):this['_initializeController'](_0x5be936);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4df122,_0xec7d08);}['init'](){const _0x5a154a=this['editor'],_0x861687=_0x5a154a['plugins']['get']('TrackChangesEditing'),_0x21a09a=_0x5a154a['plugins']['get']('Annotations'),_0x488269=_0x5a154a['plugins']['get']('EditorAnnotations'),_0x3ab9a1=_0x5a154a['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x488269['addSourceCollector'](()=>{const _0x3a6a3f=[];for(const [_0x1df03f,_0x10124c]of Array['from'](this['_suggestionToController'])){const _0x489a3b=_0x1df03f['getAllAdjacentSuggestions'](),_0x509fec=[];for(const _0x4e75f1 of _0x489a3b){if(!_0x4e75f1['isInContent'])continue;if(_0x4e75f1['isMultiRange']){_0x509fec['push'](..._0x4e75f1['getRanges']());continue;}const _0x1d4f44=_0x4e75f1['getFirstRange']();if(_0x509fec['length']>0x0){const _0x2001d3=_0x509fec[0x0]['getJoined'](_0x1d4f44);if(_0x2001d3){_0x509fec[0x0]=_0x2001d3;continue;}}_0x509fec['push'](_0x1d4f44);}_0x3a6a3f['push']([_0x10124c['view'],_0x509fec]);}return _0x3a6a3f;}),this['listenTo'](_0x861687,'suggestionLoaded',(_0x565125,_0x26d83c)=>{this['listenTo'](_0x26d83c,'change:previous',(_0x250e45,_0x2a60a4,_0x3a0f19,_0x21c0e1)=>{_0x26d83c['isInContent']&&(null==_0x3a0f19?(this['_updateController'](_0x21c0e1['head']),this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x1)):(this['_updateController'](_0x3a0f19['head']),null==_0x21c0e1&&this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x0)));}),null!==_0x26d83c['previous']?this['_updateController'](_0x26d83c['head']):this['_handleSuggestionControllerDelayed'](_0x26d83c,!0x1);}),this['listenTo'](_0x861687,'suggestionUnloaded',(_0xdac6b0,_0x105c2a,_0x553b94)=>{this['stopListening'](_0x105c2a,'change:previous'),this['_handleControllerBuffer']['delete'](_0x105c2a),this['_suggestionToController']['has'](_0x105c2a)&&this['_destroyController'](_0x105c2a),_0x553b94&&this['_updateController'](_0x553b94['head']);}),this['listenTo'](_0x861687,'suggestionChanged',(_0x24ed8d,_0x149539)=>{this['_updateController'](_0x149539);}),this['listenTo'](_0x21a09a,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3ab9a1,'addComment',(_0x568fbf,{threadId:_0x34969e,isFromAdapter:_0x56c7c3})=>{if(_0x56c7c3||!_0x861687['hasSuggestion'](_0x34969e))return;const _0xe35e94=_0x861687['getSuggestion'](_0x34969e);this['_suggestionToController']['get'](_0xe35e94)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5619e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x15e28c;for(const _0x4262c8 in _0x5619e4){const _0x41e094=_0x4262c8,_0x2ace2c=_0x5619e4[_0x41e094];if('trackChangesLicenseKeyValid'==_0x2ace2c||'trackChangesLicenseKeyInvalid'==_0x2ace2c||'trackChangesLicenseKeyExpired'==_0x2ace2c||'trackChangesLicenseKeyDomainLimit'==_0x2ace2c||'trackChangesLicenseKeyNotAllowed'==_0x2ace2c||'trackChangesLicenseKeyEvaluationLimit'==_0x2ace2c||'trackChangesLicenseKeyTrialLimit'==_0x2ace2c||'trackChangesLicenseKeyUsageLimit'==_0x2ace2c){delete _0x5619e4[_0x41e094],_0x15e28c=_0x2ace2c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x15e28c&&_0x5619e4['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x15e28c&&_0x5619e4['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x15e28c&&_0x5619e4['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x15e28c&&_0x5619e4['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x24c715=this['editor']['plugins']['get']('Annotations'),_0x323ec7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x583317=Array['from'](_0x24c715['activeAnnotations'],_0x205de0=>_0x205de0['innerView'])['filter'](_0xde90eb=>this['_viewToController']['has'](_0xde90eb)),_0x46ce10=[];for(const _0xaeb34f of _0x583317){const _0x50bd98=this['_viewToController']['get'](_0xaeb34f)['model']['getAllAdjacentSuggestions']();_0x46ce10['push'](..._0x50bd98['reduce']((_0x37bc54,_0x2de972)=>[..._0x37bc54,..._0x2de972['getMarkerNames']()],[]));}_0x323ec7['activeMarkers']=_0x46ce10;}['_addUIComponentsToFactory'](){const _0x538a43=this['editor'],_0x217568=_0x538a43['locale'],_0x54dbb9=c(_0x217568,'Track\x20changes'),_0x5bc811=new _0x212a21([{'type':'switchbutton','model':new _0x2ac537({'withText':!0x0,'isToggleable':!0x0,'label':_0x54dbb9,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x538a43['plugins']['has']('TrackChangesPreview')&&_0x5bc811['addMany']([{'type':'separator'},{'type':'button','model':new _0x2ac537({'withText':!0x0,'label':c(_0x217568,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x881b46 of _0x5bc811)if(ke(_0x881b46)){const _0x4735d3=_0x538a43['commands']['get'](_0x881b46['model']['commandName']);_0x881b46['model']['bind']('isOn','isEnabled')['to'](_0x4735d3,'value','isEnabled');}_0x538a43['ui']['componentFactory']['add']('trackChanges',_0x33af6a=>this['_createToolbarButton'](_0x33af6a,_0x5bc811,_0x54dbb9)),_0x538a43['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc41baf=>this['_createMenuBarMenu'](_0xc41baf,_0x5bc811,_0x54dbb9));}['_createToolbarButton'](_0x1c2090,_0x3ea001,_0xc10fa6){const _0x47d37b=_0x4d94ac(_0x1c2090,_0x8d227a),_0x4c5c9b=this['editor']['commands']['get']('trackChanges');_0x47d37b['buttonView']['set']({'tooltip':_0xc10fa6,'label':_0xc10fa6,'icon':_0x50eba3}),_0x47d37b['buttonView']['bind']('isOn')['to'](_0x4c5c9b,'value'),_0x47d37b['buttonView']['on']('execute',()=>{_0x4c5c9b['execute'](),this['editor']['editing']['view']['focus']();}),_0x4fd256(_0x47d37b,_0x3ea001,{'role':'menu'});const _0x180ca3=[];for(const _0x491018 of _0x3ea001)ke(_0x491018)&&_0x180ca3['push'](this['editor']['commands']['get'](_0x491018['model']['commandName']));const _0x4a5148=_0x47d37b['buttonView'];return _0x4a5148['actionView']['unbind']('isEnabled'),_0x4a5148['arrowView']['unbind']('isEnabled'),_0x4a5148['actionView']['bind']('isEnabled')['to'](_0x4c5c9b,'isEnabled'),_0x4a5148['arrowView']['bind']('isEnabled')['toMany'](_0x180ca3,'isEnabled',(..._0x5423bc)=>_0x5423bc['some'](_0x5ea85e=>_0x5ea85e)),_0x47d37b['on']('execute',_0x1de91a=>{this['editor']['execute'](_0x1de91a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x47d37b;}['_createMenuBarMenu'](_0x377566,_0x317cfc,_0x3ea985){const _0x5cdead=new _0x331706(_0x377566),_0x42f29f=this['editor']['commands']['get']('trackChanges');_0x5cdead['buttonView']['set']({'label':_0x3ea985,'icon':_0x50eba3});const _0x3240c6=new _0x43292a(_0x377566);for(const _0x3c8af5 of _0x317cfc){if('separator'==_0x3c8af5['type']){_0x3240c6['items']['add'](new _0x5af358(_0x377566));continue;}const _0x34ca3b=new _0x468583(_0x377566,_0x5cdead),_0x481d25=new _0x3067f9(_0x377566),_0x1e1a84=_0x3c8af5['model'];_0x481d25['bind'](...Object['keys'](_0x1e1a84))['to'](_0x1e1a84),_0x481d25['delegate']('execute')['to'](_0x5cdead),_0x481d25['on']('execute',()=>{this['editor']['execute'](_0x1e1a84['commandName']),this['editor']['editing']['view']['focus']();}),_0x34ca3b['children']['add'](_0x481d25),_0x3240c6['items']['add'](_0x34ca3b);}return _0x5cdead['bind']('isEnabled')['to'](_0x42f29f,'isEnabled'),_0x5cdead['panelView']['children']['add'](_0x3240c6),_0x5cdead;}['_initializeController'](_0x5906c7){const _0x5a60c0=this['editor'],_0x1538cb=_0x5a60c0['config'],_0x53c94c=_0x5a60c0['plugins']['get']('Annotations'),_0x3144d4=_0x5a60c0['plugins']['get']('CommentsRepository'),_0x347b34=_0x5a60c0['plugins']['get']('EditorAnnotations'),_0x56c3ea=_0x5a60c0['plugins']['get'](_0x327c0e)['me'],_0x66050b=_0x1538cb['get']('trackChanges')['SuggestionThreadView'],_0x3f0ac0=_0x1538cb['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x334ed8,CommentThreadInputView:_0x3bdd9e}=_0x5a60c0['plugins']['get']('CommentsUI');let _0x46caa4,_0x496bf5,_0x475e85;this['_annotationViews']['has'](_0x5906c7['id'])?(_0x496bf5=this['_annotationViews']['get'](_0x5906c7['id']),_0x46caa4=_0x496bf5['mainView']):(_0x46caa4=new _0x66050b(_0x5a60c0['locale'],_0x5906c7,_0x56c3ea,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1538cb['get']('comments.editorConfig'),'licenseKey':_0x1538cb['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1538cb['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1538cb['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1538cb['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x5e9250(_0x1538cb['get']('locale'),_0x5a60c0['locale']),'CommentView':_0x1538cb['get']('comments')['CommentView'],'CommentsListView':_0x334ed8,'CommentThreadInputView':_0x3bdd9e,'SuggestionView':_0x3f0ac0}),_0x46caa4['suggestionView']['acceptButton']['on']('execute',()=>{_0x5a60c0['editing']['view']['focus']();}),_0x46caa4['suggestionView']['discardButton']['on']('execute',()=>{_0x5a60c0['editing']['view']['focus']();}),_0x496bf5=_0x53c94c['createAnnotationView'](this['editor']['locale'],_0x46caa4),_0x496bf5['bind']('isDirty')['to'](_0x46caa4,'isDirty'),_0x496bf5['bind']('length')['to'](_0x46caa4),_0x496bf5['bind']('type')['to'](_0x46caa4,'type',_0x206f7c=>'suggestion-'+_0x206f7c),_0x46caa4['on']('escape',()=>{_0x475e85['fire']('escape');}),this['_annotationViews']['set'](_0x5906c7['id'],_0x496bf5));const _0x38b536=_0x3144d4['createCommentThreadController'](_0x5906c7['commentThread'],_0x46caa4),_0x274c2e=new pe(_0x5a60c0,_0x5906c7,_0x46caa4,_0x38b536),_0x5aa15e=_0x5906c7['getAllAdjacentSuggestions']()['filter'](_0x266944=>_0x266944['isInContent']);_0x46caa4['descriptionParts']=_0x5a60c0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x5aa15e),this['_suggestionToController']['set'](_0x5906c7,_0x274c2e),this['_viewToController']['set'](_0x46caa4,_0x274c2e),_0x475e85=_0x53c94c['createAnnotation']({'view':_0x496bf5,'target':()=>{const _0x8d5e1f=[],_0x24b470=_0x5906c7['getAllAdjacentSuggestions']()['filter'](_0x574630=>_0x574630['isInContent']);for(const _0x1bb28d of _0x24b470)_0x8d5e1f['push'](..._0x1bb28d['getMarkers']());return _0x39b2e(_0x5a60c0['editing'],_0x8d5e1f);},'type':()=>'suggestion-'+_0x274c2e['view']['type']}),_0x3144d4['_bindAnnotationToEditors'](_0x46caa4,_0x475e85),_0x53c94c['add'](_0x475e85),_0x347b34['registerAnnotation'](_0x475e85);}['_destroyController'](_0x21f590){const _0x4c86f9=this['editor']['plugins']['get']('CommentsRepository'),_0x270711=this['editor']['plugins']['get']('Annotations'),_0x21cbe6=this['_suggestionToController']['get'](_0x21f590),_0x53fb0c=_0x21cbe6['view'],_0x4ec10f=_0x270711['getByInnerView'](_0x53fb0c);_0x4c86f9['_unbindEditors'](_0x53fb0c),_0x4ec10f&&_0x270711['remove'](_0x4ec10f),this['_suggestionToController']['delete'](_0x21f590),this['_viewToController']['delete'](_0x53fb0c),_0x21cbe6['destroy']();}['_updateController'](_0xd9e7a){if(!_0xd9e7a['isInContent']||!this['_suggestionToController']['has'](_0xd9e7a))return;const _0x1c9dcc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x313772=this['_suggestionToController']['get'](_0xd9e7a),_0x5b1d1f=_0xd9e7a['getAllAdjacentSuggestions']();_0x313772['view']['descriptionParts']=_0x1c9dcc['descriptionFactory']['getDescriptions'](_0x5b1d1f);}['destroy'](){for(const _0x3d9b5a of this['_suggestionToController']['keys']())this['_destroyController'](_0x3d9b5a);for(const _0x5093ff of this['_annotationViews']['values']())_0x5093ff['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x143579){return'model'in _0x143579;}class k extends _0x5543a6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x34f9fe){this['editor']['plugins']['get'](p)['adapter']=_0x34f9fe;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x2ec955){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x2ec955);}['getSuggestions']({skipNotAttached:_0x2d4ca9=!0x1,toJSON:_0x157986=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2d4ca9,'toJSON':_0x157986});}['getSuggestion'](_0x5c2981){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x5c2981);}}const w=['Pagination'];class T extends _0x5543a6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x3dd920=this['editor'];if(_0x3dd920['config']['define']('trackChangesData.editorCreator',_0x1ed0b4=>{const _0x12b77d=_0x3dd920['model']['document']['getRootNames']()['reduce']((_0xdb2c72,_0x26bd45)=>(_0xdb2c72[_0x26bd45]='',_0xdb2c72),{});return _0x3dd920['constructor']['create'](_0x12b77d,_0x1ed0b4);}),'function'!=typeof _0x3dd920['config']['get']('trackChangesData')['editorCreator'])throw new _0x4f581a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x15a6da){return N(this['editor'],!0x0,_0x15a6da);}['getDataWithDiscardedSuggestions'](_0x12321b){return N(this['editor'],!0x1,_0x12321b);}}class D extends _0x5543a6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f26c1){function _0x551308(_0x4a87d2){return _0x4a87d2['map'](_0x288cc1=>String['fromCharCode'](_0x288cc1))['join']('');}super(_0x1f26c1),this['result']='end',_0x1f26c1[_0x551308([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551308([0x76,0x69,0x65,0x77])][_0x551308([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x551308([0x61,0x75,0x74,0x6f]),_0x1f26c1[_0x551308([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x551308([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x551308([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x551308([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x551308([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 Ge(_0x4f7d74){return void 0x0!==_0x4f7d74['getRootsAttributes'];}async function N(_0x18d99a,_0x5b80b7,_0x3f8618){const _0x365662=_0x40a73e(_0x18d99a,w);_0x365662['plugins']['push'](p,D),_0x365662['rootsAttributes']=Ge(_0x18d99a)?_0x18d99a['getRootsAttributes']():void 0x0;const _0x1de26f=document['createDocumentFragment'](),_0x8758b3=_0x18d99a['config']['get']('trackChangesData')['editorCreator'],_0x2c36=await _0x8758b3(_0x365662,()=>function(_0x32db9f){const _0x10cb1c=document['createElement']('div');return _0x32db9f['appendChild'](_0x10cb1c),_0x10cb1c;}(_0x1de26f));!function(_0x5eef53,_0x2492f9){const _0x264143=_0x5eef53['model']['document']['getRootNames']()['reduce']((_0x412db5,_0x22e6d9)=>(_0x412db5[_0x22e6d9]=_0x5eef53['data']['get']({'rootName':_0x22e6d9}),_0x412db5),{}),_0x1156c5=_0x5eef53['plugins']['get']('Users')['users']['map'](_0x531e2d=>({'id':_0x531e2d['id'],'name':_0x531e2d['name']})),_0x1a87ea=_0x5eef53['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x37036e=_0x5eef53['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5c6756=_0x2492f9['plugins']['get']('Users'),_0x59d15e=_0x2492f9['plugins']['get']('TrackChangesEditing'),_0x52f659=_0x2492f9['plugins']['get']('CommentsRepository');for(const _0x19f39d of _0x52f659['getCommentThreads']())_0x19f39d['remove']();for(const _0x12eaa0 of _0x1156c5)_0x5c6756['getUser'](_0x12eaa0['id'])||_0x5c6756['addUser'](_0x12eaa0);_0x5c6756['me']||_0x5c6756['useAnonymousUser']();for(const _0x3f038c of _0x37036e)_0x52f659['addCommentThread'](_0x3f038c);for(const _0x2ef83b of _0x1a87ea)_0x59d15e['addSuggestionData'](_0x2ef83b);_0x2492f9['data']['set'](_0x264143);}(_0x18d99a,_0x2c36),_0x2c36['execute'](_0x5b80b7?'acceptAllSuggestions':'discardAllSuggestions');const _0x2a78d2=Ge(_0x2c36)?_0x2c36['getFullData'](_0x3f8618):_0x2c36['data']['get'](_0x3f8618);return await _0x2c36['destroy'](),_0x2a78d2;}class Me extends _0x6ca1cc{['options'];constructor(_0x2b220c,_0x13bfac){super(_0x2b220c),this['options']=_0x13bfac,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'](_0x10228d,_0x31588e){if(!this['element'])return;const _0x1d2dc6=[];for(const [_0x55743c,_0x3861c0]of _0x10228d){const _0x52487f=document['createElement']('div');_0x52487f['setAttribute']('data-ck-root-name',_0x55743c),_0x52487f['className']=_0x3861c0['classes']+'\x20ck-track-changes-preview__root-container',_0x52487f['innerHTML']=_0x3861c0['content'],_0x1d2dc6['push'](_0x52487f);}_0x31588e(this['element'],_0x1d2dc6),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0xf75a64{constructor(_0x43c8d8){super(_0x43c8d8),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x20cdf9=this['editor'],_0xc0a7e4=_0x20cdf9['locale'],_0x2a6b51=_0x20cdf9['plugins']['get']('Dialog');let _0x5cf7c7;const _0x4e73bc=function(_0x426247){const _0x4ea259={};if('editables'in _0x426247['ui']['view']){for(const [_0x4282bd,_0x276d17]of Object['entries'](_0x426247['ui']['view']['editables']))_0x4ea259[_0x4282bd]=_0x276d17['element'];}else _0x4ea259[_0x426247['model']['document']['getRootNames']()[0x0]]=_0x426247['ui']['view']['editable']['element'];return _0x4ea259;}(_0x20cdf9),_0x3a7cc5=function(_0x11ed5e){let _0x29fd3a=0x0;for(const _0x2870cd of Object['values'](_0x11ed5e))_0x29fd3a=Math['max'](_0x29fd3a,_0x2870cd['getBoundingClientRect']()['width']);let _0x34a616=0x0;for(const _0x43a75d of Object['values'](_0x11ed5e))_0x34a616+=_0x43a75d['getBoundingClientRect']()['height'];const _0x290dda=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x1de592=Math['min'](_0x34a616,_0x290dda);return{'width':_0x29fd3a,'height':_0x1de592};}(_0x4e73bc);_0x2a6b51['show']({'id':'finalContentPreview','title':c(_0xc0a7e4,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0xc0a7e4,{'dialogRects':_0x3a7cc5}),'onHide':()=>{_0x5cf7c7['detachFromDom']();},'onShow':()=>{_0x20cdf9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x121607=>{const _0x54501c=this['_standarizeRootsData'](_0x121607,_0x20cdf9,_0x4e73bc);_0x2a6b51['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x54501c,_0x20cdf9['config']['get']('trackChanges.preview.renderFunction'));}),_0x5cf7c7=new _0x1f385a(_0xc0a7e4,[_0x2a6b51['view']]),_0x5cf7c7['attachToDom'](),_0x5cf7c7['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x20cdf9['once']('destroy',()=>{_0x5cf7c7['detachFromDom']();});const _0x361c8d=_0x2a6b51['view']['headerView']['class'];_0x2a6b51['view']['headerView']['class']=_0x361c8d?_0x361c8d+'\x20ck-reset_all':'ck-reset_all',_0x2a6b51['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x2a6b51['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cc109=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x46e9b6=_0x2cc109['previewMode'],_0x1a51ed={};if('$labels'===_0x46e9b6){for(const _0x597d25 of _0x2cc109['getMergeFieldsIds']())_0x1a51ed[_0x597d25]=_0x2cc109['getLabel'](_0x597d25)||_0x597d25;}else{const _0x1c169c='$defaultValues'===_0x46e9b6?_0x2cc109['getDefaultValues']():_0x2cc109['getDataSetValues'](_0x46e9b6,!0x0);for(const _0xa0e4d7 of Object['entries'](_0x1c169c)){const [_0x3f7100,_0x183674]=_0xa0e4d7;_0x1a51ed[_0x3f7100]=null!==_0x183674?_0x183674:_0x2cc109['getLabel'](_0x3f7100)||_0x3f7100;}}return{'mergeFieldsData':_0x1a51ed};}['_standarizeRootsData'](_0x325e9e,_0x59246,_0x5d00c4){let _0x4fe1fa;if('string'==typeof _0x325e9e){const _0x543654=_0x59246['model']['document']['getRootNames']()[0x0];_0x4fe1fa={[_0x543654]:_0x325e9e};}else _0x4fe1fa=_0x325e9e;const _0x543808=this['_fixMediaEmbeds'](_0x4fe1fa,_0x59246),_0x47011a=function(_0x546ef1,_0x2bdb68){for(const [_0x2e6c4b,_0x1d02c3]of _0x546ef1)_0x1d02c3['classes']=_0x2bdb68[_0x2e6c4b]['classList']['value']['replace']('ck-focused','');return _0x546ef1;}(this['_sortRoots'](_0x59246)['reduce']((_0x4d0361,_0x2a1628)=>(_0x4d0361['push']([_0x2a1628,{'content':_0x543808[_0x2a1628],'classes':''}]),_0x4d0361),[]),_0x5d00c4);return _0x47011a;}['_fixMediaEmbeds'](_0x5a839d,_0x4aaa0a){if(!_0x4aaa0a['plugins']['has']('MediaEmbedEditing'))return _0x5a839d;const _0x5c9469=_0x4aaa0a['plugins']['get']('MediaEmbedEditing');for(const [_0x30cdae,_0x574d1f]of Object['entries'](_0x5a839d)){const _0x3df166=document['createElement']('div');_0x3df166['innerHTML']=_0x574d1f,(_0x3df166['querySelectorAll']('figure.media')['forEach'](_0x331c26=>{const _0x15dc60=_0x331c26['querySelector']('oembed');if(_0x15dc60){const _0x3b8329=_0x15dc60['getAttribute']('url');if(_0x3b8329){const _0x29ef54=_0x5c9469['registry']['getMediaViewElement'](new _0x45bb38(_0x4aaa0a['editing']['view']['document']),_0x3b8329,{'elementName':'','renderForEditingView':!0x0}),_0x10dd77=document['createElement']('div');_0x10dd77['classList']['add']('ck-media__wrapper'),_0x29ef54['render'](_0x10dd77,_0x4aaa0a['editing']['view']['domConverter']),_0x15dc60['replaceWith'](_0x10dd77);}}}),_0x5a839d[_0x30cdae]=_0x3df166['innerHTML']);}return _0x5a839d;}['_sortRoots'](_0x1a00ed){if(!function(_0x58fa87){return void 0x0!==_0x58fa87['getRootsAttributes'];}(_0x1a00ed))return _0x1a00ed['model']['document']['getRootNames']();const _0x3dc741=[],_0xce894d=new Map();for(const _0x4b702b of _0x1a00ed['model']['document']['getRootNames']()){const _0x3690a7=_0x1a00ed['editing']['view']['getDomRoot'](_0x4b702b)['getClientRects']()['item'](0x0);_0x3dc741['push'](_0x4b702b),_0xce894d['set'](_0x4b702b,_0x3690a7);}return _0x3dc741['sort']((_0x5f5b1e,_0x39b421)=>{const _0x5c51fc=_0xce894d['get'](_0x5f5b1e),_0x498fb5=_0xce894d['get'](_0x39b421);return _0x5c51fc['y']-_0x498fb5['y']||_0x5c51fc['x']-_0x498fb5['x'];}),_0x3dc741;}}class te extends _0x5543a6{static get['requires'](){return[T,_0x1ea185];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x485b7f){super(_0x485b7f),_0x485b7f['commands']['add']('previewFinalContent',new re(this['editor'])),_0x485b7f['config']['define']('trackChanges.preview.renderFunction',(_0x223e2a,_0x28fd73)=>{for(const _0x22978f of _0x28fd73)_0x223e2a['appendChild'](_0x22978f);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as _0x4ca0ae,Plugin as _0x51b88f,PendingActions as _0x37d5c4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x463d5f,ObservableMixin as _0x55f0de,uid as _0x35f42a,priorities as _0x46c4ae,insertToPriorityArray as _0x23eed4,logWarning as _0x1a52d0,getEnvKeystrokeText as _0x5733f7,FocusTracker as _0x5392ce,KeystrokeHandler as _0x37db49,Collection as _0xef626d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{IconCheck as _0x1db0e4,IconCancel as _0x587379,IconTrackChanges as _0x4c3e2c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{normalizeColorOptions as _0x4948c5,View as _0x14eefd,ViewCollection as _0x53758e,FocusCycler as _0x627706,ViewModel as _0x311582,createDropdown as _0x599048,SplitButtonView as _0x404227,addListToDropdown as _0x2bc843,MenuBarMenuView as _0x24f759,MenuBarMenuListView as _0x5b5e20,ListSeparatorView as _0x3aff66,MenuBarMenuListItemView as _0x254a95,MenuBarMenuListItemButtonView as _0x31a8c8,BodyCollection as _0x1c6ac0,Dialog as _0x3ce0b3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x122585,hashObject as _0x248bd8,surroundingMarkersDetector as _0x4b370b,FOCUS_ANNOTATION_KEYSTROKE as _0xf69f75,AriaDescriptionView as _0x36005b,setupThreadKeyboardNavigation as _0x3f0856,trimHtml as ti,UserView as _0x2098f0,LateFocusButtonView as _0xaa86d9,getDateTimeFormatter as _0x113b40,getAllMarkersDomElementsSorted as _0x301d97,sanitizeEditorConfig as _0x43abcc}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x447e49,LiveRange as _0x221782,LivePosition as _0x547df0,DowncastWriter as _0x4c4a9a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x9f7b0f,toWidget as _0xd1b277}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x538e14,set as _0x419966,isEqual as _0x1bd547,unset as _0x4716ab,omit as Ft}from'es-toolkit/compat';import{Delete as _0x50b909,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x263acd}from'@ckeditor/ckeditor5-enter/dist/index.js';import{ClipboardPipeline as _0x55982e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';class B extends _0x4ca0ae{['_enabledCommands'];constructor(_0x43701f,_0x2704cb){super(_0x43701f),this['_enabledCommands']=_0x2704cb,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 _0x3e7691 of this['editor']['commands']['commands']())_0x3e7691['affectsData']&&!this['_enabledCommands']['has'](_0x3e7691)&&_0x3e7691['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x26b068 of this['editor']['commands']['commands']())_0x26b068['affectsData']&&!this['_enabledCommands']['has'](_0x26b068)&&_0x26b068['clearForceDisabled']('TrackChangesCommand');}}class O extends _0x4ca0ae{['_suggestions'];constructor(_0x12aa2d,_0x33222b){super(_0x12aa2d),this['_suggestions']=_0x33222b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x36732b){const _0x47725c=this['_suggestions']['get'](_0x36732b);if(!_0x47725c)throw new _0x463d5f('track-changes-accept-suggestion-not-found',this);const _0x168a32=_0x47725c['getRanges']();this['editor']['model']['canEditAt'](_0x168a32)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x47725c);}}class R extends _0x4ca0ae{['_suggestions'];constructor(_0x5d41d1,_0x53666e){super(_0x5d41d1),this['_suggestions']=_0x53666e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x444c1d){const _0x1ef8ba=this['_suggestions']['get'](_0x444c1d);if(!_0x1ef8ba)throw new _0x463d5f('track-changes-discard-suggestion-not-found',this);const _0x53e674=_0x1ef8ba['getRanges']();this['editor']['model']['canEditAt'](_0x53e674)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x1ef8ba);}}function ls(_0xdd1544,_0xaa66ca){let _0x3e091b='';return _0x3e091b+=_0xdd1544['split']('*')['map']((_0x45619a,_0x352886)=>_0x352886%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x45619a)+'</span>':nn(_0x45619a))['join'](''),_0xaa66ca&&(_0x3e091b+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xaa66ca['value']+'\x22\x20title=\x22'+_0xaa66ca['title']+'\x22></span>'),_0x3e091b;}function nn(_0xc6d32c){const _0x314c40=document['createElement']('span');return _0x314c40['innerText']=_0xc6d32c,_0x314c40['innerHTML'];}function ts(_0x4492d2){return _0x4492d2['sort']((_0x1edb08,_0x254680)=>'deletion'==_0x1edb08['type']&&'deletion'!=_0x254680['type']?-0x1:'deletion'!=_0x1edb08['type']&&'deletion'==_0x254680['type']?0x1:0x0);}function to(_0x8cec1b,_0x30d079){let _0x31711f,_0xf0d4c3=0x0;const _0x1f5ed8=[],_0x4709b2=_0x30d079['schema'];for(;_0xf0d4c3<_0x8cec1b['length'];){const _0x581648=_0x8cec1b[_0xf0d4c3],_0x1cee86=_0x8cec1b[_0xf0d4c3+0x1];_0x31711f||(_0x31711f=_0x30d079['createPositionBefore'](_0x581648)),on(_0x30d079,_0x581648,_0x1cee86)||(_0x1f5ed8['push'](_0x30d079['createRange'](_0x31711f,_0x4709b2['isObject'](_0x581648)?_0x30d079['createPositionAfter'](_0x581648):_0x30d079['createPositionAt'](_0x581648,'end'))),_0x31711f=null),_0xf0d4c3++;}return _0x1f5ed8;}function on(_0x1c9019,_0x4bf28a,_0x263df4){if(!_0x263df4)return!0x1;const _0x22b3e4=_0x1c9019['createPositionAfter'](_0x4bf28a),_0x58c2b1=_0x1c9019['createPositionBefore'](_0x263df4);return _0x22b3e4['isTouching'](_0x58c2b1);}function rs(_0x1652ab,_0x4e1d20,_0x439402){for(;_0x439402['length'];){const _0x33b8ee=_0x439402['splice'](0x0,0x64);_0x1652ab['change'](()=>{for(const _0x23ce8b of _0x33b8ee)_0x23ce8b['isInContent']&&_0x4e1d20['execute'](_0x23ce8b['id']);});}}class x extends _0x4ca0ae{['_command'];['_suggestions'];constructor(_0x2079bb,_0x366a52,_0x2d8dcb){super(_0x2079bb),this['_command']=_0x366a52,this['_suggestions']=_0x2d8dcb,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1b6e8c=Array['from'](this['_suggestions']['values']())['some'](_0x4d9d6f=>_0x4d9d6f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1b6e8c;}['execute'](){const _0x246d63=ts(Array['from'](this['_suggestions']['values']()));for(const _0x53d0f7 of _0x246d63){const _0x273a96=_0x53d0f7['getRanges']();if(!this['editor']['model']['canEditAt'](_0x273a96))return;}rs(this['editor']['model'],this['_command'],_0x246d63);}}class E extends _0x4ca0ae{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x217c5f,_0x5cb216,_0x1f16b8){super(_0x217c5f),this['_command']=_0x5cb216,this['_suggestions']=_0x1f16b8,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3e5c2f=this['editor']['model']['document']['selection'],_0x5908a3=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x267337,_0x2aac80){const _0x335ca2=Array['from'](_0x267337['getRanges']()),_0x3c6a05=new Set();for(const _0x5df74f of _0x2aac80)if(_0x5df74f['isInContent']){for(const _0x589c92 of _0x335ca2)for(const _0x16ce2d of _0x5df74f['getRanges']())(_0x589c92['isIntersecting'](_0x16ce2d)||_0x267337['isCollapsed']&&!_0x5df74f['isMultiRange']&&_0x5df74f['next']&&_0x16ce2d['end']['isTouching'](_0x589c92['start']))&&_0x3c6a05['add'](_0x5df74f);}return _0x3c6a05;}(_0x3e5c2f,_0x5908a3),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x18c120=ts(Array['from'](this['_selectedSuggestions']));for(const _0x1625d3 of _0x18c120){const _0x3aed42=_0x1625d3['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3aed42))return;}rs(this['editor']['model'],this['_command'],_0x18c120);}}class o extends/* #__PURE__ -- @preserve */
24
+ _0x55f0de(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x23ab60,_0x87c247){super(),this['id']=_0x87c247['id'],this['type']=_0x87c247['type'],this['subType']=_0x87c247['subType']||null,this['author']=_0x87c247['author'],this['creator']=_0x87c247['creator']||_0x87c247['author'],this['isExternal']=Boolean(_0x87c247['attributes']&&_0x87c247['attributes']['@external']),this['data']=null,this['_model']=_0x23ab60,this['_onAccept']=_0x87c247['onAccept'],this['_onDiscard']=_0x87c247['onDiscard'],this['_onAttributesChange']=_0x87c247['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x87c247['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 _0x119b38=this;for(;_0x119b38['previous'];)_0x119b38=_0x119b38['previous'];return _0x119b38;}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'](_0x2f5e17){this['_markerNames']['add'](_0x2f5e17);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2b0635=>this['_model']['markers']['get'](_0x2b0635))['filter'](_0x4e6254=>_0x4e6254);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4c5a34=>{for(const _0x3de9a1 of this['getMarkers']())_0x4c5a34['removeMarker'](_0x3de9a1);}),this['_markerNames']['clear']();}['removeMarker'](_0x39be33){this['_model']['change'](_0x1d3527=>{_0x1d3527['removeMarker'](_0x39be33);}),this['_markerNames']['delete'](_0x39be33);}['addRange'](_0x14f4e1){const _0x4552fe='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+o['getMultiRangeId']();this['addMarkerName'](_0x4552fe),this['_model']['change'](_0x310e2f=>{_0x310e2f['addMarker'](_0x4552fe,{'range':_0x14f4e1,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0xc77965){for(const _0x2911ac of this['getRanges']())if(_0x2911ac['isIntersecting'](_0xc77965))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x3bf655=>_0x3bf655['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4ce1ab,_0x15194b)=>[..._0x4ce1ab,..._0x15194b['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x433450=this['getRanges']();if(0x1!=_0x433450['length'])return null;const _0x323de0=_0x433450[0x0],_0x18f392=_0x323de0['start']['nodeAfter'],_0x3ddf24=_0x323de0['end']['nodeBefore'];return _0x18f392 instanceof _0x447e49?_0x18f392!=_0x3ddf24?null:_0x18f392: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 _0x60fc71=[];let _0x1a3f0c=this['head'];for(;_0x1a3f0c;)_0x60fc71['push'](_0x1a3f0c),_0x1a3f0c=_0x1a3f0c['next'];return _0x60fc71;}['setAttribute'](_0x3b7566,_0x9e6779){const _0x1e4f53=_0x538e14(this['attributes']);_0x419966(_0x1e4f53,_0x3b7566,_0x9e6779),_0x1bd547(_0x1e4f53,this['attributes'])||(this['attributes']=_0x1e4f53,this['_onAttributesChange'](_0x1e4f53));}['removeAttribute'](_0x4b3a65){const _0xb1b948=_0x538e14(this['attributes']);_0x4716ab(_0xb1b948,_0x4b3a65),_0x1bd547(_0xb1b948,this['attributes'])||(this['attributes']=_0xb1b948,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 _0x35f42a()['substr'](0x1,0x5);}}function c(_0x267d04,_0x20d2be,_0x3ea4d1){const _0x5d2150=_0x267d04['t'],t=_0x267d04['t'];switch(_0x20d2be){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',_0x3ea4d1);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3ea4d1);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3ea4d1);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3ea4d1);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3ea4d1);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',_0x3ea4d1);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3ea4d1);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',_0x3ea4d1);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3ea4d1);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3ea4d1);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3ea4d1);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3ea4d1);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3ea4d1);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3ea4d1);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3ea4d1);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3ea4d1);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3ea4d1);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3ea4d1);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3ea4d1);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3ea4d1);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3ea4d1);case'*Set\x20table\x20type:*\x20%0':return t('*Set\x20table\x20type:*\x20%0',_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_CONTENT_TABLE':return t({'string':'content\x20table','plural':'%0\x20content\x20tables','id':'ELEMENT_CONTENT_TABLE'},_0x3ea4d1);case'ELEMENT_LAYOUT_TABLE':return t({'string':'layout\x20table','plural':'%0\x20layout\x20tables','id':'ELEMENT_LAYOUT_TABLE'},_0x3ea4d1);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3ea4d1);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3ea4d1);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3ea4d1);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3ea4d1);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3ea4d1);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3ea4d1);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3ea4d1);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3ea4d1);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'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3ea4d1);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3ea4d1);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'},_0x3ea4d1);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3ea4d1);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 _0x5d2150({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3ea4d1);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x5d2150({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3ea4d1);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3ea4d1);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'},_0x3ea4d1);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'},_0x3ea4d1);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'},_0x3ea4d1);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x20d2be;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x5dafc0,_0x29cb7a){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x5dafc0,this['_locale']=_0x29cb7a;}['getDescriptions'](_0x5cd6b6){const _0x3c3a38=[],_0x545041=new Set(),_0x34bb00=new Set();for(let _0x6b430=0x0;_0x6b430<_0x5cd6b6['length'];_0x6b430++){const _0x46ff00=_0x5cd6b6[_0x6b430];if(!_0x46ff00['isInContent'])continue;const _0x50a12f=this['_handleCustomCallbackDescription'](_0x46ff00);if(_0x50a12f){if(null!=_0x46ff00['subType']){if(_0x545041['has'](_0x46ff00['subType']))continue;_0x545041['add'](_0x46ff00['subType']);}_0x3c3a38['push'](_0x50a12f);}else{if('attribute'!=_0x46ff00['type'])'insertion'!=_0x46ff00['type']&&'deletion'!=_0x46ff00['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3c3a38,_0x46ff00,_0x5cd6b6[_0x6b430+0x1]);else{const _0x1ed00e=_0x46ff00['data']['key'];if(_0x34bb00['has'](_0x1ed00e))continue;_0x34bb00['add'](_0x46ff00['data']['key']),_0x1ed00e==u?this['_handleRenameSuggestionDescription'](_0x3c3a38,_0x46ff00):this['_handleAttributeSuggestionDescription'](_0x3c3a38,_0x46ff00);}}}return this['_resolveDescriptionItems'](_0x3c3a38);}['registerDescriptionCallback'](_0x29f579){this['_customCallbacks']['push'](_0x29f579);}['registerElementLabel'](_0x28285d,_0x4403e7,_0x567217=_0x46c4ae['normal']){'function'==typeof _0x28285d?_0x23eed4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x28285d,'label':_0x4403e7,'priority':_0x567217}):this['_itemLabels']['set'](_0x28285d,_0x4403e7);}['registerAttributeLabel'](_0x1a25f7,_0x219efc){this['_attributeLabels']['set'](_0x1a25f7,_0x219efc);}['getItemLabel'](_0xae7226,_0x224ec5=0x1){let _0x1120d1;for(const _0x5f4204 of this['_itemLabelsCallbacks'])if(_0x5f4204['matchingCallback'](_0xae7226)){_0x1120d1=_0x5f4204['label'];break;}return _0x1120d1||(_0x1120d1=this['_itemLabels']['get'](_0xae7226['name'])),_0x1120d1?_0x1120d1(_0x224ec5):0x1!==_0x224ec5?_0x224ec5+'\x20'+_0xae7226['name']+'s':''+_0xae7226['name'];}['_addDescriptionItems'](_0x4f7f64,_0x2c5043){const _0x5f5724=_0x2c5043['getFirstRange']()['getWalker'](),_0x2c6843='insertion'==_0x2c5043['type']?'add':'remove';for(const _0xe19bdc of _0x5f5724){const _0x3fd4bd=_0xe19bdc['item'],_0x5040e1=_0x4f7f64[_0x4f7f64['length']-0x1];if(_0x3fd4bd['is']('$textProxy'))_0x5040e1&&_0x5040e1['type']['indexOf']('Container')>-0x1&&_0x4f7f64['pop'](),_0x5040e1&&'text'==_0x5040e1['type']?_0x5040e1[_0x2c6843]+=_0x3fd4bd['data']:_0x4f7f64['push']({'type':'text','add':'add'==_0x2c6843?_0x3fd4bd['data']:'','remove':'remove'==_0x2c6843?_0x3fd4bd['data']:''});else{if(this['_schema']['isObject'](_0x3fd4bd)){const _0x58d7eb=_0x3fd4bd;if(_0x5040e1&&_0x5040e1['type']['indexOf']('Container')>-0x1&&_0x4f7f64['pop'](),'elementEnd'==_0xe19bdc['type'])continue;_0x5040e1&&_0x5040e1['type']==_0x2c6843+'Object'&&_0x5040e1['element']['name']==_0x58d7eb['name']?_0x5040e1['quantity']++:_0x4f7f64['push']({'type':_0x2c6843+'Object','element':_0x58d7eb,'quantity':0x1}),_0x5f5724['skip'](_0x4d7e2b=>!('elementEnd'==_0x4d7e2b['type']&&_0x4d7e2b['item']==_0x3fd4bd));}else{if(this['_schema']['checkChild'](_0x3fd4bd,'$text')||_0x3fd4bd['is']('element','softBreak')){const _0x360bfe=_0x3fd4bd;if('add'==_0x2c6843&&'elementStart'==_0xe19bdc['type']||'remove'==_0x2c6843&&'elementEnd'==_0xe19bdc['type'])continue;if(_0x5040e1&&-0x1==_0x5040e1['type']['indexOf']('Container')){'text'==_0x5040e1['type']&&(_0x5040e1[_0x2c6843]+='\x0a');continue;}let _0x4e61f7;if(_0x4e61f7='add'==_0x2c6843?_0x360bfe['nextSibling']&&!this['_schema']['isObject'](_0x360bfe['nextSibling'])?_0x360bfe['nextSibling']:null:_0x360bfe['previousSibling']&&!this['_schema']['isObject'](_0x360bfe['previousSibling'])?_0x360bfe['previousSibling']:null,_0x360bfe['isEmpty']||_0x4e61f7&&_0x4e61f7['isEmpty']){const _0x383395=_0x4e61f7&&_0x4e61f7['isEmpty']?_0x4e61f7:_0x360bfe;_0x5040e1&&_0x5040e1['type']==_0x2c6843+'EmptyContainer'&&_0x5040e1['element']['name']==_0x383395['name']?_0x5040e1['quantity']++:_0x4f7f64['push']({'type':_0x2c6843+'EmptyContainer','element':_0x383395,'quantity':0x1});}else _0x4f7f64['push']({'type':_0x2c6843+'Container','element':_0x360bfe});}}}}}['_resolveDescriptionItems'](_0x47a0ea){const _0x44da02=this['_locale'],_0x48ad80=[],_0x3f9b24=[],_0x13fbd4=[];for(const _0x1a3696 of _0x47a0ea)switch(_0x1a3696['type']){case'text':if(_0x1a3696['add']=_0x1a3696['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x1a3696['remove']=_0x1a3696['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x1a3696['add']&&''!=_0x1a3696['remove']){_0x48ad80['push']({'type':'replace','content':c(_0x44da02,'REPLACE_TEXT',['\x22'+_0x1a3696['remove']+'\x22','\x22'+_0x1a3696['add']+'\x22'])});continue;}if(null!=_0x1a3696['add']['match'](/^ +$/)){_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0',c(_0x44da02,'ELEMENT_SPACE',_0x1a3696['add']['length']))});continue;}if(null!=_0x1a3696['remove']['match'](/^ +$/)){_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0',c(_0x44da02,'ELEMENT_SPACE',_0x1a3696['remove']['length']))});continue;}if(''!=_0x1a3696['add']){_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0','\x22'+_0x1a3696['add']+'\x22')});continue;}_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0','\x22'+_0x1a3696['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Insert:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Remove:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'addContainer':_0x48ad80['push']({'type':'insertion','content':c(_0x44da02,'*Split:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'removeContainer':_0x48ad80['push']({'type':'deletion','content':c(_0x44da02,'*Merge:*\x20%0',this['getItemLabel'](_0x1a3696['element'],_0x1a3696['quantity']))});continue;case'addFormat':_0x3f9b24['push'](_0x1a3696['key']);continue;case'removeFormat':_0x13fbd4['push'](_0x1a3696['key']);continue;default:_0x48ad80['push'](_0x1a3696);}if(_0x3f9b24['length']){const _0x2dd925=_0x3f9b24['map'](_0x2cefd6=>this['_attributeLabels']['has'](_0x2cefd6)?this['_attributeLabels']['get'](_0x2cefd6):_0x2cefd6)['join'](',\x20');_0x48ad80['push']({'type':'format','content':c(this['_locale'],'*Set\x20format:*\x20%0',_0x2dd925)});}if(_0x13fbd4['length']){const _0x2448ce=_0x13fbd4['map'](_0xd9417a=>this['_attributeLabels']['has'](_0xd9417a)?this['_attributeLabels']['get'](_0xd9417a):_0xd9417a)['join'](',\x20');_0x48ad80['push']({'type':'format','content':c(this['_locale'],'*Remove\x20format:*\x20%0',_0x2448ce)});}return _0x48ad80;}['_handleCustomCallbackDescription'](_0x25b1b2){for(const _0x16d142 of this['_customCallbacks']){const _0x58e610=_0x16d142(_0x25b1b2);if(_0x58e610&&'type'in _0x58e610)return _0x58e610;}}['_handleAttributeSuggestionDescription'](_0xd1336a,_0x17e5e0){const _0x726518=_0x17e5e0['data'],_0x1599cc=void 0x0===_0x726518['newValue']?'removeFormat':'addFormat';_0xd1336a['push']({'type':_0x1599cc,'key':_0x726518['key']});}['_handleRenameSuggestionDescription'](_0x56b825,_0x53ebff){_0x56b825['push']({'type':'format','content':c(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x53ebff['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1fd228,_0x4a4315,_0x70ec09){if(this['_addDescriptionItems'](_0x1fd228,_0x4a4315),_0x70ec09&&_0x70ec09['getFirstRange']()&&!_0x4a4315['getFirstRange']()['end']['isEqual'](_0x70ec09['getFirstRange']()['start'])){const _0x57841d=_0x1fd228[_0x1fd228['length']-0x1],_0x38ae1e='insertion'==_0x4a4315['type']?'add':'remove';_0x57841d&&'text'==_0x57841d['type']&&(_0x57841d[_0x38ae1e]+='\x0a');}}}class U extends _0x51b88f{['afterInit'](){const _0x43aa94=this['editor'],_0x4974c1=_0x43aa94['plugins']['get']('TrackChangesEditing');_0x43aa94['commands']['get']('showAIAssistant')&&_0x4974c1['enableCommand']('showAIAssistant');}}class V extends _0x51b88f{['afterInit'](){const _0x148947=this['editor'],_0x485139=_0x148947['locale'];if(!_0x148947['plugins']['has']('AlignmentEditing'))return;const _0x56a8eb=_0x148947['plugins']['get']('TrackChangesEditing');_0x56a8eb['enableDefaultAttributesIntegration']('alignment'),_0x56a8eb['registerBlockAttribute']('alignment'),_0x56a8eb['descriptionFactory']['registerAttributeLabel']('alignment',c(_0x485139,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46827a=this['editor'],_0x6cb84c=_0x46827a['locale'];_0x46827a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2a98ec=>{if('formatBlock'!=_0x2a98ec['type'])return;const {data:_0x49bbc4}=_0x2a98ec;if(_0x49bbc4&&'alignment'==_0x49bbc4['commandName']){const _0x1cb24f=_0x49bbc4['commandParams'][0x0]['value'];return{'type':'format','content':c(_0x6cb84c,'*Format:*\x20%0',function(_0x1938be){switch(_0x1938be){case'left':return c(_0x6cb84c,'FORMAT_ALIGN_TO_LEFT');case'right':return c(_0x6cb84c,'FORMAT_ALIGN_TO_RIGHT');case'center':return c(_0x6cb84c,'FORMAT_ALIGN_TO_CENTER');case'justify':return c(_0x6cb84c,'FORMAT_JUSTIFY_TEXT');}}(_0x1cb24f))};}});}}const Zt=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class F extends _0x51b88f{['afterInit'](){const _0x4a412d=this['editor'],_0x57e4f2=_0x4a412d['plugins']['get']('TrackChangesEditing'),_0x4cf04a=_0x4a412d['locale'];for(const _0x37f60b of Zt){if(!_0x4a412d['plugins']['has'](_0x37f60b))continue;const _0xf836e4=_0x37f60b['slice'](0x0,-0x7)['toLowerCase'](),_0x5b73cc='FORMAT_'+_0xf836e4['toUpperCase']();_0x57e4f2['enableDefaultAttributesIntegration'](_0xf836e4),_0x57e4f2['registerInlineAttribute'](_0xf836e4),_0x57e4f2['descriptionFactory']['registerAttributeLabel'](_0xf836e4,c(_0x4cf04a,_0x5b73cc));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xe68a37=this['editor'],_0x1c9054=_0xe68a37['locale'],_0x4c8aed=_0xe68a37['plugins']['get']('TrackChangesEditing');function _0x385fae(_0x1b9545,_0x25b7d6){_0x4c8aed['descriptionFactory']['registerDescriptionCallback'](_0x2a2ccc=>{if('formatInline'!=_0x2a2ccc['type'])return;const {data:_0x30fc78}=_0x2a2ccc;return _0x30fc78&&_0x30fc78['commandName']===_0x1b9545?_0x30fc78['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1c9054,'*Format:*\x20%0',_0x25b7d6)}:{'type':'format','content':c(_0x1c9054,'*Remove\x20format:*\x20%0',_0x25b7d6)}:void 0x0;});}_0x385fae('bold',c(_0x1c9054,'FORMAT_BOLD')),_0x385fae('italic',c(_0x1c9054,'FORMAT_ITALIC')),_0x385fae('underline',c(_0x1c9054,'FORMAT_UNDERLINE')),_0x385fae('code',c(_0x1c9054,'FORMAT_CODE')),_0x385fae('strikethrough',c(_0x1c9054,'FORMAT_STRIKETHROUGH')),_0x385fae('subscript',c(_0x1c9054,'FORMAT_SUBSCRIPT')),_0x385fae('superscript',c(_0x1c9054,'FORMAT_SUPERSCRIPT'));}}class G extends _0x51b88f{['afterInit'](){const _0x5c89c6=this['editor'],_0x2607a5=_0x5c89c6['locale'];if(!_0x5c89c6['plugins']['has']('BlockQuoteEditing'))return;const _0x599b52=_0x5c89c6['plugins']['get']('TrackChangesEditing'),_0xdc849a=this['editor']['commands']['get']('blockQuote');_0x599b52['enableCommand']('blockQuote',(_0x138b8b,_0x5eaeb9={})=>{const _0x336a8b=this['editor']['model']['document']['selection'],_0x43136b=_0x5eaeb9&&void 0x0!==_0x5eaeb9['forceValue']?_0x5eaeb9['forceValue']:!_0xdc849a['value'];let _0x179120=[];if(_0x43136b){const _0x48bc3a=Array['from'](_0x336a8b['getSelectedBlocks']())['filter'](_0xa5eb08=>oo(_0xa5eb08)||function(_0x452367,_0x47c263){const _0xdd76d7=_0x47c263['checkChild'](_0x452367['parent'],'blockQuote'),_0x5669ad=_0x47c263['checkChild'](['$root','blockQuote'],_0x452367);return _0xdd76d7&&_0x5669ad;}(_0xa5eb08,this['editor']['model']['schema']));_0x179120=to(_0x48bc3a,_0x5c89c6['model']);}else{const _0x420b0f=Array['from'](_0x336a8b['getSelectedBlocks']())['filter'](_0xb46b7a=>oo(_0xb46b7a));_0x179120=to(_0x420b0f,_0x5c89c6['model']);}_0x5c89c6['model']['change'](()=>{for(const _0x2e0608 of _0x179120)_0x599b52['markBlockFormat'](_0x2e0608,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x43136b}]});});}),_0x599b52['descriptionFactory']['registerDescriptionCallback'](_0x10f004=>{const {data:_0x30aaed}=_0x10f004;if(_0x30aaed&&'blockQuote'==_0x30aaed['commandName']){const _0x3d5700=c(_0x2607a5,'ELEMENT_BLOCK_QUOTE');return _0x30aaed['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x2607a5,'*Set\x20format:*\x20%0',_0x3d5700)}:{'type':'format','content':c(_0x2607a5,'*Remove\x20format:*\x20%0',_0x3d5700)};}});}}function oo(_0xb0325b){return'blockQuote'==_0xb0325b['parent']['name'];}class L extends _0x51b88f{['afterInit'](){const _0x88226d=this['editor'],_0x288c64=_0x88226d['locale'],_0x2644c7=_0x88226d['plugins']['get']('TrackChangesEditing');_0x88226d['plugins']['has']('BookmarkEditing')&&(_0x2644c7['enableCommand']('insertBookmark'),_0x2644c7['enableDefaultAttributesIntegration']('updateBookmark'),_0x2644c7['registerBlockAttribute']('bookmarkId'),_0x2644c7['descriptionFactory']['registerDescriptionCallback'](_0x20c484=>{if('insertion'!=_0x20c484['type']&&'deletion'!=_0x20c484['type']&&'attribute'!=_0x20c484['type'])return;const _0x584a71=_0x20c484['getContainedElement']();if(null==_0x584a71)return;if(!_0x584a71['is']('element','bookmark'))return;const _0x2ec564=_0x584a71['getAttribute']('bookmarkId');if('insertion'==_0x20c484['type'])return{'type':'insertion','content':c(_0x288c64,'*Insert:*\x20%0','\x22'+_0x2ec564+'\x22\x20'+c(_0x288c64,'ELEMENT_BOOKMARK'))};if('deletion'==_0x20c484['type'])return{'type':'deletion','content':c(_0x288c64,'*Remove:*\x20%0','\x22'+_0x2ec564+'\x22\x20'+c(_0x288c64,'ELEMENT_BOOKMARK'))};const {data:_0xb9b592}=_0x20c484;if(!_0xb9b592||'bookmarkId'!=_0xb9b592['key'])return;return{'type':'format','content':c(_0x288c64,'*Set\x20bookmark:*\x20%0','\x22'+_0xb9b592['newValue']+'\x22')};}));}}class J extends _0x51b88f{['afterInit'](){const _0x18f338=this['editor'];_0x18f338['plugins']['has']('CaseChange')&&(_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x18f338['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class K extends _0x51b88f{['afterInit'](){const _0x5320bc=this['editor'];_0x5320bc['commands']['get']('ckbox')&&_0x5320bc['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class H extends _0x51b88f{['afterInit'](){const _0x198ab3=this['editor'];if(!_0x198ab3['plugins']['has']('CodeBlock'))return;const _0x3bf308=_0x198ab3['plugins']['get']('TrackChangesEditing'),_0x20c41e=_0x198ab3['locale'],_0x425030=_0x198ab3['config']['get']('codeBlock')['languages'],_0x2e368e=_0x198ab3['commands']['get']('codeBlock');_0x3bf308['enableCommand']('indentCodeBlock'),_0x3bf308['enableCommand']('outdentCodeBlock'),_0x3bf308['enableCommand']('codeBlock',(_0xb10ce7,_0x3df7ee={})=>{const _0x5cd1fc=_0x198ab3['model'],_0x5a94f7=_0x198ab3['model']['document']['selection'],_0x5a7204=_0x3df7ee&&void 0x0!==_0x3df7ee['forceValue']?_0x3df7ee['forceValue']:!_0x2e368e['value'];let _0x2671f2;_0x3df7ee['language']||(_0x3df7ee['language']=_0x425030[0x0]['language']),_0x2671f2=_0x5a7204?Array['from'](_0x5a94f7['getSelectedBlocks']())['filter'](_0x49815b=>eo(_0x49815b)||function(_0x4beda4,_0x5f1f63){if(_0x4beda4['is']('rootElement')||_0x5f1f63['isLimit'](_0x4beda4))return!0x1;return _0x5f1f63['checkChild'](_0x4beda4['parent'],'codeBlock');}(_0x49815b,_0x5cd1fc['schema'])):Array['from'](_0x5a94f7['getSelectedBlocks']())['filter'](_0x3e9fb5=>eo(_0x3e9fb5));const _0x1d1978=to(_0x2671f2,_0x5cd1fc);_0x5cd1fc['change'](()=>{for(const _0x49fcf3 of _0x1d1978)_0x3bf308['markBlockFormat'](_0x49fcf3,{'commandName':'codeBlock','commandParams':[{..._0x3df7ee,'forceValue':_0x5a7204}],'formatGroupId':'blockName'});});}),(_0x3bf308['descriptionFactory']['registerElementLabel']('codeBlock',_0x377995=>c(_0x20c41e,'ELEMENT_CODE_BLOCK',_0x377995)),_0x3bf308['descriptionFactory']['registerDescriptionCallback'](_0x36f3ef=>{if('formatBlock'!=_0x36f3ef['type'])return;const _0x1894b0=_0x20c41e['t'],{data:_0x25fb66}=_0x36f3ef;if(!_0x25fb66||'codeBlock'!=_0x25fb66['commandName'])return;const _0x5e53b1=_0x25fb66['commandParams'][0x0]['language'],_0x49f1ce=_0x1894b0(_0x425030['find'](_0x491d1f=>_0x491d1f['language']===_0x5e53b1)['label'])['toLowerCase']();return _0x25fb66['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x20c41e,'*Set\x20format:*\x20%0',c(_0x20c41e,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f1ce+')')}:{'type':'format','content':c(_0x20c41e,'*Remove\x20format:*\x20%0',c(_0x20c41e,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1ac51b){return'codeBlock'==_0x1ac51b['name'];}class q extends _0x51b88f{['afterInit'](){const _0x8d428e=this['editor'];if(!_0x8d428e['plugins']['has']('CommentsEditing'))return;_0x8d428e['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x538c92,_0x465043,_0x5896fb){const _0x3b3a15=[];for(const _0x3b59eb of _0x465043['getItems']())_0x3b59eb['hasAttribute'](_0x538c92)&&_0x3b3a15['push'](_0x5896fb['createRangeOn'](_0x3b59eb));return _0x3b3a15;}function Fe(_0x1e3d39,_0x2e2f19,{showActiveMarker:_0x379933=!0x0}={}){const _0x32493f=_0x1e3d39['plugins']['get']('TrackChangesEditing');return(_0x295e91,_0x48ad08,_0x2e7b13)=>{if(!_0x2e7b13['consumable']['test'](_0x48ad08['markerRange'],_0x295e91['name']))return;const _0x2fd182=_0x48ad08['markerRange']['getWalker'](),_0x84481b=_0x48ad08['markerRange']['start'],_0x4b264a=_0x1e3d39['model']['schema'];let _0x50bf64=null,_0x574ce6=null,_0xe90cd2=!0x1,_0x35ce37=!0x1;for(const _0x157b5d of _0x2fd182){const _0x149386=_0x157b5d['item'];_0xe90cd2=_0xe90cd2||_0x4b264a['isContent'](_0x149386);const _0x39ecb0=_0x2e7b13['mapper']['toViewElement'](_0x149386);if(_0x39ecb0&&_0x39ecb0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x157b5d['type']&&(_0x4b264a['isBlock'](_0x149386)&&!_0x4b264a['isLimit'](_0x149386)&&(_0x149386['nextSibling']||_0x84481b['isAtEnd']?_0x50bf64&&_0x50bf64['parent']==_0x149386||(_0x50bf64=_0x149386,_0x3e09d0(_0x157b5d['previousPosition']),_0x35ce37=!0x0):_0x574ce6=_0x574ce6||_0x157b5d['previousPosition']));}function _0x3e09d0(_0x3f0d4e){const {authorId:_0x21cf39}=_0x32493f['_splitMarkerName'](_0x48ad08['markerName']),_0x5749fb=_0x2e7b13['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2e2f19,'data-author-id':_0x21cf39}),_0x27057b=_0x2e7b13['mapper']['toViewPosition'](_0x3f0d4e);_0x379933&&_0x32493f['activeMarkers']['includes'](_0x48ad08['markerName'])&&_0x2e7b13['writer']['addClass']('ck-suggestion-marker--active',_0x5749fb),_0x2e7b13['writer']['insert'](_0x27057b,_0x5749fb),_0x2e7b13['mapper']['bindElementToMarker'](_0x5749fb,_0x48ad08['markerName']);}_0xe90cd2||_0x35ce37||!_0x574ce6||_0x3e09d0(_0x574ce6);};}class z extends _0x51b88f{static get['requires'](){return[_0x50b909];}['init'](){const _0x2fe837=this['editor'],_0x421747=_0x2fe837['plugins']['get']('TrackChangesEditing');_0x421747['enableCommand']('delete');const _0x5ef2be=_0x2fe837['commands']['get']('deleteForward');_0x421747['enableCommand']('deleteForward',(_0x3c354f,_0x2ebf0c={})=>{const _0x3cea25=_0x2fe837['model']['createSelection'](_0x2fe837['model']['document']['selection']);_0x3cea25['isCollapsed']&&_0x2fe837['model']['modifySelection'](_0x3cea25,{'direction':'forward','unit':_0x2ebf0c['unit']});const _0x26b2d0=_0x3cea25['getFirstRange'](),_0x10afdf=_0x221782['fromRange'](_0x26b2d0);let _0x10468c;_0x3c354f(_0x2ebf0c),_0x10468c='$graveyard'==_0x10afdf['root']['rootName']?_0x2fe837['model']['createRange'](_0x26b2d0['start']):_0x2fe837['model']['createRange'](_0x10afdf['start'],_0x10afdf['end']),_0x10afdf['detach'](),_0x2fe837['model']['enqueueChange'](_0x5ef2be['buffer']['batch'],_0x436fc1=>{_0x5ef2be['buffer']['lock'](),_0x436fc1['setSelection'](_0x436fc1['createRange'](_0x10468c['end'])),_0x5ef2be['buffer']['unlock']();});}),_0x2fe837['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',Fe(_0x2fe837,'merge'),{'priority':'high'}),_0x2fe837['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x90c761,_0x407334,_0x139353)=>{_0x139353['options']['showSuggestionHighlights']&&Fe(_0x2fe837,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x90c761,_0x407334,_0x139353);},{'priority':'high'}),_0x2fe837['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2d1711,_0x3d5169,_0x13a8f5)=>{const _0x53f6e0=_0x13a8f5['mapper']['markerNameToElements'](_0x3d5169['markerName']);if(_0x53f6e0){for(const _0x20ced7 of _0x53f6e0)_0x20ced7['is']('uiElement')&&(_0x13a8f5['mapper']['unbindElementFromMarkerName'](_0x20ced7,_0x3d5169['markerName']),_0x13a8f5['writer']['remove'](_0x20ced7));}},{'priority':'high'});}}class W extends _0x51b88f{['afterInit'](){const _0x16ea15=this['editor'];if(!_0x16ea15['plugins']['has']('ListEditing'))return;const _0x3f9099=_0x16ea15['locale'],_0x487c0b=_0x16ea15['plugins']['get']('TrackChangesEditing'),_0x2d5d82=_0x16ea15['plugins']['has']('TodoListEditing'),_0xa82cc=!!_0x16ea15['config']['get']('list.multiBlock');function _0x51088e(_0x89c76e){return{'type':'format','content':''+c(_0x3f9099,'*Set\x20format:*\x20%0',_0x89c76e)};}function _0xc7bb15(_0x4b70d5){return{'type':'format','content':''+c(_0x3f9099,'*Remove\x20format:*\x20%0',_0x4b70d5)};}_0x487c0b['enableDefaultAttributesIntegration']('numberedList'),_0x487c0b['enableDefaultAttributesIntegration']('bulletedList'),_0x487c0b['enableDefaultAttributesIntegration']('customNumberedList'),_0x487c0b['enableDefaultAttributesIntegration']('customBulletedList'),_0x487c0b['enableDefaultAttributesIntegration']('indentList'),_0x487c0b['enableDefaultAttributesIntegration']('outdentList'),_0x487c0b['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x487c0b['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x487c0b['registerBlockAttribute']('listItemId'),_0x487c0b['registerBlockAttribute']('listType'),_0x487c0b['registerBlockAttribute']('listIndent'),_0xa82cc&&(_0x487c0b['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x487c0b['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d5d82&&(_0x487c0b['enableDefaultAttributesIntegration']('todoList'),_0x487c0b['enableDefaultAttributesIntegration']('checkTodoList'),_0x487c0b['registerBlockAttribute']('todoListChecked'),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x28f310=>{const {data:_0x432155}=_0x28f310;if(_0x432155&&'todoListChecked'==_0x432155['key'])return{'type':'format','content':_0x432155['newValue']?c(_0x3f9099,'*Check\x20item*'):c(_0x3f9099,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1a1b66=>{if(_0x1a1b66['batch']['isUndo'])return!0x1;let _0x1215c6=!0x1;const _0x2aaf8b=_0x487c0b['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x27dc87=>'todoListChecked'===_0x487c0b['_getAttributeKey'](_0x27dc87));for(const _0x126f03 of _0x2aaf8b){'todo'!=_0x126f03['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x487c0b['_findSuggestions'](_0x126f03['getFirstRange'](),'attribute')['find'](_0x6d019e=>'listType'===_0x487c0b['_getAttributeKey'](_0x6d019e['suggestion']))||(_0x1a1b66['removeMarker'](_0x126f03['getFirstMarker']()),_0x1215c6=!0x0));}return _0x1215c6;})),_0x487c0b['descriptionFactory']['registerAttributeLabel']('listIndent',c(_0x3f9099,'FORMAT_INDENT'));const _0x2b2c31={'type':'format','content':''};_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x26ee66=>{const {data:_0x47656e}=_0x26ee66;if(!_0x47656e||'listType'!=_0x47656e['key'])return;let _0x51a867=_0x26ee66['head'];for(;_0x51a867;){if(_0x51a867['data']&&(('listStyle'==_0x51a867['data']['key']||'listMarkerStyle'==_0x51a867['data']['key'])&&(_0x51a867['data']['newValue']&&'default'!=_0x51a867['data']['newValue']||'default'!=_0x51a867['data']['oldValue']&&!_0x47656e['newValue'])||!_0xa82cc&&_0x51a867['data']['key']==u))return _0x2b2c31;_0x51a867=_0x51a867['next'];}if(null==_0x47656e['newValue'])switch(_0x47656e['oldValue']){case'bulleted':return _0xc7bb15(c(_0x3f9099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xc7bb15(c(_0x3f9099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xc7bb15(c(_0x3f9099,'ELEMENT_TODO_LIST'));}switch(_0x47656e['newValue']){case'bulleted':return _0x51088e(c(_0x3f9099,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x51088e(c(_0x3f9099,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x51088e(c(_0x3f9099,'ELEMENT_TODO_LIST'));}}),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x2b5e15=>{const {data:_0x5484f8}=_0x2b5e15;if(_0x5484f8&&'listIndent'==_0x5484f8['key'])return null==_0x5484f8['newValue']||null==_0x5484f8['oldValue']&&0x0==_0x5484f8['newValue']?_0x2b2c31:void 0x0;}),_0x487c0b['descriptionFactory']['registerDescriptionCallback'](_0x4989ab=>{if('attribute'!=_0x4989ab['type'])return;const {data:_0x405fe5}=_0x4989ab;if(!_0x405fe5||'listItemId'!=_0x405fe5['key'])return;const _0x5b36e4=Te(_0x4989ab);return'newValue'==_0x5b36e4?{'type':'format','content':c(_0x3f9099,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5b36e4?{'type':'format','content':c(_0x3f9099,'*Split:*\x20list\x20item')}:_0x2b2c31;}),_0x16ea15['model']['document']['registerPostFixer'](_0xea464b=>this['listItemIdFixer'](_0xea464b)),_0x16ea15['model']['document']['registerPostFixer'](_0xf0cd4a=>this['noTrackChangesFixer'](_0xf0cd4a)),_0x16ea15['model']['document']['on']('change:data',(_0x5596c8,_0x1e239a)=>{if(_0x1e239a['isUndo']||!_0x1e239a['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5f109a){if(_0x5f109a['batch']['isUndo']||!_0x5f109a['batch']['isLocal'])return!0x1;let _0x3d1594=!0x1;const _0x5d4d1f=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xb66b11=>_0xb66b11['data']&&'listItemId'==_0xb66b11['data']['key'])['filter'](_0x1e7f3d=>_0x1e7f3d['data']['newValue']&&_0x1e7f3d['data']['oldValue']);for(const _0x452e92 of _0x5d4d1f)Te(_0x452e92)||(_0x5f109a['removeMarker'](_0x452e92['getFirstMarker']()),_0x3d1594=!0x0);return _0x3d1594;}['noTrackChangesFixer'](_0x638a8c){if(_0x638a8c['batch']['isUndo']||!_0x638a8c['batch']['isLocal'])return!0x1;const _0x27ef19=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x27ef19['trackChangesCommand']['value'])return!0x1;let _0x2db435=!0x1;const _0x1fd20f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x5e4f45=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x12132d=>'attribute'==_0x12132d['type'])['filter'](_0x1fd053=>_0x1fd20f['includes'](_0x1fd053['attributeKey']));if(0x0==_0x5e4f45['length'])return _0x2db435;for(const _0x43344d of _0x5e4f45){const _0x4e1c52=_0x27ef19['_findSuggestions'](_0x43344d['range'],'attribute')['filter'](_0x151e5d=>!_0x151e5d['meta']['isNextTo'])['map'](_0x3e648a=>_0x3e648a['suggestion'])['filter'](_0x3084e3=>{const _0x21d473=_0x27ef19['_getAttributeKey'](_0x3084e3);return _0x1fd20f['includes'](_0x21d473);});if(_0x4e1c52['length']){for(const _0x1f4c62 of _0x4e1c52)_0x638a8c['removeMarker'](_0x1f4c62['getFirstMarker']());_0x2db435=!0x0;}}return _0x2db435;}['assureChains'](){const _0x3b2111=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3df5=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0xa64059;const _0x5d7121=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x39977e=>{if(_0x39977e['data']['oldRange']||!_0x39977e['data']['newRange'])return null;if(!_0x39977e['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0xd2838}=_0x3b2111['_splitMarkerName'](_0x39977e['name']);if(!_0x3b2111['hasSuggestion'](_0xd2838))return null;const _0x166fd0=_0x3b2111['getSuggestion'](_0xd2838);return _0x2d3df5['includes'](_0x166fd0['data']['key']);})['map'](_0x39abd7=>{const {id:_0x56680a}=_0x3b2111['_splitMarkerName'](_0x39abd7['name']),_0x4cd220=_0x3b2111['getSuggestion'](_0x56680a);return _0xa64059=_0x4cd220['attributes']['groupId'],_0x4cd220['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5d7121['size'])return;const _0x58f72f=_0x3b2111['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1e9481=>'attribute'==_0x1e9481['type']&&_0x1e9481['data']&&_0x2d3df5['includes'](_0x1e9481['data']['key'])&&_0x1e9481['attributes']['groupId']!=_0xa64059)['map'](_0x5cec6d=>({'listItem':_0x5cec6d['getFirstRange']()['start']['nodeAfter'],'groupId':_0x5cec6d['attributes']['groupId']})),_0x5d01e1=new Set();for(const {groupId:_0xd60989,listItem:_0xcae341}of _0x58f72f)_0x5d7121['has'](_0xcae341)&&_0x5d01e1['add'](_0xd60989);for(const _0x124484 of _0x3b2111['getSuggestions']())_0x5d01e1['has'](_0x124484['attributes']['groupId'])&&_0x124484['setAttribute']('groupId',_0xa64059);}['_supportLegacySuggestions'](){const _0xd3a399=this['editor'],_0x4fd3be=_0xd3a399['locale'],_0x4dfc43=_0xd3a399['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4dfc43['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x12f72c,_0x29fa9e){const _0x4ae7f=[];for(let _0x39dace of _0x12f72c)_0x39dace['start']['nodeAfter']===_0x39dace['end']['parent']&&(_0x39dace=_0xd3a399['model']['createRange'](_0xd3a399['model']['createPositionAt'](_0x39dace['start']['nodeAfter'],0x0))),_0x4ae7f['push'](_0x39dace);_0xd3a399['model']['change'](_0x21e1bb=>{const _0x2546e2=_0xd3a399['model']['document']['selection'],_0x1734b2=Array['from'](_0x2546e2['getRanges']())['map'](_0x3a5b74=>_0x221782['fromRange'](_0x3a5b74));_0x21e1bb['setSelection'](_0x4ae7f),_0xd3a399['commands']['get'](_0x29fa9e['commandName'])['refresh'](),_0x29fa9e['commandParams']['push']({'forceDefaultExecution':!0x0}),_0xd3a399['execute'](_0x29fa9e['commandName'],..._0x29fa9e['commandParams']),_0x21e1bb['setSelection'](_0x1734b2);for(const _0x5b47bc of _0x1734b2)_0x5b47bc['detach']();});}),_0x4dfc43['descriptionFactory']['registerElementLabel'](function(_0x19ce9a){const _0x29f3ad=!_0xd3a399['model']['schema']['isObject'](_0x19ce9a),_0x1a1573=_0x19ce9a['previousSibling'],_0x38dcd6=_0x19ce9a['nextSibling'],_0x4ad8cc=_0x19ce9a['getAttribute']('listItemId'),_0x55a897=!_0x1a1573||_0x1a1573['getAttribute']('listItemId')!==_0x4ad8cc,_0x18c3d6=!_0x38dcd6||_0x38dcd6['getAttribute']('listItemId')!==_0x4ad8cc;return _0x29f3ad&&Boolean(_0x4ad8cc)&&_0x55a897&&_0x18c3d6;},_0x303e76=>c(_0x4fd3be,'ELEMENT_LIST_ITEM',_0x303e76));}['_registerLegacyDescription'](){const _0x92589f=this['editor'],_0x3c52f0=_0x92589f['locale'];function _0x47035d(_0x32655c){const _0x1bc70c=_0x92589f['commands']['get']('bulletedList')['value'],_0x12c2aa=_0x92589f['commands']['get']('numberedList')['value'];return'numberedList'===_0x32655c?_0x1bc70c:_0x12c2aa;}_0x92589f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x31fa67){if('formatBlock'!=_0x31fa67['type'])return;const {data:_0x30e3f6}=_0x31fa67;if(!_0x30e3f6)return;let _0x22393b,_0xde3758,_0x19d883,_0x3e65d1;switch(_0x30e3f6['commandName']){case'bulletedList':_0x19d883=_0x30e3f6['commandParams'][0x0]['forceValue'],_0x3e65d1=_0x47035d(_0x30e3f6['commandName']),_0x22393b=_0x19d883?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e65d1&&_0x92589f['config']['get']('list.multiBlock')||(_0x22393b='*Change\x20to:*\x20%0'),_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x19d883=_0x30e3f6['commandParams'][0x0]['forceValue'],_0x3e65d1=_0x47035d(_0x30e3f6['commandName']),_0x22393b=_0x19d883?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x3e65d1&&_0x92589f['config']['get']('list.multiBlock')||(_0x22393b='*Change\x20to:*\x20%0'),_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22393b='*Indent:*\x20%0',_0xde3758={'type':'format','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22393b=function(_0x25ec72){const _0x6c21be=_0x25ec72['getFirstRange']();let _0x3041b0=_0x6c21be['start']['nodeAfter'];for(;_0x3041b0&&_0x6c21be['containsItem'](_0x3041b0);){if(_0x3041b0['getAttribute']('listIndent')>0x0)return!0x1;_0x3041b0=_0x3041b0['nextSibling'];}return!0x0;}(_0x31fa67)?c(_0x3c52f0,'*Format:*\x20remove\x20from\x20%0',c(_0x3c52f0,function(_0x561484){return'ELEMENT_'+_0x561484['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x31fa67))):c(_0x3c52f0,'*Outdent:*\x20%0',c(_0x3c52f0,'ELEMENT_LIST_ITEM')),_0xde3758={'type':'format','content':_0x22393b};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x30e3f6['multipleBlocks']&&(_0x22393b='*Merge:*\x20%0',_0xde3758={'type':'deletion','content':c(_0x3c52f0,_0x22393b,c(_0x3c52f0,'ELEMENT_LIST_ITEM'))});}return _0xde3758;});}}function Te(_0x3b8ad4){let _0x4b0620=_0x3b8ad4['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b0620;){const _0x2662e9=_0x4b0620['getAttribute']('listItemId');if(!_0x2662e9)return!0x1;if(_0x2662e9==_0x3b8ad4['data']['newValue'])return'newValue';if(_0x2662e9==_0x3b8ad4['data']['oldValue'])return'oldValue';_0x4b0620=_0x4b0620['previousSibling'];}return!0x1;}class Se extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x21bb51=this['editor']['config']['get']('list.properties'),_0x513e98=this['editor']['plugins']['get']('TrackChangesEditing');_0x21bb51['styles']&&(_0x513e98['enableDefaultAttributesIntegration']('listStyle'),_0x513e98['registerBlockAttribute']('listStyle')),_0x21bb51['reversed']&&(_0x513e98['enableDefaultAttributesIntegration']('listReversed'),_0x513e98['registerBlockAttribute']('listReversed')),_0x21bb51['startIndex']&&(_0x513e98['enableDefaultAttributesIntegration']('listStart'),_0x513e98['registerBlockAttribute']('listStart'));const _0x3e4b28={'type':'format','content':''};_0x513e98['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x38971d=this['editor']['locale'];_0x513e98['descriptionFactory']['registerAttributeLabel']('listReversed',c(_0x38971d,'FORMAT_LIST_REVERSED')),_0x513e98['descriptionFactory']['registerDescriptionCallback'](_0x3dc2d0=>{const {data:_0x2ac7ab}=_0x3dc2d0;if(_0x2ac7ab&&'listReversed'==_0x2ac7ab['key'])return null==_0x2ac7ab['newValue']||0x0==_0x2ac7ab['newValue']&&null==_0x2ac7ab['oldValue']?_0x3e4b28:void 0x0;}),_0x513e98['descriptionFactory']['registerAttributeLabel']('listStart',c(_0x38971d,'FORMAT_LIST_START')),_0x513e98['descriptionFactory']['registerDescriptionCallback'](_0x2dbb5b=>{const {data:_0x4b05fe}=_0x2dbb5b;if(_0x4b05fe&&'listStart'==_0x4b05fe['key'])return null==_0x4b05fe['newValue']||0x1==_0x4b05fe['newValue']&&null==_0x4b05fe['oldValue']?_0x3e4b28:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x112675=>{if(_0x112675['batch']['isUndo'])return!0x1;let _0x3c295c=!0x1;const _0x2104a0=_0x513e98['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5c512b=>{const _0x396941=_0x513e98['_getAttributeKey'](_0x5c512b);return'listStart'==_0x396941||'listReversed'==_0x396941;});for(const _0x8be6e1 of _0x2104a0){const _0x591582=_0x8be6e1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x591582||'customNumbered'==_0x591582)continue;_0x513e98['_findSuggestions'](_0x8be6e1['getFirstRange'](),'attribute')['find'](_0x58be43=>'listType'==_0x513e98['_getAttributeKey'](_0x58be43['suggestion']))||(_0x112675['removeMarker'](_0x8be6e1['getFirstMarker']()),_0x3c295c=!0x0);}return _0x3c295c;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x2a3793){const _0x544da7=this['editor']['locale'],{data:_0x45d16d}=_0x2a3793,_0x1daba6={'type':'format','content':''};if(!_0x45d16d||'listStyle'!=_0x45d16d['key'])return;if(!_0x45d16d['oldValue'])return'default'==_0x45d16d['newValue']?_0x1daba6:{'type':'format','content':''+c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['newValue'])))};if(!_0x45d16d['newValue']){if('default'==_0x45d16d['oldValue'])return _0x1daba6;let _0x14f42e=_0x2a3793['head'];for(;_0x14f42e;){if(_0x14f42e['data']&&'listType'==_0x14f42e['data']['key']&&_0x14f42e['data']['newValue'])return _0x1daba6;_0x14f42e=_0x14f42e['next'];}return{'type':'format','content':''+c(_0x544da7,'*Remove\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['oldValue'])))};}if('default'!=_0x45d16d['newValue'])return{'type':'format','content':''+c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,this['_getTranslationKeyForListStyle'](_0x45d16d['newValue'])))};let _0x4c6b01=_0x2a3793['head'];for(;_0x4c6b01;){if(_0x4c6b01['data']&&'listType'==_0x4c6b01['data']['key']&&_0x4c6b01['data']['newValue']&&_0x4c6b01['data']['oldValue'])return _0x1daba6;_0x4c6b01=_0x4c6b01['next'];}return{'type':'format','content':c(_0x544da7,'*Set\x20format:*\x20%0',c(_0x544da7,'ELEMENT_'+_0x2a3793['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4e1a7a=this['editor'],_0x41eaf9=_0x4e1a7a['locale'];_0x4e1a7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1278e8=>{if('formatBlock'!=_0x1278e8['type'])return;const {data:_0x41155e}=_0x1278e8;if(!_0x41155e)return;let _0x81d34e,_0x131d6d;switch(_0x41155e['commandName']){case'listStyle':_0x81d34e='*Change\x20to:*\x20%0',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e,c(_0x41eaf9,this['_getTranslationKeyForListStyle'](_0x41155e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x81d34e=_0x41155e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e)};break;case'listStart':_0x81d34e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x131d6d={'type':'format','content':c(_0x41eaf9,_0x81d34e,_0x41155e['commandParams'][0x0]['startIndex'])};}return _0x131d6d;});}['_getTranslationKeyForListStyle'](_0x3ad037){return'ELEMENT_'+function(_0x366e4b){if(_e['includes'](_0x366e4b))return'bulleted';if(Re['includes'](_0x366e4b))return'numbered';return null;}(_0x3ad037)['toUpperCase']()+'_LIST_'+_0x3ad037['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x51b88f{['afterInit'](){const _0x1890a7=this['editor'];_0x1890a7['commands']['get']('emoji')&&_0x1890a7['plugins']['get']('TrackChangesEditing')['enableCommand']('emoji');}}class Y extends _0x51b88f{static get['requires'](){return[_0x263acd];}['init'](){const _0x28610d=this['editor'],_0x4e25b6=_0x28610d['plugins']['get']('TrackChangesEditing'),_0x53280b=_0x28610d['commands']['get']('enter');_0x4e25b6['enableCommand']('enter',()=>{_0x28610d['model']['change'](_0x5c4e7d=>{const _0x5ee9d9=_0x28610d['model']['document']['selection'],_0x4d8b3e=_0x5ee9d9['getFirstPosition'](),_0x1d4baa=_0x221782['fromRange'](_0x5ee9d9['getFirstRange']());if(_0x53280b['enterBlock'](_0x5c4e7d)){const _0x5e9728=_0x28610d['model']['createPositionAt'](_0x4d8b3e['parent']['nextSibling'],0x0),_0x45322a=_0x5c4e7d['createRange'](_0x4d8b3e,_0x5e9728);_0x4e25b6['markInsertion'](_0x45322a);}else _0x5c4e7d['setSelection'](_0x5c4e7d['createRange'](_0x1d4baa['end']));_0x1d4baa['detach'](),_0x53280b['fire']('afterExecute',{'writer':_0x5c4e7d});});}),_0x28610d['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',Fe(_0x28610d,'split'),{'priority':'high'}),_0x28610d['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x14dc06,_0x5d0ca9,_0x1bd804)=>{const _0x21049e=_0x1bd804['mapper']['markerNameToElements'](_0x5d0ca9['markerName']);if(_0x21049e){for(const _0x39106c of _0x21049e)_0x39106c['hasClass']('ck-suggestion-marker-split')&&(_0x1bd804['mapper']['unbindElementFromMarkerName'](_0x39106c,_0x5d0ca9['markerName']),_0x1bd804['writer']['remove'](_0x39106c));}},{'priority':'high'}),_0x28610d['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x57567f,_0x3c87bc,_0x158c56)=>{_0x158c56['options']['showSuggestionHighlights']&&Fe(_0x28610d,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x57567f,_0x3c87bc,_0x158c56);},{'priority':'high'});}}class Z extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1f9e68=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f9e68['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1f9e68['enableCommand']('findNext'),_0x1f9e68['enableCommand']('findPrevious'),_0x1f9e68['enableCommand']('replace'),_0x1f9e68['enableCommand']('replaceAll');}['handleFindCommand'](_0x9a3f5f,_0x5695c9,_0x37b441={}){const _0x41f5a6=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x9a3f5f(_0x3fb54a=>{let _0x3192e6=('string'==typeof _0x5695c9?_0x41f5a6['findByTextCallback'](_0x5695c9,_0x37b441):_0x5695c9)(_0x3fb54a);Array['isArray'](_0x3192e6)&&(_0x3192e6={'results':_0x3192e6,'searchText':'string'==typeof _0x5695c9?_0x5695c9:''});const _0x35a995=_0x3192e6['results']['filter'](_0x302057=>!0x1===this['_isInDeletionRange'](_0x302057,_0x3fb54a['item']));return{..._0x3192e6,'results':_0x35a995};},_0x37b441);}['_isInDeletionRange'](_0x195139,_0x3e6000){const _0x42e7b9=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3e6000,_0x195139['start']),this['editor']['model']['createPositionAt'](_0x3e6000,_0x195139['end']));for(const _0x3ea9d1 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x42e7b9['getIntersection'](_0x3ea9d1['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 _0x51b88f{['afterInit'](){const _0x3ffc22=this['editor']['locale'],_0x5c0c42=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x4a485c,commandName:_0x5d7b85}of ro)this['editor']['plugins']['has'](_0x4a485c)&&(_0x5c0c42['enableDefaultAttributesIntegration'](_0x5d7b85),_0x5c0c42['registerInlineAttribute'](_0x5d7b85));_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontSize',c(_0x3ffc22,'FORMAT_FONT_SIZE')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontFamily',c(_0x3ffc22,'FORMAT_FONT_FAMILY')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontColor',c(_0x3ffc22,'FORMAT_FONT_COLOR')),_0x5c0c42['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',c(_0x3ffc22,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3fec82=this['editor'],_0x34114f=_0x3fec82['locale'];_0x3fec82['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42841e=>{const _0x4adf7f=_0x34114f['t'];if('formatInline'!=_0x42841e['type'])return;const {data:_0x27063d}=_0x42841e;if(null!=_0x27063d){if('fontSize'==_0x27063d['commandName']){const _0xe9ae11=_0x27063d['commandParams'][0x0]['value'];if(_0xe9ae11){const _0x1623be=_0x4adf7f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x32dde0=>_0x32dde0['model']==_0xe9ae11)['title'])['toLowerCase']();return{'type':'format','content':c(_0x34114f,'*Set\x20font\x20size:*\x20%0',_0x1623be)};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x27063d['commandName']){const _0x462bbf=_0x27063d['commandParams'][0x0]['value'];return _0x462bbf?{'type':'format','content':c(_0x34114f,'*Set\x20font\x20family:*\x20%0',_0x462bbf)}:{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20family*')};}if('fontColor'==_0x27063d['commandName']){const _0x4a46cf=_0x27063d['commandParams'][0x0]['value'];if(_0x4a46cf){const _0x1eb48c=_0x4948c5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x4f831d=>_0x4f831d['model']==_0x4a46cf);let _0x1bd4c5=_0x4a46cf,_0x2dbaf2='';return _0x1eb48c&&(_0x1bd4c5=_0x1eb48c['label'],_0x2dbaf2=_0x4adf7f(_0x1bd4c5)['toLowerCase']()),{'type':'format','content':c(_0x34114f,'*Set\x20font\x20color:*\x20%0',_0x2dbaf2)['trim'](),'color':{'value':_0x4a46cf,'title':_0x2dbaf2||_0x1bd4c5}};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x27063d['commandName']){const _0x19b0d0=_0x27063d['commandParams'][0x0]['value'];if(_0x19b0d0){const _0x665aae=_0x4948c5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4d6eca=>_0x4d6eca['model']==_0x19b0d0);let _0x5736ad=_0x19b0d0,_0x7f2f2='';return _0x665aae&&(_0x5736ad=_0x665aae['label'],_0x7f2f2=_0x4adf7f(_0x5736ad)['toLowerCase']()),{'type':'format','content':c(_0x34114f,'*Set\x20font\x20background\x20color:*\x20%0',_0x7f2f2)['trim'](),'color':{'value':_0x19b0d0,'title':_0x7f2f2||_0x5736ad}};}return{'type':'format','content':c(_0x34114f,'*Reset\x20font\x20background\x20color*')};}}});}}class et extends _0x51b88f{['afterInit'](){const _0x2b4053=this['editor'],_0x340569=_0x2b4053['plugins']['get']('TrackChangesEditing'),_0x1df436=_0x2b4053['commands']['get']('copyFormat'),_0x2cbe26=_0x2b4053['commands']['get']('pasteFormat');_0x1df436&&_0x2cbe26&&(_0x340569['enableDefaultAttributesIntegration']('pasteFormat'),_0x340569['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5b3dac=this['editor'],_0x5bc842=_0x5b3dac['locale'];_0x5b3dac['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b4d49=>{if('formatBlock'!=_0x4b4d49['type']&&'formatInline'!=_0x4b4d49['type'])return;const {data:_0x34f114}=_0x4b4d49;if(_0x34f114&&'pasteFormat'===_0x34f114['commandName']){const _0x3b53ea=[],_0x15ed44=_0x34f114['commandParams'][0x0];for(const [_0x4014da,_0xffcdea]of Object['entries'](_0x15ed44))_0x3b53ea['push'](so(_0x5b3dac,_0x4014da,_0xffcdea));return _0x3b53ea['length']?{'type':'format','content':c(_0x5bc842,'*Set\x20format\x20to:*\x20%0',_0x3b53ea['join'](',\x20'))}:{'type':'format','content':c(_0x5bc842,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3ab50d,_0x17b7d9,_0x3a828f){const _0x5da0f5=_0x3ab50d['locale']['t'],_0x58bb9e=_0x17b7d9['split'](/(?=[A-Z])/)['join']('\x20'),_0x53e1fa=_0x5da0f5(_0x58bb9e['charAt'](0x0)['toUpperCase']()+_0x58bb9e['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3a828f)return _0x53e1fa;if('fontColor'===_0x17b7d9||'fontBackgroundColor'===_0x17b7d9){const _0x38a2ff=_0x4948c5(_0x3ab50d['config']['get']('fontColor.colors'))['find'](_0x24e254=>_0x24e254['model']==_0x3a828f);return _0x53e1fa+'\x20('+(_0x38a2ff?_0x5da0f5(_0x38a2ff['label'])['toLowerCase']():_0x3a828f)+')';}if('fontSize'===_0x17b7d9&&isNaN(parseFloat(_0x3a828f))){const _0x5aece9=_0x3ab50d['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3ab50d['config']['get']('fontSize.options'))['find'](_0x1a7b3c=>_0x1a7b3c['model']==_0x3a828f);return _0x53e1fa+'\x20('+(_0x5aece9?_0x5da0f5(_0x5aece9['title'])['toLowerCase']():_0x3a828f)+')';}return _0x53e1fa+'\x20('+_0x3a828f+')';}class nt extends _0x51b88f{['_headingOptions'];['afterInit'](){const _0x4ad5e4=this['editor'];if(!_0x4ad5e4['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4ad5e4['config']['get']('heading.options');const _0x2bbac5=_0x4ad5e4['locale'],_0x2bcc79=_0x4ad5e4['plugins']['get']('TrackChangesEditing');_0x2bcc79['enableDefaultAttributesIntegration']('heading');for(const _0x900806 of this['_headingOptions'])'paragraph'!=_0x900806['model']&&_0x2bcc79['descriptionFactory']['registerElementLabel'](_0x900806['model'],_0x362a2b=>{const _0x347d6a=this['_getHeadingLevel'](_0x900806['model']);return null!==_0x347d6a?_0x17df7b(_0x362a2b,_0x347d6a):_0x38cbe6(_0x362a2b,_0x900806['title']);});function _0x17df7b(_0xc5c7a,_0x20866b){return c(_0x2bbac5,'ELEMENT_HEADING',[_0xc5c7a,_0x20866b]);}function _0x38cbe6(_0x3203db,_0x4ebd15){return c(_0x2bbac5,'ELEMENT_HEADING_CUSTOM',[_0x3203db,_0x4ebd15]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2367c5=this['editor'],_0x3d7ce4=_0x2367c5['locale'];function _0x3456f6(_0x3b0ec0,_0x3b9adc){return c(_0x3d7ce4,'ELEMENT_HEADING_CUSTOM',[_0x3b0ec0,_0x3b9adc]);}_0x2367c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf429b9=>{if('formatBlock'!=_0xf429b9['type'])return;const {data:_0x2b6258}=_0xf429b9;if(_0x2b6258&&'heading'==_0x2b6258['commandName']){const _0x573025=_0x2b6258['commandParams'][0x0]['value'],_0x417520=this['_getHeadingLevel'](_0x573025);if(null!==_0x417520)return{'type':'format','content':c(_0x3d7ce4,'*Change\x20to:*\x20%0',(_0x199043=0x1,_0x11e67f=_0x417520,c(_0x3d7ce4,'ELEMENT_HEADING',[_0x199043,_0x11e67f])))};const _0x58e8ce=this['_headingOptions']['find'](_0x11ec22=>_0x11ec22['model']===_0x573025)['title'];return{'type':'format','content':c(_0x3d7ce4,'*Change\x20to:*\x20%0',_0x3456f6(0x1,_0x58e8ce))};}var _0x199043,_0x11e67f;});}['_getHeadingLevel'](_0x5668ef){const _0x1dbfb6=_0x5668ef['match'](/^heading(\d+)/);if(_0x1dbfb6)return _0x1dbfb6[0x1];const _0x5a35ad=this['_headingOptions']?.['find'](_0x2df2e5=>_0x2df2e5['model']==_0x5668ef);if(_0x5a35ad&&_0x5a35ad['view']){const _0x1b98c7=_0x5a35ad['view'],_0x48e8ac=(_0x1b98c7['name']??_0x1b98c7)['match'](/^h(\d+)/);if(_0x48e8ac)return _0x48e8ac[0x1];}return null;}}class it extends _0x51b88f{['afterInit'](){const _0xfda2d0=this['editor'];if(!_0xfda2d0['plugins']['has']('HighlightEditing'))return;const _0xe73e13=_0xfda2d0['plugins']['get']('TrackChangesEditing'),_0x5be09d=_0xfda2d0['locale'];_0xe73e13['enableDefaultAttributesIntegration']('highlight'),_0xe73e13['registerInlineAttribute']('highlight'),_0xe73e13['descriptionFactory']['registerAttributeLabel']('highlight',c(_0x5be09d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45e45a=this['editor'],_0x4ed360=_0x45e45a['locale'];_0x45e45a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x296e3d=>{if('formatInline'!=_0x296e3d['type'])return;const {data:_0x22d395}=_0x296e3d;if(_0x22d395&&'highlight'==_0x22d395['commandName']){const _0x2f687e=_0x4ed360['t'],_0x578c41=_0x22d395['commandParams'][0x0]['value'];if(_0x578c41){const _0x20bd68=_0x45e45a['config']['get']('highlight.options')['find'](_0x2527d7=>_0x2527d7['model']==_0x578c41),_0x13f97b=_0x2f687e(_0x20bd68['title'])['toLowerCase']();return{'type':'format','content':c(_0x4ed360,'*Set\x20highlight:*\x20%0',_0x13f97b),'color':{'value':_0x20bd68['color'],'title':_0x20bd68['title']}};}return{'type':'format','content':c(_0x4ed360,'*Remove\x20highlight*',c(_0x4ed360,'FORMAT_HIGHLIGHT'))};}});}}class st extends _0x51b88f{['afterInit'](){const _0x1ad52d=this['editor'];if(!_0x1ad52d['plugins']['has']('HorizontalLineEditing'))return;_0x1ad52d['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x485a99=_0x1ad52d['plugins']['get']('TrackChangesEditing'),_0x356f7d=_0x1ad52d['locale'];_0x485a99['descriptionFactory']['registerElementLabel']('horizontalLine',_0x16e104=>c(_0x356f7d,'ELEMENT_HORIZONTAL_LINE',_0x16e104)),_0x1ad52d['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x12cdca,{writer:_0x41401b,options:_0x42a220})=>{if(!_0x42a220['showSuggestionHighlights'])return null;const _0x516c73=_0x41401b['createContainerElement']('div'),_0x73ea99=_0x41401b['createEmptyElement']('hr');return _0x41401b['addClass']('ck-horizontal-line',_0x516c73),_0x41401b['insert'](_0x41401b['createPositionAt'](_0x516c73,0x0),_0x73ea99),_0x516c73;},'converterPriority':'high'});}}class ot extends _0x51b88f{['afterInit'](){const _0x174d22=this['editor'];if(!_0x174d22['plugins']['has']('HtmlEmbed'))return;const _0xd19baa=_0x174d22['plugins']['get']('TrackChangesEditing'),_0x5102dd=_0x174d22['locale'];_0xd19baa['descriptionFactory']['registerElementLabel']('rawHtml',_0x427cb5=>c(_0x5102dd,'ELEMENT_HTML_EMBED',_0x427cb5)),_0xd19baa['enableDefaultAttributesIntegration']('htmlEmbed'),_0xd19baa['registerBlockAttribute']('value'),_0xd19baa['descriptionFactory']['registerDescriptionCallback'](_0x2b53cd=>{if('attribute'!=_0x2b53cd['type'])return;const {data:_0x369d7b}=_0x2b53cd;if(_0x369d7b&&'value'==_0x369d7b['key']&&_0x2b53cd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x49d87a=c(_0x5102dd,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x5102dd,'*Change\x20%0\x20content*',_0x49d87a)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11d2f6=this['editor'],_0x213926=_0x11d2f6['locale'];_0x11d2f6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x434ff7=>{if('formatBlock'!=_0x434ff7['type'])return;const {data:_0x17e420}=_0x434ff7;if(_0x17e420&&'htmlEmbed'==_0x17e420['commandName']){const _0x5ae7e4=c(_0x213926,'ELEMENT_HTML_EMBED');return{'type':'format','content':c(_0x213926,'*Change\x20%0\x20content*',_0x5ae7e4)};}});}}class rt extends _0x51b88f{['afterInit'](){const _0x2db37e=this['editor'];if(!_0x2db37e['plugins']['has']('ImageEditing'))return;const _0x561750=_0x2db37e['plugins']['get']('TrackChangesEditing'),_0x31ded1=_0x2db37e['plugins']['get']('ImageUtils'),_0x70d4f9=_0x2db37e['locale'];_0x561750['enableCommand']('insertImage'),_0x561750['descriptionFactory']['registerElementLabel']('imageBlock',_0x16a34f=>c(_0x70d4f9,'ELEMENT_IMAGE',_0x16a34f)),_0x561750['descriptionFactory']['registerElementLabel']('imageInline',_0x1b55c7=>c(_0x70d4f9,'ELEMENT_INLINE_IMAGE',_0x1b55c7)),_0x561750['descriptionFactory']['registerElementLabel']('caption',()=>c(_0x70d4f9,'ELEMENT_CAPTION')),_0x2db37e['plugins']['has']('ImageUploadEditing')&&_0x561750['enableCommand']('uploadImage'),_0x2db37e['plugins']['has']('ImageBlockEditing')&&_0x2db37e['plugins']['has']('ImageInlineEditing')&&(_0x561750['enableCommand']('imageTypeInline',(_0x460e9e,_0x454115)=>{const _0x54a5a4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']);_0x2db37e['model']['change'](()=>{_0x561750['markBlockFormat'](_0x54a5a4,{'commandName':'imageTypeInline','commandParams':[_0x454115]},[],'convertBlockImageToInline');});}),_0x561750['enableCommand']('imageTypeBlock',(_0x48949b,_0x32bea9)=>{_0x2db37e['model']['change'](_0x4e406b=>{let _0x199828=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x3a6d64=_0x4e406b['createRangeOn'](_0x199828);const _0x503939=_0x547df0['fromPosition'](_0x3a6d64['start'],'toPrevious'),_0x4ba86e=_0x547df0['fromPosition'](_0x3a6d64['end'],'toNext');_0x561750['forceDefaultExecution'](()=>_0x48949b(_0x32bea9)),_0x199828=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x3a6d64=_0x4e406b['createRangeOn'](_0x199828);const _0x162464=_0x4e406b['createRange'](_0x503939,_0x4ba86e);_0x503939['detach'](),_0x4ba86e['detach'](),_0x561750['markBlockFormat'](_0x199828,{'commandName':'imageTypeInline','commandParams':[_0x32bea9]},[],'convertInlineImageToBlock'),_0x162464['start']['isBefore'](_0x3a6d64['start'])&&_0x561750['markInsertion'](_0x4e406b['createRange'](_0x162464['start'],_0x3a6d64['start']),'convertInlineImageToBlock'),_0x3a6d64['end']['isBefore'](_0x162464['end'])&&_0x561750['markInsertion'](_0x4e406b['createRange'](_0x3a6d64['end'],_0x162464['end']),'convertInlineImageToBlock');});}),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x561750['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x37d115])=>{const _0x5c11e7=_0x561750['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5be09b=_0x37d115['start'],_0x4a1650=_0x37d115['end'];const _0x2f5aca=_0x2db37e['model']['schema']['getNearestSelectionRange'](_0x5be09b,'backward'),_0x4e7fcf=_0x2db37e['model']['schema']['getNearestSelectionRange'](_0x4a1650,'forward');_0x2f5aca['isCollapsed']&&(_0x5be09b=_0x2f5aca['start']),_0x4e7fcf['isCollapsed']&&(_0x4a1650=_0x4e7fcf['end']),_0x5c11e7([_0x2db37e['model']['createRange'](_0x5be09b,_0x4a1650)]);}),_0x561750['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5dddef),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5dddef)),_0x2db37e['plugins']['has']('ImageCaptionEditing')&&(_0x561750['enableCommand']('toggleImageCaption',(_0x313d1b,_0x453639)=>{const _0x20caa5=_0x2db37e['plugins']['get']('ImageCaptionUtils');let _0x7581f4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x492fde=_0x20caa5['getCaptionFromImageModelElement'](_0x7581f4);_0x2db37e['model']['change'](()=>{if(_0x492fde)return void _0x561750['markDeletion'](_0x2db37e['model']['createRangeOn'](_0x492fde));const _0xd1753e=_0x31ded1['isBlockImage'](_0x7581f4);_0x313d1b(_0x453639),_0x7581f4=_0x31ded1['getClosestSelectedImageElement'](_0x2db37e['model']['document']['selection']),_0x492fde=_0x20caa5['getCaptionFromImageModelElement'](_0x7581f4),_0x561750['markInsertion'](_0x2db37e['model']['createRangeOn'](_0x492fde),_0xd1753e?null:'imageCaption');});}),_0x561750['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5dddef));const _0x18dfd3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xd41f4f(_0x5a39db,_0x497683){const _0x4e106b=_0x18dfd3['findIndex'](({type:_0x303b7a,subType:_0x75c846})=>_0x5a39db['type']==_0x303b7a&&_0x5a39db['subType']==_0x75c846),_0x4ea47f=_0x18dfd3['findIndex'](({type:_0xc2c32e,subType:_0x7c3e86})=>_0x497683['type']==_0xc2c32e&&_0x497683['subType']==_0x7c3e86);if(_0x4e106b<0x0||_0x4ea47f<0x0)return!0x1;const _0x2b474e=_0x5a39db['getFirstRange'](),_0x4f29eb=_0x497683['getFirstRange']();if((0x0==_0x4e106b||0x1==_0x4e106b)&&0x2==_0x4ea47f&&_0x2b474e['isIntersecting'](_0x4f29eb))return!0x0;if(0x2==_0x4e106b&&0x3==_0x4ea47f){const _0x37cea5=_0x561750['_findSuggestions'](_0x2b474e,'insertion')['filter'](({suggestion:_0x4c5806,meta:_0x47a34b})=>_0x47a34b['isOwn']&&'convertInlineImageToBlock'==_0x4c5806['subType']);if(_0x37cea5['length']>0x1&&_0x4f29eb['end']['isEqual'](_0x2b474e['start']))return!0x0;if(0x1==_0x37cea5['length']&&(_0x2b474e['start']['isEqual'](_0x4f29eb['end'])||_0x2b474e['end']['isEqual'](_0x4f29eb['start'])))return!0x0;}if(0x3==_0x4e106b&&0x3==_0x4ea47f&&_0x2b474e['start']['isBefore'](_0x4f29eb['start'])){const _0x5a19f3=_0x2b474e['end']['nodeAfter'],_0x2af01f=_0x4f29eb['start']['nodeBefore'];return _0x31ded1['isBlockImage'](_0x5a19f3)&&_0x5a19f3===_0x2af01f;}return!0x1;}function _0x5dddef(_0xab1d0d,_0x1780e5){return _0xd41f4f(_0xab1d0d,_0x1780e5)?[_0xab1d0d,_0x1780e5]:_0xd41f4f(_0x1780e5,_0xab1d0d)?[_0x1780e5,_0xab1d0d]:null;}_0x2db37e['plugins']['has']('ImageResize')&&(_0x561750['enableDefaultAttributesIntegration']('resizeImage'),_0x561750['registerBlockAttribute']('resizedWidth'),_0x561750['descriptionFactory']['registerAttributeLabel']('resizedWidth',c(_0x70d4f9,'FORMAT_IMAGE_SIZE'))),_0x2db37e['plugins']['has']('ImageTextAlternativeEditing')&&(_0x561750['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x561750['registerBlockAttribute']('alt')),_0x2db37e['plugins']['has']('PictureEditing')&&(_0x561750['registerBlockAttribute']('sources'),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x3929e3=>{if('attribute'!=_0x3929e3['type'])return;const {data:_0x5c1f1e}=_0x3929e3;return _0x5c1f1e&&'sources'==_0x5c1f1e['key']?{'type':'format','content':''}:void 0x0;})),_0x2db37e['plugins']['has']('ImageSizeAttributes')&&(_0x561750['registerBlockAttribute']('width'),_0x561750['registerBlockAttribute']('height'),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0xdbb3ac=>{if('attribute'!=_0xdbb3ac['type'])return;const {data:_0x1ec39c}=_0xdbb3ac;return!_0x1ec39c||'width'!=_0x1ec39c['key']&&'height'!=_0x1ec39c['key']?void 0x0:{'type':'format','content':''};})),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x4639a6=>{if(!!_0x18dfd3['find'](({type:_0x598c10,subType:_0x39bb77})=>_0x4639a6['type']==_0x598c10&&_0x4639a6['subType']==_0x39bb77))return _0x4639a6['previous']?{}:void 0x0;}),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x521a0a=>{if('insertion'==_0x521a0a['type']||'deletion'==_0x521a0a['type']){const _0xae9daa=_0x521a0a['getContainedElement']();if(_0xae9daa&&_0xae9daa['is']('element','caption'))return{'type':'insertion'==_0x521a0a['type']?'addObject':'removeObject','element':_0xae9daa,'quantity':0x1};}}),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x55fc27=>'formatBlock'==_0x55fc27['type']&&'convertInlineImageToBlock'==_0x55fc27['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55fc27['type']&&'convertBlockImageToInline'==_0x55fc27['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x561750['descriptionFactory']['registerDescriptionCallback'](_0x577624=>{if('attribute'!=_0x577624['type'])return;const {data:_0x39b680}=_0x577624;if(!_0x39b680||'alt'!=_0x39b680['key'])return;const _0x59931f=_0x39b680['newValue'];return _0x59931f?{'type':'format','content':c(_0x70d4f9,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59931f+'\x22')}:{'type':'format','content':c(_0x70d4f9,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5cb170=this['editor'],_0x589a1f=_0x5cb170['locale'];_0x5cb170['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x289259=>{if('formatBlock'!=_0x289259['type']&&'formatInline'!=_0x289259['type'])return;const {data:_0x3363e2}=_0x289259;if(_0x3363e2){if('imageTextAlternative'==_0x3363e2['commandName']){const _0x409f16=_0x3363e2['commandParams'][0x0]['newValue'];return _0x409f16?{'type':'format','content':c(_0x589a1f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x409f16+'\x22')}:{'type':'format','content':c(_0x589a1f,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3363e2['commandName']){const _0x74e2bd=_0x3363e2['commandParams'][0x0]['width'];return _0x74e2bd?{'type':'format','content':c(_0x589a1f,'*Set\x20image\x20width:*\x20%0',_0x74e2bd)}:{'type':'format','content':c(_0x589a1f,'*Reset\x20image\x20width*')};}}});}}class at extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x58dce6=this['editor']['locale'],_0xb0311a=this['editor']['plugins']['get']('TrackChangesEditing');_0xb0311a['enableDefaultAttributesIntegration']('replaceImageSource'),_0xb0311a['registerBlockAttribute']('src'),_0xb0311a['descriptionFactory']['registerDescriptionCallback'](_0x20eb35=>{if('attribute'!=_0x20eb35['type'])return;const {data:_0x1b89d1}=_0x20eb35;return _0x1b89d1&&'src'==_0x1b89d1['key']?_0x1b89d1['newValue']&&_0x1b89d1['oldValue']?{'type':'format','content':c(_0x58dce6,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1141d7=this['editor']['plugins']['get']('TrackChangesEditing');_0x1141d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1141d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1141d7['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1141d7['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b45c2=this['editor'],_0x4a9a62=_0x3b45c2['locale'];_0x3b45c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e5fbc=>{if('formatBlock'!=_0x4e5fbc['type']&&'formatInline'!=_0x4e5fbc['type'])return;const {data:_0x1dee3e}=_0x4e5fbc;if(!_0x1dee3e||'replaceImageSource'!=_0x1dee3e['commandName'])return;return{'type':'format','content':c(_0x4a9a62,'*Format:*\x20replace\x20image\x20URL')};});}}class ct extends _0x51b88f{['afterInit'](){const _0x2ab9f3=this['editor'];if(!_0x2ab9f3['plugins']['has']('ImageStyleEditing'))return;const _0x5100b8=_0x2ab9f3['plugins']['get']('TrackChangesEditing'),_0x45d2ff=_0x2ab9f3['plugins']['get']('ImageUtils'),_0x2c5e73={};_0x5100b8['enableCommand']('imageStyle',(_0x244276,_0x45e0ac)=>{const _0x330185=_0x2ab9f3['plugins']['get']('Users')['me'],_0x13abc1=_0x2ab9f3['commands']['get']('imageStyle');let _0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),_0x34521c=_0x2ab9f3['model']['createRangeOn'](_0x1cb895),_0x10ef1e=_0x13abc1['value'];if(_0x10ef1e==_0x45e0ac['value'])return;const _0x28c497={'commandName':'imageStyle','commandParams':[_0x45e0ac],'formatGroupId':_0x35f42a()};_0x2ab9f3['model']['change'](()=>{if(_0x5100b8['getSuggestions']()['filter'](_0x16c413=>_0x16c413['isInContent']&&_0x330185==_0x16c413['author']&&('formatBlock'==_0x16c413['type']||'formatInline'==_0x16c413['type'])&&('imageStylePreApply'==_0x16c413['subType']||'imageStylePostApply'==_0x16c413['subType'])&&_0x16c413['getFirstRange']()['isEqual'](_0x34521c))['forEach'](_0x4cb528=>_0x5100b8['discardSuggestion'](_0x4cb528['head'])),_0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),_0x34521c=_0x2ab9f3['model']['createRangeOn'](_0x1cb895),_0x13abc1['refresh'](),_0x2ab9f3['commands']['get']('imageTypeInline')['refresh'](),_0x2ab9f3['commands']['get']('imageTypeBlock')['refresh'](),_0x10ef1e=_0x13abc1['value'],_0x10ef1e!=_0x45e0ac['value'])return _0x45d2ff['isInlineImage'](_0x1cb895)&&_0x13abc1['shouldConvertImageType'](_0x45e0ac['value'],_0x1cb895)?(_0x244276({..._0x45e0ac,'setImageSizes':!0x1}),_0x1cb895=_0x45d2ff['getClosestSelectedImageElement'](_0x2ab9f3['model']['document']['selection']),void _0x5100b8['markBlockFormat'](_0x1cb895,{..._0x28c497,'commandReversedParams':[{'value':_0x10ef1e||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x45d2ff['isBlockImage'](_0x1cb895)?_0x5100b8['markBlockFormat'](_0x1cb895,_0x28c497,[],'imageStylePostApply'):_0x5100b8['markInlineFormat'](_0x34521c,_0x28c497,'imageStylePostApply'));});});for(const _0x1b2a7b of _0x2ab9f3['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x2c5e73[_0x1b2a7b['name']]=_0x1b2a7b['title']['toLowerCase']();_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4ebb1c])=>{_0x45d2ff['setImageNaturalSizeAttributes'](_0x4ebb1c['getContainedElement']());}),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x598b2c,_0x5b3f3b)=>{_0x5100b8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x598b2c,{'commandName':_0x5b3f3b['commandName'],'commandParams':_0x5b3f3b['commandReversedParams']});}),_0x5100b8['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x50b313,_0x2aaab3){if(_0x3e64c7(_0x50b313,_0x2aaab3))return[_0x50b313,_0x2aaab3];if(_0x3e64c7(_0x2aaab3,_0x50b313))return[_0x2aaab3,_0x50b313];return null;});const _0x4b28e2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x3e64c7(_0x1b3de3,_0x19d580){const _0x46aea3=_0x4b28e2['findIndex'](({type:_0x2ad75e,subType:_0x387faa})=>_0x1b3de3['type']==_0x2ad75e&&_0x1b3de3['subType']==_0x387faa),_0x164a31=_0x4b28e2['findIndex'](({type:_0x5d3dcc,subType:_0x4a9e4b})=>_0x19d580['type']==_0x5d3dcc&&_0x19d580['subType']==_0x4a9e4b);if(_0x46aea3<0x0||_0x164a31<0x0)return!0x1;const _0xa25bf8=_0x1b3de3['getFirstRange'](),_0x504cbb=_0x19d580['getFirstRange']();if((0x0==_0x46aea3||0x1==_0x46aea3)&&0x2==_0x164a31&&_0xa25bf8['isIntersecting'](_0x504cbb))return!0x0;if(0x2==_0x46aea3&&0x3==_0x164a31){const _0x5cd82f=_0x5100b8['_findSuggestions'](_0xa25bf8,'insertion')['filter'](({suggestion:_0x381099,meta:_0x24add6})=>_0x24add6['isOwn']&&'convertInlineImageToBlock'==_0x381099['subType']);if(_0x5cd82f['length']>0x1&&_0x504cbb['end']['isEqual'](_0xa25bf8['start']))return!0x0;if(0x1==_0x5cd82f['length']&&(_0xa25bf8['start']['isEqual'](_0x504cbb['end'])||_0xa25bf8['end']['isEqual'](_0x504cbb['start'])))return!0x0;}if(0x3==_0x46aea3&&0x3==_0x164a31&&_0xa25bf8['start']['isBefore'](_0x504cbb['start'])){const _0x88a7df=_0xa25bf8['end']['nodeAfter'],_0x30d472=_0x504cbb['start']['nodeBefore'];return _0x45d2ff['isBlockImage'](_0x88a7df)&&_0x88a7df===_0x30d472;}return!0x1;}_0x2ab9f3['model']['document']['registerPostFixer'](()=>{let _0x628e3f=!0x1;const _0x3d1c09=Array['from'](_0x2ab9f3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x49e639,data:_0x1b4922}of _0x3d1c09){const {group:_0x7d711c,type:_0x472af9,subType:_0x123eb5,id:_0x2e7d2f}=_0x5100b8['_splitMarkerName'](_0x49e639);if('suggestion'==_0x7d711c&&_0x5100b8['hasSuggestion'](_0x2e7d2f)){if('formatBlock'==_0x472af9&&('imageStylePreApply'==_0x123eb5||'imageStylePostApply'==_0x123eb5)){const _0x4de4a4=_0x5100b8['getSuggestion'](_0x2e7d2f);if(_0x1b4922['newRange']){const _0x141cda=_0x4de4a4['getFirstRange']()['getContainedElement']();if(_0x45d2ff['isBlockImage'](_0x141cda))continue;_0x5100b8['discardSuggestion'](_0x4de4a4),_0x628e3f=!0x0;}}if('insertion'==_0x472af9&&'imageCaption'==_0x123eb5&&!_0x1b4922['newRange']){const _0x44c2e5=_0x5100b8['getSuggestion'](_0x2e7d2f);_0x44c2e5['next']&&_0x44c2e5['next']['isInContent']&&(_0x5100b8['discardSuggestion'](_0x44c2e5['next']),_0x628e3f=!0x0);}}}return _0x628e3f;}),this['_registerLegacyDescription'](_0x2c5e73);}['_registerLegacyDescription'](_0x37bc00){const _0x45015e=this['editor'],_0x5bf73b=_0x45015e['locale'];_0x45015e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2239a=>{if('formatBlock'!=_0xd2239a['type']&&'formatInline'!=_0xd2239a['type'])return;const {data:_0x12f467}=_0xd2239a;if(!_0x12f467||'imageStyle'!=_0x12f467['commandName'])return;const _0x1d9c36=_0x12f467['commandParams'][0x0]['value'];return _0x2e677e('side'===_0x1d9c36?c(_0x5bf73b,'FORMAT_SIDE_IMAGE'):_0x37bc00[_0x1d9c36]||_0x1d9c36);function _0x2e677e(_0xdce0a2){return{'type':'format','content':c(_0x5bf73b,'*Format:*\x20%0',_0xdce0a2)};}});}}class ut extends _0x51b88f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x4de3bc){super(_0x4de3bc),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x124dec=this['editor'],_0x52db0f=_0x124dec['commands']['get']('importWord'),_0x1fa8c1=_0x124dec['commands']['get']('trackChanges');_0x52db0f&&(_0x52db0f['on']('execute',(_0xa37cdc,[,_0x2d6ab6])=>{this['_trackChangesValueDuringImport']=_0x1fa8c1['value'],_0x2d6ab6['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x52db0f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x52db0f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1fa8c1['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x124dec['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1f523c,_0x261eee){const {suggestions:_0x473c0e}=_0x261eee,_0x441ee0=this['editor']['commands']['get']('trackChanges'),_0x59e5a1=_0x441ee0['value'];this['_trackChangesValueDuringImport']!==_0x59e5a1&&(_0x441ee0['execute'](),this['_trackChangesExecuted']=!0x0),_0x473c0e&&_0x473c0e['forEach'](({id:_0x4ad762,type:_0xd2601b,author:_0xa24630,created_at:_0x46c459})=>{const _0x5ce640={'id':_0x4ad762,'type':_0xd2601b,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0xa24630,'createdAt':_0x46c459?new Date(_0x46c459):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5ce640);});}}class ft extends _0x51b88f{['afterInit'](){const _0x32b59e=this['editor'],_0x2c23a1=_0x32b59e['plugins']['get']('TrackChangesEditing');if(_0x32b59e['plugins']['has']('IndentEditing')&&(_0x2c23a1['enableCommand']('indent'),_0x2c23a1['enableCommand']('outdent')),_0x32b59e['plugins']['has']('IndentBlock')){for(const _0x3ac42f of['indentBlock','outdentBlock'])_0x2c23a1['enableDefaultAttributesIntegration'](_0x3ac42f);}const _0x5b2bf2=_0x32b59e['locale'];_0x2c23a1['registerBlockAttribute']('blockIndent'),_0x2c23a1['descriptionFactory']['registerAttributeLabel']('blockIndent',c(_0x5b2bf2,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6d155=this['editor'],_0x31e1ab=_0x6d155['locale'],_0x78bfad=_0x6d155['plugins']['get']('TrackChangesEditing');_0x78bfad['descriptionFactory']['registerDescriptionCallback'](_0x5e0997=>{if('formatBlock'!=_0x5e0997['type'])return;const {data:_0x5403a1}=_0x5e0997;if(!_0x5403a1)return;if('indentBlock'!=_0x5403a1['commandName']&&'outdentBlock'!=_0x5403a1['commandName'])return;const _0x49ec7f=_0x5e0997['getItems']()[0x0],_0x284080=_0x78bfad['descriptionFactory']['getItemLabel'](_0x49ec7f);return'indentBlock'==_0x5403a1['commandName']?{'type':'format','content':c(_0x31e1ab,'*Indent:*\x20%0',_0x284080)}:'outdentBlock'==_0x5403a1['commandName']?{'type':'format','content':c(_0x31e1ab,'*Outdent:*\x20%0',_0x284080)}:void 0x0;});}}class ht extends _0x51b88f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class lt extends _0x51b88f{['afterInit'](){const _0xd8cf96=this['editor'];if(!_0xd8cf96['plugins']['has']('LinkEditing'))return;const _0x2efcc5=_0xd8cf96['plugins']['get']('TrackChangesEditing'),_0x38996f=_0xd8cf96['commands']['get']('link');_0x2efcc5['enableDefaultAttributesIntegration']('link'),_0x2efcc5['enableDefaultAttributesIntegration']('unlink'),_0x2efcc5['registerInlineAttribute']('linkHref');for(const _0x568650 of _0x38996f['manualDecorators'])_0x2efcc5['registerInlineAttribute'](_0x568650['id']),_0x2efcc5['descriptionFactory']['registerAttributeLabel'](_0x568650['id'],'link\x20('+_0x568650['label']['toLowerCase']()+')');_0x2efcc5['descriptionFactory']['registerDescriptionCallback'](_0x416448=>{if('attribute'!=_0x416448['type'])return;const {data:_0x7823ee}=_0x416448;if(!_0x7823ee||'linkHref'!=_0x7823ee['key'])return;const _0x19c7b3=_0x7823ee['newValue'],_0x6f3aa6=_0xd8cf96['locale'];return{'type':'format','content':null==_0x19c7b3?c(_0x6f3aa6,'*Remove\x20link*'):c(_0x6f3aa6,'*Set\x20link:*\x20%0','\x22'+_0x19c7b3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16939a=this['editor'],_0x4b588b=_0x16939a['locale'];_0x16939a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3576cb=>{if('formatInline'!=_0x3576cb['type'])return;const {data:_0x557bea}=_0x3576cb;if(_0x557bea){if('link'==_0x557bea['commandName']){const _0x19bc60=_0x557bea['commandParams'][0x0];return{'type':'format','content':c(_0x4b588b,'*Set\x20link:*\x20%0','\x22'+_0x19bc60+'\x22')};}return'unlink'==_0x557bea['commandName']?{'type':'format','content':c(_0x4b588b,'*Remove\x20link*')}:void 0x0;}});}}class gt extends _0x51b88f{['afterInit'](){const _0x482e06=this['editor'],_0x1f5edb=_0x482e06['locale'];if(!_0x482e06['plugins']['has']('LegacyListEditing'))return;const _0x382a72=_0x482e06['plugins']['get']('TrackChangesEditing'),_0x373e41=_0x482e06['plugins']['has']('LegacyTodoListEditing');function _0x4b5348(_0x22f887){return()=>{const _0x1fa417=_0x482e06['model']['document']['selection'],_0x27ac70=_0x482e06['commands']['get'](_0x22f887);if(_0x27ac70['value'])return void _0x482e06['execute']('paragraph',{});const _0x1880c6=_0x22f887['slice'](0x0,-0x4),_0xcc8ce9=function(_0x4d01ae,_0x4133d6,_0x124ea8){let _0x5a4020=Array['from'](_0x4d01ae)['filter'](_0x22b55d=>function(_0x30e897,_0x317768){return _0x317768['checkChild'](_0x30e897['parent'],'listItem')&&!_0x317768['isObject'](_0x30e897);}(_0x22b55d,_0x124ea8));_0x5a4020=_0x5a4020['filter'](_0x5a3c80=>!_0x5a3c80['is']('element','listItem')||_0x5a3c80['getAttribute']('listType')!=_0x4133d6);const _0x3361ac=new Set();for(const _0x5bb93c of _0x5a4020)_0x5bb93c['is']('element','listItem')?_0x3361ac['add'](Le(_0x5bb93c)):_0x3361ac['add'](_0x5bb93c);return Array['from'](_0x3361ac);}(_0x1fa417['getSelectedBlocks'](),_0x1880c6,_0x482e06['model']['schema']);_0x482e06['model']['change'](()=>{for(const _0x129e19 of _0xcc8ce9)_0x382a72['markBlockFormat'](_0x129e19,{'commandName':_0x22f887,'commandParams':[{'forceValue':!_0x27ac70['value']}],'formatGroupId':'blockName'},Ee(_0x129e19));});};}function _0x398f97(_0x2dba76){return()=>{const _0x3a78b6=function(_0x3e3e34){let _0x2832a5=Array['from'](_0x3e3e34);const _0x35f024=_0x2832a5['findIndex'](_0x599fc1=>'listItem'!=_0x599fc1['name']);return _0x35f024>-0x1&&(_0x2832a5=_0x2832a5['slice'](0x0,_0x35f024)),_0x2832a5;}(_0x482e06['model']['document']['selection']['getSelectedBlocks']()),_0x25c0ab=_0x482e06['model']['createRange'](_0x482e06['model']['createPositionAt'](_0x3a78b6[0x0],'before'),_0x482e06['model']['createPositionAt'](_0x3a78b6[_0x3a78b6['length']-0x1],'end'));_0x482e06['model']['change'](()=>{_0x382a72['markBlockFormat'](_0x25c0ab,{'commandName':_0x2dba76,'commandParams':[],'formatGroupId':'listIndent'},function(_0x30c6d3){const _0x3dff9a=new Set();for(const _0x3ca042 of _0x30c6d3){let _0x379703=_0x3ca042['nextSibling'];for(;_0x379703&&_0x379703['getAttribute']('listIndent')>_0x3ca042['getAttribute']('listIndent');)_0x3dff9a['add'](_0x379703),_0x379703=_0x379703['nextSibling'];}return Array['from'](_0x3dff9a);}(_0x3a78b6));});};}_0x382a72['enableCommand']('numberedList',_0x4b5348('numberedList')),_0x382a72['enableCommand']('bulletedList',_0x4b5348('bulletedList')),_0x373e41&&_0x382a72['enableCommand']('todoList',_0x4b5348('todoList')),_0x382a72['enableCommand']('indentList',_0x398f97('indentList')),_0x382a72['enableCommand']('outdentList',_0x398f97('outdentList')),_0x373e41&&_0x382a72['enableCommand']('checkTodoList',()=>{const _0x1464f0=_0x482e06['commands']['get']('checkTodoList'),_0x2da271=Array['from'](_0x1464f0['_selectedElements']);_0x2da271['filter'](_0x550cfe=>_0x550cfe['getAttribute']('todoListChecked')!=_0x1464f0['value']),_0x482e06['model']['change'](()=>{for(const _0x11c482 of _0x2da271)_0x382a72['markBlockFormat'](_0x11c482,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1464f0['value']}]});});}),_0x382a72['descriptionFactory']['registerElementLabel']('listItem',_0x1ce7dc=>c(_0x1f5edb,'ELEMENT_LIST_ITEM',_0x1ce7dc)),_0x382a72['descriptionFactory']['registerDescriptionCallback'](_0x58dce2=>{if('formatBlock'!=_0x58dce2['type']&&'formatInline'!=_0x58dce2['type'])return;const {data:_0x22e4fd}=_0x58dce2;if(_0x22e4fd){if('numberedList'==_0x22e4fd['commandName']||'bulletedList'==_0x22e4fd['commandName']||'todoList'==_0x22e4fd['commandName'])switch(_0x22e4fd['commandName']['replace']('List','')){case'bulleted':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x14ab9e(c(_0x1f5edb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x22e4fd['commandName'])return{'type':'format','content':c(_0x1f5edb,'*Indent:*\x20%0',c(_0x1f5edb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x22e4fd['commandName'])return{'type':'format','content':c(_0x1f5edb,'*Outdent:*\x20%0',c(_0x1f5edb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x22e4fd['commandName'])return _0x22e4fd['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x1f5edb,'*Check\x20item*')}:{'type':'format','content':c(_0x1f5edb,'*Uncheck\x20item*')};}function _0x14ab9e(_0x24a25f){return{'type':'format','content':c(_0x1f5edb,'*Change\x20to:*\x20%0',_0x24a25f)};}});}}function Le(_0x4e2440){const _0x1d4473=_0x4e2440['getAttribute']('listIndent');if(0x0==_0x1d4473)return _0x4e2440;let _0x56f2ec=_0x4e2440;for(;_0x4e2440['previousSibling']&&_0x4e2440['previousSibling']['is']('element','listItem');){const _0x5d4001=_0x4e2440['previousSibling']['getAttribute']('listIndent');if(_0x5d4001==_0x1d4473)_0x56f2ec=_0x4e2440['previousSibling'];else{if(_0x5d4001<_0x1d4473)break;}_0x4e2440=_0x4e2440['previousSibling'];}return _0x56f2ec;}function Ee(_0x460d48){const _0x389574=[];if(_0x460d48['is']('element','listItem')&&_0x460d48['getAttribute']('listIndent')>0x0){let _0x50a20b=_0x460d48['nextSibling'];for(;_0x50a20b&&'listItem'==_0x50a20b['name']&&_0x50a20b['getAttribute']('listIndent')==_0x460d48['getAttribute']('listIndent');)_0x389574['push'](_0x50a20b),_0x50a20b=_0x50a20b['nextSibling'];}return _0x389574;}class Q extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x415e2a=this['editor']['config']['get']('list.properties'),_0xabc5cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x415e2a['styles']&&_0xabc5cc['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x415e2a['reversed']&&_0xabc5cc['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x415e2a['startIndex']&&_0xabc5cc['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xabc5cc['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1bae2d,_0x2520ed={}){const _0x4acee2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e6612=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x4acee2['markMultiRangeBlockFormat'](_0x4e6612,{'commandName':'listStyle','commandParams':[{'type':_0x2520ed['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x19347e,_0x2d4d23={}){const _0x1fbeab=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4829c5=this['_getSuggestionBlocks'](_0x1a938d=>_0x1a938d['is']('element','listItem')&&'numbered'===_0x1a938d['getAttribute']('listType'));if(_0x4829c5['length']<0x1)return;const _0x4057f6=_0x4829c5['map'](_0x1c0acb=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1c0acb,'before'),this['editor']['model']['createPositionAt'](_0x1c0acb,0x0)));this['editor']['model']['change'](()=>{_0x1fbeab['markMultiRangeBlockFormat'](_0x4057f6,{'commandName':'listReversed','commandParams':[{'reversed':_0x2d4d23['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x5c0d36,_0x208277={}){const _0x2c22f2=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa28d9=this['_getSuggestionBlocks'](_0x27e05e=>_0x27e05e['is']('element','listItem')&&'numbered'===_0x27e05e['getAttribute']('listType'));if(_0xa28d9['length']<0x1)return;const _0x5b9384=_0xa28d9['map'](_0x5f176d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5f176d,'before'),this['editor']['model']['createPositionAt'](_0x5f176d,0x0)));this['editor']['model']['change'](()=>{_0x2c22f2['markMultiRangeBlockFormat'](_0x5b9384,{'commandName':'listStart','commandParams':[{'startIndex':_0x208277['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3998fc){if('formatBlock'!=_0x3998fc['type']&&'formatInline'!=_0x3998fc['type'])return;const _0xfd9cad=this['editor']['locale'],{data:_0x3ee231}=_0x3998fc;if(!_0x3ee231)return;let _0x540fd7,_0x5141b3;switch(_0x3ee231['commandName']){case'listStyle':_0x540fd7='*Change\x20to:*\x20%0',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7,c(_0xfd9cad,this['_getTranslationKeyForListStyle'](_0x3ee231['commandParams'][0x0]['type'])))};break;case'listReversed':_0x540fd7=_0x3ee231['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7)};break;case'listStart':_0x540fd7='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5141b3={'type':'format','content':c(_0xfd9cad,_0x540fd7,_0x3ee231['commandParams'][0x0]['startIndex'])};}return _0x5141b3;}['_getSuggestionBlocksForListStyle'](){const _0x5879d2=this['editor']['plugins']['get']('LegacyListUtils');let _0x482ba8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x482ba8[0x0]?.['is']('element','listItem')&&_0x482ba8['unshift'](..._0x5879d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x482ba8[_0x482ba8['length']-0x1]?.['is']('element','listItem')&&_0x482ba8['push'](..._0x5879d2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x482ba8=[...new Set(_0x482ba8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x482ba8=_0x482ba8['filter'](_0x1d83d6=>_0x1d83d6['is']('element','listItem'))),_0x482ba8;}['_getSuggestionBlocks'](_0x1c43e5){const _0x2e7a51=this['editor']['plugins']['get']('LegacyListUtils');let _0x13f004=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x1c43e5)['map'](_0xa4beca=>{const _0xdc45e4=this['editor']['model']['createPositionAt'](_0xa4beca,0x0);return[..._0x2e7a51['getSiblingNodes'](_0xdc45e4,'backward'),..._0x2e7a51['getSiblingNodes'](_0xdc45e4,'forward')];})['flat']();return _0x13f004=[...new Set(_0x13f004)],_0x13f004;}['_getTranslationKeyForListStyle'](_0x51b3be){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x51b3be)||'default')['toUpperCase']()+'_LIST_'+_0x51b3be['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x51b88f{['afterInit'](){const _0x5b7024=this['editor'];if(!_0x5b7024['plugins']['has']('MediaEmbedEditing'))return;const _0x3dfa20=_0x5b7024['plugins']['get']('TrackChangesEditing'),_0x5ca8ca=_0x5b7024['locale'];_0x3dfa20['enableCommand']('mediaEmbed'),_0x3dfa20['descriptionFactory']['registerElementLabel']('media',_0x5a1cb1=>c(_0x5ca8ca,'ELEMENT_MEDIA',_0x5a1cb1)),_0x5b7024['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24b08f,{writer:_0x1cfa0d,options:_0x18df07})=>{if(_0x18df07['showSuggestionHighlights'])return _0x1cfa0d['createEmptyElement']('div');},'converterPriority':'high'}),_0x5b7024['data']['downcastDispatcher']['on']('attribute:url:media',(_0x27f544,_0x235521,_0x22c5c8)=>{_0x22c5c8['options']['showSuggestionHighlights']&&_0x27f544['stop']();},{'priority':'high'});}}class pt extends _0x51b88f{['afterInit'](){const _0x2fd06b=this['editor'];_0x2fd06b['plugins']['has']('MentionEditing')&&_0x2fd06b['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class wt extends _0x51b88f{['afterInit'](){const _0x27f8d4=this['editor'];if(!_0x27f8d4['plugins']['has']('MergeFieldsEditing'))return;const _0x192ad7=_0x27f8d4['plugins']['get']('TrackChangesEditing'),_0xd1582d=_0x27f8d4['locale'];_0x192ad7['enableCommand']('insertMergeField'),_0x192ad7['enableCommand']('insertMergeFieldBlock'),_0x192ad7['enableCommand']('insertMergeFieldImage'),_0x192ad7['descriptionFactory']['registerElementLabel']('mergeField',_0x25c108=>c(_0xd1582d,'ELEMENT_MERGE_FIELD',_0x25c108)),_0x192ad7['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x385f6b=>c(_0xd1582d,'ELEMENT_MERGE_FIELD',_0x385f6b)),_0x192ad7['descriptionFactory']['registerDescriptionCallback'](_0x527103=>{if('insertion'!=_0x527103['type']&&'deletion'!=_0x527103['type'])return;const _0x28de6d=_0x527103['getContainedElement']();if(null==_0x28de6d)return;const _0x20353e=_0x27f8d4['plugins']['get']('MergeFieldsEditing');let _0x2dda44;switch(_0x20353e['getMergeFieldType'](_0x28de6d)){case null:return;case'image':{const _0x420782=_0x20353e['unwrapAffixes'](_0x28de6d['getAttribute']('src'));_0x2dda44=_0x20353e['getLabel'](_0x420782)||_0x420782;break;}default:{const _0x463d86=_0x28de6d['getAttribute']('id');_0x2dda44=_0x20353e['getLabel'](_0x463d86)||_0x463d86;break;}}return'insertion'==_0x527103['type']?{'type':'insertion','content':c(_0xd1582d,'*Insert:*\x20%0','\x22'+_0x2dda44+'\x22\x20'+c(_0xd1582d,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':c(_0xd1582d,'*Remove:*\x20%0','\x22'+_0x2dda44+'\x22\x20'+c(_0xd1582d,'ELEMENT_MERGE_FIELD'))};});}}class kt extends _0x51b88f{['afterInit'](){const _0xb0b7b2=this['editor'],_0x156b4a=_0xb0b7b2['plugins']['get']('TrackChangesEditing');_0xb0b7b2['plugins']['has']('MultiLevelList')&&(_0x156b4a['enableDefaultAttributesIntegration']('multiLevelList'),_0x156b4a['registerBlockAttribute']('listMarkerStyle'),_0x156b4a['descriptionFactory']['registerDescriptionCallback'](_0x31ad47=>this['handleDescriptions'](_0x31ad47)));}['handleDescriptions'](_0x225afc){const _0x165fa1=this['editor']['locale'],{data:_0x258b0c}=_0x225afc,_0x5c4c6d={'type':'format','content':''};if(_0x258b0c&&'listMarkerStyle'==_0x258b0c['key']){if(!_0x258b0c['oldValue'])return{'type':'format','content':c(_0x165fa1,'*Set\x20format:*\x20%0',c(_0x165fa1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x258b0c['newValue']+')'};if(!_0x258b0c['newValue']){let _0x50063=_0x225afc['head'];for(;_0x50063;){if(_0x50063['data']&&'listType'==_0x50063['data']['key']&&_0x50063['data']['newValue'])return _0x5c4c6d;_0x50063=_0x50063['next'];}return{'type':'format','content':c(_0x165fa1,'*Remove\x20format:*\x20%0',c(_0x165fa1,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x258b0c['oldValue']+')'};}}}}class bt extends _0x51b88f{['afterInit'](){const _0x2af307=this['editor'];if(!_0x2af307['plugins']['has']('PageBreakEditing'))return;_0x2af307['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x316d19=_0x2af307['plugins']['get']('TrackChangesEditing'),_0x2da2a0=_0x2af307['locale'];_0x316d19['descriptionFactory']['registerElementLabel']('pageBreak',_0x4f57b4=>c(_0x2da2a0,'ELEMENT_PAGE_BREAK',_0x4f57b4));}}class yt extends _0x51b88f{['afterInit'](){const _0x9ef33c=this['editor'];if(!_0x9ef33c['plugins']['has']('Paragraph'))return;const _0x5d1120=_0x9ef33c['locale'],_0x360a45=_0x9ef33c['plugins']['get']('TrackChangesEditing');_0x360a45['descriptionFactory']['registerElementLabel']('paragraph',_0x42e320=>c(_0x5d1120,'ELEMENT_PARAGRAPH',_0x42e320)),_0x360a45['enableDefaultAttributesIntegration']('paragraph'),_0x360a45['enableCommand']('insertParagraph'),_0x9ef33c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9ef33c),{'priority':'highest'}),_0x9ef33c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1113fb,_0x19d121,_0x434efd)=>{_0x434efd['options']['showSuggestionHighlights']&&nr(_0x9ef33c,{'showActiveMarker':!0x1})(_0x1113fb,_0x19d121,_0x434efd);},{'priority':'highest'});const _0x416636=_0x360a45['descriptionFactory'];_0x416636['registerDescriptionCallback'](_0x1981fc=>{if('insertion'!==_0x1981fc['type'])return;const {start:_0x1ec83f,end:_0x4df3e8}=_0x1981fc['getFirstRange']();if(!_0x1ec83f['isTouching'](_0x4df3e8)||!_0x1ec83f['nodeAfter'])return;const _0x8751c6=_0x9ef33c['model']['schema'],_0x7a78a8=_0x1ec83f['nodeAfter'];return _0x8751c6['isBlock'](_0x7a78a8)&&!_0x8751c6['isLimit'](_0x7a78a8)&&_0x8751c6['checkChild'](_0x7a78a8,'$text')?{'type':'insertion','content':c(_0x5d1120,'*Insert:*\x20%0',_0x416636['getItemLabel'](_0x7a78a8,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2d96db=this['editor'],_0x450b65=_0x2d96db['locale'];_0x2d96db['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe6b6c9=>{if('formatBlock'!=_0xe6b6c9['type'])return;const {data:_0x365d6d}=_0xe6b6c9;return _0x365d6d&&'paragraph'==_0x365d6d['commandName']?{'type':'format','content':c(_0x450b65,'*Change\x20to:*\x20%0',c(_0x450b65,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x2056cf,{showActiveMarker:_0x372548=!0x0}={}){return(_0x417b12,_0x575e34,_0x4da483)=>{const _0x5237a4=_0x2056cf['plugins']['get']('TrackChangesEditing'),_0x4540a4=_0x575e34['markerRange']['start'],_0x31dfdd=_0x575e34['markerRange']['end'],_0x1e23a1=_0x2056cf['model']['schema'];if(!_0x4540a4['isTouching'](_0x31dfdd)||!_0x4540a4['nodeAfter'])return;const _0x18f716=_0x4540a4['nodeAfter'];if(_0x1e23a1['isBlock'](_0x18f716)&&!_0x1e23a1['isLimit'](_0x18f716)&&_0x1e23a1['checkChild'](_0x18f716,'$text')){if(!_0x4da483['consumable']['consume'](_0x575e34['markerRange'],_0x417b12['name']))return;const {authorId:_0x45864a}=_0x5237a4['_splitMarkerName'](_0x575e34['markerName']),_0x395ad4=_0x4da483['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x45864a}),_0x28b02a=_0x4da483['mapper']['toViewPosition'](_0x31dfdd);_0x372548&&_0x5237a4['activeMarkers']['includes'](_0x575e34['markerName'])&&_0x4da483['writer']['addClass']('ck-suggestion-marker--active',_0x395ad4),_0x4da483['writer']['insert'](_0x28b02a,_0x395ad4),_0x4da483['mapper']['bindElementToMarker'](_0x395ad4,_0x575e34['markerName']);}};}class jt extends _0x51b88f{['afterInit'](){const _0x520660=this['editor'];_0x520660['commands']['get']('replaceSource')&&_0x520660['plugins']['get']('TrackChangesEditing')['enableCommand']('replaceSource');}}class St extends _0x51b88f{['afterInit'](){const _0x51f8d2=this['editor'];if(!_0x51f8d2['plugins']['has']('RemoveFormatEditing'))return;_0x51f8d2['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x411fdb=this['editor'];_0x411fdb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45f20f=>{if('formatBlock'!=_0x45f20f['type']&&'formatInline'!=_0x45f20f['type'])return;const {data:_0x46efe5}=_0x45f20f;return _0x46efe5&&'removeFormat'==_0x46efe5['commandName']?{'type':'format','content':c(_0x411fdb['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class At extends _0x51b88f{['afterInit'](){const _0x528fe1=this['editor'];if(!_0x528fe1['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53233e=_0x528fe1['plugins']['get']('TrackChangesEditing');_0x53233e['enableCommand']('goToPreviousRestrictedEditingException'),_0x53233e['enableCommand']('goToNextRestrictedEditingException');const _0x307c2a=_0x528fe1['plugins']['get']('RestrictedEditingModeEditing');_0x307c2a['enableCommand']('trackChanges'),_0x307c2a['enableCommand']('acceptSuggestion'),_0x307c2a['enableCommand']('discardSuggestion'),_0x307c2a['enableCommand']('acceptAllSuggestions'),_0x307c2a['enableCommand']('discardAllSuggestions'),_0x307c2a['enableCommand']('acceptSelectedSuggestions'),_0x307c2a['enableCommand']('discardSelectedSuggestions');}}class It extends _0x51b88f{['afterInit'](){const _0x5c7ac2=this['editor'];if(!_0x5c7ac2['plugins']['has']('ShiftEnter'))return;const _0x51ebb7=_0x5c7ac2['plugins']['get']('TrackChangesEditing');_0x51ebb7['enableCommand']('shiftEnter'),_0x5c7ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x5c7ac2),{'priority':'high'}),_0x5c7ac2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x5c7ac2),{'priority':'high'}),_0x5c7ac2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1731f1,_0x1354b8,_0x1a7ac1)=>{_0x1a7ac1['options']['showSuggestionHighlights']&&je(_0x5c7ac2,{'showActiveMarker':!0x1})(_0x1731f1,_0x1354b8,_0x1a7ac1);}),_0x51ebb7['descriptionFactory']['registerElementLabel']('softBreak',_0x58fdf9=>c(_0x5c7ac2['locale'],'ELEMENT_LINE_BREAK',_0x58fdf9));}}function je(_0x3ce563,{showActiveMarker:_0x2c5666=!0x0}={}){return(_0x462ca8,_0x262822,_0x426e02)=>{const _0x5a13c4=_0x3ce563['plugins']['get']('TrackChangesEditing');if(!_0x426e02['consumable']['test'](_0x262822['markerRange'],_0x462ca8['name']))return;const _0x59a925=_0x3ce563['model'];for(const _0x882f47 of _0x262822['markerRange']['getItems']()){if(!_0x882f47['is']('element','softBreak'))continue;const _0x6d0f3c='deletion'==_0x262822['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2b6983}=_0x5a13c4['_splitMarkerName'](_0x262822['markerName']),_0x1f9992=_0x426e02['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d0f3c,'data-author-id':_0x2b6983}),_0x46feb6=_0x426e02['mapper']['toViewPosition'](_0x59a925['createPositionBefore'](_0x882f47));_0x2c5666&&_0x5a13c4['activeMarkers']['includes'](_0x262822['markerName'])&&_0x426e02['writer']['addClass']('ck-suggestion-marker--active',_0x1f9992),_0x426e02['writer']['insert'](_0x46feb6,_0x1f9992),_0x426e02['mapper']['bindElementToMarker'](_0x1f9992,_0x262822['markerName']);}};}class _t extends _0x51b88f{['afterInit'](){const _0x53c2a1=this['editor'],_0x18ed55=_0x53c2a1['model'],_0x265a33=_0x53c2a1['locale'];if(!_0x53c2a1['plugins']['has']('StandardEditingModeEditing'))return;const _0x5d5b8b=_0x53c2a1['plugins']['get']('TrackChangesEditing'),_0x4e3755='restrictedEditingException',_0x321f7b=_0x53c2a1['commands']['get'](_0x4e3755);_0x5d5b8b['enableCommand'](_0x4e3755,(_0x52a98d,_0xab21e5={})=>{const _0x54792a=_0x18ed55['document']['selection'];if(_0x54792a['isCollapsed'])return void _0x52a98d(_0xab21e5);const _0x5944d9=void 0x0!==_0xab21e5['forceValue']?_0xab21e5['forceValue']:!_0x321f7b['value'];_0x18ed55['change'](()=>{const _0x1529f6=Array['from'](_0x54792a['getRanges']());for(const _0x5bd48e of _0x1529f6){const _0x195a47=_0x5944d9?[_0x5bd48e]:io(_0x4e3755,_0x5bd48e,_0x18ed55);for(const _0x5f55bb of _0x195a47)_0x5d5b8b['markInlineFormat'](_0x5f55bb,{'commandName':_0x4e3755,'commandParams':[{'forceValue':_0x5944d9}]});}});}),_0x5d5b8b['descriptionFactory']['registerDescriptionCallback'](_0x23528f=>{if('formatBlock'!=_0x23528f['type']&&'formatInline'!=_0x23528f['type'])return;const {data:_0x52d7ee}=_0x23528f;return _0x52d7ee&&_0x52d7ee['commandName']==_0x4e3755?_0x52d7ee['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0x265a33,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':c(_0x265a33,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class vt extends _0x51b88f{['afterInit'](){const _0x10af21=this['editor'];if(!_0x10af21['plugins']['has']('Style')||!_0x10af21['plugins']['has']('DataSchema'))return;const _0x594897=_0x10af21['plugins']['get']('TrackChangesEditing'),_0x490ac3=_0x10af21['locale'],_0x38172a=_0x10af21['config']['get']('style')||{},_0x5993ff=_0x10af21['plugins']['get']('GeneralHtmlSupport'),_0x3fcabc=_0x10af21['plugins']['get']('StyleUtils')['normalizeConfig'](_0x10af21['plugins']['get']('DataSchema'),_0x38172a['definitions']);_0x594897['enableDefaultAttributesIntegration']('style');const _0x1f2a5a=new Set();for(const _0x2945ce of _0x3fcabc['block']){const _0x2a510c=_0x5993ff['getGhsAttributeNameForElement'](_0x2945ce['element']);_0x1f2a5a['add'](_0x2a510c);}const _0xc9367=new Set();for(const _0x37e289 of _0x3fcabc['inline']){const _0x5e3e67=_0x5993ff['getGhsAttributeNameForElement'](_0x37e289['element']);_0xc9367['add'](_0x5e3e67);for(const _0x102556 of _0x37e289['ghsAttributes'])_0xc9367['add'](_0x102556);}for(const _0x3766ab of _0x1f2a5a)_0x594897['registerBlockAttribute'](_0x3766ab),_0x594897['descriptionFactory']['registerAttributeLabel'](_0x3766ab,c(_0x490ac3,'FORMAT_STYLE'));for(const _0x12c0d4 of _0xc9367)_0x594897['registerInlineAttribute'](_0x12c0d4),_0x594897['descriptionFactory']['registerAttributeLabel'](_0x12c0d4,c(_0x490ac3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4757c6=this['editor'],_0xd20c68=_0x4757c6['locale'];_0x4757c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2376d0=>{if('formatBlock'!=_0x2376d0['type']&&'formatInline'!=_0x2376d0['type'])return;const {data:_0x599063}=_0x2376d0;return _0x599063&&'style'===_0x599063['commandName']?_0x599063['commandParams'][0x0]['forceValue']?{'type':'format','content':c(_0xd20c68,'*Set\x20format:*\x20%0',_0x599063['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':c(_0xd20c68,'*Remove\x20format:*\x20%0',_0x599063['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class Ct extends _0x51b88f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3c2b09){super(_0x3c2b09),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0xe4a508=this['editor'],_0x256441=_0xe4a508['model']['document']['selection'];if(!_0xe4a508['plugins']['has']('TableEditing'))return;const _0x5a2258=_0xe4a508['locale'],_0x6a63d3=_0xe4a508['plugins']['get']('TrackChangesEditing'),_0x3e8e00=_0xe4a508['plugins']['get']('TableUtils');_0x6a63d3['descriptionFactory']['registerElementLabel']('table',_0x401a2f=>c(_0x5a2258,'ELEMENT_TABLE',_0x401a2f)),this['_setupColumnsRowsFixing'](),_0x6a63d3['enableCommand']('insertTable'),_0x6a63d3['enableCommand']('selectTableRow'),_0x6a63d3['enableCommand']('selectTableColumn');for(const _0x35ff11 of['insertTableRowAbove','insertTableRowBelow']){const _0x502e87=_0xe4a508['commands']['get'](_0x35ff11);_0x6a63d3['enableCommand'](_0x35ff11,_0x56d32d=>{_0xe4a508['model']['change'](_0x4e25e4=>{_0x56d32d();const _0x30d0bc='above'===_0x502e87['order'],_0x4af91b=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x1f4df8=_0x3e8e00['getRowIndexes'](_0x4af91b),_0x2fda94=_0x30d0bc?_0x1f4df8['first']-0x1:_0x1f4df8['last']+0x1,_0x1f7c83=_0x4af91b[0x0]['findAncestor']('table'),_0xcdd597=_0x3e8e00['createTableWalker'](_0x1f7c83,{'startRow':_0x2fda94,'endRow':_0x2fda94}),_0x1188b0=Array['from'](_0xcdd597)['map'](_0x410f71=>_0x4e25e4['createRangeOn'](_0x410f71['cell']));_0x6a63d3['markMultiRangeInsertion'](_0x1188b0,'tableRow');});});}for(const _0x3f2201 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3c1800=_0xe4a508['commands']['get'](_0x3f2201);_0x6a63d3['enableCommand'](_0x3f2201,_0x20d950=>{_0xe4a508['model']['change'](_0x20a4cb=>{_0x20d950();const _0x33d52c='left'===_0x3c1800['order'],_0x57e078=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x3b823b=_0x3e8e00['getColumnIndexes'](_0x57e078),_0x52a8fd=_0x33d52c?_0x3b823b['first']-0x1:_0x3b823b['last']+0x1,_0x7822eb=_0x57e078[0x0]['findAncestor']('table'),_0x2a9462=_0x3e8e00['createTableWalker'](_0x7822eb,{'startRow':0x0,'column':_0x52a8fd,'includeAllSlots':!0x1}),_0x1a8640=Array['from'](_0x2a9462)['map'](_0x45f208=>_0x20a4cb['createRangeOn'](_0x45f208['cell']));_0x6a63d3['markMultiRangeInsertion'](_0x1a8640,'tableColumn');});});}for(const _0x5c6188 of['removeTableRow','removeTableColumn']){const _0x6ea0cb=_0x5c6188['substr'](0xb),_0x1af02b=_0x6ea0cb['toLowerCase'](),_0x4fe4b0=_0x1af02b['substr'](0x0,0x3)+'span',_0x2fb945='table'+_0x6ea0cb,_0x21b681='min'+_0x6ea0cb,_0x2ee6ef='max'+_0x6ea0cb;_0x6a63d3['enableCommand'](_0x5c6188,()=>{_0xe4a508['model']['change'](_0x3cdba1=>{const _0x49f1eb=_0x3e8e00['getSelectionAffectedTableCells'](_0x256441),_0x151ecd=_0x49f1eb[0x0]['findAncestor']('table');let _0x16edfc;if('removeTableRow'==_0x5c6188){const _0x1dda2b=_0x3e8e00['getRowIndexes'](_0x49f1eb);_0x16edfc={'startRow':_0x1dda2b['first'],'endRow':_0x1dda2b['last'],'includeAllSlots':!0x0};}else{const _0x4c6471=_0x3e8e00['getColumnIndexes'](_0x49f1eb);_0x16edfc={'startColumn':_0x4c6471['first'],'endColumn':_0x4c6471['last'],'includeAllSlots':!0x0};}const _0x4c43f5=_0x3e8e00['createTableWalker'](_0x151ecd,_0x16edfc),_0x26019a=Array['from'](_0x4c43f5)['map'](({cell:_0x1a3314})=>_0x1a3314),_0x1bed9a=Ne(_0x26019a['filter'](_0x3337a0=>_0x3337a0['hasAttribute'](_0x4fe4b0))),_0x2b95e4=Ne(_0x26019a['filter'](_0x20a42d=>!_0x20a42d['hasAttribute'](_0x4fe4b0)))['map'](_0x3de77b=>_0x3cdba1['createRangeOn'](_0x3de77b)),_0x6267dc=_0x6a63d3['markMultiRangeDeletion'](_0x2b95e4,_0x2fb945);if(_0x6267dc&&('tableRow'==_0x6267dc['subType']||'tableColumn'==_0x6267dc['subType'])){const _0x2a42e1=this['_getSuggestionCoords'](_0x6267dc);for(const _0xe1624c of _0x1bed9a){const _0x47fe52=_0x3cdba1['createRangeOn'](_0xe1624c),_0x1d5b7b=_0x3e8e00['getCellLocation'](_0xe1624c),_0x120811=_0xe1624c['getAttribute'](_0x4fe4b0)-0x1,_0x3edc36=_0x2a42e1[_0x21b681],_0x2eee34=_0x2a42e1[_0x2ee6ef];_0x3edc36<=_0x1d5b7b[_0x1af02b]&&_0x1d5b7b[_0x1af02b]+_0x120811<=_0x2eee34&&_0x6267dc['addRange'](_0x47fe52);}}});});}function _0x502d0b(_0x55e06e){const _0x4d977b=Array['from'](_0x256441['getRanges']())['map'](_0x2403a1=>_0x221782['fromRange'](_0x2403a1));_0xe4a508['model']['change'](_0x390492=>{const _0x547df1=_0x390492['batch'];_0x55e06e=_0x55e06e['filter'](_0x5c841e=>'$graveyard'!=_0x5c841e['root']['rootName']),_0x390492['setSelection'](_0x55e06e),_0xe4a508['commands']['get']('removeTableRow')['refresh'](),_0xe4a508['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0xe4a508['model']['enqueueChange'](()=>{_0xe4a508['model']['enqueueChange'](_0x547df1,_0x156166=>{const _0x5b2b2e=_0x4d977b['filter'](_0x41939e=>'$graveyard'!=_0x41939e['root']['rootName']);_0x5b2b2e['length']>0x0&&_0x156166['setSelection'](_0x5b2b2e);for(const _0x480376 of _0x4d977b)_0x480376['detach']();});});});}function _0xbba8ba(_0x1322fc){_0xe4a508['model']['change'](_0xac0d3=>{const _0x80df44=Array['from'](_0x256441['getRanges']())['map'](_0x130826=>_0x221782['fromRange'](_0x130826)),_0xe51eb=[];for(const _0x1ae12c of _0x1322fc)for(const _0x4a9a2c of _0x1ae12c['getItems']({'shallow':!0x0}))_0xe51eb['push'](_0x4a9a2c);for(const _0x542c9b of _0xe51eb)'$graveyard'!=_0x542c9b['root']['rootName']&&(_0xac0d3['setSelection'](_0xac0d3['createPositionAt'](_0x542c9b,0x0)),_0xe4a508['commands']['get']('removeTableColumn')['refresh'](),_0xe4a508['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4b5985=_0x80df44['filter'](_0x3e78c1=>'$graveyard'!=_0x3e78c1['root']['rootName']);_0x4b5985['length']>0x0&&_0xac0d3['setSelection'](_0x4b5985);for(const _0x478080 of _0x80df44)_0x478080['detach']();});}function _0x5daba6(_0x1fd9f6,_0x1f2d8b){return _0x1f2d8b['every'](_0x1cc9c0=>_0x1fd9f6['some'](_0xac3c28=>_0xac3c28['end']['isEqual'](_0x1cc9c0['start'])||_0x1cc9c0['end']['isEqual'](_0xac3c28['start'])));}function _0x42a294(_0x13f812,_0x26141f){return!_0x13f812['some'](_0x228cf0=>_0x26141f['some'](_0x52f2c=>_0x228cf0['isIntersecting'](_0x52f2c)))&&_0x13f812['some'](_0xb10ec8=>_0x26141f['some'](_0x15c128=>_0xb10ec8['end']['isTouching'](_0x15c128['start'])));}_0xe4a508['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e72ce,_0x2fe6ec,_0x2a3d78)=>{if(!_0x2a3d78['options']['showSuggestionHighlights'])return;const _0x292921=_0x2fe6ec['item'];if(!_0x292921)return;const _0x2cddad=_0x2a3d78['mapper']['toViewElement'](_0x292921);function _0x1b9298(_0x16740f){return Array['isArray'](_0x16740f)?_0x16740f:[_0x16740f];}_0x2cddad&&'tableCell'===_0x292921['name']&&_0x9f7b0f(_0x2cddad,_0x2a3d78['writer'],(_0x545bc5,_0x2ee280,_0x68dd5d)=>_0x68dd5d['addClass'](_0x1b9298(_0x2ee280['classes']),_0x545bc5),(_0x6324f5,_0x26a1b6,_0xf067ad)=>_0xf067ad['removeClass'](_0x1b9298(_0x26a1b6['classes']),_0x6324f5));},{'priority':'highest'}),_0x6a63d3['descriptionFactory']['registerDescriptionCallback'](_0x3031b2=>{if('insertion'!=_0x3031b2['type']&&'deletion'!=_0x3031b2['type'])return;const _0x4b429d=_0x3031b2['getContainedElement']();if(null!=_0x4b429d&&_0x4b429d['is']('element','table')){if('insertion'==_0x3031b2['type']){const _0x21416c=_0x3031b2['getItems']()['filter'](_0x55cecf=>_0x55cecf['is']('$textProxy'))['map'](_0x25f242=>_0x25f242['data']);if(_0x21416c['length'])return{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x21416c['join']('\x20')+'\x22'))};}if('deletion'==_0x3031b2['type']){const _0x564900=_0x3031b2['getItems']()['filter'](_0x4cbd0b=>_0x4cbd0b['is']('$textProxy'))['map'](_0x19417d=>_0x19417d['data']);if(_0x564900['length'])return{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x564900['join']('\x20')+'\x22'))};}}}),_0x6a63d3['descriptionFactory']['registerDescriptionCallback'](_0x20123b=>{if('tableRow'==_0x20123b['subType']){const _0x11b8cc=_0x20123b['getItems']()['filter'](_0x9b92b2=>_0x9b92b2['is']('$textProxy'))['map'](_0x23f56c=>_0x23f56c['data']),_0x3821e7=this['_getSuggestionCoords'](_0x20123b),_0x2f5646=_0x3821e7['maxRow']-_0x3821e7['minRow']+0x1;if('insertion'==_0x20123b['type'])return _0x11b8cc['length']?{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f5646,'\x22'+_0x11b8cc['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW',_0x2f5646))};if('deletion'==_0x20123b['type'])return _0x11b8cc['length']?{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2f5646,'\x22'+_0x11b8cc['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_ROW',_0x2f5646))};}if('tableColumn'==_0x20123b['subType']){const _0x33a297=_0x20123b['getItems']()['filter'](_0x28e23d=>_0x28e23d['is']('$textProxy'))['map'](_0x34d434=>_0x34d434['data']),_0x3471ce=this['_getSuggestionCoords'](_0x20123b),_0x34f8ff=_0x3471ce['maxColumn']-_0x3471ce['minColumn']+0x1;if('insertion'==_0x20123b['type'])return _0x33a297['length']?{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f8ff,'\x22'+_0x33a297['join']('\x20')+'\x22']))}:{'type':'insertion','content':c(_0x5a2258,'*Insert:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN',_0x34f8ff))};if('deletion'==_0x20123b['type'])return _0x33a297['length']?{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x34f8ff,'\x22'+_0x33a297['join']('\x20')+'\x22']))}:{'type':'deletion','content':c(_0x5a2258,'*Remove:*\x20%0',c(_0x5a2258,'ELEMENT_TABLE_COLUMN',_0x34f8ff))};}}),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x502d0b),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x502d0b),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0xbba8ba),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0xbba8ba),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5daba6),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5daba6),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x42a294),_0x6a63d3['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x42a294);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5575d1=this['editor'],_0x48a111=_0x5575d1['model']['document']['selection'];return(_0x512039,_0x28f569)=>{_0x5575d1['model']['change'](_0x12b1ea=>{const {commandName:_0x144b89,commandParams:_0x35a9e2}=_0x28f569;let _0x4d969f=_0x512039[0x0]['end']['nodeBefore'];_0x35a9e2&&_0x35a9e2[0x0]&&!0x1===_0x35a9e2[0x0]['forceValue']&&(_0x4d969f=_0x512039[0x0]['start']['nodeAfter']);const _0x2407af=_0x12b1ea['createRangeIn'](_0x4d969f);if('$graveyard'==_0x2407af['root']['rootName'])return;const _0x512ae7=Array['from'](_0x48a111['getRanges']())['map'](_0x4b2d58=>_0x221782['fromRange'](_0x4b2d58));_0x12b1ea['setSelection'](_0x2407af),_0x5575d1['commands']['get'](_0x144b89)['refresh'](),_0x35a9e2['push']({'forceDefaultExecution':!0x0}),_0x5575d1['execute'](_0x144b89,..._0x35a9e2);const _0x497be7=_0x512ae7['filter'](_0xc6b79b=>'$graveyard'!=_0xc6b79b['root']['rootName']);_0x497be7['length']>0x0&&_0x12b1ea['setSelection'](_0x497be7);for(const _0x3fe3dc of _0x512ae7)_0x3fe3dc['detach']();});};}['_getCoordsForCells'](_0x4f3f44){const _0xae9f03=this['editor']['plugins']['get']('TableUtils');let _0x2362a2=Number['MAX_SAFE_INTEGER'],_0x5f4250=Number['MIN_SAFE_INTEGER'],_0x5760e9=Number['MAX_SAFE_INTEGER'],_0x1d222f=Number['MIN_SAFE_INTEGER'];for(const _0x56a780 of _0x4f3f44){if('$graveyard'==_0x56a780['root']['rootName'])continue;const {row:_0x5beeb4,column:_0xefef11}=_0xae9f03['getCellLocation'](_0x56a780),_0x3b2601=_0x56a780['hasAttribute']('rowspan')?_0x56a780['getAttribute']('rowspan')-0x1:0x0,_0x200b8a=_0x56a780['hasAttribute']('colspan')?_0x56a780['getAttribute']('colspan')-0x1:0x0;_0x2362a2=_0x5beeb4<_0x2362a2?_0x5beeb4:_0x2362a2,_0x5f4250=_0x5beeb4+_0x3b2601>_0x5f4250?_0x5beeb4+_0x3b2601:_0x5f4250,_0x5760e9=_0xefef11<_0x5760e9?_0xefef11:_0x5760e9,_0x1d222f=_0xefef11+_0x200b8a>_0x1d222f?_0xefef11+_0x200b8a:_0x1d222f;}return{'minRow':_0x2362a2,'maxRow':_0x5f4250,'minColumn':_0x5760e9,'maxColumn':_0x1d222f};}['_setupColumnsRowsFixing'](){const _0x3a65dd=this['editor'],_0x55deb8=_0x3a65dd['plugins']['get']('TrackChangesEditing'),_0x4bd1f7=_0x3a65dd['plugins']['get']('TableUtils');_0x3a65dd['model']['document']['on']('change:data',()=>{const _0x3f7381=Array['from'](_0x3a65dd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3f11a4,data:_0x37c482}of _0x3f7381){const {group:_0x19784d,id:_0x28652f,subType:_0x5f30a1}=_0x55deb8['_splitMarkerName'](_0x3f11a4);if('suggestion'!=_0x19784d)continue;if(null!=_0x37c482['oldRange'])continue;const _0x8ae8bf=_0x55deb8['getSuggestion'](_0x28652f);this['_tablePostFixingSubtypes']['includes'](_0x5f30a1)&&this['_tableSuggestions']['add'](_0x8ae8bf);}},{'priority':'low'});const _0x6ceaf4=(_0x2844f0,_0x1553e7)=>{let _0x5aa379=!0x1;const _0x1bcb3d=_0x1553e7['createRangeOn'](_0x2844f0),_0xa2970d=_0x2844f0['findAncestor']('table'),_0x4127fa=_0x4bd1f7['getCellLocation'](_0x2844f0);for(const _0x188a8c of this['_tableSuggestions']){const _0x29876b=_0x188a8c['subType'],_0x397037=_0x29876b['startsWith']('tablePaste'),_0x39f134=_0x29876b['substr'](_0x397037?0xa:0x5),_0x14db0a=_0x39f134['toLowerCase'](),_0x326f13=_0x14db0a['substr'](0x0,0x3)+'span',_0x51e2f7='min'+_0x39f134,_0x169267='max'+_0x39f134;if(!_0x188a8c['isInContent'])continue;if(_0xa2970d!=_0x188a8c['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x188a8c['isIntersectingWithRange'](_0x1bcb3d))continue;const _0x76708=_0x2844f0['hasAttribute'](_0x326f13)?_0x2844f0['getAttribute'](_0x326f13)-0x1:0x0,_0xbbd232=this['_getSuggestionCoords'](_0x188a8c),_0x2a9ca7=_0xbbd232[_0x51e2f7],_0x45e74b=_0xbbd232[_0x169267];_0x2a9ca7<=_0x4127fa[_0x14db0a]&&_0x4127fa[_0x14db0a]+_0x76708<=_0x45e74b&&(_0x188a8c['addRange'](_0x1bcb3d),_0x5aa379=!0x0);}return _0x5aa379;};_0x3a65dd['model']['document']['registerPostFixer'](_0x5829a4=>{let _0x10348a=!0x1;for(const _0x3ca4c5 of _0x3a65dd['model']['document']['differ']['getChanges']())if('insert'==_0x3ca4c5['type']){if('tableRow'==_0x3ca4c5['name']){for(const _0x1365a7 of _0x3ca4c5['position']['nodeAfter']['getChildren']())_0x10348a=_0x10348a||_0x6ceaf4(_0x1365a7,_0x5829a4);}else'tableCell'==_0x3ca4c5['name']&&(_0x10348a=_0x10348a||_0x6ceaf4(_0x3ca4c5['position']['nodeAfter'],_0x5829a4));}return _0x10348a;});}['_getSuggestionCoords'](_0x16fdc3){return this['_getCoordsForCells'](_0x16fdc3['getRanges']()['map'](_0x26619a=>_0x26619a['start']['nodeAfter']));}}function Ne(_0x2f9704){return Array['from'](new Set(_0x2f9704)['values']());}class Nt extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x2eed0c=this['editor'],_0x4c2827=_0x2eed0c['model']['document']['selection'],_0x9f681c=_0x2eed0c['locale'];if(!_0x2eed0c['plugins']['has']('TableEditing'))return;const _0x563887=_0x2eed0c['plugins']['get']('TrackChangesEditing'),_0x47c8a7=_0x2eed0c['plugins']['get']('TableUtils'),_0x2d47d2=_0x2eed0c['plugins']['get'](Ct);_0x2d47d2['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x563887['enableCommand']('mergeTableCells',()=>{const _0x501b49=_0x47c8a7['getSelectionAffectedTableCells'](_0x2eed0c['model']['document']['selection']);_0x2eed0c['model']['change'](()=>{_0x563887['markMultiRangeBlockFormat'](_0x501b49,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2eed0c['commands']['get']('mergeTableCells')['on']('execute',(_0x36ef93,_0x2ed7a9)=>{_0x2eed0c['commands']['get']('trackChanges')['value']&&(_0x2ed7a9['length']>0x0&&_0x2ed7a9[_0x2ed7a9['length']-0x1]&&_0x2ed7a9[_0x2ed7a9['length']-0x1]['forceDefaultExecution']||_0x563887['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x36ef93['stop']());},{'priority':'highest'});for(const _0x52040b of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x16ccd5=_0x2eed0c['commands']['get'](_0x52040b);_0x563887['enableCommand'](_0x52040b,()=>{const _0x30cca0=_0x2eed0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4ead18=>_0x4ead18['is']('element','tableCell')),_0x46b632=_0x16ccd5['value'];_0x2eed0c['model']['change'](()=>{_0x563887['markMultiRangeBlockFormat']([_0x30cca0,_0x46b632],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x589740 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1452a7=_0x2eed0c['commands']['get'](_0x589740);_0x563887['enableCommand'](_0x589740,()=>{const _0x3369a9=_0x47c8a7['getSelectionAffectedTableCells'](_0x2eed0c['model']['document']['selection'])[0x0],_0x5b070d=_0x3369a9['findAncestor']('table'),{column:_0xa43659,row:_0x48b2e6}=_0x47c8a7['getCellLocation'](_0x3369a9);let _0x4fd56a=[];if('horizontally'==_0x1452a7['direction']){const _0x12eddf=_0x47c8a7['createTableWalker'](_0x5b070d,{'startRow':_0x48b2e6,'endRow':_0x48b2e6,'includeAllSlots':!0x0});_0x4fd56a=Array['from'](_0x12eddf)['map'](_0xdc15eb=>_0xdc15eb['cell']);}else{const _0x97f48f=_0x47c8a7['createTableWalker'](_0x5b070d,{'column':_0xa43659,'includeAllSlots':!0x0});_0x4fd56a=Array['from'](_0x97f48f)['map'](_0x37cc9f=>_0x37cc9f['cell']);}_0x2eed0c['model']['change'](_0x189877=>{_0x563887['markBlockFormat'](_0x189877['createRangeOn'](_0x3369a9),{'commandName':_0x589740,'commandParams':[]},_0x4fd56a,_0x589740);});});}_0x563887['descriptionFactory']['registerDescriptionCallback'](_0x1f1a5c=>{if('formatBlock'!=_0x1f1a5c['type']&&'formatInline'!=_0x1f1a5c['type'])return;const {data:_0x6d4932}=_0x1f1a5c;return _0x6d4932&&'mergeTableCells'==_0x6d4932['commandName']?{'type':'format','content':c(_0x9f681c,'*Merge\x20cells*')}:void 0x0;}),_0x563887['descriptionFactory']['registerDescriptionCallback'](_0x1e42da=>{if('formatBlock'!=_0x1e42da['type']&&'formatInline'!=_0x1e42da['type'])return;const {data:_0x5499b6}=_0x1e42da;return _0x5499b6?'splitTableCellVertically'==_0x5499b6['commandName']?{'type':'format','content':c(_0x9f681c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5499b6['commandName']?{'type':'format','content':c(_0x9f681c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x23b50d=_0x2d47d2['_acceptFormatSuggestionCallbackFactory']();for(const _0x36235 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x36235,'accept',_0x23b50d);for(const _0x111a87 of['splitTableCellVertically','splitTableCellHorizontally'])_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x111a87,'accept',_0x23b50d);_0x563887['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1cad5c=>{_0x2eed0c['model']['change'](_0x4a03a8=>{const _0xe2e2a9=Array['from'](_0x4c2827['getRanges']())['map'](_0x31ba5a=>_0x221782['fromRange'](_0x31ba5a));_0x4a03a8['setSelection'](_0x1cad5c),_0x2eed0c['commands']['get']('mergeTableCells')['refresh'](),_0x2eed0c['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3810f1=_0xe2e2a9['filter'](_0x514450=>'$graveyard'!=_0x514450['root']['rootName']);_0x3810f1['length']>0x0&&_0x4a03a8['setSelection'](_0x3810f1);for(const _0x334823 of _0xe2e2a9)_0x334823['detach']();});});for(const _0x374ab5 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xc6ddf4=_0x2eed0c['commands']['get'](_0x374ab5);_0xc6ddf4['on']('set:isEnabled',(_0x52dbbb,_0x1dc4e8,_0x2eb13f)=>{if(_0x2eb13f){const _0x50124a=_0x2eed0c['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x212f37=>_0x212f37['is']('element','tableCell'));this['_areMergableCells'](_0xc6ddf4['value'],_0x50124a)||(_0x52dbbb['return']=!0x1,_0x52dbbb['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x50b899=this['editor']['commands']['get']('mergeTableCells'),_0x799edd=this['editor']['plugins']['get']('TableUtils');if(!_0x50b899['isEnabled'])return!0x1;const _0x549a08=_0x799edd['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1a3860 of _0x549a08)for(const _0x43959f of _0x549a08)if(_0x1a3860!=_0x43959f&&!this['_areMergableCells'](_0x1a3860,_0x43959f))return!0x1;return!0x0;}['_areMergableCells'](_0x4eeb05,_0x84a21e){const _0x478db6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d9d94=this['editor']['model']['createRangeOn'](_0x4eeb05),_0x3bb81e=this['editor']['model']['createRangeOn'](_0x84a21e),_0x19e1f6=new Set(),_0x3536ef=new Set();for(const _0x1fa5ad of _0x478db6['getSuggestions']())if(('insertion'==_0x1fa5ad['type']||'deletion'==_0x1fa5ad['type']||'mergeTableCells'==_0x1fa5ad['subType'])&&_0x1fa5ad['isInContent']){for(const _0x4d8901 of _0x1fa5ad['getRanges']())_0x4d8901['containsRange'](_0x2d9d94,!0x0)&&_0x19e1f6['add'](_0x1fa5ad['type']+':'+_0x1fa5ad['author']['id']),_0x4d8901['containsRange'](_0x3bb81e,!0x0)&&_0x3536ef['add'](_0x1fa5ad['type']+':'+_0x1fa5ad['author']['id']);}if(_0x19e1f6['size']!=_0x3536ef['size'])return!0x1;for(const _0x18c565 of _0x19e1f6)if(!_0x3536ef['has'](_0x18c565))return!0x1;return!0x0;}}class Dt extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x3fdd3d=this['editor'];if(!_0x3fdd3d['plugins']['has']('TableEditing'))return;const _0x3d2e00=_0x3fdd3d['locale'],_0x2c5103=_0x3fdd3d['plugins']['get']('TrackChangesEditing');_0x2c5103['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2c5103['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2c5103['registerBlockAttribute']('headingRows'),_0x2c5103['registerBlockAttribute']('headingColumns'),_0x2c5103['descriptionFactory']['registerAttributeLabel']('headingRows',c(_0x3d2e00,'FORMAT_HEADER_ROW')),_0x2c5103['descriptionFactory']['registerAttributeLabel']('headingColumns',c(_0x3d2e00,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x30f763=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa87422=this['editor']['plugins']['get']('TableUtils'),_0xab4724=this['editor']['plugins']['get'](Ct)['_acceptFormatSuggestionCallbackFactory']();function _0x5aa8d5({showActiveMarker:_0x3baf9e=!0x0,setDataAttribute:_0x535078=!0x0}={}){return(_0x5f5e78,_0x486409,_0x5cc449)=>{const {type:_0xac0e72,id:_0x713683}=_0x30f763['_splitMarkerName'](_0x486409['markerName']),_0x2ba361=_0x30f763['getSuggestion'](_0x713683),_0x36094e=_0x2ba361['data'];if('formatBlock'!=_0x2ba361['type']||!_0x36094e||'setTableColumnHeader'!=_0x36094e['commandName'])return;if(_0x486409['item'])return void _0x5f5e78['stop']();if(!_0x5cc449['consumable']['consume'](_0x486409['markerRange'],_0x5f5e78['name']))return;const _0x5b54e3=_0x486409['markerRange']['start']['nodeAfter'],_0x525f7e=_0x486409['markerRange']['end']['nodeBefore'],_0x69ff29=_0x5b54e3['parent']['parent'],{column:_0x5737df}=_0xa87422['getCellLocation'](_0x5b54e3),{column:_0x1cea0b}=_0xa87422['getCellLocation'](_0x525f7e);for(let _0x3fb351=_0x5737df;_0x3fb351<=_0x1cea0b;_0x3fb351++){const _0xf29acd=_0xa87422['createTableWalker'](_0x69ff29,{'column':_0x3fb351,'includeAllSlots':!0x1});for(const _0x12ea18 of _0xf29acd){const _0x1474f2=_0x12ea18['cell'],_0x1c9a63=_0x5cc449['mapper']['toViewElement'](_0x1474f2);_0x5cc449['writer']['addClass']('ck-suggestion-marker-'+_0xac0e72,_0x1c9a63),_0x535078&&_0x5cc449['writer']['setAttribute']('data-suggestion',_0x713683,_0x1c9a63),_0x5cc449['mapper']['bindElementToMarker'](_0x1c9a63,_0x486409['markerName']),_0x3baf9e&&(_0x30f763['activeMarkers']['includes'](_0x486409['markerName'])?_0x5cc449['writer']['addClass']('ck-suggestion-marker--active',_0x1c9a63):_0x5cc449['writer']['removeClass']('ck-suggestion-marker--active',_0x1c9a63));}}};}_0x30f763['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0xab4724),_0x30f763['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0xab4724),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5aa8d5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x215d1a,_0x32a4b1,_0x56eff4)=>{_0x56eff4['options']['showSuggestionHighlights']&&_0x5aa8d5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x215d1a,_0x32a4b1,_0x56eff4);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1c609a,_0xd5ccab,_0x280b68)=>{const {type:_0x114c8a,id:_0x20890c}=_0x30f763['_splitMarkerName'](_0xd5ccab['markerName']),_0x57ff55=_0x30f763['getSuggestion'](_0x20890c),_0x4e30e4=_0x57ff55['data'];if('formatBlock'!=_0x57ff55['type']||!_0x4e30e4||'setTableColumnHeader'!=_0x4e30e4['commandName'])return;const _0x1b89e4=_0x280b68['mapper']['markerNameToElements'](_0xd5ccab['markerName']);if(_0x1b89e4){for(const _0x2e30c0 of _0x1b89e4)_0x280b68['writer']['removeClass']('ck-suggestion-marker-'+_0x114c8a,_0x2e30c0),_0x280b68['writer']['removeClass']('ck-suggestion-marker--active',_0x2e30c0),_0x280b68['writer']['removeAttribute']('data-suggestion',_0x2e30c0),_0x280b68['mapper']['unbindElementFromMarkerName'](_0x2e30c0,_0xd5ccab['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a2526=this['editor'],_0x5403de=_0x3a2526['locale'];function _0x30c0d3(_0x4386d7){return{'type':'format','content':c(_0x5403de,'*Format:*\x20%0',_0x4386d7)};}_0x3a2526['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a8f83=>{if('formatBlock'!=_0x4a8f83['type'])return;const {data:_0x25b252}=_0x4a8f83;if(_0x25b252){if('setTableRowHeader'==_0x25b252['commandName']){const _0x35282f=_0x25b252['commandParams'][0x0]['forceValue'];return _0x30c0d3(c(_0x5403de,_0x35282f?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x25b252['commandName']){const _0x3dcbde=_0x25b252['commandParams'][0x0]['forceValue'];return _0x30c0d3(c(_0x5403de,_0x3dcbde?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}class Ye extends _0x51b88f{['afterInit'](){const _0x1aca76=this['editor'],_0x47ab9e=_0x1aca76['locale'],_0x29e408=_0x1aca76['plugins']['get']('TrackChangesEditing');function _0x5168ed(_0x1f2272){return{'type':'format','content':''+c(_0x47ab9e,'*Set\x20table\x20type:*\x20%0',_0x1f2272)};}_0x1aca76['plugins']['has']('TableLayout')&&(_0x29e408['enableCommand']('insertTableLayout'),_0x29e408['enableDefaultAttributesIntegration']('tableType'),_0x29e408['registerBlockAttribute']('tableType'),_0x29e408['descriptionFactory']['registerElementLabel'](_0x3faa02=>_0x3faa02['is']('element','table')&&'layout'===_0x3faa02['getAttribute']('tableType'),_0x287c47=>c(_0x47ab9e,'ELEMENT_LAYOUT_TABLE',_0x287c47)),_0x29e408['descriptionFactory']['registerDescriptionCallback'](_0x3eee07=>{const {data:_0x4ab979}=_0x3eee07;if(_0x4ab979&&'tableType'==_0x4ab979['key'])switch(_0x4ab979['newValue']){case'layout':return _0x5168ed(c(_0x47ab9e,'ELEMENT_LAYOUT_TABLE'));case'content':return _0x5168ed(c(_0x47ab9e,'ELEMENT_CONTENT_TABLE'));}}));}}const xe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Oe=Object['fromEntries'](xe['map'](_0x3fcdf5=>[_0x3fcdf5,null]));class $t extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x32cbe9=this['editor'];if(!_0x32cbe9['plugins']['has']('TableClipboard'))return;const _0x5db788=_0x32cbe9['plugins']['get']('TrackChangesEditing'),_0x375f8b=_0x32cbe9['plugins']['get']('TableUtils'),_0x1ea0f9=_0x32cbe9['plugins']['get'](Ct),_0x80a447=_0x32cbe9['plugins']['get']('TableClipboard'),_0x45686e=_0x32cbe9['plugins']['get']('TableSelection'),_0x4c735d=_0x32cbe9['plugins']['get'](_0x55982e);_0x1ea0f9['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x32cbe9['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x32cbe9['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5068f3=null,_0x4983d8=!0x1;_0x4c735d['on']('contentInsertion',(_0x23b421,_0x1d9017)=>{_0x4983d8='paste'===_0x1d9017['method'];}),_0x32cbe9['model']['on']('insertContent',(_0x67af71,_0x5406e3)=>{if(!_0x4983d8&&null===_0x45686e['getSelectedTableCells']())return;const [_0x5b4e45,_0xa02488]=_0x5406e3,_0x10e736=_0x5406e3[_0x5406e3['length']-0x1];_0x10e736&&_0x10e736['forceDefaultExecution']||_0x5db788['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x351b25,_0x1aeaee,_0x168a63,_0x5b1301,_0x12ddb8){if(_0x1aeaee&&!_0x1aeaee['is']('documentSelection'))return!0x1;const _0x294d5e=_0x12ddb8['getTableIfOnlyTableInContent'](_0x351b25,_0x168a63);if(!_0x294d5e||!De(_0x294d5e,void 0x0,_0x5b1301))return!0x1;const _0x1859af=_0x5b1301['getSelectionAffectedTableCells'](_0x168a63['document']['selection']);if(!_0x1859af['length'])return!0x1;const _0x15d1a4=_0x1859af[0x0]['findAncestor']('table'),_0x4fdeeb=_0x5b1301['getRowIndexes'](_0x1859af),_0x262585=_0x5b1301['getColumnIndexes'](_0x1859af),_0x1ce343={'startRow':_0x4fdeeb['first'],'endRow':_0x4fdeeb['last'],'startColumn':_0x262585['first'],'endColumn':_0x262585['last']};return 0x1==_0x1859af['length']&&(_0x1ce343['endRow']+=_0x5b1301['getRows'](_0x294d5e)-0x1,_0x1ce343['endColumn']+=_0x5b1301['getColumns'](_0x294d5e)-0x1),De(_0x15d1a4,_0x1ce343,_0x5b1301);}(_0x5b4e45,_0xa02488,_0x32cbe9['model'],_0x375f8b,_0x80a447)&&(_0x67af71['stop'](),_0x5068f3={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x32cbe9['model']['change'](()=>{_0x32cbe9['model']['insertContent'](_0x5406e3[0x0],_0x5406e3[0x1],_0x5406e3[0x2],{'forceDefaultExecution':!0x0});const _0x43b48b=_0x35f42a(),{rowInsertionRanges:_0xb34763,columnInsertionRanges:_0x121209,insertionRanges:_0xa0cbd3,deletionRanges:_0x3a4833,cells:_0x524d1f}=_0x5068f3;_0xb34763['length']&&_0x5db788['markMultiRangeInsertion'](_0xb34763,'tablePasteRow',{'tablePasteChainId':_0x43b48b}),_0x121209['length']&&_0x5db788['markMultiRangeInsertion'](_0x121209,'tablePasteColumn',{'tablePasteChainId':_0x43b48b}),_0xa0cbd3['length']&&(_0x5db788['markMultiRangeInsertion'](_0xa0cbd3,'tablePaste',{'tablePasteChainId':_0x43b48b,'skipNestingCheck':!0x0}),_0xa0cbd3['forEach'](_0x3ed99a=>_0x3ed99a['detach']?.())),_0x3a4833['length']&&(_0x5db788['markMultiRangeDeletion'](_0x3a4833,'tablePaste',{'tablePasteChainId':_0x43b48b,'skipNestingCheck':!0x0}),_0x3a4833['forEach'](_0x2e7369=>_0x2e7369['detach']?.()));const _0x434278=_0x5db788['markMultiRangeBlockFormat'](_0x524d1f['map'](({element:_0x70dc99})=>_0x70dc99),{'formatGroupId':_0x35f42a()},[],'tablePasteCell',{'tablePasteChainId':_0x43b48b});if(_0x434278){const _0x523c32=_0x434278['getMarkers'](),_0x2d1f31=[];for(const {element:_0xa6ebc,attributes:_0xa5b626}of _0x524d1f){if(!_0xa5b626)continue;const _0x3e9c61=_0x32cbe9['model']['createRangeOn'](_0xa6ebc),_0x2b1c78=_0x523c32['find'](_0x1f2b57=>_0x1f2b57['getRange']()['isEqual'](_0x3e9c61));_0x2b1c78&&_0x2d1f31['push']([_0x2b1c78['name'],_0xa5b626]);}_0x2d1f31['length']&&_0x434278['setAttribute']('markerAttributes',Object['fromEntries'](_0x2d1f31));}_0x5068f3=null;}));},{'priority':_0x46c4ae['high']+0xa}),_0x4c735d['on']('contentInsertion',()=>{_0x4983d8=!0x1;},{'priority':'lowest'}),_0x32cbe9['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x2238f4,_0xf56ca5)=>{const [_0xfb4511,_0x3fcf3c,,_0x8b6fcc]=_0xf56ca5;if(!_0x5068f3)return;_0x2238f4['stop']();const _0x341c77=_0xfb4511['cell'],_0x37b142=_0x3fcf3c,_0x905aca=Ue(_0x341c77),_0x23c9ac=Ue(_0x37b142);_0x2238f4['return']=_0x341c77;let _0x18cf2a=null,_0x11e499=null;if(_0x23c9ac||_0x905aca){if(_0x905aca&&!_0x23c9ac){_0x8b6fcc['remove'](_0x341c77['getChild'](0x0));for(const _0x569f78 of Array['from'](_0x37b142['getChildren']()))_0x8b6fcc['insert'](_0x569f78,_0x341c77,'end');const _0x24f852=_0x5068f3['rowInsertionIndexes']['includes'](_0xfb4511['row']),_0x12c2b9=_0x5068f3['columnInsertionIndexes']['includes'](_0xfb4511['column']);_0x24f852||_0x12c2b9||(_0x18cf2a=_0x221782['fromRange'](_0x8b6fcc['createRangeIn'](_0x341c77)));}else _0x23c9ac&&!_0x905aca&&(_0x11e499=_0x8b6fcc['createRangeIn'](_0x341c77));}else{const _0x555406=_0x8b6fcc['createElement']('tableCellSuggestion'),_0xe5b6e1=_0x8b6fcc['createElement']('tableCellSuggestion');_0x8b6fcc['wrap'](_0x8b6fcc['createRangeIn'](_0x341c77),_0xe5b6e1),_0x8b6fcc['insert'](_0x555406,_0x341c77,0x0);for(const _0x555795 of Array['from'](_0x37b142['getChildren']()))_0x8b6fcc['insert'](_0x555795,_0x555406,'end');_0x18cf2a=_0x221782['fromRange'](_0x8b6fcc['createRangeOn'](_0x555406)),_0x11e499=_0x221782['fromRange'](_0x8b6fcc['createRangeOn'](_0xe5b6e1));}const _0x4e4047=Array['from'](_0x37b142['getAttributes']())['filter'](([_0x13bff3])=>xe['includes'](_0x13bff3));_0x5068f3['cells']['push']({'element':_0x341c77,'attributes':_0x4e4047['length']?Object['fromEntries'](_0x4e4047):null}),_0x18cf2a&&_0x5068f3['insertionRanges']['push'](_0x18cf2a),_0x11e499&&_0x5068f3['deletionRanges']['push'](_0x11e499);},{'priority':'high'}),_0x375f8b['on']('insertColumns',(_0x326ff0,_0x5076f3)=>{const [_0x5c5404,_0x39894a={}]=_0x5076f3;if(!_0x5068f3)return;const _0x101a14=_0x39894a['at']||0x0,_0x580c19=_0x39894a['columns']||0x1;_0x5068f3['columnInsertionIndexes']=new Array(_0x580c19)['fill'](_0x101a14)['map']((_0x4f28f7,_0x103649)=>_0x4f28f7+_0x103649);for(const {cell:_0x16293d}of _0x375f8b['createTableWalker'](_0x5c5404,{'startColumn':_0x101a14,'endColumn':_0x101a14+_0x580c19-0x1}))_0x5068f3['columnInsertionRanges']['push'](_0x32cbe9['model']['createRangeOn'](_0x16293d));},{'priority':'low'}),_0x375f8b['on']('insertRows',(_0x80a300,_0x3d3094)=>{const [_0x1bfd1b,_0x8a41f3={}]=_0x3d3094;if(!_0x5068f3)return;const _0x38fc8d=_0x8a41f3['at']||0x0,_0x15d731=_0x8a41f3['rows']||0x1;_0x5068f3['rowInsertionIndexes']=new Array(_0x15d731)['fill'](_0x38fc8d)['map']((_0x208df9,_0x27a6db)=>_0x208df9+_0x27a6db);for(const {cell:_0x47ccca}of _0x375f8b['createTableWalker'](_0x1bfd1b,{'startRow':_0x38fc8d,'endRow':_0x38fc8d+_0x15d731-0x1}))_0x5068f3['rowInsertionRanges']['push'](_0x32cbe9['model']['createRangeOn'](_0x47ccca));},{'priority':'low'}),_0x5db788['descriptionFactory']['registerDescriptionCallback'](_0x293442=>{if(_0x293442['subType']&&_0x293442['subType']['startsWith']('tablePaste'))return _0x293442['previous']?{}:{'type':'insertion','content':c(_0x32cbe9['locale'],'*Replace\x20table\x20cells*')};});const _0x477009=()=>!0x1;for(const _0x57bbff of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion',_0x57bbff,'join',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('deletion',_0x57bbff,'join',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x57bbff,'join',_0x477009);_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x477009),_0x5db788['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x11ba17,_0x27470b,_0x4e44c4)=>{const _0x5691f5=_0x11ba17['map'](_0x151e8f=>_0x151e8f['getContainedElement']())['filter'](_0x32a455=>_0x32a455),_0x47b7d1=new Map(_0x5691f5['map'](_0x22c393=>[_0x22c393,null]));if(_0x5068f3){for(const {element:_0x2db722,attributes:_0x3ba263}of _0x5068f3['cells'])_0x3ba263&&_0x47b7d1['set'](_0x2db722,_0x3ba263);}else{if(_0x4e44c4&&_0x4e44c4['markerAttributes'])for(const [_0x12189a,_0x36a70b]of Object['entries'](_0x4e44c4['markerAttributes'])){const _0x976394=_0x32cbe9['model']['markers']['get'](_0x12189a),_0x3c3021=_0x976394?_0x976394['getRange']()['getContainedElement']():null;_0x3c3021&&_0x47b7d1['set'](_0x3c3021,_0x36a70b);}}_0x32cbe9['model']['change'](_0xe213c=>{for(const [_0xf0c631,_0x5aed89]of _0x47b7d1)_0xe213c['setAttributes']({...Oe,..._0x5aed89},_0xf0c631);});});const _0x1357ee=(_0x4e29f9,_0x307ce5)=>{_0x5db788['_suggestionFactory']['registerCustomCallback'](_0x4e29f9,'tablePaste',_0x307ce5,(_0x542d06,_0x3a094c,_0x492899)=>{_0x32cbe9['model']['change'](_0x2723cd=>{const _0x4f31d1=[];for(const _0x15c1b1 of _0x542d06){const _0x3f985b=_0x15c1b1['start']['nodeAfter'];_0x3f985b['is']('element','tableCellSuggestion')&&_0x4f31d1['push'](_0x3f985b);}_0x5db788['_suggestionFactory']['getSuggestionCallback'](_0x4e29f9,null,_0x307ce5)(_0x542d06,_0x3a094c,_0x492899);for(const _0x3b8b57 of _0x4f31d1)'$graveyard'!=_0x3b8b57['root']['rootName']&&_0x2723cd['unwrap'](_0x3b8b57);});});};_0x1357ee('insertion','accept'),_0x1357ee('insertion','discard'),_0x1357ee('deletion','accept'),_0x1357ee('deletion','discard'),_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1538cf=>{const _0x12cae5=_0x1538cf['map'](_0x2fb144=>_0x2fb144['getContainedElement']()),_0x2ef39c=_0x12cae5[0x0]['findAncestor']('table'),{minRow:_0x103ae9,maxRow:_0x3abacd}=_0x1ea0f9['_getCoordsForCells'](_0x12cae5);_0x375f8b['removeRows'](_0x2ef39c,{'at':_0x103ae9,'rows':_0x3abacd-_0x103ae9+0x1});}),_0x5db788['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x22f244=>{const _0x16a99f=_0x22f244['map'](_0x5931fe=>_0x5931fe['getContainedElement']()),_0xd8fab3=_0x16a99f[0x0]['findAncestor']('table'),{minColumn:_0x721f61,maxColumn:_0x4d85ad}=_0x1ea0f9['_getCoordsForCells'](_0x16a99f);_0x375f8b['removeColumns'](_0xd8fab3,{'at':_0x721f61,'columns':_0x4d85ad-_0x721f61+0x1});});const _0x1c67ef=(_0x5ba7bd,_0x273ab2)=>{if(!_0x273ab2['subType']||!_0x273ab2['subType']['startsWith']('tablePaste'))return;const _0x1ba3f1=_0x273ab2['attributes']['tablePasteChainId'],_0x1270b0=_0x5db788['getSuggestions']()['filter'](_0x87b518=>_0x87b518['isInContent']&&_0x87b518['attributes']&&_0x87b518['attributes']['tablePasteChainId']==_0x1ba3f1);_0x1270b0['length']&&_0x273ab2['getAllAdjacentSuggestions']()['length']!=_0x1270b0['length']&&_0x1270b0['reduce']((_0xcd20f5,_0x1970fe)=>(_0xcd20f5['next']=_0x1970fe,_0x1970fe['previous']=_0xcd20f5,_0x1970fe));};function _0x334183(_0x4e773e,_0x57f7d9=!0x0){const {id:_0x525bc5,authorId:_0x84adc8}=_0x5db788['_splitMarkerName'](_0x4e773e['markerName']),_0x286ad3=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xd82b51=_0x5db788['activeMarkers']['includes'](_0x4e773e['markerName']);return _0xd82b51&&_0x286ad3['push']('ck-suggestion-marker--active'),{'classes':_0x286ad3,'attributes':{'data-suggestion':_0x525bc5,'data-author-id':_0x84adc8},'priority':_0xd82b51&&_0x57f7d9?0xbc2:0xbb8};}_0x5db788['on']('suggestionLoaded',_0x1c67ef,{'priority':'high'}),_0x5db788['on']('suggestionUnloaded',_0x1c67ef,{'priority':'high'}),_0x32cbe9['model']['document']['registerPostFixer'](()=>{let _0xaa36ff=!0x1;const _0x55e8e3=Array['from'](_0x32cbe9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x7761d1,data:_0x4f13fe}of _0x55e8e3){const {group:_0x4a08bc,type:_0x95bbaf,id:_0x5a54f4}=_0x5db788['_splitMarkerName'](_0x7761d1);if('suggestion'!=_0x4a08bc||'deletion'!=_0x95bbaf||_0x4f13fe['oldRange'])continue;if(!_0x5db788['hasSuggestion'](_0x5a54f4))continue;const _0x1e92b1=_0x5db788['getSuggestion'](_0x5a54f4)['getRanges'](),_0x1a7b1e=_0x32cbe9['plugins']['get']('Users')['me'];for(const _0xce9518 of _0x5db788['getSuggestions']()){if(!_0xce9518['isInContent']||_0xce9518['author']!=_0x1a7b1e)continue;if('formatBlock'!=_0xce9518['type']||'tablePasteCell'!=_0xce9518['subType'])continue;if(_0xce9518['getRanges']()['every'](_0x5649e6=>_0x1e92b1['some'](_0x1b36cc=>_0x1b36cc['containsRange'](_0x5649e6,!0x0)))){for(const _0x3a1593 of _0xce9518['getAllAdjacentSuggestions']())_0x3a1593['isInContent']&&(_0x3a1593['discard'](),_0xaa36ff=!0x0);}}}return _0xaa36ff;}),_0x32cbe9['model']['document']['registerPostFixer'](_0x2d204b=>{const _0x1a0c09=_0x32cbe9['commands']['get']('redo');if(!_0x1a0c09||!_0x1a0c09['_createdBatches']['has'](_0x2d204b['batch']))return!0x1;let _0x440d6a=!0x1;const _0x1d58ad=_0x32cbe9['plugins']['get']('Users')['me'],_0x366ff3=_0x32cbe9['model']['document']['differ']['getChanges'](),_0x21f4d5=Array['from'](_0x32cbe9['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4730a2,data:_0x5b6e23})=>{const {group:_0xc48a97,subType:_0x1239ef,authorId:_0x2b1abc}=_0x5db788['_splitMarkerName'](_0x4730a2);return'suggestion'==_0xc48a97&&'tablePaste'==_0x1239ef&&_0x2b1abc==_0x1d58ad['id']&&!_0x5b6e23['oldRange'];});for(const _0x8a56ff of _0x366ff3){if('insert'!=_0x8a56ff['type']||'tableCellSuggestion'!=_0x8a56ff['name']||0x1!=_0x8a56ff['length'])continue;const _0x19af88=_0x2d204b['createRange'](_0x8a56ff['position'],_0x8a56ff['position']['getShiftedBy'](0x1));if(!_0x21f4d5['find'](({data:_0x239a12})=>_0x239a12['newRange']['isEqual'](_0x19af88))){for(const {name:_0x4c5254,data:_0x45b777}of _0x21f4d5)if(_0x19af88['containsRange'](_0x45b777['newRange'])){_0x2d204b['updateMarker'](_0x4c5254,{'range':_0x19af88}),_0x440d6a=!0x0;break;}}}return _0x440d6a;}),_0x32cbe9['model']['document']['registerPostFixer'](_0x1eae7a=>{let _0x2f0126=!0x1;const _0xb339a2=_0x32cbe9['plugins']['get']('Users')['me'],_0x13cbae=_0x5db788['getSuggestions']()['filter'](_0x3a8eed=>_0x3a8eed['isInContent']&&_0x3a8eed['author']==_0xb339a2),_0x4f157c=new Set(),_0x174220=new Set();for(const _0x232a85 of _0x13cbae)if('tablePaste'==_0x232a85['subType'])for(const _0x210e0f of _0x232a85['getMarkers']()){const _0x1a6b3e=_0x210e0f['getRange']()['getContainedElement']();if(_0x1a6b3e){if(_0x1a6b3e['is']('element','tableCellSuggestion')&&Ue(_0x1a6b3e)){_0x232a85['removeMarker'](_0x210e0f['name']),_0x4f157c['add'](_0x1a6b3e),_0x2f0126=!0x0;const _0x2abef5=_0x1a6b3e['nextSibling'],_0x3f1656=_0x1a6b3e['previousSibling'],_0x500dfc=_0x2abef5&&_0x2abef5['is']('element','tableCellSuggestion'),_0x4bfb90=_0x3f1656&&_0x3f1656['is']('element','tableCellSuggestion');_0x500dfc&&!_0x4f157c['has'](_0x2abef5)&&_0x174220['add'](_0x2abef5),_0x4bfb90&&!_0x4f157c['has'](_0x3f1656)&&_0x174220['add'](_0x3f1656);}else _0x1a6b3e['is']('element','paragraph')&&_0x1a6b3e['isEmpty']&&(_0x232a85['removeMarker'](_0x210e0f['name']),_0x2f0126=!0x0);}}else{if('tablePasteCell'==_0x232a85['subType']){if(!_0x232a85['attributes']||!_0x232a85['attributes']['tablePasteChainId'])continue;const _0x1a96bf=_0x232a85['attributes']['markerAttributes'];if(_0x1a96bf&&Object['keys'](_0x1a96bf)['length'])continue;const _0x4f9fd2=_0x232a85['attributes']['tablePasteChainId'];let _0x10abf9=!0x0,_0x24f349=!0x0;for(const _0x54ee77 of _0x13cbae)if(_0x54ee77['subType']&&_0x54ee77['subType']['startsWith']('tablePaste')){if(!_0x54ee77['attributes']['tablePasteChainId']){_0x24f349=!0x1;break;}if(_0x54ee77['id']!=_0x232a85['id']&&_0x54ee77['attributes']['tablePasteChainId']==_0x4f9fd2){_0x10abf9=!0x1;break;}}_0x24f349&&_0x10abf9&&(_0x232a85['removeMarkers'](),_0x2f0126=!0x0);}}for(const _0x705838 of _0x4f157c)_0x1eae7a['remove'](_0x705838);for(const _0x5a64a7 of _0x174220)_0x1eae7a['unwrap'](_0x5a64a7);return _0x2f0126;}),_0x32cbe9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x31b074=>_0x334183(_0x31b074),'converterPriority':'high'}),_0x32cbe9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1a6405,_0x2c286b)=>_0x2c286b['options']['showSuggestionHighlights']?_0x334183(_0x1a6405,!0x1):null,'converterPriority':'high'});const _0x569e97=_0x32cbe9['editing']['view'];this['listenTo'](_0x569e97['document'],'clipboardOutput',(_0x2e3627,_0x489f6d)=>{const _0x5ad5c8=[];for(const _0x64b55f of _0x569e97['createRangeIn'](_0x489f6d['content'])['getItems']())_0x64b55f['is']('element','suggestion-td')&&_0x5ad5c8['push'](_0x64b55f);_0x569e97['change'](_0x105012=>{for(const _0x4d4074 of _0x5ad5c8)_0x105012['move'](_0x105012['createRangeIn'](_0x4d4074),_0x105012['createPositionBefore'](_0x4d4074)),_0x105012['remove'](_0x4d4074);});});}}function Ue(_0x489328){if(_0x489328['isEmpty'])return!0x0;const _0x54bcb4=_0x489328['getChild'](0x0);return _0x54bcb4['is']('element','paragraph')&&_0x54bcb4['isEmpty'];}function De(_0x3e343a,_0x13fd62={},_0x3dd7a7){for(const {isAnchor:_0x57d51c,cellHeight:_0x314bd8,cellWidth:_0x35f05d}of _0x3dd7a7['createTableWalker'](_0x3e343a,{'includeAllSlots':!0x0,..._0x13fd62}))if(!_0x57d51c||0x1!=_0x314bd8||0x1!=_0x35f05d)return!0x1;return!0x0;}class Bt extends _0x51b88f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x493918=this['editor']['plugins']['get']('TrackChangesEditing');_0x493918['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x493918['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x493918['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x493918['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x493918['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x493918['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2ef78f,_0x22bc7e){const _0x420fd4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x34b3e8=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x426a83=_0x22bc7e['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x34ad35=_0x34b3e8['getColumnGroupElement'](_0x426a83);let _0x3d3117=_0x34ad35?_0x34b3e8['getTableColumnsWidths'](_0x34ad35):null,_0x37cd0f=_0x426a83['getAttribute']('tableWidth')||null;const _0xd2ea33=_0x22bc7e['tableWidth']||_0x37cd0f,_0x4c1dae=_0x22bc7e['columnWidths']||_0x3d3117,_0x1259db=this['editor']['plugins']['get']('Users')['me'];for(const _0xd3e26d of _0x420fd4['getSuggestions']()){const _0x2d55ef=_0xd3e26d['getContainedElement']();if('resizeTable'===_0xd3e26d['subType']&&_0x2d55ef===_0x426a83){_0xd3e26d['author']!==_0x1259db&&_0xd3e26d['discard']();const _0x28ce76=_0xd3e26d['data']['commandParams'];_0x37cd0f=_0x28ce76[0x0]['tableWidth'],_0x3d3117=_0x28ce76[0x0]['columnWidths'];break;}}_0x2ef78f({'table':_0x426a83,'tableWidth':_0xd2ea33,'columnWidths':_0x4c1dae}),_0x420fd4['markBlockFormat'](_0x426a83,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x37cd0f,'columnWidths':_0x3d3117}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x103edd){if('formatBlock'!=_0x103edd['type']&&'formatInline'!=_0x103edd['type'])return;const {data:_0x733be}=_0x103edd;if(_0x733be&&'resizeTable'===_0x733be['formatGroupId']){const _0x344fb0='*Format:*\x20resize\x20table';return{'type':'format','content':c(this['editor']['locale'],_0x344fb0)};}}}class Ot extends _0x51b88f{['afterInit'](){const _0x3965de=this['editor'];_0x3965de['plugins']['has']('Template')&&_0x3965de['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Rt extends _0x51b88f{['afterInit'](){const _0x40951f=this['editor'];if(!_0x40951f['commands']['get']('insertTableOfContents'))return;_0x40951f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x2a5fd8=_0x40951f['plugins']['get']('TrackChangesEditing'),_0x57b2b2=_0x40951f['locale'];_0x2a5fd8['descriptionFactory']['registerElementLabel']('tableOfContents',_0x4dcf05=>c(_0x57b2b2,'ELEMENT_TABLE_OF_CONTENTS',_0x4dcf05));}}class xt extends _0x51b88f{['afterInit'](){const _0x56aa3e=this['editor'];if(!_0x56aa3e['plugins']['has']('Title'))return;const _0x2ae8df=_0x56aa3e['plugins']['get']('TrackChangesEditing');_0x2ae8df['descriptionFactory']['registerElementLabel']('title-content',()=>c(_0x56aa3e['locale'],'ELEMENT_TITLE')),_0x56aa3e['model']['document']['registerPostFixer'](_0x9d249e=>{let _0x4a770b=!0x1;const _0x2e9a98=Array['from'](_0x56aa3e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1f6372,data:_0x49d03a}of _0x2e9a98){const {group:_0x3ee12e}=_0x2ae8df['_splitMarkerName'](_0x1f6372);if('suggestion'!==_0x3ee12e||!_0x49d03a['newRange'])continue;const _0x5f2860=_0x49d03a['newRange'],_0x3610c2=_0x5f2860['end']['nodeBefore'];if(!_0x3610c2||!_0x3610c2['is']('element','title-content'))continue;if(!_0x5f2860['start']['isTouching'](_0x5f2860['end']))continue;const _0xfbe53f=_0x56aa3e['model']['schema']['getNearestSelectionRange'](_0x5f2860['end'],'forward');if(_0xfbe53f&&_0xfbe53f['isCollapsed']){const _0x660584=_0x9d249e['createRange'](_0x5f2860['start'],_0xfbe53f['start']);_0x660584['isEqual'](_0x5f2860)||(_0x9d249e['updateMarker'](_0x1f6372,{'range':_0x660584}),_0x4a770b=!0x0);}_0x4a770b||(_0x9d249e['removeMarker'](_0x1f6372),_0x4a770b=!0x0);}return _0x4a770b;});}}class Tt extends _0x51b88f{['afterInit'](){const _0x560df9=this['editor'],_0x344331=_0x560df9['plugins']['get']('TrackChangesEditing');_0x560df9['plugins']['has']('Uploadcare')&&(_0x344331['enableCommand']('uploadcare'),_0x560df9['plugins']['has']('UploadcareImageEdit')&&(_0x344331['enableCommand']('uploadcareImageEdit'),_0x344331['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x344331['registerBlockAttribute']('uploadcareImageId'),_0x344331['descriptionFactory']['registerDescriptionCallback'](_0x1739f8=>{if('attribute'!=_0x1739f8['type'])return;const {data:_0x52055b}=_0x1739f8;return _0x52055b&&'uploadcareImageId'==_0x52055b['key']?{'type':'format','content':''}:void 0x0;})));}}class Et extends _0x51b88f{['afterInit'](){const _0x370335=this['editor'],_0x13a9bd=_0x370335['plugins']['get']('TrackChangesEditing');_0x370335['plugins']['has']('UndoEditing')&&(_0x13a9bd['enableCommand']('undo'),_0x13a9bd['enableCommand']('redo'));}}class Ut extends _0x51b88f{static get['requires'](){return[Ct];}['afterInit'](){const _0x2269b1=this['editor'];if(!_0x2269b1['plugins']['has']('TableCaptionEditing'))return;_0x2269b1['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Vt extends _0x51b88f{['tableProperties'];['tableCellProperties'];constructor(_0x34555c){super(_0x34555c),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 _0x5614f1=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x38fc04 of this['tableProperties'])_0x5614f1['enableCommand'](_0x38fc04,(_0x27cac0,_0x39c435)=>{const _0xfdd6ee=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x38fc04,[_0xfdd6ee],this['tableProperties'],'tableProperties',_0x27cac0,_0x39c435);});_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5614f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3d945c,_0x1bc651)=>this['handleDiscardAction'](this['tableProperties'],_0x3d945c,_0x1bc651)),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x55d735 of this['tableCellProperties'])_0x5614f1['enableCommand'](_0x55d735,(_0x2d1b1e,_0x511208)=>{const _0x59da8c=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x55d735,_0x59da8c,this['tableCellProperties'],'tableCellProperties',_0x2d1b1e,_0x511208);});_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5614f1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x50cceb,_0x38fabf)=>this['handleDiscardAction'](this['tableCellProperties'],_0x50cceb,_0x38fabf)),_0x5614f1['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5614f1['descriptionFactory']['registerDescriptionCallback'](_0xd8d905=>this['handleSuggestionDescription'](_0xd8d905));}['_handlePropertyChange'](_0x590430,_0x372e04,_0x1f9304,_0x22223e,_0x957c5b,_0x14d235){const _0x19de2c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x14d235['batch'],()=>{for(const _0x26d3de of _0x372e04){if(this['_getSuggestion'](_0x26d3de,_0x22223e))_0x957c5b(_0x14d235);else{const _0x2f4c56={};for(const _0x3e6f6c of _0x1f9304){const _0x308a18=_0x26d3de['getAttribute'](_0x3e6f6c);void 0x0!==_0x308a18&&(_0x2f4c56[_0x3e6f6c]=_0x308a18);}_0x957c5b(_0x14d235),_0x19de2c['markBlockFormat'](_0x26d3de,{'commandParams':[_0x2f4c56]},[],_0x22223e);}}});}['handleDiscardAction'](_0x531df4,_0x17834d,_0x2c04f4){const _0x5c6bac=_0x17834d[0x0]['start']['nodeAfter'],_0xad37c3=_0x2c04f4['commandParams'][0x0];this['editor']['model']['change'](_0x4bc936=>{for(const _0x217fd9 of _0x531df4)void 0x0!==_0xad37c3[_0x217fd9]?_0x4bc936['setAttribute'](_0x217fd9,_0xad37c3[_0x217fd9],_0x5c6bac):_0x4bc936['removeAttribute'](_0x217fd9,_0x5c6bac);});}['handleSuggestionDescription'](_0x3209f5){if(_0x3209f5['data'])switch(_0x3209f5['subType']){case'tableProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':c(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x49851a,_0xe4e315){const _0x429bc3=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x51fcca of _0x429bc3['getSuggestions']({'skipNotAttached':!0x0})){const _0x29475b=_0x51fcca['getContainedElement']();if(_0x51fcca['subType']===_0xe4e315&&_0x29475b===_0x49851a)return _0x51fcca;}return null;}}const u='$elementName';class p extends _0x51b88f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x122585,_0x37d5c4,U,V,F,G,L,K,J,H,q,z,X,Y,Z,tt,et,nt,it,st,ot,rt,ct,at,ut,ft,ht,gt,Q,kt,lt,W,Se,dt,pt,wt,bt,yt,jt,St,At,It,_t,vt,Ct,Nt,Dt,Ye,Ut,$t,Bt,Rt,Vt,Ot,xt,Tt,Et];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x18ed32){super(_0x18ed32),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x274136,_0x434256,_0x1054c6,_0x1ec0e5)=>{this['_model']['change'](()=>{for(const _0x11afdb of[..._0x1ec0e5,..._0x1054c6])this['_model']['markers']['has'](_0x11afdb)&&_0x18ed32['editing']['reconvertMarker'](_0x11afdb);});}),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']=_0x18ed32['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([u]),this['_inlineAttributeKeys']=new Set(),_0x18ed32['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x18ed32['config']['get']('trackChanges.trackFormatChanges'),_0x18ed32['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x18ed32['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x18ed32,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0xff83f=this['editor'],_0x3a54e5=(_0x3ccbb3,_0x148e58)=>{if('attribute'!=_0x3ccbb3)return'ck-suggestion-marker-'+_0x3ccbb3;const _0x30c708=_0x148e58['split']('|')[0x0];return this['_isBlockAttribute'](_0x30c708)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xff83f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x367bd8=>{const {id:_0x10ddad,authorId:_0x1c95c4,type:_0x2bf137,subType:_0x4f0990}=this['_splitMarkerName'](_0x367bd8['markerName']),_0x25c692=['ck-suggestion-marker',_0x3a54e5(_0x2bf137,_0x4f0990)];let _0x48cb42=0xbb8;return this['activeMarkers']['includes'](_0x367bd8['markerName'])&&(_0x25c692['push']('ck-suggestion-marker--active'),_0x48cb42=0xbc2),'deletion'==_0x2bf137&&(_0x48cb42+=0x5),{'classes':_0x25c692,'attributes':{'data-suggestion':_0x10ddad,'data-author-id':_0x1c95c4},'priority':_0x48cb42};}}),_0xff83f['conversion']['for']('dataDowncast')['add'](_0xa8b04d=>{_0xa8b04d['on']('addMarker:suggestion',(_0x189f62,_0x577f70,_0x26d187)=>{if(!_0x26d187['options']['showSuggestionHighlights'])return;const _0x2317a9=_0x577f70['item'];if(!_0x2317a9)return;const _0xec651b=_0x26d187['mapper']['toViewElement'](_0x2317a9);_0xff83f['model']['schema']['isObject'](_0x2317a9)&&_0xec651b&&!_0xec651b['getCustomProperty']('widget')&&_0xec651b['is']('containerElement')&&_0xd1b277(_0xec651b,_0x26d187['writer']);},{'priority':'high'});}),_0xff83f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31f7a3,_0x524dcb)=>{if(!_0x524dcb['options']['showSuggestionHighlights'])return null;const {type:_0x56cdfc,subType:_0x225605}=this['_splitMarkerName'](_0x31f7a3['markerName']);return{'classes':['ck-suggestion-marker',_0x3a54e5(_0x56cdfc,_0x225605)],'priority':0xbb8};}});const _0x847e5c=({showActiveMarkers:_0x5f5d4a=!0x0,isAttributeSuggestion:_0x41792f=!0x1}={})=>(_0x2d0212,_0x38cbfe,_0x5498e5)=>{if(!_0x38cbfe['item'])return;const {id:_0x40757f,authorId:_0x3022a4}=this['_splitMarkerName'](_0x38cbfe['markerName']);if(_0x41792f){const _0x16d18e=this['_suggestions']['get'](_0x40757f),_0x125dc6=this['_getAttributeKey'](_0x16d18e);if(!this['_isBlockAttribute'](_0x125dc6))return;}if(_0x38cbfe['item']['is']('selection'))return void _0x5498e5['consumable']['consume'](_0x38cbfe['item'],_0x2d0212['name']);const _0x5c98b6=_0x5498e5['mapper']['toViewElement'](_0x38cbfe['item']);if(_0x38cbfe['item']['is']('element')&&_0xff83f['model']['schema']['isBlock'](_0x38cbfe['item'])&&!_0x5c98b6['getCustomProperty']('addHighlight')){_0x5498e5['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5c98b6),_0x5498e5['writer']['setAttribute']('data-suggestion',_0x40757f,_0x5c98b6),_0x5498e5['writer']['setAttribute']('data-author-id',_0x3022a4,_0x5c98b6),_0x5498e5['mapper']['bindElementToMarker'](_0x5c98b6,_0x38cbfe['markerName']),_0x5f5d4a&&(this['activeMarkers']['includes'](_0x38cbfe['markerName'])?_0x5498e5['writer']['addClass']('ck-suggestion-marker--active',_0x5c98b6):_0x5498e5['writer']['removeClass']('ck-suggestion-marker--active',_0x5c98b6));for(const _0x568e9d of _0xff83f['model']['createRangeIn'](_0x38cbfe['item'])['getItems']())_0x5498e5['consumable']['consume'](_0x568e9d,_0x2d0212['name']);_0x5498e5['consumable']['consume'](_0x38cbfe['item'],_0x2d0212['name']);}};_0xff83f['conversion']['for']('dataDowncast')['add'](_0x4d6b68=>{_0x4d6b68['on']('addMarker:suggestion:formatBlock',(_0x58605c,_0x27e7fc,_0x1cfc47)=>{_0x1cfc47['options']['showSuggestionHighlights']&&_0x847e5c({'showActiveMarkers':!0x1})(_0x58605c,_0x27e7fc,_0x1cfc47);},{'priority':'highest'});}),_0xff83f['conversion']['for']('dataDowncast')['add'](_0x552557=>{_0x552557['on']('addMarker:suggestion:attribute',(_0x35ea36,_0xb0aa3d,_0x505df8)=>{_0x505df8['options']['showSuggestionHighlights']&&_0x847e5c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x35ea36,_0xb0aa3d,_0x505df8);},{'priority':'highest'});}),_0xff83f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x52014b,_0x152bfe)=>_0x152bfe['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x52014b['substr'](0xb)}}),_0xff83f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x40076c,{writer:_0x2c1e8a})=>{let _0x3582e2='suggestion:'+_0x40076c['getAttribute']('suggestion-type')+':'+_0x40076c['getAttribute']('id');return _0x40076c['getAttribute']('marker-count')&&(_0x3582e2+=':'+_0x40076c['getAttribute']('marker-count')),_0x2c1e8a['createElement']('$marker',{'data-name':_0x3582e2});}}),_0xff83f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x377218=>{_0x377218['on']('addMarker:suggestion:formatBlock',_0x847e5c(),{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x1b77c0=>{_0x1b77c0['on']('addMarker:suggestion:attribute',_0x847e5c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x4e6160=>{_0x4e6160['on']('removeMarker:suggestion:formatBlock',(_0x175e9b,_0xea6085,_0x398130)=>{const _0x413a83=_0x398130['mapper']['markerNameToElements'](_0xea6085['markerName']);if(_0x413a83){for(const _0x3a4317 of _0x413a83)_0x3a4317['getCustomProperty']('addHighlight')||(_0x398130['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3a4317),_0x398130['writer']['removeAttribute']('data-suggestion',_0x3a4317),_0x398130['writer']['removeAttribute']('data-author-id',_0x3a4317),_0x398130['mapper']['unbindElementFromMarkerName'](_0x3a4317,_0xea6085['markerName']));}},{'priority':'high'});}),_0xff83f['conversion']['for']('editingDowncast')['add'](_0x144b86=>{_0x144b86['on']('removeMarker:suggestion:attribute',(_0x4c3dd0,_0x50c53d,_0xeec598)=>{const _0x325b39=_0xeec598['mapper']['markerNameToElements'](_0x50c53d['markerName']);if(!_0x325b39)return;const {id:_0x136393}=this['_splitMarkerName'](_0x50c53d['markerName']),_0x302634=this['_suggestions']['get'](_0x136393),_0x483ffe=this['_getAttributeKey'](_0x302634);if(this['_isBlockAttribute'](_0x483ffe)){for(const _0x5c2b4a of _0x325b39)_0x5c2b4a['getCustomProperty']('addHighlight')||(_0xeec598['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c2b4a),_0xeec598['writer']['removeAttribute']('data-suggestion',_0x5c2b4a),_0xeec598['writer']['removeAttribute']('data-author-id',_0x5c2b4a),_0xeec598['mapper']['unbindElementFromMarkerName'](_0x5c2b4a,_0x50c53d['markerName']));}},{'priority':'high'});}),_0xff83f['model']['document']['registerPostFixer'](_0xe01280=>{let _0x404308=!0x1;const _0x47a3f8=Array['from'](_0xff83f['model']['document']['differ']['getChangedMarkers']()),_0x1cdcf6=new Set();for(const {name:_0xe911b4,data:_0x466ebc}of _0x47a3f8){const {group:_0x49771a,type:_0x5de8cc,subType:_0x372bda,id:_0x518f3f}=this['_splitMarkerName'](_0xe911b4);if('suggestion'!==_0x49771a)continue;const _0x5282cd=this['_suggestions']['get'](_0x518f3f);if(null!=_0x466ebc['newRange']){'formatInline'==_0x5de8cc&&(_0x404308=_0x404308||Jt(_0x466ebc['newRange'],_0xe911b4,_0xe01280,_0xff83f['model']['schema']));const _0x21688b='attribute'==_0x5de8cc&&this['_isBlockAttribute'](_0x372bda['split']('|')[0x0]);if(_0x466ebc['newRange']['isCollapsed']||'$graveyard'==_0x466ebc['newRange']['root']['rootName']||'formatBlock'==_0x5de8cc&&!Ht(_0x466ebc['newRange'])||_0x21688b&&!Ht(_0x466ebc['newRange'])||'deletion'==_0x5de8cc&&!(!Lt(_0xe9db4e=_0x466ebc['newRange'])&&!function(_0x1c4fb0){return _0x1c4fb0['start']['parent']==_0x1c4fb0['end']['nodeBefore']&&_0x1c4fb0['start']['isAtEnd'];}(_0xe9db4e)))_0xe01280['removeMarker'](_0xe911b4),_0x404308=!0x0;else{if(!_0x5282cd||!_0x5282cd['isInContent'])continue;if(_0x466ebc['newRange']&&_0x466ebc['oldRange']&&_0x466ebc['newRange']['isEqual'](_0x466ebc['oldRange']))continue;_0x1cdcf6['add'](_0x5282cd);}}}var _0xe9db4e;return _0x1cdcf6['size']>0x0&&(_0x404308=!!this['_joinWithAdjacentSuggestions'](_0x1cdcf6)||_0x404308),_0x404308;}),_0xff83f['model']['document']['registerPostFixer'](_0x32c9ec=>{let _0x2ebf30=!0x1;for(const _0x8f6ae5 of _0xff83f['model']['document']['differ']['getChanges']())if('insert'==_0x8f6ae5['type'])for(const _0xec1db4 of this['_suggestions']['values']()){if(_0xec1db4['isMultiRange']||!_0xec1db4['isInContent'])continue;const _0x16125c='formatBlock'==_0xec1db4['type'],_0x17a46c=this['_getAttributeKey'](_0xec1db4),_0x1916a4=_0x17a46c&&this['_isBlockAttribute'](_0x17a46c);if(!_0x16125c&&!_0x1916a4)continue;const _0x235d6c=_0xec1db4['getFirstRange']();if(_0x235d6c['start']['parent']!=_0x235d6c['end']['parent']&&!_0x235d6c['end']['isAtEnd']){const _0x3c4962=_0xff83f['model']['createPositionAt'](_0x235d6c['start']['nodeAfter'],'end'),_0x145509=_0xff83f['model']['createRange'](_0x235d6c['start'],_0x3c4962);_0x32c9ec['updateMarker'](_0xec1db4['getFirstMarker'](),{'range':_0x145509}),_0x2ebf30=!0x0;}}return _0x2ebf30;}),_0xff83f['model']['document']['registerPostFixer'](_0xbf23d6=>this['_processAttributeChanges'](_0xbf23d6)),_0xff83f['model']['document']['registerPostFixer'](_0x4687f8=>!_0x4687f8['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4687f8)),_0xff83f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xff83f['model']['document']['on']('change:data',(_0x514deb,_0x2dda7d)=>{if(!_0x2dda7d['isLocal']||_0x2dda7d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xbab714=_0xff83f['model']['document']['differ']['getChanges']();if(0x0==_0xbab714['length'])return;const _0x105188=[],_0x101a2e=_0xbab714['filter'](_0x309673=>'attribute'==_0x309673['type']),_0x1f2ae6=_0xbab714['filter'](_0x4c7af6=>'insert'==_0x4c7af6['type']&&'$text'!=_0x4c7af6['name']);for(const _0x32ada3 of _0x101a2e)this['_isRegisteredAttribute'](_0x32ada3['attributeKey'])&&_0x105188['push']({'key':_0x32ada3['attributeKey'],'newValue':_0x32ada3['attributeNewValue'],'oldValue':_0x32ada3['attributeOldValue'],'range':qt(_0x32ada3['range'],_0xff83f['model'])});for(const _0x5c7960 of _0x1f2ae6){if('rename'!=_0x5c7960['action']&&'refresh'!=_0x5c7960['action'])continue;const _0x222f07=zt(_0x5c7960['position']['nodeAfter'],_0xff83f['model']),_0x15bb93=_0x5c7960['before'];'rename'==_0x5c7960['action']&&_0x105188['push']({'key':u,'newValue':_0x5c7960['name'],'oldValue':_0x15bb93['name'],'range':_0x222f07});for(const [_0x2df8c0,_0x465cbd]of _0x15bb93['attributes']){if(!this['_isRegisteredAttribute'](_0x2df8c0))continue;const _0x5dff9c=_0x5c7960['attributes']['get'](_0x2df8c0);_0x465cbd!==_0x5dff9c&&_0x105188['push']({'key':_0x2df8c0,'newValue':_0x5dff9c,'oldValue':_0x465cbd,'range':_0x222f07});}for(const [_0x4ba901,_0x4c9102]of _0x5c7960['attributes'])this['_isRegisteredAttribute'](_0x4ba901)&&(_0x15bb93['attributes']['has'](_0x4ba901)||_0x105188['push']({'key':_0x4ba901,'newValue':_0x4c9102,'oldValue':null,'range':_0x222f07}));}0x0!=_0x105188['length']&&_0xff83f['model']['enqueueChange'](_0x2dda7d,_0x21b264=>{const _0x373538=_0x35f42a();for(const {range:_0x4e6da3,key:_0x376777,oldValue:_0x287d25,newValue:_0x50fd81}of _0x105188)this['markAttributeChange'](_0x4e6da3,_0x376777,_0x287d25,_0x50fd81,{'groupId':_0x373538});this['_reduceExistingSuggestions'](_0x21b264,_0x105188);});},{'priority':'lowest'}),_0xff83f['model']['markers']['on']('update:suggestion',(_0x559527,_0x545c14,_0x2b1e96)=>{if(null==_0x2b1e96){const {id:_0x3cfb73}=this['_splitMarkerName'](_0x545c14['name']),_0x38d513=this['_suggestions']['get'](_0x3cfb73);_0x38d513&&_0x38d513['addMarkerName'](_0x545c14['name']);}}),_0xff83f['model']['document']['on']('change:data',()=>{const _0x164e16=Array['from'](_0xff83f['model']['document']['differ']['getChangedMarkers']())['filter'](_0xcaf515=>'suggestion'===this['_splitMarkerName'](_0xcaf515['name'])['group']);if(0x0===_0x164e16['length'])return;_0x164e16['sort']((_0x223673,_0x2a3540)=>{const _0x33bbcd=_0x223673['data']['oldRange'],_0x514912=_0x2a3540['data']['oldRange'];return null===_0x33bbcd&&null===_0x514912?0x0:null===_0x33bbcd&&null!==_0x514912?-0x1:null!==_0x33bbcd&&null===_0x514912?0x1:_0x33bbcd['start']['isBefore'](_0x514912['start'])?-0x1:0x1;});const _0x4b997f=new Set(),_0x116969=new Set();for(const {name:_0x4fa665,data:_0xfd8ed6}of _0x164e16){const {id:_0x4253a4}=this['_splitMarkerName'](_0x4fa665);if(null===_0xfd8ed6['oldRange']){const _0x341a9a=this['_handleNewSuggestionMarker'](_0x4fa665);_0x116969['add'](_0x341a9a);}else{const _0x177181=this['_suggestions']['get'](_0x4253a4);null!==_0xfd8ed6['newRange']||_0x177181['isInContent']?(_0x4b997f['add'](_0x177181['head']),_0x116969['add'](_0x177181)):this['_removeSuggestion'](_0x177181);}}_0x116969['size']>0x0&&this['_refreshSuggestionsChain'](_0x116969);for(const _0x18913f of _0x4b997f)this['fire']('suggestionChanged',_0x18913f);}),_0xff83f['model']['on']('applyOperation',(_0x21bc8e,_0x266f66)=>{const _0x359b0a=_0x266f66[0x0];if(!this['_suggestions']['size'])return;if(!_0x359b0a['isDocumentOperation'])return;if(_0x359b0a['batch']['isUndo']||!_0x359b0a['batch']['isLocal'])return;let _0x3bf056,_0xbd021d;switch(_0x359b0a['type']){case'insert':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['position']),_0xbd021d=_0x3bf056['getShiftedBy'](_0x359b0a['howMany']);break;case'split':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['splitPosition']),_0xbd021d=_0xff83f['model']['createPositionAt'](_0x359b0a['moveTargetPosition']);break;case'move':_0x3bf056=_0xff83f['model']['createPositionAt'](_0x359b0a['targetPosition']),_0xbd021d=_0x3bf056['getShiftedBy'](_0x359b0a['howMany']);break;default:return;}const _0x1e8239=_0xff83f['model']['createRange'](_0x3bf056,_0xbd021d);_0xff83f['model']['change'](()=>{for(const {suggestion:_0x33ce8b,meta:_0x5c7ecd}of this['_findSuggestions'](_0x1e8239)){if(_0x33ce8b['isMultiRange'])continue;if('formatInline'==_0x33ce8b['type'])continue;const _0xfa521f=this['_getAttributeKey'](_0x33ce8b);if(_0xfa521f&&this['_isBlockAttribute'](_0xfa521f)&&'split'!=_0x359b0a['type'])continue;const _0x3c3f07=_0x33ce8b['data']&&_0x33ce8b['data']['multipleBlocks'];('formatBlock'!=_0x33ce8b['type']||'split'==_0x359b0a['type']&&!_0x3c3f07)&&(_0x5c7ecd['containsRangeInObject']||'insertion'==_0x33ce8b['type']&&_0x5c7ecd['isOwn']||_0x33ce8b['getFirstRange']()['containsRange'](_0x1e8239)&&this['_breakSuggestionMarker'](_0x33ce8b,_0x3bf056,_0xbd021d));}});},{'priority':'lowest'}),_0xff83f['model']['on']('deleteContent',(_0x1f3ab5,_0x30069c)=>{const _0x272031=_0x30069c[0x0],_0x1387ec=_0x30069c[0x1];if(_0x1387ec&&_0x1387ec['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x272031['isCollapsed'])return;const _0x3885b8=_0xff83f['model']['schema'],{start:_0x407fe8,end:_0x3bb93c}=_0x272031['getFirstRange'](),_0x52afcf=_0x407fe8['nodeAfter']&&_0x3885b8['isLimit'](_0x407fe8['nodeAfter'])?null:_0x3885b8['getNearestSelectionRange'](_0x407fe8,'forward'),_0x40b14c=_0x3bb93c['nodeBefore']&&_0x3885b8['isLimit'](_0x3bb93c['nodeBefore'])?null:_0x3885b8['getNearestSelectionRange'](_0x3bb93c,'backward'),_0x2a4d65=_0xff83f['model']['createRange'](_0x52afcf?_0x52afcf['start']:_0x407fe8,_0x40b14c?_0x40b14c['end']:_0x3bb93c);_0xff83f['model']['change'](_0x321d7b=>{this['markDeletion'](_0x2a4d65);const _0x4247db=_0xff83f['model']['schema']['getNearestSelectionRange'](_0x2a4d65['start']);_0x272031['is']('documentSelection')?_0x321d7b['setSelection'](_0x4247db):_0x272031['setTo'](_0x4247db);}),_0x1f3ab5['stop']();},{'priority':_0x46c4ae['normal']+0xa}),_0xff83f['model']['on']('insertContent',(_0x569470,_0x3f3cbe)=>{const _0x4d0dcf=_0x3f3cbe[_0x3f3cbe['length']-0x1];_0x4d0dcf&&_0x4d0dcf['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xff83f['model']['change'](()=>{let _0x49d948=_0xff83f['model']['insertContent'](_0x3f3cbe[0x0],_0x3f3cbe[0x1],_0x3f3cbe[0x2],{'forceDefaultExecution':!0x0});if(!_0x49d948)return;_0x569470['return']=_0x49d948['clone']();const _0x1f64af=_0x49d948['end']['nodeBefore'],_0x174a16=_0xff83f['model']['schema'];_0x1f64af&&_0x174a16['isBlock'](_0x1f64af)&&!_0x174a16['isObject'](_0x1f64af)&&(_0x49d948=_0xff83f['model']['createRange'](_0x49d948['start'],_0xff83f['model']['createPositionAt'](_0x1f64af,'end'))),this['markInsertion'](_0x49d948);}),_0x569470['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3333bb=new O(_0xff83f,this['_suggestions']);_0xff83f['commands']['add']('acceptSuggestion',_0x3333bb),this['enableCommand']('acceptSuggestion');const _0x572b66=new R(_0xff83f,this['_suggestions']);_0xff83f['commands']['add']('discardSuggestion',_0x572b66),this['enableCommand']('discardSuggestion'),_0xff83f['commands']['add']('acceptAllSuggestions',new x(_0xff83f,_0x3333bb,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xff83f['commands']['add']('discardAllSuggestions',new x(_0xff83f,_0x572b66,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xff83f['commands']['add']('acceptSelectedSuggestions',new E(_0xff83f,_0x3333bb,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xff83f['commands']['add']('discardSelectedSuggestions',new E(_0xff83f,_0x572b66,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x275bc8=_0xff83f['plugins']['get']('CommentsRepository');this['listenTo'](_0x275bc8,'addComment',(_0x5dc28f,{threadId:_0x4b5d79})=>{const _0x11ba82=this['_suggestions']['get'](_0x4b5d79);_0x11ba82&&_0x11ba82['commentThread']&&0x1===_0x11ba82['commentThread']['length']&&this['_updateSuggestionData'](_0x4b5d79,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x275bc8,'removeComment',(_0x4a4fe9,{threadId:_0x41e186})=>{const _0x4e251e=this['_suggestions']['get'](_0x41e186);_0x4e251e&&_0x4e251e['commentThread']&&!_0x4e251e['commentThread']['length']&&this['_updateSuggestionData'](_0x41e186,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x41c859){const _0x57b59e=_0x3d5c56([0x67,0x65,0x43,0x7a,0x59,0x39,0x57,0x63,0x70,0x38,0x62,0x56,0x44,0x5a,0x66,0x45,0x33,0x50,0x4e,0x68,0x6d,0x73,0x6b,0x30,0x51,0x69,0x6a,0x41,0x46,0x76,0x52,0x6f,0x55,0x35,0x4d,0x36,0x49,0x71,0x77,0x75,0x32,0x4b,0x58,0x74,0x72,0x4c,0x34,0x4a,0x79,0x4f,0x47,0x48,0x42,0x54,0x6e,0x6c,0x78,0x61,0x53,0x64,0x31,0x37]),_0x13790e=0x1793b815,_0x3ef982=0x1794dc55^_0x13790e,_0x57f990=window[_0x3d5c56([0x44,0x61,0x74,0x65])][_0x3d5c56([0x6e,0x6f,0x77])](),_0x2e99fe=_0x41c859[_0x3d5c56([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1f5a6c=new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4210c7=>{_0x2e99fe[_0x3d5c56([0x6f,0x6e,0x63,0x65])](_0x3d5c56([0x72,0x65,0x61,0x64,0x79]),_0x4210c7);}),_0x367d20={[_0x3d5c56([0x6b,0x74,0x79])]:_0x3d5c56([0x45,0x43]),[_0x3d5c56([0x75,0x73,0x65])]:_0x3d5c56([0x73,0x69,0x67]),[_0x3d5c56([0x63,0x72,0x76])]:_0x3d5c56([0x50,0x2d,0x32,0x35,0x36]),[_0x3d5c56([0x78])]:_0x3d5c56([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]),[_0x3d5c56([0x79])]:_0x3d5c56([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]),[_0x3d5c56([0x61,0x6c,0x67])]:_0x3d5c56([0x45,0x53,0x32,0x35,0x36])},_0x12efa7=_0x2e99fe[_0x3d5c56([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d5c56([0x67,0x65,0x74])](_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x11b4aa(){let _0x576d9c,_0x5258c2=null,_0x3eb648=null;try{if(_0x12efa7==_0x3d5c56([0x47,0x50,0x4c]))return _0x3d5c56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x576d9c=_0x17aba0(),!_0x576d9c)return _0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x576d9c[_0x3d5c56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3eb648=_0x4321ad(_0x576d9c[_0x3d5c56([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x576d9c[_0x3d5c56([0x6a,0x74,0x69])])),await _0x260de1()?_0x4c4ea0()?_0x4df215()?_0x3d5c56([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x14cde7()?(_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5c56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5258c2=_0x4dea01(_0x3d5c56([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5c56([0x74,0x72,0x69,0x61,0x6c])&&(_0x5258c2=_0x4dea01(_0x3d5c56([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb6b796()):_0x3d5c56([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5c56([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x330df3){return _0x3d5c56([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4df215(){const _0x4f2701=[_0x3d5c56([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d5c56([0x74,0x72,0x69,0x61,0x6c])][_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x57f990/0x3e8:0xe10*_0x3ef982;return _0x576d9c[_0x3d5c56([0x65,0x78,0x70])]<_0x4f2701;}function _0x4c4ea0(){const _0x45efd1=_0x576d9c[_0x3d5c56([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x45efd1)return!0x1;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x2a])))return!0x0;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x54,0x43])))return!0x0;if(_0x45efd1[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x52,0x54,0x43]))){if(_0xba8ee0())return!0x0;if(_0x52b7ab()||_0x3d5572())return!0x0;}return!0x1;}function _0x14cde7(){const _0x31182a=_0x576d9c[_0x3d5c56([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x31182a||0x0==_0x31182a[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ed4a9}=new URL(window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x31182a[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ed4a9))return!0x0;const _0x553478=_0x1ed4a9[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e]));return _0x31182a[_0x3d5c56([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1076f5=>_0x1076f5[_0x3d5c56([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5c56([0x2a])))[_0x3d5c56([0x6d,0x61,0x70])](_0xd1df13=>_0xd1df13[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e])))[_0x3d5c56([0x73,0x6f,0x6d,0x65])](_0x3262d6=>_0x553478[_0x3d5c56([0x65,0x76,0x65,0x72,0x79])]((_0x28127a,_0x51e3f6)=>_0x3262d6[_0x51e3f6]===_0x28127a||_0x3262d6[_0x51e3f6]===_0x3d5c56([0x2a])));}function _0xb6b796(){return _0x5258c2&&_0x3eb648?new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3bc33a,_0x2dffde)=>{_0x5258c2[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x3bc33a,_0x2dffde),_0x3eb648[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x2742b4=>{_0x2742b4!=_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])&&_0x3bc33a(_0x2742b4);},_0x2dffde);}):_0x5258c2||_0x3eb648||_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4321ad(_0x32d954,_0x3ab857){return new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4da8dd=>{if(_0x115cb1())return _0x4da8dd(_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]));_0x514085(),_0x2e99fe[_0x3d5c56([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5bb7f3=!0x1;const _0x529a23=_0x35f42a();function _0x529fcf(_0x3f97d1){return!!_0x3f97d1&&(typeof _0x3f97d1===_0x3d5c56([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3f97d1===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3f97d1[_0x3d5c56([0x74,0x68,0x65,0x6e])]===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3f97d1[_0x3d5c56([0x63,0x61,0x74,0x63,0x68])]===_0x3d5c56([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x27c88b(_0x236715){_0x11def7(_0x236715)[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x23b2c5=>{if(!_0x23b2c5||_0x23b2c5[_0x3d5c56([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d5c56([0x6f,0x6b]))return _0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4cf1(_0x48886a(_0x529a23+_0x3ab857))!=_0x23b2c5[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5c56([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x45a6f0=>(_0x166fbe(),_0x45a6f0),()=>{const _0x2e0722=_0x31da88();return null==_0x2e0722?(_0x166fbe(),_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])):_0x3d5c56(_0x57f990-_0x2e0722>(0x339f3c15^_0x13790e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x4da8dd)[_0x3d5c56([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1624b8=0x17a55695^_0x13790e;function _0x166fbe(){const _0x2d610f=_0x3d5c56([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4cf1(_0x48886a(_0x32d954)),_0x16f9de=_0x4080fe(_0x3e4cf1(window[_0x3d5c56([0x4d,0x61,0x74,0x68])][_0x3d5c56([0x63,0x65,0x69,0x6c])](_0x57f990/_0x1624b8)));window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5c56([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d610f,_0x16f9de);}function _0x31da88(){const _0x21714b=_0x3d5c56([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4cf1(_0x48886a(_0x32d954)),_0xc3692e=window[_0x3d5c56([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5c56([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x21714b);return _0xc3692e?window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4080fe(_0xc3692e),0x10)*_0x1624b8:null;}function _0x11def7(_0x59bba2){return new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3a1e0f,_0x20a423)=>{_0x59bba2[_0x3d5c56([0x74,0x68,0x65,0x6e])](_0x3a1e0f,_0x20a423),window[_0x3d5c56([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x20a423,0x17926cd5^_0x13790e);});}}_0x2e99fe[_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5c55cb,_0x11395b)=>{if(_0x11395b[0x0]!=_0x32d954)return _0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x11395b[0x1]={..._0x11395b[0x1],[_0x3d5c56([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x529a23};},{[_0x3d5c56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5c56([0x68,0x69,0x67,0x68])}),_0x2e99fe[_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3981c3=>{_0x529fcf(_0x3981c3[_0x3d5c56([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5bb7f3=!0x0,_0x27c88b(_0x3981c3[_0x3d5c56([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d5c56([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5c56([0x6c,0x6f,0x77])}),_0x1f5a6c[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>{_0x5bb7f3||_0x4da8dd(_0x3d5c56([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x115cb1(){return _0x2e99fe[_0x3d5c56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5c56([0x76,0x69,0x65,0x77])][_0x3d5c56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d5c56([0x61,0x75,0x74,0x6f]);}function _0x514085(){_0x2e99fe[_0x3d5c56([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5c56([0x76,0x69,0x65,0x77])][_0x3d5c56([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d5c56([0x61,0x75,0x74,0x6f]);}}function _0x4dea01(_0x47c4e5){const _0x563594=[new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41acbb=>setTimeout(_0x41acbb,0x179a86d9^_0x13790e)),_0x1f5a6c[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177198=>{let _0x429c40=0x0;_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x6f,0x6e])](_0x3d5c56([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4fa254,_0x49bfa0)=>{_0x49bfa0[0x0][_0x3d5c56([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x429c40++,_0x429c40==(0x1793b9ed^_0x13790e)&&(_0x177198(),_0x4fa254[_0x3d5c56([0x6f,0x66,0x66])]());});}))];return window[_0x3d5c56([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d5c56([0x72,0x61,0x63,0x65])](_0x563594)[_0x3d5c56([0x74,0x68,0x65,0x6e])](()=>_0x47c4e5);}async function _0x1660aa(){await _0x1f5a6c,_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47f97b,_0x2e99fe[_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5c56([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47f97b,_0x2e99fe[_0x3d5c56([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d5c56([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xba8ee0(){return _0x4334ed(_0x3d5c56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2991d2(_0x3d5c56([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3d5c56([0x73,0x74,0x61,0x74,0x65])]==_0x3d5c56([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x52b7ab(){return _0x4334ed(_0x3d5c56([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 _0x3d5572(){return _0x4334ed(_0x3d5c56([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e7cf4(_0x5aae79){const _0x2040f9=_0x558b7e();_0x2e99fe[_0x2040f9]=_0x3d5c56([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5aae79,_0x5aae79!=_0x3d5c56([0x56,0x61,0x6c,0x69,0x64])&&_0x1660aa();}function _0x558b7e(){const _0x33ac5f=window[_0x3d5c56([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d5c56([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d5c56([0x6e,0x6f,0x77])]())[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d5c56([0x2e]),'');let _0x10ad05=_0x3d5c56([0x67]);for(let _0x17880b=0x0;_0x17880b<_0x33ac5f[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17880b+=0x2){let _0x3185c8=window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x33ac5f[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17880b,_0x17880b+0x2));_0x3185c8>=_0x57b59e[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3185c8-=_0x57b59e[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10ad05+=_0x57b59e[_0x3185c8];}return _0x10ad05;}function _0x17aba0(){const _0xe4e515=_0x12efa7[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e]));if(0x3!=_0xe4e515[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x264bda(_0xe4e515[0x1]);function _0x264bda(_0x1c5a69){const _0x30baed=_0x1fc11e(_0x1c5a69);return _0x30baed&&_0xc4d8ed()?_0x30baed:null;function _0xc4d8ed(){const _0x3e4203=_0x30baed[_0x3d5c56([0x6a,0x74,0x69])],_0x2d9008=window[_0x3d5c56([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e4203[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e4203[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2a77cc={..._0x30baed,[_0x3d5c56([0x6a,0x74,0x69])]:_0x3e4203[_0x3d5c56([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e4203[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2a77cc[_0x3d5c56([0x76,0x63])],_0x48886a(_0x2a77cc)==_0x2d9008;}}}async function _0x260de1(){let _0xf5caf2=!0x0;try{const _0x61183d=_0x12efa7[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])](_0x3d5c56([0x2e])),[_0x1327ca,_0x280499,_0x4c687b]=_0x61183d;return _0x3ddd29(_0x1327ca),await _0x4264a7(_0x1327ca,_0x280499,_0x4c687b),_0xf5caf2;}catch(_0x43a476){return!0x1;}function _0x3ddd29(_0x5708c6){const _0x2d9961=_0x1fc11e(_0x5708c6);_0x2d9961&&_0x2d9961[_0x3d5c56([0x61,0x6c,0x67])]==_0x3d5c56([0x45,0x53,0x32,0x35,0x36])||(_0xf5caf2=!0x1);}async function _0x4264a7(_0x27449c,_0x48edb7,_0x56534c){const _0x2d0808=window[_0x3d5c56([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d5c56([0x66,0x72,0x6f,0x6d])](_0x229df4(_0x56534c),_0x22a381=>_0x22a381[_0x3d5c56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2b0908=new window[(_0x3d5c56([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d5c56([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27449c+_0x3d5c56([0x2e])+_0x48edb7),_0x4d6d98=window[_0x3d5c56([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d5c56([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d6d98)return;const _0xb7c43e=await _0x4d6d98[_0x3d5c56([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d5c56([0x6a,0x77,0x6b]),_0x367d20,{[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x45,0x43,0x44,0x53,0x41]),[_0x3d5c56([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d5c56([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d6d98[_0x3d5c56([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x45,0x43,0x44,0x53,0x41]),[_0x3d5c56([0x68,0x61,0x73,0x68])]:{[_0x3d5c56([0x6e,0x61,0x6d,0x65])]:_0x3d5c56([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb7c43e,_0x2d0808,_0x2b0908)||(_0xf5caf2=!0x1);}}function _0x1fc11e(_0x59ddc2){return _0x59ddc2[_0x3d5c56([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d5c56([0x65,0x79]))?JSON[_0x3d5c56([0x70,0x61,0x72,0x73,0x65])](_0x229df4(_0x59ddc2)):null;}function _0x229df4(_0x23ff15){return window[_0x3d5c56([0x61,0x74,0x6f,0x62])](_0x23ff15[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d5c56([0x2b]))[_0x3d5c56([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d5c56([0x2f])));}function _0x48886a(_0x525040){let _0x15b5a8=0x1505;function _0x3fabd8(_0x3d045d){for(let _0x32f97c=0x0;_0x32f97c<_0x3d045d[_0x3d5c56([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32f97c++){const _0x22795e=_0x3d045d[_0x3d5c56([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x32f97c);_0x15b5a8=(_0x15b5a8<<0x5)+_0x15b5a8+_0x22795e,_0x15b5a8&=_0x15b5a8;}}function _0x5833f7(_0x340684){Array[_0x3d5c56([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x340684)?_0x340684[_0x3d5c56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5833f7):_0x340684&&typeof _0x340684==_0x3d5c56([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d5c56([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x340684)[_0x3d5c56([0x73,0x6f,0x72,0x74])]()[_0x3d5c56([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3596ab,_0x8121cc])=>{_0x3fabd8(_0x3596ab),_0x5833f7(_0x8121cc);}):_0x3fabd8(window[_0x3d5c56([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x340684));}return _0x5833f7(_0x525040),_0x15b5a8>>>0x0;}function _0x3e4cf1(_0x2fb699){return _0x2fb699[_0x3d5c56([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d5c56([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d5c56([0x30]));}function _0x4080fe(_0x329eab){return _0x329eab[_0x3d5c56([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d5c56([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d5c56([0x6a,0x6f,0x69,0x6e])]('');}function _0x4334ed(_0xb89ef8){return _0x2e99fe[_0x3d5c56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d5c56([0x68,0x61,0x73])](_0xb89ef8);}function _0x2991d2(_0xf989d6){return _0x2e99fe[_0x3d5c56([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3d5c56([0x67,0x65,0x74])](_0xf989d6);}function _0x47f97b(){}function _0x3d5c56(_0x533187){return _0x533187['map'](_0x10d335=>String['fromCharCode'](_0x10d335))['join']('');}_0x1e7cf4(await _0x11b4aa());}(this);}set['adapter'](_0x2ed0e5){if(this['_adapter'])throw new _0x463d5f('track-changes-adapter-already-set',this);this['_adapter']=_0x2ed0e5;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41cab1=!0x1,toJSON:_0xa001b7=!0x1}={}){const _0x4d68b8=[];for(const _0x205fca of this['_suggestions']['values']())_0x41cab1&&!_0x205fca['isInContent']||_0x4d68b8['push'](_0x205fca);return _0xa001b7?_0x4d68b8['map'](_0x4043d8=>_0x4043d8['toJSON']()):_0x4d68b8;}['getSuggestion'](_0x3bab8d){const _0x2ca4a6=this['_suggestions']['get'](_0x3bab8d);if(!_0x2ca4a6)throw new _0x463d5f('track-changes-suggestion-not-found',this);return _0x2ca4a6;}['hasSuggestion'](_0x280ce1){return this['_suggestions']['has'](_0x280ce1);}['addSuggestionData'](_0x4f75e6){const {authorId:_0x251277,id:_0x32d844,attributes:_0xeaaecb}=_0x4f75e6,[_0x449686,_0x2fc318]=_0x4f75e6['type']['split'](':'),_0x1388f1=this['_suggestions']['get'](_0x32d844)||this['_createSuggestion'](_0x449686,_0x2fc318,_0x32d844,_0x251277,_0xeaaecb);if(this['_addThreadToSuggestion'](_0x1388f1),this['_checkSuggestionCorrectness'](_0x1388f1,_0x449686,_0x2fc318||null,_0x251277),_0x1388f1['createdAt']=_0x4f75e6['createdAt'],_0x1388f1['_isDataLoaded']=!0x0,_0xeaaecb&&_0xeaaecb['@external']){const _0x457b25=_0xeaaecb['@external'],_0x2c1457=this['_getExternalAuthor'](_0x457b25['authorName']);_0x1388f1['authoredAt']=_0x457b25['createdAt'],_0x1388f1['author']=_0x2c1457,_0x1388f1['isExternal']=!0x0;}else _0x1388f1['authoredAt']=_0x4f75e6['createdAt'];switch(_0x4f75e6['data']&&(_0x1388f1['data']=_0x4f75e6['data']),_0x4f75e6['attributes']&&(_0x1388f1['attributes']=_0x4f75e6['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1388f1['_saved']=!0x0),this['_suggestionState']['get'](_0x1388f1)){case'notReady':this['_suggestionState']['set'](_0x1388f1,'dataReady');break;case'markerReady':_0x1388f1['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1388f1])),this['_refreshSuggestionsChain'](new Set([_0x1388f1])),this['_suggestionState']['set'](_0x1388f1,'ready'),this['fire']('suggestionLoaded',_0x1388f1)):this['_suggestionState']['set'](_0x1388f1,'removed');}return _0x1388f1;}['acceptSuggestion'](_0x501a1a){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5652d2 of _0x501a1a['getAllAdjacentSuggestions']())_0x5652d2['accept']();});});}['discardSuggestion'](_0x13797e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5d9ff1 of _0x13797e['getAllAdjacentSuggestions']())_0x5d9ff1['discard']();});});}['enableCommand'](_0x3947c6,_0x27c7b3){const _0x178c7f=this['editor']['commands']['get'](_0x3947c6);if(!_0x178c7f)throw new _0x463d5f('track-changes-command-not-found',this,{'commandName':_0x3947c6});if(this['_enabledCommands']['has'](_0x178c7f))throw new _0x463d5f('track-changes-enable-command-twice',this,{'commandName':_0x3947c6});this['_enabledCommands']['add'](_0x178c7f),_0x27c7b3&&_0x178c7f['on']('execute',(_0x426461,_0x5f1276)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f1276['length']>0x0&&_0x5f1276[_0x5f1276['length']-0x1]&&_0x5f1276[_0x5f1276['length']-0x1]['forceDefaultExecution']?_0x5f1276['pop']():(_0x426461['return']=_0x27c7b3((..._0x591309)=>_0x178c7f['execute'](..._0x591309,{'forceDefaultExecution':!0x0}),..._0x5f1276),_0x426461['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xfc1838){let _0x55c626,_0x26a586;const _0x3cf4c4=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x55c626=_0xfc1838();}catch(_0x414bf2){_0x26a586=_0x414bf2;}return _0x3cf4c4||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26a586&&_0x463d5f['rethrowUnexpectedError'](_0x26a586,this),_0x55c626;}['markInsertion'](_0x269eb1,_0x54756b=null,_0x26b9ab={}){if(_0x269eb1['isCollapsed'])return null;const _0x576ef4=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x53f9ac,meta:_0x2ace23}of this['_findSuggestions'](_0x269eb1,'insertion'))if(_0x2ace23['isOwn']){if(!_0x2ace23['isNextTo']){if(_0x2ace23['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Xt(_0x53f9ac,_0x26b9ab))continue;return _0x53f9ac;}if(Xt(_0x53f9ac,_0x26b9ab))return _0x53f9ac;this['_breakSuggestionMarker'](_0x53f9ac,_0x269eb1['start'],_0x269eb1['end']);break;}if(_0x54756b==_0x53f9ac['subType']&&Xt(_0x53f9ac,_0x26b9ab)){const _0x182e1d=_0x53f9ac['getFirstRange']();return _0x182e1d['start']['isEqual'](_0x269eb1['end'])?this['_setSuggestionRange'](_0x53f9ac,this['_model']['createRange'](_0x269eb1['start'],_0x182e1d['end'])):this['_setSuggestionRange'](_0x53f9ac,this['_model']['createRange'](_0x182e1d['start'],_0x269eb1['end'])),_0x53f9ac;}}const _0xc325ea=_0x35f42a(),_0x676ebe=_0x576ef4['id'],_0x5c5941=_0x54756b?'insertion:'+_0x54756b:'insertion',_0x391a7f=this['_setSuggestionData']({'id':_0xc325ea,'type':_0x5c5941,'createdAt':new Date(),'authorId':_0x676ebe,'attributes':_0x26b9ab});return this['_addSuggestionMarker'](_0x5c5941,_0xc325ea,_0x676ebe,_0x269eb1),_0x391a7f;}['markMultiRangeInsertion'](_0x801a14,_0x10836e='multi',_0x17cc49={}){const _0x48244f=this['editor']['plugins']['get']('Users')['me'],_0x5798db=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x10836e,'join');for(const _0x5606ce of this['getSuggestions']())if(_0x5606ce['author']['id']==_0x48244f['id']&&'insertion'==_0x5606ce['type']&&_0x5606ce['subType']==_0x10836e&&Xt(_0x5606ce,_0x17cc49)&&(_0x5798db(_0x5606ce['getRanges'](),_0x801a14)||_0x5798db(_0x801a14,_0x5606ce['getRanges']()))){for(const _0x5e5ec9 of _0x801a14)_0x5606ce['addRange'](_0x5e5ec9);return _0x5606ce;}for(const {suggestion:_0x17a3fa,meta:_0x1a0cb3}of this['_findSuggestions'](_0x801a14,'insertion')){if(!_0x1a0cb3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1a0cb3['containsRangeInObject'])continue;if(!Xt(_0x17a3fa,_0x17cc49))continue;let _0x355cb8=!0x0;for(const _0x4a4abe of _0x17a3fa['getRanges']())for(const _0x6c21e7 of _0x801a14)if(!_0x4a4abe['containsRange'](_0x6c21e7)){_0x355cb8=!0x1;break;}if(_0x355cb8)return _0x17a3fa;}const _0x541283=_0x35f42a(),_0x597925=_0x48244f['id'],_0x4419f4='insertion:'+_0x10836e,_0x41bb91=this['_setSuggestionData']({'id':_0x541283,'type':_0x4419f4,'createdAt':new Date(),'authorId':_0x597925,'attributes':_0x17cc49});for(const _0xfb591e of _0x801a14)this['_addSuggestionMarker'](_0x4419f4,_0x541283,_0x597925,_0xfb591e,o['getMultiRangeId']());return _0x41bb91;}['markInlineFormat'](_0x408332,_0x275d5d,_0x3388c3=null,_0x39e229={}){if(_0x3388c3=_0x3388c3||Kt(_0x275d5d),_0x408332['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5a0ac2=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3388c3,'accept');return this['forceDefaultExecution'](()=>_0x5a0ac2([_0x408332],_0x275d5d,_0x39e229)),null;}const _0x33bd0d=this['editor']['plugins']['get']('Users')['me'],_0x3cf7e9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x2a92a2,meta:_0x4b3e9b}of this['_findSuggestions'](_0x408332,'insertion'))_0x4b3e9b['isOwn']&&!_0x4b3e9b['isInsideObject']&&_0x3cf7e9['push'](..._0x2a92a2['getRanges']());}const _0x64773e=function(_0xf5eaa0,_0x78bc0a){const _0x36e129=[];for(const _0x33af53 of _0x78bc0a){const _0x2da55b=_0xf5eaa0['getIntersection'](_0x33af53);_0x2da55b&&_0x36e129['push'](_0x2da55b);}return _0x36e129;}(_0x408332,_0x3cf7e9),_0x3619db=function(_0x5ee67d,_0xb06a03){const _0x44bb09=[_0x5ee67d];for(const _0x4a134f of _0xb06a03){let _0x584ccb=0x0;for(;_0x584ccb<_0x44bb09['length'];){const _0x555aca=_0x44bb09[_0x584ccb]['getDifference'](_0x4a134f);_0x44bb09['splice'](_0x584ccb,0x1,..._0x555aca),_0x584ccb+=_0x555aca['length'];}}return _0x44bb09;}(_0x408332,_0x3cf7e9);_0x64773e['length']&&this['_model']['change'](()=>{for(const _0xa3fc0b of _0x64773e){const _0x12484e=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3388c3,'accept');this['forceDefaultExecution'](()=>_0x12484e([_0xa3fc0b],_0x275d5d,_0x39e229));}});for(const _0x40b4ac of _0x3619db){let _0x2c9034=null,_0x2a18dc=_0x40b4ac['start'],_0x2ea1bb=_0x40b4ac['end'];for(const {suggestion:_0x3b62c8,meta:_0x324921}of this['_findSuggestions'](_0x40b4ac,'formatInline')){if(!_0x324921['isOwn'])continue;if(_0x3b62c8['subType']!=_0x3388c3)continue;if(!Xt(_0x3b62c8,_0x39e229))continue;const _0x5e1843=_0x3b62c8['getFirstRange']();if(_0x5e1843['containsRange'](_0x40b4ac,!0x0))return null;_0x2a18dc=_0x2a18dc['isBefore'](_0x5e1843['start'])?_0x2a18dc:_0x5e1843['start'],_0x2ea1bb=_0x2ea1bb['isAfter'](_0x5e1843['end'])?_0x2ea1bb:_0x5e1843['end'],_0x2c9034?_0x5e1843['start']['isBefore'](_0x2c9034['getFirstRange']()['start'])?(_0x2c9034['removeMarkers'](),_0x2c9034=_0x3b62c8):_0x3b62c8['removeMarkers']():_0x2c9034=_0x3b62c8;}const _0x1d6785=this['_model']['createRange'](_0x2a18dc,_0x2ea1bb);if(_0x2c9034)this['_setSuggestionRange'](_0x2c9034,_0x1d6785);else{const _0x3db5e8=_0x35f42a(),_0x3f2209=_0x33bd0d['id'];this['_setSuggestionData']({'id':_0x3db5e8,'type':'formatInline:'+_0x3388c3,'data':_0x275d5d,'createdAt':new Date(),'authorId':_0x3f2209,'attributes':_0x39e229}),this['_addSuggestionMarker']('formatInline:'+_0x3388c3,_0x3db5e8,_0x3f2209,_0x1d6785);}}return null;}['markBlockFormat'](_0x2de651,_0x4c645d,_0x26d07c=[],_0x5131f3=null,_0x489d21={}){_0x4c645d['formatGroupId']||(_0x4c645d['formatGroupId']=_0x4c645d['commandName']),_0x4c645d['multipleBlocks']=_0x2de651['is']('range'),_0x5131f3=_0x5131f3||Kt(_0x4c645d);const _0x54cfb0=_0x26d07c['map'](_0x829bc2=>zt(_0x829bc2,this['_model'])),_0x39f255=_0x2de651['is']('range')?_0x2de651:zt(_0x2de651,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5e515c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5131f3,'accept');return this['forceDefaultExecution'](()=>_0x5e515c([_0x39f255],_0x4c645d,_0x489d21)),null;}_0x54cfb0['push'](_0x39f255);let _0x34e127=!0x0;for(const _0x1861d2 of _0x54cfb0)if(!this['_rangeIsInLocalUserInsertion'](_0x1861d2)){_0x34e127=!0x1;break;}if(_0x34e127&&'always'!==this['_trackFormatChanges']){const _0x2e8286=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5131f3,'accept');return this['forceDefaultExecution'](()=>_0x2e8286([_0x39f255],_0x4c645d,_0x489d21)),null;}let _0x31e870=null,_0x5c3654=_0x39f255['start'],_0xc27ec=_0x39f255['end'];for(const {suggestion:_0x100f96,meta:_0x3073e0}of this['_findSuggestions'](_0x39f255,'formatBlock')){if(!_0x3073e0['isOwn'])continue;if(_0x3073e0['isNextTo']||_0x3073e0['containsRangeInObject']||_0x3073e0['isInsideObject'])continue;if(_0x100f96['data']['formatGroupId']!=_0x4c645d['formatGroupId'])continue;if(!Xt(_0x100f96,_0x489d21))continue;const _0x10bb63=_0x100f96['getFirstRange']();if(_0x100f96['subType']==_0x5131f3){if(_0x10bb63['containsRange'](_0x39f255,!0x0))return null;_0x5c3654=_0x5c3654['isBefore'](_0x10bb63['start'])?_0x5c3654:_0x10bb63['start'],_0xc27ec=_0xc27ec['isAfter'](_0x10bb63['end'])?_0xc27ec:_0x10bb63['end'],_0x31e870?_0x10bb63['start']['isBefore'](_0x31e870['getFirstRange']()['start'])?(_0x31e870['removeMarkers'](),_0x31e870=_0x100f96):_0x100f96['removeMarkers']():_0x31e870=_0x100f96;}else{const _0x209382=_0x39f255['getIntersection'](_0x10bb63);this['_cutOutSuggestionMarker'](_0x100f96,_0x209382);}}const _0x5e9cce=this['editor']['plugins']['get']('Users')['me'],_0x3c74d6=_0x35f42a(),_0x5c99f5=_0x5e9cce['id'];if(_0x31e870)return this['_setSuggestionRange'](_0x31e870,this['_model']['createRange'](_0x5c3654,_0xc27ec)),_0x31e870;{const _0x2c24ee=this['_setSuggestionData']({'id':_0x3c74d6,'type':'formatBlock:'+_0x5131f3,'data':_0x4c645d,'createdAt':new Date(),'authorId':_0x5c99f5,'attributes':_0x489d21});return this['_addSuggestionMarker']('formatBlock:'+_0x5131f3,_0x3c74d6,_0x5c99f5,this['_model']['createRange'](_0x5c3654,_0xc27ec)),_0x2c24ee;}}['markMultiRangeBlockFormat'](_0x7683a7,_0x11493f,_0x2b168c=[],_0x604d97=null,_0x206e9e={}){_0x11493f['formatGroupId']||(_0x11493f['formatGroupId']=_0x11493f['commandName']);const _0x7cc1e3=_0x7683a7[0x0];_0x11493f['multipleBlocks']=_0x7cc1e3['is']('range'),_0x604d97=_0x604d97||Kt(_0x11493f);const _0x1b86e2=_0x2b168c['map'](_0x5c061b=>zt(_0x5c061b,this['_model'])),_0x57c15d=_0x7cc1e3['is']('range')?_0x7683a7:_0x7683a7['map'](_0x3e3522=>zt(_0x3e3522,this['_model']));if('never'===this['_trackFormatChanges']){const _0xb4fe0b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'accept');return this['forceDefaultExecution'](()=>_0xb4fe0b(_0x57c15d,_0x11493f,_0x206e9e)),null;}_0x1b86e2['push'](..._0x57c15d);let _0x15ef7c=!0x0;for(const _0x461aa8 of _0x1b86e2)if(!this['_rangeIsInLocalUserInsertion'](_0x461aa8)){_0x15ef7c=!0x1;break;}if(_0x15ef7c&&'always'!==this['_trackFormatChanges']){const _0x431d7a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'accept');return this['forceDefaultExecution'](()=>_0x431d7a(_0x57c15d,_0x11493f,_0x206e9e)),null;}const _0x2ae4a5=this['editor']['plugins']['get']('Users')['me'];for(const _0x9b5c1b of this['getSuggestions']()){if(_0x9b5c1b['author']['id']!=_0x2ae4a5['id'])continue;if('formatBlock'!=_0x9b5c1b['type']||_0x9b5c1b['data']['formatGroupId']!=_0x11493f['formatGroupId'])continue;if(!Xt(_0x9b5c1b,_0x206e9e))continue;const _0x112025=_0x9b5c1b['subType']==_0x604d97;for(let _0x1bcaac=0x0;_0x1bcaac<_0x57c15d['length'];_0x1bcaac++){const _0x39e4e9=_0x57c15d[_0x1bcaac];for(const _0x560a16 of _0x9b5c1b['getMarkers']()){const _0x1f25d1=_0x560a16['getRange']();if(_0x39e4e9['isEqual'](_0x1f25d1)){_0x112025?(_0x57c15d['splice'](_0x1bcaac,0x1),_0x1bcaac--):_0x9b5c1b['removeMarker'](_0x560a16['name']);break;}}}}if(0x0==_0x57c15d['length'])return null;const _0x56be26=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x604d97,'join');for(const _0x9375a of this['getSuggestions']())if(_0x9375a['author']['id']==_0x2ae4a5['id']&&'formatBlock'==_0x9375a['type']&&_0x9375a['data']['formatGroupId']==_0x11493f['formatGroupId']&&_0x9375a['subType']==_0x604d97&&Xt(_0x9375a,_0x206e9e)&&(_0x56be26(_0x9375a['getRanges'](),_0x57c15d)||_0x56be26(_0x57c15d,_0x9375a['getRanges']()))){for(const _0x593beb of _0x57c15d)_0x9375a['addRange'](_0x593beb);return _0x9375a;}const _0x1d6e87=_0x35f42a(),_0x2898af=_0x2ae4a5['id'],_0x57912a='formatBlock:'+_0x604d97,_0x4825af=this['_setSuggestionData']({'id':_0x1d6e87,'type':_0x57912a,'data':_0x11493f,'createdAt':new Date(),'authorId':_0x2898af,'attributes':_0x206e9e});for(const _0xa36178 of _0x57c15d)this['_addSuggestionMarker'](_0x57912a,_0x1d6e87,_0x2898af,_0xa36178,o['getMultiRangeId']());return _0x4825af;}['markDeletion'](_0x457430,_0x4899d9=null,_0x52eb67={}){if(_0x457430['isCollapsed'])return null;const _0x1c0046=this['editor']['plugins']['get']('Users')['me'],_0x49c1b9=new _0x221782(_0x457430['start'],_0x457430['end']);for(const {suggestion:_0x17509a,meta:_0x514733}of this['_findSuggestions'](_0x49c1b9,'insertion'))if(_0x514733['isOwn']&&!_0x514733['isNextTo']){if(_0x17509a['isMultiRange']){const _0x1093b9=_0x17509a['getRanges']()['filter'](_0x10e692=>'$graveyard'!=_0x10e692['root']['rootName']);_0x1093b9['every'](_0x49112f=>_0x49c1b9['containsRange'](_0x49112f,!0x0))&&_0x17509a['discard']();if(_0x1093b9['some'](_0x21fefb=>_0x21fefb['containsRange'](_0x49c1b9,!0x0))){const _0xe2ad56=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4899d9,'accept');return this['forceDefaultExecution'](()=>_0xe2ad56([_0x49c1b9],null,_0x52eb67)),null;}}else{const _0x50147f=_0x49c1b9['getIntersection'](_0x17509a['getFirstRange']());null!==_0x50147f&&_0x17509a['_onDiscard']([_0x50147f],null,_0x52eb67);}}if(_0x49c1b9['detach'](),_0x49c1b9['isCollapsed']||'$graveyard'==_0x49c1b9['root']['rootName'])return null;let _0xdfd42f=null,_0xd55a52=_0x49c1b9['start'],_0x2ce19e=_0x49c1b9['end'];const _0x5f051e=this['_findSuggestions'](_0x49c1b9,'deletion');for(const {suggestion:_0x10ba84,meta:_0x10c637}of _0x5f051e){const _0x29bfb1=this['_model']['createRange'](_0xd55a52,_0x2ce19e);if(_0x10c637['isOwn']&&(this['_mergeNestedSuggestions']||!_0x10c637['containsRangeInObject']&&!_0x10c637['isInsideObject'])){if(_0x10ba84['isMultiRange']){if(!Xt(_0x10ba84,_0x52eb67))continue;let _0x4e0b2a=!0x0;for(const _0x58fcf4 of _0x10ba84['getRanges']()){if(_0x58fcf4['containsRange'](_0x29bfb1,!0x0))return _0x10ba84;_0x29bfb1['containsRange'](_0x58fcf4)||(_0x4e0b2a=!0x1);}_0x4e0b2a&&_0x10ba84['discard']();}else{const _0xb22a95=_0x10ba84['getFirstRange']();if(_0xb22a95['containsRange'](_0x29bfb1,!0x0))return _0x10ba84;if(!Xt(_0x10ba84,_0x52eb67)){_0x29bfb1['containsRange'](_0xb22a95)?_0x10ba84['removeMarkers']():_0xb22a95['containsPosition'](_0xd55a52)?_0xd55a52=_0xb22a95['end']:_0xb22a95['containsPosition'](_0x2ce19e)&&(_0x2ce19e=_0xb22a95['start']);continue;}_0xd55a52=_0xd55a52['isBefore'](_0xb22a95['start'])?_0xd55a52:_0xb22a95['start'],_0x2ce19e=_0x2ce19e['isAfter'](_0xb22a95['end'])?_0x2ce19e:_0xb22a95['end'],_0x52eb67=Object['assign']({},_0x10ba84['attributes']),_0xdfd42f?_0xb22a95['start']['isBefore'](_0xdfd42f['getFirstRange']()['start'])?(_0xdfd42f['removeMarkers'](),_0xdfd42f=_0x10ba84):_0x10ba84['removeMarkers']():_0xdfd42f=_0x10ba84;}}}if(_0xdfd42f)return this['_setSuggestionRange'](_0xdfd42f,this['_model']['createRange'](_0xd55a52,_0x2ce19e)),_0xdfd42f;{const _0x489edb=_0x35f42a(),_0x3ea5c4=this['_model']['createRange'](_0xd55a52,_0x2ce19e),_0x2acb4f=_0x1c0046['id'],_0x49f469=_0x4899d9?'deletion:'+_0x4899d9:'deletion',_0x1943a4=this['_setSuggestionData']({'id':_0x489edb,'type':_0x49f469,'createdAt':new Date(),'authorId':_0x2acb4f,'attributes':_0x52eb67});return this['_addSuggestionMarker'](_0x49f469,_0x489edb,_0x2acb4f,_0x3ea5c4),_0x1943a4;}}['markMultiRangeDeletion'](_0x3f0083,_0x34eff7='multi',_0x586185={}){const _0x1b05df=this['editor']['plugins']['get']('Users')['me'],_0x503052=_0x3f0083['map'](_0x4c7619=>new _0x221782(_0x4c7619['start'],_0x4c7619['end'])),_0x84c3e=new Set();for(const {suggestion:_0x3f1540,meta:_0x22b268}of this['_findSuggestions'](_0x503052,'insertion'))_0x22b268['isOwn']&&!_0x22b268['isNextTo']&&_0x84c3e['add'](_0x3f1540);for(const _0xa6e4a4 of _0x84c3e)if(_0xa6e4a4['isMultiRange']){const _0xfb3c09=_0xa6e4a4['getRanges']();(!_0xa6e4a4['attributes']||!_0xa6e4a4['attributes']['skipNestingCheck'])&&(_0xfb3c09['every'](_0x573f23=>_0x503052['some'](_0xd435d6=>_0xd435d6['containsRange'](_0x573f23,!0x0)))&&_0xa6e4a4['discard']());if(_0x503052['every'](_0x38e98b=>_0xfb3c09['some'](_0x25ce4d=>_0x25ce4d['containsRange'](_0x38e98b,!0x0)))){const _0x20e93a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'accept');return this['forceDefaultExecution'](()=>_0x20e93a(_0x3f0083,null,_0x586185)),null;}}else{const _0xb28a21=_0xa6e4a4['getFirstRange']();_0x503052['some'](_0x3e589d=>_0x3e589d['containsRange'](_0xb28a21,!0x0))&&_0xa6e4a4['discard']();if(_0x503052['every'](_0x3598d0=>_0xb28a21['containsRange'](_0x3598d0,!0x0))){const _0x3678c4=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'accept');return this['forceDefaultExecution'](()=>_0x3678c4(_0x503052,null,_0x586185)),null;}}const _0x7cfac3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x34eff7,'join');let _0x10d76d=null;for(const _0x1c33b1 of this['getSuggestions']())if(_0x1c33b1['author']['id']==_0x1b05df['id']&&_0x1c33b1['isInContent']&&'deletion'==_0x1c33b1['type']&&_0x1c33b1['subType']==_0x34eff7&&Xt(_0x1c33b1,_0x586185)&&(_0x7cfac3(_0x1c33b1['getRanges'](),_0x503052)||_0x7cfac3(_0x503052,_0x1c33b1['getRanges']()))){if(_0x10d76d){if(_0x1c33b1['commentThread']&&_0x1c33b1['commentThread']['length'])continue;for(const _0x542aaa of _0x1c33b1['getRanges']())_0x10d76d['isIntersectingWithRange'](_0x542aaa)||_0x10d76d['addRange'](_0x542aaa);_0x1c33b1['removeMarkers']();}else{_0x10d76d=_0x1c33b1;for(const _0x5df013 of _0x503052)_0x1c33b1['isIntersectingWithRange'](_0x5df013)||_0x1c33b1['addRange'](_0x5df013);}}if(_0x10d76d)return _0x10d76d;_0x84c3e['clear']();for(const {suggestion:_0xe553dc,meta:_0x3f7195}of this['_findSuggestions'](_0x503052,'deletion'))_0x3f7195['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3f7195['containsRangeInObject']&&!_0x3f7195['isInsideObject'])&&Xt(_0xe553dc,_0x586185)&&_0x84c3e['add'](_0xe553dc);for(const _0x3d8dc4 of _0x84c3e){const _0x548fd5=_0x3d8dc4['getRanges']();if(!_0x586185||!_0x586185['skipNestingCheck']){if(_0x503052['every'](_0x3801cf=>_0x548fd5['some'](_0x1c2900=>_0x1c2900['containsRange'](_0x3801cf,!0x0))))return _0x3d8dc4;}(!_0x3d8dc4['attributes']||!_0x3d8dc4['attributes']['skipNestingCheck'])&&(_0x548fd5['every'](_0x495322=>_0x503052['some'](_0x267e7c=>_0x267e7c['containsRange'](_0x495322,!0x0)))&&_0x3d8dc4['discard']());}const _0x1cec04=_0x35f42a(),_0x74b372=_0x1b05df['id'],_0x129d30='deletion:'+_0x34eff7,_0xb4f926=this['_setSuggestionData']({'id':_0x1cec04,'type':_0x129d30,'createdAt':new Date(),'authorId':_0x74b372,'attributes':_0x586185});for(const _0x132f62 of _0x503052)_0x132f62['detach'](),_0x132f62['isCollapsed']||'$graveyard'==_0x132f62['root']['rootName']||this['_addSuggestionMarker'](_0x129d30,_0x1cec04,_0x74b372,_0x132f62,o['getMultiRangeId']());return _0xb4f926;}['markAttributeChange'](_0xdd34d6,_0x4686f4,_0x170acd,_0x5c6bca,_0xa69195){if(_0xdd34d6['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5026da=this['editor']['plugins']['get']('Users')['me']['id'],_0x11b1d5=Array['from'](this['_suggestions']['values']())['filter'](_0x197978=>'attribute'==_0x197978['type']&&_0x197978['data']['key']==_0x4686f4&&_0x197978['isIntersectingWithRange'](_0xdd34d6));if('default'===this['_trackFormatChanges']){const _0x5baa1e=this['_findSuggestions'](_0xdd34d6,'insertion')['filter'](({meta:_0x38b7d7})=>_0x38b7d7['isOwn']&&!_0x38b7d7['isInsideObject']&&!_0x38b7d7['isNextTo'])['map'](({suggestion:_0xb19830})=>_0xb19830);_0x11b1d5['unshift'](..._0x5baa1e);}const _0x4f5afb=new Map([[_0xdd34d6,_0x170acd]]);for(const _0x46489f of _0x11b1d5){const _0x5b665e='attribute'==_0x46489f['type']?_0x46489f['data']['oldValue']:void 0x0,_0x14a247=_0x46489f['getFirstRange'](),_0x57c91a=Array['from'](_0x4f5afb['keys']())['find'](_0x101b3b=>_0x101b3b['isIntersecting'](_0x14a247));if(!_0x57c91a)continue;const _0x3143b6=_0x57c91a['getDifference'](_0x14a247);this['_isBlockAttribute'](_0x4686f4)&&'insertion'==_0x46489f['type']&&0x0!=_0x3143b6['length']||(_0x4f5afb['delete'](_0x57c91a),_0x3143b6['forEach'](_0x347e01=>{_0x4f5afb['set'](_0x347e01,_0x170acd);}),'insertion'!=_0x46489f['type']&&_0x5b665e!=_0x5c6bca&&_0x4f5afb['set'](_0x57c91a['getIntersection'](_0x14a247),_0x5b665e));}const _0x2bdad3=[];for(const [_0xeb60f7,_0x4e0f37]of _0x4f5afb){const _0x4d9fd3=_0x35f42a(),_0x3c2ce4={'key':_0x4686f4,'oldValue':_0x4e0f37,'newValue':_0x5c6bca};_0x4686f4['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':_0x4686f4});const _0x59045a=('attribute:'+(_0x4686f4+'|'+Kt({'newValue':_0x5c6bca})))['substring'](0x0,0x3c),_0x1285fc=this['_setSuggestionData']({'id':_0x4d9fd3,'type':_0x59045a,'data':_0x3c2ce4,'createdAt':new Date(),'authorId':_0x5026da,'attributes':_0xa69195});_0x2bdad3['push'](_0x1285fc),this['_addSuggestionMarker'](_0x59045a,_0x4d9fd3,_0x5026da,_0xeb60f7);}return _0x2bdad3;}['enableDefaultAttributesIntegration'](_0x460fec){this['enableCommand'](_0x460fec,(_0x4bee8e,..._0x470797)=>{this['_recordAttributeChanges'](()=>{_0x4bee8e(..._0x470797);});});}['registerBlockAttribute'](_0x216a11){this['_blockAttributeKeys']['add'](_0x216a11);}['registerInlineAttribute'](_0x58f890){this['_inlineAttributeKeys']['add'](_0x58f890);}['_getAttributeKey'](_0x3e1719){return'attribute'==_0x3e1719['type']?_0x3e1719['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x57004c,_0x40145d){const _0x5819d2=_0x57004c['getFirstMarker']();this['_model']['change'](_0x4ede66=>{_0x4ede66['updateMarker'](_0x5819d2,{'range':_0x40145d});});}['_addThreadToSuggestion'](_0xe4da2e){const _0x46629c=_0xe4da2e['id'],_0x1bc5e8=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x46629c)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1bc5e8,'threadId':_0x46629c,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4c1dc2=this['_commentsRepository']['getCommentThread'](_0x46629c);_0x4c1dc2['unbind']('isRemovable'),_0x4c1dc2['isRemovable']=!0x1,_0xe4da2e['commentThread']=_0x4c1dc2;}['_checkSuggestionCorrectness'](_0x5e284c,_0x5d3624,_0x4db566,_0x3ca7ad){if(_0x5e284c['type']!=_0x5d3624||_0x5e284c['subType']!=_0x4db566||_0x5e284c['creator']['id']!=_0x3ca7ad)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x463d5f('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x545bf9,_0x2b2454){const _0x2d6e53=_0x545bf9['getFirstRange']();if(_0x2b2454['isEqual'](_0x2d6e53))_0x545bf9['removeMarkers']();else{if(_0x2d6e53['containsRange'](_0x2b2454)){const _0x989bb1=this['_model']['createPositionAt'](_0x2b2454['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x2d6e53['start'],_0x989bb1));const _0x3f15bb=_0x35f42a(),_0x179209=_0x545bf9['creator']['id'],_0x123cce=_0x545bf9['type']+':'+_0x545bf9['subType'];this['_setSuggestionData']({'id':_0x3f15bb,'type':_0x123cce,'createdAt':new Date(),'authorId':_0x179209,'data':_0x545bf9['data'],'attributes':_0x545bf9['attributes']});const _0x38db57=this['_model']['createPositionAt'](_0x2b2454['end']['parent'],'after'),_0x1994a0=this['_model']['createRange'](_0x38db57,_0x2d6e53['end']);this['_addSuggestionMarker'](_0x123cce,_0x3f15bb,_0x179209,_0x1994a0);}else{if(_0x2d6e53['containsPosition'](_0x2b2454['start'])){const _0x59f62e=this['_model']['createPositionAt'](_0x2b2454['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x2d6e53['start'],_0x59f62e));}else{const _0x4bb0d2=this['_model']['createPositionAt'](_0x2b2454['end']['parent'],'after');this['_setSuggestionRange'](_0x545bf9,this['_model']['createRange'](_0x4bb0d2,_0x2d6e53['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xeed1a2){for(const {suggestion:_0x2d912b,meta:_0x56859b}of this['_findSuggestions'](_0xeed1a2,'insertion')){if(!_0x56859b['isOwn'])continue;const _0x1e643b=_0x2d912b['getRanges']();for(const _0x342a0a of _0x1e643b)if(!_0xeed1a2['getDifference'](_0x342a0a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x10ed2a){const _0x8e09f5=this['editor']['plugins']['get']('Users')['getUser'](_0x10ed2a);if(!_0x8e09f5)throw new _0x463d5f('track-changes-user-not-found',this);return _0x8e09f5;}['_getExternalAuthor'](_0x572e48){const _0x3335c9=this['editor']['plugins']['get']('Users'),_0x4c0353=_0x248bd8('external:'+_0x572e48),_0x163e3d=_0x3335c9['getUser'](_0x4c0353);return _0x163e3d||_0x3335c9['addUser']({'id':_0x4c0353,'name':_0x572e48});}['_createSuggestion'](_0xd8ffd0,_0xae2d62,_0x4d1163,_0x6ef93b,_0x3f36dc){const _0x360990=this['_getAuthorFromId'](_0x6ef93b),_0x336867=this['_suggestionFactory']['buildSuggestion'](_0xd8ffd0,_0xae2d62,_0x4d1163,_0x360990,_0x3f36dc,_0x435f15=>{this['_updateSuggestionData'](_0x4d1163,{'attributes':_0x435f15});const _0x327d16=this['getSuggestion'](_0x4d1163);this['_joinWithAdjacentSuggestions'](new Set([_0x327d16])),this['_refreshSuggestionsChain'](new Set([_0x327d16]));});return this['listenTo'](_0x336867,'accept',()=>{this['_updateSuggestionData'](_0x4d1163,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x336867,'discard',()=>{this['_updateSuggestionData'](_0x4d1163,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x4d1163,_0x336867),this['_suggestionState']['set'](_0x336867,'notReady'),_0x336867;}['_splitMarkerName'](_0x5c2612){const _0x53a395=_0x5c2612['split'](':');return{'group':_0x53a395[0x0],'type':_0x53a395[0x1],'subType':_0x53a395['length']>=0x5?_0x53a395[0x2]:null,'id':_0x53a395['length']<0x5?_0x53a395[0x2]:_0x53a395[0x3],'authorId':_0x53a395['length']<0x5?_0x53a395[0x3]:_0x53a395[0x4],'markerCount':0x6==_0x53a395['length']?_0x53a395[0x5]:null};}['_breakSuggestionMarker'](_0x313dfe,_0x26a981,_0x85c766){const _0x4acf96=_0x313dfe['getFirstRange'](),_0x4122e7=_0x4acf96['start'],_0x503eb6=_0x4acf96['end'];this['_setSuggestionRange'](_0x313dfe,this['_model']['createRange'](_0x4122e7,_0x26a981));const _0x46d148=_0x35f42a(),_0x37f4d4=_0x313dfe['creator']['id'],_0x3c58de=_0x313dfe['type']+(_0x313dfe['subType']?':'+_0x313dfe['subType']:'');this['_setSuggestionData']({'id':_0x46d148,'type':_0x3c58de,'createdAt':new Date(),'authorId':_0x37f4d4,'originalSuggestionId':_0x313dfe['id'],'attributes':_0x313dfe['attributes'],'data':_0x313dfe['data']});const _0x3c81f5=this['_getAttributeKey'](_0x313dfe);('formatBlock'==_0x313dfe['type']||_0x3c81f5&&this['_isBlockAttribute'](_0x3c81f5))&&(_0x85c766=this['_model']['createPositionBefore'](_0x85c766['parent'])),this['_addSuggestionMarker'](_0x3c58de,_0x46d148,_0x37f4d4,this['_model']['createRange'](_0x85c766,_0x503eb6));}['_findSuggestions'](_0x2e1b8a,_0x231b4c=null){const _0x2fae87=[],_0x103ede=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2e1b8a)||(_0x2e1b8a=[_0x2e1b8a]);for(const _0x212fc2 of this['getSuggestions']()){if(!_0x212fc2['isInContent'])continue;if(_0x231b4c&&_0x212fc2['type']!=_0x231b4c)continue;let _0x167fd9=!0x1;for(const _0x43dedf of _0x212fc2['getRanges']()){for(const _0xca5e3c of _0x2e1b8a){const _0x3f1d96=_0xca5e3c['start']['isEqual'](_0x43dedf['end'])||_0xca5e3c['end']['isEqual'](_0x43dedf['start']);if(_0x3f1d96||_0xca5e3c['getIntersection'](_0x43dedf)){const _0x2d4ad9=_0xca5e3c['containsRange'](_0x43dedf)&&Gt(this['_model']['schema'],_0x43dedf['start'],_0xca5e3c),_0x25afc0=_0x43dedf['containsRange'](_0xca5e3c)&&Gt(this['_model']['schema'],_0xca5e3c['start'],_0x43dedf);_0x2fae87['push']({'suggestion':_0x212fc2,'meta':{'isOwn':_0x103ede==_0x212fc2['author'],'isNextTo':_0x3f1d96,'isInsideObject':_0x2d4ad9,'containsRangeInObject':_0x25afc0}}),_0x167fd9=!0x0;break;}}if(_0x167fd9)break;}}return _0x2fae87;}['_addSuggestionMarker'](_0x1c41ac,_0x3e7289,_0x5385ab,_0x3ebe97,_0x51f1d7){this['_model']['change'](_0x4e6ddc=>{let _0x20d9f9='suggestion:'+_0x1c41ac+':'+_0x3e7289+':'+_0x5385ab;_0x51f1d7&&(_0x20d9f9=_0x20d9f9+':'+_0x51f1d7),_0x4e6ddc['addMarker'](_0x20d9f9,{'range':_0x3ebe97,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x9d71c6){const _0xded020=_0x9d71c6['previous'],_0x402761=_0x9d71c6['next'];_0x9d71c6['previous']=null,_0x9d71c6['next']=null,null!=_0xded020&&_0xded020['next']==_0x9d71c6&&(_0xded020['next']=_0x402761),null!=_0x402761&&_0x402761['previous']==_0x9d71c6&&(_0x402761['previous']=_0xded020),'ready'==this['_suggestionState']['get'](_0x9d71c6)&&(this['_suggestionState']['set'](_0x9d71c6,'removed'),this['fire']('suggestionUnloaded',_0x9d71c6,_0xded020,_0x402761));}['_setSuggestionData'](_0x4567bd){const _0x27a0dd=_0x4567bd['id'],_0x1e7e84=this['addSuggestionData'](_0x4567bd);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1abf9c=this['editor']['plugins']['get']('PendingActions'),_0x15453e=_0x1e7e84['hasComments'],_0x44cd89=_0x1e7e84['subType']?_0x1e7e84['type']+':'+_0x1e7e84['subType']:_0x1e7e84['type'],_0x43cf75=this['editor']['locale'],_0x424295=_0x1abf9c['add'](c(_0x43cf75,'PENDING_ACTION_SUGGESTION')),_0x695c9e={'id':_0x27a0dd,'type':_0x44cd89,'hasComments':_0x15453e,'data':_0x4567bd['data']||null,'originalSuggestionId':_0x4567bd['originalSuggestionId']||null,'attributes':_0x1e7e84['attributes']};this['_adapter']['addSuggestion'](_0x695c9e)['then'](_0x1a220b=>{_0x1e7e84['_saved']=!0x0,_0x1abf9c['remove'](_0x424295),_0x1a220b&&_0x1a220b['createdAt']&&(this['_suggestions']['get'](_0x27a0dd)['createdAt']=_0x1a220b['createdAt']);})['catch'](_0x58b0c1=>{throw _0x1a52d0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1e7e84['discard']();}),_0x1e7e84['stopListening'](),this['_suggestions']['delete'](_0x1e7e84['id']),this['_suggestionState']['delete'](_0x1e7e84),_0x58b0c1;});}return _0x1e7e84;}['_isBlockAttribute'](_0x3d37c5){return this['_blockAttributeKeys']['has'](_0x3d37c5);}['_updateSuggestionData'](_0x31dba3,_0x104ac6){const _0x38d708=this['editor']['plugins']['get']('PendingActions'),_0x4dc572=this['getSuggestion'](_0x31dba3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4dc572['_saved']){const _0x28b716=_0x38d708['add'](c(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x31dba3,_0x104ac6)['then'](()=>{_0x38d708['remove'](_0x28b716);});}else _0x4dc572['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x31dba3,_0x104ac6);});}}['_getSuggestionData'](_0x57cc49){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x463d5f('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x57cc49);}['_handleNewSuggestionMarker'](_0x279a86){const {id:_0x19a2bb,type:_0x29ece8,subType:_0x307c3e,authorId:_0x1cf0b5}=this['_splitMarkerName'](_0x279a86),_0x57cb17=this['_suggestions']['get'](_0x19a2bb)||this['_createSuggestion'](_0x29ece8,_0x307c3e,_0x19a2bb,_0x1cf0b5,{});switch(this['_checkSuggestionCorrectness'](_0x57cb17,_0x29ece8,_0x307c3e,_0x1cf0b5),this['_suggestionState']['get'](_0x57cb17)){case'notReady':this['_getSuggestionData'](_0x19a2bb)['then'](_0x5bc407=>{let _0x1c0b60=Promise['resolve']();_0x5bc407['hasComments']&&(_0x1c0b60=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x19a2bb})),_0x1c0b60['then'](()=>{this['addSuggestionData'](_0x5bc407)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x57cb17,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x19a2bb,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x57cb17,'ready'),this['fire']('suggestionLoaded',_0x57cb17);break;case'ready':this['fire']('suggestionChanged',_0x57cb17);}return _0x57cb17['addMarkerName'](_0x279a86),_0x57cb17;}['_refreshSuggestionsChain'](_0x4ac17c){const _0x2cd036=Array['from'](_0x4ac17c),_0x3875b3=_0x2cd036['filter'](_0x3a4225=>'attribute'==_0x3a4225['type']);this['_refreshAttributeSuggestionsChain'](_0x3875b3);const _0x466b06=_0x2cd036['filter'](_0x1b007b=>!_0x1b007b['isMultiRange']&&'attribute'!=_0x1b007b['type']),_0x1b5171=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x30a15b=>!_0x30a15b['isMultiRange']&&'attribute'!=_0x30a15b['type']),_0x277fef=_0x1b5171['filter'](_0x5c830a=>!_0x4ac17c['has'](_0x5c830a)),_0x33b5fc=new Map(_0x1b5171['map'](_0x2b544d=>[_0x2b544d,this['_suggestionFactory']['getSuggestionCallback'](_0x2b544d['type'],_0x2b544d['subType'],'chain')])),_0x190362=new Map(_0x1b5171['map'](_0x375bd2=>[_0x375bd2,_0x375bd2['getFirstRange']()])),_0x28fdce=new Set(),_0xaba996=new Set();for(let _0x36d509=0x0;_0x36d509<_0x466b06['length'];_0x36d509++)_0x42d3c2(_0x466b06[_0x36d509],_0x466b06,_0x36d509+0x1);for(let _0xe45a82=0x0;_0xe45a82<_0x466b06['length'];_0xe45a82++)_0x42d3c2(_0x466b06[_0xe45a82],_0x277fef,0x0);const _0x3c17a8=new Set();for(let _0x1f4138=0x0;_0x1f4138<_0x466b06['length'];_0x1f4138++){const _0x7293f8=_0x466b06[_0x1f4138];!_0xaba996['has'](_0x7293f8)&&_0x7293f8['previous']&&(_0x3c17a8['add'](_0x7293f8['previous']),_0x7293f8['previous']['next']===_0x7293f8&&(_0x7293f8['previous']['next']=null),_0x7293f8['previous']=null),!_0x28fdce['has'](_0x7293f8)&&_0x7293f8['next']&&(_0x3c17a8['add'](_0x7293f8['next']),_0x7293f8['next']['previous']===_0x7293f8&&(_0x7293f8['next']['previous']=null),_0x7293f8['next']=null);}function _0x42d3c2(_0x3597cf,_0x427688,_0x4f5f33){for(let _0x23938f=_0x4f5f33;_0x23938f<_0x427688['length'];_0x23938f++){const _0x451e18=_0x488b77(_0x3597cf,_0x427688[_0x23938f]);_0x451e18&&(_0x451e18[0x0]['next']=_0x451e18[0x1],_0x451e18[0x1]['previous']=_0x451e18[0x0],_0x28fdce['add'](_0x451e18[0x0]),_0xaba996['add'](_0x451e18[0x1]));}}function _0x488b77(_0x199060,_0x1c6891){if(_0x199060['author']['id']!==_0x1c6891['author']['id'])return null;const _0x541630=_0x33b5fc['get'](_0x199060)(_0x199060,_0x1c6891,_0x190362['get'](_0x199060),_0x190362['get'](_0x1c6891));if(!_0x541630)return null;return _0x33b5fc['get'](_0x1c6891)(_0x199060,_0x1c6891,_0x190362['get'](_0x199060),_0x190362['get'](_0x1c6891))?_0x541630[0x1]['commentThread']&&_0x541630[0x1]['commentThread']['length']?null:_0x541630:null;}_0x3c17a8['size']&&this['_refreshSuggestionsChain'](_0x3c17a8);}['_refreshAttributeSuggestionsChain'](_0x5e78e6){if(0x0==_0x5e78e6['length'])return;const _0x56011b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2d957f=>'attribute'==_0x2d957f['type']&&_0x2d957f['_isDataLoaded']),_0x1aa38c=[],_0x482967=new Map();for(const _0xb3fe21 of _0x56011b){const _0xbed9a=_0x248bd8(_0xb3fe21['attributes']);_0x482967['has'](_0xbed9a)||(_0x482967['set'](_0xbed9a,_0x1aa38c['length']),_0x1aa38c['push']([]));const _0x41002d=_0x482967['get'](_0xbed9a);_0x1aa38c[_0x41002d]['push'](_0xb3fe21);}!(function(){_0x1aa38c['sort']((_0xe29a11,_0x1b15eb)=>{const _0x226edd=_0xe29a11[0x0]['createdAt'],_0xf02a80=_0x1b15eb[0x0]['createdAt'];return _0x226edd==_0xf02a80?_0xe29a11[0x0]['attributes']['groupId']<_0x1b15eb[0x0]['attributes']['groupId']?-0x1:0x1:_0x226edd<_0xf02a80?-0x1:0x1;});for(const _0x56f652 of _0x1aa38c)_0x56f652['sort']((_0x334243,_0x318759)=>_0x334243['id']<_0x318759['id']?-0x1:0x1);}());for(let _0xb1af03=0x0;_0xb1af03<_0x1aa38c['length'];_0xb1af03++){if(0x0==_0x1aa38c[_0xb1af03]['length'])continue;const _0x21a94e=[];for(let _0xaef258=_0xb1af03+0x1;_0xaef258<_0x1aa38c['length'];_0xaef258++)0x0!=_0x1aa38c[_0xaef258]['length']&&_0x3ea9e7(_0x1aa38c[_0xb1af03],_0x1aa38c[_0xaef258])&&_0x21a94e['push'](_0xaef258);for(const _0x1602e9 of _0x21a94e)_0x1aa38c[_0xb1af03]=_0x1aa38c[_0xb1af03]['concat'](_0x1aa38c[_0x1602e9]),_0x1aa38c[_0x1602e9]=[];}for(const _0x33560d of _0x1aa38c)for(let _0x3f90c1=0x0;_0x3f90c1<_0x33560d['length'];_0x3f90c1++){const _0x27e9df=_0x33560d[_0x3f90c1+0x1]||null;_0x33560d[_0x3f90c1]['next']!==_0x27e9df&&(_0x33560d[_0x3f90c1]['next']=_0x27e9df);}for(const _0x419388 of _0x1aa38c)for(let _0x3991fd=0x0;_0x3991fd<_0x419388['length'];_0x3991fd++){const _0x4387e1=_0x419388[_0x3991fd-0x1]||null;_0x419388[_0x3991fd]['previous']!==_0x4387e1&&(_0x419388[_0x3991fd]['previous']=_0x4387e1);}function _0x3ea9e7(_0x22a9dc,_0x70c221){if(_0x22a9dc[0x0]['attributes']['groupId']!==_0x70c221[0x0]['attributes']['groupId']&&_0x22a9dc[0x0]['author']!==_0x70c221[0x0]['author'])return!0x1;if(!function(_0x17590e,_0x565064){if(!_0x17590e['hasComments']&&!_0x565064['hasComments'])return!0x0;if(_0x17590e['hasComments']&&_0x565064['hasComments'])return!0x1;if(_0x17590e['hasComments']&&_0x565064['createdAt']<_0x17590e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x565064['hasComments']&&_0x17590e['createdAt']<_0x565064['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x22a9dc[0x0],_0x70c221[0x0]))return!0x1;const _0x5b00d3=Ft(_0x22a9dc[0x0]['attributes'],'groupId'),_0x52e01a=Ft(_0x70c221[0x0]['attributes'],'groupId');if(!_0x1bd547(_0x5b00d3,_0x52e01a))return!0x1;return!!_0x22a9dc['every'](_0x2bf393=>_0x70c221['some'](_0x499bb7=>_0x2bf393['getFirstRange']()['isEqual'](_0x499bb7['getFirstRange']())))&&_0x70c221['every'](_0x3b29dd=>_0x22a9dc['some'](_0x5c4b17=>_0x3b29dd['getFirstRange']()['isEqual'](_0x5c4b17['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x17db5f){const _0x4911d9=Array['from'](_0x17db5f),_0x1d2a33=this['getSuggestions']({'skipNotAttached':!0x0}),_0x63d032=_0x1d2a33['filter'](_0x186936=>!_0x17db5f['has'](_0x186936)),_0xb5dc6f=new Map(_0x4911d9['map'](_0x2508dc=>[_0x2508dc,this['_suggestionFactory']['getSuggestionCallback'](_0x2508dc['type'],_0x2508dc['subType'],'join')])),_0x37cb06=new Map(_0x1d2a33['map'](_0x476ef3=>[_0x476ef3,_0x476ef3['getRanges']()]));for(let _0x1f29b5=0x0;_0x1f29b5<_0x4911d9['length'];_0x1f29b5++){if(_0x1e5735(this,_0x4911d9[_0x1f29b5],_0x4911d9,_0x1f29b5+0x1))return!0x0;}for(let _0x3e746e=0x0;_0x3e746e<_0x4911d9['length'];_0x3e746e++){if(_0x1e5735(this,_0x4911d9[_0x3e746e],_0x63d032,0x0))return!0x0;}return!0x1;function _0x1e5735(_0x185069,_0x4572b9,_0xc55841,_0x3787e3){for(let _0x1bfbe0=_0x3787e3;_0x1bfbe0<_0xc55841['length'];_0x1bfbe0++){const _0x1c0269=_0xc55841[_0x1bfbe0];if(_0x1c0269['type']!==_0x4572b9['type']||_0x1c0269['author']['id']!==_0x4572b9['author']['id']||_0x1c0269['subType']!==_0x4572b9['subType'])continue;if(!Qt(_0x4572b9,_0x1c0269))continue;if('attribute'==_0x4572b9['type']&&_0x4572b9['data']['oldValue']!=_0x1c0269['data']['oldValue'])continue;if('attribute'==_0x4572b9['type']&&_0x185069['_isBlockAttribute'](_0x4572b9['data']['key']))continue;if('formatBlock'==_0x4572b9['type']){const _0x125925=_0x185069['editor']['model'],_0x1c6b20=_0x4572b9['getContainedElement']();if(_0x1c6b20&&(_0x125925['schema']['isObject'](_0x1c6b20)||_0x125925['schema']['isLimit'](_0x1c6b20)))continue;}const _0xb5ebe4=_0xb5dc6f['get'](_0x4572b9),_0x5a7fe2=_0x37cb06['get'](_0x4572b9),_0x3a6b75=_0x37cb06['get'](_0x1c0269),_0x4179ba=_0x4572b9['commentThread']&&_0x4572b9['commentThread']['length'],_0xa5bbea=_0x1c0269['commentThread']&&_0x1c0269['commentThread']['length'];if(!_0x4179ba&&_0xb5ebe4(_0x3a6b75,_0x5a7fe2))return _0x185069['_joinSuggestions'](_0x1c0269,_0x4572b9),_0x37cb06['delete'](_0x4572b9),!0x0;if(!_0xa5bbea&&_0xb5ebe4(_0x5a7fe2,_0x3a6b75))return _0x185069['_joinSuggestions'](_0x4572b9,_0x1c0269),_0x37cb06['delete'](_0x1c0269),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbfd1b5,_0x358adb){if(_0xbfd1b5['isMultiRange']){for(const _0x25e867 of _0x358adb['getRanges']())_0xbfd1b5['addRange'](_0x25e867);}else{const _0x128768=_0x358adb['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbfd1b5,this['_model']['createRange'](_0xbfd1b5['getFirstRange']()['start'],_0x128768));}_0x358adb['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3c97b8,_0x54cd18,_0x487071){const _0x46c3b3=_0x3c97b8['startsWith']('format')||_0x3c97b8['startsWith']('attribute')?'FORMATTING':_0x3c97b8['toUpperCase']();return c(this['editor']['locale'],_0x54cd18+'_'+_0x46c3b3+'_SUGGESTION_ANNOUNCEMENT',_0x487071);}['_initAriaMarkerChangeAnnouncements'](){const _0x4e2a8e=this['editor'];if(!_0x4e2a8e['ui'])return;const {ariaLiveAnnouncer:_0x5268e2}=_0x4e2a8e['ui'];_0x4b370b(this['_model'],({left:_0x36fb3f,entered:_0x213c60})=>{for(const _0x50b1ab of _0x36fb3f){const {group:_0x590b98,type:_0x48f013}=this['_splitMarkerName'](_0x50b1ab['name']);if('suggestion'===_0x590b98){_0x5268e2['announce'](this['_getMarkerAnnouncementText'](_0x48f013,'LEAVE'));break;}}for(const _0x3ed966 of _0x213c60){const {group:_0x379881,type:_0x3b0aa6}=this['_splitMarkerName'](_0x3ed966['name']);if('suggestion'===_0x379881){_0x5268e2['announce'](this['_getMarkerAnnouncementText'](_0x3b0aa6,'ENTER',_0x5733f7(_0xf69f75)));break;}}});}['_processAttributeChanges'](_0x42c2df){if(this['_recordAttributeSuggestions'])return!0x1;const _0x299b28=this['editor'],_0x3ccd6a=_0x299b28['model']['document']['differ']['getChanges']();if(0x0==_0x3ccd6a['length'])return!0x1;const _0x355303=[],_0xd3b0ab=_0x3ccd6a['filter'](_0x1ac58e=>'attribute'==_0x1ac58e['type']),_0x3dcad7=_0x3ccd6a['filter'](_0xcb094c=>'insert'==_0xcb094c['type']&&'$text'!=_0xcb094c['name']),_0x19d388=_0x3ccd6a['filter'](_0x12bed9=>'remove'==_0x12bed9['type']&&'$text'!=_0x12bed9['name']);for(const _0x373c36 of _0xd3b0ab)_0x355303['push']({'key':_0x373c36['attributeKey'],'newValue':_0x373c36['attributeNewValue'],'oldValue':_0x373c36['attributeOldValue'],'range':qt(_0x373c36['range'],_0x299b28['model'])});for(const _0x423bfb of _0x3dcad7){const _0x6dbe91=_0x19d388['find'](_0x17ec40=>_0x17ec40['position']['isEqual'](_0x423bfb['position']));_0x6dbe91&&_0x355303['push']({'key':u,'newValue':_0x423bfb['name'],'oldValue':_0x6dbe91['name'],'range':_0x299b28['model']['createRangeOn'](_0x423bfb['position']['nodeAfter'])});}return 0x0!=_0x355303['length']&&this['_reduceExistingSuggestions'](_0x42c2df,_0x355303);}['_processAttributeSuggestions'](_0x5373e5){let _0x16efd5=!0x1;const _0x165ae0=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0xb439aa=>_0xb439aa['data']['newRange']&&_0xb439aa['name']['startsWith']('suggestion:attribute:'));for(const _0x1019cb of _0x165ae0){const {subType:_0x3ca78a,id:_0x832a10}=this['_splitMarkerName'](_0x1019cb['name']),_0x1bd4a7=_0x3ca78a['split']('|')[0x0];for(const _0x3b4932 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3b4932['id']!=_0x832a10&&'attribute'==_0x3b4932['type']&&_0x3b4932['data']&&_0x3b4932['data']['key']==_0x1bd4a7&&_0x3b4932['getFirstRange']()['isIntersecting'](_0x1019cb['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3b4932,_0x1019cb['data']['newRange'],_0x5373e5),_0x16efd5=!0x0);}return _0x16efd5;}['_recordAttributeChanges'](_0x334783){this['_recordAttributeSuggestions']=!0x0,_0x334783();}['_isRegisteredAttribute'](_0x5dcabe){const _0x5f4994=this['_isBlockAttribute'](_0x5dcabe),_0x539399=this['_inlineAttributeKeys']['has'](_0x5dcabe);return _0x5f4994||_0x539399;}['_reduceExistingSuggestions'](_0x48d33b,_0x50bd7c){if(0x0==_0x50bd7c['length'])return!0x1;let _0x470ad9=!0x1;for(const _0x22c2e6 of _0x50bd7c){const _0x1d7646=this['_findSuggestions'](_0x22c2e6['range'],'attribute')['filter'](_0x15c66f=>!_0x15c66f['meta']['isNextTo'])['map'](_0x20748b=>_0x20748b['suggestion']),_0x1a43ae=_0x248bd8({'newValue':_0x22c2e6['newValue']});_0x1d7646['filter'](_0x3c61f7=>{const [_0x5397e4,_0x512a6e]=_0x3c61f7['subType']['split']('|');return _0x5397e4==_0x22c2e6['key']&&_0x512a6e!=_0x1a43ae;})['forEach'](_0x5b61ca=>{this['_reduceSuggestionAttributeRange'](_0x5b61ca,_0x22c2e6['range'],_0x48d33b),_0x470ad9=!0x0;});}return _0x470ad9;}['_reduceSuggestionAttributeRange'](_0x2a70fa,_0x217fa6,_0x3359c0){const _0x3c3483=_0x2a70fa['getFirstRange']()['getDifference'](_0x217fa6);0x0!==_0x3c3483['length']?0x1!==_0x3c3483['length']?this['_breakSuggestionMarker'](_0x2a70fa,_0x217fa6['start'],_0x217fa6['end']):this['_setSuggestionRange'](_0x2a70fa,_0x3c3483[0x0]):_0x3359c0['removeMarker'](_0x2a70fa['getFirstMarker']());}}class Pt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4c4f26){this['_editor']=_0x4c4f26,this['_model']=_0x4c4f26['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x390fb8,_0x39f903,_0x2fe4b3,_0x2e8749,_0x300ad0,_0x590f48){return new o(this['_model'],{'type':_0x390fb8,'subType':_0x39f903,'id':_0x2fe4b3,'author':_0x2e8749,'creator':_0x2e8749,'attributes':_0x300ad0,'onAttributesChange':_0x590f48,'onAccept':(..._0x51599d)=>this['getSuggestionCallback'](_0x390fb8,_0x39f903,'accept')(..._0x51599d),'onDiscard':(..._0x433f78)=>this['getSuggestionCallback'](_0x390fb8,_0x39f903,'discard')(..._0x433f78)});}['registerCustomCallback'](_0xfe891c,_0x328887,_0x201584,_0x2566e6){const _0x24c7d5=_0xfe891c+':'+_0x328887+':'+_0x201584;this['_customCallbacks']['set'](_0x24c7d5,_0x2566e6);}['getSuggestionCallback'](_0x43098b,_0x4e814f,_0x5b28de){const _0x2738f9=_0x43098b+':'+_0x4e814f+':'+_0x5b28de;return this['_customCallbacks']['get'](_0x2738f9)||this['_defaultCallbacks']['get'](_0x43098b+':'+_0x5b28de);}['_registerDefaultCallbacks'](){const _0x330965=()=>!0x1,_0x4f17e9=_0x2b5340=>{_0x2b5340['sort']((_0x213540,_0x4e8082)=>_0x213540['start']['isBefore'](_0x4e8082['start'])?0x1:-0x1),this['_model']['change'](_0x4a4e03=>{for(const _0x248455 of _0x2b5340){let _0x31d40d;_0x31d40d=_0x248455['end']['isAtEnd']&&_0x248455['end']['parent']==_0x248455['start']['nodeAfter']?_0x4a4e03['createSelection'](_0x248455['start']['nodeAfter'],'on'):_0x4a4e03['createSelection'](_0x248455),this['_model']['deleteContent'](_0x31d40d,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4d3947=(_0x4ed283,_0x53f17a)=>{_0x53f17a&&this['_model']['change'](_0x38528f=>{const {commandName:_0x2a2057,commandParams:_0x2e2e4e=[]}=_0x53f17a,_0x511a5c=_0x4ed283['map'](_0xde7354=>(Lt(_0xde7354)&&(_0xde7354=this['_model']['createRange'](_0xde7354['end'])),_0xde7354))['filter'](_0x3e04d4=>'$graveyard'!==_0x3e04d4['root']['rootName']);if(_0x511a5c['length']<0x1)return;const _0x1ba0e6=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x11dd80=>_0x221782['fromRange'](_0x11dd80));_0x38528f['setSelection'](_0x511a5c);for(const _0xf46c7a of this['_editor']['commands']['commands']())_0xf46c7a['refresh']();_0x2e2e4e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2a2057,..._0x2e2e4e);const _0x2f6992=_0x1ba0e6['filter'](_0x3056dd=>'$graveyard'!=_0x3056dd['root']['rootName']);_0x2f6992['length']>0x0&&_0x38528f['setSelection'](_0x2f6992);for(const _0x112fb6 of _0x1ba0e6)_0x112fb6['detach']();});},_0x1fe0d1=(_0x42ddcd,_0x22975a)=>0x1==_0x42ddcd['length']&&0x1==_0x22975a['length']&&_0x42ddcd[0x0]['end']['isEqual'](_0x22975a[0x0]['start']),_0x480055=(_0x118be5,_0x2ff1b1,_0x53c431,_0x4edb79)=>Wt(_0x118be5,_0x2ff1b1,_0x53c431,_0x4edb79)?[_0x118be5,_0x2ff1b1]:Wt(_0x2ff1b1,_0x118be5,_0x4edb79,_0x53c431)?[_0x2ff1b1,_0x118be5]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x330965),this['_defaultCallbacks']['set']('insertion:discard',_0x4f17e9),this['_defaultCallbacks']['set']('insertion:join',_0x1fe0d1),this['_defaultCallbacks']['set']('insertion:chain',_0x480055),this['_defaultCallbacks']['set']('deletion:accept',_0x4f17e9),this['_defaultCallbacks']['set']('deletion:discard',_0x330965),this['_defaultCallbacks']['set']('deletion:join',_0x1fe0d1),this['_defaultCallbacks']['set']('deletion:chain',_0x480055),this['_defaultCallbacks']['set']('formatInline:accept',_0x4d3947),this['_defaultCallbacks']['set']('formatInline:discard',_0x330965),this['_defaultCallbacks']['set']('formatInline:join',_0x1fe0d1),this['_defaultCallbacks']['set']('formatInline:chain',_0x330965),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4d3947),this['_defaultCallbacks']['set']('formatBlock:discard',_0x330965),this['_defaultCallbacks']['set']('formatBlock:join',_0x1fe0d1),this['_defaultCallbacks']['set']('formatBlock:chain',_0x330965),this['_defaultCallbacks']['set']('attribute:accept',_0x330965),this['_defaultCallbacks']['set']('attribute:discard',(_0xa938c3,_0x566036)=>{if(!_0x566036)return;const _0x1a0e15=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x460e91=>{if(_0x566036['key']==u)for(const _0x2f26bf of _0xa938c3){const _0x569967=_0x2f26bf['start']['nodeAfter'],_0x363dde=_0x566036['oldValue'];_0x460e91['rename'](_0x569967,_0x363dde);}else{if(_0x1a0e15['_isBlockAttribute'](_0x566036['key'])){for(const _0x165f69 of _0xa938c3)void 0x0!==_0x566036['oldValue']?_0x460e91['setAttribute'](_0x566036['key'],_0x566036['oldValue'],_0x165f69['start']['nodeAfter']):_0x460e91['removeAttribute'](_0x566036['key'],_0x165f69['start']['nodeAfter']);}else{for(const _0x4fc2c6 of _0xa938c3)_0x566036['oldValue']?_0x460e91['setAttribute'](_0x566036['key'],_0x566036['oldValue'],_0x4fc2c6):_0x460e91['removeAttribute'](_0x566036['key'],_0x4fc2c6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1fe0d1);}}function Gt(_0x5b524e,_0xa39702,_0x5a2caa){for(const _0x1e7155 of _0xa39702['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x1e7155['root']==_0x1e7155)return!0x1;if(!_0x5a2caa['containsItem'](_0x1e7155))return!0x1;if(_0x5b524e['isObject'](_0x1e7155)||_0x5b524e['isLimit'](_0x1e7155))return!0x0;}return!0x1;}function Lt(_0x18e07c){return _0x18e07c['end']['parent']==_0x18e07c['start']['nodeAfter']&&_0x18e07c['end']['isAtStart'];}function Jt(_0x1ddc5f,_0xde7d7f,_0x583c62,_0x4a5609){const _0x3669b8=_0x14ab03=>!_0x14ab03['item']['is']('$textProxy')&&!_0x4a5609['isObject'](_0x14ab03['item']),_0x59eeef=_0x1ddc5f['start']['getLastMatchingPosition'](_0x3669b8),_0x5a4a98=_0x1ddc5f['end']['getLastMatchingPosition'](_0x3669b8,{'direction':'backward'});return(!_0x1ddc5f['start']['isEqual'](_0x59eeef)||!_0x1ddc5f['end']['isEqual'](_0x5a4a98))&&(_0x59eeef['isBefore'](_0x5a4a98)?_0x583c62['updateMarker'](_0xde7d7f,{'range':_0x583c62['createRange'](_0x59eeef,_0x5a4a98)}):_0x583c62['removeMarker'](_0xde7d7f),!0x0);}function Kt(_0x2dfb9f){return _0x248bd8(_0x2dfb9f);}function Ht(_0x25653f){const _0x2d8986=_0x25653f['start']['nodeAfter'];return _0x2d8986&&_0x2d8986['is']('element');}function qt(_0x5a9fa8,_0x29865a){return null==_0x5a9fa8['end']['nodeBefore']&&_0x5a9fa8['end']['parent']==_0x5a9fa8['start']['nodeAfter']?zt(_0x5a9fa8['start']['nodeAfter'],_0x29865a):_0x5a9fa8;}function zt(_0x122442,_0x38cc0f){const _0x2a1725=_0x38cc0f['schema']['isObject'](_0x122442)||_0x38cc0f['schema']['isSelectable'](_0x122442);return _0x38cc0f['createRange'](_0x38cc0f['createPositionAt'](_0x122442,'before'),_0x2a1725?_0x38cc0f['createPositionAfter'](_0x122442):_0x38cc0f['createPositionAt'](_0x122442,'end'));}function Wt(_0x36381a,_0x1fbe87,_0x4b104d,_0x14fc4c){return!!Qt(_0x36381a,_0x1fbe87)&&_0x4b104d['end']['isEqual'](_0x14fc4c['start']);}function Qt(_0xceb145,_0x43bfcf){if(!_0xceb145['_isDataLoaded']||!_0x43bfcf['_isDataLoaded'])return!0x1;const _0x3c967e=new Set(Object['keys'](_0xceb145['attributes'])),_0x3a34dc=new Set(Object['keys'](_0x43bfcf['attributes']));if(_0x3c967e['delete']('groupId'),_0x3a34dc['delete']('groupId'),0x0==_0x3c967e['size']&&0x0==_0x3a34dc['size'])return!0x0;if(_0x3c967e['size']!=_0x3a34dc['size'])return!0x1;const _0x15e221={..._0xceb145['attributes']},_0xcf3f7e={..._0x43bfcf['attributes']};return delete _0x15e221['groupId'],delete _0xcf3f7e['groupId'],JSON['stringify'](_0x15e221)==JSON['stringify'](_0xcf3f7e);}function Xt(_0x390aeb,_0x35ed51){const _0x114c15=Yt(_0x390aeb['attributes']),_0x4ee228=Yt(_0x35ed51);if(!_0x390aeb['_isDataLoaded'])return!0x1;for(const _0x12f529 of Object['keys'](_0x4ee228))if(!_0x1bd547(_0x114c15[_0x12f529],_0x4ee228[_0x12f529]))return!0x1;return!0x0;}function Yt(_0x2b3195){const _0x16fac3=Object['assign']({},_0x2b3195);return delete _0x16fac3['skipNestingCheck'],delete _0x16fac3['tablePasteChainId'],_0x16fac3;}class pe extends/* #__PURE__ -- @preserve */
25
+ _0x55f0de(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x45eaa2,_0x18cc63,_0xf19c73,_0x80bdc0){super(),this['model']=_0x18cc63,this['view']=_0xf19c73,this['commentThreadController']=_0x80bdc0,this['_editor']=_0x45eaa2,this['_acceptCommand']=_0x45eaa2['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x45eaa2['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5601a6,_0x42128e)=>_0x5601a6||_0x42128e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x2699a2=>_0x2699a2&&this['_editor']['model']['canEditAt'](_0x18cc63['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3b2d0a=>_0x3b2d0a&&this['_editor']['model']['canEditAt'](_0x18cc63['getRanges']())),this['_pendingAction']=null,_0xf19c73['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0xf19c73,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0xf19c73,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0xf19c73,'change:isDirty',()=>{_0xf19c73['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 _0x56d3d3=c(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x56d3d3);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x14eefd{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x2984be,_0x5a8b8e,_0x53cd19,_0x14a621){super(_0x2984be),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x36005b(_0x2984be,c(_0x2984be,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a8b8e['authoredAt']),this['bind']('authoredAt')['to'](_0x5a8b8e),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',_0x5a8b8e,'authoredAt',this,'descriptionParts',(_0x40d9c8,_0x47d14,_0x248bbc)=>{const _0xe26607=_0x248bbc['map'](_0x113e98=>ls(_0x113e98['content']))['join']('.\x20')+'.';return c(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x40d9c8-0x1,_0x5a8b8e['author']['name'],_0x47d14?_0x14a621['formatDateTime'](_0x47d14):'',new DOMParser()['parseFromString'](_0xe26607,'text/html')['body']['textContent']]);}),this['focusables']=new _0x53758e(),this['focusTracker']=new _0x5392ce(),this['keystrokes']=new _0x37db49(),this['focusCycler']=new _0x627706({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xab8d9a=>_0xab8d9a['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a8b8e,this['_localUser']=_0x53cd19,this['_config']=_0x14a621,_0x14a621['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3f0856(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3de2fb}=this['_config'];this['commentsListView']=new _0x3de2fb(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',_0x186daa=>_0x186daa+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x35d211,_0x242222)=>_0x35d211||!!_0x242222);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3f83a8}=this['_config'],_0x54e9dd=new _0x3f83a8(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xb1f86b=_0x54e9dd['commentInputView'];return _0x54e9dd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xb1f86b,'value',(_0x1630f9,_0x4a21a7,_0x104057)=>!!_0x104057||_0x1630f9&&!_0x4a21a7),_0xb1f86b['on']('submit',(_0x25359c,_0x501684)=>{this['fire']('addComment',_0x501684),_0xb1f86b['editor']['setData']('');}),_0xb1f86b['on']('cancel',()=>this['focus']()),_0xb1f86b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x54e9dd;}}class fe extends us{['suggestionView'];['_descriptionElement'];constructor(_0x114788,_0x2f4805,_0x53335c,_0x261429){super(_0x114788,_0x2f4805,_0x53335c,_0x261429),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x28c993=>_0x28c993&&_0x28c993[0x0]?_0x28c993[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3dc4e8,_0x2d36e8)=>{let _0x506507='';for(const _0xb044aa of _0x3dc4e8)_0x506507+='<p>'+ls(_0xb044aa['content'],_0xb044aa['color'])+'</p>';return _0x2d36e8?_0x506507:ti(_0x506507,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x261429['SuggestionView'](_0x114788,_0x2f4805,{'formatDateTime':_0x261429['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 _0x5ba0b6=this['bindTemplate'],_0x12bb48=[this['suggestionView']];return this['commentsListView']&&_0x12bb48['push'](this['commentsListView']),this['commentThreadInputView']&&_0x12bb48['push'](this['commentThreadInputView']),_0x12bb48['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5ba0b6['if']('isActive','ck-suggestion-wrapper--active'),_0x5ba0b6['to']('type',_0x47b08c=>'ck-suggestion-'+_0x47b08c),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':_0x5ba0b6['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x12bb48};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class we extends _0x14eefd{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x31fb68,_0x31dfaf,_0x469539){super(_0x31fb68),this['_model']=_0x31dfaf,this['_config']=_0x469539,this['set']('description',''),this['bind']('authoredAt')['to'](_0x31dfaf),this['acceptButton']=this['_createButton'](c(_0x31fb68,'Accept\x20suggestion'),_0x1db0e4,'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](c(_0x31fb68,'Discard\x20suggestion'),_0x587379,'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2098f0(_0x31fb68,_0x31dfaf['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x53758e([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x5392ce(),this['keystrokes']=new _0x37db49(),this['focusCycler']=new _0x627706({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x387943=>_0x387943['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x2ab1a3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x2ab1a3['innerHTML']=this['description'],this['on']('change:description',(_0x290b2d,_0x4c2734,_0x5460af)=>{_0x2ab1a3['innerHTML']=_0x5460af;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3a2144=this['bindTemplate'],_0x342fa4=[{'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':_0x3a2144['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3a2144['to']('authoredAt',_0x3e6133=>this['_config']['formatDateTime'](_0x3e6133))}]}]},{'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']&&_0x342fa4['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':_0x342fa4}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):c(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?c(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):c(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x183e5b,_0x16e1e8,_0x5ab7dc,_0x24f4ae,_0x256518){const _0x5e4060=new _0xaa86d9(this['locale']);return _0x5e4060['set']({'label':_0x183e5b,'icon':_0x16e1e8,'tooltip':!0x0,'tooltipPosition':_0x256518}),_0x5e4060['extendTemplate']({'attributes':{'class':_0x5ab7dc}}),_0x5e4060['on']('execute',()=>{this['fire'](_0x24f4ae,this['_model']['id']);}),_0x5e4060;}['_setupKeyboardNavigation'](){const _0x581cb8=this['element'];this['keystrokes']['listenTo'](_0x581cb8);for(const _0xb7fa0e of this['focusables'])this['focusTracker']['add'](_0xb7fa0e['element']),this['keystrokes']['listenTo'](_0xb7fa0e['element']);this['keystrokes']['set']('enter',(_0xbf7073,_0x3a5052)=>{_0x581cb8===_0xbf7073['target']&&(this['focusCycler']['focusFirst'](),_0x3a5052());}),this['keystrokes']['set']('esc',(_0x5861f7,_0x47e3c6)=>{_0x581cb8!==_0x5861f7['target']&&(this['focus'](),_0x47e3c6());});}}class d extends _0x51b88f{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x122585,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x53d0e6){super(_0x53d0e6),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x25d64a=this['editor']['config'];_0x25d64a['define']('trackChanges.SuggestionThreadView',fe),_0x25d64a['define']('trackChanges.SuggestionView',we),_0x25d64a['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x25d64a['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x1f2239,_0x211c40){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xb6c54d,_0x510e2e]of this['_handleControllerBuffer']){const _0x1b492d=this['_suggestionToController']['has'](_0xb6c54d);_0x1b492d||_0x510e2e?_0x1b492d&&_0x510e2e&&this['_destroyController'](_0xb6c54d):this['_initializeController'](_0xb6c54d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1f2239,_0x211c40);}['init'](){const _0x1e0e1c=this['editor'],_0x897851=_0x1e0e1c['plugins']['get']('TrackChangesEditing'),_0x5cef48=_0x1e0e1c['plugins']['get']('Annotations'),_0x6f44=_0x1e0e1c['plugins']['get']('EditorAnnotations'),_0x35f59e=_0x1e0e1c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x6f44['addSourceCollector'](()=>{const _0x672618=[];for(const [_0x54fbd9,_0x354be8]of Array['from'](this['_suggestionToController'])){const _0x571db1=_0x54fbd9['getAllAdjacentSuggestions'](),_0x33c57c=[];for(const _0x4b6dd3 of _0x571db1){if(!_0x4b6dd3['isInContent'])continue;if(_0x4b6dd3['isMultiRange']){_0x33c57c['push'](..._0x4b6dd3['getRanges']());continue;}const _0x6f4934=_0x4b6dd3['getFirstRange']();if(_0x33c57c['length']>0x0){const _0x15f347=_0x33c57c[0x0]['getJoined'](_0x6f4934);if(_0x15f347){_0x33c57c[0x0]=_0x15f347;continue;}}_0x33c57c['push'](_0x6f4934);}_0x672618['push']([_0x354be8['view'],_0x33c57c]);}return _0x672618;}),this['listenTo'](_0x897851,'suggestionLoaded',(_0x2b16e6,_0x5a61f6)=>{this['listenTo'](_0x5a61f6,'change:previous',(_0x353fad,_0x3912bd,_0x14440e,_0xd19e41)=>{_0x5a61f6['isInContent']&&(null==_0x14440e?(this['_updateController'](_0xd19e41['head']),this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x1)):(this['_updateController'](_0x14440e['head']),null==_0xd19e41&&this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x0)));}),null!==_0x5a61f6['previous']?this['_updateController'](_0x5a61f6['head']):this['_handleSuggestionControllerDelayed'](_0x5a61f6,!0x1);}),this['listenTo'](_0x897851,'suggestionUnloaded',(_0x36b4db,_0x32a9a1,_0x23a762)=>{this['stopListening'](_0x32a9a1,'change:previous'),this['_handleControllerBuffer']['delete'](_0x32a9a1),this['_suggestionToController']['has'](_0x32a9a1)&&this['_destroyController'](_0x32a9a1),_0x23a762&&this['_updateController'](_0x23a762['head']);}),this['listenTo'](_0x897851,'suggestionChanged',(_0x3d5b00,_0x5bbabe)=>{this['_updateController'](_0x5bbabe);}),this['listenTo'](_0x5cef48,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x35f59e,'addComment',(_0x5b3529,{threadId:_0x2c9796,isFromAdapter:_0x49c27c})=>{if(_0x49c27c||!_0x897851['hasSuggestion'](_0x2c9796))return;const _0x24cc2e=_0x897851['getSuggestion'](_0x2c9796);this['_suggestionToController']['get'](_0x24cc2e)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5b02f8=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1fc2f1;for(const _0x288c25 in _0x5b02f8){const _0x1e734d=_0x288c25,_0x5cfce5=_0x5b02f8[_0x1e734d];if('trackChangesLicenseKeyValid'==_0x5cfce5||'trackChangesLicenseKeyInvalid'==_0x5cfce5||'trackChangesLicenseKeyExpired'==_0x5cfce5||'trackChangesLicenseKeyDomainLimit'==_0x5cfce5||'trackChangesLicenseKeyNotAllowed'==_0x5cfce5||'trackChangesLicenseKeyEvaluationLimit'==_0x5cfce5||'trackChangesLicenseKeyTrialLimit'==_0x5cfce5||'trackChangesLicenseKeyUsageLimit'==_0x5cfce5){delete _0x5b02f8[_0x1e734d],_0x1fc2f1=_0x5cfce5,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x1fc2f1&&_0x5b02f8['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x932940=this['editor']['plugins']['get']('Annotations'),_0x41beed=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1272b2=Array['from'](_0x932940['activeAnnotations'],_0x245f94=>_0x245f94['innerView'])['filter'](_0x2586f5=>this['_viewToController']['has'](_0x2586f5)),_0xf4af58=[];for(const _0x2d3b85 of _0x1272b2){const _0x2c1eaf=this['_viewToController']['get'](_0x2d3b85)['model']['getAllAdjacentSuggestions']();_0xf4af58['push'](..._0x2c1eaf['reduce']((_0x3030d9,_0x4dbbcd)=>[..._0x3030d9,..._0x4dbbcd['getMarkerNames']()],[]));}_0x41beed['activeMarkers']=_0xf4af58;}['_addUIComponentsToFactory'](){const _0x162a6d=this['editor'],_0x710da6=_0x162a6d['locale'],_0x131ff0=c(_0x710da6,'Track\x20changes'),_0x3dcc8b=new _0xef626d([{'type':'switchbutton','model':new _0x311582({'withText':!0x0,'isToggleable':!0x0,'label':_0x131ff0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x162a6d['plugins']['has']('TrackChangesPreview')&&_0x3dcc8b['addMany']([{'type':'separator'},{'type':'button','model':new _0x311582({'withText':!0x0,'label':c(_0x710da6,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x46495c of _0x3dcc8b)if(ke(_0x46495c)){const _0x1a369f=_0x162a6d['commands']['get'](_0x46495c['model']['commandName']);_0x46495c['model']['bind']('isOn','isEnabled')['to'](_0x1a369f,'value','isEnabled');}_0x162a6d['ui']['componentFactory']['add']('trackChanges',_0x24f023=>this['_createToolbarButton'](_0x24f023,_0x3dcc8b,_0x131ff0)),_0x162a6d['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4bc426=>this['_createMenuBarMenu'](_0x4bc426,_0x3dcc8b,_0x131ff0));}['_createToolbarButton'](_0x5cd489,_0x3ff189,_0x14e9bc){const _0x18a6c4=_0x599048(_0x5cd489,_0x404227),_0x83b7cc=this['editor']['commands']['get']('trackChanges');_0x18a6c4['buttonView']['set']({'tooltip':_0x14e9bc,'label':_0x14e9bc,'icon':_0x4c3e2c}),_0x18a6c4['buttonView']['bind']('isOn')['to'](_0x83b7cc,'value'),_0x18a6c4['buttonView']['on']('execute',()=>{_0x83b7cc['execute'](),this['editor']['editing']['view']['focus']();}),_0x2bc843(_0x18a6c4,_0x3ff189,{'role':'menu'});const _0x4a3b84=[];for(const _0x16ed8c of _0x3ff189)ke(_0x16ed8c)&&_0x4a3b84['push'](this['editor']['commands']['get'](_0x16ed8c['model']['commandName']));const _0x358141=_0x18a6c4['buttonView'];return _0x358141['actionView']['unbind']('isEnabled'),_0x358141['arrowView']['unbind']('isEnabled'),_0x358141['actionView']['bind']('isEnabled')['to'](_0x83b7cc,'isEnabled'),_0x358141['arrowView']['bind']('isEnabled')['toMany'](_0x4a3b84,'isEnabled',(..._0x4ed93e)=>_0x4ed93e['some'](_0x3a70d3=>_0x3a70d3)),_0x18a6c4['on']('execute',_0x1dd015=>{this['editor']['execute'](_0x1dd015['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x18a6c4;}['_createMenuBarMenu'](_0x4730c2,_0x3ceb27,_0x4dd004){const _0x2cc4c4=new _0x24f759(_0x4730c2),_0x20e70a=this['editor']['commands']['get']('trackChanges');_0x2cc4c4['buttonView']['set']({'label':_0x4dd004,'icon':_0x4c3e2c});const _0x1d562e=new _0x5b5e20(_0x4730c2);for(const _0x59f375 of _0x3ceb27){if('separator'==_0x59f375['type']){_0x1d562e['items']['add'](new _0x3aff66(_0x4730c2));continue;}const _0x13387c=new _0x254a95(_0x4730c2,_0x2cc4c4),_0x519dac=new _0x31a8c8(_0x4730c2),_0x206173=_0x59f375['model'];_0x519dac['bind'](...Object['keys'](_0x206173))['to'](_0x206173),_0x519dac['delegate']('execute')['to'](_0x2cc4c4),_0x519dac['on']('execute',()=>{this['editor']['execute'](_0x206173['commandName']),this['editor']['editing']['view']['focus']();}),_0x13387c['children']['add'](_0x519dac),_0x1d562e['items']['add'](_0x13387c);}return _0x2cc4c4['bind']('isEnabled')['to'](_0x20e70a,'isEnabled'),_0x2cc4c4['panelView']['children']['add'](_0x1d562e),_0x2cc4c4;}['_initializeController'](_0x9885e0){const _0x4ce2cf=this['editor'],_0x42aac1=_0x4ce2cf['config'],_0x3820b3=_0x4ce2cf['plugins']['get']('Annotations'),_0x78aaee=_0x4ce2cf['plugins']['get']('CommentsRepository'),_0xae5875=_0x4ce2cf['plugins']['get']('EditorAnnotations'),_0x16b33a=_0x4ce2cf['plugins']['get'](_0x122585)['me'],_0x4a1113=_0x42aac1['get']('trackChanges')['SuggestionThreadView'],_0x1a46df=_0x42aac1['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x53f357,CommentThreadInputView:_0x55a49f}=_0x4ce2cf['plugins']['get']('CommentsUI');let _0x34d12,_0xb06b0e,_0x1d9d5c;this['_annotationViews']['has'](_0x9885e0['id'])?(_0xb06b0e=this['_annotationViews']['get'](_0x9885e0['id']),_0x34d12=_0xb06b0e['mainView']):(_0x34d12=new _0x4a1113(_0x4ce2cf['locale'],_0x9885e0,_0x16b33a,{'disableComments':this['_disableComments'],'editorConfig':{..._0x42aac1['get']('comments.editorConfig'),'licenseKey':_0x42aac1['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x42aac1['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x42aac1['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x42aac1['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x113b40(_0x42aac1['get']('locale'),_0x4ce2cf['locale']),'CommentView':_0x42aac1['get']('comments')['CommentView'],'CommentsListView':_0x53f357,'CommentThreadInputView':_0x55a49f,'SuggestionView':_0x1a46df}),_0x34d12['suggestionView']['acceptButton']['on']('execute',()=>{_0x4ce2cf['editing']['view']['focus']();}),_0x34d12['suggestionView']['discardButton']['on']('execute',()=>{_0x4ce2cf['editing']['view']['focus']();}),_0xb06b0e=_0x3820b3['createAnnotationView'](this['editor']['locale'],_0x34d12),_0xb06b0e['bind']('isDirty')['to'](_0x34d12,'isDirty'),_0xb06b0e['bind']('length')['to'](_0x34d12),_0xb06b0e['bind']('type')['to'](_0x34d12,'type',_0x335b61=>'suggestion-'+_0x335b61),_0x34d12['on']('escape',()=>{_0x1d9d5c['fire']('escape');}),this['_annotationViews']['set'](_0x9885e0['id'],_0xb06b0e));const _0x125437=_0x78aaee['createCommentThreadController'](_0x9885e0['commentThread'],_0x34d12),_0x53a250=new pe(_0x4ce2cf,_0x9885e0,_0x34d12,_0x125437),_0x22c2c3=_0x9885e0['getAllAdjacentSuggestions']()['filter'](_0x3c0934=>_0x3c0934['isInContent']);_0x34d12['descriptionParts']=_0x4ce2cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x22c2c3),this['_suggestionToController']['set'](_0x9885e0,_0x53a250),this['_viewToController']['set'](_0x34d12,_0x53a250),_0x1d9d5c=_0x3820b3['createAnnotation']({'view':_0xb06b0e,'target':()=>{const _0x4c31a0=[],_0x7be67a=_0x9885e0['getAllAdjacentSuggestions']()['filter'](_0x2a4afc=>_0x2a4afc['isInContent']);for(const _0x47cbc5 of _0x7be67a)_0x4c31a0['push'](..._0x47cbc5['getMarkers']());return _0x301d97(_0x4ce2cf['editing'],_0x4c31a0);},'type':()=>'suggestion-'+_0x53a250['view']['type']}),_0x78aaee['_bindAnnotationToEditors'](_0x34d12,_0x1d9d5c),_0x3820b3['add'](_0x1d9d5c),_0xae5875['registerAnnotation'](_0x1d9d5c);}['_destroyController'](_0x4cda67){const _0x3eeb63=this['editor']['plugins']['get']('CommentsRepository'),_0x5d60ff=this['editor']['plugins']['get']('Annotations'),_0x463cda=this['_suggestionToController']['get'](_0x4cda67),_0x35bc6c=_0x463cda['view'],_0x481cb6=_0x5d60ff['getByInnerView'](_0x35bc6c);_0x3eeb63['_unbindEditors'](_0x35bc6c),_0x481cb6&&_0x5d60ff['remove'](_0x481cb6),this['_suggestionToController']['delete'](_0x4cda67),this['_viewToController']['delete'](_0x35bc6c),_0x463cda['destroy']();}['_updateController'](_0x24f7f9){if(!_0x24f7f9['isInContent']||!this['_suggestionToController']['has'](_0x24f7f9))return;const _0x160199=this['editor']['plugins']['get']('TrackChangesEditing'),_0x59da83=this['_suggestionToController']['get'](_0x24f7f9),_0x274230=_0x24f7f9['getAllAdjacentSuggestions']();_0x59da83['view']['descriptionParts']=_0x160199['descriptionFactory']['getDescriptions'](_0x274230);}['destroy'](){for(const _0x860aa7 of this['_suggestionToController']['keys']())this['_destroyController'](_0x860aa7);for(const _0x3567f2 of this['_annotationViews']['values']())_0x3567f2['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3ee73c){return'model'in _0x3ee73c;}class k extends _0x51b88f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x38ccd2){this['editor']['plugins']['get'](p)['adapter']=_0x38ccd2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x22e153){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x22e153);}['getSuggestions']({skipNotAttached:_0x3b889c=!0x1,toJSON:_0x33e549=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x3b889c,'toJSON':_0x33e549});}['getSuggestion'](_0x570743){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x570743);}}const w=['Pagination'];class T extends _0x51b88f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x486f7b=this['editor'];if(_0x486f7b['config']['define']('trackChangesData.editorCreator',_0x30fec9=>{const _0x5e5fcc=_0x486f7b['model']['document']['getRootNames']()['reduce']((_0x7c387d,_0x17d90c)=>(_0x7c387d[_0x17d90c]='',_0x7c387d),{});return _0x486f7b['constructor']['create'](_0x5e5fcc,_0x30fec9);}),'function'!=typeof _0x486f7b['config']['get']('trackChangesData')['editorCreator'])throw new _0x463d5f('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2ce98b){return N(this['editor'],!0x0,_0x2ce98b);}['getDataWithDiscardedSuggestions'](_0x2cbaa6){return N(this['editor'],!0x1,_0x2cbaa6);}}class D extends _0x51b88f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x465c4d){function _0x5405e6(_0x34ba75){return _0x34ba75['map'](_0x1b9a25=>String['fromCharCode'](_0x1b9a25))['join']('');}super(_0x465c4d),this['result']='end',_0x465c4d[_0x5405e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5405e6([0x76,0x69,0x65,0x77])][_0x5405e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5405e6([0x61,0x75,0x74,0x6f]),_0x465c4d[_0x5405e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5405e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5405e6([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5405e6([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5405e6([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 Ge(_0x4ba8a5){return void 0x0!==_0x4ba8a5['getRootsAttributes'];}async function N(_0x57cd95,_0x3f97c8,_0x4112b4){const _0x4e88e9=_0x43abcc(_0x57cd95,w);_0x4e88e9['plugins']['push'](p,D),_0x4e88e9['rootsAttributes']=Ge(_0x57cd95)?_0x57cd95['getRootsAttributes']():void 0x0;const _0x184cd8=document['createDocumentFragment'](),_0x424e0b=_0x57cd95['config']['get']('trackChangesData')['editorCreator'],_0xea3627=await _0x424e0b(_0x4e88e9,()=>function(_0x285d29){const _0x52edde=document['createElement']('div');return _0x285d29['appendChild'](_0x52edde),_0x52edde;}(_0x184cd8));!function(_0x340616,_0x4b7b55){const _0x404f05=_0x340616['model']['document']['getRootNames']()['reduce']((_0x1dc514,_0x44fc56)=>(_0x1dc514[_0x44fc56]=_0x340616['data']['get']({'rootName':_0x44fc56}),_0x1dc514),{}),_0x56edc8=_0x340616['plugins']['get']('Users')['users']['map'](_0x5b7ad0=>({'id':_0x5b7ad0['id'],'name':_0x5b7ad0['name']})),_0x486766=_0x340616['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1e0759=_0x340616['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1ceb78=_0x4b7b55['plugins']['get']('Users'),_0xd862aa=_0x4b7b55['plugins']['get']('TrackChangesEditing'),_0x18cb6d=_0x4b7b55['plugins']['get']('CommentsRepository');for(const _0xfc6df9 of _0x18cb6d['getCommentThreads']())_0xfc6df9['remove']();for(const _0x25ac2d of _0x56edc8)_0x1ceb78['getUser'](_0x25ac2d['id'])||_0x1ceb78['addUser'](_0x25ac2d);_0x1ceb78['me']||_0x1ceb78['useAnonymousUser']();for(const _0x25c6ce of _0x1e0759)_0x18cb6d['addCommentThread'](_0x25c6ce);for(const _0x3e542b of _0x486766)_0xd862aa['addSuggestionData'](_0x3e542b);_0x4b7b55['data']['set'](_0x404f05);}(_0x57cd95,_0xea3627),_0xea3627['execute'](_0x3f97c8?'acceptAllSuggestions':'discardAllSuggestions');const _0x4695f=Ge(_0xea3627)?_0xea3627['getFullData'](_0x4112b4):_0xea3627['data']['get'](_0x4112b4);return await _0xea3627['destroy'](),_0x4695f;}class Me extends _0x14eefd{['options'];constructor(_0x52139a,_0x205909){super(_0x52139a),this['options']=_0x205909,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'](_0x425561,_0x5211ae){if(!this['element'])return;const _0x20794a=[];for(const [_0x2a0563,_0x3f95a4]of _0x425561){const _0x1bc74c=document['createElement']('div');_0x1bc74c['setAttribute']('data-ck-root-name',_0x2a0563),_0x1bc74c['className']=_0x3f95a4['classes']+'\x20ck-track-changes-preview__root-container',_0x1bc74c['innerHTML']=_0x3f95a4['content'],_0x20794a['push'](_0x1bc74c);}_0x5211ae(this['element'],_0x20794a),this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends _0x4ca0ae{constructor(_0x54801b){super(_0x54801b),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x44efc9=this['editor'],_0x2b48f7=_0x44efc9['locale'],_0x23bd19=_0x44efc9['plugins']['get']('Dialog');let _0x250f73;const _0x2903c9=function(_0x28350c){const _0x3f0dea={};if('editables'in _0x28350c['ui']['view']){for(const [_0x2b623b,_0x3bc58e]of Object['entries'](_0x28350c['ui']['view']['editables']))_0x3f0dea[_0x2b623b]=_0x3bc58e['element'];}else _0x3f0dea[_0x28350c['model']['document']['getRootNames']()[0x0]]=_0x28350c['ui']['view']['editable']['element'];return _0x3f0dea;}(_0x44efc9),_0x58a799=function(_0x2f6323){let _0x5988e3=0x0;for(const _0x14af84 of Object['values'](_0x2f6323))_0x5988e3=Math['max'](_0x5988e3,_0x14af84['getBoundingClientRect']()['width']);let _0x5ce8ef=0x0;for(const _0x1c4a3d of Object['values'](_0x2f6323))_0x5ce8ef+=_0x1c4a3d['getBoundingClientRect']()['height'];const _0x1e5da3=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x5df00c=Math['min'](_0x5ce8ef,_0x1e5da3);return{'width':_0x5988e3,'height':_0x5df00c};}(_0x2903c9);_0x23bd19['show']({'id':'finalContentPreview','title':c(_0x2b48f7,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2b48f7,{'dialogRects':_0x58a799}),'onHide':()=>{_0x250f73['detachFromDom']();},'onShow':()=>{_0x44efc9['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x4a49f3=>{const _0x32d893=this['_standarizeRootsData'](_0x4a49f3,_0x44efc9,_0x2903c9);_0x23bd19['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x32d893,_0x44efc9['config']['get']('trackChanges.preview.renderFunction'));}),_0x250f73=new _0x1c6ac0(_0x2b48f7,[_0x23bd19['view']]),_0x250f73['attachToDom'](),_0x250f73['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x44efc9['once']('destroy',()=>{_0x250f73['detachFromDom']();});const _0x3c2c76=_0x23bd19['view']['headerView']['class'];_0x23bd19['view']['headerView']['class']=_0x3c2c76?_0x3c2c76+'\x20ck-reset_all':'ck-reset_all',_0x23bd19['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x23bd19['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x56b31d=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xa2bc58=_0x56b31d['previewMode'],_0xd81973={};if('$labels'===_0xa2bc58){for(const _0x1c32c6 of _0x56b31d['getMergeFieldsIds']())_0xd81973[_0x1c32c6]=_0x56b31d['getLabel'](_0x1c32c6)||_0x1c32c6;}else{const _0x575669='$defaultValues'===_0xa2bc58?_0x56b31d['getDefaultValues']():_0x56b31d['getDataSetValues'](_0xa2bc58,!0x0);for(const _0x5dfa89 of Object['entries'](_0x575669)){const [_0x21d54c,_0x190054]=_0x5dfa89;_0xd81973[_0x21d54c]=null!==_0x190054?_0x190054:_0x56b31d['getLabel'](_0x21d54c)||_0x21d54c;}}return{'mergeFieldsData':_0xd81973};}['_standarizeRootsData'](_0x57abfe,_0x5d5fc7,_0x5892a3){let _0x964a82;if('string'==typeof _0x57abfe){const _0x546d4b=_0x5d5fc7['model']['document']['getRootNames']()[0x0];_0x964a82={[_0x546d4b]:_0x57abfe};}else _0x964a82=_0x57abfe;const _0x52d36c=this['_fixMediaEmbeds'](_0x964a82,_0x5d5fc7),_0x36327f=function(_0x77df32,_0x497e78){for(const [_0x22dfaf,_0x5e703a]of _0x77df32)_0x5e703a['classes']=_0x497e78[_0x22dfaf]['classList']['value']['replace']('ck-focused','');return _0x77df32;}(this['_sortRoots'](_0x5d5fc7)['reduce']((_0x47b6a9,_0x21a623)=>(_0x47b6a9['push']([_0x21a623,{'content':_0x52d36c[_0x21a623],'classes':''}]),_0x47b6a9),[]),_0x5892a3);return _0x36327f;}['_fixMediaEmbeds'](_0x198d5b,_0x5339c9){if(!_0x5339c9['plugins']['has']('MediaEmbedEditing'))return _0x198d5b;const _0x215f78=_0x5339c9['plugins']['get']('MediaEmbedEditing');for(const [_0x272432,_0xb832d0]of Object['entries'](_0x198d5b)){const _0xb0e2ee=document['createElement']('div');_0xb0e2ee['innerHTML']=_0xb832d0,(_0xb0e2ee['querySelectorAll']('figure.media')['forEach'](_0x5d7528=>{const _0x38bd17=_0x5d7528['querySelector']('oembed');if(_0x38bd17){const _0xe481d9=_0x38bd17['getAttribute']('url');if(_0xe481d9){const _0x1e4b89=_0x215f78['registry']['getMediaViewElement'](new _0x4c4a9a(_0x5339c9['editing']['view']['document']),_0xe481d9,{'elementName':'','renderForEditingView':!0x0}),_0x18dc84=document['createElement']('div');_0x18dc84['classList']['add']('ck-media__wrapper'),_0x1e4b89['render'](_0x18dc84,_0x5339c9['editing']['view']['domConverter']),_0x38bd17['replaceWith'](_0x18dc84);}}}),_0x198d5b[_0x272432]=_0xb0e2ee['innerHTML']);}return _0x198d5b;}['_sortRoots'](_0x3ac182){if(!function(_0x1afaac){return void 0x0!==_0x1afaac['getRootsAttributes'];}(_0x3ac182))return _0x3ac182['model']['document']['getRootNames']();const _0xe04de=[],_0x4eda4=new Map();for(const _0x593bf2 of _0x3ac182['model']['document']['getRootNames']()){const _0x52fad7=_0x3ac182['editing']['view']['getDomRoot'](_0x593bf2)['getClientRects']()['item'](0x0);_0xe04de['push'](_0x593bf2),_0x4eda4['set'](_0x593bf2,_0x52fad7);}return _0xe04de['sort']((_0xb238b0,_0x5387a8)=>{const _0x2078da=_0x4eda4['get'](_0xb238b0),_0x24e0f3=_0x4eda4['get'](_0x5387a8);return _0x2078da['y']-_0x24e0f3['y']||_0x2078da['x']-_0x24e0f3['x'];}),_0xe04de;}}class te extends _0x51b88f{static get['requires'](){return[T,_0x3ce0b3];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x436450){super(_0x436450),_0x436450['commands']['add']('previewFinalContent',new re(this['editor'])),_0x436450['config']['define']('trackChanges.preview.renderFunction',(_0x528912,_0x3c5be8)=>{for(const _0xca77f3 of _0x3c5be8)_0x528912['appendChild'](_0xca77f3);});}}export{us as BaseSuggestionThreadView,o as Suggestion,fe as SuggestionThreadView,we as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};