@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20250205.0 → 0.0.0-nightly-20250206.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 Qt,Plugin as _0x5d6089,PendingActions as _0x51645a,icons as _0x4175cb}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x443412,ObservableMixin as _0x1e4a9e,uid as _0x3e98cb,priorities as _0xa7b267,insertToPriorityArray as _0x4c87f7,logWarning as _0x5d59b3,getEnvKeystrokeText as _0x2b9d18,FocusTracker as _0x48b573,KeystrokeHandler as _0xace25c,Collection as _0x587b41}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x4a36e9,View as _0x5af415,ViewCollection as _0x2ee850,FocusCycler as ts,ViewModel as _0x5d4f74,createDropdown as _0x21aa3c,SplitButtonView as _0xe7a2f2,addListToDropdown as _0x20b8e0,MenuBarMenuView as _0x54474e,MenuBarMenuListView as _0x2c7f70,ListSeparatorView as _0x1eeea8,MenuBarMenuListItemView as _0x37c849,MenuBarMenuListItemButtonView as _0x2a6114,BodyCollection as _0x91a64,Dialog as _0x3b1aab}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xb5d06b,hashObject as _0x567c87,surroundingMarkersDetector as _0x499a36,FOCUS_ANNOTATION_KEYSTROKE as _0x3b30c0,AriaDescriptionView as _0x43b6cb,setupThreadKeyboardNavigation as _0x5a76a7,trimHtml as _0x1eae6c,UserView as _0x52c9bb,LateFocusButtonView as _0x5b52ba,getDateTimeFormatter as _0x492577,getAllMarkersDomElementsSorted as _0x2912c5,sanitizeEditorConfig as _0x25065b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x2ae963,LiveRange as _0x190639,LivePosition as _0x1f9cd0,DowncastWriter as _0x714d27}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4bfc39,toWidget as _0x464eed}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x12f90d,set as _0x27cd11,isEqual as _0x3a2d98,unset as _0x5eaa15,omit as Et}from'lodash-es';import{Delete as _0x460f75,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x2cc9cd,ShiftEnter as _0x1b9647}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0xdd56c8,_0x2170b8){super(_0xdd56c8),this['_enabledCommands']=_0x2170b8,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 _0x373e0b of this['editor']['commands']['commands']())_0x373e0b['affectsData']&&!this['_enabledCommands']['has'](_0x373e0b)&&_0x373e0b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x41440d of this['editor']['commands']['commands']())_0x41440d['affectsData']&&!this['_enabledCommands']['has'](_0x41440d)&&_0x41440d['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x170e18,_0x416291){super(_0x170e18),this['_suggestions']=_0x416291,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xafb5b6){const _0x3aafeb=this['_suggestions']['get'](_0xafb5b6);if(!_0x3aafeb)throw new _0x443412('track-changes-accept-suggestion-not-found',this);const _0xb9bab6=_0x3aafeb['getRanges']();this['editor']['model']['canEditAt'](_0xb9bab6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x3aafeb);}}class R extends Qt{['_suggestions'];constructor(_0x599369,_0x395b53){super(_0x599369),this['_suggestions']=_0x395b53,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x582cfe){const _0x443120=this['_suggestions']['get'](_0x582cfe);if(!_0x443120)throw new _0x443412('track-changes-discard-suggestion-not-found',this);const _0x567f14=_0x443120['getRanges']();this['editor']['model']['canEditAt'](_0x567f14)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x443120);}}function ns(_0x547264,_0x5b6994){let _0x2298d7='';return _0x2298d7+=_0x547264['split']('*')['map']((_0x185af8,_0x38eccb)=>_0x38eccb%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x185af8)+'</span>':nn(_0x185af8))['join'](''),_0x5b6994&&(_0x2298d7+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x5b6994['value']+'\x22\x20title=\x22'+_0x5b6994['title']+'\x22></span>'),_0x2298d7;}function nn(_0x2a0b17){const _0x557e05=document['createElement']('span');return _0x557e05['innerText']=_0x2a0b17,_0x557e05['innerHTML'];}function Xt(_0x1a76f4){return _0x1a76f4['sort']((_0x579aa8,_0x113e7e)=>'deletion'==_0x579aa8['type']&&'deletion'!=_0x113e7e['type']?-0x1:'deletion'!=_0x579aa8['type']&&'deletion'==_0x113e7e['type']?0x1:0x0);}function to(_0x512e10,_0x15d318){let _0xddcdbf,_0x3866d0=0x0;const _0xd0c6b1=[],_0x597917=_0x15d318['schema'];for(;_0x3866d0<_0x512e10['length'];){const _0x1c5c89=_0x512e10[_0x3866d0],_0x119a1f=_0x512e10[_0x3866d0+0x1];_0xddcdbf||(_0xddcdbf=_0x15d318['createPositionBefore'](_0x1c5c89)),on(_0x15d318,_0x1c5c89,_0x119a1f)||(_0xd0c6b1['push'](_0x15d318['createRange'](_0xddcdbf,_0x597917['isObject'](_0x1c5c89)?_0x15d318['createPositionAfter'](_0x1c5c89):_0x15d318['createPositionAt'](_0x1c5c89,'end'))),_0xddcdbf=null),_0x3866d0++;}return _0xd0c6b1;}function on(_0x138e9b,_0x225927,_0x350611){if(!_0x350611)return!0x1;const _0x250af1=_0x138e9b['createPositionAfter'](_0x225927),_0x552522=_0x138e9b['createPositionBefore'](_0x350611);return _0x250af1['isTouching'](_0x552522);}function Yt(_0x527ca8,_0x6018e6,_0x314082){for(;_0x314082['length'];){const _0x765480=_0x314082['splice'](0x0,0x64);_0x527ca8['change'](()=>{for(const _0x192343 of _0x765480)_0x192343['isInContent']&&_0x6018e6['execute'](_0x192343['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0x290c6d,_0xfbff61,_0x2b3b9f){super(_0x290c6d),this['_command']=_0xfbff61,this['_suggestions']=_0x2b3b9f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14e3a9=Array['from'](this['_suggestions']['values']())['some'](_0xde5c50=>_0xde5c50['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14e3a9;}['execute'](){const _0x27001a=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x9fc8ac of _0x27001a){const _0x3520e5=_0x9fc8ac['getRanges']();if(!this['editor']['model']['canEditAt'](_0x3520e5))return;}Yt(this['editor']['model'],this['_command'],_0x27001a);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2b9aa7,_0x238837,_0x263eac){super(_0x2b9aa7),this['_command']=_0x238837,this['_suggestions']=_0x263eac,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xe75796=this['editor']['model']['document']['selection'],_0x33081e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x29c745,_0x33df87){const _0x3d793d=Array['from'](_0x29c745['getRanges']()),_0x118966=new Set();for(const _0x32ddf8 of _0x33df87)if(_0x32ddf8['isInContent']){for(const _0x229d4d of _0x3d793d)for(const _0x15940b of _0x32ddf8['getRanges']())(_0x229d4d['isIntersecting'](_0x15940b)||_0x29c745['isCollapsed']&&!_0x32ddf8['isMultiRange']&&_0x32ddf8['next']&&_0x15940b['end']['isTouching'](_0x229d4d['start']))&&_0x118966['add'](_0x32ddf8);}return _0x118966;}(_0xe75796,_0x33081e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x54ab38=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x38e20e of _0x54ab38){const _0x30655b=_0x38e20e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x30655b))return;}Yt(this['editor']['model'],this['_command'],_0x54ab38);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x1e4a9e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x42b6d6,_0x7479eb){super(),this['id']=_0x7479eb['id'],this['type']=_0x7479eb['type'],this['subType']=_0x7479eb['subType']||null,this['author']=_0x7479eb['author'],this['creator']=_0x7479eb['creator']||_0x7479eb['author'],this['isExternal']=Boolean(_0x7479eb['attributes']&&_0x7479eb['attributes']['@external']),this['data']=null,this['_model']=_0x42b6d6,this['_onAccept']=_0x7479eb['onAccept'],this['_onDiscard']=_0x7479eb['onDiscard'],this['_onAttributesChange']=_0x7479eb['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x7479eb['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 _0xace9c7=this;for(;_0xace9c7['previous'];)_0xace9c7=_0xace9c7['previous'];return _0xace9c7;}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'](_0x470893){this['_markerNames']['add'](_0x470893);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x2be7cf=>this['_model']['markers']['get'](_0x2be7cf))['filter'](_0x29250b=>_0x29250b);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x173dff=>{for(const _0x123e3a of this['getMarkers']())_0x173dff['removeMarker'](_0x123e3a);}),this['_markerNames']['clear']();}['removeMarker'](_0x1e066b){this['_model']['change'](_0x3bf65b=>{_0x3bf65b['removeMarker'](_0x1e066b);}),this['_markerNames']['delete'](_0x1e066b);}['addRange'](_0x24abba){const _0xf5b8e4='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xf5b8e4),this['_model']['change'](_0x3635c3=>{_0x3635c3['addMarker'](_0xf5b8e4,{'range':_0x24abba,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x2157e4){for(const _0x5322a8 of this['getRanges']())if(_0x5322a8['isIntersecting'](_0x2157e4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x36a8f8=>_0x36a8f8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x481a3f,_0x156711)=>[..._0x481a3f,..._0x156711['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x249c0b=this['getRanges']();if(0x1!=_0x249c0b['length'])return null;const _0x1ed128=_0x249c0b[0x0],_0x31a2db=_0x1ed128['start']['nodeAfter'],_0x59bb9d=_0x1ed128['end']['nodeBefore'];return _0x31a2db instanceof _0x2ae963?_0x31a2db!=_0x59bb9d?null:_0x31a2db: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 _0x64bfe7=[];let _0x47d11c=this['head'];for(;_0x47d11c;)_0x64bfe7['push'](_0x47d11c),_0x47d11c=_0x47d11c['next'];return _0x64bfe7;}['setAttribute'](_0x488f97,_0x165c3f){const _0x240045=_0x12f90d(this['attributes']);_0x27cd11(_0x240045,_0x488f97,_0x165c3f),_0x3a2d98(_0x240045,this['attributes'])||(this['attributes']=_0x240045,this['_onAttributesChange'](_0x240045));}['removeAttribute'](_0x240683){const _0x59e1e7=_0x12f90d(this['attributes']);_0x5eaa15(_0x59e1e7,_0x240683),_0x3a2d98(_0x59e1e7,this['attributes'])||(this['attributes']=_0x59e1e7,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 _0x3e98cb()['substr'](0x1,0x5);}}function o(_0x92193d,_0x46b696,_0x1c386a){const _0x2d60b4=_0x92193d['t'],t=_0x92193d['t'];switch(_0x46b696){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',_0x1c386a);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1c386a);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1c386a);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1c386a);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1c386a);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',_0x1c386a);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1c386a);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',_0x1c386a);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1c386a);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1c386a);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1c386a);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1c386a);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1c386a);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x1c386a);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1c386a);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1c386a);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1c386a);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1c386a);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1c386a);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1c386a);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1c386a);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1c386a);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1c386a);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1c386a);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'},_0x1c386a);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1c386a);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1c386a);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1c386a);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1c386a);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1c386a);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1c386a);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1c386a);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1c386a);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1c386a);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'},_0x1c386a);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x1c386a);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 _0x2d60b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1c386a);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0x2d60b4({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1c386a);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);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'},_0x1c386a);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x46b696;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1b4aa7,_0x246150){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1b4aa7,this['_locale']=_0x246150;}['getDescriptions'](_0x3cd18a){const _0x46409f=[],_0x4f2b26=new Set(),_0xdd0167=new Set();for(let _0x58e67b=0x0;_0x58e67b<_0x3cd18a['length'];_0x58e67b++){const _0x13e387=_0x3cd18a[_0x58e67b];if(!_0x13e387['isInContent'])continue;const _0x2fe1fd=this['_handleCustomCallbackDescription'](_0x13e387);if(_0x2fe1fd){if(null!=_0x13e387['subType']){if(_0x4f2b26['has'](_0x13e387['subType']))continue;_0x4f2b26['add'](_0x13e387['subType']);}_0x46409f['push'](_0x2fe1fd);}else{if('attribute'!=_0x13e387['type'])'insertion'!=_0x13e387['type']&&'deletion'!=_0x13e387['type']||this['_handleInsertRemoveSuggestionDescription'](_0x46409f,_0x13e387,_0x3cd18a[_0x58e67b+0x1]);else{const _0x2b41c3=_0x13e387['data']['key'];if(_0xdd0167['has'](_0x2b41c3))continue;_0xdd0167['add'](_0x13e387['data']['key']),_0x2b41c3==m?this['_handleRenameSuggestionDescription'](_0x46409f,_0x13e387):this['_handleAttributeSuggestionDescription'](_0x46409f,_0x13e387);}}}return this['_resolveDescriptionItems'](_0x46409f);}['registerDescriptionCallback'](_0x2a9117){this['_customCallbacks']['push'](_0x2a9117);}['registerElementLabel'](_0x26bbb8,_0x15ebb3,_0x58eff0=_0xa7b267['normal']){'function'==typeof _0x26bbb8?_0x4c87f7(this['_itemLabelsCallbacks'],{'matchingCallback':_0x26bbb8,'label':_0x15ebb3,'priority':_0x58eff0}):this['_itemLabels']['set'](_0x26bbb8,_0x15ebb3);}['registerAttributeLabel'](_0x58fb53,_0x17cb70){this['_attributeLabels']['set'](_0x58fb53,_0x17cb70);}['getItemLabel'](_0xebf5d5,_0x780c7f=0x1){let _0x3e3d9d;for(const _0x396c77 of this['_itemLabelsCallbacks'])if(_0x396c77['matchingCallback'](_0xebf5d5)){_0x3e3d9d=_0x396c77['label'];break;}return _0x3e3d9d||(_0x3e3d9d=this['_itemLabels']['get'](_0xebf5d5['name'])),_0x3e3d9d?_0x3e3d9d(_0x780c7f):0x1!==_0x780c7f?_0x780c7f+'\x20'+_0xebf5d5['name']+'s':''+_0xebf5d5['name'];}['_addDescriptionItems'](_0x392e11,_0x4e9173){const _0x5f2f33=_0x4e9173['getFirstRange']()['getWalker'](),_0x4d22bd='insertion'==_0x4e9173['type']?'add':'remove';for(const _0x573f4a of _0x5f2f33){const _0x429377=_0x573f4a['item'],_0x369de4=_0x392e11[_0x392e11['length']-0x1];if(_0x429377['is']('$textProxy'))_0x369de4&&_0x369de4['type']['indexOf']('Container')>-0x1&&_0x392e11['pop'](),_0x369de4&&'text'==_0x369de4['type']?_0x369de4[_0x4d22bd]+=_0x429377['data']:_0x392e11['push']({'type':'text','add':'add'==_0x4d22bd?_0x429377['data']:'','remove':'remove'==_0x4d22bd?_0x429377['data']:''});else{if(this['_schema']['isObject'](_0x429377)){const _0x4e05a8=_0x429377;if(_0x369de4&&_0x369de4['type']['indexOf']('Container')>-0x1&&_0x392e11['pop'](),'elementEnd'==_0x573f4a['type'])continue;_0x369de4&&_0x369de4['type']==_0x4d22bd+'Object'&&_0x369de4['element']['name']==_0x4e05a8['name']?_0x369de4['quantity']++:_0x392e11['push']({'type':_0x4d22bd+'Object','element':_0x4e05a8,'quantity':0x1}),_0x5f2f33['skip'](_0x5ce404=>!('elementEnd'==_0x5ce404['type']&&_0x5ce404['item']==_0x429377));}else{if(this['_schema']['checkChild'](_0x429377,'$text')||_0x429377['is']('element','softBreak')){const _0x1cc187=_0x429377;if('add'==_0x4d22bd&&'elementStart'==_0x573f4a['type']||'remove'==_0x4d22bd&&'elementEnd'==_0x573f4a['type'])continue;if(_0x369de4&&-0x1==_0x369de4['type']['indexOf']('Container')){'text'==_0x369de4['type']&&(_0x369de4[_0x4d22bd]+='\x0a');continue;}let _0x1735ee;if(_0x1735ee='add'==_0x4d22bd?_0x1cc187['nextSibling']&&!this['_schema']['isObject'](_0x1cc187['nextSibling'])?_0x1cc187['nextSibling']:null:_0x1cc187['previousSibling']&&!this['_schema']['isObject'](_0x1cc187['previousSibling'])?_0x1cc187['previousSibling']:null,_0x1cc187['isEmpty']||_0x1735ee&&_0x1735ee['isEmpty']){const _0x4d0284=_0x1735ee&&_0x1735ee['isEmpty']?_0x1735ee:_0x1cc187;_0x369de4&&_0x369de4['type']==_0x4d22bd+'EmptyContainer'&&_0x369de4['element']['name']==_0x4d0284['name']?_0x369de4['quantity']++:_0x392e11['push']({'type':_0x4d22bd+'EmptyContainer','element':_0x4d0284,'quantity':0x1});}else _0x392e11['push']({'type':_0x4d22bd+'Container','element':_0x1cc187});}}}}}['_resolveDescriptionItems'](_0x2fe1cb){const _0x319c9f=this['_locale'],_0x2bb7a2=[],_0x4bb12f=[],_0x5e9c30=[];for(const _0x2eff38 of _0x2fe1cb)switch(_0x2eff38['type']){case'text':if(_0x2eff38['add']=_0x2eff38['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x2eff38['remove']=_0x2eff38['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x2eff38['add']&&''!=_0x2eff38['remove']){_0x2bb7a2['push']({'type':'replace','content':o(_0x319c9f,'REPLACE_TEXT',['\x22'+_0x2eff38['remove']+'\x22','\x22'+_0x2eff38['add']+'\x22'])});continue;}if(null!=_0x2eff38['add']['match'](/^ +$/)){_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0',o(_0x319c9f,'ELEMENT_SPACE',_0x2eff38['add']['length']))});continue;}if(null!=_0x2eff38['remove']['match'](/^ +$/)){_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0',o(_0x319c9f,'ELEMENT_SPACE',_0x2eff38['remove']['length']))});continue;}if(''!=_0x2eff38['add']){_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0','\x22'+_0x2eff38['add']+'\x22')});continue;}_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0','\x22'+_0x2eff38['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Insert:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Remove:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'addContainer':_0x2bb7a2['push']({'type':'insertion','content':o(_0x319c9f,'*Split:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'removeContainer':_0x2bb7a2['push']({'type':'deletion','content':o(_0x319c9f,'*Merge:*\x20%0',this['getItemLabel'](_0x2eff38['element'],_0x2eff38['quantity']))});continue;case'addFormat':_0x4bb12f['push'](_0x2eff38['key']);continue;case'removeFormat':_0x5e9c30['push'](_0x2eff38['key']);continue;default:_0x2bb7a2['push'](_0x2eff38);}if(_0x4bb12f['length']){const _0x4d5d2e=_0x4bb12f['map'](_0x11f662=>this['_attributeLabels']['has'](_0x11f662)?this['_attributeLabels']['get'](_0x11f662):_0x11f662)['join'](',\x20');_0x2bb7a2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4d5d2e)});}if(_0x5e9c30['length']){const _0x1edbd8=_0x5e9c30['map'](_0x275bf3=>this['_attributeLabels']['has'](_0x275bf3)?this['_attributeLabels']['get'](_0x275bf3):_0x275bf3)['join'](',\x20');_0x2bb7a2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1edbd8)});}return _0x2bb7a2;}['_handleCustomCallbackDescription'](_0x30712d){for(const _0x31e756 of this['_customCallbacks']){const _0x9aeac3=_0x31e756(_0x30712d);if(_0x9aeac3&&'type'in _0x9aeac3)return _0x9aeac3;}}['_handleAttributeSuggestionDescription'](_0x3f32be,_0x4cabdc){const _0x3161c2=_0x4cabdc['data'],_0x583303=void 0x0===_0x3161c2['newValue']?'removeFormat':'addFormat';_0x3f32be['push']({'type':_0x583303,'key':_0x3161c2['key']});}['_handleRenameSuggestionDescription'](_0x2bfa8b,_0x13f574){_0x2bfa8b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x13f574['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2bcaae,_0x58bd0e,_0xaf0ee5){if(this['_addDescriptionItems'](_0x2bcaae,_0x58bd0e),_0xaf0ee5&&_0xaf0ee5['getFirstRange']()&&!_0x58bd0e['getFirstRange']()['end']['isEqual'](_0xaf0ee5['getFirstRange']()['start'])){const _0xffee5=_0x2bcaae[_0x2bcaae['length']-0x1],_0x29431a='insertion'==_0x58bd0e['type']?'add':'remove';_0xffee5&&'text'==_0xffee5['type']&&(_0xffee5[_0x29431a]+='\x0a');}}}class U extends _0x5d6089{['afterInit'](){const _0x52caef=this['editor'],_0x53c542=_0x52caef['plugins']['get']('TrackChangesEditing');_0x52caef['commands']['get']('showAIAssistant')&&_0x53c542['enableCommand']('showAIAssistant');}}class V extends _0x5d6089{['afterInit'](){const _0x15d4b3=this['editor'],_0x3b4561=_0x15d4b3['locale'];if(!_0x15d4b3['plugins']['has']('AlignmentEditing'))return;const _0x581e61=_0x15d4b3['plugins']['get']('TrackChangesEditing');_0x581e61['enableDefaultAttributesIntegration']('alignment'),_0x581e61['registerBlockAttribute']('alignment'),_0x581e61['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b4561,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30e694=this['editor'],_0x2a9d22=_0x30e694['locale'];_0x30e694['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xe82e0e=>{if('formatBlock'!=_0xe82e0e['type'])return;const {data:_0x25b680}=_0xe82e0e;if(_0x25b680&&'alignment'==_0x25b680['commandName']){const _0x6505a2=_0x25b680['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x2a9d22,'*Format:*\x20%0',function(_0x100c63){switch(_0x100c63){case'left':return o(_0x2a9d22,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x2a9d22,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x2a9d22,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x2a9d22,'FORMAT_JUSTIFY_TEXT');}}(_0x6505a2))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x5d6089{['afterInit'](){const _0xa7c9fb=this['editor'],_0x52b519=_0xa7c9fb['plugins']['get']('TrackChangesEditing'),_0xa452db=_0xa7c9fb['locale'];for(const _0x5dfbd3 of ti){if(!_0xa7c9fb['plugins']['has'](_0x5dfbd3))continue;const _0x1d2f16=_0x5dfbd3['slice'](0x0,-0x7)['toLowerCase'](),_0x395054='FORMAT_'+_0x1d2f16['toUpperCase']();_0x52b519['enableDefaultAttributesIntegration'](_0x1d2f16),_0x52b519['registerInlineAttribute'](_0x1d2f16),_0x52b519['descriptionFactory']['registerAttributeLabel'](_0x1d2f16,o(_0xa452db,_0x395054));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x140575=this['editor'],_0x7474e4=_0x140575['locale'],_0x43fd12=_0x140575['plugins']['get']('TrackChangesEditing');function _0x5e4bef(_0x4716c9,_0x1bf385){_0x43fd12['descriptionFactory']['registerDescriptionCallback'](_0x58e5f5=>{if('formatInline'!=_0x58e5f5['type'])return;const {data:_0x1a1588}=_0x58e5f5;return _0x1a1588&&_0x1a1588['commandName']===_0x4716c9?_0x1a1588['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x7474e4,'*Format:*\x20%0',_0x1bf385)}:{'type':'format','content':o(_0x7474e4,'*Remove\x20format:*\x20%0',_0x1bf385)}:void 0x0;});}_0x5e4bef('bold',o(_0x7474e4,'FORMAT_BOLD')),_0x5e4bef('italic',o(_0x7474e4,'FORMAT_ITALIC')),_0x5e4bef('underline',o(_0x7474e4,'FORMAT_UNDERLINE')),_0x5e4bef('code',o(_0x7474e4,'FORMAT_CODE')),_0x5e4bef('strikethrough',o(_0x7474e4,'FORMAT_STRIKETHROUGH')),_0x5e4bef('subscript',o(_0x7474e4,'FORMAT_SUBSCRIPT')),_0x5e4bef('superscript',o(_0x7474e4,'FORMAT_SUPERSCRIPT'));}}class F extends _0x5d6089{['afterInit'](){const _0x4527e1=this['editor'],_0x4038f8=_0x4527e1['locale'];if(!_0x4527e1['plugins']['has']('BlockQuoteEditing'))return;const _0x2fc4c4=_0x4527e1['plugins']['get']('TrackChangesEditing'),_0x58d0eb=this['editor']['commands']['get']('blockQuote');_0x2fc4c4['enableCommand']('blockQuote',(_0x39b59b,_0x555236={})=>{const _0x28b3c1=this['editor']['model']['document']['selection'],_0x47dff9=_0x555236&&void 0x0!==_0x555236['forceValue']?_0x555236['forceValue']:!_0x58d0eb['value'];let _0x92928b=[];if(_0x47dff9){const _0x4108ef=Array['from'](_0x28b3c1['getSelectedBlocks']())['filter'](_0x5e652e=>oo(_0x5e652e)||function(_0xc36a58,_0x18d9c8){const _0x371e2b=_0x18d9c8['checkChild'](_0xc36a58['parent'],'blockQuote'),_0xbc0e60=_0x18d9c8['checkChild'](['$root','blockQuote'],_0xc36a58);return _0x371e2b&&_0xbc0e60;}(_0x5e652e,this['editor']['model']['schema']));_0x92928b=to(_0x4108ef,_0x4527e1['model']);}else{const _0x3e6ca2=Array['from'](_0x28b3c1['getSelectedBlocks']())['filter'](_0x42d52d=>oo(_0x42d52d));_0x92928b=to(_0x3e6ca2,_0x4527e1['model']);}_0x4527e1['model']['change'](()=>{for(const _0x1b023c of _0x92928b)_0x2fc4c4['markBlockFormat'](_0x1b023c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x47dff9}]});});}),_0x2fc4c4['descriptionFactory']['registerDescriptionCallback'](_0x5841fe=>{const {data:_0x45b451}=_0x5841fe;if(_0x45b451&&'blockQuote'==_0x45b451['commandName']){const _0x2bfc5f=o(_0x4038f8,'ELEMENT_BLOCK_QUOTE');return _0x45b451['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4038f8,'*Set\x20format:*\x20%0',_0x2bfc5f)}:{'type':'format','content':o(_0x4038f8,'*Remove\x20format:*\x20%0',_0x2bfc5f)};}});}}function oo(_0x7f0c33){return'blockQuote'==_0x7f0c33['parent']['name'];}class L extends _0x5d6089{['afterInit'](){const _0x1db357=this['editor'],_0xc3cedb=_0x1db357['locale'],_0x3e69bc=_0x1db357['plugins']['get']('TrackChangesEditing');_0x1db357['plugins']['has']('BookmarkEditing')&&(_0x3e69bc['enableCommand']('insertBookmark'),_0x3e69bc['enableDefaultAttributesIntegration']('updateBookmark'),_0x3e69bc['registerBlockAttribute']('bookmarkId'),_0x3e69bc['descriptionFactory']['registerDescriptionCallback'](_0x2a836d=>{if('insertion'!=_0x2a836d['type']&&'deletion'!=_0x2a836d['type']&&'attribute'!=_0x2a836d['type'])return;const _0x4d697d=_0x2a836d['getContainedElement']();if(null==_0x4d697d)return;if(!_0x4d697d['is']('element','bookmark'))return;const _0x8c34c2=_0x4d697d['getAttribute']('bookmarkId');if('insertion'==_0x2a836d['type'])return{'type':'insertion','content':o(_0xc3cedb,'*Insert:*\x20%0','\x22'+_0x8c34c2+'\x22\x20'+o(_0xc3cedb,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2a836d['type'])return{'type':'deletion','content':o(_0xc3cedb,'*Remove:*\x20%0','\x22'+_0x8c34c2+'\x22\x20'+o(_0xc3cedb,'ELEMENT_BOOKMARK'))};const {data:_0x30991f}=_0x2a836d;if(!_0x30991f||'bookmarkId'!=_0x30991f['key'])return;return{'type':'format','content':o(_0xc3cedb,'*Set\x20bookmark:*\x20%0','\x22'+_0x30991f['newValue']+'\x22')};}));}}class J extends _0x5d6089{['afterInit'](){const _0x2bcc1e=this['editor'];_0x2bcc1e['plugins']['has']('CaseChange')&&(_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2bcc1e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x5d6089{['afterInit'](){const _0x5b2711=this['editor'];_0x5b2711['commands']['get']('ckbox')&&_0x5b2711['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x5d6089{['afterInit'](){const _0x1e102e=this['editor'];if(!_0x1e102e['plugins']['has']('CodeBlock'))return;const _0x35a41f=_0x1e102e['plugins']['get']('TrackChangesEditing'),_0x3ea388=_0x1e102e['locale'],_0x3c235c=_0x1e102e['config']['get']('codeBlock')['languages'],_0x40862f=_0x1e102e['commands']['get']('codeBlock');_0x35a41f['enableCommand']('indentCodeBlock'),_0x35a41f['enableCommand']('outdentCodeBlock'),_0x35a41f['enableCommand']('codeBlock',(_0x413be4,_0x2ea078={})=>{const _0x38c4ec=_0x1e102e['model'],_0x45a7a1=_0x1e102e['model']['document']['selection'],_0x1a6737=_0x2ea078&&void 0x0!==_0x2ea078['forceValue']?_0x2ea078['forceValue']:!_0x40862f['value'];let _0x33d458;_0x2ea078['language']||(_0x2ea078['language']=_0x3c235c[0x0]['language']),_0x33d458=_0x1a6737?Array['from'](_0x45a7a1['getSelectedBlocks']())['filter'](_0x36f899=>eo(_0x36f899)||function(_0x415ed4,_0x5a22a9){if(_0x415ed4['is']('rootElement')||_0x5a22a9['isLimit'](_0x415ed4))return!0x1;return _0x5a22a9['checkChild'](_0x415ed4['parent'],'codeBlock');}(_0x36f899,_0x38c4ec['schema'])):Array['from'](_0x45a7a1['getSelectedBlocks']())['filter'](_0x5bead8=>eo(_0x5bead8));const _0x1e909b=to(_0x33d458,_0x38c4ec);_0x38c4ec['change'](()=>{for(const _0x2aa387 of _0x1e909b)_0x35a41f['markBlockFormat'](_0x2aa387,{'commandName':'codeBlock','commandParams':[{..._0x2ea078,'forceValue':_0x1a6737}],'formatGroupId':'blockName'});});}),(_0x35a41f['descriptionFactory']['registerElementLabel']('codeBlock',_0x47401c=>o(_0x3ea388,'ELEMENT_CODE_BLOCK',_0x47401c)),_0x35a41f['descriptionFactory']['registerDescriptionCallback'](_0x57233d=>{if('formatBlock'!=_0x57233d['type'])return;const _0x5a28b7=_0x3ea388['t'],{data:_0xb99cfa}=_0x57233d;if(!_0xb99cfa||'codeBlock'!=_0xb99cfa['commandName'])return;const _0xb264fa=_0xb99cfa['commandParams'][0x0]['language'],_0xe2be22=_0x5a28b7(_0x3c235c['find'](_0x94b10c=>_0x94b10c['language']===_0xb264fa)['label'])['toLowerCase']();return _0xb99cfa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3ea388,'*Set\x20format:*\x20%0',o(_0x3ea388,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe2be22+')')}:{'type':'format','content':o(_0x3ea388,'*Remove\x20format:*\x20%0',o(_0x3ea388,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x40b3a6){return'codeBlock'==_0x40b3a6['name'];}class z extends _0x5d6089{['afterInit'](){const _0x324b8a=this['editor'];if(!_0x324b8a['plugins']['has']('CommentsEditing'))return;_0x324b8a['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xe208e4,_0x5c2d23,_0x354a48){const _0x128d56=[];for(const _0x1750c2 of _0x5c2d23['getItems']())_0x1750c2['hasAttribute'](_0xe208e4)&&_0x128d56['push'](_0x354a48['createRangeOn'](_0x1750c2));return _0x128d56;}function De(_0x3907c9,_0x491a57,{showActiveMarker:_0x13bb78=!0x0}={}){const _0x567bf9=_0x3907c9['plugins']['get']('TrackChangesEditing');return(_0x41d266,_0x3a04af,_0x5c95fb)=>{if(!_0x5c95fb['consumable']['test'](_0x3a04af['markerRange'],_0x41d266['name']))return;const _0x17911b=_0x3a04af['markerRange']['getWalker'](),_0x4e7994=_0x3a04af['markerRange']['start'],_0x30e72f=_0x3907c9['model']['schema'];let _0x23b235=null,_0x50813c=null,_0x1ee558=!0x1,_0x1ffbdd=!0x1;for(const _0x5b767c of _0x17911b){const _0x205851=_0x5b767c['item'];_0x1ee558=_0x1ee558||_0x30e72f['isContent'](_0x205851);const _0xcf300d=_0x5c95fb['mapper']['toViewElement'](_0x205851);if(_0xcf300d&&_0xcf300d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b767c['type']&&(_0x30e72f['isBlock'](_0x205851)&&!_0x30e72f['isLimit'](_0x205851)&&(_0x205851['nextSibling']||_0x4e7994['isAtEnd']?_0x23b235&&_0x23b235['parent']==_0x205851||(_0x23b235=_0x205851,_0x11c556(_0x5b767c['previousPosition']),_0x1ffbdd=!0x0):_0x50813c=_0x50813c||_0x5b767c['previousPosition']));}function _0x11c556(_0x33893e){const {authorId:_0x214a80}=_0x567bf9['_splitMarkerName'](_0x3a04af['markerName']),_0x5de874=_0x5c95fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x491a57,'data-author-id':_0x214a80}),_0x5d7518=_0x5c95fb['mapper']['toViewPosition'](_0x33893e);_0x13bb78&&_0x567bf9['activeMarkers']['includes'](_0x3a04af['markerName'])&&_0x5c95fb['writer']['addClass']('ck-suggestion-marker--active',_0x5de874),_0x5c95fb['writer']['insert'](_0x5d7518,_0x5de874),_0x5c95fb['mapper']['bindElementToMarker'](_0x5de874,_0x3a04af['markerName']);}_0x1ee558||_0x1ffbdd||!_0x50813c||_0x11c556(_0x50813c);};}class K extends _0x5d6089{static get['requires'](){return[_0x460f75];}['init'](){const _0x58c93b=this['editor'],_0x58565b=_0x58c93b['plugins']['get']('TrackChangesEditing');_0x58565b['enableCommand']('delete');const _0x36189e=_0x58c93b['commands']['get']('deleteForward');_0x58565b['enableCommand']('deleteForward',(_0x26576f,_0x22abfe={})=>{const _0x24c0a3=_0x58c93b['model']['createSelection'](_0x58c93b['model']['document']['selection']);_0x24c0a3['isCollapsed']&&_0x58c93b['model']['modifySelection'](_0x24c0a3,{'direction':'forward','unit':_0x22abfe['unit']});const _0x16e2c6=_0x24c0a3['getFirstRange'](),_0x43da7d=_0x190639['fromRange'](_0x16e2c6);let _0x42b2fa;_0x26576f(_0x22abfe),_0x42b2fa='$graveyard'==_0x43da7d['root']['rootName']?_0x58c93b['model']['createRange'](_0x16e2c6['start']):_0x58c93b['model']['createRange'](_0x43da7d['start'],_0x43da7d['end']),_0x43da7d['detach'](),_0x58c93b['model']['enqueueChange'](_0x36189e['buffer']['batch'],_0x3c71ad=>{_0x36189e['buffer']['lock'](),_0x3c71ad['setSelection'](_0x3c71ad['createRange'](_0x42b2fa['end'])),_0x36189e['buffer']['unlock']();});}),_0x58c93b['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0x58c93b,'merge'),{'priority':'high'}),_0x58c93b['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4a4480,_0x5f2fd1,_0x26d5fa)=>{_0x26d5fa['options']['showSuggestionHighlights']&&De(_0x58c93b,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4a4480,_0x5f2fd1,_0x26d5fa);},{'priority':'high'}),_0x58c93b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x5d0252,_0x338b09,_0x2df0f1)=>{const _0x59270c=_0x2df0f1['mapper']['markerNameToElements'](_0x338b09['markerName']);if(_0x59270c){for(const _0x45b4b7 of _0x59270c)_0x45b4b7['is']('uiElement')&&(_0x2df0f1['mapper']['unbindElementFromMarkerName'](_0x45b4b7,_0x338b09['markerName']),_0x2df0f1['writer']['remove'](_0x45b4b7));}},{'priority':'high'});}}class W extends _0x5d6089{['afterInit'](){const _0x3ef549=this['editor'];if(!_0x3ef549['plugins']['has']('ListEditing'))return;const _0x77b8c2=_0x3ef549['locale'],_0x2847ff=_0x3ef549['plugins']['get']('TrackChangesEditing'),_0x1eacf9=_0x3ef549['plugins']['has']('TodoListEditing'),_0x534aa6=!!_0x3ef549['config']['get']('list.multiBlock');function _0x412bbb(_0x25f471){return{'type':'format','content':''+o(_0x77b8c2,'*Set\x20format:*\x20%0',_0x25f471)};}function _0x1f65df(_0x322e62){return{'type':'format','content':''+o(_0x77b8c2,'*Remove\x20format:*\x20%0',_0x322e62)};}_0x2847ff['enableDefaultAttributesIntegration']('numberedList'),_0x2847ff['enableDefaultAttributesIntegration']('bulletedList'),_0x2847ff['enableDefaultAttributesIntegration']('customNumberedList'),_0x2847ff['enableDefaultAttributesIntegration']('customBulletedList'),_0x2847ff['enableDefaultAttributesIntegration']('indentList'),_0x2847ff['enableDefaultAttributesIntegration']('outdentList'),_0x2847ff['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x2847ff['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2847ff['registerBlockAttribute']('listItemId'),_0x2847ff['registerBlockAttribute']('listType'),_0x2847ff['registerBlockAttribute']('listIndent'),_0x534aa6&&(_0x2847ff['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x2847ff['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1eacf9&&(_0x2847ff['enableDefaultAttributesIntegration']('todoList'),_0x2847ff['enableDefaultAttributesIntegration']('checkTodoList'),_0x2847ff['registerBlockAttribute']('todoListChecked'),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x12ab80=>{const {data:_0x185c5b}=_0x12ab80;if(_0x185c5b&&'todoListChecked'==_0x185c5b['key'])return{'type':'format','content':_0x185c5b['newValue']?o(_0x77b8c2,'*Check\x20item*'):o(_0x77b8c2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x3e5c01=>{if(_0x3e5c01['batch']['isUndo'])return!0x1;let _0x3505b7=!0x1;const _0x436152=_0x2847ff['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5bd4ec=>'todoListChecked'===_0x2847ff['_getAttributeKey'](_0x5bd4ec));for(const _0x3ae48d of _0x436152){'todo'!=_0x3ae48d['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x2847ff['_findSuggestions'](_0x3ae48d['getFirstRange'](),'attribute')['find'](_0x4b4b8b=>'listType'===_0x2847ff['_getAttributeKey'](_0x4b4b8b['suggestion']))||(_0x3e5c01['removeMarker'](_0x3ae48d['getFirstMarker']()),_0x3505b7=!0x0));}return _0x3505b7;})),_0x2847ff['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x77b8c2,'FORMAT_INDENT'));const _0x2cbda9={'type':'format','content':''};_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x4437b2=>{const {data:_0x5ca47e}=_0x4437b2;if(!_0x5ca47e||'listType'!=_0x5ca47e['key'])return;let _0x14ee2e=_0x4437b2['head'];for(;_0x14ee2e;){if(_0x14ee2e['data']&&(('listStyle'==_0x14ee2e['data']['key']||'listMarkerStyle'==_0x14ee2e['data']['key'])&&(_0x14ee2e['data']['newValue']&&'default'!=_0x14ee2e['data']['newValue']||'default'!=_0x14ee2e['data']['oldValue']&&!_0x5ca47e['newValue'])||!_0x534aa6&&_0x14ee2e['data']['key']==m))return _0x2cbda9;_0x14ee2e=_0x14ee2e['next'];}if(null==_0x5ca47e['newValue'])switch(_0x5ca47e['oldValue']){case'bulleted':return _0x1f65df(o(_0x77b8c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1f65df(o(_0x77b8c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1f65df(o(_0x77b8c2,'ELEMENT_TODO_LIST'));}switch(_0x5ca47e['newValue']){case'bulleted':return _0x412bbb(o(_0x77b8c2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x412bbb(o(_0x77b8c2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x412bbb(o(_0x77b8c2,'ELEMENT_TODO_LIST'));}}),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x260085=>{const {data:_0xf965b4}=_0x260085;if(_0xf965b4&&'listIndent'==_0xf965b4['key'])return null==_0xf965b4['newValue']||null==_0xf965b4['oldValue']&&0x0==_0xf965b4['newValue']?_0x2cbda9:void 0x0;}),_0x2847ff['descriptionFactory']['registerDescriptionCallback'](_0x3f769a=>{if('attribute'!=_0x3f769a['type'])return;const {data:_0x497a95}=_0x3f769a;if(!_0x497a95||'listItemId'!=_0x497a95['key'])return;const _0xd67baf=Te(_0x3f769a);return'newValue'==_0xd67baf?{'type':'format','content':o(_0x77b8c2,'*Merge:*\x20list\x20item')}:'oldValue'==_0xd67baf?{'type':'format','content':o(_0x77b8c2,'*Split:*\x20list\x20item')}:_0x2cbda9;}),_0x3ef549['model']['document']['registerPostFixer'](_0x15539d=>this['listItemIdFixer'](_0x15539d)),_0x3ef549['model']['document']['registerPostFixer'](_0x1c500d=>this['noTrackChangesFixer'](_0x1c500d)),_0x3ef549['model']['document']['on']('change:data',(_0xd86400,_0x3e48f5)=>{if(_0x3e48f5['isUndo']||!_0x3e48f5['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1099f8){if(_0x1099f8['batch']['isUndo']||!_0x1099f8['batch']['isLocal'])return!0x1;let _0x400011=!0x1;const _0x4f7f96=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x242522=>_0x242522['data']&&'listItemId'==_0x242522['data']['key'])['filter'](_0x25c06e=>_0x25c06e['data']['newValue']&&_0x25c06e['data']['oldValue']);for(const _0x30ef43 of _0x4f7f96)Te(_0x30ef43)||(_0x1099f8['removeMarker'](_0x30ef43['getFirstMarker']()),_0x400011=!0x0);return _0x400011;}['noTrackChangesFixer'](_0xaccbad){if(_0xaccbad['batch']['isUndo']||!_0xaccbad['batch']['isLocal'])return!0x1;const _0x488660=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x488660['trackChangesCommand']['value'])return!0x1;let _0x44d615=!0x1;const _0x4f4d09=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x13a557=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x17dd88=>'attribute'==_0x17dd88['type'])['filter'](_0x3e1a10=>_0x4f4d09['includes'](_0x3e1a10['attributeKey']));if(0x0==_0x13a557['length'])return _0x44d615;for(const _0x47ecda of _0x13a557){const _0x40af67=_0x488660['_findSuggestions'](_0x47ecda['range'],'attribute')['filter'](_0x749cb=>!_0x749cb['meta']['isNextTo'])['map'](_0x8c3092=>_0x8c3092['suggestion'])['filter'](_0xdbbc16=>{const _0x3a2564=_0x488660['_getAttributeKey'](_0xdbbc16);return _0x4f4d09['includes'](_0x3a2564);});if(_0x40af67['length']){for(const _0x570e16 of _0x40af67)_0xaccbad['removeMarker'](_0x570e16['getFirstMarker']());_0x44d615=!0x0;}}return _0x44d615;}['assureChains'](){const _0x3280fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d0a49=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x1599d6;const _0x3a7747=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2cf7b1=>{if(_0x2cf7b1['data']['oldRange']||!_0x2cf7b1['data']['newRange'])return null;if(!_0x2cf7b1['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x2712d9}=_0x3280fd['_splitMarkerName'](_0x2cf7b1['name']);if(!_0x3280fd['hasSuggestion'](_0x2712d9))return null;const _0x5d2cc6=_0x3280fd['getSuggestion'](_0x2712d9);return _0x5d0a49['includes'](_0x5d2cc6['data']['key']);})['map'](_0xfdf8f7=>{const {id:_0x1b3ceb}=_0x3280fd['_splitMarkerName'](_0xfdf8f7['name']),_0x6c6ef7=_0x3280fd['getSuggestion'](_0x1b3ceb);return _0x1599d6=_0x6c6ef7['attributes']['groupId'],_0x6c6ef7['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x3a7747['size'])return;const _0x8f8600=_0x3280fd['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x48843d=>'attribute'==_0x48843d['type']&&_0x48843d['data']&&_0x5d0a49['includes'](_0x48843d['data']['key'])&&_0x48843d['attributes']['groupId']!=_0x1599d6)['map'](_0x4691c4=>({'listItem':_0x4691c4['getFirstRange']()['start']['nodeAfter'],'groupId':_0x4691c4['attributes']['groupId']})),_0x4185a1=new Set();for(const {groupId:_0x3d7a37,listItem:_0x5e0ae8}of _0x8f8600)_0x3a7747['has'](_0x5e0ae8)&&_0x4185a1['add'](_0x3d7a37);for(const _0xebc304 of _0x3280fd['getSuggestions']())_0x4185a1['has'](_0xebc304['attributes']['groupId'])&&_0xebc304['setAttribute']('groupId',_0x1599d6);}['_supportLegacySuggestions'](){const _0x35ee8f=this['editor'],_0x2cdb85=_0x35ee8f['locale'],_0x333ae4=_0x35ee8f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x333ae4['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x7ec967,_0x8e4826){const _0xe4ee9b=[];for(let _0x2e19d9 of _0x7ec967)_0x2e19d9['start']['nodeAfter']===_0x2e19d9['end']['parent']&&(_0x2e19d9=_0x35ee8f['model']['createRange'](_0x35ee8f['model']['createPositionAt'](_0x2e19d9['start']['nodeAfter'],0x0))),_0xe4ee9b['push'](_0x2e19d9);_0x35ee8f['model']['change'](_0x387346=>{const _0x52f946=_0x35ee8f['model']['document']['selection'],_0x33ed07=Array['from'](_0x52f946['getRanges']())['map'](_0x9844db=>_0x190639['fromRange'](_0x9844db));_0x387346['setSelection'](_0xe4ee9b),_0x35ee8f['commands']['get'](_0x8e4826['commandName'])['refresh'](),_0x8e4826['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x35ee8f['execute'](_0x8e4826['commandName'],..._0x8e4826['commandParams']),_0x387346['setSelection'](_0x33ed07);for(const _0x361a39 of _0x33ed07)_0x361a39['detach']();});}),_0x333ae4['descriptionFactory']['registerElementLabel'](function(_0x28ac37){const _0x2a8315=!_0x35ee8f['model']['schema']['isObject'](_0x28ac37),_0x17879c=_0x28ac37['previousSibling'],_0x29bb37=_0x28ac37['nextSibling'],_0x107193=_0x28ac37['getAttribute']('listItemId'),_0x31ecb3=!_0x17879c||_0x17879c['getAttribute']('listItemId')!==_0x107193,_0x258115=!_0x29bb37||_0x29bb37['getAttribute']('listItemId')!==_0x107193;return _0x2a8315&&Boolean(_0x107193)&&_0x31ecb3&&_0x258115;},_0x545b89=>o(_0x2cdb85,'ELEMENT_LIST_ITEM',_0x545b89));}['_registerLegacyDescription'](){const _0x4948dc=this['editor'],_0x2c3e6a=_0x4948dc['locale'];function _0x5ae99b(_0x1bbfba){const _0x4963a4=_0x4948dc['commands']['get']('bulletedList')['value'],_0x3ff448=_0x4948dc['commands']['get']('numberedList')['value'];return'numberedList'===_0x1bbfba?_0x4963a4:_0x3ff448;}_0x4948dc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5e8059){if('formatBlock'!=_0x5e8059['type'])return;const {data:_0x4a456c}=_0x5e8059;if(!_0x4a456c)return;let _0x84b301,_0x2c59d1,_0x5e5527,_0x852c85;switch(_0x4a456c['commandName']){case'bulletedList':_0x5e5527=_0x4a456c['commandParams'][0x0]['forceValue'],_0x852c85=_0x5ae99b(_0x4a456c['commandName']),_0x84b301=_0x5e5527?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x852c85&&_0x4948dc['config']['get']('list.multiBlock')||(_0x84b301='*Change\x20to:*\x20%0'),_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e5527=_0x4a456c['commandParams'][0x0]['forceValue'],_0x852c85=_0x5ae99b(_0x4a456c['commandName']),_0x84b301=_0x5e5527?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x852c85&&_0x4948dc['config']['get']('list.multiBlock')||(_0x84b301='*Change\x20to:*\x20%0'),_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x84b301='*Indent:*\x20%0',_0x2c59d1={'type':'format','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x84b301=function(_0x42e600){const _0x321a78=_0x42e600['getFirstRange']();let _0x39e182=_0x321a78['start']['nodeAfter'];for(;_0x39e182&&_0x321a78['containsItem'](_0x39e182);){if(_0x39e182['getAttribute']('listIndent')>0x0)return!0x1;_0x39e182=_0x39e182['nextSibling'];}return!0x0;}(_0x5e8059)?o(_0x2c3e6a,'*Format:*\x20remove\x20from\x20%0',o(_0x2c3e6a,function(_0x4bffbb){return'ELEMENT_'+_0x4bffbb['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5e8059))):o(_0x2c3e6a,'*Outdent:*\x20%0',o(_0x2c3e6a,'ELEMENT_LIST_ITEM')),_0x2c59d1={'type':'format','content':_0x84b301};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4a456c['multipleBlocks']&&(_0x84b301='*Merge:*\x20%0',_0x2c59d1={'type':'deletion','content':o(_0x2c3e6a,_0x84b301,o(_0x2c3e6a,'ELEMENT_LIST_ITEM'))});}return _0x2c59d1;});}}function Te(_0x38c6f1){let _0x93c886=_0x38c6f1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x93c886;){const _0x593834=_0x93c886['getAttribute']('listItemId');if(!_0x593834)return!0x1;if(_0x593834==_0x38c6f1['data']['newValue'])return'newValue';if(_0x593834==_0x38c6f1['data']['oldValue'])return'oldValue';_0x93c886=_0x93c886['previousSibling'];}return!0x1;}class Se extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x207516=this['editor']['config']['get']('list.properties'),_0x474889=this['editor']['plugins']['get']('TrackChangesEditing');_0x207516['styles']&&(_0x474889['enableDefaultAttributesIntegration']('listStyle'),_0x474889['registerBlockAttribute']('listStyle')),_0x207516['reversed']&&(_0x474889['enableDefaultAttributesIntegration']('listReversed'),_0x474889['registerBlockAttribute']('listReversed')),_0x207516['startIndex']&&(_0x474889['enableDefaultAttributesIntegration']('listStart'),_0x474889['registerBlockAttribute']('listStart'));const _0x4cd6f8={'type':'format','content':''};_0x474889['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x35f7f8=this['editor']['locale'];_0x474889['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x35f7f8,'FORMAT_LIST_REVERSED')),_0x474889['descriptionFactory']['registerDescriptionCallback'](_0x2e4da3=>{const {data:_0xb548ed}=_0x2e4da3;if(_0xb548ed&&'listReversed'==_0xb548ed['key'])return null==_0xb548ed['newValue']||0x0==_0xb548ed['newValue']&&null==_0xb548ed['oldValue']?_0x4cd6f8:void 0x0;}),_0x474889['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x35f7f8,'FORMAT_LIST_START')),_0x474889['descriptionFactory']['registerDescriptionCallback'](_0x40a23f=>{const {data:_0x119142}=_0x40a23f;if(_0x119142&&'listStart'==_0x119142['key'])return null==_0x119142['newValue']||0x1==_0x119142['newValue']&&null==_0x119142['oldValue']?_0x4cd6f8:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x413c0e=>{if(_0x413c0e['batch']['isUndo'])return!0x1;let _0x4c2ecc=!0x1;const _0x7334d9=_0x474889['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2db5d3=>{const _0x4ba375=_0x474889['_getAttributeKey'](_0x2db5d3);return'listStart'==_0x4ba375||'listReversed'==_0x4ba375;});for(const _0x3e4a01 of _0x7334d9){const _0x386f30=_0x3e4a01['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x386f30||'customNumbered'==_0x386f30)continue;_0x474889['_findSuggestions'](_0x3e4a01['getFirstRange'](),'attribute')['find'](_0x3bf05b=>'listType'==_0x474889['_getAttributeKey'](_0x3bf05b['suggestion']))||(_0x413c0e['removeMarker'](_0x3e4a01['getFirstMarker']()),_0x4c2ecc=!0x0);}return _0x4c2ecc;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x49aaf1){const _0x176f5d=this['editor']['locale'],{data:_0x322405}=_0x49aaf1,_0x4c470a={'type':'format','content':''};if(!_0x322405||'listStyle'!=_0x322405['key'])return;if(!_0x322405['oldValue'])return'default'==_0x322405['newValue']?_0x4c470a:{'type':'format','content':''+o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['newValue'])))};if(!_0x322405['newValue']){if('default'==_0x322405['oldValue'])return _0x4c470a;let _0x3df8cd=_0x49aaf1['head'];for(;_0x3df8cd;){if(_0x3df8cd['data']&&'listType'==_0x3df8cd['data']['key']&&_0x3df8cd['data']['newValue'])return _0x4c470a;_0x3df8cd=_0x3df8cd['next'];}return{'type':'format','content':''+o(_0x176f5d,'*Remove\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['oldValue'])))};}if('default'!=_0x322405['newValue'])return{'type':'format','content':''+o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,this['_getTranslationKeyForListStyle'](_0x322405['newValue'])))};let _0x498216=_0x49aaf1['head'];for(;_0x498216;){if(_0x498216['data']&&'listType'==_0x498216['data']['key']&&_0x498216['data']['newValue']&&_0x498216['data']['oldValue'])return _0x4c470a;_0x498216=_0x498216['next'];}return{'type':'format','content':o(_0x176f5d,'*Set\x20format:*\x20%0',o(_0x176f5d,'ELEMENT_'+_0x49aaf1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x25858d=this['editor'],_0xa55f30=_0x25858d['locale'];_0x25858d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x91e8fd=>{if('formatBlock'!=_0x91e8fd['type'])return;const {data:_0x4863ec}=_0x91e8fd;if(!_0x4863ec)return;let _0xbde7b4,_0x527fc8;switch(_0x4863ec['commandName']){case'listStyle':_0xbde7b4='*Change\x20to:*\x20%0',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4,o(_0xa55f30,this['_getTranslationKeyForListStyle'](_0x4863ec['commandParams'][0x0]['type'])))};break;case'listReversed':_0xbde7b4=_0x4863ec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4)};break;case'listStart':_0xbde7b4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x527fc8={'type':'format','content':o(_0xa55f30,_0xbde7b4,_0x4863ec['commandParams'][0x0]['startIndex'])};}return _0x527fc8;});}['_getTranslationKeyForListStyle'](_0x4007dc){return'ELEMENT_'+function(_0x1b1fb2){if(_e['includes'](_0x1b1fb2))return'bulleted';if(Re['includes'](_0x1b1fb2))return'numbered';return null;}(_0x4007dc)['toUpperCase']()+'_LIST_'+_0x4007dc['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x5d6089{static get['requires'](){return[_0x2cc9cd];}['init'](){const _0x20a967=this['editor'],_0x4bbe52=_0x20a967['plugins']['get']('TrackChangesEditing'),_0x4d6db0=_0x20a967['commands']['get']('enter');_0x4bbe52['enableCommand']('enter',()=>{_0x20a967['model']['change'](_0x301c6c=>{const _0x3548a4=_0x20a967['model']['document']['selection'],_0x4841de=_0x3548a4['getFirstPosition'](),_0x4010a6=_0x190639['fromRange'](_0x3548a4['getFirstRange']());if(_0x4d6db0['enterBlock'](_0x301c6c)){const _0x1ae376=_0x20a967['model']['createPositionAt'](_0x4841de['parent']['nextSibling'],0x0),_0x596488=_0x301c6c['createRange'](_0x4841de,_0x1ae376);_0x4bbe52['markInsertion'](_0x596488);}else _0x301c6c['setSelection'](_0x301c6c['createRange'](_0x4010a6['end']));_0x4010a6['detach'](),_0x4d6db0['fire']('afterExecute',{'writer':_0x301c6c});});}),_0x20a967['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0x20a967,'split'),{'priority':'high'}),_0x20a967['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x4993d1,_0x34322d,_0x19e0b3)=>{const _0x3eb037=_0x19e0b3['mapper']['markerNameToElements'](_0x34322d['markerName']);if(_0x3eb037){for(const _0x69b0ec of _0x3eb037)_0x69b0ec['hasClass']('ck-suggestion-marker-split')&&(_0x19e0b3['mapper']['unbindElementFromMarkerName'](_0x69b0ec,_0x34322d['markerName']),_0x19e0b3['writer']['remove'](_0x69b0ec));}},{'priority':'high'}),_0x20a967['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4718eb,_0x25fe7b,_0x562482)=>{_0x562482['options']['showSuggestionHighlights']&&De(_0x20a967,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x4718eb,_0x25fe7b,_0x562482);},{'priority':'high'});}}class Y extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x5cbadb=this['editor']['plugins']['get']('TrackChangesEditing');_0x5cbadb['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x5cbadb['enableCommand']('findNext'),_0x5cbadb['enableCommand']('findPrevious'),_0x5cbadb['enableCommand']('replace'),_0x5cbadb['enableCommand']('replaceAll');}['handleFindCommand'](_0x234b9c,_0x4f749c,_0x51b14a={}){const _0x529de8=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x234b9c(_0x22d1ee=>{let _0x4bcd84=('string'==typeof _0x4f749c?_0x529de8['findByTextCallback'](_0x4f749c,_0x51b14a):_0x4f749c)(_0x22d1ee);Array['isArray'](_0x4bcd84)&&(_0x4bcd84={'results':_0x4bcd84,'searchText':'string'==typeof _0x4f749c?_0x4f749c:''});const _0x4bbaf3=_0x4bcd84['results']['filter'](_0xa30801=>!0x1===this['_isInDeletionRange'](_0xa30801,_0x22d1ee['item']));return{..._0x4bcd84,'results':_0x4bbaf3};},_0x51b14a);}['_isInDeletionRange'](_0xe2a906,_0x2307aa){const _0x38dde8=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2307aa,_0xe2a906['start']),this['editor']['model']['createPositionAt'](_0x2307aa,_0xe2a906['end']));for(const _0x4d7ddb of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x38dde8['getIntersection'](_0x4d7ddb['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x5d6089{['afterInit'](){const _0x2e2d56=this['editor']['locale'],_0x3c5814=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xdf161f,commandName:_0x46ff9f}of ro)this['editor']['plugins']['has'](_0xdf161f)&&(_0x3c5814['enableDefaultAttributesIntegration'](_0x46ff9f),_0x3c5814['registerInlineAttribute'](_0x46ff9f));_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2e2d56,'FORMAT_FONT_SIZE')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2e2d56,'FORMAT_FONT_FAMILY')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2e2d56,'FORMAT_FONT_COLOR')),_0x3c5814['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2e2d56,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b246=this['editor'],_0x245925=_0x55b246['locale'];_0x55b246['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x21f3df=>{const _0x15e445=_0x245925['t'];if('formatInline'!=_0x21f3df['type'])return;const {data:_0x3b6683}=_0x21f3df;if(null!=_0x3b6683){if('fontSize'==_0x3b6683['commandName']){const _0x5b4197=_0x3b6683['commandParams'][0x0]['value'];if(_0x5b4197){const _0x18311c=_0x15e445(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x5078fd=>_0x5078fd['model']==_0x5b4197)['title'])['toLowerCase']();return{'type':'format','content':o(_0x245925,'*Set\x20font\x20size:*\x20%0',_0x18311c)};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3b6683['commandName']){const _0x4a2264=_0x3b6683['commandParams'][0x0]['value'];return _0x4a2264?{'type':'format','content':o(_0x245925,'*Set\x20font\x20family:*\x20%0',_0x4a2264)}:{'type':'format','content':o(_0x245925,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3b6683['commandName']){const _0x55094d=_0x3b6683['commandParams'][0x0]['value'];if(_0x55094d){const _0x5b9e1d=_0x4a36e9(this['editor']['config']['get']('fontColor.colors'))['find'](_0x440c86=>_0x440c86['model']==_0x55094d);let _0x557cf6=_0x55094d,_0x33e773='';return _0x5b9e1d&&(_0x557cf6=_0x5b9e1d['label'],_0x33e773=_0x15e445(_0x557cf6)['toLowerCase']()),{'type':'format','content':o(_0x245925,'*Set\x20font\x20color:*\x20%0',_0x33e773)['trim'](),'color':{'value':_0x55094d,'title':_0x33e773||_0x557cf6}};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3b6683['commandName']){const _0x5511ec=_0x3b6683['commandParams'][0x0]['value'];if(_0x5511ec){const _0xa82965=_0x4a36e9(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4af109=>_0x4af109['model']==_0x5511ec);let _0x56eb4d=_0x5511ec,_0x4e9c1e='';return _0xa82965&&(_0x56eb4d=_0xa82965['label'],_0x4e9c1e=_0x15e445(_0x56eb4d)['toLowerCase']()),{'type':'format','content':o(_0x245925,'*Set\x20font\x20background\x20color:*\x20%0',_0x4e9c1e)['trim'](),'color':{'value':_0x5511ec,'title':_0x4e9c1e||_0x56eb4d}};}return{'type':'format','content':o(_0x245925,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x5d6089{['afterInit'](){const _0x313131=this['editor'],_0x226500=_0x313131['plugins']['get']('TrackChangesEditing'),_0x4bdc46=_0x313131['commands']['get']('copyFormat'),_0x128586=_0x313131['commands']['get']('pasteFormat');_0x4bdc46&&_0x128586&&(_0x226500['enableDefaultAttributesIntegration']('pasteFormat'),_0x226500['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x5c4ce4=this['editor'],_0x522548=_0x5c4ce4['locale'];_0x5c4ce4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42f184=>{if('formatBlock'!=_0x42f184['type']&&'formatInline'!=_0x42f184['type'])return;const {data:_0x5cf7f2}=_0x42f184;if(_0x5cf7f2&&'pasteFormat'===_0x5cf7f2['commandName']){const _0x33d954=[],_0x10372e=_0x5cf7f2['commandParams'][0x0];for(const [_0x55b271,_0x3dd433]of Object['entries'](_0x10372e))_0x33d954['push'](so(_0x5c4ce4,_0x55b271,_0x3dd433));return _0x33d954['length']?{'type':'format','content':o(_0x522548,'*Set\x20format\x20to:*\x20%0',_0x33d954['join'](',\x20'))}:{'type':'format','content':o(_0x522548,'*Remove\x20all\x20formatting*')};}});}}function so(_0x47464b,_0xa2b85e,_0x113b47){const _0x154fd1=_0x47464b['locale']['t'],_0x56876d=_0xa2b85e['split'](/(?=[A-Z])/)['join']('\x20'),_0x3c3393=_0x154fd1(_0x56876d['charAt'](0x0)['toUpperCase']()+_0x56876d['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x113b47)return _0x3c3393;if('fontColor'===_0xa2b85e||'fontBackgroundColor'===_0xa2b85e){const _0x462c68=_0x4a36e9(_0x47464b['config']['get']('fontColor.colors'))['find'](_0x28db94=>_0x28db94['model']==_0x113b47);return _0x3c3393+'\x20('+(_0x462c68?_0x154fd1(_0x462c68['label'])['toLowerCase']():_0x113b47)+')';}if('fontSize'===_0xa2b85e&&isNaN(parseFloat(_0x113b47))){const _0x106828=_0x47464b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x47464b['config']['get']('fontSize.options'))['find'](_0x526bd5=>_0x526bd5['model']==_0x113b47);return _0x3c3393+'\x20('+(_0x106828?_0x154fd1(_0x106828['title'])['toLowerCase']():_0x113b47)+')';}return _0x3c3393+'\x20('+_0x113b47+')';}class nt extends _0x5d6089{['_headingOptions'];['afterInit'](){const _0x11ae2a=this['editor'];if(!_0x11ae2a['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x11ae2a['config']['get']('heading.options');const _0x84a2aa=_0x11ae2a['locale'],_0x203b38=_0x11ae2a['plugins']['get']('TrackChangesEditing');_0x203b38['enableDefaultAttributesIntegration']('heading');for(const _0x5f0dfc of this['_headingOptions'])'paragraph'!=_0x5f0dfc['model']&&_0x203b38['descriptionFactory']['registerElementLabel'](_0x5f0dfc['model'],_0x2d7ccf=>{const _0x670421=this['_getHeadingLevel'](_0x5f0dfc['model']);return null!==_0x670421?_0x57ea35(_0x2d7ccf,_0x670421):_0x20d608(_0x2d7ccf,_0x5f0dfc['title']);});function _0x57ea35(_0x2cc552,_0x394bc7){return o(_0x84a2aa,'ELEMENT_HEADING',[_0x2cc552,_0x394bc7]);}function _0x20d608(_0x2ea736,_0x497940){return o(_0x84a2aa,'ELEMENT_HEADING_CUSTOM',[_0x2ea736,_0x497940]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b8da5=this['editor'],_0x26f25e=_0x7b8da5['locale'];function _0x3d5759(_0xc0e462,_0x35dd8f){return o(_0x26f25e,'ELEMENT_HEADING_CUSTOM',[_0xc0e462,_0x35dd8f]);}_0x7b8da5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x54517f=>{if('formatBlock'!=_0x54517f['type'])return;const {data:_0x55c9d}=_0x54517f;if(_0x55c9d&&'heading'==_0x55c9d['commandName']){const _0x264396=_0x55c9d['commandParams'][0x0]['value'],_0x5a96c6=this['_getHeadingLevel'](_0x264396);if(null!==_0x5a96c6)return{'type':'format','content':o(_0x26f25e,'*Change\x20to:*\x20%0',(_0x424eb6=0x1,_0x57a692=_0x5a96c6,o(_0x26f25e,'ELEMENT_HEADING',[_0x424eb6,_0x57a692])))};const _0x6f7918=this['_headingOptions']['find'](_0x31a3c6=>_0x31a3c6['model']===_0x264396)['title'];return{'type':'format','content':o(_0x26f25e,'*Change\x20to:*\x20%0',_0x3d5759(0x1,_0x6f7918))};}var _0x424eb6,_0x57a692;});}['_getHeadingLevel'](_0x62d711){const _0x367cb0=_0x62d711['match'](/^heading(\d+)/);if(_0x367cb0)return _0x367cb0[0x1];const _0x5d3323=this['_headingOptions']?.['find'](_0x14f977=>_0x14f977['model']==_0x62d711);if(_0x5d3323&&_0x5d3323['view']){const _0x7e74c8=_0x5d3323['view'],_0x4b0907=(_0x7e74c8['name']??_0x7e74c8)['match'](/^h(\d+)/);if(_0x4b0907)return _0x4b0907[0x1];}return null;}}class it extends _0x5d6089{['afterInit'](){const _0x3bcbfe=this['editor'];if(!_0x3bcbfe['plugins']['has']('HighlightEditing'))return;const _0x14589f=_0x3bcbfe['plugins']['get']('TrackChangesEditing'),_0x218b7e=_0x3bcbfe['locale'];_0x14589f['enableDefaultAttributesIntegration']('highlight'),_0x14589f['registerInlineAttribute']('highlight'),_0x14589f['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x218b7e,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53efcd=this['editor'],_0xaaa38a=_0x53efcd['locale'];_0x53efcd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2bb69a=>{if('formatInline'!=_0x2bb69a['type'])return;const {data:_0x3d1f67}=_0x2bb69a;if(_0x3d1f67&&'highlight'==_0x3d1f67['commandName']){const _0x248a7b=_0xaaa38a['t'],_0x4c2b22=_0x3d1f67['commandParams'][0x0]['value'];if(_0x4c2b22){const _0x10aba2=_0x53efcd['config']['get']('highlight.options')['find'](_0x4f3b40=>_0x4f3b40['model']==_0x4c2b22),_0x4e0182=_0x248a7b(_0x10aba2['title'])['toLowerCase']();return{'type':'format','content':o(_0xaaa38a,'*Set\x20highlight:*\x20%0',_0x4e0182),'color':{'value':_0x10aba2['color'],'title':_0x10aba2['title']}};}return{'type':'format','content':o(_0xaaa38a,'*Remove\x20highlight*',o(_0xaaa38a,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x5d6089{['afterInit'](){const _0x28280a=this['editor'];if(!_0x28280a['plugins']['has']('HorizontalLineEditing'))return;_0x28280a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3cc56f=_0x28280a['plugins']['get']('TrackChangesEditing'),_0x247943=_0x28280a['locale'];_0x3cc56f['descriptionFactory']['registerElementLabel']('horizontalLine',_0x47e1ec=>o(_0x247943,'ELEMENT_HORIZONTAL_LINE',_0x47e1ec)),_0x28280a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x49a6e1,{writer:_0x29fc8f,options:_0x19a7d5})=>{if(!_0x19a7d5['showSuggestionHighlights'])return null;const _0x41b6e8=_0x29fc8f['createContainerElement']('div'),_0x14fdcf=_0x29fc8f['createEmptyElement']('hr');return _0x29fc8f['addClass']('ck-horizontal-line',_0x41b6e8),_0x29fc8f['insert'](_0x29fc8f['createPositionAt'](_0x41b6e8,0x0),_0x14fdcf),_0x41b6e8;},'converterPriority':'high'});}}class st extends _0x5d6089{['afterInit'](){const _0x2b4f4c=this['editor'];if(!_0x2b4f4c['plugins']['has']('HtmlEmbed'))return;const _0x29c97a=_0x2b4f4c['plugins']['get']('TrackChangesEditing'),_0x6aa879=_0x2b4f4c['locale'];_0x29c97a['descriptionFactory']['registerElementLabel']('rawHtml',_0xe9151=>o(_0x6aa879,'ELEMENT_HTML_EMBED',_0xe9151)),_0x29c97a['enableDefaultAttributesIntegration']('htmlEmbed'),_0x29c97a['registerBlockAttribute']('value'),_0x29c97a['descriptionFactory']['registerDescriptionCallback'](_0x43916c=>{if('attribute'!=_0x43916c['type'])return;const {data:_0x51a258}=_0x43916c;if(_0x51a258&&'value'==_0x51a258['key']&&_0x43916c['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x36dccc=o(_0x6aa879,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x6aa879,'*Change\x20%0\x20content*',_0x36dccc)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27851f=this['editor'],_0x37a609=_0x27851f['locale'];_0x27851f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5917e7=>{if('formatBlock'!=_0x5917e7['type'])return;const {data:_0x559e27}=_0x5917e7;if(_0x559e27&&'htmlEmbed'==_0x559e27['commandName']){const _0x1d695b=o(_0x37a609,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x37a609,'*Change\x20%0\x20content*',_0x1d695b)};}});}}class ot extends _0x5d6089{['afterInit'](){const _0x4e64d5=this['editor'];if(!_0x4e64d5['plugins']['has']('ImageEditing'))return;const _0xb8f254=_0x4e64d5['plugins']['get']('TrackChangesEditing'),_0x2e0534=_0x4e64d5['plugins']['get']('ImageUtils'),_0x117e27=_0x4e64d5['locale'];_0xb8f254['enableCommand']('insertImage'),_0xb8f254['descriptionFactory']['registerElementLabel']('imageBlock',_0x3439de=>o(_0x117e27,'ELEMENT_IMAGE',_0x3439de)),_0xb8f254['descriptionFactory']['registerElementLabel']('imageInline',_0x2cdff0=>o(_0x117e27,'ELEMENT_INLINE_IMAGE',_0x2cdff0)),_0xb8f254['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x117e27,'ELEMENT_CAPTION')),_0x4e64d5['plugins']['has']('ImageUploadEditing')&&_0xb8f254['enableCommand']('uploadImage'),_0x4e64d5['plugins']['has']('ImageBlockEditing')&&_0x4e64d5['plugins']['has']('ImageInlineEditing')&&(_0xb8f254['enableCommand']('imageTypeInline',(_0x3f70f9,_0x3862a1)=>{const _0x5d6f73=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']);_0x4e64d5['model']['change'](()=>{_0xb8f254['markBlockFormat'](_0x5d6f73,{'commandName':'imageTypeInline','commandParams':[_0x3862a1]},[],'convertBlockImageToInline');});}),_0xb8f254['enableCommand']('imageTypeBlock',(_0x40ac18,_0x183883)=>{_0x4e64d5['model']['change'](_0x213e51=>{let _0x1990c4=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5635ee=_0x213e51['createRangeOn'](_0x1990c4);const _0x56c9b4=_0x1f9cd0['fromPosition'](_0x5635ee['start'],'toPrevious'),_0x40ba70=_0x1f9cd0['fromPosition'](_0x5635ee['end'],'toNext');_0xb8f254['forceDefaultExecution'](()=>_0x40ac18(_0x183883)),_0x1990c4=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5635ee=_0x213e51['createRangeOn'](_0x1990c4);const _0x530be9=_0x213e51['createRange'](_0x56c9b4,_0x40ba70);_0x56c9b4['detach'](),_0x40ba70['detach'](),_0xb8f254['markBlockFormat'](_0x1990c4,{'commandName':'imageTypeInline','commandParams':[_0x183883]},[],'convertInlineImageToBlock'),_0x530be9['start']['isBefore'](_0x5635ee['start'])&&_0xb8f254['markInsertion'](_0x213e51['createRange'](_0x530be9['start'],_0x5635ee['start']),'convertInlineImageToBlock'),_0x5635ee['end']['isBefore'](_0x530be9['end'])&&_0xb8f254['markInsertion'](_0x213e51['createRange'](_0x5635ee['end'],_0x530be9['end']),'convertInlineImageToBlock');});}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0xb8f254['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x2db7ee])=>{const _0x42590=_0xb8f254['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x335883=_0x2db7ee['start'],_0x513240=_0x2db7ee['end'];const _0x3c0e38=_0x4e64d5['model']['schema']['getNearestSelectionRange'](_0x335883,'backward'),_0x469498=_0x4e64d5['model']['schema']['getNearestSelectionRange'](_0x513240,'forward');_0x3c0e38['isCollapsed']&&(_0x335883=_0x3c0e38['start']),_0x469498['isCollapsed']&&(_0x513240=_0x469498['end']),_0x42590([_0x4e64d5['model']['createRange'](_0x335883,_0x513240)]);}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x442a5c),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x442a5c)),_0x4e64d5['plugins']['has']('ImageCaptionEditing')&&(_0xb8f254['enableCommand']('toggleImageCaption',(_0x235085,_0x4fbebd)=>{const _0x3771eb=_0x4e64d5['plugins']['get']('ImageCaptionUtils');let _0x5156a5=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5957f2=_0x3771eb['getCaptionFromImageModelElement'](_0x5156a5);_0x4e64d5['model']['change'](()=>{if(_0x5957f2)return void _0xb8f254['markDeletion'](_0x4e64d5['model']['createRangeOn'](_0x5957f2));const _0x8c3804=_0x2e0534['isBlockImage'](_0x5156a5);_0x235085(_0x4fbebd),_0x5156a5=_0x2e0534['getClosestSelectedImageElement'](_0x4e64d5['model']['document']['selection']),_0x5957f2=_0x3771eb['getCaptionFromImageModelElement'](_0x5156a5),_0xb8f254['markInsertion'](_0x4e64d5['model']['createRangeOn'](_0x5957f2),_0x8c3804?null:'imageCaption');});}),_0xb8f254['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x442a5c));const _0x3c7607=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x31d7b4(_0x247da2,_0x20f046){const _0x257a7d=_0x3c7607['findIndex'](({type:_0x388e96,subType:_0x4f1b1e})=>_0x247da2['type']==_0x388e96&&_0x247da2['subType']==_0x4f1b1e),_0x2d8b7f=_0x3c7607['findIndex'](({type:_0x283cb9,subType:_0x4c1b9a})=>_0x20f046['type']==_0x283cb9&&_0x20f046['subType']==_0x4c1b9a);if(_0x257a7d<0x0||_0x2d8b7f<0x0)return!0x1;const _0x20bea0=_0x247da2['getFirstRange'](),_0x52d4f1=_0x20f046['getFirstRange']();if((0x0==_0x257a7d||0x1==_0x257a7d)&&0x2==_0x2d8b7f&&_0x20bea0['isIntersecting'](_0x52d4f1))return!0x0;if(0x2==_0x257a7d&&0x3==_0x2d8b7f){const _0x27e4d7=_0xb8f254['_findSuggestions'](_0x20bea0,'insertion')['filter'](({suggestion:_0x1b6522,meta:_0x42628a})=>_0x42628a['isOwn']&&'convertInlineImageToBlock'==_0x1b6522['subType']);if(_0x27e4d7['length']>0x1&&_0x52d4f1['end']['isEqual'](_0x20bea0['start']))return!0x0;if(0x1==_0x27e4d7['length']&&(_0x20bea0['start']['isEqual'](_0x52d4f1['end'])||_0x20bea0['end']['isEqual'](_0x52d4f1['start'])))return!0x0;}if(0x3==_0x257a7d&&0x3==_0x2d8b7f&&_0x20bea0['start']['isBefore'](_0x52d4f1['start'])){const _0x30a496=_0x20bea0['end']['nodeAfter'],_0xcf5fa2=_0x52d4f1['start']['nodeBefore'];return _0x2e0534['isBlockImage'](_0x30a496)&&_0x30a496===_0xcf5fa2;}return!0x1;}function _0x442a5c(_0x2b6661,_0x2459b3){return _0x31d7b4(_0x2b6661,_0x2459b3)?[_0x2b6661,_0x2459b3]:_0x31d7b4(_0x2459b3,_0x2b6661)?[_0x2459b3,_0x2b6661]:null;}_0x4e64d5['plugins']['has']('ImageResize')&&(_0xb8f254['enableDefaultAttributesIntegration']('resizeImage'),_0xb8f254['registerBlockAttribute']('resizedWidth'),_0xb8f254['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x117e27,'FORMAT_IMAGE_SIZE'))),_0x4e64d5['plugins']['has']('ImageTextAlternativeEditing')&&(_0xb8f254['enableDefaultAttributesIntegration']('imageTextAlternative'),_0xb8f254['registerBlockAttribute']('alt')),_0x4e64d5['plugins']['has']('PictureEditing')&&(_0xb8f254['registerBlockAttribute']('sources'),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x5704f2=>{if('attribute'!=_0x5704f2['type'])return;const {data:_0x23310b}=_0x5704f2;return _0x23310b&&'sources'==_0x23310b['key']?{'type':'format','content':''}:void 0x0;})),_0x4e64d5['plugins']['has']('ImageSizeAttributes')&&(_0xb8f254['registerBlockAttribute']('width'),_0xb8f254['registerBlockAttribute']('height'),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0xca71e6=>{if('attribute'!=_0xca71e6['type'])return;const {data:_0x5b2c89}=_0xca71e6;return!_0x5b2c89||'width'!=_0x5b2c89['key']&&'height'!=_0x5b2c89['key']?void 0x0:{'type':'format','content':''};})),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x5b3c24=>{if(!!_0x3c7607['find'](({type:_0x517e12,subType:_0x4508f2})=>_0x5b3c24['type']==_0x517e12&&_0x5b3c24['subType']==_0x4508f2))return _0x5b3c24['previous']?{}:void 0x0;}),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x25f750=>{if('insertion'==_0x25f750['type']||'deletion'==_0x25f750['type']){const _0x38da86=_0x25f750['getContainedElement']();if(_0x38da86&&_0x38da86['is']('element','caption'))return{'type':'insertion'==_0x25f750['type']?'addObject':'removeObject','element':_0x38da86,'quantity':0x1};}}),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x86c3f7=>'formatBlock'==_0x86c3f7['type']&&'convertInlineImageToBlock'==_0x86c3f7['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x86c3f7['type']&&'convertBlockImageToInline'==_0x86c3f7['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0xb8f254['descriptionFactory']['registerDescriptionCallback'](_0x316543=>{if('attribute'!=_0x316543['type'])return;const {data:_0x1a404e}=_0x316543;if(!_0x1a404e||'alt'!=_0x1a404e['key'])return;const _0x42a57b=_0x1a404e['newValue'];return _0x42a57b?{'type':'format','content':o(_0x117e27,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x42a57b+'\x22')}:{'type':'format','content':o(_0x117e27,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa1ae0a=this['editor'],_0x10cc33=_0xa1ae0a['locale'];_0xa1ae0a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x524316=>{if('formatBlock'!=_0x524316['type']&&'formatInline'!=_0x524316['type'])return;const {data:_0x44ece6}=_0x524316;if(_0x44ece6){if('imageTextAlternative'==_0x44ece6['commandName']){const _0x1d0d08=_0x44ece6['commandParams'][0x0]['newValue'];return _0x1d0d08?{'type':'format','content':o(_0x10cc33,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1d0d08+'\x22')}:{'type':'format','content':o(_0x10cc33,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x44ece6['commandName']){const _0x56a163=_0x44ece6['commandParams'][0x0]['width'];return _0x56a163?{'type':'format','content':o(_0x10cc33,'*Set\x20image\x20width:*\x20%0',_0x56a163)}:{'type':'format','content':o(_0x10cc33,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x290874=this['editor']['locale'],_0xf6f286=this['editor']['plugins']['get']('TrackChangesEditing');_0xf6f286['enableDefaultAttributesIntegration']('replaceImageSource'),_0xf6f286['registerBlockAttribute']('src'),_0xf6f286['descriptionFactory']['registerDescriptionCallback'](_0x4e5a0c=>{if('attribute'!=_0x4e5a0c['type'])return;const {data:_0x4e93c8}=_0x4e5a0c;return _0x4e93c8&&'src'==_0x4e93c8['key']?_0x4e93c8['newValue']&&_0x4e93c8['oldValue']?{'type':'format','content':o(_0x290874,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a5680=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a5680['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a5680['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a5680['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a5680['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x234c0d=this['editor'],_0x5f394e=_0x234c0d['locale'];_0x234c0d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x221a83=>{if('formatBlock'!=_0x221a83['type']&&'formatInline'!=_0x221a83['type'])return;const {data:_0x53d64a}=_0x221a83;if(!_0x53d64a||'replaceImageSource'!=_0x53d64a['commandName'])return;return{'type':'format','content':o(_0x5f394e,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x5d6089{['afterInit'](){const _0x18a95e=this['editor'];if(!_0x18a95e['plugins']['has']('ImageStyleEditing'))return;const _0x359a9f=_0x18a95e['plugins']['get']('TrackChangesEditing'),_0x4462ae=_0x18a95e['plugins']['get']('ImageUtils'),_0x194166={};_0x359a9f['enableCommand']('imageStyle',(_0x43f7c7,_0x2ec25e)=>{const _0x587163=_0x18a95e['plugins']['get']('Users')['me'],_0x3142d3=_0x18a95e['commands']['get']('imageStyle');let _0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),_0x19a2f5=_0x18a95e['model']['createRangeOn'](_0x454cf6),_0x447253=_0x3142d3['value'];if(_0x447253==_0x2ec25e['value'])return;const _0x25b70f={'commandName':'imageStyle','commandParams':[_0x2ec25e],'formatGroupId':_0x3e98cb()};_0x18a95e['model']['change'](()=>{if(_0x359a9f['getSuggestions']()['filter'](_0x134f61=>_0x134f61['isInContent']&&_0x587163==_0x134f61['author']&&('formatBlock'==_0x134f61['type']||'formatInline'==_0x134f61['type'])&&('imageStylePreApply'==_0x134f61['subType']||'imageStylePostApply'==_0x134f61['subType'])&&_0x134f61['getFirstRange']()['isEqual'](_0x19a2f5))['forEach'](_0x5a5832=>_0x359a9f['discardSuggestion'](_0x5a5832['head'])),_0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),_0x19a2f5=_0x18a95e['model']['createRangeOn'](_0x454cf6),_0x3142d3['refresh'](),_0x18a95e['commands']['get']('imageTypeInline')['refresh'](),_0x18a95e['commands']['get']('imageTypeBlock')['refresh'](),_0x447253=_0x3142d3['value'],_0x447253!=_0x2ec25e['value'])return _0x4462ae['isInlineImage'](_0x454cf6)&&_0x3142d3['shouldConvertImageType'](_0x2ec25e['value'],_0x454cf6)?(_0x43f7c7({..._0x2ec25e,'setImageSizes':!0x1}),_0x454cf6=_0x4462ae['getClosestSelectedImageElement'](_0x18a95e['model']['document']['selection']),void _0x359a9f['markBlockFormat'](_0x454cf6,{..._0x25b70f,'commandReversedParams':[{'value':_0x447253||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x4462ae['isBlockImage'](_0x454cf6)?_0x359a9f['markBlockFormat'](_0x454cf6,_0x25b70f,[],'imageStylePostApply'):_0x359a9f['markInlineFormat'](_0x19a2f5,_0x25b70f,'imageStylePostApply'));});});for(const _0x5cb682 of _0x18a95e['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x194166[_0x5cb682['name']]=_0x5cb682['title']['toLowerCase']();_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x36496d])=>{_0x4462ae['setImageNaturalSizeAttributes'](_0x36496d['getContainedElement']());}),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0xecb86,_0x244e67)=>{_0x359a9f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0xecb86,{'commandName':_0x244e67['commandName'],'commandParams':_0x244e67['commandReversedParams']});}),_0x359a9f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1cb0c1,_0x17d99c){if(_0xbbfd18(_0x1cb0c1,_0x17d99c))return[_0x1cb0c1,_0x17d99c];if(_0xbbfd18(_0x17d99c,_0x1cb0c1))return[_0x17d99c,_0x1cb0c1];return null;});const _0x5f0e69=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xbbfd18(_0x258316,_0xe8c5ea){const _0x336fba=_0x5f0e69['findIndex'](({type:_0x2a0f0f,subType:_0x17f002})=>_0x258316['type']==_0x2a0f0f&&_0x258316['subType']==_0x17f002),_0x34658e=_0x5f0e69['findIndex'](({type:_0x35692b,subType:_0x1a2498})=>_0xe8c5ea['type']==_0x35692b&&_0xe8c5ea['subType']==_0x1a2498);if(_0x336fba<0x0||_0x34658e<0x0)return!0x1;const _0x94cfcf=_0x258316['getFirstRange'](),_0x5473a6=_0xe8c5ea['getFirstRange']();if((0x0==_0x336fba||0x1==_0x336fba)&&0x2==_0x34658e&&_0x94cfcf['isIntersecting'](_0x5473a6))return!0x0;if(0x2==_0x336fba&&0x3==_0x34658e){const _0x3506a8=_0x359a9f['_findSuggestions'](_0x94cfcf,'insertion')['filter'](({suggestion:_0x16e33b,meta:_0x5bdab6})=>_0x5bdab6['isOwn']&&'convertInlineImageToBlock'==_0x16e33b['subType']);if(_0x3506a8['length']>0x1&&_0x5473a6['end']['isEqual'](_0x94cfcf['start']))return!0x0;if(0x1==_0x3506a8['length']&&(_0x94cfcf['start']['isEqual'](_0x5473a6['end'])||_0x94cfcf['end']['isEqual'](_0x5473a6['start'])))return!0x0;}if(0x3==_0x336fba&&0x3==_0x34658e&&_0x94cfcf['start']['isBefore'](_0x5473a6['start'])){const _0x4aed94=_0x94cfcf['end']['nodeAfter'],_0xf66a13=_0x5473a6['start']['nodeBefore'];return _0x4462ae['isBlockImage'](_0x4aed94)&&_0x4aed94===_0xf66a13;}return!0x1;}_0x18a95e['model']['document']['registerPostFixer'](()=>{let _0x4303b0=!0x1;const _0x452eee=Array['from'](_0x18a95e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5cc076,data:_0x51365d}of _0x452eee){const {group:_0x5177d4,type:_0x541565,subType:_0x566ea4,id:_0x4b8e1d}=_0x359a9f['_splitMarkerName'](_0x5cc076);if('suggestion'==_0x5177d4&&_0x359a9f['hasSuggestion'](_0x4b8e1d)){if('formatBlock'==_0x541565&&('imageStylePreApply'==_0x566ea4||'imageStylePostApply'==_0x566ea4)){const _0x48448b=_0x359a9f['getSuggestion'](_0x4b8e1d);if(_0x51365d['newRange']){const _0x166609=_0x48448b['getFirstRange']()['getContainedElement']();if(_0x4462ae['isBlockImage'](_0x166609))continue;_0x359a9f['discardSuggestion'](_0x48448b),_0x4303b0=!0x0;}}if('insertion'==_0x541565&&'imageCaption'==_0x566ea4&&!_0x51365d['newRange']){const _0x18f823=_0x359a9f['getSuggestion'](_0x4b8e1d);_0x18f823['next']&&_0x18f823['next']['isInContent']&&(_0x359a9f['discardSuggestion'](_0x18f823['next']),_0x4303b0=!0x0);}}}return _0x4303b0;}),this['_registerLegacyDescription'](_0x194166);}['_registerLegacyDescription'](_0x49d24d){const _0x670432=this['editor'],_0x23ffbd=_0x670432['locale'];_0x670432['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x189558=>{if('formatBlock'!=_0x189558['type']&&'formatInline'!=_0x189558['type'])return;const {data:_0x118efd}=_0x189558;if(!_0x118efd||'imageStyle'!=_0x118efd['commandName'])return;const _0x4b652a=_0x118efd['commandParams'][0x0]['value'];return _0x1bcfb1('side'===_0x4b652a?o(_0x23ffbd,'FORMAT_SIDE_IMAGE'):_0x49d24d[_0x4b652a]||_0x4b652a);function _0x1bcfb1(_0x2635e1){return{'type':'format','content':o(_0x23ffbd,'*Format:*\x20%0',_0x2635e1)};}});}}class ct extends _0x5d6089{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2c3ba6){super(_0x2c3ba6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x183079=this['editor'],_0x29e8e2=_0x183079['commands']['get']('importWord'),_0x32c4fa=_0x183079['commands']['get']('trackChanges');_0x29e8e2&&(_0x29e8e2['on']('execute',(_0x2b3da5,[,_0x1f9795])=>{this['_trackChangesValueDuringImport']=_0x32c4fa['value'],_0x1f9795['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29e8e2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29e8e2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x32c4fa['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x183079['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25a751,_0x3d7228){const {suggestions:_0x1d27fc}=_0x3d7228,_0x45c34d=this['editor']['commands']['get']('trackChanges'),_0x2da7af=_0x45c34d['value'];this['_trackChangesValueDuringImport']!==_0x2da7af&&(_0x45c34d['execute'](),this['_trackChangesExecuted']=!0x0),_0x1d27fc&&_0x1d27fc['forEach'](({id:_0x1118d8,type:_0x3aa07a,author:_0x308c2c,created_at:_0x4fbc5e})=>{const _0x4599c0={'id':_0x1118d8,'type':_0x3aa07a,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x308c2c,'createdAt':_0x4fbc5e?new Date(_0x4fbc5e):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4599c0);});}}class ut extends _0x5d6089{['afterInit'](){const _0x5761c4=this['editor'],_0x584d2f=_0x5761c4['plugins']['get']('TrackChangesEditing');if(_0x5761c4['plugins']['has']('IndentEditing')&&(_0x584d2f['enableCommand']('indent'),_0x584d2f['enableCommand']('outdent')),_0x5761c4['plugins']['has']('IndentBlock')){for(const _0x41cdf2 of['indentBlock','outdentBlock'])_0x584d2f['enableDefaultAttributesIntegration'](_0x41cdf2);}const _0x4a27f9=_0x5761c4['locale'];_0x584d2f['registerBlockAttribute']('blockIndent'),_0x584d2f['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4a27f9,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b688b=this['editor'],_0x3ed031=_0x3b688b['locale'],_0x3bb1df=_0x3b688b['plugins']['get']('TrackChangesEditing');_0x3bb1df['descriptionFactory']['registerDescriptionCallback'](_0x3350df=>{if('formatBlock'!=_0x3350df['type'])return;const {data:_0x546525}=_0x3350df;if(!_0x546525)return;if('indentBlock'!=_0x546525['commandName']&&'outdentBlock'!=_0x546525['commandName'])return;const _0x8c80b4=_0x3350df['getItems']()[0x0],_0x5f217d=_0x3bb1df['descriptionFactory']['getItemLabel'](_0x8c80b4);return'indentBlock'==_0x546525['commandName']?{'type':'format','content':o(_0x3ed031,'*Indent:*\x20%0',_0x5f217d)}:'outdentBlock'==_0x546525['commandName']?{'type':'format','content':o(_0x3ed031,'*Outdent:*\x20%0',_0x5f217d)}:void 0x0;});}}class ft extends _0x5d6089{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x5d6089{['afterInit'](){const _0x497f1e=this['editor'];if(!_0x497f1e['plugins']['has']('LinkEditing'))return;const _0x362ff6=_0x497f1e['plugins']['get']('TrackChangesEditing'),_0x10257c=_0x497f1e['commands']['get']('link');_0x362ff6['enableDefaultAttributesIntegration']('link'),_0x362ff6['enableDefaultAttributesIntegration']('unlink'),_0x362ff6['registerInlineAttribute']('linkHref');for(const _0x12921a of _0x10257c['manualDecorators'])_0x362ff6['registerInlineAttribute'](_0x12921a['id']),_0x362ff6['descriptionFactory']['registerAttributeLabel'](_0x12921a['id'],'link\x20('+_0x12921a['label']['toLowerCase']()+')');_0x362ff6['descriptionFactory']['registerDescriptionCallback'](_0x436d15=>{if('attribute'!=_0x436d15['type'])return;const {data:_0x6fb011}=_0x436d15;if(!_0x6fb011||'linkHref'!=_0x6fb011['key'])return;const _0x2c86d1=_0x6fb011['newValue'],_0x17e695=_0x497f1e['locale'];return{'type':'format','content':null==_0x2c86d1?o(_0x17e695,'*Remove\x20link*'):o(_0x17e695,'*Set\x20link:*\x20%0','\x22'+_0x2c86d1+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e352e=this['editor'],_0x471092=_0x4e352e['locale'];_0x4e352e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x57fe0b=>{if('formatInline'!=_0x57fe0b['type'])return;const {data:_0x3e6da3}=_0x57fe0b;if(_0x3e6da3){if('link'==_0x3e6da3['commandName']){const _0x3bd96a=_0x3e6da3['commandParams'][0x0];return{'type':'format','content':o(_0x471092,'*Set\x20link:*\x20%0','\x22'+_0x3bd96a+'\x22')};}return'unlink'==_0x3e6da3['commandName']?{'type':'format','content':o(_0x471092,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x5d6089{['afterInit'](){const _0x124bd1=this['editor'],_0x33d3eb=_0x124bd1['locale'];if(!_0x124bd1['plugins']['has']('LegacyListEditing'))return;const _0x1f9fdc=_0x124bd1['plugins']['get']('TrackChangesEditing'),_0x348ed2=_0x124bd1['plugins']['has']('LegacyTodoListEditing');function _0x520ccc(_0xdecdbd){return()=>{const _0xfaa40c=_0x124bd1['model']['document']['selection'],_0x2fe702=_0x124bd1['commands']['get'](_0xdecdbd);if(_0x2fe702['value'])return void _0x124bd1['execute']('paragraph',{});const _0x2ec874=_0xdecdbd['slice'](0x0,-0x4),_0x3833dc=function(_0x5cf6c4,_0x56c43a,_0x2e37f4){let _0x13f9f9=Array['from'](_0x5cf6c4)['filter'](_0x1687a9=>function(_0x4863c3,_0xb1f4e8){return _0xb1f4e8['checkChild'](_0x4863c3['parent'],'listItem')&&!_0xb1f4e8['isObject'](_0x4863c3);}(_0x1687a9,_0x2e37f4));_0x13f9f9=_0x13f9f9['filter'](_0xdede69=>!_0xdede69['is']('element','listItem')||_0xdede69['getAttribute']('listType')!=_0x56c43a);const _0x3fc328=new Set();for(const _0x226adc of _0x13f9f9)_0x226adc['is']('element','listItem')?_0x3fc328['add'](Le(_0x226adc)):_0x3fc328['add'](_0x226adc);return Array['from'](_0x3fc328);}(_0xfaa40c['getSelectedBlocks'](),_0x2ec874,_0x124bd1['model']['schema']);_0x124bd1['model']['change'](()=>{for(const _0x1dba3b of _0x3833dc)_0x1f9fdc['markBlockFormat'](_0x1dba3b,{'commandName':_0xdecdbd,'commandParams':[{'forceValue':!_0x2fe702['value']}],'formatGroupId':'blockName'},Ee(_0x1dba3b));});};}function _0x4f3ad7(_0x5d823b){return()=>{const _0x335a4e=function(_0x35733a){let _0x5ed222=Array['from'](_0x35733a);const _0x27ab71=_0x5ed222['findIndex'](_0x1c9205=>'listItem'!=_0x1c9205['name']);return _0x27ab71>-0x1&&(_0x5ed222=_0x5ed222['slice'](0x0,_0x27ab71)),_0x5ed222;}(_0x124bd1['model']['document']['selection']['getSelectedBlocks']()),_0x18431c=_0x124bd1['model']['createRange'](_0x124bd1['model']['createPositionAt'](_0x335a4e[0x0],'before'),_0x124bd1['model']['createPositionAt'](_0x335a4e[_0x335a4e['length']-0x1],'end'));_0x124bd1['model']['change'](()=>{_0x1f9fdc['markBlockFormat'](_0x18431c,{'commandName':_0x5d823b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2c2616){const _0x35f7a5=new Set();for(const _0xb48674 of _0x2c2616){let _0x435910=_0xb48674['nextSibling'];for(;_0x435910&&_0x435910['getAttribute']('listIndent')>_0xb48674['getAttribute']('listIndent');)_0x35f7a5['add'](_0x435910),_0x435910=_0x435910['nextSibling'];}return Array['from'](_0x35f7a5);}(_0x335a4e));});};}_0x1f9fdc['enableCommand']('numberedList',_0x520ccc('numberedList')),_0x1f9fdc['enableCommand']('bulletedList',_0x520ccc('bulletedList')),_0x348ed2&&_0x1f9fdc['enableCommand']('todoList',_0x520ccc('todoList')),_0x1f9fdc['enableCommand']('indentList',_0x4f3ad7('indentList')),_0x1f9fdc['enableCommand']('outdentList',_0x4f3ad7('outdentList')),_0x348ed2&&_0x1f9fdc['enableCommand']('checkTodoList',()=>{const _0x1c3edc=_0x124bd1['commands']['get']('checkTodoList'),_0x8150c3=Array['from'](_0x1c3edc['_selectedElements']);_0x8150c3['filter'](_0x40fba3=>_0x40fba3['getAttribute']('todoListChecked')!=_0x1c3edc['value']),_0x124bd1['model']['change'](()=>{for(const _0x4364f7 of _0x8150c3)_0x1f9fdc['markBlockFormat'](_0x4364f7,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x1c3edc['value']}]});});}),_0x1f9fdc['descriptionFactory']['registerElementLabel']('listItem',_0x31ecd6=>o(_0x33d3eb,'ELEMENT_LIST_ITEM',_0x31ecd6)),_0x1f9fdc['descriptionFactory']['registerDescriptionCallback'](_0x34583a=>{if('formatBlock'!=_0x34583a['type']&&'formatInline'!=_0x34583a['type'])return;const {data:_0x42dd60}=_0x34583a;if(_0x42dd60){if('numberedList'==_0x42dd60['commandName']||'bulletedList'==_0x42dd60['commandName']||'todoList'==_0x42dd60['commandName'])switch(_0x42dd60['commandName']['replace']('List','')){case'bulleted':return _0x17275a(o(_0x33d3eb,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x17275a(o(_0x33d3eb,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x17275a(o(_0x33d3eb,'ELEMENT_TODO_LIST'));}if('indentList'==_0x42dd60['commandName'])return{'type':'format','content':o(_0x33d3eb,'*Indent:*\x20%0',o(_0x33d3eb,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x42dd60['commandName'])return{'type':'format','content':o(_0x33d3eb,'*Outdent:*\x20%0',o(_0x33d3eb,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x42dd60['commandName'])return _0x42dd60['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x33d3eb,'*Check\x20item*')}:{'type':'format','content':o(_0x33d3eb,'*Uncheck\x20item*')};}function _0x17275a(_0x3e9601){return{'type':'format','content':o(_0x33d3eb,'*Change\x20to:*\x20%0',_0x3e9601)};}});}}function Le(_0x536981){const _0x33ecef=_0x536981['getAttribute']('listIndent');if(0x0==_0x33ecef)return _0x536981;let _0x1e4a0b=_0x536981;for(;_0x536981['previousSibling']&&_0x536981['previousSibling']['is']('element','listItem');){const _0x3c72e6=_0x536981['previousSibling']['getAttribute']('listIndent');if(_0x3c72e6==_0x33ecef)_0x1e4a0b=_0x536981['previousSibling'];else{if(_0x3c72e6<_0x33ecef)break;}_0x536981=_0x536981['previousSibling'];}return _0x1e4a0b;}function Ee(_0xd713e8){const _0x1f6b66=[];if(_0xd713e8['is']('element','listItem')&&_0xd713e8['getAttribute']('listIndent')>0x0){let _0x1cc8c2=_0xd713e8['nextSibling'];for(;_0x1cc8c2&&'listItem'==_0x1cc8c2['name']&&_0x1cc8c2['getAttribute']('listIndent')==_0xd713e8['getAttribute']('listIndent');)_0x1f6b66['push'](_0x1cc8c2),_0x1cc8c2=_0x1cc8c2['nextSibling'];}return _0x1f6b66;}class Q extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x16b255=this['editor']['config']['get']('list.properties'),_0x3386e4=this['editor']['plugins']['get']('TrackChangesEditing');_0x16b255['styles']&&_0x3386e4['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x16b255['reversed']&&_0x3386e4['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x16b255['startIndex']&&_0x3386e4['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3386e4['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x5ff958,_0x2a72bd={}){const _0x5bfacb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b34c9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5bfacb['markMultiRangeBlockFormat'](_0x2b34c9,{'commandName':'listStyle','commandParams':[{'type':_0x2a72bd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x15170e,_0x2da3e5={}){const _0x49548d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x47fd4a=this['_getSuggestionBlocks'](_0x3e13ef=>_0x3e13ef['is']('element','listItem')&&'numbered'===_0x3e13ef['getAttribute']('listType'));if(_0x47fd4a['length']<0x1)return;const _0x3e32e3=_0x47fd4a['map'](_0x240ec6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x240ec6,'before'),this['editor']['model']['createPositionAt'](_0x240ec6,0x0)));this['editor']['model']['change'](()=>{_0x49548d['markMultiRangeBlockFormat'](_0x3e32e3,{'commandName':'listReversed','commandParams':[{'reversed':_0x2da3e5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1b0df6,_0x5eb4df={}){const _0x28ee46=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5baf1d=this['_getSuggestionBlocks'](_0x217d25=>_0x217d25['is']('element','listItem')&&'numbered'===_0x217d25['getAttribute']('listType'));if(_0x5baf1d['length']<0x1)return;const _0x1d8b14=_0x5baf1d['map'](_0x5db837=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5db837,'before'),this['editor']['model']['createPositionAt'](_0x5db837,0x0)));this['editor']['model']['change'](()=>{_0x28ee46['markMultiRangeBlockFormat'](_0x1d8b14,{'commandName':'listStart','commandParams':[{'startIndex':_0x5eb4df['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4675be){if('formatBlock'!=_0x4675be['type']&&'formatInline'!=_0x4675be['type'])return;const _0x53cf9b=this['editor']['locale'],{data:_0x44e9db}=_0x4675be;if(!_0x44e9db)return;let _0x2f25df,_0x13a8bd;switch(_0x44e9db['commandName']){case'listStyle':_0x2f25df='*Change\x20to:*\x20%0',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df,o(_0x53cf9b,this['_getTranslationKeyForListStyle'](_0x44e9db['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2f25df=_0x44e9db['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df)};break;case'listStart':_0x2f25df='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x13a8bd={'type':'format','content':o(_0x53cf9b,_0x2f25df,_0x44e9db['commandParams'][0x0]['startIndex'])};}return _0x13a8bd;}['_getSuggestionBlocksForListStyle'](){const _0x2298b2=this['editor']['plugins']['get']('LegacyListUtils');let _0x36bf11=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x36bf11[0x0]?.['is']('element','listItem')&&_0x36bf11['unshift'](..._0x2298b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x36bf11[_0x36bf11['length']-0x1]?.['is']('element','listItem')&&_0x36bf11['push'](..._0x2298b2['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x36bf11=[...new Set(_0x36bf11)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x36bf11=_0x36bf11['filter'](_0x3a9d23=>_0x3a9d23['is']('element','listItem'))),_0x36bf11;}['_getSuggestionBlocks'](_0x4c1e02){const _0x7d1a94=this['editor']['plugins']['get']('LegacyListUtils');let _0x2bc629=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4c1e02)['map'](_0x2e6717=>{const _0x5b9418=this['editor']['model']['createPositionAt'](_0x2e6717,0x0);return[..._0x7d1a94['getSiblingNodes'](_0x5b9418,'backward'),..._0x7d1a94['getSiblingNodes'](_0x5b9418,'forward')];})['flat']();return _0x2bc629=[...new Set(_0x2bc629)],_0x2bc629;}['_getTranslationKeyForListStyle'](_0x27d4e8){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x27d4e8)||'default')['toUpperCase']()+'_LIST_'+_0x27d4e8['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x5d6089{['afterInit'](){const _0x18b569=this['editor'];if(!_0x18b569['plugins']['has']('MediaEmbedEditing'))return;const _0x31e50d=_0x18b569['plugins']['get']('TrackChangesEditing'),_0x357ee7=_0x18b569['locale'];_0x31e50d['enableCommand']('mediaEmbed'),_0x31e50d['descriptionFactory']['registerElementLabel']('media',_0x1320ee=>o(_0x357ee7,'ELEMENT_MEDIA',_0x1320ee)),_0x18b569['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x24e34f,{writer:_0x212a2a,options:_0x52c47e})=>{if(_0x52c47e['showSuggestionHighlights'])return _0x212a2a['createEmptyElement']('div');},'converterPriority':'high'}),_0x18b569['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5a6c4f,_0x1e3bb6,_0x473f6f)=>{_0x473f6f['options']['showSuggestionHighlights']&&_0x5a6c4f['stop']();},{'priority':'high'});}}class mt extends _0x5d6089{['afterInit'](){const _0x1e3d7d=this['editor'];_0x1e3d7d['plugins']['has']('MentionEditing')&&_0x1e3d7d['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x5d6089{['afterInit'](){const _0xb2fc1d=this['editor'];if(!_0xb2fc1d['plugins']['has']('MergeFieldsEditing'))return;const _0x9e300=_0xb2fc1d['plugins']['get']('TrackChangesEditing'),_0x405fdc=_0xb2fc1d['locale'];_0x9e300['enableCommand']('insertMergeField'),_0x9e300['enableCommand']('insertMergeFieldBlock'),_0x9e300['enableCommand']('insertMergeFieldImage'),_0x9e300['descriptionFactory']['registerElementLabel']('mergeField',_0x3f7fcc=>o(_0x405fdc,'ELEMENT_MERGE_FIELD',_0x3f7fcc)),_0x9e300['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0xcf5e48=>o(_0x405fdc,'ELEMENT_MERGE_FIELD',_0xcf5e48)),_0x9e300['descriptionFactory']['registerDescriptionCallback'](_0x33f8bf=>{if('insertion'!=_0x33f8bf['type']&&'deletion'!=_0x33f8bf['type'])return;const _0x5de4ef=_0x33f8bf['getContainedElement']();if(null==_0x5de4ef)return;const _0x49dc01=_0xb2fc1d['plugins']['get']('MergeFieldsEditing');let _0x18be34;switch(_0x49dc01['getMergeFieldType'](_0x5de4ef)){case null:return;case'image':{const _0x6862a3=_0x49dc01['unwrapAffixes'](_0x5de4ef['getAttribute']('src'));_0x18be34=_0x49dc01['getLabel'](_0x6862a3)||_0x6862a3;break;}default:{const _0x301c31=_0x5de4ef['getAttribute']('id');_0x18be34=_0x49dc01['getLabel'](_0x301c31)||_0x301c31;break;}}return'insertion'==_0x33f8bf['type']?{'type':'insertion','content':o(_0x405fdc,'*Insert:*\x20%0','\x22'+_0x18be34+'\x22\x20'+o(_0x405fdc,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x405fdc,'*Remove:*\x20%0','\x22'+_0x18be34+'\x22\x20'+o(_0x405fdc,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x5d6089{['afterInit'](){const _0x3c0366=this['editor'],_0x4cf69e=_0x3c0366['plugins']['get']('TrackChangesEditing');_0x3c0366['plugins']['has']('MultiLevelList')&&(_0x4cf69e['enableDefaultAttributesIntegration']('multiLevelList'),_0x4cf69e['registerBlockAttribute']('listMarkerStyle'),_0x4cf69e['descriptionFactory']['registerDescriptionCallback'](_0x1e4b5c=>this['handleDescriptions'](_0x1e4b5c)));}['handleDescriptions'](_0x80b1a7){const _0x417dc9=this['editor']['locale'],{data:_0x68738c}=_0x80b1a7,_0x4521e={'type':'format','content':''};if(_0x68738c&&'listMarkerStyle'==_0x68738c['key']){if(!_0x68738c['oldValue'])return{'type':'format','content':o(_0x417dc9,'*Set\x20format:*\x20%0',o(_0x417dc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x68738c['newValue']+')'};if(!_0x68738c['newValue']){let _0xa0ed1=_0x80b1a7['head'];for(;_0xa0ed1;){if(_0xa0ed1['data']&&'listType'==_0xa0ed1['data']['key']&&_0xa0ed1['data']['newValue'])return _0x4521e;_0xa0ed1=_0xa0ed1['next'];}return{'type':'format','content':o(_0x417dc9,'*Remove\x20format:*\x20%0',o(_0x417dc9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x68738c['oldValue']+')'};}}}}class kt extends _0x5d6089{['afterInit'](){const _0x3ed053=this['editor'];if(!_0x3ed053['plugins']['has']('PageBreakEditing'))return;_0x3ed053['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x221810=_0x3ed053['plugins']['get']('TrackChangesEditing'),_0x5d4342=_0x3ed053['locale'];_0x221810['descriptionFactory']['registerElementLabel']('pageBreak',_0x17aff5=>o(_0x5d4342,'ELEMENT_PAGE_BREAK',_0x17aff5));}}class bt extends _0x5d6089{['afterInit'](){const _0x23f1bc=this['editor'];if(!_0x23f1bc['plugins']['has']('Paragraph'))return;const _0x592145=_0x23f1bc['locale'],_0x585590=_0x23f1bc['plugins']['get']('TrackChangesEditing');_0x585590['descriptionFactory']['registerElementLabel']('paragraph',_0x126d5b=>o(_0x592145,'ELEMENT_PARAGRAPH',_0x126d5b)),_0x585590['enableDefaultAttributesIntegration']('paragraph'),_0x585590['enableCommand']('insertParagraph'),_0x23f1bc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x23f1bc),{'priority':'highest'}),_0x23f1bc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x4ca39b,_0x3473e6,_0x4ee287)=>{_0x4ee287['options']['showSuggestionHighlights']&&nr(_0x23f1bc,{'showActiveMarker':!0x1})(_0x4ca39b,_0x3473e6,_0x4ee287);},{'priority':'highest'});const _0x1c476b=_0x585590['descriptionFactory'];_0x1c476b['registerDescriptionCallback'](_0x111cd1=>{if('insertion'!==_0x111cd1['type'])return;const {start:_0x5da9b7,end:_0x431e87}=_0x111cd1['getFirstRange']();if(!_0x5da9b7['isTouching'](_0x431e87)||!_0x5da9b7['nodeAfter'])return;const _0x110d43=_0x23f1bc['model']['schema'],_0x23aead=_0x5da9b7['nodeAfter'];return _0x110d43['isBlock'](_0x23aead)&&!_0x110d43['isLimit'](_0x23aead)&&_0x110d43['checkChild'](_0x23aead,'$text')?{'type':'insertion','content':o(_0x592145,'*Insert:*\x20%0',_0x1c476b['getItemLabel'](_0x23aead,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58e7ed=this['editor'],_0x297ae7=_0x58e7ed['locale'];_0x58e7ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24f643=>{if('formatBlock'!=_0x24f643['type'])return;const {data:_0x591023}=_0x24f643;return _0x591023&&'paragraph'==_0x591023['commandName']?{'type':'format','content':o(_0x297ae7,'*Change\x20to:*\x20%0',o(_0x297ae7,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10efb6,{showActiveMarker:_0x2afde7=!0x0}={}){return(_0x1253e7,_0x1465d7,_0x3324fe)=>{const _0x556be6=_0x10efb6['plugins']['get']('TrackChangesEditing'),_0x245ff4=_0x1465d7['markerRange']['start'],_0x397a0f=_0x1465d7['markerRange']['end'],_0x33c261=_0x10efb6['model']['schema'];if(!_0x245ff4['isTouching'](_0x397a0f)||!_0x245ff4['nodeAfter'])return;const _0x5a23e7=_0x245ff4['nodeAfter'];if(_0x33c261['isBlock'](_0x5a23e7)&&!_0x33c261['isLimit'](_0x5a23e7)&&_0x33c261['checkChild'](_0x5a23e7,'$text')){if(!_0x3324fe['consumable']['consume'](_0x1465d7['markerRange'],_0x1253e7['name']))return;const {authorId:_0x4712c1}=_0x556be6['_splitMarkerName'](_0x1465d7['markerName']),_0x4b0052=_0x3324fe['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4712c1}),_0xc1f748=_0x3324fe['mapper']['toViewPosition'](_0x397a0f);_0x2afde7&&_0x556be6['activeMarkers']['includes'](_0x1465d7['markerName'])&&_0x3324fe['writer']['addClass']('ck-suggestion-marker--active',_0x4b0052),_0x3324fe['writer']['insert'](_0xc1f748,_0x4b0052),_0x3324fe['mapper']['bindElementToMarker'](_0x4b0052,_0x1465d7['markerName']);}};}class yt extends _0x5d6089{['afterInit'](){const _0x5aa2dd=this['editor'];if(!_0x5aa2dd['plugins']['has']('RemoveFormatEditing'))return;_0x5aa2dd['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28bcaf=this['editor'];_0x28bcaf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x415c83=>{if('formatBlock'!=_0x415c83['type']&&'formatInline'!=_0x415c83['type'])return;const {data:_0xe7f706}=_0x415c83;return _0xe7f706&&'removeFormat'==_0xe7f706['commandName']?{'type':'format','content':o(_0x28bcaf['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x5d6089{['afterInit'](){const _0x3c2f74=this['editor'];if(!_0x3c2f74['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x301e1c=_0x3c2f74['plugins']['get']('TrackChangesEditing');_0x301e1c['enableCommand']('goToPreviousRestrictedEditingException'),_0x301e1c['enableCommand']('goToNextRestrictedEditingException');const _0x176f95=_0x3c2f74['plugins']['get']('RestrictedEditingModeEditing');_0x176f95['enableCommand']('trackChanges'),_0x176f95['enableCommand']('acceptSuggestion'),_0x176f95['enableCommand']('discardSuggestion'),_0x176f95['enableCommand']('acceptAllSuggestions'),_0x176f95['enableCommand']('discardAllSuggestions'),_0x176f95['enableCommand']('acceptSelectedSuggestions'),_0x176f95['enableCommand']('discardSelectedSuggestions');}}class St extends _0x5d6089{static get['requires'](){return[_0x1b9647];}['init'](){const _0x59adb5=this['editor'],_0x14e5c7=_0x59adb5['plugins']['get']('TrackChangesEditing');_0x14e5c7['enableCommand']('shiftEnter'),_0x59adb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x59adb5),{'priority':'high'}),_0x59adb5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x59adb5),{'priority':'high'}),_0x59adb5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x137de4,_0x2f1ec9,_0x5528f6)=>{_0x5528f6['options']['showSuggestionHighlights']&&je(_0x59adb5,{'showActiveMarker':!0x1})(_0x137de4,_0x2f1ec9,_0x5528f6);}),_0x14e5c7['descriptionFactory']['registerElementLabel']('softBreak',_0x54b979=>o(_0x59adb5['locale'],'ELEMENT_LINE_BREAK',_0x54b979));}}function je(_0x5c9476,{showActiveMarker:_0x885284=!0x0}={}){return(_0x18b03f,_0xc88b88,_0x2672d0)=>{const _0x82f097=_0x5c9476['plugins']['get']('TrackChangesEditing');if(!_0x2672d0['consumable']['test'](_0xc88b88['markerRange'],_0x18b03f['name']))return;const _0x2f2407=_0x5c9476['model'];for(const _0x4c21ee of _0xc88b88['markerRange']['getItems']()){if(!_0x4c21ee['is']('element','softBreak'))continue;const _0x2bcfc3='deletion'==_0xc88b88['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x577d98}=_0x82f097['_splitMarkerName'](_0xc88b88['markerName']),_0x5c9116=_0x2672d0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2bcfc3,'data-author-id':_0x577d98}),_0x5b4a4b=_0x2672d0['mapper']['toViewPosition'](_0x2f2407['createPositionBefore'](_0x4c21ee));_0x885284&&_0x82f097['activeMarkers']['includes'](_0xc88b88['markerName'])&&_0x2672d0['writer']['addClass']('ck-suggestion-marker--active',_0x5c9116),_0x2672d0['writer']['insert'](_0x5b4a4b,_0x5c9116),_0x2672d0['mapper']['bindElementToMarker'](_0x5c9116,_0xc88b88['markerName']);}};}class At extends _0x5d6089{['afterInit'](){const _0x53609a=this['editor'],_0x4efd74=_0x53609a['model'],_0x4ddb2e=_0x53609a['locale'];if(!_0x53609a['plugins']['has']('StandardEditingModeEditing'))return;const _0xa24ad6=_0x53609a['plugins']['get']('TrackChangesEditing'),_0x1ce8ee='restrictedEditingException',_0x514340=_0x53609a['commands']['get'](_0x1ce8ee);_0xa24ad6['enableCommand'](_0x1ce8ee,(_0x415135,_0x4e5eec={})=>{const _0x8eefb9=_0x4efd74['document']['selection'];if(_0x8eefb9['isCollapsed'])return void _0x415135(_0x4e5eec);const _0x31ba60=void 0x0!==_0x4e5eec['forceValue']?_0x4e5eec['forceValue']:!_0x514340['value'];_0x4efd74['change'](()=>{const _0x41128c=Array['from'](_0x8eefb9['getRanges']());for(const _0x9d4ba7 of _0x41128c){const _0x4de42f=_0x31ba60?[_0x9d4ba7]:io(_0x1ce8ee,_0x9d4ba7,_0x4efd74);for(const _0x15ac4d of _0x4de42f)_0xa24ad6['markInlineFormat'](_0x15ac4d,{'commandName':_0x1ce8ee,'commandParams':[{'forceValue':_0x31ba60}]});}});}),_0xa24ad6['descriptionFactory']['registerDescriptionCallback'](_0x34e31e=>{if('formatBlock'!=_0x34e31e['type']&&'formatInline'!=_0x34e31e['type'])return;const {data:_0x22bc37}=_0x34e31e;return _0x22bc37&&_0x22bc37['commandName']==_0x1ce8ee?_0x22bc37['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ddb2e,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4ddb2e,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x5d6089{['afterInit'](){const _0x560f8f=this['editor'];if(!_0x560f8f['plugins']['has']('Style')||!_0x560f8f['plugins']['has']('DataSchema'))return;const _0x29d1f5=_0x560f8f['plugins']['get']('TrackChangesEditing'),_0x3cd77e=_0x560f8f['locale'],_0x2b0ba0=_0x560f8f['config']['get']('style')||{},_0x193841=_0x560f8f['plugins']['get']('GeneralHtmlSupport'),_0x5be735=_0x560f8f['plugins']['get']('StyleUtils')['normalizeConfig'](_0x560f8f['plugins']['get']('DataSchema'),_0x2b0ba0['definitions']);_0x29d1f5['enableDefaultAttributesIntegration']('style');const _0x1bffd8=new Set();for(const _0x37b131 of _0x5be735['block']){const _0x38c1d2=_0x193841['getGhsAttributeNameForElement'](_0x37b131['element']);_0x1bffd8['add'](_0x38c1d2);}const _0x58817b=new Set();for(const _0x27a79e of _0x5be735['inline']){const _0x418f89=_0x193841['getGhsAttributeNameForElement'](_0x27a79e['element']);_0x58817b['add'](_0x418f89);for(const _0xc06538 of _0x27a79e['ghsAttributes'])_0x58817b['add'](_0xc06538);}for(const _0x533522 of _0x1bffd8)_0x29d1f5['registerBlockAttribute'](_0x533522),_0x29d1f5['descriptionFactory']['registerAttributeLabel'](_0x533522,o(_0x3cd77e,'FORMAT_STYLE'));for(const _0x13219d of _0x58817b)_0x29d1f5['registerInlineAttribute'](_0x13219d),_0x29d1f5['descriptionFactory']['registerAttributeLabel'](_0x13219d,o(_0x3cd77e,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x651190=this['editor'],_0x1e548a=_0x651190['locale'];_0x651190['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x968846=>{if('formatBlock'!=_0x968846['type']&&'formatInline'!=_0x968846['type'])return;const {data:_0x30cd4e}=_0x968846;return _0x30cd4e&&'style'===_0x30cd4e['commandName']?_0x30cd4e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e548a,'*Set\x20format:*\x20%0',_0x30cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1e548a,'*Remove\x20format:*\x20%0',_0x30cd4e['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x5d6089{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4b9255){super(_0x4b9255),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4ebc3c=this['editor'],_0x2be535=_0x4ebc3c['model']['document']['selection'];if(!_0x4ebc3c['plugins']['has']('TableEditing'))return;const _0x22314c=_0x4ebc3c['locale'],_0x4a0ded=_0x4ebc3c['plugins']['get']('TrackChangesEditing'),_0x2093d8=_0x4ebc3c['plugins']['get']('TableUtils');_0x4a0ded['descriptionFactory']['registerElementLabel']('table',_0x427cde=>o(_0x22314c,'ELEMENT_TABLE',_0x427cde)),this['_setupColumnsRowsFixing'](),_0x4a0ded['enableCommand']('insertTable'),_0x4a0ded['enableCommand']('selectTableRow'),_0x4a0ded['enableCommand']('selectTableColumn');for(const _0x1f5ffa of['insertTableRowAbove','insertTableRowBelow']){const _0x137f3a=_0x4ebc3c['commands']['get'](_0x1f5ffa);_0x4a0ded['enableCommand'](_0x1f5ffa,_0x2984e7=>{_0x4ebc3c['model']['change'](_0x198a66=>{_0x2984e7();const _0x2f540a='above'===_0x137f3a['order'],_0x58fc2f=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x135fd1=_0x2093d8['getRowIndexes'](_0x58fc2f),_0x339602=_0x2f540a?_0x135fd1['first']-0x1:_0x135fd1['last']+0x1,_0x25d331=_0x58fc2f[0x0]['findAncestor']('table'),_0x26dacf=_0x2093d8['createTableWalker'](_0x25d331,{'startRow':_0x339602,'endRow':_0x339602}),_0x1cbb6f=Array['from'](_0x26dacf)['map'](_0x1f048c=>_0x198a66['createRangeOn'](_0x1f048c['cell']));_0x4a0ded['markMultiRangeInsertion'](_0x1cbb6f,'tableRow');});});}for(const _0x238408 of['insertTableColumnLeft','insertTableColumnRight']){const _0x1c3609=_0x4ebc3c['commands']['get'](_0x238408);_0x4a0ded['enableCommand'](_0x238408,_0x50eb23=>{_0x4ebc3c['model']['change'](_0x309d29=>{_0x50eb23();const _0x424e55='left'===_0x1c3609['order'],_0x2ea026=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x531835=_0x2093d8['getColumnIndexes'](_0x2ea026),_0x19d1eb=_0x424e55?_0x531835['first']-0x1:_0x531835['last']+0x1,_0x5cafa2=_0x2ea026[0x0]['findAncestor']('table'),_0x1d22f3=_0x2093d8['createTableWalker'](_0x5cafa2,{'startRow':0x0,'column':_0x19d1eb,'includeAllSlots':!0x1}),_0x15823e=Array['from'](_0x1d22f3)['map'](_0x31bcdf=>_0x309d29['createRangeOn'](_0x31bcdf['cell']));_0x4a0ded['markMultiRangeInsertion'](_0x15823e,'tableColumn');});});}for(const _0x1471fc of['removeTableRow','removeTableColumn']){const _0x58106b=_0x1471fc['substr'](0xb),_0x46b07c=_0x58106b['toLowerCase'](),_0x4fc0f8=_0x46b07c['substr'](0x0,0x3)+'span',_0x1a3e02='table'+_0x58106b,_0x2e2999='min'+_0x58106b,_0x5e479b='max'+_0x58106b;_0x4a0ded['enableCommand'](_0x1471fc,()=>{_0x4ebc3c['model']['change'](_0x1e299f=>{const _0x37e0dc=_0x2093d8['getSelectionAffectedTableCells'](_0x2be535),_0x20c866=_0x37e0dc[0x0]['findAncestor']('table');let _0x552683;if('removeTableRow'==_0x1471fc){const _0x422769=_0x2093d8['getRowIndexes'](_0x37e0dc);_0x552683={'startRow':_0x422769['first'],'endRow':_0x422769['last'],'includeAllSlots':!0x0};}else{const _0x414e8b=_0x2093d8['getColumnIndexes'](_0x37e0dc);_0x552683={'startColumn':_0x414e8b['first'],'endColumn':_0x414e8b['last'],'includeAllSlots':!0x0};}const _0x63da7a=_0x2093d8['createTableWalker'](_0x20c866,_0x552683),_0x1cbff2=Array['from'](_0x63da7a)['map'](({cell:_0xff59f9})=>_0xff59f9),_0x4b5629=Ne(_0x1cbff2['filter'](_0x2b51af=>_0x2b51af['hasAttribute'](_0x4fc0f8))),_0x29acd0=Ne(_0x1cbff2['filter'](_0x3320d1=>!_0x3320d1['hasAttribute'](_0x4fc0f8)))['map'](_0x34ea5f=>_0x1e299f['createRangeOn'](_0x34ea5f)),_0x38a562=_0x4a0ded['markMultiRangeDeletion'](_0x29acd0,_0x1a3e02);if(_0x38a562&&('tableRow'==_0x38a562['subType']||'tableColumn'==_0x38a562['subType'])){const _0x35b1e1=this['_getSuggestionCoords'](_0x38a562);for(const _0x127ea1 of _0x4b5629){const _0x27b3ee=_0x1e299f['createRangeOn'](_0x127ea1),_0x317865=_0x2093d8['getCellLocation'](_0x127ea1),_0x440629=_0x127ea1['getAttribute'](_0x4fc0f8)-0x1,_0x17a81f=_0x35b1e1[_0x2e2999],_0x540a16=_0x35b1e1[_0x5e479b];_0x17a81f<=_0x317865[_0x46b07c]&&_0x317865[_0x46b07c]+_0x440629<=_0x540a16&&_0x38a562['addRange'](_0x27b3ee);}}});});}function _0x5636ad(_0x1105d8){const _0x592ac2=Array['from'](_0x2be535['getRanges']())['map'](_0x1210b8=>_0x190639['fromRange'](_0x1210b8));_0x4ebc3c['model']['change'](_0x37da5c=>{const _0x286d3f=_0x37da5c['batch'];_0x1105d8=_0x1105d8['filter'](_0x5a4f17=>'$graveyard'!=_0x5a4f17['root']['rootName']),_0x37da5c['setSelection'](_0x1105d8),_0x4ebc3c['commands']['get']('removeTableRow')['refresh'](),_0x4ebc3c['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4ebc3c['model']['enqueueChange'](()=>{_0x4ebc3c['model']['enqueueChange'](_0x286d3f,_0x467bdb=>{const _0x335ddf=_0x592ac2['filter'](_0x267b02=>'$graveyard'!=_0x267b02['root']['rootName']);_0x335ddf['length']>0x0&&_0x467bdb['setSelection'](_0x335ddf);for(const _0x5c4b2c of _0x592ac2)_0x5c4b2c['detach']();});});});}function _0x3cfc69(_0x595064){_0x4ebc3c['model']['change'](_0x1a8cda=>{const _0x5d969b=Array['from'](_0x2be535['getRanges']())['map'](_0x111507=>_0x190639['fromRange'](_0x111507)),_0x3742b8=[];for(const _0x376da5 of _0x595064)for(const _0x53535d of _0x376da5['getItems']({'shallow':!0x0}))_0x3742b8['push'](_0x53535d);for(const _0x312f84 of _0x3742b8)'$graveyard'!=_0x312f84['root']['rootName']&&(_0x1a8cda['setSelection'](_0x1a8cda['createPositionAt'](_0x312f84,0x0)),_0x4ebc3c['commands']['get']('removeTableColumn')['refresh'](),_0x4ebc3c['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x5384fd=_0x5d969b['filter'](_0x496958=>'$graveyard'!=_0x496958['root']['rootName']);_0x5384fd['length']>0x0&&_0x1a8cda['setSelection'](_0x5384fd);for(const _0x3473bf of _0x5d969b)_0x3473bf['detach']();});}function _0x1d391f(_0x3b5823,_0x108fa6){return _0x108fa6['every'](_0x2f35d7=>_0x3b5823['some'](_0x56378f=>_0x56378f['end']['isEqual'](_0x2f35d7['start'])||_0x2f35d7['end']['isEqual'](_0x56378f['start'])));}function _0x2d1766(_0x552212,_0x4769ef){return!_0x552212['some'](_0x51a7aa=>_0x4769ef['some'](_0x1488a1=>_0x51a7aa['isIntersecting'](_0x1488a1)))&&_0x552212['some'](_0x8a6aa9=>_0x4769ef['some'](_0x2ee8e8=>_0x8a6aa9['end']['isTouching'](_0x2ee8e8['start'])));}_0x4ebc3c['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4aef8f,_0x5897df,_0x50d211)=>{if(!_0x50d211['options']['showSuggestionHighlights'])return;const _0x5c47af=_0x5897df['item'];if(!_0x5c47af)return;const _0x4ea1ea=_0x50d211['mapper']['toViewElement'](_0x5c47af);function _0x361e38(_0x32f701){return Array['isArray'](_0x32f701)?_0x32f701:[_0x32f701];}_0x4ea1ea&&'tableCell'===_0x5c47af['name']&&_0x4bfc39(_0x4ea1ea,_0x50d211['writer'],(_0x1d4d42,_0xf3c638,_0x249f74)=>_0x249f74['addClass'](_0x361e38(_0xf3c638['classes']),_0x1d4d42),(_0x400cf2,_0x395636,_0x5bd5e2)=>_0x5bd5e2['removeClass'](_0x361e38(_0x395636['classes']),_0x400cf2));},{'priority':'highest'}),_0x4a0ded['descriptionFactory']['registerDescriptionCallback'](_0x11ab11=>{if('insertion'!=_0x11ab11['type']&&'deletion'!=_0x11ab11['type'])return;const _0x25cf3c=_0x11ab11['getContainedElement']();if(null!=_0x25cf3c&&_0x25cf3c['is']('element','table')){if('insertion'==_0x11ab11['type']){const _0x19f694=_0x11ab11['getItems']()['filter'](_0x44628e=>_0x44628e['is']('$textProxy'))['map'](_0x4c579b=>_0x4c579b['data']);if(_0x19f694['length'])return{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x19f694['join']('\x20')+'\x22'))};}if('deletion'==_0x11ab11['type']){const _0x39102d=_0x11ab11['getItems']()['filter'](_0x524bea=>_0x524bea['is']('$textProxy'))['map'](_0x124126=>_0x124126['data']);if(_0x39102d['length'])return{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x39102d['join']('\x20')+'\x22'))};}}}),_0x4a0ded['descriptionFactory']['registerDescriptionCallback'](_0xd47df7=>{if('tableRow'==_0xd47df7['subType']){const _0x36c1be=_0xd47df7['getItems']()['filter'](_0x442aa0=>_0x442aa0['is']('$textProxy'))['map'](_0x4ed9ce=>_0x4ed9ce['data']),_0x1c752b=this['_getSuggestionCoords'](_0xd47df7),_0x3ab838=_0x1c752b['maxRow']-_0x1c752b['minRow']+0x1;if('insertion'==_0xd47df7['type'])return _0x36c1be['length']?{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ab838,'\x22'+_0x36c1be['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW',_0x3ab838))};if('deletion'==_0xd47df7['type'])return _0x36c1be['length']?{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x3ab838,'\x22'+_0x36c1be['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_ROW',_0x3ab838))};}if('tableColumn'==_0xd47df7['subType']){const _0x2d320c=_0xd47df7['getItems']()['filter'](_0x167589=>_0x167589['is']('$textProxy'))['map'](_0x461294=>_0x461294['data']),_0x388f72=this['_getSuggestionCoords'](_0xd47df7),_0x2e7417=_0x388f72['maxColumn']-_0x388f72['minColumn']+0x1;if('insertion'==_0xd47df7['type'])return _0x2d320c['length']?{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7417,'\x22'+_0x2d320c['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x22314c,'*Insert:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN',_0x2e7417))};if('deletion'==_0xd47df7['type'])return _0x2d320c['length']?{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e7417,'\x22'+_0x2d320c['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x22314c,'*Remove:*\x20%0',o(_0x22314c,'ELEMENT_TABLE_COLUMN',_0x2e7417))};}}),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x5636ad),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x5636ad),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3cfc69),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3cfc69),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1d391f),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1d391f),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2d1766),_0x4a0ded['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2d1766);}['_acceptFormatSuggestionCallbackFactory'](){const _0x5d7163=this['editor'],_0xc87bab=_0x5d7163['model']['document']['selection'];return(_0x230e49,_0x2da7d5)=>{_0x5d7163['model']['change'](_0x5974e0=>{const {commandName:_0x31fbe8,commandParams:_0x3a5fc6}=_0x2da7d5;let _0x3ce1db=_0x230e49[0x0]['end']['nodeBefore'];_0x3a5fc6&&_0x3a5fc6[0x0]&&!0x1===_0x3a5fc6[0x0]['forceValue']&&(_0x3ce1db=_0x230e49[0x0]['start']['nodeAfter']);const _0x58f269=_0x5974e0['createRangeIn'](_0x3ce1db);if('$graveyard'==_0x58f269['root']['rootName'])return;const _0x3e4b8a=Array['from'](_0xc87bab['getRanges']())['map'](_0x538d04=>_0x190639['fromRange'](_0x538d04));_0x5974e0['setSelection'](_0x58f269),_0x5d7163['commands']['get'](_0x31fbe8)['refresh'](),_0x3a5fc6['push']({'forceDefaultExecution':!0x0}),_0x5d7163['execute'](_0x31fbe8,..._0x3a5fc6);const _0x3be2fb=_0x3e4b8a['filter'](_0x3ea1c1=>'$graveyard'!=_0x3ea1c1['root']['rootName']);_0x3be2fb['length']>0x0&&_0x5974e0['setSelection'](_0x3be2fb);for(const _0x27d36e of _0x3e4b8a)_0x27d36e['detach']();});};}['_getCoordsForCells'](_0x36b519){const _0x416bcd=this['editor']['plugins']['get']('TableUtils');let _0x66ec63=Number['MAX_SAFE_INTEGER'],_0x61595f=Number['MIN_SAFE_INTEGER'],_0x2aaee9=Number['MAX_SAFE_INTEGER'],_0x1e0763=Number['MIN_SAFE_INTEGER'];for(const _0x565467 of _0x36b519){if('$graveyard'==_0x565467['root']['rootName'])continue;const {row:_0x234f6e,column:_0x152b74}=_0x416bcd['getCellLocation'](_0x565467),_0x657c5d=_0x565467['hasAttribute']('rowspan')?_0x565467['getAttribute']('rowspan')-0x1:0x0,_0x5a26fb=_0x565467['hasAttribute']('colspan')?_0x565467['getAttribute']('colspan')-0x1:0x0;_0x66ec63=_0x234f6e<_0x66ec63?_0x234f6e:_0x66ec63,_0x61595f=_0x234f6e+_0x657c5d>_0x61595f?_0x234f6e+_0x657c5d:_0x61595f,_0x2aaee9=_0x152b74<_0x2aaee9?_0x152b74:_0x2aaee9,_0x1e0763=_0x152b74+_0x5a26fb>_0x1e0763?_0x152b74+_0x5a26fb:_0x1e0763;}return{'minRow':_0x66ec63,'maxRow':_0x61595f,'minColumn':_0x2aaee9,'maxColumn':_0x1e0763};}['_setupColumnsRowsFixing'](){const _0x4ef239=this['editor'],_0x3c34c5=_0x4ef239['plugins']['get']('TrackChangesEditing'),_0x31c359=_0x4ef239['plugins']['get']('TableUtils');_0x4ef239['model']['document']['on']('change:data',()=>{const _0x275fba=Array['from'](_0x4ef239['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4c6842,data:_0x5670f6}of _0x275fba){const {group:_0x1a20f3,id:_0x4a8bb4,subType:_0x1717f2}=_0x3c34c5['_splitMarkerName'](_0x4c6842);if('suggestion'!=_0x1a20f3)continue;if(null!=_0x5670f6['oldRange'])continue;const _0x72812c=_0x3c34c5['getSuggestion'](_0x4a8bb4);this['_tablePostFixingSubtypes']['includes'](_0x1717f2)&&this['_tableSuggestions']['add'](_0x72812c);}},{'priority':'low'});const _0xfeb10b=(_0x4b8bf0,_0x49a52a)=>{let _0x4a58b2=!0x1;const _0x21854d=_0x49a52a['createRangeOn'](_0x4b8bf0),_0xedc46b=_0x4b8bf0['findAncestor']('table'),_0x5117a6=_0x31c359['getCellLocation'](_0x4b8bf0);for(const _0xec0ea1 of this['_tableSuggestions']){const _0x271c1c=_0xec0ea1['subType'],_0x3671e1=_0x271c1c['startsWith']('tablePaste'),_0x420849=_0x271c1c['substr'](_0x3671e1?0xa:0x5),_0x4990d2=_0x420849['toLowerCase'](),_0x32df1b=_0x4990d2['substr'](0x0,0x3)+'span',_0x49445c='min'+_0x420849,_0x11033a='max'+_0x420849;if(!_0xec0ea1['isInContent'])continue;if(_0xedc46b!=_0xec0ea1['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xec0ea1['isIntersectingWithRange'](_0x21854d))continue;const _0x1045ee=_0x4b8bf0['hasAttribute'](_0x32df1b)?_0x4b8bf0['getAttribute'](_0x32df1b)-0x1:0x0,_0x5c8e21=this['_getSuggestionCoords'](_0xec0ea1),_0x24383e=_0x5c8e21[_0x49445c],_0x449d7d=_0x5c8e21[_0x11033a];_0x24383e<=_0x5117a6[_0x4990d2]&&_0x5117a6[_0x4990d2]+_0x1045ee<=_0x449d7d&&(_0xec0ea1['addRange'](_0x21854d),_0x4a58b2=!0x0);}return _0x4a58b2;};_0x4ef239['model']['document']['registerPostFixer'](_0xf8a87f=>{let _0x179cfa=!0x1;for(const _0x29ef01 of _0x4ef239['model']['document']['differ']['getChanges']())if('insert'==_0x29ef01['type']){if('tableRow'==_0x29ef01['name']){for(const _0x56818a of _0x29ef01['position']['nodeAfter']['getChildren']())_0x179cfa=_0x179cfa||_0xfeb10b(_0x56818a,_0xf8a87f);}else'tableCell'==_0x29ef01['name']&&(_0x179cfa=_0x179cfa||_0xfeb10b(_0x29ef01['position']['nodeAfter'],_0xf8a87f));}return _0x179cfa;});}['_getSuggestionCoords'](_0x409156){return this['_getCoordsForCells'](_0x409156['getRanges']()['map'](_0x5ea25a=>_0x5ea25a['start']['nodeAfter']));}}function Ne(_0x43b6c4){return Array['from'](new Set(_0x43b6c4)['values']());}class _t extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x150d39=this['editor'],_0x3b0568=_0x150d39['model']['document']['selection'],_0x10d31b=_0x150d39['locale'];if(!_0x150d39['plugins']['has']('TableEditing'))return;const _0x32673c=_0x150d39['plugins']['get']('TrackChangesEditing'),_0x10db2d=_0x150d39['plugins']['get']('TableUtils'),_0x1f43e8=_0x150d39['plugins']['get'](vt);_0x1f43e8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x32673c['enableCommand']('mergeTableCells',()=>{const _0x5b2090=_0x10db2d['getSelectionAffectedTableCells'](_0x150d39['model']['document']['selection']);_0x150d39['model']['change'](()=>{_0x32673c['markMultiRangeBlockFormat'](_0x5b2090,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x150d39['commands']['get']('mergeTableCells')['on']('execute',(_0x59c98a,_0x55700f)=>{_0x150d39['commands']['get']('trackChanges')['value']&&(_0x55700f['length']>0x0&&_0x55700f[_0x55700f['length']-0x1]&&_0x55700f[_0x55700f['length']-0x1]['forceDefaultExecution']||_0x32673c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x59c98a['stop']());},{'priority':'highest'});for(const _0x4bbb78 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0xe8ccd8=_0x150d39['commands']['get'](_0x4bbb78);_0x32673c['enableCommand'](_0x4bbb78,()=>{const _0x14de11=_0x150d39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1b226c=>_0x1b226c['is']('element','tableCell')),_0x3f3d0e=_0xe8ccd8['value'];_0x150d39['model']['change'](()=>{_0x32673c['markMultiRangeBlockFormat']([_0x14de11,_0x3f3d0e],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x3a2ae5 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2b2b86=_0x150d39['commands']['get'](_0x3a2ae5);_0x32673c['enableCommand'](_0x3a2ae5,()=>{const _0x67ade8=_0x10db2d['getSelectionAffectedTableCells'](_0x150d39['model']['document']['selection'])[0x0],_0x3fba86=_0x67ade8['findAncestor']('table'),{column:_0x19f34f,row:_0x2adc8b}=_0x10db2d['getCellLocation'](_0x67ade8);let _0x341435=[];if('horizontally'==_0x2b2b86['direction']){const _0x45271b=_0x10db2d['createTableWalker'](_0x3fba86,{'startRow':_0x2adc8b,'endRow':_0x2adc8b,'includeAllSlots':!0x0});_0x341435=Array['from'](_0x45271b)['map'](_0x2e9c26=>_0x2e9c26['cell']);}else{const _0x5a4d06=_0x10db2d['createTableWalker'](_0x3fba86,{'column':_0x19f34f,'includeAllSlots':!0x0});_0x341435=Array['from'](_0x5a4d06)['map'](_0x444a7f=>_0x444a7f['cell']);}_0x150d39['model']['change'](_0x568bb0=>{_0x32673c['markBlockFormat'](_0x568bb0['createRangeOn'](_0x67ade8),{'commandName':_0x3a2ae5,'commandParams':[]},_0x341435,_0x3a2ae5);});});}_0x32673c['descriptionFactory']['registerDescriptionCallback'](_0x276422=>{if('formatBlock'!=_0x276422['type']&&'formatInline'!=_0x276422['type'])return;const {data:_0x41fb17}=_0x276422;return _0x41fb17&&'mergeTableCells'==_0x41fb17['commandName']?{'type':'format','content':o(_0x10d31b,'*Merge\x20cells*')}:void 0x0;}),_0x32673c['descriptionFactory']['registerDescriptionCallback'](_0x30b00e=>{if('formatBlock'!=_0x30b00e['type']&&'formatInline'!=_0x30b00e['type'])return;const {data:_0x179244}=_0x30b00e;return _0x179244?'splitTableCellVertically'==_0x179244['commandName']?{'type':'format','content':o(_0x10d31b,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x179244['commandName']?{'type':'format','content':o(_0x10d31b,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5e4846=_0x1f43e8['_acceptFormatSuggestionCallbackFactory']();for(const _0x2242ed of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2242ed,'accept',_0x5e4846);for(const _0x3bc93f of['splitTableCellVertically','splitTableCellHorizontally'])_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3bc93f,'accept',_0x5e4846);_0x32673c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3a00b3=>{_0x150d39['model']['change'](_0x53a7ee=>{const _0x57c454=Array['from'](_0x3b0568['getRanges']())['map'](_0x558b8e=>_0x190639['fromRange'](_0x558b8e));_0x53a7ee['setSelection'](_0x3a00b3),_0x150d39['commands']['get']('mergeTableCells')['refresh'](),_0x150d39['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x1c8a4a=_0x57c454['filter'](_0x18bac0=>'$graveyard'!=_0x18bac0['root']['rootName']);_0x1c8a4a['length']>0x0&&_0x53a7ee['setSelection'](_0x1c8a4a);for(const _0x444777 of _0x57c454)_0x444777['detach']();});});for(const _0x22144a of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x1b9c76=_0x150d39['commands']['get'](_0x22144a);_0x1b9c76['on']('set:isEnabled',(_0x4488e7,_0x36fd69,_0x128312)=>{if(_0x128312){const _0x615e2a=_0x150d39['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3b6499=>_0x3b6499['is']('element','tableCell'));this['_areMergableCells'](_0x1b9c76['value'],_0x615e2a)||(_0x4488e7['return']=!0x1,_0x4488e7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0xe5f370=this['editor']['commands']['get']('mergeTableCells'),_0x40ae7a=this['editor']['plugins']['get']('TableUtils');if(!_0xe5f370['isEnabled'])return!0x1;const _0x52bffe=_0x40ae7a['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3c5502 of _0x52bffe)for(const _0x2e2563 of _0x52bffe)if(_0x3c5502!=_0x2e2563&&!this['_areMergableCells'](_0x3c5502,_0x2e2563))return!0x1;return!0x0;}['_areMergableCells'](_0x5b400a,_0x21c9f4){const _0x136f93=this['editor']['plugins']['get']('TrackChangesEditing'),_0x104e1c=this['editor']['model']['createRangeOn'](_0x5b400a),_0x404b17=this['editor']['model']['createRangeOn'](_0x21c9f4),_0x46de63=new Set(),_0x1cb1f6=new Set();for(const _0x306c9d of _0x136f93['getSuggestions']())if(('insertion'==_0x306c9d['type']||'deletion'==_0x306c9d['type']||'mergeTableCells'==_0x306c9d['subType'])&&_0x306c9d['isInContent']){for(const _0x142c4 of _0x306c9d['getRanges']())_0x142c4['containsRange'](_0x104e1c,!0x0)&&_0x46de63['add'](_0x306c9d['type']+':'+_0x306c9d['author']['id']),_0x142c4['containsRange'](_0x404b17,!0x0)&&_0x1cb1f6['add'](_0x306c9d['type']+':'+_0x306c9d['author']['id']);}if(_0x46de63['size']!=_0x1cb1f6['size'])return!0x1;for(const _0x385afd of _0x46de63)if(!_0x1cb1f6['has'](_0x385afd))return!0x1;return!0x0;}}class Ct extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x4362b2=this['editor'];if(!_0x4362b2['plugins']['has']('TableEditing'))return;const _0x5cfdfa=_0x4362b2['locale'],_0x196759=_0x4362b2['plugins']['get']('TrackChangesEditing');_0x196759['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x196759['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x196759['registerBlockAttribute']('headingRows'),_0x196759['registerBlockAttribute']('headingColumns'),_0x196759['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x5cfdfa,'FORMAT_HEADER_ROW')),_0x196759['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x5cfdfa,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x193736=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5197b7=this['editor']['plugins']['get']('TableUtils'),_0x440d28=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4efb18({showActiveMarker:_0x7ab3b4=!0x0,setDataAttribute:_0x11c932=!0x0}={}){return(_0x1212c1,_0x16aed8,_0x4cbb3c)=>{const {type:_0x19e10e,id:_0xb49496}=_0x193736['_splitMarkerName'](_0x16aed8['markerName']),_0x1b1ef2=_0x193736['getSuggestion'](_0xb49496),_0x24e4b4=_0x1b1ef2['data'];if('formatBlock'!=_0x1b1ef2['type']||!_0x24e4b4||'setTableColumnHeader'!=_0x24e4b4['commandName'])return;if(_0x16aed8['item'])return void _0x1212c1['stop']();if(!_0x4cbb3c['consumable']['consume'](_0x16aed8['markerRange'],_0x1212c1['name']))return;const _0x4ff5b2=_0x16aed8['markerRange']['start']['nodeAfter'],_0x348d1b=_0x16aed8['markerRange']['end']['nodeBefore'],_0xa7132b=_0x4ff5b2['parent']['parent'],{column:_0xd13bba}=_0x5197b7['getCellLocation'](_0x4ff5b2),{column:_0x58734c}=_0x5197b7['getCellLocation'](_0x348d1b);for(let _0x19b513=_0xd13bba;_0x19b513<=_0x58734c;_0x19b513++){const _0x1a6571=_0x5197b7['createTableWalker'](_0xa7132b,{'column':_0x19b513,'includeAllSlots':!0x1});for(const _0x288b03 of _0x1a6571){const _0x53feb1=_0x288b03['cell'],_0x16016d=_0x4cbb3c['mapper']['toViewElement'](_0x53feb1);_0x4cbb3c['writer']['addClass']('ck-suggestion-marker-'+_0x19e10e,_0x16016d),_0x11c932&&_0x4cbb3c['writer']['setAttribute']('data-suggestion',_0xb49496,_0x16016d),_0x4cbb3c['mapper']['bindElementToMarker'](_0x16016d,_0x16aed8['markerName']),_0x7ab3b4&&(_0x193736['activeMarkers']['includes'](_0x16aed8['markerName'])?_0x4cbb3c['writer']['addClass']('ck-suggestion-marker--active',_0x16016d):_0x4cbb3c['writer']['removeClass']('ck-suggestion-marker--active',_0x16016d));}}};}_0x193736['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x440d28),_0x193736['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x440d28),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4efb18(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4b0490,_0x3ec8bf,_0x4c7d4c)=>{_0x4c7d4c['options']['showSuggestionHighlights']&&_0x4efb18({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4b0490,_0x3ec8bf,_0x4c7d4c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x47ff31,_0x42e7b9,_0x343c4b)=>{const {type:_0x2c1470,id:_0x54ad27}=_0x193736['_splitMarkerName'](_0x42e7b9['markerName']),_0x77769b=_0x193736['getSuggestion'](_0x54ad27),_0x21a095=_0x77769b['data'];if('formatBlock'!=_0x77769b['type']||!_0x21a095||'setTableColumnHeader'!=_0x21a095['commandName'])return;const _0x220f38=_0x343c4b['mapper']['markerNameToElements'](_0x42e7b9['markerName']);if(_0x220f38){for(const _0x2b9f71 of _0x220f38)_0x343c4b['writer']['removeClass']('ck-suggestion-marker-'+_0x2c1470,_0x2b9f71),_0x343c4b['writer']['removeClass']('ck-suggestion-marker--active',_0x2b9f71),_0x343c4b['writer']['removeAttribute']('data-suggestion',_0x2b9f71),_0x343c4b['mapper']['unbindElementFromMarkerName'](_0x2b9f71,_0x42e7b9['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c9fbc=this['editor'],_0x581415=_0x3c9fbc['locale'];function _0x9528df(_0x599d52){return{'type':'format','content':o(_0x581415,'*Format:*\x20%0',_0x599d52)};}_0x3c9fbc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x8056=>{if('formatBlock'!=_0x8056['type'])return;const {data:_0x1b8bae}=_0x8056;if(_0x1b8bae){if('setTableRowHeader'==_0x1b8bae['commandName']){const _0x3008c0=_0x1b8bae['commandParams'][0x0]['forceValue'];return _0x9528df(o(_0x581415,_0x3008c0?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1b8bae['commandName']){const _0xaa5fa1=_0x1b8bae['commandParams'][0x0]['forceValue'];return _0x9528df(o(_0x581415,_0xaa5fa1?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x497bd7=>[_0x497bd7,null]));class Nt extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0xb0b084=this['editor'];if(!_0xb0b084['plugins']['has']('TableClipboard'))return;const _0x3782a2=_0xb0b084['plugins']['get']('TrackChangesEditing'),_0x1aebee=_0xb0b084['plugins']['get']('TableUtils'),_0x1b39a6=_0xb0b084['plugins']['get'](vt),_0x5036e3=_0xb0b084['plugins']['get']('TableClipboard');_0x1b39a6['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb0b084['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb0b084['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1a781f=null;_0xb0b084['model']['on']('insertContent',(_0x10a6c7,_0x3d31d0)=>{const [_0x5bc2d1,_0x5e92c3]=_0x3d31d0,_0x40830b=_0x3d31d0[_0x3d31d0['length']-0x1];_0x40830b&&_0x40830b['forceDefaultExecution']||_0x3782a2['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2aa9d8,_0x2ff000,_0x3ec9ee,_0x539231,_0x36554c){if(_0x2ff000&&!_0x2ff000['is']('documentSelection'))return!0x1;const _0xe365f9=_0x36554c['getTableIfOnlyTableInContent'](_0x2aa9d8,_0x3ec9ee);if(!_0xe365f9||!Ue(_0xe365f9,void 0x0,_0x539231))return!0x1;const _0x2d5928=_0x539231['getSelectionAffectedTableCells'](_0x3ec9ee['document']['selection']);if(!_0x2d5928['length'])return!0x1;const _0x4d62b6=_0x2d5928[0x0]['findAncestor']('table'),_0x1699f0=_0x539231['getRowIndexes'](_0x2d5928),_0x290573=_0x539231['getColumnIndexes'](_0x2d5928),_0x578a8f={'startRow':_0x1699f0['first'],'endRow':_0x1699f0['last'],'startColumn':_0x290573['first'],'endColumn':_0x290573['last']};return 0x1==_0x2d5928['length']&&(_0x578a8f['endRow']+=_0x539231['getRows'](_0xe365f9)-0x1,_0x578a8f['endColumn']+=_0x539231['getColumns'](_0xe365f9)-0x1),Ue(_0x4d62b6,_0x578a8f,_0x539231);}(_0x5bc2d1,_0x5e92c3,_0xb0b084['model'],_0x1aebee,_0x5036e3)&&(_0x10a6c7['stop'](),_0x1a781f={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb0b084['model']['change'](()=>{_0xb0b084['model']['insertContent'](_0x3d31d0[0x0],_0x3d31d0[0x1],_0x3d31d0[0x2],{'forceDefaultExecution':!0x0});const _0x26507d=_0x3e98cb(),{rowInsertionRanges:_0x273322,columnInsertionRanges:_0x281297,insertionRanges:_0x32e718,deletionRanges:_0x39fcba,cells:_0xe2a6c4}=_0x1a781f;_0x273322['length']&&_0x3782a2['markMultiRangeInsertion'](_0x273322,'tablePasteRow',{'tablePasteChainId':_0x26507d}),_0x281297['length']&&_0x3782a2['markMultiRangeInsertion'](_0x281297,'tablePasteColumn',{'tablePasteChainId':_0x26507d}),_0x32e718['length']&&(_0x3782a2['markMultiRangeInsertion'](_0x32e718,'tablePaste',{'tablePasteChainId':_0x26507d,'skipNestingCheck':!0x0}),_0x32e718['forEach'](_0x5f4442=>_0x5f4442['detach']?.())),_0x39fcba['length']&&(_0x3782a2['markMultiRangeDeletion'](_0x39fcba,'tablePaste',{'tablePasteChainId':_0x26507d,'skipNestingCheck':!0x0}),_0x39fcba['forEach'](_0x5d538a=>_0x5d538a['detach']?.()));const _0x52abd9=_0x3782a2['markMultiRangeBlockFormat'](_0xe2a6c4['map'](({element:_0x1f110d})=>_0x1f110d),{'formatGroupId':_0x3e98cb()},[],'tablePasteCell',{'tablePasteChainId':_0x26507d});if(_0x52abd9){const _0x5f1d2d=_0x52abd9['getMarkers'](),_0x2b5b6f=[];for(const {element:_0x3c185c,attributes:_0x2b131b}of _0xe2a6c4){if(!_0x2b131b)continue;const _0x11b3ca=_0xb0b084['model']['createRangeOn'](_0x3c185c),_0xc873dd=_0x5f1d2d['find'](_0x52203d=>_0x52203d['getRange']()['isEqual'](_0x11b3ca));_0xc873dd&&_0x2b5b6f['push']([_0xc873dd['name'],_0x2b131b]);}_0x2b5b6f['length']&&_0x52abd9['setAttribute']('markerAttributes',Object['fromEntries'](_0x2b5b6f));}_0x1a781f=null;}));},{'priority':_0xa7b267['high']+0xa}),_0xb0b084['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x37583b,_0x46cd6c)=>{const [_0x2637c4,_0x3f54e5,,_0x1c1ba3]=_0x46cd6c;if(!_0x1a781f)return;_0x37583b['stop']();const _0x59ead3=_0x2637c4['cell'],_0x1b7eed=_0x3f54e5,_0x243424=Oe(_0x59ead3),_0xcd5663=Oe(_0x1b7eed);_0x37583b['return']=_0x59ead3;let _0x12ac8c=null,_0xd47974=null;if(_0xcd5663||_0x243424){if(_0x243424&&!_0xcd5663){_0x1c1ba3['remove'](_0x59ead3['getChild'](0x0));for(const _0x4b866b of Array['from'](_0x1b7eed['getChildren']()))_0x1c1ba3['insert'](_0x4b866b,_0x59ead3,'end');const _0x5a308b=_0x1a781f['rowInsertionIndexes']['includes'](_0x2637c4['row']),_0x28f5c5=_0x1a781f['columnInsertionIndexes']['includes'](_0x2637c4['column']);_0x5a308b||_0x28f5c5||(_0x12ac8c=_0x190639['fromRange'](_0x1c1ba3['createRangeIn'](_0x59ead3)));}else _0xcd5663&&!_0x243424&&(_0xd47974=_0x1c1ba3['createRangeIn'](_0x59ead3));}else{const _0x2dd16a=_0x1c1ba3['createElement']('tableCellSuggestion'),_0x88f6c5=_0x1c1ba3['createElement']('tableCellSuggestion');_0x1c1ba3['wrap'](_0x1c1ba3['createRangeIn'](_0x59ead3),_0x88f6c5),_0x1c1ba3['insert'](_0x2dd16a,_0x59ead3,0x0);for(const _0x190dd8 of Array['from'](_0x1b7eed['getChildren']()))_0x1c1ba3['insert'](_0x190dd8,_0x2dd16a,'end');_0x12ac8c=_0x190639['fromRange'](_0x1c1ba3['createRangeOn'](_0x2dd16a)),_0xd47974=_0x190639['fromRange'](_0x1c1ba3['createRangeOn'](_0x88f6c5));}const _0x391244=Array['from'](_0x1b7eed['getAttributes']())['filter'](([_0x5aaa3c])=>Be['includes'](_0x5aaa3c));_0x1a781f['cells']['push']({'element':_0x59ead3,'attributes':_0x391244['length']?Object['fromEntries'](_0x391244):null}),_0x12ac8c&&_0x1a781f['insertionRanges']['push'](_0x12ac8c),_0xd47974&&_0x1a781f['deletionRanges']['push'](_0xd47974);},{'priority':'high'}),_0x1aebee['on']('insertColumns',(_0x7e8a49,_0x2fda97)=>{const [_0x4d5c42,_0x5ca077={}]=_0x2fda97;if(!_0x1a781f)return;const _0x22dafc=_0x5ca077['at']||0x0,_0x478c28=_0x5ca077['columns']||0x1;_0x1a781f['columnInsertionIndexes']=new Array(_0x478c28)['fill'](_0x22dafc)['map']((_0x21fa01,_0xd1bef0)=>_0x21fa01+_0xd1bef0);for(const {cell:_0x285102}of _0x1aebee['createTableWalker'](_0x4d5c42,{'startColumn':_0x22dafc,'endColumn':_0x22dafc+_0x478c28-0x1}))_0x1a781f['columnInsertionRanges']['push'](_0xb0b084['model']['createRangeOn'](_0x285102));},{'priority':'low'}),_0x1aebee['on']('insertRows',(_0x5b30ec,_0x4806d2)=>{const [_0x1c24df,_0x122cee={}]=_0x4806d2;if(!_0x1a781f)return;const _0x8c0122=_0x122cee['at']||0x0,_0x2acf46=_0x122cee['rows']||0x1;_0x1a781f['rowInsertionIndexes']=new Array(_0x2acf46)['fill'](_0x8c0122)['map']((_0x5c154d,_0x430b3c)=>_0x5c154d+_0x430b3c);for(const {cell:_0x5d262a}of _0x1aebee['createTableWalker'](_0x1c24df,{'startRow':_0x8c0122,'endRow':_0x8c0122+_0x2acf46-0x1}))_0x1a781f['rowInsertionRanges']['push'](_0xb0b084['model']['createRangeOn'](_0x5d262a));},{'priority':'low'}),_0x3782a2['descriptionFactory']['registerDescriptionCallback'](_0x3157e4=>{if(_0x3157e4['subType']&&_0x3157e4['subType']['startsWith']('tablePaste'))return _0x3157e4['previous']?{}:{'type':'insertion','content':o(_0xb0b084['locale'],'*Replace\x20table\x20cells*')};});const _0x2c9529=()=>!0x1;for(const _0x50b1d8 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion',_0x50b1d8,'join',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('deletion',_0x50b1d8,'join',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x50b1d8,'join',_0x2c9529);_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x2c9529),_0x3782a2['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1f9c2d,_0x2609ea,_0x5bf3ad)=>{const _0x516c8b=_0x1f9c2d['map'](_0x157fac=>_0x157fac['getContainedElement']())['filter'](_0x3a16ae=>_0x3a16ae),_0x5b554b=new Map(_0x516c8b['map'](_0x522df4=>[_0x522df4,null]));if(_0x1a781f){for(const {element:_0x366288,attributes:_0x43b017}of _0x1a781f['cells'])_0x43b017&&_0x5b554b['set'](_0x366288,_0x43b017);}else{if(_0x5bf3ad&&_0x5bf3ad['markerAttributes'])for(const [_0x5589b4,_0x43d563]of Object['entries'](_0x5bf3ad['markerAttributes'])){const _0x5acdb7=_0xb0b084['model']['markers']['get'](_0x5589b4),_0x39f1cd=_0x5acdb7?_0x5acdb7['getRange']()['getContainedElement']():null;_0x39f1cd&&_0x5b554b['set'](_0x39f1cd,_0x43d563);}}_0xb0b084['model']['change'](_0x261e9c=>{for(const [_0x107169,_0xa1e619]of _0x5b554b)_0x261e9c['setAttributes']({...xe,..._0xa1e619},_0x107169);});});const _0x1b9bb5=(_0x503167,_0x264a50)=>{_0x3782a2['_suggestionFactory']['registerCustomCallback'](_0x503167,'tablePaste',_0x264a50,(_0x5a7f87,_0x293730,_0x5076be)=>{_0xb0b084['model']['change'](_0x2185cf=>{const _0x407cee=[];for(const _0x1b5288 of _0x5a7f87){const _0xfc92e3=_0x1b5288['start']['nodeAfter'];_0xfc92e3['is']('element','tableCellSuggestion')&&_0x407cee['push'](_0xfc92e3);}_0x3782a2['_suggestionFactory']['getSuggestionCallback'](_0x503167,null,_0x264a50)(_0x5a7f87,_0x293730,_0x5076be);for(const _0x47617a of _0x407cee)'$graveyard'!=_0x47617a['root']['rootName']&&_0x2185cf['unwrap'](_0x47617a);});});};_0x1b9bb5('insertion','accept'),_0x1b9bb5('insertion','discard'),_0x1b9bb5('deletion','accept'),_0x1b9bb5('deletion','discard'),_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x241119=>{const _0x2c0131=_0x241119['map'](_0xde9cf7=>_0xde9cf7['getContainedElement']()),_0x5284f8=_0x2c0131[0x0]['findAncestor']('table'),{minRow:_0x6c80ad,maxRow:_0x2bb03f}=_0x1b39a6['_getCoordsForCells'](_0x2c0131);_0x1aebee['removeRows'](_0x5284f8,{'at':_0x6c80ad,'rows':_0x2bb03f-_0x6c80ad+0x1});}),_0x3782a2['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1b18a4=>{const _0x3a57a0=_0x1b18a4['map'](_0x4fb4b9=>_0x4fb4b9['getContainedElement']()),_0x55ed6b=_0x3a57a0[0x0]['findAncestor']('table'),{minColumn:_0x59fc79,maxColumn:_0x1189af}=_0x1b39a6['_getCoordsForCells'](_0x3a57a0);_0x1aebee['removeColumns'](_0x55ed6b,{'at':_0x59fc79,'columns':_0x1189af-_0x59fc79+0x1});});const _0x108e27=(_0x112d3c,_0xa0c79d)=>{if(!_0xa0c79d['subType']||!_0xa0c79d['subType']['startsWith']('tablePaste'))return;const _0x5081fe=_0xa0c79d['attributes']['tablePasteChainId'],_0x496680=_0x3782a2['getSuggestions']()['filter'](_0x2edba7=>_0x2edba7['isInContent']&&_0x2edba7['attributes']&&_0x2edba7['attributes']['tablePasteChainId']==_0x5081fe);_0x496680['length']&&_0xa0c79d['getAllAdjacentSuggestions']()['length']!=_0x496680['length']&&_0x496680['reduce']((_0x557e2b,_0x576620)=>(_0x557e2b['next']=_0x576620,_0x576620['previous']=_0x557e2b,_0x576620));};function _0x4e25ec(_0x28bbd4,_0x41eea0=!0x0){const {id:_0x3746db,authorId:_0x11417c}=_0x3782a2['_splitMarkerName'](_0x28bbd4['markerName']),_0x61dfae=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1343f2=_0x3782a2['activeMarkers']['includes'](_0x28bbd4['markerName']);return _0x1343f2&&_0x61dfae['push']('ck-suggestion-marker--active'),{'classes':_0x61dfae,'attributes':{'data-suggestion':_0x3746db,'data-author-id':_0x11417c},'priority':_0x1343f2&&_0x41eea0?0xbc2:0xbb8};}_0x3782a2['on']('suggestionLoaded',_0x108e27,{'priority':'high'}),_0x3782a2['on']('suggestionUnloaded',_0x108e27,{'priority':'high'}),_0xb0b084['model']['document']['registerPostFixer'](()=>{let _0x5f1ed4=!0x1;const _0x35316c=Array['from'](_0xb0b084['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8de331,data:_0x5f416f}of _0x35316c){const {group:_0x44d1c0,type:_0x2f7200,id:_0x3b5460}=_0x3782a2['_splitMarkerName'](_0x8de331);if('suggestion'!=_0x44d1c0||'deletion'!=_0x2f7200||_0x5f416f['oldRange'])continue;if(!_0x3782a2['hasSuggestion'](_0x3b5460))continue;const _0x12bcb1=_0x3782a2['getSuggestion'](_0x3b5460)['getRanges'](),_0x36855b=_0xb0b084['plugins']['get']('Users')['me'];for(const _0x2350fa of _0x3782a2['getSuggestions']()){if(!_0x2350fa['isInContent']||_0x2350fa['author']!=_0x36855b)continue;if('formatBlock'!=_0x2350fa['type']||'tablePasteCell'!=_0x2350fa['subType'])continue;if(_0x2350fa['getRanges']()['every'](_0x3f92a7=>_0x12bcb1['some'](_0x4bb5d0=>_0x4bb5d0['containsRange'](_0x3f92a7,!0x0)))){for(const _0xfab4ce of _0x2350fa['getAllAdjacentSuggestions']())_0xfab4ce['isInContent']&&(_0xfab4ce['discard'](),_0x5f1ed4=!0x0);}}}return _0x5f1ed4;}),_0xb0b084['model']['document']['registerPostFixer'](_0xc91bf8=>{const _0x52a263=_0xb0b084['commands']['get']('redo');if(!_0x52a263||!_0x52a263['_createdBatches']['has'](_0xc91bf8['batch']))return!0x1;let _0x2c6199=!0x1;const _0x5aab0a=_0xb0b084['plugins']['get']('Users')['me'],_0x5ba2ae=_0xb0b084['model']['document']['differ']['getChanges'](),_0x5854cd=Array['from'](_0xb0b084['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x12edce,data:_0x1972d6})=>{const {group:_0x233930,subType:_0xe4e950,authorId:_0x9abb4c}=_0x3782a2['_splitMarkerName'](_0x12edce);return'suggestion'==_0x233930&&'tablePaste'==_0xe4e950&&_0x9abb4c==_0x5aab0a['id']&&!_0x1972d6['oldRange'];});for(const _0x53483d of _0x5ba2ae){if('insert'!=_0x53483d['type']||'tableCellSuggestion'!=_0x53483d['name']||0x1!=_0x53483d['length'])continue;const _0x204278=_0xc91bf8['createRange'](_0x53483d['position'],_0x53483d['position']['getShiftedBy'](0x1));if(!_0x5854cd['find'](({data:_0x2f8461})=>_0x2f8461['newRange']['isEqual'](_0x204278))){for(const {name:_0x51af8d,data:_0x305f07}of _0x5854cd)if(_0x204278['containsRange'](_0x305f07['newRange'])){_0xc91bf8['updateMarker'](_0x51af8d,{'range':_0x204278}),_0x2c6199=!0x0;break;}}}return _0x2c6199;}),_0xb0b084['model']['document']['registerPostFixer'](_0x2358f6=>{let _0x16bf09=!0x1;const _0xafd8c9=_0xb0b084['plugins']['get']('Users')['me'],_0x2420df=_0x3782a2['getSuggestions']()['filter'](_0x2d6303=>_0x2d6303['isInContent']&&_0x2d6303['author']==_0xafd8c9),_0x360703=new Set(),_0x426b52=new Set();for(const _0x3a9690 of _0x2420df)if('tablePaste'==_0x3a9690['subType'])for(const _0x9a1c3 of _0x3a9690['getMarkers']()){const _0x985554=_0x9a1c3['getRange']()['getContainedElement']();if(_0x985554){if(_0x985554['is']('element','tableCellSuggestion')&&Oe(_0x985554)){_0x3a9690['removeMarker'](_0x9a1c3['name']),_0x360703['add'](_0x985554),_0x16bf09=!0x0;const _0x5d7ff8=_0x985554['nextSibling'],_0x33e6ef=_0x985554['previousSibling'],_0x59b14e=_0x5d7ff8&&_0x5d7ff8['is']('element','tableCellSuggestion'),_0x321406=_0x33e6ef&&_0x33e6ef['is']('element','tableCellSuggestion');_0x59b14e&&!_0x360703['has'](_0x5d7ff8)&&_0x426b52['add'](_0x5d7ff8),_0x321406&&!_0x360703['has'](_0x33e6ef)&&_0x426b52['add'](_0x33e6ef);}else _0x985554['is']('element','paragraph')&&_0x985554['isEmpty']&&(_0x3a9690['removeMarker'](_0x9a1c3['name']),_0x16bf09=!0x0);}}else{if('tablePasteCell'==_0x3a9690['subType']){if(!_0x3a9690['attributes']||!_0x3a9690['attributes']['tablePasteChainId'])continue;const _0x32111d=_0x3a9690['attributes']['markerAttributes'];if(_0x32111d&&Object['keys'](_0x32111d)['length'])continue;const _0x9f18e7=_0x3a9690['attributes']['tablePasteChainId'];let _0x167309=!0x0,_0x3ca5f3=!0x0;for(const _0xcc7a96 of _0x2420df)if(_0xcc7a96['subType']&&_0xcc7a96['subType']['startsWith']('tablePaste')){if(!_0xcc7a96['attributes']['tablePasteChainId']){_0x3ca5f3=!0x1;break;}if(_0xcc7a96['id']!=_0x3a9690['id']&&_0xcc7a96['attributes']['tablePasteChainId']==_0x9f18e7){_0x167309=!0x1;break;}}_0x3ca5f3&&_0x167309&&(_0x3a9690['removeMarkers'](),_0x16bf09=!0x0);}}for(const _0x147021 of _0x360703)_0x2358f6['remove'](_0x147021);for(const _0x137277 of _0x426b52)_0x2358f6['unwrap'](_0x137277);return _0x16bf09;}),_0xb0b084['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x57bb83=>_0x4e25ec(_0x57bb83),'converterPriority':'high'}),_0xb0b084['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x44a1f4,_0x433c33)=>_0x433c33['options']['showSuggestionHighlights']?_0x4e25ec(_0x44a1f4,!0x1):null,'converterPriority':'high'});const _0x10461f=_0xb0b084['editing']['view'];this['listenTo'](_0x10461f['document'],'clipboardOutput',(_0x217ae0,_0xa84c01)=>{const _0x301854=[];for(const _0x2a880d of _0x10461f['createRangeIn'](_0xa84c01['content'])['getItems']())_0x2a880d['is']('element','suggestion-td')&&_0x301854['push'](_0x2a880d);_0x10461f['change'](_0x561a2e=>{for(const _0x1e235e of _0x301854)_0x561a2e['move'](_0x561a2e['createRangeIn'](_0x1e235e),_0x561a2e['createPositionBefore'](_0x1e235e)),_0x561a2e['remove'](_0x1e235e);});});}}function Oe(_0x35973b){if(_0x35973b['isEmpty'])return!0x0;const _0x21ee8a=_0x35973b['getChild'](0x0);return _0x21ee8a['is']('element','paragraph')&&_0x21ee8a['isEmpty'];}function Ue(_0x176937,_0x689b56={},_0x56db32){for(const {isAnchor:_0xc57e1a,cellHeight:_0x5d8373,cellWidth:_0x2a03f9}of _0x56db32['createTableWalker'](_0x176937,{'includeAllSlots':!0x0,..._0x689b56}))if(!_0xc57e1a||0x1!=_0x5d8373||0x1!=_0x2a03f9)return!0x1;return!0x0;}class Dt extends _0x5d6089{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5062e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5062e6['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5062e6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5062e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5062e6['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5062e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5062e6['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x2fe51c,_0x3846a8){const _0x4e4822=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5daf94=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3b5146=_0x3846a8['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x329547=_0x5daf94['getColumnGroupElement'](_0x3b5146);let _0x335567=_0x329547?_0x5daf94['getTableColumnsWidths'](_0x329547):null,_0x389d81=_0x3b5146['getAttribute']('tableWidth')||null;const _0xf6c9c3=_0x3846a8['tableWidth']||_0x389d81,_0x2b288a=_0x3846a8['columnWidths']||_0x335567,_0x22e9df=this['editor']['plugins']['get']('Users')['me'];for(const _0x4bb18a of _0x4e4822['getSuggestions']()){const _0x40b588=_0x4bb18a['getContainedElement']();if('resizeTable'===_0x4bb18a['subType']&&_0x40b588===_0x3b5146){_0x4bb18a['author']!==_0x22e9df&&_0x4bb18a['discard']();const _0x44a043=_0x4bb18a['data']['commandParams'];_0x389d81=_0x44a043[0x0]['tableWidth'],_0x335567=_0x44a043[0x0]['columnWidths'];break;}}_0x2fe51c({'table':_0x3b5146,'tableWidth':_0xf6c9c3,'columnWidths':_0x2b288a}),_0x4e4822['markBlockFormat'](_0x3b5146,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x389d81,'columnWidths':_0x335567}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x5c6426){if('formatBlock'!=_0x5c6426['type']&&'formatInline'!=_0x5c6426['type'])return;const {data:_0x444390}=_0x5c6426;if(_0x444390&&'resizeTable'===_0x444390['formatGroupId']){const _0x2a04b5='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2a04b5)};}}}class Mt extends _0x5d6089{['afterInit'](){const _0x23fccf=this['editor'];_0x23fccf['plugins']['has']('Template')&&_0x23fccf['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x5d6089{['afterInit'](){const _0x358c1f=this['editor'];if(!_0x358c1f['commands']['get']('insertTableOfContents'))return;_0x358c1f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x11b579=_0x358c1f['plugins']['get']('TrackChangesEditing'),_0x2b33c3=_0x358c1f['locale'];_0x11b579['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18f0bf=>o(_0x2b33c3,'ELEMENT_TABLE_OF_CONTENTS',_0x18f0bf));}}class Bt extends _0x5d6089{['afterInit'](){const _0x420394=this['editor'];if(!_0x420394['plugins']['has']('Title'))return;const _0x16eba4=_0x420394['plugins']['get']('TrackChangesEditing');_0x16eba4['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x420394['locale'],'ELEMENT_TITLE')),_0x420394['model']['document']['registerPostFixer'](_0x143633=>{let _0x54c1fd=!0x1;const _0x59c9a3=Array['from'](_0x420394['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x30a60a,data:_0x311c4a}of _0x59c9a3){const {group:_0x76f97d}=_0x16eba4['_splitMarkerName'](_0x30a60a);if('suggestion'!==_0x76f97d||!_0x311c4a['newRange'])continue;const _0x41c1ef=_0x311c4a['newRange'],_0x2f460b=_0x41c1ef['end']['nodeBefore'];if(!_0x2f460b||!_0x2f460b['is']('element','title-content'))continue;if(!_0x41c1ef['start']['isTouching'](_0x41c1ef['end']))continue;const _0x2205c7=_0x420394['model']['schema']['getNearestSelectionRange'](_0x41c1ef['end'],'forward');if(_0x2205c7&&_0x2205c7['isCollapsed']){const _0x54d688=_0x143633['createRange'](_0x41c1ef['start'],_0x2205c7['start']);_0x54d688['isEqual'](_0x41c1ef)||(_0x143633['updateMarker'](_0x30a60a,{'range':_0x54d688}),_0x54c1fd=!0x0);}_0x54c1fd||(_0x143633['removeMarker'](_0x30a60a),_0x54c1fd=!0x0);}return _0x54c1fd;});}}class Ot extends _0x5d6089{['afterInit'](){const _0x494c09=this['editor'],_0x373895=_0x494c09['plugins']['get']('TrackChangesEditing');_0x494c09['plugins']['has']('Uploadcare')&&(_0x373895['enableCommand']('uploadcare'),_0x494c09['plugins']['has']('UploadcareImageEdit')&&(_0x373895['enableCommand']('uploadcareImageEdit'),_0x373895['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x373895['registerBlockAttribute']('uploadcareImageId'),_0x373895['descriptionFactory']['registerDescriptionCallback'](_0x2acc7b=>{if('attribute'!=_0x2acc7b['type'])return;const {data:_0x1a43c8}=_0x2acc7b;return _0x1a43c8&&'uploadcareImageId'==_0x1a43c8['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x5d6089{['afterInit'](){const _0x41daa8=this['editor'],_0x5f1dd2=_0x41daa8['plugins']['get']('TrackChangesEditing');_0x41daa8['plugins']['has']('UndoEditing')&&(_0x5f1dd2['enableCommand']('undo'),_0x5f1dd2['enableCommand']('redo'));}}class Tt extends _0x5d6089{static get['requires'](){return[vt];}['afterInit'](){const _0x545db2=this['editor'];if(!_0x545db2['plugins']['has']('TableCaptionEditing'))return;_0x545db2['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x5d6089{['tableProperties'];['tableCellProperties'];constructor(_0x3f521d){super(_0x3f521d),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 _0x145ac4=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2c9fc6 of this['tableProperties'])_0x145ac4['enableCommand'](_0x2c9fc6,(_0x404541,_0x5e96d6)=>{const _0x43974d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2c9fc6,[_0x43974d],this['tableProperties'],'tableProperties',_0x404541,_0x5e96d6);});_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x145ac4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x45bc50,_0x36c3b4)=>this['handleDiscardAction'](this['tableProperties'],_0x45bc50,_0x36c3b4)),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x453017 of this['tableCellProperties'])_0x145ac4['enableCommand'](_0x453017,(_0x12ea5c,_0x4e40b4)=>{const _0x40cc3f=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x453017,_0x40cc3f,this['tableCellProperties'],'tableCellProperties',_0x12ea5c,_0x4e40b4);});_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x145ac4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x596848,_0x7084f2)=>this['handleDiscardAction'](this['tableCellProperties'],_0x596848,_0x7084f2)),_0x145ac4['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x145ac4['descriptionFactory']['registerDescriptionCallback'](_0x425cb1=>this['handleSuggestionDescription'](_0x425cb1));}['_handlePropertyChange'](_0x25ef7b,_0x395369,_0x451cc7,_0x4cfca9,_0xf6e3a7,_0xbfb52a){const _0x363134=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0xbfb52a['batch'],()=>{for(const _0x35ac03 of _0x395369){if(this['_getSuggestion'](_0x35ac03,_0x4cfca9))_0xf6e3a7(_0xbfb52a);else{const _0x621108={};for(const _0x5d5721 of _0x451cc7){const _0x5801d4=_0x35ac03['getAttribute'](_0x5d5721);void 0x0!==_0x5801d4&&(_0x621108[_0x5d5721]=_0x5801d4);}_0xf6e3a7(_0xbfb52a),_0x363134['markBlockFormat'](_0x35ac03,{'commandParams':[_0x621108]},[],_0x4cfca9);}}});}['handleDiscardAction'](_0x214625,_0x26e32e,_0x138f57){const _0x37c019=_0x26e32e[0x0]['start']['nodeAfter'],_0x3f3cd1=_0x138f57['commandParams'][0x0];this['editor']['model']['change'](_0x583646=>{for(const _0x330730 of _0x214625)void 0x0!==_0x3f3cd1[_0x330730]?_0x583646['setAttribute'](_0x330730,_0x3f3cd1[_0x330730],_0x37c019):_0x583646['removeAttribute'](_0x330730,_0x37c019);});}['handleSuggestionDescription'](_0x17b3cd){if(_0x17b3cd['data'])switch(_0x17b3cd['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x523012,_0x506fef){const _0x235c97=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x342bbd of _0x235c97['getSuggestions']({'skipNotAttached':!0x0})){const _0x1eb4a2=_0x342bbd['getContainedElement']();if(_0x342bbd['subType']===_0x506fef&&_0x1eb4a2===_0x523012)return _0x342bbd;}return null;}}const m='$elementName';class p extends _0x5d6089{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xb5d06b,_0x51645a,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3cc163){super(_0x3cc163),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x245d66,_0x274c6f,_0x6878d4,_0x1307ff)=>{this['_model']['change'](()=>{for(const _0x2e432e of[..._0x1307ff,..._0x6878d4])this['_model']['markers']['has'](_0x2e432e)&&_0x3cc163['editing']['reconvertMarker'](_0x2e432e);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x3cc163['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x3cc163['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x3cc163['config']['get']('trackChanges.trackFormatChanges'),_0x3cc163['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x3cc163['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x3cc163,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x4ed674=this['editor'],_0x1e4345=(_0x182d68,_0x2094bc)=>{if('attribute'!=_0x182d68)return'ck-suggestion-marker-'+_0x182d68;const _0x577803=_0x2094bc['split']('|')[0x0];return this['_isBlockAttribute'](_0x577803)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4ed674['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x543c7d=>{const {id:_0x235e3b,authorId:_0x3d1749,type:_0x308aa6,subType:_0x20b832}=this['_splitMarkerName'](_0x543c7d['markerName']),_0x53abfe=['ck-suggestion-marker',_0x1e4345(_0x308aa6,_0x20b832)];let _0x4d100d=0xbb8;return this['activeMarkers']['includes'](_0x543c7d['markerName'])&&(_0x53abfe['push']('ck-suggestion-marker--active'),_0x4d100d=0xbc2),'deletion'==_0x308aa6&&(_0x4d100d+=0x5),{'classes':_0x53abfe,'attributes':{'data-suggestion':_0x235e3b,'data-author-id':_0x3d1749},'priority':_0x4d100d};}}),_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x46aa8a=>{_0x46aa8a['on']('addMarker:suggestion',(_0x1f28c2,_0x17de6b,_0x5c4bdd)=>{if(!_0x5c4bdd['options']['showSuggestionHighlights'])return;const _0x4b8c61=_0x17de6b['item'];if(!_0x4b8c61)return;const _0x27f5c7=_0x5c4bdd['mapper']['toViewElement'](_0x4b8c61);_0x4ed674['model']['schema']['isObject'](_0x4b8c61)&&_0x27f5c7&&!_0x27f5c7['getCustomProperty']('widget')&&_0x27f5c7['is']('containerElement')&&_0x464eed(_0x27f5c7,_0x5c4bdd['writer']);},{'priority':'high'});}),_0x4ed674['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xcb5b32,_0x568c30)=>{if(!_0x568c30['options']['showSuggestionHighlights'])return null;const {type:_0x3e1767,subType:_0x46ed25}=this['_splitMarkerName'](_0xcb5b32['markerName']);return{'classes':['ck-suggestion-marker',_0x1e4345(_0x3e1767,_0x46ed25)],'priority':0xbb8};}});const _0x4948f5=({showActiveMarkers:_0x34b418=!0x0,isAttributeSuggestion:_0x2fcd7d=!0x1}={})=>(_0xd37f8a,_0x2f3e4b,_0x3debda)=>{if(!_0x2f3e4b['item'])return;const {id:_0x46703b,authorId:_0x53f81f}=this['_splitMarkerName'](_0x2f3e4b['markerName']);if(_0x2fcd7d){const _0x1d993a=this['_suggestions']['get'](_0x46703b),_0x15a7b5=this['_getAttributeKey'](_0x1d993a);if(!this['_isBlockAttribute'](_0x15a7b5))return;}if(_0x2f3e4b['item']['is']('selection'))return void _0x3debda['consumable']['consume'](_0x2f3e4b['item'],_0xd37f8a['name']);const _0x4ef210=_0x3debda['mapper']['toViewElement'](_0x2f3e4b['item']);if(_0x2f3e4b['item']['is']('element')&&_0x4ed674['model']['schema']['isBlock'](_0x2f3e4b['item'])&&!_0x4ef210['getCustomProperty']('addHighlight')){_0x3debda['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x4ef210),_0x3debda['writer']['setAttribute']('data-suggestion',_0x46703b,_0x4ef210),_0x3debda['writer']['setAttribute']('data-author-id',_0x53f81f,_0x4ef210),_0x3debda['mapper']['bindElementToMarker'](_0x4ef210,_0x2f3e4b['markerName']),_0x34b418&&(this['activeMarkers']['includes'](_0x2f3e4b['markerName'])?_0x3debda['writer']['addClass']('ck-suggestion-marker--active',_0x4ef210):_0x3debda['writer']['removeClass']('ck-suggestion-marker--active',_0x4ef210));for(const _0x44ceb5 of _0x4ed674['model']['createRangeIn'](_0x2f3e4b['item'])['getItems']())_0x3debda['consumable']['consume'](_0x44ceb5,_0xd37f8a['name']);_0x3debda['consumable']['consume'](_0x2f3e4b['item'],_0xd37f8a['name']);}};_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x1ce13a=>{_0x1ce13a['on']('addMarker:suggestion:formatBlock',(_0x44e538,_0xd5d6e2,_0x1132f5)=>{_0x1132f5['options']['showSuggestionHighlights']&&_0x4948f5({'showActiveMarkers':!0x1})(_0x44e538,_0xd5d6e2,_0x1132f5);},{'priority':'highest'});}),_0x4ed674['conversion']['for']('dataDowncast')['add'](_0x300ef7=>{_0x300ef7['on']('addMarker:suggestion:attribute',(_0x3c0fbd,_0x24d36f,_0x2e8a2e)=>{_0x2e8a2e['options']['showSuggestionHighlights']&&_0x4948f5({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x3c0fbd,_0x24d36f,_0x2e8a2e);},{'priority':'highest'});}),_0x4ed674['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f7e66,_0x26d4c8)=>_0x26d4c8['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f7e66['substr'](0xb)}}),_0x4ed674['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x140a75,{writer:_0x13af1d})=>{let _0x80f8f7='suggestion:'+_0x140a75['getAttribute']('suggestion-type')+':'+_0x140a75['getAttribute']('id');return _0x140a75['getAttribute']('marker-count')&&(_0x80f8f7+=':'+_0x140a75['getAttribute']('marker-count')),_0x13af1d['createElement']('$marker',{'data-name':_0x80f8f7});}}),_0x4ed674['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x24e405=>{_0x24e405['on']('addMarker:suggestion:formatBlock',_0x4948f5(),{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x11f33f=>{_0x11f33f['on']('addMarker:suggestion:attribute',_0x4948f5({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x284255=>{_0x284255['on']('removeMarker:suggestion:formatBlock',(_0xafac1d,_0x545bb1,_0x50bce8)=>{const _0x2e42c3=_0x50bce8['mapper']['markerNameToElements'](_0x545bb1['markerName']);if(_0x2e42c3){for(const _0x45cb98 of _0x2e42c3)_0x45cb98['getCustomProperty']('addHighlight')||(_0x50bce8['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45cb98),_0x50bce8['writer']['removeAttribute']('data-suggestion',_0x45cb98),_0x50bce8['writer']['removeAttribute']('data-author-id',_0x45cb98),_0x50bce8['mapper']['unbindElementFromMarkerName'](_0x45cb98,_0x545bb1['markerName']));}},{'priority':'high'});}),_0x4ed674['conversion']['for']('editingDowncast')['add'](_0x156d9e=>{_0x156d9e['on']('removeMarker:suggestion:attribute',(_0x56a6da,_0x5e28c9,_0x200aee)=>{const _0x4558c2=_0x200aee['mapper']['markerNameToElements'](_0x5e28c9['markerName']);if(!_0x4558c2)return;const {id:_0xc457d6}=this['_splitMarkerName'](_0x5e28c9['markerName']),_0x3dea38=this['_suggestions']['get'](_0xc457d6),_0x164083=this['_getAttributeKey'](_0x3dea38);if(this['_isBlockAttribute'](_0x164083)){for(const _0xc9ce6f of _0x4558c2)_0xc9ce6f['getCustomProperty']('addHighlight')||(_0x200aee['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xc9ce6f),_0x200aee['writer']['removeAttribute']('data-suggestion',_0xc9ce6f),_0x200aee['writer']['removeAttribute']('data-author-id',_0xc9ce6f),_0x200aee['mapper']['unbindElementFromMarkerName'](_0xc9ce6f,_0x5e28c9['markerName']));}},{'priority':'high'});}),_0x4ed674['model']['document']['registerPostFixer'](_0x2caad2=>{let _0x56ec3a=!0x1;const _0x345903=Array['from'](_0x4ed674['model']['document']['differ']['getChangedMarkers']()),_0x2ede29=new Set();for(const {name:_0x4b0548,data:_0x6937ec}of _0x345903){const {group:_0x3a2bc1,type:_0x3f4934,subType:_0xd54fb2,id:_0x3a7d2e}=this['_splitMarkerName'](_0x4b0548);if('suggestion'!==_0x3a2bc1)continue;const _0x5044dd=this['_suggestions']['get'](_0x3a7d2e);if(null!=_0x6937ec['newRange']){'formatInline'==_0x3f4934&&(_0x56ec3a=_0x56ec3a||Gt(_0x6937ec['newRange'],_0x4b0548,_0x2caad2,_0x4ed674['model']['schema']));const _0xf2e1ca='attribute'==_0x3f4934&&this['_isBlockAttribute'](_0xd54fb2['split']('|')[0x0]);if(_0x6937ec['newRange']['isCollapsed']||'$graveyard'==_0x6937ec['newRange']['root']['rootName']||'formatBlock'==_0x3f4934&&!Lt(_0x6937ec['newRange'])||_0xf2e1ca&&!Lt(_0x6937ec['newRange'])||'deletion'==_0x3f4934&&!(!Pt(_0x183299=_0x6937ec['newRange'])&&!function(_0x21e678){return _0x21e678['start']['parent']==_0x21e678['end']['nodeBefore']&&_0x21e678['start']['isAtEnd'];}(_0x183299)))_0x2caad2['removeMarker'](_0x4b0548),_0x56ec3a=!0x0;else{if(!_0x5044dd||!_0x5044dd['isInContent'])continue;if(_0x6937ec['newRange']&&_0x6937ec['oldRange']&&_0x6937ec['newRange']['isEqual'](_0x6937ec['oldRange']))continue;_0x2ede29['add'](_0x5044dd);}}}var _0x183299;return _0x2ede29['size']>0x0&&(_0x56ec3a=!!this['_joinWithAdjacentSuggestions'](_0x2ede29)||_0x56ec3a),_0x56ec3a;}),_0x4ed674['model']['document']['registerPostFixer'](_0x5ccd18=>{let _0x4475c8=!0x1;for(const _0x3df3ab of _0x4ed674['model']['document']['differ']['getChanges']())if('insert'==_0x3df3ab['type'])for(const _0x32fc1f of this['_suggestions']['values']()){if(_0x32fc1f['isMultiRange']||!_0x32fc1f['isInContent'])continue;const _0x1eae03='formatBlock'==_0x32fc1f['type'],_0x972a7=this['_getAttributeKey'](_0x32fc1f),_0x53b680=_0x972a7&&this['_isBlockAttribute'](_0x972a7);if(!_0x1eae03&&!_0x53b680)continue;const _0x3d4bc2=_0x32fc1f['getFirstRange']();if(_0x3d4bc2['start']['parent']!=_0x3d4bc2['end']['parent']&&!_0x3d4bc2['end']['isAtEnd']){const _0x181691=_0x4ed674['model']['createPositionAt'](_0x3d4bc2['start']['nodeAfter'],'end'),_0x125804=_0x4ed674['model']['createRange'](_0x3d4bc2['start'],_0x181691);_0x5ccd18['updateMarker'](_0x32fc1f['getFirstMarker'](),{'range':_0x125804}),_0x4475c8=!0x0;}}return _0x4475c8;}),_0x4ed674['model']['document']['registerPostFixer'](_0x1f4765=>this['_processAttributeChanges'](_0x1f4765)),_0x4ed674['model']['document']['registerPostFixer'](_0x3b15a9=>!_0x3b15a9['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x3b15a9)),_0x4ed674['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4ed674['model']['document']['on']('change:data',(_0x52a16d,_0x224487)=>{if(!_0x224487['isLocal']||_0x224487['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xcecaf=_0x4ed674['model']['document']['differ']['getChanges']();if(0x0==_0xcecaf['length'])return;const _0xdb37c8=[],_0x39d6e3=_0xcecaf['filter'](_0x73ade=>'attribute'==_0x73ade['type']),_0x506ebb=_0xcecaf['filter'](_0x1f40c9=>'insert'==_0x1f40c9['type']&&'$text'!=_0x1f40c9['name']);for(const _0x33cb90 of _0x39d6e3)this['_isRegisteredAttribute'](_0x33cb90['attributeKey'])&&_0xdb37c8['push']({'key':_0x33cb90['attributeKey'],'newValue':_0x33cb90['attributeNewValue'],'oldValue':_0x33cb90['attributeOldValue'],'range':Jt(_0x33cb90['range'],_0x4ed674['model'])});for(const _0x48febd of _0x506ebb){if('rename'!=_0x48febd['action']&&'refresh'!=_0x48febd['action'])continue;const _0xfe9d58=Ht(_0x48febd['position']['nodeAfter'],_0x4ed674['model']),_0x4aea0c=_0x48febd['before'];'rename'==_0x48febd['action']&&_0xdb37c8['push']({'key':m,'newValue':_0x48febd['name'],'oldValue':_0x4aea0c['name'],'range':_0xfe9d58});for(const [_0x565055,_0x3cb43b]of _0x4aea0c['attributes']){if(!this['_isRegisteredAttribute'](_0x565055))continue;const _0x5277cb=_0x48febd['attributes']['get'](_0x565055);_0x3cb43b!==_0x5277cb&&_0xdb37c8['push']({'key':_0x565055,'newValue':_0x5277cb,'oldValue':_0x3cb43b,'range':_0xfe9d58});}for(const [_0x2c83fd,_0x4b6a3f]of _0x48febd['attributes'])this['_isRegisteredAttribute'](_0x2c83fd)&&(_0x4aea0c['attributes']['has'](_0x2c83fd)||_0xdb37c8['push']({'key':_0x2c83fd,'newValue':_0x4b6a3f,'oldValue':null,'range':_0xfe9d58}));}0x0!=_0xdb37c8['length']&&_0x4ed674['model']['enqueueChange'](_0x224487,_0x2d5807=>{const _0x1a90b2=_0x3e98cb();for(const {range:_0x400181,key:_0x40c0f0,oldValue:_0x58e82b,newValue:_0x2c70d4}of _0xdb37c8)this['markAttributeChange'](_0x400181,_0x40c0f0,_0x58e82b,_0x2c70d4,{'groupId':_0x1a90b2});this['_reduceExistingSuggestions'](_0x2d5807,_0xdb37c8);});},{'priority':'lowest'}),_0x4ed674['model']['markers']['on']('update:suggestion',(_0x478e54,_0x4d885d,_0x2397c0)=>{if(null==_0x2397c0){const {id:_0x460d27}=this['_splitMarkerName'](_0x4d885d['name']),_0x1ea633=this['_suggestions']['get'](_0x460d27);_0x1ea633&&_0x1ea633['addMarkerName'](_0x4d885d['name']);}}),_0x4ed674['model']['document']['on']('change:data',()=>{const _0xf0b53b=Array['from'](_0x4ed674['model']['document']['differ']['getChangedMarkers']())['filter'](_0x5b4154=>'suggestion'===this['_splitMarkerName'](_0x5b4154['name'])['group']);if(0x0===_0xf0b53b['length'])return;_0xf0b53b['sort']((_0x21bfd0,_0x23f2a3)=>{const _0x1757ad=_0x21bfd0['data']['oldRange'],_0x4ad5f4=_0x23f2a3['data']['oldRange'];return null===_0x1757ad&&null===_0x4ad5f4?0x0:null===_0x1757ad&&null!==_0x4ad5f4?-0x1:null!==_0x1757ad&&null===_0x4ad5f4?0x1:_0x1757ad['start']['isBefore'](_0x4ad5f4['start'])?-0x1:0x1;});const _0x1b1f59=new Set(),_0x38f36b=new Set();for(const {name:_0x3fcc62,data:_0x19a915}of _0xf0b53b){const {id:_0x1c7886}=this['_splitMarkerName'](_0x3fcc62);if(null===_0x19a915['oldRange']){const _0x3859ec=this['_handleNewSuggestionMarker'](_0x3fcc62);_0x38f36b['add'](_0x3859ec);}else{const _0x436110=this['_suggestions']['get'](_0x1c7886);null!==_0x19a915['newRange']||_0x436110['isInContent']?(_0x1b1f59['add'](_0x436110['head']),_0x38f36b['add'](_0x436110)):this['_removeSuggestion'](_0x436110);}}_0x38f36b['size']>0x0&&this['_refreshSuggestionsChain'](_0x38f36b);for(const _0x4ee867 of _0x1b1f59)this['fire']('suggestionChanged',_0x4ee867);}),_0x4ed674['model']['on']('applyOperation',(_0x9efe6a,_0x302f9e)=>{const _0x414ccf=_0x302f9e[0x0];if(!this['_suggestions']['size'])return;if(!_0x414ccf['isDocumentOperation'])return;if(_0x414ccf['batch']['isUndo']||!_0x414ccf['batch']['isLocal'])return;let _0x4b0878,_0x273d18;switch(_0x414ccf['type']){case'insert':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['position']),_0x273d18=_0x4b0878['getShiftedBy'](_0x414ccf['howMany']);break;case'split':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['splitPosition']),_0x273d18=_0x4ed674['model']['createPositionAt'](_0x414ccf['moveTargetPosition']);break;case'move':_0x4b0878=_0x4ed674['model']['createPositionAt'](_0x414ccf['targetPosition']),_0x273d18=_0x4b0878['getShiftedBy'](_0x414ccf['howMany']);break;default:return;}const _0x29e5ed=_0x4ed674['model']['createRange'](_0x4b0878,_0x273d18);_0x4ed674['model']['change'](()=>{for(const {suggestion:_0x48ce4c,meta:_0x89f8db}of this['_findSuggestions'](_0x29e5ed)){if(_0x48ce4c['isMultiRange'])continue;if('formatInline'==_0x48ce4c['type'])continue;const _0x51092a=this['_getAttributeKey'](_0x48ce4c);if(_0x51092a&&this['_isBlockAttribute'](_0x51092a)&&'split'!=_0x414ccf['type'])continue;const _0xc4f359=_0x48ce4c['data']&&_0x48ce4c['data']['multipleBlocks'];('formatBlock'!=_0x48ce4c['type']||'split'==_0x414ccf['type']&&!_0xc4f359)&&(_0x89f8db['containsRangeInObject']||'insertion'==_0x48ce4c['type']&&_0x89f8db['isOwn']||_0x48ce4c['getFirstRange']()['containsRange'](_0x29e5ed)&&this['_breakSuggestionMarker'](_0x48ce4c,_0x4b0878,_0x273d18));}});},{'priority':'lowest'}),_0x4ed674['model']['on']('deleteContent',(_0x4a446e,_0x4935e2)=>{const _0x4fcdda=_0x4935e2[0x0],_0x42a310=_0x4935e2[0x1];if(_0x42a310&&_0x42a310['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4fcdda['isCollapsed'])return;const _0x54d4a6=_0x4ed674['model']['schema'],{start:_0x4bda76,end:_0xb1243e}=_0x4fcdda['getFirstRange'](),_0x30ff48=_0x4bda76['nodeAfter']&&_0x54d4a6['isLimit'](_0x4bda76['nodeAfter'])?null:_0x54d4a6['getNearestSelectionRange'](_0x4bda76,'forward'),_0xd6e411=_0xb1243e['nodeBefore']&&_0x54d4a6['isLimit'](_0xb1243e['nodeBefore'])?null:_0x54d4a6['getNearestSelectionRange'](_0xb1243e,'backward'),_0x4eea19=_0x4ed674['model']['createRange'](_0x30ff48?_0x30ff48['start']:_0x4bda76,_0xd6e411?_0xd6e411['end']:_0xb1243e);_0x4ed674['model']['change'](_0x385ec9=>{this['markDeletion'](_0x4eea19);const _0x5cb12f=_0x4ed674['model']['schema']['getNearestSelectionRange'](_0x4eea19['start']);_0x4fcdda['is']('documentSelection')?_0x385ec9['setSelection'](_0x5cb12f):_0x4fcdda['setTo'](_0x5cb12f);}),_0x4a446e['stop']();},{'priority':_0xa7b267['normal']+0xa}),_0x4ed674['model']['on']('insertContent',(_0x27b6f5,_0x338092)=>{const _0x5976f8=_0x338092[_0x338092['length']-0x1];_0x5976f8&&_0x5976f8['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4ed674['model']['change'](()=>{let _0x4c8b11=_0x4ed674['model']['insertContent'](_0x338092[0x0],_0x338092[0x1],_0x338092[0x2],{'forceDefaultExecution':!0x0});if(!_0x4c8b11)return;_0x27b6f5['return']=_0x4c8b11['clone']();const _0x9568cf=_0x4c8b11['end']['nodeBefore'],_0x2769eb=_0x4ed674['model']['schema'];_0x9568cf&&_0x2769eb['isBlock'](_0x9568cf)&&!_0x2769eb['isObject'](_0x9568cf)&&(_0x4c8b11=_0x4ed674['model']['createRange'](_0x4c8b11['start'],_0x4ed674['model']['createPositionAt'](_0x9568cf,'end'))),this['markInsertion'](_0x4c8b11);}),_0x27b6f5['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x49e740=new O(_0x4ed674,this['_suggestions']);_0x4ed674['commands']['add']('acceptSuggestion',_0x49e740),this['enableCommand']('acceptSuggestion');const _0x185cf7=new R(_0x4ed674,this['_suggestions']);_0x4ed674['commands']['add']('discardSuggestion',_0x185cf7),this['enableCommand']('discardSuggestion'),_0x4ed674['commands']['add']('acceptAllSuggestions',new x(_0x4ed674,_0x49e740,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4ed674['commands']['add']('discardAllSuggestions',new x(_0x4ed674,_0x185cf7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4ed674['commands']['add']('acceptSelectedSuggestions',new E(_0x4ed674,_0x49e740,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4ed674['commands']['add']('discardSelectedSuggestions',new E(_0x4ed674,_0x185cf7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x49ba3e=_0x4ed674['plugins']['get']('CommentsRepository');this['listenTo'](_0x49ba3e,'addComment',(_0x48457f,{threadId:_0x2c04b5})=>{const _0xdce684=this['_suggestions']['get'](_0x2c04b5);_0xdce684&&_0xdce684['commentThread']&&0x1===_0xdce684['commentThread']['length']&&this['_updateSuggestionData'](_0x2c04b5,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x49ba3e,'removeComment',(_0x222fd6,{threadId:_0x587f63})=>{const _0x77641d=this['_suggestions']['get'](_0x587f63);_0x77641d&&_0x77641d['commentThread']&&!_0x77641d['commentThread']['length']&&this['_updateSuggestionData'](_0x587f63,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x45134e){const _0x1c4edf=_0x441c17([0x65,0x74,0x38,0x4e,0x78,0x55,0x6b,0x6c,0x5a,0x57,0x37,0x30,0x64,0x4d,0x56,0x53,0x59,0x31,0x35,0x4a,0x75,0x58,0x32,0x47,0x39,0x33,0x51,0x69,0x4f,0x61,0x6f,0x45,0x66,0x62,0x43,0x6d,0x68,0x73,0x41,0x76,0x49,0x44,0x4c,0x54,0x42,0x6a,0x79,0x72,0x46,0x77,0x71,0x4b,0x50,0x70,0x7a,0x36,0x48,0x67,0x34,0x6e,0x52,0x63]),_0x57262c=0x19901080,_0x590c43=0x19974e20^_0x57262c,_0x493745=window[_0x441c17([0x44,0x61,0x74,0x65])][_0x441c17([0x6e,0x6f,0x77])](),_0x59d287=_0x45134e[_0x441c17([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x18f07b=new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5f11fa=>{_0x59d287[_0x441c17([0x6f,0x6e,0x63,0x65])](_0x441c17([0x72,0x65,0x61,0x64,0x79]),_0x5f11fa);}),_0x1c51a3={[_0x441c17([0x6b,0x74,0x79])]:_0x441c17([0x45,0x43]),[_0x441c17([0x75,0x73,0x65])]:_0x441c17([0x73,0x69,0x67]),[_0x441c17([0x63,0x72,0x76])]:_0x441c17([0x50,0x2d,0x32,0x35,0x36]),[_0x441c17([0x78])]:_0x441c17([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]),[_0x441c17([0x79])]:_0x441c17([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]),[_0x441c17([0x61,0x6c,0x67])]:_0x441c17([0x45,0x53,0x32,0x35,0x36])},_0x334cf4=_0x59d287[_0x441c17([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x441c17([0x67,0x65,0x74])](_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x376f9a(){let _0x395195,_0x503ce3=null,_0x13a6c3=null;try{if(_0x334cf4==_0x441c17([0x47,0x50,0x4c]))return _0x441c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x395195=_0x2f05eb(),!_0x395195)return _0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x395195[_0x441c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x13a6c3=_0x410a8c(_0x395195[_0x441c17([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x395195[_0x441c17([0x6a,0x74,0x69])])),await _0x4ea199()?_0x3973bc()?_0x56b36d()?_0x441c17([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47467f()?(_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x441c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x503ce3=_0x252350(_0x441c17([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x441c17([0x74,0x72,0x69,0x61,0x6c])&&(_0x503ce3=_0x252350(_0x441c17([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5ed706()):_0x441c17([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x441c17([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3b9f2e){return _0x441c17([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x56b36d(){const _0x2da859=[_0x441c17([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x441c17([0x74,0x72,0x69,0x61,0x6c])][_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x493745/0x3e8:0xe10*_0x590c43;return _0x395195[_0x441c17([0x65,0x78,0x70])]<_0x2da859;}function _0x3973bc(){const _0xad5344=_0x395195[_0x441c17([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xad5344)return!0x1;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x2a])))return!0x0;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x54,0x43])))return!0x0;if(_0xad5344[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x52,0x54,0x43]))){if(_0x3baa20())return!0x0;if(_0x2e5019()||_0x4f12ce())return!0x0;}return!0x1;}function _0x47467f(){const _0x18afcc=_0x395195[_0x441c17([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18afcc||0x0==_0x18afcc[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x571103}=new URL(window[_0x441c17([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18afcc[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x571103))return!0x0;const _0x24d955=_0x571103[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e]));return _0x18afcc[_0x441c17([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29a78a=>_0x29a78a[_0x441c17([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x441c17([0x2a])))[_0x441c17([0x6d,0x61,0x70])](_0x4a271a=>_0x4a271a[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e])))[_0x441c17([0x73,0x6f,0x6d,0x65])](_0x57889c=>_0x24d955[_0x441c17([0x65,0x76,0x65,0x72,0x79])]((_0x135efb,_0x424e4e)=>_0x57889c[_0x424e4e]===_0x135efb||_0x57889c[_0x424e4e]===_0x441c17([0x2a])));}function _0x5ed706(){return _0x503ce3&&_0x13a6c3?new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1d3a81,_0x45423b)=>{_0x503ce3[_0x441c17([0x74,0x68,0x65,0x6e])](_0x1d3a81,_0x45423b),_0x13a6c3[_0x441c17([0x74,0x68,0x65,0x6e])](_0x13fa3f=>{_0x13fa3f!=_0x441c17([0x56,0x61,0x6c,0x69,0x64])&&_0x1d3a81(_0x13fa3f);},_0x45423b);}):_0x503ce3||_0x13a6c3||_0x441c17([0x56,0x61,0x6c,0x69,0x64]);}}function _0x410a8c(_0x22c4db,_0x1b810c){return new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f006=>{if(_0x215fce())return _0x49f006(_0x441c17([0x56,0x61,0x6c,0x69,0x64]));_0x25e219(),_0x59d287[_0x441c17([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2f53ab=!0x1;const _0x442643=_0x3e98cb();function _0x3bc501(_0x32e160){return!!_0x32e160&&(typeof _0x32e160===_0x441c17([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x32e160===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x32e160[_0x441c17([0x74,0x68,0x65,0x6e])]===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x32e160[_0x441c17([0x63,0x61,0x74,0x63,0x68])]===_0x441c17([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x69bc1e(_0x47c83c){_0x3be4e7(_0x47c83c)[_0x441c17([0x74,0x68,0x65,0x6e])](_0x18c1cb=>{if(!_0x18c1cb||_0x18c1cb[_0x441c17([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x441c17([0x6f,0x6b]))return _0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x143f2b(_0x2249ec(_0x442643+_0x1b810c))!=_0x18c1cb[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x441c17([0x56,0x61,0x6c,0x69,0x64]);})[_0x441c17([0x74,0x68,0x65,0x6e])](_0x52c489=>(_0x3ce791(),_0x52c489),()=>{const _0x39b8a0=_0x3753e5();return null==_0x39b8a0?(_0x3ce791(),_0x441c17([0x56,0x61,0x6c,0x69,0x64])):_0x441c17(_0x493745-_0x39b8a0>(0x3d9c9480^_0x57262c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x441c17([0x74,0x68,0x65,0x6e])](_0x49f006)[_0x441c17([0x63,0x61,0x74,0x63,0x68])](()=>{_0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x146804=0x19a6fe00^_0x57262c;function _0x3ce791(){const _0x5a1d80=_0x441c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x143f2b(_0x2249ec(_0x22c4db)),_0x240787=_0x19a015(_0x143f2b(window[_0x441c17([0x4d,0x61,0x74,0x68])][_0x441c17([0x63,0x65,0x69,0x6c])](_0x493745/_0x146804)));window[_0x441c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x441c17([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a1d80,_0x240787);}function _0x3753e5(){const _0x5df6bc=_0x441c17([0x6c,0x6c,0x63,0x74,0x2d])+_0x143f2b(_0x2249ec(_0x22c4db)),_0x56713b=window[_0x441c17([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x441c17([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5df6bc);return _0x56713b?window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x19a015(_0x56713b),0x10)*_0x146804:null;}function _0x3be4e7(_0x4d6cb1){return new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5dbf9,_0x8a1427)=>{_0x4d6cb1[_0x441c17([0x74,0x68,0x65,0x6e])](_0x5dbf9,_0x8a1427),window[_0x441c17([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x8a1427,0x1991c440^_0x57262c);});}}_0x59d287[_0x441c17([0x6f,0x6e])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b4fd5,_0x4f5555)=>{if(_0x4f5555[0x0]!=_0x22c4db)return _0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4f5555[0x1]={..._0x4f5555[0x1],[_0x441c17([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x442643};},{[_0x441c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x441c17([0x68,0x69,0x67,0x68])}),_0x59d287[_0x441c17([0x6f,0x6e])](_0x441c17([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1097a1=>{_0x3bc501(_0x1097a1[_0x441c17([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2f53ab=!0x0,_0x69bc1e(_0x1097a1[_0x441c17([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x441c17([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x441c17([0x6c,0x6f,0x77])}),_0x18f07b[_0x441c17([0x74,0x68,0x65,0x6e])](()=>{_0x2f53ab||_0x49f006(_0x441c17([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x215fce(){return _0x59d287[_0x441c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x441c17([0x76,0x69,0x65,0x77])][_0x441c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x441c17([0x61,0x75,0x74,0x6f]);}function _0x25e219(){_0x59d287[_0x441c17([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x441c17([0x76,0x69,0x65,0x77])][_0x441c17([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x441c17([0x61,0x75,0x74,0x6f]);}}function _0x252350(_0x21c5e8){const _0x4429b6=[new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11c6bb=>setTimeout(_0x11c6bb,0x19992e4c^_0x57262c)),_0x18f07b[_0x441c17([0x74,0x68,0x65,0x6e])](()=>new window[(_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d6f04=>{let _0x43b08e=0x0;_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x6f,0x6e])](_0x441c17([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x208abe,_0x3d3451)=>{_0x3d3451[0x0][_0x441c17([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43b08e++,_0x43b08e==(0x19901178^_0x57262c)&&(_0x2d6f04(),_0x208abe[_0x441c17([0x6f,0x66,0x66])]());});}))];return window[_0x441c17([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x441c17([0x72,0x61,0x63,0x65])](_0x4429b6)[_0x441c17([0x74,0x68,0x65,0x6e])](()=>_0x21c5e8);}async function _0xdcb586(){await _0x18f07b,_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5a220f,_0x59d287[_0x441c17([0x6d,0x6f,0x64,0x65,0x6c])][_0x441c17([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5a220f,_0x59d287[_0x441c17([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x441c17([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3baa20(){return _0x1a33d1(_0x441c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x407811(_0x441c17([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x441c17([0x73,0x74,0x61,0x74,0x65])]==_0x441c17([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x2e5019(){return _0x1a33d1(_0x441c17([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 _0x4f12ce(){return _0x1a33d1(_0x441c17([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x517b22(_0x10e922){const _0x5a7b9b=_0x1506d0();_0x59d287[_0x5a7b9b]=_0x441c17([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x10e922,_0x10e922!=_0x441c17([0x56,0x61,0x6c,0x69,0x64])&&_0xdcb586();}function _0x1506d0(){const _0x20a2cb=window[_0x441c17([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x441c17([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x441c17([0x6e,0x6f,0x77])]())[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x441c17([0x2e]),'');let _0x4a5ba7=_0x441c17([0x65]);for(let _0x2f10d9=0x0;_0x2f10d9<_0x20a2cb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2f10d9+=0x2){let _0xb71cd=window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20a2cb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2f10d9,_0x2f10d9+0x2));_0xb71cd>=_0x1c4edf[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb71cd-=_0x1c4edf[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4a5ba7+=_0x1c4edf[_0xb71cd];}return _0x4a5ba7;}function _0x2f05eb(){const _0x1de931=_0x334cf4[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e]));if(0x3!=_0x1de931[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5e30f4(_0x1de931[0x1]);function _0x5e30f4(_0x4dd285){const _0x5d36c8=_0x220919(_0x4dd285);return _0x5d36c8&&_0x40e857()?_0x5d36c8:null;function _0x40e857(){const _0xf410bb=_0x5d36c8[_0x441c17([0x6a,0x74,0x69])],_0x2e7cc0=window[_0x441c17([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xf410bb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf410bb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ad37e={..._0x5d36c8,[_0x441c17([0x6a,0x74,0x69])]:_0xf410bb[_0x441c17([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xf410bb[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ad37e[_0x441c17([0x76,0x63])],_0x2249ec(_0x2ad37e)==_0x2e7cc0;}}}async function _0x4ea199(){let _0xc7a695=!0x0;try{const _0x199b07=_0x334cf4[_0x441c17([0x73,0x70,0x6c,0x69,0x74])](_0x441c17([0x2e])),[_0x294de4,_0x51a11e,_0x44eeae]=_0x199b07;return _0x5786fd(_0x294de4),await _0xa3e55(_0x294de4,_0x51a11e,_0x44eeae),_0xc7a695;}catch(_0x5092ba){return!0x1;}function _0x5786fd(_0x4b0d2c){const _0x17e4d4=_0x220919(_0x4b0d2c);_0x17e4d4&&_0x17e4d4[_0x441c17([0x61,0x6c,0x67])]==_0x441c17([0x45,0x53,0x32,0x35,0x36])||(_0xc7a695=!0x1);}async function _0xa3e55(_0x486392,_0x18a036,_0x58e4a1){const _0x4b7c22=window[_0x441c17([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x441c17([0x66,0x72,0x6f,0x6d])](_0x326525(_0x58e4a1),_0x1a9ccf=>_0x1a9ccf[_0x441c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x417cb3=new window[(_0x441c17([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x441c17([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x486392+_0x441c17([0x2e])+_0x18a036),_0x5d7ae8=window[_0x441c17([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x441c17([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d7ae8)return;const _0x4adb37=await _0x5d7ae8[_0x441c17([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x441c17([0x6a,0x77,0x6b]),_0x1c51a3,{[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x45,0x43,0x44,0x53,0x41]),[_0x441c17([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x441c17([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d7ae8[_0x441c17([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x45,0x43,0x44,0x53,0x41]),[_0x441c17([0x68,0x61,0x73,0x68])]:{[_0x441c17([0x6e,0x61,0x6d,0x65])]:_0x441c17([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4adb37,_0x4b7c22,_0x417cb3)||(_0xc7a695=!0x1);}}function _0x220919(_0x14763d){return _0x14763d[_0x441c17([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x441c17([0x65,0x79]))?JSON[_0x441c17([0x70,0x61,0x72,0x73,0x65])](_0x326525(_0x14763d)):null;}function _0x326525(_0xa0af63){return window[_0x441c17([0x61,0x74,0x6f,0x62])](_0xa0af63[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x441c17([0x2b]))[_0x441c17([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x441c17([0x2f])));}function _0x2249ec(_0x1945c9){let _0x2fe5c3=0x1505;function _0x1d843e(_0x1eb2a5){for(let _0x14a545=0x0;_0x14a545<_0x1eb2a5[_0x441c17([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14a545++){const _0x2d6170=_0x1eb2a5[_0x441c17([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14a545);_0x2fe5c3=(_0x2fe5c3<<0x5)+_0x2fe5c3+_0x2d6170,_0x2fe5c3&=_0x2fe5c3;}}function _0x55fc26(_0x6a3236){Array[_0x441c17([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6a3236)?_0x6a3236[_0x441c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x55fc26):_0x6a3236&&typeof _0x6a3236==_0x441c17([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x441c17([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6a3236)[_0x441c17([0x73,0x6f,0x72,0x74])]()[_0x441c17([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1ec982,_0x20cb66])=>{_0x1d843e(_0x1ec982),_0x55fc26(_0x20cb66);}):_0x1d843e(window[_0x441c17([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6a3236));}return _0x55fc26(_0x1945c9),_0x2fe5c3>>>0x0;}function _0x143f2b(_0x1441f7){return _0x1441f7[_0x441c17([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x441c17([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x441c17([0x30]));}function _0x19a015(_0x1e5b13){return _0x1e5b13[_0x441c17([0x73,0x70,0x6c,0x69,0x74])]('')[_0x441c17([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x441c17([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a33d1(_0x4e41f5){return _0x59d287[_0x441c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x441c17([0x68,0x61,0x73])](_0x4e41f5);}function _0x407811(_0x50c790){return _0x59d287[_0x441c17([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x441c17([0x67,0x65,0x74])](_0x50c790);}function _0x5a220f(){}function _0x441c17(_0x4add3b){return _0x4add3b['map'](_0x43b0b4=>String['fromCharCode'](_0x43b0b4))['join']('');}_0x517b22(await _0x376f9a());}(this);}set['adapter'](_0x1e5a3e){if(this['_adapter'])throw new _0x443412('track-changes-adapter-already-set',this);this['_adapter']=_0x1e5a3e;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x407802=!0x1,toJSON:_0x5e0cc5=!0x1}={}){const _0x2c51a7=[];for(const _0x4804a8 of this['_suggestions']['values']())_0x407802&&!_0x4804a8['isInContent']||_0x2c51a7['push'](_0x4804a8);return _0x5e0cc5?_0x2c51a7['map'](_0xa1adfb=>_0xa1adfb['toJSON']()):_0x2c51a7;}['getSuggestion'](_0x176e6f){const _0x54b52a=this['_suggestions']['get'](_0x176e6f);if(!_0x54b52a)throw new _0x443412('track-changes-suggestion-not-found',this);return _0x54b52a;}['hasSuggestion'](_0x4126b5){return this['_suggestions']['has'](_0x4126b5);}['addSuggestionData'](_0x34527f){const {authorId:_0x4c1f1d,id:_0x4ecfec,attributes:_0xf1c105}=_0x34527f,[_0x3e81fc,_0x380464]=_0x34527f['type']['split'](':'),_0x5de243=this['_suggestions']['get'](_0x4ecfec)||this['_createSuggestion'](_0x3e81fc,_0x380464,_0x4ecfec,_0x4c1f1d,_0xf1c105);if(this['_addThreadToSuggestion'](_0x5de243),this['_checkSuggestionCorrectness'](_0x5de243,_0x3e81fc,_0x380464||null,_0x4c1f1d),_0x5de243['createdAt']=_0x34527f['createdAt'],_0x5de243['_isDataLoaded']=!0x0,_0xf1c105&&_0xf1c105['@external']){const _0x1f6b3d=_0xf1c105['@external'],_0x3391aa=this['_getExternalAuthor'](_0x1f6b3d['authorName']);_0x5de243['authoredAt']=_0x1f6b3d['createdAt'],_0x5de243['author']=_0x3391aa,_0x5de243['isExternal']=!0x0;}else _0x5de243['authoredAt']=_0x34527f['createdAt'];switch(_0x34527f['data']&&(_0x5de243['data']=_0x34527f['data']),_0x34527f['attributes']&&(_0x5de243['attributes']=_0x34527f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5de243['_saved']=!0x0),this['_suggestionState']['get'](_0x5de243)){case'notReady':this['_suggestionState']['set'](_0x5de243,'dataReady');break;case'markerReady':_0x5de243['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5de243])),this['_refreshSuggestionsChain'](new Set([_0x5de243])),this['_suggestionState']['set'](_0x5de243,'ready'),this['fire']('suggestionLoaded',_0x5de243)):this['_suggestionState']['set'](_0x5de243,'removed');}return _0x5de243;}['acceptSuggestion'](_0x12e7e6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xab0de2 of _0x12e7e6['getAllAdjacentSuggestions']())_0xab0de2['accept']();});});}['discardSuggestion'](_0x40f41d){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x398e05 of _0x40f41d['getAllAdjacentSuggestions']())_0x398e05['discard']();});});}['enableCommand'](_0x4ad347,_0x844960){const _0x4237eb=this['editor']['commands']['get'](_0x4ad347);if(!_0x4237eb)throw new _0x443412('track-changes-command-not-found',this,{'commandName':_0x4ad347});if(this['_enabledCommands']['has'](_0x4237eb))throw new _0x443412('track-changes-enable-command-twice',this,{'commandName':_0x4ad347});this['_enabledCommands']['add'](_0x4237eb),_0x844960&&_0x4237eb['on']('execute',(_0x57208b,_0x424c06)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x424c06['length']>0x0&&_0x424c06[_0x424c06['length']-0x1]&&_0x424c06[_0x424c06['length']-0x1]['forceDefaultExecution']?_0x424c06['pop']():(_0x57208b['return']=_0x844960((..._0x2091cf)=>_0x4237eb['execute'](..._0x2091cf,{'forceDefaultExecution':!0x0}),..._0x424c06),_0x57208b['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5dfd1c){let _0x8e9d5d,_0x30791e;const _0x55bf35=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x8e9d5d=_0x5dfd1c();}catch(_0x358ef0){_0x30791e=_0x358ef0;}return _0x55bf35||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x30791e&&_0x443412['rethrowUnexpectedError'](_0x30791e,this),_0x8e9d5d;}['markInsertion'](_0x5d6cf5,_0xefe878=null,_0x138afa={}){if(_0x5d6cf5['isCollapsed'])return null;const _0x3e99bb=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5e18e2,meta:_0xfa6e5}of this['_findSuggestions'](_0x5d6cf5,'insertion'))if(_0xfa6e5['isOwn']){if(!_0xfa6e5['isNextTo']){if(_0xfa6e5['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x5e18e2,_0x138afa))continue;return _0x5e18e2;}if(Kt(_0x5e18e2,_0x138afa))return _0x5e18e2;this['_breakSuggestionMarker'](_0x5e18e2,_0x5d6cf5['start'],_0x5d6cf5['end']);break;}if(_0xefe878==_0x5e18e2['subType']&&Kt(_0x5e18e2,_0x138afa)){const _0x7b32ca=_0x5e18e2['getFirstRange']();return _0x7b32ca['start']['isEqual'](_0x5d6cf5['end'])?this['_setSuggestionRange'](_0x5e18e2,this['_model']['createRange'](_0x5d6cf5['start'],_0x7b32ca['end'])):this['_setSuggestionRange'](_0x5e18e2,this['_model']['createRange'](_0x7b32ca['start'],_0x5d6cf5['end'])),_0x5e18e2;}}const _0x50edb5=_0x3e98cb(),_0x2beb43=_0x3e99bb['id'],_0x2abd27=_0xefe878?'insertion:'+_0xefe878:'insertion',_0x4a0ab6=this['_setSuggestionData']({'id':_0x50edb5,'type':_0x2abd27,'createdAt':new Date(),'authorId':_0x2beb43,'attributes':_0x138afa});return this['_addSuggestionMarker'](_0x2abd27,_0x50edb5,_0x2beb43,_0x5d6cf5),_0x4a0ab6;}['markMultiRangeInsertion'](_0x5a15ee,_0x1b2111='multi',_0x23c9ce={}){const _0x36c3aa=this['editor']['plugins']['get']('Users')['me'],_0x29b8e9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1b2111,'join');for(const _0x41a162 of this['getSuggestions']())if(_0x41a162['author']['id']==_0x36c3aa['id']&&'insertion'==_0x41a162['type']&&_0x41a162['subType']==_0x1b2111&&Kt(_0x41a162,_0x23c9ce)&&(_0x29b8e9(_0x41a162['getRanges'](),_0x5a15ee)||_0x29b8e9(_0x5a15ee,_0x41a162['getRanges']()))){for(const _0x158605 of _0x5a15ee)_0x41a162['addRange'](_0x158605);return _0x41a162;}for(const {suggestion:_0x5ab5,meta:_0x2276fe}of this['_findSuggestions'](_0x5a15ee,'insertion')){if(!_0x2276fe['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x2276fe['containsRangeInObject'])continue;if(!Kt(_0x5ab5,_0x23c9ce))continue;let _0x548aaa=!0x0;for(const _0x528423 of _0x5ab5['getRanges']())for(const _0x4ac3d9 of _0x5a15ee)if(!_0x528423['containsRange'](_0x4ac3d9)){_0x548aaa=!0x1;break;}if(_0x548aaa)return _0x5ab5;}const _0x1cedab=_0x3e98cb(),_0x317e77=_0x36c3aa['id'],_0x3bc80f='insertion:'+_0x1b2111,_0x14fd12=this['_setSuggestionData']({'id':_0x1cedab,'type':_0x3bc80f,'createdAt':new Date(),'authorId':_0x317e77,'attributes':_0x23c9ce});for(const _0x36b16e of _0x5a15ee)this['_addSuggestionMarker'](_0x3bc80f,_0x1cedab,_0x317e77,_0x36b16e,u['getMultiRangeId']());return _0x14fd12;}['markInlineFormat'](_0xe5c89,_0x2af95a,_0x412376=null,_0x1897e4={}){if(_0x412376=_0x412376||Ft(_0x2af95a),_0xe5c89['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5f3415=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x412376,'accept');return this['forceDefaultExecution'](()=>_0x5f3415([_0xe5c89],_0x2af95a,_0x1897e4)),null;}const _0x55ac70=this['editor']['plugins']['get']('Users')['me'],_0x16a6b2=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4cdabe,meta:_0x4cdf6c}of this['_findSuggestions'](_0xe5c89,'insertion'))_0x4cdf6c['isOwn']&&!_0x4cdf6c['isInsideObject']&&_0x16a6b2['push'](..._0x4cdabe['getRanges']());}const _0x465444=function(_0x22bf54,_0x6d45ed){const _0x313b95=[];for(const _0x1126a6 of _0x6d45ed){const _0x3ec1c1=_0x22bf54['getIntersection'](_0x1126a6);_0x3ec1c1&&_0x313b95['push'](_0x3ec1c1);}return _0x313b95;}(_0xe5c89,_0x16a6b2),_0x2fa8f2=function(_0x4d5142,_0xbdb04e){const _0x3a2b72=[_0x4d5142];for(const _0x4b851f of _0xbdb04e){let _0x2e8232=0x0;for(;_0x2e8232<_0x3a2b72['length'];){const _0x2eb68d=_0x3a2b72[_0x2e8232]['getDifference'](_0x4b851f);_0x3a2b72['splice'](_0x2e8232,0x1,..._0x2eb68d),_0x2e8232+=_0x2eb68d['length'];}}return _0x3a2b72;}(_0xe5c89,_0x16a6b2);_0x465444['length']&&this['_model']['change'](()=>{for(const _0x3eeafe of _0x465444){const _0x2f13e6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x412376,'accept');this['forceDefaultExecution'](()=>_0x2f13e6([_0x3eeafe],_0x2af95a,_0x1897e4));}});for(const _0x23e1c2 of _0x2fa8f2){let _0x4a94c6=null,_0x184b9c=_0x23e1c2['start'],_0x4f1c94=_0x23e1c2['end'];for(const {suggestion:_0xb0ae7b,meta:_0x258022}of this['_findSuggestions'](_0x23e1c2,'formatInline')){if(!_0x258022['isOwn'])continue;if(_0xb0ae7b['subType']!=_0x412376)continue;if(!Kt(_0xb0ae7b,_0x1897e4))continue;const _0x4f16fe=_0xb0ae7b['getFirstRange']();if(_0x4f16fe['containsRange'](_0x23e1c2,!0x0))return null;_0x184b9c=_0x184b9c['isBefore'](_0x4f16fe['start'])?_0x184b9c:_0x4f16fe['start'],_0x4f1c94=_0x4f1c94['isAfter'](_0x4f16fe['end'])?_0x4f1c94:_0x4f16fe['end'],_0x4a94c6?_0x4f16fe['start']['isBefore'](_0x4a94c6['getFirstRange']()['start'])?(_0x4a94c6['removeMarkers'](),_0x4a94c6=_0xb0ae7b):_0xb0ae7b['removeMarkers']():_0x4a94c6=_0xb0ae7b;}const _0x85a5b5=this['_model']['createRange'](_0x184b9c,_0x4f1c94);if(_0x4a94c6)this['_setSuggestionRange'](_0x4a94c6,_0x85a5b5);else{const _0x16c3ab=_0x3e98cb(),_0x5791f6=_0x55ac70['id'];this['_setSuggestionData']({'id':_0x16c3ab,'type':'formatInline:'+_0x412376,'data':_0x2af95a,'createdAt':new Date(),'authorId':_0x5791f6,'attributes':_0x1897e4}),this['_addSuggestionMarker']('formatInline:'+_0x412376,_0x16c3ab,_0x5791f6,_0x85a5b5);}}return null;}['markBlockFormat'](_0x379c6a,_0x318a1b,_0x56fd34=[],_0x1e3a9e=null,_0x5b4cf2={}){_0x318a1b['formatGroupId']||(_0x318a1b['formatGroupId']=_0x318a1b['commandName']),_0x318a1b['multipleBlocks']=_0x379c6a['is']('range'),_0x1e3a9e=_0x1e3a9e||Ft(_0x318a1b);const _0x433b70=_0x56fd34['map'](_0x8722a2=>Ht(_0x8722a2,this['_model'])),_0x7c144c=_0x379c6a['is']('range')?_0x379c6a:Ht(_0x379c6a,this['_model']);if('never'===this['_trackFormatChanges']){const _0x594a6b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e3a9e,'accept');return this['forceDefaultExecution'](()=>_0x594a6b([_0x7c144c],_0x318a1b,_0x5b4cf2)),null;}_0x433b70['push'](_0x7c144c);let _0x5c7d7f=!0x0;for(const _0x165c29 of _0x433b70)if(!this['_rangeIsInLocalUserInsertion'](_0x165c29)){_0x5c7d7f=!0x1;break;}if(_0x5c7d7f&&'always'!==this['_trackFormatChanges']){const _0x3382aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1e3a9e,'accept');return this['forceDefaultExecution'](()=>_0x3382aa([_0x7c144c],_0x318a1b,_0x5b4cf2)),null;}let _0x386c52=null,_0xf25a53=_0x7c144c['start'],_0x3efbd6=_0x7c144c['end'];for(const {suggestion:_0x1d0fa3,meta:_0x4aa9ed}of this['_findSuggestions'](_0x7c144c,'formatBlock')){if(!_0x4aa9ed['isOwn'])continue;if(_0x4aa9ed['isNextTo']||_0x4aa9ed['containsRangeInObject']||_0x4aa9ed['isInsideObject'])continue;if(_0x1d0fa3['data']['formatGroupId']!=_0x318a1b['formatGroupId'])continue;if(!Kt(_0x1d0fa3,_0x5b4cf2))continue;const _0x1a49dc=_0x1d0fa3['getFirstRange']();if(_0x1d0fa3['subType']==_0x1e3a9e){if(_0x1a49dc['containsRange'](_0x7c144c,!0x0))return null;_0xf25a53=_0xf25a53['isBefore'](_0x1a49dc['start'])?_0xf25a53:_0x1a49dc['start'],_0x3efbd6=_0x3efbd6['isAfter'](_0x1a49dc['end'])?_0x3efbd6:_0x1a49dc['end'],_0x386c52?_0x1a49dc['start']['isBefore'](_0x386c52['getFirstRange']()['start'])?(_0x386c52['removeMarkers'](),_0x386c52=_0x1d0fa3):_0x1d0fa3['removeMarkers']():_0x386c52=_0x1d0fa3;}else{const _0x2d661c=_0x7c144c['getIntersection'](_0x1a49dc);this['_cutOutSuggestionMarker'](_0x1d0fa3,_0x2d661c);}}const _0x37d7ea=this['editor']['plugins']['get']('Users')['me'],_0x270675=_0x3e98cb(),_0x128d03=_0x37d7ea['id'];if(_0x386c52)return this['_setSuggestionRange'](_0x386c52,this['_model']['createRange'](_0xf25a53,_0x3efbd6)),_0x386c52;{const _0x912062=this['_setSuggestionData']({'id':_0x270675,'type':'formatBlock:'+_0x1e3a9e,'data':_0x318a1b,'createdAt':new Date(),'authorId':_0x128d03,'attributes':_0x5b4cf2});return this['_addSuggestionMarker']('formatBlock:'+_0x1e3a9e,_0x270675,_0x128d03,this['_model']['createRange'](_0xf25a53,_0x3efbd6)),_0x912062;}}['markMultiRangeBlockFormat'](_0x21b05b,_0x5cf265,_0x3aa9e5=[],_0x57e304=null,_0xd36d30={}){_0x5cf265['formatGroupId']||(_0x5cf265['formatGroupId']=_0x5cf265['commandName']);const _0x28a435=_0x21b05b[0x0];_0x5cf265['multipleBlocks']=_0x28a435['is']('range'),_0x57e304=_0x57e304||Ft(_0x5cf265);const _0x1de267=_0x3aa9e5['map'](_0xc37a20=>Ht(_0xc37a20,this['_model'])),_0x1fd3aa=_0x28a435['is']('range')?_0x21b05b:_0x21b05b['map'](_0x5915c6=>Ht(_0x5915c6,this['_model']));if('never'===this['_trackFormatChanges']){const _0x982e8e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'accept');return this['forceDefaultExecution'](()=>_0x982e8e(_0x1fd3aa,_0x5cf265,_0xd36d30)),null;}_0x1de267['push'](..._0x1fd3aa);let _0x494781=!0x0;for(const _0x409c31 of _0x1de267)if(!this['_rangeIsInLocalUserInsertion'](_0x409c31)){_0x494781=!0x1;break;}if(_0x494781&&'always'!==this['_trackFormatChanges']){const _0x301b33=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'accept');return this['forceDefaultExecution'](()=>_0x301b33(_0x1fd3aa,_0x5cf265,_0xd36d30)),null;}const _0x58eb2a=this['editor']['plugins']['get']('Users')['me'];for(const _0x3555d4 of this['getSuggestions']()){if(_0x3555d4['author']['id']!=_0x58eb2a['id'])continue;if('formatBlock'!=_0x3555d4['type']||_0x3555d4['data']['formatGroupId']!=_0x5cf265['formatGroupId'])continue;if(!Kt(_0x3555d4,_0xd36d30))continue;const _0x1b4b6d=_0x3555d4['subType']==_0x57e304;for(let _0x99f3f6=0x0;_0x99f3f6<_0x1fd3aa['length'];_0x99f3f6++){const _0x1ad83f=_0x1fd3aa[_0x99f3f6];for(const _0x4aa4fb of _0x3555d4['getMarkers']()){const _0x3ab10c=_0x4aa4fb['getRange']();if(_0x1ad83f['isEqual'](_0x3ab10c)){_0x1b4b6d?(_0x1fd3aa['splice'](_0x99f3f6,0x1),_0x99f3f6--):_0x3555d4['removeMarker'](_0x4aa4fb['name']);break;}}}}if(0x0==_0x1fd3aa['length'])return null;const _0x652cac=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x57e304,'join');for(const _0x5cb465 of this['getSuggestions']())if(_0x5cb465['author']['id']==_0x58eb2a['id']&&'formatBlock'==_0x5cb465['type']&&_0x5cb465['data']['formatGroupId']==_0x5cf265['formatGroupId']&&_0x5cb465['subType']==_0x57e304&&Kt(_0x5cb465,_0xd36d30)&&(_0x652cac(_0x5cb465['getRanges'](),_0x1fd3aa)||_0x652cac(_0x1fd3aa,_0x5cb465['getRanges']()))){for(const _0x1a7be2 of _0x1fd3aa)_0x5cb465['addRange'](_0x1a7be2);return _0x5cb465;}const _0x59f23a=_0x3e98cb(),_0x272739=_0x58eb2a['id'],_0x5e461e='formatBlock:'+_0x57e304,_0xf1b373=this['_setSuggestionData']({'id':_0x59f23a,'type':_0x5e461e,'data':_0x5cf265,'createdAt':new Date(),'authorId':_0x272739,'attributes':_0xd36d30});for(const _0x73e533 of _0x1fd3aa)this['_addSuggestionMarker'](_0x5e461e,_0x59f23a,_0x272739,_0x73e533,u['getMultiRangeId']());return _0xf1b373;}['markDeletion'](_0x2d0493,_0xa84e2d=null,_0x4c47d2={}){if(_0x2d0493['isCollapsed'])return null;const _0x2a9b28=this['editor']['plugins']['get']('Users')['me'],_0x41282c=new _0x190639(_0x2d0493['start'],_0x2d0493['end']);for(const {suggestion:_0x400a29,meta:_0x3b73b8}of this['_findSuggestions'](_0x41282c,'insertion'))if(_0x3b73b8['isOwn']&&!_0x3b73b8['isNextTo']){if(_0x400a29['isMultiRange']){const _0x3d9b30=_0x400a29['getRanges']()['filter'](_0x27c1d9=>'$graveyard'!=_0x27c1d9['root']['rootName']);_0x3d9b30['every'](_0x2aac00=>_0x41282c['containsRange'](_0x2aac00,!0x0))&&_0x400a29['discard']();if(_0x3d9b30['some'](_0x1dab5a=>_0x1dab5a['containsRange'](_0x41282c,!0x0))){const _0x4b57cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0xa84e2d,'accept');return this['forceDefaultExecution'](()=>_0x4b57cf([_0x41282c],null,_0x4c47d2)),null;}}else{const _0x1fe0fb=_0x41282c['getIntersection'](_0x400a29['getFirstRange']());null!==_0x1fe0fb&&_0x400a29['_onDiscard']([_0x1fe0fb],null,_0x4c47d2);}}if(_0x41282c['detach'](),_0x41282c['isCollapsed']||'$graveyard'==_0x41282c['root']['rootName'])return null;let _0x3675f5=null,_0x181766=_0x41282c['start'],_0x135b9d=_0x41282c['end'];const _0x431926=this['_findSuggestions'](_0x41282c,'deletion');for(const {suggestion:_0x37624d,meta:_0x2098ce}of _0x431926){const _0x3b9946=this['_model']['createRange'](_0x181766,_0x135b9d);if(_0x2098ce['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2098ce['containsRangeInObject']&&!_0x2098ce['isInsideObject'])){if(_0x37624d['isMultiRange']){if(!Kt(_0x37624d,_0x4c47d2))continue;let _0x201f63=!0x0;for(const _0x2d4fdd of _0x37624d['getRanges']()){if(_0x2d4fdd['containsRange'](_0x3b9946,!0x0))return _0x37624d;_0x3b9946['containsRange'](_0x2d4fdd)||(_0x201f63=!0x1);}_0x201f63&&_0x37624d['discard']();}else{const _0x311dca=_0x37624d['getFirstRange']();if(_0x311dca['containsRange'](_0x3b9946,!0x0))return _0x37624d;if(!Kt(_0x37624d,_0x4c47d2)){_0x3b9946['containsRange'](_0x311dca)?_0x37624d['removeMarkers']():_0x311dca['containsPosition'](_0x181766)?_0x181766=_0x311dca['end']:_0x311dca['containsPosition'](_0x135b9d)&&(_0x135b9d=_0x311dca['start']);continue;}_0x181766=_0x181766['isBefore'](_0x311dca['start'])?_0x181766:_0x311dca['start'],_0x135b9d=_0x135b9d['isAfter'](_0x311dca['end'])?_0x135b9d:_0x311dca['end'],_0x4c47d2=Object['assign']({},_0x37624d['attributes']),_0x3675f5?_0x311dca['start']['isBefore'](_0x3675f5['getFirstRange']()['start'])?(_0x3675f5['removeMarkers'](),_0x3675f5=_0x37624d):_0x37624d['removeMarkers']():_0x3675f5=_0x37624d;}}}if(_0x3675f5)return this['_setSuggestionRange'](_0x3675f5,this['_model']['createRange'](_0x181766,_0x135b9d)),_0x3675f5;{const _0x4b1855=_0x3e98cb(),_0x23467c=this['_model']['createRange'](_0x181766,_0x135b9d),_0x4a60f8=_0x2a9b28['id'],_0x498840=_0xa84e2d?'deletion:'+_0xa84e2d:'deletion',_0xa1373=this['_setSuggestionData']({'id':_0x4b1855,'type':_0x498840,'createdAt':new Date(),'authorId':_0x4a60f8,'attributes':_0x4c47d2});return this['_addSuggestionMarker'](_0x498840,_0x4b1855,_0x4a60f8,_0x23467c),_0xa1373;}}['markMultiRangeDeletion'](_0x5960e8,_0x1a9d82='multi',_0x3b06ea={}){const _0x35df53=this['editor']['plugins']['get']('Users')['me'],_0x3bedc0=_0x5960e8['map'](_0x450aeb=>new _0x190639(_0x450aeb['start'],_0x450aeb['end'])),_0x2e30f9=new Set();for(const {suggestion:_0x5d2b8b,meta:_0x5b55fb}of this['_findSuggestions'](_0x3bedc0,'insertion'))_0x5b55fb['isOwn']&&!_0x5b55fb['isNextTo']&&_0x2e30f9['add'](_0x5d2b8b);for(const _0x375245 of _0x2e30f9)if(_0x375245['isMultiRange']){const _0x27bf7c=_0x375245['getRanges']();(!_0x375245['attributes']||!_0x375245['attributes']['skipNestingCheck'])&&(_0x27bf7c['every'](_0x1b42d9=>_0x3bedc0['some'](_0x35f04a=>_0x35f04a['containsRange'](_0x1b42d9,!0x0)))&&_0x375245['discard']());if(_0x3bedc0['every'](_0x1ded14=>_0x27bf7c['some'](_0x13a183=>_0x13a183['containsRange'](_0x1ded14,!0x0)))){const _0xeb9f08=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'accept');return this['forceDefaultExecution'](()=>_0xeb9f08(_0x5960e8,null,_0x3b06ea)),null;}}else{const _0x441d45=_0x375245['getFirstRange']();_0x3bedc0['some'](_0x48235e=>_0x48235e['containsRange'](_0x441d45,!0x0))&&_0x375245['discard']();if(_0x3bedc0['every'](_0x32eadc=>_0x441d45['containsRange'](_0x32eadc,!0x0))){const _0x43edb7=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'accept');return this['forceDefaultExecution'](()=>_0x43edb7(_0x3bedc0,null,_0x3b06ea)),null;}}const _0x56d78b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x1a9d82,'join');let _0x225136=null;for(const _0x530a90 of this['getSuggestions']())if(_0x530a90['author']['id']==_0x35df53['id']&&_0x530a90['isInContent']&&'deletion'==_0x530a90['type']&&_0x530a90['subType']==_0x1a9d82&&Kt(_0x530a90,_0x3b06ea)&&(_0x56d78b(_0x530a90['getRanges'](),_0x3bedc0)||_0x56d78b(_0x3bedc0,_0x530a90['getRanges']()))){if(_0x225136){if(_0x530a90['commentThread']&&_0x530a90['commentThread']['length'])continue;for(const _0x19c2a9 of _0x530a90['getRanges']())_0x225136['isIntersectingWithRange'](_0x19c2a9)||_0x225136['addRange'](_0x19c2a9);_0x530a90['removeMarkers']();}else{_0x225136=_0x530a90;for(const _0x220043 of _0x3bedc0)_0x530a90['isIntersectingWithRange'](_0x220043)||_0x530a90['addRange'](_0x220043);}}if(_0x225136)return _0x225136;_0x2e30f9['clear']();for(const {suggestion:_0x2eeda7,meta:_0x20e8ae}of this['_findSuggestions'](_0x3bedc0,'deletion'))_0x20e8ae['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e8ae['containsRangeInObject']&&!_0x20e8ae['isInsideObject'])&&Kt(_0x2eeda7,_0x3b06ea)&&_0x2e30f9['add'](_0x2eeda7);for(const _0x194e69 of _0x2e30f9){const _0x2a97de=_0x194e69['getRanges']();if(!_0x3b06ea||!_0x3b06ea['skipNestingCheck']){if(_0x3bedc0['every'](_0x3280f9=>_0x2a97de['some'](_0x7dea0e=>_0x7dea0e['containsRange'](_0x3280f9,!0x0))))return _0x194e69;}(!_0x194e69['attributes']||!_0x194e69['attributes']['skipNestingCheck'])&&(_0x2a97de['every'](_0x501a74=>_0x3bedc0['some'](_0x252a35=>_0x252a35['containsRange'](_0x501a74,!0x0)))&&_0x194e69['discard']());}const _0x4b3baf=_0x3e98cb(),_0x246612=_0x35df53['id'],_0x2bf9a2='deletion:'+_0x1a9d82,_0x209861=this['_setSuggestionData']({'id':_0x4b3baf,'type':_0x2bf9a2,'createdAt':new Date(),'authorId':_0x246612,'attributes':_0x3b06ea});for(const _0x812e54 of _0x3bedc0)_0x812e54['detach'](),_0x812e54['isCollapsed']||'$graveyard'==_0x812e54['root']['rootName']||this['_addSuggestionMarker'](_0x2bf9a2,_0x4b3baf,_0x246612,_0x812e54,u['getMultiRangeId']());return _0x209861;}['markAttributeChange'](_0x2d6d88,_0x2e035d,_0x33d14a,_0x42863b,_0x318f3f){if(_0x2d6d88['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x11f1d7=this['editor']['plugins']['get']('Users')['me']['id'],_0x3e709d=Array['from'](this['_suggestions']['values']())['filter'](_0x5c6678=>'attribute'==_0x5c6678['type']&&_0x5c6678['data']['key']==_0x2e035d&&_0x5c6678['isIntersectingWithRange'](_0x2d6d88));if('default'===this['_trackFormatChanges']){const _0x429874=this['_findSuggestions'](_0x2d6d88,'insertion')['filter'](({meta:_0x2c62e2})=>_0x2c62e2['isOwn']&&!_0x2c62e2['isInsideObject']&&!_0x2c62e2['isNextTo'])['map'](({suggestion:_0x3d722a})=>_0x3d722a);_0x3e709d['unshift'](..._0x429874);}const _0x55305d=new Map([[_0x2d6d88,_0x33d14a]]);for(const _0x1c700c of _0x3e709d){const _0x1072be='attribute'==_0x1c700c['type']?_0x1c700c['data']['oldValue']:void 0x0,_0x45134d=_0x1c700c['getFirstRange'](),_0x3aedc1=Array['from'](_0x55305d['keys']())['find'](_0x2c5b19=>_0x2c5b19['isIntersecting'](_0x45134d));if(!_0x3aedc1)continue;const _0x4783cd=_0x3aedc1['getDifference'](_0x45134d);this['_isBlockAttribute'](_0x2e035d)&&'insertion'==_0x1c700c['type']&&0x0!=_0x4783cd['length']||(_0x55305d['delete'](_0x3aedc1),_0x4783cd['forEach'](_0x233288=>{_0x55305d['set'](_0x233288,_0x33d14a);}),'insertion'!=_0x1c700c['type']&&_0x1072be!=_0x42863b&&_0x55305d['set'](_0x3aedc1['getIntersection'](_0x45134d),_0x1072be));}const _0x346bcb=[];for(const [_0x528b23,_0x2e2ada]of _0x55305d){const _0x341fbb=_0x3e98cb(),_0x2820bf={'key':_0x2e035d,'oldValue':_0x2e2ada,'newValue':_0x42863b};_0x2e035d['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':_0x2e035d});const _0x522ce2=('attribute:'+(_0x2e035d+'|'+Ft({'newValue':_0x42863b})))['substring'](0x0,0x3c),_0x54c7d1=this['_setSuggestionData']({'id':_0x341fbb,'type':_0x522ce2,'data':_0x2820bf,'createdAt':new Date(),'authorId':_0x11f1d7,'attributes':_0x318f3f});_0x346bcb['push'](_0x54c7d1),this['_addSuggestionMarker'](_0x522ce2,_0x341fbb,_0x11f1d7,_0x528b23);}return _0x346bcb;}['enableDefaultAttributesIntegration'](_0x337d42){this['enableCommand'](_0x337d42,(_0x1b83d7,..._0x411afe)=>{this['_recordAttributeChanges'](()=>{_0x1b83d7(..._0x411afe);});});}['registerBlockAttribute'](_0x21327d){this['_blockAttributeKeys']['add'](_0x21327d);}['registerInlineAttribute'](_0x50c125){this['_inlineAttributeKeys']['add'](_0x50c125);}['_getAttributeKey'](_0x10eec1){return'attribute'==_0x10eec1['type']?_0x10eec1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x4945f0,_0x18317b){const _0x51c216=_0x4945f0['getFirstMarker']();this['_model']['change'](_0x26b633=>{_0x26b633['updateMarker'](_0x51c216,{'range':_0x18317b});});}['_addThreadToSuggestion'](_0x277ae6){const _0x7b9d84=_0x277ae6['id'],_0x44246b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x7b9d84)||this['_commentsRepository']['addCommentThread']({'channelId':_0x44246b,'threadId':_0x7b9d84,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x23e6f3=this['_commentsRepository']['getCommentThread'](_0x7b9d84);_0x23e6f3['unbind']('isRemovable'),_0x23e6f3['isRemovable']=!0x1,_0x277ae6['commentThread']=_0x23e6f3;}['_checkSuggestionCorrectness'](_0x50465a,_0x7f39b3,_0x405a1c,_0x3622f4){if(_0x50465a['type']!=_0x7f39b3||_0x50465a['subType']!=_0x405a1c||_0x50465a['creator']['id']!=_0x3622f4)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x443412('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0xedbee3,_0x67d14a){const _0x164a21=_0xedbee3['getFirstRange']();if(_0x67d14a['isEqual'](_0x164a21))_0xedbee3['removeMarkers']();else{if(_0x164a21['containsRange'](_0x67d14a)){const _0x5c08e1=this['_model']['createPositionAt'](_0x67d14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x164a21['start'],_0x5c08e1));const _0x54e6ed=_0x3e98cb(),_0x5c3cfc=_0xedbee3['creator']['id'],_0xa44b59=_0xedbee3['type']+':'+_0xedbee3['subType'];this['_setSuggestionData']({'id':_0x54e6ed,'type':_0xa44b59,'createdAt':new Date(),'authorId':_0x5c3cfc,'data':_0xedbee3['data'],'attributes':_0xedbee3['attributes']});const _0x3b9535=this['_model']['createPositionAt'](_0x67d14a['end']['parent'],'after'),_0x3d7125=this['_model']['createRange'](_0x3b9535,_0x164a21['end']);this['_addSuggestionMarker'](_0xa44b59,_0x54e6ed,_0x5c3cfc,_0x3d7125);}else{if(_0x164a21['containsPosition'](_0x67d14a['start'])){const _0x5bd8df=this['_model']['createPositionAt'](_0x67d14a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x164a21['start'],_0x5bd8df));}else{const _0x1ce59a=this['_model']['createPositionAt'](_0x67d14a['end']['parent'],'after');this['_setSuggestionRange'](_0xedbee3,this['_model']['createRange'](_0x1ce59a,_0x164a21['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x408e50){for(const {suggestion:_0x5aeb44,meta:_0x59909c}of this['_findSuggestions'](_0x408e50,'insertion')){if(!_0x59909c['isOwn'])continue;const _0x2f7021=_0x5aeb44['getRanges']();for(const _0x237b4b of _0x2f7021)if(!_0x408e50['getDifference'](_0x237b4b)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4a0857){const _0x4c4515=this['editor']['plugins']['get']('Users')['getUser'](_0x4a0857);if(!_0x4c4515)throw new _0x443412('track-changes-user-not-found',this);return _0x4c4515;}['_getExternalAuthor'](_0x54b545){const _0x30e519=this['editor']['plugins']['get']('Users'),_0x40678a=_0x567c87('external:'+_0x54b545),_0x56350b=_0x30e519['getUser'](_0x40678a);return _0x56350b||_0x30e519['addUser']({'id':_0x40678a,'name':_0x54b545});}['_createSuggestion'](_0x3dfe22,_0x24ec15,_0x2583b7,_0x1e37dd,_0x4c801a){const _0x4485d4=this['_getAuthorFromId'](_0x1e37dd),_0x25fb6e=this['_suggestionFactory']['buildSuggestion'](_0x3dfe22,_0x24ec15,_0x2583b7,_0x4485d4,_0x4c801a,_0x583244=>{this['_updateSuggestionData'](_0x2583b7,{'attributes':_0x583244});const _0x44378a=this['getSuggestion'](_0x2583b7);this['_joinWithAdjacentSuggestions'](new Set([_0x44378a])),this['_refreshSuggestionsChain'](new Set([_0x44378a]));});return this['listenTo'](_0x25fb6e,'accept',()=>{this['_updateSuggestionData'](_0x2583b7,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x25fb6e,'discard',()=>{this['_updateSuggestionData'](_0x2583b7,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x2583b7,_0x25fb6e),this['_suggestionState']['set'](_0x25fb6e,'notReady'),_0x25fb6e;}['_splitMarkerName'](_0x1e66de){const _0x1755f1=_0x1e66de['split'](':');return{'group':_0x1755f1[0x0],'type':_0x1755f1[0x1],'subType':_0x1755f1['length']>=0x5?_0x1755f1[0x2]:null,'id':_0x1755f1['length']<0x5?_0x1755f1[0x2]:_0x1755f1[0x3],'authorId':_0x1755f1['length']<0x5?_0x1755f1[0x3]:_0x1755f1[0x4],'markerCount':0x6==_0x1755f1['length']?_0x1755f1[0x5]:null};}['_breakSuggestionMarker'](_0x11146e,_0x2de644,_0x32e633){const _0x395ca1=_0x11146e['getFirstRange'](),_0x56b57b=_0x395ca1['start'],_0x4f8204=_0x395ca1['end'];this['_setSuggestionRange'](_0x11146e,this['_model']['createRange'](_0x56b57b,_0x2de644));const _0x1145cf=_0x3e98cb(),_0xec6e1a=_0x11146e['creator']['id'],_0x4b0664=_0x11146e['type']+(_0x11146e['subType']?':'+_0x11146e['subType']:'');this['_setSuggestionData']({'id':_0x1145cf,'type':_0x4b0664,'createdAt':new Date(),'authorId':_0xec6e1a,'originalSuggestionId':_0x11146e['id'],'attributes':_0x11146e['attributes'],'data':_0x11146e['data']});const _0x243d25=this['_getAttributeKey'](_0x11146e);('formatBlock'==_0x11146e['type']||_0x243d25&&this['_isBlockAttribute'](_0x243d25))&&(_0x32e633=this['_model']['createPositionBefore'](_0x32e633['parent'])),this['_addSuggestionMarker'](_0x4b0664,_0x1145cf,_0xec6e1a,this['_model']['createRange'](_0x32e633,_0x4f8204));}['_findSuggestions'](_0x58cdcf,_0x4e6a3e=null){const _0x1ba149=[],_0x2c3028=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x58cdcf)||(_0x58cdcf=[_0x58cdcf]);for(const _0x33d718 of this['getSuggestions']()){if(!_0x33d718['isInContent'])continue;if(_0x4e6a3e&&_0x33d718['type']!=_0x4e6a3e)continue;let _0x3e0651=!0x1;for(const _0x5090a9 of _0x33d718['getRanges']()){for(const _0x80ad53 of _0x58cdcf){const _0x33163a=_0x80ad53['start']['isEqual'](_0x5090a9['end'])||_0x80ad53['end']['isEqual'](_0x5090a9['start']);if(_0x33163a||_0x80ad53['getIntersection'](_0x5090a9)){const _0x4162d6=_0x80ad53['containsRange'](_0x5090a9)&&Vt(this['_model']['schema'],_0x5090a9['start'],_0x80ad53),_0x1d1a35=_0x5090a9['containsRange'](_0x80ad53)&&Vt(this['_model']['schema'],_0x80ad53['start'],_0x5090a9);_0x1ba149['push']({'suggestion':_0x33d718,'meta':{'isOwn':_0x2c3028==_0x33d718['author'],'isNextTo':_0x33163a,'isInsideObject':_0x4162d6,'containsRangeInObject':_0x1d1a35}}),_0x3e0651=!0x0;break;}}if(_0x3e0651)break;}}return _0x1ba149;}['_addSuggestionMarker'](_0x5d1e80,_0x516239,_0xf1932e,_0xc6bf7a,_0x46bc32){this['_model']['change'](_0x7a49a9=>{let _0xf81b1a='suggestion:'+_0x5d1e80+':'+_0x516239+':'+_0xf1932e;_0x46bc32&&(_0xf81b1a=_0xf81b1a+':'+_0x46bc32),_0x7a49a9['addMarker'](_0xf81b1a,{'range':_0xc6bf7a,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x356e96){const _0x6bd87e=_0x356e96['previous'],_0x184b18=_0x356e96['next'];_0x356e96['previous']=null,_0x356e96['next']=null,null!=_0x6bd87e&&_0x6bd87e['next']==_0x356e96&&(_0x6bd87e['next']=_0x184b18),null!=_0x184b18&&_0x184b18['previous']==_0x356e96&&(_0x184b18['previous']=_0x6bd87e),'ready'==this['_suggestionState']['get'](_0x356e96)&&(this['_suggestionState']['set'](_0x356e96,'removed'),this['fire']('suggestionUnloaded',_0x356e96,_0x6bd87e,_0x184b18));}['_setSuggestionData'](_0x4fd40c){const _0x1e37ad=_0x4fd40c['id'],_0xfeb6c9=this['addSuggestionData'](_0x4fd40c);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2a1a58=this['editor']['plugins']['get']('PendingActions'),_0x3ba54e=_0xfeb6c9['hasComments'],_0x5adc59=_0xfeb6c9['subType']?_0xfeb6c9['type']+':'+_0xfeb6c9['subType']:_0xfeb6c9['type'],_0x35e208=this['editor']['locale'],_0x552f2f=_0x2a1a58['add'](o(_0x35e208,'PENDING_ACTION_SUGGESTION')),_0x315031={'id':_0x1e37ad,'type':_0x5adc59,'hasComments':_0x3ba54e,'data':_0x4fd40c['data']||null,'originalSuggestionId':_0x4fd40c['originalSuggestionId']||null,'attributes':_0xfeb6c9['attributes']};this['_adapter']['addSuggestion'](_0x315031)['then'](_0x201869=>{_0xfeb6c9['_saved']=!0x0,_0x2a1a58['remove'](_0x552f2f),_0x201869&&_0x201869['createdAt']&&(this['_suggestions']['get'](_0x1e37ad)['createdAt']=_0x201869['createdAt']);})['catch'](_0x9575aa=>{throw _0x5d59b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xfeb6c9['discard']();}),_0xfeb6c9['stopListening'](),this['_suggestions']['delete'](_0xfeb6c9['id']),this['_suggestionState']['delete'](_0xfeb6c9),_0x9575aa;});}return _0xfeb6c9;}['_isBlockAttribute'](_0x2efda0){return this['_blockAttributeKeys']['has'](_0x2efda0);}['_updateSuggestionData'](_0x3872eb,_0x2f5127){const _0x5510fb=this['editor']['plugins']['get']('PendingActions'),_0x355b8d=this['getSuggestion'](_0x3872eb);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x355b8d['_saved']){const _0x1f99fd=_0x5510fb['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x3872eb,_0x2f5127)['then'](()=>{_0x5510fb['remove'](_0x1f99fd);});}else _0x355b8d['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x3872eb,_0x2f5127);});}}['_getSuggestionData'](_0x20c674){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x443412('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x20c674);}['_handleNewSuggestionMarker'](_0x1353c4){const {id:_0x35ba5c,type:_0x3f77a2,subType:_0x4bf2bc,authorId:_0x4a223d}=this['_splitMarkerName'](_0x1353c4),_0x361749=this['_suggestions']['get'](_0x35ba5c)||this['_createSuggestion'](_0x3f77a2,_0x4bf2bc,_0x35ba5c,_0x4a223d,{});switch(this['_checkSuggestionCorrectness'](_0x361749,_0x3f77a2,_0x4bf2bc,_0x4a223d),this['_suggestionState']['get'](_0x361749)){case'notReady':this['_getSuggestionData'](_0x35ba5c)['then'](_0x3c7377=>{let _0x266045=Promise['resolve']();_0x3c7377['hasComments']&&(_0x266045=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x35ba5c})),_0x266045['then'](()=>{this['addSuggestionData'](_0x3c7377)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x361749,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x35ba5c,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x361749,'ready'),this['fire']('suggestionLoaded',_0x361749);break;case'ready':this['fire']('suggestionChanged',_0x361749);}return _0x361749['addMarkerName'](_0x1353c4),_0x361749;}['_refreshSuggestionsChain'](_0x20daad){const _0x1d9d1=Array['from'](_0x20daad),_0x22f1c2=_0x1d9d1['filter'](_0x284902=>'attribute'==_0x284902['type']);this['_refreshAttributeSuggestionsChain'](_0x22f1c2);const _0xb72b8a=_0x1d9d1['filter'](_0x2df5bd=>!_0x2df5bd['isMultiRange']&&'attribute'!=_0x2df5bd['type']),_0x5e461b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x318f18=>!_0x318f18['isMultiRange']&&'attribute'!=_0x318f18['type']),_0x197c70=_0x5e461b['filter'](_0x5dbbbc=>!_0x20daad['has'](_0x5dbbbc)),_0x24ed82=new Map(_0x5e461b['map'](_0x2655fb=>[_0x2655fb,this['_suggestionFactory']['getSuggestionCallback'](_0x2655fb['type'],_0x2655fb['subType'],'chain')])),_0x5d04f9=new Map(_0x5e461b['map'](_0x42815a=>[_0x42815a,_0x42815a['getFirstRange']()])),_0x2fc619=new Set(),_0x1d103d=new Set();for(let _0xf2fe8c=0x0;_0xf2fe8c<_0xb72b8a['length'];_0xf2fe8c++)_0x51b401(_0xb72b8a[_0xf2fe8c],_0xb72b8a,_0xf2fe8c+0x1);for(let _0xf23e61=0x0;_0xf23e61<_0xb72b8a['length'];_0xf23e61++)_0x51b401(_0xb72b8a[_0xf23e61],_0x197c70,0x0);const _0x108ae5=new Set();for(let _0x36a4ff=0x0;_0x36a4ff<_0xb72b8a['length'];_0x36a4ff++){const _0x143747=_0xb72b8a[_0x36a4ff];!_0x1d103d['has'](_0x143747)&&_0x143747['previous']&&(_0x108ae5['add'](_0x143747['previous']),_0x143747['previous']['next']===_0x143747&&(_0x143747['previous']['next']=null),_0x143747['previous']=null),!_0x2fc619['has'](_0x143747)&&_0x143747['next']&&(_0x108ae5['add'](_0x143747['next']),_0x143747['next']['previous']===_0x143747&&(_0x143747['next']['previous']=null),_0x143747['next']=null);}function _0x51b401(_0x2dd901,_0x2096a4,_0xac65b5){for(let _0x20f874=_0xac65b5;_0x20f874<_0x2096a4['length'];_0x20f874++){const _0x64921d=_0x197d7b(_0x2dd901,_0x2096a4[_0x20f874]);_0x64921d&&(_0x64921d[0x0]['next']=_0x64921d[0x1],_0x64921d[0x1]['previous']=_0x64921d[0x0],_0x2fc619['add'](_0x64921d[0x0]),_0x1d103d['add'](_0x64921d[0x1]));}}function _0x197d7b(_0x73c0c0,_0x8f2b31){if(_0x73c0c0['author']['id']!==_0x8f2b31['author']['id'])return null;const _0xe6828b=_0x24ed82['get'](_0x73c0c0)(_0x73c0c0,_0x8f2b31,_0x5d04f9['get'](_0x73c0c0),_0x5d04f9['get'](_0x8f2b31));if(!_0xe6828b)return null;return _0x24ed82['get'](_0x8f2b31)(_0x73c0c0,_0x8f2b31,_0x5d04f9['get'](_0x73c0c0),_0x5d04f9['get'](_0x8f2b31))?_0xe6828b[0x1]['commentThread']&&_0xe6828b[0x1]['commentThread']['length']?null:_0xe6828b:null;}_0x108ae5['size']&&this['_refreshSuggestionsChain'](_0x108ae5);}['_refreshAttributeSuggestionsChain'](_0x1c97b0){if(0x0==_0x1c97b0['length'])return;const _0x1a9c73=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11c0cb=>'attribute'==_0x11c0cb['type']&&_0x11c0cb['_isDataLoaded']),_0x502315=[],_0xf3315c=new Map();for(const _0x51c5ff of _0x1a9c73){const _0x4bd5f9=_0x567c87(_0x51c5ff['attributes']);_0xf3315c['has'](_0x4bd5f9)||(_0xf3315c['set'](_0x4bd5f9,_0x502315['length']),_0x502315['push']([]));const _0x511a6a=_0xf3315c['get'](_0x4bd5f9);_0x502315[_0x511a6a]['push'](_0x51c5ff);}!(function(){_0x502315['sort']((_0x5b8172,_0x1c7838)=>{const _0x3f7893=_0x5b8172[0x0]['createdAt'],_0x420f4e=_0x1c7838[0x0]['createdAt'];return _0x3f7893==_0x420f4e?_0x5b8172[0x0]['attributes']['groupId']<_0x1c7838[0x0]['attributes']['groupId']?-0x1:0x1:_0x3f7893<_0x420f4e?-0x1:0x1;});for(const _0x4d8b19 of _0x502315)_0x4d8b19['sort']((_0x238882,_0xdc606d)=>_0x238882['id']<_0xdc606d['id']?-0x1:0x1);}());for(let _0x222e7a=0x0;_0x222e7a<_0x502315['length'];_0x222e7a++){if(0x0==_0x502315[_0x222e7a]['length'])continue;const _0x5674a6=[];for(let _0x41d5b5=_0x222e7a+0x1;_0x41d5b5<_0x502315['length'];_0x41d5b5++)0x0!=_0x502315[_0x41d5b5]['length']&&_0xadcff4(_0x502315[_0x222e7a],_0x502315[_0x41d5b5])&&_0x5674a6['push'](_0x41d5b5);for(const _0x45d1e6 of _0x5674a6)_0x502315[_0x222e7a]=_0x502315[_0x222e7a]['concat'](_0x502315[_0x45d1e6]),_0x502315[_0x45d1e6]=[];}for(const _0x5ae15e of _0x502315)for(let _0x3a38f5=0x0;_0x3a38f5<_0x5ae15e['length'];_0x3a38f5++){const _0x207164=_0x5ae15e[_0x3a38f5+0x1]||null;_0x5ae15e[_0x3a38f5]['next']!==_0x207164&&(_0x5ae15e[_0x3a38f5]['next']=_0x207164);}for(const _0x123fd0 of _0x502315)for(let _0xf14b31=0x0;_0xf14b31<_0x123fd0['length'];_0xf14b31++){const _0x507d6c=_0x123fd0[_0xf14b31-0x1]||null;_0x123fd0[_0xf14b31]['previous']!==_0x507d6c&&(_0x123fd0[_0xf14b31]['previous']=_0x507d6c);}function _0xadcff4(_0x5a28e4,_0x3b9706){if(_0x5a28e4[0x0]['attributes']['groupId']!==_0x3b9706[0x0]['attributes']['groupId']&&_0x5a28e4[0x0]['author']!==_0x3b9706[0x0]['author'])return!0x1;if(!function(_0x244688,_0xb064ee){if(!_0x244688['hasComments']&&!_0xb064ee['hasComments'])return!0x0;if(_0x244688['hasComments']&&_0xb064ee['hasComments'])return!0x1;if(_0x244688['hasComments']&&_0xb064ee['createdAt']<_0x244688['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xb064ee['hasComments']&&_0x244688['createdAt']<_0xb064ee['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x5a28e4[0x0],_0x3b9706[0x0]))return!0x1;const _0xb03a45=Et(_0x5a28e4[0x0]['attributes'],'groupId'),_0x596f87=Et(_0x3b9706[0x0]['attributes'],'groupId');if(!_0x3a2d98(_0xb03a45,_0x596f87))return!0x1;return!!_0x5a28e4['every'](_0x5be232=>_0x3b9706['some'](_0x4b198f=>_0x5be232['getFirstRange']()['isEqual'](_0x4b198f['getFirstRange']())))&&_0x3b9706['every'](_0x57b7d4=>_0x5a28e4['some'](_0x21c785=>_0x57b7d4['getFirstRange']()['isEqual'](_0x21c785['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5c7b24){const _0x538f48=Array['from'](_0x5c7b24),_0x35e6b8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x1744a2=_0x35e6b8['filter'](_0x332d2f=>!_0x5c7b24['has'](_0x332d2f)),_0x12f018=new Map(_0x538f48['map'](_0x17b8e9=>[_0x17b8e9,this['_suggestionFactory']['getSuggestionCallback'](_0x17b8e9['type'],_0x17b8e9['subType'],'join')])),_0x1a2da5=new Map(_0x35e6b8['map'](_0x36e9bd=>[_0x36e9bd,_0x36e9bd['getRanges']()]));for(let _0x491274=0x0;_0x491274<_0x538f48['length'];_0x491274++){if(_0x1100bd(this,_0x538f48[_0x491274],_0x538f48,_0x491274+0x1))return!0x0;}for(let _0x4a175e=0x0;_0x4a175e<_0x538f48['length'];_0x4a175e++){if(_0x1100bd(this,_0x538f48[_0x4a175e],_0x1744a2,0x0))return!0x0;}return!0x1;function _0x1100bd(_0x50afc1,_0x2d8edb,_0x4e9427,_0x23d642){for(let _0x12b604=_0x23d642;_0x12b604<_0x4e9427['length'];_0x12b604++){const _0x23142b=_0x4e9427[_0x12b604];if(_0x23142b['type']!==_0x2d8edb['type']||_0x23142b['author']['id']!==_0x2d8edb['author']['id']||_0x23142b['subType']!==_0x2d8edb['subType'])continue;if(!zt(_0x2d8edb,_0x23142b))continue;if('attribute'==_0x2d8edb['type']&&_0x2d8edb['data']['oldValue']!=_0x23142b['data']['oldValue'])continue;if('attribute'==_0x2d8edb['type']&&_0x50afc1['_isBlockAttribute'](_0x2d8edb['data']['key']))continue;if('formatBlock'==_0x2d8edb['type']){const _0x3f137d=_0x50afc1['editor']['model'],_0x21aa40=_0x2d8edb['getContainedElement']();if(_0x21aa40&&(_0x3f137d['schema']['isObject'](_0x21aa40)||_0x3f137d['schema']['isLimit'](_0x21aa40)))continue;}const _0x1f1d08=_0x12f018['get'](_0x2d8edb),_0x283b5a=_0x1a2da5['get'](_0x2d8edb),_0x187764=_0x1a2da5['get'](_0x23142b),_0x159998=_0x2d8edb['commentThread']&&_0x2d8edb['commentThread']['length'],_0x519687=_0x23142b['commentThread']&&_0x23142b['commentThread']['length'];if(!_0x159998&&_0x1f1d08(_0x187764,_0x283b5a))return _0x50afc1['_joinSuggestions'](_0x23142b,_0x2d8edb),_0x1a2da5['delete'](_0x2d8edb),!0x0;if(!_0x519687&&_0x1f1d08(_0x283b5a,_0x187764))return _0x50afc1['_joinSuggestions'](_0x2d8edb,_0x23142b),_0x1a2da5['delete'](_0x23142b),!0x0;}return!0x1;}}['_joinSuggestions'](_0x155f11,_0x387a63){if(_0x155f11['isMultiRange']){for(const _0x27affc of _0x387a63['getRanges']())_0x155f11['addRange'](_0x27affc);}else{const _0x98b675=_0x387a63['getFirstRange']()['end'];this['_setSuggestionRange'](_0x155f11,this['_model']['createRange'](_0x155f11['getFirstRange']()['start'],_0x98b675));}_0x387a63['removeMarkers']();}['_getMarkerAnnouncementText'](_0x56042a,_0x484291,_0x3398fc){const _0x198022=_0x56042a['startsWith']('format')||_0x56042a['startsWith']('attribute')?'FORMATTING':_0x56042a['toUpperCase']();return o(this['editor']['locale'],_0x484291+'_'+_0x198022+'_SUGGESTION_ANNOUNCEMENT',_0x3398fc);}['_initAriaMarkerChangeAnnouncements'](){const _0x46d7c1=this['editor'];if(!_0x46d7c1['ui'])return;const {ariaLiveAnnouncer:_0x75411a}=_0x46d7c1['ui'];_0x499a36(this['_model'],({left:_0x517648,entered:_0x29ea30})=>{for(const _0x15cc39 of _0x517648){const {group:_0x94cfee,type:_0x56f363}=this['_splitMarkerName'](_0x15cc39['name']);if('suggestion'===_0x94cfee){_0x75411a['announce'](this['_getMarkerAnnouncementText'](_0x56f363,'LEAVE'));break;}}for(const _0x4f94bf of _0x29ea30){const {group:_0xb37452,type:_0xe61abb}=this['_splitMarkerName'](_0x4f94bf['name']);if('suggestion'===_0xb37452){_0x75411a['announce'](this['_getMarkerAnnouncementText'](_0xe61abb,'ENTER',_0x2b9d18(_0x3b30c0)));break;}}});}['_processAttributeChanges'](_0x373ea1){if(this['_recordAttributeSuggestions'])return!0x1;const _0x182985=this['editor'],_0x66826a=_0x182985['model']['document']['differ']['getChanges']();if(0x0==_0x66826a['length'])return!0x1;const _0x1de832=[],_0xec83f3=_0x66826a['filter'](_0x13869d=>'attribute'==_0x13869d['type']),_0x3ae878=_0x66826a['filter'](_0x2b4999=>'insert'==_0x2b4999['type']&&'$text'!=_0x2b4999['name']),_0x2dc7be=_0x66826a['filter'](_0x3c8c8c=>'remove'==_0x3c8c8c['type']&&'$text'!=_0x3c8c8c['name']);for(const _0x40d4b2 of _0xec83f3)_0x1de832['push']({'key':_0x40d4b2['attributeKey'],'newValue':_0x40d4b2['attributeNewValue'],'oldValue':_0x40d4b2['attributeOldValue'],'range':Jt(_0x40d4b2['range'],_0x182985['model'])});for(const _0x4c5f76 of _0x3ae878){const _0x522e6f=_0x2dc7be['find'](_0x22de5f=>_0x22de5f['position']['isEqual'](_0x4c5f76['position']));_0x522e6f&&_0x1de832['push']({'key':m,'newValue':_0x4c5f76['name'],'oldValue':_0x522e6f['name'],'range':_0x182985['model']['createRangeOn'](_0x4c5f76['position']['nodeAfter'])});}return 0x0!=_0x1de832['length']&&this['_reduceExistingSuggestions'](_0x373ea1,_0x1de832);}['_processAttributeSuggestions'](_0x75a39f){let _0x39035e=!0x1;const _0x75de50=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4a1d8c=>_0x4a1d8c['data']['newRange']&&_0x4a1d8c['name']['startsWith']('suggestion:attribute:'));for(const _0x194d41 of _0x75de50){const {subType:_0x494991,id:_0x2f0c4d}=this['_splitMarkerName'](_0x194d41['name']),_0x3d0fe2=_0x494991['split']('|')[0x0];for(const _0x2f8711 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x2f8711['id']!=_0x2f0c4d&&'attribute'==_0x2f8711['type']&&_0x2f8711['data']&&_0x2f8711['data']['key']==_0x3d0fe2&&_0x2f8711['getFirstRange']()['isIntersecting'](_0x194d41['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x2f8711,_0x194d41['data']['newRange'],_0x75a39f),_0x39035e=!0x0);}return _0x39035e;}['_recordAttributeChanges'](_0x2c8563){this['_recordAttributeSuggestions']=!0x0,_0x2c8563();}['_isRegisteredAttribute'](_0x3ce0c8){const _0x408ede=this['_isBlockAttribute'](_0x3ce0c8),_0x463a6f=this['_inlineAttributeKeys']['has'](_0x3ce0c8);return _0x408ede||_0x463a6f;}['_reduceExistingSuggestions'](_0xfd4387,_0x59273e){if(0x0==_0x59273e['length'])return!0x1;let _0x63194e=!0x1;for(const _0x8ec45d of _0x59273e){const _0x4c9ddd=this['_findSuggestions'](_0x8ec45d['range'],'attribute')['filter'](_0x473595=>!_0x473595['meta']['isNextTo'])['map'](_0x528247=>_0x528247['suggestion']),_0x42c3cd=_0x567c87({'newValue':_0x8ec45d['newValue']});_0x4c9ddd['filter'](_0x1b0de8=>{const [_0x1208b6,_0x5430ae]=_0x1b0de8['subType']['split']('|');return _0x1208b6==_0x8ec45d['key']&&_0x5430ae!=_0x42c3cd;})['forEach'](_0x2ef675=>{this['_reduceSuggestionAttributeRange'](_0x2ef675,_0x8ec45d['range'],_0xfd4387),_0x63194e=!0x0;});}return _0x63194e;}['_reduceSuggestionAttributeRange'](_0xfaa21d,_0x4ba433,_0x5a47a9){const _0x1bdc43=_0xfaa21d['getFirstRange']()['getDifference'](_0x4ba433);0x0!==_0x1bdc43['length']?0x1!==_0x1bdc43['length']?this['_breakSuggestionMarker'](_0xfaa21d,_0x4ba433['start'],_0x4ba433['end']):this['_setSuggestionRange'](_0xfaa21d,_0x1bdc43[0x0]):_0x5a47a9['removeMarker'](_0xfaa21d['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x9cad14){this['_editor']=_0x9cad14,this['_model']=_0x9cad14['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3c9020,_0x3c0130,_0x152411,_0x32e8bb,_0x2bcd55,_0x2391d1){return new u(this['_model'],{'type':_0x3c9020,'subType':_0x3c0130,'id':_0x152411,'author':_0x32e8bb,'creator':_0x32e8bb,'attributes':_0x2bcd55,'onAttributesChange':_0x2391d1,'onAccept':(..._0x4c8f17)=>this['getSuggestionCallback'](_0x3c9020,_0x3c0130,'accept')(..._0x4c8f17),'onDiscard':(..._0x254f97)=>this['getSuggestionCallback'](_0x3c9020,_0x3c0130,'discard')(..._0x254f97)});}['registerCustomCallback'](_0x11ebdb,_0x4c9bde,_0x3d196f,_0x448e51){const _0x346b34=_0x11ebdb+':'+_0x4c9bde+':'+_0x3d196f;this['_customCallbacks']['set'](_0x346b34,_0x448e51);}['getSuggestionCallback'](_0x206ae2,_0x154d1a,_0x193f6b){const _0x2006f4=_0x206ae2+':'+_0x154d1a+':'+_0x193f6b;return this['_customCallbacks']['get'](_0x2006f4)||this['_defaultCallbacks']['get'](_0x206ae2+':'+_0x193f6b);}['_registerDefaultCallbacks'](){const _0x492805=()=>!0x1,_0x2a15b4=_0x574f8a=>{_0x574f8a['sort']((_0x33cb9e,_0x42c34f)=>_0x33cb9e['start']['isBefore'](_0x42c34f['start'])?0x1:-0x1),this['_model']['change'](_0xa44dc4=>{for(const _0x44c56b of _0x574f8a){let _0xc266bc;_0xc266bc=_0x44c56b['end']['isAtEnd']&&_0x44c56b['end']['parent']==_0x44c56b['start']['nodeAfter']?_0xa44dc4['createSelection'](_0x44c56b['start']['nodeAfter'],'on'):_0xa44dc4['createSelection'](_0x44c56b),this['_model']['deleteContent'](_0xc266bc,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x144b23=(_0x23f83d,_0x2ccd02)=>{_0x2ccd02&&this['_model']['change'](_0x144521=>{const {commandName:_0x32d764,commandParams:_0x32607a=[]}=_0x2ccd02,_0x1f3db9=_0x23f83d['map'](_0x5e2a51=>(Pt(_0x5e2a51)&&(_0x5e2a51=this['_model']['createRange'](_0x5e2a51['end'])),_0x5e2a51))['filter'](_0x29b208=>'$graveyard'!==_0x29b208['root']['rootName']);if(_0x1f3db9['length']<0x1)return;const _0x1fecf3=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x19f0e1=>_0x190639['fromRange'](_0x19f0e1));_0x144521['setSelection'](_0x1f3db9);for(const _0x3ae62b of this['_editor']['commands']['commands']())_0x3ae62b['refresh']();_0x32607a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x32d764,..._0x32607a);const _0x2a7f30=_0x1fecf3['filter'](_0x2076a7=>'$graveyard'!=_0x2076a7['root']['rootName']);_0x2a7f30['length']>0x0&&_0x144521['setSelection'](_0x2a7f30);for(const _0x54f67f of _0x1fecf3)_0x54f67f['detach']();});},_0x2a58a5=(_0x500156,_0x5c0cb6)=>0x1==_0x500156['length']&&0x1==_0x5c0cb6['length']&&_0x500156[0x0]['end']['isEqual'](_0x5c0cb6[0x0]['start']),_0x2b85f9=(_0x87486b,_0x3a6903,_0x1942d3,_0x62f9f6)=>qt(_0x87486b,_0x3a6903,_0x1942d3,_0x62f9f6)?[_0x87486b,_0x3a6903]:qt(_0x3a6903,_0x87486b,_0x62f9f6,_0x1942d3)?[_0x3a6903,_0x87486b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x492805),this['_defaultCallbacks']['set']('insertion:discard',_0x2a15b4),this['_defaultCallbacks']['set']('insertion:join',_0x2a58a5),this['_defaultCallbacks']['set']('insertion:chain',_0x2b85f9),this['_defaultCallbacks']['set']('deletion:accept',_0x2a15b4),this['_defaultCallbacks']['set']('deletion:discard',_0x492805),this['_defaultCallbacks']['set']('deletion:join',_0x2a58a5),this['_defaultCallbacks']['set']('deletion:chain',_0x2b85f9),this['_defaultCallbacks']['set']('formatInline:accept',_0x144b23),this['_defaultCallbacks']['set']('formatInline:discard',_0x492805),this['_defaultCallbacks']['set']('formatInline:join',_0x2a58a5),this['_defaultCallbacks']['set']('formatInline:chain',_0x492805),this['_defaultCallbacks']['set']('formatBlock:accept',_0x144b23),this['_defaultCallbacks']['set']('formatBlock:discard',_0x492805),this['_defaultCallbacks']['set']('formatBlock:join',_0x2a58a5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x492805),this['_defaultCallbacks']['set']('attribute:accept',_0x492805),this['_defaultCallbacks']['set']('attribute:discard',(_0x59fa1b,_0x53e109)=>{if(!_0x53e109)return;const _0x35939c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1bd1f8=>{if(_0x53e109['key']==m)for(const _0x598c88 of _0x59fa1b){const _0x1f04ba=_0x598c88['start']['nodeAfter'],_0x38cf1b=_0x53e109['oldValue'];_0x1bd1f8['rename'](_0x1f04ba,_0x38cf1b);}else{if(_0x35939c['_isBlockAttribute'](_0x53e109['key'])){for(const _0x2aeab3 of _0x59fa1b)void 0x0!==_0x53e109['oldValue']?_0x1bd1f8['setAttribute'](_0x53e109['key'],_0x53e109['oldValue'],_0x2aeab3['start']['nodeAfter']):_0x1bd1f8['removeAttribute'](_0x53e109['key'],_0x2aeab3['start']['nodeAfter']);}else{for(const _0x197556 of _0x59fa1b)_0x53e109['oldValue']?_0x1bd1f8['setAttribute'](_0x53e109['key'],_0x53e109['oldValue'],_0x197556):_0x1bd1f8['removeAttribute'](_0x53e109['key'],_0x197556);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2a58a5);}}function Vt(_0x325b97,_0x362a1c,_0x4d74bb){for(const _0x51a007 of _0x362a1c['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x51a007['root']==_0x51a007)return!0x1;if(!_0x4d74bb['containsItem'](_0x51a007))return!0x1;if(_0x325b97['isObject'](_0x51a007)||_0x325b97['isLimit'](_0x51a007))return!0x0;}return!0x1;}function Pt(_0x52bd0f){return _0x52bd0f['end']['parent']==_0x52bd0f['start']['nodeAfter']&&_0x52bd0f['end']['isAtStart'];}function Gt(_0x18df1e,_0x582d47,_0x4ae88e,_0x458a14){const _0xe813c4=_0x5cff43=>!_0x5cff43['item']['is']('$textProxy')&&!_0x458a14['isObject'](_0x5cff43['item']),_0x427f34=_0x18df1e['start']['getLastMatchingPosition'](_0xe813c4),_0x282aa8=_0x18df1e['end']['getLastMatchingPosition'](_0xe813c4,{'direction':'backward'});return(!_0x18df1e['start']['isEqual'](_0x427f34)||!_0x18df1e['end']['isEqual'](_0x282aa8))&&(_0x427f34['isBefore'](_0x282aa8)?_0x4ae88e['updateMarker'](_0x582d47,{'range':_0x4ae88e['createRange'](_0x427f34,_0x282aa8)}):_0x4ae88e['removeMarker'](_0x582d47),!0x0);}function Ft(_0x4e9607){return _0x567c87(_0x4e9607);}function Lt(_0x14e2ba){const _0x11f516=_0x14e2ba['start']['nodeAfter'];return _0x11f516&&_0x11f516['is']('element');}function Jt(_0x31f126,_0x39ff00){return null==_0x31f126['end']['nodeBefore']&&_0x31f126['end']['parent']==_0x31f126['start']['nodeAfter']?Ht(_0x31f126['start']['nodeAfter'],_0x39ff00):_0x31f126;}function Ht(_0x57f968,_0x548885){const _0x148b42=_0x548885['schema']['isObject'](_0x57f968)||_0x548885['schema']['isSelectable'](_0x57f968);return _0x548885['createRange'](_0x548885['createPositionAt'](_0x57f968,'before'),_0x148b42?_0x548885['createPositionAfter'](_0x57f968):_0x548885['createPositionAt'](_0x57f968,'end'));}function qt(_0x3013be,_0x14fba7,_0x400ff7,_0x460b59){return!!zt(_0x3013be,_0x14fba7)&&_0x400ff7['end']['isEqual'](_0x460b59['start']);}function zt(_0x3d057d,_0x2258eb){if(!_0x3d057d['_isDataLoaded']||!_0x2258eb['_isDataLoaded'])return!0x1;const _0x3a4615=new Set(Object['keys'](_0x3d057d['attributes'])),_0x26cbd9=new Set(Object['keys'](_0x2258eb['attributes']));if(_0x3a4615['delete']('groupId'),_0x26cbd9['delete']('groupId'),0x0==_0x3a4615['size']&&0x0==_0x26cbd9['size'])return!0x0;if(_0x3a4615['size']!=_0x26cbd9['size'])return!0x1;const _0x424169={..._0x3d057d['attributes']},_0x24384e={..._0x2258eb['attributes']};return delete _0x424169['groupId'],delete _0x24384e['groupId'],JSON['stringify'](_0x424169)==JSON['stringify'](_0x24384e);}function Kt(_0x1a2286,_0x38cfec){const _0x12e80b=Wt(_0x1a2286['attributes']),_0xf682e2=Wt(_0x38cfec);if(!_0x1a2286['_isDataLoaded'])return!0x1;for(const _0x4484f4 of Object['keys'](_0xf682e2))if(!_0x3a2d98(_0x12e80b[_0x4484f4],_0xf682e2[_0x4484f4]))return!0x1;return!0x0;}function Wt(_0x3b245e){const _0x343273=Object['assign']({},_0x3b245e);return delete _0x343273['skipNestingCheck'],delete _0x343273['tablePasteChainId'],_0x343273;}class Ce extends/* #__PURE__ -- @preserve */
25
- _0x1e4a9e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x330a70,_0x5a302d,_0x59e0fd,_0x18033c){super(),this['model']=_0x5a302d,this['view']=_0x59e0fd,this['commentThreadController']=_0x18033c,this['_editor']=_0x330a70,this['_acceptCommand']=_0x330a70['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x330a70['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x476e0e,_0x4941fc)=>_0x476e0e||_0x4941fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x543aca=>_0x543aca&&this['_editor']['model']['canEditAt'](_0x5a302d['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x283402=>_0x283402&&this['_editor']['model']['canEditAt'](_0x5a302d['getRanges']())),this['_pendingAction']=null,_0x59e0fd['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x59e0fd,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x59e0fd,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x59e0fd,'change:isDirty',()=>{_0x59e0fd['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 _0x23aa92=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x23aa92);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x5af415{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x4301ea,_0x7264c5,_0x5f3a4e,_0x28e6bf){super(_0x4301ea),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x43b6cb(_0x4301ea,o(_0x4301ea,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x7264c5['authoredAt']),this['bind']('authoredAt')['to'](_0x7264c5),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',_0x7264c5,'authoredAt',this,'descriptionParts',(_0x2d41d6,_0x22ca09,_0x284171)=>{const _0x57fa4d=_0x284171['map'](_0x1037e7=>ns(_0x1037e7['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2d41d6-0x1,_0x7264c5['author']['name'],_0x22ca09?_0x28e6bf['formatDateTime'](_0x22ca09):'',new DOMParser()['parseFromString'](_0x57fa4d,'text/html')['body']['textContent']]);}),this['focusables']=new _0x2ee850(),this['focusTracker']=new _0x48b573(),this['keystrokes']=new _0xace25c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48fd6e=>_0x48fd6e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x7264c5,this['_localUser']=_0x5f3a4e,this['_config']=_0x28e6bf,_0x28e6bf['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x5a76a7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x386b28}=this['_config'];this['commentsListView']=new _0x386b28(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',_0x3f981e=>_0x3f981e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x360cd4,_0x1db04d)=>_0x360cd4||!!_0x1db04d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2dda60}=this['_config'],_0x42e7ed=new _0x2dda60(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x28d412=_0x42e7ed['commentInputView'];return _0x42e7ed['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x28d412,'value',(_0x5e07e9,_0x402d7e,_0x579ff1)=>!!_0x579ff1||_0x5e07e9&&!_0x402d7e),_0x28d412['on']('submit',(_0x407bf0,_0x5ed9c3)=>{this['fire']('addComment',_0x5ed9c3),_0x28d412['editor']['setData']('');}),_0x28d412['on']('cancel',()=>this['focus']()),_0x28d412['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x42e7ed;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x3437ef,_0x2c1a97,_0x25cd26,_0xab50f9){super(_0x3437ef,_0x2c1a97,_0x25cd26,_0xab50f9),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5584aa=>_0x5584aa&&_0x5584aa[0x0]?_0x5584aa[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x272bcc,_0x5ab921)=>{let _0x14c591='';for(const _0x2120ea of _0x272bcc)_0x14c591+='<p>'+ns(_0x2120ea['content'],_0x2120ea['color'])+'</p>';return _0x5ab921?_0x14c591:_0x1eae6c(_0x14c591,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0xab50f9['SuggestionView'](_0x3437ef,_0x2c1a97,{'formatDateTime':_0xab50f9['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 _0x55c29c=this['bindTemplate'],_0xe508ed=[this['suggestionView']];return this['commentsListView']&&_0xe508ed['push'](this['commentsListView']),this['commentThreadInputView']&&_0xe508ed['push'](this['commentThreadInputView']),_0xe508ed['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x55c29c['if']('isActive','ck-suggestion-wrapper--active'),_0x55c29c['to']('type',_0x1ef00f=>'ck-suggestion-'+_0x1ef00f),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':_0x55c29c['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0xe508ed};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x5af415{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x291531,_0x914bf3,_0x2f0c07){super(_0x291531),this['_model']=_0x914bf3,this['_config']=_0x2f0c07,this['set']('description',''),this['bind']('authoredAt')['to'](_0x914bf3),this['acceptButton']=this['_createButton'](o(_0x291531,'Accept\x20suggestion'),_0x4175cb['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x291531,'Discard\x20suggestion'),_0x4175cb['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x52c9bb(_0x291531,_0x914bf3['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x2ee850([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48b573(),this['keystrokes']=new _0xace25c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x2d860a=>_0x2d860a['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3f1914=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3f1914['innerHTML']=this['description'],this['on']('change:description',(_0x27a4c8,_0x277903,_0x26ee2a)=>{_0x3f1914['innerHTML']=_0x26ee2a;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x1e65fd=this['bindTemplate'],_0x2b6252=[{'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':_0x1e65fd['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1e65fd['to']('authoredAt',_0x1ca027=>this['_config']['formatDateTime'](_0x1ca027))}]}]},{'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']&&_0x2b6252['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':_0x2b6252}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x1db3d0,_0x1a7071,_0x528b2f,_0x4d686b,_0x14e5e8){const _0x554140=new _0x5b52ba(this['locale']);return _0x554140['set']({'label':_0x1db3d0,'icon':_0x1a7071,'tooltip':!0x0,'tooltipPosition':_0x14e5e8}),_0x554140['extendTemplate']({'attributes':{'class':_0x528b2f}}),_0x554140['on']('execute',()=>{this['fire'](_0x4d686b,this['_model']['id']);}),_0x554140;}['_setupKeyboardNavigation'](){const _0x4be085=this['element'];this['keystrokes']['listenTo'](_0x4be085);for(const _0x4be762 of this['focusables'])this['focusTracker']['add'](_0x4be762['element']),this['keystrokes']['listenTo'](_0x4be762['element']);this['keystrokes']['set']('enter',(_0x330565,_0x3994e5)=>{_0x4be085===_0x330565['target']&&(this['focusCycler']['focusFirst'](),_0x3994e5());}),this['keystrokes']['set']('esc',(_0x2a55ee,_0x331cd1)=>{_0x4be085!==_0x2a55ee['target']&&(this['focus'](),_0x331cd1());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x5d6089{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xb5d06b,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x593982){super(_0x593982),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x98dddb=this['editor']['config'];_0x98dddb['define']('trackChanges.SuggestionThreadView',pe),_0x98dddb['define']('trackChanges.SuggestionView',fe),_0x98dddb['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x98dddb['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x3817dc,_0x1f1e59){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4cd674,_0x4d627d]of this['_handleControllerBuffer']){const _0x2cb69f=this['_suggestionToController']['has'](_0x4cd674);_0x2cb69f||_0x4d627d?_0x2cb69f&&_0x4d627d&&this['_destroyController'](_0x4cd674):this['_initializeController'](_0x4cd674);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3817dc,_0x1f1e59);}['init'](){const _0x2ef3ce=this['editor'],_0x782ba1=_0x2ef3ce['plugins']['get']('TrackChangesEditing'),_0xbc7f54=_0x2ef3ce['plugins']['get']('Annotations'),_0x11d114=_0x2ef3ce['plugins']['get']('EditorAnnotations'),_0x5d1d0c=_0x2ef3ce['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x11d114['addSourceCollector'](()=>{const _0x1ff1ea=[];for(const [_0xefc70e,_0x4b8a95]of Array['from'](this['_suggestionToController'])){const _0x5bad70=_0xefc70e['getAllAdjacentSuggestions'](),_0x49f004=[];for(const _0x349633 of _0x5bad70){if(!_0x349633['isInContent'])continue;if(_0x349633['isMultiRange']){_0x49f004['push'](..._0x349633['getRanges']());continue;}const _0x149e2e=_0x349633['getFirstRange']();if(_0x49f004['length']>0x0){const _0x5d326e=_0x49f004[0x0]['getJoined'](_0x149e2e);if(_0x5d326e){_0x49f004[0x0]=_0x5d326e;continue;}}_0x49f004['push'](_0x149e2e);}_0x1ff1ea['push']([_0x4b8a95['view'],_0x49f004]);}return _0x1ff1ea;}),this['listenTo'](_0x782ba1,'suggestionLoaded',(_0x2a598b,_0x17a880)=>{this['listenTo'](_0x17a880,'change:previous',(_0x5d4819,_0x18eafc,_0x29bcd8,_0x4d4741)=>{_0x17a880['isInContent']&&(null==_0x29bcd8?(this['_updateController'](_0x4d4741['head']),this['_handleSuggestionControllerDelayed'](_0x17a880,!0x1)):(this['_updateController'](_0x29bcd8['head']),null==_0x4d4741&&this['_handleSuggestionControllerDelayed'](_0x17a880,!0x0)));}),null!==_0x17a880['previous']?this['_updateController'](_0x17a880['head']):this['_handleSuggestionControllerDelayed'](_0x17a880,!0x1);}),this['listenTo'](_0x782ba1,'suggestionUnloaded',(_0x128deb,_0x3a6877,_0xfb0208)=>{this['stopListening'](_0x3a6877,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3a6877),this['_suggestionToController']['has'](_0x3a6877)&&this['_destroyController'](_0x3a6877),_0xfb0208&&this['_updateController'](_0xfb0208['head']);}),this['listenTo'](_0x782ba1,'suggestionChanged',(_0x14c690,_0x2339f1)=>{this['_updateController'](_0x2339f1);}),this['listenTo'](_0xbc7f54,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5d1d0c,'addComment',(_0x1c3ff1,{threadId:_0x2367fc,isFromAdapter:_0x1f8edf})=>{if(_0x1f8edf||!_0x782ba1['hasSuggestion'](_0x2367fc))return;const _0x34ceb7=_0x782ba1['getSuggestion'](_0x2367fc);this['_suggestionToController']['get'](_0x34ceb7)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5e6b0a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x537292;for(const _0x286a19 in _0x5e6b0a){const _0x3aea60=_0x286a19,_0x18396d=_0x5e6b0a[_0x3aea60];if('trackChangesLicenseKeyValid'==_0x18396d||'trackChangesLicenseKeyInvalid'==_0x18396d||'trackChangesLicenseKeyExpired'==_0x18396d||'trackChangesLicenseKeyDomainLimit'==_0x18396d||'trackChangesLicenseKeyNotAllowed'==_0x18396d||'trackChangesLicenseKeyEvaluationLimit'==_0x18396d||'trackChangesLicenseKeyTrialLimit'==_0x18396d||'trackChangesLicenseKeyUsageLimit'==_0x18396d){delete _0x5e6b0a[_0x3aea60],_0x537292=_0x18396d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x537292&&_0x5e6b0a['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x537292&&_0x5e6b0a['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x537292&&_0x5e6b0a['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x537292&&_0x5e6b0a['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x50a787=this['editor']['plugins']['get']('Annotations'),_0x43af3a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15cb62=Array['from'](_0x50a787['activeAnnotations'],_0x45333c=>_0x45333c['innerView'])['filter'](_0x35aa12=>this['_viewToController']['has'](_0x35aa12)),_0x2b5a3a=[];for(const _0x2e52a5 of _0x15cb62){const _0x1e5268=this['_viewToController']['get'](_0x2e52a5)['model']['getAllAdjacentSuggestions']();_0x2b5a3a['push'](..._0x1e5268['reduce']((_0x11ed0b,_0xc0d6f1)=>[..._0x11ed0b,..._0xc0d6f1['getMarkerNames']()],[]));}_0x43af3a['activeMarkers']=_0x2b5a3a;}['_addUIComponentsToFactory'](){const _0x72fb43=this['editor'],_0x26ff8e=_0x72fb43['locale'],_0xbad96b=o(_0x26ff8e,'Track\x20changes'),_0x2f5bf9=new _0x587b41([{'type':'switchbutton','model':new _0x5d4f74({'withText':!0x0,'isToggleable':!0x0,'label':_0xbad96b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x72fb43['plugins']['has']('TrackChangesPreview')&&_0x2f5bf9['addMany']([{'type':'separator'},{'type':'button','model':new _0x5d4f74({'withText':!0x0,'label':o(_0x26ff8e,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x4e17cf of _0x2f5bf9)if(ke(_0x4e17cf)){const _0x115f83=_0x72fb43['commands']['get'](_0x4e17cf['model']['commandName']);_0x4e17cf['model']['bind']('isOn','isEnabled')['to'](_0x115f83,'value','isEnabled');}_0x72fb43['ui']['componentFactory']['add']('trackChanges',_0x2ecec3=>this['_createToolbarButton'](_0x2ecec3,_0x2f5bf9,_0xbad96b)),_0x72fb43['ui']['componentFactory']['add']('menuBar:trackChanges',_0x323437=>this['_createMenuBarMenu'](_0x323437,_0x2f5bf9,_0xbad96b));}['_createToolbarButton'](_0x36d2bb,_0x1fd183,_0x2a89d1){const _0x304652=_0x21aa3c(_0x36d2bb,_0xe7a2f2),_0x288e0d=this['editor']['commands']['get']('trackChanges');_0x304652['buttonView']['set']({'tooltip':_0x2a89d1,'label':_0x2a89d1,'icon':we}),_0x304652['buttonView']['bind']('isOn')['to'](_0x288e0d,'value'),_0x304652['buttonView']['on']('execute',()=>{_0x288e0d['execute'](),this['editor']['editing']['view']['focus']();}),_0x20b8e0(_0x304652,_0x1fd183,{'role':'menu'});const _0xf82806=[];for(const _0x2f1adf of _0x1fd183)ke(_0x2f1adf)&&_0xf82806['push'](this['editor']['commands']['get'](_0x2f1adf['model']['commandName']));const _0x5b3681=_0x304652['buttonView'];return _0x5b3681['actionView']['unbind']('isEnabled'),_0x5b3681['arrowView']['unbind']('isEnabled'),_0x5b3681['actionView']['bind']('isEnabled')['to'](_0x288e0d,'isEnabled'),_0x5b3681['arrowView']['bind']('isEnabled')['toMany'](_0xf82806,'isEnabled',(..._0x481577)=>_0x481577['some'](_0xa7fb42=>_0xa7fb42)),_0x304652['on']('execute',_0x302799=>{this['editor']['execute'](_0x302799['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x304652;}['_createMenuBarMenu'](_0x1e85eb,_0x8b9146,_0x1b1910){const _0x388616=new _0x54474e(_0x1e85eb),_0x331359=this['editor']['commands']['get']('trackChanges');_0x388616['buttonView']['set']({'label':_0x1b1910,'icon':we});const _0x148d15=new _0x2c7f70(_0x1e85eb);for(const _0x1d5301 of _0x8b9146){if('separator'==_0x1d5301['type']){_0x148d15['items']['add'](new _0x1eeea8(_0x1e85eb));continue;}const _0x477497=new _0x37c849(_0x1e85eb,_0x388616),_0xb59a91=new _0x2a6114(_0x1e85eb),_0x30e982=_0x1d5301['model'];_0xb59a91['bind'](...Object['keys'](_0x30e982))['to'](_0x30e982),_0xb59a91['delegate']('execute')['to'](_0x388616),_0xb59a91['on']('execute',()=>{this['editor']['execute'](_0x30e982['commandName']),this['editor']['editing']['view']['focus']();}),_0x477497['children']['add'](_0xb59a91),_0x148d15['items']['add'](_0x477497);}return _0x388616['bind']('isEnabled')['to'](_0x331359,'isEnabled'),_0x388616['panelView']['children']['add'](_0x148d15),_0x388616;}['_initializeController'](_0x14abc0){const _0x387aa3=this['editor'],_0x1c0c4b=_0x387aa3['config'],_0x69ebb8=_0x387aa3['plugins']['get']('Annotations'),_0x4e0995=_0x387aa3['plugins']['get']('CommentsRepository'),_0x2b2b98=_0x387aa3['plugins']['get']('EditorAnnotations'),_0x452314=_0x387aa3['plugins']['get'](_0xb5d06b)['me'],_0x3b2259=_0x1c0c4b['get']('trackChanges')['SuggestionThreadView'],_0x474ed8=_0x1c0c4b['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2cefaa,CommentThreadInputView:_0x8b71b}=_0x387aa3['plugins']['get']('CommentsUI');let _0x264e5e,_0x3903bf,_0x4b8f05;this['_annotationViews']['has'](_0x14abc0['id'])?(_0x3903bf=this['_annotationViews']['get'](_0x14abc0['id']),_0x264e5e=_0x3903bf['mainView']):(_0x264e5e=new _0x3b2259(_0x387aa3['locale'],_0x14abc0,_0x452314,{'disableComments':this['_disableComments'],'editorConfig':{..._0x1c0c4b['get']('comments.editorConfig'),'licenseKey':_0x1c0c4b['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x1c0c4b['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x1c0c4b['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x1c0c4b['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x492577(_0x1c0c4b['get']('locale')),'CommentView':_0x1c0c4b['get']('comments')['CommentView'],'CommentsListView':_0x2cefaa,'CommentThreadInputView':_0x8b71b,'SuggestionView':_0x474ed8}),_0x264e5e['suggestionView']['acceptButton']['on']('execute',()=>{_0x387aa3['editing']['view']['focus']();}),_0x264e5e['suggestionView']['discardButton']['on']('execute',()=>{_0x387aa3['editing']['view']['focus']();}),_0x3903bf=_0x69ebb8['createAnnotationView'](this['editor']['locale'],_0x264e5e),_0x3903bf['bind']('isDirty')['to'](_0x264e5e,'isDirty'),_0x3903bf['bind']('length')['to'](_0x264e5e),_0x3903bf['bind']('type')['to'](_0x264e5e,'type',_0x315a1a=>'suggestion-'+_0x315a1a),_0x264e5e['on']('escape',()=>{_0x4b8f05['fire']('escape');}),this['_annotationViews']['set'](_0x14abc0['id'],_0x3903bf));const _0x2eb91f=_0x4e0995['createCommentThreadController'](_0x14abc0['commentThread'],_0x264e5e),_0x1ae3af=new Ce(_0x387aa3,_0x14abc0,_0x264e5e,_0x2eb91f),_0x2f6c98=_0x14abc0['getAllAdjacentSuggestions']()['filter'](_0x4e3fe1=>_0x4e3fe1['isInContent']);_0x264e5e['descriptionParts']=_0x387aa3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2f6c98),this['_suggestionToController']['set'](_0x14abc0,_0x1ae3af),this['_viewToController']['set'](_0x264e5e,_0x1ae3af),_0x4b8f05=_0x69ebb8['createAnnotation']({'view':_0x3903bf,'target':()=>{const _0x1d6c55=[],_0x2267c6=_0x14abc0['getAllAdjacentSuggestions']()['filter'](_0x9e6221=>_0x9e6221['isInContent']);for(const _0x30b35f of _0x2267c6)_0x1d6c55['push'](..._0x30b35f['getMarkers']());return _0x2912c5(_0x387aa3['editing'],_0x1d6c55);},'type':()=>'suggestion-'+_0x1ae3af['view']['type']}),_0x4e0995['_bindAnnotationToEditors'](_0x264e5e,_0x4b8f05),_0x69ebb8['add'](_0x4b8f05),_0x2b2b98['registerAnnotation'](_0x4b8f05);}['_destroyController'](_0x592c50){const _0x381905=this['editor']['plugins']['get']('CommentsRepository'),_0x26bbb4=this['editor']['plugins']['get']('Annotations'),_0x2eaed7=this['_suggestionToController']['get'](_0x592c50),_0x208b3f=_0x2eaed7['view'],_0x1fe3ec=_0x26bbb4['getByInnerView'](_0x208b3f);_0x381905['_unbindEditors'](_0x208b3f),_0x1fe3ec&&_0x26bbb4['remove'](_0x1fe3ec),this['_suggestionToController']['delete'](_0x592c50),this['_viewToController']['delete'](_0x208b3f),_0x2eaed7['destroy']();}['_updateController'](_0x555ce0){if(!_0x555ce0['isInContent']||!this['_suggestionToController']['has'](_0x555ce0))return;const _0x5812c8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x499ed1=this['_suggestionToController']['get'](_0x555ce0),_0x582ee1=_0x555ce0['getAllAdjacentSuggestions']();_0x499ed1['view']['descriptionParts']=_0x5812c8['descriptionFactory']['getDescriptions'](_0x582ee1);}['destroy'](){for(const _0x5c4789 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c4789);for(const _0x2cca70 of this['_annotationViews']['values']())_0x2cca70['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x2cf249){return'model'in _0x2cf249;}class k extends _0x5d6089{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x23771d){this['editor']['plugins']['get'](p)['adapter']=_0x23771d;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x47f05d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x47f05d);}['getSuggestions']({skipNotAttached:_0x8427fb=!0x1,toJSON:_0x56c18b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x8427fb,'toJSON':_0x56c18b});}['getSuggestion'](_0x2b92f3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2b92f3);}}const w=['Pagination'];class T extends _0x5d6089{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x475e02=this['editor'];if(_0x475e02['config']['define']('trackChangesData.editorCreator',_0x210e59=>{const _0x21c269=_0x475e02['model']['document']['getRootNames']()['reduce']((_0x4b9f02,_0xb20239)=>(_0x4b9f02[_0xb20239]='',_0x4b9f02),{});return _0x475e02['constructor']['create'](_0x21c269,_0x210e59);}),'function'!=typeof _0x475e02['config']['get']('trackChangesData')['editorCreator'])throw new _0x443412('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5f5859){return N(this['editor'],!0x0,_0x5f5859);}['getDataWithDiscardedSuggestions'](_0x1f8fe5){return N(this['editor'],!0x1,_0x1f8fe5);}}class D extends _0x5d6089{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x47e6b2){function _0x9bdcbc(_0x3b2e4b){return _0x3b2e4b['map'](_0x5c159d=>String['fromCharCode'](_0x5c159d))['join']('');}super(_0x47e6b2),this['result']='end',_0x47e6b2[_0x9bdcbc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x9bdcbc([0x76,0x69,0x65,0x77])][_0x9bdcbc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x9bdcbc([0x61,0x75,0x74,0x6f]),_0x47e6b2[_0x9bdcbc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x9bdcbc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x9bdcbc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x9bdcbc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x9bdcbc([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x3cc603){return void 0x0!==_0x3cc603['getRootsAttributes'];}async function N(_0x42ed47,_0x49c54f,_0x1a985b){const _0x20e284=_0x25065b(_0x42ed47,w);_0x20e284['plugins']['push'](p,D),_0x20e284['rootsAttributes']=Fe(_0x42ed47)?_0x42ed47['getRootsAttributes']():void 0x0;const _0x4b03ba=document['createDocumentFragment'](),_0x562dd0=_0x42ed47['config']['get']('trackChangesData')['editorCreator'],_0x3dd27c=await _0x562dd0(_0x20e284,()=>function(_0x58abdd){const _0x549cbb=document['createElement']('div');return _0x58abdd['appendChild'](_0x549cbb),_0x549cbb;}(_0x4b03ba));!function(_0x5db38b,_0x119320){const _0x16d00f=_0x5db38b['model']['document']['getRootNames']()['reduce']((_0x250b89,_0x35ff1f)=>(_0x250b89[_0x35ff1f]=_0x5db38b['data']['get']({'rootName':_0x35ff1f}),_0x250b89),{}),_0x31f9d1=_0x5db38b['plugins']['get']('Users')['users']['map'](_0x1eab3d=>({'id':_0x1eab3d['id'],'name':_0x1eab3d['name']})),_0x572e9c=_0x5db38b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3cfebc=_0x5db38b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x216166=_0x119320['plugins']['get']('Users'),_0x13de40=_0x119320['plugins']['get']('TrackChangesEditing'),_0x45741b=_0x119320['plugins']['get']('CommentsRepository');for(const _0x567289 of _0x45741b['getCommentThreads']())_0x567289['remove']();for(const _0x47f44c of _0x31f9d1)_0x216166['getUser'](_0x47f44c['id'])||_0x216166['addUser'](_0x47f44c);_0x216166['me']||_0x216166['useAnonymousUser']();for(const _0x2f24ae of _0x3cfebc)_0x45741b['addCommentThread'](_0x2f24ae);for(const _0x35f131 of _0x572e9c)_0x13de40['addSuggestionData'](_0x35f131);_0x119320['data']['set'](_0x16d00f);}(_0x42ed47,_0x3dd27c),_0x3dd27c['execute'](_0x49c54f?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e2f3e=Fe(_0x3dd27c)?_0x3dd27c['getFullData'](_0x1a985b):_0x3dd27c['data']['get'](_0x1a985b);return await _0x3dd27c['destroy'](),_0x5e2f3e;}class Me extends _0x5af415{['options'];constructor(_0x30909d,_0x4770e0){super(_0x30909d),this['options']=_0x4770e0,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'](_0x1221f8,_0x259ddd){if(!this['element'])return;const _0x16cc80=[];for(const [_0x3b475b,_0x2c30bd]of _0x1221f8){const _0x20d656=document['createElement']('div');_0x20d656['setAttribute']('data-ck-root-name',_0x3b475b),_0x20d656['className']=_0x2c30bd['classes']+'\x20ck-track-changes-preview__root-container',_0x20d656['innerHTML']=_0x2c30bd['content'],_0x16cc80['push'](_0x20d656);}_0x259ddd(this['element'],_0x16cc80),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x28f2e6){super(_0x28f2e6),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x189070=this['editor'],_0x2ab3da=_0x189070['locale'],_0x564401=_0x189070['plugins']['get']('Dialog');let _0x513707;const _0x2e377d=function(_0x38d91f){const _0x54cc92={};if('editables'in _0x38d91f['ui']['view']){for(const [_0x52eb05,_0x282fcb]of Object['entries'](_0x38d91f['ui']['view']['editables']))_0x54cc92[_0x52eb05]=_0x282fcb['element'];}else _0x54cc92[_0x38d91f['model']['document']['getRootNames']()[0x0]]=_0x38d91f['ui']['view']['editable']['element'];return _0x54cc92;}(_0x189070),_0x1a23d0=function(_0x533e54){let _0x566541=0x0;for(const _0x496e86 of Object['values'](_0x533e54))_0x566541=Math['max'](_0x566541,_0x496e86['getBoundingClientRect']()['width']);let _0x358af3=0x0;for(const _0x5ee2dc of Object['values'](_0x533e54))_0x358af3+=_0x5ee2dc['getBoundingClientRect']()['height'];const _0x5d5de6=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x79f872=Math['min'](_0x358af3,_0x5d5de6);return{'width':_0x566541,'height':_0x79f872};}(_0x2e377d);_0x564401['show']({'id':'finalContentPreview','title':o(_0x2ab3da,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x2ab3da,{'dialogRects':_0x1a23d0}),'onHide':()=>{_0x513707['detachFromDom']();},'onShow':()=>{_0x189070['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2a4fb0=>{const _0x4fb944=this['_standarizeRootsData'](_0x2a4fb0,_0x189070,_0x2e377d);_0x564401['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x4fb944,_0x189070['config']['get']('trackChanges.preview.renderFunction'));}),_0x513707=new _0x91a64(_0x2ab3da,[_0x564401['view']]),_0x513707['attachToDom'](),_0x513707['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x189070['once']('destroy',()=>{_0x513707['detachFromDom']();});const _0x31f87a=_0x564401['view']['headerView']['class'];_0x564401['view']['headerView']['class']=_0x31f87a?_0x31f87a+'\x20ck-reset_all':'ck-reset_all',_0x564401['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x564401['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x2cb4c0=this['editor']['plugins']['get']('MergeFieldsEditing'),_0xda6ede=_0x2cb4c0['previewMode'],_0x5e236d={};if('$labels'===_0xda6ede){for(const _0x28f281 of _0x2cb4c0['getMergeFieldsIds']())_0x5e236d[_0x28f281]=_0x2cb4c0['getLabel'](_0x28f281)||_0x28f281;}else{const _0x355613='$defaultValues'===_0xda6ede?_0x2cb4c0['getDefaultValues']():_0x2cb4c0['getDataSetValues'](_0xda6ede,!0x0);for(const _0x11da2c of Object['entries'](_0x355613)){const [_0x17b5ea,_0x52307c]=_0x11da2c;_0x5e236d[_0x17b5ea]=null!==_0x52307c?_0x52307c:_0x2cb4c0['getLabel'](_0x17b5ea)||_0x17b5ea;}}return{'mergeFieldsData':_0x5e236d};}['_standarizeRootsData'](_0x3a0566,_0x3fa35e,_0x10cecd){let _0x6bfb8;if('string'==typeof _0x3a0566){const _0x599202=_0x3fa35e['model']['document']['getRootNames']()[0x0];_0x6bfb8={[_0x599202]:_0x3a0566};}else _0x6bfb8=_0x3a0566;const _0x38a258=this['_fixMediaEmbeds'](_0x6bfb8,_0x3fa35e),_0x4193e2=function(_0x212416,_0x2c4e06){for(const [_0x527bde,_0x31bd3a]of _0x212416)_0x31bd3a['classes']=_0x2c4e06[_0x527bde]['classList']['value']['replace']('ck-focused','');return _0x212416;}(this['_sortRoots'](_0x3fa35e)['reduce']((_0x3bab83,_0x298253)=>(_0x3bab83['push']([_0x298253,{'content':_0x38a258[_0x298253],'classes':''}]),_0x3bab83),[]),_0x10cecd);return _0x4193e2;}['_fixMediaEmbeds'](_0x49cd06,_0x1b809b){if(!_0x1b809b['plugins']['has']('MediaEmbedEditing'))return _0x49cd06;const _0x16996c=_0x1b809b['plugins']['get']('MediaEmbedEditing');for(const [_0x512446,_0x160189]of Object['entries'](_0x49cd06)){const _0x3787f8=document['createElement']('div');_0x3787f8['innerHTML']=_0x160189,(_0x3787f8['querySelectorAll']('figure.media')['forEach'](_0x42165a=>{const _0x57bb6c=_0x42165a['querySelector']('oembed');if(_0x57bb6c){const _0x5d3bfa=_0x57bb6c['getAttribute']('url');if(_0x5d3bfa){const _0x27ea97=_0x16996c['registry']['getMediaViewElement'](new _0x714d27(_0x1b809b['editing']['view']['document']),_0x5d3bfa,{'elementName':'','renderForEditingView':!0x0}),_0x24871b=document['createElement']('div');_0x24871b['classList']['add']('ck-media__wrapper'),_0x27ea97['render'](_0x24871b,_0x1b809b['editing']['view']['domConverter']),_0x57bb6c['replaceWith'](_0x24871b);}}}),_0x49cd06[_0x512446]=_0x3787f8['innerHTML']);}return _0x49cd06;}['_sortRoots'](_0x15889e){if(!function(_0x297a17){return void 0x0!==_0x297a17['getRootsAttributes'];}(_0x15889e))return _0x15889e['model']['document']['getRootNames']();const _0x4335a8=[],_0x49150c=new Map();for(const _0xaa75a0 of _0x15889e['model']['document']['getRootNames']()){const _0x359494=_0x15889e['editing']['view']['getDomRoot'](_0xaa75a0)['getClientRects']()['item'](0x0);_0x4335a8['push'](_0xaa75a0),_0x49150c['set'](_0xaa75a0,_0x359494);}return _0x4335a8['sort']((_0x5ce99c,_0x2f575e)=>{const _0xb9638b=_0x49150c['get'](_0x5ce99c),_0x382285=_0x49150c['get'](_0x2f575e);return _0xb9638b['y']-_0x382285['y']||_0xb9638b['x']-_0x382285['x'];}),_0x4335a8;}}class te extends _0x5d6089{static get['requires'](){return[T,_0x3b1aab];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x59d285){super(_0x59d285),_0x59d285['commands']['add']('previewFinalContent',new re(this['editor'])),_0x59d285['config']['define']('trackChanges.preview.renderFunction',(_0x32aca8,_0x33fb18)=>{for(const _0x32ace3 of _0x33fb18)_0x32aca8['appendChild'](_0x32ace3);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};
23
+ import{Command as Qt,Plugin as _0x1a323e,PendingActions as _0x40e225,icons as _0x59567f}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5b6f25,ObservableMixin as _0x1650d1,uid as _0x1a89e5,priorities as _0x550a89,insertToPriorityArray as _0x482615,logWarning as _0x1bf624,getEnvKeystrokeText as _0x416dce,FocusTracker as _0x46cbc8,KeystrokeHandler as _0x4cf71c,Collection as _0x598863}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x8de2ae,View as _0x1a930b,ViewCollection as _0xaceeb9,FocusCycler as ts,ViewModel as _0x4028b7,createDropdown as _0x28298e,SplitButtonView as _0x5169d1,addListToDropdown as _0x1eac00,MenuBarMenuView as _0x3762ef,MenuBarMenuListView as _0x1c9a5c,ListSeparatorView as _0x2b241a,MenuBarMenuListItemView as _0x3d1723,MenuBarMenuListItemButtonView as _0x3cc692,BodyCollection as _0x33d22b,Dialog as _0x4f349e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x568dab,hashObject as _0x53a684,surroundingMarkersDetector as _0x589f3f,FOCUS_ANNOTATION_KEYSTROKE as _0x21e663,AriaDescriptionView as _0x2f60bd,setupThreadKeyboardNavigation as _0x2b79c1,trimHtml as _0x465eab,UserView as _0x4c2606,LateFocusButtonView as _0xc3fda0,getDateTimeFormatter as _0x30f3f3,getAllMarkersDomElementsSorted as _0x3d0e7a,sanitizeEditorConfig as _0x4b443c}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1c63ab,LiveRange as _0x586eec,LivePosition as _0x2e2691,DowncastWriter as _0x245819}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3b1400,toWidget as _0x4a7e72}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x5ea407,set as _0x240f96,isEqual as _0x57bd10,unset as _0xae3b8a,omit as Et}from'lodash-es';import{Delete as _0x186f98,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x130615,ShiftEnter as _0x518d6a}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends Qt{['_enabledCommands'];constructor(_0x4123f3,_0x4d3e00){super(_0x4123f3),this['_enabledCommands']=_0x4d3e00,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 _0x5c0c5c of this['editor']['commands']['commands']())_0x5c0c5c['affectsData']&&!this['_enabledCommands']['has'](_0x5c0c5c)&&_0x5c0c5c['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4ee38a of this['editor']['commands']['commands']())_0x4ee38a['affectsData']&&!this['_enabledCommands']['has'](_0x4ee38a)&&_0x4ee38a['clearForceDisabled']('TrackChangesCommand');}}class O extends Qt{['_suggestions'];constructor(_0x342c49,_0x1e71d1){super(_0x342c49),this['_suggestions']=_0x1e71d1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1b47be){const _0xf0db38=this['_suggestions']['get'](_0x1b47be);if(!_0xf0db38)throw new _0x5b6f25('track-changes-accept-suggestion-not-found',this);const _0x289f8e=_0xf0db38['getRanges']();this['editor']['model']['canEditAt'](_0x289f8e)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xf0db38);}}class R extends Qt{['_suggestions'];constructor(_0x4674a1,_0x5e5c8f){super(_0x4674a1),this['_suggestions']=_0x5e5c8f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2af9b5){const _0x33682f=this['_suggestions']['get'](_0x2af9b5);if(!_0x33682f)throw new _0x5b6f25('track-changes-discard-suggestion-not-found',this);const _0x24db00=_0x33682f['getRanges']();this['editor']['model']['canEditAt'](_0x24db00)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x33682f);}}function ns(_0x20fe2b,_0x593775){let _0x5d44b9='';return _0x5d44b9+=_0x20fe2b['split']('*')['map']((_0xd79c0a,_0xa357c4)=>_0xa357c4%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0xd79c0a)+'</span>':nn(_0xd79c0a))['join'](''),_0x593775&&(_0x5d44b9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x593775['value']+'\x22\x20title=\x22'+_0x593775['title']+'\x22></span>'),_0x5d44b9;}function nn(_0x282452){const _0x262fb1=document['createElement']('span');return _0x262fb1['innerText']=_0x282452,_0x262fb1['innerHTML'];}function Xt(_0x89995){return _0x89995['sort']((_0x540f69,_0x328933)=>'deletion'==_0x540f69['type']&&'deletion'!=_0x328933['type']?-0x1:'deletion'!=_0x540f69['type']&&'deletion'==_0x328933['type']?0x1:0x0);}function to(_0x4683f2,_0x5963e9){let _0x33de9e,_0x1ad174=0x0;const _0x208f80=[],_0x23689e=_0x5963e9['schema'];for(;_0x1ad174<_0x4683f2['length'];){const _0x25286d=_0x4683f2[_0x1ad174],_0x1a0799=_0x4683f2[_0x1ad174+0x1];_0x33de9e||(_0x33de9e=_0x5963e9['createPositionBefore'](_0x25286d)),on(_0x5963e9,_0x25286d,_0x1a0799)||(_0x208f80['push'](_0x5963e9['createRange'](_0x33de9e,_0x23689e['isObject'](_0x25286d)?_0x5963e9['createPositionAfter'](_0x25286d):_0x5963e9['createPositionAt'](_0x25286d,'end'))),_0x33de9e=null),_0x1ad174++;}return _0x208f80;}function on(_0x46e1aa,_0x4cfe83,_0x41ff0a){if(!_0x41ff0a)return!0x1;const _0x3c7082=_0x46e1aa['createPositionAfter'](_0x4cfe83),_0x47c481=_0x46e1aa['createPositionBefore'](_0x41ff0a);return _0x3c7082['isTouching'](_0x47c481);}function Yt(_0xaf18c3,_0x233908,_0x4d713d){for(;_0x4d713d['length'];){const _0x21a2f8=_0x4d713d['splice'](0x0,0x64);_0xaf18c3['change'](()=>{for(const _0x59a9ac of _0x21a2f8)_0x59a9ac['isInContent']&&_0x233908['execute'](_0x59a9ac['id']);});}}class x extends Qt{['_command'];['_suggestions'];constructor(_0xdd662d,_0x379a85,_0x28329c){super(_0xdd662d),this['_command']=_0x379a85,this['_suggestions']=_0x28329c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4d6fc1=Array['from'](this['_suggestions']['values']())['some'](_0x5c06b2=>_0x5c06b2['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x4d6fc1;}['execute'](){const _0x59cd37=Xt(Array['from'](this['_suggestions']['values']()));for(const _0x33c8fc of _0x59cd37){const _0x5abd18=_0x33c8fc['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5abd18))return;}Yt(this['editor']['model'],this['_command'],_0x59cd37);}}class E extends Qt{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x33f20d,_0x44c6d9,_0x3a9457){super(_0x33f20d),this['_command']=_0x44c6d9,this['_suggestions']=_0x3a9457,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x166485=this['editor']['model']['document']['selection'],_0x3c09c0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0xfffd1f,_0x4117fe){const _0x52798a=Array['from'](_0xfffd1f['getRanges']()),_0x535667=new Set();for(const _0x772ddf of _0x4117fe)if(_0x772ddf['isInContent']){for(const _0x466f78 of _0x52798a)for(const _0x580437 of _0x772ddf['getRanges']())(_0x466f78['isIntersecting'](_0x580437)||_0xfffd1f['isCollapsed']&&!_0x772ddf['isMultiRange']&&_0x772ddf['next']&&_0x580437['end']['isTouching'](_0x466f78['start']))&&_0x535667['add'](_0x772ddf);}return _0x535667;}(_0x166485,_0x3c09c0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x27e9f9=Xt(Array['from'](this['_selectedSuggestions']));for(const _0x1ccf95 of _0x27e9f9){const _0x5c90a9=_0x1ccf95['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5c90a9))return;}Yt(this['editor']['model'],this['_command'],_0x27e9f9);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1650d1(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x287e1c,_0x134154){super(),this['id']=_0x134154['id'],this['type']=_0x134154['type'],this['subType']=_0x134154['subType']||null,this['author']=_0x134154['author'],this['creator']=_0x134154['creator']||_0x134154['author'],this['isExternal']=Boolean(_0x134154['attributes']&&_0x134154['attributes']['@external']),this['data']=null,this['_model']=_0x287e1c,this['_onAccept']=_0x134154['onAccept'],this['_onDiscard']=_0x134154['onDiscard'],this['_onAttributesChange']=_0x134154['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x134154['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 _0x3854ab=this;for(;_0x3854ab['previous'];)_0x3854ab=_0x3854ab['previous'];return _0x3854ab;}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'](_0x426c5f){this['_markerNames']['add'](_0x426c5f);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x36a87b=>this['_model']['markers']['get'](_0x36a87b))['filter'](_0x2a018a=>_0x2a018a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x572c86=>{for(const _0x126bb1 of this['getMarkers']())_0x572c86['removeMarker'](_0x126bb1);}),this['_markerNames']['clear']();}['removeMarker'](_0x3de0ca){this['_model']['change'](_0x46c479=>{_0x46c479['removeMarker'](_0x3de0ca);}),this['_markerNames']['delete'](_0x3de0ca);}['addRange'](_0x559c06){const _0x367d74='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x367d74),this['_model']['change'](_0x6118b1=>{_0x6118b1['addMarker'](_0x367d74,{'range':_0x559c06,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3ad118){for(const _0x3a9b1d of this['getRanges']())if(_0x3a9b1d['isIntersecting'](_0x3ad118))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x39066b=>_0x39066b['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1f59e2,_0x52f8e3)=>[..._0x1f59e2,..._0x52f8e3['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0xaba845=this['getRanges']();if(0x1!=_0xaba845['length'])return null;const _0x5c5880=_0xaba845[0x0],_0x40027f=_0x5c5880['start']['nodeAfter'],_0x23aea8=_0x5c5880['end']['nodeBefore'];return _0x40027f instanceof _0x1c63ab?_0x40027f!=_0x23aea8?null:_0x40027f: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 _0x1e3f11=[];let _0x2b3e4=this['head'];for(;_0x2b3e4;)_0x1e3f11['push'](_0x2b3e4),_0x2b3e4=_0x2b3e4['next'];return _0x1e3f11;}['setAttribute'](_0x535e04,_0x41c08a){const _0x352261=_0x5ea407(this['attributes']);_0x240f96(_0x352261,_0x535e04,_0x41c08a),_0x57bd10(_0x352261,this['attributes'])||(this['attributes']=_0x352261,this['_onAttributesChange'](_0x352261));}['removeAttribute'](_0x3a8476){const _0x5c9c93=_0x5ea407(this['attributes']);_0xae3b8a(_0x5c9c93,_0x3a8476),_0x57bd10(_0x5c9c93,this['attributes'])||(this['attributes']=_0x5c9c93,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 _0x1a89e5()['substr'](0x1,0x5);}}function o(_0x54802d,_0x2f7509,_0x3d0709){const _0xee5128=_0x54802d['t'],t=_0x54802d['t'];switch(_0x2f7509){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',_0x3d0709);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x3d0709);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x3d0709);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x3d0709);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x3d0709);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',_0x3d0709);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x3d0709);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',_0x3d0709);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x3d0709);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x3d0709);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x3d0709);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x3d0709);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x3d0709);case'*Set\x20bookmark:*\x20%0':return t('*Set\x20bookmark:*\x20%0',_0x3d0709);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x3d0709);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x3d0709);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x3d0709);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x3d0709);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x3d0709);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x3d0709);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x3d0709);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x3d0709);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x3d0709);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x3d0709);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'},_0x3d0709);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x3d0709);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x3d0709);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x3d0709);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x3d0709);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x3d0709);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x3d0709);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x3d0709);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x3d0709);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'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x3d0709);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x3d0709);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'},_0x3d0709);case'ELEMENT_BOOKMARK':return t({'id':'ELEMENT_BOOKMARK','string':'bookmark','plural':'%0\x20bookmarks'},_0x3d0709);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 _0xee5128({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x3d0709);case'EXTERNAL_IMPORT_WORD_AVATAR':return _0xee5128({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x3d0709);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x3d0709);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'},_0x3d0709);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'},_0x3d0709);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'},_0x3d0709);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2f7509;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x109dc1,_0x34d655){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x109dc1,this['_locale']=_0x34d655;}['getDescriptions'](_0x5a972e){const _0x1b2eb1=[],_0x200af0=new Set(),_0x56f48d=new Set();for(let _0x5ede56=0x0;_0x5ede56<_0x5a972e['length'];_0x5ede56++){const _0x4a38b9=_0x5a972e[_0x5ede56];if(!_0x4a38b9['isInContent'])continue;const _0x4a524e=this['_handleCustomCallbackDescription'](_0x4a38b9);if(_0x4a524e){if(null!=_0x4a38b9['subType']){if(_0x200af0['has'](_0x4a38b9['subType']))continue;_0x200af0['add'](_0x4a38b9['subType']);}_0x1b2eb1['push'](_0x4a524e);}else{if('attribute'!=_0x4a38b9['type'])'insertion'!=_0x4a38b9['type']&&'deletion'!=_0x4a38b9['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1b2eb1,_0x4a38b9,_0x5a972e[_0x5ede56+0x1]);else{const _0x59da19=_0x4a38b9['data']['key'];if(_0x56f48d['has'](_0x59da19))continue;_0x56f48d['add'](_0x4a38b9['data']['key']),_0x59da19==m?this['_handleRenameSuggestionDescription'](_0x1b2eb1,_0x4a38b9):this['_handleAttributeSuggestionDescription'](_0x1b2eb1,_0x4a38b9);}}}return this['_resolveDescriptionItems'](_0x1b2eb1);}['registerDescriptionCallback'](_0x5b4006){this['_customCallbacks']['push'](_0x5b4006);}['registerElementLabel'](_0x68a5bd,_0x1937c7,_0x312782=_0x550a89['normal']){'function'==typeof _0x68a5bd?_0x482615(this['_itemLabelsCallbacks'],{'matchingCallback':_0x68a5bd,'label':_0x1937c7,'priority':_0x312782}):this['_itemLabels']['set'](_0x68a5bd,_0x1937c7);}['registerAttributeLabel'](_0x5b8cef,_0x328590){this['_attributeLabels']['set'](_0x5b8cef,_0x328590);}['getItemLabel'](_0x346be6,_0x5ea612=0x1){let _0x38566f;for(const _0x1f0c83 of this['_itemLabelsCallbacks'])if(_0x1f0c83['matchingCallback'](_0x346be6)){_0x38566f=_0x1f0c83['label'];break;}return _0x38566f||(_0x38566f=this['_itemLabels']['get'](_0x346be6['name'])),_0x38566f?_0x38566f(_0x5ea612):0x1!==_0x5ea612?_0x5ea612+'\x20'+_0x346be6['name']+'s':''+_0x346be6['name'];}['_addDescriptionItems'](_0xbac7bf,_0x268f73){const _0x3f4579=_0x268f73['getFirstRange']()['getWalker'](),_0x2ff736='insertion'==_0x268f73['type']?'add':'remove';for(const _0x227b3f of _0x3f4579){const _0xa82f7=_0x227b3f['item'],_0x205561=_0xbac7bf[_0xbac7bf['length']-0x1];if(_0xa82f7['is']('$textProxy'))_0x205561&&_0x205561['type']['indexOf']('Container')>-0x1&&_0xbac7bf['pop'](),_0x205561&&'text'==_0x205561['type']?_0x205561[_0x2ff736]+=_0xa82f7['data']:_0xbac7bf['push']({'type':'text','add':'add'==_0x2ff736?_0xa82f7['data']:'','remove':'remove'==_0x2ff736?_0xa82f7['data']:''});else{if(this['_schema']['isObject'](_0xa82f7)){const _0x20f5a6=_0xa82f7;if(_0x205561&&_0x205561['type']['indexOf']('Container')>-0x1&&_0xbac7bf['pop'](),'elementEnd'==_0x227b3f['type'])continue;_0x205561&&_0x205561['type']==_0x2ff736+'Object'&&_0x205561['element']['name']==_0x20f5a6['name']?_0x205561['quantity']++:_0xbac7bf['push']({'type':_0x2ff736+'Object','element':_0x20f5a6,'quantity':0x1}),_0x3f4579['skip'](_0x46af33=>!('elementEnd'==_0x46af33['type']&&_0x46af33['item']==_0xa82f7));}else{if(this['_schema']['checkChild'](_0xa82f7,'$text')||_0xa82f7['is']('element','softBreak')){const _0x5b0b42=_0xa82f7;if('add'==_0x2ff736&&'elementStart'==_0x227b3f['type']||'remove'==_0x2ff736&&'elementEnd'==_0x227b3f['type'])continue;if(_0x205561&&-0x1==_0x205561['type']['indexOf']('Container')){'text'==_0x205561['type']&&(_0x205561[_0x2ff736]+='\x0a');continue;}let _0x51cca9;if(_0x51cca9='add'==_0x2ff736?_0x5b0b42['nextSibling']&&!this['_schema']['isObject'](_0x5b0b42['nextSibling'])?_0x5b0b42['nextSibling']:null:_0x5b0b42['previousSibling']&&!this['_schema']['isObject'](_0x5b0b42['previousSibling'])?_0x5b0b42['previousSibling']:null,_0x5b0b42['isEmpty']||_0x51cca9&&_0x51cca9['isEmpty']){const _0x28a7c7=_0x51cca9&&_0x51cca9['isEmpty']?_0x51cca9:_0x5b0b42;_0x205561&&_0x205561['type']==_0x2ff736+'EmptyContainer'&&_0x205561['element']['name']==_0x28a7c7['name']?_0x205561['quantity']++:_0xbac7bf['push']({'type':_0x2ff736+'EmptyContainer','element':_0x28a7c7,'quantity':0x1});}else _0xbac7bf['push']({'type':_0x2ff736+'Container','element':_0x5b0b42});}}}}}['_resolveDescriptionItems'](_0x21d45f){const _0x2c434b=this['_locale'],_0x49d559=[],_0x4f0659=[],_0x719a79=[];for(const _0x51465c of _0x21d45f)switch(_0x51465c['type']){case'text':if(_0x51465c['add']=_0x51465c['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x51465c['remove']=_0x51465c['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x51465c['add']&&''!=_0x51465c['remove']){_0x49d559['push']({'type':'replace','content':o(_0x2c434b,'REPLACE_TEXT',['\x22'+_0x51465c['remove']+'\x22','\x22'+_0x51465c['add']+'\x22'])});continue;}if(null!=_0x51465c['add']['match'](/^ +$/)){_0x49d559['push']({'type':'insertion','content':o(_0x2c434b,'*Insert:*\x20%0',o(_0x2c434b,'ELEMENT_SPACE',_0x51465c['add']['length']))});continue;}if(null!=_0x51465c['remove']['match'](/^ +$/)){_0x49d559['push']({'type':'deletion','content':o(_0x2c434b,'*Remove:*\x20%0',o(_0x2c434b,'ELEMENT_SPACE',_0x51465c['remove']['length']))});continue;}if(''!=_0x51465c['add']){_0x49d559['push']({'type':'insertion','content':o(_0x2c434b,'*Insert:*\x20%0','\x22'+_0x51465c['add']+'\x22')});continue;}_0x49d559['push']({'type':'deletion','content':o(_0x2c434b,'*Remove:*\x20%0','\x22'+_0x51465c['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x49d559['push']({'type':'insertion','content':o(_0x2c434b,'*Insert:*\x20%0',this['getItemLabel'](_0x51465c['element'],_0x51465c['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x49d559['push']({'type':'deletion','content':o(_0x2c434b,'*Remove:*\x20%0',this['getItemLabel'](_0x51465c['element'],_0x51465c['quantity']))});continue;case'addContainer':_0x49d559['push']({'type':'insertion','content':o(_0x2c434b,'*Split:*\x20%0',this['getItemLabel'](_0x51465c['element'],_0x51465c['quantity']))});continue;case'removeContainer':_0x49d559['push']({'type':'deletion','content':o(_0x2c434b,'*Merge:*\x20%0',this['getItemLabel'](_0x51465c['element'],_0x51465c['quantity']))});continue;case'addFormat':_0x4f0659['push'](_0x51465c['key']);continue;case'removeFormat':_0x719a79['push'](_0x51465c['key']);continue;default:_0x49d559['push'](_0x51465c);}if(_0x4f0659['length']){const _0x5da165=_0x4f0659['map'](_0x1a86b2=>this['_attributeLabels']['has'](_0x1a86b2)?this['_attributeLabels']['get'](_0x1a86b2):_0x1a86b2)['join'](',\x20');_0x49d559['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x5da165)});}if(_0x719a79['length']){const _0x3e2152=_0x719a79['map'](_0x340316=>this['_attributeLabels']['has'](_0x340316)?this['_attributeLabels']['get'](_0x340316):_0x340316)['join'](',\x20');_0x49d559['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3e2152)});}return _0x49d559;}['_handleCustomCallbackDescription'](_0x4fc473){for(const _0x3d4f63 of this['_customCallbacks']){const _0x57dafd=_0x3d4f63(_0x4fc473);if(_0x57dafd&&'type'in _0x57dafd)return _0x57dafd;}}['_handleAttributeSuggestionDescription'](_0x2d5fa9,_0x53aad5){const _0x474fec=_0x53aad5['data'],_0x4507d4=void 0x0===_0x474fec['newValue']?'removeFormat':'addFormat';_0x2d5fa9['push']({'type':_0x4507d4,'key':_0x474fec['key']});}['_handleRenameSuggestionDescription'](_0x2b134e,_0x52c816){_0x2b134e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x52c816['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x4817bb,_0x49c3be,_0x1590d8){if(this['_addDescriptionItems'](_0x4817bb,_0x49c3be),_0x1590d8&&_0x1590d8['getFirstRange']()&&!_0x49c3be['getFirstRange']()['end']['isEqual'](_0x1590d8['getFirstRange']()['start'])){const _0x5ee644=_0x4817bb[_0x4817bb['length']-0x1],_0x4af4cc='insertion'==_0x49c3be['type']?'add':'remove';_0x5ee644&&'text'==_0x5ee644['type']&&(_0x5ee644[_0x4af4cc]+='\x0a');}}}class U extends _0x1a323e{['afterInit'](){const _0x2fb97a=this['editor'],_0x221a26=_0x2fb97a['plugins']['get']('TrackChangesEditing');_0x2fb97a['commands']['get']('showAIAssistant')&&_0x221a26['enableCommand']('showAIAssistant');}}class V extends _0x1a323e{['afterInit'](){const _0x3f31ca=this['editor'],_0x57a9f6=_0x3f31ca['locale'];if(!_0x3f31ca['plugins']['has']('AlignmentEditing'))return;const _0x2eca14=_0x3f31ca['plugins']['get']('TrackChangesEditing');_0x2eca14['enableDefaultAttributesIntegration']('alignment'),_0x2eca14['registerBlockAttribute']('alignment'),_0x2eca14['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x57a9f6,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ad4ce=this['editor'],_0xad5483=_0x2ad4ce['locale'];_0x2ad4ce['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x59d211=>{if('formatBlock'!=_0x59d211['type'])return;const {data:_0x55385e}=_0x59d211;if(_0x55385e&&'alignment'==_0x55385e['commandName']){const _0x4d6cf4=_0x55385e['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xad5483,'*Format:*\x20%0',function(_0x1a0494){switch(_0x1a0494){case'left':return o(_0xad5483,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xad5483,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xad5483,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xad5483,'FORMAT_JUSTIFY_TEXT');}}(_0x4d6cf4))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1a323e{['afterInit'](){const _0x5050df=this['editor'],_0x4da312=_0x5050df['plugins']['get']('TrackChangesEditing'),_0x5989d5=_0x5050df['locale'];for(const _0x4eaac2 of ti){if(!_0x5050df['plugins']['has'](_0x4eaac2))continue;const _0x257bce=_0x4eaac2['slice'](0x0,-0x7)['toLowerCase'](),_0x20e032='FORMAT_'+_0x257bce['toUpperCase']();_0x4da312['enableDefaultAttributesIntegration'](_0x257bce),_0x4da312['registerInlineAttribute'](_0x257bce),_0x4da312['descriptionFactory']['registerAttributeLabel'](_0x257bce,o(_0x5989d5,_0x20e032));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x28f50=this['editor'],_0x4475cb=_0x28f50['locale'],_0x361db5=_0x28f50['plugins']['get']('TrackChangesEditing');function _0x304263(_0x59e61c,_0x29d6aa){_0x361db5['descriptionFactory']['registerDescriptionCallback'](_0x998ec=>{if('formatInline'!=_0x998ec['type'])return;const {data:_0x112b87}=_0x998ec;return _0x112b87&&_0x112b87['commandName']===_0x59e61c?_0x112b87['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4475cb,'*Format:*\x20%0',_0x29d6aa)}:{'type':'format','content':o(_0x4475cb,'*Remove\x20format:*\x20%0',_0x29d6aa)}:void 0x0;});}_0x304263('bold',o(_0x4475cb,'FORMAT_BOLD')),_0x304263('italic',o(_0x4475cb,'FORMAT_ITALIC')),_0x304263('underline',o(_0x4475cb,'FORMAT_UNDERLINE')),_0x304263('code',o(_0x4475cb,'FORMAT_CODE')),_0x304263('strikethrough',o(_0x4475cb,'FORMAT_STRIKETHROUGH')),_0x304263('subscript',o(_0x4475cb,'FORMAT_SUBSCRIPT')),_0x304263('superscript',o(_0x4475cb,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1a323e{['afterInit'](){const _0x1929ab=this['editor'],_0x312a6b=_0x1929ab['locale'];if(!_0x1929ab['plugins']['has']('BlockQuoteEditing'))return;const _0x29ac3a=_0x1929ab['plugins']['get']('TrackChangesEditing'),_0x4a6774=this['editor']['commands']['get']('blockQuote');_0x29ac3a['enableCommand']('blockQuote',(_0x1ac81f,_0x390c7c={})=>{const _0x373886=this['editor']['model']['document']['selection'],_0x959d=_0x390c7c&&void 0x0!==_0x390c7c['forceValue']?_0x390c7c['forceValue']:!_0x4a6774['value'];let _0x9c5af2=[];if(_0x959d){const _0x1ef236=Array['from'](_0x373886['getSelectedBlocks']())['filter'](_0x3d5b9a=>oo(_0x3d5b9a)||function(_0x113b5d,_0x181ccd){const _0x2b85b5=_0x181ccd['checkChild'](_0x113b5d['parent'],'blockQuote'),_0x5683fe=_0x181ccd['checkChild'](['$root','blockQuote'],_0x113b5d);return _0x2b85b5&&_0x5683fe;}(_0x3d5b9a,this['editor']['model']['schema']));_0x9c5af2=to(_0x1ef236,_0x1929ab['model']);}else{const _0x3e8d86=Array['from'](_0x373886['getSelectedBlocks']())['filter'](_0x5ea483=>oo(_0x5ea483));_0x9c5af2=to(_0x3e8d86,_0x1929ab['model']);}_0x1929ab['model']['change'](()=>{for(const _0x55e6ad of _0x9c5af2)_0x29ac3a['markBlockFormat'](_0x55e6ad,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x959d}]});});}),_0x29ac3a['descriptionFactory']['registerDescriptionCallback'](_0x458262=>{const {data:_0x31491d}=_0x458262;if(_0x31491d&&'blockQuote'==_0x31491d['commandName']){const _0x680ed8=o(_0x312a6b,'ELEMENT_BLOCK_QUOTE');return _0x31491d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x312a6b,'*Set\x20format:*\x20%0',_0x680ed8)}:{'type':'format','content':o(_0x312a6b,'*Remove\x20format:*\x20%0',_0x680ed8)};}});}}function oo(_0x881874){return'blockQuote'==_0x881874['parent']['name'];}class L extends _0x1a323e{['afterInit'](){const _0x1e4e45=this['editor'],_0x4fbc9a=_0x1e4e45['locale'],_0x2cd040=_0x1e4e45['plugins']['get']('TrackChangesEditing');_0x1e4e45['plugins']['has']('BookmarkEditing')&&(_0x2cd040['enableCommand']('insertBookmark'),_0x2cd040['enableDefaultAttributesIntegration']('updateBookmark'),_0x2cd040['registerBlockAttribute']('bookmarkId'),_0x2cd040['descriptionFactory']['registerDescriptionCallback'](_0x2b500c=>{if('insertion'!=_0x2b500c['type']&&'deletion'!=_0x2b500c['type']&&'attribute'!=_0x2b500c['type'])return;const _0x1a76d1=_0x2b500c['getContainedElement']();if(null==_0x1a76d1)return;if(!_0x1a76d1['is']('element','bookmark'))return;const _0x242484=_0x1a76d1['getAttribute']('bookmarkId');if('insertion'==_0x2b500c['type'])return{'type':'insertion','content':o(_0x4fbc9a,'*Insert:*\x20%0','\x22'+_0x242484+'\x22\x20'+o(_0x4fbc9a,'ELEMENT_BOOKMARK'))};if('deletion'==_0x2b500c['type'])return{'type':'deletion','content':o(_0x4fbc9a,'*Remove:*\x20%0','\x22'+_0x242484+'\x22\x20'+o(_0x4fbc9a,'ELEMENT_BOOKMARK'))};const {data:_0x37ad8d}=_0x2b500c;if(!_0x37ad8d||'bookmarkId'!=_0x37ad8d['key'])return;return{'type':'format','content':o(_0x4fbc9a,'*Set\x20bookmark:*\x20%0','\x22'+_0x37ad8d['newValue']+'\x22')};}));}}class J extends _0x1a323e{['afterInit'](){const _0x2f8b20=this['editor'];_0x2f8b20['plugins']['has']('CaseChange')&&(_0x2f8b20['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2f8b20['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2f8b20['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1a323e{['afterInit'](){const _0x23779d=this['editor'];_0x23779d['commands']['get']('ckbox')&&_0x23779d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class q extends _0x1a323e{['afterInit'](){const _0x17579a=this['editor'];if(!_0x17579a['plugins']['has']('CodeBlock'))return;const _0x4932bf=_0x17579a['plugins']['get']('TrackChangesEditing'),_0xb3de05=_0x17579a['locale'],_0x3d368a=_0x17579a['config']['get']('codeBlock')['languages'],_0x52011b=_0x17579a['commands']['get']('codeBlock');_0x4932bf['enableCommand']('indentCodeBlock'),_0x4932bf['enableCommand']('outdentCodeBlock'),_0x4932bf['enableCommand']('codeBlock',(_0x2d1848,_0x42b5ec={})=>{const _0x59eec6=_0x17579a['model'],_0xc1ea4a=_0x17579a['model']['document']['selection'],_0x17b9d7=_0x42b5ec&&void 0x0!==_0x42b5ec['forceValue']?_0x42b5ec['forceValue']:!_0x52011b['value'];let _0x40a483;_0x42b5ec['language']||(_0x42b5ec['language']=_0x3d368a[0x0]['language']),_0x40a483=_0x17b9d7?Array['from'](_0xc1ea4a['getSelectedBlocks']())['filter'](_0x514359=>eo(_0x514359)||function(_0x1a92f0,_0x307409){if(_0x1a92f0['is']('rootElement')||_0x307409['isLimit'](_0x1a92f0))return!0x1;return _0x307409['checkChild'](_0x1a92f0['parent'],'codeBlock');}(_0x514359,_0x59eec6['schema'])):Array['from'](_0xc1ea4a['getSelectedBlocks']())['filter'](_0x145471=>eo(_0x145471));const _0xd82a9e=to(_0x40a483,_0x59eec6);_0x59eec6['change'](()=>{for(const _0x4ee343 of _0xd82a9e)_0x4932bf['markBlockFormat'](_0x4ee343,{'commandName':'codeBlock','commandParams':[{..._0x42b5ec,'forceValue':_0x17b9d7}],'formatGroupId':'blockName'});});}),(_0x4932bf['descriptionFactory']['registerElementLabel']('codeBlock',_0x225ebf=>o(_0xb3de05,'ELEMENT_CODE_BLOCK',_0x225ebf)),_0x4932bf['descriptionFactory']['registerDescriptionCallback'](_0x465160=>{if('formatBlock'!=_0x465160['type'])return;const _0x4fca86=_0xb3de05['t'],{data:_0x9d2b94}=_0x465160;if(!_0x9d2b94||'codeBlock'!=_0x9d2b94['commandName'])return;const _0x4eb9b6=_0x9d2b94['commandParams'][0x0]['language'],_0x5051a2=_0x4fca86(_0x3d368a['find'](_0x49c18c=>_0x49c18c['language']===_0x4eb9b6)['label'])['toLowerCase']();return _0x9d2b94['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb3de05,'*Set\x20format:*\x20%0',o(_0xb3de05,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x5051a2+')')}:{'type':'format','content':o(_0xb3de05,'*Remove\x20format:*\x20%0',o(_0xb3de05,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x20a049){return'codeBlock'==_0x20a049['name'];}class z extends _0x1a323e{['afterInit'](){const _0x2c31d9=this['editor'];if(!_0x2c31d9['plugins']['has']('CommentsEditing'))return;_0x2c31d9['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xc1e5c4,_0x52bf33,_0xfdb055){const _0x13d841=[];for(const _0x28bc53 of _0x52bf33['getItems']())_0x28bc53['hasAttribute'](_0xc1e5c4)&&_0x13d841['push'](_0xfdb055['createRangeOn'](_0x28bc53));return _0x13d841;}function De(_0x5c000f,_0x51a814,{showActiveMarker:_0x37a4bb=!0x0}={}){const _0x3842c5=_0x5c000f['plugins']['get']('TrackChangesEditing');return(_0x3d6c42,_0x3d1a24,_0x469ba3)=>{if(!_0x469ba3['consumable']['test'](_0x3d1a24['markerRange'],_0x3d6c42['name']))return;const _0x18a79d=_0x3d1a24['markerRange']['getWalker'](),_0x41faad=_0x3d1a24['markerRange']['start'],_0x568edd=_0x5c000f['model']['schema'];let _0xa52129=null,_0x2fd6ab=null,_0x5c513a=!0x1,_0x2dc3da=!0x1;for(const _0x347bfd of _0x18a79d){const _0x268f9b=_0x347bfd['item'];_0x5c513a=_0x5c513a||_0x568edd['isContent'](_0x268f9b);const _0x284029=_0x469ba3['mapper']['toViewElement'](_0x268f9b);if(_0x284029&&_0x284029['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x347bfd['type']&&(_0x568edd['isBlock'](_0x268f9b)&&!_0x568edd['isLimit'](_0x268f9b)&&(_0x268f9b['nextSibling']||_0x41faad['isAtEnd']?_0xa52129&&_0xa52129['parent']==_0x268f9b||(_0xa52129=_0x268f9b,_0x705055(_0x347bfd['previousPosition']),_0x2dc3da=!0x0):_0x2fd6ab=_0x2fd6ab||_0x347bfd['previousPosition']));}function _0x705055(_0x211db8){const {authorId:_0x3d0a1f}=_0x3842c5['_splitMarkerName'](_0x3d1a24['markerName']),_0x15bdd9=_0x469ba3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51a814,'data-author-id':_0x3d0a1f}),_0x517a3c=_0x469ba3['mapper']['toViewPosition'](_0x211db8);_0x37a4bb&&_0x3842c5['activeMarkers']['includes'](_0x3d1a24['markerName'])&&_0x469ba3['writer']['addClass']('ck-suggestion-marker--active',_0x15bdd9),_0x469ba3['writer']['insert'](_0x517a3c,_0x15bdd9),_0x469ba3['mapper']['bindElementToMarker'](_0x15bdd9,_0x3d1a24['markerName']);}_0x5c513a||_0x2dc3da||!_0x2fd6ab||_0x705055(_0x2fd6ab);};}class K extends _0x1a323e{static get['requires'](){return[_0x186f98];}['init'](){const _0xf1f497=this['editor'],_0x5df71c=_0xf1f497['plugins']['get']('TrackChangesEditing');_0x5df71c['enableCommand']('delete');const _0x2d06a1=_0xf1f497['commands']['get']('deleteForward');_0x5df71c['enableCommand']('deleteForward',(_0x844270,_0x5cd12c={})=>{const _0x480394=_0xf1f497['model']['createSelection'](_0xf1f497['model']['document']['selection']);_0x480394['isCollapsed']&&_0xf1f497['model']['modifySelection'](_0x480394,{'direction':'forward','unit':_0x5cd12c['unit']});const _0x231217=_0x480394['getFirstRange'](),_0x540eca=_0x586eec['fromRange'](_0x231217);let _0xb3baf1;_0x844270(_0x5cd12c),_0xb3baf1='$graveyard'==_0x540eca['root']['rootName']?_0xf1f497['model']['createRange'](_0x231217['start']):_0xf1f497['model']['createRange'](_0x540eca['start'],_0x540eca['end']),_0x540eca['detach'](),_0xf1f497['model']['enqueueChange'](_0x2d06a1['buffer']['batch'],_0x140156=>{_0x2d06a1['buffer']['lock'](),_0x140156['setSelection'](_0x140156['createRange'](_0xb3baf1['end'])),_0x2d06a1['buffer']['unlock']();});}),_0xf1f497['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',De(_0xf1f497,'merge'),{'priority':'high'}),_0xf1f497['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x55010f,_0x326822,_0x529230)=>{_0x529230['options']['showSuggestionHighlights']&&De(_0xf1f497,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x55010f,_0x326822,_0x529230);},{'priority':'high'}),_0xf1f497['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x89efed,_0x4e8ac0,_0x2045a3)=>{const _0x56a6ec=_0x2045a3['mapper']['markerNameToElements'](_0x4e8ac0['markerName']);if(_0x56a6ec){for(const _0x1f93d1 of _0x56a6ec)_0x1f93d1['is']('uiElement')&&(_0x2045a3['mapper']['unbindElementFromMarkerName'](_0x1f93d1,_0x4e8ac0['markerName']),_0x2045a3['writer']['remove'](_0x1f93d1));}},{'priority':'high'});}}class W extends _0x1a323e{['afterInit'](){const _0x24d914=this['editor'];if(!_0x24d914['plugins']['has']('ListEditing'))return;const _0x592b78=_0x24d914['locale'],_0x284a6a=_0x24d914['plugins']['get']('TrackChangesEditing'),_0x2ff80d=_0x24d914['plugins']['has']('TodoListEditing'),_0x1a914d=!!_0x24d914['config']['get']('list.multiBlock');function _0x27de2f(_0x3f6e86){return{'type':'format','content':''+o(_0x592b78,'*Set\x20format:*\x20%0',_0x3f6e86)};}function _0x1cfc6e(_0x306451){return{'type':'format','content':''+o(_0x592b78,'*Remove\x20format:*\x20%0',_0x306451)};}_0x284a6a['enableDefaultAttributesIntegration']('numberedList'),_0x284a6a['enableDefaultAttributesIntegration']('bulletedList'),_0x284a6a['enableDefaultAttributesIntegration']('customNumberedList'),_0x284a6a['enableDefaultAttributesIntegration']('customBulletedList'),_0x284a6a['enableDefaultAttributesIntegration']('indentList'),_0x284a6a['enableDefaultAttributesIntegration']('outdentList'),_0x284a6a['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x284a6a['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x284a6a['registerBlockAttribute']('listItemId'),_0x284a6a['registerBlockAttribute']('listType'),_0x284a6a['registerBlockAttribute']('listIndent'),_0x1a914d&&(_0x284a6a['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x284a6a['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2ff80d&&(_0x284a6a['enableDefaultAttributesIntegration']('todoList'),_0x284a6a['enableDefaultAttributesIntegration']('checkTodoList'),_0x284a6a['registerBlockAttribute']('todoListChecked'),_0x284a6a['descriptionFactory']['registerDescriptionCallback'](_0x4557b6=>{const {data:_0xbc3e66}=_0x4557b6;if(_0xbc3e66&&'todoListChecked'==_0xbc3e66['key'])return{'type':'format','content':_0xbc3e66['newValue']?o(_0x592b78,'*Check\x20item*'):o(_0x592b78,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5acc6b=>{if(_0x5acc6b['batch']['isUndo'])return!0x1;let _0x15fd51=!0x1;const _0x5e5b0d=_0x284a6a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x100a1d=>'todoListChecked'===_0x284a6a['_getAttributeKey'](_0x100a1d));for(const _0x274fb8 of _0x5e5b0d){'todo'!=_0x274fb8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x284a6a['_findSuggestions'](_0x274fb8['getFirstRange'](),'attribute')['find'](_0x17c889=>'listType'===_0x284a6a['_getAttributeKey'](_0x17c889['suggestion']))||(_0x5acc6b['removeMarker'](_0x274fb8['getFirstMarker']()),_0x15fd51=!0x0));}return _0x15fd51;})),_0x284a6a['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x592b78,'FORMAT_INDENT'));const _0x5e111a={'type':'format','content':''};_0x284a6a['descriptionFactory']['registerDescriptionCallback'](_0x2e7a5c=>{const {data:_0x298412}=_0x2e7a5c;if(!_0x298412||'listType'!=_0x298412['key'])return;let _0x52f2c9=_0x2e7a5c['head'];for(;_0x52f2c9;){if(_0x52f2c9['data']&&(('listStyle'==_0x52f2c9['data']['key']||'listMarkerStyle'==_0x52f2c9['data']['key'])&&(_0x52f2c9['data']['newValue']&&'default'!=_0x52f2c9['data']['newValue']||'default'!=_0x52f2c9['data']['oldValue']&&!_0x298412['newValue'])||!_0x1a914d&&_0x52f2c9['data']['key']==m))return _0x5e111a;_0x52f2c9=_0x52f2c9['next'];}if(null==_0x298412['newValue'])switch(_0x298412['oldValue']){case'bulleted':return _0x1cfc6e(o(_0x592b78,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1cfc6e(o(_0x592b78,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1cfc6e(o(_0x592b78,'ELEMENT_TODO_LIST'));}switch(_0x298412['newValue']){case'bulleted':return _0x27de2f(o(_0x592b78,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x27de2f(o(_0x592b78,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x27de2f(o(_0x592b78,'ELEMENT_TODO_LIST'));}}),_0x284a6a['descriptionFactory']['registerDescriptionCallback'](_0x2a030c=>{const {data:_0xf8c75f}=_0x2a030c;if(_0xf8c75f&&'listIndent'==_0xf8c75f['key'])return null==_0xf8c75f['newValue']||null==_0xf8c75f['oldValue']&&0x0==_0xf8c75f['newValue']?_0x5e111a:void 0x0;}),_0x284a6a['descriptionFactory']['registerDescriptionCallback'](_0x5a574b=>{if('attribute'!=_0x5a574b['type'])return;const {data:_0x4c9464}=_0x5a574b;if(!_0x4c9464||'listItemId'!=_0x4c9464['key'])return;const _0x3bc47b=Te(_0x5a574b);return'newValue'==_0x3bc47b?{'type':'format','content':o(_0x592b78,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3bc47b?{'type':'format','content':o(_0x592b78,'*Split:*\x20list\x20item')}:_0x5e111a;}),_0x24d914['model']['document']['registerPostFixer'](_0x504f56=>this['listItemIdFixer'](_0x504f56)),_0x24d914['model']['document']['registerPostFixer'](_0x21a1ad=>this['noTrackChangesFixer'](_0x21a1ad)),_0x24d914['model']['document']['on']('change:data',(_0x16c1cd,_0xc5d139)=>{if(_0xc5d139['isUndo']||!_0xc5d139['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x592e21){if(_0x592e21['batch']['isUndo']||!_0x592e21['batch']['isLocal'])return!0x1;let _0x3f116c=!0x1;const _0xce5240=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1b4c23=>_0x1b4c23['data']&&'listItemId'==_0x1b4c23['data']['key'])['filter'](_0x1c390a=>_0x1c390a['data']['newValue']&&_0x1c390a['data']['oldValue']);for(const _0x52e036 of _0xce5240)Te(_0x52e036)||(_0x592e21['removeMarker'](_0x52e036['getFirstMarker']()),_0x3f116c=!0x0);return _0x3f116c;}['noTrackChangesFixer'](_0x25fb5a){if(_0x25fb5a['batch']['isUndo']||!_0x25fb5a['batch']['isLocal'])return!0x1;const _0x5a7683=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a7683['trackChangesCommand']['value'])return!0x1;let _0x2c012e=!0x1;const _0x30bc2c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3313bc=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2baba1=>'attribute'==_0x2baba1['type'])['filter'](_0x1cc38f=>_0x30bc2c['includes'](_0x1cc38f['attributeKey']));if(0x0==_0x3313bc['length'])return _0x2c012e;for(const _0x27b6ff of _0x3313bc){const _0x3bce8f=_0x5a7683['_findSuggestions'](_0x27b6ff['range'],'attribute')['filter'](_0x62a547=>!_0x62a547['meta']['isNextTo'])['map'](_0x1c0f14=>_0x1c0f14['suggestion'])['filter'](_0x5c9830=>{const _0x16a99e=_0x5a7683['_getAttributeKey'](_0x5c9830);return _0x30bc2c['includes'](_0x16a99e);});if(_0x3bce8f['length']){for(const _0x4a0cc4 of _0x3bce8f)_0x25fb5a['removeMarker'](_0x4a0cc4['getFirstMarker']());_0x2c012e=!0x0;}}return _0x2c012e;}['assureChains'](){const _0x3eb82f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x537d66=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x14e809;const _0x48d376=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1f5429=>{if(_0x1f5429['data']['oldRange']||!_0x1f5429['data']['newRange'])return null;if(!_0x1f5429['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24bff0}=_0x3eb82f['_splitMarkerName'](_0x1f5429['name']);if(!_0x3eb82f['hasSuggestion'](_0x24bff0))return null;const _0x15ec99=_0x3eb82f['getSuggestion'](_0x24bff0);return _0x537d66['includes'](_0x15ec99['data']['key']);})['map'](_0x5d890f=>{const {id:_0xd46e7e}=_0x3eb82f['_splitMarkerName'](_0x5d890f['name']),_0x35b62f=_0x3eb82f['getSuggestion'](_0xd46e7e);return _0x14e809=_0x35b62f['attributes']['groupId'],_0x35b62f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x48d376['size'])return;const _0x512a33=_0x3eb82f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x364d70=>'attribute'==_0x364d70['type']&&_0x364d70['data']&&_0x537d66['includes'](_0x364d70['data']['key'])&&_0x364d70['attributes']['groupId']!=_0x14e809)['map'](_0x27a871=>({'listItem':_0x27a871['getFirstRange']()['start']['nodeAfter'],'groupId':_0x27a871['attributes']['groupId']})),_0x3cfe2d=new Set();for(const {groupId:_0x376a74,listItem:_0x2e5e62}of _0x512a33)_0x48d376['has'](_0x2e5e62)&&_0x3cfe2d['add'](_0x376a74);for(const _0x3ea1ab of _0x3eb82f['getSuggestions']())_0x3cfe2d['has'](_0x3ea1ab['attributes']['groupId'])&&_0x3ea1ab['setAttribute']('groupId',_0x14e809);}['_supportLegacySuggestions'](){const _0x2b122f=this['editor'],_0x44fb0e=_0x2b122f['locale'],_0x41e5a6=_0x2b122f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x41e5a6['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x3c3d4f,_0x305972){const _0x26c692=[];for(let _0xba37d2 of _0x3c3d4f)_0xba37d2['start']['nodeAfter']===_0xba37d2['end']['parent']&&(_0xba37d2=_0x2b122f['model']['createRange'](_0x2b122f['model']['createPositionAt'](_0xba37d2['start']['nodeAfter'],0x0))),_0x26c692['push'](_0xba37d2);_0x2b122f['model']['change'](_0x2aec0c=>{const _0x164204=_0x2b122f['model']['document']['selection'],_0x5d7443=Array['from'](_0x164204['getRanges']())['map'](_0x408ee5=>_0x586eec['fromRange'](_0x408ee5));_0x2aec0c['setSelection'](_0x26c692),_0x2b122f['commands']['get'](_0x305972['commandName'])['refresh'](),_0x305972['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2b122f['execute'](_0x305972['commandName'],..._0x305972['commandParams']),_0x2aec0c['setSelection'](_0x5d7443);for(const _0x11d5d1 of _0x5d7443)_0x11d5d1['detach']();});}),_0x41e5a6['descriptionFactory']['registerElementLabel'](function(_0x4693e8){const _0x29caf0=!_0x2b122f['model']['schema']['isObject'](_0x4693e8),_0x460066=_0x4693e8['previousSibling'],_0x13e1f2=_0x4693e8['nextSibling'],_0x5c33f1=_0x4693e8['getAttribute']('listItemId'),_0x5225ae=!_0x460066||_0x460066['getAttribute']('listItemId')!==_0x5c33f1,_0x283b2a=!_0x13e1f2||_0x13e1f2['getAttribute']('listItemId')!==_0x5c33f1;return _0x29caf0&&Boolean(_0x5c33f1)&&_0x5225ae&&_0x283b2a;},_0x10a5fb=>o(_0x44fb0e,'ELEMENT_LIST_ITEM',_0x10a5fb));}['_registerLegacyDescription'](){const _0x523bff=this['editor'],_0x34faa8=_0x523bff['locale'];function _0x120369(_0x2cb559){const _0x3dd2b6=_0x523bff['commands']['get']('bulletedList')['value'],_0x3c2a6b=_0x523bff['commands']['get']('numberedList')['value'];return'numberedList'===_0x2cb559?_0x3dd2b6:_0x3c2a6b;}_0x523bff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x44958c){if('formatBlock'!=_0x44958c['type'])return;const {data:_0x358716}=_0x44958c;if(!_0x358716)return;let _0xd9dff2,_0x2b1792,_0x215a34,_0x1ad848;switch(_0x358716['commandName']){case'bulletedList':_0x215a34=_0x358716['commandParams'][0x0]['forceValue'],_0x1ad848=_0x120369(_0x358716['commandName']),_0xd9dff2=_0x215a34?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ad848&&_0x523bff['config']['get']('list.multiBlock')||(_0xd9dff2='*Change\x20to:*\x20%0'),_0x2b1792={'type':'format','content':o(_0x34faa8,_0xd9dff2,o(_0x34faa8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x215a34=_0x358716['commandParams'][0x0]['forceValue'],_0x1ad848=_0x120369(_0x358716['commandName']),_0xd9dff2=_0x215a34?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x1ad848&&_0x523bff['config']['get']('list.multiBlock')||(_0xd9dff2='*Change\x20to:*\x20%0'),_0x2b1792={'type':'format','content':o(_0x34faa8,_0xd9dff2,o(_0x34faa8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0xd9dff2='*Indent:*\x20%0',_0x2b1792={'type':'format','content':o(_0x34faa8,_0xd9dff2,o(_0x34faa8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0xd9dff2=function(_0x5241ac){const _0x3af029=_0x5241ac['getFirstRange']();let _0x499bec=_0x3af029['start']['nodeAfter'];for(;_0x499bec&&_0x3af029['containsItem'](_0x499bec);){if(_0x499bec['getAttribute']('listIndent')>0x0)return!0x1;_0x499bec=_0x499bec['nextSibling'];}return!0x0;}(_0x44958c)?o(_0x34faa8,'*Format:*\x20remove\x20from\x20%0',o(_0x34faa8,function(_0x2959ef){return'ELEMENT_'+_0x2959ef['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x44958c))):o(_0x34faa8,'*Outdent:*\x20%0',o(_0x34faa8,'ELEMENT_LIST_ITEM')),_0x2b1792={'type':'format','content':_0xd9dff2};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x358716['multipleBlocks']&&(_0xd9dff2='*Merge:*\x20%0',_0x2b1792={'type':'deletion','content':o(_0x34faa8,_0xd9dff2,o(_0x34faa8,'ELEMENT_LIST_ITEM'))});}return _0x2b1792;});}}function Te(_0x16009f){let _0xe756fe=_0x16009f['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0xe756fe;){const _0x4c53a7=_0xe756fe['getAttribute']('listItemId');if(!_0x4c53a7)return!0x1;if(_0x4c53a7==_0x16009f['data']['newValue'])return'newValue';if(_0x4c53a7==_0x16009f['data']['oldValue'])return'oldValue';_0xe756fe=_0xe756fe['previousSibling'];}return!0x1;}class Se extends _0x1a323e{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6a6f56=this['editor']['config']['get']('list.properties'),_0x4dab66=this['editor']['plugins']['get']('TrackChangesEditing');_0x6a6f56['styles']&&(_0x4dab66['enableDefaultAttributesIntegration']('listStyle'),_0x4dab66['registerBlockAttribute']('listStyle')),_0x6a6f56['reversed']&&(_0x4dab66['enableDefaultAttributesIntegration']('listReversed'),_0x4dab66['registerBlockAttribute']('listReversed')),_0x6a6f56['startIndex']&&(_0x4dab66['enableDefaultAttributesIntegration']('listStart'),_0x4dab66['registerBlockAttribute']('listStart'));const _0x5e9f00={'type':'format','content':''};_0x4dab66['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x527e45=this['editor']['locale'];_0x4dab66['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x527e45,'FORMAT_LIST_REVERSED')),_0x4dab66['descriptionFactory']['registerDescriptionCallback'](_0x77c0a1=>{const {data:_0x511bff}=_0x77c0a1;if(_0x511bff&&'listReversed'==_0x511bff['key'])return null==_0x511bff['newValue']||0x0==_0x511bff['newValue']&&null==_0x511bff['oldValue']?_0x5e9f00:void 0x0;}),_0x4dab66['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x527e45,'FORMAT_LIST_START')),_0x4dab66['descriptionFactory']['registerDescriptionCallback'](_0x1686fd=>{const {data:_0x38b7a0}=_0x1686fd;if(_0x38b7a0&&'listStart'==_0x38b7a0['key'])return null==_0x38b7a0['newValue']||0x1==_0x38b7a0['newValue']&&null==_0x38b7a0['oldValue']?_0x5e9f00:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2f5cc5=>{if(_0x2f5cc5['batch']['isUndo'])return!0x1;let _0x3cdd87=!0x1;const _0x47cbd0=_0x4dab66['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x28bd1a=>{const _0xfc9077=_0x4dab66['_getAttributeKey'](_0x28bd1a);return'listStart'==_0xfc9077||'listReversed'==_0xfc9077;});for(const _0x37131c of _0x47cbd0){const _0x293882=_0x37131c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x293882||'customNumbered'==_0x293882)continue;_0x4dab66['_findSuggestions'](_0x37131c['getFirstRange'](),'attribute')['find'](_0x415965=>'listType'==_0x4dab66['_getAttributeKey'](_0x415965['suggestion']))||(_0x2f5cc5['removeMarker'](_0x37131c['getFirstMarker']()),_0x3cdd87=!0x0);}return _0x3cdd87;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x282ed0){const _0x3f2b10=this['editor']['locale'],{data:_0x3e38f6}=_0x282ed0,_0x51fcf7={'type':'format','content':''};if(!_0x3e38f6||'listStyle'!=_0x3e38f6['key'])return;if(!_0x3e38f6['oldValue'])return'default'==_0x3e38f6['newValue']?_0x51fcf7:{'type':'format','content':''+o(_0x3f2b10,'*Set\x20format:*\x20%0',o(_0x3f2b10,this['_getTranslationKeyForListStyle'](_0x3e38f6['newValue'])))};if(!_0x3e38f6['newValue']){if('default'==_0x3e38f6['oldValue'])return _0x51fcf7;let _0x5cfd5a=_0x282ed0['head'];for(;_0x5cfd5a;){if(_0x5cfd5a['data']&&'listType'==_0x5cfd5a['data']['key']&&_0x5cfd5a['data']['newValue'])return _0x51fcf7;_0x5cfd5a=_0x5cfd5a['next'];}return{'type':'format','content':''+o(_0x3f2b10,'*Remove\x20format:*\x20%0',o(_0x3f2b10,this['_getTranslationKeyForListStyle'](_0x3e38f6['oldValue'])))};}if('default'!=_0x3e38f6['newValue'])return{'type':'format','content':''+o(_0x3f2b10,'*Set\x20format:*\x20%0',o(_0x3f2b10,this['_getTranslationKeyForListStyle'](_0x3e38f6['newValue'])))};let _0x10ec20=_0x282ed0['head'];for(;_0x10ec20;){if(_0x10ec20['data']&&'listType'==_0x10ec20['data']['key']&&_0x10ec20['data']['newValue']&&_0x10ec20['data']['oldValue'])return _0x51fcf7;_0x10ec20=_0x10ec20['next'];}return{'type':'format','content':o(_0x3f2b10,'*Set\x20format:*\x20%0',o(_0x3f2b10,'ELEMENT_'+_0x282ed0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4cd39c=this['editor'],_0x8ed3ce=_0x4cd39c['locale'];_0x4cd39c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ad228=>{if('formatBlock'!=_0x2ad228['type'])return;const {data:_0x1d701a}=_0x2ad228;if(!_0x1d701a)return;let _0x592336,_0x4a58b7;switch(_0x1d701a['commandName']){case'listStyle':_0x592336='*Change\x20to:*\x20%0',_0x4a58b7={'type':'format','content':o(_0x8ed3ce,_0x592336,o(_0x8ed3ce,this['_getTranslationKeyForListStyle'](_0x1d701a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x592336=_0x1d701a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4a58b7={'type':'format','content':o(_0x8ed3ce,_0x592336)};break;case'listStart':_0x592336='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4a58b7={'type':'format','content':o(_0x8ed3ce,_0x592336,_0x1d701a['commandParams'][0x0]['startIndex'])};}return _0x4a58b7;});}['_getTranslationKeyForListStyle'](_0x27a7a0){return'ELEMENT_'+function(_0x3683c5){if(_e['includes'](_0x3683c5))return'bulleted';if(Re['includes'](_0x3683c5))return'numbered';return null;}(_0x27a7a0)['toUpperCase']()+'_LIST_'+_0x27a7a0['toUpperCase']()['replace'](/-/g,'_');}}const _e=['disc','circle','square'],Re=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class X extends _0x1a323e{static get['requires'](){return[_0x130615];}['init'](){const _0xc63536=this['editor'],_0x55eeab=_0xc63536['plugins']['get']('TrackChangesEditing'),_0x51e101=_0xc63536['commands']['get']('enter');_0x55eeab['enableCommand']('enter',()=>{_0xc63536['model']['change'](_0x182cec=>{const _0x4a2ee3=_0xc63536['model']['document']['selection'],_0x5e9a77=_0x4a2ee3['getFirstPosition'](),_0x68e591=_0x586eec['fromRange'](_0x4a2ee3['getFirstRange']());if(_0x51e101['enterBlock'](_0x182cec)){const _0xac7d33=_0xc63536['model']['createPositionAt'](_0x5e9a77['parent']['nextSibling'],0x0),_0x5a75cf=_0x182cec['createRange'](_0x5e9a77,_0xac7d33);_0x55eeab['markInsertion'](_0x5a75cf);}else _0x182cec['setSelection'](_0x182cec['createRange'](_0x68e591['end']));_0x68e591['detach'](),_0x51e101['fire']('afterExecute',{'writer':_0x182cec});});}),_0xc63536['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',De(_0xc63536,'split'),{'priority':'high'}),_0xc63536['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x159a08,_0x278a0a,_0x42fd16)=>{const _0x1767bb=_0x42fd16['mapper']['markerNameToElements'](_0x278a0a['markerName']);if(_0x1767bb){for(const _0x5dd525 of _0x1767bb)_0x5dd525['hasClass']('ck-suggestion-marker-split')&&(_0x42fd16['mapper']['unbindElementFromMarkerName'](_0x5dd525,_0x278a0a['markerName']),_0x42fd16['writer']['remove'](_0x5dd525));}},{'priority':'high'}),_0xc63536['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0xeccd78,_0xb55fe4,_0x59afc8)=>{_0x59afc8['options']['showSuggestionHighlights']&&De(_0xc63536,'split',{'showActiveMarker':!0x1})['bind'](this)(_0xeccd78,_0xb55fe4,_0x59afc8);},{'priority':'high'});}}class Y extends _0x1a323e{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xf2bb7c=this['editor']['plugins']['get']('TrackChangesEditing');_0xf2bb7c['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xf2bb7c['enableCommand']('findNext'),_0xf2bb7c['enableCommand']('findPrevious'),_0xf2bb7c['enableCommand']('replace'),_0xf2bb7c['enableCommand']('replaceAll');}['handleFindCommand'](_0x4c4d52,_0x48366b,_0x34624c={}){const _0x1c513b=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x4c4d52(_0x2544b6=>{let _0x27b312=('string'==typeof _0x48366b?_0x1c513b['findByTextCallback'](_0x48366b,_0x34624c):_0x48366b)(_0x2544b6);Array['isArray'](_0x27b312)&&(_0x27b312={'results':_0x27b312,'searchText':'string'==typeof _0x48366b?_0x48366b:''});const _0x40eed2=_0x27b312['results']['filter'](_0x722e7c=>!0x1===this['_isInDeletionRange'](_0x722e7c,_0x2544b6['item']));return{..._0x27b312,'results':_0x40eed2};},_0x34624c);}['_isInDeletionRange'](_0x304221,_0x300f57){const _0x4dbe4d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x300f57,_0x304221['start']),this['editor']['model']['createPositionAt'](_0x300f57,_0x304221['end']));for(const _0x213ea3 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4dbe4d['getIntersection'](_0x213ea3['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Z extends _0x1a323e{['afterInit'](){const _0x23e5f7=this['editor']['locale'],_0x1563b7=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x420b93,commandName:_0x4c5488}of ro)this['editor']['plugins']['has'](_0x420b93)&&(_0x1563b7['enableDefaultAttributesIntegration'](_0x4c5488),_0x1563b7['registerInlineAttribute'](_0x4c5488));_0x1563b7['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x23e5f7,'FORMAT_FONT_SIZE')),_0x1563b7['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x23e5f7,'FORMAT_FONT_FAMILY')),_0x1563b7['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x23e5f7,'FORMAT_FONT_COLOR')),_0x1563b7['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x23e5f7,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x61542a=this['editor'],_0x1ff6a1=_0x61542a['locale'];_0x61542a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf9ca6a=>{const _0x10975f=_0x1ff6a1['t'];if('formatInline'!=_0xf9ca6a['type'])return;const {data:_0x3fee2b}=_0xf9ca6a;if(null!=_0x3fee2b){if('fontSize'==_0x3fee2b['commandName']){const _0x47e311=_0x3fee2b['commandParams'][0x0]['value'];if(_0x47e311){const _0x1bc3de=_0x10975f(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1d53da=>_0x1d53da['model']==_0x47e311)['title'])['toLowerCase']();return{'type':'format','content':o(_0x1ff6a1,'*Set\x20font\x20size:*\x20%0',_0x1bc3de)};}return{'type':'format','content':o(_0x1ff6a1,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3fee2b['commandName']){const _0x5e26ee=_0x3fee2b['commandParams'][0x0]['value'];return _0x5e26ee?{'type':'format','content':o(_0x1ff6a1,'*Set\x20font\x20family:*\x20%0',_0x5e26ee)}:{'type':'format','content':o(_0x1ff6a1,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3fee2b['commandName']){const _0x59c436=_0x3fee2b['commandParams'][0x0]['value'];if(_0x59c436){const _0x31b12f=_0x8de2ae(this['editor']['config']['get']('fontColor.colors'))['find'](_0x270a4d=>_0x270a4d['model']==_0x59c436);let _0x42ac17=_0x59c436,_0x40a45b='';return _0x31b12f&&(_0x42ac17=_0x31b12f['label'],_0x40a45b=_0x10975f(_0x42ac17)['toLowerCase']()),{'type':'format','content':o(_0x1ff6a1,'*Set\x20font\x20color:*\x20%0',_0x40a45b)['trim'](),'color':{'value':_0x59c436,'title':_0x40a45b||_0x42ac17}};}return{'type':'format','content':o(_0x1ff6a1,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3fee2b['commandName']){const _0x103456=_0x3fee2b['commandParams'][0x0]['value'];if(_0x103456){const _0x32e85b=_0x8de2ae(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x4b68f5=>_0x4b68f5['model']==_0x103456);let _0x879634=_0x103456,_0x422bf1='';return _0x32e85b&&(_0x879634=_0x32e85b['label'],_0x422bf1=_0x10975f(_0x879634)['toLowerCase']()),{'type':'format','content':o(_0x1ff6a1,'*Set\x20font\x20background\x20color:*\x20%0',_0x422bf1)['trim'](),'color':{'value':_0x103456,'title':_0x422bf1||_0x879634}};}return{'type':'format','content':o(_0x1ff6a1,'*Reset\x20font\x20background\x20color*')};}}});}}class tt extends _0x1a323e{['afterInit'](){const _0x2a414e=this['editor'],_0x1d53f4=_0x2a414e['plugins']['get']('TrackChangesEditing'),_0x3bccdb=_0x2a414e['commands']['get']('copyFormat'),_0x2358b0=_0x2a414e['commands']['get']('pasteFormat');_0x3bccdb&&_0x2358b0&&(_0x1d53f4['enableDefaultAttributesIntegration']('pasteFormat'),_0x1d53f4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x52635a=this['editor'],_0x451645=_0x52635a['locale'];_0x52635a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x116a71=>{if('formatBlock'!=_0x116a71['type']&&'formatInline'!=_0x116a71['type'])return;const {data:_0x51aef8}=_0x116a71;if(_0x51aef8&&'pasteFormat'===_0x51aef8['commandName']){const _0x19989d=[],_0x318a1f=_0x51aef8['commandParams'][0x0];for(const [_0x2bc8f1,_0x3ffd3e]of Object['entries'](_0x318a1f))_0x19989d['push'](so(_0x52635a,_0x2bc8f1,_0x3ffd3e));return _0x19989d['length']?{'type':'format','content':o(_0x451645,'*Set\x20format\x20to:*\x20%0',_0x19989d['join'](',\x20'))}:{'type':'format','content':o(_0x451645,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3cc283,_0x544c78,_0x5004ad){const _0xcb0e3f=_0x3cc283['locale']['t'],_0x3518f3=_0x544c78['split'](/(?=[A-Z])/)['join']('\x20'),_0x16df11=_0xcb0e3f(_0x3518f3['charAt'](0x0)['toUpperCase']()+_0x3518f3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x5004ad)return _0x16df11;if('fontColor'===_0x544c78||'fontBackgroundColor'===_0x544c78){const _0x598340=_0x8de2ae(_0x3cc283['config']['get']('fontColor.colors'))['find'](_0xb5f42=>_0xb5f42['model']==_0x5004ad);return _0x16df11+'\x20('+(_0x598340?_0xcb0e3f(_0x598340['label'])['toLowerCase']():_0x5004ad)+')';}if('fontSize'===_0x544c78&&isNaN(parseFloat(_0x5004ad))){const _0x3a50dd=_0x3cc283['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3cc283['config']['get']('fontSize.options'))['find'](_0x421bae=>_0x421bae['model']==_0x5004ad);return _0x16df11+'\x20('+(_0x3a50dd?_0xcb0e3f(_0x3a50dd['title'])['toLowerCase']():_0x5004ad)+')';}return _0x16df11+'\x20('+_0x5004ad+')';}class nt extends _0x1a323e{['_headingOptions'];['afterInit'](){const _0x202d18=this['editor'];if(!_0x202d18['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x202d18['config']['get']('heading.options');const _0x295122=_0x202d18['locale'],_0x44548f=_0x202d18['plugins']['get']('TrackChangesEditing');_0x44548f['enableDefaultAttributesIntegration']('heading');for(const _0x50d57d of this['_headingOptions'])'paragraph'!=_0x50d57d['model']&&_0x44548f['descriptionFactory']['registerElementLabel'](_0x50d57d['model'],_0x25221d=>{const _0x36d1a0=this['_getHeadingLevel'](_0x50d57d['model']);return null!==_0x36d1a0?_0x40a2f0(_0x25221d,_0x36d1a0):_0x9d8b18(_0x25221d,_0x50d57d['title']);});function _0x40a2f0(_0x349c09,_0x14e674){return o(_0x295122,'ELEMENT_HEADING',[_0x349c09,_0x14e674]);}function _0x9d8b18(_0x45a6b5,_0x52d1bc){return o(_0x295122,'ELEMENT_HEADING_CUSTOM',[_0x45a6b5,_0x52d1bc]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x50cc7a=this['editor'],_0xe52b04=_0x50cc7a['locale'];function _0x49327e(_0x568f3f,_0x433af3){return o(_0xe52b04,'ELEMENT_HEADING_CUSTOM',[_0x568f3f,_0x433af3]);}_0x50cc7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2b870e=>{if('formatBlock'!=_0x2b870e['type'])return;const {data:_0x449d9f}=_0x2b870e;if(_0x449d9f&&'heading'==_0x449d9f['commandName']){const _0x988762=_0x449d9f['commandParams'][0x0]['value'],_0x9f37c5=this['_getHeadingLevel'](_0x988762);if(null!==_0x9f37c5)return{'type':'format','content':o(_0xe52b04,'*Change\x20to:*\x20%0',(_0x7e2e08=0x1,_0x2420a5=_0x9f37c5,o(_0xe52b04,'ELEMENT_HEADING',[_0x7e2e08,_0x2420a5])))};const _0xde3989=this['_headingOptions']['find'](_0x1bd37b=>_0x1bd37b['model']===_0x988762)['title'];return{'type':'format','content':o(_0xe52b04,'*Change\x20to:*\x20%0',_0x49327e(0x1,_0xde3989))};}var _0x7e2e08,_0x2420a5;});}['_getHeadingLevel'](_0x374922){const _0x62280c=_0x374922['match'](/^heading(\d+)/);if(_0x62280c)return _0x62280c[0x1];const _0x3dc986=this['_headingOptions']?.['find'](_0x4c4c3f=>_0x4c4c3f['model']==_0x374922);if(_0x3dc986&&_0x3dc986['view']){const _0x23a6b2=_0x3dc986['view'],_0x5a447a=(_0x23a6b2['name']??_0x23a6b2)['match'](/^h(\d+)/);if(_0x5a447a)return _0x5a447a[0x1];}return null;}}class it extends _0x1a323e{['afterInit'](){const _0x4d7022=this['editor'];if(!_0x4d7022['plugins']['has']('HighlightEditing'))return;const _0x2c6fca=_0x4d7022['plugins']['get']('TrackChangesEditing'),_0x3c6937=_0x4d7022['locale'];_0x2c6fca['enableDefaultAttributesIntegration']('highlight'),_0x2c6fca['registerInlineAttribute']('highlight'),_0x2c6fca['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3c6937,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x563dff=this['editor'],_0x41375e=_0x563dff['locale'];_0x563dff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4171ae=>{if('formatInline'!=_0x4171ae['type'])return;const {data:_0x3876fd}=_0x4171ae;if(_0x3876fd&&'highlight'==_0x3876fd['commandName']){const _0x1a58bf=_0x41375e['t'],_0x4c991b=_0x3876fd['commandParams'][0x0]['value'];if(_0x4c991b){const _0x50fa16=_0x563dff['config']['get']('highlight.options')['find'](_0x13997d=>_0x13997d['model']==_0x4c991b),_0x12355=_0x1a58bf(_0x50fa16['title'])['toLowerCase']();return{'type':'format','content':o(_0x41375e,'*Set\x20highlight:*\x20%0',_0x12355),'color':{'value':_0x50fa16['color'],'title':_0x50fa16['title']}};}return{'type':'format','content':o(_0x41375e,'*Remove\x20highlight*',o(_0x41375e,'FORMAT_HIGHLIGHT'))};}});}}class et extends _0x1a323e{['afterInit'](){const _0x5c452a=this['editor'];if(!_0x5c452a['plugins']['has']('HorizontalLineEditing'))return;_0x5c452a['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a28a6=_0x5c452a['plugins']['get']('TrackChangesEditing'),_0x5e0eaa=_0x5c452a['locale'];_0x3a28a6['descriptionFactory']['registerElementLabel']('horizontalLine',_0x12ad6d=>o(_0x5e0eaa,'ELEMENT_HORIZONTAL_LINE',_0x12ad6d)),_0x5c452a['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x461047,{writer:_0x7b74cf,options:_0x25b84e})=>{if(!_0x25b84e['showSuggestionHighlights'])return null;const _0x1df538=_0x7b74cf['createContainerElement']('div'),_0x565ad6=_0x7b74cf['createEmptyElement']('hr');return _0x7b74cf['addClass']('ck-horizontal-line',_0x1df538),_0x7b74cf['insert'](_0x7b74cf['createPositionAt'](_0x1df538,0x0),_0x565ad6),_0x1df538;},'converterPriority':'high'});}}class st extends _0x1a323e{['afterInit'](){const _0x2fcdd4=this['editor'];if(!_0x2fcdd4['plugins']['has']('HtmlEmbed'))return;const _0x13f565=_0x2fcdd4['plugins']['get']('TrackChangesEditing'),_0x414203=_0x2fcdd4['locale'];_0x13f565['descriptionFactory']['registerElementLabel']('rawHtml',_0x5b13b1=>o(_0x414203,'ELEMENT_HTML_EMBED',_0x5b13b1)),_0x13f565['enableDefaultAttributesIntegration']('htmlEmbed'),_0x13f565['registerBlockAttribute']('value'),_0x13f565['descriptionFactory']['registerDescriptionCallback'](_0x288c4b=>{if('attribute'!=_0x288c4b['type'])return;const {data:_0x2c69da}=_0x288c4b;if(_0x2c69da&&'value'==_0x2c69da['key']&&_0x288c4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0xf9298f=o(_0x414203,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x414203,'*Change\x20%0\x20content*',_0xf9298f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4772ba=this['editor'],_0x17a4e9=_0x4772ba['locale'];_0x4772ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x33f3ad=>{if('formatBlock'!=_0x33f3ad['type'])return;const {data:_0x298e53}=_0x33f3ad;if(_0x298e53&&'htmlEmbed'==_0x298e53['commandName']){const _0x2ba30f=o(_0x17a4e9,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x17a4e9,'*Change\x20%0\x20content*',_0x2ba30f)};}});}}class ot extends _0x1a323e{['afterInit'](){const _0x15c9d5=this['editor'];if(!_0x15c9d5['plugins']['has']('ImageEditing'))return;const _0x463828=_0x15c9d5['plugins']['get']('TrackChangesEditing'),_0x4f19cd=_0x15c9d5['plugins']['get']('ImageUtils'),_0x4b0864=_0x15c9d5['locale'];_0x463828['enableCommand']('insertImage'),_0x463828['descriptionFactory']['registerElementLabel']('imageBlock',_0x141600=>o(_0x4b0864,'ELEMENT_IMAGE',_0x141600)),_0x463828['descriptionFactory']['registerElementLabel']('imageInline',_0x5b37b1=>o(_0x4b0864,'ELEMENT_INLINE_IMAGE',_0x5b37b1)),_0x463828['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4b0864,'ELEMENT_CAPTION')),_0x15c9d5['plugins']['has']('ImageUploadEditing')&&_0x463828['enableCommand']('uploadImage'),_0x15c9d5['plugins']['has']('ImageBlockEditing')&&_0x15c9d5['plugins']['has']('ImageInlineEditing')&&(_0x463828['enableCommand']('imageTypeInline',(_0x331df9,_0x37b919)=>{const _0x40565f=_0x4f19cd['getClosestSelectedImageElement'](_0x15c9d5['model']['document']['selection']);_0x15c9d5['model']['change'](()=>{_0x463828['markBlockFormat'](_0x40565f,{'commandName':'imageTypeInline','commandParams':[_0x37b919]},[],'convertBlockImageToInline');});}),_0x463828['enableCommand']('imageTypeBlock',(_0x411dbe,_0x34628b)=>{_0x15c9d5['model']['change'](_0x33b646=>{let _0x22a1cb=_0x4f19cd['getClosestSelectedImageElement'](_0x15c9d5['model']['document']['selection']),_0x48597e=_0x33b646['createRangeOn'](_0x22a1cb);const _0x1a6db1=_0x2e2691['fromPosition'](_0x48597e['start'],'toPrevious'),_0x3b4af2=_0x2e2691['fromPosition'](_0x48597e['end'],'toNext');_0x463828['forceDefaultExecution'](()=>_0x411dbe(_0x34628b)),_0x22a1cb=_0x4f19cd['getClosestSelectedImageElement'](_0x15c9d5['model']['document']['selection']),_0x48597e=_0x33b646['createRangeOn'](_0x22a1cb);const _0x3f64f1=_0x33b646['createRange'](_0x1a6db1,_0x3b4af2);_0x1a6db1['detach'](),_0x3b4af2['detach'](),_0x463828['markBlockFormat'](_0x22a1cb,{'commandName':'imageTypeInline','commandParams':[_0x34628b]},[],'convertInlineImageToBlock'),_0x3f64f1['start']['isBefore'](_0x48597e['start'])&&_0x463828['markInsertion'](_0x33b646['createRange'](_0x3f64f1['start'],_0x48597e['start']),'convertInlineImageToBlock'),_0x48597e['end']['isBefore'](_0x3f64f1['end'])&&_0x463828['markInsertion'](_0x33b646['createRange'](_0x48597e['end'],_0x3f64f1['end']),'convertInlineImageToBlock');});}),_0x463828['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x463828['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x463828['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x463828['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x463828['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x463828['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1abbcd])=>{const _0x1a470e=_0x463828['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3e3e61=_0x1abbcd['start'],_0x9fc5a2=_0x1abbcd['end'];const _0xca031c=_0x15c9d5['model']['schema']['getNearestSelectionRange'](_0x3e3e61,'backward'),_0x51fee9=_0x15c9d5['model']['schema']['getNearestSelectionRange'](_0x9fc5a2,'forward');_0xca031c['isCollapsed']&&(_0x3e3e61=_0xca031c['start']),_0x51fee9['isCollapsed']&&(_0x9fc5a2=_0x51fee9['end']),_0x1a470e([_0x15c9d5['model']['createRange'](_0x3e3e61,_0x9fc5a2)]);}),_0x463828['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x1dbfca),_0x463828['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x1dbfca)),_0x15c9d5['plugins']['has']('ImageCaptionEditing')&&(_0x463828['enableCommand']('toggleImageCaption',(_0x359152,_0x243370)=>{const _0x85abc3=_0x15c9d5['plugins']['get']('ImageCaptionUtils');let _0x1d93d4=_0x4f19cd['getClosestSelectedImageElement'](_0x15c9d5['model']['document']['selection']),_0x15d751=_0x85abc3['getCaptionFromImageModelElement'](_0x1d93d4);_0x15c9d5['model']['change'](()=>{if(_0x15d751)return void _0x463828['markDeletion'](_0x15c9d5['model']['createRangeOn'](_0x15d751));const _0x518d69=_0x4f19cd['isBlockImage'](_0x1d93d4);_0x359152(_0x243370),_0x1d93d4=_0x4f19cd['getClosestSelectedImageElement'](_0x15c9d5['model']['document']['selection']),_0x15d751=_0x85abc3['getCaptionFromImageModelElement'](_0x1d93d4),_0x463828['markInsertion'](_0x15c9d5['model']['createRangeOn'](_0x15d751),_0x518d69?null:'imageCaption');});}),_0x463828['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x1dbfca));const _0x1891b4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b8f67(_0x2d2bb5,_0x21ed80){const _0x4551ad=_0x1891b4['findIndex'](({type:_0x5dced6,subType:_0x290dfb})=>_0x2d2bb5['type']==_0x5dced6&&_0x2d2bb5['subType']==_0x290dfb),_0x59a022=_0x1891b4['findIndex'](({type:_0x3e3bf9,subType:_0x326bd6})=>_0x21ed80['type']==_0x3e3bf9&&_0x21ed80['subType']==_0x326bd6);if(_0x4551ad<0x0||_0x59a022<0x0)return!0x1;const _0x21ca06=_0x2d2bb5['getFirstRange'](),_0x59660e=_0x21ed80['getFirstRange']();if((0x0==_0x4551ad||0x1==_0x4551ad)&&0x2==_0x59a022&&_0x21ca06['isIntersecting'](_0x59660e))return!0x0;if(0x2==_0x4551ad&&0x3==_0x59a022){const _0x2036c5=_0x463828['_findSuggestions'](_0x21ca06,'insertion')['filter'](({suggestion:_0x39b30b,meta:_0x29f8dd})=>_0x29f8dd['isOwn']&&'convertInlineImageToBlock'==_0x39b30b['subType']);if(_0x2036c5['length']>0x1&&_0x59660e['end']['isEqual'](_0x21ca06['start']))return!0x0;if(0x1==_0x2036c5['length']&&(_0x21ca06['start']['isEqual'](_0x59660e['end'])||_0x21ca06['end']['isEqual'](_0x59660e['start'])))return!0x0;}if(0x3==_0x4551ad&&0x3==_0x59a022&&_0x21ca06['start']['isBefore'](_0x59660e['start'])){const _0x20cef5=_0x21ca06['end']['nodeAfter'],_0x1ebb6d=_0x59660e['start']['nodeBefore'];return _0x4f19cd['isBlockImage'](_0x20cef5)&&_0x20cef5===_0x1ebb6d;}return!0x1;}function _0x1dbfca(_0x185e3c,_0x1529d1){return _0x2b8f67(_0x185e3c,_0x1529d1)?[_0x185e3c,_0x1529d1]:_0x2b8f67(_0x1529d1,_0x185e3c)?[_0x1529d1,_0x185e3c]:null;}_0x15c9d5['plugins']['has']('ImageResize')&&(_0x463828['enableDefaultAttributesIntegration']('resizeImage'),_0x463828['registerBlockAttribute']('resizedWidth'),_0x463828['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4b0864,'FORMAT_IMAGE_SIZE'))),_0x15c9d5['plugins']['has']('ImageTextAlternativeEditing')&&(_0x463828['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x463828['registerBlockAttribute']('alt')),_0x15c9d5['plugins']['has']('PictureEditing')&&(_0x463828['registerBlockAttribute']('sources'),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x1ec39b=>{if('attribute'!=_0x1ec39b['type'])return;const {data:_0x2ee608}=_0x1ec39b;return _0x2ee608&&'sources'==_0x2ee608['key']?{'type':'format','content':''}:void 0x0;})),_0x15c9d5['plugins']['has']('ImageSizeAttributes')&&(_0x463828['registerBlockAttribute']('width'),_0x463828['registerBlockAttribute']('height'),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x1bbb19=>{if('attribute'!=_0x1bbb19['type'])return;const {data:_0x86e2ac}=_0x1bbb19;return!_0x86e2ac||'width'!=_0x86e2ac['key']&&'height'!=_0x86e2ac['key']?void 0x0:{'type':'format','content':''};})),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x396b7a=>{if(!!_0x1891b4['find'](({type:_0x268fc3,subType:_0xacd4f9})=>_0x396b7a['type']==_0x268fc3&&_0x396b7a['subType']==_0xacd4f9))return _0x396b7a['previous']?{}:void 0x0;}),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x11817d=>{if('insertion'==_0x11817d['type']||'deletion'==_0x11817d['type']){const _0xfe6b31=_0x11817d['getContainedElement']();if(_0xfe6b31&&_0xfe6b31['is']('element','caption'))return{'type':'insertion'==_0x11817d['type']?'addObject':'removeObject','element':_0xfe6b31,'quantity':0x1};}}),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x3a5652=>'formatBlock'==_0x3a5652['type']&&'convertInlineImageToBlock'==_0x3a5652['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x3a5652['type']&&'convertBlockImageToInline'==_0x3a5652['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x463828['descriptionFactory']['registerDescriptionCallback'](_0x1fa1de=>{if('attribute'!=_0x1fa1de['type'])return;const {data:_0xa5ddba}=_0x1fa1de;if(!_0xa5ddba||'alt'!=_0xa5ddba['key'])return;const _0x59bdf6=_0xa5ddba['newValue'];return _0x59bdf6?{'type':'format','content':o(_0x4b0864,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x59bdf6+'\x22')}:{'type':'format','content':o(_0x4b0864,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x245e4e=this['editor'],_0x59c136=_0x245e4e['locale'];_0x245e4e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x467562=>{if('formatBlock'!=_0x467562['type']&&'formatInline'!=_0x467562['type'])return;const {data:_0x2bf000}=_0x467562;if(_0x2bf000){if('imageTextAlternative'==_0x2bf000['commandName']){const _0xe085e6=_0x2bf000['commandParams'][0x0]['newValue'];return _0xe085e6?{'type':'format','content':o(_0x59c136,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xe085e6+'\x22')}:{'type':'format','content':o(_0x59c136,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2bf000['commandName']){const _0x5196ab=_0x2bf000['commandParams'][0x0]['width'];return _0x5196ab?{'type':'format','content':o(_0x59c136,'*Set\x20image\x20width:*\x20%0',_0x5196ab)}:{'type':'format','content':o(_0x59c136,'*Reset\x20image\x20width*')};}}});}}class rt extends _0x1a323e{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xdcad43=this['editor']['locale'],_0xa15ded=this['editor']['plugins']['get']('TrackChangesEditing');_0xa15ded['enableDefaultAttributesIntegration']('replaceImageSource'),_0xa15ded['registerBlockAttribute']('src'),_0xa15ded['descriptionFactory']['registerDescriptionCallback'](_0x4ac393=>{if('attribute'!=_0x4ac393['type'])return;const {data:_0x3176f6}=_0x4ac393;return _0x3176f6&&'src'==_0x3176f6['key']?_0x3176f6['newValue']&&_0x3176f6['oldValue']?{'type':'format','content':o(_0xdcad43,'*Replace\x20image*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a91e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a91e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5a91e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a91e6['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5a91e6['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x561dbf=this['editor'],_0x58168d=_0x561dbf['locale'];_0x561dbf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x39f431=>{if('formatBlock'!=_0x39f431['type']&&'formatInline'!=_0x39f431['type'])return;const {data:_0x322690}=_0x39f431;if(!_0x322690||'replaceImageSource'!=_0x322690['commandName'])return;return{'type':'format','content':o(_0x58168d,'*Format:*\x20replace\x20image\x20URL')};});}}class at extends _0x1a323e{['afterInit'](){const _0x19bcfd=this['editor'];if(!_0x19bcfd['plugins']['has']('ImageStyleEditing'))return;const _0x15448f=_0x19bcfd['plugins']['get']('TrackChangesEditing'),_0x735826=_0x19bcfd['plugins']['get']('ImageUtils'),_0x51d201={};_0x15448f['enableCommand']('imageStyle',(_0xa7926,_0x4b6b7c)=>{const _0x51729d=_0x19bcfd['plugins']['get']('Users')['me'],_0x2996e2=_0x19bcfd['commands']['get']('imageStyle');let _0x592d75=_0x735826['getClosestSelectedImageElement'](_0x19bcfd['model']['document']['selection']),_0x143e01=_0x19bcfd['model']['createRangeOn'](_0x592d75),_0x162747=_0x2996e2['value'];if(_0x162747==_0x4b6b7c['value'])return;const _0x1d61cd={'commandName':'imageStyle','commandParams':[_0x4b6b7c],'formatGroupId':_0x1a89e5()};_0x19bcfd['model']['change'](()=>{if(_0x15448f['getSuggestions']()['filter'](_0x2e696e=>_0x2e696e['isInContent']&&_0x51729d==_0x2e696e['author']&&('formatBlock'==_0x2e696e['type']||'formatInline'==_0x2e696e['type'])&&('imageStylePreApply'==_0x2e696e['subType']||'imageStylePostApply'==_0x2e696e['subType'])&&_0x2e696e['getFirstRange']()['isEqual'](_0x143e01))['forEach'](_0x4b1209=>_0x15448f['discardSuggestion'](_0x4b1209['head'])),_0x592d75=_0x735826['getClosestSelectedImageElement'](_0x19bcfd['model']['document']['selection']),_0x143e01=_0x19bcfd['model']['createRangeOn'](_0x592d75),_0x2996e2['refresh'](),_0x19bcfd['commands']['get']('imageTypeInline')['refresh'](),_0x19bcfd['commands']['get']('imageTypeBlock')['refresh'](),_0x162747=_0x2996e2['value'],_0x162747!=_0x4b6b7c['value'])return _0x735826['isInlineImage'](_0x592d75)&&_0x2996e2['shouldConvertImageType'](_0x4b6b7c['value'],_0x592d75)?(_0xa7926({..._0x4b6b7c,'setImageSizes':!0x1}),_0x592d75=_0x735826['getClosestSelectedImageElement'](_0x19bcfd['model']['document']['selection']),void _0x15448f['markBlockFormat'](_0x592d75,{..._0x1d61cd,'commandReversedParams':[{'value':_0x162747||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x735826['isBlockImage'](_0x592d75)?_0x15448f['markBlockFormat'](_0x592d75,_0x1d61cd,[],'imageStylePostApply'):_0x15448f['markInlineFormat'](_0x143e01,_0x1d61cd,'imageStylePostApply'));});});for(const _0x2a8c8d of _0x19bcfd['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x51d201[_0x2a8c8d['name']]=_0x2a8c8d['title']['toLowerCase']();_0x15448f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x15448f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x15448f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x15448f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xb79251])=>{_0x735826['setImageNaturalSizeAttributes'](_0xb79251['getContainedElement']());}),_0x15448f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x487b41,_0x31f7a0)=>{_0x15448f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x487b41,{'commandName':_0x31f7a0['commandName'],'commandParams':_0x31f7a0['commandReversedParams']});}),_0x15448f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3c2fab,_0x2d9032){if(_0x29acbf(_0x3c2fab,_0x2d9032))return[_0x3c2fab,_0x2d9032];if(_0x29acbf(_0x2d9032,_0x3c2fab))return[_0x2d9032,_0x3c2fab];return null;});const _0x2ed13a=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x29acbf(_0x256e6c,_0x4e3bff){const _0x59ef06=_0x2ed13a['findIndex'](({type:_0x44775c,subType:_0x47689b})=>_0x256e6c['type']==_0x44775c&&_0x256e6c['subType']==_0x47689b),_0x1d3c45=_0x2ed13a['findIndex'](({type:_0x11501b,subType:_0x1eb720})=>_0x4e3bff['type']==_0x11501b&&_0x4e3bff['subType']==_0x1eb720);if(_0x59ef06<0x0||_0x1d3c45<0x0)return!0x1;const _0x32bfa1=_0x256e6c['getFirstRange'](),_0x1cbb29=_0x4e3bff['getFirstRange']();if((0x0==_0x59ef06||0x1==_0x59ef06)&&0x2==_0x1d3c45&&_0x32bfa1['isIntersecting'](_0x1cbb29))return!0x0;if(0x2==_0x59ef06&&0x3==_0x1d3c45){const _0x5b5ccb=_0x15448f['_findSuggestions'](_0x32bfa1,'insertion')['filter'](({suggestion:_0x2fca04,meta:_0x5675d9})=>_0x5675d9['isOwn']&&'convertInlineImageToBlock'==_0x2fca04['subType']);if(_0x5b5ccb['length']>0x1&&_0x1cbb29['end']['isEqual'](_0x32bfa1['start']))return!0x0;if(0x1==_0x5b5ccb['length']&&(_0x32bfa1['start']['isEqual'](_0x1cbb29['end'])||_0x32bfa1['end']['isEqual'](_0x1cbb29['start'])))return!0x0;}if(0x3==_0x59ef06&&0x3==_0x1d3c45&&_0x32bfa1['start']['isBefore'](_0x1cbb29['start'])){const _0x48d67d=_0x32bfa1['end']['nodeAfter'],_0x3a514d=_0x1cbb29['start']['nodeBefore'];return _0x735826['isBlockImage'](_0x48d67d)&&_0x48d67d===_0x3a514d;}return!0x1;}_0x19bcfd['model']['document']['registerPostFixer'](()=>{let _0x5773f3=!0x1;const _0x1fdde8=Array['from'](_0x19bcfd['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x13f35a,data:_0x1fe2e3}of _0x1fdde8){const {group:_0x1ee774,type:_0x167d91,subType:_0x498b9e,id:_0x11f109}=_0x15448f['_splitMarkerName'](_0x13f35a);if('suggestion'==_0x1ee774&&_0x15448f['hasSuggestion'](_0x11f109)){if('formatBlock'==_0x167d91&&('imageStylePreApply'==_0x498b9e||'imageStylePostApply'==_0x498b9e)){const _0x46d504=_0x15448f['getSuggestion'](_0x11f109);if(_0x1fe2e3['newRange']){const _0x1e22a3=_0x46d504['getFirstRange']()['getContainedElement']();if(_0x735826['isBlockImage'](_0x1e22a3))continue;_0x15448f['discardSuggestion'](_0x46d504),_0x5773f3=!0x0;}}if('insertion'==_0x167d91&&'imageCaption'==_0x498b9e&&!_0x1fe2e3['newRange']){const _0x135a05=_0x15448f['getSuggestion'](_0x11f109);_0x135a05['next']&&_0x135a05['next']['isInContent']&&(_0x15448f['discardSuggestion'](_0x135a05['next']),_0x5773f3=!0x0);}}}return _0x5773f3;}),this['_registerLegacyDescription'](_0x51d201);}['_registerLegacyDescription'](_0x2cb825){const _0x9a8c6d=this['editor'],_0x1f3a76=_0x9a8c6d['locale'];_0x9a8c6d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x419a9f=>{if('formatBlock'!=_0x419a9f['type']&&'formatInline'!=_0x419a9f['type'])return;const {data:_0x4e30b0}=_0x419a9f;if(!_0x4e30b0||'imageStyle'!=_0x4e30b0['commandName'])return;const _0x56022a=_0x4e30b0['commandParams'][0x0]['value'];return _0x7e0c0d('side'===_0x56022a?o(_0x1f3a76,'FORMAT_SIDE_IMAGE'):_0x2cb825[_0x56022a]||_0x56022a);function _0x7e0c0d(_0x4a8b94){return{'type':'format','content':o(_0x1f3a76,'*Format:*\x20%0',_0x4a8b94)};}});}}class ct extends _0x1a323e{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x421a34){super(_0x421a34),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4fc936=this['editor'],_0x28e1d4=_0x4fc936['commands']['get']('importWord'),_0xa139d3=_0x4fc936['commands']['get']('trackChanges');_0x28e1d4&&(_0x28e1d4['on']('execute',(_0x3c2d36,[,_0x383e55])=>{this['_trackChangesValueDuringImport']=_0xa139d3['value'],_0x383e55['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x28e1d4,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x28e1d4,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xa139d3['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4fc936['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x15f20d,_0x57db8f){const {suggestions:_0x50ba80}=_0x57db8f,_0x37b2a8=this['editor']['commands']['get']('trackChanges'),_0x4551a9=_0x37b2a8['value'];this['_trackChangesValueDuringImport']!==_0x4551a9&&(_0x37b2a8['execute'](),this['_trackChangesExecuted']=!0x0),_0x50ba80&&_0x50ba80['forEach'](({id:_0x2dc22c,type:_0x339d94,author:_0x5bdd9b,created_at:_0x47cbc9})=>{const _0x27199e={'id':_0x2dc22c,'type':_0x339d94,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5bdd9b,'createdAt':_0x47cbc9?new Date(_0x47cbc9):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x27199e);});}}class ut extends _0x1a323e{['afterInit'](){const _0x116762=this['editor'],_0x38f3e0=_0x116762['plugins']['get']('TrackChangesEditing');if(_0x116762['plugins']['has']('IndentEditing')&&(_0x38f3e0['enableCommand']('indent'),_0x38f3e0['enableCommand']('outdent')),_0x116762['plugins']['has']('IndentBlock')){for(const _0x517363 of['indentBlock','outdentBlock'])_0x38f3e0['enableDefaultAttributesIntegration'](_0x517363);}const _0x5509d7=_0x116762['locale'];_0x38f3e0['registerBlockAttribute']('blockIndent'),_0x38f3e0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x5509d7,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x26df20=this['editor'],_0x55b305=_0x26df20['locale'],_0x1d9988=_0x26df20['plugins']['get']('TrackChangesEditing');_0x1d9988['descriptionFactory']['registerDescriptionCallback'](_0x246479=>{if('formatBlock'!=_0x246479['type'])return;const {data:_0x4e1230}=_0x246479;if(!_0x4e1230)return;if('indentBlock'!=_0x4e1230['commandName']&&'outdentBlock'!=_0x4e1230['commandName'])return;const _0x3f70cb=_0x246479['getItems']()[0x0],_0xfc8bfc=_0x1d9988['descriptionFactory']['getItemLabel'](_0x3f70cb);return'indentBlock'==_0x4e1230['commandName']?{'type':'format','content':o(_0x55b305,'*Indent:*\x20%0',_0xfc8bfc)}:'outdentBlock'==_0x4e1230['commandName']?{'type':'format','content':o(_0x55b305,'*Outdent:*\x20%0',_0xfc8bfc)}:void 0x0;});}}class ft extends _0x1a323e{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1a323e{['afterInit'](){const _0x24247c=this['editor'];if(!_0x24247c['plugins']['has']('LinkEditing'))return;const _0x23a6ec=_0x24247c['plugins']['get']('TrackChangesEditing'),_0x1d2e32=_0x24247c['commands']['get']('link');_0x23a6ec['enableDefaultAttributesIntegration']('link'),_0x23a6ec['enableDefaultAttributesIntegration']('unlink'),_0x23a6ec['registerInlineAttribute']('linkHref');for(const _0x29c26e of _0x1d2e32['manualDecorators'])_0x23a6ec['registerInlineAttribute'](_0x29c26e['id']),_0x23a6ec['descriptionFactory']['registerAttributeLabel'](_0x29c26e['id'],'link\x20('+_0x29c26e['label']['toLowerCase']()+')');_0x23a6ec['descriptionFactory']['registerDescriptionCallback'](_0xa8d140=>{if('attribute'!=_0xa8d140['type'])return;const {data:_0x4e3c3b}=_0xa8d140;if(!_0x4e3c3b||'linkHref'!=_0x4e3c3b['key'])return;const _0x458305=_0x4e3c3b['newValue'],_0x4cb3da=_0x24247c['locale'];return{'type':'format','content':null==_0x458305?o(_0x4cb3da,'*Remove\x20link*'):o(_0x4cb3da,'*Set\x20link:*\x20%0','\x22'+_0x458305+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a6e6e=this['editor'],_0x17325e=_0x3a6e6e['locale'];_0x3a6e6e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x285d88=>{if('formatInline'!=_0x285d88['type'])return;const {data:_0x46eea5}=_0x285d88;if(_0x46eea5){if('link'==_0x46eea5['commandName']){const _0x1176e7=_0x46eea5['commandParams'][0x0];return{'type':'format','content':o(_0x17325e,'*Set\x20link:*\x20%0','\x22'+_0x1176e7+'\x22')};}return'unlink'==_0x46eea5['commandName']?{'type':'format','content':o(_0x17325e,'*Remove\x20link*')}:void 0x0;}});}}class lt extends _0x1a323e{['afterInit'](){const _0x1b6bcb=this['editor'],_0x401f94=_0x1b6bcb['locale'];if(!_0x1b6bcb['plugins']['has']('LegacyListEditing'))return;const _0x1c97ea=_0x1b6bcb['plugins']['get']('TrackChangesEditing'),_0x4ca40b=_0x1b6bcb['plugins']['has']('LegacyTodoListEditing');function _0x56bcd6(_0x37ebfd){return()=>{const _0x25847c=_0x1b6bcb['model']['document']['selection'],_0x558d56=_0x1b6bcb['commands']['get'](_0x37ebfd);if(_0x558d56['value'])return void _0x1b6bcb['execute']('paragraph',{});const _0x582b7f=_0x37ebfd['slice'](0x0,-0x4),_0x3bd525=function(_0x3510c9,_0x26759a,_0x565453){let _0x5b2534=Array['from'](_0x3510c9)['filter'](_0x2f1ff0=>function(_0x55a125,_0x318861){return _0x318861['checkChild'](_0x55a125['parent'],'listItem')&&!_0x318861['isObject'](_0x55a125);}(_0x2f1ff0,_0x565453));_0x5b2534=_0x5b2534['filter'](_0x1586b3=>!_0x1586b3['is']('element','listItem')||_0x1586b3['getAttribute']('listType')!=_0x26759a);const _0x3be2f6=new Set();for(const _0x26dfcd of _0x5b2534)_0x26dfcd['is']('element','listItem')?_0x3be2f6['add'](Le(_0x26dfcd)):_0x3be2f6['add'](_0x26dfcd);return Array['from'](_0x3be2f6);}(_0x25847c['getSelectedBlocks'](),_0x582b7f,_0x1b6bcb['model']['schema']);_0x1b6bcb['model']['change'](()=>{for(const _0x2f3a86 of _0x3bd525)_0x1c97ea['markBlockFormat'](_0x2f3a86,{'commandName':_0x37ebfd,'commandParams':[{'forceValue':!_0x558d56['value']}],'formatGroupId':'blockName'},Ee(_0x2f3a86));});};}function _0x4a9d8b(_0x1f701a){return()=>{const _0x22b646=function(_0x405413){let _0x38a151=Array['from'](_0x405413);const _0x2c63b9=_0x38a151['findIndex'](_0xf596e2=>'listItem'!=_0xf596e2['name']);return _0x2c63b9>-0x1&&(_0x38a151=_0x38a151['slice'](0x0,_0x2c63b9)),_0x38a151;}(_0x1b6bcb['model']['document']['selection']['getSelectedBlocks']()),_0x2283e8=_0x1b6bcb['model']['createRange'](_0x1b6bcb['model']['createPositionAt'](_0x22b646[0x0],'before'),_0x1b6bcb['model']['createPositionAt'](_0x22b646[_0x22b646['length']-0x1],'end'));_0x1b6bcb['model']['change'](()=>{_0x1c97ea['markBlockFormat'](_0x2283e8,{'commandName':_0x1f701a,'commandParams':[],'formatGroupId':'listIndent'},function(_0x262d2f){const _0x194fb5=new Set();for(const _0x11bbd0 of _0x262d2f){let _0x1133a6=_0x11bbd0['nextSibling'];for(;_0x1133a6&&_0x1133a6['getAttribute']('listIndent')>_0x11bbd0['getAttribute']('listIndent');)_0x194fb5['add'](_0x1133a6),_0x1133a6=_0x1133a6['nextSibling'];}return Array['from'](_0x194fb5);}(_0x22b646));});};}_0x1c97ea['enableCommand']('numberedList',_0x56bcd6('numberedList')),_0x1c97ea['enableCommand']('bulletedList',_0x56bcd6('bulletedList')),_0x4ca40b&&_0x1c97ea['enableCommand']('todoList',_0x56bcd6('todoList')),_0x1c97ea['enableCommand']('indentList',_0x4a9d8b('indentList')),_0x1c97ea['enableCommand']('outdentList',_0x4a9d8b('outdentList')),_0x4ca40b&&_0x1c97ea['enableCommand']('checkTodoList',()=>{const _0x3eef31=_0x1b6bcb['commands']['get']('checkTodoList'),_0x4e61c8=Array['from'](_0x3eef31['_selectedElements']);_0x4e61c8['filter'](_0xd60e0e=>_0xd60e0e['getAttribute']('todoListChecked')!=_0x3eef31['value']),_0x1b6bcb['model']['change'](()=>{for(const _0x3bdedb of _0x4e61c8)_0x1c97ea['markBlockFormat'](_0x3bdedb,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3eef31['value']}]});});}),_0x1c97ea['descriptionFactory']['registerElementLabel']('listItem',_0x2b8e7d=>o(_0x401f94,'ELEMENT_LIST_ITEM',_0x2b8e7d)),_0x1c97ea['descriptionFactory']['registerDescriptionCallback'](_0x1d9e0d=>{if('formatBlock'!=_0x1d9e0d['type']&&'formatInline'!=_0x1d9e0d['type'])return;const {data:_0x141f4a}=_0x1d9e0d;if(_0x141f4a){if('numberedList'==_0x141f4a['commandName']||'bulletedList'==_0x141f4a['commandName']||'todoList'==_0x141f4a['commandName'])switch(_0x141f4a['commandName']['replace']('List','')){case'bulleted':return _0x496782(o(_0x401f94,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x496782(o(_0x401f94,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x496782(o(_0x401f94,'ELEMENT_TODO_LIST'));}if('indentList'==_0x141f4a['commandName'])return{'type':'format','content':o(_0x401f94,'*Indent:*\x20%0',o(_0x401f94,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x141f4a['commandName'])return{'type':'format','content':o(_0x401f94,'*Outdent:*\x20%0',o(_0x401f94,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x141f4a['commandName'])return _0x141f4a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x401f94,'*Check\x20item*')}:{'type':'format','content':o(_0x401f94,'*Uncheck\x20item*')};}function _0x496782(_0x4f2b38){return{'type':'format','content':o(_0x401f94,'*Change\x20to:*\x20%0',_0x4f2b38)};}});}}function Le(_0x4d8840){const _0x404505=_0x4d8840['getAttribute']('listIndent');if(0x0==_0x404505)return _0x4d8840;let _0x3bd251=_0x4d8840;for(;_0x4d8840['previousSibling']&&_0x4d8840['previousSibling']['is']('element','listItem');){const _0x5f5730=_0x4d8840['previousSibling']['getAttribute']('listIndent');if(_0x5f5730==_0x404505)_0x3bd251=_0x4d8840['previousSibling'];else{if(_0x5f5730<_0x404505)break;}_0x4d8840=_0x4d8840['previousSibling'];}return _0x3bd251;}function Ee(_0x445f05){const _0x347d3b=[];if(_0x445f05['is']('element','listItem')&&_0x445f05['getAttribute']('listIndent')>0x0){let _0x5ee53d=_0x445f05['nextSibling'];for(;_0x5ee53d&&'listItem'==_0x5ee53d['name']&&_0x5ee53d['getAttribute']('listIndent')==_0x445f05['getAttribute']('listIndent');)_0x347d3b['push'](_0x5ee53d),_0x5ee53d=_0x5ee53d['nextSibling'];}return _0x347d3b;}class Q extends _0x1a323e{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x364702=this['editor']['config']['get']('list.properties'),_0x337d0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x364702['styles']&&_0x337d0a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x364702['reversed']&&_0x337d0a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x364702['startIndex']&&_0x337d0a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x337d0a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x122c2c,_0x1613e2={}){const _0x11688e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x561cd9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x11688e['markMultiRangeBlockFormat'](_0x561cd9,{'commandName':'listStyle','commandParams':[{'type':_0x1613e2['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0xe727ec,_0x1c7acb={}){const _0x5b5672=this['editor']['plugins']['get']('TrackChangesEditing'),_0x91ce7=this['_getSuggestionBlocks'](_0x9857f=>_0x9857f['is']('element','listItem')&&'numbered'===_0x9857f['getAttribute']('listType'));if(_0x91ce7['length']<0x1)return;const _0x2ec6cc=_0x91ce7['map'](_0x279c28=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x279c28,'before'),this['editor']['model']['createPositionAt'](_0x279c28,0x0)));this['editor']['model']['change'](()=>{_0x5b5672['markMultiRangeBlockFormat'](_0x2ec6cc,{'commandName':'listReversed','commandParams':[{'reversed':_0x1c7acb['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x7c9b2d,_0x4ba1e1={}){const _0x5370aa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10c739=this['_getSuggestionBlocks'](_0x347437=>_0x347437['is']('element','listItem')&&'numbered'===_0x347437['getAttribute']('listType'));if(_0x10c739['length']<0x1)return;const _0x1c1642=_0x10c739['map'](_0x32fe72=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x32fe72,'before'),this['editor']['model']['createPositionAt'](_0x32fe72,0x0)));this['editor']['model']['change'](()=>{_0x5370aa['markMultiRangeBlockFormat'](_0x1c1642,{'commandName':'listStart','commandParams':[{'startIndex':_0x4ba1e1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x38af1b){if('formatBlock'!=_0x38af1b['type']&&'formatInline'!=_0x38af1b['type'])return;const _0x2f9b8d=this['editor']['locale'],{data:_0x85bd2c}=_0x38af1b;if(!_0x85bd2c)return;let _0x4426ab,_0x1d99ec;switch(_0x85bd2c['commandName']){case'listStyle':_0x4426ab='*Change\x20to:*\x20%0',_0x1d99ec={'type':'format','content':o(_0x2f9b8d,_0x4426ab,o(_0x2f9b8d,this['_getTranslationKeyForListStyle'](_0x85bd2c['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4426ab=_0x85bd2c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1d99ec={'type':'format','content':o(_0x2f9b8d,_0x4426ab)};break;case'listStart':_0x4426ab='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1d99ec={'type':'format','content':o(_0x2f9b8d,_0x4426ab,_0x85bd2c['commandParams'][0x0]['startIndex'])};}return _0x1d99ec;}['_getSuggestionBlocksForListStyle'](){const _0x1db0e0=this['editor']['plugins']['get']('LegacyListUtils');let _0x495ec8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x495ec8[0x0]?.['is']('element','listItem')&&_0x495ec8['unshift'](..._0x1db0e0['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x495ec8[_0x495ec8['length']-0x1]?.['is']('element','listItem')&&_0x495ec8['push'](..._0x1db0e0['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x495ec8=[...new Set(_0x495ec8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x495ec8=_0x495ec8['filter'](_0x23f67f=>_0x23f67f['is']('element','listItem'))),_0x495ec8;}['_getSuggestionBlocks'](_0x47b099){const _0x1e1a56=this['editor']['plugins']['get']('LegacyListUtils');let _0x2ea359=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x47b099)['map'](_0x3cacc7=>{const _0x41a7bc=this['editor']['model']['createPositionAt'](_0x3cacc7,0x0);return[..._0x1e1a56['getSiblingNodes'](_0x41a7bc,'backward'),..._0x1e1a56['getSiblingNodes'](_0x41a7bc,'forward')];})['flat']();return _0x2ea359=[...new Set(_0x2ea359)],_0x2ea359;}['_getTranslationKeyForListStyle'](_0x10a92a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x10a92a)||'default')['toUpperCase']()+'_LIST_'+_0x10a92a['toUpperCase']()['replace'](/-/g,'_');}}class dt extends _0x1a323e{['afterInit'](){const _0x39f5f7=this['editor'];if(!_0x39f5f7['plugins']['has']('MediaEmbedEditing'))return;const _0x44dae9=_0x39f5f7['plugins']['get']('TrackChangesEditing'),_0x21f164=_0x39f5f7['locale'];_0x44dae9['enableCommand']('mediaEmbed'),_0x44dae9['descriptionFactory']['registerElementLabel']('media',_0x25e157=>o(_0x21f164,'ELEMENT_MEDIA',_0x25e157)),_0x39f5f7['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1d7c21,{writer:_0x288ca9,options:_0x1f5cee})=>{if(_0x1f5cee['showSuggestionHighlights'])return _0x288ca9['createEmptyElement']('div');},'converterPriority':'high'}),_0x39f5f7['data']['downcastDispatcher']['on']('attribute:url:media',(_0xd31c4b,_0xa83fca,_0x1a3cff)=>{_0x1a3cff['options']['showSuggestionHighlights']&&_0xd31c4b['stop']();},{'priority':'high'});}}class mt extends _0x1a323e{['afterInit'](){const _0x5c0c82=this['editor'];_0x5c0c82['plugins']['has']('MentionEditing')&&_0x5c0c82['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class pt extends _0x1a323e{['afterInit'](){const _0x38cff8=this['editor'];if(!_0x38cff8['plugins']['has']('MergeFieldsEditing'))return;const _0x4dc8c9=_0x38cff8['plugins']['get']('TrackChangesEditing'),_0x3df75=_0x38cff8['locale'];_0x4dc8c9['enableCommand']('insertMergeField'),_0x4dc8c9['enableCommand']('insertMergeFieldBlock'),_0x4dc8c9['enableCommand']('insertMergeFieldImage'),_0x4dc8c9['descriptionFactory']['registerElementLabel']('mergeField',_0x432634=>o(_0x3df75,'ELEMENT_MERGE_FIELD',_0x432634)),_0x4dc8c9['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x259277=>o(_0x3df75,'ELEMENT_MERGE_FIELD',_0x259277)),_0x4dc8c9['descriptionFactory']['registerDescriptionCallback'](_0x1186f9=>{if('insertion'!=_0x1186f9['type']&&'deletion'!=_0x1186f9['type'])return;const _0x1a912d=_0x1186f9['getContainedElement']();if(null==_0x1a912d)return;const _0x1ae29e=_0x38cff8['plugins']['get']('MergeFieldsEditing');let _0x4f9585;switch(_0x1ae29e['getMergeFieldType'](_0x1a912d)){case null:return;case'image':{const _0x341464=_0x1ae29e['unwrapAffixes'](_0x1a912d['getAttribute']('src'));_0x4f9585=_0x1ae29e['getLabel'](_0x341464)||_0x341464;break;}default:{const _0x25ac51=_0x1a912d['getAttribute']('id');_0x4f9585=_0x1ae29e['getLabel'](_0x25ac51)||_0x25ac51;break;}}return'insertion'==_0x1186f9['type']?{'type':'insertion','content':o(_0x3df75,'*Insert:*\x20%0','\x22'+_0x4f9585+'\x22\x20'+o(_0x3df75,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3df75,'*Remove:*\x20%0','\x22'+_0x4f9585+'\x22\x20'+o(_0x3df75,'ELEMENT_MERGE_FIELD'))};});}}class wt extends _0x1a323e{['afterInit'](){const _0x473722=this['editor'],_0x39edc4=_0x473722['plugins']['get']('TrackChangesEditing');_0x473722['plugins']['has']('MultiLevelList')&&(_0x39edc4['enableDefaultAttributesIntegration']('multiLevelList'),_0x39edc4['registerBlockAttribute']('listMarkerStyle'),_0x39edc4['descriptionFactory']['registerDescriptionCallback'](_0x2da22e=>this['handleDescriptions'](_0x2da22e)));}['handleDescriptions'](_0xd1a8aa){const _0x14ef99=this['editor']['locale'],{data:_0x46b20c}=_0xd1a8aa,_0x4d057f={'type':'format','content':''};if(_0x46b20c&&'listMarkerStyle'==_0x46b20c['key']){if(!_0x46b20c['oldValue'])return{'type':'format','content':o(_0x14ef99,'*Set\x20format:*\x20%0',o(_0x14ef99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46b20c['newValue']+')'};if(!_0x46b20c['newValue']){let _0x1bd036=_0xd1a8aa['head'];for(;_0x1bd036;){if(_0x1bd036['data']&&'listType'==_0x1bd036['data']['key']&&_0x1bd036['data']['newValue'])return _0x4d057f;_0x1bd036=_0x1bd036['next'];}return{'type':'format','content':o(_0x14ef99,'*Remove\x20format:*\x20%0',o(_0x14ef99,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x46b20c['oldValue']+')'};}}}}class kt extends _0x1a323e{['afterInit'](){const _0x5ea4aa=this['editor'];if(!_0x5ea4aa['plugins']['has']('PageBreakEditing'))return;_0x5ea4aa['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x45503d=_0x5ea4aa['plugins']['get']('TrackChangesEditing'),_0x99cb32=_0x5ea4aa['locale'];_0x45503d['descriptionFactory']['registerElementLabel']('pageBreak',_0x4bce08=>o(_0x99cb32,'ELEMENT_PAGE_BREAK',_0x4bce08));}}class bt extends _0x1a323e{['afterInit'](){const _0x3613c9=this['editor'];if(!_0x3613c9['plugins']['has']('Paragraph'))return;const _0x49fe2e=_0x3613c9['locale'],_0x9bb88d=_0x3613c9['plugins']['get']('TrackChangesEditing');_0x9bb88d['descriptionFactory']['registerElementLabel']('paragraph',_0x3e3ca5=>o(_0x49fe2e,'ELEMENT_PARAGRAPH',_0x3e3ca5)),_0x9bb88d['enableDefaultAttributesIntegration']('paragraph'),_0x9bb88d['enableCommand']('insertParagraph'),_0x3613c9['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3613c9),{'priority':'highest'}),_0x3613c9['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2e6509,_0x518621,_0xefb80)=>{_0xefb80['options']['showSuggestionHighlights']&&nr(_0x3613c9,{'showActiveMarker':!0x1})(_0x2e6509,_0x518621,_0xefb80);},{'priority':'highest'});const _0x2139bb=_0x9bb88d['descriptionFactory'];_0x2139bb['registerDescriptionCallback'](_0x3b0906=>{if('insertion'!==_0x3b0906['type'])return;const {start:_0x14546a,end:_0x267a74}=_0x3b0906['getFirstRange']();if(!_0x14546a['isTouching'](_0x267a74)||!_0x14546a['nodeAfter'])return;const _0x35b930=_0x3613c9['model']['schema'],_0x590886=_0x14546a['nodeAfter'];return _0x35b930['isBlock'](_0x590886)&&!_0x35b930['isLimit'](_0x590886)&&_0x35b930['checkChild'](_0x590886,'$text')?{'type':'insertion','content':o(_0x49fe2e,'*Insert:*\x20%0',_0x2139bb['getItemLabel'](_0x590886,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2af685=this['editor'],_0x15b1a3=_0x2af685['locale'];_0x2af685['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x15b06e=>{if('formatBlock'!=_0x15b06e['type'])return;const {data:_0x581a44}=_0x15b06e;return _0x581a44&&'paragraph'==_0x581a44['commandName']?{'type':'format','content':o(_0x15b1a3,'*Change\x20to:*\x20%0',o(_0x15b1a3,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x152885,{showActiveMarker:_0x26c62d=!0x0}={}){return(_0x51baf9,_0x2e80de,_0x302a3d)=>{const _0x564431=_0x152885['plugins']['get']('TrackChangesEditing'),_0x5c6077=_0x2e80de['markerRange']['start'],_0x25ecb6=_0x2e80de['markerRange']['end'],_0x5482f2=_0x152885['model']['schema'];if(!_0x5c6077['isTouching'](_0x25ecb6)||!_0x5c6077['nodeAfter'])return;const _0x307a5b=_0x5c6077['nodeAfter'];if(_0x5482f2['isBlock'](_0x307a5b)&&!_0x5482f2['isLimit'](_0x307a5b)&&_0x5482f2['checkChild'](_0x307a5b,'$text')){if(!_0x302a3d['consumable']['consume'](_0x2e80de['markerRange'],_0x51baf9['name']))return;const {authorId:_0x20698d}=_0x564431['_splitMarkerName'](_0x2e80de['markerName']),_0x33d719=_0x302a3d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x20698d}),_0x1af0f6=_0x302a3d['mapper']['toViewPosition'](_0x25ecb6);_0x26c62d&&_0x564431['activeMarkers']['includes'](_0x2e80de['markerName'])&&_0x302a3d['writer']['addClass']('ck-suggestion-marker--active',_0x33d719),_0x302a3d['writer']['insert'](_0x1af0f6,_0x33d719),_0x302a3d['mapper']['bindElementToMarker'](_0x33d719,_0x2e80de['markerName']);}};}class yt extends _0x1a323e{['afterInit'](){const _0x43d2ee=this['editor'];if(!_0x43d2ee['plugins']['has']('RemoveFormatEditing'))return;_0x43d2ee['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x48e98b=this['editor'];_0x48e98b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x19894f=>{if('formatBlock'!=_0x19894f['type']&&'formatInline'!=_0x19894f['type'])return;const {data:_0x1c5d3c}=_0x19894f;return _0x1c5d3c&&'removeFormat'==_0x1c5d3c['commandName']?{'type':'format','content':o(_0x48e98b['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class jt extends _0x1a323e{['afterInit'](){const _0xa63e4f=this['editor'];if(!_0xa63e4f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2eb6bf=_0xa63e4f['plugins']['get']('TrackChangesEditing');_0x2eb6bf['enableCommand']('goToPreviousRestrictedEditingException'),_0x2eb6bf['enableCommand']('goToNextRestrictedEditingException');const _0x10fd7e=_0xa63e4f['plugins']['get']('RestrictedEditingModeEditing');_0x10fd7e['enableCommand']('trackChanges'),_0x10fd7e['enableCommand']('acceptSuggestion'),_0x10fd7e['enableCommand']('discardSuggestion'),_0x10fd7e['enableCommand']('acceptAllSuggestions'),_0x10fd7e['enableCommand']('discardAllSuggestions'),_0x10fd7e['enableCommand']('acceptSelectedSuggestions'),_0x10fd7e['enableCommand']('discardSelectedSuggestions');}}class St extends _0x1a323e{static get['requires'](){return[_0x518d6a];}['init'](){const _0x108e97=this['editor'],_0x3643ce=_0x108e97['plugins']['get']('TrackChangesEditing');_0x3643ce['enableCommand']('shiftEnter'),_0x108e97['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',je(_0x108e97),{'priority':'high'}),_0x108e97['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',je(_0x108e97),{'priority':'high'}),_0x108e97['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x50223a,_0x1cf478,_0x48a51d)=>{_0x48a51d['options']['showSuggestionHighlights']&&je(_0x108e97,{'showActiveMarker':!0x1})(_0x50223a,_0x1cf478,_0x48a51d);}),_0x3643ce['descriptionFactory']['registerElementLabel']('softBreak',_0x28529d=>o(_0x108e97['locale'],'ELEMENT_LINE_BREAK',_0x28529d));}}function je(_0xf8367a,{showActiveMarker:_0xfbe546=!0x0}={}){return(_0x3d74e0,_0x4cb430,_0x4d08c4)=>{const _0x13558f=_0xf8367a['plugins']['get']('TrackChangesEditing');if(!_0x4d08c4['consumable']['test'](_0x4cb430['markerRange'],_0x3d74e0['name']))return;const _0x151cd6=_0xf8367a['model'];for(const _0x16f4ac of _0x4cb430['markerRange']['getItems']()){if(!_0x16f4ac['is']('element','softBreak'))continue;const _0x4ecffd='deletion'==_0x4cb430['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x41bbc9}=_0x13558f['_splitMarkerName'](_0x4cb430['markerName']),_0x6625db=_0x4d08c4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ecffd,'data-author-id':_0x41bbc9}),_0x389adf=_0x4d08c4['mapper']['toViewPosition'](_0x151cd6['createPositionBefore'](_0x16f4ac));_0xfbe546&&_0x13558f['activeMarkers']['includes'](_0x4cb430['markerName'])&&_0x4d08c4['writer']['addClass']('ck-suggestion-marker--active',_0x6625db),_0x4d08c4['writer']['insert'](_0x389adf,_0x6625db),_0x4d08c4['mapper']['bindElementToMarker'](_0x6625db,_0x4cb430['markerName']);}};}class At extends _0x1a323e{['afterInit'](){const _0x5c0f9f=this['editor'],_0x3b3750=_0x5c0f9f['model'],_0x39faae=_0x5c0f9f['locale'];if(!_0x5c0f9f['plugins']['has']('StandardEditingModeEditing'))return;const _0xba5305=_0x5c0f9f['plugins']['get']('TrackChangesEditing'),_0x56bc0d='restrictedEditingException',_0x1c7cc7=_0x5c0f9f['commands']['get'](_0x56bc0d);_0xba5305['enableCommand'](_0x56bc0d,(_0x1e86bb,_0x1a49d3={})=>{const _0x15a872=_0x3b3750['document']['selection'];if(_0x15a872['isCollapsed'])return void _0x1e86bb(_0x1a49d3);const _0x3e629a=void 0x0!==_0x1a49d3['forceValue']?_0x1a49d3['forceValue']:!_0x1c7cc7['value'];_0x3b3750['change'](()=>{const _0x5599d2=Array['from'](_0x15a872['getRanges']());for(const _0x4d7265 of _0x5599d2){const _0xa02453=_0x3e629a?[_0x4d7265]:io(_0x56bc0d,_0x4d7265,_0x3b3750);for(const _0x52549d of _0xa02453)_0xba5305['markInlineFormat'](_0x52549d,{'commandName':_0x56bc0d,'commandParams':[{'forceValue':_0x3e629a}]});}});}),_0xba5305['descriptionFactory']['registerDescriptionCallback'](_0x32bb24=>{if('formatBlock'!=_0x32bb24['type']&&'formatInline'!=_0x32bb24['type'])return;const {data:_0x3e2af1}=_0x32bb24;return _0x3e2af1&&_0x3e2af1['commandName']==_0x56bc0d?_0x3e2af1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39faae,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x39faae,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class It extends _0x1a323e{['afterInit'](){const _0x2df48e=this['editor'];if(!_0x2df48e['plugins']['has']('Style')||!_0x2df48e['plugins']['has']('DataSchema'))return;const _0x323147=_0x2df48e['plugins']['get']('TrackChangesEditing'),_0x21e938=_0x2df48e['locale'],_0x2a4a01=_0x2df48e['config']['get']('style')||{},_0x1faf77=_0x2df48e['plugins']['get']('GeneralHtmlSupport'),_0x5a50d9=_0x2df48e['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2df48e['plugins']['get']('DataSchema'),_0x2a4a01['definitions']);_0x323147['enableDefaultAttributesIntegration']('style');const _0x2813b7=new Set();for(const _0x2eea2f of _0x5a50d9['block']){const _0x1f1032=_0x1faf77['getGhsAttributeNameForElement'](_0x2eea2f['element']);_0x2813b7['add'](_0x1f1032);}const _0x535241=new Set();for(const _0x13a7fc of _0x5a50d9['inline']){const _0x19566d=_0x1faf77['getGhsAttributeNameForElement'](_0x13a7fc['element']);_0x535241['add'](_0x19566d);for(const _0xc4edb5 of _0x13a7fc['ghsAttributes'])_0x535241['add'](_0xc4edb5);}for(const _0x503752 of _0x2813b7)_0x323147['registerBlockAttribute'](_0x503752),_0x323147['descriptionFactory']['registerAttributeLabel'](_0x503752,o(_0x21e938,'FORMAT_STYLE'));for(const _0x278cc0 of _0x535241)_0x323147['registerInlineAttribute'](_0x278cc0),_0x323147['descriptionFactory']['registerAttributeLabel'](_0x278cc0,o(_0x21e938,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3dff3a=this['editor'],_0x303389=_0x3dff3a['locale'];_0x3dff3a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xf00e0a=>{if('formatBlock'!=_0xf00e0a['type']&&'formatInline'!=_0xf00e0a['type'])return;const {data:_0xf1be3b}=_0xf00e0a;return _0xf1be3b&&'style'===_0xf1be3b['commandName']?_0xf1be3b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x303389,'*Set\x20format:*\x20%0',_0xf1be3b['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x303389,'*Remove\x20format:*\x20%0',_0xf1be3b['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class vt extends _0x1a323e{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2baeca){super(_0x2baeca),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x88a8c8=this['editor'],_0x279dab=_0x88a8c8['model']['document']['selection'];if(!_0x88a8c8['plugins']['has']('TableEditing'))return;const _0x11d209=_0x88a8c8['locale'],_0x4f443d=_0x88a8c8['plugins']['get']('TrackChangesEditing'),_0xd1371c=_0x88a8c8['plugins']['get']('TableUtils');_0x4f443d['descriptionFactory']['registerElementLabel']('table',_0x189ef2=>o(_0x11d209,'ELEMENT_TABLE',_0x189ef2)),this['_setupColumnsRowsFixing'](),_0x4f443d['enableCommand']('insertTable'),_0x4f443d['enableCommand']('selectTableRow'),_0x4f443d['enableCommand']('selectTableColumn');for(const _0x54bf83 of['insertTableRowAbove','insertTableRowBelow']){const _0x3ccf96=_0x88a8c8['commands']['get'](_0x54bf83);_0x4f443d['enableCommand'](_0x54bf83,_0x2783a2=>{_0x88a8c8['model']['change'](_0x238fbd=>{_0x2783a2();const _0x3b9a81='above'===_0x3ccf96['order'],_0x52dd82=_0xd1371c['getSelectionAffectedTableCells'](_0x279dab),_0x53b91e=_0xd1371c['getRowIndexes'](_0x52dd82),_0x4a1e2d=_0x3b9a81?_0x53b91e['first']-0x1:_0x53b91e['last']+0x1,_0x1412d2=_0x52dd82[0x0]['findAncestor']('table'),_0x2c5abb=_0xd1371c['createTableWalker'](_0x1412d2,{'startRow':_0x4a1e2d,'endRow':_0x4a1e2d}),_0x2278b9=Array['from'](_0x2c5abb)['map'](_0x26b47d=>_0x238fbd['createRangeOn'](_0x26b47d['cell']));_0x4f443d['markMultiRangeInsertion'](_0x2278b9,'tableRow');});});}for(const _0x1d6103 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3a47ec=_0x88a8c8['commands']['get'](_0x1d6103);_0x4f443d['enableCommand'](_0x1d6103,_0x16590f=>{_0x88a8c8['model']['change'](_0x44b047=>{_0x16590f();const _0x16a861='left'===_0x3a47ec['order'],_0x21c8ce=_0xd1371c['getSelectionAffectedTableCells'](_0x279dab),_0x5d9668=_0xd1371c['getColumnIndexes'](_0x21c8ce),_0x1bbc25=_0x16a861?_0x5d9668['first']-0x1:_0x5d9668['last']+0x1,_0x152f33=_0x21c8ce[0x0]['findAncestor']('table'),_0x1c7c58=_0xd1371c['createTableWalker'](_0x152f33,{'startRow':0x0,'column':_0x1bbc25,'includeAllSlots':!0x1}),_0x243a6b=Array['from'](_0x1c7c58)['map'](_0x4be265=>_0x44b047['createRangeOn'](_0x4be265['cell']));_0x4f443d['markMultiRangeInsertion'](_0x243a6b,'tableColumn');});});}for(const _0x27419b of['removeTableRow','removeTableColumn']){const _0x1664b5=_0x27419b['substr'](0xb),_0x1bf1cb=_0x1664b5['toLowerCase'](),_0x596468=_0x1bf1cb['substr'](0x0,0x3)+'span',_0x32ab3b='table'+_0x1664b5,_0x5c3db0='min'+_0x1664b5,_0xc895e1='max'+_0x1664b5;_0x4f443d['enableCommand'](_0x27419b,()=>{_0x88a8c8['model']['change'](_0x3b0b6f=>{const _0x26b806=_0xd1371c['getSelectionAffectedTableCells'](_0x279dab),_0x27185a=_0x26b806[0x0]['findAncestor']('table');let _0x2859c4;if('removeTableRow'==_0x27419b){const _0x4ea06e=_0xd1371c['getRowIndexes'](_0x26b806);_0x2859c4={'startRow':_0x4ea06e['first'],'endRow':_0x4ea06e['last'],'includeAllSlots':!0x0};}else{const _0x1b7201=_0xd1371c['getColumnIndexes'](_0x26b806);_0x2859c4={'startColumn':_0x1b7201['first'],'endColumn':_0x1b7201['last'],'includeAllSlots':!0x0};}const _0x2e6c2c=_0xd1371c['createTableWalker'](_0x27185a,_0x2859c4),_0xbfc497=Array['from'](_0x2e6c2c)['map'](({cell:_0x40e045})=>_0x40e045),_0x79c154=Ne(_0xbfc497['filter'](_0x13dfa2=>_0x13dfa2['hasAttribute'](_0x596468))),_0x3cdcfd=Ne(_0xbfc497['filter'](_0x75a252=>!_0x75a252['hasAttribute'](_0x596468)))['map'](_0x30aeab=>_0x3b0b6f['createRangeOn'](_0x30aeab)),_0x33f5c8=_0x4f443d['markMultiRangeDeletion'](_0x3cdcfd,_0x32ab3b);if(_0x33f5c8&&('tableRow'==_0x33f5c8['subType']||'tableColumn'==_0x33f5c8['subType'])){const _0x36c885=this['_getSuggestionCoords'](_0x33f5c8);for(const _0x2e2225 of _0x79c154){const _0x301229=_0x3b0b6f['createRangeOn'](_0x2e2225),_0x13c687=_0xd1371c['getCellLocation'](_0x2e2225),_0x2a73df=_0x2e2225['getAttribute'](_0x596468)-0x1,_0x57457f=_0x36c885[_0x5c3db0],_0x7c12e2=_0x36c885[_0xc895e1];_0x57457f<=_0x13c687[_0x1bf1cb]&&_0x13c687[_0x1bf1cb]+_0x2a73df<=_0x7c12e2&&_0x33f5c8['addRange'](_0x301229);}}});});}function _0x1bc6a3(_0x5bee16){const _0x3e9a42=Array['from'](_0x279dab['getRanges']())['map'](_0x1d9c21=>_0x586eec['fromRange'](_0x1d9c21));_0x88a8c8['model']['change'](_0x2fb032=>{const _0x2122f0=_0x2fb032['batch'];_0x5bee16=_0x5bee16['filter'](_0x2b0aa4=>'$graveyard'!=_0x2b0aa4['root']['rootName']),_0x2fb032['setSelection'](_0x5bee16),_0x88a8c8['commands']['get']('removeTableRow')['refresh'](),_0x88a8c8['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x88a8c8['model']['enqueueChange'](()=>{_0x88a8c8['model']['enqueueChange'](_0x2122f0,_0x2d758d=>{const _0x1f90a1=_0x3e9a42['filter'](_0x5b0694=>'$graveyard'!=_0x5b0694['root']['rootName']);_0x1f90a1['length']>0x0&&_0x2d758d['setSelection'](_0x1f90a1);for(const _0x4929be of _0x3e9a42)_0x4929be['detach']();});});});}function _0x1f71f2(_0x80708b){_0x88a8c8['model']['change'](_0x4ea63b=>{const _0x3d9754=Array['from'](_0x279dab['getRanges']())['map'](_0x379f7c=>_0x586eec['fromRange'](_0x379f7c)),_0x3d526a=[];for(const _0x5867ef of _0x80708b)for(const _0xe21706 of _0x5867ef['getItems']({'shallow':!0x0}))_0x3d526a['push'](_0xe21706);for(const _0x9c3983 of _0x3d526a)'$graveyard'!=_0x9c3983['root']['rootName']&&(_0x4ea63b['setSelection'](_0x4ea63b['createPositionAt'](_0x9c3983,0x0)),_0x88a8c8['commands']['get']('removeTableColumn')['refresh'](),_0x88a8c8['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x32a48a=_0x3d9754['filter'](_0x3bb087=>'$graveyard'!=_0x3bb087['root']['rootName']);_0x32a48a['length']>0x0&&_0x4ea63b['setSelection'](_0x32a48a);for(const _0x116ae2 of _0x3d9754)_0x116ae2['detach']();});}function _0x1c9281(_0x56627f,_0x51fa0c){return _0x51fa0c['every'](_0x471013=>_0x56627f['some'](_0x2d55b4=>_0x2d55b4['end']['isEqual'](_0x471013['start'])||_0x471013['end']['isEqual'](_0x2d55b4['start'])));}function _0x1a0bb3(_0x15813c,_0x228d16){return!_0x15813c['some'](_0x30e9ae=>_0x228d16['some'](_0x3bbed4=>_0x30e9ae['isIntersecting'](_0x3bbed4)))&&_0x15813c['some'](_0x569674=>_0x228d16['some'](_0x100643=>_0x569674['end']['isTouching'](_0x100643['start'])));}_0x88a8c8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x16e0df,_0x7ab80c,_0x368334)=>{if(!_0x368334['options']['showSuggestionHighlights'])return;const _0x3f82e7=_0x7ab80c['item'];if(!_0x3f82e7)return;const _0x36471a=_0x368334['mapper']['toViewElement'](_0x3f82e7);function _0x564dd4(_0x4dd0d2){return Array['isArray'](_0x4dd0d2)?_0x4dd0d2:[_0x4dd0d2];}_0x36471a&&'tableCell'===_0x3f82e7['name']&&_0x3b1400(_0x36471a,_0x368334['writer'],(_0x5874ab,_0x20ee2b,_0x509ccc)=>_0x509ccc['addClass'](_0x564dd4(_0x20ee2b['classes']),_0x5874ab),(_0x1f62ec,_0x39be44,_0x36c5c7)=>_0x36c5c7['removeClass'](_0x564dd4(_0x39be44['classes']),_0x1f62ec));},{'priority':'highest'}),_0x4f443d['descriptionFactory']['registerDescriptionCallback'](_0x9053ea=>{if('insertion'!=_0x9053ea['type']&&'deletion'!=_0x9053ea['type'])return;const _0x494814=_0x9053ea['getContainedElement']();if(null!=_0x494814&&_0x494814['is']('element','table')){if('insertion'==_0x9053ea['type']){const _0x1719ad=_0x9053ea['getItems']()['filter'](_0x44fae8=>_0x44fae8['is']('$textProxy'))['map'](_0x75f2b8=>_0x75f2b8['data']);if(_0x1719ad['length'])return{'type':'insertion','content':o(_0x11d209,'*Insert:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1719ad['join']('\x20')+'\x22'))};}if('deletion'==_0x9053ea['type']){const _0xc97b37=_0x9053ea['getItems']()['filter'](_0x32dc6e=>_0x32dc6e['is']('$textProxy'))['map'](_0xd2a05=>_0xd2a05['data']);if(_0xc97b37['length'])return{'type':'deletion','content':o(_0x11d209,'*Remove:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xc97b37['join']('\x20')+'\x22'))};}}}),_0x4f443d['descriptionFactory']['registerDescriptionCallback'](_0x1ef645=>{if('tableRow'==_0x1ef645['subType']){const _0x187e6b=_0x1ef645['getItems']()['filter'](_0x37d011=>_0x37d011['is']('$textProxy'))['map'](_0x4990a2=>_0x4990a2['data']),_0x37e6d1=this['_getSuggestionCoords'](_0x1ef645),_0x5c38ba=_0x37e6d1['maxRow']-_0x37e6d1['minRow']+0x1;if('insertion'==_0x1ef645['type'])return _0x187e6b['length']?{'type':'insertion','content':o(_0x11d209,'*Insert:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5c38ba,'\x22'+_0x187e6b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11d209,'*Insert:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_ROW',_0x5c38ba))};if('deletion'==_0x1ef645['type'])return _0x187e6b['length']?{'type':'deletion','content':o(_0x11d209,'*Remove:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5c38ba,'\x22'+_0x187e6b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11d209,'*Remove:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_ROW',_0x5c38ba))};}if('tableColumn'==_0x1ef645['subType']){const _0x48b773=_0x1ef645['getItems']()['filter'](_0x592750=>_0x592750['is']('$textProxy'))['map'](_0x2e1786=>_0x2e1786['data']),_0x2c2069=this['_getSuggestionCoords'](_0x1ef645),_0x2e9c92=_0x2c2069['maxColumn']-_0x2c2069['minColumn']+0x1;if('insertion'==_0x1ef645['type'])return _0x48b773['length']?{'type':'insertion','content':o(_0x11d209,'*Insert:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9c92,'\x22'+_0x48b773['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x11d209,'*Insert:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_COLUMN',_0x2e9c92))};if('deletion'==_0x1ef645['type'])return _0x48b773['length']?{'type':'deletion','content':o(_0x11d209,'*Remove:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2e9c92,'\x22'+_0x48b773['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x11d209,'*Remove:*\x20%0',o(_0x11d209,'ELEMENT_TABLE_COLUMN',_0x2e9c92))};}}),_0x4f443d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1bc6a3),_0x4f443d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1bc6a3),_0x4f443d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x1f71f2),_0x4f443d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x1f71f2),_0x4f443d['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1c9281),_0x4f443d['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1c9281),_0x4f443d['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x1a0bb3),_0x4f443d['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x1a0bb3);}['_acceptFormatSuggestionCallbackFactory'](){const _0x266788=this['editor'],_0x196102=_0x266788['model']['document']['selection'];return(_0x466fa9,_0x26321e)=>{_0x266788['model']['change'](_0x516ca5=>{const {commandName:_0x46086b,commandParams:_0x3b9902}=_0x26321e;let _0x2586ee=_0x466fa9[0x0]['end']['nodeBefore'];_0x3b9902&&_0x3b9902[0x0]&&!0x1===_0x3b9902[0x0]['forceValue']&&(_0x2586ee=_0x466fa9[0x0]['start']['nodeAfter']);const _0x5f0091=_0x516ca5['createRangeIn'](_0x2586ee);if('$graveyard'==_0x5f0091['root']['rootName'])return;const _0x33ac36=Array['from'](_0x196102['getRanges']())['map'](_0x35d24e=>_0x586eec['fromRange'](_0x35d24e));_0x516ca5['setSelection'](_0x5f0091),_0x266788['commands']['get'](_0x46086b)['refresh'](),_0x3b9902['push']({'forceDefaultExecution':!0x0}),_0x266788['execute'](_0x46086b,..._0x3b9902);const _0x5d79ec=_0x33ac36['filter'](_0x1dd97d=>'$graveyard'!=_0x1dd97d['root']['rootName']);_0x5d79ec['length']>0x0&&_0x516ca5['setSelection'](_0x5d79ec);for(const _0x3b5872 of _0x33ac36)_0x3b5872['detach']();});};}['_getCoordsForCells'](_0x49ac5b){const _0xbd81b1=this['editor']['plugins']['get']('TableUtils');let _0x201ace=Number['MAX_SAFE_INTEGER'],_0x3af8ba=Number['MIN_SAFE_INTEGER'],_0x215e56=Number['MAX_SAFE_INTEGER'],_0x294c00=Number['MIN_SAFE_INTEGER'];for(const _0x2250a1 of _0x49ac5b){if('$graveyard'==_0x2250a1['root']['rootName'])continue;const {row:_0x3604aa,column:_0x5a7666}=_0xbd81b1['getCellLocation'](_0x2250a1),_0x8b2222=_0x2250a1['hasAttribute']('rowspan')?_0x2250a1['getAttribute']('rowspan')-0x1:0x0,_0x41c6bc=_0x2250a1['hasAttribute']('colspan')?_0x2250a1['getAttribute']('colspan')-0x1:0x0;_0x201ace=_0x3604aa<_0x201ace?_0x3604aa:_0x201ace,_0x3af8ba=_0x3604aa+_0x8b2222>_0x3af8ba?_0x3604aa+_0x8b2222:_0x3af8ba,_0x215e56=_0x5a7666<_0x215e56?_0x5a7666:_0x215e56,_0x294c00=_0x5a7666+_0x41c6bc>_0x294c00?_0x5a7666+_0x41c6bc:_0x294c00;}return{'minRow':_0x201ace,'maxRow':_0x3af8ba,'minColumn':_0x215e56,'maxColumn':_0x294c00};}['_setupColumnsRowsFixing'](){const _0x4bb4f1=this['editor'],_0x4f5c87=_0x4bb4f1['plugins']['get']('TrackChangesEditing'),_0x16b74e=_0x4bb4f1['plugins']['get']('TableUtils');_0x4bb4f1['model']['document']['on']('change:data',()=>{const _0x58b624=Array['from'](_0x4bb4f1['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3c6129,data:_0x4531cb}of _0x58b624){const {group:_0x5815b8,id:_0x55feee,subType:_0x2285ac}=_0x4f5c87['_splitMarkerName'](_0x3c6129);if('suggestion'!=_0x5815b8)continue;if(null!=_0x4531cb['oldRange'])continue;const _0x4aa921=_0x4f5c87['getSuggestion'](_0x55feee);this['_tablePostFixingSubtypes']['includes'](_0x2285ac)&&this['_tableSuggestions']['add'](_0x4aa921);}},{'priority':'low'});const _0x345031=(_0x37c3e4,_0x2780c6)=>{let _0x5715a8=!0x1;const _0x43f827=_0x2780c6['createRangeOn'](_0x37c3e4),_0x4589cf=_0x37c3e4['findAncestor']('table'),_0x199207=_0x16b74e['getCellLocation'](_0x37c3e4);for(const _0x4f9786 of this['_tableSuggestions']){const _0x54571d=_0x4f9786['subType'],_0x13c1da=_0x54571d['startsWith']('tablePaste'),_0xd373c5=_0x54571d['substr'](_0x13c1da?0xa:0x5),_0x1d4c3d=_0xd373c5['toLowerCase'](),_0x21457d=_0x1d4c3d['substr'](0x0,0x3)+'span',_0x2f1077='min'+_0xd373c5,_0x229817='max'+_0xd373c5;if(!_0x4f9786['isInContent'])continue;if(_0x4589cf!=_0x4f9786['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x4f9786['isIntersectingWithRange'](_0x43f827))continue;const _0x2fa5e9=_0x37c3e4['hasAttribute'](_0x21457d)?_0x37c3e4['getAttribute'](_0x21457d)-0x1:0x0,_0x11e7ac=this['_getSuggestionCoords'](_0x4f9786),_0x327712=_0x11e7ac[_0x2f1077],_0x11f9c9=_0x11e7ac[_0x229817];_0x327712<=_0x199207[_0x1d4c3d]&&_0x199207[_0x1d4c3d]+_0x2fa5e9<=_0x11f9c9&&(_0x4f9786['addRange'](_0x43f827),_0x5715a8=!0x0);}return _0x5715a8;};_0x4bb4f1['model']['document']['registerPostFixer'](_0x141ef7=>{let _0x100297=!0x1;for(const _0x1feeac of _0x4bb4f1['model']['document']['differ']['getChanges']())if('insert'==_0x1feeac['type']){if('tableRow'==_0x1feeac['name']){for(const _0x27e447 of _0x1feeac['position']['nodeAfter']['getChildren']())_0x100297=_0x100297||_0x345031(_0x27e447,_0x141ef7);}else'tableCell'==_0x1feeac['name']&&(_0x100297=_0x100297||_0x345031(_0x1feeac['position']['nodeAfter'],_0x141ef7));}return _0x100297;});}['_getSuggestionCoords'](_0x565846){return this['_getCoordsForCells'](_0x565846['getRanges']()['map'](_0x555e7a=>_0x555e7a['start']['nodeAfter']));}}function Ne(_0x42a03c){return Array['from'](new Set(_0x42a03c)['values']());}class _t extends _0x1a323e{static get['requires'](){return[vt];}['afterInit'](){const _0x3b49e8=this['editor'],_0x3c9fe7=_0x3b49e8['model']['document']['selection'],_0x173936=_0x3b49e8['locale'];if(!_0x3b49e8['plugins']['has']('TableEditing'))return;const _0x535451=_0x3b49e8['plugins']['get']('TrackChangesEditing'),_0x26ca29=_0x3b49e8['plugins']['get']('TableUtils'),_0x12d9c1=_0x3b49e8['plugins']['get'](vt);_0x12d9c1['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x535451['enableCommand']('mergeTableCells',()=>{const _0x575ebd=_0x26ca29['getSelectionAffectedTableCells'](_0x3b49e8['model']['document']['selection']);_0x3b49e8['model']['change'](()=>{_0x535451['markMultiRangeBlockFormat'](_0x575ebd,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x3b49e8['commands']['get']('mergeTableCells')['on']('execute',(_0x257994,_0x267e96)=>{_0x3b49e8['commands']['get']('trackChanges')['value']&&(_0x267e96['length']>0x0&&_0x267e96[_0x267e96['length']-0x1]&&_0x267e96[_0x267e96['length']-0x1]['forceDefaultExecution']||_0x535451['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x257994['stop']());},{'priority':'highest'});for(const _0x4ad1bd of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x6963a=_0x3b49e8['commands']['get'](_0x4ad1bd);_0x535451['enableCommand'](_0x4ad1bd,()=>{const _0x32c4e8=_0x3b49e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x39ee51=>_0x39ee51['is']('element','tableCell')),_0x39e381=_0x6963a['value'];_0x3b49e8['model']['change'](()=>{_0x535451['markMultiRangeBlockFormat']([_0x32c4e8,_0x39e381],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x116e64 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x540311=_0x3b49e8['commands']['get'](_0x116e64);_0x535451['enableCommand'](_0x116e64,()=>{const _0x4615e0=_0x26ca29['getSelectionAffectedTableCells'](_0x3b49e8['model']['document']['selection'])[0x0],_0x5dd320=_0x4615e0['findAncestor']('table'),{column:_0x4517b4,row:_0x2b5095}=_0x26ca29['getCellLocation'](_0x4615e0);let _0x5ab5f8=[];if('horizontally'==_0x540311['direction']){const _0x1b67f6=_0x26ca29['createTableWalker'](_0x5dd320,{'startRow':_0x2b5095,'endRow':_0x2b5095,'includeAllSlots':!0x0});_0x5ab5f8=Array['from'](_0x1b67f6)['map'](_0x455797=>_0x455797['cell']);}else{const _0xfbe54=_0x26ca29['createTableWalker'](_0x5dd320,{'column':_0x4517b4,'includeAllSlots':!0x0});_0x5ab5f8=Array['from'](_0xfbe54)['map'](_0x32e14d=>_0x32e14d['cell']);}_0x3b49e8['model']['change'](_0x20f9cf=>{_0x535451['markBlockFormat'](_0x20f9cf['createRangeOn'](_0x4615e0),{'commandName':_0x116e64,'commandParams':[]},_0x5ab5f8,_0x116e64);});});}_0x535451['descriptionFactory']['registerDescriptionCallback'](_0x25860e=>{if('formatBlock'!=_0x25860e['type']&&'formatInline'!=_0x25860e['type'])return;const {data:_0x101a15}=_0x25860e;return _0x101a15&&'mergeTableCells'==_0x101a15['commandName']?{'type':'format','content':o(_0x173936,'*Merge\x20cells*')}:void 0x0;}),_0x535451['descriptionFactory']['registerDescriptionCallback'](_0x3937fa=>{if('formatBlock'!=_0x3937fa['type']&&'formatInline'!=_0x3937fa['type'])return;const {data:_0x578e8b}=_0x3937fa;return _0x578e8b?'splitTableCellVertically'==_0x578e8b['commandName']?{'type':'format','content':o(_0x173936,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x578e8b['commandName']?{'type':'format','content':o(_0x173936,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x5d9686=_0x12d9c1['_acceptFormatSuggestionCallbackFactory']();for(const _0x4602d0 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x535451['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4602d0,'accept',_0x5d9686);for(const _0x13ac10 of['splitTableCellVertically','splitTableCellHorizontally'])_0x535451['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x13ac10,'accept',_0x5d9686);_0x535451['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x489d63=>{_0x3b49e8['model']['change'](_0x243279=>{const _0x2de1cc=Array['from'](_0x3c9fe7['getRanges']())['map'](_0x18c465=>_0x586eec['fromRange'](_0x18c465));_0x243279['setSelection'](_0x489d63),_0x3b49e8['commands']['get']('mergeTableCells')['refresh'](),_0x3b49e8['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x485b53=_0x2de1cc['filter'](_0x4877c3=>'$graveyard'!=_0x4877c3['root']['rootName']);_0x485b53['length']>0x0&&_0x243279['setSelection'](_0x485b53);for(const _0x5cbeb6 of _0x2de1cc)_0x5cbeb6['detach']();});});for(const _0xd19b56 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x28988a=_0x3b49e8['commands']['get'](_0xd19b56);_0x28988a['on']('set:isEnabled',(_0x58963f,_0x542e6d,_0x13f8e5)=>{if(_0x13f8e5){const _0x3007a1=_0x3b49e8['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x24523f=>_0x24523f['is']('element','tableCell'));this['_areMergableCells'](_0x28988a['value'],_0x3007a1)||(_0x58963f['return']=!0x1,_0x58963f['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x5a9788=this['editor']['commands']['get']('mergeTableCells'),_0x19d9ae=this['editor']['plugins']['get']('TableUtils');if(!_0x5a9788['isEnabled'])return!0x1;const _0x1c3a3d=_0x19d9ae['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3155e5 of _0x1c3a3d)for(const _0x5dba1a of _0x1c3a3d)if(_0x3155e5!=_0x5dba1a&&!this['_areMergableCells'](_0x3155e5,_0x5dba1a))return!0x1;return!0x0;}['_areMergableCells'](_0x5dca8c,_0x5c06b6){const _0x571763=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1b730d=this['editor']['model']['createRangeOn'](_0x5dca8c),_0x18d3d8=this['editor']['model']['createRangeOn'](_0x5c06b6),_0x301fcc=new Set(),_0x322a38=new Set();for(const _0x2289b1 of _0x571763['getSuggestions']())if(('insertion'==_0x2289b1['type']||'deletion'==_0x2289b1['type']||'mergeTableCells'==_0x2289b1['subType'])&&_0x2289b1['isInContent']){for(const _0x65969d of _0x2289b1['getRanges']())_0x65969d['containsRange'](_0x1b730d,!0x0)&&_0x301fcc['add'](_0x2289b1['type']+':'+_0x2289b1['author']['id']),_0x65969d['containsRange'](_0x18d3d8,!0x0)&&_0x322a38['add'](_0x2289b1['type']+':'+_0x2289b1['author']['id']);}if(_0x301fcc['size']!=_0x322a38['size'])return!0x1;for(const _0x1ec7ab of _0x301fcc)if(!_0x322a38['has'](_0x1ec7ab))return!0x1;return!0x0;}}class Ct extends _0x1a323e{static get['requires'](){return[vt];}['afterInit'](){const _0x2bfc43=this['editor'];if(!_0x2bfc43['plugins']['has']('TableEditing'))return;const _0xca5fa8=_0x2bfc43['locale'],_0x444549=_0x2bfc43['plugins']['get']('TrackChangesEditing');_0x444549['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x444549['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x444549['registerBlockAttribute']('headingRows'),_0x444549['registerBlockAttribute']('headingColumns'),_0x444549['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0xca5fa8,'FORMAT_HEADER_ROW')),_0x444549['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0xca5fa8,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x45894f=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb1e4a7=this['editor']['plugins']['get']('TableUtils'),_0x488e72=this['editor']['plugins']['get'](vt)['_acceptFormatSuggestionCallbackFactory']();function _0x4bc3b1({showActiveMarker:_0x44e492=!0x0,setDataAttribute:_0xff3193=!0x0}={}){return(_0x15787c,_0x35352e,_0x1dc3ff)=>{const {type:_0x49dede,id:_0x132af8}=_0x45894f['_splitMarkerName'](_0x35352e['markerName']),_0x1d4e54=_0x45894f['getSuggestion'](_0x132af8),_0x4b12f3=_0x1d4e54['data'];if('formatBlock'!=_0x1d4e54['type']||!_0x4b12f3||'setTableColumnHeader'!=_0x4b12f3['commandName'])return;if(_0x35352e['item'])return void _0x15787c['stop']();if(!_0x1dc3ff['consumable']['consume'](_0x35352e['markerRange'],_0x15787c['name']))return;const _0x3c10bf=_0x35352e['markerRange']['start']['nodeAfter'],_0x2601f1=_0x35352e['markerRange']['end']['nodeBefore'],_0x47d19f=_0x3c10bf['parent']['parent'],{column:_0x3c05e3}=_0xb1e4a7['getCellLocation'](_0x3c10bf),{column:_0x4ee3b6}=_0xb1e4a7['getCellLocation'](_0x2601f1);for(let _0x526e2b=_0x3c05e3;_0x526e2b<=_0x4ee3b6;_0x526e2b++){const _0x3105aa=_0xb1e4a7['createTableWalker'](_0x47d19f,{'column':_0x526e2b,'includeAllSlots':!0x1});for(const _0x3576f2 of _0x3105aa){const _0x584263=_0x3576f2['cell'],_0x77a891=_0x1dc3ff['mapper']['toViewElement'](_0x584263);_0x1dc3ff['writer']['addClass']('ck-suggestion-marker-'+_0x49dede,_0x77a891),_0xff3193&&_0x1dc3ff['writer']['setAttribute']('data-suggestion',_0x132af8,_0x77a891),_0x1dc3ff['mapper']['bindElementToMarker'](_0x77a891,_0x35352e['markerName']),_0x44e492&&(_0x45894f['activeMarkers']['includes'](_0x35352e['markerName'])?_0x1dc3ff['writer']['addClass']('ck-suggestion-marker--active',_0x77a891):_0x1dc3ff['writer']['removeClass']('ck-suggestion-marker--active',_0x77a891));}}};}_0x45894f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x488e72),_0x45894f['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x488e72),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4bc3b1(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x45ffab,_0x4739be,_0x897c76)=>{_0x897c76['options']['showSuggestionHighlights']&&_0x4bc3b1({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x45ffab,_0x4739be,_0x897c76);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x17f983,_0x5adb41,_0x155a30)=>{const {type:_0x59a337,id:_0x447e54}=_0x45894f['_splitMarkerName'](_0x5adb41['markerName']),_0x4b7871=_0x45894f['getSuggestion'](_0x447e54),_0x38587e=_0x4b7871['data'];if('formatBlock'!=_0x4b7871['type']||!_0x38587e||'setTableColumnHeader'!=_0x38587e['commandName'])return;const _0x5bcddb=_0x155a30['mapper']['markerNameToElements'](_0x5adb41['markerName']);if(_0x5bcddb){for(const _0x197813 of _0x5bcddb)_0x155a30['writer']['removeClass']('ck-suggestion-marker-'+_0x59a337,_0x197813),_0x155a30['writer']['removeClass']('ck-suggestion-marker--active',_0x197813),_0x155a30['writer']['removeAttribute']('data-suggestion',_0x197813),_0x155a30['mapper']['unbindElementFromMarkerName'](_0x197813,_0x5adb41['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4e8c48=this['editor'],_0x1efc74=_0x4e8c48['locale'];function _0x169fc0(_0x1b5f0b){return{'type':'format','content':o(_0x1efc74,'*Format:*\x20%0',_0x1b5f0b)};}_0x4e8c48['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x290a2a=>{if('formatBlock'!=_0x290a2a['type'])return;const {data:_0x3bed28}=_0x290a2a;if(_0x3bed28){if('setTableRowHeader'==_0x3bed28['commandName']){const _0x25a7b3=_0x3bed28['commandParams'][0x0]['forceValue'];return _0x169fc0(o(_0x1efc74,_0x25a7b3?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3bed28['commandName']){const _0x2f47c8=_0x3bed28['commandParams'][0x0]['forceValue'];return _0x169fc0(o(_0x1efc74,_0x2f47c8?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Be=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],xe=Object['fromEntries'](Be['map'](_0x66ca6d=>[_0x66ca6d,null]));class Nt extends _0x1a323e{static get['requires'](){return[vt];}['afterInit'](){const _0x39dd34=this['editor'];if(!_0x39dd34['plugins']['has']('TableClipboard'))return;const _0x27376e=_0x39dd34['plugins']['get']('TrackChangesEditing'),_0x432cd1=_0x39dd34['plugins']['get']('TableUtils'),_0x54a53f=_0x39dd34['plugins']['get'](vt),_0x9dd115=_0x39dd34['plugins']['get']('TableClipboard');_0x54a53f['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x39dd34['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x39dd34['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0xaad12=null;_0x39dd34['model']['on']('insertContent',(_0x2df389,_0x238496)=>{const [_0x578b34,_0x4c3759]=_0x238496,_0x4effbe=_0x238496[_0x238496['length']-0x1];_0x4effbe&&_0x4effbe['forceDefaultExecution']||_0x27376e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x2b87a4,_0x5d3f34,_0x1d79ab,_0xa8c13f,_0x50a42f){if(_0x5d3f34&&!_0x5d3f34['is']('documentSelection'))return!0x1;const _0x2e5add=_0x50a42f['getTableIfOnlyTableInContent'](_0x2b87a4,_0x1d79ab);if(!_0x2e5add||!Ue(_0x2e5add,void 0x0,_0xa8c13f))return!0x1;const _0x1a1beb=_0xa8c13f['getSelectionAffectedTableCells'](_0x1d79ab['document']['selection']);if(!_0x1a1beb['length'])return!0x1;const _0x2ab3b3=_0x1a1beb[0x0]['findAncestor']('table'),_0xb95118=_0xa8c13f['getRowIndexes'](_0x1a1beb),_0x342904=_0xa8c13f['getColumnIndexes'](_0x1a1beb),_0x221a1d={'startRow':_0xb95118['first'],'endRow':_0xb95118['last'],'startColumn':_0x342904['first'],'endColumn':_0x342904['last']};return 0x1==_0x1a1beb['length']&&(_0x221a1d['endRow']+=_0xa8c13f['getRows'](_0x2e5add)-0x1,_0x221a1d['endColumn']+=_0xa8c13f['getColumns'](_0x2e5add)-0x1),Ue(_0x2ab3b3,_0x221a1d,_0xa8c13f);}(_0x578b34,_0x4c3759,_0x39dd34['model'],_0x432cd1,_0x9dd115)&&(_0x2df389['stop'](),_0xaad12={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x39dd34['model']['change'](()=>{_0x39dd34['model']['insertContent'](_0x238496[0x0],_0x238496[0x1],_0x238496[0x2],{'forceDefaultExecution':!0x0});const _0x125a03=_0x1a89e5(),{rowInsertionRanges:_0x253d16,columnInsertionRanges:_0x346ba9,insertionRanges:_0x3185d9,deletionRanges:_0x5bf5f8,cells:_0x338350}=_0xaad12;_0x253d16['length']&&_0x27376e['markMultiRangeInsertion'](_0x253d16,'tablePasteRow',{'tablePasteChainId':_0x125a03}),_0x346ba9['length']&&_0x27376e['markMultiRangeInsertion'](_0x346ba9,'tablePasteColumn',{'tablePasteChainId':_0x125a03}),_0x3185d9['length']&&(_0x27376e['markMultiRangeInsertion'](_0x3185d9,'tablePaste',{'tablePasteChainId':_0x125a03,'skipNestingCheck':!0x0}),_0x3185d9['forEach'](_0x3344c1=>_0x3344c1['detach']?.())),_0x5bf5f8['length']&&(_0x27376e['markMultiRangeDeletion'](_0x5bf5f8,'tablePaste',{'tablePasteChainId':_0x125a03,'skipNestingCheck':!0x0}),_0x5bf5f8['forEach'](_0x162deb=>_0x162deb['detach']?.()));const _0x5a9c0f=_0x27376e['markMultiRangeBlockFormat'](_0x338350['map'](({element:_0x4f73e5})=>_0x4f73e5),{'formatGroupId':_0x1a89e5()},[],'tablePasteCell',{'tablePasteChainId':_0x125a03});if(_0x5a9c0f){const _0x3a5097=_0x5a9c0f['getMarkers'](),_0x48dc24=[];for(const {element:_0x24df3f,attributes:_0x18be8a}of _0x338350){if(!_0x18be8a)continue;const _0x1d52cf=_0x39dd34['model']['createRangeOn'](_0x24df3f),_0x2caec1=_0x3a5097['find'](_0x53fa5a=>_0x53fa5a['getRange']()['isEqual'](_0x1d52cf));_0x2caec1&&_0x48dc24['push']([_0x2caec1['name'],_0x18be8a]);}_0x48dc24['length']&&_0x5a9c0f['setAttribute']('markerAttributes',Object['fromEntries'](_0x48dc24));}_0xaad12=null;}));},{'priority':_0x550a89['high']+0xa}),_0x39dd34['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x385220,_0x41bfaf)=>{const [_0x141c4c,_0x118579,,_0x5da4cb]=_0x41bfaf;if(!_0xaad12)return;_0x385220['stop']();const _0x265222=_0x141c4c['cell'],_0x490516=_0x118579,_0x2baca4=Oe(_0x265222),_0x5c1f5a=Oe(_0x490516);_0x385220['return']=_0x265222;let _0x47d69d=null,_0x1ea195=null;if(_0x5c1f5a||_0x2baca4){if(_0x2baca4&&!_0x5c1f5a){_0x5da4cb['remove'](_0x265222['getChild'](0x0));for(const _0x55239f of Array['from'](_0x490516['getChildren']()))_0x5da4cb['insert'](_0x55239f,_0x265222,'end');const _0x4bcea2=_0xaad12['rowInsertionIndexes']['includes'](_0x141c4c['row']),_0x32f327=_0xaad12['columnInsertionIndexes']['includes'](_0x141c4c['column']);_0x4bcea2||_0x32f327||(_0x47d69d=_0x586eec['fromRange'](_0x5da4cb['createRangeIn'](_0x265222)));}else _0x5c1f5a&&!_0x2baca4&&(_0x1ea195=_0x5da4cb['createRangeIn'](_0x265222));}else{const _0x33df6e=_0x5da4cb['createElement']('tableCellSuggestion'),_0x1c78be=_0x5da4cb['createElement']('tableCellSuggestion');_0x5da4cb['wrap'](_0x5da4cb['createRangeIn'](_0x265222),_0x1c78be),_0x5da4cb['insert'](_0x33df6e,_0x265222,0x0);for(const _0x2d6e9f of Array['from'](_0x490516['getChildren']()))_0x5da4cb['insert'](_0x2d6e9f,_0x33df6e,'end');_0x47d69d=_0x586eec['fromRange'](_0x5da4cb['createRangeOn'](_0x33df6e)),_0x1ea195=_0x586eec['fromRange'](_0x5da4cb['createRangeOn'](_0x1c78be));}const _0x3a2751=Array['from'](_0x490516['getAttributes']())['filter'](([_0x33d50b])=>Be['includes'](_0x33d50b));_0xaad12['cells']['push']({'element':_0x265222,'attributes':_0x3a2751['length']?Object['fromEntries'](_0x3a2751):null}),_0x47d69d&&_0xaad12['insertionRanges']['push'](_0x47d69d),_0x1ea195&&_0xaad12['deletionRanges']['push'](_0x1ea195);},{'priority':'high'}),_0x432cd1['on']('insertColumns',(_0x4cb503,_0x2faeab)=>{const [_0x5241c5,_0x8192ed={}]=_0x2faeab;if(!_0xaad12)return;const _0x2eb8e8=_0x8192ed['at']||0x0,_0x492bfd=_0x8192ed['columns']||0x1;_0xaad12['columnInsertionIndexes']=new Array(_0x492bfd)['fill'](_0x2eb8e8)['map']((_0x1c5304,_0x45e7a5)=>_0x1c5304+_0x45e7a5);for(const {cell:_0x2c2866}of _0x432cd1['createTableWalker'](_0x5241c5,{'startColumn':_0x2eb8e8,'endColumn':_0x2eb8e8+_0x492bfd-0x1}))_0xaad12['columnInsertionRanges']['push'](_0x39dd34['model']['createRangeOn'](_0x2c2866));},{'priority':'low'}),_0x432cd1['on']('insertRows',(_0x174d5d,_0x4bc764)=>{const [_0xdfb199,_0x161a11={}]=_0x4bc764;if(!_0xaad12)return;const _0x27ccc1=_0x161a11['at']||0x0,_0x56708f=_0x161a11['rows']||0x1;_0xaad12['rowInsertionIndexes']=new Array(_0x56708f)['fill'](_0x27ccc1)['map']((_0x5af58f,_0xca0264)=>_0x5af58f+_0xca0264);for(const {cell:_0x58944b}of _0x432cd1['createTableWalker'](_0xdfb199,{'startRow':_0x27ccc1,'endRow':_0x27ccc1+_0x56708f-0x1}))_0xaad12['rowInsertionRanges']['push'](_0x39dd34['model']['createRangeOn'](_0x58944b));},{'priority':'low'}),_0x27376e['descriptionFactory']['registerDescriptionCallback'](_0x4ddc36=>{if(_0x4ddc36['subType']&&_0x4ddc36['subType']['startsWith']('tablePaste'))return _0x4ddc36['previous']?{}:{'type':'insertion','content':o(_0x39dd34['locale'],'*Replace\x20table\x20cells*')};});const _0xd06254=()=>!0x1;for(const _0x14af45 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x27376e['_suggestionFactory']['registerCustomCallback']('insertion',_0x14af45,'join',_0xd06254),_0x27376e['_suggestionFactory']['registerCustomCallback']('deletion',_0x14af45,'join',_0xd06254),_0x27376e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x14af45,'join',_0xd06254);_0x27376e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xd06254),_0x27376e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x4a419e,_0x417ed2,_0x18acfc)=>{const _0x2055d0=_0x4a419e['map'](_0x39c560=>_0x39c560['getContainedElement']())['filter'](_0x510bf5=>_0x510bf5),_0x10163b=new Map(_0x2055d0['map'](_0x489825=>[_0x489825,null]));if(_0xaad12){for(const {element:_0x188d88,attributes:_0x48729c}of _0xaad12['cells'])_0x48729c&&_0x10163b['set'](_0x188d88,_0x48729c);}else{if(_0x18acfc&&_0x18acfc['markerAttributes'])for(const [_0x5d7793,_0x3714ac]of Object['entries'](_0x18acfc['markerAttributes'])){const _0x3586d1=_0x39dd34['model']['markers']['get'](_0x5d7793),_0x53b8b8=_0x3586d1?_0x3586d1['getRange']()['getContainedElement']():null;_0x53b8b8&&_0x10163b['set'](_0x53b8b8,_0x3714ac);}}_0x39dd34['model']['change'](_0x20ce8b=>{for(const [_0x3f0862,_0x31c9b8]of _0x10163b)_0x20ce8b['setAttributes']({...xe,..._0x31c9b8},_0x3f0862);});});const _0x4bbb8c=(_0x17602c,_0x205d66)=>{_0x27376e['_suggestionFactory']['registerCustomCallback'](_0x17602c,'tablePaste',_0x205d66,(_0x385f96,_0x44be12,_0x13a0c0)=>{_0x39dd34['model']['change'](_0x56ca68=>{const _0x5020c5=[];for(const _0x541d4b of _0x385f96){const _0x3c2f6d=_0x541d4b['start']['nodeAfter'];_0x3c2f6d['is']('element','tableCellSuggestion')&&_0x5020c5['push'](_0x3c2f6d);}_0x27376e['_suggestionFactory']['getSuggestionCallback'](_0x17602c,null,_0x205d66)(_0x385f96,_0x44be12,_0x13a0c0);for(const _0x185fca of _0x5020c5)'$graveyard'!=_0x185fca['root']['rootName']&&_0x56ca68['unwrap'](_0x185fca);});});};_0x4bbb8c('insertion','accept'),_0x4bbb8c('insertion','discard'),_0x4bbb8c('deletion','accept'),_0x4bbb8c('deletion','discard'),_0x27376e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x2be54b=>{const _0x5e24b0=_0x2be54b['map'](_0x8d10e9=>_0x8d10e9['getContainedElement']()),_0x2f92bb=_0x5e24b0[0x0]['findAncestor']('table'),{minRow:_0x3957df,maxRow:_0x3c3b8e}=_0x54a53f['_getCoordsForCells'](_0x5e24b0);_0x432cd1['removeRows'](_0x2f92bb,{'at':_0x3957df,'rows':_0x3c3b8e-_0x3957df+0x1});}),_0x27376e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b1330=>{const _0xc7df26=_0x4b1330['map'](_0x39781a=>_0x39781a['getContainedElement']()),_0x32abfd=_0xc7df26[0x0]['findAncestor']('table'),{minColumn:_0xbfa346,maxColumn:_0x44fc36}=_0x54a53f['_getCoordsForCells'](_0xc7df26);_0x432cd1['removeColumns'](_0x32abfd,{'at':_0xbfa346,'columns':_0x44fc36-_0xbfa346+0x1});});const _0x4ac378=(_0x2f14c9,_0x5c5344)=>{if(!_0x5c5344['subType']||!_0x5c5344['subType']['startsWith']('tablePaste'))return;const _0x5b9cb3=_0x5c5344['attributes']['tablePasteChainId'],_0x332c5d=_0x27376e['getSuggestions']()['filter'](_0x41539b=>_0x41539b['isInContent']&&_0x41539b['attributes']&&_0x41539b['attributes']['tablePasteChainId']==_0x5b9cb3);_0x332c5d['length']&&_0x5c5344['getAllAdjacentSuggestions']()['length']!=_0x332c5d['length']&&_0x332c5d['reduce']((_0x4e96d8,_0xea1dd7)=>(_0x4e96d8['next']=_0xea1dd7,_0xea1dd7['previous']=_0x4e96d8,_0xea1dd7));};function _0x22f0df(_0x1ca72f,_0x5bf474=!0x0){const {id:_0x63cbdf,authorId:_0x122f6e}=_0x27376e['_splitMarkerName'](_0x1ca72f['markerName']),_0x53ee74=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5b340c=_0x27376e['activeMarkers']['includes'](_0x1ca72f['markerName']);return _0x5b340c&&_0x53ee74['push']('ck-suggestion-marker--active'),{'classes':_0x53ee74,'attributes':{'data-suggestion':_0x63cbdf,'data-author-id':_0x122f6e},'priority':_0x5b340c&&_0x5bf474?0xbc2:0xbb8};}_0x27376e['on']('suggestionLoaded',_0x4ac378,{'priority':'high'}),_0x27376e['on']('suggestionUnloaded',_0x4ac378,{'priority':'high'}),_0x39dd34['model']['document']['registerPostFixer'](()=>{let _0x10bf81=!0x1;const _0x373a87=Array['from'](_0x39dd34['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22a425,data:_0x5a63d3}of _0x373a87){const {group:_0x1ce864,type:_0x3fd43b,id:_0x4a8991}=_0x27376e['_splitMarkerName'](_0x22a425);if('suggestion'!=_0x1ce864||'deletion'!=_0x3fd43b||_0x5a63d3['oldRange'])continue;if(!_0x27376e['hasSuggestion'](_0x4a8991))continue;const _0x5c61f5=_0x27376e['getSuggestion'](_0x4a8991)['getRanges'](),_0x56de20=_0x39dd34['plugins']['get']('Users')['me'];for(const _0x59c672 of _0x27376e['getSuggestions']()){if(!_0x59c672['isInContent']||_0x59c672['author']!=_0x56de20)continue;if('formatBlock'!=_0x59c672['type']||'tablePasteCell'!=_0x59c672['subType'])continue;if(_0x59c672['getRanges']()['every'](_0x3f1e37=>_0x5c61f5['some'](_0x543bf0=>_0x543bf0['containsRange'](_0x3f1e37,!0x0)))){for(const _0x3d3547 of _0x59c672['getAllAdjacentSuggestions']())_0x3d3547['isInContent']&&(_0x3d3547['discard'](),_0x10bf81=!0x0);}}}return _0x10bf81;}),_0x39dd34['model']['document']['registerPostFixer'](_0x504b96=>{const _0x1d5435=_0x39dd34['commands']['get']('redo');if(!_0x1d5435||!_0x1d5435['_createdBatches']['has'](_0x504b96['batch']))return!0x1;let _0x12bfed=!0x1;const _0x4ee952=_0x39dd34['plugins']['get']('Users')['me'],_0x2a1ec1=_0x39dd34['model']['document']['differ']['getChanges'](),_0x42ab22=Array['from'](_0x39dd34['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x41f8ad,data:_0x5f4575})=>{const {group:_0x2c356b,subType:_0x419c73,authorId:_0x29e96b}=_0x27376e['_splitMarkerName'](_0x41f8ad);return'suggestion'==_0x2c356b&&'tablePaste'==_0x419c73&&_0x29e96b==_0x4ee952['id']&&!_0x5f4575['oldRange'];});for(const _0x2143cf of _0x2a1ec1){if('insert'!=_0x2143cf['type']||'tableCellSuggestion'!=_0x2143cf['name']||0x1!=_0x2143cf['length'])continue;const _0x237d09=_0x504b96['createRange'](_0x2143cf['position'],_0x2143cf['position']['getShiftedBy'](0x1));if(!_0x42ab22['find'](({data:_0x322542})=>_0x322542['newRange']['isEqual'](_0x237d09))){for(const {name:_0x275039,data:_0xd7546c}of _0x42ab22)if(_0x237d09['containsRange'](_0xd7546c['newRange'])){_0x504b96['updateMarker'](_0x275039,{'range':_0x237d09}),_0x12bfed=!0x0;break;}}}return _0x12bfed;}),_0x39dd34['model']['document']['registerPostFixer'](_0xdab311=>{let _0x580c76=!0x1;const _0x58adb6=_0x39dd34['plugins']['get']('Users')['me'],_0x7f81fe=_0x27376e['getSuggestions']()['filter'](_0x19e1ea=>_0x19e1ea['isInContent']&&_0x19e1ea['author']==_0x58adb6),_0xca33b3=new Set(),_0x2ce090=new Set();for(const _0x1a096b of _0x7f81fe)if('tablePaste'==_0x1a096b['subType'])for(const _0xc2fb54 of _0x1a096b['getMarkers']()){const _0x7ce123=_0xc2fb54['getRange']()['getContainedElement']();if(_0x7ce123){if(_0x7ce123['is']('element','tableCellSuggestion')&&Oe(_0x7ce123)){_0x1a096b['removeMarker'](_0xc2fb54['name']),_0xca33b3['add'](_0x7ce123),_0x580c76=!0x0;const _0xd34809=_0x7ce123['nextSibling'],_0x4757b0=_0x7ce123['previousSibling'],_0x18761a=_0xd34809&&_0xd34809['is']('element','tableCellSuggestion'),_0x48fa84=_0x4757b0&&_0x4757b0['is']('element','tableCellSuggestion');_0x18761a&&!_0xca33b3['has'](_0xd34809)&&_0x2ce090['add'](_0xd34809),_0x48fa84&&!_0xca33b3['has'](_0x4757b0)&&_0x2ce090['add'](_0x4757b0);}else _0x7ce123['is']('element','paragraph')&&_0x7ce123['isEmpty']&&(_0x1a096b['removeMarker'](_0xc2fb54['name']),_0x580c76=!0x0);}}else{if('tablePasteCell'==_0x1a096b['subType']){if(!_0x1a096b['attributes']||!_0x1a096b['attributes']['tablePasteChainId'])continue;const _0x4d10a0=_0x1a096b['attributes']['markerAttributes'];if(_0x4d10a0&&Object['keys'](_0x4d10a0)['length'])continue;const _0xe1aac3=_0x1a096b['attributes']['tablePasteChainId'];let _0x19fd2b=!0x0,_0x533c6a=!0x0;for(const _0x56205a of _0x7f81fe)if(_0x56205a['subType']&&_0x56205a['subType']['startsWith']('tablePaste')){if(!_0x56205a['attributes']['tablePasteChainId']){_0x533c6a=!0x1;break;}if(_0x56205a['id']!=_0x1a096b['id']&&_0x56205a['attributes']['tablePasteChainId']==_0xe1aac3){_0x19fd2b=!0x1;break;}}_0x533c6a&&_0x19fd2b&&(_0x1a096b['removeMarkers'](),_0x580c76=!0x0);}}for(const _0x33f2dd of _0xca33b3)_0xdab311['remove'](_0x33f2dd);for(const _0x286db3 of _0x2ce090)_0xdab311['unwrap'](_0x286db3);return _0x580c76;}),_0x39dd34['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x1b9964=>_0x22f0df(_0x1b9964),'converterPriority':'high'}),_0x39dd34['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1fb2c0,_0x13c8fa)=>_0x13c8fa['options']['showSuggestionHighlights']?_0x22f0df(_0x1fb2c0,!0x1):null,'converterPriority':'high'});const _0x5f4b1a=_0x39dd34['editing']['view'];this['listenTo'](_0x5f4b1a['document'],'clipboardOutput',(_0x47d792,_0x1211f7)=>{const _0x1f5921=[];for(const _0x4bfde8 of _0x5f4b1a['createRangeIn'](_0x1211f7['content'])['getItems']())_0x4bfde8['is']('element','suggestion-td')&&_0x1f5921['push'](_0x4bfde8);_0x5f4b1a['change'](_0x1146c0=>{for(const _0x28e91f of _0x1f5921)_0x1146c0['move'](_0x1146c0['createRangeIn'](_0x28e91f),_0x1146c0['createPositionBefore'](_0x28e91f)),_0x1146c0['remove'](_0x28e91f);});});}}function Oe(_0x14e47f){if(_0x14e47f['isEmpty'])return!0x0;const _0x5dbd3a=_0x14e47f['getChild'](0x0);return _0x5dbd3a['is']('element','paragraph')&&_0x5dbd3a['isEmpty'];}function Ue(_0x403c07,_0xaa6b3e={},_0x4996be){for(const {isAnchor:_0xbe01d3,cellHeight:_0x15a149,cellWidth:_0x3b8042}of _0x4996be['createTableWalker'](_0x403c07,{'includeAllSlots':!0x0,..._0xaa6b3e}))if(!_0xbe01d3||0x1!=_0x15a149||0x1!=_0x3b8042)return!0x1;return!0x0;}class Dt extends _0x1a323e{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x13de63=this['editor']['plugins']['get']('TrackChangesEditing');_0x13de63['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x13de63['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x13de63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x13de63['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x13de63['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x13de63['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x3f7394,_0x4631e7){const _0x3ca03f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f0d75=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x583509=_0x4631e7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x2632b7=_0x5f0d75['getColumnGroupElement'](_0x583509);let _0x1c4d0a=_0x2632b7?_0x5f0d75['getTableColumnsWidths'](_0x2632b7):null,_0x53f370=_0x583509['getAttribute']('tableWidth')||null;const _0x184028=_0x4631e7['tableWidth']||_0x53f370,_0x4701e7=_0x4631e7['columnWidths']||_0x1c4d0a,_0x2785fe=this['editor']['plugins']['get']('Users')['me'];for(const _0xa19e40 of _0x3ca03f['getSuggestions']()){const _0x3a2536=_0xa19e40['getContainedElement']();if('resizeTable'===_0xa19e40['subType']&&_0x3a2536===_0x583509){_0xa19e40['author']!==_0x2785fe&&_0xa19e40['discard']();const _0x440e60=_0xa19e40['data']['commandParams'];_0x53f370=_0x440e60[0x0]['tableWidth'],_0x1c4d0a=_0x440e60[0x0]['columnWidths'];break;}}_0x3f7394({'table':_0x583509,'tableWidth':_0x184028,'columnWidths':_0x4701e7}),_0x3ca03f['markBlockFormat'](_0x583509,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x53f370,'columnWidths':_0x1c4d0a}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x248f5f){if('formatBlock'!=_0x248f5f['type']&&'formatInline'!=_0x248f5f['type'])return;const {data:_0xd1db69}=_0x248f5f;if(_0xd1db69&&'resizeTable'===_0xd1db69['formatGroupId']){const _0x2816ed='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2816ed)};}}}class Mt extends _0x1a323e{['afterInit'](){const _0x45b24e=this['editor'];_0x45b24e['plugins']['has']('Template')&&_0x45b24e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class $t extends _0x1a323e{['afterInit'](){const _0x2f6080=this['editor'];if(!_0x2f6080['commands']['get']('insertTableOfContents'))return;_0x2f6080['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4d05ed=_0x2f6080['plugins']['get']('TrackChangesEditing'),_0x5d36b7=_0x2f6080['locale'];_0x4d05ed['descriptionFactory']['registerElementLabel']('tableOfContents',_0x1080c9=>o(_0x5d36b7,'ELEMENT_TABLE_OF_CONTENTS',_0x1080c9));}}class Bt extends _0x1a323e{['afterInit'](){const _0x2ee7ff=this['editor'];if(!_0x2ee7ff['plugins']['has']('Title'))return;const _0x54d306=_0x2ee7ff['plugins']['get']('TrackChangesEditing');_0x54d306['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2ee7ff['locale'],'ELEMENT_TITLE')),_0x2ee7ff['model']['document']['registerPostFixer'](_0x1d5eda=>{let _0x529e15=!0x1;const _0x40e39c=Array['from'](_0x2ee7ff['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x388720,data:_0x49a38d}of _0x40e39c){const {group:_0x46215f}=_0x54d306['_splitMarkerName'](_0x388720);if('suggestion'!==_0x46215f||!_0x49a38d['newRange'])continue;const _0x52fb48=_0x49a38d['newRange'],_0x234b7b=_0x52fb48['end']['nodeBefore'];if(!_0x234b7b||!_0x234b7b['is']('element','title-content'))continue;if(!_0x52fb48['start']['isTouching'](_0x52fb48['end']))continue;const _0x47023c=_0x2ee7ff['model']['schema']['getNearestSelectionRange'](_0x52fb48['end'],'forward');if(_0x47023c&&_0x47023c['isCollapsed']){const _0x564825=_0x1d5eda['createRange'](_0x52fb48['start'],_0x47023c['start']);_0x564825['isEqual'](_0x52fb48)||(_0x1d5eda['updateMarker'](_0x388720,{'range':_0x564825}),_0x529e15=!0x0);}_0x529e15||(_0x1d5eda['removeMarker'](_0x388720),_0x529e15=!0x0);}return _0x529e15;});}}class Ot extends _0x1a323e{['afterInit'](){const _0x411b00=this['editor'],_0x40d3dd=_0x411b00['plugins']['get']('TrackChangesEditing');_0x411b00['plugins']['has']('Uploadcare')&&(_0x40d3dd['enableCommand']('uploadcare'),_0x411b00['plugins']['has']('UploadcareImageEdit')&&(_0x40d3dd['enableCommand']('uploadcareImageEdit'),_0x40d3dd['enableDefaultAttributesIntegration']('uploadcareImageReplace'),_0x40d3dd['registerBlockAttribute']('uploadcareImageId'),_0x40d3dd['descriptionFactory']['registerDescriptionCallback'](_0x2136f9=>{if('attribute'!=_0x2136f9['type'])return;const {data:_0x53aa74}=_0x2136f9;return _0x53aa74&&'uploadcareImageId'==_0x53aa74['key']?{'type':'format','content':''}:void 0x0;})));}}class Rt extends _0x1a323e{['afterInit'](){const _0xc7fdc6=this['editor'],_0x5a0193=_0xc7fdc6['plugins']['get']('TrackChangesEditing');_0xc7fdc6['plugins']['has']('UndoEditing')&&(_0x5a0193['enableCommand']('undo'),_0x5a0193['enableCommand']('redo'));}}class Tt extends _0x1a323e{static get['requires'](){return[vt];}['afterInit'](){const _0x20db32=this['editor'];if(!_0x20db32['plugins']['has']('TableCaptionEditing'))return;_0x20db32['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class xt extends _0x1a323e{['tableProperties'];['tableCellProperties'];constructor(_0x1981e5){super(_0x1981e5),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 _0x3c5caf=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x6452e1 of this['tableProperties'])_0x3c5caf['enableCommand'](_0x6452e1,(_0x33489f,_0x72feca)=>{const _0x510b0e=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x6452e1,[_0x510b0e],this['tableProperties'],'tableProperties',_0x33489f,_0x72feca);});_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x3c5caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x36feff,_0x5e7a69)=>this['handleDiscardAction'](this['tableProperties'],_0x36feff,_0x5e7a69)),_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x32f14b of this['tableCellProperties'])_0x3c5caf['enableCommand'](_0x32f14b,(_0x1d0b82,_0x200f6d)=>{const _0x4e077b=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x32f14b,_0x4e077b,this['tableCellProperties'],'tableCellProperties',_0x1d0b82,_0x200f6d);});_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x3c5caf['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3a3d70,_0x24a3f8)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3a3d70,_0x24a3f8)),_0x3c5caf['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x3c5caf['descriptionFactory']['registerDescriptionCallback'](_0x32d475=>this['handleSuggestionDescription'](_0x32d475));}['_handlePropertyChange'](_0x12f927,_0x4bc58b,_0x255b18,_0x18af5f,_0x518005,_0x16d99a){const _0x1eed9c=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x16d99a['batch'],()=>{for(const _0x5cd343 of _0x4bc58b){if(this['_getSuggestion'](_0x5cd343,_0x18af5f))_0x518005(_0x16d99a);else{const _0x5175d5={};for(const _0x49445c of _0x255b18){const _0x99d895=_0x5cd343['getAttribute'](_0x49445c);void 0x0!==_0x99d895&&(_0x5175d5[_0x49445c]=_0x99d895);}_0x518005(_0x16d99a),_0x1eed9c['markBlockFormat'](_0x5cd343,{'commandParams':[_0x5175d5]},[],_0x18af5f);}}});}['handleDiscardAction'](_0x41e72f,_0x41ce07,_0x2f0d1b){const _0x5dfeae=_0x41ce07[0x0]['start']['nodeAfter'],_0x34e2c8=_0x2f0d1b['commandParams'][0x0];this['editor']['model']['change'](_0x4be080=>{for(const _0x518b7c of _0x41e72f)void 0x0!==_0x34e2c8[_0x518b7c]?_0x4be080['setAttribute'](_0x518b7c,_0x34e2c8[_0x518b7c],_0x5dfeae):_0x4be080['removeAttribute'](_0x518b7c,_0x5dfeae);});}['handleSuggestionDescription'](_0x4b92c3){if(_0x4b92c3['data'])switch(_0x4b92c3['subType']){case'tableProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20properties')};case'tableCellProperties':return{'type':'format','content':o(this['editor']['locale'],'*Format:*\x20change\x20table\x20cell\x20properties')};}}['_getSuggestion'](_0x287d74,_0x1d734b){const _0x24cc4f=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1d6aba of _0x24cc4f['getSuggestions']({'skipNotAttached':!0x0})){const _0x216b80=_0x1d6aba['getContainedElement']();if(_0x1d6aba['subType']===_0x1d734b&&_0x216b80===_0x287d74)return _0x1d6aba;}return null;}}const m='$elementName';class p extends _0x1a323e{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x568dab,_0x40e225,U,V,G,F,L,H,J,q,z,K,X,Y,Z,tt,nt,it,et,st,ot,at,rt,ct,ut,ft,lt,Q,wt,ht,W,Se,dt,mt,pt,kt,bt,yt,jt,St,At,It,vt,_t,Ct,Tt,Nt,Dt,$t,xt,Mt,Bt,Ot,Rt];}static get['pluginName'](){return'TrackChangesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x557a21){super(_0x557a21),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x15d7d7,_0x25296f,_0x1ac96f,_0x6b770a)=>{this['_model']['change'](()=>{for(const _0x43d244 of[..._0x6b770a,..._0x1ac96f])this['_model']['markers']['has'](_0x43d244)&&_0x557a21['editing']['reconvertMarker'](_0x43d244);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Ut(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x557a21['plugins']['get']('CommentsRepository'),this['_enabledCommands']=new Set(),this['_model']=this['editor']['model'],this['_suggestionState']=new WeakMap(),this['_isForcedDefaultExecutionBlock']=!0x1,this['_blockAttributeKeys']=new Set([m]),this['_inlineAttributeKeys']=new Set(),_0x557a21['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x557a21['config']['get']('trackChanges.trackFormatChanges'),_0x557a21['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x557a21['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x557a21,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements']();}['init'](){const _0x554662=this['editor'],_0x589591=(_0x3d01da,_0x14339d)=>{if('attribute'!=_0x3d01da)return'ck-suggestion-marker-'+_0x3d01da;const _0x125c1f=_0x14339d['split']('|')[0x0];return this['_isBlockAttribute'](_0x125c1f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x554662['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x3ecdb1=>{const {id:_0x34ede2,authorId:_0xd6c011,type:_0x3274b3,subType:_0x5c6d07}=this['_splitMarkerName'](_0x3ecdb1['markerName']),_0x2d2dec=['ck-suggestion-marker',_0x589591(_0x3274b3,_0x5c6d07)];let _0x13a52b=0xbb8;return this['activeMarkers']['includes'](_0x3ecdb1['markerName'])&&(_0x2d2dec['push']('ck-suggestion-marker--active'),_0x13a52b=0xbc2),'deletion'==_0x3274b3&&(_0x13a52b+=0x5),{'classes':_0x2d2dec,'attributes':{'data-suggestion':_0x34ede2,'data-author-id':_0xd6c011},'priority':_0x13a52b};}}),_0x554662['conversion']['for']('dataDowncast')['add'](_0x585fed=>{_0x585fed['on']('addMarker:suggestion',(_0x12e2e7,_0x535398,_0x3708e8)=>{if(!_0x3708e8['options']['showSuggestionHighlights'])return;const _0x340522=_0x535398['item'];if(!_0x340522)return;const _0x5eeb02=_0x3708e8['mapper']['toViewElement'](_0x340522);_0x554662['model']['schema']['isObject'](_0x340522)&&_0x5eeb02&&!_0x5eeb02['getCustomProperty']('widget')&&_0x5eeb02['is']('containerElement')&&_0x4a7e72(_0x5eeb02,_0x3708e8['writer']);},{'priority':'high'});}),_0x554662['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2da37d,_0x3b779b)=>{if(!_0x3b779b['options']['showSuggestionHighlights'])return null;const {type:_0x42866a,subType:_0x632ade}=this['_splitMarkerName'](_0x2da37d['markerName']);return{'classes':['ck-suggestion-marker',_0x589591(_0x42866a,_0x632ade)],'priority':0xbb8};}});const _0x3e722=({showActiveMarkers:_0x16445f=!0x0,isAttributeSuggestion:_0x394e3d=!0x1}={})=>(_0x442047,_0x1f7ff0,_0x30a167)=>{if(!_0x1f7ff0['item'])return;const {id:_0x165425,authorId:_0x20f706}=this['_splitMarkerName'](_0x1f7ff0['markerName']);if(_0x394e3d){const _0x2a89db=this['_suggestions']['get'](_0x165425),_0x5d84c5=this['_getAttributeKey'](_0x2a89db);if(!this['_isBlockAttribute'](_0x5d84c5))return;}if(_0x1f7ff0['item']['is']('selection'))return void _0x30a167['consumable']['consume'](_0x1f7ff0['item'],_0x442047['name']);const _0x18eff4=_0x30a167['mapper']['toViewElement'](_0x1f7ff0['item']);if(_0x1f7ff0['item']['is']('element')&&_0x554662['model']['schema']['isBlock'](_0x1f7ff0['item'])&&!_0x18eff4['getCustomProperty']('addHighlight')){_0x30a167['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x18eff4),_0x30a167['writer']['setAttribute']('data-suggestion',_0x165425,_0x18eff4),_0x30a167['writer']['setAttribute']('data-author-id',_0x20f706,_0x18eff4),_0x30a167['mapper']['bindElementToMarker'](_0x18eff4,_0x1f7ff0['markerName']),_0x16445f&&(this['activeMarkers']['includes'](_0x1f7ff0['markerName'])?_0x30a167['writer']['addClass']('ck-suggestion-marker--active',_0x18eff4):_0x30a167['writer']['removeClass']('ck-suggestion-marker--active',_0x18eff4));for(const _0x803274 of _0x554662['model']['createRangeIn'](_0x1f7ff0['item'])['getItems']())_0x30a167['consumable']['consume'](_0x803274,_0x442047['name']);_0x30a167['consumable']['consume'](_0x1f7ff0['item'],_0x442047['name']);}};_0x554662['conversion']['for']('dataDowncast')['add'](_0x66b66=>{_0x66b66['on']('addMarker:suggestion:formatBlock',(_0x297c6a,_0x43988e,_0x5cc09d)=>{_0x5cc09d['options']['showSuggestionHighlights']&&_0x3e722({'showActiveMarkers':!0x1})(_0x297c6a,_0x43988e,_0x5cc09d);},{'priority':'highest'});}),_0x554662['conversion']['for']('dataDowncast')['add'](_0x449fdc=>{_0x449fdc['on']('addMarker:suggestion:attribute',(_0x1398c1,_0x21e2d8,_0x3541e8)=>{_0x3541e8['options']['showSuggestionHighlights']&&_0x3e722({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1398c1,_0x21e2d8,_0x3541e8);},{'priority':'highest'});}),_0x554662['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x9f1328,_0x556f80)=>_0x556f80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x9f1328['substr'](0xb)}}),_0x554662['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4f3815,{writer:_0x2a8808})=>{let _0x30b6b7='suggestion:'+_0x4f3815['getAttribute']('suggestion-type')+':'+_0x4f3815['getAttribute']('id');return _0x4f3815['getAttribute']('marker-count')&&(_0x30b6b7+=':'+_0x4f3815['getAttribute']('marker-count')),_0x2a8808['createElement']('$marker',{'data-name':_0x30b6b7});}}),_0x554662['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x554662['conversion']['for']('editingDowncast')['add'](_0x1b40a4=>{_0x1b40a4['on']('addMarker:suggestion:formatBlock',_0x3e722(),{'priority':'high'});}),_0x554662['conversion']['for']('editingDowncast')['add'](_0x3eb129=>{_0x3eb129['on']('addMarker:suggestion:attribute',_0x3e722({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x554662['conversion']['for']('editingDowncast')['add'](_0x26db85=>{_0x26db85['on']('removeMarker:suggestion:formatBlock',(_0x3669ca,_0x352e9b,_0x4c4e58)=>{const _0x5ae9ab=_0x4c4e58['mapper']['markerNameToElements'](_0x352e9b['markerName']);if(_0x5ae9ab){for(const _0x347724 of _0x5ae9ab)_0x347724['getCustomProperty']('addHighlight')||(_0x4c4e58['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x347724),_0x4c4e58['writer']['removeAttribute']('data-suggestion',_0x347724),_0x4c4e58['writer']['removeAttribute']('data-author-id',_0x347724),_0x4c4e58['mapper']['unbindElementFromMarkerName'](_0x347724,_0x352e9b['markerName']));}},{'priority':'high'});}),_0x554662['conversion']['for']('editingDowncast')['add'](_0xc7c356=>{_0xc7c356['on']('removeMarker:suggestion:attribute',(_0x41cc9b,_0x51c705,_0x12ac79)=>{const _0x139de7=_0x12ac79['mapper']['markerNameToElements'](_0x51c705['markerName']);if(!_0x139de7)return;const {id:_0x8ba349}=this['_splitMarkerName'](_0x51c705['markerName']),_0x486520=this['_suggestions']['get'](_0x8ba349),_0x41a273=this['_getAttributeKey'](_0x486520);if(this['_isBlockAttribute'](_0x41a273)){for(const _0x120e16 of _0x139de7)_0x120e16['getCustomProperty']('addHighlight')||(_0x12ac79['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x120e16),_0x12ac79['writer']['removeAttribute']('data-suggestion',_0x120e16),_0x12ac79['writer']['removeAttribute']('data-author-id',_0x120e16),_0x12ac79['mapper']['unbindElementFromMarkerName'](_0x120e16,_0x51c705['markerName']));}},{'priority':'high'});}),_0x554662['model']['document']['registerPostFixer'](_0x4f8dc0=>{let _0x66a7bf=!0x1;const _0x3b6ffb=Array['from'](_0x554662['model']['document']['differ']['getChangedMarkers']()),_0x416d24=new Set();for(const {name:_0x103f42,data:_0x5948d9}of _0x3b6ffb){const {group:_0x1814dd,type:_0x47a477,subType:_0x472464,id:_0x101f92}=this['_splitMarkerName'](_0x103f42);if('suggestion'!==_0x1814dd)continue;const _0x27642f=this['_suggestions']['get'](_0x101f92);if(null!=_0x5948d9['newRange']){'formatInline'==_0x47a477&&(_0x66a7bf=_0x66a7bf||Gt(_0x5948d9['newRange'],_0x103f42,_0x4f8dc0,_0x554662['model']['schema']));const _0x3c4593='attribute'==_0x47a477&&this['_isBlockAttribute'](_0x472464['split']('|')[0x0]);if(_0x5948d9['newRange']['isCollapsed']||'$graveyard'==_0x5948d9['newRange']['root']['rootName']||'formatBlock'==_0x47a477&&!Lt(_0x5948d9['newRange'])||_0x3c4593&&!Lt(_0x5948d9['newRange'])||'deletion'==_0x47a477&&!(!Pt(_0x3b0d7d=_0x5948d9['newRange'])&&!function(_0x493d41){return _0x493d41['start']['parent']==_0x493d41['end']['nodeBefore']&&_0x493d41['start']['isAtEnd'];}(_0x3b0d7d)))_0x4f8dc0['removeMarker'](_0x103f42),_0x66a7bf=!0x0;else{if(!_0x27642f||!_0x27642f['isInContent'])continue;if(_0x5948d9['newRange']&&_0x5948d9['oldRange']&&_0x5948d9['newRange']['isEqual'](_0x5948d9['oldRange']))continue;_0x416d24['add'](_0x27642f);}}}var _0x3b0d7d;return _0x416d24['size']>0x0&&(_0x66a7bf=!!this['_joinWithAdjacentSuggestions'](_0x416d24)||_0x66a7bf),_0x66a7bf;}),_0x554662['model']['document']['registerPostFixer'](_0x489bc1=>{let _0x182cf5=!0x1;for(const _0x5d4843 of _0x554662['model']['document']['differ']['getChanges']())if('insert'==_0x5d4843['type'])for(const _0x39ace9 of this['_suggestions']['values']()){if(_0x39ace9['isMultiRange']||!_0x39ace9['isInContent'])continue;const _0x25f52a='formatBlock'==_0x39ace9['type'],_0x222d1d=this['_getAttributeKey'](_0x39ace9),_0x54dea2=_0x222d1d&&this['_isBlockAttribute'](_0x222d1d);if(!_0x25f52a&&!_0x54dea2)continue;const _0x498024=_0x39ace9['getFirstRange']();if(_0x498024['start']['parent']!=_0x498024['end']['parent']&&!_0x498024['end']['isAtEnd']){const _0x1d502e=_0x554662['model']['createPositionAt'](_0x498024['start']['nodeAfter'],'end'),_0x1ca03b=_0x554662['model']['createRange'](_0x498024['start'],_0x1d502e);_0x489bc1['updateMarker'](_0x39ace9['getFirstMarker'](),{'range':_0x1ca03b}),_0x182cf5=!0x0;}}return _0x182cf5;}),_0x554662['model']['document']['registerPostFixer'](_0x194fc4=>this['_processAttributeChanges'](_0x194fc4)),_0x554662['model']['document']['registerPostFixer'](_0x376cbf=>!_0x376cbf['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x376cbf)),_0x554662['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x554662['model']['document']['on']('change:data',(_0x5556d5,_0x20970b)=>{if(!_0x20970b['isLocal']||_0x20970b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2bf1b4=_0x554662['model']['document']['differ']['getChanges']();if(0x0==_0x2bf1b4['length'])return;const _0x40997b=[],_0x27c3a2=_0x2bf1b4['filter'](_0x267c1c=>'attribute'==_0x267c1c['type']),_0x3444a4=_0x2bf1b4['filter'](_0x51734d=>'insert'==_0x51734d['type']&&'$text'!=_0x51734d['name']);for(const _0x58de73 of _0x27c3a2)this['_isRegisteredAttribute'](_0x58de73['attributeKey'])&&_0x40997b['push']({'key':_0x58de73['attributeKey'],'newValue':_0x58de73['attributeNewValue'],'oldValue':_0x58de73['attributeOldValue'],'range':Jt(_0x58de73['range'],_0x554662['model'])});for(const _0x3541b2 of _0x3444a4){if('rename'!=_0x3541b2['action']&&'refresh'!=_0x3541b2['action'])continue;const _0x90e93f=Ht(_0x3541b2['position']['nodeAfter'],_0x554662['model']),_0x1e39ad=_0x3541b2['before'];'rename'==_0x3541b2['action']&&_0x40997b['push']({'key':m,'newValue':_0x3541b2['name'],'oldValue':_0x1e39ad['name'],'range':_0x90e93f});for(const [_0x5f9b2a,_0x390c31]of _0x1e39ad['attributes']){if(!this['_isRegisteredAttribute'](_0x5f9b2a))continue;const _0x414647=_0x3541b2['attributes']['get'](_0x5f9b2a);_0x390c31!==_0x414647&&_0x40997b['push']({'key':_0x5f9b2a,'newValue':_0x414647,'oldValue':_0x390c31,'range':_0x90e93f});}for(const [_0x5a39f1,_0x442292]of _0x3541b2['attributes'])this['_isRegisteredAttribute'](_0x5a39f1)&&(_0x1e39ad['attributes']['has'](_0x5a39f1)||_0x40997b['push']({'key':_0x5a39f1,'newValue':_0x442292,'oldValue':null,'range':_0x90e93f}));}0x0!=_0x40997b['length']&&_0x554662['model']['enqueueChange'](_0x20970b,_0xd44dc0=>{const _0x2e4936=_0x1a89e5();for(const {range:_0x49629d,key:_0x41969e,oldValue:_0x4e3c86,newValue:_0x1ee549}of _0x40997b)this['markAttributeChange'](_0x49629d,_0x41969e,_0x4e3c86,_0x1ee549,{'groupId':_0x2e4936});this['_reduceExistingSuggestions'](_0xd44dc0,_0x40997b);});},{'priority':'lowest'}),_0x554662['model']['markers']['on']('update:suggestion',(_0x585994,_0xfd35a4,_0x4588b7)=>{if(null==_0x4588b7){const {id:_0x2fb147}=this['_splitMarkerName'](_0xfd35a4['name']),_0x26ae3d=this['_suggestions']['get'](_0x2fb147);_0x26ae3d&&_0x26ae3d['addMarkerName'](_0xfd35a4['name']);}}),_0x554662['model']['document']['on']('change:data',()=>{const _0x593a39=Array['from'](_0x554662['model']['document']['differ']['getChangedMarkers']())['filter'](_0x42b3bd=>'suggestion'===this['_splitMarkerName'](_0x42b3bd['name'])['group']);if(0x0===_0x593a39['length'])return;_0x593a39['sort']((_0x1b0d46,_0x4f3571)=>{const _0x3c57ba=_0x1b0d46['data']['oldRange'],_0x38387b=_0x4f3571['data']['oldRange'];return null===_0x3c57ba&&null===_0x38387b?0x0:null===_0x3c57ba&&null!==_0x38387b?-0x1:null!==_0x3c57ba&&null===_0x38387b?0x1:_0x3c57ba['start']['isBefore'](_0x38387b['start'])?-0x1:0x1;});const _0x1a3d18=new Set(),_0x49c5ab=new Set();for(const {name:_0x4f2d07,data:_0x4ccad6}of _0x593a39){const {id:_0xc1363a}=this['_splitMarkerName'](_0x4f2d07);if(null===_0x4ccad6['oldRange']){const _0xdca395=this['_handleNewSuggestionMarker'](_0x4f2d07);_0x49c5ab['add'](_0xdca395);}else{const _0x1fca58=this['_suggestions']['get'](_0xc1363a);null!==_0x4ccad6['newRange']||_0x1fca58['isInContent']?(_0x1a3d18['add'](_0x1fca58['head']),_0x49c5ab['add'](_0x1fca58)):this['_removeSuggestion'](_0x1fca58);}}_0x49c5ab['size']>0x0&&this['_refreshSuggestionsChain'](_0x49c5ab);for(const _0x49a655 of _0x1a3d18)this['fire']('suggestionChanged',_0x49a655);}),_0x554662['model']['on']('applyOperation',(_0x1e9b7d,_0xaaaa75)=>{const _0x41946a=_0xaaaa75[0x0];if(!this['_suggestions']['size'])return;if(!_0x41946a['isDocumentOperation'])return;if(_0x41946a['batch']['isUndo']||!_0x41946a['batch']['isLocal'])return;let _0x1bc14d,_0x40affe;switch(_0x41946a['type']){case'insert':_0x1bc14d=_0x554662['model']['createPositionAt'](_0x41946a['position']),_0x40affe=_0x1bc14d['getShiftedBy'](_0x41946a['howMany']);break;case'split':_0x1bc14d=_0x554662['model']['createPositionAt'](_0x41946a['splitPosition']),_0x40affe=_0x554662['model']['createPositionAt'](_0x41946a['moveTargetPosition']);break;case'move':_0x1bc14d=_0x554662['model']['createPositionAt'](_0x41946a['targetPosition']),_0x40affe=_0x1bc14d['getShiftedBy'](_0x41946a['howMany']);break;default:return;}const _0x4e5933=_0x554662['model']['createRange'](_0x1bc14d,_0x40affe);_0x554662['model']['change'](()=>{for(const {suggestion:_0x1fb173,meta:_0x57366b}of this['_findSuggestions'](_0x4e5933)){if(_0x1fb173['isMultiRange'])continue;if('formatInline'==_0x1fb173['type'])continue;const _0x2de496=this['_getAttributeKey'](_0x1fb173);if(_0x2de496&&this['_isBlockAttribute'](_0x2de496)&&'split'!=_0x41946a['type'])continue;const _0x24616a=_0x1fb173['data']&&_0x1fb173['data']['multipleBlocks'];('formatBlock'!=_0x1fb173['type']||'split'==_0x41946a['type']&&!_0x24616a)&&(_0x57366b['containsRangeInObject']||'insertion'==_0x1fb173['type']&&_0x57366b['isOwn']||_0x1fb173['getFirstRange']()['containsRange'](_0x4e5933)&&this['_breakSuggestionMarker'](_0x1fb173,_0x1bc14d,_0x40affe));}});},{'priority':'lowest'}),_0x554662['model']['on']('deleteContent',(_0x546923,_0x20fda9)=>{const _0x4a17a2=_0x20fda9[0x0],_0x4f66da=_0x20fda9[0x1];if(_0x4f66da&&_0x4f66da['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a17a2['isCollapsed'])return;const _0x25353d=_0x554662['model']['schema'],{start:_0x37fe4a,end:_0x562091}=_0x4a17a2['getFirstRange'](),_0x3fa6d0=_0x37fe4a['nodeAfter']&&_0x25353d['isLimit'](_0x37fe4a['nodeAfter'])?null:_0x25353d['getNearestSelectionRange'](_0x37fe4a,'forward'),_0x4a4c7f=_0x562091['nodeBefore']&&_0x25353d['isLimit'](_0x562091['nodeBefore'])?null:_0x25353d['getNearestSelectionRange'](_0x562091,'backward'),_0x11df6b=_0x554662['model']['createRange'](_0x3fa6d0?_0x3fa6d0['start']:_0x37fe4a,_0x4a4c7f?_0x4a4c7f['end']:_0x562091);_0x554662['model']['change'](_0x47106e=>{this['markDeletion'](_0x11df6b);const _0x1f9e52=_0x554662['model']['schema']['getNearestSelectionRange'](_0x11df6b['start']);_0x4a17a2['is']('documentSelection')?_0x47106e['setSelection'](_0x1f9e52):_0x4a17a2['setTo'](_0x1f9e52);}),_0x546923['stop']();},{'priority':_0x550a89['normal']+0xa}),_0x554662['model']['on']('insertContent',(_0x713c9d,_0x5c1f11)=>{const _0x287214=_0x5c1f11[_0x5c1f11['length']-0x1];_0x287214&&_0x287214['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x554662['model']['change'](()=>{let _0x29e54a=_0x554662['model']['insertContent'](_0x5c1f11[0x0],_0x5c1f11[0x1],_0x5c1f11[0x2],{'forceDefaultExecution':!0x0});if(!_0x29e54a)return;_0x713c9d['return']=_0x29e54a['clone']();const _0x3a71dd=_0x29e54a['end']['nodeBefore'],_0x237abc=_0x554662['model']['schema'];_0x3a71dd&&_0x237abc['isBlock'](_0x3a71dd)&&!_0x237abc['isObject'](_0x3a71dd)&&(_0x29e54a=_0x554662['model']['createRange'](_0x29e54a['start'],_0x554662['model']['createPositionAt'](_0x3a71dd,'end'))),this['markInsertion'](_0x29e54a);}),_0x713c9d['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x38ac13=new O(_0x554662,this['_suggestions']);_0x554662['commands']['add']('acceptSuggestion',_0x38ac13),this['enableCommand']('acceptSuggestion');const _0x64c422=new R(_0x554662,this['_suggestions']);_0x554662['commands']['add']('discardSuggestion',_0x64c422),this['enableCommand']('discardSuggestion'),_0x554662['commands']['add']('acceptAllSuggestions',new x(_0x554662,_0x38ac13,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x554662['commands']['add']('discardAllSuggestions',new x(_0x554662,_0x64c422,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x554662['commands']['add']('acceptSelectedSuggestions',new E(_0x554662,_0x38ac13,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x554662['commands']['add']('discardSelectedSuggestions',new E(_0x554662,_0x64c422,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ca1ac=_0x554662['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ca1ac,'addComment',(_0x273149,{threadId:_0x1527aa})=>{const _0x2a8c54=this['_suggestions']['get'](_0x1527aa);_0x2a8c54&&_0x2a8c54['commentThread']&&0x1===_0x2a8c54['commentThread']['length']&&this['_updateSuggestionData'](_0x1527aa,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ca1ac,'removeComment',(_0x56602b,{threadId:_0x131725})=>{const _0xcdca8e=this['_suggestions']['get'](_0x131725);_0xcdca8e&&_0xcdca8e['commentThread']&&!_0xcdca8e['commentThread']['length']&&this['_updateSuggestionData'](_0x131725,{'hasComments':!0x1});},{'priority':'low'});}['afterInit'](){!async function(_0x216cb9){const _0x590342=_0x11ce4c([0x51,0x58,0x31,0x4e,0x37,0x54,0x6c,0x43,0x61,0x71,0x70,0x4a,0x77,0x36,0x4d,0x49,0x38,0x48,0x4b,0x73,0x76,0x78,0x33,0x64,0x74,0x66,0x35,0x69,0x65,0x79,0x41,0x4c,0x67,0x32,0x6a,0x53,0x46,0x50,0x34,0x72,0x39,0x59,0x45,0x55,0x6b,0x6f,0x63,0x52,0x6e,0x5a,0x4f,0x30,0x44,0x47,0x6d,0x62,0x56,0x42,0x75,0x68,0x57,0x7a]),_0x42caa2=0x481fca58,_0x2aada1=0x481894e0^_0x42caa2,_0x5b0fdb=window[_0x11ce4c([0x44,0x61,0x74,0x65])][_0x11ce4c([0x6e,0x6f,0x77])](),_0x2c2dcc=_0x216cb9[_0x11ce4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x52a221=new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c6c1a=>{_0x2c2dcc[_0x11ce4c([0x6f,0x6e,0x63,0x65])](_0x11ce4c([0x72,0x65,0x61,0x64,0x79]),_0x4c6c1a);}),_0x3e0db2={[_0x11ce4c([0x6b,0x74,0x79])]:_0x11ce4c([0x45,0x43]),[_0x11ce4c([0x75,0x73,0x65])]:_0x11ce4c([0x73,0x69,0x67]),[_0x11ce4c([0x63,0x72,0x76])]:_0x11ce4c([0x50,0x2d,0x32,0x35,0x36]),[_0x11ce4c([0x78])]:_0x11ce4c([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]),[_0x11ce4c([0x79])]:_0x11ce4c([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]),[_0x11ce4c([0x61,0x6c,0x67])]:_0x11ce4c([0x45,0x53,0x32,0x35,0x36])},_0x40fa07=_0x2c2dcc[_0x11ce4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x11ce4c([0x67,0x65,0x74])](_0x11ce4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x472bec(){let _0x1efaea,_0x215387=null,_0x2d825b=null;try{if(_0x40fa07==_0x11ce4c([0x47,0x50,0x4c]))return _0x11ce4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1efaea=_0x140c14(),!_0x1efaea)return _0x11ce4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1efaea[_0x11ce4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d825b=_0xf7e418(_0x1efaea[_0x11ce4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1efaea[_0x11ce4c([0x6a,0x74,0x69])])),await _0x1ad06c()?_0x4b1c7f()?_0x580431()?_0x11ce4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1426bc()?(_0x1efaea[_0x11ce4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11ce4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x215387=_0x45b847(_0x11ce4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1efaea[_0x11ce4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x11ce4c([0x74,0x72,0x69,0x61,0x6c])&&(_0x215387=_0x45b847(_0x11ce4c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x342af8()):_0x11ce4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x11ce4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x11ce4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2f18a8){return _0x11ce4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x580431(){const _0x3bacba=[_0x11ce4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x11ce4c([0x74,0x72,0x69,0x61,0x6c])][_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1efaea[_0x11ce4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5b0fdb/0x3e8:0xe10*_0x2aada1;return _0x1efaea[_0x11ce4c([0x65,0x78,0x70])]<_0x3bacba;}function _0x4b1c7f(){const _0x44f14c=_0x1efaea[_0x11ce4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x44f14c)return!0x1;if(_0x44f14c[_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ce4c([0x2a])))return!0x0;if(_0x44f14c[_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ce4c([0x54,0x43])))return!0x0;if(_0x44f14c[_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ce4c([0x52,0x54,0x43]))){if(_0x1a71df())return!0x0;if(_0xca6783()||_0x3e21b7())return!0x0;}return!0x1;}function _0x1426bc(){const _0x52cbe2=_0x1efaea[_0x11ce4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x52cbe2||0x0==_0x52cbe2[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x10e92b}=new URL(window[_0x11ce4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x52cbe2[_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x10e92b))return!0x0;const _0x3786c4=_0x10e92b[_0x11ce4c([0x73,0x70,0x6c,0x69,0x74])](_0x11ce4c([0x2e]));return _0x52cbe2[_0x11ce4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1304b3=>_0x1304b3[_0x11ce4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11ce4c([0x2a])))[_0x11ce4c([0x6d,0x61,0x70])](_0x51a2ce=>_0x51a2ce[_0x11ce4c([0x73,0x70,0x6c,0x69,0x74])](_0x11ce4c([0x2e])))[_0x11ce4c([0x73,0x6f,0x6d,0x65])](_0x5a883f=>_0x3786c4[_0x11ce4c([0x65,0x76,0x65,0x72,0x79])]((_0x7f4535,_0x33b236)=>_0x5a883f[_0x33b236]===_0x7f4535||_0x5a883f[_0x33b236]===_0x11ce4c([0x2a])));}function _0x342af8(){return _0x215387&&_0x2d825b?new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cdf9a,_0x2869b7)=>{_0x215387[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x4cdf9a,_0x2869b7),_0x2d825b[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x30a0ab=>{_0x30a0ab!=_0x11ce4c([0x56,0x61,0x6c,0x69,0x64])&&_0x4cdf9a(_0x30a0ab);},_0x2869b7);}):_0x215387||_0x2d825b||_0x11ce4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf7e418(_0x4823e3,_0x41a0cd){return new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e8580=>{if(_0x45b3be())return _0x2e8580(_0x11ce4c([0x56,0x61,0x6c,0x69,0x64]));_0x4d5fe6(),_0x2c2dcc[_0x11ce4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x11ce4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x242b29=!0x1;const _0x220b8c=_0x1a89e5();function _0x33fe59(_0x52d199){return!!_0x52d199&&(typeof _0x52d199===_0x11ce4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x52d199===_0x11ce4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x52d199[_0x11ce4c([0x74,0x68,0x65,0x6e])]===_0x11ce4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x52d199[_0x11ce4c([0x63,0x61,0x74,0x63,0x68])]===_0x11ce4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b1400(_0x4f50bb){_0x51f752(_0x4f50bb)[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x35ae51=>{if(!_0x35ae51||_0x35ae51[_0x11ce4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x11ce4c([0x6f,0x6b]))return _0x11ce4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x321bb1(_0x50aaf2(_0x220b8c+_0x41a0cd))!=_0x35ae51[_0x11ce4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x11ce4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x11ce4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x4dfd3c=>(_0x2dcbe9(),_0x4dfd3c),()=>{const _0x1be676=_0x5c14db();return null==_0x1be676?(_0x2dcbe9(),_0x11ce4c([0x56,0x61,0x6c,0x69,0x64])):_0x11ce4c(_0x5b0fdb-_0x1be676>(0x6c134e58^_0x42caa2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x2e8580)[_0x11ce4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2e8580(_0x11ce4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34f054=0x482924d8^_0x42caa2;function _0x2dcbe9(){const _0x1a405c=_0x11ce4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x321bb1(_0x50aaf2(_0x4823e3)),_0x34157b=_0x32922b(_0x321bb1(window[_0x11ce4c([0x4d,0x61,0x74,0x68])][_0x11ce4c([0x63,0x65,0x69,0x6c])](_0x5b0fdb/_0x34f054)));window[_0x11ce4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11ce4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1a405c,_0x34157b);}function _0x5c14db(){const _0xa4c94d=_0x11ce4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x321bb1(_0x50aaf2(_0x4823e3)),_0x372bd9=window[_0x11ce4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x11ce4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa4c94d);return _0x372bd9?window[_0x11ce4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32922b(_0x372bd9),0x10)*_0x34f054:null;}function _0x51f752(_0x27ca26){return new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3db163,_0x78ab5)=>{_0x27ca26[_0x11ce4c([0x74,0x68,0x65,0x6e])](_0x3db163,_0x78ab5),window[_0x11ce4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x78ab5,0x481e1e98^_0x42caa2);});}}_0x2c2dcc[_0x11ce4c([0x6f,0x6e])](_0x11ce4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376320,_0x31d869)=>{if(_0x31d869[0x0]!=_0x4823e3)return _0x2e8580(_0x11ce4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31d869[0x1]={..._0x31d869[0x1],[_0x11ce4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x220b8c};},{[_0x11ce4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11ce4c([0x68,0x69,0x67,0x68])}),_0x2c2dcc[_0x11ce4c([0x6f,0x6e])](_0x11ce4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x14e4d0=>{_0x33fe59(_0x14e4d0[_0x11ce4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x242b29=!0x0,_0x2b1400(_0x14e4d0[_0x11ce4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x11ce4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x11ce4c([0x6c,0x6f,0x77])}),_0x52a221[_0x11ce4c([0x74,0x68,0x65,0x6e])](()=>{_0x242b29||_0x2e8580(_0x11ce4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45b3be(){return _0x2c2dcc[_0x11ce4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11ce4c([0x76,0x69,0x65,0x77])][_0x11ce4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x11ce4c([0x61,0x75,0x74,0x6f]);}function _0x4d5fe6(){_0x2c2dcc[_0x11ce4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x11ce4c([0x76,0x69,0x65,0x77])][_0x11ce4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x11ce4c([0x61,0x75,0x74,0x6f]);}}function _0x45b847(_0x10fde){const _0x481a16=[new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6fcd2c=>setTimeout(_0x6fcd2c,0x4816f494^_0x42caa2)),_0x52a221[_0x11ce4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2259e5=>{let _0x401ede=0x0;_0x2c2dcc[_0x11ce4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x11ce4c([0x6f,0x6e])](_0x11ce4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x49e613,_0x37accc)=>{_0x37accc[0x0][_0x11ce4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x401ede++,_0x401ede==(0x481fcba0^_0x42caa2)&&(_0x2259e5(),_0x49e613[_0x11ce4c([0x6f,0x66,0x66])]());});}))];return window[_0x11ce4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x11ce4c([0x72,0x61,0x63,0x65])](_0x481a16)[_0x11ce4c([0x74,0x68,0x65,0x6e])](()=>_0x10fde);}async function _0x3721cb(){await _0x52a221,_0x2c2dcc[_0x11ce4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x11ce4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12850f,_0x2c2dcc[_0x11ce4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x11ce4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12850f,_0x2c2dcc[_0x11ce4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x11ce4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1a71df(){return _0x2d28f8(_0x11ce4c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2daa26(_0x11ce4c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x11ce4c([0x73,0x74,0x61,0x74,0x65])]==_0x11ce4c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0xca6783(){return _0x2d28f8(_0x11ce4c([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 _0x3e21b7(){return _0x2d28f8(_0x11ce4c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x321d3c(_0x4497b9){const _0x1a5c26=_0x1fbd95();_0x2c2dcc[_0x1a5c26]=_0x11ce4c([0x74,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4497b9,_0x4497b9!=_0x11ce4c([0x56,0x61,0x6c,0x69,0x64])&&_0x3721cb();}function _0x1fbd95(){const _0x281fe8=window[_0x11ce4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x11ce4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x11ce4c([0x6e,0x6f,0x77])]())[_0x11ce4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x11ce4c([0x2e]),'');let _0x327be4=_0x11ce4c([0x51]);for(let _0x311396=0x0;_0x311396<_0x281fe8[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x311396+=0x2){let _0x3877a2=window[_0x11ce4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x281fe8[_0x11ce4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x311396,_0x311396+0x2));_0x3877a2>=_0x590342[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3877a2-=_0x590342[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x327be4+=_0x590342[_0x3877a2];}return _0x327be4;}function _0x140c14(){const _0x40e5cc=_0x40fa07[_0x11ce4c([0x73,0x70,0x6c,0x69,0x74])](_0x11ce4c([0x2e]));if(0x3!=_0x40e5cc[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4ea4df(_0x40e5cc[0x1]);function _0x4ea4df(_0x337416){const _0x3e7aa9=_0x26b297(_0x337416);return _0x3e7aa9&&_0x2c3e48()?_0x3e7aa9:null;function _0x2c3e48(){const _0x21293f=_0x3e7aa9[_0x11ce4c([0x6a,0x74,0x69])],_0x2dee84=window[_0x11ce4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21293f[_0x11ce4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21293f[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x41a1f8={..._0x3e7aa9,[_0x11ce4c([0x6a,0x74,0x69])]:_0x21293f[_0x11ce4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21293f[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x41a1f8[_0x11ce4c([0x76,0x63])],_0x50aaf2(_0x41a1f8)==_0x2dee84;}}}async function _0x1ad06c(){let _0x626f8b=!0x0;try{const _0xe33737=_0x40fa07[_0x11ce4c([0x73,0x70,0x6c,0x69,0x74])](_0x11ce4c([0x2e])),[_0xf762c,_0x23940f,_0x52f74f]=_0xe33737;return _0x310551(_0xf762c),await _0x4fe0b6(_0xf762c,_0x23940f,_0x52f74f),_0x626f8b;}catch(_0xc54a08){return!0x1;}function _0x310551(_0x5c02e8){const _0x4827a9=_0x26b297(_0x5c02e8);_0x4827a9&&_0x4827a9[_0x11ce4c([0x61,0x6c,0x67])]==_0x11ce4c([0x45,0x53,0x32,0x35,0x36])||(_0x626f8b=!0x1);}async function _0x4fe0b6(_0xc7c02d,_0x2acb43,_0x18ac0e){const _0x4fd125=window[_0x11ce4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x11ce4c([0x66,0x72,0x6f,0x6d])](_0x2f9dd3(_0x18ac0e),_0x295975=>_0x295975[_0x11ce4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x119ee8=new window[(_0x11ce4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x11ce4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xc7c02d+_0x11ce4c([0x2e])+_0x2acb43),_0x306beb=window[_0x11ce4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x11ce4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x306beb)return;const _0x1c86cb=await _0x306beb[_0x11ce4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x11ce4c([0x6a,0x77,0x6b]),_0x3e0db2,{[_0x11ce4c([0x6e,0x61,0x6d,0x65])]:_0x11ce4c([0x45,0x43,0x44,0x53,0x41]),[_0x11ce4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x11ce4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x11ce4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x306beb[_0x11ce4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x11ce4c([0x6e,0x61,0x6d,0x65])]:_0x11ce4c([0x45,0x43,0x44,0x53,0x41]),[_0x11ce4c([0x68,0x61,0x73,0x68])]:{[_0x11ce4c([0x6e,0x61,0x6d,0x65])]:_0x11ce4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c86cb,_0x4fd125,_0x119ee8)||(_0x626f8b=!0x1);}}function _0x26b297(_0x5bae7e){return _0x5bae7e[_0x11ce4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x11ce4c([0x65,0x79]))?JSON[_0x11ce4c([0x70,0x61,0x72,0x73,0x65])](_0x2f9dd3(_0x5bae7e)):null;}function _0x2f9dd3(_0xa5dca7){return window[_0x11ce4c([0x61,0x74,0x6f,0x62])](_0xa5dca7[_0x11ce4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x11ce4c([0x2b]))[_0x11ce4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x11ce4c([0x2f])));}function _0x50aaf2(_0x17a81c){let _0x41633d=0x1505;function _0x5421d1(_0x4dd4a0){for(let _0x3ff317=0x0;_0x3ff317<_0x4dd4a0[_0x11ce4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ff317++){const _0x186f9b=_0x4dd4a0[_0x11ce4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3ff317);_0x41633d=(_0x41633d<<0x5)+_0x41633d+_0x186f9b,_0x41633d&=_0x41633d;}}function _0x2c6023(_0x336f3e){Array[_0x11ce4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x336f3e)?_0x336f3e[_0x11ce4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c6023):_0x336f3e&&typeof _0x336f3e==_0x11ce4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x11ce4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x336f3e)[_0x11ce4c([0x73,0x6f,0x72,0x74])]()[_0x11ce4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36eada,_0x129c93])=>{_0x5421d1(_0x36eada),_0x2c6023(_0x129c93);}):_0x5421d1(window[_0x11ce4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x336f3e));}return _0x2c6023(_0x17a81c),_0x41633d>>>0x0;}function _0x321bb1(_0x1d2abc){return _0x1d2abc[_0x11ce4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x11ce4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x11ce4c([0x30]));}function _0x32922b(_0x54b420){return _0x54b420[_0x11ce4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x11ce4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x11ce4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2d28f8(_0x482ae2){return _0x2c2dcc[_0x11ce4c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11ce4c([0x68,0x61,0x73])](_0x482ae2);}function _0x2daa26(_0x4b0c1b){return _0x2c2dcc[_0x11ce4c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x11ce4c([0x67,0x65,0x74])](_0x4b0c1b);}function _0x12850f(){}function _0x11ce4c(_0x1e80a8){return _0x1e80a8['map'](_0x51414c=>String['fromCharCode'](_0x51414c))['join']('');}_0x321d3c(await _0x472bec());}(this);}set['adapter'](_0x335cf2){if(this['_adapter'])throw new _0x5b6f25('track-changes-adapter-already-set',this);this['_adapter']=_0x335cf2;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4ae52d=!0x1,toJSON:_0x33c2c1=!0x1}={}){const _0x44b222=[];for(const _0x2ec165 of this['_suggestions']['values']())_0x4ae52d&&!_0x2ec165['isInContent']||_0x44b222['push'](_0x2ec165);return _0x33c2c1?_0x44b222['map'](_0x4e2c95=>_0x4e2c95['toJSON']()):_0x44b222;}['getSuggestion'](_0x11d6c2){const _0x22d0aa=this['_suggestions']['get'](_0x11d6c2);if(!_0x22d0aa)throw new _0x5b6f25('track-changes-suggestion-not-found',this);return _0x22d0aa;}['hasSuggestion'](_0x3edf4f){return this['_suggestions']['has'](_0x3edf4f);}['addSuggestionData'](_0xf1f1ea){const {authorId:_0x27636b,id:_0x12fa7f,attributes:_0x4b743d}=_0xf1f1ea,[_0x2f7c1b,_0x130fa7]=_0xf1f1ea['type']['split'](':'),_0x4409e4=this['_suggestions']['get'](_0x12fa7f)||this['_createSuggestion'](_0x2f7c1b,_0x130fa7,_0x12fa7f,_0x27636b,_0x4b743d);if(this['_addThreadToSuggestion'](_0x4409e4),this['_checkSuggestionCorrectness'](_0x4409e4,_0x2f7c1b,_0x130fa7||null,_0x27636b),_0x4409e4['createdAt']=_0xf1f1ea['createdAt'],_0x4409e4['_isDataLoaded']=!0x0,_0x4b743d&&_0x4b743d['@external']){const _0x5ee615=_0x4b743d['@external'],_0xa2e400=this['_getExternalAuthor'](_0x5ee615['authorName']);_0x4409e4['authoredAt']=_0x5ee615['createdAt'],_0x4409e4['author']=_0xa2e400,_0x4409e4['isExternal']=!0x0;}else _0x4409e4['authoredAt']=_0xf1f1ea['createdAt'];switch(_0xf1f1ea['data']&&(_0x4409e4['data']=_0xf1f1ea['data']),_0xf1f1ea['attributes']&&(_0x4409e4['attributes']=_0xf1f1ea['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4409e4['_saved']=!0x0),this['_suggestionState']['get'](_0x4409e4)){case'notReady':this['_suggestionState']['set'](_0x4409e4,'dataReady');break;case'markerReady':_0x4409e4['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4409e4])),this['_refreshSuggestionsChain'](new Set([_0x4409e4])),this['_suggestionState']['set'](_0x4409e4,'ready'),this['fire']('suggestionLoaded',_0x4409e4)):this['_suggestionState']['set'](_0x4409e4,'removed');}return _0x4409e4;}['acceptSuggestion'](_0x4e4a0e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2095da of _0x4e4a0e['getAllAdjacentSuggestions']())_0x2095da['accept']();});});}['discardSuggestion'](_0x381e49){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4eed9a of _0x381e49['getAllAdjacentSuggestions']())_0x4eed9a['discard']();});});}['enableCommand'](_0x210ec9,_0x556e3c){const _0xaadfd1=this['editor']['commands']['get'](_0x210ec9);if(!_0xaadfd1)throw new _0x5b6f25('track-changes-command-not-found',this,{'commandName':_0x210ec9});if(this['_enabledCommands']['has'](_0xaadfd1))throw new _0x5b6f25('track-changes-enable-command-twice',this,{'commandName':_0x210ec9});this['_enabledCommands']['add'](_0xaadfd1),_0x556e3c&&_0xaadfd1['on']('execute',(_0x17526f,_0x560bd6)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x560bd6['length']>0x0&&_0x560bd6[_0x560bd6['length']-0x1]&&_0x560bd6[_0x560bd6['length']-0x1]['forceDefaultExecution']?_0x560bd6['pop']():(_0x17526f['return']=_0x556e3c((..._0x315d48)=>_0xaadfd1['execute'](..._0x315d48,{'forceDefaultExecution':!0x0}),..._0x560bd6),_0x17526f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x5db2ce){let _0x1e2ac9,_0x5f4c99;const _0x5aaac2=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x1e2ac9=_0x5db2ce();}catch(_0x54976e){_0x5f4c99=_0x54976e;}return _0x5aaac2||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5f4c99&&_0x5b6f25['rethrowUnexpectedError'](_0x5f4c99,this),_0x1e2ac9;}['markInsertion'](_0x379c74,_0x381375=null,_0x2ddbf0={}){if(_0x379c74['isCollapsed'])return null;const _0x41d813=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x20a2e6,meta:_0x4a261a}of this['_findSuggestions'](_0x379c74,'insertion'))if(_0x4a261a['isOwn']){if(!_0x4a261a['isNextTo']){if(_0x4a261a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Kt(_0x20a2e6,_0x2ddbf0))continue;return _0x20a2e6;}if(Kt(_0x20a2e6,_0x2ddbf0))return _0x20a2e6;this['_breakSuggestionMarker'](_0x20a2e6,_0x379c74['start'],_0x379c74['end']);break;}if(_0x381375==_0x20a2e6['subType']&&Kt(_0x20a2e6,_0x2ddbf0)){const _0x4b11b8=_0x20a2e6['getFirstRange']();return _0x4b11b8['start']['isEqual'](_0x379c74['end'])?this['_setSuggestionRange'](_0x20a2e6,this['_model']['createRange'](_0x379c74['start'],_0x4b11b8['end'])):this['_setSuggestionRange'](_0x20a2e6,this['_model']['createRange'](_0x4b11b8['start'],_0x379c74['end'])),_0x20a2e6;}}const _0x5cb958=_0x1a89e5(),_0x556347=_0x41d813['id'],_0x2fb623=_0x381375?'insertion:'+_0x381375:'insertion',_0x26b7dd=this['_setSuggestionData']({'id':_0x5cb958,'type':_0x2fb623,'createdAt':new Date(),'authorId':_0x556347,'attributes':_0x2ddbf0});return this['_addSuggestionMarker'](_0x2fb623,_0x5cb958,_0x556347,_0x379c74),_0x26b7dd;}['markMultiRangeInsertion'](_0x3ef986,_0x4e7809='multi',_0x3fd58f={}){const _0xe800b5=this['editor']['plugins']['get']('Users')['me'],_0x5cb568=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4e7809,'join');for(const _0x7c4261 of this['getSuggestions']())if(_0x7c4261['author']['id']==_0xe800b5['id']&&'insertion'==_0x7c4261['type']&&_0x7c4261['subType']==_0x4e7809&&Kt(_0x7c4261,_0x3fd58f)&&(_0x5cb568(_0x7c4261['getRanges'](),_0x3ef986)||_0x5cb568(_0x3ef986,_0x7c4261['getRanges']()))){for(const _0x2ef059 of _0x3ef986)_0x7c4261['addRange'](_0x2ef059);return _0x7c4261;}for(const {suggestion:_0x11fc81,meta:_0x23f601}of this['_findSuggestions'](_0x3ef986,'insertion')){if(!_0x23f601['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x23f601['containsRangeInObject'])continue;if(!Kt(_0x11fc81,_0x3fd58f))continue;let _0x7bfdd1=!0x0;for(const _0x5d06c9 of _0x11fc81['getRanges']())for(const _0x11bc86 of _0x3ef986)if(!_0x5d06c9['containsRange'](_0x11bc86)){_0x7bfdd1=!0x1;break;}if(_0x7bfdd1)return _0x11fc81;}const _0x2f51ce=_0x1a89e5(),_0x4b0dec=_0xe800b5['id'],_0x4effc0='insertion:'+_0x4e7809,_0x1e89fd=this['_setSuggestionData']({'id':_0x2f51ce,'type':_0x4effc0,'createdAt':new Date(),'authorId':_0x4b0dec,'attributes':_0x3fd58f});for(const _0x43d9c9 of _0x3ef986)this['_addSuggestionMarker'](_0x4effc0,_0x2f51ce,_0x4b0dec,_0x43d9c9,u['getMultiRangeId']());return _0x1e89fd;}['markInlineFormat'](_0x201150,_0x5e848c,_0x5bd1d3=null,_0xec78c={}){if(_0x5bd1d3=_0x5bd1d3||Ft(_0x5e848c),_0x201150['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x41b78d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bd1d3,'accept');return this['forceDefaultExecution'](()=>_0x41b78d([_0x201150],_0x5e848c,_0xec78c)),null;}const _0x123b4d=this['editor']['plugins']['get']('Users')['me'],_0x4e801f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1f9150,meta:_0x5b1a41}of this['_findSuggestions'](_0x201150,'insertion'))_0x5b1a41['isOwn']&&!_0x5b1a41['isInsideObject']&&_0x4e801f['push'](..._0x1f9150['getRanges']());}const _0x2f03fc=function(_0x3a8238,_0xd17559){const _0x32c261=[];for(const _0x165a6d of _0xd17559){const _0x5dd17d=_0x3a8238['getIntersection'](_0x165a6d);_0x5dd17d&&_0x32c261['push'](_0x5dd17d);}return _0x32c261;}(_0x201150,_0x4e801f),_0x18fb33=function(_0x5c4858,_0x233086){const _0xbb4c8c=[_0x5c4858];for(const _0x3cc234 of _0x233086){let _0x451ad3=0x0;for(;_0x451ad3<_0xbb4c8c['length'];){const _0x15e797=_0xbb4c8c[_0x451ad3]['getDifference'](_0x3cc234);_0xbb4c8c['splice'](_0x451ad3,0x1,..._0x15e797),_0x451ad3+=_0x15e797['length'];}}return _0xbb4c8c;}(_0x201150,_0x4e801f);_0x2f03fc['length']&&this['_model']['change'](()=>{for(const _0x258311 of _0x2f03fc){const _0x270b10=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5bd1d3,'accept');this['forceDefaultExecution'](()=>_0x270b10([_0x258311],_0x5e848c,_0xec78c));}});for(const _0xb8bfa of _0x18fb33){let _0x3cf0bc=null,_0xe73846=_0xb8bfa['start'],_0x3ec093=_0xb8bfa['end'];for(const {suggestion:_0x15be3b,meta:_0x118df8}of this['_findSuggestions'](_0xb8bfa,'formatInline')){if(!_0x118df8['isOwn'])continue;if(_0x15be3b['subType']!=_0x5bd1d3)continue;if(!Kt(_0x15be3b,_0xec78c))continue;const _0x57b269=_0x15be3b['getFirstRange']();if(_0x57b269['containsRange'](_0xb8bfa,!0x0))return null;_0xe73846=_0xe73846['isBefore'](_0x57b269['start'])?_0xe73846:_0x57b269['start'],_0x3ec093=_0x3ec093['isAfter'](_0x57b269['end'])?_0x3ec093:_0x57b269['end'],_0x3cf0bc?_0x57b269['start']['isBefore'](_0x3cf0bc['getFirstRange']()['start'])?(_0x3cf0bc['removeMarkers'](),_0x3cf0bc=_0x15be3b):_0x15be3b['removeMarkers']():_0x3cf0bc=_0x15be3b;}const _0x39195f=this['_model']['createRange'](_0xe73846,_0x3ec093);if(_0x3cf0bc)this['_setSuggestionRange'](_0x3cf0bc,_0x39195f);else{const _0x262119=_0x1a89e5(),_0x121f93=_0x123b4d['id'];this['_setSuggestionData']({'id':_0x262119,'type':'formatInline:'+_0x5bd1d3,'data':_0x5e848c,'createdAt':new Date(),'authorId':_0x121f93,'attributes':_0xec78c}),this['_addSuggestionMarker']('formatInline:'+_0x5bd1d3,_0x262119,_0x121f93,_0x39195f);}}return null;}['markBlockFormat'](_0x167618,_0x6681fc,_0x2563a0=[],_0x3732b2=null,_0x288cc5={}){_0x6681fc['formatGroupId']||(_0x6681fc['formatGroupId']=_0x6681fc['commandName']),_0x6681fc['multipleBlocks']=_0x167618['is']('range'),_0x3732b2=_0x3732b2||Ft(_0x6681fc);const _0x30529c=_0x2563a0['map'](_0xefa789=>Ht(_0xefa789,this['_model'])),_0x10914b=_0x167618['is']('range')?_0x167618:Ht(_0x167618,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3bcab8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3732b2,'accept');return this['forceDefaultExecution'](()=>_0x3bcab8([_0x10914b],_0x6681fc,_0x288cc5)),null;}_0x30529c['push'](_0x10914b);let _0x2ce461=!0x0;for(const _0x2b080f of _0x30529c)if(!this['_rangeIsInLocalUserInsertion'](_0x2b080f)){_0x2ce461=!0x1;break;}if(_0x2ce461&&'always'!==this['_trackFormatChanges']){const _0x2e2d79=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3732b2,'accept');return this['forceDefaultExecution'](()=>_0x2e2d79([_0x10914b],_0x6681fc,_0x288cc5)),null;}let _0x1c541b=null,_0x4b1814=_0x10914b['start'],_0x580bd8=_0x10914b['end'];for(const {suggestion:_0x474d63,meta:_0xec1cab}of this['_findSuggestions'](_0x10914b,'formatBlock')){if(!_0xec1cab['isOwn'])continue;if(_0xec1cab['isNextTo']||_0xec1cab['containsRangeInObject']||_0xec1cab['isInsideObject'])continue;if(_0x474d63['data']['formatGroupId']!=_0x6681fc['formatGroupId'])continue;if(!Kt(_0x474d63,_0x288cc5))continue;const _0x32ce83=_0x474d63['getFirstRange']();if(_0x474d63['subType']==_0x3732b2){if(_0x32ce83['containsRange'](_0x10914b,!0x0))return null;_0x4b1814=_0x4b1814['isBefore'](_0x32ce83['start'])?_0x4b1814:_0x32ce83['start'],_0x580bd8=_0x580bd8['isAfter'](_0x32ce83['end'])?_0x580bd8:_0x32ce83['end'],_0x1c541b?_0x32ce83['start']['isBefore'](_0x1c541b['getFirstRange']()['start'])?(_0x1c541b['removeMarkers'](),_0x1c541b=_0x474d63):_0x474d63['removeMarkers']():_0x1c541b=_0x474d63;}else{const _0x4995aa=_0x10914b['getIntersection'](_0x32ce83);this['_cutOutSuggestionMarker'](_0x474d63,_0x4995aa);}}const _0x35c943=this['editor']['plugins']['get']('Users')['me'],_0x5ea644=_0x1a89e5(),_0x519167=_0x35c943['id'];if(_0x1c541b)return this['_setSuggestionRange'](_0x1c541b,this['_model']['createRange'](_0x4b1814,_0x580bd8)),_0x1c541b;{const _0x38e38e=this['_setSuggestionData']({'id':_0x5ea644,'type':'formatBlock:'+_0x3732b2,'data':_0x6681fc,'createdAt':new Date(),'authorId':_0x519167,'attributes':_0x288cc5});return this['_addSuggestionMarker']('formatBlock:'+_0x3732b2,_0x5ea644,_0x519167,this['_model']['createRange'](_0x4b1814,_0x580bd8)),_0x38e38e;}}['markMultiRangeBlockFormat'](_0x98cdef,_0x4bf166,_0x2ad598=[],_0x5f1318=null,_0x54e61d={}){_0x4bf166['formatGroupId']||(_0x4bf166['formatGroupId']=_0x4bf166['commandName']);const _0x46134c=_0x98cdef[0x0];_0x4bf166['multipleBlocks']=_0x46134c['is']('range'),_0x5f1318=_0x5f1318||Ft(_0x4bf166);const _0x55359a=_0x2ad598['map'](_0x37e16a=>Ht(_0x37e16a,this['_model'])),_0x20bbe9=_0x46134c['is']('range')?_0x98cdef:_0x98cdef['map'](_0x3333c1=>Ht(_0x3333c1,this['_model']));if('never'===this['_trackFormatChanges']){const _0x1e80b9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5f1318,'accept');return this['forceDefaultExecution'](()=>_0x1e80b9(_0x20bbe9,_0x4bf166,_0x54e61d)),null;}_0x55359a['push'](..._0x20bbe9);let _0x177651=!0x0;for(const _0x2af8d4 of _0x55359a)if(!this['_rangeIsInLocalUserInsertion'](_0x2af8d4)){_0x177651=!0x1;break;}if(_0x177651&&'always'!==this['_trackFormatChanges']){const _0x4725aa=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5f1318,'accept');return this['forceDefaultExecution'](()=>_0x4725aa(_0x20bbe9,_0x4bf166,_0x54e61d)),null;}const _0x512176=this['editor']['plugins']['get']('Users')['me'];for(const _0xb2f6d3 of this['getSuggestions']()){if(_0xb2f6d3['author']['id']!=_0x512176['id'])continue;if('formatBlock'!=_0xb2f6d3['type']||_0xb2f6d3['data']['formatGroupId']!=_0x4bf166['formatGroupId'])continue;if(!Kt(_0xb2f6d3,_0x54e61d))continue;const _0x1c81de=_0xb2f6d3['subType']==_0x5f1318;for(let _0x5e6079=0x0;_0x5e6079<_0x20bbe9['length'];_0x5e6079++){const _0x4c101f=_0x20bbe9[_0x5e6079];for(const _0x5dc89c of _0xb2f6d3['getMarkers']()){const _0x2e42ce=_0x5dc89c['getRange']();if(_0x4c101f['isEqual'](_0x2e42ce)){_0x1c81de?(_0x20bbe9['splice'](_0x5e6079,0x1),_0x5e6079--):_0xb2f6d3['removeMarker'](_0x5dc89c['name']);break;}}}}if(0x0==_0x20bbe9['length'])return null;const _0x58f658=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5f1318,'join');for(const _0x4daca3 of this['getSuggestions']())if(_0x4daca3['author']['id']==_0x512176['id']&&'formatBlock'==_0x4daca3['type']&&_0x4daca3['data']['formatGroupId']==_0x4bf166['formatGroupId']&&_0x4daca3['subType']==_0x5f1318&&Kt(_0x4daca3,_0x54e61d)&&(_0x58f658(_0x4daca3['getRanges'](),_0x20bbe9)||_0x58f658(_0x20bbe9,_0x4daca3['getRanges']()))){for(const _0x863bee of _0x20bbe9)_0x4daca3['addRange'](_0x863bee);return _0x4daca3;}const _0x2b7cdc=_0x1a89e5(),_0x2c1edd=_0x512176['id'],_0x146a9a='formatBlock:'+_0x5f1318,_0xf71665=this['_setSuggestionData']({'id':_0x2b7cdc,'type':_0x146a9a,'data':_0x4bf166,'createdAt':new Date(),'authorId':_0x2c1edd,'attributes':_0x54e61d});for(const _0x348709 of _0x20bbe9)this['_addSuggestionMarker'](_0x146a9a,_0x2b7cdc,_0x2c1edd,_0x348709,u['getMultiRangeId']());return _0xf71665;}['markDeletion'](_0x20f042,_0x4032e2=null,_0x42c1d6={}){if(_0x20f042['isCollapsed'])return null;const _0x47c548=this['editor']['plugins']['get']('Users')['me'],_0x416c28=new _0x586eec(_0x20f042['start'],_0x20f042['end']);for(const {suggestion:_0x4ba1a1,meta:_0x38b566}of this['_findSuggestions'](_0x416c28,'insertion'))if(_0x38b566['isOwn']&&!_0x38b566['isNextTo']){if(_0x4ba1a1['isMultiRange']){const _0x4544df=_0x4ba1a1['getRanges']()['filter'](_0xc86ed5=>'$graveyard'!=_0xc86ed5['root']['rootName']);_0x4544df['every'](_0x353af3=>_0x416c28['containsRange'](_0x353af3,!0x0))&&_0x4ba1a1['discard']();if(_0x4544df['some'](_0x140619=>_0x140619['containsRange'](_0x416c28,!0x0))){const _0x3fe21b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4032e2,'accept');return this['forceDefaultExecution'](()=>_0x3fe21b([_0x416c28],null,_0x42c1d6)),null;}}else{const _0x56c49a=_0x416c28['getIntersection'](_0x4ba1a1['getFirstRange']());null!==_0x56c49a&&_0x4ba1a1['_onDiscard']([_0x56c49a],null,_0x42c1d6);}}if(_0x416c28['detach'](),_0x416c28['isCollapsed']||'$graveyard'==_0x416c28['root']['rootName'])return null;let _0x357213=null,_0x2b5886=_0x416c28['start'],_0x397a5a=_0x416c28['end'];const _0x4d49cd=this['_findSuggestions'](_0x416c28,'deletion');for(const {suggestion:_0x49090d,meta:_0x2637d9}of _0x4d49cd){const _0x546a61=this['_model']['createRange'](_0x2b5886,_0x397a5a);if(_0x2637d9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x2637d9['containsRangeInObject']&&!_0x2637d9['isInsideObject'])){if(_0x49090d['isMultiRange']){if(!Kt(_0x49090d,_0x42c1d6))continue;let _0xc2183f=!0x0;for(const _0x32d2b9 of _0x49090d['getRanges']()){if(_0x32d2b9['containsRange'](_0x546a61,!0x0))return _0x49090d;_0x546a61['containsRange'](_0x32d2b9)||(_0xc2183f=!0x1);}_0xc2183f&&_0x49090d['discard']();}else{const _0x20a366=_0x49090d['getFirstRange']();if(_0x20a366['containsRange'](_0x546a61,!0x0))return _0x49090d;if(!Kt(_0x49090d,_0x42c1d6)){_0x546a61['containsRange'](_0x20a366)?_0x49090d['removeMarkers']():_0x20a366['containsPosition'](_0x2b5886)?_0x2b5886=_0x20a366['end']:_0x20a366['containsPosition'](_0x397a5a)&&(_0x397a5a=_0x20a366['start']);continue;}_0x2b5886=_0x2b5886['isBefore'](_0x20a366['start'])?_0x2b5886:_0x20a366['start'],_0x397a5a=_0x397a5a['isAfter'](_0x20a366['end'])?_0x397a5a:_0x20a366['end'],_0x42c1d6=Object['assign']({},_0x49090d['attributes']),_0x357213?_0x20a366['start']['isBefore'](_0x357213['getFirstRange']()['start'])?(_0x357213['removeMarkers'](),_0x357213=_0x49090d):_0x49090d['removeMarkers']():_0x357213=_0x49090d;}}}if(_0x357213)return this['_setSuggestionRange'](_0x357213,this['_model']['createRange'](_0x2b5886,_0x397a5a)),_0x357213;{const _0x48034b=_0x1a89e5(),_0x1aa595=this['_model']['createRange'](_0x2b5886,_0x397a5a),_0x3f94c8=_0x47c548['id'],_0xfeb517=_0x4032e2?'deletion:'+_0x4032e2:'deletion',_0x1209b8=this['_setSuggestionData']({'id':_0x48034b,'type':_0xfeb517,'createdAt':new Date(),'authorId':_0x3f94c8,'attributes':_0x42c1d6});return this['_addSuggestionMarker'](_0xfeb517,_0x48034b,_0x3f94c8,_0x1aa595),_0x1209b8;}}['markMultiRangeDeletion'](_0xb6c48e,_0x4b75a3='multi',_0x15daad={}){const _0x4e5c1a=this['editor']['plugins']['get']('Users')['me'],_0x69f25e=_0xb6c48e['map'](_0x56fd0d=>new _0x586eec(_0x56fd0d['start'],_0x56fd0d['end'])),_0x2b3018=new Set();for(const {suggestion:_0x32ee0b,meta:_0x5eb73c}of this['_findSuggestions'](_0x69f25e,'insertion'))_0x5eb73c['isOwn']&&!_0x5eb73c['isNextTo']&&_0x2b3018['add'](_0x32ee0b);for(const _0xc52885 of _0x2b3018)if(_0xc52885['isMultiRange']){const _0x39a979=_0xc52885['getRanges']();(!_0xc52885['attributes']||!_0xc52885['attributes']['skipNestingCheck'])&&(_0x39a979['every'](_0x3ae5ce=>_0x69f25e['some'](_0x500ac6=>_0x500ac6['containsRange'](_0x3ae5ce,!0x0)))&&_0xc52885['discard']());if(_0x69f25e['every'](_0x5b456d=>_0x39a979['some'](_0x245964=>_0x245964['containsRange'](_0x5b456d,!0x0)))){const _0x585121=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b75a3,'accept');return this['forceDefaultExecution'](()=>_0x585121(_0xb6c48e,null,_0x15daad)),null;}}else{const _0x3ff47c=_0xc52885['getFirstRange']();_0x69f25e['some'](_0x9d5695=>_0x9d5695['containsRange'](_0x3ff47c,!0x0))&&_0xc52885['discard']();if(_0x69f25e['every'](_0xe3ba04=>_0x3ff47c['containsRange'](_0xe3ba04,!0x0))){const _0x42ec52=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b75a3,'accept');return this['forceDefaultExecution'](()=>_0x42ec52(_0x69f25e,null,_0x15daad)),null;}}const _0x4330a8=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4b75a3,'join');let _0x364a9d=null;for(const _0x18c6ac of this['getSuggestions']())if(_0x18c6ac['author']['id']==_0x4e5c1a['id']&&_0x18c6ac['isInContent']&&'deletion'==_0x18c6ac['type']&&_0x18c6ac['subType']==_0x4b75a3&&Kt(_0x18c6ac,_0x15daad)&&(_0x4330a8(_0x18c6ac['getRanges'](),_0x69f25e)||_0x4330a8(_0x69f25e,_0x18c6ac['getRanges']()))){if(_0x364a9d){if(_0x18c6ac['commentThread']&&_0x18c6ac['commentThread']['length'])continue;for(const _0x507b13 of _0x18c6ac['getRanges']())_0x364a9d['isIntersectingWithRange'](_0x507b13)||_0x364a9d['addRange'](_0x507b13);_0x18c6ac['removeMarkers']();}else{_0x364a9d=_0x18c6ac;for(const _0x4805f1 of _0x69f25e)_0x18c6ac['isIntersectingWithRange'](_0x4805f1)||_0x18c6ac['addRange'](_0x4805f1);}}if(_0x364a9d)return _0x364a9d;_0x2b3018['clear']();for(const {suggestion:_0x389896,meta:_0x17734b}of this['_findSuggestions'](_0x69f25e,'deletion'))_0x17734b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17734b['containsRangeInObject']&&!_0x17734b['isInsideObject'])&&Kt(_0x389896,_0x15daad)&&_0x2b3018['add'](_0x389896);for(const _0x145928 of _0x2b3018){const _0xdb919=_0x145928['getRanges']();if(!_0x15daad||!_0x15daad['skipNestingCheck']){if(_0x69f25e['every'](_0x14ef8a=>_0xdb919['some'](_0x39c20d=>_0x39c20d['containsRange'](_0x14ef8a,!0x0))))return _0x145928;}(!_0x145928['attributes']||!_0x145928['attributes']['skipNestingCheck'])&&(_0xdb919['every'](_0x2c6340=>_0x69f25e['some'](_0x2cb273=>_0x2cb273['containsRange'](_0x2c6340,!0x0)))&&_0x145928['discard']());}const _0xc59d94=_0x1a89e5(),_0x1764cc=_0x4e5c1a['id'],_0x11c4a4='deletion:'+_0x4b75a3,_0x5a8a87=this['_setSuggestionData']({'id':_0xc59d94,'type':_0x11c4a4,'createdAt':new Date(),'authorId':_0x1764cc,'attributes':_0x15daad});for(const _0x4e25f0 of _0x69f25e)_0x4e25f0['detach'](),_0x4e25f0['isCollapsed']||'$graveyard'==_0x4e25f0['root']['rootName']||this['_addSuggestionMarker'](_0x11c4a4,_0xc59d94,_0x1764cc,_0x4e25f0,u['getMultiRangeId']());return _0x5a8a87;}['markAttributeChange'](_0x3fbfbd,_0x9fc9bc,_0xf1f99e,_0x1026be,_0x324b6f){if(_0x3fbfbd['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f28f0=this['editor']['plugins']['get']('Users')['me']['id'],_0x50232c=Array['from'](this['_suggestions']['values']())['filter'](_0x2e5ab1=>'attribute'==_0x2e5ab1['type']&&_0x2e5ab1['data']['key']==_0x9fc9bc&&_0x2e5ab1['isIntersectingWithRange'](_0x3fbfbd));if('default'===this['_trackFormatChanges']){const _0x305a57=this['_findSuggestions'](_0x3fbfbd,'insertion')['filter'](({meta:_0x4ee7c5})=>_0x4ee7c5['isOwn']&&!_0x4ee7c5['isInsideObject']&&!_0x4ee7c5['isNextTo'])['map'](({suggestion:_0x24007d})=>_0x24007d);_0x50232c['unshift'](..._0x305a57);}const _0x2ac641=new Map([[_0x3fbfbd,_0xf1f99e]]);for(const _0x2d1104 of _0x50232c){const _0x24e1e0='attribute'==_0x2d1104['type']?_0x2d1104['data']['oldValue']:void 0x0,_0x231de9=_0x2d1104['getFirstRange'](),_0x3de99e=Array['from'](_0x2ac641['keys']())['find'](_0x10987b=>_0x10987b['isIntersecting'](_0x231de9));if(!_0x3de99e)continue;const _0x2bfd28=_0x3de99e['getDifference'](_0x231de9);this['_isBlockAttribute'](_0x9fc9bc)&&'insertion'==_0x2d1104['type']&&0x0!=_0x2bfd28['length']||(_0x2ac641['delete'](_0x3de99e),_0x2bfd28['forEach'](_0x31c21b=>{_0x2ac641['set'](_0x31c21b,_0xf1f99e);}),'insertion'!=_0x2d1104['type']&&_0x24e1e0!=_0x1026be&&_0x2ac641['set'](_0x3de99e['getIntersection'](_0x231de9),_0x24e1e0));}const _0x4b5a3d=[];for(const [_0x3e00c7,_0xb1023]of _0x2ac641){const _0x441377=_0x1a89e5(),_0x2680ec={'key':_0x9fc9bc,'oldValue':_0xb1023,'newValue':_0x1026be};_0x9fc9bc['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':_0x9fc9bc});const _0x5344f1=('attribute:'+(_0x9fc9bc+'|'+Ft({'newValue':_0x1026be})))['substring'](0x0,0x3c),_0x1907ca=this['_setSuggestionData']({'id':_0x441377,'type':_0x5344f1,'data':_0x2680ec,'createdAt':new Date(),'authorId':_0x4f28f0,'attributes':_0x324b6f});_0x4b5a3d['push'](_0x1907ca),this['_addSuggestionMarker'](_0x5344f1,_0x441377,_0x4f28f0,_0x3e00c7);}return _0x4b5a3d;}['enableDefaultAttributesIntegration'](_0x5a2f2d){this['enableCommand'](_0x5a2f2d,(_0x3e7ff4,..._0x20e783)=>{this['_recordAttributeChanges'](()=>{_0x3e7ff4(..._0x20e783);});});}['registerBlockAttribute'](_0x554a3c){this['_blockAttributeKeys']['add'](_0x554a3c);}['registerInlineAttribute'](_0x35a7d6){this['_inlineAttributeKeys']['add'](_0x35a7d6);}['_getAttributeKey'](_0x1d9ebd){return'attribute'==_0x1d9ebd['type']?_0x1d9ebd['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xc040ba,_0x275093){const _0x15e48e=_0xc040ba['getFirstMarker']();this['_model']['change'](_0x3d7ee0=>{_0x3d7ee0['updateMarker'](_0x15e48e,{'range':_0x275093});});}['_addThreadToSuggestion'](_0x40d431){const _0x35a13d=_0x40d431['id'],_0x36922b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x35a13d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x36922b,'threadId':_0x35a13d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x5d7aed=this['_commentsRepository']['getCommentThread'](_0x35a13d);_0x5d7aed['unbind']('isRemovable'),_0x5d7aed['isRemovable']=!0x1,_0x40d431['commentThread']=_0x5d7aed;}['_checkSuggestionCorrectness'](_0x63ea3a,_0x2ed6f2,_0x9187ab,_0x1130d1){if(_0x63ea3a['type']!=_0x2ed6f2||_0x63ea3a['subType']!=_0x9187ab||_0x63ea3a['creator']['id']!=_0x1130d1)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5b6f25('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x4d399c,_0xcb66a4){const _0x3fe69f=_0x4d399c['getFirstRange']();if(_0xcb66a4['isEqual'](_0x3fe69f))_0x4d399c['removeMarkers']();else{if(_0x3fe69f['containsRange'](_0xcb66a4)){const _0x139e29=this['_model']['createPositionAt'](_0xcb66a4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d399c,this['_model']['createRange'](_0x3fe69f['start'],_0x139e29));const _0x39e1cb=_0x1a89e5(),_0x4b29eb=_0x4d399c['creator']['id'],_0x2ddb98=_0x4d399c['type']+':'+_0x4d399c['subType'];this['_setSuggestionData']({'id':_0x39e1cb,'type':_0x2ddb98,'createdAt':new Date(),'authorId':_0x4b29eb,'data':_0x4d399c['data'],'attributes':_0x4d399c['attributes']});const _0x27bfb7=this['_model']['createPositionAt'](_0xcb66a4['end']['parent'],'after'),_0x374c88=this['_model']['createRange'](_0x27bfb7,_0x3fe69f['end']);this['_addSuggestionMarker'](_0x2ddb98,_0x39e1cb,_0x4b29eb,_0x374c88);}else{if(_0x3fe69f['containsPosition'](_0xcb66a4['start'])){const _0x4a8174=this['_model']['createPositionAt'](_0xcb66a4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x4d399c,this['_model']['createRange'](_0x3fe69f['start'],_0x4a8174));}else{const _0x41a795=this['_model']['createPositionAt'](_0xcb66a4['end']['parent'],'after');this['_setSuggestionRange'](_0x4d399c,this['_model']['createRange'](_0x41a795,_0x3fe69f['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x459015){for(const {suggestion:_0x1a97c1,meta:_0x1e01d}of this['_findSuggestions'](_0x459015,'insertion')){if(!_0x1e01d['isOwn'])continue;const _0x27f380=_0x1a97c1['getRanges']();for(const _0xd40cd3 of _0x27f380)if(!_0x459015['getDifference'](_0xd40cd3)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1f9d0d){const _0x3e3399=this['editor']['plugins']['get']('Users')['getUser'](_0x1f9d0d);if(!_0x3e3399)throw new _0x5b6f25('track-changes-user-not-found',this);return _0x3e3399;}['_getExternalAuthor'](_0x3f8d0a){const _0x447c77=this['editor']['plugins']['get']('Users'),_0xbb6e85=_0x53a684('external:'+_0x3f8d0a),_0x3d91e0=_0x447c77['getUser'](_0xbb6e85);return _0x3d91e0||_0x447c77['addUser']({'id':_0xbb6e85,'name':_0x3f8d0a});}['_createSuggestion'](_0x2d4a18,_0x492088,_0x55251c,_0xf77f3d,_0x22aa20){const _0x2f94dc=this['_getAuthorFromId'](_0xf77f3d),_0x1e122e=this['_suggestionFactory']['buildSuggestion'](_0x2d4a18,_0x492088,_0x55251c,_0x2f94dc,_0x22aa20,_0x3f6259=>{this['_updateSuggestionData'](_0x55251c,{'attributes':_0x3f6259});const _0x76efe8=this['getSuggestion'](_0x55251c);this['_joinWithAdjacentSuggestions'](new Set([_0x76efe8])),this['_refreshSuggestionsChain'](new Set([_0x76efe8]));});return this['listenTo'](_0x1e122e,'accept',()=>{this['_updateSuggestionData'](_0x55251c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x1e122e,'discard',()=>{this['_updateSuggestionData'](_0x55251c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x55251c,_0x1e122e),this['_suggestionState']['set'](_0x1e122e,'notReady'),_0x1e122e;}['_splitMarkerName'](_0x536826){const _0x13f589=_0x536826['split'](':');return{'group':_0x13f589[0x0],'type':_0x13f589[0x1],'subType':_0x13f589['length']>=0x5?_0x13f589[0x2]:null,'id':_0x13f589['length']<0x5?_0x13f589[0x2]:_0x13f589[0x3],'authorId':_0x13f589['length']<0x5?_0x13f589[0x3]:_0x13f589[0x4],'markerCount':0x6==_0x13f589['length']?_0x13f589[0x5]:null};}['_breakSuggestionMarker'](_0x1e0d65,_0x31c2ae,_0xc6ebd){const _0x506fef=_0x1e0d65['getFirstRange'](),_0x457c57=_0x506fef['start'],_0x21d6f4=_0x506fef['end'];this['_setSuggestionRange'](_0x1e0d65,this['_model']['createRange'](_0x457c57,_0x31c2ae));const _0x2b83cd=_0x1a89e5(),_0x22303c=_0x1e0d65['creator']['id'],_0x3e7157=_0x1e0d65['type']+(_0x1e0d65['subType']?':'+_0x1e0d65['subType']:'');this['_setSuggestionData']({'id':_0x2b83cd,'type':_0x3e7157,'createdAt':new Date(),'authorId':_0x22303c,'originalSuggestionId':_0x1e0d65['id'],'attributes':_0x1e0d65['attributes'],'data':_0x1e0d65['data']});const _0x59e47d=this['_getAttributeKey'](_0x1e0d65);('formatBlock'==_0x1e0d65['type']||_0x59e47d&&this['_isBlockAttribute'](_0x59e47d))&&(_0xc6ebd=this['_model']['createPositionBefore'](_0xc6ebd['parent'])),this['_addSuggestionMarker'](_0x3e7157,_0x2b83cd,_0x22303c,this['_model']['createRange'](_0xc6ebd,_0x21d6f4));}['_findSuggestions'](_0x329cac,_0x592e17=null){const _0x5eb3dd=[],_0x5caad5=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x329cac)||(_0x329cac=[_0x329cac]);for(const _0x517517 of this['getSuggestions']()){if(!_0x517517['isInContent'])continue;if(_0x592e17&&_0x517517['type']!=_0x592e17)continue;let _0x42e7c7=!0x1;for(const _0x3323ea of _0x517517['getRanges']()){for(const _0x3bdbcf of _0x329cac){const _0x5bfb42=_0x3bdbcf['start']['isEqual'](_0x3323ea['end'])||_0x3bdbcf['end']['isEqual'](_0x3323ea['start']);if(_0x5bfb42||_0x3bdbcf['getIntersection'](_0x3323ea)){const _0xe93d6f=_0x3bdbcf['containsRange'](_0x3323ea)&&Vt(this['_model']['schema'],_0x3323ea['start'],_0x3bdbcf),_0x45831a=_0x3323ea['containsRange'](_0x3bdbcf)&&Vt(this['_model']['schema'],_0x3bdbcf['start'],_0x3323ea);_0x5eb3dd['push']({'suggestion':_0x517517,'meta':{'isOwn':_0x5caad5==_0x517517['author'],'isNextTo':_0x5bfb42,'isInsideObject':_0xe93d6f,'containsRangeInObject':_0x45831a}}),_0x42e7c7=!0x0;break;}}if(_0x42e7c7)break;}}return _0x5eb3dd;}['_addSuggestionMarker'](_0x14ebca,_0x2ade6d,_0x2bbf6f,_0x48963d,_0x3851e7){this['_model']['change'](_0x531d82=>{let _0xc67c3e='suggestion:'+_0x14ebca+':'+_0x2ade6d+':'+_0x2bbf6f;_0x3851e7&&(_0xc67c3e=_0xc67c3e+':'+_0x3851e7),_0x531d82['addMarker'](_0xc67c3e,{'range':_0x48963d,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1d3522){const _0x188e14=_0x1d3522['previous'],_0x1aeabe=_0x1d3522['next'];_0x1d3522['previous']=null,_0x1d3522['next']=null,null!=_0x188e14&&_0x188e14['next']==_0x1d3522&&(_0x188e14['next']=_0x1aeabe),null!=_0x1aeabe&&_0x1aeabe['previous']==_0x1d3522&&(_0x1aeabe['previous']=_0x188e14),'ready'==this['_suggestionState']['get'](_0x1d3522)&&(this['_suggestionState']['set'](_0x1d3522,'removed'),this['fire']('suggestionUnloaded',_0x1d3522,_0x188e14,_0x1aeabe));}['_setSuggestionData'](_0x2d7142){const _0x17990b=_0x2d7142['id'],_0x3f82fb=this['addSuggestionData'](_0x2d7142);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x454441=this['editor']['plugins']['get']('PendingActions'),_0x5ba2a2=_0x3f82fb['hasComments'],_0x277fa2=_0x3f82fb['subType']?_0x3f82fb['type']+':'+_0x3f82fb['subType']:_0x3f82fb['type'],_0x45683a=this['editor']['locale'],_0x577f68=_0x454441['add'](o(_0x45683a,'PENDING_ACTION_SUGGESTION')),_0x175a64={'id':_0x17990b,'type':_0x277fa2,'hasComments':_0x5ba2a2,'data':_0x2d7142['data']||null,'originalSuggestionId':_0x2d7142['originalSuggestionId']||null,'attributes':_0x3f82fb['attributes']};this['_adapter']['addSuggestion'](_0x175a64)['then'](_0x187dfe=>{_0x3f82fb['_saved']=!0x0,_0x454441['remove'](_0x577f68),_0x187dfe&&_0x187dfe['createdAt']&&(this['_suggestions']['get'](_0x17990b)['createdAt']=_0x187dfe['createdAt']);})['catch'](_0x5809d0=>{throw _0x1bf624('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x3f82fb['discard']();}),_0x3f82fb['stopListening'](),this['_suggestions']['delete'](_0x3f82fb['id']),this['_suggestionState']['delete'](_0x3f82fb),_0x5809d0;});}return _0x3f82fb;}['_isBlockAttribute'](_0x9dc1de){return this['_blockAttributeKeys']['has'](_0x9dc1de);}['_updateSuggestionData'](_0x295ca6,_0x1a4f79){const _0x19c6a8=this['editor']['plugins']['get']('PendingActions'),_0x4534d7=this['getSuggestion'](_0x295ca6);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4534d7['_saved']){const _0x44554a=_0x19c6a8['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x295ca6,_0x1a4f79)['then'](()=>{_0x19c6a8['remove'](_0x44554a);});}else _0x4534d7['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x295ca6,_0x1a4f79);});}}['_getSuggestionData'](_0x397acc){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5b6f25('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x397acc);}['_handleNewSuggestionMarker'](_0x212495){const {id:_0x3b0736,type:_0x2eae2f,subType:_0x560c6f,authorId:_0x1e8e2d}=this['_splitMarkerName'](_0x212495),_0x5c65b6=this['_suggestions']['get'](_0x3b0736)||this['_createSuggestion'](_0x2eae2f,_0x560c6f,_0x3b0736,_0x1e8e2d,{});switch(this['_checkSuggestionCorrectness'](_0x5c65b6,_0x2eae2f,_0x560c6f,_0x1e8e2d),this['_suggestionState']['get'](_0x5c65b6)){case'notReady':this['_getSuggestionData'](_0x3b0736)['then'](_0xc6ca51=>{let _0x28f806=Promise['resolve']();_0xc6ca51['hasComments']&&(_0x28f806=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3b0736})),_0x28f806['then'](()=>{this['addSuggestionData'](_0xc6ca51)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x5c65b6,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3b0736,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x5c65b6,'ready'),this['fire']('suggestionLoaded',_0x5c65b6);break;case'ready':this['fire']('suggestionChanged',_0x5c65b6);}return _0x5c65b6['addMarkerName'](_0x212495),_0x5c65b6;}['_refreshSuggestionsChain'](_0x271002){const _0x133fc7=Array['from'](_0x271002),_0x3a1244=_0x133fc7['filter'](_0x39b056=>'attribute'==_0x39b056['type']);this['_refreshAttributeSuggestionsChain'](_0x3a1244);const _0x2773f7=_0x133fc7['filter'](_0x344eb4=>!_0x344eb4['isMultiRange']&&'attribute'!=_0x344eb4['type']),_0x1c311b=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2b63c0=>!_0x2b63c0['isMultiRange']&&'attribute'!=_0x2b63c0['type']),_0x5e3c63=_0x1c311b['filter'](_0x32c620=>!_0x271002['has'](_0x32c620)),_0x40b93c=new Map(_0x1c311b['map'](_0x435944=>[_0x435944,this['_suggestionFactory']['getSuggestionCallback'](_0x435944['type'],_0x435944['subType'],'chain')])),_0x15db63=new Map(_0x1c311b['map'](_0xb60bf1=>[_0xb60bf1,_0xb60bf1['getFirstRange']()])),_0x4d9dd4=new Set(),_0x148009=new Set();for(let _0x449d02=0x0;_0x449d02<_0x2773f7['length'];_0x449d02++)_0x2976cf(_0x2773f7[_0x449d02],_0x2773f7,_0x449d02+0x1);for(let _0x42d80f=0x0;_0x42d80f<_0x2773f7['length'];_0x42d80f++)_0x2976cf(_0x2773f7[_0x42d80f],_0x5e3c63,0x0);const _0x5ab22c=new Set();for(let _0x3545b0=0x0;_0x3545b0<_0x2773f7['length'];_0x3545b0++){const _0x357ccb=_0x2773f7[_0x3545b0];!_0x148009['has'](_0x357ccb)&&_0x357ccb['previous']&&(_0x5ab22c['add'](_0x357ccb['previous']),_0x357ccb['previous']['next']===_0x357ccb&&(_0x357ccb['previous']['next']=null),_0x357ccb['previous']=null),!_0x4d9dd4['has'](_0x357ccb)&&_0x357ccb['next']&&(_0x5ab22c['add'](_0x357ccb['next']),_0x357ccb['next']['previous']===_0x357ccb&&(_0x357ccb['next']['previous']=null),_0x357ccb['next']=null);}function _0x2976cf(_0x49f261,_0x260137,_0x16af97){for(let _0xf6c837=_0x16af97;_0xf6c837<_0x260137['length'];_0xf6c837++){const _0x20ed63=_0x327f77(_0x49f261,_0x260137[_0xf6c837]);_0x20ed63&&(_0x20ed63[0x0]['next']=_0x20ed63[0x1],_0x20ed63[0x1]['previous']=_0x20ed63[0x0],_0x4d9dd4['add'](_0x20ed63[0x0]),_0x148009['add'](_0x20ed63[0x1]));}}function _0x327f77(_0xf3a127,_0x3d828c){if(_0xf3a127['author']['id']!==_0x3d828c['author']['id'])return null;const _0xff1b9c=_0x40b93c['get'](_0xf3a127)(_0xf3a127,_0x3d828c,_0x15db63['get'](_0xf3a127),_0x15db63['get'](_0x3d828c));if(!_0xff1b9c)return null;return _0x40b93c['get'](_0x3d828c)(_0xf3a127,_0x3d828c,_0x15db63['get'](_0xf3a127),_0x15db63['get'](_0x3d828c))?_0xff1b9c[0x1]['commentThread']&&_0xff1b9c[0x1]['commentThread']['length']?null:_0xff1b9c:null;}_0x5ab22c['size']&&this['_refreshSuggestionsChain'](_0x5ab22c);}['_refreshAttributeSuggestionsChain'](_0x26f3ba){if(0x0==_0x26f3ba['length'])return;const _0x484e53=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x504723=>'attribute'==_0x504723['type']&&_0x504723['_isDataLoaded']),_0x5a971f=[],_0x27fbc1=new Map();for(const _0x4694fd of _0x484e53){const _0x58d0d5=_0x53a684(_0x4694fd['attributes']);_0x27fbc1['has'](_0x58d0d5)||(_0x27fbc1['set'](_0x58d0d5,_0x5a971f['length']),_0x5a971f['push']([]));const _0x2ea71b=_0x27fbc1['get'](_0x58d0d5);_0x5a971f[_0x2ea71b]['push'](_0x4694fd);}!(function(){_0x5a971f['sort']((_0x5a536f,_0x30302d)=>{const _0x4dd2a8=_0x5a536f[0x0]['createdAt'],_0x6d7abe=_0x30302d[0x0]['createdAt'];return _0x4dd2a8==_0x6d7abe?_0x5a536f[0x0]['attributes']['groupId']<_0x30302d[0x0]['attributes']['groupId']?-0x1:0x1:_0x4dd2a8<_0x6d7abe?-0x1:0x1;});for(const _0x35e74f of _0x5a971f)_0x35e74f['sort']((_0x3bc9a8,_0x10385f)=>_0x3bc9a8['id']<_0x10385f['id']?-0x1:0x1);}());for(let _0x309625=0x0;_0x309625<_0x5a971f['length'];_0x309625++){if(0x0==_0x5a971f[_0x309625]['length'])continue;const _0x398e1d=[];for(let _0x4cfc73=_0x309625+0x1;_0x4cfc73<_0x5a971f['length'];_0x4cfc73++)0x0!=_0x5a971f[_0x4cfc73]['length']&&_0x95d967(_0x5a971f[_0x309625],_0x5a971f[_0x4cfc73])&&_0x398e1d['push'](_0x4cfc73);for(const _0x4b22d6 of _0x398e1d)_0x5a971f[_0x309625]=_0x5a971f[_0x309625]['concat'](_0x5a971f[_0x4b22d6]),_0x5a971f[_0x4b22d6]=[];}for(const _0x470a23 of _0x5a971f)for(let _0xf59d89=0x0;_0xf59d89<_0x470a23['length'];_0xf59d89++){const _0x2c2c97=_0x470a23[_0xf59d89+0x1]||null;_0x470a23[_0xf59d89]['next']!==_0x2c2c97&&(_0x470a23[_0xf59d89]['next']=_0x2c2c97);}for(const _0x35fcb5 of _0x5a971f)for(let _0x21b45c=0x0;_0x21b45c<_0x35fcb5['length'];_0x21b45c++){const _0x58190b=_0x35fcb5[_0x21b45c-0x1]||null;_0x35fcb5[_0x21b45c]['previous']!==_0x58190b&&(_0x35fcb5[_0x21b45c]['previous']=_0x58190b);}function _0x95d967(_0xcf1a55,_0x29e233){if(_0xcf1a55[0x0]['attributes']['groupId']!==_0x29e233[0x0]['attributes']['groupId']&&_0xcf1a55[0x0]['author']!==_0x29e233[0x0]['author'])return!0x1;if(!function(_0x2bbbc9,_0x1c440e){if(!_0x2bbbc9['hasComments']&&!_0x1c440e['hasComments'])return!0x0;if(_0x2bbbc9['hasComments']&&_0x1c440e['hasComments'])return!0x1;if(_0x2bbbc9['hasComments']&&_0x1c440e['createdAt']<_0x2bbbc9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1c440e['hasComments']&&_0x2bbbc9['createdAt']<_0x1c440e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xcf1a55[0x0],_0x29e233[0x0]))return!0x1;const _0x1978e6=Et(_0xcf1a55[0x0]['attributes'],'groupId'),_0x2dc6f8=Et(_0x29e233[0x0]['attributes'],'groupId');if(!_0x57bd10(_0x1978e6,_0x2dc6f8))return!0x1;return!!_0xcf1a55['every'](_0x51e266=>_0x29e233['some'](_0x5a9034=>_0x51e266['getFirstRange']()['isEqual'](_0x5a9034['getFirstRange']())))&&_0x29e233['every'](_0x3f4e1f=>_0xcf1a55['some'](_0x4ebab7=>_0x3f4e1f['getFirstRange']()['isEqual'](_0x4ebab7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x52661f){const _0x2a066f=Array['from'](_0x52661f),_0x36a214=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2915af=_0x36a214['filter'](_0x32bb71=>!_0x52661f['has'](_0x32bb71)),_0x53f5c0=new Map(_0x2a066f['map'](_0xe9bcd8=>[_0xe9bcd8,this['_suggestionFactory']['getSuggestionCallback'](_0xe9bcd8['type'],_0xe9bcd8['subType'],'join')])),_0x3950f1=new Map(_0x36a214['map'](_0x22a8d2=>[_0x22a8d2,_0x22a8d2['getRanges']()]));for(let _0x3d9b16=0x0;_0x3d9b16<_0x2a066f['length'];_0x3d9b16++){if(_0x401a6f(this,_0x2a066f[_0x3d9b16],_0x2a066f,_0x3d9b16+0x1))return!0x0;}for(let _0x1b7559=0x0;_0x1b7559<_0x2a066f['length'];_0x1b7559++){if(_0x401a6f(this,_0x2a066f[_0x1b7559],_0x2915af,0x0))return!0x0;}return!0x1;function _0x401a6f(_0x5245c5,_0x44bf39,_0x2978a6,_0x4d3f22){for(let _0x16027f=_0x4d3f22;_0x16027f<_0x2978a6['length'];_0x16027f++){const _0x92f09f=_0x2978a6[_0x16027f];if(_0x92f09f['type']!==_0x44bf39['type']||_0x92f09f['author']['id']!==_0x44bf39['author']['id']||_0x92f09f['subType']!==_0x44bf39['subType'])continue;if(!zt(_0x44bf39,_0x92f09f))continue;if('attribute'==_0x44bf39['type']&&_0x44bf39['data']['oldValue']!=_0x92f09f['data']['oldValue'])continue;if('attribute'==_0x44bf39['type']&&_0x5245c5['_isBlockAttribute'](_0x44bf39['data']['key']))continue;if('formatBlock'==_0x44bf39['type']){const _0x13169c=_0x5245c5['editor']['model'],_0x4856a9=_0x44bf39['getContainedElement']();if(_0x4856a9&&(_0x13169c['schema']['isObject'](_0x4856a9)||_0x13169c['schema']['isLimit'](_0x4856a9)))continue;}const _0x1f8756=_0x53f5c0['get'](_0x44bf39),_0x42d5d9=_0x3950f1['get'](_0x44bf39),_0x265274=_0x3950f1['get'](_0x92f09f),_0x34a040=_0x44bf39['commentThread']&&_0x44bf39['commentThread']['length'],_0x3fb343=_0x92f09f['commentThread']&&_0x92f09f['commentThread']['length'];if(!_0x34a040&&_0x1f8756(_0x265274,_0x42d5d9))return _0x5245c5['_joinSuggestions'](_0x92f09f,_0x44bf39),_0x3950f1['delete'](_0x44bf39),!0x0;if(!_0x3fb343&&_0x1f8756(_0x42d5d9,_0x265274))return _0x5245c5['_joinSuggestions'](_0x44bf39,_0x92f09f),_0x3950f1['delete'](_0x92f09f),!0x0;}return!0x1;}}['_joinSuggestions'](_0x59f634,_0x5727f1){if(_0x59f634['isMultiRange']){for(const _0x556e25 of _0x5727f1['getRanges']())_0x59f634['addRange'](_0x556e25);}else{const _0x45a9f0=_0x5727f1['getFirstRange']()['end'];this['_setSuggestionRange'](_0x59f634,this['_model']['createRange'](_0x59f634['getFirstRange']()['start'],_0x45a9f0));}_0x5727f1['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2f78d1,_0x120dc5,_0x54bf84){const _0x14e995=_0x2f78d1['startsWith']('format')||_0x2f78d1['startsWith']('attribute')?'FORMATTING':_0x2f78d1['toUpperCase']();return o(this['editor']['locale'],_0x120dc5+'_'+_0x14e995+'_SUGGESTION_ANNOUNCEMENT',_0x54bf84);}['_initAriaMarkerChangeAnnouncements'](){const _0x3b5cb5=this['editor'];if(!_0x3b5cb5['ui'])return;const {ariaLiveAnnouncer:_0xcca37c}=_0x3b5cb5['ui'];_0x589f3f(this['_model'],({left:_0x50b061,entered:_0xe0abb3})=>{for(const _0x38fcf9 of _0x50b061){const {group:_0x391388,type:_0x420b56}=this['_splitMarkerName'](_0x38fcf9['name']);if('suggestion'===_0x391388){_0xcca37c['announce'](this['_getMarkerAnnouncementText'](_0x420b56,'LEAVE'));break;}}for(const _0x96bea6 of _0xe0abb3){const {group:_0x109f9a,type:_0x57a4d0}=this['_splitMarkerName'](_0x96bea6['name']);if('suggestion'===_0x109f9a){_0xcca37c['announce'](this['_getMarkerAnnouncementText'](_0x57a4d0,'ENTER',_0x416dce(_0x21e663)));break;}}});}['_processAttributeChanges'](_0x9b7d53){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1579bf=this['editor'],_0x24db34=_0x1579bf['model']['document']['differ']['getChanges']();if(0x0==_0x24db34['length'])return!0x1;const _0x4e1907=[],_0x21b98a=_0x24db34['filter'](_0x126fc6=>'attribute'==_0x126fc6['type']),_0x5f1126=_0x24db34['filter'](_0x457188=>'insert'==_0x457188['type']&&'$text'!=_0x457188['name']),_0x419b23=_0x24db34['filter'](_0x5420fa=>'remove'==_0x5420fa['type']&&'$text'!=_0x5420fa['name']);for(const _0x31b598 of _0x21b98a)_0x4e1907['push']({'key':_0x31b598['attributeKey'],'newValue':_0x31b598['attributeNewValue'],'oldValue':_0x31b598['attributeOldValue'],'range':Jt(_0x31b598['range'],_0x1579bf['model'])});for(const _0x4adcd2 of _0x5f1126){const _0x4f069f=_0x419b23['find'](_0x5d5e95=>_0x5d5e95['position']['isEqual'](_0x4adcd2['position']));_0x4f069f&&_0x4e1907['push']({'key':m,'newValue':_0x4adcd2['name'],'oldValue':_0x4f069f['name'],'range':_0x1579bf['model']['createRangeOn'](_0x4adcd2['position']['nodeAfter'])});}return 0x0!=_0x4e1907['length']&&this['_reduceExistingSuggestions'](_0x9b7d53,_0x4e1907);}['_processAttributeSuggestions'](_0x3faebb){let _0x3bcdb7=!0x1;const _0x571b24=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x373962=>_0x373962['data']['newRange']&&_0x373962['name']['startsWith']('suggestion:attribute:'));for(const _0x155041 of _0x571b24){const {subType:_0x726697,id:_0x47a210}=this['_splitMarkerName'](_0x155041['name']),_0xd609b=_0x726697['split']('|')[0x0];for(const _0xc4d50f of this['getSuggestions']({'skipNotAttached':!0x0}))_0xc4d50f['id']!=_0x47a210&&'attribute'==_0xc4d50f['type']&&_0xc4d50f['data']&&_0xc4d50f['data']['key']==_0xd609b&&_0xc4d50f['getFirstRange']()['isIntersecting'](_0x155041['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xc4d50f,_0x155041['data']['newRange'],_0x3faebb),_0x3bcdb7=!0x0);}return _0x3bcdb7;}['_recordAttributeChanges'](_0x1ce9c9){this['_recordAttributeSuggestions']=!0x0,_0x1ce9c9();}['_isRegisteredAttribute'](_0x454db5){const _0x4e716c=this['_isBlockAttribute'](_0x454db5),_0x876347=this['_inlineAttributeKeys']['has'](_0x454db5);return _0x4e716c||_0x876347;}['_reduceExistingSuggestions'](_0x264aa8,_0x949bd3){if(0x0==_0x949bd3['length'])return!0x1;let _0x3ef0d8=!0x1;for(const _0x194741 of _0x949bd3){const _0x5ccf34=this['_findSuggestions'](_0x194741['range'],'attribute')['filter'](_0x3c38fe=>!_0x3c38fe['meta']['isNextTo'])['map'](_0x36fa17=>_0x36fa17['suggestion']),_0x36aa9d=_0x53a684({'newValue':_0x194741['newValue']});_0x5ccf34['filter'](_0x9fab2=>{const [_0x3ce04a,_0x38546a]=_0x9fab2['subType']['split']('|');return _0x3ce04a==_0x194741['key']&&_0x38546a!=_0x36aa9d;})['forEach'](_0x14cc37=>{this['_reduceSuggestionAttributeRange'](_0x14cc37,_0x194741['range'],_0x264aa8),_0x3ef0d8=!0x0;});}return _0x3ef0d8;}['_reduceSuggestionAttributeRange'](_0xfdc1fc,_0x5c677a,_0x11f14e){const _0x26cdd7=_0xfdc1fc['getFirstRange']()['getDifference'](_0x5c677a);0x0!==_0x26cdd7['length']?0x1!==_0x26cdd7['length']?this['_breakSuggestionMarker'](_0xfdc1fc,_0x5c677a['start'],_0x5c677a['end']):this['_setSuggestionRange'](_0xfdc1fc,_0x26cdd7[0x0]):_0x11f14e['removeMarker'](_0xfdc1fc['getFirstMarker']());}}class Ut{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x543228){this['_editor']=_0x543228,this['_model']=_0x543228['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x1058b8,_0x1447b5,_0x4d968f,_0x3f032c,_0x557925,_0x566de3){return new u(this['_model'],{'type':_0x1058b8,'subType':_0x1447b5,'id':_0x4d968f,'author':_0x3f032c,'creator':_0x3f032c,'attributes':_0x557925,'onAttributesChange':_0x566de3,'onAccept':(..._0x211208)=>this['getSuggestionCallback'](_0x1058b8,_0x1447b5,'accept')(..._0x211208),'onDiscard':(..._0x4b4b59)=>this['getSuggestionCallback'](_0x1058b8,_0x1447b5,'discard')(..._0x4b4b59)});}['registerCustomCallback'](_0x2dbe7e,_0x2da413,_0x20b0ba,_0x21f5f0){const _0x30c90f=_0x2dbe7e+':'+_0x2da413+':'+_0x20b0ba;this['_customCallbacks']['set'](_0x30c90f,_0x21f5f0);}['getSuggestionCallback'](_0xe3521a,_0x3264ac,_0x990c04){const _0x2e9991=_0xe3521a+':'+_0x3264ac+':'+_0x990c04;return this['_customCallbacks']['get'](_0x2e9991)||this['_defaultCallbacks']['get'](_0xe3521a+':'+_0x990c04);}['_registerDefaultCallbacks'](){const _0x3466b7=()=>!0x1,_0x10a9ce=_0x14ea00=>{_0x14ea00['sort']((_0x32c568,_0x2363a6)=>_0x32c568['start']['isBefore'](_0x2363a6['start'])?0x1:-0x1),this['_model']['change'](_0x9c2adc=>{for(const _0x1ae702 of _0x14ea00){let _0x3833c7;_0x3833c7=_0x1ae702['end']['isAtEnd']&&_0x1ae702['end']['parent']==_0x1ae702['start']['nodeAfter']?_0x9c2adc['createSelection'](_0x1ae702['start']['nodeAfter'],'on'):_0x9c2adc['createSelection'](_0x1ae702),this['_model']['deleteContent'](_0x3833c7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20a238=(_0x3c3b90,_0x49e721)=>{_0x49e721&&this['_model']['change'](_0xfce866=>{const {commandName:_0x151e15,commandParams:_0x922db3=[]}=_0x49e721,_0x11c19a=_0x3c3b90['map'](_0xb3a4df=>(Pt(_0xb3a4df)&&(_0xb3a4df=this['_model']['createRange'](_0xb3a4df['end'])),_0xb3a4df))['filter'](_0x49e2b0=>'$graveyard'!==_0x49e2b0['root']['rootName']);if(_0x11c19a['length']<0x1)return;const _0x122d1c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4f5375=>_0x586eec['fromRange'](_0x4f5375));_0xfce866['setSelection'](_0x11c19a);for(const _0x22b4b7 of this['_editor']['commands']['commands']())_0x22b4b7['refresh']();_0x922db3['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x151e15,..._0x922db3);const _0x9b9852=_0x122d1c['filter'](_0x48468e=>'$graveyard'!=_0x48468e['root']['rootName']);_0x9b9852['length']>0x0&&_0xfce866['setSelection'](_0x9b9852);for(const _0x9b9340 of _0x122d1c)_0x9b9340['detach']();});},_0x107a59=(_0x1cee74,_0x190844)=>0x1==_0x1cee74['length']&&0x1==_0x190844['length']&&_0x1cee74[0x0]['end']['isEqual'](_0x190844[0x0]['start']),_0x2ea59f=(_0x18e6a6,_0x2c4939,_0xe30cfb,_0xf2b25c)=>qt(_0x18e6a6,_0x2c4939,_0xe30cfb,_0xf2b25c)?[_0x18e6a6,_0x2c4939]:qt(_0x2c4939,_0x18e6a6,_0xf2b25c,_0xe30cfb)?[_0x2c4939,_0x18e6a6]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x3466b7),this['_defaultCallbacks']['set']('insertion:discard',_0x10a9ce),this['_defaultCallbacks']['set']('insertion:join',_0x107a59),this['_defaultCallbacks']['set']('insertion:chain',_0x2ea59f),this['_defaultCallbacks']['set']('deletion:accept',_0x10a9ce),this['_defaultCallbacks']['set']('deletion:discard',_0x3466b7),this['_defaultCallbacks']['set']('deletion:join',_0x107a59),this['_defaultCallbacks']['set']('deletion:chain',_0x2ea59f),this['_defaultCallbacks']['set']('formatInline:accept',_0x20a238),this['_defaultCallbacks']['set']('formatInline:discard',_0x3466b7),this['_defaultCallbacks']['set']('formatInline:join',_0x107a59),this['_defaultCallbacks']['set']('formatInline:chain',_0x3466b7),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20a238),this['_defaultCallbacks']['set']('formatBlock:discard',_0x3466b7),this['_defaultCallbacks']['set']('formatBlock:join',_0x107a59),this['_defaultCallbacks']['set']('formatBlock:chain',_0x3466b7),this['_defaultCallbacks']['set']('attribute:accept',_0x3466b7),this['_defaultCallbacks']['set']('attribute:discard',(_0x141256,_0x1a1994)=>{if(!_0x1a1994)return;const _0x4cd341=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x129bdf=>{if(_0x1a1994['key']==m)for(const _0x2fb7d7 of _0x141256){const _0x27194b=_0x2fb7d7['start']['nodeAfter'],_0x2deacc=_0x1a1994['oldValue'];_0x129bdf['rename'](_0x27194b,_0x2deacc);}else{if(_0x4cd341['_isBlockAttribute'](_0x1a1994['key'])){for(const _0x5a1229 of _0x141256)void 0x0!==_0x1a1994['oldValue']?_0x129bdf['setAttribute'](_0x1a1994['key'],_0x1a1994['oldValue'],_0x5a1229['start']['nodeAfter']):_0x129bdf['removeAttribute'](_0x1a1994['key'],_0x5a1229['start']['nodeAfter']);}else{for(const _0x58d06a of _0x141256)_0x1a1994['oldValue']?_0x129bdf['setAttribute'](_0x1a1994['key'],_0x1a1994['oldValue'],_0x58d06a):_0x129bdf['removeAttribute'](_0x1a1994['key'],_0x58d06a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x107a59);}}function Vt(_0x576d8f,_0x2592c7,_0x4d0a1b){for(const _0x3ce884 of _0x2592c7['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3ce884['root']==_0x3ce884)return!0x1;if(!_0x4d0a1b['containsItem'](_0x3ce884))return!0x1;if(_0x576d8f['isObject'](_0x3ce884)||_0x576d8f['isLimit'](_0x3ce884))return!0x0;}return!0x1;}function Pt(_0x40a18){return _0x40a18['end']['parent']==_0x40a18['start']['nodeAfter']&&_0x40a18['end']['isAtStart'];}function Gt(_0x1b4372,_0x511b2f,_0x395206,_0x2ea342){const _0x29fddb=_0x225c96=>!_0x225c96['item']['is']('$textProxy')&&!_0x2ea342['isObject'](_0x225c96['item']),_0xdac91a=_0x1b4372['start']['getLastMatchingPosition'](_0x29fddb),_0x5468d3=_0x1b4372['end']['getLastMatchingPosition'](_0x29fddb,{'direction':'backward'});return(!_0x1b4372['start']['isEqual'](_0xdac91a)||!_0x1b4372['end']['isEqual'](_0x5468d3))&&(_0xdac91a['isBefore'](_0x5468d3)?_0x395206['updateMarker'](_0x511b2f,{'range':_0x395206['createRange'](_0xdac91a,_0x5468d3)}):_0x395206['removeMarker'](_0x511b2f),!0x0);}function Ft(_0x682fd){return _0x53a684(_0x682fd);}function Lt(_0x28e6c6){const _0x198fd4=_0x28e6c6['start']['nodeAfter'];return _0x198fd4&&_0x198fd4['is']('element');}function Jt(_0x2d4bc6,_0x1e58a8){return null==_0x2d4bc6['end']['nodeBefore']&&_0x2d4bc6['end']['parent']==_0x2d4bc6['start']['nodeAfter']?Ht(_0x2d4bc6['start']['nodeAfter'],_0x1e58a8):_0x2d4bc6;}function Ht(_0xec4401,_0x348266){const _0x47a976=_0x348266['schema']['isObject'](_0xec4401)||_0x348266['schema']['isSelectable'](_0xec4401);return _0x348266['createRange'](_0x348266['createPositionAt'](_0xec4401,'before'),_0x47a976?_0x348266['createPositionAfter'](_0xec4401):_0x348266['createPositionAt'](_0xec4401,'end'));}function qt(_0x41367a,_0x5abfc0,_0x2bd7bb,_0x24e77b){return!!zt(_0x41367a,_0x5abfc0)&&_0x2bd7bb['end']['isEqual'](_0x24e77b['start']);}function zt(_0x17e36e,_0x786bb){if(!_0x17e36e['_isDataLoaded']||!_0x786bb['_isDataLoaded'])return!0x1;const _0x27e299=new Set(Object['keys'](_0x17e36e['attributes'])),_0x46300b=new Set(Object['keys'](_0x786bb['attributes']));if(_0x27e299['delete']('groupId'),_0x46300b['delete']('groupId'),0x0==_0x27e299['size']&&0x0==_0x46300b['size'])return!0x0;if(_0x27e299['size']!=_0x46300b['size'])return!0x1;const _0x4b6d4d={..._0x17e36e['attributes']},_0x22a142={..._0x786bb['attributes']};return delete _0x4b6d4d['groupId'],delete _0x22a142['groupId'],JSON['stringify'](_0x4b6d4d)==JSON['stringify'](_0x22a142);}function Kt(_0x2480cb,_0x586d7c){const _0x1cfb54=Wt(_0x2480cb['attributes']),_0x4d5f89=Wt(_0x586d7c);if(!_0x2480cb['_isDataLoaded'])return!0x1;for(const _0x39a40d of Object['keys'](_0x4d5f89))if(!_0x57bd10(_0x1cfb54[_0x39a40d],_0x4d5f89[_0x39a40d]))return!0x1;return!0x0;}function Wt(_0x56daff){const _0x10ce18=Object['assign']({},_0x56daff);return delete _0x10ce18['skipNestingCheck'],delete _0x10ce18['tablePasteChainId'],_0x10ce18;}class Ce extends/* #__PURE__ -- @preserve */
25
+ _0x1650d1(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x48275c,_0x2c4662,_0x31b155,_0x1046ca){super(),this['model']=_0x2c4662,this['view']=_0x31b155,this['commentThreadController']=_0x1046ca,this['_editor']=_0x48275c,this['_acceptCommand']=_0x48275c['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x48275c['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x4e7cac,_0xbaa16e)=>_0x4e7cac||_0xbaa16e),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x468a62=>_0x468a62&&this['_editor']['model']['canEditAt'](_0x2c4662['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3e6993=>_0x3e6993&&this['_editor']['model']['canEditAt'](_0x2c4662['getRanges']())),this['_pendingAction']=null,_0x31b155['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x31b155,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x31b155,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x31b155,'change:isDirty',()=>{_0x31b155['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 _0x35c0e0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x35c0e0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class as extends _0x1a930b{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5c51f0,_0x37e1bc,_0x5aed4e,_0x2aebe0){super(_0x5c51f0),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2f60bd(_0x5c51f0,o(_0x5c51f0,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x37e1bc['authoredAt']),this['bind']('authoredAt')['to'](_0x37e1bc),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',_0x37e1bc,'authoredAt',this,'descriptionParts',(_0x31c9eb,_0x2ac4a7,_0x121eb1)=>{const _0x34832f=_0x121eb1['map'](_0x3c04b8=>ns(_0x3c04b8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x31c9eb-0x1,_0x37e1bc['author']['name'],_0x2ac4a7?_0x2aebe0['formatDateTime'](_0x2ac4a7):'',new DOMParser()['parseFromString'](_0x34832f,'text/html')['body']['textContent']]);}),this['focusables']=new _0xaceeb9(),this['focusTracker']=new _0x46cbc8(),this['keystrokes']=new _0x4cf71c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4102db=>_0x4102db['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x37e1bc,this['_localUser']=_0x5aed4e,this['_config']=_0x2aebe0,_0x2aebe0['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2b79c1(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0xd1e864}=this['_config'];this['commentsListView']=new _0xd1e864(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',_0x4596dc=>_0x4596dc+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x59a21a,_0x1387cb)=>_0x59a21a||!!_0x1387cb);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x2f3fbd}=this['_config'],_0x4e279f=new _0x2f3fbd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1b864f=_0x4e279f['commentInputView'];return _0x4e279f['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1b864f,'value',(_0x5ab620,_0x5e8a30,_0x213c99)=>!!_0x213c99||_0x5ab620&&!_0x5e8a30),_0x1b864f['on']('submit',(_0xb864c8,_0x291981)=>{this['fire']('addComment',_0x291981),_0x1b864f['editor']['setData']('');}),_0x1b864f['on']('cancel',()=>this['focus']()),_0x1b864f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x4e279f;}}class pe extends as{['suggestionView'];['_descriptionElement'];constructor(_0x4f1e09,_0xd8f80b,_0x4b6298,_0x4d7815){super(_0x4f1e09,_0xd8f80b,_0x4b6298,_0x4d7815),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x317f3d=>_0x317f3d&&_0x317f3d[0x0]?_0x317f3d[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x56e752,_0x47a89c)=>{let _0x582b93='';for(const _0x39d334 of _0x56e752)_0x582b93+='<p>'+ns(_0x39d334['content'],_0x39d334['color'])+'</p>';return _0x47a89c?_0x582b93:_0x465eab(_0x582b93,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x4d7815['SuggestionView'](_0x4f1e09,_0xd8f80b,{'formatDateTime':_0x4d7815['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 _0x5d9642=this['bindTemplate'],_0x4de048=[this['suggestionView']];return this['commentsListView']&&_0x4de048['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4de048['push'](this['commentThreadInputView']),_0x4de048['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x5d9642['if']('isActive','ck-suggestion-wrapper--active'),_0x5d9642['to']('type',_0x112601=>'ck-suggestion-'+_0x112601),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':_0x5d9642['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4de048};}['render'](){super['render'](),this['commentsListView']&&(this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this)),this['commentThreadInputView']&&(this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this));}}class fe extends _0x1a930b{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x17da1e,_0x39d478,_0x54440b){super(_0x17da1e),this['_model']=_0x39d478,this['_config']=_0x54440b,this['set']('description',''),this['bind']('authoredAt')['to'](_0x39d478),this['acceptButton']=this['_createButton'](o(_0x17da1e,'Accept\x20suggestion'),_0x59567f['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x17da1e,'Discard\x20suggestion'),_0x59567f['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x4c2606(_0x17da1e,_0x39d478['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0xaceeb9([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x46cbc8(),this['keystrokes']=new _0x4cf71c(),this['focusCycler']=new ts({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x17d607=>_0x17d607['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x4c08f3=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x4c08f3['innerHTML']=this['description'],this['on']('change:description',(_0x588e07,_0x2a871b,_0x6e20c9)=>{_0x4c08f3['innerHTML']=_0x6e20c9;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x3460f9=this['bindTemplate'],_0x33e42e=[{'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':_0x3460f9['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x3460f9['to']('authoredAt',_0x522b27=>this['_config']['formatDateTime'](_0x522b27))}]}]},{'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']&&_0x33e42e['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':_0x33e42e}]};}['focus'](){this['element']['focus']();}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['_createButton'](_0x4d0fa2,_0x29bdd9,_0x35d342,_0x8f71e0,_0xe9b0fd){const _0xb6b372=new _0xc3fda0(this['locale']);return _0xb6b372['set']({'label':_0x4d0fa2,'icon':_0x29bdd9,'tooltip':!0x0,'tooltipPosition':_0xe9b0fd}),_0xb6b372['extendTemplate']({'attributes':{'class':_0x35d342}}),_0xb6b372['on']('execute',()=>{this['fire'](_0x8f71e0,this['_model']['id']);}),_0xb6b372;}['_setupKeyboardNavigation'](){const _0x2204c1=this['element'];this['keystrokes']['listenTo'](_0x2204c1);for(const _0xfc23fa of this['focusables'])this['focusTracker']['add'](_0xfc23fa['element']),this['keystrokes']['listenTo'](_0xfc23fa['element']);this['keystrokes']['set']('enter',(_0xc5ecc4,_0xe58b8a)=>{_0x2204c1===_0xc5ecc4['target']&&(this['focusCycler']['focusFirst'](),_0xe58b8a());}),this['keystrokes']['set']('esc',(_0x48cd6d,_0x1ec89f)=>{_0x2204c1!==_0x48cd6d['target']&&(this['focus'](),_0x1ec89f());});}}var we='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2025,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M6.182\x205.514a.643.643\x200\x200\x200-.636.64v-.001a.636.636\x200\x200\x200\x20.636.639h5.682a.641.641\x200\x200\x200\x20.636-.638.637.637\x200\x200\x200-.636-.64H6.182Z\x22/><path\x20d=\x22M6.182\x208.5a.642.642\x200\x200\x200-.588.882.636.636\x200\x200\x200\x20.588.395h5.682a.641.641\x200\x200\x200\x20.636-.639.635.635\x200\x200\x200-.636-.638H6.182Z\x22/><path\x20d=\x22M6.18\x2011.5a.64.64\x200\x200\x200\x200\x201.278h3.133a.64.64\x200\x200\x200\x200-1.278H6.18Z\x22/><path\x20d=\x22m11.772\x2018.308.154-.23c-.195-.098-.304-.192-.328-.28-.024-.09\x200-.274.076-.551.062-.166.099-.296.11-.393a2.934\x202.934\x200\x200\x200\x200-.479c-.137-.41-.2-.685-.186-.83.013-.145.117-.335.313-.57l4.465-6.207c.356-.6\x201.059-.56\x202.11.118\x201.05.68\x201.443\x201.272\x201.177\x201.772l-3.876\x206.833c-.105.27-.22.444-.347.515-.128.07-.4.119-.813.139a2.954\x202.954\x200\x200\x200-.487.21c-.127.09-.244.193-.347.31-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.739Zm-.184.274\x201.039.727-.26.34h-1.496l.717-1.067Z\x22/><path\x20clip-rule=\x22evenodd\x22\x20d=\x22M3.272\x201A1.28\x201.28\x200\x200\x200\x202\x202.28v14.439a1.276\x201.276\x200\x200\x200\x201.272\x201.28h6.838a2.13\x202.13\x200\x200\x201\x20.003-.61c.024-.18.066-.363.113-.534.012-.046.027-.092.043-.136.011-.029.02-.052.025-.069v-.008a7.395\x207.395\x200\x200\x201-.042-.142H3.5V2.46s11\x20.002\x2011\x20.005v6.341l.627-.872c.204-.32.49-.614.873-.819V2.281c0-.707-.569-1.28-1.272-1.28L3.272\x201ZM16\x209.29l-1.5\x202.085V16.5h-2.708c.005.118.002.236-.007.354a.904.904\x200\x200\x201-.013.075l-.001.005a3.108\x203.108\x200\x200\x201-.097.312c-.027.101-.048.19-.062.266a.734.734\x200\x200\x200-.014.287.25.25\x200\x200\x200\x20.068.105.65.65\x200\x200\x200\x20.088.074l.017.011.016.01h.175L14.73\x2018c.697\x200\x201.271-.573\x201.271-1.281v-7.43Z\x22/></svg>\x0a';class d extends _0x1a323e{['licenseKey'];['_licenseKeyCheckInterval'];['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x568dab,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd997cf){super(_0xd997cf),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x156976=this['editor']['config'];_0x156976['define']('trackChanges.SuggestionThreadView',pe),_0x156976['define']('trackChanges.SuggestionView',fe),_0x156976['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x156976['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x4e3d7f,_0x597e11){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x11ef5d,_0x4384ea]of this['_handleControllerBuffer']){const _0x15351b=this['_suggestionToController']['has'](_0x11ef5d);_0x15351b||_0x4384ea?_0x15351b&&_0x4384ea&&this['_destroyController'](_0x11ef5d):this['_initializeController'](_0x11ef5d);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x4e3d7f,_0x597e11);}['init'](){const _0x46c463=this['editor'],_0x362bd1=_0x46c463['plugins']['get']('TrackChangesEditing'),_0x2276be=_0x46c463['plugins']['get']('Annotations'),_0x2562b5=_0x46c463['plugins']['get']('EditorAnnotations'),_0x91b76=_0x46c463['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2562b5['addSourceCollector'](()=>{const _0x15b544=[];for(const [_0x42b3a2,_0x3c762f]of Array['from'](this['_suggestionToController'])){const _0x41e0e2=_0x42b3a2['getAllAdjacentSuggestions'](),_0x20b77e=[];for(const _0x287f70 of _0x41e0e2){if(!_0x287f70['isInContent'])continue;if(_0x287f70['isMultiRange']){_0x20b77e['push'](..._0x287f70['getRanges']());continue;}const _0xa103b=_0x287f70['getFirstRange']();if(_0x20b77e['length']>0x0){const _0x1334e0=_0x20b77e[0x0]['getJoined'](_0xa103b);if(_0x1334e0){_0x20b77e[0x0]=_0x1334e0;continue;}}_0x20b77e['push'](_0xa103b);}_0x15b544['push']([_0x3c762f['view'],_0x20b77e]);}return _0x15b544;}),this['listenTo'](_0x362bd1,'suggestionLoaded',(_0x5dd75e,_0x218e21)=>{this['listenTo'](_0x218e21,'change:previous',(_0x1699ab,_0x54c1a3,_0x79e1a6,_0x4ee892)=>{_0x218e21['isInContent']&&(null==_0x79e1a6?(this['_updateController'](_0x4ee892['head']),this['_handleSuggestionControllerDelayed'](_0x218e21,!0x1)):(this['_updateController'](_0x79e1a6['head']),null==_0x4ee892&&this['_handleSuggestionControllerDelayed'](_0x218e21,!0x0)));}),null!==_0x218e21['previous']?this['_updateController'](_0x218e21['head']):this['_handleSuggestionControllerDelayed'](_0x218e21,!0x1);}),this['listenTo'](_0x362bd1,'suggestionUnloaded',(_0x2463aa,_0x1ac761,_0x31a34a)=>{this['stopListening'](_0x1ac761,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1ac761),this['_suggestionToController']['has'](_0x1ac761)&&this['_destroyController'](_0x1ac761),_0x31a34a&&this['_updateController'](_0x31a34a['head']);}),this['listenTo'](_0x362bd1,'suggestionChanged',(_0x33d522,_0x663cc3)=>{this['_updateController'](_0x663cc3);}),this['listenTo'](_0x2276be,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x91b76,'addComment',(_0x1174d4,{threadId:_0x3130ab,isFromAdapter:_0x35b51c})=>{if(_0x35b51c||!_0x362bd1['hasSuggestion'](_0x3130ab))return;const _0x54c5c=_0x362bd1['getSuggestion'](_0x3130ab);this['_suggestionToController']['get'](_0x54c5c)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'}),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x578657=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x374d23;for(const _0x413b8b in _0x578657){const _0x4c6f4d=_0x413b8b,_0x591955=_0x578657[_0x4c6f4d];if('trackChangesLicenseKeyValid'==_0x591955||'trackChangesLicenseKeyInvalid'==_0x591955||'trackChangesLicenseKeyExpired'==_0x591955||'trackChangesLicenseKeyDomainLimit'==_0x591955||'trackChangesLicenseKeyNotAllowed'==_0x591955||'trackChangesLicenseKeyEvaluationLimit'==_0x591955||'trackChangesLicenseKeyTrialLimit'==_0x591955||'trackChangesLicenseKeyUsageLimit'==_0x591955){delete _0x578657[_0x4c6f4d],_0x374d23=_0x591955,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'trackChangesLicenseKeyInvalid'==_0x374d23&&_0x578657['_showLicenseError']('invalid'),'trackChangesLicenseKeyExpired'==_0x374d23&&_0x578657['_showLicenseError']('expired'),'trackChangesLicenseKeyDomainLimit'==_0x374d23&&_0x578657['_showLicenseError']('domainLimit'),'trackChangesLicenseKeyNotAllowed'==_0x374d23&&_0x578657['_showLicenseError']('featureNotAllowed','TrackChanges'),'trackChangesLicenseKeyEvaluationLimit'==_0x374d23&&_0x578657['_showLicenseError']('evaluationLimit'),'trackChangesLicenseKeyTrialLimit'==_0x374d23&&_0x578657['_showLicenseError']('trialLimit'),'trackChangesLicenseKeyUsageLimit'==_0x374d23&&_0x578657['_showLicenseError']('usageLimit');},0x3e8);}['_refreshActiveMarkers'](){const _0x3aa99a=this['editor']['plugins']['get']('Annotations'),_0x5595c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40854a=Array['from'](_0x3aa99a['activeAnnotations'],_0x3a1265=>_0x3a1265['innerView'])['filter'](_0x831e15=>this['_viewToController']['has'](_0x831e15)),_0x1ac3ff=[];for(const _0x1bbafd of _0x40854a){const _0x2278de=this['_viewToController']['get'](_0x1bbafd)['model']['getAllAdjacentSuggestions']();_0x1ac3ff['push'](..._0x2278de['reduce']((_0x28e3e6,_0x4761fb)=>[..._0x28e3e6,..._0x4761fb['getMarkerNames']()],[]));}_0x5595c1['activeMarkers']=_0x1ac3ff;}['_addUIComponentsToFactory'](){const _0x830784=this['editor'],_0x1c2379=_0x830784['locale'],_0x241f62=o(_0x1c2379,'Track\x20changes'),_0x57890d=new _0x598863([{'type':'switchbutton','model':new _0x4028b7({'withText':!0x0,'isToggleable':!0x0,'label':_0x241f62,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x4028b7({'withText':!0x0,'label':o(_0x1c2379,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4028b7({'withText':!0x0,'label':o(_0x1c2379,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4028b7({'withText':!0x0,'label':o(_0x1c2379,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x4028b7({'withText':!0x0,'label':o(_0x1c2379,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);_0x830784['plugins']['has']('TrackChangesPreview')&&_0x57890d['addMany']([{'type':'separator'},{'type':'button','model':new _0x4028b7({'withText':!0x0,'label':o(_0x1c2379,'Preview\x20final\x20content'),'commandName':'previewFinalContent','role':'menuitem'})}]);for(const _0x2fc1e6 of _0x57890d)if(ke(_0x2fc1e6)){const _0x2deb7a=_0x830784['commands']['get'](_0x2fc1e6['model']['commandName']);_0x2fc1e6['model']['bind']('isOn','isEnabled')['to'](_0x2deb7a,'value','isEnabled');}_0x830784['ui']['componentFactory']['add']('trackChanges',_0x24437c=>this['_createToolbarButton'](_0x24437c,_0x57890d,_0x241f62)),_0x830784['ui']['componentFactory']['add']('menuBar:trackChanges',_0x47e748=>this['_createMenuBarMenu'](_0x47e748,_0x57890d,_0x241f62));}['_createToolbarButton'](_0x379c53,_0x5ae6f2,_0x36792c){const _0x3027f3=_0x28298e(_0x379c53,_0x5169d1),_0x467e84=this['editor']['commands']['get']('trackChanges');_0x3027f3['buttonView']['set']({'tooltip':_0x36792c,'label':_0x36792c,'icon':we}),_0x3027f3['buttonView']['bind']('isOn')['to'](_0x467e84,'value'),_0x3027f3['buttonView']['on']('execute',()=>{_0x467e84['execute'](),this['editor']['editing']['view']['focus']();}),_0x1eac00(_0x3027f3,_0x5ae6f2,{'role':'menu'});const _0x30d6a5=[];for(const _0x1a515d of _0x5ae6f2)ke(_0x1a515d)&&_0x30d6a5['push'](this['editor']['commands']['get'](_0x1a515d['model']['commandName']));const _0x3a7fa5=_0x3027f3['buttonView'];return _0x3a7fa5['actionView']['unbind']('isEnabled'),_0x3a7fa5['arrowView']['unbind']('isEnabled'),_0x3a7fa5['actionView']['bind']('isEnabled')['to'](_0x467e84,'isEnabled'),_0x3a7fa5['arrowView']['bind']('isEnabled')['toMany'](_0x30d6a5,'isEnabled',(..._0x322ae5)=>_0x322ae5['some'](_0x2ae2ec=>_0x2ae2ec)),_0x3027f3['on']('execute',_0x317a1b=>{this['editor']['execute'](_0x317a1b['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3027f3;}['_createMenuBarMenu'](_0x30f016,_0x8906f7,_0x4af289){const _0x2cb141=new _0x3762ef(_0x30f016),_0x5b2e37=this['editor']['commands']['get']('trackChanges');_0x2cb141['buttonView']['set']({'label':_0x4af289,'icon':we});const _0x3e7e92=new _0x1c9a5c(_0x30f016);for(const _0x255fa4 of _0x8906f7){if('separator'==_0x255fa4['type']){_0x3e7e92['items']['add'](new _0x2b241a(_0x30f016));continue;}const _0x1eff02=new _0x3d1723(_0x30f016,_0x2cb141),_0x39871e=new _0x3cc692(_0x30f016),_0x2ba2e3=_0x255fa4['model'];_0x39871e['bind'](...Object['keys'](_0x2ba2e3))['to'](_0x2ba2e3),_0x39871e['delegate']('execute')['to'](_0x2cb141),_0x39871e['on']('execute',()=>{this['editor']['execute'](_0x2ba2e3['commandName']),this['editor']['editing']['view']['focus']();}),_0x1eff02['children']['add'](_0x39871e),_0x3e7e92['items']['add'](_0x1eff02);}return _0x2cb141['bind']('isEnabled')['to'](_0x5b2e37,'isEnabled'),_0x2cb141['panelView']['children']['add'](_0x3e7e92),_0x2cb141;}['_initializeController'](_0x1d9b31){const _0x5ea4e5=this['editor'],_0x442ca2=_0x5ea4e5['config'],_0x3de478=_0x5ea4e5['plugins']['get']('Annotations'),_0x14c1c8=_0x5ea4e5['plugins']['get']('CommentsRepository'),_0x451c92=_0x5ea4e5['plugins']['get']('EditorAnnotations'),_0x128b16=_0x5ea4e5['plugins']['get'](_0x568dab)['me'],_0x21734a=_0x442ca2['get']('trackChanges')['SuggestionThreadView'],_0x283e68=_0x442ca2['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2b691d,CommentThreadInputView:_0x1d75ca}=_0x5ea4e5['plugins']['get']('CommentsUI');let _0x2cd146,_0x4a1832,_0x139232;this['_annotationViews']['has'](_0x1d9b31['id'])?(_0x4a1832=this['_annotationViews']['get'](_0x1d9b31['id']),_0x2cd146=_0x4a1832['mainView']):(_0x2cd146=new _0x21734a(_0x5ea4e5['locale'],_0x1d9b31,_0x128b16,{'disableComments':this['_disableComments'],'editorConfig':{..._0x442ca2['get']('comments.editorConfig'),'licenseKey':_0x442ca2['get']('licenseKey')},'maxCommentsWhenCollapsed':_0x442ca2['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x442ca2['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x442ca2['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x30f3f3(_0x442ca2['get']('locale')),'CommentView':_0x442ca2['get']('comments')['CommentView'],'CommentsListView':_0x2b691d,'CommentThreadInputView':_0x1d75ca,'SuggestionView':_0x283e68}),_0x2cd146['suggestionView']['acceptButton']['on']('execute',()=>{_0x5ea4e5['editing']['view']['focus']();}),_0x2cd146['suggestionView']['discardButton']['on']('execute',()=>{_0x5ea4e5['editing']['view']['focus']();}),_0x4a1832=_0x3de478['createAnnotationView'](this['editor']['locale'],_0x2cd146),_0x4a1832['bind']('isDirty')['to'](_0x2cd146,'isDirty'),_0x4a1832['bind']('length')['to'](_0x2cd146),_0x4a1832['bind']('type')['to'](_0x2cd146,'type',_0x46f36c=>'suggestion-'+_0x46f36c),_0x2cd146['on']('escape',()=>{_0x139232['fire']('escape');}),this['_annotationViews']['set'](_0x1d9b31['id'],_0x4a1832));const _0x3afb1f=_0x14c1c8['createCommentThreadController'](_0x1d9b31['commentThread'],_0x2cd146),_0x1f5fd4=new Ce(_0x5ea4e5,_0x1d9b31,_0x2cd146,_0x3afb1f),_0x4f9edf=_0x1d9b31['getAllAdjacentSuggestions']()['filter'](_0x1c01b0=>_0x1c01b0['isInContent']);_0x2cd146['descriptionParts']=_0x5ea4e5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4f9edf),this['_suggestionToController']['set'](_0x1d9b31,_0x1f5fd4),this['_viewToController']['set'](_0x2cd146,_0x1f5fd4),_0x139232=_0x3de478['createAnnotation']({'view':_0x4a1832,'target':()=>{const _0x227a33=[],_0x124c0f=_0x1d9b31['getAllAdjacentSuggestions']()['filter'](_0x591d88=>_0x591d88['isInContent']);for(const _0x330a4f of _0x124c0f)_0x227a33['push'](..._0x330a4f['getMarkers']());return _0x3d0e7a(_0x5ea4e5['editing'],_0x227a33);},'type':()=>'suggestion-'+_0x1f5fd4['view']['type']}),_0x14c1c8['_bindAnnotationToEditors'](_0x2cd146,_0x139232),_0x3de478['add'](_0x139232),_0x451c92['registerAnnotation'](_0x139232);}['_destroyController'](_0x392388){const _0x2a2ef7=this['editor']['plugins']['get']('CommentsRepository'),_0x485726=this['editor']['plugins']['get']('Annotations'),_0xd0e0d7=this['_suggestionToController']['get'](_0x392388),_0x3f5ff7=_0xd0e0d7['view'],_0x5a70d0=_0x485726['getByInnerView'](_0x3f5ff7);_0x2a2ef7['_unbindEditors'](_0x3f5ff7),_0x5a70d0&&_0x485726['remove'](_0x5a70d0),this['_suggestionToController']['delete'](_0x392388),this['_viewToController']['delete'](_0x3f5ff7),_0xd0e0d7['destroy']();}['_updateController'](_0x186565){if(!_0x186565['isInContent']||!this['_suggestionToController']['has'](_0x186565))return;const _0x3b7c8a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x149ed4=this['_suggestionToController']['get'](_0x186565),_0x496efd=_0x186565['getAllAdjacentSuggestions']();_0x149ed4['view']['descriptionParts']=_0x3b7c8a['descriptionFactory']['getDescriptions'](_0x496efd);}['destroy'](){for(const _0x39b4e2 of this['_suggestionToController']['keys']())this['_destroyController'](_0x39b4e2);for(const _0x5a5026 of this['_annotationViews']['values']())_0x5a5026['mainView']['destroy']();super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function ke(_0x3b426f){return'model'in _0x3b426f;}class k extends _0x1a323e{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}set['adapter'](_0x1b8282){this['editor']['plugins']['get'](p)['adapter']=_0x1b8282;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x30233d){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x30233d);}['getSuggestions']({skipNotAttached:_0x599beb=!0x1,toJSON:_0x26e3c5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x599beb,'toJSON':_0x26e3c5});}['getSuggestion'](_0xffcfa){return this['editor']['plugins']['get'](p)['getSuggestion'](_0xffcfa);}}const w=['Pagination'];class T extends _0x1a323e{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const _0x35818e=this['editor'];if(_0x35818e['config']['define']('trackChangesData.editorCreator',_0x9365f0=>{const _0x2332d3=_0x35818e['model']['document']['getRootNames']()['reduce']((_0x17737f,_0x189eb4)=>(_0x17737f[_0x189eb4]='',_0x17737f),{});return _0x35818e['constructor']['create'](_0x2332d3,_0x9365f0);}),'function'!=typeof _0x35818e['config']['get']('trackChangesData')['editorCreator'])throw new _0x5b6f25('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x2d3893){return N(this['editor'],!0x0,_0x2d3893);}['getDataWithDiscardedSuggestions'](_0xdd238b){return N(this['editor'],!0x1,_0xdd238b);}}class D extends _0x1a323e{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x27ed54){function _0x4d929d(_0x1da0ff){return _0x1da0ff['map'](_0x4b2120=>String['fromCharCode'](_0x4b2120))['join']('');}super(_0x27ed54),this['result']='end',_0x27ed54[_0x4d929d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d929d([0x76,0x69,0x65,0x77])][_0x4d929d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d929d([0x61,0x75,0x74,0x6f]),_0x27ed54[_0x4d929d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d929d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d929d([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d929d([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d929d([0x6f,0x6b])});}['init'](){this['editor']['plugins']['get']('CommentsRepository')['_adapter']={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this['editor']['plugins']['get']('TrackChangesEditing')['_adapter']=null;}}function Fe(_0x475039){return void 0x0!==_0x475039['getRootsAttributes'];}async function N(_0x45f558,_0x3babca,_0x17d8bd){const _0x237f42=_0x4b443c(_0x45f558,w);_0x237f42['plugins']['push'](p,D),_0x237f42['rootsAttributes']=Fe(_0x45f558)?_0x45f558['getRootsAttributes']():void 0x0;const _0x4ca1b6=document['createDocumentFragment'](),_0x3d807c=_0x45f558['config']['get']('trackChangesData')['editorCreator'],_0x3208c6=await _0x3d807c(_0x237f42,()=>function(_0x39d1d4){const _0x3369bb=document['createElement']('div');return _0x39d1d4['appendChild'](_0x3369bb),_0x3369bb;}(_0x4ca1b6));!function(_0x82e4de,_0x2003b9){const _0x121145=_0x82e4de['model']['document']['getRootNames']()['reduce']((_0x33da2d,_0x4a58eb)=>(_0x33da2d[_0x4a58eb]=_0x82e4de['data']['get']({'rootName':_0x4a58eb}),_0x33da2d),{}),_0x34eaff=_0x82e4de['plugins']['get']('Users')['users']['map'](_0x1f2985=>({'id':_0x1f2985['id'],'name':_0x1f2985['name']})),_0x111847=_0x82e4de['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x42afb5=_0x82e4de['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x26ed8b=_0x2003b9['plugins']['get']('Users'),_0x188be1=_0x2003b9['plugins']['get']('TrackChangesEditing'),_0x322330=_0x2003b9['plugins']['get']('CommentsRepository');for(const _0x10c3fb of _0x322330['getCommentThreads']())_0x10c3fb['remove']();for(const _0x4b7980 of _0x34eaff)_0x26ed8b['getUser'](_0x4b7980['id'])||_0x26ed8b['addUser'](_0x4b7980);_0x26ed8b['me']||_0x26ed8b['useAnonymousUser']();for(const _0x5ecb75 of _0x42afb5)_0x322330['addCommentThread'](_0x5ecb75);for(const _0x10e514 of _0x111847)_0x188be1['addSuggestionData'](_0x10e514);_0x2003b9['data']['set'](_0x121145);}(_0x45f558,_0x3208c6),_0x3208c6['execute'](_0x3babca?'acceptAllSuggestions':'discardAllSuggestions');const _0x48682b=Fe(_0x3208c6)?_0x3208c6['getFullData'](_0x17d8bd):_0x3208c6['data']['get'](_0x17d8bd);return await _0x3208c6['destroy'](),_0x48682b;}class Me extends _0x1a930b{['options'];constructor(_0x25521f,_0x5bc150){super(_0x25521f),this['options']=_0x5bc150,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'](_0x522273,_0x4a0868){if(!this['element'])return;const _0x49ccef=[];for(const [_0xaa1f3a,_0x4343e8]of _0x522273){const _0xc97bf=document['createElement']('div');_0xc97bf['setAttribute']('data-ck-root-name',_0xaa1f3a),_0xc97bf['className']=_0x4343e8['classes']+'\x20ck-track-changes-preview__root-container',_0xc97bf['innerHTML']=_0x4343e8['content'],_0x49ccef['push'](_0xc97bf);}_0x4a0868(this['element'],_0x49ccef),this['element']['style']['width']='',this['element']['style']['height']='',this['fire']('previewDataReady');}['focus'](){this['element']['focus']();}}class re extends Qt{constructor(_0x4ce92c){super(_0x4ce92c),this['affectsData']=!0x1,this['isEnabled']=!0x0;}['refresh'](){this['isEnabled']=!0x0;}['execute'](){const _0x149740=this['editor'],_0x13f5aa=_0x149740['locale'],_0x3f0f1c=_0x149740['plugins']['get']('Dialog');let _0xd4f702;const _0x5ddbe2=function(_0x1b9f0c){const _0x5e1790={};if('editables'in _0x1b9f0c['ui']['view']){for(const [_0x24a547,_0x25aa29]of Object['entries'](_0x1b9f0c['ui']['view']['editables']))_0x5e1790[_0x24a547]=_0x25aa29['element'];}else _0x5e1790[_0x1b9f0c['model']['document']['getRootNames']()[0x0]]=_0x1b9f0c['ui']['view']['editable']['element'];return _0x5e1790;}(_0x149740),_0x9bd1c6=function(_0x102de1){let _0x4dd88b=0x0;for(const _0x412529 of Object['values'](_0x102de1))_0x4dd88b=Math['max'](_0x4dd88b,_0x412529['getBoundingClientRect']()['width']);let _0x393bd4=0x0;for(const _0x57dfdf of Object['values'](_0x102de1))_0x393bd4+=_0x57dfdf['getBoundingClientRect']()['height'];const _0x2e08b1=0.8*Math['max'](document['documentElement']['clientHeight'],window['innerHeight']),_0x435fc0=Math['min'](_0x393bd4,_0x2e08b1);return{'width':_0x4dd88b,'height':_0x435fc0};}(_0x5ddbe2);_0x3f0f1c['show']({'id':'finalContentPreview','title':o(_0x13f5aa,'Final\x20content\x20preview'),'isModal':!0x0,'className':'ck-track-changes-preview-dialog','content':new Me(_0x13f5aa,{'dialogRects':_0x9bd1c6}),'onHide':()=>{_0xd4f702['detachFromDom']();},'onShow':()=>{_0x149740['plugins']['get']('TrackChangesData')['getDataWithAcceptedSuggestions']({...this['_getMergeFieldsData']()})['then'](_0x2c4f02=>{const _0x31a4a3=this['_standarizeRootsData'](_0x2c4f02,_0x149740,_0x5ddbe2);_0x3f0f1c['view']['contentView']['children']['get'](0x0)['setPreviewData'](_0x31a4a3,_0x149740['config']['get']('trackChanges.preview.renderFunction'));}),_0xd4f702=new _0x33d22b(_0x13f5aa,[_0x3f0f1c['view']]),_0xd4f702['attachToDom'](),_0xd4f702['bodyCollectionContainer']['classList']['remove']('ck-reset_all'),_0x149740['once']('destroy',()=>{_0xd4f702['detachFromDom']();});const _0x29c705=_0x3f0f1c['view']['headerView']['class'];_0x3f0f1c['view']['headerView']['class']=_0x29c705?_0x29c705+'\x20ck-reset_all':'ck-reset_all',_0x3f0f1c['view']['contentView']['children']['get'](0x0)['on']('previewDataReady',()=>{_0x3f0f1c['view']['updatePosition']();});}});}['_getMergeFieldsData'](){if(!this['editor']['plugins']['has']('MergeFieldsEditing'))return{};const _0x16623f=this['editor']['plugins']['get']('MergeFieldsEditing'),_0x361843=_0x16623f['previewMode'],_0xc13c49={};if('$labels'===_0x361843){for(const _0x1e7b6a of _0x16623f['getMergeFieldsIds']())_0xc13c49[_0x1e7b6a]=_0x16623f['getLabel'](_0x1e7b6a)||_0x1e7b6a;}else{const _0x2de98c='$defaultValues'===_0x361843?_0x16623f['getDefaultValues']():_0x16623f['getDataSetValues'](_0x361843,!0x0);for(const _0xb93a95 of Object['entries'](_0x2de98c)){const [_0x477a5b,_0x159db1]=_0xb93a95;_0xc13c49[_0x477a5b]=null!==_0x159db1?_0x159db1:_0x16623f['getLabel'](_0x477a5b)||_0x477a5b;}}return{'mergeFieldsData':_0xc13c49};}['_standarizeRootsData'](_0x27999a,_0x22236f,_0x408c25){let _0x338659;if('string'==typeof _0x27999a){const _0x53cec6=_0x22236f['model']['document']['getRootNames']()[0x0];_0x338659={[_0x53cec6]:_0x27999a};}else _0x338659=_0x27999a;const _0x51e07b=this['_fixMediaEmbeds'](_0x338659,_0x22236f),_0x11d3a7=function(_0x2ffc46,_0x3737aa){for(const [_0x515ffa,_0x370cbe]of _0x2ffc46)_0x370cbe['classes']=_0x3737aa[_0x515ffa]['classList']['value']['replace']('ck-focused','');return _0x2ffc46;}(this['_sortRoots'](_0x22236f)['reduce']((_0x35dab9,_0x55e9ba)=>(_0x35dab9['push']([_0x55e9ba,{'content':_0x51e07b[_0x55e9ba],'classes':''}]),_0x35dab9),[]),_0x408c25);return _0x11d3a7;}['_fixMediaEmbeds'](_0x25cdac,_0xd870d7){if(!_0xd870d7['plugins']['has']('MediaEmbedEditing'))return _0x25cdac;const _0x3d1859=_0xd870d7['plugins']['get']('MediaEmbedEditing');for(const [_0x506160,_0x49c0a9]of Object['entries'](_0x25cdac)){const _0x2055dc=document['createElement']('div');_0x2055dc['innerHTML']=_0x49c0a9,(_0x2055dc['querySelectorAll']('figure.media')['forEach'](_0x43f36e=>{const _0x2a0413=_0x43f36e['querySelector']('oembed');if(_0x2a0413){const _0x2a53a8=_0x2a0413['getAttribute']('url');if(_0x2a53a8){const _0x164fee=_0x3d1859['registry']['getMediaViewElement'](new _0x245819(_0xd870d7['editing']['view']['document']),_0x2a53a8,{'elementName':'','renderForEditingView':!0x0}),_0x5746c0=document['createElement']('div');_0x5746c0['classList']['add']('ck-media__wrapper'),_0x164fee['render'](_0x5746c0,_0xd870d7['editing']['view']['domConverter']),_0x2a0413['replaceWith'](_0x5746c0);}}}),_0x25cdac[_0x506160]=_0x2055dc['innerHTML']);}return _0x25cdac;}['_sortRoots'](_0x56c165){if(!function(_0x13528b){return void 0x0!==_0x13528b['getRootsAttributes'];}(_0x56c165))return _0x56c165['model']['document']['getRootNames']();const _0xaddcdd=[],_0x4e2cf0=new Map();for(const _0x234f38 of _0x56c165['model']['document']['getRootNames']()){const _0x218f69=_0x56c165['editing']['view']['getDomRoot'](_0x234f38)['getClientRects']()['item'](0x0);_0xaddcdd['push'](_0x234f38),_0x4e2cf0['set'](_0x234f38,_0x218f69);}return _0xaddcdd['sort']((_0x51c589,_0x499fb5)=>{const _0x216211=_0x4e2cf0['get'](_0x51c589),_0x4c74f8=_0x4e2cf0['get'](_0x499fb5);return _0x216211['y']-_0x4c74f8['y']||_0x216211['x']-_0x4c74f8['x'];}),_0xaddcdd;}}class te extends _0x1a323e{static get['requires'](){return[T,_0x4f349e];}static get['pluginName'](){return'TrackChangesPreview';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1583fa){super(_0x1583fa),_0x1583fa['commands']['add']('previewFinalContent',new re(this['editor'])),_0x1583fa['config']['define']('trackChanges.preview.renderFunction',(_0x4b356f,_0x3183a3)=>{for(const _0x2f1edb of _0x3183a3)_0x4b356f['appendChild'](_0x2f1edb);});}}export{as as BaseSuggestionThreadView,u as Suggestion,pe as SuggestionThreadView,fe as SuggestionView,k as TrackChanges,T as TrackChangesData,p as TrackChangesEditing,te as TrackChangesPreview};