@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240929.0 → 0.0.0-nightly-20240930.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 _0x1530f7,PendingActions as _0x3a8f2,icons as _0x2fd808}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x36031a,ObservableMixin as _0xcb731d,uid as _0x5042b,insertToPriorityArray as _0x388e07,priorities as _0x1bc495,logWarning as _0x4ead58,getEnvKeystrokeText as _0x3b5acf,FocusTracker as _0x159e05,KeystrokeHandler as _0x27e8f6,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2fd6d3,View as _0x210b86,ViewCollection as _0x13f084,FocusCycler as _0x308ce9,ViewModel as _0x22e58a,createDropdown as Qt,SplitButtonView as _0x41b49a,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x38d913}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d313f,hashObject as _0x3d1af3,surroundingMarkersDetector as _0x15d99f,FOCUS_ANNOTATION_KEYSTROKE as _0x347009,AriaDescriptionView as _0x2b28de,setupThreadKeyboardNavigation as _0x236c2c,trimHtml as _0x44c8a5,UserView as _0x49cf17,LateFocusButtonView as _0x2a38fe,getDateTimeFormatter as _0x131ec3,getAllMarkersDomElementsSorted as _0x418d9a,sanitizeEditorConfig as _0x55d533}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3d037d,LiveRange as _0x5018e8,LivePosition as _0x5a10b9}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x3654b8,toWidget as _0x39e06e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x425877,set as _0x5654ce,isEqual as _0x8956aa,unset as _0x4bd1fe,omit as Tt}from'lodash-es';import{Delete as _0xc27c33,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d68a7,ShiftEnter as _0x18aeaf}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x345452,_0x53501c){super(_0x345452),this['_enabledCommands']=_0x53501c,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 _0x31eaf2 of this['editor']['commands']['commands']())_0x31eaf2['affectsData']&&!this['_enabledCommands']['has'](_0x31eaf2)&&_0x31eaf2['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3fb84b of this['editor']['commands']['commands']())_0x3fb84b['affectsData']&&!this['_enabledCommands']['has'](_0x3fb84b)&&_0x3fb84b['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x960c6,_0xddda3c){super(_0x960c6),this['_suggestions']=_0xddda3c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x346d34){const _0x13786b=this['_suggestions']['get'](_0x346d34);if(!_0x13786b)throw new _0x36031a('track-changes-accept-suggestion-not-found',this);const _0x22b0dd=_0x13786b['getRanges']();this['editor']['model']['canEditAt'](_0x22b0dd)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x13786b);}}class R extends ts{['_suggestions'];constructor(_0x4c9b90,_0x5c4ef9){super(_0x4c9b90),this['_suggestions']=_0x5c4ef9,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x38030c){const _0x51e74d=this['_suggestions']['get'](_0x38030c);if(!_0x51e74d)throw new _0x36031a('track-changes-discard-suggestion-not-found',this);const _0x583e6a=_0x51e74d['getRanges']();this['editor']['model']['canEditAt'](_0x583e6a)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x51e74d);}}function ls(_0x3ad7a8,_0x26993a){let _0x1fe41c='';return _0x1fe41c+=_0x3ad7a8['split']('*')['map']((_0x348503,_0x88dd68)=>_0x88dd68%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x348503)+'</span>':nn(_0x348503))['join'](''),_0x26993a&&(_0x1fe41c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x26993a['value']+'\x22\x20title=\x22'+_0x26993a['title']+'\x22></span>'),_0x1fe41c;}function nn(_0x5aa336){const _0x25667c=document['createElement']('span');return _0x25667c['innerText']=_0x5aa336,_0x25667c['innerHTML'];}function ss(_0x51dfb7){return _0x51dfb7['sort']((_0x4d5a06,_0xcc47d3)=>'deletion'==_0x4d5a06['type']&&'deletion'!=_0xcc47d3['type']?-0x1:'deletion'!=_0x4d5a06['type']&&'deletion'==_0xcc47d3['type']?0x1:0x0);}function to(_0x36072f,_0x46ffe5){let _0x98bf9a,_0x2d2a65=0x0;const _0x25ebae=[],_0x2acada=_0x46ffe5['schema'];for(;_0x2d2a65<_0x36072f['length'];){const _0x10ae34=_0x36072f[_0x2d2a65],_0x34e0e0=_0x36072f[_0x2d2a65+0x1];_0x98bf9a||(_0x98bf9a=_0x46ffe5['createPositionBefore'](_0x10ae34)),on(_0x46ffe5,_0x10ae34,_0x34e0e0)||(_0x25ebae['push'](_0x46ffe5['createRange'](_0x98bf9a,_0x2acada['isObject'](_0x10ae34)?_0x46ffe5['createPositionAfter'](_0x10ae34):_0x46ffe5['createPositionAt'](_0x10ae34,'end'))),_0x98bf9a=null),_0x2d2a65++;}return _0x25ebae;}function on(_0x27b63c,_0x2735fc,_0x19171f){if(!_0x19171f)return!0x1;const _0x45de82=_0x27b63c['createPositionAfter'](_0x2735fc),_0x372992=_0x27b63c['createPositionBefore'](_0x19171f);return _0x45de82['isTouching'](_0x372992);}function rs(_0x4473d6,_0x4b8196,_0xf511d7){for(;_0xf511d7['length'];){const _0x3d2cc1=_0xf511d7['splice'](0x0,0x64);_0x4473d6['change'](()=>{for(const _0x4a4fd5 of _0x3d2cc1)_0x4a4fd5['isInContent']&&_0x4b8196['execute'](_0x4a4fd5['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x21e090,_0x36e3ad,_0x17041c){super(_0x21e090),this['_command']=_0x36e3ad,this['_suggestions']=_0x17041c,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x180933=Array['from'](this['_suggestions']['values']())['some'](_0x128287=>_0x128287['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x180933;}['execute'](){const _0x16d22d=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5454f6 of _0x16d22d){const _0xcafcc7=_0x5454f6['getRanges']();if(!this['editor']['model']['canEditAt'](_0xcafcc7))return;}rs(this['editor']['model'],this['_command'],_0x16d22d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xf99259,_0x422772,_0x5657de){super(_0xf99259),this['_command']=_0x422772,this['_suggestions']=_0x5657de,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1dd9d7=this['editor']['model']['document']['selection'],_0x50861e=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x580b92,_0x391da0){const _0x369501=Array['from'](_0x580b92['getRanges']()),_0x318331=new Set();for(const _0x4c72d1 of _0x391da0)if(_0x4c72d1['isInContent']){for(const _0x493355 of _0x369501)for(const _0x4ed978 of _0x4c72d1['getRanges']())(_0x493355['isIntersecting'](_0x4ed978)||_0x580b92['isCollapsed']&&!_0x4c72d1['isMultiRange']&&_0x4c72d1['next']&&_0x4ed978['end']['isTouching'](_0x493355['start']))&&_0x318331['add'](_0x4c72d1);}return _0x318331;}(_0x1dd9d7,_0x50861e),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16fc36=ss(Array['from'](this['_selectedSuggestions']));for(const _0x238c37 of _0x16fc36){const _0x2b8896=_0x238c37['getRanges']();if(!this['editor']['model']['canEditAt'](_0x2b8896))return;}rs(this['editor']['model'],this['_command'],_0x16fc36);}}class u extends/* #__PURE__ -- @preserve */
24
- _0xcb731d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x49f4aa,_0x34c179){super(),this['id']=_0x34c179['id'],this['type']=_0x34c179['type'],this['subType']=_0x34c179['subType']||null,this['author']=_0x34c179['author'],this['creator']=_0x34c179['creator']||_0x34c179['author'],this['isExternal']=Boolean(_0x34c179['attributes']&&_0x34c179['attributes']['@external']),this['data']=null,this['_model']=_0x49f4aa,this['_onAccept']=_0x34c179['onAccept'],this['_onDiscard']=_0x34c179['onDiscard'],this['_onAttributesChange']=_0x34c179['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x34c179['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 _0x30e9e4=this;for(;_0x30e9e4['previous'];)_0x30e9e4=_0x30e9e4['previous'];return _0x30e9e4;}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'](_0x7ece7){this['_markerNames']['add'](_0x7ece7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5c5212=>this['_model']['markers']['get'](_0x5c5212))['filter'](_0x27e56f=>_0x27e56f);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3c8ac2=>{for(const _0xa604da of this['getMarkers']())_0x3c8ac2['removeMarker'](_0xa604da);}),this['_markerNames']['clear']();}['removeMarker'](_0x35d778){this['_model']['change'](_0x22e113=>{_0x22e113['removeMarker'](_0x35d778);}),this['_markerNames']['delete'](_0x35d778);}['addRange'](_0x5839ca){const _0x80c24f='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x80c24f),this['_model']['change'](_0x498214=>{_0x498214['addMarker'](_0x80c24f,{'range':_0x5839ca,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x265328){for(const _0x4e54f8 of this['getRanges']())if(_0x4e54f8['isIntersecting'](_0x265328))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x8d4454=>_0x8d4454['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x128cc4,_0x4cf355)=>[..._0x128cc4,..._0x4cf355['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x582ac9=this['getRanges']();if(0x1!=_0x582ac9['length'])return null;const _0x400db4=_0x582ac9[0x0],_0x4adf7a=_0x400db4['start']['nodeAfter'],_0xdb38=_0x400db4['end']['nodeBefore'];return _0x4adf7a instanceof _0x3d037d?_0x4adf7a!=_0xdb38?null:_0x4adf7a: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 _0x17e0aa=[];let _0xc6ec8b=this['head'];for(;_0xc6ec8b;)_0x17e0aa['push'](_0xc6ec8b),_0xc6ec8b=_0xc6ec8b['next'];return _0x17e0aa;}['setAttribute'](_0x181e94,_0x3f8c84){const _0x6f9ba4=_0x425877(this['attributes']);_0x5654ce(_0x6f9ba4,_0x181e94,_0x3f8c84),_0x8956aa(_0x6f9ba4,this['attributes'])||(this['attributes']=_0x6f9ba4,this['_onAttributesChange'](_0x6f9ba4));}['removeAttribute'](_0x21b4a3){const _0x492ffe=_0x425877(this['attributes']);_0x4bd1fe(_0x492ffe,_0x21b4a3),_0x8956aa(_0x492ffe,this['attributes'])||(this['attributes']=_0x492ffe,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 _0x5042b()['substr'](0x1,0x5);}}function o(_0x4e0dbb,_0x1f1dd8,_0x469f35){const t=_0x4e0dbb['t'];switch(_0x1f1dd8){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',_0x469f35);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x469f35);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x469f35);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x469f35);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x469f35);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',_0x469f35);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x469f35);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',_0x469f35);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x469f35);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x469f35);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x469f35);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x469f35);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x469f35);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x469f35);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x469f35);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x469f35);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x469f35);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x469f35);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x469f35);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x469f35);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x469f35);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x469f35);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x469f35);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'},_0x469f35);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x469f35);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x469f35);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x469f35);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x469f35);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x469f35);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'},_0x469f35);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x469f35);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x469f35);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x469f35);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x469f35);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'},_0x469f35);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x469f35);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'},_0x469f35);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x469f35);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x469f35);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'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x469f35);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'},_0x469f35);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'},_0x469f35);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'},_0x469f35);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x1f1dd8;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x29247e,_0x1eaac3){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x29247e,this['_locale']=_0x1eaac3;}['getDescriptions'](_0x31c91f){const _0x403942=[],_0x3f5d06=new Set(),_0x3f9591=new Set();for(let _0x915749=0x0;_0x915749<_0x31c91f['length'];_0x915749++){const _0x58aeac=_0x31c91f[_0x915749];if(!_0x58aeac['isInContent'])continue;const _0x177454=this['_handleCustomCallbackDescription'](_0x58aeac);if(_0x177454){if(null!=_0x58aeac['subType']){if(_0x3f5d06['has'](_0x58aeac['subType']))continue;_0x3f5d06['add'](_0x58aeac['subType']);}_0x403942['push'](_0x177454);}else{if('attribute'!=_0x58aeac['type'])'insertion'!=_0x58aeac['type']&&'deletion'!=_0x58aeac['type']||this['_handleInsertRemoveSuggestionDescription'](_0x403942,_0x58aeac,_0x31c91f[_0x915749+0x1]);else{const _0x1c0a95=_0x58aeac['data']['key'];if(_0x3f9591['has'](_0x1c0a95))continue;_0x3f9591['add'](_0x58aeac['data']['key']),_0x1c0a95==m?this['_handleRenameSuggestionDescription'](_0x403942,_0x58aeac):this['_handleAttributeSuggestionDescription'](_0x403942,_0x58aeac);}}}return this['_resolveDescriptionItems'](_0x403942);}['registerDescriptionCallback'](_0x19f8ca){this['_customCallbacks']['push'](_0x19f8ca);}['registerElementLabel'](_0x274746,_0x813982,_0x59ac5e=_0x1bc495['normal']){'function'==typeof _0x274746?_0x388e07(this['_itemLabelsCallbacks'],{'matchingCallback':_0x274746,'label':_0x813982,'priority':_0x59ac5e}):this['_itemLabels']['set'](_0x274746,_0x813982);}['registerAttributeLabel'](_0x2ed9cb,_0x37d1c0){this['_attributeLabels']['set'](_0x2ed9cb,_0x37d1c0);}['getItemLabel'](_0x5cb8c4,_0x7a284c=0x1){let _0x26f84a;for(const _0x54a632 of this['_itemLabelsCallbacks'])if(_0x54a632['matchingCallback'](_0x5cb8c4)){_0x26f84a=_0x54a632['label'];break;}return _0x26f84a||(_0x26f84a=this['_itemLabels']['get'](_0x5cb8c4['name'])),_0x26f84a?_0x26f84a(_0x7a284c):0x1!==_0x7a284c?_0x7a284c+'\x20'+_0x5cb8c4['name']+'s':''+_0x5cb8c4['name'];}['_addDescriptionItems'](_0x1bf077,_0x106e90){const _0x20f017=_0x106e90['getFirstRange']()['getWalker'](),_0x1acb3c='insertion'==_0x106e90['type']?'add':'remove';for(const _0x14a645 of _0x20f017){const _0x38bb06=_0x14a645['item'],_0x73c233=_0x1bf077[_0x1bf077['length']-0x1];if(_0x38bb06['is']('$textProxy'))_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),_0x73c233&&'text'==_0x73c233['type']?_0x73c233[_0x1acb3c]+=_0x38bb06['data']:_0x1bf077['push']({'type':'text','add':'add'==_0x1acb3c?_0x38bb06['data']:'','remove':'remove'==_0x1acb3c?_0x38bb06['data']:''});else{if(this['_schema']['isObject'](_0x38bb06)){const _0x59bdb9=_0x38bb06;if(_0x73c233&&_0x73c233['type']['indexOf']('Container')>-0x1&&_0x1bf077['pop'](),'elementEnd'==_0x14a645['type'])continue;_0x73c233&&_0x73c233['type']==_0x1acb3c+'Object'&&_0x73c233['element']['name']==_0x59bdb9['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'Object','element':_0x59bdb9,'quantity':0x1}),_0x20f017['skip'](_0x167cb8=>!('elementEnd'==_0x167cb8['type']&&_0x167cb8['item']==_0x38bb06));}else{if(this['_schema']['checkChild'](_0x38bb06,'$text')||_0x38bb06['is']('element','softBreak')){const _0x1e4e8e=_0x38bb06;if('add'==_0x1acb3c&&'elementStart'==_0x14a645['type']||'remove'==_0x1acb3c&&'elementEnd'==_0x14a645['type'])continue;if(_0x73c233&&-0x1==_0x73c233['type']['indexOf']('Container')){'text'==_0x73c233['type']&&(_0x73c233[_0x1acb3c]+='\x0a');continue;}let _0x3c086c;if(_0x3c086c='add'==_0x1acb3c?_0x1e4e8e['nextSibling']&&!this['_schema']['isObject'](_0x1e4e8e['nextSibling'])?_0x1e4e8e['nextSibling']:null:_0x1e4e8e['previousSibling']&&!this['_schema']['isObject'](_0x1e4e8e['previousSibling'])?_0x1e4e8e['previousSibling']:null,_0x1e4e8e['isEmpty']||_0x3c086c&&_0x3c086c['isEmpty']){const _0x171cf7=_0x3c086c&&_0x3c086c['isEmpty']?_0x3c086c:_0x1e4e8e;_0x73c233&&_0x73c233['type']==_0x1acb3c+'EmptyContainer'&&_0x73c233['element']['name']==_0x171cf7['name']?_0x73c233['quantity']++:_0x1bf077['push']({'type':_0x1acb3c+'EmptyContainer','element':_0x171cf7,'quantity':0x1});}else _0x1bf077['push']({'type':_0x1acb3c+'Container','element':_0x1e4e8e});}}}}}['_resolveDescriptionItems'](_0x5a9f31){const _0x1024f4=this['_locale'],_0x43c8c3=[],_0x4d2d7c=[],_0x4ec4e9=[];for(const _0x4a004d of _0x5a9f31)switch(_0x4a004d['type']){case'text':if(_0x4a004d['add']=_0x4a004d['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4a004d['remove']=_0x4a004d['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4a004d['add']&&''!=_0x4a004d['remove']){_0x43c8c3['push']({'type':'replace','content':o(_0x1024f4,'REPLACE_TEXT',['\x22'+_0x4a004d['remove']+'\x22','\x22'+_0x4a004d['add']+'\x22'])});continue;}if(null!=_0x4a004d['add']['match'](/^ +$/)){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['add']['length']))});continue;}if(null!=_0x4a004d['remove']['match'](/^ +$/)){_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',o(_0x1024f4,'ELEMENT_SPACE',_0x4a004d['remove']['length']))});continue;}if(''!=_0x4a004d['add']){_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0','\x22'+_0x4a004d['add']+'\x22')});continue;}_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0','\x22'+_0x4a004d['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Insert:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Remove:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addContainer':_0x43c8c3['push']({'type':'insertion','content':o(_0x1024f4,'*Split:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'removeContainer':_0x43c8c3['push']({'type':'deletion','content':o(_0x1024f4,'*Merge:*\x20%0',this['getItemLabel'](_0x4a004d['element'],_0x4a004d['quantity']))});continue;case'addFormat':_0x4d2d7c['push'](_0x4a004d['key']);continue;case'removeFormat':_0x4ec4e9['push'](_0x4a004d['key']);continue;default:_0x43c8c3['push'](_0x4a004d);}if(_0x4d2d7c['length']){const _0x4731ba=_0x4d2d7c['map'](_0x5311a1=>this['_attributeLabels']['has'](_0x5311a1)?this['_attributeLabels']['get'](_0x5311a1):_0x5311a1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4731ba)});}if(_0x4ec4e9['length']){const _0x343bda=_0x4ec4e9['map'](_0xfb1c1=>this['_attributeLabels']['has'](_0xfb1c1)?this['_attributeLabels']['get'](_0xfb1c1):_0xfb1c1)['join'](',\x20');_0x43c8c3['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x343bda)});}return _0x43c8c3;}['_handleCustomCallbackDescription'](_0xfdcfdd){for(const _0x1d0b3a of this['_customCallbacks']){const _0x2e0e86=_0x1d0b3a(_0xfdcfdd);if(_0x2e0e86&&'type'in _0x2e0e86)return _0x2e0e86;}}['_handleAttributeSuggestionDescription'](_0x12c804,_0x17a673){const _0x112a57=_0x17a673['data'],_0x3ad6c0=void 0x0===_0x112a57['newValue']?'removeFormat':'addFormat';_0x12c804['push']({'type':_0x3ad6c0,'key':_0x112a57['key']});}['_handleRenameSuggestionDescription'](_0x44a3dc,_0x5f4364){_0x44a3dc['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5f4364['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x3d6304,_0x5e753a,_0x10a7ec){if(this['_addDescriptionItems'](_0x3d6304,_0x5e753a),_0x10a7ec&&_0x10a7ec['getFirstRange']()&&!_0x5e753a['getFirstRange']()['end']['isEqual'](_0x10a7ec['getFirstRange']()['start'])){const _0x3dc84c=_0x3d6304[_0x3d6304['length']-0x1],_0x1f23cb='insertion'==_0x5e753a['type']?'add':'remove';_0x3dc84c&&'text'==_0x3dc84c['type']&&(_0x3dc84c[_0x1f23cb]+='\x0a');}}}class V extends _0x1530f7{['afterInit'](){const _0x40f164=this['editor'],_0x5b9d98=_0x40f164['plugins']['get']('TrackChangesEditing');_0x40f164['commands']['get']('showAIAssistant')&&_0x5b9d98['enableCommand']('showAIAssistant');}}class U extends _0x1530f7{['afterInit'](){const _0x14bf7b=this['editor'],_0x3ab295=_0x14bf7b['locale'];if(!_0x14bf7b['plugins']['has']('AlignmentEditing'))return;const _0x4b18bf=_0x14bf7b['plugins']['get']('TrackChangesEditing');_0x4b18bf['enableDefaultAttributesIntegration']('alignment'),_0x4b18bf['registerBlockAttribute']('alignment'),_0x4b18bf['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ab295,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4992fa=this['editor'],_0x1289c3=_0x4992fa['locale'];_0x4992fa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x24bc1a=>{if('formatBlock'!=_0x24bc1a['type'])return;const {data:_0x4c6cbd}=_0x24bc1a;if(_0x4c6cbd&&'alignment'==_0x4c6cbd['commandName']){const _0x3d6b52=_0x4c6cbd['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1289c3,'*Format:*\x20%0',function(_0xcf921d){switch(_0xcf921d){case'left':return o(_0x1289c3,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1289c3,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1289c3,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1289c3,'FORMAT_JUSTIFY_TEXT');}}(_0x3d6b52))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x1530f7{['afterInit'](){const _0x48621d=this['editor'],_0x53e1c9=_0x48621d['plugins']['get']('TrackChangesEditing'),_0x2ae356=_0x48621d['locale'];for(const _0x35d4b2 of ti){if(!_0x48621d['plugins']['has'](_0x35d4b2))continue;const _0x1df5ea=_0x35d4b2['slice'](0x0,-0x7)['toLowerCase'](),_0x207a32='FORMAT_'+_0x1df5ea['toUpperCase']();_0x53e1c9['enableDefaultAttributesIntegration'](_0x1df5ea),_0x53e1c9['registerInlineAttribute'](_0x1df5ea),_0x53e1c9['descriptionFactory']['registerAttributeLabel'](_0x1df5ea,o(_0x2ae356,_0x207a32));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5666=this['editor'],_0x42bc65=_0x5a5666['locale'],_0x3c3182=_0x5a5666['plugins']['get']('TrackChangesEditing');function _0x11d82b(_0x1f3891,_0x566c49){_0x3c3182['descriptionFactory']['registerDescriptionCallback'](_0x3096d8=>{if('formatInline'!=_0x3096d8['type'])return;const {data:_0x16745b}=_0x3096d8;return _0x16745b&&_0x16745b['commandName']===_0x1f3891?_0x16745b['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x42bc65,'*Format:*\x20%0',_0x566c49)}:{'type':'format','content':o(_0x42bc65,'*Remove\x20format:*\x20%0',_0x566c49)}:void 0x0;});}_0x11d82b('bold',o(_0x42bc65,'FORMAT_BOLD')),_0x11d82b('italic',o(_0x42bc65,'FORMAT_ITALIC')),_0x11d82b('underline',o(_0x42bc65,'FORMAT_UNDERLINE')),_0x11d82b('code',o(_0x42bc65,'FORMAT_CODE')),_0x11d82b('strikethrough',o(_0x42bc65,'FORMAT_STRIKETHROUGH')),_0x11d82b('subscript',o(_0x42bc65,'FORMAT_SUBSCRIPT')),_0x11d82b('superscript',o(_0x42bc65,'FORMAT_SUPERSCRIPT'));}}class F extends _0x1530f7{['afterInit'](){const _0x27e53f=this['editor'],_0x2de02b=_0x27e53f['locale'];if(!_0x27e53f['plugins']['has']('BlockQuoteEditing'))return;const _0x2fd19e=_0x27e53f['plugins']['get']('TrackChangesEditing'),_0x2b7d6d=this['editor']['commands']['get']('blockQuote');_0x2fd19e['enableCommand']('blockQuote',(_0x283649,_0xf6f2c5={})=>{const _0x2e01bb=this['editor']['model']['document']['selection'],_0x1774a1=_0xf6f2c5&&void 0x0!==_0xf6f2c5['forceValue']?_0xf6f2c5['forceValue']:!_0x2b7d6d['value'];let _0x5c5842=[];if(_0x1774a1){const _0x586f77=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x4356b9=>oo(_0x4356b9)||function(_0x46a19a,_0x3965aa){const _0x438ded=_0x3965aa['checkChild'](_0x46a19a['parent'],'blockQuote'),_0x31b4b0=_0x3965aa['checkChild'](['$root','blockQuote'],_0x46a19a);return _0x438ded&&_0x31b4b0;}(_0x4356b9,this['editor']['model']['schema']));_0x5c5842=to(_0x586f77,_0x27e53f['model']);}else{const _0x2f1fb8=Array['from'](_0x2e01bb['getSelectedBlocks']())['filter'](_0x55fcfb=>oo(_0x55fcfb));_0x5c5842=to(_0x2f1fb8,_0x27e53f['model']);}_0x27e53f['model']['change'](()=>{for(const _0x25994b of _0x5c5842)_0x2fd19e['markBlockFormat'](_0x25994b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1774a1}]});});}),_0x2fd19e['descriptionFactory']['registerDescriptionCallback'](_0x86115=>{const {data:_0x48c621}=_0x86115;if(_0x48c621&&'blockQuote'==_0x48c621['commandName']){const _0x23b4dd=o(_0x2de02b,'ELEMENT_BLOCK_QUOTE');return _0x48c621['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2de02b,'*Set\x20format:*\x20%0',_0x23b4dd)}:{'type':'format','content':o(_0x2de02b,'*Remove\x20format:*\x20%0',_0x23b4dd)};}});}}function oo(_0xf00316){return'blockQuote'==_0xf00316['parent']['name'];}class L extends _0x1530f7{['afterInit'](){const _0x283131=this['editor'];_0x283131['plugins']['has']('CaseChange')&&(_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x283131['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x1530f7{['afterInit'](){const _0x58a232=this['editor'];_0x58a232['commands']['get']('ckbox')&&_0x58a232['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x1530f7{['afterInit'](){const _0x2e08ef=this['editor'];if(!_0x2e08ef['plugins']['has']('CodeBlock'))return;const _0x2e45cf=_0x2e08ef['plugins']['get']('TrackChangesEditing'),_0x29c5ff=_0x2e08ef['locale'],_0x33e52a=_0x2e08ef['config']['get']('codeBlock')['languages'],_0x5d9c13=_0x2e08ef['commands']['get']('codeBlock');_0x2e45cf['enableCommand']('indentCodeBlock'),_0x2e45cf['enableCommand']('outdentCodeBlock'),_0x2e45cf['enableCommand']('codeBlock',(_0x2e653d,_0x4f2a99={})=>{const _0x322ed1=_0x2e08ef['model'],_0x2035f0=_0x2e08ef['model']['document']['selection'],_0x33c37b=_0x4f2a99&&void 0x0!==_0x4f2a99['forceValue']?_0x4f2a99['forceValue']:!_0x5d9c13['value'];let _0x16cab3;_0x4f2a99['language']||(_0x4f2a99['language']=_0x33e52a[0x0]['language']),_0x16cab3=_0x33c37b?Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x4da1ce=>eo(_0x4da1ce)||function(_0x5014ba,_0x2f2b6b){if(_0x5014ba['is']('rootElement')||_0x2f2b6b['isLimit'](_0x5014ba))return!0x1;return _0x2f2b6b['checkChild'](_0x5014ba['parent'],'codeBlock');}(_0x4da1ce,_0x322ed1['schema'])):Array['from'](_0x2035f0['getSelectedBlocks']())['filter'](_0x21faf1=>eo(_0x21faf1));const _0x2c4b57=to(_0x16cab3,_0x322ed1);_0x322ed1['change'](()=>{for(const _0x23bd2a of _0x2c4b57)_0x2e45cf['markBlockFormat'](_0x23bd2a,{'commandName':'codeBlock','commandParams':[{..._0x4f2a99,'forceValue':_0x33c37b}],'formatGroupId':'blockName'});});}),(_0x2e45cf['descriptionFactory']['registerElementLabel']('codeBlock',_0x3e45b6=>o(_0x29c5ff,'ELEMENT_CODE_BLOCK',_0x3e45b6)),_0x2e45cf['descriptionFactory']['registerDescriptionCallback'](_0xd33544=>{if('formatBlock'!=_0xd33544['type'])return;const _0x4bde52=_0x29c5ff['t'],{data:_0x65237a}=_0xd33544;if(!_0x65237a||'codeBlock'!=_0x65237a['commandName'])return;const _0x151ead=_0x65237a['commandParams'][0x0]['language'],_0x3083ce=_0x4bde52(_0x33e52a['find'](_0x1a435f=>_0x1a435f['language']===_0x151ead)['label'])['toLowerCase']();return _0x65237a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x29c5ff,'*Set\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3083ce+')')}:{'type':'format','content':o(_0x29c5ff,'*Remove\x20format:*\x20%0',o(_0x29c5ff,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x74af1f){return'codeBlock'==_0x74af1f['name'];}class q extends _0x1530f7{['afterInit'](){const _0x51e677=this['editor'];if(!_0x51e677['plugins']['has']('CommentsEditing'))return;_0x51e677['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x23a4db,_0x21d680,_0x331eef){const _0x231c58=[];for(const _0x152180 of _0x21d680['getItems']())_0x152180['hasAttribute'](_0x23a4db)&&_0x231c58['push'](_0x331eef['createRangeOn'](_0x152180));return _0x231c58;}function _e(_0x517083,_0x4471f4,{showActiveMarker:_0x18c715=!0x0}={}){const _0x35524c=_0x517083['plugins']['get']('TrackChangesEditing');return(_0x3de231,_0x465ef6,_0x45cd36)=>{if(!_0x45cd36['consumable']['test'](_0x465ef6['markerRange'],_0x3de231['name']))return;const _0x34d96e=_0x465ef6['markerRange']['getWalker'](),_0x267dd5=_0x465ef6['markerRange']['start'],_0xb0081b=_0x517083['model']['schema'];let _0x51fb1b=null,_0x23a934=null,_0x42283a=!0x1,_0x4ef7a0=!0x1;for(const _0x163427 of _0x34d96e){const _0x1f3095=_0x163427['item'];_0x42283a=_0x42283a||_0xb0081b['isContent'](_0x1f3095);const _0xc242e0=_0x45cd36['mapper']['toViewElement'](_0x1f3095);if(_0xc242e0&&_0xc242e0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x163427['type']&&(_0xb0081b['isBlock'](_0x1f3095)&&!_0xb0081b['isLimit'](_0x1f3095)&&(_0x1f3095['nextSibling']||_0x267dd5['isAtEnd']?_0x51fb1b&&_0x51fb1b['parent']==_0x1f3095||(_0x51fb1b=_0x1f3095,_0x4ed45d(_0x163427['previousPosition']),_0x4ef7a0=!0x0):_0x23a934=_0x23a934||_0x163427['previousPosition']));}function _0x4ed45d(_0x32a964){const {authorId:_0xcdc292}=_0x35524c['_splitMarkerName'](_0x465ef6['markerName']),_0x59c631=_0x45cd36['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4471f4,'data-author-id':_0xcdc292}),_0x2e8096=_0x45cd36['mapper']['toViewPosition'](_0x32a964);_0x18c715&&_0x35524c['activeMarkers']['includes'](_0x465ef6['markerName'])&&_0x45cd36['writer']['addClass']('ck-suggestion-marker--active',_0x59c631),_0x45cd36['writer']['insert'](_0x2e8096,_0x59c631),_0x45cd36['mapper']['bindElementToMarker'](_0x59c631,_0x465ef6['markerName']);}_0x42283a||_0x4ef7a0||!_0x23a934||_0x4ed45d(_0x23a934);};}class z extends _0x1530f7{static get['requires'](){return[_0xc27c33];}['init'](){const _0xdd6e0c=this['editor'],_0x2ac4f8=_0xdd6e0c['plugins']['get']('TrackChangesEditing');_0x2ac4f8['enableCommand']('delete');const _0x1e8e5a=_0xdd6e0c['commands']['get']('deleteForward');_0x2ac4f8['enableCommand']('deleteForward',(_0x75919d,_0x5136a4={})=>{const _0x2a0870=_0xdd6e0c['model']['createSelection'](_0xdd6e0c['model']['document']['selection']);_0x2a0870['isCollapsed']&&_0xdd6e0c['model']['modifySelection'](_0x2a0870,{'direction':'forward','unit':_0x5136a4['unit']});const _0x7dca81=_0x2a0870['getFirstRange'](),_0x1e47b0=_0x5018e8['fromRange'](_0x7dca81);let _0x561bcb;_0x75919d(_0x5136a4),_0x561bcb='$graveyard'==_0x1e47b0['root']['rootName']?_0xdd6e0c['model']['createRange'](_0x7dca81['start']):_0xdd6e0c['model']['createRange'](_0x1e47b0['start'],_0x1e47b0['end']),_0x1e47b0['detach'](),_0xdd6e0c['model']['enqueueChange'](_0x1e8e5a['buffer']['batch'],_0x72903e=>{_0x1e8e5a['buffer']['lock'](),_0x72903e['setSelection'](_0x72903e['createRange'](_0x561bcb['end'])),_0x1e8e5a['buffer']['unlock']();});}),_0xdd6e0c['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xdd6e0c,'merge'),{'priority':'high'}),_0xdd6e0c['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0xe09993,_0x94b34c,_0x85bc3e)=>{_0x85bc3e['options']['showSuggestionHighlights']&&_e(_0xdd6e0c,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0xe09993,_0x94b34c,_0x85bc3e);},{'priority':'high'}),_0xdd6e0c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4bb8d2,_0x204397,_0x5e684f)=>{const _0x2979f1=_0x5e684f['mapper']['markerNameToElements'](_0x204397['markerName']);if(_0x2979f1){for(const _0x7ba2b3 of _0x2979f1)_0x7ba2b3['is']('uiElement')&&(_0x5e684f['mapper']['unbindElementFromMarkerName'](_0x7ba2b3,_0x204397['markerName']),_0x5e684f['writer']['remove'](_0x7ba2b3));}},{'priority':'high'});}}class K extends _0x1530f7{['afterInit'](){const _0x17581b=this['editor'];if(!_0x17581b['plugins']['has']('ListEditing'))return;const _0x4f806a=_0x17581b['locale'],_0x45ab87=_0x17581b['plugins']['get']('TrackChangesEditing'),_0x2fb0a5=_0x17581b['plugins']['has']('TodoListEditing'),_0x385db8=!!_0x17581b['config']['get']('list.multiBlock');function _0x22a54d(_0x1a8542){return{'type':'format','content':''+o(_0x4f806a,'*Set\x20format:*\x20%0',_0x1a8542)};}function _0x54ea83(_0x2303ae){return{'type':'format','content':''+o(_0x4f806a,'*Remove\x20format:*\x20%0',_0x2303ae)};}_0x45ab87['enableDefaultAttributesIntegration']('numberedList'),_0x45ab87['enableDefaultAttributesIntegration']('bulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('customNumberedList'),_0x45ab87['enableDefaultAttributesIntegration']('customBulletedList'),_0x45ab87['enableDefaultAttributesIntegration']('indentList'),_0x45ab87['enableDefaultAttributesIntegration']('outdentList'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x45ab87['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x45ab87['registerBlockAttribute']('listItemId'),_0x45ab87['registerBlockAttribute']('listType'),_0x45ab87['registerBlockAttribute']('listIndent'),_0x385db8&&(_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x45ab87['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2fb0a5&&(_0x45ab87['enableDefaultAttributesIntegration']('todoList'),_0x45ab87['enableDefaultAttributesIntegration']('checkTodoList'),_0x45ab87['registerBlockAttribute']('todoListChecked'),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x35b02a=>{const {data:_0x12cdf4}=_0x35b02a;if(_0x12cdf4&&'todoListChecked'==_0x12cdf4['key'])return{'type':'format','content':_0x12cdf4['newValue']?o(_0x4f806a,'*Check\x20item*'):o(_0x4f806a,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x31129b=>{if(_0x31129b['batch']['isUndo'])return!0x1;let _0x163641=!0x1;const _0x267d7a=_0x45ab87['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x371070=>'todoListChecked'===_0x45ab87['_getAttributeKey'](_0x371070));for(const _0xa852b0 of _0x267d7a){'todo'!=_0xa852b0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x45ab87['_findSuggestions'](_0xa852b0['getFirstRange'](),'attribute')['find'](_0x1831d0=>'listType'===_0x45ab87['_getAttributeKey'](_0x1831d0['suggestion']))||(_0x31129b['removeMarker'](_0xa852b0['getFirstMarker']()),_0x163641=!0x0));}return _0x163641;})),_0x45ab87['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4f806a,'FORMAT_INDENT'));const _0x43be6c={'type':'format','content':''};_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x23533a=>{const {data:_0x1a740c}=_0x23533a;if(!_0x1a740c||'listType'!=_0x1a740c['key'])return;let _0x408316=_0x23533a['head'];for(;_0x408316;){if(_0x408316['data']&&(('listStyle'==_0x408316['data']['key']||'listMarkerStyle'==_0x408316['data']['key'])&&(_0x408316['data']['newValue']&&'default'!=_0x408316['data']['newValue']||'default'!=_0x408316['data']['oldValue']&&!_0x1a740c['newValue'])||!_0x385db8&&_0x408316['data']['key']==m))return _0x43be6c;_0x408316=_0x408316['next'];}if(null==_0x1a740c['newValue'])switch(_0x1a740c['oldValue']){case'bulleted':return _0x54ea83(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x54ea83(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x54ea83(o(_0x4f806a,'ELEMENT_TODO_LIST'));}switch(_0x1a740c['newValue']){case'bulleted':return _0x22a54d(o(_0x4f806a,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x22a54d(o(_0x4f806a,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x22a54d(o(_0x4f806a,'ELEMENT_TODO_LIST'));}}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x5436d9=>{const {data:_0x386aa0}=_0x5436d9;if(_0x386aa0&&'listIndent'==_0x386aa0['key'])return null==_0x386aa0['newValue']||null==_0x386aa0['oldValue']&&0x0==_0x386aa0['newValue']?_0x43be6c:void 0x0;}),_0x45ab87['descriptionFactory']['registerDescriptionCallback'](_0x2c0c80=>{if('attribute'!=_0x2c0c80['type'])return;const {data:_0x27f994}=_0x2c0c80;if(!_0x27f994||'listItemId'!=_0x27f994['key'])return;const _0x584acf=Ee(_0x2c0c80);return'newValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Merge:*\x20list\x20item')}:'oldValue'==_0x584acf?{'type':'format','content':o(_0x4f806a,'*Split:*\x20list\x20item')}:_0x43be6c;}),_0x17581b['model']['document']['registerPostFixer'](_0xc712ea=>this['listItemIdFixer'](_0xc712ea)),_0x17581b['model']['document']['registerPostFixer'](_0xdcc79c=>this['noTrackChangesFixer'](_0xdcc79c)),_0x17581b['model']['document']['on']('change:data',(_0x455ceb,_0x2531a8)=>{if(_0x2531a8['isUndo']||!_0x2531a8['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x205d37){if(_0x205d37['batch']['isUndo']||!_0x205d37['batch']['isLocal'])return!0x1;let _0x33f71c=!0x1;const _0x403844=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x34bfda=>_0x34bfda['data']&&'listItemId'==_0x34bfda['data']['key'])['filter'](_0x3ab3e2=>_0x3ab3e2['data']['newValue']&&_0x3ab3e2['data']['oldValue']);for(const _0x4f5aaf of _0x403844)Ee(_0x4f5aaf)||(_0x205d37['removeMarker'](_0x4f5aaf['getFirstMarker']()),_0x33f71c=!0x0);return _0x33f71c;}['noTrackChangesFixer'](_0x295959){if(_0x295959['batch']['isUndo']||!_0x295959['batch']['isLocal'])return!0x1;const _0x239dbd=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x239dbd['trackChangesCommand']['value'])return!0x1;let _0x3f2dcc=!0x1;const _0x20045d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30a061=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x13a06b=>'attribute'==_0x13a06b['type'])['filter'](_0x37b7ee=>_0x20045d['includes'](_0x37b7ee['attributeKey']));if(0x0==_0x30a061['length'])return _0x3f2dcc;for(const _0x4f381b of _0x30a061){const _0x472aee=_0x239dbd['_findSuggestions'](_0x4f381b['range'],'attribute')['filter'](_0x38b585=>!_0x38b585['meta']['isNextTo'])['map'](_0x2ca1c6=>_0x2ca1c6['suggestion'])['filter'](_0xc5621=>{const _0x2241ad=_0x239dbd['_getAttributeKey'](_0xc5621);return _0x20045d['includes'](_0x2241ad);});if(_0x472aee['length']){for(const _0x4b5db3 of _0x472aee)_0x295959['removeMarker'](_0x4b5db3['getFirstMarker']());_0x3f2dcc=!0x0;}}return _0x3f2dcc;}['assureChains'](){const _0x1eb795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x54f5f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x41fe7c;const _0x5a2ff3=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x115b46=>{if(_0x115b46['data']['oldRange']||!_0x115b46['data']['newRange'])return null;if(!_0x115b46['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x4b4dcc}=_0x1eb795['_splitMarkerName'](_0x115b46['name']);if(!_0x1eb795['hasSuggestion'](_0x4b4dcc))return null;const _0x8dce2d=_0x1eb795['getSuggestion'](_0x4b4dcc);return _0x54f5f9['includes'](_0x8dce2d['data']['key']);})['map'](_0x28715d=>{const {id:_0x181f7c}=_0x1eb795['_splitMarkerName'](_0x28715d['name']),_0x3337c8=_0x1eb795['getSuggestion'](_0x181f7c);return _0x41fe7c=_0x3337c8['attributes']['groupId'],_0x3337c8['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x5a2ff3['size'])return;const _0x422f62=_0x1eb795['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x43ae9d=>'attribute'==_0x43ae9d['type']&&_0x43ae9d['data']&&_0x54f5f9['includes'](_0x43ae9d['data']['key'])&&_0x43ae9d['attributes']['groupId']!=_0x41fe7c)['map'](_0x3f2855=>({'listItem':_0x3f2855['getFirstRange']()['start']['nodeAfter'],'groupId':_0x3f2855['attributes']['groupId']})),_0x111c21=new Set();for(const {groupId:_0x4a2289,listItem:_0x293dc0}of _0x422f62)_0x5a2ff3['has'](_0x293dc0)&&_0x111c21['add'](_0x4a2289);for(const _0x2ff00d of _0x1eb795['getSuggestions']())_0x111c21['has'](_0x2ff00d['attributes']['groupId'])&&_0x2ff00d['setAttribute']('groupId',_0x41fe7c);}['_supportLegacySuggestions'](){const _0x26d254=this['editor'],_0x2fa11b=_0x26d254['locale'],_0x1c2299=_0x26d254['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1c2299['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x21ad32,_0x410a96){const _0x37abd8=[];for(let _0x10ab84 of _0x21ad32)_0x10ab84['start']['nodeAfter']===_0x10ab84['end']['parent']&&(_0x10ab84=_0x26d254['model']['createRange'](_0x26d254['model']['createPositionAt'](_0x10ab84['start']['nodeAfter'],0x0))),_0x37abd8['push'](_0x10ab84);_0x26d254['model']['change'](_0x178247=>{const _0x1844cc=_0x26d254['model']['document']['selection'],_0x2c63c7=Array['from'](_0x1844cc['getRanges']())['map'](_0x2a6878=>_0x5018e8['fromRange'](_0x2a6878));_0x178247['setSelection'](_0x37abd8),_0x26d254['commands']['get'](_0x410a96['commandName'])['refresh'](),_0x410a96['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x26d254['execute'](_0x410a96['commandName'],..._0x410a96['commandParams']),_0x178247['setSelection'](_0x2c63c7);for(const _0x138f86 of _0x2c63c7)_0x138f86['detach']();});}),_0x1c2299['descriptionFactory']['registerElementLabel'](function(_0x5dbec0){const _0x20d18f=!_0x26d254['model']['schema']['isObject'](_0x5dbec0),_0x303c1c=_0x5dbec0['previousSibling'],_0x25a455=_0x5dbec0['nextSibling'],_0x9de7fc=_0x5dbec0['getAttribute']('listItemId'),_0x994f85=!_0x303c1c||_0x303c1c['getAttribute']('listItemId')!==_0x9de7fc,_0xbaf2a3=!_0x25a455||_0x25a455['getAttribute']('listItemId')!==_0x9de7fc;return _0x20d18f&&Boolean(_0x9de7fc)&&_0x994f85&&_0xbaf2a3;},_0x1f3a44=>o(_0x2fa11b,'ELEMENT_LIST_ITEM',_0x1f3a44));}['_registerLegacyDescription'](){const _0xa628ea=this['editor'],_0x49cea7=_0xa628ea['locale'];function _0x5bd76c(_0x3b2cb0){const _0x26624d=_0xa628ea['commands']['get']('bulletedList')['value'],_0x473f02=_0xa628ea['commands']['get']('numberedList')['value'];return'numberedList'===_0x3b2cb0?_0x26624d:_0x473f02;}_0xa628ea['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0xbb345d){if('formatBlock'!=_0xbb345d['type'])return;const {data:_0x330082}=_0xbb345d;if(!_0x330082)return;let _0x509e27,_0x144026,_0x4e591f,_0x2ffad5;switch(_0x330082['commandName']){case'bulletedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4e591f=_0x330082['commandParams'][0x0]['forceValue'],_0x2ffad5=_0x5bd76c(_0x330082['commandName']),_0x509e27=_0x4e591f?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2ffad5&&_0xa628ea['config']['get']('list.multiBlock')||(_0x509e27='*Change\x20to:*\x20%0'),_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x509e27='*Indent:*\x20%0',_0x144026={'type':'format','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x509e27=function(_0x52ce39){const _0x3cbada=_0x52ce39['getFirstRange']();let _0x50188d=_0x3cbada['start']['nodeAfter'];for(;_0x50188d&&_0x3cbada['containsItem'](_0x50188d);){if(_0x50188d['getAttribute']('listIndent')>0x0)return!0x1;_0x50188d=_0x50188d['nextSibling'];}return!0x0;}(_0xbb345d)?o(_0x49cea7,'*Format:*\x20remove\x20from\x20%0',o(_0x49cea7,function(_0x50e575){return'ELEMENT_'+_0x50e575['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0xbb345d))):o(_0x49cea7,'*Outdent:*\x20%0',o(_0x49cea7,'ELEMENT_LIST_ITEM')),_0x144026={'type':'format','content':_0x509e27};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x330082['multipleBlocks']&&(_0x509e27='*Merge:*\x20%0',_0x144026={'type':'deletion','content':o(_0x49cea7,_0x509e27,o(_0x49cea7,'ELEMENT_LIST_ITEM'))});}return _0x144026;});}}function Ee(_0x334f12){let _0x40f396=_0x334f12['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x40f396;){const _0x343ca8=_0x40f396['getAttribute']('listItemId');if(!_0x343ca8)return!0x1;if(_0x343ca8==_0x334f12['data']['newValue'])return'newValue';if(_0x343ca8==_0x334f12['data']['oldValue'])return'oldValue';_0x40f396=_0x40f396['previousSibling'];}return!0x1;}class pe extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1ce83d=this['editor']['config']['get']('list.properties'),_0x5a3520=this['editor']['plugins']['get']('TrackChangesEditing');_0x1ce83d['styles']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStyle'),_0x5a3520['registerBlockAttribute']('listStyle')),_0x1ce83d['reversed']&&(_0x5a3520['enableDefaultAttributesIntegration']('listReversed'),_0x5a3520['registerBlockAttribute']('listReversed')),_0x1ce83d['startIndex']&&(_0x5a3520['enableDefaultAttributesIntegration']('listStart'),_0x5a3520['registerBlockAttribute']('listStart'));const _0x442ff7={'type':'format','content':''};_0x5a3520['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x1712cd=this['editor']['locale'];_0x5a3520['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x1712cd,'FORMAT_LIST_REVERSED')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x196900=>{const {data:_0x3eca48}=_0x196900;if(_0x3eca48&&'listReversed'==_0x3eca48['key'])return null==_0x3eca48['newValue']||0x0==_0x3eca48['newValue']&&null==_0x3eca48['oldValue']?_0x442ff7:void 0x0;}),_0x5a3520['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x1712cd,'FORMAT_LIST_START')),_0x5a3520['descriptionFactory']['registerDescriptionCallback'](_0x53c2a4=>{const {data:_0x3b342c}=_0x53c2a4;if(_0x3b342c&&'listStart'==_0x3b342c['key'])return null==_0x3b342c['newValue']||0x1==_0x3b342c['newValue']&&null==_0x3b342c['oldValue']?_0x442ff7:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5afb70=>{if(_0x5afb70['batch']['isUndo'])return!0x1;let _0x5e7cd3=!0x1;const _0x1bec2a=_0x5a3520['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x395063=>{const _0x28ca4b=_0x5a3520['_getAttributeKey'](_0x395063);return'listStart'==_0x28ca4b||'listReversed'==_0x28ca4b;});for(const _0x737d38 of _0x1bec2a){const _0x2415f0=_0x737d38['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x2415f0||'customNumbered'==_0x2415f0)continue;_0x5a3520['_findSuggestions'](_0x737d38['getFirstRange'](),'attribute')['find'](_0x7a7bc0=>'listType'==_0x5a3520['_getAttributeKey'](_0x7a7bc0['suggestion']))||(_0x5afb70['removeMarker'](_0x737d38['getFirstMarker']()),_0x5e7cd3=!0x0);}return _0x5e7cd3;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x210e59){const _0x3eaf2f=this['editor']['locale'],{data:_0x16e3e0}=_0x210e59,_0x42cb1a={'type':'format','content':''};if(!_0x16e3e0||'listStyle'!=_0x16e3e0['key'])return;if(!_0x16e3e0['oldValue'])return'default'==_0x16e3e0['newValue']?_0x42cb1a:{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};if(!_0x16e3e0['newValue']){if('default'==_0x16e3e0['oldValue'])return _0x42cb1a;let _0x10cb9a=_0x210e59['head'];for(;_0x10cb9a;){if(_0x10cb9a['data']&&'listType'==_0x10cb9a['data']['key']&&_0x10cb9a['data']['newValue'])return _0x42cb1a;_0x10cb9a=_0x10cb9a['next'];}return{'type':'format','content':''+o(_0x3eaf2f,'*Remove\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['oldValue'])))};}if('default'!=_0x16e3e0['newValue'])return{'type':'format','content':''+o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,this['_getTranslationKeyForListStyle'](_0x16e3e0['newValue'])))};let _0x382603=_0x210e59['head'];for(;_0x382603;){if(_0x382603['data']&&'listType'==_0x382603['data']['key']&&_0x382603['data']['newValue']&&_0x382603['data']['oldValue'])return _0x42cb1a;_0x382603=_0x382603['next'];}return{'type':'format','content':o(_0x3eaf2f,'*Set\x20format:*\x20%0',o(_0x3eaf2f,'ELEMENT_'+_0x210e59['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5b3526=this['editor'],_0x2f2861=_0x5b3526['locale'];_0x5b3526['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1e5ea7=>{if('formatBlock'!=_0x1e5ea7['type'])return;const {data:_0x422cdc}=_0x1e5ea7;if(!_0x422cdc)return;let _0x274439,_0xf337ca;switch(_0x422cdc['commandName']){case'listStyle':_0x274439='*Change\x20to:*\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,o(_0x2f2861,this['_getTranslationKeyForListStyle'](_0x422cdc['commandParams'][0x0]['type'])))};break;case'listReversed':_0x274439=_0x422cdc['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439)};break;case'listStart':_0x274439='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xf337ca={'type':'format','content':o(_0x2f2861,_0x274439,_0x422cdc['commandParams'][0x0]['startIndex'])};}return _0xf337ca;});}['_getTranslationKeyForListStyle'](_0x28a963){return'ELEMENT_'+function(_0x355995){if(ye['includes'](_0x355995))return'bulleted';if(Se['includes'](_0x355995))return'numbered';return null;}(_0x28a963)['toUpperCase']()+'_LIST_'+_0x28a963['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x1530f7{static get['requires'](){return[_0x4d68a7];}['init'](){const _0x5e6611=this['editor'],_0xe0c9b3=_0x5e6611['plugins']['get']('TrackChangesEditing'),_0x52ae4f=_0x5e6611['commands']['get']('enter');_0xe0c9b3['enableCommand']('enter',()=>{_0x5e6611['model']['change'](_0xe6435f=>{const _0x4b4282=_0x5e6611['model']['document']['selection'],_0x19013b=_0x4b4282['getFirstPosition'](),_0x444fe2=_0x5018e8['fromRange'](_0x4b4282['getFirstRange']());if(_0x52ae4f['enterBlock'](_0xe6435f)){const _0x30d3cc=_0x5e6611['model']['createPositionAt'](_0x19013b['parent']['nextSibling'],0x0),_0x3335e5=_0xe6435f['createRange'](_0x19013b,_0x30d3cc);_0xe0c9b3['markInsertion'](_0x3335e5);}else _0xe6435f['setSelection'](_0xe6435f['createRange'](_0x444fe2['end']));_0x444fe2['detach'](),_0x52ae4f['fire']('afterExecute',{'writer':_0xe6435f});});}),_0x5e6611['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5e6611,'split'),{'priority':'high'}),_0x5e6611['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x448318,_0x3ccfa8,_0x3d0da0)=>{const _0x2e93ab=_0x3d0da0['mapper']['markerNameToElements'](_0x3ccfa8['markerName']);if(_0x2e93ab){for(const _0x1de56f of _0x2e93ab)_0x1de56f['hasClass']('ck-suggestion-marker-split')&&(_0x3d0da0['mapper']['unbindElementFromMarkerName'](_0x1de56f,_0x3ccfa8['markerName']),_0x3d0da0['writer']['remove'](_0x1de56f));}},{'priority':'high'}),_0x5e6611['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1b900f,_0x5cbbe8,_0x3bec7a)=>{_0x3bec7a['options']['showSuggestionHighlights']&&_e(_0x5e6611,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1b900f,_0x5cbbe8,_0x3bec7a);},{'priority':'high'});}}class X extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x19eeca=this['editor']['plugins']['get']('TrackChangesEditing');_0x19eeca['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x19eeca['enableCommand']('findNext'),_0x19eeca['enableCommand']('findPrevious'),_0x19eeca['enableCommand']('replace'),_0x19eeca['enableCommand']('replaceAll');}['handleFindCommand'](_0x95c667,_0x2d4015,_0x18d96f={}){const _0x37ff60=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x95c667(_0xc0dc7b=>{let _0xfd8b9f=('string'==typeof _0x2d4015?_0x37ff60['findByTextCallback'](_0x2d4015,_0x18d96f):_0x2d4015)(_0xc0dc7b);Array['isArray'](_0xfd8b9f)&&(_0xfd8b9f={'results':_0xfd8b9f,'searchText':'string'==typeof _0x2d4015?_0x2d4015:''});const _0x24b6c2=_0xfd8b9f['results']['filter'](_0x56668a=>!0x1===this['_isInDeletionRange'](_0x56668a,_0xc0dc7b['item']));return{..._0xfd8b9f,'results':_0x24b6c2};},_0x18d96f);}['_isInDeletionRange'](_0x28a26d,_0x489b5b){const _0x339604=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['start']),this['editor']['model']['createPositionAt'](_0x489b5b,_0x28a26d['end']));for(const _0x335b3a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x339604['getIntersection'](_0x335b3a['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 _0x1530f7{['afterInit'](){const _0x17cbfd=this['editor']['locale'],_0x93376a=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x47e86d,commandName:_0x3500ab}of ro)this['editor']['plugins']['has'](_0x47e86d)&&(_0x93376a['enableDefaultAttributesIntegration'](_0x3500ab),_0x93376a['registerInlineAttribute'](_0x3500ab));_0x93376a['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x17cbfd,'FORMAT_FONT_SIZE')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x17cbfd,'FORMAT_FONT_FAMILY')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x17cbfd,'FORMAT_FONT_COLOR')),_0x93376a['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x17cbfd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x512a44=this['editor'],_0x462e99=_0x512a44['locale'];_0x512a44['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x36167e=>{const _0x266016=_0x462e99['t'];if('formatInline'!=_0x36167e['type'])return;const {data:_0x22f85b}=_0x36167e;if(null!=_0x22f85b){if('fontSize'==_0x22f85b['commandName']){const _0x17b5e3=_0x22f85b['commandParams'][0x0]['value'];if(_0x17b5e3){const _0x50bc92=_0x266016(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1505e1=>_0x1505e1['model']==_0x17b5e3)['title'])['toLowerCase']();return{'type':'format','content':o(_0x462e99,'*Set\x20font\x20size:*\x20%0',_0x50bc92)};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x22f85b['commandName']){const _0x39f057=_0x22f85b['commandParams'][0x0]['value'];return _0x39f057?{'type':'format','content':o(_0x462e99,'*Set\x20font\x20family:*\x20%0',_0x39f057)}:{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20family*')};}if('fontColor'==_0x22f85b['commandName']){const _0x4035bc=_0x22f85b['commandParams'][0x0]['value'];if(_0x4035bc){const _0x20c159=_0x2fd6d3(this['editor']['config']['get']('fontColor.colors'))['find'](_0x59d765=>_0x59d765['model']==_0x4035bc);let _0x22abfa=_0x4035bc,_0x4f811d='';return _0x20c159&&(_0x22abfa=_0x20c159['label'],_0x4f811d=_0x266016(_0x22abfa)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20color:*\x20%0',_0x4f811d)['trim'](),'color':{'value':_0x4035bc,'title':_0x4f811d||_0x22abfa}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x22f85b['commandName']){const _0x44ab7c=_0x22f85b['commandParams'][0x0]['value'];if(_0x44ab7c){const _0x1fea70=_0x2fd6d3(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x59f524=>_0x59f524['model']==_0x44ab7c);let _0x2c54ca=_0x44ab7c,_0x5cad7d='';return _0x1fea70&&(_0x2c54ca=_0x1fea70['label'],_0x5cad7d=_0x266016(_0x2c54ca)['toLowerCase']()),{'type':'format','content':o(_0x462e99,'*Set\x20font\x20background\x20color:*\x20%0',_0x5cad7d)['trim'](),'color':{'value':_0x44ab7c,'title':_0x5cad7d||_0x2c54ca}};}return{'type':'format','content':o(_0x462e99,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x1530f7{['afterInit'](){const _0x190271=this['editor'],_0x77152c=_0x190271['plugins']['get']('TrackChangesEditing'),_0x54f9d5=_0x190271['commands']['get']('copyFormat'),_0x59d1f6=_0x190271['commands']['get']('pasteFormat');_0x54f9d5&&_0x59d1f6&&(_0x77152c['enableDefaultAttributesIntegration']('pasteFormat'),_0x77152c['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x14a633=this['editor'],_0xc451b0=_0x14a633['locale'];_0x14a633['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1742cf=>{if('formatBlock'!=_0x1742cf['type']&&'formatInline'!=_0x1742cf['type'])return;const {data:_0x4b5ffb}=_0x1742cf;if(_0x4b5ffb&&'pasteFormat'===_0x4b5ffb['commandName']){const _0x2a94e4=[],_0x5cb83d=_0x4b5ffb['commandParams'][0x0];for(const [_0x4c87b5,_0xc84bb5]of Object['entries'](_0x5cb83d))_0x2a94e4['push'](so(_0x14a633,_0x4c87b5,_0xc84bb5));return _0x2a94e4['length']?{'type':'format','content':o(_0xc451b0,'*Set\x20format\x20to:*\x20%0',_0x2a94e4['join'](',\x20'))}:{'type':'format','content':o(_0xc451b0,'*Remove\x20all\x20formatting*')};}});}}function so(_0x37fdd6,_0x3ed6bc,_0x2112ae){const _0x3ddf94=_0x37fdd6['locale']['t'],_0x40c042=_0x3ed6bc['split'](/(?=[A-Z])/)['join']('\x20'),_0x3b7b0f=_0x3ddf94(_0x40c042['charAt'](0x0)['toUpperCase']()+_0x40c042['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2112ae)return _0x3b7b0f;if('fontColor'===_0x3ed6bc||'fontBackgroundColor'===_0x3ed6bc){const _0x4b2067=_0x2fd6d3(_0x37fdd6['config']['get']('fontColor.colors'))['find'](_0x2a6422=>_0x2a6422['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x4b2067?_0x3ddf94(_0x4b2067['label'])['toLowerCase']():_0x2112ae)+')';}if('fontSize'===_0x3ed6bc&&isNaN(parseFloat(_0x2112ae))){const _0x3df1d4=_0x37fdd6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x37fdd6['config']['get']('fontSize.options'))['find'](_0x3b2da5=>_0x3b2da5['model']==_0x2112ae);return _0x3b7b0f+'\x20('+(_0x3df1d4?_0x3ddf94(_0x3df1d4['title'])['toLowerCase']():_0x2112ae)+')';}return _0x3b7b0f+'\x20('+_0x2112ae+')';}class tt extends _0x1530f7{['_headingOptions'];['afterInit'](){const _0x47a8f2=this['editor'];if(!_0x47a8f2['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x47a8f2['config']['get']('heading.options');const _0x3bc4bb=_0x47a8f2['locale'],_0x3e4409=_0x47a8f2['plugins']['get']('TrackChangesEditing');_0x3e4409['enableDefaultAttributesIntegration']('heading');for(const _0x5037c9 of this['_headingOptions'])'paragraph'!=_0x5037c9['model']&&_0x3e4409['descriptionFactory']['registerElementLabel'](_0x5037c9['model'],_0x518ac8=>{const _0x34c096=this['_getHeadingLevel'](_0x5037c9['model']);return null!==_0x34c096?_0xec0605(_0x518ac8,_0x34c096):_0x24dc7e(_0x518ac8,_0x5037c9['title']);});function _0xec0605(_0x3c6461,_0x1e8c5b){return o(_0x3bc4bb,'ELEMENT_HEADING',[_0x3c6461,_0x1e8c5b]);}function _0x24dc7e(_0x48bd0b,_0x56446c){return o(_0x3bc4bb,'ELEMENT_HEADING_CUSTOM',[_0x48bd0b,_0x56446c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x403160=this['editor'],_0x119151=_0x403160['locale'];function _0x15ddc1(_0x372ea0,_0xe2c223){return o(_0x119151,'ELEMENT_HEADING_CUSTOM',[_0x372ea0,_0xe2c223]);}_0x403160['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4930bb=>{if('formatBlock'!=_0x4930bb['type'])return;const {data:_0xef3c2f}=_0x4930bb;if(_0xef3c2f&&'heading'==_0xef3c2f['commandName']){const _0x27e7c1=_0xef3c2f['commandParams'][0x0]['value'],_0x586cb0=this['_getHeadingLevel'](_0x27e7c1);if(null!==_0x586cb0)return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',(_0xc16230=0x1,_0xbc8040=_0x586cb0,o(_0x119151,'ELEMENT_HEADING',[_0xc16230,_0xbc8040])))};const _0x3ba0be=this['_headingOptions']['find'](_0x920d99=>_0x920d99['model']===_0x27e7c1)['title'];return{'type':'format','content':o(_0x119151,'*Change\x20to:*\x20%0',_0x15ddc1(0x1,_0x3ba0be))};}var _0xc16230,_0xbc8040;});}['_getHeadingLevel'](_0x4ca39c){const _0x192ebc=_0x4ca39c['match'](/^heading(\d+)/);if(_0x192ebc)return _0x192ebc[0x1];const _0x344d0c=this['_headingOptions']?.['find'](_0x24deba=>_0x24deba['model']==_0x4ca39c);if(_0x344d0c&&_0x344d0c['view']){const _0x1efb29=_0x344d0c['view'],_0x3d196c=(_0x1efb29['name']??_0x1efb29)['match'](/^h(\d+)/);if(_0x3d196c)return _0x3d196c[0x1];}return null;}}class et extends _0x1530f7{['afterInit'](){const _0xd2f099=this['editor'];if(!_0xd2f099['plugins']['has']('HighlightEditing'))return;const _0x5593f6=_0xd2f099['plugins']['get']('TrackChangesEditing'),_0x411fb5=_0xd2f099['locale'];_0x5593f6['enableDefaultAttributesIntegration']('highlight'),_0x5593f6['registerInlineAttribute']('highlight'),_0x5593f6['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x411fb5,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55d636=this['editor'],_0xba457a=_0x55d636['locale'];_0x55d636['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fe167=>{if('formatInline'!=_0x2fe167['type'])return;const {data:_0x3e21e9}=_0x2fe167;if(_0x3e21e9&&'highlight'==_0x3e21e9['commandName']){const _0xa56182=_0xba457a['t'],_0x1fe454=_0x3e21e9['commandParams'][0x0]['value'];if(_0x1fe454){const _0x5d5c17=_0x55d636['config']['get']('highlight.options')['find'](_0x1b7c12=>_0x1b7c12['model']==_0x1fe454),_0x3e2d8e=_0xa56182(_0x5d5c17['title'])['toLowerCase']();return{'type':'format','content':o(_0xba457a,'*Set\x20highlight:*\x20%0',_0x3e2d8e),'color':{'value':_0x5d5c17['color'],'title':_0x5d5c17['title']}};}return{'type':'format','content':o(_0xba457a,'*Remove\x20highlight*',o(_0xba457a,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x1530f7{['afterInit'](){const _0x3d997c=this['editor'];if(!_0x3d997c['plugins']['has']('HorizontalLineEditing'))return;_0x3d997c['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x436ec9=_0x3d997c['plugins']['get']('TrackChangesEditing'),_0x24415c=_0x3d997c['locale'];_0x436ec9['descriptionFactory']['registerElementLabel']('horizontalLine',_0xb83f5e=>o(_0x24415c,'ELEMENT_HORIZONTAL_LINE',_0xb83f5e)),_0x3d997c['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x285fa5,{writer:_0x366e9d,options:_0x2fddcb})=>{if(!_0x2fddcb['showSuggestionHighlights'])return null;const _0x21d622=_0x366e9d['createContainerElement']('div'),_0x3a219e=_0x366e9d['createEmptyElement']('hr');return _0x366e9d['addClass']('ck-horizontal-line',_0x21d622),_0x366e9d['insert'](_0x366e9d['createPositionAt'](_0x21d622,0x0),_0x3a219e),_0x21d622;},'converterPriority':'high'});}}class st extends _0x1530f7{['afterInit'](){const _0x13becb=this['editor'];if(!_0x13becb['plugins']['has']('HtmlEmbed'))return;const _0x185b96=_0x13becb['plugins']['get']('TrackChangesEditing'),_0x45b4ef=_0x13becb['locale'];_0x185b96['descriptionFactory']['registerElementLabel']('rawHtml',_0x37cc3a=>o(_0x45b4ef,'ELEMENT_HTML_EMBED',_0x37cc3a)),_0x185b96['enableDefaultAttributesIntegration']('htmlEmbed'),_0x185b96['registerBlockAttribute']('value'),_0x185b96['descriptionFactory']['registerDescriptionCallback'](_0x2d141e=>{if('attribute'!=_0x2d141e['type'])return;const {data:_0x4a5963}=_0x2d141e;if(_0x4a5963&&'value'==_0x4a5963['key']&&_0x2d141e['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x10b784=o(_0x45b4ef,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x45b4ef,'*Change\x20%0\x20content*',_0x10b784)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20600d=this['editor'],_0x3a6f6f=_0x20600d['locale'];_0x20600d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1f7184=>{if('formatBlock'!=_0x1f7184['type'])return;const {data:_0x21c61c}=_0x1f7184;if(_0x21c61c&&'htmlEmbed'==_0x21c61c['commandName']){const _0xe75f6c=o(_0x3a6f6f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3a6f6f,'*Change\x20%0\x20content*',_0xe75f6c)};}});}}class nt extends _0x1530f7{['afterInit'](){const _0x3f1ff3=this['editor'];if(!_0x3f1ff3['plugins']['has']('ImageEditing'))return;const _0x48e401=_0x3f1ff3['plugins']['get']('TrackChangesEditing'),_0x38f3d3=_0x3f1ff3['plugins']['get']('ImageUtils'),_0x1756f1=_0x3f1ff3['locale'];_0x48e401['enableCommand']('insertImage'),_0x48e401['descriptionFactory']['registerElementLabel']('imageBlock',_0x2045d4=>o(_0x1756f1,'ELEMENT_IMAGE',_0x2045d4)),_0x48e401['descriptionFactory']['registerElementLabel']('imageInline',_0x21b343=>o(_0x1756f1,'ELEMENT_INLINE_IMAGE',_0x21b343)),_0x48e401['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x1756f1,'ELEMENT_CAPTION')),_0x3f1ff3['plugins']['has']('ImageUploadEditing')&&_0x48e401['enableCommand']('uploadImage'),_0x3f1ff3['plugins']['has']('ImageBlockEditing')&&_0x3f1ff3['plugins']['has']('ImageInlineEditing')&&(_0x48e401['enableCommand']('imageTypeInline',(_0x71c68,_0x57a828)=>{const _0x11b26a=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']);_0x3f1ff3['model']['change'](()=>{_0x48e401['markBlockFormat'](_0x11b26a,{'commandName':'imageTypeInline','commandParams':[_0x57a828]},[],'convertBlockImageToInline');});}),_0x48e401['enableCommand']('imageTypeBlock',(_0x1df913,_0x3fd424)=>{_0x3f1ff3['model']['change'](_0x5b4394=>{let _0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x1fbe45=_0x5a10b9['fromPosition'](_0x32cf25['start'],'toPrevious'),_0x577c8b=_0x5a10b9['fromPosition'](_0x32cf25['end'],'toNext');_0x48e401['forceDefaultExecution'](()=>_0x1df913(_0x3fd424)),_0x155b34=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x32cf25=_0x5b4394['createRangeOn'](_0x155b34);const _0x59f6ee=_0x5b4394['createRange'](_0x1fbe45,_0x577c8b);_0x1fbe45['detach'](),_0x577c8b['detach'](),_0x48e401['markBlockFormat'](_0x155b34,{'commandName':'imageTypeInline','commandParams':[_0x3fd424]},[],'convertInlineImageToBlock'),_0x59f6ee['start']['isBefore'](_0x32cf25['start'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x59f6ee['start'],_0x32cf25['start']),'convertInlineImageToBlock'),_0x32cf25['end']['isBefore'](_0x59f6ee['end'])&&_0x48e401['markInsertion'](_0x5b4394['createRange'](_0x32cf25['end'],_0x59f6ee['end']),'convertInlineImageToBlock');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x48e401['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x52e8c9])=>{const _0xb778c6=_0x48e401['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3b88fb=_0x52e8c9['start'],_0x2a6f49=_0x52e8c9['end'];const _0x2b951e=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x3b88fb,'backward'),_0x1546a2=_0x3f1ff3['model']['schema']['getNearestSelectionRange'](_0x2a6f49,'forward');_0x2b951e['isCollapsed']&&(_0x3b88fb=_0x2b951e['start']),_0x1546a2['isCollapsed']&&(_0x2a6f49=_0x1546a2['end']),_0xb778c6([_0x3f1ff3['model']['createRange'](_0x3b88fb,_0x2a6f49)]);}),_0x48e401['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xd1791a),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xd1791a)),_0x3f1ff3['plugins']['has']('ImageCaptionEditing')&&(_0x48e401['enableCommand']('toggleImageCaption',(_0x183eb7,_0x55d018)=>{const _0x41b8b8=_0x3f1ff3['plugins']['get']('ImageCaptionUtils');let _0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94);_0x3f1ff3['model']['change'](()=>{if(_0x997e43)return void _0x48e401['markDeletion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43));const _0x138e4f=_0x38f3d3['isBlockImage'](_0x340c94);_0x183eb7(_0x55d018),_0x340c94=_0x38f3d3['getClosestSelectedImageElement'](_0x3f1ff3['model']['document']['selection']),_0x997e43=_0x41b8b8['getCaptionFromImageModelElement'](_0x340c94),_0x48e401['markInsertion'](_0x3f1ff3['model']['createRangeOn'](_0x997e43),_0x138e4f?null:'imageCaption');});}),_0x48e401['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xd1791a));const _0x5ec08b=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x41bf24(_0x3f9f0f,_0x32bdee){const _0x365bde=_0x5ec08b['findIndex'](({type:_0x43a75f,subType:_0x2b55f6})=>_0x3f9f0f['type']==_0x43a75f&&_0x3f9f0f['subType']==_0x2b55f6),_0x50d5ac=_0x5ec08b['findIndex'](({type:_0x261ca9,subType:_0x3f0b9a})=>_0x32bdee['type']==_0x261ca9&&_0x32bdee['subType']==_0x3f0b9a);if(_0x365bde<0x0||_0x50d5ac<0x0)return!0x1;const _0x1e86ed=_0x3f9f0f['getFirstRange'](),_0x5406f2=_0x32bdee['getFirstRange']();if((0x0==_0x365bde||0x1==_0x365bde)&&0x2==_0x50d5ac&&_0x1e86ed['isIntersecting'](_0x5406f2))return!0x0;if(0x2==_0x365bde&&0x3==_0x50d5ac){const _0x50c14d=_0x48e401['_findSuggestions'](_0x1e86ed,'insertion')['filter'](({suggestion:_0x56c068,meta:_0x1021b1})=>_0x1021b1['isOwn']&&'convertInlineImageToBlock'==_0x56c068['subType']);if(_0x50c14d['length']>0x1&&_0x5406f2['end']['isEqual'](_0x1e86ed['start']))return!0x0;if(0x1==_0x50c14d['length']&&(_0x1e86ed['start']['isEqual'](_0x5406f2['end'])||_0x1e86ed['end']['isEqual'](_0x5406f2['start'])))return!0x0;}if(0x3==_0x365bde&&0x3==_0x50d5ac&&_0x1e86ed['start']['isBefore'](_0x5406f2['start'])){const _0x2bc4f6=_0x1e86ed['end']['nodeAfter'],_0x32cbb6=_0x5406f2['start']['nodeBefore'];return _0x38f3d3['isBlockImage'](_0x2bc4f6)&&_0x2bc4f6===_0x32cbb6;}return!0x1;}function _0xd1791a(_0x2a3773,_0xff4ea5){return _0x41bf24(_0x2a3773,_0xff4ea5)?[_0x2a3773,_0xff4ea5]:_0x41bf24(_0xff4ea5,_0x2a3773)?[_0xff4ea5,_0x2a3773]:null;}_0x3f1ff3['plugins']['has']('ImageResize')&&(_0x48e401['enableDefaultAttributesIntegration']('resizeImage'),_0x48e401['registerBlockAttribute']('resizedWidth'),_0x48e401['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x1756f1,'FORMAT_IMAGE_SIZE'))),_0x3f1ff3['plugins']['has']('ImageTextAlternativeEditing')&&(_0x48e401['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x48e401['registerBlockAttribute']('alt')),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x5eebba=>{if(!!_0x5ec08b['find'](({type:_0x5b0e1b,subType:_0x484b87})=>_0x5eebba['type']==_0x5b0e1b&&_0x5eebba['subType']==_0x484b87))return _0x5eebba['previous']?{}:void 0x0;}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x3f289d=>{if('insertion'==_0x3f289d['type']||'deletion'==_0x3f289d['type']){const _0x31174e=_0x3f289d['getContainedElement']();if(_0x31174e&&_0x31174e['is']('element','caption'))return{'type':'insertion'==_0x3f289d['type']?'addObject':'removeObject','element':_0x31174e,'quantity':0x1};}}),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0xc83af6=>'formatBlock'==_0xc83af6['type']&&'convertInlineImageToBlock'==_0xc83af6['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0xc83af6['type']&&'convertBlockImageToInline'==_0xc83af6['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x48e401['descriptionFactory']['registerDescriptionCallback'](_0x33c92f=>{if('attribute'!=_0x33c92f['type'])return;const {data:_0x33501f}=_0x33c92f;if(!_0x33501f||'alt'!=_0x33501f['key'])return;const _0x2073a0=_0x33501f['newValue'];return _0x2073a0?{'type':'format','content':o(_0x1756f1,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2073a0+'\x22')}:{'type':'format','content':o(_0x1756f1,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x9b8c27=this['editor'],_0x4d3681=_0x9b8c27['locale'];_0x9b8c27['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x47e0e2=>{if('formatBlock'!=_0x47e0e2['type']&&'formatInline'!=_0x47e0e2['type'])return;const {data:_0x2b6902}=_0x47e0e2;if(_0x2b6902){if('imageTextAlternative'==_0x2b6902['commandName']){const _0x3f04c9=_0x2b6902['commandParams'][0x0]['newValue'];return _0x3f04c9?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3f04c9+'\x22')}:{'type':'format','content':o(_0x4d3681,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x2b6902['commandName']){const _0x4f3dab=_0x2b6902['commandParams'][0x0]['width'];return _0x4f3dab?{'type':'format','content':o(_0x4d3681,'*Set\x20image\x20width:*\x20%0',_0x4f3dab)}:{'type':'format','content':o(_0x4d3681,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16d855=this['editor']['locale'],_0x5afd63=this['editor']['plugins']['get']('TrackChangesEditing');_0x5afd63['enableDefaultAttributesIntegration']('replaceImageSource'),_0x5afd63['registerBlockAttribute']('src'),_0x5afd63['descriptionFactory']['registerDescriptionCallback'](_0x48595c=>{if('attribute'!=_0x48595c['type'])return;const {data:_0x6910b3}=_0x48595c;return _0x6910b3&&'src'==_0x6910b3['key']?_0x6910b3['newValue']&&_0x6910b3['oldValue']?{'type':'format','content':o(_0x16d855,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3d4c8d=this['editor']['plugins']['get']('TrackChangesEditing');_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3d4c8d['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3d4c8d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5a5ef0=this['editor'],_0xaae62c=_0x5a5ef0['locale'];_0x5a5ef0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x985426=>{if('formatBlock'!=_0x985426['type']&&'formatInline'!=_0x985426['type'])return;const {data:_0x176c3a}=_0x985426;if(!_0x176c3a||'replaceImageSource'!=_0x176c3a['commandName'])return;return{'type':'format','content':o(_0xaae62c,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x1530f7{['afterInit'](){const _0x3d824d=this['editor'];if(!_0x3d824d['plugins']['has']('ImageStyleEditing'))return;const _0xbf8797=_0x3d824d['plugins']['get']('TrackChangesEditing'),_0x13c230=_0x3d824d['plugins']['get']('ImageUtils'),_0x4296fa={};_0xbf8797['enableCommand']('imageStyle',(_0x62a88c,_0x5774eb)=>{const _0x2b7f1c=_0x3d824d['plugins']['get']('Users')['me'],_0x48df96=_0x3d824d['commands']['get']('imageStyle');let _0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x209409=_0x48df96['value'];if(_0x209409==_0x5774eb['value'])return;const _0x34425b={'commandName':'imageStyle','commandParams':[_0x5774eb],'formatGroupId':_0x5042b()};_0x3d824d['model']['change'](()=>{if(_0xbf8797['getSuggestions']()['filter'](_0x55c090=>_0x55c090['isInContent']&&_0x2b7f1c==_0x55c090['author']&&('formatBlock'==_0x55c090['type']||'formatInline'==_0x55c090['type'])&&('imageStylePreApply'==_0x55c090['subType']||'imageStylePostApply'==_0x55c090['subType'])&&_0x55c090['getFirstRange']()['isEqual'](_0x404620))['forEach'](_0x377dc4=>_0xbf8797['discardSuggestion'](_0x377dc4['head'])),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),_0x404620=_0x3d824d['model']['createRangeOn'](_0x4afca2),_0x48df96['refresh'](),_0x3d824d['commands']['get']('imageTypeInline')['refresh'](),_0x3d824d['commands']['get']('imageTypeBlock')['refresh'](),_0x209409=_0x48df96['value'],_0x209409!=_0x5774eb['value'])return _0x13c230['isInlineImage'](_0x4afca2)&&_0x48df96['shouldConvertImageType'](_0x5774eb['value'],_0x4afca2)?(_0x62a88c({..._0x5774eb,'setImageSizes':!0x1}),_0x4afca2=_0x13c230['getClosestSelectedImageElement'](_0x3d824d['model']['document']['selection']),void _0xbf8797['markBlockFormat'](_0x4afca2,{..._0x34425b,'commandReversedParams':[{'value':_0x209409||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x13c230['isBlockImage'](_0x4afca2)?_0xbf8797['markBlockFormat'](_0x4afca2,_0x34425b,[],'imageStylePostApply'):_0xbf8797['markInlineFormat'](_0x404620,_0x34425b,'imageStylePostApply'));});});for(const _0x1f76bb of _0x3d824d['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4296fa[_0x1f76bb['name']]=_0x1f76bb['title']['toLowerCase']();_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xad6fba])=>{_0x13c230['setImageNaturalSizeAttributes'](_0xad6fba['getContainedElement']());}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x5cc0a0,_0x112be2)=>{_0xbf8797['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x5cc0a0,{'commandName':_0x112be2['commandName'],'commandParams':_0x112be2['commandReversedParams']});}),_0xbf8797['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x46bfb3,_0x3757b3){if(_0x5638a8(_0x46bfb3,_0x3757b3))return[_0x46bfb3,_0x3757b3];if(_0x5638a8(_0x3757b3,_0x46bfb3))return[_0x3757b3,_0x46bfb3];return null;});const _0x22ba63=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5638a8(_0x486129,_0x36331a){const _0x32d1b1=_0x22ba63['findIndex'](({type:_0x1c259c,subType:_0x2f953a})=>_0x486129['type']==_0x1c259c&&_0x486129['subType']==_0x2f953a),_0x55eacc=_0x22ba63['findIndex'](({type:_0x18fa64,subType:_0x2ebdea})=>_0x36331a['type']==_0x18fa64&&_0x36331a['subType']==_0x2ebdea);if(_0x32d1b1<0x0||_0x55eacc<0x0)return!0x1;const _0x1b4aac=_0x486129['getFirstRange'](),_0x116263=_0x36331a['getFirstRange']();if((0x0==_0x32d1b1||0x1==_0x32d1b1)&&0x2==_0x55eacc&&_0x1b4aac['isIntersecting'](_0x116263))return!0x0;if(0x2==_0x32d1b1&&0x3==_0x55eacc){const _0x4001b1=_0xbf8797['_findSuggestions'](_0x1b4aac,'insertion')['filter'](({suggestion:_0x222c9e,meta:_0x4ab0d7})=>_0x4ab0d7['isOwn']&&'convertInlineImageToBlock'==_0x222c9e['subType']);if(_0x4001b1['length']>0x1&&_0x116263['end']['isEqual'](_0x1b4aac['start']))return!0x0;if(0x1==_0x4001b1['length']&&(_0x1b4aac['start']['isEqual'](_0x116263['end'])||_0x1b4aac['end']['isEqual'](_0x116263['start'])))return!0x0;}if(0x3==_0x32d1b1&&0x3==_0x55eacc&&_0x1b4aac['start']['isBefore'](_0x116263['start'])){const _0x4490a8=_0x1b4aac['end']['nodeAfter'],_0x2463ef=_0x116263['start']['nodeBefore'];return _0x13c230['isBlockImage'](_0x4490a8)&&_0x4490a8===_0x2463ef;}return!0x1;}_0x3d824d['model']['document']['registerPostFixer'](()=>{let _0x3f04f1=!0x1;const _0x4464f9=Array['from'](_0x3d824d['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x173ab7,data:_0x12e7a0}of _0x4464f9){const {group:_0x297b73,type:_0x42e787,subType:_0x216626,id:_0x2e8fc1}=_0xbf8797['_splitMarkerName'](_0x173ab7);if('suggestion'==_0x297b73&&_0xbf8797['hasSuggestion'](_0x2e8fc1)){if('formatBlock'==_0x42e787&&('imageStylePreApply'==_0x216626||'imageStylePostApply'==_0x216626)){const _0x1c434e=_0xbf8797['getSuggestion'](_0x2e8fc1);if(_0x12e7a0['newRange']){const _0x30a630=_0x1c434e['getFirstRange']()['getContainedElement']();if(_0x13c230['isBlockImage'](_0x30a630))continue;_0xbf8797['discardSuggestion'](_0x1c434e),_0x3f04f1=!0x0;}}if('insertion'==_0x42e787&&'imageCaption'==_0x216626&&!_0x12e7a0['newRange']){const _0x50dcda=_0xbf8797['getSuggestion'](_0x2e8fc1);_0x50dcda['next']&&_0x50dcda['next']['isInContent']&&(_0xbf8797['discardSuggestion'](_0x50dcda['next']),_0x3f04f1=!0x0);}}}return _0x3f04f1;}),this['_registerLegacyDescription'](_0x4296fa);}['_registerLegacyDescription'](_0x2df7d6){const _0x141d9d=this['editor'],_0x3abf36=_0x141d9d['locale'];_0x141d9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x534642=>{if('formatBlock'!=_0x534642['type']&&'formatInline'!=_0x534642['type'])return;const {data:_0x4ff637}=_0x534642;if(!_0x4ff637||'imageStyle'!=_0x4ff637['commandName'])return;const _0x23ce3e=_0x4ff637['commandParams'][0x0]['value'];return _0x344436('side'===_0x23ce3e?o(_0x3abf36,'FORMAT_SIDE_IMAGE'):_0x2df7d6[_0x23ce3e]||_0x23ce3e);function _0x344436(_0x593565){return{'type':'format','content':o(_0x3abf36,'*Format:*\x20%0',_0x593565)};}});}}class at extends _0x1530f7{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x1c137e){super(_0x1c137e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x90de2d=this['editor'],_0x41b5a2=_0x90de2d['commands']['get']('importWord'),_0x842b25=_0x90de2d['commands']['get']('trackChanges');_0x41b5a2&&(_0x41b5a2['on']('execute',(_0x46dc0e,[,_0x1cb92c])=>{this['_trackChangesValueDuringImport']=_0x842b25['value'],_0x1cb92c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x41b5a2,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x41b5a2,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x842b25['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x90de2d['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x3bc261,_0x31026f){const {suggestions:_0x3ca564}=_0x31026f,_0xffb0bc=this['editor']['commands']['get']('trackChanges'),_0x116b02=_0xffb0bc['value'];this['_trackChangesValueDuringImport']!==_0x116b02&&(_0xffb0bc['execute'](),this['_trackChangesExecuted']=!0x0),_0x3ca564&&_0x3ca564['forEach'](({id:_0x394457,type:_0x58d1ad,author:_0x5de302,created_at:_0x212169})=>{const _0x4266d0={'id':_0x394457,'type':_0x58d1ad,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5de302,'createdAt':_0x212169?new Date(_0x212169):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x4266d0);});}}class ct extends _0x1530f7{['afterInit'](){const _0x49b0e9=this['editor'],_0x579d31=_0x49b0e9['plugins']['get']('TrackChangesEditing');if(_0x49b0e9['plugins']['has']('IndentEditing')&&(_0x579d31['enableCommand']('indent'),_0x579d31['enableCommand']('outdent')),_0x49b0e9['plugins']['has']('IndentBlock')){for(const _0x4e2e91 of['indentBlock','outdentBlock'])_0x579d31['enableDefaultAttributesIntegration'](_0x4e2e91);}const _0x446278=_0x49b0e9['locale'];_0x579d31['registerBlockAttribute']('blockIndent'),_0x579d31['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x446278,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15dd54=this['editor'],_0x35977d=_0x15dd54['locale'],_0x921011=_0x15dd54['plugins']['get']('TrackChangesEditing');_0x921011['descriptionFactory']['registerDescriptionCallback'](_0x1aba84=>{if('formatBlock'!=_0x1aba84['type'])return;const {data:_0x3fc45b}=_0x1aba84;if(!_0x3fc45b)return;if('indentBlock'!=_0x3fc45b['commandName']&&'outdentBlock'!=_0x3fc45b['commandName'])return;const _0x335fe7=_0x1aba84['getItems']()[0x0],_0x5e75aa=_0x921011['descriptionFactory']['getItemLabel'](_0x335fe7);return'indentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Indent:*\x20%0',_0x5e75aa)}:'outdentBlock'==_0x3fc45b['commandName']?{'type':'format','content':o(_0x35977d,'*Outdent:*\x20%0',_0x5e75aa)}:void 0x0;});}}class ut extends _0x1530f7{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x1530f7{['afterInit'](){const _0x596e22=this['editor'];if(!_0x596e22['plugins']['has']('LinkEditing'))return;const _0x58821c=_0x596e22['plugins']['get']('TrackChangesEditing'),_0x1ed91a=_0x596e22['commands']['get']('link');_0x58821c['enableDefaultAttributesIntegration']('link'),_0x58821c['enableDefaultAttributesIntegration']('unlink'),_0x58821c['registerInlineAttribute']('linkHref');for(const _0x3f39f4 of _0x1ed91a['manualDecorators'])_0x58821c['registerInlineAttribute'](_0x3f39f4['id']),_0x58821c['descriptionFactory']['registerAttributeLabel'](_0x3f39f4['id'],'link\x20('+_0x3f39f4['label']['toLowerCase']()+')');_0x58821c['descriptionFactory']['registerDescriptionCallback'](_0x15addb=>{if('attribute'!=_0x15addb['type'])return;const {data:_0x3e71eb}=_0x15addb;if(!_0x3e71eb||'linkHref'!=_0x3e71eb['key'])return;const _0x5a629f=_0x3e71eb['newValue'],_0xd96d09=_0x596e22['locale'];return{'type':'format','content':null==_0x5a629f?o(_0xd96d09,'*Remove\x20link*'):o(_0xd96d09,'*Set\x20link:*\x20%0','\x22'+_0x5a629f+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45cd47=this['editor'],_0xa2ef89=_0x45cd47['locale'];_0x45cd47['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x404b63=>{if('formatInline'!=_0x404b63['type'])return;const {data:_0x39fce3}=_0x404b63;if(_0x39fce3){if('link'==_0x39fce3['commandName']){const _0xd50c3c=_0x39fce3['commandParams'][0x0];return{'type':'format','content':o(_0xa2ef89,'*Set\x20link:*\x20%0','\x22'+_0xd50c3c+'\x22')};}return'unlink'==_0x39fce3['commandName']?{'type':'format','content':o(_0xa2ef89,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x1530f7{['afterInit'](){const _0x4e259d=this['editor'],_0x47eb9f=_0x4e259d['locale'];if(!_0x4e259d['plugins']['has']('LegacyListEditing'))return;const _0x3d4c8f=_0x4e259d['plugins']['get']('TrackChangesEditing'),_0x30d118=_0x4e259d['plugins']['has']('LegacyTodoListEditing');function _0x1dd000(_0x109ba0){return()=>{const _0x306fcb=_0x4e259d['model']['document']['selection'],_0x32d291=_0x4e259d['commands']['get'](_0x109ba0);if(_0x32d291['value'])return void _0x4e259d['execute']('paragraph',{});const _0x3010c7=_0x109ba0['slice'](0x0,-0x4),_0xbf869e=function(_0x1f12e0,_0x5ba148,_0x1a5e14){let _0x8c519b=Array['from'](_0x1f12e0)['filter'](_0x40fd85=>function(_0x49d590,_0x16c611){return _0x16c611['checkChild'](_0x49d590['parent'],'listItem')&&!_0x16c611['isObject'](_0x49d590);}(_0x40fd85,_0x1a5e14));_0x8c519b=_0x8c519b['filter'](_0x421a0c=>!_0x421a0c['is']('element','listItem')||_0x421a0c['getAttribute']('listType')!=_0x5ba148);const _0x1ca131=new Set();for(const _0x363d1e of _0x8c519b)_0x363d1e['is']('element','listItem')?_0x1ca131['add'](fe(_0x363d1e)):_0x1ca131['add'](_0x363d1e);return Array['from'](_0x1ca131);}(_0x306fcb['getSelectedBlocks'](),_0x3010c7,_0x4e259d['model']['schema']);_0x4e259d['model']['change'](()=>{for(const _0x5727df of _0xbf869e)_0x3d4c8f['markBlockFormat'](_0x5727df,{'commandName':_0x109ba0,'commandParams':[{'forceValue':!_0x32d291['value']}],'formatGroupId':'blockName'},ue(_0x5727df));});};}function _0xaea53d(_0x278422){return()=>{const _0x391710=function(_0x221679){let _0x189097=Array['from'](_0x221679);const _0x2c1479=_0x189097['findIndex'](_0x4c8ad0=>'listItem'!=_0x4c8ad0['name']);return _0x2c1479>-0x1&&(_0x189097=_0x189097['slice'](0x0,_0x2c1479)),_0x189097;}(_0x4e259d['model']['document']['selection']['getSelectedBlocks']()),_0x173b93=_0x4e259d['model']['createRange'](_0x4e259d['model']['createPositionAt'](_0x391710[0x0],'before'),_0x4e259d['model']['createPositionAt'](_0x391710[_0x391710['length']-0x1],'end'));_0x4e259d['model']['change'](()=>{_0x3d4c8f['markBlockFormat'](_0x173b93,{'commandName':_0x278422,'commandParams':[],'formatGroupId':'listIndent'},function(_0x5da6b9){const _0x351319=new Set();for(const _0x3bfc57 of _0x5da6b9){let _0x4062fb=_0x3bfc57['nextSibling'];for(;_0x4062fb&&_0x4062fb['getAttribute']('listIndent')>_0x3bfc57['getAttribute']('listIndent');)_0x351319['add'](_0x4062fb),_0x4062fb=_0x4062fb['nextSibling'];}return Array['from'](_0x351319);}(_0x391710));});};}_0x3d4c8f['enableCommand']('numberedList',_0x1dd000('numberedList')),_0x3d4c8f['enableCommand']('bulletedList',_0x1dd000('bulletedList')),_0x30d118&&_0x3d4c8f['enableCommand']('todoList',_0x1dd000('todoList')),_0x3d4c8f['enableCommand']('indentList',_0xaea53d('indentList')),_0x3d4c8f['enableCommand']('outdentList',_0xaea53d('outdentList')),_0x30d118&&_0x3d4c8f['enableCommand']('checkTodoList',()=>{const _0x2425c4=_0x4e259d['commands']['get']('checkTodoList'),_0x4085a9=Array['from'](_0x2425c4['_selectedElements']);_0x4085a9['filter'](_0x3e762d=>_0x3e762d['getAttribute']('todoListChecked')!=_0x2425c4['value']),_0x4e259d['model']['change'](()=>{for(const _0x35177f of _0x4085a9)_0x3d4c8f['markBlockFormat'](_0x35177f,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2425c4['value']}]});});}),_0x3d4c8f['descriptionFactory']['registerElementLabel']('listItem',_0xf0d5a3=>o(_0x47eb9f,'ELEMENT_LIST_ITEM',_0xf0d5a3)),_0x3d4c8f['descriptionFactory']['registerDescriptionCallback'](_0x576fad=>{if('formatBlock'!=_0x576fad['type']&&'formatInline'!=_0x576fad['type'])return;const {data:_0x233afb}=_0x576fad;if(_0x233afb){if('numberedList'==_0x233afb['commandName']||'bulletedList'==_0x233afb['commandName']||'todoList'==_0x233afb['commandName'])switch(_0x233afb['commandName']['replace']('List','')){case'bulleted':return _0x19f36f(o(_0x47eb9f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x19f36f(o(_0x47eb9f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x19f36f(o(_0x47eb9f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Indent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x233afb['commandName'])return{'type':'format','content':o(_0x47eb9f,'*Outdent:*\x20%0',o(_0x47eb9f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x233afb['commandName'])return _0x233afb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x47eb9f,'*Check\x20item*')}:{'type':'format','content':o(_0x47eb9f,'*Uncheck\x20item*')};}function _0x19f36f(_0x44c609){return{'type':'format','content':o(_0x47eb9f,'*Change\x20to:*\x20%0',_0x44c609)};}});}}function fe(_0x2eb4c0){const _0x149483=_0x2eb4c0['getAttribute']('listIndent');if(0x0==_0x149483)return _0x2eb4c0;let _0xb42df0=_0x2eb4c0;for(;_0x2eb4c0['previousSibling']&&_0x2eb4c0['previousSibling']['is']('element','listItem');){const _0x497c03=_0x2eb4c0['previousSibling']['getAttribute']('listIndent');if(_0x497c03==_0x149483)_0xb42df0=_0x2eb4c0['previousSibling'];else{if(_0x497c03<_0x149483)break;}_0x2eb4c0=_0x2eb4c0['previousSibling'];}return _0xb42df0;}function ue(_0x1c84eb){const _0x3eaec1=[];if(_0x1c84eb['is']('element','listItem')&&_0x1c84eb['getAttribute']('listIndent')>0x0){let _0x2102ff=_0x1c84eb['nextSibling'];for(;_0x2102ff&&'listItem'==_0x2102ff['name']&&_0x2102ff['getAttribute']('listIndent')==_0x1c84eb['getAttribute']('listIndent');)_0x3eaec1['push'](_0x2102ff),_0x2102ff=_0x2102ff['nextSibling'];}return _0x3eaec1;}class W extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x3be11d=this['editor']['config']['get']('list.properties'),_0x10aa99=this['editor']['plugins']['get']('TrackChangesEditing');_0x3be11d['styles']&&_0x10aa99['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x3be11d['reversed']&&_0x10aa99['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x3be11d['startIndex']&&_0x10aa99['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x10aa99['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x166bd2,_0x6c83fd={}){const _0x308ef4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b77a9=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x308ef4['markMultiRangeBlockFormat'](_0x2b77a9,{'commandName':'listStyle','commandParams':[{'type':_0x6c83fd['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x56a71d,_0x2e2b9a={}){const _0x3370f5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x127afb=this['_getSuggestionBlocks'](_0x420b3e=>_0x420b3e['is']('element','listItem')&&'numbered'===_0x420b3e['getAttribute']('listType'));if(_0x127afb['length']<0x1)return;const _0x49380c=_0x127afb['map'](_0x2d4716=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2d4716,'before'),this['editor']['model']['createPositionAt'](_0x2d4716,0x0)));this['editor']['model']['change'](()=>{_0x3370f5['markMultiRangeBlockFormat'](_0x49380c,{'commandName':'listReversed','commandParams':[{'reversed':_0x2e2b9a['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3eab15,_0x3439f5={}){const _0x4601e2=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5576b5=this['_getSuggestionBlocks'](_0x3d624d=>_0x3d624d['is']('element','listItem')&&'numbered'===_0x3d624d['getAttribute']('listType'));if(_0x5576b5['length']<0x1)return;const _0x4e4d3c=_0x5576b5['map'](_0x3b120f=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b120f,'before'),this['editor']['model']['createPositionAt'](_0x3b120f,0x0)));this['editor']['model']['change'](()=>{_0x4601e2['markMultiRangeBlockFormat'](_0x4e4d3c,{'commandName':'listStart','commandParams':[{'startIndex':_0x3439f5['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2f4ddb){if('formatBlock'!=_0x2f4ddb['type']&&'formatInline'!=_0x2f4ddb['type'])return;const _0x2cd9d0=this['editor']['locale'],{data:_0xa5d236}=_0x2f4ddb;if(!_0xa5d236)return;let _0x3bedd1,_0x438dc1;switch(_0xa5d236['commandName']){case'listStyle':_0x3bedd1='*Change\x20to:*\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,o(_0x2cd9d0,this['_getTranslationKeyForListStyle'](_0xa5d236['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3bedd1=_0xa5d236['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1)};break;case'listStart':_0x3bedd1='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x438dc1={'type':'format','content':o(_0x2cd9d0,_0x3bedd1,_0xa5d236['commandParams'][0x0]['startIndex'])};}return _0x438dc1;}['_getSuggestionBlocksForListStyle'](){const _0x860372=this['editor']['plugins']['get']('LegacyListUtils');let _0x4ca385=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4ca385[0x0]?.['is']('element','listItem')&&_0x4ca385['unshift'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4ca385[_0x4ca385['length']-0x1]?.['is']('element','listItem')&&_0x4ca385['push'](..._0x860372['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4ca385=[...new Set(_0x4ca385)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4ca385=_0x4ca385['filter'](_0x2d9cb4=>_0x2d9cb4['is']('element','listItem'))),_0x4ca385;}['_getSuggestionBlocks'](_0x5a1242){const _0x481985=this['editor']['plugins']['get']('LegacyListUtils');let _0x79129a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5a1242)['map'](_0x34d6cd=>{const _0x3a1832=this['editor']['model']['createPositionAt'](_0x34d6cd,0x0);return[..._0x481985['getSiblingNodes'](_0x3a1832,'backward'),..._0x481985['getSiblingNodes'](_0x3a1832,'forward')];})['flat']();return _0x79129a=[...new Set(_0x79129a)],_0x79129a;}['_getTranslationKeyForListStyle'](_0x5aaf49){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x5aaf49)||'default')['toUpperCase']()+'_LIST_'+_0x5aaf49['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x1530f7{['afterInit'](){const _0x9edecf=this['editor'];if(!_0x9edecf['plugins']['has']('MediaEmbedEditing'))return;const _0x37f5da=_0x9edecf['plugins']['get']('TrackChangesEditing'),_0x5bbca2=_0x9edecf['locale'];_0x37f5da['enableCommand']('mediaEmbed'),_0x37f5da['descriptionFactory']['registerElementLabel']('media',_0x529703=>o(_0x5bbca2,'ELEMENT_MEDIA',_0x529703)),_0x9edecf['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3d442e,{writer:_0x178dea,options:_0x5ed818})=>{if(_0x5ed818['showSuggestionHighlights'])return _0x178dea['createEmptyElement']('div');},'converterPriority':'high'}),_0x9edecf['data']['downcastDispatcher']['on']('attribute:url:media',(_0x18cf64,_0x1d278e,_0x556301)=>{_0x556301['options']['showSuggestionHighlights']&&_0x18cf64['stop']();},{'priority':'high'});}}class mt extends _0x1530f7{['afterInit'](){const _0x1b8fd3=this['editor'];_0x1b8fd3['plugins']['has']('MentionEditing')&&_0x1b8fd3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x1530f7{['afterInit'](){const _0x1c466a=this['editor'];if(!_0x1c466a['plugins']['has']('MergeFieldsEditing'))return;_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x1c466a['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x2cf14e=_0x1c466a['plugins']['get']('TrackChangesEditing'),_0x2aceb2=_0x1c466a['locale'];_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeField',_0x51ea7a=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x51ea7a)),_0x2cf14e['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x34fd42=>o(_0x2aceb2,'ELEMENT_MERGE_FIELD',_0x34fd42)),_0x2cf14e['descriptionFactory']['registerDescriptionCallback'](_0x57f856=>{if('insertion'!=_0x57f856['type']&&'deletion'!=_0x57f856['type'])return;const _0x5f24de=_0x57f856['getContainedElement']();if(null==_0x5f24de)return;if(!_0x5f24de['is']('element','mergeField')&&!_0x5f24de['is']('element','mergeFieldBlock'))return;const _0x18aa40=_0x1c466a['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x5f24de['getAttribute']('id'));return'insertion'==_0x57f856['type']?{'type':'insertion','content':o(_0x2aceb2,'*Insert:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x2aceb2,'*Remove:*\x20%0','\x22'+_0x18aa40+'\x22\x20'+o(_0x2aceb2,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x1530f7{['afterInit'](){const _0x3defc1=this['editor'],_0x34cd6e=_0x3defc1['plugins']['get']('TrackChangesEditing');_0x3defc1['plugins']['has']('MultiLevelList')&&(_0x34cd6e['enableDefaultAttributesIntegration']('multiLevelList'),_0x34cd6e['registerBlockAttribute']('listMarkerStyle'),_0x34cd6e['descriptionFactory']['registerDescriptionCallback'](_0x4234f5=>this['handleDescriptions'](_0x4234f5)));}['handleDescriptions'](_0x1ef195){const _0x2b511c=this['editor']['locale'],{data:_0x3c428c}=_0x1ef195,_0x3f49e7={'type':'format','content':''};if(_0x3c428c&&'listMarkerStyle'==_0x3c428c['key']){if(!_0x3c428c['oldValue'])return{'type':'format','content':o(_0x2b511c,'*Set\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['newValue']+')'};if(!_0x3c428c['newValue']){let _0x1f9234=_0x1ef195['head'];for(;_0x1f9234;){if(_0x1f9234['data']&&'listType'==_0x1f9234['data']['key']&&_0x1f9234['data']['newValue'])return _0x3f49e7;_0x1f9234=_0x1f9234['next'];}return{'type':'format','content':o(_0x2b511c,'*Remove\x20format:*\x20%0',o(_0x2b511c,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3c428c['oldValue']+')'};}}}}class kt extends _0x1530f7{['afterInit'](){const _0x2e98ea=this['editor'];if(!_0x2e98ea['plugins']['has']('PageBreakEditing'))return;_0x2e98ea['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x34d117=_0x2e98ea['plugins']['get']('TrackChangesEditing'),_0x5cad3b=_0x2e98ea['locale'];_0x34d117['descriptionFactory']['registerElementLabel']('pageBreak',_0x539974=>o(_0x5cad3b,'ELEMENT_PAGE_BREAK',_0x539974));}}class bt extends _0x1530f7{['afterInit'](){const _0x8527c0=this['editor'];if(!_0x8527c0['plugins']['has']('Paragraph'))return;const _0xb8376c=_0x8527c0['locale'],_0x20cfb3=_0x8527c0['plugins']['get']('TrackChangesEditing');_0x20cfb3['descriptionFactory']['registerElementLabel']('paragraph',_0xc58a35=>o(_0xb8376c,'ELEMENT_PARAGRAPH',_0xc58a35)),_0x20cfb3['enableDefaultAttributesIntegration']('paragraph'),_0x20cfb3['enableCommand']('insertParagraph'),_0x8527c0['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x8527c0),{'priority':'highest'}),_0x8527c0['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1a8a85,_0xae2cb5,_0x30ceee)=>{_0x30ceee['options']['showSuggestionHighlights']&&nr(_0x8527c0,{'showActiveMarker':!0x1})(_0x1a8a85,_0xae2cb5,_0x30ceee);},{'priority':'highest'});const _0x23fe63=_0x20cfb3['descriptionFactory'];_0x23fe63['registerDescriptionCallback'](_0x21598b=>{if('insertion'!==_0x21598b['type'])return;const {start:_0x4e8cb1,end:_0x4267ab}=_0x21598b['getFirstRange']();if(!_0x4e8cb1['isTouching'](_0x4267ab)||!_0x4e8cb1['nodeAfter'])return;const _0x854974=_0x8527c0['model']['schema'],_0x1a1972=_0x4e8cb1['nodeAfter'];return _0x854974['isBlock'](_0x1a1972)&&!_0x854974['isLimit'](_0x1a1972)&&_0x854974['checkChild'](_0x1a1972,'$text')?{'type':'insertion','content':o(_0xb8376c,'*Insert:*\x20%0',_0x23fe63['getItemLabel'](_0x1a1972,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x14ee3e=this['editor'],_0x41c925=_0x14ee3e['locale'];_0x14ee3e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3dc1a2=>{if('formatBlock'!=_0x3dc1a2['type'])return;const {data:_0x1221a9}=_0x3dc1a2;return _0x1221a9&&'paragraph'==_0x1221a9['commandName']?{'type':'format','content':o(_0x41c925,'*Change\x20to:*\x20%0',o(_0x41c925,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x5ea20b,{showActiveMarker:_0x189733=!0x0}={}){return(_0x3c856b,_0x2e4ba2,_0x36f6e3)=>{const _0x3d4125=_0x5ea20b['plugins']['get']('TrackChangesEditing'),_0x31b1c7=_0x2e4ba2['markerRange']['start'],_0x1c3a59=_0x2e4ba2['markerRange']['end'],_0x22dafa=_0x5ea20b['model']['schema'];if(!_0x31b1c7['isTouching'](_0x1c3a59)||!_0x31b1c7['nodeAfter'])return;const _0x24211d=_0x31b1c7['nodeAfter'];if(_0x22dafa['isBlock'](_0x24211d)&&!_0x22dafa['isLimit'](_0x24211d)&&_0x22dafa['checkChild'](_0x24211d,'$text')){if(!_0x36f6e3['consumable']['consume'](_0x2e4ba2['markerRange'],_0x3c856b['name']))return;const {authorId:_0x3beb1a}=_0x3d4125['_splitMarkerName'](_0x2e4ba2['markerName']),_0x41372c=_0x36f6e3['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x3beb1a}),_0x4c9f85=_0x36f6e3['mapper']['toViewPosition'](_0x1c3a59);_0x189733&&_0x3d4125['activeMarkers']['includes'](_0x2e4ba2['markerName'])&&_0x36f6e3['writer']['addClass']('ck-suggestion-marker--active',_0x41372c),_0x36f6e3['writer']['insert'](_0x4c9f85,_0x41372c),_0x36f6e3['mapper']['bindElementToMarker'](_0x41372c,_0x2e4ba2['markerName']);}};}class wt extends _0x1530f7{['afterInit'](){const _0x4e3d2d=this['editor'];if(!_0x4e3d2d['plugins']['has']('RemoveFormatEditing'))return;_0x4e3d2d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5e9923=this['editor'];_0x5e9923['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x197fe4=>{if('formatBlock'!=_0x197fe4['type']&&'formatInline'!=_0x197fe4['type'])return;const {data:_0x7605ec}=_0x197fe4;return _0x7605ec&&'removeFormat'==_0x7605ec['commandName']?{'type':'format','content':o(_0x5e9923['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x1530f7{['afterInit'](){const _0x2cc9f5=this['editor'];if(!_0x2cc9f5['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17a91b=_0x2cc9f5['plugins']['get']('TrackChangesEditing');_0x17a91b['enableCommand']('goToPreviousRestrictedEditingException'),_0x17a91b['enableCommand']('goToNextRestrictedEditingException');const _0x2cac23=_0x2cc9f5['plugins']['get']('RestrictedEditingModeEditing');_0x2cac23['enableCommand']('trackChanges'),_0x2cac23['enableCommand']('acceptSuggestion'),_0x2cac23['enableCommand']('discardSuggestion'),_0x2cac23['enableCommand']('acceptAllSuggestions'),_0x2cac23['enableCommand']('discardAllSuggestions'),_0x2cac23['enableCommand']('acceptSelectedSuggestions'),_0x2cac23['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x1530f7{static get['requires'](){return[_0x18aeaf];}['init'](){const _0x487491=this['editor'],_0x335550=_0x487491['plugins']['get']('TrackChangesEditing');_0x335550['enableCommand']('shiftEnter'),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x487491),{'priority':'high'}),_0x487491['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x487491),{'priority':'high'}),_0x487491['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2e0e45,_0x502330,_0x51098f)=>{_0x51098f['options']['showSuggestionHighlights']&&ge(_0x487491,{'showActiveMarker':!0x1})(_0x2e0e45,_0x502330,_0x51098f);}),_0x335550['descriptionFactory']['registerElementLabel']('softBreak',_0x8bd1c1=>o(_0x487491['locale'],'ELEMENT_LINE_BREAK',_0x8bd1c1));}}function ge(_0x4f8960,{showActiveMarker:_0x4ad6e4=!0x0}={}){return(_0x4d9e2d,_0x9123b9,_0x1174fa)=>{const _0x3b20b5=_0x4f8960['plugins']['get']('TrackChangesEditing');if(!_0x1174fa['consumable']['test'](_0x9123b9['markerRange'],_0x4d9e2d['name']))return;const _0xbf1330=_0x4f8960['model'];for(const _0x26c020 of _0x9123b9['markerRange']['getItems']()){if(!_0x26c020['is']('element','softBreak'))continue;const _0x31b0c3='deletion'==_0x9123b9['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x5dcf1e}=_0x3b20b5['_splitMarkerName'](_0x9123b9['markerName']),_0x98b409=_0x1174fa['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x31b0c3,'data-author-id':_0x5dcf1e}),_0x2a3914=_0x1174fa['mapper']['toViewPosition'](_0xbf1330['createPositionBefore'](_0x26c020));_0x4ad6e4&&_0x3b20b5['activeMarkers']['includes'](_0x9123b9['markerName'])&&_0x1174fa['writer']['addClass']('ck-suggestion-marker--active',_0x98b409),_0x1174fa['writer']['insert'](_0x2a3914,_0x98b409),_0x1174fa['mapper']['bindElementToMarker'](_0x98b409,_0x9123b9['markerName']);}};}class St extends _0x1530f7{['afterInit'](){const _0x87268b=this['editor'],_0x26098b=_0x87268b['model'],_0x468c0f=_0x87268b['locale'];if(!_0x87268b['plugins']['has']('StandardEditingModeEditing'))return;const _0x2b96b6=_0x87268b['plugins']['get']('TrackChangesEditing'),_0x56ecf4='restrictedEditingException',_0x558db9=_0x87268b['commands']['get'](_0x56ecf4);_0x2b96b6['enableCommand'](_0x56ecf4,(_0x48925e,_0x309cbb={})=>{const _0x148987=_0x26098b['document']['selection'];if(_0x148987['isCollapsed'])return void _0x48925e(_0x309cbb);const _0x54200c=void 0x0!==_0x309cbb['forceValue']?_0x309cbb['forceValue']:!_0x558db9['value'];_0x26098b['change'](()=>{const _0x24fa65=Array['from'](_0x148987['getRanges']());for(const _0x44a211 of _0x24fa65){const _0x29cb7d=_0x54200c?[_0x44a211]:io(_0x56ecf4,_0x44a211,_0x26098b);for(const _0x44ffa4 of _0x29cb7d)_0x2b96b6['markInlineFormat'](_0x44ffa4,{'commandName':_0x56ecf4,'commandParams':[{'forceValue':_0x54200c}]});}});}),_0x2b96b6['descriptionFactory']['registerDescriptionCallback'](_0x23c2c2=>{if('formatBlock'!=_0x23c2c2['type']&&'formatInline'!=_0x23c2c2['type'])return;const {data:_0x2c2932}=_0x23c2c2;return _0x2c2932&&_0x2c2932['commandName']==_0x56ecf4?_0x2c2932['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x468c0f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x1530f7{['afterInit'](){const _0x3ef964=this['editor'];if(!_0x3ef964['plugins']['has']('Style')||!_0x3ef964['plugins']['has']('DataSchema'))return;const _0x479720=_0x3ef964['plugins']['get']('TrackChangesEditing'),_0x43634a=_0x3ef964['locale'],_0x31c410=_0x3ef964['config']['get']('style')||{},_0x2efde3=_0x3ef964['plugins']['get']('GeneralHtmlSupport'),_0x4d6ae2=_0x3ef964['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3ef964['plugins']['get']('DataSchema'),_0x31c410['definitions']);_0x479720['enableDefaultAttributesIntegration']('style');const _0x56bacb=new Set();for(const _0x5acc70 of _0x4d6ae2['block']){const _0x21dba9=_0x2efde3['getGhsAttributeNameForElement'](_0x5acc70['element']);_0x56bacb['add'](_0x21dba9);}const _0x53ad44=new Set();for(const _0xb98444 of _0x4d6ae2['inline']){const _0x350d6f=_0x2efde3['getGhsAttributeNameForElement'](_0xb98444['element']);_0x53ad44['add'](_0x350d6f);for(const _0x413916 of _0xb98444['ghsAttributes'])_0x53ad44['add'](_0x413916);}for(const _0x18115c of _0x56bacb)_0x479720['registerBlockAttribute'](_0x18115c),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x18115c,o(_0x43634a,'FORMAT_STYLE'));for(const _0x5304e1 of _0x53ad44)_0x479720['registerInlineAttribute'](_0x5304e1),_0x479720['descriptionFactory']['registerAttributeLabel'](_0x5304e1,o(_0x43634a,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1ba212=this['editor'],_0x39380e=_0x1ba212['locale'];_0x1ba212['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3e2123=>{if('formatBlock'!=_0x3e2123['type']&&'formatInline'!=_0x3e2123['type'])return;const {data:_0xe13f6}=_0x3e2123;return _0xe13f6&&'style'===_0xe13f6['commandName']?_0xe13f6['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x39380e,'*Set\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x39380e,'*Remove\x20format:*\x20%0',_0xe13f6['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x1530f7{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x43e45e){super(_0x43e45e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3ee063=this['editor'],_0x2ac459=_0x3ee063['model']['document']['selection'];if(!_0x3ee063['plugins']['has']('TableEditing'))return;const _0x28f57a=_0x3ee063['locale'],_0x9aeab2=_0x3ee063['plugins']['get']('TrackChangesEditing'),_0x5f2193=_0x3ee063['plugins']['get']('TableUtils');_0x9aeab2['descriptionFactory']['registerElementLabel']('table',_0x2953c0=>o(_0x28f57a,'ELEMENT_TABLE',_0x2953c0)),this['_setupColumnsRowsFixing'](),_0x9aeab2['enableCommand']('insertTable'),_0x9aeab2['enableCommand']('selectTableRow'),_0x9aeab2['enableCommand']('selectTableColumn');for(const _0x49ef01 of['insertTableRowAbove','insertTableRowBelow']){const _0x26d84a=_0x3ee063['commands']['get'](_0x49ef01);_0x9aeab2['enableCommand'](_0x49ef01,_0xb48fa8=>{_0x3ee063['model']['change'](_0x5ac78c=>{_0xb48fa8();const _0x5c33d8='above'===_0x26d84a['order'],_0x32a40e=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x57c7fa=_0x5f2193['getRowIndexes'](_0x32a40e),_0xe64bd5=_0x5c33d8?_0x57c7fa['first']-0x1:_0x57c7fa['last']+0x1,_0x4afefd=_0x32a40e[0x0]['findAncestor']('table'),_0x2e7044=_0x5f2193['createTableWalker'](_0x4afefd,{'startRow':_0xe64bd5,'endRow':_0xe64bd5}),_0x4ddc47=Array['from'](_0x2e7044)['map'](_0x100df5=>_0x5ac78c['createRangeOn'](_0x100df5['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x4ddc47,'tableRow');});});}for(const _0x11f924 of['insertTableColumnLeft','insertTableColumnRight']){const _0x17dbfb=_0x3ee063['commands']['get'](_0x11f924);_0x9aeab2['enableCommand'](_0x11f924,_0x14231a=>{_0x3ee063['model']['change'](_0xb7d5cb=>{_0x14231a();const _0x17d5c5='left'===_0x17dbfb['order'],_0x13dd31=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x34febb=_0x5f2193['getColumnIndexes'](_0x13dd31),_0x779e96=_0x17d5c5?_0x34febb['first']-0x1:_0x34febb['last']+0x1,_0x469ea9=_0x13dd31[0x0]['findAncestor']('table'),_0x2abf1c=_0x5f2193['createTableWalker'](_0x469ea9,{'startRow':0x0,'column':_0x779e96,'includeAllSlots':!0x1}),_0x53f555=Array['from'](_0x2abf1c)['map'](_0x1a8cb4=>_0xb7d5cb['createRangeOn'](_0x1a8cb4['cell']));_0x9aeab2['markMultiRangeInsertion'](_0x53f555,'tableColumn');});});}for(const _0x32aec3 of['removeTableRow','removeTableColumn']){const _0x325ce7=_0x32aec3['substr'](0xb),_0xa376c9=_0x325ce7['toLowerCase'](),_0x10f1d9=_0xa376c9['substr'](0x0,0x3)+'span',_0x49aca3='table'+_0x325ce7,_0x129386='min'+_0x325ce7,_0x47fc59='max'+_0x325ce7;_0x9aeab2['enableCommand'](_0x32aec3,()=>{_0x3ee063['model']['change'](_0x35f958=>{const _0x1c0ff8=_0x5f2193['getSelectionAffectedTableCells'](_0x2ac459),_0x2f7cc3=_0x1c0ff8[0x0]['findAncestor']('table');let _0xa8fb38;if('removeTableRow'==_0x32aec3){const _0x4ffd95=_0x5f2193['getRowIndexes'](_0x1c0ff8);_0xa8fb38={'startRow':_0x4ffd95['first'],'endRow':_0x4ffd95['last'],'includeAllSlots':!0x0};}else{const _0x1de73f=_0x5f2193['getColumnIndexes'](_0x1c0ff8);_0xa8fb38={'startColumn':_0x1de73f['first'],'endColumn':_0x1de73f['last'],'includeAllSlots':!0x0};}const _0x2c8621=_0x5f2193['createTableWalker'](_0x2f7cc3,_0xa8fb38),_0x1d318b=Array['from'](_0x2c8621)['map'](({cell:_0x26df83})=>_0x26df83),_0x247b49=be(_0x1d318b['filter'](_0x4b496c=>_0x4b496c['hasAttribute'](_0x10f1d9))),_0x117e2a=be(_0x1d318b['filter'](_0x191163=>!_0x191163['hasAttribute'](_0x10f1d9)))['map'](_0x130205=>_0x35f958['createRangeOn'](_0x130205)),_0x4c34cf=_0x9aeab2['markMultiRangeDeletion'](_0x117e2a,_0x49aca3);if(_0x4c34cf&&('tableRow'==_0x4c34cf['subType']||'tableColumn'==_0x4c34cf['subType'])){const _0x390122=this['_getSuggestionCoords'](_0x4c34cf);for(const _0x2b6afe of _0x247b49){const _0xde2d69=_0x35f958['createRangeOn'](_0x2b6afe),_0x263e23=_0x5f2193['getCellLocation'](_0x2b6afe),_0x49ca65=_0x2b6afe['getAttribute'](_0x10f1d9)-0x1,_0x9cda7f=_0x390122[_0x129386],_0x11da65=_0x390122[_0x47fc59];_0x9cda7f<=_0x263e23[_0xa376c9]&&_0x263e23[_0xa376c9]+_0x49ca65<=_0x11da65&&_0x4c34cf['addRange'](_0xde2d69);}}});});}function _0x2816b9(_0x3a9ce8){const _0x4f05a8=Array['from'](_0x2ac459['getRanges']())['map'](_0x13617c=>_0x5018e8['fromRange'](_0x13617c));_0x3ee063['model']['change'](_0x590e17=>{const _0x501fc3=_0x590e17['batch'];_0x3a9ce8=_0x3a9ce8['filter'](_0x509865=>'$graveyard'!=_0x509865['root']['rootName']),_0x590e17['setSelection'](_0x3a9ce8),_0x3ee063['commands']['get']('removeTableRow')['refresh'](),_0x3ee063['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3ee063['model']['enqueueChange'](()=>{_0x3ee063['model']['enqueueChange'](_0x501fc3,_0x31077c=>{const _0x8a6714=_0x4f05a8['filter'](_0x57f58a=>'$graveyard'!=_0x57f58a['root']['rootName']);_0x8a6714['length']>0x0&&_0x31077c['setSelection'](_0x8a6714);for(const _0x374f89 of _0x4f05a8)_0x374f89['detach']();});});});}function _0x11eefe(_0x20a083){_0x3ee063['model']['change'](_0x4609f7=>{const _0x3be534=Array['from'](_0x2ac459['getRanges']())['map'](_0x5dc843=>_0x5018e8['fromRange'](_0x5dc843)),_0x576d61=[];for(const _0x496980 of _0x20a083)for(const _0x4638b6 of _0x496980['getItems']({'shallow':!0x0}))_0x576d61['push'](_0x4638b6);for(const _0x3a6783 of _0x576d61)'$graveyard'!=_0x3a6783['root']['rootName']&&(_0x4609f7['setSelection'](_0x4609f7['createPositionAt'](_0x3a6783,0x0)),_0x3ee063['commands']['get']('removeTableColumn')['refresh'](),_0x3ee063['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x967f36=_0x3be534['filter'](_0x2df6be=>'$graveyard'!=_0x2df6be['root']['rootName']);_0x967f36['length']>0x0&&_0x4609f7['setSelection'](_0x967f36);for(const _0x425c64 of _0x3be534)_0x425c64['detach']();});}function _0x105b1a(_0x186e48,_0xbc49a0){return _0xbc49a0['every'](_0x35fd24=>_0x186e48['some'](_0x39b470=>_0x39b470['end']['isEqual'](_0x35fd24['start'])||_0x35fd24['end']['isEqual'](_0x39b470['start'])));}function _0x539532(_0x50ec98,_0x5885bf){return!_0x50ec98['some'](_0x4eabfc=>_0x5885bf['some'](_0x3ff7df=>_0x4eabfc['isIntersecting'](_0x3ff7df)))&&_0x50ec98['some'](_0x3125bf=>_0x5885bf['some'](_0x5544be=>_0x3125bf['end']['isTouching'](_0x5544be['start'])));}_0x3ee063['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x24dce1,_0x398cef,_0x5df55f)=>{if(!_0x5df55f['options']['showSuggestionHighlights'])return;const _0x5e77b4=_0x398cef['item'];if(!_0x5e77b4)return;const _0x1a5a7c=_0x5df55f['mapper']['toViewElement'](_0x5e77b4);function _0x513d7d(_0x302109){return Array['isArray'](_0x302109)?_0x302109:[_0x302109];}_0x1a5a7c&&'tableCell'===_0x5e77b4['name']&&_0x3654b8(_0x1a5a7c,_0x5df55f['writer'],(_0x1fdcfd,_0x18fce4,_0x51f611)=>_0x51f611['addClass'](_0x513d7d(_0x18fce4['classes']),_0x1fdcfd),(_0x5f3953,_0x5c0441,_0x40e558)=>_0x40e558['removeClass'](_0x513d7d(_0x5c0441['classes']),_0x5f3953));},{'priority':'highest'}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x63d983=>{if('insertion'!=_0x63d983['type']&&'deletion'!=_0x63d983['type'])return;const _0x29d5f5=_0x63d983['getContainedElement']();if(null!=_0x29d5f5&&_0x29d5f5['is']('element','table')){if('insertion'==_0x63d983['type']){const _0x4bc705=_0x63d983['getItems']()['filter'](_0x17ef10=>_0x17ef10['is']('$textProxy'))['map'](_0x4e69f0=>_0x4e69f0['data']);if(_0x4bc705['length'])return{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4bc705['join']('\x20')+'\x22'))};}if('deletion'==_0x63d983['type']){const _0x1b1ba7=_0x63d983['getItems']()['filter'](_0x56b470=>_0x56b470['is']('$textProxy'))['map'](_0x208925=>_0x208925['data']);if(_0x1b1ba7['length'])return{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x1b1ba7['join']('\x20')+'\x22'))};}}}),_0x9aeab2['descriptionFactory']['registerDescriptionCallback'](_0x169a56=>{if('tableRow'==_0x169a56['subType']){const _0x3b6912=_0x169a56['getItems']()['filter'](_0x17d6fa=>_0x17d6fa['is']('$textProxy'))['map'](_0x18cb49=>_0x18cb49['data']),_0x451dcd=this['_getSuggestionCoords'](_0x169a56),_0x143cdb=_0x451dcd['maxRow']-_0x451dcd['minRow']+0x1;if('insertion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};if('deletion'==_0x169a56['type'])return _0x3b6912['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x143cdb,'\x22'+_0x3b6912['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_ROW',_0x143cdb))};}if('tableColumn'==_0x169a56['subType']){const _0x55bd4d=_0x169a56['getItems']()['filter'](_0x5c1080=>_0x5c1080['is']('$textProxy'))['map'](_0x1d7122=>_0x1d7122['data']),_0x1d3fe6=this['_getSuggestionCoords'](_0x169a56),_0x4f9d86=_0x1d3fe6['maxColumn']-_0x1d3fe6['minColumn']+0x1;if('insertion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x28f57a,'*Insert:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};if('deletion'==_0x169a56['type'])return _0x55bd4d['length']?{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4f9d86,'\x22'+_0x55bd4d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x28f57a,'*Remove:*\x20%0',o(_0x28f57a,'ELEMENT_TABLE_COLUMN',_0x4f9d86))};}}),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2816b9),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x11eefe),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x105b1a),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x539532),_0x9aeab2['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x539532);}['_acceptFormatSuggestionCallbackFactory'](){const _0x372095=this['editor'],_0x24c8b9=_0x372095['model']['document']['selection'];return(_0x16051c,_0xcdd7ed)=>{_0x372095['model']['change'](_0x133012=>{const {commandName:_0x59045d,commandParams:_0x186923}=_0xcdd7ed;let _0x16ca72=_0x16051c[0x0]['end']['nodeBefore'];_0x186923&&_0x186923[0x0]&&!0x1===_0x186923[0x0]['forceValue']&&(_0x16ca72=_0x16051c[0x0]['start']['nodeAfter']);const _0x3329bc=_0x133012['createRangeIn'](_0x16ca72);if('$graveyard'==_0x3329bc['root']['rootName'])return;const _0x43daa8=Array['from'](_0x24c8b9['getRanges']())['map'](_0x449bb5=>_0x5018e8['fromRange'](_0x449bb5));_0x133012['setSelection'](_0x3329bc),_0x372095['commands']['get'](_0x59045d)['refresh'](),_0x186923['push']({'forceDefaultExecution':!0x0}),_0x372095['execute'](_0x59045d,..._0x186923);const _0x255970=_0x43daa8['filter'](_0x340110=>'$graveyard'!=_0x340110['root']['rootName']);_0x255970['length']>0x0&&_0x133012['setSelection'](_0x255970);for(const _0xc43abf of _0x43daa8)_0xc43abf['detach']();});};}['_getCoordsForCells'](_0x361a4d){const _0x61144a=this['editor']['plugins']['get']('TableUtils');let _0x44ce5a=Number['MAX_SAFE_INTEGER'],_0x5202c1=Number['MIN_SAFE_INTEGER'],_0x4e3c42=Number['MAX_SAFE_INTEGER'],_0x1853ce=Number['MIN_SAFE_INTEGER'];for(const _0x73f83d of _0x361a4d){if('$graveyard'==_0x73f83d['root']['rootName'])continue;const {row:_0x176415,column:_0x273da3}=_0x61144a['getCellLocation'](_0x73f83d),_0x3f91aa=_0x73f83d['hasAttribute']('rowspan')?_0x73f83d['getAttribute']('rowspan')-0x1:0x0,_0xbbda44=_0x73f83d['hasAttribute']('colspan')?_0x73f83d['getAttribute']('colspan')-0x1:0x0;_0x44ce5a=_0x176415<_0x44ce5a?_0x176415:_0x44ce5a,_0x5202c1=_0x176415+_0x3f91aa>_0x5202c1?_0x176415+_0x3f91aa:_0x5202c1,_0x4e3c42=_0x273da3<_0x4e3c42?_0x273da3:_0x4e3c42,_0x1853ce=_0x273da3+_0xbbda44>_0x1853ce?_0x273da3+_0xbbda44:_0x1853ce;}return{'minRow':_0x44ce5a,'maxRow':_0x5202c1,'minColumn':_0x4e3c42,'maxColumn':_0x1853ce};}['_setupColumnsRowsFixing'](){const _0x581954=this['editor'],_0x274612=_0x581954['plugins']['get']('TrackChangesEditing'),_0x2dbebc=_0x581954['plugins']['get']('TableUtils');_0x581954['model']['document']['on']('change:data',()=>{const _0x158e2c=Array['from'](_0x581954['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x45e0d6,data:_0x3a727b}of _0x158e2c){const {group:_0x508a2b,id:_0x4e7eda,subType:_0x488eae}=_0x274612['_splitMarkerName'](_0x45e0d6);if('suggestion'!=_0x508a2b)continue;if(null!=_0x3a727b['oldRange'])continue;const _0x1f47ac=_0x274612['getSuggestion'](_0x4e7eda);this['_tablePostFixingSubtypes']['includes'](_0x488eae)&&this['_tableSuggestions']['add'](_0x1f47ac);}},{'priority':'low'});const _0x24cbea=(_0x434c94,_0xdf6d88)=>{let _0x5ceaf8=!0x1;const _0x20dc70=_0xdf6d88['createRangeOn'](_0x434c94),_0x38fda8=_0x434c94['findAncestor']('table'),_0x376188=_0x2dbebc['getCellLocation'](_0x434c94);for(const _0x2990e6 of this['_tableSuggestions']){const _0x447f4a=_0x2990e6['subType'],_0x3219a7=_0x447f4a['startsWith']('tablePaste'),_0x9631e3=_0x447f4a['substr'](_0x3219a7?0xa:0x5),_0x450c09=_0x9631e3['toLowerCase'](),_0x295c41=_0x450c09['substr'](0x0,0x3)+'span',_0x518f29='min'+_0x9631e3,_0x520926='max'+_0x9631e3;if(!_0x2990e6['isInContent'])continue;if(_0x38fda8!=_0x2990e6['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x2990e6['isIntersectingWithRange'](_0x20dc70))continue;const _0x839155=_0x434c94['hasAttribute'](_0x295c41)?_0x434c94['getAttribute'](_0x295c41)-0x1:0x0,_0xdd5d3f=this['_getSuggestionCoords'](_0x2990e6),_0x215092=_0xdd5d3f[_0x518f29],_0xc55c9b=_0xdd5d3f[_0x520926];_0x215092<=_0x376188[_0x450c09]&&_0x376188[_0x450c09]+_0x839155<=_0xc55c9b&&(_0x2990e6['addRange'](_0x20dc70),_0x5ceaf8=!0x0);}return _0x5ceaf8;};_0x581954['model']['document']['registerPostFixer'](_0x3e4e7d=>{let _0xf4ff53=!0x1;for(const _0xff4284 of _0x581954['model']['document']['differ']['getChanges']())if('insert'==_0xff4284['type']){if('tableRow'==_0xff4284['name']){for(const _0x48cd65 of _0xff4284['position']['nodeAfter']['getChildren']())_0xf4ff53=_0xf4ff53||_0x24cbea(_0x48cd65,_0x3e4e7d);}else'tableCell'==_0xff4284['name']&&(_0xf4ff53=_0xf4ff53||_0x24cbea(_0xff4284['position']['nodeAfter'],_0x3e4e7d));}return _0xf4ff53;});}['_getSuggestionCoords'](_0x5853bb){return this['_getCoordsForCells'](_0x5853bb['getRanges']()['map'](_0x1ec585=>_0x1ec585['start']['nodeAfter']));}}function be(_0x435e5b){return Array['from'](new Set(_0x435e5b)['values']());}class vt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x56d010=this['editor'],_0x390df4=_0x56d010['model']['document']['selection'],_0x3c7828=_0x56d010['locale'];if(!_0x56d010['plugins']['has']('TableEditing'))return;const _0x119216=_0x56d010['plugins']['get']('TrackChangesEditing'),_0x5d613d=_0x56d010['plugins']['get']('TableUtils'),_0x414259=_0x56d010['plugins']['get'](It);_0x414259['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x119216['enableCommand']('mergeTableCells',()=>{const _0xc533b1=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection']);_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat'](_0xc533b1,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x56d010['commands']['get']('mergeTableCells')['on']('execute',(_0x4db818,_0x203a61)=>{_0x56d010['commands']['get']('trackChanges')['value']&&(_0x203a61['length']>0x0&&_0x203a61[_0x203a61['length']-0x1]&&_0x203a61[_0x203a61['length']-0x1]['forceDefaultExecution']||_0x119216['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4db818['stop']());},{'priority':'highest'});for(const _0xbe291e of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x52d8e4=_0x56d010['commands']['get'](_0xbe291e);_0x119216['enableCommand'](_0xbe291e,()=>{const _0x36cdce=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1a6890=>_0x1a6890['is']('element','tableCell')),_0x2aae31=_0x52d8e4['value'];_0x56d010['model']['change'](()=>{_0x119216['markMultiRangeBlockFormat']([_0x36cdce,_0x2aae31],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x2d280b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x1bfd05=_0x56d010['commands']['get'](_0x2d280b);_0x119216['enableCommand'](_0x2d280b,()=>{const _0x679692=_0x5d613d['getSelectionAffectedTableCells'](_0x56d010['model']['document']['selection'])[0x0],_0x597e0e=_0x679692['findAncestor']('table'),{column:_0x44a968,row:_0x1abf23}=_0x5d613d['getCellLocation'](_0x679692);let _0x4c2d56=[];if('horizontally'==_0x1bfd05['direction']){const _0x4fdf7e=_0x5d613d['createTableWalker'](_0x597e0e,{'startRow':_0x1abf23,'endRow':_0x1abf23,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x4fdf7e)['map'](_0x4c2507=>_0x4c2507['cell']);}else{const _0x900c04=_0x5d613d['createTableWalker'](_0x597e0e,{'column':_0x44a968,'includeAllSlots':!0x0});_0x4c2d56=Array['from'](_0x900c04)['map'](_0x3d2908=>_0x3d2908['cell']);}_0x56d010['model']['change'](_0x8de1a5=>{_0x119216['markBlockFormat'](_0x8de1a5['createRangeOn'](_0x679692),{'commandName':_0x2d280b,'commandParams':[]},_0x4c2d56,_0x2d280b);});});}_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x527917=>{if('formatBlock'!=_0x527917['type']&&'formatInline'!=_0x527917['type'])return;const {data:_0x19f634}=_0x527917;return _0x19f634&&'mergeTableCells'==_0x19f634['commandName']?{'type':'format','content':o(_0x3c7828,'*Merge\x20cells*')}:void 0x0;}),_0x119216['descriptionFactory']['registerDescriptionCallback'](_0x42d0b2=>{if('formatBlock'!=_0x42d0b2['type']&&'formatInline'!=_0x42d0b2['type'])return;const {data:_0x267621}=_0x42d0b2;return _0x267621?'splitTableCellVertically'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x267621['commandName']?{'type':'format','content':o(_0x3c7828,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x175371=_0x414259['_acceptFormatSuggestionCallbackFactory']();for(const _0xfe6ec1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xfe6ec1,'accept',_0x175371);for(const _0x360aed of['splitTableCellVertically','splitTableCellHorizontally'])_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x360aed,'accept',_0x175371);_0x119216['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x541889=>{_0x56d010['model']['change'](_0x2bd42a=>{const _0x55c5e0=Array['from'](_0x390df4['getRanges']())['map'](_0x334f6e=>_0x5018e8['fromRange'](_0x334f6e));_0x2bd42a['setSelection'](_0x541889),_0x56d010['commands']['get']('mergeTableCells')['refresh'](),_0x56d010['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x169bd9=_0x55c5e0['filter'](_0x224ddd=>'$graveyard'!=_0x224ddd['root']['rootName']);_0x169bd9['length']>0x0&&_0x2bd42a['setSelection'](_0x169bd9);for(const _0x133164 of _0x55c5e0)_0x133164['detach']();});});for(const _0x2c6997 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x4891ec=_0x56d010['commands']['get'](_0x2c6997);_0x4891ec['on']('set:isEnabled',(_0x4163bf,_0xe3603b,_0x52e0b6)=>{if(_0x52e0b6){const _0x5169c3=_0x56d010['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5e8304=>_0x5e8304['is']('element','tableCell'));this['_areMergableCells'](_0x4891ec['value'],_0x5169c3)||(_0x4163bf['return']=!0x1,_0x4163bf['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x34854a=this['editor']['commands']['get']('mergeTableCells'),_0x491d26=this['editor']['plugins']['get']('TableUtils');if(!_0x34854a['isEnabled'])return!0x1;const _0x1e1a58=_0x491d26['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3be21a of _0x1e1a58)for(const _0x58a859 of _0x1e1a58)if(_0x3be21a!=_0x58a859&&!this['_areMergableCells'](_0x3be21a,_0x58a859))return!0x1;return!0x0;}['_areMergableCells'](_0x127c66,_0x5cd606){const _0x64f6db=this['editor']['plugins']['get']('TrackChangesEditing'),_0x152a46=this['editor']['model']['createRangeOn'](_0x127c66),_0x179ad1=this['editor']['model']['createRangeOn'](_0x5cd606),_0x52a8a1=new Set(),_0x292b75=new Set();for(const _0x3d62b9 of _0x64f6db['getSuggestions']())if(('insertion'==_0x3d62b9['type']||'deletion'==_0x3d62b9['type']||'mergeTableCells'==_0x3d62b9['subType'])&&_0x3d62b9['isInContent']){for(const _0x161bfd of _0x3d62b9['getRanges']())_0x161bfd['containsRange'](_0x152a46,!0x0)&&_0x52a8a1['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']),_0x161bfd['containsRange'](_0x179ad1,!0x0)&&_0x292b75['add'](_0x3d62b9['type']+':'+_0x3d62b9['author']['id']);}if(_0x52a8a1['size']!=_0x292b75['size'])return!0x1;for(const _0x10210d of _0x52a8a1)if(!_0x292b75['has'](_0x10210d))return!0x1;return!0x0;}}class Ct extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4032b3=this['editor'];if(!_0x4032b3['plugins']['has']('TableEditing'))return;const _0x32f07c=_0x4032b3['locale'],_0x136cfe=_0x4032b3['plugins']['get']('TrackChangesEditing');_0x136cfe['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x136cfe['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x136cfe['registerBlockAttribute']('headingRows'),_0x136cfe['registerBlockAttribute']('headingColumns'),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x32f07c,'FORMAT_HEADER_ROW')),_0x136cfe['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x32f07c,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2b7a06=this['editor']['plugins']['get']('TrackChangesEditing'),_0xb18c50=this['editor']['plugins']['get']('TableUtils'),_0x4a7e6f=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4e271d({showActiveMarker:_0x375c1a=!0x0,setDataAttribute:_0x26e1d6=!0x0}={}){return(_0x24f6c0,_0x176a49,_0x50f061)=>{const {type:_0x47761c,id:_0x7f8fff}=_0x2b7a06['_splitMarkerName'](_0x176a49['markerName']),_0x1c946f=_0x2b7a06['getSuggestion'](_0x7f8fff),_0x33cd43=_0x1c946f['data'];if('formatBlock'!=_0x1c946f['type']||!_0x33cd43||'setTableColumnHeader'!=_0x33cd43['commandName'])return;if(_0x176a49['item'])return void _0x24f6c0['stop']();if(!_0x50f061['consumable']['consume'](_0x176a49['markerRange'],_0x24f6c0['name']))return;const _0x39955b=_0x176a49['markerRange']['start']['nodeAfter'],_0x4454b6=_0x176a49['markerRange']['end']['nodeBefore'],_0x3eb967=_0x39955b['parent']['parent'],{column:_0x216c47}=_0xb18c50['getCellLocation'](_0x39955b),{column:_0x51c79d}=_0xb18c50['getCellLocation'](_0x4454b6);for(let _0x1e570b=_0x216c47;_0x1e570b<=_0x51c79d;_0x1e570b++){const _0x20b15b=_0xb18c50['createTableWalker'](_0x3eb967,{'column':_0x1e570b,'includeAllSlots':!0x1});for(const _0x2a1d8f of _0x20b15b){const _0x269abe=_0x2a1d8f['cell'],_0x2fb276=_0x50f061['mapper']['toViewElement'](_0x269abe);_0x50f061['writer']['addClass']('ck-suggestion-marker-'+_0x47761c,_0x2fb276),_0x26e1d6&&_0x50f061['writer']['setAttribute']('data-suggestion',_0x7f8fff,_0x2fb276),_0x50f061['mapper']['bindElementToMarker'](_0x2fb276,_0x176a49['markerName']),_0x375c1a&&(_0x2b7a06['activeMarkers']['includes'](_0x176a49['markerName'])?_0x50f061['writer']['addClass']('ck-suggestion-marker--active',_0x2fb276):_0x50f061['writer']['removeClass']('ck-suggestion-marker--active',_0x2fb276));}}};}_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x4a7e6f),_0x2b7a06['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x4a7e6f),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4e271d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4a9244,_0x102ed7,_0x529232)=>{_0x529232['options']['showSuggestionHighlights']&&_0x4e271d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4a9244,_0x102ed7,_0x529232);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x45d4f9,_0x14e39c,_0x13ed26)=>{const {type:_0x1c45f5,id:_0x519322}=_0x2b7a06['_splitMarkerName'](_0x14e39c['markerName']),_0x4eb50e=_0x2b7a06['getSuggestion'](_0x519322),_0x13f159=_0x4eb50e['data'];if('formatBlock'!=_0x4eb50e['type']||!_0x13f159||'setTableColumnHeader'!=_0x13f159['commandName'])return;const _0x23dcf5=_0x13ed26['mapper']['markerNameToElements'](_0x14e39c['markerName']);if(_0x23dcf5){for(const _0x151c55 of _0x23dcf5)_0x13ed26['writer']['removeClass']('ck-suggestion-marker-'+_0x1c45f5,_0x151c55),_0x13ed26['writer']['removeClass']('ck-suggestion-marker--active',_0x151c55),_0x13ed26['writer']['removeAttribute']('data-suggestion',_0x151c55),_0x13ed26['mapper']['unbindElementFromMarkerName'](_0x151c55,_0x14e39c['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1a019c=this['editor'],_0x2013bb=_0x1a019c['locale'];function _0x108dcc(_0x58a4d7){return{'type':'format','content':o(_0x2013bb,'*Format:*\x20%0',_0x58a4d7)};}_0x1a019c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394b21=>{if('formatBlock'!=_0x394b21['type'])return;const {data:_0x59986c}=_0x394b21;if(_0x59986c){if('setTableRowHeader'==_0x59986c['commandName']){const _0x5f34ef=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5f34ef?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x59986c['commandName']){const _0x5ddc8b=_0x59986c['commandParams'][0x0]['forceValue'];return _0x108dcc(o(_0x2013bb,_0x5ddc8b?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0xd5687e=>[_0xd5687e,null]));class _t extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x286212=this['editor'];if(!_0x286212['plugins']['has']('TableClipboard'))return;const _0x4282c4=_0x286212['plugins']['get']('TrackChangesEditing'),_0x5406c5=_0x286212['plugins']['get']('TableUtils'),_0x44757c=_0x286212['plugins']['get'](It),_0x4d530d=_0x286212['plugins']['get']('TableClipboard');_0x44757c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x286212['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x286212['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x505b5a=null;_0x286212['model']['on']('insertContent',(_0x4cf310,_0x283554)=>{const [_0x573975,_0x396799]=_0x283554,_0xd8af43=_0x283554[_0x283554['length']-0x1];_0xd8af43&&_0xd8af43['forceDefaultExecution']||_0x4282c4['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25c13c,_0x514426,_0x344365,_0xbb0c68,_0x1c1457){if(_0x514426&&!_0x514426['is']('documentSelection'))return!0x1;const _0x3e15a6=_0x1c1457['getTableIfOnlyTableInContent'](_0x25c13c,_0x344365);if(!_0x3e15a6||!Re(_0x3e15a6,void 0x0,_0xbb0c68))return!0x1;const _0x11cc64=_0xbb0c68['getSelectionAffectedTableCells'](_0x344365['document']['selection']);if(!_0x11cc64['length'])return!0x1;const _0x104ed8=_0x11cc64[0x0]['findAncestor']('table'),_0x59493d=_0xbb0c68['getRowIndexes'](_0x11cc64),_0x58183e=_0xbb0c68['getColumnIndexes'](_0x11cc64),_0x2b6e01={'startRow':_0x59493d['first'],'endRow':_0x59493d['last'],'startColumn':_0x58183e['first'],'endColumn':_0x58183e['last']};return 0x1==_0x11cc64['length']&&(_0x2b6e01['endRow']+=_0xbb0c68['getRows'](_0x3e15a6)-0x1,_0x2b6e01['endColumn']+=_0xbb0c68['getColumns'](_0x3e15a6)-0x1),Re(_0x104ed8,_0x2b6e01,_0xbb0c68);}(_0x573975,_0x396799,_0x286212['model'],_0x5406c5,_0x4d530d)&&(_0x4cf310['stop'](),_0x505b5a={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x286212['model']['change'](()=>{_0x286212['model']['insertContent'](_0x283554[0x0],_0x283554[0x1],_0x283554[0x2],{'forceDefaultExecution':!0x0});const _0x246926=_0x5042b(),{rowInsertionRanges:_0x1bfcf6,columnInsertionRanges:_0x3110b9,insertionRanges:_0x5024d8,deletionRanges:_0x2ecd82,cells:_0x5b021c}=_0x505b5a;_0x1bfcf6['length']&&_0x4282c4['markMultiRangeInsertion'](_0x1bfcf6,'tablePasteRow',{'tablePasteChainId':_0x246926}),_0x3110b9['length']&&_0x4282c4['markMultiRangeInsertion'](_0x3110b9,'tablePasteColumn',{'tablePasteChainId':_0x246926}),_0x5024d8['length']&&(_0x4282c4['markMultiRangeInsertion'](_0x5024d8,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x5024d8['forEach'](_0x5c7cb6=>_0x5c7cb6['detach']?.())),_0x2ecd82['length']&&(_0x4282c4['markMultiRangeDeletion'](_0x2ecd82,'tablePaste',{'tablePasteChainId':_0x246926,'skipNestingCheck':!0x0}),_0x2ecd82['forEach'](_0x1d4ed3=>_0x1d4ed3['detach']?.()));const _0x558819=_0x4282c4['markMultiRangeBlockFormat'](_0x5b021c['map'](({element:_0x5ec851})=>_0x5ec851),{'formatGroupId':_0x5042b()},[],'tablePasteCell',{'tablePasteChainId':_0x246926});if(_0x558819){const _0x50acb8=_0x558819['getMarkers'](),_0x6a9535=[];for(const {element:_0x5f10a8,attributes:_0x5edc81}of _0x5b021c){if(!_0x5edc81)continue;const _0x21a844=_0x286212['model']['createRangeOn'](_0x5f10a8),_0x4531db=_0x50acb8['find'](_0x1468d9=>_0x1468d9['getRange']()['isEqual'](_0x21a844));_0x4531db&&_0x6a9535['push']([_0x4531db['name'],_0x5edc81]);}_0x6a9535['length']&&_0x558819['setAttribute']('markerAttributes',Object['fromEntries'](_0x6a9535));}_0x505b5a=null;}));},{'priority':_0x1bc495['high']+0xa}),_0x286212['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3508c1,_0x397063)=>{const [_0x5bcca3,_0x5bc210,,_0x41e924]=_0x397063;if(!_0x505b5a)return;_0x3508c1['stop']();const _0x25adaf=_0x5bcca3['cell'],_0x378181=_0x5bc210,_0x12cd2b=ke(_0x25adaf),_0x499f0d=ke(_0x378181);_0x3508c1['return']=_0x25adaf;let _0xb1f0be=null,_0x2ab43e=null;if(_0x499f0d||_0x12cd2b){if(_0x12cd2b&&!_0x499f0d){_0x41e924['remove'](_0x25adaf['getChild'](0x0));for(const _0x24f64c of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x24f64c,_0x25adaf,'end');const _0x46fd2f=_0x505b5a['rowInsertionIndexes']['includes'](_0x5bcca3['row']),_0x24c240=_0x505b5a['columnInsertionIndexes']['includes'](_0x5bcca3['column']);_0x46fd2f||_0x24c240||(_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeIn'](_0x25adaf)));}else _0x499f0d&&!_0x12cd2b&&(_0x2ab43e=_0x41e924['createRangeIn'](_0x25adaf));}else{const _0x24c492=_0x41e924['createElement']('tableCellSuggestion'),_0x67c95d=_0x41e924['createElement']('tableCellSuggestion');_0x41e924['wrap'](_0x41e924['createRangeIn'](_0x25adaf),_0x67c95d),_0x41e924['insert'](_0x24c492,_0x25adaf,0x0);for(const _0x31c257 of Array['from'](_0x378181['getChildren']()))_0x41e924['insert'](_0x31c257,_0x24c492,'end');_0xb1f0be=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x24c492)),_0x2ab43e=_0x5018e8['fromRange'](_0x41e924['createRangeOn'](_0x67c95d));}const _0x2561e4=Array['from'](_0x378181['getAttributes']())['filter'](([_0xc11f56])=>Pe['includes'](_0xc11f56));_0x505b5a['cells']['push']({'element':_0x25adaf,'attributes':_0x2561e4['length']?Object['fromEntries'](_0x2561e4):null}),_0xb1f0be&&_0x505b5a['insertionRanges']['push'](_0xb1f0be),_0x2ab43e&&_0x505b5a['deletionRanges']['push'](_0x2ab43e);},{'priority':'high'}),_0x5406c5['on']('insertColumns',(_0x1339eb,_0x1aede5)=>{const [_0x4cbca1,_0x52a60e={}]=_0x1aede5;if(!_0x505b5a)return;const _0x4efbd2=_0x52a60e['at']||0x0,_0x296208=_0x52a60e['columns']||0x1;_0x505b5a['columnInsertionIndexes']=new Array(_0x296208)['fill'](_0x4efbd2)['map']((_0x242a34,_0x8961)=>_0x242a34+_0x8961);for(const {cell:_0x396c58}of _0x5406c5['createTableWalker'](_0x4cbca1,{'startColumn':_0x4efbd2,'endColumn':_0x4efbd2+_0x296208-0x1}))_0x505b5a['columnInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x396c58));},{'priority':'low'}),_0x5406c5['on']('insertRows',(_0x404008,_0x2c6260)=>{const [_0x4dba0b,_0xc1d46={}]=_0x2c6260;if(!_0x505b5a)return;const _0x4bcaa7=_0xc1d46['at']||0x0,_0x3109dd=_0xc1d46['rows']||0x1;_0x505b5a['rowInsertionIndexes']=new Array(_0x3109dd)['fill'](_0x4bcaa7)['map']((_0x13595a,_0x3c73bf)=>_0x13595a+_0x3c73bf);for(const {cell:_0x14c857}of _0x5406c5['createTableWalker'](_0x4dba0b,{'startRow':_0x4bcaa7,'endRow':_0x4bcaa7+_0x3109dd-0x1}))_0x505b5a['rowInsertionRanges']['push'](_0x286212['model']['createRangeOn'](_0x14c857));},{'priority':'low'}),_0x4282c4['descriptionFactory']['registerDescriptionCallback'](_0x29db9c=>{if(_0x29db9c['subType']&&_0x29db9c['subType']['startsWith']('tablePaste'))return _0x29db9c['previous']?{}:{'type':'insertion','content':o(_0x286212['locale'],'*Replace\x20table\x20cells*')};});const _0x339583=()=>!0x1;for(const _0xdbcd4 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('deletion',_0xdbcd4,'join',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xdbcd4,'join',_0x339583);_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x339583),_0x4282c4['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x399e29,_0x817d70,_0x229e19)=>{const _0x46530a=_0x399e29['map'](_0x432c86=>_0x432c86['getContainedElement']())['filter'](_0x805690=>_0x805690),_0x14e09c=new Map(_0x46530a['map'](_0x4becea=>[_0x4becea,null]));if(_0x505b5a){for(const {element:_0x261319,attributes:_0x57a9b6}of _0x505b5a['cells'])_0x57a9b6&&_0x14e09c['set'](_0x261319,_0x57a9b6);}else{if(_0x229e19&&_0x229e19['markerAttributes'])for(const [_0x12c105,_0x4e173c]of Object['entries'](_0x229e19['markerAttributes'])){const _0x524d9c=_0x286212['model']['markers']['get'](_0x12c105),_0x3eea98=_0x524d9c?_0x524d9c['getRange']()['getContainedElement']():null;_0x3eea98&&_0x14e09c['set'](_0x3eea98,_0x4e173c);}}_0x286212['model']['change'](_0xbf58b9=>{for(const [_0x1dde17,_0x5918cf]of _0x14e09c)_0xbf58b9['setAttributes']({...we,..._0x5918cf},_0x1dde17);});});const _0x160503=(_0x1e9f60,_0x47e877)=>{_0x4282c4['_suggestionFactory']['registerCustomCallback'](_0x1e9f60,'tablePaste',_0x47e877,(_0x21ca51,_0x25e4c6,_0x279aad)=>{_0x286212['model']['change'](_0x542064=>{const _0xc60924=[];for(const _0x50f4dc of _0x21ca51){const _0x5c1b5f=_0x50f4dc['start']['nodeAfter'];_0x5c1b5f['is']('element','tableCellSuggestion')&&_0xc60924['push'](_0x5c1b5f);}_0x4282c4['_suggestionFactory']['getSuggestionCallback'](_0x1e9f60,null,_0x47e877)(_0x21ca51,_0x25e4c6,_0x279aad);for(const _0x1e4ea5 of _0xc60924)'$graveyard'!=_0x1e4ea5['root']['rootName']&&_0x542064['unwrap'](_0x1e4ea5);});});};_0x160503('insertion','accept'),_0x160503('insertion','discard'),_0x160503('deletion','accept'),_0x160503('deletion','discard'),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1e77da=>{const _0x137086=_0x1e77da['map'](_0x53eb72=>_0x53eb72['getContainedElement']()),_0x588fe7=_0x137086[0x0]['findAncestor']('table'),{minRow:_0x4e1c72,maxRow:_0x760cec}=_0x44757c['_getCoordsForCells'](_0x137086);_0x5406c5['removeRows'](_0x588fe7,{'at':_0x4e1c72,'rows':_0x760cec-_0x4e1c72+0x1});}),_0x4282c4['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5bfe20=>{const _0x444b13=_0x5bfe20['map'](_0x529eac=>_0x529eac['getContainedElement']()),_0xc9a34a=_0x444b13[0x0]['findAncestor']('table'),{minColumn:_0x92e429,maxColumn:_0x2d1670}=_0x44757c['_getCoordsForCells'](_0x444b13);_0x5406c5['removeColumns'](_0xc9a34a,{'at':_0x92e429,'columns':_0x2d1670-_0x92e429+0x1});});const _0x42f435=(_0xafdbc6,_0x21ec73)=>{if(!_0x21ec73['subType']||!_0x21ec73['subType']['startsWith']('tablePaste'))return;const _0x23ccd2=_0x21ec73['attributes']['tablePasteChainId'],_0x3c6747=_0x4282c4['getSuggestions']()['filter'](_0xe8da7d=>_0xe8da7d['isInContent']&&_0xe8da7d['attributes']&&_0xe8da7d['attributes']['tablePasteChainId']==_0x23ccd2);_0x3c6747['length']&&_0x21ec73['getAllAdjacentSuggestions']()['length']!=_0x3c6747['length']&&_0x3c6747['reduce']((_0x477a0a,_0xb00843)=>(_0x477a0a['next']=_0xb00843,_0xb00843['previous']=_0x477a0a,_0xb00843));};function _0x3ea65d(_0x4efc81,_0x164eb6=!0x0){const {id:_0x2f8372,authorId:_0x57e9f6}=_0x4282c4['_splitMarkerName'](_0x4efc81['markerName']),_0x39f568=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5826c9=_0x4282c4['activeMarkers']['includes'](_0x4efc81['markerName']);return _0x5826c9&&_0x39f568['push']('ck-suggestion-marker--active'),{'classes':_0x39f568,'attributes':{'data-suggestion':_0x2f8372,'data-author-id':_0x57e9f6},'priority':_0x5826c9&&_0x164eb6?0xbc2:0xbb8};}_0x4282c4['on']('suggestionLoaded',_0x42f435,{'priority':'high'}),_0x4282c4['on']('suggestionUnloaded',_0x42f435,{'priority':'high'}),_0x286212['model']['document']['registerPostFixer'](()=>{let _0x53edeb=!0x1;const _0x6c261=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x10cc21,data:_0x4ab96d}of _0x6c261){const {group:_0x2884ad,type:_0x3fb1d8,id:_0x260372}=_0x4282c4['_splitMarkerName'](_0x10cc21);if('suggestion'!=_0x2884ad||'deletion'!=_0x3fb1d8||_0x4ab96d['oldRange'])continue;if(!_0x4282c4['hasSuggestion'](_0x260372))continue;const _0x19828c=_0x4282c4['getSuggestion'](_0x260372)['getRanges'](),_0x4b2628=_0x286212['plugins']['get']('Users')['me'];for(const _0x1f0a33 of _0x4282c4['getSuggestions']()){if(!_0x1f0a33['isInContent']||_0x1f0a33['author']!=_0x4b2628)continue;if('formatBlock'!=_0x1f0a33['type']||'tablePasteCell'!=_0x1f0a33['subType'])continue;if(_0x1f0a33['getRanges']()['every'](_0x2389fc=>_0x19828c['some'](_0x1f5970=>_0x1f5970['containsRange'](_0x2389fc,!0x0)))){for(const _0x791d56 of _0x1f0a33['getAllAdjacentSuggestions']())_0x791d56['isInContent']&&(_0x791d56['discard'](),_0x53edeb=!0x0);}}}return _0x53edeb;}),_0x286212['model']['document']['registerPostFixer'](_0x3e0b16=>{const _0x310308=_0x286212['commands']['get']('redo');if(!_0x310308||!_0x310308['_createdBatches']['has'](_0x3e0b16['batch']))return!0x1;let _0x36b98c=!0x1;const _0x48f4ce=_0x286212['plugins']['get']('Users')['me'],_0x40f9ff=_0x286212['model']['document']['differ']['getChanges'](),_0x14d59b=Array['from'](_0x286212['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x2104bb,data:_0xa559ba})=>{const {group:_0x2efaef,subType:_0x1578c5,authorId:_0x56bd06}=_0x4282c4['_splitMarkerName'](_0x2104bb);return'suggestion'==_0x2efaef&&'tablePaste'==_0x1578c5&&_0x56bd06==_0x48f4ce['id']&&!_0xa559ba['oldRange'];});for(const _0x519933 of _0x40f9ff){if('insert'!=_0x519933['type']||'tableCellSuggestion'!=_0x519933['name']||0x1!=_0x519933['length'])continue;const _0x3d5d7e=_0x3e0b16['createRange'](_0x519933['position'],_0x519933['position']['getShiftedBy'](0x1));if(!_0x14d59b['find'](({data:_0x5a9485})=>_0x5a9485['newRange']['isEqual'](_0x3d5d7e))){for(const {name:_0x4dac1e,data:_0x375b2a}of _0x14d59b)if(_0x3d5d7e['containsRange'](_0x375b2a['newRange'])){_0x3e0b16['updateMarker'](_0x4dac1e,{'range':_0x3d5d7e}),_0x36b98c=!0x0;break;}}}return _0x36b98c;}),_0x286212['model']['document']['registerPostFixer'](_0x212f22=>{let _0x429437=!0x1;const _0xe4a013=_0x286212['plugins']['get']('Users')['me'],_0x3e9025=_0x4282c4['getSuggestions']()['filter'](_0x365fa0=>_0x365fa0['isInContent']&&_0x365fa0['author']==_0xe4a013),_0x5c9aa1=new Set(),_0x18bdbb=new Set();for(const _0x12a71a of _0x3e9025)if('tablePaste'==_0x12a71a['subType'])for(const _0x2a6cc3 of _0x12a71a['getMarkers']()){const _0x2d334b=_0x2a6cc3['getRange']()['getContainedElement']();if(_0x2d334b){if(_0x2d334b['is']('element','tableCellSuggestion')&&ke(_0x2d334b)){_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x5c9aa1['add'](_0x2d334b),_0x429437=!0x0;const _0x476986=_0x2d334b['nextSibling'],_0x5899c0=_0x2d334b['previousSibling'],_0xdd245=_0x476986&&_0x476986['is']('element','tableCellSuggestion'),_0x2c2a7c=_0x5899c0&&_0x5899c0['is']('element','tableCellSuggestion');_0xdd245&&!_0x5c9aa1['has'](_0x476986)&&_0x18bdbb['add'](_0x476986),_0x2c2a7c&&!_0x5c9aa1['has'](_0x5899c0)&&_0x18bdbb['add'](_0x5899c0);}else _0x2d334b['is']('element','paragraph')&&_0x2d334b['isEmpty']&&(_0x12a71a['removeMarker'](_0x2a6cc3['name']),_0x429437=!0x0);}}else{if('tablePasteCell'==_0x12a71a['subType']){if(!_0x12a71a['attributes']||!_0x12a71a['attributes']['tablePasteChainId'])continue;const _0x49c97b=_0x12a71a['attributes']['markerAttributes'];if(_0x49c97b&&Object['keys'](_0x49c97b)['length'])continue;const _0x2944cf=_0x12a71a['attributes']['tablePasteChainId'];let _0x1044fb=!0x0,_0x6614f2=!0x0;for(const _0x224aa6 of _0x3e9025)if(_0x224aa6['subType']&&_0x224aa6['subType']['startsWith']('tablePaste')){if(!_0x224aa6['attributes']['tablePasteChainId']){_0x6614f2=!0x1;break;}if(_0x224aa6['id']!=_0x12a71a['id']&&_0x224aa6['attributes']['tablePasteChainId']==_0x2944cf){_0x1044fb=!0x1;break;}}_0x6614f2&&_0x1044fb&&(_0x12a71a['removeMarkers'](),_0x429437=!0x0);}}for(const _0x5a79eb of _0x5c9aa1)_0x212f22['remove'](_0x5a79eb);for(const _0x54f548 of _0x18bdbb)_0x212f22['unwrap'](_0x54f548);return _0x429437;}),_0x286212['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x346ef7=>_0x3ea65d(_0x346ef7),'converterPriority':'high'}),_0x286212['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x2a1a28,_0x55ffda)=>_0x55ffda['options']['showSuggestionHighlights']?_0x3ea65d(_0x2a1a28,!0x1):null,'converterPriority':'high'});const _0x52f9bf=_0x286212['editing']['view'];this['listenTo'](_0x52f9bf['document'],'clipboardOutput',(_0x4da268,_0x5a4a9b)=>{const _0xb22ef9=[];for(const _0x2a3d1b of _0x52f9bf['createRangeIn'](_0x5a4a9b['content'])['getItems']())_0x2a3d1b['is']('element','suggestion-td')&&_0xb22ef9['push'](_0x2a3d1b);_0x52f9bf['change'](_0x2f39b5=>{for(const _0x1bbaf6 of _0xb22ef9)_0x2f39b5['move'](_0x2f39b5['createRangeIn'](_0x1bbaf6),_0x2f39b5['createPositionBefore'](_0x1bbaf6)),_0x2f39b5['remove'](_0x1bbaf6);});});}}function ke(_0x3650b4){if(_0x3650b4['isEmpty'])return!0x0;const _0x46da5c=_0x3650b4['getChild'](0x0);return _0x46da5c['is']('element','paragraph')&&_0x46da5c['isEmpty'];}function Re(_0x5f1476,_0x3fcce1={},_0x196eda){for(const {isAnchor:_0x563df5,cellHeight:_0x4f4f47,cellWidth:_0x3d7590}of _0x196eda['createTableWalker'](_0x5f1476,{'includeAllSlots':!0x0,..._0x3fcce1}))if(!_0x563df5||0x1!=_0x4f4f47||0x1!=_0x3d7590)return!0x1;return!0x0;}class Nt extends _0x1530f7{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2a7a5e=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a7a5e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2a7a5e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2a7a5e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2a7a5e['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4e0af5,_0xdb212a){const _0x2fa7fd=this['editor']['plugins']['get']('TrackChangesEditing'),_0xc7f95f=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x38b7a7=_0xdb212a['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3b3609=_0xc7f95f['getColumnGroupElement'](_0x38b7a7);let _0x48b7a1=_0x3b3609?_0xc7f95f['getTableColumnsWidths'](_0x3b3609):null,_0xb7a80a=_0x38b7a7['getAttribute']('tableWidth')||null;const _0x334b8c=_0xdb212a['tableWidth']||_0xb7a80a,_0x372d1b=_0xdb212a['columnWidths']||_0x48b7a1,_0x50a8f4=this['editor']['plugins']['get']('Users')['me'];for(const _0x253c04 of _0x2fa7fd['getSuggestions']()){const _0x251e15=_0x253c04['getContainedElement']();if('resizeTable'===_0x253c04['subType']&&_0x251e15===_0x38b7a7){_0x253c04['author']!==_0x50a8f4&&_0x253c04['discard']();const _0x53694c=_0x253c04['data']['commandParams'];_0xb7a80a=_0x53694c[0x0]['tableWidth'],_0x48b7a1=_0x53694c[0x0]['columnWidths'];break;}}_0x4e0af5({'table':_0x38b7a7,'tableWidth':_0x334b8c,'columnWidths':_0x372d1b}),_0x2fa7fd['markBlockFormat'](_0x38b7a7,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xb7a80a,'columnWidths':_0x48b7a1}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1be920){if('formatBlock'!=_0x1be920['type']&&'formatInline'!=_0x1be920['type'])return;const {data:_0x7dc069}=_0x1be920;if(_0x7dc069&&'resizeTable'===_0x7dc069['formatGroupId']){const _0x4477c2='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x4477c2)};}}}class Dt extends _0x1530f7{['afterInit'](){const _0xf63db2=this['editor'];_0xf63db2['plugins']['has']('Template')&&_0xf63db2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x1530f7{['afterInit'](){const _0x548309=this['editor'];if(!_0x548309['commands']['get']('insertTableOfContents'))return;_0x548309['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x503d42=_0x548309['plugins']['get']('TrackChangesEditing'),_0x157089=_0x548309['locale'];_0x503d42['descriptionFactory']['registerElementLabel']('tableOfContents',_0x165507=>o(_0x157089,'ELEMENT_TABLE_OF_CONTENTS',_0x165507));}}class $t extends _0x1530f7{['afterInit'](){const _0x2dc09e=this['editor'];if(!_0x2dc09e['plugins']['has']('Title'))return;const _0x2a4a21=_0x2dc09e['plugins']['get']('TrackChangesEditing');_0x2a4a21['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x2dc09e['locale'],'ELEMENT_TITLE')),_0x2dc09e['model']['document']['registerPostFixer'](_0x446968=>{let _0x1475cd=!0x1;const _0x1bac9d=Array['from'](_0x2dc09e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xe75fe7,data:_0x36a219}of _0x1bac9d){const {group:_0x420265}=_0x2a4a21['_splitMarkerName'](_0xe75fe7);if('suggestion'!==_0x420265||!_0x36a219['newRange'])continue;const _0x2625b3=_0x36a219['newRange'],_0xd64177=_0x2625b3['end']['nodeBefore'];if(!_0xd64177||!_0xd64177['is']('element','title-content'))continue;if(!_0x2625b3['start']['isTouching'](_0x2625b3['end']))continue;const _0x33323d=_0x2dc09e['model']['schema']['getNearestSelectionRange'](_0x2625b3['end'],'forward');if(_0x33323d&&_0x33323d['isCollapsed']){const _0x2936df=_0x446968['createRange'](_0x2625b3['start'],_0x33323d['start']);_0x2936df['isEqual'](_0x2625b3)||(_0x446968['updateMarker'](_0xe75fe7,{'range':_0x2936df}),_0x1475cd=!0x0);}_0x1475cd||(_0x446968['removeMarker'](_0xe75fe7),_0x1475cd=!0x0);}return _0x1475cd;});}}class Bt extends _0x1530f7{['afterInit'](){const _0x173148=this['editor'],_0x2bf7a7=_0x173148['plugins']['get']('TrackChangesEditing');_0x173148['plugins']['has']('UndoEditing')&&(_0x2bf7a7['enableCommand']('undo'),_0x2bf7a7['enableCommand']('redo'));}}class xt extends _0x1530f7{static get['requires'](){return[It];}['afterInit'](){const _0x4cee2e=this['editor'];if(!_0x4cee2e['plugins']['has']('TableCaptionEditing'))return;_0x4cee2e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x1530f7{['tableProperties'];['tableCellProperties'];constructor(_0x5881e5){super(_0x5881e5),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 _0x2cb27e=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x2331f9 of this['tableProperties'])_0x2cb27e['enableCommand'](_0x2331f9,(_0x3d90ea,_0xed0525)=>{const _0x1e7545=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x2331f9,[_0x1e7545],this['tableProperties'],'tableProperties',_0x3d90ea,_0xed0525);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x2e0ede,_0x28b6e4)=>this['handleDiscardAction'](this['tableProperties'],_0x2e0ede,_0x28b6e4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x6e4940 of this['tableCellProperties'])_0x2cb27e['enableCommand'](_0x6e4940,(_0x2d96f4,_0x57c4c0)=>{const _0x138443=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x6e4940,_0x138443,this['tableCellProperties'],'tableCellProperties',_0x2d96f4,_0x57c4c0);});_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2cb27e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3c9a72,_0x3a2bd4)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3c9a72,_0x3a2bd4)),_0x2cb27e['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2cb27e['descriptionFactory']['registerDescriptionCallback'](_0x59fb8a=>this['handleSuggestionDescription'](_0x59fb8a));}['_handlePropertyChange'](_0x40a9e8,_0x2753cf,_0x37b3bd,_0x48b526,_0x1f210,_0x3ab9ad){const _0x50f352=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3ab9ad['batch'],()=>{for(const _0x1b7267 of _0x2753cf){if(this['_getSuggestion'](_0x1b7267,_0x48b526))_0x1f210(_0x3ab9ad);else{const _0xd3b141={};for(const _0x5d2934 of _0x37b3bd){const _0x46412f=_0x1b7267['getAttribute'](_0x5d2934);void 0x0!==_0x46412f&&(_0xd3b141[_0x5d2934]=_0x46412f);}_0x1f210(_0x3ab9ad),_0x50f352['markBlockFormat'](_0x1b7267,{'commandParams':[_0xd3b141]},[],_0x48b526);}}});}['handleDiscardAction'](_0x4c9b63,_0x309806,_0x22c214){const _0x2abc57=_0x309806[0x0]['start']['nodeAfter'],_0x47dd3b=_0x22c214['commandParams'][0x0];this['editor']['model']['change'](_0x2c67c1=>{for(const _0x25e927 of _0x4c9b63)void 0x0!==_0x47dd3b[_0x25e927]?_0x2c67c1['setAttribute'](_0x25e927,_0x47dd3b[_0x25e927],_0x2abc57):_0x2c67c1['removeAttribute'](_0x25e927,_0x2abc57);});}['handleSuggestionDescription'](_0x1d24a5){if(_0x1d24a5['data'])switch(_0x1d24a5['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'](_0x2de7cd,_0x4d45a2){const _0x35dfbb=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x555475 of _0x35dfbb['getSuggestions']({'skipNotAttached':!0x0})){const _0x22d6f9=_0x555475['getContainedElement']();if(_0x555475['subType']===_0x4d45a2&&_0x22d6f9===_0x2de7cd)return _0x555475;}return null;}}const m='$elementName';class p extends _0x1530f7{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d313f,_0x3a8f2,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(_0x33645f){function _0xfe89bc(_0x4aba2f){return _0x4aba2f['map'](_0x409e54=>String['fromCharCode'](_0x409e54))['join']('');}super(_0x33645f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x11f27c,_0x46f5f7,_0x594a18,_0x31c90e)=>{this['_model']['change'](()=>{for(const _0x143087 of[..._0x31c90e,..._0x594a18])this['_model']['markers']['has'](_0x143087)&&_0x33645f['editing']['reconvertMarker'](_0x143087);});}),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']=_0x33645f['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(),_0x33645f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x33645f['config']['get']('trackChanges.trackFormatChanges'),_0x33645f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x33645f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x33645f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xfe89bc([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xfe89bc([0x34,0x30,0x34,0x38,0x31,0x38,0x35,0x38]);}['init'](){const _0xebe359=this['editor'],_0x50f983=(_0x4c64af,_0x3f8a63)=>{if('attribute'!=_0x4c64af)return'ck-suggestion-marker-'+_0x4c64af;const _0xdc35d=_0x3f8a63['split']('|')[0x0];return this['_isBlockAttribute'](_0xdc35d)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xebe359['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x47ad03=>{const {id:_0x36c9d7,authorId:_0x20ef63,type:_0x27f06e,subType:_0x334ada}=this['_splitMarkerName'](_0x47ad03['markerName']),_0x4a9739=['ck-suggestion-marker',_0x50f983(_0x27f06e,_0x334ada)];let _0x373a32=0xbb8;return this['activeMarkers']['includes'](_0x47ad03['markerName'])&&(_0x4a9739['push']('ck-suggestion-marker--active'),_0x373a32=0xbc2),'deletion'==_0x27f06e&&(_0x373a32+=0x5),{'classes':_0x4a9739,'attributes':{'data-suggestion':_0x36c9d7,'data-author-id':_0x20ef63},'priority':_0x373a32};}}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x2ff150=>{_0x2ff150['on']('addMarker:suggestion',(_0x16cbfb,_0x4ad51b,_0x573e12)=>{if(!_0x573e12['options']['showSuggestionHighlights'])return;const _0x592266=_0x4ad51b['item'];if(!_0x592266)return;const _0x546251=_0x573e12['mapper']['toViewElement'](_0x592266);_0xebe359['model']['schema']['isObject'](_0x592266)&&_0x546251&&!_0x546251['getCustomProperty']('widget')&&_0x546251['is']('containerElement')&&_0x39e06e(_0x546251,_0x573e12['writer']);},{'priority':'high'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x17c4bf,_0x277698)=>{if(!_0x277698['options']['showSuggestionHighlights'])return null;const {type:_0x576a74,subType:_0x3d8600}=this['_splitMarkerName'](_0x17c4bf['markerName']);return{'classes':['ck-suggestion-marker',_0x50f983(_0x576a74,_0x3d8600)],'priority':0xbb8};}});const _0x59cbba=({showActiveMarkers:_0x3bec74=!0x0,isAttributeSuggestion:_0x3be91f=!0x1}={})=>(_0x2e77a7,_0x12aad3,_0x1c9fc6)=>{if(!_0x12aad3['item'])return;const {id:_0xec0fd6,authorId:_0x4e3d08}=this['_splitMarkerName'](_0x12aad3['markerName']);if(_0x3be91f){const _0x3c4f42=this['_suggestions']['get'](_0xec0fd6),_0x5a8418=this['_getAttributeKey'](_0x3c4f42);if(!this['_isBlockAttribute'](_0x5a8418))return;}if(_0x12aad3['item']['is']('selection'))return void _0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);const _0x2d2b0f=_0x1c9fc6['mapper']['toViewElement'](_0x12aad3['item']);if(_0x12aad3['item']['is']('element')&&_0xebe359['model']['schema']['isBlock'](_0x12aad3['item'])&&!_0x2d2b0f['getCustomProperty']('addHighlight')){_0x1c9fc6['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-suggestion',_0xec0fd6,_0x2d2b0f),_0x1c9fc6['writer']['setAttribute']('data-author-id',_0x4e3d08,_0x2d2b0f),_0x1c9fc6['mapper']['bindElementToMarker'](_0x2d2b0f,_0x12aad3['markerName']),_0x3bec74&&(this['activeMarkers']['includes'](_0x12aad3['markerName'])?_0x1c9fc6['writer']['addClass']('ck-suggestion-marker--active',_0x2d2b0f):_0x1c9fc6['writer']['removeClass']('ck-suggestion-marker--active',_0x2d2b0f));for(const _0x20e3e2 of _0xebe359['model']['createRangeIn'](_0x12aad3['item'])['getItems']())_0x1c9fc6['consumable']['consume'](_0x20e3e2,_0x2e77a7['name']);_0x1c9fc6['consumable']['consume'](_0x12aad3['item'],_0x2e77a7['name']);}};_0xebe359['conversion']['for']('dataDowncast')['add'](_0x444b58=>{_0x444b58['on']('addMarker:suggestion:formatBlock',(_0x123674,_0x3568bf,_0x5a58b3)=>{_0x5a58b3['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1})(_0x123674,_0x3568bf,_0x5a58b3);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['add'](_0x13e98b=>{_0x13e98b['on']('addMarker:suggestion:attribute',(_0x1c5e7c,_0x286e2b,_0x3ad425)=>{_0x3ad425['options']['showSuggestionHighlights']&&_0x59cbba({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1c5e7c,_0x286e2b,_0x3ad425);},{'priority':'highest'});}),_0xebe359['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x3d2335,_0x203f80)=>_0x203f80['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x3d2335['substr'](0xb)}}),_0xebe359['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x503b2c,{writer:_0x16a6b7})=>{let _0x39c55d='suggestion:'+_0x503b2c['getAttribute']('suggestion-type')+':'+_0x503b2c['getAttribute']('id');return _0x503b2c['getAttribute']('marker-count')&&(_0x39c55d+=':'+_0x503b2c['getAttribute']('marker-count')),_0x16a6b7['createElement']('$marker',{'data-name':_0x39c55d});}}),_0xebe359['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x863424=>{_0x863424['on']('addMarker:suggestion:formatBlock',_0x59cbba(),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x564867=>{_0x564867['on']('addMarker:suggestion:attribute',_0x59cbba({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x139b9c=>{_0x139b9c['on']('removeMarker:suggestion:formatBlock',(_0x41c357,_0x3e6eb2,_0x105f64)=>{const _0x135b71=_0x105f64['mapper']['markerNameToElements'](_0x3e6eb2['markerName']);if(_0x135b71){for(const _0x401ccd of _0x135b71)_0x401ccd['getCustomProperty']('addHighlight')||(_0x105f64['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x401ccd),_0x105f64['writer']['removeAttribute']('data-suggestion',_0x401ccd),_0x105f64['writer']['removeAttribute']('data-author-id',_0x401ccd),_0x105f64['mapper']['unbindElementFromMarkerName'](_0x401ccd,_0x3e6eb2['markerName']));}},{'priority':'high'});}),_0xebe359['conversion']['for']('editingDowncast')['add'](_0x22a8d7=>{_0x22a8d7['on']('removeMarker:suggestion:attribute',(_0x2525cd,_0x3cacb5,_0xfb3f5d)=>{const _0x3f9281=_0xfb3f5d['mapper']['markerNameToElements'](_0x3cacb5['markerName']);if(!_0x3f9281)return;const {id:_0x402877}=this['_splitMarkerName'](_0x3cacb5['markerName']),_0x5aeb77=this['_suggestions']['get'](_0x402877),_0xdc21b4=this['_getAttributeKey'](_0x5aeb77);if(this['_isBlockAttribute'](_0xdc21b4)){for(const _0x47d41c of _0x3f9281)_0x47d41c['getCustomProperty']('addHighlight')||(_0xfb3f5d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-suggestion',_0x47d41c),_0xfb3f5d['writer']['removeAttribute']('data-author-id',_0x47d41c),_0xfb3f5d['mapper']['unbindElementFromMarkerName'](_0x47d41c,_0x3cacb5['markerName']));}},{'priority':'high'});}),_0xebe359['model']['document']['registerPostFixer'](_0x2db891=>{let _0x41ad4a=!0x1;const _0x2302e6=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']()),_0x6f3edf=new Set();for(const {name:_0x656fde,data:_0x4de887}of _0x2302e6){const {group:_0x49a9f2,type:_0x211773,subType:_0x35fe55,id:_0x59c90d}=this['_splitMarkerName'](_0x656fde);if('suggestion'!==_0x49a9f2)continue;const _0x54a47e=this['_suggestions']['get'](_0x59c90d);if(null!=_0x4de887['newRange']){'formatInline'==_0x211773&&(_0x41ad4a=_0x41ad4a||Ut(_0x4de887['newRange'],_0x656fde,_0x2db891,_0xebe359['model']['schema']));const _0x11734f='attribute'==_0x211773&&this['_isBlockAttribute'](_0x35fe55['split']('|')[0x0]);if(_0x4de887['newRange']['isCollapsed']||'$graveyard'==_0x4de887['newRange']['root']['rootName']||'formatBlock'==_0x211773&&!Ft(_0x4de887['newRange'])||_0x11734f&&!Ft(_0x4de887['newRange'])||'deletion'==_0x211773&&!(!Vt(_0x2e1234=_0x4de887['newRange'])&&!function(_0x38a760){return _0x38a760['start']['parent']==_0x38a760['end']['nodeBefore']&&_0x38a760['start']['isAtEnd'];}(_0x2e1234)))_0x2db891['removeMarker'](_0x656fde),_0x41ad4a=!0x0;else{if(!_0x54a47e||!_0x54a47e['isInContent'])continue;if(_0x4de887['newRange']&&_0x4de887['oldRange']&&_0x4de887['newRange']['isEqual'](_0x4de887['oldRange']))continue;_0x6f3edf['add'](_0x54a47e);}}}var _0x2e1234;return _0x6f3edf['size']>0x0&&(_0x41ad4a=!!this['_joinWithAdjacentSuggestions'](_0x6f3edf)||_0x41ad4a),_0x41ad4a;}),_0xebe359['model']['document']['registerPostFixer'](_0x81cb48=>{let _0x40daa3=!0x1;for(const _0x291ed3 of _0xebe359['model']['document']['differ']['getChanges']())if('insert'==_0x291ed3['type'])for(const _0x4696fa of this['_suggestions']['values']()){if(_0x4696fa['isMultiRange']||!_0x4696fa['isInContent'])continue;const _0x8bf7f6='formatBlock'==_0x4696fa['type'],_0x2d7aaf=this['_getAttributeKey'](_0x4696fa),_0x51e8c1=_0x2d7aaf&&this['_isBlockAttribute'](_0x2d7aaf);if(!_0x8bf7f6&&!_0x51e8c1)continue;const _0xc900eb=_0x4696fa['getFirstRange']();if(_0xc900eb['start']['parent']!=_0xc900eb['end']['parent']&&!_0xc900eb['end']['isAtEnd']){const _0x23ba97=_0xebe359['model']['createPositionAt'](_0xc900eb['start']['nodeAfter'],'end'),_0x2d9748=_0xebe359['model']['createRange'](_0xc900eb['start'],_0x23ba97);_0x81cb48['updateMarker'](_0x4696fa['getFirstMarker'](),{'range':_0x2d9748}),_0x40daa3=!0x0;}}return _0x40daa3;}),_0xebe359['model']['document']['registerPostFixer'](_0x2a105c=>this['_processAttributeChanges'](_0x2a105c)),_0xebe359['model']['document']['registerPostFixer'](_0x23008e=>!_0x23008e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x23008e)),_0xebe359['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xebe359['model']['document']['on']('change:data',(_0x1a6ffc,_0x1d636e)=>{if(!_0x1d636e['isLocal']||_0x1d636e['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x5a986d=_0xebe359['model']['document']['differ']['getChanges']();if(0x0==_0x5a986d['length'])return;const _0x4937e0=[],_0x47fbf3=_0x5a986d['filter'](_0x3355f2=>'attribute'==_0x3355f2['type']),_0xfbae8b=_0x5a986d['filter'](_0x5d443b=>'insert'==_0x5d443b['type']&&'$text'!=_0x5d443b['name']);for(const _0x31fb0e of _0x47fbf3)this['_isRegisteredAttribute'](_0x31fb0e['attributeKey'])&&_0x4937e0['push']({'key':_0x31fb0e['attributeKey'],'newValue':_0x31fb0e['attributeNewValue'],'oldValue':_0x31fb0e['attributeOldValue'],'range':Pt(_0x31fb0e['range'],_0xebe359['model'])});for(const _0x172efc of _0xfbae8b){if('rename'!=_0x172efc['action']&&'refresh'!=_0x172efc['action'])continue;const _0x219400=Lt(_0x172efc['position']['nodeAfter'],_0xebe359['model']),_0x252833=_0x172efc['before'];'rename'==_0x172efc['action']&&_0x4937e0['push']({'key':m,'newValue':_0x172efc['name'],'oldValue':_0x252833['name'],'range':_0x219400});for(const [_0x4dd8f8,_0x2a6190]of _0x252833['attributes']){if(!this['_isRegisteredAttribute'](_0x4dd8f8))continue;const _0xd1e80b=_0x172efc['attributes']['get'](_0x4dd8f8);_0x2a6190!==_0xd1e80b&&_0x4937e0['push']({'key':_0x4dd8f8,'newValue':_0xd1e80b,'oldValue':_0x2a6190,'range':_0x219400});}for(const [_0x2ddf2f,_0x577f37]of _0x172efc['attributes'])this['_isRegisteredAttribute'](_0x2ddf2f)&&(_0x252833['attributes']['has'](_0x2ddf2f)||_0x4937e0['push']({'key':_0x2ddf2f,'newValue':_0x577f37,'oldValue':null,'range':_0x219400}));}0x0!=_0x4937e0['length']&&_0xebe359['model']['enqueueChange'](_0x1d636e,_0x1e6bf7=>{const _0x54137b=_0x5042b();for(const {range:_0x51e016,key:_0x4a9148,oldValue:_0x10d6cc,newValue:_0x24e5ef}of _0x4937e0)this['markAttributeChange'](_0x51e016,_0x4a9148,_0x10d6cc,_0x24e5ef,{'groupId':_0x54137b});this['_reduceExistingSuggestions'](_0x1e6bf7,_0x4937e0);});},{'priority':'lowest'}),_0xebe359['model']['markers']['on']('update:suggestion',(_0x42cbc4,_0x38901a,_0x4083e5)=>{if(null==_0x4083e5){const {id:_0x27e4c4}=this['_splitMarkerName'](_0x38901a['name']),_0x1ab6a5=this['_suggestions']['get'](_0x27e4c4);_0x1ab6a5&&_0x1ab6a5['addMarkerName'](_0x38901a['name']);}}),_0xebe359['model']['document']['on']('change:data',()=>{const _0x4a8fc4=Array['from'](_0xebe359['model']['document']['differ']['getChangedMarkers']())['filter'](_0x525f27=>'suggestion'===this['_splitMarkerName'](_0x525f27['name'])['group']);if(0x0===_0x4a8fc4['length'])return;_0x4a8fc4['sort']((_0x589df9,_0x278000)=>{const _0x50436e=_0x589df9['data']['oldRange'],_0x3c8a9d=_0x278000['data']['oldRange'];return null===_0x50436e&&null===_0x3c8a9d?0x0:null===_0x50436e&&null!==_0x3c8a9d?-0x1:null!==_0x50436e&&null===_0x3c8a9d?0x1:_0x50436e['start']['isBefore'](_0x3c8a9d['start'])?-0x1:0x1;});const _0x39ba2a=new Set(),_0x6468a6=new Set();for(const {name:_0x607504,data:_0x3716a8}of _0x4a8fc4){const {id:_0x14fb90}=this['_splitMarkerName'](_0x607504);if(null===_0x3716a8['oldRange']){const _0x4fa4cb=this['_handleNewSuggestionMarker'](_0x607504);_0x6468a6['add'](_0x4fa4cb);}else{const _0x3e5718=this['_suggestions']['get'](_0x14fb90);null!==_0x3716a8['newRange']||_0x3e5718['isInContent']?(_0x39ba2a['add'](_0x3e5718['head']),_0x6468a6['add'](_0x3e5718)):this['_removeSuggestion'](_0x3e5718);}}_0x6468a6['size']>0x0&&this['_refreshSuggestionsChain'](_0x6468a6);for(const _0x473878 of _0x39ba2a)this['fire']('suggestionChanged',_0x473878);}),_0xebe359['model']['on']('applyOperation',(_0x2bf7ef,_0x1369b5)=>{const _0x421f65=_0x1369b5[0x0];if(!this['_suggestions']['size'])return;if(!_0x421f65['isDocumentOperation'])return;if(_0x421f65['batch']['isUndo']||!_0x421f65['batch']['isLocal'])return;let _0x3bb7d2,_0x31a17c;switch(_0x421f65['type']){case'insert':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['position']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;case'split':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['splitPosition']),_0x31a17c=_0xebe359['model']['createPositionAt'](_0x421f65['moveTargetPosition']);break;case'move':_0x3bb7d2=_0xebe359['model']['createPositionAt'](_0x421f65['targetPosition']),_0x31a17c=_0x3bb7d2['getShiftedBy'](_0x421f65['howMany']);break;default:return;}const _0x2cc68c=_0xebe359['model']['createRange'](_0x3bb7d2,_0x31a17c);_0xebe359['model']['change'](()=>{for(const {suggestion:_0x24fdb4,meta:_0x39e52e}of this['_findSuggestions'](_0x2cc68c)){if(_0x24fdb4['isMultiRange'])continue;if('formatInline'==_0x24fdb4['type'])continue;const _0x2fa914=this['_getAttributeKey'](_0x24fdb4);if(_0x2fa914&&this['_isBlockAttribute'](_0x2fa914)&&'split'!=_0x421f65['type'])continue;const _0x1eb450=_0x24fdb4['data']&&_0x24fdb4['data']['multipleBlocks'];('formatBlock'!=_0x24fdb4['type']||'split'==_0x421f65['type']&&!_0x1eb450)&&(_0x39e52e['containsRangeInObject']||'insertion'==_0x24fdb4['type']&&_0x39e52e['isOwn']||_0x24fdb4['getFirstRange']()['containsRange'](_0x2cc68c)&&this['_breakSuggestionMarker'](_0x24fdb4,_0x3bb7d2,_0x31a17c));}});},{'priority':'lowest'}),_0xebe359['model']['on']('deleteContent',(_0x1fc84a,_0x2f1fa9)=>{const _0x4a01b1=_0x2f1fa9[0x0],_0x270d96=_0x2f1fa9[0x1];if(_0x270d96&&_0x270d96['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4a01b1['isCollapsed'])return;const _0x92a1c2=_0xebe359['model']['schema'],{start:_0x4674a6,end:_0x52421b}=_0x4a01b1['getFirstRange'](),_0x2f180d=_0x4674a6['nodeAfter']&&_0x92a1c2['isLimit'](_0x4674a6['nodeAfter'])?null:_0x92a1c2['getNearestSelectionRange'](_0x4674a6,'forward'),_0x4a3dda=_0x52421b['nodeBefore']&&_0x92a1c2['isLimit'](_0x52421b['nodeBefore'])?null:_0x92a1c2['getNearestSelectionRange'](_0x52421b,'backward'),_0x2d049e=_0xebe359['model']['createRange'](_0x2f180d?_0x2f180d['start']:_0x4674a6,_0x4a3dda?_0x4a3dda['end']:_0x52421b);_0xebe359['model']['change'](_0x2890e4=>{this['markDeletion'](_0x2d049e);const _0x5bcee0=_0xebe359['model']['schema']['getNearestSelectionRange'](_0x2d049e['start']);_0x4a01b1['is']('documentSelection')?_0x2890e4['setSelection'](_0x5bcee0):_0x4a01b1['setTo'](_0x5bcee0);}),_0x1fc84a['stop']();},{'priority':_0x1bc495['normal']+0xa}),_0xebe359['model']['on']('insertContent',(_0x125ba1,_0x5f5d31)=>{const _0x5b3e2f=_0x5f5d31[_0x5f5d31['length']-0x1];_0x5b3e2f&&_0x5b3e2f['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xebe359['model']['change'](()=>{let _0x5f576c=_0xebe359['model']['insertContent'](_0x5f5d31[0x0],_0x5f5d31[0x1],_0x5f5d31[0x2],{'forceDefaultExecution':!0x0});if(!_0x5f576c)return;_0x125ba1['return']=_0x5f576c['clone']();const _0x53c7f2=_0x5f576c['end']['nodeBefore'],_0x14f3ab=_0xebe359['model']['schema'];_0x53c7f2&&_0x14f3ab['isBlock'](_0x53c7f2)&&!_0x14f3ab['isObject'](_0x53c7f2)&&(_0x5f576c=_0xebe359['model']['createRange'](_0x5f576c['start'],_0xebe359['model']['createPositionAt'](_0x53c7f2,'end'))),this['markInsertion'](_0x5f576c);}),_0x125ba1['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21b264=new x(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('acceptSuggestion',_0x21b264),this['enableCommand']('acceptSuggestion');const _0x5a1171=new R(_0xebe359,this['_suggestions']);_0xebe359['commands']['add']('discardSuggestion',_0x5a1171),this['enableCommand']('discardSuggestion'),_0xebe359['commands']['add']('acceptAllSuggestions',new E(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xebe359['commands']['add']('discardAllSuggestions',new E(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xebe359['commands']['add']('acceptSelectedSuggestions',new O(_0xebe359,_0x21b264,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xebe359['commands']['add']('discardSelectedSuggestions',new O(_0xebe359,_0x5a1171,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x39889c=_0xebe359['plugins']['get']('CommentsRepository');this['listenTo'](_0x39889c,'addComment',(_0x5a28f3,{threadId:_0x1b112d})=>{const _0x490a1c=this['_suggestions']['get'](_0x1b112d);_0x490a1c&&_0x490a1c['commentThread']&&0x1===_0x490a1c['commentThread']['length']&&this['_updateSuggestionData'](_0x1b112d,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x39889c,'removeComment',(_0x227b5f,{threadId:_0x7a6b8f})=>{const _0xffc779=this['_suggestions']['get'](_0x7a6b8f);_0xffc779&&_0xffc779['commentThread']&&!_0xffc779['commentThread']['length']&&this['_updateSuggestionData'](_0x7a6b8f,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5cd567){if(this['_adapter'])throw new _0x36031a('track-changes-adapter-already-set',this);this['_adapter']=_0x5cd567;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x293bc4=!0x1,toJSON:_0x39d159=!0x1}={}){const _0x3e961f=[];for(const _0x480905 of this['_suggestions']['values']())_0x293bc4&&!_0x480905['isInContent']||_0x3e961f['push'](_0x480905);return _0x39d159?_0x3e961f['map'](_0xb97c94=>_0xb97c94['toJSON']()):_0x3e961f;}['getSuggestion'](_0x1cada5){const _0x960f50=this['_suggestions']['get'](_0x1cada5);if(!_0x960f50)throw new _0x36031a('track-changes-suggestion-not-found',this);return _0x960f50;}['hasSuggestion'](_0x34a844){return this['_suggestions']['has'](_0x34a844);}['addSuggestionData'](_0x2398f3){const {authorId:_0x53fb12,id:_0x3ad7ed,attributes:_0x5b0fe5}=_0x2398f3,[_0x481f12,_0x4774db]=_0x2398f3['type']['split'](':'),_0x3b7710=this['_suggestions']['get'](_0x3ad7ed)||this['_createSuggestion'](_0x481f12,_0x4774db,_0x3ad7ed,_0x53fb12,_0x5b0fe5);if(this['_addThreadToSuggestion'](_0x3b7710),this['_checkSuggestionCorrectness'](_0x3b7710,_0x481f12,_0x4774db||null,_0x53fb12),_0x3b7710['createdAt']=_0x2398f3['createdAt'],_0x3b7710['_isDataLoaded']=!0x0,_0x5b0fe5&&_0x5b0fe5['@external']){const _0xf06d53=_0x5b0fe5['@external'],_0x51986e=this['_getExternalAuthor'](_0xf06d53['authorName']);_0x3b7710['authoredAt']=_0xf06d53['createdAt'],_0x3b7710['author']=_0x51986e,_0x3b7710['isExternal']=!0x0;}else _0x3b7710['authoredAt']=_0x2398f3['createdAt'];switch(_0x2398f3['data']&&(_0x3b7710['data']=_0x2398f3['data']),_0x2398f3['attributes']&&(_0x3b7710['attributes']=_0x2398f3['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3b7710['_saved']=!0x0),this['_suggestionState']['get'](_0x3b7710)){case'notReady':this['_suggestionState']['set'](_0x3b7710,'dataReady');break;case'markerReady':_0x3b7710['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3b7710])),this['_refreshSuggestionsChain'](new Set([_0x3b7710])),this['_suggestionState']['set'](_0x3b7710,'ready'),this['fire']('suggestionLoaded',_0x3b7710)):this['_suggestionState']['set'](_0x3b7710,'removed');}return _0x3b7710;}['acceptSuggestion'](_0x5cbdc6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2122d7 of _0x5cbdc6['getAllAdjacentSuggestions']())_0x2122d7['accept']();});});}['discardSuggestion'](_0x27bfcd){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1914e2 of _0x27bfcd['getAllAdjacentSuggestions']())_0x1914e2['discard']();});});}['enableCommand'](_0x18fc86,_0x2f9fe9){const _0x5ea21a=this['editor']['commands']['get'](_0x18fc86);if(!_0x5ea21a)throw new _0x36031a('track-changes-command-not-found',this,{'commandName':_0x18fc86});if(this['_enabledCommands']['has'](_0x5ea21a))throw new _0x36031a('track-changes-enable-command-twice',this,{'commandName':_0x18fc86});this['_enabledCommands']['add'](_0x5ea21a),_0x2f9fe9&&_0x5ea21a['on']('execute',(_0x49299f,_0x220e78)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x220e78['length']>0x0&&_0x220e78[_0x220e78['length']-0x1]&&_0x220e78[_0x220e78['length']-0x1]['forceDefaultExecution']?_0x220e78['pop']():(_0x49299f['return']=_0x2f9fe9((..._0x10b149)=>_0x5ea21a['execute'](..._0x10b149,{'forceDefaultExecution':!0x0}),..._0x220e78),_0x49299f['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x56d211){let _0x5be5ff,_0xd3f6e0;const _0x3b7f46=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x5be5ff=_0x56d211();}catch(_0xc6672e){_0xd3f6e0=_0xc6672e;}return _0x3b7f46||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xd3f6e0&&_0x36031a['rethrowUnexpectedError'](_0xd3f6e0,this),_0x5be5ff;}['markInsertion'](_0x4ef85d,_0x57552a=null,_0x25aff2={}){if(_0x4ef85d['isCollapsed'])return null;const _0x13d540=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x48f590,meta:_0x3a4d74}of this['_findSuggestions'](_0x4ef85d,'insertion'))if(_0x3a4d74['isOwn']){if(!_0x3a4d74['isNextTo']){if(_0x3a4d74['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x48f590,_0x25aff2))continue;return _0x48f590;}if(qt(_0x48f590,_0x25aff2))return _0x48f590;this['_breakSuggestionMarker'](_0x48f590,_0x4ef85d['start'],_0x4ef85d['end']);break;}if(_0x57552a==_0x48f590['subType']&&qt(_0x48f590,_0x25aff2)){const _0x19744e=_0x48f590['getFirstRange']();return _0x19744e['start']['isEqual'](_0x4ef85d['end'])?this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x4ef85d['start'],_0x19744e['end'])):this['_setSuggestionRange'](_0x48f590,this['_model']['createRange'](_0x19744e['start'],_0x4ef85d['end'])),_0x48f590;}}const _0x433e8e=_0x5042b(),_0x558230=_0x13d540['id'],_0x119118=_0x57552a?'insertion:'+_0x57552a:'insertion',_0x37d9ca=this['_setSuggestionData']({'id':_0x433e8e,'type':_0x119118,'createdAt':new Date(),'authorId':_0x558230,'attributes':_0x25aff2});return this['_addSuggestionMarker'](_0x119118,_0x433e8e,_0x558230,_0x4ef85d),_0x37d9ca;}['markMultiRangeInsertion'](_0x4e6759,_0x14679c='multi',_0x5d54f4={}){const _0x6e552c=this['editor']['plugins']['get']('Users')['me'],_0x23316a=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x14679c,'join');for(const _0x22956b of this['getSuggestions']())if(_0x22956b['author']['id']==_0x6e552c['id']&&'insertion'==_0x22956b['type']&&_0x22956b['subType']==_0x14679c&&qt(_0x22956b,_0x5d54f4)&&(_0x23316a(_0x22956b['getRanges'](),_0x4e6759)||_0x23316a(_0x4e6759,_0x22956b['getRanges']()))){for(const _0x3e43a9 of _0x4e6759)_0x22956b['addRange'](_0x3e43a9);return _0x22956b;}for(const {suggestion:_0x587215,meta:_0x5768d2}of this['_findSuggestions'](_0x4e6759,'insertion')){if(!_0x5768d2['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x5768d2['containsRangeInObject'])continue;if(!qt(_0x587215,_0x5d54f4))continue;let _0x571922=!0x0;for(const _0x4e0948 of _0x587215['getRanges']())for(const _0x27b041 of _0x4e6759)if(!_0x4e0948['containsRange'](_0x27b041)){_0x571922=!0x1;break;}if(_0x571922)return _0x587215;}const _0x4f2f1=_0x5042b(),_0x2aaac4=_0x6e552c['id'],_0x4fc278='insertion:'+_0x14679c,_0x215fc8=this['_setSuggestionData']({'id':_0x4f2f1,'type':_0x4fc278,'createdAt':new Date(),'authorId':_0x2aaac4,'attributes':_0x5d54f4});for(const _0x20c46e of _0x4e6759)this['_addSuggestionMarker'](_0x4fc278,_0x4f2f1,_0x2aaac4,_0x20c46e,u['getMultiRangeId']());return _0x215fc8;}['markInlineFormat'](_0x542c80,_0x4989,_0x37b9e2=null,_0x41de5d={}){if(_0x37b9e2=_0x37b9e2||Gt(_0x4989),_0x542c80['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x31d328=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');return this['forceDefaultExecution'](()=>_0x31d328([_0x542c80],_0x4989,_0x41de5d)),null;}const _0xddafea=this['editor']['plugins']['get']('Users')['me'],_0x26c85a=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1a5bff,meta:_0x5acb40}of this['_findSuggestions'](_0x542c80,'insertion'))_0x5acb40['isOwn']&&!_0x5acb40['isInsideObject']&&_0x26c85a['push'](..._0x1a5bff['getRanges']());}const _0x5cf52d=function(_0xfa430d,_0x5094ac){const _0x1b904c=[];for(const _0x2adb62 of _0x5094ac){const _0x5e9778=_0xfa430d['getIntersection'](_0x2adb62);_0x5e9778&&_0x1b904c['push'](_0x5e9778);}return _0x1b904c;}(_0x542c80,_0x26c85a),_0x4bd817=function(_0x572f83,_0x51dd41){const _0xf22701=[_0x572f83];for(const _0x3a2abf of _0x51dd41){let _0x9e657b=0x0;for(;_0x9e657b<_0xf22701['length'];){const _0x7bd04f=_0xf22701[_0x9e657b]['getDifference'](_0x3a2abf);_0xf22701['splice'](_0x9e657b,0x1,..._0x7bd04f),_0x9e657b+=_0x7bd04f['length'];}}return _0xf22701;}(_0x542c80,_0x26c85a);_0x5cf52d['length']&&this['_model']['change'](()=>{for(const _0x1238f6 of _0x5cf52d){const _0x497b24=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x37b9e2,'accept');this['forceDefaultExecution'](()=>_0x497b24([_0x1238f6],_0x4989,_0x41de5d));}});for(const _0x33624e of _0x4bd817){let _0xbcfe95=null,_0x561f9a=_0x33624e['start'],_0x667d4c=_0x33624e['end'];for(const {suggestion:_0x2c23ad,meta:_0x35587a}of this['_findSuggestions'](_0x33624e,'formatInline')){if(!_0x35587a['isOwn'])continue;if(_0x2c23ad['subType']!=_0x37b9e2)continue;if(!qt(_0x2c23ad,_0x41de5d))continue;const _0x18ed44=_0x2c23ad['getFirstRange']();if(_0x18ed44['containsRange'](_0x33624e,!0x0))return null;_0x561f9a=_0x561f9a['isBefore'](_0x18ed44['start'])?_0x561f9a:_0x18ed44['start'],_0x667d4c=_0x667d4c['isAfter'](_0x18ed44['end'])?_0x667d4c:_0x18ed44['end'],_0xbcfe95?_0x18ed44['start']['isBefore'](_0xbcfe95['getFirstRange']()['start'])?(_0xbcfe95['removeMarkers'](),_0xbcfe95=_0x2c23ad):_0x2c23ad['removeMarkers']():_0xbcfe95=_0x2c23ad;}const _0x1f9224=this['_model']['createRange'](_0x561f9a,_0x667d4c);if(_0xbcfe95)this['_setSuggestionRange'](_0xbcfe95,_0x1f9224);else{const _0x2b6f59=_0x5042b(),_0x12dcfa=_0xddafea['id'];this['_setSuggestionData']({'id':_0x2b6f59,'type':'formatInline:'+_0x37b9e2,'data':_0x4989,'createdAt':new Date(),'authorId':_0x12dcfa,'attributes':_0x41de5d}),this['_addSuggestionMarker']('formatInline:'+_0x37b9e2,_0x2b6f59,_0x12dcfa,_0x1f9224);}}return null;}['markBlockFormat'](_0x4d3f3b,_0x45f82e,_0xa0f105=[],_0x10a6af=null,_0x156106={}){_0x45f82e['formatGroupId']||(_0x45f82e['formatGroupId']=_0x45f82e['commandName']),_0x45f82e['multipleBlocks']=_0x4d3f3b['is']('range'),_0x10a6af=_0x10a6af||Gt(_0x45f82e);const _0x42c059=_0xa0f105['map'](_0x80d9ae=>Lt(_0x80d9ae,this['_model'])),_0x17e42e=_0x4d3f3b['is']('range')?_0x4d3f3b:Lt(_0x4d3f3b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x256aa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x256aa1([_0x17e42e],_0x45f82e,_0x156106)),null;}_0x42c059['push'](_0x17e42e);let _0x5f36d4=!0x0;for(const _0x3e321a of _0x42c059)if(!this['_rangeIsInLocalUserInsertion'](_0x3e321a)){_0x5f36d4=!0x1;break;}if(_0x5f36d4&&'always'!==this['_trackFormatChanges']){const _0x4b273d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x10a6af,'accept');return this['forceDefaultExecution'](()=>_0x4b273d([_0x17e42e],_0x45f82e,_0x156106)),null;}let _0x333001=null,_0x5ec54e=_0x17e42e['start'],_0x346c7d=_0x17e42e['end'];for(const {suggestion:_0x49dda2,meta:_0x105d2e}of this['_findSuggestions'](_0x17e42e,'formatBlock')){if(!_0x105d2e['isOwn'])continue;if(_0x105d2e['isNextTo']||_0x105d2e['containsRangeInObject']||_0x105d2e['isInsideObject'])continue;if(_0x49dda2['data']['formatGroupId']!=_0x45f82e['formatGroupId'])continue;if(!qt(_0x49dda2,_0x156106))continue;const _0x11433a=_0x49dda2['getFirstRange']();if(_0x49dda2['subType']==_0x10a6af){if(_0x11433a['containsRange'](_0x17e42e,!0x0))return null;_0x5ec54e=_0x5ec54e['isBefore'](_0x11433a['start'])?_0x5ec54e:_0x11433a['start'],_0x346c7d=_0x346c7d['isAfter'](_0x11433a['end'])?_0x346c7d:_0x11433a['end'],_0x333001?_0x11433a['start']['isBefore'](_0x333001['getFirstRange']()['start'])?(_0x333001['removeMarkers'](),_0x333001=_0x49dda2):_0x49dda2['removeMarkers']():_0x333001=_0x49dda2;}else{const _0x5336cc=_0x17e42e['getIntersection'](_0x11433a);this['_cutOutSuggestionMarker'](_0x49dda2,_0x5336cc);}}const _0x2c524f=this['editor']['plugins']['get']('Users')['me'],_0x165a9e=_0x5042b(),_0x3c82ee=_0x2c524f['id'];if(_0x333001)return this['_setSuggestionRange'](_0x333001,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x333001;{const _0x31fde1=this['_setSuggestionData']({'id':_0x165a9e,'type':'formatBlock:'+_0x10a6af,'data':_0x45f82e,'createdAt':new Date(),'authorId':_0x3c82ee,'attributes':_0x156106});return this['_addSuggestionMarker']('formatBlock:'+_0x10a6af,_0x165a9e,_0x3c82ee,this['_model']['createRange'](_0x5ec54e,_0x346c7d)),_0x31fde1;}}['markMultiRangeBlockFormat'](_0x4e3de7,_0x1bb028,_0x3b3ea9=[],_0x11c064=null,_0x5255fc={}){_0x1bb028['formatGroupId']||(_0x1bb028['formatGroupId']=_0x1bb028['commandName']);const _0x3eed62=_0x4e3de7[0x0];_0x1bb028['multipleBlocks']=_0x3eed62['is']('range'),_0x11c064=_0x11c064||Gt(_0x1bb028);const _0x29cd31=_0x3b3ea9['map'](_0x5c907f=>Lt(_0x5c907f,this['_model'])),_0x2bbd5e=_0x3eed62['is']('range')?_0x4e3de7:_0x4e3de7['map'](_0x14baa4=>Lt(_0x14baa4,this['_model']));if('never'===this['_trackFormatChanges']){const _0x12ef7f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x12ef7f(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}_0x29cd31['push'](..._0x2bbd5e);let _0x2cca5d=!0x0;for(const _0x451fbc of _0x29cd31)if(!this['_rangeIsInLocalUserInsertion'](_0x451fbc)){_0x2cca5d=!0x1;break;}if(_0x2cca5d&&'always'!==this['_trackFormatChanges']){const _0x1ae6c1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'accept');return this['forceDefaultExecution'](()=>_0x1ae6c1(_0x2bbd5e,_0x1bb028,_0x5255fc)),null;}const _0x227a36=this['editor']['plugins']['get']('Users')['me'];for(const _0x49ed18 of this['getSuggestions']()){if(_0x49ed18['author']['id']!=_0x227a36['id'])continue;if('formatBlock'!=_0x49ed18['type']||_0x49ed18['data']['formatGroupId']!=_0x1bb028['formatGroupId'])continue;if(!qt(_0x49ed18,_0x5255fc))continue;const _0x3d3709=_0x49ed18['subType']==_0x11c064;for(let _0x254f4a=0x0;_0x254f4a<_0x2bbd5e['length'];_0x254f4a++){const _0x2a0323=_0x2bbd5e[_0x254f4a];for(const _0x18fbff of _0x49ed18['getMarkers']()){const _0x5b3869=_0x18fbff['getRange']();if(_0x2a0323['isEqual'](_0x5b3869)){_0x3d3709?(_0x2bbd5e['splice'](_0x254f4a,0x1),_0x254f4a--):_0x49ed18['removeMarker'](_0x18fbff['name']);break;}}}}if(0x0==_0x2bbd5e['length'])return null;const _0x34a2d0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x11c064,'join');for(const _0x1307d0 of this['getSuggestions']())if(_0x1307d0['author']['id']==_0x227a36['id']&&'formatBlock'==_0x1307d0['type']&&_0x1307d0['data']['formatGroupId']==_0x1bb028['formatGroupId']&&_0x1307d0['subType']==_0x11c064&&qt(_0x1307d0,_0x5255fc)&&(_0x34a2d0(_0x1307d0['getRanges'](),_0x2bbd5e)||_0x34a2d0(_0x2bbd5e,_0x1307d0['getRanges']()))){for(const _0x1024cd of _0x2bbd5e)_0x1307d0['addRange'](_0x1024cd);return _0x1307d0;}const _0x5cac06=_0x5042b(),_0x4d2dc9=_0x227a36['id'],_0x1300fc='formatBlock:'+_0x11c064,_0x5ea1ed=this['_setSuggestionData']({'id':_0x5cac06,'type':_0x1300fc,'data':_0x1bb028,'createdAt':new Date(),'authorId':_0x4d2dc9,'attributes':_0x5255fc});for(const _0x166c74 of _0x2bbd5e)this['_addSuggestionMarker'](_0x1300fc,_0x5cac06,_0x4d2dc9,_0x166c74,u['getMultiRangeId']());return _0x5ea1ed;}['markDeletion'](_0x395f98,_0x251c91=null,_0x393562={}){if(_0x395f98['isCollapsed'])return null;const _0xcdfcb7=this['editor']['plugins']['get']('Users')['me'],_0x800199=new _0x5018e8(_0x395f98['start'],_0x395f98['end']);for(const {suggestion:_0x3e2200,meta:_0x316b58}of this['_findSuggestions'](_0x800199,'insertion'))if(_0x316b58['isOwn']&&!_0x316b58['isNextTo']){if(_0x3e2200['isMultiRange']){const _0x25aa63=_0x3e2200['getRanges']()['filter'](_0x4aa220=>'$graveyard'!=_0x4aa220['root']['rootName']);_0x25aa63['every'](_0x415e8d=>_0x800199['containsRange'](_0x415e8d,!0x0))&&_0x3e2200['discard']();if(_0x25aa63['some'](_0x3188db=>_0x3188db['containsRange'](_0x800199,!0x0))){const _0xf5efd5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x251c91,'accept');return this['forceDefaultExecution'](()=>_0xf5efd5([_0x800199],null,_0x393562)),null;}}else{const _0x1ec014=_0x800199['getIntersection'](_0x3e2200['getFirstRange']());null!==_0x1ec014&&_0x3e2200['_onDiscard']([_0x1ec014],null,_0x393562);}}if(_0x800199['detach'](),_0x800199['isCollapsed']||'$graveyard'==_0x800199['root']['rootName'])return null;let _0x4731d1=null,_0xc43785=_0x800199['start'],_0x43d0d8=_0x800199['end'];const _0x3ffa15=this['_findSuggestions'](_0x800199,'deletion');for(const {suggestion:_0x55f2a2,meta:_0x20e5e0}of _0x3ffa15){const _0x48ac68=this['_model']['createRange'](_0xc43785,_0x43d0d8);if(_0x20e5e0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x20e5e0['containsRangeInObject']&&!_0x20e5e0['isInsideObject'])){if(_0x55f2a2['isMultiRange']){if(!qt(_0x55f2a2,_0x393562))continue;let _0x371fa2=!0x0;for(const _0x2d0e87 of _0x55f2a2['getRanges']()){if(_0x2d0e87['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;_0x48ac68['containsRange'](_0x2d0e87)||(_0x371fa2=!0x1);}_0x371fa2&&_0x55f2a2['discard']();}else{const _0x1be415=_0x55f2a2['getFirstRange']();if(_0x1be415['containsRange'](_0x48ac68,!0x0))return _0x55f2a2;if(!qt(_0x55f2a2,_0x393562)){_0x48ac68['containsRange'](_0x1be415)?_0x55f2a2['removeMarkers']():_0x1be415['containsPosition'](_0xc43785)?_0xc43785=_0x1be415['end']:_0x1be415['containsPosition'](_0x43d0d8)&&(_0x43d0d8=_0x1be415['start']);continue;}_0xc43785=_0xc43785['isBefore'](_0x1be415['start'])?_0xc43785:_0x1be415['start'],_0x43d0d8=_0x43d0d8['isAfter'](_0x1be415['end'])?_0x43d0d8:_0x1be415['end'],_0x393562=Object['assign']({},_0x55f2a2['attributes']),_0x4731d1?_0x1be415['start']['isBefore'](_0x4731d1['getFirstRange']()['start'])?(_0x4731d1['removeMarkers'](),_0x4731d1=_0x55f2a2):_0x55f2a2['removeMarkers']():_0x4731d1=_0x55f2a2;}}}if(_0x4731d1)return this['_setSuggestionRange'](_0x4731d1,this['_model']['createRange'](_0xc43785,_0x43d0d8)),_0x4731d1;{const _0x42c819=_0x5042b(),_0x3a5e54=this['_model']['createRange'](_0xc43785,_0x43d0d8),_0x4ca17f=_0xcdfcb7['id'],_0x3bf807=_0x251c91?'deletion:'+_0x251c91:'deletion',_0x1c4ee6=this['_setSuggestionData']({'id':_0x42c819,'type':_0x3bf807,'createdAt':new Date(),'authorId':_0x4ca17f,'attributes':_0x393562});return this['_addSuggestionMarker'](_0x3bf807,_0x42c819,_0x4ca17f,_0x3a5e54),_0x1c4ee6;}}['markMultiRangeDeletion'](_0x530cd2,_0x15f4fd='multi',_0x4de30b={}){const _0x69c918=this['editor']['plugins']['get']('Users')['me'],_0x48055e=_0x530cd2['map'](_0x1fcb54=>new _0x5018e8(_0x1fcb54['start'],_0x1fcb54['end'])),_0x15d809=new Set();for(const {suggestion:_0x1fbc79,meta:_0x184108}of this['_findSuggestions'](_0x48055e,'insertion'))_0x184108['isOwn']&&!_0x184108['isNextTo']&&_0x15d809['add'](_0x1fbc79);for(const _0x116ec4 of _0x15d809)if(_0x116ec4['isMultiRange']){const _0x1c5ab5=_0x116ec4['getRanges']();(!_0x116ec4['attributes']||!_0x116ec4['attributes']['skipNestingCheck'])&&(_0x1c5ab5['every'](_0x5dfbd8=>_0x48055e['some'](_0x5dbf03=>_0x5dbf03['containsRange'](_0x5dfbd8,!0x0)))&&_0x116ec4['discard']());if(_0x48055e['every'](_0x1fa3c7=>_0x1c5ab5['some'](_0xfd4906=>_0xfd4906['containsRange'](_0x1fa3c7,!0x0)))){const _0x263d91=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x263d91(_0x530cd2,null,_0x4de30b)),null;}}else{const _0x409915=_0x116ec4['getFirstRange']();_0x48055e['some'](_0x2f51bf=>_0x2f51bf['containsRange'](_0x409915,!0x0))&&_0x116ec4['discard']();if(_0x48055e['every'](_0x22d7f0=>_0x409915['containsRange'](_0x22d7f0,!0x0))){const _0x120977=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'accept');return this['forceDefaultExecution'](()=>_0x120977(_0x48055e,null,_0x4de30b)),null;}}const _0x2a8340=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x15f4fd,'join');let _0xcf7650=null;for(const _0x54dfe3 of this['getSuggestions']())if(_0x54dfe3['author']['id']==_0x69c918['id']&&_0x54dfe3['isInContent']&&'deletion'==_0x54dfe3['type']&&_0x54dfe3['subType']==_0x15f4fd&&qt(_0x54dfe3,_0x4de30b)&&(_0x2a8340(_0x54dfe3['getRanges'](),_0x48055e)||_0x2a8340(_0x48055e,_0x54dfe3['getRanges']()))){if(_0xcf7650){if(_0x54dfe3['commentThread']&&_0x54dfe3['commentThread']['length'])continue;for(const _0x1aacd9 of _0x54dfe3['getRanges']())_0xcf7650['isIntersectingWithRange'](_0x1aacd9)||_0xcf7650['addRange'](_0x1aacd9);_0x54dfe3['removeMarkers']();}else{_0xcf7650=_0x54dfe3;for(const _0x5db53a of _0x48055e)_0x54dfe3['isIntersectingWithRange'](_0x5db53a)||_0x54dfe3['addRange'](_0x5db53a);}}if(_0xcf7650)return _0xcf7650;_0x15d809['clear']();for(const {suggestion:_0xfb9615,meta:_0x9269fb}of this['_findSuggestions'](_0x48055e,'deletion'))_0x9269fb['isOwn']&&(this['_mergeNestedSuggestions']||!_0x9269fb['containsRangeInObject']&&!_0x9269fb['isInsideObject'])&&qt(_0xfb9615,_0x4de30b)&&_0x15d809['add'](_0xfb9615);for(const _0x21b924 of _0x15d809){const _0x9041bb=_0x21b924['getRanges']();if(!_0x4de30b||!_0x4de30b['skipNestingCheck']){if(_0x48055e['every'](_0x1e0538=>_0x9041bb['some'](_0x3f26a4=>_0x3f26a4['containsRange'](_0x1e0538,!0x0))))return _0x21b924;}(!_0x21b924['attributes']||!_0x21b924['attributes']['skipNestingCheck'])&&(_0x9041bb['every'](_0x4013aa=>_0x48055e['some'](_0x5c73fd=>_0x5c73fd['containsRange'](_0x4013aa,!0x0)))&&_0x21b924['discard']());}const _0x33b506=_0x5042b(),_0x9eccd6=_0x69c918['id'],_0x1edac='deletion:'+_0x15f4fd,_0x23cf42=this['_setSuggestionData']({'id':_0x33b506,'type':_0x1edac,'createdAt':new Date(),'authorId':_0x9eccd6,'attributes':_0x4de30b});for(const _0x3d720b of _0x48055e)_0x3d720b['detach'](),_0x3d720b['isCollapsed']||'$graveyard'==_0x3d720b['root']['rootName']||this['_addSuggestionMarker'](_0x1edac,_0x33b506,_0x9eccd6,_0x3d720b,u['getMultiRangeId']());return _0x23cf42;}['markAttributeChange'](_0x4c0c95,_0x50b4d8,_0x2d6196,_0x145023,_0x459bac){if(_0x4c0c95['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1ffa44=this['editor']['plugins']['get']('Users')['me']['id'],_0x29cda1=Array['from'](this['_suggestions']['values']())['filter'](_0x962b10=>'attribute'==_0x962b10['type']&&_0x962b10['data']['key']==_0x50b4d8&&_0x962b10['isIntersectingWithRange'](_0x4c0c95));if('default'===this['_trackFormatChanges']){const _0xa95900=this['_findSuggestions'](_0x4c0c95,'insertion')['filter'](({meta:_0x5db404})=>_0x5db404['isOwn']&&!_0x5db404['isInsideObject']&&!_0x5db404['isNextTo'])['map'](({suggestion:_0x812941})=>_0x812941);_0x29cda1['unshift'](..._0xa95900);}const _0x2ffe08=new Map([[_0x4c0c95,_0x2d6196]]);for(const _0x223f77 of _0x29cda1){const _0x1f2550='attribute'==_0x223f77['type']?_0x223f77['data']['oldValue']:void 0x0,_0x2f5528=_0x223f77['getFirstRange'](),_0x3dcbdd=Array['from'](_0x2ffe08['keys']())['find'](_0x521bfe=>_0x521bfe['isIntersecting'](_0x2f5528));if(!_0x3dcbdd)continue;const _0x1c4a5a=_0x3dcbdd['getDifference'](_0x2f5528);this['_isBlockAttribute'](_0x50b4d8)&&'insertion'==_0x223f77['type']&&0x0!=_0x1c4a5a['length']||(_0x2ffe08['delete'](_0x3dcbdd),_0x1c4a5a['forEach'](_0x44098a=>{_0x2ffe08['set'](_0x44098a,_0x2d6196);}),'insertion'!=_0x223f77['type']&&_0x1f2550!=_0x145023&&_0x2ffe08['set'](_0x3dcbdd['getIntersection'](_0x2f5528),_0x1f2550));}const _0x68c6d0=[];for(const [_0x17080e,_0x1458f4]of _0x2ffe08){const _0x49b081=_0x5042b(),_0x5580a7={'key':_0x50b4d8,'oldValue':_0x1458f4,'newValue':_0x145023};_0x50b4d8['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':_0x50b4d8});const _0x64f5ea=('attribute:'+(_0x50b4d8+'|'+Gt({'newValue':_0x145023})))['substring'](0x0,0x3c),_0x5c9f66=this['_setSuggestionData']({'id':_0x49b081,'type':_0x64f5ea,'data':_0x5580a7,'createdAt':new Date(),'authorId':_0x1ffa44,'attributes':_0x459bac});_0x68c6d0['push'](_0x5c9f66),this['_addSuggestionMarker'](_0x64f5ea,_0x49b081,_0x1ffa44,_0x17080e);}return _0x68c6d0;}['enableDefaultAttributesIntegration'](_0x276200){this['enableCommand'](_0x276200,(_0x16bdfd,..._0x2ba3d1)=>{this['_recordAttributeChanges'](()=>{_0x16bdfd(..._0x2ba3d1);});});}['registerBlockAttribute'](_0x2ccfe8){this['_blockAttributeKeys']['add'](_0x2ccfe8);}['registerInlineAttribute'](_0x324e6b){this['_inlineAttributeKeys']['add'](_0x324e6b);}['_getAttributeKey'](_0x105296){return'attribute'==_0x105296['type']?_0x105296['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5d090f,_0x45fafb){const _0x18664f=_0x5d090f['getFirstMarker']();this['_model']['change'](_0x327b4e=>{_0x327b4e['updateMarker'](_0x18664f,{'range':_0x45fafb});});}['_addThreadToSuggestion'](_0x3b7446){const _0x268ea5=_0x3b7446['id'],_0x9f507c=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x268ea5)||this['_commentsRepository']['addCommentThread']({'channelId':_0x9f507c,'threadId':_0x268ea5,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x18b711=this['_commentsRepository']['getCommentThread'](_0x268ea5);_0x18b711['unbind']('isRemovable'),_0x18b711['isRemovable']=!0x1,_0x3b7446['commentThread']=_0x18b711;}['_checkSuggestionCorrectness'](_0x37bb75,_0x50c512,_0x42602d,_0x317b25){if(_0x37bb75['type']!=_0x50c512||_0x37bb75['subType']!=_0x42602d||_0x37bb75['creator']['id']!=_0x317b25)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x36031a('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x33f522,_0x4b1a64){const _0x3e123a=_0x33f522['getFirstRange']();if(_0x4b1a64['isEqual'](_0x3e123a))_0x33f522['removeMarkers']();else{if(_0x3e123a['containsRange'](_0x4b1a64)){const _0x274045=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x274045));const _0x2202d1=_0x5042b(),_0x3a7b98=_0x33f522['creator']['id'],_0x274071=_0x33f522['type']+':'+_0x33f522['subType'];this['_setSuggestionData']({'id':_0x2202d1,'type':_0x274071,'createdAt':new Date(),'authorId':_0x3a7b98,'data':_0x33f522['data'],'attributes':_0x33f522['attributes']});const _0x1edaa2=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after'),_0x5aeb36=this['_model']['createRange'](_0x1edaa2,_0x3e123a['end']);this['_addSuggestionMarker'](_0x274071,_0x2202d1,_0x3a7b98,_0x5aeb36);}else{if(_0x3e123a['containsPosition'](_0x4b1a64['start'])){const _0x6a8b53=this['_model']['createPositionAt'](_0x4b1a64['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x3e123a['start'],_0x6a8b53));}else{const _0x112fcb=this['_model']['createPositionAt'](_0x4b1a64['end']['parent'],'after');this['_setSuggestionRange'](_0x33f522,this['_model']['createRange'](_0x112fcb,_0x3e123a['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x1570b8){for(const {suggestion:_0x467332,meta:_0x53eea9}of this['_findSuggestions'](_0x1570b8,'insertion')){if(!_0x53eea9['isOwn'])continue;const _0x1bbe84=_0x467332['getRanges']();for(const _0x2b98a0 of _0x1bbe84)if(!_0x1570b8['getDifference'](_0x2b98a0)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x295e8d){const _0x231f39=this['editor']['plugins']['get']('Users')['getUser'](_0x295e8d);if(!_0x231f39)throw new _0x36031a('track-changes-user-not-found',this);return _0x231f39;}['_getExternalAuthor'](_0x1e4954){const _0x4631d0=this['editor']['plugins']['get']('Users'),_0x375136=_0x3d1af3('external:'+_0x1e4954),_0x340526=_0x4631d0['getUser'](_0x375136);return _0x340526||_0x4631d0['addUser']({'id':_0x375136,'name':_0x1e4954});}['_createSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x483290,_0x4ac091){const _0x389899=this['_getAuthorFromId'](_0x483290),_0xc1c55d=this['_suggestionFactory']['buildSuggestion'](_0x599059,_0x491ad1,_0x86d743,_0x389899,_0x4ac091,_0x792abe=>{this['_updateSuggestionData'](_0x86d743,{'attributes':_0x792abe});const _0x2b5afc=this['getSuggestion'](_0x86d743);this['_joinWithAdjacentSuggestions'](new Set([_0x2b5afc])),this['_refreshSuggestionsChain'](new Set([_0x2b5afc]));});return this['listenTo'](_0xc1c55d,'accept',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xc1c55d,'discard',()=>{this['_updateSuggestionData'](_0x86d743,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x86d743,_0xc1c55d),this['_suggestionState']['set'](_0xc1c55d,'notReady'),_0xc1c55d;}['_splitMarkerName'](_0x3236d1){const _0x53afe3=_0x3236d1['split'](':');return{'group':_0x53afe3[0x0],'type':_0x53afe3[0x1],'subType':_0x53afe3['length']>=0x5?_0x53afe3[0x2]:null,'id':_0x53afe3['length']<0x5?_0x53afe3[0x2]:_0x53afe3[0x3],'authorId':_0x53afe3['length']<0x5?_0x53afe3[0x3]:_0x53afe3[0x4],'markerCount':0x6==_0x53afe3['length']?_0x53afe3[0x5]:null};}['_breakSuggestionMarker'](_0x5e7612,_0x3a161a,_0x5aef91){const _0x5852a8=_0x5e7612['getFirstRange'](),_0x166db9=_0x5852a8['start'],_0x11e5ea=_0x5852a8['end'];this['_setSuggestionRange'](_0x5e7612,this['_model']['createRange'](_0x166db9,_0x3a161a));const _0x10faa2=_0x5042b(),_0x594481=_0x5e7612['creator']['id'],_0x23ca17=_0x5e7612['type']+(_0x5e7612['subType']?':'+_0x5e7612['subType']:'');this['_setSuggestionData']({'id':_0x10faa2,'type':_0x23ca17,'createdAt':new Date(),'authorId':_0x594481,'originalSuggestionId':_0x5e7612['id'],'attributes':_0x5e7612['attributes'],'data':_0x5e7612['data']});const _0x587754=this['_getAttributeKey'](_0x5e7612);('formatBlock'==_0x5e7612['type']||_0x587754&&this['_isBlockAttribute'](_0x587754))&&(_0x5aef91=this['_model']['createPositionBefore'](_0x5aef91['parent'])),this['_addSuggestionMarker'](_0x23ca17,_0x10faa2,_0x594481,this['_model']['createRange'](_0x5aef91,_0x11e5ea));}['_findSuggestions'](_0x227383,_0x4eb599=null){const _0x44ca9b=[],_0x494088=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x227383)||(_0x227383=[_0x227383]);for(const _0x2bf60f of this['getSuggestions']()){if(!_0x2bf60f['isInContent'])continue;if(_0x4eb599&&_0x2bf60f['type']!=_0x4eb599)continue;let _0x9bf9e1=!0x1;for(const _0x9936f5 of _0x2bf60f['getRanges']()){for(const _0x414555 of _0x227383){const _0x3825d5=_0x414555['start']['isEqual'](_0x9936f5['end'])||_0x414555['end']['isEqual'](_0x9936f5['start']);if(_0x3825d5||_0x414555['getIntersection'](_0x9936f5)){const _0x54795c=_0x414555['containsRange'](_0x9936f5)&&Ot(this['_model']['schema'],_0x9936f5['start'],_0x414555),_0x436a9b=_0x9936f5['containsRange'](_0x414555)&&Ot(this['_model']['schema'],_0x414555['start'],_0x9936f5);_0x44ca9b['push']({'suggestion':_0x2bf60f,'meta':{'isOwn':_0x494088==_0x2bf60f['author'],'isNextTo':_0x3825d5,'isInsideObject':_0x54795c,'containsRangeInObject':_0x436a9b}}),_0x9bf9e1=!0x0;break;}}if(_0x9bf9e1)break;}}return _0x44ca9b;}['_addSuggestionMarker'](_0x579791,_0xa5b65a,_0x45d421,_0x2ece67,_0x2f26d1){this['_model']['change'](_0x5430de=>{let _0x494a9c='suggestion:'+_0x579791+':'+_0xa5b65a+':'+_0x45d421;_0x2f26d1&&(_0x494a9c=_0x494a9c+':'+_0x2f26d1),_0x5430de['addMarker'](_0x494a9c,{'range':_0x2ece67,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x499817){const _0x227c5a=_0x499817['previous'],_0x5845d1=_0x499817['next'];_0x499817['previous']=null,_0x499817['next']=null,null!=_0x227c5a&&_0x227c5a['next']==_0x499817&&(_0x227c5a['next']=_0x5845d1),null!=_0x5845d1&&_0x5845d1['previous']==_0x499817&&(_0x5845d1['previous']=_0x227c5a),'ready'==this['_suggestionState']['get'](_0x499817)&&(this['_suggestionState']['set'](_0x499817,'removed'),this['fire']('suggestionUnloaded',_0x499817,_0x227c5a,_0x5845d1));}['_setSuggestionData'](_0x473b8f){const _0x315e9f=_0x473b8f['id'],_0x2d1397=this['addSuggestionData'](_0x473b8f);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x52ba70=this['editor']['plugins']['get']('PendingActions'),_0x5cdc2d=_0x2d1397['hasComments'],_0x3d97cd=_0x2d1397['subType']?_0x2d1397['type']+':'+_0x2d1397['subType']:_0x2d1397['type'],_0x1fd67e=this['editor']['locale'],_0x5cc537=_0x52ba70['add'](o(_0x1fd67e,'PENDING_ACTION_SUGGESTION')),_0x2a7015={'id':_0x315e9f,'type':_0x3d97cd,'hasComments':_0x5cdc2d,'data':_0x473b8f['data']||null,'originalSuggestionId':_0x473b8f['originalSuggestionId']||null,'attributes':_0x2d1397['attributes']};this['_adapter']['addSuggestion'](_0x2a7015)['then'](_0x1cd0c2=>{_0x2d1397['_saved']=!0x0,_0x52ba70['remove'](_0x5cc537),_0x1cd0c2&&_0x1cd0c2['createdAt']&&(this['_suggestions']['get'](_0x315e9f)['createdAt']=_0x1cd0c2['createdAt']);})['catch'](_0xd5ac6e=>{throw _0x4ead58('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x2d1397['discard']();}),_0x2d1397['stopListening'](),this['_suggestions']['delete'](_0x2d1397['id']),this['_suggestionState']['delete'](_0x2d1397),_0xd5ac6e;});}return _0x2d1397;}['_isBlockAttribute'](_0x475024){return this['_blockAttributeKeys']['has'](_0x475024);}['_updateSuggestionData'](_0x2c308e,_0x5bf044){const _0x1989cd=this['editor']['plugins']['get']('PendingActions'),_0x5a470f=this['getSuggestion'](_0x2c308e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5a470f['_saved']){const _0xf8e612=_0x1989cd['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2c308e,_0x5bf044)['then'](()=>{_0x1989cd['remove'](_0xf8e612);});}else _0x5a470f['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2c308e,_0x5bf044);});}}['_getSuggestionData'](_0x3e1974){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x36031a('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x3e1974);}['_handleNewSuggestionMarker'](_0x1d6b37){const {id:_0x1adc69,type:_0x377d83,subType:_0x44cb92,authorId:_0x1ce798}=this['_splitMarkerName'](_0x1d6b37),_0x302a07=this['_suggestions']['get'](_0x1adc69)||this['_createSuggestion'](_0x377d83,_0x44cb92,_0x1adc69,_0x1ce798,{});switch(this['_checkSuggestionCorrectness'](_0x302a07,_0x377d83,_0x44cb92,_0x1ce798),this['_suggestionState']['get'](_0x302a07)){case'notReady':this['_getSuggestionData'](_0x1adc69)['then'](_0x5d011a=>{let _0x5a9e67=Promise['resolve']();_0x5d011a['hasComments']&&(_0x5a9e67=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1adc69})),_0x5a9e67['then'](()=>{this['addSuggestionData'](_0x5d011a)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x302a07,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1adc69,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x302a07,'ready'),this['fire']('suggestionLoaded',_0x302a07);break;case'ready':this['fire']('suggestionChanged',_0x302a07);}return _0x302a07['addMarkerName'](_0x1d6b37),_0x302a07;}['_refreshSuggestionsChain'](_0x5bbc0f){const _0x548cc4=Array['from'](_0x5bbc0f),_0x4119c8=_0x548cc4['filter'](_0x69e676=>'attribute'==_0x69e676['type']);this['_refreshAttributeSuggestionsChain'](_0x4119c8);const _0xecc07f=_0x548cc4['filter'](_0x59d917=>!_0x59d917['isMultiRange']&&'attribute'!=_0x59d917['type']),_0x3a0357=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x55b386=>!_0x55b386['isMultiRange']&&'attribute'!=_0x55b386['type']),_0x16fc8a=_0x3a0357['filter'](_0x594726=>!_0x5bbc0f['has'](_0x594726)),_0x597eac=new Map(_0x3a0357['map'](_0x4cfaaa=>[_0x4cfaaa,this['_suggestionFactory']['getSuggestionCallback'](_0x4cfaaa['type'],_0x4cfaaa['subType'],'chain')])),_0x28166c=new Map(_0x3a0357['map'](_0x42c373=>[_0x42c373,_0x42c373['getFirstRange']()])),_0x4a5b91=new Set(),_0x42c6d3=new Set();for(let _0x2f4422=0x0;_0x2f4422<_0xecc07f['length'];_0x2f4422++)_0x439ff8(_0xecc07f[_0x2f4422],_0xecc07f,_0x2f4422+0x1);for(let _0x586c96=0x0;_0x586c96<_0xecc07f['length'];_0x586c96++)_0x439ff8(_0xecc07f[_0x586c96],_0x16fc8a,0x0);const _0x41d021=new Set();for(let _0x35cc73=0x0;_0x35cc73<_0xecc07f['length'];_0x35cc73++){const _0x127656=_0xecc07f[_0x35cc73];!_0x42c6d3['has'](_0x127656)&&_0x127656['previous']&&(_0x41d021['add'](_0x127656['previous']),_0x127656['previous']['next']===_0x127656&&(_0x127656['previous']['next']=null),_0x127656['previous']=null),!_0x4a5b91['has'](_0x127656)&&_0x127656['next']&&(_0x41d021['add'](_0x127656['next']),_0x127656['next']['previous']===_0x127656&&(_0x127656['next']['previous']=null),_0x127656['next']=null);}function _0x439ff8(_0x5193bf,_0x996622,_0x20c1d5){for(let _0x5590b4=_0x20c1d5;_0x5590b4<_0x996622['length'];_0x5590b4++){const _0x400be2=_0x2e371e(_0x5193bf,_0x996622[_0x5590b4]);_0x400be2&&(_0x400be2[0x0]['next']=_0x400be2[0x1],_0x400be2[0x1]['previous']=_0x400be2[0x0],_0x4a5b91['add'](_0x400be2[0x0]),_0x42c6d3['add'](_0x400be2[0x1]));}}function _0x2e371e(_0x1ef56f,_0x12fbcc){if(_0x1ef56f['author']['id']!==_0x12fbcc['author']['id'])return null;const _0x24c761=_0x597eac['get'](_0x1ef56f)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc));if(!_0x24c761)return null;return _0x597eac['get'](_0x12fbcc)(_0x1ef56f,_0x12fbcc,_0x28166c['get'](_0x1ef56f),_0x28166c['get'](_0x12fbcc))?_0x24c761[0x1]['commentThread']&&_0x24c761[0x1]['commentThread']['length']?null:_0x24c761:null;}_0x41d021['size']&&this['_refreshSuggestionsChain'](_0x41d021);}['_refreshAttributeSuggestionsChain'](_0x292350){if(0x0==_0x292350['length'])return;const _0x12fb1d=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5dfc88=>'attribute'==_0x5dfc88['type']&&_0x5dfc88['_isDataLoaded']),_0x30ab02=[],_0x502603=new Map();for(const _0x30641c of _0x12fb1d){const _0x34914d=_0x3d1af3(_0x30641c['attributes']);_0x502603['has'](_0x34914d)||(_0x502603['set'](_0x34914d,_0x30ab02['length']),_0x30ab02['push']([]));const _0x32ee5b=_0x502603['get'](_0x34914d);_0x30ab02[_0x32ee5b]['push'](_0x30641c);}!(function(){_0x30ab02['sort']((_0x266acc,_0x5a9a2b)=>{const _0x311f28=_0x266acc[0x0]['createdAt'],_0x115176=_0x5a9a2b[0x0]['createdAt'];return _0x311f28==_0x115176?_0x266acc[0x0]['attributes']['groupId']<_0x5a9a2b[0x0]['attributes']['groupId']?-0x1:0x1:_0x311f28<_0x115176?-0x1:0x1;});for(const _0x417873 of _0x30ab02)_0x417873['sort']((_0x2d2adc,_0x57f507)=>_0x2d2adc['id']<_0x57f507['id']?-0x1:0x1);}());for(let _0x16bc61=0x0;_0x16bc61<_0x30ab02['length'];_0x16bc61++){if(0x0==_0x30ab02[_0x16bc61]['length'])continue;const _0x32dae2=[];for(let _0x1d813b=_0x16bc61+0x1;_0x1d813b<_0x30ab02['length'];_0x1d813b++)0x0!=_0x30ab02[_0x1d813b]['length']&&_0x12b555(_0x30ab02[_0x16bc61],_0x30ab02[_0x1d813b])&&_0x32dae2['push'](_0x1d813b);for(const _0x3bc945 of _0x32dae2)_0x30ab02[_0x16bc61]=_0x30ab02[_0x16bc61]['concat'](_0x30ab02[_0x3bc945]),_0x30ab02[_0x3bc945]=[];}for(const _0x2f4d35 of _0x30ab02)for(let _0x19ca47=0x0;_0x19ca47<_0x2f4d35['length'];_0x19ca47++){const _0x38dee0=_0x2f4d35[_0x19ca47+0x1]||null;_0x2f4d35[_0x19ca47]['next']!==_0x38dee0&&(_0x2f4d35[_0x19ca47]['next']=_0x38dee0);}for(const _0x17626b of _0x30ab02)for(let _0x414ebb=0x0;_0x414ebb<_0x17626b['length'];_0x414ebb++){const _0x117ba2=_0x17626b[_0x414ebb-0x1]||null;_0x17626b[_0x414ebb]['previous']!==_0x117ba2&&(_0x17626b[_0x414ebb]['previous']=_0x117ba2);}function _0x12b555(_0xec6dd2,_0x1ea709){if(_0xec6dd2[0x0]['attributes']['groupId']!==_0x1ea709[0x0]['attributes']['groupId']&&_0xec6dd2[0x0]['author']!==_0x1ea709[0x0]['author'])return!0x1;if(!function(_0x2801fc,_0x1d564c){if(!_0x2801fc['hasComments']&&!_0x1d564c['hasComments'])return!0x0;if(_0x2801fc['hasComments']&&_0x1d564c['hasComments'])return!0x1;if(_0x2801fc['hasComments']&&_0x1d564c['createdAt']<_0x2801fc['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x1d564c['hasComments']&&_0x2801fc['createdAt']<_0x1d564c['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xec6dd2[0x0],_0x1ea709[0x0]))return!0x1;const _0x3dffa2=Tt(_0xec6dd2[0x0]['attributes'],'groupId'),_0x1dcbe4=Tt(_0x1ea709[0x0]['attributes'],'groupId');if(!_0x8956aa(_0x3dffa2,_0x1dcbe4))return!0x1;return!!_0xec6dd2['every'](_0x44720c=>_0x1ea709['some'](_0x1054be=>_0x44720c['getFirstRange']()['isEqual'](_0x1054be['getFirstRange']())))&&_0x1ea709['every'](_0x25e69a=>_0xec6dd2['some'](_0x5cbd2a=>_0x25e69a['getFirstRange']()['isEqual'](_0x5cbd2a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x54b4c6){const _0x5d4e01=Array['from'](_0x54b4c6),_0x19a202=this['getSuggestions']({'skipNotAttached':!0x0}),_0x2d6805=_0x19a202['filter'](_0x378432=>!_0x54b4c6['has'](_0x378432)),_0x178436=new Map(_0x5d4e01['map'](_0x361587=>[_0x361587,this['_suggestionFactory']['getSuggestionCallback'](_0x361587['type'],_0x361587['subType'],'join')])),_0x5128c7=new Map(_0x19a202['map'](_0x2acc85=>[_0x2acc85,_0x2acc85['getRanges']()]));for(let _0x1f73ff=0x0;_0x1f73ff<_0x5d4e01['length'];_0x1f73ff++){if(_0x2dfdd5(this,_0x5d4e01[_0x1f73ff],_0x5d4e01,_0x1f73ff+0x1))return!0x0;}for(let _0x65dbbc=0x0;_0x65dbbc<_0x5d4e01['length'];_0x65dbbc++){if(_0x2dfdd5(this,_0x5d4e01[_0x65dbbc],_0x2d6805,0x0))return!0x0;}return!0x1;function _0x2dfdd5(_0x3aa02a,_0x319bb5,_0x1424d2,_0x4c10e1){for(let _0x43ef07=_0x4c10e1;_0x43ef07<_0x1424d2['length'];_0x43ef07++){const _0x283840=_0x1424d2[_0x43ef07];if(_0x283840['type']!==_0x319bb5['type']||_0x283840['author']['id']!==_0x319bb5['author']['id']||_0x283840['subType']!==_0x319bb5['subType'])continue;if(!Jt(_0x319bb5,_0x283840))continue;if('attribute'==_0x319bb5['type']&&_0x319bb5['data']['oldValue']!=_0x283840['data']['oldValue'])continue;if('attribute'==_0x319bb5['type']&&_0x3aa02a['_isBlockAttribute'](_0x319bb5['data']['key']))continue;if('formatBlock'==_0x319bb5['type']){const _0x100d3b=_0x3aa02a['editor']['model'],_0x8e30e0=_0x319bb5['getContainedElement']();if(_0x8e30e0&&(_0x100d3b['schema']['isObject'](_0x8e30e0)||_0x100d3b['schema']['isLimit'](_0x8e30e0)))continue;}const _0x2110ed=_0x178436['get'](_0x319bb5),_0x37e8d9=_0x5128c7['get'](_0x319bb5),_0x213d3f=_0x5128c7['get'](_0x283840),_0x1b4aa1=_0x319bb5['commentThread']&&_0x319bb5['commentThread']['length'],_0x322d86=_0x283840['commentThread']&&_0x283840['commentThread']['length'];if(!_0x1b4aa1&&_0x2110ed(_0x213d3f,_0x37e8d9))return _0x3aa02a['_joinSuggestions'](_0x283840,_0x319bb5),_0x5128c7['delete'](_0x319bb5),!0x0;if(!_0x322d86&&_0x2110ed(_0x37e8d9,_0x213d3f))return _0x3aa02a['_joinSuggestions'](_0x319bb5,_0x283840),_0x5128c7['delete'](_0x283840),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5a5924,_0x5420cf){if(_0x5a5924['isMultiRange']){for(const _0x5e567c of _0x5420cf['getRanges']())_0x5a5924['addRange'](_0x5e567c);}else{const _0x450aa3=_0x5420cf['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5a5924,this['_model']['createRange'](_0x5a5924['getFirstRange']()['start'],_0x450aa3));}_0x5420cf['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1656fc,_0xd2ead9,_0x5ab0c7){const _0x35453b=_0x1656fc['startsWith']('format')||_0x1656fc['startsWith']('attribute')?'FORMATTING':_0x1656fc['toUpperCase']();return o(this['editor']['locale'],_0xd2ead9+'_'+_0x35453b+'_SUGGESTION_ANNOUNCEMENT',_0x5ab0c7);}['_initAriaMarkerChangeAnnouncements'](){const _0x59fac0=this['editor'];if(!_0x59fac0['ui'])return;const {ariaLiveAnnouncer:_0x334e88}=_0x59fac0['ui'];_0x15d99f(this['_model'],({left:_0x65b63,entered:_0x2ec822})=>{for(const _0x1544cb of _0x65b63){const {group:_0x105d56,type:_0x474c76}=this['_splitMarkerName'](_0x1544cb['name']);if('suggestion'===_0x105d56){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0x474c76,'LEAVE'));break;}}for(const _0x3cd8db of _0x2ec822){const {group:_0x3f7a6b,type:_0xe889ed}=this['_splitMarkerName'](_0x3cd8db['name']);if('suggestion'===_0x3f7a6b){_0x334e88['announce'](this['_getMarkerAnnouncementText'](_0xe889ed,'ENTER',_0x3b5acf(_0x347009)));break;}}});}['_processAttributeChanges'](_0x4f5635){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3e8bb9=this['editor'],_0x917b3a=_0x3e8bb9['model']['document']['differ']['getChanges']();if(0x0==_0x917b3a['length'])return!0x1;const _0x283cfc=[],_0x553d52=_0x917b3a['filter'](_0x2d2823=>'attribute'==_0x2d2823['type']),_0xbc94cc=_0x917b3a['filter'](_0x41147e=>'insert'==_0x41147e['type']&&'$text'!=_0x41147e['name']),_0x5e66c6=_0x917b3a['filter'](_0x5215c2=>'remove'==_0x5215c2['type']&&'$text'!=_0x5215c2['name']);for(const _0x1f942e of _0x553d52)_0x283cfc['push']({'key':_0x1f942e['attributeKey'],'newValue':_0x1f942e['attributeNewValue'],'oldValue':_0x1f942e['attributeOldValue'],'range':Pt(_0x1f942e['range'],_0x3e8bb9['model'])});for(const _0x4f7265 of _0xbc94cc){const _0x13b7e5=_0x5e66c6['find'](_0x15c487=>_0x15c487['position']['isEqual'](_0x4f7265['position']));_0x13b7e5&&_0x283cfc['push']({'key':m,'newValue':_0x4f7265['name'],'oldValue':_0x13b7e5['name'],'range':_0x3e8bb9['model']['createRangeOn'](_0x4f7265['position']['nodeAfter'])});}return 0x0!=_0x283cfc['length']&&this['_reduceExistingSuggestions'](_0x4f5635,_0x283cfc);}['_processAttributeSuggestions'](_0x3a1e72){let _0x2aa692=!0x1;const _0x3ce89a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x38d2d0=>_0x38d2d0['data']['newRange']&&_0x38d2d0['name']['startsWith']('suggestion:attribute:'));for(const _0x4f10e4 of _0x3ce89a){const {subType:_0x115205,id:_0x554d8c}=this['_splitMarkerName'](_0x4f10e4['name']),_0x341eb1=_0x115205['split']('|')[0x0];for(const _0x282627 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x282627['id']!=_0x554d8c&&'attribute'==_0x282627['type']&&_0x282627['data']&&_0x282627['data']['key']==_0x341eb1&&_0x282627['getFirstRange']()['isIntersecting'](_0x4f10e4['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x282627,_0x4f10e4['data']['newRange'],_0x3a1e72),_0x2aa692=!0x0);}return _0x2aa692;}['_recordAttributeChanges'](_0x1da5db){this['_recordAttributeSuggestions']=!0x0,_0x1da5db();}['_isRegisteredAttribute'](_0x4e4430){const _0x1c61c6=this['_isBlockAttribute'](_0x4e4430),_0x4ad229=this['_inlineAttributeKeys']['has'](_0x4e4430);return _0x1c61c6||_0x4ad229;}['_reduceExistingSuggestions'](_0x4668ee,_0x1f21fa){if(0x0==_0x1f21fa['length'])return!0x1;let _0x28e19b=!0x1;for(const _0x16eb38 of _0x1f21fa){const _0x1742b1=this['_findSuggestions'](_0x16eb38['range'],'attribute')['filter'](_0x5195c8=>!_0x5195c8['meta']['isNextTo'])['map'](_0x1d4f10=>_0x1d4f10['suggestion']),_0x32a172=_0x3d1af3({'newValue':_0x16eb38['newValue']});_0x1742b1['filter'](_0x43e455=>{const [_0x56a875,_0x58ecf7]=_0x43e455['subType']['split']('|');return _0x56a875==_0x16eb38['key']&&_0x58ecf7!=_0x32a172;})['forEach'](_0x4640bb=>{this['_reduceSuggestionAttributeRange'](_0x4640bb,_0x16eb38['range'],_0x4668ee),_0x28e19b=!0x0;});}return _0x28e19b;}['_reduceSuggestionAttributeRange'](_0x4de1a9,_0x53a579,_0x4950ff){const _0x52712b=_0x4de1a9['getFirstRange']()['getDifference'](_0x53a579);0x0!==_0x52712b['length']?0x1!==_0x52712b['length']?this['_breakSuggestionMarker'](_0x4de1a9,_0x53a579['start'],_0x53a579['end']):this['_setSuggestionRange'](_0x4de1a9,_0x52712b[0x0]):_0x4950ff['removeMarker'](_0x4de1a9['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x4dbc6d){this['_editor']=_0x4dbc6d,this['_model']=_0x4dbc6d['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2c2d5a,_0x25c37c,_0x344b8a,_0xd5cae5,_0x5444a4,_0xd82c3f){return new u(this['_model'],{'type':_0x2c2d5a,'subType':_0x25c37c,'id':_0x344b8a,'author':_0xd5cae5,'creator':_0xd5cae5,'attributes':_0x5444a4,'onAttributesChange':_0xd82c3f,'onAccept':(..._0x1503d2)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'accept')(..._0x1503d2),'onDiscard':(..._0xfa46cb)=>this['getSuggestionCallback'](_0x2c2d5a,_0x25c37c,'discard')(..._0xfa46cb)});}['registerCustomCallback'](_0x1473fa,_0x3873d8,_0x18b75e,_0x266708){const _0x2639bd=_0x1473fa+':'+_0x3873d8+':'+_0x18b75e;this['_customCallbacks']['set'](_0x2639bd,_0x266708);}['getSuggestionCallback'](_0x29b908,_0x14fa67,_0x3e8c08){const _0x370e63=_0x29b908+':'+_0x14fa67+':'+_0x3e8c08;return this['_customCallbacks']['get'](_0x370e63)||this['_defaultCallbacks']['get'](_0x29b908+':'+_0x3e8c08);}['_registerDefaultCallbacks'](){const _0x40dbe4=()=>!0x1,_0x9e3980=_0x4695ba=>{_0x4695ba['sort']((_0x5b1529,_0x39c63e)=>_0x5b1529['start']['isBefore'](_0x39c63e['start'])?0x1:-0x1),this['_model']['change'](_0x4d5537=>{for(const _0x2eaaee of _0x4695ba){let _0x2f5a62;_0x2f5a62=_0x2eaaee['end']['isAtEnd']&&_0x2eaaee['end']['parent']==_0x2eaaee['start']['nodeAfter']?_0x4d5537['createSelection'](_0x2eaaee['start']['nodeAfter'],'on'):_0x4d5537['createSelection'](_0x2eaaee),this['_model']['deleteContent'](_0x2f5a62,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f3c3e=(_0x4edb29,_0x1e3fda)=>{_0x1e3fda&&this['_model']['change'](_0x23085d=>{const {commandName:_0x74ed52,commandParams:_0x483a5e=[]}=_0x1e3fda,_0x3eb05e=_0x4edb29['map'](_0x409fb6=>(Vt(_0x409fb6)&&(_0x409fb6=this['_model']['createRange'](_0x409fb6['end'])),_0x409fb6))['filter'](_0x5c77a2=>'$graveyard'!==_0x5c77a2['root']['rootName']);if(_0x3eb05e['length']<0x1)return;const _0x448c8a=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3f9398=>_0x5018e8['fromRange'](_0x3f9398));_0x23085d['setSelection'](_0x3eb05e);for(const _0x5ecc46 of this['_editor']['commands']['commands']())_0x5ecc46['refresh']();_0x483a5e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x74ed52,..._0x483a5e);const _0x18cc69=_0x448c8a['filter'](_0x5512af=>'$graveyard'!=_0x5512af['root']['rootName']);_0x18cc69['length']>0x0&&_0x23085d['setSelection'](_0x18cc69);for(const _0x6060e5 of _0x448c8a)_0x6060e5['detach']();});},_0x2593ca=(_0xaf7f2f,_0x1133da)=>0x1==_0xaf7f2f['length']&&0x1==_0x1133da['length']&&_0xaf7f2f[0x0]['end']['isEqual'](_0x1133da[0x0]['start']),_0x1eaaad=(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633)=>Ht(_0x2b5d2b,_0xa7a246,_0x4f6383,_0x3be633,this['_model'])?[_0x2b5d2b,_0xa7a246]:Ht(_0xa7a246,_0x2b5d2b,_0x3be633,_0x4f6383,this['_model'])?[_0xa7a246,_0x2b5d2b]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x40dbe4),this['_defaultCallbacks']['set']('insertion:discard',_0x9e3980),this['_defaultCallbacks']['set']('insertion:join',_0x2593ca),this['_defaultCallbacks']['set']('insertion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('deletion:accept',_0x9e3980),this['_defaultCallbacks']['set']('deletion:discard',_0x40dbe4),this['_defaultCallbacks']['set']('deletion:join',_0x2593ca),this['_defaultCallbacks']['set']('deletion:chain',_0x1eaaad),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatInline:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatInline:join',_0x2593ca),this['_defaultCallbacks']['set']('formatInline:chain',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f3c3e),this['_defaultCallbacks']['set']('formatBlock:discard',_0x40dbe4),this['_defaultCallbacks']['set']('formatBlock:join',_0x2593ca),this['_defaultCallbacks']['set']('formatBlock:chain',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:accept',_0x40dbe4),this['_defaultCallbacks']['set']('attribute:discard',(_0x456f9e,_0x5bdce5)=>{if(!_0x5bdce5)return;const _0x6c073c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x1c724b=>{if(_0x5bdce5['key']==m)for(const _0xf5de28 of _0x456f9e){const _0x5758a5=_0xf5de28['start']['nodeAfter'],_0x4c5100=_0x5bdce5['oldValue'];_0x1c724b['rename'](_0x5758a5,_0x4c5100);}else{if(_0x6c073c['_isBlockAttribute'](_0x5bdce5['key'])){for(const _0x1f7e0b of _0x456f9e)void 0x0!==_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x1f7e0b['start']['nodeAfter']):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x1f7e0b['start']['nodeAfter']);}else{for(const _0x19c072 of _0x456f9e)_0x5bdce5['oldValue']?_0x1c724b['setAttribute'](_0x5bdce5['key'],_0x5bdce5['oldValue'],_0x19c072):_0x1c724b['removeAttribute'](_0x5bdce5['key'],_0x19c072);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2593ca);}}function Ot(_0x429bbd,_0x307c78,_0x255550){for(const _0xe9468f of _0x307c78['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0xe9468f['root']==_0xe9468f)return!0x1;if(!_0x255550['containsItem'](_0xe9468f))return!0x1;if(_0x429bbd['isObject'](_0xe9468f)||_0x429bbd['isLimit'](_0xe9468f))return!0x0;}return!0x1;}function Vt(_0x44f6bf){return _0x44f6bf['end']['parent']==_0x44f6bf['start']['nodeAfter']&&_0x44f6bf['end']['isAtStart'];}function Ut(_0x28ac3b,_0x2e7033,_0xb0c211,_0x343b6a){const _0x280681=_0x225cee=>!_0x225cee['item']['is']('$textProxy')&&!_0x343b6a['isObject'](_0x225cee['item']),_0x5b8456=_0x28ac3b['start']['getLastMatchingPosition'](_0x280681),_0x280e9d=_0x28ac3b['end']['getLastMatchingPosition'](_0x280681,{'direction':'backward'});return(!_0x28ac3b['start']['isEqual'](_0x5b8456)||!_0x28ac3b['end']['isEqual'](_0x280e9d))&&(_0x5b8456['isBefore'](_0x280e9d)?_0xb0c211['updateMarker'](_0x2e7033,{'range':_0xb0c211['createRange'](_0x5b8456,_0x280e9d)}):_0xb0c211['removeMarker'](_0x2e7033),!0x0);}function Gt(_0x2c6a91){return _0x3d1af3(_0x2c6a91);}function Ft(_0xf8eaf6){const _0x3fd702=_0xf8eaf6['start']['nodeAfter'];return _0x3fd702&&_0x3fd702['is']('element');}function Pt(_0x10a48d,_0x1f37ae){return null==_0x10a48d['end']['nodeBefore']&&_0x10a48d['end']['parent']==_0x10a48d['start']['nodeAfter']?Lt(_0x10a48d['start']['nodeAfter'],_0x1f37ae):_0x10a48d;}function Lt(_0x4337f0,_0x47010){const _0x42c58e=_0x47010['schema']['isObject'](_0x4337f0)||_0x47010['schema']['isSelectable'](_0x4337f0);return _0x47010['createRange'](_0x47010['createPositionAt'](_0x4337f0,'before'),_0x42c58e?_0x47010['createPositionAfter'](_0x4337f0):_0x47010['createPositionAt'](_0x4337f0,'end'));}function Ht(_0x12ed73,_0x8b823e,_0x1d1258,_0x5ca766,_0x852519){if(_0x12ed73['next'])return!0x1;if(!Jt(_0x12ed73,_0x8b823e))return!0x1;if(_0x1d1258['end']['isEqual'](_0x5ca766['start']))return!0x0;if(_0x12ed73['type']!=_0x8b823e['type'])return!0x1;if(!_0x1d1258['end']['isTouching'](_0x5ca766['start']))return!0x1;const _0x3e72de=_0x852519['createRange'](_0x1d1258['end'],_0x5ca766['start'])['getWalker']();for(const _0x5745bb of _0x3e72de)if(['elementStart','elementEnd']['includes'](_0x5745bb['type'])&&_0x852519['schema']['isLimit'](_0x5745bb['item']))return!0x1;return!0x0;}function Jt(_0x4f96e8,_0x3464f9){if(!_0x4f96e8['_isDataLoaded']||!_0x3464f9['_isDataLoaded'])return!0x1;const _0x557048=new Set(Object['keys'](_0x4f96e8['attributes'])),_0x2f5177=new Set(Object['keys'](_0x3464f9['attributes']));if(_0x557048['delete']('groupId'),_0x2f5177['delete']('groupId'),0x0==_0x557048['size']&&0x0==_0x2f5177['size'])return!0x0;if(_0x557048['size']!=_0x2f5177['size'])return!0x1;const _0x36e7e6={..._0x4f96e8['attributes']},_0x2538ef={..._0x3464f9['attributes']};return delete _0x36e7e6['groupId'],delete _0x2538ef['groupId'],JSON['stringify'](_0x36e7e6)==JSON['stringify'](_0x2538ef);}function qt(_0x181108,_0x20a602){const _0x945099=zt(_0x181108['attributes']),_0x572b96=zt(_0x20a602);if(!_0x181108['_isDataLoaded'])return!0x1;for(const _0x4b6e58 of Object['keys'](_0x572b96))if(!_0x8956aa(_0x945099[_0x4b6e58],_0x572b96[_0x4b6e58]))return!0x1;return!0x0;}function zt(_0x2ce0b0){const _0xe78164=Object['assign']({},_0x2ce0b0);return delete _0xe78164['skipNestingCheck'],delete _0xe78164['tablePasteChainId'],_0xe78164;}class ae extends/* #__PURE__ -- @preserve */
25
- _0xcb731d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3ea6f9,_0x577b85,_0x55b8f4,_0x1974c5){super(),this['model']=_0x577b85,this['view']=_0x55b8f4,this['commentThreadController']=_0x1974c5,this['_editor']=_0x3ea6f9,this['_acceptCommand']=_0x3ea6f9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3ea6f9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x7a1d01,_0x3f4870)=>_0x7a1d01||_0x3f4870),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xed874d=>_0xed874d&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3aa272=>_0x3aa272&&this['_editor']['model']['canEditAt'](_0x577b85['getRanges']())),this['_pendingAction']=null,_0x55b8f4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x55b8f4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x55b8f4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x55b8f4,'change:isDirty',()=>{_0x55b8f4['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 _0x40074e=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x40074e);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x210b86{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0xa4660b,_0x410cb8,_0x19bfd7,_0x366dbb){super(_0xa4660b),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2b28de(_0xa4660b,o(_0xa4660b,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x410cb8['authoredAt']),this['bind']('authoredAt')['to'](_0x410cb8),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',_0x410cb8,'authoredAt',this,'descriptionParts',(_0x507fa8,_0x2c7b7c,_0x2438c6)=>{const _0x4ea247=_0x2438c6['map'](_0xe802ae=>ls(_0xe802ae['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x507fa8-0x1,_0x410cb8['author']['name'],_0x2c7b7c?_0x366dbb['formatDateTime'](_0x2c7b7c):'',new DOMParser()['parseFromString'](_0x4ea247,'text/html')['body']['textContent']]);}),this['focusables']=new _0x13f084(),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4fa818=>_0x4fa818['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x410cb8,this['_localUser']=_0x19bfd7,this['_config']=_0x366dbb,_0x366dbb['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x236c2c(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x492384}=this['_config'];this['commentsListView']=new _0x492384(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',_0x3af62e=>_0x3af62e+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x261c88,_0x5184da)=>_0x261c88||!!_0x5184da);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0xde09e}=this['_config'],_0x438d52=new _0xde09e(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20a4e0=_0x438d52['commentInputView'];return _0x438d52['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20a4e0,'value',(_0x2d2d29,_0x2f1849,_0x122564)=>!!_0x122564||_0x2d2d29&&!_0x2f1849),_0x20a4e0['on']('submit',(_0x182af8,_0x31fba6)=>{this['fire']('addComment',_0x31fba6),_0x20a4e0['editor']['setData']('');}),_0x20a4e0['on']('cancel',()=>this['focus']()),_0x20a4e0['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x438d52;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2){super(_0xc8c01f,_0x31356a,_0x528f11,_0x616af2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9bd4a2=>_0x9bd4a2&&_0x9bd4a2[0x0]?_0x9bd4a2[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x5411bc,_0x29efa5)=>{let _0x9fdee2='';for(const _0x5d9821 of _0x5411bc)_0x9fdee2+='<p>'+ls(_0x5d9821['content'],_0x5d9821['color'])+'</p>';return _0x29efa5?_0x9fdee2:_0x44c8a5(_0x9fdee2,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x616af2['SuggestionView'](_0xc8c01f,_0x31356a,{'formatDateTime':_0x616af2['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 _0x20575e=this['bindTemplate'],_0x4d47df=[this['suggestionView']];return this['commentsListView']&&_0x4d47df['push'](this['commentsListView']),this['commentThreadInputView']&&_0x4d47df['push'](this['commentThreadInputView']),_0x4d47df['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x20575e['if']('isActive','ck-suggestion-wrapper--active'),_0x20575e['to']('type',_0x1abc8b=>'ck-suggestion-'+_0x1abc8b),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':_0x20575e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x4d47df};}['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 _0x210b86{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x2f48bd,_0x1aef20,_0xe762f4){super(_0x2f48bd),this['_model']=_0x1aef20,this['_config']=_0xe762f4,this['set']('description',''),this['bind']('authoredAt')['to'](_0x1aef20),this['acceptButton']=this['_createButton'](o(_0x2f48bd,'Accept\x20suggestion'),_0x2fd808['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x2f48bd,'Discard\x20suggestion'),_0x2fd808['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x49cf17(_0x2f48bd,_0x1aef20['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x13f084([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x159e05(),this['keystrokes']=new _0x27e8f6(),this['focusCycler']=new _0x308ce9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x38e94e=>_0x38e94e['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x221587=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x221587['innerHTML']=this['description'],this['on']('change:description',(_0xab39af,_0xa8c45c,_0xd7d7ee)=>{_0x221587['innerHTML']=_0xd7d7ee;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x4d308d=this['bindTemplate'],_0x5b062e=[{'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':_0x4d308d['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x4d308d['to']('authoredAt',_0x22e560=>this['_config']['formatDateTime'](_0x22e560))}]}]},{'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']&&_0x5b062e['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':_0x5b062e}]};}['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'](_0xbd96f0,_0x315ef1,_0x7b2f32,_0x4d484d,_0x26c9ec){const _0x548987=new _0x2a38fe(this['locale']);return _0x548987['set']({'label':_0xbd96f0,'icon':_0x315ef1,'tooltip':!0x0,'tooltipPosition':_0x26c9ec}),_0x548987['extendTemplate']({'attributes':{'class':_0x7b2f32}}),_0x548987['on']('execute',()=>{this['fire'](_0x4d484d,this['_model']['id']);}),_0x548987;}['_setupKeyboardNavigation'](){const _0x1ca7cd=this['element'];this['keystrokes']['listenTo'](_0x1ca7cd);for(const _0x59a02d of this['focusables'])this['focusTracker']['add'](_0x59a02d['element']),this['keystrokes']['listenTo'](_0x59a02d['element']);this['keystrokes']['set']('enter',(_0x5b48ea,_0x2bd2f2)=>{_0x1ca7cd===_0x5b48ea['target']&&(this['focusCycler']['focusFirst'](),_0x2bd2f2());}),this['keystrokes']['set']('esc',(_0x1d4c33,_0x32e207)=>{_0x1ca7cd!==_0x1d4c33['target']&&(this['focus'](),_0x32e207());});}}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 _0x1530f7{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d313f,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x497f50){super(_0x497f50),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4771f4=this['editor']['config'];_0x4771f4['define']('trackChanges.SuggestionThreadView',re),_0x4771f4['define']('trackChanges.SuggestionView',ce),_0x4771f4['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4771f4['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x471384,_0x42cdc3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x5f2443,_0x47e408]of this['_handleControllerBuffer']){const _0x432aed=this['_suggestionToController']['has'](_0x5f2443);_0x432aed||_0x47e408?_0x432aed&&_0x47e408&&this['_destroyController'](_0x5f2443):this['_initializeController'](_0x5f2443);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x471384,_0x42cdc3);}['init'](){const _0x4f13d0=this['editor'],_0x404217=_0x4f13d0['plugins']['get']('TrackChangesEditing'),_0x56f8e9=_0x4f13d0['plugins']['get']('Annotations'),_0x518df1=_0x4f13d0['plugins']['get']('EditorAnnotations'),_0x1b80ee=_0x4f13d0['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x518df1['addSourceCollector'](()=>{const _0x2f4efa=[];for(const [_0x3d5cf8,_0x53948a]of Array['from'](this['_suggestionToController'])){const _0x1755a0=_0x3d5cf8['getAllAdjacentSuggestions'](),_0x376974=[];for(const _0x197277 of _0x1755a0){if(!_0x197277['isInContent'])continue;if(_0x197277['isMultiRange']){_0x376974['push'](..._0x197277['getRanges']());continue;}const _0x5bbe90=_0x197277['getFirstRange']();if(_0x376974['length']>0x0){const _0x67180c=_0x376974[0x0]['getJoined'](_0x5bbe90);if(_0x67180c){_0x376974[0x0]=_0x67180c;continue;}}_0x376974['push'](_0x5bbe90);}_0x2f4efa['push']([_0x53948a['view'],_0x376974]);}return _0x2f4efa;}),this['listenTo'](_0x404217,'suggestionLoaded',(_0x35b3b0,_0x36982d)=>{this['listenTo'](_0x36982d,'change:previous',(_0x3ce06e,_0x3fbb58,_0x5eaa54,_0x1aa661)=>{_0x36982d['isInContent']&&(null==_0x5eaa54?(this['_updateController'](_0x1aa661['head']),this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1)):(this['_updateController'](_0x5eaa54['head']),null==_0x1aa661&&this['_handleSuggestionControllerDelayed'](_0x36982d,!0x0)));}),null!==_0x36982d['previous']?this['_updateController'](_0x36982d['head']):this['_handleSuggestionControllerDelayed'](_0x36982d,!0x1);}),this['listenTo'](_0x404217,'suggestionUnloaded',(_0x4ed730,_0x424b4f,_0x43783c)=>{this['stopListening'](_0x424b4f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x424b4f),this['_suggestionToController']['has'](_0x424b4f)&&this['_destroyController'](_0x424b4f),_0x43783c&&this['_updateController'](_0x43783c['head']);}),this['listenTo'](_0x404217,'suggestionChanged',(_0x7ae82f,_0x2080da)=>{this['_updateController'](_0x2080da);}),this['listenTo'](_0x56f8e9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x1b80ee,'addComment',(_0x467aa6,{threadId:_0x50fa3b,isFromAdapter:_0xc66a35})=>{if(_0xc66a35||!_0x404217['hasSuggestion'](_0x50fa3b))return;const _0x5d99b6=_0x404217['getSuggestion'](_0x50fa3b);this['_suggestionToController']['get'](_0x5d99b6)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x546f95=this['editor']['plugins']['get']('Annotations'),_0x983d52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3ed270=Array['from'](_0x546f95['activeAnnotations'],_0x3d3b19=>_0x3d3b19['innerView'])['filter'](_0x5d4913=>this['_viewToController']['has'](_0x5d4913)),_0x314999=[];for(const _0x51e095 of _0x3ed270){const _0x303109=this['_viewToController']['get'](_0x51e095)['model']['getAllAdjacentSuggestions']();_0x314999['push'](..._0x303109['reduce']((_0x47e336,_0x2844c9)=>[..._0x47e336,..._0x2844c9['getMarkerNames']()],[]));}_0x983d52['activeMarkers']=_0x314999;}['_addUIComponentsToFactory'](){const _0x2199a6=this['editor'],_0x26523e=_0x2199a6['locale'],_0x1d7917=o(_0x26523e,'Track\x20changes'),_0x340164=new Wt([{'type':'switchbutton','model':new _0x22e58a({'withText':!0x0,'isToggleable':!0x0,'label':_0x1d7917,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x22e58a({'withText':!0x0,'label':o(_0x26523e,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ed790 of _0x340164)if(me(_0x3ed790)){const _0x294b39=_0x2199a6['commands']['get'](_0x3ed790['model']['commandName']);_0x3ed790['model']['bind']('isOn','isEnabled')['to'](_0x294b39,'value','isEnabled');}_0x2199a6['ui']['componentFactory']['add']('trackChanges',_0xd51bef=>this['_createToolbarButton'](_0xd51bef,_0x340164,_0x1d7917)),_0x2199a6['ui']['componentFactory']['add']('menuBar:trackChanges',_0x4e7bc2=>this['_createMenuBarMenu'](_0x4e7bc2,_0x340164,_0x1d7917));}['_createToolbarButton'](_0x4ecb0d,_0x16dfc2,_0x3397cf){const _0x148309=Qt(_0x4ecb0d,_0x41b49a),_0x538f5c=this['editor']['commands']['get']('trackChanges');_0x148309['buttonView']['set']({'tooltip':_0x3397cf,'label':_0x3397cf,'icon':he}),_0x148309['buttonView']['bind']('isOn')['to'](_0x538f5c,'value'),_0x148309['buttonView']['on']('execute',()=>{_0x538f5c['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x148309,_0x16dfc2,{'role':'menu'});const _0xdf8cbf=[];for(const _0x2629e9 of _0x16dfc2)me(_0x2629e9)&&_0xdf8cbf['push'](this['editor']['commands']['get'](_0x2629e9['model']['commandName']));const _0x53bb5a=_0x148309['buttonView'];return _0x53bb5a['actionView']['unbind']('isEnabled'),_0x53bb5a['arrowView']['unbind']('isEnabled'),_0x53bb5a['actionView']['bind']('isEnabled')['to'](_0x538f5c,'isEnabled'),_0x53bb5a['arrowView']['bind']('isEnabled')['toMany'](_0xdf8cbf,'isEnabled',(..._0x2c9018)=>_0x2c9018['some'](_0x2a67e3=>_0x2a67e3)),_0x148309['on']('execute',_0x5866e9=>{this['editor']['execute'](_0x5866e9['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x148309;}['_createMenuBarMenu'](_0x562644,_0x48c101,_0x3f5f1a){const _0x45d915=new Yt(_0x562644),_0x120437=this['editor']['commands']['get']('trackChanges');_0x45d915['buttonView']['set']({'label':_0x3f5f1a,'icon':he});const _0x202bf0=new Zt(_0x562644);for(const _0x530f2a of _0x48c101){if('separator'==_0x530f2a['type']){_0x202bf0['items']['add'](new Xt(_0x562644));continue;}const _0x4fb5a4=new te(_0x562644,_0x45d915),_0x1c8745=new _0x38d913(_0x562644),_0x51c2c9=_0x530f2a['model'];_0x1c8745['bind'](...Object['keys'](_0x51c2c9))['to'](_0x51c2c9),_0x1c8745['delegate']('execute')['to'](_0x45d915),_0x1c8745['on']('execute',()=>{this['editor']['execute'](_0x51c2c9['commandName']),this['editor']['editing']['view']['focus']();}),_0x4fb5a4['children']['add'](_0x1c8745),_0x202bf0['items']['add'](_0x4fb5a4);}return _0x45d915['bind']('isEnabled')['to'](_0x120437,'isEnabled'),_0x45d915['panelView']['children']['add'](_0x202bf0),_0x45d915;}['_initializeController'](_0x2e02df){const _0x1d09ef=this['editor'],_0x5d6742=_0x1d09ef['config'],_0x3083eb=_0x1d09ef['plugins']['get']('Annotations'),_0x5a9499=_0x1d09ef['plugins']['get']('CommentsRepository'),_0x238109=_0x1d09ef['plugins']['get']('EditorAnnotations'),_0x4e04f6=_0x1d09ef['plugins']['get'](_0x4d313f)['me'],_0x19f17f=_0x5d6742['get']('trackChanges')['SuggestionThreadView'],_0x3f5385=_0x5d6742['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x2c5d4d,CommentThreadInputView:_0x197cc2}=_0x1d09ef['plugins']['get']('CommentsUI');let _0x3b5dcc,_0x4436cf,_0x1f3e03;this['_annotationViews']['has'](_0x2e02df['id'])?(_0x4436cf=this['_annotationViews']['get'](_0x2e02df['id']),_0x3b5dcc=_0x4436cf['mainView']):(_0x3b5dcc=new _0x19f17f(_0x1d09ef['locale'],_0x2e02df,_0x4e04f6,{'disableComments':this['_disableComments'],'editorConfig':_0x5d6742['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x5d6742['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x5d6742['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x5d6742['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x131ec3(_0x5d6742['get']('locale')),'CommentView':_0x5d6742['get']('comments')['CommentView'],'CommentsListView':_0x2c5d4d,'CommentThreadInputView':_0x197cc2,'SuggestionView':_0x3f5385}),_0x3b5dcc['suggestionView']['acceptButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x3b5dcc['suggestionView']['discardButton']['on']('execute',()=>{_0x1d09ef['editing']['view']['focus']();}),_0x4436cf=_0x3083eb['createAnnotationView'](this['editor']['locale'],_0x3b5dcc),_0x4436cf['bind']('isDirty')['to'](_0x3b5dcc,'isDirty'),_0x4436cf['bind']('length')['to'](_0x3b5dcc),_0x4436cf['bind']('type')['to'](_0x3b5dcc,'type',_0x11abce=>'suggestion-'+_0x11abce),_0x3b5dcc['on']('escape',()=>{_0x1f3e03['fire']('escape');}),this['_annotationViews']['set'](_0x2e02df['id'],_0x4436cf));const _0x497d2b=_0x5a9499['createCommentThreadController'](_0x2e02df['commentThread'],_0x3b5dcc),_0x21c8bd=new ae(_0x1d09ef,_0x2e02df,_0x3b5dcc,_0x497d2b),_0x1f42d9=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x4d18df=>_0x4d18df['isInContent']);_0x3b5dcc['descriptionParts']=_0x1d09ef['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1f42d9),this['_suggestionToController']['set'](_0x2e02df,_0x21c8bd),this['_viewToController']['set'](_0x3b5dcc,_0x21c8bd),_0x1f3e03=_0x3083eb['createAnnotation']({'view':_0x4436cf,'target':()=>{const _0x577645=[],_0x387550=_0x2e02df['getAllAdjacentSuggestions']()['filter'](_0x1a72e0=>_0x1a72e0['isInContent']);for(const _0x43a1d7 of _0x387550)_0x577645['push'](..._0x43a1d7['getMarkers']());return _0x418d9a(_0x1d09ef['editing'],_0x577645);},'type':()=>'suggestion-'+_0x21c8bd['view']['type']}),_0x5a9499['_bindAnnotationToEditors'](_0x3b5dcc,_0x1f3e03),_0x3083eb['add'](_0x1f3e03),_0x238109['registerAnnotation'](_0x1f3e03);}['_destroyController'](_0x388396){const _0x3bcf01=this['editor']['plugins']['get']('CommentsRepository'),_0x2c9862=this['editor']['plugins']['get']('Annotations'),_0x10cffd=this['_suggestionToController']['get'](_0x388396),_0x47f81a=_0x10cffd['view'],_0x48d5a3=_0x2c9862['getByInnerView'](_0x47f81a);_0x3bcf01['_unbindEditors'](_0x47f81a),_0x48d5a3&&_0x2c9862['remove'](_0x48d5a3),this['_suggestionToController']['delete'](_0x388396),this['_viewToController']['delete'](_0x47f81a),_0x10cffd['destroy']();}['_updateController'](_0x50f19b){if(!_0x50f19b['isInContent']||!this['_suggestionToController']['has'](_0x50f19b))return;const _0x231876=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2a778e=this['_suggestionToController']['get'](_0x50f19b),_0x36385a=_0x50f19b['getAllAdjacentSuggestions']();_0x2a778e['view']['descriptionParts']=_0x231876['descriptionFactory']['getDescriptions'](_0x36385a);}['destroy'](){for(const _0x112767 of this['_suggestionToController']['keys']())this['_destroyController'](_0x112767);for(const _0x34a636 of this['_annotationViews']['values']())_0x34a636['mainView']['destroy']();super['destroy']();}}function me(_0x262743){return'model'in _0x262743;}class k extends _0x1530f7{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5064ba){this['editor']['plugins']['get'](p)['adapter']=_0x5064ba;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x666bce){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x666bce);}['getSuggestions']({skipNotAttached:_0x196b9c=!0x1,toJSON:_0x138284=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x196b9c,'toJSON':_0x138284});}['getSuggestion'](_0x13cdc6){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x13cdc6);}}const T=['Pagination'];class P extends _0x1530f7{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4923dd=this['editor'];if(_0x4923dd['config']['define']('trackChangesData.editorCreator',_0x454df2=>{const _0x5e6703=_0x4923dd['model']['document']['getRootNames']()['reduce']((_0x205cf6,_0x5a5967)=>(_0x205cf6[_0x5a5967]='',_0x205cf6),{});return _0x4923dd['constructor']['create'](_0x5e6703,_0x454df2);}),'function'!=typeof _0x4923dd['config']['get']('trackChangesData')['editorCreator'])throw new _0x36031a('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x7b4078){return N(this['editor'],!0x0,_0x7b4078);}['getDataWithDiscardedSuggestions'](_0x5432f8){return N(this['editor'],!0x1,_0x5432f8);}}class D extends _0x1530f7{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x1359bf){super(_0x1359bf),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(_0x5cc586){return void 0x0!==_0x5cc586['getRootsAttributes'];}async function N(_0x33a9cf,_0xdacc18,_0x380d24){const _0x3155e7=_0x55d533(_0x33a9cf,T);_0x3155e7['plugins']['push'](p,D),_0x3155e7['rootsAttributes']=v(_0x33a9cf)?_0x33a9cf['getRootsAttributes']():void 0x0;const _0xe1e9c0=document['createDocumentFragment'](),_0x1647a3=_0x33a9cf['config']['get']('trackChangesData')['editorCreator'],_0x816e64=await _0x1647a3(_0x3155e7,()=>function(_0x62e17b){const _0x348b9b=document['createElement']('div');return _0x62e17b['appendChild'](_0x348b9b),_0x348b9b;}(_0xe1e9c0));!function(_0x20ae85,_0x49895c){const _0x28a5b8=_0x20ae85['model']['document']['getRootNames']()['reduce']((_0x3baa4e,_0x1cb61b)=>(_0x3baa4e[_0x1cb61b]=_0x20ae85['data']['get']({'rootName':_0x1cb61b}),_0x3baa4e),{}),_0x132b63=_0x20ae85['plugins']['get']('Users')['users']['map'](_0x736d6=>({'id':_0x736d6['id'],'name':_0x736d6['name']})),_0x8122f7=_0x20ae85['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x62aa90=_0x20ae85['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x2804a5=_0x49895c['plugins']['get']('Users'),_0x31e740=_0x49895c['plugins']['get']('TrackChangesEditing'),_0x4ff362=_0x49895c['plugins']['get']('CommentsRepository');for(const _0x265551 of _0x4ff362['getCommentThreads']())_0x265551['remove']();for(const _0x57b416 of _0x132b63)_0x2804a5['getUser'](_0x57b416['id'])||_0x2804a5['addUser'](_0x57b416);_0x2804a5['me']||_0x2804a5['useAnonymousUser']();for(const _0xa11c5 of _0x62aa90)_0x4ff362['addCommentThread'](_0xa11c5);for(const _0x137eb6 of _0x8122f7)_0x31e740['addSuggestionData'](_0x137eb6);_0x49895c['data']['set'](_0x28a5b8);}(_0x33a9cf,_0x816e64),_0x816e64['execute'](_0xdacc18?'acceptAllSuggestions':'discardAllSuggestions');const _0x27f1d5=v(_0x816e64)?_0x816e64['getFullData'](_0x380d24):_0x816e64['data']['get'](_0x380d24);return await _0x816e64['destroy'](),_0x27f1d5;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x82b22a,PendingActions as _0x2d2e55,icons as _0x429b1b}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x5adf17,ObservableMixin as _0x1e1a2e,uid as _0x27c666,insertToPriorityArray as _0x406904,priorities as _0x4e98c9,logWarning as _0x327844,getEnvKeystrokeText as _0x560e7d,FocusTracker as _0x48966d,KeystrokeHandler as _0x5dbddc,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x51d8f8,View as _0x10e2b5,ViewCollection as _0x4aba3a,FocusCycler as _0x77a4f5,ViewModel as _0x58f1f8,createDropdown as Qt,SplitButtonView as _0x11b29e,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x3fefe3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4f0890,hashObject as _0x2b6f8,surroundingMarkersDetector as _0x3d70e3,FOCUS_ANNOTATION_KEYSTROKE as _0x5cd213,AriaDescriptionView as _0x32cda8,setupThreadKeyboardNavigation as _0x24aa29,trimHtml as _0x5cd2e2,UserView as _0x5343fc,LateFocusButtonView as _0x9ec70d,getDateTimeFormatter as _0x494301,getAllMarkersDomElementsSorted as _0x121c8d,sanitizeEditorConfig as _0xbe7cb0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x33f1de,LiveRange as _0xb1b223,LivePosition as _0x3fc9ae}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1b99eb,toWidget as _0x150fd6}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x245d06,set as _0x2e7e06,isEqual as _0x1fb0dc,unset as _0x312aad,omit as Tt}from'lodash-es';import{Delete as _0x5269e1,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x3aabb4,ShiftEnter as _0x464641}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x31d05a,_0x6d711f){super(_0x31d05a),this['_enabledCommands']=_0x6d711f,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 _0x5afc0b of this['editor']['commands']['commands']())_0x5afc0b['affectsData']&&!this['_enabledCommands']['has'](_0x5afc0b)&&_0x5afc0b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37491f of this['editor']['commands']['commands']())_0x37491f['affectsData']&&!this['_enabledCommands']['has'](_0x37491f)&&_0x37491f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x4d5bb7,_0x1cff7f){super(_0x4d5bb7),this['_suggestions']=_0x1cff7f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x8d7def){const _0x202d7c=this['_suggestions']['get'](_0x8d7def);if(!_0x202d7c)throw new _0x5adf17('track-changes-accept-suggestion-not-found',this);const _0x34d229=_0x202d7c['getRanges']();this['editor']['model']['canEditAt'](_0x34d229)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x202d7c);}}class R extends ts{['_suggestions'];constructor(_0x22be7c,_0x5ea463){super(_0x22be7c),this['_suggestions']=_0x5ea463,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x324637){const _0x31684b=this['_suggestions']['get'](_0x324637);if(!_0x31684b)throw new _0x5adf17('track-changes-discard-suggestion-not-found',this);const _0x4e7cb7=_0x31684b['getRanges']();this['editor']['model']['canEditAt'](_0x4e7cb7)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31684b);}}function ls(_0x1bb917,_0x9764a){let _0x52599c='';return _0x52599c+=_0x1bb917['split']('*')['map']((_0x20e6ec,_0x734a43)=>_0x734a43%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x20e6ec)+'</span>':nn(_0x20e6ec))['join'](''),_0x9764a&&(_0x52599c+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x9764a['value']+'\x22\x20title=\x22'+_0x9764a['title']+'\x22></span>'),_0x52599c;}function nn(_0x19d1ee){const _0x4f59de=document['createElement']('span');return _0x4f59de['innerText']=_0x19d1ee,_0x4f59de['innerHTML'];}function ss(_0x459816){return _0x459816['sort']((_0x3bf917,_0x29dcaa)=>'deletion'==_0x3bf917['type']&&'deletion'!=_0x29dcaa['type']?-0x1:'deletion'!=_0x3bf917['type']&&'deletion'==_0x29dcaa['type']?0x1:0x0);}function to(_0x453882,_0x374757){let _0x52100b,_0x9780cd=0x0;const _0x381ae3=[],_0x4121f7=_0x374757['schema'];for(;_0x9780cd<_0x453882['length'];){const _0x576144=_0x453882[_0x9780cd],_0x4e0511=_0x453882[_0x9780cd+0x1];_0x52100b||(_0x52100b=_0x374757['createPositionBefore'](_0x576144)),on(_0x374757,_0x576144,_0x4e0511)||(_0x381ae3['push'](_0x374757['createRange'](_0x52100b,_0x4121f7['isObject'](_0x576144)?_0x374757['createPositionAfter'](_0x576144):_0x374757['createPositionAt'](_0x576144,'end'))),_0x52100b=null),_0x9780cd++;}return _0x381ae3;}function on(_0xcc6d21,_0x324f70,_0x3c3069){if(!_0x3c3069)return!0x1;const _0x1f6e40=_0xcc6d21['createPositionAfter'](_0x324f70),_0x49e189=_0xcc6d21['createPositionBefore'](_0x3c3069);return _0x1f6e40['isTouching'](_0x49e189);}function rs(_0x3a8b09,_0x41df59,_0x1cce15){for(;_0x1cce15['length'];){const _0x589f42=_0x1cce15['splice'](0x0,0x64);_0x3a8b09['change'](()=>{for(const _0x36b6ed of _0x589f42)_0x36b6ed['isInContent']&&_0x41df59['execute'](_0x36b6ed['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x355c86,_0x474648,_0x318cfc){super(_0x355c86),this['_command']=_0x474648,this['_suggestions']=_0x318cfc,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x301e2e=Array['from'](this['_suggestions']['values']())['some'](_0x2ebe33=>_0x2ebe33['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x301e2e;}['execute'](){const _0xca5fd=ss(Array['from'](this['_suggestions']['values']()));for(const _0x35bb93 of _0xca5fd){const _0x45129d=_0x35bb93['getRanges']();if(!this['editor']['model']['canEditAt'](_0x45129d))return;}rs(this['editor']['model'],this['_command'],_0xca5fd);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x2a679d,_0x3356b5,_0x19941a){super(_0x2a679d),this['_command']=_0x3356b5,this['_suggestions']=_0x19941a,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3bdee0=this['editor']['model']['document']['selection'],_0x225b18=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x283ebf,_0x4e410d){const _0x1ad510=Array['from'](_0x283ebf['getRanges']()),_0x3c6be2=new Set();for(const _0xd4b6ef of _0x4e410d)if(_0xd4b6ef['isInContent']){for(const _0x4c51a2 of _0x1ad510)for(const _0x1b81c3 of _0xd4b6ef['getRanges']())(_0x4c51a2['isIntersecting'](_0x1b81c3)||_0x283ebf['isCollapsed']&&!_0xd4b6ef['isMultiRange']&&_0xd4b6ef['next']&&_0x1b81c3['end']['isTouching'](_0x4c51a2['start']))&&_0x3c6be2['add'](_0xd4b6ef);}return _0x3c6be2;}(_0x3bdee0,_0x225b18),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x4d374e=ss(Array['from'](this['_selectedSuggestions']));for(const _0xd442cb of _0x4d374e){const _0x41a3e5=_0xd442cb['getRanges']();if(!this['editor']['model']['canEditAt'](_0x41a3e5))return;}rs(this['editor']['model'],this['_command'],_0x4d374e);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1e1a2e(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0xbba3d9,_0x579c1b){super(),this['id']=_0x579c1b['id'],this['type']=_0x579c1b['type'],this['subType']=_0x579c1b['subType']||null,this['author']=_0x579c1b['author'],this['creator']=_0x579c1b['creator']||_0x579c1b['author'],this['isExternal']=Boolean(_0x579c1b['attributes']&&_0x579c1b['attributes']['@external']),this['data']=null,this['_model']=_0xbba3d9,this['_onAccept']=_0x579c1b['onAccept'],this['_onDiscard']=_0x579c1b['onDiscard'],this['_onAttributesChange']=_0x579c1b['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x579c1b['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 _0x5362ff=this;for(;_0x5362ff['previous'];)_0x5362ff=_0x5362ff['previous'];return _0x5362ff;}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'](_0x17d093){this['_markerNames']['add'](_0x17d093);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x29fa45=>this['_model']['markers']['get'](_0x29fa45))['filter'](_0x532fbf=>_0x532fbf);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x477df6=>{for(const _0x50cb53 of this['getMarkers']())_0x477df6['removeMarker'](_0x50cb53);}),this['_markerNames']['clear']();}['removeMarker'](_0x14bf0b){this['_model']['change'](_0x58ee90=>{_0x58ee90['removeMarker'](_0x14bf0b);}),this['_markerNames']['delete'](_0x14bf0b);}['addRange'](_0x2981ad){const _0x354a67='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x354a67),this['_model']['change'](_0xc21968=>{_0xc21968['addMarker'](_0x354a67,{'range':_0x2981ad,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x485d1e){for(const _0x18a94f of this['getRanges']())if(_0x18a94f['isIntersecting'](_0x485d1e))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x12e9c8=>_0x12e9c8['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x7ad033,_0x36bbd0)=>[..._0x7ad033,..._0x36bbd0['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x340c34=this['getRanges']();if(0x1!=_0x340c34['length'])return null;const _0x1706ca=_0x340c34[0x0],_0x35332a=_0x1706ca['start']['nodeAfter'],_0x52ee28=_0x1706ca['end']['nodeBefore'];return _0x35332a instanceof _0x33f1de?_0x35332a!=_0x52ee28?null:_0x35332a: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 _0x1295aa=[];let _0x265f76=this['head'];for(;_0x265f76;)_0x1295aa['push'](_0x265f76),_0x265f76=_0x265f76['next'];return _0x1295aa;}['setAttribute'](_0xacd1b4,_0xffd881){const _0x9492cc=_0x245d06(this['attributes']);_0x2e7e06(_0x9492cc,_0xacd1b4,_0xffd881),_0x1fb0dc(_0x9492cc,this['attributes'])||(this['attributes']=_0x9492cc,this['_onAttributesChange'](_0x9492cc));}['removeAttribute'](_0xf9f973){const _0x3e0ed9=_0x245d06(this['attributes']);_0x312aad(_0x3e0ed9,_0xf9f973),_0x1fb0dc(_0x3e0ed9,this['attributes'])||(this['attributes']=_0x3e0ed9,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 _0x27c666()['substr'](0x1,0x5);}}function o(_0x3733d5,_0x4017b9,_0x26d19b){const t=_0x3733d5['t'];switch(_0x4017b9){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',_0x26d19b);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x26d19b);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x26d19b);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x26d19b);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x26d19b);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',_0x26d19b);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x26d19b);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',_0x26d19b);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x26d19b);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x26d19b);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x26d19b);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x26d19b);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x26d19b);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x26d19b);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x26d19b);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x26d19b);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x26d19b);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x26d19b);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x26d19b);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x26d19b);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x26d19b);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x26d19b);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x26d19b);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'},_0x26d19b);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x26d19b);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x26d19b);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x26d19b);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x26d19b);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x26d19b);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'},_0x26d19b);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x26d19b);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x26d19b);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x26d19b);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x26d19b);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'},_0x26d19b);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x26d19b);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'},_0x26d19b);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'},_0x26d19b);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x26d19b);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'},_0x26d19b);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x26d19b);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'},_0x26d19b);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x26d19b);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x26d19b);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'},_0x26d19b);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'},_0x26d19b);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'},_0x26d19b);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x26d19b);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'},_0x26d19b);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'},_0x26d19b);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'},_0x26d19b);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x4017b9;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x127964,_0x9caf59){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x127964,this['_locale']=_0x9caf59;}['getDescriptions'](_0x39e6db){const _0x238931=[],_0x4c9cb4=new Set(),_0x26d6da=new Set();for(let _0x2faccc=0x0;_0x2faccc<_0x39e6db['length'];_0x2faccc++){const _0x582aad=_0x39e6db[_0x2faccc];if(!_0x582aad['isInContent'])continue;const _0xe873e8=this['_handleCustomCallbackDescription'](_0x582aad);if(_0xe873e8){if(null!=_0x582aad['subType']){if(_0x4c9cb4['has'](_0x582aad['subType']))continue;_0x4c9cb4['add'](_0x582aad['subType']);}_0x238931['push'](_0xe873e8);}else{if('attribute'!=_0x582aad['type'])'insertion'!=_0x582aad['type']&&'deletion'!=_0x582aad['type']||this['_handleInsertRemoveSuggestionDescription'](_0x238931,_0x582aad,_0x39e6db[_0x2faccc+0x1]);else{const _0x54c248=_0x582aad['data']['key'];if(_0x26d6da['has'](_0x54c248))continue;_0x26d6da['add'](_0x582aad['data']['key']),_0x54c248==m?this['_handleRenameSuggestionDescription'](_0x238931,_0x582aad):this['_handleAttributeSuggestionDescription'](_0x238931,_0x582aad);}}}return this['_resolveDescriptionItems'](_0x238931);}['registerDescriptionCallback'](_0x4a66fd){this['_customCallbacks']['push'](_0x4a66fd);}['registerElementLabel'](_0xc670e3,_0x238c5e,_0x3915a4=_0x4e98c9['normal']){'function'==typeof _0xc670e3?_0x406904(this['_itemLabelsCallbacks'],{'matchingCallback':_0xc670e3,'label':_0x238c5e,'priority':_0x3915a4}):this['_itemLabels']['set'](_0xc670e3,_0x238c5e);}['registerAttributeLabel'](_0x1798a2,_0x44f4ef){this['_attributeLabels']['set'](_0x1798a2,_0x44f4ef);}['getItemLabel'](_0x1fe0eb,_0x56b48b=0x1){let _0x3fca7b;for(const _0x4a3110 of this['_itemLabelsCallbacks'])if(_0x4a3110['matchingCallback'](_0x1fe0eb)){_0x3fca7b=_0x4a3110['label'];break;}return _0x3fca7b||(_0x3fca7b=this['_itemLabels']['get'](_0x1fe0eb['name'])),_0x3fca7b?_0x3fca7b(_0x56b48b):0x1!==_0x56b48b?_0x56b48b+'\x20'+_0x1fe0eb['name']+'s':''+_0x1fe0eb['name'];}['_addDescriptionItems'](_0x227106,_0x196ba9){const _0x426f28=_0x196ba9['getFirstRange']()['getWalker'](),_0x5dc7a3='insertion'==_0x196ba9['type']?'add':'remove';for(const _0x11ad8a of _0x426f28){const _0x58bd18=_0x11ad8a['item'],_0x211e24=_0x227106[_0x227106['length']-0x1];if(_0x58bd18['is']('$textProxy'))_0x211e24&&_0x211e24['type']['indexOf']('Container')>-0x1&&_0x227106['pop'](),_0x211e24&&'text'==_0x211e24['type']?_0x211e24[_0x5dc7a3]+=_0x58bd18['data']:_0x227106['push']({'type':'text','add':'add'==_0x5dc7a3?_0x58bd18['data']:'','remove':'remove'==_0x5dc7a3?_0x58bd18['data']:''});else{if(this['_schema']['isObject'](_0x58bd18)){const _0x45128f=_0x58bd18;if(_0x211e24&&_0x211e24['type']['indexOf']('Container')>-0x1&&_0x227106['pop'](),'elementEnd'==_0x11ad8a['type'])continue;_0x211e24&&_0x211e24['type']==_0x5dc7a3+'Object'&&_0x211e24['element']['name']==_0x45128f['name']?_0x211e24['quantity']++:_0x227106['push']({'type':_0x5dc7a3+'Object','element':_0x45128f,'quantity':0x1}),_0x426f28['skip'](_0x31e0ea=>!('elementEnd'==_0x31e0ea['type']&&_0x31e0ea['item']==_0x58bd18));}else{if(this['_schema']['checkChild'](_0x58bd18,'$text')||_0x58bd18['is']('element','softBreak')){const _0x1213bf=_0x58bd18;if('add'==_0x5dc7a3&&'elementStart'==_0x11ad8a['type']||'remove'==_0x5dc7a3&&'elementEnd'==_0x11ad8a['type'])continue;if(_0x211e24&&-0x1==_0x211e24['type']['indexOf']('Container')){'text'==_0x211e24['type']&&(_0x211e24[_0x5dc7a3]+='\x0a');continue;}let _0x45daa7;if(_0x45daa7='add'==_0x5dc7a3?_0x1213bf['nextSibling']&&!this['_schema']['isObject'](_0x1213bf['nextSibling'])?_0x1213bf['nextSibling']:null:_0x1213bf['previousSibling']&&!this['_schema']['isObject'](_0x1213bf['previousSibling'])?_0x1213bf['previousSibling']:null,_0x1213bf['isEmpty']||_0x45daa7&&_0x45daa7['isEmpty']){const _0x287cc5=_0x45daa7&&_0x45daa7['isEmpty']?_0x45daa7:_0x1213bf;_0x211e24&&_0x211e24['type']==_0x5dc7a3+'EmptyContainer'&&_0x211e24['element']['name']==_0x287cc5['name']?_0x211e24['quantity']++:_0x227106['push']({'type':_0x5dc7a3+'EmptyContainer','element':_0x287cc5,'quantity':0x1});}else _0x227106['push']({'type':_0x5dc7a3+'Container','element':_0x1213bf});}}}}}['_resolveDescriptionItems'](_0x549e5b){const _0x1a627e=this['_locale'],_0x44b3a8=[],_0x53982e=[],_0x438194=[];for(const _0x493002 of _0x549e5b)switch(_0x493002['type']){case'text':if(_0x493002['add']=_0x493002['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x493002['remove']=_0x493002['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x493002['add']&&''!=_0x493002['remove']){_0x44b3a8['push']({'type':'replace','content':o(_0x1a627e,'REPLACE_TEXT',['\x22'+_0x493002['remove']+'\x22','\x22'+_0x493002['add']+'\x22'])});continue;}if(null!=_0x493002['add']['match'](/^ +$/)){_0x44b3a8['push']({'type':'insertion','content':o(_0x1a627e,'*Insert:*\x20%0',o(_0x1a627e,'ELEMENT_SPACE',_0x493002['add']['length']))});continue;}if(null!=_0x493002['remove']['match'](/^ +$/)){_0x44b3a8['push']({'type':'deletion','content':o(_0x1a627e,'*Remove:*\x20%0',o(_0x1a627e,'ELEMENT_SPACE',_0x493002['remove']['length']))});continue;}if(''!=_0x493002['add']){_0x44b3a8['push']({'type':'insertion','content':o(_0x1a627e,'*Insert:*\x20%0','\x22'+_0x493002['add']+'\x22')});continue;}_0x44b3a8['push']({'type':'deletion','content':o(_0x1a627e,'*Remove:*\x20%0','\x22'+_0x493002['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44b3a8['push']({'type':'insertion','content':o(_0x1a627e,'*Insert:*\x20%0',this['getItemLabel'](_0x493002['element'],_0x493002['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44b3a8['push']({'type':'deletion','content':o(_0x1a627e,'*Remove:*\x20%0',this['getItemLabel'](_0x493002['element'],_0x493002['quantity']))});continue;case'addContainer':_0x44b3a8['push']({'type':'insertion','content':o(_0x1a627e,'*Split:*\x20%0',this['getItemLabel'](_0x493002['element'],_0x493002['quantity']))});continue;case'removeContainer':_0x44b3a8['push']({'type':'deletion','content':o(_0x1a627e,'*Merge:*\x20%0',this['getItemLabel'](_0x493002['element'],_0x493002['quantity']))});continue;case'addFormat':_0x53982e['push'](_0x493002['key']);continue;case'removeFormat':_0x438194['push'](_0x493002['key']);continue;default:_0x44b3a8['push'](_0x493002);}if(_0x53982e['length']){const _0x49c818=_0x53982e['map'](_0x1d1eca=>this['_attributeLabels']['has'](_0x1d1eca)?this['_attributeLabels']['get'](_0x1d1eca):_0x1d1eca)['join'](',\x20');_0x44b3a8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x49c818)});}if(_0x438194['length']){const _0x19c660=_0x438194['map'](_0x2c50ef=>this['_attributeLabels']['has'](_0x2c50ef)?this['_attributeLabels']['get'](_0x2c50ef):_0x2c50ef)['join'](',\x20');_0x44b3a8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x19c660)});}return _0x44b3a8;}['_handleCustomCallbackDescription'](_0x4ccad2){for(const _0x3421e8 of this['_customCallbacks']){const _0x5a00a0=_0x3421e8(_0x4ccad2);if(_0x5a00a0&&'type'in _0x5a00a0)return _0x5a00a0;}}['_handleAttributeSuggestionDescription'](_0x35a128,_0x161632){const _0x285b6e=_0x161632['data'],_0x4d0bf9=void 0x0===_0x285b6e['newValue']?'removeFormat':'addFormat';_0x35a128['push']({'type':_0x4d0bf9,'key':_0x285b6e['key']});}['_handleRenameSuggestionDescription'](_0x244a4c,_0x4ee1bd){_0x244a4c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x4ee1bd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x156ebb,_0x271a0e,_0x32aa8c){if(this['_addDescriptionItems'](_0x156ebb,_0x271a0e),_0x32aa8c&&_0x32aa8c['getFirstRange']()&&!_0x271a0e['getFirstRange']()['end']['isEqual'](_0x32aa8c['getFirstRange']()['start'])){const _0x3ef563=_0x156ebb[_0x156ebb['length']-0x1],_0x22acd7='insertion'==_0x271a0e['type']?'add':'remove';_0x3ef563&&'text'==_0x3ef563['type']&&(_0x3ef563[_0x22acd7]+='\x0a');}}}class V extends _0x82b22a{['afterInit'](){const _0x553745=this['editor'],_0x49f937=_0x553745['plugins']['get']('TrackChangesEditing');_0x553745['commands']['get']('showAIAssistant')&&_0x49f937['enableCommand']('showAIAssistant');}}class U extends _0x82b22a{['afterInit'](){const _0x3f3cd9=this['editor'],_0x3fde2e=_0x3f3cd9['locale'];if(!_0x3f3cd9['plugins']['has']('AlignmentEditing'))return;const _0x301ed7=_0x3f3cd9['plugins']['get']('TrackChangesEditing');_0x301ed7['enableDefaultAttributesIntegration']('alignment'),_0x301ed7['registerBlockAttribute']('alignment'),_0x301ed7['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3fde2e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f0e58=this['editor'],_0xd34bef=_0x1f0e58['locale'];_0x1f0e58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4cc5c3=>{if('formatBlock'!=_0x4cc5c3['type'])return;const {data:_0x15e46f}=_0x4cc5c3;if(_0x15e46f&&'alignment'==_0x15e46f['commandName']){const _0x2ad522=_0x15e46f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xd34bef,'*Format:*\x20%0',function(_0x2b6aea){switch(_0x2b6aea){case'left':return o(_0xd34bef,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xd34bef,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xd34bef,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xd34bef,'FORMAT_JUSTIFY_TEXT');}}(_0x2ad522))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x82b22a{['afterInit'](){const _0x2bb9e1=this['editor'],_0x29c157=_0x2bb9e1['plugins']['get']('TrackChangesEditing'),_0x3e11df=_0x2bb9e1['locale'];for(const _0x1544f6 of ti){if(!_0x2bb9e1['plugins']['has'](_0x1544f6))continue;const _0x5a6820=_0x1544f6['slice'](0x0,-0x7)['toLowerCase'](),_0x2ccbbf='FORMAT_'+_0x5a6820['toUpperCase']();_0x29c157['enableDefaultAttributesIntegration'](_0x5a6820),_0x29c157['registerInlineAttribute'](_0x5a6820),_0x29c157['descriptionFactory']['registerAttributeLabel'](_0x5a6820,o(_0x3e11df,_0x2ccbbf));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x20b97d=this['editor'],_0x188a75=_0x20b97d['locale'],_0x58d11e=_0x20b97d['plugins']['get']('TrackChangesEditing');function _0x251aac(_0x494166,_0x16d619){_0x58d11e['descriptionFactory']['registerDescriptionCallback'](_0x17e806=>{if('formatInline'!=_0x17e806['type'])return;const {data:_0x2e9d9d}=_0x17e806;return _0x2e9d9d&&_0x2e9d9d['commandName']===_0x494166?_0x2e9d9d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x188a75,'*Format:*\x20%0',_0x16d619)}:{'type':'format','content':o(_0x188a75,'*Remove\x20format:*\x20%0',_0x16d619)}:void 0x0;});}_0x251aac('bold',o(_0x188a75,'FORMAT_BOLD')),_0x251aac('italic',o(_0x188a75,'FORMAT_ITALIC')),_0x251aac('underline',o(_0x188a75,'FORMAT_UNDERLINE')),_0x251aac('code',o(_0x188a75,'FORMAT_CODE')),_0x251aac('strikethrough',o(_0x188a75,'FORMAT_STRIKETHROUGH')),_0x251aac('subscript',o(_0x188a75,'FORMAT_SUBSCRIPT')),_0x251aac('superscript',o(_0x188a75,'FORMAT_SUPERSCRIPT'));}}class F extends _0x82b22a{['afterInit'](){const _0x112d7=this['editor'],_0xfef8b9=_0x112d7['locale'];if(!_0x112d7['plugins']['has']('BlockQuoteEditing'))return;const _0xefd37e=_0x112d7['plugins']['get']('TrackChangesEditing'),_0x375410=this['editor']['commands']['get']('blockQuote');_0xefd37e['enableCommand']('blockQuote',(_0x29bfc3,_0x381476={})=>{const _0x10fe29=this['editor']['model']['document']['selection'],_0x273296=_0x381476&&void 0x0!==_0x381476['forceValue']?_0x381476['forceValue']:!_0x375410['value'];let _0x428cdb=[];if(_0x273296){const _0x36a984=Array['from'](_0x10fe29['getSelectedBlocks']())['filter'](_0x696a12=>oo(_0x696a12)||function(_0x4ead53,_0x4320bc){const _0x480893=_0x4320bc['checkChild'](_0x4ead53['parent'],'blockQuote'),_0x575f87=_0x4320bc['checkChild'](['$root','blockQuote'],_0x4ead53);return _0x480893&&_0x575f87;}(_0x696a12,this['editor']['model']['schema']));_0x428cdb=to(_0x36a984,_0x112d7['model']);}else{const _0x3c6290=Array['from'](_0x10fe29['getSelectedBlocks']())['filter'](_0x5f2b94=>oo(_0x5f2b94));_0x428cdb=to(_0x3c6290,_0x112d7['model']);}_0x112d7['model']['change'](()=>{for(const _0x141ac7 of _0x428cdb)_0xefd37e['markBlockFormat'](_0x141ac7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x273296}]});});}),_0xefd37e['descriptionFactory']['registerDescriptionCallback'](_0x58b53a=>{const {data:_0x1a00bf}=_0x58b53a;if(_0x1a00bf&&'blockQuote'==_0x1a00bf['commandName']){const _0x27b29c=o(_0xfef8b9,'ELEMENT_BLOCK_QUOTE');return _0x1a00bf['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xfef8b9,'*Set\x20format:*\x20%0',_0x27b29c)}:{'type':'format','content':o(_0xfef8b9,'*Remove\x20format:*\x20%0',_0x27b29c)};}});}}function oo(_0x11b4de){return'blockQuote'==_0x11b4de['parent']['name'];}class L extends _0x82b22a{['afterInit'](){const _0x578792=this['editor'];_0x578792['plugins']['has']('CaseChange')&&(_0x578792['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x578792['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x578792['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x82b22a{['afterInit'](){const _0x400746=this['editor'];_0x400746['commands']['get']('ckbox')&&_0x400746['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x82b22a{['afterInit'](){const _0x26b17c=this['editor'];if(!_0x26b17c['plugins']['has']('CodeBlock'))return;const _0x11fc12=_0x26b17c['plugins']['get']('TrackChangesEditing'),_0x4cb418=_0x26b17c['locale'],_0x5ae819=_0x26b17c['config']['get']('codeBlock')['languages'],_0x19160b=_0x26b17c['commands']['get']('codeBlock');_0x11fc12['enableCommand']('indentCodeBlock'),_0x11fc12['enableCommand']('outdentCodeBlock'),_0x11fc12['enableCommand']('codeBlock',(_0xeb7fa3,_0x349023={})=>{const _0x1bc30d=_0x26b17c['model'],_0x4a844f=_0x26b17c['model']['document']['selection'],_0x4b1eb5=_0x349023&&void 0x0!==_0x349023['forceValue']?_0x349023['forceValue']:!_0x19160b['value'];let _0x1da97e;_0x349023['language']||(_0x349023['language']=_0x5ae819[0x0]['language']),_0x1da97e=_0x4b1eb5?Array['from'](_0x4a844f['getSelectedBlocks']())['filter'](_0x2f1034=>eo(_0x2f1034)||function(_0x41e2bb,_0x2de3f1){if(_0x41e2bb['is']('rootElement')||_0x2de3f1['isLimit'](_0x41e2bb))return!0x1;return _0x2de3f1['checkChild'](_0x41e2bb['parent'],'codeBlock');}(_0x2f1034,_0x1bc30d['schema'])):Array['from'](_0x4a844f['getSelectedBlocks']())['filter'](_0x2a5b9d=>eo(_0x2a5b9d));const _0x3cddb4=to(_0x1da97e,_0x1bc30d);_0x1bc30d['change'](()=>{for(const _0x26640e of _0x3cddb4)_0x11fc12['markBlockFormat'](_0x26640e,{'commandName':'codeBlock','commandParams':[{..._0x349023,'forceValue':_0x4b1eb5}],'formatGroupId':'blockName'});});}),(_0x11fc12['descriptionFactory']['registerElementLabel']('codeBlock',_0x150f53=>o(_0x4cb418,'ELEMENT_CODE_BLOCK',_0x150f53)),_0x11fc12['descriptionFactory']['registerDescriptionCallback'](_0x236c5f=>{if('formatBlock'!=_0x236c5f['type'])return;const _0x3bb1f4=_0x4cb418['t'],{data:_0x33a0ec}=_0x236c5f;if(!_0x33a0ec||'codeBlock'!=_0x33a0ec['commandName'])return;const _0x117fa3=_0x33a0ec['commandParams'][0x0]['language'],_0x3b9f5a=_0x3bb1f4(_0x5ae819['find'](_0x2bc6ea=>_0x2bc6ea['language']===_0x117fa3)['label'])['toLowerCase']();return _0x33a0ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cb418,'*Set\x20format:*\x20%0',o(_0x4cb418,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x3b9f5a+')')}:{'type':'format','content':o(_0x4cb418,'*Remove\x20format:*\x20%0',o(_0x4cb418,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x80c10f){return'codeBlock'==_0x80c10f['name'];}class q extends _0x82b22a{['afterInit'](){const _0x148371=this['editor'];if(!_0x148371['plugins']['has']('CommentsEditing'))return;_0x148371['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3a2ab0,_0x289943,_0x455b6c){const _0x24d34c=[];for(const _0x5e0db8 of _0x289943['getItems']())_0x5e0db8['hasAttribute'](_0x3a2ab0)&&_0x24d34c['push'](_0x455b6c['createRangeOn'](_0x5e0db8));return _0x24d34c;}function _e(_0x583919,_0x474153,{showActiveMarker:_0x263e0f=!0x0}={}){const _0x34ead8=_0x583919['plugins']['get']('TrackChangesEditing');return(_0x4ecfce,_0xf76696,_0x4c44ce)=>{if(!_0x4c44ce['consumable']['test'](_0xf76696['markerRange'],_0x4ecfce['name']))return;const _0x2755b8=_0xf76696['markerRange']['getWalker'](),_0x37957c=_0xf76696['markerRange']['start'],_0x3a2f87=_0x583919['model']['schema'];let _0x966ad7=null,_0x3ab278=null,_0x40887c=!0x1,_0x4789e5=!0x1;for(const _0x5e41d9 of _0x2755b8){const _0x49db22=_0x5e41d9['item'];_0x40887c=_0x40887c||_0x3a2f87['isContent'](_0x49db22);const _0x5debad=_0x4c44ce['mapper']['toViewElement'](_0x49db22);if(_0x5debad&&_0x5debad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5e41d9['type']&&(_0x3a2f87['isBlock'](_0x49db22)&&!_0x3a2f87['isLimit'](_0x49db22)&&(_0x49db22['nextSibling']||_0x37957c['isAtEnd']?_0x966ad7&&_0x966ad7['parent']==_0x49db22||(_0x966ad7=_0x49db22,_0x18b1d0(_0x5e41d9['previousPosition']),_0x4789e5=!0x0):_0x3ab278=_0x3ab278||_0x5e41d9['previousPosition']));}function _0x18b1d0(_0x24416b){const {authorId:_0x3e0430}=_0x34ead8['_splitMarkerName'](_0xf76696['markerName']),_0x5c393c=_0x4c44ce['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x474153,'data-author-id':_0x3e0430}),_0x27948f=_0x4c44ce['mapper']['toViewPosition'](_0x24416b);_0x263e0f&&_0x34ead8['activeMarkers']['includes'](_0xf76696['markerName'])&&_0x4c44ce['writer']['addClass']('ck-suggestion-marker--active',_0x5c393c),_0x4c44ce['writer']['insert'](_0x27948f,_0x5c393c),_0x4c44ce['mapper']['bindElementToMarker'](_0x5c393c,_0xf76696['markerName']);}_0x40887c||_0x4789e5||!_0x3ab278||_0x18b1d0(_0x3ab278);};}class z extends _0x82b22a{static get['requires'](){return[_0x5269e1];}['init'](){const _0x4af787=this['editor'],_0x461be0=_0x4af787['plugins']['get']('TrackChangesEditing');_0x461be0['enableCommand']('delete');const _0x1d16f0=_0x4af787['commands']['get']('deleteForward');_0x461be0['enableCommand']('deleteForward',(_0x434852,_0x48436b={})=>{const _0x179d91=_0x4af787['model']['createSelection'](_0x4af787['model']['document']['selection']);_0x179d91['isCollapsed']&&_0x4af787['model']['modifySelection'](_0x179d91,{'direction':'forward','unit':_0x48436b['unit']});const _0x7a8009=_0x179d91['getFirstRange'](),_0x36edb7=_0xb1b223['fromRange'](_0x7a8009);let _0x549c96;_0x434852(_0x48436b),_0x549c96='$graveyard'==_0x36edb7['root']['rootName']?_0x4af787['model']['createRange'](_0x7a8009['start']):_0x4af787['model']['createRange'](_0x36edb7['start'],_0x36edb7['end']),_0x36edb7['detach'](),_0x4af787['model']['enqueueChange'](_0x1d16f0['buffer']['batch'],_0x3cd8fa=>{_0x1d16f0['buffer']['lock'](),_0x3cd8fa['setSelection'](_0x3cd8fa['createRange'](_0x549c96['end'])),_0x1d16f0['buffer']['unlock']();});}),_0x4af787['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x4af787,'merge'),{'priority':'high'}),_0x4af787['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3cd161,_0x13d69f,_0xd8e311)=>{_0xd8e311['options']['showSuggestionHighlights']&&_e(_0x4af787,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3cd161,_0x13d69f,_0xd8e311);},{'priority':'high'}),_0x4af787['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0xcc6935,_0x50a8bb,_0x5cb76a)=>{const _0x361aa5=_0x5cb76a['mapper']['markerNameToElements'](_0x50a8bb['markerName']);if(_0x361aa5){for(const _0x128c8b of _0x361aa5)_0x128c8b['is']('uiElement')&&(_0x5cb76a['mapper']['unbindElementFromMarkerName'](_0x128c8b,_0x50a8bb['markerName']),_0x5cb76a['writer']['remove'](_0x128c8b));}},{'priority':'high'});}}class K extends _0x82b22a{['afterInit'](){const _0x5b3104=this['editor'];if(!_0x5b3104['plugins']['has']('ListEditing'))return;const _0x2c9149=_0x5b3104['locale'],_0x5352de=_0x5b3104['plugins']['get']('TrackChangesEditing'),_0x318920=_0x5b3104['plugins']['has']('TodoListEditing'),_0x59a2c6=!!_0x5b3104['config']['get']('list.multiBlock');function _0x4fdbd0(_0x3ad80a){return{'type':'format','content':''+o(_0x2c9149,'*Set\x20format:*\x20%0',_0x3ad80a)};}function _0x3e3521(_0x12cdaf){return{'type':'format','content':''+o(_0x2c9149,'*Remove\x20format:*\x20%0',_0x12cdaf)};}_0x5352de['enableDefaultAttributesIntegration']('numberedList'),_0x5352de['enableDefaultAttributesIntegration']('bulletedList'),_0x5352de['enableDefaultAttributesIntegration']('customNumberedList'),_0x5352de['enableDefaultAttributesIntegration']('customBulletedList'),_0x5352de['enableDefaultAttributesIntegration']('indentList'),_0x5352de['enableDefaultAttributesIntegration']('outdentList'),_0x5352de['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5352de['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x5352de['registerBlockAttribute']('listItemId'),_0x5352de['registerBlockAttribute']('listType'),_0x5352de['registerBlockAttribute']('listIndent'),_0x59a2c6&&(_0x5352de['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5352de['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x318920&&(_0x5352de['enableDefaultAttributesIntegration']('todoList'),_0x5352de['enableDefaultAttributesIntegration']('checkTodoList'),_0x5352de['registerBlockAttribute']('todoListChecked'),_0x5352de['descriptionFactory']['registerDescriptionCallback'](_0x30bc84=>{const {data:_0x51deb4}=_0x30bc84;if(_0x51deb4&&'todoListChecked'==_0x51deb4['key'])return{'type':'format','content':_0x51deb4['newValue']?o(_0x2c9149,'*Check\x20item*'):o(_0x2c9149,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x43b34e=>{if(_0x43b34e['batch']['isUndo'])return!0x1;let _0x4c738f=!0x1;const _0x71d53e=_0x5352de['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c2f25=>'todoListChecked'===_0x5352de['_getAttributeKey'](_0x3c2f25));for(const _0x46f281 of _0x71d53e){'todo'!=_0x46f281['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5352de['_findSuggestions'](_0x46f281['getFirstRange'](),'attribute')['find'](_0x4e2069=>'listType'===_0x5352de['_getAttributeKey'](_0x4e2069['suggestion']))||(_0x43b34e['removeMarker'](_0x46f281['getFirstMarker']()),_0x4c738f=!0x0));}return _0x4c738f;})),_0x5352de['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x2c9149,'FORMAT_INDENT'));const _0x1beabe={'type':'format','content':''};_0x5352de['descriptionFactory']['registerDescriptionCallback'](_0x115356=>{const {data:_0x5d0043}=_0x115356;if(!_0x5d0043||'listType'!=_0x5d0043['key'])return;let _0x29091e=_0x115356['head'];for(;_0x29091e;){if(_0x29091e['data']&&(('listStyle'==_0x29091e['data']['key']||'listMarkerStyle'==_0x29091e['data']['key'])&&(_0x29091e['data']['newValue']&&'default'!=_0x29091e['data']['newValue']||'default'!=_0x29091e['data']['oldValue']&&!_0x5d0043['newValue'])||!_0x59a2c6&&_0x29091e['data']['key']==m))return _0x1beabe;_0x29091e=_0x29091e['next'];}if(null==_0x5d0043['newValue'])switch(_0x5d0043['oldValue']){case'bulleted':return _0x3e3521(o(_0x2c9149,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e3521(o(_0x2c9149,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e3521(o(_0x2c9149,'ELEMENT_TODO_LIST'));}switch(_0x5d0043['newValue']){case'bulleted':return _0x4fdbd0(o(_0x2c9149,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4fdbd0(o(_0x2c9149,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4fdbd0(o(_0x2c9149,'ELEMENT_TODO_LIST'));}}),_0x5352de['descriptionFactory']['registerDescriptionCallback'](_0x48cdc2=>{const {data:_0x337039}=_0x48cdc2;if(_0x337039&&'listIndent'==_0x337039['key'])return null==_0x337039['newValue']||null==_0x337039['oldValue']&&0x0==_0x337039['newValue']?_0x1beabe:void 0x0;}),_0x5352de['descriptionFactory']['registerDescriptionCallback'](_0xaaefaf=>{if('attribute'!=_0xaaefaf['type'])return;const {data:_0x566120}=_0xaaefaf;if(!_0x566120||'listItemId'!=_0x566120['key'])return;const _0x395722=Ee(_0xaaefaf);return'newValue'==_0x395722?{'type':'format','content':o(_0x2c9149,'*Merge:*\x20list\x20item')}:'oldValue'==_0x395722?{'type':'format','content':o(_0x2c9149,'*Split:*\x20list\x20item')}:_0x1beabe;}),_0x5b3104['model']['document']['registerPostFixer'](_0x3b5dff=>this['listItemIdFixer'](_0x3b5dff)),_0x5b3104['model']['document']['registerPostFixer'](_0x2b9970=>this['noTrackChangesFixer'](_0x2b9970)),_0x5b3104['model']['document']['on']('change:data',(_0x411dc9,_0x1eb681)=>{if(_0x1eb681['isUndo']||!_0x1eb681['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x110e22){if(_0x110e22['batch']['isUndo']||!_0x110e22['batch']['isLocal'])return!0x1;let _0x3a643f=!0x1;const _0x21e9f2=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2375b5=>_0x2375b5['data']&&'listItemId'==_0x2375b5['data']['key'])['filter'](_0x1f753d=>_0x1f753d['data']['newValue']&&_0x1f753d['data']['oldValue']);for(const _0x35fa92 of _0x21e9f2)Ee(_0x35fa92)||(_0x110e22['removeMarker'](_0x35fa92['getFirstMarker']()),_0x3a643f=!0x0);return _0x3a643f;}['noTrackChangesFixer'](_0x27e446){if(_0x27e446['batch']['isUndo']||!_0x27e446['batch']['isLocal'])return!0x1;const _0x1ac05d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x1ac05d['trackChangesCommand']['value'])return!0x1;let _0x59a4d4=!0x1;const _0x25c58e=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x3c1ca9=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x8685be=>'attribute'==_0x8685be['type'])['filter'](_0x44af23=>_0x25c58e['includes'](_0x44af23['attributeKey']));if(0x0==_0x3c1ca9['length'])return _0x59a4d4;for(const _0x5bc0cb of _0x3c1ca9){const _0xa4e589=_0x1ac05d['_findSuggestions'](_0x5bc0cb['range'],'attribute')['filter'](_0x36f856=>!_0x36f856['meta']['isNextTo'])['map'](_0x552e0f=>_0x552e0f['suggestion'])['filter'](_0x39da3e=>{const _0x4436bb=_0x1ac05d['_getAttributeKey'](_0x39da3e);return _0x25c58e['includes'](_0x4436bb);});if(_0xa4e589['length']){for(const _0x14c56d of _0xa4e589)_0x27e446['removeMarker'](_0x14c56d['getFirstMarker']());_0x59a4d4=!0x0;}}return _0x59a4d4;}['assureChains'](){const _0x47e920=this['editor']['plugins']['get']('TrackChangesEditing'),_0x410e4a=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5087d2;const _0x49f736=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x17ee4a=>{if(_0x17ee4a['data']['oldRange']||!_0x17ee4a['data']['newRange'])return null;if(!_0x17ee4a['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x3c7a90}=_0x47e920['_splitMarkerName'](_0x17ee4a['name']);if(!_0x47e920['hasSuggestion'](_0x3c7a90))return null;const _0x2b5ddf=_0x47e920['getSuggestion'](_0x3c7a90);return _0x410e4a['includes'](_0x2b5ddf['data']['key']);})['map'](_0x57ccc3=>{const {id:_0x1bbd76}=_0x47e920['_splitMarkerName'](_0x57ccc3['name']),_0x30f90f=_0x47e920['getSuggestion'](_0x1bbd76);return _0x5087d2=_0x30f90f['attributes']['groupId'],_0x30f90f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x49f736['size'])return;const _0x4f796c=_0x47e920['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x46fcc5=>'attribute'==_0x46fcc5['type']&&_0x46fcc5['data']&&_0x410e4a['includes'](_0x46fcc5['data']['key'])&&_0x46fcc5['attributes']['groupId']!=_0x5087d2)['map'](_0x45de5a=>({'listItem':_0x45de5a['getFirstRange']()['start']['nodeAfter'],'groupId':_0x45de5a['attributes']['groupId']})),_0x380115=new Set();for(const {groupId:_0x589ea1,listItem:_0x3c9862}of _0x4f796c)_0x49f736['has'](_0x3c9862)&&_0x380115['add'](_0x589ea1);for(const _0x14ad73 of _0x47e920['getSuggestions']())_0x380115['has'](_0x14ad73['attributes']['groupId'])&&_0x14ad73['setAttribute']('groupId',_0x5087d2);}['_supportLegacySuggestions'](){const _0x164b82=this['editor'],_0xece43d=_0x164b82['locale'],_0x2110f1=_0x164b82['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2110f1['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2010fb,_0x46d8ec){const _0x38dd99=[];for(let _0x459bb4 of _0x2010fb)_0x459bb4['start']['nodeAfter']===_0x459bb4['end']['parent']&&(_0x459bb4=_0x164b82['model']['createRange'](_0x164b82['model']['createPositionAt'](_0x459bb4['start']['nodeAfter'],0x0))),_0x38dd99['push'](_0x459bb4);_0x164b82['model']['change'](_0x36c436=>{const _0xd3e56b=_0x164b82['model']['document']['selection'],_0x699f3e=Array['from'](_0xd3e56b['getRanges']())['map'](_0x49985e=>_0xb1b223['fromRange'](_0x49985e));_0x36c436['setSelection'](_0x38dd99),_0x164b82['commands']['get'](_0x46d8ec['commandName'])['refresh'](),_0x46d8ec['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x164b82['execute'](_0x46d8ec['commandName'],..._0x46d8ec['commandParams']),_0x36c436['setSelection'](_0x699f3e);for(const _0x74fc64 of _0x699f3e)_0x74fc64['detach']();});}),_0x2110f1['descriptionFactory']['registerElementLabel'](function(_0x18a5f9){const _0x327d6f=!_0x164b82['model']['schema']['isObject'](_0x18a5f9),_0x4397a3=_0x18a5f9['previousSibling'],_0x58718d=_0x18a5f9['nextSibling'],_0x15b9c3=_0x18a5f9['getAttribute']('listItemId'),_0x4f0c01=!_0x4397a3||_0x4397a3['getAttribute']('listItemId')!==_0x15b9c3,_0x5d2b1e=!_0x58718d||_0x58718d['getAttribute']('listItemId')!==_0x15b9c3;return _0x327d6f&&Boolean(_0x15b9c3)&&_0x4f0c01&&_0x5d2b1e;},_0x106776=>o(_0xece43d,'ELEMENT_LIST_ITEM',_0x106776));}['_registerLegacyDescription'](){const _0x56f3ff=this['editor'],_0x35a77a=_0x56f3ff['locale'];function _0x369eb2(_0xeee0ee){const _0x32d123=_0x56f3ff['commands']['get']('bulletedList')['value'],_0x4c6e89=_0x56f3ff['commands']['get']('numberedList')['value'];return'numberedList'===_0xeee0ee?_0x32d123:_0x4c6e89;}_0x56f3ff['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1a4f08){if('formatBlock'!=_0x1a4f08['type'])return;const {data:_0x4f0f23}=_0x1a4f08;if(!_0x4f0f23)return;let _0x23dceb,_0x229095,_0x4f1419,_0x2dd2bc;switch(_0x4f0f23['commandName']){case'bulletedList':_0x4f1419=_0x4f0f23['commandParams'][0x0]['forceValue'],_0x2dd2bc=_0x369eb2(_0x4f0f23['commandName']),_0x23dceb=_0x4f1419?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd2bc&&_0x56f3ff['config']['get']('list.multiBlock')||(_0x23dceb='*Change\x20to:*\x20%0'),_0x229095={'type':'format','content':o(_0x35a77a,_0x23dceb,o(_0x35a77a,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x4f1419=_0x4f0f23['commandParams'][0x0]['forceValue'],_0x2dd2bc=_0x369eb2(_0x4f0f23['commandName']),_0x23dceb=_0x4f1419?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2dd2bc&&_0x56f3ff['config']['get']('list.multiBlock')||(_0x23dceb='*Change\x20to:*\x20%0'),_0x229095={'type':'format','content':o(_0x35a77a,_0x23dceb,o(_0x35a77a,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x23dceb='*Indent:*\x20%0',_0x229095={'type':'format','content':o(_0x35a77a,_0x23dceb,o(_0x35a77a,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x23dceb=function(_0xc02356){const _0x52409e=_0xc02356['getFirstRange']();let _0x3df0d5=_0x52409e['start']['nodeAfter'];for(;_0x3df0d5&&_0x52409e['containsItem'](_0x3df0d5);){if(_0x3df0d5['getAttribute']('listIndent')>0x0)return!0x1;_0x3df0d5=_0x3df0d5['nextSibling'];}return!0x0;}(_0x1a4f08)?o(_0x35a77a,'*Format:*\x20remove\x20from\x20%0',o(_0x35a77a,function(_0x1cf066){return'ELEMENT_'+_0x1cf066['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1a4f08))):o(_0x35a77a,'*Outdent:*\x20%0',o(_0x35a77a,'ELEMENT_LIST_ITEM')),_0x229095={'type':'format','content':_0x23dceb};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x4f0f23['multipleBlocks']&&(_0x23dceb='*Merge:*\x20%0',_0x229095={'type':'deletion','content':o(_0x35a77a,_0x23dceb,o(_0x35a77a,'ELEMENT_LIST_ITEM'))});}return _0x229095;});}}function Ee(_0x1078c1){let _0x398b11=_0x1078c1['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x398b11;){const _0x171400=_0x398b11['getAttribute']('listItemId');if(!_0x171400)return!0x1;if(_0x171400==_0x1078c1['data']['newValue'])return'newValue';if(_0x171400==_0x1078c1['data']['oldValue'])return'oldValue';_0x398b11=_0x398b11['previousSibling'];}return!0x1;}class pe extends _0x82b22a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x24f781=this['editor']['config']['get']('list.properties'),_0x3bf423=this['editor']['plugins']['get']('TrackChangesEditing');_0x24f781['styles']&&(_0x3bf423['enableDefaultAttributesIntegration']('listStyle'),_0x3bf423['registerBlockAttribute']('listStyle')),_0x24f781['reversed']&&(_0x3bf423['enableDefaultAttributesIntegration']('listReversed'),_0x3bf423['registerBlockAttribute']('listReversed')),_0x24f781['startIndex']&&(_0x3bf423['enableDefaultAttributesIntegration']('listStart'),_0x3bf423['registerBlockAttribute']('listStart'));const _0x2d244b={'type':'format','content':''};_0x3bf423['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x334941=this['editor']['locale'];_0x3bf423['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x334941,'FORMAT_LIST_REVERSED')),_0x3bf423['descriptionFactory']['registerDescriptionCallback'](_0x1f2106=>{const {data:_0x10abb9}=_0x1f2106;if(_0x10abb9&&'listReversed'==_0x10abb9['key'])return null==_0x10abb9['newValue']||0x0==_0x10abb9['newValue']&&null==_0x10abb9['oldValue']?_0x2d244b:void 0x0;}),_0x3bf423['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x334941,'FORMAT_LIST_START')),_0x3bf423['descriptionFactory']['registerDescriptionCallback'](_0x40a1a5=>{const {data:_0x9810cc}=_0x40a1a5;if(_0x9810cc&&'listStart'==_0x9810cc['key'])return null==_0x9810cc['newValue']||0x1==_0x9810cc['newValue']&&null==_0x9810cc['oldValue']?_0x2d244b:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x280c46=>{if(_0x280c46['batch']['isUndo'])return!0x1;let _0x332616=!0x1;const _0x3d40f2=_0x3bf423['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4c3909=>{const _0xe22ed1=_0x3bf423['_getAttributeKey'](_0x4c3909);return'listStart'==_0xe22ed1||'listReversed'==_0xe22ed1;});for(const _0x1cb58f of _0x3d40f2){const _0x1f3408=_0x1cb58f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x1f3408||'customNumbered'==_0x1f3408)continue;_0x3bf423['_findSuggestions'](_0x1cb58f['getFirstRange'](),'attribute')['find'](_0x1614c0=>'listType'==_0x3bf423['_getAttributeKey'](_0x1614c0['suggestion']))||(_0x280c46['removeMarker'](_0x1cb58f['getFirstMarker']()),_0x332616=!0x0);}return _0x332616;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x4d189c){const _0x504160=this['editor']['locale'],{data:_0x4cb1be}=_0x4d189c,_0x317975={'type':'format','content':''};if(!_0x4cb1be||'listStyle'!=_0x4cb1be['key'])return;if(!_0x4cb1be['oldValue'])return'default'==_0x4cb1be['newValue']?_0x317975:{'type':'format','content':''+o(_0x504160,'*Set\x20format:*\x20%0',o(_0x504160,this['_getTranslationKeyForListStyle'](_0x4cb1be['newValue'])))};if(!_0x4cb1be['newValue']){if('default'==_0x4cb1be['oldValue'])return _0x317975;let _0x50d676=_0x4d189c['head'];for(;_0x50d676;){if(_0x50d676['data']&&'listType'==_0x50d676['data']['key']&&_0x50d676['data']['newValue'])return _0x317975;_0x50d676=_0x50d676['next'];}return{'type':'format','content':''+o(_0x504160,'*Remove\x20format:*\x20%0',o(_0x504160,this['_getTranslationKeyForListStyle'](_0x4cb1be['oldValue'])))};}if('default'!=_0x4cb1be['newValue'])return{'type':'format','content':''+o(_0x504160,'*Set\x20format:*\x20%0',o(_0x504160,this['_getTranslationKeyForListStyle'](_0x4cb1be['newValue'])))};let _0x1d0d6d=_0x4d189c['head'];for(;_0x1d0d6d;){if(_0x1d0d6d['data']&&'listType'==_0x1d0d6d['data']['key']&&_0x1d0d6d['data']['newValue']&&_0x1d0d6d['data']['oldValue'])return _0x317975;_0x1d0d6d=_0x1d0d6d['next'];}return{'type':'format','content':o(_0x504160,'*Set\x20format:*\x20%0',o(_0x504160,'ELEMENT_'+_0x4d189c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x5e2206=this['editor'],_0x20e0ab=_0x5e2206['locale'];_0x5e2206['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3135be=>{if('formatBlock'!=_0x3135be['type'])return;const {data:_0x478611}=_0x3135be;if(!_0x478611)return;let _0x264c01,_0x55588c;switch(_0x478611['commandName']){case'listStyle':_0x264c01='*Change\x20to:*\x20%0',_0x55588c={'type':'format','content':o(_0x20e0ab,_0x264c01,o(_0x20e0ab,this['_getTranslationKeyForListStyle'](_0x478611['commandParams'][0x0]['type'])))};break;case'listReversed':_0x264c01=_0x478611['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x55588c={'type':'format','content':o(_0x20e0ab,_0x264c01)};break;case'listStart':_0x264c01='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x55588c={'type':'format','content':o(_0x20e0ab,_0x264c01,_0x478611['commandParams'][0x0]['startIndex'])};}return _0x55588c;});}['_getTranslationKeyForListStyle'](_0x852c94){return'ELEMENT_'+function(_0x5a2983){if(ye['includes'](_0x5a2983))return'bulleted';if(Se['includes'](_0x5a2983))return'numbered';return null;}(_0x852c94)['toUpperCase']()+'_LIST_'+_0x852c94['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x82b22a{static get['requires'](){return[_0x3aabb4];}['init'](){const _0x16e308=this['editor'],_0x31a61f=_0x16e308['plugins']['get']('TrackChangesEditing'),_0x1cbaea=_0x16e308['commands']['get']('enter');_0x31a61f['enableCommand']('enter',()=>{_0x16e308['model']['change'](_0x2c0235=>{const _0x58aca1=_0x16e308['model']['document']['selection'],_0x4c305f=_0x58aca1['getFirstPosition'](),_0x15344b=_0xb1b223['fromRange'](_0x58aca1['getFirstRange']());if(_0x1cbaea['enterBlock'](_0x2c0235)){const _0x50cfab=_0x16e308['model']['createPositionAt'](_0x4c305f['parent']['nextSibling'],0x0),_0x6bf64d=_0x2c0235['createRange'](_0x4c305f,_0x50cfab);_0x31a61f['markInsertion'](_0x6bf64d);}else _0x2c0235['setSelection'](_0x2c0235['createRange'](_0x15344b['end']));_0x15344b['detach'](),_0x1cbaea['fire']('afterExecute',{'writer':_0x2c0235});});}),_0x16e308['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x16e308,'split'),{'priority':'high'}),_0x16e308['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x28d774,_0x39e858,_0x210323)=>{const _0x376b75=_0x210323['mapper']['markerNameToElements'](_0x39e858['markerName']);if(_0x376b75){for(const _0x1790e2 of _0x376b75)_0x1790e2['hasClass']('ck-suggestion-marker-split')&&(_0x210323['mapper']['unbindElementFromMarkerName'](_0x1790e2,_0x39e858['markerName']),_0x210323['writer']['remove'](_0x1790e2));}},{'priority':'high'}),_0x16e308['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x279b1f,_0x4aec5e,_0x49500f)=>{_0x49500f['options']['showSuggestionHighlights']&&_e(_0x16e308,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x279b1f,_0x4aec5e,_0x49500f);},{'priority':'high'});}}class X extends _0x82b22a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x4191cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x4191cc['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x4191cc['enableCommand']('findNext'),_0x4191cc['enableCommand']('findPrevious'),_0x4191cc['enableCommand']('replace'),_0x4191cc['enableCommand']('replaceAll');}['handleFindCommand'](_0x281206,_0x59cf2d,_0x3c3d64={}){const _0x2509aa=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x281206(_0x5968b2=>{let _0x400fc6=('string'==typeof _0x59cf2d?_0x2509aa['findByTextCallback'](_0x59cf2d,_0x3c3d64):_0x59cf2d)(_0x5968b2);Array['isArray'](_0x400fc6)&&(_0x400fc6={'results':_0x400fc6,'searchText':'string'==typeof _0x59cf2d?_0x59cf2d:''});const _0x4eb7af=_0x400fc6['results']['filter'](_0x485359=>!0x1===this['_isInDeletionRange'](_0x485359,_0x5968b2['item']));return{..._0x400fc6,'results':_0x4eb7af};},_0x3c3d64);}['_isInDeletionRange'](_0xa0bbec,_0x3f6106){const _0x440c3e=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3f6106,_0xa0bbec['start']),this['editor']['model']['createPositionAt'](_0x3f6106,_0xa0bbec['end']));for(const _0x21d04d of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x440c3e['getIntersection'](_0x21d04d['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 _0x82b22a{['afterInit'](){const _0x2dad47=this['editor']['locale'],_0x23b357=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x34aff4,commandName:_0x2b2a37}of ro)this['editor']['plugins']['has'](_0x34aff4)&&(_0x23b357['enableDefaultAttributesIntegration'](_0x2b2a37),_0x23b357['registerInlineAttribute'](_0x2b2a37));_0x23b357['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2dad47,'FORMAT_FONT_SIZE')),_0x23b357['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2dad47,'FORMAT_FONT_FAMILY')),_0x23b357['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2dad47,'FORMAT_FONT_COLOR')),_0x23b357['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2dad47,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cf0ed=this['editor'],_0x2b831e=_0x1cf0ed['locale'];_0x1cf0ed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fed28=>{const _0x14cdf7=_0x2b831e['t'];if('formatInline'!=_0x2fed28['type'])return;const {data:_0x9cb58}=_0x2fed28;if(null!=_0x9cb58){if('fontSize'==_0x9cb58['commandName']){const _0x5aa11a=_0x9cb58['commandParams'][0x0]['value'];if(_0x5aa11a){const _0xb66d70=_0x14cdf7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1c54a3=>_0x1c54a3['model']==_0x5aa11a)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2b831e,'*Set\x20font\x20size:*\x20%0',_0xb66d70)};}return{'type':'format','content':o(_0x2b831e,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x9cb58['commandName']){const _0x382101=_0x9cb58['commandParams'][0x0]['value'];return _0x382101?{'type':'format','content':o(_0x2b831e,'*Set\x20font\x20family:*\x20%0',_0x382101)}:{'type':'format','content':o(_0x2b831e,'*Reset\x20font\x20family*')};}if('fontColor'==_0x9cb58['commandName']){const _0x390ecc=_0x9cb58['commandParams'][0x0]['value'];if(_0x390ecc){const _0x3cdb05=_0x51d8f8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x25ec04=>_0x25ec04['model']==_0x390ecc);let _0x492c4e=_0x390ecc,_0x16c64b='';return _0x3cdb05&&(_0x492c4e=_0x3cdb05['label'],_0x16c64b=_0x14cdf7(_0x492c4e)['toLowerCase']()),{'type':'format','content':o(_0x2b831e,'*Set\x20font\x20color:*\x20%0',_0x16c64b)['trim'](),'color':{'value':_0x390ecc,'title':_0x16c64b||_0x492c4e}};}return{'type':'format','content':o(_0x2b831e,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x9cb58['commandName']){const _0x41b90f=_0x9cb58['commandParams'][0x0]['value'];if(_0x41b90f){const _0x2323b0=_0x51d8f8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x54b407=>_0x54b407['model']==_0x41b90f);let _0x1de9b3=_0x41b90f,_0x4b7c78='';return _0x2323b0&&(_0x1de9b3=_0x2323b0['label'],_0x4b7c78=_0x14cdf7(_0x1de9b3)['toLowerCase']()),{'type':'format','content':o(_0x2b831e,'*Set\x20font\x20background\x20color:*\x20%0',_0x4b7c78)['trim'](),'color':{'value':_0x41b90f,'title':_0x4b7c78||_0x1de9b3}};}return{'type':'format','content':o(_0x2b831e,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x82b22a{['afterInit'](){const _0x1ce1bb=this['editor'],_0x57cac4=_0x1ce1bb['plugins']['get']('TrackChangesEditing'),_0x57ea85=_0x1ce1bb['commands']['get']('copyFormat'),_0x23cb75=_0x1ce1bb['commands']['get']('pasteFormat');_0x57ea85&&_0x23cb75&&(_0x57cac4['enableDefaultAttributesIntegration']('pasteFormat'),_0x57cac4['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x41a8ae=this['editor'],_0x78828c=_0x41a8ae['locale'];_0x41a8ae['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2694e1=>{if('formatBlock'!=_0x2694e1['type']&&'formatInline'!=_0x2694e1['type'])return;const {data:_0x4f3016}=_0x2694e1;if(_0x4f3016&&'pasteFormat'===_0x4f3016['commandName']){const _0x26cf57=[],_0x1603c8=_0x4f3016['commandParams'][0x0];for(const [_0x4293e3,_0x58e71d]of Object['entries'](_0x1603c8))_0x26cf57['push'](so(_0x41a8ae,_0x4293e3,_0x58e71d));return _0x26cf57['length']?{'type':'format','content':o(_0x78828c,'*Set\x20format\x20to:*\x20%0',_0x26cf57['join'](',\x20'))}:{'type':'format','content':o(_0x78828c,'*Remove\x20all\x20formatting*')};}});}}function so(_0x3f7370,_0x57c703,_0x48d4dc){const _0x15988f=_0x3f7370['locale']['t'],_0x4812b6=_0x57c703['split'](/(?=[A-Z])/)['join']('\x20'),_0x3d5745=_0x15988f(_0x4812b6['charAt'](0x0)['toUpperCase']()+_0x4812b6['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x48d4dc)return _0x3d5745;if('fontColor'===_0x57c703||'fontBackgroundColor'===_0x57c703){const _0x5076ca=_0x51d8f8(_0x3f7370['config']['get']('fontColor.colors'))['find'](_0x79036b=>_0x79036b['model']==_0x48d4dc);return _0x3d5745+'\x20('+(_0x5076ca?_0x15988f(_0x5076ca['label'])['toLowerCase']():_0x48d4dc)+')';}if('fontSize'===_0x57c703&&isNaN(parseFloat(_0x48d4dc))){const _0x9b0c14=_0x3f7370['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x3f7370['config']['get']('fontSize.options'))['find'](_0x29f01a=>_0x29f01a['model']==_0x48d4dc);return _0x3d5745+'\x20('+(_0x9b0c14?_0x15988f(_0x9b0c14['title'])['toLowerCase']():_0x48d4dc)+')';}return _0x3d5745+'\x20('+_0x48d4dc+')';}class tt extends _0x82b22a{['_headingOptions'];['afterInit'](){const _0x4fae1e=this['editor'];if(!_0x4fae1e['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x4fae1e['config']['get']('heading.options');const _0x5130a4=_0x4fae1e['locale'],_0x40f84b=_0x4fae1e['plugins']['get']('TrackChangesEditing');_0x40f84b['enableDefaultAttributesIntegration']('heading');for(const _0x5572ac of this['_headingOptions'])'paragraph'!=_0x5572ac['model']&&_0x40f84b['descriptionFactory']['registerElementLabel'](_0x5572ac['model'],_0x11b413=>{const _0x58d444=this['_getHeadingLevel'](_0x5572ac['model']);return null!==_0x58d444?_0x5741b8(_0x11b413,_0x58d444):_0xc40031(_0x11b413,_0x5572ac['title']);});function _0x5741b8(_0x1275c7,_0x46df47){return o(_0x5130a4,'ELEMENT_HEADING',[_0x1275c7,_0x46df47]);}function _0xc40031(_0x189b93,_0x36ee70){return o(_0x5130a4,'ELEMENT_HEADING_CUSTOM',[_0x189b93,_0x36ee70]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x561bb6=this['editor'],_0x5edc94=_0x561bb6['locale'];function _0x1bdf1c(_0x1121cf,_0x4584e2){return o(_0x5edc94,'ELEMENT_HEADING_CUSTOM',[_0x1121cf,_0x4584e2]);}_0x561bb6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d2264=>{if('formatBlock'!=_0x5d2264['type'])return;const {data:_0x575ee2}=_0x5d2264;if(_0x575ee2&&'heading'==_0x575ee2['commandName']){const _0x3c55dc=_0x575ee2['commandParams'][0x0]['value'],_0x33bfff=this['_getHeadingLevel'](_0x3c55dc);if(null!==_0x33bfff)return{'type':'format','content':o(_0x5edc94,'*Change\x20to:*\x20%0',(_0x390891=0x1,_0x2a554b=_0x33bfff,o(_0x5edc94,'ELEMENT_HEADING',[_0x390891,_0x2a554b])))};const _0x5a61a3=this['_headingOptions']['find'](_0x2a64be=>_0x2a64be['model']===_0x3c55dc)['title'];return{'type':'format','content':o(_0x5edc94,'*Change\x20to:*\x20%0',_0x1bdf1c(0x1,_0x5a61a3))};}var _0x390891,_0x2a554b;});}['_getHeadingLevel'](_0x389b1f){const _0x14e0dd=_0x389b1f['match'](/^heading(\d+)/);if(_0x14e0dd)return _0x14e0dd[0x1];const _0x5aa01c=this['_headingOptions']?.['find'](_0x207e0e=>_0x207e0e['model']==_0x389b1f);if(_0x5aa01c&&_0x5aa01c['view']){const _0x1a24f7=_0x5aa01c['view'],_0x50d2ab=(_0x1a24f7['name']??_0x1a24f7)['match'](/^h(\d+)/);if(_0x50d2ab)return _0x50d2ab[0x1];}return null;}}class et extends _0x82b22a{['afterInit'](){const _0x57388f=this['editor'];if(!_0x57388f['plugins']['has']('HighlightEditing'))return;const _0x433df1=_0x57388f['plugins']['get']('TrackChangesEditing'),_0x496fdc=_0x57388f['locale'];_0x433df1['enableDefaultAttributesIntegration']('highlight'),_0x433df1['registerInlineAttribute']('highlight'),_0x433df1['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x496fdc,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x34eb06=this['editor'],_0x48981d=_0x34eb06['locale'];_0x34eb06['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x871934=>{if('formatInline'!=_0x871934['type'])return;const {data:_0x563d88}=_0x871934;if(_0x563d88&&'highlight'==_0x563d88['commandName']){const _0x44e527=_0x48981d['t'],_0x2e7788=_0x563d88['commandParams'][0x0]['value'];if(_0x2e7788){const _0x395b3c=_0x34eb06['config']['get']('highlight.options')['find'](_0x310c65=>_0x310c65['model']==_0x2e7788),_0x1c5ea3=_0x44e527(_0x395b3c['title'])['toLowerCase']();return{'type':'format','content':o(_0x48981d,'*Set\x20highlight:*\x20%0',_0x1c5ea3),'color':{'value':_0x395b3c['color'],'title':_0x395b3c['title']}};}return{'type':'format','content':o(_0x48981d,'*Remove\x20highlight*',o(_0x48981d,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x82b22a{['afterInit'](){const _0x252f98=this['editor'];if(!_0x252f98['plugins']['has']('HorizontalLineEditing'))return;_0x252f98['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5d9a71=_0x252f98['plugins']['get']('TrackChangesEditing'),_0x4e65a6=_0x252f98['locale'];_0x5d9a71['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2a6191=>o(_0x4e65a6,'ELEMENT_HORIZONTAL_LINE',_0x2a6191)),_0x252f98['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x18f083,{writer:_0x667126,options:_0x5c9d71})=>{if(!_0x5c9d71['showSuggestionHighlights'])return null;const _0xe72b90=_0x667126['createContainerElement']('div'),_0x5e94f3=_0x667126['createEmptyElement']('hr');return _0x667126['addClass']('ck-horizontal-line',_0xe72b90),_0x667126['insert'](_0x667126['createPositionAt'](_0xe72b90,0x0),_0x5e94f3),_0xe72b90;},'converterPriority':'high'});}}class st extends _0x82b22a{['afterInit'](){const _0x31418a=this['editor'];if(!_0x31418a['plugins']['has']('HtmlEmbed'))return;const _0x26eec6=_0x31418a['plugins']['get']('TrackChangesEditing'),_0x567c19=_0x31418a['locale'];_0x26eec6['descriptionFactory']['registerElementLabel']('rawHtml',_0x1e640c=>o(_0x567c19,'ELEMENT_HTML_EMBED',_0x1e640c)),_0x26eec6['enableDefaultAttributesIntegration']('htmlEmbed'),_0x26eec6['registerBlockAttribute']('value'),_0x26eec6['descriptionFactory']['registerDescriptionCallback'](_0x51c31f=>{if('attribute'!=_0x51c31f['type'])return;const {data:_0x47d580}=_0x51c31f;if(_0x47d580&&'value'==_0x47d580['key']&&_0x51c31f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x17695f=o(_0x567c19,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x567c19,'*Change\x20%0\x20content*',_0x17695f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4562b2=this['editor'],_0x358601=_0x4562b2['locale'];_0x4562b2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41859e=>{if('formatBlock'!=_0x41859e['type'])return;const {data:_0x3fc030}=_0x41859e;if(_0x3fc030&&'htmlEmbed'==_0x3fc030['commandName']){const _0x3e97f1=o(_0x358601,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x358601,'*Change\x20%0\x20content*',_0x3e97f1)};}});}}class nt extends _0x82b22a{['afterInit'](){const _0x5b147b=this['editor'];if(!_0x5b147b['plugins']['has']('ImageEditing'))return;const _0x9b95ff=_0x5b147b['plugins']['get']('TrackChangesEditing'),_0x1ee380=_0x5b147b['plugins']['get']('ImageUtils'),_0x39d86f=_0x5b147b['locale'];_0x9b95ff['enableCommand']('insertImage'),_0x9b95ff['descriptionFactory']['registerElementLabel']('imageBlock',_0x695ce3=>o(_0x39d86f,'ELEMENT_IMAGE',_0x695ce3)),_0x9b95ff['descriptionFactory']['registerElementLabel']('imageInline',_0x83ccc5=>o(_0x39d86f,'ELEMENT_INLINE_IMAGE',_0x83ccc5)),_0x9b95ff['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x39d86f,'ELEMENT_CAPTION')),_0x5b147b['plugins']['has']('ImageUploadEditing')&&_0x9b95ff['enableCommand']('uploadImage'),_0x5b147b['plugins']['has']('ImageBlockEditing')&&_0x5b147b['plugins']['has']('ImageInlineEditing')&&(_0x9b95ff['enableCommand']('imageTypeInline',(_0x560909,_0x395711)=>{const _0x26ecce=_0x1ee380['getClosestSelectedImageElement'](_0x5b147b['model']['document']['selection']);_0x5b147b['model']['change'](()=>{_0x9b95ff['markBlockFormat'](_0x26ecce,{'commandName':'imageTypeInline','commandParams':[_0x395711]},[],'convertBlockImageToInline');});}),_0x9b95ff['enableCommand']('imageTypeBlock',(_0x4d345a,_0x490fc8)=>{_0x5b147b['model']['change'](_0x4b26e0=>{let _0x3886d0=_0x1ee380['getClosestSelectedImageElement'](_0x5b147b['model']['document']['selection']),_0x4b4369=_0x4b26e0['createRangeOn'](_0x3886d0);const _0x27304a=_0x3fc9ae['fromPosition'](_0x4b4369['start'],'toPrevious'),_0x5c2beb=_0x3fc9ae['fromPosition'](_0x4b4369['end'],'toNext');_0x9b95ff['forceDefaultExecution'](()=>_0x4d345a(_0x490fc8)),_0x3886d0=_0x1ee380['getClosestSelectedImageElement'](_0x5b147b['model']['document']['selection']),_0x4b4369=_0x4b26e0['createRangeOn'](_0x3886d0);const _0x4ad76d=_0x4b26e0['createRange'](_0x27304a,_0x5c2beb);_0x27304a['detach'](),_0x5c2beb['detach'](),_0x9b95ff['markBlockFormat'](_0x3886d0,{'commandName':'imageTypeInline','commandParams':[_0x490fc8]},[],'convertInlineImageToBlock'),_0x4ad76d['start']['isBefore'](_0x4b4369['start'])&&_0x9b95ff['markInsertion'](_0x4b26e0['createRange'](_0x4ad76d['start'],_0x4b4369['start']),'convertInlineImageToBlock'),_0x4b4369['end']['isBefore'](_0x4ad76d['end'])&&_0x9b95ff['markInsertion'](_0x4b26e0['createRange'](_0x4b4369['end'],_0x4ad76d['end']),'convertInlineImageToBlock');});}),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x9b95ff['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0xed7fca])=>{const _0x360e6c=_0x9b95ff['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2b1174=_0xed7fca['start'],_0x2326ec=_0xed7fca['end'];const _0x43a00b=_0x5b147b['model']['schema']['getNearestSelectionRange'](_0x2b1174,'backward'),_0x34a733=_0x5b147b['model']['schema']['getNearestSelectionRange'](_0x2326ec,'forward');_0x43a00b['isCollapsed']&&(_0x2b1174=_0x43a00b['start']),_0x34a733['isCollapsed']&&(_0x2326ec=_0x34a733['end']),_0x360e6c([_0x5b147b['model']['createRange'](_0x2b1174,_0x2326ec)]);}),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3ccd55),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3ccd55)),_0x5b147b['plugins']['has']('ImageCaptionEditing')&&(_0x9b95ff['enableCommand']('toggleImageCaption',(_0x41a5ac,_0x5610b0)=>{const _0x224da2=_0x5b147b['plugins']['get']('ImageCaptionUtils');let _0xe84a21=_0x1ee380['getClosestSelectedImageElement'](_0x5b147b['model']['document']['selection']),_0x47ab4d=_0x224da2['getCaptionFromImageModelElement'](_0xe84a21);_0x5b147b['model']['change'](()=>{if(_0x47ab4d)return void _0x9b95ff['markDeletion'](_0x5b147b['model']['createRangeOn'](_0x47ab4d));const _0x157a85=_0x1ee380['isBlockImage'](_0xe84a21);_0x41a5ac(_0x5610b0),_0xe84a21=_0x1ee380['getClosestSelectedImageElement'](_0x5b147b['model']['document']['selection']),_0x47ab4d=_0x224da2['getCaptionFromImageModelElement'](_0xe84a21),_0x9b95ff['markInsertion'](_0x5b147b['model']['createRangeOn'](_0x47ab4d),_0x157a85?null:'imageCaption');});}),_0x9b95ff['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3ccd55));const _0x21ff1e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x4453ad(_0x1727bd,_0x5d6dc1){const _0x3dbc6e=_0x21ff1e['findIndex'](({type:_0x36a1a1,subType:_0x45fd35})=>_0x1727bd['type']==_0x36a1a1&&_0x1727bd['subType']==_0x45fd35),_0x2d64ef=_0x21ff1e['findIndex'](({type:_0x36acf9,subType:_0x3a2a49})=>_0x5d6dc1['type']==_0x36acf9&&_0x5d6dc1['subType']==_0x3a2a49);if(_0x3dbc6e<0x0||_0x2d64ef<0x0)return!0x1;const _0x1b26ab=_0x1727bd['getFirstRange'](),_0x5af0ba=_0x5d6dc1['getFirstRange']();if((0x0==_0x3dbc6e||0x1==_0x3dbc6e)&&0x2==_0x2d64ef&&_0x1b26ab['isIntersecting'](_0x5af0ba))return!0x0;if(0x2==_0x3dbc6e&&0x3==_0x2d64ef){const _0x34d12d=_0x9b95ff['_findSuggestions'](_0x1b26ab,'insertion')['filter'](({suggestion:_0x4bd29c,meta:_0x30e029})=>_0x30e029['isOwn']&&'convertInlineImageToBlock'==_0x4bd29c['subType']);if(_0x34d12d['length']>0x1&&_0x5af0ba['end']['isEqual'](_0x1b26ab['start']))return!0x0;if(0x1==_0x34d12d['length']&&(_0x1b26ab['start']['isEqual'](_0x5af0ba['end'])||_0x1b26ab['end']['isEqual'](_0x5af0ba['start'])))return!0x0;}if(0x3==_0x3dbc6e&&0x3==_0x2d64ef&&_0x1b26ab['start']['isBefore'](_0x5af0ba['start'])){const _0x449237=_0x1b26ab['end']['nodeAfter'],_0x2b2ca8=_0x5af0ba['start']['nodeBefore'];return _0x1ee380['isBlockImage'](_0x449237)&&_0x449237===_0x2b2ca8;}return!0x1;}function _0x3ccd55(_0x1ece06,_0x5d74aa){return _0x4453ad(_0x1ece06,_0x5d74aa)?[_0x1ece06,_0x5d74aa]:_0x4453ad(_0x5d74aa,_0x1ece06)?[_0x5d74aa,_0x1ece06]:null;}_0x5b147b['plugins']['has']('ImageResize')&&(_0x9b95ff['enableDefaultAttributesIntegration']('resizeImage'),_0x9b95ff['registerBlockAttribute']('resizedWidth'),_0x9b95ff['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x39d86f,'FORMAT_IMAGE_SIZE'))),_0x5b147b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x9b95ff['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x9b95ff['registerBlockAttribute']('alt')),_0x9b95ff['descriptionFactory']['registerDescriptionCallback'](_0x4a5fcb=>{if(!!_0x21ff1e['find'](({type:_0xe0decd,subType:_0x337c85})=>_0x4a5fcb['type']==_0xe0decd&&_0x4a5fcb['subType']==_0x337c85))return _0x4a5fcb['previous']?{}:void 0x0;}),_0x9b95ff['descriptionFactory']['registerDescriptionCallback'](_0x596fb7=>{if('insertion'==_0x596fb7['type']||'deletion'==_0x596fb7['type']){const _0x1343ff=_0x596fb7['getContainedElement']();if(_0x1343ff&&_0x1343ff['is']('element','caption'))return{'type':'insertion'==_0x596fb7['type']?'addObject':'removeObject','element':_0x1343ff,'quantity':0x1};}}),_0x9b95ff['descriptionFactory']['registerDescriptionCallback'](_0x4b92bd=>'formatBlock'==_0x4b92bd['type']&&'convertInlineImageToBlock'==_0x4b92bd['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x4b92bd['type']&&'convertBlockImageToInline'==_0x4b92bd['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x9b95ff['descriptionFactory']['registerDescriptionCallback'](_0x29a0de=>{if('attribute'!=_0x29a0de['type'])return;const {data:_0x6e3330}=_0x29a0de;if(!_0x6e3330||'alt'!=_0x6e3330['key'])return;const _0x2ac6f5=_0x6e3330['newValue'];return _0x2ac6f5?{'type':'format','content':o(_0x39d86f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ac6f5+'\x22')}:{'type':'format','content':o(_0x39d86f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x526d8c=this['editor'],_0x13b9ee=_0x526d8c['locale'];_0x526d8c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa5fd9a=>{if('formatBlock'!=_0xa5fd9a['type']&&'formatInline'!=_0xa5fd9a['type'])return;const {data:_0x38e07b}=_0xa5fd9a;if(_0x38e07b){if('imageTextAlternative'==_0x38e07b['commandName']){const _0x103239=_0x38e07b['commandParams'][0x0]['newValue'];return _0x103239?{'type':'format','content':o(_0x13b9ee,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x103239+'\x22')}:{'type':'format','content':o(_0x13b9ee,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x38e07b['commandName']){const _0x4f61e2=_0x38e07b['commandParams'][0x0]['width'];return _0x4f61e2?{'type':'format','content':o(_0x13b9ee,'*Set\x20image\x20width:*\x20%0',_0x4f61e2)}:{'type':'format','content':o(_0x13b9ee,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x82b22a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x4167a5=this['editor']['locale'],_0x159a46=this['editor']['plugins']['get']('TrackChangesEditing');_0x159a46['enableDefaultAttributesIntegration']('replaceImageSource'),_0x159a46['registerBlockAttribute']('src'),_0x159a46['descriptionFactory']['registerDescriptionCallback'](_0x185455=>{if('attribute'!=_0x185455['type'])return;const {data:_0x2043ae}=_0x185455;return _0x2043ae&&'src'==_0x2043ae['key']?_0x2043ae['newValue']&&_0x2043ae['oldValue']?{'type':'format','content':o(_0x4167a5,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x2e59b3=this['editor']['plugins']['get']('TrackChangesEditing');_0x2e59b3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x2e59b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2e59b3['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x2e59b3['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f12b3=this['editor'],_0x1b7215=_0x3f12b3['locale'];_0x3f12b3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42fcc0=>{if('formatBlock'!=_0x42fcc0['type']&&'formatInline'!=_0x42fcc0['type'])return;const {data:_0x4fb2be}=_0x42fcc0;if(!_0x4fb2be||'replaceImageSource'!=_0x4fb2be['commandName'])return;return{'type':'format','content':o(_0x1b7215,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x82b22a{['afterInit'](){const _0x2057fe=this['editor'];if(!_0x2057fe['plugins']['has']('ImageStyleEditing'))return;const _0x28caf6=_0x2057fe['plugins']['get']('TrackChangesEditing'),_0x1a70e7=_0x2057fe['plugins']['get']('ImageUtils'),_0x46be2b={};_0x28caf6['enableCommand']('imageStyle',(_0x52b10e,_0x24d796)=>{const _0x5a1d57=_0x2057fe['plugins']['get']('Users')['me'],_0x816398=_0x2057fe['commands']['get']('imageStyle');let _0x38b0fa=_0x1a70e7['getClosestSelectedImageElement'](_0x2057fe['model']['document']['selection']),_0x314c1a=_0x2057fe['model']['createRangeOn'](_0x38b0fa),_0x253bc9=_0x816398['value'];if(_0x253bc9==_0x24d796['value'])return;const _0x718f70={'commandName':'imageStyle','commandParams':[_0x24d796],'formatGroupId':_0x27c666()};_0x2057fe['model']['change'](()=>{if(_0x28caf6['getSuggestions']()['filter'](_0x3f334a=>_0x3f334a['isInContent']&&_0x5a1d57==_0x3f334a['author']&&('formatBlock'==_0x3f334a['type']||'formatInline'==_0x3f334a['type'])&&('imageStylePreApply'==_0x3f334a['subType']||'imageStylePostApply'==_0x3f334a['subType'])&&_0x3f334a['getFirstRange']()['isEqual'](_0x314c1a))['forEach'](_0x56a0c8=>_0x28caf6['discardSuggestion'](_0x56a0c8['head'])),_0x38b0fa=_0x1a70e7['getClosestSelectedImageElement'](_0x2057fe['model']['document']['selection']),_0x314c1a=_0x2057fe['model']['createRangeOn'](_0x38b0fa),_0x816398['refresh'](),_0x2057fe['commands']['get']('imageTypeInline')['refresh'](),_0x2057fe['commands']['get']('imageTypeBlock')['refresh'](),_0x253bc9=_0x816398['value'],_0x253bc9!=_0x24d796['value'])return _0x1a70e7['isInlineImage'](_0x38b0fa)&&_0x816398['shouldConvertImageType'](_0x24d796['value'],_0x38b0fa)?(_0x52b10e({..._0x24d796,'setImageSizes':!0x1}),_0x38b0fa=_0x1a70e7['getClosestSelectedImageElement'](_0x2057fe['model']['document']['selection']),void _0x28caf6['markBlockFormat'](_0x38b0fa,{..._0x718f70,'commandReversedParams':[{'value':_0x253bc9||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x1a70e7['isBlockImage'](_0x38b0fa)?_0x28caf6['markBlockFormat'](_0x38b0fa,_0x718f70,[],'imageStylePostApply'):_0x28caf6['markInlineFormat'](_0x314c1a,_0x718f70,'imageStylePostApply'));});});for(const _0x54b2ea of _0x2057fe['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x46be2b[_0x54b2ea['name']]=_0x54b2ea['title']['toLowerCase']();_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x47c42f])=>{_0x1a70e7['setImageNaturalSizeAttributes'](_0x47c42f['getContainedElement']());}),_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x1270ae,_0x385347)=>{_0x28caf6['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x1270ae,{'commandName':_0x385347['commandName'],'commandParams':_0x385347['commandReversedParams']});}),_0x28caf6['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x6d3cdc,_0x18f8d0){if(_0x44cfb2(_0x6d3cdc,_0x18f8d0))return[_0x6d3cdc,_0x18f8d0];if(_0x44cfb2(_0x18f8d0,_0x6d3cdc))return[_0x18f8d0,_0x6d3cdc];return null;});const _0x1efc41=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x44cfb2(_0x590252,_0x56a66d){const _0x347e96=_0x1efc41['findIndex'](({type:_0x29b418,subType:_0x5933e3})=>_0x590252['type']==_0x29b418&&_0x590252['subType']==_0x5933e3),_0x3fd9a0=_0x1efc41['findIndex'](({type:_0x10eb16,subType:_0x3710fc})=>_0x56a66d['type']==_0x10eb16&&_0x56a66d['subType']==_0x3710fc);if(_0x347e96<0x0||_0x3fd9a0<0x0)return!0x1;const _0x38ecbd=_0x590252['getFirstRange'](),_0x447070=_0x56a66d['getFirstRange']();if((0x0==_0x347e96||0x1==_0x347e96)&&0x2==_0x3fd9a0&&_0x38ecbd['isIntersecting'](_0x447070))return!0x0;if(0x2==_0x347e96&&0x3==_0x3fd9a0){const _0x5378a3=_0x28caf6['_findSuggestions'](_0x38ecbd,'insertion')['filter'](({suggestion:_0x1a6598,meta:_0x149312})=>_0x149312['isOwn']&&'convertInlineImageToBlock'==_0x1a6598['subType']);if(_0x5378a3['length']>0x1&&_0x447070['end']['isEqual'](_0x38ecbd['start']))return!0x0;if(0x1==_0x5378a3['length']&&(_0x38ecbd['start']['isEqual'](_0x447070['end'])||_0x38ecbd['end']['isEqual'](_0x447070['start'])))return!0x0;}if(0x3==_0x347e96&&0x3==_0x3fd9a0&&_0x38ecbd['start']['isBefore'](_0x447070['start'])){const _0x638542=_0x38ecbd['end']['nodeAfter'],_0x185a25=_0x447070['start']['nodeBefore'];return _0x1a70e7['isBlockImage'](_0x638542)&&_0x638542===_0x185a25;}return!0x1;}_0x2057fe['model']['document']['registerPostFixer'](()=>{let _0x531528=!0x1;const _0x51e47f=Array['from'](_0x2057fe['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x351ee9,data:_0x438063}of _0x51e47f){const {group:_0x4a0f3b,type:_0x3540e8,subType:_0x4fadf1,id:_0xe4835f}=_0x28caf6['_splitMarkerName'](_0x351ee9);if('suggestion'==_0x4a0f3b&&_0x28caf6['hasSuggestion'](_0xe4835f)){if('formatBlock'==_0x3540e8&&('imageStylePreApply'==_0x4fadf1||'imageStylePostApply'==_0x4fadf1)){const _0x2e1c8a=_0x28caf6['getSuggestion'](_0xe4835f);if(_0x438063['newRange']){const _0x580003=_0x2e1c8a['getFirstRange']()['getContainedElement']();if(_0x1a70e7['isBlockImage'](_0x580003))continue;_0x28caf6['discardSuggestion'](_0x2e1c8a),_0x531528=!0x0;}}if('insertion'==_0x3540e8&&'imageCaption'==_0x4fadf1&&!_0x438063['newRange']){const _0x29802a=_0x28caf6['getSuggestion'](_0xe4835f);_0x29802a['next']&&_0x29802a['next']['isInContent']&&(_0x28caf6['discardSuggestion'](_0x29802a['next']),_0x531528=!0x0);}}}return _0x531528;}),this['_registerLegacyDescription'](_0x46be2b);}['_registerLegacyDescription'](_0x27cc66){const _0x30a4f2=this['editor'],_0x50a39c=_0x30a4f2['locale'];_0x30a4f2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1077e2=>{if('formatBlock'!=_0x1077e2['type']&&'formatInline'!=_0x1077e2['type'])return;const {data:_0x1a45b1}=_0x1077e2;if(!_0x1a45b1||'imageStyle'!=_0x1a45b1['commandName'])return;const _0x314541=_0x1a45b1['commandParams'][0x0]['value'];return _0x4584c4('side'===_0x314541?o(_0x50a39c,'FORMAT_SIDE_IMAGE'):_0x27cc66[_0x314541]||_0x314541);function _0x4584c4(_0x1f75c3){return{'type':'format','content':o(_0x50a39c,'*Format:*\x20%0',_0x1f75c3)};}});}}class at extends _0x82b22a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x47d079){super(_0x47d079),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26cfc7=this['editor'],_0xf64037=_0x26cfc7['commands']['get']('importWord'),_0x5a399b=_0x26cfc7['commands']['get']('trackChanges');_0xf64037&&(_0xf64037['on']('execute',(_0x447459,[,_0x52cd31])=>{this['_trackChangesValueDuringImport']=_0x5a399b['value'],_0x52cd31['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0xf64037,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0xf64037,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5a399b['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26cfc7['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x44a3d,_0x24737d){const {suggestions:_0x30f15f}=_0x24737d,_0x3b63df=this['editor']['commands']['get']('trackChanges'),_0x2194a3=_0x3b63df['value'];this['_trackChangesValueDuringImport']!==_0x2194a3&&(_0x3b63df['execute'](),this['_trackChangesExecuted']=!0x0),_0x30f15f&&_0x30f15f['forEach'](({id:_0x3949ab,type:_0x2d4b11,author:_0x537d8a,created_at:_0x15c032})=>{const _0x5207ba={'id':_0x3949ab,'type':_0x2d4b11,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x537d8a,'createdAt':_0x15c032?new Date(_0x15c032):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5207ba);});}}class ct extends _0x82b22a{['afterInit'](){const _0x100b81=this['editor'],_0x3e5800=_0x100b81['plugins']['get']('TrackChangesEditing');if(_0x100b81['plugins']['has']('IndentEditing')&&(_0x3e5800['enableCommand']('indent'),_0x3e5800['enableCommand']('outdent')),_0x100b81['plugins']['has']('IndentBlock')){for(const _0x51e206 of['indentBlock','outdentBlock'])_0x3e5800['enableDefaultAttributesIntegration'](_0x51e206);}const _0x104b8b=_0x100b81['locale'];_0x3e5800['registerBlockAttribute']('blockIndent'),_0x3e5800['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x104b8b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cff6c=this['editor'],_0x53c75e=_0x4cff6c['locale'],_0xf5264=_0x4cff6c['plugins']['get']('TrackChangesEditing');_0xf5264['descriptionFactory']['registerDescriptionCallback'](_0x5db2cb=>{if('formatBlock'!=_0x5db2cb['type'])return;const {data:_0x8df4}=_0x5db2cb;if(!_0x8df4)return;if('indentBlock'!=_0x8df4['commandName']&&'outdentBlock'!=_0x8df4['commandName'])return;const _0x7b1432=_0x5db2cb['getItems']()[0x0],_0x5071d6=_0xf5264['descriptionFactory']['getItemLabel'](_0x7b1432);return'indentBlock'==_0x8df4['commandName']?{'type':'format','content':o(_0x53c75e,'*Indent:*\x20%0',_0x5071d6)}:'outdentBlock'==_0x8df4['commandName']?{'type':'format','content':o(_0x53c75e,'*Outdent:*\x20%0',_0x5071d6)}:void 0x0;});}}class ut extends _0x82b22a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x82b22a{['afterInit'](){const _0x349506=this['editor'];if(!_0x349506['plugins']['has']('LinkEditing'))return;const _0x2e2a80=_0x349506['plugins']['get']('TrackChangesEditing'),_0x492854=_0x349506['commands']['get']('link');_0x2e2a80['enableDefaultAttributesIntegration']('link'),_0x2e2a80['enableDefaultAttributesIntegration']('unlink'),_0x2e2a80['registerInlineAttribute']('linkHref');for(const _0x139e52 of _0x492854['manualDecorators'])_0x2e2a80['registerInlineAttribute'](_0x139e52['id']),_0x2e2a80['descriptionFactory']['registerAttributeLabel'](_0x139e52['id'],'link\x20('+_0x139e52['label']['toLowerCase']()+')');_0x2e2a80['descriptionFactory']['registerDescriptionCallback'](_0x183d8f=>{if('attribute'!=_0x183d8f['type'])return;const {data:_0x342f71}=_0x183d8f;if(!_0x342f71||'linkHref'!=_0x342f71['key'])return;const _0x1f1104=_0x342f71['newValue'],_0x813f87=_0x349506['locale'];return{'type':'format','content':null==_0x1f1104?o(_0x813f87,'*Remove\x20link*'):o(_0x813f87,'*Set\x20link:*\x20%0','\x22'+_0x1f1104+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1c73c8=this['editor'],_0xdf33ac=_0x1c73c8['locale'];_0x1c73c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x11317e=>{if('formatInline'!=_0x11317e['type'])return;const {data:_0x3e3211}=_0x11317e;if(_0x3e3211){if('link'==_0x3e3211['commandName']){const _0x391d83=_0x3e3211['commandParams'][0x0];return{'type':'format','content':o(_0xdf33ac,'*Set\x20link:*\x20%0','\x22'+_0x391d83+'\x22')};}return'unlink'==_0x3e3211['commandName']?{'type':'format','content':o(_0xdf33ac,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x82b22a{['afterInit'](){const _0x33b15c=this['editor'],_0x134250=_0x33b15c['locale'];if(!_0x33b15c['plugins']['has']('LegacyListEditing'))return;const _0x456b4f=_0x33b15c['plugins']['get']('TrackChangesEditing'),_0x1a025c=_0x33b15c['plugins']['has']('LegacyTodoListEditing');function _0x2b8392(_0x3a7a3b){return()=>{const _0x121fa9=_0x33b15c['model']['document']['selection'],_0x2dc262=_0x33b15c['commands']['get'](_0x3a7a3b);if(_0x2dc262['value'])return void _0x33b15c['execute']('paragraph',{});const _0x2991fb=_0x3a7a3b['slice'](0x0,-0x4),_0x4f0fe7=function(_0xc048b7,_0x3ab539,_0x50a505){let _0x298dfb=Array['from'](_0xc048b7)['filter'](_0x5ac0ad=>function(_0x193727,_0x516756){return _0x516756['checkChild'](_0x193727['parent'],'listItem')&&!_0x516756['isObject'](_0x193727);}(_0x5ac0ad,_0x50a505));_0x298dfb=_0x298dfb['filter'](_0x2dfbbb=>!_0x2dfbbb['is']('element','listItem')||_0x2dfbbb['getAttribute']('listType')!=_0x3ab539);const _0x56cbd4=new Set();for(const _0x41ceae of _0x298dfb)_0x41ceae['is']('element','listItem')?_0x56cbd4['add'](fe(_0x41ceae)):_0x56cbd4['add'](_0x41ceae);return Array['from'](_0x56cbd4);}(_0x121fa9['getSelectedBlocks'](),_0x2991fb,_0x33b15c['model']['schema']);_0x33b15c['model']['change'](()=>{for(const _0x4aee20 of _0x4f0fe7)_0x456b4f['markBlockFormat'](_0x4aee20,{'commandName':_0x3a7a3b,'commandParams':[{'forceValue':!_0x2dc262['value']}],'formatGroupId':'blockName'},ue(_0x4aee20));});};}function _0x749379(_0x854261){return()=>{const _0x3564a3=function(_0x1fd8af){let _0x5bed42=Array['from'](_0x1fd8af);const _0x487b95=_0x5bed42['findIndex'](_0x1dd963=>'listItem'!=_0x1dd963['name']);return _0x487b95>-0x1&&(_0x5bed42=_0x5bed42['slice'](0x0,_0x487b95)),_0x5bed42;}(_0x33b15c['model']['document']['selection']['getSelectedBlocks']()),_0x3336f2=_0x33b15c['model']['createRange'](_0x33b15c['model']['createPositionAt'](_0x3564a3[0x0],'before'),_0x33b15c['model']['createPositionAt'](_0x3564a3[_0x3564a3['length']-0x1],'end'));_0x33b15c['model']['change'](()=>{_0x456b4f['markBlockFormat'](_0x3336f2,{'commandName':_0x854261,'commandParams':[],'formatGroupId':'listIndent'},function(_0x31e794){const _0x439ff4=new Set();for(const _0x3981 of _0x31e794){let _0x1146b3=_0x3981['nextSibling'];for(;_0x1146b3&&_0x1146b3['getAttribute']('listIndent')>_0x3981['getAttribute']('listIndent');)_0x439ff4['add'](_0x1146b3),_0x1146b3=_0x1146b3['nextSibling'];}return Array['from'](_0x439ff4);}(_0x3564a3));});};}_0x456b4f['enableCommand']('numberedList',_0x2b8392('numberedList')),_0x456b4f['enableCommand']('bulletedList',_0x2b8392('bulletedList')),_0x1a025c&&_0x456b4f['enableCommand']('todoList',_0x2b8392('todoList')),_0x456b4f['enableCommand']('indentList',_0x749379('indentList')),_0x456b4f['enableCommand']('outdentList',_0x749379('outdentList')),_0x1a025c&&_0x456b4f['enableCommand']('checkTodoList',()=>{const _0x273ac7=_0x33b15c['commands']['get']('checkTodoList'),_0x16509a=Array['from'](_0x273ac7['_selectedElements']);_0x16509a['filter'](_0x431ca5=>_0x431ca5['getAttribute']('todoListChecked')!=_0x273ac7['value']),_0x33b15c['model']['change'](()=>{for(const _0x392558 of _0x16509a)_0x456b4f['markBlockFormat'](_0x392558,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x273ac7['value']}]});});}),_0x456b4f['descriptionFactory']['registerElementLabel']('listItem',_0xd90788=>o(_0x134250,'ELEMENT_LIST_ITEM',_0xd90788)),_0x456b4f['descriptionFactory']['registerDescriptionCallback'](_0x2035a6=>{if('formatBlock'!=_0x2035a6['type']&&'formatInline'!=_0x2035a6['type'])return;const {data:_0x5da10a}=_0x2035a6;if(_0x5da10a){if('numberedList'==_0x5da10a['commandName']||'bulletedList'==_0x5da10a['commandName']||'todoList'==_0x5da10a['commandName'])switch(_0x5da10a['commandName']['replace']('List','')){case'bulleted':return _0x325cd8(o(_0x134250,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x325cd8(o(_0x134250,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x325cd8(o(_0x134250,'ELEMENT_TODO_LIST'));}if('indentList'==_0x5da10a['commandName'])return{'type':'format','content':o(_0x134250,'*Indent:*\x20%0',o(_0x134250,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x5da10a['commandName'])return{'type':'format','content':o(_0x134250,'*Outdent:*\x20%0',o(_0x134250,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x5da10a['commandName'])return _0x5da10a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x134250,'*Check\x20item*')}:{'type':'format','content':o(_0x134250,'*Uncheck\x20item*')};}function _0x325cd8(_0x491f65){return{'type':'format','content':o(_0x134250,'*Change\x20to:*\x20%0',_0x491f65)};}});}}function fe(_0x20bef7){const _0x22c7f4=_0x20bef7['getAttribute']('listIndent');if(0x0==_0x22c7f4)return _0x20bef7;let _0x2b855e=_0x20bef7;for(;_0x20bef7['previousSibling']&&_0x20bef7['previousSibling']['is']('element','listItem');){const _0x25f37b=_0x20bef7['previousSibling']['getAttribute']('listIndent');if(_0x25f37b==_0x22c7f4)_0x2b855e=_0x20bef7['previousSibling'];else{if(_0x25f37b<_0x22c7f4)break;}_0x20bef7=_0x20bef7['previousSibling'];}return _0x2b855e;}function ue(_0x4e66ed){const _0x26cdca=[];if(_0x4e66ed['is']('element','listItem')&&_0x4e66ed['getAttribute']('listIndent')>0x0){let _0x1a5062=_0x4e66ed['nextSibling'];for(;_0x1a5062&&'listItem'==_0x1a5062['name']&&_0x1a5062['getAttribute']('listIndent')==_0x4e66ed['getAttribute']('listIndent');)_0x26cdca['push'](_0x1a5062),_0x1a5062=_0x1a5062['nextSibling'];}return _0x26cdca;}class W extends _0x82b22a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xe94e09=this['editor']['config']['get']('list.properties'),_0x3f7f44=this['editor']['plugins']['get']('TrackChangesEditing');_0xe94e09['styles']&&_0x3f7f44['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xe94e09['reversed']&&_0x3f7f44['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xe94e09['startIndex']&&_0x3f7f44['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3f7f44['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x462828,_0x4a657e={}){const _0x31c115=this['editor']['plugins']['get']('TrackChangesEditing'),_0x259777=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31c115['markMultiRangeBlockFormat'](_0x259777,{'commandName':'listStyle','commandParams':[{'type':_0x4a657e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3d6214,_0x16b9ea={}){const _0xce175b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x98dbfe=this['_getSuggestionBlocks'](_0x50b1e0=>_0x50b1e0['is']('element','listItem')&&'numbered'===_0x50b1e0['getAttribute']('listType'));if(_0x98dbfe['length']<0x1)return;const _0x49d128=_0x98dbfe['map'](_0x5b44e6=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5b44e6,'before'),this['editor']['model']['createPositionAt'](_0x5b44e6,0x0)));this['editor']['model']['change'](()=>{_0xce175b['markMultiRangeBlockFormat'](_0x49d128,{'commandName':'listReversed','commandParams':[{'reversed':_0x16b9ea['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x12af93,_0x1eefa3={}){const _0x4700f4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2e450c=this['_getSuggestionBlocks'](_0x5d8233=>_0x5d8233['is']('element','listItem')&&'numbered'===_0x5d8233['getAttribute']('listType'));if(_0x2e450c['length']<0x1)return;const _0x5f0de5=_0x2e450c['map'](_0xfb2031=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0xfb2031,'before'),this['editor']['model']['createPositionAt'](_0xfb2031,0x0)));this['editor']['model']['change'](()=>{_0x4700f4['markMultiRangeBlockFormat'](_0x5f0de5,{'commandName':'listStart','commandParams':[{'startIndex':_0x1eefa3['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4f7d98){if('formatBlock'!=_0x4f7d98['type']&&'formatInline'!=_0x4f7d98['type'])return;const _0x1803b8=this['editor']['locale'],{data:_0x272fa7}=_0x4f7d98;if(!_0x272fa7)return;let _0x3f5e3f,_0x2b2a88;switch(_0x272fa7['commandName']){case'listStyle':_0x3f5e3f='*Change\x20to:*\x20%0',_0x2b2a88={'type':'format','content':o(_0x1803b8,_0x3f5e3f,o(_0x1803b8,this['_getTranslationKeyForListStyle'](_0x272fa7['commandParams'][0x0]['type'])))};break;case'listReversed':_0x3f5e3f=_0x272fa7['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x2b2a88={'type':'format','content':o(_0x1803b8,_0x3f5e3f)};break;case'listStart':_0x3f5e3f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x2b2a88={'type':'format','content':o(_0x1803b8,_0x3f5e3f,_0x272fa7['commandParams'][0x0]['startIndex'])};}return _0x2b2a88;}['_getSuggestionBlocksForListStyle'](){const _0x14d3d3=this['editor']['plugins']['get']('LegacyListUtils');let _0x3794cc=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3794cc[0x0]?.['is']('element','listItem')&&_0x3794cc['unshift'](..._0x14d3d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3794cc[_0x3794cc['length']-0x1]?.['is']('element','listItem')&&_0x3794cc['push'](..._0x14d3d3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3794cc=[...new Set(_0x3794cc)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3794cc=_0x3794cc['filter'](_0x3f38cc=>_0x3f38cc['is']('element','listItem'))),_0x3794cc;}['_getSuggestionBlocks'](_0xc1c39d){const _0x3bc672=this['editor']['plugins']['get']('LegacyListUtils');let _0x15f204=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xc1c39d)['map'](_0x3dd39c=>{const _0x250aff=this['editor']['model']['createPositionAt'](_0x3dd39c,0x0);return[..._0x3bc672['getSiblingNodes'](_0x250aff,'backward'),..._0x3bc672['getSiblingNodes'](_0x250aff,'forward')];})['flat']();return _0x15f204=[...new Set(_0x15f204)],_0x15f204;}['_getTranslationKeyForListStyle'](_0x594d64){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x594d64)||'default')['toUpperCase']()+'_LIST_'+_0x594d64['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x82b22a{['afterInit'](){const _0x14481a=this['editor'];if(!_0x14481a['plugins']['has']('MediaEmbedEditing'))return;const _0x2dfebf=_0x14481a['plugins']['get']('TrackChangesEditing'),_0x5803c=_0x14481a['locale'];_0x2dfebf['enableCommand']('mediaEmbed'),_0x2dfebf['descriptionFactory']['registerElementLabel']('media',_0xe9d464=>o(_0x5803c,'ELEMENT_MEDIA',_0xe9d464)),_0x14481a['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x594a15,{writer:_0x229bb5,options:_0x2f5ff0})=>{if(_0x2f5ff0['showSuggestionHighlights'])return _0x229bb5['createEmptyElement']('div');},'converterPriority':'high'}),_0x14481a['data']['downcastDispatcher']['on']('attribute:url:media',(_0x2fab31,_0x41f4c6,_0x39d1a6)=>{_0x39d1a6['options']['showSuggestionHighlights']&&_0x2fab31['stop']();},{'priority':'high'});}}class mt extends _0x82b22a{['afterInit'](){const _0x3d38b0=this['editor'];_0x3d38b0['plugins']['has']('MentionEditing')&&_0x3d38b0['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x82b22a{['afterInit'](){const _0x4eb8cd=this['editor'];if(!_0x4eb8cd['plugins']['has']('MergeFieldsEditing'))return;_0x4eb8cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField'),_0x4eb8cd['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeFieldBlock');const _0x5310ed=_0x4eb8cd['plugins']['get']('TrackChangesEditing'),_0x39dbc4=_0x4eb8cd['locale'];_0x5310ed['descriptionFactory']['registerElementLabel']('mergeField',_0x83dcc5=>o(_0x39dbc4,'ELEMENT_MERGE_FIELD',_0x83dcc5)),_0x5310ed['descriptionFactory']['registerElementLabel']('mergeFieldBlock',_0x2ea8b0=>o(_0x39dbc4,'ELEMENT_MERGE_FIELD',_0x2ea8b0)),_0x5310ed['descriptionFactory']['registerDescriptionCallback'](_0x6b4f4e=>{if('insertion'!=_0x6b4f4e['type']&&'deletion'!=_0x6b4f4e['type'])return;const _0x2fd164=_0x6b4f4e['getContainedElement']();if(null==_0x2fd164)return;if(!_0x2fd164['is']('element','mergeField')&&!_0x2fd164['is']('element','mergeFieldBlock'))return;const _0x1ee71f=_0x4eb8cd['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x2fd164['getAttribute']('id'));return'insertion'==_0x6b4f4e['type']?{'type':'insertion','content':o(_0x39dbc4,'*Insert:*\x20%0','\x22'+_0x1ee71f+'\x22\x20'+o(_0x39dbc4,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x39dbc4,'*Remove:*\x20%0','\x22'+_0x1ee71f+'\x22\x20'+o(_0x39dbc4,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x82b22a{['afterInit'](){const _0x4a15e6=this['editor'],_0x3be381=_0x4a15e6['plugins']['get']('TrackChangesEditing');_0x4a15e6['plugins']['has']('MultiLevelList')&&(_0x3be381['enableDefaultAttributesIntegration']('multiLevelList'),_0x3be381['registerBlockAttribute']('listMarkerStyle'),_0x3be381['descriptionFactory']['registerDescriptionCallback'](_0x2092d1=>this['handleDescriptions'](_0x2092d1)));}['handleDescriptions'](_0x4559da){const _0x1cb6f9=this['editor']['locale'],{data:_0x5993d1}=_0x4559da,_0x342de3={'type':'format','content':''};if(_0x5993d1&&'listMarkerStyle'==_0x5993d1['key']){if(!_0x5993d1['oldValue'])return{'type':'format','content':o(_0x1cb6f9,'*Set\x20format:*\x20%0',o(_0x1cb6f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5993d1['newValue']+')'};if(!_0x5993d1['newValue']){let _0x2ee2ea=_0x4559da['head'];for(;_0x2ee2ea;){if(_0x2ee2ea['data']&&'listType'==_0x2ee2ea['data']['key']&&_0x2ee2ea['data']['newValue'])return _0x342de3;_0x2ee2ea=_0x2ee2ea['next'];}return{'type':'format','content':o(_0x1cb6f9,'*Remove\x20format:*\x20%0',o(_0x1cb6f9,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5993d1['oldValue']+')'};}}}}class kt extends _0x82b22a{['afterInit'](){const _0x2d71fa=this['editor'];if(!_0x2d71fa['plugins']['has']('PageBreakEditing'))return;_0x2d71fa['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3a932b=_0x2d71fa['plugins']['get']('TrackChangesEditing'),_0x44ecad=_0x2d71fa['locale'];_0x3a932b['descriptionFactory']['registerElementLabel']('pageBreak',_0x5d4c40=>o(_0x44ecad,'ELEMENT_PAGE_BREAK',_0x5d4c40));}}class bt extends _0x82b22a{['afterInit'](){const _0x4d39d5=this['editor'];if(!_0x4d39d5['plugins']['has']('Paragraph'))return;const _0x4115e1=_0x4d39d5['locale'],_0x5f27e1=_0x4d39d5['plugins']['get']('TrackChangesEditing');_0x5f27e1['descriptionFactory']['registerElementLabel']('paragraph',_0x443c84=>o(_0x4115e1,'ELEMENT_PARAGRAPH',_0x443c84)),_0x5f27e1['enableDefaultAttributesIntegration']('paragraph'),_0x5f27e1['enableCommand']('insertParagraph'),_0x4d39d5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d39d5),{'priority':'highest'}),_0x4d39d5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2197d6,_0x380630,_0x3cd303)=>{_0x3cd303['options']['showSuggestionHighlights']&&nr(_0x4d39d5,{'showActiveMarker':!0x1})(_0x2197d6,_0x380630,_0x3cd303);},{'priority':'highest'});const _0x12c0bc=_0x5f27e1['descriptionFactory'];_0x12c0bc['registerDescriptionCallback'](_0x182b07=>{if('insertion'!==_0x182b07['type'])return;const {start:_0x191015,end:_0x1f6c47}=_0x182b07['getFirstRange']();if(!_0x191015['isTouching'](_0x1f6c47)||!_0x191015['nodeAfter'])return;const _0x50262d=_0x4d39d5['model']['schema'],_0x21abb1=_0x191015['nodeAfter'];return _0x50262d['isBlock'](_0x21abb1)&&!_0x50262d['isLimit'](_0x21abb1)&&_0x50262d['checkChild'](_0x21abb1,'$text')?{'type':'insertion','content':o(_0x4115e1,'*Insert:*\x20%0',_0x12c0bc['getItemLabel'](_0x21abb1,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11777a=this['editor'],_0x14895d=_0x11777a['locale'];_0x11777a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52bc0c=>{if('formatBlock'!=_0x52bc0c['type'])return;const {data:_0x55b63f}=_0x52bc0c;return _0x55b63f&&'paragraph'==_0x55b63f['commandName']?{'type':'format','content':o(_0x14895d,'*Change\x20to:*\x20%0',o(_0x14895d,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x1f7b25,{showActiveMarker:_0x547cd3=!0x0}={}){return(_0x32eb14,_0x5b566f,_0x5ac560)=>{const _0x1d4fe7=_0x1f7b25['plugins']['get']('TrackChangesEditing'),_0x3515e6=_0x5b566f['markerRange']['start'],_0x493750=_0x5b566f['markerRange']['end'],_0x39f31f=_0x1f7b25['model']['schema'];if(!_0x3515e6['isTouching'](_0x493750)||!_0x3515e6['nodeAfter'])return;const _0xf0b708=_0x3515e6['nodeAfter'];if(_0x39f31f['isBlock'](_0xf0b708)&&!_0x39f31f['isLimit'](_0xf0b708)&&_0x39f31f['checkChild'](_0xf0b708,'$text')){if(!_0x5ac560['consumable']['consume'](_0x5b566f['markerRange'],_0x32eb14['name']))return;const {authorId:_0x4de186}=_0x1d4fe7['_splitMarkerName'](_0x5b566f['markerName']),_0x14a775=_0x5ac560['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split','data-author-id':_0x4de186}),_0x65d9ed=_0x5ac560['mapper']['toViewPosition'](_0x493750);_0x547cd3&&_0x1d4fe7['activeMarkers']['includes'](_0x5b566f['markerName'])&&_0x5ac560['writer']['addClass']('ck-suggestion-marker--active',_0x14a775),_0x5ac560['writer']['insert'](_0x65d9ed,_0x14a775),_0x5ac560['mapper']['bindElementToMarker'](_0x14a775,_0x5b566f['markerName']);}};}class wt extends _0x82b22a{['afterInit'](){const _0x421e6d=this['editor'];if(!_0x421e6d['plugins']['has']('RemoveFormatEditing'))return;_0x421e6d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4b6c2e=this['editor'];_0x4b6c2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x43f87c=>{if('formatBlock'!=_0x43f87c['type']&&'formatInline'!=_0x43f87c['type'])return;const {data:_0x36c11e}=_0x43f87c;return _0x36c11e&&'removeFormat'==_0x36c11e['commandName']?{'type':'format','content':o(_0x4b6c2e['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x82b22a{['afterInit'](){const _0x521c49=this['editor'];if(!_0x521c49['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x53c13c=_0x521c49['plugins']['get']('TrackChangesEditing');_0x53c13c['enableCommand']('goToPreviousRestrictedEditingException'),_0x53c13c['enableCommand']('goToNextRestrictedEditingException');const _0x202699=_0x521c49['plugins']['get']('RestrictedEditingModeEditing');_0x202699['enableCommand']('trackChanges'),_0x202699['enableCommand']('acceptSuggestion'),_0x202699['enableCommand']('discardSuggestion'),_0x202699['enableCommand']('acceptAllSuggestions'),_0x202699['enableCommand']('discardAllSuggestions'),_0x202699['enableCommand']('acceptSelectedSuggestions'),_0x202699['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x82b22a{static get['requires'](){return[_0x464641];}['init'](){const _0x5395b5=this['editor'],_0x1e5f66=_0x5395b5['plugins']['get']('TrackChangesEditing');_0x1e5f66['enableCommand']('shiftEnter'),_0x5395b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x5395b5),{'priority':'high'}),_0x5395b5['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x5395b5),{'priority':'high'}),_0x5395b5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1ea4ed,_0x54db53,_0x39df7f)=>{_0x39df7f['options']['showSuggestionHighlights']&&ge(_0x5395b5,{'showActiveMarker':!0x1})(_0x1ea4ed,_0x54db53,_0x39df7f);}),_0x1e5f66['descriptionFactory']['registerElementLabel']('softBreak',_0x19e0cf=>o(_0x5395b5['locale'],'ELEMENT_LINE_BREAK',_0x19e0cf));}}function ge(_0x41a713,{showActiveMarker:_0x3a2078=!0x0}={}){return(_0x543062,_0x9fa4d2,_0x253c19)=>{const _0x553762=_0x41a713['plugins']['get']('TrackChangesEditing');if(!_0x253c19['consumable']['test'](_0x9fa4d2['markerRange'],_0x543062['name']))return;const _0x1ecb5a=_0x41a713['model'];for(const _0x33acbc of _0x9fa4d2['markerRange']['getItems']()){if(!_0x33acbc['is']('element','softBreak'))continue;const _0x5b7369='deletion'==_0x9fa4d2['markerName']['split'](':')[0x1]?'merge':'split',{authorId:_0x2c5730}=_0x553762['_splitMarkerName'](_0x9fa4d2['markerName']),_0x2d46ba=_0x253c19['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b7369,'data-author-id':_0x2c5730}),_0x159d6c=_0x253c19['mapper']['toViewPosition'](_0x1ecb5a['createPositionBefore'](_0x33acbc));_0x3a2078&&_0x553762['activeMarkers']['includes'](_0x9fa4d2['markerName'])&&_0x253c19['writer']['addClass']('ck-suggestion-marker--active',_0x2d46ba),_0x253c19['writer']['insert'](_0x159d6c,_0x2d46ba),_0x253c19['mapper']['bindElementToMarker'](_0x2d46ba,_0x9fa4d2['markerName']);}};}class St extends _0x82b22a{['afterInit'](){const _0x5e2528=this['editor'],_0x2a4e00=_0x5e2528['model'],_0x12a946=_0x5e2528['locale'];if(!_0x5e2528['plugins']['has']('StandardEditingModeEditing'))return;const _0x290c2f=_0x5e2528['plugins']['get']('TrackChangesEditing'),_0x24c04c='restrictedEditingException',_0x3b3c76=_0x5e2528['commands']['get'](_0x24c04c);_0x290c2f['enableCommand'](_0x24c04c,(_0x91e17c,_0x5a40aa={})=>{const _0x40ee77=_0x2a4e00['document']['selection'];if(_0x40ee77['isCollapsed'])return void _0x91e17c(_0x5a40aa);const _0xc46bcd=void 0x0!==_0x5a40aa['forceValue']?_0x5a40aa['forceValue']:!_0x3b3c76['value'];_0x2a4e00['change'](()=>{const _0x2cf8a5=Array['from'](_0x40ee77['getRanges']());for(const _0x2fe9ed of _0x2cf8a5){const _0x55ef44=_0xc46bcd?[_0x2fe9ed]:io(_0x24c04c,_0x2fe9ed,_0x2a4e00);for(const _0xa37403 of _0x55ef44)_0x290c2f['markInlineFormat'](_0xa37403,{'commandName':_0x24c04c,'commandParams':[{'forceValue':_0xc46bcd}]});}});}),_0x290c2f['descriptionFactory']['registerDescriptionCallback'](_0x3b6c84=>{if('formatBlock'!=_0x3b6c84['type']&&'formatInline'!=_0x3b6c84['type'])return;const {data:_0x1c72af}=_0x3b6c84;return _0x1c72af&&_0x1c72af['commandName']==_0x24c04c?_0x1c72af['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x12a946,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x12a946,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x82b22a{['afterInit'](){const _0x15d95c=this['editor'];if(!_0x15d95c['plugins']['has']('Style')||!_0x15d95c['plugins']['has']('DataSchema'))return;const _0x2c52b0=_0x15d95c['plugins']['get']('TrackChangesEditing'),_0x1ee89c=_0x15d95c['locale'],_0x43e947=_0x15d95c['config']['get']('style')||{},_0x2cfb4f=_0x15d95c['plugins']['get']('GeneralHtmlSupport'),_0x134507=_0x15d95c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x15d95c['plugins']['get']('DataSchema'),_0x43e947['definitions']);_0x2c52b0['enableDefaultAttributesIntegration']('style');const _0x49431a=new Set();for(const _0x393937 of _0x134507['block']){const _0x26bc61=_0x2cfb4f['getGhsAttributeNameForElement'](_0x393937['element']);_0x49431a['add'](_0x26bc61);}const _0x163690=new Set();for(const _0x3f1ad3 of _0x134507['inline']){const _0x18d806=_0x2cfb4f['getGhsAttributeNameForElement'](_0x3f1ad3['element']);_0x163690['add'](_0x18d806);for(const _0x2b2886 of _0x3f1ad3['ghsAttributes'])_0x163690['add'](_0x2b2886);}for(const _0x2d5139 of _0x49431a)_0x2c52b0['registerBlockAttribute'](_0x2d5139),_0x2c52b0['descriptionFactory']['registerAttributeLabel'](_0x2d5139,o(_0x1ee89c,'FORMAT_STYLE'));for(const _0x5bccde of _0x163690)_0x2c52b0['registerInlineAttribute'](_0x5bccde),_0x2c52b0['descriptionFactory']['registerAttributeLabel'](_0x5bccde,o(_0x1ee89c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x225023=this['editor'],_0x1b7fcc=_0x225023['locale'];_0x225023['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x20eafa=>{if('formatBlock'!=_0x20eafa['type']&&'formatInline'!=_0x20eafa['type'])return;const {data:_0x24aa12}=_0x20eafa;return _0x24aa12&&'style'===_0x24aa12['commandName']?_0x24aa12['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1b7fcc,'*Set\x20format:*\x20%0',_0x24aa12['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x1b7fcc,'*Remove\x20format:*\x20%0',_0x24aa12['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x82b22a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x2be093){super(_0x2be093),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1d496f=this['editor'],_0x44080b=_0x1d496f['model']['document']['selection'];if(!_0x1d496f['plugins']['has']('TableEditing'))return;const _0x53d7fa=_0x1d496f['locale'],_0xaad34a=_0x1d496f['plugins']['get']('TrackChangesEditing'),_0x3dcd53=_0x1d496f['plugins']['get']('TableUtils');_0xaad34a['descriptionFactory']['registerElementLabel']('table',_0x264628=>o(_0x53d7fa,'ELEMENT_TABLE',_0x264628)),this['_setupColumnsRowsFixing'](),_0xaad34a['enableCommand']('insertTable'),_0xaad34a['enableCommand']('selectTableRow'),_0xaad34a['enableCommand']('selectTableColumn');for(const _0x27d61e of['insertTableRowAbove','insertTableRowBelow']){const _0x160319=_0x1d496f['commands']['get'](_0x27d61e);_0xaad34a['enableCommand'](_0x27d61e,_0x39319f=>{_0x1d496f['model']['change'](_0x25ae8a=>{_0x39319f();const _0x23bffe='above'===_0x160319['order'],_0x52e3cf=_0x3dcd53['getSelectionAffectedTableCells'](_0x44080b),_0x4a1535=_0x3dcd53['getRowIndexes'](_0x52e3cf),_0x1fcf96=_0x23bffe?_0x4a1535['first']-0x1:_0x4a1535['last']+0x1,_0x43d939=_0x52e3cf[0x0]['findAncestor']('table'),_0x237f94=_0x3dcd53['createTableWalker'](_0x43d939,{'startRow':_0x1fcf96,'endRow':_0x1fcf96}),_0x5639cc=Array['from'](_0x237f94)['map'](_0x53a243=>_0x25ae8a['createRangeOn'](_0x53a243['cell']));_0xaad34a['markMultiRangeInsertion'](_0x5639cc,'tableRow');});});}for(const _0x1b7016 of['insertTableColumnLeft','insertTableColumnRight']){const _0x4eebc6=_0x1d496f['commands']['get'](_0x1b7016);_0xaad34a['enableCommand'](_0x1b7016,_0x5022e8=>{_0x1d496f['model']['change'](_0x5b9f19=>{_0x5022e8();const _0x234970='left'===_0x4eebc6['order'],_0x504b3b=_0x3dcd53['getSelectionAffectedTableCells'](_0x44080b),_0x480989=_0x3dcd53['getColumnIndexes'](_0x504b3b),_0x2f02ef=_0x234970?_0x480989['first']-0x1:_0x480989['last']+0x1,_0x4867fd=_0x504b3b[0x0]['findAncestor']('table'),_0x2ccc2a=_0x3dcd53['createTableWalker'](_0x4867fd,{'startRow':0x0,'column':_0x2f02ef,'includeAllSlots':!0x1}),_0x321f5d=Array['from'](_0x2ccc2a)['map'](_0x24c60a=>_0x5b9f19['createRangeOn'](_0x24c60a['cell']));_0xaad34a['markMultiRangeInsertion'](_0x321f5d,'tableColumn');});});}for(const _0x133916 of['removeTableRow','removeTableColumn']){const _0x48d80f=_0x133916['substr'](0xb),_0x9146b9=_0x48d80f['toLowerCase'](),_0x5db043=_0x9146b9['substr'](0x0,0x3)+'span',_0x4f8054='table'+_0x48d80f,_0x4c8473='min'+_0x48d80f,_0x533593='max'+_0x48d80f;_0xaad34a['enableCommand'](_0x133916,()=>{_0x1d496f['model']['change'](_0x3d3c00=>{const _0x916247=_0x3dcd53['getSelectionAffectedTableCells'](_0x44080b),_0xe01ec3=_0x916247[0x0]['findAncestor']('table');let _0x165583;if('removeTableRow'==_0x133916){const _0x55f06b=_0x3dcd53['getRowIndexes'](_0x916247);_0x165583={'startRow':_0x55f06b['first'],'endRow':_0x55f06b['last'],'includeAllSlots':!0x0};}else{const _0x133212=_0x3dcd53['getColumnIndexes'](_0x916247);_0x165583={'startColumn':_0x133212['first'],'endColumn':_0x133212['last'],'includeAllSlots':!0x0};}const _0x50c880=_0x3dcd53['createTableWalker'](_0xe01ec3,_0x165583),_0x72e117=Array['from'](_0x50c880)['map'](({cell:_0x2b91ee})=>_0x2b91ee),_0x46d744=be(_0x72e117['filter'](_0x55e7c4=>_0x55e7c4['hasAttribute'](_0x5db043))),_0x5143ec=be(_0x72e117['filter'](_0x582f12=>!_0x582f12['hasAttribute'](_0x5db043)))['map'](_0x333695=>_0x3d3c00['createRangeOn'](_0x333695)),_0x5cecc0=_0xaad34a['markMultiRangeDeletion'](_0x5143ec,_0x4f8054);if(_0x5cecc0&&('tableRow'==_0x5cecc0['subType']||'tableColumn'==_0x5cecc0['subType'])){const _0x24c7f8=this['_getSuggestionCoords'](_0x5cecc0);for(const _0x3cb89a of _0x46d744){const _0x7690fc=_0x3d3c00['createRangeOn'](_0x3cb89a),_0x14725a=_0x3dcd53['getCellLocation'](_0x3cb89a),_0x12445a=_0x3cb89a['getAttribute'](_0x5db043)-0x1,_0x2b385f=_0x24c7f8[_0x4c8473],_0x5b9a93=_0x24c7f8[_0x533593];_0x2b385f<=_0x14725a[_0x9146b9]&&_0x14725a[_0x9146b9]+_0x12445a<=_0x5b9a93&&_0x5cecc0['addRange'](_0x7690fc);}}});});}function _0x4cea44(_0x435a46){const _0x579833=Array['from'](_0x44080b['getRanges']())['map'](_0x1af720=>_0xb1b223['fromRange'](_0x1af720));_0x1d496f['model']['change'](_0x41bb86=>{const _0x3b49e6=_0x41bb86['batch'];_0x435a46=_0x435a46['filter'](_0x4a25ab=>'$graveyard'!=_0x4a25ab['root']['rootName']),_0x41bb86['setSelection'](_0x435a46),_0x1d496f['commands']['get']('removeTableRow')['refresh'](),_0x1d496f['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1d496f['model']['enqueueChange'](()=>{_0x1d496f['model']['enqueueChange'](_0x3b49e6,_0x2aaf6e=>{const _0x533d92=_0x579833['filter'](_0x262166=>'$graveyard'!=_0x262166['root']['rootName']);_0x533d92['length']>0x0&&_0x2aaf6e['setSelection'](_0x533d92);for(const _0x31694b of _0x579833)_0x31694b['detach']();});});});}function _0x13bd5c(_0x55c893){_0x1d496f['model']['change'](_0x12553c=>{const _0x14d881=Array['from'](_0x44080b['getRanges']())['map'](_0x550761=>_0xb1b223['fromRange'](_0x550761)),_0x21b69e=[];for(const _0x1c7331 of _0x55c893)for(const _0x29cb73 of _0x1c7331['getItems']({'shallow':!0x0}))_0x21b69e['push'](_0x29cb73);for(const _0x1b47e3 of _0x21b69e)'$graveyard'!=_0x1b47e3['root']['rootName']&&(_0x12553c['setSelection'](_0x12553c['createPositionAt'](_0x1b47e3,0x0)),_0x1d496f['commands']['get']('removeTableColumn')['refresh'](),_0x1d496f['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f74ea=_0x14d881['filter'](_0x527380=>'$graveyard'!=_0x527380['root']['rootName']);_0x2f74ea['length']>0x0&&_0x12553c['setSelection'](_0x2f74ea);for(const _0x30a8b3 of _0x14d881)_0x30a8b3['detach']();});}function _0x5419b7(_0x10924c,_0x3d171b){return _0x3d171b['every'](_0xa34db5=>_0x10924c['some'](_0x61c228=>_0x61c228['end']['isEqual'](_0xa34db5['start'])||_0xa34db5['end']['isEqual'](_0x61c228['start'])));}function _0x8cb826(_0x7becb,_0x3632ac){return!_0x7becb['some'](_0x223961=>_0x3632ac['some'](_0x1a209c=>_0x223961['isIntersecting'](_0x1a209c)))&&_0x7becb['some'](_0x444f04=>_0x3632ac['some'](_0x5ae149=>_0x444f04['end']['isTouching'](_0x5ae149['start'])));}_0x1d496f['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd9c091,_0x2d7960,_0x156514)=>{if(!_0x156514['options']['showSuggestionHighlights'])return;const _0x457bb7=_0x2d7960['item'];if(!_0x457bb7)return;const _0x4e40ed=_0x156514['mapper']['toViewElement'](_0x457bb7);function _0x345b0e(_0x1956a9){return Array['isArray'](_0x1956a9)?_0x1956a9:[_0x1956a9];}_0x4e40ed&&'tableCell'===_0x457bb7['name']&&_0x1b99eb(_0x4e40ed,_0x156514['writer'],(_0x41b108,_0x169c93,_0x499425)=>_0x499425['addClass'](_0x345b0e(_0x169c93['classes']),_0x41b108),(_0x37dc39,_0x2cc82e,_0x23b666)=>_0x23b666['removeClass'](_0x345b0e(_0x2cc82e['classes']),_0x37dc39));},{'priority':'highest'}),_0xaad34a['descriptionFactory']['registerDescriptionCallback'](_0x2bf9ff=>{if('insertion'!=_0x2bf9ff['type']&&'deletion'!=_0x2bf9ff['type'])return;const _0x26cf8a=_0x2bf9ff['getContainedElement']();if(null!=_0x26cf8a&&_0x26cf8a['is']('element','table')){if('insertion'==_0x2bf9ff['type']){const _0x2cec51=_0x2bf9ff['getItems']()['filter'](_0x2457aa=>_0x2457aa['is']('$textProxy'))['map'](_0x287279=>_0x287279['data']);if(_0x2cec51['length'])return{'type':'insertion','content':o(_0x53d7fa,'*Insert:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2cec51['join']('\x20')+'\x22'))};}if('deletion'==_0x2bf9ff['type']){const _0x4d2892=_0x2bf9ff['getItems']()['filter'](_0x3cf3dd=>_0x3cf3dd['is']('$textProxy'))['map'](_0x28c351=>_0x28c351['data']);if(_0x4d2892['length'])return{'type':'deletion','content':o(_0x53d7fa,'*Remove:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4d2892['join']('\x20')+'\x22'))};}}}),_0xaad34a['descriptionFactory']['registerDescriptionCallback'](_0x3d6d11=>{if('tableRow'==_0x3d6d11['subType']){const _0x1636dd=_0x3d6d11['getItems']()['filter'](_0x5bc73b=>_0x5bc73b['is']('$textProxy'))['map'](_0x21f8ac=>_0x21f8ac['data']),_0x44ee0c=this['_getSuggestionCoords'](_0x3d6d11),_0x5bb648=_0x44ee0c['maxRow']-_0x44ee0c['minRow']+0x1;if('insertion'==_0x3d6d11['type'])return _0x1636dd['length']?{'type':'insertion','content':o(_0x53d7fa,'*Insert:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bb648,'\x22'+_0x1636dd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53d7fa,'*Insert:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_ROW',_0x5bb648))};if('deletion'==_0x3d6d11['type'])return _0x1636dd['length']?{'type':'deletion','content':o(_0x53d7fa,'*Remove:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x5bb648,'\x22'+_0x1636dd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53d7fa,'*Remove:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_ROW',_0x5bb648))};}if('tableColumn'==_0x3d6d11['subType']){const _0x56d2fd=_0x3d6d11['getItems']()['filter'](_0x337055=>_0x337055['is']('$textProxy'))['map'](_0xcf4ccd=>_0xcf4ccd['data']),_0x4dd3ac=this['_getSuggestionCoords'](_0x3d6d11),_0x3b8d76=_0x4dd3ac['maxColumn']-_0x4dd3ac['minColumn']+0x1;if('insertion'==_0x3d6d11['type'])return _0x56d2fd['length']?{'type':'insertion','content':o(_0x53d7fa,'*Insert:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b8d76,'\x22'+_0x56d2fd['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x53d7fa,'*Insert:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_COLUMN',_0x3b8d76))};if('deletion'==_0x3d6d11['type'])return _0x56d2fd['length']?{'type':'deletion','content':o(_0x53d7fa,'*Remove:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x3b8d76,'\x22'+_0x56d2fd['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x53d7fa,'*Remove:*\x20%0',o(_0x53d7fa,'ELEMENT_TABLE_COLUMN',_0x3b8d76))};}}),_0xaad34a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4cea44),_0xaad34a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4cea44),_0xaad34a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x13bd5c),_0xaad34a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x13bd5c),_0xaad34a['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x5419b7),_0xaad34a['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x5419b7),_0xaad34a['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x8cb826),_0xaad34a['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x8cb826);}['_acceptFormatSuggestionCallbackFactory'](){const _0x308766=this['editor'],_0x4d2066=_0x308766['model']['document']['selection'];return(_0x509992,_0x1b34ba)=>{_0x308766['model']['change'](_0x23068d=>{const {commandName:_0x198ac3,commandParams:_0x187874}=_0x1b34ba;let _0x29dbda=_0x509992[0x0]['end']['nodeBefore'];_0x187874&&_0x187874[0x0]&&!0x1===_0x187874[0x0]['forceValue']&&(_0x29dbda=_0x509992[0x0]['start']['nodeAfter']);const _0x1f737c=_0x23068d['createRangeIn'](_0x29dbda);if('$graveyard'==_0x1f737c['root']['rootName'])return;const _0x24ca69=Array['from'](_0x4d2066['getRanges']())['map'](_0x442d34=>_0xb1b223['fromRange'](_0x442d34));_0x23068d['setSelection'](_0x1f737c),_0x308766['commands']['get'](_0x198ac3)['refresh'](),_0x187874['push']({'forceDefaultExecution':!0x0}),_0x308766['execute'](_0x198ac3,..._0x187874);const _0x38ab5b=_0x24ca69['filter'](_0x1f8e8a=>'$graveyard'!=_0x1f8e8a['root']['rootName']);_0x38ab5b['length']>0x0&&_0x23068d['setSelection'](_0x38ab5b);for(const _0x1ff841 of _0x24ca69)_0x1ff841['detach']();});};}['_getCoordsForCells'](_0x5dd42a){const _0x5b9f02=this['editor']['plugins']['get']('TableUtils');let _0x165291=Number['MAX_SAFE_INTEGER'],_0x172156=Number['MIN_SAFE_INTEGER'],_0x36957a=Number['MAX_SAFE_INTEGER'],_0x32791b=Number['MIN_SAFE_INTEGER'];for(const _0x2d6bdb of _0x5dd42a){if('$graveyard'==_0x2d6bdb['root']['rootName'])continue;const {row:_0x6a8e23,column:_0x14de7b}=_0x5b9f02['getCellLocation'](_0x2d6bdb),_0x473fda=_0x2d6bdb['hasAttribute']('rowspan')?_0x2d6bdb['getAttribute']('rowspan')-0x1:0x0,_0x5592fc=_0x2d6bdb['hasAttribute']('colspan')?_0x2d6bdb['getAttribute']('colspan')-0x1:0x0;_0x165291=_0x6a8e23<_0x165291?_0x6a8e23:_0x165291,_0x172156=_0x6a8e23+_0x473fda>_0x172156?_0x6a8e23+_0x473fda:_0x172156,_0x36957a=_0x14de7b<_0x36957a?_0x14de7b:_0x36957a,_0x32791b=_0x14de7b+_0x5592fc>_0x32791b?_0x14de7b+_0x5592fc:_0x32791b;}return{'minRow':_0x165291,'maxRow':_0x172156,'minColumn':_0x36957a,'maxColumn':_0x32791b};}['_setupColumnsRowsFixing'](){const _0x1a2745=this['editor'],_0x2a6629=_0x1a2745['plugins']['get']('TrackChangesEditing'),_0x1a17f9=_0x1a2745['plugins']['get']('TableUtils');_0x1a2745['model']['document']['on']('change:data',()=>{const _0x4f76aa=Array['from'](_0x1a2745['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x87a531,data:_0x106695}of _0x4f76aa){const {group:_0x1fac20,id:_0x1c5fec,subType:_0x44d326}=_0x2a6629['_splitMarkerName'](_0x87a531);if('suggestion'!=_0x1fac20)continue;if(null!=_0x106695['oldRange'])continue;const _0x290e51=_0x2a6629['getSuggestion'](_0x1c5fec);this['_tablePostFixingSubtypes']['includes'](_0x44d326)&&this['_tableSuggestions']['add'](_0x290e51);}},{'priority':'low'});const _0x1f8ebe=(_0x14f666,_0x2e5481)=>{let _0x89f460=!0x1;const _0x5e8c35=_0x2e5481['createRangeOn'](_0x14f666),_0x2e5404=_0x14f666['findAncestor']('table'),_0x21db9b=_0x1a17f9['getCellLocation'](_0x14f666);for(const _0x5e0b60 of this['_tableSuggestions']){const _0x5b9ae0=_0x5e0b60['subType'],_0x4ef04a=_0x5b9ae0['startsWith']('tablePaste'),_0x7bb811=_0x5b9ae0['substr'](_0x4ef04a?0xa:0x5),_0x39460f=_0x7bb811['toLowerCase'](),_0x53e77c=_0x39460f['substr'](0x0,0x3)+'span',_0x5b9e25='min'+_0x7bb811,_0x288a09='max'+_0x7bb811;if(!_0x5e0b60['isInContent'])continue;if(_0x2e5404!=_0x5e0b60['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5e0b60['isIntersectingWithRange'](_0x5e8c35))continue;const _0x3f6bc7=_0x14f666['hasAttribute'](_0x53e77c)?_0x14f666['getAttribute'](_0x53e77c)-0x1:0x0,_0x37edf7=this['_getSuggestionCoords'](_0x5e0b60),_0x5658e7=_0x37edf7[_0x5b9e25],_0x4004ee=_0x37edf7[_0x288a09];_0x5658e7<=_0x21db9b[_0x39460f]&&_0x21db9b[_0x39460f]+_0x3f6bc7<=_0x4004ee&&(_0x5e0b60['addRange'](_0x5e8c35),_0x89f460=!0x0);}return _0x89f460;};_0x1a2745['model']['document']['registerPostFixer'](_0x3a9585=>{let _0x431f28=!0x1;for(const _0x55a846 of _0x1a2745['model']['document']['differ']['getChanges']())if('insert'==_0x55a846['type']){if('tableRow'==_0x55a846['name']){for(const _0x26e24f of _0x55a846['position']['nodeAfter']['getChildren']())_0x431f28=_0x431f28||_0x1f8ebe(_0x26e24f,_0x3a9585);}else'tableCell'==_0x55a846['name']&&(_0x431f28=_0x431f28||_0x1f8ebe(_0x55a846['position']['nodeAfter'],_0x3a9585));}return _0x431f28;});}['_getSuggestionCoords'](_0x60c702){return this['_getCoordsForCells'](_0x60c702['getRanges']()['map'](_0x5c8c68=>_0x5c8c68['start']['nodeAfter']));}}function be(_0x43c731){return Array['from'](new Set(_0x43c731)['values']());}class vt extends _0x82b22a{static get['requires'](){return[It];}['afterInit'](){const _0x17bdcf=this['editor'],_0xab87df=_0x17bdcf['model']['document']['selection'],_0x44c73c=_0x17bdcf['locale'];if(!_0x17bdcf['plugins']['has']('TableEditing'))return;const _0x506d13=_0x17bdcf['plugins']['get']('TrackChangesEditing'),_0x41b93d=_0x17bdcf['plugins']['get']('TableUtils'),_0x335b18=_0x17bdcf['plugins']['get'](It);_0x335b18['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x506d13['enableCommand']('mergeTableCells',()=>{const _0x3fa795=_0x41b93d['getSelectionAffectedTableCells'](_0x17bdcf['model']['document']['selection']);_0x17bdcf['model']['change'](()=>{_0x506d13['markMultiRangeBlockFormat'](_0x3fa795,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x17bdcf['commands']['get']('mergeTableCells')['on']('execute',(_0x177fad,_0x46fdaa)=>{_0x17bdcf['commands']['get']('trackChanges')['value']&&(_0x46fdaa['length']>0x0&&_0x46fdaa[_0x46fdaa['length']-0x1]&&_0x46fdaa[_0x46fdaa['length']-0x1]['forceDefaultExecution']||_0x506d13['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x177fad['stop']());},{'priority':'highest'});for(const _0x383e51 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x44d88f=_0x17bdcf['commands']['get'](_0x383e51);_0x506d13['enableCommand'](_0x383e51,()=>{const _0x3bd695=_0x17bdcf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5c985d=>_0x5c985d['is']('element','tableCell')),_0x14d7ca=_0x44d88f['value'];_0x17bdcf['model']['change'](()=>{_0x506d13['markMultiRangeBlockFormat']([_0x3bd695,_0x14d7ca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x362b1b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x4dbd05=_0x17bdcf['commands']['get'](_0x362b1b);_0x506d13['enableCommand'](_0x362b1b,()=>{const _0x22bfd6=_0x41b93d['getSelectionAffectedTableCells'](_0x17bdcf['model']['document']['selection'])[0x0],_0x392bc7=_0x22bfd6['findAncestor']('table'),{column:_0x3ce7aa,row:_0x55ddc1}=_0x41b93d['getCellLocation'](_0x22bfd6);let _0x43cc0b=[];if('horizontally'==_0x4dbd05['direction']){const _0x221659=_0x41b93d['createTableWalker'](_0x392bc7,{'startRow':_0x55ddc1,'endRow':_0x55ddc1,'includeAllSlots':!0x0});_0x43cc0b=Array['from'](_0x221659)['map'](_0x1a8599=>_0x1a8599['cell']);}else{const _0x156a72=_0x41b93d['createTableWalker'](_0x392bc7,{'column':_0x3ce7aa,'includeAllSlots':!0x0});_0x43cc0b=Array['from'](_0x156a72)['map'](_0x560089=>_0x560089['cell']);}_0x17bdcf['model']['change'](_0x319456=>{_0x506d13['markBlockFormat'](_0x319456['createRangeOn'](_0x22bfd6),{'commandName':_0x362b1b,'commandParams':[]},_0x43cc0b,_0x362b1b);});});}_0x506d13['descriptionFactory']['registerDescriptionCallback'](_0x56a800=>{if('formatBlock'!=_0x56a800['type']&&'formatInline'!=_0x56a800['type'])return;const {data:_0x539bf2}=_0x56a800;return _0x539bf2&&'mergeTableCells'==_0x539bf2['commandName']?{'type':'format','content':o(_0x44c73c,'*Merge\x20cells*')}:void 0x0;}),_0x506d13['descriptionFactory']['registerDescriptionCallback'](_0x5ebf79=>{if('formatBlock'!=_0x5ebf79['type']&&'formatInline'!=_0x5ebf79['type'])return;const {data:_0x1aede8}=_0x5ebf79;return _0x1aede8?'splitTableCellVertically'==_0x1aede8['commandName']?{'type':'format','content':o(_0x44c73c,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x1aede8['commandName']?{'type':'format','content':o(_0x44c73c,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1ecf5a=_0x335b18['_acceptFormatSuggestionCallbackFactory']();for(const _0x142d79 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x506d13['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x142d79,'accept',_0x1ecf5a);for(const _0x1ff4a1 of['splitTableCellVertically','splitTableCellHorizontally'])_0x506d13['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ff4a1,'accept',_0x1ecf5a);_0x506d13['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3feb1e=>{_0x17bdcf['model']['change'](_0xfb8c69=>{const _0x530bb6=Array['from'](_0xab87df['getRanges']())['map'](_0x43d1e2=>_0xb1b223['fromRange'](_0x43d1e2));_0xfb8c69['setSelection'](_0x3feb1e),_0x17bdcf['commands']['get']('mergeTableCells')['refresh'](),_0x17bdcf['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x3b9d15=_0x530bb6['filter'](_0x3766cb=>'$graveyard'!=_0x3766cb['root']['rootName']);_0x3b9d15['length']>0x0&&_0xfb8c69['setSelection'](_0x3b9d15);for(const _0x522e14 of _0x530bb6)_0x522e14['detach']();});});for(const _0x290080 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5e31c5=_0x17bdcf['commands']['get'](_0x290080);_0x5e31c5['on']('set:isEnabled',(_0x4d60ae,_0x2b32d6,_0x2b333c)=>{if(_0x2b333c){const _0x353e78=_0x17bdcf['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x42d04a=>_0x42d04a['is']('element','tableCell'));this['_areMergableCells'](_0x5e31c5['value'],_0x353e78)||(_0x4d60ae['return']=!0x1,_0x4d60ae['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1cc5ee=this['editor']['commands']['get']('mergeTableCells'),_0x16a7ca=this['editor']['plugins']['get']('TableUtils');if(!_0x1cc5ee['isEnabled'])return!0x1;const _0x535e9b=_0x16a7ca['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x249d0e of _0x535e9b)for(const _0x1e0490 of _0x535e9b)if(_0x249d0e!=_0x1e0490&&!this['_areMergableCells'](_0x249d0e,_0x1e0490))return!0x1;return!0x0;}['_areMergableCells'](_0x5da280,_0x4cad48){const _0x5573e6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4fa271=this['editor']['model']['createRangeOn'](_0x5da280),_0x42e20b=this['editor']['model']['createRangeOn'](_0x4cad48),_0x568957=new Set(),_0xb8cf2b=new Set();for(const _0x13b2c8 of _0x5573e6['getSuggestions']())if(('insertion'==_0x13b2c8['type']||'deletion'==_0x13b2c8['type']||'mergeTableCells'==_0x13b2c8['subType'])&&_0x13b2c8['isInContent']){for(const _0x47e92d of _0x13b2c8['getRanges']())_0x47e92d['containsRange'](_0x4fa271,!0x0)&&_0x568957['add'](_0x13b2c8['type']+':'+_0x13b2c8['author']['id']),_0x47e92d['containsRange'](_0x42e20b,!0x0)&&_0xb8cf2b['add'](_0x13b2c8['type']+':'+_0x13b2c8['author']['id']);}if(_0x568957['size']!=_0xb8cf2b['size'])return!0x1;for(const _0x3a2ba6 of _0x568957)if(!_0xb8cf2b['has'](_0x3a2ba6))return!0x1;return!0x0;}}class Ct extends _0x82b22a{static get['requires'](){return[It];}['afterInit'](){const _0x5f5622=this['editor'];if(!_0x5f5622['plugins']['has']('TableEditing'))return;const _0x160829=_0x5f5622['locale'],_0x58e54d=_0x5f5622['plugins']['get']('TrackChangesEditing');_0x58e54d['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x58e54d['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x58e54d['registerBlockAttribute']('headingRows'),_0x58e54d['registerBlockAttribute']('headingColumns'),_0x58e54d['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x160829,'FORMAT_HEADER_ROW')),_0x58e54d['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x160829,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x161a4d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x41eb7e=this['editor']['plugins']['get']('TableUtils'),_0x296412=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x45b15e({showActiveMarker:_0x51cc88=!0x0,setDataAttribute:_0x276b9c=!0x0}={}){return(_0x213ccf,_0x32acc4,_0x2e9f46)=>{const {type:_0x2ca36f,id:_0x152e82}=_0x161a4d['_splitMarkerName'](_0x32acc4['markerName']),_0x341dcd=_0x161a4d['getSuggestion'](_0x152e82),_0x5c1918=_0x341dcd['data'];if('formatBlock'!=_0x341dcd['type']||!_0x5c1918||'setTableColumnHeader'!=_0x5c1918['commandName'])return;if(_0x32acc4['item'])return void _0x213ccf['stop']();if(!_0x2e9f46['consumable']['consume'](_0x32acc4['markerRange'],_0x213ccf['name']))return;const _0x103b7e=_0x32acc4['markerRange']['start']['nodeAfter'],_0x524be1=_0x32acc4['markerRange']['end']['nodeBefore'],_0x9d1a83=_0x103b7e['parent']['parent'],{column:_0x56d399}=_0x41eb7e['getCellLocation'](_0x103b7e),{column:_0x132e26}=_0x41eb7e['getCellLocation'](_0x524be1);for(let _0x54a18c=_0x56d399;_0x54a18c<=_0x132e26;_0x54a18c++){const _0x15d826=_0x41eb7e['createTableWalker'](_0x9d1a83,{'column':_0x54a18c,'includeAllSlots':!0x1});for(const _0x3f9ada of _0x15d826){const _0x4b48cf=_0x3f9ada['cell'],_0x36ae0b=_0x2e9f46['mapper']['toViewElement'](_0x4b48cf);_0x2e9f46['writer']['addClass']('ck-suggestion-marker-'+_0x2ca36f,_0x36ae0b),_0x276b9c&&_0x2e9f46['writer']['setAttribute']('data-suggestion',_0x152e82,_0x36ae0b),_0x2e9f46['mapper']['bindElementToMarker'](_0x36ae0b,_0x32acc4['markerName']),_0x51cc88&&(_0x161a4d['activeMarkers']['includes'](_0x32acc4['markerName'])?_0x2e9f46['writer']['addClass']('ck-suggestion-marker--active',_0x36ae0b):_0x2e9f46['writer']['removeClass']('ck-suggestion-marker--active',_0x36ae0b));}}};}_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x296412),_0x161a4d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x296412),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x45b15e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x3f7cb8,_0x44ec94,_0x33aa5b)=>{_0x33aa5b['options']['showSuggestionHighlights']&&_0x45b15e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3f7cb8,_0x44ec94,_0x33aa5b);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x22e7c,_0x581ff7,_0x3fcec9)=>{const {type:_0x4c4242,id:_0x5eab51}=_0x161a4d['_splitMarkerName'](_0x581ff7['markerName']),_0x1312a3=_0x161a4d['getSuggestion'](_0x5eab51),_0x390eac=_0x1312a3['data'];if('formatBlock'!=_0x1312a3['type']||!_0x390eac||'setTableColumnHeader'!=_0x390eac['commandName'])return;const _0x5837f1=_0x3fcec9['mapper']['markerNameToElements'](_0x581ff7['markerName']);if(_0x5837f1){for(const _0x5da84c of _0x5837f1)_0x3fcec9['writer']['removeClass']('ck-suggestion-marker-'+_0x4c4242,_0x5da84c),_0x3fcec9['writer']['removeClass']('ck-suggestion-marker--active',_0x5da84c),_0x3fcec9['writer']['removeAttribute']('data-suggestion',_0x5da84c),_0x3fcec9['mapper']['unbindElementFromMarkerName'](_0x5da84c,_0x581ff7['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x536dc5=this['editor'],_0x472fa2=_0x536dc5['locale'];function _0x3990f0(_0x45c5e9){return{'type':'format','content':o(_0x472fa2,'*Format:*\x20%0',_0x45c5e9)};}_0x536dc5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46e7c8=>{if('formatBlock'!=_0x46e7c8['type'])return;const {data:_0x96f16f}=_0x46e7c8;if(_0x96f16f){if('setTableRowHeader'==_0x96f16f['commandName']){const _0x3569e8=_0x96f16f['commandParams'][0x0]['forceValue'];return _0x3990f0(o(_0x472fa2,_0x3569e8?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x96f16f['commandName']){const _0x4db028=_0x96f16f['commandParams'][0x0]['forceValue'];return _0x3990f0(o(_0x472fa2,_0x4db028?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Pe=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],we=Object['fromEntries'](Pe['map'](_0x56cac5=>[_0x56cac5,null]));class _t extends _0x82b22a{static get['requires'](){return[It];}['afterInit'](){const _0x3282ae=this['editor'];if(!_0x3282ae['plugins']['has']('TableClipboard'))return;const _0x44fe5e=_0x3282ae['plugins']['get']('TrackChangesEditing'),_0x2d1fd9=_0x3282ae['plugins']['get']('TableUtils'),_0x8e832b=_0x3282ae['plugins']['get'](It),_0x547e9a=_0x3282ae['plugins']['get']('TableClipboard');_0x8e832b['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x3282ae['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x3282ae['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x4e8c08=null;_0x3282ae['model']['on']('insertContent',(_0x342668,_0x400e3e)=>{const [_0x42e222,_0x1f3878]=_0x400e3e,_0x4f8cb8=_0x400e3e[_0x400e3e['length']-0x1];_0x4f8cb8&&_0x4f8cb8['forceDefaultExecution']||_0x44fe5e['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x12d490,_0x58f05e,_0x478d81,_0x58eaab,_0x5eef97){if(_0x58f05e&&!_0x58f05e['is']('documentSelection'))return!0x1;const _0x3e578a=_0x5eef97['getTableIfOnlyTableInContent'](_0x12d490,_0x478d81);if(!_0x3e578a||!Re(_0x3e578a,void 0x0,_0x58eaab))return!0x1;const _0x25cb28=_0x58eaab['getSelectionAffectedTableCells'](_0x478d81['document']['selection']);if(!_0x25cb28['length'])return!0x1;const _0x5542e5=_0x25cb28[0x0]['findAncestor']('table'),_0x390548=_0x58eaab['getRowIndexes'](_0x25cb28),_0x46d373=_0x58eaab['getColumnIndexes'](_0x25cb28),_0xe29378={'startRow':_0x390548['first'],'endRow':_0x390548['last'],'startColumn':_0x46d373['first'],'endColumn':_0x46d373['last']};return 0x1==_0x25cb28['length']&&(_0xe29378['endRow']+=_0x58eaab['getRows'](_0x3e578a)-0x1,_0xe29378['endColumn']+=_0x58eaab['getColumns'](_0x3e578a)-0x1),Re(_0x5542e5,_0xe29378,_0x58eaab);}(_0x42e222,_0x1f3878,_0x3282ae['model'],_0x2d1fd9,_0x547e9a)&&(_0x342668['stop'](),_0x4e8c08={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x3282ae['model']['change'](()=>{_0x3282ae['model']['insertContent'](_0x400e3e[0x0],_0x400e3e[0x1],_0x400e3e[0x2],{'forceDefaultExecution':!0x0});const _0x247e6f=_0x27c666(),{rowInsertionRanges:_0x3bd45a,columnInsertionRanges:_0x528a45,insertionRanges:_0x129c38,deletionRanges:_0x16c028,cells:_0xfb5a90}=_0x4e8c08;_0x3bd45a['length']&&_0x44fe5e['markMultiRangeInsertion'](_0x3bd45a,'tablePasteRow',{'tablePasteChainId':_0x247e6f}),_0x528a45['length']&&_0x44fe5e['markMultiRangeInsertion'](_0x528a45,'tablePasteColumn',{'tablePasteChainId':_0x247e6f}),_0x129c38['length']&&(_0x44fe5e['markMultiRangeInsertion'](_0x129c38,'tablePaste',{'tablePasteChainId':_0x247e6f,'skipNestingCheck':!0x0}),_0x129c38['forEach'](_0x67ad78=>_0x67ad78['detach']?.())),_0x16c028['length']&&(_0x44fe5e['markMultiRangeDeletion'](_0x16c028,'tablePaste',{'tablePasteChainId':_0x247e6f,'skipNestingCheck':!0x0}),_0x16c028['forEach'](_0x453257=>_0x453257['detach']?.()));const _0x5c4697=_0x44fe5e['markMultiRangeBlockFormat'](_0xfb5a90['map'](({element:_0x234002})=>_0x234002),{'formatGroupId':_0x27c666()},[],'tablePasteCell',{'tablePasteChainId':_0x247e6f});if(_0x5c4697){const _0x4b9057=_0x5c4697['getMarkers'](),_0x424e15=[];for(const {element:_0x3ff1f7,attributes:_0x187e54}of _0xfb5a90){if(!_0x187e54)continue;const _0x5cff43=_0x3282ae['model']['createRangeOn'](_0x3ff1f7),_0xecd27c=_0x4b9057['find'](_0x58d8e6=>_0x58d8e6['getRange']()['isEqual'](_0x5cff43));_0xecd27c&&_0x424e15['push']([_0xecd27c['name'],_0x187e54]);}_0x424e15['length']&&_0x5c4697['setAttribute']('markerAttributes',Object['fromEntries'](_0x424e15));}_0x4e8c08=null;}));},{'priority':_0x4e98c9['high']+0xa}),_0x3282ae['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xd1a902,_0x5658af)=>{const [_0x25b38b,_0x2286dc,,_0x5d662c]=_0x5658af;if(!_0x4e8c08)return;_0xd1a902['stop']();const _0x8ada28=_0x25b38b['cell'],_0xb05f09=_0x2286dc,_0x4f91ca=ke(_0x8ada28),_0x157b7c=ke(_0xb05f09);_0xd1a902['return']=_0x8ada28;let _0x4871f9=null,_0x517090=null;if(_0x157b7c||_0x4f91ca){if(_0x4f91ca&&!_0x157b7c){_0x5d662c['remove'](_0x8ada28['getChild'](0x0));for(const _0x159e84 of Array['from'](_0xb05f09['getChildren']()))_0x5d662c['insert'](_0x159e84,_0x8ada28,'end');const _0x2b3cb0=_0x4e8c08['rowInsertionIndexes']['includes'](_0x25b38b['row']),_0x4dd31c=_0x4e8c08['columnInsertionIndexes']['includes'](_0x25b38b['column']);_0x2b3cb0||_0x4dd31c||(_0x4871f9=_0xb1b223['fromRange'](_0x5d662c['createRangeIn'](_0x8ada28)));}else _0x157b7c&&!_0x4f91ca&&(_0x517090=_0x5d662c['createRangeIn'](_0x8ada28));}else{const _0x411584=_0x5d662c['createElement']('tableCellSuggestion'),_0x45902d=_0x5d662c['createElement']('tableCellSuggestion');_0x5d662c['wrap'](_0x5d662c['createRangeIn'](_0x8ada28),_0x45902d),_0x5d662c['insert'](_0x411584,_0x8ada28,0x0);for(const _0x3590b7 of Array['from'](_0xb05f09['getChildren']()))_0x5d662c['insert'](_0x3590b7,_0x411584,'end');_0x4871f9=_0xb1b223['fromRange'](_0x5d662c['createRangeOn'](_0x411584)),_0x517090=_0xb1b223['fromRange'](_0x5d662c['createRangeOn'](_0x45902d));}const _0x3f2738=Array['from'](_0xb05f09['getAttributes']())['filter'](([_0x3cb2fe])=>Pe['includes'](_0x3cb2fe));_0x4e8c08['cells']['push']({'element':_0x8ada28,'attributes':_0x3f2738['length']?Object['fromEntries'](_0x3f2738):null}),_0x4871f9&&_0x4e8c08['insertionRanges']['push'](_0x4871f9),_0x517090&&_0x4e8c08['deletionRanges']['push'](_0x517090);},{'priority':'high'}),_0x2d1fd9['on']('insertColumns',(_0x50bcc5,_0x16a6f0)=>{const [_0x147dfd,_0x4d3a60={}]=_0x16a6f0;if(!_0x4e8c08)return;const _0x25e6cf=_0x4d3a60['at']||0x0,_0x428945=_0x4d3a60['columns']||0x1;_0x4e8c08['columnInsertionIndexes']=new Array(_0x428945)['fill'](_0x25e6cf)['map']((_0xa0953f,_0x54b4fe)=>_0xa0953f+_0x54b4fe);for(const {cell:_0x584c7b}of _0x2d1fd9['createTableWalker'](_0x147dfd,{'startColumn':_0x25e6cf,'endColumn':_0x25e6cf+_0x428945-0x1}))_0x4e8c08['columnInsertionRanges']['push'](_0x3282ae['model']['createRangeOn'](_0x584c7b));},{'priority':'low'}),_0x2d1fd9['on']('insertRows',(_0x270ab4,_0x3c6bc4)=>{const [_0x3cca6e,_0x1b375d={}]=_0x3c6bc4;if(!_0x4e8c08)return;const _0x2bb4dd=_0x1b375d['at']||0x0,_0x6c3574=_0x1b375d['rows']||0x1;_0x4e8c08['rowInsertionIndexes']=new Array(_0x6c3574)['fill'](_0x2bb4dd)['map']((_0x465587,_0x52b0c1)=>_0x465587+_0x52b0c1);for(const {cell:_0x426adf}of _0x2d1fd9['createTableWalker'](_0x3cca6e,{'startRow':_0x2bb4dd,'endRow':_0x2bb4dd+_0x6c3574-0x1}))_0x4e8c08['rowInsertionRanges']['push'](_0x3282ae['model']['createRangeOn'](_0x426adf));},{'priority':'low'}),_0x44fe5e['descriptionFactory']['registerDescriptionCallback'](_0x43c672=>{if(_0x43c672['subType']&&_0x43c672['subType']['startsWith']('tablePaste'))return _0x43c672['previous']?{}:{'type':'insertion','content':o(_0x3282ae['locale'],'*Replace\x20table\x20cells*')};});const _0xf780d2=()=>!0x1;for(const _0x520890 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x44fe5e['_suggestionFactory']['registerCustomCallback']('insertion',_0x520890,'join',_0xf780d2),_0x44fe5e['_suggestionFactory']['registerCustomCallback']('deletion',_0x520890,'join',_0xf780d2),_0x44fe5e['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x520890,'join',_0xf780d2);_0x44fe5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0xf780d2),_0x44fe5e['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x3ac564,_0x2554ad,_0x168693)=>{const _0x3449ce=_0x3ac564['map'](_0x3a27d1=>_0x3a27d1['getContainedElement']())['filter'](_0x4bed65=>_0x4bed65),_0x5ce662=new Map(_0x3449ce['map'](_0x23042a=>[_0x23042a,null]));if(_0x4e8c08){for(const {element:_0x296999,attributes:_0x452db6}of _0x4e8c08['cells'])_0x452db6&&_0x5ce662['set'](_0x296999,_0x452db6);}else{if(_0x168693&&_0x168693['markerAttributes'])for(const [_0x562a1e,_0x418035]of Object['entries'](_0x168693['markerAttributes'])){const _0x567764=_0x3282ae['model']['markers']['get'](_0x562a1e),_0x46afab=_0x567764?_0x567764['getRange']()['getContainedElement']():null;_0x46afab&&_0x5ce662['set'](_0x46afab,_0x418035);}}_0x3282ae['model']['change'](_0xc1486d=>{for(const [_0x293534,_0x364e37]of _0x5ce662)_0xc1486d['setAttributes']({...we,..._0x364e37},_0x293534);});});const _0x576bcf=(_0x28d840,_0x2d5826)=>{_0x44fe5e['_suggestionFactory']['registerCustomCallback'](_0x28d840,'tablePaste',_0x2d5826,(_0x24e5ed,_0x5a9da5,_0x1f6a2d)=>{_0x3282ae['model']['change'](_0xf0de9f=>{const _0x2bc5b9=[];for(const _0x299532 of _0x24e5ed){const _0x4a2902=_0x299532['start']['nodeAfter'];_0x4a2902['is']('element','tableCellSuggestion')&&_0x2bc5b9['push'](_0x4a2902);}_0x44fe5e['_suggestionFactory']['getSuggestionCallback'](_0x28d840,null,_0x2d5826)(_0x24e5ed,_0x5a9da5,_0x1f6a2d);for(const _0x7cfeac of _0x2bc5b9)'$graveyard'!=_0x7cfeac['root']['rootName']&&_0xf0de9f['unwrap'](_0x7cfeac);});});};_0x576bcf('insertion','accept'),_0x576bcf('insertion','discard'),_0x576bcf('deletion','accept'),_0x576bcf('deletion','discard'),_0x44fe5e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x49e562=>{const _0x14eaec=_0x49e562['map'](_0x5d593a=>_0x5d593a['getContainedElement']()),_0x2c7b8a=_0x14eaec[0x0]['findAncestor']('table'),{minRow:_0x1cdf98,maxRow:_0x1bd5ff}=_0x8e832b['_getCoordsForCells'](_0x14eaec);_0x2d1fd9['removeRows'](_0x2c7b8a,{'at':_0x1cdf98,'rows':_0x1bd5ff-_0x1cdf98+0x1});}),_0x44fe5e['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x4b8bb9=>{const _0x31499d=_0x4b8bb9['map'](_0x391483=>_0x391483['getContainedElement']()),_0x4741af=_0x31499d[0x0]['findAncestor']('table'),{minColumn:_0x437099,maxColumn:_0x8b904e}=_0x8e832b['_getCoordsForCells'](_0x31499d);_0x2d1fd9['removeColumns'](_0x4741af,{'at':_0x437099,'columns':_0x8b904e-_0x437099+0x1});});const _0x4448af=(_0x4fe9e4,_0x47a95e)=>{if(!_0x47a95e['subType']||!_0x47a95e['subType']['startsWith']('tablePaste'))return;const _0x172cec=_0x47a95e['attributes']['tablePasteChainId'],_0x3c68df=_0x44fe5e['getSuggestions']()['filter'](_0x70e70c=>_0x70e70c['isInContent']&&_0x70e70c['attributes']&&_0x70e70c['attributes']['tablePasteChainId']==_0x172cec);_0x3c68df['length']&&_0x47a95e['getAllAdjacentSuggestions']()['length']!=_0x3c68df['length']&&_0x3c68df['reduce']((_0x175be3,_0x458580)=>(_0x175be3['next']=_0x458580,_0x458580['previous']=_0x175be3,_0x458580));};function _0xe895ce(_0x44f708,_0x2cd359=!0x0){const {id:_0x1fe63c,authorId:_0x5d328f}=_0x44fe5e['_splitMarkerName'](_0x44f708['markerName']),_0x42478a=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x21c53a=_0x44fe5e['activeMarkers']['includes'](_0x44f708['markerName']);return _0x21c53a&&_0x42478a['push']('ck-suggestion-marker--active'),{'classes':_0x42478a,'attributes':{'data-suggestion':_0x1fe63c,'data-author-id':_0x5d328f},'priority':_0x21c53a&&_0x2cd359?0xbc2:0xbb8};}_0x44fe5e['on']('suggestionLoaded',_0x4448af,{'priority':'high'}),_0x44fe5e['on']('suggestionUnloaded',_0x4448af,{'priority':'high'}),_0x3282ae['model']['document']['registerPostFixer'](()=>{let _0x3d9682=!0x1;const _0x55bb9e=Array['from'](_0x3282ae['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x2d5ae5,data:_0x3582a0}of _0x55bb9e){const {group:_0x5c6d1e,type:_0x2123f7,id:_0xe9a56b}=_0x44fe5e['_splitMarkerName'](_0x2d5ae5);if('suggestion'!=_0x5c6d1e||'deletion'!=_0x2123f7||_0x3582a0['oldRange'])continue;if(!_0x44fe5e['hasSuggestion'](_0xe9a56b))continue;const _0x1dae69=_0x44fe5e['getSuggestion'](_0xe9a56b)['getRanges'](),_0x5d8cf1=_0x3282ae['plugins']['get']('Users')['me'];for(const _0x4bd9b2 of _0x44fe5e['getSuggestions']()){if(!_0x4bd9b2['isInContent']||_0x4bd9b2['author']!=_0x5d8cf1)continue;if('formatBlock'!=_0x4bd9b2['type']||'tablePasteCell'!=_0x4bd9b2['subType'])continue;if(_0x4bd9b2['getRanges']()['every'](_0x16a781=>_0x1dae69['some'](_0x5328dc=>_0x5328dc['containsRange'](_0x16a781,!0x0)))){for(const _0x2b155d of _0x4bd9b2['getAllAdjacentSuggestions']())_0x2b155d['isInContent']&&(_0x2b155d['discard'](),_0x3d9682=!0x0);}}}return _0x3d9682;}),_0x3282ae['model']['document']['registerPostFixer'](_0x536f53=>{const _0x237207=_0x3282ae['commands']['get']('redo');if(!_0x237207||!_0x237207['_createdBatches']['has'](_0x536f53['batch']))return!0x1;let _0x431c28=!0x1;const _0x344d7d=_0x3282ae['plugins']['get']('Users')['me'],_0x2bea31=_0x3282ae['model']['document']['differ']['getChanges'](),_0x232fe7=Array['from'](_0x3282ae['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x10b520,data:_0x286f67})=>{const {group:_0x221ccd,subType:_0x3b277a,authorId:_0x155ce5}=_0x44fe5e['_splitMarkerName'](_0x10b520);return'suggestion'==_0x221ccd&&'tablePaste'==_0x3b277a&&_0x155ce5==_0x344d7d['id']&&!_0x286f67['oldRange'];});for(const _0x152109 of _0x2bea31){if('insert'!=_0x152109['type']||'tableCellSuggestion'!=_0x152109['name']||0x1!=_0x152109['length'])continue;const _0xf4e817=_0x536f53['createRange'](_0x152109['position'],_0x152109['position']['getShiftedBy'](0x1));if(!_0x232fe7['find'](({data:_0x4059b2})=>_0x4059b2['newRange']['isEqual'](_0xf4e817))){for(const {name:_0x132a8a,data:_0x4d99c9}of _0x232fe7)if(_0xf4e817['containsRange'](_0x4d99c9['newRange'])){_0x536f53['updateMarker'](_0x132a8a,{'range':_0xf4e817}),_0x431c28=!0x0;break;}}}return _0x431c28;}),_0x3282ae['model']['document']['registerPostFixer'](_0x10091d=>{let _0x4a1bf2=!0x1;const _0x5e77b5=_0x3282ae['plugins']['get']('Users')['me'],_0x3eafd5=_0x44fe5e['getSuggestions']()['filter'](_0x2f005d=>_0x2f005d['isInContent']&&_0x2f005d['author']==_0x5e77b5),_0x275cff=new Set(),_0x1b0572=new Set();for(const _0x4a2c1a of _0x3eafd5)if('tablePaste'==_0x4a2c1a['subType'])for(const _0x228550 of _0x4a2c1a['getMarkers']()){const _0x111e2a=_0x228550['getRange']()['getContainedElement']();if(_0x111e2a){if(_0x111e2a['is']('element','tableCellSuggestion')&&ke(_0x111e2a)){_0x4a2c1a['removeMarker'](_0x228550['name']),_0x275cff['add'](_0x111e2a),_0x4a1bf2=!0x0;const _0x1b0d36=_0x111e2a['nextSibling'],_0x3902eb=_0x111e2a['previousSibling'],_0x392cef=_0x1b0d36&&_0x1b0d36['is']('element','tableCellSuggestion'),_0x3cbe7d=_0x3902eb&&_0x3902eb['is']('element','tableCellSuggestion');_0x392cef&&!_0x275cff['has'](_0x1b0d36)&&_0x1b0572['add'](_0x1b0d36),_0x3cbe7d&&!_0x275cff['has'](_0x3902eb)&&_0x1b0572['add'](_0x3902eb);}else _0x111e2a['is']('element','paragraph')&&_0x111e2a['isEmpty']&&(_0x4a2c1a['removeMarker'](_0x228550['name']),_0x4a1bf2=!0x0);}}else{if('tablePasteCell'==_0x4a2c1a['subType']){if(!_0x4a2c1a['attributes']||!_0x4a2c1a['attributes']['tablePasteChainId'])continue;const _0x20a32c=_0x4a2c1a['attributes']['markerAttributes'];if(_0x20a32c&&Object['keys'](_0x20a32c)['length'])continue;const _0x4d968=_0x4a2c1a['attributes']['tablePasteChainId'];let _0x17056d=!0x0,_0x422f2a=!0x0;for(const _0x1219c8 of _0x3eafd5)if(_0x1219c8['subType']&&_0x1219c8['subType']['startsWith']('tablePaste')){if(!_0x1219c8['attributes']['tablePasteChainId']){_0x422f2a=!0x1;break;}if(_0x1219c8['id']!=_0x4a2c1a['id']&&_0x1219c8['attributes']['tablePasteChainId']==_0x4d968){_0x17056d=!0x1;break;}}_0x422f2a&&_0x17056d&&(_0x4a2c1a['removeMarkers'](),_0x4a1bf2=!0x0);}}for(const _0x1d795a of _0x275cff)_0x10091d['remove'](_0x1d795a);for(const _0x5dee12 of _0x1b0572)_0x10091d['unwrap'](_0x5dee12);return _0x4a1bf2;}),_0x3282ae['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':_0x395be6=>_0xe895ce(_0x395be6),'converterPriority':'high'}),_0x3282ae['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x13aef7,_0xcbadb0)=>_0xcbadb0['options']['showSuggestionHighlights']?_0xe895ce(_0x13aef7,!0x1):null,'converterPriority':'high'});const _0xccf5d9=_0x3282ae['editing']['view'];this['listenTo'](_0xccf5d9['document'],'clipboardOutput',(_0x2d8f88,_0x245b74)=>{const _0x4a8145=[];for(const _0x56bbea of _0xccf5d9['createRangeIn'](_0x245b74['content'])['getItems']())_0x56bbea['is']('element','suggestion-td')&&_0x4a8145['push'](_0x56bbea);_0xccf5d9['change'](_0x27da84=>{for(const _0x3046cc of _0x4a8145)_0x27da84['move'](_0x27da84['createRangeIn'](_0x3046cc),_0x27da84['createPositionBefore'](_0x3046cc)),_0x27da84['remove'](_0x3046cc);});});}}function ke(_0x16b1b1){if(_0x16b1b1['isEmpty'])return!0x0;const _0x356e74=_0x16b1b1['getChild'](0x0);return _0x356e74['is']('element','paragraph')&&_0x356e74['isEmpty'];}function Re(_0x1b7f5f,_0x11b36f={},_0x479629){for(const {isAnchor:_0x44fe50,cellHeight:_0x315c9d,cellWidth:_0x5349ea}of _0x479629['createTableWalker'](_0x1b7f5f,{'includeAllSlots':!0x0,..._0x11b36f}))if(!_0x44fe50||0x1!=_0x315c9d||0x1!=_0x5349ea)return!0x1;return!0x0;}class Nt extends _0x82b22a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x366450=this['editor']['plugins']['get']('TrackChangesEditing');_0x366450['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x366450['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x366450['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x366450['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x366450['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x366450['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1d447d,_0x4be05c){const _0x2666b0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a30c3=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x13faf1=_0x4be05c['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xc96ba0=_0x5a30c3['getColumnGroupElement'](_0x13faf1);let _0x4e346b=_0xc96ba0?_0x5a30c3['getTableColumnsWidths'](_0xc96ba0):null,_0xd3f92f=_0x13faf1['getAttribute']('tableWidth')||null;const _0x4ea57b=_0x4be05c['tableWidth']||_0xd3f92f,_0x44f9c8=_0x4be05c['columnWidths']||_0x4e346b,_0x54af53=this['editor']['plugins']['get']('Users')['me'];for(const _0x37438d of _0x2666b0['getSuggestions']()){const _0x5108b3=_0x37438d['getContainedElement']();if('resizeTable'===_0x37438d['subType']&&_0x5108b3===_0x13faf1){_0x37438d['author']!==_0x54af53&&_0x37438d['discard']();const _0x29db4f=_0x37438d['data']['commandParams'];_0xd3f92f=_0x29db4f[0x0]['tableWidth'],_0x4e346b=_0x29db4f[0x0]['columnWidths'];break;}}_0x1d447d({'table':_0x13faf1,'tableWidth':_0x4ea57b,'columnWidths':_0x44f9c8}),_0x2666b0['markBlockFormat'](_0x13faf1,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd3f92f,'columnWidths':_0x4e346b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1eff72){if('formatBlock'!=_0x1eff72['type']&&'formatInline'!=_0x1eff72['type'])return;const {data:_0x2ac07b}=_0x1eff72;if(_0x2ac07b&&'resizeTable'===_0x2ac07b['formatGroupId']){const _0x142dbe='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x142dbe)};}}}class Dt extends _0x82b22a{['afterInit'](){const _0x53f836=this['editor'];_0x53f836['plugins']['has']('Template')&&_0x53f836['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x82b22a{['afterInit'](){const _0x1d9e96=this['editor'];if(!_0x1d9e96['commands']['get']('insertTableOfContents'))return;_0x1d9e96['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x913d50=_0x1d9e96['plugins']['get']('TrackChangesEditing'),_0x4a653c=_0x1d9e96['locale'];_0x913d50['descriptionFactory']['registerElementLabel']('tableOfContents',_0xf423d7=>o(_0x4a653c,'ELEMENT_TABLE_OF_CONTENTS',_0xf423d7));}}class $t extends _0x82b22a{['afterInit'](){const _0x4ebdc0=this['editor'];if(!_0x4ebdc0['plugins']['has']('Title'))return;const _0x26bf61=_0x4ebdc0['plugins']['get']('TrackChangesEditing');_0x26bf61['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4ebdc0['locale'],'ELEMENT_TITLE')),_0x4ebdc0['model']['document']['registerPostFixer'](_0x5f5cc8=>{let _0x16b2df=!0x1;const _0x1b4972=Array['from'](_0x4ebdc0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x256e0a,data:_0x3582dd}of _0x1b4972){const {group:_0x99e3c1}=_0x26bf61['_splitMarkerName'](_0x256e0a);if('suggestion'!==_0x99e3c1||!_0x3582dd['newRange'])continue;const _0x27d4ca=_0x3582dd['newRange'],_0x160920=_0x27d4ca['end']['nodeBefore'];if(!_0x160920||!_0x160920['is']('element','title-content'))continue;if(!_0x27d4ca['start']['isTouching'](_0x27d4ca['end']))continue;const _0x360649=_0x4ebdc0['model']['schema']['getNearestSelectionRange'](_0x27d4ca['end'],'forward');if(_0x360649&&_0x360649['isCollapsed']){const _0xf2952e=_0x5f5cc8['createRange'](_0x27d4ca['start'],_0x360649['start']);_0xf2952e['isEqual'](_0x27d4ca)||(_0x5f5cc8['updateMarker'](_0x256e0a,{'range':_0xf2952e}),_0x16b2df=!0x0);}_0x16b2df||(_0x5f5cc8['removeMarker'](_0x256e0a),_0x16b2df=!0x0);}return _0x16b2df;});}}class Bt extends _0x82b22a{['afterInit'](){const _0x34e48d=this['editor'],_0x39ee29=_0x34e48d['plugins']['get']('TrackChangesEditing');_0x34e48d['plugins']['has']('UndoEditing')&&(_0x39ee29['enableCommand']('undo'),_0x39ee29['enableCommand']('redo'));}}class xt extends _0x82b22a{static get['requires'](){return[It];}['afterInit'](){const _0x35b337=this['editor'];if(!_0x35b337['plugins']['has']('TableCaptionEditing'))return;_0x35b337['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x82b22a{['tableProperties'];['tableCellProperties'];constructor(_0x1833d4){super(_0x1833d4),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 _0x5b2fa9=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3bf6f7 of this['tableProperties'])_0x5b2fa9['enableCommand'](_0x3bf6f7,(_0x16fd44,_0x3fb8c4)=>{const _0x3e987f=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3bf6f7,[_0x3e987f],this['tableProperties'],'tableProperties',_0x16fd44,_0x3fb8c4);});_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5b2fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x890649,_0x30f56c)=>this['handleDiscardAction'](this['tableProperties'],_0x890649,_0x30f56c)),_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x30429e of this['tableCellProperties'])_0x5b2fa9['enableCommand'](_0x30429e,(_0x42db6b,_0x50cf78)=>{const _0x462b61=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x30429e,_0x462b61,this['tableCellProperties'],'tableCellProperties',_0x42db6b,_0x50cf78);});_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5b2fa9['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x3e57ec,_0x26c933)=>this['handleDiscardAction'](this['tableCellProperties'],_0x3e57ec,_0x26c933)),_0x5b2fa9['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5b2fa9['descriptionFactory']['registerDescriptionCallback'](_0x4fa0ad=>this['handleSuggestionDescription'](_0x4fa0ad));}['_handlePropertyChange'](_0x1c21d0,_0x246046,_0x236c8a,_0x3295fb,_0x41f15d,_0x367d85){const _0x486602=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x367d85['batch'],()=>{for(const _0x17d9f4 of _0x246046){if(this['_getSuggestion'](_0x17d9f4,_0x3295fb))_0x41f15d(_0x367d85);else{const _0x4fe872={};for(const _0x4e28a2 of _0x236c8a){const _0x462c2d=_0x17d9f4['getAttribute'](_0x4e28a2);void 0x0!==_0x462c2d&&(_0x4fe872[_0x4e28a2]=_0x462c2d);}_0x41f15d(_0x367d85),_0x486602['markBlockFormat'](_0x17d9f4,{'commandParams':[_0x4fe872]},[],_0x3295fb);}}});}['handleDiscardAction'](_0x305327,_0xb13862,_0x329ea7){const _0x193c86=_0xb13862[0x0]['start']['nodeAfter'],_0x1b852d=_0x329ea7['commandParams'][0x0];this['editor']['model']['change'](_0x519700=>{for(const _0x258467 of _0x305327)void 0x0!==_0x1b852d[_0x258467]?_0x519700['setAttribute'](_0x258467,_0x1b852d[_0x258467],_0x193c86):_0x519700['removeAttribute'](_0x258467,_0x193c86);});}['handleSuggestionDescription'](_0x58f269){if(_0x58f269['data'])switch(_0x58f269['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'](_0x221e98,_0x25269c){const _0x1410b4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x46cc41 of _0x1410b4['getSuggestions']({'skipNotAttached':!0x0})){const _0x3b5d2f=_0x46cc41['getContainedElement']();if(_0x46cc41['subType']===_0x25269c&&_0x3b5d2f===_0x221e98)return _0x46cc41;}return null;}}const m='$elementName';class p extends _0x82b22a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4f0890,_0x2d2e55,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(_0x1d40fa){function _0x2eeb50(_0x4544f6){return _0x4544f6['map'](_0x1955fe=>String['fromCharCode'](_0x1955fe))['join']('');}super(_0x1d40fa),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4eb6b3,_0x340676,_0x55a91a,_0x247fdf)=>{this['_model']['change'](()=>{for(const _0x149dc7 of[..._0x247fdf,..._0x55a91a])this['_model']['markers']['has'](_0x149dc7)&&_0x1d40fa['editing']['reconvertMarker'](_0x149dc7);});}),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']=_0x1d40fa['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(),_0x1d40fa['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1d40fa['config']['get']('trackChanges.trackFormatChanges'),_0x1d40fa['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1d40fa['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1d40fa,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x2eeb50([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x2eeb50([0x34,0x30,0x34,0x38,0x31,0x38,0x36,0x30]);}['init'](){const _0x4a25df=this['editor'],_0x4928de=(_0x5e29ed,_0x5925e0)=>{if('attribute'!=_0x5e29ed)return'ck-suggestion-marker-'+_0x5e29ed;const _0x2cbca2=_0x5925e0['split']('|')[0x0];return this['_isBlockAttribute'](_0x2cbca2)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x4a25df['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x34bdeb=>{const {id:_0x4bf86a,authorId:_0x1b96d4,type:_0x15ca60,subType:_0xc9c51c}=this['_splitMarkerName'](_0x34bdeb['markerName']),_0x4a0a08=['ck-suggestion-marker',_0x4928de(_0x15ca60,_0xc9c51c)];let _0x387c72=0xbb8;return this['activeMarkers']['includes'](_0x34bdeb['markerName'])&&(_0x4a0a08['push']('ck-suggestion-marker--active'),_0x387c72=0xbc2),'deletion'==_0x15ca60&&(_0x387c72+=0x5),{'classes':_0x4a0a08,'attributes':{'data-suggestion':_0x4bf86a,'data-author-id':_0x1b96d4},'priority':_0x387c72};}}),_0x4a25df['conversion']['for']('dataDowncast')['add'](_0x52b705=>{_0x52b705['on']('addMarker:suggestion',(_0x27106e,_0x5c723a,_0x48cddd)=>{if(!_0x48cddd['options']['showSuggestionHighlights'])return;const _0x31595f=_0x5c723a['item'];if(!_0x31595f)return;const _0x6b924d=_0x48cddd['mapper']['toViewElement'](_0x31595f);_0x4a25df['model']['schema']['isObject'](_0x31595f)&&_0x6b924d&&!_0x6b924d['getCustomProperty']('widget')&&_0x6b924d['is']('containerElement')&&_0x150fd6(_0x6b924d,_0x48cddd['writer']);},{'priority':'high'});}),_0x4a25df['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x5c3da6,_0x4b6358)=>{if(!_0x4b6358['options']['showSuggestionHighlights'])return null;const {type:_0x3fb4c2,subType:_0xf5d67e}=this['_splitMarkerName'](_0x5c3da6['markerName']);return{'classes':['ck-suggestion-marker',_0x4928de(_0x3fb4c2,_0xf5d67e)],'priority':0xbb8};}});const _0x331db8=({showActiveMarkers:_0x27f93c=!0x0,isAttributeSuggestion:_0x265f52=!0x1}={})=>(_0x2608fb,_0x3bb95d,_0x5ccc24)=>{if(!_0x3bb95d['item'])return;const {id:_0x2ae291,authorId:_0x42f7bd}=this['_splitMarkerName'](_0x3bb95d['markerName']);if(_0x265f52){const _0x156643=this['_suggestions']['get'](_0x2ae291),_0x16bf8a=this['_getAttributeKey'](_0x156643);if(!this['_isBlockAttribute'](_0x16bf8a))return;}if(_0x3bb95d['item']['is']('selection'))return void _0x5ccc24['consumable']['consume'](_0x3bb95d['item'],_0x2608fb['name']);const _0x2b1710=_0x5ccc24['mapper']['toViewElement'](_0x3bb95d['item']);if(_0x3bb95d['item']['is']('element')&&_0x4a25df['model']['schema']['isBlock'](_0x3bb95d['item'])&&!_0x2b1710['getCustomProperty']('addHighlight')){_0x5ccc24['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x2b1710),_0x5ccc24['writer']['setAttribute']('data-suggestion',_0x2ae291,_0x2b1710),_0x5ccc24['writer']['setAttribute']('data-author-id',_0x42f7bd,_0x2b1710),_0x5ccc24['mapper']['bindElementToMarker'](_0x2b1710,_0x3bb95d['markerName']),_0x27f93c&&(this['activeMarkers']['includes'](_0x3bb95d['markerName'])?_0x5ccc24['writer']['addClass']('ck-suggestion-marker--active',_0x2b1710):_0x5ccc24['writer']['removeClass']('ck-suggestion-marker--active',_0x2b1710));for(const _0x591466 of _0x4a25df['model']['createRangeIn'](_0x3bb95d['item'])['getItems']())_0x5ccc24['consumable']['consume'](_0x591466,_0x2608fb['name']);_0x5ccc24['consumable']['consume'](_0x3bb95d['item'],_0x2608fb['name']);}};_0x4a25df['conversion']['for']('dataDowncast')['add'](_0x113e0c=>{_0x113e0c['on']('addMarker:suggestion:formatBlock',(_0x1ba98d,_0x4f99a3,_0x393629)=>{_0x393629['options']['showSuggestionHighlights']&&_0x331db8({'showActiveMarkers':!0x1})(_0x1ba98d,_0x4f99a3,_0x393629);},{'priority':'highest'});}),_0x4a25df['conversion']['for']('dataDowncast')['add'](_0x2e24c2=>{_0x2e24c2['on']('addMarker:suggestion:attribute',(_0x43d108,_0x51931d,_0x39dd93)=>{_0x39dd93['options']['showSuggestionHighlights']&&_0x331db8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x43d108,_0x51931d,_0x39dd93);},{'priority':'highest'});}),_0x4a25df['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2c6c4a,_0x1f9410)=>_0x1f9410['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2c6c4a['substr'](0xb)}}),_0x4a25df['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0xbab64e,{writer:_0x350884})=>{let _0x4f61ac='suggestion:'+_0xbab64e['getAttribute']('suggestion-type')+':'+_0xbab64e['getAttribute']('id');return _0xbab64e['getAttribute']('marker-count')&&(_0x4f61ac+=':'+_0xbab64e['getAttribute']('marker-count')),_0x350884['createElement']('$marker',{'data-name':_0x4f61ac});}}),_0x4a25df['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x4a25df['conversion']['for']('editingDowncast')['add'](_0x491996=>{_0x491996['on']('addMarker:suggestion:formatBlock',_0x331db8(),{'priority':'high'});}),_0x4a25df['conversion']['for']('editingDowncast')['add'](_0xbe0b08=>{_0xbe0b08['on']('addMarker:suggestion:attribute',_0x331db8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x4a25df['conversion']['for']('editingDowncast')['add'](_0x5ceb4d=>{_0x5ceb4d['on']('removeMarker:suggestion:formatBlock',(_0x5f491b,_0x4f406b,_0x18543b)=>{const _0x2e59f4=_0x18543b['mapper']['markerNameToElements'](_0x4f406b['markerName']);if(_0x2e59f4){for(const _0x5b787c of _0x2e59f4)_0x5b787c['getCustomProperty']('addHighlight')||(_0x18543b['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5b787c),_0x18543b['writer']['removeAttribute']('data-suggestion',_0x5b787c),_0x18543b['writer']['removeAttribute']('data-author-id',_0x5b787c),_0x18543b['mapper']['unbindElementFromMarkerName'](_0x5b787c,_0x4f406b['markerName']));}},{'priority':'high'});}),_0x4a25df['conversion']['for']('editingDowncast')['add'](_0x52d180=>{_0x52d180['on']('removeMarker:suggestion:attribute',(_0x21a438,_0x4899b3,_0x532201)=>{const _0x548139=_0x532201['mapper']['markerNameToElements'](_0x4899b3['markerName']);if(!_0x548139)return;const {id:_0x2264a5}=this['_splitMarkerName'](_0x4899b3['markerName']),_0xae0d23=this['_suggestions']['get'](_0x2264a5),_0x3fc4ff=this['_getAttributeKey'](_0xae0d23);if(this['_isBlockAttribute'](_0x3fc4ff)){for(const _0x52efdb of _0x548139)_0x52efdb['getCustomProperty']('addHighlight')||(_0x532201['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x52efdb),_0x532201['writer']['removeAttribute']('data-suggestion',_0x52efdb),_0x532201['writer']['removeAttribute']('data-author-id',_0x52efdb),_0x532201['mapper']['unbindElementFromMarkerName'](_0x52efdb,_0x4899b3['markerName']));}},{'priority':'high'});}),_0x4a25df['model']['document']['registerPostFixer'](_0x526523=>{let _0xdb2497=!0x1;const _0x1ac3b7=Array['from'](_0x4a25df['model']['document']['differ']['getChangedMarkers']()),_0x1fa603=new Set();for(const {name:_0x1e6df8,data:_0x5f5b29}of _0x1ac3b7){const {group:_0x51dd99,type:_0xd50d5a,subType:_0x4b9b5c,id:_0x5bb192}=this['_splitMarkerName'](_0x1e6df8);if('suggestion'!==_0x51dd99)continue;const _0x36b1d9=this['_suggestions']['get'](_0x5bb192);if(null!=_0x5f5b29['newRange']){'formatInline'==_0xd50d5a&&(_0xdb2497=_0xdb2497||Ut(_0x5f5b29['newRange'],_0x1e6df8,_0x526523,_0x4a25df['model']['schema']));const _0x4b94a5='attribute'==_0xd50d5a&&this['_isBlockAttribute'](_0x4b9b5c['split']('|')[0x0]);if(_0x5f5b29['newRange']['isCollapsed']||'$graveyard'==_0x5f5b29['newRange']['root']['rootName']||'formatBlock'==_0xd50d5a&&!Ft(_0x5f5b29['newRange'])||_0x4b94a5&&!Ft(_0x5f5b29['newRange'])||'deletion'==_0xd50d5a&&!(!Vt(_0x1c11d3=_0x5f5b29['newRange'])&&!function(_0x384a9b){return _0x384a9b['start']['parent']==_0x384a9b['end']['nodeBefore']&&_0x384a9b['start']['isAtEnd'];}(_0x1c11d3)))_0x526523['removeMarker'](_0x1e6df8),_0xdb2497=!0x0;else{if(!_0x36b1d9||!_0x36b1d9['isInContent'])continue;if(_0x5f5b29['newRange']&&_0x5f5b29['oldRange']&&_0x5f5b29['newRange']['isEqual'](_0x5f5b29['oldRange']))continue;_0x1fa603['add'](_0x36b1d9);}}}var _0x1c11d3;return _0x1fa603['size']>0x0&&(_0xdb2497=!!this['_joinWithAdjacentSuggestions'](_0x1fa603)||_0xdb2497),_0xdb2497;}),_0x4a25df['model']['document']['registerPostFixer'](_0x21396b=>{let _0xf3dc7d=!0x1;for(const _0x312a46 of _0x4a25df['model']['document']['differ']['getChanges']())if('insert'==_0x312a46['type'])for(const _0x4785f3 of this['_suggestions']['values']()){if(_0x4785f3['isMultiRange']||!_0x4785f3['isInContent'])continue;const _0x5dad1d='formatBlock'==_0x4785f3['type'],_0x4de0d1=this['_getAttributeKey'](_0x4785f3),_0x11ad78=_0x4de0d1&&this['_isBlockAttribute'](_0x4de0d1);if(!_0x5dad1d&&!_0x11ad78)continue;const _0x460a13=_0x4785f3['getFirstRange']();if(_0x460a13['start']['parent']!=_0x460a13['end']['parent']&&!_0x460a13['end']['isAtEnd']){const _0x1d8f39=_0x4a25df['model']['createPositionAt'](_0x460a13['start']['nodeAfter'],'end'),_0x6afb78=_0x4a25df['model']['createRange'](_0x460a13['start'],_0x1d8f39);_0x21396b['updateMarker'](_0x4785f3['getFirstMarker'](),{'range':_0x6afb78}),_0xf3dc7d=!0x0;}}return _0xf3dc7d;}),_0x4a25df['model']['document']['registerPostFixer'](_0x2b87c0=>this['_processAttributeChanges'](_0x2b87c0)),_0x4a25df['model']['document']['registerPostFixer'](_0x52374=>!_0x52374['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x52374)),_0x4a25df['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x4a25df['model']['document']['on']('change:data',(_0x449789,_0x529e64)=>{if(!_0x529e64['isLocal']||_0x529e64['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x35a57a=_0x4a25df['model']['document']['differ']['getChanges']();if(0x0==_0x35a57a['length'])return;const _0x3f53a7=[],_0x1a971f=_0x35a57a['filter'](_0x4bae40=>'attribute'==_0x4bae40['type']),_0x416d0c=_0x35a57a['filter'](_0x10d905=>'insert'==_0x10d905['type']&&'$text'!=_0x10d905['name']);for(const _0x3f28bc of _0x1a971f)this['_isRegisteredAttribute'](_0x3f28bc['attributeKey'])&&_0x3f53a7['push']({'key':_0x3f28bc['attributeKey'],'newValue':_0x3f28bc['attributeNewValue'],'oldValue':_0x3f28bc['attributeOldValue'],'range':Pt(_0x3f28bc['range'],_0x4a25df['model'])});for(const _0x7ae12b of _0x416d0c){if('rename'!=_0x7ae12b['action']&&'refresh'!=_0x7ae12b['action'])continue;const _0x288365=Lt(_0x7ae12b['position']['nodeAfter'],_0x4a25df['model']),_0x18ebb0=_0x7ae12b['before'];'rename'==_0x7ae12b['action']&&_0x3f53a7['push']({'key':m,'newValue':_0x7ae12b['name'],'oldValue':_0x18ebb0['name'],'range':_0x288365});for(const [_0xb0fb04,_0x41c313]of _0x18ebb0['attributes']){if(!this['_isRegisteredAttribute'](_0xb0fb04))continue;const _0x3b72f3=_0x7ae12b['attributes']['get'](_0xb0fb04);_0x41c313!==_0x3b72f3&&_0x3f53a7['push']({'key':_0xb0fb04,'newValue':_0x3b72f3,'oldValue':_0x41c313,'range':_0x288365});}for(const [_0x54a531,_0x4ae8a6]of _0x7ae12b['attributes'])this['_isRegisteredAttribute'](_0x54a531)&&(_0x18ebb0['attributes']['has'](_0x54a531)||_0x3f53a7['push']({'key':_0x54a531,'newValue':_0x4ae8a6,'oldValue':null,'range':_0x288365}));}0x0!=_0x3f53a7['length']&&_0x4a25df['model']['enqueueChange'](_0x529e64,_0x12d783=>{const _0x569590=_0x27c666();for(const {range:_0x7047af,key:_0x1cc740,oldValue:_0x429c9b,newValue:_0x5ad2f6}of _0x3f53a7)this['markAttributeChange'](_0x7047af,_0x1cc740,_0x429c9b,_0x5ad2f6,{'groupId':_0x569590});this['_reduceExistingSuggestions'](_0x12d783,_0x3f53a7);});},{'priority':'lowest'}),_0x4a25df['model']['markers']['on']('update:suggestion',(_0x3947b0,_0xb34644,_0x5268a3)=>{if(null==_0x5268a3){const {id:_0x46a4a3}=this['_splitMarkerName'](_0xb34644['name']),_0x2d02a8=this['_suggestions']['get'](_0x46a4a3);_0x2d02a8&&_0x2d02a8['addMarkerName'](_0xb34644['name']);}}),_0x4a25df['model']['document']['on']('change:data',()=>{const _0x110a73=Array['from'](_0x4a25df['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2a82bf=>'suggestion'===this['_splitMarkerName'](_0x2a82bf['name'])['group']);if(0x0===_0x110a73['length'])return;_0x110a73['sort']((_0x5ceba6,_0x5305b7)=>{const _0x4d57ba=_0x5ceba6['data']['oldRange'],_0x42511c=_0x5305b7['data']['oldRange'];return null===_0x4d57ba&&null===_0x42511c?0x0:null===_0x4d57ba&&null!==_0x42511c?-0x1:null!==_0x4d57ba&&null===_0x42511c?0x1:_0x4d57ba['start']['isBefore'](_0x42511c['start'])?-0x1:0x1;});const _0x391c82=new Set(),_0x3bee6e=new Set();for(const {name:_0x4c7353,data:_0x346263}of _0x110a73){const {id:_0x242ec4}=this['_splitMarkerName'](_0x4c7353);if(null===_0x346263['oldRange']){const _0x18912f=this['_handleNewSuggestionMarker'](_0x4c7353);_0x3bee6e['add'](_0x18912f);}else{const _0x48b998=this['_suggestions']['get'](_0x242ec4);null!==_0x346263['newRange']||_0x48b998['isInContent']?(_0x391c82['add'](_0x48b998['head']),_0x3bee6e['add'](_0x48b998)):this['_removeSuggestion'](_0x48b998);}}_0x3bee6e['size']>0x0&&this['_refreshSuggestionsChain'](_0x3bee6e);for(const _0x2f91a5 of _0x391c82)this['fire']('suggestionChanged',_0x2f91a5);}),_0x4a25df['model']['on']('applyOperation',(_0x2ce682,_0x4f3df4)=>{const _0x1861e5=_0x4f3df4[0x0];if(!this['_suggestions']['size'])return;if(!_0x1861e5['isDocumentOperation'])return;if(_0x1861e5['batch']['isUndo']||!_0x1861e5['batch']['isLocal'])return;let _0x116bc3,_0x32c7f5;switch(_0x1861e5['type']){case'insert':_0x116bc3=_0x4a25df['model']['createPositionAt'](_0x1861e5['position']),_0x32c7f5=_0x116bc3['getShiftedBy'](_0x1861e5['howMany']);break;case'split':_0x116bc3=_0x4a25df['model']['createPositionAt'](_0x1861e5['splitPosition']),_0x32c7f5=_0x4a25df['model']['createPositionAt'](_0x1861e5['moveTargetPosition']);break;case'move':_0x116bc3=_0x4a25df['model']['createPositionAt'](_0x1861e5['targetPosition']),_0x32c7f5=_0x116bc3['getShiftedBy'](_0x1861e5['howMany']);break;default:return;}const _0x498934=_0x4a25df['model']['createRange'](_0x116bc3,_0x32c7f5);_0x4a25df['model']['change'](()=>{for(const {suggestion:_0x890625,meta:_0x38aaf2}of this['_findSuggestions'](_0x498934)){if(_0x890625['isMultiRange'])continue;if('formatInline'==_0x890625['type'])continue;const _0x2f11ed=this['_getAttributeKey'](_0x890625);if(_0x2f11ed&&this['_isBlockAttribute'](_0x2f11ed)&&'split'!=_0x1861e5['type'])continue;const _0x45adb4=_0x890625['data']&&_0x890625['data']['multipleBlocks'];('formatBlock'!=_0x890625['type']||'split'==_0x1861e5['type']&&!_0x45adb4)&&(_0x38aaf2['containsRangeInObject']||'insertion'==_0x890625['type']&&_0x38aaf2['isOwn']||_0x890625['getFirstRange']()['containsRange'](_0x498934)&&this['_breakSuggestionMarker'](_0x890625,_0x116bc3,_0x32c7f5));}});},{'priority':'lowest'}),_0x4a25df['model']['on']('deleteContent',(_0x2ab0f8,_0x6bc75a)=>{const _0x3f70f9=_0x6bc75a[0x0],_0xeb92f3=_0x6bc75a[0x1];if(_0xeb92f3&&_0xeb92f3['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3f70f9['isCollapsed'])return;const _0x22a638=_0x4a25df['model']['schema'],{start:_0x3e9a05,end:_0x310f92}=_0x3f70f9['getFirstRange'](),_0x1dd859=_0x3e9a05['nodeAfter']&&_0x22a638['isLimit'](_0x3e9a05['nodeAfter'])?null:_0x22a638['getNearestSelectionRange'](_0x3e9a05,'forward'),_0x44419d=_0x310f92['nodeBefore']&&_0x22a638['isLimit'](_0x310f92['nodeBefore'])?null:_0x22a638['getNearestSelectionRange'](_0x310f92,'backward'),_0x39490c=_0x4a25df['model']['createRange'](_0x1dd859?_0x1dd859['start']:_0x3e9a05,_0x44419d?_0x44419d['end']:_0x310f92);_0x4a25df['model']['change'](_0x1bb278=>{this['markDeletion'](_0x39490c);const _0x2f82c5=_0x4a25df['model']['schema']['getNearestSelectionRange'](_0x39490c['start']);_0x3f70f9['is']('documentSelection')?_0x1bb278['setSelection'](_0x2f82c5):_0x3f70f9['setTo'](_0x2f82c5);}),_0x2ab0f8['stop']();},{'priority':_0x4e98c9['normal']+0xa}),_0x4a25df['model']['on']('insertContent',(_0x34daae,_0x33033a)=>{const _0x40c0af=_0x33033a[_0x33033a['length']-0x1];_0x40c0af&&_0x40c0af['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x4a25df['model']['change'](()=>{let _0x17fb62=_0x4a25df['model']['insertContent'](_0x33033a[0x0],_0x33033a[0x1],_0x33033a[0x2],{'forceDefaultExecution':!0x0});if(!_0x17fb62)return;_0x34daae['return']=_0x17fb62['clone']();const _0xf9a630=_0x17fb62['end']['nodeBefore'],_0x2852bb=_0x4a25df['model']['schema'];_0xf9a630&&_0x2852bb['isBlock'](_0xf9a630)&&!_0x2852bb['isObject'](_0xf9a630)&&(_0x17fb62=_0x4a25df['model']['createRange'](_0x17fb62['start'],_0x4a25df['model']['createPositionAt'](_0xf9a630,'end'))),this['markInsertion'](_0x17fb62);}),_0x34daae['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x313e67=new x(_0x4a25df,this['_suggestions']);_0x4a25df['commands']['add']('acceptSuggestion',_0x313e67),this['enableCommand']('acceptSuggestion');const _0x1104a0=new R(_0x4a25df,this['_suggestions']);_0x4a25df['commands']['add']('discardSuggestion',_0x1104a0),this['enableCommand']('discardSuggestion'),_0x4a25df['commands']['add']('acceptAllSuggestions',new E(_0x4a25df,_0x313e67,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x4a25df['commands']['add']('discardAllSuggestions',new E(_0x4a25df,_0x1104a0,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x4a25df['commands']['add']('acceptSelectedSuggestions',new O(_0x4a25df,_0x313e67,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x4a25df['commands']['add']('discardSelectedSuggestions',new O(_0x4a25df,_0x1104a0,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x437aca=_0x4a25df['plugins']['get']('CommentsRepository');this['listenTo'](_0x437aca,'addComment',(_0x589265,{threadId:_0xb093c6})=>{const _0x247201=this['_suggestions']['get'](_0xb093c6);_0x247201&&_0x247201['commentThread']&&0x1===_0x247201['commentThread']['length']&&this['_updateSuggestionData'](_0xb093c6,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x437aca,'removeComment',(_0x2b9e19,{threadId:_0x1ebb9b})=>{const _0x2ef1f3=this['_suggestions']['get'](_0x1ebb9b);_0x2ef1f3&&_0x2ef1f3['commentThread']&&!_0x2ef1f3['commentThread']['length']&&this['_updateSuggestionData'](_0x1ebb9b,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x344062){if(this['_adapter'])throw new _0x5adf17('track-changes-adapter-already-set',this);this['_adapter']=_0x344062;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x231383=!0x1,toJSON:_0x4840b0=!0x1}={}){const _0x302b21=[];for(const _0x50ef0b of this['_suggestions']['values']())_0x231383&&!_0x50ef0b['isInContent']||_0x302b21['push'](_0x50ef0b);return _0x4840b0?_0x302b21['map'](_0x225cb6=>_0x225cb6['toJSON']()):_0x302b21;}['getSuggestion'](_0x2a3143){const _0x1802a8=this['_suggestions']['get'](_0x2a3143);if(!_0x1802a8)throw new _0x5adf17('track-changes-suggestion-not-found',this);return _0x1802a8;}['hasSuggestion'](_0xef4d25){return this['_suggestions']['has'](_0xef4d25);}['addSuggestionData'](_0x509b73){const {authorId:_0x1b8bc1,id:_0xf38305,attributes:_0x137ab1}=_0x509b73,[_0x331bc7,_0x3bcd5d]=_0x509b73['type']['split'](':'),_0x407056=this['_suggestions']['get'](_0xf38305)||this['_createSuggestion'](_0x331bc7,_0x3bcd5d,_0xf38305,_0x1b8bc1,_0x137ab1);if(this['_addThreadToSuggestion'](_0x407056),this['_checkSuggestionCorrectness'](_0x407056,_0x331bc7,_0x3bcd5d||null,_0x1b8bc1),_0x407056['createdAt']=_0x509b73['createdAt'],_0x407056['_isDataLoaded']=!0x0,_0x137ab1&&_0x137ab1['@external']){const _0x5d842d=_0x137ab1['@external'],_0x314e5f=this['_getExternalAuthor'](_0x5d842d['authorName']);_0x407056['authoredAt']=_0x5d842d['createdAt'],_0x407056['author']=_0x314e5f,_0x407056['isExternal']=!0x0;}else _0x407056['authoredAt']=_0x509b73['createdAt'];switch(_0x509b73['data']&&(_0x407056['data']=_0x509b73['data']),_0x509b73['attributes']&&(_0x407056['attributes']=_0x509b73['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x407056['_saved']=!0x0),this['_suggestionState']['get'](_0x407056)){case'notReady':this['_suggestionState']['set'](_0x407056,'dataReady');break;case'markerReady':_0x407056['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x407056])),this['_refreshSuggestionsChain'](new Set([_0x407056])),this['_suggestionState']['set'](_0x407056,'ready'),this['fire']('suggestionLoaded',_0x407056)):this['_suggestionState']['set'](_0x407056,'removed');}return _0x407056;}['acceptSuggestion'](_0x48673e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x259c6e of _0x48673e['getAllAdjacentSuggestions']())_0x259c6e['accept']();});});}['discardSuggestion'](_0x5bf29c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5c46e2 of _0x5bf29c['getAllAdjacentSuggestions']())_0x5c46e2['discard']();});});}['enableCommand'](_0x2cc9fb,_0x414e14){const _0x524fc7=this['editor']['commands']['get'](_0x2cc9fb);if(!_0x524fc7)throw new _0x5adf17('track-changes-command-not-found',this,{'commandName':_0x2cc9fb});if(this['_enabledCommands']['has'](_0x524fc7))throw new _0x5adf17('track-changes-enable-command-twice',this,{'commandName':_0x2cc9fb});this['_enabledCommands']['add'](_0x524fc7),_0x414e14&&_0x524fc7['on']('execute',(_0x13efee,_0x8f3b69)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x8f3b69['length']>0x0&&_0x8f3b69[_0x8f3b69['length']-0x1]&&_0x8f3b69[_0x8f3b69['length']-0x1]['forceDefaultExecution']?_0x8f3b69['pop']():(_0x13efee['return']=_0x414e14((..._0x2c2f7a)=>_0x524fc7['execute'](..._0x2c2f7a,{'forceDefaultExecution':!0x0}),..._0x8f3b69),_0x13efee['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x3c8dba){let _0x50cc2d,_0x493dd4;const _0x1f61a9=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50cc2d=_0x3c8dba();}catch(_0x357664){_0x493dd4=_0x357664;}return _0x1f61a9||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x493dd4&&_0x5adf17['rethrowUnexpectedError'](_0x493dd4,this),_0x50cc2d;}['markInsertion'](_0x45aa21,_0x5f4a41=null,_0x4f8d15={}){if(_0x45aa21['isCollapsed'])return null;const _0x1d9f00=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x9ef8da,meta:_0xfe1584}of this['_findSuggestions'](_0x45aa21,'insertion'))if(_0xfe1584['isOwn']){if(!_0xfe1584['isNextTo']){if(_0xfe1584['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x9ef8da,_0x4f8d15))continue;return _0x9ef8da;}if(qt(_0x9ef8da,_0x4f8d15))return _0x9ef8da;this['_breakSuggestionMarker'](_0x9ef8da,_0x45aa21['start'],_0x45aa21['end']);break;}if(_0x5f4a41==_0x9ef8da['subType']&&qt(_0x9ef8da,_0x4f8d15)){const _0x4b6ab0=_0x9ef8da['getFirstRange']();return _0x4b6ab0['start']['isEqual'](_0x45aa21['end'])?this['_setSuggestionRange'](_0x9ef8da,this['_model']['createRange'](_0x45aa21['start'],_0x4b6ab0['end'])):this['_setSuggestionRange'](_0x9ef8da,this['_model']['createRange'](_0x4b6ab0['start'],_0x45aa21['end'])),_0x9ef8da;}}const _0x49d1c7=_0x27c666(),_0x2915b2=_0x1d9f00['id'],_0x2568ac=_0x5f4a41?'insertion:'+_0x5f4a41:'insertion',_0x270379=this['_setSuggestionData']({'id':_0x49d1c7,'type':_0x2568ac,'createdAt':new Date(),'authorId':_0x2915b2,'attributes':_0x4f8d15});return this['_addSuggestionMarker'](_0x2568ac,_0x49d1c7,_0x2915b2,_0x45aa21),_0x270379;}['markMultiRangeInsertion'](_0x197b57,_0xa717b4='multi',_0x3120b7={}){const _0xddea4=this['editor']['plugins']['get']('Users')['me'],_0x29d78d=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0xa717b4,'join');for(const _0x1f37ba of this['getSuggestions']())if(_0x1f37ba['author']['id']==_0xddea4['id']&&'insertion'==_0x1f37ba['type']&&_0x1f37ba['subType']==_0xa717b4&&qt(_0x1f37ba,_0x3120b7)&&(_0x29d78d(_0x1f37ba['getRanges'](),_0x197b57)||_0x29d78d(_0x197b57,_0x1f37ba['getRanges']()))){for(const _0x31d00a of _0x197b57)_0x1f37ba['addRange'](_0x31d00a);return _0x1f37ba;}for(const {suggestion:_0x3319f2,meta:_0x36a2b7}of this['_findSuggestions'](_0x197b57,'insertion')){if(!_0x36a2b7['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x36a2b7['containsRangeInObject'])continue;if(!qt(_0x3319f2,_0x3120b7))continue;let _0x47a615=!0x0;for(const _0x2f4d25 of _0x3319f2['getRanges']())for(const _0x2142f6 of _0x197b57)if(!_0x2f4d25['containsRange'](_0x2142f6)){_0x47a615=!0x1;break;}if(_0x47a615)return _0x3319f2;}const _0x23dc1c=_0x27c666(),_0x342fa0=_0xddea4['id'],_0x3f52f1='insertion:'+_0xa717b4,_0x3015b3=this['_setSuggestionData']({'id':_0x23dc1c,'type':_0x3f52f1,'createdAt':new Date(),'authorId':_0x342fa0,'attributes':_0x3120b7});for(const _0x30b671 of _0x197b57)this['_addSuggestionMarker'](_0x3f52f1,_0x23dc1c,_0x342fa0,_0x30b671,u['getMultiRangeId']());return _0x3015b3;}['markInlineFormat'](_0x54be3c,_0x23781d,_0x2d9e1d=null,_0x27cc0d={}){if(_0x2d9e1d=_0x2d9e1d||Gt(_0x23781d),_0x54be3c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x441dc1=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d9e1d,'accept');return this['forceDefaultExecution'](()=>_0x441dc1([_0x54be3c],_0x23781d,_0x27cc0d)),null;}const _0x572db2=this['editor']['plugins']['get']('Users')['me'],_0x2bdd0f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x1019fe,meta:_0x3ffaf6}of this['_findSuggestions'](_0x54be3c,'insertion'))_0x3ffaf6['isOwn']&&!_0x3ffaf6['isInsideObject']&&_0x2bdd0f['push'](..._0x1019fe['getRanges']());}const _0x15bd72=function(_0x599a18,_0x199def){const _0x5327f5=[];for(const _0x3a04c3 of _0x199def){const _0x26ade2=_0x599a18['getIntersection'](_0x3a04c3);_0x26ade2&&_0x5327f5['push'](_0x26ade2);}return _0x5327f5;}(_0x54be3c,_0x2bdd0f),_0x405b3c=function(_0x5582e1,_0x1e7f52){const _0xfbabc3=[_0x5582e1];for(const _0x2815ce of _0x1e7f52){let _0x340df7=0x0;for(;_0x340df7<_0xfbabc3['length'];){const _0x76fd4d=_0xfbabc3[_0x340df7]['getDifference'](_0x2815ce);_0xfbabc3['splice'](_0x340df7,0x1,..._0x76fd4d),_0x340df7+=_0x76fd4d['length'];}}return _0xfbabc3;}(_0x54be3c,_0x2bdd0f);_0x15bd72['length']&&this['_model']['change'](()=>{for(const _0x14f3ad of _0x15bd72){const _0x539f54=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2d9e1d,'accept');this['forceDefaultExecution'](()=>_0x539f54([_0x14f3ad],_0x23781d,_0x27cc0d));}});for(const _0x5c1528 of _0x405b3c){let _0x1aa526=null,_0xe4aa=_0x5c1528['start'],_0x1e0819=_0x5c1528['end'];for(const {suggestion:_0x31458a,meta:_0xb5cfa9}of this['_findSuggestions'](_0x5c1528,'formatInline')){if(!_0xb5cfa9['isOwn'])continue;if(_0x31458a['subType']!=_0x2d9e1d)continue;if(!qt(_0x31458a,_0x27cc0d))continue;const _0x305d9d=_0x31458a['getFirstRange']();if(_0x305d9d['containsRange'](_0x5c1528,!0x0))return null;_0xe4aa=_0xe4aa['isBefore'](_0x305d9d['start'])?_0xe4aa:_0x305d9d['start'],_0x1e0819=_0x1e0819['isAfter'](_0x305d9d['end'])?_0x1e0819:_0x305d9d['end'],_0x1aa526?_0x305d9d['start']['isBefore'](_0x1aa526['getFirstRange']()['start'])?(_0x1aa526['removeMarkers'](),_0x1aa526=_0x31458a):_0x31458a['removeMarkers']():_0x1aa526=_0x31458a;}const _0x5c2afd=this['_model']['createRange'](_0xe4aa,_0x1e0819);if(_0x1aa526)this['_setSuggestionRange'](_0x1aa526,_0x5c2afd);else{const _0x4f879e=_0x27c666(),_0x83d857=_0x572db2['id'];this['_setSuggestionData']({'id':_0x4f879e,'type':'formatInline:'+_0x2d9e1d,'data':_0x23781d,'createdAt':new Date(),'authorId':_0x83d857,'attributes':_0x27cc0d}),this['_addSuggestionMarker']('formatInline:'+_0x2d9e1d,_0x4f879e,_0x83d857,_0x5c2afd);}}return null;}['markBlockFormat'](_0x2b68e1,_0x4d27fd,_0x47ca3d=[],_0x5701cd=null,_0x462e4e={}){_0x4d27fd['formatGroupId']||(_0x4d27fd['formatGroupId']=_0x4d27fd['commandName']),_0x4d27fd['multipleBlocks']=_0x2b68e1['is']('range'),_0x5701cd=_0x5701cd||Gt(_0x4d27fd);const _0x2d6ceb=_0x47ca3d['map'](_0x204491=>Lt(_0x204491,this['_model'])),_0x34b555=_0x2b68e1['is']('range')?_0x2b68e1:Lt(_0x2b68e1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x51987e=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5701cd,'accept');return this['forceDefaultExecution'](()=>_0x51987e([_0x34b555],_0x4d27fd,_0x462e4e)),null;}_0x2d6ceb['push'](_0x34b555);let _0x26d8d4=!0x0;for(const _0x5d11c1 of _0x2d6ceb)if(!this['_rangeIsInLocalUserInsertion'](_0x5d11c1)){_0x26d8d4=!0x1;break;}if(_0x26d8d4&&'always'!==this['_trackFormatChanges']){const _0x485fb9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5701cd,'accept');return this['forceDefaultExecution'](()=>_0x485fb9([_0x34b555],_0x4d27fd,_0x462e4e)),null;}let _0x4809f1=null,_0x2fc5a1=_0x34b555['start'],_0x558f62=_0x34b555['end'];for(const {suggestion:_0x85a5dc,meta:_0x357fce}of this['_findSuggestions'](_0x34b555,'formatBlock')){if(!_0x357fce['isOwn'])continue;if(_0x357fce['isNextTo']||_0x357fce['containsRangeInObject']||_0x357fce['isInsideObject'])continue;if(_0x85a5dc['data']['formatGroupId']!=_0x4d27fd['formatGroupId'])continue;if(!qt(_0x85a5dc,_0x462e4e))continue;const _0x17e20b=_0x85a5dc['getFirstRange']();if(_0x85a5dc['subType']==_0x5701cd){if(_0x17e20b['containsRange'](_0x34b555,!0x0))return null;_0x2fc5a1=_0x2fc5a1['isBefore'](_0x17e20b['start'])?_0x2fc5a1:_0x17e20b['start'],_0x558f62=_0x558f62['isAfter'](_0x17e20b['end'])?_0x558f62:_0x17e20b['end'],_0x4809f1?_0x17e20b['start']['isBefore'](_0x4809f1['getFirstRange']()['start'])?(_0x4809f1['removeMarkers'](),_0x4809f1=_0x85a5dc):_0x85a5dc['removeMarkers']():_0x4809f1=_0x85a5dc;}else{const _0x4759fc=_0x34b555['getIntersection'](_0x17e20b);this['_cutOutSuggestionMarker'](_0x85a5dc,_0x4759fc);}}const _0x3d0313=this['editor']['plugins']['get']('Users')['me'],_0x1945b=_0x27c666(),_0x23d303=_0x3d0313['id'];if(_0x4809f1)return this['_setSuggestionRange'](_0x4809f1,this['_model']['createRange'](_0x2fc5a1,_0x558f62)),_0x4809f1;{const _0x5f1913=this['_setSuggestionData']({'id':_0x1945b,'type':'formatBlock:'+_0x5701cd,'data':_0x4d27fd,'createdAt':new Date(),'authorId':_0x23d303,'attributes':_0x462e4e});return this['_addSuggestionMarker']('formatBlock:'+_0x5701cd,_0x1945b,_0x23d303,this['_model']['createRange'](_0x2fc5a1,_0x558f62)),_0x5f1913;}}['markMultiRangeBlockFormat'](_0x4f3d88,_0x2f6186,_0x331300=[],_0x1296fa=null,_0x91e019={}){_0x2f6186['formatGroupId']||(_0x2f6186['formatGroupId']=_0x2f6186['commandName']);const _0x39388c=_0x4f3d88[0x0];_0x2f6186['multipleBlocks']=_0x39388c['is']('range'),_0x1296fa=_0x1296fa||Gt(_0x2f6186);const _0x424ccf=_0x331300['map'](_0x41c5c2=>Lt(_0x41c5c2,this['_model'])),_0x2599a5=_0x39388c['is']('range')?_0x4f3d88:_0x4f3d88['map'](_0x43750d=>Lt(_0x43750d,this['_model']));if('never'===this['_trackFormatChanges']){const _0x30b159=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1296fa,'accept');return this['forceDefaultExecution'](()=>_0x30b159(_0x2599a5,_0x2f6186,_0x91e019)),null;}_0x424ccf['push'](..._0x2599a5);let _0x12caae=!0x0;for(const _0x580ff3 of _0x424ccf)if(!this['_rangeIsInLocalUserInsertion'](_0x580ff3)){_0x12caae=!0x1;break;}if(_0x12caae&&'always'!==this['_trackFormatChanges']){const _0x1b301f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1296fa,'accept');return this['forceDefaultExecution'](()=>_0x1b301f(_0x2599a5,_0x2f6186,_0x91e019)),null;}const _0x40576d=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d57ad of this['getSuggestions']()){if(_0x1d57ad['author']['id']!=_0x40576d['id'])continue;if('formatBlock'!=_0x1d57ad['type']||_0x1d57ad['data']['formatGroupId']!=_0x2f6186['formatGroupId'])continue;if(!qt(_0x1d57ad,_0x91e019))continue;const _0x1bcc79=_0x1d57ad['subType']==_0x1296fa;for(let _0x29de30=0x0;_0x29de30<_0x2599a5['length'];_0x29de30++){const _0x3c4722=_0x2599a5[_0x29de30];for(const _0x44e592 of _0x1d57ad['getMarkers']()){const _0x5e3f88=_0x44e592['getRange']();if(_0x3c4722['isEqual'](_0x5e3f88)){_0x1bcc79?(_0x2599a5['splice'](_0x29de30,0x1),_0x29de30--):_0x1d57ad['removeMarker'](_0x44e592['name']);break;}}}}if(0x0==_0x2599a5['length'])return null;const _0x1c77d5=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1296fa,'join');for(const _0x53b539 of this['getSuggestions']())if(_0x53b539['author']['id']==_0x40576d['id']&&'formatBlock'==_0x53b539['type']&&_0x53b539['data']['formatGroupId']==_0x2f6186['formatGroupId']&&_0x53b539['subType']==_0x1296fa&&qt(_0x53b539,_0x91e019)&&(_0x1c77d5(_0x53b539['getRanges'](),_0x2599a5)||_0x1c77d5(_0x2599a5,_0x53b539['getRanges']()))){for(const _0xa7b898 of _0x2599a5)_0x53b539['addRange'](_0xa7b898);return _0x53b539;}const _0x31db21=_0x27c666(),_0x4dc2e2=_0x40576d['id'],_0x49e5e4='formatBlock:'+_0x1296fa,_0x445105=this['_setSuggestionData']({'id':_0x31db21,'type':_0x49e5e4,'data':_0x2f6186,'createdAt':new Date(),'authorId':_0x4dc2e2,'attributes':_0x91e019});for(const _0x2ce123 of _0x2599a5)this['_addSuggestionMarker'](_0x49e5e4,_0x31db21,_0x4dc2e2,_0x2ce123,u['getMultiRangeId']());return _0x445105;}['markDeletion'](_0x524774,_0x55e6a0=null,_0xe28e0e={}){if(_0x524774['isCollapsed'])return null;const _0x509358=this['editor']['plugins']['get']('Users')['me'],_0x5aea2a=new _0xb1b223(_0x524774['start'],_0x524774['end']);for(const {suggestion:_0x3cf77f,meta:_0x41b2b0}of this['_findSuggestions'](_0x5aea2a,'insertion'))if(_0x41b2b0['isOwn']&&!_0x41b2b0['isNextTo']){if(_0x3cf77f['isMultiRange']){const _0x13d16d=_0x3cf77f['getRanges']()['filter'](_0x1a79dc=>'$graveyard'!=_0x1a79dc['root']['rootName']);_0x13d16d['every'](_0x190f02=>_0x5aea2a['containsRange'](_0x190f02,!0x0))&&_0x3cf77f['discard']();if(_0x13d16d['some'](_0x5a577d=>_0x5a577d['containsRange'](_0x5aea2a,!0x0))){const _0x48a9fa=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x55e6a0,'accept');return this['forceDefaultExecution'](()=>_0x48a9fa([_0x5aea2a],null,_0xe28e0e)),null;}}else{const _0x270a44=_0x5aea2a['getIntersection'](_0x3cf77f['getFirstRange']());null!==_0x270a44&&_0x3cf77f['_onDiscard']([_0x270a44],null,_0xe28e0e);}}if(_0x5aea2a['detach'](),_0x5aea2a['isCollapsed']||'$graveyard'==_0x5aea2a['root']['rootName'])return null;let _0x1bbfac=null,_0x49f6a9=_0x5aea2a['start'],_0x3c76b9=_0x5aea2a['end'];const _0x366015=this['_findSuggestions'](_0x5aea2a,'deletion');for(const {suggestion:_0x5e24ce,meta:_0x570cf0}of _0x366015){const _0x3117c7=this['_model']['createRange'](_0x49f6a9,_0x3c76b9);if(_0x570cf0['isOwn']&&(this['_mergeNestedSuggestions']||!_0x570cf0['containsRangeInObject']&&!_0x570cf0['isInsideObject'])){if(_0x5e24ce['isMultiRange']){if(!qt(_0x5e24ce,_0xe28e0e))continue;let _0x260f17=!0x0;for(const _0x5b5da2 of _0x5e24ce['getRanges']()){if(_0x5b5da2['containsRange'](_0x3117c7,!0x0))return _0x5e24ce;_0x3117c7['containsRange'](_0x5b5da2)||(_0x260f17=!0x1);}_0x260f17&&_0x5e24ce['discard']();}else{const _0x27461d=_0x5e24ce['getFirstRange']();if(_0x27461d['containsRange'](_0x3117c7,!0x0))return _0x5e24ce;if(!qt(_0x5e24ce,_0xe28e0e)){_0x3117c7['containsRange'](_0x27461d)?_0x5e24ce['removeMarkers']():_0x27461d['containsPosition'](_0x49f6a9)?_0x49f6a9=_0x27461d['end']:_0x27461d['containsPosition'](_0x3c76b9)&&(_0x3c76b9=_0x27461d['start']);continue;}_0x49f6a9=_0x49f6a9['isBefore'](_0x27461d['start'])?_0x49f6a9:_0x27461d['start'],_0x3c76b9=_0x3c76b9['isAfter'](_0x27461d['end'])?_0x3c76b9:_0x27461d['end'],_0xe28e0e=Object['assign']({},_0x5e24ce['attributes']),_0x1bbfac?_0x27461d['start']['isBefore'](_0x1bbfac['getFirstRange']()['start'])?(_0x1bbfac['removeMarkers'](),_0x1bbfac=_0x5e24ce):_0x5e24ce['removeMarkers']():_0x1bbfac=_0x5e24ce;}}}if(_0x1bbfac)return this['_setSuggestionRange'](_0x1bbfac,this['_model']['createRange'](_0x49f6a9,_0x3c76b9)),_0x1bbfac;{const _0x467a29=_0x27c666(),_0x1665a1=this['_model']['createRange'](_0x49f6a9,_0x3c76b9),_0x5a57dc=_0x509358['id'],_0x1f4af4=_0x55e6a0?'deletion:'+_0x55e6a0:'deletion',_0x40bf82=this['_setSuggestionData']({'id':_0x467a29,'type':_0x1f4af4,'createdAt':new Date(),'authorId':_0x5a57dc,'attributes':_0xe28e0e});return this['_addSuggestionMarker'](_0x1f4af4,_0x467a29,_0x5a57dc,_0x1665a1),_0x40bf82;}}['markMultiRangeDeletion'](_0x1f0457,_0x223e46='multi',_0x47043c={}){const _0x58cf78=this['editor']['plugins']['get']('Users')['me'],_0x482e65=_0x1f0457['map'](_0x5b4f33=>new _0xb1b223(_0x5b4f33['start'],_0x5b4f33['end'])),_0x36f659=new Set();for(const {suggestion:_0x34178c,meta:_0x4e03e5}of this['_findSuggestions'](_0x482e65,'insertion'))_0x4e03e5['isOwn']&&!_0x4e03e5['isNextTo']&&_0x36f659['add'](_0x34178c);for(const _0x391aeb of _0x36f659)if(_0x391aeb['isMultiRange']){const _0x1e2c28=_0x391aeb['getRanges']();(!_0x391aeb['attributes']||!_0x391aeb['attributes']['skipNestingCheck'])&&(_0x1e2c28['every'](_0x5e6d1a=>_0x482e65['some'](_0x55c6bb=>_0x55c6bb['containsRange'](_0x5e6d1a,!0x0)))&&_0x391aeb['discard']());if(_0x482e65['every'](_0x30004a=>_0x1e2c28['some'](_0x7252d8=>_0x7252d8['containsRange'](_0x30004a,!0x0)))){const _0x427745=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x223e46,'accept');return this['forceDefaultExecution'](()=>_0x427745(_0x1f0457,null,_0x47043c)),null;}}else{const _0x1499ed=_0x391aeb['getFirstRange']();_0x482e65['some'](_0x40f61d=>_0x40f61d['containsRange'](_0x1499ed,!0x0))&&_0x391aeb['discard']();if(_0x482e65['every'](_0x1fe7c4=>_0x1499ed['containsRange'](_0x1fe7c4,!0x0))){const _0x3ee1c1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x223e46,'accept');return this['forceDefaultExecution'](()=>_0x3ee1c1(_0x482e65,null,_0x47043c)),null;}}const _0x7181b0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x223e46,'join');let _0x1964bf=null;for(const _0x1679af of this['getSuggestions']())if(_0x1679af['author']['id']==_0x58cf78['id']&&_0x1679af['isInContent']&&'deletion'==_0x1679af['type']&&_0x1679af['subType']==_0x223e46&&qt(_0x1679af,_0x47043c)&&(_0x7181b0(_0x1679af['getRanges'](),_0x482e65)||_0x7181b0(_0x482e65,_0x1679af['getRanges']()))){if(_0x1964bf){if(_0x1679af['commentThread']&&_0x1679af['commentThread']['length'])continue;for(const _0x9016 of _0x1679af['getRanges']())_0x1964bf['isIntersectingWithRange'](_0x9016)||_0x1964bf['addRange'](_0x9016);_0x1679af['removeMarkers']();}else{_0x1964bf=_0x1679af;for(const _0x426d10 of _0x482e65)_0x1679af['isIntersectingWithRange'](_0x426d10)||_0x1679af['addRange'](_0x426d10);}}if(_0x1964bf)return _0x1964bf;_0x36f659['clear']();for(const {suggestion:_0x1e0e84,meta:_0x67a074}of this['_findSuggestions'](_0x482e65,'deletion'))_0x67a074['isOwn']&&(this['_mergeNestedSuggestions']||!_0x67a074['containsRangeInObject']&&!_0x67a074['isInsideObject'])&&qt(_0x1e0e84,_0x47043c)&&_0x36f659['add'](_0x1e0e84);for(const _0x6c9351 of _0x36f659){const _0x26e13a=_0x6c9351['getRanges']();if(!_0x47043c||!_0x47043c['skipNestingCheck']){if(_0x482e65['every'](_0xd696c0=>_0x26e13a['some'](_0x2b0878=>_0x2b0878['containsRange'](_0xd696c0,!0x0))))return _0x6c9351;}(!_0x6c9351['attributes']||!_0x6c9351['attributes']['skipNestingCheck'])&&(_0x26e13a['every'](_0x1cd467=>_0x482e65['some'](_0x413ba7=>_0x413ba7['containsRange'](_0x1cd467,!0x0)))&&_0x6c9351['discard']());}const _0x2d447d=_0x27c666(),_0x42e7f2=_0x58cf78['id'],_0x584eaf='deletion:'+_0x223e46,_0x4c5b73=this['_setSuggestionData']({'id':_0x2d447d,'type':_0x584eaf,'createdAt':new Date(),'authorId':_0x42e7f2,'attributes':_0x47043c});for(const _0x361814 of _0x482e65)_0x361814['detach'](),_0x361814['isCollapsed']||'$graveyard'==_0x361814['root']['rootName']||this['_addSuggestionMarker'](_0x584eaf,_0x2d447d,_0x42e7f2,_0x361814,u['getMultiRangeId']());return _0x4c5b73;}['markAttributeChange'](_0x2f7e6c,_0x13c404,_0x5a38ae,_0x3efa16,_0x1dbd5e){if(_0x2f7e6c['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2cb653=this['editor']['plugins']['get']('Users')['me']['id'],_0x3b6a47=Array['from'](this['_suggestions']['values']())['filter'](_0x2c60d8=>'attribute'==_0x2c60d8['type']&&_0x2c60d8['data']['key']==_0x13c404&&_0x2c60d8['isIntersectingWithRange'](_0x2f7e6c));if('default'===this['_trackFormatChanges']){const _0x235a54=this['_findSuggestions'](_0x2f7e6c,'insertion')['filter'](({meta:_0xf59c49})=>_0xf59c49['isOwn']&&!_0xf59c49['isInsideObject']&&!_0xf59c49['isNextTo'])['map'](({suggestion:_0x946e21})=>_0x946e21);_0x3b6a47['unshift'](..._0x235a54);}const _0x3b285d=new Map([[_0x2f7e6c,_0x5a38ae]]);for(const _0x3138a7 of _0x3b6a47){const _0xeda4a3='attribute'==_0x3138a7['type']?_0x3138a7['data']['oldValue']:void 0x0,_0x292d48=_0x3138a7['getFirstRange'](),_0x51ec5a=Array['from'](_0x3b285d['keys']())['find'](_0x24076d=>_0x24076d['isIntersecting'](_0x292d48));if(!_0x51ec5a)continue;const _0x209d1c=_0x51ec5a['getDifference'](_0x292d48);this['_isBlockAttribute'](_0x13c404)&&'insertion'==_0x3138a7['type']&&0x0!=_0x209d1c['length']||(_0x3b285d['delete'](_0x51ec5a),_0x209d1c['forEach'](_0x22d054=>{_0x3b285d['set'](_0x22d054,_0x5a38ae);}),'insertion'!=_0x3138a7['type']&&_0xeda4a3!=_0x3efa16&&_0x3b285d['set'](_0x51ec5a['getIntersection'](_0x292d48),_0xeda4a3));}const _0x19d314=[];for(const [_0x3f3818,_0x4b8635]of _0x3b285d){const _0x246630=_0x27c666(),_0x3007b1={'key':_0x13c404,'oldValue':_0x4b8635,'newValue':_0x3efa16};_0x13c404['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':_0x13c404});const _0x4c2693=('attribute:'+(_0x13c404+'|'+Gt({'newValue':_0x3efa16})))['substring'](0x0,0x3c),_0x25e0cb=this['_setSuggestionData']({'id':_0x246630,'type':_0x4c2693,'data':_0x3007b1,'createdAt':new Date(),'authorId':_0x2cb653,'attributes':_0x1dbd5e});_0x19d314['push'](_0x25e0cb),this['_addSuggestionMarker'](_0x4c2693,_0x246630,_0x2cb653,_0x3f3818);}return _0x19d314;}['enableDefaultAttributesIntegration'](_0xcf4154){this['enableCommand'](_0xcf4154,(_0x591ac2,..._0x4c9ba1)=>{this['_recordAttributeChanges'](()=>{_0x591ac2(..._0x4c9ba1);});});}['registerBlockAttribute'](_0x79d1b7){this['_blockAttributeKeys']['add'](_0x79d1b7);}['registerInlineAttribute'](_0x8b08f1){this['_inlineAttributeKeys']['add'](_0x8b08f1);}['_getAttributeKey'](_0x50dde1){return'attribute'==_0x50dde1['type']?_0x50dde1['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2d6c6c,_0x112949){const _0x5d1649=_0x2d6c6c['getFirstMarker']();this['_model']['change'](_0xefcf58=>{_0xefcf58['updateMarker'](_0x5d1649,{'range':_0x112949});});}['_addThreadToSuggestion'](_0x461752){const _0x2178ef=_0x461752['id'],_0x1afb81=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2178ef)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1afb81,'threadId':_0x2178ef,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x59828e=this['_commentsRepository']['getCommentThread'](_0x2178ef);_0x59828e['unbind']('isRemovable'),_0x59828e['isRemovable']=!0x1,_0x461752['commentThread']=_0x59828e;}['_checkSuggestionCorrectness'](_0x3b82a9,_0x47a5ab,_0xed2c60,_0x55212f){if(_0x3b82a9['type']!=_0x47a5ab||_0x3b82a9['subType']!=_0xed2c60||_0x3b82a9['creator']['id']!=_0x55212f)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x5adf17('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x13bc60,_0x3a5736){const _0x2c1036=_0x13bc60['getFirstRange']();if(_0x3a5736['isEqual'](_0x2c1036))_0x13bc60['removeMarkers']();else{if(_0x2c1036['containsRange'](_0x3a5736)){const _0x345402=this['_model']['createPositionAt'](_0x3a5736['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13bc60,this['_model']['createRange'](_0x2c1036['start'],_0x345402));const _0x39ffc6=_0x27c666(),_0x55b211=_0x13bc60['creator']['id'],_0x4dfc51=_0x13bc60['type']+':'+_0x13bc60['subType'];this['_setSuggestionData']({'id':_0x39ffc6,'type':_0x4dfc51,'createdAt':new Date(),'authorId':_0x55b211,'data':_0x13bc60['data'],'attributes':_0x13bc60['attributes']});const _0x7f8dc0=this['_model']['createPositionAt'](_0x3a5736['end']['parent'],'after'),_0x29798a=this['_model']['createRange'](_0x7f8dc0,_0x2c1036['end']);this['_addSuggestionMarker'](_0x4dfc51,_0x39ffc6,_0x55b211,_0x29798a);}else{if(_0x2c1036['containsPosition'](_0x3a5736['start'])){const _0x26567b=this['_model']['createPositionAt'](_0x3a5736['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x13bc60,this['_model']['createRange'](_0x2c1036['start'],_0x26567b));}else{const _0x4f78d7=this['_model']['createPositionAt'](_0x3a5736['end']['parent'],'after');this['_setSuggestionRange'](_0x13bc60,this['_model']['createRange'](_0x4f78d7,_0x2c1036['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x6b0acd){for(const {suggestion:_0x31ffb1,meta:_0x2cb930}of this['_findSuggestions'](_0x6b0acd,'insertion')){if(!_0x2cb930['isOwn'])continue;const _0x215b11=_0x31ffb1['getRanges']();for(const _0x119d54 of _0x215b11)if(!_0x6b0acd['getDifference'](_0x119d54)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x1a6580){const _0x8d4ad2=this['editor']['plugins']['get']('Users')['getUser'](_0x1a6580);if(!_0x8d4ad2)throw new _0x5adf17('track-changes-user-not-found',this);return _0x8d4ad2;}['_getExternalAuthor'](_0x4a0b38){const _0x354a33=this['editor']['plugins']['get']('Users'),_0xdfe2c0=_0x2b6f8('external:'+_0x4a0b38),_0x2bbaa9=_0x354a33['getUser'](_0xdfe2c0);return _0x2bbaa9||_0x354a33['addUser']({'id':_0xdfe2c0,'name':_0x4a0b38});}['_createSuggestion'](_0x2a87ab,_0x4b380c,_0x403052,_0x42db51,_0x3416e2){const _0x37a1bb=this['_getAuthorFromId'](_0x42db51),_0x30f894=this['_suggestionFactory']['buildSuggestion'](_0x2a87ab,_0x4b380c,_0x403052,_0x37a1bb,_0x3416e2,_0x9954e9=>{this['_updateSuggestionData'](_0x403052,{'attributes':_0x9954e9});const _0x182d77=this['getSuggestion'](_0x403052);this['_joinWithAdjacentSuggestions'](new Set([_0x182d77])),this['_refreshSuggestionsChain'](new Set([_0x182d77]));});return this['listenTo'](_0x30f894,'accept',()=>{this['_updateSuggestionData'](_0x403052,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x30f894,'discard',()=>{this['_updateSuggestionData'](_0x403052,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x403052,_0x30f894),this['_suggestionState']['set'](_0x30f894,'notReady'),_0x30f894;}['_splitMarkerName'](_0x41d238){const _0x11cd3d=_0x41d238['split'](':');return{'group':_0x11cd3d[0x0],'type':_0x11cd3d[0x1],'subType':_0x11cd3d['length']>=0x5?_0x11cd3d[0x2]:null,'id':_0x11cd3d['length']<0x5?_0x11cd3d[0x2]:_0x11cd3d[0x3],'authorId':_0x11cd3d['length']<0x5?_0x11cd3d[0x3]:_0x11cd3d[0x4],'markerCount':0x6==_0x11cd3d['length']?_0x11cd3d[0x5]:null};}['_breakSuggestionMarker'](_0x3e0f82,_0x32d856,_0x4eeddd){const _0x864ace=_0x3e0f82['getFirstRange'](),_0x215702=_0x864ace['start'],_0x272553=_0x864ace['end'];this['_setSuggestionRange'](_0x3e0f82,this['_model']['createRange'](_0x215702,_0x32d856));const _0x184ee3=_0x27c666(),_0x2174c7=_0x3e0f82['creator']['id'],_0x1e1b20=_0x3e0f82['type']+(_0x3e0f82['subType']?':'+_0x3e0f82['subType']:'');this['_setSuggestionData']({'id':_0x184ee3,'type':_0x1e1b20,'createdAt':new Date(),'authorId':_0x2174c7,'originalSuggestionId':_0x3e0f82['id'],'attributes':_0x3e0f82['attributes'],'data':_0x3e0f82['data']});const _0x261eee=this['_getAttributeKey'](_0x3e0f82);('formatBlock'==_0x3e0f82['type']||_0x261eee&&this['_isBlockAttribute'](_0x261eee))&&(_0x4eeddd=this['_model']['createPositionBefore'](_0x4eeddd['parent'])),this['_addSuggestionMarker'](_0x1e1b20,_0x184ee3,_0x2174c7,this['_model']['createRange'](_0x4eeddd,_0x272553));}['_findSuggestions'](_0x448809,_0x14dbfa=null){const _0x1e1b09=[],_0x4af9df=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x448809)||(_0x448809=[_0x448809]);for(const _0x1cfd39 of this['getSuggestions']()){if(!_0x1cfd39['isInContent'])continue;if(_0x14dbfa&&_0x1cfd39['type']!=_0x14dbfa)continue;let _0x5342ba=!0x1;for(const _0x92a181 of _0x1cfd39['getRanges']()){for(const _0x4ed653 of _0x448809){const _0xcd7b93=_0x4ed653['start']['isEqual'](_0x92a181['end'])||_0x4ed653['end']['isEqual'](_0x92a181['start']);if(_0xcd7b93||_0x4ed653['getIntersection'](_0x92a181)){const _0x3afb59=_0x4ed653['containsRange'](_0x92a181)&&Ot(this['_model']['schema'],_0x92a181['start'],_0x4ed653),_0x1eb793=_0x92a181['containsRange'](_0x4ed653)&&Ot(this['_model']['schema'],_0x4ed653['start'],_0x92a181);_0x1e1b09['push']({'suggestion':_0x1cfd39,'meta':{'isOwn':_0x4af9df==_0x1cfd39['author'],'isNextTo':_0xcd7b93,'isInsideObject':_0x3afb59,'containsRangeInObject':_0x1eb793}}),_0x5342ba=!0x0;break;}}if(_0x5342ba)break;}}return _0x1e1b09;}['_addSuggestionMarker'](_0x30ed09,_0x3f36cf,_0x45bb65,_0x492c4f,_0x40e337){this['_model']['change'](_0x4c2c94=>{let _0x24218f='suggestion:'+_0x30ed09+':'+_0x3f36cf+':'+_0x45bb65;_0x40e337&&(_0x24218f=_0x24218f+':'+_0x40e337),_0x4c2c94['addMarker'](_0x24218f,{'range':_0x492c4f,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5cf6df){const _0x365a2b=_0x5cf6df['previous'],_0x430ca8=_0x5cf6df['next'];_0x5cf6df['previous']=null,_0x5cf6df['next']=null,null!=_0x365a2b&&_0x365a2b['next']==_0x5cf6df&&(_0x365a2b['next']=_0x430ca8),null!=_0x430ca8&&_0x430ca8['previous']==_0x5cf6df&&(_0x430ca8['previous']=_0x365a2b),'ready'==this['_suggestionState']['get'](_0x5cf6df)&&(this['_suggestionState']['set'](_0x5cf6df,'removed'),this['fire']('suggestionUnloaded',_0x5cf6df,_0x365a2b,_0x430ca8));}['_setSuggestionData'](_0x291c93){const _0x5c686e=_0x291c93['id'],_0x4070ad=this['addSuggestionData'](_0x291c93);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x2b6761=this['editor']['plugins']['get']('PendingActions'),_0x72728b=_0x4070ad['hasComments'],_0x2b3e57=_0x4070ad['subType']?_0x4070ad['type']+':'+_0x4070ad['subType']:_0x4070ad['type'],_0x295919=this['editor']['locale'],_0x3581d5=_0x2b6761['add'](o(_0x295919,'PENDING_ACTION_SUGGESTION')),_0x51e976={'id':_0x5c686e,'type':_0x2b3e57,'hasComments':_0x72728b,'data':_0x291c93['data']||null,'originalSuggestionId':_0x291c93['originalSuggestionId']||null,'attributes':_0x4070ad['attributes']};this['_adapter']['addSuggestion'](_0x51e976)['then'](_0x4bee77=>{_0x4070ad['_saved']=!0x0,_0x2b6761['remove'](_0x3581d5),_0x4bee77&&_0x4bee77['createdAt']&&(this['_suggestions']['get'](_0x5c686e)['createdAt']=_0x4bee77['createdAt']);})['catch'](_0x3397ba=>{throw _0x327844('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4070ad['discard']();}),_0x4070ad['stopListening'](),this['_suggestions']['delete'](_0x4070ad['id']),this['_suggestionState']['delete'](_0x4070ad),_0x3397ba;});}return _0x4070ad;}['_isBlockAttribute'](_0x236dc0){return this['_blockAttributeKeys']['has'](_0x236dc0);}['_updateSuggestionData'](_0x16a821,_0x28698e){const _0x13ace5=this['editor']['plugins']['get']('PendingActions'),_0x303437=this['getSuggestion'](_0x16a821);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x303437['_saved']){const _0xfa9b4d=_0x13ace5['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x16a821,_0x28698e)['then'](()=>{_0x13ace5['remove'](_0xfa9b4d);});}else _0x303437['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x16a821,_0x28698e);});}}['_getSuggestionData'](_0x18d444){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x5adf17('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x18d444);}['_handleNewSuggestionMarker'](_0xb065e2){const {id:_0x3dc9ed,type:_0x21a315,subType:_0x5ea7d5,authorId:_0x273166}=this['_splitMarkerName'](_0xb065e2),_0x25ff04=this['_suggestions']['get'](_0x3dc9ed)||this['_createSuggestion'](_0x21a315,_0x5ea7d5,_0x3dc9ed,_0x273166,{});switch(this['_checkSuggestionCorrectness'](_0x25ff04,_0x21a315,_0x5ea7d5,_0x273166),this['_suggestionState']['get'](_0x25ff04)){case'notReady':this['_getSuggestionData'](_0x3dc9ed)['then'](_0x4a3966=>{let _0x31afce=Promise['resolve']();_0x4a3966['hasComments']&&(_0x31afce=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3dc9ed})),_0x31afce['then'](()=>{this['addSuggestionData'](_0x4a3966)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x25ff04,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3dc9ed,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x25ff04,'ready'),this['fire']('suggestionLoaded',_0x25ff04);break;case'ready':this['fire']('suggestionChanged',_0x25ff04);}return _0x25ff04['addMarkerName'](_0xb065e2),_0x25ff04;}['_refreshSuggestionsChain'](_0x53d980){const _0x1963fd=Array['from'](_0x53d980),_0x52d3f6=_0x1963fd['filter'](_0x566970=>'attribute'==_0x566970['type']);this['_refreshAttributeSuggestionsChain'](_0x52d3f6);const _0x1162d1=_0x1963fd['filter'](_0x50e585=>!_0x50e585['isMultiRange']&&'attribute'!=_0x50e585['type']),_0x30c55f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3d5591=>!_0x3d5591['isMultiRange']&&'attribute'!=_0x3d5591['type']),_0x166f86=_0x30c55f['filter'](_0x2d4178=>!_0x53d980['has'](_0x2d4178)),_0x419ed4=new Map(_0x30c55f['map'](_0x35a609=>[_0x35a609,this['_suggestionFactory']['getSuggestionCallback'](_0x35a609['type'],_0x35a609['subType'],'chain')])),_0x147d90=new Map(_0x30c55f['map'](_0x4ba7f1=>[_0x4ba7f1,_0x4ba7f1['getFirstRange']()])),_0x3991de=new Set(),_0x3a07a3=new Set();for(let _0x384223=0x0;_0x384223<_0x1162d1['length'];_0x384223++)_0x12a680(_0x1162d1[_0x384223],_0x1162d1,_0x384223+0x1);for(let _0x4908c7=0x0;_0x4908c7<_0x1162d1['length'];_0x4908c7++)_0x12a680(_0x1162d1[_0x4908c7],_0x166f86,0x0);const _0xee2c7c=new Set();for(let _0x92e5d2=0x0;_0x92e5d2<_0x1162d1['length'];_0x92e5d2++){const _0x112861=_0x1162d1[_0x92e5d2];!_0x3a07a3['has'](_0x112861)&&_0x112861['previous']&&(_0xee2c7c['add'](_0x112861['previous']),_0x112861['previous']['next']===_0x112861&&(_0x112861['previous']['next']=null),_0x112861['previous']=null),!_0x3991de['has'](_0x112861)&&_0x112861['next']&&(_0xee2c7c['add'](_0x112861['next']),_0x112861['next']['previous']===_0x112861&&(_0x112861['next']['previous']=null),_0x112861['next']=null);}function _0x12a680(_0x21234a,_0x3a11be,_0x51aea0){for(let _0xf1a94f=_0x51aea0;_0xf1a94f<_0x3a11be['length'];_0xf1a94f++){const _0x400c30=_0x25eb50(_0x21234a,_0x3a11be[_0xf1a94f]);_0x400c30&&(_0x400c30[0x0]['next']=_0x400c30[0x1],_0x400c30[0x1]['previous']=_0x400c30[0x0],_0x3991de['add'](_0x400c30[0x0]),_0x3a07a3['add'](_0x400c30[0x1]));}}function _0x25eb50(_0x427032,_0x1a52bb){if(_0x427032['author']['id']!==_0x1a52bb['author']['id'])return null;const _0x3bc5dd=_0x419ed4['get'](_0x427032)(_0x427032,_0x1a52bb,_0x147d90['get'](_0x427032),_0x147d90['get'](_0x1a52bb));if(!_0x3bc5dd)return null;return _0x419ed4['get'](_0x1a52bb)(_0x427032,_0x1a52bb,_0x147d90['get'](_0x427032),_0x147d90['get'](_0x1a52bb))?_0x3bc5dd[0x1]['commentThread']&&_0x3bc5dd[0x1]['commentThread']['length']?null:_0x3bc5dd:null;}_0xee2c7c['size']&&this['_refreshSuggestionsChain'](_0xee2c7c);}['_refreshAttributeSuggestionsChain'](_0x514140){if(0x0==_0x514140['length'])return;const _0x1780a4=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fab61=>'attribute'==_0x1fab61['type']&&_0x1fab61['_isDataLoaded']),_0x477477=[],_0x331439=new Map();for(const _0xad96f5 of _0x1780a4){const _0x5626fa=_0x2b6f8(_0xad96f5['attributes']);_0x331439['has'](_0x5626fa)||(_0x331439['set'](_0x5626fa,_0x477477['length']),_0x477477['push']([]));const _0xcffea1=_0x331439['get'](_0x5626fa);_0x477477[_0xcffea1]['push'](_0xad96f5);}!(function(){_0x477477['sort']((_0x14e7cf,_0x1823f1)=>{const _0x45e85d=_0x14e7cf[0x0]['createdAt'],_0x23d383=_0x1823f1[0x0]['createdAt'];return _0x45e85d==_0x23d383?_0x14e7cf[0x0]['attributes']['groupId']<_0x1823f1[0x0]['attributes']['groupId']?-0x1:0x1:_0x45e85d<_0x23d383?-0x1:0x1;});for(const _0x31beea of _0x477477)_0x31beea['sort']((_0x3c116b,_0x6f6d03)=>_0x3c116b['id']<_0x6f6d03['id']?-0x1:0x1);}());for(let _0x1701fe=0x0;_0x1701fe<_0x477477['length'];_0x1701fe++){if(0x0==_0x477477[_0x1701fe]['length'])continue;const _0x3b401f=[];for(let _0x46479b=_0x1701fe+0x1;_0x46479b<_0x477477['length'];_0x46479b++)0x0!=_0x477477[_0x46479b]['length']&&_0x42faa0(_0x477477[_0x1701fe],_0x477477[_0x46479b])&&_0x3b401f['push'](_0x46479b);for(const _0x415872 of _0x3b401f)_0x477477[_0x1701fe]=_0x477477[_0x1701fe]['concat'](_0x477477[_0x415872]),_0x477477[_0x415872]=[];}for(const _0x2b2e1c of _0x477477)for(let _0x418873=0x0;_0x418873<_0x2b2e1c['length'];_0x418873++){const _0x46990b=_0x2b2e1c[_0x418873+0x1]||null;_0x2b2e1c[_0x418873]['next']!==_0x46990b&&(_0x2b2e1c[_0x418873]['next']=_0x46990b);}for(const _0xdbd8df of _0x477477)for(let _0xf9ea32=0x0;_0xf9ea32<_0xdbd8df['length'];_0xf9ea32++){const _0x1aef83=_0xdbd8df[_0xf9ea32-0x1]||null;_0xdbd8df[_0xf9ea32]['previous']!==_0x1aef83&&(_0xdbd8df[_0xf9ea32]['previous']=_0x1aef83);}function _0x42faa0(_0x431022,_0x293cd8){if(_0x431022[0x0]['attributes']['groupId']!==_0x293cd8[0x0]['attributes']['groupId']&&_0x431022[0x0]['author']!==_0x293cd8[0x0]['author'])return!0x1;if(!function(_0x414827,_0x54b42a){if(!_0x414827['hasComments']&&!_0x54b42a['hasComments'])return!0x0;if(_0x414827['hasComments']&&_0x54b42a['hasComments'])return!0x1;if(_0x414827['hasComments']&&_0x54b42a['createdAt']<_0x414827['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x54b42a['hasComments']&&_0x414827['createdAt']<_0x54b42a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x431022[0x0],_0x293cd8[0x0]))return!0x1;const _0x2b2b68=Tt(_0x431022[0x0]['attributes'],'groupId'),_0x2dac2=Tt(_0x293cd8[0x0]['attributes'],'groupId');if(!_0x1fb0dc(_0x2b2b68,_0x2dac2))return!0x1;return!!_0x431022['every'](_0x7d8689=>_0x293cd8['some'](_0x9507bd=>_0x7d8689['getFirstRange']()['isEqual'](_0x9507bd['getFirstRange']())))&&_0x293cd8['every'](_0x27934e=>_0x431022['some'](_0x2acbce=>_0x27934e['getFirstRange']()['isEqual'](_0x2acbce['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x1abb8a){const _0x1c8bef=Array['from'](_0x1abb8a),_0x2add4f=this['getSuggestions']({'skipNotAttached':!0x0}),_0x5e78d8=_0x2add4f['filter'](_0x4bf666=>!_0x1abb8a['has'](_0x4bf666)),_0x2556e7=new Map(_0x1c8bef['map'](_0x4da7ab=>[_0x4da7ab,this['_suggestionFactory']['getSuggestionCallback'](_0x4da7ab['type'],_0x4da7ab['subType'],'join')])),_0x3a6440=new Map(_0x2add4f['map'](_0x2863b2=>[_0x2863b2,_0x2863b2['getRanges']()]));for(let _0x5a5ade=0x0;_0x5a5ade<_0x1c8bef['length'];_0x5a5ade++){if(_0x18e651(this,_0x1c8bef[_0x5a5ade],_0x1c8bef,_0x5a5ade+0x1))return!0x0;}for(let _0x28fe02=0x0;_0x28fe02<_0x1c8bef['length'];_0x28fe02++){if(_0x18e651(this,_0x1c8bef[_0x28fe02],_0x5e78d8,0x0))return!0x0;}return!0x1;function _0x18e651(_0x31b3a7,_0x15e8b5,_0x46bd5a,_0x536907){for(let _0xed0fe7=_0x536907;_0xed0fe7<_0x46bd5a['length'];_0xed0fe7++){const _0x1e83ad=_0x46bd5a[_0xed0fe7];if(_0x1e83ad['type']!==_0x15e8b5['type']||_0x1e83ad['author']['id']!==_0x15e8b5['author']['id']||_0x1e83ad['subType']!==_0x15e8b5['subType'])continue;if(!Jt(_0x15e8b5,_0x1e83ad))continue;if('attribute'==_0x15e8b5['type']&&_0x15e8b5['data']['oldValue']!=_0x1e83ad['data']['oldValue'])continue;if('attribute'==_0x15e8b5['type']&&_0x31b3a7['_isBlockAttribute'](_0x15e8b5['data']['key']))continue;if('formatBlock'==_0x15e8b5['type']){const _0x32aacd=_0x31b3a7['editor']['model'],_0x313ae9=_0x15e8b5['getContainedElement']();if(_0x313ae9&&(_0x32aacd['schema']['isObject'](_0x313ae9)||_0x32aacd['schema']['isLimit'](_0x313ae9)))continue;}const _0x9dda80=_0x2556e7['get'](_0x15e8b5),_0xd96fb6=_0x3a6440['get'](_0x15e8b5),_0x1b9616=_0x3a6440['get'](_0x1e83ad),_0x417143=_0x15e8b5['commentThread']&&_0x15e8b5['commentThread']['length'],_0x2ec8b7=_0x1e83ad['commentThread']&&_0x1e83ad['commentThread']['length'];if(!_0x417143&&_0x9dda80(_0x1b9616,_0xd96fb6))return _0x31b3a7['_joinSuggestions'](_0x1e83ad,_0x15e8b5),_0x3a6440['delete'](_0x15e8b5),!0x0;if(!_0x2ec8b7&&_0x9dda80(_0xd96fb6,_0x1b9616))return _0x31b3a7['_joinSuggestions'](_0x15e8b5,_0x1e83ad),_0x3a6440['delete'](_0x1e83ad),!0x0;}return!0x1;}}['_joinSuggestions'](_0x1ecc58,_0x84a749){if(_0x1ecc58['isMultiRange']){for(const _0x175748 of _0x84a749['getRanges']())_0x1ecc58['addRange'](_0x175748);}else{const _0x2894cf=_0x84a749['getFirstRange']()['end'];this['_setSuggestionRange'](_0x1ecc58,this['_model']['createRange'](_0x1ecc58['getFirstRange']()['start'],_0x2894cf));}_0x84a749['removeMarkers']();}['_getMarkerAnnouncementText'](_0x3abcc3,_0x53becc,_0x1c8a28){const _0x2571d4=_0x3abcc3['startsWith']('format')||_0x3abcc3['startsWith']('attribute')?'FORMATTING':_0x3abcc3['toUpperCase']();return o(this['editor']['locale'],_0x53becc+'_'+_0x2571d4+'_SUGGESTION_ANNOUNCEMENT',_0x1c8a28);}['_initAriaMarkerChangeAnnouncements'](){const _0x6624b7=this['editor'];if(!_0x6624b7['ui'])return;const {ariaLiveAnnouncer:_0x14a13f}=_0x6624b7['ui'];_0x3d70e3(this['_model'],({left:_0x446d18,entered:_0x2a5b0f})=>{for(const _0x43843b of _0x446d18){const {group:_0x4bb1d1,type:_0x12159c}=this['_splitMarkerName'](_0x43843b['name']);if('suggestion'===_0x4bb1d1){_0x14a13f['announce'](this['_getMarkerAnnouncementText'](_0x12159c,'LEAVE'));break;}}for(const _0x302d1b of _0x2a5b0f){const {group:_0x58aa43,type:_0x4aaa6f}=this['_splitMarkerName'](_0x302d1b['name']);if('suggestion'===_0x58aa43){_0x14a13f['announce'](this['_getMarkerAnnouncementText'](_0x4aaa6f,'ENTER',_0x560e7d(_0x5cd213)));break;}}});}['_processAttributeChanges'](_0x4547fc){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1a3e93=this['editor'],_0xb89089=_0x1a3e93['model']['document']['differ']['getChanges']();if(0x0==_0xb89089['length'])return!0x1;const _0x26818b=[],_0x131ff3=_0xb89089['filter'](_0x3ccbbb=>'attribute'==_0x3ccbbb['type']),_0x5875d2=_0xb89089['filter'](_0x199bda=>'insert'==_0x199bda['type']&&'$text'!=_0x199bda['name']),_0x25da86=_0xb89089['filter'](_0x186b73=>'remove'==_0x186b73['type']&&'$text'!=_0x186b73['name']);for(const _0x389a82 of _0x131ff3)_0x26818b['push']({'key':_0x389a82['attributeKey'],'newValue':_0x389a82['attributeNewValue'],'oldValue':_0x389a82['attributeOldValue'],'range':Pt(_0x389a82['range'],_0x1a3e93['model'])});for(const _0xfb8123 of _0x5875d2){const _0x5b4bdc=_0x25da86['find'](_0x8472d2=>_0x8472d2['position']['isEqual'](_0xfb8123['position']));_0x5b4bdc&&_0x26818b['push']({'key':m,'newValue':_0xfb8123['name'],'oldValue':_0x5b4bdc['name'],'range':_0x1a3e93['model']['createRangeOn'](_0xfb8123['position']['nodeAfter'])});}return 0x0!=_0x26818b['length']&&this['_reduceExistingSuggestions'](_0x4547fc,_0x26818b);}['_processAttributeSuggestions'](_0x21526c){let _0x23dd38=!0x1;const _0x56411d=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x242f3a=>_0x242f3a['data']['newRange']&&_0x242f3a['name']['startsWith']('suggestion:attribute:'));for(const _0x1bf6f8 of _0x56411d){const {subType:_0x528e65,id:_0x275ddd}=this['_splitMarkerName'](_0x1bf6f8['name']),_0x1fa999=_0x528e65['split']('|')[0x0];for(const _0x1c2b8c of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1c2b8c['id']!=_0x275ddd&&'attribute'==_0x1c2b8c['type']&&_0x1c2b8c['data']&&_0x1c2b8c['data']['key']==_0x1fa999&&_0x1c2b8c['getFirstRange']()['isIntersecting'](_0x1bf6f8['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1c2b8c,_0x1bf6f8['data']['newRange'],_0x21526c),_0x23dd38=!0x0);}return _0x23dd38;}['_recordAttributeChanges'](_0x5ef81d){this['_recordAttributeSuggestions']=!0x0,_0x5ef81d();}['_isRegisteredAttribute'](_0x3ac639){const _0x51c077=this['_isBlockAttribute'](_0x3ac639),_0x33c079=this['_inlineAttributeKeys']['has'](_0x3ac639);return _0x51c077||_0x33c079;}['_reduceExistingSuggestions'](_0x1d52d5,_0x3a0d61){if(0x0==_0x3a0d61['length'])return!0x1;let _0x2202fe=!0x1;for(const _0x5dcd82 of _0x3a0d61){const _0x385a26=this['_findSuggestions'](_0x5dcd82['range'],'attribute')['filter'](_0x381195=>!_0x381195['meta']['isNextTo'])['map'](_0x61496c=>_0x61496c['suggestion']),_0x17dd47=_0x2b6f8({'newValue':_0x5dcd82['newValue']});_0x385a26['filter'](_0x2f260d=>{const [_0x4c7024,_0x41a9d4]=_0x2f260d['subType']['split']('|');return _0x4c7024==_0x5dcd82['key']&&_0x41a9d4!=_0x17dd47;})['forEach'](_0x494e54=>{this['_reduceSuggestionAttributeRange'](_0x494e54,_0x5dcd82['range'],_0x1d52d5),_0x2202fe=!0x0;});}return _0x2202fe;}['_reduceSuggestionAttributeRange'](_0x46d48c,_0x276371,_0x588142){const _0x176e2f=_0x46d48c['getFirstRange']()['getDifference'](_0x276371);0x0!==_0x176e2f['length']?0x1!==_0x176e2f['length']?this['_breakSuggestionMarker'](_0x46d48c,_0x276371['start'],_0x276371['end']):this['_setSuggestionRange'](_0x46d48c,_0x176e2f[0x0]):_0x588142['removeMarker'](_0x46d48c['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xcddfb3){this['_editor']=_0xcddfb3,this['_model']=_0xcddfb3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x35bbd6,_0x1424e2,_0x488028,_0x3d8541,_0x453cef,_0x5d74d2){return new u(this['_model'],{'type':_0x35bbd6,'subType':_0x1424e2,'id':_0x488028,'author':_0x3d8541,'creator':_0x3d8541,'attributes':_0x453cef,'onAttributesChange':_0x5d74d2,'onAccept':(..._0x369b73)=>this['getSuggestionCallback'](_0x35bbd6,_0x1424e2,'accept')(..._0x369b73),'onDiscard':(..._0x22aa96)=>this['getSuggestionCallback'](_0x35bbd6,_0x1424e2,'discard')(..._0x22aa96)});}['registerCustomCallback'](_0x4109ce,_0x28085f,_0x4eef6b,_0x68a3ee){const _0x436551=_0x4109ce+':'+_0x28085f+':'+_0x4eef6b;this['_customCallbacks']['set'](_0x436551,_0x68a3ee);}['getSuggestionCallback'](_0x1b7e3e,_0x19bb32,_0x1413f6){const _0x4ca675=_0x1b7e3e+':'+_0x19bb32+':'+_0x1413f6;return this['_customCallbacks']['get'](_0x4ca675)||this['_defaultCallbacks']['get'](_0x1b7e3e+':'+_0x1413f6);}['_registerDefaultCallbacks'](){const _0x16339e=()=>!0x1,_0x2cb5f6=_0x5b5a96=>{_0x5b5a96['sort']((_0x541292,_0x4be086)=>_0x541292['start']['isBefore'](_0x4be086['start'])?0x1:-0x1),this['_model']['change'](_0x5676e6=>{for(const _0x553d31 of _0x5b5a96){let _0x3bcbf5;_0x3bcbf5=_0x553d31['end']['isAtEnd']&&_0x553d31['end']['parent']==_0x553d31['start']['nodeAfter']?_0x5676e6['createSelection'](_0x553d31['start']['nodeAfter'],'on'):_0x5676e6['createSelection'](_0x553d31),this['_model']['deleteContent'](_0x3bcbf5,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x592b1d=(_0xc670e8,_0x31bd63)=>{_0x31bd63&&this['_model']['change'](_0x54edb9=>{const {commandName:_0x53ba3e,commandParams:_0x2237e8=[]}=_0x31bd63,_0x2b8c16=_0xc670e8['map'](_0x5a183b=>(Vt(_0x5a183b)&&(_0x5a183b=this['_model']['createRange'](_0x5a183b['end'])),_0x5a183b))['filter'](_0x549e1e=>'$graveyard'!==_0x549e1e['root']['rootName']);if(_0x2b8c16['length']<0x1)return;const _0x3afbdd=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x4e0dfc=>_0xb1b223['fromRange'](_0x4e0dfc));_0x54edb9['setSelection'](_0x2b8c16);for(const _0x1a3608 of this['_editor']['commands']['commands']())_0x1a3608['refresh']();_0x2237e8['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x53ba3e,..._0x2237e8);const _0x8544b5=_0x3afbdd['filter'](_0x3f9b63=>'$graveyard'!=_0x3f9b63['root']['rootName']);_0x8544b5['length']>0x0&&_0x54edb9['setSelection'](_0x8544b5);for(const _0x1fb56d of _0x3afbdd)_0x1fb56d['detach']();});},_0x5a305d=(_0xa5b535,_0x3949d6)=>0x1==_0xa5b535['length']&&0x1==_0x3949d6['length']&&_0xa5b535[0x0]['end']['isEqual'](_0x3949d6[0x0]['start']),_0x325fe4=(_0xe4e4bb,_0x5853e5,_0x1a577e,_0x40fc45)=>Ht(_0xe4e4bb,_0x5853e5,_0x1a577e,_0x40fc45,this['_model'])?[_0xe4e4bb,_0x5853e5]:Ht(_0x5853e5,_0xe4e4bb,_0x40fc45,_0x1a577e,this['_model'])?[_0x5853e5,_0xe4e4bb]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x16339e),this['_defaultCallbacks']['set']('insertion:discard',_0x2cb5f6),this['_defaultCallbacks']['set']('insertion:join',_0x5a305d),this['_defaultCallbacks']['set']('insertion:chain',_0x325fe4),this['_defaultCallbacks']['set']('deletion:accept',_0x2cb5f6),this['_defaultCallbacks']['set']('deletion:discard',_0x16339e),this['_defaultCallbacks']['set']('deletion:join',_0x5a305d),this['_defaultCallbacks']['set']('deletion:chain',_0x325fe4),this['_defaultCallbacks']['set']('formatInline:accept',_0x592b1d),this['_defaultCallbacks']['set']('formatInline:discard',_0x16339e),this['_defaultCallbacks']['set']('formatInline:join',_0x5a305d),this['_defaultCallbacks']['set']('formatInline:chain',_0x16339e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x592b1d),this['_defaultCallbacks']['set']('formatBlock:discard',_0x16339e),this['_defaultCallbacks']['set']('formatBlock:join',_0x5a305d),this['_defaultCallbacks']['set']('formatBlock:chain',_0x16339e),this['_defaultCallbacks']['set']('attribute:accept',_0x16339e),this['_defaultCallbacks']['set']('attribute:discard',(_0x51915e,_0x2cf111)=>{if(!_0x2cf111)return;const _0x1696c2=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x55a54a=>{if(_0x2cf111['key']==m)for(const _0x178dfb of _0x51915e){const _0x54e3b9=_0x178dfb['start']['nodeAfter'],_0x1fa201=_0x2cf111['oldValue'];_0x55a54a['rename'](_0x54e3b9,_0x1fa201);}else{if(_0x1696c2['_isBlockAttribute'](_0x2cf111['key'])){for(const _0x5d893f of _0x51915e)void 0x0!==_0x2cf111['oldValue']?_0x55a54a['setAttribute'](_0x2cf111['key'],_0x2cf111['oldValue'],_0x5d893f['start']['nodeAfter']):_0x55a54a['removeAttribute'](_0x2cf111['key'],_0x5d893f['start']['nodeAfter']);}else{for(const _0x1f0421 of _0x51915e)_0x2cf111['oldValue']?_0x55a54a['setAttribute'](_0x2cf111['key'],_0x2cf111['oldValue'],_0x1f0421):_0x55a54a['removeAttribute'](_0x2cf111['key'],_0x1f0421);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x5a305d);}}function Ot(_0x42666f,_0x5518b0,_0x5e0e79){for(const _0x3303de of _0x5518b0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3303de['root']==_0x3303de)return!0x1;if(!_0x5e0e79['containsItem'](_0x3303de))return!0x1;if(_0x42666f['isObject'](_0x3303de)||_0x42666f['isLimit'](_0x3303de))return!0x0;}return!0x1;}function Vt(_0x5e3841){return _0x5e3841['end']['parent']==_0x5e3841['start']['nodeAfter']&&_0x5e3841['end']['isAtStart'];}function Ut(_0x19def0,_0x513e73,_0x343846,_0x603dc7){const _0x330d57=_0x587796=>!_0x587796['item']['is']('$textProxy')&&!_0x603dc7['isObject'](_0x587796['item']),_0x2e56c7=_0x19def0['start']['getLastMatchingPosition'](_0x330d57),_0x2b3d98=_0x19def0['end']['getLastMatchingPosition'](_0x330d57,{'direction':'backward'});return(!_0x19def0['start']['isEqual'](_0x2e56c7)||!_0x19def0['end']['isEqual'](_0x2b3d98))&&(_0x2e56c7['isBefore'](_0x2b3d98)?_0x343846['updateMarker'](_0x513e73,{'range':_0x343846['createRange'](_0x2e56c7,_0x2b3d98)}):_0x343846['removeMarker'](_0x513e73),!0x0);}function Gt(_0x2e936c){return _0x2b6f8(_0x2e936c);}function Ft(_0x40595d){const _0x29a4d5=_0x40595d['start']['nodeAfter'];return _0x29a4d5&&_0x29a4d5['is']('element');}function Pt(_0x348ede,_0x10cdfc){return null==_0x348ede['end']['nodeBefore']&&_0x348ede['end']['parent']==_0x348ede['start']['nodeAfter']?Lt(_0x348ede['start']['nodeAfter'],_0x10cdfc):_0x348ede;}function Lt(_0xb269f1,_0x505157){const _0x27fa88=_0x505157['schema']['isObject'](_0xb269f1)||_0x505157['schema']['isSelectable'](_0xb269f1);return _0x505157['createRange'](_0x505157['createPositionAt'](_0xb269f1,'before'),_0x27fa88?_0x505157['createPositionAfter'](_0xb269f1):_0x505157['createPositionAt'](_0xb269f1,'end'));}function Ht(_0x101178,_0x28bce7,_0x20539e,_0x36d733,_0x45ac63){if(_0x101178['next'])return!0x1;if(!Jt(_0x101178,_0x28bce7))return!0x1;if(_0x20539e['end']['isEqual'](_0x36d733['start']))return!0x0;if(_0x101178['type']!=_0x28bce7['type'])return!0x1;if(!_0x20539e['end']['isTouching'](_0x36d733['start']))return!0x1;const _0x5082e7=_0x45ac63['createRange'](_0x20539e['end'],_0x36d733['start'])['getWalker']();for(const _0x286a2a of _0x5082e7)if(['elementStart','elementEnd']['includes'](_0x286a2a['type'])&&_0x45ac63['schema']['isLimit'](_0x286a2a['item']))return!0x1;return!0x0;}function Jt(_0x38aed4,_0x279b3f){if(!_0x38aed4['_isDataLoaded']||!_0x279b3f['_isDataLoaded'])return!0x1;const _0x459c58=new Set(Object['keys'](_0x38aed4['attributes'])),_0x27adbc=new Set(Object['keys'](_0x279b3f['attributes']));if(_0x459c58['delete']('groupId'),_0x27adbc['delete']('groupId'),0x0==_0x459c58['size']&&0x0==_0x27adbc['size'])return!0x0;if(_0x459c58['size']!=_0x27adbc['size'])return!0x1;const _0xcfc2a9={..._0x38aed4['attributes']},_0x3b5f37={..._0x279b3f['attributes']};return delete _0xcfc2a9['groupId'],delete _0x3b5f37['groupId'],JSON['stringify'](_0xcfc2a9)==JSON['stringify'](_0x3b5f37);}function qt(_0x149927,_0x3b7005){const _0x1ec2b6=zt(_0x149927['attributes']),_0x4cd5f7=zt(_0x3b7005);if(!_0x149927['_isDataLoaded'])return!0x1;for(const _0x1b40b5 of Object['keys'](_0x4cd5f7))if(!_0x1fb0dc(_0x1ec2b6[_0x1b40b5],_0x4cd5f7[_0x1b40b5]))return!0x1;return!0x0;}function zt(_0x218a69){const _0x1ad7a9=Object['assign']({},_0x218a69);return delete _0x1ad7a9['skipNestingCheck'],delete _0x1ad7a9['tablePasteChainId'],_0x1ad7a9;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x1e1a2e(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x3eae7a,_0x139731,_0x338112,_0x94e638){super(),this['model']=_0x139731,this['view']=_0x338112,this['commentThreadController']=_0x94e638,this['_editor']=_0x3eae7a,this['_acceptCommand']=_0x3eae7a['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x3eae7a['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xc2ddc0,_0x7b85fc)=>_0xc2ddc0||_0x7b85fc),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4542e7=>_0x4542e7&&this['_editor']['model']['canEditAt'](_0x139731['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x17ed3e=>_0x17ed3e&&this['_editor']['model']['canEditAt'](_0x139731['getRanges']())),this['_pendingAction']=null,_0x338112['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x338112,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x338112,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x338112,'change:isDirty',()=>{_0x338112['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 _0x23fd6b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x23fd6b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x10e2b5{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x5c969d,_0x5a5c26,_0x54225b,_0x18173c){super(_0x5c969d),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x32cda8(_0x5c969d,o(_0x5c969d,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x5a5c26['authoredAt']),this['bind']('authoredAt')['to'](_0x5a5c26),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',_0x5a5c26,'authoredAt',this,'descriptionParts',(_0x2e6e53,_0x436d13,_0x1fb689)=>{const _0x2a119a=_0x1fb689['map'](_0x3425a6=>ls(_0x3425a6['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x2e6e53-0x1,_0x5a5c26['author']['name'],_0x436d13?_0x18173c['formatDateTime'](_0x436d13):'',new DOMParser()['parseFromString'](_0x2a119a,'text/html')['body']['textContent']]);}),this['focusables']=new _0x4aba3a(),this['focusTracker']=new _0x48966d(),this['keystrokes']=new _0x5dbddc(),this['focusCycler']=new _0x77a4f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x4a5752=>_0x4a5752['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x5a5c26,this['_localUser']=_0x54225b,this['_config']=_0x18173c,_0x18173c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x24aa29(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x4c8152}=this['_config'];this['commentsListView']=new _0x4c8152(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',_0x51b2ef=>_0x51b2ef+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x41dc25,_0x11db1b)=>_0x41dc25||!!_0x11db1b);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x3fc8dd}=this['_config'],_0x2ef64a=new _0x3fc8dd(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x20ca63=_0x2ef64a['commentInputView'];return _0x2ef64a['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x20ca63,'value',(_0x5143f1,_0x2c1b68,_0x3d192a)=>!!_0x3d192a||_0x5143f1&&!_0x2c1b68),_0x20ca63['on']('submit',(_0x4639be,_0x14459a)=>{this['fire']('addComment',_0x14459a),_0x20ca63['editor']['setData']('');}),_0x20ca63['on']('cancel',()=>this['focus']()),_0x20ca63['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2ef64a;}}class re extends us{['suggestionView'];['_descriptionElement'];constructor(_0x22fe2b,_0x135226,_0x3f6abf,_0x3e3e66){super(_0x22fe2b,_0x135226,_0x3f6abf,_0x3e3e66),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x40b1cf=>_0x40b1cf&&_0x40b1cf[0x0]?_0x40b1cf[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x1fda6e,_0x56d5b8)=>{let _0x4bc801='';for(const _0x2ac423 of _0x1fda6e)_0x4bc801+='<p>'+ls(_0x2ac423['content'],_0x2ac423['color'])+'</p>';return _0x56d5b8?_0x4bc801:_0x5cd2e2(_0x4bc801,{'limit':0x8c});}),this['_descriptionElement']=null,this['suggestionView']=new _0x3e3e66['SuggestionView'](_0x22fe2b,_0x135226,{'formatDateTime':_0x3e3e66['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 _0x8aa07e=this['bindTemplate'],_0x53d0c3=[this['suggestionView']];return this['commentsListView']&&_0x53d0c3['push'](this['commentsListView']),this['commentThreadInputView']&&_0x53d0c3['push'](this['commentThreadInputView']),_0x53d0c3['push'](this['ariaDescriptionView']),{'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x8aa07e['if']('isActive','ck-suggestion-wrapper--active'),_0x8aa07e['to']('type',_0x4e4a60=>'ck-suggestion-'+_0x4e4a60),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':_0x8aa07e['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':_0x53d0c3};}['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 _0x10e2b5{['userView'];['acceptButton'];['discardButton'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_config'];constructor(_0x8f8c94,_0x24653a,_0x218f6f){super(_0x8f8c94),this['_model']=_0x24653a,this['_config']=_0x218f6f,this['set']('description',''),this['bind']('authoredAt')['to'](_0x24653a),this['acceptButton']=this['_createButton'](o(_0x8f8c94,'Accept\x20suggestion'),_0x429b1b['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['discardButton']=this['_createButton'](o(_0x8f8c94,'Discard\x20suggestion'),_0x429b1b['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['userView']=new _0x5343fc(_0x8f8c94,_0x24653a['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']=new _0x4aba3a([this['acceptButton'],this['discardButton']]),this['focusTracker']=new _0x48966d(),this['keystrokes']=new _0x5dbddc(),this['focusCycler']=new _0x77a4f5({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift+tab','focusNext':'tab'},'keystrokeHandlerOptions':{'filter':_0x394989=>_0x394989['target']!==this['element']}}),this['setTemplate'](this['getTemplate']());}['render'](){super['render']();const _0x5c3914=this['element']['querySelector']('.ck-annotation__content-wrapper');_0x5c3914['innerHTML']=this['description'],this['on']('change:description',(_0x440a8e,_0x12d0bb,_0x2cdd31)=>{_0x5c3914['innerHTML']=_0x2cdd31;}),this['_setupKeyboardNavigation']();}['getTemplate'](){const _0x41cd60=this['bindTemplate'],_0x32b12f=[{'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':_0x41cd60['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x41cd60['to']('authoredAt',_0x5ac8a8=>this['_config']['formatDateTime'](_0x5ac8a8))}]}]},{'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']&&_0x32b12f['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':_0x32b12f}]};}['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'](_0x38884d,_0x3535fd,_0x1768e8,_0x1f245f,_0x5f3dc5){const _0x12414e=new _0x9ec70d(this['locale']);return _0x12414e['set']({'label':_0x38884d,'icon':_0x3535fd,'tooltip':!0x0,'tooltipPosition':_0x5f3dc5}),_0x12414e['extendTemplate']({'attributes':{'class':_0x1768e8}}),_0x12414e['on']('execute',()=>{this['fire'](_0x1f245f,this['_model']['id']);}),_0x12414e;}['_setupKeyboardNavigation'](){const _0x2cb923=this['element'];this['keystrokes']['listenTo'](_0x2cb923);for(const _0x36f800 of this['focusables'])this['focusTracker']['add'](_0x36f800['element']),this['keystrokes']['listenTo'](_0x36f800['element']);this['keystrokes']['set']('enter',(_0x41a734,_0x1742a9)=>{_0x2cb923===_0x41a734['target']&&(this['focusCycler']['focusFirst'](),_0x1742a9());}),this['keystrokes']['set']('esc',(_0x7a6c1a,_0x12a36d)=>{_0x2cb923!==_0x7a6c1a['target']&&(this['focus'](),_0x12a36d());});}}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 _0x82b22a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4f0890,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x19d0ce){super(_0x19d0ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x40d0a7=this['editor']['config'];_0x40d0a7['define']('trackChanges.SuggestionThreadView',re),_0x40d0a7['define']('trackChanges.SuggestionView',ce),_0x40d0a7['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x40d0a7['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x46f9ca,_0x32f0a9){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0xfa6a2c,_0x3b59b3]of this['_handleControllerBuffer']){const _0x5c72bb=this['_suggestionToController']['has'](_0xfa6a2c);_0x5c72bb||_0x3b59b3?_0x5c72bb&&_0x3b59b3&&this['_destroyController'](_0xfa6a2c):this['_initializeController'](_0xfa6a2c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x46f9ca,_0x32f0a9);}['init'](){const _0x11f9ef=this['editor'],_0x9fade2=_0x11f9ef['plugins']['get']('TrackChangesEditing'),_0x214bad=_0x11f9ef['plugins']['get']('Annotations'),_0x1a35fc=_0x11f9ef['plugins']['get']('EditorAnnotations'),_0x182c3b=_0x11f9ef['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1a35fc['addSourceCollector'](()=>{const _0x30dc43=[];for(const [_0x4cdbd4,_0x4d77d9]of Array['from'](this['_suggestionToController'])){const _0x5d7b2c=_0x4cdbd4['getAllAdjacentSuggestions'](),_0x5d067a=[];for(const _0x3e1d72 of _0x5d7b2c){if(!_0x3e1d72['isInContent'])continue;if(_0x3e1d72['isMultiRange']){_0x5d067a['push'](..._0x3e1d72['getRanges']());continue;}const _0x11d6fc=_0x3e1d72['getFirstRange']();if(_0x5d067a['length']>0x0){const _0x4e4092=_0x5d067a[0x0]['getJoined'](_0x11d6fc);if(_0x4e4092){_0x5d067a[0x0]=_0x4e4092;continue;}}_0x5d067a['push'](_0x11d6fc);}_0x30dc43['push']([_0x4d77d9['view'],_0x5d067a]);}return _0x30dc43;}),this['listenTo'](_0x9fade2,'suggestionLoaded',(_0x2718e4,_0x52758e)=>{this['listenTo'](_0x52758e,'change:previous',(_0x255687,_0x9e70a3,_0x498596,_0x4b0a66)=>{_0x52758e['isInContent']&&(null==_0x498596?(this['_updateController'](_0x4b0a66['head']),this['_handleSuggestionControllerDelayed'](_0x52758e,!0x1)):(this['_updateController'](_0x498596['head']),null==_0x4b0a66&&this['_handleSuggestionControllerDelayed'](_0x52758e,!0x0)));}),null!==_0x52758e['previous']?this['_updateController'](_0x52758e['head']):this['_handleSuggestionControllerDelayed'](_0x52758e,!0x1);}),this['listenTo'](_0x9fade2,'suggestionUnloaded',(_0x523a96,_0x512006,_0x24f2ef)=>{this['stopListening'](_0x512006,'change:previous'),this['_handleControllerBuffer']['delete'](_0x512006),this['_suggestionToController']['has'](_0x512006)&&this['_destroyController'](_0x512006),_0x24f2ef&&this['_updateController'](_0x24f2ef['head']);}),this['listenTo'](_0x9fade2,'suggestionChanged',(_0x327a4b,_0x5b0fc5)=>{this['_updateController'](_0x5b0fc5);}),this['listenTo'](_0x214bad,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x182c3b,'addComment',(_0xc4693f,{threadId:_0x1b53f,isFromAdapter:_0x41282e})=>{if(_0x41282e||!_0x9fade2['hasSuggestion'](_0x1b53f))return;const _0x1d2635=_0x9fade2['getSuggestion'](_0x1b53f);this['_suggestionToController']['get'](_0x1d2635)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x364eff=this['editor']['plugins']['get']('Annotations'),_0x525aaf=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5f3722=Array['from'](_0x364eff['activeAnnotations'],_0x17378b=>_0x17378b['innerView'])['filter'](_0x1b5042=>this['_viewToController']['has'](_0x1b5042)),_0x2a632d=[];for(const _0x3c3ebe of _0x5f3722){const _0x4d07b0=this['_viewToController']['get'](_0x3c3ebe)['model']['getAllAdjacentSuggestions']();_0x2a632d['push'](..._0x4d07b0['reduce']((_0x50c82f,_0x2c6f15)=>[..._0x50c82f,..._0x2c6f15['getMarkerNames']()],[]));}_0x525aaf['activeMarkers']=_0x2a632d;}['_addUIComponentsToFactory'](){const _0x2a3078=this['editor'],_0x1f3f2b=_0x2a3078['locale'],_0x23d07d=o(_0x1f3f2b,'Track\x20changes'),_0x12b71e=new Wt([{'type':'switchbutton','model':new _0x58f1f8({'withText':!0x0,'isToggleable':!0x0,'label':_0x23d07d,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x58f1f8({'withText':!0x0,'label':o(_0x1f3f2b,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58f1f8({'withText':!0x0,'label':o(_0x1f3f2b,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58f1f8({'withText':!0x0,'label':o(_0x1f3f2b,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x58f1f8({'withText':!0x0,'label':o(_0x1f3f2b,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x237d0e of _0x12b71e)if(me(_0x237d0e)){const _0x310e2c=_0x2a3078['commands']['get'](_0x237d0e['model']['commandName']);_0x237d0e['model']['bind']('isOn','isEnabled')['to'](_0x310e2c,'value','isEnabled');}_0x2a3078['ui']['componentFactory']['add']('trackChanges',_0x587b70=>this['_createToolbarButton'](_0x587b70,_0x12b71e,_0x23d07d)),_0x2a3078['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2b91a5=>this['_createMenuBarMenu'](_0x2b91a5,_0x12b71e,_0x23d07d));}['_createToolbarButton'](_0x607523,_0x39e32c,_0x42dd93){const _0x83edc8=Qt(_0x607523,_0x11b29e),_0x2c2094=this['editor']['commands']['get']('trackChanges');_0x83edc8['buttonView']['set']({'tooltip':_0x42dd93,'label':_0x42dd93,'icon':he}),_0x83edc8['buttonView']['bind']('isOn')['to'](_0x2c2094,'value'),_0x83edc8['buttonView']['on']('execute',()=>{_0x2c2094['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x83edc8,_0x39e32c,{'role':'menu'});const _0x109d7a=[];for(const _0xbedd81 of _0x39e32c)me(_0xbedd81)&&_0x109d7a['push'](this['editor']['commands']['get'](_0xbedd81['model']['commandName']));const _0x432fa4=_0x83edc8['buttonView'];return _0x432fa4['actionView']['unbind']('isEnabled'),_0x432fa4['arrowView']['unbind']('isEnabled'),_0x432fa4['actionView']['bind']('isEnabled')['to'](_0x2c2094,'isEnabled'),_0x432fa4['arrowView']['bind']('isEnabled')['toMany'](_0x109d7a,'isEnabled',(..._0x217f13)=>_0x217f13['some'](_0x3d0d9b=>_0x3d0d9b)),_0x83edc8['on']('execute',_0x25471c=>{this['editor']['execute'](_0x25471c['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x83edc8;}['_createMenuBarMenu'](_0x49620b,_0x2e97e1,_0x54c66c){const _0x5eabce=new Yt(_0x49620b),_0x4c6e0c=this['editor']['commands']['get']('trackChanges');_0x5eabce['buttonView']['set']({'label':_0x54c66c,'icon':he});const _0x2591ab=new Zt(_0x49620b);for(const _0x3d9153 of _0x2e97e1){if('separator'==_0x3d9153['type']){_0x2591ab['items']['add'](new Xt(_0x49620b));continue;}const _0x4362fc=new te(_0x49620b,_0x5eabce),_0x58198b=new _0x3fefe3(_0x49620b),_0xc5be02=_0x3d9153['model'];_0x58198b['bind'](...Object['keys'](_0xc5be02))['to'](_0xc5be02),_0x58198b['delegate']('execute')['to'](_0x5eabce),_0x58198b['on']('execute',()=>{this['editor']['execute'](_0xc5be02['commandName']),this['editor']['editing']['view']['focus']();}),_0x4362fc['children']['add'](_0x58198b),_0x2591ab['items']['add'](_0x4362fc);}return _0x5eabce['bind']('isEnabled')['to'](_0x4c6e0c,'isEnabled'),_0x5eabce['panelView']['children']['add'](_0x2591ab),_0x5eabce;}['_initializeController'](_0x5eb789){const _0x760033=this['editor'],_0x547f2e=_0x760033['config'],_0x45c4f7=_0x760033['plugins']['get']('Annotations'),_0x35371a=_0x760033['plugins']['get']('CommentsRepository'),_0x291c2c=_0x760033['plugins']['get']('EditorAnnotations'),_0xc10dd4=_0x760033['plugins']['get'](_0x4f0890)['me'],_0x1e4313=_0x547f2e['get']('trackChanges')['SuggestionThreadView'],_0x1a2960=_0x547f2e['get']('trackChanges')['SuggestionView'],{CommentsListView:_0x58ecbf,CommentThreadInputView:_0x1ce31f}=_0x760033['plugins']['get']('CommentsUI');let _0x372c80,_0x4afb74,_0x533ffc;this['_annotationViews']['has'](_0x5eb789['id'])?(_0x4afb74=this['_annotationViews']['get'](_0x5eb789['id']),_0x372c80=_0x4afb74['mainView']):(_0x372c80=new _0x1e4313(_0x760033['locale'],_0x5eb789,_0xc10dd4,{'disableComments':this['_disableComments'],'editorConfig':_0x547f2e['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x547f2e['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x547f2e['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x547f2e['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x494301(_0x547f2e['get']('locale')),'CommentView':_0x547f2e['get']('comments')['CommentView'],'CommentsListView':_0x58ecbf,'CommentThreadInputView':_0x1ce31f,'SuggestionView':_0x1a2960}),_0x372c80['suggestionView']['acceptButton']['on']('execute',()=>{_0x760033['editing']['view']['focus']();}),_0x372c80['suggestionView']['discardButton']['on']('execute',()=>{_0x760033['editing']['view']['focus']();}),_0x4afb74=_0x45c4f7['createAnnotationView'](this['editor']['locale'],_0x372c80),_0x4afb74['bind']('isDirty')['to'](_0x372c80,'isDirty'),_0x4afb74['bind']('length')['to'](_0x372c80),_0x4afb74['bind']('type')['to'](_0x372c80,'type',_0x5c3342=>'suggestion-'+_0x5c3342),_0x372c80['on']('escape',()=>{_0x533ffc['fire']('escape');}),this['_annotationViews']['set'](_0x5eb789['id'],_0x4afb74));const _0x249108=_0x35371a['createCommentThreadController'](_0x5eb789['commentThread'],_0x372c80),_0x583aab=new ae(_0x760033,_0x5eb789,_0x372c80,_0x249108),_0x1bff2a=_0x5eb789['getAllAdjacentSuggestions']()['filter'](_0x42f0ec=>_0x42f0ec['isInContent']);_0x372c80['descriptionParts']=_0x760033['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1bff2a),this['_suggestionToController']['set'](_0x5eb789,_0x583aab),this['_viewToController']['set'](_0x372c80,_0x583aab),_0x533ffc=_0x45c4f7['createAnnotation']({'view':_0x4afb74,'target':()=>{const _0x27b365=[],_0x4a798c=_0x5eb789['getAllAdjacentSuggestions']()['filter'](_0x28f374=>_0x28f374['isInContent']);for(const _0xf157bb of _0x4a798c)_0x27b365['push'](..._0xf157bb['getMarkers']());return _0x121c8d(_0x760033['editing'],_0x27b365);},'type':()=>'suggestion-'+_0x583aab['view']['type']}),_0x35371a['_bindAnnotationToEditors'](_0x372c80,_0x533ffc),_0x45c4f7['add'](_0x533ffc),_0x291c2c['registerAnnotation'](_0x533ffc);}['_destroyController'](_0x3a2678){const _0x17add8=this['editor']['plugins']['get']('CommentsRepository'),_0x128e0a=this['editor']['plugins']['get']('Annotations'),_0x297805=this['_suggestionToController']['get'](_0x3a2678),_0x4b1f96=_0x297805['view'],_0x1d663f=_0x128e0a['getByInnerView'](_0x4b1f96);_0x17add8['_unbindEditors'](_0x4b1f96),_0x1d663f&&_0x128e0a['remove'](_0x1d663f),this['_suggestionToController']['delete'](_0x3a2678),this['_viewToController']['delete'](_0x4b1f96),_0x297805['destroy']();}['_updateController'](_0xa2e29a){if(!_0xa2e29a['isInContent']||!this['_suggestionToController']['has'](_0xa2e29a))return;const _0x1a0633=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5a7201=this['_suggestionToController']['get'](_0xa2e29a),_0x290df9=_0xa2e29a['getAllAdjacentSuggestions']();_0x5a7201['view']['descriptionParts']=_0x1a0633['descriptionFactory']['getDescriptions'](_0x290df9);}['destroy'](){for(const _0x5de49d of this['_suggestionToController']['keys']())this['_destroyController'](_0x5de49d);for(const _0xebdbf9 of this['_annotationViews']['values']())_0xebdbf9['mainView']['destroy']();super['destroy']();}}function me(_0x4a6379){return'model'in _0x4a6379;}class k extends _0x82b22a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5230ce){this['editor']['plugins']['get'](p)['adapter']=_0x5230ce;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x24a22f){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x24a22f);}['getSuggestions']({skipNotAttached:_0x1c25b7=!0x1,toJSON:_0x377ab4=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1c25b7,'toJSON':_0x377ab4});}['getSuggestion'](_0x3822c3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3822c3);}}const T=['Pagination'];class P extends _0x82b22a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x5d342b=this['editor'];if(_0x5d342b['config']['define']('trackChangesData.editorCreator',_0x29feb0=>{const _0x309b6c=_0x5d342b['model']['document']['getRootNames']()['reduce']((_0x5675e0,_0x5bc4a9)=>(_0x5675e0[_0x5bc4a9]='',_0x5675e0),{});return _0x5d342b['constructor']['create'](_0x309b6c,_0x29feb0);}),'function'!=typeof _0x5d342b['config']['get']('trackChangesData')['editorCreator'])throw new _0x5adf17('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x13e8ce){return N(this['editor'],!0x0,_0x13e8ce);}['getDataWithDiscardedSuggestions'](_0x837584){return N(this['editor'],!0x1,_0x837584);}}class D extends _0x82b22a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3fc099){super(_0x3fc099),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(_0x35a2df){return void 0x0!==_0x35a2df['getRootsAttributes'];}async function N(_0x7501db,_0x46cc22,_0x200843){const _0xb0cfbc=_0xbe7cb0(_0x7501db,T);_0xb0cfbc['plugins']['push'](p,D),_0xb0cfbc['rootsAttributes']=v(_0x7501db)?_0x7501db['getRootsAttributes']():void 0x0;const _0x4c373a=document['createDocumentFragment'](),_0x50d2a0=_0x7501db['config']['get']('trackChangesData')['editorCreator'],_0x12ee75=await _0x50d2a0(_0xb0cfbc,()=>function(_0x3b8786){const _0x1e0448=document['createElement']('div');return _0x3b8786['appendChild'](_0x1e0448),_0x1e0448;}(_0x4c373a));!function(_0x4368dd,_0x263f5a){const _0x34f1bc=_0x4368dd['model']['document']['getRootNames']()['reduce']((_0x48186a,_0x154701)=>(_0x48186a[_0x154701]=_0x4368dd['data']['get']({'rootName':_0x154701}),_0x48186a),{}),_0x2fd83b=_0x4368dd['plugins']['get']('Users')['users']['map'](_0x422d5b=>({'id':_0x422d5b['id'],'name':_0x422d5b['name']})),_0x432a2a=_0x4368dd['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x297128=_0x4368dd['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1461db=_0x263f5a['plugins']['get']('Users'),_0x574b3d=_0x263f5a['plugins']['get']('TrackChangesEditing'),_0x10821c=_0x263f5a['plugins']['get']('CommentsRepository');for(const _0x5686a5 of _0x10821c['getCommentThreads']())_0x5686a5['remove']();for(const _0x3673ab of _0x2fd83b)_0x1461db['getUser'](_0x3673ab['id'])||_0x1461db['addUser'](_0x3673ab);_0x1461db['me']||_0x1461db['useAnonymousUser']();for(const _0x5e9644 of _0x297128)_0x10821c['addCommentThread'](_0x5e9644);for(const _0x399ab3 of _0x432a2a)_0x574b3d['addSuggestionData'](_0x399ab3);_0x263f5a['data']['set'](_0x34f1bc);}(_0x7501db,_0x12ee75),_0x12ee75['execute'](_0x46cc22?'acceptAllSuggestions':'discardAllSuggestions');const _0x386529=v(_0x12ee75)?_0x12ee75['getFullData'](_0x200843):_0x12ee75['data']['get'](_0x200843);return await _0x12ee75['destroy'](),_0x386529;}export{us as BaseSuggestionThreadView,u as Suggestion,re as SuggestionThreadView,ce as SuggestionView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};