@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240820.0 → 0.0.0-nightly-20240821.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 ts,Plugin as _0x3a46d7,PendingActions as _0x482add,icons as _0x3eaba6}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x551961,ObservableMixin as _0x98bfda,uid as _0x26aa04,insertToPriorityArray as _0xa32264,priorities as _0x1757e7,logWarning as _0x7f1db8,getEnvKeystrokeText as _0x4f3188,FocusTracker as _0x2ee79c,KeystrokeHandler as _0x253f93,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2d5d31,View as _0x5aba6a,ViewCollection as _0x396822,FocusCycler as _0x19dedd,ViewModel as _0x40660a,createDropdown as Qt,SplitButtonView as _0x1b30c8,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x5bdcee}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x2d667e,hashObject as _0x5e48bb,surroundingMarkersDetector as _0x3ef095,ENTER_THREAD_KEYSTROKE as _0x487f5c,AriaDescriptionView as _0x7c1961,setupThreadKeyboardNavigation as _0x3ef7c7,trimHtml as _0x6a584d,UserView as _0x239853,LateFocusButtonView as _0x56df5f,getDateTimeFormatter as _0x106c3d,getAllMarkersDomElementsSorted as _0x1dcb3a,sanitizeEditorConfig as _0x3277b9}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x22dc94,LiveRange as _0xb95ac7,LivePosition as _0x4b3038}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x23e52e,toWidget as _0xf9a851}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3bbef9,set as _0xf23680,isEqual as _0x5f4100,unset as _0x2d6094,omit as Tt}from'lodash-es';import{Delete as _0x1850b5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x9d95f0,ShiftEnter as _0x3c4695}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x11d798,_0x5a773e){super(_0x11d798),this['_enabledCommands']=_0x5a773e,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 _0x52099f of this['editor']['commands']['commands']())_0x52099f['affectsData']&&!this['_enabledCommands']['has'](_0x52099f)&&_0x52099f['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x8d0a14 of this['editor']['commands']['commands']())_0x8d0a14['affectsData']&&!this['_enabledCommands']['has'](_0x8d0a14)&&_0x8d0a14['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x36b890,_0x50b118){super(_0x36b890),this['_suggestions']=_0x50b118,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x511d7f){const _0x432e8a=this['_suggestions']['get'](_0x511d7f);if(!_0x432e8a)throw new _0x551961('track-changes-accept-suggestion-not-found',this);const _0x4f719f=_0x432e8a['getRanges']();this['editor']['model']['canEditAt'](_0x4f719f)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x432e8a);}}class R extends ts{['_suggestions'];constructor(_0x28b474,_0x3e7179){super(_0x28b474),this['_suggestions']=_0x3e7179,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x460b8b){const _0xfd33dd=this['_suggestions']['get'](_0x460b8b);if(!_0xfd33dd)throw new _0x551961('track-changes-discard-suggestion-not-found',this);const _0x1b5f62=_0xfd33dd['getRanges']();this['editor']['model']['canEditAt'](_0x1b5f62)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0xfd33dd);}}function ls(_0x4b009d,_0x3ee108){let _0x354b57='';return _0x354b57+=_0x4b009d['split']('*')['map']((_0x3473d6,_0x5941f3)=>_0x5941f3%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x3473d6)+'</span>':nn(_0x3473d6))['join'](''),_0x3ee108&&(_0x354b57+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3ee108['value']+'\x22\x20title=\x22'+_0x3ee108['title']+'\x22></span>'),_0x354b57;}function nn(_0x1a5c32){const _0x1c3a0c=document['createElement']('span');return _0x1c3a0c['innerText']=_0x1a5c32,_0x1c3a0c['innerHTML'];}function ss(_0x3d1469){return _0x3d1469['sort']((_0x185bd2,_0x3ac70c)=>'deletion'==_0x185bd2['type']&&'deletion'!=_0x3ac70c['type']?-0x1:'deletion'!=_0x185bd2['type']&&'deletion'==_0x3ac70c['type']?0x1:0x0);}function to(_0x5e1485,_0x9f7807){let _0x108967,_0x22a875=0x0;const _0x3354ca=[],_0x349719=_0x9f7807['schema'];for(;_0x22a875<_0x5e1485['length'];){const _0x332728=_0x5e1485[_0x22a875],_0xfd2f3=_0x5e1485[_0x22a875+0x1];_0x108967||(_0x108967=_0x9f7807['createPositionBefore'](_0x332728)),on(_0x9f7807,_0x332728,_0xfd2f3)||(_0x3354ca['push'](_0x9f7807['createRange'](_0x108967,_0x349719['isObject'](_0x332728)?_0x9f7807['createPositionAfter'](_0x332728):_0x9f7807['createPositionAt'](_0x332728,'end'))),_0x108967=null),_0x22a875++;}return _0x3354ca;}function on(_0x48148a,_0x40563a,_0x2a56af){if(!_0x2a56af)return!0x1;const _0x19c469=_0x48148a['createPositionAfter'](_0x40563a),_0x241a99=_0x48148a['createPositionBefore'](_0x2a56af);return _0x19c469['isTouching'](_0x241a99);}function rs(_0x1feaf5,_0x15f532,_0x13defd){for(;_0x13defd['length'];){const _0x1db6de=_0x13defd['splice'](0x0,0x64);_0x1feaf5['change'](()=>{for(const _0x48b498 of _0x1db6de)_0x48b498['isInContent']&&_0x15f532['execute'](_0x48b498['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x28797f,_0x43d3e6,_0x2390b6){super(_0x28797f),this['_command']=_0x43d3e6,this['_suggestions']=_0x2390b6,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x36f513=Array['from'](this['_suggestions']['values']())['some'](_0x134bc7=>_0x134bc7['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x36f513;}['execute'](){const _0x12172d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x243b06 of _0x12172d){const _0x4e2e5a=_0x243b06['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4e2e5a))return;}rs(this['editor']['model'],this['_command'],_0x12172d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1e936c,_0x52cf72,_0x1e919f){super(_0x1e936c),this['_command']=_0x52cf72,this['_suggestions']=_0x1e919f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x69db78=this['editor']['model']['document']['selection'],_0xa31438=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x53a524,_0x4d980f){const _0x2c5cac=Array['from'](_0x53a524['getRanges']()),_0x590289=new Set();for(const _0xc0e3c0 of _0x4d980f)if(_0xc0e3c0['isInContent']){for(const _0x1460ee of _0x2c5cac)for(const _0x11e76 of _0xc0e3c0['getRanges']())(_0x1460ee['isIntersecting'](_0x11e76)||_0x53a524['isCollapsed']&&!_0xc0e3c0['isMultiRange']&&_0xc0e3c0['next']&&_0x11e76['end']['isTouching'](_0x1460ee['start']))&&_0x590289['add'](_0xc0e3c0);}return _0x590289;}(_0x69db78,_0xa31438),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1a574e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5c9649 of _0x1a574e){const _0x2f313c=_0x5c9649['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2f313c))return;}rs(this['editor']['model'],this['_command'],_0x1a574e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x98bfda(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x3b8fc7,_0x490b1b){super(),this['id']=_0x490b1b['id'],this['type']=_0x490b1b['type'],this['subType']=_0x490b1b['subType']||null,this['author']=_0x490b1b['author'],this['creator']=_0x490b1b['creator']||_0x490b1b['author'],this['isExternal']=Boolean(_0x490b1b['attributes']&&_0x490b1b['attributes']['@external']),this['data']=null,this['_model']=_0x3b8fc7,this['_onAccept']=_0x490b1b['onAccept'],this['_onDiscard']=_0x490b1b['onDiscard'],this['_onAttributesChange']=_0x490b1b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x490b1b['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 _0x45e195=this;for(;_0x45e195['previous'];)_0x45e195=_0x45e195['previous'];return _0x45e195;}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'](_0x260c71){this['_markerNames']['add'](_0x260c71);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x10f67e=>this['_model']['markers']['get'](_0x10f67e))['filter'](_0x721b42=>_0x721b42);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x1f60e7=>{for(const _0x532ced of this['getMarkers']())_0x1f60e7['removeMarker'](_0x532ced);}),this['_markerNames']['clear']();}['removeMarker'](_0x64edf7){this['_model']['change'](_0x108e13=>{_0x108e13['removeMarker'](_0x64edf7);}),this['_markerNames']['delete'](_0x64edf7);}['addRange'](_0x2e36d0){const _0x29d6ae='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x29d6ae),this['_model']['change'](_0x51a318=>{_0x51a318['addMarker'](_0x29d6ae,{'range':_0x2e36d0,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1cbf46){for(const _0x44b3b8 of this['getRanges']())if(_0x44b3b8['isIntersecting'](_0x1cbf46))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x57b95c=>_0x57b95c['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x587ecf,_0x5e7fc9)=>[..._0x587ecf,..._0x5e7fc9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x371b3e=this['getRanges']();if(0x1!=_0x371b3e['length'])return null;const _0x36f769=_0x371b3e[0x0],_0x5bbcb7=_0x36f769['start']['nodeAfter'],_0x53c666=_0x36f769['end']['nodeBefore'];return _0x5bbcb7 instanceof _0x22dc94?_0x5bbcb7!=_0x53c666?null:_0x5bbcb7: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 _0x407036=[];let _0x376667=this['head'];for(;_0x376667;)_0x407036['push'](_0x376667),_0x376667=_0x376667['next'];return _0x407036;}['setAttribute'](_0x5867c5,_0x246cf1){const _0x13fc3a=_0x3bbef9(this['attributes']);_0xf23680(_0x13fc3a,_0x5867c5,_0x246cf1),_0x5f4100(_0x13fc3a,this['attributes'])||(this['attributes']=_0x13fc3a,this['_onAttributesChange'](_0x13fc3a));}['removeAttribute'](_0x1fc099){const _0x116675=_0x3bbef9(this['attributes']);_0x2d6094(_0x116675,_0x1fc099),_0x5f4100(_0x116675,this['attributes'])||(this['attributes']=_0x116675,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 _0x26aa04()['substr'](0x1,0x5);}}function o(_0x1f64b2,_0x5b9f1d,_0x50ee91){const t=_0x1f64b2['t'];switch(_0x5b9f1d){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'*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',_0x50ee91);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x50ee91);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x50ee91);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x50ee91);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x50ee91);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',_0x50ee91);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x50ee91);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x50ee91);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x50ee91);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x50ee91);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x50ee91);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x50ee91);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x50ee91);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x50ee91);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x50ee91);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x50ee91);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x50ee91);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x50ee91);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x50ee91);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x50ee91);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x50ee91);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x50ee91);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x50ee91);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'},_0x50ee91);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x50ee91);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x50ee91);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x50ee91);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x50ee91);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x50ee91);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'},_0x50ee91);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x50ee91);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x50ee91);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x50ee91);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x50ee91);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'},_0x50ee91);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x50ee91);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'},_0x50ee91);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'},_0x50ee91);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x50ee91);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'},_0x50ee91);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x50ee91);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'},_0x50ee91);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x50ee91);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x50ee91);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'},_0x50ee91);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x50ee91);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x50ee91);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x50ee91);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'},_0x50ee91);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'},_0x50ee91);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'},_0x50ee91);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x5b9f1d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x54c827,_0x366544){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x54c827,this['_locale']=_0x366544;}['getDescriptions'](_0x2d53fb){const _0xe115e0=[],_0x2601af=new Set(),_0x3202c3=new Set();for(let _0x1237d7=0x0;_0x1237d7<_0x2d53fb['length'];_0x1237d7++){const _0x4dff37=_0x2d53fb[_0x1237d7];if(!_0x4dff37['isInContent'])continue;const _0xed1e40=this['_handleCustomCallbackDescription'](_0x4dff37);if(_0xed1e40){if(null!=_0x4dff37['subType']){if(_0x2601af['has'](_0x4dff37['subType']))continue;_0x2601af['add'](_0x4dff37['subType']);}_0xe115e0['push'](_0xed1e40);}else{if('attribute'!=_0x4dff37['type'])'insertion'!=_0x4dff37['type']&&'deletion'!=_0x4dff37['type']||this['_handleInsertRemoveSuggestionDescription'](_0xe115e0,_0x4dff37,_0x2d53fb[_0x1237d7+0x1]);else{const _0x37f6bf=_0x4dff37['data']['key'];if(_0x3202c3['has'](_0x37f6bf))continue;_0x3202c3['add'](_0x4dff37['data']['key']),_0x37f6bf==m?this['_handleRenameSuggestionDescription'](_0xe115e0,_0x4dff37):this['_handleAttributeSuggestionDescription'](_0xe115e0,_0x4dff37);}}}return this['_resolveDescriptionItems'](_0xe115e0);}['registerDescriptionCallback'](_0x4b93a3){this['_customCallbacks']['push'](_0x4b93a3);}['registerElementLabel'](_0x208e1c,_0x5f2e6b,_0x32bae2=_0x1757e7['normal']){'function'==typeof _0x208e1c?_0xa32264(this['_itemLabelsCallbacks'],{'matchingCallback':_0x208e1c,'label':_0x5f2e6b,'priority':_0x32bae2}):this['_itemLabels']['set'](_0x208e1c,_0x5f2e6b);}['registerAttributeLabel'](_0x2e5a54,_0x4b5c10){this['_attributeLabels']['set'](_0x2e5a54,_0x4b5c10);}['getItemLabel'](_0x4d54ce,_0x4e90e1=0x1){let _0x2f3a76;for(const _0x145e2c of this['_itemLabelsCallbacks'])if(_0x145e2c['matchingCallback'](_0x4d54ce)){_0x2f3a76=_0x145e2c['label'];break;}return _0x2f3a76||(_0x2f3a76=this['_itemLabels']['get'](_0x4d54ce['name'])),_0x2f3a76?_0x2f3a76(_0x4e90e1):0x1!==_0x4e90e1?_0x4e90e1+'\x20'+_0x4d54ce['name']+'s':''+_0x4d54ce['name'];}['_addDescriptionItems'](_0x1f2885,_0xb9dcad){const _0x301226=_0xb9dcad['getFirstRange']()['getWalker'](),_0x4463cf='insertion'==_0xb9dcad['type']?'add':'remove';for(const _0x5cf8a3 of _0x301226){const _0x5d226d=_0x5cf8a3['item'],_0x4480b2=_0x1f2885[_0x1f2885['length']-0x1];if(_0x5d226d['is']('$textProxy'))_0x4480b2&&_0x4480b2['type']['indexOf']('Container')>-0x1&&_0x1f2885['pop'](),_0x4480b2&&'text'==_0x4480b2['type']?_0x4480b2[_0x4463cf]+=_0x5d226d['data']:_0x1f2885['push']({'type':'text','add':'add'==_0x4463cf?_0x5d226d['data']:'','remove':'remove'==_0x4463cf?_0x5d226d['data']:''});else{if(this['_schema']['isObject'](_0x5d226d)){const _0xfa54e3=_0x5d226d;if(_0x4480b2&&_0x4480b2['type']['indexOf']('Container')>-0x1&&_0x1f2885['pop'](),'elementEnd'==_0x5cf8a3['type'])continue;_0x4480b2&&_0x4480b2['type']==_0x4463cf+'Object'&&_0x4480b2['element']['name']==_0xfa54e3['name']?_0x4480b2['quantity']++:_0x1f2885['push']({'type':_0x4463cf+'Object','element':_0xfa54e3,'quantity':0x1}),_0x301226['skip'](_0x1958d6=>!('elementEnd'==_0x1958d6['type']&&_0x1958d6['item']==_0x5d226d));}else{if(this['_schema']['checkChild'](_0x5d226d,'$text')||_0x5d226d['is']('element','softBreak')){const _0x32c4dc=_0x5d226d;if('add'==_0x4463cf&&'elementStart'==_0x5cf8a3['type']||'remove'==_0x4463cf&&'elementEnd'==_0x5cf8a3['type'])continue;if(_0x4480b2&&-0x1==_0x4480b2['type']['indexOf']('Container')){'text'==_0x4480b2['type']&&(_0x4480b2[_0x4463cf]+='\x0a');continue;}let _0x2dd15f;if(_0x2dd15f='add'==_0x4463cf?_0x32c4dc['nextSibling']&&!this['_schema']['isObject'](_0x32c4dc['nextSibling'])?_0x32c4dc['nextSibling']:null:_0x32c4dc['previousSibling']&&!this['_schema']['isObject'](_0x32c4dc['previousSibling'])?_0x32c4dc['previousSibling']:null,_0x32c4dc['isEmpty']||_0x2dd15f&&_0x2dd15f['isEmpty']){const _0x13ec26=_0x2dd15f&&_0x2dd15f['isEmpty']?_0x2dd15f:_0x32c4dc;_0x4480b2&&_0x4480b2['type']==_0x4463cf+'EmptyContainer'&&_0x4480b2['element']['name']==_0x13ec26['name']?_0x4480b2['quantity']++:_0x1f2885['push']({'type':_0x4463cf+'EmptyContainer','element':_0x13ec26,'quantity':0x1});}else _0x1f2885['push']({'type':_0x4463cf+'Container','element':_0x32c4dc});}}}}}['_resolveDescriptionItems'](_0x166380){const _0x1d65f8=this['_locale'],_0x7cb106=[],_0x401a3b=[],_0x574710=[];for(const _0x3ae02d of _0x166380)switch(_0x3ae02d['type']){case'text':if(_0x3ae02d['add']=_0x3ae02d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3ae02d['remove']=_0x3ae02d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3ae02d['add']&&''!=_0x3ae02d['remove']){_0x7cb106['push']({'type':'replace','content':o(_0x1d65f8,'REPLACE_TEXT',['\x22'+_0x3ae02d['remove']+'\x22','\x22'+_0x3ae02d['add']+'\x22'])});continue;}if(null!=_0x3ae02d['add']['match'](/^ +$/)){_0x7cb106['push']({'type':'insertion','content':o(_0x1d65f8,'*Insert:*\x20%0',o(_0x1d65f8,'ELEMENT_SPACE',_0x3ae02d['add']['length']))});continue;}if(null!=_0x3ae02d['remove']['match'](/^ +$/)){_0x7cb106['push']({'type':'deletion','content':o(_0x1d65f8,'*Remove:*\x20%0',o(_0x1d65f8,'ELEMENT_SPACE',_0x3ae02d['remove']['length']))});continue;}if(''!=_0x3ae02d['add']){_0x7cb106['push']({'type':'insertion','content':o(_0x1d65f8,'*Insert:*\x20%0','\x22'+_0x3ae02d['add']+'\x22')});continue;}_0x7cb106['push']({'type':'deletion','content':o(_0x1d65f8,'*Remove:*\x20%0','\x22'+_0x3ae02d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x7cb106['push']({'type':'insertion','content':o(_0x1d65f8,'*Insert:*\x20%0',this['getItemLabel'](_0x3ae02d['element'],_0x3ae02d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x7cb106['push']({'type':'deletion','content':o(_0x1d65f8,'*Remove:*\x20%0',this['getItemLabel'](_0x3ae02d['element'],_0x3ae02d['quantity']))});continue;case'addContainer':_0x7cb106['push']({'type':'insertion','content':o(_0x1d65f8,'*Split:*\x20%0',this['getItemLabel'](_0x3ae02d['element'],_0x3ae02d['quantity']))});continue;case'removeContainer':_0x7cb106['push']({'type':'deletion','content':o(_0x1d65f8,'*Merge:*\x20%0',this['getItemLabel'](_0x3ae02d['element'],_0x3ae02d['quantity']))});continue;case'addFormat':_0x401a3b['push'](_0x3ae02d['key']);continue;case'removeFormat':_0x574710['push'](_0x3ae02d['key']);continue;default:_0x7cb106['push'](_0x3ae02d);}if(_0x401a3b['length']){const _0xf0ccac=_0x401a3b['map'](_0x236a74=>this['_attributeLabels']['has'](_0x236a74)?this['_attributeLabels']['get'](_0x236a74):_0x236a74)['join'](',\x20');_0x7cb106['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xf0ccac)});}if(_0x574710['length']){const _0x3691b3=_0x574710['map'](_0x4a1def=>this['_attributeLabels']['has'](_0x4a1def)?this['_attributeLabels']['get'](_0x4a1def):_0x4a1def)['join'](',\x20');_0x7cb106['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3691b3)});}return _0x7cb106;}['_handleCustomCallbackDescription'](_0x461851){for(const _0x2b06aa of this['_customCallbacks']){const _0x2faa08=_0x2b06aa(_0x461851);if(_0x2faa08&&'type'in _0x2faa08)return _0x2faa08;}}['_handleAttributeSuggestionDescription'](_0x2d8e51,_0x3eddf5){const _0xe27a0d=_0x3eddf5['data'],_0x220f84=void 0x0===_0xe27a0d['newValue']?'removeFormat':'addFormat';_0x2d8e51['push']({'type':_0x220f84,'key':_0xe27a0d['key']});}['_handleRenameSuggestionDescription'](_0x49197e,_0x405e82){_0x49197e['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x405e82['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x584537,_0x704550,_0x68b702){if(this['_addDescriptionItems'](_0x584537,_0x704550),_0x68b702&&_0x68b702['getFirstRange']()&&!_0x704550['getFirstRange']()['end']['isEqual'](_0x68b702['getFirstRange']()['start'])){const _0x23bca0=_0x584537[_0x584537['length']-0x1],_0x1e9647='insertion'==_0x704550['type']?'add':'remove';_0x23bca0&&'text'==_0x23bca0['type']&&(_0x23bca0[_0x1e9647]+='\x0a');}}}class V extends _0x3a46d7{['afterInit'](){const _0x17af8f=this['editor'],_0x33871f=_0x17af8f['plugins']['get']('TrackChangesEditing');_0x17af8f['commands']['get']('showAIAssistant')&&_0x33871f['enableCommand']('showAIAssistant');}}class U extends _0x3a46d7{['afterInit'](){const _0x1ea543=this['editor'],_0x3cb7c7=_0x1ea543['locale'];if(!_0x1ea543['plugins']['has']('AlignmentEditing'))return;const _0x610f6e=_0x1ea543['plugins']['get']('TrackChangesEditing');_0x610f6e['enableDefaultAttributesIntegration']('alignment'),_0x610f6e['registerBlockAttribute']('alignment'),_0x610f6e['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3cb7c7,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x58d44d=this['editor'],_0x4134ed=_0x58d44d['locale'];_0x58d44d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2ef942=>{if('formatBlock'!=_0x2ef942['type'])return;const {data:_0x3ddf1f}=_0x2ef942;if(_0x3ddf1f&&'alignment'==_0x3ddf1f['commandName']){const _0x3d8fc0=_0x3ddf1f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4134ed,'*Format:*\x20%0',function(_0x5a77dc){switch(_0x5a77dc){case'left':return o(_0x4134ed,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4134ed,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4134ed,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4134ed,'FORMAT_JUSTIFY_TEXT');}}(_0x3d8fc0))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3a46d7{['afterInit'](){const _0x1d2615=this['editor'],_0x2918a1=_0x1d2615['plugins']['get']('TrackChangesEditing'),_0xb16b3e=_0x1d2615['locale'];for(const _0x19c990 of ti){if(!_0x1d2615['plugins']['has'](_0x19c990))continue;const _0x4af915=_0x19c990['slice'](0x0,-0x7)['toLowerCase'](),_0x59498a='FORMAT_'+_0x4af915['toUpperCase']();_0x2918a1['enableDefaultAttributesIntegration'](_0x4af915),_0x2918a1['registerInlineAttribute'](_0x4af915),_0x2918a1['descriptionFactory']['registerAttributeLabel'](_0x4af915,o(_0xb16b3e,_0x59498a));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xa19673=this['editor'],_0x11fb42=_0xa19673['locale'],_0x3fa579=_0xa19673['plugins']['get']('TrackChangesEditing');function _0x453c78(_0x1ba049,_0x5bf839){_0x3fa579['descriptionFactory']['registerDescriptionCallback'](_0x5b51de=>{if('formatInline'!=_0x5b51de['type'])return;const {data:_0x58dff5}=_0x5b51de;return _0x58dff5&&_0x58dff5['commandName']===_0x1ba049?_0x58dff5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x11fb42,'*Format:*\x20%0',_0x5bf839)}:{'type':'format','content':o(_0x11fb42,'*Remove\x20format:*\x20%0',_0x5bf839)}:void 0x0;});}_0x453c78('bold',o(_0x11fb42,'FORMAT_BOLD')),_0x453c78('italic',o(_0x11fb42,'FORMAT_ITALIC')),_0x453c78('underline',o(_0x11fb42,'FORMAT_UNDERLINE')),_0x453c78('code',o(_0x11fb42,'FORMAT_CODE')),_0x453c78('strikethrough',o(_0x11fb42,'FORMAT_STRIKETHROUGH')),_0x453c78('subscript',o(_0x11fb42,'FORMAT_SUBSCRIPT')),_0x453c78('superscript',o(_0x11fb42,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3a46d7{['afterInit'](){const _0x383f71=this['editor'],_0x400276=_0x383f71['locale'];if(!_0x383f71['plugins']['has']('BlockQuoteEditing'))return;const _0xfbc98=_0x383f71['plugins']['get']('TrackChangesEditing'),_0x10dff5=this['editor']['commands']['get']('blockQuote');_0xfbc98['enableCommand']('blockQuote',(_0x38a4cc,_0xfeb7d4={})=>{const _0x1f1684=this['editor']['model']['document']['selection'],_0x5b1a05=_0xfeb7d4&&void 0x0!==_0xfeb7d4['forceValue']?_0xfeb7d4['forceValue']:!_0x10dff5['value'];let _0x129a15=[];if(_0x5b1a05){const _0x226e9b=Array['from'](_0x1f1684['getSelectedBlocks']())['filter'](_0xe24771=>oo(_0xe24771)||function(_0x2b0181,_0x19af3c){const _0x53f75f=_0x19af3c['checkChild'](_0x2b0181['parent'],'blockQuote'),_0x21061c=_0x19af3c['checkChild'](['$root','blockQuote'],_0x2b0181);return _0x53f75f&&_0x21061c;}(_0xe24771,this['editor']['model']['schema']));_0x129a15=to(_0x226e9b,_0x383f71['model']);}else{const _0x213946=Array['from'](_0x1f1684['getSelectedBlocks']())['filter'](_0x277654=>oo(_0x277654));_0x129a15=to(_0x213946,_0x383f71['model']);}_0x383f71['model']['change'](()=>{for(const _0x3b31f0 of _0x129a15)_0xfbc98['markBlockFormat'](_0x3b31f0,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5b1a05}]});});}),_0xfbc98['descriptionFactory']['registerDescriptionCallback'](_0x4f468d=>{const {data:_0x5d4c9f}=_0x4f468d;if(_0x5d4c9f&&'blockQuote'==_0x5d4c9f['commandName']){const _0x5835fd=o(_0x400276,'ELEMENT_BLOCK_QUOTE');return _0x5d4c9f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x400276,'*Set\x20format:*\x20%0',_0x5835fd)}:{'type':'format','content':o(_0x400276,'*Remove\x20format:*\x20%0',_0x5835fd)};}});}}function oo(_0xcd92f1){return'blockQuote'==_0xcd92f1['parent']['name'];}class L extends _0x3a46d7{['afterInit'](){const _0x6e246e=this['editor'];_0x6e246e['plugins']['has']('CaseChange')&&(_0x6e246e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x6e246e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x6e246e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3a46d7{['afterInit'](){const _0x23833a=this['editor'];_0x23833a['commands']['get']('ckbox')&&_0x23833a['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3a46d7{['afterInit'](){const _0xe882c2=this['editor'];if(!_0xe882c2['plugins']['has']('CodeBlock'))return;const _0x3f7c03=_0xe882c2['plugins']['get']('TrackChangesEditing'),_0x95ecc6=_0xe882c2['locale'],_0x11d8af=_0xe882c2['config']['get']('codeBlock')['languages'],_0x4ba1ce=_0xe882c2['commands']['get']('codeBlock');_0x3f7c03['enableCommand']('indentCodeBlock'),_0x3f7c03['enableCommand']('outdentCodeBlock'),_0x3f7c03['enableCommand']('codeBlock',(_0x181527,_0x323971={})=>{const _0x3b1a9a=_0xe882c2['model'],_0x9ff22=_0xe882c2['model']['document']['selection'],_0x4539b1=_0x323971&&void 0x0!==_0x323971['forceValue']?_0x323971['forceValue']:!_0x4ba1ce['value'];let _0x46b7c2;_0x323971['language']||(_0x323971['language']=_0x11d8af[0x0]['language']),_0x46b7c2=_0x4539b1?Array['from'](_0x9ff22['getSelectedBlocks']())['filter'](_0x283574=>eo(_0x283574)||function(_0x3ab0eb,_0x5b2bff){if(_0x3ab0eb['is']('rootElement')||_0x5b2bff['isLimit'](_0x3ab0eb))return!0x1;return _0x5b2bff['checkChild'](_0x3ab0eb['parent'],'codeBlock');}(_0x283574,_0x3b1a9a['schema'])):Array['from'](_0x9ff22['getSelectedBlocks']())['filter'](_0x15b119=>eo(_0x15b119));const _0x2d1e74=to(_0x46b7c2,_0x3b1a9a);_0x3b1a9a['change'](()=>{for(const _0x4cfc3e of _0x2d1e74)_0x3f7c03['markBlockFormat'](_0x4cfc3e,{'commandName':'codeBlock','commandParams':[{..._0x323971,'forceValue':_0x4539b1}],'formatGroupId':'blockName'});});}),(_0x3f7c03['descriptionFactory']['registerElementLabel']('codeBlock',_0x5d95d8=>o(_0x95ecc6,'ELEMENT_CODE_BLOCK',_0x5d95d8)),_0x3f7c03['descriptionFactory']['registerDescriptionCallback'](_0x18952c=>{if('formatBlock'!=_0x18952c['type'])return;const _0x1122fd=_0x95ecc6['t'],{data:_0x691da1}=_0x18952c;if(!_0x691da1||'codeBlock'!=_0x691da1['commandName'])return;const _0x38a94f=_0x691da1['commandParams'][0x0]['language'],_0x29e963=_0x1122fd(_0x11d8af['find'](_0x5e80c9=>_0x5e80c9['language']===_0x38a94f)['label'])['toLowerCase']();return _0x691da1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x95ecc6,'*Set\x20format:*\x20%0',o(_0x95ecc6,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x29e963+')')}:{'type':'format','content':o(_0x95ecc6,'*Remove\x20format:*\x20%0',o(_0x95ecc6,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x10d6d2){return'codeBlock'==_0x10d6d2['name'];}class q extends _0x3a46d7{['afterInit'](){const _0x11f48d=this['editor'];if(!_0x11f48d['plugins']['has']('CommentsEditing'))return;_0x11f48d['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x117c84,_0x5c3624,_0xa46775){const _0x7b0b49=[];for(const _0x2a71a4 of _0x5c3624['getItems']())_0x2a71a4['hasAttribute'](_0x117c84)&&_0x7b0b49['push'](_0xa46775['createRangeOn'](_0x2a71a4));return _0x7b0b49;}function _e(_0x4ee9d7,_0x4fcdef,{showActiveMarker:_0x2162d1=!0x0}={}){const _0x33c55e=_0x4ee9d7['plugins']['get']('TrackChangesEditing');return(_0x40546d,_0x1665c8,_0x2698fb)=>{if(!_0x2698fb['consumable']['test'](_0x1665c8['markerRange'],_0x40546d['name']))return;const _0xcc34fe=_0x1665c8['markerRange']['getWalker'](),_0xcad1f4=_0x1665c8['markerRange']['start'],_0x4c4e7b=_0x4ee9d7['model']['schema'];let _0x537593=null,_0xb3ba7=null,_0x554954=!0x1,_0x1b0dd7=!0x1;for(const _0x4e34a5 of _0xcc34fe){const _0x20ab31=_0x4e34a5['item'];_0x554954=_0x554954||_0x4c4e7b['isContent'](_0x20ab31);const _0x241461=_0x2698fb['mapper']['toViewElement'](_0x20ab31);if(_0x241461&&_0x241461['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4e34a5['type']&&(_0x4c4e7b['isBlock'](_0x20ab31)&&!_0x4c4e7b['isLimit'](_0x20ab31)&&(_0x20ab31['nextSibling']||_0xcad1f4['isAtEnd']?_0x537593&&_0x537593['parent']==_0x20ab31||(_0x537593=_0x20ab31,_0x2d264d(_0x4e34a5['previousPosition']),_0x1b0dd7=!0x0):_0xb3ba7=_0xb3ba7||_0x4e34a5['previousPosition']));}function _0x2d264d(_0x25d7e4){const {authorId:_0x3636e5}=_0x33c55e['_splitMarkerName'](_0x1665c8['markerName']),_0x4d5f68=_0x2698fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4fcdef,'data-author-id':_0x3636e5}),_0x27143b=_0x2698fb['mapper']['toViewPosition'](_0x25d7e4);_0x2162d1&&_0x33c55e['activeMarkers']['includes'](_0x1665c8['markerName'])&&_0x2698fb['writer']['addClass']('ck-suggestion-marker--active',_0x4d5f68),_0x2698fb['writer']['insert'](_0x27143b,_0x4d5f68),_0x2698fb['mapper']['bindElementToMarker'](_0x4d5f68,_0x1665c8['markerName']);}_0x554954||_0x1b0dd7||!_0xb3ba7||_0x2d264d(_0xb3ba7);};}class z extends _0x3a46d7{static get['requires'](){return[_0x1850b5];}['init'](){const _0x5807cf=this['editor'],_0x847217=_0x5807cf['plugins']['get']('TrackChangesEditing');_0x847217['enableCommand']('delete');const _0x3b2b37=_0x5807cf['commands']['get']('deleteForward');_0x847217['enableCommand']('deleteForward',(_0x1753b5,_0x492cf6={})=>{const _0x20f817=_0x5807cf['model']['createSelection'](_0x5807cf['model']['document']['selection']);_0x20f817['isCollapsed']&&_0x5807cf['model']['modifySelection'](_0x20f817,{'direction':'forward','unit':_0x492cf6['unit']});const _0x54e2bc=_0x20f817['getFirstRange'](),_0x79f031=_0xb95ac7['fromRange'](_0x54e2bc);let _0x4b8287;_0x1753b5(_0x492cf6),_0x4b8287='$graveyard'==_0x79f031['root']['rootName']?_0x5807cf['model']['createRange'](_0x54e2bc['start']):_0x5807cf['model']['createRange'](_0x79f031['start'],_0x79f031['end']),_0x79f031['detach'](),_0x5807cf['model']['enqueueChange'](_0x3b2b37['buffer']['batch'],_0x3ad877=>{_0x3b2b37['buffer']['lock'](),_0x3ad877['setSelection'](_0x3ad877['createRange'](_0x4b8287['end'])),_0x3b2b37['buffer']['unlock']();});}),_0x5807cf['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x5807cf,'merge'),{'priority':'high'}),_0x5807cf['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x83003a,_0x284dc1,_0x25a6fb)=>{_0x25a6fb['options']['showSuggestionHighlights']&&_e(_0x5807cf,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x83003a,_0x284dc1,_0x25a6fb);},{'priority':'high'}),_0x5807cf['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x23ee96,_0x5ed36b,_0x5d55d7)=>{const _0x1f65e9=_0x5d55d7['mapper']['markerNameToElements'](_0x5ed36b['markerName']);if(_0x1f65e9){for(const _0x589d41 of _0x1f65e9)_0x589d41['is']('uiElement')&&(_0x5d55d7['mapper']['unbindElementFromMarkerName'](_0x589d41,_0x5ed36b['markerName']),_0x5d55d7['writer']['remove'](_0x589d41));}},{'priority':'high'});}}class K extends _0x3a46d7{['afterInit'](){const _0x51a211=this['editor'];if(!_0x51a211['plugins']['has']('ListEditing'))return;const _0xb6b7c=_0x51a211['locale'],_0x345c2f=_0x51a211['plugins']['get']('TrackChangesEditing'),_0x5e0d5e=_0x51a211['plugins']['has']('TodoListEditing'),_0x3815e8=!!_0x51a211['config']['get']('list.multiBlock');function _0xeb0056(_0x28d58f){return{'type':'format','content':''+o(_0xb6b7c,'*Set\x20format:*\x20%0',_0x28d58f)};}function _0x5958d6(_0x463375){return{'type':'format','content':''+o(_0xb6b7c,'*Remove\x20format:*\x20%0',_0x463375)};}_0x345c2f['enableDefaultAttributesIntegration']('numberedList'),_0x345c2f['enableDefaultAttributesIntegration']('bulletedList'),_0x345c2f['enableDefaultAttributesIntegration']('customNumberedList'),_0x345c2f['enableDefaultAttributesIntegration']('customBulletedList'),_0x345c2f['enableDefaultAttributesIntegration']('indentList'),_0x345c2f['enableDefaultAttributesIntegration']('outdentList'),_0x345c2f['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x345c2f['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x345c2f['registerBlockAttribute']('listItemId'),_0x345c2f['registerBlockAttribute']('listType'),_0x345c2f['registerBlockAttribute']('listIndent'),_0x3815e8&&(_0x345c2f['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x345c2f['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x5e0d5e&&(_0x345c2f['enableDefaultAttributesIntegration']('todoList'),_0x345c2f['enableDefaultAttributesIntegration']('checkTodoList'),_0x345c2f['registerBlockAttribute']('todoListChecked'),_0x345c2f['descriptionFactory']['registerDescriptionCallback'](_0x4c7396=>{const {data:_0x54b572}=_0x4c7396;if(_0x54b572&&'todoListChecked'==_0x54b572['key'])return{'type':'format','content':_0x54b572['newValue']?o(_0xb6b7c,'*Check\x20item*'):o(_0xb6b7c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x582a69=>{if(_0x582a69['batch']['isUndo'])return!0x1;let _0x4f637=!0x1;const _0x2c653f=_0x345c2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d2ac0=>'todoListChecked'===_0x345c2f['_getAttributeKey'](_0x3d2ac0));for(const _0x5f1ce6 of _0x2c653f){'todo'!=_0x5f1ce6['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x345c2f['_findSuggestions'](_0x5f1ce6['getFirstRange'](),'attribute')['find'](_0x1f60d8=>'listType'===_0x345c2f['_getAttributeKey'](_0x1f60d8['suggestion']))||(_0x582a69['removeMarker'](_0x5f1ce6['getFirstMarker']()),_0x4f637=!0x0));}return _0x4f637;})),_0x345c2f['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0xb6b7c,'FORMAT_INDENT'));const _0x4b33e0={'type':'format','content':''};_0x345c2f['descriptionFactory']['registerDescriptionCallback'](_0x192cf6=>{const {data:_0x5c35d1}=_0x192cf6;if(!_0x5c35d1||'listType'!=_0x5c35d1['key'])return;let _0x290bb9=_0x192cf6['head'];for(;_0x290bb9;){if(_0x290bb9['data']&&(('listStyle'==_0x290bb9['data']['key']||'listMarkerStyle'==_0x290bb9['data']['key'])&&(_0x290bb9['data']['newValue']&&'default'!=_0x290bb9['data']['newValue']||'default'!=_0x290bb9['data']['oldValue']&&!_0x5c35d1['newValue'])||!_0x3815e8&&_0x290bb9['data']['key']==m))return _0x4b33e0;_0x290bb9=_0x290bb9['next'];}if(null==_0x5c35d1['newValue'])switch(_0x5c35d1['oldValue']){case'bulleted':return _0x5958d6(o(_0xb6b7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5958d6(o(_0xb6b7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5958d6(o(_0xb6b7c,'ELEMENT_TODO_LIST'));}switch(_0x5c35d1['newValue']){case'bulleted':return _0xeb0056(o(_0xb6b7c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xeb0056(o(_0xb6b7c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xeb0056(o(_0xb6b7c,'ELEMENT_TODO_LIST'));}}),_0x345c2f['descriptionFactory']['registerDescriptionCallback'](_0x1ad6f5=>{const {data:_0x180f8d}=_0x1ad6f5;if(_0x180f8d&&'listIndent'==_0x180f8d['key'])return null==_0x180f8d['newValue']||null==_0x180f8d['oldValue']&&0x0==_0x180f8d['newValue']?_0x4b33e0:void 0x0;}),_0x345c2f['descriptionFactory']['registerDescriptionCallback'](_0x55bbc4=>{if('attribute'!=_0x55bbc4['type'])return;const {data:_0x2a3916}=_0x55bbc4;if(!_0x2a3916||'listItemId'!=_0x2a3916['key'])return;const _0x20cf69=Ee(_0x55bbc4);return'newValue'==_0x20cf69?{'type':'format','content':o(_0xb6b7c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x20cf69?{'type':'format','content':o(_0xb6b7c,'*Split:*\x20list\x20item')}:_0x4b33e0;}),_0x51a211['model']['document']['registerPostFixer'](_0x32a13d=>this['listItemIdFixer'](_0x32a13d)),_0x51a211['model']['document']['registerPostFixer'](_0x33febc=>this['noTrackChangesFixer'](_0x33febc)),_0x51a211['model']['document']['on']('change:data',(_0x303f27,_0xa3c096)=>{if(_0xa3c096['isUndo']||!_0xa3c096['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x5f3358){if(_0x5f3358['batch']['isUndo']||!_0x5f3358['batch']['isLocal'])return!0x1;let _0x14741a=!0x1;const _0x387298=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4d80a4=>_0x4d80a4['data']&&'listItemId'==_0x4d80a4['data']['key'])['filter'](_0x580b49=>_0x580b49['data']['newValue']&&_0x580b49['data']['oldValue']);for(const _0x5639c0 of _0x387298)Ee(_0x5639c0)||(_0x5f3358['removeMarker'](_0x5639c0['getFirstMarker']()),_0x14741a=!0x0);return _0x14741a;}['noTrackChangesFixer'](_0x2ee753){if(_0x2ee753['batch']['isUndo']||!_0x2ee753['batch']['isLocal'])return!0x1;const _0x2d04c9=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2d04c9['trackChangesCommand']['value'])return!0x1;let _0x3a659d=!0x1;const _0x191bd8=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x477aa1=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x156e9d=>'attribute'==_0x156e9d['type'])['filter'](_0x567ae8=>_0x191bd8['includes'](_0x567ae8['attributeKey']));if(0x0==_0x477aa1['length'])return _0x3a659d;for(const _0x4dfead of _0x477aa1){const _0x1a01d6=_0x2d04c9['_findSuggestions'](_0x4dfead['range'],'attribute')['filter'](_0x1d85b2=>!_0x1d85b2['meta']['isNextTo'])['map'](_0x5589e3=>_0x5589e3['suggestion'])['filter'](_0xf5b1d1=>{const _0x5a33ff=_0x2d04c9['_getAttributeKey'](_0xf5b1d1);return _0x191bd8['includes'](_0x5a33ff);});if(_0x1a01d6['length']){for(const _0x383f3b of _0x1a01d6)_0x2ee753['removeMarker'](_0x383f3b['getFirstMarker']());_0x3a659d=!0x0;}}return _0x3a659d;}['assureChains'](){const _0x3e3794=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31f786=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x581367;const _0x12e074=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x55b7bf=>{if(_0x55b7bf['data']['oldRange']||!_0x55b7bf['data']['newRange'])return null;if(!_0x55b7bf['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x300431}=_0x3e3794['_splitMarkerName'](_0x55b7bf['name']);if(!_0x3e3794['hasSuggestion'](_0x300431))return null;const _0x33bfd4=_0x3e3794['getSuggestion'](_0x300431);return _0x31f786['includes'](_0x33bfd4['data']['key']);})['map'](_0xbfdaf5=>{const {id:_0x583e73}=_0x3e3794['_splitMarkerName'](_0xbfdaf5['name']),_0x2d9c11=_0x3e3794['getSuggestion'](_0x583e73);return _0x581367=_0x2d9c11['attributes']['groupId'],_0x2d9c11['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x12e074['size'])return;const _0x4f83dd=_0x3e3794['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46570a=>'attribute'==_0x46570a['type']&&_0x46570a['data']&&_0x31f786['includes'](_0x46570a['data']['key'])&&_0x46570a['attributes']['groupId']!=_0x581367)['map'](_0x2d6940=>({'listItem':_0x2d6940['getFirstRange']()['start']['nodeAfter'],'groupId':_0x2d6940['attributes']['groupId']})),_0x52cead=new Set();for(const {groupId:_0x444a17,listItem:_0x269460}of _0x4f83dd)_0x12e074['has'](_0x269460)&&_0x52cead['add'](_0x444a17);for(const _0x5e84e0 of _0x3e3794['getSuggestions']())_0x52cead['has'](_0x5e84e0['attributes']['groupId'])&&_0x5e84e0['setAttribute']('groupId',_0x581367);}['_supportLegacySuggestions'](){const _0x143aa4=this['editor'],_0xcac167=_0x143aa4['locale'],_0x4da915=_0x143aa4['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4da915['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a5cac,_0x3fb40f){const _0x9ea151=[];for(let _0xc391dd of _0x2a5cac)_0xc391dd['start']['nodeAfter']===_0xc391dd['end']['parent']&&(_0xc391dd=_0x143aa4['model']['createRange'](_0x143aa4['model']['createPositionAt'](_0xc391dd['start']['nodeAfter'],0x0))),_0x9ea151['push'](_0xc391dd);_0x143aa4['model']['change'](_0xba80ce=>{const _0x429c57=_0x143aa4['model']['document']['selection'],_0xb8d45d=Array['from'](_0x429c57['getRanges']())['map'](_0x15e700=>_0xb95ac7['fromRange'](_0x15e700));_0xba80ce['setSelection'](_0x9ea151),_0x143aa4['commands']['get'](_0x3fb40f['commandName'])['refresh'](),_0x3fb40f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x143aa4['execute'](_0x3fb40f['commandName'],..._0x3fb40f['commandParams']),_0xba80ce['setSelection'](_0xb8d45d);for(const _0x15dde2 of _0xb8d45d)_0x15dde2['detach']();});}),_0x4da915['descriptionFactory']['registerElementLabel'](function(_0x1c8966){const _0x516e15=!_0x143aa4['model']['schema']['isObject'](_0x1c8966),_0x27986c=_0x1c8966['previousSibling'],_0x1f9928=_0x1c8966['nextSibling'],_0x50bae6=_0x1c8966['getAttribute']('listItemId'),_0x2ebc54=!_0x27986c||_0x27986c['getAttribute']('listItemId')!==_0x50bae6,_0x4b1294=!_0x1f9928||_0x1f9928['getAttribute']('listItemId')!==_0x50bae6;return _0x516e15&&Boolean(_0x50bae6)&&_0x2ebc54&&_0x4b1294;},_0x475e0b=>o(_0xcac167,'ELEMENT_LIST_ITEM',_0x475e0b));}['_registerLegacyDescription'](){const _0x41af7a=this['editor'],_0xbd2fd9=_0x41af7a['locale'];function _0x4f04e1(_0x544e91){const _0x35ffa3=_0x41af7a['commands']['get']('bulletedList')['value'],_0x40c361=_0x41af7a['commands']['get']('numberedList')['value'];return'numberedList'===_0x544e91?_0x35ffa3:_0x40c361;}_0x41af7a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x17e606){if('formatBlock'!=_0x17e606['type'])return;const {data:_0x5ca67f}=_0x17e606;if(!_0x5ca67f)return;let _0x493492,_0x8bc08f,_0x1dec6b,_0x171fb2;switch(_0x5ca67f['commandName']){case'bulletedList':_0x1dec6b=_0x5ca67f['commandParams'][0x0]['forceValue'],_0x171fb2=_0x4f04e1(_0x5ca67f['commandName']),_0x493492=_0x1dec6b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x171fb2&&_0x41af7a['config']['get']('list.multiBlock')||(_0x493492='*Change\x20to:*\x20%0'),_0x8bc08f={'type':'format','content':o(_0xbd2fd9,_0x493492,o(_0xbd2fd9,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x1dec6b=_0x5ca67f['commandParams'][0x0]['forceValue'],_0x171fb2=_0x4f04e1(_0x5ca67f['commandName']),_0x493492=_0x1dec6b?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x171fb2&&_0x41af7a['config']['get']('list.multiBlock')||(_0x493492='*Change\x20to:*\x20%0'),_0x8bc08f={'type':'format','content':o(_0xbd2fd9,_0x493492,o(_0xbd2fd9,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x493492='*Indent:*\x20%0',_0x8bc08f={'type':'format','content':o(_0xbd2fd9,_0x493492,o(_0xbd2fd9,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x493492=function(_0x5a0ff0){const _0x3400a3=_0x5a0ff0['getFirstRange']();let _0xe935f8=_0x3400a3['start']['nodeAfter'];for(;_0xe935f8&&_0x3400a3['containsItem'](_0xe935f8);){if(_0xe935f8['getAttribute']('listIndent')>0x0)return!0x1;_0xe935f8=_0xe935f8['nextSibling'];}return!0x0;}(_0x17e606)?o(_0xbd2fd9,'*Format:*\x20remove\x20from\x20%0',o(_0xbd2fd9,function(_0x36eedc){return'ELEMENT_'+_0x36eedc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x17e606))):o(_0xbd2fd9,'*Outdent:*\x20%0',o(_0xbd2fd9,'ELEMENT_LIST_ITEM')),_0x8bc08f={'type':'format','content':_0x493492};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5ca67f['multipleBlocks']&&(_0x493492='*Merge:*\x20%0',_0x8bc08f={'type':'deletion','content':o(_0xbd2fd9,_0x493492,o(_0xbd2fd9,'ELEMENT_LIST_ITEM'))});}return _0x8bc08f;});}}function Ee(_0x236584){let _0x4b5416=_0x236584['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4b5416;){const _0x178279=_0x4b5416['getAttribute']('listItemId');if(!_0x178279)return!0x1;if(_0x178279==_0x236584['data']['newValue'])return'newValue';if(_0x178279==_0x236584['data']['oldValue'])return'oldValue';_0x4b5416=_0x4b5416['previousSibling'];}return!0x1;}class pe extends _0x3a46d7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5a9aa1=this['editor']['config']['get']('list.properties'),_0x14f6ee=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a9aa1['styles']&&(_0x14f6ee['enableDefaultAttributesIntegration']('listStyle'),_0x14f6ee['registerBlockAttribute']('listStyle')),_0x5a9aa1['reversed']&&(_0x14f6ee['enableDefaultAttributesIntegration']('listReversed'),_0x14f6ee['registerBlockAttribute']('listReversed')),_0x5a9aa1['startIndex']&&(_0x14f6ee['enableDefaultAttributesIntegration']('listStart'),_0x14f6ee['registerBlockAttribute']('listStart'));const _0x5be5f5={'type':'format','content':''};_0x14f6ee['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x310648=this['editor']['locale'];_0x14f6ee['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x310648,'FORMAT_LIST_REVERSED')),_0x14f6ee['descriptionFactory']['registerDescriptionCallback'](_0x1017e2=>{const {data:_0x28134e}=_0x1017e2;if(_0x28134e&&'listReversed'==_0x28134e['key'])return null==_0x28134e['newValue']||0x0==_0x28134e['newValue']&&null==_0x28134e['oldValue']?_0x5be5f5:void 0x0;}),_0x14f6ee['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x310648,'FORMAT_LIST_START')),_0x14f6ee['descriptionFactory']['registerDescriptionCallback'](_0x2d1519=>{const {data:_0x375e5f}=_0x2d1519;if(_0x375e5f&&'listStart'==_0x375e5f['key'])return null==_0x375e5f['newValue']||0x1==_0x375e5f['newValue']&&null==_0x375e5f['oldValue']?_0x5be5f5:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x118fba=>{if(_0x118fba['batch']['isUndo'])return!0x1;let _0x55102f=!0x1;const _0x1463a3=_0x14f6ee['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x445b37=>{const _0x278679=_0x14f6ee['_getAttributeKey'](_0x445b37);return'listStart'==_0x278679||'listReversed'==_0x278679;});for(const _0x270f99 of _0x1463a3){const _0x134690=_0x270f99['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x134690||'customNumbered'==_0x134690)continue;_0x14f6ee['_findSuggestions'](_0x270f99['getFirstRange'](),'attribute')['find'](_0x327378=>'listType'==_0x14f6ee['_getAttributeKey'](_0x327378['suggestion']))||(_0x118fba['removeMarker'](_0x270f99['getFirstMarker']()),_0x55102f=!0x0);}return _0x55102f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x40b215){const _0x5659fc=this['editor']['locale'],{data:_0x5015e8}=_0x40b215,_0x5217e9={'type':'format','content':''};if(!_0x5015e8||'listStyle'!=_0x5015e8['key'])return;if(!_0x5015e8['oldValue'])return'default'==_0x5015e8['newValue']?_0x5217e9:{'type':'format','content':''+o(_0x5659fc,'*Set\x20format:*\x20%0',o(_0x5659fc,this['_getTranslationKeyForListStyle'](_0x5015e8['newValue'])))};if(!_0x5015e8['newValue']){if('default'==_0x5015e8['oldValue'])return _0x5217e9;let _0x1254fd=_0x40b215['head'];for(;_0x1254fd;){if(_0x1254fd['data']&&'listType'==_0x1254fd['data']['key']&&_0x1254fd['data']['newValue'])return _0x5217e9;_0x1254fd=_0x1254fd['next'];}return{'type':'format','content':''+o(_0x5659fc,'*Remove\x20format:*\x20%0',o(_0x5659fc,this['_getTranslationKeyForListStyle'](_0x5015e8['oldValue'])))};}if('default'!=_0x5015e8['newValue'])return{'type':'format','content':''+o(_0x5659fc,'*Set\x20format:*\x20%0',o(_0x5659fc,this['_getTranslationKeyForListStyle'](_0x5015e8['newValue'])))};let _0x9ce96f=_0x40b215['head'];for(;_0x9ce96f;){if(_0x9ce96f['data']&&'listType'==_0x9ce96f['data']['key']&&_0x9ce96f['data']['newValue']&&_0x9ce96f['data']['oldValue'])return _0x5217e9;_0x9ce96f=_0x9ce96f['next'];}return{'type':'format','content':o(_0x5659fc,'*Set\x20format:*\x20%0',o(_0x5659fc,'ELEMENT_'+_0x40b215['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4641bd=this['editor'],_0xcbb474=_0x4641bd['locale'];_0x4641bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x67a849=>{if('formatBlock'!=_0x67a849['type'])return;const {data:_0x53b81f}=_0x67a849;if(!_0x53b81f)return;let _0x376823,_0x2f27a8;switch(_0x53b81f['commandName']){case'listStyle':_0x376823='*Change\x20to:*\x20%0',_0x2f27a8={'type':'format','content':o(_0xcbb474,_0x376823,o(_0xcbb474,this['_getTranslationKeyForListStyle'](_0x53b81f['commandParams'][0x0]['type'])))};break;case'listReversed':_0x376823=_0x53b81f['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2f27a8={'type':'format','content':o(_0xcbb474,_0x376823)};break;case'listStart':_0x376823='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2f27a8={'type':'format','content':o(_0xcbb474,_0x376823,_0x53b81f['commandParams'][0x0]['startIndex'])};}return _0x2f27a8;});}['_getTranslationKeyForListStyle'](_0x4c4701){return'ELEMENT_'+function(_0x4c6707){if(ye['includes'](_0x4c6707))return'bulleted';if(Se['includes'](_0x4c6707))return'numbered';return null;}(_0x4c4701)['toUpperCase']()+'_LIST_'+_0x4c4701['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3a46d7{static get['requires'](){return[_0x9d95f0];}['init'](){const _0x4a12fc=this['editor'],_0x58c3cb=_0x4a12fc['plugins']['get']('TrackChangesEditing'),_0x355b62=_0x4a12fc['commands']['get']('enter');_0x58c3cb['enableCommand']('enter',()=>{_0x4a12fc['model']['change'](_0x405746=>{const _0x5d0fe8=_0x4a12fc['model']['document']['selection'],_0x1f9e52=_0x5d0fe8['getFirstPosition'](),_0x9fb56a=_0xb95ac7['fromRange'](_0x5d0fe8['getFirstRange']());if(_0x355b62['enterBlock'](_0x405746)){const _0x135bc6=_0x4a12fc['model']['createPositionAt'](_0x1f9e52['parent']['nextSibling'],0x0),_0x3c42d3=_0x405746['createRange'](_0x1f9e52,_0x135bc6);_0x58c3cb['markInsertion'](_0x3c42d3);}else _0x405746['setSelection'](_0x405746['createRange'](_0x9fb56a['end']));_0x9fb56a['detach'](),_0x355b62['fire']('afterExecute',{'writer':_0x405746});});}),_0x4a12fc['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x4a12fc,'split'),{'priority':'high'}),_0x4a12fc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x253a7c,_0x3bdbfd,_0x38b007)=>{const _0xe2af93=_0x38b007['mapper']['markerNameToElements'](_0x3bdbfd['markerName']);if(_0xe2af93){for(const _0x1a9f95 of _0xe2af93)_0x1a9f95['hasClass']('ck-suggestion-marker-split')&&(_0x38b007['mapper']['unbindElementFromMarkerName'](_0x1a9f95,_0x3bdbfd['markerName']),_0x38b007['writer']['remove'](_0x1a9f95));}},{'priority':'high'}),_0x4a12fc['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x525deb,_0x29f8aa,_0x497829)=>{_0x497829['options']['showSuggestionHighlights']&&_e(_0x4a12fc,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x525deb,_0x29f8aa,_0x497829);},{'priority':'high'});}}class X extends _0x3a46d7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x18595a=this['editor']['plugins']['get']('TrackChangesEditing');_0x18595a['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x18595a['enableCommand']('findNext'),_0x18595a['enableCommand']('findPrevious'),_0x18595a['enableCommand']('replace'),_0x18595a['enableCommand']('replaceAll');}['handleFindCommand'](_0x20bd00,_0x2b157b,_0x4b3a2e={}){const _0x315353=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x20bd00(_0x24799b=>{let _0x264df7=('string'==typeof _0x2b157b?_0x315353['findByTextCallback'](_0x2b157b,_0x4b3a2e):_0x2b157b)(_0x24799b);Array['isArray'](_0x264df7)&&(_0x264df7={'results':_0x264df7,'searchText':'string'==typeof _0x2b157b?_0x2b157b:''});const _0x11794b=_0x264df7['results']['filter'](_0x32f852=>!0x1===this['_isInDeletionRange'](_0x32f852,_0x24799b['item']));return{..._0x264df7,'results':_0x11794b};},_0x4b3a2e);}['_isInDeletionRange'](_0x125cdd,_0x4c27d4){const _0x14f114=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4c27d4,_0x125cdd['start']),this['editor']['model']['createPositionAt'](_0x4c27d4,_0x125cdd['end']));for(const _0x1ed67d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x14f114['getIntersection'](_0x1ed67d['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x3a46d7{['afterInit'](){const _0x2b4b06=this['editor']['locale'],_0x13ff6d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x568900,commandName:_0x1decd3}of ro)this['editor']['plugins']['has'](_0x568900)&&(_0x13ff6d['enableDefaultAttributesIntegration'](_0x1decd3),_0x13ff6d['registerInlineAttribute'](_0x1decd3));_0x13ff6d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2b4b06,'FORMAT_FONT_SIZE')),_0x13ff6d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2b4b06,'FORMAT_FONT_FAMILY')),_0x13ff6d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2b4b06,'FORMAT_FONT_COLOR')),_0x13ff6d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2b4b06,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24de66=this['editor'],_0x377478=_0x24de66['locale'];_0x24de66['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x457387=>{const _0x541dbb=_0x377478['t'];if('formatInline'!=_0x457387['type'])return;const {data:_0x3e3351}=_0x457387;if(null!=_0x3e3351){if('fontSize'==_0x3e3351['commandName']){const _0x1916b5=_0x3e3351['commandParams'][0x0]['value'];if(_0x1916b5){const _0x17a3f6=_0x541dbb(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x37bac1=>_0x37bac1['model']==_0x1916b5)['title'])['toLowerCase']();return{'type':'format','content':o(_0x377478,'*Set\x20font\x20size:*\x20%0',_0x17a3f6)};}return{'type':'format','content':o(_0x377478,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3e3351['commandName']){const _0x2eb857=_0x3e3351['commandParams'][0x0]['value'];return _0x2eb857?{'type':'format','content':o(_0x377478,'*Set\x20font\x20family:*\x20%0',_0x2eb857)}:{'type':'format','content':o(_0x377478,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3e3351['commandName']){const _0xdc1cc0=_0x3e3351['commandParams'][0x0]['value'];if(_0xdc1cc0){const _0x551ddf=_0x2d5d31(this['editor']['config']['get']('fontColor.colors'))['find'](_0x36b49c=>_0x36b49c['model']==_0xdc1cc0);let _0x498d37=_0xdc1cc0,_0x403395='';return _0x551ddf&&(_0x498d37=_0x551ddf['label'],_0x403395=_0x541dbb(_0x498d37)['toLowerCase']()),{'type':'format','content':o(_0x377478,'*Set\x20font\x20color:*\x20%0',_0x403395)['trim'](),'color':{'value':_0xdc1cc0,'title':_0x403395||_0x498d37}};}return{'type':'format','content':o(_0x377478,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3e3351['commandName']){const _0x4a764f=_0x3e3351['commandParams'][0x0]['value'];if(_0x4a764f){const _0x20fb61=_0x2d5d31(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x777c48=>_0x777c48['model']==_0x4a764f);let _0x2277d5=_0x4a764f,_0x260141='';return _0x20fb61&&(_0x2277d5=_0x20fb61['label'],_0x260141=_0x541dbb(_0x2277d5)['toLowerCase']()),{'type':'format','content':o(_0x377478,'*Set\x20font\x20background\x20color:*\x20%0',_0x260141)['trim'](),'color':{'value':_0x4a764f,'title':_0x260141||_0x2277d5}};}return{'type':'format','content':o(_0x377478,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3a46d7{['afterInit'](){const _0x44987e=this['editor'],_0x50cb9a=_0x44987e['plugins']['get']('TrackChangesEditing'),_0x366aa6=_0x44987e['commands']['get']('copyFormat'),_0x2a1922=_0x44987e['commands']['get']('pasteFormat');_0x366aa6&&_0x2a1922&&(_0x50cb9a['enableDefaultAttributesIntegration']('pasteFormat'),_0x50cb9a['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3593e9=this['editor'],_0x4abba3=_0x3593e9['locale'];_0x3593e9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35257f=>{if('formatBlock'!=_0x35257f['type']&&'formatInline'!=_0x35257f['type'])return;const {data:_0x541827}=_0x35257f;if(_0x541827&&'pasteFormat'===_0x541827['commandName']){const _0x24340e=[],_0x21580f=_0x541827['commandParams'][0x0];for(const [_0x2ddfc2,_0x7f547f]of Object['entries'](_0x21580f))_0x24340e['push'](so(_0x3593e9,_0x2ddfc2,_0x7f547f));return _0x24340e['length']?{'type':'format','content':o(_0x4abba3,'*Set\x20format\x20to:*\x20%0',_0x24340e['join'](',\x20'))}:{'type':'format','content':o(_0x4abba3,'*Remove\x20all\x20formatting*')};}});}}function so(_0x14f24b,_0xe36394,_0xf8bab9){const _0x427c15=_0x14f24b['locale']['t'],_0x4c9d24=_0xe36394['split'](/(?=[A-Z])/)['join']('\x20'),_0x17a18a=_0x427c15(_0x4c9d24['charAt'](0x0)['toUpperCase']()+_0x4c9d24['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xf8bab9)return _0x17a18a;if('fontColor'===_0xe36394||'fontBackgroundColor'===_0xe36394){const _0x31b3cb=_0x2d5d31(_0x14f24b['config']['get']('fontColor.colors'))['find'](_0x5adbe1=>_0x5adbe1['model']==_0xf8bab9);return _0x17a18a+'\x20('+(_0x31b3cb?_0x427c15(_0x31b3cb['label'])['toLowerCase']():_0xf8bab9)+')';}if('fontSize'===_0xe36394&&isNaN(parseFloat(_0xf8bab9))){const _0x9a153a=_0x14f24b['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x14f24b['config']['get']('fontSize.options'))['find'](_0x4b285a=>_0x4b285a['model']==_0xf8bab9);return _0x17a18a+'\x20('+(_0x9a153a?_0x427c15(_0x9a153a['title'])['toLowerCase']():_0xf8bab9)+')';}return _0x17a18a+'\x20('+_0xf8bab9+')';}class tt extends _0x3a46d7{['_headingOptions'];['afterInit'](){const _0x263f26=this['editor'];if(!_0x263f26['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x263f26['config']['get']('heading.options');const _0x43fdb7=_0x263f26['locale'],_0x2613a8=_0x263f26['plugins']['get']('TrackChangesEditing');_0x2613a8['enableDefaultAttributesIntegration']('heading');for(const _0x5a4e18 of this['_headingOptions'])'paragraph'!=_0x5a4e18['model']&&_0x2613a8['descriptionFactory']['registerElementLabel'](_0x5a4e18['model'],_0x189810=>{const _0x873843=this['_getHeadingLevel'](_0x5a4e18['model']);return null!==_0x873843?_0x47cb4a(_0x189810,_0x873843):_0x3484a7(_0x189810,_0x5a4e18['title']);});function _0x47cb4a(_0x115aa2,_0x156016){return o(_0x43fdb7,'ELEMENT_HEADING',[_0x115aa2,_0x156016]);}function _0x3484a7(_0x2c8b96,_0x1b2236){return o(_0x43fdb7,'ELEMENT_HEADING_CUSTOM',[_0x2c8b96,_0x1b2236]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38b30b=this['editor'],_0x16b561=_0x38b30b['locale'];function _0x40a92b(_0x23b8b3,_0x3ca5e4){return o(_0x16b561,'ELEMENT_HEADING_CUSTOM',[_0x23b8b3,_0x3ca5e4]);}_0x38b30b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdc0958=>{if('formatBlock'!=_0xdc0958['type'])return;const {data:_0x284992}=_0xdc0958;if(_0x284992&&'heading'==_0x284992['commandName']){const _0x3e2592=_0x284992['commandParams'][0x0]['value'],_0x293ad1=this['_getHeadingLevel'](_0x3e2592);if(null!==_0x293ad1)return{'type':'format','content':o(_0x16b561,'*Change\x20to:*\x20%0',(_0x5893fe=0x1,_0x18ef48=_0x293ad1,o(_0x16b561,'ELEMENT_HEADING',[_0x5893fe,_0x18ef48])))};const _0x24b1ee=this['_headingOptions']['find'](_0x1248d2=>_0x1248d2['model']===_0x3e2592)['title'];return{'type':'format','content':o(_0x16b561,'*Change\x20to:*\x20%0',_0x40a92b(0x1,_0x24b1ee))};}var _0x5893fe,_0x18ef48;});}['_getHeadingLevel'](_0x406fb4){const _0x4d6740=_0x406fb4['match'](/^heading(\d+)/);if(_0x4d6740)return _0x4d6740[0x1];const _0x2497ed=this['_headingOptions']?.['find'](_0x9c6fe5=>_0x9c6fe5['model']==_0x406fb4);if(_0x2497ed&&_0x2497ed['view']){const _0x23853a=_0x2497ed['view'],_0x378fcb=(_0x23853a['name']??_0x23853a)['match'](/^h(\d+)/);if(_0x378fcb)return _0x378fcb[0x1];}return null;}}class et extends _0x3a46d7{['afterInit'](){const _0x963262=this['editor'];if(!_0x963262['plugins']['has']('HighlightEditing'))return;const _0x201da1=_0x963262['plugins']['get']('TrackChangesEditing'),_0x270aff=_0x963262['locale'];_0x201da1['enableDefaultAttributesIntegration']('highlight'),_0x201da1['registerInlineAttribute']('highlight'),_0x201da1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x270aff,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d28d9=this['editor'],_0x3e1a91=_0x4d28d9['locale'];_0x4d28d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2dc751=>{if('formatInline'!=_0x2dc751['type'])return;const {data:_0x34454e}=_0x2dc751;if(_0x34454e&&'highlight'==_0x34454e['commandName']){const _0x43d010=_0x3e1a91['t'],_0x3249c7=_0x34454e['commandParams'][0x0]['value'];if(_0x3249c7){const _0x342ac8=_0x4d28d9['config']['get']('highlight.options')['find'](_0x4abb65=>_0x4abb65['model']==_0x3249c7),_0x4a97c1=_0x43d010(_0x342ac8['title'])['toLowerCase']();return{'type':'format','content':o(_0x3e1a91,'*Set\x20highlight:*\x20%0',_0x4a97c1),'color':{'value':_0x342ac8['color'],'title':_0x342ac8['title']}};}return{'type':'format','content':o(_0x3e1a91,'*Remove\x20highlight*',o(_0x3e1a91,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3a46d7{['afterInit'](){const _0x3bb141=this['editor'];if(!_0x3bb141['plugins']['has']('HorizontalLineEditing'))return;_0x3bb141['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5a0820=_0x3bb141['plugins']['get']('TrackChangesEditing'),_0x11033d=_0x3bb141['locale'];_0x5a0820['descriptionFactory']['registerElementLabel']('horizontalLine',_0x19a736=>o(_0x11033d,'ELEMENT_HORIZONTAL_LINE',_0x19a736)),_0x3bb141['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x434057,{writer:_0x4ff504,options:_0x368208})=>{if(!_0x368208['showSuggestionHighlights'])return null;const _0x2c8cf9=_0x4ff504['createContainerElement']('div'),_0x43a77f=_0x4ff504['createEmptyElement']('hr');return _0x4ff504['addClass']('ck-horizontal-line',_0x2c8cf9),_0x4ff504['insert'](_0x4ff504['createPositionAt'](_0x2c8cf9,0x0),_0x43a77f),_0x2c8cf9;},'converterPriority':'high'});}}class st extends _0x3a46d7{['afterInit'](){const _0x3ec024=this['editor'];if(!_0x3ec024['plugins']['has']('HtmlEmbed'))return;const _0x114972=_0x3ec024['plugins']['get']('TrackChangesEditing'),_0x207b23=_0x3ec024['locale'];_0x114972['descriptionFactory']['registerElementLabel']('rawHtml',_0x48b1ae=>o(_0x207b23,'ELEMENT_HTML_EMBED',_0x48b1ae)),_0x114972['enableDefaultAttributesIntegration']('htmlEmbed'),_0x114972['registerBlockAttribute']('value'),_0x114972['descriptionFactory']['registerDescriptionCallback'](_0x2ee32e=>{if('attribute'!=_0x2ee32e['type'])return;const {data:_0x4b665a}=_0x2ee32e;if(_0x4b665a&&'value'==_0x4b665a['key']&&_0x2ee32e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x5834cf=o(_0x207b23,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x207b23,'*Change\x20%0\x20content*',_0x5834cf)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x107aaa=this['editor'],_0x454372=_0x107aaa['locale'];_0x107aaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44fc4c=>{if('formatBlock'!=_0x44fc4c['type'])return;const {data:_0x562eb8}=_0x44fc4c;if(_0x562eb8&&'htmlEmbed'==_0x562eb8['commandName']){const _0x46dc1a=o(_0x454372,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x454372,'*Change\x20%0\x20content*',_0x46dc1a)};}});}}class nt extends _0x3a46d7{['afterInit'](){const _0x51d3c2=this['editor'];if(!_0x51d3c2['plugins']['has']('ImageEditing'))return;const _0x28c9d0=_0x51d3c2['plugins']['get']('TrackChangesEditing'),_0x4c8f0c=_0x51d3c2['plugins']['get']('ImageUtils'),_0x4ff6e4=_0x51d3c2['locale'];_0x28c9d0['enableCommand']('insertImage'),_0x28c9d0['descriptionFactory']['registerElementLabel']('imageBlock',_0x4582df=>o(_0x4ff6e4,'ELEMENT_IMAGE',_0x4582df)),_0x28c9d0['descriptionFactory']['registerElementLabel']('imageInline',_0x211366=>o(_0x4ff6e4,'ELEMENT_INLINE_IMAGE',_0x211366)),_0x28c9d0['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ff6e4,'ELEMENT_CAPTION')),_0x51d3c2['plugins']['has']('ImageUploadEditing')&&_0x28c9d0['enableCommand']('uploadImage'),_0x51d3c2['plugins']['has']('ImageBlockEditing')&&_0x51d3c2['plugins']['has']('ImageInlineEditing')&&(_0x28c9d0['enableCommand']('imageTypeInline',(_0x389bff,_0x1d59d7)=>{const _0x2d4dff=_0x4c8f0c['getClosestSelectedImageElement'](_0x51d3c2['model']['document']['selection']);_0x51d3c2['model']['change'](()=>{_0x28c9d0['markBlockFormat'](_0x2d4dff,{'commandName':'imageTypeInline','commandParams':[_0x1d59d7]},[],'convertBlockImageToInline');});}),_0x28c9d0['enableCommand']('imageTypeBlock',(_0x540778,_0x32c47c)=>{_0x51d3c2['model']['change'](_0x3dc235=>{let _0x5e0417=_0x4c8f0c['getClosestSelectedImageElement'](_0x51d3c2['model']['document']['selection']),_0x25f1fb=_0x3dc235['createRangeOn'](_0x5e0417);const _0x5bb0da=_0x4b3038['fromPosition'](_0x25f1fb['start'],'toPrevious'),_0x261457=_0x4b3038['fromPosition'](_0x25f1fb['end'],'toNext');_0x28c9d0['forceDefaultExecution'](()=>_0x540778(_0x32c47c)),_0x5e0417=_0x4c8f0c['getClosestSelectedImageElement'](_0x51d3c2['model']['document']['selection']),_0x25f1fb=_0x3dc235['createRangeOn'](_0x5e0417);const _0xc35449=_0x3dc235['createRange'](_0x5bb0da,_0x261457);_0x5bb0da['detach'](),_0x261457['detach'](),_0x28c9d0['markBlockFormat'](_0x5e0417,{'commandName':'imageTypeInline','commandParams':[_0x32c47c]},[],'convertInlineImageToBlock'),_0xc35449['start']['isBefore'](_0x25f1fb['start'])&&_0x28c9d0['markInsertion'](_0x3dc235['createRange'](_0xc35449['start'],_0x25f1fb['start']),'convertInlineImageToBlock'),_0x25f1fb['end']['isBefore'](_0xc35449['end'])&&_0x28c9d0['markInsertion'](_0x3dc235['createRange'](_0x25f1fb['end'],_0xc35449['end']),'convertInlineImageToBlock');});}),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x28c9d0['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x293703])=>{const _0x2d1671=_0x28c9d0['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2b1cbc=_0x293703['start'],_0x5194ce=_0x293703['end'];const _0x1345d7=_0x51d3c2['model']['schema']['getNearestSelectionRange'](_0x2b1cbc,'backward'),_0x428c3b=_0x51d3c2['model']['schema']['getNearestSelectionRange'](_0x5194ce,'forward');_0x1345d7['isCollapsed']&&(_0x2b1cbc=_0x1345d7['start']),_0x428c3b['isCollapsed']&&(_0x5194ce=_0x428c3b['end']),_0x2d1671([_0x51d3c2['model']['createRange'](_0x2b1cbc,_0x5194ce)]);}),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x5cc1cf),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x5cc1cf)),_0x51d3c2['plugins']['has']('ImageCaptionEditing')&&(_0x28c9d0['enableCommand']('toggleImageCaption',(_0x30f348,_0x330749)=>{const _0x340415=_0x51d3c2['plugins']['get']('ImageCaptionUtils');let _0x3d686b=_0x4c8f0c['getClosestSelectedImageElement'](_0x51d3c2['model']['document']['selection']),_0x1c3634=_0x340415['getCaptionFromImageModelElement'](_0x3d686b);_0x51d3c2['model']['change'](()=>{if(_0x1c3634)return void _0x28c9d0['markDeletion'](_0x51d3c2['model']['createRangeOn'](_0x1c3634));const _0x4ef6aa=_0x4c8f0c['isBlockImage'](_0x3d686b);_0x30f348(_0x330749),_0x3d686b=_0x4c8f0c['getClosestSelectedImageElement'](_0x51d3c2['model']['document']['selection']),_0x1c3634=_0x340415['getCaptionFromImageModelElement'](_0x3d686b),_0x28c9d0['markInsertion'](_0x51d3c2['model']['createRangeOn'](_0x1c3634),_0x4ef6aa?null:'imageCaption');});}),_0x28c9d0['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x5cc1cf));const _0x5742e0=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xb05496(_0x5b1d13,_0x294eb4){const _0x243823=_0x5742e0['findIndex'](({type:_0xaa5c48,subType:_0x1829eb})=>_0x5b1d13['type']==_0xaa5c48&&_0x5b1d13['subType']==_0x1829eb),_0x3f64f4=_0x5742e0['findIndex'](({type:_0x36bc19,subType:_0x49ee22})=>_0x294eb4['type']==_0x36bc19&&_0x294eb4['subType']==_0x49ee22);if(_0x243823<0x0||_0x3f64f4<0x0)return!0x1;const _0x4931a9=_0x5b1d13['getFirstRange'](),_0x1c7eed=_0x294eb4['getFirstRange']();if((0x0==_0x243823||0x1==_0x243823)&&0x2==_0x3f64f4&&_0x4931a9['isIntersecting'](_0x1c7eed))return!0x0;if(0x2==_0x243823&&0x3==_0x3f64f4){const _0x299273=_0x28c9d0['_findSuggestions'](_0x4931a9,'insertion')['filter'](({suggestion:_0x443045,meta:_0x3fa6ac})=>_0x3fa6ac['isOwn']&&'convertInlineImageToBlock'==_0x443045['subType']);if(_0x299273['length']>0x1&&_0x1c7eed['end']['isEqual'](_0x4931a9['start']))return!0x0;if(0x1==_0x299273['length']&&(_0x4931a9['start']['isEqual'](_0x1c7eed['end'])||_0x4931a9['end']['isEqual'](_0x1c7eed['start'])))return!0x0;}if(0x3==_0x243823&&0x3==_0x3f64f4&&_0x4931a9['start']['isBefore'](_0x1c7eed['start'])){const _0x4373c7=_0x4931a9['end']['nodeAfter'],_0x54d2d2=_0x1c7eed['start']['nodeBefore'];return _0x4c8f0c['isBlockImage'](_0x4373c7)&&_0x4373c7===_0x54d2d2;}return!0x1;}function _0x5cc1cf(_0x481fc8,_0x123f19){return _0xb05496(_0x481fc8,_0x123f19)?[_0x481fc8,_0x123f19]:_0xb05496(_0x123f19,_0x481fc8)?[_0x123f19,_0x481fc8]:null;}_0x51d3c2['plugins']['has']('ImageResize')&&(_0x28c9d0['enableDefaultAttributesIntegration']('resizeImage'),_0x28c9d0['registerBlockAttribute']('resizedWidth'),_0x28c9d0['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ff6e4,'FORMAT_IMAGE_SIZE'))),_0x51d3c2['plugins']['has']('ImageTextAlternativeEditing')&&(_0x28c9d0['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x28c9d0['registerBlockAttribute']('alt')),_0x28c9d0['descriptionFactory']['registerDescriptionCallback'](_0x3613d1=>{if(!!_0x5742e0['find'](({type:_0x7a9834,subType:_0x31f791})=>_0x3613d1['type']==_0x7a9834&&_0x3613d1['subType']==_0x31f791))return _0x3613d1['previous']?{}:void 0x0;}),_0x28c9d0['descriptionFactory']['registerDescriptionCallback'](_0x35166e=>{if('insertion'==_0x35166e['type']||'deletion'==_0x35166e['type']){const _0x37d3ed=_0x35166e['getContainedElement']();if(_0x37d3ed&&_0x37d3ed['is']('element','caption'))return{'type':'insertion'==_0x35166e['type']?'addObject':'removeObject','element':_0x37d3ed,'quantity':0x1};}}),_0x28c9d0['descriptionFactory']['registerDescriptionCallback'](_0x368a00=>'formatBlock'==_0x368a00['type']&&'convertInlineImageToBlock'==_0x368a00['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x368a00['type']&&'convertBlockImageToInline'==_0x368a00['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x28c9d0['descriptionFactory']['registerDescriptionCallback'](_0x2f4b96=>{if('attribute'!=_0x2f4b96['type'])return;const {data:_0x82d220}=_0x2f4b96;if(!_0x82d220||'alt'!=_0x82d220['key'])return;const _0x1b8525=_0x82d220['newValue'];return _0x1b8525?{'type':'format','content':o(_0x4ff6e4,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b8525+'\x22')}:{'type':'format','content':o(_0x4ff6e4,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2019a5=this['editor'],_0x27a852=_0x2019a5['locale'];_0x2019a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b43cd=>{if('formatBlock'!=_0x4b43cd['type']&&'formatInline'!=_0x4b43cd['type'])return;const {data:_0x2d4999}=_0x4b43cd;if(_0x2d4999){if('imageTextAlternative'==_0x2d4999['commandName']){const _0x2e53e9=_0x2d4999['commandParams'][0x0]['newValue'];return _0x2e53e9?{'type':'format','content':o(_0x27a852,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e53e9+'\x22')}:{'type':'format','content':o(_0x27a852,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2d4999['commandName']){const _0x15b96f=_0x2d4999['commandParams'][0x0]['width'];return _0x15b96f?{'type':'format','content':o(_0x27a852,'*Set\x20image\x20width:*\x20%0',_0x15b96f)}:{'type':'format','content':o(_0x27a852,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3a46d7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xf5f554=this['editor']['locale'],_0x50f74b=this['editor']['plugins']['get']('TrackChangesEditing');_0x50f74b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x50f74b['registerBlockAttribute']('src'),_0x50f74b['descriptionFactory']['registerDescriptionCallback'](_0x3d2178=>{if('attribute'!=_0x3d2178['type'])return;const {data:_0x38ed12}=_0x3d2178;return _0x38ed12&&'src'==_0x38ed12['key']?_0x38ed12['newValue']&&_0x38ed12['oldValue']?{'type':'format','content':o(_0xf5f554,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2a2fa1=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a2fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2a2fa1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a2fa1['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2a2fa1['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36d946=this['editor'],_0x233f2d=_0x36d946['locale'];_0x36d946['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfbed2e=>{if('formatBlock'!=_0xfbed2e['type']&&'formatInline'!=_0xfbed2e['type'])return;const {data:_0x2cfc2b}=_0xfbed2e;if(!_0x2cfc2b||'replaceImageSource'!=_0x2cfc2b['commandName'])return;return{'type':'format','content':o(_0x233f2d,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3a46d7{['afterInit'](){const _0x21e7df=this['editor'];if(!_0x21e7df['plugins']['has']('ImageStyleEditing'))return;const _0x4d3ccb=_0x21e7df['plugins']['get']('TrackChangesEditing'),_0x46860d=_0x21e7df['plugins']['get']('ImageUtils'),_0x43c0b7={};_0x4d3ccb['enableCommand']('imageStyle',(_0x4899b8,_0x347e71)=>{const _0x389497=_0x21e7df['plugins']['get']('Users')['me'],_0x388dc0=_0x21e7df['commands']['get']('imageStyle');let _0xc2be94=_0x46860d['getClosestSelectedImageElement'](_0x21e7df['model']['document']['selection']),_0x1f7e36=_0x21e7df['model']['createRangeOn'](_0xc2be94),_0x32cb15=_0x388dc0['value'];if(_0x32cb15==_0x347e71['value'])return;const _0x20b3c1={'commandName':'imageStyle','commandParams':[_0x347e71],'formatGroupId':_0x26aa04()};_0x21e7df['model']['change'](()=>{if(_0x4d3ccb['getSuggestions']()['filter'](_0x3d7e9a=>_0x3d7e9a['isInContent']&&_0x389497==_0x3d7e9a['author']&&('formatBlock'==_0x3d7e9a['type']||'formatInline'==_0x3d7e9a['type'])&&('imageStylePreApply'==_0x3d7e9a['subType']||'imageStylePostApply'==_0x3d7e9a['subType'])&&_0x3d7e9a['getFirstRange']()['isEqual'](_0x1f7e36))['forEach'](_0x535a05=>_0x4d3ccb['discardSuggestion'](_0x535a05['head'])),_0xc2be94=_0x46860d['getClosestSelectedImageElement'](_0x21e7df['model']['document']['selection']),_0x1f7e36=_0x21e7df['model']['createRangeOn'](_0xc2be94),_0x388dc0['refresh'](),_0x21e7df['commands']['get']('imageTypeInline')['refresh'](),_0x21e7df['commands']['get']('imageTypeBlock')['refresh'](),_0x32cb15=_0x388dc0['value'],_0x32cb15!=_0x347e71['value'])return _0x46860d['isInlineImage'](_0xc2be94)&&_0x388dc0['shouldConvertImageType'](_0x347e71['value'],_0xc2be94)?(_0x4899b8({..._0x347e71,'setImageSizes':!0x1}),_0xc2be94=_0x46860d['getClosestSelectedImageElement'](_0x21e7df['model']['document']['selection']),void _0x4d3ccb['markBlockFormat'](_0xc2be94,{..._0x20b3c1,'commandReversedParams':[{'value':_0x32cb15||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x46860d['isBlockImage'](_0xc2be94)?_0x4d3ccb['markBlockFormat'](_0xc2be94,_0x20b3c1,[],'imageStylePostApply'):_0x4d3ccb['markInlineFormat'](_0x1f7e36,_0x20b3c1,'imageStylePostApply'));});});for(const _0x29d192 of _0x21e7df['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x43c0b7[_0x29d192['name']]=_0x29d192['title']['toLowerCase']();_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x33dc7d])=>{_0x46860d['setImageNaturalSizeAttributes'](_0x33dc7d['getContainedElement']());}),_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x44fc65,_0x5b0468)=>{_0x4d3ccb['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x44fc65,{'commandName':_0x5b0468['commandName'],'commandParams':_0x5b0468['commandReversedParams']});}),_0x4d3ccb['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x24e11e,_0x21dcfb){if(_0x424400(_0x24e11e,_0x21dcfb))return[_0x24e11e,_0x21dcfb];if(_0x424400(_0x21dcfb,_0x24e11e))return[_0x21dcfb,_0x24e11e];return null;});const _0x2906e4=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x424400(_0x214f35,_0x6e01c){const _0x33d67f=_0x2906e4['findIndex'](({type:_0x29ed64,subType:_0x384afc})=>_0x214f35['type']==_0x29ed64&&_0x214f35['subType']==_0x384afc),_0x1d7bc7=_0x2906e4['findIndex'](({type:_0xe17ad,subType:_0x2d890c})=>_0x6e01c['type']==_0xe17ad&&_0x6e01c['subType']==_0x2d890c);if(_0x33d67f<0x0||_0x1d7bc7<0x0)return!0x1;const _0x2c9b12=_0x214f35['getFirstRange'](),_0x3f324a=_0x6e01c['getFirstRange']();if((0x0==_0x33d67f||0x1==_0x33d67f)&&0x2==_0x1d7bc7&&_0x2c9b12['isIntersecting'](_0x3f324a))return!0x0;if(0x2==_0x33d67f&&0x3==_0x1d7bc7){const _0x380a7d=_0x4d3ccb['_findSuggestions'](_0x2c9b12,'insertion')['filter'](({suggestion:_0x93cb68,meta:_0xa61d56})=>_0xa61d56['isOwn']&&'convertInlineImageToBlock'==_0x93cb68['subType']);if(_0x380a7d['length']>0x1&&_0x3f324a['end']['isEqual'](_0x2c9b12['start']))return!0x0;if(0x1==_0x380a7d['length']&&(_0x2c9b12['start']['isEqual'](_0x3f324a['end'])||_0x2c9b12['end']['isEqual'](_0x3f324a['start'])))return!0x0;}if(0x3==_0x33d67f&&0x3==_0x1d7bc7&&_0x2c9b12['start']['isBefore'](_0x3f324a['start'])){const _0xad7554=_0x2c9b12['end']['nodeAfter'],_0x4cbc78=_0x3f324a['start']['nodeBefore'];return _0x46860d['isBlockImage'](_0xad7554)&&_0xad7554===_0x4cbc78;}return!0x1;}_0x21e7df['model']['document']['registerPostFixer'](()=>{let _0x5c1ede=!0x1;const _0x4cdd19=Array['from'](_0x21e7df['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x32c8a1,data:_0x47590c}of _0x4cdd19){const {group:_0x287fbe,type:_0x5081ab,subType:_0x5a0e83,id:_0x4d7bc3}=_0x4d3ccb['_splitMarkerName'](_0x32c8a1);if('suggestion'==_0x287fbe&&_0x4d3ccb['hasSuggestion'](_0x4d7bc3)){if('formatBlock'==_0x5081ab&&('imageStylePreApply'==_0x5a0e83||'imageStylePostApply'==_0x5a0e83)){const _0x379ce3=_0x4d3ccb['getSuggestion'](_0x4d7bc3);if(_0x47590c['newRange']){const _0x2225fd=_0x379ce3['getFirstRange']()['getContainedElement']();if(_0x46860d['isBlockImage'](_0x2225fd))continue;_0x4d3ccb['discardSuggestion'](_0x379ce3),_0x5c1ede=!0x0;}}if('insertion'==_0x5081ab&&'imageCaption'==_0x5a0e83&&!_0x47590c['newRange']){const _0x303bb2=_0x4d3ccb['getSuggestion'](_0x4d7bc3);_0x303bb2['next']&&_0x303bb2['next']['isInContent']&&(_0x4d3ccb['discardSuggestion'](_0x303bb2['next']),_0x5c1ede=!0x0);}}}return _0x5c1ede;}),this['_registerLegacyDescription'](_0x43c0b7);}['_registerLegacyDescription'](_0x1dca5e){const _0x5aa274=this['editor'],_0x96bdbd=_0x5aa274['locale'];_0x5aa274['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43c06b=>{if('formatBlock'!=_0x43c06b['type']&&'formatInline'!=_0x43c06b['type'])return;const {data:_0x34e82}=_0x43c06b;if(!_0x34e82||'imageStyle'!=_0x34e82['commandName'])return;const _0x3637ca=_0x34e82['commandParams'][0x0]['value'];return _0x36b55f('side'===_0x3637ca?o(_0x96bdbd,'FORMAT_SIDE_IMAGE'):_0x1dca5e[_0x3637ca]||_0x3637ca);function _0x36b55f(_0x54ea18){return{'type':'format','content':o(_0x96bdbd,'*Format:*\x20%0',_0x54ea18)};}});}}class at extends _0x3a46d7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x19ca8b){super(_0x19ca8b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x179727=this['editor'],_0x3e302a=_0x179727['commands']['get']('importWord'),_0x8d5ef5=_0x179727['commands']['get']('trackChanges');_0x3e302a&&(_0x3e302a['on']('execute',(_0x58bcb4,[,_0x42e0ee])=>{this['_trackChangesValueDuringImport']=_0x8d5ef5['value'],_0x42e0ee['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3e302a,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3e302a,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x8d5ef5['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x179727['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x469bcd,_0x3bb010){const {suggestions:_0x636361}=_0x3bb010,_0x56bd05=this['editor']['commands']['get']('trackChanges'),_0xd2702c=_0x56bd05['value'];this['_trackChangesValueDuringImport']!==_0xd2702c&&(_0x56bd05['execute'](),this['_trackChangesExecuted']=!0x0),_0x636361&&_0x636361['forEach'](({id:_0x26725a,type:_0x34f460,author:_0x2c10db,created_at:_0x3fe108})=>{const _0x16c996={'id':_0x26725a,'type':_0x34f460,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x2c10db,'createdAt':_0x3fe108?new Date(_0x3fe108):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x16c996);});}}class ct extends _0x3a46d7{['afterInit'](){const _0x1adeb4=this['editor'],_0x490ca0=_0x1adeb4['plugins']['get']('TrackChangesEditing');if(_0x1adeb4['plugins']['has']('IndentEditing')&&(_0x490ca0['enableCommand']('indent'),_0x490ca0['enableCommand']('outdent')),_0x1adeb4['plugins']['has']('IndentBlock')){for(const _0x304b5d of['indentBlock','outdentBlock'])_0x490ca0['enableDefaultAttributesIntegration'](_0x304b5d);}const _0x1db8d8=_0x1adeb4['locale'];_0x490ca0['registerBlockAttribute']('blockIndent'),_0x490ca0['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1db8d8,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41ef58=this['editor'],_0xd21bfa=_0x41ef58['locale'],_0x5837e6=_0x41ef58['plugins']['get']('TrackChangesEditing');_0x5837e6['descriptionFactory']['registerDescriptionCallback'](_0x2ba6f5=>{if('formatBlock'!=_0x2ba6f5['type'])return;const {data:_0x52d580}=_0x2ba6f5;if(!_0x52d580)return;if('indentBlock'!=_0x52d580['commandName']&&'outdentBlock'!=_0x52d580['commandName'])return;const _0x387c93=_0x2ba6f5['getItems']()[0x0],_0x25c851=_0x5837e6['descriptionFactory']['getItemLabel'](_0x387c93);return'indentBlock'==_0x52d580['commandName']?{'type':'format','content':o(_0xd21bfa,'*Indent:*\x20%0',_0x25c851)}:'outdentBlock'==_0x52d580['commandName']?{'type':'format','content':o(_0xd21bfa,'*Outdent:*\x20%0',_0x25c851)}:void 0x0;});}}class ut extends _0x3a46d7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3a46d7{['afterInit'](){const _0x4ba30d=this['editor'];if(!_0x4ba30d['plugins']['has']('LinkEditing'))return;const _0x47a7a7=_0x4ba30d['plugins']['get']('TrackChangesEditing'),_0x18b0c5=_0x4ba30d['commands']['get']('link');_0x47a7a7['enableDefaultAttributesIntegration']('link'),_0x47a7a7['enableDefaultAttributesIntegration']('unlink'),_0x47a7a7['registerInlineAttribute']('linkHref');for(const _0x5e0f9b of _0x18b0c5['manualDecorators'])_0x47a7a7['registerInlineAttribute'](_0x5e0f9b['id']),_0x47a7a7['descriptionFactory']['registerAttributeLabel'](_0x5e0f9b['id'],'link\x20('+_0x5e0f9b['label']['toLowerCase']()+')');_0x47a7a7['descriptionFactory']['registerDescriptionCallback'](_0x3efcb3=>{if('attribute'!=_0x3efcb3['type'])return;const {data:_0x2ba2ec}=_0x3efcb3;if(!_0x2ba2ec||'linkHref'!=_0x2ba2ec['key'])return;const _0xdc7ba3=_0x2ba2ec['newValue'],_0x33dfa5=_0x4ba30d['locale'];return{'type':'format','content':null==_0xdc7ba3?o(_0x33dfa5,'*Remove\x20link*'):o(_0x33dfa5,'*Set\x20link:*\x20%0','\x22'+_0xdc7ba3+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x81906e=this['editor'],_0x498af5=_0x81906e['locale'];_0x81906e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x222dac=>{if('formatInline'!=_0x222dac['type'])return;const {data:_0xbeea75}=_0x222dac;if(_0xbeea75){if('link'==_0xbeea75['commandName']){const _0x1891da=_0xbeea75['commandParams'][0x0];return{'type':'format','content':o(_0x498af5,'*Set\x20link:*\x20%0','\x22'+_0x1891da+'\x22')};}return'unlink'==_0xbeea75['commandName']?{'type':'format','content':o(_0x498af5,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3a46d7{['afterInit'](){const _0x20325f=this['editor'],_0x17efa9=_0x20325f['locale'];if(!_0x20325f['plugins']['has']('LegacyListEditing'))return;const _0x44853f=_0x20325f['plugins']['get']('TrackChangesEditing'),_0x2cd2fb=_0x20325f['plugins']['has']('LegacyTodoListEditing');function _0x1d5fd6(_0x30d3c7){return()=>{const _0x33e3bf=_0x20325f['model']['document']['selection'],_0xe55b61=_0x20325f['commands']['get'](_0x30d3c7);if(_0xe55b61['value'])return void _0x20325f['execute']('paragraph',{});const _0x1bd782=_0x30d3c7['slice'](0x0,-0x4),_0x5e887d=function(_0x1c94f9,_0xa7a318,_0x321eb5){let _0xc1e31e=Array['from'](_0x1c94f9)['filter'](_0x5f055c=>function(_0x188bbc,_0xf4518e){return _0xf4518e['checkChild'](_0x188bbc['parent'],'listItem')&&!_0xf4518e['isObject'](_0x188bbc);}(_0x5f055c,_0x321eb5));_0xc1e31e=_0xc1e31e['filter'](_0x52a297=>!_0x52a297['is']('element','listItem')||_0x52a297['getAttribute']('listType')!=_0xa7a318);const _0x75a7ee=new Set();for(const _0x404f7a of _0xc1e31e)_0x404f7a['is']('element','listItem')?_0x75a7ee['add'](fe(_0x404f7a)):_0x75a7ee['add'](_0x404f7a);return Array['from'](_0x75a7ee);}(_0x33e3bf['getSelectedBlocks'](),_0x1bd782,_0x20325f['model']['schema']);_0x20325f['model']['change'](()=>{for(const _0x551d65 of _0x5e887d)_0x44853f['markBlockFormat'](_0x551d65,{'commandName':_0x30d3c7,'commandParams':[{'forceValue':!_0xe55b61['value']}],'formatGroupId':'blockName'},ue(_0x551d65));});};}function _0x519a3a(_0x4d298b){return()=>{const _0xde1d7e=function(_0x506941){let _0x13fae9=Array['from'](_0x506941);const _0x333423=_0x13fae9['findIndex'](_0x1ad0e8=>'listItem'!=_0x1ad0e8['name']);return _0x333423>-0x1&&(_0x13fae9=_0x13fae9['slice'](0x0,_0x333423)),_0x13fae9;}(_0x20325f['model']['document']['selection']['getSelectedBlocks']()),_0x9329ea=_0x20325f['model']['createRange'](_0x20325f['model']['createPositionAt'](_0xde1d7e[0x0],'before'),_0x20325f['model']['createPositionAt'](_0xde1d7e[_0xde1d7e['length']-0x1],'end'));_0x20325f['model']['change'](()=>{_0x44853f['markBlockFormat'](_0x9329ea,{'commandName':_0x4d298b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x289db8){const _0x2cb4c3=new Set();for(const _0x56db51 of _0x289db8){let _0x131bc8=_0x56db51['nextSibling'];for(;_0x131bc8&&_0x131bc8['getAttribute']('listIndent')>_0x56db51['getAttribute']('listIndent');)_0x2cb4c3['add'](_0x131bc8),_0x131bc8=_0x131bc8['nextSibling'];}return Array['from'](_0x2cb4c3);}(_0xde1d7e));});};}_0x44853f['enableCommand']('numberedList',_0x1d5fd6('numberedList')),_0x44853f['enableCommand']('bulletedList',_0x1d5fd6('bulletedList')),_0x2cd2fb&&_0x44853f['enableCommand']('todoList',_0x1d5fd6('todoList')),_0x44853f['enableCommand']('indentList',_0x519a3a('indentList')),_0x44853f['enableCommand']('outdentList',_0x519a3a('outdentList')),_0x2cd2fb&&_0x44853f['enableCommand']('checkTodoList',()=>{const _0x517acc=_0x20325f['commands']['get']('checkTodoList'),_0x19e32c=Array['from'](_0x517acc['_selectedElements']);_0x19e32c['filter'](_0x51f9cd=>_0x51f9cd['getAttribute']('todoListChecked')!=_0x517acc['value']),_0x20325f['model']['change'](()=>{for(const _0x3cc817 of _0x19e32c)_0x44853f['markBlockFormat'](_0x3cc817,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x517acc['value']}]});});}),_0x44853f['descriptionFactory']['registerElementLabel']('listItem',_0x5144a3=>o(_0x17efa9,'ELEMENT_LIST_ITEM',_0x5144a3)),_0x44853f['descriptionFactory']['registerDescriptionCallback'](_0x4a4436=>{if('formatBlock'!=_0x4a4436['type']&&'formatInline'!=_0x4a4436['type'])return;const {data:_0x247196}=_0x4a4436;if(_0x247196){if('numberedList'==_0x247196['commandName']||'bulletedList'==_0x247196['commandName']||'todoList'==_0x247196['commandName'])switch(_0x247196['commandName']['replace']('List','')){case'bulleted':return _0xfc1b7f(o(_0x17efa9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc1b7f(o(_0x17efa9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc1b7f(o(_0x17efa9,'ELEMENT_TODO_LIST'));}if('indentList'==_0x247196['commandName'])return{'type':'format','content':o(_0x17efa9,'*Indent:*\x20%0',o(_0x17efa9,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x247196['commandName'])return{'type':'format','content':o(_0x17efa9,'*Outdent:*\x20%0',o(_0x17efa9,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x247196['commandName'])return _0x247196['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x17efa9,'*Check\x20item*')}:{'type':'format','content':o(_0x17efa9,'*Uncheck\x20item*')};}function _0xfc1b7f(_0x4c3bc7){return{'type':'format','content':o(_0x17efa9,'*Change\x20to:*\x20%0',_0x4c3bc7)};}});}}function fe(_0x1f285e){const _0xe0073a=_0x1f285e['getAttribute']('listIndent');if(0x0==_0xe0073a)return _0x1f285e;let _0x40338c=_0x1f285e;for(;_0x1f285e['previousSibling']&&_0x1f285e['previousSibling']['is']('element','listItem');){const _0x19d046=_0x1f285e['previousSibling']['getAttribute']('listIndent');if(_0x19d046==_0xe0073a)_0x40338c=_0x1f285e['previousSibling'];else{if(_0x19d046<_0xe0073a)break;}_0x1f285e=_0x1f285e['previousSibling'];}return _0x40338c;}function ue(_0x1ce406){const _0x4390d8=[];if(_0x1ce406['is']('element','listItem')&&_0x1ce406['getAttribute']('listIndent')>0x0){let _0x50b718=_0x1ce406['nextSibling'];for(;_0x50b718&&'listItem'==_0x50b718['name']&&_0x50b718['getAttribute']('listIndent')==_0x1ce406['getAttribute']('listIndent');)_0x4390d8['push'](_0x50b718),_0x50b718=_0x50b718['nextSibling'];}return _0x4390d8;}class W extends _0x3a46d7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5b12f3=this['editor']['config']['get']('list.properties'),_0x18984d=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b12f3['styles']&&_0x18984d['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5b12f3['reversed']&&_0x18984d['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5b12f3['startIndex']&&_0x18984d['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x18984d['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x11aa3b,_0x501e57={}){const _0x1ed6df=this['editor']['plugins']['get']('TrackChangesEditing'),_0x43a341=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ed6df['markMultiRangeBlockFormat'](_0x43a341,{'commandName':'listStyle','commandParams':[{'type':_0x501e57['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e6683,_0x4724b9={}){const _0x40af66=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4e0dbe=this['_getSuggestionBlocks'](_0x252f69=>_0x252f69['is']('element','listItem')&&'numbered'===_0x252f69['getAttribute']('listType'));if(_0x4e0dbe['length']<0x1)return;const _0x1f9e69=_0x4e0dbe['map'](_0x346e58=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x346e58,'before'),this['editor']['model']['createPositionAt'](_0x346e58,0x0)));this['editor']['model']['change'](()=>{_0x40af66['markMultiRangeBlockFormat'](_0x1f9e69,{'commandName':'listReversed','commandParams':[{'reversed':_0x4724b9['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xe1f7c4,_0x48ff2d={}){const _0x5ee8db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x967fd5=this['_getSuggestionBlocks'](_0x19ad03=>_0x19ad03['is']('element','listItem')&&'numbered'===_0x19ad03['getAttribute']('listType'));if(_0x967fd5['length']<0x1)return;const _0x2e585c=_0x967fd5['map'](_0x4e5a74=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e5a74,'before'),this['editor']['model']['createPositionAt'](_0x4e5a74,0x0)));this['editor']['model']['change'](()=>{_0x5ee8db['markMultiRangeBlockFormat'](_0x2e585c,{'commandName':'listStart','commandParams':[{'startIndex':_0x48ff2d['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x3f1b36){if('formatBlock'!=_0x3f1b36['type']&&'formatInline'!=_0x3f1b36['type'])return;const _0x2432a7=this['editor']['locale'],{data:_0xdc21f8}=_0x3f1b36;if(!_0xdc21f8)return;let _0x1bd98e,_0x1b78c6;switch(_0xdc21f8['commandName']){case'listStyle':_0x1bd98e='*Change\x20to:*\x20%0',_0x1b78c6={'type':'format','content':o(_0x2432a7,_0x1bd98e,o(_0x2432a7,this['_getTranslationKeyForListStyle'](_0xdc21f8['commandParams'][0x0]['type'])))};break;case'listReversed':_0x1bd98e=_0xdc21f8['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1b78c6={'type':'format','content':o(_0x2432a7,_0x1bd98e)};break;case'listStart':_0x1bd98e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1b78c6={'type':'format','content':o(_0x2432a7,_0x1bd98e,_0xdc21f8['commandParams'][0x0]['startIndex'])};}return _0x1b78c6;}['_getSuggestionBlocksForListStyle'](){const _0x49c446=this['editor']['plugins']['get']('LegacyListUtils');let _0x27d0fd=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x27d0fd[0x0]?.['is']('element','listItem')&&_0x27d0fd['unshift'](..._0x49c446['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x27d0fd[_0x27d0fd['length']-0x1]?.['is']('element','listItem')&&_0x27d0fd['push'](..._0x49c446['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x27d0fd=[...new Set(_0x27d0fd)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x27d0fd=_0x27d0fd['filter'](_0x4db5f7=>_0x4db5f7['is']('element','listItem'))),_0x27d0fd;}['_getSuggestionBlocks'](_0x3a5d2d){const _0x3501c7=this['editor']['plugins']['get']('LegacyListUtils');let _0x40bfb7=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3a5d2d)['map'](_0x500660=>{const _0x5a9bd9=this['editor']['model']['createPositionAt'](_0x500660,0x0);return[..._0x3501c7['getSiblingNodes'](_0x5a9bd9,'backward'),..._0x3501c7['getSiblingNodes'](_0x5a9bd9,'forward')];})['flat']();return _0x40bfb7=[...new Set(_0x40bfb7)],_0x40bfb7;}['_getTranslationKeyForListStyle'](_0x352c8a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x352c8a)||'default')['toUpperCase']()+'_LIST_'+_0x352c8a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3a46d7{['afterInit'](){const _0xca3a0f=this['editor'];if(!_0xca3a0f['plugins']['has']('MediaEmbedEditing'))return;const _0x212cf1=_0xca3a0f['plugins']['get']('TrackChangesEditing'),_0x2f0620=_0xca3a0f['locale'];_0x212cf1['enableCommand']('mediaEmbed'),_0x212cf1['descriptionFactory']['registerElementLabel']('media',_0x166c1a=>o(_0x2f0620,'ELEMENT_MEDIA',_0x166c1a)),_0xca3a0f['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x423bf0,{writer:_0x5beb5a,options:_0x45b10b})=>{if(_0x45b10b['showSuggestionHighlights'])return _0x5beb5a['createEmptyElement']('div');},'converterPriority':'high'}),_0xca3a0f['data']['downcastDispatcher']['on']('attribute:url:media',(_0x5f822f,_0x47652a,_0x194081)=>{_0x194081['options']['showSuggestionHighlights']&&_0x5f822f['stop']();},{'priority':'high'});}}class mt extends _0x3a46d7{['afterInit'](){const _0x542d02=this['editor'];_0x542d02['plugins']['has']('MentionEditing')&&_0x542d02['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3a46d7{['afterInit'](){const _0x3ad37f=this['editor'];if(!_0x3ad37f['commands']['get']('insertMergeField'))return;_0x3ad37f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x2ed7b9=_0x3ad37f['plugins']['get']('TrackChangesEditing'),_0x3214c9=_0x3ad37f['locale'];_0x2ed7b9['descriptionFactory']['registerElementLabel']('mergeField',_0x172bdd=>o(_0x3214c9,'ELEMENT_MERGE_FIELD',_0x172bdd)),_0x2ed7b9['descriptionFactory']['registerDescriptionCallback'](_0x3d0f33=>{if('insertion'!=_0x3d0f33['type']&&'deletion'!=_0x3d0f33['type'])return;const _0x5e9480=_0x3d0f33['getContainedElement']();if(null==_0x5e9480)return;if(!_0x5e9480['is']('element','mergeField'))return;const _0x7147c5=_0x3ad37f['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5e9480['getAttribute']('id'));return'insertion'==_0x3d0f33['type']?{'type':'insertion','content':o(_0x3214c9,'*Insert:*\x20%0','\x22'+_0x7147c5+'\x22\x20'+o(_0x3214c9,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x3214c9,'*Remove:*\x20%0','\x22'+_0x7147c5+'\x22\x20'+o(_0x3214c9,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3a46d7{['afterInit'](){const _0x48ce70=this['editor'],_0xd69561=_0x48ce70['plugins']['get']('TrackChangesEditing');_0x48ce70['plugins']['has']('MultiLevelList')&&(_0xd69561['enableDefaultAttributesIntegration']('multiLevelList'),_0xd69561['registerBlockAttribute']('listMarkerStyle'),_0xd69561['descriptionFactory']['registerDescriptionCallback'](_0x554a5e=>this['handleDescriptions'](_0x554a5e)));}['handleDescriptions'](_0x91f558){const _0x252681=this['editor']['locale'],{data:_0x5b94ad}=_0x91f558,_0x5cb260={'type':'format','content':''};if(_0x5b94ad&&'listMarkerStyle'==_0x5b94ad['key']){if(!_0x5b94ad['oldValue'])return{'type':'format','content':o(_0x252681,'*Set\x20format:*\x20%0',o(_0x252681,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b94ad['newValue']+')'};if(!_0x5b94ad['newValue']){let _0x1bf8e3=_0x91f558['head'];for(;_0x1bf8e3;){if(_0x1bf8e3['data']&&'listType'==_0x1bf8e3['data']['key']&&_0x1bf8e3['data']['newValue'])return _0x5cb260;_0x1bf8e3=_0x1bf8e3['next'];}return{'type':'format','content':o(_0x252681,'*Remove\x20format:*\x20%0',o(_0x252681,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5b94ad['oldValue']+')'};}}}}class kt extends _0x3a46d7{['afterInit'](){const _0x2663fe=this['editor'];if(!_0x2663fe['plugins']['has']('PageBreakEditing'))return;_0x2663fe['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5ea8fd=_0x2663fe['plugins']['get']('TrackChangesEditing'),_0x48fe88=_0x2663fe['locale'];_0x5ea8fd['descriptionFactory']['registerElementLabel']('pageBreak',_0x2bc68e=>o(_0x48fe88,'ELEMENT_PAGE_BREAK',_0x2bc68e));}}class bt extends _0x3a46d7{['afterInit'](){const _0x1ebf8c=this['editor'];if(!_0x1ebf8c['plugins']['has']('Paragraph'))return;const _0x2878bb=_0x1ebf8c['locale'],_0x57ec86=_0x1ebf8c['plugins']['get']('TrackChangesEditing');_0x57ec86['descriptionFactory']['registerElementLabel']('paragraph',_0x2c921d=>o(_0x2878bb,'ELEMENT_PARAGRAPH',_0x2c921d)),_0x57ec86['enableDefaultAttributesIntegration']('paragraph'),_0x57ec86['enableCommand']('insertParagraph'),_0x1ebf8c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x1ebf8c),{'priority':'highest'}),_0x1ebf8c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x36abe8,_0x5e6a1,_0x1f4f97)=>{_0x1f4f97['options']['showSuggestionHighlights']&&nr(_0x1ebf8c,{'showActiveMarker':!0x1})(_0x36abe8,_0x5e6a1,_0x1f4f97);},{'priority':'highest'});const _0x4dc6c1=_0x57ec86['descriptionFactory'];_0x4dc6c1['registerDescriptionCallback'](_0x12bd64=>{if('insertion'!==_0x12bd64['type'])return;const {start:_0x8abe8f,end:_0x129ea5}=_0x12bd64['getFirstRange']();if(!_0x8abe8f['isTouching'](_0x129ea5)||!_0x8abe8f['nodeAfter'])return;const _0x3eb3f5=_0x1ebf8c['model']['schema'],_0x1c2aa2=_0x8abe8f['nodeAfter'];return _0x3eb3f5['isBlock'](_0x1c2aa2)&&!_0x3eb3f5['isLimit'](_0x1c2aa2)&&_0x3eb3f5['checkChild'](_0x1c2aa2,'$text')?{'type':'insertion','content':o(_0x2878bb,'*Insert:*\x20%0',_0x4dc6c1['getItemLabel'](_0x1c2aa2,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x131ddb=this['editor'],_0x17bbdf=_0x131ddb['locale'];_0x131ddb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56d534=>{if('formatBlock'!=_0x56d534['type'])return;const {data:_0x12e079}=_0x56d534;return _0x12e079&&'paragraph'==_0x12e079['commandName']?{'type':'format','content':o(_0x17bbdf,'*Change\x20to:*\x20%0',o(_0x17bbdf,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5143a2,{showActiveMarker:_0x2dc9b5=!0x0}={}){return(_0x12b3b1,_0x179976,_0x2ec504)=>{const _0x2c3d53=_0x5143a2['plugins']['get']('TrackChangesEditing'),_0x20f2b9=_0x179976['markerRange']['start'],_0x146fbc=_0x179976['markerRange']['end'],_0xfc4217=_0x5143a2['model']['schema'];if(!_0x20f2b9['isTouching'](_0x146fbc)||!_0x20f2b9['nodeAfter'])return;const _0x336651=_0x20f2b9['nodeAfter'];if(_0xfc4217['isBlock'](_0x336651)&&!_0xfc4217['isLimit'](_0x336651)&&_0xfc4217['checkChild'](_0x336651,'$text')){if(!_0x2ec504['consumable']['consume'](_0x179976['markerRange'],_0x12b3b1['name']))return;const {authorId:_0x9e87ca}=_0x2c3d53['_splitMarkerName'](_0x179976['markerName']),_0x3f28fb=_0x2ec504['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x9e87ca}),_0x15615c=_0x2ec504['mapper']['toViewPosition'](_0x146fbc);_0x2dc9b5&&_0x2c3d53['activeMarkers']['includes'](_0x179976['markerName'])&&_0x2ec504['writer']['addClass']('ck-suggestion-marker--active',_0x3f28fb),_0x2ec504['writer']['insert'](_0x15615c,_0x3f28fb),_0x2ec504['mapper']['bindElementToMarker'](_0x3f28fb,_0x179976['markerName']);}};}class wt extends _0x3a46d7{['afterInit'](){const _0x105410=this['editor'];if(!_0x105410['plugins']['has']('RemoveFormatEditing'))return;_0x105410['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x591b51=this['editor'];_0x591b51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2542b8=>{if('formatBlock'!=_0x2542b8['type']&&'formatInline'!=_0x2542b8['type'])return;const {data:_0x347c3c}=_0x2542b8;return _0x347c3c&&'removeFormat'==_0x347c3c['commandName']?{'type':'format','content':o(_0x591b51['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3a46d7{['afterInit'](){const _0x112d39=this['editor'];if(!_0x112d39['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3a9c62=_0x112d39['plugins']['get']('TrackChangesEditing');_0x3a9c62['enableCommand']('goToPreviousRestrictedEditingException'),_0x3a9c62['enableCommand']('goToNextRestrictedEditingException');const _0x145408=_0x112d39['plugins']['get']('RestrictedEditingModeEditing');_0x145408['enableCommand']('trackChanges'),_0x145408['enableCommand']('acceptSuggestion'),_0x145408['enableCommand']('discardSuggestion'),_0x145408['enableCommand']('acceptAllSuggestions'),_0x145408['enableCommand']('discardAllSuggestions'),_0x145408['enableCommand']('acceptSelectedSuggestions'),_0x145408['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3a46d7{static get['requires'](){return[_0x3c4695];}['init'](){const _0x601e93=this['editor'],_0x9e89cf=_0x601e93['plugins']['get']('TrackChangesEditing');_0x9e89cf['enableCommand']('shiftEnter'),_0x601e93['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x601e93),{'priority':'high'}),_0x601e93['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x601e93),{'priority':'high'}),_0x601e93['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x17b7aa,_0x3cdccd,_0x1cff3f)=>{_0x1cff3f['options']['showSuggestionHighlights']&&ge(_0x601e93,{'showActiveMarker':!0x1})(_0x17b7aa,_0x3cdccd,_0x1cff3f);}),_0x9e89cf['descriptionFactory']['registerElementLabel']('softBreak',_0x37e364=>o(_0x601e93['locale'],'ELEMENT_LINE_BREAK',_0x37e364));}}function ge(_0x3e24a3,{showActiveMarker:_0x4831d7=!0x0}={}){return(_0x17236c,_0x424f08,_0x3848d8)=>{const _0x4ee574=_0x3e24a3['plugins']['get']('TrackChangesEditing');if(!_0x3848d8['consumable']['test'](_0x424f08['markerRange'],_0x17236c['name']))return;const _0x3b6479=_0x3e24a3['model'];for(const _0x5f44cb of _0x424f08['markerRange']['getItems']()){if(!_0x5f44cb['is']('element','softBreak'))continue;const _0x503327='deletion'==_0x424f08['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x24b5b1}=_0x4ee574['_splitMarkerName'](_0x424f08['markerName']),_0x2f2d0d=_0x3848d8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x503327,'data-author-id':_0x24b5b1}),_0x1602fb=_0x3848d8['mapper']['toViewPosition'](_0x3b6479['createPositionBefore'](_0x5f44cb));_0x4831d7&&_0x4ee574['activeMarkers']['includes'](_0x424f08['markerName'])&&_0x3848d8['writer']['addClass']('ck-suggestion-marker--active',_0x2f2d0d),_0x3848d8['writer']['insert'](_0x1602fb,_0x2f2d0d),_0x3848d8['mapper']['bindElementToMarker'](_0x2f2d0d,_0x424f08['markerName']);}};}class St extends _0x3a46d7{['afterInit'](){const _0x13aef8=this['editor'],_0x2923ce=_0x13aef8['model'],_0xe6b406=_0x13aef8['locale'];if(!_0x13aef8['plugins']['has']('StandardEditingModeEditing'))return;const _0x2482a1=_0x13aef8['plugins']['get']('TrackChangesEditing'),_0x99a2f9='restrictedEditingException',_0x56a5ed=_0x13aef8['commands']['get'](_0x99a2f9);_0x2482a1['enableCommand'](_0x99a2f9,(_0x1db396,_0x2ba52d={})=>{const _0x31cadb=_0x2923ce['document']['selection'];if(_0x31cadb['isCollapsed'])return void _0x1db396(_0x2ba52d);const _0xba1d91=void 0x0!==_0x2ba52d['forceValue']?_0x2ba52d['forceValue']:!_0x56a5ed['value'];_0x2923ce['change'](()=>{const _0x3fd450=Array['from'](_0x31cadb['getRanges']());for(const _0x1560a5 of _0x3fd450){const _0x155b9b=_0xba1d91?[_0x1560a5]:io(_0x99a2f9,_0x1560a5,_0x2923ce);for(const _0x24b7d1 of _0x155b9b)_0x2482a1['markInlineFormat'](_0x24b7d1,{'commandName':_0x99a2f9,'commandParams':[{'forceValue':_0xba1d91}]});}});}),_0x2482a1['descriptionFactory']['registerDescriptionCallback'](_0x585eeb=>{if('formatBlock'!=_0x585eeb['type']&&'formatInline'!=_0x585eeb['type'])return;const {data:_0x30705e}=_0x585eeb;return _0x30705e&&_0x30705e['commandName']==_0x99a2f9?_0x30705e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe6b406,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xe6b406,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3a46d7{['afterInit'](){const _0x431f10=this['editor'];if(!_0x431f10['plugins']['has']('Style')||!_0x431f10['plugins']['has']('DataSchema'))return;const _0x53d439=_0x431f10['plugins']['get']('TrackChangesEditing'),_0x2833f4=_0x431f10['locale'],_0x420894=_0x431f10['config']['get']('style')||{},_0x28a0b0=_0x431f10['plugins']['get']('GeneralHtmlSupport'),_0x201df3=_0x431f10['plugins']['get']('StyleUtils')['normalizeConfig'](_0x431f10['plugins']['get']('DataSchema'),_0x420894['definitions']);_0x53d439['enableDefaultAttributesIntegration']('style');const _0x38f5b8=new Set();for(const _0x4a6446 of _0x201df3['block']){const _0x4f2c94=_0x28a0b0['getGhsAttributeNameForElement'](_0x4a6446['element']);_0x38f5b8['add'](_0x4f2c94);}const _0x560c7f=new Set();for(const _0x2c25d5 of _0x201df3['inline']){const _0x4f99ad=_0x28a0b0['getGhsAttributeNameForElement'](_0x2c25d5['element']);_0x560c7f['add'](_0x4f99ad);for(const _0x388449 of _0x2c25d5['ghsAttributes'])_0x560c7f['add'](_0x388449);}for(const _0xe9e585 of _0x38f5b8)_0x53d439['registerBlockAttribute'](_0xe9e585),_0x53d439['descriptionFactory']['registerAttributeLabel'](_0xe9e585,o(_0x2833f4,'FORMAT_STYLE'));for(const _0x942a70 of _0x560c7f)_0x53d439['registerInlineAttribute'](_0x942a70),_0x53d439['descriptionFactory']['registerAttributeLabel'](_0x942a70,o(_0x2833f4,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29d199=this['editor'],_0x371f9f=_0x29d199['locale'];_0x29d199['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb427a5=>{if('formatBlock'!=_0xb427a5['type']&&'formatInline'!=_0xb427a5['type'])return;const {data:_0x170520}=_0xb427a5;return _0x170520&&'style'===_0x170520['commandName']?_0x170520['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x371f9f,'*Set\x20format:*\x20%0',_0x170520['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x371f9f,'*Remove\x20format:*\x20%0',_0x170520['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3a46d7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0xfe30b1){super(_0xfe30b1),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x30520d=this['editor'],_0x29407d=_0x30520d['model']['document']['selection'];if(!_0x30520d['plugins']['has']('TableEditing'))return;const _0x144c94=_0x30520d['locale'],_0x217b19=_0x30520d['plugins']['get']('TrackChangesEditing'),_0x49512c=_0x30520d['plugins']['get']('TableUtils');_0x217b19['descriptionFactory']['registerElementLabel']('table',_0x430694=>o(_0x144c94,'ELEMENT_TABLE',_0x430694)),this['_setupColumnsRowsFixing'](),_0x217b19['enableCommand']('insertTable'),_0x217b19['enableCommand']('selectTableRow'),_0x217b19['enableCommand']('selectTableColumn');for(const _0x42db64 of['insertTableRowAbove','insertTableRowBelow']){const _0x23a351=_0x30520d['commands']['get'](_0x42db64);_0x217b19['enableCommand'](_0x42db64,_0x4cb01a=>{_0x30520d['model']['change'](_0x41ba8c=>{_0x4cb01a();const _0x4002ae='above'===_0x23a351['order'],_0x537116=_0x49512c['getSelectionAffectedTableCells'](_0x29407d),_0x507711=_0x49512c['getRowIndexes'](_0x537116),_0x15cbdb=_0x4002ae?_0x507711['first']-0x1:_0x507711['last']+0x1,_0x424f73=_0x537116[0x0]['findAncestor']('table'),_0x3f28ce=_0x49512c['createTableWalker'](_0x424f73,{'startRow':_0x15cbdb,'endRow':_0x15cbdb}),_0x6b07ad=Array['from'](_0x3f28ce)['map'](_0x5b1422=>_0x41ba8c['createRangeOn'](_0x5b1422['cell']));_0x217b19['markMultiRangeInsertion'](_0x6b07ad,'tableRow');});});}for(const _0x18a538 of['insertTableColumnLeft','insertTableColumnRight']){const _0xe90171=_0x30520d['commands']['get'](_0x18a538);_0x217b19['enableCommand'](_0x18a538,_0x26b841=>{_0x30520d['model']['change'](_0x1e3464=>{_0x26b841();const _0xeb3020='left'===_0xe90171['order'],_0x3021c8=_0x49512c['getSelectionAffectedTableCells'](_0x29407d),_0x5b9c28=_0x49512c['getColumnIndexes'](_0x3021c8),_0x1cb0c1=_0xeb3020?_0x5b9c28['first']-0x1:_0x5b9c28['last']+0x1,_0x1a6582=_0x3021c8[0x0]['findAncestor']('table'),_0x3f5929=_0x49512c['createTableWalker'](_0x1a6582,{'startRow':0x0,'column':_0x1cb0c1,'includeAllSlots':!0x1}),_0x18ae6b=Array['from'](_0x3f5929)['map'](_0x59c5f5=>_0x1e3464['createRangeOn'](_0x59c5f5['cell']));_0x217b19['markMultiRangeInsertion'](_0x18ae6b,'tableColumn');});});}for(const _0x4fbd1c of['removeTableRow','removeTableColumn']){const _0x565932=_0x4fbd1c['substr'](0xb),_0x512993=_0x565932['toLowerCase'](),_0x3a53c6=_0x512993['substr'](0x0,0x3)+'span',_0x447849='table'+_0x565932,_0x1895ce='min'+_0x565932,_0x5bb3f6='max'+_0x565932;_0x217b19['enableCommand'](_0x4fbd1c,()=>{_0x30520d['model']['change'](_0x1a6b35=>{const _0xb7393e=_0x49512c['getSelectionAffectedTableCells'](_0x29407d),_0x2efcd5=_0xb7393e[0x0]['findAncestor']('table');let _0x4aef95;if('removeTableRow'==_0x4fbd1c){const _0x4a95ab=_0x49512c['getRowIndexes'](_0xb7393e);_0x4aef95={'startRow':_0x4a95ab['first'],'endRow':_0x4a95ab['last'],'includeAllSlots':!0x0};}else{const _0x376453=_0x49512c['getColumnIndexes'](_0xb7393e);_0x4aef95={'startColumn':_0x376453['first'],'endColumn':_0x376453['last'],'includeAllSlots':!0x0};}const _0x57b2a7=_0x49512c['createTableWalker'](_0x2efcd5,_0x4aef95),_0x5418d4=Array['from'](_0x57b2a7)['map'](({cell:_0x396c4e})=>_0x396c4e),_0x31296c=be(_0x5418d4['filter'](_0x8880e5=>_0x8880e5['hasAttribute'](_0x3a53c6))),_0x2db520=be(_0x5418d4['filter'](_0x40ec37=>!_0x40ec37['hasAttribute'](_0x3a53c6)))['map'](_0x169564=>_0x1a6b35['createRangeOn'](_0x169564)),_0x1e7b76=_0x217b19['markMultiRangeDeletion'](_0x2db520,_0x447849);if(_0x1e7b76&&('tableRow'==_0x1e7b76['subType']||'tableColumn'==_0x1e7b76['subType'])){const _0x2c4751=this['_getSuggestionCoords'](_0x1e7b76);for(const _0x3a5aed of _0x31296c){const _0x156e31=_0x1a6b35['createRangeOn'](_0x3a5aed),_0x37c442=_0x49512c['getCellLocation'](_0x3a5aed),_0x2acfbe=_0x3a5aed['getAttribute'](_0x3a53c6)-0x1,_0x38571c=_0x2c4751[_0x1895ce],_0x4bb405=_0x2c4751[_0x5bb3f6];_0x38571c<=_0x37c442[_0x512993]&&_0x37c442[_0x512993]+_0x2acfbe<=_0x4bb405&&_0x1e7b76['addRange'](_0x156e31);}}});});}function _0x15cb8b(_0x31a53c){const _0x1e22bc=Array['from'](_0x29407d['getRanges']())['map'](_0x3edb02=>_0xb95ac7['fromRange'](_0x3edb02));_0x30520d['model']['change'](_0x4b3c61=>{const _0x3adf13=_0x4b3c61['batch'];_0x31a53c=_0x31a53c['filter'](_0x12a651=>'$graveyard'!=_0x12a651['root']['rootName']),_0x4b3c61['setSelection'](_0x31a53c),_0x30520d['commands']['get']('removeTableRow')['refresh'](),_0x30520d['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x30520d['model']['enqueueChange'](()=>{_0x30520d['model']['enqueueChange'](_0x3adf13,_0x219036=>{const _0x405f64=_0x1e22bc['filter'](_0x45e7c5=>'$graveyard'!=_0x45e7c5['root']['rootName']);_0x405f64['length']>0x0&&_0x219036['setSelection'](_0x405f64);for(const _0x2748b3 of _0x1e22bc)_0x2748b3['detach']();});});});}function _0x2a7e45(_0x53d796){_0x30520d['model']['change'](_0x3bca37=>{const _0x554fe4=Array['from'](_0x29407d['getRanges']())['map'](_0x1999f9=>_0xb95ac7['fromRange'](_0x1999f9)),_0x5e7e36=[];for(const _0x5b1d88 of _0x53d796)for(const _0x273433 of _0x5b1d88['getItems']({'shallow':!0x0}))_0x5e7e36['push'](_0x273433);for(const _0x2580cd of _0x5e7e36)'$graveyard'!=_0x2580cd['root']['rootName']&&(_0x3bca37['setSelection'](_0x3bca37['createPositionAt'](_0x2580cd,0x0)),_0x30520d['commands']['get']('removeTableColumn')['refresh'](),_0x30520d['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3ddc37=_0x554fe4['filter'](_0x2f1f44=>'$graveyard'!=_0x2f1f44['root']['rootName']);_0x3ddc37['length']>0x0&&_0x3bca37['setSelection'](_0x3ddc37);for(const _0x16baa3 of _0x554fe4)_0x16baa3['detach']();});}function _0xd42c97(_0x2ddff8,_0xaa5a28){return _0xaa5a28['every'](_0x45c428=>_0x2ddff8['some'](_0x2b9f2e=>_0x2b9f2e['end']['isEqual'](_0x45c428['start'])||_0x45c428['end']['isEqual'](_0x2b9f2e['start'])));}function _0x2449a5(_0x45c1e6,_0x529456){return!_0x45c1e6['some'](_0x32cf94=>_0x529456['some'](_0x448937=>_0x32cf94['isIntersecting'](_0x448937)))&&_0x45c1e6['some'](_0x2a132e=>_0x529456['some'](_0x382216=>_0x2a132e['end']['isTouching'](_0x382216['start'])));}_0x30520d['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x577e5f,_0x554391,_0x822251)=>{if(!_0x822251['options']['showSuggestionHighlights'])return;const _0x2c9eb0=_0x554391['item'];if(!_0x2c9eb0)return;const _0x33998d=_0x822251['mapper']['toViewElement'](_0x2c9eb0);function _0x1c9f1f(_0x54fe87){return Array['isArray'](_0x54fe87)?_0x54fe87:[_0x54fe87];}_0x33998d&&'tableCell'===_0x2c9eb0['name']&&_0x23e52e(_0x33998d,_0x822251['writer'],(_0xf0b6e,_0x9ffab0,_0x44807d)=>_0x44807d['addClass'](_0x1c9f1f(_0x9ffab0['classes']),_0xf0b6e),(_0x4500d0,_0xc78377,_0x495405)=>_0x495405['removeClass'](_0x1c9f1f(_0xc78377['classes']),_0x4500d0));},{'priority':'highest'}),_0x217b19['descriptionFactory']['registerDescriptionCallback'](_0x1af6b5=>{if('insertion'!=_0x1af6b5['type']&&'deletion'!=_0x1af6b5['type'])return;const _0x348d69=_0x1af6b5['getContainedElement']();if(null!=_0x348d69&&_0x348d69['is']('element','table')){if('insertion'==_0x1af6b5['type']){const _0x5f4733=_0x1af6b5['getItems']()['filter'](_0x36ad99=>_0x36ad99['is']('$textProxy'))['map'](_0x5b3f20=>_0x5b3f20['data']);if(_0x5f4733['length'])return{'type':'insertion','content':o(_0x144c94,'*Insert:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5f4733['join']('\x20')+'\x22'))};}if('deletion'==_0x1af6b5['type']){const _0x32041c=_0x1af6b5['getItems']()['filter'](_0x55c26d=>_0x55c26d['is']('$textProxy'))['map'](_0x536e17=>_0x536e17['data']);if(_0x32041c['length'])return{'type':'deletion','content':o(_0x144c94,'*Remove:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x32041c['join']('\x20')+'\x22'))};}}}),_0x217b19['descriptionFactory']['registerDescriptionCallback'](_0x131ee0=>{if('tableRow'==_0x131ee0['subType']){const _0x6658e1=_0x131ee0['getItems']()['filter'](_0x57f1f0=>_0x57f1f0['is']('$textProxy'))['map'](_0x577dce=>_0x577dce['data']),_0x427f45=this['_getSuggestionCoords'](_0x131ee0),_0x286a44=_0x427f45['maxRow']-_0x427f45['minRow']+0x1;if('insertion'==_0x131ee0['type'])return _0x6658e1['length']?{'type':'insertion','content':o(_0x144c94,'*Insert:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x286a44,'\x22'+_0x6658e1['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x144c94,'*Insert:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_ROW',_0x286a44))};if('deletion'==_0x131ee0['type'])return _0x6658e1['length']?{'type':'deletion','content':o(_0x144c94,'*Remove:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x286a44,'\x22'+_0x6658e1['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x144c94,'*Remove:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_ROW',_0x286a44))};}if('tableColumn'==_0x131ee0['subType']){const _0xca117b=_0x131ee0['getItems']()['filter'](_0x3dbb54=>_0x3dbb54['is']('$textProxy'))['map'](_0x30253f=>_0x30253f['data']),_0x3b9250=this['_getSuggestionCoords'](_0x131ee0),_0x3cbeb8=_0x3b9250['maxColumn']-_0x3b9250['minColumn']+0x1;if('insertion'==_0x131ee0['type'])return _0xca117b['length']?{'type':'insertion','content':o(_0x144c94,'*Insert:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3cbeb8,'\x22'+_0xca117b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x144c94,'*Insert:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_COLUMN',_0x3cbeb8))};if('deletion'==_0x131ee0['type'])return _0xca117b['length']?{'type':'deletion','content':o(_0x144c94,'*Remove:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3cbeb8,'\x22'+_0xca117b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x144c94,'*Remove:*\x20%0',o(_0x144c94,'ELEMENT_TABLE_COLUMN',_0x3cbeb8))};}}),_0x217b19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x15cb8b),_0x217b19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x15cb8b),_0x217b19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x2a7e45),_0x217b19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x2a7e45),_0x217b19['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xd42c97),_0x217b19['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xd42c97),_0x217b19['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x2449a5),_0x217b19['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x2449a5);}['_acceptFormatSuggestionCallbackFactory'](){const _0x2ba88b=this['editor'],_0x135f5e=_0x2ba88b['model']['document']['selection'];return(_0xaacfc0,_0x5b9474)=>{_0x2ba88b['model']['change'](_0x35485c=>{const {commandName:_0xf28828,commandParams:_0x295abc}=_0x5b9474;let _0x5127aa=_0xaacfc0[0x0]['end']['nodeBefore'];_0x295abc&&_0x295abc[0x0]&&!0x1===_0x295abc[0x0]['forceValue']&&(_0x5127aa=_0xaacfc0[0x0]['start']['nodeAfter']);const _0x525cb2=_0x35485c['createRangeIn'](_0x5127aa);if('$graveyard'==_0x525cb2['root']['rootName'])return;const _0x4e16fa=Array['from'](_0x135f5e['getRanges']())['map'](_0x252d71=>_0xb95ac7['fromRange'](_0x252d71));_0x35485c['setSelection'](_0x525cb2),_0x2ba88b['commands']['get'](_0xf28828)['refresh'](),_0x295abc['push']({'forceDefaultExecution':!0x0}),_0x2ba88b['execute'](_0xf28828,..._0x295abc);const _0x2fcdbe=_0x4e16fa['filter'](_0x40c2f1=>'$graveyard'!=_0x40c2f1['root']['rootName']);_0x2fcdbe['length']>0x0&&_0x35485c['setSelection'](_0x2fcdbe);for(const _0x3e7fd5 of _0x4e16fa)_0x3e7fd5['detach']();});};}['_getCoordsForCells'](_0x5b9188){const _0x4e9b0=this['editor']['plugins']['get']('TableUtils');let _0x27f667=Number['MAX_SAFE_INTEGER'],_0x2eb923=Number['MIN_SAFE_INTEGER'],_0xc4755f=Number['MAX_SAFE_INTEGER'],_0x5b2aa2=Number['MIN_SAFE_INTEGER'];for(const _0x221580 of _0x5b9188){if('$graveyard'==_0x221580['root']['rootName'])continue;const {row:_0x5e38f6,column:_0x28d7a1}=_0x4e9b0['getCellLocation'](_0x221580),_0x55f75a=_0x221580['hasAttribute']('rowspan')?_0x221580['getAttribute']('rowspan')-0x1:0x0,_0x2d6d85=_0x221580['hasAttribute']('colspan')?_0x221580['getAttribute']('colspan')-0x1:0x0;_0x27f667=_0x5e38f6<_0x27f667?_0x5e38f6:_0x27f667,_0x2eb923=_0x5e38f6+_0x55f75a>_0x2eb923?_0x5e38f6+_0x55f75a:_0x2eb923,_0xc4755f=_0x28d7a1<_0xc4755f?_0x28d7a1:_0xc4755f,_0x5b2aa2=_0x28d7a1+_0x2d6d85>_0x5b2aa2?_0x28d7a1+_0x2d6d85:_0x5b2aa2;}return{'minRow':_0x27f667,'maxRow':_0x2eb923,'minColumn':_0xc4755f,'maxColumn':_0x5b2aa2};}['_setupColumnsRowsFixing'](){const _0x48cac6=this['editor'],_0x199357=_0x48cac6['plugins']['get']('TrackChangesEditing'),_0x3e977c=_0x48cac6['plugins']['get']('TableUtils');_0x48cac6['model']['document']['on']('change:data',()=>{const _0x703b4d=Array['from'](_0x48cac6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1e38e4,data:_0x49d2e8}of _0x703b4d){const {group:_0x149d42,id:_0x307fa2,subType:_0x169879}=_0x199357['_splitMarkerName'](_0x1e38e4);if('suggestion'!=_0x149d42)continue;if(null!=_0x49d2e8['oldRange'])continue;const _0xb51a1f=_0x199357['getSuggestion'](_0x307fa2);this['_tablePostFixingSubtypes']['includes'](_0x169879)&&this['_tableSuggestions']['add'](_0xb51a1f);}},{'priority':'low'});const _0x45d48f=(_0x9bcf22,_0x362e88)=>{let _0x43ecdd=!0x1;const _0x1714ac=_0x362e88['createRangeOn'](_0x9bcf22),_0x44f8ef=_0x9bcf22['findAncestor']('table'),_0x5efee0=_0x3e977c['getCellLocation'](_0x9bcf22);for(const _0x46ab88 of this['_tableSuggestions']){const _0x25475f=_0x46ab88['subType'],_0xd40ca2=_0x25475f['startsWith']('tablePaste'),_0x308f79=_0x25475f['substr'](_0xd40ca2?0xa:0x5),_0x15ecac=_0x308f79['toLowerCase'](),_0x5a7d62=_0x15ecac['substr'](0x0,0x3)+'span',_0x35bf6c='min'+_0x308f79,_0x72a58='max'+_0x308f79;if(!_0x46ab88['isInContent'])continue;if(_0x44f8ef!=_0x46ab88['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x46ab88['isIntersectingWithRange'](_0x1714ac))continue;const _0x5479a4=_0x9bcf22['hasAttribute'](_0x5a7d62)?_0x9bcf22['getAttribute'](_0x5a7d62)-0x1:0x0,_0x26f9da=this['_getSuggestionCoords'](_0x46ab88),_0x51e21a=_0x26f9da[_0x35bf6c],_0x56aefa=_0x26f9da[_0x72a58];_0x51e21a<=_0x5efee0[_0x15ecac]&&_0x5efee0[_0x15ecac]+_0x5479a4<=_0x56aefa&&(_0x46ab88['addRange'](_0x1714ac),_0x43ecdd=!0x0);}return _0x43ecdd;};_0x48cac6['model']['document']['registerPostFixer'](_0x552f35=>{let _0x42dc0c=!0x1;for(const _0x2c62c9 of _0x48cac6['model']['document']['differ']['getChanges']())if('insert'==_0x2c62c9['type']){if('tableRow'==_0x2c62c9['name']){for(const _0x4a89af of _0x2c62c9['position']['nodeAfter']['getChildren']())_0x42dc0c=_0x42dc0c||_0x45d48f(_0x4a89af,_0x552f35);}else'tableCell'==_0x2c62c9['name']&&(_0x42dc0c=_0x42dc0c||_0x45d48f(_0x2c62c9['position']['nodeAfter'],_0x552f35));}return _0x42dc0c;});}['_getSuggestionCoords'](_0x2e0e1c){return this['_getCoordsForCells'](_0x2e0e1c['getRanges']()['map'](_0x52225b=>_0x52225b['start']['nodeAfter']));}}function be(_0x5d1f2d){return Array['from'](new Set(_0x5d1f2d)['values']());}class vt extends _0x3a46d7{static get['requires'](){return[It];}['afterInit'](){const _0x4c3ce9=this['editor'],_0x38fab0=_0x4c3ce9['model']['document']['selection'],_0x70f38a=_0x4c3ce9['locale'];if(!_0x4c3ce9['plugins']['has']('TableEditing'))return;const _0x845b62=_0x4c3ce9['plugins']['get']('TrackChangesEditing'),_0x28aef9=_0x4c3ce9['plugins']['get']('TableUtils'),_0x54c0fe=_0x4c3ce9['plugins']['get'](It);_0x54c0fe['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x845b62['enableCommand']('mergeTableCells',()=>{const _0x3a7c6d=_0x28aef9['getSelectionAffectedTableCells'](_0x4c3ce9['model']['document']['selection']);_0x4c3ce9['model']['change'](()=>{_0x845b62['markMultiRangeBlockFormat'](_0x3a7c6d,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x4c3ce9['commands']['get']('mergeTableCells')['on']('execute',(_0x417b75,_0x5796cd)=>{_0x4c3ce9['commands']['get']('trackChanges')['value']&&(_0x5796cd['length']>0x0&&_0x5796cd[_0x5796cd['length']-0x1]&&_0x5796cd[_0x5796cd['length']-0x1]['forceDefaultExecution']||_0x845b62['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x417b75['stop']());},{'priority':'highest'});for(const _0x201095 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14f1a3=_0x4c3ce9['commands']['get'](_0x201095);_0x845b62['enableCommand'](_0x201095,()=>{const _0x33d667=_0x4c3ce9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5ae9c3=>_0x5ae9c3['is']('element','tableCell')),_0x10f26d=_0x14f1a3['value'];_0x4c3ce9['model']['change'](()=>{_0x845b62['markMultiRangeBlockFormat']([_0x33d667,_0x10f26d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xfe4f93 of['splitTableCellVertically','splitTableCellHorizontally']){const _0xa5e130=_0x4c3ce9['commands']['get'](_0xfe4f93);_0x845b62['enableCommand'](_0xfe4f93,()=>{const _0xe38a3c=_0x28aef9['getSelectionAffectedTableCells'](_0x4c3ce9['model']['document']['selection'])[0x0],_0x3ea480=_0xe38a3c['findAncestor']('table'),{column:_0x1304d3,row:_0x1336da}=_0x28aef9['getCellLocation'](_0xe38a3c);let _0x4dbdb5=[];if('horizontally'==_0xa5e130['direction']){const _0x2c5f5a=_0x28aef9['createTableWalker'](_0x3ea480,{'startRow':_0x1336da,'endRow':_0x1336da,'includeAllSlots':!0x0});_0x4dbdb5=Array['from'](_0x2c5f5a)['map'](_0x35d76f=>_0x35d76f['cell']);}else{const _0x506b1d=_0x28aef9['createTableWalker'](_0x3ea480,{'column':_0x1304d3,'includeAllSlots':!0x0});_0x4dbdb5=Array['from'](_0x506b1d)['map'](_0x171f1a=>_0x171f1a['cell']);}_0x4c3ce9['model']['change'](_0x397b1b=>{_0x845b62['markBlockFormat'](_0x397b1b['createRangeOn'](_0xe38a3c),{'commandName':_0xfe4f93,'commandParams':[]},_0x4dbdb5,_0xfe4f93);});});}_0x845b62['descriptionFactory']['registerDescriptionCallback'](_0x16f0ff=>{if('formatBlock'!=_0x16f0ff['type']&&'formatInline'!=_0x16f0ff['type'])return;const {data:_0x184386}=_0x16f0ff;return _0x184386&&'mergeTableCells'==_0x184386['commandName']?{'type':'format','content':o(_0x70f38a,'*Merge\x20cells*')}:void 0x0;}),_0x845b62['descriptionFactory']['registerDescriptionCallback'](_0x38b558=>{if('formatBlock'!=_0x38b558['type']&&'formatInline'!=_0x38b558['type'])return;const {data:_0x2e2c6e}=_0x38b558;return _0x2e2c6e?'splitTableCellVertically'==_0x2e2c6e['commandName']?{'type':'format','content':o(_0x70f38a,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e2c6e['commandName']?{'type':'format','content':o(_0x70f38a,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4f3979=_0x54c0fe['_acceptFormatSuggestionCallbackFactory']();for(const _0x22f7a5 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x845b62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x22f7a5,'accept',_0x4f3979);for(const _0x2ba652 of['splitTableCellVertically','splitTableCellHorizontally'])_0x845b62['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2ba652,'accept',_0x4f3979);_0x845b62['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12c6f5=>{_0x4c3ce9['model']['change'](_0x54363c=>{const _0x4beb24=Array['from'](_0x38fab0['getRanges']())['map'](_0x3a0596=>_0xb95ac7['fromRange'](_0x3a0596));_0x54363c['setSelection'](_0x12c6f5),_0x4c3ce9['commands']['get']('mergeTableCells')['refresh'](),_0x4c3ce9['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x12e38c=_0x4beb24['filter'](_0xb68df3=>'$graveyard'!=_0xb68df3['root']['rootName']);_0x12e38c['length']>0x0&&_0x54363c['setSelection'](_0x12e38c);for(const _0x22061d of _0x4beb24)_0x22061d['detach']();});});for(const _0x4299fa of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x497126=_0x4c3ce9['commands']['get'](_0x4299fa);_0x497126['on']('set:isEnabled',(_0x420ec7,_0x54f6ae,_0x5445b7)=>{if(_0x5445b7){const _0xd7d524=_0x4c3ce9['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1f99b3=>_0x1f99b3['is']('element','tableCell'));this['_areMergableCells'](_0x497126['value'],_0xd7d524)||(_0x420ec7['return']=!0x1,_0x420ec7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x47c183=this['editor']['commands']['get']('mergeTableCells'),_0x29f026=this['editor']['plugins']['get']('TableUtils');if(!_0x47c183['isEnabled'])return!0x1;const _0x1f2f2c=_0x29f026['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x121d0d of _0x1f2f2c)for(const _0x380aac of _0x1f2f2c)if(_0x121d0d!=_0x380aac&&!this['_areMergableCells'](_0x121d0d,_0x380aac))return!0x1;return!0x0;}['_areMergableCells'](_0x59d05c,_0x330ee9){const _0x44ca16=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c3fa7=this['editor']['model']['createRangeOn'](_0x59d05c),_0x1545fb=this['editor']['model']['createRangeOn'](_0x330ee9),_0x1fe91d=new Set(),_0x495610=new Set();for(const _0x3082f9 of _0x44ca16['getSuggestions']())if(('insertion'==_0x3082f9['type']||'deletion'==_0x3082f9['type']||'mergeTableCells'==_0x3082f9['subType'])&&_0x3082f9['isInContent']){for(const _0x203057 of _0x3082f9['getRanges']())_0x203057['containsRange'](_0x3c3fa7,!0x0)&&_0x1fe91d['add'](_0x3082f9['type']+':'+_0x3082f9['author']['id']),_0x203057['containsRange'](_0x1545fb,!0x0)&&_0x495610['add'](_0x3082f9['type']+':'+_0x3082f9['author']['id']);}if(_0x1fe91d['size']!=_0x495610['size'])return!0x1;for(const _0xd9fd0 of _0x1fe91d)if(!_0x495610['has'](_0xd9fd0))return!0x1;return!0x0;}}class Ct extends _0x3a46d7{static get['requires'](){return[It];}['afterInit'](){const _0x56c679=this['editor'];if(!_0x56c679['plugins']['has']('TableEditing'))return;const _0x540279=_0x56c679['locale'],_0x3cf570=_0x56c679['plugins']['get']('TrackChangesEditing');_0x3cf570['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3cf570['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3cf570['registerBlockAttribute']('headingRows'),_0x3cf570['registerBlockAttribute']('headingColumns'),_0x3cf570['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x540279,'FORMAT_HEADER_ROW')),_0x3cf570['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x540279,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3a1b08=this['editor']['plugins']['get']('TrackChangesEditing'),_0x439f64=this['editor']['plugins']['get']('TableUtils'),_0x39af08=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x1768a7({showActiveMarker:_0xfa2f=!0x0,setDataAttribute:_0x336fa7=!0x0}={}){return(_0x5cae12,_0x34d5c1,_0x60a78)=>{const {type:_0x54fbd5,id:_0x513dd7}=_0x3a1b08['_splitMarkerName'](_0x34d5c1['markerName']),_0x2a44fd=_0x3a1b08['getSuggestion'](_0x513dd7),_0x1939a7=_0x2a44fd['data'];if('formatBlock'!=_0x2a44fd['type']||!_0x1939a7||'setTableColumnHeader'!=_0x1939a7['commandName'])return;if(_0x34d5c1['item'])return void _0x5cae12['stop']();if(!_0x60a78['consumable']['consume'](_0x34d5c1['markerRange'],_0x5cae12['name']))return;const _0x1f72d8=_0x34d5c1['markerRange']['start']['nodeAfter'],_0x1414ac=_0x34d5c1['markerRange']['end']['nodeBefore'],_0x1ce14b=_0x1f72d8['parent']['parent'],{column:_0x3777af}=_0x439f64['getCellLocation'](_0x1f72d8),{column:_0x232d00}=_0x439f64['getCellLocation'](_0x1414ac);for(let _0x3cd072=_0x3777af;_0x3cd072<=_0x232d00;_0x3cd072++){const _0x6deff7=_0x439f64['createTableWalker'](_0x1ce14b,{'column':_0x3cd072,'includeAllSlots':!0x1});for(const _0x510b4f of _0x6deff7){const _0x33ee13=_0x510b4f['cell'],_0x5b48f1=_0x60a78['mapper']['toViewElement'](_0x33ee13);_0x60a78['writer']['addClass']('ck-suggestion-marker-'+_0x54fbd5,_0x5b48f1),_0x336fa7&&_0x60a78['writer']['setAttribute']('data-suggestion',_0x513dd7,_0x5b48f1),_0x60a78['mapper']['bindElementToMarker'](_0x5b48f1,_0x34d5c1['markerName']),_0xfa2f&&(_0x3a1b08['activeMarkers']['includes'](_0x34d5c1['markerName'])?_0x60a78['writer']['addClass']('ck-suggestion-marker--active',_0x5b48f1):_0x60a78['writer']['removeClass']('ck-suggestion-marker--active',_0x5b48f1));}}};}_0x3a1b08['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x39af08),_0x3a1b08['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x39af08),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x1768a7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x23bea3,_0x5a9c34,_0x526c98)=>{_0x526c98['options']['showSuggestionHighlights']&&_0x1768a7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x23bea3,_0x5a9c34,_0x526c98);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x5f5c43,_0x579788,_0x2e6c20)=>{const {type:_0x58067f,id:_0x269c5c}=_0x3a1b08['_splitMarkerName'](_0x579788['markerName']),_0x1a4a20=_0x3a1b08['getSuggestion'](_0x269c5c),_0x10beba=_0x1a4a20['data'];if('formatBlock'!=_0x1a4a20['type']||!_0x10beba||'setTableColumnHeader'!=_0x10beba['commandName'])return;const _0x4a26f5=_0x2e6c20['mapper']['markerNameToElements'](_0x579788['markerName']);if(_0x4a26f5){for(const _0x2567cf of _0x4a26f5)_0x2e6c20['writer']['removeClass']('ck-suggestion-marker-'+_0x58067f,_0x2567cf),_0x2e6c20['writer']['removeClass']('ck-suggestion-marker--active',_0x2567cf),_0x2e6c20['writer']['removeAttribute']('data-suggestion',_0x2567cf),_0x2e6c20['mapper']['unbindElementFromMarkerName'](_0x2567cf,_0x579788['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x43feff=this['editor'],_0x57604c=_0x43feff['locale'];function _0x1765cc(_0x527c70){return{'type':'format','content':o(_0x57604c,'*Format:*\x20%0',_0x527c70)};}_0x43feff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c03a6=>{if('formatBlock'!=_0x5c03a6['type'])return;const {data:_0x258f76}=_0x5c03a6;if(_0x258f76){if('setTableRowHeader'==_0x258f76['commandName']){const _0xb5cacd=_0x258f76['commandParams'][0x0]['forceValue'];return _0x1765cc(o(_0x57604c,_0xb5cacd?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x258f76['commandName']){const _0x4ae304=_0x258f76['commandParams'][0x0]['forceValue'];return _0x1765cc(o(_0x57604c,_0x4ae304?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x30d4e4=>[_0x30d4e4,null]));class _t extends _0x3a46d7{static get['requires'](){return[It];}['afterInit'](){const _0x3a4643=this['editor'];if(!_0x3a4643['plugins']['has']('TableClipboard'))return;const _0xca0141=_0x3a4643['plugins']['get']('TrackChangesEditing'),_0xa0d297=_0x3a4643['plugins']['get']('TableUtils'),_0x424d40=_0x3a4643['plugins']['get'](It),_0x112725=_0x3a4643['plugins']['get']('TableClipboard');_0x424d40['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3a4643['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3a4643['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x56e03b=null;_0x3a4643['model']['on']('insertContent',(_0x58dc2d,_0x306494)=>{const [_0x5245b1,_0x3abb31]=_0x306494,_0x5359bd=_0x306494[_0x306494['length']-0x1];_0x5359bd&&_0x5359bd['forceDefaultExecution']||_0xca0141['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x4bcf70,_0x4d2a3a,_0x201dee,_0x3c4647,_0x4719df){if(_0x4d2a3a&&!_0x4d2a3a['is']('documentSelection'))return!0x1;const _0x2b1157=_0x4719df['getTableIfOnlyTableInContent'](_0x4bcf70,_0x201dee);if(!_0x2b1157||!Re(_0x2b1157,void 0x0,_0x3c4647))return!0x1;const _0x182175=_0x3c4647['getSelectionAffectedTableCells'](_0x201dee['document']['selection']);if(!_0x182175['length'])return!0x1;const _0x51e49f=_0x182175[0x0]['findAncestor']('table'),_0x2bc49c=_0x3c4647['getRowIndexes'](_0x182175),_0x555a84=_0x3c4647['getColumnIndexes'](_0x182175),_0x556761={'startRow':_0x2bc49c['first'],'endRow':_0x2bc49c['last'],'startColumn':_0x555a84['first'],'endColumn':_0x555a84['last']};return 0x1==_0x182175['length']&&(_0x556761['endRow']+=_0x3c4647['getRows'](_0x2b1157)-0x1,_0x556761['endColumn']+=_0x3c4647['getColumns'](_0x2b1157)-0x1),Re(_0x51e49f,_0x556761,_0x3c4647);}(_0x5245b1,_0x3abb31,_0x3a4643['model'],_0xa0d297,_0x112725)&&(_0x58dc2d['stop'](),_0x56e03b={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3a4643['model']['change'](()=>{_0x3a4643['model']['insertContent'](_0x306494[0x0],_0x306494[0x1],_0x306494[0x2],{'forceDefaultExecution':!0x0});const _0x5e2a7c=_0x26aa04(),{rowInsertionRanges:_0x59cec3,columnInsertionRanges:_0x499a72,insertionRanges:_0x51709d,deletionRanges:_0xa20c25,cells:_0xb0c0b8}=_0x56e03b;_0x59cec3['length']&&_0xca0141['markMultiRangeInsertion'](_0x59cec3,'tablePasteRow',{'tablePasteChainId':_0x5e2a7c}),_0x499a72['length']&&_0xca0141['markMultiRangeInsertion'](_0x499a72,'tablePasteColumn',{'tablePasteChainId':_0x5e2a7c}),_0x51709d['length']&&(_0xca0141['markMultiRangeInsertion'](_0x51709d,'tablePaste',{'tablePasteChainId':_0x5e2a7c,'skipNestingCheck':!0x0}),_0x51709d['forEach'](_0x5ce05e=>_0x5ce05e['detach']?.())),_0xa20c25['length']&&(_0xca0141['markMultiRangeDeletion'](_0xa20c25,'tablePaste',{'tablePasteChainId':_0x5e2a7c,'skipNestingCheck':!0x0}),_0xa20c25['forEach'](_0x38b9f6=>_0x38b9f6['detach']?.()));const _0x1994f8=_0xca0141['markMultiRangeBlockFormat'](_0xb0c0b8['map'](({element:_0x5b95a8})=>_0x5b95a8),{'formatGroupId':_0x26aa04()},[],'tablePasteCell',{'tablePasteChainId':_0x5e2a7c});if(_0x1994f8){const _0x425846=_0x1994f8['getMarkers'](),_0x8113a5=[];for(const {element:_0x384eed,attributes:_0x5af55e}of _0xb0c0b8){if(!_0x5af55e)continue;const _0x530773=_0x3a4643['model']['createRangeOn'](_0x384eed),_0x5a532c=_0x425846['find'](_0x5593e8=>_0x5593e8['getRange']()['isEqual'](_0x530773));_0x5a532c&&_0x8113a5['push']([_0x5a532c['name'],_0x5af55e]);}_0x8113a5['length']&&_0x1994f8['setAttribute']('markerAttributes',Object['fromEntries'](_0x8113a5));}_0x56e03b=null;}));},{'priority':_0x1757e7['high']+0xa}),_0x3a4643['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x545ff4,_0x17d0e7)=>{const [_0x3941fd,_0x1b6ada,,_0x10c5a6]=_0x17d0e7;if(!_0x56e03b)return;_0x545ff4['stop']();const _0x16354b=_0x3941fd['cell'],_0x2b40ee=_0x1b6ada,_0x32a569=ke(_0x16354b),_0x55527e=ke(_0x2b40ee);_0x545ff4['return']=_0x16354b;let _0x8a2362=null,_0x5a2232=null;if(_0x55527e||_0x32a569){if(_0x32a569&&!_0x55527e){_0x10c5a6['remove'](_0x16354b['getChild'](0x0));for(const _0x3d71ce of Array['from'](_0x2b40ee['getChildren']()))_0x10c5a6['insert'](_0x3d71ce,_0x16354b,'end');const _0x4fc224=_0x56e03b['rowInsertionIndexes']['includes'](_0x3941fd['row']),_0x20ce04=_0x56e03b['columnInsertionIndexes']['includes'](_0x3941fd['column']);_0x4fc224||_0x20ce04||(_0x8a2362=_0xb95ac7['fromRange'](_0x10c5a6['createRangeIn'](_0x16354b)));}else _0x55527e&&!_0x32a569&&(_0x5a2232=_0x10c5a6['createRangeIn'](_0x16354b));}else{const _0x27967a=_0x10c5a6['createElement']('tableCellSuggestion'),_0x51dd70=_0x10c5a6['createElement']('tableCellSuggestion');_0x10c5a6['wrap'](_0x10c5a6['createRangeIn'](_0x16354b),_0x51dd70),_0x10c5a6['insert'](_0x27967a,_0x16354b,0x0);for(const _0x18908d of Array['from'](_0x2b40ee['getChildren']()))_0x10c5a6['insert'](_0x18908d,_0x27967a,'end');_0x8a2362=_0xb95ac7['fromRange'](_0x10c5a6['createRangeOn'](_0x27967a)),_0x5a2232=_0xb95ac7['fromRange'](_0x10c5a6['createRangeOn'](_0x51dd70));}const _0x27f9fc=Array['from'](_0x2b40ee['getAttributes']())['filter'](([_0x3f6859])=>Pe['includes'](_0x3f6859));_0x56e03b['cells']['push']({'element':_0x16354b,'attributes':_0x27f9fc['length']?Object['fromEntries'](_0x27f9fc):null}),_0x8a2362&&_0x56e03b['insertionRanges']['push'](_0x8a2362),_0x5a2232&&_0x56e03b['deletionRanges']['push'](_0x5a2232);},{'priority':'high'}),_0xa0d297['on']('insertColumns',(_0x3f7c98,_0x18a710)=>{const [_0x55f43a,_0x3c257f={}]=_0x18a710;if(!_0x56e03b)return;const _0x5630b6=_0x3c257f['at']||0x0,_0x254e8d=_0x3c257f['columns']||0x1;_0x56e03b['columnInsertionIndexes']=new Array(_0x254e8d)['fill'](_0x5630b6)['map']((_0x6b22f6,_0x12309a)=>_0x6b22f6+_0x12309a);for(const {cell:_0x298369}of _0xa0d297['createTableWalker'](_0x55f43a,{'startColumn':_0x5630b6,'endColumn':_0x5630b6+_0x254e8d-0x1}))_0x56e03b['columnInsertionRanges']['push'](_0x3a4643['model']['createRangeOn'](_0x298369));},{'priority':'low'}),_0xa0d297['on']('insertRows',(_0x911905,_0x496a18)=>{const [_0x2431d0,_0x5b5b28={}]=_0x496a18;if(!_0x56e03b)return;const _0x19c1ca=_0x5b5b28['at']||0x0,_0x2f7f07=_0x5b5b28['rows']||0x1;_0x56e03b['rowInsertionIndexes']=new Array(_0x2f7f07)['fill'](_0x19c1ca)['map']((_0x387c3d,_0x1172af)=>_0x387c3d+_0x1172af);for(const {cell:_0x283bc1}of _0xa0d297['createTableWalker'](_0x2431d0,{'startRow':_0x19c1ca,'endRow':_0x19c1ca+_0x2f7f07-0x1}))_0x56e03b['rowInsertionRanges']['push'](_0x3a4643['model']['createRangeOn'](_0x283bc1));},{'priority':'low'}),_0xca0141['descriptionFactory']['registerDescriptionCallback'](_0x31486e=>{if(_0x31486e['subType']&&_0x31486e['subType']['startsWith']('tablePaste'))return _0x31486e['previous']?{}:{'type':'insertion','content':o(_0x3a4643['locale'],'*Replace\x20table\x20cells*')};});const _0x50c028=()=>!0x1;for(const _0xdb7a1d of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0xca0141['_suggestionFactory']['registerCustomCallback']('insertion',_0xdb7a1d,'join',_0x50c028),_0xca0141['_suggestionFactory']['registerCustomCallback']('deletion',_0xdb7a1d,'join',_0x50c028),_0xca0141['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdb7a1d,'join',_0x50c028);_0xca0141['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x50c028),_0xca0141['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x1bf03c,_0x3ddc81,_0x165f3a)=>{const _0x57d7eb=_0x1bf03c['map'](_0x3fbbe7=>_0x3fbbe7['getContainedElement']())['filter'](_0xf5cb53=>_0xf5cb53),_0x586150=new Map(_0x57d7eb['map'](_0x510ddb=>[_0x510ddb,null]));if(_0x56e03b){for(const {element:_0x2bb747,attributes:_0x4938dc}of _0x56e03b['cells'])_0x4938dc&&_0x586150['set'](_0x2bb747,_0x4938dc);}else{if(_0x165f3a&&_0x165f3a['markerAttributes'])for(const [_0x5d0f4c,_0x431165]of Object['entries'](_0x165f3a['markerAttributes'])){const _0x5d4957=_0x3a4643['model']['markers']['get'](_0x5d0f4c),_0xcd019e=_0x5d4957?_0x5d4957['getRange']()['getContainedElement']():null;_0xcd019e&&_0x586150['set'](_0xcd019e,_0x431165);}}_0x3a4643['model']['change'](_0x674043=>{for(const [_0x28cfc4,_0x18e07c]of _0x586150)_0x674043['setAttributes']({...we,..._0x18e07c},_0x28cfc4);});});const _0x3ed3cb=(_0x4ab3ca,_0xe6919d)=>{_0xca0141['_suggestionFactory']['registerCustomCallback'](_0x4ab3ca,'tablePaste',_0xe6919d,(_0x3c16e1,_0x54a464,_0x1944bb)=>{_0x3a4643['model']['change'](_0x30c120=>{const _0x15293d=[];for(const _0x51210d of _0x3c16e1){const _0x2ca8e6=_0x51210d['start']['nodeAfter'];_0x2ca8e6['is']('element','tableCellSuggestion')&&_0x15293d['push'](_0x2ca8e6);}_0xca0141['_suggestionFactory']['getSuggestionCallback'](_0x4ab3ca,null,_0xe6919d)(_0x3c16e1,_0x54a464,_0x1944bb);for(const _0x1f47d7 of _0x15293d)'$graveyard'!=_0x1f47d7['root']['rootName']&&_0x30c120['unwrap'](_0x1f47d7);});});};_0x3ed3cb('insertion','accept'),_0x3ed3cb('insertion','discard'),_0x3ed3cb('deletion','accept'),_0x3ed3cb('deletion','discard'),_0xca0141['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x4f3003=>{const _0x2d5639=_0x4f3003['map'](_0x89048d=>_0x89048d['getContainedElement']()),_0x10e372=_0x2d5639[0x0]['findAncestor']('table'),{minRow:_0x16ee09,maxRow:_0x2eb4cf}=_0x424d40['_getCoordsForCells'](_0x2d5639);_0xa0d297['removeRows'](_0x10e372,{'at':_0x16ee09,'rows':_0x2eb4cf-_0x16ee09+0x1});}),_0xca0141['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4d4dec=>{const _0x493584=_0x4d4dec['map'](_0x1bdf9b=>_0x1bdf9b['getContainedElement']()),_0x21de35=_0x493584[0x0]['findAncestor']('table'),{minColumn:_0x58f1cd,maxColumn:_0x1f8fe5}=_0x424d40['_getCoordsForCells'](_0x493584);_0xa0d297['removeColumns'](_0x21de35,{'at':_0x58f1cd,'columns':_0x1f8fe5-_0x58f1cd+0x1});});const _0x2c86da=(_0x3e738a,_0x48216d)=>{if(!_0x48216d['subType']||!_0x48216d['subType']['startsWith']('tablePaste'))return;const _0x1380c4=_0x48216d['attributes']['tablePasteChainId'],_0x417df3=_0xca0141['getSuggestions']()['filter'](_0xfae20a=>_0xfae20a['isInContent']&&_0xfae20a['attributes']&&_0xfae20a['attributes']['tablePasteChainId']==_0x1380c4);_0x417df3['length']&&_0x48216d['getAllAdjacentSuggestions']()['length']!=_0x417df3['length']&&_0x417df3['reduce']((_0x546ca5,_0x43f0d7)=>(_0x546ca5['next']=_0x43f0d7,_0x43f0d7['previous']=_0x546ca5,_0x43f0d7));};function _0x438c67(_0x41eed2,_0x48c8ec=!0x0){const {id:_0x1bb329,authorId:_0x3ca0fb}=_0xca0141['_splitMarkerName'](_0x41eed2['markerName']),_0x2aaa0e=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0xf017c1=_0xca0141['activeMarkers']['includes'](_0x41eed2['markerName']);return _0xf017c1&&_0x2aaa0e['push']('ck-suggestion-marker--active'),{'classes':_0x2aaa0e,'attributes':{'data-suggestion':_0x1bb329,'data-author-id':_0x3ca0fb},'priority':_0xf017c1&&_0x48c8ec?0xbc2:0xbb8};}_0xca0141['on']('suggestionLoaded',_0x2c86da,{'priority':'high'}),_0xca0141['on']('suggestionUnloaded',_0x2c86da,{'priority':'high'}),_0x3a4643['model']['document']['registerPostFixer'](()=>{let _0x332954=!0x1;const _0x3d1dba=Array['from'](_0x3a4643['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4856f3,data:_0x1513c8}of _0x3d1dba){const {group:_0x18bce4,type:_0x834df3,id:_0x579083}=_0xca0141['_splitMarkerName'](_0x4856f3);if('suggestion'!=_0x18bce4||'deletion'!=_0x834df3||_0x1513c8['oldRange'])continue;if(!_0xca0141['hasSuggestion'](_0x579083))continue;const _0x4defcc=_0xca0141['getSuggestion'](_0x579083)['getRanges'](),_0x34e748=_0x3a4643['plugins']['get']('Users')['me'];for(const _0x26dcc5 of _0xca0141['getSuggestions']()){if(!_0x26dcc5['isInContent']||_0x26dcc5['author']!=_0x34e748)continue;if('formatBlock'!=_0x26dcc5['type']||'tablePasteCell'!=_0x26dcc5['subType'])continue;if(_0x26dcc5['getRanges']()['every'](_0x4ca329=>_0x4defcc['some'](_0x40e2e3=>_0x40e2e3['containsRange'](_0x4ca329,!0x0)))){for(const _0x4f4492 of _0x26dcc5['getAllAdjacentSuggestions']())_0x4f4492['isInContent']&&(_0x4f4492['discard'](),_0x332954=!0x0);}}}return _0x332954;}),_0x3a4643['model']['document']['registerPostFixer'](_0x1d09fc=>{const _0x30ee8c=_0x3a4643['commands']['get']('redo');if(!_0x30ee8c||!_0x30ee8c['_createdBatches']['has'](_0x1d09fc['batch']))return!0x1;let _0x570e17=!0x1;const _0x439230=_0x3a4643['plugins']['get']('Users')['me'],_0x5b57ab=_0x3a4643['model']['document']['differ']['getChanges'](),_0xdfc029=Array['from'](_0x3a4643['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2aafa3,data:_0x55af48})=>{const {group:_0x426381,subType:_0x18df29,authorId:_0x56a169}=_0xca0141['_splitMarkerName'](_0x2aafa3);return'suggestion'==_0x426381&&'tablePaste'==_0x18df29&&_0x56a169==_0x439230['id']&&!_0x55af48['oldRange'];});for(const _0x12e05e of _0x5b57ab){if('insert'!=_0x12e05e['type']||'tableCellSuggestion'!=_0x12e05e['name']||0x1!=_0x12e05e['length'])continue;const _0x12dcc0=_0x1d09fc['createRange'](_0x12e05e['position'],_0x12e05e['position']['getShiftedBy'](0x1));if(!_0xdfc029['find'](({data:_0x5bbbe7})=>_0x5bbbe7['newRange']['isEqual'](_0x12dcc0))){for(const {name:_0x4bff5c,data:_0xea3c5b}of _0xdfc029)if(_0x12dcc0['containsRange'](_0xea3c5b['newRange'])){_0x1d09fc['updateMarker'](_0x4bff5c,{'range':_0x12dcc0}),_0x570e17=!0x0;break;}}}return _0x570e17;}),_0x3a4643['model']['document']['registerPostFixer'](_0x50ffb6=>{let _0x532ce6=!0x1;const _0x2df723=_0x3a4643['plugins']['get']('Users')['me'],_0x531ea2=_0xca0141['getSuggestions']()['filter'](_0x175b7a=>_0x175b7a['isInContent']&&_0x175b7a['author']==_0x2df723),_0x1cf6b8=new Set(),_0x31c2a1=new Set();for(const _0x247609 of _0x531ea2)if('tablePaste'==_0x247609['subType'])for(const _0x1faa7d of _0x247609['getMarkers']()){const _0xe59957=_0x1faa7d['getRange']()['getContainedElement']();if(_0xe59957){if(_0xe59957['is']('element','tableCellSuggestion')&&ke(_0xe59957)){_0x247609['removeMarker'](_0x1faa7d['name']),_0x1cf6b8['add'](_0xe59957),_0x532ce6=!0x0;const _0x519057=_0xe59957['nextSibling'],_0xcf6af=_0xe59957['previousSibling'],_0x25093e=_0x519057&&_0x519057['is']('element','tableCellSuggestion'),_0x52bc06=_0xcf6af&&_0xcf6af['is']('element','tableCellSuggestion');_0x25093e&&!_0x1cf6b8['has'](_0x519057)&&_0x31c2a1['add'](_0x519057),_0x52bc06&&!_0x1cf6b8['has'](_0xcf6af)&&_0x31c2a1['add'](_0xcf6af);}else _0xe59957['is']('element','paragraph')&&_0xe59957['isEmpty']&&(_0x247609['removeMarker'](_0x1faa7d['name']),_0x532ce6=!0x0);}}else{if('tablePasteCell'==_0x247609['subType']){if(!_0x247609['attributes']||!_0x247609['attributes']['tablePasteChainId'])continue;const _0x4c297c=_0x247609['attributes']['markerAttributes'];if(_0x4c297c&&Object['keys'](_0x4c297c)['length'])continue;const _0x46a4bd=_0x247609['attributes']['tablePasteChainId'];let _0x48231b=!0x0,_0x25e771=!0x0;for(const _0x40a5a5 of _0x531ea2)if(_0x40a5a5['subType']&&_0x40a5a5['subType']['startsWith']('tablePaste')){if(!_0x40a5a5['attributes']['tablePasteChainId']){_0x25e771=!0x1;break;}if(_0x40a5a5['id']!=_0x247609['id']&&_0x40a5a5['attributes']['tablePasteChainId']==_0x46a4bd){_0x48231b=!0x1;break;}}_0x25e771&&_0x48231b&&(_0x247609['removeMarkers'](),_0x532ce6=!0x0);}}for(const _0x4df14f of _0x1cf6b8)_0x50ffb6['remove'](_0x4df14f);for(const _0x28235d of _0x31c2a1)_0x50ffb6['unwrap'](_0x28235d);return _0x532ce6;}),_0x3a4643['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x1e7c1f,_0x4b9c18)=>_0x438c67(_0x1e7c1f),'converterPriority':'high'}),_0x3a4643['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x51b258,_0x38acb5)=>_0x38acb5['options']['showSuggestionHighlights']?_0x438c67(_0x51b258,!0x1):null,'converterPriority':'high'});const _0x5c31f5=_0x3a4643['editing']['view'];this['listenTo'](_0x5c31f5['document'],'clipboardOutput',(_0x1b8255,_0x46e885)=>{const _0x593766=[];for(const _0x36b45a of _0x5c31f5['createRangeIn'](_0x46e885['content'])['getItems']())_0x36b45a['is']('element','suggestion-td')&&_0x593766['push'](_0x36b45a);_0x5c31f5['change'](_0x4be57b=>{for(const _0x458af9 of _0x593766)_0x4be57b['move'](_0x4be57b['createRangeIn'](_0x458af9),_0x4be57b['createPositionBefore'](_0x458af9)),_0x4be57b['remove'](_0x458af9);});});}}function ke(_0x4f1c2a){if(_0x4f1c2a['isEmpty'])return!0x0;const _0x571e41=_0x4f1c2a['getChild'](0x0);return _0x571e41['is']('element','paragraph')&&_0x571e41['isEmpty'];}function Re(_0x2615d2,_0x3d9bca={},_0x497d15){for(const {isAnchor:_0x2b6712,cellHeight:_0x203640,cellWidth:_0x115b12}of _0x497d15['createTableWalker'](_0x2615d2,{'includeAllSlots':!0x0,..._0x3d9bca}))if(!_0x2b6712||0x1!=_0x203640||0x1!=_0x115b12)return!0x1;return!0x0;}class Nt extends _0x3a46d7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1a7bcd=this['editor']['plugins']['get']('TrackChangesEditing');_0x1a7bcd['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1a7bcd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1a7bcd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1a7bcd['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1a7bcd['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1a7bcd['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x51cf61,_0xa6bb30){const _0x1834c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ad907=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x18f61b=_0xa6bb30['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x13ac60=_0x3ad907['getColumnGroupElement'](_0x18f61b);let _0x343f30=_0x13ac60?_0x3ad907['getTableColumnsWidths'](_0x13ac60):null,_0x540568=_0x18f61b['getAttribute']('tableWidth')||null;const _0xbbb4ae=_0xa6bb30['tableWidth']||_0x540568,_0x21e001=_0xa6bb30['columnWidths']||_0x343f30,_0x44ad40=this['editor']['plugins']['get']('Users')['me'];for(const _0xb9a4d6 of _0x1834c1['getSuggestions']()){const _0x29c5b3=_0xb9a4d6['getContainedElement']();if('resizeTable'===_0xb9a4d6['subType']&&_0x29c5b3===_0x18f61b){_0xb9a4d6['author']!==_0x44ad40&&_0xb9a4d6['discard']();const _0x10457f=_0xb9a4d6['data']['commandParams'];_0x540568=_0x10457f[0x0]['tableWidth'],_0x343f30=_0x10457f[0x0]['columnWidths'];break;}}_0x51cf61({'table':_0x18f61b,'tableWidth':_0xbbb4ae,'columnWidths':_0x21e001}),_0x1834c1['markBlockFormat'](_0x18f61b,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x540568,'columnWidths':_0x343f30}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x24fc96){if('formatBlock'!=_0x24fc96['type']&&'formatInline'!=_0x24fc96['type'])return;const {data:_0x5dca34}=_0x24fc96;if(_0x5dca34&&'resizeTable'===_0x5dca34['formatGroupId']){const _0x23f051='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x23f051)};}}}class Dt extends _0x3a46d7{['afterInit'](){const _0x316147=this['editor'];_0x316147['plugins']['has']('Template')&&_0x316147['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3a46d7{['afterInit'](){const _0x40129b=this['editor'];if(!_0x40129b['commands']['get']('insertTableOfContents'))return;_0x40129b['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x3f85da=_0x40129b['plugins']['get']('TrackChangesEditing'),_0x48cd16=_0x40129b['locale'];_0x3f85da['descriptionFactory']['registerElementLabel']('tableOfContents',_0x15cf6c=>o(_0x48cd16,'ELEMENT_TABLE_OF_CONTENTS',_0x15cf6c));}}class $t extends _0x3a46d7{['afterInit'](){const _0x20245c=this['editor'];if(!_0x20245c['plugins']['has']('Title'))return;const _0x547a1d=_0x20245c['plugins']['get']('TrackChangesEditing');_0x547a1d['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x20245c['locale'],'ELEMENT_TITLE')),_0x20245c['model']['document']['registerPostFixer'](_0x1cd02f=>{let _0x2ba977=!0x1;const _0x519923=Array['from'](_0x20245c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x36db54,data:_0x5c5c5c}of _0x519923){const {group:_0x11e650}=_0x547a1d['_splitMarkerName'](_0x36db54);if('suggestion'!==_0x11e650||!_0x5c5c5c['newRange'])continue;const _0x276eaa=_0x5c5c5c['newRange'],_0x4a1084=_0x276eaa['end']['nodeBefore'];if(!_0x4a1084||!_0x4a1084['is']('element','title-content'))continue;if(!_0x276eaa['start']['isTouching'](_0x276eaa['end']))continue;const _0x363b23=_0x20245c['model']['schema']['getNearestSelectionRange'](_0x276eaa['end'],'forward');if(_0x363b23&&_0x363b23['isCollapsed']){const _0x2d173d=_0x1cd02f['createRange'](_0x276eaa['start'],_0x363b23['start']);_0x2d173d['isEqual'](_0x276eaa)||(_0x1cd02f['updateMarker'](_0x36db54,{'range':_0x2d173d}),_0x2ba977=!0x0);}_0x2ba977||(_0x1cd02f['removeMarker'](_0x36db54),_0x2ba977=!0x0);}return _0x2ba977;});}}class Bt extends _0x3a46d7{['afterInit'](){const _0x5da4d4=this['editor'],_0x122cd1=_0x5da4d4['plugins']['get']('TrackChangesEditing');_0x5da4d4['plugins']['has']('UndoEditing')&&(_0x122cd1['enableCommand']('undo'),_0x122cd1['enableCommand']('redo'));}}class xt extends _0x3a46d7{static get['requires'](){return[It];}['afterInit'](){const _0x9112da=this['editor'];if(!_0x9112da['plugins']['has']('TableCaptionEditing'))return;_0x9112da['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3a46d7{['tableProperties'];['tableCellProperties'];constructor(_0x168042){super(_0x168042),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';}['afterInit'](){const _0xa64195=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4c7cb5 of this['tableProperties'])_0xa64195['enableCommand'](_0x4c7cb5,(_0xa29804,_0x38e245)=>{const _0x19f7e2=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4c7cb5,[_0x19f7e2],this['tableProperties'],'tableProperties',_0xa29804,_0x38e245);});_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0xa64195['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x225738,_0x530f1d)=>this['handleDiscardAction'](this['tableProperties'],_0x225738,_0x530f1d)),_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0xe59936 of this['tableCellProperties'])_0xa64195['enableCommand'](_0xe59936,(_0x480080,_0x1e9c95)=>{const _0x2c42e6=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0xe59936,_0x2c42e6,this['tableCellProperties'],'tableCellProperties',_0x480080,_0x1e9c95);});_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0xa64195['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x20e06f,_0x390a0e)=>this['handleDiscardAction'](this['tableCellProperties'],_0x20e06f,_0x390a0e)),_0xa64195['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0xa64195['descriptionFactory']['registerDescriptionCallback'](_0x7bdccd=>this['handleSuggestionDescription'](_0x7bdccd));}['_handlePropertyChange'](_0x469631,_0x2e958c,_0x3c1da8,_0x231eaa,_0x327d5e,_0x3bdf15){const _0x516a78=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3bdf15['batch'],()=>{for(const _0x292e07 of _0x2e958c){if(this['_getSuggestion'](_0x292e07,_0x231eaa))_0x327d5e(_0x3bdf15);else{const _0x5cae0a={};for(const _0x23eaaa of _0x3c1da8){const _0x43a16f=_0x292e07['getAttribute'](_0x23eaaa);void 0x0!==_0x43a16f&&(_0x5cae0a[_0x23eaaa]=_0x43a16f);}_0x327d5e(_0x3bdf15),_0x516a78['markBlockFormat'](_0x292e07,{'commandParams':[_0x5cae0a]},[],_0x231eaa);}}});}['handleDiscardAction'](_0x4b86ee,_0x12fd8b,_0x151e15){const _0x462bf6=_0x12fd8b[0x0]['start']['nodeAfter'],_0x474bb2=_0x151e15['commandParams'][0x0];this['editor']['model']['change'](_0x1aa043=>{for(const _0x13f37e of _0x4b86ee)void 0x0!==_0x474bb2[_0x13f37e]?_0x1aa043['setAttribute'](_0x13f37e,_0x474bb2[_0x13f37e],_0x462bf6):_0x1aa043['removeAttribute'](_0x13f37e,_0x462bf6);});}['handleSuggestionDescription'](_0x4c967e){if(_0x4c967e['data'])switch(_0x4c967e['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'](_0x52b7c8,_0x224c69){const _0x6abe81=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x1333e6 of _0x6abe81['getSuggestions']({'skipNotAttached':!0x0})){const _0x1beb4a=_0x1333e6['getContainedElement']();if(_0x1333e6['subType']===_0x224c69&&_0x1beb4a===_0x52b7c8)return _0x1333e6;}return null;}}const m='$elementName';class p extends _0x3a46d7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x2d667e,_0x482add,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x2959e2){function _0x3b1525(_0x2a2f1b){return _0x2a2f1b['map'](_0x41f590=>String['fromCharCode'](_0x41f590))['join']('');}super(_0x2959e2),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x5c5d74,_0x20154c,_0x3e7d28,_0x326a70)=>{this['_model']['change'](()=>{for(const _0x3d4ed5 of[..._0x326a70,..._0x3e7d28])this['_model']['markers']['has'](_0x3d4ed5)&&_0x2959e2['editing']['reconvertMarker'](_0x3d4ed5);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x2959e2['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(),_0x2959e2['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x2959e2['config']['get']('trackChanges.trackFormatChanges'),_0x2959e2['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x2959e2['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x2959e2,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3b1525([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3b1525([0x34,0x30,0x34,0x38,0x31,0x36,0x34,0x30]);}['init'](){const _0x3b5572=this['editor'],_0x4ae514=(_0x3a9c4f,_0x356d59)=>{if('attribute'!=_0x3a9c4f)return'ck-suggestion-marker-'+_0x3a9c4f;const _0x3cd8d6=_0x356d59['split']('|')[0x0];return this['_isBlockAttribute'](_0x3cd8d6)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3b5572['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x50db4b=>{const {id:_0x502dd8,authorId:_0x262362,type:_0x19ff4b,subType:_0x216acf}=this['_splitMarkerName'](_0x50db4b['markerName']),_0x47e29d=['ck-suggestion-marker',_0x4ae514(_0x19ff4b,_0x216acf)];let _0x3dcea0=0xbb8;return this['activeMarkers']['includes'](_0x50db4b['markerName'])&&(_0x47e29d['push']('ck-suggestion-marker--active'),_0x3dcea0=0xbc2),'deletion'==_0x19ff4b&&(_0x3dcea0+=0x5),{'classes':_0x47e29d,'attributes':{'data-suggestion':_0x502dd8,'data-author-id':_0x262362},'priority':_0x3dcea0};}}),_0x3b5572['conversion']['for']('dataDowncast')['add'](_0x1ebdf4=>{_0x1ebdf4['on']('addMarker:suggestion',(_0x55b04a,_0x1b952e,_0x210073)=>{if(!_0x210073['options']['showSuggestionHighlights'])return;const _0x5658ff=_0x1b952e['item'];if(!_0x5658ff)return;const _0x25600a=_0x210073['mapper']['toViewElement'](_0x5658ff);_0x3b5572['model']['schema']['isObject'](_0x5658ff)&&_0x25600a&&!_0x25600a['getCustomProperty']('widget')&&_0x25600a['is']('containerElement')&&_0xf9a851(_0x25600a,_0x210073['writer']);},{'priority':'high'});}),_0x3b5572['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x31481e,_0x392306)=>{if(!_0x392306['options']['showSuggestionHighlights'])return null;const {type:_0x38b298,subType:_0x488429}=this['_splitMarkerName'](_0x31481e['markerName']);return{'classes':['ck-suggestion-marker',_0x4ae514(_0x38b298,_0x488429)],'priority':0xbb8};}});const _0x44ff9c=({showActiveMarkers:_0xcb8c5a=!0x0,isAttributeSuggestion:_0x55b1ba=!0x1}={})=>(_0x3d5409,_0x2f371b,_0x4c2065)=>{if(!_0x2f371b['item'])return;const {id:_0x5dad99,authorId:_0x25f4d5}=this['_splitMarkerName'](_0x2f371b['markerName']);if(_0x55b1ba){const _0x3e6c00=this['_suggestions']['get'](_0x5dad99),_0x30b175=this['_getAttributeKey'](_0x3e6c00);if(!this['_isBlockAttribute'](_0x30b175))return;}if(_0x2f371b['item']['is']('selection'))return void _0x4c2065['consumable']['consume'](_0x2f371b['item'],_0x3d5409['name']);const _0x45c9c9=_0x4c2065['mapper']['toViewElement'](_0x2f371b['item']);if(_0x2f371b['item']['is']('element')&&_0x3b5572['model']['schema']['isBlock'](_0x2f371b['item'])&&!_0x45c9c9['getCustomProperty']('addHighlight')){_0x4c2065['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x45c9c9),_0x4c2065['writer']['setAttribute']('data-suggestion',_0x5dad99,_0x45c9c9),_0x4c2065['writer']['setAttribute']('data-author-id',_0x25f4d5,_0x45c9c9),_0x4c2065['mapper']['bindElementToMarker'](_0x45c9c9,_0x2f371b['markerName']),_0xcb8c5a&&(this['activeMarkers']['includes'](_0x2f371b['markerName'])?_0x4c2065['writer']['addClass']('ck-suggestion-marker--active',_0x45c9c9):_0x4c2065['writer']['removeClass']('ck-suggestion-marker--active',_0x45c9c9));for(const _0x38e713 of _0x3b5572['model']['createRangeIn'](_0x2f371b['item'])['getItems']())_0x4c2065['consumable']['consume'](_0x38e713,_0x3d5409['name']);_0x4c2065['consumable']['consume'](_0x2f371b['item'],_0x3d5409['name']);}};_0x3b5572['conversion']['for']('dataDowncast')['add'](_0x4b6c95=>{_0x4b6c95['on']('addMarker:suggestion:formatBlock',(_0x4f9665,_0xfa6c26,_0x3857d1)=>{_0x3857d1['options']['showSuggestionHighlights']&&_0x44ff9c({'showActiveMarkers':!0x1})(_0x4f9665,_0xfa6c26,_0x3857d1);},{'priority':'highest'});}),_0x3b5572['conversion']['for']('dataDowncast')['add'](_0x465785=>{_0x465785['on']('addMarker:suggestion:attribute',(_0x591e6b,_0x51ef2f,_0x16d29e)=>{_0x16d29e['options']['showSuggestionHighlights']&&_0x44ff9c({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x591e6b,_0x51ef2f,_0x16d29e);},{'priority':'highest'});}),_0x3b5572['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x129a49,_0x43708e)=>_0x43708e['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x129a49['substr'](0xb)}}),_0x3b5572['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4bcd0f,{writer:_0x1c124a})=>{let _0x1d7ec0='suggestion:'+_0x4bcd0f['getAttribute']('suggestion-type')+':'+_0x4bcd0f['getAttribute']('id');return _0x4bcd0f['getAttribute']('marker-count')&&(_0x1d7ec0+=':'+_0x4bcd0f['getAttribute']('marker-count')),_0x1c124a['createElement']('$marker',{'data-name':_0x1d7ec0});}}),_0x3b5572['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3b5572['conversion']['for']('editingDowncast')['add'](_0xa5f4bc=>{_0xa5f4bc['on']('addMarker:suggestion:formatBlock',_0x44ff9c(),{'priority':'high'});}),_0x3b5572['conversion']['for']('editingDowncast')['add'](_0x4f9646=>{_0x4f9646['on']('addMarker:suggestion:attribute',_0x44ff9c({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3b5572['conversion']['for']('editingDowncast')['add'](_0x337020=>{_0x337020['on']('removeMarker:suggestion:formatBlock',(_0x1382d5,_0x315837,_0xb10ea9)=>{const _0x13ec80=_0xb10ea9['mapper']['markerNameToElements'](_0x315837['markerName']);if(_0x13ec80){for(const _0x2405a6 of _0x13ec80)_0x2405a6['getCustomProperty']('addHighlight')||(_0xb10ea9['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2405a6),_0xb10ea9['writer']['removeAttribute']('data-suggestion',_0x2405a6),_0xb10ea9['writer']['removeAttribute']('data-author-id',_0x2405a6),_0xb10ea9['mapper']['unbindElementFromMarkerName'](_0x2405a6,_0x315837['markerName']));}},{'priority':'high'});}),_0x3b5572['conversion']['for']('editingDowncast')['add'](_0x4b0f32=>{_0x4b0f32['on']('removeMarker:suggestion:attribute',(_0x12958b,_0x1d2861,_0x18711a)=>{const _0x4d0f6b=_0x18711a['mapper']['markerNameToElements'](_0x1d2861['markerName']);if(!_0x4d0f6b)return;const {id:_0x976a3e}=this['_splitMarkerName'](_0x1d2861['markerName']),_0x5ec4fe=this['_suggestions']['get'](_0x976a3e),_0x4f2392=this['_getAttributeKey'](_0x5ec4fe);if(this['_isBlockAttribute'](_0x4f2392)){for(const _0x2b19bd of _0x4d0f6b)_0x2b19bd['getCustomProperty']('addHighlight')||(_0x18711a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2b19bd),_0x18711a['writer']['removeAttribute']('data-suggestion',_0x2b19bd),_0x18711a['writer']['removeAttribute']('data-author-id',_0x2b19bd),_0x18711a['mapper']['unbindElementFromMarkerName'](_0x2b19bd,_0x1d2861['markerName']));}},{'priority':'high'});}),_0x3b5572['model']['document']['registerPostFixer'](_0x1fa6a4=>{let _0x1d445e=!0x1;const _0x357dec=Array['from'](_0x3b5572['model']['document']['differ']['getChangedMarkers']()),_0x3a3658=new Set();for(const {name:_0x2f00bf,data:_0x34cbb1}of _0x357dec){const {group:_0x33777b,type:_0x32ec15,subType:_0x2f0083,id:_0x2d7a4f}=this['_splitMarkerName'](_0x2f00bf);if('suggestion'!==_0x33777b)continue;const _0x41d4e8=this['_suggestions']['get'](_0x2d7a4f);if(null!=_0x34cbb1['newRange']){'formatInline'==_0x32ec15&&(_0x1d445e=_0x1d445e||Ut(_0x34cbb1['newRange'],_0x2f00bf,_0x1fa6a4,_0x3b5572['model']['schema']));const _0x42986a='attribute'==_0x32ec15&&this['_isBlockAttribute'](_0x2f0083['split']('|')[0x0]);if(_0x34cbb1['newRange']['isCollapsed']||'$graveyard'==_0x34cbb1['newRange']['root']['rootName']||'formatBlock'==_0x32ec15&&!Ft(_0x34cbb1['newRange'])||_0x42986a&&!Ft(_0x34cbb1['newRange'])||'deletion'==_0x32ec15&&!(!Vt(_0x2df491=_0x34cbb1['newRange'])&&!function(_0x133d5a){return _0x133d5a['start']['parent']==_0x133d5a['end']['nodeBefore']&&_0x133d5a['start']['isAtEnd'];}(_0x2df491)))_0x1fa6a4['removeMarker'](_0x2f00bf),_0x1d445e=!0x0;else{if(!_0x41d4e8||!_0x41d4e8['isInContent'])continue;if(_0x34cbb1['newRange']&&_0x34cbb1['oldRange']&&_0x34cbb1['newRange']['isEqual'](_0x34cbb1['oldRange']))continue;_0x3a3658['add'](_0x41d4e8);}}}var _0x2df491;return _0x3a3658['size']>0x0&&(_0x1d445e=!!this['_joinWithAdjacentSuggestions'](_0x3a3658)||_0x1d445e),_0x1d445e;}),_0x3b5572['model']['document']['registerPostFixer'](_0x301a6e=>{let _0x332523=!0x1;for(const _0x5c7528 of _0x3b5572['model']['document']['differ']['getChanges']())if('insert'==_0x5c7528['type'])for(const _0x269d5f of this['_suggestions']['values']()){if(_0x269d5f['isMultiRange']||!_0x269d5f['isInContent'])continue;const _0x466f3c='formatBlock'==_0x269d5f['type'],_0x241cd9=this['_getAttributeKey'](_0x269d5f),_0x116d97=_0x241cd9&&this['_isBlockAttribute'](_0x241cd9);if(!_0x466f3c&&!_0x116d97)continue;const _0x7717=_0x269d5f['getFirstRange']();if(_0x7717['start']['parent']!=_0x7717['end']['parent']&&!_0x7717['end']['isAtEnd']){const _0x351fc7=_0x3b5572['model']['createPositionAt'](_0x7717['start']['nodeAfter'],'end'),_0x5130ff=_0x3b5572['model']['createRange'](_0x7717['start'],_0x351fc7);_0x301a6e['updateMarker'](_0x269d5f['getFirstMarker'](),{'range':_0x5130ff}),_0x332523=!0x0;}}return _0x332523;}),_0x3b5572['model']['document']['registerPostFixer'](_0x14b41b=>this['_processAttributeChanges'](_0x14b41b)),_0x3b5572['model']['document']['registerPostFixer'](_0x9bba77=>!_0x9bba77['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x9bba77)),_0x3b5572['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3b5572['model']['document']['on']('change:data',(_0x801546,_0x395a02)=>{if(!_0x395a02['isLocal']||_0x395a02['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x511ab6=_0x3b5572['model']['document']['differ']['getChanges']();if(0x0==_0x511ab6['length'])return;const _0x20cb46=[],_0x146192=_0x511ab6['filter'](_0x2604d5=>'attribute'==_0x2604d5['type']),_0x35d738=_0x511ab6['filter'](_0x2260d7=>'insert'==_0x2260d7['type']&&'$text'!=_0x2260d7['name']);for(const _0x4a9926 of _0x146192)this['_isRegisteredAttribute'](_0x4a9926['attributeKey'])&&_0x20cb46['push']({'key':_0x4a9926['attributeKey'],'newValue':_0x4a9926['attributeNewValue'],'oldValue':_0x4a9926['attributeOldValue'],'range':Pt(_0x4a9926['range'],_0x3b5572['model'])});for(const _0x39994c of _0x35d738){if('rename'!=_0x39994c['action']&&'refresh'!=_0x39994c['action'])continue;const _0x9587c0=Lt(_0x39994c['position']['nodeAfter'],_0x3b5572['model']),_0xe67bc5=_0x39994c['before'];'rename'==_0x39994c['action']&&_0x20cb46['push']({'key':m,'newValue':_0x39994c['name'],'oldValue':_0xe67bc5['name'],'range':_0x9587c0});for(const [_0x1da25d,_0x979876]of _0xe67bc5['attributes']){if(!this['_isRegisteredAttribute'](_0x1da25d))continue;const _0x50521e=_0x39994c['attributes']['get'](_0x1da25d);_0x979876!==_0x50521e&&_0x20cb46['push']({'key':_0x1da25d,'newValue':_0x50521e,'oldValue':_0x979876,'range':_0x9587c0});}for(const [_0x1afd7d,_0x1e09e7]of _0x39994c['attributes'])this['_isRegisteredAttribute'](_0x1afd7d)&&(_0xe67bc5['attributes']['has'](_0x1afd7d)||_0x20cb46['push']({'key':_0x1afd7d,'newValue':_0x1e09e7,'oldValue':null,'range':_0x9587c0}));}0x0!=_0x20cb46['length']&&_0x3b5572['model']['enqueueChange'](_0x395a02,_0x11654a=>{const _0x1cef45=_0x26aa04();for(const {range:_0x18ef14,key:_0x27d8a9,oldValue:_0x4c9fbd,newValue:_0x3c2ed2}of _0x20cb46)this['markAttributeChange'](_0x18ef14,_0x27d8a9,_0x4c9fbd,_0x3c2ed2,{'groupId':_0x1cef45});this['_reduceExistingSuggestions'](_0x11654a,_0x20cb46);});},{'priority':'lowest'}),_0x3b5572['model']['markers']['on']('update:suggestion',(_0x22695c,_0x8b8cfa,_0x50509a)=>{if(null==_0x50509a){const {id:_0x217fac}=this['_splitMarkerName'](_0x8b8cfa['name']),_0x212b2c=this['_suggestions']['get'](_0x217fac);_0x212b2c&&_0x212b2c['addMarkerName'](_0x8b8cfa['name']);}}),_0x3b5572['model']['document']['on']('change:data',()=>{const _0x5e4af7=Array['from'](_0x3b5572['model']['document']['differ']['getChangedMarkers']())['filter'](_0x9aadd7=>'suggestion'===this['_splitMarkerName'](_0x9aadd7['name'])['group']);if(0x0===_0x5e4af7['length'])return;_0x5e4af7['sort']((_0x98614b,_0x58a63d)=>{const _0x45429e=_0x98614b['data']['oldRange'],_0x3a61e8=_0x58a63d['data']['oldRange'];return null===_0x45429e&&null===_0x3a61e8?0x0:null===_0x45429e&&null!==_0x3a61e8?-0x1:null!==_0x45429e&&null===_0x3a61e8?0x1:_0x45429e['start']['isBefore'](_0x3a61e8['start'])?-0x1:0x1;});const _0x5d6aa1=new Set(),_0x34ecce=new Set();for(const {name:_0x376d38,data:_0x11d948}of _0x5e4af7){const {id:_0x6f85f2}=this['_splitMarkerName'](_0x376d38);if(null===_0x11d948['oldRange']){const _0x2ac20a=this['_handleNewSuggestionMarker'](_0x376d38);_0x34ecce['add'](_0x2ac20a);}else{const _0x26d4b9=this['_suggestions']['get'](_0x6f85f2);null!==_0x11d948['newRange']||_0x26d4b9['isInContent']?(_0x5d6aa1['add'](_0x26d4b9['head']),_0x34ecce['add'](_0x26d4b9)):this['_removeSuggestion'](_0x26d4b9);}}_0x34ecce['size']>0x0&&this['_refreshSuggestionsChain'](_0x34ecce);for(const _0x1b09d7 of _0x5d6aa1)this['fire']('suggestionChanged',_0x1b09d7);}),_0x3b5572['model']['on']('applyOperation',(_0xe2f2e5,_0x3070f3)=>{const _0x17c44a=_0x3070f3[0x0];if(!this['_suggestions']['size'])return;if(!_0x17c44a['isDocumentOperation'])return;if(_0x17c44a['batch']['isUndo']||!_0x17c44a['batch']['isLocal'])return;let _0x283db9,_0x42db46;switch(_0x17c44a['type']){case'insert':_0x283db9=_0x3b5572['model']['createPositionAt'](_0x17c44a['position']),_0x42db46=_0x283db9['getShiftedBy'](_0x17c44a['howMany']);break;case'split':_0x283db9=_0x3b5572['model']['createPositionAt'](_0x17c44a['splitPosition']),_0x42db46=_0x3b5572['model']['createPositionAt'](_0x17c44a['moveTargetPosition']);break;case'move':_0x283db9=_0x3b5572['model']['createPositionAt'](_0x17c44a['targetPosition']),_0x42db46=_0x283db9['getShiftedBy'](_0x17c44a['howMany']);break;default:return;}const _0x1498ec=_0x3b5572['model']['createRange'](_0x283db9,_0x42db46);_0x3b5572['model']['change'](()=>{for(const {suggestion:_0x21b4ab,meta:_0x2ffbb1}of this['_findSuggestions'](_0x1498ec)){if(_0x21b4ab['isMultiRange'])continue;if('formatInline'==_0x21b4ab['type'])continue;const _0x4dc728=this['_getAttributeKey'](_0x21b4ab);if(_0x4dc728&&this['_isBlockAttribute'](_0x4dc728)&&'split'!=_0x17c44a['type'])continue;const _0x3c7daf=_0x21b4ab['data']&&_0x21b4ab['data']['multipleBlocks'];('formatBlock'!=_0x21b4ab['type']||'split'==_0x17c44a['type']&&!_0x3c7daf)&&(_0x2ffbb1['containsRangeInObject']||'insertion'==_0x21b4ab['type']&&_0x2ffbb1['isOwn']||_0x21b4ab['getFirstRange']()['containsRange'](_0x1498ec)&&this['_breakSuggestionMarker'](_0x21b4ab,_0x283db9,_0x42db46));}});},{'priority':'lowest'}),_0x3b5572['model']['on']('deleteContent',(_0x928beb,_0x35b7d0)=>{const _0x4573af=_0x35b7d0[0x0],_0x4484df=_0x35b7d0[0x1];if(_0x4484df&&_0x4484df['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4573af['isCollapsed'])return;const _0x2e48e3=_0x3b5572['model']['schema'],{start:_0x53820b,end:_0x5bc6ae}=_0x4573af['getFirstRange'](),_0x3fcb56=_0x53820b['nodeAfter']&&_0x2e48e3['isLimit'](_0x53820b['nodeAfter'])?null:_0x2e48e3['getNearestSelectionRange'](_0x53820b,'forward'),_0x2d3306=_0x5bc6ae['nodeBefore']&&_0x2e48e3['isLimit'](_0x5bc6ae['nodeBefore'])?null:_0x2e48e3['getNearestSelectionRange'](_0x5bc6ae,'backward'),_0x1be1bd=_0x3b5572['model']['createRange'](_0x3fcb56?_0x3fcb56['start']:_0x53820b,_0x2d3306?_0x2d3306['end']:_0x5bc6ae);_0x3b5572['model']['change'](_0x4b438f=>{this['markDeletion'](_0x1be1bd);const _0x1913fe=_0x3b5572['model']['schema']['getNearestSelectionRange'](_0x1be1bd['start']);_0x4573af['is']('documentSelection')?_0x4b438f['setSelection'](_0x1913fe):_0x4573af['setTo'](_0x1913fe);}),_0x928beb['stop']();},{'priority':_0x1757e7['normal']+0xa}),_0x3b5572['model']['on']('insertContent',(_0x23ec83,_0x3aa051)=>{const _0x308dce=_0x3aa051[_0x3aa051['length']-0x1];_0x308dce&&_0x308dce['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3b5572['model']['change'](()=>{let _0x1caa03=_0x3b5572['model']['insertContent'](_0x3aa051[0x0],_0x3aa051[0x1],_0x3aa051[0x2],{'forceDefaultExecution':!0x0});if(!_0x1caa03)return;_0x23ec83['return']=_0x1caa03['clone']();const _0x539774=_0x1caa03['end']['nodeBefore'],_0x1ad28e=_0x3b5572['model']['schema'];_0x539774&&_0x1ad28e['isBlock'](_0x539774)&&!_0x1ad28e['isObject'](_0x539774)&&(_0x1caa03=_0x3b5572['model']['createRange'](_0x1caa03['start'],_0x3b5572['model']['createPositionAt'](_0x539774,'end'))),this['markInsertion'](_0x1caa03);}),_0x23ec83['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x28b309=new x(_0x3b5572,this['_suggestions']);_0x3b5572['commands']['add']('acceptSuggestion',_0x28b309),this['enableCommand']('acceptSuggestion');const _0x40434c=new R(_0x3b5572,this['_suggestions']);_0x3b5572['commands']['add']('discardSuggestion',_0x40434c),this['enableCommand']('discardSuggestion'),_0x3b5572['commands']['add']('acceptAllSuggestions',new E(_0x3b5572,_0x28b309,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3b5572['commands']['add']('discardAllSuggestions',new E(_0x3b5572,_0x40434c,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3b5572['commands']['add']('acceptSelectedSuggestions',new O(_0x3b5572,_0x28b309,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3b5572['commands']['add']('discardSelectedSuggestions',new O(_0x3b5572,_0x40434c,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a70c4=_0x3b5572['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a70c4,'addComment',(_0x5c6ee0,{threadId:_0xd9531d})=>{const _0x3fa968=this['_suggestions']['get'](_0xd9531d);_0x3fa968&&_0x3fa968['commentThread']&&0x1===_0x3fa968['commentThread']['length']&&this['_updateSuggestionData'](_0xd9531d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a70c4,'removeComment',(_0x3a3049,{threadId:_0x3712e9})=>{const _0x375e33=this['_suggestions']['get'](_0x3712e9);_0x375e33&&_0x375e33['commentThread']&&!_0x375e33['commentThread']['length']&&this['_updateSuggestionData'](_0x3712e9,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5e6d0a){if(this['_adapter'])throw new _0x551961('track-changes-adapter-already-set',this);this['_adapter']=_0x5e6d0a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1de782=!0x1,toJSON:_0x1abbe7=!0x1}={}){const _0x2440ef=[];for(const _0x3ca90d of this['_suggestions']['values']())_0x1de782&&!_0x3ca90d['isInContent']||_0x2440ef['push'](_0x3ca90d);return _0x1abbe7?_0x2440ef['map'](_0x1aa99e=>_0x1aa99e['toJSON']()):_0x2440ef;}['getSuggestion'](_0x3e3241){const _0x459ed0=this['_suggestions']['get'](_0x3e3241);if(!_0x459ed0)throw new _0x551961('track-changes-suggestion-not-found',this);return _0x459ed0;}['hasSuggestion'](_0x2bee9b){return this['_suggestions']['has'](_0x2bee9b);}['addSuggestionData'](_0x3f7f3c){const {authorId:_0x397a6d,id:_0xb4c28a,attributes:_0x2194ae}=_0x3f7f3c,[_0x3307c1,_0x10059b]=_0x3f7f3c['type']['split'](':'),_0x41fa90=this['_suggestions']['get'](_0xb4c28a)||this['_createSuggestion'](_0x3307c1,_0x10059b,_0xb4c28a,_0x397a6d,_0x2194ae);if(this['_addThreadToSuggestion'](_0x41fa90),this['_checkSuggestionCorrectness'](_0x41fa90,_0x3307c1,_0x10059b||null,_0x397a6d),_0x41fa90['createdAt']=_0x3f7f3c['createdAt'],_0x41fa90['_isDataLoaded']=!0x0,_0x2194ae&&_0x2194ae['@external']){const _0x121004=_0x2194ae['@external'],_0x10f755=this['_getExternalAuthor'](_0x121004['authorName']);_0x41fa90['authoredAt']=_0x121004['createdAt'],_0x41fa90['author']=_0x10f755,_0x41fa90['isExternal']=!0x0;}else _0x41fa90['authoredAt']=_0x3f7f3c['createdAt'];switch(_0x3f7f3c['data']&&(_0x41fa90['data']=_0x3f7f3c['data']),_0x3f7f3c['attributes']&&(_0x41fa90['attributes']=_0x3f7f3c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x41fa90['_saved']=!0x0),this['_suggestionState']['get'](_0x41fa90)){case'notReady':this['_suggestionState']['set'](_0x41fa90,'dataReady');break;case'markerReady':_0x41fa90['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x41fa90])),this['_refreshSuggestionsChain'](new Set([_0x41fa90])),this['_suggestionState']['set'](_0x41fa90,'ready'),this['fire']('suggestionLoaded',_0x41fa90)):this['_suggestionState']['set'](_0x41fa90,'removed');}return _0x41fa90;}['acceptSuggestion'](_0x3ba083){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x10d1a4 of _0x3ba083['getAllAdjacentSuggestions']())_0x10d1a4['accept']();});});}['discardSuggestion'](_0x13f0cd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x38033d of _0x13f0cd['getAllAdjacentSuggestions']())_0x38033d['discard']();});});}['enableCommand'](_0x1e56bf,_0xd18137){const _0x386462=this['editor']['commands']['get'](_0x1e56bf);if(!_0x386462)throw new _0x551961('track-changes-command-not-found',this,{'commandName':_0x1e56bf});if(this['_enabledCommands']['has'](_0x386462))throw new _0x551961('track-changes-enable-command-twice',this,{'commandName':_0x1e56bf});this['_enabledCommands']['add'](_0x386462),_0xd18137&&_0x386462['on']('execute',(_0x512eca,_0x16a46b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x16a46b['length']>0x0&&_0x16a46b[_0x16a46b['length']-0x1]&&_0x16a46b[_0x16a46b['length']-0x1]['forceDefaultExecution']?_0x16a46b['pop']():(_0x512eca['return']=_0xd18137((..._0x979b1c)=>_0x386462['execute'](..._0x979b1c,{'forceDefaultExecution':!0x0}),..._0x16a46b),_0x512eca['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x564b78){let _0x12376a,_0x2bf01b;const _0x37ae14=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x12376a=_0x564b78();}catch(_0x4ae664){_0x2bf01b=_0x4ae664;}return _0x37ae14||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2bf01b&&_0x551961['rethrowUnexpectedError'](_0x2bf01b,this),_0x12376a;}['markInsertion'](_0xb4e959,_0x39392d=null,_0x1d4ab7={}){if(_0xb4e959['isCollapsed'])return null;const _0x350f89=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x36d3ac,meta:_0x3b122a}of this['_findSuggestions'](_0xb4e959,'insertion'))if(_0x3b122a['isOwn']){if(!_0x3b122a['isNextTo']){if(_0x3b122a['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x36d3ac,_0x1d4ab7))continue;return _0x36d3ac;}if(qt(_0x36d3ac,_0x1d4ab7))return _0x36d3ac;this['_breakSuggestionMarker'](_0x36d3ac,_0xb4e959['start'],_0xb4e959['end']);break;}if(_0x39392d==_0x36d3ac['subType']&&qt(_0x36d3ac,_0x1d4ab7)){const _0x330296=_0x36d3ac['getFirstRange']();return _0x330296['start']['isEqual'](_0xb4e959['end'])?this['_setSuggestionRange'](_0x36d3ac,this['_model']['createRange'](_0xb4e959['start'],_0x330296['end'])):this['_setSuggestionRange'](_0x36d3ac,this['_model']['createRange'](_0x330296['start'],_0xb4e959['end'])),_0x36d3ac;}}const _0x55ba24=_0x26aa04(),_0x1c7af0=_0x350f89['id'],_0x5bc9e6=_0x39392d?'insertion:'+_0x39392d:'insertion',_0x4123df=this['_setSuggestionData']({'id':_0x55ba24,'type':_0x5bc9e6,'createdAt':new Date(),'authorId':_0x1c7af0,'attributes':_0x1d4ab7});return this['_addSuggestionMarker'](_0x5bc9e6,_0x55ba24,_0x1c7af0,_0xb4e959),_0x4123df;}['markMultiRangeInsertion'](_0x151fe2,_0x1370c2='multi',_0x5efdc3={}){const _0x1621bc=this['editor']['plugins']['get']('Users')['me'],_0x508cf3=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1370c2,'join');for(const _0x34e710 of this['getSuggestions']())if(_0x34e710['author']['id']==_0x1621bc['id']&&'insertion'==_0x34e710['type']&&_0x34e710['subType']==_0x1370c2&&qt(_0x34e710,_0x5efdc3)&&(_0x508cf3(_0x34e710['getRanges'](),_0x151fe2)||_0x508cf3(_0x151fe2,_0x34e710['getRanges']()))){for(const _0x2ffbf3 of _0x151fe2)_0x34e710['addRange'](_0x2ffbf3);return _0x34e710;}for(const {suggestion:_0x183c5e,meta:_0x24fa57}of this['_findSuggestions'](_0x151fe2,'insertion')){if(!_0x24fa57['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x24fa57['containsRangeInObject'])continue;if(!qt(_0x183c5e,_0x5efdc3))continue;let _0x12a2f5=!0x0;for(const _0x3133aa of _0x183c5e['getRanges']())for(const _0x4bd03e of _0x151fe2)if(!_0x3133aa['containsRange'](_0x4bd03e)){_0x12a2f5=!0x1;break;}if(_0x12a2f5)return _0x183c5e;}const _0x1efdc0=_0x26aa04(),_0x116d8f=_0x1621bc['id'],_0x25dec7='insertion:'+_0x1370c2,_0x3d751e=this['_setSuggestionData']({'id':_0x1efdc0,'type':_0x25dec7,'createdAt':new Date(),'authorId':_0x116d8f,'attributes':_0x5efdc3});for(const _0x9e2ad8 of _0x151fe2)this['_addSuggestionMarker'](_0x25dec7,_0x1efdc0,_0x116d8f,_0x9e2ad8,u['getMultiRangeId']());return _0x3d751e;}['markInlineFormat'](_0x2290a5,_0x3f903a,_0x21c5d0=null,_0x5b09e2={}){if(_0x21c5d0=_0x21c5d0||Gt(_0x3f903a),_0x2290a5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x869de7=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21c5d0,'accept');return this['forceDefaultExecution'](()=>_0x869de7([_0x2290a5],_0x3f903a,_0x5b09e2)),null;}const _0xe7df0d=this['editor']['plugins']['get']('Users')['me'],_0x289496=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5c9db2,meta:_0x537ef1}of this['_findSuggestions'](_0x2290a5,'insertion'))_0x537ef1['isOwn']&&!_0x537ef1['isInsideObject']&&_0x289496['push'](..._0x5c9db2['getRanges']());}const _0x2923cf=function(_0x3ed23c,_0x182e3b){const _0xbd093e=[];for(const _0x33fb48 of _0x182e3b){const _0x3eb105=_0x3ed23c['getIntersection'](_0x33fb48);_0x3eb105&&_0xbd093e['push'](_0x3eb105);}return _0xbd093e;}(_0x2290a5,_0x289496),_0x2d7701=function(_0xa100fa,_0x3f1bdc){const _0x5b3785=[_0xa100fa];for(const _0xb7ab39 of _0x3f1bdc){let _0x37aa65=0x0;for(;_0x37aa65<_0x5b3785['length'];){const _0xc08762=_0x5b3785[_0x37aa65]['getDifference'](_0xb7ab39);_0x5b3785['splice'](_0x37aa65,0x1,..._0xc08762),_0x37aa65+=_0xc08762['length'];}}return _0x5b3785;}(_0x2290a5,_0x289496);_0x2923cf['length']&&this['_model']['change'](()=>{for(const _0x92c0ce of _0x2923cf){const _0x5be14c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x21c5d0,'accept');this['forceDefaultExecution'](()=>_0x5be14c([_0x92c0ce],_0x3f903a,_0x5b09e2));}});for(const _0x259655 of _0x2d7701){let _0x2fd194=null,_0x5a2612=_0x259655['start'],_0x3e4ee3=_0x259655['end'];for(const {suggestion:_0xd9220d,meta:_0x4d0b99}of this['_findSuggestions'](_0x259655,'formatInline')){if(!_0x4d0b99['isOwn'])continue;if(_0xd9220d['subType']!=_0x21c5d0)continue;if(!qt(_0xd9220d,_0x5b09e2))continue;const _0x3d9a17=_0xd9220d['getFirstRange']();if(_0x3d9a17['containsRange'](_0x259655,!0x0))return null;_0x5a2612=_0x5a2612['isBefore'](_0x3d9a17['start'])?_0x5a2612:_0x3d9a17['start'],_0x3e4ee3=_0x3e4ee3['isAfter'](_0x3d9a17['end'])?_0x3e4ee3:_0x3d9a17['end'],_0x2fd194?_0x3d9a17['start']['isBefore'](_0x2fd194['getFirstRange']()['start'])?(_0x2fd194['removeMarkers'](),_0x2fd194=_0xd9220d):_0xd9220d['removeMarkers']():_0x2fd194=_0xd9220d;}const _0xd7267c=this['_model']['createRange'](_0x5a2612,_0x3e4ee3);if(_0x2fd194)this['_setSuggestionRange'](_0x2fd194,_0xd7267c);else{const _0x9257b5=_0x26aa04(),_0x22802d=_0xe7df0d['id'];this['_setSuggestionData']({'id':_0x9257b5,'type':'formatInline:'+_0x21c5d0,'data':_0x3f903a,'createdAt':new Date(),'authorId':_0x22802d,'attributes':_0x5b09e2}),this['_addSuggestionMarker']('formatInline:'+_0x21c5d0,_0x9257b5,_0x22802d,_0xd7267c);}}return null;}['markBlockFormat'](_0x21424d,_0x468a68,_0x47b1a9=[],_0xf3ba1a=null,_0x26fc47={}){_0x468a68['formatGroupId']||(_0x468a68['formatGroupId']=_0x468a68['commandName']),_0x468a68['multipleBlocks']=_0x21424d['is']('range'),_0xf3ba1a=_0xf3ba1a||Gt(_0x468a68);const _0x153e42=_0x47b1a9['map'](_0xc21ffb=>Lt(_0xc21ffb,this['_model'])),_0x450ea6=_0x21424d['is']('range')?_0x21424d:Lt(_0x21424d,this['_model']);if('never'===this['_trackFormatChanges']){const _0x7f7088=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3ba1a,'accept');return this['forceDefaultExecution'](()=>_0x7f7088([_0x450ea6],_0x468a68,_0x26fc47)),null;}_0x153e42['push'](_0x450ea6);let _0x30d659=!0x0;for(const _0x1c84ac of _0x153e42)if(!this['_rangeIsInLocalUserInsertion'](_0x1c84ac)){_0x30d659=!0x1;break;}if(_0x30d659&&'always'!==this['_trackFormatChanges']){const _0x4e378b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xf3ba1a,'accept');return this['forceDefaultExecution'](()=>_0x4e378b([_0x450ea6],_0x468a68,_0x26fc47)),null;}let _0x20ced2=null,_0x5ca4c7=_0x450ea6['start'],_0x17b03f=_0x450ea6['end'];for(const {suggestion:_0x944ff7,meta:_0xa0cdd9}of this['_findSuggestions'](_0x450ea6,'formatBlock')){if(!_0xa0cdd9['isOwn'])continue;if(_0xa0cdd9['isNextTo']||_0xa0cdd9['containsRangeInObject']||_0xa0cdd9['isInsideObject'])continue;if(_0x944ff7['data']['formatGroupId']!=_0x468a68['formatGroupId'])continue;if(!qt(_0x944ff7,_0x26fc47))continue;const _0x55bd6d=_0x944ff7['getFirstRange']();if(_0x944ff7['subType']==_0xf3ba1a){if(_0x55bd6d['containsRange'](_0x450ea6,!0x0))return null;_0x5ca4c7=_0x5ca4c7['isBefore'](_0x55bd6d['start'])?_0x5ca4c7:_0x55bd6d['start'],_0x17b03f=_0x17b03f['isAfter'](_0x55bd6d['end'])?_0x17b03f:_0x55bd6d['end'],_0x20ced2?_0x55bd6d['start']['isBefore'](_0x20ced2['getFirstRange']()['start'])?(_0x20ced2['removeMarkers'](),_0x20ced2=_0x944ff7):_0x944ff7['removeMarkers']():_0x20ced2=_0x944ff7;}else{const _0x2b8710=_0x450ea6['getIntersection'](_0x55bd6d);this['_cutOutSuggestionMarker'](_0x944ff7,_0x2b8710);}}const _0x35a65d=this['editor']['plugins']['get']('Users')['me'],_0x2c6c51=_0x26aa04(),_0x3ed4e7=_0x35a65d['id'];if(_0x20ced2)return this['_setSuggestionRange'](_0x20ced2,this['_model']['createRange'](_0x5ca4c7,_0x17b03f)),_0x20ced2;{const _0x37a0f6=this['_setSuggestionData']({'id':_0x2c6c51,'type':'formatBlock:'+_0xf3ba1a,'data':_0x468a68,'createdAt':new Date(),'authorId':_0x3ed4e7,'attributes':_0x26fc47});return this['_addSuggestionMarker']('formatBlock:'+_0xf3ba1a,_0x2c6c51,_0x3ed4e7,this['_model']['createRange'](_0x5ca4c7,_0x17b03f)),_0x37a0f6;}}['markMultiRangeBlockFormat'](_0x4a2d53,_0x1e30b1,_0x177ae7=[],_0x43f400=null,_0x58d692={}){_0x1e30b1['formatGroupId']||(_0x1e30b1['formatGroupId']=_0x1e30b1['commandName']);const _0x4f3161=_0x4a2d53[0x0];_0x1e30b1['multipleBlocks']=_0x4f3161['is']('range'),_0x43f400=_0x43f400||Gt(_0x1e30b1);const _0x5d4154=_0x177ae7['map'](_0x8cfee3=>Lt(_0x8cfee3,this['_model'])),_0x50ff48=_0x4f3161['is']('range')?_0x4a2d53:_0x4a2d53['map'](_0x332e68=>Lt(_0x332e68,this['_model']));if('never'===this['_trackFormatChanges']){const _0x505b8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43f400,'accept');return this['forceDefaultExecution'](()=>_0x505b8f(_0x50ff48,_0x1e30b1,_0x58d692)),null;}_0x5d4154['push'](..._0x50ff48);let _0x6c8567=!0x0;for(const _0x23fa50 of _0x5d4154)if(!this['_rangeIsInLocalUserInsertion'](_0x23fa50)){_0x6c8567=!0x1;break;}if(_0x6c8567&&'always'!==this['_trackFormatChanges']){const _0x43061b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43f400,'accept');return this['forceDefaultExecution'](()=>_0x43061b(_0x50ff48,_0x1e30b1,_0x58d692)),null;}const _0x2cfd2f=this['editor']['plugins']['get']('Users')['me'];for(const _0x12a509 of this['getSuggestions']()){if(_0x12a509['author']['id']!=_0x2cfd2f['id'])continue;if('formatBlock'!=_0x12a509['type']||_0x12a509['data']['formatGroupId']!=_0x1e30b1['formatGroupId'])continue;if(!qt(_0x12a509,_0x58d692))continue;const _0x2838d8=_0x12a509['subType']==_0x43f400;for(let _0x2e4cf0=0x0;_0x2e4cf0<_0x50ff48['length'];_0x2e4cf0++){const _0x49635a=_0x50ff48[_0x2e4cf0];for(const _0x15fe6d of _0x12a509['getMarkers']()){const _0x183e02=_0x15fe6d['getRange']();if(_0x49635a['isEqual'](_0x183e02)){_0x2838d8?(_0x50ff48['splice'](_0x2e4cf0,0x1),_0x2e4cf0--):_0x12a509['removeMarker'](_0x15fe6d['name']);break;}}}}if(0x0==_0x50ff48['length'])return null;const _0x2b547e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x43f400,'join');for(const _0xfaacf0 of this['getSuggestions']())if(_0xfaacf0['author']['id']==_0x2cfd2f['id']&&'formatBlock'==_0xfaacf0['type']&&_0xfaacf0['data']['formatGroupId']==_0x1e30b1['formatGroupId']&&_0xfaacf0['subType']==_0x43f400&&qt(_0xfaacf0,_0x58d692)&&(_0x2b547e(_0xfaacf0['getRanges'](),_0x50ff48)||_0x2b547e(_0x50ff48,_0xfaacf0['getRanges']()))){for(const _0x19771b of _0x50ff48)_0xfaacf0['addRange'](_0x19771b);return _0xfaacf0;}const _0x4aa070=_0x26aa04(),_0x12dcd7=_0x2cfd2f['id'],_0x1db1d3='formatBlock:'+_0x43f400,_0x47e15a=this['_setSuggestionData']({'id':_0x4aa070,'type':_0x1db1d3,'data':_0x1e30b1,'createdAt':new Date(),'authorId':_0x12dcd7,'attributes':_0x58d692});for(const _0x37db74 of _0x50ff48)this['_addSuggestionMarker'](_0x1db1d3,_0x4aa070,_0x12dcd7,_0x37db74,u['getMultiRangeId']());return _0x47e15a;}['markDeletion'](_0x18a509,_0x58919d=null,_0x164819={}){if(_0x18a509['isCollapsed'])return null;const _0x29a3d2=this['editor']['plugins']['get']('Users')['me'],_0x436cc5=new _0xb95ac7(_0x18a509['start'],_0x18a509['end']);for(const {suggestion:_0x93f703,meta:_0x1e4ab4}of this['_findSuggestions'](_0x436cc5,'insertion'))if(_0x1e4ab4['isOwn']&&!_0x1e4ab4['isNextTo']){if(_0x93f703['isMultiRange']){const _0x381e82=_0x93f703['getRanges']()['filter'](_0x299bda=>'$graveyard'!=_0x299bda['root']['rootName']);_0x381e82['every'](_0xd9cf1b=>_0x436cc5['containsRange'](_0xd9cf1b,!0x0))&&_0x93f703['discard']();if(_0x381e82['some'](_0x5b1ce8=>_0x5b1ce8['containsRange'](_0x436cc5,!0x0))){const _0x2b6737=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x58919d,'accept');return this['forceDefaultExecution'](()=>_0x2b6737([_0x436cc5],null,_0x164819)),null;}}else{const _0x1ce0e7=_0x436cc5['getIntersection'](_0x93f703['getFirstRange']());null!==_0x1ce0e7&&_0x93f703['_onDiscard']([_0x1ce0e7],null,_0x164819);}}if(_0x436cc5['detach'](),_0x436cc5['isCollapsed']||'$graveyard'==_0x436cc5['root']['rootName'])return null;let _0x4de081=null,_0x42bff8=_0x436cc5['start'],_0x5b306d=_0x436cc5['end'];const _0x269a01=this['_findSuggestions'](_0x436cc5,'deletion');for(const {suggestion:_0x5d2fde,meta:_0x47a5d2}of _0x269a01){const _0x1efe76=this['_model']['createRange'](_0x42bff8,_0x5b306d);if(_0x47a5d2['isOwn']&&(this['_mergeNestedSuggestions']||!_0x47a5d2['containsRangeInObject']&&!_0x47a5d2['isInsideObject'])){if(_0x5d2fde['isMultiRange']){if(!qt(_0x5d2fde,_0x164819))continue;let _0x253d15=!0x0;for(const _0x3e1c21 of _0x5d2fde['getRanges']()){if(_0x3e1c21['containsRange'](_0x1efe76,!0x0))return _0x5d2fde;_0x1efe76['containsRange'](_0x3e1c21)||(_0x253d15=!0x1);}_0x253d15&&_0x5d2fde['discard']();}else{const _0x3d369c=_0x5d2fde['getFirstRange']();if(_0x3d369c['containsRange'](_0x1efe76,!0x0))return _0x5d2fde;if(!qt(_0x5d2fde,_0x164819)){_0x1efe76['containsRange'](_0x3d369c)?_0x5d2fde['removeMarkers']():_0x3d369c['containsPosition'](_0x42bff8)?_0x42bff8=_0x3d369c['end']:_0x3d369c['containsPosition'](_0x5b306d)&&(_0x5b306d=_0x3d369c['start']);continue;}_0x42bff8=_0x42bff8['isBefore'](_0x3d369c['start'])?_0x42bff8:_0x3d369c['start'],_0x5b306d=_0x5b306d['isAfter'](_0x3d369c['end'])?_0x5b306d:_0x3d369c['end'],_0x164819=Object['assign']({},_0x5d2fde['attributes']),_0x4de081?_0x3d369c['start']['isBefore'](_0x4de081['getFirstRange']()['start'])?(_0x4de081['removeMarkers'](),_0x4de081=_0x5d2fde):_0x5d2fde['removeMarkers']():_0x4de081=_0x5d2fde;}}}if(_0x4de081)return this['_setSuggestionRange'](_0x4de081,this['_model']['createRange'](_0x42bff8,_0x5b306d)),_0x4de081;{const _0x7c2e2a=_0x26aa04(),_0x2538b9=this['_model']['createRange'](_0x42bff8,_0x5b306d),_0x527794=_0x29a3d2['id'],_0x396bbd=_0x58919d?'deletion:'+_0x58919d:'deletion',_0x50c13f=this['_setSuggestionData']({'id':_0x7c2e2a,'type':_0x396bbd,'createdAt':new Date(),'authorId':_0x527794,'attributes':_0x164819});return this['_addSuggestionMarker'](_0x396bbd,_0x7c2e2a,_0x527794,_0x2538b9),_0x50c13f;}}['markMultiRangeDeletion'](_0x5c06cb,_0x2d0d62='multi',_0x416a4b={}){const _0x15335d=this['editor']['plugins']['get']('Users')['me'],_0x45d9c2=_0x5c06cb['map'](_0x45a225=>new _0xb95ac7(_0x45a225['start'],_0x45a225['end'])),_0x5cd788=new Set();for(const {suggestion:_0x497013,meta:_0x448a08}of this['_findSuggestions'](_0x45d9c2,'insertion'))_0x448a08['isOwn']&&!_0x448a08['isNextTo']&&_0x5cd788['add'](_0x497013);for(const _0x32bea3 of _0x5cd788)if(_0x32bea3['isMultiRange']){const _0x54f448=_0x32bea3['getRanges']();(!_0x32bea3['attributes']||!_0x32bea3['attributes']['skipNestingCheck'])&&(_0x54f448['every'](_0x3c7a18=>_0x45d9c2['some'](_0x2af60c=>_0x2af60c['containsRange'](_0x3c7a18,!0x0)))&&_0x32bea3['discard']());if(_0x45d9c2['every'](_0x34ec9f=>_0x54f448['some'](_0x4d3d72=>_0x4d3d72['containsRange'](_0x34ec9f,!0x0)))){const _0x3228cf=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d0d62,'accept');return this['forceDefaultExecution'](()=>_0x3228cf(_0x5c06cb,null,_0x416a4b)),null;}}else{const _0xa179f8=_0x32bea3['getFirstRange']();_0x45d9c2['some'](_0x23dc1a=>_0x23dc1a['containsRange'](_0xa179f8,!0x0))&&_0x32bea3['discard']();if(_0x45d9c2['every'](_0x211d42=>_0xa179f8['containsRange'](_0x211d42,!0x0))){const _0x541f21=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d0d62,'accept');return this['forceDefaultExecution'](()=>_0x541f21(_0x45d9c2,null,_0x416a4b)),null;}}const _0x57a494=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x2d0d62,'join');let _0x3bb778=null;for(const _0x1ab89d of this['getSuggestions']())if(_0x1ab89d['author']['id']==_0x15335d['id']&&_0x1ab89d['isInContent']&&'deletion'==_0x1ab89d['type']&&_0x1ab89d['subType']==_0x2d0d62&&qt(_0x1ab89d,_0x416a4b)&&(_0x57a494(_0x1ab89d['getRanges'](),_0x45d9c2)||_0x57a494(_0x45d9c2,_0x1ab89d['getRanges']()))){if(_0x3bb778){if(_0x1ab89d['commentThread']&&_0x1ab89d['commentThread']['length'])continue;for(const _0x1fad3c of _0x1ab89d['getRanges']())_0x3bb778['isIntersectingWithRange'](_0x1fad3c)||_0x3bb778['addRange'](_0x1fad3c);_0x1ab89d['removeMarkers']();}else{_0x3bb778=_0x1ab89d;for(const _0x2886ca of _0x45d9c2)_0x1ab89d['isIntersectingWithRange'](_0x2886ca)||_0x1ab89d['addRange'](_0x2886ca);}}if(_0x3bb778)return _0x3bb778;_0x5cd788['clear']();for(const {suggestion:_0x4cb1d4,meta:_0x4d4c2a}of this['_findSuggestions'](_0x45d9c2,'deletion'))_0x4d4c2a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4d4c2a['containsRangeInObject']&&!_0x4d4c2a['isInsideObject'])&&qt(_0x4cb1d4,_0x416a4b)&&_0x5cd788['add'](_0x4cb1d4);for(const _0x8a293e of _0x5cd788){const _0x5bc461=_0x8a293e['getRanges']();if(!_0x416a4b||!_0x416a4b['skipNestingCheck']){if(_0x45d9c2['every'](_0x24e859=>_0x5bc461['some'](_0x59dc1d=>_0x59dc1d['containsRange'](_0x24e859,!0x0))))return _0x8a293e;}(!_0x8a293e['attributes']||!_0x8a293e['attributes']['skipNestingCheck'])&&(_0x5bc461['every'](_0x566758=>_0x45d9c2['some'](_0x395e3e=>_0x395e3e['containsRange'](_0x566758,!0x0)))&&_0x8a293e['discard']());}const _0x31e3ae=_0x26aa04(),_0x4b528c=_0x15335d['id'],_0x18fba1='deletion:'+_0x2d0d62,_0x154e37=this['_setSuggestionData']({'id':_0x31e3ae,'type':_0x18fba1,'createdAt':new Date(),'authorId':_0x4b528c,'attributes':_0x416a4b});for(const _0x2ff2f4 of _0x45d9c2)_0x2ff2f4['detach'](),_0x2ff2f4['isCollapsed']||'$graveyard'==_0x2ff2f4['root']['rootName']||this['_addSuggestionMarker'](_0x18fba1,_0x31e3ae,_0x4b528c,_0x2ff2f4,u['getMultiRangeId']());return _0x154e37;}['markAttributeChange'](_0x3e015c,_0x2ae3f6,_0x947dba,_0x378fbb,_0x434ddf){if(_0x3e015c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x42eef8=this['editor']['plugins']['get']('Users')['me']['id'],_0x19b2fd=Array['from'](this['_suggestions']['values']())['filter'](_0x35e9d5=>'attribute'==_0x35e9d5['type']&&_0x35e9d5['data']['key']==_0x2ae3f6&&_0x35e9d5['isIntersectingWithRange'](_0x3e015c));if('default'===this['_trackFormatChanges']){const _0x49bd33=this['_findSuggestions'](_0x3e015c,'insertion')['filter'](({meta:_0x625d77})=>_0x625d77['isOwn']&&!_0x625d77['isInsideObject']&&!_0x625d77['isNextTo'])['map'](({suggestion:_0x3c0eba})=>_0x3c0eba);_0x19b2fd['unshift'](..._0x49bd33);}const _0x5e39e0=new Map([[_0x3e015c,_0x947dba]]);for(const _0x36924e of _0x19b2fd){const _0x4ad023='attribute'==_0x36924e['type']?_0x36924e['data']['oldValue']:void 0x0,_0x1ca949=_0x36924e['getFirstRange'](),_0x27f20d=Array['from'](_0x5e39e0['keys']())['find'](_0x5ae98b=>_0x5ae98b['isIntersecting'](_0x1ca949));if(!_0x27f20d)continue;const _0x1cd2b2=_0x27f20d['getDifference'](_0x1ca949);this['_isBlockAttribute'](_0x2ae3f6)&&'insertion'==_0x36924e['type']&&0x0!=_0x1cd2b2['length']||(_0x5e39e0['delete'](_0x27f20d),_0x1cd2b2['forEach'](_0x2a04ac=>{_0x5e39e0['set'](_0x2a04ac,_0x947dba);}),'insertion'!=_0x36924e['type']&&_0x4ad023!=_0x378fbb&&_0x5e39e0['set'](_0x27f20d['getIntersection'](_0x1ca949),_0x4ad023));}const _0xba746=[];for(const [_0x420c2f,_0x1396b7]of _0x5e39e0){const _0x32397a=_0x26aa04(),_0x26e5ca={'key':_0x2ae3f6,'oldValue':_0x1396b7,'newValue':_0x378fbb};_0x2ae3f6['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':_0x2ae3f6});const _0x6eb85e=('attribute:'+(_0x2ae3f6+'|'+Gt({'newValue':_0x378fbb})))['substring'](0x0,0x3c),_0x34eed1=this['_setSuggestionData']({'id':_0x32397a,'type':_0x6eb85e,'data':_0x26e5ca,'createdAt':new Date(),'authorId':_0x42eef8,'attributes':_0x434ddf});_0xba746['push'](_0x34eed1),this['_addSuggestionMarker'](_0x6eb85e,_0x32397a,_0x42eef8,_0x420c2f);}return _0xba746;}['enableDefaultAttributesIntegration'](_0x50dce7){this['enableCommand'](_0x50dce7,(_0x2a2433,..._0x16c0b0)=>{this['_recordAttributeChanges'](()=>{_0x2a2433(..._0x16c0b0);});});}['registerBlockAttribute'](_0x14744c){this['_blockAttributeKeys']['add'](_0x14744c);}['registerInlineAttribute'](_0x480db3){this['_inlineAttributeKeys']['add'](_0x480db3);}['_getAttributeKey'](_0x30531c){return'attribute'==_0x30531c['type']?_0x30531c['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5de7f5,_0x1d2a95){const _0x28dfb7=_0x5de7f5['getFirstMarker']();this['_model']['change'](_0x333244=>{_0x333244['updateMarker'](_0x28dfb7,{'range':_0x1d2a95});});}['_addThreadToSuggestion'](_0x169d6a){const _0x5f5d6e=_0x169d6a['id'],_0x65a05a=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5f5d6e)||this['_commentsRepository']['addCommentThread']({'channelId':_0x65a05a,'threadId':_0x5f5d6e,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x41855a=this['_commentsRepository']['getCommentThread'](_0x5f5d6e);_0x41855a['unbind']('isRemovable'),_0x41855a['isRemovable']=!0x1,_0x169d6a['commentThread']=_0x41855a;}['_checkSuggestionCorrectness'](_0x3cae50,_0x3029ee,_0x548971,_0x27846b){if(_0x3cae50['type']!=_0x3029ee||_0x3cae50['subType']!=_0x548971||_0x3cae50['creator']['id']!=_0x27846b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x551961('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x382f53,_0x11537f){const _0x2d6b8b=_0x382f53['getFirstRange']();if(_0x11537f['isEqual'](_0x2d6b8b))_0x382f53['removeMarkers']();else{if(_0x2d6b8b['containsRange'](_0x11537f)){const _0x23ce34=this['_model']['createPositionAt'](_0x11537f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x382f53,this['_model']['createRange'](_0x2d6b8b['start'],_0x23ce34));const _0x15cf80=_0x26aa04(),_0x364782=_0x382f53['creator']['id'],_0x5519fa=_0x382f53['type']+':'+_0x382f53['subType'];this['_setSuggestionData']({'id':_0x15cf80,'type':_0x5519fa,'createdAt':new Date(),'authorId':_0x364782,'data':_0x382f53['data'],'attributes':_0x382f53['attributes']});const _0xad22ca=this['_model']['createPositionAt'](_0x11537f['end']['parent'],'after'),_0x20624a=this['_model']['createRange'](_0xad22ca,_0x2d6b8b['end']);this['_addSuggestionMarker'](_0x5519fa,_0x15cf80,_0x364782,_0x20624a);}else{if(_0x2d6b8b['containsPosition'](_0x11537f['start'])){const _0x5b0fe2=this['_model']['createPositionAt'](_0x11537f['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x382f53,this['_model']['createRange'](_0x2d6b8b['start'],_0x5b0fe2));}else{const _0xb37fa3=this['_model']['createPositionAt'](_0x11537f['end']['parent'],'after');this['_setSuggestionRange'](_0x382f53,this['_model']['createRange'](_0xb37fa3,_0x2d6b8b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x153763){for(const {suggestion:_0xf79402,meta:_0x3bff56}of this['_findSuggestions'](_0x153763,'insertion')){if(!_0x3bff56['isOwn'])continue;const _0x190016=_0xf79402['getRanges']();for(const _0x3d7d78 of _0x190016)if(!_0x153763['getDifference'](_0x3d7d78)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x69319b){const _0x5c557d=this['editor']['plugins']['get']('Users')['getUser'](_0x69319b);if(!_0x5c557d)throw new _0x551961('track-changes-user-not-found',this);return _0x5c557d;}['_getExternalAuthor'](_0x23036b){const _0x230479=this['editor']['plugins']['get']('Users'),_0x57959b=_0x5e48bb('external:'+_0x23036b),_0x3b3ba3=_0x230479['getUser'](_0x57959b);return _0x3b3ba3||_0x230479['addUser']({'id':_0x57959b,'name':_0x23036b});}['_createSuggestion'](_0x31d742,_0xfbb105,_0x56e7d4,_0x2c507b,_0x435fbb){const _0x59c2e9=this['_getAuthorFromId'](_0x2c507b),_0x4761f7=this['_suggestionFactory']['buildSuggestion'](_0x31d742,_0xfbb105,_0x56e7d4,_0x59c2e9,_0x435fbb,_0x150060=>{this['_updateSuggestionData'](_0x56e7d4,{'attributes':_0x150060});const _0xcc881f=this['getSuggestion'](_0x56e7d4);this['_joinWithAdjacentSuggestions'](new Set([_0xcc881f])),this['_refreshSuggestionsChain'](new Set([_0xcc881f]));});return this['listenTo'](_0x4761f7,'accept',()=>{this['_updateSuggestionData'](_0x56e7d4,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4761f7,'discard',()=>{this['_updateSuggestionData'](_0x56e7d4,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x56e7d4,_0x4761f7),this['_suggestionState']['set'](_0x4761f7,'notReady'),_0x4761f7;}['_splitMarkerName'](_0x23f625){const _0x2ffdfa=_0x23f625['split'](':');return{'group':_0x2ffdfa[0x0],'type':_0x2ffdfa[0x1],'subType':_0x2ffdfa['length']>=0x5?_0x2ffdfa[0x2]:null,'id':_0x2ffdfa['length']<0x5?_0x2ffdfa[0x2]:_0x2ffdfa[0x3],'authorId':_0x2ffdfa['length']<0x5?_0x2ffdfa[0x3]:_0x2ffdfa[0x4],'markerCount':0x6==_0x2ffdfa['length']?_0x2ffdfa[0x5]:null};}['_breakSuggestionMarker'](_0x453b3a,_0x1bc434,_0x6fd857){const _0x58dc52=_0x453b3a['getFirstRange'](),_0x16741e=_0x58dc52['start'],_0x1de6fb=_0x58dc52['end'];this['_setSuggestionRange'](_0x453b3a,this['_model']['createRange'](_0x16741e,_0x1bc434));const _0x349e19=_0x26aa04(),_0x336924=_0x453b3a['creator']['id'],_0x14727b=_0x453b3a['type']+(_0x453b3a['subType']?':'+_0x453b3a['subType']:'');this['_setSuggestionData']({'id':_0x349e19,'type':_0x14727b,'createdAt':new Date(),'authorId':_0x336924,'originalSuggestionId':_0x453b3a['id'],'attributes':_0x453b3a['attributes'],'data':_0x453b3a['data']});const _0x1ec076=this['_getAttributeKey'](_0x453b3a);('formatBlock'==_0x453b3a['type']||_0x1ec076&&this['_isBlockAttribute'](_0x1ec076))&&(_0x6fd857=this['_model']['createPositionBefore'](_0x6fd857['parent'])),this['_addSuggestionMarker'](_0x14727b,_0x349e19,_0x336924,this['_model']['createRange'](_0x6fd857,_0x1de6fb));}['_findSuggestions'](_0x3d9362,_0x536a68=null){const _0x3ec8de=[],_0xa10dfb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3d9362)||(_0x3d9362=[_0x3d9362]);for(const _0xa825bc of this['getSuggestions']()){if(!_0xa825bc['isInContent'])continue;if(_0x536a68&&_0xa825bc['type']!=_0x536a68)continue;let _0xa53676=!0x1;for(const _0x541310 of _0xa825bc['getRanges']()){for(const _0x560d34 of _0x3d9362){const _0x19d137=_0x560d34['start']['isEqual'](_0x541310['end'])||_0x560d34['end']['isEqual'](_0x541310['start']);if(_0x19d137||_0x560d34['getIntersection'](_0x541310)){const _0x107bb5=_0x560d34['containsRange'](_0x541310)&&Ot(this['_model']['schema'],_0x541310['start'],_0x560d34),_0x2a39e9=_0x541310['containsRange'](_0x560d34)&&Ot(this['_model']['schema'],_0x560d34['start'],_0x541310);_0x3ec8de['push']({'suggestion':_0xa825bc,'meta':{'isOwn':_0xa10dfb==_0xa825bc['author'],'isNextTo':_0x19d137,'isInsideObject':_0x107bb5,'containsRangeInObject':_0x2a39e9}}),_0xa53676=!0x0;break;}}if(_0xa53676)break;}}return _0x3ec8de;}['_addSuggestionMarker'](_0x3a0514,_0x14727e,_0x163a4d,_0x2e5ed7,_0x4fea69){this['_model']['change'](_0x54946a=>{let _0x2b66c9='suggestion:'+_0x3a0514+':'+_0x14727e+':'+_0x163a4d;_0x4fea69&&(_0x2b66c9=_0x2b66c9+':'+_0x4fea69),_0x54946a['addMarker'](_0x2b66c9,{'range':_0x2e5ed7,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5e1cbb){const _0x3e5079=_0x5e1cbb['previous'],_0xf98a4d=_0x5e1cbb['next'];_0x5e1cbb['previous']=null,_0x5e1cbb['next']=null,null!=_0x3e5079&&_0x3e5079['next']==_0x5e1cbb&&(_0x3e5079['next']=_0xf98a4d),null!=_0xf98a4d&&_0xf98a4d['previous']==_0x5e1cbb&&(_0xf98a4d['previous']=_0x3e5079),'ready'==this['_suggestionState']['get'](_0x5e1cbb)&&(this['_suggestionState']['set'](_0x5e1cbb,'removed'),this['fire']('suggestionUnloaded',_0x5e1cbb,_0x3e5079,_0xf98a4d));}['_setSuggestionData'](_0x525fea){const _0x285af3=_0x525fea['id'],_0x1762ea=this['addSuggestionData'](_0x525fea);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1e085c=this['editor']['plugins']['get']('PendingActions'),_0x46aea9=_0x1762ea['hasComments'],_0x4321c1=_0x1762ea['subType']?_0x1762ea['type']+':'+_0x1762ea['subType']:_0x1762ea['type'],_0x2c1d29=this['editor']['locale'],_0x1b9c2e=_0x1e085c['add'](o(_0x2c1d29,'PENDING_ACTION_SUGGESTION')),_0x2fe38a={'id':_0x285af3,'type':_0x4321c1,'hasComments':_0x46aea9,'data':_0x525fea['data']||null,'originalSuggestionId':_0x525fea['originalSuggestionId']||null,'attributes':_0x1762ea['attributes']};this['_adapter']['addSuggestion'](_0x2fe38a)['then'](_0x7a40ac=>{_0x1762ea['_saved']=!0x0,_0x1e085c['remove'](_0x1b9c2e),_0x7a40ac&&_0x7a40ac['createdAt']&&(this['_suggestions']['get'](_0x285af3)['createdAt']=_0x7a40ac['createdAt']);})['catch'](_0xd51b6f=>{throw _0x7f1db8('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1762ea['discard']();}),_0x1762ea['stopListening'](),this['_suggestions']['delete'](_0x1762ea['id']),this['_suggestionState']['delete'](_0x1762ea),_0xd51b6f;});}return _0x1762ea;}['_isBlockAttribute'](_0x3449e4){return this['_blockAttributeKeys']['has'](_0x3449e4);}['_updateSuggestionData'](_0x36c4a9,_0x19d3f2){const _0x32b617=this['editor']['plugins']['get']('PendingActions'),_0x1dfe1f=this['getSuggestion'](_0x36c4a9);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1dfe1f['_saved']){const _0x50e7f4=_0x32b617['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x36c4a9,_0x19d3f2)['then'](()=>{_0x32b617['remove'](_0x50e7f4);});}else _0x1dfe1f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x36c4a9,_0x19d3f2);});}}['_getSuggestionData'](_0x419f82){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x551961('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x419f82);}['_handleNewSuggestionMarker'](_0x4d4447){const {id:_0x3ec9d8,type:_0xc9d0f1,subType:_0x23be4e,authorId:_0x34828c}=this['_splitMarkerName'](_0x4d4447),_0x2b7758=this['_suggestions']['get'](_0x3ec9d8)||this['_createSuggestion'](_0xc9d0f1,_0x23be4e,_0x3ec9d8,_0x34828c,{});switch(this['_checkSuggestionCorrectness'](_0x2b7758,_0xc9d0f1,_0x23be4e,_0x34828c),this['_suggestionState']['get'](_0x2b7758)){case'notReady':this['_getSuggestionData'](_0x3ec9d8)['then'](_0x59c2a8=>{let _0x5cd5d8=Promise['resolve']();_0x59c2a8['hasComments']&&(_0x5cd5d8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ec9d8})),_0x5cd5d8['then'](()=>{this['addSuggestionData'](_0x59c2a8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x2b7758,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ec9d8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x2b7758,'ready'),this['fire']('suggestionLoaded',_0x2b7758);break;case'ready':this['fire']('suggestionChanged',_0x2b7758);}return _0x2b7758['addMarkerName'](_0x4d4447),_0x2b7758;}['_refreshSuggestionsChain'](_0x42a420){const _0x29a75a=Array['from'](_0x42a420),_0x551972=_0x29a75a['filter'](_0x3459b4=>'attribute'==_0x3459b4['type']);this['_refreshAttributeSuggestionsChain'](_0x551972);const _0x6950e0=_0x29a75a['filter'](_0xe90f50=>!_0xe90f50['isMultiRange']&&'attribute'!=_0xe90f50['type']),_0x45c2e7=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x459430=>!_0x459430['isMultiRange']&&'attribute'!=_0x459430['type']),_0x30d94f=_0x45c2e7['filter'](_0x5b7f60=>!_0x42a420['has'](_0x5b7f60)),_0x1ef140=new Map(_0x45c2e7['map'](_0x5868df=>[_0x5868df,this['_suggestionFactory']['getSuggestionCallback'](_0x5868df['type'],_0x5868df['subType'],'chain')])),_0x4aeb47=new Map(_0x45c2e7['map'](_0x4e327c=>[_0x4e327c,_0x4e327c['getFirstRange']()])),_0x5685c1=new Set(),_0xa1d896=new Set();for(let _0x332e79=0x0;_0x332e79<_0x6950e0['length'];_0x332e79++)_0x3b7a41(_0x6950e0[_0x332e79],_0x6950e0,_0x332e79+0x1);for(let _0x3d738c=0x0;_0x3d738c<_0x6950e0['length'];_0x3d738c++)_0x3b7a41(_0x6950e0[_0x3d738c],_0x30d94f,0x0);const _0x43c2f2=new Set();for(let _0x30e3d8=0x0;_0x30e3d8<_0x6950e0['length'];_0x30e3d8++){const _0x329785=_0x6950e0[_0x30e3d8];!_0xa1d896['has'](_0x329785)&&_0x329785['previous']&&(_0x43c2f2['add'](_0x329785['previous']),_0x329785['previous']['next']===_0x329785&&(_0x329785['previous']['next']=null),_0x329785['previous']=null),!_0x5685c1['has'](_0x329785)&&_0x329785['next']&&(_0x43c2f2['add'](_0x329785['next']),_0x329785['next']['previous']===_0x329785&&(_0x329785['next']['previous']=null),_0x329785['next']=null);}function _0x3b7a41(_0x459490,_0x376b64,_0x338d42){for(let _0x4e9599=_0x338d42;_0x4e9599<_0x376b64['length'];_0x4e9599++){const _0x181f45=_0x2471fd(_0x459490,_0x376b64[_0x4e9599]);_0x181f45&&(_0x181f45[0x0]['next']=_0x181f45[0x1],_0x181f45[0x1]['previous']=_0x181f45[0x0],_0x5685c1['add'](_0x181f45[0x0]),_0xa1d896['add'](_0x181f45[0x1]));}}function _0x2471fd(_0x75bc36,_0x4950a9){if(_0x75bc36['author']['id']!==_0x4950a9['author']['id'])return null;const _0x38e29e=_0x1ef140['get'](_0x75bc36)(_0x75bc36,_0x4950a9,_0x4aeb47['get'](_0x75bc36),_0x4aeb47['get'](_0x4950a9));if(!_0x38e29e)return null;return _0x1ef140['get'](_0x4950a9)(_0x75bc36,_0x4950a9,_0x4aeb47['get'](_0x75bc36),_0x4aeb47['get'](_0x4950a9))?_0x38e29e[0x1]['commentThread']&&_0x38e29e[0x1]['commentThread']['length']?null:_0x38e29e:null;}_0x43c2f2['size']&&this['_refreshSuggestionsChain'](_0x43c2f2);}['_refreshAttributeSuggestionsChain'](_0x395e8e){if(0x0==_0x395e8e['length'])return;const _0x80750a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4efc9f=>'attribute'==_0x4efc9f['type']&&_0x4efc9f['_isDataLoaded']),_0x3c64d3=[],_0xe84e9d=new Map();for(const _0x23aea0 of _0x80750a){const _0x2028cd=_0x5e48bb(_0x23aea0['attributes']);_0xe84e9d['has'](_0x2028cd)||(_0xe84e9d['set'](_0x2028cd,_0x3c64d3['length']),_0x3c64d3['push']([]));const _0x414020=_0xe84e9d['get'](_0x2028cd);_0x3c64d3[_0x414020]['push'](_0x23aea0);}!(function(){_0x3c64d3['sort']((_0xd9ec3,_0x5eb3f6)=>{const _0x3c5872=_0xd9ec3[0x0]['createdAt'],_0x52bc2e=_0x5eb3f6[0x0]['createdAt'];return _0x3c5872==_0x52bc2e?_0xd9ec3[0x0]['attributes']['groupId']<_0x5eb3f6[0x0]['attributes']['groupId']?-0x1:0x1:_0x3c5872<_0x52bc2e?-0x1:0x1;});for(const _0x22c2d6 of _0x3c64d3)_0x22c2d6['sort']((_0x513e36,_0xa0f679)=>_0x513e36['id']<_0xa0f679['id']?-0x1:0x1);}());for(let _0x2cfc5f=0x0;_0x2cfc5f<_0x3c64d3['length'];_0x2cfc5f++){if(0x0==_0x3c64d3[_0x2cfc5f]['length'])continue;const _0x1e9159=[];for(let _0x5e870a=_0x2cfc5f+0x1;_0x5e870a<_0x3c64d3['length'];_0x5e870a++)0x0!=_0x3c64d3[_0x5e870a]['length']&&_0x523778(_0x3c64d3[_0x2cfc5f],_0x3c64d3[_0x5e870a])&&_0x1e9159['push'](_0x5e870a);for(const _0x27223f of _0x1e9159)_0x3c64d3[_0x2cfc5f]=_0x3c64d3[_0x2cfc5f]['concat'](_0x3c64d3[_0x27223f]),_0x3c64d3[_0x27223f]=[];}for(const _0x1d8e75 of _0x3c64d3)for(let _0x13b6f1=0x0;_0x13b6f1<_0x1d8e75['length'];_0x13b6f1++){const _0x44dbee=_0x1d8e75[_0x13b6f1+0x1]||null;_0x1d8e75[_0x13b6f1]['next']!==_0x44dbee&&(_0x1d8e75[_0x13b6f1]['next']=_0x44dbee);}for(const _0x375daa of _0x3c64d3)for(let _0x4fd930=0x0;_0x4fd930<_0x375daa['length'];_0x4fd930++){const _0x3fc622=_0x375daa[_0x4fd930-0x1]||null;_0x375daa[_0x4fd930]['previous']!==_0x3fc622&&(_0x375daa[_0x4fd930]['previous']=_0x3fc622);}function _0x523778(_0x2fe037,_0x79315){if(_0x2fe037[0x0]['attributes']['groupId']!==_0x79315[0x0]['attributes']['groupId']&&_0x2fe037[0x0]['author']!==_0x79315[0x0]['author'])return!0x1;if(!function(_0x332b7b,_0xd2fac6){if(!_0x332b7b['hasComments']&&!_0xd2fac6['hasComments'])return!0x0;if(_0x332b7b['hasComments']&&_0xd2fac6['hasComments'])return!0x1;if(_0x332b7b['hasComments']&&_0xd2fac6['createdAt']<_0x332b7b['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0xd2fac6['hasComments']&&_0x332b7b['createdAt']<_0xd2fac6['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2fe037[0x0],_0x79315[0x0]))return!0x1;const _0x2bbc59=Tt(_0x2fe037[0x0]['attributes'],'groupId'),_0x4eb2c1=Tt(_0x79315[0x0]['attributes'],'groupId');if(!_0x5f4100(_0x2bbc59,_0x4eb2c1))return!0x1;return!!_0x2fe037['every'](_0x5349b5=>_0x79315['some'](_0x38bb69=>_0x5349b5['getFirstRange']()['isEqual'](_0x38bb69['getFirstRange']())))&&_0x79315['every'](_0x41a838=>_0x2fe037['some'](_0x53077c=>_0x41a838['getFirstRange']()['isEqual'](_0x53077c['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x576ca9){const _0x26d358=Array['from'](_0x576ca9),_0x2c1662=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5cf01c=_0x2c1662['filter'](_0x46781a=>!_0x576ca9['has'](_0x46781a)),_0x223e97=new Map(_0x26d358['map'](_0xd88683=>[_0xd88683,this['_suggestionFactory']['getSuggestionCallback'](_0xd88683['type'],_0xd88683['subType'],'join')])),_0x40ce05=new Map(_0x2c1662['map'](_0x386c66=>[_0x386c66,_0x386c66['getRanges']()]));for(let _0x1ada47=0x0;_0x1ada47<_0x26d358['length'];_0x1ada47++){if(_0x36db9a(this,_0x26d358[_0x1ada47],_0x26d358,_0x1ada47+0x1))return!0x0;}for(let _0x529f13=0x0;_0x529f13<_0x26d358['length'];_0x529f13++){if(_0x36db9a(this,_0x26d358[_0x529f13],_0x5cf01c,0x0))return!0x0;}return!0x1;function _0x36db9a(_0x373d4a,_0x3cdfd8,_0x20d27e,_0x29bdfa){for(let _0x1de5e0=_0x29bdfa;_0x1de5e0<_0x20d27e['length'];_0x1de5e0++){const _0x4e7651=_0x20d27e[_0x1de5e0];if(_0x4e7651['type']!==_0x3cdfd8['type']||_0x4e7651['author']['id']!==_0x3cdfd8['author']['id']||_0x4e7651['subType']!==_0x3cdfd8['subType'])continue;if(!Jt(_0x3cdfd8,_0x4e7651))continue;if('attribute'==_0x3cdfd8['type']&&_0x3cdfd8['data']['oldValue']!=_0x4e7651['data']['oldValue'])continue;if('attribute'==_0x3cdfd8['type']&&_0x373d4a['_isBlockAttribute'](_0x3cdfd8['data']['key']))continue;if('formatBlock'==_0x3cdfd8['type']){const _0x40931c=_0x373d4a['editor']['model'],_0x5ccc32=_0x3cdfd8['getContainedElement']();if(_0x5ccc32&&(_0x40931c['schema']['isObject'](_0x5ccc32)||_0x40931c['schema']['isLimit'](_0x5ccc32)))continue;}const _0xcc88cc=_0x223e97['get'](_0x3cdfd8),_0x40c2c3=_0x40ce05['get'](_0x3cdfd8),_0x55c330=_0x40ce05['get'](_0x4e7651),_0x44d1c6=_0x3cdfd8['commentThread']&&_0x3cdfd8['commentThread']['length'],_0x2bcb12=_0x4e7651['commentThread']&&_0x4e7651['commentThread']['length'];if(!_0x44d1c6&&_0xcc88cc(_0x55c330,_0x40c2c3))return _0x373d4a['_joinSuggestions'](_0x4e7651,_0x3cdfd8),_0x40ce05['delete'](_0x3cdfd8),!0x0;if(!_0x2bcb12&&_0xcc88cc(_0x40c2c3,_0x55c330))return _0x373d4a['_joinSuggestions'](_0x3cdfd8,_0x4e7651),_0x40ce05['delete'](_0x4e7651),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2c69d8,_0xb45662){if(_0x2c69d8['isMultiRange']){for(const _0xb43906 of _0xb45662['getRanges']())_0x2c69d8['addRange'](_0xb43906);}else{const _0x3ef034=_0xb45662['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2c69d8,this['_model']['createRange'](_0x2c69d8['getFirstRange']()['start'],_0x3ef034));}_0xb45662['removeMarkers']();}['_getMarkerAnnouncementText'](_0x260950,_0x40c760,_0x27d920){const _0x56698e=_0x260950['startsWith']('format')||_0x260950['startsWith']('attribute')?'FORMATTING':_0x260950['toUpperCase']();return o(this['editor']['locale'],_0x40c760+'_'+_0x56698e+'_SUGGESTION_ANNOUNCEMENT',_0x27d920);}['_initAriaMarkerChangeAnnouncements'](){const _0xf56fdf=this['editor'];if(!_0xf56fdf['ui'])return;const {ariaLiveAnnouncer:_0x2e5535}=_0xf56fdf['ui'];_0x3ef095(this['_model'],({left:_0x5722f7,entered:_0x4928ab})=>{for(const _0x82aac8 of _0x5722f7){const {group:_0x535f9e,type:_0x51fdb6}=this['_splitMarkerName'](_0x82aac8['name']);if('suggestion'===_0x535f9e){_0x2e5535['announce'](this['_getMarkerAnnouncementText'](_0x51fdb6,'LEAVE'));break;}}for(const _0x127c55 of _0x4928ab){const {group:_0x5ede1a,type:_0x1b1855}=this['_splitMarkerName'](_0x127c55['name']);if('suggestion'===_0x5ede1a){_0x2e5535['announce'](this['_getMarkerAnnouncementText'](_0x1b1855,'ENTER',_0x4f3188(_0x487f5c)));break;}}});}['_processAttributeChanges'](_0xeeb4af){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2c1b4e=this['editor'],_0x3df853=_0x2c1b4e['model']['document']['differ']['getChanges']();if(0x0==_0x3df853['length'])return!0x1;const _0x575195=[],_0x232d52=_0x3df853['filter'](_0x5a6027=>'attribute'==_0x5a6027['type']),_0x2a3d8f=_0x3df853['filter'](_0x3c6a3a=>'insert'==_0x3c6a3a['type']&&'$text'!=_0x3c6a3a['name']),_0x3c09bc=_0x3df853['filter'](_0x545544=>'remove'==_0x545544['type']&&'$text'!=_0x545544['name']);for(const _0x4a2804 of _0x232d52)_0x575195['push']({'key':_0x4a2804['attributeKey'],'newValue':_0x4a2804['attributeNewValue'],'oldValue':_0x4a2804['attributeOldValue'],'range':Pt(_0x4a2804['range'],_0x2c1b4e['model'])});for(const _0xa94bda of _0x2a3d8f){const _0x3cd59f=_0x3c09bc['find'](_0x4f2cfc=>_0x4f2cfc['position']['isEqual'](_0xa94bda['position']));_0x3cd59f&&_0x575195['push']({'key':m,'newValue':_0xa94bda['name'],'oldValue':_0x3cd59f['name'],'range':_0x2c1b4e['model']['createRangeOn'](_0xa94bda['position']['nodeAfter'])});}return 0x0!=_0x575195['length']&&this['_reduceExistingSuggestions'](_0xeeb4af,_0x575195);}['_processAttributeSuggestions'](_0x200f03){let _0x3276bc=!0x1;const _0x26c7a1=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x3c0a51=>_0x3c0a51['data']['newRange']&&_0x3c0a51['name']['startsWith']('suggestion:attribute:'));for(const _0x425ed2 of _0x26c7a1){const {subType:_0x273273,id:_0x103e04}=this['_splitMarkerName'](_0x425ed2['name']),_0x1f9493=_0x273273['split']('|')[0x0];for(const _0x12fc09 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x12fc09['id']!=_0x103e04&&'attribute'==_0x12fc09['type']&&_0x12fc09['data']&&_0x12fc09['data']['key']==_0x1f9493&&_0x12fc09['getFirstRange']()['isIntersecting'](_0x425ed2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x12fc09,_0x425ed2['data']['newRange'],_0x200f03),_0x3276bc=!0x0);}return _0x3276bc;}['_recordAttributeChanges'](_0x768add){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x768add();}['_isRegisteredAttribute'](_0x578b15){const _0x401b49=this['_isBlockAttribute'](_0x578b15),_0x3ea8ea=this['_inlineAttributeKeys']['has'](_0x578b15);return _0x401b49||_0x3ea8ea;}['_reduceExistingSuggestions'](_0x5c6320,_0x29c367){if(0x0==_0x29c367['length'])return!0x1;let _0x5c5004=!0x1;for(const _0x5767b3 of _0x29c367){const _0x110772=this['_findSuggestions'](_0x5767b3['range'],'attribute')['filter'](_0x3a3589=>!_0x3a3589['meta']['isNextTo'])['map'](_0x12892c=>_0x12892c['suggestion']),_0x2c2f88=_0x5e48bb({'newValue':_0x5767b3['newValue']});_0x110772['filter'](_0x594b2e=>{const [_0xd78c,_0x3975df]=_0x594b2e['subType']['split']('|');return _0xd78c==_0x5767b3['key']&&_0x3975df!=_0x2c2f88;})['forEach'](_0x1e6110=>{this['_reduceSuggestionAttributeRange'](_0x1e6110,_0x5767b3['range'],_0x5c6320),_0x5c5004=!0x0;});}return _0x5c5004;}['_reduceSuggestionAttributeRange'](_0x1bc538,_0x1745de,_0x223802){const _0x5ee850=_0x1bc538['getFirstRange']()['getDifference'](_0x1745de);0x0!==_0x5ee850['length']?0x1!==_0x5ee850['length']?this['_breakSuggestionMarker'](_0x1bc538,_0x1745de['start'],_0x1745de['end']):this['_setSuggestionRange'](_0x1bc538,_0x5ee850[0x0]):_0x223802['removeMarker'](_0x1bc538['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x179e01){this['_editor']=_0x179e01,this['_model']=_0x179e01['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x850395,_0x5969cc,_0x1a76d2,_0x129701,_0x1a1edc,_0x160a7f){return new u(this['_model'],{'type':_0x850395,'subType':_0x5969cc,'id':_0x1a76d2,'author':_0x129701,'creator':_0x129701,'attributes':_0x1a1edc,'onAttributesChange':_0x160a7f,'onAccept':(..._0x191449)=>this['getSuggestionCallback'](_0x850395,_0x5969cc,'accept')(..._0x191449),'onDiscard':(..._0x458843)=>this['getSuggestionCallback'](_0x850395,_0x5969cc,'discard')(..._0x458843)});}['registerCustomCallback'](_0x51979f,_0x324ce9,_0x337c24,_0x43e6d6){const _0x1d09cb=_0x51979f+':'+_0x324ce9+':'+_0x337c24;this['_customCallbacks']['set'](_0x1d09cb,_0x43e6d6);}['getSuggestionCallback'](_0xd18ae0,_0x418c6d,_0x153471){const _0x5bcb4d=_0xd18ae0+':'+_0x418c6d+':'+_0x153471;return this['_customCallbacks']['get'](_0x5bcb4d)||this['_defaultCallbacks']['get'](_0xd18ae0+':'+_0x153471);}['_registerDefaultCallbacks'](){const _0x461fcf=()=>!0x1,_0xfe7a3a=_0x37199b=>{_0x37199b['sort']((_0x2c782f,_0x428133)=>_0x2c782f['start']['isBefore'](_0x428133['start'])?0x1:-0x1),this['_model']['change'](_0x274057=>{for(const _0x34b260 of _0x37199b){let _0x3b67ef;_0x3b67ef=_0x34b260['end']['isAtEnd']&&_0x34b260['end']['parent']==_0x34b260['start']['nodeAfter']?_0x274057['createSelection'](_0x34b260['start']['nodeAfter'],'on'):_0x274057['createSelection'](_0x34b260),this['_model']['deleteContent'](_0x3b67ef,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x20bb92=(_0x357ff2,_0x23e534)=>{_0x23e534&&this['_model']['change'](_0x3d1f9e=>{const {commandName:_0x3255c4,commandParams:_0x2f189c=[]}=_0x23e534,_0x5b3179=_0x357ff2['map'](_0x24ea28=>(Vt(_0x24ea28)&&(_0x24ea28=this['_model']['createRange'](_0x24ea28['end'])),_0x24ea28))['filter'](_0x2a4223=>'$graveyard'!==_0x2a4223['root']['rootName']);if(_0x5b3179['length']<0x1)return;const _0x3959ab=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x52499a=>_0xb95ac7['fromRange'](_0x52499a));_0x3d1f9e['setSelection'](_0x5b3179);for(const _0x51d4b6 of this['_editor']['commands']['commands']())_0x51d4b6['refresh']();_0x2f189c['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x3255c4,..._0x2f189c);const _0x160dbf=_0x3959ab['filter'](_0x314f5a=>'$graveyard'!=_0x314f5a['root']['rootName']);_0x160dbf['length']>0x0&&_0x3d1f9e['setSelection'](_0x160dbf);for(const _0x5ef342 of _0x3959ab)_0x5ef342['detach']();});},_0x32231a=(_0xa453a,_0x29c958)=>0x1==_0xa453a['length']&&0x1==_0x29c958['length']&&_0xa453a[0x0]['end']['isEqual'](_0x29c958[0x0]['start']),_0x35c019=(_0x492189,_0x51106e,_0x1e931b,_0x293984)=>Ht(_0x492189,_0x51106e,_0x1e931b,_0x293984,this['_model'])?[_0x492189,_0x51106e]:Ht(_0x51106e,_0x492189,_0x293984,_0x1e931b,this['_model'])?[_0x51106e,_0x492189]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x461fcf),this['_defaultCallbacks']['set']('insertion:discard',_0xfe7a3a),this['_defaultCallbacks']['set']('insertion:join',_0x32231a),this['_defaultCallbacks']['set']('insertion:chain',_0x35c019),this['_defaultCallbacks']['set']('deletion:accept',_0xfe7a3a),this['_defaultCallbacks']['set']('deletion:discard',_0x461fcf),this['_defaultCallbacks']['set']('deletion:join',_0x32231a),this['_defaultCallbacks']['set']('deletion:chain',_0x35c019),this['_defaultCallbacks']['set']('formatInline:accept',_0x20bb92),this['_defaultCallbacks']['set']('formatInline:discard',_0x461fcf),this['_defaultCallbacks']['set']('formatInline:join',_0x32231a),this['_defaultCallbacks']['set']('formatInline:chain',_0x461fcf),this['_defaultCallbacks']['set']('formatBlock:accept',_0x20bb92),this['_defaultCallbacks']['set']('formatBlock:discard',_0x461fcf),this['_defaultCallbacks']['set']('formatBlock:join',_0x32231a),this['_defaultCallbacks']['set']('formatBlock:chain',_0x461fcf),this['_defaultCallbacks']['set']('attribute:accept',_0x461fcf),this['_defaultCallbacks']['set']('attribute:discard',(_0x3674cb,_0x44b934)=>{if(!_0x44b934)return;const _0x79a85d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x52374c=>{if(_0x44b934['key']==m)for(const _0x1fb41c of _0x3674cb){const _0x235aa2=_0x1fb41c['start']['nodeAfter'],_0x41f562=_0x44b934['oldValue'];_0x52374c['rename'](_0x235aa2,_0x41f562);}else{if(_0x79a85d['_isBlockAttribute'](_0x44b934['key'])){for(const _0x4860c8 of _0x3674cb)void 0x0!==_0x44b934['oldValue']?_0x52374c['setAttribute'](_0x44b934['key'],_0x44b934['oldValue'],_0x4860c8['start']['nodeAfter']):_0x52374c['removeAttribute'](_0x44b934['key'],_0x4860c8['start']['nodeAfter']);}else{for(const _0x4ead47 of _0x3674cb)_0x44b934['oldValue']?_0x52374c['setAttribute'](_0x44b934['key'],_0x44b934['oldValue'],_0x4ead47):_0x52374c['removeAttribute'](_0x44b934['key'],_0x4ead47);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x32231a);}}function Ot(_0x4d7cc6,_0x1f2713,_0x8a5289){for(const _0x231a32 of _0x1f2713['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x231a32['root']==_0x231a32)return!0x1;if(!_0x8a5289['containsItem'](_0x231a32))return!0x1;if(_0x4d7cc6['isObject'](_0x231a32)||_0x4d7cc6['isLimit'](_0x231a32))return!0x0;}return!0x1;}function Vt(_0x13c223){return _0x13c223['end']['parent']==_0x13c223['start']['nodeAfter']&&_0x13c223['end']['isAtStart'];}function Ut(_0x2397d3,_0x5cc205,_0x478a4e,_0x3aa8af){const _0x10bb96=_0x39f71d=>!_0x39f71d['item']['is']('$textProxy')&&!_0x3aa8af['isObject'](_0x39f71d['item']),_0x27241b=_0x2397d3['start']['getLastMatchingPosition'](_0x10bb96),_0x16fdf7=_0x2397d3['end']['getLastMatchingPosition'](_0x10bb96,{'direction':'backward'});return(!_0x2397d3['start']['isEqual'](_0x27241b)||!_0x2397d3['end']['isEqual'](_0x16fdf7))&&(_0x27241b['isBefore'](_0x16fdf7)?_0x478a4e['updateMarker'](_0x5cc205,{'range':_0x478a4e['createRange'](_0x27241b,_0x16fdf7)}):_0x478a4e['removeMarker'](_0x5cc205),!0x0);}function Gt(_0x548ab5){return _0x5e48bb(_0x548ab5);}function Ft(_0x4fa226){const _0x35e36a=_0x4fa226['start']['nodeAfter'];return _0x35e36a&&_0x35e36a['is']('element');}function Pt(_0x3b08e2,_0x2b0398){return null==_0x3b08e2['end']['nodeBefore']&&_0x3b08e2['end']['parent']==_0x3b08e2['start']['nodeAfter']?Lt(_0x3b08e2['start']['nodeAfter'],_0x2b0398):_0x3b08e2;}function Lt(_0x517c4e,_0x32f1d3){const _0x264335=_0x32f1d3['schema']['isObject'](_0x517c4e)||_0x32f1d3['schema']['isSelectable'](_0x517c4e);return _0x32f1d3['createRange'](_0x32f1d3['createPositionAt'](_0x517c4e,'before'),_0x264335?_0x32f1d3['createPositionAfter'](_0x517c4e):_0x32f1d3['createPositionAt'](_0x517c4e,'end'));}function Ht(_0x281a60,_0xae4afb,_0x163d8c,_0x20c8e2,_0x540871){if(_0x281a60['next'])return!0x1;if(!Jt(_0x281a60,_0xae4afb))return!0x1;if(_0x163d8c['end']['isEqual'](_0x20c8e2['start']))return!0x0;if(_0x281a60['type']!=_0xae4afb['type'])return!0x1;if(!_0x163d8c['end']['isTouching'](_0x20c8e2['start']))return!0x1;const _0x21f998=_0x540871['createRange'](_0x163d8c['end'],_0x20c8e2['start'])['getWalker']();for(const _0x555b2f of _0x21f998)if(['elementStart','elementEnd']['includes'](_0x555b2f['type'])&&_0x540871['schema']['isLimit'](_0x555b2f['item']))return!0x1;return!0x0;}function Jt(_0x5b5882,_0x17d4ba){if(!_0x5b5882['_isDataLoaded']||!_0x17d4ba['_isDataLoaded'])return!0x1;const _0xed8a9a=new Set(Object['keys'](_0x5b5882['attributes'])),_0x49b6f6=new Set(Object['keys'](_0x17d4ba['attributes']));if(_0xed8a9a['delete']('groupId'),_0x49b6f6['delete']('groupId'),0x0==_0xed8a9a['size']&&0x0==_0x49b6f6['size'])return!0x0;if(_0xed8a9a['size']!=_0x49b6f6['size'])return!0x1;const _0x1dc309={..._0x5b5882['attributes']},_0x4346c7={..._0x17d4ba['attributes']};return delete _0x1dc309['groupId'],delete _0x4346c7['groupId'],JSON['stringify'](_0x1dc309)==JSON['stringify'](_0x4346c7);}function qt(_0x2ddeff,_0x2f2c08){const _0x47d084=zt(_0x2ddeff['attributes']),_0x1728e2=zt(_0x2f2c08);if(!_0x2ddeff['_isDataLoaded'])return!0x1;for(const _0x325c94 of Object['keys'](_0x1728e2))if(!_0x5f4100(_0x47d084[_0x325c94],_0x1728e2[_0x325c94]))return!0x1;return!0x0;}function zt(_0x54cfa7){const _0x188854=Object['assign']({},_0x54cfa7);return delete _0x188854['skipNestingCheck'],delete _0x188854['tablePasteChainId'],_0x188854;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x98bfda(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x2c827f,_0x202bff,_0x55250c,_0x351761){super(),this['model']=_0x202bff,this['view']=_0x55250c,this['commentThreadController']=_0x351761,this['_editor']=_0x2c827f,this['_acceptCommand']=_0x2c827f['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x2c827f['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x219253,_0xcdef6a)=>_0x219253||_0xcdef6a),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x565f60=>_0x565f60&&this['_editor']['model']['canEditAt'](_0x202bff['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d8369=>_0x2d8369&&this['_editor']['model']['canEditAt'](_0x202bff['getRanges']())),this['_pendingAction']=null,_0x55250c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55250c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55250c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55250c,'change:isDirty',()=>{_0x55250c['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 _0x513e3c=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x513e3c);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x5aba6a{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x1c32fb,_0x3a0420,_0x20d5ad,_0x2ee9f9){super(_0x1c32fb),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x7c1961(_0x1c32fb,o(_0x1c32fb,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x3a0420['authoredAt']),this['bind']('authoredAt')['to'](_0x3a0420),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',_0x3a0420,'authoredAt',this,'descriptionParts',(_0x1043cd,_0x132d62,_0xd75be5)=>{const _0xe08b0c=_0xd75be5['map'](_0x1f6c18=>ls(_0x1f6c18['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x1043cd-0x1,_0x3a0420['author']['name'],_0x132d62?_0x2ee9f9['formatDateTime'](_0x132d62):'',new DOMParser()['parseFromString'](_0xe08b0c,'text/html')['body']['textContent']]);}),this['focusables']=new _0x396822(),this['focusTracker']=new _0x2ee79c(),this['keystrokes']=new _0x253f93(),this['focusCycler']=new _0x19dedd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x2a06cc=>_0x2a06cc['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x3a0420,this['_localUser']=_0x20d5ad,this['_config']=_0x2ee9f9,_0x2ee9f9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x3ef7c7(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1a83db}=this['_config'];this['commentsListView']=new _0x1a83db(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',_0x5a157b=>_0x5a157b+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4a19d8,_0x2fa633)=>_0x4a19d8||!!_0x2fa633);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c1ec3}=this['_config'],_0x34ac22=new _0x1c1ec3(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x47956b=_0x34ac22['commentInputView'];return _0x34ac22['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x47956b,'value',(_0x4cb3bb,_0x5d59c9,_0x542f0e)=>!!_0x542f0e||_0x4cb3bb&&!_0x5d59c9),_0x47956b['on']('submit',(_0x5f5bd2,_0x17a9d9)=>{this['fire']('addComment',_0x17a9d9),_0x47956b['editor']['setData']('');}),_0x47956b['on']('cancel',()=>this['focus']()),_0x47956b['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x34ac22;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x112eca,_0x1e4cfe,_0x130a3b,_0x31376c){super(_0x112eca,_0x1e4cfe,_0x130a3b,_0x31376c),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5d54ea=>_0x5d54ea&&_0x5d54ea[0x0]?_0x5d54ea[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1a6198,_0x269773)=>{let _0x4be3a6='';for(const _0x3671db of _0x1a6198)_0x4be3a6+='<p>'+ls(_0x3671db['content'],_0x3671db['color'])+'</p>';return _0x269773?_0x4be3a6:_0x6a584d(_0x4be3a6,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x31376c['SuggestionView'](_0x112eca,_0x1e4cfe,{'formatDateTime':_0x31376c['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 _0x2e5162=this['bindTemplate'],_0x1f59c3=[this['suggestionView']];return this['commentsListView']&&_0x1f59c3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x1f59c3['push'](this['commentThreadInputView']),_0x1f59c3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2e5162['if']('isActive','ck-suggestion-wrapper--active'),_0x2e5162['to']('type',_0x40037c=>'ck-suggestion-'+_0x40037c),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':_0x2e5162['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x1f59c3};}['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 ce extends _0x5aba6a{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x44a3ea,_0x8c8cb5,_0x25e4d6){super(_0x44a3ea),this['_model']=_0x8c8cb5,this['_config']=_0x25e4d6,this['set']('description',''),this['bind']('authoredAt')['to'](_0x8c8cb5),this['acceptButton']=this['_createButton'](o(_0x44a3ea,'Accept\x20suggestion'),_0x3eaba6['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x44a3ea,'Discard\x20suggestion'),_0x3eaba6['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x239853(_0x44a3ea,_0x8c8cb5['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x396822([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x2ee79c(),this['keystrokes']=new _0x253f93(),this['focusCycler']=new _0x19dedd({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x246b40=>_0x246b40['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x3788dd=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x3788dd['innerHTML']=this['description'],this['on']('change:description',(_0x38b6fb,_0x2db440,_0x390486)=>{_0x3788dd['innerHTML']=_0x390486;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x5712ae=this['bindTemplate'],_0x2b59b4=[{'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']}},{'tag':'time','attributes':{'datetime':_0x5712ae['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5712ae['to']('authoredAt',_0x51d3cf=>this['_config']['formatDateTime'](_0x51d3cf))}]}]},{'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']&&_0x2b59b4['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':_0x2b59b4}]};}['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'](_0x309737,_0x4b56a3,_0x55776d,_0x2f2665,_0x41aa3d){const _0x21c77c=new _0x56df5f(this['locale']);return _0x21c77c['set']({'label':_0x309737,'icon':_0x4b56a3,'tooltip':!0x0,'tooltipPosition':_0x41aa3d}),_0x21c77c['extendTemplate']({'attributes':{'class':_0x55776d}}),_0x21c77c['on']('execute',()=>{this['fire'](_0x2f2665,this['_model']['id']);}),_0x21c77c;}['_setupKeyboardNavigation'](){const _0x43e4b8=this['element'];this['keystrokes']['listenTo'](_0x43e4b8);for(const _0x219520 of this['focusables'])this['focusTracker']['add'](_0x219520['element']),this['keystrokes']['listenTo'](_0x219520['element']);this['keystrokes']['set']('enter',(_0x516388,_0x4cd18e)=>{_0x43e4b8===_0x516388['target']&&(this['focusCycler']['focusFirst'](),_0x4cd18e());}),this['keystrokes']['set']('esc',(_0x53be43,_0x557d5d)=>{_0x43e4b8!==_0x53be43['target']&&(this['focus'](),_0x557d5d());});}}var he='<!--\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-2024,\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 _0x3a46d7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x2d667e,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x31ee6f){super(_0x31ee6f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1b7b87=this['editor']['config'];_0x1b7b87['define']('trackChanges.SuggestionThreadView',re),_0x1b7b87['define']('trackChanges.SuggestionView',ce),_0x1b7b87['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1b7b87['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x3e291d,_0x11f482){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x359dde,_0x4528cc]of this['_handleControllerBuffer']){const _0x350899=this['_suggestionToController']['has'](_0x359dde);_0x350899||_0x4528cc?_0x350899&&_0x4528cc&&this['_destroyController'](_0x359dde):this['_initializeController'](_0x359dde);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e291d,_0x11f482);}['init'](){const _0x5e8b9d=this['editor'],_0x1e76bb=_0x5e8b9d['plugins']['get']('TrackChangesEditing'),_0x4865b7=_0x5e8b9d['plugins']['get']('Annotations'),_0x71d411=_0x5e8b9d['plugins']['get']('EditorAnnotations'),_0x7587de=_0x5e8b9d['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x71d411['addSourceCollector'](()=>{const _0x106b40=[];for(const [_0x536c82,_0x4c2888]of Array['from'](this['_suggestionToController'])){const _0x2c77a8=_0x536c82['getAllAdjacentSuggestions'](),_0x233f55=[];for(const _0x513fb4 of _0x2c77a8){if(!_0x513fb4['isInContent'])continue;if(_0x513fb4['isMultiRange']){_0x233f55['push'](..._0x513fb4['getRanges']());continue;}const _0x3676b2=_0x513fb4['getFirstRange']();if(_0x233f55['length']>0x0){const _0x36de5e=_0x233f55[0x0]['getJoined'](_0x3676b2);if(_0x36de5e){_0x233f55[0x0]=_0x36de5e;continue;}}_0x233f55['push'](_0x3676b2);}_0x106b40['push']([_0x4c2888['view'],_0x233f55]);}return _0x106b40;}),this['listenTo'](_0x1e76bb,'suggestionLoaded',(_0x4e05cd,_0x1b4d47)=>{this['listenTo'](_0x1b4d47,'change:previous',(_0x10dea8,_0x464622,_0x2bff58,_0x514641)=>{_0x1b4d47['isInContent']&&(null==_0x2bff58?(this['_updateController'](_0x514641['head']),this['_handleSuggestionControllerDelayed'](_0x1b4d47,!0x1)):(this['_updateController'](_0x2bff58['head']),null==_0x514641&&this['_handleSuggestionControllerDelayed'](_0x1b4d47,!0x0)));}),null!==_0x1b4d47['previous']?this['_updateController'](_0x1b4d47['head']):this['_handleSuggestionControllerDelayed'](_0x1b4d47,!0x1);}),this['listenTo'](_0x1e76bb,'suggestionUnloaded',(_0x1d114a,_0x40f9b9,_0x24644b)=>{this['stopListening'](_0x40f9b9,'change:previous'),this['_handleControllerBuffer']['delete'](_0x40f9b9),this['_suggestionToController']['has'](_0x40f9b9)&&this['_destroyController'](_0x40f9b9),_0x24644b&&this['_updateController'](_0x24644b['head']);}),this['listenTo'](_0x1e76bb,'suggestionChanged',(_0x3dc918,_0x2246ed)=>{this['_updateController'](_0x2246ed);}),this['listenTo'](_0x4865b7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x7587de,'addComment',(_0x4d9c76,{threadId:_0x365807,isFromAdapter:_0x302a17})=>{if(_0x302a17||!_0x1e76bb['hasSuggestion'](_0x365807))return;const _0x523acd=_0x1e76bb['getSuggestion'](_0x365807);this['_suggestionToController']['get'](_0x523acd)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x1b7594=this['editor']['plugins']['get']('Annotations'),_0x415efa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5152e4=Array['from'](_0x1b7594['activeAnnotations'],_0x49668a=>_0x49668a['innerView'])['filter'](_0x41b031=>this['_viewToController']['has'](_0x41b031)),_0x260c6c=[];for(const _0x3f8480 of _0x5152e4){const _0x1fc7a6=this['_viewToController']['get'](_0x3f8480)['model']['getAllAdjacentSuggestions']();_0x260c6c['push'](..._0x1fc7a6['reduce']((_0x55dcfb,_0x41e62e)=>[..._0x55dcfb,..._0x41e62e['getMarkerNames']()],[]));}_0x415efa['activeMarkers']=_0x260c6c;}['_addUIComponentsToFactory'](){const _0x3b71ef=this['editor'],_0x5b03c2=_0x3b71ef['locale'],_0x4a1518=o(_0x5b03c2,'Track\x20changes'),_0x274f4d=new Wt([{'type':'switchbutton','model':new _0x40660a({'withText':!0x0,'isToggleable':!0x0,'label':_0x4a1518,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x40660a({'withText':!0x0,'label':o(_0x5b03c2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40660a({'withText':!0x0,'label':o(_0x5b03c2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40660a({'withText':!0x0,'label':o(_0x5b03c2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x40660a({'withText':!0x0,'label':o(_0x5b03c2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x391697 of _0x274f4d)if(me(_0x391697)){const _0x830d8c=_0x3b71ef['commands']['get'](_0x391697['model']['commandName']);_0x391697['model']['bind']('isOn','isEnabled')['to'](_0x830d8c,'value','isEnabled');}_0x3b71ef['ui']['componentFactory']['add']('trackChanges',_0x477108=>this['_createToolbarButton'](_0x477108,_0x274f4d,_0x4a1518)),_0x3b71ef['ui']['componentFactory']['add']('menuBar:trackChanges',_0x1fcf5b=>this['_createMenuBarMenu'](_0x1fcf5b,_0x274f4d,_0x4a1518));}['_createToolbarButton'](_0x5c4133,_0x4dd28d,_0x4e937a){const _0x425b5b=Qt(_0x5c4133,_0x1b30c8),_0x576366=this['editor']['commands']['get']('trackChanges');_0x425b5b['buttonView']['set']({'tooltip':_0x4e937a,'label':_0x4e937a,'icon':he}),_0x425b5b['buttonView']['bind']('isOn')['to'](_0x576366,'value'),_0x425b5b['buttonView']['on']('execute',()=>{_0x576366['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x425b5b,_0x4dd28d,{'role':'menu'});const _0x1fec5d=[];for(const _0xa390d4 of _0x4dd28d)me(_0xa390d4)&&_0x1fec5d['push'](this['editor']['commands']['get'](_0xa390d4['model']['commandName']));const _0x4ebfe2=_0x425b5b['buttonView'];return _0x4ebfe2['actionView']['unbind']('isEnabled'),_0x4ebfe2['arrowView']['unbind']('isEnabled'),_0x4ebfe2['actionView']['bind']('isEnabled')['to'](_0x576366,'isEnabled'),_0x4ebfe2['arrowView']['bind']('isEnabled')['toMany'](_0x1fec5d,'isEnabled',(..._0x2fcec8)=>_0x2fcec8['some'](_0x5aa7d8=>_0x5aa7d8)),_0x425b5b['on']('execute',_0xd271ac=>{this['editor']['execute'](_0xd271ac['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x425b5b;}['_createMenuBarMenu'](_0x40855e,_0x3c358b,_0xaf9a70){const _0x4d2449=new Yt(_0x40855e),_0x19a458=this['editor']['commands']['get']('trackChanges');_0x4d2449['buttonView']['set']({'label':_0xaf9a70,'icon':he});const _0x402ff8=new Zt(_0x40855e);for(const _0x363d55 of _0x3c358b){if('separator'==_0x363d55['type']){_0x402ff8['items']['add'](new Xt(_0x40855e));continue;}const _0x232319=new te(_0x40855e,_0x4d2449),_0x2412e1=new _0x5bdcee(_0x40855e),_0x4a9f31=_0x363d55['model'];_0x2412e1['bind'](...Object['keys'](_0x4a9f31))['to'](_0x4a9f31),_0x2412e1['delegate']('execute')['to'](_0x4d2449),_0x2412e1['on']('execute',()=>{this['editor']['execute'](_0x4a9f31['commandName']),this['editor']['editing']['view']['focus']();}),_0x232319['children']['add'](_0x2412e1),_0x402ff8['items']['add'](_0x232319);}return _0x4d2449['bind']('isEnabled')['to'](_0x19a458,'isEnabled'),_0x4d2449['panelView']['children']['add'](_0x402ff8),_0x4d2449;}['_initializeController'](_0x385a04){const _0x41e326=this['editor'],_0x116ce3=_0x41e326['config'],_0x54ec3e=_0x41e326['plugins']['get']('Annotations'),_0x2f921d=_0x41e326['plugins']['get']('CommentsRepository'),_0x5bb1f0=_0x41e326['plugins']['get']('EditorAnnotations'),_0x25c1bc=_0x41e326['plugins']['get'](_0x2d667e)['me'],_0x345576=_0x116ce3['get']('trackChanges')['SuggestionThreadView'],_0x2cc564=_0x116ce3['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x302416,CommentThreadInputView:_0x2020ca}=_0x41e326['plugins']['get']('CommentsUI');let _0x3b679e,_0x2b314d;this['_annotationViews']['has'](_0x385a04['id'])?(_0x2b314d=this['_annotationViews']['get'](_0x385a04['id']),_0x3b679e=_0x2b314d['mainView']):(_0x3b679e=new _0x345576(_0x41e326['locale'],_0x385a04,_0x25c1bc,{'disableComments':this['_disableComments'],'editorConfig':_0x116ce3['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x116ce3['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x116ce3['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x116ce3['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x106c3d(_0x116ce3['get']('locale')),'CommentView':_0x116ce3['get']('comments')['CommentView'],'CommentsListView':_0x302416,'CommentThreadInputView':_0x2020ca,'SuggestionView':_0x2cc564}),_0x3b679e['suggestionView']['acceptButton']['on']('execute',()=>{_0x41e326['editing']['view']['focus']();}),_0x3b679e['suggestionView']['discardButton']['on']('execute',()=>{_0x41e326['editing']['view']['focus']();}),_0x2b314d=_0x54ec3e['createAnnotationView'](this['editor']['locale'],_0x3b679e),_0x2b314d['bind']('isDirty')['to'](_0x3b679e,'isDirty'),_0x2b314d['bind']('length')['to'](_0x3b679e),_0x2b314d['bind']('type')['to'](_0x3b679e,'type',_0x18370e=>'suggestion-'+_0x18370e),this['listenTo'](_0x3b679e,'escape',()=>{_0x41e326['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x385a04['id'],_0x2b314d));const _0x25539a=_0x2f921d['createCommentThreadController'](_0x385a04['commentThread'],_0x3b679e),_0x41e5b5=new ae(_0x41e326,_0x385a04,_0x3b679e,_0x25539a),_0x4af97b=_0x385a04['getAllAdjacentSuggestions']()['filter'](_0x2081c3=>_0x2081c3['isInContent']);_0x3b679e['descriptionParts']=_0x41e326['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x4af97b),this['_suggestionToController']['set'](_0x385a04,_0x41e5b5),this['_viewToController']['set'](_0x3b679e,_0x41e5b5);const _0x4f02ce=_0x54ec3e['createAnnotation']({'view':_0x2b314d,'target':()=>{const _0x4182a9=[],_0x2877a6=_0x385a04['getAllAdjacentSuggestions']()['filter'](_0x416c79=>_0x416c79['isInContent']);for(const _0x1a3a4c of _0x2877a6)_0x4182a9['push'](..._0x1a3a4c['getMarkers']());return _0x1dcb3a(_0x41e326['editing'],_0x4182a9);},'type':()=>'suggestion-'+_0x41e5b5['view']['type']});_0x2f921d['_bindAnnotationToEditors'](_0x3b679e,_0x4f02ce),_0x54ec3e['add'](_0x4f02ce),_0x5bb1f0['registerAnnotation'](_0x4f02ce);}['_destroyController'](_0x21be7d){const _0x5dbbea=this['editor']['plugins']['get']('CommentsRepository'),_0x283e04=this['editor']['plugins']['get']('Annotations'),_0x377131=this['_suggestionToController']['get'](_0x21be7d),_0x59d118=_0x377131['view'],_0x6a36b4=_0x283e04['getByInnerView'](_0x59d118);_0x5dbbea['_unbindEditors'](_0x59d118),_0x6a36b4&&_0x283e04['remove'](_0x6a36b4),this['_suggestionToController']['delete'](_0x21be7d),this['_viewToController']['delete'](_0x59d118),_0x377131['destroy']();}['_updateController'](_0x15b453){if(!_0x15b453['isInContent']||!this['_suggestionToController']['has'](_0x15b453))return;const _0x284c5a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x55064d=this['_suggestionToController']['get'](_0x15b453),_0xbbcbb2=_0x15b453['getAllAdjacentSuggestions']();_0x55064d['view']['descriptionParts']=_0x284c5a['descriptionFactory']['getDescriptions'](_0xbbcbb2);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x487f5c,(_0x48d5c1,_0x352f2d)=>{const _0xe8c716=this['editor']['plugins']['get'](k),_0x2d73d8=this['editor']['plugins']['get'](p);if(!_0x2d73d8['activeMarkers']['length'])return;const {id:_0x4f2150}=_0x2d73d8['_splitMarkerName'](_0x2d73d8['activeMarkers'][0x0]),_0x118c6e=_0xe8c716['getSuggestion'](_0x4f2150);_0x118c6e&&(this['_suggestionToController']['get'](_0x118c6e)['view']['focus'](),_0x352f2d());});}['destroy'](){for(const _0x561ba5 of this['_suggestionToController']['keys']())this['_destroyController'](_0x561ba5);for(const _0x4d097e of this['_annotationViews']['values']())_0x4d097e['mainView']['destroy']();super['destroy']();}}function me(_0x3e2335){return'model'in _0x3e2335;}class k extends _0x3a46d7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x443c75){this['editor']['plugins']['get'](p)['adapter']=_0x443c75;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x23e5ac){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x23e5ac);}['getSuggestions']({skipNotAttached:_0x564983=!0x1,toJSON:_0x3b57a8=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x564983,'toJSON':_0x3b57a8});}['getSuggestion'](_0x17ad91){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x17ad91);}}const T=['Pagination'];class P extends _0x3a46d7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5665cd=this['editor'];if(_0x5665cd['config']['define']('trackChangesData.editorCreator',_0x41a724=>{const _0x402eaf=_0x5665cd['model']['document']['getRootNames']()['reduce']((_0x522efe,_0x3211e4)=>(_0x522efe[_0x3211e4]='',_0x522efe),{});return _0x5665cd['constructor']['create'](_0x402eaf,_0x41a724);}),'function'!=typeof _0x5665cd['config']['get']('trackChangesData')['editorCreator'])throw new _0x551961('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x32ca8d){return N(this['editor'],!0x0,_0x32ca8d);}['getDataWithDiscardedSuggestions'](_0x174113){return N(this['editor'],!0x1,_0x174113);}}class D extends _0x3a46d7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x46ef7a){super(_0x46ef7a),this['result']='end';}['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 v(_0x3f3ba6){return void 0x0!==_0x3f3ba6['getRootsAttributes'];}async function N(_0x219d59,_0x2c28b9,_0x1403a4){const _0x196b79=_0x3277b9(_0x219d59,T);_0x196b79['plugins']['push'](p,D),_0x196b79['rootsAttributes']=v(_0x219d59)?_0x219d59['getRootsAttributes']():void 0x0;const _0x3f40ab=document['createDocumentFragment'](),_0x5e99b0=_0x219d59['config']['get']('trackChangesData')['editorCreator'],_0x38da42=await _0x5e99b0(_0x196b79,()=>function(_0x1782c6){const _0x4b8f70=document['createElement']('div');return _0x1782c6['appendChild'](_0x4b8f70),_0x4b8f70;}(_0x3f40ab));!function(_0x319427,_0x255e6f){const _0x26af3c=_0x319427['model']['document']['getRootNames']()['reduce']((_0x5926ed,_0x1ff90f)=>(_0x5926ed[_0x1ff90f]=_0x319427['data']['get']({'rootName':_0x1ff90f}),_0x5926ed),{}),_0x4d16bb=_0x319427['plugins']['get']('Users')['users']['map'](_0x298203=>({'id':_0x298203['id'],'name':_0x298203['name']})),_0x4771c5=_0x319427['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x578f9b=_0x319427['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x12ddbb=_0x255e6f['plugins']['get']('Users'),_0x358b9d=_0x255e6f['plugins']['get']('TrackChangesEditing'),_0x4208a7=_0x255e6f['plugins']['get']('CommentsRepository');for(const _0x45adb2 of _0x4208a7['getCommentThreads']())_0x45adb2['remove']();for(const _0x373489 of _0x4d16bb)_0x12ddbb['getUser'](_0x373489['id'])||_0x12ddbb['addUser'](_0x373489);_0x12ddbb['me']||_0x12ddbb['useAnonymousUser']();for(const _0x152c42 of _0x578f9b)_0x4208a7['addCommentThread'](_0x152c42);for(const _0x2b2a9c of _0x4771c5)_0x358b9d['addSuggestionData'](_0x2b2a9c);_0x255e6f['data']['set'](_0x26af3c);}(_0x219d59,_0x38da42),_0x38da42['execute'](_0x2c28b9?'acceptAllSuggestions':'discardAllSuggestions');const _0x48b8df=v(_0x38da42)?_0x38da42['getFullData'](_0x1403a4):_0x38da42['data']['get'](_0x1403a4);return await _0x38da42['destroy'](),_0x48b8df;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2d1259,PendingActions as _0x3bfa02,icons as _0xd55615}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x297859,ObservableMixin as _0xe7639c,uid as _0x6322ca,insertToPriorityArray as _0x219b63,priorities as _0xcad5a0,logWarning as _0x11e761,getEnvKeystrokeText as _0x2b26ac,FocusTracker as _0x966cf0,KeystrokeHandler as _0x201fc8,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x460045,View as _0x451fdc,ViewCollection as _0x5c72c1,FocusCycler as _0x432d7b,ViewModel as _0x32a3d2,createDropdown as Qt,SplitButtonView as _0x355e24,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x167bd1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x1f5312,hashObject as _0x52361c,surroundingMarkersDetector as _0xcbec54,ENTER_THREAD_KEYSTROKE as _0x224acd,AriaDescriptionView as _0x524575,setupThreadKeyboardNavigation as _0x2ad6e6,trimHtml as _0x176c99,UserView as _0x2ad5bb,LateFocusButtonView as _0xbdcb8d,getDateTimeFormatter as _0x12fe54,getAllMarkersDomElementsSorted as _0x32350c,sanitizeEditorConfig as _0x484221}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x33bef5,LiveRange as _0x43155d,LivePosition as _0x1065f6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x2590dd,toWidget as _0x2c10f6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x22b78b,set as _0x3e60ca,isEqual as _0x3d91e4,unset as _0x3e937a,omit as Tt}from'lodash-es';import{Delete as _0x54009a,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4f605c,ShiftEnter as _0x1d6e1d}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x13ac25,_0x514d56){super(_0x13ac25),this['_enabledCommands']=_0x514d56,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 _0x2a86fe of this['editor']['commands']['commands']())_0x2a86fe['affectsData']&&!this['_enabledCommands']['has'](_0x2a86fe)&&_0x2a86fe['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x49c663 of this['editor']['commands']['commands']())_0x49c663['affectsData']&&!this['_enabledCommands']['has'](_0x49c663)&&_0x49c663['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x489e03,_0x2020fc){super(_0x489e03),this['_suggestions']=_0x2020fc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x162fc8){const _0x57f7b1=this['_suggestions']['get'](_0x162fc8);if(!_0x57f7b1)throw new _0x297859('track-changes-accept-suggestion-not-found',this);const _0x44aac6=_0x57f7b1['getRanges']();this['editor']['model']['canEditAt'](_0x44aac6)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x57f7b1);}}class R extends ts{['_suggestions'];constructor(_0x5a159f,_0x4d642d){super(_0x5a159f),this['_suggestions']=_0x4d642d,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3cd23e){const _0x25d3f3=this['_suggestions']['get'](_0x3cd23e);if(!_0x25d3f3)throw new _0x297859('track-changes-discard-suggestion-not-found',this);const _0x121a14=_0x25d3f3['getRanges']();this['editor']['model']['canEditAt'](_0x121a14)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x25d3f3);}}function ls(_0x6250df,_0x3f63e5){let _0xbc2242='';return _0xbc2242+=_0x6250df['split']('*')['map']((_0x21e4c0,_0x4353da)=>_0x4353da%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x21e4c0)+'</span>':nn(_0x21e4c0))['join'](''),_0x3f63e5&&(_0xbc2242+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x3f63e5['value']+'\x22\x20title=\x22'+_0x3f63e5['title']+'\x22></span>'),_0xbc2242;}function nn(_0x55e0f8){const _0x341ab6=document['createElement']('span');return _0x341ab6['innerText']=_0x55e0f8,_0x341ab6['innerHTML'];}function ss(_0x2628d8){return _0x2628d8['sort']((_0x2fd966,_0x44ede9)=>'deletion'==_0x2fd966['type']&&'deletion'!=_0x44ede9['type']?-0x1:'deletion'!=_0x2fd966['type']&&'deletion'==_0x44ede9['type']?0x1:0x0);}function to(_0x1e8534,_0x497944){let _0x287590,_0x578606=0x0;const _0x61599c=[],_0x4e4c75=_0x497944['schema'];for(;_0x578606<_0x1e8534['length'];){const _0x2eb232=_0x1e8534[_0x578606],_0x5b9a5a=_0x1e8534[_0x578606+0x1];_0x287590||(_0x287590=_0x497944['createPositionBefore'](_0x2eb232)),on(_0x497944,_0x2eb232,_0x5b9a5a)||(_0x61599c['push'](_0x497944['createRange'](_0x287590,_0x4e4c75['isObject'](_0x2eb232)?_0x497944['createPositionAfter'](_0x2eb232):_0x497944['createPositionAt'](_0x2eb232,'end'))),_0x287590=null),_0x578606++;}return _0x61599c;}function on(_0x35a0d2,_0x541d10,_0x4ccba4){if(!_0x4ccba4)return!0x1;const _0x39c138=_0x35a0d2['createPositionAfter'](_0x541d10),_0x3bf40f=_0x35a0d2['createPositionBefore'](_0x4ccba4);return _0x39c138['isTouching'](_0x3bf40f);}function rs(_0x289779,_0x3c4f2d,_0x4ae411){for(;_0x4ae411['length'];){const _0x313bc7=_0x4ae411['splice'](0x0,0x64);_0x289779['change'](()=>{for(const _0x573020 of _0x313bc7)_0x573020['isInContent']&&_0x3c4f2d['execute'](_0x573020['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x343ce3,_0x4ada13,_0x44f951){super(_0x343ce3),this['_command']=_0x4ada13,this['_suggestions']=_0x44f951,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x42a125=Array['from'](this['_suggestions']['values']())['some'](_0x1c8a2b=>_0x1c8a2b['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x42a125;}['execute'](){const _0x1dfe41=ss(Array['from'](this['_suggestions']['values']()));for(const _0x417edf of _0x1dfe41){const _0x298c19=_0x417edf['getRanges']();if(!this['editor']['model']['canEditAt'](_0x298c19))return;}rs(this['editor']['model'],this['_command'],_0x1dfe41);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x40d1e2,_0x229221,_0x5b876e){super(_0x40d1e2),this['_command']=_0x229221,this['_suggestions']=_0x5b876e,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x519900=this['editor']['model']['document']['selection'],_0x50404f=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x328b5d,_0xc8bd7){const _0x5d2ad3=Array['from'](_0x328b5d['getRanges']()),_0x124da6=new Set();for(const _0x4ac2ff of _0xc8bd7)if(_0x4ac2ff['isInContent']){for(const _0x43e462 of _0x5d2ad3)for(const _0x253b41 of _0x4ac2ff['getRanges']())(_0x43e462['isIntersecting'](_0x253b41)||_0x328b5d['isCollapsed']&&!_0x4ac2ff['isMultiRange']&&_0x4ac2ff['next']&&_0x253b41['end']['isTouching'](_0x43e462['start']))&&_0x124da6['add'](_0x4ac2ff);}return _0x124da6;}(_0x519900,_0x50404f),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2dc42b=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4211c1 of _0x2dc42b){const _0x217105=_0x4211c1['getRanges']();if(!this['editor']['model']['canEditAt'](_0x217105))return;}rs(this['editor']['model'],this['_command'],_0x2dc42b);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xe7639c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x55eea0,_0x55907e){super(),this['id']=_0x55907e['id'],this['type']=_0x55907e['type'],this['subType']=_0x55907e['subType']||null,this['author']=_0x55907e['author'],this['creator']=_0x55907e['creator']||_0x55907e['author'],this['isExternal']=Boolean(_0x55907e['attributes']&&_0x55907e['attributes']['@external']),this['data']=null,this['_model']=_0x55eea0,this['_onAccept']=_0x55907e['onAccept'],this['_onDiscard']=_0x55907e['onDiscard'],this['_onAttributesChange']=_0x55907e['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x55907e['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 _0x488c7b=this;for(;_0x488c7b['previous'];)_0x488c7b=_0x488c7b['previous'];return _0x488c7b;}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'](_0x4bc961){this['_markerNames']['add'](_0x4bc961);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x316028=>this['_model']['markers']['get'](_0x316028))['filter'](_0x335283=>_0x335283);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x22a96e=>{for(const _0x2572b4 of this['getMarkers']())_0x22a96e['removeMarker'](_0x2572b4);}),this['_markerNames']['clear']();}['removeMarker'](_0x1d9891){this['_model']['change'](_0x5ae67d=>{_0x5ae67d['removeMarker'](_0x1d9891);}),this['_markerNames']['delete'](_0x1d9891);}['addRange'](_0x554af4){const _0x2f2986='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x2f2986),this['_model']['change'](_0x28d76d=>{_0x28d76d['addMarker'](_0x2f2986,{'range':_0x554af4,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3087f0){for(const _0x241332 of this['getRanges']())if(_0x241332['isIntersecting'](_0x3087f0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x39ab35=>_0x39ab35['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x55db64,_0xdfdcd6)=>[..._0x55db64,..._0xdfdcd6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x233d20=this['getRanges']();if(0x1!=_0x233d20['length'])return null;const _0x3759b8=_0x233d20[0x0],_0x3b1c0b=_0x3759b8['start']['nodeAfter'],_0x19e9ed=_0x3759b8['end']['nodeBefore'];return _0x3b1c0b instanceof _0x33bef5?_0x3b1c0b!=_0x19e9ed?null:_0x3b1c0b: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 _0x78edc=[];let _0x2f1bbf=this['head'];for(;_0x2f1bbf;)_0x78edc['push'](_0x2f1bbf),_0x2f1bbf=_0x2f1bbf['next'];return _0x78edc;}['setAttribute'](_0x261843,_0x15a16f){const _0x4710c3=_0x22b78b(this['attributes']);_0x3e60ca(_0x4710c3,_0x261843,_0x15a16f),_0x3d91e4(_0x4710c3,this['attributes'])||(this['attributes']=_0x4710c3,this['_onAttributesChange'](_0x4710c3));}['removeAttribute'](_0x5441f6){const _0x147dde=_0x22b78b(this['attributes']);_0x3e937a(_0x147dde,_0x5441f6),_0x3d91e4(_0x147dde,this['attributes'])||(this['attributes']=_0x147dde,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 _0x6322ca()['substr'](0x1,0x5);}}function o(_0x4d511f,_0x27f292,_0x1b0150){const t=_0x4d511f['t'];switch(_0x27f292){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'*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',_0x1b0150);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1b0150);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1b0150);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1b0150);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1b0150);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',_0x1b0150);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1b0150);case'*Replace\x20image\x20URL*':return t('*Replace\x20image\x20URL*');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',_0x1b0150);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1b0150);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1b0150);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1b0150);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1b0150);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1b0150);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1b0150);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1b0150);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1b0150);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1b0150);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1b0150);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1b0150);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1b0150);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1b0150);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1b0150);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1b0150);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'},_0x1b0150);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1b0150);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1b0150);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1b0150);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1b0150);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1b0150);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1b0150);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1b0150);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1b0150);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'},_0x1b0150);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1b0150);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1b0150);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'},_0x1b0150);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 t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1b0150);case'EXTERNAL_IMPORT_WORD_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20a\x20Word\x20document\x20imported\x20by\x20%0','id':'EXTERNAL_IMPORT_WORD_AVATAR'},_0x1b0150);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);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'},_0x1b0150);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x27f292;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x1e74ae,_0xdf3390){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x1e74ae,this['_locale']=_0xdf3390;}['getDescriptions'](_0x5ebd20){const _0x289156=[],_0x2dd8c8=new Set(),_0x58c90a=new Set();for(let _0x5eff80=0x0;_0x5eff80<_0x5ebd20['length'];_0x5eff80++){const _0x498d83=_0x5ebd20[_0x5eff80];if(!_0x498d83['isInContent'])continue;const _0x2974c5=this['_handleCustomCallbackDescription'](_0x498d83);if(_0x2974c5){if(null!=_0x498d83['subType']){if(_0x2dd8c8['has'](_0x498d83['subType']))continue;_0x2dd8c8['add'](_0x498d83['subType']);}_0x289156['push'](_0x2974c5);}else{if('attribute'!=_0x498d83['type'])'insertion'!=_0x498d83['type']&&'deletion'!=_0x498d83['type']||this['_handleInsertRemoveSuggestionDescription'](_0x289156,_0x498d83,_0x5ebd20[_0x5eff80+0x1]);else{const _0x2dd3c0=_0x498d83['data']['key'];if(_0x58c90a['has'](_0x2dd3c0))continue;_0x58c90a['add'](_0x498d83['data']['key']),_0x2dd3c0==m?this['_handleRenameSuggestionDescription'](_0x289156,_0x498d83):this['_handleAttributeSuggestionDescription'](_0x289156,_0x498d83);}}}return this['_resolveDescriptionItems'](_0x289156);}['registerDescriptionCallback'](_0x340684){this['_customCallbacks']['push'](_0x340684);}['registerElementLabel'](_0xd66d64,_0x523287,_0x2993f7=_0xcad5a0['normal']){'function'==typeof _0xd66d64?_0x219b63(this['_itemLabelsCallbacks'],{'matchingCallback':_0xd66d64,'label':_0x523287,'priority':_0x2993f7}):this['_itemLabels']['set'](_0xd66d64,_0x523287);}['registerAttributeLabel'](_0x377437,_0xa0cc99){this['_attributeLabels']['set'](_0x377437,_0xa0cc99);}['getItemLabel'](_0x44fe15,_0x413790=0x1){let _0x1d669b;for(const _0x5bb1f0 of this['_itemLabelsCallbacks'])if(_0x5bb1f0['matchingCallback'](_0x44fe15)){_0x1d669b=_0x5bb1f0['label'];break;}return _0x1d669b||(_0x1d669b=this['_itemLabels']['get'](_0x44fe15['name'])),_0x1d669b?_0x1d669b(_0x413790):0x1!==_0x413790?_0x413790+'\x20'+_0x44fe15['name']+'s':''+_0x44fe15['name'];}['_addDescriptionItems'](_0x3e853f,_0x438b48){const _0x53f3e7=_0x438b48['getFirstRange']()['getWalker'](),_0x491588='insertion'==_0x438b48['type']?'add':'remove';for(const _0x313b22 of _0x53f3e7){const _0x4f33fe=_0x313b22['item'],_0x2b70c2=_0x3e853f[_0x3e853f['length']-0x1];if(_0x4f33fe['is']('$textProxy'))_0x2b70c2&&_0x2b70c2['type']['indexOf']('Container')>-0x1&&_0x3e853f['pop'](),_0x2b70c2&&'text'==_0x2b70c2['type']?_0x2b70c2[_0x491588]+=_0x4f33fe['data']:_0x3e853f['push']({'type':'text','add':'add'==_0x491588?_0x4f33fe['data']:'','remove':'remove'==_0x491588?_0x4f33fe['data']:''});else{if(this['_schema']['isObject'](_0x4f33fe)){const _0x365ce2=_0x4f33fe;if(_0x2b70c2&&_0x2b70c2['type']['indexOf']('Container')>-0x1&&_0x3e853f['pop'](),'elementEnd'==_0x313b22['type'])continue;_0x2b70c2&&_0x2b70c2['type']==_0x491588+'Object'&&_0x2b70c2['element']['name']==_0x365ce2['name']?_0x2b70c2['quantity']++:_0x3e853f['push']({'type':_0x491588+'Object','element':_0x365ce2,'quantity':0x1}),_0x53f3e7['skip'](_0x1d5b1c=>!('elementEnd'==_0x1d5b1c['type']&&_0x1d5b1c['item']==_0x4f33fe));}else{if(this['_schema']['checkChild'](_0x4f33fe,'$text')||_0x4f33fe['is']('element','softBreak')){const _0x43dc09=_0x4f33fe;if('add'==_0x491588&&'elementStart'==_0x313b22['type']||'remove'==_0x491588&&'elementEnd'==_0x313b22['type'])continue;if(_0x2b70c2&&-0x1==_0x2b70c2['type']['indexOf']('Container')){'text'==_0x2b70c2['type']&&(_0x2b70c2[_0x491588]+='\x0a');continue;}let _0x48c8fc;if(_0x48c8fc='add'==_0x491588?_0x43dc09['nextSibling']&&!this['_schema']['isObject'](_0x43dc09['nextSibling'])?_0x43dc09['nextSibling']:null:_0x43dc09['previousSibling']&&!this['_schema']['isObject'](_0x43dc09['previousSibling'])?_0x43dc09['previousSibling']:null,_0x43dc09['isEmpty']||_0x48c8fc&&_0x48c8fc['isEmpty']){const _0x379464=_0x48c8fc&&_0x48c8fc['isEmpty']?_0x48c8fc:_0x43dc09;_0x2b70c2&&_0x2b70c2['type']==_0x491588+'EmptyContainer'&&_0x2b70c2['element']['name']==_0x379464['name']?_0x2b70c2['quantity']++:_0x3e853f['push']({'type':_0x491588+'EmptyContainer','element':_0x379464,'quantity':0x1});}else _0x3e853f['push']({'type':_0x491588+'Container','element':_0x43dc09});}}}}}['_resolveDescriptionItems'](_0x3ad253){const _0x1297a2=this['_locale'],_0x1952c2=[],_0x11f246=[],_0x48430b=[];for(const _0x4f2f30 of _0x3ad253)switch(_0x4f2f30['type']){case'text':if(_0x4f2f30['add']=_0x4f2f30['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4f2f30['remove']=_0x4f2f30['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4f2f30['add']&&''!=_0x4f2f30['remove']){_0x1952c2['push']({'type':'replace','content':o(_0x1297a2,'REPLACE_TEXT',['\x22'+_0x4f2f30['remove']+'\x22','\x22'+_0x4f2f30['add']+'\x22'])});continue;}if(null!=_0x4f2f30['add']['match'](/^ +$/)){_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0',o(_0x1297a2,'ELEMENT_SPACE',_0x4f2f30['add']['length']))});continue;}if(null!=_0x4f2f30['remove']['match'](/^ +$/)){_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0',o(_0x1297a2,'ELEMENT_SPACE',_0x4f2f30['remove']['length']))});continue;}if(''!=_0x4f2f30['add']){_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0','\x22'+_0x4f2f30['add']+'\x22')});continue;}_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0','\x22'+_0x4f2f30['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Insert:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Remove:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'addContainer':_0x1952c2['push']({'type':'insertion','content':o(_0x1297a2,'*Split:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'removeContainer':_0x1952c2['push']({'type':'deletion','content':o(_0x1297a2,'*Merge:*\x20%0',this['getItemLabel'](_0x4f2f30['element'],_0x4f2f30['quantity']))});continue;case'addFormat':_0x11f246['push'](_0x4f2f30['key']);continue;case'removeFormat':_0x48430b['push'](_0x4f2f30['key']);continue;default:_0x1952c2['push'](_0x4f2f30);}if(_0x11f246['length']){const _0x4c826e=_0x11f246['map'](_0xe6c581=>this['_attributeLabels']['has'](_0xe6c581)?this['_attributeLabels']['get'](_0xe6c581):_0xe6c581)['join'](',\x20');_0x1952c2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4c826e)});}if(_0x48430b['length']){const _0x463223=_0x48430b['map'](_0x25f059=>this['_attributeLabels']['has'](_0x25f059)?this['_attributeLabels']['get'](_0x25f059):_0x25f059)['join'](',\x20');_0x1952c2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x463223)});}return _0x1952c2;}['_handleCustomCallbackDescription'](_0x547a63){for(const _0x5b8882 of this['_customCallbacks']){const _0x33c195=_0x5b8882(_0x547a63);if(_0x33c195&&'type'in _0x33c195)return _0x33c195;}}['_handleAttributeSuggestionDescription'](_0x2849db,_0x31a4df){const _0x230697=_0x31a4df['data'],_0x46c498=void 0x0===_0x230697['newValue']?'removeFormat':'addFormat';_0x2849db['push']({'type':_0x46c498,'key':_0x230697['key']});}['_handleRenameSuggestionDescription'](_0x5d873b,_0x5ad371){_0x5d873b['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5ad371['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x55c75a,_0x502a27,_0x438d8e){if(this['_addDescriptionItems'](_0x55c75a,_0x502a27),_0x438d8e&&_0x438d8e['getFirstRange']()&&!_0x502a27['getFirstRange']()['end']['isEqual'](_0x438d8e['getFirstRange']()['start'])){const _0x4439d4=_0x55c75a[_0x55c75a['length']-0x1],_0x176f0c='insertion'==_0x502a27['type']?'add':'remove';_0x4439d4&&'text'==_0x4439d4['type']&&(_0x4439d4[_0x176f0c]+='\x0a');}}}class V extends _0x2d1259{['afterInit'](){const _0x1026ec=this['editor'],_0x4ff3e2=_0x1026ec['plugins']['get']('TrackChangesEditing');_0x1026ec['commands']['get']('showAIAssistant')&&_0x4ff3e2['enableCommand']('showAIAssistant');}}class U extends _0x2d1259{['afterInit'](){const _0x4ed613=this['editor'],_0x2f04d4=_0x4ed613['locale'];if(!_0x4ed613['plugins']['has']('AlignmentEditing'))return;const _0x1bad0d=_0x4ed613['plugins']['get']('TrackChangesEditing');_0x1bad0d['enableDefaultAttributesIntegration']('alignment'),_0x1bad0d['registerBlockAttribute']('alignment'),_0x1bad0d['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x2f04d4,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x105d67=this['editor'],_0x215875=_0x105d67['locale'];_0x105d67['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x31b741=>{if('formatBlock'!=_0x31b741['type'])return;const {data:_0x59924f}=_0x31b741;if(_0x59924f&&'alignment'==_0x59924f['commandName']){const _0x16e917=_0x59924f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x215875,'*Format:*\x20%0',function(_0x14c3dc){switch(_0x14c3dc){case'left':return o(_0x215875,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x215875,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x215875,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x215875,'FORMAT_JUSTIFY_TEXT');}}(_0x16e917))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2d1259{['afterInit'](){const _0x3f26b5=this['editor'],_0x1a5568=_0x3f26b5['plugins']['get']('TrackChangesEditing'),_0x14dc79=_0x3f26b5['locale'];for(const _0x233871 of ti){if(!_0x3f26b5['plugins']['has'](_0x233871))continue;const _0x34ac32=_0x233871['slice'](0x0,-0x7)['toLowerCase'](),_0x202e1d='FORMAT_'+_0x34ac32['toUpperCase']();_0x1a5568['enableDefaultAttributesIntegration'](_0x34ac32),_0x1a5568['registerInlineAttribute'](_0x34ac32),_0x1a5568['descriptionFactory']['registerAttributeLabel'](_0x34ac32,o(_0x14dc79,_0x202e1d));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf072ce=this['editor'],_0x383fd0=_0xf072ce['locale'],_0x557cc9=_0xf072ce['plugins']['get']('TrackChangesEditing');function _0x4fffb7(_0xeb2033,_0x46259d){_0x557cc9['descriptionFactory']['registerDescriptionCallback'](_0x5d372c=>{if('formatInline'!=_0x5d372c['type'])return;const {data:_0x44d161}=_0x5d372c;return _0x44d161&&_0x44d161['commandName']===_0xeb2033?_0x44d161['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x383fd0,'*Format:*\x20%0',_0x46259d)}:{'type':'format','content':o(_0x383fd0,'*Remove\x20format:*\x20%0',_0x46259d)}:void 0x0;});}_0x4fffb7('bold',o(_0x383fd0,'FORMAT_BOLD')),_0x4fffb7('italic',o(_0x383fd0,'FORMAT_ITALIC')),_0x4fffb7('underline',o(_0x383fd0,'FORMAT_UNDERLINE')),_0x4fffb7('code',o(_0x383fd0,'FORMAT_CODE')),_0x4fffb7('strikethrough',o(_0x383fd0,'FORMAT_STRIKETHROUGH')),_0x4fffb7('subscript',o(_0x383fd0,'FORMAT_SUBSCRIPT')),_0x4fffb7('superscript',o(_0x383fd0,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2d1259{['afterInit'](){const _0x5f221e=this['editor'],_0x1a67ed=_0x5f221e['locale'];if(!_0x5f221e['plugins']['has']('BlockQuoteEditing'))return;const _0x4722f4=_0x5f221e['plugins']['get']('TrackChangesEditing'),_0x4b9f78=this['editor']['commands']['get']('blockQuote');_0x4722f4['enableCommand']('blockQuote',(_0x274880,_0x538237={})=>{const _0x1ee0c4=this['editor']['model']['document']['selection'],_0x34ac30=_0x538237&&void 0x0!==_0x538237['forceValue']?_0x538237['forceValue']:!_0x4b9f78['value'];let _0x27b65e=[];if(_0x34ac30){const _0x4b73e1=Array['from'](_0x1ee0c4['getSelectedBlocks']())['filter'](_0x100b1b=>oo(_0x100b1b)||function(_0x1062de,_0x1b50c3){const _0x75892d=_0x1b50c3['checkChild'](_0x1062de['parent'],'blockQuote'),_0x27543e=_0x1b50c3['checkChild'](['$root','blockQuote'],_0x1062de);return _0x75892d&&_0x27543e;}(_0x100b1b,this['editor']['model']['schema']));_0x27b65e=to(_0x4b73e1,_0x5f221e['model']);}else{const _0x491762=Array['from'](_0x1ee0c4['getSelectedBlocks']())['filter'](_0x206951=>oo(_0x206951));_0x27b65e=to(_0x491762,_0x5f221e['model']);}_0x5f221e['model']['change'](()=>{for(const _0x6f8f21 of _0x27b65e)_0x4722f4['markBlockFormat'](_0x6f8f21,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x34ac30}]});});}),_0x4722f4['descriptionFactory']['registerDescriptionCallback'](_0x47daf6=>{const {data:_0x383edd}=_0x47daf6;if(_0x383edd&&'blockQuote'==_0x383edd['commandName']){const _0x3fa0fe=o(_0x1a67ed,'ELEMENT_BLOCK_QUOTE');return _0x383edd['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1a67ed,'*Set\x20format:*\x20%0',_0x3fa0fe)}:{'type':'format','content':o(_0x1a67ed,'*Remove\x20format:*\x20%0',_0x3fa0fe)};}});}}function oo(_0x34d871){return'blockQuote'==_0x34d871['parent']['name'];}class L extends _0x2d1259{['afterInit'](){const _0x21dd11=this['editor'];_0x21dd11['plugins']['has']('CaseChange')&&(_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x21dd11['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2d1259{['afterInit'](){const _0x49d702=this['editor'];_0x49d702['commands']['get']('ckbox')&&_0x49d702['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2d1259{['afterInit'](){const _0x5d1838=this['editor'];if(!_0x5d1838['plugins']['has']('CodeBlock'))return;const _0x1e4272=_0x5d1838['plugins']['get']('TrackChangesEditing'),_0x226fcf=_0x5d1838['locale'],_0xf13b34=_0x5d1838['config']['get']('codeBlock')['languages'],_0x549cc2=_0x5d1838['commands']['get']('codeBlock');_0x1e4272['enableCommand']('indentCodeBlock'),_0x1e4272['enableCommand']('outdentCodeBlock'),_0x1e4272['enableCommand']('codeBlock',(_0x33f3d1,_0x23c8a4={})=>{const _0x448154=_0x5d1838['model'],_0x4e8b00=_0x5d1838['model']['document']['selection'],_0x30e5c7=_0x23c8a4&&void 0x0!==_0x23c8a4['forceValue']?_0x23c8a4['forceValue']:!_0x549cc2['value'];let _0x124574;_0x23c8a4['language']||(_0x23c8a4['language']=_0xf13b34[0x0]['language']),_0x124574=_0x30e5c7?Array['from'](_0x4e8b00['getSelectedBlocks']())['filter'](_0x415819=>eo(_0x415819)||function(_0x362df6,_0x4dcfd9){if(_0x362df6['is']('rootElement')||_0x4dcfd9['isLimit'](_0x362df6))return!0x1;return _0x4dcfd9['checkChild'](_0x362df6['parent'],'codeBlock');}(_0x415819,_0x448154['schema'])):Array['from'](_0x4e8b00['getSelectedBlocks']())['filter'](_0x4e0f86=>eo(_0x4e0f86));const _0x2c1249=to(_0x124574,_0x448154);_0x448154['change'](()=>{for(const _0x541d17 of _0x2c1249)_0x1e4272['markBlockFormat'](_0x541d17,{'commandName':'codeBlock','commandParams':[{..._0x23c8a4,'forceValue':_0x30e5c7}],'formatGroupId':'blockName'});});}),(_0x1e4272['descriptionFactory']['registerElementLabel']('codeBlock',_0x348fcb=>o(_0x226fcf,'ELEMENT_CODE_BLOCK',_0x348fcb)),_0x1e4272['descriptionFactory']['registerDescriptionCallback'](_0x71d3f0=>{if('formatBlock'!=_0x71d3f0['type'])return;const _0x3ac3ac=_0x226fcf['t'],{data:_0x56219f}=_0x71d3f0;if(!_0x56219f||'codeBlock'!=_0x56219f['commandName'])return;const _0x378ad2=_0x56219f['commandParams'][0x0]['language'],_0x30e91e=_0x3ac3ac(_0xf13b34['find'](_0x45854c=>_0x45854c['language']===_0x378ad2)['label'])['toLowerCase']();return _0x56219f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x226fcf,'*Set\x20format:*\x20%0',o(_0x226fcf,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x30e91e+')')}:{'type':'format','content':o(_0x226fcf,'*Remove\x20format:*\x20%0',o(_0x226fcf,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1c2027){return'codeBlock'==_0x1c2027['name'];}class q extends _0x2d1259{['afterInit'](){const _0x36d951=this['editor'];if(!_0x36d951['plugins']['has']('CommentsEditing'))return;_0x36d951['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0xb7772,_0x231f89,_0x56c1ac){const _0x147e48=[];for(const _0x38596e of _0x231f89['getItems']())_0x38596e['hasAttribute'](_0xb7772)&&_0x147e48['push'](_0x56c1ac['createRangeOn'](_0x38596e));return _0x147e48;}function _e(_0x5626d4,_0x246d8a,{showActiveMarker:_0x23edce=!0x0}={}){const _0x4e175d=_0x5626d4['plugins']['get']('TrackChangesEditing');return(_0x9b3430,_0x4d5c77,_0x5a4e49)=>{if(!_0x5a4e49['consumable']['test'](_0x4d5c77['markerRange'],_0x9b3430['name']))return;const _0x17c056=_0x4d5c77['markerRange']['getWalker'](),_0x26ee47=_0x4d5c77['markerRange']['start'],_0x48fb9f=_0x5626d4['model']['schema'];let _0x191074=null,_0x20db37=null,_0x52739c=!0x1,_0x3f34b2=!0x1;for(const _0x2d126c of _0x17c056){const _0x4108e7=_0x2d126c['item'];_0x52739c=_0x52739c||_0x48fb9f['isContent'](_0x4108e7);const _0x2a1d2c=_0x5a4e49['mapper']['toViewElement'](_0x4108e7);if(_0x2a1d2c&&_0x2a1d2c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d126c['type']&&(_0x48fb9f['isBlock'](_0x4108e7)&&!_0x48fb9f['isLimit'](_0x4108e7)&&(_0x4108e7['nextSibling']||_0x26ee47['isAtEnd']?_0x191074&&_0x191074['parent']==_0x4108e7||(_0x191074=_0x4108e7,_0x300c2e(_0x2d126c['previousPosition']),_0x3f34b2=!0x0):_0x20db37=_0x20db37||_0x2d126c['previousPosition']));}function _0x300c2e(_0xa7d5c8){const {authorId:_0x41b47b}=_0x4e175d['_splitMarkerName'](_0x4d5c77['markerName']),_0x4d29f1=_0x5a4e49['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x246d8a,'data-author-id':_0x41b47b}),_0x3b8e3e=_0x5a4e49['mapper']['toViewPosition'](_0xa7d5c8);_0x23edce&&_0x4e175d['activeMarkers']['includes'](_0x4d5c77['markerName'])&&_0x5a4e49['writer']['addClass']('ck-suggestion-marker--active',_0x4d29f1),_0x5a4e49['writer']['insert'](_0x3b8e3e,_0x4d29f1),_0x5a4e49['mapper']['bindElementToMarker'](_0x4d29f1,_0x4d5c77['markerName']);}_0x52739c||_0x3f34b2||!_0x20db37||_0x300c2e(_0x20db37);};}class z extends _0x2d1259{static get['requires'](){return[_0x54009a];}['init'](){const _0x2dbe39=this['editor'],_0xebec61=_0x2dbe39['plugins']['get']('TrackChangesEditing');_0xebec61['enableCommand']('delete');const _0x3d47e4=_0x2dbe39['commands']['get']('deleteForward');_0xebec61['enableCommand']('deleteForward',(_0x2a7603,_0x11a502={})=>{const _0x55abcb=_0x2dbe39['model']['createSelection'](_0x2dbe39['model']['document']['selection']);_0x55abcb['isCollapsed']&&_0x2dbe39['model']['modifySelection'](_0x55abcb,{'direction':'forward','unit':_0x11a502['unit']});const _0x25efdd=_0x55abcb['getFirstRange'](),_0x221ba8=_0x43155d['fromRange'](_0x25efdd);let _0x484b0c;_0x2a7603(_0x11a502),_0x484b0c='$graveyard'==_0x221ba8['root']['rootName']?_0x2dbe39['model']['createRange'](_0x25efdd['start']):_0x2dbe39['model']['createRange'](_0x221ba8['start'],_0x221ba8['end']),_0x221ba8['detach'](),_0x2dbe39['model']['enqueueChange'](_0x3d47e4['buffer']['batch'],_0x4139cb=>{_0x3d47e4['buffer']['lock'](),_0x4139cb['setSelection'](_0x4139cb['createRange'](_0x484b0c['end'])),_0x3d47e4['buffer']['unlock']();});}),_0x2dbe39['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2dbe39,'merge'),{'priority':'high'}),_0x2dbe39['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x202312,_0x19ea07,_0x287ee0)=>{_0x287ee0['options']['showSuggestionHighlights']&&_e(_0x2dbe39,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x202312,_0x19ea07,_0x287ee0);},{'priority':'high'}),_0x2dbe39['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x47e557,_0x320984,_0x2570e3)=>{const _0x48b490=_0x2570e3['mapper']['markerNameToElements'](_0x320984['markerName']);if(_0x48b490){for(const _0x55ecb9 of _0x48b490)_0x55ecb9['is']('uiElement')&&(_0x2570e3['mapper']['unbindElementFromMarkerName'](_0x55ecb9,_0x320984['markerName']),_0x2570e3['writer']['remove'](_0x55ecb9));}},{'priority':'high'});}}class K extends _0x2d1259{['afterInit'](){const _0x330f45=this['editor'];if(!_0x330f45['plugins']['has']('ListEditing'))return;const _0x19a53f=_0x330f45['locale'],_0xbacaf5=_0x330f45['plugins']['get']('TrackChangesEditing'),_0x2d5eba=_0x330f45['plugins']['has']('TodoListEditing'),_0x4dfeed=!!_0x330f45['config']['get']('list.multiBlock');function _0x39a235(_0x4560f4){return{'type':'format','content':''+o(_0x19a53f,'*Set\x20format:*\x20%0',_0x4560f4)};}function _0x577d89(_0x5f0e87){return{'type':'format','content':''+o(_0x19a53f,'*Remove\x20format:*\x20%0',_0x5f0e87)};}_0xbacaf5['enableDefaultAttributesIntegration']('numberedList'),_0xbacaf5['enableDefaultAttributesIntegration']('bulletedList'),_0xbacaf5['enableDefaultAttributesIntegration']('customNumberedList'),_0xbacaf5['enableDefaultAttributesIntegration']('customBulletedList'),_0xbacaf5['enableDefaultAttributesIntegration']('indentList'),_0xbacaf5['enableDefaultAttributesIntegration']('outdentList'),_0xbacaf5['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xbacaf5['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xbacaf5['registerBlockAttribute']('listItemId'),_0xbacaf5['registerBlockAttribute']('listType'),_0xbacaf5['registerBlockAttribute']('listIndent'),_0x4dfeed&&(_0xbacaf5['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xbacaf5['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2d5eba&&(_0xbacaf5['enableDefaultAttributesIntegration']('todoList'),_0xbacaf5['enableDefaultAttributesIntegration']('checkTodoList'),_0xbacaf5['registerBlockAttribute']('todoListChecked'),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x507082=>{const {data:_0x33dfa1}=_0x507082;if(_0x33dfa1&&'todoListChecked'==_0x33dfa1['key'])return{'type':'format','content':_0x33dfa1['newValue']?o(_0x19a53f,'*Check\x20item*'):o(_0x19a53f,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5d2609=>{if(_0x5d2609['batch']['isUndo'])return!0x1;let _0x3343b3=!0x1;const _0x5312c3=_0xbacaf5['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x444c78=>'todoListChecked'===_0xbacaf5['_getAttributeKey'](_0x444c78));for(const _0xffd2dc of _0x5312c3){'todo'!=_0xffd2dc['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xbacaf5['_findSuggestions'](_0xffd2dc['getFirstRange'](),'attribute')['find'](_0x3e7e70=>'listType'===_0xbacaf5['_getAttributeKey'](_0x3e7e70['suggestion']))||(_0x5d2609['removeMarker'](_0xffd2dc['getFirstMarker']()),_0x3343b3=!0x0));}return _0x3343b3;})),_0xbacaf5['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x19a53f,'FORMAT_INDENT'));const _0x5d96f8={'type':'format','content':''};_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x458a09=>{const {data:_0x367f61}=_0x458a09;if(!_0x367f61||'listType'!=_0x367f61['key'])return;let _0x3969c5=_0x458a09['head'];for(;_0x3969c5;){if(_0x3969c5['data']&&(('listStyle'==_0x3969c5['data']['key']||'listMarkerStyle'==_0x3969c5['data']['key'])&&(_0x3969c5['data']['newValue']&&'default'!=_0x3969c5['data']['newValue']||'default'!=_0x3969c5['data']['oldValue']&&!_0x367f61['newValue'])||!_0x4dfeed&&_0x3969c5['data']['key']==m))return _0x5d96f8;_0x3969c5=_0x3969c5['next'];}if(null==_0x367f61['newValue'])switch(_0x367f61['oldValue']){case'bulleted':return _0x577d89(o(_0x19a53f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x577d89(o(_0x19a53f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x577d89(o(_0x19a53f,'ELEMENT_TODO_LIST'));}switch(_0x367f61['newValue']){case'bulleted':return _0x39a235(o(_0x19a53f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x39a235(o(_0x19a53f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x39a235(o(_0x19a53f,'ELEMENT_TODO_LIST'));}}),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x3f365b=>{const {data:_0x112163}=_0x3f365b;if(_0x112163&&'listIndent'==_0x112163['key'])return null==_0x112163['newValue']||null==_0x112163['oldValue']&&0x0==_0x112163['newValue']?_0x5d96f8:void 0x0;}),_0xbacaf5['descriptionFactory']['registerDescriptionCallback'](_0x39e6f9=>{if('attribute'!=_0x39e6f9['type'])return;const {data:_0x5630f2}=_0x39e6f9;if(!_0x5630f2||'listItemId'!=_0x5630f2['key'])return;const _0x5d5f6b=Ee(_0x39e6f9);return'newValue'==_0x5d5f6b?{'type':'format','content':o(_0x19a53f,'*Merge:*\x20list\x20item')}:'oldValue'==_0x5d5f6b?{'type':'format','content':o(_0x19a53f,'*Split:*\x20list\x20item')}:_0x5d96f8;}),_0x330f45['model']['document']['registerPostFixer'](_0xfc81f4=>this['listItemIdFixer'](_0xfc81f4)),_0x330f45['model']['document']['registerPostFixer'](_0x184bbe=>this['noTrackChangesFixer'](_0x184bbe)),_0x330f45['model']['document']['on']('change:data',(_0x507d10,_0x369fa2)=>{if(_0x369fa2['isUndo']||!_0x369fa2['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x14c97e){if(_0x14c97e['batch']['isUndo']||!_0x14c97e['batch']['isLocal'])return!0x1;let _0x234a9f=!0x1;const _0x190b9a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf04e87=>_0xf04e87['data']&&'listItemId'==_0xf04e87['data']['key'])['filter'](_0x3e2b01=>_0x3e2b01['data']['newValue']&&_0x3e2b01['data']['oldValue']);for(const _0x1f1486 of _0x190b9a)Ee(_0x1f1486)||(_0x14c97e['removeMarker'](_0x1f1486['getFirstMarker']()),_0x234a9f=!0x0);return _0x234a9f;}['noTrackChangesFixer'](_0x5e19e4){if(_0x5e19e4['batch']['isUndo']||!_0x5e19e4['batch']['isLocal'])return!0x1;const _0x176dfe=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x176dfe['trackChangesCommand']['value'])return!0x1;let _0x165b00=!0x1;const _0x173a1f=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x304e33=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x58977e=>'attribute'==_0x58977e['type'])['filter'](_0x374512=>_0x173a1f['includes'](_0x374512['attributeKey']));if(0x0==_0x304e33['length'])return _0x165b00;for(const _0x257402 of _0x304e33){const _0xfa95f7=_0x176dfe['_findSuggestions'](_0x257402['range'],'attribute')['filter'](_0x3242bd=>!_0x3242bd['meta']['isNextTo'])['map'](_0x1d4268=>_0x1d4268['suggestion'])['filter'](_0x5b366f=>{const _0x429b43=_0x176dfe['_getAttributeKey'](_0x5b366f);return _0x173a1f['includes'](_0x429b43);});if(_0xfa95f7['length']){for(const _0xc6bce9 of _0xfa95f7)_0x5e19e4['removeMarker'](_0xc6bce9['getFirstMarker']());_0x165b00=!0x0;}}return _0x165b00;}['assureChains'](){const _0x4a453a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x229b1a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x3fd0f4;const _0x44f2ff=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x57d1ce=>{if(_0x57d1ce['data']['oldRange']||!_0x57d1ce['data']['newRange'])return null;if(!_0x57d1ce['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x43a572}=_0x4a453a['_splitMarkerName'](_0x57d1ce['name']);if(!_0x4a453a['hasSuggestion'](_0x43a572))return null;const _0x3b1c33=_0x4a453a['getSuggestion'](_0x43a572);return _0x229b1a['includes'](_0x3b1c33['data']['key']);})['map'](_0x1c9942=>{const {id:_0x586659}=_0x4a453a['_splitMarkerName'](_0x1c9942['name']),_0x465fe3=_0x4a453a['getSuggestion'](_0x586659);return _0x3fd0f4=_0x465fe3['attributes']['groupId'],_0x465fe3['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x44f2ff['size'])return;const _0x4ffffa=_0x4a453a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13ebef=>'attribute'==_0x13ebef['type']&&_0x13ebef['data']&&_0x229b1a['includes'](_0x13ebef['data']['key'])&&_0x13ebef['attributes']['groupId']!=_0x3fd0f4)['map'](_0x23e294=>({'listItem':_0x23e294['getFirstRange']()['start']['nodeAfter'],'groupId':_0x23e294['attributes']['groupId']})),_0x27f2d7=new Set();for(const {groupId:_0x2c2493,listItem:_0x26b327}of _0x4ffffa)_0x44f2ff['has'](_0x26b327)&&_0x27f2d7['add'](_0x2c2493);for(const _0x270bde of _0x4a453a['getSuggestions']())_0x27f2d7['has'](_0x270bde['attributes']['groupId'])&&_0x270bde['setAttribute']('groupId',_0x3fd0f4);}['_supportLegacySuggestions'](){const _0x2aabfa=this['editor'],_0x431ab7=_0x2aabfa['locale'],_0x21c8bb=_0x2aabfa['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x21c8bb['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x6627f3,_0x49445f){const _0xfe3050=[];for(let _0x4c2c2b of _0x6627f3)_0x4c2c2b['start']['nodeAfter']===_0x4c2c2b['end']['parent']&&(_0x4c2c2b=_0x2aabfa['model']['createRange'](_0x2aabfa['model']['createPositionAt'](_0x4c2c2b['start']['nodeAfter'],0x0))),_0xfe3050['push'](_0x4c2c2b);_0x2aabfa['model']['change'](_0x402294=>{const _0x1f8f74=_0x2aabfa['model']['document']['selection'],_0x401ef3=Array['from'](_0x1f8f74['getRanges']())['map'](_0x57fe97=>_0x43155d['fromRange'](_0x57fe97));_0x402294['setSelection'](_0xfe3050),_0x2aabfa['commands']['get'](_0x49445f['commandName'])['refresh'](),_0x49445f['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2aabfa['execute'](_0x49445f['commandName'],..._0x49445f['commandParams']),_0x402294['setSelection'](_0x401ef3);for(const _0x45e933 of _0x401ef3)_0x45e933['detach']();});}),_0x21c8bb['descriptionFactory']['registerElementLabel'](function(_0x3f0add){const _0x27646c=!_0x2aabfa['model']['schema']['isObject'](_0x3f0add),_0x4e29dc=_0x3f0add['previousSibling'],_0x44398c=_0x3f0add['nextSibling'],_0x231586=_0x3f0add['getAttribute']('listItemId'),_0x22f781=!_0x4e29dc||_0x4e29dc['getAttribute']('listItemId')!==_0x231586,_0x529f74=!_0x44398c||_0x44398c['getAttribute']('listItemId')!==_0x231586;return _0x27646c&&Boolean(_0x231586)&&_0x22f781&&_0x529f74;},_0x177a27=>o(_0x431ab7,'ELEMENT_LIST_ITEM',_0x177a27));}['_registerLegacyDescription'](){const _0x4f66b5=this['editor'],_0x2315ac=_0x4f66b5['locale'];function _0x59cfdd(_0x2878e6){const _0x2880d0=_0x4f66b5['commands']['get']('bulletedList')['value'],_0x2c1da5=_0x4f66b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x2878e6?_0x2880d0:_0x2c1da5;}_0x4f66b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x13268e){if('formatBlock'!=_0x13268e['type'])return;const {data:_0x13a2ec}=_0x13268e;if(!_0x13a2ec)return;let _0x457879,_0x3f6344,_0x254da8,_0xd9ead0;switch(_0x13a2ec['commandName']){case'bulletedList':_0x254da8=_0x13a2ec['commandParams'][0x0]['forceValue'],_0xd9ead0=_0x59cfdd(_0x13a2ec['commandName']),_0x457879=_0x254da8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd9ead0&&_0x4f66b5['config']['get']('list.multiBlock')||(_0x457879='*Change\x20to:*\x20%0'),_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x254da8=_0x13a2ec['commandParams'][0x0]['forceValue'],_0xd9ead0=_0x59cfdd(_0x13a2ec['commandName']),_0x457879=_0x254da8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xd9ead0&&_0x4f66b5['config']['get']('list.multiBlock')||(_0x457879='*Change\x20to:*\x20%0'),_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x457879='*Indent:*\x20%0',_0x3f6344={'type':'format','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x457879=function(_0x47c5d3){const _0x595065=_0x47c5d3['getFirstRange']();let _0x21e4b9=_0x595065['start']['nodeAfter'];for(;_0x21e4b9&&_0x595065['containsItem'](_0x21e4b9);){if(_0x21e4b9['getAttribute']('listIndent')>0x0)return!0x1;_0x21e4b9=_0x21e4b9['nextSibling'];}return!0x0;}(_0x13268e)?o(_0x2315ac,'*Format:*\x20remove\x20from\x20%0',o(_0x2315ac,function(_0x3ea314){return'ELEMENT_'+_0x3ea314['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x13268e))):o(_0x2315ac,'*Outdent:*\x20%0',o(_0x2315ac,'ELEMENT_LIST_ITEM')),_0x3f6344={'type':'format','content':_0x457879};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13a2ec['multipleBlocks']&&(_0x457879='*Merge:*\x20%0',_0x3f6344={'type':'deletion','content':o(_0x2315ac,_0x457879,o(_0x2315ac,'ELEMENT_LIST_ITEM'))});}return _0x3f6344;});}}function Ee(_0x14c003){let _0x324aec=_0x14c003['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x324aec;){const _0x3cbc9a=_0x324aec['getAttribute']('listItemId');if(!_0x3cbc9a)return!0x1;if(_0x3cbc9a==_0x14c003['data']['newValue'])return'newValue';if(_0x3cbc9a==_0x14c003['data']['oldValue'])return'oldValue';_0x324aec=_0x324aec['previousSibling'];}return!0x1;}class pe extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x5d1c4c=this['editor']['config']['get']('list.properties'),_0x236b2f=this['editor']['plugins']['get']('TrackChangesEditing');_0x5d1c4c['styles']&&(_0x236b2f['enableDefaultAttributesIntegration']('listStyle'),_0x236b2f['registerBlockAttribute']('listStyle')),_0x5d1c4c['reversed']&&(_0x236b2f['enableDefaultAttributesIntegration']('listReversed'),_0x236b2f['registerBlockAttribute']('listReversed')),_0x5d1c4c['startIndex']&&(_0x236b2f['enableDefaultAttributesIntegration']('listStart'),_0x236b2f['registerBlockAttribute']('listStart'));const _0x6aef0={'type':'format','content':''};_0x236b2f['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x2b6f3a=this['editor']['locale'];_0x236b2f['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x2b6f3a,'FORMAT_LIST_REVERSED')),_0x236b2f['descriptionFactory']['registerDescriptionCallback'](_0x16ae9d=>{const {data:_0x56df56}=_0x16ae9d;if(_0x56df56&&'listReversed'==_0x56df56['key'])return null==_0x56df56['newValue']||0x0==_0x56df56['newValue']&&null==_0x56df56['oldValue']?_0x6aef0:void 0x0;}),_0x236b2f['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x2b6f3a,'FORMAT_LIST_START')),_0x236b2f['descriptionFactory']['registerDescriptionCallback'](_0x48c9b0=>{const {data:_0x2c1c85}=_0x48c9b0;if(_0x2c1c85&&'listStart'==_0x2c1c85['key'])return null==_0x2c1c85['newValue']||0x1==_0x2c1c85['newValue']&&null==_0x2c1c85['oldValue']?_0x6aef0:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x38140b=>{if(_0x38140b['batch']['isUndo'])return!0x1;let _0x44de5a=!0x1;const _0x5ad629=_0x236b2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c3d09=>{const _0x4e61fe=_0x236b2f['_getAttributeKey'](_0x3c3d09);return'listStart'==_0x4e61fe||'listReversed'==_0x4e61fe;});for(const _0x355571 of _0x5ad629){const _0x58bcf7=_0x355571['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x58bcf7||'customNumbered'==_0x58bcf7)continue;_0x236b2f['_findSuggestions'](_0x355571['getFirstRange'](),'attribute')['find'](_0x2cafb3=>'listType'==_0x236b2f['_getAttributeKey'](_0x2cafb3['suggestion']))||(_0x38140b['removeMarker'](_0x355571['getFirstMarker']()),_0x44de5a=!0x0);}return _0x44de5a;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1130c8){const _0x2f04e0=this['editor']['locale'],{data:_0x44cdc7}=_0x1130c8,_0x162842={'type':'format','content':''};if(!_0x44cdc7||'listStyle'!=_0x44cdc7['key'])return;if(!_0x44cdc7['oldValue'])return'default'==_0x44cdc7['newValue']?_0x162842:{'type':'format','content':''+o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['newValue'])))};if(!_0x44cdc7['newValue']){if('default'==_0x44cdc7['oldValue'])return _0x162842;let _0x2fe1b2=_0x1130c8['head'];for(;_0x2fe1b2;){if(_0x2fe1b2['data']&&'listType'==_0x2fe1b2['data']['key']&&_0x2fe1b2['data']['newValue'])return _0x162842;_0x2fe1b2=_0x2fe1b2['next'];}return{'type':'format','content':''+o(_0x2f04e0,'*Remove\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['oldValue'])))};}if('default'!=_0x44cdc7['newValue'])return{'type':'format','content':''+o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,this['_getTranslationKeyForListStyle'](_0x44cdc7['newValue'])))};let _0x294f01=_0x1130c8['head'];for(;_0x294f01;){if(_0x294f01['data']&&'listType'==_0x294f01['data']['key']&&_0x294f01['data']['newValue']&&_0x294f01['data']['oldValue'])return _0x162842;_0x294f01=_0x294f01['next'];}return{'type':'format','content':o(_0x2f04e0,'*Set\x20format:*\x20%0',o(_0x2f04e0,'ELEMENT_'+_0x1130c8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2685cd=this['editor'],_0x1ab49b=_0x2685cd['locale'];_0x2685cd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29f849=>{if('formatBlock'!=_0x29f849['type'])return;const {data:_0x28d83d}=_0x29f849;if(!_0x28d83d)return;let _0x52b46a,_0x5c5e38;switch(_0x28d83d['commandName']){case'listStyle':_0x52b46a='*Change\x20to:*\x20%0',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a,o(_0x1ab49b,this['_getTranslationKeyForListStyle'](_0x28d83d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x52b46a=_0x28d83d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a)};break;case'listStart':_0x52b46a='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5c5e38={'type':'format','content':o(_0x1ab49b,_0x52b46a,_0x28d83d['commandParams'][0x0]['startIndex'])};}return _0x5c5e38;});}['_getTranslationKeyForListStyle'](_0x4b0558){return'ELEMENT_'+function(_0x19e33b){if(ye['includes'](_0x19e33b))return'bulleted';if(Se['includes'](_0x19e33b))return'numbered';return null;}(_0x4b0558)['toUpperCase']()+'_LIST_'+_0x4b0558['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2d1259{static get['requires'](){return[_0x4f605c];}['init'](){const _0xa288d3=this['editor'],_0x547158=_0xa288d3['plugins']['get']('TrackChangesEditing'),_0x505247=_0xa288d3['commands']['get']('enter');_0x547158['enableCommand']('enter',()=>{_0xa288d3['model']['change'](_0x35696f=>{const _0x1c3c0e=_0xa288d3['model']['document']['selection'],_0x99cedc=_0x1c3c0e['getFirstPosition'](),_0x28083c=_0x43155d['fromRange'](_0x1c3c0e['getFirstRange']());if(_0x505247['enterBlock'](_0x35696f)){const _0x1b1cd1=_0xa288d3['model']['createPositionAt'](_0x99cedc['parent']['nextSibling'],0x0),_0x20f13f=_0x35696f['createRange'](_0x99cedc,_0x1b1cd1);_0x547158['markInsertion'](_0x20f13f);}else _0x35696f['setSelection'](_0x35696f['createRange'](_0x28083c['end']));_0x28083c['detach'](),_0x505247['fire']('afterExecute',{'writer':_0x35696f});});}),_0xa288d3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xa288d3,'split'),{'priority':'high'}),_0xa288d3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x36ea8e,_0x253875,_0x53b4cf)=>{const _0x4fa719=_0x53b4cf['mapper']['markerNameToElements'](_0x253875['markerName']);if(_0x4fa719){for(const _0x12871e of _0x4fa719)_0x12871e['hasClass']('ck-suggestion-marker-split')&&(_0x53b4cf['mapper']['unbindElementFromMarkerName'](_0x12871e,_0x253875['markerName']),_0x53b4cf['writer']['remove'](_0x12871e));}},{'priority':'high'}),_0xa288d3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x27f2fd,_0x46d31b,_0x44d50d)=>{_0x44d50d['options']['showSuggestionHighlights']&&_e(_0xa288d3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x27f2fd,_0x46d31b,_0x44d50d);},{'priority':'high'});}}class X extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x33676f=this['editor']['plugins']['get']('TrackChangesEditing');_0x33676f['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x33676f['enableCommand']('findNext'),_0x33676f['enableCommand']('findPrevious'),_0x33676f['enableCommand']('replace'),_0x33676f['enableCommand']('replaceAll');}['handleFindCommand'](_0x87ee9d,_0x450802,_0x1fba5d={}){const _0x256fa4=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x87ee9d(_0x1ea9b8=>{let _0x56b7f7=('string'==typeof _0x450802?_0x256fa4['findByTextCallback'](_0x450802,_0x1fba5d):_0x450802)(_0x1ea9b8);Array['isArray'](_0x56b7f7)&&(_0x56b7f7={'results':_0x56b7f7,'searchText':'string'==typeof _0x450802?_0x450802:''});const _0xee4e9=_0x56b7f7['results']['filter'](_0x2a9c9d=>!0x1===this['_isInDeletionRange'](_0x2a9c9d,_0x1ea9b8['item']));return{..._0x56b7f7,'results':_0xee4e9};},_0x1fba5d);}['_isInDeletionRange'](_0x3cb35d,_0x33593a){const _0x2530c3=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x33593a,_0x3cb35d['start']),this['editor']['model']['createPositionAt'](_0x33593a,_0x3cb35d['end']));for(const _0x5015d7 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x2530c3['getIntersection'](_0x5015d7['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2d1259{['afterInit'](){const _0x2d334c=this['editor']['locale'],_0x37b49d=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x36cf81,commandName:_0x4f87bc}of ro)this['editor']['plugins']['has'](_0x36cf81)&&(_0x37b49d['enableDefaultAttributesIntegration'](_0x4f87bc),_0x37b49d['registerInlineAttribute'](_0x4f87bc));_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2d334c,'FORMAT_FONT_SIZE')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2d334c,'FORMAT_FONT_FAMILY')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2d334c,'FORMAT_FONT_COLOR')),_0x37b49d['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2d334c,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xf9a249=this['editor'],_0x38bb06=_0xf9a249['locale'];_0xf9a249['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x18307a=>{const _0x24b93c=_0x38bb06['t'];if('formatInline'!=_0x18307a['type'])return;const {data:_0x53cd64}=_0x18307a;if(null!=_0x53cd64){if('fontSize'==_0x53cd64['commandName']){const _0xa2e643=_0x53cd64['commandParams'][0x0]['value'];if(_0xa2e643){const _0x3fb3a8=_0x24b93c(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4d4b68=>_0x4d4b68['model']==_0xa2e643)['title'])['toLowerCase']();return{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20size:*\x20%0',_0x3fb3a8)};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x53cd64['commandName']){const _0x2a155f=_0x53cd64['commandParams'][0x0]['value'];return _0x2a155f?{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20family:*\x20%0',_0x2a155f)}:{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20family*')};}if('fontColor'==_0x53cd64['commandName']){const _0xae0499=_0x53cd64['commandParams'][0x0]['value'];if(_0xae0499){const _0x12b5c2=_0x460045(this['editor']['config']['get']('fontColor.colors'))['find'](_0x22b285=>_0x22b285['model']==_0xae0499);let _0x577503=_0xae0499,_0x8d9825='';return _0x12b5c2&&(_0x577503=_0x12b5c2['label'],_0x8d9825=_0x24b93c(_0x577503)['toLowerCase']()),{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20color:*\x20%0',_0x8d9825)['trim'](),'color':{'value':_0xae0499,'title':_0x8d9825||_0x577503}};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x53cd64['commandName']){const _0x3d3f54=_0x53cd64['commandParams'][0x0]['value'];if(_0x3d3f54){const _0x5b016d=_0x460045(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5c054a=>_0x5c054a['model']==_0x3d3f54);let _0xbc493f=_0x3d3f54,_0x364b3e='';return _0x5b016d&&(_0xbc493f=_0x5b016d['label'],_0x364b3e=_0x24b93c(_0xbc493f)['toLowerCase']()),{'type':'format','content':o(_0x38bb06,'*Set\x20font\x20background\x20color:*\x20%0',_0x364b3e)['trim'](),'color':{'value':_0x3d3f54,'title':_0x364b3e||_0xbc493f}};}return{'type':'format','content':o(_0x38bb06,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2d1259{['afterInit'](){const _0x1a64fd=this['editor'],_0xc1c1c2=_0x1a64fd['plugins']['get']('TrackChangesEditing'),_0x1057ce=_0x1a64fd['commands']['get']('copyFormat'),_0x221bb2=_0x1a64fd['commands']['get']('pasteFormat');_0x1057ce&&_0x221bb2&&(_0xc1c1c2['enableDefaultAttributesIntegration']('pasteFormat'),_0xc1c1c2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0xe4544e=this['editor'],_0x68b9c5=_0xe4544e['locale'];_0xe4544e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1687f5=>{if('formatBlock'!=_0x1687f5['type']&&'formatInline'!=_0x1687f5['type'])return;const {data:_0x389c4e}=_0x1687f5;if(_0x389c4e&&'pasteFormat'===_0x389c4e['commandName']){const _0x12fb41=[],_0x5b7b05=_0x389c4e['commandParams'][0x0];for(const [_0x34c104,_0xd0771c]of Object['entries'](_0x5b7b05))_0x12fb41['push'](so(_0xe4544e,_0x34c104,_0xd0771c));return _0x12fb41['length']?{'type':'format','content':o(_0x68b9c5,'*Set\x20format\x20to:*\x20%0',_0x12fb41['join'](',\x20'))}:{'type':'format','content':o(_0x68b9c5,'*Remove\x20all\x20formatting*')};}});}}function so(_0x53299f,_0x5cde2c,_0x3957d4){const _0x457571=_0x53299f['locale']['t'],_0x3a516f=_0x5cde2c['split'](/(?=[A-Z])/)['join']('\x20'),_0x76d825=_0x457571(_0x3a516f['charAt'](0x0)['toUpperCase']()+_0x3a516f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x3957d4)return _0x76d825;if('fontColor'===_0x5cde2c||'fontBackgroundColor'===_0x5cde2c){const _0x20c30d=_0x460045(_0x53299f['config']['get']('fontColor.colors'))['find'](_0x202038=>_0x202038['model']==_0x3957d4);return _0x76d825+'\x20('+(_0x20c30d?_0x457571(_0x20c30d['label'])['toLowerCase']():_0x3957d4)+')';}if('fontSize'===_0x5cde2c&&isNaN(parseFloat(_0x3957d4))){const _0x395f36=_0x53299f['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x53299f['config']['get']('fontSize.options'))['find'](_0x911aad=>_0x911aad['model']==_0x3957d4);return _0x76d825+'\x20('+(_0x395f36?_0x457571(_0x395f36['title'])['toLowerCase']():_0x3957d4)+')';}return _0x76d825+'\x20('+_0x3957d4+')';}class tt extends _0x2d1259{['_headingOptions'];['afterInit'](){const _0x1bdb45=this['editor'];if(!_0x1bdb45['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x1bdb45['config']['get']('heading.options');const _0x29bee8=_0x1bdb45['locale'],_0x58ab2b=_0x1bdb45['plugins']['get']('TrackChangesEditing');_0x58ab2b['enableDefaultAttributesIntegration']('heading');for(const _0x2aca3c of this['_headingOptions'])'paragraph'!=_0x2aca3c['model']&&_0x58ab2b['descriptionFactory']['registerElementLabel'](_0x2aca3c['model'],_0x1678ca=>{const _0x3034c5=this['_getHeadingLevel'](_0x2aca3c['model']);return null!==_0x3034c5?_0x5a366c(_0x1678ca,_0x3034c5):_0x3e4366(_0x1678ca,_0x2aca3c['title']);});function _0x5a366c(_0x514f65,_0x3fe142){return o(_0x29bee8,'ELEMENT_HEADING',[_0x514f65,_0x3fe142]);}function _0x3e4366(_0x2a56a4,_0x539ce3){return o(_0x29bee8,'ELEMENT_HEADING_CUSTOM',[_0x2a56a4,_0x539ce3]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x35a394=this['editor'],_0x161b6a=_0x35a394['locale'];function _0x2e5019(_0x336d7e,_0x387d1f){return o(_0x161b6a,'ELEMENT_HEADING_CUSTOM',[_0x336d7e,_0x387d1f]);}_0x35a394['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x214321=>{if('formatBlock'!=_0x214321['type'])return;const {data:_0x3c38c2}=_0x214321;if(_0x3c38c2&&'heading'==_0x3c38c2['commandName']){const _0x6faf35=_0x3c38c2['commandParams'][0x0]['value'],_0x22ea28=this['_getHeadingLevel'](_0x6faf35);if(null!==_0x22ea28)return{'type':'format','content':o(_0x161b6a,'*Change\x20to:*\x20%0',(_0x38d1a2=0x1,_0x290c4a=_0x22ea28,o(_0x161b6a,'ELEMENT_HEADING',[_0x38d1a2,_0x290c4a])))};const _0x4bb743=this['_headingOptions']['find'](_0x40be49=>_0x40be49['model']===_0x6faf35)['title'];return{'type':'format','content':o(_0x161b6a,'*Change\x20to:*\x20%0',_0x2e5019(0x1,_0x4bb743))};}var _0x38d1a2,_0x290c4a;});}['_getHeadingLevel'](_0x4a0133){const _0x49f8c9=_0x4a0133['match'](/^heading(\d+)/);if(_0x49f8c9)return _0x49f8c9[0x1];const _0x37a5c9=this['_headingOptions']?.['find'](_0x2881f4=>_0x2881f4['model']==_0x4a0133);if(_0x37a5c9&&_0x37a5c9['view']){const _0x142b6d=_0x37a5c9['view'],_0x5891b6=(_0x142b6d['name']??_0x142b6d)['match'](/^h(\d+)/);if(_0x5891b6)return _0x5891b6[0x1];}return null;}}class et extends _0x2d1259{['afterInit'](){const _0x3657a1=this['editor'];if(!_0x3657a1['plugins']['has']('HighlightEditing'))return;const _0x4b0c1b=_0x3657a1['plugins']['get']('TrackChangesEditing'),_0x3d2b97=_0x3657a1['locale'];_0x4b0c1b['enableDefaultAttributesIntegration']('highlight'),_0x4b0c1b['registerInlineAttribute']('highlight'),_0x4b0c1b['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x3d2b97,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a94f0=this['editor'],_0x12dde3=_0x2a94f0['locale'];_0x2a94f0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x150139=>{if('formatInline'!=_0x150139['type'])return;const {data:_0x4836db}=_0x150139;if(_0x4836db&&'highlight'==_0x4836db['commandName']){const _0x30038d=_0x12dde3['t'],_0x200fd6=_0x4836db['commandParams'][0x0]['value'];if(_0x200fd6){const _0x2a8caf=_0x2a94f0['config']['get']('highlight.options')['find'](_0x6fab77=>_0x6fab77['model']==_0x200fd6),_0x2a6447=_0x30038d(_0x2a8caf['title'])['toLowerCase']();return{'type':'format','content':o(_0x12dde3,'*Set\x20highlight:*\x20%0',_0x2a6447),'color':{'value':_0x2a8caf['color'],'title':_0x2a8caf['title']}};}return{'type':'format','content':o(_0x12dde3,'*Remove\x20highlight*',o(_0x12dde3,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2d1259{['afterInit'](){const _0x5913e0=this['editor'];if(!_0x5913e0['plugins']['has']('HorizontalLineEditing'))return;_0x5913e0['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xa90f82=_0x5913e0['plugins']['get']('TrackChangesEditing'),_0x16cba8=_0x5913e0['locale'];_0xa90f82['descriptionFactory']['registerElementLabel']('horizontalLine',_0x56788d=>o(_0x16cba8,'ELEMENT_HORIZONTAL_LINE',_0x56788d)),_0x5913e0['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f6295,{writer:_0x41c64e,options:_0x19303f})=>{if(!_0x19303f['showSuggestionHighlights'])return null;const _0x3f2c3f=_0x41c64e['createContainerElement']('div'),_0x3bc76f=_0x41c64e['createEmptyElement']('hr');return _0x41c64e['addClass']('ck-horizontal-line',_0x3f2c3f),_0x41c64e['insert'](_0x41c64e['createPositionAt'](_0x3f2c3f,0x0),_0x3bc76f),_0x3f2c3f;},'converterPriority':'high'});}}class st extends _0x2d1259{['afterInit'](){const _0xea2efe=this['editor'];if(!_0xea2efe['plugins']['has']('HtmlEmbed'))return;const _0x2d92d7=_0xea2efe['plugins']['get']('TrackChangesEditing'),_0x4b8238=_0xea2efe['locale'];_0x2d92d7['descriptionFactory']['registerElementLabel']('rawHtml',_0x381205=>o(_0x4b8238,'ELEMENT_HTML_EMBED',_0x381205)),_0x2d92d7['enableDefaultAttributesIntegration']('htmlEmbed'),_0x2d92d7['registerBlockAttribute']('value'),_0x2d92d7['descriptionFactory']['registerDescriptionCallback'](_0x83e289=>{if('attribute'!=_0x83e289['type'])return;const {data:_0x5c0f79}=_0x83e289;if(_0x5c0f79&&'value'==_0x5c0f79['key']&&_0x83e289['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b0afe=o(_0x4b8238,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4b8238,'*Change\x20%0\x20content*',_0x3b0afe)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2a74eb=this['editor'],_0x3cc022=_0x2a74eb['locale'];_0x2a74eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1cd8b4=>{if('formatBlock'!=_0x1cd8b4['type'])return;const {data:_0x233647}=_0x1cd8b4;if(_0x233647&&'htmlEmbed'==_0x233647['commandName']){const _0x244fbe=o(_0x3cc022,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3cc022,'*Change\x20%0\x20content*',_0x244fbe)};}});}}class nt extends _0x2d1259{['afterInit'](){const _0x25f25c=this['editor'];if(!_0x25f25c['plugins']['has']('ImageEditing'))return;const _0x19fc32=_0x25f25c['plugins']['get']('TrackChangesEditing'),_0x54ab32=_0x25f25c['plugins']['get']('ImageUtils'),_0x401b31=_0x25f25c['locale'];_0x19fc32['enableCommand']('insertImage'),_0x19fc32['descriptionFactory']['registerElementLabel']('imageBlock',_0x36d167=>o(_0x401b31,'ELEMENT_IMAGE',_0x36d167)),_0x19fc32['descriptionFactory']['registerElementLabel']('imageInline',_0x4ef194=>o(_0x401b31,'ELEMENT_INLINE_IMAGE',_0x4ef194)),_0x19fc32['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x401b31,'ELEMENT_CAPTION')),_0x25f25c['plugins']['has']('ImageUploadEditing')&&_0x19fc32['enableCommand']('uploadImage'),_0x25f25c['plugins']['has']('ImageBlockEditing')&&_0x25f25c['plugins']['has']('ImageInlineEditing')&&(_0x19fc32['enableCommand']('imageTypeInline',(_0x3eb3e4,_0x571828)=>{const _0x289052=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']);_0x25f25c['model']['change'](()=>{_0x19fc32['markBlockFormat'](_0x289052,{'commandName':'imageTypeInline','commandParams':[_0x571828]},[],'convertBlockImageToInline');});}),_0x19fc32['enableCommand']('imageTypeBlock',(_0x56a09d,_0x40bd6a)=>{_0x25f25c['model']['change'](_0x2dd68a=>{let _0x5d9031=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x553837=_0x2dd68a['createRangeOn'](_0x5d9031);const _0x34f2e0=_0x1065f6['fromPosition'](_0x553837['start'],'toPrevious'),_0x1a59ef=_0x1065f6['fromPosition'](_0x553837['end'],'toNext');_0x19fc32['forceDefaultExecution'](()=>_0x56a09d(_0x40bd6a)),_0x5d9031=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x553837=_0x2dd68a['createRangeOn'](_0x5d9031);const _0x287532=_0x2dd68a['createRange'](_0x34f2e0,_0x1a59ef);_0x34f2e0['detach'](),_0x1a59ef['detach'](),_0x19fc32['markBlockFormat'](_0x5d9031,{'commandName':'imageTypeInline','commandParams':[_0x40bd6a]},[],'convertInlineImageToBlock'),_0x287532['start']['isBefore'](_0x553837['start'])&&_0x19fc32['markInsertion'](_0x2dd68a['createRange'](_0x287532['start'],_0x553837['start']),'convertInlineImageToBlock'),_0x553837['end']['isBefore'](_0x287532['end'])&&_0x19fc32['markInsertion'](_0x2dd68a['createRange'](_0x553837['end'],_0x287532['end']),'convertInlineImageToBlock');});}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x19fc32['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x125a7d])=>{const _0x7872=_0x19fc32['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4654a2=_0x125a7d['start'],_0x20c61a=_0x125a7d['end'];const _0x1971da=_0x25f25c['model']['schema']['getNearestSelectionRange'](_0x4654a2,'backward'),_0x2c4fe2=_0x25f25c['model']['schema']['getNearestSelectionRange'](_0x20c61a,'forward');_0x1971da['isCollapsed']&&(_0x4654a2=_0x1971da['start']),_0x2c4fe2['isCollapsed']&&(_0x20c61a=_0x2c4fe2['end']),_0x7872([_0x25f25c['model']['createRange'](_0x4654a2,_0x20c61a)]);}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x338a9a),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x338a9a)),_0x25f25c['plugins']['has']('ImageCaptionEditing')&&(_0x19fc32['enableCommand']('toggleImageCaption',(_0x4bc5f4,_0x3da1e1)=>{const _0x1f024b=_0x25f25c['plugins']['get']('ImageCaptionUtils');let _0x14dc17=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x2b96a3=_0x1f024b['getCaptionFromImageModelElement'](_0x14dc17);_0x25f25c['model']['change'](()=>{if(_0x2b96a3)return void _0x19fc32['markDeletion'](_0x25f25c['model']['createRangeOn'](_0x2b96a3));const _0x2ff725=_0x54ab32['isBlockImage'](_0x14dc17);_0x4bc5f4(_0x3da1e1),_0x14dc17=_0x54ab32['getClosestSelectedImageElement'](_0x25f25c['model']['document']['selection']),_0x2b96a3=_0x1f024b['getCaptionFromImageModelElement'](_0x14dc17),_0x19fc32['markInsertion'](_0x25f25c['model']['createRangeOn'](_0x2b96a3),_0x2ff725?null:'imageCaption');});}),_0x19fc32['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x338a9a));const _0x4e6bf1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0xae4b40(_0x12b283,_0x56fb77){const _0xd26593=_0x4e6bf1['findIndex'](({type:_0x51fe79,subType:_0x13cc1b})=>_0x12b283['type']==_0x51fe79&&_0x12b283['subType']==_0x13cc1b),_0x2c81b7=_0x4e6bf1['findIndex'](({type:_0x30ec48,subType:_0x4cfea3})=>_0x56fb77['type']==_0x30ec48&&_0x56fb77['subType']==_0x4cfea3);if(_0xd26593<0x0||_0x2c81b7<0x0)return!0x1;const _0x45237b=_0x12b283['getFirstRange'](),_0x3df997=_0x56fb77['getFirstRange']();if((0x0==_0xd26593||0x1==_0xd26593)&&0x2==_0x2c81b7&&_0x45237b['isIntersecting'](_0x3df997))return!0x0;if(0x2==_0xd26593&&0x3==_0x2c81b7){const _0x237084=_0x19fc32['_findSuggestions'](_0x45237b,'insertion')['filter'](({suggestion:_0x4046dc,meta:_0x95501a})=>_0x95501a['isOwn']&&'convertInlineImageToBlock'==_0x4046dc['subType']);if(_0x237084['length']>0x1&&_0x3df997['end']['isEqual'](_0x45237b['start']))return!0x0;if(0x1==_0x237084['length']&&(_0x45237b['start']['isEqual'](_0x3df997['end'])||_0x45237b['end']['isEqual'](_0x3df997['start'])))return!0x0;}if(0x3==_0xd26593&&0x3==_0x2c81b7&&_0x45237b['start']['isBefore'](_0x3df997['start'])){const _0x3ef9d5=_0x45237b['end']['nodeAfter'],_0x3d9100=_0x3df997['start']['nodeBefore'];return _0x54ab32['isBlockImage'](_0x3ef9d5)&&_0x3ef9d5===_0x3d9100;}return!0x1;}function _0x338a9a(_0x42fc21,_0x288534){return _0xae4b40(_0x42fc21,_0x288534)?[_0x42fc21,_0x288534]:_0xae4b40(_0x288534,_0x42fc21)?[_0x288534,_0x42fc21]:null;}_0x25f25c['plugins']['has']('ImageResize')&&(_0x19fc32['enableDefaultAttributesIntegration']('resizeImage'),_0x19fc32['registerBlockAttribute']('resizedWidth'),_0x19fc32['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x401b31,'FORMAT_IMAGE_SIZE'))),_0x25f25c['plugins']['has']('ImageTextAlternativeEditing')&&(_0x19fc32['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x19fc32['registerBlockAttribute']('alt')),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x1c534e=>{if(!!_0x4e6bf1['find'](({type:_0x176e79,subType:_0x244d45})=>_0x1c534e['type']==_0x176e79&&_0x1c534e['subType']==_0x244d45))return _0x1c534e['previous']?{}:void 0x0;}),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x5bb829=>{if('insertion'==_0x5bb829['type']||'deletion'==_0x5bb829['type']){const _0x27ba09=_0x5bb829['getContainedElement']();if(_0x27ba09&&_0x27ba09['is']('element','caption'))return{'type':'insertion'==_0x5bb829['type']?'addObject':'removeObject','element':_0x27ba09,'quantity':0x1};}}),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x4b173b=>'formatBlock'==_0x4b173b['type']&&'convertInlineImageToBlock'==_0x4b173b['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b173b['type']&&'convertBlockImageToInline'==_0x4b173b['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x19fc32['descriptionFactory']['registerDescriptionCallback'](_0x5a1144=>{if('attribute'!=_0x5a1144['type'])return;const {data:_0x29abf9}=_0x5a1144;if(!_0x29abf9||'alt'!=_0x29abf9['key'])return;const _0x30030c=_0x29abf9['newValue'];return _0x30030c?{'type':'format','content':o(_0x401b31,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x30030c+'\x22')}:{'type':'format','content':o(_0x401b31,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xed120b=this['editor'],_0x1e3d56=_0xed120b['locale'];_0xed120b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x49cd24=>{if('formatBlock'!=_0x49cd24['type']&&'formatInline'!=_0x49cd24['type'])return;const {data:_0x107b03}=_0x49cd24;if(_0x107b03){if('imageTextAlternative'==_0x107b03['commandName']){const _0x481a62=_0x107b03['commandParams'][0x0]['newValue'];return _0x481a62?{'type':'format','content':o(_0x1e3d56,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x481a62+'\x22')}:{'type':'format','content':o(_0x1e3d56,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x107b03['commandName']){const _0x59094f=_0x107b03['commandParams'][0x0]['width'];return _0x59094f?{'type':'format','content':o(_0x1e3d56,'*Set\x20image\x20width:*\x20%0',_0x59094f)}:{'type':'format','content':o(_0x1e3d56,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x250a63=this['editor']['locale'],_0x53241b=this['editor']['plugins']['get']('TrackChangesEditing');_0x53241b['enableDefaultAttributesIntegration']('replaceImageSource'),_0x53241b['registerBlockAttribute']('src'),_0x53241b['descriptionFactory']['registerDescriptionCallback'](_0x291c68=>{if('attribute'!=_0x291c68['type'])return;const {data:_0x1e9435}=_0x291c68;return _0x1e9435&&'src'==_0x1e9435['key']?_0x1e9435['newValue']&&_0x1e9435['oldValue']?{'type':'format','content':o(_0x250a63,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x59be2b=this['editor']['plugins']['get']('TrackChangesEditing');_0x59be2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x59be2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x59be2b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x59be2b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4a82da=this['editor'],_0x4f0ea4=_0x4a82da['locale'];_0x4a82da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3339cb=>{if('formatBlock'!=_0x3339cb['type']&&'formatInline'!=_0x3339cb['type'])return;const {data:_0x4bd0aa}=_0x3339cb;if(!_0x4bd0aa||'replaceImageSource'!=_0x4bd0aa['commandName'])return;return{'type':'format','content':o(_0x4f0ea4,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2d1259{['afterInit'](){const _0x189034=this['editor'];if(!_0x189034['plugins']['has']('ImageStyleEditing'))return;const _0x40f3c6=_0x189034['plugins']['get']('TrackChangesEditing'),_0x3028bb=_0x189034['plugins']['get']('ImageUtils'),_0x1f4005={};_0x40f3c6['enableCommand']('imageStyle',(_0x555635,_0x147d9a)=>{const _0x21e2f4=_0x189034['plugins']['get']('Users')['me'],_0x127220=_0x189034['commands']['get']('imageStyle');let _0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),_0x55bf9d=_0x189034['model']['createRangeOn'](_0x5bea3f),_0x4d6cdb=_0x127220['value'];if(_0x4d6cdb==_0x147d9a['value'])return;const _0x2ecb85={'commandName':'imageStyle','commandParams':[_0x147d9a],'formatGroupId':_0x6322ca()};_0x189034['model']['change'](()=>{if(_0x40f3c6['getSuggestions']()['filter'](_0x2c7a6e=>_0x2c7a6e['isInContent']&&_0x21e2f4==_0x2c7a6e['author']&&('formatBlock'==_0x2c7a6e['type']||'formatInline'==_0x2c7a6e['type'])&&('imageStylePreApply'==_0x2c7a6e['subType']||'imageStylePostApply'==_0x2c7a6e['subType'])&&_0x2c7a6e['getFirstRange']()['isEqual'](_0x55bf9d))['forEach'](_0xb9eb47=>_0x40f3c6['discardSuggestion'](_0xb9eb47['head'])),_0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),_0x55bf9d=_0x189034['model']['createRangeOn'](_0x5bea3f),_0x127220['refresh'](),_0x189034['commands']['get']('imageTypeInline')['refresh'](),_0x189034['commands']['get']('imageTypeBlock')['refresh'](),_0x4d6cdb=_0x127220['value'],_0x4d6cdb!=_0x147d9a['value'])return _0x3028bb['isInlineImage'](_0x5bea3f)&&_0x127220['shouldConvertImageType'](_0x147d9a['value'],_0x5bea3f)?(_0x555635({..._0x147d9a,'setImageSizes':!0x1}),_0x5bea3f=_0x3028bb['getClosestSelectedImageElement'](_0x189034['model']['document']['selection']),void _0x40f3c6['markBlockFormat'](_0x5bea3f,{..._0x2ecb85,'commandReversedParams':[{'value':_0x4d6cdb||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3028bb['isBlockImage'](_0x5bea3f)?_0x40f3c6['markBlockFormat'](_0x5bea3f,_0x2ecb85,[],'imageStylePostApply'):_0x40f3c6['markInlineFormat'](_0x55bf9d,_0x2ecb85,'imageStylePostApply'));});});for(const _0x54403c of _0x189034['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1f4005[_0x54403c['name']]=_0x54403c['title']['toLowerCase']();_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xf4bad0])=>{_0x3028bb['setImageNaturalSizeAttributes'](_0xf4bad0['getContainedElement']());}),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1c811f,_0x57871a)=>{_0x40f3c6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1c811f,{'commandName':_0x57871a['commandName'],'commandParams':_0x57871a['commandReversedParams']});}),_0x40f3c6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x55277f,_0x1fe91a){if(_0x57ee25(_0x55277f,_0x1fe91a))return[_0x55277f,_0x1fe91a];if(_0x57ee25(_0x1fe91a,_0x55277f))return[_0x1fe91a,_0x55277f];return null;});const _0x442ab2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x57ee25(_0x3a6373,_0x2cc59c){const _0x1a9889=_0x442ab2['findIndex'](({type:_0x40acb7,subType:_0x1c7010})=>_0x3a6373['type']==_0x40acb7&&_0x3a6373['subType']==_0x1c7010),_0x4ce90e=_0x442ab2['findIndex'](({type:_0x22b7c6,subType:_0x383ac6})=>_0x2cc59c['type']==_0x22b7c6&&_0x2cc59c['subType']==_0x383ac6);if(_0x1a9889<0x0||_0x4ce90e<0x0)return!0x1;const _0x34148b=_0x3a6373['getFirstRange'](),_0x45c264=_0x2cc59c['getFirstRange']();if((0x0==_0x1a9889||0x1==_0x1a9889)&&0x2==_0x4ce90e&&_0x34148b['isIntersecting'](_0x45c264))return!0x0;if(0x2==_0x1a9889&&0x3==_0x4ce90e){const _0xb3c9c1=_0x40f3c6['_findSuggestions'](_0x34148b,'insertion')['filter'](({suggestion:_0x6e4765,meta:_0x814fba})=>_0x814fba['isOwn']&&'convertInlineImageToBlock'==_0x6e4765['subType']);if(_0xb3c9c1['length']>0x1&&_0x45c264['end']['isEqual'](_0x34148b['start']))return!0x0;if(0x1==_0xb3c9c1['length']&&(_0x34148b['start']['isEqual'](_0x45c264['end'])||_0x34148b['end']['isEqual'](_0x45c264['start'])))return!0x0;}if(0x3==_0x1a9889&&0x3==_0x4ce90e&&_0x34148b['start']['isBefore'](_0x45c264['start'])){const _0x81bdd0=_0x34148b['end']['nodeAfter'],_0x352239=_0x45c264['start']['nodeBefore'];return _0x3028bb['isBlockImage'](_0x81bdd0)&&_0x81bdd0===_0x352239;}return!0x1;}_0x189034['model']['document']['registerPostFixer'](()=>{let _0x407e7d=!0x1;const _0x43a7c1=Array['from'](_0x189034['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10224e,data:_0x269777}of _0x43a7c1){const {group:_0x3e320a,type:_0x5074f7,subType:_0x5df229,id:_0x51b53d}=_0x40f3c6['_splitMarkerName'](_0x10224e);if('suggestion'==_0x3e320a&&_0x40f3c6['hasSuggestion'](_0x51b53d)){if('formatBlock'==_0x5074f7&&('imageStylePreApply'==_0x5df229||'imageStylePostApply'==_0x5df229)){const _0x4136b5=_0x40f3c6['getSuggestion'](_0x51b53d);if(_0x269777['newRange']){const _0x54a6f9=_0x4136b5['getFirstRange']()['getContainedElement']();if(_0x3028bb['isBlockImage'](_0x54a6f9))continue;_0x40f3c6['discardSuggestion'](_0x4136b5),_0x407e7d=!0x0;}}if('insertion'==_0x5074f7&&'imageCaption'==_0x5df229&&!_0x269777['newRange']){const _0x5d1b8e=_0x40f3c6['getSuggestion'](_0x51b53d);_0x5d1b8e['next']&&_0x5d1b8e['next']['isInContent']&&(_0x40f3c6['discardSuggestion'](_0x5d1b8e['next']),_0x407e7d=!0x0);}}}return _0x407e7d;}),this['_registerLegacyDescription'](_0x1f4005);}['_registerLegacyDescription'](_0x21ed71){const _0x52cf39=this['editor'],_0xbe1f29=_0x52cf39['locale'];_0x52cf39['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x346ea4=>{if('formatBlock'!=_0x346ea4['type']&&'formatInline'!=_0x346ea4['type'])return;const {data:_0x5a089e}=_0x346ea4;if(!_0x5a089e||'imageStyle'!=_0x5a089e['commandName'])return;const _0x2adb97=_0x5a089e['commandParams'][0x0]['value'];return _0x3eeacf('side'===_0x2adb97?o(_0xbe1f29,'FORMAT_SIDE_IMAGE'):_0x21ed71[_0x2adb97]||_0x2adb97);function _0x3eeacf(_0x3e54d1){return{'type':'format','content':o(_0xbe1f29,'*Format:*\x20%0',_0x3e54d1)};}});}}class at extends _0x2d1259{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5c9c0b){super(_0x5c9c0b),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x101922=this['editor'],_0x2b9c56=_0x101922['commands']['get']('importWord'),_0x79d2f=_0x101922['commands']['get']('trackChanges');_0x2b9c56&&(_0x2b9c56['on']('execute',(_0x48a124,[,_0x1e30ba])=>{this['_trackChangesValueDuringImport']=_0x79d2f['value'],_0x1e30ba['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2b9c56,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2b9c56,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x79d2f['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x101922['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x2e803f,_0x5e6702){const {suggestions:_0x390ad8}=_0x5e6702,_0x8fe4d4=this['editor']['commands']['get']('trackChanges'),_0x35187f=_0x8fe4d4['value'];this['_trackChangesValueDuringImport']!==_0x35187f&&(_0x8fe4d4['execute'](),this['_trackChangesExecuted']=!0x0),_0x390ad8&&_0x390ad8['forEach'](({id:_0x3d1275,type:_0x7d1b14,author:_0x418705,created_at:_0x5edbd1})=>{const _0x5f0f9e={'id':_0x3d1275,'type':_0x7d1b14,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x418705,'createdAt':_0x5edbd1?new Date(_0x5edbd1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5f0f9e);});}}class ct extends _0x2d1259{['afterInit'](){const _0x1e5c7f=this['editor'],_0x545c39=_0x1e5c7f['plugins']['get']('TrackChangesEditing');if(_0x1e5c7f['plugins']['has']('IndentEditing')&&(_0x545c39['enableCommand']('indent'),_0x545c39['enableCommand']('outdent')),_0x1e5c7f['plugins']['has']('IndentBlock')){for(const _0x1ece85 of['indentBlock','outdentBlock'])_0x545c39['enableDefaultAttributesIntegration'](_0x1ece85);}const _0x3f59af=_0x1e5c7f['locale'];_0x545c39['registerBlockAttribute']('blockIndent'),_0x545c39['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3f59af,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fe0e2=this['editor'],_0xac778b=_0x4fe0e2['locale'],_0x375201=_0x4fe0e2['plugins']['get']('TrackChangesEditing');_0x375201['descriptionFactory']['registerDescriptionCallback'](_0x4d7807=>{if('formatBlock'!=_0x4d7807['type'])return;const {data:_0x5e4973}=_0x4d7807;if(!_0x5e4973)return;if('indentBlock'!=_0x5e4973['commandName']&&'outdentBlock'!=_0x5e4973['commandName'])return;const _0x561a03=_0x4d7807['getItems']()[0x0],_0x4e2805=_0x375201['descriptionFactory']['getItemLabel'](_0x561a03);return'indentBlock'==_0x5e4973['commandName']?{'type':'format','content':o(_0xac778b,'*Indent:*\x20%0',_0x4e2805)}:'outdentBlock'==_0x5e4973['commandName']?{'type':'format','content':o(_0xac778b,'*Outdent:*\x20%0',_0x4e2805)}:void 0x0;});}}class ut extends _0x2d1259{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2d1259{['afterInit'](){const _0x42c6f6=this['editor'];if(!_0x42c6f6['plugins']['has']('LinkEditing'))return;const _0x4f2de4=_0x42c6f6['plugins']['get']('TrackChangesEditing'),_0x203667=_0x42c6f6['commands']['get']('link');_0x4f2de4['enableDefaultAttributesIntegration']('link'),_0x4f2de4['enableDefaultAttributesIntegration']('unlink'),_0x4f2de4['registerInlineAttribute']('linkHref');for(const _0x471e30 of _0x203667['manualDecorators'])_0x4f2de4['registerInlineAttribute'](_0x471e30['id']),_0x4f2de4['descriptionFactory']['registerAttributeLabel'](_0x471e30['id'],'link\x20('+_0x471e30['label']['toLowerCase']()+')');_0x4f2de4['descriptionFactory']['registerDescriptionCallback'](_0x5d2633=>{if('attribute'!=_0x5d2633['type'])return;const {data:_0x8f8140}=_0x5d2633;if(!_0x8f8140||'linkHref'!=_0x8f8140['key'])return;const _0x6d6ee2=_0x8f8140['newValue'],_0x419587=_0x42c6f6['locale'];return{'type':'format','content':null==_0x6d6ee2?o(_0x419587,'*Remove\x20link*'):o(_0x419587,'*Set\x20link:*\x20%0','\x22'+_0x6d6ee2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x266ba3=this['editor'],_0x5bb017=_0x266ba3['locale'];_0x266ba3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d899e=>{if('formatInline'!=_0x1d899e['type'])return;const {data:_0x50b9cf}=_0x1d899e;if(_0x50b9cf){if('link'==_0x50b9cf['commandName']){const _0x4b944c=_0x50b9cf['commandParams'][0x0];return{'type':'format','content':o(_0x5bb017,'*Set\x20link:*\x20%0','\x22'+_0x4b944c+'\x22')};}return'unlink'==_0x50b9cf['commandName']?{'type':'format','content':o(_0x5bb017,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2d1259{['afterInit'](){const _0x1898b7=this['editor'],_0x4c42d7=_0x1898b7['locale'];if(!_0x1898b7['plugins']['has']('LegacyListEditing'))return;const _0x2026d6=_0x1898b7['plugins']['get']('TrackChangesEditing'),_0x59ac7e=_0x1898b7['plugins']['has']('LegacyTodoListEditing');function _0x2803e1(_0xb5acca){return()=>{const _0x5e1eea=_0x1898b7['model']['document']['selection'],_0x110fd2=_0x1898b7['commands']['get'](_0xb5acca);if(_0x110fd2['value'])return void _0x1898b7['execute']('paragraph',{});const _0x388789=_0xb5acca['slice'](0x0,-0x4),_0x58dd3f=function(_0x3aac25,_0x1d6458,_0x178da9){let _0x2c8639=Array['from'](_0x3aac25)['filter'](_0x4e4afe=>function(_0x524f3f,_0xd27bbe){return _0xd27bbe['checkChild'](_0x524f3f['parent'],'listItem')&&!_0xd27bbe['isObject'](_0x524f3f);}(_0x4e4afe,_0x178da9));_0x2c8639=_0x2c8639['filter'](_0x116e66=>!_0x116e66['is']('element','listItem')||_0x116e66['getAttribute']('listType')!=_0x1d6458);const _0x2dbf4f=new Set();for(const _0x4cf17c of _0x2c8639)_0x4cf17c['is']('element','listItem')?_0x2dbf4f['add'](fe(_0x4cf17c)):_0x2dbf4f['add'](_0x4cf17c);return Array['from'](_0x2dbf4f);}(_0x5e1eea['getSelectedBlocks'](),_0x388789,_0x1898b7['model']['schema']);_0x1898b7['model']['change'](()=>{for(const _0x53a82f of _0x58dd3f)_0x2026d6['markBlockFormat'](_0x53a82f,{'commandName':_0xb5acca,'commandParams':[{'forceValue':!_0x110fd2['value']}],'formatGroupId':'blockName'},ue(_0x53a82f));});};}function _0x23207d(_0x46e8ec){return()=>{const _0x103228=function(_0x27bd3b){let _0x7112b7=Array['from'](_0x27bd3b);const _0xdcda3f=_0x7112b7['findIndex'](_0x166cbc=>'listItem'!=_0x166cbc['name']);return _0xdcda3f>-0x1&&(_0x7112b7=_0x7112b7['slice'](0x0,_0xdcda3f)),_0x7112b7;}(_0x1898b7['model']['document']['selection']['getSelectedBlocks']()),_0x5f3ee0=_0x1898b7['model']['createRange'](_0x1898b7['model']['createPositionAt'](_0x103228[0x0],'before'),_0x1898b7['model']['createPositionAt'](_0x103228[_0x103228['length']-0x1],'end'));_0x1898b7['model']['change'](()=>{_0x2026d6['markBlockFormat'](_0x5f3ee0,{'commandName':_0x46e8ec,'commandParams':[],'formatGroupId':'listIndent'},function(_0x252c0e){const _0x38721f=new Set();for(const _0x2bd5f5 of _0x252c0e){let _0x27341c=_0x2bd5f5['nextSibling'];for(;_0x27341c&&_0x27341c['getAttribute']('listIndent')>_0x2bd5f5['getAttribute']('listIndent');)_0x38721f['add'](_0x27341c),_0x27341c=_0x27341c['nextSibling'];}return Array['from'](_0x38721f);}(_0x103228));});};}_0x2026d6['enableCommand']('numberedList',_0x2803e1('numberedList')),_0x2026d6['enableCommand']('bulletedList',_0x2803e1('bulletedList')),_0x59ac7e&&_0x2026d6['enableCommand']('todoList',_0x2803e1('todoList')),_0x2026d6['enableCommand']('indentList',_0x23207d('indentList')),_0x2026d6['enableCommand']('outdentList',_0x23207d('outdentList')),_0x59ac7e&&_0x2026d6['enableCommand']('checkTodoList',()=>{const _0x5be60a=_0x1898b7['commands']['get']('checkTodoList'),_0x505e28=Array['from'](_0x5be60a['_selectedElements']);_0x505e28['filter'](_0xc08e0a=>_0xc08e0a['getAttribute']('todoListChecked')!=_0x5be60a['value']),_0x1898b7['model']['change'](()=>{for(const _0x17d45b of _0x505e28)_0x2026d6['markBlockFormat'](_0x17d45b,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x5be60a['value']}]});});}),_0x2026d6['descriptionFactory']['registerElementLabel']('listItem',_0xec94bf=>o(_0x4c42d7,'ELEMENT_LIST_ITEM',_0xec94bf)),_0x2026d6['descriptionFactory']['registerDescriptionCallback'](_0x51741b=>{if('formatBlock'!=_0x51741b['type']&&'formatInline'!=_0x51741b['type'])return;const {data:_0x39cbb5}=_0x51741b;if(_0x39cbb5){if('numberedList'==_0x39cbb5['commandName']||'bulletedList'==_0x39cbb5['commandName']||'todoList'==_0x39cbb5['commandName'])switch(_0x39cbb5['commandName']['replace']('List','')){case'bulleted':return _0x33425b(o(_0x4c42d7,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x33425b(o(_0x4c42d7,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x33425b(o(_0x4c42d7,'ELEMENT_TODO_LIST'));}if('indentList'==_0x39cbb5['commandName'])return{'type':'format','content':o(_0x4c42d7,'*Indent:*\x20%0',o(_0x4c42d7,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x39cbb5['commandName'])return{'type':'format','content':o(_0x4c42d7,'*Outdent:*\x20%0',o(_0x4c42d7,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x39cbb5['commandName'])return _0x39cbb5['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4c42d7,'*Check\x20item*')}:{'type':'format','content':o(_0x4c42d7,'*Uncheck\x20item*')};}function _0x33425b(_0xe15410){return{'type':'format','content':o(_0x4c42d7,'*Change\x20to:*\x20%0',_0xe15410)};}});}}function fe(_0x25b0a5){const _0x4fbe2d=_0x25b0a5['getAttribute']('listIndent');if(0x0==_0x4fbe2d)return _0x25b0a5;let _0x260f37=_0x25b0a5;for(;_0x25b0a5['previousSibling']&&_0x25b0a5['previousSibling']['is']('element','listItem');){const _0x5474fb=_0x25b0a5['previousSibling']['getAttribute']('listIndent');if(_0x5474fb==_0x4fbe2d)_0x260f37=_0x25b0a5['previousSibling'];else{if(_0x5474fb<_0x4fbe2d)break;}_0x25b0a5=_0x25b0a5['previousSibling'];}return _0x260f37;}function ue(_0xff75e9){const _0x432ed0=[];if(_0xff75e9['is']('element','listItem')&&_0xff75e9['getAttribute']('listIndent')>0x0){let _0x4a1fca=_0xff75e9['nextSibling'];for(;_0x4a1fca&&'listItem'==_0x4a1fca['name']&&_0x4a1fca['getAttribute']('listIndent')==_0xff75e9['getAttribute']('listIndent');)_0x432ed0['push'](_0x4a1fca),_0x4a1fca=_0x4a1fca['nextSibling'];}return _0x432ed0;}class W extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x6696ae=this['editor']['config']['get']('list.properties'),_0x5f3804=this['editor']['plugins']['get']('TrackChangesEditing');_0x6696ae['styles']&&_0x5f3804['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x6696ae['reversed']&&_0x5f3804['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x6696ae['startIndex']&&_0x5f3804['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x5f3804['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1b3477,_0x3d09ef={}){const _0x2dea1f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3e5882=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2dea1f['markMultiRangeBlockFormat'](_0x3e5882,{'commandName':'listStyle','commandParams':[{'type':_0x3d09ef['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x36adb3,_0x2a9e06={}){const _0x59771d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x566099=this['_getSuggestionBlocks'](_0x390bf9=>_0x390bf9['is']('element','listItem')&&'numbered'===_0x390bf9['getAttribute']('listType'));if(_0x566099['length']<0x1)return;const _0x3e5442=_0x566099['map'](_0x4e8785=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4e8785,'before'),this['editor']['model']['createPositionAt'](_0x4e8785,0x0)));this['editor']['model']['change'](()=>{_0x59771d['markMultiRangeBlockFormat'](_0x3e5442,{'commandName':'listReversed','commandParams':[{'reversed':_0x2a9e06['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x24a8fc,_0x48b5c1={}){const _0x974449=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3da5b0=this['_getSuggestionBlocks'](_0x29e80b=>_0x29e80b['is']('element','listItem')&&'numbered'===_0x29e80b['getAttribute']('listType'));if(_0x3da5b0['length']<0x1)return;const _0x43f24e=_0x3da5b0['map'](_0x58e577=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x58e577,'before'),this['editor']['model']['createPositionAt'](_0x58e577,0x0)));this['editor']['model']['change'](()=>{_0x974449['markMultiRangeBlockFormat'](_0x43f24e,{'commandName':'listStart','commandParams':[{'startIndex':_0x48b5c1['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5dee47){if('formatBlock'!=_0x5dee47['type']&&'formatInline'!=_0x5dee47['type'])return;const _0x5ea7a3=this['editor']['locale'],{data:_0x43652e}=_0x5dee47;if(!_0x43652e)return;let _0x2a9489,_0x42ece9;switch(_0x43652e['commandName']){case'listStyle':_0x2a9489='*Change\x20to:*\x20%0',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489,o(_0x5ea7a3,this['_getTranslationKeyForListStyle'](_0x43652e['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2a9489=_0x43652e['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489)};break;case'listStart':_0x2a9489='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x42ece9={'type':'format','content':o(_0x5ea7a3,_0x2a9489,_0x43652e['commandParams'][0x0]['startIndex'])};}return _0x42ece9;}['_getSuggestionBlocksForListStyle'](){const _0x18704c=this['editor']['plugins']['get']('LegacyListUtils');let _0x24adf2=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x24adf2[0x0]?.['is']('element','listItem')&&_0x24adf2['unshift'](..._0x18704c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x24adf2[_0x24adf2['length']-0x1]?.['is']('element','listItem')&&_0x24adf2['push'](..._0x18704c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x24adf2=[...new Set(_0x24adf2)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x24adf2=_0x24adf2['filter'](_0x2ad4d3=>_0x2ad4d3['is']('element','listItem'))),_0x24adf2;}['_getSuggestionBlocks'](_0x431c4c){const _0x2fc94a=this['editor']['plugins']['get']('LegacyListUtils');let _0x2dea0d=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x431c4c)['map'](_0x3dcad=>{const _0x44a6d5=this['editor']['model']['createPositionAt'](_0x3dcad,0x0);return[..._0x2fc94a['getSiblingNodes'](_0x44a6d5,'backward'),..._0x2fc94a['getSiblingNodes'](_0x44a6d5,'forward')];})['flat']();return _0x2dea0d=[...new Set(_0x2dea0d)],_0x2dea0d;}['_getTranslationKeyForListStyle'](_0x180cf0){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x180cf0)||'default')['toUpperCase']()+'_LIST_'+_0x180cf0['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2d1259{['afterInit'](){const _0x564c83=this['editor'];if(!_0x564c83['plugins']['has']('MediaEmbedEditing'))return;const _0x369ac0=_0x564c83['plugins']['get']('TrackChangesEditing'),_0x1eaf85=_0x564c83['locale'];_0x369ac0['enableCommand']('mediaEmbed'),_0x369ac0['descriptionFactory']['registerElementLabel']('media',_0x4676aa=>o(_0x1eaf85,'ELEMENT_MEDIA',_0x4676aa)),_0x564c83['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x5ae610,{writer:_0x417ba4,options:_0x524a86})=>{if(_0x524a86['showSuggestionHighlights'])return _0x417ba4['createEmptyElement']('div');},'converterPriority':'high'}),_0x564c83['data']['downcastDispatcher']['on']('attribute:url:media',(_0x1197a2,_0x177741,_0x45b2ce)=>{_0x45b2ce['options']['showSuggestionHighlights']&&_0x1197a2['stop']();},{'priority':'high'});}}class mt extends _0x2d1259{['afterInit'](){const _0x1e561a=this['editor'];_0x1e561a['plugins']['has']('MentionEditing')&&_0x1e561a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2d1259{['afterInit'](){const _0x1ecacc=this['editor'];if(!_0x1ecacc['commands']['get']('insertMergeField'))return;_0x1ecacc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x1e68fb=_0x1ecacc['plugins']['get']('TrackChangesEditing'),_0x37e5e2=_0x1ecacc['locale'];_0x1e68fb['descriptionFactory']['registerElementLabel']('mergeField',_0x230c86=>o(_0x37e5e2,'ELEMENT_MERGE_FIELD',_0x230c86)),_0x1e68fb['descriptionFactory']['registerDescriptionCallback'](_0x30c374=>{if('insertion'!=_0x30c374['type']&&'deletion'!=_0x30c374['type'])return;const _0x393525=_0x30c374['getContainedElement']();if(null==_0x393525)return;if(!_0x393525['is']('element','mergeField'))return;const _0x25289b=_0x1ecacc['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x393525['getAttribute']('id'));return'insertion'==_0x30c374['type']?{'type':'insertion','content':o(_0x37e5e2,'*Insert:*\x20%0','\x22'+_0x25289b+'\x22\x20'+o(_0x37e5e2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x37e5e2,'*Remove:*\x20%0','\x22'+_0x25289b+'\x22\x20'+o(_0x37e5e2,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2d1259{['afterInit'](){const _0x4bc3e1=this['editor'],_0x5ab2c8=_0x4bc3e1['plugins']['get']('TrackChangesEditing');_0x4bc3e1['plugins']['has']('MultiLevelList')&&(_0x5ab2c8['enableDefaultAttributesIntegration']('multiLevelList'),_0x5ab2c8['registerBlockAttribute']('listMarkerStyle'),_0x5ab2c8['descriptionFactory']['registerDescriptionCallback'](_0xc85976=>this['handleDescriptions'](_0xc85976)));}['handleDescriptions'](_0x3a3c0b){const _0x25ea42=this['editor']['locale'],{data:_0x5e5196}=_0x3a3c0b,_0x5988fe={'type':'format','content':''};if(_0x5e5196&&'listMarkerStyle'==_0x5e5196['key']){if(!_0x5e5196['oldValue'])return{'type':'format','content':o(_0x25ea42,'*Set\x20format:*\x20%0',o(_0x25ea42,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e5196['newValue']+')'};if(!_0x5e5196['newValue']){let _0x165408=_0x3a3c0b['head'];for(;_0x165408;){if(_0x165408['data']&&'listType'==_0x165408['data']['key']&&_0x165408['data']['newValue'])return _0x5988fe;_0x165408=_0x165408['next'];}return{'type':'format','content':o(_0x25ea42,'*Remove\x20format:*\x20%0',o(_0x25ea42,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5e5196['oldValue']+')'};}}}}class kt extends _0x2d1259{['afterInit'](){const _0x3b1eef=this['editor'];if(!_0x3b1eef['plugins']['has']('PageBreakEditing'))return;_0x3b1eef['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a8449=_0x3b1eef['plugins']['get']('TrackChangesEditing'),_0x240b9f=_0x3b1eef['locale'];_0x3a8449['descriptionFactory']['registerElementLabel']('pageBreak',_0x37ebfe=>o(_0x240b9f,'ELEMENT_PAGE_BREAK',_0x37ebfe));}}class bt extends _0x2d1259{['afterInit'](){const _0x13f912=this['editor'];if(!_0x13f912['plugins']['has']('Paragraph'))return;const _0x58bb1c=_0x13f912['locale'],_0x15f243=_0x13f912['plugins']['get']('TrackChangesEditing');_0x15f243['descriptionFactory']['registerElementLabel']('paragraph',_0x5ee8b3=>o(_0x58bb1c,'ELEMENT_PARAGRAPH',_0x5ee8b3)),_0x15f243['enableDefaultAttributesIntegration']('paragraph'),_0x15f243['enableCommand']('insertParagraph'),_0x13f912['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x13f912),{'priority':'highest'}),_0x13f912['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5779dc,_0x1edc28,_0x4c2852)=>{_0x4c2852['options']['showSuggestionHighlights']&&nr(_0x13f912,{'showActiveMarker':!0x1})(_0x5779dc,_0x1edc28,_0x4c2852);},{'priority':'highest'});const _0x25beb1=_0x15f243['descriptionFactory'];_0x25beb1['registerDescriptionCallback'](_0x4acbf3=>{if('insertion'!==_0x4acbf3['type'])return;const {start:_0x58cc4d,end:_0x3ca60e}=_0x4acbf3['getFirstRange']();if(!_0x58cc4d['isTouching'](_0x3ca60e)||!_0x58cc4d['nodeAfter'])return;const _0x1128cf=_0x13f912['model']['schema'],_0x434dde=_0x58cc4d['nodeAfter'];return _0x1128cf['isBlock'](_0x434dde)&&!_0x1128cf['isLimit'](_0x434dde)&&_0x1128cf['checkChild'](_0x434dde,'$text')?{'type':'insertion','content':o(_0x58bb1c,'*Insert:*\x20%0',_0x25beb1['getItemLabel'](_0x434dde,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4baca3=this['editor'],_0x5dea55=_0x4baca3['locale'];_0x4baca3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a0926=>{if('formatBlock'!=_0x5a0926['type'])return;const {data:_0x163f9a}=_0x5a0926;return _0x163f9a&&'paragraph'==_0x163f9a['commandName']?{'type':'format','content':o(_0x5dea55,'*Change\x20to:*\x20%0',o(_0x5dea55,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c7d75,{showActiveMarker:_0x5dd137=!0x0}={}){return(_0x4d0955,_0x2e51a7,_0x4e725a)=>{const _0x457184=_0x3c7d75['plugins']['get']('TrackChangesEditing'),_0x216034=_0x2e51a7['markerRange']['start'],_0x4ceea1=_0x2e51a7['markerRange']['end'],_0x1e742c=_0x3c7d75['model']['schema'];if(!_0x216034['isTouching'](_0x4ceea1)||!_0x216034['nodeAfter'])return;const _0x547427=_0x216034['nodeAfter'];if(_0x1e742c['isBlock'](_0x547427)&&!_0x1e742c['isLimit'](_0x547427)&&_0x1e742c['checkChild'](_0x547427,'$text')){if(!_0x4e725a['consumable']['consume'](_0x2e51a7['markerRange'],_0x4d0955['name']))return;const {authorId:_0x1c3bfb}=_0x457184['_splitMarkerName'](_0x2e51a7['markerName']),_0x3fb2ba=_0x4e725a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x1c3bfb}),_0x177859=_0x4e725a['mapper']['toViewPosition'](_0x4ceea1);_0x5dd137&&_0x457184['activeMarkers']['includes'](_0x2e51a7['markerName'])&&_0x4e725a['writer']['addClass']('ck-suggestion-marker--active',_0x3fb2ba),_0x4e725a['writer']['insert'](_0x177859,_0x3fb2ba),_0x4e725a['mapper']['bindElementToMarker'](_0x3fb2ba,_0x2e51a7['markerName']);}};}class wt extends _0x2d1259{['afterInit'](){const _0x3474f7=this['editor'];if(!_0x3474f7['plugins']['has']('RemoveFormatEditing'))return;_0x3474f7['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c1582=this['editor'];_0x3c1582['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e00a3=>{if('formatBlock'!=_0x1e00a3['type']&&'formatInline'!=_0x1e00a3['type'])return;const {data:_0x22d231}=_0x1e00a3;return _0x22d231&&'removeFormat'==_0x22d231['commandName']?{'type':'format','content':o(_0x3c1582['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2d1259{['afterInit'](){const _0x4ae17e=this['editor'];if(!_0x4ae17e['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xd4fc8f=_0x4ae17e['plugins']['get']('TrackChangesEditing');_0xd4fc8f['enableCommand']('goToPreviousRestrictedEditingException'),_0xd4fc8f['enableCommand']('goToNextRestrictedEditingException');const _0x33688f=_0x4ae17e['plugins']['get']('RestrictedEditingModeEditing');_0x33688f['enableCommand']('trackChanges'),_0x33688f['enableCommand']('acceptSuggestion'),_0x33688f['enableCommand']('discardSuggestion'),_0x33688f['enableCommand']('acceptAllSuggestions'),_0x33688f['enableCommand']('discardAllSuggestions'),_0x33688f['enableCommand']('acceptSelectedSuggestions'),_0x33688f['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2d1259{static get['requires'](){return[_0x1d6e1d];}['init'](){const _0x2032a4=this['editor'],_0x5c706b=_0x2032a4['plugins']['get']('TrackChangesEditing');_0x5c706b['enableCommand']('shiftEnter'),_0x2032a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x2032a4),{'priority':'high'}),_0x2032a4['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x2032a4),{'priority':'high'}),_0x2032a4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5e2d6,_0x78f1af,_0x8bccf8)=>{_0x8bccf8['options']['showSuggestionHighlights']&&ge(_0x2032a4,{'showActiveMarker':!0x1})(_0x5e2d6,_0x78f1af,_0x8bccf8);}),_0x5c706b['descriptionFactory']['registerElementLabel']('softBreak',_0x2e993e=>o(_0x2032a4['locale'],'ELEMENT_LINE_BREAK',_0x2e993e));}}function ge(_0x1c6455,{showActiveMarker:_0x2a60d1=!0x0}={}){return(_0x5e4acf,_0x39a7bd,_0x5c143d)=>{const _0x55fff6=_0x1c6455['plugins']['get']('TrackChangesEditing');if(!_0x5c143d['consumable']['test'](_0x39a7bd['markerRange'],_0x5e4acf['name']))return;const _0x221565=_0x1c6455['model'];for(const _0x3134f4 of _0x39a7bd['markerRange']['getItems']()){if(!_0x3134f4['is']('element','softBreak'))continue;const _0x586807='deletion'==_0x39a7bd['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x28cb8f}=_0x55fff6['_splitMarkerName'](_0x39a7bd['markerName']),_0x5a5e49=_0x5c143d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x586807,'data-author-id':_0x28cb8f}),_0x148a38=_0x5c143d['mapper']['toViewPosition'](_0x221565['createPositionBefore'](_0x3134f4));_0x2a60d1&&_0x55fff6['activeMarkers']['includes'](_0x39a7bd['markerName'])&&_0x5c143d['writer']['addClass']('ck-suggestion-marker--active',_0x5a5e49),_0x5c143d['writer']['insert'](_0x148a38,_0x5a5e49),_0x5c143d['mapper']['bindElementToMarker'](_0x5a5e49,_0x39a7bd['markerName']);}};}class St extends _0x2d1259{['afterInit'](){const _0x3814ff=this['editor'],_0x313a1b=_0x3814ff['model'],_0x70f3d4=_0x3814ff['locale'];if(!_0x3814ff['plugins']['has']('StandardEditingModeEditing'))return;const _0x1c8724=_0x3814ff['plugins']['get']('TrackChangesEditing'),_0x4fd32b='restrictedEditingException',_0x46645f=_0x3814ff['commands']['get'](_0x4fd32b);_0x1c8724['enableCommand'](_0x4fd32b,(_0x543b3f,_0x40536a={})=>{const _0x4da161=_0x313a1b['document']['selection'];if(_0x4da161['isCollapsed'])return void _0x543b3f(_0x40536a);const _0x399028=void 0x0!==_0x40536a['forceValue']?_0x40536a['forceValue']:!_0x46645f['value'];_0x313a1b['change'](()=>{const _0x54d5c8=Array['from'](_0x4da161['getRanges']());for(const _0x14e329 of _0x54d5c8){const _0x5192e6=_0x399028?[_0x14e329]:io(_0x4fd32b,_0x14e329,_0x313a1b);for(const _0x44d926 of _0x5192e6)_0x1c8724['markInlineFormat'](_0x44d926,{'commandName':_0x4fd32b,'commandParams':[{'forceValue':_0x399028}]});}});}),_0x1c8724['descriptionFactory']['registerDescriptionCallback'](_0xa97301=>{if('formatBlock'!=_0xa97301['type']&&'formatInline'!=_0xa97301['type'])return;const {data:_0x30caaa}=_0xa97301;return _0x30caaa&&_0x30caaa['commandName']==_0x4fd32b?_0x30caaa['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x70f3d4,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x70f3d4,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2d1259{['afterInit'](){const _0x217563=this['editor'];if(!_0x217563['plugins']['has']('Style')||!_0x217563['plugins']['has']('DataSchema'))return;const _0x59ba22=_0x217563['plugins']['get']('TrackChangesEditing'),_0x1c8668=_0x217563['locale'],_0x1eeb2b=_0x217563['config']['get']('style')||{},_0x27ed5e=_0x217563['plugins']['get']('GeneralHtmlSupport'),_0xc97c82=_0x217563['plugins']['get']('StyleUtils')['normalizeConfig'](_0x217563['plugins']['get']('DataSchema'),_0x1eeb2b['definitions']);_0x59ba22['enableDefaultAttributesIntegration']('style');const _0x247eb7=new Set();for(const _0x4e6290 of _0xc97c82['block']){const _0xb72265=_0x27ed5e['getGhsAttributeNameForElement'](_0x4e6290['element']);_0x247eb7['add'](_0xb72265);}const _0x517380=new Set();for(const _0x455064 of _0xc97c82['inline']){const _0x1787fa=_0x27ed5e['getGhsAttributeNameForElement'](_0x455064['element']);_0x517380['add'](_0x1787fa);for(const _0x12163e of _0x455064['ghsAttributes'])_0x517380['add'](_0x12163e);}for(const _0x246b7b of _0x247eb7)_0x59ba22['registerBlockAttribute'](_0x246b7b),_0x59ba22['descriptionFactory']['registerAttributeLabel'](_0x246b7b,o(_0x1c8668,'FORMAT_STYLE'));for(const _0x3ae802 of _0x517380)_0x59ba22['registerInlineAttribute'](_0x3ae802),_0x59ba22['descriptionFactory']['registerAttributeLabel'](_0x3ae802,o(_0x1c8668,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x272340=this['editor'],_0x24cb0c=_0x272340['locale'];_0x272340['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32e3d4=>{if('formatBlock'!=_0x32e3d4['type']&&'formatInline'!=_0x32e3d4['type'])return;const {data:_0x81756a}=_0x32e3d4;return _0x81756a&&'style'===_0x81756a['commandName']?_0x81756a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x24cb0c,'*Set\x20format:*\x20%0',_0x81756a['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x24cb0c,'*Remove\x20format:*\x20%0',_0x81756a['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2d1259{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x21f47e){super(_0x21f47e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x55f8eb=this['editor'],_0x1a5dd0=_0x55f8eb['model']['document']['selection'];if(!_0x55f8eb['plugins']['has']('TableEditing'))return;const _0x4790e5=_0x55f8eb['locale'],_0x19f6fe=_0x55f8eb['plugins']['get']('TrackChangesEditing'),_0x46a288=_0x55f8eb['plugins']['get']('TableUtils');_0x19f6fe['descriptionFactory']['registerElementLabel']('table',_0x4f81c2=>o(_0x4790e5,'ELEMENT_TABLE',_0x4f81c2)),this['_setupColumnsRowsFixing'](),_0x19f6fe['enableCommand']('insertTable'),_0x19f6fe['enableCommand']('selectTableRow'),_0x19f6fe['enableCommand']('selectTableColumn');for(const _0x44815f of['insertTableRowAbove','insertTableRowBelow']){const _0x3ef371=_0x55f8eb['commands']['get'](_0x44815f);_0x19f6fe['enableCommand'](_0x44815f,_0x3db315=>{_0x55f8eb['model']['change'](_0x564dd4=>{_0x3db315();const _0x449cd4='above'===_0x3ef371['order'],_0x17b5fd=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x547f3a=_0x46a288['getRowIndexes'](_0x17b5fd),_0x2a0688=_0x449cd4?_0x547f3a['first']-0x1:_0x547f3a['last']+0x1,_0x3203e7=_0x17b5fd[0x0]['findAncestor']('table'),_0x16ca63=_0x46a288['createTableWalker'](_0x3203e7,{'startRow':_0x2a0688,'endRow':_0x2a0688}),_0x1bbfb5=Array['from'](_0x16ca63)['map'](_0x2f00a0=>_0x564dd4['createRangeOn'](_0x2f00a0['cell']));_0x19f6fe['markMultiRangeInsertion'](_0x1bbfb5,'tableRow');});});}for(const _0x23595a of['insertTableColumnLeft','insertTableColumnRight']){const _0x4e5b61=_0x55f8eb['commands']['get'](_0x23595a);_0x19f6fe['enableCommand'](_0x23595a,_0x326e3e=>{_0x55f8eb['model']['change'](_0x37ea66=>{_0x326e3e();const _0x5b9c69='left'===_0x4e5b61['order'],_0x5d17d5=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x1daecb=_0x46a288['getColumnIndexes'](_0x5d17d5),_0xa3a304=_0x5b9c69?_0x1daecb['first']-0x1:_0x1daecb['last']+0x1,_0x37d43a=_0x5d17d5[0x0]['findAncestor']('table'),_0x4fa9a6=_0x46a288['createTableWalker'](_0x37d43a,{'startRow':0x0,'column':_0xa3a304,'includeAllSlots':!0x1}),_0xf39fff=Array['from'](_0x4fa9a6)['map'](_0x1cebf2=>_0x37ea66['createRangeOn'](_0x1cebf2['cell']));_0x19f6fe['markMultiRangeInsertion'](_0xf39fff,'tableColumn');});});}for(const _0x36b0ea of['removeTableRow','removeTableColumn']){const _0x448623=_0x36b0ea['substr'](0xb),_0x25b013=_0x448623['toLowerCase'](),_0x2aef73=_0x25b013['substr'](0x0,0x3)+'span',_0x330224='table'+_0x448623,_0x4316d5='min'+_0x448623,_0x38694d='max'+_0x448623;_0x19f6fe['enableCommand'](_0x36b0ea,()=>{_0x55f8eb['model']['change'](_0x21564e=>{const _0x1793d9=_0x46a288['getSelectionAffectedTableCells'](_0x1a5dd0),_0x2a959d=_0x1793d9[0x0]['findAncestor']('table');let _0x11cc09;if('removeTableRow'==_0x36b0ea){const _0x4d7613=_0x46a288['getRowIndexes'](_0x1793d9);_0x11cc09={'startRow':_0x4d7613['first'],'endRow':_0x4d7613['last'],'includeAllSlots':!0x0};}else{const _0x4a3274=_0x46a288['getColumnIndexes'](_0x1793d9);_0x11cc09={'startColumn':_0x4a3274['first'],'endColumn':_0x4a3274['last'],'includeAllSlots':!0x0};}const _0x14d601=_0x46a288['createTableWalker'](_0x2a959d,_0x11cc09),_0x4308b7=Array['from'](_0x14d601)['map'](({cell:_0xc7aa8})=>_0xc7aa8),_0x153a33=be(_0x4308b7['filter'](_0x2313b9=>_0x2313b9['hasAttribute'](_0x2aef73))),_0x390c44=be(_0x4308b7['filter'](_0x44f54f=>!_0x44f54f['hasAttribute'](_0x2aef73)))['map'](_0x4235ab=>_0x21564e['createRangeOn'](_0x4235ab)),_0x489433=_0x19f6fe['markMultiRangeDeletion'](_0x390c44,_0x330224);if(_0x489433&&('tableRow'==_0x489433['subType']||'tableColumn'==_0x489433['subType'])){const _0x2c3d9d=this['_getSuggestionCoords'](_0x489433);for(const _0x50a2f7 of _0x153a33){const _0x21327a=_0x21564e['createRangeOn'](_0x50a2f7),_0x782b71=_0x46a288['getCellLocation'](_0x50a2f7),_0x55bc69=_0x50a2f7['getAttribute'](_0x2aef73)-0x1,_0x45ed1f=_0x2c3d9d[_0x4316d5],_0x392bb2=_0x2c3d9d[_0x38694d];_0x45ed1f<=_0x782b71[_0x25b013]&&_0x782b71[_0x25b013]+_0x55bc69<=_0x392bb2&&_0x489433['addRange'](_0x21327a);}}});});}function _0x17f4a0(_0xfbd721){const _0x124a49=Array['from'](_0x1a5dd0['getRanges']())['map'](_0x137160=>_0x43155d['fromRange'](_0x137160));_0x55f8eb['model']['change'](_0x17d81e=>{const _0xe41b0b=_0x17d81e['batch'];_0xfbd721=_0xfbd721['filter'](_0x996163=>'$graveyard'!=_0x996163['root']['rootName']),_0x17d81e['setSelection'](_0xfbd721),_0x55f8eb['commands']['get']('removeTableRow')['refresh'](),_0x55f8eb['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x55f8eb['model']['enqueueChange'](()=>{_0x55f8eb['model']['enqueueChange'](_0xe41b0b,_0x11b9a8=>{const _0x2689bd=_0x124a49['filter'](_0x49efbc=>'$graveyard'!=_0x49efbc['root']['rootName']);_0x2689bd['length']>0x0&&_0x11b9a8['setSelection'](_0x2689bd);for(const _0x56b926 of _0x124a49)_0x56b926['detach']();});});});}function _0x3898ad(_0x5d706a){_0x55f8eb['model']['change'](_0x5c18e9=>{const _0x52843c=Array['from'](_0x1a5dd0['getRanges']())['map'](_0x28e11d=>_0x43155d['fromRange'](_0x28e11d)),_0x2c2192=[];for(const _0x58858e of _0x5d706a)for(const _0x43a7d1 of _0x58858e['getItems']({'shallow':!0x0}))_0x2c2192['push'](_0x43a7d1);for(const _0x44b8a0 of _0x2c2192)'$graveyard'!=_0x44b8a0['root']['rootName']&&(_0x5c18e9['setSelection'](_0x5c18e9['createPositionAt'](_0x44b8a0,0x0)),_0x55f8eb['commands']['get']('removeTableColumn')['refresh'](),_0x55f8eb['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4a513d=_0x52843c['filter'](_0x5cb793=>'$graveyard'!=_0x5cb793['root']['rootName']);_0x4a513d['length']>0x0&&_0x5c18e9['setSelection'](_0x4a513d);for(const _0x3ecf3d of _0x52843c)_0x3ecf3d['detach']();});}function _0x5e84f3(_0x2c26b9,_0x15b36e){return _0x15b36e['every'](_0x32b559=>_0x2c26b9['some'](_0x3deea5=>_0x3deea5['end']['isEqual'](_0x32b559['start'])||_0x32b559['end']['isEqual'](_0x3deea5['start'])));}function _0xaab6ee(_0xa870a1,_0x2053fb){return!_0xa870a1['some'](_0x1171f8=>_0x2053fb['some'](_0x156916=>_0x1171f8['isIntersecting'](_0x156916)))&&_0xa870a1['some'](_0x3777a0=>_0x2053fb['some'](_0x1ba349=>_0x3777a0['end']['isTouching'](_0x1ba349['start'])));}_0x55f8eb['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x65ceab,_0x574699,_0x3c46f0)=>{if(!_0x3c46f0['options']['showSuggestionHighlights'])return;const _0x1ae6b0=_0x574699['item'];if(!_0x1ae6b0)return;const _0x1be618=_0x3c46f0['mapper']['toViewElement'](_0x1ae6b0);function _0x406ff7(_0xf6bf95){return Array['isArray'](_0xf6bf95)?_0xf6bf95:[_0xf6bf95];}_0x1be618&&'tableCell'===_0x1ae6b0['name']&&_0x2590dd(_0x1be618,_0x3c46f0['writer'],(_0x1f5834,_0x32015f,_0x215208)=>_0x215208['addClass'](_0x406ff7(_0x32015f['classes']),_0x1f5834),(_0xe469b7,_0x56e55a,_0x4d6bcf)=>_0x4d6bcf['removeClass'](_0x406ff7(_0x56e55a['classes']),_0xe469b7));},{'priority':'highest'}),_0x19f6fe['descriptionFactory']['registerDescriptionCallback'](_0x58a1e6=>{if('insertion'!=_0x58a1e6['type']&&'deletion'!=_0x58a1e6['type'])return;const _0x4ecf97=_0x58a1e6['getContainedElement']();if(null!=_0x4ecf97&&_0x4ecf97['is']('element','table')){if('insertion'==_0x58a1e6['type']){const _0x312481=_0x58a1e6['getItems']()['filter'](_0x3459da=>_0x3459da['is']('$textProxy'))['map'](_0x26d018=>_0x26d018['data']);if(_0x312481['length'])return{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x312481['join']('\x20')+'\x22'))};}if('deletion'==_0x58a1e6['type']){const _0x723c0b=_0x58a1e6['getItems']()['filter'](_0x9732ff=>_0x9732ff['is']('$textProxy'))['map'](_0xb72794=>_0xb72794['data']);if(_0x723c0b['length'])return{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x723c0b['join']('\x20')+'\x22'))};}}}),_0x19f6fe['descriptionFactory']['registerDescriptionCallback'](_0x5d5ac6=>{if('tableRow'==_0x5d5ac6['subType']){const _0x25cb2b=_0x5d5ac6['getItems']()['filter'](_0x145411=>_0x145411['is']('$textProxy'))['map'](_0x1da8ad=>_0x1da8ad['data']),_0x1316d1=this['_getSuggestionCoords'](_0x5d5ac6),_0x385b3d=_0x1316d1['maxRow']-_0x1316d1['minRow']+0x1;if('insertion'==_0x5d5ac6['type'])return _0x25cb2b['length']?{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x385b3d,'\x22'+_0x25cb2b['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW',_0x385b3d))};if('deletion'==_0x5d5ac6['type'])return _0x25cb2b['length']?{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x385b3d,'\x22'+_0x25cb2b['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_ROW',_0x385b3d))};}if('tableColumn'==_0x5d5ac6['subType']){const _0xccf782=_0x5d5ac6['getItems']()['filter'](_0x193023=>_0x193023['is']('$textProxy'))['map'](_0x760f29=>_0x760f29['data']),_0x2ed083=this['_getSuggestionCoords'](_0x5d5ac6),_0x3419b6=_0x2ed083['maxColumn']-_0x2ed083['minColumn']+0x1;if('insertion'==_0x5d5ac6['type'])return _0xccf782['length']?{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3419b6,'\x22'+_0xccf782['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4790e5,'*Insert:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN',_0x3419b6))};if('deletion'==_0x5d5ac6['type'])return _0xccf782['length']?{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3419b6,'\x22'+_0xccf782['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4790e5,'*Remove:*\x20%0',o(_0x4790e5,'ELEMENT_TABLE_COLUMN',_0x3419b6))};}}),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x17f4a0),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x17f4a0),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3898ad),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3898ad),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5e84f3),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5e84f3),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0xaab6ee),_0x19f6fe['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0xaab6ee);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4f809a=this['editor'],_0x569fe1=_0x4f809a['model']['document']['selection'];return(_0x31cce7,_0x1c4ece)=>{_0x4f809a['model']['change'](_0x500ff5=>{const {commandName:_0x116758,commandParams:_0x1043ec}=_0x1c4ece;let _0x2d4d8b=_0x31cce7[0x0]['end']['nodeBefore'];_0x1043ec&&_0x1043ec[0x0]&&!0x1===_0x1043ec[0x0]['forceValue']&&(_0x2d4d8b=_0x31cce7[0x0]['start']['nodeAfter']);const _0x407caf=_0x500ff5['createRangeIn'](_0x2d4d8b);if('$graveyard'==_0x407caf['root']['rootName'])return;const _0xd90c52=Array['from'](_0x569fe1['getRanges']())['map'](_0x5c8d69=>_0x43155d['fromRange'](_0x5c8d69));_0x500ff5['setSelection'](_0x407caf),_0x4f809a['commands']['get'](_0x116758)['refresh'](),_0x1043ec['push']({'forceDefaultExecution':!0x0}),_0x4f809a['execute'](_0x116758,..._0x1043ec);const _0x3675e8=_0xd90c52['filter'](_0x2b35bf=>'$graveyard'!=_0x2b35bf['root']['rootName']);_0x3675e8['length']>0x0&&_0x500ff5['setSelection'](_0x3675e8);for(const _0x248b50 of _0xd90c52)_0x248b50['detach']();});};}['_getCoordsForCells'](_0x393ce1){const _0xfc1a45=this['editor']['plugins']['get']('TableUtils');let _0x22aa53=Number['MAX_SAFE_INTEGER'],_0x4a45c2=Number['MIN_SAFE_INTEGER'],_0x4e3cde=Number['MAX_SAFE_INTEGER'],_0x58280b=Number['MIN_SAFE_INTEGER'];for(const _0x1dbbff of _0x393ce1){if('$graveyard'==_0x1dbbff['root']['rootName'])continue;const {row:_0xe3cdad,column:_0xffd2d4}=_0xfc1a45['getCellLocation'](_0x1dbbff),_0x34c755=_0x1dbbff['hasAttribute']('rowspan')?_0x1dbbff['getAttribute']('rowspan')-0x1:0x0,_0x22610a=_0x1dbbff['hasAttribute']('colspan')?_0x1dbbff['getAttribute']('colspan')-0x1:0x0;_0x22aa53=_0xe3cdad<_0x22aa53?_0xe3cdad:_0x22aa53,_0x4a45c2=_0xe3cdad+_0x34c755>_0x4a45c2?_0xe3cdad+_0x34c755:_0x4a45c2,_0x4e3cde=_0xffd2d4<_0x4e3cde?_0xffd2d4:_0x4e3cde,_0x58280b=_0xffd2d4+_0x22610a>_0x58280b?_0xffd2d4+_0x22610a:_0x58280b;}return{'minRow':_0x22aa53,'maxRow':_0x4a45c2,'minColumn':_0x4e3cde,'maxColumn':_0x58280b};}['_setupColumnsRowsFixing'](){const _0x3b7e5d=this['editor'],_0x115d1b=_0x3b7e5d['plugins']['get']('TrackChangesEditing'),_0x52d151=_0x3b7e5d['plugins']['get']('TableUtils');_0x3b7e5d['model']['document']['on']('change:data',()=>{const _0x1e9c7c=Array['from'](_0x3b7e5d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x592455,data:_0xb6bab6}of _0x1e9c7c){const {group:_0x4975cd,id:_0x434d60,subType:_0x23e238}=_0x115d1b['_splitMarkerName'](_0x592455);if('suggestion'!=_0x4975cd)continue;if(null!=_0xb6bab6['oldRange'])continue;const _0x3a905f=_0x115d1b['getSuggestion'](_0x434d60);this['_tablePostFixingSubtypes']['includes'](_0x23e238)&&this['_tableSuggestions']['add'](_0x3a905f);}},{'priority':'low'});const _0x3f2cf4=(_0x1f5459,_0x5e104a)=>{let _0x5d1705=!0x1;const _0x22d7d1=_0x5e104a['createRangeOn'](_0x1f5459),_0xf8147f=_0x1f5459['findAncestor']('table'),_0x169f6b=_0x52d151['getCellLocation'](_0x1f5459);for(const _0x329219 of this['_tableSuggestions']){const _0x317515=_0x329219['subType'],_0x10cf36=_0x317515['startsWith']('tablePaste'),_0x43ae96=_0x317515['substr'](_0x10cf36?0xa:0x5),_0x3474ec=_0x43ae96['toLowerCase'](),_0x3b7695=_0x3474ec['substr'](0x0,0x3)+'span',_0x86fd88='min'+_0x43ae96,_0x4cf70e='max'+_0x43ae96;if(!_0x329219['isInContent'])continue;if(_0xf8147f!=_0x329219['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x329219['isIntersectingWithRange'](_0x22d7d1))continue;const _0x5e67f5=_0x1f5459['hasAttribute'](_0x3b7695)?_0x1f5459['getAttribute'](_0x3b7695)-0x1:0x0,_0x39bd98=this['_getSuggestionCoords'](_0x329219),_0x122b55=_0x39bd98[_0x86fd88],_0x6e13f3=_0x39bd98[_0x4cf70e];_0x122b55<=_0x169f6b[_0x3474ec]&&_0x169f6b[_0x3474ec]+_0x5e67f5<=_0x6e13f3&&(_0x329219['addRange'](_0x22d7d1),_0x5d1705=!0x0);}return _0x5d1705;};_0x3b7e5d['model']['document']['registerPostFixer'](_0x24fb66=>{let _0x1118cd=!0x1;for(const _0x1b4375 of _0x3b7e5d['model']['document']['differ']['getChanges']())if('insert'==_0x1b4375['type']){if('tableRow'==_0x1b4375['name']){for(const _0x546566 of _0x1b4375['position']['nodeAfter']['getChildren']())_0x1118cd=_0x1118cd||_0x3f2cf4(_0x546566,_0x24fb66);}else'tableCell'==_0x1b4375['name']&&(_0x1118cd=_0x1118cd||_0x3f2cf4(_0x1b4375['position']['nodeAfter'],_0x24fb66));}return _0x1118cd;});}['_getSuggestionCoords'](_0xd51d19){return this['_getCoordsForCells'](_0xd51d19['getRanges']()['map'](_0x3c0eee=>_0x3c0eee['start']['nodeAfter']));}}function be(_0x3fbbae){return Array['from'](new Set(_0x3fbbae)['values']());}class vt extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x2d319f=this['editor'],_0x36c4d7=_0x2d319f['model']['document']['selection'],_0xf110e1=_0x2d319f['locale'];if(!_0x2d319f['plugins']['has']('TableEditing'))return;const _0x4b5082=_0x2d319f['plugins']['get']('TrackChangesEditing'),_0x209c4a=_0x2d319f['plugins']['get']('TableUtils'),_0x3d8c8e=_0x2d319f['plugins']['get'](It);_0x3d8c8e['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x4b5082['enableCommand']('mergeTableCells',()=>{const _0x4c1795=_0x209c4a['getSelectionAffectedTableCells'](_0x2d319f['model']['document']['selection']);_0x2d319f['model']['change'](()=>{_0x4b5082['markMultiRangeBlockFormat'](_0x4c1795,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d319f['commands']['get']('mergeTableCells')['on']('execute',(_0x3b7698,_0x1f89dc)=>{_0x2d319f['commands']['get']('trackChanges')['value']&&(_0x1f89dc['length']>0x0&&_0x1f89dc[_0x1f89dc['length']-0x1]&&_0x1f89dc[_0x1f89dc['length']-0x1]['forceDefaultExecution']||_0x4b5082['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x3b7698['stop']());},{'priority':'highest'});for(const _0x36671a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x4ad2e0=_0x2d319f['commands']['get'](_0x36671a);_0x4b5082['enableCommand'](_0x36671a,()=>{const _0x4e234e=_0x2d319f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2bf2a9=>_0x2bf2a9['is']('element','tableCell')),_0x549b4b=_0x4ad2e0['value'];_0x2d319f['model']['change'](()=>{_0x4b5082['markMultiRangeBlockFormat']([_0x4e234e,_0x549b4b],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1fb4a4 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x5651fe=_0x2d319f['commands']['get'](_0x1fb4a4);_0x4b5082['enableCommand'](_0x1fb4a4,()=>{const _0x404921=_0x209c4a['getSelectionAffectedTableCells'](_0x2d319f['model']['document']['selection'])[0x0],_0x527701=_0x404921['findAncestor']('table'),{column:_0x363fcd,row:_0x4f6de9}=_0x209c4a['getCellLocation'](_0x404921);let _0x24fd74=[];if('horizontally'==_0x5651fe['direction']){const _0x422d1b=_0x209c4a['createTableWalker'](_0x527701,{'startRow':_0x4f6de9,'endRow':_0x4f6de9,'includeAllSlots':!0x0});_0x24fd74=Array['from'](_0x422d1b)['map'](_0x110c07=>_0x110c07['cell']);}else{const _0x388255=_0x209c4a['createTableWalker'](_0x527701,{'column':_0x363fcd,'includeAllSlots':!0x0});_0x24fd74=Array['from'](_0x388255)['map'](_0x4627cc=>_0x4627cc['cell']);}_0x2d319f['model']['change'](_0x3d2e9a=>{_0x4b5082['markBlockFormat'](_0x3d2e9a['createRangeOn'](_0x404921),{'commandName':_0x1fb4a4,'commandParams':[]},_0x24fd74,_0x1fb4a4);});});}_0x4b5082['descriptionFactory']['registerDescriptionCallback'](_0x21d916=>{if('formatBlock'!=_0x21d916['type']&&'formatInline'!=_0x21d916['type'])return;const {data:_0x511130}=_0x21d916;return _0x511130&&'mergeTableCells'==_0x511130['commandName']?{'type':'format','content':o(_0xf110e1,'*Merge\x20cells*')}:void 0x0;}),_0x4b5082['descriptionFactory']['registerDescriptionCallback'](_0x488308=>{if('formatBlock'!=_0x488308['type']&&'formatInline'!=_0x488308['type'])return;const {data:_0x111aca}=_0x488308;return _0x111aca?'splitTableCellVertically'==_0x111aca['commandName']?{'type':'format','content':o(_0xf110e1,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x111aca['commandName']?{'type':'format','content':o(_0xf110e1,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x102230=_0x3d8c8e['_acceptFormatSuggestionCallbackFactory']();for(const _0xdea79d of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdea79d,'accept',_0x102230);for(const _0xac75c0 of['splitTableCellVertically','splitTableCellHorizontally'])_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xac75c0,'accept',_0x102230);_0x4b5082['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x48418b=>{_0x2d319f['model']['change'](_0x2b791a=>{const _0x217cd0=Array['from'](_0x36c4d7['getRanges']())['map'](_0x1564ee=>_0x43155d['fromRange'](_0x1564ee));_0x2b791a['setSelection'](_0x48418b),_0x2d319f['commands']['get']('mergeTableCells')['refresh'](),_0x2d319f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x167c4b=_0x217cd0['filter'](_0x26ddb6=>'$graveyard'!=_0x26ddb6['root']['rootName']);_0x167c4b['length']>0x0&&_0x2b791a['setSelection'](_0x167c4b);for(const _0x179139 of _0x217cd0)_0x179139['detach']();});});for(const _0x51bae0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x329f5c=_0x2d319f['commands']['get'](_0x51bae0);_0x329f5c['on']('set:isEnabled',(_0x4e5b63,_0x98bb79,_0x32a5df)=>{if(_0x32a5df){const _0x47ec72=_0x2d319f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3e7cac=>_0x3e7cac['is']('element','tableCell'));this['_areMergableCells'](_0x329f5c['value'],_0x47ec72)||(_0x4e5b63['return']=!0x1,_0x4e5b63['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x141ca9=this['editor']['commands']['get']('mergeTableCells'),_0x273efa=this['editor']['plugins']['get']('TableUtils');if(!_0x141ca9['isEnabled'])return!0x1;const _0x162851=_0x273efa['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x204205 of _0x162851)for(const _0x4bf2b0 of _0x162851)if(_0x204205!=_0x4bf2b0&&!this['_areMergableCells'](_0x204205,_0x4bf2b0))return!0x1;return!0x0;}['_areMergableCells'](_0x52a1b2,_0x4a6692){const _0x1831ba=this['editor']['plugins']['get']('TrackChangesEditing'),_0x352112=this['editor']['model']['createRangeOn'](_0x52a1b2),_0x408a66=this['editor']['model']['createRangeOn'](_0x4a6692),_0x9c9b5e=new Set(),_0x1a3216=new Set();for(const _0x3d8091 of _0x1831ba['getSuggestions']())if(('insertion'==_0x3d8091['type']||'deletion'==_0x3d8091['type']||'mergeTableCells'==_0x3d8091['subType'])&&_0x3d8091['isInContent']){for(const _0x40d35b of _0x3d8091['getRanges']())_0x40d35b['containsRange'](_0x352112,!0x0)&&_0x9c9b5e['add'](_0x3d8091['type']+':'+_0x3d8091['author']['id']),_0x40d35b['containsRange'](_0x408a66,!0x0)&&_0x1a3216['add'](_0x3d8091['type']+':'+_0x3d8091['author']['id']);}if(_0x9c9b5e['size']!=_0x1a3216['size'])return!0x1;for(const _0x38f044 of _0x9c9b5e)if(!_0x1a3216['has'](_0x38f044))return!0x1;return!0x0;}}class Ct extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x4c07e5=this['editor'];if(!_0x4c07e5['plugins']['has']('TableEditing'))return;const _0x50c006=_0x4c07e5['locale'],_0x1134ec=_0x4c07e5['plugins']['get']('TrackChangesEditing');_0x1134ec['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x1134ec['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x1134ec['registerBlockAttribute']('headingRows'),_0x1134ec['registerBlockAttribute']('headingColumns'),_0x1134ec['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x50c006,'FORMAT_HEADER_ROW')),_0x1134ec['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x50c006,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x48051c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19db09=this['editor']['plugins']['get']('TableUtils'),_0x2275c0=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x565fd7({showActiveMarker:_0x1ad38d=!0x0,setDataAttribute:_0x572299=!0x0}={}){return(_0x477f0d,_0x2f85f2,_0x4fe138)=>{const {type:_0x1de505,id:_0x941682}=_0x48051c['_splitMarkerName'](_0x2f85f2['markerName']),_0x136dbc=_0x48051c['getSuggestion'](_0x941682),_0x1dafe7=_0x136dbc['data'];if('formatBlock'!=_0x136dbc['type']||!_0x1dafe7||'setTableColumnHeader'!=_0x1dafe7['commandName'])return;if(_0x2f85f2['item'])return void _0x477f0d['stop']();if(!_0x4fe138['consumable']['consume'](_0x2f85f2['markerRange'],_0x477f0d['name']))return;const _0x2d1ce4=_0x2f85f2['markerRange']['start']['nodeAfter'],_0x3c3a4d=_0x2f85f2['markerRange']['end']['nodeBefore'],_0x4f3ecd=_0x2d1ce4['parent']['parent'],{column:_0x360ceb}=_0x19db09['getCellLocation'](_0x2d1ce4),{column:_0x3e198d}=_0x19db09['getCellLocation'](_0x3c3a4d);for(let _0x18b2c0=_0x360ceb;_0x18b2c0<=_0x3e198d;_0x18b2c0++){const _0x1a7dc7=_0x19db09['createTableWalker'](_0x4f3ecd,{'column':_0x18b2c0,'includeAllSlots':!0x1});for(const _0xa91c44 of _0x1a7dc7){const _0x152b19=_0xa91c44['cell'],_0x4df2f4=_0x4fe138['mapper']['toViewElement'](_0x152b19);_0x4fe138['writer']['addClass']('ck-suggestion-marker-'+_0x1de505,_0x4df2f4),_0x572299&&_0x4fe138['writer']['setAttribute']('data-suggestion',_0x941682,_0x4df2f4),_0x4fe138['mapper']['bindElementToMarker'](_0x4df2f4,_0x2f85f2['markerName']),_0x1ad38d&&(_0x48051c['activeMarkers']['includes'](_0x2f85f2['markerName'])?_0x4fe138['writer']['addClass']('ck-suggestion-marker--active',_0x4df2f4):_0x4fe138['writer']['removeClass']('ck-suggestion-marker--active',_0x4df2f4));}}};}_0x48051c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2275c0),_0x48051c['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2275c0),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x565fd7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x13f2f5,_0x58ebd3,_0x57239d)=>{_0x57239d['options']['showSuggestionHighlights']&&_0x565fd7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x13f2f5,_0x58ebd3,_0x57239d);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xef11e8,_0x547843,_0x2be168)=>{const {type:_0x2fd088,id:_0x532e99}=_0x48051c['_splitMarkerName'](_0x547843['markerName']),_0x4eaa2a=_0x48051c['getSuggestion'](_0x532e99),_0x500d82=_0x4eaa2a['data'];if('formatBlock'!=_0x4eaa2a['type']||!_0x500d82||'setTableColumnHeader'!=_0x500d82['commandName'])return;const _0x1e3a47=_0x2be168['mapper']['markerNameToElements'](_0x547843['markerName']);if(_0x1e3a47){for(const _0x1986fb of _0x1e3a47)_0x2be168['writer']['removeClass']('ck-suggestion-marker-'+_0x2fd088,_0x1986fb),_0x2be168['writer']['removeClass']('ck-suggestion-marker--active',_0x1986fb),_0x2be168['writer']['removeAttribute']('data-suggestion',_0x1986fb),_0x2be168['mapper']['unbindElementFromMarkerName'](_0x1986fb,_0x547843['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ed4dd=this['editor'],_0x4ef1a8=_0x2ed4dd['locale'];function _0x120953(_0x34d3df){return{'type':'format','content':o(_0x4ef1a8,'*Format:*\x20%0',_0x34d3df)};}_0x2ed4dd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5726f6=>{if('formatBlock'!=_0x5726f6['type'])return;const {data:_0x188ca8}=_0x5726f6;if(_0x188ca8){if('setTableRowHeader'==_0x188ca8['commandName']){const _0x3e4e32=_0x188ca8['commandParams'][0x0]['forceValue'];return _0x120953(o(_0x4ef1a8,_0x3e4e32?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x188ca8['commandName']){const _0x3c0cbc=_0x188ca8['commandParams'][0x0]['forceValue'];return _0x120953(o(_0x4ef1a8,_0x3c0cbc?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x58745c=>[_0x58745c,null]));class _t extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x56c5c7=this['editor'];if(!_0x56c5c7['plugins']['has']('TableClipboard'))return;const _0x272b2d=_0x56c5c7['plugins']['get']('TrackChangesEditing'),_0x5bb794=_0x56c5c7['plugins']['get']('TableUtils'),_0x4fea1d=_0x56c5c7['plugins']['get'](It),_0x39d3d4=_0x56c5c7['plugins']['get']('TableClipboard');_0x4fea1d['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x56c5c7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x56c5c7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x237e02=null;_0x56c5c7['model']['on']('insertContent',(_0x134144,_0x276be6)=>{const [_0x10c6ae,_0x2326c0]=_0x276be6,_0x155e58=_0x276be6[_0x276be6['length']-0x1];_0x155e58&&_0x155e58['forceDefaultExecution']||_0x272b2d['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0xb66ab1,_0x16b36e,_0x13a52c,_0x58c160,_0x5a3a34){if(_0x16b36e&&!_0x16b36e['is']('documentSelection'))return!0x1;const _0x3735f6=_0x5a3a34['getTableIfOnlyTableInContent'](_0xb66ab1,_0x13a52c);if(!_0x3735f6||!Re(_0x3735f6,void 0x0,_0x58c160))return!0x1;const _0x1ecc15=_0x58c160['getSelectionAffectedTableCells'](_0x13a52c['document']['selection']);if(!_0x1ecc15['length'])return!0x1;const _0xbd409c=_0x1ecc15[0x0]['findAncestor']('table'),_0x565bdc=_0x58c160['getRowIndexes'](_0x1ecc15),_0x1a97e0=_0x58c160['getColumnIndexes'](_0x1ecc15),_0x28e2a2={'startRow':_0x565bdc['first'],'endRow':_0x565bdc['last'],'startColumn':_0x1a97e0['first'],'endColumn':_0x1a97e0['last']};return 0x1==_0x1ecc15['length']&&(_0x28e2a2['endRow']+=_0x58c160['getRows'](_0x3735f6)-0x1,_0x28e2a2['endColumn']+=_0x58c160['getColumns'](_0x3735f6)-0x1),Re(_0xbd409c,_0x28e2a2,_0x58c160);}(_0x10c6ae,_0x2326c0,_0x56c5c7['model'],_0x5bb794,_0x39d3d4)&&(_0x134144['stop'](),_0x237e02={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x56c5c7['model']['change'](()=>{_0x56c5c7['model']['insertContent'](_0x276be6[0x0],_0x276be6[0x1],_0x276be6[0x2],{'forceDefaultExecution':!0x0});const _0x3389eb=_0x6322ca(),{rowInsertionRanges:_0x391520,columnInsertionRanges:_0x475bae,insertionRanges:_0x2af3b0,deletionRanges:_0x51b7c1,cells:_0x1473f2}=_0x237e02;_0x391520['length']&&_0x272b2d['markMultiRangeInsertion'](_0x391520,'tablePasteRow',{'tablePasteChainId':_0x3389eb}),_0x475bae['length']&&_0x272b2d['markMultiRangeInsertion'](_0x475bae,'tablePasteColumn',{'tablePasteChainId':_0x3389eb}),_0x2af3b0['length']&&(_0x272b2d['markMultiRangeInsertion'](_0x2af3b0,'tablePaste',{'tablePasteChainId':_0x3389eb,'skipNestingCheck':!0x0}),_0x2af3b0['forEach'](_0xf82ac0=>_0xf82ac0['detach']?.())),_0x51b7c1['length']&&(_0x272b2d['markMultiRangeDeletion'](_0x51b7c1,'tablePaste',{'tablePasteChainId':_0x3389eb,'skipNestingCheck':!0x0}),_0x51b7c1['forEach'](_0x1cf3b1=>_0x1cf3b1['detach']?.()));const _0x10c48c=_0x272b2d['markMultiRangeBlockFormat'](_0x1473f2['map'](({element:_0x292387})=>_0x292387),{'formatGroupId':_0x6322ca()},[],'tablePasteCell',{'tablePasteChainId':_0x3389eb});if(_0x10c48c){const _0x350b83=_0x10c48c['getMarkers'](),_0x2c7690=[];for(const {element:_0x2a0e16,attributes:_0x18c7eb}of _0x1473f2){if(!_0x18c7eb)continue;const _0x542dcf=_0x56c5c7['model']['createRangeOn'](_0x2a0e16),_0x313535=_0x350b83['find'](_0x1f092c=>_0x1f092c['getRange']()['isEqual'](_0x542dcf));_0x313535&&_0x2c7690['push']([_0x313535['name'],_0x18c7eb]);}_0x2c7690['length']&&_0x10c48c['setAttribute']('markerAttributes',Object['fromEntries'](_0x2c7690));}_0x237e02=null;}));},{'priority':_0xcad5a0['high']+0xa}),_0x56c5c7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d6d2d,_0x18ef30)=>{const [_0x1e12ce,_0x55a147,,_0x2756dd]=_0x18ef30;if(!_0x237e02)return;_0x4d6d2d['stop']();const _0x5cd5b1=_0x1e12ce['cell'],_0x5795b4=_0x55a147,_0x6849d8=ke(_0x5cd5b1),_0x3e7ed0=ke(_0x5795b4);_0x4d6d2d['return']=_0x5cd5b1;let _0x53b05f=null,_0x3fdbf4=null;if(_0x3e7ed0||_0x6849d8){if(_0x6849d8&&!_0x3e7ed0){_0x2756dd['remove'](_0x5cd5b1['getChild'](0x0));for(const _0x12bdde of Array['from'](_0x5795b4['getChildren']()))_0x2756dd['insert'](_0x12bdde,_0x5cd5b1,'end');const _0x3b1931=_0x237e02['rowInsertionIndexes']['includes'](_0x1e12ce['row']),_0x22b43b=_0x237e02['columnInsertionIndexes']['includes'](_0x1e12ce['column']);_0x3b1931||_0x22b43b||(_0x53b05f=_0x43155d['fromRange'](_0x2756dd['createRangeIn'](_0x5cd5b1)));}else _0x3e7ed0&&!_0x6849d8&&(_0x3fdbf4=_0x2756dd['createRangeIn'](_0x5cd5b1));}else{const _0x1c5522=_0x2756dd['createElement']('tableCellSuggestion'),_0xe0e694=_0x2756dd['createElement']('tableCellSuggestion');_0x2756dd['wrap'](_0x2756dd['createRangeIn'](_0x5cd5b1),_0xe0e694),_0x2756dd['insert'](_0x1c5522,_0x5cd5b1,0x0);for(const _0x4d63b0 of Array['from'](_0x5795b4['getChildren']()))_0x2756dd['insert'](_0x4d63b0,_0x1c5522,'end');_0x53b05f=_0x43155d['fromRange'](_0x2756dd['createRangeOn'](_0x1c5522)),_0x3fdbf4=_0x43155d['fromRange'](_0x2756dd['createRangeOn'](_0xe0e694));}const _0x11dff6=Array['from'](_0x5795b4['getAttributes']())['filter'](([_0x4deef0])=>Pe['includes'](_0x4deef0));_0x237e02['cells']['push']({'element':_0x5cd5b1,'attributes':_0x11dff6['length']?Object['fromEntries'](_0x11dff6):null}),_0x53b05f&&_0x237e02['insertionRanges']['push'](_0x53b05f),_0x3fdbf4&&_0x237e02['deletionRanges']['push'](_0x3fdbf4);},{'priority':'high'}),_0x5bb794['on']('insertColumns',(_0x4e6f63,_0x49b602)=>{const [_0x1332cc,_0xf3b11d={}]=_0x49b602;if(!_0x237e02)return;const _0x14705c=_0xf3b11d['at']||0x0,_0xa5aef7=_0xf3b11d['columns']||0x1;_0x237e02['columnInsertionIndexes']=new Array(_0xa5aef7)['fill'](_0x14705c)['map']((_0xdb3c0f,_0x36373b)=>_0xdb3c0f+_0x36373b);for(const {cell:_0x285a61}of _0x5bb794['createTableWalker'](_0x1332cc,{'startColumn':_0x14705c,'endColumn':_0x14705c+_0xa5aef7-0x1}))_0x237e02['columnInsertionRanges']['push'](_0x56c5c7['model']['createRangeOn'](_0x285a61));},{'priority':'low'}),_0x5bb794['on']('insertRows',(_0x3f87ff,_0x162936)=>{const [_0x3e0eec,_0x2607a5={}]=_0x162936;if(!_0x237e02)return;const _0xdc80f2=_0x2607a5['at']||0x0,_0x465d62=_0x2607a5['rows']||0x1;_0x237e02['rowInsertionIndexes']=new Array(_0x465d62)['fill'](_0xdc80f2)['map']((_0x3a197d,_0x560751)=>_0x3a197d+_0x560751);for(const {cell:_0x54a952}of _0x5bb794['createTableWalker'](_0x3e0eec,{'startRow':_0xdc80f2,'endRow':_0xdc80f2+_0x465d62-0x1}))_0x237e02['rowInsertionRanges']['push'](_0x56c5c7['model']['createRangeOn'](_0x54a952));},{'priority':'low'}),_0x272b2d['descriptionFactory']['registerDescriptionCallback'](_0x2beb58=>{if(_0x2beb58['subType']&&_0x2beb58['subType']['startsWith']('tablePaste'))return _0x2beb58['previous']?{}:{'type':'insertion','content':o(_0x56c5c7['locale'],'*Replace\x20table\x20cells*')};});const _0x470ede=()=>!0x1;for(const _0x73c3f7 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion',_0x73c3f7,'join',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('deletion',_0x73c3f7,'join',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x73c3f7,'join',_0x470ede);_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x470ede),_0x272b2d['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0xaef7b6,_0x24c6be,_0x44e20b)=>{const _0x419f2d=_0xaef7b6['map'](_0xce184a=>_0xce184a['getContainedElement']())['filter'](_0x5ba551=>_0x5ba551),_0x46423c=new Map(_0x419f2d['map'](_0x464a9c=>[_0x464a9c,null]));if(_0x237e02){for(const {element:_0x2cf030,attributes:_0x5c72ed}of _0x237e02['cells'])_0x5c72ed&&_0x46423c['set'](_0x2cf030,_0x5c72ed);}else{if(_0x44e20b&&_0x44e20b['markerAttributes'])for(const [_0x20b3d0,_0x2d8dc5]of Object['entries'](_0x44e20b['markerAttributes'])){const _0x13d8ea=_0x56c5c7['model']['markers']['get'](_0x20b3d0),_0x34dafd=_0x13d8ea?_0x13d8ea['getRange']()['getContainedElement']():null;_0x34dafd&&_0x46423c['set'](_0x34dafd,_0x2d8dc5);}}_0x56c5c7['model']['change'](_0x32310f=>{for(const [_0x43938d,_0x568bd1]of _0x46423c)_0x32310f['setAttributes']({...we,..._0x568bd1},_0x43938d);});});const _0x592be2=(_0x311563,_0x3c7984)=>{_0x272b2d['_suggestionFactory']['registerCustomCallback'](_0x311563,'tablePaste',_0x3c7984,(_0x4ecf7c,_0x336f8d,_0x18f5d6)=>{_0x56c5c7['model']['change'](_0x58b0ca=>{const _0x729578=[];for(const _0x177fee of _0x4ecf7c){const _0x2ce009=_0x177fee['start']['nodeAfter'];_0x2ce009['is']('element','tableCellSuggestion')&&_0x729578['push'](_0x2ce009);}_0x272b2d['_suggestionFactory']['getSuggestionCallback'](_0x311563,null,_0x3c7984)(_0x4ecf7c,_0x336f8d,_0x18f5d6);for(const _0x532d0b of _0x729578)'$graveyard'!=_0x532d0b['root']['rootName']&&_0x58b0ca['unwrap'](_0x532d0b);});});};_0x592be2('insertion','accept'),_0x592be2('insertion','discard'),_0x592be2('deletion','accept'),_0x592be2('deletion','discard'),_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x455c2b=>{const _0x20e1fc=_0x455c2b['map'](_0x2fea7f=>_0x2fea7f['getContainedElement']()),_0x3e010f=_0x20e1fc[0x0]['findAncestor']('table'),{minRow:_0x1de637,maxRow:_0x32ce0f}=_0x4fea1d['_getCoordsForCells'](_0x20e1fc);_0x5bb794['removeRows'](_0x3e010f,{'at':_0x1de637,'rows':_0x32ce0f-_0x1de637+0x1});}),_0x272b2d['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x569e3c=>{const _0x31242e=_0x569e3c['map'](_0x332d82=>_0x332d82['getContainedElement']()),_0x2c34f8=_0x31242e[0x0]['findAncestor']('table'),{minColumn:_0x3b904b,maxColumn:_0x45394b}=_0x4fea1d['_getCoordsForCells'](_0x31242e);_0x5bb794['removeColumns'](_0x2c34f8,{'at':_0x3b904b,'columns':_0x45394b-_0x3b904b+0x1});});const _0x55cef6=(_0x3f546c,_0x4767a3)=>{if(!_0x4767a3['subType']||!_0x4767a3['subType']['startsWith']('tablePaste'))return;const _0xf774c6=_0x4767a3['attributes']['tablePasteChainId'],_0x5e728c=_0x272b2d['getSuggestions']()['filter'](_0x3e5a83=>_0x3e5a83['isInContent']&&_0x3e5a83['attributes']&&_0x3e5a83['attributes']['tablePasteChainId']==_0xf774c6);_0x5e728c['length']&&_0x4767a3['getAllAdjacentSuggestions']()['length']!=_0x5e728c['length']&&_0x5e728c['reduce']((_0xaff84b,_0x38ac5e)=>(_0xaff84b['next']=_0x38ac5e,_0x38ac5e['previous']=_0xaff84b,_0x38ac5e));};function _0xb62696(_0x5d2cf5,_0x1b671b=!0x0){const {id:_0x4ff867,authorId:_0x19e33d}=_0x272b2d['_splitMarkerName'](_0x5d2cf5['markerName']),_0x207bdb=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x20ac65=_0x272b2d['activeMarkers']['includes'](_0x5d2cf5['markerName']);return _0x20ac65&&_0x207bdb['push']('ck-suggestion-marker--active'),{'classes':_0x207bdb,'attributes':{'data-suggestion':_0x4ff867,'data-author-id':_0x19e33d},'priority':_0x20ac65&&_0x1b671b?0xbc2:0xbb8};}_0x272b2d['on']('suggestionLoaded',_0x55cef6,{'priority':'high'}),_0x272b2d['on']('suggestionUnloaded',_0x55cef6,{'priority':'high'}),_0x56c5c7['model']['document']['registerPostFixer'](()=>{let _0x661caa=!0x1;const _0xafeabb=Array['from'](_0x56c5c7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x58dbe8,data:_0x38c11c}of _0xafeabb){const {group:_0x5da030,type:_0x442ba7,id:_0x5a506d}=_0x272b2d['_splitMarkerName'](_0x58dbe8);if('suggestion'!=_0x5da030||'deletion'!=_0x442ba7||_0x38c11c['oldRange'])continue;if(!_0x272b2d['hasSuggestion'](_0x5a506d))continue;const _0x3a7a29=_0x272b2d['getSuggestion'](_0x5a506d)['getRanges'](),_0x513d77=_0x56c5c7['plugins']['get']('Users')['me'];for(const _0x1c2b09 of _0x272b2d['getSuggestions']()){if(!_0x1c2b09['isInContent']||_0x1c2b09['author']!=_0x513d77)continue;if('formatBlock'!=_0x1c2b09['type']||'tablePasteCell'!=_0x1c2b09['subType'])continue;if(_0x1c2b09['getRanges']()['every'](_0x28d541=>_0x3a7a29['some'](_0x622e0f=>_0x622e0f['containsRange'](_0x28d541,!0x0)))){for(const _0x28e90a of _0x1c2b09['getAllAdjacentSuggestions']())_0x28e90a['isInContent']&&(_0x28e90a['discard'](),_0x661caa=!0x0);}}}return _0x661caa;}),_0x56c5c7['model']['document']['registerPostFixer'](_0x494846=>{const _0x471022=_0x56c5c7['commands']['get']('redo');if(!_0x471022||!_0x471022['_createdBatches']['has'](_0x494846['batch']))return!0x1;let _0x5a128a=!0x1;const _0x216b8e=_0x56c5c7['plugins']['get']('Users')['me'],_0x496736=_0x56c5c7['model']['document']['differ']['getChanges'](),_0x4651a5=Array['from'](_0x56c5c7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x39a10b,data:_0x4ce8ae})=>{const {group:_0x318008,subType:_0x5952cc,authorId:_0x22596a}=_0x272b2d['_splitMarkerName'](_0x39a10b);return'suggestion'==_0x318008&&'tablePaste'==_0x5952cc&&_0x22596a==_0x216b8e['id']&&!_0x4ce8ae['oldRange'];});for(const _0x566628 of _0x496736){if('insert'!=_0x566628['type']||'tableCellSuggestion'!=_0x566628['name']||0x1!=_0x566628['length'])continue;const _0x4f89e5=_0x494846['createRange'](_0x566628['position'],_0x566628['position']['getShiftedBy'](0x1));if(!_0x4651a5['find'](({data:_0x1dbbc1})=>_0x1dbbc1['newRange']['isEqual'](_0x4f89e5))){for(const {name:_0x1ea743,data:_0x41b872}of _0x4651a5)if(_0x4f89e5['containsRange'](_0x41b872['newRange'])){_0x494846['updateMarker'](_0x1ea743,{'range':_0x4f89e5}),_0x5a128a=!0x0;break;}}}return _0x5a128a;}),_0x56c5c7['model']['document']['registerPostFixer'](_0x2baca7=>{let _0x3d7feb=!0x1;const _0x93b1d3=_0x56c5c7['plugins']['get']('Users')['me'],_0x2c9ae2=_0x272b2d['getSuggestions']()['filter'](_0x1b0af1=>_0x1b0af1['isInContent']&&_0x1b0af1['author']==_0x93b1d3),_0xe88ff4=new Set(),_0x5c8fe3=new Set();for(const _0x1665f4 of _0x2c9ae2)if('tablePaste'==_0x1665f4['subType'])for(const _0x40fb0c of _0x1665f4['getMarkers']()){const _0x533e1c=_0x40fb0c['getRange']()['getContainedElement']();if(_0x533e1c){if(_0x533e1c['is']('element','tableCellSuggestion')&&ke(_0x533e1c)){_0x1665f4['removeMarker'](_0x40fb0c['name']),_0xe88ff4['add'](_0x533e1c),_0x3d7feb=!0x0;const _0x5844ba=_0x533e1c['nextSibling'],_0x12d4ae=_0x533e1c['previousSibling'],_0x3c9f33=_0x5844ba&&_0x5844ba['is']('element','tableCellSuggestion'),_0x3ce2a2=_0x12d4ae&&_0x12d4ae['is']('element','tableCellSuggestion');_0x3c9f33&&!_0xe88ff4['has'](_0x5844ba)&&_0x5c8fe3['add'](_0x5844ba),_0x3ce2a2&&!_0xe88ff4['has'](_0x12d4ae)&&_0x5c8fe3['add'](_0x12d4ae);}else _0x533e1c['is']('element','paragraph')&&_0x533e1c['isEmpty']&&(_0x1665f4['removeMarker'](_0x40fb0c['name']),_0x3d7feb=!0x0);}}else{if('tablePasteCell'==_0x1665f4['subType']){if(!_0x1665f4['attributes']||!_0x1665f4['attributes']['tablePasteChainId'])continue;const _0x2bde9e=_0x1665f4['attributes']['markerAttributes'];if(_0x2bde9e&&Object['keys'](_0x2bde9e)['length'])continue;const _0x1b5023=_0x1665f4['attributes']['tablePasteChainId'];let _0x4b4f1b=!0x0,_0x5cbe77=!0x0;for(const _0x137213 of _0x2c9ae2)if(_0x137213['subType']&&_0x137213['subType']['startsWith']('tablePaste')){if(!_0x137213['attributes']['tablePasteChainId']){_0x5cbe77=!0x1;break;}if(_0x137213['id']!=_0x1665f4['id']&&_0x137213['attributes']['tablePasteChainId']==_0x1b5023){_0x4b4f1b=!0x1;break;}}_0x5cbe77&&_0x4b4f1b&&(_0x1665f4['removeMarkers'](),_0x3d7feb=!0x0);}}for(const _0x15b905 of _0xe88ff4)_0x2baca7['remove'](_0x15b905);for(const _0x27d635 of _0x5c8fe3)_0x2baca7['unwrap'](_0x27d635);return _0x3d7feb;}),_0x56c5c7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x554c96,_0x3668f7)=>_0xb62696(_0x554c96),'converterPriority':'high'}),_0x56c5c7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2b8996,_0x462249)=>_0x462249['options']['showSuggestionHighlights']?_0xb62696(_0x2b8996,!0x1):null,'converterPriority':'high'});const _0x3b94fe=_0x56c5c7['editing']['view'];this['listenTo'](_0x3b94fe['document'],'clipboardOutput',(_0x79d899,_0x54743e)=>{const _0x5bbbd3=[];for(const _0x5ab2a3 of _0x3b94fe['createRangeIn'](_0x54743e['content'])['getItems']())_0x5ab2a3['is']('element','suggestion-td')&&_0x5bbbd3['push'](_0x5ab2a3);_0x3b94fe['change'](_0x51b936=>{for(const _0x15a169 of _0x5bbbd3)_0x51b936['move'](_0x51b936['createRangeIn'](_0x15a169),_0x51b936['createPositionBefore'](_0x15a169)),_0x51b936['remove'](_0x15a169);});});}}function ke(_0xe0d22){if(_0xe0d22['isEmpty'])return!0x0;const _0x85711e=_0xe0d22['getChild'](0x0);return _0x85711e['is']('element','paragraph')&&_0x85711e['isEmpty'];}function Re(_0xda54bb,_0xf3ee14={},_0x5b53de){for(const {isAnchor:_0x3a9e47,cellHeight:_0x46c836,cellWidth:_0x1d3eb7}of _0x5b53de['createTableWalker'](_0xda54bb,{'includeAllSlots':!0x0,..._0xf3ee14}))if(!_0x3a9e47||0x1!=_0x46c836||0x1!=_0x1d3eb7)return!0x1;return!0x0;}class Nt extends _0x2d1259{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5c5d19=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c5d19['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5c5d19['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5c5d19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5c5d19['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5c5d19['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5c5d19['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1e67c2,_0x5e139d){const _0x423aa1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb1d171=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2c8a5a=_0x5e139d['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc983af=_0xb1d171['getColumnGroupElement'](_0x2c8a5a);let _0xfb827e=_0xc983af?_0xb1d171['getTableColumnsWidths'](_0xc983af):null,_0x1f0641=_0x2c8a5a['getAttribute']('tableWidth')||null;const _0x58d78c=_0x5e139d['tableWidth']||_0x1f0641,_0x460abc=_0x5e139d['columnWidths']||_0xfb827e,_0x310ab6=this['editor']['plugins']['get']('Users')['me'];for(const _0x2ce3fe of _0x423aa1['getSuggestions']()){const _0x53dc3f=_0x2ce3fe['getContainedElement']();if('resizeTable'===_0x2ce3fe['subType']&&_0x53dc3f===_0x2c8a5a){_0x2ce3fe['author']!==_0x310ab6&&_0x2ce3fe['discard']();const _0x43c255=_0x2ce3fe['data']['commandParams'];_0x1f0641=_0x43c255[0x0]['tableWidth'],_0xfb827e=_0x43c255[0x0]['columnWidths'];break;}}_0x1e67c2({'table':_0x2c8a5a,'tableWidth':_0x58d78c,'columnWidths':_0x460abc}),_0x423aa1['markBlockFormat'](_0x2c8a5a,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x1f0641,'columnWidths':_0xfb827e}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4f2e82){if('formatBlock'!=_0x4f2e82['type']&&'formatInline'!=_0x4f2e82['type'])return;const {data:_0x263d50}=_0x4f2e82;if(_0x263d50&&'resizeTable'===_0x263d50['formatGroupId']){const _0x2f4571='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2f4571)};}}}class Dt extends _0x2d1259{['afterInit'](){const _0x2d04df=this['editor'];_0x2d04df['plugins']['has']('Template')&&_0x2d04df['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2d1259{['afterInit'](){const _0x1cfb7a=this['editor'];if(!_0x1cfb7a['commands']['get']('insertTableOfContents'))return;_0x1cfb7a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4364e2=_0x1cfb7a['plugins']['get']('TrackChangesEditing'),_0x52c818=_0x1cfb7a['locale'];_0x4364e2['descriptionFactory']['registerElementLabel']('tableOfContents',_0x18578d=>o(_0x52c818,'ELEMENT_TABLE_OF_CONTENTS',_0x18578d));}}class $t extends _0x2d1259{['afterInit'](){const _0xe9b876=this['editor'];if(!_0xe9b876['plugins']['has']('Title'))return;const _0x59eab5=_0xe9b876['plugins']['get']('TrackChangesEditing');_0x59eab5['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0xe9b876['locale'],'ELEMENT_TITLE')),_0xe9b876['model']['document']['registerPostFixer'](_0x176019=>{let _0xbcc822=!0x1;const _0x996886=Array['from'](_0xe9b876['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x473360,data:_0xf0dadd}of _0x996886){const {group:_0x4b0202}=_0x59eab5['_splitMarkerName'](_0x473360);if('suggestion'!==_0x4b0202||!_0xf0dadd['newRange'])continue;const _0x3f3b1d=_0xf0dadd['newRange'],_0x24a6df=_0x3f3b1d['end']['nodeBefore'];if(!_0x24a6df||!_0x24a6df['is']('element','title-content'))continue;if(!_0x3f3b1d['start']['isTouching'](_0x3f3b1d['end']))continue;const _0x58a9f6=_0xe9b876['model']['schema']['getNearestSelectionRange'](_0x3f3b1d['end'],'forward');if(_0x58a9f6&&_0x58a9f6['isCollapsed']){const _0x3bed4b=_0x176019['createRange'](_0x3f3b1d['start'],_0x58a9f6['start']);_0x3bed4b['isEqual'](_0x3f3b1d)||(_0x176019['updateMarker'](_0x473360,{'range':_0x3bed4b}),_0xbcc822=!0x0);}_0xbcc822||(_0x176019['removeMarker'](_0x473360),_0xbcc822=!0x0);}return _0xbcc822;});}}class Bt extends _0x2d1259{['afterInit'](){const _0x58b6a3=this['editor'],_0x49084e=_0x58b6a3['plugins']['get']('TrackChangesEditing');_0x58b6a3['plugins']['has']('UndoEditing')&&(_0x49084e['enableCommand']('undo'),_0x49084e['enableCommand']('redo'));}}class xt extends _0x2d1259{static get['requires'](){return[It];}['afterInit'](){const _0x3872bc=this['editor'];if(!_0x3872bc['plugins']['has']('TableCaptionEditing'))return;_0x3872bc['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2d1259{['tableProperties'];['tableCellProperties'];constructor(_0x4ef6a3){super(_0x4ef6a3),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';}['afterInit'](){const _0x56490f=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x5a630e of this['tableProperties'])_0x56490f['enableCommand'](_0x5a630e,(_0x21cbdb,_0x22d008)=>{const _0x2ccd8d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x5a630e,[_0x2ccd8d],this['tableProperties'],'tableProperties',_0x21cbdb,_0x22d008);});_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x56490f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x8abbde,_0x438eb3)=>this['handleDiscardAction'](this['tableProperties'],_0x8abbde,_0x438eb3)),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59e45e of this['tableCellProperties'])_0x56490f['enableCommand'](_0x59e45e,(_0x2c39c9,_0x2e292d)=>{const _0x357f6a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59e45e,_0x357f6a,this['tableCellProperties'],'tableCellProperties',_0x2c39c9,_0x2e292d);});_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x56490f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c85c,_0x1e638d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c85c,_0x1e638d)),_0x56490f['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x56490f['descriptionFactory']['registerDescriptionCallback'](_0x1e75f4=>this['handleSuggestionDescription'](_0x1e75f4));}['_handlePropertyChange'](_0x334d5c,_0x1efb09,_0x58ef9a,_0x4e6492,_0x5b7ca2,_0x402a72){const _0x2fa9f8=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x402a72['batch'],()=>{for(const _0x27406c of _0x1efb09){if(this['_getSuggestion'](_0x27406c,_0x4e6492))_0x5b7ca2(_0x402a72);else{const _0x105778={};for(const _0x2043d0 of _0x58ef9a){const _0xe7e0ea=_0x27406c['getAttribute'](_0x2043d0);void 0x0!==_0xe7e0ea&&(_0x105778[_0x2043d0]=_0xe7e0ea);}_0x5b7ca2(_0x402a72),_0x2fa9f8['markBlockFormat'](_0x27406c,{'commandParams':[_0x105778]},[],_0x4e6492);}}});}['handleDiscardAction'](_0xec53d7,_0x39eb83,_0xfadbf1){const _0x1c0956=_0x39eb83[0x0]['start']['nodeAfter'],_0x1b774e=_0xfadbf1['commandParams'][0x0];this['editor']['model']['change'](_0x48e5b1=>{for(const _0x4e7934 of _0xec53d7)void 0x0!==_0x1b774e[_0x4e7934]?_0x48e5b1['setAttribute'](_0x4e7934,_0x1b774e[_0x4e7934],_0x1c0956):_0x48e5b1['removeAttribute'](_0x4e7934,_0x1c0956);});}['handleSuggestionDescription'](_0x20981f){if(_0x20981f['data'])switch(_0x20981f['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'](_0x4c4767,_0x5c91fe){const _0x96d45d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x425b80 of _0x96d45d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3fd22d=_0x425b80['getContainedElement']();if(_0x425b80['subType']===_0x5c91fe&&_0x3fd22d===_0x4c4767)return _0x425b80;}return null;}}const m='$elementName';class p extends _0x2d1259{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x1f5312,_0x3bfa02,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xc89d19){function _0x1eeeda(_0x463037){return _0x463037['map'](_0x27ea44=>String['fromCharCode'](_0x27ea44))['join']('');}super(_0xc89d19),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x40ec5e,_0x1891bb,_0x10c7eb,_0x505dba)=>{this['_model']['change'](()=>{for(const _0xaa449a of[..._0x505dba,..._0x10c7eb])this['_model']['markers']['has'](_0xaa449a)&&_0xc89d19['editing']['reconvertMarker'](_0xaa449a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xc89d19['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(),_0xc89d19['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xc89d19['config']['get']('trackChanges.trackFormatChanges'),_0xc89d19['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xc89d19['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xc89d19,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1eeeda([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1eeeda([0x34,0x30,0x34,0x38,0x31,0x36,0x34,0x32]);}['init'](){const _0x2f99bd=this['editor'],_0x300c5c=(_0x3b33bd,_0x49e212)=>{if('attribute'!=_0x3b33bd)return'ck-suggestion-marker-'+_0x3b33bd;const _0x2b446b=_0x49e212['split']('|')[0x0];return this['_isBlockAttribute'](_0x2b446b)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x2f99bd['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x58ec30=>{const {id:_0x2307ab,authorId:_0x34ccac,type:_0x4840db,subType:_0x463462}=this['_splitMarkerName'](_0x58ec30['markerName']),_0x4ac203=['ck-suggestion-marker',_0x300c5c(_0x4840db,_0x463462)];let _0x57ce41=0xbb8;return this['activeMarkers']['includes'](_0x58ec30['markerName'])&&(_0x4ac203['push']('ck-suggestion-marker--active'),_0x57ce41=0xbc2),'deletion'==_0x4840db&&(_0x57ce41+=0x5),{'classes':_0x4ac203,'attributes':{'data-suggestion':_0x2307ab,'data-author-id':_0x34ccac},'priority':_0x57ce41};}}),_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x10070f=>{_0x10070f['on']('addMarker:suggestion',(_0x4813ca,_0x46733d,_0x2319a3)=>{if(!_0x2319a3['options']['showSuggestionHighlights'])return;const _0x535117=_0x46733d['item'];if(!_0x535117)return;const _0xda2fad=_0x2319a3['mapper']['toViewElement'](_0x535117);_0x2f99bd['model']['schema']['isObject'](_0x535117)&&_0xda2fad&&!_0xda2fad['getCustomProperty']('widget')&&_0xda2fad['is']('containerElement')&&_0x2c10f6(_0xda2fad,_0x2319a3['writer']);},{'priority':'high'});}),_0x2f99bd['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x100ae8,_0x3094ba)=>{if(!_0x3094ba['options']['showSuggestionHighlights'])return null;const {type:_0x2cb573,subType:_0x4be8ac}=this['_splitMarkerName'](_0x100ae8['markerName']);return{'classes':['ck-suggestion-marker',_0x300c5c(_0x2cb573,_0x4be8ac)],'priority':0xbb8};}});const _0x4d9142=({showActiveMarkers:_0x37d364=!0x0,isAttributeSuggestion:_0xcb4e1=!0x1}={})=>(_0x579dac,_0x44e34e,_0x5a782f)=>{if(!_0x44e34e['item'])return;const {id:_0x4afe63,authorId:_0x43b77c}=this['_splitMarkerName'](_0x44e34e['markerName']);if(_0xcb4e1){const _0x2b60cb=this['_suggestions']['get'](_0x4afe63),_0x210e55=this['_getAttributeKey'](_0x2b60cb);if(!this['_isBlockAttribute'](_0x210e55))return;}if(_0x44e34e['item']['is']('selection'))return void _0x5a782f['consumable']['consume'](_0x44e34e['item'],_0x579dac['name']);const _0x589d91=_0x5a782f['mapper']['toViewElement'](_0x44e34e['item']);if(_0x44e34e['item']['is']('element')&&_0x2f99bd['model']['schema']['isBlock'](_0x44e34e['item'])&&!_0x589d91['getCustomProperty']('addHighlight')){_0x5a782f['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x589d91),_0x5a782f['writer']['setAttribute']('data-suggestion',_0x4afe63,_0x589d91),_0x5a782f['writer']['setAttribute']('data-author-id',_0x43b77c,_0x589d91),_0x5a782f['mapper']['bindElementToMarker'](_0x589d91,_0x44e34e['markerName']),_0x37d364&&(this['activeMarkers']['includes'](_0x44e34e['markerName'])?_0x5a782f['writer']['addClass']('ck-suggestion-marker--active',_0x589d91):_0x5a782f['writer']['removeClass']('ck-suggestion-marker--active',_0x589d91));for(const _0x29d145 of _0x2f99bd['model']['createRangeIn'](_0x44e34e['item'])['getItems']())_0x5a782f['consumable']['consume'](_0x29d145,_0x579dac['name']);_0x5a782f['consumable']['consume'](_0x44e34e['item'],_0x579dac['name']);}};_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x2ae5d0=>{_0x2ae5d0['on']('addMarker:suggestion:formatBlock',(_0x68ca7f,_0x38a954,_0x596b56)=>{_0x596b56['options']['showSuggestionHighlights']&&_0x4d9142({'showActiveMarkers':!0x1})(_0x68ca7f,_0x38a954,_0x596b56);},{'priority':'highest'});}),_0x2f99bd['conversion']['for']('dataDowncast')['add'](_0x26ce55=>{_0x26ce55['on']('addMarker:suggestion:attribute',(_0x2c9d68,_0x23e63d,_0xfb1623)=>{_0xfb1623['options']['showSuggestionHighlights']&&_0x4d9142({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x2c9d68,_0x23e63d,_0xfb1623);},{'priority':'highest'});}),_0x2f99bd['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4a6f2c,_0x3586c5)=>_0x3586c5['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4a6f2c['substr'](0xb)}}),_0x2f99bd['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x15df2d,{writer:_0x510a5a})=>{let _0xf6d275='suggestion:'+_0x15df2d['getAttribute']('suggestion-type')+':'+_0x15df2d['getAttribute']('id');return _0x15df2d['getAttribute']('marker-count')&&(_0xf6d275+=':'+_0x15df2d['getAttribute']('marker-count')),_0x510a5a['createElement']('$marker',{'data-name':_0xf6d275});}}),_0x2f99bd['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x5d6f67=>{_0x5d6f67['on']('addMarker:suggestion:formatBlock',_0x4d9142(),{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x49fc23=>{_0x49fc23['on']('addMarker:suggestion:attribute',_0x4d9142({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x53d408=>{_0x53d408['on']('removeMarker:suggestion:formatBlock',(_0x1d24c3,_0x44fb84,_0x47bdeb)=>{const _0x3a9ef1=_0x47bdeb['mapper']['markerNameToElements'](_0x44fb84['markerName']);if(_0x3a9ef1){for(const _0x45a096 of _0x3a9ef1)_0x45a096['getCustomProperty']('addHighlight')||(_0x47bdeb['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x45a096),_0x47bdeb['writer']['removeAttribute']('data-suggestion',_0x45a096),_0x47bdeb['writer']['removeAttribute']('data-author-id',_0x45a096),_0x47bdeb['mapper']['unbindElementFromMarkerName'](_0x45a096,_0x44fb84['markerName']));}},{'priority':'high'});}),_0x2f99bd['conversion']['for']('editingDowncast')['add'](_0x5d90be=>{_0x5d90be['on']('removeMarker:suggestion:attribute',(_0x1add88,_0x2a8e14,_0x7260aa)=>{const _0x3b1936=_0x7260aa['mapper']['markerNameToElements'](_0x2a8e14['markerName']);if(!_0x3b1936)return;const {id:_0x5bebee}=this['_splitMarkerName'](_0x2a8e14['markerName']),_0x1ffa9b=this['_suggestions']['get'](_0x5bebee),_0x4ad7ee=this['_getAttributeKey'](_0x1ffa9b);if(this['_isBlockAttribute'](_0x4ad7ee)){for(const _0x186868 of _0x3b1936)_0x186868['getCustomProperty']('addHighlight')||(_0x7260aa['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x186868),_0x7260aa['writer']['removeAttribute']('data-suggestion',_0x186868),_0x7260aa['writer']['removeAttribute']('data-author-id',_0x186868),_0x7260aa['mapper']['unbindElementFromMarkerName'](_0x186868,_0x2a8e14['markerName']));}},{'priority':'high'});}),_0x2f99bd['model']['document']['registerPostFixer'](_0xa842a7=>{let _0x5a258c=!0x1;const _0x5d4e36=Array['from'](_0x2f99bd['model']['document']['differ']['getChangedMarkers']()),_0x214271=new Set();for(const {name:_0xb45410,data:_0x5c1d54}of _0x5d4e36){const {group:_0x42a936,type:_0x2b0da2,subType:_0x2f6870,id:_0x33a7ee}=this['_splitMarkerName'](_0xb45410);if('suggestion'!==_0x42a936)continue;const _0x58dcf7=this['_suggestions']['get'](_0x33a7ee);if(null!=_0x5c1d54['newRange']){'formatInline'==_0x2b0da2&&(_0x5a258c=_0x5a258c||Ut(_0x5c1d54['newRange'],_0xb45410,_0xa842a7,_0x2f99bd['model']['schema']));const _0x5e5bc3='attribute'==_0x2b0da2&&this['_isBlockAttribute'](_0x2f6870['split']('|')[0x0]);if(_0x5c1d54['newRange']['isCollapsed']||'$graveyard'==_0x5c1d54['newRange']['root']['rootName']||'formatBlock'==_0x2b0da2&&!Ft(_0x5c1d54['newRange'])||_0x5e5bc3&&!Ft(_0x5c1d54['newRange'])||'deletion'==_0x2b0da2&&!(!Vt(_0xbf5195=_0x5c1d54['newRange'])&&!function(_0x597c42){return _0x597c42['start']['parent']==_0x597c42['end']['nodeBefore']&&_0x597c42['start']['isAtEnd'];}(_0xbf5195)))_0xa842a7['removeMarker'](_0xb45410),_0x5a258c=!0x0;else{if(!_0x58dcf7||!_0x58dcf7['isInContent'])continue;if(_0x5c1d54['newRange']&&_0x5c1d54['oldRange']&&_0x5c1d54['newRange']['isEqual'](_0x5c1d54['oldRange']))continue;_0x214271['add'](_0x58dcf7);}}}var _0xbf5195;return _0x214271['size']>0x0&&(_0x5a258c=!!this['_joinWithAdjacentSuggestions'](_0x214271)||_0x5a258c),_0x5a258c;}),_0x2f99bd['model']['document']['registerPostFixer'](_0x319228=>{let _0x5e1349=!0x1;for(const _0x224624 of _0x2f99bd['model']['document']['differ']['getChanges']())if('insert'==_0x224624['type'])for(const _0xf04601 of this['_suggestions']['values']()){if(_0xf04601['isMultiRange']||!_0xf04601['isInContent'])continue;const _0x49f801='formatBlock'==_0xf04601['type'],_0x271e68=this['_getAttributeKey'](_0xf04601),_0x861e8d=_0x271e68&&this['_isBlockAttribute'](_0x271e68);if(!_0x49f801&&!_0x861e8d)continue;const _0x2ce0ba=_0xf04601['getFirstRange']();if(_0x2ce0ba['start']['parent']!=_0x2ce0ba['end']['parent']&&!_0x2ce0ba['end']['isAtEnd']){const _0x3b507f=_0x2f99bd['model']['createPositionAt'](_0x2ce0ba['start']['nodeAfter'],'end'),_0x523301=_0x2f99bd['model']['createRange'](_0x2ce0ba['start'],_0x3b507f);_0x319228['updateMarker'](_0xf04601['getFirstMarker'](),{'range':_0x523301}),_0x5e1349=!0x0;}}return _0x5e1349;}),_0x2f99bd['model']['document']['registerPostFixer'](_0x325d32=>this['_processAttributeChanges'](_0x325d32)),_0x2f99bd['model']['document']['registerPostFixer'](_0xd5cc93=>!_0xd5cc93['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd5cc93)),_0x2f99bd['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x2f99bd['model']['document']['on']('change:data',(_0x43b0ec,_0x56ad0b)=>{if(!_0x56ad0b['isLocal']||_0x56ad0b['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x500f77=_0x2f99bd['model']['document']['differ']['getChanges']();if(0x0==_0x500f77['length'])return;const _0x36fea2=[],_0x5dde94=_0x500f77['filter'](_0x43b6d9=>'attribute'==_0x43b6d9['type']),_0x266b5f=_0x500f77['filter'](_0x560c5f=>'insert'==_0x560c5f['type']&&'$text'!=_0x560c5f['name']);for(const _0x4d14d1 of _0x5dde94)this['_isRegisteredAttribute'](_0x4d14d1['attributeKey'])&&_0x36fea2['push']({'key':_0x4d14d1['attributeKey'],'newValue':_0x4d14d1['attributeNewValue'],'oldValue':_0x4d14d1['attributeOldValue'],'range':Pt(_0x4d14d1['range'],_0x2f99bd['model'])});for(const _0x3faf75 of _0x266b5f){if('rename'!=_0x3faf75['action']&&'refresh'!=_0x3faf75['action'])continue;const _0x35d751=Lt(_0x3faf75['position']['nodeAfter'],_0x2f99bd['model']),_0x4b6f45=_0x3faf75['before'];'rename'==_0x3faf75['action']&&_0x36fea2['push']({'key':m,'newValue':_0x3faf75['name'],'oldValue':_0x4b6f45['name'],'range':_0x35d751});for(const [_0x1f3dd6,_0x3b75a2]of _0x4b6f45['attributes']){if(!this['_isRegisteredAttribute'](_0x1f3dd6))continue;const _0x1f35fc=_0x3faf75['attributes']['get'](_0x1f3dd6);_0x3b75a2!==_0x1f35fc&&_0x36fea2['push']({'key':_0x1f3dd6,'newValue':_0x1f35fc,'oldValue':_0x3b75a2,'range':_0x35d751});}for(const [_0x5104c5,_0x294a69]of _0x3faf75['attributes'])this['_isRegisteredAttribute'](_0x5104c5)&&(_0x4b6f45['attributes']['has'](_0x5104c5)||_0x36fea2['push']({'key':_0x5104c5,'newValue':_0x294a69,'oldValue':null,'range':_0x35d751}));}0x0!=_0x36fea2['length']&&_0x2f99bd['model']['enqueueChange'](_0x56ad0b,_0x713f01=>{const _0x3abb86=_0x6322ca();for(const {range:_0x82ea91,key:_0x7de4d6,oldValue:_0x5b5a74,newValue:_0x2dc684}of _0x36fea2)this['markAttributeChange'](_0x82ea91,_0x7de4d6,_0x5b5a74,_0x2dc684,{'groupId':_0x3abb86});this['_reduceExistingSuggestions'](_0x713f01,_0x36fea2);});},{'priority':'lowest'}),_0x2f99bd['model']['markers']['on']('update:suggestion',(_0x5c8bd4,_0x3a0690,_0x499ad4)=>{if(null==_0x499ad4){const {id:_0x165da3}=this['_splitMarkerName'](_0x3a0690['name']),_0x17633e=this['_suggestions']['get'](_0x165da3);_0x17633e&&_0x17633e['addMarkerName'](_0x3a0690['name']);}}),_0x2f99bd['model']['document']['on']('change:data',()=>{const _0x39d2a4=Array['from'](_0x2f99bd['model']['document']['differ']['getChangedMarkers']())['filter'](_0x3a3a4e=>'suggestion'===this['_splitMarkerName'](_0x3a3a4e['name'])['group']);if(0x0===_0x39d2a4['length'])return;_0x39d2a4['sort']((_0x1da966,_0x390e47)=>{const _0x2b4567=_0x1da966['data']['oldRange'],_0x55c803=_0x390e47['data']['oldRange'];return null===_0x2b4567&&null===_0x55c803?0x0:null===_0x2b4567&&null!==_0x55c803?-0x1:null!==_0x2b4567&&null===_0x55c803?0x1:_0x2b4567['start']['isBefore'](_0x55c803['start'])?-0x1:0x1;});const _0x192702=new Set(),_0x3e665b=new Set();for(const {name:_0x5a9c77,data:_0x245ca7}of _0x39d2a4){const {id:_0x1e02b}=this['_splitMarkerName'](_0x5a9c77);if(null===_0x245ca7['oldRange']){const _0x2ede81=this['_handleNewSuggestionMarker'](_0x5a9c77);_0x3e665b['add'](_0x2ede81);}else{const _0x252084=this['_suggestions']['get'](_0x1e02b);null!==_0x245ca7['newRange']||_0x252084['isInContent']?(_0x192702['add'](_0x252084['head']),_0x3e665b['add'](_0x252084)):this['_removeSuggestion'](_0x252084);}}_0x3e665b['size']>0x0&&this['_refreshSuggestionsChain'](_0x3e665b);for(const _0x2a18f2 of _0x192702)this['fire']('suggestionChanged',_0x2a18f2);}),_0x2f99bd['model']['on']('applyOperation',(_0x3cfe61,_0x4cc9f4)=>{const _0x131120=_0x4cc9f4[0x0];if(!this['_suggestions']['size'])return;if(!_0x131120['isDocumentOperation'])return;if(_0x131120['batch']['isUndo']||!_0x131120['batch']['isLocal'])return;let _0x27e7ed,_0x5c6ee4;switch(_0x131120['type']){case'insert':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['position']),_0x5c6ee4=_0x27e7ed['getShiftedBy'](_0x131120['howMany']);break;case'split':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['splitPosition']),_0x5c6ee4=_0x2f99bd['model']['createPositionAt'](_0x131120['moveTargetPosition']);break;case'move':_0x27e7ed=_0x2f99bd['model']['createPositionAt'](_0x131120['targetPosition']),_0x5c6ee4=_0x27e7ed['getShiftedBy'](_0x131120['howMany']);break;default:return;}const _0x1f37ee=_0x2f99bd['model']['createRange'](_0x27e7ed,_0x5c6ee4);_0x2f99bd['model']['change'](()=>{for(const {suggestion:_0x2b30a9,meta:_0x520843}of this['_findSuggestions'](_0x1f37ee)){if(_0x2b30a9['isMultiRange'])continue;if('formatInline'==_0x2b30a9['type'])continue;const _0x2318be=this['_getAttributeKey'](_0x2b30a9);if(_0x2318be&&this['_isBlockAttribute'](_0x2318be)&&'split'!=_0x131120['type'])continue;const _0x4394e4=_0x2b30a9['data']&&_0x2b30a9['data']['multipleBlocks'];('formatBlock'!=_0x2b30a9['type']||'split'==_0x131120['type']&&!_0x4394e4)&&(_0x520843['containsRangeInObject']||'insertion'==_0x2b30a9['type']&&_0x520843['isOwn']||_0x2b30a9['getFirstRange']()['containsRange'](_0x1f37ee)&&this['_breakSuggestionMarker'](_0x2b30a9,_0x27e7ed,_0x5c6ee4));}});},{'priority':'lowest'}),_0x2f99bd['model']['on']('deleteContent',(_0x11a180,_0x508874)=>{const _0x1ec293=_0x508874[0x0],_0x471545=_0x508874[0x1];if(_0x471545&&_0x471545['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x1ec293['isCollapsed'])return;const _0x30b1ea=_0x2f99bd['model']['schema'],{start:_0x1e71dc,end:_0x469094}=_0x1ec293['getFirstRange'](),_0x137aff=_0x1e71dc['nodeAfter']&&_0x30b1ea['isLimit'](_0x1e71dc['nodeAfter'])?null:_0x30b1ea['getNearestSelectionRange'](_0x1e71dc,'forward'),_0x1720bc=_0x469094['nodeBefore']&&_0x30b1ea['isLimit'](_0x469094['nodeBefore'])?null:_0x30b1ea['getNearestSelectionRange'](_0x469094,'backward'),_0x4feaef=_0x2f99bd['model']['createRange'](_0x137aff?_0x137aff['start']:_0x1e71dc,_0x1720bc?_0x1720bc['end']:_0x469094);_0x2f99bd['model']['change'](_0x15f6e4=>{this['markDeletion'](_0x4feaef);const _0x402a4b=_0x2f99bd['model']['schema']['getNearestSelectionRange'](_0x4feaef['start']);_0x1ec293['is']('documentSelection')?_0x15f6e4['setSelection'](_0x402a4b):_0x1ec293['setTo'](_0x402a4b);}),_0x11a180['stop']();},{'priority':_0xcad5a0['normal']+0xa}),_0x2f99bd['model']['on']('insertContent',(_0x37f156,_0x1bab85)=>{const _0x92ae4e=_0x1bab85[_0x1bab85['length']-0x1];_0x92ae4e&&_0x92ae4e['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x2f99bd['model']['change'](()=>{let _0x2e9078=_0x2f99bd['model']['insertContent'](_0x1bab85[0x0],_0x1bab85[0x1],_0x1bab85[0x2],{'forceDefaultExecution':!0x0});if(!_0x2e9078)return;_0x37f156['return']=_0x2e9078['clone']();const _0xa386bd=_0x2e9078['end']['nodeBefore'],_0x2fec7c=_0x2f99bd['model']['schema'];_0xa386bd&&_0x2fec7c['isBlock'](_0xa386bd)&&!_0x2fec7c['isObject'](_0xa386bd)&&(_0x2e9078=_0x2f99bd['model']['createRange'](_0x2e9078['start'],_0x2f99bd['model']['createPositionAt'](_0xa386bd,'end'))),this['markInsertion'](_0x2e9078);}),_0x37f156['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x436b67=new x(_0x2f99bd,this['_suggestions']);_0x2f99bd['commands']['add']('acceptSuggestion',_0x436b67),this['enableCommand']('acceptSuggestion');const _0xb151f6=new R(_0x2f99bd,this['_suggestions']);_0x2f99bd['commands']['add']('discardSuggestion',_0xb151f6),this['enableCommand']('discardSuggestion'),_0x2f99bd['commands']['add']('acceptAllSuggestions',new E(_0x2f99bd,_0x436b67,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x2f99bd['commands']['add']('discardAllSuggestions',new E(_0x2f99bd,_0xb151f6,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x2f99bd['commands']['add']('acceptSelectedSuggestions',new O(_0x2f99bd,_0x436b67,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x2f99bd['commands']['add']('discardSelectedSuggestions',new O(_0x2f99bd,_0xb151f6,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2deae0=_0x2f99bd['plugins']['get']('CommentsRepository');this['listenTo'](_0x2deae0,'addComment',(_0x55cee7,{threadId:_0x77f73e})=>{const _0x1fe37a=this['_suggestions']['get'](_0x77f73e);_0x1fe37a&&_0x1fe37a['commentThread']&&0x1===_0x1fe37a['commentThread']['length']&&this['_updateSuggestionData'](_0x77f73e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2deae0,'removeComment',(_0x45e793,{threadId:_0x4b280a})=>{const _0x152f6c=this['_suggestions']['get'](_0x4b280a);_0x152f6c&&_0x152f6c['commentThread']&&!_0x152f6c['commentThread']['length']&&this['_updateSuggestionData'](_0x4b280a,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x8a8e16){if(this['_adapter'])throw new _0x297859('track-changes-adapter-already-set',this);this['_adapter']=_0x8a8e16;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4b66b1=!0x1,toJSON:_0x16601b=!0x1}={}){const _0x4d607a=[];for(const _0x1a3343 of this['_suggestions']['values']())_0x4b66b1&&!_0x1a3343['isInContent']||_0x4d607a['push'](_0x1a3343);return _0x16601b?_0x4d607a['map'](_0x8fd848=>_0x8fd848['toJSON']()):_0x4d607a;}['getSuggestion'](_0x36041f){const _0xf08a29=this['_suggestions']['get'](_0x36041f);if(!_0xf08a29)throw new _0x297859('track-changes-suggestion-not-found',this);return _0xf08a29;}['hasSuggestion'](_0x3a17b4){return this['_suggestions']['has'](_0x3a17b4);}['addSuggestionData'](_0x4ae571){const {authorId:_0x5bd4dc,id:_0x202364,attributes:_0x5a29a4}=_0x4ae571,[_0x46eaa3,_0x2f469e]=_0x4ae571['type']['split'](':'),_0x289729=this['_suggestions']['get'](_0x202364)||this['_createSuggestion'](_0x46eaa3,_0x2f469e,_0x202364,_0x5bd4dc,_0x5a29a4);if(this['_addThreadToSuggestion'](_0x289729),this['_checkSuggestionCorrectness'](_0x289729,_0x46eaa3,_0x2f469e||null,_0x5bd4dc),_0x289729['createdAt']=_0x4ae571['createdAt'],_0x289729['_isDataLoaded']=!0x0,_0x5a29a4&&_0x5a29a4['@external']){const _0x34c787=_0x5a29a4['@external'],_0x16a632=this['_getExternalAuthor'](_0x34c787['authorName']);_0x289729['authoredAt']=_0x34c787['createdAt'],_0x289729['author']=_0x16a632,_0x289729['isExternal']=!0x0;}else _0x289729['authoredAt']=_0x4ae571['createdAt'];switch(_0x4ae571['data']&&(_0x289729['data']=_0x4ae571['data']),_0x4ae571['attributes']&&(_0x289729['attributes']=_0x4ae571['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x289729['_saved']=!0x0),this['_suggestionState']['get'](_0x289729)){case'notReady':this['_suggestionState']['set'](_0x289729,'dataReady');break;case'markerReady':_0x289729['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x289729])),this['_refreshSuggestionsChain'](new Set([_0x289729])),this['_suggestionState']['set'](_0x289729,'ready'),this['fire']('suggestionLoaded',_0x289729)):this['_suggestionState']['set'](_0x289729,'removed');}return _0x289729;}['acceptSuggestion'](_0x2dec31){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0xf7acd3 of _0x2dec31['getAllAdjacentSuggestions']())_0xf7acd3['accept']();});});}['discardSuggestion'](_0x3ed5f8){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x16a013 of _0x3ed5f8['getAllAdjacentSuggestions']())_0x16a013['discard']();});});}['enableCommand'](_0x105a0e,_0x2e03e4){const _0x567166=this['editor']['commands']['get'](_0x105a0e);if(!_0x567166)throw new _0x297859('track-changes-command-not-found',this,{'commandName':_0x105a0e});if(this['_enabledCommands']['has'](_0x567166))throw new _0x297859('track-changes-enable-command-twice',this,{'commandName':_0x105a0e});this['_enabledCommands']['add'](_0x567166),_0x2e03e4&&_0x567166['on']('execute',(_0x1ce222,_0x24e6ce)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x24e6ce['length']>0x0&&_0x24e6ce[_0x24e6ce['length']-0x1]&&_0x24e6ce[_0x24e6ce['length']-0x1]['forceDefaultExecution']?_0x24e6ce['pop']():(_0x1ce222['return']=_0x2e03e4((..._0x1d666b)=>_0x567166['execute'](..._0x1d666b,{'forceDefaultExecution':!0x0}),..._0x24e6ce),_0x1ce222['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4eca74){let _0xa839b4,_0x4fe8f9;const _0x3a39f6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa839b4=_0x4eca74();}catch(_0x37adeb){_0x4fe8f9=_0x37adeb;}return _0x3a39f6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x4fe8f9&&_0x297859['rethrowUnexpectedError'](_0x4fe8f9,this),_0xa839b4;}['markInsertion'](_0x17a46d,_0x3a31a1=null,_0x2305fe={}){if(_0x17a46d['isCollapsed'])return null;const _0x1ed09a=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x5ce917,meta:_0x14c5b9}of this['_findSuggestions'](_0x17a46d,'insertion'))if(_0x14c5b9['isOwn']){if(!_0x14c5b9['isNextTo']){if(_0x14c5b9['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x5ce917,_0x2305fe))continue;return _0x5ce917;}if(qt(_0x5ce917,_0x2305fe))return _0x5ce917;this['_breakSuggestionMarker'](_0x5ce917,_0x17a46d['start'],_0x17a46d['end']);break;}if(_0x3a31a1==_0x5ce917['subType']&&qt(_0x5ce917,_0x2305fe)){const _0x3bc237=_0x5ce917['getFirstRange']();return _0x3bc237['start']['isEqual'](_0x17a46d['end'])?this['_setSuggestionRange'](_0x5ce917,this['_model']['createRange'](_0x17a46d['start'],_0x3bc237['end'])):this['_setSuggestionRange'](_0x5ce917,this['_model']['createRange'](_0x3bc237['start'],_0x17a46d['end'])),_0x5ce917;}}const _0x47215d=_0x6322ca(),_0x1cd331=_0x1ed09a['id'],_0x32d696=_0x3a31a1?'insertion:'+_0x3a31a1:'insertion',_0x300e2c=this['_setSuggestionData']({'id':_0x47215d,'type':_0x32d696,'createdAt':new Date(),'authorId':_0x1cd331,'attributes':_0x2305fe});return this['_addSuggestionMarker'](_0x32d696,_0x47215d,_0x1cd331,_0x17a46d),_0x300e2c;}['markMultiRangeInsertion'](_0x413177,_0x81a0ac='multi',_0x26deb9={}){const _0x11d79b=this['editor']['plugins']['get']('Users')['me'],_0x4d576a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x81a0ac,'join');for(const _0x220e78 of this['getSuggestions']())if(_0x220e78['author']['id']==_0x11d79b['id']&&'insertion'==_0x220e78['type']&&_0x220e78['subType']==_0x81a0ac&&qt(_0x220e78,_0x26deb9)&&(_0x4d576a(_0x220e78['getRanges'](),_0x413177)||_0x4d576a(_0x413177,_0x220e78['getRanges']()))){for(const _0x17d38b of _0x413177)_0x220e78['addRange'](_0x17d38b);return _0x220e78;}for(const {suggestion:_0x145df8,meta:_0x4b4c29}of this['_findSuggestions'](_0x413177,'insertion')){if(!_0x4b4c29['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4b4c29['containsRangeInObject'])continue;if(!qt(_0x145df8,_0x26deb9))continue;let _0x386174=!0x0;for(const _0x88c928 of _0x145df8['getRanges']())for(const _0x58c48c of _0x413177)if(!_0x88c928['containsRange'](_0x58c48c)){_0x386174=!0x1;break;}if(_0x386174)return _0x145df8;}const _0x5a5b66=_0x6322ca(),_0x16c028=_0x11d79b['id'],_0x42549e='insertion:'+_0x81a0ac,_0xc0122d=this['_setSuggestionData']({'id':_0x5a5b66,'type':_0x42549e,'createdAt':new Date(),'authorId':_0x16c028,'attributes':_0x26deb9});for(const _0x42606b of _0x413177)this['_addSuggestionMarker'](_0x42549e,_0x5a5b66,_0x16c028,_0x42606b,u['getMultiRangeId']());return _0xc0122d;}['markInlineFormat'](_0x173de5,_0x1e7b8a,_0x2afcb5=null,_0x2b1505={}){if(_0x2afcb5=_0x2afcb5||Gt(_0x1e7b8a),_0x173de5['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31b1e3=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2afcb5,'accept');return this['forceDefaultExecution'](()=>_0x31b1e3([_0x173de5],_0x1e7b8a,_0x2b1505)),null;}const _0x2b0c97=this['editor']['plugins']['get']('Users')['me'],_0x43ad69=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x24dfcb,meta:_0x5506cc}of this['_findSuggestions'](_0x173de5,'insertion'))_0x5506cc['isOwn']&&!_0x5506cc['isInsideObject']&&_0x43ad69['push'](..._0x24dfcb['getRanges']());}const _0x5a0d7=function(_0x473387,_0x90e9cc){const _0x982b88=[];for(const _0x2b806f of _0x90e9cc){const _0x15af1c=_0x473387['getIntersection'](_0x2b806f);_0x15af1c&&_0x982b88['push'](_0x15af1c);}return _0x982b88;}(_0x173de5,_0x43ad69),_0x2ef16b=function(_0x45e382,_0x9b79ec){const _0x370414=[_0x45e382];for(const _0x51bf70 of _0x9b79ec){let _0x4f3d3c=0x0;for(;_0x4f3d3c<_0x370414['length'];){const _0x399b8e=_0x370414[_0x4f3d3c]['getDifference'](_0x51bf70);_0x370414['splice'](_0x4f3d3c,0x1,..._0x399b8e),_0x4f3d3c+=_0x399b8e['length'];}}return _0x370414;}(_0x173de5,_0x43ad69);_0x5a0d7['length']&&this['_model']['change'](()=>{for(const _0x66d3a2 of _0x5a0d7){const _0x458aa1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2afcb5,'accept');this['forceDefaultExecution'](()=>_0x458aa1([_0x66d3a2],_0x1e7b8a,_0x2b1505));}});for(const _0x12b14f of _0x2ef16b){let _0x3dfa11=null,_0x2ea1de=_0x12b14f['start'],_0x5e2614=_0x12b14f['end'];for(const {suggestion:_0x2221e5,meta:_0x586df5}of this['_findSuggestions'](_0x12b14f,'formatInline')){if(!_0x586df5['isOwn'])continue;if(_0x2221e5['subType']!=_0x2afcb5)continue;if(!qt(_0x2221e5,_0x2b1505))continue;const _0x24fcb2=_0x2221e5['getFirstRange']();if(_0x24fcb2['containsRange'](_0x12b14f,!0x0))return null;_0x2ea1de=_0x2ea1de['isBefore'](_0x24fcb2['start'])?_0x2ea1de:_0x24fcb2['start'],_0x5e2614=_0x5e2614['isAfter'](_0x24fcb2['end'])?_0x5e2614:_0x24fcb2['end'],_0x3dfa11?_0x24fcb2['start']['isBefore'](_0x3dfa11['getFirstRange']()['start'])?(_0x3dfa11['removeMarkers'](),_0x3dfa11=_0x2221e5):_0x2221e5['removeMarkers']():_0x3dfa11=_0x2221e5;}const _0x1de404=this['_model']['createRange'](_0x2ea1de,_0x5e2614);if(_0x3dfa11)this['_setSuggestionRange'](_0x3dfa11,_0x1de404);else{const _0x40e2dc=_0x6322ca(),_0x52e94a=_0x2b0c97['id'];this['_setSuggestionData']({'id':_0x40e2dc,'type':'formatInline:'+_0x2afcb5,'data':_0x1e7b8a,'createdAt':new Date(),'authorId':_0x52e94a,'attributes':_0x2b1505}),this['_addSuggestionMarker']('formatInline:'+_0x2afcb5,_0x40e2dc,_0x52e94a,_0x1de404);}}return null;}['markBlockFormat'](_0x30f15e,_0x3436fb,_0x141fcf=[],_0x191e20=null,_0x28194a={}){_0x3436fb['formatGroupId']||(_0x3436fb['formatGroupId']=_0x3436fb['commandName']),_0x3436fb['multipleBlocks']=_0x30f15e['is']('range'),_0x191e20=_0x191e20||Gt(_0x3436fb);const _0x101051=_0x141fcf['map'](_0x3489d0=>Lt(_0x3489d0,this['_model'])),_0x498529=_0x30f15e['is']('range')?_0x30f15e:Lt(_0x30f15e,this['_model']);if('never'===this['_trackFormatChanges']){const _0x39599a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x191e20,'accept');return this['forceDefaultExecution'](()=>_0x39599a([_0x498529],_0x3436fb,_0x28194a)),null;}_0x101051['push'](_0x498529);let _0x4a8ae1=!0x0;for(const _0xd9087e of _0x101051)if(!this['_rangeIsInLocalUserInsertion'](_0xd9087e)){_0x4a8ae1=!0x1;break;}if(_0x4a8ae1&&'always'!==this['_trackFormatChanges']){const _0x213931=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x191e20,'accept');return this['forceDefaultExecution'](()=>_0x213931([_0x498529],_0x3436fb,_0x28194a)),null;}let _0x473fd3=null,_0x1af05a=_0x498529['start'],_0x5a59c7=_0x498529['end'];for(const {suggestion:_0x2020ac,meta:_0x366e8e}of this['_findSuggestions'](_0x498529,'formatBlock')){if(!_0x366e8e['isOwn'])continue;if(_0x366e8e['isNextTo']||_0x366e8e['containsRangeInObject']||_0x366e8e['isInsideObject'])continue;if(_0x2020ac['data']['formatGroupId']!=_0x3436fb['formatGroupId'])continue;if(!qt(_0x2020ac,_0x28194a))continue;const _0x238a51=_0x2020ac['getFirstRange']();if(_0x2020ac['subType']==_0x191e20){if(_0x238a51['containsRange'](_0x498529,!0x0))return null;_0x1af05a=_0x1af05a['isBefore'](_0x238a51['start'])?_0x1af05a:_0x238a51['start'],_0x5a59c7=_0x5a59c7['isAfter'](_0x238a51['end'])?_0x5a59c7:_0x238a51['end'],_0x473fd3?_0x238a51['start']['isBefore'](_0x473fd3['getFirstRange']()['start'])?(_0x473fd3['removeMarkers'](),_0x473fd3=_0x2020ac):_0x2020ac['removeMarkers']():_0x473fd3=_0x2020ac;}else{const _0x145555=_0x498529['getIntersection'](_0x238a51);this['_cutOutSuggestionMarker'](_0x2020ac,_0x145555);}}const _0x467459=this['editor']['plugins']['get']('Users')['me'],_0xaf2d9=_0x6322ca(),_0x132a77=_0x467459['id'];if(_0x473fd3)return this['_setSuggestionRange'](_0x473fd3,this['_model']['createRange'](_0x1af05a,_0x5a59c7)),_0x473fd3;{const _0x31883d=this['_setSuggestionData']({'id':_0xaf2d9,'type':'formatBlock:'+_0x191e20,'data':_0x3436fb,'createdAt':new Date(),'authorId':_0x132a77,'attributes':_0x28194a});return this['_addSuggestionMarker']('formatBlock:'+_0x191e20,_0xaf2d9,_0x132a77,this['_model']['createRange'](_0x1af05a,_0x5a59c7)),_0x31883d;}}['markMultiRangeBlockFormat'](_0x4bf704,_0x284bee,_0x5094d3=[],_0x31081f=null,_0x41da0c={}){_0x284bee['formatGroupId']||(_0x284bee['formatGroupId']=_0x284bee['commandName']);const _0x28c2f2=_0x4bf704[0x0];_0x284bee['multipleBlocks']=_0x28c2f2['is']('range'),_0x31081f=_0x31081f||Gt(_0x284bee);const _0xf2260c=_0x5094d3['map'](_0x4e0cf2=>Lt(_0x4e0cf2,this['_model'])),_0x14473b=_0x28c2f2['is']('range')?_0x4bf704:_0x4bf704['map'](_0x1bac07=>Lt(_0x1bac07,this['_model']));if('never'===this['_trackFormatChanges']){const _0x484c62=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'accept');return this['forceDefaultExecution'](()=>_0x484c62(_0x14473b,_0x284bee,_0x41da0c)),null;}_0xf2260c['push'](..._0x14473b);let _0x2b05ed=!0x0;for(const _0x49c94e of _0xf2260c)if(!this['_rangeIsInLocalUserInsertion'](_0x49c94e)){_0x2b05ed=!0x1;break;}if(_0x2b05ed&&'always'!==this['_trackFormatChanges']){const _0x350b2f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'accept');return this['forceDefaultExecution'](()=>_0x350b2f(_0x14473b,_0x284bee,_0x41da0c)),null;}const _0x2013a9=this['editor']['plugins']['get']('Users')['me'];for(const _0x40ecf9 of this['getSuggestions']()){if(_0x40ecf9['author']['id']!=_0x2013a9['id'])continue;if('formatBlock'!=_0x40ecf9['type']||_0x40ecf9['data']['formatGroupId']!=_0x284bee['formatGroupId'])continue;if(!qt(_0x40ecf9,_0x41da0c))continue;const _0x4094db=_0x40ecf9['subType']==_0x31081f;for(let _0x35d590=0x0;_0x35d590<_0x14473b['length'];_0x35d590++){const _0x3d5a1a=_0x14473b[_0x35d590];for(const _0x3b278f of _0x40ecf9['getMarkers']()){const _0x34c03e=_0x3b278f['getRange']();if(_0x3d5a1a['isEqual'](_0x34c03e)){_0x4094db?(_0x14473b['splice'](_0x35d590,0x1),_0x35d590--):_0x40ecf9['removeMarker'](_0x3b278f['name']);break;}}}}if(0x0==_0x14473b['length'])return null;const _0x163edf=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x31081f,'join');for(const _0x2d48c5 of this['getSuggestions']())if(_0x2d48c5['author']['id']==_0x2013a9['id']&&'formatBlock'==_0x2d48c5['type']&&_0x2d48c5['data']['formatGroupId']==_0x284bee['formatGroupId']&&_0x2d48c5['subType']==_0x31081f&&qt(_0x2d48c5,_0x41da0c)&&(_0x163edf(_0x2d48c5['getRanges'](),_0x14473b)||_0x163edf(_0x14473b,_0x2d48c5['getRanges']()))){for(const _0x376fec of _0x14473b)_0x2d48c5['addRange'](_0x376fec);return _0x2d48c5;}const _0x2263bc=_0x6322ca(),_0x1e3165=_0x2013a9['id'],_0x103ee2='formatBlock:'+_0x31081f,_0xd46462=this['_setSuggestionData']({'id':_0x2263bc,'type':_0x103ee2,'data':_0x284bee,'createdAt':new Date(),'authorId':_0x1e3165,'attributes':_0x41da0c});for(const _0x43586d of _0x14473b)this['_addSuggestionMarker'](_0x103ee2,_0x2263bc,_0x1e3165,_0x43586d,u['getMultiRangeId']());return _0xd46462;}['markDeletion'](_0x426fc5,_0x48a302=null,_0x4c7bc6={}){if(_0x426fc5['isCollapsed'])return null;const _0x3452eb=this['editor']['plugins']['get']('Users')['me'],_0x2ded17=new _0x43155d(_0x426fc5['start'],_0x426fc5['end']);for(const {suggestion:_0x94e8ae,meta:_0x5e6c02}of this['_findSuggestions'](_0x2ded17,'insertion'))if(_0x5e6c02['isOwn']&&!_0x5e6c02['isNextTo']){if(_0x94e8ae['isMultiRange']){const _0x4ce8ab=_0x94e8ae['getRanges']()['filter'](_0x4f0bc6=>'$graveyard'!=_0x4f0bc6['root']['rootName']);_0x4ce8ab['every'](_0x23c7f7=>_0x2ded17['containsRange'](_0x23c7f7,!0x0))&&_0x94e8ae['discard']();if(_0x4ce8ab['some'](_0x45269e=>_0x45269e['containsRange'](_0x2ded17,!0x0))){const _0x2b6792=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x48a302,'accept');return this['forceDefaultExecution'](()=>_0x2b6792([_0x2ded17],null,_0x4c7bc6)),null;}}else{const _0x265603=_0x2ded17['getIntersection'](_0x94e8ae['getFirstRange']());null!==_0x265603&&_0x94e8ae['_onDiscard']([_0x265603],null,_0x4c7bc6);}}if(_0x2ded17['detach'](),_0x2ded17['isCollapsed']||'$graveyard'==_0x2ded17['root']['rootName'])return null;let _0x815294=null,_0xdcd665=_0x2ded17['start'],_0x207d4f=_0x2ded17['end'];const _0x48fefa=this['_findSuggestions'](_0x2ded17,'deletion');for(const {suggestion:_0x30af4e,meta:_0x5562f5}of _0x48fefa){const _0x6569f8=this['_model']['createRange'](_0xdcd665,_0x207d4f);if(_0x5562f5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5562f5['containsRangeInObject']&&!_0x5562f5['isInsideObject'])){if(_0x30af4e['isMultiRange']){if(!qt(_0x30af4e,_0x4c7bc6))continue;let _0x5b1b25=!0x0;for(const _0x30296a of _0x30af4e['getRanges']()){if(_0x30296a['containsRange'](_0x6569f8,!0x0))return _0x30af4e;_0x6569f8['containsRange'](_0x30296a)||(_0x5b1b25=!0x1);}_0x5b1b25&&_0x30af4e['discard']();}else{const _0xdb1ae6=_0x30af4e['getFirstRange']();if(_0xdb1ae6['containsRange'](_0x6569f8,!0x0))return _0x30af4e;if(!qt(_0x30af4e,_0x4c7bc6)){_0x6569f8['containsRange'](_0xdb1ae6)?_0x30af4e['removeMarkers']():_0xdb1ae6['containsPosition'](_0xdcd665)?_0xdcd665=_0xdb1ae6['end']:_0xdb1ae6['containsPosition'](_0x207d4f)&&(_0x207d4f=_0xdb1ae6['start']);continue;}_0xdcd665=_0xdcd665['isBefore'](_0xdb1ae6['start'])?_0xdcd665:_0xdb1ae6['start'],_0x207d4f=_0x207d4f['isAfter'](_0xdb1ae6['end'])?_0x207d4f:_0xdb1ae6['end'],_0x4c7bc6=Object['assign']({},_0x30af4e['attributes']),_0x815294?_0xdb1ae6['start']['isBefore'](_0x815294['getFirstRange']()['start'])?(_0x815294['removeMarkers'](),_0x815294=_0x30af4e):_0x30af4e['removeMarkers']():_0x815294=_0x30af4e;}}}if(_0x815294)return this['_setSuggestionRange'](_0x815294,this['_model']['createRange'](_0xdcd665,_0x207d4f)),_0x815294;{const _0x54d337=_0x6322ca(),_0x2bc63c=this['_model']['createRange'](_0xdcd665,_0x207d4f),_0x8f0520=_0x3452eb['id'],_0x11a9f8=_0x48a302?'deletion:'+_0x48a302:'deletion',_0x22af1e=this['_setSuggestionData']({'id':_0x54d337,'type':_0x11a9f8,'createdAt':new Date(),'authorId':_0x8f0520,'attributes':_0x4c7bc6});return this['_addSuggestionMarker'](_0x11a9f8,_0x54d337,_0x8f0520,_0x2bc63c),_0x22af1e;}}['markMultiRangeDeletion'](_0x3c2d1b,_0x3839e7='multi',_0x1c43f1={}){const _0x331b15=this['editor']['plugins']['get']('Users')['me'],_0x4909c1=_0x3c2d1b['map'](_0xd9888f=>new _0x43155d(_0xd9888f['start'],_0xd9888f['end'])),_0x58de65=new Set();for(const {suggestion:_0x21156b,meta:_0x4e57bf}of this['_findSuggestions'](_0x4909c1,'insertion'))_0x4e57bf['isOwn']&&!_0x4e57bf['isNextTo']&&_0x58de65['add'](_0x21156b);for(const _0x42a07c of _0x58de65)if(_0x42a07c['isMultiRange']){const _0x57012d=_0x42a07c['getRanges']();(!_0x42a07c['attributes']||!_0x42a07c['attributes']['skipNestingCheck'])&&(_0x57012d['every'](_0x32890c=>_0x4909c1['some'](_0x3bae5b=>_0x3bae5b['containsRange'](_0x32890c,!0x0)))&&_0x42a07c['discard']());if(_0x4909c1['every'](_0x3f5684=>_0x57012d['some'](_0x13a796=>_0x13a796['containsRange'](_0x3f5684,!0x0)))){const _0x75020e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'accept');return this['forceDefaultExecution'](()=>_0x75020e(_0x3c2d1b,null,_0x1c43f1)),null;}}else{const _0x160c4d=_0x42a07c['getFirstRange']();_0x4909c1['some'](_0x23db10=>_0x23db10['containsRange'](_0x160c4d,!0x0))&&_0x42a07c['discard']();if(_0x4909c1['every'](_0x20d19c=>_0x160c4d['containsRange'](_0x20d19c,!0x0))){const _0x1c3813=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'accept');return this['forceDefaultExecution'](()=>_0x1c3813(_0x4909c1,null,_0x1c43f1)),null;}}const _0x1bbe02=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3839e7,'join');let _0x10f6d9=null;for(const _0x3d426d of this['getSuggestions']())if(_0x3d426d['author']['id']==_0x331b15['id']&&_0x3d426d['isInContent']&&'deletion'==_0x3d426d['type']&&_0x3d426d['subType']==_0x3839e7&&qt(_0x3d426d,_0x1c43f1)&&(_0x1bbe02(_0x3d426d['getRanges'](),_0x4909c1)||_0x1bbe02(_0x4909c1,_0x3d426d['getRanges']()))){if(_0x10f6d9){if(_0x3d426d['commentThread']&&_0x3d426d['commentThread']['length'])continue;for(const _0xc8512e of _0x3d426d['getRanges']())_0x10f6d9['isIntersectingWithRange'](_0xc8512e)||_0x10f6d9['addRange'](_0xc8512e);_0x3d426d['removeMarkers']();}else{_0x10f6d9=_0x3d426d;for(const _0x215b53 of _0x4909c1)_0x3d426d['isIntersectingWithRange'](_0x215b53)||_0x3d426d['addRange'](_0x215b53);}}if(_0x10f6d9)return _0x10f6d9;_0x58de65['clear']();for(const {suggestion:_0x2c850e,meta:_0x276787}of this['_findSuggestions'](_0x4909c1,'deletion'))_0x276787['isOwn']&&(this['_mergeNestedSuggestions']||!_0x276787['containsRangeInObject']&&!_0x276787['isInsideObject'])&&qt(_0x2c850e,_0x1c43f1)&&_0x58de65['add'](_0x2c850e);for(const _0x3fadb5 of _0x58de65){const _0x2622a0=_0x3fadb5['getRanges']();if(!_0x1c43f1||!_0x1c43f1['skipNestingCheck']){if(_0x4909c1['every'](_0xdbcba0=>_0x2622a0['some'](_0x4681bb=>_0x4681bb['containsRange'](_0xdbcba0,!0x0))))return _0x3fadb5;}(!_0x3fadb5['attributes']||!_0x3fadb5['attributes']['skipNestingCheck'])&&(_0x2622a0['every'](_0x3bc9e9=>_0x4909c1['some'](_0x14b2f0=>_0x14b2f0['containsRange'](_0x3bc9e9,!0x0)))&&_0x3fadb5['discard']());}const _0x4c72b5=_0x6322ca(),_0x588db8=_0x331b15['id'],_0xdb4b36='deletion:'+_0x3839e7,_0x170b32=this['_setSuggestionData']({'id':_0x4c72b5,'type':_0xdb4b36,'createdAt':new Date(),'authorId':_0x588db8,'attributes':_0x1c43f1});for(const _0x2ec52d of _0x4909c1)_0x2ec52d['detach'](),_0x2ec52d['isCollapsed']||'$graveyard'==_0x2ec52d['root']['rootName']||this['_addSuggestionMarker'](_0xdb4b36,_0x4c72b5,_0x588db8,_0x2ec52d,u['getMultiRangeId']());return _0x170b32;}['markAttributeChange'](_0x372ca,_0x1e1570,_0x443cb8,_0x1f3066,_0x53c731){if(_0x372ca['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x387518=this['editor']['plugins']['get']('Users')['me']['id'],_0x349724=Array['from'](this['_suggestions']['values']())['filter'](_0x35e914=>'attribute'==_0x35e914['type']&&_0x35e914['data']['key']==_0x1e1570&&_0x35e914['isIntersectingWithRange'](_0x372ca));if('default'===this['_trackFormatChanges']){const _0x1ac465=this['_findSuggestions'](_0x372ca,'insertion')['filter'](({meta:_0x1b2e44})=>_0x1b2e44['isOwn']&&!_0x1b2e44['isInsideObject']&&!_0x1b2e44['isNextTo'])['map'](({suggestion:_0x14e1eb})=>_0x14e1eb);_0x349724['unshift'](..._0x1ac465);}const _0x10b2df=new Map([[_0x372ca,_0x443cb8]]);for(const _0x35db2c of _0x349724){const _0x49671c='attribute'==_0x35db2c['type']?_0x35db2c['data']['oldValue']:void 0x0,_0x5f302e=_0x35db2c['getFirstRange'](),_0x5a848d=Array['from'](_0x10b2df['keys']())['find'](_0x1e3382=>_0x1e3382['isIntersecting'](_0x5f302e));if(!_0x5a848d)continue;const _0x19a93c=_0x5a848d['getDifference'](_0x5f302e);this['_isBlockAttribute'](_0x1e1570)&&'insertion'==_0x35db2c['type']&&0x0!=_0x19a93c['length']||(_0x10b2df['delete'](_0x5a848d),_0x19a93c['forEach'](_0x1c8b91=>{_0x10b2df['set'](_0x1c8b91,_0x443cb8);}),'insertion'!=_0x35db2c['type']&&_0x49671c!=_0x1f3066&&_0x10b2df['set'](_0x5a848d['getIntersection'](_0x5f302e),_0x49671c));}const _0x16d47e=[];for(const [_0x4ff61c,_0xd2075]of _0x10b2df){const _0x112b2a=_0x6322ca(),_0xd9747c={'key':_0x1e1570,'oldValue':_0xd2075,'newValue':_0x1f3066};_0x1e1570['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':_0x1e1570});const _0x323e34=('attribute:'+(_0x1e1570+'|'+Gt({'newValue':_0x1f3066})))['substring'](0x0,0x3c),_0x48fcfc=this['_setSuggestionData']({'id':_0x112b2a,'type':_0x323e34,'data':_0xd9747c,'createdAt':new Date(),'authorId':_0x387518,'attributes':_0x53c731});_0x16d47e['push'](_0x48fcfc),this['_addSuggestionMarker'](_0x323e34,_0x112b2a,_0x387518,_0x4ff61c);}return _0x16d47e;}['enableDefaultAttributesIntegration'](_0x48ceb9){this['enableCommand'](_0x48ceb9,(_0x2aadbb,..._0x33aad4)=>{this['_recordAttributeChanges'](()=>{_0x2aadbb(..._0x33aad4);});});}['registerBlockAttribute'](_0x4e2d5c){this['_blockAttributeKeys']['add'](_0x4e2d5c);}['registerInlineAttribute'](_0x1211a2){this['_inlineAttributeKeys']['add'](_0x1211a2);}['_getAttributeKey'](_0x4e627a){return'attribute'==_0x4e627a['type']?_0x4e627a['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5717c2,_0x276224){const _0xee6ef7=_0x5717c2['getFirstMarker']();this['_model']['change'](_0x1b36f3=>{_0x1b36f3['updateMarker'](_0xee6ef7,{'range':_0x276224});});}['_addThreadToSuggestion'](_0x41d48d){const _0x48604a=_0x41d48d['id'],_0x34bf18=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x48604a)||this['_commentsRepository']['addCommentThread']({'channelId':_0x34bf18,'threadId':_0x48604a,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x9411dc=this['_commentsRepository']['getCommentThread'](_0x48604a);_0x9411dc['unbind']('isRemovable'),_0x9411dc['isRemovable']=!0x1,_0x41d48d['commentThread']=_0x9411dc;}['_checkSuggestionCorrectness'](_0x38b09b,_0x5d7b9e,_0x5f2a02,_0x33b535){if(_0x38b09b['type']!=_0x5d7b9e||_0x38b09b['subType']!=_0x5f2a02||_0x38b09b['creator']['id']!=_0x33b535)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x297859('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x11cb15,_0x5597ac){const _0x55e174=_0x11cb15['getFirstRange']();if(_0x5597ac['isEqual'](_0x55e174))_0x11cb15['removeMarkers']();else{if(_0x55e174['containsRange'](_0x5597ac)){const _0x265d66=this['_model']['createPositionAt'](_0x5597ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x55e174['start'],_0x265d66));const _0x2280b4=_0x6322ca(),_0x3d387a=_0x11cb15['creator']['id'],_0xefc26f=_0x11cb15['type']+':'+_0x11cb15['subType'];this['_setSuggestionData']({'id':_0x2280b4,'type':_0xefc26f,'createdAt':new Date(),'authorId':_0x3d387a,'data':_0x11cb15['data'],'attributes':_0x11cb15['attributes']});const _0x2a8041=this['_model']['createPositionAt'](_0x5597ac['end']['parent'],'after'),_0x42dafe=this['_model']['createRange'](_0x2a8041,_0x55e174['end']);this['_addSuggestionMarker'](_0xefc26f,_0x2280b4,_0x3d387a,_0x42dafe);}else{if(_0x55e174['containsPosition'](_0x5597ac['start'])){const _0x522f56=this['_model']['createPositionAt'](_0x5597ac['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x55e174['start'],_0x522f56));}else{const _0x3adbf8=this['_model']['createPositionAt'](_0x5597ac['end']['parent'],'after');this['_setSuggestionRange'](_0x11cb15,this['_model']['createRange'](_0x3adbf8,_0x55e174['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x564fa6){for(const {suggestion:_0x30e830,meta:_0x2f5270}of this['_findSuggestions'](_0x564fa6,'insertion')){if(!_0x2f5270['isOwn'])continue;const _0x1ca490=_0x30e830['getRanges']();for(const _0x279d67 of _0x1ca490)if(!_0x564fa6['getDifference'](_0x279d67)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x50f805){const _0x231d44=this['editor']['plugins']['get']('Users')['getUser'](_0x50f805);if(!_0x231d44)throw new _0x297859('track-changes-user-not-found',this);return _0x231d44;}['_getExternalAuthor'](_0x550489){const _0x3afd83=this['editor']['plugins']['get']('Users'),_0x1832c7=_0x52361c('external:'+_0x550489),_0x5cee81=_0x3afd83['getUser'](_0x1832c7);return _0x5cee81||_0x3afd83['addUser']({'id':_0x1832c7,'name':_0x550489});}['_createSuggestion'](_0x5b87ca,_0x2226ef,_0x39c0d6,_0x4f44ca,_0x37bf46){const _0x329d19=this['_getAuthorFromId'](_0x4f44ca),_0x2c24b3=this['_suggestionFactory']['buildSuggestion'](_0x5b87ca,_0x2226ef,_0x39c0d6,_0x329d19,_0x37bf46,_0x51bb74=>{this['_updateSuggestionData'](_0x39c0d6,{'attributes':_0x51bb74});const _0x596ef6=this['getSuggestion'](_0x39c0d6);this['_joinWithAdjacentSuggestions'](new Set([_0x596ef6])),this['_refreshSuggestionsChain'](new Set([_0x596ef6]));});return this['listenTo'](_0x2c24b3,'accept',()=>{this['_updateSuggestionData'](_0x39c0d6,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2c24b3,'discard',()=>{this['_updateSuggestionData'](_0x39c0d6,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x39c0d6,_0x2c24b3),this['_suggestionState']['set'](_0x2c24b3,'notReady'),_0x2c24b3;}['_splitMarkerName'](_0x344e49){const _0x2fc934=_0x344e49['split'](':');return{'group':_0x2fc934[0x0],'type':_0x2fc934[0x1],'subType':_0x2fc934['length']>=0x5?_0x2fc934[0x2]:null,'id':_0x2fc934['length']<0x5?_0x2fc934[0x2]:_0x2fc934[0x3],'authorId':_0x2fc934['length']<0x5?_0x2fc934[0x3]:_0x2fc934[0x4],'markerCount':0x6==_0x2fc934['length']?_0x2fc934[0x5]:null};}['_breakSuggestionMarker'](_0x1af032,_0x4d00e4,_0x2f191f){const _0x49cd2e=_0x1af032['getFirstRange'](),_0x240be2=_0x49cd2e['start'],_0x26dfd3=_0x49cd2e['end'];this['_setSuggestionRange'](_0x1af032,this['_model']['createRange'](_0x240be2,_0x4d00e4));const _0x2cdfa8=_0x6322ca(),_0xdf83b4=_0x1af032['creator']['id'],_0x2ce4d4=_0x1af032['type']+(_0x1af032['subType']?':'+_0x1af032['subType']:'');this['_setSuggestionData']({'id':_0x2cdfa8,'type':_0x2ce4d4,'createdAt':new Date(),'authorId':_0xdf83b4,'originalSuggestionId':_0x1af032['id'],'attributes':_0x1af032['attributes'],'data':_0x1af032['data']});const _0xfb6b77=this['_getAttributeKey'](_0x1af032);('formatBlock'==_0x1af032['type']||_0xfb6b77&&this['_isBlockAttribute'](_0xfb6b77))&&(_0x2f191f=this['_model']['createPositionBefore'](_0x2f191f['parent'])),this['_addSuggestionMarker'](_0x2ce4d4,_0x2cdfa8,_0xdf83b4,this['_model']['createRange'](_0x2f191f,_0x26dfd3));}['_findSuggestions'](_0x1e67ec,_0x573ef7=null){const _0x3ed87d=[],_0x139208=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x1e67ec)||(_0x1e67ec=[_0x1e67ec]);for(const _0x237b74 of this['getSuggestions']()){if(!_0x237b74['isInContent'])continue;if(_0x573ef7&&_0x237b74['type']!=_0x573ef7)continue;let _0x37c400=!0x1;for(const _0x1e3162 of _0x237b74['getRanges']()){for(const _0x187b51 of _0x1e67ec){const _0x3e9175=_0x187b51['start']['isEqual'](_0x1e3162['end'])||_0x187b51['end']['isEqual'](_0x1e3162['start']);if(_0x3e9175||_0x187b51['getIntersection'](_0x1e3162)){const _0x4448e3=_0x187b51['containsRange'](_0x1e3162)&&Ot(this['_model']['schema'],_0x1e3162['start'],_0x187b51),_0xff4c0a=_0x1e3162['containsRange'](_0x187b51)&&Ot(this['_model']['schema'],_0x187b51['start'],_0x1e3162);_0x3ed87d['push']({'suggestion':_0x237b74,'meta':{'isOwn':_0x139208==_0x237b74['author'],'isNextTo':_0x3e9175,'isInsideObject':_0x4448e3,'containsRangeInObject':_0xff4c0a}}),_0x37c400=!0x0;break;}}if(_0x37c400)break;}}return _0x3ed87d;}['_addSuggestionMarker'](_0x595a9e,_0x1138b3,_0x19433c,_0x4ba159,_0x3b5df2){this['_model']['change'](_0x523702=>{let _0x4cccd5='suggestion:'+_0x595a9e+':'+_0x1138b3+':'+_0x19433c;_0x3b5df2&&(_0x4cccd5=_0x4cccd5+':'+_0x3b5df2),_0x523702['addMarker'](_0x4cccd5,{'range':_0x4ba159,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x462c80){const _0x5774ae=_0x462c80['previous'],_0x4b5bd9=_0x462c80['next'];_0x462c80['previous']=null,_0x462c80['next']=null,null!=_0x5774ae&&_0x5774ae['next']==_0x462c80&&(_0x5774ae['next']=_0x4b5bd9),null!=_0x4b5bd9&&_0x4b5bd9['previous']==_0x462c80&&(_0x4b5bd9['previous']=_0x5774ae),'ready'==this['_suggestionState']['get'](_0x462c80)&&(this['_suggestionState']['set'](_0x462c80,'removed'),this['fire']('suggestionUnloaded',_0x462c80,_0x5774ae,_0x4b5bd9));}['_setSuggestionData'](_0x291f63){const _0x48edc7=_0x291f63['id'],_0x152808=this['addSuggestionData'](_0x291f63);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2aca8a=this['editor']['plugins']['get']('PendingActions'),_0x483650=_0x152808['hasComments'],_0x22019e=_0x152808['subType']?_0x152808['type']+':'+_0x152808['subType']:_0x152808['type'],_0x1ed001=this['editor']['locale'],_0x447bc8=_0x2aca8a['add'](o(_0x1ed001,'PENDING_ACTION_SUGGESTION')),_0x5beb66={'id':_0x48edc7,'type':_0x22019e,'hasComments':_0x483650,'data':_0x291f63['data']||null,'originalSuggestionId':_0x291f63['originalSuggestionId']||null,'attributes':_0x152808['attributes']};this['_adapter']['addSuggestion'](_0x5beb66)['then'](_0x4888ba=>{_0x152808['_saved']=!0x0,_0x2aca8a['remove'](_0x447bc8),_0x4888ba&&_0x4888ba['createdAt']&&(this['_suggestions']['get'](_0x48edc7)['createdAt']=_0x4888ba['createdAt']);})['catch'](_0x8400c4=>{throw _0x11e761('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x152808['discard']();}),_0x152808['stopListening'](),this['_suggestions']['delete'](_0x152808['id']),this['_suggestionState']['delete'](_0x152808),_0x8400c4;});}return _0x152808;}['_isBlockAttribute'](_0x4ec1cc){return this['_blockAttributeKeys']['has'](_0x4ec1cc);}['_updateSuggestionData'](_0x264d12,_0x409f0f){const _0x4ffaa2=this['editor']['plugins']['get']('PendingActions'),_0x28b7e5=this['getSuggestion'](_0x264d12);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x28b7e5['_saved']){const _0x3f8184=_0x4ffaa2['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x264d12,_0x409f0f)['then'](()=>{_0x4ffaa2['remove'](_0x3f8184);});}else _0x28b7e5['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x264d12,_0x409f0f);});}}['_getSuggestionData'](_0x5b06ee){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x297859('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5b06ee);}['_handleNewSuggestionMarker'](_0x1df064){const {id:_0xc8d7d7,type:_0x4f641f,subType:_0x4fbb71,authorId:_0x9bf11c}=this['_splitMarkerName'](_0x1df064),_0x9896e4=this['_suggestions']['get'](_0xc8d7d7)||this['_createSuggestion'](_0x4f641f,_0x4fbb71,_0xc8d7d7,_0x9bf11c,{});switch(this['_checkSuggestionCorrectness'](_0x9896e4,_0x4f641f,_0x4fbb71,_0x9bf11c),this['_suggestionState']['get'](_0x9896e4)){case'notReady':this['_getSuggestionData'](_0xc8d7d7)['then'](_0x1d7b0f=>{let _0x3d5ae6=Promise['resolve']();_0x1d7b0f['hasComments']&&(_0x3d5ae6=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0xc8d7d7})),_0x3d5ae6['then'](()=>{this['addSuggestionData'](_0x1d7b0f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x9896e4,'markerReady');break;case'removed':this['_updateSuggestionData'](_0xc8d7d7,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x9896e4,'ready'),this['fire']('suggestionLoaded',_0x9896e4);break;case'ready':this['fire']('suggestionChanged',_0x9896e4);}return _0x9896e4['addMarkerName'](_0x1df064),_0x9896e4;}['_refreshSuggestionsChain'](_0x317b4c){const _0x18ddaf=Array['from'](_0x317b4c),_0x42a036=_0x18ddaf['filter'](_0x48668f=>'attribute'==_0x48668f['type']);this['_refreshAttributeSuggestionsChain'](_0x42a036);const _0x3e5fd8=_0x18ddaf['filter'](_0x499398=>!_0x499398['isMultiRange']&&'attribute'!=_0x499398['type']),_0x4d0ea0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3af842=>!_0x3af842['isMultiRange']&&'attribute'!=_0x3af842['type']),_0x3c5c26=_0x4d0ea0['filter'](_0x4e4bb5=>!_0x317b4c['has'](_0x4e4bb5)),_0x1ae264=new Map(_0x4d0ea0['map'](_0x15172f=>[_0x15172f,this['_suggestionFactory']['getSuggestionCallback'](_0x15172f['type'],_0x15172f['subType'],'chain')])),_0x555a82=new Map(_0x4d0ea0['map'](_0x4d0f8a=>[_0x4d0f8a,_0x4d0f8a['getFirstRange']()])),_0x340efd=new Set(),_0x56c81d=new Set();for(let _0x5cf944=0x0;_0x5cf944<_0x3e5fd8['length'];_0x5cf944++)_0xbca6e0(_0x3e5fd8[_0x5cf944],_0x3e5fd8,_0x5cf944+0x1);for(let _0x14014e=0x0;_0x14014e<_0x3e5fd8['length'];_0x14014e++)_0xbca6e0(_0x3e5fd8[_0x14014e],_0x3c5c26,0x0);const _0x931036=new Set();for(let _0x57aaf7=0x0;_0x57aaf7<_0x3e5fd8['length'];_0x57aaf7++){const _0x214c32=_0x3e5fd8[_0x57aaf7];!_0x56c81d['has'](_0x214c32)&&_0x214c32['previous']&&(_0x931036['add'](_0x214c32['previous']),_0x214c32['previous']['next']===_0x214c32&&(_0x214c32['previous']['next']=null),_0x214c32['previous']=null),!_0x340efd['has'](_0x214c32)&&_0x214c32['next']&&(_0x931036['add'](_0x214c32['next']),_0x214c32['next']['previous']===_0x214c32&&(_0x214c32['next']['previous']=null),_0x214c32['next']=null);}function _0xbca6e0(_0x318247,_0x4eb99b,_0x3a988e){for(let _0x2f1022=_0x3a988e;_0x2f1022<_0x4eb99b['length'];_0x2f1022++){const _0x407eda=_0x4d5bb9(_0x318247,_0x4eb99b[_0x2f1022]);_0x407eda&&(_0x407eda[0x0]['next']=_0x407eda[0x1],_0x407eda[0x1]['previous']=_0x407eda[0x0],_0x340efd['add'](_0x407eda[0x0]),_0x56c81d['add'](_0x407eda[0x1]));}}function _0x4d5bb9(_0x22af4a,_0x437578){if(_0x22af4a['author']['id']!==_0x437578['author']['id'])return null;const _0x524016=_0x1ae264['get'](_0x22af4a)(_0x22af4a,_0x437578,_0x555a82['get'](_0x22af4a),_0x555a82['get'](_0x437578));if(!_0x524016)return null;return _0x1ae264['get'](_0x437578)(_0x22af4a,_0x437578,_0x555a82['get'](_0x22af4a),_0x555a82['get'](_0x437578))?_0x524016[0x1]['commentThread']&&_0x524016[0x1]['commentThread']['length']?null:_0x524016:null;}_0x931036['size']&&this['_refreshSuggestionsChain'](_0x931036);}['_refreshAttributeSuggestionsChain'](_0x92b3c5){if(0x0==_0x92b3c5['length'])return;const _0x54669d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1932a4=>'attribute'==_0x1932a4['type']&&_0x1932a4['_isDataLoaded']),_0x120ff2=[],_0x2442e7=new Map();for(const _0x5c65f6 of _0x54669d){const _0x88ef96=_0x52361c(_0x5c65f6['attributes']);_0x2442e7['has'](_0x88ef96)||(_0x2442e7['set'](_0x88ef96,_0x120ff2['length']),_0x120ff2['push']([]));const _0x32aa3f=_0x2442e7['get'](_0x88ef96);_0x120ff2[_0x32aa3f]['push'](_0x5c65f6);}!(function(){_0x120ff2['sort']((_0x5d96f2,_0x3ba74e)=>{const _0x4a4f10=_0x5d96f2[0x0]['createdAt'],_0x53cb10=_0x3ba74e[0x0]['createdAt'];return _0x4a4f10==_0x53cb10?_0x5d96f2[0x0]['attributes']['groupId']<_0x3ba74e[0x0]['attributes']['groupId']?-0x1:0x1:_0x4a4f10<_0x53cb10?-0x1:0x1;});for(const _0x558aa0 of _0x120ff2)_0x558aa0['sort']((_0x165726,_0x303f0a)=>_0x165726['id']<_0x303f0a['id']?-0x1:0x1);}());for(let _0x19e070=0x0;_0x19e070<_0x120ff2['length'];_0x19e070++){if(0x0==_0x120ff2[_0x19e070]['length'])continue;const _0x4a5e77=[];for(let _0x325a82=_0x19e070+0x1;_0x325a82<_0x120ff2['length'];_0x325a82++)0x0!=_0x120ff2[_0x325a82]['length']&&_0x205447(_0x120ff2[_0x19e070],_0x120ff2[_0x325a82])&&_0x4a5e77['push'](_0x325a82);for(const _0x486970 of _0x4a5e77)_0x120ff2[_0x19e070]=_0x120ff2[_0x19e070]['concat'](_0x120ff2[_0x486970]),_0x120ff2[_0x486970]=[];}for(const _0x432fbc of _0x120ff2)for(let _0x48b3da=0x0;_0x48b3da<_0x432fbc['length'];_0x48b3da++){const _0x368155=_0x432fbc[_0x48b3da+0x1]||null;_0x432fbc[_0x48b3da]['next']!==_0x368155&&(_0x432fbc[_0x48b3da]['next']=_0x368155);}for(const _0x1eb2ef of _0x120ff2)for(let _0x5ec13d=0x0;_0x5ec13d<_0x1eb2ef['length'];_0x5ec13d++){const _0x5704c1=_0x1eb2ef[_0x5ec13d-0x1]||null;_0x1eb2ef[_0x5ec13d]['previous']!==_0x5704c1&&(_0x1eb2ef[_0x5ec13d]['previous']=_0x5704c1);}function _0x205447(_0x11bc19,_0x5e3172){if(_0x11bc19[0x0]['attributes']['groupId']!==_0x5e3172[0x0]['attributes']['groupId']&&_0x11bc19[0x0]['author']!==_0x5e3172[0x0]['author'])return!0x1;if(!function(_0x195e55,_0x1e5c97){if(!_0x195e55['hasComments']&&!_0x1e5c97['hasComments'])return!0x0;if(_0x195e55['hasComments']&&_0x1e5c97['hasComments'])return!0x1;if(_0x195e55['hasComments']&&_0x1e5c97['createdAt']<_0x195e55['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1e5c97['hasComments']&&_0x195e55['createdAt']<_0x1e5c97['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x11bc19[0x0],_0x5e3172[0x0]))return!0x1;const _0x978a5c=Tt(_0x11bc19[0x0]['attributes'],'groupId'),_0x3ff332=Tt(_0x5e3172[0x0]['attributes'],'groupId');if(!_0x3d91e4(_0x978a5c,_0x3ff332))return!0x1;return!!_0x11bc19['every'](_0x2b06cf=>_0x5e3172['some'](_0x563690=>_0x2b06cf['getFirstRange']()['isEqual'](_0x563690['getFirstRange']())))&&_0x5e3172['every'](_0x32f5c9=>_0x11bc19['some'](_0x3275c9=>_0x32f5c9['getFirstRange']()['isEqual'](_0x3275c9['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x360d5b){const _0x1b0c11=Array['from'](_0x360d5b),_0x27008f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x57f29a=_0x27008f['filter'](_0x148795=>!_0x360d5b['has'](_0x148795)),_0x35df13=new Map(_0x1b0c11['map'](_0x11fc07=>[_0x11fc07,this['_suggestionFactory']['getSuggestionCallback'](_0x11fc07['type'],_0x11fc07['subType'],'join')])),_0x3b2223=new Map(_0x27008f['map'](_0x451f84=>[_0x451f84,_0x451f84['getRanges']()]));for(let _0x181853=0x0;_0x181853<_0x1b0c11['length'];_0x181853++){if(_0x118501(this,_0x1b0c11[_0x181853],_0x1b0c11,_0x181853+0x1))return!0x0;}for(let _0x86367=0x0;_0x86367<_0x1b0c11['length'];_0x86367++){if(_0x118501(this,_0x1b0c11[_0x86367],_0x57f29a,0x0))return!0x0;}return!0x1;function _0x118501(_0x30ba9b,_0x5e7e2a,_0x567899,_0x5a3945){for(let _0x19db53=_0x5a3945;_0x19db53<_0x567899['length'];_0x19db53++){const _0x24ee4d=_0x567899[_0x19db53];if(_0x24ee4d['type']!==_0x5e7e2a['type']||_0x24ee4d['author']['id']!==_0x5e7e2a['author']['id']||_0x24ee4d['subType']!==_0x5e7e2a['subType'])continue;if(!Jt(_0x5e7e2a,_0x24ee4d))continue;if('attribute'==_0x5e7e2a['type']&&_0x5e7e2a['data']['oldValue']!=_0x24ee4d['data']['oldValue'])continue;if('attribute'==_0x5e7e2a['type']&&_0x30ba9b['_isBlockAttribute'](_0x5e7e2a['data']['key']))continue;if('formatBlock'==_0x5e7e2a['type']){const _0xf2f79c=_0x30ba9b['editor']['model'],_0x92b341=_0x5e7e2a['getContainedElement']();if(_0x92b341&&(_0xf2f79c['schema']['isObject'](_0x92b341)||_0xf2f79c['schema']['isLimit'](_0x92b341)))continue;}const _0x5e295d=_0x35df13['get'](_0x5e7e2a),_0x780ebc=_0x3b2223['get'](_0x5e7e2a),_0x2fda7a=_0x3b2223['get'](_0x24ee4d),_0x4f4dbb=_0x5e7e2a['commentThread']&&_0x5e7e2a['commentThread']['length'],_0x1bfbc7=_0x24ee4d['commentThread']&&_0x24ee4d['commentThread']['length'];if(!_0x4f4dbb&&_0x5e295d(_0x2fda7a,_0x780ebc))return _0x30ba9b['_joinSuggestions'](_0x24ee4d,_0x5e7e2a),_0x3b2223['delete'](_0x5e7e2a),!0x0;if(!_0x1bfbc7&&_0x5e295d(_0x780ebc,_0x2fda7a))return _0x30ba9b['_joinSuggestions'](_0x5e7e2a,_0x24ee4d),_0x3b2223['delete'](_0x24ee4d),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5ec7ef,_0x20c239){if(_0x5ec7ef['isMultiRange']){for(const _0x472e3e of _0x20c239['getRanges']())_0x5ec7ef['addRange'](_0x472e3e);}else{const _0xce1482=_0x20c239['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5ec7ef,this['_model']['createRange'](_0x5ec7ef['getFirstRange']()['start'],_0xce1482));}_0x20c239['removeMarkers']();}['_getMarkerAnnouncementText'](_0xdbdb4,_0x3cb10c,_0x3e322f){const _0x1cc879=_0xdbdb4['startsWith']('format')||_0xdbdb4['startsWith']('attribute')?'FORMATTING':_0xdbdb4['toUpperCase']();return o(this['editor']['locale'],_0x3cb10c+'_'+_0x1cc879+'_SUGGESTION_ANNOUNCEMENT',_0x3e322f);}['_initAriaMarkerChangeAnnouncements'](){const _0x53c9b7=this['editor'];if(!_0x53c9b7['ui'])return;const {ariaLiveAnnouncer:_0x25439c}=_0x53c9b7['ui'];_0xcbec54(this['_model'],({left:_0x5df5b0,entered:_0x831211})=>{for(const _0x45d011 of _0x5df5b0){const {group:_0x2bde61,type:_0x2ee74d}=this['_splitMarkerName'](_0x45d011['name']);if('suggestion'===_0x2bde61){_0x25439c['announce'](this['_getMarkerAnnouncementText'](_0x2ee74d,'LEAVE'));break;}}for(const _0x556b16 of _0x831211){const {group:_0xc52732,type:_0x1ae1c5}=this['_splitMarkerName'](_0x556b16['name']);if('suggestion'===_0xc52732){_0x25439c['announce'](this['_getMarkerAnnouncementText'](_0x1ae1c5,'ENTER',_0x2b26ac(_0x224acd)));break;}}});}['_processAttributeChanges'](_0x38c0d5){if(this['_recordAttributeSuggestions'])return!0x1;const _0x35f96d=this['editor'],_0x3b5262=_0x35f96d['model']['document']['differ']['getChanges']();if(0x0==_0x3b5262['length'])return!0x1;const _0x4e5c86=[],_0xa66e4f=_0x3b5262['filter'](_0x37945f=>'attribute'==_0x37945f['type']),_0x5f502c=_0x3b5262['filter'](_0x2bcb2c=>'insert'==_0x2bcb2c['type']&&'$text'!=_0x2bcb2c['name']),_0x2d8868=_0x3b5262['filter'](_0x469da2=>'remove'==_0x469da2['type']&&'$text'!=_0x469da2['name']);for(const _0x3db00e of _0xa66e4f)_0x4e5c86['push']({'key':_0x3db00e['attributeKey'],'newValue':_0x3db00e['attributeNewValue'],'oldValue':_0x3db00e['attributeOldValue'],'range':Pt(_0x3db00e['range'],_0x35f96d['model'])});for(const _0x19f12a of _0x5f502c){const _0x328296=_0x2d8868['find'](_0x2b9741=>_0x2b9741['position']['isEqual'](_0x19f12a['position']));_0x328296&&_0x4e5c86['push']({'key':m,'newValue':_0x19f12a['name'],'oldValue':_0x328296['name'],'range':_0x35f96d['model']['createRangeOn'](_0x19f12a['position']['nodeAfter'])});}return 0x0!=_0x4e5c86['length']&&this['_reduceExistingSuggestions'](_0x38c0d5,_0x4e5c86);}['_processAttributeSuggestions'](_0x2357f7){let _0x42538b=!0x1;const _0x31d909=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x26c535=>_0x26c535['data']['newRange']&&_0x26c535['name']['startsWith']('suggestion:attribute:'));for(const _0x16f162 of _0x31d909){const {subType:_0x37bb19,id:_0x36650e}=this['_splitMarkerName'](_0x16f162['name']),_0x22144c=_0x37bb19['split']('|')[0x0];for(const _0x50c51f of this['getSuggestions']({'skipNotAttached':!0x0}))_0x50c51f['id']!=_0x36650e&&'attribute'==_0x50c51f['type']&&_0x50c51f['data']&&_0x50c51f['data']['key']==_0x22144c&&_0x50c51f['getFirstRange']()['isIntersecting'](_0x16f162['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x50c51f,_0x16f162['data']['newRange'],_0x2357f7),_0x42538b=!0x0);}return _0x42538b;}['_recordAttributeChanges'](_0x4e119a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4e119a();}['_isRegisteredAttribute'](_0x3cf47c){const _0x942bd8=this['_isBlockAttribute'](_0x3cf47c),_0x347447=this['_inlineAttributeKeys']['has'](_0x3cf47c);return _0x942bd8||_0x347447;}['_reduceExistingSuggestions'](_0x21a5de,_0x2afcfc){if(0x0==_0x2afcfc['length'])return!0x1;let _0x2d61ca=!0x1;for(const _0x482b5e of _0x2afcfc){const _0x1ad9bf=this['_findSuggestions'](_0x482b5e['range'],'attribute')['filter'](_0x3c05cc=>!_0x3c05cc['meta']['isNextTo'])['map'](_0x2613a0=>_0x2613a0['suggestion']),_0x19b645=_0x52361c({'newValue':_0x482b5e['newValue']});_0x1ad9bf['filter'](_0x1ee8ca=>{const [_0x8fd8f6,_0x43e0ec]=_0x1ee8ca['subType']['split']('|');return _0x8fd8f6==_0x482b5e['key']&&_0x43e0ec!=_0x19b645;})['forEach'](_0xc3ba62=>{this['_reduceSuggestionAttributeRange'](_0xc3ba62,_0x482b5e['range'],_0x21a5de),_0x2d61ca=!0x0;});}return _0x2d61ca;}['_reduceSuggestionAttributeRange'](_0x4578b0,_0x51c09c,_0xb1dd08){const _0x2ec00e=_0x4578b0['getFirstRange']()['getDifference'](_0x51c09c);0x0!==_0x2ec00e['length']?0x1!==_0x2ec00e['length']?this['_breakSuggestionMarker'](_0x4578b0,_0x51c09c['start'],_0x51c09c['end']):this['_setSuggestionRange'](_0x4578b0,_0x2ec00e[0x0]):_0xb1dd08['removeMarker'](_0x4578b0['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x42f79b){this['_editor']=_0x42f79b,this['_model']=_0x42f79b['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x119970,_0xd44167,_0x409c8d,_0x40db38,_0x376c81,_0x4762f9){return new u(this['_model'],{'type':_0x119970,'subType':_0xd44167,'id':_0x409c8d,'author':_0x40db38,'creator':_0x40db38,'attributes':_0x376c81,'onAttributesChange':_0x4762f9,'onAccept':(..._0x4c465e)=>this['getSuggestionCallback'](_0x119970,_0xd44167,'accept')(..._0x4c465e),'onDiscard':(..._0x54e09b)=>this['getSuggestionCallback'](_0x119970,_0xd44167,'discard')(..._0x54e09b)});}['registerCustomCallback'](_0x389998,_0x513faf,_0x1aadb4,_0x1e321d){const _0x2ea979=_0x389998+':'+_0x513faf+':'+_0x1aadb4;this['_customCallbacks']['set'](_0x2ea979,_0x1e321d);}['getSuggestionCallback'](_0x210eee,_0x225ea2,_0x1a530a){const _0x1ca150=_0x210eee+':'+_0x225ea2+':'+_0x1a530a;return this['_customCallbacks']['get'](_0x1ca150)||this['_defaultCallbacks']['get'](_0x210eee+':'+_0x1a530a);}['_registerDefaultCallbacks'](){const _0x2b426f=()=>!0x1,_0x3cae53=_0x68afa1=>{_0x68afa1['sort']((_0x2bb461,_0x42b6b7)=>_0x2bb461['start']['isBefore'](_0x42b6b7['start'])?0x1:-0x1),this['_model']['change'](_0x1a3ebb=>{for(const _0x5935d9 of _0x68afa1){let _0x10b8d9;_0x10b8d9=_0x5935d9['end']['isAtEnd']&&_0x5935d9['end']['parent']==_0x5935d9['start']['nodeAfter']?_0x1a3ebb['createSelection'](_0x5935d9['start']['nodeAfter'],'on'):_0x1a3ebb['createSelection'](_0x5935d9),this['_model']['deleteContent'](_0x10b8d9,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x3a3f35=(_0x423e8a,_0x1f06a7)=>{_0x1f06a7&&this['_model']['change'](_0xfffc4f=>{const {commandName:_0x68e849,commandParams:_0x42b30e=[]}=_0x1f06a7,_0x4577af=_0x423e8a['map'](_0x2dee6a=>(Vt(_0x2dee6a)&&(_0x2dee6a=this['_model']['createRange'](_0x2dee6a['end'])),_0x2dee6a))['filter'](_0x450c80=>'$graveyard'!==_0x450c80['root']['rootName']);if(_0x4577af['length']<0x1)return;const _0x544bac=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x2b4c07=>_0x43155d['fromRange'](_0x2b4c07));_0xfffc4f['setSelection'](_0x4577af);for(const _0x1dea9d of this['_editor']['commands']['commands']())_0x1dea9d['refresh']();_0x42b30e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x68e849,..._0x42b30e);const _0x2e749a=_0x544bac['filter'](_0x8ca932=>'$graveyard'!=_0x8ca932['root']['rootName']);_0x2e749a['length']>0x0&&_0xfffc4f['setSelection'](_0x2e749a);for(const _0x3c43e8 of _0x544bac)_0x3c43e8['detach']();});},_0x2f9ea5=(_0x3c30fe,_0xb89192)=>0x1==_0x3c30fe['length']&&0x1==_0xb89192['length']&&_0x3c30fe[0x0]['end']['isEqual'](_0xb89192[0x0]['start']),_0x3cd56d=(_0x531e91,_0x3dcb51,_0x54a0c3,_0x37fea)=>Ht(_0x531e91,_0x3dcb51,_0x54a0c3,_0x37fea,this['_model'])?[_0x531e91,_0x3dcb51]:Ht(_0x3dcb51,_0x531e91,_0x37fea,_0x54a0c3,this['_model'])?[_0x3dcb51,_0x531e91]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x2b426f),this['_defaultCallbacks']['set']('insertion:discard',_0x3cae53),this['_defaultCallbacks']['set']('insertion:join',_0x2f9ea5),this['_defaultCallbacks']['set']('insertion:chain',_0x3cd56d),this['_defaultCallbacks']['set']('deletion:accept',_0x3cae53),this['_defaultCallbacks']['set']('deletion:discard',_0x2b426f),this['_defaultCallbacks']['set']('deletion:join',_0x2f9ea5),this['_defaultCallbacks']['set']('deletion:chain',_0x3cd56d),this['_defaultCallbacks']['set']('formatInline:accept',_0x3a3f35),this['_defaultCallbacks']['set']('formatInline:discard',_0x2b426f),this['_defaultCallbacks']['set']('formatInline:join',_0x2f9ea5),this['_defaultCallbacks']['set']('formatInline:chain',_0x2b426f),this['_defaultCallbacks']['set']('formatBlock:accept',_0x3a3f35),this['_defaultCallbacks']['set']('formatBlock:discard',_0x2b426f),this['_defaultCallbacks']['set']('formatBlock:join',_0x2f9ea5),this['_defaultCallbacks']['set']('formatBlock:chain',_0x2b426f),this['_defaultCallbacks']['set']('attribute:accept',_0x2b426f),this['_defaultCallbacks']['set']('attribute:discard',(_0xc402b3,_0xcb39ef)=>{if(!_0xcb39ef)return;const _0xe6b402=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x5721ea=>{if(_0xcb39ef['key']==m)for(const _0x364f9f of _0xc402b3){const _0x4b82f0=_0x364f9f['start']['nodeAfter'],_0x23e963=_0xcb39ef['oldValue'];_0x5721ea['rename'](_0x4b82f0,_0x23e963);}else{if(_0xe6b402['_isBlockAttribute'](_0xcb39ef['key'])){for(const _0x545c07 of _0xc402b3)void 0x0!==_0xcb39ef['oldValue']?_0x5721ea['setAttribute'](_0xcb39ef['key'],_0xcb39ef['oldValue'],_0x545c07['start']['nodeAfter']):_0x5721ea['removeAttribute'](_0xcb39ef['key'],_0x545c07['start']['nodeAfter']);}else{for(const _0x23f48a of _0xc402b3)_0xcb39ef['oldValue']?_0x5721ea['setAttribute'](_0xcb39ef['key'],_0xcb39ef['oldValue'],_0x23f48a):_0x5721ea['removeAttribute'](_0xcb39ef['key'],_0x23f48a);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2f9ea5);}}function Ot(_0x2faaf0,_0x3f5768,_0x263ff6){for(const _0x201f92 of _0x3f5768['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x201f92['root']==_0x201f92)return!0x1;if(!_0x263ff6['containsItem'](_0x201f92))return!0x1;if(_0x2faaf0['isObject'](_0x201f92)||_0x2faaf0['isLimit'](_0x201f92))return!0x0;}return!0x1;}function Vt(_0x3a8d20){return _0x3a8d20['end']['parent']==_0x3a8d20['start']['nodeAfter']&&_0x3a8d20['end']['isAtStart'];}function Ut(_0x113e8b,_0x10d42a,_0x47f893,_0x2ba442){const _0x58f26b=_0x1def82=>!_0x1def82['item']['is']('$textProxy')&&!_0x2ba442['isObject'](_0x1def82['item']),_0x32641e=_0x113e8b['start']['getLastMatchingPosition'](_0x58f26b),_0x1e735c=_0x113e8b['end']['getLastMatchingPosition'](_0x58f26b,{'direction':'backward'});return(!_0x113e8b['start']['isEqual'](_0x32641e)||!_0x113e8b['end']['isEqual'](_0x1e735c))&&(_0x32641e['isBefore'](_0x1e735c)?_0x47f893['updateMarker'](_0x10d42a,{'range':_0x47f893['createRange'](_0x32641e,_0x1e735c)}):_0x47f893['removeMarker'](_0x10d42a),!0x0);}function Gt(_0x18f829){return _0x52361c(_0x18f829);}function Ft(_0x27cfb7){const _0x87c0dc=_0x27cfb7['start']['nodeAfter'];return _0x87c0dc&&_0x87c0dc['is']('element');}function Pt(_0x191c56,_0x22b1ba){return null==_0x191c56['end']['nodeBefore']&&_0x191c56['end']['parent']==_0x191c56['start']['nodeAfter']?Lt(_0x191c56['start']['nodeAfter'],_0x22b1ba):_0x191c56;}function Lt(_0x38719b,_0x9709d0){const _0x997a6a=_0x9709d0['schema']['isObject'](_0x38719b)||_0x9709d0['schema']['isSelectable'](_0x38719b);return _0x9709d0['createRange'](_0x9709d0['createPositionAt'](_0x38719b,'before'),_0x997a6a?_0x9709d0['createPositionAfter'](_0x38719b):_0x9709d0['createPositionAt'](_0x38719b,'end'));}function Ht(_0x3ed708,_0x205b41,_0x2e4d8b,_0x5a022d,_0x2f6fdf){if(_0x3ed708['next'])return!0x1;if(!Jt(_0x3ed708,_0x205b41))return!0x1;if(_0x2e4d8b['end']['isEqual'](_0x5a022d['start']))return!0x0;if(_0x3ed708['type']!=_0x205b41['type'])return!0x1;if(!_0x2e4d8b['end']['isTouching'](_0x5a022d['start']))return!0x1;const _0x70c2dc=_0x2f6fdf['createRange'](_0x2e4d8b['end'],_0x5a022d['start'])['getWalker']();for(const _0xa63e57 of _0x70c2dc)if(['elementStart','elementEnd']['includes'](_0xa63e57['type'])&&_0x2f6fdf['schema']['isLimit'](_0xa63e57['item']))return!0x1;return!0x0;}function Jt(_0x56ceef,_0x540b1f){if(!_0x56ceef['_isDataLoaded']||!_0x540b1f['_isDataLoaded'])return!0x1;const _0x24eeea=new Set(Object['keys'](_0x56ceef['attributes'])),_0x2c1710=new Set(Object['keys'](_0x540b1f['attributes']));if(_0x24eeea['delete']('groupId'),_0x2c1710['delete']('groupId'),0x0==_0x24eeea['size']&&0x0==_0x2c1710['size'])return!0x0;if(_0x24eeea['size']!=_0x2c1710['size'])return!0x1;const _0x590bae={..._0x56ceef['attributes']},_0x23e21e={..._0x540b1f['attributes']};return delete _0x590bae['groupId'],delete _0x23e21e['groupId'],JSON['stringify'](_0x590bae)==JSON['stringify'](_0x23e21e);}function qt(_0x53de67,_0xdc1024){const _0x418742=zt(_0x53de67['attributes']),_0x54026d=zt(_0xdc1024);if(!_0x53de67['_isDataLoaded'])return!0x1;for(const _0x3eb499 of Object['keys'](_0x54026d))if(!_0x3d91e4(_0x418742[_0x3eb499],_0x54026d[_0x3eb499]))return!0x1;return!0x0;}function zt(_0x159547){const _0x41ca86=Object['assign']({},_0x159547);return delete _0x41ca86['skipNestingCheck'],delete _0x41ca86['tablePasteChainId'],_0x41ca86;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0xe7639c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x35321a,_0x3e6a20,_0x14c4ba,_0x4c7a1c){super(),this['model']=_0x3e6a20,this['view']=_0x14c4ba,this['commentThreadController']=_0x4c7a1c,this['_editor']=_0x35321a,this['_acceptCommand']=_0x35321a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x35321a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xa1054e,_0x525d64)=>_0xa1054e||_0x525d64),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x448ef9=>_0x448ef9&&this['_editor']['model']['canEditAt'](_0x3e6a20['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x593804=>_0x593804&&this['_editor']['model']['canEditAt'](_0x3e6a20['getRanges']())),this['_pendingAction']=null,_0x14c4ba['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x14c4ba,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x14c4ba,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x14c4ba,'change:isDirty',()=>{_0x14c4ba['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 _0x3d767a=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x3d767a);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x451fdc{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5cb13d,_0x28e9fe,_0x45a516,_0x8b2acc){super(_0x5cb13d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x524575(_0x5cb13d,o(_0x5cb13d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x28e9fe['authoredAt']),this['bind']('authoredAt')['to'](_0x28e9fe),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',_0x28e9fe,'authoredAt',this,'descriptionParts',(_0x2fcd5b,_0x2c6c42,_0x3cc7b1)=>{const _0x2a39d2=_0x3cc7b1['map'](_0x1ad470=>ls(_0x1ad470['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2fcd5b-0x1,_0x28e9fe['author']['name'],_0x2c6c42?_0x8b2acc['formatDateTime'](_0x2c6c42):'',new DOMParser()['parseFromString'](_0x2a39d2,'text/html')['body']['textContent']]);}),this['focusables']=new _0x5c72c1(),this['focusTracker']=new _0x966cf0(),this['keystrokes']=new _0x201fc8(),this['focusCycler']=new _0x432d7b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x139ce3=>_0x139ce3['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x28e9fe,this['_localUser']=_0x45a516,this['_config']=_0x8b2acc,_0x8b2acc['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2ad6e6(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x501142}=this['_config'];this['commentsListView']=new _0x501142(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',_0x4e1d6d=>_0x4e1d6d+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5519b0,_0x989de7)=>_0x5519b0||!!_0x989de7);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4e6ccb}=this['_config'],_0x417a1a=new _0x4e6ccb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x548765=_0x417a1a['commentInputView'];return _0x417a1a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x548765,'value',(_0x387876,_0x19f59d,_0x3f5ca1)=>!!_0x3f5ca1||_0x387876&&!_0x19f59d),_0x548765['on']('submit',(_0x2ddad9,_0x27d3bb)=>{this['fire']('addComment',_0x27d3bb),_0x548765['editor']['setData']('');}),_0x548765['on']('cancel',()=>this['focus']()),_0x548765['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x417a1a;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x23ee8d,_0x1c49c7,_0x1edf8e,_0x3ad3ec){super(_0x23ee8d,_0x1c49c7,_0x1edf8e,_0x3ad3ec),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x2f7530=>_0x2f7530&&_0x2f7530[0x0]?_0x2f7530[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x297b74,_0x3750b7)=>{let _0x8e9204='';for(const _0x1c3958 of _0x297b74)_0x8e9204+='<p>'+ls(_0x1c3958['content'],_0x1c3958['color'])+'</p>';return _0x3750b7?_0x8e9204:_0x176c99(_0x8e9204,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3ad3ec['SuggestionView'](_0x23ee8d,_0x1c49c7,{'formatDateTime':_0x3ad3ec['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 _0x2476fb=this['bindTemplate'],_0x505307=[this['suggestionView']];return this['commentsListView']&&_0x505307['push'](this['commentsListView']),this['commentThreadInputView']&&_0x505307['push'](this['commentThreadInputView']),_0x505307['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2476fb['if']('isActive','ck-suggestion-wrapper--active'),_0x2476fb['to']('type',_0x4586c9=>'ck-suggestion-'+_0x4586c9),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':_0x2476fb['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x505307};}['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 ce extends _0x451fdc{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x5601e0,_0x4feb3e,_0x5d74ef){super(_0x5601e0),this['_model']=_0x4feb3e,this['_config']=_0x5d74ef,this['set']('description',''),this['bind']('authoredAt')['to'](_0x4feb3e),this['acceptButton']=this['_createButton'](o(_0x5601e0,'Accept\x20suggestion'),_0xd55615['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x5601e0,'Discard\x20suggestion'),_0xd55615['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x2ad5bb(_0x5601e0,_0x4feb3e['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x5c72c1([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x966cf0(),this['keystrokes']=new _0x201fc8(),this['focusCycler']=new _0x432d7b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x191557=>_0x191557['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x1aec87=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x1aec87['innerHTML']=this['description'],this['on']('change:description',(_0x292f2f,_0x44abf5,_0x2b95dd)=>{_0x1aec87['innerHTML']=_0x2b95dd;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0xc1d1f2=this['bindTemplate'],_0x2b767f=[{'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']}},{'tag':'time','attributes':{'datetime':_0xc1d1f2['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xc1d1f2['to']('authoredAt',_0x204756=>this['_config']['formatDateTime'](_0x204756))}]}]},{'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']&&_0x2b767f['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':_0x2b767f}]};}['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'](_0x1df7e5,_0x17eb10,_0x3090a7,_0x53d351,_0x474769){const _0x1e5f8b=new _0xbdcb8d(this['locale']);return _0x1e5f8b['set']({'label':_0x1df7e5,'icon':_0x17eb10,'tooltip':!0x0,'tooltipPosition':_0x474769}),_0x1e5f8b['extendTemplate']({'attributes':{'class':_0x3090a7}}),_0x1e5f8b['on']('execute',()=>{this['fire'](_0x53d351,this['_model']['id']);}),_0x1e5f8b;}['_setupKeyboardNavigation'](){const _0x552c05=this['element'];this['keystrokes']['listenTo'](_0x552c05);for(const _0x4f2559 of this['focusables'])this['focusTracker']['add'](_0x4f2559['element']),this['keystrokes']['listenTo'](_0x4f2559['element']);this['keystrokes']['set']('enter',(_0x402263,_0x21e428)=>{_0x552c05===_0x402263['target']&&(this['focusCycler']['focusFirst'](),_0x21e428());}),this['keystrokes']['set']('esc',(_0xfa1c35,_0x4e898d)=>{_0x552c05!==_0xfa1c35['target']&&(this['focus'](),_0x4e898d());});}}var he='<!--\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-2024,\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 _0x2d1259{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x1f5312,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x2c9cbe){super(_0x2c9cbe),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x1077ff=this['editor']['config'];_0x1077ff['define']('trackChanges.SuggestionThreadView',re),_0x1077ff['define']('trackChanges.SuggestionView',ce),_0x1077ff['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x1077ff['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x1c4d27,_0x345369){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x406f4c,_0x2d6396]of this['_handleControllerBuffer']){const _0x185e2e=this['_suggestionToController']['has'](_0x406f4c);_0x185e2e||_0x2d6396?_0x185e2e&&_0x2d6396&&this['_destroyController'](_0x406f4c):this['_initializeController'](_0x406f4c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x1c4d27,_0x345369);}['init'](){const _0x3d37c5=this['editor'],_0x24a9e4=_0x3d37c5['plugins']['get']('TrackChangesEditing'),_0x3a61f0=_0x3d37c5['plugins']['get']('Annotations'),_0x32d51c=_0x3d37c5['plugins']['get']('EditorAnnotations'),_0x1e2f98=_0x3d37c5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x32d51c['addSourceCollector'](()=>{const _0x500445=[];for(const [_0x2da734,_0x2891d1]of Array['from'](this['_suggestionToController'])){const _0x4da173=_0x2da734['getAllAdjacentSuggestions'](),_0x74083c=[];for(const _0x4ded4a of _0x4da173){if(!_0x4ded4a['isInContent'])continue;if(_0x4ded4a['isMultiRange']){_0x74083c['push'](..._0x4ded4a['getRanges']());continue;}const _0x2e5b38=_0x4ded4a['getFirstRange']();if(_0x74083c['length']>0x0){const _0x53b241=_0x74083c[0x0]['getJoined'](_0x2e5b38);if(_0x53b241){_0x74083c[0x0]=_0x53b241;continue;}}_0x74083c['push'](_0x2e5b38);}_0x500445['push']([_0x2891d1['view'],_0x74083c]);}return _0x500445;}),this['listenTo'](_0x24a9e4,'suggestionLoaded',(_0x326298,_0x142c63)=>{this['listenTo'](_0x142c63,'change:previous',(_0x193ab0,_0x391722,_0x15e033,_0x2437c0)=>{_0x142c63['isInContent']&&(null==_0x15e033?(this['_updateController'](_0x2437c0['head']),this['_handleSuggestionControllerDelayed'](_0x142c63,!0x1)):(this['_updateController'](_0x15e033['head']),null==_0x2437c0&&this['_handleSuggestionControllerDelayed'](_0x142c63,!0x0)));}),null!==_0x142c63['previous']?this['_updateController'](_0x142c63['head']):this['_handleSuggestionControllerDelayed'](_0x142c63,!0x1);}),this['listenTo'](_0x24a9e4,'suggestionUnloaded',(_0x1a1181,_0x342b00,_0x32bb7e)=>{this['stopListening'](_0x342b00,'change:previous'),this['_handleControllerBuffer']['delete'](_0x342b00),this['_suggestionToController']['has'](_0x342b00)&&this['_destroyController'](_0x342b00),_0x32bb7e&&this['_updateController'](_0x32bb7e['head']);}),this['listenTo'](_0x24a9e4,'suggestionChanged',(_0x567456,_0x55f803)=>{this['_updateController'](_0x55f803);}),this['listenTo'](_0x3a61f0,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1e2f98,'addComment',(_0x591093,{threadId:_0x5c8c94,isFromAdapter:_0x2e3222})=>{if(_0x2e3222||!_0x24a9e4['hasSuggestion'](_0x5c8c94))return;const _0x226c59=_0x24a9e4['getSuggestion'](_0x5c8c94);this['_suggestionToController']['get'](_0x226c59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x5bdafa=this['editor']['plugins']['get']('Annotations'),_0x3575d5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x40b5e5=Array['from'](_0x5bdafa['activeAnnotations'],_0x32e081=>_0x32e081['innerView'])['filter'](_0x28b520=>this['_viewToController']['has'](_0x28b520)),_0x5d0299=[];for(const _0xcd3d2b of _0x40b5e5){const _0xf65abc=this['_viewToController']['get'](_0xcd3d2b)['model']['getAllAdjacentSuggestions']();_0x5d0299['push'](..._0xf65abc['reduce']((_0x562c50,_0x23c8eb)=>[..._0x562c50,..._0x23c8eb['getMarkerNames']()],[]));}_0x3575d5['activeMarkers']=_0x5d0299;}['_addUIComponentsToFactory'](){const _0x188fdb=this['editor'],_0x5f2a53=_0x188fdb['locale'],_0x59b4d3=o(_0x5f2a53,'Track\x20changes'),_0x19264b=new Wt([{'type':'switchbutton','model':new _0x32a3d2({'withText':!0x0,'isToggleable':!0x0,'label':_0x59b4d3,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x32a3d2({'withText':!0x0,'label':o(_0x5f2a53,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x4ccff5 of _0x19264b)if(me(_0x4ccff5)){const _0x4f64ba=_0x188fdb['commands']['get'](_0x4ccff5['model']['commandName']);_0x4ccff5['model']['bind']('isOn','isEnabled')['to'](_0x4f64ba,'value','isEnabled');}_0x188fdb['ui']['componentFactory']['add']('trackChanges',_0x434aaa=>this['_createToolbarButton'](_0x434aaa,_0x19264b,_0x59b4d3)),_0x188fdb['ui']['componentFactory']['add']('menuBar:trackChanges',_0x52789c=>this['_createMenuBarMenu'](_0x52789c,_0x19264b,_0x59b4d3));}['_createToolbarButton'](_0x1a82bb,_0x1f044c,_0x32cd8f){const _0x21b50b=Qt(_0x1a82bb,_0x355e24),_0x3c16bf=this['editor']['commands']['get']('trackChanges');_0x21b50b['buttonView']['set']({'tooltip':_0x32cd8f,'label':_0x32cd8f,'icon':he}),_0x21b50b['buttonView']['bind']('isOn')['to'](_0x3c16bf,'value'),_0x21b50b['buttonView']['on']('execute',()=>{_0x3c16bf['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x21b50b,_0x1f044c,{'role':'menu'});const _0xc82399=[];for(const _0xed804f of _0x1f044c)me(_0xed804f)&&_0xc82399['push'](this['editor']['commands']['get'](_0xed804f['model']['commandName']));const _0x5012e2=_0x21b50b['buttonView'];return _0x5012e2['actionView']['unbind']('isEnabled'),_0x5012e2['arrowView']['unbind']('isEnabled'),_0x5012e2['actionView']['bind']('isEnabled')['to'](_0x3c16bf,'isEnabled'),_0x5012e2['arrowView']['bind']('isEnabled')['toMany'](_0xc82399,'isEnabled',(..._0x5c01fe)=>_0x5c01fe['some'](_0x35d602=>_0x35d602)),_0x21b50b['on']('execute',_0x53c092=>{this['editor']['execute'](_0x53c092['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x21b50b;}['_createMenuBarMenu'](_0x265f0d,_0x29eae6,_0x5a171b){const _0x12f43f=new Yt(_0x265f0d),_0x2ffe22=this['editor']['commands']['get']('trackChanges');_0x12f43f['buttonView']['set']({'label':_0x5a171b,'icon':he});const _0x2b89ab=new Zt(_0x265f0d);for(const _0x4bc043 of _0x29eae6){if('separator'==_0x4bc043['type']){_0x2b89ab['items']['add'](new Xt(_0x265f0d));continue;}const _0x4dc9ac=new te(_0x265f0d,_0x12f43f),_0x335d72=new _0x167bd1(_0x265f0d),_0x21f383=_0x4bc043['model'];_0x335d72['bind'](...Object['keys'](_0x21f383))['to'](_0x21f383),_0x335d72['delegate']('execute')['to'](_0x12f43f),_0x335d72['on']('execute',()=>{this['editor']['execute'](_0x21f383['commandName']),this['editor']['editing']['view']['focus']();}),_0x4dc9ac['children']['add'](_0x335d72),_0x2b89ab['items']['add'](_0x4dc9ac);}return _0x12f43f['bind']('isEnabled')['to'](_0x2ffe22,'isEnabled'),_0x12f43f['panelView']['children']['add'](_0x2b89ab),_0x12f43f;}['_initializeController'](_0x2269e0){const _0x1cd930=this['editor'],_0x314580=_0x1cd930['config'],_0x239814=_0x1cd930['plugins']['get']('Annotations'),_0x2e0c21=_0x1cd930['plugins']['get']('CommentsRepository'),_0x34977d=_0x1cd930['plugins']['get']('EditorAnnotations'),_0xd79221=_0x1cd930['plugins']['get'](_0x1f5312)['me'],_0x14f014=_0x314580['get']('trackChanges')['SuggestionThreadView'],_0x2053e7=_0x314580['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x32840e,CommentThreadInputView:_0x63eda2}=_0x1cd930['plugins']['get']('CommentsUI');let _0x3be26e,_0x3f46ee;this['_annotationViews']['has'](_0x2269e0['id'])?(_0x3f46ee=this['_annotationViews']['get'](_0x2269e0['id']),_0x3be26e=_0x3f46ee['mainView']):(_0x3be26e=new _0x14f014(_0x1cd930['locale'],_0x2269e0,_0xd79221,{'disableComments':this['_disableComments'],'editorConfig':_0x314580['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x314580['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x314580['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x314580['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x12fe54(_0x314580['get']('locale')),'CommentView':_0x314580['get']('comments')['CommentView'],'CommentsListView':_0x32840e,'CommentThreadInputView':_0x63eda2,'SuggestionView':_0x2053e7}),_0x3be26e['suggestionView']['acceptButton']['on']('execute',()=>{_0x1cd930['editing']['view']['focus']();}),_0x3be26e['suggestionView']['discardButton']['on']('execute',()=>{_0x1cd930['editing']['view']['focus']();}),_0x3f46ee=_0x239814['createAnnotationView'](this['editor']['locale'],_0x3be26e),_0x3f46ee['bind']('isDirty')['to'](_0x3be26e,'isDirty'),_0x3f46ee['bind']('length')['to'](_0x3be26e),_0x3f46ee['bind']('type')['to'](_0x3be26e,'type',_0x302a37=>'suggestion-'+_0x302a37),this['listenTo'](_0x3be26e,'escape',()=>{_0x1cd930['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x2269e0['id'],_0x3f46ee));const _0x473183=_0x2e0c21['createCommentThreadController'](_0x2269e0['commentThread'],_0x3be26e),_0x366f91=new ae(_0x1cd930,_0x2269e0,_0x3be26e,_0x473183),_0x2225b0=_0x2269e0['getAllAdjacentSuggestions']()['filter'](_0x4c86ba=>_0x4c86ba['isInContent']);_0x3be26e['descriptionParts']=_0x1cd930['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x2225b0),this['_suggestionToController']['set'](_0x2269e0,_0x366f91),this['_viewToController']['set'](_0x3be26e,_0x366f91);const _0x3b64eb=_0x239814['createAnnotation']({'view':_0x3f46ee,'target':()=>{const _0x36b9ca=[],_0x35ca98=_0x2269e0['getAllAdjacentSuggestions']()['filter'](_0x2dfdca=>_0x2dfdca['isInContent']);for(const _0xf3804f of _0x35ca98)_0x36b9ca['push'](..._0xf3804f['getMarkers']());return _0x32350c(_0x1cd930['editing'],_0x36b9ca);},'type':()=>'suggestion-'+_0x366f91['view']['type']});_0x2e0c21['_bindAnnotationToEditors'](_0x3be26e,_0x3b64eb),_0x239814['add'](_0x3b64eb),_0x34977d['registerAnnotation'](_0x3b64eb);}['_destroyController'](_0x15e597){const _0x4910f5=this['editor']['plugins']['get']('CommentsRepository'),_0x2f3b78=this['editor']['plugins']['get']('Annotations'),_0x4c2650=this['_suggestionToController']['get'](_0x15e597),_0x491fd8=_0x4c2650['view'],_0x6a6747=_0x2f3b78['getByInnerView'](_0x491fd8);_0x4910f5['_unbindEditors'](_0x491fd8),_0x6a6747&&_0x2f3b78['remove'](_0x6a6747),this['_suggestionToController']['delete'](_0x15e597),this['_viewToController']['delete'](_0x491fd8),_0x4c2650['destroy']();}['_updateController'](_0x371d6e){if(!_0x371d6e['isInContent']||!this['_suggestionToController']['has'](_0x371d6e))return;const _0x58f600=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2ce6c6=this['_suggestionToController']['get'](_0x371d6e),_0x47db36=_0x371d6e['getAllAdjacentSuggestions']();_0x2ce6c6['view']['descriptionParts']=_0x58f600['descriptionFactory']['getDescriptions'](_0x47db36);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x224acd,(_0x6a5ac5,_0xef5120)=>{const _0x5d9e86=this['editor']['plugins']['get'](k),_0xf20510=this['editor']['plugins']['get'](p);if(!_0xf20510['activeMarkers']['length'])return;const {id:_0x20a874}=_0xf20510['_splitMarkerName'](_0xf20510['activeMarkers'][0x0]),_0x2f0993=_0x5d9e86['getSuggestion'](_0x20a874);_0x2f0993&&(this['_suggestionToController']['get'](_0x2f0993)['view']['focus'](),_0xef5120());});}['destroy'](){for(const _0x1cf9ec of this['_suggestionToController']['keys']())this['_destroyController'](_0x1cf9ec);for(const _0xfe0aac of this['_annotationViews']['values']())_0xfe0aac['mainView']['destroy']();super['destroy']();}}function me(_0x32cf9b){return'model'in _0x32cf9b;}class k extends _0x2d1259{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0xc147b7){this['editor']['plugins']['get'](p)['adapter']=_0xc147b7;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4a8611){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4a8611);}['getSuggestions']({skipNotAttached:_0x1caf65=!0x1,toJSON:_0x42aab6=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1caf65,'toJSON':_0x42aab6});}['getSuggestion'](_0x23109c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x23109c);}}const T=['Pagination'];class P extends _0x2d1259{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x32922a=this['editor'];if(_0x32922a['config']['define']('trackChangesData.editorCreator',_0x4c48e9=>{const _0x47f8c9=_0x32922a['model']['document']['getRootNames']()['reduce']((_0x19e686,_0xf96680)=>(_0x19e686[_0xf96680]='',_0x19e686),{});return _0x32922a['constructor']['create'](_0x47f8c9,_0x4c48e9);}),'function'!=typeof _0x32922a['config']['get']('trackChangesData')['editorCreator'])throw new _0x297859('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x58fb14){return N(this['editor'],!0x0,_0x58fb14);}['getDataWithDiscardedSuggestions'](_0x5d5cba){return N(this['editor'],!0x1,_0x5d5cba);}}class D extends _0x2d1259{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x2a2e4c){super(_0x2a2e4c),this['result']='end';}['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 v(_0x199090){return void 0x0!==_0x199090['getRootsAttributes'];}async function N(_0x1c379c,_0x1feeed,_0x36b49f){const _0x56cb58=_0x484221(_0x1c379c,T);_0x56cb58['plugins']['push'](p,D),_0x56cb58['rootsAttributes']=v(_0x1c379c)?_0x1c379c['getRootsAttributes']():void 0x0;const _0xf9a772=document['createDocumentFragment'](),_0x17de86=_0x1c379c['config']['get']('trackChangesData')['editorCreator'],_0x4acedd=await _0x17de86(_0x56cb58,()=>function(_0x1ec2df){const _0x25ad9f=document['createElement']('div');return _0x1ec2df['appendChild'](_0x25ad9f),_0x25ad9f;}(_0xf9a772));!function(_0x469d46,_0x1dfbf5){const _0x2c2773=_0x469d46['model']['document']['getRootNames']()['reduce']((_0x5cb459,_0x177b54)=>(_0x5cb459[_0x177b54]=_0x469d46['data']['get']({'rootName':_0x177b54}),_0x5cb459),{}),_0x18f7ac=_0x469d46['plugins']['get']('Users')['users']['map'](_0xc88090=>({'id':_0xc88090['id'],'name':_0xc88090['name']})),_0x3b89da=_0x469d46['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x4e54e1=_0x469d46['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x75746=_0x1dfbf5['plugins']['get']('Users'),_0x367383=_0x1dfbf5['plugins']['get']('TrackChangesEditing'),_0x1488bf=_0x1dfbf5['plugins']['get']('CommentsRepository');for(const _0x329d93 of _0x1488bf['getCommentThreads']())_0x329d93['remove']();for(const _0x28f265 of _0x18f7ac)_0x75746['getUser'](_0x28f265['id'])||_0x75746['addUser'](_0x28f265);_0x75746['me']||_0x75746['useAnonymousUser']();for(const _0x594e6a of _0x4e54e1)_0x1488bf['addCommentThread'](_0x594e6a);for(const _0x427c53 of _0x3b89da)_0x367383['addSuggestionData'](_0x427c53);_0x1dfbf5['data']['set'](_0x2c2773);}(_0x1c379c,_0x4acedd),_0x4acedd['execute'](_0x1feeed?'acceptAllSuggestions':'discardAllSuggestions');const _0x5e96bc=v(_0x4acedd)?_0x4acedd['getFullData'](_0x36b49f):_0x4acedd['data']['get'](_0x36b49f);return await _0x4acedd['destroy'](),_0x5e96bc;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};