@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240615.0 → 0.0.0-nightly-20240616.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 _0x1c9f3d,PendingActions as _0x5194b1,icons as _0x1e3b05}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x109ba3,ObservableMixin as _0x24d01d,uid as _0x7b6b31,insertToPriorityArray as _0x478f66,priorities as _0x2c04bb,logWarning as _0x2b4af0,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x22d4d7,View as _0x5662df,ButtonView as _0x18c11e,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x505203,hashObject as _0x42152e,surroundingMarkersDetector as _0x23dbc7,trimHtml as _0x1ec19c,UserView as _0x3b1e71,getDateTimeFormatter as _0x1b3aba,getAllMarkersDomElementsSorted as _0x141286,sanitizeEditorConfig as _0xf72f50}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x14b105,LiveRange as _0x45d820,LivePosition as _0x45caaa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4a7bb1,toWidget as _0x13eccc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x131c94,set as _0x47a1a3,isEqual as _0x15c9fb,unset as _0x1bfbbd,omit as Bt}from'lodash-es';import{Delete as _0x143485,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x4d004a,ShiftEnter as _0x25ed4a}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xda7b0b,_0x350328){super(_0xda7b0b),this['_enabledCommands']=_0x350328,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 _0x404ee8 of this['editor']['commands']['commands']())_0x404ee8['affectsData']&&!this['_enabledCommands']['has'](_0x404ee8)&&_0x404ee8['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x1c65cc of this['editor']['commands']['commands']())_0x1c65cc['affectsData']&&!this['_enabledCommands']['has'](_0x1c65cc)&&_0x1c65cc['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x29b8f3,_0x29c9d4){super(_0x29b8f3),this['_suggestions']=_0x29c9d4,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x18a4e8){const _0x459326=this['_suggestions']['get'](_0x18a4e8);if(!_0x459326)throw new _0x109ba3('track-changes-accept-suggestion-not-found',this);const _0x369271=_0x459326['getRanges']();this['editor']['model']['canEditAt'](_0x369271)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x459326);}}class B extends ts{['_suggestions'];constructor(_0x93eba,_0x49d9ce){super(_0x93eba),this['_suggestions']=_0x49d9ce,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b1b76){const _0x2865a8=this['_suggestions']['get'](_0x4b1b76);if(!_0x2865a8)throw new _0x109ba3('track-changes-discard-suggestion-not-found',this);const _0x122a7e=_0x2865a8['getRanges']();this['editor']['model']['canEditAt'](_0x122a7e)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2865a8);}}function ss(_0x257057){return _0x257057['sort']((_0x21ceaa,_0x3cd64f)=>'deletion'==_0x21ceaa['type']&&'deletion'!=_0x3cd64f['type']?-0x1:'deletion'!=_0x21ceaa['type']&&'deletion'==_0x3cd64f['type']?0x1:0x0);}function to(_0x1b9e04,_0x1eda5a){let _0x14a81f,_0x517aa6=0x0;const _0x5d31a3=[],_0x2b461e=_0x1eda5a['schema'];for(;_0x517aa6<_0x1b9e04['length'];){const _0x183fa9=_0x1b9e04[_0x517aa6],_0x2c48d7=_0x1b9e04[_0x517aa6+0x1];_0x14a81f||(_0x14a81f=_0x1eda5a['createPositionBefore'](_0x183fa9)),co(_0x1eda5a,_0x183fa9,_0x2c48d7)||(_0x5d31a3['push'](_0x1eda5a['createRange'](_0x14a81f,_0x2b461e['isObject'](_0x183fa9)?_0x1eda5a['createPositionAfter'](_0x183fa9):_0x1eda5a['createPositionAt'](_0x183fa9,'end'))),_0x14a81f=null),_0x517aa6++;}return _0x5d31a3;}function co(_0x1e5431,_0x16fc13,_0x455025){if(!_0x455025)return!0x1;const _0x39d26a=_0x1e5431['createPositionAfter'](_0x16fc13),_0x4d4fec=_0x1e5431['createPositionBefore'](_0x455025);return _0x39d26a['isTouching'](_0x4d4fec);}function rs(_0x2a2878,_0xc80f77,_0x5acee1){for(;_0x5acee1['length'];){const _0x19d017=_0x5acee1['splice'](0x0,0x64);_0x2a2878['change'](()=>{for(const _0x47a122 of _0x19d017)_0x47a122['isInContent']&&_0xc80f77['execute'](_0x47a122['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x1cad6c,_0x1f1ce8,_0x4032d8){super(_0x1cad6c),this['_command']=_0x1f1ce8,this['_suggestions']=_0x4032d8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1fd1a3=Array['from'](this['_suggestions']['values']())['some'](_0x28f85f=>_0x28f85f['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1fd1a3;}['execute'](){const _0xb0df3a=ss(Array['from'](this['_suggestions']['values']()));for(const _0x2394ff of _0xb0df3a){const _0x538a76=_0x2394ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x538a76))return;}rs(this['editor']['model'],this['_command'],_0xb0df3a);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x4f23f9,_0x35adc6,_0x357e3c){super(_0x4f23f9),this['_command']=_0x35adc6,this['_suggestions']=_0x357e3c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x11dc64=this['editor']['model']['document']['selection'],_0x3dfbae=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5c72b9,_0x5eeb7c){const _0x512745=Array['from'](_0x5c72b9['getRanges']()),_0x5d4fe7=new Set();for(const _0x566683 of _0x5eeb7c)if(_0x566683['isInContent']){for(const _0x4ecac0 of _0x512745)for(const _0x2a9936 of _0x566683['getRanges']())(_0x4ecac0['isIntersecting'](_0x2a9936)||_0x5c72b9['isCollapsed']&&!_0x566683['isMultiRange']&&_0x566683['next']&&_0x2a9936['end']['isTouching'](_0x4ecac0['start']))&&_0x5d4fe7['add'](_0x566683);}return _0x5d4fe7;}(_0x11dc64,_0x3dfbae),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1160ea=ss(Array['from'](this['_selectedSuggestions']));for(const _0x4dcb63 of _0x1160ea){const _0x41ca6a=_0x4dcb63['getRanges']();if(!this['editor']['model']['canEditAt'](_0x41ca6a))return;}rs(this['editor']['model'],this['_command'],_0x1160ea);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x24d01d(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2139bd,_0x4ffeca){super(),this['id']=_0x4ffeca['id'],this['type']=_0x4ffeca['type'],this['subType']=_0x4ffeca['subType']||null,this['author']=_0x4ffeca['author'],this['creator']=_0x4ffeca['creator']||_0x4ffeca['author'],this['isExternal']=Boolean(_0x4ffeca['attributes']&&_0x4ffeca['attributes']['@external']),this['data']=null,this['_model']=_0x2139bd,this['_onAccept']=_0x4ffeca['onAccept'],this['_onDiscard']=_0x4ffeca['onDiscard'],this['_onAttributesChange']=_0x4ffeca['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x4ffeca['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 _0x25f1dc=this;for(;_0x25f1dc['previous'];)_0x25f1dc=_0x25f1dc['previous'];return _0x25f1dc;}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'](_0x38d3b7){this['_markerNames']['add'](_0x38d3b7);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5616d2=>this['_model']['markers']['get'](_0x5616d2))['filter'](_0x2ad578=>_0x2ad578);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x4e2263=>{for(const _0x598c57 of this['getMarkers']())_0x4e2263['removeMarker'](_0x598c57);}),this['_markerNames']['clear']();}['removeMarker'](_0x1a34a7){this['_model']['change'](_0x329ed3=>{_0x329ed3['removeMarker'](_0x1a34a7);}),this['_markerNames']['delete'](_0x1a34a7);}['addRange'](_0x1e6601){const _0x329a24='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x329a24),this['_model']['change'](_0x56387f=>{_0x56387f['addMarker'](_0x329a24,{'range':_0x1e6601,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1dddc4){for(const _0x2cedf7 of this['getRanges']())if(_0x2cedf7['isIntersecting'](_0x1dddc4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4549fd=>_0x4549fd['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x2c8efe,_0x27f24e)=>[..._0x2c8efe,..._0x27f24e['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x506db8=this['getRanges']();if(0x1!=_0x506db8['length'])return null;const _0x5c39d0=_0x506db8[0x0],_0x2a624a=_0x5c39d0['start']['nodeAfter'],_0x40e42b=_0x5c39d0['end']['nodeBefore'];return _0x2a624a instanceof _0x14b105?_0x2a624a!=_0x40e42b?null:_0x2a624a: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 _0x42cbc9=[];let _0xfb8bbc=this['head'];for(;_0xfb8bbc;)_0x42cbc9['push'](_0xfb8bbc),_0xfb8bbc=_0xfb8bbc['next'];return _0x42cbc9;}['setAttribute'](_0x3eb1ab,_0x44fca0){const _0xbd476d=_0x131c94(this['attributes']);_0x47a1a3(_0xbd476d,_0x3eb1ab,_0x44fca0),_0x15c9fb(_0xbd476d,this['attributes'])||(this['attributes']=_0xbd476d,this['_onAttributesChange'](_0xbd476d));}['removeAttribute'](_0x168e2c){const _0x2c8ed2=_0x131c94(this['attributes']);_0x1bfbbd(_0x2c8ed2,_0x168e2c),_0x15c9fb(_0x2c8ed2,this['attributes'])||(this['attributes']=_0x2c8ed2,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 _0x7b6b31()['substr'](0x1,0x5);}}function o(_0x389df0,_0xd5e5c7,_0x11d3e0){const t=_0x389df0['t'];switch(_0xd5e5c7){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',_0x11d3e0);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x11d3e0);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x11d3e0);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x11d3e0);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x11d3e0);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',_0x11d3e0);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x11d3e0);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',_0x11d3e0);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x11d3e0);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x11d3e0);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x11d3e0);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x11d3e0);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x11d3e0);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x11d3e0);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x11d3e0);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x11d3e0);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x11d3e0);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x11d3e0);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x11d3e0);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x11d3e0);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x11d3e0);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x11d3e0);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x11d3e0);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x11d3e0);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x11d3e0);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x11d3e0);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x11d3e0);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x11d3e0);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x11d3e0);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x11d3e0);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'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x11d3e0);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'},_0x11d3e0);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x11d3e0);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x11d3e0);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x11d3e0);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'},_0x11d3e0);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0xd5e5c7;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x330ad0,_0x4612dd){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x330ad0,this['_locale']=_0x4612dd;}['getDescriptions'](_0x238301){const _0x48df78=[],_0x392e15=new Set(),_0x36a431=new Set();for(let _0x2db98e=0x0;_0x2db98e<_0x238301['length'];_0x2db98e++){const _0x14918c=_0x238301[_0x2db98e];if(!_0x14918c['isInContent'])continue;const _0x259290=this['_handleCustomCallbackDescription'](_0x14918c);if(_0x259290){if(null!=_0x14918c['subType']){if(_0x392e15['has'](_0x14918c['subType']))continue;_0x392e15['add'](_0x14918c['subType']);}_0x48df78['push'](_0x259290);}else{if('attribute'!=_0x14918c['type'])'insertion'!=_0x14918c['type']&&'deletion'!=_0x14918c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x48df78,_0x14918c,_0x238301[_0x2db98e+0x1]);else{const _0x4c77a2=_0x14918c['data']['key'];if(_0x36a431['has'](_0x4c77a2))continue;_0x36a431['add'](_0x14918c['data']['key']),_0x4c77a2==m?this['_handleRenameSuggestionDescription'](_0x48df78,_0x14918c):this['_handleAttributeSuggestionDescription'](_0x48df78,_0x14918c);}}}return this['_resolveDescriptionItems'](_0x48df78);}['registerDescriptionCallback'](_0x1cdb86){this['_customCallbacks']['push'](_0x1cdb86);}['registerElementLabel'](_0x59c5d5,_0x4e4399,_0x11d83b=_0x2c04bb['normal']){'function'==typeof _0x59c5d5?_0x478f66(this['_itemLabelsCallbacks'],{'matchingCallback':_0x59c5d5,'label':_0x4e4399,'priority':_0x11d83b}):this['_itemLabels']['set'](_0x59c5d5,_0x4e4399);}['registerAttributeLabel'](_0xb76433,_0x3c5f44){this['_attributeLabels']['set'](_0xb76433,_0x3c5f44);}['getItemLabel'](_0x131ae1,_0x5a9414=0x1){let _0x48ed44;for(const _0x116cef of this['_itemLabelsCallbacks'])if(_0x116cef['matchingCallback'](_0x131ae1)){_0x48ed44=_0x116cef['label'];break;}return _0x48ed44||(_0x48ed44=this['_itemLabels']['get'](_0x131ae1['name'])),_0x48ed44?_0x48ed44(_0x5a9414):0x1!==_0x5a9414?_0x5a9414+'\x20'+_0x131ae1['name']+'s':''+_0x131ae1['name'];}['_addDescriptionItems'](_0x1e6b1a,_0x2197e1){const _0x57b677=_0x2197e1['getFirstRange']()['getWalker'](),_0x51ca84='insertion'==_0x2197e1['type']?'add':'remove';for(const _0xb82ac of _0x57b677){const _0x2a36af=_0xb82ac['item'],_0x33f0f0=_0x1e6b1a[_0x1e6b1a['length']-0x1];if(_0x2a36af['is']('$textProxy'))_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),_0x33f0f0&&'text'==_0x33f0f0['type']?_0x33f0f0[_0x51ca84]+=_0x2a36af['data']:_0x1e6b1a['push']({'type':'text','add':'add'==_0x51ca84?_0x2a36af['data']:'','remove':'remove'==_0x51ca84?_0x2a36af['data']:''});else{if(this['_schema']['isObject'](_0x2a36af)){const _0x1a8ff5=_0x2a36af;if(_0x33f0f0&&_0x33f0f0['type']['indexOf']('Container')>-0x1&&_0x1e6b1a['pop'](),'elementEnd'==_0xb82ac['type'])continue;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'Object'&&_0x33f0f0['element']['name']==_0x1a8ff5['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'Object','element':_0x1a8ff5,'quantity':0x1}),_0x57b677['skip'](_0x44b6cd=>!('elementEnd'==_0x44b6cd['type']&&_0x44b6cd['item']==_0x2a36af));}else{if(this['_schema']['checkChild'](_0x2a36af,'$text')||_0x2a36af['is']('element','softBreak')){const _0xa607ee=_0x2a36af;if('add'==_0x51ca84&&'elementStart'==_0xb82ac['type']||'remove'==_0x51ca84&&'elementEnd'==_0xb82ac['type'])continue;if(_0x33f0f0&&-0x1==_0x33f0f0['type']['indexOf']('Container')){'text'==_0x33f0f0['type']&&(_0x33f0f0[_0x51ca84]+='\x0a');continue;}let _0x2959b4;if(_0x2959b4='add'==_0x51ca84?_0xa607ee['nextSibling']&&!this['_schema']['isObject'](_0xa607ee['nextSibling'])?_0xa607ee['nextSibling']:null:_0xa607ee['previousSibling']&&!this['_schema']['isObject'](_0xa607ee['previousSibling'])?_0xa607ee['previousSibling']:null,_0xa607ee['isEmpty']||_0x2959b4&&_0x2959b4['isEmpty']){const _0x20d189=_0x2959b4&&_0x2959b4['isEmpty']?_0x2959b4:_0xa607ee;_0x33f0f0&&_0x33f0f0['type']==_0x51ca84+'EmptyContainer'&&_0x33f0f0['element']['name']==_0x20d189['name']?_0x33f0f0['quantity']++:_0x1e6b1a['push']({'type':_0x51ca84+'EmptyContainer','element':_0x20d189,'quantity':0x1});}else _0x1e6b1a['push']({'type':_0x51ca84+'Container','element':_0xa607ee});}}}}}['_resolveDescriptionItems'](_0x2f361f){const _0x505953=this['_locale'],_0x224eb9=[],_0x4344e9=[],_0x18a1a8=[];for(const _0x57455 of _0x2f361f)switch(_0x57455['type']){case'text':if(_0x57455['add']=_0x57455['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x57455['remove']=_0x57455['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x57455['add']&&''!=_0x57455['remove']){_0x224eb9['push']({'type':'replace','content':o(_0x505953,'REPLACE_TEXT',['\x22'+_0x57455['remove']+'\x22','\x22'+_0x57455['add']+'\x22'])});continue;}if(null!=_0x57455['add']['match'](/^ +$/)){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['add']['length']))});continue;}if(null!=_0x57455['remove']['match'](/^ +$/)){_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',o(_0x505953,'ELEMENT_SPACE',_0x57455['remove']['length']))});continue;}if(''!=_0x57455['add']){_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0','\x22'+_0x57455['add']+'\x22')});continue;}_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0','\x22'+_0x57455['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Insert:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Remove:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addContainer':_0x224eb9['push']({'type':'insertion','content':o(_0x505953,'*Split:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'removeContainer':_0x224eb9['push']({'type':'deletion','content':o(_0x505953,'*Merge:*\x20%0',this['getItemLabel'](_0x57455['element'],_0x57455['quantity']))});continue;case'addFormat':_0x4344e9['push'](_0x57455['key']);continue;case'removeFormat':_0x18a1a8['push'](_0x57455['key']);continue;default:_0x224eb9['push'](_0x57455);}if(_0x4344e9['length']){const _0x526ed4=_0x4344e9['map'](_0x5767e9=>this['_attributeLabels']['has'](_0x5767e9)?this['_attributeLabels']['get'](_0x5767e9):_0x5767e9)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x526ed4)});}if(_0x18a1a8['length']){const _0x25a062=_0x18a1a8['map'](_0x5b9253=>this['_attributeLabels']['has'](_0x5b9253)?this['_attributeLabels']['get'](_0x5b9253):_0x5b9253)['join'](',\x20');_0x224eb9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x25a062)});}return _0x224eb9;}['_handleCustomCallbackDescription'](_0x247cc9){for(const _0x1262b1 of this['_customCallbacks']){const _0x1b36e7=_0x1262b1(_0x247cc9);if(_0x1b36e7&&'type'in _0x1b36e7)return _0x1b36e7;}}['_handleAttributeSuggestionDescription'](_0x3334b1,_0x3d2c43){const _0x14a5b3=_0x3d2c43['data'],_0x57164c=void 0x0===_0x14a5b3['newValue']?'removeFormat':'addFormat';_0x3334b1['push']({'type':_0x57164c,'key':_0x14a5b3['key']});}['_handleRenameSuggestionDescription'](_0x422211,_0x5cb052){_0x422211['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x5cb052['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x5014ac,_0xf9567c,_0x37acfc){if(this['_addDescriptionItems'](_0x5014ac,_0xf9567c),_0x37acfc&&_0x37acfc['getFirstRange']()&&!_0xf9567c['getFirstRange']()['end']['isEqual'](_0x37acfc['getFirstRange']()['start'])){const _0x508cfb=_0x5014ac[_0x5014ac['length']-0x1],_0x4e9c99='insertion'==_0xf9567c['type']?'add':'remove';_0x508cfb&&'text'==_0x508cfb['type']&&(_0x508cfb[_0x4e9c99]+='\x0a');}}}class E extends _0x1c9f3d{['afterInit'](){const _0x168491=this['editor'],_0x4bcbbf=_0x168491['plugins']['get']('TrackChangesEditing');_0x168491['commands']['get']('showAIAssistant')&&_0x4bcbbf['enableCommand']('showAIAssistant');}}class V extends _0x1c9f3d{['afterInit'](){const _0x56220d=this['editor'],_0x4a6823=_0x56220d['locale'];if(!_0x56220d['plugins']['has']('AlignmentEditing'))return;const _0x430726=_0x56220d['plugins']['get']('TrackChangesEditing');_0x430726['enableDefaultAttributesIntegration']('alignment'),_0x430726['registerBlockAttribute']('alignment'),_0x430726['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x4a6823,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3ab3da=this['editor'],_0xeb5ec7=_0x3ab3da['locale'];_0x3ab3da['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x590b45=>{if('formatBlock'!=_0x590b45['type'])return;const {data:_0x3c0312}=_0x590b45;if(_0x3c0312&&'alignment'==_0x3c0312['commandName']){const _0x3e861d=_0x3c0312['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xeb5ec7,'*Format:*\x20%0',function(_0x351dc3){switch(_0x351dc3){case'left':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xeb5ec7,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xeb5ec7,'FORMAT_JUSTIFY_TEXT');}}(_0x3e861d))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x1c9f3d{['afterInit'](){const _0x1bc636=this['editor'],_0xf7fe7d=_0x1bc636['plugins']['get']('TrackChangesEditing'),_0x3d6d4a=_0x1bc636['locale'];for(const _0xe193fd of ti){if(!_0x1bc636['plugins']['has'](_0xe193fd))continue;const _0x28c96a=_0xe193fd['slice'](0x0,-0x7)['toLowerCase'](),_0x1fa72b='FORMAT_'+_0x28c96a['toUpperCase']();_0xf7fe7d['enableDefaultAttributesIntegration'](_0x28c96a),_0xf7fe7d['registerInlineAttribute'](_0x28c96a),_0xf7fe7d['descriptionFactory']['registerAttributeLabel'](_0x28c96a,o(_0x3d6d4a,_0x1fa72b));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x32a3aa=this['editor'],_0x196835=_0x32a3aa['locale'],_0x24b4e3=_0x32a3aa['plugins']['get']('TrackChangesEditing');function _0x4820b5(_0x57f5c9,_0x4c79fe){_0x24b4e3['descriptionFactory']['registerDescriptionCallback'](_0x479b3b=>{if('formatInline'!=_0x479b3b['type'])return;const {data:_0x213523}=_0x479b3b;return _0x213523&&_0x213523['commandName']===_0x57f5c9?_0x213523['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x196835,'*Format:*\x20%0',_0x4c79fe)}:{'type':'format','content':o(_0x196835,'*Remove\x20format:*\x20%0',_0x4c79fe)}:void 0x0;});}_0x4820b5('bold',o(_0x196835,'FORMAT_BOLD')),_0x4820b5('italic',o(_0x196835,'FORMAT_ITALIC')),_0x4820b5('underline',o(_0x196835,'FORMAT_UNDERLINE')),_0x4820b5('code',o(_0x196835,'FORMAT_CODE')),_0x4820b5('strikethrough',o(_0x196835,'FORMAT_STRIKETHROUGH')),_0x4820b5('subscript',o(_0x196835,'FORMAT_SUBSCRIPT')),_0x4820b5('superscript',o(_0x196835,'FORMAT_SUPERSCRIPT'));}}class O extends _0x1c9f3d{['afterInit'](){const _0x371964=this['editor'],_0xe9fcac=_0x371964['locale'];if(!_0x371964['plugins']['has']('BlockQuoteEditing'))return;const _0x5f456d=_0x371964['plugins']['get']('TrackChangesEditing'),_0x5ab447=this['editor']['commands']['get']('blockQuote');_0x5f456d['enableCommand']('blockQuote',(_0x5a9c07,_0xed7d08={})=>{const _0x5b2018=this['editor']['model']['document']['selection'],_0x577342=_0xed7d08&&void 0x0!==_0xed7d08['forceValue']?_0xed7d08['forceValue']:!_0x5ab447['value'];let _0x25fa93=[];if(_0x577342){const _0x43191a=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x3be20d=>oo(_0x3be20d)||function(_0x3b6aa0,_0x349d03){const _0x4216c5=_0x349d03['checkChild'](_0x3b6aa0['parent'],'blockQuote'),_0x54bcc8=_0x349d03['checkChild'](['$root','blockQuote'],_0x3b6aa0);return _0x4216c5&&_0x54bcc8;}(_0x3be20d,this['editor']['model']['schema']));_0x25fa93=to(_0x43191a,_0x371964['model']);}else{const _0x5d3c40=Array['from'](_0x5b2018['getSelectedBlocks']())['filter'](_0x25836f=>oo(_0x25836f));_0x25fa93=to(_0x5d3c40,_0x371964['model']);}_0x371964['model']['change'](()=>{for(const _0x5c0491 of _0x25fa93)_0x5f456d['markBlockFormat'](_0x5c0491,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x577342}]});});}),_0x5f456d['descriptionFactory']['registerDescriptionCallback'](_0x1f967d=>{const {data:_0x4deeeb}=_0x1f967d;if(_0x4deeeb&&'blockQuote'==_0x4deeeb['commandName']){const _0xffabf0=o(_0xe9fcac,'ELEMENT_BLOCK_QUOTE');return _0x4deeeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xe9fcac,'*Set\x20format:*\x20%0',_0xffabf0)}:{'type':'format','content':o(_0xe9fcac,'*Remove\x20format:*\x20%0',_0xffabf0)};}});}}function oo(_0x41f356){return'blockQuote'==_0x41f356['parent']['name'];}class G extends _0x1c9f3d{['afterInit'](){const _0x3f74f7=this['editor'];_0x3f74f7['plugins']['has']('CaseChange')&&(_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x3f74f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x1c9f3d{['afterInit'](){const _0x4cc273=this['editor'];_0x4cc273['commands']['get']('ckbox')&&_0x4cc273['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x1c9f3d{['afterInit'](){const _0x54183a=this['editor'];if(!_0x54183a['plugins']['has']('CodeBlock'))return;const _0x540bd8=_0x54183a['plugins']['get']('TrackChangesEditing'),_0x40257b=_0x54183a['locale'],_0x1ff370=_0x54183a['config']['get']('codeBlock')['languages'],_0xe39153=_0x54183a['commands']['get']('codeBlock');_0x540bd8['enableCommand']('indentCodeBlock'),_0x540bd8['enableCommand']('outdentCodeBlock'),_0x540bd8['enableCommand']('codeBlock',(_0x1af20a,_0x237a65={})=>{const _0x5eaa96=_0x54183a['model'],_0x17d93f=_0x54183a['model']['document']['selection'],_0x882fcf=_0x237a65&&void 0x0!==_0x237a65['forceValue']?_0x237a65['forceValue']:!_0xe39153['value'];let _0x1b10c3;_0x237a65['language']||(_0x237a65['language']=_0x1ff370[0x0]['language']),_0x1b10c3=_0x882fcf?Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x49527d=>eo(_0x49527d)||function(_0x2c896b,_0x13970d){if(_0x2c896b['is']('rootElement')||_0x13970d['isLimit'](_0x2c896b))return!0x1;return _0x13970d['checkChild'](_0x2c896b['parent'],'codeBlock');}(_0x49527d,_0x5eaa96['schema'])):Array['from'](_0x17d93f['getSelectedBlocks']())['filter'](_0x1f7e82=>eo(_0x1f7e82));const _0x3b7649=to(_0x1b10c3,_0x5eaa96);_0x5eaa96['change'](()=>{for(const _0x13b578 of _0x3b7649)_0x540bd8['markBlockFormat'](_0x13b578,{'commandName':'codeBlock','commandParams':[{..._0x237a65,'forceValue':_0x882fcf}],'formatGroupId':'blockName'});});}),(_0x540bd8['descriptionFactory']['registerElementLabel']('codeBlock',_0x177499=>o(_0x40257b,'ELEMENT_CODE_BLOCK',_0x177499)),_0x540bd8['descriptionFactory']['registerDescriptionCallback'](_0x2f3213=>{if('formatBlock'!=_0x2f3213['type'])return;const _0x7a87a3=_0x40257b['t'],{data:_0xe57003}=_0x2f3213;if(!_0xe57003||'codeBlock'!=_0xe57003['commandName'])return;const _0x48400a=_0xe57003['commandParams'][0x0]['language'],_0x2bf884=_0x7a87a3(_0x1ff370['find'](_0x22ffa0=>_0x22ffa0['language']===_0x48400a)['label'])['toLowerCase']();return _0xe57003['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x40257b,'*Set\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x2bf884+')')}:{'type':'format','content':o(_0x40257b,'*Remove\x20format:*\x20%0',o(_0x40257b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x3b020f){return'codeBlock'==_0x3b020f['name'];}class H extends _0x1c9f3d{['afterInit'](){const _0x2f76c1=this['editor'];if(!_0x2f76c1['plugins']['has']('CommentsEditing'))return;_0x2f76c1['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x31a8ca,_0x3c76bb,_0x133c82){const _0x625338=[];for(const _0x560967 of _0x3c76bb['getItems']())_0x560967['hasAttribute'](_0x31a8ca)&&_0x625338['push'](_0x133c82['createRangeOn'](_0x560967));return _0x625338;}function _e(_0x571b77,_0x183f95,{showActiveMarker:_0x191a87=!0x0}={}){const _0x23ec79=_0x571b77['plugins']['get']('TrackChangesEditing');return(_0x408213,_0x14267a,_0x206875)=>{if(!_0x206875['consumable']['test'](_0x14267a['markerRange'],_0x408213['name']))return;const _0x1ff3c8=_0x14267a['markerRange']['getWalker'](),_0x30b50b=_0x14267a['markerRange']['start'],_0x3edd60=_0x571b77['model']['schema'];let _0x1ba448=null,_0x52aa38=null,_0x217f7f=!0x1,_0x1e6d6b=!0x1;for(const _0x1db67d of _0x1ff3c8){const _0xf10735=_0x1db67d['item'];_0x217f7f=_0x217f7f||_0x3edd60['isContent'](_0xf10735);const _0x1f810c=_0x206875['mapper']['toViewElement'](_0xf10735);if(_0x1f810c&&_0x1f810c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1db67d['type']&&(_0x3edd60['isBlock'](_0xf10735)&&!_0x3edd60['isLimit'](_0xf10735)&&(_0xf10735['nextSibling']||_0x30b50b['isAtEnd']?_0x1ba448&&_0x1ba448['parent']==_0xf10735||(_0x1ba448=_0xf10735,_0x1bb0b9(_0x1db67d['previousPosition']),_0x1e6d6b=!0x0):_0x52aa38=_0x52aa38||_0x1db67d['previousPosition']));}function _0x1bb0b9(_0x188d1a){const _0x26d3b5=_0x206875['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x183f95}),_0x4dd97f=_0x206875['mapper']['toViewPosition'](_0x188d1a);_0x191a87&&_0x23ec79['activeMarkers']['includes'](_0x14267a['markerName'])&&_0x206875['writer']['addClass']('ck-suggestion-marker--active',_0x26d3b5),_0x206875['writer']['insert'](_0x4dd97f,_0x26d3b5),_0x206875['mapper']['bindElementToMarker'](_0x26d3b5,_0x14267a['markerName']);}_0x217f7f||_0x1e6d6b||!_0x52aa38||_0x1bb0b9(_0x52aa38);};}class q extends _0x1c9f3d{static get['requires'](){return[_0x143485];}['init'](){const _0x2b87d2=this['editor'],_0x3965d7=_0x2b87d2['plugins']['get']('TrackChangesEditing');_0x3965d7['enableCommand']('delete');const _0x2f8191=_0x2b87d2['commands']['get']('deleteForward');_0x3965d7['enableCommand']('deleteForward',(_0x3703b8,_0xd8ca6a={})=>{const _0x253169=_0x2b87d2['model']['createSelection'](_0x2b87d2['model']['document']['selection']);_0x253169['isCollapsed']&&_0x2b87d2['model']['modifySelection'](_0x253169,{'direction':'forward','unit':_0xd8ca6a['unit']});const _0x55a711=_0x253169['getFirstRange'](),_0x264b33=_0x45d820['fromRange'](_0x55a711);let _0x51ab37;_0x3703b8(_0xd8ca6a),_0x51ab37='$graveyard'==_0x264b33['root']['rootName']?_0x2b87d2['model']['createRange'](_0x55a711['start']):_0x2b87d2['model']['createRange'](_0x264b33['start'],_0x264b33['end']),_0x264b33['detach'](),_0x2b87d2['model']['enqueueChange'](_0x2f8191['buffer']['batch'],_0x2bee26=>{_0x2f8191['buffer']['lock'](),_0x2bee26['setSelection'](_0x2bee26['createRange'](_0x51ab37['end'])),_0x2f8191['buffer']['unlock']();});}),_0x2b87d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x2b87d2,'merge'),{'priority':'high'}),_0x2b87d2['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x15f6c7,_0x45c331,_0x260b71)=>{_0x260b71['options']['showSuggestionHighlights']&&_e(_0x2b87d2,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x15f6c7,_0x45c331,_0x260b71);},{'priority':'high'}),_0x2b87d2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x195a41,_0x1a00ab,_0x3c424c)=>{const _0x461f05=_0x3c424c['mapper']['markerNameToElements'](_0x1a00ab['markerName']);if(_0x461f05){for(const _0x4105ca of _0x461f05)_0x4105ca['is']('uiElement')&&(_0x3c424c['mapper']['unbindElementFromMarkerName'](_0x4105ca,_0x1a00ab['markerName']),_0x3c424c['writer']['remove'](_0x4105ca));}},{'priority':'high'});}}class z extends _0x1c9f3d{['afterInit'](){const _0x5e5b54=this['editor'];if(!_0x5e5b54['plugins']['has']('ListEditing'))return;const _0x4b1f0d=_0x5e5b54['locale'],_0x3a8016=_0x5e5b54['plugins']['get']('TrackChangesEditing'),_0x2238a6=_0x5e5b54['plugins']['has']('TodoListEditing'),_0x56cf9b=!!_0x5e5b54['config']['get']('list.multiBlock');function _0x3e8cdb(_0x1b6859){return{'type':'format','content':''+o(_0x4b1f0d,'*Set\x20format:*\x20%0',_0x1b6859)};}function _0x53e824(_0x119e17){return{'type':'format','content':''+o(_0x4b1f0d,'*Remove\x20format:*\x20%0',_0x119e17)};}_0x3a8016['enableDefaultAttributesIntegration']('numberedList'),_0x3a8016['enableDefaultAttributesIntegration']('bulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a8016['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a8016['enableDefaultAttributesIntegration']('indentList'),_0x3a8016['enableDefaultAttributesIntegration']('outdentList'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a8016['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a8016['registerBlockAttribute']('listItemId'),_0x3a8016['registerBlockAttribute']('listType'),_0x3a8016['registerBlockAttribute']('listIndent'),_0x56cf9b&&(_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a8016['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x2238a6&&(_0x3a8016['enableDefaultAttributesIntegration']('todoList'),_0x3a8016['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a8016['registerBlockAttribute']('todoListChecked'),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x3151a0=>{const {data:_0x577d0b}=_0x3151a0;if(_0x577d0b&&'todoListChecked'==_0x577d0b['key'])return{'type':'format','content':_0x577d0b['newValue']?o(_0x4b1f0d,'*Check\x20item*'):o(_0x4b1f0d,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a5c63=>{if(_0x4a5c63['batch']['isUndo'])return!0x1;let _0x5f2494=!0x1;const _0xa72511=_0x3a8016['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5e6adb=>'todoListChecked'===_0x3a8016['_getAttributeKey'](_0x5e6adb));for(const _0x3907cd of _0xa72511){'todo'!=_0x3907cd['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a8016['_findSuggestions'](_0x3907cd['getFirstRange'](),'attribute')['find'](_0x44e0ef=>'listType'===_0x3a8016['_getAttributeKey'](_0x44e0ef['suggestion']))||(_0x4a5c63['removeMarker'](_0x3907cd['getFirstMarker']()),_0x5f2494=!0x0));}return _0x5f2494;})),_0x3a8016['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x4b1f0d,'FORMAT_INDENT'));const _0x36f710={'type':'format','content':''};_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x270514=>{const {data:_0x4aa8b4}=_0x270514;if(!_0x4aa8b4||'listType'!=_0x4aa8b4['key'])return;let _0xcf7fa9=_0x270514['head'];for(;_0xcf7fa9;){if(_0xcf7fa9['data']&&(('listStyle'==_0xcf7fa9['data']['key']||'listMarkerStyle'==_0xcf7fa9['data']['key'])&&(_0xcf7fa9['data']['newValue']&&'default'!=_0xcf7fa9['data']['newValue']||'default'!=_0xcf7fa9['data']['oldValue']&&!_0x4aa8b4['newValue'])||!_0x56cf9b&&_0xcf7fa9['data']['key']==m))return _0x36f710;_0xcf7fa9=_0xcf7fa9['next'];}if(null==_0x4aa8b4['newValue'])switch(_0x4aa8b4['oldValue']){case'bulleted':return _0x53e824(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53e824(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53e824(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}switch(_0x4aa8b4['newValue']){case'bulleted':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3e8cdb(o(_0x4b1f0d,'ELEMENT_TODO_LIST'));}}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x4c4fd0=>{const {data:_0x159ba1}=_0x4c4fd0;if(_0x159ba1&&'listIndent'==_0x159ba1['key'])return null==_0x159ba1['newValue']||null==_0x159ba1['oldValue']&&0x0==_0x159ba1['newValue']?_0x36f710:void 0x0;}),_0x3a8016['descriptionFactory']['registerDescriptionCallback'](_0x119682=>{if('attribute'!=_0x119682['type'])return;const {data:_0x2d59e4}=_0x119682;if(!_0x2d59e4||'listItemId'!=_0x2d59e4['key'])return;const _0x53081b=le(_0x119682);return'newValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Merge:*\x20list\x20item')}:'oldValue'==_0x53081b?{'type':'format','content':o(_0x4b1f0d,'*Split:*\x20list\x20item')}:_0x36f710;}),_0x5e5b54['model']['document']['registerPostFixer'](_0x4ff25=>this['listItemIdFixer'](_0x4ff25)),_0x5e5b54['model']['document']['registerPostFixer'](_0x11bb2c=>this['noTrackChangesFixer'](_0x11bb2c)),_0x5e5b54['model']['document']['registerPostFixer'](_0x253608=>this['assureChains'](_0x253608)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x83c5af){if(_0x83c5af['batch']['isUndo']||!_0x83c5af['batch']['isLocal'])return!0x1;let _0x64fab1=!0x1;const _0x24cd62=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1fd408=>_0x1fd408['data']&&'listItemId'==_0x1fd408['data']['key'])['filter'](_0xeca669=>_0xeca669['data']['newValue']&&_0xeca669['data']['oldValue']);for(const _0x5d4162 of _0x24cd62)le(_0x5d4162)||(_0x83c5af['removeMarker'](_0x5d4162['getFirstMarker']()),_0x64fab1=!0x0);return _0x64fab1;}['noTrackChangesFixer'](_0x4fd8e9){if(_0x4fd8e9['batch']['isUndo']||!_0x4fd8e9['batch']['isLocal'])return!0x1;const _0x6b8905=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x6b8905['trackChangesCommand']['value'])return!0x1;let _0x83c225=!0x1;const _0x29dcaa=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x48ddcf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x468031=>'attribute'==_0x468031['type'])['filter'](_0x23f1a8=>_0x29dcaa['includes'](_0x23f1a8['attributeKey']));if(0x0==_0x48ddcf['length'])return _0x83c225;for(const _0x13cd36 of _0x48ddcf){const _0x145d70=_0x6b8905['_findSuggestions'](_0x13cd36['range'],'attribute')['filter'](_0x58f2a1=>!_0x58f2a1['meta']['isNextTo'])['map'](_0x45d5a1=>_0x45d5a1['suggestion'])['filter'](_0x2c0ea2=>{const _0x396615=_0x6b8905['_getAttributeKey'](_0x2c0ea2);return _0x29dcaa['includes'](_0x396615);});if(_0x145d70['length']){for(const _0x2e1416 of _0x145d70)_0x4fd8e9['removeMarker'](_0x2e1416['getFirstMarker']());_0x83c225=!0x0;}}return _0x83c225;}['assureChains'](_0x40019b){if(_0x40019b['batch']['isUndo']||!_0x40019b['batch']['isLocal'])return!0x1;const _0x47f4eb=this['editor']['plugins']['get']('TrackChangesEditing');let _0xbd4741=!0x1;const _0x3c7f50=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x33bfa9 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})){const _0x2c1290=_0x47f4eb['_findSuggestions'](_0x33bfa9['getFirstRange'](),'attribute')['map'](_0x138dc2=>_0x138dc2['suggestion'])['filter'](_0x3c1331=>_0x3c1331['data']&&_0x3c7f50['includes'](_0x3c1331['data']['key']));if(!_0x2c1290['length'])continue;const _0x28ff55=_0x2c1290[0x0]['head']['attributes']['groupId'];if(!_0x2c1290['every'](_0xab2b70=>_0xab2b70['attributes']['groupId']===_0x28ff55)){for(const _0x23920a of _0x2c1290)_0x37e43e(_0x23920a,_0x28ff55)&&(_0xbd4741=!0x0);}}return _0xbd4741;function _0x28706e(_0x4703bd,_0x1f88b5){for(const _0x25fd15 of _0x47f4eb['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14a471=>'attribute'==_0x14a471['type']&&_0x14a471['attributes']['groupId']==_0x4703bd))_0x25fd15['setAttribute']('groupId',_0x1f88b5);}function _0x37e43e(_0x322fde,_0x8d6889){let _0x1594d7=_0x322fde['head'],_0x199825=!0x1;for(;_0x1594d7;)_0x1594d7['attributes']['groupId']!=_0x8d6889&&(_0x28706e(_0x1594d7['attributes']['groupId'],_0x8d6889),_0x1594d7['setAttribute']('groupId',_0x8d6889),_0x199825=!0x0),_0x1594d7=_0x1594d7['next'];return _0x199825;}}['_supportLegacySuggestions'](){const _0x2374fe=this['editor'],_0x5518a2=_0x2374fe['locale'],_0x5aecad=_0x2374fe['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x5aecad['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x361ec3,_0xa3fa09){const _0xe333db=[];for(let _0x9dd3d2 of _0x361ec3)_0x9dd3d2['start']['nodeAfter']===_0x9dd3d2['end']['parent']&&(_0x9dd3d2=_0x2374fe['model']['createRange'](_0x2374fe['model']['createPositionAt'](_0x9dd3d2['start']['nodeAfter'],0x0))),_0xe333db['push'](_0x9dd3d2);_0x2374fe['model']['change'](_0x4dddc6=>{const _0x102a15=_0x2374fe['model']['document']['selection'],_0x4682e1=Array['from'](_0x102a15['getRanges']())['map'](_0x5d6954=>_0x45d820['fromRange'](_0x5d6954));_0x4dddc6['setSelection'](_0xe333db),_0x2374fe['commands']['get'](_0xa3fa09['commandName'])['refresh'](),_0xa3fa09['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x2374fe['execute'](_0xa3fa09['commandName'],..._0xa3fa09['commandParams']),_0x4dddc6['setSelection'](_0x4682e1);for(const _0x412b2d of _0x4682e1)_0x412b2d['detach']();});}),_0x5aecad['descriptionFactory']['registerElementLabel'](function(_0x31ccf7){const _0xa96d6e=!_0x2374fe['model']['schema']['isObject'](_0x31ccf7),_0x489d76=_0x31ccf7['previousSibling'],_0x142291=_0x31ccf7['nextSibling'],_0x1c48c3=_0x31ccf7['getAttribute']('listItemId'),_0x16b20d=!_0x489d76||_0x489d76['getAttribute']('listItemId')!==_0x1c48c3,_0xe6f498=!_0x142291||_0x142291['getAttribute']('listItemId')!==_0x1c48c3;return _0xa96d6e&&Boolean(_0x1c48c3)&&_0x16b20d&&_0xe6f498;},_0x21fc55=>o(_0x5518a2,'ELEMENT_LIST_ITEM',_0x21fc55));}['_registerLegacyDescription'](){const _0x38e588=this['editor'],_0x52a2d3=_0x38e588['locale'];function _0x3423d3(_0x525dfd){const _0xd692e2=_0x38e588['commands']['get']('bulletedList')['value'],_0x366fcf=_0x38e588['commands']['get']('numberedList')['value'];return'numberedList'===_0x525dfd?_0xd692e2:_0x366fcf;}_0x38e588['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1be32b){if('formatBlock'!=_0x1be32b['type'])return;const {data:_0x50d174}=_0x1be32b;if(!_0x50d174)return;let _0x210a89,_0x11aaf5,_0x5a84a8,_0x448a87;switch(_0x50d174['commandName']){case'bulletedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5a84a8=_0x50d174['commandParams'][0x0]['forceValue'],_0x448a87=_0x3423d3(_0x50d174['commandName']),_0x210a89=_0x5a84a8?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x448a87&&_0x38e588['config']['get']('list.multiBlock')||(_0x210a89='*Change\x20to:*\x20%0'),_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x210a89='*Indent:*\x20%0',_0x11aaf5={'type':'format','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x210a89=function(_0x4e0afc){const _0x5c4cea=_0x4e0afc['getFirstRange']();let _0xb144f=_0x5c4cea['start']['nodeAfter'];for(;_0xb144f&&_0x5c4cea['containsItem'](_0xb144f);){if(_0xb144f['getAttribute']('listIndent')>0x0)return!0x1;_0xb144f=_0xb144f['nextSibling'];}return!0x0;}(_0x1be32b)?o(_0x52a2d3,'*Format:*\x20remove\x20from\x20%0',o(_0x52a2d3,function(_0x4a2498){return'ELEMENT_'+_0x4a2498['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1be32b))):o(_0x52a2d3,'*Outdent:*\x20%0',o(_0x52a2d3,'ELEMENT_LIST_ITEM')),_0x11aaf5={'type':'format','content':_0x210a89};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x50d174['multipleBlocks']&&(_0x210a89='*Merge:*\x20%0',_0x11aaf5={'type':'deletion','content':o(_0x52a2d3,_0x210a89,o(_0x52a2d3,'ELEMENT_LIST_ITEM'))});}return _0x11aaf5;});}}function le(_0x20c9f9){let _0x4259cf=_0x20c9f9['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4259cf;){const _0x26719c=_0x4259cf['getAttribute']('listItemId');if(!_0x26719c)return!0x1;if(_0x26719c==_0x20c9f9['data']['newValue'])return'newValue';if(_0x26719c==_0x20c9f9['data']['oldValue'])return'oldValue';_0x4259cf=_0x4259cf['previousSibling'];}return!0x1;}class ue extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x242d57=this['editor']['config']['get']('list.properties'),_0x3e4f10=this['editor']['plugins']['get']('TrackChangesEditing');_0x242d57['styles']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStyle'),_0x3e4f10['registerBlockAttribute']('listStyle')),_0x242d57['reversed']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listReversed'),_0x3e4f10['registerBlockAttribute']('listReversed')),_0x242d57['startIndex']&&(_0x3e4f10['enableDefaultAttributesIntegration']('listStart'),_0x3e4f10['registerBlockAttribute']('listStart'));const _0x366b88={'type':'format','content':''};_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xab83b5=this['editor']['locale'];_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xab83b5,'FORMAT_LIST_REVERSED')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x270b0=>{const {data:_0x12cfd2}=_0x270b0;if(_0x12cfd2&&'listReversed'==_0x12cfd2['key'])return null==_0x12cfd2['newValue']||0x0==_0x12cfd2['newValue']&&null==_0x12cfd2['oldValue']?_0x366b88:void 0x0;}),_0x3e4f10['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xab83b5,'FORMAT_LIST_START')),_0x3e4f10['descriptionFactory']['registerDescriptionCallback'](_0x323af8=>{const {data:_0x418455}=_0x323af8;if(_0x418455&&'listStart'==_0x418455['key'])return null==_0x418455['newValue']||0x1==_0x418455['newValue']&&null==_0x418455['oldValue']?_0x366b88:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x5a7460=>{if(_0x5a7460['batch']['isUndo'])return!0x1;let _0xe0d31e=!0x1;const _0x11e19a=_0x3e4f10['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xe50866=>{const _0x51b65e=_0x3e4f10['_getAttributeKey'](_0xe50866);return'listStart'==_0x51b65e||'listReversed'==_0x51b65e;});for(const _0x208a2f of _0x11e19a){const _0x63d881=_0x208a2f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x63d881||'customNumbered'==_0x63d881)continue;_0x3e4f10['_findSuggestions'](_0x208a2f['getFirstRange'](),'attribute')['find'](_0xf677a0=>'listType'==_0x3e4f10['_getAttributeKey'](_0xf677a0['suggestion']))||(_0x5a7460['removeMarker'](_0x208a2f['getFirstMarker']()),_0xe0d31e=!0x0);}return _0xe0d31e;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5cd5a7){const _0x5bb89c=this['editor']['locale'],{data:_0x3fa74d}=_0x5cd5a7,_0x295d5a={'type':'format','content':''};if(!_0x3fa74d||'listStyle'!=_0x3fa74d['key'])return;if(!_0x3fa74d['oldValue'])return'default'==_0x3fa74d['newValue']?_0x295d5a:{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};if(!_0x3fa74d['newValue']){if('default'==_0x3fa74d['oldValue'])return _0x295d5a;let _0x56b35f=_0x5cd5a7['head'];for(;_0x56b35f;){if(_0x56b35f['data']&&'listType'==_0x56b35f['data']['key']&&_0x56b35f['data']['newValue'])return _0x295d5a;_0x56b35f=_0x56b35f['next'];}return{'type':'format','content':''+o(_0x5bb89c,'*Remove\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['oldValue'])))};}if('default'!=_0x3fa74d['newValue'])return{'type':'format','content':''+o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,this['_getTranslationKeyForListStyle'](_0x3fa74d['newValue'])))};let _0x42f21f=_0x5cd5a7['head'];for(;_0x42f21f;){if(_0x42f21f['data']&&'listType'==_0x42f21f['data']['key']&&_0x42f21f['data']['newValue']&&_0x42f21f['data']['oldValue'])return _0x295d5a;_0x42f21f=_0x42f21f['next'];}return{'type':'format','content':o(_0x5bb89c,'*Set\x20format:*\x20%0',o(_0x5bb89c,'ELEMENT_'+_0x5cd5a7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x21774e=this['editor'],_0xe49ff3=_0x21774e['locale'];_0x21774e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e716c=>{if('formatBlock'!=_0x2e716c['type'])return;const {data:_0x107988}=_0x2e716c;if(!_0x107988)return;let _0x36a7d3,_0xe433b8;switch(_0x107988['commandName']){case'listStyle':_0x36a7d3='*Change\x20to:*\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,o(_0xe49ff3,this['_getTranslationKeyForListStyle'](_0x107988['commandParams'][0x0]['type'])))};break;case'listReversed':_0x36a7d3=_0x107988['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3)};break;case'listStart':_0x36a7d3='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xe433b8={'type':'format','content':o(_0xe49ff3,_0x36a7d3,_0x107988['commandParams'][0x0]['startIndex'])};}return _0xe433b8;});}['_getTranslationKeyForListStyle'](_0x4a6720){return'ELEMENT_'+function(_0x1872bb){if(pe['includes'](_0x1872bb))return'bulleted';if(ye['includes'](_0x1872bb))return'numbered';return null;}(_0x4a6720)['toUpperCase']()+'_LIST_'+_0x4a6720['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x1c9f3d{static get['requires'](){return[_0x4d004a];}['init'](){const _0xe7b48c=this['editor'],_0x195e98=_0xe7b48c['plugins']['get']('TrackChangesEditing'),_0x4cc4f2=_0xe7b48c['commands']['get']('enter');_0x195e98['enableCommand']('enter',()=>{_0xe7b48c['model']['change'](_0x3cddab=>{const _0x1d6039=_0xe7b48c['model']['document']['selection'],_0x4d9538=_0x1d6039['getFirstPosition'](),_0x310ca4=_0x45d820['fromRange'](_0x1d6039['getFirstRange']());if(_0x4cc4f2['enterBlock'](_0x3cddab)){const _0x1b6de0=_0xe7b48c['model']['createPositionAt'](_0x4d9538['parent']['nextSibling'],0x0),_0xdf5d18=_0x3cddab['createRange'](_0x4d9538,_0x1b6de0);_0x195e98['markInsertion'](_0xdf5d18);}else _0x3cddab['setSelection'](_0x3cddab['createRange'](_0x310ca4['end']));_0x310ca4['detach'](),_0x4cc4f2['fire']('afterExecute',{'writer':_0x3cddab});});}),_0xe7b48c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0xe7b48c,'split'),{'priority':'high'}),_0xe7b48c['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x27399f,_0x2264fa,_0x27b2dd)=>{const _0x54749f=_0x27b2dd['mapper']['markerNameToElements'](_0x2264fa['markerName']);if(_0x54749f){for(const _0x3717bf of _0x54749f)_0x3717bf['hasClass']('ck-suggestion-marker-split')&&(_0x27b2dd['mapper']['unbindElementFromMarkerName'](_0x3717bf,_0x2264fa['markerName']),_0x27b2dd['writer']['remove'](_0x3717bf));}},{'priority':'high'}),_0xe7b48c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x305e78,_0x175d1f,_0x1e7608)=>{_0x1e7608['options']['showSuggestionHighlights']&&_e(_0xe7b48c,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x305e78,_0x175d1f,_0x1e7608);},{'priority':'high'});}}class J extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x10abc9=this['editor']['plugins']['get']('TrackChangesEditing');_0x10abc9['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x10abc9['enableCommand']('findNext'),_0x10abc9['enableCommand']('findPrevious'),_0x10abc9['enableCommand']('replace'),_0x10abc9['enableCommand']('replaceAll');}['handleFindCommand'](_0x32b1a0,_0x16ab96,_0x650b1a={}){const _0x92af58=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x32b1a0(_0x213baa=>('string'==typeof _0x16ab96?_0x92af58['findByTextCallback'](_0x16ab96,_0x650b1a):_0x16ab96)(_0x213baa)['filter'](_0xf146df=>!0x1===this['_isInDeletionRange'](_0xf146df,_0x213baa['item'])),_0x650b1a);}['_isInDeletionRange'](_0x4a8463,_0x446129){const _0x55c2b2=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['start']),this['editor']['model']['createPositionAt'](_0x446129,_0x4a8463['end']));for(const _0x5e3259 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55c2b2['getIntersection'](_0x5e3259['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x1c9f3d{['afterInit'](){const _0x28fcd=this['editor']['locale'],_0x3f8672=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x3e3706,commandName:_0x479123}of ro)this['editor']['plugins']['has'](_0x3e3706)&&(_0x3f8672['enableDefaultAttributesIntegration'](_0x479123),_0x3f8672['registerInlineAttribute'](_0x479123));_0x28fcd['t'],_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x28fcd,'FORMAT_FONT_SIZE')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x28fcd,'FORMAT_FONT_FAMILY')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x28fcd,'FORMAT_FONT_COLOR')),_0x3f8672['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x28fcd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c2bca=this['editor'],_0x4b4579=_0x4c2bca['locale'];_0x4c2bca['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1c6b84=>{const _0x554807=_0x4b4579['t'];if('formatInline'!=_0x1c6b84['type'])return;const {data:_0x3dedb2}=_0x1c6b84;if(null!=_0x3dedb2){if('fontSize'==_0x3dedb2['commandName']){const _0x45c16f=_0x3dedb2['commandParams'][0x0]['value'];if(_0x45c16f){const _0x3760bc=_0x554807(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4cbc09=>_0x4cbc09['model']==_0x45c16f)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20size:*\x20%0',_0x3760bc)};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x3dedb2['commandName']){const _0x15e7d5=_0x3dedb2['commandParams'][0x0]['value'];return _0x15e7d5?{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20family:*\x20%0',_0x15e7d5)}:{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20family*')};}if('fontColor'==_0x3dedb2['commandName']){const _0x4e6dbe=_0x3dedb2['commandParams'][0x0]['value'];if(_0x4e6dbe){const _0x46a631=_0x22d4d7(this['editor']['config']['get']('fontColor.colors'))['find'](_0x257ca2=>_0x257ca2['model']==_0x4e6dbe);let _0x5d152f=_0x4e6dbe,_0x247fb9='';return _0x46a631&&(_0x5d152f=_0x46a631['label'],_0x247fb9=_0x554807(_0x5d152f)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20color:*\x20%0',_0x247fb9)['trim'](),'color':{'value':_0x4e6dbe,'title':_0x247fb9||_0x5d152f}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x3dedb2['commandName']){const _0x3e4047=_0x3dedb2['commandParams'][0x0]['value'];if(_0x3e4047){const _0x56d6ab=_0x22d4d7(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x446fe7=>_0x446fe7['model']==_0x3e4047);let _0x35e7ae=_0x3e4047,_0x3452e1='';return _0x56d6ab&&(_0x35e7ae=_0x56d6ab['label'],_0x3452e1=_0x554807(_0x35e7ae)['toLowerCase']()),{'type':'format','content':o(_0x4b4579,'*Set\x20font\x20background\x20color:*\x20%0',_0x3452e1)['trim'](),'color':{'value':_0x3e4047,'title':_0x3452e1||_0x35e7ae}};}return{'type':'format','content':o(_0x4b4579,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x1c9f3d{['afterInit'](){const _0x4a4a09=this['editor'],_0x31326e=_0x4a4a09['plugins']['get']('TrackChangesEditing'),_0xe79680=_0x4a4a09['commands']['get']('copyFormat'),_0xab5cad=_0x4a4a09['commands']['get']('pasteFormat');_0xe79680&&_0xab5cad&&(_0x31326e['enableDefaultAttributesIntegration']('pasteFormat'),_0x31326e['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x2704c8=this['editor'],_0x240f08=_0x2704c8['locale'];_0x2704c8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x439aad=>{if('formatBlock'!=_0x439aad['type']&&'formatInline'!=_0x439aad['type'])return;const {data:_0x2badd8}=_0x439aad;if(_0x2badd8&&'pasteFormat'===_0x2badd8['commandName']){const _0x18a6e3=[],_0x4cb96f=_0x2badd8['commandParams'][0x0];for(const [_0x45617d,_0x492825]of Object['entries'](_0x4cb96f))_0x18a6e3['push'](so(_0x2704c8,_0x45617d,_0x492825));return _0x18a6e3['length']?{'type':'format','content':o(_0x240f08,'*Set\x20format\x20to:*\x20%0',_0x18a6e3['join'](',\x20'))}:{'type':'format','content':o(_0x240f08,'*Remove\x20all\x20formatting*')};}});}}function so(_0x52cdf5,_0x7cab2d,_0x572745){const _0x23ef46=_0x52cdf5['locale']['t'],_0x4a368a=_0x7cab2d['split'](/(?=[A-Z])/)['join']('\x20'),_0x359065=_0x23ef46(_0x4a368a['charAt'](0x0)['toUpperCase']()+_0x4a368a['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x572745)return _0x359065;if('fontColor'===_0x7cab2d||'fontBackgroundColor'===_0x7cab2d){const _0x5c3802=_0x22d4d7(_0x52cdf5['config']['get']('fontColor.colors'))['find'](_0x23f9c8=>_0x23f9c8['model']==_0x572745);return _0x359065+'\x20('+(_0x5c3802?_0x23ef46(_0x5c3802['label'])['toLowerCase']():_0x572745)+')';}if('fontSize'===_0x7cab2d&&isNaN(parseFloat(_0x572745))){const _0x2de2f7=_0x52cdf5['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x52cdf5['config']['get']('fontSize.options'))['find'](_0x3bf5d4=>_0x3bf5d4['model']==_0x572745);return _0x359065+'\x20('+(_0x2de2f7?_0x23ef46(_0x2de2f7['title'])['toLowerCase']():_0x572745)+')';}return _0x359065+'\x20('+_0x572745+')';}class Y extends _0x1c9f3d{['_headingOptions'];['afterInit'](){const _0x105c76=this['editor'];if(!_0x105c76['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x105c76['config']['get']('heading.options');const _0x5886fc=_0x105c76['locale'],_0x221c79=_0x105c76['plugins']['get']('TrackChangesEditing');_0x221c79['enableDefaultAttributesIntegration']('heading');for(const _0x1818c5 of this['_headingOptions'])'paragraph'!=_0x1818c5['model']&&_0x221c79['descriptionFactory']['registerElementLabel'](_0x1818c5['model'],_0x8b05e2=>{const _0x112689=this['_getHeadingLevel'](_0x1818c5['model']);return null!==_0x112689?_0x175e08(_0x8b05e2,_0x112689):_0xb5738a(_0x8b05e2,_0x1818c5['title']);});function _0x175e08(_0x20d0bf,_0xbd3d9){return o(_0x5886fc,'ELEMENT_HEADING',[_0x20d0bf,_0xbd3d9]);}function _0xb5738a(_0x12de07,_0x5ab19c){return o(_0x5886fc,'ELEMENT_HEADING_CUSTOM',[_0x12de07,_0x5ab19c]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x97f16c=this['editor'],_0x25035f=_0x97f16c['locale'];function _0x401ae9(_0x2f55cf,_0x2c65c6){return o(_0x25035f,'ELEMENT_HEADING_CUSTOM',[_0x2f55cf,_0x2c65c6]);}_0x97f16c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x323507=>{if('formatBlock'!=_0x323507['type'])return;const {data:_0x50792d}=_0x323507;if(_0x50792d&&'heading'==_0x50792d['commandName']){const _0x221963=_0x50792d['commandParams'][0x0]['value'],_0x1f5add=this['_getHeadingLevel'](_0x221963);if(null!==_0x1f5add)return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',(_0x48434a=0x1,_0x4f905e=_0x1f5add,o(_0x25035f,'ELEMENT_HEADING',[_0x48434a,_0x4f905e])))};const _0x55c363=this['_headingOptions']['find'](_0x2a87cb=>_0x2a87cb['model']===_0x221963)['title'];return{'type':'format','content':o(_0x25035f,'*Change\x20to:*\x20%0',_0x401ae9(0x1,_0x55c363))};}var _0x48434a,_0x4f905e;});}['_getHeadingLevel'](_0x403f49){const _0x1a7d69=_0x403f49['match'](/^heading(\d+)/);if(_0x1a7d69)return _0x1a7d69[0x1];const _0x5a017d=this['_headingOptions']?.['find'](_0x4c78e6=>_0x4c78e6['model']==_0x403f49);if(_0x5a017d&&_0x5a017d['view']){const _0x3e4c38=_0x5a017d['view'],_0x40ed7b=(_0x3e4c38['name']??_0x3e4c38)['match'](/^h(\d+)/);if(_0x40ed7b)return _0x40ed7b[0x1];}return null;}}class Z extends _0x1c9f3d{['afterInit'](){const _0x80a88e=this['editor'];if(!_0x80a88e['plugins']['has']('HighlightEditing'))return;const _0x365178=_0x80a88e['plugins']['get']('TrackChangesEditing'),_0xb7e029=_0x80a88e['locale'];_0x365178['enableDefaultAttributesIntegration']('highlight'),_0x365178['registerInlineAttribute']('highlight'),_0x365178['descriptionFactory']['registerAttributeLabel']('highlight',o(_0xb7e029,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x7b2ff8=this['editor'],_0x49eb35=_0x7b2ff8['locale'];_0x7b2ff8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x50b347=>{if('formatInline'!=_0x50b347['type'])return;const {data:_0x172e8b}=_0x50b347;if(_0x172e8b&&'highlight'==_0x172e8b['commandName']){const _0x12f1ab=_0x49eb35['t'],_0x318a0f=_0x172e8b['commandParams'][0x0]['value'];if(_0x318a0f){const _0x3796b3=_0x7b2ff8['config']['get']('highlight.options')['find'](_0x45e893=>_0x45e893['model']==_0x318a0f),_0x530a38=_0x12f1ab(_0x3796b3['title'])['toLowerCase']();return{'type':'format','content':o(_0x49eb35,'*Set\x20highlight:*\x20%0',_0x530a38),'color':{'value':_0x3796b3['color'],'title':_0x3796b3['title']}};}return{'type':'format','content':o(_0x49eb35,'*Remove\x20highlight*',o(_0x49eb35,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x1c9f3d{['afterInit'](){const _0x2314b8=this['editor'];if(!_0x2314b8['plugins']['has']('HorizontalLineEditing'))return;_0x2314b8['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xd80198=_0x2314b8['plugins']['get']('TrackChangesEditing'),_0x4e0908=_0x2314b8['locale'];_0xd80198['descriptionFactory']['registerElementLabel']('horizontalLine',_0x3d3934=>o(_0x4e0908,'ELEMENT_HORIZONTAL_LINE',_0x3d3934)),_0x2314b8['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0xd42b8,{writer:_0x59ba81,options:_0x225b8e})=>{if(!_0x225b8e['showSuggestionHighlights'])return null;const _0x5494f9=_0x59ba81['createContainerElement']('div'),_0x1b9238=_0x59ba81['createEmptyElement']('hr');return _0x59ba81['addClass']('ck-horizontal-line',_0x5494f9),_0x59ba81['insert'](_0x59ba81['createPositionAt'](_0x5494f9,0x0),_0x1b9238),_0x5494f9;},'converterPriority':'high'});}}class et extends _0x1c9f3d{['afterInit'](){const _0x4294d9=this['editor'];if(!_0x4294d9['plugins']['has']('HtmlEmbed'))return;const _0x474290=_0x4294d9['plugins']['get']('TrackChangesEditing'),_0x4090fd=_0x4294d9['locale'];_0x474290['descriptionFactory']['registerElementLabel']('rawHtml',_0x4bc05b=>o(_0x4090fd,'ELEMENT_HTML_EMBED',_0x4bc05b)),_0x474290['enableDefaultAttributesIntegration']('htmlEmbed'),_0x474290['registerBlockAttribute']('value'),_0x474290['descriptionFactory']['registerDescriptionCallback'](_0x56cb4f=>{if('attribute'!=_0x56cb4f['type'])return;const {data:_0x4f362d}=_0x56cb4f;if(_0x4f362d&&'value'==_0x4f362d['key']&&_0x56cb4f['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1f6f9f=o(_0x4090fd,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4090fd,'*Change\x20%0\x20content*',_0x1f6f9f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2690a5=this['editor'],_0x27a4d8=_0x2690a5['locale'];_0x2690a5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xfa988f=>{if('formatBlock'!=_0xfa988f['type'])return;const {data:_0x1c9b5a}=_0xfa988f;if(_0x1c9b5a&&'htmlEmbed'==_0x1c9b5a['commandName']){const _0x4dad5a=o(_0x27a4d8,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x27a4d8,'*Change\x20%0\x20content*',_0x4dad5a)};}});}}class it extends _0x1c9f3d{['afterInit'](){const _0x2117e4=this['editor'];if(!_0x2117e4['plugins']['has']('ImageEditing'))return;const _0x4a0bde=_0x2117e4['plugins']['get']('TrackChangesEditing'),_0x5e16e9=_0x2117e4['plugins']['get']('ImageUtils'),_0x4ff554=_0x2117e4['locale'];_0x4a0bde['enableCommand']('insertImage'),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageBlock',_0x4a0025=>o(_0x4ff554,'ELEMENT_IMAGE',_0x4a0025)),_0x4a0bde['descriptionFactory']['registerElementLabel']('imageInline',_0x2d71d1=>o(_0x4ff554,'ELEMENT_INLINE_IMAGE',_0x2d71d1)),_0x4a0bde['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x4ff554,'ELEMENT_CAPTION')),_0x2117e4['plugins']['has']('ImageUploadEditing')&&_0x4a0bde['enableCommand']('uploadImage'),_0x2117e4['plugins']['has']('ImageBlockEditing')&&_0x2117e4['plugins']['has']('ImageInlineEditing')&&(_0x4a0bde['enableCommand']('imageTypeInline',(_0x5a3ede,_0x47d767)=>{const _0x29e47c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']);_0x2117e4['model']['change'](()=>{_0x4a0bde['markBlockFormat'](_0x29e47c,{'commandName':'imageTypeInline','commandParams':[_0x47d767]},[],'convertBlockImageToInline');});}),_0x4a0bde['enableCommand']('imageTypeBlock',(_0x832e40,_0x278ab1)=>{_0x2117e4['model']['change'](_0x3c9f52=>{let _0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x468ee0=_0x45caaa['fromPosition'](_0x4011ae['start'],'toPrevious'),_0x2fbd97=_0x45caaa['fromPosition'](_0x4011ae['end'],'toNext');_0x4a0bde['forceDefaultExecution'](()=>_0x832e40(_0x278ab1)),_0x13626c=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x4011ae=_0x3c9f52['createRangeOn'](_0x13626c);const _0x5eeb50=_0x3c9f52['createRange'](_0x468ee0,_0x2fbd97);_0x468ee0['detach'](),_0x2fbd97['detach'](),_0x4a0bde['markBlockFormat'](_0x13626c,{'commandName':'imageTypeInline','commandParams':[_0x278ab1]},[],'convertInlineImageToBlock'),_0x5eeb50['start']['isBefore'](_0x4011ae['start'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x5eeb50['start'],_0x4011ae['start']),'convertInlineImageToBlock'),_0x4011ae['end']['isBefore'](_0x5eeb50['end'])&&_0x4a0bde['markInsertion'](_0x3c9f52['createRange'](_0x4011ae['end'],_0x5eeb50['end']),'convertInlineImageToBlock');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x56a9e2])=>{const _0x16e240=_0x4a0bde['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x272bbc=_0x56a9e2['start'],_0x3477f7=_0x56a9e2['end'];const _0x19dfe=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x272bbc,'backward'),_0x23a5f4=_0x2117e4['model']['schema']['getNearestSelectionRange'](_0x3477f7,'forward');_0x19dfe['isCollapsed']&&(_0x272bbc=_0x19dfe['start']),_0x23a5f4['isCollapsed']&&(_0x3477f7=_0x23a5f4['end']),_0x16e240([_0x2117e4['model']['createRange'](_0x272bbc,_0x3477f7)]);}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xb0a6c2),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xb0a6c2)),_0x2117e4['plugins']['has']('ImageCaptionEditing')&&(_0x4a0bde['enableCommand']('toggleImageCaption',(_0x5e2443,_0x547f97)=>{const _0x4ae270=_0x2117e4['plugins']['get']('ImageCaptionUtils');let _0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d);_0x2117e4['model']['change'](()=>{if(_0x3b36dc)return void _0x4a0bde['markDeletion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc));const _0x902e19=_0x5e16e9['isBlockImage'](_0xd66f0d);_0x5e2443(_0x547f97),_0xd66f0d=_0x5e16e9['getClosestSelectedImageElement'](_0x2117e4['model']['document']['selection']),_0x3b36dc=_0x4ae270['getCaptionFromImageModelElement'](_0xd66f0d),_0x4a0bde['markInsertion'](_0x2117e4['model']['createRangeOn'](_0x3b36dc),_0x902e19?null:'imageCaption');});}),_0x4a0bde['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xb0a6c2));const _0x47e824=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x46bcf1(_0x54f5cd,_0x41711f){const _0x4c165b=_0x47e824['findIndex'](({type:_0x4179cf,subType:_0x45eee6})=>_0x54f5cd['type']==_0x4179cf&&_0x54f5cd['subType']==_0x45eee6),_0x4aa3bd=_0x47e824['findIndex'](({type:_0x56cd1b,subType:_0x1e1556})=>_0x41711f['type']==_0x56cd1b&&_0x41711f['subType']==_0x1e1556);if(_0x4c165b<0x0||_0x4aa3bd<0x0)return!0x1;const _0x3ffa33=_0x54f5cd['getFirstRange'](),_0x173c77=_0x41711f['getFirstRange']();if((0x0==_0x4c165b||0x1==_0x4c165b)&&0x2==_0x4aa3bd&&_0x3ffa33['isIntersecting'](_0x173c77))return!0x0;if(0x2==_0x4c165b&&0x3==_0x4aa3bd){const _0x5ec192=_0x4a0bde['_findSuggestions'](_0x3ffa33,'insertion')['filter'](({suggestion:_0x942c7a,meta:_0x1705eb})=>_0x1705eb['isOwn']&&'convertInlineImageToBlock'==_0x942c7a['subType']);if(_0x5ec192['length']>0x1&&_0x173c77['end']['isEqual'](_0x3ffa33['start']))return!0x0;if(0x1==_0x5ec192['length']&&(_0x3ffa33['start']['isEqual'](_0x173c77['end'])||_0x3ffa33['end']['isEqual'](_0x173c77['start'])))return!0x0;}if(0x3==_0x4c165b&&0x3==_0x4aa3bd&&_0x3ffa33['start']['isBefore'](_0x173c77['start'])){const _0x390000=_0x3ffa33['end']['nodeAfter'],_0x52649b=_0x173c77['start']['nodeBefore'];return _0x5e16e9['isBlockImage'](_0x390000)&&_0x390000===_0x52649b;}return!0x1;}function _0xb0a6c2(_0x59a0f5,_0x2d809f){return _0x46bcf1(_0x59a0f5,_0x2d809f)?[_0x59a0f5,_0x2d809f]:_0x46bcf1(_0x2d809f,_0x59a0f5)?[_0x2d809f,_0x59a0f5]:null;}_0x2117e4['plugins']['has']('ImageResize')&&(_0x4a0bde['enableDefaultAttributesIntegration']('resizeImage'),_0x4a0bde['registerBlockAttribute']('resizedWidth'),_0x4a0bde['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x4ff554,'FORMAT_IMAGE_SIZE'))),_0x2117e4['plugins']['has']('ImageTextAlternativeEditing')&&(_0x4a0bde['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x4a0bde['registerBlockAttribute']('alt')),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x442870=>{if(!!_0x47e824['find'](({type:_0x4e881c,subType:_0x1d00b8})=>_0x442870['type']==_0x4e881c&&_0x442870['subType']==_0x1d00b8))return _0x442870['previous']?{}:void 0x0;}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x195886=>{if('insertion'==_0x195886['type']||'deletion'==_0x195886['type']){const _0x2574cb=_0x195886['getContainedElement']();if(_0x2574cb&&_0x2574cb['is']('element','caption'))return{'type':'insertion'==_0x195886['type']?'addObject':'removeObject','element':_0x2574cb,'quantity':0x1};}}),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x2e62b9=>'formatBlock'==_0x2e62b9['type']&&'convertInlineImageToBlock'==_0x2e62b9['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x2e62b9['type']&&'convertBlockImageToInline'==_0x2e62b9['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x4a0bde['descriptionFactory']['registerDescriptionCallback'](_0x38b7f6=>{if('attribute'!=_0x38b7f6['type'])return;const {data:_0x32df10}=_0x38b7f6;if(!_0x32df10||'alt'!=_0x32df10['key'])return;const _0x2bb987=_0x32df10['newValue'];return _0x2bb987?{'type':'format','content':o(_0x4ff554,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2bb987+'\x22')}:{'type':'format','content':o(_0x4ff554,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x499503=this['editor'],_0x5d1a3a=_0x499503['locale'];_0x499503['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x27e597=>{if('formatBlock'!=_0x27e597['type']&&'formatInline'!=_0x27e597['type'])return;const {data:_0x51aed6}=_0x27e597;if(_0x51aed6){if('imageTextAlternative'==_0x51aed6['commandName']){const _0x2a67f2=_0x51aed6['commandParams'][0x0]['newValue'];return _0x2a67f2?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2a67f2+'\x22')}:{'type':'format','content':o(_0x5d1a3a,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x51aed6['commandName']){const _0x247534=_0x51aed6['commandParams'][0x0]['width'];return _0x247534?{'type':'format','content':o(_0x5d1a3a,'*Set\x20image\x20width:*\x20%0',_0x247534)}:{'type':'format','content':o(_0x5d1a3a,'*Reset\x20image\x20width*')};}}});}}class st extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x16978e=this['editor']['locale'],_0x20bea7=this['editor']['plugins']['get']('TrackChangesEditing');_0x20bea7['enableDefaultAttributesIntegration']('replaceImageSource'),_0x20bea7['registerBlockAttribute']('src'),_0x20bea7['descriptionFactory']['registerDescriptionCallback'](_0x1c895b=>{if('attribute'!=_0x1c895b['type'])return;const {data:_0x2a36d7}=_0x1c895b;return _0x2a36d7&&'src'==_0x2a36d7['key']?_0x2a36d7['newValue']&&_0x2a36d7['oldValue']?{'type':'format','content':o(_0x16978e,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5a211b=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5a211b['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x5a211b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x505604=this['editor'],_0x432502=_0x505604['locale'];_0x505604['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32b37a=>{if('formatBlock'!=_0x32b37a['type']&&'formatInline'!=_0x32b37a['type'])return;const {data:_0xb14f74}=_0x32b37a;if(!_0xb14f74||'replaceImageSource'!=_0xb14f74['commandName'])return;return{'type':'format','content':o(_0x432502,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x1c9f3d{['afterInit'](){const _0x42b948=this['editor'];if(!_0x42b948['plugins']['has']('ImageStyleEditing'))return;const _0x44b9dd=_0x42b948['plugins']['get']('TrackChangesEditing'),_0xa260e=_0x42b948['plugins']['get']('ImageUtils'),_0x1fb023={};_0x44b9dd['enableCommand']('imageStyle',(_0x379d8b,_0x2cc31c)=>{const _0x29fa04=_0x42b948['plugins']['get']('Users')['me'],_0x5c8a54=_0x42b948['commands']['get']('imageStyle');let _0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x36c408=_0x5c8a54['value'];if(_0x36c408==_0x2cc31c['value'])return;const _0x84814a={'commandName':'imageStyle','commandParams':[_0x2cc31c],'formatGroupId':_0x7b6b31()};_0x42b948['model']['change'](()=>{if(_0x44b9dd['getSuggestions']()['filter'](_0x54a395=>_0x54a395['isInContent']&&_0x29fa04==_0x54a395['author']&&('formatBlock'==_0x54a395['type']||'formatInline'==_0x54a395['type'])&&('imageStylePreApply'==_0x54a395['subType']||'imageStylePostApply'==_0x54a395['subType'])&&_0x54a395['getFirstRange']()['isEqual'](_0x4cd32a))['forEach'](_0x48490c=>_0x44b9dd['discardSuggestion'](_0x48490c['head'])),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),_0x4cd32a=_0x42b948['model']['createRangeOn'](_0x2abf7a),_0x5c8a54['refresh'](),_0x42b948['commands']['get']('imageTypeInline')['refresh'](),_0x42b948['commands']['get']('imageTypeBlock')['refresh'](),_0x36c408=_0x5c8a54['value'],_0x36c408!=_0x2cc31c['value'])return _0xa260e['isInlineImage'](_0x2abf7a)&&_0x5c8a54['shouldConvertImageType'](_0x2cc31c['value'],_0x2abf7a)?(_0x379d8b({..._0x2cc31c,'setImageSizes':!0x1}),_0x2abf7a=_0xa260e['getClosestSelectedImageElement'](_0x42b948['model']['document']['selection']),void _0x44b9dd['markBlockFormat'](_0x2abf7a,{..._0x84814a,'commandReversedParams':[{'value':_0x36c408||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0xa260e['isBlockImage'](_0x2abf7a)?_0x44b9dd['markBlockFormat'](_0x2abf7a,_0x84814a,[],'imageStylePostApply'):_0x44b9dd['markInlineFormat'](_0x4cd32a,_0x84814a,'imageStylePostApply'));});});for(const _0x10c72d of _0x42b948['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x1fb023[_0x10c72d['name']]=_0x10c72d['title']['toLowerCase']();_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x24dbc6])=>{_0xa260e['setImageNaturalSizeAttributes'](_0x24dbc6['getContainedElement']());}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2262bf,_0x1c23cd)=>{_0x44b9dd['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2262bf,{'commandName':_0x1c23cd['commandName'],'commandParams':_0x1c23cd['commandReversedParams']});}),_0x44b9dd['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x3e6dbb,_0x4f25d8){if(_0x2b3045(_0x3e6dbb,_0x4f25d8))return[_0x3e6dbb,_0x4f25d8];if(_0x2b3045(_0x4f25d8,_0x3e6dbb))return[_0x4f25d8,_0x3e6dbb];return null;});const _0x56e27c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2b3045(_0xa2702c,_0x5d4cf1){const _0x5993a3=_0x56e27c['findIndex'](({type:_0x57366e,subType:_0x4bcbaf})=>_0xa2702c['type']==_0x57366e&&_0xa2702c['subType']==_0x4bcbaf),_0x44d5e3=_0x56e27c['findIndex'](({type:_0x519a33,subType:_0x5531bf})=>_0x5d4cf1['type']==_0x519a33&&_0x5d4cf1['subType']==_0x5531bf);if(_0x5993a3<0x0||_0x44d5e3<0x0)return!0x1;const _0x5af980=_0xa2702c['getFirstRange'](),_0x176c80=_0x5d4cf1['getFirstRange']();if((0x0==_0x5993a3||0x1==_0x5993a3)&&0x2==_0x44d5e3&&_0x5af980['isIntersecting'](_0x176c80))return!0x0;if(0x2==_0x5993a3&&0x3==_0x44d5e3){const _0x359bd6=_0x44b9dd['_findSuggestions'](_0x5af980,'insertion')['filter'](({suggestion:_0x9199a3,meta:_0x13d619})=>_0x13d619['isOwn']&&'convertInlineImageToBlock'==_0x9199a3['subType']);if(_0x359bd6['length']>0x1&&_0x176c80['end']['isEqual'](_0x5af980['start']))return!0x0;if(0x1==_0x359bd6['length']&&(_0x5af980['start']['isEqual'](_0x176c80['end'])||_0x5af980['end']['isEqual'](_0x176c80['start'])))return!0x0;}if(0x3==_0x5993a3&&0x3==_0x44d5e3&&_0x5af980['start']['isBefore'](_0x176c80['start'])){const _0x41dff8=_0x5af980['end']['nodeAfter'],_0x3d418f=_0x176c80['start']['nodeBefore'];return _0xa260e['isBlockImage'](_0x41dff8)&&_0x41dff8===_0x3d418f;}return!0x1;}_0x42b948['model']['document']['registerPostFixer'](()=>{let _0x3b4281=!0x1;const _0x4a9470=Array['from'](_0x42b948['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x12bcb6,data:_0x209999}of _0x4a9470){const {group:_0x2c8206,type:_0x5840fb,subType:_0x1351fe,id:_0x576a38}=_0x44b9dd['_splitMarkerName'](_0x12bcb6);if('suggestion'==_0x2c8206&&_0x44b9dd['hasSuggestion'](_0x576a38)){if('formatBlock'==_0x5840fb&&('imageStylePreApply'==_0x1351fe||'imageStylePostApply'==_0x1351fe)){const _0x4407d7=_0x44b9dd['getSuggestion'](_0x576a38);if(_0x209999['newRange']){const _0x5b9b96=_0x4407d7['getFirstRange']()['getContainedElement']();if(_0xa260e['isBlockImage'](_0x5b9b96))continue;_0x44b9dd['discardSuggestion'](_0x4407d7),_0x3b4281=!0x0;}}if('insertion'==_0x5840fb&&'imageCaption'==_0x1351fe&&!_0x209999['newRange']){const _0x304130=_0x44b9dd['getSuggestion'](_0x576a38);_0x304130['next']&&_0x304130['next']['isInContent']&&(_0x44b9dd['discardSuggestion'](_0x304130['next']),_0x3b4281=!0x0);}}}return _0x3b4281;}),this['_registerLegacyDescription'](_0x1fb023);}['_registerLegacyDescription'](_0x4f0767){const _0x290d05=this['editor'],_0x5b6495=_0x290d05['locale'];_0x290d05['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5e0195=>{if('formatBlock'!=_0x5e0195['type']&&'formatInline'!=_0x5e0195['type'])return;const {data:_0x1782c0}=_0x5e0195;if(!_0x1782c0||'imageStyle'!=_0x1782c0['commandName'])return;const _0x40e5ab=_0x1782c0['commandParams'][0x0]['value'];return _0xfc7d7d('side'===_0x40e5ab?o(_0x5b6495,'FORMAT_SIDE_IMAGE'):_0x4f0767[_0x40e5ab]||_0x40e5ab);function _0xfc7d7d(_0x405952){return{'type':'format','content':o(_0x5b6495,'*Format:*\x20%0',_0x405952)};}});}}class ot extends _0x1c9f3d{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x292b8c){super(_0x292b8c),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x26c808=this['editor'],_0x2c4811=_0x26c808['commands']['get']('importWord'),_0x3adb06=_0x26c808['commands']['get']('trackChanges');_0x2c4811&&(_0x2c4811['on']('execute',(_0x51b5ff,[,_0x232589])=>{this['_trackChangesValueDuringImport']=_0x3adb06['value'],_0x232589['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x2c4811,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x2c4811,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3adb06['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x26c808['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xd11990,_0x4684a1){const {suggestions:_0x52a85d}=_0x4684a1,_0x57c1a1=this['editor']['commands']['get']('trackChanges'),_0x503fd2=_0x57c1a1['value'];this['_trackChangesValueDuringImport']!==_0x503fd2&&(_0x57c1a1['execute'](),this['_trackChangesExecuted']=!0x0),_0x52a85d&&_0x52a85d['forEach'](({id:_0x5c72b0,type:_0x1ca477,author:_0x44fc33,created_at:_0x2aa413})=>{const _0xb75275={'id':_0x5c72b0,'type':_0x1ca477,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x44fc33,'createdAt':_0x2aa413?new Date(_0x2aa413):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0xb75275);});}}class rt extends _0x1c9f3d{['afterInit'](){const _0x547f0c=this['editor'],_0x20e369=_0x547f0c['plugins']['get']('TrackChangesEditing');if(_0x547f0c['plugins']['has']('IndentEditing')&&(_0x20e369['enableCommand']('indent'),_0x20e369['enableCommand']('outdent')),_0x547f0c['plugins']['has']('IndentBlock')){for(const _0x14906c of['indentBlock','outdentBlock'])_0x20e369['enableDefaultAttributesIntegration'](_0x14906c);}const _0x277d9b=_0x547f0c['locale'];_0x20e369['registerBlockAttribute']('blockIndent'),_0x20e369['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x277d9b,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x521377=this['editor'],_0xc3c9d1=_0x521377['locale'],_0x5c9203=_0x521377['plugins']['get']('TrackChangesEditing');_0x5c9203['descriptionFactory']['registerDescriptionCallback'](_0x6dca53=>{if('formatBlock'!=_0x6dca53['type'])return;const {data:_0x5eb29a}=_0x6dca53;if(!_0x5eb29a)return;if('indentBlock'!=_0x5eb29a['commandName']&&'outdentBlock'!=_0x5eb29a['commandName'])return;const _0x55fa15=_0x6dca53['getItems']()[0x0],_0x49b4f8=_0x5c9203['descriptionFactory']['getItemLabel'](_0x55fa15);return'indentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Indent:*\x20%0',_0x49b4f8)}:'outdentBlock'==_0x5eb29a['commandName']?{'type':'format','content':o(_0xc3c9d1,'*Outdent:*\x20%0',_0x49b4f8)}:void 0x0;});}}class at extends _0x1c9f3d{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x1c9f3d{['afterInit'](){const _0xf514e=this['editor'];if(!_0xf514e['plugins']['has']('LinkEditing'))return;const _0xae01cb=_0xf514e['plugins']['get']('TrackChangesEditing'),_0x5d2134=_0xf514e['commands']['get']('link');_0xae01cb['enableDefaultAttributesIntegration']('link'),_0xae01cb['enableDefaultAttributesIntegration']('unlink'),_0xae01cb['registerInlineAttribute']('linkHref');for(const _0x362bcc of _0x5d2134['manualDecorators'])_0xae01cb['registerInlineAttribute'](_0x362bcc['id']),_0xae01cb['descriptionFactory']['registerAttributeLabel'](_0x362bcc['id'],'link\x20('+_0x362bcc['label']['toLowerCase']()+')');_0xae01cb['descriptionFactory']['registerDescriptionCallback'](_0xb8894b=>{if('attribute'!=_0xb8894b['type'])return;const {data:_0x45957c}=_0xb8894b;if(!_0x45957c||'linkHref'!=_0x45957c['key'])return;const _0x29dcaf=_0x45957c['newValue'],_0x558500=_0xf514e['locale'];return{'type':'format','content':null==_0x29dcaf?o(_0x558500,'*Remove\x20link*'):o(_0x558500,'*Set\x20link:*\x20%0','\x22'+_0x29dcaf+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xc64b01=this['editor'],_0x4dd2d0=_0xc64b01['locale'];_0xc64b01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xafe58d=>{if('formatInline'!=_0xafe58d['type'])return;const {data:_0x18f34d}=_0xafe58d;if(_0x18f34d){if('link'==_0x18f34d['commandName']){const _0x1247ee=_0x18f34d['commandParams'][0x0];return{'type':'format','content':o(_0x4dd2d0,'*Set\x20link:*\x20%0','\x22'+_0x1247ee+'\x22')};}return'unlink'==_0x18f34d['commandName']?{'type':'format','content':o(_0x4dd2d0,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x1c9f3d{['afterInit'](){const _0x319167=this['editor'],_0x1e6c3=_0x319167['locale'];if(!_0x319167['plugins']['has']('LegacyListEditing'))return;const _0x46d545=_0x319167['plugins']['get']('TrackChangesEditing'),_0x3f8fbc=_0x319167['plugins']['has']('LegacyTodoListEditing');function _0x5b47b7(_0x258280){return()=>{const _0xa7e95a=_0x319167['model']['document']['selection'],_0x12c737=_0x319167['commands']['get'](_0x258280);if(_0x12c737['value'])return void _0x319167['execute']('paragraph',{});const _0xf2cbc7=_0x258280['slice'](0x0,-0x4),_0xd42465=function(_0xf6657f,_0x317298,_0x32aed6){let _0x1f94f6=Array['from'](_0xf6657f)['filter'](_0x4eeec5=>function(_0x152f66,_0x4120a7){return _0x4120a7['checkChild'](_0x152f66['parent'],'listItem')&&!_0x4120a7['isObject'](_0x152f66);}(_0x4eeec5,_0x32aed6));_0x1f94f6=_0x1f94f6['filter'](_0x569368=>!_0x569368['is']('element','listItem')||_0x569368['getAttribute']('listType')!=_0x317298);const _0xd3ba77=new Set();for(const _0x39c7f4 of _0x1f94f6)_0x39c7f4['is']('element','listItem')?_0xd3ba77['add'](me(_0x39c7f4)):_0xd3ba77['add'](_0x39c7f4);return Array['from'](_0xd3ba77);}(_0xa7e95a['getSelectedBlocks'](),_0xf2cbc7,_0x319167['model']['schema']);_0x319167['model']['change'](()=>{for(const _0x5e935 of _0xd42465)_0x46d545['markBlockFormat'](_0x5e935,{'commandName':_0x258280,'commandParams':[{'forceValue':!_0x12c737['value']}],'formatGroupId':'blockName'},fe(_0x5e935));});};}function _0x58d98f(_0x4b4bcb){return()=>{const _0x1dd815=function(_0x48d608){let _0x3696a7=Array['from'](_0x48d608);const _0x484dff=_0x3696a7['findIndex'](_0x523045=>'listItem'!=_0x523045['name']);return _0x484dff>-0x1&&(_0x3696a7=_0x3696a7['slice'](0x0,_0x484dff)),_0x3696a7;}(_0x319167['model']['document']['selection']['getSelectedBlocks']()),_0xab4667=_0x319167['model']['createRange'](_0x319167['model']['createPositionAt'](_0x1dd815[0x0],'before'),_0x319167['model']['createPositionAt'](_0x1dd815[_0x1dd815['length']-0x1],'end'));_0x319167['model']['change'](()=>{_0x46d545['markBlockFormat'](_0xab4667,{'commandName':_0x4b4bcb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x13f352){const _0x2209e5=new Set();for(const _0x53dd6f of _0x13f352){let _0x10eea5=_0x53dd6f['nextSibling'];for(;_0x10eea5&&_0x10eea5['getAttribute']('listIndent')>_0x53dd6f['getAttribute']('listIndent');)_0x2209e5['add'](_0x10eea5),_0x10eea5=_0x10eea5['nextSibling'];}return Array['from'](_0x2209e5);}(_0x1dd815));});};}_0x46d545['enableCommand']('numberedList',_0x5b47b7('numberedList')),_0x46d545['enableCommand']('bulletedList',_0x5b47b7('bulletedList')),_0x3f8fbc&&_0x46d545['enableCommand']('todoList',_0x5b47b7('todoList')),_0x46d545['enableCommand']('indentList',_0x58d98f('indentList')),_0x46d545['enableCommand']('outdentList',_0x58d98f('outdentList')),_0x3f8fbc&&_0x46d545['enableCommand']('checkTodoList',()=>{const _0x2a323e=_0x319167['commands']['get']('checkTodoList'),_0x1b5e8b=Array['from'](_0x2a323e['_selectedElements']);_0x1b5e8b['filter'](_0x1ac87a=>_0x1ac87a['getAttribute']('todoListChecked')!=_0x2a323e['value']),_0x319167['model']['change'](()=>{for(const _0x5c2ba2 of _0x1b5e8b)_0x46d545['markBlockFormat'](_0x5c2ba2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x2a323e['value']}]});});}),_0x46d545['descriptionFactory']['registerElementLabel']('listItem',_0x469f11=>o(_0x1e6c3,'ELEMENT_LIST_ITEM',_0x469f11)),_0x46d545['descriptionFactory']['registerDescriptionCallback'](_0x48ebd7=>{if('formatBlock'!=_0x48ebd7['type']&&'formatInline'!=_0x48ebd7['type'])return;const {data:_0x2bbb56}=_0x48ebd7;if(_0x2bbb56){if('numberedList'==_0x2bbb56['commandName']||'bulletedList'==_0x2bbb56['commandName']||'todoList'==_0x2bbb56['commandName'])switch(_0x2bbb56['commandName']['replace']('List','')){case'bulleted':return _0x1766f7(o(_0x1e6c3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1766f7(o(_0x1e6c3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1766f7(o(_0x1e6c3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Indent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x2bbb56['commandName'])return{'type':'format','content':o(_0x1e6c3,'*Outdent:*\x20%0',o(_0x1e6c3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x2bbb56['commandName'])return _0x2bbb56['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1e6c3,'*Check\x20item*')}:{'type':'format','content':o(_0x1e6c3,'*Uncheck\x20item*')};}function _0x1766f7(_0xd6a2ff){return{'type':'format','content':o(_0x1e6c3,'*Change\x20to:*\x20%0',_0xd6a2ff)};}});}}function me(_0x592bf1){const _0x2e9903=_0x592bf1['getAttribute']('listIndent');if(0x0==_0x2e9903)return _0x592bf1;let _0x2b0808=_0x592bf1;for(;_0x592bf1['previousSibling']&&_0x592bf1['previousSibling']['is']('element','listItem');){const _0x3d7bd6=_0x592bf1['previousSibling']['getAttribute']('listIndent');if(_0x3d7bd6==_0x2e9903)_0x2b0808=_0x592bf1['previousSibling'];else{if(_0x3d7bd6<_0x2e9903)break;}_0x592bf1=_0x592bf1['previousSibling'];}return _0x2b0808;}function fe(_0xb52087){const _0x2326a5=[];if(_0xb52087['is']('element','listItem')&&_0xb52087['getAttribute']('listIndent')>0x0){let _0x2fbe81=_0xb52087['nextSibling'];for(;_0x2fbe81&&'listItem'==_0x2fbe81['name']&&_0x2fbe81['getAttribute']('listIndent')==_0xb52087['getAttribute']('listIndent');)_0x2326a5['push'](_0x2fbe81),_0x2fbe81=_0x2fbe81['nextSibling'];}return _0x2326a5;}class K extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5a21fe=this['editor']['config']['get']('list.properties'),_0x22dbbe=this['editor']['plugins']['get']('TrackChangesEditing');_0x5a21fe['styles']&&_0x22dbbe['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5a21fe['reversed']&&_0x22dbbe['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5a21fe['startIndex']&&_0x22dbbe['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x22dbbe['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x76ff07,_0x171aad={}){const _0x1ef8dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x484754=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1ef8dc['markMultiRangeBlockFormat'](_0x484754,{'commandName':'listStyle','commandParams':[{'type':_0x171aad['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x20f9f9,_0x4b777d={}){const _0x504421=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1bab96=this['_getSuggestionBlocks'](_0x4b8ff6=>_0x4b8ff6['is']('element','listItem')&&'numbered'===_0x4b8ff6['getAttribute']('listType'));if(_0x1bab96['length']<0x1)return;const _0x1e4517=_0x1bab96['map'](_0x544b0c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x544b0c,'before'),this['editor']['model']['createPositionAt'](_0x544b0c,0x0)));this['editor']['model']['change'](()=>{_0x504421['markMultiRangeBlockFormat'](_0x1e4517,{'commandName':'listReversed','commandParams':[{'reversed':_0x4b777d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x535642,_0x503a68={}){const _0x4d7b0e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x7dcac=this['_getSuggestionBlocks'](_0x5b8360=>_0x5b8360['is']('element','listItem')&&'numbered'===_0x5b8360['getAttribute']('listType'));if(_0x7dcac['length']<0x1)return;const _0x989126=_0x7dcac['map'](_0x2429da=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2429da,'before'),this['editor']['model']['createPositionAt'](_0x2429da,0x0)));this['editor']['model']['change'](()=>{_0x4d7b0e['markMultiRangeBlockFormat'](_0x989126,{'commandName':'listStart','commandParams':[{'startIndex':_0x503a68['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x5909bf){if('formatBlock'!=_0x5909bf['type']&&'formatInline'!=_0x5909bf['type'])return;const _0x4bb853=this['editor']['locale'],{data:_0x2d539c}=_0x5909bf;if(!_0x2d539c)return;let _0xe5ba02,_0x3fb8ae;switch(_0x2d539c['commandName']){case'listStyle':_0xe5ba02='*Change\x20to:*\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,o(_0x4bb853,this['_getTranslationKeyForListStyle'](_0x2d539c['commandParams'][0x0]['type'])))};break;case'listReversed':_0xe5ba02=_0x2d539c['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02)};break;case'listStart':_0xe5ba02='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3fb8ae={'type':'format','content':o(_0x4bb853,_0xe5ba02,_0x2d539c['commandParams'][0x0]['startIndex'])};}return _0x3fb8ae;}['_getSuggestionBlocksForListStyle'](){const _0x35fc7b=this['editor']['plugins']['get']('LegacyListUtils');let _0xd3478a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0xd3478a[0x0]?.['is']('element','listItem')&&_0xd3478a['unshift'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0xd3478a[_0xd3478a['length']-0x1]?.['is']('element','listItem')&&_0xd3478a['push'](..._0x35fc7b['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0xd3478a=[...new Set(_0xd3478a)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0xd3478a=_0xd3478a['filter'](_0xfa0990=>_0xfa0990['is']('element','listItem'))),_0xd3478a;}['_getSuggestionBlocks'](_0x466692){const _0x302cf5=this['editor']['plugins']['get']('LegacyListUtils');let _0x3c3b0b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x466692)['map'](_0x222b83=>{const _0x3a8c32=this['editor']['model']['createPositionAt'](_0x222b83,0x0);return[..._0x302cf5['getSiblingNodes'](_0x3a8c32,'backward'),..._0x302cf5['getSiblingNodes'](_0x3a8c32,'forward')];})['flat']();return _0x3c3b0b=[...new Set(_0x3c3b0b)],_0x3c3b0b;}['_getTranslationKeyForListStyle'](_0x2bb702){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x2bb702)||'default')['toUpperCase']()+'_LIST_'+_0x2bb702['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x1c9f3d{['afterInit'](){const _0x4fbe51=this['editor'];if(!_0x4fbe51['plugins']['has']('MediaEmbedEditing'))return;const _0x28f9b5=_0x4fbe51['plugins']['get']('TrackChangesEditing'),_0x1dbb9f=_0x4fbe51['locale'];_0x28f9b5['enableCommand']('mediaEmbed'),_0x28f9b5['descriptionFactory']['registerElementLabel']('media',_0x413663=>o(_0x1dbb9f,'ELEMENT_MEDIA',_0x413663)),_0x4fbe51['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4fde32,{writer:_0x25f9ac,options:_0x20fa86})=>{if(_0x20fa86['showSuggestionHighlights'])return _0x25f9ac['createEmptyElement']('div');},'converterPriority':'high'}),_0x4fbe51['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3b2822,_0x1bd9cf,_0x11d0e9)=>{_0x11d0e9['options']['showSuggestionHighlights']&&_0x3b2822['stop']();},{'priority':'high'});}}class gt extends _0x1c9f3d{['afterInit'](){const _0x41e878=this['editor'];_0x41e878['plugins']['has']('MentionEditing')&&_0x41e878['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x1c9f3d{['afterInit'](){const _0x1d868e=this['editor'],_0x8a00aa=_0x1d868e['plugins']['get']('TrackChangesEditing');_0x1d868e['plugins']['has']('MultiLevelList')&&(_0x8a00aa['enableDefaultAttributesIntegration']('multiLevelList'),_0x8a00aa['registerBlockAttribute']('listMarkerStyle'),_0x8a00aa['descriptionFactory']['registerDescriptionCallback'](_0x2bfb15=>this['handleDescriptions'](_0x2bfb15)));}['handleDescriptions'](_0x1b6dfe){const _0x170f00=this['editor']['locale'],{data:_0x5f315c}=_0x1b6dfe,_0xf79b29={'type':'format','content':''};if(_0x5f315c&&'listMarkerStyle'==_0x5f315c['key']){if(!_0x5f315c['oldValue'])return{'type':'format','content':o(_0x170f00,'*Set\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['newValue']+')'};if(!_0x5f315c['newValue']){let _0x36d7b2=_0x1b6dfe['head'];for(;_0x36d7b2;){if(_0x36d7b2['data']&&'listType'==_0x36d7b2['data']['key']&&_0x36d7b2['data']['newValue'])return _0xf79b29;_0x36d7b2=_0x36d7b2['next'];}return{'type':'format','content':o(_0x170f00,'*Remove\x20format:*\x20%0',o(_0x170f00,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f315c['oldValue']+')'};}}}}class mt extends _0x1c9f3d{['afterInit'](){const _0x22b72f=this['editor'];if(!_0x22b72f['plugins']['has']('PageBreakEditing'))return;_0x22b72f['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x51185f=_0x22b72f['plugins']['get']('TrackChangesEditing'),_0x3b23b3=_0x22b72f['locale'];_0x51185f['descriptionFactory']['registerElementLabel']('pageBreak',_0x3a1857=>o(_0x3b23b3,'ELEMENT_PAGE_BREAK',_0x3a1857));}}class dt extends _0x1c9f3d{['afterInit'](){const _0x9478d7=this['editor'];if(!_0x9478d7['plugins']['has']('Paragraph'))return;const _0x4c39c3=_0x9478d7['locale'],_0x136c9f=_0x9478d7['plugins']['get']('TrackChangesEditing');_0x136c9f['descriptionFactory']['registerElementLabel']('paragraph',_0x46edb3=>o(_0x4c39c3,'ELEMENT_PARAGRAPH',_0x46edb3)),_0x136c9f['enableDefaultAttributesIntegration']('paragraph'),_0x136c9f['enableCommand']('insertParagraph'),_0x9478d7['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x9478d7),{'priority':'highest'}),_0x9478d7['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x24277c,_0x35cfd3,_0x4b5cd0)=>{_0x4b5cd0['options']['showSuggestionHighlights']&&nr(_0x9478d7,{'showActiveMarker':!0x1})(_0x24277c,_0x35cfd3,_0x4b5cd0);},{'priority':'highest'});const _0x15a3fe=_0x136c9f['descriptionFactory'];_0x15a3fe['registerDescriptionCallback'](_0x2d5521=>{if('insertion'!==_0x2d5521['type'])return;const {start:_0x56f933,end:_0x12a7c7}=_0x2d5521['getFirstRange']();if(!_0x56f933['isTouching'](_0x12a7c7)||!_0x56f933['nodeAfter'])return;const _0x166f39=_0x9478d7['model']['schema'],_0x465b4d=_0x56f933['nodeAfter'];return _0x166f39['isBlock'](_0x465b4d)&&!_0x166f39['isLimit'](_0x465b4d)&&_0x166f39['checkChild'](_0x465b4d,'$text')?{'type':'insertion','content':o(_0x4c39c3,'*Insert:*\x20%0',_0x15a3fe['getItemLabel'](_0x465b4d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1267ba=this['editor'],_0x3bb4a2=_0x1267ba['locale'];_0x1267ba['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffb41=>{if('formatBlock'!=_0x4ffb41['type'])return;const {data:_0x55d21a}=_0x4ffb41;return _0x55d21a&&'paragraph'==_0x55d21a['commandName']?{'type':'format','content':o(_0x3bb4a2,'*Change\x20to:*\x20%0',o(_0x3bb4a2,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x42dafd,{showActiveMarker:_0x4a289b=!0x0}={}){return(_0x50130d,_0x59e0d1,_0x26fce1)=>{const _0x40170a=_0x42dafd['plugins']['get']('TrackChangesEditing'),_0x4298f0=_0x59e0d1['markerRange']['start'],_0x51acfa=_0x59e0d1['markerRange']['end'],_0x15cd2b=_0x42dafd['model']['schema'];if(!_0x4298f0['isTouching'](_0x51acfa)||!_0x4298f0['nodeAfter'])return;const _0x39f77d=_0x4298f0['nodeAfter'];if(_0x15cd2b['isBlock'](_0x39f77d)&&!_0x15cd2b['isLimit'](_0x39f77d)&&_0x15cd2b['checkChild'](_0x39f77d,'$text')){if(!_0x26fce1['consumable']['consume'](_0x59e0d1['markerRange'],_0x50130d['name']))return;const _0x3a85cf=_0x26fce1['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x33d2af=_0x26fce1['mapper']['toViewPosition'](_0x51acfa);_0x4a289b&&_0x40170a['activeMarkers']['includes'](_0x59e0d1['markerName'])&&_0x26fce1['writer']['addClass']('ck-suggestion-marker--active',_0x3a85cf),_0x26fce1['writer']['insert'](_0x33d2af,_0x3a85cf),_0x26fce1['mapper']['bindElementToMarker'](_0x3a85cf,_0x59e0d1['markerName']);}};}class pt extends _0x1c9f3d{['afterInit'](){const _0x4f9475=this['editor'];if(!_0x4f9475['plugins']['has']('RemoveFormatEditing'))return;_0x4f9475['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9375=this['editor'];_0x4c9375['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x414569=>{if('formatBlock'!=_0x414569['type']&&'formatInline'!=_0x414569['type'])return;const {data:_0x4de4b8}=_0x414569;return _0x4de4b8&&'removeFormat'==_0x4de4b8['commandName']?{'type':'format','content':o(_0x4c9375['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x1c9f3d{['afterInit'](){const _0x32ab15=this['editor'];if(!_0x32ab15['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x4c6bda=_0x32ab15['plugins']['get']('TrackChangesEditing');_0x4c6bda['enableCommand']('goToPreviousRestrictedEditingException'),_0x4c6bda['enableCommand']('goToNextRestrictedEditingException');const _0x389172=_0x32ab15['plugins']['get']('RestrictedEditingModeEditing');_0x389172['enableCommand']('trackChanges'),_0x389172['enableCommand']('acceptSuggestion'),_0x389172['enableCommand']('discardSuggestion'),_0x389172['enableCommand']('acceptAllSuggestions'),_0x389172['enableCommand']('discardAllSuggestions'),_0x389172['enableCommand']('acceptSelectedSuggestions'),_0x389172['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x1c9f3d{static get['requires'](){return[_0x25ed4a];}['init'](){const _0xede088=this['editor'],_0x4747cb=_0xede088['plugins']['get']('TrackChangesEditing');_0x4747cb['enableCommand']('shiftEnter'),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0xede088),{'priority':'high'}),_0xede088['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0xede088),{'priority':'high'}),_0xede088['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1cb42f,_0x2e5675,_0x355e05)=>{_0x355e05['options']['showSuggestionHighlights']&&de(_0xede088,{'showActiveMarker':!0x1})(_0x1cb42f,_0x2e5675,_0x355e05);}),_0x4747cb['descriptionFactory']['registerElementLabel']('softBreak',_0x5779c8=>o(_0xede088['locale'],'ELEMENT_LINE_BREAK',_0x5779c8));}}function de(_0x559c39,{showActiveMarker:_0x5d62a7=!0x0}={}){return(_0x142168,_0xb06e62,_0x3b9b63)=>{const _0x27ee5a=_0x559c39['plugins']['get']('TrackChangesEditing');if(!_0x3b9b63['consumable']['test'](_0xb06e62['markerRange'],_0x142168['name']))return;const _0x1f755f=_0x559c39['model'];for(const _0x46e90d of _0xb06e62['markerRange']['getItems']()){if(!_0x46e90d['is']('element','softBreak'))continue;const _0x26bcc9='deletion'==_0xb06e62['markerName']['split'](':')[0x1]?'merge':'split',_0x386452=_0x3b9b63['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x26bcc9}),_0x43cde6=_0x3b9b63['mapper']['toViewPosition'](_0x1f755f['createPositionBefore'](_0x46e90d));_0x5d62a7&&_0x27ee5a['activeMarkers']['includes'](_0xb06e62['markerName'])&&_0x3b9b63['writer']['addClass']('ck-suggestion-marker--active',_0x386452),_0x3b9b63['writer']['insert'](_0x43cde6,_0x386452),_0x3b9b63['mapper']['bindElementToMarker'](_0x386452,_0xb06e62['markerName']);}};}class wt extends _0x1c9f3d{['afterInit'](){const _0x52ca1c=this['editor'],_0x6f0ca0=_0x52ca1c['model'],_0xb28d9b=_0x52ca1c['locale'];if(!_0x52ca1c['plugins']['has']('StandardEditingModeEditing'))return;const _0x2a6ad8=_0x52ca1c['plugins']['get']('TrackChangesEditing'),_0x4fcb5f='restrictedEditingException',_0x4b5ef1=_0x52ca1c['commands']['get'](_0x4fcb5f);_0x2a6ad8['enableCommand'](_0x4fcb5f,(_0x5b40e5,_0x53601d={})=>{const _0x188cf8=_0x6f0ca0['document']['selection'];if(_0x188cf8['isCollapsed'])return void _0x5b40e5(_0x53601d);const _0x2efa59=void 0x0!==_0x53601d['forceValue']?_0x53601d['forceValue']:!_0x4b5ef1['value'];_0x6f0ca0['change'](()=>{const _0x5e608e=Array['from'](_0x188cf8['getRanges']());for(const _0x205031 of _0x5e608e){const _0x3d7e7c=_0x2efa59?[_0x205031]:io(_0x4fcb5f,_0x205031,_0x6f0ca0);for(const _0x3a1b24 of _0x3d7e7c)_0x2a6ad8['markInlineFormat'](_0x3a1b24,{'commandName':_0x4fcb5f,'commandParams':[{'forceValue':_0x2efa59}]});}});}),_0x2a6ad8['descriptionFactory']['registerDescriptionCallback'](_0xc3fc7b=>{if('formatBlock'!=_0xc3fc7b['type']&&'formatInline'!=_0xc3fc7b['type'])return;const {data:_0x563b25}=_0xc3fc7b;return _0x563b25&&_0x563b25['commandName']==_0x4fcb5f?_0x563b25['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0xb28d9b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x1c9f3d{['afterInit'](){const _0x520111=this['editor'];if(!_0x520111['plugins']['has']('Style')||!_0x520111['plugins']['has']('DataSchema'))return;const _0x1e2432=_0x520111['plugins']['get']('TrackChangesEditing'),_0xb1b0ea=_0x520111['locale'],_0x3eba39=_0x520111['config']['get']('style')||{},_0x38a5b2=_0x520111['plugins']['get']('GeneralHtmlSupport'),_0x5b7f8b=_0x520111['plugins']['get']('StyleUtils')['normalizeConfig'](_0x520111['plugins']['get']('DataSchema'),_0x3eba39['definitions']);_0x1e2432['enableDefaultAttributesIntegration']('style');const _0xe3aa74=new Set();for(const _0x2e28e5 of _0x5b7f8b['block']){const _0x96972=_0x38a5b2['getGhsAttributeNameForElement'](_0x2e28e5['element']);_0xe3aa74['add'](_0x96972);}const _0x23d8bd=new Set();for(const _0x286e16 of _0x5b7f8b['inline']){const _0x18df53=_0x38a5b2['getGhsAttributeNameForElement'](_0x286e16['element']);_0x23d8bd['add'](_0x18df53);for(const _0x2b6b07 of _0x286e16['ghsAttributes'])_0x23d8bd['add'](_0x2b6b07);}for(const _0x75950 of _0xe3aa74)_0x1e2432['registerBlockAttribute'](_0x75950),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x75950,o(_0xb1b0ea,'FORMAT_STYLE'));for(const _0x54c973 of _0x23d8bd)_0x1e2432['registerInlineAttribute'](_0x54c973),_0x1e2432['descriptionFactory']['registerAttributeLabel'](_0x54c973,o(_0xb1b0ea,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2e8f7e=this['editor'],_0x4ae8a2=_0x2e8f7e['locale'];_0x2e8f7e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xb8e59b=>{if('formatBlock'!=_0xb8e59b['type']&&'formatInline'!=_0xb8e59b['type'])return;const {data:_0x42abe1}=_0xb8e59b;return _0x42abe1&&'style'===_0x42abe1['commandName']?_0x42abe1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4ae8a2,'*Set\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x4ae8a2,'*Remove\x20format:*\x20%0',_0x42abe1['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x1c9f3d{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x149f44){super(_0x149f44),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4e34e5=this['editor'],_0x153b64=_0x4e34e5['model']['document']['selection'];if(!_0x4e34e5['plugins']['has']('TableEditing'))return;const _0x37fb60=_0x4e34e5['locale'],_0x4c29ac=_0x4e34e5['plugins']['get']('TrackChangesEditing'),_0x38c421=_0x4e34e5['plugins']['get']('TableUtils');_0x4c29ac['descriptionFactory']['registerElementLabel']('table',_0x26aecc=>o(_0x37fb60,'ELEMENT_TABLE',_0x26aecc)),this['_setupColumnsRowsFixing'](),_0x4c29ac['enableCommand']('insertTable'),_0x4c29ac['enableCommand']('selectTableRow'),_0x4c29ac['enableCommand']('selectTableColumn');for(const _0x75f415 of['insertTableRowAbove','insertTableRowBelow']){const _0x34a9c9=_0x4e34e5['commands']['get'](_0x75f415);_0x4c29ac['enableCommand'](_0x75f415,_0x9c6826=>{_0x4e34e5['model']['change'](_0x2621d1=>{_0x9c6826();const _0x34e28c='above'===_0x34a9c9['order'],_0x16e59a=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x41a756=_0x38c421['getRowIndexes'](_0x16e59a),_0x31bd6d=_0x34e28c?_0x41a756['first']-0x1:_0x41a756['last']+0x1,_0x3673c7=_0x16e59a[0x0]['findAncestor']('table'),_0x15aa87=_0x38c421['createTableWalker'](_0x3673c7,{'startRow':_0x31bd6d,'endRow':_0x31bd6d}),_0x332831=Array['from'](_0x15aa87)['map'](_0x2a5526=>_0x2621d1['createRangeOn'](_0x2a5526['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x332831,'tableRow');});});}for(const _0x35a5bd of['insertTableColumnLeft','insertTableColumnRight']){const _0x5b6da9=_0x4e34e5['commands']['get'](_0x35a5bd);_0x4c29ac['enableCommand'](_0x35a5bd,_0x4dfd49=>{_0x4e34e5['model']['change'](_0x26b2b0=>{_0x4dfd49();const _0x419209='left'===_0x5b6da9['order'],_0x309381=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x5b2ac5=_0x38c421['getColumnIndexes'](_0x309381),_0x59ec8d=_0x419209?_0x5b2ac5['first']-0x1:_0x5b2ac5['last']+0x1,_0x40660b=_0x309381[0x0]['findAncestor']('table'),_0xda96f2=_0x38c421['createTableWalker'](_0x40660b,{'startRow':0x0,'column':_0x59ec8d,'includeAllSlots':!0x1}),_0x423ccf=Array['from'](_0xda96f2)['map'](_0x333dc0=>_0x26b2b0['createRangeOn'](_0x333dc0['cell']));_0x4c29ac['markMultiRangeInsertion'](_0x423ccf,'tableColumn');});});}for(const _0x4bef33 of['removeTableRow','removeTableColumn']){const _0x5f433e=_0x4bef33['substr'](0xb),_0x1fd303=_0x5f433e['toLowerCase'](),_0x14b47e=_0x1fd303['substr'](0x0,0x3)+'span',_0x2f255a='table'+_0x5f433e,_0xf7b9d0='min'+_0x5f433e,_0x2fc857='max'+_0x5f433e;_0x4c29ac['enableCommand'](_0x4bef33,()=>{_0x4e34e5['model']['change'](_0x103b24=>{const _0x2b7394=_0x38c421['getSelectionAffectedTableCells'](_0x153b64),_0x34ecb2=_0x2b7394[0x0]['findAncestor']('table');let _0x483b5b;if('removeTableRow'==_0x4bef33){const _0x3b9eba=_0x38c421['getRowIndexes'](_0x2b7394);_0x483b5b={'startRow':_0x3b9eba['first'],'endRow':_0x3b9eba['last'],'includeAllSlots':!0x0};}else{const _0x287fd4=_0x38c421['getColumnIndexes'](_0x2b7394);_0x483b5b={'startColumn':_0x287fd4['first'],'endColumn':_0x287fd4['last'],'includeAllSlots':!0x0};}const _0x1d7b31=_0x38c421['createTableWalker'](_0x34ecb2,_0x483b5b),_0x209205=Array['from'](_0x1d7b31)['map'](({cell:_0xbe23ad})=>_0xbe23ad),_0x3b302f=Ee(_0x209205['filter'](_0x5d7b60=>_0x5d7b60['hasAttribute'](_0x14b47e))),_0x51d997=Ee(_0x209205['filter'](_0x2dafd9=>!_0x2dafd9['hasAttribute'](_0x14b47e)))['map'](_0x38b41a=>_0x103b24['createRangeOn'](_0x38b41a)),_0xc6518f=_0x4c29ac['markMultiRangeDeletion'](_0x51d997,_0x2f255a);if(_0xc6518f&&('tableRow'==_0xc6518f['subType']||'tableColumn'==_0xc6518f['subType'])){const _0x34789d=this['_getSuggestionCoords'](_0xc6518f);for(const _0x29ccdb of _0x3b302f){const _0x2096de=_0x103b24['createRangeOn'](_0x29ccdb),_0x12ee6b=_0x38c421['getCellLocation'](_0x29ccdb),_0x17cf4a=_0x29ccdb['getAttribute'](_0x14b47e)-0x1,_0x101d67=_0x34789d[_0xf7b9d0],_0x226d51=_0x34789d[_0x2fc857];_0x101d67<=_0x12ee6b[_0x1fd303]&&_0x12ee6b[_0x1fd303]+_0x17cf4a<=_0x226d51&&_0xc6518f['addRange'](_0x2096de);}}});});}function _0x2ad378(_0x5eb9c0){const _0x194b8d=Array['from'](_0x153b64['getRanges']())['map'](_0x56c152=>_0x45d820['fromRange'](_0x56c152));_0x4e34e5['model']['change'](_0xef2dbc=>{const _0x319dec=_0xef2dbc['batch'];_0x5eb9c0=_0x5eb9c0['filter'](_0x2c3266=>'$graveyard'!=_0x2c3266['root']['rootName']),_0xef2dbc['setSelection'](_0x5eb9c0),_0x4e34e5['commands']['get']('removeTableRow')['refresh'](),_0x4e34e5['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4e34e5['model']['enqueueChange'](()=>{_0x4e34e5['model']['enqueueChange'](_0x319dec,_0x4fdcff=>{const _0x1766c3=_0x194b8d['filter'](_0x59c3f3=>'$graveyard'!=_0x59c3f3['root']['rootName']);_0x1766c3['length']>0x0&&_0x4fdcff['setSelection'](_0x1766c3);for(const _0x6ad06b of _0x194b8d)_0x6ad06b['detach']();});});});}function _0x514d47(_0x30b76d){_0x4e34e5['model']['change'](_0x58d9a5=>{const _0x4d598a=Array['from'](_0x153b64['getRanges']())['map'](_0x2cb933=>_0x45d820['fromRange'](_0x2cb933)),_0x6ec208=[];for(const _0x93173e of _0x30b76d)for(const _0x2b5e44 of _0x93173e['getItems']({'shallow':!0x0}))_0x6ec208['push'](_0x2b5e44);for(const _0x1ed6bf of _0x6ec208)'$graveyard'!=_0x1ed6bf['root']['rootName']&&(_0x58d9a5['setSelection'](_0x58d9a5['createPositionAt'](_0x1ed6bf,0x0)),_0x4e34e5['commands']['get']('removeTableColumn')['refresh'](),_0x4e34e5['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x1903f6=_0x4d598a['filter'](_0x5a8b09=>'$graveyard'!=_0x5a8b09['root']['rootName']);_0x1903f6['length']>0x0&&_0x58d9a5['setSelection'](_0x1903f6);for(const _0x5225d0 of _0x4d598a)_0x5225d0['detach']();});}function _0xe26880(_0x5c09bb,_0x24398b){return _0x24398b['every'](_0x23cbff=>_0x5c09bb['some'](_0x42871c=>_0x42871c['end']['isEqual'](_0x23cbff['start'])||_0x23cbff['end']['isEqual'](_0x42871c['start'])));}function _0x25e8dd(_0x125976,_0x4944ec){return!_0x125976['some'](_0x38a483=>_0x4944ec['some'](_0x5b54c3=>_0x38a483['isIntersecting'](_0x5b54c3)))&&_0x125976['some'](_0x1f3d48=>_0x4944ec['some'](_0x4c7dab=>_0x1f3d48['end']['isTouching'](_0x4c7dab['start'])));}_0x4e34e5['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x109e80,_0x3879fd,_0x56cf90)=>{if(!_0x56cf90['options']['showSuggestionHighlights'])return;const _0x3ddd04=_0x3879fd['item'];if(!_0x3ddd04)return;const _0x48f262=_0x56cf90['mapper']['toViewElement'](_0x3ddd04);function _0x372100(_0xb9318d){return Array['isArray'](_0xb9318d)?_0xb9318d:[_0xb9318d];}_0x48f262&&'tableCell'===_0x3ddd04['name']&&_0x4a7bb1(_0x48f262,_0x56cf90['writer'],(_0x4a8922,_0x118e0a,_0x4f0ac0)=>_0x4f0ac0['addClass'](_0x372100(_0x118e0a['classes']),_0x4a8922),(_0x1be49b,_0x593451,_0x173178)=>_0x173178['removeClass'](_0x372100(_0x593451['classes']),_0x1be49b));},{'priority':'highest'}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x6ae4b9=>{if('insertion'!=_0x6ae4b9['type']&&'deletion'!=_0x6ae4b9['type'])return;const _0x2c497c=_0x6ae4b9['getContainedElement']();if(null!=_0x2c497c&&_0x2c497c['is']('element','table')){if('insertion'==_0x6ae4b9['type']){const _0x135db2=_0x6ae4b9['getItems']()['filter'](_0x15b60a=>_0x15b60a['is']('$textProxy'))['map'](_0x5a9d51=>_0x5a9d51['data']);if(_0x135db2['length'])return{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x135db2['join']('\x20')+'\x22'))};}if('deletion'==_0x6ae4b9['type']){const _0x58766f=_0x6ae4b9['getItems']()['filter'](_0x55e751=>_0x55e751['is']('$textProxy'))['map'](_0x24b79e=>_0x24b79e['data']);if(_0x58766f['length'])return{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x58766f['join']('\x20')+'\x22'))};}}}),_0x4c29ac['descriptionFactory']['registerDescriptionCallback'](_0x2b20f4=>{if('tableRow'==_0x2b20f4['subType']){const _0x4b2ef8=_0x2b20f4['getItems']()['filter'](_0x68a17b=>_0x68a17b['is']('$textProxy'))['map'](_0x318c22=>_0x318c22['data']),_0x391d3e=this['_getSuggestionCoords'](_0x2b20f4),_0xd29400=_0x391d3e['maxRow']-_0x391d3e['minRow']+0x1;if('insertion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};if('deletion'==_0x2b20f4['type'])return _0x4b2ef8['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0xd29400,'\x22'+_0x4b2ef8['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_ROW',_0xd29400))};}if('tableColumn'==_0x2b20f4['subType']){const _0x644867=_0x2b20f4['getItems']()['filter'](_0x14a4f9=>_0x14a4f9['is']('$textProxy'))['map'](_0x2d040d=>_0x2d040d['data']),_0x5bf5dd=this['_getSuggestionCoords'](_0x2b20f4),_0x5e8cac=_0x5bf5dd['maxColumn']-_0x5bf5dd['minColumn']+0x1;if('insertion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x37fb60,'*Insert:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};if('deletion'==_0x2b20f4['type'])return _0x644867['length']?{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5e8cac,'\x22'+_0x644867['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x37fb60,'*Remove:*\x20%0',o(_0x37fb60,'ELEMENT_TABLE_COLUMN',_0x5e8cac))};}}),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2ad378),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x514d47),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0xe26880),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x25e8dd),_0x4c29ac['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x25e8dd);}['_acceptFormatSuggestionCallbackFactory'](){const _0x575c5f=this['editor'],_0x55f71a=_0x575c5f['model']['document']['selection'];return(_0x397421,_0x581d44)=>{_0x575c5f['model']['change'](_0x3a9209=>{const {commandName:_0x4e8520,commandParams:_0x58d821}=_0x581d44;let _0xa29ee1=_0x397421[0x0]['end']['nodeBefore'];_0x58d821&&_0x58d821[0x0]&&!0x1===_0x58d821[0x0]['forceValue']&&(_0xa29ee1=_0x397421[0x0]['start']['nodeAfter']);const _0x5cf889=_0x3a9209['createRangeIn'](_0xa29ee1);if('$graveyard'==_0x5cf889['root']['rootName'])return;const _0x2bd49d=Array['from'](_0x55f71a['getRanges']())['map'](_0x5e7a51=>_0x45d820['fromRange'](_0x5e7a51));_0x3a9209['setSelection'](_0x5cf889),_0x575c5f['commands']['get'](_0x4e8520)['refresh'](),_0x58d821['push']({'forceDefaultExecution':!0x0}),_0x575c5f['execute'](_0x4e8520,..._0x58d821);const _0x28da02=_0x2bd49d['filter'](_0xd2484c=>'$graveyard'!=_0xd2484c['root']['rootName']);_0x28da02['length']>0x0&&_0x3a9209['setSelection'](_0x28da02);for(const _0x4b9209 of _0x2bd49d)_0x4b9209['detach']();});};}['_getCoordsForCells'](_0xb230c6){const _0x275acd=this['editor']['plugins']['get']('TableUtils');let _0x1c28ac=Number['MAX_SAFE_INTEGER'],_0x1b1cb6=Number['MIN_SAFE_INTEGER'],_0x375ca6=Number['MAX_SAFE_INTEGER'],_0x4424ce=Number['MIN_SAFE_INTEGER'];for(const _0x41968c of _0xb230c6){if('$graveyard'==_0x41968c['root']['rootName'])continue;const {row:_0xd92af3,column:_0x5d78fb}=_0x275acd['getCellLocation'](_0x41968c),_0x2d8e67=_0x41968c['hasAttribute']('rowspan')?_0x41968c['getAttribute']('rowspan')-0x1:0x0,_0x164a19=_0x41968c['hasAttribute']('colspan')?_0x41968c['getAttribute']('colspan')-0x1:0x0;_0x1c28ac=_0xd92af3<_0x1c28ac?_0xd92af3:_0x1c28ac,_0x1b1cb6=_0xd92af3+_0x2d8e67>_0x1b1cb6?_0xd92af3+_0x2d8e67:_0x1b1cb6,_0x375ca6=_0x5d78fb<_0x375ca6?_0x5d78fb:_0x375ca6,_0x4424ce=_0x5d78fb+_0x164a19>_0x4424ce?_0x5d78fb+_0x164a19:_0x4424ce;}return{'minRow':_0x1c28ac,'maxRow':_0x1b1cb6,'minColumn':_0x375ca6,'maxColumn':_0x4424ce};}['_setupColumnsRowsFixing'](){const _0x49a7d3=this['editor'],_0x4f26d1=_0x49a7d3['plugins']['get']('TrackChangesEditing'),_0x1fdb0b=_0x49a7d3['plugins']['get']('TableUtils');_0x49a7d3['model']['document']['on']('change:data',()=>{const _0x26e6ad=Array['from'](_0x49a7d3['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x252d5b,data:_0x37aa63}of _0x26e6ad){const {group:_0x46fd02,id:_0x1df74c,subType:_0x4cd431}=_0x4f26d1['_splitMarkerName'](_0x252d5b);if('suggestion'!=_0x46fd02)continue;if(null!=_0x37aa63['oldRange'])continue;const _0x3a2906=_0x4f26d1['getSuggestion'](_0x1df74c);this['_tablePostFixingSubtypes']['includes'](_0x4cd431)&&this['_tableSuggestions']['add'](_0x3a2906);}},{'priority':'low'});const _0x20caa9=(_0x29637b,_0x44ddaa)=>{let _0x597663=!0x1;const _0x1e8560=_0x44ddaa['createRangeOn'](_0x29637b),_0x35a3b0=_0x29637b['findAncestor']('table'),_0x5fb4a2=_0x1fdb0b['getCellLocation'](_0x29637b);for(const _0x50ae70 of this['_tableSuggestions']){const _0x23b900=_0x50ae70['subType'],_0xd73b8b=_0x23b900['startsWith']('tablePaste'),_0x5b8c05=_0x23b900['substr'](_0xd73b8b?0xa:0x5),_0x1baecd=_0x5b8c05['toLowerCase'](),_0x11f97e=_0x1baecd['substr'](0x0,0x3)+'span',_0x2a14c3='min'+_0x5b8c05,_0x54d7c2='max'+_0x5b8c05;if(!_0x50ae70['isInContent'])continue;if(_0x35a3b0!=_0x50ae70['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x50ae70['isIntersectingWithRange'](_0x1e8560))continue;const _0x54a199=_0x29637b['hasAttribute'](_0x11f97e)?_0x29637b['getAttribute'](_0x11f97e)-0x1:0x0,_0x4ed748=this['_getSuggestionCoords'](_0x50ae70),_0xe953d4=_0x4ed748[_0x2a14c3],_0x15de5b=_0x4ed748[_0x54d7c2];_0xe953d4<=_0x5fb4a2[_0x1baecd]&&_0x5fb4a2[_0x1baecd]+_0x54a199<=_0x15de5b&&(_0x50ae70['addRange'](_0x1e8560),_0x597663=!0x0);}return _0x597663;};_0x49a7d3['model']['document']['registerPostFixer'](_0x5ae364=>{let _0x66975c=!0x1;for(const _0x4514e2 of _0x49a7d3['model']['document']['differ']['getChanges']())if('insert'==_0x4514e2['type']){if('tableRow'==_0x4514e2['name']){for(const _0x11c96d of _0x4514e2['position']['nodeAfter']['getChildren']())_0x66975c=_0x66975c||_0x20caa9(_0x11c96d,_0x5ae364);}else'tableCell'==_0x4514e2['name']&&(_0x66975c=_0x66975c||_0x20caa9(_0x4514e2['position']['nodeAfter'],_0x5ae364));}return _0x66975c;});}['_getSuggestionCoords'](_0x1ed09c){return this['_getCoordsForCells'](_0x1ed09c['getRanges']()['map'](_0x395b14=>_0x395b14['start']['nodeAfter']));}}function Ee(_0x452ed9){return Array['from'](new Set(_0x452ed9)['values']());}class St extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0xc0a1ad=this['editor'],_0x5ac065=_0xc0a1ad['model']['document']['selection'],_0x4c3414=_0xc0a1ad['locale'];if(!_0xc0a1ad['plugins']['has']('TableEditing'))return;const _0x502e6a=_0xc0a1ad['plugins']['get']('TrackChangesEditing'),_0x341726=_0xc0a1ad['plugins']['get']('TableUtils'),_0xc4cd32=_0xc0a1ad['plugins']['get'](jt);_0xc4cd32['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x502e6a['enableCommand']('mergeTableCells',()=>{const _0x147d22=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection']);_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat'](_0x147d22,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xc0a1ad['commands']['get']('mergeTableCells')['on']('execute',(_0x4f3332,_0x489670)=>{_0xc0a1ad['commands']['get']('trackChanges')['value']&&(_0x489670['length']>0x0&&_0x489670[_0x489670['length']-0x1]&&_0x489670[_0x489670['length']-0x1]['forceDefaultExecution']||_0x502e6a['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x4f3332['stop']());},{'priority':'highest'});for(const _0x23ce57 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x25b5a2=_0xc0a1ad['commands']['get'](_0x23ce57);_0x502e6a['enableCommand'](_0x23ce57,()=>{const _0x1e7912=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x15b233=>_0x15b233['is']('element','tableCell')),_0x5a4557=_0x25b5a2['value'];_0xc0a1ad['model']['change'](()=>{_0x502e6a['markMultiRangeBlockFormat']([_0x1e7912,_0x5a4557],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x14419d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x118c06=_0xc0a1ad['commands']['get'](_0x14419d);_0x502e6a['enableCommand'](_0x14419d,()=>{const _0x202bab=_0x341726['getSelectionAffectedTableCells'](_0xc0a1ad['model']['document']['selection'])[0x0],_0x3b28dd=_0x202bab['findAncestor']('table'),{column:_0x5f2717,row:_0x40f091}=_0x341726['getCellLocation'](_0x202bab);let _0x34832c=[];if('horizontally'==_0x118c06['direction']){const _0x50cf54=_0x341726['createTableWalker'](_0x3b28dd,{'startRow':_0x40f091,'endRow':_0x40f091,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x50cf54)['map'](_0x3ddd0e=>_0x3ddd0e['cell']);}else{const _0x9f39dd=_0x341726['createTableWalker'](_0x3b28dd,{'column':_0x5f2717,'includeAllSlots':!0x0});_0x34832c=Array['from'](_0x9f39dd)['map'](_0x3dc2fe=>_0x3dc2fe['cell']);}_0xc0a1ad['model']['change'](_0x2d4a72=>{_0x502e6a['markBlockFormat'](_0x2d4a72['createRangeOn'](_0x202bab),{'commandName':_0x14419d,'commandParams':[]},_0x34832c,_0x14419d);});});}_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x476f3=>{if('formatBlock'!=_0x476f3['type']&&'formatInline'!=_0x476f3['type'])return;const {data:_0x59eb13}=_0x476f3;return _0x59eb13&&'mergeTableCells'==_0x59eb13['commandName']?{'type':'format','content':o(_0x4c3414,'*Merge\x20cells*')}:void 0x0;}),_0x502e6a['descriptionFactory']['registerDescriptionCallback'](_0x45ab6a=>{if('formatBlock'!=_0x45ab6a['type']&&'formatInline'!=_0x45ab6a['type'])return;const {data:_0x2e28cd}=_0x45ab6a;return _0x2e28cd?'splitTableCellVertically'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x2e28cd['commandName']?{'type':'format','content':o(_0x4c3414,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x577b2e=_0xc4cd32['_acceptFormatSuggestionCallbackFactory']();for(const _0x44cafe of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x44cafe,'accept',_0x577b2e);for(const _0x52fdb9 of['splitTableCellVertically','splitTableCellHorizontally'])_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x52fdb9,'accept',_0x577b2e);_0x502e6a['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x2d8027=>{_0xc0a1ad['model']['change'](_0x55e668=>{const _0x342ac4=Array['from'](_0x5ac065['getRanges']())['map'](_0x1d0a70=>_0x45d820['fromRange'](_0x1d0a70));_0x55e668['setSelection'](_0x2d8027),_0xc0a1ad['commands']['get']('mergeTableCells')['refresh'](),_0xc0a1ad['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x320b67=_0x342ac4['filter'](_0x43149b=>'$graveyard'!=_0x43149b['root']['rootName']);_0x320b67['length']>0x0&&_0x55e668['setSelection'](_0x320b67);for(const _0x14c1da of _0x342ac4)_0x14c1da['detach']();});});for(const _0x1424c1 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x37fbcb=_0xc0a1ad['commands']['get'](_0x1424c1);_0x37fbcb['on']('set:isEnabled',(_0x36d3e6,_0x2cff7f,_0xb9ffe2)=>{if(_0xb9ffe2){const _0xcf87cd=_0xc0a1ad['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xd97741=>_0xd97741['is']('element','tableCell'));this['_areMergableCells'](_0x37fbcb['value'],_0xcf87cd)||(_0x36d3e6['return']=!0x1,_0x36d3e6['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x1ce062=this['editor']['commands']['get']('mergeTableCells'),_0x84cc4b=this['editor']['plugins']['get']('TableUtils');if(!_0x1ce062['isEnabled'])return!0x1;const _0x240452=_0x84cc4b['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x1361ec of _0x240452)for(const _0x1391f8 of _0x240452)if(_0x1361ec!=_0x1391f8&&!this['_areMergableCells'](_0x1361ec,_0x1391f8))return!0x1;return!0x0;}['_areMergableCells'](_0x1ec160,_0x47f120){const _0x533f4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x44878a=this['editor']['model']['createRangeOn'](_0x1ec160),_0x2edd91=this['editor']['model']['createRangeOn'](_0x47f120),_0x2ee2cd=new Set(),_0x1cabaa=new Set();for(const _0x4f0d48 of _0x533f4f['getSuggestions']())if(('insertion'==_0x4f0d48['type']||'deletion'==_0x4f0d48['type']||'mergeTableCells'==_0x4f0d48['subType'])&&_0x4f0d48['isInContent']){for(const _0x91d1a6 of _0x4f0d48['getRanges']())_0x91d1a6['containsRange'](_0x44878a,!0x0)&&_0x2ee2cd['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']),_0x91d1a6['containsRange'](_0x2edd91,!0x0)&&_0x1cabaa['add'](_0x4f0d48['type']+':'+_0x4f0d48['author']['id']);}if(_0x2ee2cd['size']!=_0x1cabaa['size'])return!0x1;for(const _0x5dc6f2 of _0x2ee2cd)if(!_0x1cabaa['has'](_0x5dc6f2))return!0x1;return!0x0;}}class At extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x42d59c=this['editor'];if(!_0x42d59c['plugins']['has']('TableEditing'))return;const _0x532fc2=_0x42d59c['locale'],_0x3d4a72=_0x42d59c['plugins']['get']('TrackChangesEditing');_0x3d4a72['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3d4a72['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3d4a72['registerBlockAttribute']('headingRows'),_0x3d4a72['registerBlockAttribute']('headingColumns'),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x532fc2,'FORMAT_HEADER_ROW')),_0x3d4a72['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x532fc2,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x19c1a1=this['editor']['plugins']['get']('TrackChangesEditing'),_0x525e4a=this['editor']['plugins']['get']('TableUtils'),_0x2ac8a9=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x17fbe7({showActiveMarker:_0x4fc6ff=!0x0,setDataAttribute:_0x2b3fe4=!0x0}={}){return(_0x2eb042,_0x397f3e,_0x578a9b)=>{const {type:_0x154496,id:_0x37661a}=_0x19c1a1['_splitMarkerName'](_0x397f3e['markerName']),_0x3f7171=_0x19c1a1['getSuggestion'](_0x37661a),_0x401c27=_0x3f7171['data'];if('formatBlock'!=_0x3f7171['type']||!_0x401c27||'setTableColumnHeader'!=_0x401c27['commandName'])return;if(_0x397f3e['item'])return void _0x2eb042['stop']();if(!_0x578a9b['consumable']['consume'](_0x397f3e['markerRange'],_0x2eb042['name']))return;const _0x413a1f=_0x397f3e['markerRange']['start']['nodeAfter'],_0x30a22c=_0x397f3e['markerRange']['end']['nodeBefore'],_0x447f0c=_0x413a1f['parent']['parent'],{column:_0x5c93b4}=_0x525e4a['getCellLocation'](_0x413a1f),{column:_0x55023a}=_0x525e4a['getCellLocation'](_0x30a22c);for(let _0x2dc5cd=_0x5c93b4;_0x2dc5cd<=_0x55023a;_0x2dc5cd++){const _0x3cf153=_0x525e4a['createTableWalker'](_0x447f0c,{'column':_0x2dc5cd,'includeAllSlots':!0x1});for(const _0x3e48e4 of _0x3cf153){const _0x4d807b=_0x3e48e4['cell'],_0x287754=_0x578a9b['mapper']['toViewElement'](_0x4d807b);_0x578a9b['writer']['addClass']('ck-suggestion-marker-'+_0x154496,_0x287754),_0x2b3fe4&&_0x578a9b['writer']['setAttribute']('data-suggestion',_0x37661a,_0x287754),_0x578a9b['mapper']['bindElementToMarker'](_0x287754,_0x397f3e['markerName']),_0x4fc6ff&&(_0x19c1a1['activeMarkers']['includes'](_0x397f3e['markerName'])?_0x578a9b['writer']['addClass']('ck-suggestion-marker--active',_0x287754):_0x578a9b['writer']['removeClass']('ck-suggestion-marker--active',_0x287754));}}};}_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2ac8a9),_0x19c1a1['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2ac8a9),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x17fbe7(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x5dc507,_0x10b59d,_0x5ac255)=>{_0x5ac255['options']['showSuggestionHighlights']&&_0x17fbe7({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x5dc507,_0x10b59d,_0x5ac255);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0xde292,_0x273601,_0x481363)=>{const {type:_0xa2b95,id:_0x112574}=_0x19c1a1['_splitMarkerName'](_0x273601['markerName']),_0x2e7adb=_0x19c1a1['getSuggestion'](_0x112574),_0x5c7b37=_0x2e7adb['data'];if('formatBlock'!=_0x2e7adb['type']||!_0x5c7b37||'setTableColumnHeader'!=_0x5c7b37['commandName'])return;const _0x5006b3=_0x481363['mapper']['markerNameToElements'](_0x273601['markerName']);if(_0x5006b3){for(const _0x49019b of _0x5006b3)_0x481363['writer']['removeClass']('ck-suggestion-marker-'+_0xa2b95,_0x49019b),_0x481363['writer']['removeClass']('ck-suggestion-marker--active',_0x49019b),_0x481363['writer']['removeAttribute']('data-suggestion',_0x49019b),_0x481363['mapper']['unbindElementFromMarkerName'](_0x49019b,_0x273601['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x466c40=this['editor'],_0xd00306=_0x466c40['locale'];function _0x132111(_0x3d25df){return{'type':'format','content':o(_0xd00306,'*Format:*\x20%0',_0x3d25df)};}_0x466c40['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44ecf2=>{if('formatBlock'!=_0x44ecf2['type'])return;const {data:_0x36708f}=_0x44ecf2;if(_0x36708f){if('setTableRowHeader'==_0x36708f['commandName']){const _0x3d063c=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x3d063c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x36708f['commandName']){const _0x32c27f=_0x36708f['commandParams'][0x0]['forceValue'];return _0x132111(o(_0xd00306,_0x32c27f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x2f8bf3=>[_0x2f8bf3,null]));class It extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x11676e=this['editor'];if(!_0x11676e['plugins']['has']('TableClipboard'))return;const _0x4e8fc0=_0x11676e['plugins']['get']('TrackChangesEditing'),_0x2d402b=_0x11676e['plugins']['get']('TableUtils'),_0x53351a=_0x11676e['plugins']['get'](jt),_0x189259=_0x11676e['plugins']['get']('TableClipboard');_0x53351a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x11676e['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x11676e['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x2b8a8c=null;_0x11676e['model']['on']('insertContent',(_0x332a8f,_0x4267c7)=>{const [_0x455b49,_0xd143be]=_0x4267c7,_0x31d33b=_0x4267c7[_0x4267c7['length']-0x1];_0x31d33b&&_0x31d33b['forceDefaultExecution']||_0x4e8fc0['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x34108a,_0x55f27a,_0xac81ef,_0x443b42,_0x37e7ed){if(_0x55f27a&&!_0x55f27a['is']('documentSelection'))return!0x1;const _0x4b04ed=_0x37e7ed['getTableIfOnlyTableInContent'](_0x34108a,_0xac81ef);if(!_0x4b04ed||!he(_0x4b04ed,void 0x0,_0x443b42))return!0x1;const _0x18dab5=_0x443b42['getSelectionAffectedTableCells'](_0xac81ef['document']['selection']);if(!_0x18dab5['length'])return!0x1;const _0x27d245=_0x18dab5[0x0]['findAncestor']('table'),_0x5e02e8=_0x443b42['getRowIndexes'](_0x18dab5),_0x5910fd=_0x443b42['getColumnIndexes'](_0x18dab5),_0x392288={'startRow':_0x5e02e8['first'],'endRow':_0x5e02e8['last'],'startColumn':_0x5910fd['first'],'endColumn':_0x5910fd['last']};return 0x1==_0x18dab5['length']&&(_0x392288['endRow']+=_0x443b42['getRows'](_0x4b04ed)-0x1,_0x392288['endColumn']+=_0x443b42['getColumns'](_0x4b04ed)-0x1),he(_0x27d245,_0x392288,_0x443b42);}(_0x455b49,_0xd143be,_0x11676e['model'],_0x2d402b,_0x189259)&&(_0x332a8f['stop'](),_0x2b8a8c={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x11676e['model']['change'](()=>{_0x11676e['model']['insertContent'](_0x4267c7[0x0],_0x4267c7[0x1],_0x4267c7[0x2],{'forceDefaultExecution':!0x0});const _0x548401=_0x7b6b31(),{rowInsertionRanges:_0x54ae,columnInsertionRanges:_0x1a311c,insertionRanges:_0x25e081,deletionRanges:_0x38de13,cells:_0x401c99}=_0x2b8a8c;_0x54ae['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x54ae,'tablePasteRow',{'tablePasteChainId':_0x548401}),_0x1a311c['length']&&_0x4e8fc0['markMultiRangeInsertion'](_0x1a311c,'tablePasteColumn',{'tablePasteChainId':_0x548401}),_0x25e081['length']&&(_0x4e8fc0['markMultiRangeInsertion'](_0x25e081,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x25e081['forEach'](_0x29039a=>_0x29039a['detach']?.())),_0x38de13['length']&&(_0x4e8fc0['markMultiRangeDeletion'](_0x38de13,'tablePaste',{'tablePasteChainId':_0x548401,'skipNestingCheck':!0x0}),_0x38de13['forEach'](_0x2be507=>_0x2be507['detach']?.()));const _0x2b508d=_0x4e8fc0['markMultiRangeBlockFormat'](_0x401c99['map'](({element:_0x4331fb})=>_0x4331fb),{'formatGroupId':_0x7b6b31()},[],'tablePasteCell',{'tablePasteChainId':_0x548401});if(_0x2b508d){const _0x55619c=_0x2b508d['getMarkers'](),_0x852aa4=[];for(const {element:_0x3dc938,attributes:_0x1dfcf8}of _0x401c99){if(!_0x1dfcf8)continue;const _0x2eb5ba=_0x11676e['model']['createRangeOn'](_0x3dc938),_0x4fd0d8=_0x55619c['find'](_0x5e7136=>_0x5e7136['getRange']()['isEqual'](_0x2eb5ba));_0x4fd0d8&&_0x852aa4['push']([_0x4fd0d8['name'],_0x1dfcf8]);}_0x852aa4['length']&&_0x2b508d['setAttribute']('markerAttributes',Object['fromEntries'](_0x852aa4));}_0x2b8a8c=null;}));},{'priority':_0x2c04bb['high']+0xa}),_0x11676e['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0xdce503,_0x5b3295)=>{const [_0x3d360c,_0x16257a,,_0x3bf666]=_0x5b3295;if(!_0x2b8a8c)return;_0xdce503['stop']();const _0x39d451=_0x3d360c['cell'],_0x5e8d86=_0x16257a,_0x334b4d=Pe(_0x39d451),_0x46e7fa=Pe(_0x5e8d86);_0xdce503['return']=_0x39d451;let _0x24d365=null,_0xf82b86=null;if(_0x46e7fa||_0x334b4d){if(_0x334b4d&&!_0x46e7fa){_0x3bf666['remove'](_0x39d451['getChild'](0x0));for(const _0x432e16 of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x432e16,_0x39d451,'end');const _0x554f9d=_0x2b8a8c['rowInsertionIndexes']['includes'](_0x3d360c['row']),_0x519b9a=_0x2b8a8c['columnInsertionIndexes']['includes'](_0x3d360c['column']);_0x554f9d||_0x519b9a||(_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeIn'](_0x39d451)));}else _0x46e7fa&&!_0x334b4d&&(_0xf82b86=_0x3bf666['createRangeIn'](_0x39d451));}else{const _0x1d7fcf=_0x3bf666['createElement']('tableCellSuggestion'),_0xe5c7d7=_0x3bf666['createElement']('tableCellSuggestion');_0x3bf666['wrap'](_0x3bf666['createRangeIn'](_0x39d451),_0xe5c7d7),_0x3bf666['insert'](_0x1d7fcf,_0x39d451,0x0);for(const _0x5f134e of Array['from'](_0x5e8d86['getChildren']()))_0x3bf666['insert'](_0x5f134e,_0x1d7fcf,'end');_0x24d365=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0x1d7fcf)),_0xf82b86=_0x45d820['fromRange'](_0x3bf666['createRangeOn'](_0xe5c7d7));}const _0x48719b=Array['from'](_0x5e8d86['getAttributes']())['filter'](([_0x58241f])=>ge['includes'](_0x58241f));_0x2b8a8c['cells']['push']({'element':_0x39d451,'attributes':_0x48719b['length']?Object['fromEntries'](_0x48719b):null}),_0x24d365&&_0x2b8a8c['insertionRanges']['push'](_0x24d365),_0xf82b86&&_0x2b8a8c['deletionRanges']['push'](_0xf82b86);},{'priority':'high'}),_0x2d402b['on']('insertColumns',(_0x37e0bc,_0x3fe6d4)=>{const [_0xeb8c49,_0x17395d={}]=_0x3fe6d4;if(!_0x2b8a8c)return;const _0x34ede5=_0x17395d['at']||0x0,_0x1e0e0a=_0x17395d['columns']||0x1;_0x2b8a8c['columnInsertionIndexes']=new Array(_0x1e0e0a)['fill'](_0x34ede5)['map']((_0x3914a6,_0x1ed92f)=>_0x3914a6+_0x1ed92f);for(const {cell:_0x905ba4}of _0x2d402b['createTableWalker'](_0xeb8c49,{'startColumn':_0x34ede5,'endColumn':_0x34ede5+_0x1e0e0a-0x1}))_0x2b8a8c['columnInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x905ba4));},{'priority':'low'}),_0x2d402b['on']('insertRows',(_0x4e0887,_0x586e6e)=>{const [_0x4debd1,_0x51e36a={}]=_0x586e6e;if(!_0x2b8a8c)return;const _0x45ccee=_0x51e36a['at']||0x0,_0x53ef53=_0x51e36a['rows']||0x1;_0x2b8a8c['rowInsertionIndexes']=new Array(_0x53ef53)['fill'](_0x45ccee)['map']((_0x345521,_0x4fbb7e)=>_0x345521+_0x4fbb7e);for(const {cell:_0x1bed04}of _0x2d402b['createTableWalker'](_0x4debd1,{'startRow':_0x45ccee,'endRow':_0x45ccee+_0x53ef53-0x1}))_0x2b8a8c['rowInsertionRanges']['push'](_0x11676e['model']['createRangeOn'](_0x1bed04));},{'priority':'low'}),_0x4e8fc0['descriptionFactory']['registerDescriptionCallback'](_0x61c413=>{if(_0x61c413['subType']&&_0x61c413['subType']['startsWith']('tablePaste'))return _0x61c413['previous']?{}:{'type':'insertion','content':o(_0x11676e['locale'],'*Replace\x20table\x20cells*')};});const _0x5ca457=()=>!0x1;for(const _0xceec43 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('deletion',_0xceec43,'join',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xceec43,'join',_0x5ca457);_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5ca457),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x12a257,_0x21114b,_0x527022)=>{const _0x555994=_0x12a257['map'](_0x284aae=>_0x284aae['getContainedElement']())['filter'](_0x1d9030=>_0x1d9030),_0x4956e1=new Map(_0x555994['map'](_0x22395f=>[_0x22395f,null]));if(_0x2b8a8c){for(const {element:_0x379fa8,attributes:_0x5668d0}of _0x2b8a8c['cells'])_0x5668d0&&_0x4956e1['set'](_0x379fa8,_0x5668d0);}else{if(_0x527022&&_0x527022['markerAttributes'])for(const [_0x52921f,_0x355d07]of Object['entries'](_0x527022['markerAttributes'])){const _0x173b54=_0x11676e['model']['markers']['get'](_0x52921f),_0x17420f=_0x173b54?_0x173b54['getRange']()['getContainedElement']():null;_0x17420f&&_0x4956e1['set'](_0x17420f,_0x355d07);}}_0x11676e['model']['change'](_0x298b8b=>{for(const [_0x4b673f,_0x4980b4]of _0x4956e1)_0x298b8b['setAttributes']({...Ce,..._0x4980b4},_0x4b673f);});});const _0x159b0b=(_0xcce6a3,_0x357b68)=>{_0x4e8fc0['_suggestionFactory']['registerCustomCallback'](_0xcce6a3,'tablePaste',_0x357b68,(_0x39afaa,_0x29182b,_0x4c4069)=>{_0x11676e['model']['change'](_0x5475d9=>{const _0x36d14c=[];for(const _0x169282 of _0x39afaa){const _0x2e6f5a=_0x169282['start']['nodeAfter'];_0x2e6f5a['is']('element','tableCellSuggestion')&&_0x36d14c['push'](_0x2e6f5a);}_0x4e8fc0['_suggestionFactory']['getSuggestionCallback'](_0xcce6a3,null,_0x357b68)(_0x39afaa,_0x29182b,_0x4c4069);for(const _0x3384fc of _0x36d14c)'$graveyard'!=_0x3384fc['root']['rootName']&&_0x5475d9['unwrap'](_0x3384fc);});});};_0x159b0b('insertion','accept'),_0x159b0b('insertion','discard'),_0x159b0b('deletion','accept'),_0x159b0b('deletion','discard'),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3604dc=>{const _0xa33e0c=_0x3604dc['map'](_0x33a8b6=>_0x33a8b6['getContainedElement']()),_0x3039a5=_0xa33e0c[0x0]['findAncestor']('table'),{minRow:_0x4c9e12,maxRow:_0x22e0ac}=_0x53351a['_getCoordsForCells'](_0xa33e0c);_0x2d402b['removeRows'](_0x3039a5,{'at':_0x4c9e12,'rows':_0x22e0ac-_0x4c9e12+0x1});}),_0x4e8fc0['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x1c576a=>{const _0x22ffae=_0x1c576a['map'](_0x50f979=>_0x50f979['getContainedElement']()),_0x5b70e9=_0x22ffae[0x0]['findAncestor']('table'),{minColumn:_0x2b8332,maxColumn:_0x490674}=_0x53351a['_getCoordsForCells'](_0x22ffae);_0x2d402b['removeColumns'](_0x5b70e9,{'at':_0x2b8332,'columns':_0x490674-_0x2b8332+0x1});});const _0xf34dcd=(_0x271479,_0x28fb65)=>{if(!_0x28fb65['subType']||!_0x28fb65['subType']['startsWith']('tablePaste'))return;const _0x5e0b4f=_0x28fb65['attributes']['tablePasteChainId'],_0x5df761=_0x4e8fc0['getSuggestions']()['filter'](_0x35352f=>_0x35352f['isInContent']&&_0x35352f['attributes']&&_0x35352f['attributes']['tablePasteChainId']==_0x5e0b4f);_0x5df761['length']&&_0x28fb65['getAllAdjacentSuggestions']()['length']!=_0x5df761['length']&&_0x5df761['reduce']((_0x86f92c,_0x16332d)=>(_0x86f92c['next']=_0x16332d,_0x16332d['previous']=_0x86f92c,_0x16332d));};function _0x467373(_0x42c70d,_0x5618ca=!0x0){const {id:_0x3a8b6d}=_0x4e8fc0['_splitMarkerName'](_0x42c70d['markerName']),_0x21cfee=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x1c58fd=_0x4e8fc0['activeMarkers']['includes'](_0x42c70d['markerName']);return _0x1c58fd&&_0x21cfee['push']('ck-suggestion-marker--active'),{'classes':_0x21cfee,'attributes':{'data-suggestion':_0x3a8b6d},'priority':_0x1c58fd&&_0x5618ca?0xbc2:0xbb8};}_0x4e8fc0['on']('suggestionLoaded',_0xf34dcd,{'priority':'high'}),_0x4e8fc0['on']('suggestionUnloaded',_0xf34dcd,{'priority':'high'}),_0x11676e['model']['document']['registerPostFixer'](()=>{let _0x42a808=!0x1;const _0x1f38b3=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1319b3,data:_0x3127f5}of _0x1f38b3){const {group:_0x43433c,type:_0x42c00c,id:_0x4dbf91}=_0x4e8fc0['_splitMarkerName'](_0x1319b3);if('suggestion'!=_0x43433c||'deletion'!=_0x42c00c||_0x3127f5['oldRange'])continue;if(!_0x4e8fc0['hasSuggestion'](_0x4dbf91))continue;const _0x16c037=_0x4e8fc0['getSuggestion'](_0x4dbf91)['getRanges'](),_0xdd8a02=_0x11676e['plugins']['get']('Users')['me'];for(const _0x30b9fc of _0x4e8fc0['getSuggestions']()){if(!_0x30b9fc['isInContent']||_0x30b9fc['author']!=_0xdd8a02)continue;if('formatBlock'!=_0x30b9fc['type']||'tablePasteCell'!=_0x30b9fc['subType'])continue;if(_0x30b9fc['getRanges']()['every'](_0xdc8b5=>_0x16c037['some'](_0x1416a9=>_0x1416a9['containsRange'](_0xdc8b5,!0x0)))){for(const _0x137965 of _0x30b9fc['getAllAdjacentSuggestions']())_0x137965['isInContent']&&(_0x137965['discard'](),_0x42a808=!0x0);}}}return _0x42a808;}),_0x11676e['model']['document']['registerPostFixer'](_0x107ad9=>{const _0x3687bf=_0x11676e['commands']['get']('redo');if(!_0x3687bf||!_0x3687bf['_createdBatches']['has'](_0x107ad9['batch']))return!0x1;let _0xd15d58=!0x1;const _0x53897c=_0x11676e['plugins']['get']('Users')['me'],_0x36088b=_0x11676e['model']['document']['differ']['getChanges'](),_0x49e718=Array['from'](_0x11676e['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0xc4fb02,data:_0x270751})=>{const {group:_0x4dadcf,subType:_0x533092,authorId:_0x1f90f1}=_0x4e8fc0['_splitMarkerName'](_0xc4fb02);return'suggestion'==_0x4dadcf&&'tablePaste'==_0x533092&&_0x1f90f1==_0x53897c['id']&&!_0x270751['oldRange'];});for(const _0x3073cf of _0x36088b){if('insert'!=_0x3073cf['type']||'tableCellSuggestion'!=_0x3073cf['name']||0x1!=_0x3073cf['length'])continue;const _0x555e61=_0x107ad9['createRange'](_0x3073cf['position'],_0x3073cf['position']['getShiftedBy'](0x1));if(!_0x49e718['find'](({data:_0x44ef24})=>_0x44ef24['newRange']['isEqual'](_0x555e61))){for(const {name:_0x31d690,data:_0x1bb115}of _0x49e718)if(_0x555e61['containsRange'](_0x1bb115['newRange'])){_0x107ad9['updateMarker'](_0x31d690,{'range':_0x555e61}),_0xd15d58=!0x0;break;}}}return _0xd15d58;}),_0x11676e['model']['document']['registerPostFixer'](_0x2e48e3=>{let _0x5cbce9=!0x1;const _0x7c23f5=_0x11676e['plugins']['get']('Users')['me'],_0x32ac6a=_0x4e8fc0['getSuggestions']()['filter'](_0x3ab53b=>_0x3ab53b['isInContent']&&_0x3ab53b['author']==_0x7c23f5),_0x17ddc9=new Set(),_0x2ac4cd=new Set();for(const _0x2f80a0 of _0x32ac6a)if('tablePaste'==_0x2f80a0['subType'])for(const _0x476434 of _0x2f80a0['getMarkers']()){const _0x23c2c9=_0x476434['getRange']()['getContainedElement']();if(_0x23c2c9){if(_0x23c2c9['is']('element','tableCellSuggestion')&&Pe(_0x23c2c9)){_0x2f80a0['removeMarker'](_0x476434['name']),_0x17ddc9['add'](_0x23c2c9),_0x5cbce9=!0x0;const _0x454563=_0x23c2c9['nextSibling'],_0x4c2141=_0x23c2c9['previousSibling'],_0x46d9ce=_0x454563&&_0x454563['is']('element','tableCellSuggestion'),_0x143e51=_0x4c2141&&_0x4c2141['is']('element','tableCellSuggestion');_0x46d9ce&&!_0x17ddc9['has'](_0x454563)&&_0x2ac4cd['add'](_0x454563),_0x143e51&&!_0x17ddc9['has'](_0x4c2141)&&_0x2ac4cd['add'](_0x4c2141);}else _0x23c2c9['is']('element','paragraph')&&_0x23c2c9['isEmpty']&&(_0x2f80a0['removeMarker'](_0x476434['name']),_0x5cbce9=!0x0);}}else{if('tablePasteCell'==_0x2f80a0['subType']){if(!_0x2f80a0['attributes']||!_0x2f80a0['attributes']['tablePasteChainId'])continue;const _0xe81ee5=_0x2f80a0['attributes']['markerAttributes'];if(_0xe81ee5&&Object['keys'](_0xe81ee5)['length'])continue;const _0x1cc20d=_0x2f80a0['attributes']['tablePasteChainId'];let _0x5ca3c4=!0x0,_0x4bb6b0=!0x0;for(const _0x3e659e of _0x32ac6a)if(_0x3e659e['subType']&&_0x3e659e['subType']['startsWith']('tablePaste')){if(!_0x3e659e['attributes']['tablePasteChainId']){_0x4bb6b0=!0x1;break;}if(_0x3e659e['id']!=_0x2f80a0['id']&&_0x3e659e['attributes']['tablePasteChainId']==_0x1cc20d){_0x5ca3c4=!0x1;break;}}_0x4bb6b0&&_0x5ca3c4&&(_0x2f80a0['removeMarkers'](),_0x5cbce9=!0x0);}}for(const _0x3acd70 of _0x17ddc9)_0x2e48e3['remove'](_0x3acd70);for(const _0x75695c of _0x2ac4cd)_0x2e48e3['unwrap'](_0x75695c);return _0x5cbce9;}),_0x11676e['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x55a6ea,_0x5de53b)=>_0x467373(_0x55a6ea),'converterPriority':'high'}),_0x11676e['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x35ac41,_0x1411d3)=>_0x1411d3['options']['showSuggestionHighlights']?_0x467373(_0x35ac41,!0x1):null,'converterPriority':'high'});const _0x1b3be2=_0x11676e['editing']['view'];this['listenTo'](_0x1b3be2['document'],'clipboardOutput',(_0x15cc16,_0x38fa57)=>{const _0x421757=[];for(const _0x39a1c3 of _0x1b3be2['createRangeIn'](_0x38fa57['content'])['getItems']())_0x39a1c3['is']('element','suggestion-td')&&_0x421757['push'](_0x39a1c3);_0x1b3be2['change'](_0x61c72c=>{for(const _0x4bbaa6 of _0x421757)_0x61c72c['move'](_0x61c72c['createRangeIn'](_0x4bbaa6),_0x61c72c['createPositionBefore'](_0x4bbaa6)),_0x61c72c['remove'](_0x4bbaa6);});});}}function Pe(_0x3cae71){if(_0x3cae71['isEmpty'])return!0x0;const _0x18c6c1=_0x3cae71['getChild'](0x0);return _0x18c6c1['is']('element','paragraph')&&_0x18c6c1['isEmpty'];}function he(_0x3f6e01,_0x38fd7f={},_0x8e6da1){for(const {isAnchor:_0x450d50,cellHeight:_0x34cfbe,cellWidth:_0x157afe}of _0x8e6da1['createTableWalker'](_0x3f6e01,{'includeAllSlots':!0x0,..._0x38fd7f}))if(!_0x450d50||0x1!=_0x34cfbe||0x1!=_0x157afe)return!0x1;return!0x0;}class vt extends _0x1c9f3d{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x10d10b=this['editor']['plugins']['get']('TrackChangesEditing');_0x10d10b['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x10d10b['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x10d10b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x10d10b['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7dbe58,_0x3b4aed){const _0x5cea50=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11952b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x5927ad=_0x3b4aed['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x3d9299=_0x11952b['getColumnGroupElement'](_0x5927ad);let _0x42836b=_0x3d9299?_0x11952b['getTableColumnsWidths'](_0x3d9299):null,_0x2a9637=_0x5927ad['getAttribute']('tableWidth')||null;const _0x556bb0=_0x3b4aed['tableWidth']||_0x2a9637,_0x2c723d=_0x3b4aed['columnWidths']||_0x42836b,_0x41dd2d=this['editor']['plugins']['get']('Users')['me'];for(const _0x35b52f of _0x5cea50['getSuggestions']()){const _0x57c7f4=_0x35b52f['getContainedElement']();if('resizeTable'===_0x35b52f['subType']&&_0x57c7f4===_0x5927ad){_0x35b52f['author']!==_0x41dd2d&&_0x35b52f['discard']();const _0x138056=_0x35b52f['data']['commandParams'];_0x2a9637=_0x138056[0x0]['tableWidth'],_0x42836b=_0x138056[0x0]['columnWidths'];break;}}_0x7dbe58({'table':_0x5927ad,'tableWidth':_0x556bb0,'columnWidths':_0x2c723d}),_0x5cea50['markBlockFormat'](_0x5927ad,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x2a9637,'columnWidths':_0x42836b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0xa98a0d){if('formatBlock'!=_0xa98a0d['type']&&'formatInline'!=_0xa98a0d['type'])return;const {data:_0xa6b1f9}=_0xa98a0d;if(_0xa6b1f9&&'resizeTable'===_0xa6b1f9['formatGroupId']){const _0x1b2012='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x1b2012)};}}}class Ct extends _0x1c9f3d{['afterInit'](){const _0x489bee=this['editor'];_0x489bee['plugins']['has']('Template')&&_0x489bee['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x1c9f3d{['afterInit'](){const _0x3a019e=this['editor'];if(!_0x3a019e['commands']['get']('insertTableOfContents'))return;_0x3a019e['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x23e247=_0x3a019e['plugins']['get']('TrackChangesEditing'),_0x32c9b7=_0x3a019e['locale'];_0x23e247['descriptionFactory']['registerElementLabel']('tableOfContents',_0x23488a=>o(_0x32c9b7,'ELEMENT_TABLE_OF_CONTENTS',_0x23488a));}}class Dt extends _0x1c9f3d{['afterInit'](){const _0x4cd553=this['editor'];if(!_0x4cd553['plugins']['has']('Title'))return;const _0x3d7e8e=_0x4cd553['plugins']['get']('TrackChangesEditing');_0x3d7e8e['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4cd553['locale'],'ELEMENT_TITLE')),_0x4cd553['model']['document']['registerPostFixer'](_0x3be372=>{let _0x3cadba=!0x1;const _0x4a8535=Array['from'](_0x4cd553['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xeb45b0,data:_0x13799b}of _0x4a8535){const {group:_0x56eeba}=_0x3d7e8e['_splitMarkerName'](_0xeb45b0);if('suggestion'!==_0x56eeba||!_0x13799b['newRange'])continue;const _0x4e8f90=_0x13799b['newRange'],_0x508dcd=_0x4e8f90['end']['nodeBefore'];if(!_0x508dcd||!_0x508dcd['is']('element','title-content'))continue;if(!_0x4e8f90['start']['isTouching'](_0x4e8f90['end']))continue;const _0x49b03a=_0x4cd553['model']['schema']['getNearestSelectionRange'](_0x4e8f90['end'],'forward');if(_0x49b03a&&_0x49b03a['isCollapsed']){const _0x5c6c39=_0x3be372['createRange'](_0x4e8f90['start'],_0x49b03a['start']);_0x5c6c39['isEqual'](_0x4e8f90)||(_0x3be372['updateMarker'](_0xeb45b0,{'range':_0x5c6c39}),_0x3cadba=!0x0);}_0x3cadba||(_0x3be372['removeMarker'](_0xeb45b0),_0x3cadba=!0x0);}return _0x3cadba;});}}class Nt extends _0x1c9f3d{['afterInit'](){const _0x1d6099=this['editor'],_0x55c207=_0x1d6099['plugins']['get']('TrackChangesEditing');_0x1d6099['plugins']['has']('UndoEditing')&&(_0x55c207['enableCommand']('undo'),_0x55c207['enableCommand']('redo'));}}class Mt extends _0x1c9f3d{static get['requires'](){return[jt];}['afterInit'](){const _0x47f80a=this['editor'];if(!_0x47f80a['plugins']['has']('TableCaptionEditing'))return;_0x47f80a['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x1c9f3d{['tableProperties'];['tableCellProperties'];constructor(_0x3bf8db){super(_0x3bf8db),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 _0x152d27=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x4df879 of this['tableProperties'])_0x152d27['enableCommand'](_0x4df879,(_0x10446e,_0x4590a5)=>{const _0x3b932c=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x4df879,[_0x3b932c],this['tableProperties'],'tableProperties',_0x10446e,_0x4590a5);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x5dedff,_0x27de23)=>this['handleDiscardAction'](this['tableProperties'],_0x5dedff,_0x27de23)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x46af42 of this['tableCellProperties'])_0x152d27['enableCommand'](_0x46af42,(_0x3c98f4,_0x211606)=>{const _0x16e7f8=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x46af42,_0x16e7f8,this['tableCellProperties'],'tableCellProperties',_0x3c98f4,_0x211606);});_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x152d27['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x29b6c2,_0x22ba54)=>this['handleDiscardAction'](this['tableCellProperties'],_0x29b6c2,_0x22ba54)),_0x152d27['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x152d27['descriptionFactory']['registerDescriptionCallback'](_0x8d3045=>this['handleSuggestionDescription'](_0x8d3045));}['_handlePropertyChange'](_0x3c80d1,_0x24ddcd,_0x3b5a67,_0xb2eb1d,_0x40f409,_0x5b2ff7){const _0x28d2a5=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b2ff7['batch'],()=>{for(const _0x550f16 of _0x24ddcd){if(this['_getSuggestion'](_0x550f16,_0xb2eb1d))_0x40f409(_0x5b2ff7);else{const _0x41fd89={};for(const _0x49eae7 of _0x3b5a67){const _0xfe5fb9=_0x550f16['getAttribute'](_0x49eae7);void 0x0!==_0xfe5fb9&&(_0x41fd89[_0x49eae7]=_0xfe5fb9);}_0x40f409(_0x5b2ff7),_0x28d2a5['markBlockFormat'](_0x550f16,{'commandParams':[_0x41fd89]},[],_0xb2eb1d);}}});}['handleDiscardAction'](_0x4fc2e0,_0x4a6f44,_0x1f8b60){const _0x13cc21=_0x4a6f44[0x0]['start']['nodeAfter'],_0x318c6d=_0x1f8b60['commandParams'][0x0];this['editor']['model']['change'](_0x4224df=>{for(const _0x3f7692 of _0x4fc2e0)void 0x0!==_0x318c6d[_0x3f7692]?_0x4224df['setAttribute'](_0x3f7692,_0x318c6d[_0x3f7692],_0x13cc21):_0x4224df['removeAttribute'](_0x3f7692,_0x13cc21);});}['handleSuggestionDescription'](_0x8366ad){if(_0x8366ad['data'])switch(_0x8366ad['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'](_0x5bafd2,_0xe2ce33){const _0x590937=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x43a9e5 of _0x590937['getSuggestions']({'skipNotAttached':!0x0})){const _0x366ac0=_0x43a9e5['getContainedElement']();if(_0x43a9e5['subType']===_0xe2ce33&&_0x366ac0===_0x5bafd2)return _0x43a9e5;}return null;}}const m='$elementName';class p extends _0x1c9f3d{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x505203,_0x5194b1,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x335d2f){function _0x40c2f6(_0x3c196b){return _0x3c196b['map'](_0x513f8b=>String['fromCharCode'](_0x513f8b))['join']('');}super(_0x335d2f),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x3bb5e6,_0x47676c,_0x32406d,_0xc673d8)=>{this['_model']['change'](()=>{for(const _0xa4a9db of[..._0xc673d8,..._0x32406d])this['_model']['markers']['has'](_0xa4a9db)&&_0x335d2f['editing']['reconvertMarker'](_0xa4a9db);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x335d2f['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(),_0x335d2f['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x335d2f['config']['get']('trackChanges.trackFormatChanges'),_0x335d2f['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x335d2f['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x335d2f,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x40c2f6([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x40c2f6([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x30]);}['init'](){const _0xdb6fd9=this['editor'],_0x3c83b5=(_0x3a6450,_0x301c0b)=>{if('attribute'!=_0x3a6450)return'ck-suggestion-marker-'+_0x3a6450;const _0x3b05fb=_0x301c0b['split']('|')[0x0];return this['_isBlockAttribute'](_0x3b05fb)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0xdb6fd9['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xe94063=>{const {id:_0x339d26,type:_0x540fe9,subType:_0x1e3d78}=this['_splitMarkerName'](_0xe94063['markerName']),_0x4a2549=['ck-suggestion-marker',_0x3c83b5(_0x540fe9,_0x1e3d78)];let _0x5364b3=0xbb8;return this['activeMarkers']['includes'](_0xe94063['markerName'])&&(_0x4a2549['push']('ck-suggestion-marker--active'),_0x5364b3=0xbc2),'deletion'==_0x540fe9&&(_0x5364b3+=0x5),{'classes':_0x4a2549,'attributes':{'data-suggestion':_0x339d26},'priority':_0x5364b3};}}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x5e41fd=>{_0x5e41fd['on']('addMarker:suggestion',(_0x30010f,_0x448063,_0x52ab31)=>{if(!_0x52ab31['options']['showSuggestionHighlights'])return;const _0x3337b8=_0x448063['item'];if(!_0x3337b8)return;const _0x1c3b75=_0x52ab31['mapper']['toViewElement'](_0x3337b8);_0xdb6fd9['model']['schema']['isObject'](_0x3337b8)&&_0x1c3b75&&!_0x1c3b75['getCustomProperty']('widget')&&_0x1c3b75['is']('containerElement')&&_0x13eccc(_0x1c3b75,_0x52ab31['writer']);},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x3117f2,_0x27846e)=>{if(!_0x27846e['options']['showSuggestionHighlights'])return null;const {type:_0x526cff,subType:_0xbab6f5}=this['_splitMarkerName'](_0x3117f2['markerName']);return{'classes':['ck-suggestion-marker',_0x3c83b5(_0x526cff,_0xbab6f5)],'priority':0xbb8};}});const _0x410ed6=({showActiveMarkers:_0x51a354=!0x0,isAttributeSuggestion:_0x397aad=!0x1}={})=>(_0xaae091,_0x24033c,_0x3e20d1)=>{if(!_0x24033c['item'])return;const {id:_0x2fbf6f}=this['_splitMarkerName'](_0x24033c['markerName']);if(_0x397aad){const _0x1eb3b4=this['_suggestions']['get'](_0x2fbf6f),_0x31ea54=this['_getAttributeKey'](_0x1eb3b4);if(!this['_isBlockAttribute'](_0x31ea54))return;}if(_0x24033c['item']['is']('selection'))return void _0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);const _0x1340eb=_0x3e20d1['mapper']['toViewElement'](_0x24033c['item']);if(_0x24033c['item']['is']('element')&&_0xdb6fd9['model']['schema']['isBlock'](_0x24033c['item'])&&!_0x1340eb['getCustomProperty']('addHighlight')){_0x3e20d1['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1340eb),_0x3e20d1['writer']['setAttribute']('data-suggestion',_0x2fbf6f,_0x1340eb),_0x3e20d1['mapper']['bindElementToMarker'](_0x1340eb,_0x24033c['markerName']),_0x51a354&&(this['activeMarkers']['includes'](_0x24033c['markerName'])?_0x3e20d1['writer']['addClass']('ck-suggestion-marker--active',_0x1340eb):_0x3e20d1['writer']['removeClass']('ck-suggestion-marker--active',_0x1340eb));for(const _0x7bea93 of _0xdb6fd9['model']['createRangeIn'](_0x24033c['item'])['getItems']())_0x3e20d1['consumable']['consume'](_0x7bea93,_0xaae091['name']);_0x3e20d1['consumable']['consume'](_0x24033c['item'],_0xaae091['name']);}};_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x56f2e3=>{_0x56f2e3['on']('addMarker:suggestion:formatBlock',(_0x2c32dd,_0x2dd864,_0x1dce63)=>{_0x1dce63['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1})(_0x2c32dd,_0x2dd864,_0x1dce63);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['add'](_0x33ac4a=>{_0x33ac4a['on']('addMarker:suggestion:attribute',(_0x395b86,_0x4af27c,_0x8ac765)=>{_0x8ac765['options']['showSuggestionHighlights']&&_0x410ed6({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x395b86,_0x4af27c,_0x8ac765);},{'priority':'highest'});}),_0xdb6fd9['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xe90438,_0x9c80e9)=>_0x9c80e9['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xe90438['substr'](0xb)}}),_0xdb6fd9['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2add16,{writer:_0x9615dc})=>{let _0x3ce07d='suggestion:'+_0x2add16['getAttribute']('suggestion-type')+':'+_0x2add16['getAttribute']('id');return _0x2add16['getAttribute']('marker-count')&&(_0x3ce07d+=':'+_0x2add16['getAttribute']('marker-count')),_0x9615dc['createElement']('$marker',{'data-name':_0x3ce07d});}}),_0xdb6fd9['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x4104ad=>{_0x4104ad['on']('addMarker:suggestion:formatBlock',_0x410ed6(),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x555133=>{_0x555133['on']('addMarker:suggestion:attribute',_0x410ed6({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x414779=>{_0x414779['on']('removeMarker:suggestion:formatBlock',(_0x3e6d61,_0x40d426,_0x5a0c55)=>{const _0x559d98=_0x5a0c55['mapper']['markerNameToElements'](_0x40d426['markerName']);if(_0x559d98){for(const _0x5d0f63 of _0x559d98)_0x5d0f63['getCustomProperty']('addHighlight')||(_0x5a0c55['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5d0f63),_0x5a0c55['writer']['removeAttribute']('data-suggestion',_0x5d0f63),_0x5a0c55['mapper']['unbindElementFromMarkerName'](_0x5d0f63,_0x40d426['markerName']));}},{'priority':'high'});}),_0xdb6fd9['conversion']['for']('editingDowncast')['add'](_0x528a71=>{_0x528a71['on']('removeMarker:suggestion:attribute',(_0x192adb,_0x2e9e3d,_0x54f81d)=>{const _0x168b31=_0x54f81d['mapper']['markerNameToElements'](_0x2e9e3d['markerName']);if(!_0x168b31)return;const {id:_0x2bd88b}=this['_splitMarkerName'](_0x2e9e3d['markerName']),_0x5855cc=this['_suggestions']['get'](_0x2bd88b),_0x354049=this['_getAttributeKey'](_0x5855cc);if(this['_isBlockAttribute'](_0x354049)){for(const _0x35b6c5 of _0x168b31)_0x35b6c5['getCustomProperty']('addHighlight')||(_0x54f81d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x35b6c5),_0x54f81d['writer']['removeAttribute']('data-suggestion',_0x35b6c5),_0x54f81d['mapper']['unbindElementFromMarkerName'](_0x35b6c5,_0x2e9e3d['markerName']));}},{'priority':'high'});}),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd9f5de=>{let _0x476b3d=!0x1;const _0x4ea963=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']()),_0x3ac348=new Set();for(const {name:_0x5f5bdf,data:_0xe40085}of _0x4ea963){const {group:_0x5147ea,type:_0x57573c,subType:_0x49d04f,id:_0x5349ec}=this['_splitMarkerName'](_0x5f5bdf);if('suggestion'!==_0x5147ea)continue;const _0xd17830=this['_suggestions']['get'](_0x5349ec);if(null!=_0xe40085['newRange']){'formatInline'==_0x57573c&&(_0x476b3d=_0x476b3d||Et(_0xe40085['newRange'],_0x5f5bdf,_0xd9f5de,_0xdb6fd9['model']['schema']));const _0x25e13c='attribute'==_0x57573c&&this['_isBlockAttribute'](_0x49d04f['split']('|')[0x0]);if(_0xe40085['newRange']['isCollapsed']||'$graveyard'==_0xe40085['newRange']['root']['rootName']||'formatBlock'==_0x57573c&&!Ut(_0xe40085['newRange'])||_0x25e13c&&!Ut(_0xe40085['newRange'])||'deletion'==_0x57573c&&!(!Tt(_0x1e7a27=_0xe40085['newRange'])&&!function(_0x25bda8){return _0x25bda8['start']['parent']==_0x25bda8['end']['nodeBefore']&&_0x25bda8['start']['isAtEnd'];}(_0x1e7a27)))_0xd9f5de['removeMarker'](_0x5f5bdf),_0x476b3d=!0x0;else{if(!_0xd17830||!_0xd17830['isInContent'])continue;_0x3ac348['add'](_0xd17830);}}}var _0x1e7a27;return _0x3ac348['size']>0x0&&(_0x476b3d=!!this['_joinWithAdjacentSuggestions'](_0x3ac348)||_0x476b3d),_0x476b3d;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x573328=>{let _0x3ba207=!0x1;for(const _0x32e75f of _0xdb6fd9['model']['document']['differ']['getChanges']())if('insert'==_0x32e75f['type'])for(const _0x19071a of this['_suggestions']['values']()){if(_0x19071a['isMultiRange']||!_0x19071a['isInContent'])continue;const _0x9ece0a='formatBlock'==_0x19071a['type'],_0x209118=this['_getAttributeKey'](_0x19071a),_0x29e6a8=_0x209118&&this['_isBlockAttribute'](_0x209118);if(!_0x9ece0a&&!_0x29e6a8)continue;const _0x1aa758=_0x19071a['getFirstRange']();if(_0x1aa758['start']['parent']!=_0x1aa758['end']['parent']&&!_0x1aa758['end']['isAtEnd']){const _0x142d45=_0xdb6fd9['model']['createPositionAt'](_0x1aa758['start']['nodeAfter'],'end'),_0x3dd385=_0xdb6fd9['model']['createRange'](_0x1aa758['start'],_0x142d45);_0x573328['updateMarker'](_0x19071a['getFirstMarker'](),{'range':_0x3dd385}),_0x3ba207=!0x0;}}return _0x3ba207;}),_0xdb6fd9['model']['document']['registerPostFixer'](_0x2bc24f=>this['_processAttributeChanges'](_0x2bc24f)),_0xdb6fd9['model']['document']['registerPostFixer'](_0xd80696=>!_0xd80696['batch']['isLocal']&&this['_processAttributeSuggestions'](_0xd80696)),_0xdb6fd9['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0xdb6fd9['model']['document']['on']('change:data',(_0x3497c0,_0xa18e8c)=>{if(!_0xa18e8c['isLocal']||_0xa18e8c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x543d27=_0xdb6fd9['model']['document']['differ']['getChanges']();if(0x0==_0x543d27['length'])return;const _0x4415bc=[],_0x1edd39=_0x543d27['filter'](_0x34f93e=>'attribute'==_0x34f93e['type']),_0x44c15b=_0x543d27['filter'](_0x1f35fa=>'insert'==_0x1f35fa['type']&&'$text'!=_0x1f35fa['name']);for(const _0x354503 of _0x1edd39)this['_isRegisteredAttribute'](_0x354503['attributeKey'])&&_0x4415bc['push']({'key':_0x354503['attributeKey'],'newValue':_0x354503['attributeNewValue'],'oldValue':_0x354503['attributeOldValue'],'range':Ot(_0x354503['range'],_0xdb6fd9['model'])});for(const _0x1334ea of _0x44c15b){if('rename'!=_0x1334ea['action']&&'refresh'!=_0x1334ea['action'])continue;const _0x5333cb=Gt(_0x1334ea['position']['nodeAfter'],_0xdb6fd9['model']),_0x1de215=_0x1334ea['before'];'rename'==_0x1334ea['action']&&_0x4415bc['push']({'key':m,'newValue':_0x1334ea['name'],'oldValue':_0x1de215['name'],'range':_0x5333cb});for(const [_0x54a0b2,_0x3cd31d]of _0x1de215['attributes']){if(!this['_isRegisteredAttribute'](_0x54a0b2))continue;const _0x1f9779=_0x1334ea['attributes']['get'](_0x54a0b2);_0x3cd31d!==_0x1f9779&&_0x4415bc['push']({'key':_0x54a0b2,'newValue':_0x1f9779,'oldValue':_0x3cd31d,'range':_0x5333cb});}for(const [_0x51266f,_0x361d82]of _0x1334ea['attributes'])this['_isRegisteredAttribute'](_0x51266f)&&(_0x1de215['attributes']['has'](_0x51266f)||_0x4415bc['push']({'key':_0x51266f,'newValue':_0x361d82,'oldValue':null,'range':_0x5333cb}));}0x0!=_0x4415bc['length']&&_0xdb6fd9['model']['enqueueChange'](_0xa18e8c,_0x3fbee6=>{const _0x4e8906=_0x7b6b31();for(const {range:_0xc73a27,key:_0x3a1639,oldValue:_0x446873,newValue:_0x303450}of _0x4415bc)this['markAttributeChange'](_0xc73a27,_0x3a1639,_0x446873,_0x303450,{'groupId':_0x4e8906});this['_reduceExistingSuggestions'](_0x3fbee6,_0x4415bc);});},{'priority':'lowest'}),_0xdb6fd9['model']['markers']['on']('update:suggestion',(_0x2b53b1,_0x131297,_0x2ab77a)=>{if(null==_0x2ab77a){const {id:_0x44f76b}=this['_splitMarkerName'](_0x131297['name']),_0x49afcd=this['_suggestions']['get'](_0x44f76b);_0x49afcd&&_0x49afcd['addMarkerName'](_0x131297['name']);}}),_0xdb6fd9['model']['document']['on']('change:data',()=>{const _0x53ccc2=Array['from'](_0xdb6fd9['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2600ca=>'suggestion'===this['_splitMarkerName'](_0x2600ca['name'])['group']);if(0x0===_0x53ccc2['length'])return;_0x53ccc2['sort']((_0x52066f,_0x391254)=>{const _0x180e75=_0x52066f['data']['oldRange'],_0x5c01f8=_0x391254['data']['oldRange'];return null===_0x180e75&&null===_0x5c01f8?0x0:null===_0x180e75&&null!==_0x5c01f8?-0x1:null!==_0x180e75&&null===_0x5c01f8?0x1:_0x180e75['start']['isBefore'](_0x5c01f8['start'])?-0x1:0x1;});const _0x28e867=new Set(),_0x17146c=new Set();for(const {name:_0x5b5329,data:_0x3f3596}of _0x53ccc2){const {id:_0x389d64}=this['_splitMarkerName'](_0x5b5329);if(null===_0x3f3596['oldRange']){const _0xc30002=this['_handleNewSuggestionMarker'](_0x5b5329);_0x17146c['add'](_0xc30002);}else{const _0x169707=this['_suggestions']['get'](_0x389d64);null!==_0x3f3596['newRange']||_0x169707['isInContent']?(_0x28e867['add'](_0x169707['head']),_0x17146c['add'](_0x169707)):this['_removeSuggestion'](_0x169707);}}_0x17146c['size']>0x0&&this['_refreshSuggestionsChain'](_0x17146c);for(const _0xa36208 of _0x28e867)this['fire']('suggestionChanged',_0xa36208);}),_0xdb6fd9['model']['on']('applyOperation',(_0x346ef5,_0x5a3451)=>{const _0x34666f=_0x5a3451[0x0];if(!this['_suggestions']['size'])return;if(!_0x34666f['isDocumentOperation'])return;if(_0x34666f['batch']['isUndo']||!_0x34666f['batch']['isLocal'])return;let _0xf8592d,_0x26ab69;switch(_0x34666f['type']){case'insert':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['position']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;case'split':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['splitPosition']),_0x26ab69=_0xdb6fd9['model']['createPositionAt'](_0x34666f['moveTargetPosition']);break;case'move':_0xf8592d=_0xdb6fd9['model']['createPositionAt'](_0x34666f['targetPosition']),_0x26ab69=_0xf8592d['getShiftedBy'](_0x34666f['howMany']);break;default:return;}const _0x47551b=_0xdb6fd9['model']['createRange'](_0xf8592d,_0x26ab69);_0xdb6fd9['model']['change'](()=>{for(const {suggestion:_0x4301f2,meta:_0x34c26d}of this['_findSuggestions'](_0x47551b)){if(_0x4301f2['isMultiRange'])continue;if('formatInline'==_0x4301f2['type'])continue;const _0x243878=this['_getAttributeKey'](_0x4301f2);if(_0x243878&&this['_isBlockAttribute'](_0x243878)&&'split'!=_0x34666f['type'])continue;const _0x12caf6=_0x4301f2['data']&&_0x4301f2['data']['multipleBlocks'];('formatBlock'!=_0x4301f2['type']||'split'==_0x34666f['type']&&!_0x12caf6)&&(_0x34c26d['containsRangeInObject']||'insertion'==_0x4301f2['type']&&_0x34c26d['isOwn']||_0x4301f2['getFirstRange']()['containsRange'](_0x47551b)&&this['_breakSuggestionMarker'](_0x4301f2,_0xf8592d,_0x26ab69));}});},{'priority':'lowest'}),_0xdb6fd9['model']['on']('deleteContent',(_0x1bc072,_0x23013d)=>{const _0x2968d6=_0x23013d[0x0],_0x75be87=_0x23013d[0x1];if(_0x75be87&&_0x75be87['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x2968d6['isCollapsed'])return;const _0x562e3d=_0xdb6fd9['model']['schema'],{start:_0x4736b9,end:_0x2b1919}=_0x2968d6['getFirstRange'](),_0x24f5c1=_0x4736b9['nodeAfter']&&_0x562e3d['isLimit'](_0x4736b9['nodeAfter'])?null:_0x562e3d['getNearestSelectionRange'](_0x4736b9,'forward'),_0x10cda9=_0x2b1919['nodeBefore']&&_0x562e3d['isLimit'](_0x2b1919['nodeBefore'])?null:_0x562e3d['getNearestSelectionRange'](_0x2b1919,'backward'),_0x28d8e2=_0xdb6fd9['model']['createRange'](_0x24f5c1?_0x24f5c1['start']:_0x4736b9,_0x10cda9?_0x10cda9['end']:_0x2b1919);_0xdb6fd9['model']['change'](_0x577c66=>{this['markDeletion'](_0x28d8e2);const _0x361e69=_0xdb6fd9['model']['schema']['getNearestSelectionRange'](_0x28d8e2['start']);_0x2968d6['is']('documentSelection')?_0x577c66['setSelection'](_0x361e69):_0x2968d6['setTo'](_0x361e69);}),_0x1bc072['stop']();},{'priority':_0x2c04bb['normal']+0xa}),_0xdb6fd9['model']['on']('insertContent',(_0x53ff60,_0x114c10)=>{const _0x39b1b=_0x114c10[_0x114c10['length']-0x1];_0x39b1b&&_0x39b1b['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0xdb6fd9['model']['change'](()=>{let _0x12c384=_0xdb6fd9['model']['insertContent'](_0x114c10[0x0],_0x114c10[0x1],_0x114c10[0x2],{'forceDefaultExecution':!0x0});if(!_0x12c384)return;_0x53ff60['return']=_0x12c384['clone']();const _0x4d9565=_0x12c384['end']['nodeBefore'],_0x4df755=_0xdb6fd9['model']['schema'];_0x4d9565&&_0x4df755['isBlock'](_0x4d9565)&&!_0x4df755['isObject'](_0x4d9565)&&(_0x12c384=_0xdb6fd9['model']['createRange'](_0x12c384['start'],_0xdb6fd9['model']['createPositionAt'](_0x4d9565,'end'))),this['markInsertion'](_0x12c384);}),_0x53ff60['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x11d8e9=new $(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('acceptSuggestion',_0x11d8e9),this['enableCommand']('acceptSuggestion');const _0x416615=new B(_0xdb6fd9,this['_suggestions']);_0xdb6fd9['commands']['add']('discardSuggestion',_0x416615),this['enableCommand']('discardSuggestion'),_0xdb6fd9['commands']['add']('acceptAllSuggestions',new x(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0xdb6fd9['commands']['add']('discardAllSuggestions',new x(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0xdb6fd9['commands']['add']('acceptSelectedSuggestions',new R(_0xdb6fd9,_0x11d8e9,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0xdb6fd9['commands']['add']('discardSelectedSuggestions',new R(_0xdb6fd9,_0x416615,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0xfbb4b6=_0xdb6fd9['plugins']['get']('CommentsRepository');this['listenTo'](_0xfbb4b6,'addComment',(_0x59ff2f,{threadId:_0x100639})=>{const _0x3a743c=this['_suggestions']['get'](_0x100639);_0x3a743c&&_0x3a743c['commentThread']&&0x1===_0x3a743c['commentThread']['length']&&this['_updateSuggestionData'](_0x100639,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0xfbb4b6,'removeComment',(_0x148cba,{threadId:_0x38c0bd})=>{const _0x163265=this['_suggestions']['get'](_0x38c0bd);_0x163265&&_0x163265['commentThread']&&!_0x163265['commentThread']['length']&&this['_updateSuggestionData'](_0x38c0bd,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x184730){if(this['_adapter'])throw new _0x109ba3('track-changes-adapter-already-set',this);this['_adapter']=_0x184730;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x3f292d=!0x1,toJSON:_0x19ba00=!0x1}={}){const _0xb32565=[];for(const _0x3edb3d of this['_suggestions']['values']())_0x3f292d&&!_0x3edb3d['isInContent']||_0xb32565['push'](_0x3edb3d);return _0x19ba00?_0xb32565['map'](_0x285599=>_0x285599['toJSON']()):_0xb32565;}['getSuggestion'](_0x5eeafa){const _0x48fa69=this['_suggestions']['get'](_0x5eeafa);if(!_0x48fa69)throw new _0x109ba3('track-changes-suggestion-not-found',this);return _0x48fa69;}['hasSuggestion'](_0xa447a1){return this['_suggestions']['has'](_0xa447a1);}['addSuggestionData'](_0x5de009){const {authorId:_0x3cebba,id:_0x2f2ff2,attributes:_0x2efccf}=_0x5de009,[_0x3b4224,_0x1db248]=_0x5de009['type']['split'](':'),_0x33a8e2=this['_suggestions']['get'](_0x2f2ff2)||this['_createSuggestion'](_0x3b4224,_0x1db248,_0x2f2ff2,_0x3cebba,_0x2efccf);if(this['_addThreadToSuggestion'](_0x33a8e2),this['_checkSuggestionCorrectness'](_0x33a8e2,_0x3b4224,_0x1db248||null,_0x3cebba),_0x33a8e2['createdAt']=_0x5de009['createdAt'],_0x33a8e2['_isDataLoaded']=!0x0,_0x2efccf&&_0x2efccf['@external']){const _0xe36777=_0x2efccf['@external'],_0x24fdb4=this['_getExternalAuthor'](_0xe36777['authorName']);_0x33a8e2['authoredAt']=_0xe36777['createdAt'],_0x33a8e2['author']=_0x24fdb4,_0x33a8e2['isExternal']=!0x0;}else _0x33a8e2['authoredAt']=_0x5de009['createdAt'];switch(_0x5de009['data']&&(_0x33a8e2['data']=_0x5de009['data']),_0x5de009['attributes']&&(_0x33a8e2['attributes']=_0x5de009['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x33a8e2['_saved']=!0x0),this['_suggestionState']['get'](_0x33a8e2)){case'notReady':this['_suggestionState']['set'](_0x33a8e2,'dataReady');break;case'markerReady':_0x33a8e2['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x33a8e2])),this['_refreshSuggestionsChain'](new Set([_0x33a8e2])),this['_suggestionState']['set'](_0x33a8e2,'ready'),this['fire']('suggestionLoaded',_0x33a8e2)):this['_suggestionState']['set'](_0x33a8e2,'removed');}return _0x33a8e2;}['acceptSuggestion'](_0x45d2e0){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x54c9fa of _0x45d2e0['getAllAdjacentSuggestions']())_0x54c9fa['accept']();});});}['discardSuggestion'](_0xaf2555){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3d1f20 of _0xaf2555['getAllAdjacentSuggestions']())_0x3d1f20['discard']();});});}['enableCommand'](_0x3dde4e,_0x10e7d2){const _0x17c91c=this['editor']['commands']['get'](_0x3dde4e);if(!_0x17c91c)throw new _0x109ba3('track-changes-command-not-found',this,{'commandName':_0x3dde4e});if(this['_enabledCommands']['has'](_0x17c91c))throw new _0x109ba3('track-changes-enable-command-twice',this,{'commandName':_0x3dde4e});this['_enabledCommands']['add'](_0x17c91c),_0x10e7d2&&_0x17c91c['on']('execute',(_0x485acb,_0x3baceb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3baceb['length']>0x0&&_0x3baceb[_0x3baceb['length']-0x1]&&_0x3baceb[_0x3baceb['length']-0x1]['forceDefaultExecution']?_0x3baceb['pop']():(_0x485acb['return']=_0x10e7d2((..._0x480da2)=>_0x17c91c['execute'](..._0x480da2,{'forceDefaultExecution':!0x0}),..._0x3baceb),_0x485acb['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x8c1c25){let _0x4d609a,_0x37eb87;const _0x2f5be1=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4d609a=_0x8c1c25();}catch(_0x16418e){_0x37eb87=_0x16418e;}return _0x2f5be1||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x37eb87&&_0x109ba3['rethrowUnexpectedError'](_0x37eb87,this),_0x4d609a;}['markInsertion'](_0x56907e,_0x1eb000=null,_0x2e8e7d={}){if(_0x56907e['isCollapsed'])return null;const _0x181776=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x481d26,meta:_0x580924}of this['_findSuggestions'](_0x56907e,'insertion'))if(_0x580924['isOwn']){if(!_0x580924['isNextTo']){if(_0x580924['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x481d26,_0x2e8e7d))continue;return _0x481d26;}if(Lt(_0x481d26,_0x2e8e7d))return _0x481d26;this['_breakSuggestionMarker'](_0x481d26,_0x56907e['start'],_0x56907e['end']);break;}if(_0x1eb000==_0x481d26['subType']&&Lt(_0x481d26,_0x2e8e7d)){const _0x4835e3=_0x481d26['getFirstRange']();return _0x4835e3['start']['isEqual'](_0x56907e['end'])?this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x56907e['start'],_0x4835e3['end'])):this['_setSuggestionRange'](_0x481d26,this['_model']['createRange'](_0x4835e3['start'],_0x56907e['end'])),_0x481d26;}}const _0x11c629=_0x7b6b31(),_0x526a34=_0x181776['id'],_0x49e2e9=_0x1eb000?'insertion:'+_0x1eb000:'insertion',_0xdd8a9f=this['_setSuggestionData']({'id':_0x11c629,'type':_0x49e2e9,'createdAt':new Date(),'authorId':_0x526a34,'attributes':_0x2e8e7d});return this['_addSuggestionMarker'](_0x49e2e9,_0x11c629,_0x526a34,_0x56907e),_0xdd8a9f;}['markMultiRangeInsertion'](_0x491ed8,_0x2dfadb='multi',_0x24f0de={}){const _0xe819a=this['editor']['plugins']['get']('Users')['me'],_0x4d3786=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2dfadb,'join');for(const _0x2369f4 of this['getSuggestions']())if(_0x2369f4['author']['id']==_0xe819a['id']&&'insertion'==_0x2369f4['type']&&_0x2369f4['subType']==_0x2dfadb&&Lt(_0x2369f4,_0x24f0de)&&(_0x4d3786(_0x2369f4['getRanges'](),_0x491ed8)||_0x4d3786(_0x491ed8,_0x2369f4['getRanges']()))){for(const _0x2b7f59 of _0x491ed8)_0x2369f4['addRange'](_0x2b7f59);return _0x2369f4;}for(const {suggestion:_0x4ab558,meta:_0x1164a3}of this['_findSuggestions'](_0x491ed8,'insertion')){if(!_0x1164a3['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x1164a3['containsRangeInObject'])continue;if(!Lt(_0x4ab558,_0x24f0de))continue;let _0x3d46b7=!0x0;for(const _0x391908 of _0x4ab558['getRanges']())for(const _0x111108 of _0x491ed8)if(!_0x391908['containsRange'](_0x111108)){_0x3d46b7=!0x1;break;}if(_0x3d46b7)return _0x4ab558;}const _0x4654ba=_0x7b6b31(),_0x31fecf=_0xe819a['id'],_0x423be4='insertion:'+_0x2dfadb,_0x539948=this['_setSuggestionData']({'id':_0x4654ba,'type':_0x423be4,'createdAt':new Date(),'authorId':_0x31fecf,'attributes':_0x24f0de});for(const _0x1cb24d of _0x491ed8)this['_addSuggestionMarker'](_0x423be4,_0x4654ba,_0x31fecf,_0x1cb24d,u['getMultiRangeId']());return _0x539948;}['markInlineFormat'](_0x443ff4,_0x4a8152,_0x4b182a=null,_0x3e3dec={}){if(_0x4b182a=_0x4b182a||Vt(_0x4a8152),_0x443ff4['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x2a7736=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');return this['forceDefaultExecution'](()=>_0x2a7736([_0x443ff4],_0x4a8152,_0x3e3dec)),null;}const _0x5ee8fb=this['editor']['plugins']['get']('Users')['me'],_0x1850a8=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x58633a,meta:_0x5c3074}of this['_findSuggestions'](_0x443ff4,'insertion'))_0x5c3074['isOwn']&&!_0x5c3074['isInsideObject']&&_0x1850a8['push'](..._0x58633a['getRanges']());}const _0x425690=function(_0x1ada3c,_0x32316d){const _0x7cab51=[];for(const _0x39f8dd of _0x32316d){const _0x3d47ae=_0x1ada3c['getIntersection'](_0x39f8dd);_0x3d47ae&&_0x7cab51['push'](_0x3d47ae);}return _0x7cab51;}(_0x443ff4,_0x1850a8),_0x40f213=function(_0x4808c0,_0x1147f5){const _0xa69896=[_0x4808c0];for(const _0x4de841 of _0x1147f5){let _0x583574=0x0;for(;_0x583574<_0xa69896['length'];){const _0x2752d2=_0xa69896[_0x583574]['getDifference'](_0x4de841);_0xa69896['splice'](_0x583574,0x1,..._0x2752d2),_0x583574+=_0x2752d2['length'];}}return _0xa69896;}(_0x443ff4,_0x1850a8);_0x425690['length']&&this['_model']['change'](()=>{for(const _0x2fa5bd of _0x425690){const _0x4c00d6=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x4b182a,'accept');this['forceDefaultExecution'](()=>_0x4c00d6([_0x2fa5bd],_0x4a8152,_0x3e3dec));}});for(const _0xa71aeb of _0x40f213){let _0x3ff58a=null,_0x4f50fb=_0xa71aeb['start'],_0x23689b=_0xa71aeb['end'];for(const {suggestion:_0x35d678,meta:_0x48000f}of this['_findSuggestions'](_0xa71aeb,'formatInline')){if(!_0x48000f['isOwn'])continue;if(_0x35d678['subType']!=_0x4b182a)continue;if(!Lt(_0x35d678,_0x3e3dec))continue;const _0x5a3ac7=_0x35d678['getFirstRange']();if(_0x5a3ac7['containsRange'](_0xa71aeb,!0x0))return null;_0x4f50fb=_0x4f50fb['isBefore'](_0x5a3ac7['start'])?_0x4f50fb:_0x5a3ac7['start'],_0x23689b=_0x23689b['isAfter'](_0x5a3ac7['end'])?_0x23689b:_0x5a3ac7['end'],_0x3ff58a?_0x5a3ac7['start']['isBefore'](_0x3ff58a['getFirstRange']()['start'])?(_0x3ff58a['removeMarkers'](),_0x3ff58a=_0x35d678):_0x35d678['removeMarkers']():_0x3ff58a=_0x35d678;}const _0x4979d5=this['_model']['createRange'](_0x4f50fb,_0x23689b);if(_0x3ff58a)this['_setSuggestionRange'](_0x3ff58a,_0x4979d5);else{const _0x291a08=_0x7b6b31(),_0x5e7166=_0x5ee8fb['id'];this['_setSuggestionData']({'id':_0x291a08,'type':'formatInline:'+_0x4b182a,'data':_0x4a8152,'createdAt':new Date(),'authorId':_0x5e7166,'attributes':_0x3e3dec}),this['_addSuggestionMarker']('formatInline:'+_0x4b182a,_0x291a08,_0x5e7166,_0x4979d5);}}return null;}['markBlockFormat'](_0x4b4c87,_0x12963f,_0x26d6ed=[],_0x1ffa67=null,_0x23bd80={}){_0x12963f['formatGroupId']||(_0x12963f['formatGroupId']=_0x12963f['commandName']),_0x12963f['multipleBlocks']=_0x4b4c87['is']('range'),_0x1ffa67=_0x1ffa67||Vt(_0x12963f);const _0x2f3719=_0x26d6ed['map'](_0x32f104=>Gt(_0x32f104,this['_model'])),_0x75aac9=_0x4b4c87['is']('range')?_0x4b4c87:Gt(_0x4b4c87,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5d8c86=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0x5d8c86([_0x75aac9],_0x12963f,_0x23bd80)),null;}_0x2f3719['push'](_0x75aac9);let _0x57a8a3=!0x0;for(const _0x2aaa50 of _0x2f3719)if(!this['_rangeIsInLocalUserInsertion'](_0x2aaa50)){_0x57a8a3=!0x1;break;}if(_0x57a8a3&&'always'!==this['_trackFormatChanges']){const _0xf61a97=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x1ffa67,'accept');return this['forceDefaultExecution'](()=>_0xf61a97([_0x75aac9],_0x12963f,_0x23bd80)),null;}let _0x155e8b=null,_0xbb3b32=_0x75aac9['start'],_0x56660c=_0x75aac9['end'];for(const {suggestion:_0x5bda40,meta:_0x473d9d}of this['_findSuggestions'](_0x75aac9,'formatBlock')){if(!_0x473d9d['isOwn'])continue;if(_0x473d9d['isNextTo']||_0x473d9d['containsRangeInObject']||_0x473d9d['isInsideObject'])continue;if(_0x5bda40['data']['formatGroupId']!=_0x12963f['formatGroupId'])continue;if(!Lt(_0x5bda40,_0x23bd80))continue;const _0x50b854=_0x5bda40['getFirstRange']();if(_0x5bda40['subType']==_0x1ffa67){if(_0x50b854['containsRange'](_0x75aac9,!0x0))return null;_0xbb3b32=_0xbb3b32['isBefore'](_0x50b854['start'])?_0xbb3b32:_0x50b854['start'],_0x56660c=_0x56660c['isAfter'](_0x50b854['end'])?_0x56660c:_0x50b854['end'],_0x155e8b?_0x50b854['start']['isBefore'](_0x155e8b['getFirstRange']()['start'])?(_0x155e8b['removeMarkers'](),_0x155e8b=_0x5bda40):_0x5bda40['removeMarkers']():_0x155e8b=_0x5bda40;}else{const _0x3fb384=_0x75aac9['getIntersection'](_0x50b854);this['_cutOutSuggestionMarker'](_0x5bda40,_0x3fb384);}}const _0x18f21d=this['editor']['plugins']['get']('Users')['me'],_0xa25b2f=_0x7b6b31(),_0x4d5848=_0x18f21d['id'];if(_0x155e8b)return this['_setSuggestionRange'](_0x155e8b,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x155e8b;{const _0x22a374=this['_setSuggestionData']({'id':_0xa25b2f,'type':'formatBlock:'+_0x1ffa67,'data':_0x12963f,'createdAt':new Date(),'authorId':_0x4d5848,'attributes':_0x23bd80});return this['_addSuggestionMarker']('formatBlock:'+_0x1ffa67,_0xa25b2f,_0x4d5848,this['_model']['createRange'](_0xbb3b32,_0x56660c)),_0x22a374;}}['markMultiRangeBlockFormat'](_0x4c581b,_0x19049f,_0xb88abb=[],_0x2ae6e2=null,_0x28964f={}){_0x19049f['formatGroupId']||(_0x19049f['formatGroupId']=_0x19049f['commandName']);const _0x115cfb=_0x4c581b[0x0];_0x19049f['multipleBlocks']=_0x115cfb['is']('range'),_0x2ae6e2=_0x2ae6e2||Vt(_0x19049f);const _0x1e90d0=_0xb88abb['map'](_0x4fa629=>Gt(_0x4fa629,this['_model'])),_0x17097e=_0x115cfb['is']('range')?_0x4c581b:_0x4c581b['map'](_0x540255=>Gt(_0x540255,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2cf90a=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x2cf90a(_0x17097e,_0x19049f,_0x28964f)),null;}_0x1e90d0['push'](..._0x17097e);let _0x4ad991=!0x0;for(const _0xaf3c6 of _0x1e90d0)if(!this['_rangeIsInLocalUserInsertion'](_0xaf3c6)){_0x4ad991=!0x1;break;}if(_0x4ad991&&'always'!==this['_trackFormatChanges']){const _0x49e931=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'accept');return this['forceDefaultExecution'](()=>_0x49e931(_0x17097e,_0x19049f,_0x28964f)),null;}const _0x599139=this['editor']['plugins']['get']('Users')['me'];for(const _0x3bc103 of this['getSuggestions']()){if(_0x3bc103['author']['id']!=_0x599139['id'])continue;if('formatBlock'!=_0x3bc103['type']||_0x3bc103['data']['formatGroupId']!=_0x19049f['formatGroupId'])continue;if(!Lt(_0x3bc103,_0x28964f))continue;const _0x27d7a7=_0x3bc103['subType']==_0x2ae6e2;for(let _0x1100a7=0x0;_0x1100a7<_0x17097e['length'];_0x1100a7++){const _0x1e6467=_0x17097e[_0x1100a7];for(const _0x1249d8 of _0x3bc103['getMarkers']()){const _0x3793e1=_0x1249d8['getRange']();if(_0x1e6467['isEqual'](_0x3793e1)){_0x27d7a7?(_0x17097e['splice'](_0x1100a7,0x1),_0x1100a7--):_0x3bc103['removeMarker'](_0x1249d8['name']);break;}}}}if(0x0==_0x17097e['length'])return null;const _0x4a2162=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x2ae6e2,'join');for(const _0x17d1af of this['getSuggestions']())if(_0x17d1af['author']['id']==_0x599139['id']&&'formatBlock'==_0x17d1af['type']&&_0x17d1af['data']['formatGroupId']==_0x19049f['formatGroupId']&&_0x17d1af['subType']==_0x2ae6e2&&Lt(_0x17d1af,_0x28964f)&&(_0x4a2162(_0x17d1af['getRanges'](),_0x17097e)||_0x4a2162(_0x17097e,_0x17d1af['getRanges']()))){for(const _0x2ee811 of _0x17097e)_0x17d1af['addRange'](_0x2ee811);return _0x17d1af;}const _0x3b1e7b=_0x7b6b31(),_0x59c10c=_0x599139['id'],_0x10abc3='formatBlock:'+_0x2ae6e2,_0x2aa576=this['_setSuggestionData']({'id':_0x3b1e7b,'type':_0x10abc3,'data':_0x19049f,'createdAt':new Date(),'authorId':_0x59c10c,'attributes':_0x28964f});for(const _0x110abf of _0x17097e)this['_addSuggestionMarker'](_0x10abc3,_0x3b1e7b,_0x59c10c,_0x110abf,u['getMultiRangeId']());return _0x2aa576;}['markDeletion'](_0x284b0b,_0x3be26e=null,_0x115837={}){if(_0x284b0b['isCollapsed'])return null;const _0x1f27c4=this['editor']['plugins']['get']('Users')['me'],_0x3e807a=new _0x45d820(_0x284b0b['start'],_0x284b0b['end']);for(const {suggestion:_0x4bc06d,meta:_0x208a89}of this['_findSuggestions'](_0x3e807a,'insertion'))if(_0x208a89['isOwn']&&!_0x208a89['isNextTo']){if(_0x4bc06d['isMultiRange']){const _0x396e12=_0x4bc06d['getRanges']()['filter'](_0x5392d2=>'$graveyard'!=_0x5392d2['root']['rootName']);_0x396e12['every'](_0x967395=>_0x3e807a['containsRange'](_0x967395,!0x0))&&_0x4bc06d['discard']();if(_0x396e12['some'](_0xda9ba8=>_0xda9ba8['containsRange'](_0x3e807a,!0x0))){const _0x225b81=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3be26e,'accept');return this['forceDefaultExecution'](()=>_0x225b81([_0x3e807a],null,_0x115837)),null;}}else{const _0xf87d15=_0x3e807a['getIntersection'](_0x4bc06d['getFirstRange']());null!==_0xf87d15&&_0x4bc06d['_onDiscard']([_0xf87d15],null,_0x115837);}}if(_0x3e807a['detach'](),_0x3e807a['isCollapsed']||'$graveyard'==_0x3e807a['root']['rootName'])return null;let _0x2c89d6=null,_0x3e731f=_0x3e807a['start'],_0x3c3dd8=_0x3e807a['end'];const _0xd73db3=this['_findSuggestions'](_0x3e807a,'deletion');for(const {suggestion:_0x269925,meta:_0x14d2df}of _0xd73db3){const _0x1b565a=this['_model']['createRange'](_0x3e731f,_0x3c3dd8);if(_0x14d2df['isOwn']&&(this['_mergeNestedSuggestions']||!_0x14d2df['containsRangeInObject']&&!_0x14d2df['isInsideObject'])){if(_0x269925['isMultiRange']){if(!Lt(_0x269925,_0x115837))continue;let _0x565068=!0x0;for(const _0x4d2580 of _0x269925['getRanges']()){if(_0x4d2580['containsRange'](_0x1b565a,!0x0))return _0x269925;_0x1b565a['containsRange'](_0x4d2580)||(_0x565068=!0x1);}_0x565068&&_0x269925['discard']();}else{const _0x1198fc=_0x269925['getFirstRange']();if(_0x1198fc['containsRange'](_0x1b565a,!0x0))return _0x269925;if(!Lt(_0x269925,_0x115837)){_0x1b565a['containsRange'](_0x1198fc)?_0x269925['removeMarkers']():_0x1198fc['containsPosition'](_0x3e731f)?_0x3e731f=_0x1198fc['end']:_0x1198fc['containsPosition'](_0x3c3dd8)&&(_0x3c3dd8=_0x1198fc['start']);continue;}_0x3e731f=_0x3e731f['isBefore'](_0x1198fc['start'])?_0x3e731f:_0x1198fc['start'],_0x3c3dd8=_0x3c3dd8['isAfter'](_0x1198fc['end'])?_0x3c3dd8:_0x1198fc['end'],_0x115837=Object['assign']({},_0x269925['attributes']),_0x2c89d6?_0x1198fc['start']['isBefore'](_0x2c89d6['getFirstRange']()['start'])?(_0x2c89d6['removeMarkers'](),_0x2c89d6=_0x269925):_0x269925['removeMarkers']():_0x2c89d6=_0x269925;}}}if(_0x2c89d6)return this['_setSuggestionRange'](_0x2c89d6,this['_model']['createRange'](_0x3e731f,_0x3c3dd8)),_0x2c89d6;{const _0x12e011=_0x7b6b31(),_0x2f4c52=this['_model']['createRange'](_0x3e731f,_0x3c3dd8),_0x11db26=_0x1f27c4['id'],_0x5a227f=_0x3be26e?'deletion:'+_0x3be26e:'deletion',_0x3f5d35=this['_setSuggestionData']({'id':_0x12e011,'type':_0x5a227f,'createdAt':new Date(),'authorId':_0x11db26,'attributes':_0x115837});return this['_addSuggestionMarker'](_0x5a227f,_0x12e011,_0x11db26,_0x2f4c52),_0x3f5d35;}}['markMultiRangeDeletion'](_0x40dbc2,_0x249e1d='multi',_0x25fa67={}){const _0x3049f1=this['editor']['plugins']['get']('Users')['me'],_0x450ad1=_0x40dbc2['map'](_0x4c582b=>new _0x45d820(_0x4c582b['start'],_0x4c582b['end'])),_0x541000=new Set();for(const {suggestion:_0x22b179,meta:_0xb9f209}of this['_findSuggestions'](_0x450ad1,'insertion'))_0xb9f209['isOwn']&&!_0xb9f209['isNextTo']&&_0x541000['add'](_0x22b179);for(const _0x103ad8 of _0x541000)if(_0x103ad8['isMultiRange']){const _0x1df1f8=_0x103ad8['getRanges']();(!_0x103ad8['attributes']||!_0x103ad8['attributes']['skipNestingCheck'])&&(_0x1df1f8['every'](_0x23ffd7=>_0x450ad1['some'](_0x238647=>_0x238647['containsRange'](_0x23ffd7,!0x0)))&&_0x103ad8['discard']());if(_0x450ad1['every'](_0x5ddfb4=>_0x1df1f8['some'](_0x2ba7e7=>_0x2ba7e7['containsRange'](_0x5ddfb4,!0x0)))){const _0x1fee55=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x1fee55(_0x40dbc2,null,_0x25fa67)),null;}}else{const _0x108c02=_0x103ad8['getFirstRange']();_0x450ad1['some'](_0x5d8a0b=>_0x5d8a0b['containsRange'](_0x108c02,!0x0))&&_0x103ad8['discard']();if(_0x450ad1['every'](_0x40cc1c=>_0x108c02['containsRange'](_0x40cc1c,!0x0))){const _0x36c0c0=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'accept');return this['forceDefaultExecution'](()=>_0x36c0c0(_0x450ad1,null,_0x25fa67)),null;}}const _0x52a61e=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x249e1d,'join');let _0x2b21ae=null;for(const _0x213a6d of this['getSuggestions']())if(_0x213a6d['author']['id']==_0x3049f1['id']&&_0x213a6d['isInContent']&&'deletion'==_0x213a6d['type']&&_0x213a6d['subType']==_0x249e1d&&Lt(_0x213a6d,_0x25fa67)&&(_0x52a61e(_0x213a6d['getRanges'](),_0x450ad1)||_0x52a61e(_0x450ad1,_0x213a6d['getRanges']()))){if(_0x2b21ae){if(_0x213a6d['commentThread']&&_0x213a6d['commentThread']['length'])continue;for(const _0x454d19 of _0x213a6d['getRanges']())_0x2b21ae['isIntersectingWithRange'](_0x454d19)||_0x2b21ae['addRange'](_0x454d19);_0x213a6d['removeMarkers']();}else{_0x2b21ae=_0x213a6d;for(const _0x47c572 of _0x450ad1)_0x213a6d['isIntersectingWithRange'](_0x47c572)||_0x213a6d['addRange'](_0x47c572);}}if(_0x2b21ae)return _0x2b21ae;_0x541000['clear']();for(const {suggestion:_0x20c0e5,meta:_0x49965b}of this['_findSuggestions'](_0x450ad1,'deletion'))_0x49965b['isOwn']&&(this['_mergeNestedSuggestions']||!_0x49965b['containsRangeInObject']&&!_0x49965b['isInsideObject'])&&Lt(_0x20c0e5,_0x25fa67)&&_0x541000['add'](_0x20c0e5);for(const _0x18123b of _0x541000){const _0x19e1bb=_0x18123b['getRanges']();if(!_0x25fa67||!_0x25fa67['skipNestingCheck']){if(_0x450ad1['every'](_0x29e609=>_0x19e1bb['some'](_0x1adefa=>_0x1adefa['containsRange'](_0x29e609,!0x0))))return _0x18123b;}(!_0x18123b['attributes']||!_0x18123b['attributes']['skipNestingCheck'])&&(_0x19e1bb['every'](_0x2d693c=>_0x450ad1['some'](_0x427242=>_0x427242['containsRange'](_0x2d693c,!0x0)))&&_0x18123b['discard']());}const _0x1e909a=_0x7b6b31(),_0x571263=_0x3049f1['id'],_0xe579be='deletion:'+_0x249e1d,_0xd31c54=this['_setSuggestionData']({'id':_0x1e909a,'type':_0xe579be,'createdAt':new Date(),'authorId':_0x571263,'attributes':_0x25fa67});for(const _0x21aeb6 of _0x450ad1)_0x21aeb6['detach'](),_0x21aeb6['isCollapsed']||'$graveyard'==_0x21aeb6['root']['rootName']||this['_addSuggestionMarker'](_0xe579be,_0x1e909a,_0x571263,_0x21aeb6,u['getMultiRangeId']());return _0xd31c54;}['markAttributeChange'](_0x48ccd4,_0x48dc93,_0x1d2e0b,_0x25b2cb,_0x39bef4){if(_0x48ccd4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x445f37=this['editor']['plugins']['get']('Users')['me']['id'],_0x175c5c=Array['from'](this['_suggestions']['values']())['filter'](_0x4d95fe=>'attribute'==_0x4d95fe['type']&&_0x4d95fe['data']['key']==_0x48dc93&&_0x4d95fe['isIntersectingWithRange'](_0x48ccd4));if('default'===this['_trackFormatChanges']){const _0x25a99a=this['_findSuggestions'](_0x48ccd4,'insertion')['filter'](({meta:_0x5d8395})=>_0x5d8395['isOwn']&&!_0x5d8395['isInsideObject']&&!_0x5d8395['isNextTo'])['map'](({suggestion:_0x5c1c50})=>_0x5c1c50);_0x175c5c['unshift'](..._0x25a99a);}const _0x25624f=new Map([[_0x48ccd4,_0x1d2e0b]]);for(const _0x1a90a9 of _0x175c5c){const _0x13178e='attribute'==_0x1a90a9['type']?_0x1a90a9['data']['oldValue']:void 0x0,_0x2b9807=_0x1a90a9['getFirstRange'](),_0x226fb7=Array['from'](_0x25624f['keys']())['find'](_0x2b02cf=>_0x2b02cf['isIntersecting'](_0x2b9807));if(!_0x226fb7)continue;const _0x14f066=_0x226fb7['getDifference'](_0x2b9807);this['_isBlockAttribute'](_0x48dc93)&&'insertion'==_0x1a90a9['type']&&0x0!=_0x14f066['length']||(_0x25624f['delete'](_0x226fb7),_0x14f066['forEach'](_0x13fc4b=>{_0x25624f['set'](_0x13fc4b,_0x1d2e0b);}),'insertion'!=_0x1a90a9['type']&&_0x13178e!=_0x25b2cb&&_0x25624f['set'](_0x226fb7['getIntersection'](_0x2b9807),_0x13178e));}const _0x56bddb=[];for(const [_0x4a56b0,_0x4d94b0]of _0x25624f){const _0x36ad64=_0x7b6b31(),_0x4fb32d={'key':_0x48dc93,'oldValue':_0x4d94b0,'newValue':_0x25b2cb};_0x48dc93['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':_0x48dc93});const _0x5a2522=('attribute:'+(_0x48dc93+'|'+Vt({'newValue':_0x25b2cb})))['substring'](0x0,0x3c),_0x4babfe=this['_setSuggestionData']({'id':_0x36ad64,'type':_0x5a2522,'data':_0x4fb32d,'createdAt':new Date(),'authorId':_0x445f37,'attributes':_0x39bef4});_0x56bddb['push'](_0x4babfe),this['_addSuggestionMarker'](_0x5a2522,_0x36ad64,_0x445f37,_0x4a56b0);}return _0x56bddb;}['enableDefaultAttributesIntegration'](_0x10ec62){this['enableCommand'](_0x10ec62,(_0x1fa0c7,..._0x1f4a29)=>{this['_recordAttributeChanges'](()=>{_0x1fa0c7(..._0x1f4a29);});});}['registerBlockAttribute'](_0x456f45){this['_blockAttributeKeys']['add'](_0x456f45);}['registerInlineAttribute'](_0x171fbd){this['_inlineAttributeKeys']['add'](_0x171fbd);}['_getAttributeKey'](_0xf7eb0d){return'attribute'==_0xf7eb0d['type']?_0xf7eb0d['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5b7a12,_0x1b0692){const _0x26ae7e=_0x5b7a12['getFirstMarker']();this['_model']['change'](_0x122f25=>{_0x122f25['updateMarker'](_0x26ae7e,{'range':_0x1b0692});});}['_addThreadToSuggestion'](_0x2f3d2e){const _0x2026f6=_0x2f3d2e['id'],_0x302b5e=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x2026f6)||this['_commentsRepository']['addCommentThread']({'channelId':_0x302b5e,'threadId':_0x2026f6,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x8b3d09=this['_commentsRepository']['getCommentThread'](_0x2026f6);_0x8b3d09['unbind']('isRemovable'),_0x8b3d09['isRemovable']=!0x1,_0x2f3d2e['commentThread']=_0x8b3d09;}['_checkSuggestionCorrectness'](_0x5955d8,_0x21d013,_0x45b86f,_0xe4bfa6){if(_0x5955d8['type']!=_0x21d013||_0x5955d8['subType']!=_0x45b86f||_0x5955d8['creator']['id']!=_0xe4bfa6)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x109ba3('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x45f542,_0x3398f1){const _0x5f56e9=_0x45f542['getFirstRange']();if(_0x3398f1['isEqual'](_0x5f56e9))_0x45f542['removeMarkers']();else{if(_0x5f56e9['containsRange'](_0x3398f1)){const _0x3f5f12=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3f5f12));const _0x40d37f=_0x7b6b31(),_0x46106e=_0x45f542['creator']['id'],_0x4dd77a=_0x45f542['type']+':'+_0x45f542['subType'];this['_setSuggestionData']({'id':_0x40d37f,'type':_0x4dd77a,'createdAt':new Date(),'authorId':_0x46106e,'data':_0x45f542['data'],'attributes':_0x45f542['attributes']});const _0x3fb6aa=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after'),_0x2c3d64=this['_model']['createRange'](_0x3fb6aa,_0x5f56e9['end']);this['_addSuggestionMarker'](_0x4dd77a,_0x40d37f,_0x46106e,_0x2c3d64);}else{if(_0x5f56e9['containsPosition'](_0x3398f1['start'])){const _0x3901e9=this['_model']['createPositionAt'](_0x3398f1['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x5f56e9['start'],_0x3901e9));}else{const _0x47d773=this['_model']['createPositionAt'](_0x3398f1['end']['parent'],'after');this['_setSuggestionRange'](_0x45f542,this['_model']['createRange'](_0x47d773,_0x5f56e9['end']));}}}}['_rangeIsInLocalUserInsertion'](_0xe9d2f8){for(const {suggestion:_0xbd0c3d,meta:_0x36927c}of this['_findSuggestions'](_0xe9d2f8,'insertion')){if(!_0x36927c['isOwn'])continue;const _0x205451=_0xbd0c3d['getRanges']();for(const _0x6ea690 of _0x205451)if(!_0xe9d2f8['getDifference'](_0x6ea690)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x535b67){const _0x2b89c6=this['editor']['plugins']['get']('Users')['getUser'](_0x535b67);if(!_0x2b89c6)throw new _0x109ba3('track-changes-user-not-found',this);return _0x2b89c6;}['_getExternalAuthor'](_0x96c408){const _0x3500fe=this['editor']['plugins']['get']('Users'),_0x26f44d=_0x42152e('external:'+_0x96c408),_0x1431a7=_0x3500fe['getUser'](_0x26f44d);return _0x1431a7||_0x3500fe['addUser']({'id':_0x26f44d,'name':_0x96c408});}['_createSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x161a28,_0x16fc07){const _0x52adcb=this['_getAuthorFromId'](_0x161a28),_0x3808bc=this['_suggestionFactory']['buildSuggestion'](_0x15e7e9,_0x28593f,_0x50eb31,_0x52adcb,_0x16fc07,_0x2d87ee=>{this['_updateSuggestionData'](_0x50eb31,{'attributes':_0x2d87ee});const _0x4feaff=this['getSuggestion'](_0x50eb31);this['_joinWithAdjacentSuggestions'](new Set([_0x4feaff])),this['_refreshSuggestionsChain'](new Set([_0x4feaff]));});return this['listenTo'](_0x3808bc,'accept',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3808bc,'discard',()=>{this['_updateSuggestionData'](_0x50eb31,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x50eb31,_0x3808bc),this['_suggestionState']['set'](_0x3808bc,'notReady'),_0x3808bc;}['_splitMarkerName'](_0x9c4eee){const _0x14c54a=_0x9c4eee['split'](':');return{'group':_0x14c54a[0x0],'type':_0x14c54a[0x1],'subType':_0x14c54a['length']>=0x5?_0x14c54a[0x2]:null,'id':_0x14c54a['length']<0x5?_0x14c54a[0x2]:_0x14c54a[0x3],'authorId':_0x14c54a['length']<0x5?_0x14c54a[0x3]:_0x14c54a[0x4],'markerCount':0x6==_0x14c54a['length']?_0x14c54a[0x5]:null};}['_breakSuggestionMarker'](_0x2584a3,_0x2eaafb,_0x58d2f1){const _0x183f5f=_0x2584a3['getFirstRange'](),_0x4adc7d=_0x183f5f['start'],_0x1c0cd1=_0x183f5f['end'];this['_setSuggestionRange'](_0x2584a3,this['_model']['createRange'](_0x4adc7d,_0x2eaafb));const _0x308e97=_0x7b6b31(),_0x1f4def=_0x2584a3['creator']['id'],_0x424b18=_0x2584a3['type']+(_0x2584a3['subType']?':'+_0x2584a3['subType']:'');this['_setSuggestionData']({'id':_0x308e97,'type':_0x424b18,'createdAt':new Date(),'authorId':_0x1f4def,'originalSuggestionId':_0x2584a3['id'],'attributes':_0x2584a3['attributes'],'data':_0x2584a3['data']});const _0x313370=this['_getAttributeKey'](_0x2584a3);('formatBlock'==_0x2584a3['type']||_0x313370&&this['_isBlockAttribute'](_0x313370))&&(_0x58d2f1=this['_model']['createPositionBefore'](_0x58d2f1['parent'])),this['_addSuggestionMarker'](_0x424b18,_0x308e97,_0x1f4def,this['_model']['createRange'](_0x58d2f1,_0x1c0cd1));}['_findSuggestions'](_0xd6c4cd,_0xc94ec1=null){const _0x352e3e=[],_0x50a069=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0xd6c4cd)||(_0xd6c4cd=[_0xd6c4cd]);for(const _0x3a0ed4 of this['getSuggestions']()){if(!_0x3a0ed4['isInContent'])continue;if(_0xc94ec1&&_0x3a0ed4['type']!=_0xc94ec1)continue;let _0x11ee97=!0x1;for(const _0x1007fe of _0x3a0ed4['getRanges']()){for(const _0x3da497 of _0xd6c4cd){const _0x2e40d1=_0x3da497['start']['isEqual'](_0x1007fe['end'])||_0x3da497['end']['isEqual'](_0x1007fe['start']);if(_0x2e40d1||_0x3da497['getIntersection'](_0x1007fe)){const _0x13898a=_0x3da497['containsRange'](_0x1007fe)&&Rt(this['_model']['schema'],_0x1007fe['start'],_0x3da497),_0x2b245a=_0x1007fe['containsRange'](_0x3da497)&&Rt(this['_model']['schema'],_0x3da497['start'],_0x1007fe);_0x352e3e['push']({'suggestion':_0x3a0ed4,'meta':{'isOwn':_0x50a069==_0x3a0ed4['author'],'isNextTo':_0x2e40d1,'isInsideObject':_0x13898a,'containsRangeInObject':_0x2b245a}}),_0x11ee97=!0x0;break;}}if(_0x11ee97)break;}}return _0x352e3e;}['_addSuggestionMarker'](_0x2bf264,_0x16f7a1,_0x2d9aef,_0x19c095,_0x8dbb91){this['_model']['change'](_0x163a16=>{let _0x4419c3='suggestion:'+_0x2bf264+':'+_0x16f7a1+':'+_0x2d9aef;_0x8dbb91&&(_0x4419c3=_0x4419c3+':'+_0x8dbb91),_0x163a16['addMarker'](_0x4419c3,{'range':_0x19c095,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a33ce){const _0x3cdaa3=_0x1a33ce['previous'],_0x14f61e=_0x1a33ce['next'];_0x1a33ce['previous']=null,_0x1a33ce['next']=null,null!=_0x3cdaa3&&_0x3cdaa3['next']==_0x1a33ce&&(_0x3cdaa3['next']=_0x14f61e),null!=_0x14f61e&&_0x14f61e['previous']==_0x1a33ce&&(_0x14f61e['previous']=_0x3cdaa3),'ready'==this['_suggestionState']['get'](_0x1a33ce)&&(this['_suggestionState']['set'](_0x1a33ce,'removed'),this['fire']('suggestionUnloaded',_0x1a33ce,_0x3cdaa3,_0x14f61e));}['_setSuggestionData'](_0x336df8){const _0x5d1496=_0x336df8['id'],_0x33b37e=this['addSuggestionData'](_0x336df8);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x54b68e=this['editor']['plugins']['get']('PendingActions'),_0x31e1aa=_0x33b37e['hasComments'],_0x3d63ed=_0x33b37e['subType']?_0x33b37e['type']+':'+_0x33b37e['subType']:_0x33b37e['type'],_0x1081e7=this['editor']['locale'],_0x36e65d=_0x54b68e['add'](o(_0x1081e7,'PENDING_ACTION_SUGGESTION')),_0x111e03={'id':_0x5d1496,'type':_0x3d63ed,'hasComments':_0x31e1aa,'data':_0x336df8['data']||null,'originalSuggestionId':_0x336df8['originalSuggestionId']||null,'attributes':_0x33b37e['attributes']};this['_adapter']['addSuggestion'](_0x111e03)['then'](_0x1c3f7c=>{_0x33b37e['_saved']=!0x0,_0x54b68e['remove'](_0x36e65d),_0x1c3f7c&&_0x1c3f7c['createdAt']&&(this['_suggestions']['get'](_0x5d1496)['createdAt']=_0x1c3f7c['createdAt']);})['catch'](_0x10b1d6=>{throw _0x2b4af0('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x33b37e['discard']();}),_0x33b37e['stopListening'](),this['_suggestions']['delete'](_0x33b37e['id']),this['_suggestionState']['delete'](_0x33b37e),_0x10b1d6;});}return _0x33b37e;}['_isBlockAttribute'](_0x3d0e43){return this['_blockAttributeKeys']['has'](_0x3d0e43);}['_updateSuggestionData'](_0x2ea951,_0x3c10b1){const _0x19e310=this['editor']['plugins']['get']('PendingActions'),_0x5bca3c=this['getSuggestion'](_0x2ea951);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x5bca3c['_saved']){const _0x347dfc=_0x19e310['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2ea951,_0x3c10b1)['then'](()=>{_0x19e310['remove'](_0x347dfc);});}else _0x5bca3c['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2ea951,_0x3c10b1);});}}['_getSuggestionData'](_0x462910){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x109ba3('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x462910);}['_handleNewSuggestionMarker'](_0x546645){const {id:_0x3ef1aa,type:_0x3ce80c,subType:_0x8be8c2,authorId:_0x118803}=this['_splitMarkerName'](_0x546645),_0x21328e=this['_suggestions']['get'](_0x3ef1aa)||this['_createSuggestion'](_0x3ce80c,_0x8be8c2,_0x3ef1aa,_0x118803,{});switch(this['_checkSuggestionCorrectness'](_0x21328e,_0x3ce80c,_0x8be8c2,_0x118803),this['_suggestionState']['get'](_0x21328e)){case'notReady':this['_getSuggestionData'](_0x3ef1aa)['then'](_0x53e6ac=>{let _0x1b00cc=Promise['resolve']();_0x53e6ac['hasComments']&&(_0x1b00cc=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3ef1aa})),_0x1b00cc['then'](()=>{this['addSuggestionData'](_0x53e6ac)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x21328e,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3ef1aa,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x21328e,'ready'),this['fire']('suggestionLoaded',_0x21328e);break;case'ready':this['fire']('suggestionChanged',_0x21328e);}return _0x21328e['addMarkerName'](_0x546645),_0x21328e;}['_refreshSuggestionsChain'](_0x513612){const _0x4159d4=Array['from'](_0x513612),_0x32de7e=_0x4159d4['filter'](_0x1f30ca=>'attribute'==_0x1f30ca['type']);this['_refreshAttributeSuggestionsChain'](_0x32de7e);const _0x3f2bbf=_0x4159d4['filter'](_0x40fe30=>!_0x40fe30['isMultiRange']&&'attribute'!=_0x40fe30['type']),_0x2d2489=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x17b7d6=>!_0x17b7d6['isMultiRange']&&'attribute'!=_0x17b7d6['type']),_0x2c05a2=_0x2d2489['filter'](_0x35d5cf=>!_0x513612['has'](_0x35d5cf)),_0x1819ed=new Map(_0x2d2489['map'](_0x32c295=>[_0x32c295,this['_suggestionFactory']['getSuggestionCallback'](_0x32c295['type'],_0x32c295['subType'],'chain')])),_0x255b74=new Map(_0x2d2489['map'](_0x567582=>[_0x567582,_0x567582['getFirstRange']()])),_0x5da189=new Set(),_0x5d5d5e=new Set();for(let _0x2c7ea5=0x0;_0x2c7ea5<_0x3f2bbf['length'];_0x2c7ea5++)_0xc1d67b(_0x3f2bbf[_0x2c7ea5],_0x3f2bbf,_0x2c7ea5+0x1);for(let _0x42fadd=0x0;_0x42fadd<_0x3f2bbf['length'];_0x42fadd++)_0xc1d67b(_0x3f2bbf[_0x42fadd],_0x2c05a2,0x0);const _0x4ffef1=new Set();for(let _0xbc0321=0x0;_0xbc0321<_0x3f2bbf['length'];_0xbc0321++){const _0x51fe95=_0x3f2bbf[_0xbc0321];!_0x5d5d5e['has'](_0x51fe95)&&_0x51fe95['previous']&&(_0x4ffef1['add'](_0x51fe95['previous']),_0x51fe95['previous']['next']===_0x51fe95&&(_0x51fe95['previous']['next']=null),_0x51fe95['previous']=null),!_0x5da189['has'](_0x51fe95)&&_0x51fe95['next']&&(_0x4ffef1['add'](_0x51fe95['next']),_0x51fe95['next']['previous']===_0x51fe95&&(_0x51fe95['next']['previous']=null),_0x51fe95['next']=null);}function _0xc1d67b(_0x391cc8,_0x5d8073,_0x4b2b6c){for(let _0x5c05dd=_0x4b2b6c;_0x5c05dd<_0x5d8073['length'];_0x5c05dd++){const _0x1414d0=_0x36e92(_0x391cc8,_0x5d8073[_0x5c05dd]);_0x1414d0&&(_0x1414d0[0x0]['next']=_0x1414d0[0x1],_0x1414d0[0x1]['previous']=_0x1414d0[0x0],_0x5da189['add'](_0x1414d0[0x0]),_0x5d5d5e['add'](_0x1414d0[0x1]));}}function _0x36e92(_0x1ef1df,_0x3c4ca7){if(_0x1ef1df['author']['id']!==_0x3c4ca7['author']['id'])return null;const _0x2bf395=_0x1819ed['get'](_0x1ef1df)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7));if(!_0x2bf395)return null;return _0x1819ed['get'](_0x3c4ca7)(_0x1ef1df,_0x3c4ca7,_0x255b74['get'](_0x1ef1df),_0x255b74['get'](_0x3c4ca7))?_0x2bf395[0x1]['commentThread']&&_0x2bf395[0x1]['commentThread']['length']?null:_0x2bf395:null;}_0x4ffef1['size']&&this['_refreshSuggestionsChain'](_0x4ffef1);}['_refreshAttributeSuggestionsChain'](_0x112ced){if(0x0==_0x112ced['length'])return;const _0x462dde=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x213d42=>'attribute'==_0x213d42['type']&&_0x213d42['_isDataLoaded']),_0x415653=[],_0x23cda2=new Map();for(const _0x1409e5 of _0x462dde){const _0x473f2f=_0x42152e(_0x1409e5['attributes']);_0x23cda2['has'](_0x473f2f)||(_0x23cda2['set'](_0x473f2f,_0x415653['length']),_0x415653['push']([]));const _0x2fa380=_0x23cda2['get'](_0x473f2f);_0x415653[_0x2fa380]['push'](_0x1409e5);}!(function(){_0x415653['sort']((_0x4c6e57,_0x422c16)=>{const _0x185883=_0x4c6e57[0x0]['createdAt'],_0x280cbe=_0x422c16[0x0]['createdAt'];return _0x185883==_0x280cbe?_0x4c6e57[0x0]['attributes']['groupId']<_0x422c16[0x0]['attributes']['groupId']?-0x1:0x1:_0x185883<_0x280cbe?-0x1:0x1;});for(const _0x5692b7 of _0x415653)_0x5692b7['sort']((_0x4bbb38,_0x5c6e3c)=>_0x4bbb38['id']<_0x5c6e3c['id']?-0x1:0x1);}());for(let _0x5bb496=0x0;_0x5bb496<_0x415653['length'];_0x5bb496++){if(0x0==_0x415653[_0x5bb496]['length'])continue;const _0x5a6ad4=[];for(let _0x479338=_0x5bb496+0x1;_0x479338<_0x415653['length'];_0x479338++)0x0!=_0x415653[_0x479338]['length']&&_0x235b7a(_0x415653[_0x5bb496],_0x415653[_0x479338])&&_0x5a6ad4['push'](_0x479338);for(const _0xfccf53 of _0x5a6ad4)_0x415653[_0x5bb496]=_0x415653[_0x5bb496]['concat'](_0x415653[_0xfccf53]),_0x415653[_0xfccf53]=[];}for(const _0x4d1854 of _0x415653)for(let _0x14380e=0x0;_0x14380e<_0x4d1854['length'];_0x14380e++)_0x4d1854[_0x14380e]['next']=_0x4d1854[_0x14380e+0x1]||null;for(const _0x2356a2 of _0x415653)for(let _0x547c6d=0x0;_0x547c6d<_0x2356a2['length'];_0x547c6d++)_0x2356a2[_0x547c6d]['previous']=_0x2356a2[_0x547c6d-0x1]||null;function _0x235b7a(_0x37786a,_0x2569cd){if(_0x37786a[0x0]['attributes']['groupId']!==_0x2569cd[0x0]['attributes']['groupId']&&_0x37786a[0x0]['author']!==_0x2569cd[0x0]['author'])return!0x1;if(!function(_0x2c3a62,_0x22bbf3){if(!_0x2c3a62['hasComments']&&!_0x22bbf3['hasComments'])return!0x0;if(_0x2c3a62['hasComments']&&_0x22bbf3['hasComments'])return!0x1;if(_0x2c3a62['hasComments']&&_0x22bbf3['createdAt']<_0x2c3a62['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x22bbf3['hasComments']&&_0x2c3a62['createdAt']<_0x22bbf3['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x37786a[0x0],_0x2569cd[0x0]))return!0x1;const _0x276282=Bt(_0x37786a[0x0]['attributes'],'groupId'),_0x23f09f=Bt(_0x2569cd[0x0]['attributes'],'groupId');if(!_0x15c9fb(_0x276282,_0x23f09f))return!0x1;return!!_0x37786a['every'](_0x3f9c36=>_0x2569cd['some'](_0x4b240c=>_0x3f9c36['getFirstRange']()['isEqual'](_0x4b240c['getFirstRange']())))&&_0x2569cd['every'](_0x40cf86=>_0x37786a['some'](_0x23e9e7=>_0x40cf86['getFirstRange']()['isEqual'](_0x23e9e7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4ecfc1){const _0x45aa4e=Array['from'](_0x4ecfc1),_0x1edc83=this['getSuggestions']({'skipNotAttached':!0x0}),_0x492223=_0x1edc83['filter'](_0x4549c3=>!_0x4ecfc1['has'](_0x4549c3)),_0x468062=new Map(_0x45aa4e['map'](_0x2ca076=>[_0x2ca076,this['_suggestionFactory']['getSuggestionCallback'](_0x2ca076['type'],_0x2ca076['subType'],'join')])),_0x37cd76=new Map(_0x1edc83['map'](_0x135f67=>[_0x135f67,_0x135f67['getRanges']()]));for(let _0x32ca55=0x0;_0x32ca55<_0x45aa4e['length'];_0x32ca55++){if(_0x331b4d(this,_0x45aa4e[_0x32ca55],_0x45aa4e,_0x32ca55+0x1))return!0x0;}for(let _0x141aeb=0x0;_0x141aeb<_0x45aa4e['length'];_0x141aeb++){if(_0x331b4d(this,_0x45aa4e[_0x141aeb],_0x492223,0x0))return!0x0;}return!0x1;function _0x331b4d(_0x5d4517,_0x5c1789,_0x32ca0b,_0x43e277){for(let _0x16b6e9=_0x43e277;_0x16b6e9<_0x32ca0b['length'];_0x16b6e9++){const _0x9a2807=_0x32ca0b[_0x16b6e9];if(_0x9a2807['type']!==_0x5c1789['type']||_0x9a2807['author']['id']!==_0x5c1789['author']['id']||_0x9a2807['subType']!==_0x5c1789['subType'])continue;if(!Pt(_0x5c1789,_0x9a2807,['groupId']))continue;if('attribute'==_0x5c1789['type']&&_0x5c1789['data']['oldValue']!=_0x9a2807['data']['oldValue'])continue;if('attribute'==_0x5c1789['type']&&_0x5d4517['_isBlockAttribute'](_0x5c1789['data']['key']))continue;if('formatBlock'==_0x5c1789['type']){const _0x4112ea=_0x5d4517['editor']['model'],_0x1da573=_0x5c1789['getContainedElement']();if(_0x1da573&&(_0x4112ea['schema']['isObject'](_0x1da573)||_0x4112ea['schema']['isLimit'](_0x1da573)))continue;}const _0x3c4978=_0x468062['get'](_0x5c1789),_0xb9716a=_0x37cd76['get'](_0x5c1789),_0x4bf487=_0x37cd76['get'](_0x9a2807),_0x22708f=_0x5c1789['commentThread']&&_0x5c1789['commentThread']['length'],_0x550323=_0x9a2807['commentThread']&&_0x9a2807['commentThread']['length'];if(!_0x22708f&&_0x3c4978(_0x4bf487,_0xb9716a))return _0x5d4517['_joinSuggestions'](_0x9a2807,_0x5c1789),_0x37cd76['delete'](_0x5c1789),!0x0;if(!_0x550323&&_0x3c4978(_0xb9716a,_0x4bf487))return _0x5d4517['_joinSuggestions'](_0x5c1789,_0x9a2807),_0x37cd76['delete'](_0x9a2807),!0x0;}return!0x1;}}['_joinSuggestions'](_0xbe3793,_0x4b03aa){if(_0xbe3793['isMultiRange']){for(const _0x5f0c0b of _0x4b03aa['getRanges']())_0xbe3793['addRange'](_0x5f0c0b);}else{const _0x68af23=_0x4b03aa['getFirstRange']()['end'];this['_setSuggestionRange'](_0xbe3793,this['_model']['createRange'](_0xbe3793['getFirstRange']()['start'],_0x68af23));}_0x4b03aa['removeMarkers']();}['_getMarkerAnnouncementText'](_0x25639e,_0x525f47){const _0x11e011=_0x25639e['startsWith']('format')||_0x25639e['startsWith']('attribute')?'FORMATTING':_0x25639e['toUpperCase']();return o(this['editor']['locale'],_0x525f47+'_'+_0x11e011+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x3667e3=this['editor'];if(!_0x3667e3['ui'])return;const {ariaLiveAnnouncer:_0xe05dfd}=_0x3667e3['ui'];_0x23dbc7(this['_model'],({left:_0x2c5398,entered:_0x2cbd5c})=>{for(const _0x2d2963 of _0x2c5398){const {group:_0x1de342,type:_0x4ccc7d}=this['_splitMarkerName'](_0x2d2963['name']);if('suggestion'===_0x1de342){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x4ccc7d,'LEAVE'));break;}}for(const _0x3756ac of _0x2cbd5c){const {group:_0x330c5d,type:_0x45600e}=this['_splitMarkerName'](_0x3756ac['name']);if('suggestion'===_0x330c5d){_0xe05dfd['announce'](this['_getMarkerAnnouncementText'](_0x45600e,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4d43da){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3be712=this['editor'],_0x50b131=_0x3be712['model']['document']['differ']['getChanges']();if(0x0==_0x50b131['length'])return!0x1;const _0x2fd848=[],_0x3b178e=_0x50b131['filter'](_0x4bba23=>'attribute'==_0x4bba23['type']),_0x3685d0=_0x50b131['filter'](_0x10674d=>'insert'==_0x10674d['type']&&'$text'!=_0x10674d['name']),_0x23af44=_0x50b131['filter'](_0x49b8db=>'remove'==_0x49b8db['type']&&'$text'!=_0x49b8db['name']);for(const _0x21f9d1 of _0x3b178e)_0x2fd848['push']({'key':_0x21f9d1['attributeKey'],'newValue':_0x21f9d1['attributeNewValue'],'oldValue':_0x21f9d1['attributeOldValue'],'range':Ot(_0x21f9d1['range'],_0x3be712['model'])});for(const _0x116546 of _0x3685d0){const _0x59befc=_0x23af44['find'](_0x339403=>_0x339403['position']['isEqual'](_0x116546['position']));_0x59befc&&_0x2fd848['push']({'key':m,'newValue':_0x116546['name'],'oldValue':_0x59befc['name'],'range':_0x3be712['model']['createRangeOn'](_0x116546['position']['nodeAfter'])});}return 0x0!=_0x2fd848['length']&&this['_reduceExistingSuggestions'](_0x4d43da,_0x2fd848);}['_processAttributeSuggestions'](_0x11ad81){let _0x14e0de=!0x1;const _0xecdb1a=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x34fc81=>_0x34fc81['data']['newRange']&&_0x34fc81['name']['startsWith']('suggestion:attribute:'));for(const _0x4ecc7d of _0xecdb1a){const {subType:_0x2631c2,id:_0x5f2069}=this['_splitMarkerName'](_0x4ecc7d['name']),_0x1d735b=_0x2631c2['split']('|')[0x0];for(const _0x24833e of this['getSuggestions']({'skipNotAttached':!0x0}))_0x24833e['id']!=_0x5f2069&&'attribute'==_0x24833e['type']&&_0x24833e['data']&&_0x24833e['data']['key']==_0x1d735b&&_0x24833e['getFirstRange']()['isIntersecting'](_0x4ecc7d['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x24833e,_0x4ecc7d['data']['newRange'],_0x11ad81),_0x14e0de=!0x0);}return _0x14e0de;}['_recordAttributeChanges'](_0x1af864){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1af864();}['_isRegisteredAttribute'](_0x483e6e){const _0x1fe993=this['_isBlockAttribute'](_0x483e6e),_0x34d3d5=this['_inlineAttributeKeys']['has'](_0x483e6e);return _0x1fe993||_0x34d3d5;}['_reduceExistingSuggestions'](_0x3a7272,_0x3a9ecf){if(0x0==_0x3a9ecf['length'])return!0x1;let _0x240f7c=!0x1;for(const _0x16950f of _0x3a9ecf){const _0x5c8357=this['_findSuggestions'](_0x16950f['range'],'attribute')['filter'](_0x116b79=>!_0x116b79['meta']['isNextTo'])['map'](_0x56a7d0=>_0x56a7d0['suggestion']),_0x229cbc=_0x42152e({'newValue':_0x16950f['newValue']});_0x5c8357['filter'](_0x38a525=>{const [_0x39d65c,_0x49a29d]=_0x38a525['subType']['split']('|');return _0x39d65c==_0x16950f['key']&&_0x49a29d!=_0x229cbc;})['forEach'](_0x315bac=>{this['_reduceSuggestionAttributeRange'](_0x315bac,_0x16950f['range'],_0x3a7272),_0x240f7c=!0x0;});}return _0x240f7c;}['_reduceSuggestionAttributeRange'](_0x499156,_0x3e20a4,_0x433eca){const _0x1750f8=_0x499156['getFirstRange']()['getDifference'](_0x3e20a4);0x0!==_0x1750f8['length']?0x1!==_0x1750f8['length']?this['_breakSuggestionMarker'](_0x499156,_0x3e20a4['start'],_0x3e20a4['end']):this['_setSuggestionRange'](_0x499156,_0x1750f8[0x0]):_0x433eca['removeMarker'](_0x499156['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x20090c){this['_editor']=_0x20090c,this['_model']=_0x20090c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x3f6125,_0x43d019,_0x19d3de,_0x3318ee,_0x3b0922,_0x4d60a4){return new u(this['_model'],{'type':_0x3f6125,'subType':_0x43d019,'id':_0x19d3de,'author':_0x3318ee,'creator':_0x3318ee,'attributes':_0x3b0922,'onAttributesChange':_0x4d60a4,'onAccept':(..._0x338f84)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'accept')(..._0x338f84),'onDiscard':(..._0x41d2dd)=>this['getSuggestionCallback'](_0x3f6125,_0x43d019,'discard')(..._0x41d2dd)});}['registerCustomCallback'](_0x5ee542,_0x35f0d8,_0x52596c,_0x360744){const _0x573e38=_0x5ee542+':'+_0x35f0d8+':'+_0x52596c;this['_customCallbacks']['set'](_0x573e38,_0x360744);}['getSuggestionCallback'](_0x1131d9,_0x1102b7,_0x202641){const _0x5caf8f=_0x1131d9+':'+_0x1102b7+':'+_0x202641;return this['_customCallbacks']['get'](_0x5caf8f)||this['_defaultCallbacks']['get'](_0x1131d9+':'+_0x202641);}['_registerDefaultCallbacks'](){const _0x35ca95=()=>!0x1,_0x4050f9=_0x5f1bb2=>{_0x5f1bb2['sort']((_0x215b8e,_0x50f01f)=>_0x215b8e['start']['isBefore'](_0x50f01f['start'])?0x1:-0x1),this['_model']['change'](_0x183032=>{for(const _0x3f5eb1 of _0x5f1bb2){let _0x15516a;_0x15516a=_0x3f5eb1['end']['isAtEnd']&&_0x3f5eb1['end']['parent']==_0x3f5eb1['start']['nodeAfter']?_0x183032['createSelection'](_0x3f5eb1['start']['nodeAfter'],'on'):_0x183032['createSelection'](_0x3f5eb1),this['_model']['deleteContent'](_0x15516a,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x5c07ea=(_0x53906c,_0x2b7ef2)=>{_0x2b7ef2&&this['_model']['change'](_0x3976df=>{const {commandName:_0x50cde2,commandParams:_0x4f33ed=[]}=_0x2b7ef2,_0x2b789b=_0x53906c['map'](_0xc67fc3=>(Tt(_0xc67fc3)&&(_0xc67fc3=this['_model']['createRange'](_0xc67fc3['end'])),_0xc67fc3))['filter'](_0x44e812=>'$graveyard'!==_0x44e812['root']['rootName']);if(_0x2b789b['length']<0x1)return;const _0x135c24=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x125263=>_0x45d820['fromRange'](_0x125263));_0x3976df['setSelection'](_0x2b789b);for(const _0x4c9dde of this['_editor']['commands']['commands']())_0x4c9dde['refresh']();_0x4f33ed['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x50cde2,..._0x4f33ed);const _0x5ace0d=_0x135c24['filter'](_0x296c46=>'$graveyard'!=_0x296c46['root']['rootName']);_0x5ace0d['length']>0x0&&_0x3976df['setSelection'](_0x5ace0d);for(const _0x2c6c2f of _0x135c24)_0x2c6c2f['detach']();});},_0xf618bb=(_0x7b9d0f,_0x55f78e)=>0x1==_0x7b9d0f['length']&&0x1==_0x55f78e['length']&&_0x7b9d0f[0x0]['end']['isEqual'](_0x55f78e[0x0]['start']),_0x46ce95=(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b)=>Ft(_0xdeb511,_0x5eca38,_0x3d2b74,_0x3f7d8b,this['_model'])?[_0xdeb511,_0x5eca38]:Ft(_0x5eca38,_0xdeb511,_0x3f7d8b,_0x3d2b74,this['_model'])?[_0x5eca38,_0xdeb511]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x35ca95),this['_defaultCallbacks']['set']('insertion:discard',_0x4050f9),this['_defaultCallbacks']['set']('insertion:join',_0xf618bb),this['_defaultCallbacks']['set']('insertion:chain',_0x46ce95),this['_defaultCallbacks']['set']('deletion:accept',_0x4050f9),this['_defaultCallbacks']['set']('deletion:discard',_0x35ca95),this['_defaultCallbacks']['set']('deletion:join',_0xf618bb),this['_defaultCallbacks']['set']('deletion:chain',_0x46ce95),this['_defaultCallbacks']['set']('formatInline:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatInline:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatInline:join',_0xf618bb),this['_defaultCallbacks']['set']('formatInline:chain',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:accept',_0x5c07ea),this['_defaultCallbacks']['set']('formatBlock:discard',_0x35ca95),this['_defaultCallbacks']['set']('formatBlock:join',_0xf618bb),this['_defaultCallbacks']['set']('formatBlock:chain',_0x35ca95),this['_defaultCallbacks']['set']('attribute:accept',_0x35ca95),this['_defaultCallbacks']['set']('attribute:discard',(_0xd83a84,_0x5a226b)=>{if(!_0x5a226b)return;const _0x152485=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2ecb9e=>{if(_0x5a226b['key']==m)for(const _0x384bba of _0xd83a84){const _0x373834=_0x384bba['start']['nodeAfter'],_0x4d51e6=_0x5a226b['oldValue'];_0x2ecb9e['rename'](_0x373834,_0x4d51e6);}else{if(_0x152485['_isBlockAttribute'](_0x5a226b['key'])){for(const _0x43f3ab of _0xd83a84)void 0x0!==_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x43f3ab['start']['nodeAfter']):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x43f3ab['start']['nodeAfter']);}else{for(const _0x4ff007 of _0xd83a84)_0x5a226b['oldValue']?_0x2ecb9e['setAttribute'](_0x5a226b['key'],_0x5a226b['oldValue'],_0x4ff007):_0x2ecb9e['removeAttribute'](_0x5a226b['key'],_0x4ff007);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0xf618bb);}}function Rt(_0x4edd3c,_0x41d354,_0x31b028){for(const _0x3928fd of _0x41d354['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x3928fd['root']==_0x3928fd)return!0x1;if(!_0x31b028['containsItem'](_0x3928fd))return!0x1;if(_0x4edd3c['isObject'](_0x3928fd)||_0x4edd3c['isLimit'](_0x3928fd))return!0x0;}return!0x1;}function Tt(_0x1d1cbd){return _0x1d1cbd['end']['parent']==_0x1d1cbd['start']['nodeAfter']&&_0x1d1cbd['end']['isAtStart'];}function Et(_0x4d057f,_0x5dd0c6,_0x3a8a5d,_0x47d0a7){const _0x44063b=_0x2d74dd=>!_0x2d74dd['item']['is']('$textProxy')&&!_0x47d0a7['isObject'](_0x2d74dd['item']),_0x4afa1a=_0x4d057f['start']['getLastMatchingPosition'](_0x44063b),_0x414a40=_0x4d057f['end']['getLastMatchingPosition'](_0x44063b,{'direction':'backward'});return(!_0x4d057f['start']['isEqual'](_0x4afa1a)||!_0x4d057f['end']['isEqual'](_0x414a40))&&(_0x4afa1a['isBefore'](_0x414a40)?_0x3a8a5d['updateMarker'](_0x5dd0c6,{'range':_0x3a8a5d['createRange'](_0x4afa1a,_0x414a40)}):_0x3a8a5d['removeMarker'](_0x5dd0c6),!0x0);}function Vt(_0x27fed1){return _0x42152e(_0x27fed1);}function Ut(_0x339234){const _0x94df7b=_0x339234['start']['nodeAfter'];return _0x94df7b&&_0x94df7b['is']('element');}function Ot(_0x5d9366,_0x119b52){return null==_0x5d9366['end']['nodeBefore']&&_0x5d9366['end']['parent']==_0x5d9366['start']['nodeAfter']?Gt(_0x5d9366['start']['nodeAfter'],_0x119b52):_0x5d9366;}function Gt(_0x3c0949,_0x3a5227){const _0x4ff5c9=_0x3a5227['schema']['isObject'](_0x3c0949)||_0x3a5227['schema']['isSelectable'](_0x3c0949);return _0x3a5227['createRange'](_0x3a5227['createPositionAt'](_0x3c0949,'before'),_0x4ff5c9?_0x3a5227['createPositionAfter'](_0x3c0949):_0x3a5227['createPositionAt'](_0x3c0949,'end'));}function Ft(_0x457679,_0x5f5b66,_0x4c6a8f,_0x9c2651,_0x53c7db){if(!Pt(_0x457679,_0x5f5b66))return!0x1;if(_0x4c6a8f['end']['isEqual'](_0x9c2651['start']))return!0x0;if(_0x457679['type']!=_0x5f5b66['type'])return!0x1;if(!_0x4c6a8f['end']['isTouching'](_0x9c2651['start']))return!0x1;const _0x4afa7d=_0x53c7db['createRange'](_0x4c6a8f['end'],_0x9c2651['start'])['getWalker']();for(const _0x12fa20 of _0x4afa7d)if(['elementStart','elementEnd']['includes'](_0x12fa20['type'])&&_0x53c7db['schema']['isLimit'](_0x12fa20['item']))return!0x1;return!0x0;}function Pt(_0x3a53f9,_0x52eaf0,_0x110449=[]){return!(!_0x3a53f9['_isDataLoaded']||!_0x52eaf0['_isDataLoaded'])&&_0x15c9fb(Bt(_0x3a53f9['attributes'],_0x110449),Bt(_0x52eaf0['attributes'],_0x110449));}function Lt(_0x517706,_0x12ec1f){const _0x33e733=Ht(_0x517706['attributes']),_0x97e684=Ht(_0x12ec1f);if(!_0x517706['_isDataLoaded'])return!0x1;for(const _0x311e8a of Object['keys'](_0x97e684))if(!_0x15c9fb(_0x33e733[_0x311e8a],_0x97e684[_0x311e8a]))return!0x1;return!0x0;}function Ht(_0x34a03a){const _0x2779db=Object['assign']({},_0x34a03a);return delete _0x2779db['skipNestingCheck'],delete _0x2779db['tablePasteChainId'],_0x2779db;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x24d01d(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x5369a9,_0x3f0b00,_0x1f0cc4,_0x340584){super(),this['model']=_0x3f0b00,this['view']=_0x1f0cc4,this['commentThreadController']=_0x340584,this['_editor']=_0x5369a9,this['_acceptCommand']=_0x5369a9['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x5369a9['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1aebe2,_0x1aee83)=>_0x1aebe2||_0x1aee83),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x136fdb=>_0x136fdb&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x399f0b=>_0x399f0b&&this['_editor']['model']['canEditAt'](_0x3f0b00['getRanges']())),this['_pendingAction']=null,_0x1f0cc4['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x1f0cc4,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x1f0cc4,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x1f0cc4,'change:isDirty',()=>{_0x1f0cc4['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 _0x44d55b=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x44d55b);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x5662df{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f2436,_0x4c3b7c,_0x38c372,_0x496cc9){super(_0x3f2436),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x4c3b7c['authoredAt']),this['bind']('authoredAt')['to'](_0x4c3b7c),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x4c3b7c,this['_localUser']=_0x38c372,this['_config']=_0x496cc9,_0x496cc9['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x1f60c2}=this['_config'];this['commentsListView']=new _0x1f60c2(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',_0x99f55=>_0x99f55+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x376035,_0x100f04)=>_0x376035||!!_0x100f04);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23a7fe}=this['_config'],_0x5a6209=new _0x23a7fe(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x6726f7=_0x5a6209['commentInputView'];return _0x5a6209['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x6726f7,'value',(_0x1b8089,_0x53785e,_0x4e1116)=>!!_0x4e1116||_0x1b8089&&!_0x53785e),_0x6726f7['on']('submit',(_0x563105,_0xc1482a)=>{this['fire']('addComment',_0xc1482a),_0x6726f7['editor']['setData']('');}),_0x6726f7['on']('cancel',()=>this['focus']()),_0x6726f7['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5a6209;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072){super(_0x5acef5,_0x7f61d7,_0xc4b00f,_0x418072),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x9deba3=>_0x9deba3&&_0x9deba3[0x0]?_0x9deba3[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x8996d1,_0x3b8ab8)=>{let _0x2fc0ee='';for(const _0x437c63 of _0x8996d1)_0x2fc0ee+='<p>'+ds(_0x437c63['content'],_0x437c63['color'])+'</p>';return _0x3b8ab8?_0x2fc0ee:_0x1ec19c(_0x2fc0ee,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5acef5,'Accept\x20suggestion'),_0x1e3b05['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5acef5,'Discard\x20suggestion'),_0x1e3b05['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x3b1e71(_0x5acef5,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x19d6da=this['bindTemplate'],_0x509cf4=[{'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':_0x19d6da['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x19d6da['to']('authoredAt',_0xda1c66=>this['_config']['formatDateTime'](_0xda1c66))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x509cf4['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x59ae15={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x19d6da['if']('isActive','ck-suggestion-wrapper--active'),_0x19d6da['to']('type',_0x4f3eec=>'ck-suggestion-'+_0x4f3eec),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x509cf4}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x59ae15['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x59ae15;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x11f10c,_0x3f984a,_0x35e3ec)=>{this['_descriptionElement']['innerHTML']=_0x35e3ec;});}['_createButton'](_0x3ca9f2,_0x4876b6,_0x54b519,_0x79d98d,_0x2b5ea3){const _0x5ea058=new _0x18c11e(this['locale']);return _0x5ea058['set']({'label':_0x3ca9f2,'icon':_0x4876b6,'tooltip':!0x0,'tooltipPosition':_0x2b5ea3}),_0x5ea058['extendTemplate']({'attributes':{'class':_0x54b519}}),_0x5ea058['on']('execute',()=>{this['fire'](_0x79d98d,this['_model']['id']);}),_0x5ea058;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x2963e9,_0x4cb28a){let _0x4e0540='';return _0x4e0540+=_0x2963e9['split']('*')['map']((_0x5217d4,_0x3ffc45)=>_0x3ffc45%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x5217d4)+'</span>':us(_0x5217d4))['join'](''),_0x4cb28a&&(_0x4e0540+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x4cb28a['value']+'\x22\x20title=\x22'+_0x4cb28a['title']+'\x22></span>'),_0x4e0540;}function us(_0x4dfc3e){const _0x43866e=document['createElement']('span');return _0x43866e['innerText']=_0x4dfc3e,_0x43866e['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x1c9f3d{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x505203,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x11b1ce){super(_0x11b1ce),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x38ec03=this['editor']['config'];_0x38ec03['define']('trackChanges.SuggestionThreadView',ne),_0x38ec03['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x38ec03['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x296f4c,_0x5ec4dc){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x47282e,_0x4b58d2]of this['_handleControllerBuffer']){const _0x34d545=this['_suggestionToController']['has'](_0x47282e);_0x34d545||_0x4b58d2?_0x34d545&&_0x4b58d2&&this['_destroyController'](_0x47282e):this['_initializeController'](_0x47282e);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x296f4c,_0x5ec4dc);}['init'](){const _0x3495f4=this['editor'],_0x346c47=_0x3495f4['plugins']['get']('TrackChangesEditing'),_0x57e15f=_0x3495f4['plugins']['get']('Annotations'),_0x323a24=_0x3495f4['plugins']['get']('EditorAnnotations'),_0x56580c=_0x3495f4['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x323a24['addSourceCollector'](()=>{const _0x2b5d96=[];for(const [_0x48b7ab,_0x802a77]of Array['from'](this['_suggestionToController'])){const _0x1abed7=_0x48b7ab['getAllAdjacentSuggestions'](),_0x277cb1=[];for(const _0xf6356 of _0x1abed7){if(!_0xf6356['isInContent'])continue;if(_0xf6356['isMultiRange']){_0x277cb1['push'](..._0xf6356['getRanges']());continue;}const _0x377ff3=_0xf6356['getFirstRange']();if(_0x277cb1['length']>0x0){const _0xf2c65c=_0x277cb1[0x0]['getJoined'](_0x377ff3);if(_0xf2c65c){_0x277cb1[0x0]=_0xf2c65c;continue;}}_0x277cb1['push'](_0x377ff3);}_0x2b5d96['push']([_0x802a77['view'],_0x277cb1]);}return _0x2b5d96;}),this['listenTo'](_0x346c47,'suggestionLoaded',(_0x3976bf,_0xbc5c67)=>{this['listenTo'](_0xbc5c67,'change:previous',(_0x45632c,_0x5b1d09,_0x5585e2,_0x291422)=>{_0xbc5c67['isInContent']&&(null==_0x5585e2?(this['_updateController'](_0x291422['head']),this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1)):(this['_updateController'](_0x5585e2['head']),null==_0x291422&&this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x0)));}),null!==_0xbc5c67['previous']?this['_updateController'](_0xbc5c67['head']):this['_handleSuggestionControllerDelayed'](_0xbc5c67,!0x1);}),this['listenTo'](_0x346c47,'suggestionUnloaded',(_0x5a36b3,_0x56d463,_0x224997)=>{this['stopListening'](_0x56d463,'change:previous'),this['_handleControllerBuffer']['delete'](_0x56d463),this['_suggestionToController']['has'](_0x56d463)&&this['_destroyController'](_0x56d463),_0x224997&&this['_updateController'](_0x224997['head']);}),this['listenTo'](_0x346c47,'suggestionChanged',(_0xf53612,_0x2f9c3c)=>{this['_updateController'](_0x2f9c3c);}),this['listenTo'](_0x57e15f,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x56580c,'addComment',(_0x5db038,{threadId:_0x5e3628,isFromAdapter:_0x1899bd})=>{if(_0x1899bd||!_0x346c47['hasSuggestion'](_0x5e3628))return;const _0x1c5e9d=_0x346c47['getSuggestion'](_0x5e3628);this['_suggestionToController']['get'](_0x1c5e9d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x42f4ae=this['editor']['plugins']['get']('Annotations'),_0x7e9bb9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x18b988=Array['from'](_0x42f4ae['activeAnnotations'],_0x277119=>_0x277119['innerView'])['filter'](_0x233414=>this['_viewToController']['has'](_0x233414)),_0x4e7ffb=[];for(const _0x58b34f of _0x18b988){const _0x39c110=this['_viewToController']['get'](_0x58b34f)['model']['getAllAdjacentSuggestions']();_0x4e7ffb['push'](..._0x39c110['reduce']((_0x545af2,_0x2937be)=>[..._0x545af2,..._0x2937be['getMarkerNames']()],[]));}_0x7e9bb9['activeMarkers']=_0x4e7ffb;}['_addUIComponentsToFactory'](){const _0x4d73a5=this['editor'],_0x59fe39=_0x4d73a5['locale'],_0xa53df0=o(_0x59fe39,'Track\x20changes'),_0x5af2c4=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xa53df0,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x59fe39,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1cc313 of _0x5af2c4)if(ae(_0x1cc313)){const _0x5eee01=_0x4d73a5['commands']['get'](_0x1cc313['model']['commandName']);_0x1cc313['model']['bind']('isOn','isEnabled')['to'](_0x5eee01,'value','isEnabled');}_0x4d73a5['ui']['componentFactory']['add']('trackChanges',_0x53a477=>this['_createToolbarButton'](_0x53a477,_0x5af2c4,_0xa53df0)),_0x4d73a5['ui']['componentFactory']['add']('menuBar:trackChanges',_0x550107=>this['_createMenuBarMenu'](_0x550107,_0x5af2c4,_0xa53df0));}['_createToolbarButton'](_0x446a87,_0x3cbc45,_0x5536b5){const _0x3eef1f=zt(_0x446a87,Zt),_0x4b32f2=this['editor']['commands']['get']('trackChanges');_0x3eef1f['buttonView']['set']({'tooltip':_0x5536b5,'label':_0x5536b5,'icon':ie}),_0x3eef1f['buttonView']['bind']('isOn')['to'](_0x4b32f2,'value'),_0x3eef1f['buttonView']['on']('execute',()=>{_0x4b32f2['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x3eef1f,_0x3cbc45,{'role':'menu'});const _0xef49ea=[];for(const _0x56f9f1 of _0x3cbc45)ae(_0x56f9f1)&&_0xef49ea['push'](this['editor']['commands']['get'](_0x56f9f1['model']['commandName']));const _0x29d80b=_0x3eef1f['buttonView'];return _0x29d80b['actionView']['unbind']('isEnabled'),_0x29d80b['arrowView']['unbind']('isEnabled'),_0x29d80b['actionView']['bind']('isEnabled')['to'](_0x4b32f2,'isEnabled'),_0x29d80b['arrowView']['bind']('isEnabled')['toMany'](_0xef49ea,'isEnabled',(..._0x3c96b8)=>_0x3c96b8['some'](_0x1629b4=>_0x1629b4)),_0x3eef1f['on']('execute',_0x43a187=>{this['editor']['execute'](_0x43a187['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x3eef1f;}['_createMenuBarMenu'](_0x676718,_0x542ea3,_0x28925c){const _0x368a6e=new Kt(_0x676718),_0xdc293=this['editor']['commands']['get']('trackChanges');_0x368a6e['buttonView']['set']({'label':_0x28925c,'icon':ie});const _0x4742ae=new Qt(_0x676718);for(const _0x312be0 of _0x542ea3){if('separator'==_0x312be0['type']){_0x4742ae['items']['add'](new Jt(_0x676718));continue;}const _0x316122=new Xt(_0x676718,_0x368a6e),_0x119b04=new Yt(_0x676718),_0x5192e1=_0x312be0['model'];_0x119b04['bind'](...Object['keys'](_0x5192e1))['to'](_0x5192e1),_0x119b04['delegate']('execute')['to'](_0x368a6e),_0x119b04['on']('execute',()=>{this['editor']['execute'](_0x5192e1['commandName']),this['editor']['editing']['view']['focus']();}),_0x316122['children']['add'](_0x119b04),_0x4742ae['items']['add'](_0x316122);}return _0x368a6e['bind']('isEnabled')['to'](_0xdc293,'isEnabled'),_0x368a6e['panelView']['children']['add'](_0x4742ae),_0x368a6e;}['_initializeController'](_0x5d45fe){const _0x33d44f=this['editor'],_0xec89aa=_0x33d44f['config'],_0x3844cf=_0x33d44f['plugins']['get']('Annotations'),_0x46d7ba=_0x33d44f['plugins']['get']('CommentsRepository'),_0x22b960=_0x33d44f['plugins']['get']('EditorAnnotations'),_0x140784=_0x33d44f['plugins']['get'](_0x505203)['me'],_0x3a0a08=_0xec89aa['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x42eb78,CommentThreadInputView:_0x1c1fc4}=_0x33d44f['plugins']['get']('CommentsUI');let _0x25d251,_0x1b964e;this['_annotationViews']['has'](_0x5d45fe['id'])?(_0x1b964e=this['_annotationViews']['get'](_0x5d45fe['id']),_0x25d251=_0x1b964e['mainView']):(_0x25d251=new _0x3a0a08(_0x33d44f['locale'],_0x5d45fe,_0x140784,{'disableComments':this['_disableComments'],'editorConfig':_0xec89aa['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xec89aa['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xec89aa['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xec89aa['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1b3aba(_0xec89aa['get']('locale')),'CommentView':_0xec89aa['get']('comments')['CommentView'],'CommentsListView':_0x42eb78,'CommentThreadInputView':_0x1c1fc4}),_0x25d251['acceptButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x25d251['discardButton']['on']('execute',()=>{_0x33d44f['editing']['view']['focus']();}),_0x1b964e=_0x3844cf['createAnnotationView'](this['editor']['locale'],_0x25d251),_0x1b964e['bind']('isDirty')['to'](_0x25d251,'isDirty'),_0x1b964e['bind']('length')['to'](_0x25d251),_0x1b964e['bind']('type')['to'](_0x25d251,'type',_0x3e2dc4=>'suggestion-'+_0x3e2dc4),this['_annotationViews']['set'](_0x5d45fe['id'],_0x1b964e));const _0x51b129=_0x46d7ba['createCommentThreadController'](_0x5d45fe['commentThread'],_0x25d251),_0x18566e=new oe(_0x33d44f,_0x5d45fe,_0x25d251,_0x51b129),_0x232889=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x44e86c=>_0x44e86c['isInContent']);_0x25d251['descriptionParts']=_0x33d44f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x232889),this['_suggestionToController']['set'](_0x5d45fe,_0x18566e),this['_viewToController']['set'](_0x25d251,_0x18566e);const _0x23ecc6=_0x3844cf['createAnnotation']({'view':_0x1b964e,'target':()=>{const _0x27dcaa=[],_0xe53a9a=_0x5d45fe['getAllAdjacentSuggestions']()['filter'](_0x26ce1b=>_0x26ce1b['isInContent']);for(const _0x1d470f of _0xe53a9a)_0x27dcaa['push'](..._0x1d470f['getMarkers']());return _0x141286(_0x33d44f['editing'],_0x27dcaa);},'type':()=>'suggestion-'+_0x18566e['view']['type']});_0x46d7ba['_bindAnnotationToEditors'](_0x25d251,_0x23ecc6),_0x3844cf['add'](_0x23ecc6),_0x22b960['registerAnnotation'](_0x23ecc6);}['_destroyController'](_0x38badc){const _0x410d87=this['editor']['plugins']['get']('CommentsRepository'),_0x4d93ec=this['editor']['plugins']['get']('Annotations'),_0x31c2ca=this['_suggestionToController']['get'](_0x38badc),_0x3b877e=_0x31c2ca['view'],_0x30535c=_0x4d93ec['getByInnerView'](_0x3b877e);_0x410d87['_unbindEditors'](_0x3b877e),_0x30535c&&_0x4d93ec['remove'](_0x30535c),this['_suggestionToController']['delete'](_0x38badc),this['_viewToController']['delete'](_0x3b877e),_0x31c2ca['destroy']();}['_updateController'](_0x523108){if(!_0x523108['isInContent']||!this['_suggestionToController']['has'](_0x523108))return;const _0x5bc628=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa6bb5c=this['_suggestionToController']['get'](_0x523108),_0x1dcb5a=_0x523108['getAllAdjacentSuggestions']();_0xa6bb5c['view']['descriptionParts']=_0x5bc628['descriptionFactory']['getDescriptions'](_0x1dcb5a);}['destroy'](){for(const _0x5c6387 of this['_suggestionToController']['keys']())this['_destroyController'](_0x5c6387);for(const _0x2c1a38 of this['_annotationViews']['values']())_0x2c1a38['mainView']['destroy']();super['destroy']();}}function ae(_0x5b3bd9){return'model'in _0x5b3bd9;}class k extends _0x1c9f3d{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x417982){this['editor']['plugins']['get'](p)['adapter']=_0x417982;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4412ec){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4412ec);}['getSuggestions']({skipNotAttached:_0x39baf6=!0x1,toJSON:_0x394145=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x39baf6,'toJSON':_0x394145});}['getSuggestion'](_0x30a0ef){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x30a0ef);}}const T=['Pagination'];class P extends _0x1c9f3d{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4d7b1a=this['editor'];if(_0x4d7b1a['config']['define']('trackChangesData.editorCreator',_0x5d2f09=>{const _0x1a424a=_0x4d7b1a['model']['document']['getRootNames']()['reduce']((_0x59bebd,_0x1c448a)=>(_0x59bebd[_0x1c448a]='',_0x59bebd),{});return _0x4d7b1a['constructor']['create'](_0x1a424a,_0x5d2f09);}),'function'!=typeof _0x4d7b1a['config']['get']('trackChangesData')['editorCreator'])throw new _0x109ba3('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a92dd){return N(this['editor'],!0x0,_0x4a92dd);}['getDataWithDiscardedSuggestions'](_0xbe918a){return N(this['editor'],!0x1,_0xbe918a);}}class D extends _0x1c9f3d{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x10be31){super(_0x10be31),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(_0x2c1d60){return void 0x0!==_0x2c1d60['getRootsAttributes'];}async function N(_0x3933ad,_0x3ab0be,_0x1dca90){const _0x522155=_0xf72f50(_0x3933ad,T);_0x522155['plugins']['push'](p,D),_0x522155['rootsAttributes']=v(_0x3933ad)?_0x3933ad['getRootsAttributes']():void 0x0;const _0x5d52a2=document['createDocumentFragment'](),_0x57ca1e=_0x3933ad['config']['get']('trackChangesData')['editorCreator'],_0x2eeee2=await _0x57ca1e(_0x522155,()=>function(_0x230ebb){const _0x23046f=document['createElement']('div');return _0x230ebb['appendChild'](_0x23046f),_0x23046f;}(_0x5d52a2));!function(_0x3520ca,_0x5e1b3a){const _0x1b00ac=_0x3520ca['model']['document']['getRootNames']()['reduce']((_0x5797bc,_0x28264a)=>(_0x5797bc[_0x28264a]=_0x3520ca['data']['get']({'rootName':_0x28264a}),_0x5797bc),{}),_0xacc52f=_0x3520ca['plugins']['get']('Users')['users']['map'](_0x29015a=>({'id':_0x29015a['id'],'name':_0x29015a['name']})),_0x19827f=_0x3520ca['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x241088=_0x3520ca['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x245377=_0x5e1b3a['plugins']['get']('Users'),_0x4f4823=_0x5e1b3a['plugins']['get']('TrackChangesEditing'),_0x4f7fc4=_0x5e1b3a['plugins']['get']('CommentsRepository');for(const _0x295977 of _0xacc52f)_0x245377['getUser'](_0x295977['id'])||_0x245377['addUser'](_0x295977);_0x245377['me']||_0x245377['useAnonymousUser']();for(const _0xcc5fad of _0x241088)_0x4f7fc4['addCommentThread'](_0xcc5fad);for(const _0x583ab7 of _0x19827f)_0x4f4823['addSuggestionData'](_0x583ab7);_0x5e1b3a['data']['set'](_0x1b00ac);}(_0x3933ad,_0x2eeee2),_0x2eeee2['execute'](_0x3ab0be?'acceptAllSuggestions':'discardAllSuggestions');const _0x242124=v(_0x2eeee2)?_0x2eeee2['getFullData'](_0x1dca90):_0x2eeee2['data']['get'](_0x1dca90);return await _0x2eeee2['destroy'](),_0x242124;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x49ae3f,PendingActions as _0x3e3612,icons as _0x485baa}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x49285b,ObservableMixin as _0xb21443,uid as _0x1fbc14,insertToPriorityArray as _0x3ba332,priorities as _0x4c1ca9,logWarning as _0x2998c4,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x303f18,View as _0x261f24,ButtonView as _0x3d5a54,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4d18e0,hashObject as _0x4fd40e,surroundingMarkersDetector as _0x2c279a,trimHtml as _0x17e6b9,UserView as _0x2bdf72,getDateTimeFormatter as _0x4bf86e,getAllMarkersDomElementsSorted as _0x2ec01c,sanitizeEditorConfig as _0x59f65b}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x20c459,LiveRange as _0x12eb8f,LivePosition as _0x52627c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x1087f0,toWidget as _0x40c242}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x475ae7,set as _0x553905,isEqual as _0x2d0ef4,unset as _0x3cc998,omit as Bt}from'lodash-es';import{Delete as _0x28e708,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1ad3d6,ShiftEnter as _0x2a5649}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x3323f8,_0x5ac030){super(_0x3323f8),this['_enabledCommands']=_0x5ac030,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 _0x33a693 of this['editor']['commands']['commands']())_0x33a693['affectsData']&&!this['_enabledCommands']['has'](_0x33a693)&&_0x33a693['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x55c372 of this['editor']['commands']['commands']())_0x55c372['affectsData']&&!this['_enabledCommands']['has'](_0x55c372)&&_0x55c372['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x384d71,_0x35a97b){super(_0x384d71),this['_suggestions']=_0x35a97b,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x53efd3){const _0x2e22b7=this['_suggestions']['get'](_0x53efd3);if(!_0x2e22b7)throw new _0x49285b('track-changes-accept-suggestion-not-found',this);const _0x44a99a=_0x2e22b7['getRanges']();this['editor']['model']['canEditAt'](_0x44a99a)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x2e22b7);}}class B extends ts{['_suggestions'];constructor(_0x60f0b1,_0x4b82aa){super(_0x60f0b1),this['_suggestions']=_0x4b82aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x42f933){const _0x296d8a=this['_suggestions']['get'](_0x42f933);if(!_0x296d8a)throw new _0x49285b('track-changes-discard-suggestion-not-found',this);const _0x3ba005=_0x296d8a['getRanges']();this['editor']['model']['canEditAt'](_0x3ba005)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x296d8a);}}function ss(_0x1a3b87){return _0x1a3b87['sort']((_0xd96f12,_0x477ffd)=>'deletion'==_0xd96f12['type']&&'deletion'!=_0x477ffd['type']?-0x1:'deletion'!=_0xd96f12['type']&&'deletion'==_0x477ffd['type']?0x1:0x0);}function to(_0x54816e,_0x3c2f71){let _0x9324fc,_0x58749f=0x0;const _0x26698b=[],_0x2e25f4=_0x3c2f71['schema'];for(;_0x58749f<_0x54816e['length'];){const _0x3614de=_0x54816e[_0x58749f],_0xecebf7=_0x54816e[_0x58749f+0x1];_0x9324fc||(_0x9324fc=_0x3c2f71['createPositionBefore'](_0x3614de)),co(_0x3c2f71,_0x3614de,_0xecebf7)||(_0x26698b['push'](_0x3c2f71['createRange'](_0x9324fc,_0x2e25f4['isObject'](_0x3614de)?_0x3c2f71['createPositionAfter'](_0x3614de):_0x3c2f71['createPositionAt'](_0x3614de,'end'))),_0x9324fc=null),_0x58749f++;}return _0x26698b;}function co(_0x35c7ce,_0x1681e3,_0x4729fc){if(!_0x4729fc)return!0x1;const _0x5e32f4=_0x35c7ce['createPositionAfter'](_0x1681e3),_0x4b84fa=_0x35c7ce['createPositionBefore'](_0x4729fc);return _0x5e32f4['isTouching'](_0x4b84fa);}function rs(_0x2f4709,_0xcd1e8e,_0x50be1e){for(;_0x50be1e['length'];){const _0x31f681=_0x50be1e['splice'](0x0,0x64);_0x2f4709['change'](()=>{for(const _0x8b4052 of _0x31f681)_0x8b4052['isInContent']&&_0xcd1e8e['execute'](_0x8b4052['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5440ea,_0x43a2c0,_0x336c34){super(_0x5440ea),this['_command']=_0x43a2c0,this['_suggestions']=_0x336c34,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x157b52=Array['from'](this['_suggestions']['values']())['some'](_0x4b4d77=>_0x4b4d77['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x157b52;}['execute'](){const _0x306c24=ss(Array['from'](this['_suggestions']['values']()));for(const _0x3245dd of _0x306c24){const _0x292962=_0x3245dd['getRanges']();if(!this['editor']['model']['canEditAt'](_0x292962))return;}rs(this['editor']['model'],this['_command'],_0x306c24);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x223c5e,_0x558183,_0x17f0e7){super(_0x223c5e),this['_command']=_0x558183,this['_suggestions']=_0x17f0e7,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x333527=this['editor']['model']['document']['selection'],_0x2e9776=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x21d629,_0x46820a){const _0x2a187d=Array['from'](_0x21d629['getRanges']()),_0x498ceb=new Set();for(const _0x28c524 of _0x46820a)if(_0x28c524['isInContent']){for(const _0x5e5824 of _0x2a187d)for(const _0x2dbcde of _0x28c524['getRanges']())(_0x5e5824['isIntersecting'](_0x2dbcde)||_0x21d629['isCollapsed']&&!_0x28c524['isMultiRange']&&_0x28c524['next']&&_0x2dbcde['end']['isTouching'](_0x5e5824['start']))&&_0x498ceb['add'](_0x28c524);}return _0x498ceb;}(_0x333527,_0x2e9776),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x36562e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x521e9a of _0x36562e){const _0x560b7d=_0x521e9a['getRanges']();if(!this['editor']['model']['canEditAt'](_0x560b7d))return;}rs(this['editor']['model'],this['_command'],_0x36562e);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0xb21443(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2e5296,_0x197d36){super(),this['id']=_0x197d36['id'],this['type']=_0x197d36['type'],this['subType']=_0x197d36['subType']||null,this['author']=_0x197d36['author'],this['creator']=_0x197d36['creator']||_0x197d36['author'],this['isExternal']=Boolean(_0x197d36['attributes']&&_0x197d36['attributes']['@external']),this['data']=null,this['_model']=_0x2e5296,this['_onAccept']=_0x197d36['onAccept'],this['_onDiscard']=_0x197d36['onDiscard'],this['_onAttributesChange']=_0x197d36['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x197d36['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 _0x3137e1=this;for(;_0x3137e1['previous'];)_0x3137e1=_0x3137e1['previous'];return _0x3137e1;}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'](_0x58df98){this['_markerNames']['add'](_0x58df98);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x1005a4=>this['_model']['markers']['get'](_0x1005a4))['filter'](_0x13ef60=>_0x13ef60);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x47fb46=>{for(const _0x287aa1 of this['getMarkers']())_0x47fb46['removeMarker'](_0x287aa1);}),this['_markerNames']['clear']();}['removeMarker'](_0x6aba44){this['_model']['change'](_0x464f2b=>{_0x464f2b['removeMarker'](_0x6aba44);}),this['_markerNames']['delete'](_0x6aba44);}['addRange'](_0x41071){const _0x5e28a5='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5e28a5),this['_model']['change'](_0x1374ba=>{_0x1374ba['addMarker'](_0x5e28a5,{'range':_0x41071,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3e4697){for(const _0x58dd94 of this['getRanges']())if(_0x58dd94['isIntersecting'](_0x3e4697))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x7120bb=>_0x7120bb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x32a9f2,_0x35a3e6)=>[..._0x32a9f2,..._0x35a3e6['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x37ac92=this['getRanges']();if(0x1!=_0x37ac92['length'])return null;const _0x7f7d0b=_0x37ac92[0x0],_0x884f1f=_0x7f7d0b['start']['nodeAfter'],_0x7f05a0=_0x7f7d0b['end']['nodeBefore'];return _0x884f1f instanceof _0x20c459?_0x884f1f!=_0x7f05a0?null:_0x884f1f: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 _0x2560e6=[];let _0x5145fe=this['head'];for(;_0x5145fe;)_0x2560e6['push'](_0x5145fe),_0x5145fe=_0x5145fe['next'];return _0x2560e6;}['setAttribute'](_0x742ea0,_0x5ddb7d){const _0x245e8c=_0x475ae7(this['attributes']);_0x553905(_0x245e8c,_0x742ea0,_0x5ddb7d),_0x2d0ef4(_0x245e8c,this['attributes'])||(this['attributes']=_0x245e8c,this['_onAttributesChange'](_0x245e8c));}['removeAttribute'](_0x3b590e){const _0x5b495c=_0x475ae7(this['attributes']);_0x3cc998(_0x5b495c,_0x3b590e),_0x2d0ef4(_0x5b495c,this['attributes'])||(this['attributes']=_0x5b495c,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 _0x1fbc14()['substr'](0x1,0x5);}}function o(_0x23eb9c,_0x4fc64a,_0x577822){const t=_0x23eb9c['t'];switch(_0x4fc64a){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',_0x577822);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x577822);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x577822);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x577822);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x577822);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',_0x577822);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x577822);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',_0x577822);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x577822);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x577822);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x577822);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x577822);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x577822);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x577822);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x577822);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x577822);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x577822);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x577822);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x577822);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x577822);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x577822);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x577822);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x577822);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'},_0x577822);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x577822);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x577822);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x577822);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x577822);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x577822);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'},_0x577822);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x577822);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x577822);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x577822);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x577822);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'},_0x577822);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x577822);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'},_0x577822);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'},_0x577822);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x577822);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'},_0x577822);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x577822);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'},_0x577822);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x577822);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x577822);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});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'},_0x577822);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'},_0x577822);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});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.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x4fc64a;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x19f4b3,_0x46ed3c){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x19f4b3,this['_locale']=_0x46ed3c;}['getDescriptions'](_0x10fae7){const _0x27f4be=[],_0x101527=new Set(),_0x130594=new Set();for(let _0x163e25=0x0;_0x163e25<_0x10fae7['length'];_0x163e25++){const _0x2cf803=_0x10fae7[_0x163e25];if(!_0x2cf803['isInContent'])continue;const _0x14e1a0=this['_handleCustomCallbackDescription'](_0x2cf803);if(_0x14e1a0){if(null!=_0x2cf803['subType']){if(_0x101527['has'](_0x2cf803['subType']))continue;_0x101527['add'](_0x2cf803['subType']);}_0x27f4be['push'](_0x14e1a0);}else{if('attribute'!=_0x2cf803['type'])'insertion'!=_0x2cf803['type']&&'deletion'!=_0x2cf803['type']||this['_handleInsertRemoveSuggestionDescription'](_0x27f4be,_0x2cf803,_0x10fae7[_0x163e25+0x1]);else{const _0x526830=_0x2cf803['data']['key'];if(_0x130594['has'](_0x526830))continue;_0x130594['add'](_0x2cf803['data']['key']),_0x526830==m?this['_handleRenameSuggestionDescription'](_0x27f4be,_0x2cf803):this['_handleAttributeSuggestionDescription'](_0x27f4be,_0x2cf803);}}}return this['_resolveDescriptionItems'](_0x27f4be);}['registerDescriptionCallback'](_0x232679){this['_customCallbacks']['push'](_0x232679);}['registerElementLabel'](_0x34d534,_0x4a1093,_0x138ac0=_0x4c1ca9['normal']){'function'==typeof _0x34d534?_0x3ba332(this['_itemLabelsCallbacks'],{'matchingCallback':_0x34d534,'label':_0x4a1093,'priority':_0x138ac0}):this['_itemLabels']['set'](_0x34d534,_0x4a1093);}['registerAttributeLabel'](_0x3957cb,_0x52666c){this['_attributeLabels']['set'](_0x3957cb,_0x52666c);}['getItemLabel'](_0x16da96,_0x39a1c8=0x1){let _0x258391;for(const _0x2dcf25 of this['_itemLabelsCallbacks'])if(_0x2dcf25['matchingCallback'](_0x16da96)){_0x258391=_0x2dcf25['label'];break;}return _0x258391||(_0x258391=this['_itemLabels']['get'](_0x16da96['name'])),_0x258391?_0x258391(_0x39a1c8):0x1!==_0x39a1c8?_0x39a1c8+'\x20'+_0x16da96['name']+'s':''+_0x16da96['name'];}['_addDescriptionItems'](_0x1ce432,_0x2d00c5){const _0x25eaed=_0x2d00c5['getFirstRange']()['getWalker'](),_0x2710af='insertion'==_0x2d00c5['type']?'add':'remove';for(const _0x2302fb of _0x25eaed){const _0x100b00=_0x2302fb['item'],_0x3ddd48=_0x1ce432[_0x1ce432['length']-0x1];if(_0x100b00['is']('$textProxy'))_0x3ddd48&&_0x3ddd48['type']['indexOf']('Container')>-0x1&&_0x1ce432['pop'](),_0x3ddd48&&'text'==_0x3ddd48['type']?_0x3ddd48[_0x2710af]+=_0x100b00['data']:_0x1ce432['push']({'type':'text','add':'add'==_0x2710af?_0x100b00['data']:'','remove':'remove'==_0x2710af?_0x100b00['data']:''});else{if(this['_schema']['isObject'](_0x100b00)){const _0x32ffd5=_0x100b00;if(_0x3ddd48&&_0x3ddd48['type']['indexOf']('Container')>-0x1&&_0x1ce432['pop'](),'elementEnd'==_0x2302fb['type'])continue;_0x3ddd48&&_0x3ddd48['type']==_0x2710af+'Object'&&_0x3ddd48['element']['name']==_0x32ffd5['name']?_0x3ddd48['quantity']++:_0x1ce432['push']({'type':_0x2710af+'Object','element':_0x32ffd5,'quantity':0x1}),_0x25eaed['skip'](_0x1ac333=>!('elementEnd'==_0x1ac333['type']&&_0x1ac333['item']==_0x100b00));}else{if(this['_schema']['checkChild'](_0x100b00,'$text')||_0x100b00['is']('element','softBreak')){const _0xc5c2db=_0x100b00;if('add'==_0x2710af&&'elementStart'==_0x2302fb['type']||'remove'==_0x2710af&&'elementEnd'==_0x2302fb['type'])continue;if(_0x3ddd48&&-0x1==_0x3ddd48['type']['indexOf']('Container')){'text'==_0x3ddd48['type']&&(_0x3ddd48[_0x2710af]+='\x0a');continue;}let _0x2a7d60;if(_0x2a7d60='add'==_0x2710af?_0xc5c2db['nextSibling']&&!this['_schema']['isObject'](_0xc5c2db['nextSibling'])?_0xc5c2db['nextSibling']:null:_0xc5c2db['previousSibling']&&!this['_schema']['isObject'](_0xc5c2db['previousSibling'])?_0xc5c2db['previousSibling']:null,_0xc5c2db['isEmpty']||_0x2a7d60&&_0x2a7d60['isEmpty']){const _0x235bd4=_0x2a7d60&&_0x2a7d60['isEmpty']?_0x2a7d60:_0xc5c2db;_0x3ddd48&&_0x3ddd48['type']==_0x2710af+'EmptyContainer'&&_0x3ddd48['element']['name']==_0x235bd4['name']?_0x3ddd48['quantity']++:_0x1ce432['push']({'type':_0x2710af+'EmptyContainer','element':_0x235bd4,'quantity':0x1});}else _0x1ce432['push']({'type':_0x2710af+'Container','element':_0xc5c2db});}}}}}['_resolveDescriptionItems'](_0x338ae6){const _0x8f0f7a=this['_locale'],_0xe85eb8=[],_0x21e48f=[],_0x4ba43a=[];for(const _0x5b76c7 of _0x338ae6)switch(_0x5b76c7['type']){case'text':if(_0x5b76c7['add']=_0x5b76c7['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x5b76c7['remove']=_0x5b76c7['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x5b76c7['add']&&''!=_0x5b76c7['remove']){_0xe85eb8['push']({'type':'replace','content':o(_0x8f0f7a,'REPLACE_TEXT',['\x22'+_0x5b76c7['remove']+'\x22','\x22'+_0x5b76c7['add']+'\x22'])});continue;}if(null!=_0x5b76c7['add']['match'](/^ +$/)){_0xe85eb8['push']({'type':'insertion','content':o(_0x8f0f7a,'*Insert:*\x20%0',o(_0x8f0f7a,'ELEMENT_SPACE',_0x5b76c7['add']['length']))});continue;}if(null!=_0x5b76c7['remove']['match'](/^ +$/)){_0xe85eb8['push']({'type':'deletion','content':o(_0x8f0f7a,'*Remove:*\x20%0',o(_0x8f0f7a,'ELEMENT_SPACE',_0x5b76c7['remove']['length']))});continue;}if(''!=_0x5b76c7['add']){_0xe85eb8['push']({'type':'insertion','content':o(_0x8f0f7a,'*Insert:*\x20%0','\x22'+_0x5b76c7['add']+'\x22')});continue;}_0xe85eb8['push']({'type':'deletion','content':o(_0x8f0f7a,'*Remove:*\x20%0','\x22'+_0x5b76c7['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xe85eb8['push']({'type':'insertion','content':o(_0x8f0f7a,'*Insert:*\x20%0',this['getItemLabel'](_0x5b76c7['element'],_0x5b76c7['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xe85eb8['push']({'type':'deletion','content':o(_0x8f0f7a,'*Remove:*\x20%0',this['getItemLabel'](_0x5b76c7['element'],_0x5b76c7['quantity']))});continue;case'addContainer':_0xe85eb8['push']({'type':'insertion','content':o(_0x8f0f7a,'*Split:*\x20%0',this['getItemLabel'](_0x5b76c7['element'],_0x5b76c7['quantity']))});continue;case'removeContainer':_0xe85eb8['push']({'type':'deletion','content':o(_0x8f0f7a,'*Merge:*\x20%0',this['getItemLabel'](_0x5b76c7['element'],_0x5b76c7['quantity']))});continue;case'addFormat':_0x21e48f['push'](_0x5b76c7['key']);continue;case'removeFormat':_0x4ba43a['push'](_0x5b76c7['key']);continue;default:_0xe85eb8['push'](_0x5b76c7);}if(_0x21e48f['length']){const _0x12bbc7=_0x21e48f['map'](_0xcca773=>this['_attributeLabels']['has'](_0xcca773)?this['_attributeLabels']['get'](_0xcca773):_0xcca773)['join'](',\x20');_0xe85eb8['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x12bbc7)});}if(_0x4ba43a['length']){const _0x144a50=_0x4ba43a['map'](_0x2da950=>this['_attributeLabels']['has'](_0x2da950)?this['_attributeLabels']['get'](_0x2da950):_0x2da950)['join'](',\x20');_0xe85eb8['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x144a50)});}return _0xe85eb8;}['_handleCustomCallbackDescription'](_0x296eda){for(const _0x18512b of this['_customCallbacks']){const _0x1349d5=_0x18512b(_0x296eda);if(_0x1349d5&&'type'in _0x1349d5)return _0x1349d5;}}['_handleAttributeSuggestionDescription'](_0x2289ff,_0x5e970b){const _0x50bb5a=_0x5e970b['data'],_0x5b3941=void 0x0===_0x50bb5a['newValue']?'removeFormat':'addFormat';_0x2289ff['push']({'type':_0x5b3941,'key':_0x50bb5a['key']});}['_handleRenameSuggestionDescription'](_0x1d78a6,_0x19b093){_0x1d78a6['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x19b093['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x46b342,_0x5ff6ed,_0x585fd3){if(this['_addDescriptionItems'](_0x46b342,_0x5ff6ed),_0x585fd3&&_0x585fd3['getFirstRange']()&&!_0x5ff6ed['getFirstRange']()['end']['isEqual'](_0x585fd3['getFirstRange']()['start'])){const _0x3e984a=_0x46b342[_0x46b342['length']-0x1],_0x46dbea='insertion'==_0x5ff6ed['type']?'add':'remove';_0x3e984a&&'text'==_0x3e984a['type']&&(_0x3e984a[_0x46dbea]+='\x0a');}}}class E extends _0x49ae3f{['afterInit'](){const _0x51dd53=this['editor'],_0x1339df=_0x51dd53['plugins']['get']('TrackChangesEditing');_0x51dd53['commands']['get']('showAIAssistant')&&_0x1339df['enableCommand']('showAIAssistant');}}class V extends _0x49ae3f{['afterInit'](){const _0x4723d7=this['editor'],_0x3ea093=_0x4723d7['locale'];if(!_0x4723d7['plugins']['has']('AlignmentEditing'))return;const _0x12a424=_0x4723d7['plugins']['get']('TrackChangesEditing');_0x12a424['enableDefaultAttributesIntegration']('alignment'),_0x12a424['registerBlockAttribute']('alignment'),_0x12a424['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ea093,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b2cfb=this['editor'],_0x279b9b=_0x3b2cfb['locale'];_0x3b2cfb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1aba69=>{if('formatBlock'!=_0x1aba69['type'])return;const {data:_0x5ab3d2}=_0x1aba69;if(_0x5ab3d2&&'alignment'==_0x5ab3d2['commandName']){const _0x43aab1=_0x5ab3d2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x279b9b,'*Format:*\x20%0',function(_0x1b52ef){switch(_0x1b52ef){case'left':return o(_0x279b9b,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x279b9b,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x279b9b,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x279b9b,'FORMAT_JUSTIFY_TEXT');}}(_0x43aab1))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x49ae3f{['afterInit'](){const _0x536652=this['editor'],_0x50ec4b=_0x536652['plugins']['get']('TrackChangesEditing'),_0x2c4e2e=_0x536652['locale'];for(const _0x97accd of ti){if(!_0x536652['plugins']['has'](_0x97accd))continue;const _0x402220=_0x97accd['slice'](0x0,-0x7)['toLowerCase'](),_0x4198ae='FORMAT_'+_0x402220['toUpperCase']();_0x50ec4b['enableDefaultAttributesIntegration'](_0x402220),_0x50ec4b['registerInlineAttribute'](_0x402220),_0x50ec4b['descriptionFactory']['registerAttributeLabel'](_0x402220,o(_0x2c4e2e,_0x4198ae));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x199580=this['editor'],_0x192560=_0x199580['locale'],_0xe9667a=_0x199580['plugins']['get']('TrackChangesEditing');function _0x13dc44(_0x15cb6e,_0x343400){_0xe9667a['descriptionFactory']['registerDescriptionCallback'](_0x35b0f0=>{if('formatInline'!=_0x35b0f0['type'])return;const {data:_0x5bbeeb}=_0x35b0f0;return _0x5bbeeb&&_0x5bbeeb['commandName']===_0x15cb6e?_0x5bbeeb['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x192560,'*Format:*\x20%0',_0x343400)}:{'type':'format','content':o(_0x192560,'*Remove\x20format:*\x20%0',_0x343400)}:void 0x0;});}_0x13dc44('bold',o(_0x192560,'FORMAT_BOLD')),_0x13dc44('italic',o(_0x192560,'FORMAT_ITALIC')),_0x13dc44('underline',o(_0x192560,'FORMAT_UNDERLINE')),_0x13dc44('code',o(_0x192560,'FORMAT_CODE')),_0x13dc44('strikethrough',o(_0x192560,'FORMAT_STRIKETHROUGH')),_0x13dc44('subscript',o(_0x192560,'FORMAT_SUBSCRIPT')),_0x13dc44('superscript',o(_0x192560,'FORMAT_SUPERSCRIPT'));}}class O extends _0x49ae3f{['afterInit'](){const _0x1d2c68=this['editor'],_0x53e47e=_0x1d2c68['locale'];if(!_0x1d2c68['plugins']['has']('BlockQuoteEditing'))return;const _0x26b25b=_0x1d2c68['plugins']['get']('TrackChangesEditing'),_0x2d33ca=this['editor']['commands']['get']('blockQuote');_0x26b25b['enableCommand']('blockQuote',(_0x82dac3,_0x59b0bb={})=>{const _0x2907cb=this['editor']['model']['document']['selection'],_0x3f92c1=_0x59b0bb&&void 0x0!==_0x59b0bb['forceValue']?_0x59b0bb['forceValue']:!_0x2d33ca['value'];let _0x567b9c=[];if(_0x3f92c1){const _0x1276d4=Array['from'](_0x2907cb['getSelectedBlocks']())['filter'](_0x3c7c9a=>oo(_0x3c7c9a)||function(_0xd7e928,_0x355579){const _0x342033=_0x355579['checkChild'](_0xd7e928['parent'],'blockQuote'),_0x124f0d=_0x355579['checkChild'](['$root','blockQuote'],_0xd7e928);return _0x342033&&_0x124f0d;}(_0x3c7c9a,this['editor']['model']['schema']));_0x567b9c=to(_0x1276d4,_0x1d2c68['model']);}else{const _0x2cfbe7=Array['from'](_0x2907cb['getSelectedBlocks']())['filter'](_0x4e8404=>oo(_0x4e8404));_0x567b9c=to(_0x2cfbe7,_0x1d2c68['model']);}_0x1d2c68['model']['change'](()=>{for(const _0x894db9 of _0x567b9c)_0x26b25b['markBlockFormat'](_0x894db9,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x3f92c1}]});});}),_0x26b25b['descriptionFactory']['registerDescriptionCallback'](_0x3d2143=>{const {data:_0x29bb40}=_0x3d2143;if(_0x29bb40&&'blockQuote'==_0x29bb40['commandName']){const _0x36b6c5=o(_0x53e47e,'ELEMENT_BLOCK_QUOTE');return _0x29bb40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x53e47e,'*Set\x20format:*\x20%0',_0x36b6c5)}:{'type':'format','content':o(_0x53e47e,'*Remove\x20format:*\x20%0',_0x36b6c5)};}});}}function oo(_0x15351a){return'blockQuote'==_0x15351a['parent']['name'];}class G extends _0x49ae3f{['afterInit'](){const _0x2619f7=this['editor'];_0x2619f7['plugins']['has']('CaseChange')&&(_0x2619f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2619f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2619f7['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x49ae3f{['afterInit'](){const _0x2c31ec=this['editor'];_0x2c31ec['commands']['get']('ckbox')&&_0x2c31ec['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x49ae3f{['afterInit'](){const _0x402eaa=this['editor'];if(!_0x402eaa['plugins']['has']('CodeBlock'))return;const _0x4a90a1=_0x402eaa['plugins']['get']('TrackChangesEditing'),_0x1c7f4f=_0x402eaa['locale'],_0x4b27e2=_0x402eaa['config']['get']('codeBlock')['languages'],_0x5e5fe3=_0x402eaa['commands']['get']('codeBlock');_0x4a90a1['enableCommand']('indentCodeBlock'),_0x4a90a1['enableCommand']('outdentCodeBlock'),_0x4a90a1['enableCommand']('codeBlock',(_0x4cc9a4,_0x135ae7={})=>{const _0x23be45=_0x402eaa['model'],_0x5b62f6=_0x402eaa['model']['document']['selection'],_0x5e1bc2=_0x135ae7&&void 0x0!==_0x135ae7['forceValue']?_0x135ae7['forceValue']:!_0x5e5fe3['value'];let _0x36068d;_0x135ae7['language']||(_0x135ae7['language']=_0x4b27e2[0x0]['language']),_0x36068d=_0x5e1bc2?Array['from'](_0x5b62f6['getSelectedBlocks']())['filter'](_0x229af0=>eo(_0x229af0)||function(_0x8bfcff,_0x51724d){if(_0x8bfcff['is']('rootElement')||_0x51724d['isLimit'](_0x8bfcff))return!0x1;return _0x51724d['checkChild'](_0x8bfcff['parent'],'codeBlock');}(_0x229af0,_0x23be45['schema'])):Array['from'](_0x5b62f6['getSelectedBlocks']())['filter'](_0x571b16=>eo(_0x571b16));const _0x5a6c11=to(_0x36068d,_0x23be45);_0x23be45['change'](()=>{for(const _0x1bca87 of _0x5a6c11)_0x4a90a1['markBlockFormat'](_0x1bca87,{'commandName':'codeBlock','commandParams':[{..._0x135ae7,'forceValue':_0x5e1bc2}],'formatGroupId':'blockName'});});}),(_0x4a90a1['descriptionFactory']['registerElementLabel']('codeBlock',_0x489a62=>o(_0x1c7f4f,'ELEMENT_CODE_BLOCK',_0x489a62)),_0x4a90a1['descriptionFactory']['registerDescriptionCallback'](_0x3271b2=>{if('formatBlock'!=_0x3271b2['type'])return;const _0x1a8599=_0x1c7f4f['t'],{data:_0x2b4471}=_0x3271b2;if(!_0x2b4471||'codeBlock'!=_0x2b4471['commandName'])return;const _0x478e59=_0x2b4471['commandParams'][0x0]['language'],_0x1a8e99=_0x1a8599(_0x4b27e2['find'](_0x42a149=>_0x42a149['language']===_0x478e59)['label'])['toLowerCase']();return _0x2b4471['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c7f4f,'*Set\x20format:*\x20%0',o(_0x1c7f4f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1a8e99+')')}:{'type':'format','content':o(_0x1c7f4f,'*Remove\x20format:*\x20%0',o(_0x1c7f4f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x249af6){return'codeBlock'==_0x249af6['name'];}class H extends _0x49ae3f{['afterInit'](){const _0x6e06ec=this['editor'];if(!_0x6e06ec['plugins']['has']('CommentsEditing'))return;_0x6e06ec['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x31b43b,_0x2c9b7a,_0x387edf){const _0xb49bf5=[];for(const _0x53a83b of _0x2c9b7a['getItems']())_0x53a83b['hasAttribute'](_0x31b43b)&&_0xb49bf5['push'](_0x387edf['createRangeOn'](_0x53a83b));return _0xb49bf5;}function _e(_0x2edff8,_0x124a35,{showActiveMarker:_0x36e4b2=!0x0}={}){const _0x2301e3=_0x2edff8['plugins']['get']('TrackChangesEditing');return(_0x683b89,_0x54d183,_0x48dfcf)=>{if(!_0x48dfcf['consumable']['test'](_0x54d183['markerRange'],_0x683b89['name']))return;const _0x3e10cb=_0x54d183['markerRange']['getWalker'](),_0x17dbab=_0x54d183['markerRange']['start'],_0xbb59e7=_0x2edff8['model']['schema'];let _0x4f396d=null,_0x5591c9=null,_0x2bd26d=!0x1,_0x36e264=!0x1;for(const _0x1445f1 of _0x3e10cb){const _0x3c7af9=_0x1445f1['item'];_0x2bd26d=_0x2bd26d||_0xbb59e7['isContent'](_0x3c7af9);const _0x14a16b=_0x48dfcf['mapper']['toViewElement'](_0x3c7af9);if(_0x14a16b&&_0x14a16b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1445f1['type']&&(_0xbb59e7['isBlock'](_0x3c7af9)&&!_0xbb59e7['isLimit'](_0x3c7af9)&&(_0x3c7af9['nextSibling']||_0x17dbab['isAtEnd']?_0x4f396d&&_0x4f396d['parent']==_0x3c7af9||(_0x4f396d=_0x3c7af9,_0x1f9b95(_0x1445f1['previousPosition']),_0x36e264=!0x0):_0x5591c9=_0x5591c9||_0x1445f1['previousPosition']));}function _0x1f9b95(_0x4e3ba4){const _0x3fd612=_0x48dfcf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x124a35}),_0x4b4633=_0x48dfcf['mapper']['toViewPosition'](_0x4e3ba4);_0x36e4b2&&_0x2301e3['activeMarkers']['includes'](_0x54d183['markerName'])&&_0x48dfcf['writer']['addClass']('ck-suggestion-marker--active',_0x3fd612),_0x48dfcf['writer']['insert'](_0x4b4633,_0x3fd612),_0x48dfcf['mapper']['bindElementToMarker'](_0x3fd612,_0x54d183['markerName']);}_0x2bd26d||_0x36e264||!_0x5591c9||_0x1f9b95(_0x5591c9);};}class q extends _0x49ae3f{static get['requires'](){return[_0x28e708];}['init'](){const _0x1148b7=this['editor'],_0x16b0dc=_0x1148b7['plugins']['get']('TrackChangesEditing');_0x16b0dc['enableCommand']('delete');const _0x373dd2=_0x1148b7['commands']['get']('deleteForward');_0x16b0dc['enableCommand']('deleteForward',(_0x590d6f,_0x3cc45e={})=>{const _0x3843db=_0x1148b7['model']['createSelection'](_0x1148b7['model']['document']['selection']);_0x3843db['isCollapsed']&&_0x1148b7['model']['modifySelection'](_0x3843db,{'direction':'forward','unit':_0x3cc45e['unit']});const _0x4fe6d8=_0x3843db['getFirstRange'](),_0x243f11=_0x12eb8f['fromRange'](_0x4fe6d8);let _0x1a503e;_0x590d6f(_0x3cc45e),_0x1a503e='$graveyard'==_0x243f11['root']['rootName']?_0x1148b7['model']['createRange'](_0x4fe6d8['start']):_0x1148b7['model']['createRange'](_0x243f11['start'],_0x243f11['end']),_0x243f11['detach'](),_0x1148b7['model']['enqueueChange'](_0x373dd2['buffer']['batch'],_0x51fcbb=>{_0x373dd2['buffer']['lock'](),_0x51fcbb['setSelection'](_0x51fcbb['createRange'](_0x1a503e['end'])),_0x373dd2['buffer']['unlock']();});}),_0x1148b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1148b7,'merge'),{'priority':'high'}),_0x1148b7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x169d11,_0x55a240,_0xb651dc)=>{_0xb651dc['options']['showSuggestionHighlights']&&_e(_0x1148b7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x169d11,_0x55a240,_0xb651dc);},{'priority':'high'}),_0x1148b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x4fb442,_0x583863,_0x6818d2)=>{const _0xde8d15=_0x6818d2['mapper']['markerNameToElements'](_0x583863['markerName']);if(_0xde8d15){for(const _0x30d69c of _0xde8d15)_0x30d69c['is']('uiElement')&&(_0x6818d2['mapper']['unbindElementFromMarkerName'](_0x30d69c,_0x583863['markerName']),_0x6818d2['writer']['remove'](_0x30d69c));}},{'priority':'high'});}}class z extends _0x49ae3f{['afterInit'](){const _0x25a781=this['editor'];if(!_0x25a781['plugins']['has']('ListEditing'))return;const _0x1011ef=_0x25a781['locale'],_0xebb1aa=_0x25a781['plugins']['get']('TrackChangesEditing'),_0x1543ca=_0x25a781['plugins']['has']('TodoListEditing'),_0xfa558=!!_0x25a781['config']['get']('list.multiBlock');function _0x5b9eec(_0x5d48e1){return{'type':'format','content':''+o(_0x1011ef,'*Set\x20format:*\x20%0',_0x5d48e1)};}function _0x461cab(_0xcfad48){return{'type':'format','content':''+o(_0x1011ef,'*Remove\x20format:*\x20%0',_0xcfad48)};}_0xebb1aa['enableDefaultAttributesIntegration']('numberedList'),_0xebb1aa['enableDefaultAttributesIntegration']('bulletedList'),_0xebb1aa['enableDefaultAttributesIntegration']('customNumberedList'),_0xebb1aa['enableDefaultAttributesIntegration']('customBulletedList'),_0xebb1aa['enableDefaultAttributesIntegration']('indentList'),_0xebb1aa['enableDefaultAttributesIntegration']('outdentList'),_0xebb1aa['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xebb1aa['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xebb1aa['registerBlockAttribute']('listItemId'),_0xebb1aa['registerBlockAttribute']('listType'),_0xebb1aa['registerBlockAttribute']('listIndent'),_0xfa558&&(_0xebb1aa['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xebb1aa['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x1543ca&&(_0xebb1aa['enableDefaultAttributesIntegration']('todoList'),_0xebb1aa['enableDefaultAttributesIntegration']('checkTodoList'),_0xebb1aa['registerBlockAttribute']('todoListChecked'),_0xebb1aa['descriptionFactory']['registerDescriptionCallback'](_0x193f62=>{const {data:_0x3b6afb}=_0x193f62;if(_0x3b6afb&&'todoListChecked'==_0x3b6afb['key'])return{'type':'format','content':_0x3b6afb['newValue']?o(_0x1011ef,'*Check\x20item*'):o(_0x1011ef,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4a9e2e=>{if(_0x4a9e2e['batch']['isUndo'])return!0x1;let _0x15286a=!0x1;const _0x11b76d=_0xebb1aa['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fb114=>'todoListChecked'===_0xebb1aa['_getAttributeKey'](_0x2fb114));for(const _0xa09796 of _0x11b76d){'todo'!=_0xa09796['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xebb1aa['_findSuggestions'](_0xa09796['getFirstRange'](),'attribute')['find'](_0x1a8d92=>'listType'===_0xebb1aa['_getAttributeKey'](_0x1a8d92['suggestion']))||(_0x4a9e2e['removeMarker'](_0xa09796['getFirstMarker']()),_0x15286a=!0x0));}return _0x15286a;})),_0xebb1aa['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1011ef,'FORMAT_INDENT'));const _0x13a809={'type':'format','content':''};_0xebb1aa['descriptionFactory']['registerDescriptionCallback'](_0x4e440a=>{const {data:_0x5198c0}=_0x4e440a;if(!_0x5198c0||'listType'!=_0x5198c0['key'])return;let _0xb953e0=_0x4e440a['head'];for(;_0xb953e0;){if(_0xb953e0['data']&&(('listStyle'==_0xb953e0['data']['key']||'listMarkerStyle'==_0xb953e0['data']['key'])&&(_0xb953e0['data']['newValue']&&'default'!=_0xb953e0['data']['newValue']||'default'!=_0xb953e0['data']['oldValue']&&!_0x5198c0['newValue'])||!_0xfa558&&_0xb953e0['data']['key']==m))return _0x13a809;_0xb953e0=_0xb953e0['next'];}if(null==_0x5198c0['newValue'])switch(_0x5198c0['oldValue']){case'bulleted':return _0x461cab(o(_0x1011ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x461cab(o(_0x1011ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x461cab(o(_0x1011ef,'ELEMENT_TODO_LIST'));}switch(_0x5198c0['newValue']){case'bulleted':return _0x5b9eec(o(_0x1011ef,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x5b9eec(o(_0x1011ef,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x5b9eec(o(_0x1011ef,'ELEMENT_TODO_LIST'));}}),_0xebb1aa['descriptionFactory']['registerDescriptionCallback'](_0x328419=>{const {data:_0x1d4dcd}=_0x328419;if(_0x1d4dcd&&'listIndent'==_0x1d4dcd['key'])return null==_0x1d4dcd['newValue']||null==_0x1d4dcd['oldValue']&&0x0==_0x1d4dcd['newValue']?_0x13a809:void 0x0;}),_0xebb1aa['descriptionFactory']['registerDescriptionCallback'](_0x27a649=>{if('attribute'!=_0x27a649['type'])return;const {data:_0x51c6b4}=_0x27a649;if(!_0x51c6b4||'listItemId'!=_0x51c6b4['key'])return;const _0xf84992=le(_0x27a649);return'newValue'==_0xf84992?{'type':'format','content':o(_0x1011ef,'*Merge:*\x20list\x20item')}:'oldValue'==_0xf84992?{'type':'format','content':o(_0x1011ef,'*Split:*\x20list\x20item')}:_0x13a809;}),_0x25a781['model']['document']['registerPostFixer'](_0x5e4111=>this['listItemIdFixer'](_0x5e4111)),_0x25a781['model']['document']['registerPostFixer'](_0x563c63=>this['noTrackChangesFixer'](_0x563c63)),_0x25a781['model']['document']['registerPostFixer'](_0x3b710a=>this['assureChains'](_0x3b710a)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x569bb7){if(_0x569bb7['batch']['isUndo']||!_0x569bb7['batch']['isLocal'])return!0x1;let _0x1fbce5=!0x1;const _0x4eb76c=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2fbc1e=>_0x2fbc1e['data']&&'listItemId'==_0x2fbc1e['data']['key'])['filter'](_0x592adf=>_0x592adf['data']['newValue']&&_0x592adf['data']['oldValue']);for(const _0x17f7a0 of _0x4eb76c)le(_0x17f7a0)||(_0x569bb7['removeMarker'](_0x17f7a0['getFirstMarker']()),_0x1fbce5=!0x0);return _0x1fbce5;}['noTrackChangesFixer'](_0x24f656){if(_0x24f656['batch']['isUndo']||!_0x24f656['batch']['isLocal'])return!0x1;const _0x567e3f=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x567e3f['trackChangesCommand']['value'])return!0x1;let _0x1f307a=!0x1;const _0x4b02ae=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x16f99c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x27faea=>'attribute'==_0x27faea['type'])['filter'](_0x57fc5c=>_0x4b02ae['includes'](_0x57fc5c['attributeKey']));if(0x0==_0x16f99c['length'])return _0x1f307a;for(const _0x5ba11e of _0x16f99c){const _0x1f35e6=_0x567e3f['_findSuggestions'](_0x5ba11e['range'],'attribute')['filter'](_0x1dff34=>!_0x1dff34['meta']['isNextTo'])['map'](_0x10d6a2=>_0x10d6a2['suggestion'])['filter'](_0x512040=>{const _0x5eb3a6=_0x567e3f['_getAttributeKey'](_0x512040);return _0x4b02ae['includes'](_0x5eb3a6);});if(_0x1f35e6['length']){for(const _0x3ee268 of _0x1f35e6)_0x24f656['removeMarker'](_0x3ee268['getFirstMarker']());_0x1f307a=!0x0;}}return _0x1f307a;}['assureChains'](_0x191bad){if(_0x191bad['batch']['isUndo']||!_0x191bad['batch']['isLocal'])return!0x1;const _0x49471c=this['editor']['plugins']['get']('TrackChangesEditing');let _0x12aa98=!0x1;const _0x3a5ffd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x5e2e67 of _0x49471c['getSuggestions']({'skipNotAttached':!0x0})){const _0x374748=_0x49471c['_findSuggestions'](_0x5e2e67['getFirstRange'](),'attribute')['map'](_0x379dca=>_0x379dca['suggestion'])['filter'](_0x348b7f=>_0x348b7f['data']&&_0x3a5ffd['includes'](_0x348b7f['data']['key']));if(!_0x374748['length'])continue;const _0x2f198d=_0x374748[0x0]['head']['attributes']['groupId'];if(!_0x374748['every'](_0x2076d5=>_0x2076d5['attributes']['groupId']===_0x2f198d)){for(const _0x59bebf of _0x374748)_0x361d8b(_0x59bebf,_0x2f198d)&&(_0x12aa98=!0x0);}}return _0x12aa98;function _0x1dec7d(_0x5be74c,_0x5c49ec){for(const _0x2fb044 of _0x49471c['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x287ce2=>'attribute'==_0x287ce2['type']&&_0x287ce2['attributes']['groupId']==_0x5be74c))_0x2fb044['setAttribute']('groupId',_0x5c49ec);}function _0x361d8b(_0x4452ac,_0x4503c0){let _0x4e27ac=_0x4452ac['head'],_0x312d48=!0x1;for(;_0x4e27ac;)_0x4e27ac['attributes']['groupId']!=_0x4503c0&&(_0x1dec7d(_0x4e27ac['attributes']['groupId'],_0x4503c0),_0x4e27ac['setAttribute']('groupId',_0x4503c0),_0x312d48=!0x0),_0x4e27ac=_0x4e27ac['next'];return _0x312d48;}}['_supportLegacySuggestions'](){const _0x598c22=this['editor'],_0x5dcc4b=_0x598c22['locale'],_0x3eb318=_0x598c22['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3eb318['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x170a39,_0x45fdcf){const _0x5dce91=[];for(let _0x541d4c of _0x170a39)_0x541d4c['start']['nodeAfter']===_0x541d4c['end']['parent']&&(_0x541d4c=_0x598c22['model']['createRange'](_0x598c22['model']['createPositionAt'](_0x541d4c['start']['nodeAfter'],0x0))),_0x5dce91['push'](_0x541d4c);_0x598c22['model']['change'](_0x1ac003=>{const _0x485657=_0x598c22['model']['document']['selection'],_0x1f23e4=Array['from'](_0x485657['getRanges']())['map'](_0x109526=>_0x12eb8f['fromRange'](_0x109526));_0x1ac003['setSelection'](_0x5dce91),_0x598c22['commands']['get'](_0x45fdcf['commandName'])['refresh'](),_0x45fdcf['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x598c22['execute'](_0x45fdcf['commandName'],..._0x45fdcf['commandParams']),_0x1ac003['setSelection'](_0x1f23e4);for(const _0x431490 of _0x1f23e4)_0x431490['detach']();});}),_0x3eb318['descriptionFactory']['registerElementLabel'](function(_0x540665){const _0x2e00ca=!_0x598c22['model']['schema']['isObject'](_0x540665),_0x3e502d=_0x540665['previousSibling'],_0x4ec629=_0x540665['nextSibling'],_0xbc4302=_0x540665['getAttribute']('listItemId'),_0xddd080=!_0x3e502d||_0x3e502d['getAttribute']('listItemId')!==_0xbc4302,_0x5d8ae1=!_0x4ec629||_0x4ec629['getAttribute']('listItemId')!==_0xbc4302;return _0x2e00ca&&Boolean(_0xbc4302)&&_0xddd080&&_0x5d8ae1;},_0x4eaa31=>o(_0x5dcc4b,'ELEMENT_LIST_ITEM',_0x4eaa31));}['_registerLegacyDescription'](){const _0x452037=this['editor'],_0x982d8=_0x452037['locale'];function _0xa71022(_0x210432){const _0x57027f=_0x452037['commands']['get']('bulletedList')['value'],_0x4ec7cd=_0x452037['commands']['get']('numberedList')['value'];return'numberedList'===_0x210432?_0x57027f:_0x4ec7cd;}_0x452037['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x334b9b){if('formatBlock'!=_0x334b9b['type'])return;const {data:_0x542b27}=_0x334b9b;if(!_0x542b27)return;let _0x8c01bd,_0x4bb4b0,_0x5e1cac,_0x4413b2;switch(_0x542b27['commandName']){case'bulletedList':_0x5e1cac=_0x542b27['commandParams'][0x0]['forceValue'],_0x4413b2=_0xa71022(_0x542b27['commandName']),_0x8c01bd=_0x5e1cac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4413b2&&_0x452037['config']['get']('list.multiBlock')||(_0x8c01bd='*Change\x20to:*\x20%0'),_0x4bb4b0={'type':'format','content':o(_0x982d8,_0x8c01bd,o(_0x982d8,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x5e1cac=_0x542b27['commandParams'][0x0]['forceValue'],_0x4413b2=_0xa71022(_0x542b27['commandName']),_0x8c01bd=_0x5e1cac?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x4413b2&&_0x452037['config']['get']('list.multiBlock')||(_0x8c01bd='*Change\x20to:*\x20%0'),_0x4bb4b0={'type':'format','content':o(_0x982d8,_0x8c01bd,o(_0x982d8,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x8c01bd='*Indent:*\x20%0',_0x4bb4b0={'type':'format','content':o(_0x982d8,_0x8c01bd,o(_0x982d8,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x8c01bd=function(_0x3261c4){const _0x46da43=_0x3261c4['getFirstRange']();let _0x162e60=_0x46da43['start']['nodeAfter'];for(;_0x162e60&&_0x46da43['containsItem'](_0x162e60);){if(_0x162e60['getAttribute']('listIndent')>0x0)return!0x1;_0x162e60=_0x162e60['nextSibling'];}return!0x0;}(_0x334b9b)?o(_0x982d8,'*Format:*\x20remove\x20from\x20%0',o(_0x982d8,function(_0x524d90){return'ELEMENT_'+_0x524d90['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x334b9b))):o(_0x982d8,'*Outdent:*\x20%0',o(_0x982d8,'ELEMENT_LIST_ITEM')),_0x4bb4b0={'type':'format','content':_0x8c01bd};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x542b27['multipleBlocks']&&(_0x8c01bd='*Merge:*\x20%0',_0x4bb4b0={'type':'deletion','content':o(_0x982d8,_0x8c01bd,o(_0x982d8,'ELEMENT_LIST_ITEM'))});}return _0x4bb4b0;});}}function le(_0x26395e){let _0x304af5=_0x26395e['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x304af5;){const _0x3de9b2=_0x304af5['getAttribute']('listItemId');if(!_0x3de9b2)return!0x1;if(_0x3de9b2==_0x26395e['data']['newValue'])return'newValue';if(_0x3de9b2==_0x26395e['data']['oldValue'])return'oldValue';_0x304af5=_0x304af5['previousSibling'];}return!0x1;}class ue extends _0x49ae3f{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1985b8=this['editor']['config']['get']('list.properties'),_0x231b6a=this['editor']['plugins']['get']('TrackChangesEditing');_0x1985b8['styles']&&(_0x231b6a['enableDefaultAttributesIntegration']('listStyle'),_0x231b6a['registerBlockAttribute']('listStyle')),_0x1985b8['reversed']&&(_0x231b6a['enableDefaultAttributesIntegration']('listReversed'),_0x231b6a['registerBlockAttribute']('listReversed')),_0x1985b8['startIndex']&&(_0x231b6a['enableDefaultAttributesIntegration']('listStart'),_0x231b6a['registerBlockAttribute']('listStart'));const _0x433b77={'type':'format','content':''};_0x231b6a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x14dc80=this['editor']['locale'];_0x231b6a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x14dc80,'FORMAT_LIST_REVERSED')),_0x231b6a['descriptionFactory']['registerDescriptionCallback'](_0x174c46=>{const {data:_0x5c568c}=_0x174c46;if(_0x5c568c&&'listReversed'==_0x5c568c['key'])return null==_0x5c568c['newValue']||0x0==_0x5c568c['newValue']&&null==_0x5c568c['oldValue']?_0x433b77:void 0x0;}),_0x231b6a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x14dc80,'FORMAT_LIST_START')),_0x231b6a['descriptionFactory']['registerDescriptionCallback'](_0x46484d=>{const {data:_0x200e74}=_0x46484d;if(_0x200e74&&'listStart'==_0x200e74['key'])return null==_0x200e74['newValue']||0x1==_0x200e74['newValue']&&null==_0x200e74['oldValue']?_0x433b77:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x4494d2=>{if(_0x4494d2['batch']['isUndo'])return!0x1;let _0x401c4d=!0x1;const _0x22f037=_0x231b6a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x337dcf=>{const _0x17e239=_0x231b6a['_getAttributeKey'](_0x337dcf);return'listStart'==_0x17e239||'listReversed'==_0x17e239;});for(const _0x5a7471 of _0x22f037){const _0xc5b494=_0x5a7471['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xc5b494||'customNumbered'==_0xc5b494)continue;_0x231b6a['_findSuggestions'](_0x5a7471['getFirstRange'](),'attribute')['find'](_0x4159b1=>'listType'==_0x231b6a['_getAttributeKey'](_0x4159b1['suggestion']))||(_0x4494d2['removeMarker'](_0x5a7471['getFirstMarker']()),_0x401c4d=!0x0);}return _0x401c4d;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x456e0c){const _0x450ef5=this['editor']['locale'],{data:_0xccaa93}=_0x456e0c,_0x21959d={'type':'format','content':''};if(!_0xccaa93||'listStyle'!=_0xccaa93['key'])return;if(!_0xccaa93['oldValue'])return'default'==_0xccaa93['newValue']?_0x21959d:{'type':'format','content':''+o(_0x450ef5,'*Set\x20format:*\x20%0',o(_0x450ef5,this['_getTranslationKeyForListStyle'](_0xccaa93['newValue'])))};if(!_0xccaa93['newValue']){if('default'==_0xccaa93['oldValue'])return _0x21959d;let _0x32f242=_0x456e0c['head'];for(;_0x32f242;){if(_0x32f242['data']&&'listType'==_0x32f242['data']['key']&&_0x32f242['data']['newValue'])return _0x21959d;_0x32f242=_0x32f242['next'];}return{'type':'format','content':''+o(_0x450ef5,'*Remove\x20format:*\x20%0',o(_0x450ef5,this['_getTranslationKeyForListStyle'](_0xccaa93['oldValue'])))};}if('default'!=_0xccaa93['newValue'])return{'type':'format','content':''+o(_0x450ef5,'*Set\x20format:*\x20%0',o(_0x450ef5,this['_getTranslationKeyForListStyle'](_0xccaa93['newValue'])))};let _0x3826e9=_0x456e0c['head'];for(;_0x3826e9;){if(_0x3826e9['data']&&'listType'==_0x3826e9['data']['key']&&_0x3826e9['data']['newValue']&&_0x3826e9['data']['oldValue'])return _0x21959d;_0x3826e9=_0x3826e9['next'];}return{'type':'format','content':o(_0x450ef5,'*Set\x20format:*\x20%0',o(_0x450ef5,'ELEMENT_'+_0x456e0c['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x3c1d77=this['editor'],_0x54cffd=_0x3c1d77['locale'];_0x3c1d77['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x255523=>{if('formatBlock'!=_0x255523['type'])return;const {data:_0x48f6a2}=_0x255523;if(!_0x48f6a2)return;let _0x205ae9,_0x27aa2f;switch(_0x48f6a2['commandName']){case'listStyle':_0x205ae9='*Change\x20to:*\x20%0',_0x27aa2f={'type':'format','content':o(_0x54cffd,_0x205ae9,o(_0x54cffd,this['_getTranslationKeyForListStyle'](_0x48f6a2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x205ae9=_0x48f6a2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27aa2f={'type':'format','content':o(_0x54cffd,_0x205ae9)};break;case'listStart':_0x205ae9='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27aa2f={'type':'format','content':o(_0x54cffd,_0x205ae9,_0x48f6a2['commandParams'][0x0]['startIndex'])};}return _0x27aa2f;});}['_getTranslationKeyForListStyle'](_0x16861c){return'ELEMENT_'+function(_0x4c3c09){if(pe['includes'](_0x4c3c09))return'bulleted';if(ye['includes'](_0x4c3c09))return'numbered';return null;}(_0x16861c)['toUpperCase']()+'_LIST_'+_0x16861c['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x49ae3f{static get['requires'](){return[_0x1ad3d6];}['init'](){const _0x5bf699=this['editor'],_0x8a87cd=_0x5bf699['plugins']['get']('TrackChangesEditing'),_0x345458=_0x5bf699['commands']['get']('enter');_0x8a87cd['enableCommand']('enter',()=>{_0x5bf699['model']['change'](_0x5b2f61=>{const _0x3c7d63=_0x5bf699['model']['document']['selection'],_0x45cbce=_0x3c7d63['getFirstPosition'](),_0x54640e=_0x12eb8f['fromRange'](_0x3c7d63['getFirstRange']());if(_0x345458['enterBlock'](_0x5b2f61)){const _0x46b67f=_0x5bf699['model']['createPositionAt'](_0x45cbce['parent']['nextSibling'],0x0),_0x30d256=_0x5b2f61['createRange'](_0x45cbce,_0x46b67f);_0x8a87cd['markInsertion'](_0x30d256);}else _0x5b2f61['setSelection'](_0x5b2f61['createRange'](_0x54640e['end']));_0x54640e['detach'](),_0x345458['fire']('afterExecute',{'writer':_0x5b2f61});});}),_0x5bf699['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x5bf699,'split'),{'priority':'high'}),_0x5bf699['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x3f0673,_0x58fb30,_0xcc6e4b)=>{const _0x355869=_0xcc6e4b['mapper']['markerNameToElements'](_0x58fb30['markerName']);if(_0x355869){for(const _0x1fd4eb of _0x355869)_0x1fd4eb['hasClass']('ck-suggestion-marker-split')&&(_0xcc6e4b['mapper']['unbindElementFromMarkerName'](_0x1fd4eb,_0x58fb30['markerName']),_0xcc6e4b['writer']['remove'](_0x1fd4eb));}},{'priority':'high'}),_0x5bf699['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x45953c,_0x87dddc,_0x41f8ec)=>{_0x41f8ec['options']['showSuggestionHighlights']&&_e(_0x5bf699,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x45953c,_0x87dddc,_0x41f8ec);},{'priority':'high'});}}class J extends _0x49ae3f{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x3f3024=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f3024['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x3f3024['enableCommand']('findNext'),_0x3f3024['enableCommand']('findPrevious'),_0x3f3024['enableCommand']('replace'),_0x3f3024['enableCommand']('replaceAll');}['handleFindCommand'](_0x14da12,_0x5f48ee,_0x3e2c50={}){const _0x14145a=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x14da12(_0xaf4653=>('string'==typeof _0x5f48ee?_0x14145a['findByTextCallback'](_0x5f48ee,_0x3e2c50):_0x5f48ee)(_0xaf4653)['filter'](_0x4d7c6b=>!0x1===this['_isInDeletionRange'](_0x4d7c6b,_0xaf4653['item'])),_0x3e2c50);}['_isInDeletionRange'](_0x4b5f1b,_0x468390){const _0xf71820=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x468390,_0x4b5f1b['start']),this['editor']['model']['createPositionAt'](_0x468390,_0x4b5f1b['end']));for(const _0x4bb431 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0xf71820['getIntersection'](_0x4bb431['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x49ae3f{['afterInit'](){const _0x417848=this['editor']['locale'],_0x245f7b=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5c0716,commandName:_0x4eefbb}of ro)this['editor']['plugins']['has'](_0x5c0716)&&(_0x245f7b['enableDefaultAttributesIntegration'](_0x4eefbb),_0x245f7b['registerInlineAttribute'](_0x4eefbb));_0x417848['t'],_0x245f7b['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x417848,'FORMAT_FONT_SIZE')),_0x245f7b['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x417848,'FORMAT_FONT_FAMILY')),_0x245f7b['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x417848,'FORMAT_FONT_COLOR')),_0x245f7b['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x417848,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x45c5bd=this['editor'],_0x4d08c9=_0x45c5bd['locale'];_0x45c5bd['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x178d8e=>{const _0x366f47=_0x4d08c9['t'];if('formatInline'!=_0x178d8e['type'])return;const {data:_0x46cf41}=_0x178d8e;if(null!=_0x46cf41){if('fontSize'==_0x46cf41['commandName']){const _0x489308=_0x46cf41['commandParams'][0x0]['value'];if(_0x489308){const _0x3384d1=_0x366f47(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0xade14a=>_0xade14a['model']==_0x489308)['title'])['toLowerCase']();return{'type':'format','content':o(_0x4d08c9,'*Set\x20font\x20size:*\x20%0',_0x3384d1)};}return{'type':'format','content':o(_0x4d08c9,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x46cf41['commandName']){const _0x6e1d35=_0x46cf41['commandParams'][0x0]['value'];return _0x6e1d35?{'type':'format','content':o(_0x4d08c9,'*Set\x20font\x20family:*\x20%0',_0x6e1d35)}:{'type':'format','content':o(_0x4d08c9,'*Reset\x20font\x20family*')};}if('fontColor'==_0x46cf41['commandName']){const _0x387f35=_0x46cf41['commandParams'][0x0]['value'];if(_0x387f35){const _0x1b6ef3=_0x303f18(this['editor']['config']['get']('fontColor.colors'))['find'](_0x102b5a=>_0x102b5a['model']==_0x387f35);let _0x26f579=_0x387f35,_0x224d75='';return _0x1b6ef3&&(_0x26f579=_0x1b6ef3['label'],_0x224d75=_0x366f47(_0x26f579)['toLowerCase']()),{'type':'format','content':o(_0x4d08c9,'*Set\x20font\x20color:*\x20%0',_0x224d75)['trim'](),'color':{'value':_0x387f35,'title':_0x224d75||_0x26f579}};}return{'type':'format','content':o(_0x4d08c9,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x46cf41['commandName']){const _0x5f1fe8=_0x46cf41['commandParams'][0x0]['value'];if(_0x5f1fe8){const _0x4369c1=_0x303f18(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0xdb9a65=>_0xdb9a65['model']==_0x5f1fe8);let _0x548573=_0x5f1fe8,_0x238e50='';return _0x4369c1&&(_0x548573=_0x4369c1['label'],_0x238e50=_0x366f47(_0x548573)['toLowerCase']()),{'type':'format','content':o(_0x4d08c9,'*Set\x20font\x20background\x20color:*\x20%0',_0x238e50)['trim'](),'color':{'value':_0x5f1fe8,'title':_0x238e50||_0x548573}};}return{'type':'format','content':o(_0x4d08c9,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x49ae3f{['afterInit'](){const _0x108b1b=this['editor'],_0x605f0f=_0x108b1b['plugins']['get']('TrackChangesEditing'),_0x2cc67f=_0x108b1b['commands']['get']('copyFormat'),_0x23aefa=_0x108b1b['commands']['get']('pasteFormat');_0x2cc67f&&_0x23aefa&&(_0x605f0f['enableDefaultAttributesIntegration']('pasteFormat'),_0x605f0f['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f4d2c=this['editor'],_0x432352=_0x4f4d2c['locale'];_0x4f4d2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x252f44=>{if('formatBlock'!=_0x252f44['type']&&'formatInline'!=_0x252f44['type'])return;const {data:_0x4e1f83}=_0x252f44;if(_0x4e1f83&&'pasteFormat'===_0x4e1f83['commandName']){const _0x28a607=[],_0x5379ce=_0x4e1f83['commandParams'][0x0];for(const [_0xe19b14,_0x39c04c]of Object['entries'](_0x5379ce))_0x28a607['push'](so(_0x4f4d2c,_0xe19b14,_0x39c04c));return _0x28a607['length']?{'type':'format','content':o(_0x432352,'*Set\x20format\x20to:*\x20%0',_0x28a607['join'](',\x20'))}:{'type':'format','content':o(_0x432352,'*Remove\x20all\x20formatting*')};}});}}function so(_0x411bf6,_0x41ec64,_0x40eaf0){const _0x4992b5=_0x411bf6['locale']['t'],_0x1b91bb=_0x41ec64['split'](/(?=[A-Z])/)['join']('\x20'),_0x68aef9=_0x4992b5(_0x1b91bb['charAt'](0x0)['toUpperCase']()+_0x1b91bb['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x40eaf0)return _0x68aef9;if('fontColor'===_0x41ec64||'fontBackgroundColor'===_0x41ec64){const _0x493a08=_0x303f18(_0x411bf6['config']['get']('fontColor.colors'))['find'](_0x58a180=>_0x58a180['model']==_0x40eaf0);return _0x68aef9+'\x20('+(_0x493a08?_0x4992b5(_0x493a08['label'])['toLowerCase']():_0x40eaf0)+')';}if('fontSize'===_0x41ec64&&isNaN(parseFloat(_0x40eaf0))){const _0x18a3cd=_0x411bf6['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x411bf6['config']['get']('fontSize.options'))['find'](_0x4b0080=>_0x4b0080['model']==_0x40eaf0);return _0x68aef9+'\x20('+(_0x18a3cd?_0x4992b5(_0x18a3cd['title'])['toLowerCase']():_0x40eaf0)+')';}return _0x68aef9+'\x20('+_0x40eaf0+')';}class Y extends _0x49ae3f{['_headingOptions'];['afterInit'](){const _0x16c4b0=this['editor'];if(!_0x16c4b0['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x16c4b0['config']['get']('heading.options');const _0x154550=_0x16c4b0['locale'],_0x4acd52=_0x16c4b0['plugins']['get']('TrackChangesEditing');_0x4acd52['enableDefaultAttributesIntegration']('heading');for(const _0x39d815 of this['_headingOptions'])'paragraph'!=_0x39d815['model']&&_0x4acd52['descriptionFactory']['registerElementLabel'](_0x39d815['model'],_0x47fff4=>{const _0x115349=this['_getHeadingLevel'](_0x39d815['model']);return null!==_0x115349?_0x435b49(_0x47fff4,_0x115349):_0x2a07c2(_0x47fff4,_0x39d815['title']);});function _0x435b49(_0x2bce71,_0x3f6dcb){return o(_0x154550,'ELEMENT_HEADING',[_0x2bce71,_0x3f6dcb]);}function _0x2a07c2(_0x451831,_0x51e79f){return o(_0x154550,'ELEMENT_HEADING_CUSTOM',[_0x451831,_0x51e79f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2689a6=this['editor'],_0x169682=_0x2689a6['locale'];function _0xc20ad5(_0x5dc115,_0x5798ce){return o(_0x169682,'ELEMENT_HEADING_CUSTOM',[_0x5dc115,_0x5798ce]);}_0x2689a6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2514a7=>{if('formatBlock'!=_0x2514a7['type'])return;const {data:_0x28a2e3}=_0x2514a7;if(_0x28a2e3&&'heading'==_0x28a2e3['commandName']){const _0x38a2cc=_0x28a2e3['commandParams'][0x0]['value'],_0x2041f4=this['_getHeadingLevel'](_0x38a2cc);if(null!==_0x2041f4)return{'type':'format','content':o(_0x169682,'*Change\x20to:*\x20%0',(_0x3c52fa=0x1,_0xb21a03=_0x2041f4,o(_0x169682,'ELEMENT_HEADING',[_0x3c52fa,_0xb21a03])))};const _0x5c0128=this['_headingOptions']['find'](_0x4bb15f=>_0x4bb15f['model']===_0x38a2cc)['title'];return{'type':'format','content':o(_0x169682,'*Change\x20to:*\x20%0',_0xc20ad5(0x1,_0x5c0128))};}var _0x3c52fa,_0xb21a03;});}['_getHeadingLevel'](_0x40277c){const _0x287296=_0x40277c['match'](/^heading(\d+)/);if(_0x287296)return _0x287296[0x1];const _0x41b673=this['_headingOptions']?.['find'](_0x589619=>_0x589619['model']==_0x40277c);if(_0x41b673&&_0x41b673['view']){const _0x4fa228=_0x41b673['view'],_0x17949e=(_0x4fa228['name']??_0x4fa228)['match'](/^h(\d+)/);if(_0x17949e)return _0x17949e[0x1];}return null;}}class Z extends _0x49ae3f{['afterInit'](){const _0x35775e=this['editor'];if(!_0x35775e['plugins']['has']('HighlightEditing'))return;const _0x52605e=_0x35775e['plugins']['get']('TrackChangesEditing'),_0x204b42=_0x35775e['locale'];_0x52605e['enableDefaultAttributesIntegration']('highlight'),_0x52605e['registerInlineAttribute']('highlight'),_0x52605e['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x204b42,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x10819f=this['editor'],_0x3057f4=_0x10819f['locale'];_0x10819f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35b4a8=>{if('formatInline'!=_0x35b4a8['type'])return;const {data:_0x3e3c9d}=_0x35b4a8;if(_0x3e3c9d&&'highlight'==_0x3e3c9d['commandName']){const _0x3ddd39=_0x3057f4['t'],_0x25765d=_0x3e3c9d['commandParams'][0x0]['value'];if(_0x25765d){const _0x1b23f1=_0x10819f['config']['get']('highlight.options')['find'](_0xb2def8=>_0xb2def8['model']==_0x25765d),_0x2feee8=_0x3ddd39(_0x1b23f1['title'])['toLowerCase']();return{'type':'format','content':o(_0x3057f4,'*Set\x20highlight:*\x20%0',_0x2feee8),'color':{'value':_0x1b23f1['color'],'title':_0x1b23f1['title']}};}return{'type':'format','content':o(_0x3057f4,'*Remove\x20highlight*',o(_0x3057f4,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x49ae3f{['afterInit'](){const _0x346814=this['editor'];if(!_0x346814['plugins']['has']('HorizontalLineEditing'))return;_0x346814['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3a0bd1=_0x346814['plugins']['get']('TrackChangesEditing'),_0x11ffd6=_0x346814['locale'];_0x3a0bd1['descriptionFactory']['registerElementLabel']('horizontalLine',_0x250493=>o(_0x11ffd6,'ELEMENT_HORIZONTAL_LINE',_0x250493)),_0x346814['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x45bd81,{writer:_0x3f82ab,options:_0x5080af})=>{if(!_0x5080af['showSuggestionHighlights'])return null;const _0x16ec46=_0x3f82ab['createContainerElement']('div'),_0x44d697=_0x3f82ab['createEmptyElement']('hr');return _0x3f82ab['addClass']('ck-horizontal-line',_0x16ec46),_0x3f82ab['insert'](_0x3f82ab['createPositionAt'](_0x16ec46,0x0),_0x44d697),_0x16ec46;},'converterPriority':'high'});}}class et extends _0x49ae3f{['afterInit'](){const _0x551389=this['editor'];if(!_0x551389['plugins']['has']('HtmlEmbed'))return;const _0x51e8af=_0x551389['plugins']['get']('TrackChangesEditing'),_0x1e0d22=_0x551389['locale'];_0x51e8af['descriptionFactory']['registerElementLabel']('rawHtml',_0x4f7917=>o(_0x1e0d22,'ELEMENT_HTML_EMBED',_0x4f7917)),_0x51e8af['enableDefaultAttributesIntegration']('htmlEmbed'),_0x51e8af['registerBlockAttribute']('value'),_0x51e8af['descriptionFactory']['registerDescriptionCallback'](_0x3ba66a=>{if('attribute'!=_0x3ba66a['type'])return;const {data:_0x2686ee}=_0x3ba66a;if(_0x2686ee&&'value'==_0x2686ee['key']&&_0x3ba66a['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x31dec1=o(_0x1e0d22,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1e0d22,'*Change\x20%0\x20content*',_0x31dec1)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x59c4a2=this['editor'],_0x5afd4b=_0x59c4a2['locale'];_0x59c4a2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x472c0d=>{if('formatBlock'!=_0x472c0d['type'])return;const {data:_0x5079c1}=_0x472c0d;if(_0x5079c1&&'htmlEmbed'==_0x5079c1['commandName']){const _0x587e10=o(_0x5afd4b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5afd4b,'*Change\x20%0\x20content*',_0x587e10)};}});}}class it extends _0x49ae3f{['afterInit'](){const _0x33d49d=this['editor'];if(!_0x33d49d['plugins']['has']('ImageEditing'))return;const _0x1c673e=_0x33d49d['plugins']['get']('TrackChangesEditing'),_0x4fcb9d=_0x33d49d['plugins']['get']('ImageUtils'),_0x143bfc=_0x33d49d['locale'];_0x1c673e['enableCommand']('insertImage'),_0x1c673e['descriptionFactory']['registerElementLabel']('imageBlock',_0x5e3c96=>o(_0x143bfc,'ELEMENT_IMAGE',_0x5e3c96)),_0x1c673e['descriptionFactory']['registerElementLabel']('imageInline',_0x1f9369=>o(_0x143bfc,'ELEMENT_INLINE_IMAGE',_0x1f9369)),_0x1c673e['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x143bfc,'ELEMENT_CAPTION')),_0x33d49d['plugins']['has']('ImageUploadEditing')&&_0x1c673e['enableCommand']('uploadImage'),_0x33d49d['plugins']['has']('ImageBlockEditing')&&_0x33d49d['plugins']['has']('ImageInlineEditing')&&(_0x1c673e['enableCommand']('imageTypeInline',(_0x5b136b,_0x4df2db)=>{const _0x31f192=_0x4fcb9d['getClosestSelectedImageElement'](_0x33d49d['model']['document']['selection']);_0x33d49d['model']['change'](()=>{_0x1c673e['markBlockFormat'](_0x31f192,{'commandName':'imageTypeInline','commandParams':[_0x4df2db]},[],'convertBlockImageToInline');});}),_0x1c673e['enableCommand']('imageTypeBlock',(_0x4775c7,_0xf4f704)=>{_0x33d49d['model']['change'](_0x44ba3e=>{let _0x5423bd=_0x4fcb9d['getClosestSelectedImageElement'](_0x33d49d['model']['document']['selection']),_0x285b67=_0x44ba3e['createRangeOn'](_0x5423bd);const _0x32ecc7=_0x52627c['fromPosition'](_0x285b67['start'],'toPrevious'),_0x16bea3=_0x52627c['fromPosition'](_0x285b67['end'],'toNext');_0x1c673e['forceDefaultExecution'](()=>_0x4775c7(_0xf4f704)),_0x5423bd=_0x4fcb9d['getClosestSelectedImageElement'](_0x33d49d['model']['document']['selection']),_0x285b67=_0x44ba3e['createRangeOn'](_0x5423bd);const _0x14c897=_0x44ba3e['createRange'](_0x32ecc7,_0x16bea3);_0x32ecc7['detach'](),_0x16bea3['detach'](),_0x1c673e['markBlockFormat'](_0x5423bd,{'commandName':'imageTypeInline','commandParams':[_0xf4f704]},[],'convertInlineImageToBlock'),_0x14c897['start']['isBefore'](_0x285b67['start'])&&_0x1c673e['markInsertion'](_0x44ba3e['createRange'](_0x14c897['start'],_0x285b67['start']),'convertInlineImageToBlock'),_0x285b67['end']['isBefore'](_0x14c897['end'])&&_0x1c673e['markInsertion'](_0x44ba3e['createRange'](_0x285b67['end'],_0x14c897['end']),'convertInlineImageToBlock');});}),_0x1c673e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1c673e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1c673e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1c673e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1c673e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1c673e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x480b6a])=>{const _0xf5ec67=_0x1c673e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2cb3cf=_0x480b6a['start'],_0x5da289=_0x480b6a['end'];const _0x2342fd=_0x33d49d['model']['schema']['getNearestSelectionRange'](_0x2cb3cf,'backward'),_0x13acd4=_0x33d49d['model']['schema']['getNearestSelectionRange'](_0x5da289,'forward');_0x2342fd['isCollapsed']&&(_0x2cb3cf=_0x2342fd['start']),_0x13acd4['isCollapsed']&&(_0x5da289=_0x13acd4['end']),_0xf5ec67([_0x33d49d['model']['createRange'](_0x2cb3cf,_0x5da289)]);}),_0x1c673e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x557cba),_0x1c673e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x557cba)),_0x33d49d['plugins']['has']('ImageCaptionEditing')&&(_0x1c673e['enableCommand']('toggleImageCaption',(_0x5d9153,_0x2e2913)=>{const _0x1a2383=_0x33d49d['plugins']['get']('ImageCaptionUtils');let _0x54e278=_0x4fcb9d['getClosestSelectedImageElement'](_0x33d49d['model']['document']['selection']),_0x5487ab=_0x1a2383['getCaptionFromImageModelElement'](_0x54e278);_0x33d49d['model']['change'](()=>{if(_0x5487ab)return void _0x1c673e['markDeletion'](_0x33d49d['model']['createRangeOn'](_0x5487ab));const _0x14e8cf=_0x4fcb9d['isBlockImage'](_0x54e278);_0x5d9153(_0x2e2913),_0x54e278=_0x4fcb9d['getClosestSelectedImageElement'](_0x33d49d['model']['document']['selection']),_0x5487ab=_0x1a2383['getCaptionFromImageModelElement'](_0x54e278),_0x1c673e['markInsertion'](_0x33d49d['model']['createRangeOn'](_0x5487ab),_0x14e8cf?null:'imageCaption');});}),_0x1c673e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x557cba));const _0x3988d6=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x337d00(_0x12c544,_0x2efd3c){const _0x5802ab=_0x3988d6['findIndex'](({type:_0x27af8c,subType:_0x10f136})=>_0x12c544['type']==_0x27af8c&&_0x12c544['subType']==_0x10f136),_0x24700d=_0x3988d6['findIndex'](({type:_0x52e140,subType:_0x456dc8})=>_0x2efd3c['type']==_0x52e140&&_0x2efd3c['subType']==_0x456dc8);if(_0x5802ab<0x0||_0x24700d<0x0)return!0x1;const _0x21a7fd=_0x12c544['getFirstRange'](),_0x3267cf=_0x2efd3c['getFirstRange']();if((0x0==_0x5802ab||0x1==_0x5802ab)&&0x2==_0x24700d&&_0x21a7fd['isIntersecting'](_0x3267cf))return!0x0;if(0x2==_0x5802ab&&0x3==_0x24700d){const _0x680f33=_0x1c673e['_findSuggestions'](_0x21a7fd,'insertion')['filter'](({suggestion:_0x3aa6ad,meta:_0x2b7dfa})=>_0x2b7dfa['isOwn']&&'convertInlineImageToBlock'==_0x3aa6ad['subType']);if(_0x680f33['length']>0x1&&_0x3267cf['end']['isEqual'](_0x21a7fd['start']))return!0x0;if(0x1==_0x680f33['length']&&(_0x21a7fd['start']['isEqual'](_0x3267cf['end'])||_0x21a7fd['end']['isEqual'](_0x3267cf['start'])))return!0x0;}if(0x3==_0x5802ab&&0x3==_0x24700d&&_0x21a7fd['start']['isBefore'](_0x3267cf['start'])){const _0x3af7fe=_0x21a7fd['end']['nodeAfter'],_0x1eb3d2=_0x3267cf['start']['nodeBefore'];return _0x4fcb9d['isBlockImage'](_0x3af7fe)&&_0x3af7fe===_0x1eb3d2;}return!0x1;}function _0x557cba(_0x2ebc9a,_0x50331b){return _0x337d00(_0x2ebc9a,_0x50331b)?[_0x2ebc9a,_0x50331b]:_0x337d00(_0x50331b,_0x2ebc9a)?[_0x50331b,_0x2ebc9a]:null;}_0x33d49d['plugins']['has']('ImageResize')&&(_0x1c673e['enableDefaultAttributesIntegration']('resizeImage'),_0x1c673e['registerBlockAttribute']('resizedWidth'),_0x1c673e['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x143bfc,'FORMAT_IMAGE_SIZE'))),_0x33d49d['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1c673e['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1c673e['registerBlockAttribute']('alt')),_0x1c673e['descriptionFactory']['registerDescriptionCallback'](_0x40ba2e=>{if(!!_0x3988d6['find'](({type:_0x42ddfe,subType:_0x2e5c79})=>_0x40ba2e['type']==_0x42ddfe&&_0x40ba2e['subType']==_0x2e5c79))return _0x40ba2e['previous']?{}:void 0x0;}),_0x1c673e['descriptionFactory']['registerDescriptionCallback'](_0x1050d5=>{if('insertion'==_0x1050d5['type']||'deletion'==_0x1050d5['type']){const _0x3fc8d1=_0x1050d5['getContainedElement']();if(_0x3fc8d1&&_0x3fc8d1['is']('element','caption'))return{'type':'insertion'==_0x1050d5['type']?'addObject':'removeObject','element':_0x3fc8d1,'quantity':0x1};}}),_0x1c673e['descriptionFactory']['registerDescriptionCallback'](_0x55425e=>'formatBlock'==_0x55425e['type']&&'convertInlineImageToBlock'==_0x55425e['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x55425e['type']&&'convertBlockImageToInline'==_0x55425e['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1c673e['descriptionFactory']['registerDescriptionCallback'](_0x245938=>{if('attribute'!=_0x245938['type'])return;const {data:_0x17c72d}=_0x245938;if(!_0x17c72d||'alt'!=_0x17c72d['key'])return;const _0x1a48e3=_0x17c72d['newValue'];return _0x1a48e3?{'type':'format','content':o(_0x143bfc,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1a48e3+'\x22')}:{'type':'format','content':o(_0x143bfc,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47e773=this['editor'],_0x2cbe60=_0x47e773['locale'];_0x47e773['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xc30a8c=>{if('formatBlock'!=_0xc30a8c['type']&&'formatInline'!=_0xc30a8c['type'])return;const {data:_0x5d7470}=_0xc30a8c;if(_0x5d7470){if('imageTextAlternative'==_0x5d7470['commandName']){const _0x3b4c2a=_0x5d7470['commandParams'][0x0]['newValue'];return _0x3b4c2a?{'type':'format','content':o(_0x2cbe60,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x3b4c2a+'\x22')}:{'type':'format','content':o(_0x2cbe60,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x5d7470['commandName']){const _0x57e6a9=_0x5d7470['commandParams'][0x0]['width'];return _0x57e6a9?{'type':'format','content':o(_0x2cbe60,'*Set\x20image\x20width:*\x20%0',_0x57e6a9)}:{'type':'format','content':o(_0x2cbe60,'*Reset\x20image\x20width*')};}}});}}class st extends _0x49ae3f{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x136188=this['editor']['locale'],_0x128048=this['editor']['plugins']['get']('TrackChangesEditing');_0x128048['enableDefaultAttributesIntegration']('replaceImageSource'),_0x128048['registerBlockAttribute']('src'),_0x128048['descriptionFactory']['registerDescriptionCallback'](_0x4221e8=>{if('attribute'!=_0x4221e8['type'])return;const {data:_0x78a677}=_0x4221e8;return _0x78a677&&'src'==_0x78a677['key']?_0x78a677['newValue']&&_0x78a677['oldValue']?{'type':'format','content':o(_0x136188,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3b2186=this['editor']['plugins']['get']('TrackChangesEditing');_0x3b2186['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3b2186['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3b2186['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3b2186['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x207113=this['editor'],_0xf56551=_0x207113['locale'];_0x207113['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4ffc90=>{if('formatBlock'!=_0x4ffc90['type']&&'formatInline'!=_0x4ffc90['type'])return;const {data:_0x2b14d4}=_0x4ffc90;if(!_0x2b14d4||'replaceImageSource'!=_0x2b14d4['commandName'])return;return{'type':'format','content':o(_0xf56551,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x49ae3f{['afterInit'](){const _0x3b465f=this['editor'];if(!_0x3b465f['plugins']['has']('ImageStyleEditing'))return;const _0x56314e=_0x3b465f['plugins']['get']('TrackChangesEditing'),_0x87677a=_0x3b465f['plugins']['get']('ImageUtils'),_0x366e2a={};_0x56314e['enableCommand']('imageStyle',(_0x2b06ea,_0x893157)=>{const _0x3e8032=_0x3b465f['plugins']['get']('Users')['me'],_0xc8fb8d=_0x3b465f['commands']['get']('imageStyle');let _0x734047=_0x87677a['getClosestSelectedImageElement'](_0x3b465f['model']['document']['selection']),_0x552e68=_0x3b465f['model']['createRangeOn'](_0x734047),_0x4dc73f=_0xc8fb8d['value'];if(_0x4dc73f==_0x893157['value'])return;const _0xc6491a={'commandName':'imageStyle','commandParams':[_0x893157],'formatGroupId':_0x1fbc14()};_0x3b465f['model']['change'](()=>{if(_0x56314e['getSuggestions']()['filter'](_0x59c9ed=>_0x59c9ed['isInContent']&&_0x3e8032==_0x59c9ed['author']&&('formatBlock'==_0x59c9ed['type']||'formatInline'==_0x59c9ed['type'])&&('imageStylePreApply'==_0x59c9ed['subType']||'imageStylePostApply'==_0x59c9ed['subType'])&&_0x59c9ed['getFirstRange']()['isEqual'](_0x552e68))['forEach'](_0x52fe84=>_0x56314e['discardSuggestion'](_0x52fe84['head'])),_0x734047=_0x87677a['getClosestSelectedImageElement'](_0x3b465f['model']['document']['selection']),_0x552e68=_0x3b465f['model']['createRangeOn'](_0x734047),_0xc8fb8d['refresh'](),_0x3b465f['commands']['get']('imageTypeInline')['refresh'](),_0x3b465f['commands']['get']('imageTypeBlock')['refresh'](),_0x4dc73f=_0xc8fb8d['value'],_0x4dc73f!=_0x893157['value'])return _0x87677a['isInlineImage'](_0x734047)&&_0xc8fb8d['shouldConvertImageType'](_0x893157['value'],_0x734047)?(_0x2b06ea({..._0x893157,'setImageSizes':!0x1}),_0x734047=_0x87677a['getClosestSelectedImageElement'](_0x3b465f['model']['document']['selection']),void _0x56314e['markBlockFormat'](_0x734047,{..._0xc6491a,'commandReversedParams':[{'value':_0x4dc73f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x87677a['isBlockImage'](_0x734047)?_0x56314e['markBlockFormat'](_0x734047,_0xc6491a,[],'imageStylePostApply'):_0x56314e['markInlineFormat'](_0x552e68,_0xc6491a,'imageStylePostApply'));});});for(const _0x2ee43e of _0x3b465f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x366e2a[_0x2ee43e['name']]=_0x2ee43e['title']['toLowerCase']();_0x56314e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x56314e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x56314e['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x56314e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0xad1178])=>{_0x87677a['setImageNaturalSizeAttributes'](_0xad1178['getContainedElement']());}),_0x56314e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56de30,_0x1c8731)=>{_0x56314e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56de30,{'commandName':_0x1c8731['commandName'],'commandParams':_0x1c8731['commandReversedParams']});}),_0x56314e['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4dc7ff,_0xdef640){if(_0x451d48(_0x4dc7ff,_0xdef640))return[_0x4dc7ff,_0xdef640];if(_0x451d48(_0xdef640,_0x4dc7ff))return[_0xdef640,_0x4dc7ff];return null;});const _0x390861=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x451d48(_0x2b2438,_0x199b34){const _0x2472ea=_0x390861['findIndex'](({type:_0x49406d,subType:_0x425fa3})=>_0x2b2438['type']==_0x49406d&&_0x2b2438['subType']==_0x425fa3),_0x39b11f=_0x390861['findIndex'](({type:_0x30525a,subType:_0xfbab2e})=>_0x199b34['type']==_0x30525a&&_0x199b34['subType']==_0xfbab2e);if(_0x2472ea<0x0||_0x39b11f<0x0)return!0x1;const _0x43772b=_0x2b2438['getFirstRange'](),_0x3b6c2a=_0x199b34['getFirstRange']();if((0x0==_0x2472ea||0x1==_0x2472ea)&&0x2==_0x39b11f&&_0x43772b['isIntersecting'](_0x3b6c2a))return!0x0;if(0x2==_0x2472ea&&0x3==_0x39b11f){const _0x193e39=_0x56314e['_findSuggestions'](_0x43772b,'insertion')['filter'](({suggestion:_0x44adf0,meta:_0x504f80})=>_0x504f80['isOwn']&&'convertInlineImageToBlock'==_0x44adf0['subType']);if(_0x193e39['length']>0x1&&_0x3b6c2a['end']['isEqual'](_0x43772b['start']))return!0x0;if(0x1==_0x193e39['length']&&(_0x43772b['start']['isEqual'](_0x3b6c2a['end'])||_0x43772b['end']['isEqual'](_0x3b6c2a['start'])))return!0x0;}if(0x3==_0x2472ea&&0x3==_0x39b11f&&_0x43772b['start']['isBefore'](_0x3b6c2a['start'])){const _0x2447b2=_0x43772b['end']['nodeAfter'],_0x4f83b9=_0x3b6c2a['start']['nodeBefore'];return _0x87677a['isBlockImage'](_0x2447b2)&&_0x2447b2===_0x4f83b9;}return!0x1;}_0x3b465f['model']['document']['registerPostFixer'](()=>{let _0x4c34d7=!0x1;const _0x26ba20=Array['from'](_0x3b465f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5e0818,data:_0x2bb22d}of _0x26ba20){const {group:_0x18b1a2,type:_0x37ce4f,subType:_0x1712c8,id:_0x4a7d27}=_0x56314e['_splitMarkerName'](_0x5e0818);if('suggestion'==_0x18b1a2&&_0x56314e['hasSuggestion'](_0x4a7d27)){if('formatBlock'==_0x37ce4f&&('imageStylePreApply'==_0x1712c8||'imageStylePostApply'==_0x1712c8)){const _0x35d479=_0x56314e['getSuggestion'](_0x4a7d27);if(_0x2bb22d['newRange']){const _0x439165=_0x35d479['getFirstRange']()['getContainedElement']();if(_0x87677a['isBlockImage'](_0x439165))continue;_0x56314e['discardSuggestion'](_0x35d479),_0x4c34d7=!0x0;}}if('insertion'==_0x37ce4f&&'imageCaption'==_0x1712c8&&!_0x2bb22d['newRange']){const _0x1f57a6=_0x56314e['getSuggestion'](_0x4a7d27);_0x1f57a6['next']&&_0x1f57a6['next']['isInContent']&&(_0x56314e['discardSuggestion'](_0x1f57a6['next']),_0x4c34d7=!0x0);}}}return _0x4c34d7;}),this['_registerLegacyDescription'](_0x366e2a);}['_registerLegacyDescription'](_0x3050e3){const _0x176622=this['editor'],_0x529b72=_0x176622['locale'];_0x176622['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e7323=>{if('formatBlock'!=_0x4e7323['type']&&'formatInline'!=_0x4e7323['type'])return;const {data:_0x36ee8a}=_0x4e7323;if(!_0x36ee8a||'imageStyle'!=_0x36ee8a['commandName'])return;const _0xb7411b=_0x36ee8a['commandParams'][0x0]['value'];return _0x5790fe('side'===_0xb7411b?o(_0x529b72,'FORMAT_SIDE_IMAGE'):_0x3050e3[_0xb7411b]||_0xb7411b);function _0x5790fe(_0x1c013a){return{'type':'format','content':o(_0x529b72,'*Format:*\x20%0',_0x1c013a)};}});}}class ot extends _0x49ae3f{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0xff7201){super(_0xff7201),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x55a507=this['editor'],_0x576319=_0x55a507['commands']['get']('importWord'),_0x495638=_0x55a507['commands']['get']('trackChanges');_0x576319&&(_0x576319['on']('execute',(_0x41151e,[,_0x5a8475])=>{this['_trackChangesValueDuringImport']=_0x495638['value'],_0x5a8475['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x576319,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x576319,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x495638['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x55a507['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x7da23f,_0x2c32e9){const {suggestions:_0x2022a6}=_0x2c32e9,_0x1d201e=this['editor']['commands']['get']('trackChanges'),_0x327ed2=_0x1d201e['value'];this['_trackChangesValueDuringImport']!==_0x327ed2&&(_0x1d201e['execute'](),this['_trackChangesExecuted']=!0x0),_0x2022a6&&_0x2022a6['forEach'](({id:_0x36b992,type:_0x189788,author:_0x3dd81f,created_at:_0x579fa1})=>{const _0x58b9e7={'id':_0x36b992,'type':_0x189788,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x3dd81f,'createdAt':_0x579fa1?new Date(_0x579fa1):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x58b9e7);});}}class rt extends _0x49ae3f{['afterInit'](){const _0x3a2308=this['editor'],_0x314d49=_0x3a2308['plugins']['get']('TrackChangesEditing');if(_0x3a2308['plugins']['has']('IndentEditing')&&(_0x314d49['enableCommand']('indent'),_0x314d49['enableCommand']('outdent')),_0x3a2308['plugins']['has']('IndentBlock')){for(const _0xfc0de2 of['indentBlock','outdentBlock'])_0x314d49['enableDefaultAttributesIntegration'](_0xfc0de2);}const _0x11f3bf=_0x3a2308['locale'];_0x314d49['registerBlockAttribute']('blockIndent'),_0x314d49['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x11f3bf,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2cb2ff=this['editor'],_0x2aa99b=_0x2cb2ff['locale'],_0x20c9f1=_0x2cb2ff['plugins']['get']('TrackChangesEditing');_0x20c9f1['descriptionFactory']['registerDescriptionCallback'](_0x4be229=>{if('formatBlock'!=_0x4be229['type'])return;const {data:_0x320759}=_0x4be229;if(!_0x320759)return;if('indentBlock'!=_0x320759['commandName']&&'outdentBlock'!=_0x320759['commandName'])return;const _0x4ee4c7=_0x4be229['getItems']()[0x0],_0x23f20a=_0x20c9f1['descriptionFactory']['getItemLabel'](_0x4ee4c7);return'indentBlock'==_0x320759['commandName']?{'type':'format','content':o(_0x2aa99b,'*Indent:*\x20%0',_0x23f20a)}:'outdentBlock'==_0x320759['commandName']?{'type':'format','content':o(_0x2aa99b,'*Outdent:*\x20%0',_0x23f20a)}:void 0x0;});}}class at extends _0x49ae3f{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x49ae3f{['afterInit'](){const _0x4093c7=this['editor'];if(!_0x4093c7['plugins']['has']('LinkEditing'))return;const _0x1c073e=_0x4093c7['plugins']['get']('TrackChangesEditing'),_0x17806d=_0x4093c7['commands']['get']('link');_0x1c073e['enableDefaultAttributesIntegration']('link'),_0x1c073e['enableDefaultAttributesIntegration']('unlink'),_0x1c073e['registerInlineAttribute']('linkHref');for(const _0x3c0d9f of _0x17806d['manualDecorators'])_0x1c073e['registerInlineAttribute'](_0x3c0d9f['id']),_0x1c073e['descriptionFactory']['registerAttributeLabel'](_0x3c0d9f['id'],'link\x20('+_0x3c0d9f['label']['toLowerCase']()+')');_0x1c073e['descriptionFactory']['registerDescriptionCallback'](_0xe51047=>{if('attribute'!=_0xe51047['type'])return;const {data:_0x24a255}=_0xe51047;if(!_0x24a255||'linkHref'!=_0x24a255['key'])return;const _0x163a3d=_0x24a255['newValue'],_0xe20e27=_0x4093c7['locale'];return{'type':'format','content':null==_0x163a3d?o(_0xe20e27,'*Remove\x20link*'):o(_0xe20e27,'*Set\x20link:*\x20%0','\x22'+_0x163a3d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x396a2e=this['editor'],_0x4e2fda=_0x396a2e['locale'];_0x396a2e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4b363a=>{if('formatInline'!=_0x4b363a['type'])return;const {data:_0x4abb78}=_0x4b363a;if(_0x4abb78){if('link'==_0x4abb78['commandName']){const _0x378760=_0x4abb78['commandParams'][0x0];return{'type':'format','content':o(_0x4e2fda,'*Set\x20link:*\x20%0','\x22'+_0x378760+'\x22')};}return'unlink'==_0x4abb78['commandName']?{'type':'format','content':o(_0x4e2fda,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x49ae3f{['afterInit'](){const _0x4af408=this['editor'],_0x69e753=_0x4af408['locale'];if(!_0x4af408['plugins']['has']('LegacyListEditing'))return;const _0x1ac94e=_0x4af408['plugins']['get']('TrackChangesEditing'),_0x58ad85=_0x4af408['plugins']['has']('LegacyTodoListEditing');function _0x2ccb88(_0x3172fe){return()=>{const _0x4cfabe=_0x4af408['model']['document']['selection'],_0x24aeaa=_0x4af408['commands']['get'](_0x3172fe);if(_0x24aeaa['value'])return void _0x4af408['execute']('paragraph',{});const _0x2d1838=_0x3172fe['slice'](0x0,-0x4),_0xd9bf08=function(_0x251808,_0x487e23,_0xdf23da){let _0x5dd993=Array['from'](_0x251808)['filter'](_0x473d8b=>function(_0x212af8,_0xd68173){return _0xd68173['checkChild'](_0x212af8['parent'],'listItem')&&!_0xd68173['isObject'](_0x212af8);}(_0x473d8b,_0xdf23da));_0x5dd993=_0x5dd993['filter'](_0x5460ff=>!_0x5460ff['is']('element','listItem')||_0x5460ff['getAttribute']('listType')!=_0x487e23);const _0x531651=new Set();for(const _0x5c25ae of _0x5dd993)_0x5c25ae['is']('element','listItem')?_0x531651['add'](me(_0x5c25ae)):_0x531651['add'](_0x5c25ae);return Array['from'](_0x531651);}(_0x4cfabe['getSelectedBlocks'](),_0x2d1838,_0x4af408['model']['schema']);_0x4af408['model']['change'](()=>{for(const _0x222f71 of _0xd9bf08)_0x1ac94e['markBlockFormat'](_0x222f71,{'commandName':_0x3172fe,'commandParams':[{'forceValue':!_0x24aeaa['value']}],'formatGroupId':'blockName'},fe(_0x222f71));});};}function _0x30a79d(_0xe561bb){return()=>{const _0x4cc506=function(_0x5a6a2a){let _0x452722=Array['from'](_0x5a6a2a);const _0x2203c=_0x452722['findIndex'](_0x3bd669=>'listItem'!=_0x3bd669['name']);return _0x2203c>-0x1&&(_0x452722=_0x452722['slice'](0x0,_0x2203c)),_0x452722;}(_0x4af408['model']['document']['selection']['getSelectedBlocks']()),_0x399858=_0x4af408['model']['createRange'](_0x4af408['model']['createPositionAt'](_0x4cc506[0x0],'before'),_0x4af408['model']['createPositionAt'](_0x4cc506[_0x4cc506['length']-0x1],'end'));_0x4af408['model']['change'](()=>{_0x1ac94e['markBlockFormat'](_0x399858,{'commandName':_0xe561bb,'commandParams':[],'formatGroupId':'listIndent'},function(_0x549bdb){const _0x2cdf27=new Set();for(const _0x230772 of _0x549bdb){let _0x5767e2=_0x230772['nextSibling'];for(;_0x5767e2&&_0x5767e2['getAttribute']('listIndent')>_0x230772['getAttribute']('listIndent');)_0x2cdf27['add'](_0x5767e2),_0x5767e2=_0x5767e2['nextSibling'];}return Array['from'](_0x2cdf27);}(_0x4cc506));});};}_0x1ac94e['enableCommand']('numberedList',_0x2ccb88('numberedList')),_0x1ac94e['enableCommand']('bulletedList',_0x2ccb88('bulletedList')),_0x58ad85&&_0x1ac94e['enableCommand']('todoList',_0x2ccb88('todoList')),_0x1ac94e['enableCommand']('indentList',_0x30a79d('indentList')),_0x1ac94e['enableCommand']('outdentList',_0x30a79d('outdentList')),_0x58ad85&&_0x1ac94e['enableCommand']('checkTodoList',()=>{const _0x4f3ab6=_0x4af408['commands']['get']('checkTodoList'),_0x2bc295=Array['from'](_0x4f3ab6['_selectedElements']);_0x2bc295['filter'](_0x43f8ba=>_0x43f8ba['getAttribute']('todoListChecked')!=_0x4f3ab6['value']),_0x4af408['model']['change'](()=>{for(const _0x38ea11 of _0x2bc295)_0x1ac94e['markBlockFormat'](_0x38ea11,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x4f3ab6['value']}]});});}),_0x1ac94e['descriptionFactory']['registerElementLabel']('listItem',_0x370bbe=>o(_0x69e753,'ELEMENT_LIST_ITEM',_0x370bbe)),_0x1ac94e['descriptionFactory']['registerDescriptionCallback'](_0x1dfe1d=>{if('formatBlock'!=_0x1dfe1d['type']&&'formatInline'!=_0x1dfe1d['type'])return;const {data:_0x179715}=_0x1dfe1d;if(_0x179715){if('numberedList'==_0x179715['commandName']||'bulletedList'==_0x179715['commandName']||'todoList'==_0x179715['commandName'])switch(_0x179715['commandName']['replace']('List','')){case'bulleted':return _0xef9f15(o(_0x69e753,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xef9f15(o(_0x69e753,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xef9f15(o(_0x69e753,'ELEMENT_TODO_LIST'));}if('indentList'==_0x179715['commandName'])return{'type':'format','content':o(_0x69e753,'*Indent:*\x20%0',o(_0x69e753,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x179715['commandName'])return{'type':'format','content':o(_0x69e753,'*Outdent:*\x20%0',o(_0x69e753,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x179715['commandName'])return _0x179715['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x69e753,'*Check\x20item*')}:{'type':'format','content':o(_0x69e753,'*Uncheck\x20item*')};}function _0xef9f15(_0x12d103){return{'type':'format','content':o(_0x69e753,'*Change\x20to:*\x20%0',_0x12d103)};}});}}function me(_0x37d0ad){const _0xdd946a=_0x37d0ad['getAttribute']('listIndent');if(0x0==_0xdd946a)return _0x37d0ad;let _0xdd9bab=_0x37d0ad;for(;_0x37d0ad['previousSibling']&&_0x37d0ad['previousSibling']['is']('element','listItem');){const _0x371109=_0x37d0ad['previousSibling']['getAttribute']('listIndent');if(_0x371109==_0xdd946a)_0xdd9bab=_0x37d0ad['previousSibling'];else{if(_0x371109<_0xdd946a)break;}_0x37d0ad=_0x37d0ad['previousSibling'];}return _0xdd9bab;}function fe(_0x12d048){const _0x5ef46e=[];if(_0x12d048['is']('element','listItem')&&_0x12d048['getAttribute']('listIndent')>0x0){let _0x3ad0b3=_0x12d048['nextSibling'];for(;_0x3ad0b3&&'listItem'==_0x3ad0b3['name']&&_0x3ad0b3['getAttribute']('listIndent')==_0x12d048['getAttribute']('listIndent');)_0x5ef46e['push'](_0x3ad0b3),_0x3ad0b3=_0x3ad0b3['nextSibling'];}return _0x5ef46e;}class K extends _0x49ae3f{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x25be4a=this['editor']['config']['get']('list.properties'),_0x4efda6=this['editor']['plugins']['get']('TrackChangesEditing');_0x25be4a['styles']&&_0x4efda6['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x25be4a['reversed']&&_0x4efda6['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x25be4a['startIndex']&&_0x4efda6['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4efda6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x37d46c,_0x51fbaf={}){const _0x3bd527=this['editor']['plugins']['get']('TrackChangesEditing'),_0x13802b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x3bd527['markMultiRangeBlockFormat'](_0x13802b,{'commandName':'listStyle','commandParams':[{'type':_0x51fbaf['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x7cbed2,_0x43760d={}){const _0x2c5268=this['editor']['plugins']['get']('TrackChangesEditing'),_0xac0962=this['_getSuggestionBlocks'](_0x2d1f78=>_0x2d1f78['is']('element','listItem')&&'numbered'===_0x2d1f78['getAttribute']('listType'));if(_0xac0962['length']<0x1)return;const _0x51d834=_0xac0962['map'](_0x1348d2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x1348d2,'before'),this['editor']['model']['createPositionAt'](_0x1348d2,0x0)));this['editor']['model']['change'](()=>{_0x2c5268['markMultiRangeBlockFormat'](_0x51d834,{'commandName':'listReversed','commandParams':[{'reversed':_0x43760d['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0xd070b0,_0xf863cc={}){const _0x598fe6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x12716f=this['_getSuggestionBlocks'](_0x2aab9e=>_0x2aab9e['is']('element','listItem')&&'numbered'===_0x2aab9e['getAttribute']('listType'));if(_0x12716f['length']<0x1)return;const _0x266a36=_0x12716f['map'](_0x10119a=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x10119a,'before'),this['editor']['model']['createPositionAt'](_0x10119a,0x0)));this['editor']['model']['change'](()=>{_0x598fe6['markMultiRangeBlockFormat'](_0x266a36,{'commandName':'listStart','commandParams':[{'startIndex':_0xf863cc['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0xa58841){if('formatBlock'!=_0xa58841['type']&&'formatInline'!=_0xa58841['type'])return;const _0x13cde4=this['editor']['locale'],{data:_0x1f0e19}=_0xa58841;if(!_0x1f0e19)return;let _0x566f55,_0x49d6a9;switch(_0x1f0e19['commandName']){case'listStyle':_0x566f55='*Change\x20to:*\x20%0',_0x49d6a9={'type':'format','content':o(_0x13cde4,_0x566f55,o(_0x13cde4,this['_getTranslationKeyForListStyle'](_0x1f0e19['commandParams'][0x0]['type'])))};break;case'listReversed':_0x566f55=_0x1f0e19['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x49d6a9={'type':'format','content':o(_0x13cde4,_0x566f55)};break;case'listStart':_0x566f55='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x49d6a9={'type':'format','content':o(_0x13cde4,_0x566f55,_0x1f0e19['commandParams'][0x0]['startIndex'])};}return _0x49d6a9;}['_getSuggestionBlocksForListStyle'](){const _0x20a113=this['editor']['plugins']['get']('LegacyListUtils');let _0x11d3a6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x11d3a6[0x0]?.['is']('element','listItem')&&_0x11d3a6['unshift'](..._0x20a113['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x11d3a6[_0x11d3a6['length']-0x1]?.['is']('element','listItem')&&_0x11d3a6['push'](..._0x20a113['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x11d3a6=[...new Set(_0x11d3a6)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x11d3a6=_0x11d3a6['filter'](_0x4c54da=>_0x4c54da['is']('element','listItem'))),_0x11d3a6;}['_getSuggestionBlocks'](_0x3b3b6c){const _0x15cd09=this['editor']['plugins']['get']('LegacyListUtils');let _0x170ce6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x3b3b6c)['map'](_0x225e79=>{const _0x3d318e=this['editor']['model']['createPositionAt'](_0x225e79,0x0);return[..._0x15cd09['getSiblingNodes'](_0x3d318e,'backward'),..._0x15cd09['getSiblingNodes'](_0x3d318e,'forward')];})['flat']();return _0x170ce6=[...new Set(_0x170ce6)],_0x170ce6;}['_getTranslationKeyForListStyle'](_0x4b1f48){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4b1f48)||'default')['toUpperCase']()+'_LIST_'+_0x4b1f48['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x49ae3f{['afterInit'](){const _0x3b3a8c=this['editor'];if(!_0x3b3a8c['plugins']['has']('MediaEmbedEditing'))return;const _0x4479cd=_0x3b3a8c['plugins']['get']('TrackChangesEditing'),_0x3b5027=_0x3b3a8c['locale'];_0x4479cd['enableCommand']('mediaEmbed'),_0x4479cd['descriptionFactory']['registerElementLabel']('media',_0x202156=>o(_0x3b5027,'ELEMENT_MEDIA',_0x202156)),_0x3b3a8c['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x1a4c4f,{writer:_0x306e6b,options:_0x24df7c})=>{if(_0x24df7c['showSuggestionHighlights'])return _0x306e6b['createEmptyElement']('div');},'converterPriority':'high'}),_0x3b3a8c['data']['downcastDispatcher']['on']('attribute:url:media',(_0x550161,_0x1997a3,_0x4fdd8f)=>{_0x4fdd8f['options']['showSuggestionHighlights']&&_0x550161['stop']();},{'priority':'high'});}}class gt extends _0x49ae3f{['afterInit'](){const _0x1fc1b3=this['editor'];_0x1fc1b3['plugins']['has']('MentionEditing')&&_0x1fc1b3['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x49ae3f{['afterInit'](){const _0x4fe05a=this['editor'],_0x513b21=_0x4fe05a['plugins']['get']('TrackChangesEditing');_0x4fe05a['plugins']['has']('MultiLevelList')&&(_0x513b21['enableDefaultAttributesIntegration']('multiLevelList'),_0x513b21['registerBlockAttribute']('listMarkerStyle'),_0x513b21['descriptionFactory']['registerDescriptionCallback'](_0x429b08=>this['handleDescriptions'](_0x429b08)));}['handleDescriptions'](_0x1676db){const _0x1ca14b=this['editor']['locale'],{data:_0x27f213}=_0x1676db,_0x47763={'type':'format','content':''};if(_0x27f213&&'listMarkerStyle'==_0x27f213['key']){if(!_0x27f213['oldValue'])return{'type':'format','content':o(_0x1ca14b,'*Set\x20format:*\x20%0',o(_0x1ca14b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x27f213['newValue']+')'};if(!_0x27f213['newValue']){let _0x580965=_0x1676db['head'];for(;_0x580965;){if(_0x580965['data']&&'listType'==_0x580965['data']['key']&&_0x580965['data']['newValue'])return _0x47763;_0x580965=_0x580965['next'];}return{'type':'format','content':o(_0x1ca14b,'*Remove\x20format:*\x20%0',o(_0x1ca14b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x27f213['oldValue']+')'};}}}}class mt extends _0x49ae3f{['afterInit'](){const _0x3dbc4d=this['editor'];if(!_0x3dbc4d['plugins']['has']('PageBreakEditing'))return;_0x3dbc4d['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x40d412=_0x3dbc4d['plugins']['get']('TrackChangesEditing'),_0x577be1=_0x3dbc4d['locale'];_0x40d412['descriptionFactory']['registerElementLabel']('pageBreak',_0x55f2ec=>o(_0x577be1,'ELEMENT_PAGE_BREAK',_0x55f2ec));}}class dt extends _0x49ae3f{['afterInit'](){const _0x519412=this['editor'];if(!_0x519412['plugins']['has']('Paragraph'))return;const _0x50bf53=_0x519412['locale'],_0x5e4a49=_0x519412['plugins']['get']('TrackChangesEditing');_0x5e4a49['descriptionFactory']['registerElementLabel']('paragraph',_0x32824e=>o(_0x50bf53,'ELEMENT_PARAGRAPH',_0x32824e)),_0x5e4a49['enableDefaultAttributesIntegration']('paragraph'),_0x5e4a49['enableCommand']('insertParagraph'),_0x519412['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x519412),{'priority':'highest'}),_0x519412['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3d417c,_0x17e1d6,_0x29e0b2)=>{_0x29e0b2['options']['showSuggestionHighlights']&&nr(_0x519412,{'showActiveMarker':!0x1})(_0x3d417c,_0x17e1d6,_0x29e0b2);},{'priority':'highest'});const _0x5c64f2=_0x5e4a49['descriptionFactory'];_0x5c64f2['registerDescriptionCallback'](_0x5eb565=>{if('insertion'!==_0x5eb565['type'])return;const {start:_0x194e65,end:_0x8e3ade}=_0x5eb565['getFirstRange']();if(!_0x194e65['isTouching'](_0x8e3ade)||!_0x194e65['nodeAfter'])return;const _0x21fea9=_0x519412['model']['schema'],_0xd0966=_0x194e65['nodeAfter'];return _0x21fea9['isBlock'](_0xd0966)&&!_0x21fea9['isLimit'](_0xd0966)&&_0x21fea9['checkChild'](_0xd0966,'$text')?{'type':'insertion','content':o(_0x50bf53,'*Insert:*\x20%0',_0x5c64f2['getItemLabel'](_0xd0966,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d734b=this['editor'],_0x581ea8=_0x1d734b['locale'];_0x1d734b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3158a2=>{if('formatBlock'!=_0x3158a2['type'])return;const {data:_0x560659}=_0x3158a2;return _0x560659&&'paragraph'==_0x560659['commandName']?{'type':'format','content':o(_0x581ea8,'*Change\x20to:*\x20%0',o(_0x581ea8,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0xa61d0b,{showActiveMarker:_0x2c794a=!0x0}={}){return(_0x512d83,_0x1e6745,_0x48aff9)=>{const _0x33f226=_0xa61d0b['plugins']['get']('TrackChangesEditing'),_0x1f2f15=_0x1e6745['markerRange']['start'],_0xc0abca=_0x1e6745['markerRange']['end'],_0x195048=_0xa61d0b['model']['schema'];if(!_0x1f2f15['isTouching'](_0xc0abca)||!_0x1f2f15['nodeAfter'])return;const _0x7617f4=_0x1f2f15['nodeAfter'];if(_0x195048['isBlock'](_0x7617f4)&&!_0x195048['isLimit'](_0x7617f4)&&_0x195048['checkChild'](_0x7617f4,'$text')){if(!_0x48aff9['consumable']['consume'](_0x1e6745['markerRange'],_0x512d83['name']))return;const _0x19e74a=_0x48aff9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x3f49a4=_0x48aff9['mapper']['toViewPosition'](_0xc0abca);_0x2c794a&&_0x33f226['activeMarkers']['includes'](_0x1e6745['markerName'])&&_0x48aff9['writer']['addClass']('ck-suggestion-marker--active',_0x19e74a),_0x48aff9['writer']['insert'](_0x3f49a4,_0x19e74a),_0x48aff9['mapper']['bindElementToMarker'](_0x19e74a,_0x1e6745['markerName']);}};}class pt extends _0x49ae3f{['afterInit'](){const _0x149d94=this['editor'];if(!_0x149d94['plugins']['has']('RemoveFormatEditing'))return;_0x149d94['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x208bc0=this['editor'];_0x208bc0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41a66c=>{if('formatBlock'!=_0x41a66c['type']&&'formatInline'!=_0x41a66c['type'])return;const {data:_0x216ccf}=_0x41a66c;return _0x216ccf&&'removeFormat'==_0x216ccf['commandName']?{'type':'format','content':o(_0x208bc0['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x49ae3f{['afterInit'](){const _0x2fab25=this['editor'];if(!_0x2fab25['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x1a76cd=_0x2fab25['plugins']['get']('TrackChangesEditing');_0x1a76cd['enableCommand']('goToPreviousRestrictedEditingException'),_0x1a76cd['enableCommand']('goToNextRestrictedEditingException');const _0x3328b8=_0x2fab25['plugins']['get']('RestrictedEditingModeEditing');_0x3328b8['enableCommand']('trackChanges'),_0x3328b8['enableCommand']('acceptSuggestion'),_0x3328b8['enableCommand']('discardSuggestion'),_0x3328b8['enableCommand']('acceptAllSuggestions'),_0x3328b8['enableCommand']('discardAllSuggestions'),_0x3328b8['enableCommand']('acceptSelectedSuggestions'),_0x3328b8['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x49ae3f{static get['requires'](){return[_0x2a5649];}['init'](){const _0x9270=this['editor'],_0x44826d=_0x9270['plugins']['get']('TrackChangesEditing');_0x44826d['enableCommand']('shiftEnter'),_0x9270['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x9270),{'priority':'high'}),_0x9270['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x9270),{'priority':'high'}),_0x9270['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1d150e,_0x525ba4,_0x51338d)=>{_0x51338d['options']['showSuggestionHighlights']&&de(_0x9270,{'showActiveMarker':!0x1})(_0x1d150e,_0x525ba4,_0x51338d);}),_0x44826d['descriptionFactory']['registerElementLabel']('softBreak',_0x48ca93=>o(_0x9270['locale'],'ELEMENT_LINE_BREAK',_0x48ca93));}}function de(_0x117877,{showActiveMarker:_0x5df7a4=!0x0}={}){return(_0x4d3fcd,_0x41a731,_0x56ff32)=>{const _0x105a10=_0x117877['plugins']['get']('TrackChangesEditing');if(!_0x56ff32['consumable']['test'](_0x41a731['markerRange'],_0x4d3fcd['name']))return;const _0x21894c=_0x117877['model'];for(const _0x3a07f7 of _0x41a731['markerRange']['getItems']()){if(!_0x3a07f7['is']('element','softBreak'))continue;const _0x35e01f='deletion'==_0x41a731['markerName']['split'](':')[0x1]?'merge':'split',_0x268665=_0x56ff32['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35e01f}),_0x247755=_0x56ff32['mapper']['toViewPosition'](_0x21894c['createPositionBefore'](_0x3a07f7));_0x5df7a4&&_0x105a10['activeMarkers']['includes'](_0x41a731['markerName'])&&_0x56ff32['writer']['addClass']('ck-suggestion-marker--active',_0x268665),_0x56ff32['writer']['insert'](_0x247755,_0x268665),_0x56ff32['mapper']['bindElementToMarker'](_0x268665,_0x41a731['markerName']);}};}class wt extends _0x49ae3f{['afterInit'](){const _0x58ec17=this['editor'],_0x123d10=_0x58ec17['model'],_0x1bcc02=_0x58ec17['locale'];if(!_0x58ec17['plugins']['has']('StandardEditingModeEditing'))return;const _0x2d84a0=_0x58ec17['plugins']['get']('TrackChangesEditing'),_0x4b30f6='restrictedEditingException',_0x458e1a=_0x58ec17['commands']['get'](_0x4b30f6);_0x2d84a0['enableCommand'](_0x4b30f6,(_0x2006a8,_0x2dda7e={})=>{const _0x4efeda=_0x123d10['document']['selection'];if(_0x4efeda['isCollapsed'])return void _0x2006a8(_0x2dda7e);const _0x3ce19d=void 0x0!==_0x2dda7e['forceValue']?_0x2dda7e['forceValue']:!_0x458e1a['value'];_0x123d10['change'](()=>{const _0x2eadb3=Array['from'](_0x4efeda['getRanges']());for(const _0x55a3cf of _0x2eadb3){const _0x59cb95=_0x3ce19d?[_0x55a3cf]:io(_0x4b30f6,_0x55a3cf,_0x123d10);for(const _0x3aa6ea of _0x59cb95)_0x2d84a0['markInlineFormat'](_0x3aa6ea,{'commandName':_0x4b30f6,'commandParams':[{'forceValue':_0x3ce19d}]});}});}),_0x2d84a0['descriptionFactory']['registerDescriptionCallback'](_0x2d3bda=>{if('formatBlock'!=_0x2d3bda['type']&&'formatInline'!=_0x2d3bda['type'])return;const {data:_0x58eb8e}=_0x2d3bda;return _0x58eb8e&&_0x58eb8e['commandName']==_0x4b30f6?_0x58eb8e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1bcc02,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1bcc02,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x49ae3f{['afterInit'](){const _0x287162=this['editor'];if(!_0x287162['plugins']['has']('Style')||!_0x287162['plugins']['has']('DataSchema'))return;const _0x1e8577=_0x287162['plugins']['get']('TrackChangesEditing'),_0x3669f1=_0x287162['locale'],_0x4aebee=_0x287162['config']['get']('style')||{},_0x418a26=_0x287162['plugins']['get']('GeneralHtmlSupport'),_0x31fda5=_0x287162['plugins']['get']('StyleUtils')['normalizeConfig'](_0x287162['plugins']['get']('DataSchema'),_0x4aebee['definitions']);_0x1e8577['enableDefaultAttributesIntegration']('style');const _0x170618=new Set();for(const _0x2dbd5b of _0x31fda5['block']){const _0x4492f7=_0x418a26['getGhsAttributeNameForElement'](_0x2dbd5b['element']);_0x170618['add'](_0x4492f7);}const _0x14903e=new Set();for(const _0x471d5d of _0x31fda5['inline']){const _0x34f816=_0x418a26['getGhsAttributeNameForElement'](_0x471d5d['element']);_0x14903e['add'](_0x34f816);for(const _0xb5ed8b of _0x471d5d['ghsAttributes'])_0x14903e['add'](_0xb5ed8b);}for(const _0x3adb15 of _0x170618)_0x1e8577['registerBlockAttribute'](_0x3adb15),_0x1e8577['descriptionFactory']['registerAttributeLabel'](_0x3adb15,o(_0x3669f1,'FORMAT_STYLE'));for(const _0x26772d of _0x14903e)_0x1e8577['registerInlineAttribute'](_0x26772d),_0x1e8577['descriptionFactory']['registerAttributeLabel'](_0x26772d,o(_0x3669f1,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e4c6b=this['editor'],_0x492eb5=_0x1e4c6b['locale'];_0x1e4c6b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x474e50=>{if('formatBlock'!=_0x474e50['type']&&'formatInline'!=_0x474e50['type'])return;const {data:_0x4441cc}=_0x474e50;return _0x4441cc&&'style'===_0x4441cc['commandName']?_0x4441cc['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x492eb5,'*Set\x20format:*\x20%0',_0x4441cc['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x492eb5,'*Remove\x20format:*\x20%0',_0x4441cc['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x49ae3f{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x49d241){super(_0x49d241),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x3cedae=this['editor'],_0x5526d4=_0x3cedae['model']['document']['selection'];if(!_0x3cedae['plugins']['has']('TableEditing'))return;const _0x108cad=_0x3cedae['locale'],_0x460221=_0x3cedae['plugins']['get']('TrackChangesEditing'),_0x327cee=_0x3cedae['plugins']['get']('TableUtils');_0x460221['descriptionFactory']['registerElementLabel']('table',_0x241726=>o(_0x108cad,'ELEMENT_TABLE',_0x241726)),this['_setupColumnsRowsFixing'](),_0x460221['enableCommand']('insertTable'),_0x460221['enableCommand']('selectTableRow'),_0x460221['enableCommand']('selectTableColumn');for(const _0x49b7e3 of['insertTableRowAbove','insertTableRowBelow']){const _0x3f51d3=_0x3cedae['commands']['get'](_0x49b7e3);_0x460221['enableCommand'](_0x49b7e3,_0x4f1f39=>{_0x3cedae['model']['change'](_0x2f76b3=>{_0x4f1f39();const _0xa79528='above'===_0x3f51d3['order'],_0x5ab500=_0x327cee['getSelectionAffectedTableCells'](_0x5526d4),_0x2ecf1b=_0x327cee['getRowIndexes'](_0x5ab500),_0x1e5071=_0xa79528?_0x2ecf1b['first']-0x1:_0x2ecf1b['last']+0x1,_0x3cbe1f=_0x5ab500[0x0]['findAncestor']('table'),_0x2b3c36=_0x327cee['createTableWalker'](_0x3cbe1f,{'startRow':_0x1e5071,'endRow':_0x1e5071}),_0x57e916=Array['from'](_0x2b3c36)['map'](_0x20d547=>_0x2f76b3['createRangeOn'](_0x20d547['cell']));_0x460221['markMultiRangeInsertion'](_0x57e916,'tableRow');});});}for(const _0x1c41de of['insertTableColumnLeft','insertTableColumnRight']){const _0x5d2424=_0x3cedae['commands']['get'](_0x1c41de);_0x460221['enableCommand'](_0x1c41de,_0x39970b=>{_0x3cedae['model']['change'](_0x4a846b=>{_0x39970b();const _0x64d160='left'===_0x5d2424['order'],_0xd7f1e0=_0x327cee['getSelectionAffectedTableCells'](_0x5526d4),_0x5d4e8e=_0x327cee['getColumnIndexes'](_0xd7f1e0),_0x3cbd12=_0x64d160?_0x5d4e8e['first']-0x1:_0x5d4e8e['last']+0x1,_0x4f0e79=_0xd7f1e0[0x0]['findAncestor']('table'),_0x4be5d1=_0x327cee['createTableWalker'](_0x4f0e79,{'startRow':0x0,'column':_0x3cbd12,'includeAllSlots':!0x1}),_0x2888fd=Array['from'](_0x4be5d1)['map'](_0x1c241e=>_0x4a846b['createRangeOn'](_0x1c241e['cell']));_0x460221['markMultiRangeInsertion'](_0x2888fd,'tableColumn');});});}for(const _0x211595 of['removeTableRow','removeTableColumn']){const _0x3c4c8c=_0x211595['substr'](0xb),_0x2d78e8=_0x3c4c8c['toLowerCase'](),_0x5829ad=_0x2d78e8['substr'](0x0,0x3)+'span',_0xcff730='table'+_0x3c4c8c,_0x5a8b9f='min'+_0x3c4c8c,_0x111e34='max'+_0x3c4c8c;_0x460221['enableCommand'](_0x211595,()=>{_0x3cedae['model']['change'](_0x12a5ec=>{const _0x403d24=_0x327cee['getSelectionAffectedTableCells'](_0x5526d4),_0x54ab03=_0x403d24[0x0]['findAncestor']('table');let _0x21c501;if('removeTableRow'==_0x211595){const _0x3e6fa7=_0x327cee['getRowIndexes'](_0x403d24);_0x21c501={'startRow':_0x3e6fa7['first'],'endRow':_0x3e6fa7['last'],'includeAllSlots':!0x0};}else{const _0x5e1379=_0x327cee['getColumnIndexes'](_0x403d24);_0x21c501={'startColumn':_0x5e1379['first'],'endColumn':_0x5e1379['last'],'includeAllSlots':!0x0};}const _0x516723=_0x327cee['createTableWalker'](_0x54ab03,_0x21c501),_0x53be23=Array['from'](_0x516723)['map'](({cell:_0x27930d})=>_0x27930d),_0x59ce82=Ee(_0x53be23['filter'](_0x5cb21c=>_0x5cb21c['hasAttribute'](_0x5829ad))),_0x4dd520=Ee(_0x53be23['filter'](_0xd2cd41=>!_0xd2cd41['hasAttribute'](_0x5829ad)))['map'](_0x326c38=>_0x12a5ec['createRangeOn'](_0x326c38)),_0x475e87=_0x460221['markMultiRangeDeletion'](_0x4dd520,_0xcff730);if(_0x475e87&&('tableRow'==_0x475e87['subType']||'tableColumn'==_0x475e87['subType'])){const _0x44afd0=this['_getSuggestionCoords'](_0x475e87);for(const _0x2d6a48 of _0x59ce82){const _0x1eeb61=_0x12a5ec['createRangeOn'](_0x2d6a48),_0x5a20e5=_0x327cee['getCellLocation'](_0x2d6a48),_0x4bf3f=_0x2d6a48['getAttribute'](_0x5829ad)-0x1,_0xdab547=_0x44afd0[_0x5a8b9f],_0xa423ac=_0x44afd0[_0x111e34];_0xdab547<=_0x5a20e5[_0x2d78e8]&&_0x5a20e5[_0x2d78e8]+_0x4bf3f<=_0xa423ac&&_0x475e87['addRange'](_0x1eeb61);}}});});}function _0x3ff1cb(_0x3decde){const _0x5ee580=Array['from'](_0x5526d4['getRanges']())['map'](_0x44d430=>_0x12eb8f['fromRange'](_0x44d430));_0x3cedae['model']['change'](_0x2a73dd=>{const _0x378a9f=_0x2a73dd['batch'];_0x3decde=_0x3decde['filter'](_0x378f49=>'$graveyard'!=_0x378f49['root']['rootName']),_0x2a73dd['setSelection'](_0x3decde),_0x3cedae['commands']['get']('removeTableRow')['refresh'](),_0x3cedae['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x3cedae['model']['enqueueChange'](()=>{_0x3cedae['model']['enqueueChange'](_0x378a9f,_0x476c9c=>{const _0x171ceb=_0x5ee580['filter'](_0x106a2c=>'$graveyard'!=_0x106a2c['root']['rootName']);_0x171ceb['length']>0x0&&_0x476c9c['setSelection'](_0x171ceb);for(const _0x17da11 of _0x5ee580)_0x17da11['detach']();});});});}function _0x5810b6(_0x215671){_0x3cedae['model']['change'](_0x1d3b79=>{const _0x3a1b7f=Array['from'](_0x5526d4['getRanges']())['map'](_0x32acea=>_0x12eb8f['fromRange'](_0x32acea)),_0x39cc6f=[];for(const _0x69e0aa of _0x215671)for(const _0x17c220 of _0x69e0aa['getItems']({'shallow':!0x0}))_0x39cc6f['push'](_0x17c220);for(const _0x4326e7 of _0x39cc6f)'$graveyard'!=_0x4326e7['root']['rootName']&&(_0x1d3b79['setSelection'](_0x1d3b79['createPositionAt'](_0x4326e7,0x0)),_0x3cedae['commands']['get']('removeTableColumn')['refresh'](),_0x3cedae['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x2f67da=_0x3a1b7f['filter'](_0x16e69b=>'$graveyard'!=_0x16e69b['root']['rootName']);_0x2f67da['length']>0x0&&_0x1d3b79['setSelection'](_0x2f67da);for(const _0x46ac5c of _0x3a1b7f)_0x46ac5c['detach']();});}function _0x3e8740(_0x586466,_0x4e9c8f){return _0x4e9c8f['every'](_0x33ef03=>_0x586466['some'](_0x2b2fbb=>_0x2b2fbb['end']['isEqual'](_0x33ef03['start'])||_0x33ef03['end']['isEqual'](_0x2b2fbb['start'])));}function _0x41596b(_0x2c210e,_0x4f0f24){return!_0x2c210e['some'](_0x41638f=>_0x4f0f24['some'](_0x5259bf=>_0x41638f['isIntersecting'](_0x5259bf)))&&_0x2c210e['some'](_0x46f2d=>_0x4f0f24['some'](_0x562c1f=>_0x46f2d['end']['isTouching'](_0x562c1f['start'])));}_0x3cedae['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x229697,_0x1a6a67,_0x469c20)=>{if(!_0x469c20['options']['showSuggestionHighlights'])return;const _0x3102da=_0x1a6a67['item'];if(!_0x3102da)return;const _0x25e4c8=_0x469c20['mapper']['toViewElement'](_0x3102da);function _0x58f909(_0x516cc6){return Array['isArray'](_0x516cc6)?_0x516cc6:[_0x516cc6];}_0x25e4c8&&'tableCell'===_0x3102da['name']&&_0x1087f0(_0x25e4c8,_0x469c20['writer'],(_0x5185fa,_0x1bd986,_0x2d58d3)=>_0x2d58d3['addClass'](_0x58f909(_0x1bd986['classes']),_0x5185fa),(_0x22c934,_0x10c927,_0x5eeb76)=>_0x5eeb76['removeClass'](_0x58f909(_0x10c927['classes']),_0x22c934));},{'priority':'highest'}),_0x460221['descriptionFactory']['registerDescriptionCallback'](_0x47071a=>{if('insertion'!=_0x47071a['type']&&'deletion'!=_0x47071a['type'])return;const _0x3cf6c3=_0x47071a['getContainedElement']();if(null!=_0x3cf6c3&&_0x3cf6c3['is']('element','table')){if('insertion'==_0x47071a['type']){const _0x3e352a=_0x47071a['getItems']()['filter'](_0x4a413c=>_0x4a413c['is']('$textProxy'))['map'](_0x541dd7=>_0x541dd7['data']);if(_0x3e352a['length'])return{'type':'insertion','content':o(_0x108cad,'*Insert:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3e352a['join']('\x20')+'\x22'))};}if('deletion'==_0x47071a['type']){const _0x5c6c8b=_0x47071a['getItems']()['filter'](_0x155e60=>_0x155e60['is']('$textProxy'))['map'](_0x37bfb6=>_0x37bfb6['data']);if(_0x5c6c8b['length'])return{'type':'deletion','content':o(_0x108cad,'*Remove:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5c6c8b['join']('\x20')+'\x22'))};}}}),_0x460221['descriptionFactory']['registerDescriptionCallback'](_0x5c1de4=>{if('tableRow'==_0x5c1de4['subType']){const _0x312bb5=_0x5c1de4['getItems']()['filter'](_0x389b87=>_0x389b87['is']('$textProxy'))['map'](_0x20364e=>_0x20364e['data']),_0x43ec4d=this['_getSuggestionCoords'](_0x5c1de4),_0x1b7952=_0x43ec4d['maxRow']-_0x43ec4d['minRow']+0x1;if('insertion'==_0x5c1de4['type'])return _0x312bb5['length']?{'type':'insertion','content':o(_0x108cad,'*Insert:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b7952,'\x22'+_0x312bb5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x108cad,'*Insert:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_ROW',_0x1b7952))};if('deletion'==_0x5c1de4['type'])return _0x312bb5['length']?{'type':'deletion','content':o(_0x108cad,'*Remove:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x1b7952,'\x22'+_0x312bb5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x108cad,'*Remove:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_ROW',_0x1b7952))};}if('tableColumn'==_0x5c1de4['subType']){const _0x426197=_0x5c1de4['getItems']()['filter'](_0x15b9bc=>_0x15b9bc['is']('$textProxy'))['map'](_0x1c0eab=>_0x1c0eab['data']),_0x1a2bb2=this['_getSuggestionCoords'](_0x5c1de4),_0x1d6425=_0x1a2bb2['maxColumn']-_0x1a2bb2['minColumn']+0x1;if('insertion'==_0x5c1de4['type'])return _0x426197['length']?{'type':'insertion','content':o(_0x108cad,'*Insert:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d6425,'\x22'+_0x426197['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x108cad,'*Insert:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_COLUMN',_0x1d6425))};if('deletion'==_0x5c1de4['type'])return _0x426197['length']?{'type':'deletion','content':o(_0x108cad,'*Remove:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1d6425,'\x22'+_0x426197['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x108cad,'*Remove:*\x20%0',o(_0x108cad,'ELEMENT_TABLE_COLUMN',_0x1d6425))};}}),_0x460221['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x3ff1cb),_0x460221['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x3ff1cb),_0x460221['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x5810b6),_0x460221['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x5810b6),_0x460221['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3e8740),_0x460221['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3e8740),_0x460221['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x41596b),_0x460221['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x41596b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x337f79=this['editor'],_0x350cae=_0x337f79['model']['document']['selection'];return(_0x442c57,_0x175400)=>{_0x337f79['model']['change'](_0x399b57=>{const {commandName:_0x547790,commandParams:_0x5bf46c}=_0x175400;let _0x4d0a27=_0x442c57[0x0]['end']['nodeBefore'];_0x5bf46c&&_0x5bf46c[0x0]&&!0x1===_0x5bf46c[0x0]['forceValue']&&(_0x4d0a27=_0x442c57[0x0]['start']['nodeAfter']);const _0x75089c=_0x399b57['createRangeIn'](_0x4d0a27);if('$graveyard'==_0x75089c['root']['rootName'])return;const _0x428a5a=Array['from'](_0x350cae['getRanges']())['map'](_0x2a1907=>_0x12eb8f['fromRange'](_0x2a1907));_0x399b57['setSelection'](_0x75089c),_0x337f79['commands']['get'](_0x547790)['refresh'](),_0x5bf46c['push']({'forceDefaultExecution':!0x0}),_0x337f79['execute'](_0x547790,..._0x5bf46c);const _0x2bbe99=_0x428a5a['filter'](_0x161892=>'$graveyard'!=_0x161892['root']['rootName']);_0x2bbe99['length']>0x0&&_0x399b57['setSelection'](_0x2bbe99);for(const _0x2c173f of _0x428a5a)_0x2c173f['detach']();});};}['_getCoordsForCells'](_0x13811d){const _0x75bb6d=this['editor']['plugins']['get']('TableUtils');let _0x3a8a0=Number['MAX_SAFE_INTEGER'],_0xe35af7=Number['MIN_SAFE_INTEGER'],_0x201ee0=Number['MAX_SAFE_INTEGER'],_0x5851ce=Number['MIN_SAFE_INTEGER'];for(const _0x33f7b6 of _0x13811d){if('$graveyard'==_0x33f7b6['root']['rootName'])continue;const {row:_0x58d165,column:_0x214cf7}=_0x75bb6d['getCellLocation'](_0x33f7b6),_0x3bd57a=_0x33f7b6['hasAttribute']('rowspan')?_0x33f7b6['getAttribute']('rowspan')-0x1:0x0,_0x4a63a9=_0x33f7b6['hasAttribute']('colspan')?_0x33f7b6['getAttribute']('colspan')-0x1:0x0;_0x3a8a0=_0x58d165<_0x3a8a0?_0x58d165:_0x3a8a0,_0xe35af7=_0x58d165+_0x3bd57a>_0xe35af7?_0x58d165+_0x3bd57a:_0xe35af7,_0x201ee0=_0x214cf7<_0x201ee0?_0x214cf7:_0x201ee0,_0x5851ce=_0x214cf7+_0x4a63a9>_0x5851ce?_0x214cf7+_0x4a63a9:_0x5851ce;}return{'minRow':_0x3a8a0,'maxRow':_0xe35af7,'minColumn':_0x201ee0,'maxColumn':_0x5851ce};}['_setupColumnsRowsFixing'](){const _0x330c20=this['editor'],_0x346ccd=_0x330c20['plugins']['get']('TrackChangesEditing'),_0x44444b=_0x330c20['plugins']['get']('TableUtils');_0x330c20['model']['document']['on']('change:data',()=>{const _0x27b91d=Array['from'](_0x330c20['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x41b674,data:_0x25dfa3}of _0x27b91d){const {group:_0x157185,id:_0x3434af,subType:_0x348cbd}=_0x346ccd['_splitMarkerName'](_0x41b674);if('suggestion'!=_0x157185)continue;if(null!=_0x25dfa3['oldRange'])continue;const _0x4f4706=_0x346ccd['getSuggestion'](_0x3434af);this['_tablePostFixingSubtypes']['includes'](_0x348cbd)&&this['_tableSuggestions']['add'](_0x4f4706);}},{'priority':'low'});const _0x12f7b8=(_0x5c3617,_0x2b28ec)=>{let _0x35e782=!0x1;const _0x304456=_0x2b28ec['createRangeOn'](_0x5c3617),_0x11b676=_0x5c3617['findAncestor']('table'),_0xfeb65d=_0x44444b['getCellLocation'](_0x5c3617);for(const _0x293440 of this['_tableSuggestions']){const _0x3be5ce=_0x293440['subType'],_0x579192=_0x3be5ce['startsWith']('tablePaste'),_0x3e7f39=_0x3be5ce['substr'](_0x579192?0xa:0x5),_0xe40bb3=_0x3e7f39['toLowerCase'](),_0x173237=_0xe40bb3['substr'](0x0,0x3)+'span',_0x1f5b24='min'+_0x3e7f39,_0x511fea='max'+_0x3e7f39;if(!_0x293440['isInContent'])continue;if(_0x11b676!=_0x293440['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x293440['isIntersectingWithRange'](_0x304456))continue;const _0x4f5e48=_0x5c3617['hasAttribute'](_0x173237)?_0x5c3617['getAttribute'](_0x173237)-0x1:0x0,_0x22d3d1=this['_getSuggestionCoords'](_0x293440),_0x3f1be0=_0x22d3d1[_0x1f5b24],_0x36bb56=_0x22d3d1[_0x511fea];_0x3f1be0<=_0xfeb65d[_0xe40bb3]&&_0xfeb65d[_0xe40bb3]+_0x4f5e48<=_0x36bb56&&(_0x293440['addRange'](_0x304456),_0x35e782=!0x0);}return _0x35e782;};_0x330c20['model']['document']['registerPostFixer'](_0x3dcd0a=>{let _0x29f8d9=!0x1;for(const _0x12e83b of _0x330c20['model']['document']['differ']['getChanges']())if('insert'==_0x12e83b['type']){if('tableRow'==_0x12e83b['name']){for(const _0xdaa6d1 of _0x12e83b['position']['nodeAfter']['getChildren']())_0x29f8d9=_0x29f8d9||_0x12f7b8(_0xdaa6d1,_0x3dcd0a);}else'tableCell'==_0x12e83b['name']&&(_0x29f8d9=_0x29f8d9||_0x12f7b8(_0x12e83b['position']['nodeAfter'],_0x3dcd0a));}return _0x29f8d9;});}['_getSuggestionCoords'](_0x79cc3a){return this['_getCoordsForCells'](_0x79cc3a['getRanges']()['map'](_0x40aa27=>_0x40aa27['start']['nodeAfter']));}}function Ee(_0xc0d84f){return Array['from'](new Set(_0xc0d84f)['values']());}class St extends _0x49ae3f{static get['requires'](){return[jt];}['afterInit'](){const _0x450ab2=this['editor'],_0x22d589=_0x450ab2['model']['document']['selection'],_0x28f24d=_0x450ab2['locale'];if(!_0x450ab2['plugins']['has']('TableEditing'))return;const _0x41211f=_0x450ab2['plugins']['get']('TrackChangesEditing'),_0x56af0f=_0x450ab2['plugins']['get']('TableUtils'),_0x35f2c8=_0x450ab2['plugins']['get'](jt);_0x35f2c8['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x41211f['enableCommand']('mergeTableCells',()=>{const _0x498d2b=_0x56af0f['getSelectionAffectedTableCells'](_0x450ab2['model']['document']['selection']);_0x450ab2['model']['change'](()=>{_0x41211f['markMultiRangeBlockFormat'](_0x498d2b,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x450ab2['commands']['get']('mergeTableCells')['on']('execute',(_0x55cdd0,_0x79f670)=>{_0x450ab2['commands']['get']('trackChanges')['value']&&(_0x79f670['length']>0x0&&_0x79f670[_0x79f670['length']-0x1]&&_0x79f670[_0x79f670['length']-0x1]['forceDefaultExecution']||_0x41211f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x55cdd0['stop']());},{'priority':'highest'});for(const _0x2dc460 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x14c99a=_0x450ab2['commands']['get'](_0x2dc460);_0x41211f['enableCommand'](_0x2dc460,()=>{const _0x3ea1d0=_0x450ab2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x54808e=>_0x54808e['is']('element','tableCell')),_0x15cc96=_0x14c99a['value'];_0x450ab2['model']['change'](()=>{_0x41211f['markMultiRangeBlockFormat']([_0x3ea1d0,_0x15cc96],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x349269 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x239cf8=_0x450ab2['commands']['get'](_0x349269);_0x41211f['enableCommand'](_0x349269,()=>{const _0x14e2bf=_0x56af0f['getSelectionAffectedTableCells'](_0x450ab2['model']['document']['selection'])[0x0],_0x4a81a0=_0x14e2bf['findAncestor']('table'),{column:_0xdd6cc6,row:_0x22bccf}=_0x56af0f['getCellLocation'](_0x14e2bf);let _0x471060=[];if('horizontally'==_0x239cf8['direction']){const _0x15b829=_0x56af0f['createTableWalker'](_0x4a81a0,{'startRow':_0x22bccf,'endRow':_0x22bccf,'includeAllSlots':!0x0});_0x471060=Array['from'](_0x15b829)['map'](_0x59bb8a=>_0x59bb8a['cell']);}else{const _0x2d9eb9=_0x56af0f['createTableWalker'](_0x4a81a0,{'column':_0xdd6cc6,'includeAllSlots':!0x0});_0x471060=Array['from'](_0x2d9eb9)['map'](_0x2d2a06=>_0x2d2a06['cell']);}_0x450ab2['model']['change'](_0x4d8359=>{_0x41211f['markBlockFormat'](_0x4d8359['createRangeOn'](_0x14e2bf),{'commandName':_0x349269,'commandParams':[]},_0x471060,_0x349269);});});}_0x41211f['descriptionFactory']['registerDescriptionCallback'](_0x225d02=>{if('formatBlock'!=_0x225d02['type']&&'formatInline'!=_0x225d02['type'])return;const {data:_0x2c96fd}=_0x225d02;return _0x2c96fd&&'mergeTableCells'==_0x2c96fd['commandName']?{'type':'format','content':o(_0x28f24d,'*Merge\x20cells*')}:void 0x0;}),_0x41211f['descriptionFactory']['registerDescriptionCallback'](_0x113e08=>{if('formatBlock'!=_0x113e08['type']&&'formatInline'!=_0x113e08['type'])return;const {data:_0x43222e}=_0x113e08;return _0x43222e?'splitTableCellVertically'==_0x43222e['commandName']?{'type':'format','content':o(_0x28f24d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x43222e['commandName']?{'type':'format','content':o(_0x28f24d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3d076c=_0x35f2c8['_acceptFormatSuggestionCallbackFactory']();for(const _0x244ef1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x41211f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x244ef1,'accept',_0x3d076c);for(const _0x31e01c of['splitTableCellVertically','splitTableCellHorizontally'])_0x41211f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x31e01c,'accept',_0x3d076c);_0x41211f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x4ab85a=>{_0x450ab2['model']['change'](_0x3b4a60=>{const _0x51cdb2=Array['from'](_0x22d589['getRanges']())['map'](_0x20022e=>_0x12eb8f['fromRange'](_0x20022e));_0x3b4a60['setSelection'](_0x4ab85a),_0x450ab2['commands']['get']('mergeTableCells')['refresh'](),_0x450ab2['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x56f14b=_0x51cdb2['filter'](_0x337132=>'$graveyard'!=_0x337132['root']['rootName']);_0x56f14b['length']>0x0&&_0x3b4a60['setSelection'](_0x56f14b);for(const _0x23bfe7 of _0x51cdb2)_0x23bfe7['detach']();});});for(const _0x315a06 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x5a34aa=_0x450ab2['commands']['get'](_0x315a06);_0x5a34aa['on']('set:isEnabled',(_0x3836c7,_0x524fab,_0x53f9ca)=>{if(_0x53f9ca){const _0x369445=_0x450ab2['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dfeb9=>_0x2dfeb9['is']('element','tableCell'));this['_areMergableCells'](_0x5a34aa['value'],_0x369445)||(_0x3836c7['return']=!0x1,_0x3836c7['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x56a8fb=this['editor']['commands']['get']('mergeTableCells'),_0x3747f1=this['editor']['plugins']['get']('TableUtils');if(!_0x56a8fb['isEnabled'])return!0x1;const _0x4f1513=_0x3747f1['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x17cbcb of _0x4f1513)for(const _0x968ee of _0x4f1513)if(_0x17cbcb!=_0x968ee&&!this['_areMergableCells'](_0x17cbcb,_0x968ee))return!0x1;return!0x0;}['_areMergableCells'](_0x39c364,_0x58c7cc){const _0x173e51=this['editor']['plugins']['get']('TrackChangesEditing'),_0x48d52d=this['editor']['model']['createRangeOn'](_0x39c364),_0x630109=this['editor']['model']['createRangeOn'](_0x58c7cc),_0x556eba=new Set(),_0x58a3b5=new Set();for(const _0x5d385e of _0x173e51['getSuggestions']())if(('insertion'==_0x5d385e['type']||'deletion'==_0x5d385e['type']||'mergeTableCells'==_0x5d385e['subType'])&&_0x5d385e['isInContent']){for(const _0x4b9381 of _0x5d385e['getRanges']())_0x4b9381['containsRange'](_0x48d52d,!0x0)&&_0x556eba['add'](_0x5d385e['type']+':'+_0x5d385e['author']['id']),_0x4b9381['containsRange'](_0x630109,!0x0)&&_0x58a3b5['add'](_0x5d385e['type']+':'+_0x5d385e['author']['id']);}if(_0x556eba['size']!=_0x58a3b5['size'])return!0x1;for(const _0x5f10b1 of _0x556eba)if(!_0x58a3b5['has'](_0x5f10b1))return!0x1;return!0x0;}}class At extends _0x49ae3f{static get['requires'](){return[jt];}['afterInit'](){const _0x290412=this['editor'];if(!_0x290412['plugins']['has']('TableEditing'))return;const _0x49723e=_0x290412['locale'],_0x293319=_0x290412['plugins']['get']('TrackChangesEditing');_0x293319['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x293319['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x293319['registerBlockAttribute']('headingRows'),_0x293319['registerBlockAttribute']('headingColumns'),_0x293319['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x49723e,'FORMAT_HEADER_ROW')),_0x293319['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x49723e,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd2f36e=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d0047=this['editor']['plugins']['get']('TableUtils'),_0x3a98f7=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x577fa5({showActiveMarker:_0x3d6090=!0x0,setDataAttribute:_0x2062e9=!0x0}={}){return(_0x2af3ff,_0x3292ca,_0x441d66)=>{const {type:_0x576bce,id:_0x454304}=_0xd2f36e['_splitMarkerName'](_0x3292ca['markerName']),_0x31cb26=_0xd2f36e['getSuggestion'](_0x454304),_0x48a2fa=_0x31cb26['data'];if('formatBlock'!=_0x31cb26['type']||!_0x48a2fa||'setTableColumnHeader'!=_0x48a2fa['commandName'])return;if(_0x3292ca['item'])return void _0x2af3ff['stop']();if(!_0x441d66['consumable']['consume'](_0x3292ca['markerRange'],_0x2af3ff['name']))return;const _0x3c168c=_0x3292ca['markerRange']['start']['nodeAfter'],_0x4c4e52=_0x3292ca['markerRange']['end']['nodeBefore'],_0x3714b3=_0x3c168c['parent']['parent'],{column:_0x4909e7}=_0x4d0047['getCellLocation'](_0x3c168c),{column:_0x2d8004}=_0x4d0047['getCellLocation'](_0x4c4e52);for(let _0x3e1ae6=_0x4909e7;_0x3e1ae6<=_0x2d8004;_0x3e1ae6++){const _0xb6064e=_0x4d0047['createTableWalker'](_0x3714b3,{'column':_0x3e1ae6,'includeAllSlots':!0x1});for(const _0x293d03 of _0xb6064e){const _0x590831=_0x293d03['cell'],_0xdf4c48=_0x441d66['mapper']['toViewElement'](_0x590831);_0x441d66['writer']['addClass']('ck-suggestion-marker-'+_0x576bce,_0xdf4c48),_0x2062e9&&_0x441d66['writer']['setAttribute']('data-suggestion',_0x454304,_0xdf4c48),_0x441d66['mapper']['bindElementToMarker'](_0xdf4c48,_0x3292ca['markerName']),_0x3d6090&&(_0xd2f36e['activeMarkers']['includes'](_0x3292ca['markerName'])?_0x441d66['writer']['addClass']('ck-suggestion-marker--active',_0xdf4c48):_0x441d66['writer']['removeClass']('ck-suggestion-marker--active',_0xdf4c48));}}};}_0xd2f36e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x3a98f7),_0xd2f36e['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x3a98f7),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x577fa5(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x53190f,_0x1329dd,_0x3dda18)=>{_0x3dda18['options']['showSuggestionHighlights']&&_0x577fa5({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x53190f,_0x1329dd,_0x3dda18);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x1952b9,_0x431a27,_0x19d3e7)=>{const {type:_0x58d62f,id:_0x4901d6}=_0xd2f36e['_splitMarkerName'](_0x431a27['markerName']),_0x57b2d4=_0xd2f36e['getSuggestion'](_0x4901d6),_0x447c7e=_0x57b2d4['data'];if('formatBlock'!=_0x57b2d4['type']||!_0x447c7e||'setTableColumnHeader'!=_0x447c7e['commandName'])return;const _0x189cfe=_0x19d3e7['mapper']['markerNameToElements'](_0x431a27['markerName']);if(_0x189cfe){for(const _0x20ccce of _0x189cfe)_0x19d3e7['writer']['removeClass']('ck-suggestion-marker-'+_0x58d62f,_0x20ccce),_0x19d3e7['writer']['removeClass']('ck-suggestion-marker--active',_0x20ccce),_0x19d3e7['writer']['removeAttribute']('data-suggestion',_0x20ccce),_0x19d3e7['mapper']['unbindElementFromMarkerName'](_0x20ccce,_0x431a27['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1cad94=this['editor'],_0x8c7dc4=_0x1cad94['locale'];function _0x5ad65d(_0x16288f){return{'type':'format','content':o(_0x8c7dc4,'*Format:*\x20%0',_0x16288f)};}_0x1cad94['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4843ee=>{if('formatBlock'!=_0x4843ee['type'])return;const {data:_0x30e609}=_0x4843ee;if(_0x30e609){if('setTableRowHeader'==_0x30e609['commandName']){const _0x47bd85=_0x30e609['commandParams'][0x0]['forceValue'];return _0x5ad65d(o(_0x8c7dc4,_0x47bd85?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x30e609['commandName']){const _0x2258b9=_0x30e609['commandParams'][0x0]['forceValue'];return _0x5ad65d(o(_0x8c7dc4,_0x2258b9?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x496b63=>[_0x496b63,null]));class It extends _0x49ae3f{static get['requires'](){return[jt];}['afterInit'](){const _0x2f66bb=this['editor'];if(!_0x2f66bb['plugins']['has']('TableClipboard'))return;const _0x160faa=_0x2f66bb['plugins']['get']('TrackChangesEditing'),_0x383c=_0x2f66bb['plugins']['get']('TableUtils'),_0x53f1a4=_0x2f66bb['plugins']['get'](jt),_0x15d64f=_0x2f66bb['plugins']['get']('TableClipboard');_0x53f1a4['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2f66bb['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2f66bb['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x998567=null;_0x2f66bb['model']['on']('insertContent',(_0x5c7c09,_0x3c9b3c)=>{const [_0x4e0ccf,_0x50d3b4]=_0x3c9b3c,_0x4739cf=_0x3c9b3c[_0x3c9b3c['length']-0x1];_0x4739cf&&_0x4739cf['forceDefaultExecution']||_0x160faa['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x648f13,_0x21969a,_0x1ee18d,_0x30dc7d,_0x1fd789){if(_0x21969a&&!_0x21969a['is']('documentSelection'))return!0x1;const _0x20eed1=_0x1fd789['getTableIfOnlyTableInContent'](_0x648f13,_0x1ee18d);if(!_0x20eed1||!he(_0x20eed1,void 0x0,_0x30dc7d))return!0x1;const _0x4b3f4e=_0x30dc7d['getSelectionAffectedTableCells'](_0x1ee18d['document']['selection']);if(!_0x4b3f4e['length'])return!0x1;const _0x4cb76e=_0x4b3f4e[0x0]['findAncestor']('table'),_0x4e7009=_0x30dc7d['getRowIndexes'](_0x4b3f4e),_0x3f29fc=_0x30dc7d['getColumnIndexes'](_0x4b3f4e),_0x3f88bb={'startRow':_0x4e7009['first'],'endRow':_0x4e7009['last'],'startColumn':_0x3f29fc['first'],'endColumn':_0x3f29fc['last']};return 0x1==_0x4b3f4e['length']&&(_0x3f88bb['endRow']+=_0x30dc7d['getRows'](_0x20eed1)-0x1,_0x3f88bb['endColumn']+=_0x30dc7d['getColumns'](_0x20eed1)-0x1),he(_0x4cb76e,_0x3f88bb,_0x30dc7d);}(_0x4e0ccf,_0x50d3b4,_0x2f66bb['model'],_0x383c,_0x15d64f)&&(_0x5c7c09['stop'](),_0x998567={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2f66bb['model']['change'](()=>{_0x2f66bb['model']['insertContent'](_0x3c9b3c[0x0],_0x3c9b3c[0x1],_0x3c9b3c[0x2],{'forceDefaultExecution':!0x0});const _0x2b95ed=_0x1fbc14(),{rowInsertionRanges:_0x399048,columnInsertionRanges:_0x4988f1,insertionRanges:_0x3c96dc,deletionRanges:_0x42c344,cells:_0x80e1d7}=_0x998567;_0x399048['length']&&_0x160faa['markMultiRangeInsertion'](_0x399048,'tablePasteRow',{'tablePasteChainId':_0x2b95ed}),_0x4988f1['length']&&_0x160faa['markMultiRangeInsertion'](_0x4988f1,'tablePasteColumn',{'tablePasteChainId':_0x2b95ed}),_0x3c96dc['length']&&(_0x160faa['markMultiRangeInsertion'](_0x3c96dc,'tablePaste',{'tablePasteChainId':_0x2b95ed,'skipNestingCheck':!0x0}),_0x3c96dc['forEach'](_0xb872a=>_0xb872a['detach']?.())),_0x42c344['length']&&(_0x160faa['markMultiRangeDeletion'](_0x42c344,'tablePaste',{'tablePasteChainId':_0x2b95ed,'skipNestingCheck':!0x0}),_0x42c344['forEach'](_0x562e20=>_0x562e20['detach']?.()));const _0xf2260=_0x160faa['markMultiRangeBlockFormat'](_0x80e1d7['map'](({element:_0x2e701e})=>_0x2e701e),{'formatGroupId':_0x1fbc14()},[],'tablePasteCell',{'tablePasteChainId':_0x2b95ed});if(_0xf2260){const _0x43f378=_0xf2260['getMarkers'](),_0x474d34=[];for(const {element:_0x2ab6ba,attributes:_0x4c3493}of _0x80e1d7){if(!_0x4c3493)continue;const _0x2246a0=_0x2f66bb['model']['createRangeOn'](_0x2ab6ba),_0x44993f=_0x43f378['find'](_0x40058b=>_0x40058b['getRange']()['isEqual'](_0x2246a0));_0x44993f&&_0x474d34['push']([_0x44993f['name'],_0x4c3493]);}_0x474d34['length']&&_0xf2260['setAttribute']('markerAttributes',Object['fromEntries'](_0x474d34));}_0x998567=null;}));},{'priority':_0x4c1ca9['high']+0xa}),_0x2f66bb['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x39e7d5,_0x24ae17)=>{const [_0x402595,_0x2d7d1e,,_0x2d6b7e]=_0x24ae17;if(!_0x998567)return;_0x39e7d5['stop']();const _0x1bf6a0=_0x402595['cell'],_0x105de2=_0x2d7d1e,_0x56f95d=Pe(_0x1bf6a0),_0x4d54a1=Pe(_0x105de2);_0x39e7d5['return']=_0x1bf6a0;let _0x49e187=null,_0x17c87e=null;if(_0x4d54a1||_0x56f95d){if(_0x56f95d&&!_0x4d54a1){_0x2d6b7e['remove'](_0x1bf6a0['getChild'](0x0));for(const _0x2e4148 of Array['from'](_0x105de2['getChildren']()))_0x2d6b7e['insert'](_0x2e4148,_0x1bf6a0,'end');const _0x35c040=_0x998567['rowInsertionIndexes']['includes'](_0x402595['row']),_0xf963a1=_0x998567['columnInsertionIndexes']['includes'](_0x402595['column']);_0x35c040||_0xf963a1||(_0x49e187=_0x12eb8f['fromRange'](_0x2d6b7e['createRangeIn'](_0x1bf6a0)));}else _0x4d54a1&&!_0x56f95d&&(_0x17c87e=_0x2d6b7e['createRangeIn'](_0x1bf6a0));}else{const _0x315f9d=_0x2d6b7e['createElement']('tableCellSuggestion'),_0x2aa0d3=_0x2d6b7e['createElement']('tableCellSuggestion');_0x2d6b7e['wrap'](_0x2d6b7e['createRangeIn'](_0x1bf6a0),_0x2aa0d3),_0x2d6b7e['insert'](_0x315f9d,_0x1bf6a0,0x0);for(const _0x2d3cdd of Array['from'](_0x105de2['getChildren']()))_0x2d6b7e['insert'](_0x2d3cdd,_0x315f9d,'end');_0x49e187=_0x12eb8f['fromRange'](_0x2d6b7e['createRangeOn'](_0x315f9d)),_0x17c87e=_0x12eb8f['fromRange'](_0x2d6b7e['createRangeOn'](_0x2aa0d3));}const _0x3b2b56=Array['from'](_0x105de2['getAttributes']())['filter'](([_0x57ed64])=>ge['includes'](_0x57ed64));_0x998567['cells']['push']({'element':_0x1bf6a0,'attributes':_0x3b2b56['length']?Object['fromEntries'](_0x3b2b56):null}),_0x49e187&&_0x998567['insertionRanges']['push'](_0x49e187),_0x17c87e&&_0x998567['deletionRanges']['push'](_0x17c87e);},{'priority':'high'}),_0x383c['on']('insertColumns',(_0x25f6f4,_0x33c44e)=>{const [_0x1e778e,_0x967560={}]=_0x33c44e;if(!_0x998567)return;const _0xd7fd4c=_0x967560['at']||0x0,_0x5e4320=_0x967560['columns']||0x1;_0x998567['columnInsertionIndexes']=new Array(_0x5e4320)['fill'](_0xd7fd4c)['map']((_0x4daafc,_0x228489)=>_0x4daafc+_0x228489);for(const {cell:_0x2ad682}of _0x383c['createTableWalker'](_0x1e778e,{'startColumn':_0xd7fd4c,'endColumn':_0xd7fd4c+_0x5e4320-0x1}))_0x998567['columnInsertionRanges']['push'](_0x2f66bb['model']['createRangeOn'](_0x2ad682));},{'priority':'low'}),_0x383c['on']('insertRows',(_0x203fcb,_0x4a0d67)=>{const [_0x19899c,_0x4cd3df={}]=_0x4a0d67;if(!_0x998567)return;const _0x102303=_0x4cd3df['at']||0x0,_0x2c1ec5=_0x4cd3df['rows']||0x1;_0x998567['rowInsertionIndexes']=new Array(_0x2c1ec5)['fill'](_0x102303)['map']((_0x291146,_0x5d0a35)=>_0x291146+_0x5d0a35);for(const {cell:_0x3da806}of _0x383c['createTableWalker'](_0x19899c,{'startRow':_0x102303,'endRow':_0x102303+_0x2c1ec5-0x1}))_0x998567['rowInsertionRanges']['push'](_0x2f66bb['model']['createRangeOn'](_0x3da806));},{'priority':'low'}),_0x160faa['descriptionFactory']['registerDescriptionCallback'](_0x2a485c=>{if(_0x2a485c['subType']&&_0x2a485c['subType']['startsWith']('tablePaste'))return _0x2a485c['previous']?{}:{'type':'insertion','content':o(_0x2f66bb['locale'],'*Replace\x20table\x20cells*')};});const _0x433924=()=>!0x1;for(const _0x506a52 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x160faa['_suggestionFactory']['registerCustomCallback']('insertion',_0x506a52,'join',_0x433924),_0x160faa['_suggestionFactory']['registerCustomCallback']('deletion',_0x506a52,'join',_0x433924),_0x160faa['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x506a52,'join',_0x433924);_0x160faa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x433924),_0x160faa['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x28e0f1,_0x2af6d7,_0x55edb2)=>{const _0x49bc14=_0x28e0f1['map'](_0x2cc159=>_0x2cc159['getContainedElement']())['filter'](_0xcc9161=>_0xcc9161),_0x17db7b=new Map(_0x49bc14['map'](_0x4b6570=>[_0x4b6570,null]));if(_0x998567){for(const {element:_0x47fb0b,attributes:_0x1d83ee}of _0x998567['cells'])_0x1d83ee&&_0x17db7b['set'](_0x47fb0b,_0x1d83ee);}else{if(_0x55edb2&&_0x55edb2['markerAttributes'])for(const [_0x4e023f,_0x34b9c9]of Object['entries'](_0x55edb2['markerAttributes'])){const _0x4eea32=_0x2f66bb['model']['markers']['get'](_0x4e023f),_0x45fcdc=_0x4eea32?_0x4eea32['getRange']()['getContainedElement']():null;_0x45fcdc&&_0x17db7b['set'](_0x45fcdc,_0x34b9c9);}}_0x2f66bb['model']['change'](_0xdfb93f=>{for(const [_0x5897c5,_0x458be1]of _0x17db7b)_0xdfb93f['setAttributes']({...Ce,..._0x458be1},_0x5897c5);});});const _0x3e9759=(_0x3f0fe8,_0x4155d3)=>{_0x160faa['_suggestionFactory']['registerCustomCallback'](_0x3f0fe8,'tablePaste',_0x4155d3,(_0x554c85,_0x2c23fc,_0x2ed7be)=>{_0x2f66bb['model']['change'](_0x3547c9=>{const _0x406b37=[];for(const _0x5881a3 of _0x554c85){const _0xed70af=_0x5881a3['start']['nodeAfter'];_0xed70af['is']('element','tableCellSuggestion')&&_0x406b37['push'](_0xed70af);}_0x160faa['_suggestionFactory']['getSuggestionCallback'](_0x3f0fe8,null,_0x4155d3)(_0x554c85,_0x2c23fc,_0x2ed7be);for(const _0x365d5e of _0x406b37)'$graveyard'!=_0x365d5e['root']['rootName']&&_0x3547c9['unwrap'](_0x365d5e);});});};_0x3e9759('insertion','accept'),_0x3e9759('insertion','discard'),_0x3e9759('deletion','accept'),_0x3e9759('deletion','discard'),_0x160faa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3a0c3c=>{const _0x3bd325=_0x3a0c3c['map'](_0x2e69d2=>_0x2e69d2['getContainedElement']()),_0x145655=_0x3bd325[0x0]['findAncestor']('table'),{minRow:_0x41b6e5,maxRow:_0x60701a}=_0x53f1a4['_getCoordsForCells'](_0x3bd325);_0x383c['removeRows'](_0x145655,{'at':_0x41b6e5,'rows':_0x60701a-_0x41b6e5+0x1});}),_0x160faa['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x480aeb=>{const _0x4a884a=_0x480aeb['map'](_0x347f04=>_0x347f04['getContainedElement']()),_0x30f9dc=_0x4a884a[0x0]['findAncestor']('table'),{minColumn:_0x11d0f9,maxColumn:_0xcad642}=_0x53f1a4['_getCoordsForCells'](_0x4a884a);_0x383c['removeColumns'](_0x30f9dc,{'at':_0x11d0f9,'columns':_0xcad642-_0x11d0f9+0x1});});const _0x5b467e=(_0x44533c,_0x429f91)=>{if(!_0x429f91['subType']||!_0x429f91['subType']['startsWith']('tablePaste'))return;const _0x1f1f40=_0x429f91['attributes']['tablePasteChainId'],_0x4055a6=_0x160faa['getSuggestions']()['filter'](_0x128e64=>_0x128e64['isInContent']&&_0x128e64['attributes']&&_0x128e64['attributes']['tablePasteChainId']==_0x1f1f40);_0x4055a6['length']&&_0x429f91['getAllAdjacentSuggestions']()['length']!=_0x4055a6['length']&&_0x4055a6['reduce']((_0x25ce01,_0x1a6e11)=>(_0x25ce01['next']=_0x1a6e11,_0x1a6e11['previous']=_0x25ce01,_0x1a6e11));};function _0x77dd2e(_0x2834aa,_0x5a8782=!0x0){const {id:_0x1f76e5}=_0x160faa['_splitMarkerName'](_0x2834aa['markerName']),_0xeae0fd=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x12bf22=_0x160faa['activeMarkers']['includes'](_0x2834aa['markerName']);return _0x12bf22&&_0xeae0fd['push']('ck-suggestion-marker--active'),{'classes':_0xeae0fd,'attributes':{'data-suggestion':_0x1f76e5},'priority':_0x12bf22&&_0x5a8782?0xbc2:0xbb8};}_0x160faa['on']('suggestionLoaded',_0x5b467e,{'priority':'high'}),_0x160faa['on']('suggestionUnloaded',_0x5b467e,{'priority':'high'}),_0x2f66bb['model']['document']['registerPostFixer'](()=>{let _0x15b85c=!0x1;const _0x279a82=Array['from'](_0x2f66bb['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x20305f,data:_0x13ba23}of _0x279a82){const {group:_0x5f52f2,type:_0x8a34ac,id:_0x48df86}=_0x160faa['_splitMarkerName'](_0x20305f);if('suggestion'!=_0x5f52f2||'deletion'!=_0x8a34ac||_0x13ba23['oldRange'])continue;if(!_0x160faa['hasSuggestion'](_0x48df86))continue;const _0x563b05=_0x160faa['getSuggestion'](_0x48df86)['getRanges'](),_0x549dee=_0x2f66bb['plugins']['get']('Users')['me'];for(const _0x4cb7be of _0x160faa['getSuggestions']()){if(!_0x4cb7be['isInContent']||_0x4cb7be['author']!=_0x549dee)continue;if('formatBlock'!=_0x4cb7be['type']||'tablePasteCell'!=_0x4cb7be['subType'])continue;if(_0x4cb7be['getRanges']()['every'](_0x1bf493=>_0x563b05['some'](_0x59cb34=>_0x59cb34['containsRange'](_0x1bf493,!0x0)))){for(const _0x58566c of _0x4cb7be['getAllAdjacentSuggestions']())_0x58566c['isInContent']&&(_0x58566c['discard'](),_0x15b85c=!0x0);}}}return _0x15b85c;}),_0x2f66bb['model']['document']['registerPostFixer'](_0x5130ae=>{const _0x1eb34f=_0x2f66bb['commands']['get']('redo');if(!_0x1eb34f||!_0x1eb34f['_createdBatches']['has'](_0x5130ae['batch']))return!0x1;let _0x35f4a7=!0x1;const _0x103414=_0x2f66bb['plugins']['get']('Users')['me'],_0x3b353c=_0x2f66bb['model']['document']['differ']['getChanges'](),_0x49737b=Array['from'](_0x2f66bb['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x44dbf8,data:_0x51ac8a})=>{const {group:_0x28d15c,subType:_0x5943ab,authorId:_0x4b5dcc}=_0x160faa['_splitMarkerName'](_0x44dbf8);return'suggestion'==_0x28d15c&&'tablePaste'==_0x5943ab&&_0x4b5dcc==_0x103414['id']&&!_0x51ac8a['oldRange'];});for(const _0x33195c of _0x3b353c){if('insert'!=_0x33195c['type']||'tableCellSuggestion'!=_0x33195c['name']||0x1!=_0x33195c['length'])continue;const _0x1160fa=_0x5130ae['createRange'](_0x33195c['position'],_0x33195c['position']['getShiftedBy'](0x1));if(!_0x49737b['find'](({data:_0x4fbeb4})=>_0x4fbeb4['newRange']['isEqual'](_0x1160fa))){for(const {name:_0x3145f4,data:_0x1004ac}of _0x49737b)if(_0x1160fa['containsRange'](_0x1004ac['newRange'])){_0x5130ae['updateMarker'](_0x3145f4,{'range':_0x1160fa}),_0x35f4a7=!0x0;break;}}}return _0x35f4a7;}),_0x2f66bb['model']['document']['registerPostFixer'](_0x10c998=>{let _0x3675d9=!0x1;const _0x16fefc=_0x2f66bb['plugins']['get']('Users')['me'],_0xb79cc3=_0x160faa['getSuggestions']()['filter'](_0x542406=>_0x542406['isInContent']&&_0x542406['author']==_0x16fefc),_0x51d478=new Set(),_0x30428c=new Set();for(const _0x41e6c9 of _0xb79cc3)if('tablePaste'==_0x41e6c9['subType'])for(const _0x5d2733 of _0x41e6c9['getMarkers']()){const _0x32192f=_0x5d2733['getRange']()['getContainedElement']();if(_0x32192f){if(_0x32192f['is']('element','tableCellSuggestion')&&Pe(_0x32192f)){_0x41e6c9['removeMarker'](_0x5d2733['name']),_0x51d478['add'](_0x32192f),_0x3675d9=!0x0;const _0x55c446=_0x32192f['nextSibling'],_0x519c06=_0x32192f['previousSibling'],_0x14762f=_0x55c446&&_0x55c446['is']('element','tableCellSuggestion'),_0x2cf13d=_0x519c06&&_0x519c06['is']('element','tableCellSuggestion');_0x14762f&&!_0x51d478['has'](_0x55c446)&&_0x30428c['add'](_0x55c446),_0x2cf13d&&!_0x51d478['has'](_0x519c06)&&_0x30428c['add'](_0x519c06);}else _0x32192f['is']('element','paragraph')&&_0x32192f['isEmpty']&&(_0x41e6c9['removeMarker'](_0x5d2733['name']),_0x3675d9=!0x0);}}else{if('tablePasteCell'==_0x41e6c9['subType']){if(!_0x41e6c9['attributes']||!_0x41e6c9['attributes']['tablePasteChainId'])continue;const _0x2176da=_0x41e6c9['attributes']['markerAttributes'];if(_0x2176da&&Object['keys'](_0x2176da)['length'])continue;const _0x1f59c1=_0x41e6c9['attributes']['tablePasteChainId'];let _0x1be829=!0x0,_0x1afc11=!0x0;for(const _0x1ef852 of _0xb79cc3)if(_0x1ef852['subType']&&_0x1ef852['subType']['startsWith']('tablePaste')){if(!_0x1ef852['attributes']['tablePasteChainId']){_0x1afc11=!0x1;break;}if(_0x1ef852['id']!=_0x41e6c9['id']&&_0x1ef852['attributes']['tablePasteChainId']==_0x1f59c1){_0x1be829=!0x1;break;}}_0x1afc11&&_0x1be829&&(_0x41e6c9['removeMarkers'](),_0x3675d9=!0x0);}}for(const _0x70bdb4 of _0x51d478)_0x10c998['remove'](_0x70bdb4);for(const _0x263e3f of _0x30428c)_0x10c998['unwrap'](_0x263e3f);return _0x3675d9;}),_0x2f66bb['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x325d53,_0x456429)=>_0x77dd2e(_0x325d53),'converterPriority':'high'}),_0x2f66bb['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x6fac1f,_0x1b5722)=>_0x1b5722['options']['showSuggestionHighlights']?_0x77dd2e(_0x6fac1f,!0x1):null,'converterPriority':'high'});const _0x7e0dbe=_0x2f66bb['editing']['view'];this['listenTo'](_0x7e0dbe['document'],'clipboardOutput',(_0x9d3f3e,_0x58a2d3)=>{const _0x4bd64c=[];for(const _0x427c54 of _0x7e0dbe['createRangeIn'](_0x58a2d3['content'])['getItems']())_0x427c54['is']('element','suggestion-td')&&_0x4bd64c['push'](_0x427c54);_0x7e0dbe['change'](_0x170b24=>{for(const _0x17b0ba of _0x4bd64c)_0x170b24['move'](_0x170b24['createRangeIn'](_0x17b0ba),_0x170b24['createPositionBefore'](_0x17b0ba)),_0x170b24['remove'](_0x17b0ba);});});}}function Pe(_0x9c3d05){if(_0x9c3d05['isEmpty'])return!0x0;const _0x4a6d6c=_0x9c3d05['getChild'](0x0);return _0x4a6d6c['is']('element','paragraph')&&_0x4a6d6c['isEmpty'];}function he(_0x436223,_0x3ca13f={},_0x1f83e7){for(const {isAnchor:_0xeec9a9,cellHeight:_0x4ed8c0,cellWidth:_0x422c71}of _0x1f83e7['createTableWalker'](_0x436223,{'includeAllSlots':!0x0,..._0x3ca13f}))if(!_0xeec9a9||0x1!=_0x4ed8c0||0x1!=_0x422c71)return!0x1;return!0x0;}class vt extends _0x49ae3f{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x1cb2de=this['editor']['plugins']['get']('TrackChangesEditing');_0x1cb2de['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x1cb2de['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x1cb2de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1cb2de['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x1cb2de['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x1cb2de['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x18ff4b,_0x525795){const _0x29e552=this['editor']['plugins']['get']('TrackChangesEditing'),_0x163956=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x57f90d=_0x525795['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x4dfd9c=_0x163956['getColumnGroupElement'](_0x57f90d);let _0x192140=_0x4dfd9c?_0x163956['getTableColumnsWidths'](_0x4dfd9c):null,_0x126fba=_0x57f90d['getAttribute']('tableWidth')||null;const _0x359416=_0x525795['tableWidth']||_0x126fba,_0x462c1d=_0x525795['columnWidths']||_0x192140,_0x5954bb=this['editor']['plugins']['get']('Users')['me'];for(const _0x15e080 of _0x29e552['getSuggestions']()){const _0x4728f3=_0x15e080['getContainedElement']();if('resizeTable'===_0x15e080['subType']&&_0x4728f3===_0x57f90d){_0x15e080['author']!==_0x5954bb&&_0x15e080['discard']();const _0x29608f=_0x15e080['data']['commandParams'];_0x126fba=_0x29608f[0x0]['tableWidth'],_0x192140=_0x29608f[0x0]['columnWidths'];break;}}_0x18ff4b({'table':_0x57f90d,'tableWidth':_0x359416,'columnWidths':_0x462c1d}),_0x29e552['markBlockFormat'](_0x57f90d,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x126fba,'columnWidths':_0x192140}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x10c5e8){if('formatBlock'!=_0x10c5e8['type']&&'formatInline'!=_0x10c5e8['type'])return;const {data:_0x1fe1b8}=_0x10c5e8;if(_0x1fe1b8&&'resizeTable'===_0x1fe1b8['formatGroupId']){const _0x10f259='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x10f259)};}}}class Ct extends _0x49ae3f{['afterInit'](){const _0x3db1cb=this['editor'];_0x3db1cb['plugins']['has']('Template')&&_0x3db1cb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x49ae3f{['afterInit'](){const _0x5c2d0d=this['editor'];if(!_0x5c2d0d['commands']['get']('insertTableOfContents'))return;_0x5c2d0d['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x380c21=_0x5c2d0d['plugins']['get']('TrackChangesEditing'),_0x294332=_0x5c2d0d['locale'];_0x380c21['descriptionFactory']['registerElementLabel']('tableOfContents',_0x303832=>o(_0x294332,'ELEMENT_TABLE_OF_CONTENTS',_0x303832));}}class Dt extends _0x49ae3f{['afterInit'](){const _0x254e85=this['editor'];if(!_0x254e85['plugins']['has']('Title'))return;const _0x239924=_0x254e85['plugins']['get']('TrackChangesEditing');_0x239924['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x254e85['locale'],'ELEMENT_TITLE')),_0x254e85['model']['document']['registerPostFixer'](_0x5a4abe=>{let _0x4c2725=!0x1;const _0x313402=Array['from'](_0x254e85['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xdeb599,data:_0x47b00e}of _0x313402){const {group:_0x3dcd81}=_0x239924['_splitMarkerName'](_0xdeb599);if('suggestion'!==_0x3dcd81||!_0x47b00e['newRange'])continue;const _0x4146f7=_0x47b00e['newRange'],_0x1d015f=_0x4146f7['end']['nodeBefore'];if(!_0x1d015f||!_0x1d015f['is']('element','title-content'))continue;if(!_0x4146f7['start']['isTouching'](_0x4146f7['end']))continue;const _0x185be8=_0x254e85['model']['schema']['getNearestSelectionRange'](_0x4146f7['end'],'forward');if(_0x185be8&&_0x185be8['isCollapsed']){const _0x4f4c88=_0x5a4abe['createRange'](_0x4146f7['start'],_0x185be8['start']);_0x4f4c88['isEqual'](_0x4146f7)||(_0x5a4abe['updateMarker'](_0xdeb599,{'range':_0x4f4c88}),_0x4c2725=!0x0);}_0x4c2725||(_0x5a4abe['removeMarker'](_0xdeb599),_0x4c2725=!0x0);}return _0x4c2725;});}}class Nt extends _0x49ae3f{['afterInit'](){const _0x16c48d=this['editor'],_0xc9968c=_0x16c48d['plugins']['get']('TrackChangesEditing');_0x16c48d['plugins']['has']('UndoEditing')&&(_0xc9968c['enableCommand']('undo'),_0xc9968c['enableCommand']('redo'));}}class Mt extends _0x49ae3f{static get['requires'](){return[jt];}['afterInit'](){const _0x2ed9de=this['editor'];if(!_0x2ed9de['plugins']['has']('TableCaptionEditing'))return;_0x2ed9de['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x49ae3f{['tableProperties'];['tableCellProperties'];constructor(_0x8ce7e7){super(_0x8ce7e7),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 _0x30f291=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1d58de of this['tableProperties'])_0x30f291['enableCommand'](_0x1d58de,(_0x4c5b07,_0x34c169)=>{const _0x5e8d9b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1d58de,[_0x5e8d9b],this['tableProperties'],'tableProperties',_0x4c5b07,_0x34c169);});_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x30f291['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ff7f1,_0x1f788f)=>this['handleDiscardAction'](this['tableProperties'],_0x4ff7f1,_0x1f788f)),_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x221483 of this['tableCellProperties'])_0x30f291['enableCommand'](_0x221483,(_0x34fe5d,_0x2570ae)=>{const _0x394e57=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x221483,_0x394e57,this['tableCellProperties'],'tableCellProperties',_0x34fe5d,_0x2570ae);});_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x30f291['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2c3748,_0x1821c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2c3748,_0x1821c6)),_0x30f291['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x30f291['descriptionFactory']['registerDescriptionCallback'](_0x3f062f=>this['handleSuggestionDescription'](_0x3f062f));}['_handlePropertyChange'](_0x168184,_0xdbb4f8,_0x3c72c1,_0x23d51e,_0x5138dd,_0x37d444){const _0x600182=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x37d444['batch'],()=>{for(const _0x296259 of _0xdbb4f8){if(this['_getSuggestion'](_0x296259,_0x23d51e))_0x5138dd(_0x37d444);else{const _0x44d7b8={};for(const _0x24a0cc of _0x3c72c1){const _0x25a7e0=_0x296259['getAttribute'](_0x24a0cc);void 0x0!==_0x25a7e0&&(_0x44d7b8[_0x24a0cc]=_0x25a7e0);}_0x5138dd(_0x37d444),_0x600182['markBlockFormat'](_0x296259,{'commandParams':[_0x44d7b8]},[],_0x23d51e);}}});}['handleDiscardAction'](_0x2be45d,_0x253eba,_0x25d8f0){const _0x209246=_0x253eba[0x0]['start']['nodeAfter'],_0x430a91=_0x25d8f0['commandParams'][0x0];this['editor']['model']['change'](_0xc0f098=>{for(const _0x582c4e of _0x2be45d)void 0x0!==_0x430a91[_0x582c4e]?_0xc0f098['setAttribute'](_0x582c4e,_0x430a91[_0x582c4e],_0x209246):_0xc0f098['removeAttribute'](_0x582c4e,_0x209246);});}['handleSuggestionDescription'](_0x4c05fb){if(_0x4c05fb['data'])switch(_0x4c05fb['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'](_0x5ad3e5,_0x43259c){const _0x427082=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x17a045 of _0x427082['getSuggestions']({'skipNotAttached':!0x0})){const _0x16af48=_0x17a045['getContainedElement']();if(_0x17a045['subType']===_0x43259c&&_0x16af48===_0x5ad3e5)return _0x17a045;}return null;}}const m='$elementName';class p extends _0x49ae3f{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4d18e0,_0x3e3612,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x29fa65){function _0x3134ca(_0x12e8e0){return _0x12e8e0['map'](_0x438aad=>String['fromCharCode'](_0x438aad))['join']('');}super(_0x29fa65),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x336a38,_0x3bfc77,_0x1a70f2,_0x4adbad)=>{this['_model']['change'](()=>{for(const _0x105411 of[..._0x4adbad,..._0x1a70f2])this['_model']['markers']['has'](_0x105411)&&_0x29fa65['editing']['reconvertMarker'](_0x105411);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x29fa65['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(),_0x29fa65['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x29fa65['config']['get']('trackChanges.trackFormatChanges'),_0x29fa65['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x29fa65['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x29fa65,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3134ca([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3134ca([0x34,0x30,0x34,0x38,0x31,0x32,0x33,0x32]);}['init'](){const _0x51364f=this['editor'],_0x4ba465=(_0x394736,_0x2925a0)=>{if('attribute'!=_0x394736)return'ck-suggestion-marker-'+_0x394736;const _0x56fb9a=_0x2925a0['split']('|')[0x0];return this['_isBlockAttribute'](_0x56fb9a)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x51364f['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x998aa=>{const {id:_0x31d1f4,type:_0x158bb8,subType:_0x2f396c}=this['_splitMarkerName'](_0x998aa['markerName']),_0x482bc4=['ck-suggestion-marker',_0x4ba465(_0x158bb8,_0x2f396c)];let _0x353510=0xbb8;return this['activeMarkers']['includes'](_0x998aa['markerName'])&&(_0x482bc4['push']('ck-suggestion-marker--active'),_0x353510=0xbc2),'deletion'==_0x158bb8&&(_0x353510+=0x5),{'classes':_0x482bc4,'attributes':{'data-suggestion':_0x31d1f4},'priority':_0x353510};}}),_0x51364f['conversion']['for']('dataDowncast')['add'](_0x3322e9=>{_0x3322e9['on']('addMarker:suggestion',(_0x350842,_0x355368,_0x595e59)=>{if(!_0x595e59['options']['showSuggestionHighlights'])return;const _0x389b56=_0x355368['item'];if(!_0x389b56)return;const _0x15aa09=_0x595e59['mapper']['toViewElement'](_0x389b56);_0x51364f['model']['schema']['isObject'](_0x389b56)&&_0x15aa09&&!_0x15aa09['getCustomProperty']('widget')&&_0x15aa09['is']('containerElement')&&_0x40c242(_0x15aa09,_0x595e59['writer']);},{'priority':'high'});}),_0x51364f['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xc7a8b1,_0x2cc312)=>{if(!_0x2cc312['options']['showSuggestionHighlights'])return null;const {type:_0x38b71b,subType:_0x5a608b}=this['_splitMarkerName'](_0xc7a8b1['markerName']);return{'classes':['ck-suggestion-marker',_0x4ba465(_0x38b71b,_0x5a608b)],'priority':0xbb8};}});const _0xe437ee=({showActiveMarkers:_0x4713c0=!0x0,isAttributeSuggestion:_0x568e26=!0x1}={})=>(_0x566ca1,_0x1150b3,_0xaf25f0)=>{if(!_0x1150b3['item'])return;const {id:_0x536ca8}=this['_splitMarkerName'](_0x1150b3['markerName']);if(_0x568e26){const _0x44c58a=this['_suggestions']['get'](_0x536ca8),_0x1c8e71=this['_getAttributeKey'](_0x44c58a);if(!this['_isBlockAttribute'](_0x1c8e71))return;}if(_0x1150b3['item']['is']('selection'))return void _0xaf25f0['consumable']['consume'](_0x1150b3['item'],_0x566ca1['name']);const _0x527eb7=_0xaf25f0['mapper']['toViewElement'](_0x1150b3['item']);if(_0x1150b3['item']['is']('element')&&_0x51364f['model']['schema']['isBlock'](_0x1150b3['item'])&&!_0x527eb7['getCustomProperty']('addHighlight')){_0xaf25f0['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x527eb7),_0xaf25f0['writer']['setAttribute']('data-suggestion',_0x536ca8,_0x527eb7),_0xaf25f0['mapper']['bindElementToMarker'](_0x527eb7,_0x1150b3['markerName']),_0x4713c0&&(this['activeMarkers']['includes'](_0x1150b3['markerName'])?_0xaf25f0['writer']['addClass']('ck-suggestion-marker--active',_0x527eb7):_0xaf25f0['writer']['removeClass']('ck-suggestion-marker--active',_0x527eb7));for(const _0x4219b5 of _0x51364f['model']['createRangeIn'](_0x1150b3['item'])['getItems']())_0xaf25f0['consumable']['consume'](_0x4219b5,_0x566ca1['name']);_0xaf25f0['consumable']['consume'](_0x1150b3['item'],_0x566ca1['name']);}};_0x51364f['conversion']['for']('dataDowncast')['add'](_0x43bee0=>{_0x43bee0['on']('addMarker:suggestion:formatBlock',(_0x2b398d,_0x3a9dd9,_0x33f4f7)=>{_0x33f4f7['options']['showSuggestionHighlights']&&_0xe437ee({'showActiveMarkers':!0x1})(_0x2b398d,_0x3a9dd9,_0x33f4f7);},{'priority':'highest'});}),_0x51364f['conversion']['for']('dataDowncast')['add'](_0x26df73=>{_0x26df73['on']('addMarker:suggestion:attribute',(_0x388c13,_0x2790ef,_0x2ca61d)=>{_0x2ca61d['options']['showSuggestionHighlights']&&_0xe437ee({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x388c13,_0x2790ef,_0x2ca61d);},{'priority':'highest'});}),_0x51364f['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x53420e,_0x3a3474)=>_0x3a3474['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x53420e['substr'](0xb)}}),_0x51364f['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x2e831d,{writer:_0x2cdae5})=>{let _0x30895c='suggestion:'+_0x2e831d['getAttribute']('suggestion-type')+':'+_0x2e831d['getAttribute']('id');return _0x2e831d['getAttribute']('marker-count')&&(_0x30895c+=':'+_0x2e831d['getAttribute']('marker-count')),_0x2cdae5['createElement']('$marker',{'data-name':_0x30895c});}}),_0x51364f['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x51364f['conversion']['for']('editingDowncast')['add'](_0x58003=>{_0x58003['on']('addMarker:suggestion:formatBlock',_0xe437ee(),{'priority':'high'});}),_0x51364f['conversion']['for']('editingDowncast')['add'](_0x1c914f=>{_0x1c914f['on']('addMarker:suggestion:attribute',_0xe437ee({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x51364f['conversion']['for']('editingDowncast')['add'](_0x45ee68=>{_0x45ee68['on']('removeMarker:suggestion:formatBlock',(_0xea0b2f,_0x268d53,_0x596c02)=>{const _0x1d8f66=_0x596c02['mapper']['markerNameToElements'](_0x268d53['markerName']);if(_0x1d8f66){for(const _0x3fb511 of _0x1d8f66)_0x3fb511['getCustomProperty']('addHighlight')||(_0x596c02['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3fb511),_0x596c02['writer']['removeAttribute']('data-suggestion',_0x3fb511),_0x596c02['mapper']['unbindElementFromMarkerName'](_0x3fb511,_0x268d53['markerName']));}},{'priority':'high'});}),_0x51364f['conversion']['for']('editingDowncast')['add'](_0x4b143a=>{_0x4b143a['on']('removeMarker:suggestion:attribute',(_0x3649b3,_0x21b6f6,_0x1cfd03)=>{const _0x295566=_0x1cfd03['mapper']['markerNameToElements'](_0x21b6f6['markerName']);if(!_0x295566)return;const {id:_0x4924d1}=this['_splitMarkerName'](_0x21b6f6['markerName']),_0x3ef629=this['_suggestions']['get'](_0x4924d1),_0x176a3d=this['_getAttributeKey'](_0x3ef629);if(this['_isBlockAttribute'](_0x176a3d)){for(const _0x3383ee of _0x295566)_0x3383ee['getCustomProperty']('addHighlight')||(_0x1cfd03['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3383ee),_0x1cfd03['writer']['removeAttribute']('data-suggestion',_0x3383ee),_0x1cfd03['mapper']['unbindElementFromMarkerName'](_0x3383ee,_0x21b6f6['markerName']));}},{'priority':'high'});}),_0x51364f['model']['document']['registerPostFixer'](_0x50da6c=>{let _0xcf0176=!0x1;const _0x17e38a=Array['from'](_0x51364f['model']['document']['differ']['getChangedMarkers']()),_0x3aaad1=new Set();for(const {name:_0x2bde60,data:_0x19b5fe}of _0x17e38a){const {group:_0x19a04b,type:_0x447dd4,subType:_0x32624c,id:_0x4699d2}=this['_splitMarkerName'](_0x2bde60);if('suggestion'!==_0x19a04b)continue;const _0x5b614a=this['_suggestions']['get'](_0x4699d2);if(null!=_0x19b5fe['newRange']){'formatInline'==_0x447dd4&&(_0xcf0176=_0xcf0176||Et(_0x19b5fe['newRange'],_0x2bde60,_0x50da6c,_0x51364f['model']['schema']));const _0xc54640='attribute'==_0x447dd4&&this['_isBlockAttribute'](_0x32624c['split']('|')[0x0]);if(_0x19b5fe['newRange']['isCollapsed']||'$graveyard'==_0x19b5fe['newRange']['root']['rootName']||'formatBlock'==_0x447dd4&&!Ut(_0x19b5fe['newRange'])||_0xc54640&&!Ut(_0x19b5fe['newRange'])||'deletion'==_0x447dd4&&!(!Tt(_0x58e62f=_0x19b5fe['newRange'])&&!function(_0x502f66){return _0x502f66['start']['parent']==_0x502f66['end']['nodeBefore']&&_0x502f66['start']['isAtEnd'];}(_0x58e62f)))_0x50da6c['removeMarker'](_0x2bde60),_0xcf0176=!0x0;else{if(!_0x5b614a||!_0x5b614a['isInContent'])continue;_0x3aaad1['add'](_0x5b614a);}}}var _0x58e62f;return _0x3aaad1['size']>0x0&&(_0xcf0176=!!this['_joinWithAdjacentSuggestions'](_0x3aaad1)||_0xcf0176),_0xcf0176;}),_0x51364f['model']['document']['registerPostFixer'](_0x37b721=>{let _0x20cf87=!0x1;for(const _0x5aba75 of _0x51364f['model']['document']['differ']['getChanges']())if('insert'==_0x5aba75['type'])for(const _0x1768b4 of this['_suggestions']['values']()){if(_0x1768b4['isMultiRange']||!_0x1768b4['isInContent'])continue;const _0x34b66b='formatBlock'==_0x1768b4['type'],_0x19cb94=this['_getAttributeKey'](_0x1768b4),_0x35ea6e=_0x19cb94&&this['_isBlockAttribute'](_0x19cb94);if(!_0x34b66b&&!_0x35ea6e)continue;const _0x235cec=_0x1768b4['getFirstRange']();if(_0x235cec['start']['parent']!=_0x235cec['end']['parent']&&!_0x235cec['end']['isAtEnd']){const _0xba4601=_0x51364f['model']['createPositionAt'](_0x235cec['start']['nodeAfter'],'end'),_0x55ef2a=_0x51364f['model']['createRange'](_0x235cec['start'],_0xba4601);_0x37b721['updateMarker'](_0x1768b4['getFirstMarker'](),{'range':_0x55ef2a}),_0x20cf87=!0x0;}}return _0x20cf87;}),_0x51364f['model']['document']['registerPostFixer'](_0x2b9c5f=>this['_processAttributeChanges'](_0x2b9c5f)),_0x51364f['model']['document']['registerPostFixer'](_0x52006b=>!_0x52006b['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x52006b)),_0x51364f['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x51364f['model']['document']['on']('change:data',(_0x156f8c,_0x375e78)=>{if(!_0x375e78['isLocal']||_0x375e78['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x1d775c=_0x51364f['model']['document']['differ']['getChanges']();if(0x0==_0x1d775c['length'])return;const _0x1a8c10=[],_0x3cb470=_0x1d775c['filter'](_0x57c6f5=>'attribute'==_0x57c6f5['type']),_0x59e780=_0x1d775c['filter'](_0xd11fab=>'insert'==_0xd11fab['type']&&'$text'!=_0xd11fab['name']);for(const _0x3fd3e0 of _0x3cb470)this['_isRegisteredAttribute'](_0x3fd3e0['attributeKey'])&&_0x1a8c10['push']({'key':_0x3fd3e0['attributeKey'],'newValue':_0x3fd3e0['attributeNewValue'],'oldValue':_0x3fd3e0['attributeOldValue'],'range':Ot(_0x3fd3e0['range'],_0x51364f['model'])});for(const _0xb675b9 of _0x59e780){if('rename'!=_0xb675b9['action']&&'refresh'!=_0xb675b9['action'])continue;const _0x5627ec=Gt(_0xb675b9['position']['nodeAfter'],_0x51364f['model']),_0x14528a=_0xb675b9['before'];'rename'==_0xb675b9['action']&&_0x1a8c10['push']({'key':m,'newValue':_0xb675b9['name'],'oldValue':_0x14528a['name'],'range':_0x5627ec});for(const [_0x3df9c7,_0x199a98]of _0x14528a['attributes']){if(!this['_isRegisteredAttribute'](_0x3df9c7))continue;const _0xc18f1f=_0xb675b9['attributes']['get'](_0x3df9c7);_0x199a98!==_0xc18f1f&&_0x1a8c10['push']({'key':_0x3df9c7,'newValue':_0xc18f1f,'oldValue':_0x199a98,'range':_0x5627ec});}for(const [_0x46f9bf,_0x15f5d0]of _0xb675b9['attributes'])this['_isRegisteredAttribute'](_0x46f9bf)&&(_0x14528a['attributes']['has'](_0x46f9bf)||_0x1a8c10['push']({'key':_0x46f9bf,'newValue':_0x15f5d0,'oldValue':null,'range':_0x5627ec}));}0x0!=_0x1a8c10['length']&&_0x51364f['model']['enqueueChange'](_0x375e78,_0x256960=>{const _0x2e540d=_0x1fbc14();for(const {range:_0xb05e2b,key:_0x432880,oldValue:_0x490228,newValue:_0x496937}of _0x1a8c10)this['markAttributeChange'](_0xb05e2b,_0x432880,_0x490228,_0x496937,{'groupId':_0x2e540d});this['_reduceExistingSuggestions'](_0x256960,_0x1a8c10);});},{'priority':'lowest'}),_0x51364f['model']['markers']['on']('update:suggestion',(_0x96a96b,_0x335bd3,_0x479157)=>{if(null==_0x479157){const {id:_0x5d708e}=this['_splitMarkerName'](_0x335bd3['name']),_0x15af1a=this['_suggestions']['get'](_0x5d708e);_0x15af1a&&_0x15af1a['addMarkerName'](_0x335bd3['name']);}}),_0x51364f['model']['document']['on']('change:data',()=>{const _0x34edb4=Array['from'](_0x51364f['model']['document']['differ']['getChangedMarkers']())['filter'](_0x39c7b8=>'suggestion'===this['_splitMarkerName'](_0x39c7b8['name'])['group']);if(0x0===_0x34edb4['length'])return;_0x34edb4['sort']((_0x306eef,_0x396120)=>{const _0x828e53=_0x306eef['data']['oldRange'],_0x972ea4=_0x396120['data']['oldRange'];return null===_0x828e53&&null===_0x972ea4?0x0:null===_0x828e53&&null!==_0x972ea4?-0x1:null!==_0x828e53&&null===_0x972ea4?0x1:_0x828e53['start']['isBefore'](_0x972ea4['start'])?-0x1:0x1;});const _0x310150=new Set(),_0x2aff82=new Set();for(const {name:_0x2ca2a3,data:_0x24bf07}of _0x34edb4){const {id:_0x3ae115}=this['_splitMarkerName'](_0x2ca2a3);if(null===_0x24bf07['oldRange']){const _0x5bac32=this['_handleNewSuggestionMarker'](_0x2ca2a3);_0x2aff82['add'](_0x5bac32);}else{const _0xfcf344=this['_suggestions']['get'](_0x3ae115);null!==_0x24bf07['newRange']||_0xfcf344['isInContent']?(_0x310150['add'](_0xfcf344['head']),_0x2aff82['add'](_0xfcf344)):this['_removeSuggestion'](_0xfcf344);}}_0x2aff82['size']>0x0&&this['_refreshSuggestionsChain'](_0x2aff82);for(const _0x3d4324 of _0x310150)this['fire']('suggestionChanged',_0x3d4324);}),_0x51364f['model']['on']('applyOperation',(_0x390b45,_0x401212)=>{const _0x55b9f5=_0x401212[0x0];if(!this['_suggestions']['size'])return;if(!_0x55b9f5['isDocumentOperation'])return;if(_0x55b9f5['batch']['isUndo']||!_0x55b9f5['batch']['isLocal'])return;let _0x1acdea,_0x2e9a9c;switch(_0x55b9f5['type']){case'insert':_0x1acdea=_0x51364f['model']['createPositionAt'](_0x55b9f5['position']),_0x2e9a9c=_0x1acdea['getShiftedBy'](_0x55b9f5['howMany']);break;case'split':_0x1acdea=_0x51364f['model']['createPositionAt'](_0x55b9f5['splitPosition']),_0x2e9a9c=_0x51364f['model']['createPositionAt'](_0x55b9f5['moveTargetPosition']);break;case'move':_0x1acdea=_0x51364f['model']['createPositionAt'](_0x55b9f5['targetPosition']),_0x2e9a9c=_0x1acdea['getShiftedBy'](_0x55b9f5['howMany']);break;default:return;}const _0x307ef5=_0x51364f['model']['createRange'](_0x1acdea,_0x2e9a9c);_0x51364f['model']['change'](()=>{for(const {suggestion:_0x478089,meta:_0x3a030f}of this['_findSuggestions'](_0x307ef5)){if(_0x478089['isMultiRange'])continue;if('formatInline'==_0x478089['type'])continue;const _0x3a82b1=this['_getAttributeKey'](_0x478089);if(_0x3a82b1&&this['_isBlockAttribute'](_0x3a82b1)&&'split'!=_0x55b9f5['type'])continue;const _0x33c13a=_0x478089['data']&&_0x478089['data']['multipleBlocks'];('formatBlock'!=_0x478089['type']||'split'==_0x55b9f5['type']&&!_0x33c13a)&&(_0x3a030f['containsRangeInObject']||'insertion'==_0x478089['type']&&_0x3a030f['isOwn']||_0x478089['getFirstRange']()['containsRange'](_0x307ef5)&&this['_breakSuggestionMarker'](_0x478089,_0x1acdea,_0x2e9a9c));}});},{'priority':'lowest'}),_0x51364f['model']['on']('deleteContent',(_0x294bb3,_0x3ea007)=>{const _0x3478b8=_0x3ea007[0x0],_0x39768b=_0x3ea007[0x1];if(_0x39768b&&_0x39768b['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x3478b8['isCollapsed'])return;const _0x113145=_0x51364f['model']['schema'],{start:_0x267bd8,end:_0x19b130}=_0x3478b8['getFirstRange'](),_0x1e8677=_0x267bd8['nodeAfter']&&_0x113145['isLimit'](_0x267bd8['nodeAfter'])?null:_0x113145['getNearestSelectionRange'](_0x267bd8,'forward'),_0x12de62=_0x19b130['nodeBefore']&&_0x113145['isLimit'](_0x19b130['nodeBefore'])?null:_0x113145['getNearestSelectionRange'](_0x19b130,'backward'),_0x1bcb01=_0x51364f['model']['createRange'](_0x1e8677?_0x1e8677['start']:_0x267bd8,_0x12de62?_0x12de62['end']:_0x19b130);_0x51364f['model']['change'](_0x35a2b7=>{this['markDeletion'](_0x1bcb01);const _0x436f0a=_0x51364f['model']['schema']['getNearestSelectionRange'](_0x1bcb01['start']);_0x3478b8['is']('documentSelection')?_0x35a2b7['setSelection'](_0x436f0a):_0x3478b8['setTo'](_0x436f0a);}),_0x294bb3['stop']();},{'priority':_0x4c1ca9['normal']+0xa}),_0x51364f['model']['on']('insertContent',(_0x5078aa,_0x573dde)=>{const _0x3f4372=_0x573dde[_0x573dde['length']-0x1];_0x3f4372&&_0x3f4372['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x51364f['model']['change'](()=>{let _0x281208=_0x51364f['model']['insertContent'](_0x573dde[0x0],_0x573dde[0x1],_0x573dde[0x2],{'forceDefaultExecution':!0x0});if(!_0x281208)return;_0x5078aa['return']=_0x281208['clone']();const _0x4e1b72=_0x281208['end']['nodeBefore'],_0x3fb1a5=_0x51364f['model']['schema'];_0x4e1b72&&_0x3fb1a5['isBlock'](_0x4e1b72)&&!_0x3fb1a5['isObject'](_0x4e1b72)&&(_0x281208=_0x51364f['model']['createRange'](_0x281208['start'],_0x51364f['model']['createPositionAt'](_0x4e1b72,'end'))),this['markInsertion'](_0x281208);}),_0x5078aa['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x5952de=new $(_0x51364f,this['_suggestions']);_0x51364f['commands']['add']('acceptSuggestion',_0x5952de),this['enableCommand']('acceptSuggestion');const _0x5bc230=new B(_0x51364f,this['_suggestions']);_0x51364f['commands']['add']('discardSuggestion',_0x5bc230),this['enableCommand']('discardSuggestion'),_0x51364f['commands']['add']('acceptAllSuggestions',new x(_0x51364f,_0x5952de,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x51364f['commands']['add']('discardAllSuggestions',new x(_0x51364f,_0x5bc230,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x51364f['commands']['add']('acceptSelectedSuggestions',new R(_0x51364f,_0x5952de,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x51364f['commands']['add']('discardSelectedSuggestions',new R(_0x51364f,_0x5bc230,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x482598=_0x51364f['plugins']['get']('CommentsRepository');this['listenTo'](_0x482598,'addComment',(_0x596b81,{threadId:_0x1587da})=>{const _0x457f31=this['_suggestions']['get'](_0x1587da);_0x457f31&&_0x457f31['commentThread']&&0x1===_0x457f31['commentThread']['length']&&this['_updateSuggestionData'](_0x1587da,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x482598,'removeComment',(_0x12a67f,{threadId:_0x343942})=>{const _0x5e88c9=this['_suggestions']['get'](_0x343942);_0x5e88c9&&_0x5e88c9['commentThread']&&!_0x5e88c9['commentThread']['length']&&this['_updateSuggestionData'](_0x343942,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x1c482b){if(this['_adapter'])throw new _0x49285b('track-changes-adapter-already-set',this);this['_adapter']=_0x1c482b;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5802ce=!0x1,toJSON:_0x5e3ba0=!0x1}={}){const _0x140e00=[];for(const _0x4d9ee6 of this['_suggestions']['values']())_0x5802ce&&!_0x4d9ee6['isInContent']||_0x140e00['push'](_0x4d9ee6);return _0x5e3ba0?_0x140e00['map'](_0x59b3d6=>_0x59b3d6['toJSON']()):_0x140e00;}['getSuggestion'](_0x598971){const _0x219ed1=this['_suggestions']['get'](_0x598971);if(!_0x219ed1)throw new _0x49285b('track-changes-suggestion-not-found',this);return _0x219ed1;}['hasSuggestion'](_0x48d810){return this['_suggestions']['has'](_0x48d810);}['addSuggestionData'](_0x5d255c){const {authorId:_0x3ef61a,id:_0x4f3d1c,attributes:_0x25e6e4}=_0x5d255c,[_0x1de57c,_0x1249e3]=_0x5d255c['type']['split'](':'),_0x4d6f16=this['_suggestions']['get'](_0x4f3d1c)||this['_createSuggestion'](_0x1de57c,_0x1249e3,_0x4f3d1c,_0x3ef61a,_0x25e6e4);if(this['_addThreadToSuggestion'](_0x4d6f16),this['_checkSuggestionCorrectness'](_0x4d6f16,_0x1de57c,_0x1249e3||null,_0x3ef61a),_0x4d6f16['createdAt']=_0x5d255c['createdAt'],_0x4d6f16['_isDataLoaded']=!0x0,_0x25e6e4&&_0x25e6e4['@external']){const _0x12e3f5=_0x25e6e4['@external'],_0x1c657e=this['_getExternalAuthor'](_0x12e3f5['authorName']);_0x4d6f16['authoredAt']=_0x12e3f5['createdAt'],_0x4d6f16['author']=_0x1c657e,_0x4d6f16['isExternal']=!0x0;}else _0x4d6f16['authoredAt']=_0x5d255c['createdAt'];switch(_0x5d255c['data']&&(_0x4d6f16['data']=_0x5d255c['data']),_0x5d255c['attributes']&&(_0x4d6f16['attributes']=_0x5d255c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4d6f16['_saved']=!0x0),this['_suggestionState']['get'](_0x4d6f16)){case'notReady':this['_suggestionState']['set'](_0x4d6f16,'dataReady');break;case'markerReady':_0x4d6f16['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4d6f16])),this['_refreshSuggestionsChain'](new Set([_0x4d6f16])),this['_suggestionState']['set'](_0x4d6f16,'ready'),this['fire']('suggestionLoaded',_0x4d6f16)):this['_suggestionState']['set'](_0x4d6f16,'removed');}return _0x4d6f16;}['acceptSuggestion'](_0x58ca01){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x3b09a6 of _0x58ca01['getAllAdjacentSuggestions']())_0x3b09a6['accept']();});});}['discardSuggestion'](_0x9a11ce){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x583de7 of _0x9a11ce['getAllAdjacentSuggestions']())_0x583de7['discard']();});});}['enableCommand'](_0x4357a3,_0x2c0c28){const _0x1f8107=this['editor']['commands']['get'](_0x4357a3);if(!_0x1f8107)throw new _0x49285b('track-changes-command-not-found',this,{'commandName':_0x4357a3});if(this['_enabledCommands']['has'](_0x1f8107))throw new _0x49285b('track-changes-enable-command-twice',this,{'commandName':_0x4357a3});this['_enabledCommands']['add'](_0x1f8107),_0x2c0c28&&_0x1f8107['on']('execute',(_0x2752ea,_0xaa2b01)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xaa2b01['length']>0x0&&_0xaa2b01[_0xaa2b01['length']-0x1]&&_0xaa2b01[_0xaa2b01['length']-0x1]['forceDefaultExecution']?_0xaa2b01['pop']():(_0x2752ea['return']=_0x2c0c28((..._0xd68514)=>_0x1f8107['execute'](..._0xd68514,{'forceDefaultExecution':!0x0}),..._0xaa2b01),_0x2752ea['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x504720){let _0x128ef4,_0x26e93c;const _0x48ebd6=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x128ef4=_0x504720();}catch(_0x40c3fe){_0x26e93c=_0x40c3fe;}return _0x48ebd6||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x26e93c&&_0x49285b['rethrowUnexpectedError'](_0x26e93c,this),_0x128ef4;}['markInsertion'](_0x239106,_0x49787e=null,_0x24daf7={}){if(_0x239106['isCollapsed'])return null;const _0x117633=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x490873,meta:_0xce69b7}of this['_findSuggestions'](_0x239106,'insertion'))if(_0xce69b7['isOwn']){if(!_0xce69b7['isNextTo']){if(_0xce69b7['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x490873,_0x24daf7))continue;return _0x490873;}if(Lt(_0x490873,_0x24daf7))return _0x490873;this['_breakSuggestionMarker'](_0x490873,_0x239106['start'],_0x239106['end']);break;}if(_0x49787e==_0x490873['subType']&&Lt(_0x490873,_0x24daf7)){const _0x3ad53a=_0x490873['getFirstRange']();return _0x3ad53a['start']['isEqual'](_0x239106['end'])?this['_setSuggestionRange'](_0x490873,this['_model']['createRange'](_0x239106['start'],_0x3ad53a['end'])):this['_setSuggestionRange'](_0x490873,this['_model']['createRange'](_0x3ad53a['start'],_0x239106['end'])),_0x490873;}}const _0x30c414=_0x1fbc14(),_0xc1fff2=_0x117633['id'],_0x3b7339=_0x49787e?'insertion:'+_0x49787e:'insertion',_0xcc5fcf=this['_setSuggestionData']({'id':_0x30c414,'type':_0x3b7339,'createdAt':new Date(),'authorId':_0xc1fff2,'attributes':_0x24daf7});return this['_addSuggestionMarker'](_0x3b7339,_0x30c414,_0xc1fff2,_0x239106),_0xcc5fcf;}['markMultiRangeInsertion'](_0x4f987f,_0x7b5f9c='multi',_0x423e0e={}){const _0x4eb54b=this['editor']['plugins']['get']('Users')['me'],_0x527952=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x7b5f9c,'join');for(const _0x295e6c of this['getSuggestions']())if(_0x295e6c['author']['id']==_0x4eb54b['id']&&'insertion'==_0x295e6c['type']&&_0x295e6c['subType']==_0x7b5f9c&&Lt(_0x295e6c,_0x423e0e)&&(_0x527952(_0x295e6c['getRanges'](),_0x4f987f)||_0x527952(_0x4f987f,_0x295e6c['getRanges']()))){for(const _0x1b7223 of _0x4f987f)_0x295e6c['addRange'](_0x1b7223);return _0x295e6c;}for(const {suggestion:_0x13eb98,meta:_0x478853}of this['_findSuggestions'](_0x4f987f,'insertion')){if(!_0x478853['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x478853['containsRangeInObject'])continue;if(!Lt(_0x13eb98,_0x423e0e))continue;let _0x15a913=!0x0;for(const _0x1c3d26 of _0x13eb98['getRanges']())for(const _0x169d03 of _0x4f987f)if(!_0x1c3d26['containsRange'](_0x169d03)){_0x15a913=!0x1;break;}if(_0x15a913)return _0x13eb98;}const _0x253f64=_0x1fbc14(),_0x392f3a=_0x4eb54b['id'],_0x2095b5='insertion:'+_0x7b5f9c,_0x51fae1=this['_setSuggestionData']({'id':_0x253f64,'type':_0x2095b5,'createdAt':new Date(),'authorId':_0x392f3a,'attributes':_0x423e0e});for(const _0x9f08cd of _0x4f987f)this['_addSuggestionMarker'](_0x2095b5,_0x253f64,_0x392f3a,_0x9f08cd,u['getMultiRangeId']());return _0x51fae1;}['markInlineFormat'](_0xc6cca1,_0x67060a,_0x2b80f9=null,_0x37f4ee={}){if(_0x2b80f9=_0x2b80f9||Vt(_0x67060a),_0xc6cca1['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x1a1c56=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b80f9,'accept');return this['forceDefaultExecution'](()=>_0x1a1c56([_0xc6cca1],_0x67060a,_0x37f4ee)),null;}const _0x3a4175=this['editor']['plugins']['get']('Users')['me'],_0x4c1bcc=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0xdd8ec5,meta:_0x413397}of this['_findSuggestions'](_0xc6cca1,'insertion'))_0x413397['isOwn']&&!_0x413397['isInsideObject']&&_0x4c1bcc['push'](..._0xdd8ec5['getRanges']());}const _0x23e184=function(_0x3e8e4c,_0x4753c2){const _0x20a1d6=[];for(const _0x2af280 of _0x4753c2){const _0x1329cd=_0x3e8e4c['getIntersection'](_0x2af280);_0x1329cd&&_0x20a1d6['push'](_0x1329cd);}return _0x20a1d6;}(_0xc6cca1,_0x4c1bcc),_0x250aff=function(_0x3c252c,_0x57c011){const _0x3bb688=[_0x3c252c];for(const _0xbecd6d of _0x57c011){let _0x55987d=0x0;for(;_0x55987d<_0x3bb688['length'];){const _0x4a9305=_0x3bb688[_0x55987d]['getDifference'](_0xbecd6d);_0x3bb688['splice'](_0x55987d,0x1,..._0x4a9305),_0x55987d+=_0x4a9305['length'];}}return _0x3bb688;}(_0xc6cca1,_0x4c1bcc);_0x23e184['length']&&this['_model']['change'](()=>{for(const _0x5f82d2 of _0x23e184){const _0x56524c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x2b80f9,'accept');this['forceDefaultExecution'](()=>_0x56524c([_0x5f82d2],_0x67060a,_0x37f4ee));}});for(const _0x2cce7c of _0x250aff){let _0x487eb8=null,_0x44b5bf=_0x2cce7c['start'],_0x3bf2e2=_0x2cce7c['end'];for(const {suggestion:_0x434ee6,meta:_0x5b3247}of this['_findSuggestions'](_0x2cce7c,'formatInline')){if(!_0x5b3247['isOwn'])continue;if(_0x434ee6['subType']!=_0x2b80f9)continue;if(!Lt(_0x434ee6,_0x37f4ee))continue;const _0x1de32a=_0x434ee6['getFirstRange']();if(_0x1de32a['containsRange'](_0x2cce7c,!0x0))return null;_0x44b5bf=_0x44b5bf['isBefore'](_0x1de32a['start'])?_0x44b5bf:_0x1de32a['start'],_0x3bf2e2=_0x3bf2e2['isAfter'](_0x1de32a['end'])?_0x3bf2e2:_0x1de32a['end'],_0x487eb8?_0x1de32a['start']['isBefore'](_0x487eb8['getFirstRange']()['start'])?(_0x487eb8['removeMarkers'](),_0x487eb8=_0x434ee6):_0x434ee6['removeMarkers']():_0x487eb8=_0x434ee6;}const _0x53fd2b=this['_model']['createRange'](_0x44b5bf,_0x3bf2e2);if(_0x487eb8)this['_setSuggestionRange'](_0x487eb8,_0x53fd2b);else{const _0x540d9c=_0x1fbc14(),_0x5543ed=_0x3a4175['id'];this['_setSuggestionData']({'id':_0x540d9c,'type':'formatInline:'+_0x2b80f9,'data':_0x67060a,'createdAt':new Date(),'authorId':_0x5543ed,'attributes':_0x37f4ee}),this['_addSuggestionMarker']('formatInline:'+_0x2b80f9,_0x540d9c,_0x5543ed,_0x53fd2b);}}return null;}['markBlockFormat'](_0x1f27fa,_0x406e43,_0x5d6ef2=[],_0xc9fb8e=null,_0x2e7213={}){_0x406e43['formatGroupId']||(_0x406e43['formatGroupId']=_0x406e43['commandName']),_0x406e43['multipleBlocks']=_0x1f27fa['is']('range'),_0xc9fb8e=_0xc9fb8e||Vt(_0x406e43);const _0xfee4c5=_0x5d6ef2['map'](_0x38e15c=>Gt(_0x38e15c,this['_model'])),_0x1f4577=_0x1f27fa['is']('range')?_0x1f27fa:Gt(_0x1f27fa,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3802fd=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc9fb8e,'accept');return this['forceDefaultExecution'](()=>_0x3802fd([_0x1f4577],_0x406e43,_0x2e7213)),null;}_0xfee4c5['push'](_0x1f4577);let _0x2ad504=!0x0;for(const _0x848f90 of _0xfee4c5)if(!this['_rangeIsInLocalUserInsertion'](_0x848f90)){_0x2ad504=!0x1;break;}if(_0x2ad504&&'always'!==this['_trackFormatChanges']){const _0x5451d2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xc9fb8e,'accept');return this['forceDefaultExecution'](()=>_0x5451d2([_0x1f4577],_0x406e43,_0x2e7213)),null;}let _0x17e6fc=null,_0x31cb59=_0x1f4577['start'],_0x11f0f3=_0x1f4577['end'];for(const {suggestion:_0x57b409,meta:_0x3ed663}of this['_findSuggestions'](_0x1f4577,'formatBlock')){if(!_0x3ed663['isOwn'])continue;if(_0x3ed663['isNextTo']||_0x3ed663['containsRangeInObject']||_0x3ed663['isInsideObject'])continue;if(_0x57b409['data']['formatGroupId']!=_0x406e43['formatGroupId'])continue;if(!Lt(_0x57b409,_0x2e7213))continue;const _0xdb86e7=_0x57b409['getFirstRange']();if(_0x57b409['subType']==_0xc9fb8e){if(_0xdb86e7['containsRange'](_0x1f4577,!0x0))return null;_0x31cb59=_0x31cb59['isBefore'](_0xdb86e7['start'])?_0x31cb59:_0xdb86e7['start'],_0x11f0f3=_0x11f0f3['isAfter'](_0xdb86e7['end'])?_0x11f0f3:_0xdb86e7['end'],_0x17e6fc?_0xdb86e7['start']['isBefore'](_0x17e6fc['getFirstRange']()['start'])?(_0x17e6fc['removeMarkers'](),_0x17e6fc=_0x57b409):_0x57b409['removeMarkers']():_0x17e6fc=_0x57b409;}else{const _0x57b7bc=_0x1f4577['getIntersection'](_0xdb86e7);this['_cutOutSuggestionMarker'](_0x57b409,_0x57b7bc);}}const _0x46da31=this['editor']['plugins']['get']('Users')['me'],_0x58598b=_0x1fbc14(),_0x15faae=_0x46da31['id'];if(_0x17e6fc)return this['_setSuggestionRange'](_0x17e6fc,this['_model']['createRange'](_0x31cb59,_0x11f0f3)),_0x17e6fc;{const _0x525798=this['_setSuggestionData']({'id':_0x58598b,'type':'formatBlock:'+_0xc9fb8e,'data':_0x406e43,'createdAt':new Date(),'authorId':_0x15faae,'attributes':_0x2e7213});return this['_addSuggestionMarker']('formatBlock:'+_0xc9fb8e,_0x58598b,_0x15faae,this['_model']['createRange'](_0x31cb59,_0x11f0f3)),_0x525798;}}['markMultiRangeBlockFormat'](_0x106d13,_0xcab58e,_0x257a38=[],_0x3f8490=null,_0x2287d9={}){_0xcab58e['formatGroupId']||(_0xcab58e['formatGroupId']=_0xcab58e['commandName']);const _0x120ae0=_0x106d13[0x0];_0xcab58e['multipleBlocks']=_0x120ae0['is']('range'),_0x3f8490=_0x3f8490||Vt(_0xcab58e);const _0x20bc86=_0x257a38['map'](_0x4a684c=>Gt(_0x4a684c,this['_model'])),_0x2d4e15=_0x120ae0['is']('range')?_0x106d13:_0x106d13['map'](_0x44e96f=>Gt(_0x44e96f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3d6152=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f8490,'accept');return this['forceDefaultExecution'](()=>_0x3d6152(_0x2d4e15,_0xcab58e,_0x2287d9)),null;}_0x20bc86['push'](..._0x2d4e15);let _0x4d1bd3=!0x0;for(const _0x58bf3c of _0x20bc86)if(!this['_rangeIsInLocalUserInsertion'](_0x58bf3c)){_0x4d1bd3=!0x1;break;}if(_0x4d1bd3&&'always'!==this['_trackFormatChanges']){const _0x1b3075=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f8490,'accept');return this['forceDefaultExecution'](()=>_0x1b3075(_0x2d4e15,_0xcab58e,_0x2287d9)),null;}const _0x370a55=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e3d70 of this['getSuggestions']()){if(_0x3e3d70['author']['id']!=_0x370a55['id'])continue;if('formatBlock'!=_0x3e3d70['type']||_0x3e3d70['data']['formatGroupId']!=_0xcab58e['formatGroupId'])continue;if(!Lt(_0x3e3d70,_0x2287d9))continue;const _0x3c9e39=_0x3e3d70['subType']==_0x3f8490;for(let _0x550dbe=0x0;_0x550dbe<_0x2d4e15['length'];_0x550dbe++){const _0x46ff71=_0x2d4e15[_0x550dbe];for(const _0x3818c1 of _0x3e3d70['getMarkers']()){const _0x359737=_0x3818c1['getRange']();if(_0x46ff71['isEqual'](_0x359737)){_0x3c9e39?(_0x2d4e15['splice'](_0x550dbe,0x1),_0x550dbe--):_0x3e3d70['removeMarker'](_0x3818c1['name']);break;}}}}if(0x0==_0x2d4e15['length'])return null;const _0x544d67=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3f8490,'join');for(const _0x20caa6 of this['getSuggestions']())if(_0x20caa6['author']['id']==_0x370a55['id']&&'formatBlock'==_0x20caa6['type']&&_0x20caa6['data']['formatGroupId']==_0xcab58e['formatGroupId']&&_0x20caa6['subType']==_0x3f8490&&Lt(_0x20caa6,_0x2287d9)&&(_0x544d67(_0x20caa6['getRanges'](),_0x2d4e15)||_0x544d67(_0x2d4e15,_0x20caa6['getRanges']()))){for(const _0x46bc39 of _0x2d4e15)_0x20caa6['addRange'](_0x46bc39);return _0x20caa6;}const _0x23e01e=_0x1fbc14(),_0xec8a1d=_0x370a55['id'],_0xd56ac3='formatBlock:'+_0x3f8490,_0x5a2a07=this['_setSuggestionData']({'id':_0x23e01e,'type':_0xd56ac3,'data':_0xcab58e,'createdAt':new Date(),'authorId':_0xec8a1d,'attributes':_0x2287d9});for(const _0x425a98 of _0x2d4e15)this['_addSuggestionMarker'](_0xd56ac3,_0x23e01e,_0xec8a1d,_0x425a98,u['getMultiRangeId']());return _0x5a2a07;}['markDeletion'](_0x3ccd43,_0x4cfbcc=null,_0x33b79c={}){if(_0x3ccd43['isCollapsed'])return null;const _0x4f446d=this['editor']['plugins']['get']('Users')['me'],_0x28b28d=new _0x12eb8f(_0x3ccd43['start'],_0x3ccd43['end']);for(const {suggestion:_0x35064c,meta:_0xc72888}of this['_findSuggestions'](_0x28b28d,'insertion'))if(_0xc72888['isOwn']&&!_0xc72888['isNextTo']){if(_0x35064c['isMultiRange']){const _0x41680c=_0x35064c['getRanges']()['filter'](_0xd55513=>'$graveyard'!=_0xd55513['root']['rootName']);_0x41680c['every'](_0x5d3b1a=>_0x28b28d['containsRange'](_0x5d3b1a,!0x0))&&_0x35064c['discard']();if(_0x41680c['some'](_0x4d5a1d=>_0x4d5a1d['containsRange'](_0x28b28d,!0x0))){const _0x27337f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x4cfbcc,'accept');return this['forceDefaultExecution'](()=>_0x27337f([_0x28b28d],null,_0x33b79c)),null;}}else{const _0x20f3c6=_0x28b28d['getIntersection'](_0x35064c['getFirstRange']());null!==_0x20f3c6&&_0x35064c['_onDiscard']([_0x20f3c6],null,_0x33b79c);}}if(_0x28b28d['detach'](),_0x28b28d['isCollapsed']||'$graveyard'==_0x28b28d['root']['rootName'])return null;let _0x38aff6=null,_0x575c07=_0x28b28d['start'],_0x22f924=_0x28b28d['end'];const _0xb160fc=this['_findSuggestions'](_0x28b28d,'deletion');for(const {suggestion:_0x40444e,meta:_0x309397}of _0xb160fc){const _0x32b352=this['_model']['createRange'](_0x575c07,_0x22f924);if(_0x309397['isOwn']&&(this['_mergeNestedSuggestions']||!_0x309397['containsRangeInObject']&&!_0x309397['isInsideObject'])){if(_0x40444e['isMultiRange']){if(!Lt(_0x40444e,_0x33b79c))continue;let _0x5c4343=!0x0;for(const _0x34086c of _0x40444e['getRanges']()){if(_0x34086c['containsRange'](_0x32b352,!0x0))return _0x40444e;_0x32b352['containsRange'](_0x34086c)||(_0x5c4343=!0x1);}_0x5c4343&&_0x40444e['discard']();}else{const _0x3e4e2b=_0x40444e['getFirstRange']();if(_0x3e4e2b['containsRange'](_0x32b352,!0x0))return _0x40444e;if(!Lt(_0x40444e,_0x33b79c)){_0x32b352['containsRange'](_0x3e4e2b)?_0x40444e['removeMarkers']():_0x3e4e2b['containsPosition'](_0x575c07)?_0x575c07=_0x3e4e2b['end']:_0x3e4e2b['containsPosition'](_0x22f924)&&(_0x22f924=_0x3e4e2b['start']);continue;}_0x575c07=_0x575c07['isBefore'](_0x3e4e2b['start'])?_0x575c07:_0x3e4e2b['start'],_0x22f924=_0x22f924['isAfter'](_0x3e4e2b['end'])?_0x22f924:_0x3e4e2b['end'],_0x33b79c=Object['assign']({},_0x40444e['attributes']),_0x38aff6?_0x3e4e2b['start']['isBefore'](_0x38aff6['getFirstRange']()['start'])?(_0x38aff6['removeMarkers'](),_0x38aff6=_0x40444e):_0x40444e['removeMarkers']():_0x38aff6=_0x40444e;}}}if(_0x38aff6)return this['_setSuggestionRange'](_0x38aff6,this['_model']['createRange'](_0x575c07,_0x22f924)),_0x38aff6;{const _0x2c6e40=_0x1fbc14(),_0x7f675c=this['_model']['createRange'](_0x575c07,_0x22f924),_0x450260=_0x4f446d['id'],_0x35433d=_0x4cfbcc?'deletion:'+_0x4cfbcc:'deletion',_0x3f534a=this['_setSuggestionData']({'id':_0x2c6e40,'type':_0x35433d,'createdAt':new Date(),'authorId':_0x450260,'attributes':_0x33b79c});return this['_addSuggestionMarker'](_0x35433d,_0x2c6e40,_0x450260,_0x7f675c),_0x3f534a;}}['markMultiRangeDeletion'](_0x27320f,_0x121dc0='multi',_0xb39b8a={}){const _0x443b65=this['editor']['plugins']['get']('Users')['me'],_0x8963c6=_0x27320f['map'](_0x2a4872=>new _0x12eb8f(_0x2a4872['start'],_0x2a4872['end'])),_0x4426a7=new Set();for(const {suggestion:_0x179655,meta:_0x23c518}of this['_findSuggestions'](_0x8963c6,'insertion'))_0x23c518['isOwn']&&!_0x23c518['isNextTo']&&_0x4426a7['add'](_0x179655);for(const _0xe8da80 of _0x4426a7)if(_0xe8da80['isMultiRange']){const _0x3322f6=_0xe8da80['getRanges']();(!_0xe8da80['attributes']||!_0xe8da80['attributes']['skipNestingCheck'])&&(_0x3322f6['every'](_0x5d8736=>_0x8963c6['some'](_0x331158=>_0x331158['containsRange'](_0x5d8736,!0x0)))&&_0xe8da80['discard']());if(_0x8963c6['every'](_0x1fd6f6=>_0x3322f6['some'](_0x380fa7=>_0x380fa7['containsRange'](_0x1fd6f6,!0x0)))){const _0x1cbbe1=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121dc0,'accept');return this['forceDefaultExecution'](()=>_0x1cbbe1(_0x27320f,null,_0xb39b8a)),null;}}else{const _0x4177b7=_0xe8da80['getFirstRange']();_0x8963c6['some'](_0x1f7a1e=>_0x1f7a1e['containsRange'](_0x4177b7,!0x0))&&_0xe8da80['discard']();if(_0x8963c6['every'](_0x36d2dc=>_0x4177b7['containsRange'](_0x36d2dc,!0x0))){const _0x4fadd2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121dc0,'accept');return this['forceDefaultExecution'](()=>_0x4fadd2(_0x8963c6,null,_0xb39b8a)),null;}}const _0xce4c30=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x121dc0,'join');let _0x1e08b3=null;for(const _0x29d352 of this['getSuggestions']())if(_0x29d352['author']['id']==_0x443b65['id']&&_0x29d352['isInContent']&&'deletion'==_0x29d352['type']&&_0x29d352['subType']==_0x121dc0&&Lt(_0x29d352,_0xb39b8a)&&(_0xce4c30(_0x29d352['getRanges'](),_0x8963c6)||_0xce4c30(_0x8963c6,_0x29d352['getRanges']()))){if(_0x1e08b3){if(_0x29d352['commentThread']&&_0x29d352['commentThread']['length'])continue;for(const _0x566d1b of _0x29d352['getRanges']())_0x1e08b3['isIntersectingWithRange'](_0x566d1b)||_0x1e08b3['addRange'](_0x566d1b);_0x29d352['removeMarkers']();}else{_0x1e08b3=_0x29d352;for(const _0x192908 of _0x8963c6)_0x29d352['isIntersectingWithRange'](_0x192908)||_0x29d352['addRange'](_0x192908);}}if(_0x1e08b3)return _0x1e08b3;_0x4426a7['clear']();for(const {suggestion:_0x331b1c,meta:_0x4b17b5}of this['_findSuggestions'](_0x8963c6,'deletion'))_0x4b17b5['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b17b5['containsRangeInObject']&&!_0x4b17b5['isInsideObject'])&&Lt(_0x331b1c,_0xb39b8a)&&_0x4426a7['add'](_0x331b1c);for(const _0x4a8e5a of _0x4426a7){const _0x589e94=_0x4a8e5a['getRanges']();if(!_0xb39b8a||!_0xb39b8a['skipNestingCheck']){if(_0x8963c6['every'](_0x5bb915=>_0x589e94['some'](_0x31244b=>_0x31244b['containsRange'](_0x5bb915,!0x0))))return _0x4a8e5a;}(!_0x4a8e5a['attributes']||!_0x4a8e5a['attributes']['skipNestingCheck'])&&(_0x589e94['every'](_0x569879=>_0x8963c6['some'](_0x1aa4b7=>_0x1aa4b7['containsRange'](_0x569879,!0x0)))&&_0x4a8e5a['discard']());}const _0x3683ea=_0x1fbc14(),_0x5e4a15=_0x443b65['id'],_0x867f96='deletion:'+_0x121dc0,_0x4af133=this['_setSuggestionData']({'id':_0x3683ea,'type':_0x867f96,'createdAt':new Date(),'authorId':_0x5e4a15,'attributes':_0xb39b8a});for(const _0x32f1d9 of _0x8963c6)_0x32f1d9['detach'](),_0x32f1d9['isCollapsed']||'$graveyard'==_0x32f1d9['root']['rootName']||this['_addSuggestionMarker'](_0x867f96,_0x3683ea,_0x5e4a15,_0x32f1d9,u['getMultiRangeId']());return _0x4af133;}['markAttributeChange'](_0x399ed1,_0x5754e1,_0x58b18e,_0x36b684,_0x1ee6f){if(_0x399ed1['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x5ed868=this['editor']['plugins']['get']('Users')['me']['id'],_0x50b712=Array['from'](this['_suggestions']['values']())['filter'](_0x5e25e4=>'attribute'==_0x5e25e4['type']&&_0x5e25e4['data']['key']==_0x5754e1&&_0x5e25e4['isIntersectingWithRange'](_0x399ed1));if('default'===this['_trackFormatChanges']){const _0x746fad=this['_findSuggestions'](_0x399ed1,'insertion')['filter'](({meta:_0x59c865})=>_0x59c865['isOwn']&&!_0x59c865['isInsideObject']&&!_0x59c865['isNextTo'])['map'](({suggestion:_0x547245})=>_0x547245);_0x50b712['unshift'](..._0x746fad);}const _0x36b595=new Map([[_0x399ed1,_0x58b18e]]);for(const _0x45e1c8 of _0x50b712){const _0x1419ee='attribute'==_0x45e1c8['type']?_0x45e1c8['data']['oldValue']:void 0x0,_0x49eaa9=_0x45e1c8['getFirstRange'](),_0x5b9f9b=Array['from'](_0x36b595['keys']())['find'](_0x577bdb=>_0x577bdb['isIntersecting'](_0x49eaa9));if(!_0x5b9f9b)continue;const _0x577e6d=_0x5b9f9b['getDifference'](_0x49eaa9);this['_isBlockAttribute'](_0x5754e1)&&'insertion'==_0x45e1c8['type']&&0x0!=_0x577e6d['length']||(_0x36b595['delete'](_0x5b9f9b),_0x577e6d['forEach'](_0x3f8492=>{_0x36b595['set'](_0x3f8492,_0x58b18e);}),'insertion'!=_0x45e1c8['type']&&_0x1419ee!=_0x36b684&&_0x36b595['set'](_0x5b9f9b['getIntersection'](_0x49eaa9),_0x1419ee));}const _0x30a595=[];for(const [_0x5e373e,_0xd7e732]of _0x36b595){const _0x26ea50=_0x1fbc14(),_0x28a664={'key':_0x5754e1,'oldValue':_0xd7e732,'newValue':_0x36b684};_0x5754e1['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':_0x5754e1});const _0x551c16=('attribute:'+(_0x5754e1+'|'+Vt({'newValue':_0x36b684})))['substring'](0x0,0x3c),_0x5589e=this['_setSuggestionData']({'id':_0x26ea50,'type':_0x551c16,'data':_0x28a664,'createdAt':new Date(),'authorId':_0x5ed868,'attributes':_0x1ee6f});_0x30a595['push'](_0x5589e),this['_addSuggestionMarker'](_0x551c16,_0x26ea50,_0x5ed868,_0x5e373e);}return _0x30a595;}['enableDefaultAttributesIntegration'](_0x39dd20){this['enableCommand'](_0x39dd20,(_0x5360e1,..._0x406bc1)=>{this['_recordAttributeChanges'](()=>{_0x5360e1(..._0x406bc1);});});}['registerBlockAttribute'](_0x206524){this['_blockAttributeKeys']['add'](_0x206524);}['registerInlineAttribute'](_0x3bd5be){this['_inlineAttributeKeys']['add'](_0x3bd5be);}['_getAttributeKey'](_0x235bc3){return'attribute'==_0x235bc3['type']?_0x235bc3['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x30362e,_0xab853d){const _0x263059=_0x30362e['getFirstMarker']();this['_model']['change'](_0x2126d2=>{_0x2126d2['updateMarker'](_0x263059,{'range':_0xab853d});});}['_addThreadToSuggestion'](_0x3f0f28){const _0x262051=_0x3f0f28['id'],_0x149a12=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x262051)||this['_commentsRepository']['addCommentThread']({'channelId':_0x149a12,'threadId':_0x262051,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x167db4=this['_commentsRepository']['getCommentThread'](_0x262051);_0x167db4['unbind']('isRemovable'),_0x167db4['isRemovable']=!0x1,_0x3f0f28['commentThread']=_0x167db4;}['_checkSuggestionCorrectness'](_0x3d660f,_0x58c280,_0x9b695e,_0x2996a2){if(_0x3d660f['type']!=_0x58c280||_0x3d660f['subType']!=_0x9b695e||_0x3d660f['creator']['id']!=_0x2996a2)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x49285b('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x16c531,_0x5c2d1a){const _0x377ef8=_0x16c531['getFirstRange']();if(_0x5c2d1a['isEqual'](_0x377ef8))_0x16c531['removeMarkers']();else{if(_0x377ef8['containsRange'](_0x5c2d1a)){const _0x5debd2=this['_model']['createPositionAt'](_0x5c2d1a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c531,this['_model']['createRange'](_0x377ef8['start'],_0x5debd2));const _0x32f5eb=_0x1fbc14(),_0x4417bd=_0x16c531['creator']['id'],_0x28514e=_0x16c531['type']+':'+_0x16c531['subType'];this['_setSuggestionData']({'id':_0x32f5eb,'type':_0x28514e,'createdAt':new Date(),'authorId':_0x4417bd,'data':_0x16c531['data'],'attributes':_0x16c531['attributes']});const _0x166224=this['_model']['createPositionAt'](_0x5c2d1a['end']['parent'],'after'),_0x3a8386=this['_model']['createRange'](_0x166224,_0x377ef8['end']);this['_addSuggestionMarker'](_0x28514e,_0x32f5eb,_0x4417bd,_0x3a8386);}else{if(_0x377ef8['containsPosition'](_0x5c2d1a['start'])){const _0x191729=this['_model']['createPositionAt'](_0x5c2d1a['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x16c531,this['_model']['createRange'](_0x377ef8['start'],_0x191729));}else{const _0x56c985=this['_model']['createPositionAt'](_0x5c2d1a['end']['parent'],'after');this['_setSuggestionRange'](_0x16c531,this['_model']['createRange'](_0x56c985,_0x377ef8['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x40796f){for(const {suggestion:_0x537ca0,meta:_0xf30b6e}of this['_findSuggestions'](_0x40796f,'insertion')){if(!_0xf30b6e['isOwn'])continue;const _0x4e3b51=_0x537ca0['getRanges']();for(const _0x1c9916 of _0x4e3b51)if(!_0x40796f['getDifference'](_0x1c9916)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x2a674d){const _0x287484=this['editor']['plugins']['get']('Users')['getUser'](_0x2a674d);if(!_0x287484)throw new _0x49285b('track-changes-user-not-found',this);return _0x287484;}['_getExternalAuthor'](_0x2d7c2a){const _0x44bac6=this['editor']['plugins']['get']('Users'),_0x54cf4d=_0x4fd40e('external:'+_0x2d7c2a),_0x46e362=_0x44bac6['getUser'](_0x54cf4d);return _0x46e362||_0x44bac6['addUser']({'id':_0x54cf4d,'name':_0x2d7c2a});}['_createSuggestion'](_0x266608,_0x28d2ab,_0x31702c,_0x89e0eb,_0x14977f){const _0x3ac5aa=this['_getAuthorFromId'](_0x89e0eb),_0xf8150d=this['_suggestionFactory']['buildSuggestion'](_0x266608,_0x28d2ab,_0x31702c,_0x3ac5aa,_0x14977f,_0x2ea622=>{this['_updateSuggestionData'](_0x31702c,{'attributes':_0x2ea622});const _0xd688f=this['getSuggestion'](_0x31702c);this['_joinWithAdjacentSuggestions'](new Set([_0xd688f])),this['_refreshSuggestionsChain'](new Set([_0xd688f]));});return this['listenTo'](_0xf8150d,'accept',()=>{this['_updateSuggestionData'](_0x31702c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xf8150d,'discard',()=>{this['_updateSuggestionData'](_0x31702c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x31702c,_0xf8150d),this['_suggestionState']['set'](_0xf8150d,'notReady'),_0xf8150d;}['_splitMarkerName'](_0x2fc87a){const _0x2e951b=_0x2fc87a['split'](':');return{'group':_0x2e951b[0x0],'type':_0x2e951b[0x1],'subType':_0x2e951b['length']>=0x5?_0x2e951b[0x2]:null,'id':_0x2e951b['length']<0x5?_0x2e951b[0x2]:_0x2e951b[0x3],'authorId':_0x2e951b['length']<0x5?_0x2e951b[0x3]:_0x2e951b[0x4],'markerCount':0x6==_0x2e951b['length']?_0x2e951b[0x5]:null};}['_breakSuggestionMarker'](_0x18a672,_0x1c5fc4,_0x2c0d67){const _0x4331a3=_0x18a672['getFirstRange'](),_0x3d17e7=_0x4331a3['start'],_0x496465=_0x4331a3['end'];this['_setSuggestionRange'](_0x18a672,this['_model']['createRange'](_0x3d17e7,_0x1c5fc4));const _0xd8bf33=_0x1fbc14(),_0x3c7a40=_0x18a672['creator']['id'],_0x4a6a82=_0x18a672['type']+(_0x18a672['subType']?':'+_0x18a672['subType']:'');this['_setSuggestionData']({'id':_0xd8bf33,'type':_0x4a6a82,'createdAt':new Date(),'authorId':_0x3c7a40,'originalSuggestionId':_0x18a672['id'],'attributes':_0x18a672['attributes'],'data':_0x18a672['data']});const _0x45bb6c=this['_getAttributeKey'](_0x18a672);('formatBlock'==_0x18a672['type']||_0x45bb6c&&this['_isBlockAttribute'](_0x45bb6c))&&(_0x2c0d67=this['_model']['createPositionBefore'](_0x2c0d67['parent'])),this['_addSuggestionMarker'](_0x4a6a82,_0xd8bf33,_0x3c7a40,this['_model']['createRange'](_0x2c0d67,_0x496465));}['_findSuggestions'](_0x152b0a,_0x2c9dcd=null){const _0x45d1d5=[],_0x1df90a=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x152b0a)||(_0x152b0a=[_0x152b0a]);for(const _0x16ce87 of this['getSuggestions']()){if(!_0x16ce87['isInContent'])continue;if(_0x2c9dcd&&_0x16ce87['type']!=_0x2c9dcd)continue;let _0xf781ac=!0x1;for(const _0x43b084 of _0x16ce87['getRanges']()){for(const _0x5f1069 of _0x152b0a){const _0x55fb55=_0x5f1069['start']['isEqual'](_0x43b084['end'])||_0x5f1069['end']['isEqual'](_0x43b084['start']);if(_0x55fb55||_0x5f1069['getIntersection'](_0x43b084)){const _0x2400c4=_0x5f1069['containsRange'](_0x43b084)&&Rt(this['_model']['schema'],_0x43b084['start'],_0x5f1069),_0x276b7a=_0x43b084['containsRange'](_0x5f1069)&&Rt(this['_model']['schema'],_0x5f1069['start'],_0x43b084);_0x45d1d5['push']({'suggestion':_0x16ce87,'meta':{'isOwn':_0x1df90a==_0x16ce87['author'],'isNextTo':_0x55fb55,'isInsideObject':_0x2400c4,'containsRangeInObject':_0x276b7a}}),_0xf781ac=!0x0;break;}}if(_0xf781ac)break;}}return _0x45d1d5;}['_addSuggestionMarker'](_0x1e9c3e,_0x190a2a,_0x20ef50,_0x1509bb,_0x598e1a){this['_model']['change'](_0x1740ed=>{let _0x3b7417='suggestion:'+_0x1e9c3e+':'+_0x190a2a+':'+_0x20ef50;_0x598e1a&&(_0x3b7417=_0x3b7417+':'+_0x598e1a),_0x1740ed['addMarker'](_0x3b7417,{'range':_0x1509bb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x35af2f){const _0x147303=_0x35af2f['previous'],_0xa626f3=_0x35af2f['next'];_0x35af2f['previous']=null,_0x35af2f['next']=null,null!=_0x147303&&_0x147303['next']==_0x35af2f&&(_0x147303['next']=_0xa626f3),null!=_0xa626f3&&_0xa626f3['previous']==_0x35af2f&&(_0xa626f3['previous']=_0x147303),'ready'==this['_suggestionState']['get'](_0x35af2f)&&(this['_suggestionState']['set'](_0x35af2f,'removed'),this['fire']('suggestionUnloaded',_0x35af2f,_0x147303,_0xa626f3));}['_setSuggestionData'](_0x4c2bd9){const _0x244aaa=_0x4c2bd9['id'],_0x5ce454=this['addSuggestionData'](_0x4c2bd9);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x1d247b=this['editor']['plugins']['get']('PendingActions'),_0x56c11e=_0x5ce454['hasComments'],_0x5d2d4d=_0x5ce454['subType']?_0x5ce454['type']+':'+_0x5ce454['subType']:_0x5ce454['type'],_0xc503d=this['editor']['locale'],_0x41a7fe=_0x1d247b['add'](o(_0xc503d,'PENDING_ACTION_SUGGESTION')),_0x45a98c={'id':_0x244aaa,'type':_0x5d2d4d,'hasComments':_0x56c11e,'data':_0x4c2bd9['data']||null,'originalSuggestionId':_0x4c2bd9['originalSuggestionId']||null,'attributes':_0x5ce454['attributes']};this['_adapter']['addSuggestion'](_0x45a98c)['then'](_0x3121a1=>{_0x5ce454['_saved']=!0x0,_0x1d247b['remove'](_0x41a7fe),_0x3121a1&&_0x3121a1['createdAt']&&(this['_suggestions']['get'](_0x244aaa)['createdAt']=_0x3121a1['createdAt']);})['catch'](_0x33b825=>{throw _0x2998c4('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5ce454['discard']();}),_0x5ce454['stopListening'](),this['_suggestions']['delete'](_0x5ce454['id']),this['_suggestionState']['delete'](_0x5ce454),_0x33b825;});}return _0x5ce454;}['_isBlockAttribute'](_0x26e38f){return this['_blockAttributeKeys']['has'](_0x26e38f);}['_updateSuggestionData'](_0x2e5af7,_0x5f0e03){const _0x5d5505=this['editor']['plugins']['get']('PendingActions'),_0x4e2fa9=this['getSuggestion'](_0x2e5af7);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4e2fa9['_saved']){const _0x299d7f=_0x5d5505['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2e5af7,_0x5f0e03)['then'](()=>{_0x5d5505['remove'](_0x299d7f);});}else _0x4e2fa9['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2e5af7,_0x5f0e03);});}}['_getSuggestionData'](_0xac7615){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x49285b('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0xac7615);}['_handleNewSuggestionMarker'](_0x2c1f31){const {id:_0x442882,type:_0x4258df,subType:_0xedb309,authorId:_0xd62188}=this['_splitMarkerName'](_0x2c1f31),_0x4b0bcb=this['_suggestions']['get'](_0x442882)||this['_createSuggestion'](_0x4258df,_0xedb309,_0x442882,_0xd62188,{});switch(this['_checkSuggestionCorrectness'](_0x4b0bcb,_0x4258df,_0xedb309,_0xd62188),this['_suggestionState']['get'](_0x4b0bcb)){case'notReady':this['_getSuggestionData'](_0x442882)['then'](_0xa25c54=>{let _0x361463=Promise['resolve']();_0xa25c54['hasComments']&&(_0x361463=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x442882})),_0x361463['then'](()=>{this['addSuggestionData'](_0xa25c54)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x4b0bcb,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x442882,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x4b0bcb,'ready'),this['fire']('suggestionLoaded',_0x4b0bcb);break;case'ready':this['fire']('suggestionChanged',_0x4b0bcb);}return _0x4b0bcb['addMarkerName'](_0x2c1f31),_0x4b0bcb;}['_refreshSuggestionsChain'](_0x411d5e){const _0x1141d1=Array['from'](_0x411d5e),_0x4a6c94=_0x1141d1['filter'](_0x23789f=>'attribute'==_0x23789f['type']);this['_refreshAttributeSuggestionsChain'](_0x4a6c94);const _0x5305ba=_0x1141d1['filter'](_0x568fb4=>!_0x568fb4['isMultiRange']&&'attribute'!=_0x568fb4['type']),_0xd7157f=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x508f65=>!_0x508f65['isMultiRange']&&'attribute'!=_0x508f65['type']),_0x504e7a=_0xd7157f['filter'](_0x5dd880=>!_0x411d5e['has'](_0x5dd880)),_0x2ed7f9=new Map(_0xd7157f['map'](_0x10dcb4=>[_0x10dcb4,this['_suggestionFactory']['getSuggestionCallback'](_0x10dcb4['type'],_0x10dcb4['subType'],'chain')])),_0x6e6a24=new Map(_0xd7157f['map'](_0x34903f=>[_0x34903f,_0x34903f['getFirstRange']()])),_0x2e55e1=new Set(),_0x50346e=new Set();for(let _0x465e58=0x0;_0x465e58<_0x5305ba['length'];_0x465e58++)_0x3ea70a(_0x5305ba[_0x465e58],_0x5305ba,_0x465e58+0x1);for(let _0x17b452=0x0;_0x17b452<_0x5305ba['length'];_0x17b452++)_0x3ea70a(_0x5305ba[_0x17b452],_0x504e7a,0x0);const _0x252163=new Set();for(let _0x492e72=0x0;_0x492e72<_0x5305ba['length'];_0x492e72++){const _0x332cf3=_0x5305ba[_0x492e72];!_0x50346e['has'](_0x332cf3)&&_0x332cf3['previous']&&(_0x252163['add'](_0x332cf3['previous']),_0x332cf3['previous']['next']===_0x332cf3&&(_0x332cf3['previous']['next']=null),_0x332cf3['previous']=null),!_0x2e55e1['has'](_0x332cf3)&&_0x332cf3['next']&&(_0x252163['add'](_0x332cf3['next']),_0x332cf3['next']['previous']===_0x332cf3&&(_0x332cf3['next']['previous']=null),_0x332cf3['next']=null);}function _0x3ea70a(_0x19b097,_0x232ee3,_0x8295dd){for(let _0x424f78=_0x8295dd;_0x424f78<_0x232ee3['length'];_0x424f78++){const _0x76300b=_0x12d2a5(_0x19b097,_0x232ee3[_0x424f78]);_0x76300b&&(_0x76300b[0x0]['next']=_0x76300b[0x1],_0x76300b[0x1]['previous']=_0x76300b[0x0],_0x2e55e1['add'](_0x76300b[0x0]),_0x50346e['add'](_0x76300b[0x1]));}}function _0x12d2a5(_0x2d75fe,_0x50335a){if(_0x2d75fe['author']['id']!==_0x50335a['author']['id'])return null;const _0x3d921b=_0x2ed7f9['get'](_0x2d75fe)(_0x2d75fe,_0x50335a,_0x6e6a24['get'](_0x2d75fe),_0x6e6a24['get'](_0x50335a));if(!_0x3d921b)return null;return _0x2ed7f9['get'](_0x50335a)(_0x2d75fe,_0x50335a,_0x6e6a24['get'](_0x2d75fe),_0x6e6a24['get'](_0x50335a))?_0x3d921b[0x1]['commentThread']&&_0x3d921b[0x1]['commentThread']['length']?null:_0x3d921b:null;}_0x252163['size']&&this['_refreshSuggestionsChain'](_0x252163);}['_refreshAttributeSuggestionsChain'](_0x270748){if(0x0==_0x270748['length'])return;const _0x50c821=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f09f5=>'attribute'==_0x2f09f5['type']&&_0x2f09f5['_isDataLoaded']),_0x475ed5=[],_0x514d90=new Map();for(const _0xd46c13 of _0x50c821){const _0x157224=_0x4fd40e(_0xd46c13['attributes']);_0x514d90['has'](_0x157224)||(_0x514d90['set'](_0x157224,_0x475ed5['length']),_0x475ed5['push']([]));const _0x1f6613=_0x514d90['get'](_0x157224);_0x475ed5[_0x1f6613]['push'](_0xd46c13);}!(function(){_0x475ed5['sort']((_0x3a4cfc,_0x36e973)=>{const _0x52b6b1=_0x3a4cfc[0x0]['createdAt'],_0x2c4f11=_0x36e973[0x0]['createdAt'];return _0x52b6b1==_0x2c4f11?_0x3a4cfc[0x0]['attributes']['groupId']<_0x36e973[0x0]['attributes']['groupId']?-0x1:0x1:_0x52b6b1<_0x2c4f11?-0x1:0x1;});for(const _0x9e6f2e of _0x475ed5)_0x9e6f2e['sort']((_0x47f0ff,_0x1264a4)=>_0x47f0ff['id']<_0x1264a4['id']?-0x1:0x1);}());for(let _0x52a9d7=0x0;_0x52a9d7<_0x475ed5['length'];_0x52a9d7++){if(0x0==_0x475ed5[_0x52a9d7]['length'])continue;const _0x16e686=[];for(let _0x579bf4=_0x52a9d7+0x1;_0x579bf4<_0x475ed5['length'];_0x579bf4++)0x0!=_0x475ed5[_0x579bf4]['length']&&_0x51ebdc(_0x475ed5[_0x52a9d7],_0x475ed5[_0x579bf4])&&_0x16e686['push'](_0x579bf4);for(const _0x587bbf of _0x16e686)_0x475ed5[_0x52a9d7]=_0x475ed5[_0x52a9d7]['concat'](_0x475ed5[_0x587bbf]),_0x475ed5[_0x587bbf]=[];}for(const _0x3ad807 of _0x475ed5)for(let _0x58759c=0x0;_0x58759c<_0x3ad807['length'];_0x58759c++)_0x3ad807[_0x58759c]['next']=_0x3ad807[_0x58759c+0x1]||null;for(const _0x2b4eeb of _0x475ed5)for(let _0x1c892e=0x0;_0x1c892e<_0x2b4eeb['length'];_0x1c892e++)_0x2b4eeb[_0x1c892e]['previous']=_0x2b4eeb[_0x1c892e-0x1]||null;function _0x51ebdc(_0x2c7408,_0x5bbe6f){if(_0x2c7408[0x0]['attributes']['groupId']!==_0x5bbe6f[0x0]['attributes']['groupId']&&_0x2c7408[0x0]['author']!==_0x5bbe6f[0x0]['author'])return!0x1;if(!function(_0x2d87e8,_0x3a583e){if(!_0x2d87e8['hasComments']&&!_0x3a583e['hasComments'])return!0x0;if(_0x2d87e8['hasComments']&&_0x3a583e['hasComments'])return!0x1;if(_0x2d87e8['hasComments']&&_0x3a583e['createdAt']<_0x2d87e8['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x3a583e['hasComments']&&_0x2d87e8['createdAt']<_0x3a583e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2c7408[0x0],_0x5bbe6f[0x0]))return!0x1;const _0x2f01e8=Bt(_0x2c7408[0x0]['attributes'],'groupId'),_0x25a10d=Bt(_0x5bbe6f[0x0]['attributes'],'groupId');if(!_0x2d0ef4(_0x2f01e8,_0x25a10d))return!0x1;return!!_0x2c7408['every'](_0x29ca92=>_0x5bbe6f['some'](_0x30c951=>_0x29ca92['getFirstRange']()['isEqual'](_0x30c951['getFirstRange']())))&&_0x5bbe6f['every'](_0x3baec9=>_0x2c7408['some'](_0x161cc7=>_0x3baec9['getFirstRange']()['isEqual'](_0x161cc7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x23c442){const _0xd2c4b5=Array['from'](_0x23c442),_0x17fbc8=this['getSuggestions']({'skipNotAttached':!0x0}),_0x556371=_0x17fbc8['filter'](_0x4f88f6=>!_0x23c442['has'](_0x4f88f6)),_0x338e19=new Map(_0xd2c4b5['map'](_0x3e3336=>[_0x3e3336,this['_suggestionFactory']['getSuggestionCallback'](_0x3e3336['type'],_0x3e3336['subType'],'join')])),_0x83342a=new Map(_0x17fbc8['map'](_0x4d71ce=>[_0x4d71ce,_0x4d71ce['getRanges']()]));for(let _0x2e006c=0x0;_0x2e006c<_0xd2c4b5['length'];_0x2e006c++){if(_0x12569e(this,_0xd2c4b5[_0x2e006c],_0xd2c4b5,_0x2e006c+0x1))return!0x0;}for(let _0x4354b8=0x0;_0x4354b8<_0xd2c4b5['length'];_0x4354b8++){if(_0x12569e(this,_0xd2c4b5[_0x4354b8],_0x556371,0x0))return!0x0;}return!0x1;function _0x12569e(_0x5211c7,_0x41c538,_0x2bce83,_0x531f01){for(let _0x2c3912=_0x531f01;_0x2c3912<_0x2bce83['length'];_0x2c3912++){const _0x4d68b9=_0x2bce83[_0x2c3912];if(_0x4d68b9['type']!==_0x41c538['type']||_0x4d68b9['author']['id']!==_0x41c538['author']['id']||_0x4d68b9['subType']!==_0x41c538['subType'])continue;if(!Pt(_0x41c538,_0x4d68b9,['groupId']))continue;if('attribute'==_0x41c538['type']&&_0x41c538['data']['oldValue']!=_0x4d68b9['data']['oldValue'])continue;if('attribute'==_0x41c538['type']&&_0x5211c7['_isBlockAttribute'](_0x41c538['data']['key']))continue;if('formatBlock'==_0x41c538['type']){const _0x30f96c=_0x5211c7['editor']['model'],_0x57b999=_0x41c538['getContainedElement']();if(_0x57b999&&(_0x30f96c['schema']['isObject'](_0x57b999)||_0x30f96c['schema']['isLimit'](_0x57b999)))continue;}const _0x18c2ae=_0x338e19['get'](_0x41c538),_0x61e989=_0x83342a['get'](_0x41c538),_0x2a3e94=_0x83342a['get'](_0x4d68b9),_0x182625=_0x41c538['commentThread']&&_0x41c538['commentThread']['length'],_0x4f0029=_0x4d68b9['commentThread']&&_0x4d68b9['commentThread']['length'];if(!_0x182625&&_0x18c2ae(_0x2a3e94,_0x61e989))return _0x5211c7['_joinSuggestions'](_0x4d68b9,_0x41c538),_0x83342a['delete'](_0x41c538),!0x0;if(!_0x4f0029&&_0x18c2ae(_0x61e989,_0x2a3e94))return _0x5211c7['_joinSuggestions'](_0x41c538,_0x4d68b9),_0x83342a['delete'](_0x4d68b9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2a0cc8,_0x290712){if(_0x2a0cc8['isMultiRange']){for(const _0x37659d of _0x290712['getRanges']())_0x2a0cc8['addRange'](_0x37659d);}else{const _0x7f9302=_0x290712['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2a0cc8,this['_model']['createRange'](_0x2a0cc8['getFirstRange']()['start'],_0x7f9302));}_0x290712['removeMarkers']();}['_getMarkerAnnouncementText'](_0x1957ba,_0x313400){const _0x2b44c7=_0x1957ba['startsWith']('format')||_0x1957ba['startsWith']('attribute')?'FORMATTING':_0x1957ba['toUpperCase']();return o(this['editor']['locale'],_0x313400+'_'+_0x2b44c7+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x463fe5=this['editor'];if(!_0x463fe5['ui'])return;const {ariaLiveAnnouncer:_0x499e11}=_0x463fe5['ui'];_0x2c279a(this['_model'],({left:_0x2c4e3a,entered:_0x211136})=>{for(const _0x4df1dc of _0x2c4e3a){const {group:_0x53a74e,type:_0x59eb4f}=this['_splitMarkerName'](_0x4df1dc['name']);if('suggestion'===_0x53a74e){_0x499e11['announce'](this['_getMarkerAnnouncementText'](_0x59eb4f,'LEAVE'));break;}}for(const _0x4270ae of _0x211136){const {group:_0x547aef,type:_0x39be3a}=this['_splitMarkerName'](_0x4270ae['name']);if('suggestion'===_0x547aef){_0x499e11['announce'](this['_getMarkerAnnouncementText'](_0x39be3a,'ENTER'));break;}}});}['_processAttributeChanges'](_0x18f5fe){if(this['_recordAttributeSuggestions'])return!0x1;const _0x274582=this['editor'],_0x375c09=_0x274582['model']['document']['differ']['getChanges']();if(0x0==_0x375c09['length'])return!0x1;const _0x2c9ece=[],_0x430694=_0x375c09['filter'](_0x3dc1c6=>'attribute'==_0x3dc1c6['type']),_0x1ad3c2=_0x375c09['filter'](_0x568a84=>'insert'==_0x568a84['type']&&'$text'!=_0x568a84['name']),_0x278997=_0x375c09['filter'](_0x4da6d7=>'remove'==_0x4da6d7['type']&&'$text'!=_0x4da6d7['name']);for(const _0x232a41 of _0x430694)_0x2c9ece['push']({'key':_0x232a41['attributeKey'],'newValue':_0x232a41['attributeNewValue'],'oldValue':_0x232a41['attributeOldValue'],'range':Ot(_0x232a41['range'],_0x274582['model'])});for(const _0x2c5c33 of _0x1ad3c2){const _0xe0996c=_0x278997['find'](_0x49a8f8=>_0x49a8f8['position']['isEqual'](_0x2c5c33['position']));_0xe0996c&&_0x2c9ece['push']({'key':m,'newValue':_0x2c5c33['name'],'oldValue':_0xe0996c['name'],'range':_0x274582['model']['createRangeOn'](_0x2c5c33['position']['nodeAfter'])});}return 0x0!=_0x2c9ece['length']&&this['_reduceExistingSuggestions'](_0x18f5fe,_0x2c9ece);}['_processAttributeSuggestions'](_0x6af693){let _0x4bbbfb=!0x1;const _0x2a7203=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x2804a9=>_0x2804a9['data']['newRange']&&_0x2804a9['name']['startsWith']('suggestion:attribute:'));for(const _0x10c425 of _0x2a7203){const {subType:_0x28c464,id:_0x497056}=this['_splitMarkerName'](_0x10c425['name']),_0x34dff1=_0x28c464['split']('|')[0x0];for(const _0xb8c39c of this['getSuggestions']({'skipNotAttached':!0x0}))_0xb8c39c['id']!=_0x497056&&'attribute'==_0xb8c39c['type']&&_0xb8c39c['data']&&_0xb8c39c['data']['key']==_0x34dff1&&_0xb8c39c['getFirstRange']()['isIntersecting'](_0x10c425['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0xb8c39c,_0x10c425['data']['newRange'],_0x6af693),_0x4bbbfb=!0x0);}return _0x4bbbfb;}['_recordAttributeChanges'](_0x33f9d7){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x33f9d7();}['_isRegisteredAttribute'](_0x591f18){const _0x223642=this['_isBlockAttribute'](_0x591f18),_0x3991e4=this['_inlineAttributeKeys']['has'](_0x591f18);return _0x223642||_0x3991e4;}['_reduceExistingSuggestions'](_0x4ac970,_0x2ea745){if(0x0==_0x2ea745['length'])return!0x1;let _0x3ddddd=!0x1;for(const _0x1dd03e of _0x2ea745){const _0x30dd00=this['_findSuggestions'](_0x1dd03e['range'],'attribute')['filter'](_0x2aab20=>!_0x2aab20['meta']['isNextTo'])['map'](_0x550296=>_0x550296['suggestion']),_0x397628=_0x4fd40e({'newValue':_0x1dd03e['newValue']});_0x30dd00['filter'](_0x7627ef=>{const [_0x143bc8,_0x552ef7]=_0x7627ef['subType']['split']('|');return _0x143bc8==_0x1dd03e['key']&&_0x552ef7!=_0x397628;})['forEach'](_0x52f46a=>{this['_reduceSuggestionAttributeRange'](_0x52f46a,_0x1dd03e['range'],_0x4ac970),_0x3ddddd=!0x0;});}return _0x3ddddd;}['_reduceSuggestionAttributeRange'](_0x177102,_0x2487f6,_0xb19be8){const _0x285e65=_0x177102['getFirstRange']()['getDifference'](_0x2487f6);0x0!==_0x285e65['length']?0x1!==_0x285e65['length']?this['_breakSuggestionMarker'](_0x177102,_0x2487f6['start'],_0x2487f6['end']):this['_setSuggestionRange'](_0x177102,_0x285e65[0x0]):_0xb19be8['removeMarker'](_0x177102['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0xef0369){this['_editor']=_0xef0369,this['_model']=_0xef0369['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4def11,_0x1bd709,_0x28d962,_0x8cab3f,_0x8e979d,_0x219fb0){return new u(this['_model'],{'type':_0x4def11,'subType':_0x1bd709,'id':_0x28d962,'author':_0x8cab3f,'creator':_0x8cab3f,'attributes':_0x8e979d,'onAttributesChange':_0x219fb0,'onAccept':(..._0x460e55)=>this['getSuggestionCallback'](_0x4def11,_0x1bd709,'accept')(..._0x460e55),'onDiscard':(..._0x19d724)=>this['getSuggestionCallback'](_0x4def11,_0x1bd709,'discard')(..._0x19d724)});}['registerCustomCallback'](_0x295982,_0x39003e,_0x5aafb2,_0x16246f){const _0x5000de=_0x295982+':'+_0x39003e+':'+_0x5aafb2;this['_customCallbacks']['set'](_0x5000de,_0x16246f);}['getSuggestionCallback'](_0x5a74f5,_0x3c95b0,_0x9586de){const _0x59b1b0=_0x5a74f5+':'+_0x3c95b0+':'+_0x9586de;return this['_customCallbacks']['get'](_0x59b1b0)||this['_defaultCallbacks']['get'](_0x5a74f5+':'+_0x9586de);}['_registerDefaultCallbacks'](){const _0x48d969=()=>!0x1,_0xffa53d=_0xf63a46=>{_0xf63a46['sort']((_0x5cbcf8,_0x30bdf2)=>_0x5cbcf8['start']['isBefore'](_0x30bdf2['start'])?0x1:-0x1),this['_model']['change'](_0x39f4fd=>{for(const _0x2fcffa of _0xf63a46){let _0x3d5ed4;_0x3d5ed4=_0x2fcffa['end']['isAtEnd']&&_0x2fcffa['end']['parent']==_0x2fcffa['start']['nodeAfter']?_0x39f4fd['createSelection'](_0x2fcffa['start']['nodeAfter'],'on'):_0x39f4fd['createSelection'](_0x2fcffa),this['_model']['deleteContent'](_0x3d5ed4,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x576516=(_0x59415f,_0x2a8e1d)=>{_0x2a8e1d&&this['_model']['change'](_0x54c834=>{const {commandName:_0x46dec3,commandParams:_0x310afc=[]}=_0x2a8e1d,_0x256708=_0x59415f['map'](_0xa5026f=>(Tt(_0xa5026f)&&(_0xa5026f=this['_model']['createRange'](_0xa5026f['end'])),_0xa5026f))['filter'](_0x1639c2=>'$graveyard'!==_0x1639c2['root']['rootName']);if(_0x256708['length']<0x1)return;const _0x4cf8ad=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3bc514=>_0x12eb8f['fromRange'](_0x3bc514));_0x54c834['setSelection'](_0x256708);for(const _0x4c32be of this['_editor']['commands']['commands']())_0x4c32be['refresh']();_0x310afc['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x46dec3,..._0x310afc);const _0x36d8c0=_0x4cf8ad['filter'](_0x41167f=>'$graveyard'!=_0x41167f['root']['rootName']);_0x36d8c0['length']>0x0&&_0x54c834['setSelection'](_0x36d8c0);for(const _0x31921b of _0x4cf8ad)_0x31921b['detach']();});},_0x8cd9ce=(_0x45cba,_0x2c26bf)=>0x1==_0x45cba['length']&&0x1==_0x2c26bf['length']&&_0x45cba[0x0]['end']['isEqual'](_0x2c26bf[0x0]['start']),_0x312e9f=(_0x574910,_0x3720e8,_0x5e479e,_0x516921)=>Ft(_0x574910,_0x3720e8,_0x5e479e,_0x516921,this['_model'])?[_0x574910,_0x3720e8]:Ft(_0x3720e8,_0x574910,_0x516921,_0x5e479e,this['_model'])?[_0x3720e8,_0x574910]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x48d969),this['_defaultCallbacks']['set']('insertion:discard',_0xffa53d),this['_defaultCallbacks']['set']('insertion:join',_0x8cd9ce),this['_defaultCallbacks']['set']('insertion:chain',_0x312e9f),this['_defaultCallbacks']['set']('deletion:accept',_0xffa53d),this['_defaultCallbacks']['set']('deletion:discard',_0x48d969),this['_defaultCallbacks']['set']('deletion:join',_0x8cd9ce),this['_defaultCallbacks']['set']('deletion:chain',_0x312e9f),this['_defaultCallbacks']['set']('formatInline:accept',_0x576516),this['_defaultCallbacks']['set']('formatInline:discard',_0x48d969),this['_defaultCallbacks']['set']('formatInline:join',_0x8cd9ce),this['_defaultCallbacks']['set']('formatInline:chain',_0x48d969),this['_defaultCallbacks']['set']('formatBlock:accept',_0x576516),this['_defaultCallbacks']['set']('formatBlock:discard',_0x48d969),this['_defaultCallbacks']['set']('formatBlock:join',_0x8cd9ce),this['_defaultCallbacks']['set']('formatBlock:chain',_0x48d969),this['_defaultCallbacks']['set']('attribute:accept',_0x48d969),this['_defaultCallbacks']['set']('attribute:discard',(_0x5be1c9,_0x5a2e01)=>{if(!_0x5a2e01)return;const _0x5d5ea1=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x180aef=>{if(_0x5a2e01['key']==m)for(const _0x3a9491 of _0x5be1c9){const _0x351209=_0x3a9491['start']['nodeAfter'],_0x5ce4fe=_0x5a2e01['oldValue'];_0x180aef['rename'](_0x351209,_0x5ce4fe);}else{if(_0x5d5ea1['_isBlockAttribute'](_0x5a2e01['key'])){for(const _0x272e6b of _0x5be1c9)void 0x0!==_0x5a2e01['oldValue']?_0x180aef['setAttribute'](_0x5a2e01['key'],_0x5a2e01['oldValue'],_0x272e6b['start']['nodeAfter']):_0x180aef['removeAttribute'](_0x5a2e01['key'],_0x272e6b['start']['nodeAfter']);}else{for(const _0x127913 of _0x5be1c9)_0x5a2e01['oldValue']?_0x180aef['setAttribute'](_0x5a2e01['key'],_0x5a2e01['oldValue'],_0x127913):_0x180aef['removeAttribute'](_0x5a2e01['key'],_0x127913);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x8cd9ce);}}function Rt(_0x1b2485,_0x727ac8,_0x588cc1){for(const _0x2225ed of _0x727ac8['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x2225ed['root']==_0x2225ed)return!0x1;if(!_0x588cc1['containsItem'](_0x2225ed))return!0x1;if(_0x1b2485['isObject'](_0x2225ed)||_0x1b2485['isLimit'](_0x2225ed))return!0x0;}return!0x1;}function Tt(_0x57d606){return _0x57d606['end']['parent']==_0x57d606['start']['nodeAfter']&&_0x57d606['end']['isAtStart'];}function Et(_0x40d2ba,_0x28aff5,_0x294301,_0x4e80e4){const _0x1aa928=_0x58c57a=>!_0x58c57a['item']['is']('$textProxy')&&!_0x4e80e4['isObject'](_0x58c57a['item']),_0x431ae7=_0x40d2ba['start']['getLastMatchingPosition'](_0x1aa928),_0x1ec247=_0x40d2ba['end']['getLastMatchingPosition'](_0x1aa928,{'direction':'backward'});return(!_0x40d2ba['start']['isEqual'](_0x431ae7)||!_0x40d2ba['end']['isEqual'](_0x1ec247))&&(_0x431ae7['isBefore'](_0x1ec247)?_0x294301['updateMarker'](_0x28aff5,{'range':_0x294301['createRange'](_0x431ae7,_0x1ec247)}):_0x294301['removeMarker'](_0x28aff5),!0x0);}function Vt(_0x26afeb){return _0x4fd40e(_0x26afeb);}function Ut(_0x529dce){const _0xcde718=_0x529dce['start']['nodeAfter'];return _0xcde718&&_0xcde718['is']('element');}function Ot(_0x2e2401,_0x1a7d76){return null==_0x2e2401['end']['nodeBefore']&&_0x2e2401['end']['parent']==_0x2e2401['start']['nodeAfter']?Gt(_0x2e2401['start']['nodeAfter'],_0x1a7d76):_0x2e2401;}function Gt(_0x4afc3b,_0x20efc1){const _0x56f635=_0x20efc1['schema']['isObject'](_0x4afc3b)||_0x20efc1['schema']['isSelectable'](_0x4afc3b);return _0x20efc1['createRange'](_0x20efc1['createPositionAt'](_0x4afc3b,'before'),_0x56f635?_0x20efc1['createPositionAfter'](_0x4afc3b):_0x20efc1['createPositionAt'](_0x4afc3b,'end'));}function Ft(_0x225e85,_0x142acf,_0x3534cb,_0x18f64c,_0x57b6c0){if(!Pt(_0x225e85,_0x142acf))return!0x1;if(_0x3534cb['end']['isEqual'](_0x18f64c['start']))return!0x0;if(_0x225e85['type']!=_0x142acf['type'])return!0x1;if(!_0x3534cb['end']['isTouching'](_0x18f64c['start']))return!0x1;const _0x1a1eb5=_0x57b6c0['createRange'](_0x3534cb['end'],_0x18f64c['start'])['getWalker']();for(const _0x2e3c0b of _0x1a1eb5)if(['elementStart','elementEnd']['includes'](_0x2e3c0b['type'])&&_0x57b6c0['schema']['isLimit'](_0x2e3c0b['item']))return!0x1;return!0x0;}function Pt(_0x20375a,_0x19977c,_0x52d83f=[]){return!(!_0x20375a['_isDataLoaded']||!_0x19977c['_isDataLoaded'])&&_0x2d0ef4(Bt(_0x20375a['attributes'],_0x52d83f),Bt(_0x19977c['attributes'],_0x52d83f));}function Lt(_0x338a5f,_0x3144a1){const _0x3e709e=Ht(_0x338a5f['attributes']),_0x490629=Ht(_0x3144a1);if(!_0x338a5f['_isDataLoaded'])return!0x1;for(const _0x7e232d of Object['keys'](_0x490629))if(!_0x2d0ef4(_0x3e709e[_0x7e232d],_0x490629[_0x7e232d]))return!0x1;return!0x0;}function Ht(_0x32d20c){const _0x31291c=Object['assign']({},_0x32d20c);return delete _0x31291c['skipNestingCheck'],delete _0x31291c['tablePasteChainId'],_0x31291c;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0xb21443(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x367597,_0x4baedc,_0x942b68,_0x41bf20){super(),this['model']=_0x4baedc,this['view']=_0x942b68,this['commentThreadController']=_0x41bf20,this['_editor']=_0x367597,this['_acceptCommand']=_0x367597['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x367597['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x5c8f69,_0x227764)=>_0x5c8f69||_0x227764),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x35db02=>_0x35db02&&this['_editor']['model']['canEditAt'](_0x4baedc['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x3c28ea=>_0x3c28ea&&this['_editor']['model']['canEditAt'](_0x4baedc['getRanges']())),this['_pendingAction']=null,_0x942b68['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x942b68,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x942b68,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x942b68,'change:isDirty',()=>{_0x942b68['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 _0x5522cc=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x5522cc);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x261f24{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x46dec8,_0x5829f0,_0x457f47,_0x3ea95e){super(_0x46dec8),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x5829f0['authoredAt']),this['bind']('authoredAt')['to'](_0x5829f0),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x5829f0,this['_localUser']=_0x457f47,this['_config']=_0x3ea95e,_0x3ea95e['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a4ee0}=this['_config'];this['commentsListView']=new _0x2a4ee0(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',_0x5a5748=>_0x5a5748+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x15e774,_0x455128)=>_0x15e774||!!_0x455128);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x43bbc1}=this['_config'],_0xc59c98=new _0x43bbc1(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xcbec24=_0xc59c98['commentInputView'];return _0xc59c98['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xcbec24,'value',(_0x14e736,_0x13bd8d,_0x49cbfa)=>!!_0x49cbfa||_0x14e736&&!_0x13bd8d),_0xcbec24['on']('submit',(_0x2e887f,_0x577ddd)=>{this['fire']('addComment',_0x577ddd),_0xcbec24['editor']['setData']('');}),_0xcbec24['on']('cancel',()=>this['focus']()),_0xcbec24['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0xc59c98;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x119e1d,_0x4b8b1b,_0x3a7a8e,_0x476ddd){super(_0x119e1d,_0x4b8b1b,_0x3a7a8e,_0x476ddd),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x5650e4=>_0x5650e4&&_0x5650e4[0x0]?_0x5650e4[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0xc4fd8,_0x37d099)=>{let _0x314e89='';for(const _0xd77291 of _0xc4fd8)_0x314e89+='<p>'+ds(_0xd77291['content'],_0xd77291['color'])+'</p>';return _0x37d099?_0x314e89:_0x17e6b9(_0x314e89,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x119e1d,'Accept\x20suggestion'),_0x485baa['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x119e1d,'Discard\x20suggestion'),_0x485baa['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2bdf72(_0x119e1d,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x121c66=this['bindTemplate'],_0x32f03e=[{'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':_0x121c66['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x121c66['to']('authoredAt',_0x466690=>this['_config']['formatDateTime'](_0x466690))}]}]},{'tag':'div','attributes':{'class':['ck-suggestion__actions','ck-annotation__actions']},'children':[this['acceptButton'],this['discardButton']]},{'tag':'div','attributes':{'class':['ck-annotation__content-wrapper']}}];this['_model']['isExternal']&&_0x32f03e['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x8a109a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x121c66['if']('isActive','ck-suggestion-wrapper--active'),_0x121c66['to']('type',_0x330bbd=>'ck-suggestion-'+_0x330bbd),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':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x32f03e}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x8a109a['children']['push'](this['commentsListView'],this['commentThreadInputView']),this['commentsListView']['delegate']('editorReady')['to'](this),this['commentsListView']['delegate']('editorDestroyed')['to'](this),this['commentThreadInputView']['delegate']('editorReady')['to'](this),this['commentThreadInputView']['delegate']('editorDestroyed')['to'](this)),_0x8a109a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5b36c1,_0x34acb6,_0x363b50)=>{this['_descriptionElement']['innerHTML']=_0x363b50;});}['_createButton'](_0xc174a8,_0xdb1369,_0x5bc511,_0x59c695,_0x4f8d53){const _0x54a06a=new _0x3d5a54(this['locale']);return _0x54a06a['set']({'label':_0xc174a8,'icon':_0xdb1369,'tooltip':!0x0,'tooltipPosition':_0x4f8d53}),_0x54a06a['extendTemplate']({'attributes':{'class':_0x5bc511}}),_0x54a06a['on']('execute',()=>{this['fire'](_0x59c695,this['_model']['id']);}),_0x54a06a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['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;}}function ds(_0x59a4a5,_0xec7acd){let _0x5eefd5='';return _0x5eefd5+=_0x59a4a5['split']('*')['map']((_0x399d9d,_0x46e379)=>_0x46e379%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x399d9d)+'</span>':us(_0x399d9d))['join'](''),_0xec7acd&&(_0x5eefd5+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xec7acd['value']+'\x22\x20title=\x22'+_0xec7acd['title']+'\x22></span>'),_0x5eefd5;}function us(_0x5da63a){const _0x40f50b=document['createElement']('span');return _0x40f50b['innerText']=_0x5da63a,_0x40f50b['innerHTML'];}var ie='<!--\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\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x49ae3f{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4d18e0,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x4c8092){super(_0x4c8092),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x4a5537=this['editor']['config'];_0x4a5537['define']('trackChanges.SuggestionThreadView',ne),_0x4a5537['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x4a5537['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x226c0f,_0xbe5574){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x3a0117,_0x5b68c6]of this['_handleControllerBuffer']){const _0x1c66c1=this['_suggestionToController']['has'](_0x3a0117);_0x1c66c1||_0x5b68c6?_0x1c66c1&&_0x5b68c6&&this['_destroyController'](_0x3a0117):this['_initializeController'](_0x3a0117);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x226c0f,_0xbe5574);}['init'](){const _0x4117eb=this['editor'],_0x576a04=_0x4117eb['plugins']['get']('TrackChangesEditing'),_0x303ab9=_0x4117eb['plugins']['get']('Annotations'),_0x13e2e4=_0x4117eb['plugins']['get']('EditorAnnotations'),_0x45b419=_0x4117eb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x13e2e4['addSourceCollector'](()=>{const _0x2e7b37=[];for(const [_0x1d166b,_0x49c8ec]of Array['from'](this['_suggestionToController'])){const _0x308ddb=_0x1d166b['getAllAdjacentSuggestions'](),_0x2a09f4=[];for(const _0x4023c2 of _0x308ddb){if(!_0x4023c2['isInContent'])continue;if(_0x4023c2['isMultiRange']){_0x2a09f4['push'](..._0x4023c2['getRanges']());continue;}const _0xf7a85f=_0x4023c2['getFirstRange']();if(_0x2a09f4['length']>0x0){const _0xd2584a=_0x2a09f4[0x0]['getJoined'](_0xf7a85f);if(_0xd2584a){_0x2a09f4[0x0]=_0xd2584a;continue;}}_0x2a09f4['push'](_0xf7a85f);}_0x2e7b37['push']([_0x49c8ec['view'],_0x2a09f4]);}return _0x2e7b37;}),this['listenTo'](_0x576a04,'suggestionLoaded',(_0x2c9eb2,_0x5eed05)=>{this['listenTo'](_0x5eed05,'change:previous',(_0x30e4ba,_0xec8748,_0x5690ef,_0x288028)=>{_0x5eed05['isInContent']&&(null==_0x5690ef?(this['_updateController'](_0x288028['head']),this['_handleSuggestionControllerDelayed'](_0x5eed05,!0x1)):(this['_updateController'](_0x5690ef['head']),null==_0x288028&&this['_handleSuggestionControllerDelayed'](_0x5eed05,!0x0)));}),null!==_0x5eed05['previous']?this['_updateController'](_0x5eed05['head']):this['_handleSuggestionControllerDelayed'](_0x5eed05,!0x1);}),this['listenTo'](_0x576a04,'suggestionUnloaded',(_0x1a045a,_0x1a693f,_0x37608e)=>{this['stopListening'](_0x1a693f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1a693f),this['_suggestionToController']['has'](_0x1a693f)&&this['_destroyController'](_0x1a693f),_0x37608e&&this['_updateController'](_0x37608e['head']);}),this['listenTo'](_0x576a04,'suggestionChanged',(_0x4aab78,_0x4f6ee3)=>{this['_updateController'](_0x4f6ee3);}),this['listenTo'](_0x303ab9,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x45b419,'addComment',(_0x4e47ee,{threadId:_0x4dd7e9,isFromAdapter:_0x129b40})=>{if(_0x129b40||!_0x576a04['hasSuggestion'](_0x4dd7e9))return;const _0x3e291e=_0x576a04['getSuggestion'](_0x4dd7e9);this['_suggestionToController']['get'](_0x3e291e)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x24b255=this['editor']['plugins']['get']('Annotations'),_0x53a0d7=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1edd09=Array['from'](_0x24b255['activeAnnotations'],_0x5eaf33=>_0x5eaf33['innerView'])['filter'](_0x71aa3e=>this['_viewToController']['has'](_0x71aa3e)),_0x1ebb0e=[];for(const _0x4402e3 of _0x1edd09){const _0x5d9b62=this['_viewToController']['get'](_0x4402e3)['model']['getAllAdjacentSuggestions']();_0x1ebb0e['push'](..._0x5d9b62['reduce']((_0x521987,_0x325b7c)=>[..._0x521987,..._0x325b7c['getMarkerNames']()],[]));}_0x53a0d7['activeMarkers']=_0x1ebb0e;}['_addUIComponentsToFactory'](){const _0xdf5fe0=this['editor'],_0x4dd8a6=_0xdf5fe0['locale'],_0x5e46d1=o(_0x4dd8a6,'Track\x20changes'),_0x5d18c9=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x5e46d1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4dd8a6,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4dd8a6,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4dd8a6,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x4dd8a6,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x104f3e of _0x5d18c9)if(ae(_0x104f3e)){const _0x597f4b=_0xdf5fe0['commands']['get'](_0x104f3e['model']['commandName']);_0x104f3e['model']['bind']('isOn','isEnabled')['to'](_0x597f4b,'value','isEnabled');}_0xdf5fe0['ui']['componentFactory']['add']('trackChanges',_0x318351=>this['_createToolbarButton'](_0x318351,_0x5d18c9,_0x5e46d1)),_0xdf5fe0['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2e88b4=>this['_createMenuBarMenu'](_0x2e88b4,_0x5d18c9,_0x5e46d1));}['_createToolbarButton'](_0x11afb8,_0x4d986d,_0x385087){const _0x5735b8=zt(_0x11afb8,Zt),_0x2ff649=this['editor']['commands']['get']('trackChanges');_0x5735b8['buttonView']['set']({'tooltip':_0x385087,'label':_0x385087,'icon':ie}),_0x5735b8['buttonView']['bind']('isOn')['to'](_0x2ff649,'value'),_0x5735b8['buttonView']['on']('execute',()=>{_0x2ff649['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x5735b8,_0x4d986d,{'role':'menu'});const _0x4fcffb=[];for(const _0x2cb8ce of _0x4d986d)ae(_0x2cb8ce)&&_0x4fcffb['push'](this['editor']['commands']['get'](_0x2cb8ce['model']['commandName']));const _0x120539=_0x5735b8['buttonView'];return _0x120539['actionView']['unbind']('isEnabled'),_0x120539['arrowView']['unbind']('isEnabled'),_0x120539['actionView']['bind']('isEnabled')['to'](_0x2ff649,'isEnabled'),_0x120539['arrowView']['bind']('isEnabled')['toMany'](_0x4fcffb,'isEnabled',(..._0x1052e4)=>_0x1052e4['some'](_0x45055a=>_0x45055a)),_0x5735b8['on']('execute',_0x56f0ea=>{this['editor']['execute'](_0x56f0ea['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x5735b8;}['_createMenuBarMenu'](_0x2aeb70,_0x311357,_0xaff7cc){const _0x444d1f=new Kt(_0x2aeb70),_0x6229c6=this['editor']['commands']['get']('trackChanges');_0x444d1f['buttonView']['set']({'label':_0xaff7cc,'icon':ie});const _0xfa5b5a=new Qt(_0x2aeb70);for(const _0x4f9b7f of _0x311357){if('separator'==_0x4f9b7f['type']){_0xfa5b5a['items']['add'](new Jt(_0x2aeb70));continue;}const _0x277740=new Xt(_0x2aeb70,_0x444d1f),_0x4001ea=new Yt(_0x2aeb70),_0x58842c=_0x4f9b7f['model'];_0x4001ea['bind'](...Object['keys'](_0x58842c))['to'](_0x58842c),_0x4001ea['delegate']('execute')['to'](_0x444d1f),_0x4001ea['on']('execute',()=>{this['editor']['execute'](_0x58842c['commandName']),this['editor']['editing']['view']['focus']();}),_0x277740['children']['add'](_0x4001ea),_0xfa5b5a['items']['add'](_0x277740);}return _0x444d1f['bind']('isEnabled')['to'](_0x6229c6,'isEnabled'),_0x444d1f['panelView']['children']['add'](_0xfa5b5a),_0x444d1f;}['_initializeController'](_0x158005){const _0x272610=this['editor'],_0x3ec00a=_0x272610['config'],_0x256de6=_0x272610['plugins']['get']('Annotations'),_0xec4e45=_0x272610['plugins']['get']('CommentsRepository'),_0x6aca27=_0x272610['plugins']['get']('EditorAnnotations'),_0x132f26=_0x272610['plugins']['get'](_0x4d18e0)['me'],_0x59f3a2=_0x3ec00a['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x5ce760,CommentThreadInputView:_0xabab7}=_0x272610['plugins']['get']('CommentsUI');let _0x297856,_0x112281;this['_annotationViews']['has'](_0x158005['id'])?(_0x112281=this['_annotationViews']['get'](_0x158005['id']),_0x297856=_0x112281['mainView']):(_0x297856=new _0x59f3a2(_0x272610['locale'],_0x158005,_0x132f26,{'disableComments':this['_disableComments'],'editorConfig':_0x3ec00a['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x3ec00a['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x3ec00a['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x3ec00a['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x4bf86e(_0x3ec00a['get']('locale')),'CommentView':_0x3ec00a['get']('comments')['CommentView'],'CommentsListView':_0x5ce760,'CommentThreadInputView':_0xabab7}),_0x297856['acceptButton']['on']('execute',()=>{_0x272610['editing']['view']['focus']();}),_0x297856['discardButton']['on']('execute',()=>{_0x272610['editing']['view']['focus']();}),_0x112281=_0x256de6['createAnnotationView'](this['editor']['locale'],_0x297856),_0x112281['bind']('isDirty')['to'](_0x297856,'isDirty'),_0x112281['bind']('length')['to'](_0x297856),_0x112281['bind']('type')['to'](_0x297856,'type',_0x4f2639=>'suggestion-'+_0x4f2639),this['_annotationViews']['set'](_0x158005['id'],_0x112281));const _0x4db9d6=_0xec4e45['createCommentThreadController'](_0x158005['commentThread'],_0x297856),_0x2da3a7=new oe(_0x272610,_0x158005,_0x297856,_0x4db9d6),_0x21e765=_0x158005['getAllAdjacentSuggestions']()['filter'](_0xbaa059=>_0xbaa059['isInContent']);_0x297856['descriptionParts']=_0x272610['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x21e765),this['_suggestionToController']['set'](_0x158005,_0x2da3a7),this['_viewToController']['set'](_0x297856,_0x2da3a7);const _0x16a0ad=_0x256de6['createAnnotation']({'view':_0x112281,'target':()=>{const _0x467a65=[],_0x3ead94=_0x158005['getAllAdjacentSuggestions']()['filter'](_0x471508=>_0x471508['isInContent']);for(const _0x503c4c of _0x3ead94)_0x467a65['push'](..._0x503c4c['getMarkers']());return _0x2ec01c(_0x272610['editing'],_0x467a65);},'type':()=>'suggestion-'+_0x2da3a7['view']['type']});_0xec4e45['_bindAnnotationToEditors'](_0x297856,_0x16a0ad),_0x256de6['add'](_0x16a0ad),_0x6aca27['registerAnnotation'](_0x16a0ad);}['_destroyController'](_0x263401){const _0x47cb6a=this['editor']['plugins']['get']('CommentsRepository'),_0x840a47=this['editor']['plugins']['get']('Annotations'),_0x4c1fec=this['_suggestionToController']['get'](_0x263401),_0x4a9323=_0x4c1fec['view'],_0xe76c76=_0x840a47['getByInnerView'](_0x4a9323);_0x47cb6a['_unbindEditors'](_0x4a9323),_0xe76c76&&_0x840a47['remove'](_0xe76c76),this['_suggestionToController']['delete'](_0x263401),this['_viewToController']['delete'](_0x4a9323),_0x4c1fec['destroy']();}['_updateController'](_0x2161d4){if(!_0x2161d4['isInContent']||!this['_suggestionToController']['has'](_0x2161d4))return;const _0x38369b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5d93b0=this['_suggestionToController']['get'](_0x2161d4),_0x3c0bb0=_0x2161d4['getAllAdjacentSuggestions']();_0x5d93b0['view']['descriptionParts']=_0x38369b['descriptionFactory']['getDescriptions'](_0x3c0bb0);}['destroy'](){for(const _0x417e89 of this['_suggestionToController']['keys']())this['_destroyController'](_0x417e89);for(const _0x4043b6 of this['_annotationViews']['values']())_0x4043b6['mainView']['destroy']();super['destroy']();}}function ae(_0x58b39d){return'model'in _0x58b39d;}class k extends _0x49ae3f{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x37ef22){this['editor']['plugins']['get'](p)['adapter']=_0x37ef22;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x26b8d2){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x26b8d2);}['getSuggestions']({skipNotAttached:_0x37807b=!0x1,toJSON:_0x5662c5=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x37807b,'toJSON':_0x5662c5});}['getSuggestion'](_0x17a0d3){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x17a0d3);}}const T=['Pagination'];class P extends _0x49ae3f{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x93f19=this['editor'];if(_0x93f19['config']['define']('trackChangesData.editorCreator',_0xe45fa3=>{const _0x4e860b=_0x93f19['model']['document']['getRootNames']()['reduce']((_0x33e26d,_0x4ed434)=>(_0x33e26d[_0x4ed434]='',_0x33e26d),{});return _0x93f19['constructor']['create'](_0x4e860b,_0xe45fa3);}),'function'!=typeof _0x93f19['config']['get']('trackChangesData')['editorCreator'])throw new _0x49285b('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0xb7de68){return N(this['editor'],!0x0,_0xb7de68);}['getDataWithDiscardedSuggestions'](_0x2f5394){return N(this['editor'],!0x1,_0x2f5394);}}class D extends _0x49ae3f{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0xb4b70e){super(_0xb4b70e),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(_0x37b914){return void 0x0!==_0x37b914['getRootsAttributes'];}async function N(_0x39d4d1,_0x5bcb1c,_0x1c2591){const _0x14fae5=_0x59f65b(_0x39d4d1,T);_0x14fae5['plugins']['push'](p,D),_0x14fae5['rootsAttributes']=v(_0x39d4d1)?_0x39d4d1['getRootsAttributes']():void 0x0;const _0x8a276a=document['createDocumentFragment'](),_0x22d386=_0x39d4d1['config']['get']('trackChangesData')['editorCreator'],_0x51a98b=await _0x22d386(_0x14fae5,()=>function(_0x410c0c){const _0x3a9cc0=document['createElement']('div');return _0x410c0c['appendChild'](_0x3a9cc0),_0x3a9cc0;}(_0x8a276a));!function(_0x15e096,_0x3216da){const _0x53707f=_0x15e096['model']['document']['getRootNames']()['reduce']((_0x467899,_0x2d4853)=>(_0x467899[_0x2d4853]=_0x15e096['data']['get']({'rootName':_0x2d4853}),_0x467899),{}),_0x4c2ede=_0x15e096['plugins']['get']('Users')['users']['map'](_0x3102d5=>({'id':_0x3102d5['id'],'name':_0x3102d5['name']})),_0x5f3069=_0x15e096['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x1fd8f8=_0x15e096['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x471e3d=_0x3216da['plugins']['get']('Users'),_0x51ec51=_0x3216da['plugins']['get']('TrackChangesEditing'),_0x4f00c7=_0x3216da['plugins']['get']('CommentsRepository');for(const _0x1cc694 of _0x4c2ede)_0x471e3d['getUser'](_0x1cc694['id'])||_0x471e3d['addUser'](_0x1cc694);_0x471e3d['me']||_0x471e3d['useAnonymousUser']();for(const _0x3e815f of _0x1fd8f8)_0x4f00c7['addCommentThread'](_0x3e815f);for(const _0x4b5627 of _0x5f3069)_0x51ec51['addSuggestionData'](_0x4b5627);_0x3216da['data']['set'](_0x53707f);}(_0x39d4d1,_0x51a98b),_0x51a98b['execute'](_0x5bcb1c?'acceptAllSuggestions':'discardAllSuggestions');const _0xb316b3=v(_0x51a98b)?_0x51a98b['getFullData'](_0x1c2591):_0x51a98b['data']['get'](_0x1c2591);return await _0x51a98b['destroy'](),_0xb316b3;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};