@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240802.0 → 0.0.0-nightly-20240803.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 _0xa2e54a,PendingActions as _0x4e0adf,icons as _0x4d6773}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x32e29e,ObservableMixin as _0x58359f,uid as _0x2c01d2,insertToPriorityArray as _0x3e29f4,priorities as _0x2e27fb,logWarning as _0x48c6f3,getEnvKeystrokeText as _0x56aab2,FocusTracker as _0x9b83c3,KeystrokeHandler as _0x1a0786,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x313aa8,View as _0x3fbac4,ViewCollection as _0x3c8e93,FocusCycler as _0x348920,ViewModel as _0x29984a,createDropdown as Qt,SplitButtonView as _0x1a6566,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x276706}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x4e6be2,hashObject as _0x3ccdb5,surroundingMarkersDetector as _0x57b9c9,ENTER_THREAD_KEYSTROKE as _0x307c55,AriaDescriptionView as _0x2050da,setupThreadKeyboardNavigation as _0x56a950,trimHtml as _0x275e03,UserView as _0x4a3114,LateFocusButtonView as _0x2d4084,getDateTimeFormatter as _0x484a35,getAllMarkersDomElementsSorted as _0x44f2b1,sanitizeEditorConfig as _0x1624c3}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x37f3ee,LiveRange as _0x4d4c67,LivePosition as _0x2fdba3}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x4e33e8,toWidget as _0x3eba9f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x4a2bc1,set as _0x33ad80,isEqual as _0x36b028,unset as _0x2fbe59,omit as Tt}from'lodash-es';import{Delete as _0x320d83,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x417a1a,ShiftEnter as _0x2ecf23}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x1c39e7,_0xbd0164){super(_0x1c39e7),this['_enabledCommands']=_0xbd0164,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 _0x417cef of this['editor']['commands']['commands']())_0x417cef['affectsData']&&!this['_enabledCommands']['has'](_0x417cef)&&_0x417cef['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4be4e6 of this['editor']['commands']['commands']())_0x4be4e6['affectsData']&&!this['_enabledCommands']['has'](_0x4be4e6)&&_0x4be4e6['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x32712b,_0x1135f3){super(_0x32712b),this['_suggestions']=_0x1135f3,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2e576c){const _0x227378=this['_suggestions']['get'](_0x2e576c);if(!_0x227378)throw new _0x32e29e('track-changes-accept-suggestion-not-found',this);const _0xc68b36=_0x227378['getRanges']();this['editor']['model']['canEditAt'](_0xc68b36)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x227378);}}class R extends ts{['_suggestions'];constructor(_0x23d6ce,_0x54e8df){super(_0x23d6ce),this['_suggestions']=_0x54e8df,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3df972){const _0x249850=this['_suggestions']['get'](_0x3df972);if(!_0x249850)throw new _0x32e29e('track-changes-discard-suggestion-not-found',this);const _0x2e6e13=_0x249850['getRanges']();this['editor']['model']['canEditAt'](_0x2e6e13)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x249850);}}function ls(_0x502c50,_0xaf4127){let _0x281ce9='';return _0x281ce9+=_0x502c50['split']('*')['map']((_0x580ecc,_0x1d0f82)=>_0x1d0f82%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x580ecc)+'</span>':nn(_0x580ecc))['join'](''),_0xaf4127&&(_0x281ce9+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0xaf4127['value']+'\x22\x20title=\x22'+_0xaf4127['title']+'\x22></span>'),_0x281ce9;}function nn(_0x15b1c9){const _0x2502f5=document['createElement']('span');return _0x2502f5['innerText']=_0x15b1c9,_0x2502f5['innerHTML'];}function ss(_0x560ae1){return _0x560ae1['sort']((_0x218a1f,_0x5063b4)=>'deletion'==_0x218a1f['type']&&'deletion'!=_0x5063b4['type']?-0x1:'deletion'!=_0x218a1f['type']&&'deletion'==_0x5063b4['type']?0x1:0x0);}function to(_0x48f622,_0x2dbe4b){let _0x2de280,_0x3222a8=0x0;const _0x2b40f3=[],_0xb832f2=_0x2dbe4b['schema'];for(;_0x3222a8<_0x48f622['length'];){const _0x1a4c94=_0x48f622[_0x3222a8],_0x2835dd=_0x48f622[_0x3222a8+0x1];_0x2de280||(_0x2de280=_0x2dbe4b['createPositionBefore'](_0x1a4c94)),on(_0x2dbe4b,_0x1a4c94,_0x2835dd)||(_0x2b40f3['push'](_0x2dbe4b['createRange'](_0x2de280,_0xb832f2['isObject'](_0x1a4c94)?_0x2dbe4b['createPositionAfter'](_0x1a4c94):_0x2dbe4b['createPositionAt'](_0x1a4c94,'end'))),_0x2de280=null),_0x3222a8++;}return _0x2b40f3;}function on(_0x562ba6,_0x3b8f89,_0xebc5c8){if(!_0xebc5c8)return!0x1;const _0x1ecca6=_0x562ba6['createPositionAfter'](_0x3b8f89),_0x1f2a5e=_0x562ba6['createPositionBefore'](_0xebc5c8);return _0x1ecca6['isTouching'](_0x1f2a5e);}function rs(_0x7aadcf,_0x5b1a49,_0x7d7b87){for(;_0x7d7b87['length'];){const _0x6aa9d5=_0x7d7b87['splice'](0x0,0x64);_0x7aadcf['change'](()=>{for(const _0x2b885a of _0x6aa9d5)_0x2b885a['isInContent']&&_0x5b1a49['execute'](_0x2b885a['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x474f7c,_0x475d4c,_0x37e2ec){super(_0x474f7c),this['_command']=_0x475d4c,this['_suggestions']=_0x37e2ec,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x1f0529=Array['from'](this['_suggestions']['values']())['some'](_0x9eb9ff=>_0x9eb9ff['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x1f0529;}['execute'](){const _0x14d162=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5b8c9e of _0x14d162){const _0x135e5e=_0x5b8c9e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x135e5e))return;}rs(this['editor']['model'],this['_command'],_0x14d162);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x1b4d42,_0x1b9566,_0x9aa621){super(_0x1b4d42),this['_command']=_0x1b9566,this['_suggestions']=_0x9aa621,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x33e6d7=this['editor']['model']['document']['selection'],_0x19fd3b=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x108eac,_0x11e44f){const _0x33eee6=Array['from'](_0x108eac['getRanges']()),_0x244bfa=new Set();for(const _0x4b92ed of _0x11e44f)if(_0x4b92ed['isInContent']){for(const _0x4c9c1f of _0x33eee6)for(const _0xd2eba2 of _0x4b92ed['getRanges']())(_0x4c9c1f['isIntersecting'](_0xd2eba2)||_0x108eac['isCollapsed']&&!_0x4b92ed['isMultiRange']&&_0x4b92ed['next']&&_0xd2eba2['end']['isTouching'](_0x4c9c1f['start']))&&_0x244bfa['add'](_0x4b92ed);}return _0x244bfa;}(_0x33e6d7,_0x19fd3b),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x5c6d77=ss(Array['from'](this['_selectedSuggestions']));for(const _0x2357c0 of _0x5c6d77){const _0x156388=_0x2357c0['getRanges']();if(!this['editor']['model']['canEditAt'](_0x156388))return;}rs(this['editor']['model'],this['_command'],_0x5c6d77);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x58359f(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x453326,_0x279cae){super(),this['id']=_0x279cae['id'],this['type']=_0x279cae['type'],this['subType']=_0x279cae['subType']||null,this['author']=_0x279cae['author'],this['creator']=_0x279cae['creator']||_0x279cae['author'],this['isExternal']=Boolean(_0x279cae['attributes']&&_0x279cae['attributes']['@external']),this['data']=null,this['_model']=_0x453326,this['_onAccept']=_0x279cae['onAccept'],this['_onDiscard']=_0x279cae['onDiscard'],this['_onAttributesChange']=_0x279cae['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x279cae['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 _0x4d27dd=this;for(;_0x4d27dd['previous'];)_0x4d27dd=_0x4d27dd['previous'];return _0x4d27dd;}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'](_0x2045f2){this['_markerNames']['add'](_0x2045f2);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x57ac3c=>this['_model']['markers']['get'](_0x57ac3c))['filter'](_0x336417=>_0x336417);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0xf1e717=>{for(const _0x27c89e of this['getMarkers']())_0xf1e717['removeMarker'](_0x27c89e);}),this['_markerNames']['clear']();}['removeMarker'](_0x5dd9a5){this['_model']['change'](_0x4e66f5=>{_0x4e66f5['removeMarker'](_0x5dd9a5);}),this['_markerNames']['delete'](_0x5dd9a5);}['addRange'](_0x2690ac){const _0x5da43b='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5da43b),this['_model']['change'](_0x5edd32=>{_0x5edd32['addMarker'](_0x5da43b,{'range':_0x2690ac,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x49a5d4){for(const _0x53f259 of this['getRanges']())if(_0x53f259['isIntersecting'](_0x49a5d4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x39bf0f=>_0x39bf0f['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x1614c7,_0x15dfc9)=>[..._0x1614c7,..._0x15dfc9['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x2e6309=this['getRanges']();if(0x1!=_0x2e6309['length'])return null;const _0x9e5459=_0x2e6309[0x0],_0xee5c46=_0x9e5459['start']['nodeAfter'],_0x38fc7c=_0x9e5459['end']['nodeBefore'];return _0xee5c46 instanceof _0x37f3ee?_0xee5c46!=_0x38fc7c?null:_0xee5c46: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 _0xb59e0e=[];let _0x52d42d=this['head'];for(;_0x52d42d;)_0xb59e0e['push'](_0x52d42d),_0x52d42d=_0x52d42d['next'];return _0xb59e0e;}['setAttribute'](_0x3eabe0,_0xcf8539){const _0x1bdba9=_0x4a2bc1(this['attributes']);_0x33ad80(_0x1bdba9,_0x3eabe0,_0xcf8539),_0x36b028(_0x1bdba9,this['attributes'])||(this['attributes']=_0x1bdba9,this['_onAttributesChange'](_0x1bdba9));}['removeAttribute'](_0x39e4f1){const _0x2643c3=_0x4a2bc1(this['attributes']);_0x2fbe59(_0x2643c3,_0x39e4f1),_0x36b028(_0x2643c3,this['attributes'])||(this['attributes']=_0x2643c3,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 _0x2c01d2()['substr'](0x1,0x5);}}function o(_0x3d1c4a,_0x2b61dd,_0x36882f){const t=_0x3d1c4a['t'];switch(_0x2b61dd){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',_0x36882f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x36882f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x36882f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x36882f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x36882f);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',_0x36882f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x36882f);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',_0x36882f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x36882f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x36882f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x36882f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x36882f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x36882f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x36882f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x36882f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x36882f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x36882f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x36882f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x36882f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x36882f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x36882f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x36882f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x36882f);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'},_0x36882f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x36882f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x36882f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x36882f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x36882f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x36882f);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'},_0x36882f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x36882f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x36882f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x36882f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x36882f);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'},_0x36882f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x36882f);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'},_0x36882f);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'},_0x36882f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x36882f);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'},_0x36882f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x36882f);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'},_0x36882f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x36882f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x36882f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x36882f);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'},_0x36882f);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'},_0x36882f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x36882f);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x36882f);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x36882f);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x36882f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x2b61dd;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x22b6d8,_0x2adfa2){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x22b6d8,this['_locale']=_0x2adfa2;}['getDescriptions'](_0x37325d){const _0x1d6500=[],_0x52be49=new Set(),_0x153012=new Set();for(let _0xeab980=0x0;_0xeab980<_0x37325d['length'];_0xeab980++){const _0x86e0fa=_0x37325d[_0xeab980];if(!_0x86e0fa['isInContent'])continue;const _0x41a09f=this['_handleCustomCallbackDescription'](_0x86e0fa);if(_0x41a09f){if(null!=_0x86e0fa['subType']){if(_0x52be49['has'](_0x86e0fa['subType']))continue;_0x52be49['add'](_0x86e0fa['subType']);}_0x1d6500['push'](_0x41a09f);}else{if('attribute'!=_0x86e0fa['type'])'insertion'!=_0x86e0fa['type']&&'deletion'!=_0x86e0fa['type']||this['_handleInsertRemoveSuggestionDescription'](_0x1d6500,_0x86e0fa,_0x37325d[_0xeab980+0x1]);else{const _0x1fffef=_0x86e0fa['data']['key'];if(_0x153012['has'](_0x1fffef))continue;_0x153012['add'](_0x86e0fa['data']['key']),_0x1fffef==m?this['_handleRenameSuggestionDescription'](_0x1d6500,_0x86e0fa):this['_handleAttributeSuggestionDescription'](_0x1d6500,_0x86e0fa);}}}return this['_resolveDescriptionItems'](_0x1d6500);}['registerDescriptionCallback'](_0x4e9312){this['_customCallbacks']['push'](_0x4e9312);}['registerElementLabel'](_0xe7eef9,_0x809604,_0xd1fe09=_0x2e27fb['normal']){'function'==typeof _0xe7eef9?_0x3e29f4(this['_itemLabelsCallbacks'],{'matchingCallback':_0xe7eef9,'label':_0x809604,'priority':_0xd1fe09}):this['_itemLabels']['set'](_0xe7eef9,_0x809604);}['registerAttributeLabel'](_0x5521ae,_0x4f1488){this['_attributeLabels']['set'](_0x5521ae,_0x4f1488);}['getItemLabel'](_0x50a00b,_0x2c0eb0=0x1){let _0xa01b5d;for(const _0x24e529 of this['_itemLabelsCallbacks'])if(_0x24e529['matchingCallback'](_0x50a00b)){_0xa01b5d=_0x24e529['label'];break;}return _0xa01b5d||(_0xa01b5d=this['_itemLabels']['get'](_0x50a00b['name'])),_0xa01b5d?_0xa01b5d(_0x2c0eb0):0x1!==_0x2c0eb0?_0x2c0eb0+'\x20'+_0x50a00b['name']+'s':''+_0x50a00b['name'];}['_addDescriptionItems'](_0x41c003,_0x25e5b7){const _0x564bd7=_0x25e5b7['getFirstRange']()['getWalker'](),_0x3068c1='insertion'==_0x25e5b7['type']?'add':'remove';for(const _0x3630ff of _0x564bd7){const _0x3cbe01=_0x3630ff['item'],_0x120df5=_0x41c003[_0x41c003['length']-0x1];if(_0x3cbe01['is']('$textProxy'))_0x120df5&&_0x120df5['type']['indexOf']('Container')>-0x1&&_0x41c003['pop'](),_0x120df5&&'text'==_0x120df5['type']?_0x120df5[_0x3068c1]+=_0x3cbe01['data']:_0x41c003['push']({'type':'text','add':'add'==_0x3068c1?_0x3cbe01['data']:'','remove':'remove'==_0x3068c1?_0x3cbe01['data']:''});else{if(this['_schema']['isObject'](_0x3cbe01)){const _0x33e548=_0x3cbe01;if(_0x120df5&&_0x120df5['type']['indexOf']('Container')>-0x1&&_0x41c003['pop'](),'elementEnd'==_0x3630ff['type'])continue;_0x120df5&&_0x120df5['type']==_0x3068c1+'Object'&&_0x120df5['element']['name']==_0x33e548['name']?_0x120df5['quantity']++:_0x41c003['push']({'type':_0x3068c1+'Object','element':_0x33e548,'quantity':0x1}),_0x564bd7['skip'](_0x5d4b67=>!('elementEnd'==_0x5d4b67['type']&&_0x5d4b67['item']==_0x3cbe01));}else{if(this['_schema']['checkChild'](_0x3cbe01,'$text')||_0x3cbe01['is']('element','softBreak')){const _0x1fbad1=_0x3cbe01;if('add'==_0x3068c1&&'elementStart'==_0x3630ff['type']||'remove'==_0x3068c1&&'elementEnd'==_0x3630ff['type'])continue;if(_0x120df5&&-0x1==_0x120df5['type']['indexOf']('Container')){'text'==_0x120df5['type']&&(_0x120df5[_0x3068c1]+='\x0a');continue;}let _0x161b2b;if(_0x161b2b='add'==_0x3068c1?_0x1fbad1['nextSibling']&&!this['_schema']['isObject'](_0x1fbad1['nextSibling'])?_0x1fbad1['nextSibling']:null:_0x1fbad1['previousSibling']&&!this['_schema']['isObject'](_0x1fbad1['previousSibling'])?_0x1fbad1['previousSibling']:null,_0x1fbad1['isEmpty']||_0x161b2b&&_0x161b2b['isEmpty']){const _0x298674=_0x161b2b&&_0x161b2b['isEmpty']?_0x161b2b:_0x1fbad1;_0x120df5&&_0x120df5['type']==_0x3068c1+'EmptyContainer'&&_0x120df5['element']['name']==_0x298674['name']?_0x120df5['quantity']++:_0x41c003['push']({'type':_0x3068c1+'EmptyContainer','element':_0x298674,'quantity':0x1});}else _0x41c003['push']({'type':_0x3068c1+'Container','element':_0x1fbad1});}}}}}['_resolveDescriptionItems'](_0x2df618){const _0x213481=this['_locale'],_0x45130f=[],_0x5021a3=[],_0x3bb5e3=[];for(const _0x16fcce of _0x2df618)switch(_0x16fcce['type']){case'text':if(_0x16fcce['add']=_0x16fcce['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x16fcce['remove']=_0x16fcce['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x16fcce['add']&&''!=_0x16fcce['remove']){_0x45130f['push']({'type':'replace','content':o(_0x213481,'REPLACE_TEXT',['\x22'+_0x16fcce['remove']+'\x22','\x22'+_0x16fcce['add']+'\x22'])});continue;}if(null!=_0x16fcce['add']['match'](/^ +$/)){_0x45130f['push']({'type':'insertion','content':o(_0x213481,'*Insert:*\x20%0',o(_0x213481,'ELEMENT_SPACE',_0x16fcce['add']['length']))});continue;}if(null!=_0x16fcce['remove']['match'](/^ +$/)){_0x45130f['push']({'type':'deletion','content':o(_0x213481,'*Remove:*\x20%0',o(_0x213481,'ELEMENT_SPACE',_0x16fcce['remove']['length']))});continue;}if(''!=_0x16fcce['add']){_0x45130f['push']({'type':'insertion','content':o(_0x213481,'*Insert:*\x20%0','\x22'+_0x16fcce['add']+'\x22')});continue;}_0x45130f['push']({'type':'deletion','content':o(_0x213481,'*Remove:*\x20%0','\x22'+_0x16fcce['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x45130f['push']({'type':'insertion','content':o(_0x213481,'*Insert:*\x20%0',this['getItemLabel'](_0x16fcce['element'],_0x16fcce['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x45130f['push']({'type':'deletion','content':o(_0x213481,'*Remove:*\x20%0',this['getItemLabel'](_0x16fcce['element'],_0x16fcce['quantity']))});continue;case'addContainer':_0x45130f['push']({'type':'insertion','content':o(_0x213481,'*Split:*\x20%0',this['getItemLabel'](_0x16fcce['element'],_0x16fcce['quantity']))});continue;case'removeContainer':_0x45130f['push']({'type':'deletion','content':o(_0x213481,'*Merge:*\x20%0',this['getItemLabel'](_0x16fcce['element'],_0x16fcce['quantity']))});continue;case'addFormat':_0x5021a3['push'](_0x16fcce['key']);continue;case'removeFormat':_0x3bb5e3['push'](_0x16fcce['key']);continue;default:_0x45130f['push'](_0x16fcce);}if(_0x5021a3['length']){const _0x48dc2a=_0x5021a3['map'](_0x40778e=>this['_attributeLabels']['has'](_0x40778e)?this['_attributeLabels']['get'](_0x40778e):_0x40778e)['join'](',\x20');_0x45130f['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x48dc2a)});}if(_0x3bb5e3['length']){const _0x2e566f=_0x3bb5e3['map'](_0x520920=>this['_attributeLabels']['has'](_0x520920)?this['_attributeLabels']['get'](_0x520920):_0x520920)['join'](',\x20');_0x45130f['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x2e566f)});}return _0x45130f;}['_handleCustomCallbackDescription'](_0x128d58){for(const _0xee0ffa of this['_customCallbacks']){const _0x2ee7f6=_0xee0ffa(_0x128d58);if(_0x2ee7f6&&'type'in _0x2ee7f6)return _0x2ee7f6;}}['_handleAttributeSuggestionDescription'](_0x5e5453,_0x2b879e){const _0x293565=_0x2b879e['data'],_0x5586e4=void 0x0===_0x293565['newValue']?'removeFormat':'addFormat';_0x5e5453['push']({'type':_0x5586e4,'key':_0x293565['key']});}['_handleRenameSuggestionDescription'](_0x24d5b4,_0x24d796){_0x24d5b4['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x24d796['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x283981,_0x25226f,_0x1697af){if(this['_addDescriptionItems'](_0x283981,_0x25226f),_0x1697af&&_0x1697af['getFirstRange']()&&!_0x25226f['getFirstRange']()['end']['isEqual'](_0x1697af['getFirstRange']()['start'])){const _0x458e05=_0x283981[_0x283981['length']-0x1],_0x59829b='insertion'==_0x25226f['type']?'add':'remove';_0x458e05&&'text'==_0x458e05['type']&&(_0x458e05[_0x59829b]+='\x0a');}}}class V extends _0xa2e54a{['afterInit'](){const _0xf6ece6=this['editor'],_0x12ebe1=_0xf6ece6['plugins']['get']('TrackChangesEditing');_0xf6ece6['commands']['get']('showAIAssistant')&&_0x12ebe1['enableCommand']('showAIAssistant');}}class U extends _0xa2e54a{['afterInit'](){const _0xf8af8=this['editor'],_0x558b1f=_0xf8af8['locale'];if(!_0xf8af8['plugins']['has']('AlignmentEditing'))return;const _0x83f7c8=_0xf8af8['plugins']['get']('TrackChangesEditing');_0x83f7c8['enableDefaultAttributesIntegration']('alignment'),_0x83f7c8['registerBlockAttribute']('alignment'),_0x83f7c8['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x558b1f,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4df308=this['editor'],_0x173afc=_0x4df308['locale'];_0x4df308['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x56b684=>{if('formatBlock'!=_0x56b684['type'])return;const {data:_0x258b2a}=_0x56b684;if(_0x258b2a&&'alignment'==_0x258b2a['commandName']){const _0x1f9996=_0x258b2a['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x173afc,'*Format:*\x20%0',function(_0x4313ac){switch(_0x4313ac){case'left':return o(_0x173afc,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x173afc,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x173afc,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x173afc,'FORMAT_JUSTIFY_TEXT');}}(_0x1f9996))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0xa2e54a{['afterInit'](){const _0x4a65d4=this['editor'],_0x1cac7c=_0x4a65d4['plugins']['get']('TrackChangesEditing'),_0x5c464c=_0x4a65d4['locale'];for(const _0x1be102 of ti){if(!_0x4a65d4['plugins']['has'](_0x1be102))continue;const _0x406adb=_0x1be102['slice'](0x0,-0x7)['toLowerCase'](),_0x1f3aa1='FORMAT_'+_0x406adb['toUpperCase']();_0x1cac7c['enableDefaultAttributesIntegration'](_0x406adb),_0x1cac7c['registerInlineAttribute'](_0x406adb),_0x1cac7c['descriptionFactory']['registerAttributeLabel'](_0x406adb,o(_0x5c464c,_0x1f3aa1));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x38bdc2=this['editor'],_0x228ae6=_0x38bdc2['locale'],_0x4eb28d=_0x38bdc2['plugins']['get']('TrackChangesEditing');function _0x2d6014(_0xb2457,_0x2184eb){_0x4eb28d['descriptionFactory']['registerDescriptionCallback'](_0x50c12d=>{if('formatInline'!=_0x50c12d['type'])return;const {data:_0x31036e}=_0x50c12d;return _0x31036e&&_0x31036e['commandName']===_0xb2457?_0x31036e['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x228ae6,'*Format:*\x20%0',_0x2184eb)}:{'type':'format','content':o(_0x228ae6,'*Remove\x20format:*\x20%0',_0x2184eb)}:void 0x0;});}_0x2d6014('bold',o(_0x228ae6,'FORMAT_BOLD')),_0x2d6014('italic',o(_0x228ae6,'FORMAT_ITALIC')),_0x2d6014('underline',o(_0x228ae6,'FORMAT_UNDERLINE')),_0x2d6014('code',o(_0x228ae6,'FORMAT_CODE')),_0x2d6014('strikethrough',o(_0x228ae6,'FORMAT_STRIKETHROUGH')),_0x2d6014('subscript',o(_0x228ae6,'FORMAT_SUBSCRIPT')),_0x2d6014('superscript',o(_0x228ae6,'FORMAT_SUPERSCRIPT'));}}class F extends _0xa2e54a{['afterInit'](){const _0xc5273f=this['editor'],_0x2ff6a2=_0xc5273f['locale'];if(!_0xc5273f['plugins']['has']('BlockQuoteEditing'))return;const _0x1416a6=_0xc5273f['plugins']['get']('TrackChangesEditing'),_0x35f074=this['editor']['commands']['get']('blockQuote');_0x1416a6['enableCommand']('blockQuote',(_0x27c480,_0x12b08a={})=>{const _0x2bc72b=this['editor']['model']['document']['selection'],_0x34ec8b=_0x12b08a&&void 0x0!==_0x12b08a['forceValue']?_0x12b08a['forceValue']:!_0x35f074['value'];let _0x1a3209=[];if(_0x34ec8b){const _0x34ef2c=Array['from'](_0x2bc72b['getSelectedBlocks']())['filter'](_0x11c998=>oo(_0x11c998)||function(_0x2f4db9,_0x3c48f6){const _0x863e4c=_0x3c48f6['checkChild'](_0x2f4db9['parent'],'blockQuote'),_0x3f0c87=_0x3c48f6['checkChild'](['$root','blockQuote'],_0x2f4db9);return _0x863e4c&&_0x3f0c87;}(_0x11c998,this['editor']['model']['schema']));_0x1a3209=to(_0x34ef2c,_0xc5273f['model']);}else{const _0x4980cc=Array['from'](_0x2bc72b['getSelectedBlocks']())['filter'](_0x2c6e4e=>oo(_0x2c6e4e));_0x1a3209=to(_0x4980cc,_0xc5273f['model']);}_0xc5273f['model']['change'](()=>{for(const _0x539a3c of _0x1a3209)_0x1416a6['markBlockFormat'](_0x539a3c,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x34ec8b}]});});}),_0x1416a6['descriptionFactory']['registerDescriptionCallback'](_0x50a636=>{const {data:_0x20a1ec}=_0x50a636;if(_0x20a1ec&&'blockQuote'==_0x20a1ec['commandName']){const _0x18bca8=o(_0x2ff6a2,'ELEMENT_BLOCK_QUOTE');return _0x20a1ec['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ff6a2,'*Set\x20format:*\x20%0',_0x18bca8)}:{'type':'format','content':o(_0x2ff6a2,'*Remove\x20format:*\x20%0',_0x18bca8)};}});}}function oo(_0x2ff350){return'blockQuote'==_0x2ff350['parent']['name'];}class L extends _0xa2e54a{['afterInit'](){const _0xc11e76=this['editor'];_0xc11e76['plugins']['has']('CaseChange')&&(_0xc11e76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0xc11e76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0xc11e76['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0xa2e54a{['afterInit'](){const _0x2419ad=this['editor'];_0x2419ad['commands']['get']('ckbox')&&_0x2419ad['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0xa2e54a{['afterInit'](){const _0x346155=this['editor'];if(!_0x346155['plugins']['has']('CodeBlock'))return;const _0x4ea49d=_0x346155['plugins']['get']('TrackChangesEditing'),_0x245553=_0x346155['locale'],_0x36a904=_0x346155['config']['get']('codeBlock')['languages'],_0x2c1a9c=_0x346155['commands']['get']('codeBlock');_0x4ea49d['enableCommand']('indentCodeBlock'),_0x4ea49d['enableCommand']('outdentCodeBlock'),_0x4ea49d['enableCommand']('codeBlock',(_0x1d5d5b,_0x22be0a={})=>{const _0x306511=_0x346155['model'],_0x33e41b=_0x346155['model']['document']['selection'],_0x58f0a0=_0x22be0a&&void 0x0!==_0x22be0a['forceValue']?_0x22be0a['forceValue']:!_0x2c1a9c['value'];let _0x388e8e;_0x22be0a['language']||(_0x22be0a['language']=_0x36a904[0x0]['language']),_0x388e8e=_0x58f0a0?Array['from'](_0x33e41b['getSelectedBlocks']())['filter'](_0x3a36c4=>eo(_0x3a36c4)||function(_0x1cbe0f,_0x3aed79){if(_0x1cbe0f['is']('rootElement')||_0x3aed79['isLimit'](_0x1cbe0f))return!0x1;return _0x3aed79['checkChild'](_0x1cbe0f['parent'],'codeBlock');}(_0x3a36c4,_0x306511['schema'])):Array['from'](_0x33e41b['getSelectedBlocks']())['filter'](_0x308c90=>eo(_0x308c90));const _0x1319fe=to(_0x388e8e,_0x306511);_0x306511['change'](()=>{for(const _0x27b135 of _0x1319fe)_0x4ea49d['markBlockFormat'](_0x27b135,{'commandName':'codeBlock','commandParams':[{..._0x22be0a,'forceValue':_0x58f0a0}],'formatGroupId':'blockName'});});}),(_0x4ea49d['descriptionFactory']['registerElementLabel']('codeBlock',_0x21e874=>o(_0x245553,'ELEMENT_CODE_BLOCK',_0x21e874)),_0x4ea49d['descriptionFactory']['registerDescriptionCallback'](_0x260caa=>{if('formatBlock'!=_0x260caa['type'])return;const _0x168672=_0x245553['t'],{data:_0x75a655}=_0x260caa;if(!_0x75a655||'codeBlock'!=_0x75a655['commandName'])return;const _0x507aed=_0x75a655['commandParams'][0x0]['language'],_0x14f933=_0x168672(_0x36a904['find'](_0x55d21b=>_0x55d21b['language']===_0x507aed)['label'])['toLowerCase']();return _0x75a655['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x245553,'*Set\x20format:*\x20%0',o(_0x245553,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x14f933+')')}:{'type':'format','content':o(_0x245553,'*Remove\x20format:*\x20%0',o(_0x245553,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x14b1e9){return'codeBlock'==_0x14b1e9['name'];}class q extends _0xa2e54a{['afterInit'](){const _0x54992b=this['editor'];if(!_0x54992b['plugins']['has']('CommentsEditing'))return;_0x54992b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x18929e,_0x4b5f6b,_0x1ce3b0){const _0x143be2=[];for(const _0x58eef4 of _0x4b5f6b['getItems']())_0x58eef4['hasAttribute'](_0x18929e)&&_0x143be2['push'](_0x1ce3b0['createRangeOn'](_0x58eef4));return _0x143be2;}function _e(_0x31abf9,_0x2b520a,{showActiveMarker:_0x5233f9=!0x0}={}){const _0x51db47=_0x31abf9['plugins']['get']('TrackChangesEditing');return(_0x15ed73,_0x162db1,_0x38665e)=>{if(!_0x38665e['consumable']['test'](_0x162db1['markerRange'],_0x15ed73['name']))return;const _0x79bcda=_0x162db1['markerRange']['getWalker'](),_0x3defae=_0x162db1['markerRange']['start'],_0x49ff8a=_0x31abf9['model']['schema'];let _0x3a4479=null,_0x3a0dab=null,_0x5ae84b=!0x1,_0x4b93a7=!0x1;for(const _0x2fc0d2 of _0x79bcda){const _0x43df68=_0x2fc0d2['item'];_0x5ae84b=_0x5ae84b||_0x49ff8a['isContent'](_0x43df68);const _0x45fc49=_0x38665e['mapper']['toViewElement'](_0x43df68);if(_0x45fc49&&_0x45fc49['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fc0d2['type']&&(_0x49ff8a['isBlock'](_0x43df68)&&!_0x49ff8a['isLimit'](_0x43df68)&&(_0x43df68['nextSibling']||_0x3defae['isAtEnd']?_0x3a4479&&_0x3a4479['parent']==_0x43df68||(_0x3a4479=_0x43df68,_0x35c69a(_0x2fc0d2['previousPosition']),_0x4b93a7=!0x0):_0x3a0dab=_0x3a0dab||_0x2fc0d2['previousPosition']));}function _0x35c69a(_0x4b4a94){const _0x13f50a=_0x38665e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2b520a}),_0x338f7f=_0x38665e['mapper']['toViewPosition'](_0x4b4a94);_0x5233f9&&_0x51db47['activeMarkers']['includes'](_0x162db1['markerName'])&&_0x38665e['writer']['addClass']('ck-suggestion-marker--active',_0x13f50a),_0x38665e['writer']['insert'](_0x338f7f,_0x13f50a),_0x38665e['mapper']['bindElementToMarker'](_0x13f50a,_0x162db1['markerName']);}_0x5ae84b||_0x4b93a7||!_0x3a0dab||_0x35c69a(_0x3a0dab);};}class z extends _0xa2e54a{static get['requires'](){return[_0x320d83];}['init'](){const _0x434938=this['editor'],_0xf71f36=_0x434938['plugins']['get']('TrackChangesEditing');_0xf71f36['enableCommand']('delete');const _0x571216=_0x434938['commands']['get']('deleteForward');_0xf71f36['enableCommand']('deleteForward',(_0xf1b134,_0x51999d={})=>{const _0x33c985=_0x434938['model']['createSelection'](_0x434938['model']['document']['selection']);_0x33c985['isCollapsed']&&_0x434938['model']['modifySelection'](_0x33c985,{'direction':'forward','unit':_0x51999d['unit']});const _0x4a00b8=_0x33c985['getFirstRange'](),_0x3a8739=_0x4d4c67['fromRange'](_0x4a00b8);let _0x386878;_0xf1b134(_0x51999d),_0x386878='$graveyard'==_0x3a8739['root']['rootName']?_0x434938['model']['createRange'](_0x4a00b8['start']):_0x434938['model']['createRange'](_0x3a8739['start'],_0x3a8739['end']),_0x3a8739['detach'](),_0x434938['model']['enqueueChange'](_0x571216['buffer']['batch'],_0x2570f=>{_0x571216['buffer']['lock'](),_0x2570f['setSelection'](_0x2570f['createRange'](_0x386878['end'])),_0x571216['buffer']['unlock']();});}),_0x434938['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x434938,'merge'),{'priority':'high'}),_0x434938['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x1c2fbd,_0x16144e,_0x5818c1)=>{_0x5818c1['options']['showSuggestionHighlights']&&_e(_0x434938,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x1c2fbd,_0x16144e,_0x5818c1);},{'priority':'high'}),_0x434938['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x3312c3,_0x2dad7e,_0x1ea17a)=>{const _0x2ffba3=_0x1ea17a['mapper']['markerNameToElements'](_0x2dad7e['markerName']);if(_0x2ffba3){for(const _0x3144ec of _0x2ffba3)_0x3144ec['is']('uiElement')&&(_0x1ea17a['mapper']['unbindElementFromMarkerName'](_0x3144ec,_0x2dad7e['markerName']),_0x1ea17a['writer']['remove'](_0x3144ec));}},{'priority':'high'});}}class K extends _0xa2e54a{['afterInit'](){const _0x13b121=this['editor'];if(!_0x13b121['plugins']['has']('ListEditing'))return;const _0x42e46c=_0x13b121['locale'],_0x4b1299=_0x13b121['plugins']['get']('TrackChangesEditing'),_0x4820ae=_0x13b121['plugins']['has']('TodoListEditing'),_0x1fa3b4=!!_0x13b121['config']['get']('list.multiBlock');function _0x4caa34(_0x349b6a){return{'type':'format','content':''+o(_0x42e46c,'*Set\x20format:*\x20%0',_0x349b6a)};}function _0x2abfb4(_0x3cde5d){return{'type':'format','content':''+o(_0x42e46c,'*Remove\x20format:*\x20%0',_0x3cde5d)};}_0x4b1299['enableDefaultAttributesIntegration']('numberedList'),_0x4b1299['enableDefaultAttributesIntegration']('bulletedList'),_0x4b1299['enableDefaultAttributesIntegration']('customNumberedList'),_0x4b1299['enableDefaultAttributesIntegration']('customBulletedList'),_0x4b1299['enableDefaultAttributesIntegration']('indentList'),_0x4b1299['enableDefaultAttributesIntegration']('outdentList'),_0x4b1299['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x4b1299['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x4b1299['registerBlockAttribute']('listItemId'),_0x4b1299['registerBlockAttribute']('listType'),_0x4b1299['registerBlockAttribute']('listIndent'),_0x1fa3b4&&(_0x4b1299['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x4b1299['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x4820ae&&(_0x4b1299['enableDefaultAttributesIntegration']('todoList'),_0x4b1299['enableDefaultAttributesIntegration']('checkTodoList'),_0x4b1299['registerBlockAttribute']('todoListChecked'),_0x4b1299['descriptionFactory']['registerDescriptionCallback'](_0x3825c=>{const {data:_0x21c648}=_0x3825c;if(_0x21c648&&'todoListChecked'==_0x21c648['key'])return{'type':'format','content':_0x21c648['newValue']?o(_0x42e46c,'*Check\x20item*'):o(_0x42e46c,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x4420bb=>{if(_0x4420bb['batch']['isUndo'])return!0x1;let _0x401dfb=!0x1;const _0x18ce3f=_0x4b1299['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x58d1e2=>'todoListChecked'===_0x4b1299['_getAttributeKey'](_0x58d1e2));for(const _0x21b4d3 of _0x18ce3f){'todo'!=_0x21b4d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x4b1299['_findSuggestions'](_0x21b4d3['getFirstRange'](),'attribute')['find'](_0x2f26b1=>'listType'===_0x4b1299['_getAttributeKey'](_0x2f26b1['suggestion']))||(_0x4420bb['removeMarker'](_0x21b4d3['getFirstMarker']()),_0x401dfb=!0x0));}return _0x401dfb;})),_0x4b1299['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42e46c,'FORMAT_INDENT'));const _0x30a75d={'type':'format','content':''};_0x4b1299['descriptionFactory']['registerDescriptionCallback'](_0xd6bd8b=>{const {data:_0x4dabea}=_0xd6bd8b;if(!_0x4dabea||'listType'!=_0x4dabea['key'])return;let _0x3a0ad7=_0xd6bd8b['head'];for(;_0x3a0ad7;){if(_0x3a0ad7['data']&&(('listStyle'==_0x3a0ad7['data']['key']||'listMarkerStyle'==_0x3a0ad7['data']['key'])&&(_0x3a0ad7['data']['newValue']&&'default'!=_0x3a0ad7['data']['newValue']||'default'!=_0x3a0ad7['data']['oldValue']&&!_0x4dabea['newValue'])||!_0x1fa3b4&&_0x3a0ad7['data']['key']==m))return _0x30a75d;_0x3a0ad7=_0x3a0ad7['next'];}if(null==_0x4dabea['newValue'])switch(_0x4dabea['oldValue']){case'bulleted':return _0x2abfb4(o(_0x42e46c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2abfb4(o(_0x42e46c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2abfb4(o(_0x42e46c,'ELEMENT_TODO_LIST'));}switch(_0x4dabea['newValue']){case'bulleted':return _0x4caa34(o(_0x42e46c,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4caa34(o(_0x42e46c,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4caa34(o(_0x42e46c,'ELEMENT_TODO_LIST'));}}),_0x4b1299['descriptionFactory']['registerDescriptionCallback'](_0xc7b52=>{const {data:_0x4a47bf}=_0xc7b52;if(_0x4a47bf&&'listIndent'==_0x4a47bf['key'])return null==_0x4a47bf['newValue']||null==_0x4a47bf['oldValue']&&0x0==_0x4a47bf['newValue']?_0x30a75d:void 0x0;}),_0x4b1299['descriptionFactory']['registerDescriptionCallback'](_0x5d33a8=>{if('attribute'!=_0x5d33a8['type'])return;const {data:_0x4f9f56}=_0x5d33a8;if(!_0x4f9f56||'listItemId'!=_0x4f9f56['key'])return;const _0x3d7603=le(_0x5d33a8);return'newValue'==_0x3d7603?{'type':'format','content':o(_0x42e46c,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3d7603?{'type':'format','content':o(_0x42e46c,'*Split:*\x20list\x20item')}:_0x30a75d;}),_0x13b121['model']['document']['registerPostFixer'](_0x1c031e=>this['listItemIdFixer'](_0x1c031e)),_0x13b121['model']['document']['registerPostFixer'](_0x2cd6d6=>this['noTrackChangesFixer'](_0x2cd6d6)),_0x13b121['model']['document']['on']('change:data',(_0x3f5933,_0x24798d)=>{if(_0x24798d['isUndo']||!_0x24798d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x1528dc){if(_0x1528dc['batch']['isUndo']||!_0x1528dc['batch']['isLocal'])return!0x1;let _0x520344=!0x1;const _0x3e9a82=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2f5700=>_0x2f5700['data']&&'listItemId'==_0x2f5700['data']['key'])['filter'](_0x30a47d=>_0x30a47d['data']['newValue']&&_0x30a47d['data']['oldValue']);for(const _0xeb3136 of _0x3e9a82)le(_0xeb3136)||(_0x1528dc['removeMarker'](_0xeb3136['getFirstMarker']()),_0x520344=!0x0);return _0x520344;}['noTrackChangesFixer'](_0xdd73f7){if(_0xdd73f7['batch']['isUndo']||!_0xdd73f7['batch']['isLocal'])return!0x1;const _0x30fafa=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x30fafa['trackChangesCommand']['value'])return!0x1;let _0x2a18bc=!0x1;const _0x5360ec=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x30df3f=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x411f8e=>'attribute'==_0x411f8e['type'])['filter'](_0x1ba621=>_0x5360ec['includes'](_0x1ba621['attributeKey']));if(0x0==_0x30df3f['length'])return _0x2a18bc;for(const _0x3110fd of _0x30df3f){const _0xa0a172=_0x30fafa['_findSuggestions'](_0x3110fd['range'],'attribute')['filter'](_0x419c2f=>!_0x419c2f['meta']['isNextTo'])['map'](_0x3cf04a=>_0x3cf04a['suggestion'])['filter'](_0x4ce5b3=>{const _0xa0ae4a=_0x30fafa['_getAttributeKey'](_0x4ce5b3);return _0x5360ec['includes'](_0xa0ae4a);});if(_0xa0a172['length']){for(const _0x6258bd of _0xa0a172)_0xdd73f7['removeMarker'](_0x6258bd['getFirstMarker']());_0x2a18bc=!0x0;}}return _0x2a18bc;}['assureChains'](){const _0x962849=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3aaeef=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x5dfae5;const _0x187a45=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1d0a45=>{if(_0x1d0a45['data']['oldRange']||!_0x1d0a45['data']['newRange'])return null;if(!_0x1d0a45['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x22747f}=_0x962849['_splitMarkerName'](_0x1d0a45['name']);if(!_0x962849['hasSuggestion'](_0x22747f))return null;const _0x3cede4=_0x962849['getSuggestion'](_0x22747f);return _0x3aaeef['includes'](_0x3cede4['data']['key']);})['map'](_0x56e3f3=>{const {id:_0x42cae7}=_0x962849['_splitMarkerName'](_0x56e3f3['name']),_0x107b87=_0x962849['getSuggestion'](_0x42cae7);return _0x5dfae5=_0x107b87['attributes']['groupId'],_0x107b87['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x187a45['size'])return;const _0x5eee5c=_0x962849['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3aa16c=>'attribute'==_0x3aa16c['type']&&_0x3aa16c['data']&&_0x3aaeef['includes'](_0x3aa16c['data']['key'])&&_0x3aa16c['attributes']['groupId']!=_0x5dfae5)['map'](_0xb5cfc7=>({'listItem':_0xb5cfc7['getFirstRange']()['start']['nodeAfter'],'groupId':_0xb5cfc7['attributes']['groupId']})),_0x3c3f5d=new Set();for(const {groupId:_0x279a9a,listItem:_0x2de808}of _0x5eee5c)_0x187a45['has'](_0x2de808)&&_0x3c3f5d['add'](_0x279a9a);for(const _0x5b1667 of _0x962849['getSuggestions']())_0x3c3f5d['has'](_0x5b1667['attributes']['groupId'])&&_0x5b1667['setAttribute']('groupId',_0x5dfae5);}['_supportLegacySuggestions'](){const _0x45f419=this['editor'],_0x423995=_0x45f419['locale'],_0x4ca4f=_0x45f419['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x4ca4f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x23dbc8,_0x1c2510){const _0x4fa32f=[];for(let _0x405b45 of _0x23dbc8)_0x405b45['start']['nodeAfter']===_0x405b45['end']['parent']&&(_0x405b45=_0x45f419['model']['createRange'](_0x45f419['model']['createPositionAt'](_0x405b45['start']['nodeAfter'],0x0))),_0x4fa32f['push'](_0x405b45);_0x45f419['model']['change'](_0x28cb5e=>{const _0x5dc511=_0x45f419['model']['document']['selection'],_0x518ad2=Array['from'](_0x5dc511['getRanges']())['map'](_0x1e4c4b=>_0x4d4c67['fromRange'](_0x1e4c4b));_0x28cb5e['setSelection'](_0x4fa32f),_0x45f419['commands']['get'](_0x1c2510['commandName'])['refresh'](),_0x1c2510['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x45f419['execute'](_0x1c2510['commandName'],..._0x1c2510['commandParams']),_0x28cb5e['setSelection'](_0x518ad2);for(const _0x54ff7f of _0x518ad2)_0x54ff7f['detach']();});}),_0x4ca4f['descriptionFactory']['registerElementLabel'](function(_0x3898cb){const _0x3b02fe=!_0x45f419['model']['schema']['isObject'](_0x3898cb),_0x48f837=_0x3898cb['previousSibling'],_0x157e03=_0x3898cb['nextSibling'],_0x17a5eb=_0x3898cb['getAttribute']('listItemId'),_0x289a08=!_0x48f837||_0x48f837['getAttribute']('listItemId')!==_0x17a5eb,_0x2cde95=!_0x157e03||_0x157e03['getAttribute']('listItemId')!==_0x17a5eb;return _0x3b02fe&&Boolean(_0x17a5eb)&&_0x289a08&&_0x2cde95;},_0x5606e0=>o(_0x423995,'ELEMENT_LIST_ITEM',_0x5606e0));}['_registerLegacyDescription'](){const _0x3f14c2=this['editor'],_0x975001=_0x3f14c2['locale'];function _0x34d5df(_0x1686e0){const _0x5485dd=_0x3f14c2['commands']['get']('bulletedList')['value'],_0xb6c237=_0x3f14c2['commands']['get']('numberedList')['value'];return'numberedList'===_0x1686e0?_0x5485dd:_0xb6c237;}_0x3f14c2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x542bc0){if('formatBlock'!=_0x542bc0['type'])return;const {data:_0x13f138}=_0x542bc0;if(!_0x13f138)return;let _0x2b5f14,_0x94c04f,_0x21e899,_0x9e3be5;switch(_0x13f138['commandName']){case'bulletedList':_0x21e899=_0x13f138['commandParams'][0x0]['forceValue'],_0x9e3be5=_0x34d5df(_0x13f138['commandName']),_0x2b5f14=_0x21e899?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9e3be5&&_0x3f14c2['config']['get']('list.multiBlock')||(_0x2b5f14='*Change\x20to:*\x20%0'),_0x94c04f={'type':'format','content':o(_0x975001,_0x2b5f14,o(_0x975001,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x21e899=_0x13f138['commandParams'][0x0]['forceValue'],_0x9e3be5=_0x34d5df(_0x13f138['commandName']),_0x2b5f14=_0x21e899?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x9e3be5&&_0x3f14c2['config']['get']('list.multiBlock')||(_0x2b5f14='*Change\x20to:*\x20%0'),_0x94c04f={'type':'format','content':o(_0x975001,_0x2b5f14,o(_0x975001,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x2b5f14='*Indent:*\x20%0',_0x94c04f={'type':'format','content':o(_0x975001,_0x2b5f14,o(_0x975001,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x2b5f14=function(_0x3288c2){const _0x2a5a5c=_0x3288c2['getFirstRange']();let _0x4e0aa0=_0x2a5a5c['start']['nodeAfter'];for(;_0x4e0aa0&&_0x2a5a5c['containsItem'](_0x4e0aa0);){if(_0x4e0aa0['getAttribute']('listIndent')>0x0)return!0x1;_0x4e0aa0=_0x4e0aa0['nextSibling'];}return!0x0;}(_0x542bc0)?o(_0x975001,'*Format:*\x20remove\x20from\x20%0',o(_0x975001,function(_0x4e98d3){return'ELEMENT_'+_0x4e98d3['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x542bc0))):o(_0x975001,'*Outdent:*\x20%0',o(_0x975001,'ELEMENT_LIST_ITEM')),_0x94c04f={'type':'format','content':_0x2b5f14};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x13f138['multipleBlocks']&&(_0x2b5f14='*Merge:*\x20%0',_0x94c04f={'type':'deletion','content':o(_0x975001,_0x2b5f14,o(_0x975001,'ELEMENT_LIST_ITEM'))});}return _0x94c04f;});}}function le(_0x4ffcbe){let _0x1d090a=_0x4ffcbe['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x1d090a;){const _0x1f4446=_0x1d090a['getAttribute']('listItemId');if(!_0x1f4446)return!0x1;if(_0x1f4446==_0x4ffcbe['data']['newValue'])return'newValue';if(_0x1f4446==_0x4ffcbe['data']['oldValue'])return'oldValue';_0x1d090a=_0x1d090a['previousSibling'];}return!0x1;}class pe extends _0xa2e54a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0xb40dee=this['editor']['config']['get']('list.properties'),_0x3da58a=this['editor']['plugins']['get']('TrackChangesEditing');_0xb40dee['styles']&&(_0x3da58a['enableDefaultAttributesIntegration']('listStyle'),_0x3da58a['registerBlockAttribute']('listStyle')),_0xb40dee['reversed']&&(_0x3da58a['enableDefaultAttributesIntegration']('listReversed'),_0x3da58a['registerBlockAttribute']('listReversed')),_0xb40dee['startIndex']&&(_0x3da58a['enableDefaultAttributesIntegration']('listStart'),_0x3da58a['registerBlockAttribute']('listStart'));const _0x18016e={'type':'format','content':''};_0x3da58a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x5dca8a=this['editor']['locale'];_0x3da58a['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x5dca8a,'FORMAT_LIST_REVERSED')),_0x3da58a['descriptionFactory']['registerDescriptionCallback'](_0x303412=>{const {data:_0x4bbfd0}=_0x303412;if(_0x4bbfd0&&'listReversed'==_0x4bbfd0['key'])return null==_0x4bbfd0['newValue']||0x0==_0x4bbfd0['newValue']&&null==_0x4bbfd0['oldValue']?_0x18016e:void 0x0;}),_0x3da58a['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x5dca8a,'FORMAT_LIST_START')),_0x3da58a['descriptionFactory']['registerDescriptionCallback'](_0x4aad51=>{const {data:_0x3209eb}=_0x4aad51;if(_0x3209eb&&'listStart'==_0x3209eb['key'])return null==_0x3209eb['newValue']||0x1==_0x3209eb['newValue']&&null==_0x3209eb['oldValue']?_0x18016e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x138f93=>{if(_0x138f93['batch']['isUndo'])return!0x1;let _0x19bcdf=!0x1;const _0x122263=_0x3da58a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xc048b6=>{const _0x3f3d19=_0x3da58a['_getAttributeKey'](_0xc048b6);return'listStart'==_0x3f3d19||'listReversed'==_0x3f3d19;});for(const _0x116037 of _0x122263){const _0xb1637c=_0x116037['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0xb1637c||'customNumbered'==_0xb1637c)continue;_0x3da58a['_findSuggestions'](_0x116037['getFirstRange'](),'attribute')['find'](_0x411010=>'listType'==_0x3da58a['_getAttributeKey'](_0x411010['suggestion']))||(_0x138f93['removeMarker'](_0x116037['getFirstMarker']()),_0x19bcdf=!0x0);}return _0x19bcdf;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x5ce1f2){const _0xd780f3=this['editor']['locale'],{data:_0x3af4ef}=_0x5ce1f2,_0x4a115e={'type':'format','content':''};if(!_0x3af4ef||'listStyle'!=_0x3af4ef['key'])return;if(!_0x3af4ef['oldValue'])return'default'==_0x3af4ef['newValue']?_0x4a115e:{'type':'format','content':''+o(_0xd780f3,'*Set\x20format:*\x20%0',o(_0xd780f3,this['_getTranslationKeyForListStyle'](_0x3af4ef['newValue'])))};if(!_0x3af4ef['newValue']){if('default'==_0x3af4ef['oldValue'])return _0x4a115e;let _0x2a2890=_0x5ce1f2['head'];for(;_0x2a2890;){if(_0x2a2890['data']&&'listType'==_0x2a2890['data']['key']&&_0x2a2890['data']['newValue'])return _0x4a115e;_0x2a2890=_0x2a2890['next'];}return{'type':'format','content':''+o(_0xd780f3,'*Remove\x20format:*\x20%0',o(_0xd780f3,this['_getTranslationKeyForListStyle'](_0x3af4ef['oldValue'])))};}if('default'!=_0x3af4ef['newValue'])return{'type':'format','content':''+o(_0xd780f3,'*Set\x20format:*\x20%0',o(_0xd780f3,this['_getTranslationKeyForListStyle'](_0x3af4ef['newValue'])))};let _0x1b4401=_0x5ce1f2['head'];for(;_0x1b4401;){if(_0x1b4401['data']&&'listType'==_0x1b4401['data']['key']&&_0x1b4401['data']['newValue']&&_0x1b4401['data']['oldValue'])return _0x4a115e;_0x1b4401=_0x1b4401['next'];}return{'type':'format','content':o(_0xd780f3,'*Set\x20format:*\x20%0',o(_0xd780f3,'ELEMENT_'+_0x5ce1f2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x2e0b87=this['editor'],_0x388eec=_0x2e0b87['locale'];_0x2e0b87['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x14616b=>{if('formatBlock'!=_0x14616b['type'])return;const {data:_0x5b153b}=_0x14616b;if(!_0x5b153b)return;let _0x4fe3b4,_0x6038c6;switch(_0x5b153b['commandName']){case'listStyle':_0x4fe3b4='*Change\x20to:*\x20%0',_0x6038c6={'type':'format','content':o(_0x388eec,_0x4fe3b4,o(_0x388eec,this['_getTranslationKeyForListStyle'](_0x5b153b['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4fe3b4=_0x5b153b['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x6038c6={'type':'format','content':o(_0x388eec,_0x4fe3b4)};break;case'listStart':_0x4fe3b4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x6038c6={'type':'format','content':o(_0x388eec,_0x4fe3b4,_0x5b153b['commandParams'][0x0]['startIndex'])};}return _0x6038c6;});}['_getTranslationKeyForListStyle'](_0x47a315){return'ELEMENT_'+function(_0x3c3e8a){if(ye['includes'](_0x3c3e8a))return'bulleted';if(Se['includes'](_0x3c3e8a))return'numbered';return null;}(_0x47a315)['toUpperCase']()+'_LIST_'+_0x47a315['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0xa2e54a{static get['requires'](){return[_0x417a1a];}['init'](){const _0x111508=this['editor'],_0x369e3b=_0x111508['plugins']['get']('TrackChangesEditing'),_0x4ce97f=_0x111508['commands']['get']('enter');_0x369e3b['enableCommand']('enter',()=>{_0x111508['model']['change'](_0x1d5bf5=>{const _0x15df11=_0x111508['model']['document']['selection'],_0xe00e59=_0x15df11['getFirstPosition'](),_0x1583ff=_0x4d4c67['fromRange'](_0x15df11['getFirstRange']());if(_0x4ce97f['enterBlock'](_0x1d5bf5)){const _0x5682a4=_0x111508['model']['createPositionAt'](_0xe00e59['parent']['nextSibling'],0x0),_0x3dba5a=_0x1d5bf5['createRange'](_0xe00e59,_0x5682a4);_0x369e3b['markInsertion'](_0x3dba5a);}else _0x1d5bf5['setSelection'](_0x1d5bf5['createRange'](_0x1583ff['end']));_0x1583ff['detach'](),_0x4ce97f['fire']('afterExecute',{'writer':_0x1d5bf5});});}),_0x111508['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x111508,'split'),{'priority':'high'}),_0x111508['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x56cd52,_0x2b9a78,_0x220db2)=>{const _0x42c2ba=_0x220db2['mapper']['markerNameToElements'](_0x2b9a78['markerName']);if(_0x42c2ba){for(const _0x344a2f of _0x42c2ba)_0x344a2f['hasClass']('ck-suggestion-marker-split')&&(_0x220db2['mapper']['unbindElementFromMarkerName'](_0x344a2f,_0x2b9a78['markerName']),_0x220db2['writer']['remove'](_0x344a2f));}},{'priority':'high'}),_0x111508['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2958b9,_0x267c4d,_0xf8c530)=>{_0xf8c530['options']['showSuggestionHighlights']&&_e(_0x111508,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x2958b9,_0x267c4d,_0xf8c530);},{'priority':'high'});}}class X extends _0xa2e54a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1c4169=this['editor']['plugins']['get']('TrackChangesEditing');_0x1c4169['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1c4169['enableCommand']('findNext'),_0x1c4169['enableCommand']('findPrevious'),_0x1c4169['enableCommand']('replace'),_0x1c4169['enableCommand']('replaceAll');}['handleFindCommand'](_0x40ab2f,_0x57263c,_0xdb724e={}){const _0x2c2e6e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x40ab2f(_0x3e2b29=>{let _0x290a76=('string'==typeof _0x57263c?_0x2c2e6e['findByTextCallback'](_0x57263c,_0xdb724e):_0x57263c)(_0x3e2b29);Array['isArray'](_0x290a76)&&(_0x290a76={'results':_0x290a76,'searchText':'string'==typeof _0x57263c?_0x57263c:''});const _0x5f2f78=_0x290a76['results']['filter'](_0x44ee6b=>!0x1===this['_isInDeletionRange'](_0x44ee6b,_0x3e2b29['item']));return{..._0x290a76,'results':_0x5f2f78};},_0xdb724e);}['_isInDeletionRange'](_0x3d7f0e,_0x34da5d){const _0x3a2d1d=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x34da5d,_0x3d7f0e['start']),this['editor']['model']['createPositionAt'](_0x34da5d,_0x3d7f0e['end']));for(const _0x3c001b of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x3a2d1d['getIntersection'](_0x3c001b['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0xa2e54a{['afterInit'](){const _0x2fde41=this['editor']['locale'],_0x1c0ca0=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0xcdb12e,commandName:_0x4430b1}of ro)this['editor']['plugins']['has'](_0xcdb12e)&&(_0x1c0ca0['enableDefaultAttributesIntegration'](_0x4430b1),_0x1c0ca0['registerInlineAttribute'](_0x4430b1));_0x1c0ca0['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x2fde41,'FORMAT_FONT_SIZE')),_0x1c0ca0['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x2fde41,'FORMAT_FONT_FAMILY')),_0x1c0ca0['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x2fde41,'FORMAT_FONT_COLOR')),_0x1c0ca0['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x2fde41,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2fe07c=this['editor'],_0x204b02=_0x2fe07c['locale'];_0x2fe07c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x41d3b3=>{const _0x5150f7=_0x204b02['t'];if('formatInline'!=_0x41d3b3['type'])return;const {data:_0x5e8042}=_0x41d3b3;if(null!=_0x5e8042){if('fontSize'==_0x5e8042['commandName']){const _0xded486=_0x5e8042['commandParams'][0x0]['value'];if(_0xded486){const _0x3d3362=_0x5150f7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x74a536=>_0x74a536['model']==_0xded486)['title'])['toLowerCase']();return{'type':'format','content':o(_0x204b02,'*Set\x20font\x20size:*\x20%0',_0x3d3362)};}return{'type':'format','content':o(_0x204b02,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5e8042['commandName']){const _0x18c9aa=_0x5e8042['commandParams'][0x0]['value'];return _0x18c9aa?{'type':'format','content':o(_0x204b02,'*Set\x20font\x20family:*\x20%0',_0x18c9aa)}:{'type':'format','content':o(_0x204b02,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5e8042['commandName']){const _0x98e93e=_0x5e8042['commandParams'][0x0]['value'];if(_0x98e93e){const _0x233f25=_0x313aa8(this['editor']['config']['get']('fontColor.colors'))['find'](_0x13eb7a=>_0x13eb7a['model']==_0x98e93e);let _0x28b301=_0x98e93e,_0x33eee1='';return _0x233f25&&(_0x28b301=_0x233f25['label'],_0x33eee1=_0x5150f7(_0x28b301)['toLowerCase']()),{'type':'format','content':o(_0x204b02,'*Set\x20font\x20color:*\x20%0',_0x33eee1)['trim'](),'color':{'value':_0x98e93e,'title':_0x33eee1||_0x28b301}};}return{'type':'format','content':o(_0x204b02,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5e8042['commandName']){const _0x53c282=_0x5e8042['commandParams'][0x0]['value'];if(_0x53c282){const _0x250fd7=_0x313aa8(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x40f127=>_0x40f127['model']==_0x53c282);let _0x2f3f1c=_0x53c282,_0x584518='';return _0x250fd7&&(_0x2f3f1c=_0x250fd7['label'],_0x584518=_0x5150f7(_0x2f3f1c)['toLowerCase']()),{'type':'format','content':o(_0x204b02,'*Set\x20font\x20background\x20color:*\x20%0',_0x584518)['trim'](),'color':{'value':_0x53c282,'title':_0x584518||_0x2f3f1c}};}return{'type':'format','content':o(_0x204b02,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0xa2e54a{['afterInit'](){const _0xb125a8=this['editor'],_0x38cae2=_0xb125a8['plugins']['get']('TrackChangesEditing'),_0x1d6312=_0xb125a8['commands']['get']('copyFormat'),_0x2b9ad3=_0xb125a8['commands']['get']('pasteFormat');_0x1d6312&&_0x2b9ad3&&(_0x38cae2['enableDefaultAttributesIntegration']('pasteFormat'),_0x38cae2['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x4f9c13=this['editor'],_0x284212=_0x4f9c13['locale'];_0x4f9c13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x51d10c=>{if('formatBlock'!=_0x51d10c['type']&&'formatInline'!=_0x51d10c['type'])return;const {data:_0x530b6e}=_0x51d10c;if(_0x530b6e&&'pasteFormat'===_0x530b6e['commandName']){const _0x4a9630=[],_0x32447f=_0x530b6e['commandParams'][0x0];for(const [_0xfc8322,_0x33a0d2]of Object['entries'](_0x32447f))_0x4a9630['push'](so(_0x4f9c13,_0xfc8322,_0x33a0d2));return _0x4a9630['length']?{'type':'format','content':o(_0x284212,'*Set\x20format\x20to:*\x20%0',_0x4a9630['join'](',\x20'))}:{'type':'format','content':o(_0x284212,'*Remove\x20all\x20formatting*')};}});}}function so(_0x14e9fb,_0x226b0f,_0x225e37){const _0x5cb332=_0x14e9fb['locale']['t'],_0x1545b3=_0x226b0f['split'](/(?=[A-Z])/)['join']('\x20'),_0x47a5ab=_0x5cb332(_0x1545b3['charAt'](0x0)['toUpperCase']()+_0x1545b3['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x225e37)return _0x47a5ab;if('fontColor'===_0x226b0f||'fontBackgroundColor'===_0x226b0f){const _0x32b973=_0x313aa8(_0x14e9fb['config']['get']('fontColor.colors'))['find'](_0x1eed2d=>_0x1eed2d['model']==_0x225e37);return _0x47a5ab+'\x20('+(_0x32b973?_0x5cb332(_0x32b973['label'])['toLowerCase']():_0x225e37)+')';}if('fontSize'===_0x226b0f&&isNaN(parseFloat(_0x225e37))){const _0x5eac9d=_0x14e9fb['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x14e9fb['config']['get']('fontSize.options'))['find'](_0x1e8d97=>_0x1e8d97['model']==_0x225e37);return _0x47a5ab+'\x20('+(_0x5eac9d?_0x5cb332(_0x5eac9d['title'])['toLowerCase']():_0x225e37)+')';}return _0x47a5ab+'\x20('+_0x225e37+')';}class tt extends _0xa2e54a{['_headingOptions'];['afterInit'](){const _0x23d2df=this['editor'];if(!_0x23d2df['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x23d2df['config']['get']('heading.options');const _0x29c366=_0x23d2df['locale'],_0xc1157d=_0x23d2df['plugins']['get']('TrackChangesEditing');_0xc1157d['enableDefaultAttributesIntegration']('heading');for(const _0x4c5f66 of this['_headingOptions'])'paragraph'!=_0x4c5f66['model']&&_0xc1157d['descriptionFactory']['registerElementLabel'](_0x4c5f66['model'],_0x182574=>{const _0x59b1a5=this['_getHeadingLevel'](_0x4c5f66['model']);return null!==_0x59b1a5?_0x2a23f2(_0x182574,_0x59b1a5):_0x3fd93f(_0x182574,_0x4c5f66['title']);});function _0x2a23f2(_0x186c15,_0x1b3d88){return o(_0x29c366,'ELEMENT_HEADING',[_0x186c15,_0x1b3d88]);}function _0x3fd93f(_0x20c6ac,_0x145e36){return o(_0x29c366,'ELEMENT_HEADING_CUSTOM',[_0x20c6ac,_0x145e36]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x445c58=this['editor'],_0x20017c=_0x445c58['locale'];function _0x57d549(_0x100e60,_0x16634b){return o(_0x20017c,'ELEMENT_HEADING_CUSTOM',[_0x100e60,_0x16634b]);}_0x445c58['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508e09=>{if('formatBlock'!=_0x508e09['type'])return;const {data:_0x4c17de}=_0x508e09;if(_0x4c17de&&'heading'==_0x4c17de['commandName']){const _0x1a915d=_0x4c17de['commandParams'][0x0]['value'],_0x1b427a=this['_getHeadingLevel'](_0x1a915d);if(null!==_0x1b427a)return{'type':'format','content':o(_0x20017c,'*Change\x20to:*\x20%0',(_0xbad4e6=0x1,_0x611bd=_0x1b427a,o(_0x20017c,'ELEMENT_HEADING',[_0xbad4e6,_0x611bd])))};const _0x516a53=this['_headingOptions']['find'](_0x304689=>_0x304689['model']===_0x1a915d)['title'];return{'type':'format','content':o(_0x20017c,'*Change\x20to:*\x20%0',_0x57d549(0x1,_0x516a53))};}var _0xbad4e6,_0x611bd;});}['_getHeadingLevel'](_0x44b047){const _0x10752a=_0x44b047['match'](/^heading(\d+)/);if(_0x10752a)return _0x10752a[0x1];const _0x37e2a1=this['_headingOptions']?.['find'](_0x53cd02=>_0x53cd02['model']==_0x44b047);if(_0x37e2a1&&_0x37e2a1['view']){const _0x2d9e8e=_0x37e2a1['view'],_0x20cd75=(_0x2d9e8e['name']??_0x2d9e8e)['match'](/^h(\d+)/);if(_0x20cd75)return _0x20cd75[0x1];}return null;}}class et extends _0xa2e54a{['afterInit'](){const _0x278ce2=this['editor'];if(!_0x278ce2['plugins']['has']('HighlightEditing'))return;const _0x3d3288=_0x278ce2['plugins']['get']('TrackChangesEditing'),_0x1c30e0=_0x278ce2['locale'];_0x3d3288['enableDefaultAttributesIntegration']('highlight'),_0x3d3288['registerInlineAttribute']('highlight'),_0x3d3288['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x1c30e0,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x162ee5=this['editor'],_0x408888=_0x162ee5['locale'];_0x162ee5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4d5de0=>{if('formatInline'!=_0x4d5de0['type'])return;const {data:_0xf12116}=_0x4d5de0;if(_0xf12116&&'highlight'==_0xf12116['commandName']){const _0x599def=_0x408888['t'],_0xd3a63f=_0xf12116['commandParams'][0x0]['value'];if(_0xd3a63f){const _0x5ad0dd=_0x162ee5['config']['get']('highlight.options')['find'](_0x45da71=>_0x45da71['model']==_0xd3a63f),_0x40f1db=_0x599def(_0x5ad0dd['title'])['toLowerCase']();return{'type':'format','content':o(_0x408888,'*Set\x20highlight:*\x20%0',_0x40f1db),'color':{'value':_0x5ad0dd['color'],'title':_0x5ad0dd['title']}};}return{'type':'format','content':o(_0x408888,'*Remove\x20highlight*',o(_0x408888,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0xa2e54a{['afterInit'](){const _0x30eba4=this['editor'];if(!_0x30eba4['plugins']['has']('HorizontalLineEditing'))return;_0x30eba4['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x581241=_0x30eba4['plugins']['get']('TrackChangesEditing'),_0x23665f=_0x30eba4['locale'];_0x581241['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4eb639=>o(_0x23665f,'ELEMENT_HORIZONTAL_LINE',_0x4eb639)),_0x30eba4['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x5b43d6,{writer:_0x4b6390,options:_0x2f3bb0})=>{if(!_0x2f3bb0['showSuggestionHighlights'])return null;const _0x5e8fd2=_0x4b6390['createContainerElement']('div'),_0x3c50f2=_0x4b6390['createEmptyElement']('hr');return _0x4b6390['addClass']('ck-horizontal-line',_0x5e8fd2),_0x4b6390['insert'](_0x4b6390['createPositionAt'](_0x5e8fd2,0x0),_0x3c50f2),_0x5e8fd2;},'converterPriority':'high'});}}class st extends _0xa2e54a{['afterInit'](){const _0x1a1442=this['editor'];if(!_0x1a1442['plugins']['has']('HtmlEmbed'))return;const _0x49961c=_0x1a1442['plugins']['get']('TrackChangesEditing'),_0xba819d=_0x1a1442['locale'];_0x49961c['descriptionFactory']['registerElementLabel']('rawHtml',_0x421603=>o(_0xba819d,'ELEMENT_HTML_EMBED',_0x421603)),_0x49961c['enableDefaultAttributesIntegration']('htmlEmbed'),_0x49961c['registerBlockAttribute']('value'),_0x49961c['descriptionFactory']['registerDescriptionCallback'](_0x308636=>{if('attribute'!=_0x308636['type'])return;const {data:_0x17142c}=_0x308636;if(_0x17142c&&'value'==_0x17142c['key']&&_0x308636['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x557615=o(_0xba819d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xba819d,'*Change\x20%0\x20content*',_0x557615)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4dafaa=this['editor'],_0x5505b7=_0x4dafaa['locale'];_0x4dafaa['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xca4ec3=>{if('formatBlock'!=_0xca4ec3['type'])return;const {data:_0x2dc70f}=_0xca4ec3;if(_0x2dc70f&&'htmlEmbed'==_0x2dc70f['commandName']){const _0x1303ba=o(_0x5505b7,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x5505b7,'*Change\x20%0\x20content*',_0x1303ba)};}});}}class nt extends _0xa2e54a{['afterInit'](){const _0x1a860=this['editor'];if(!_0x1a860['plugins']['has']('ImageEditing'))return;const _0x54b023=_0x1a860['plugins']['get']('TrackChangesEditing'),_0x2845c7=_0x1a860['plugins']['get']('ImageUtils'),_0xe5a38d=_0x1a860['locale'];_0x54b023['enableCommand']('insertImage'),_0x54b023['descriptionFactory']['registerElementLabel']('imageBlock',_0x21a70e=>o(_0xe5a38d,'ELEMENT_IMAGE',_0x21a70e)),_0x54b023['descriptionFactory']['registerElementLabel']('imageInline',_0x21378d=>o(_0xe5a38d,'ELEMENT_INLINE_IMAGE',_0x21378d)),_0x54b023['descriptionFactory']['registerElementLabel']('caption',()=>o(_0xe5a38d,'ELEMENT_CAPTION')),_0x1a860['plugins']['has']('ImageUploadEditing')&&_0x54b023['enableCommand']('uploadImage'),_0x1a860['plugins']['has']('ImageBlockEditing')&&_0x1a860['plugins']['has']('ImageInlineEditing')&&(_0x54b023['enableCommand']('imageTypeInline',(_0x59003b,_0x405dfb)=>{const _0x3ea3dc=_0x2845c7['getClosestSelectedImageElement'](_0x1a860['model']['document']['selection']);_0x1a860['model']['change'](()=>{_0x54b023['markBlockFormat'](_0x3ea3dc,{'commandName':'imageTypeInline','commandParams':[_0x405dfb]},[],'convertBlockImageToInline');});}),_0x54b023['enableCommand']('imageTypeBlock',(_0x5c611f,_0x5648e5)=>{_0x1a860['model']['change'](_0x180cd6=>{let _0x50503b=_0x2845c7['getClosestSelectedImageElement'](_0x1a860['model']['document']['selection']),_0x225667=_0x180cd6['createRangeOn'](_0x50503b);const _0x4a8200=_0x2fdba3['fromPosition'](_0x225667['start'],'toPrevious'),_0x5682dd=_0x2fdba3['fromPosition'](_0x225667['end'],'toNext');_0x54b023['forceDefaultExecution'](()=>_0x5c611f(_0x5648e5)),_0x50503b=_0x2845c7['getClosestSelectedImageElement'](_0x1a860['model']['document']['selection']),_0x225667=_0x180cd6['createRangeOn'](_0x50503b);const _0x952c34=_0x180cd6['createRange'](_0x4a8200,_0x5682dd);_0x4a8200['detach'](),_0x5682dd['detach'](),_0x54b023['markBlockFormat'](_0x50503b,{'commandName':'imageTypeInline','commandParams':[_0x5648e5]},[],'convertInlineImageToBlock'),_0x952c34['start']['isBefore'](_0x225667['start'])&&_0x54b023['markInsertion'](_0x180cd6['createRange'](_0x952c34['start'],_0x225667['start']),'convertInlineImageToBlock'),_0x225667['end']['isBefore'](_0x952c34['end'])&&_0x54b023['markInsertion'](_0x180cd6['createRange'](_0x225667['end'],_0x952c34['end']),'convertInlineImageToBlock');});}),_0x54b023['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x54b023['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x54b023['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x54b023['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x54b023['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x54b023['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x253ee7])=>{const _0xe0f648=_0x54b023['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x3bfe24=_0x253ee7['start'],_0x2782ad=_0x253ee7['end'];const _0x1c7fba=_0x1a860['model']['schema']['getNearestSelectionRange'](_0x3bfe24,'backward'),_0x3533c6=_0x1a860['model']['schema']['getNearestSelectionRange'](_0x2782ad,'forward');_0x1c7fba['isCollapsed']&&(_0x3bfe24=_0x1c7fba['start']),_0x3533c6['isCollapsed']&&(_0x2782ad=_0x3533c6['end']),_0xe0f648([_0x1a860['model']['createRange'](_0x3bfe24,_0x2782ad)]);}),_0x54b023['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4ebc92),_0x54b023['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4ebc92)),_0x1a860['plugins']['has']('ImageCaptionEditing')&&(_0x54b023['enableCommand']('toggleImageCaption',(_0x54c1bd,_0x36d606)=>{const _0x261a8f=_0x1a860['plugins']['get']('ImageCaptionUtils');let _0x2fab88=_0x2845c7['getClosestSelectedImageElement'](_0x1a860['model']['document']['selection']),_0x5bdaa2=_0x261a8f['getCaptionFromImageModelElement'](_0x2fab88);_0x1a860['model']['change'](()=>{if(_0x5bdaa2)return void _0x54b023['markDeletion'](_0x1a860['model']['createRangeOn'](_0x5bdaa2));const _0x690905=_0x2845c7['isBlockImage'](_0x2fab88);_0x54c1bd(_0x36d606),_0x2fab88=_0x2845c7['getClosestSelectedImageElement'](_0x1a860['model']['document']['selection']),_0x5bdaa2=_0x261a8f['getCaptionFromImageModelElement'](_0x2fab88),_0x54b023['markInsertion'](_0x1a860['model']['createRangeOn'](_0x5bdaa2),_0x690905?null:'imageCaption');});}),_0x54b023['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4ebc92));const _0x38995c=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x33e7e1(_0x13fe8f,_0xb7d03d){const _0x22dd41=_0x38995c['findIndex'](({type:_0x10ccc3,subType:_0x301628})=>_0x13fe8f['type']==_0x10ccc3&&_0x13fe8f['subType']==_0x301628),_0x529878=_0x38995c['findIndex'](({type:_0x394d7a,subType:_0x399145})=>_0xb7d03d['type']==_0x394d7a&&_0xb7d03d['subType']==_0x399145);if(_0x22dd41<0x0||_0x529878<0x0)return!0x1;const _0x45a0de=_0x13fe8f['getFirstRange'](),_0x503f75=_0xb7d03d['getFirstRange']();if((0x0==_0x22dd41||0x1==_0x22dd41)&&0x2==_0x529878&&_0x45a0de['isIntersecting'](_0x503f75))return!0x0;if(0x2==_0x22dd41&&0x3==_0x529878){const _0x3eff44=_0x54b023['_findSuggestions'](_0x45a0de,'insertion')['filter'](({suggestion:_0x347317,meta:_0x5b7fd8})=>_0x5b7fd8['isOwn']&&'convertInlineImageToBlock'==_0x347317['subType']);if(_0x3eff44['length']>0x1&&_0x503f75['end']['isEqual'](_0x45a0de['start']))return!0x0;if(0x1==_0x3eff44['length']&&(_0x45a0de['start']['isEqual'](_0x503f75['end'])||_0x45a0de['end']['isEqual'](_0x503f75['start'])))return!0x0;}if(0x3==_0x22dd41&&0x3==_0x529878&&_0x45a0de['start']['isBefore'](_0x503f75['start'])){const _0x2a21d0=_0x45a0de['end']['nodeAfter'],_0xe75848=_0x503f75['start']['nodeBefore'];return _0x2845c7['isBlockImage'](_0x2a21d0)&&_0x2a21d0===_0xe75848;}return!0x1;}function _0x4ebc92(_0x42381f,_0x4c6342){return _0x33e7e1(_0x42381f,_0x4c6342)?[_0x42381f,_0x4c6342]:_0x33e7e1(_0x4c6342,_0x42381f)?[_0x4c6342,_0x42381f]:null;}_0x1a860['plugins']['has']('ImageResize')&&(_0x54b023['enableDefaultAttributesIntegration']('resizeImage'),_0x54b023['registerBlockAttribute']('resizedWidth'),_0x54b023['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xe5a38d,'FORMAT_IMAGE_SIZE'))),_0x1a860['plugins']['has']('ImageTextAlternativeEditing')&&(_0x54b023['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x54b023['registerBlockAttribute']('alt')),_0x54b023['descriptionFactory']['registerDescriptionCallback'](_0x52af68=>{if(!!_0x38995c['find'](({type:_0x10299b,subType:_0x212a78})=>_0x52af68['type']==_0x10299b&&_0x52af68['subType']==_0x212a78))return _0x52af68['previous']?{}:void 0x0;}),_0x54b023['descriptionFactory']['registerDescriptionCallback'](_0x5f27b3=>{if('insertion'==_0x5f27b3['type']||'deletion'==_0x5f27b3['type']){const _0x4c89f7=_0x5f27b3['getContainedElement']();if(_0x4c89f7&&_0x4c89f7['is']('element','caption'))return{'type':'insertion'==_0x5f27b3['type']?'addObject':'removeObject','element':_0x4c89f7,'quantity':0x1};}}),_0x54b023['descriptionFactory']['registerDescriptionCallback'](_0x16c0a3=>'formatBlock'==_0x16c0a3['type']&&'convertInlineImageToBlock'==_0x16c0a3['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x16c0a3['type']&&'convertBlockImageToInline'==_0x16c0a3['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x54b023['descriptionFactory']['registerDescriptionCallback'](_0x90848a=>{if('attribute'!=_0x90848a['type'])return;const {data:_0x1603ac}=_0x90848a;if(!_0x1603ac||'alt'!=_0x1603ac['key'])return;const _0x5f5387=_0x1603ac['newValue'];return _0x5f5387?{'type':'format','content':o(_0xe5a38d,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x5f5387+'\x22')}:{'type':'format','content':o(_0xe5a38d,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xb7f296=this['editor'],_0x4dc470=_0xb7f296['locale'];_0xb7f296['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa262=>{if('formatBlock'!=_0xa262['type']&&'formatInline'!=_0xa262['type'])return;const {data:_0x1933d4}=_0xa262;if(_0x1933d4){if('imageTextAlternative'==_0x1933d4['commandName']){const _0x1b3ec=_0x1933d4['commandParams'][0x0]['newValue'];return _0x1b3ec?{'type':'format','content':o(_0x4dc470,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1b3ec+'\x22')}:{'type':'format','content':o(_0x4dc470,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x1933d4['commandName']){const _0x3a79ae=_0x1933d4['commandParams'][0x0]['width'];return _0x3a79ae?{'type':'format','content':o(_0x4dc470,'*Set\x20image\x20width:*\x20%0',_0x3a79ae)}:{'type':'format','content':o(_0x4dc470,'*Reset\x20image\x20width*')};}}});}}class ot extends _0xa2e54a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5cebeb=this['editor']['locale'],_0x198ae0=this['editor']['plugins']['get']('TrackChangesEditing');_0x198ae0['enableDefaultAttributesIntegration']('replaceImageSource'),_0x198ae0['registerBlockAttribute']('src'),_0x198ae0['descriptionFactory']['registerDescriptionCallback'](_0x501397=>{if('attribute'!=_0x501397['type'])return;const {data:_0x1da996}=_0x501397;return _0x1da996&&'src'==_0x1da996['key']?_0x1da996['newValue']&&_0x1da996['oldValue']?{'type':'format','content':o(_0x5cebeb,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x38ab50=this['editor']['plugins']['get']('TrackChangesEditing');_0x38ab50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x38ab50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x38ab50['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x38ab50['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x22b02f=this['editor'],_0x3caada=_0x22b02f['locale'];_0x22b02f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5d858a=>{if('formatBlock'!=_0x5d858a['type']&&'formatInline'!=_0x5d858a['type'])return;const {data:_0x4b7543}=_0x5d858a;if(!_0x4b7543||'replaceImageSource'!=_0x4b7543['commandName'])return;return{'type':'format','content':o(_0x3caada,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0xa2e54a{['afterInit'](){const _0x25965b=this['editor'];if(!_0x25965b['plugins']['has']('ImageStyleEditing'))return;const _0x4a8267=_0x25965b['plugins']['get']('TrackChangesEditing'),_0x545bfe=_0x25965b['plugins']['get']('ImageUtils'),_0x4dd4cf={};_0x4a8267['enableCommand']('imageStyle',(_0x3892b7,_0x3bffc5)=>{const _0x101de8=_0x25965b['plugins']['get']('Users')['me'],_0x4ca3b5=_0x25965b['commands']['get']('imageStyle');let _0x55b196=_0x545bfe['getClosestSelectedImageElement'](_0x25965b['model']['document']['selection']),_0x5ea7cf=_0x25965b['model']['createRangeOn'](_0x55b196),_0x58be4f=_0x4ca3b5['value'];if(_0x58be4f==_0x3bffc5['value'])return;const _0x24242f={'commandName':'imageStyle','commandParams':[_0x3bffc5],'formatGroupId':_0x2c01d2()};_0x25965b['model']['change'](()=>{if(_0x4a8267['getSuggestions']()['filter'](_0x4bd07e=>_0x4bd07e['isInContent']&&_0x101de8==_0x4bd07e['author']&&('formatBlock'==_0x4bd07e['type']||'formatInline'==_0x4bd07e['type'])&&('imageStylePreApply'==_0x4bd07e['subType']||'imageStylePostApply'==_0x4bd07e['subType'])&&_0x4bd07e['getFirstRange']()['isEqual'](_0x5ea7cf))['forEach'](_0xcdf065=>_0x4a8267['discardSuggestion'](_0xcdf065['head'])),_0x55b196=_0x545bfe['getClosestSelectedImageElement'](_0x25965b['model']['document']['selection']),_0x5ea7cf=_0x25965b['model']['createRangeOn'](_0x55b196),_0x4ca3b5['refresh'](),_0x25965b['commands']['get']('imageTypeInline')['refresh'](),_0x25965b['commands']['get']('imageTypeBlock')['refresh'](),_0x58be4f=_0x4ca3b5['value'],_0x58be4f!=_0x3bffc5['value'])return _0x545bfe['isInlineImage'](_0x55b196)&&_0x4ca3b5['shouldConvertImageType'](_0x3bffc5['value'],_0x55b196)?(_0x3892b7({..._0x3bffc5,'setImageSizes':!0x1}),_0x55b196=_0x545bfe['getClosestSelectedImageElement'](_0x25965b['model']['document']['selection']),void _0x4a8267['markBlockFormat'](_0x55b196,{..._0x24242f,'commandReversedParams':[{'value':_0x58be4f||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x545bfe['isBlockImage'](_0x55b196)?_0x4a8267['markBlockFormat'](_0x55b196,_0x24242f,[],'imageStylePostApply'):_0x4a8267['markInlineFormat'](_0x5ea7cf,_0x24242f,'imageStylePostApply'));});});for(const _0x4b9617 of _0x25965b['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4dd4cf[_0x4b9617['name']]=_0x4b9617['title']['toLowerCase']();_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1075f4])=>{_0x545bfe['setImageNaturalSizeAttributes'](_0x1075f4['getContainedElement']());}),_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x10f4e8,_0xe6896e)=>{_0x4a8267['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x10f4e8,{'commandName':_0xe6896e['commandName'],'commandParams':_0xe6896e['commandReversedParams']});}),_0x4a8267['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4bc4f9,_0x2c6605){if(_0x50f480(_0x4bc4f9,_0x2c6605))return[_0x4bc4f9,_0x2c6605];if(_0x50f480(_0x2c6605,_0x4bc4f9))return[_0x2c6605,_0x4bc4f9];return null;});const _0x4c24ae=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x50f480(_0x5428e0,_0x3dc987){const _0x292f0f=_0x4c24ae['findIndex'](({type:_0x5c4f13,subType:_0x45ac9c})=>_0x5428e0['type']==_0x5c4f13&&_0x5428e0['subType']==_0x45ac9c),_0x543cfb=_0x4c24ae['findIndex'](({type:_0x2073b7,subType:_0x20f5b2})=>_0x3dc987['type']==_0x2073b7&&_0x3dc987['subType']==_0x20f5b2);if(_0x292f0f<0x0||_0x543cfb<0x0)return!0x1;const _0x488b72=_0x5428e0['getFirstRange'](),_0x210b25=_0x3dc987['getFirstRange']();if((0x0==_0x292f0f||0x1==_0x292f0f)&&0x2==_0x543cfb&&_0x488b72['isIntersecting'](_0x210b25))return!0x0;if(0x2==_0x292f0f&&0x3==_0x543cfb){const _0xee3794=_0x4a8267['_findSuggestions'](_0x488b72,'insertion')['filter'](({suggestion:_0x5083b8,meta:_0x2909a3})=>_0x2909a3['isOwn']&&'convertInlineImageToBlock'==_0x5083b8['subType']);if(_0xee3794['length']>0x1&&_0x210b25['end']['isEqual'](_0x488b72['start']))return!0x0;if(0x1==_0xee3794['length']&&(_0x488b72['start']['isEqual'](_0x210b25['end'])||_0x488b72['end']['isEqual'](_0x210b25['start'])))return!0x0;}if(0x3==_0x292f0f&&0x3==_0x543cfb&&_0x488b72['start']['isBefore'](_0x210b25['start'])){const _0x186b68=_0x488b72['end']['nodeAfter'],_0x566131=_0x210b25['start']['nodeBefore'];return _0x545bfe['isBlockImage'](_0x186b68)&&_0x186b68===_0x566131;}return!0x1;}_0x25965b['model']['document']['registerPostFixer'](()=>{let _0x563c38=!0x1;const _0x196523=Array['from'](_0x25965b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5c2e8f,data:_0x5bcbce}of _0x196523){const {group:_0xc17129,type:_0x26e315,subType:_0x1af6f9,id:_0x4db785}=_0x4a8267['_splitMarkerName'](_0x5c2e8f);if('suggestion'==_0xc17129&&_0x4a8267['hasSuggestion'](_0x4db785)){if('formatBlock'==_0x26e315&&('imageStylePreApply'==_0x1af6f9||'imageStylePostApply'==_0x1af6f9)){const _0x597423=_0x4a8267['getSuggestion'](_0x4db785);if(_0x5bcbce['newRange']){const _0x31f816=_0x597423['getFirstRange']()['getContainedElement']();if(_0x545bfe['isBlockImage'](_0x31f816))continue;_0x4a8267['discardSuggestion'](_0x597423),_0x563c38=!0x0;}}if('insertion'==_0x26e315&&'imageCaption'==_0x1af6f9&&!_0x5bcbce['newRange']){const _0x38ccf6=_0x4a8267['getSuggestion'](_0x4db785);_0x38ccf6['next']&&_0x38ccf6['next']['isInContent']&&(_0x4a8267['discardSuggestion'](_0x38ccf6['next']),_0x563c38=!0x0);}}}return _0x563c38;}),this['_registerLegacyDescription'](_0x4dd4cf);}['_registerLegacyDescription'](_0x4b0d88){const _0x5aa4cf=this['editor'],_0x43a945=_0x5aa4cf['locale'];_0x5aa4cf['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x592bfa=>{if('formatBlock'!=_0x592bfa['type']&&'formatInline'!=_0x592bfa['type'])return;const {data:_0x25d55b}=_0x592bfa;if(!_0x25d55b||'imageStyle'!=_0x25d55b['commandName'])return;const _0x213ed1=_0x25d55b['commandParams'][0x0]['value'];return _0x32abe6('side'===_0x213ed1?o(_0x43a945,'FORMAT_SIDE_IMAGE'):_0x4b0d88[_0x213ed1]||_0x213ed1);function _0x32abe6(_0x1079eb){return{'type':'format','content':o(_0x43a945,'*Format:*\x20%0',_0x1079eb)};}});}}class at extends _0xa2e54a{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x5057c2){super(_0x5057c2),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0xf95c16=this['editor'],_0x549e89=_0xf95c16['commands']['get']('importWord'),_0xd3089c=_0xf95c16['commands']['get']('trackChanges');_0x549e89&&(_0x549e89['on']('execute',(_0x48c179,[,_0x384e2e])=>{this['_trackChangesValueDuringImport']=_0xd3089c['value'],_0x384e2e['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x549e89,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x549e89,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xd3089c['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0xf95c16['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x9ede93,_0x244f2e){const {suggestions:_0x2be0bb}=_0x244f2e,_0xd557b8=this['editor']['commands']['get']('trackChanges'),_0xfe0fb0=_0xd557b8['value'];this['_trackChangesValueDuringImport']!==_0xfe0fb0&&(_0xd557b8['execute'](),this['_trackChangesExecuted']=!0x0),_0x2be0bb&&_0x2be0bb['forEach'](({id:_0x3d84bf,type:_0x2233c0,author:_0x24ea7e,created_at:_0x52bddf})=>{const _0x3a9ce7={'id':_0x3d84bf,'type':_0x2233c0,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x24ea7e,'createdAt':_0x52bddf?new Date(_0x52bddf):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3a9ce7);});}}class ct extends _0xa2e54a{['afterInit'](){const _0x271f1a=this['editor'],_0xc58537=_0x271f1a['plugins']['get']('TrackChangesEditing');if(_0x271f1a['plugins']['has']('IndentEditing')&&(_0xc58537['enableCommand']('indent'),_0xc58537['enableCommand']('outdent')),_0x271f1a['plugins']['has']('IndentBlock')){for(const _0x1d718c of['indentBlock','outdentBlock'])_0xc58537['enableDefaultAttributesIntegration'](_0x1d718c);}const _0x4b2952=_0x271f1a['locale'];_0xc58537['registerBlockAttribute']('blockIndent'),_0xc58537['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4b2952,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x40b8d4=this['editor'],_0x15f914=_0x40b8d4['locale'],_0x2aa9d8=_0x40b8d4['plugins']['get']('TrackChangesEditing');_0x2aa9d8['descriptionFactory']['registerDescriptionCallback'](_0x1a3f3e=>{if('formatBlock'!=_0x1a3f3e['type'])return;const {data:_0xf7c743}=_0x1a3f3e;if(!_0xf7c743)return;if('indentBlock'!=_0xf7c743['commandName']&&'outdentBlock'!=_0xf7c743['commandName'])return;const _0x334b40=_0x1a3f3e['getItems']()[0x0],_0x45b180=_0x2aa9d8['descriptionFactory']['getItemLabel'](_0x334b40);return'indentBlock'==_0xf7c743['commandName']?{'type':'format','content':o(_0x15f914,'*Indent:*\x20%0',_0x45b180)}:'outdentBlock'==_0xf7c743['commandName']?{'type':'format','content':o(_0x15f914,'*Outdent:*\x20%0',_0x45b180)}:void 0x0;});}}class ut extends _0xa2e54a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0xa2e54a{['afterInit'](){const _0x1ff7e9=this['editor'];if(!_0x1ff7e9['plugins']['has']('LinkEditing'))return;const _0x3a82fd=_0x1ff7e9['plugins']['get']('TrackChangesEditing'),_0x5027af=_0x1ff7e9['commands']['get']('link');_0x3a82fd['enableDefaultAttributesIntegration']('link'),_0x3a82fd['enableDefaultAttributesIntegration']('unlink'),_0x3a82fd['registerInlineAttribute']('linkHref');for(const _0x415b01 of _0x5027af['manualDecorators'])_0x3a82fd['registerInlineAttribute'](_0x415b01['id']),_0x3a82fd['descriptionFactory']['registerAttributeLabel'](_0x415b01['id'],'link\x20('+_0x415b01['label']['toLowerCase']()+')');_0x3a82fd['descriptionFactory']['registerDescriptionCallback'](_0x1b466b=>{if('attribute'!=_0x1b466b['type'])return;const {data:_0x2f145b}=_0x1b466b;if(!_0x2f145b||'linkHref'!=_0x2f145b['key'])return;const _0x16ee21=_0x2f145b['newValue'],_0x4bec5c=_0x1ff7e9['locale'];return{'type':'format','content':null==_0x16ee21?o(_0x4bec5c,'*Remove\x20link*'):o(_0x4bec5c,'*Set\x20link:*\x20%0','\x22'+_0x16ee21+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4919d5=this['editor'],_0x43d603=_0x4919d5['locale'];_0x4919d5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3ac9e8=>{if('formatInline'!=_0x3ac9e8['type'])return;const {data:_0x3621d4}=_0x3ac9e8;if(_0x3621d4){if('link'==_0x3621d4['commandName']){const _0x303854=_0x3621d4['commandParams'][0x0];return{'type':'format','content':o(_0x43d603,'*Set\x20link:*\x20%0','\x22'+_0x303854+'\x22')};}return'unlink'==_0x3621d4['commandName']?{'type':'format','content':o(_0x43d603,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0xa2e54a{['afterInit'](){const _0x2b269f=this['editor'],_0x402a59=_0x2b269f['locale'];if(!_0x2b269f['plugins']['has']('LegacyListEditing'))return;const _0xe3d6df=_0x2b269f['plugins']['get']('TrackChangesEditing'),_0x1f01f8=_0x2b269f['plugins']['has']('LegacyTodoListEditing');function _0xae2388(_0x4c186f){return()=>{const _0x4d7b9a=_0x2b269f['model']['document']['selection'],_0x3857d7=_0x2b269f['commands']['get'](_0x4c186f);if(_0x3857d7['value'])return void _0x2b269f['execute']('paragraph',{});const _0x154dfb=_0x4c186f['slice'](0x0,-0x4),_0x18bb92=function(_0x12e512,_0x2ae109,_0x5ea787){let _0x29fb44=Array['from'](_0x12e512)['filter'](_0x565e2e=>function(_0x3f848e,_0x3e65e4){return _0x3e65e4['checkChild'](_0x3f848e['parent'],'listItem')&&!_0x3e65e4['isObject'](_0x3f848e);}(_0x565e2e,_0x5ea787));_0x29fb44=_0x29fb44['filter'](_0x36f80a=>!_0x36f80a['is']('element','listItem')||_0x36f80a['getAttribute']('listType')!=_0x2ae109);const _0x2b1199=new Set();for(const _0x8902e1 of _0x29fb44)_0x8902e1['is']('element','listItem')?_0x2b1199['add'](fe(_0x8902e1)):_0x2b1199['add'](_0x8902e1);return Array['from'](_0x2b1199);}(_0x4d7b9a['getSelectedBlocks'](),_0x154dfb,_0x2b269f['model']['schema']);_0x2b269f['model']['change'](()=>{for(const _0x489ba7 of _0x18bb92)_0xe3d6df['markBlockFormat'](_0x489ba7,{'commandName':_0x4c186f,'commandParams':[{'forceValue':!_0x3857d7['value']}],'formatGroupId':'blockName'},ue(_0x489ba7));});};}function _0x35f5dd(_0xb64de8){return()=>{const _0x4fbc58=function(_0x4d93ac){let _0x1156b7=Array['from'](_0x4d93ac);const _0x2a14fc=_0x1156b7['findIndex'](_0x27b3b3=>'listItem'!=_0x27b3b3['name']);return _0x2a14fc>-0x1&&(_0x1156b7=_0x1156b7['slice'](0x0,_0x2a14fc)),_0x1156b7;}(_0x2b269f['model']['document']['selection']['getSelectedBlocks']()),_0x121ef2=_0x2b269f['model']['createRange'](_0x2b269f['model']['createPositionAt'](_0x4fbc58[0x0],'before'),_0x2b269f['model']['createPositionAt'](_0x4fbc58[_0x4fbc58['length']-0x1],'end'));_0x2b269f['model']['change'](()=>{_0xe3d6df['markBlockFormat'](_0x121ef2,{'commandName':_0xb64de8,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1b065e){const _0x2ca222=new Set();for(const _0x28235e of _0x1b065e){let _0x48ee64=_0x28235e['nextSibling'];for(;_0x48ee64&&_0x48ee64['getAttribute']('listIndent')>_0x28235e['getAttribute']('listIndent');)_0x2ca222['add'](_0x48ee64),_0x48ee64=_0x48ee64['nextSibling'];}return Array['from'](_0x2ca222);}(_0x4fbc58));});};}_0xe3d6df['enableCommand']('numberedList',_0xae2388('numberedList')),_0xe3d6df['enableCommand']('bulletedList',_0xae2388('bulletedList')),_0x1f01f8&&_0xe3d6df['enableCommand']('todoList',_0xae2388('todoList')),_0xe3d6df['enableCommand']('indentList',_0x35f5dd('indentList')),_0xe3d6df['enableCommand']('outdentList',_0x35f5dd('outdentList')),_0x1f01f8&&_0xe3d6df['enableCommand']('checkTodoList',()=>{const _0x538eb3=_0x2b269f['commands']['get']('checkTodoList'),_0x3ecb74=Array['from'](_0x538eb3['_selectedElements']);_0x3ecb74['filter'](_0x29dfe6=>_0x29dfe6['getAttribute']('todoListChecked')!=_0x538eb3['value']),_0x2b269f['model']['change'](()=>{for(const _0x52357c of _0x3ecb74)_0xe3d6df['markBlockFormat'](_0x52357c,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x538eb3['value']}]});});}),_0xe3d6df['descriptionFactory']['registerElementLabel']('listItem',_0x3df877=>o(_0x402a59,'ELEMENT_LIST_ITEM',_0x3df877)),_0xe3d6df['descriptionFactory']['registerDescriptionCallback'](_0x4d9efb=>{if('formatBlock'!=_0x4d9efb['type']&&'formatInline'!=_0x4d9efb['type'])return;const {data:_0x527fd3}=_0x4d9efb;if(_0x527fd3){if('numberedList'==_0x527fd3['commandName']||'bulletedList'==_0x527fd3['commandName']||'todoList'==_0x527fd3['commandName'])switch(_0x527fd3['commandName']['replace']('List','')){case'bulleted':return _0x58c221(o(_0x402a59,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x58c221(o(_0x402a59,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x58c221(o(_0x402a59,'ELEMENT_TODO_LIST'));}if('indentList'==_0x527fd3['commandName'])return{'type':'format','content':o(_0x402a59,'*Indent:*\x20%0',o(_0x402a59,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x527fd3['commandName'])return{'type':'format','content':o(_0x402a59,'*Outdent:*\x20%0',o(_0x402a59,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x527fd3['commandName'])return _0x527fd3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x402a59,'*Check\x20item*')}:{'type':'format','content':o(_0x402a59,'*Uncheck\x20item*')};}function _0x58c221(_0x57825a){return{'type':'format','content':o(_0x402a59,'*Change\x20to:*\x20%0',_0x57825a)};}});}}function fe(_0x3cefa7){const _0x5486e1=_0x3cefa7['getAttribute']('listIndent');if(0x0==_0x5486e1)return _0x3cefa7;let _0x1dbce2=_0x3cefa7;for(;_0x3cefa7['previousSibling']&&_0x3cefa7['previousSibling']['is']('element','listItem');){const _0x16d83a=_0x3cefa7['previousSibling']['getAttribute']('listIndent');if(_0x16d83a==_0x5486e1)_0x1dbce2=_0x3cefa7['previousSibling'];else{if(_0x16d83a<_0x5486e1)break;}_0x3cefa7=_0x3cefa7['previousSibling'];}return _0x1dbce2;}function ue(_0x2525f9){const _0x1c4984=[];if(_0x2525f9['is']('element','listItem')&&_0x2525f9['getAttribute']('listIndent')>0x0){let _0xbe98dd=_0x2525f9['nextSibling'];for(;_0xbe98dd&&'listItem'==_0xbe98dd['name']&&_0xbe98dd['getAttribute']('listIndent')==_0x2525f9['getAttribute']('listIndent');)_0x1c4984['push'](_0xbe98dd),_0xbe98dd=_0xbe98dd['nextSibling'];}return _0x1c4984;}class W extends _0xa2e54a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x19be26=this['editor']['config']['get']('list.properties'),_0x522f08=this['editor']['plugins']['get']('TrackChangesEditing');_0x19be26['styles']&&_0x522f08['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x19be26['reversed']&&_0x522f08['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x19be26['startIndex']&&_0x522f08['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x522f08['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x1400d5,_0x132061={}){const _0x21e537=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2b547e=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x21e537['markMultiRangeBlockFormat'](_0x2b547e,{'commandName':'listStyle','commandParams':[{'type':_0x132061['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x1eba73,_0x3078c5={}){const _0x1b6127=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5608e7=this['_getSuggestionBlocks'](_0x1eca48=>_0x1eca48['is']('element','listItem')&&'numbered'===_0x1eca48['getAttribute']('listType'));if(_0x5608e7['length']<0x1)return;const _0x3b635d=_0x5608e7['map'](_0x3b5c78=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x3b5c78,'before'),this['editor']['model']['createPositionAt'](_0x3b5c78,0x0)));this['editor']['model']['change'](()=>{_0x1b6127['markMultiRangeBlockFormat'](_0x3b635d,{'commandName':'listReversed','commandParams':[{'reversed':_0x3078c5['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x585a1c,_0x526f35={}){const _0xad0d22=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4911ef=this['_getSuggestionBlocks'](_0x5e82a1=>_0x5e82a1['is']('element','listItem')&&'numbered'===_0x5e82a1['getAttribute']('listType'));if(_0x4911ef['length']<0x1)return;const _0x17aba5=_0x4911ef['map'](_0x2967e2=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2967e2,'before'),this['editor']['model']['createPositionAt'](_0x2967e2,0x0)));this['editor']['model']['change'](()=>{_0xad0d22['markMultiRangeBlockFormat'](_0x17aba5,{'commandName':'listStart','commandParams':[{'startIndex':_0x526f35['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x2978fd){if('formatBlock'!=_0x2978fd['type']&&'formatInline'!=_0x2978fd['type'])return;const _0x4ae453=this['editor']['locale'],{data:_0x487527}=_0x2978fd;if(!_0x487527)return;let _0x32577e,_0xd2a9d6;switch(_0x487527['commandName']){case'listStyle':_0x32577e='*Change\x20to:*\x20%0',_0xd2a9d6={'type':'format','content':o(_0x4ae453,_0x32577e,o(_0x4ae453,this['_getTranslationKeyForListStyle'](_0x487527['commandParams'][0x0]['type'])))};break;case'listReversed':_0x32577e=_0x487527['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xd2a9d6={'type':'format','content':o(_0x4ae453,_0x32577e)};break;case'listStart':_0x32577e='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xd2a9d6={'type':'format','content':o(_0x4ae453,_0x32577e,_0x487527['commandParams'][0x0]['startIndex'])};}return _0xd2a9d6;}['_getSuggestionBlocksForListStyle'](){const _0x5da0c6=this['editor']['plugins']['get']('LegacyListUtils');let _0x4c1623=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x4c1623[0x0]?.['is']('element','listItem')&&_0x4c1623['unshift'](..._0x5da0c6['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x4c1623[_0x4c1623['length']-0x1]?.['is']('element','listItem')&&_0x4c1623['push'](..._0x5da0c6['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4c1623=[...new Set(_0x4c1623)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x4c1623=_0x4c1623['filter'](_0x3fb89c=>_0x3fb89c['is']('element','listItem'))),_0x4c1623;}['_getSuggestionBlocks'](_0x228017){const _0x1341b3=this['editor']['plugins']['get']('LegacyListUtils');let _0x373c85=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x228017)['map'](_0x5e02fb=>{const _0x180cb1=this['editor']['model']['createPositionAt'](_0x5e02fb,0x0);return[..._0x1341b3['getSiblingNodes'](_0x180cb1,'backward'),..._0x1341b3['getSiblingNodes'](_0x180cb1,'forward')];})['flat']();return _0x373c85=[...new Set(_0x373c85)],_0x373c85;}['_getTranslationKeyForListStyle'](_0x205c72){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x205c72)||'default')['toUpperCase']()+'_LIST_'+_0x205c72['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0xa2e54a{['afterInit'](){const _0x14d9fa=this['editor'];if(!_0x14d9fa['plugins']['has']('MediaEmbedEditing'))return;const _0x43f6a9=_0x14d9fa['plugins']['get']('TrackChangesEditing'),_0x522fda=_0x14d9fa['locale'];_0x43f6a9['enableCommand']('mediaEmbed'),_0x43f6a9['descriptionFactory']['registerElementLabel']('media',_0x4fdfb1=>o(_0x522fda,'ELEMENT_MEDIA',_0x4fdfb1)),_0x14d9fa['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x51eed1,{writer:_0x462877,options:_0x463ccb})=>{if(_0x463ccb['showSuggestionHighlights'])return _0x462877['createEmptyElement']('div');},'converterPriority':'high'}),_0x14d9fa['data']['downcastDispatcher']['on']('attribute:url:media',(_0x35fe50,_0x3d0229,_0x57394a)=>{_0x57394a['options']['showSuggestionHighlights']&&_0x35fe50['stop']();},{'priority':'high'});}}class mt extends _0xa2e54a{['afterInit'](){const _0x37e4c2=this['editor'];_0x37e4c2['plugins']['has']('MentionEditing')&&_0x37e4c2['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0xa2e54a{['afterInit'](){const _0x54d868=this['editor'];if(!_0x54d868['commands']['get']('insertMergeField'))return;_0x54d868['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x70515=_0x54d868['plugins']['get']('TrackChangesEditing'),_0x5e940f=_0x54d868['locale'];_0x70515['descriptionFactory']['registerElementLabel']('mergeField',_0x1bed28=>o(_0x5e940f,'ELEMENT_MERGE_FIELD',_0x1bed28)),_0x70515['descriptionFactory']['registerDescriptionCallback'](_0x233d4c=>{if('insertion'!=_0x233d4c['type']&&'deletion'!=_0x233d4c['type'])return;const _0x89f394=_0x233d4c['getContainedElement']();if(null==_0x89f394)return;if(!_0x89f394['is']('element','mergeField'))return;const _0x3637af=_0x54d868['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x89f394['getAttribute']('id'));return'insertion'==_0x233d4c['type']?{'type':'insertion','content':o(_0x5e940f,'*Insert:*\x20%0','\x22'+_0x3637af+'\x22\x20'+o(_0x5e940f,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x5e940f,'*Remove:*\x20%0','\x22'+_0x3637af+'\x22\x20'+o(_0x5e940f,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0xa2e54a{['afterInit'](){const _0x1659b9=this['editor'],_0x4450a3=_0x1659b9['plugins']['get']('TrackChangesEditing');_0x1659b9['plugins']['has']('MultiLevelList')&&(_0x4450a3['enableDefaultAttributesIntegration']('multiLevelList'),_0x4450a3['registerBlockAttribute']('listMarkerStyle'),_0x4450a3['descriptionFactory']['registerDescriptionCallback'](_0x1c430f=>this['handleDescriptions'](_0x1c430f)));}['handleDescriptions'](_0x87127e){const _0x47893f=this['editor']['locale'],{data:_0x4b7ce4}=_0x87127e,_0x501360={'type':'format','content':''};if(_0x4b7ce4&&'listMarkerStyle'==_0x4b7ce4['key']){if(!_0x4b7ce4['oldValue'])return{'type':'format','content':o(_0x47893f,'*Set\x20format:*\x20%0',o(_0x47893f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b7ce4['newValue']+')'};if(!_0x4b7ce4['newValue']){let _0x2780c6=_0x87127e['head'];for(;_0x2780c6;){if(_0x2780c6['data']&&'listType'==_0x2780c6['data']['key']&&_0x2780c6['data']['newValue'])return _0x501360;_0x2780c6=_0x2780c6['next'];}return{'type':'format','content':o(_0x47893f,'*Remove\x20format:*\x20%0',o(_0x47893f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x4b7ce4['oldValue']+')'};}}}}class kt extends _0xa2e54a{['afterInit'](){const _0x5163f9=this['editor'];if(!_0x5163f9['plugins']['has']('PageBreakEditing'))return;_0x5163f9['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x3f2630=_0x5163f9['plugins']['get']('TrackChangesEditing'),_0x2f4609=_0x5163f9['locale'];_0x3f2630['descriptionFactory']['registerElementLabel']('pageBreak',_0x143f28=>o(_0x2f4609,'ELEMENT_PAGE_BREAK',_0x143f28));}}class bt extends _0xa2e54a{['afterInit'](){const _0x58a200=this['editor'];if(!_0x58a200['plugins']['has']('Paragraph'))return;const _0x2e28d2=_0x58a200['locale'],_0x28e2ad=_0x58a200['plugins']['get']('TrackChangesEditing');_0x28e2ad['descriptionFactory']['registerElementLabel']('paragraph',_0x5bd6c0=>o(_0x2e28d2,'ELEMENT_PARAGRAPH',_0x5bd6c0)),_0x28e2ad['enableDefaultAttributesIntegration']('paragraph'),_0x28e2ad['enableCommand']('insertParagraph'),_0x58a200['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x58a200),{'priority':'highest'}),_0x58a200['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1bb834,_0x547711,_0x1c57cc)=>{_0x1c57cc['options']['showSuggestionHighlights']&&nr(_0x58a200,{'showActiveMarker':!0x1})(_0x1bb834,_0x547711,_0x1c57cc);},{'priority':'highest'});const _0x55d076=_0x28e2ad['descriptionFactory'];_0x55d076['registerDescriptionCallback'](_0x3a8757=>{if('insertion'!==_0x3a8757['type'])return;const {start:_0x497a51,end:_0x82b1}=_0x3a8757['getFirstRange']();if(!_0x497a51['isTouching'](_0x82b1)||!_0x497a51['nodeAfter'])return;const _0x17618b=_0x58a200['model']['schema'],_0x2fc318=_0x497a51['nodeAfter'];return _0x17618b['isBlock'](_0x2fc318)&&!_0x17618b['isLimit'](_0x2fc318)&&_0x17618b['checkChild'](_0x2fc318,'$text')?{'type':'insertion','content':o(_0x2e28d2,'*Insert:*\x20%0',_0x55d076['getItemLabel'](_0x2fc318,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x6ca035=this['editor'],_0x22d30e=_0x6ca035['locale'];_0x6ca035['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x45a0c9=>{if('formatBlock'!=_0x45a0c9['type'])return;const {data:_0x44370a}=_0x45a0c9;return _0x44370a&&'paragraph'==_0x44370a['commandName']?{'type':'format','content':o(_0x22d30e,'*Change\x20to:*\x20%0',o(_0x22d30e,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x58cab4,{showActiveMarker:_0x5d6896=!0x0}={}){return(_0x259bc2,_0x54b2a8,_0x571129)=>{const _0xfb9aed=_0x58cab4['plugins']['get']('TrackChangesEditing'),_0x4ce8b2=_0x54b2a8['markerRange']['start'],_0xb37847=_0x54b2a8['markerRange']['end'],_0x497263=_0x58cab4['model']['schema'];if(!_0x4ce8b2['isTouching'](_0xb37847)||!_0x4ce8b2['nodeAfter'])return;const _0x2f3702=_0x4ce8b2['nodeAfter'];if(_0x497263['isBlock'](_0x2f3702)&&!_0x497263['isLimit'](_0x2f3702)&&_0x497263['checkChild'](_0x2f3702,'$text')){if(!_0x571129['consumable']['consume'](_0x54b2a8['markerRange'],_0x259bc2['name']))return;const _0x4c0737=_0x571129['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d9afa=_0x571129['mapper']['toViewPosition'](_0xb37847);_0x5d6896&&_0xfb9aed['activeMarkers']['includes'](_0x54b2a8['markerName'])&&_0x571129['writer']['addClass']('ck-suggestion-marker--active',_0x4c0737),_0x571129['writer']['insert'](_0x2d9afa,_0x4c0737),_0x571129['mapper']['bindElementToMarker'](_0x4c0737,_0x54b2a8['markerName']);}};}class wt extends _0xa2e54a{['afterInit'](){const _0x3006c8=this['editor'];if(!_0x3006c8['plugins']['has']('RemoveFormatEditing'))return;_0x3006c8['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5497b7=this['editor'];_0x5497b7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2fc4e7=>{if('formatBlock'!=_0x2fc4e7['type']&&'formatInline'!=_0x2fc4e7['type'])return;const {data:_0x3e2107}=_0x2fc4e7;return _0x3e2107&&'removeFormat'==_0x3e2107['commandName']?{'type':'format','content':o(_0x5497b7['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0xa2e54a{['afterInit'](){const _0x3dfd9d=this['editor'];if(!_0x3dfd9d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x439441=_0x3dfd9d['plugins']['get']('TrackChangesEditing');_0x439441['enableCommand']('goToPreviousRestrictedEditingException'),_0x439441['enableCommand']('goToNextRestrictedEditingException');const _0x157b91=_0x3dfd9d['plugins']['get']('RestrictedEditingModeEditing');_0x157b91['enableCommand']('trackChanges'),_0x157b91['enableCommand']('acceptSuggestion'),_0x157b91['enableCommand']('discardSuggestion'),_0x157b91['enableCommand']('acceptAllSuggestions'),_0x157b91['enableCommand']('discardAllSuggestions'),_0x157b91['enableCommand']('acceptSelectedSuggestions'),_0x157b91['enableCommand']('discardSelectedSuggestions');}}class jt extends _0xa2e54a{static get['requires'](){return[_0x2ecf23];}['init'](){const _0x3cd69a=this['editor'],_0x3b73a0=_0x3cd69a['plugins']['get']('TrackChangesEditing');_0x3b73a0['enableCommand']('shiftEnter'),_0x3cd69a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x3cd69a),{'priority':'high'}),_0x3cd69a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x3cd69a),{'priority':'high'}),_0x3cd69a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc56df6,_0x9a511,_0x28b64f)=>{_0x28b64f['options']['showSuggestionHighlights']&&ge(_0x3cd69a,{'showActiveMarker':!0x1})(_0xc56df6,_0x9a511,_0x28b64f);}),_0x3b73a0['descriptionFactory']['registerElementLabel']('softBreak',_0x38425c=>o(_0x3cd69a['locale'],'ELEMENT_LINE_BREAK',_0x38425c));}}function ge(_0x1f63c2,{showActiveMarker:_0x2a0d12=!0x0}={}){return(_0x53fd87,_0xa099e1,_0x1a8c60)=>{const _0x5efd4a=_0x1f63c2['plugins']['get']('TrackChangesEditing');if(!_0x1a8c60['consumable']['test'](_0xa099e1['markerRange'],_0x53fd87['name']))return;const _0x234c44=_0x1f63c2['model'];for(const _0x5410d9 of _0xa099e1['markerRange']['getItems']()){if(!_0x5410d9['is']('element','softBreak'))continue;const _0x1dfa59='deletion'==_0xa099e1['markerName']['split'](':')[0x1]?'merge':'split',_0x33d4ce=_0x1a8c60['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1dfa59}),_0x5d2386=_0x1a8c60['mapper']['toViewPosition'](_0x234c44['createPositionBefore'](_0x5410d9));_0x2a0d12&&_0x5efd4a['activeMarkers']['includes'](_0xa099e1['markerName'])&&_0x1a8c60['writer']['addClass']('ck-suggestion-marker--active',_0x33d4ce),_0x1a8c60['writer']['insert'](_0x5d2386,_0x33d4ce),_0x1a8c60['mapper']['bindElementToMarker'](_0x33d4ce,_0xa099e1['markerName']);}};}class St extends _0xa2e54a{['afterInit'](){const _0x334e9e=this['editor'],_0x5d4525=_0x334e9e['model'],_0x105bd2=_0x334e9e['locale'];if(!_0x334e9e['plugins']['has']('StandardEditingModeEditing'))return;const _0x13bbe4=_0x334e9e['plugins']['get']('TrackChangesEditing'),_0x300f72='restrictedEditingException',_0x4f3c8f=_0x334e9e['commands']['get'](_0x300f72);_0x13bbe4['enableCommand'](_0x300f72,(_0x59103b,_0x299608={})=>{const _0x18690d=_0x5d4525['document']['selection'];if(_0x18690d['isCollapsed'])return void _0x59103b(_0x299608);const _0x578e44=void 0x0!==_0x299608['forceValue']?_0x299608['forceValue']:!_0x4f3c8f['value'];_0x5d4525['change'](()=>{const _0x5093a7=Array['from'](_0x18690d['getRanges']());for(const _0x60be07 of _0x5093a7){const _0x31eb63=_0x578e44?[_0x60be07]:io(_0x300f72,_0x60be07,_0x5d4525);for(const _0x21cf0d of _0x31eb63)_0x13bbe4['markInlineFormat'](_0x21cf0d,{'commandName':_0x300f72,'commandParams':[{'forceValue':_0x578e44}]});}});}),_0x13bbe4['descriptionFactory']['registerDescriptionCallback'](_0x726f2d=>{if('formatBlock'!=_0x726f2d['type']&&'formatInline'!=_0x726f2d['type'])return;const {data:_0x16a034}=_0x726f2d;return _0x16a034&&_0x16a034['commandName']==_0x300f72?_0x16a034['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x105bd2,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x105bd2,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0xa2e54a{['afterInit'](){const _0x1c442a=this['editor'];if(!_0x1c442a['plugins']['has']('Style')||!_0x1c442a['plugins']['has']('DataSchema'))return;const _0x54d487=_0x1c442a['plugins']['get']('TrackChangesEditing'),_0x1c010c=_0x1c442a['locale'],_0x10ef82=_0x1c442a['config']['get']('style')||{},_0x56965c=_0x1c442a['plugins']['get']('GeneralHtmlSupport'),_0x28cd92=_0x1c442a['plugins']['get']('StyleUtils')['normalizeConfig'](_0x1c442a['plugins']['get']('DataSchema'),_0x10ef82['definitions']);_0x54d487['enableDefaultAttributesIntegration']('style');const _0x101139=new Set();for(const _0x35b3a6 of _0x28cd92['block']){const _0x3b15c2=_0x56965c['getGhsAttributeNameForElement'](_0x35b3a6['element']);_0x101139['add'](_0x3b15c2);}const _0x3b9914=new Set();for(const _0x4981e7 of _0x28cd92['inline']){const _0x627c75=_0x56965c['getGhsAttributeNameForElement'](_0x4981e7['element']);_0x3b9914['add'](_0x627c75);for(const _0x2821a9 of _0x4981e7['ghsAttributes'])_0x3b9914['add'](_0x2821a9);}for(const _0x31c95f of _0x101139)_0x54d487['registerBlockAttribute'](_0x31c95f),_0x54d487['descriptionFactory']['registerAttributeLabel'](_0x31c95f,o(_0x1c010c,'FORMAT_STYLE'));for(const _0x27fbb1 of _0x3b9914)_0x54d487['registerInlineAttribute'](_0x27fbb1),_0x54d487['descriptionFactory']['registerAttributeLabel'](_0x27fbb1,o(_0x1c010c,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x450d51=this['editor'],_0x584499=_0x450d51['locale'];_0x450d51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6a178b=>{if('formatBlock'!=_0x6a178b['type']&&'formatInline'!=_0x6a178b['type'])return;const {data:_0x42f1de}=_0x6a178b;return _0x42f1de&&'style'===_0x42f1de['commandName']?_0x42f1de['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x584499,'*Set\x20format:*\x20%0',_0x42f1de['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x584499,'*Remove\x20format:*\x20%0',_0x42f1de['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0xa2e54a{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3289ef){super(_0x3289ef),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x16aa34=this['editor'],_0x2741a1=_0x16aa34['model']['document']['selection'];if(!_0x16aa34['plugins']['has']('TableEditing'))return;const _0x4751f8=_0x16aa34['locale'],_0x316f56=_0x16aa34['plugins']['get']('TrackChangesEditing'),_0x3b54a9=_0x16aa34['plugins']['get']('TableUtils');_0x316f56['descriptionFactory']['registerElementLabel']('table',_0x18f354=>o(_0x4751f8,'ELEMENT_TABLE',_0x18f354)),this['_setupColumnsRowsFixing'](),_0x316f56['enableCommand']('insertTable'),_0x316f56['enableCommand']('selectTableRow'),_0x316f56['enableCommand']('selectTableColumn');for(const _0x1b1c29 of['insertTableRowAbove','insertTableRowBelow']){const _0x56f59a=_0x16aa34['commands']['get'](_0x1b1c29);_0x316f56['enableCommand'](_0x1b1c29,_0x4d9594=>{_0x16aa34['model']['change'](_0x1d6b18=>{_0x4d9594();const _0x5d73eb='above'===_0x56f59a['order'],_0x5a9965=_0x3b54a9['getSelectionAffectedTableCells'](_0x2741a1),_0x4a1e10=_0x3b54a9['getRowIndexes'](_0x5a9965),_0xcd6183=_0x5d73eb?_0x4a1e10['first']-0x1:_0x4a1e10['last']+0x1,_0x352edf=_0x5a9965[0x0]['findAncestor']('table'),_0x3b7b3f=_0x3b54a9['createTableWalker'](_0x352edf,{'startRow':_0xcd6183,'endRow':_0xcd6183}),_0x37a430=Array['from'](_0x3b7b3f)['map'](_0xb31e62=>_0x1d6b18['createRangeOn'](_0xb31e62['cell']));_0x316f56['markMultiRangeInsertion'](_0x37a430,'tableRow');});});}for(const _0x2ae391 of['insertTableColumnLeft','insertTableColumnRight']){const _0x27ce50=_0x16aa34['commands']['get'](_0x2ae391);_0x316f56['enableCommand'](_0x2ae391,_0x505d47=>{_0x16aa34['model']['change'](_0x5b1894=>{_0x505d47();const _0x260667='left'===_0x27ce50['order'],_0x400cf1=_0x3b54a9['getSelectionAffectedTableCells'](_0x2741a1),_0x55b7c8=_0x3b54a9['getColumnIndexes'](_0x400cf1),_0xa1b183=_0x260667?_0x55b7c8['first']-0x1:_0x55b7c8['last']+0x1,_0x589907=_0x400cf1[0x0]['findAncestor']('table'),_0x1b41dd=_0x3b54a9['createTableWalker'](_0x589907,{'startRow':0x0,'column':_0xa1b183,'includeAllSlots':!0x1}),_0x578b52=Array['from'](_0x1b41dd)['map'](_0x33eea9=>_0x5b1894['createRangeOn'](_0x33eea9['cell']));_0x316f56['markMultiRangeInsertion'](_0x578b52,'tableColumn');});});}for(const _0x48a4f6 of['removeTableRow','removeTableColumn']){const _0x33a1bb=_0x48a4f6['substr'](0xb),_0x2dea85=_0x33a1bb['toLowerCase'](),_0x3673ca=_0x2dea85['substr'](0x0,0x3)+'span',_0x1ead20='table'+_0x33a1bb,_0x29e37b='min'+_0x33a1bb,_0x192ef0='max'+_0x33a1bb;_0x316f56['enableCommand'](_0x48a4f6,()=>{_0x16aa34['model']['change'](_0x3adffd=>{const _0x4ee389=_0x3b54a9['getSelectionAffectedTableCells'](_0x2741a1),_0xb19fcf=_0x4ee389[0x0]['findAncestor']('table');let _0x1293ad;if('removeTableRow'==_0x48a4f6){const _0x4ce6d0=_0x3b54a9['getRowIndexes'](_0x4ee389);_0x1293ad={'startRow':_0x4ce6d0['first'],'endRow':_0x4ce6d0['last'],'includeAllSlots':!0x0};}else{const _0x651271=_0x3b54a9['getColumnIndexes'](_0x4ee389);_0x1293ad={'startColumn':_0x651271['first'],'endColumn':_0x651271['last'],'includeAllSlots':!0x0};}const _0x1d6191=_0x3b54a9['createTableWalker'](_0xb19fcf,_0x1293ad),_0x461401=Array['from'](_0x1d6191)['map'](({cell:_0x59125d})=>_0x59125d),_0x2f277e=Ee(_0x461401['filter'](_0x284c7d=>_0x284c7d['hasAttribute'](_0x3673ca))),_0x303ba3=Ee(_0x461401['filter'](_0x544b3c=>!_0x544b3c['hasAttribute'](_0x3673ca)))['map'](_0x87f8ab=>_0x3adffd['createRangeOn'](_0x87f8ab)),_0x4da73a=_0x316f56['markMultiRangeDeletion'](_0x303ba3,_0x1ead20);if(_0x4da73a&&('tableRow'==_0x4da73a['subType']||'tableColumn'==_0x4da73a['subType'])){const _0x1e6e65=this['_getSuggestionCoords'](_0x4da73a);for(const _0x33a7a5 of _0x2f277e){const _0x906156=_0x3adffd['createRangeOn'](_0x33a7a5),_0x5bf7a6=_0x3b54a9['getCellLocation'](_0x33a7a5),_0x4523c7=_0x33a7a5['getAttribute'](_0x3673ca)-0x1,_0x5ec601=_0x1e6e65[_0x29e37b],_0x24eecc=_0x1e6e65[_0x192ef0];_0x5ec601<=_0x5bf7a6[_0x2dea85]&&_0x5bf7a6[_0x2dea85]+_0x4523c7<=_0x24eecc&&_0x4da73a['addRange'](_0x906156);}}});});}function _0x4246f6(_0x158ebd){const _0x43147b=Array['from'](_0x2741a1['getRanges']())['map'](_0x1426ed=>_0x4d4c67['fromRange'](_0x1426ed));_0x16aa34['model']['change'](_0x46ef1b=>{const _0x322e50=_0x46ef1b['batch'];_0x158ebd=_0x158ebd['filter'](_0x1c2e04=>'$graveyard'!=_0x1c2e04['root']['rootName']),_0x46ef1b['setSelection'](_0x158ebd),_0x16aa34['commands']['get']('removeTableRow')['refresh'](),_0x16aa34['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x16aa34['model']['enqueueChange'](()=>{_0x16aa34['model']['enqueueChange'](_0x322e50,_0x15200e=>{const _0x11b8e9=_0x43147b['filter'](_0x46e710=>'$graveyard'!=_0x46e710['root']['rootName']);_0x11b8e9['length']>0x0&&_0x15200e['setSelection'](_0x11b8e9);for(const _0x576ecd of _0x43147b)_0x576ecd['detach']();});});});}function _0x386de3(_0x1b35d4){_0x16aa34['model']['change'](_0x3114ca=>{const _0xf10483=Array['from'](_0x2741a1['getRanges']())['map'](_0x12638e=>_0x4d4c67['fromRange'](_0x12638e)),_0x38be8d=[];for(const _0x5f4516 of _0x1b35d4)for(const _0x4e2599 of _0x5f4516['getItems']({'shallow':!0x0}))_0x38be8d['push'](_0x4e2599);for(const _0x7af5df of _0x38be8d)'$graveyard'!=_0x7af5df['root']['rootName']&&(_0x3114ca['setSelection'](_0x3114ca['createPositionAt'](_0x7af5df,0x0)),_0x16aa34['commands']['get']('removeTableColumn')['refresh'](),_0x16aa34['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x389839=_0xf10483['filter'](_0x46fe02=>'$graveyard'!=_0x46fe02['root']['rootName']);_0x389839['length']>0x0&&_0x3114ca['setSelection'](_0x389839);for(const _0x403025 of _0xf10483)_0x403025['detach']();});}function _0x268bb4(_0x56d863,_0x4f781f){return _0x4f781f['every'](_0x2be781=>_0x56d863['some'](_0x338c5b=>_0x338c5b['end']['isEqual'](_0x2be781['start'])||_0x2be781['end']['isEqual'](_0x338c5b['start'])));}function _0x25dab1(_0x1993a4,_0x6784a8){return!_0x1993a4['some'](_0xa1583f=>_0x6784a8['some'](_0x2fbebb=>_0xa1583f['isIntersecting'](_0x2fbebb)))&&_0x1993a4['some'](_0x4b6c6d=>_0x6784a8['some'](_0x1bc90b=>_0x4b6c6d['end']['isTouching'](_0x1bc90b['start'])));}_0x16aa34['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4cae04,_0x50b40c,_0x7d2190)=>{if(!_0x7d2190['options']['showSuggestionHighlights'])return;const _0x2a7c3b=_0x50b40c['item'];if(!_0x2a7c3b)return;const _0x4f8fae=_0x7d2190['mapper']['toViewElement'](_0x2a7c3b);function _0x727d16(_0x55bbd2){return Array['isArray'](_0x55bbd2)?_0x55bbd2:[_0x55bbd2];}_0x4f8fae&&'tableCell'===_0x2a7c3b['name']&&_0x4e33e8(_0x4f8fae,_0x7d2190['writer'],(_0x1ae9c7,_0x50dc76,_0x265b84)=>_0x265b84['addClass'](_0x727d16(_0x50dc76['classes']),_0x1ae9c7),(_0x110fc8,_0x524e89,_0x411b80)=>_0x411b80['removeClass'](_0x727d16(_0x524e89['classes']),_0x110fc8));},{'priority':'highest'}),_0x316f56['descriptionFactory']['registerDescriptionCallback'](_0x5b5571=>{if('insertion'!=_0x5b5571['type']&&'deletion'!=_0x5b5571['type'])return;const _0x62dbef=_0x5b5571['getContainedElement']();if(null!=_0x62dbef&&_0x62dbef['is']('element','table')){if('insertion'==_0x5b5571['type']){const _0xa49c80=_0x5b5571['getItems']()['filter'](_0x3acad6=>_0x3acad6['is']('$textProxy'))['map'](_0x48724e=>_0x48724e['data']);if(_0xa49c80['length'])return{'type':'insertion','content':o(_0x4751f8,'*Insert:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0xa49c80['join']('\x20')+'\x22'))};}if('deletion'==_0x5b5571['type']){const _0x5e2247=_0x5b5571['getItems']()['filter'](_0x237630=>_0x237630['is']('$textProxy'))['map'](_0x3cdaa0=>_0x3cdaa0['data']);if(_0x5e2247['length'])return{'type':'deletion','content':o(_0x4751f8,'*Remove:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5e2247['join']('\x20')+'\x22'))};}}}),_0x316f56['descriptionFactory']['registerDescriptionCallback'](_0x62418f=>{if('tableRow'==_0x62418f['subType']){const _0x332314=_0x62418f['getItems']()['filter'](_0x247cb1=>_0x247cb1['is']('$textProxy'))['map'](_0x2f040c=>_0x2f040c['data']),_0x5ed908=this['_getSuggestionCoords'](_0x62418f),_0x41dd43=_0x5ed908['maxRow']-_0x5ed908['minRow']+0x1;if('insertion'==_0x62418f['type'])return _0x332314['length']?{'type':'insertion','content':o(_0x4751f8,'*Insert:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd43,'\x22'+_0x332314['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4751f8,'*Insert:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_ROW',_0x41dd43))};if('deletion'==_0x62418f['type'])return _0x332314['length']?{'type':'deletion','content':o(_0x4751f8,'*Remove:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x41dd43,'\x22'+_0x332314['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4751f8,'*Remove:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_ROW',_0x41dd43))};}if('tableColumn'==_0x62418f['subType']){const _0x5892b4=_0x62418f['getItems']()['filter'](_0x20eddc=>_0x20eddc['is']('$textProxy'))['map'](_0x4584fa=>_0x4584fa['data']),_0x5934ca=this['_getSuggestionCoords'](_0x62418f),_0x211dc3=_0x5934ca['maxColumn']-_0x5934ca['minColumn']+0x1;if('insertion'==_0x62418f['type'])return _0x5892b4['length']?{'type':'insertion','content':o(_0x4751f8,'*Insert:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x211dc3,'\x22'+_0x5892b4['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x4751f8,'*Insert:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_COLUMN',_0x211dc3))};if('deletion'==_0x62418f['type'])return _0x5892b4['length']?{'type':'deletion','content':o(_0x4751f8,'*Remove:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x211dc3,'\x22'+_0x5892b4['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x4751f8,'*Remove:*\x20%0',o(_0x4751f8,'ELEMENT_TABLE_COLUMN',_0x211dc3))};}}),_0x316f56['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x4246f6),_0x316f56['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x4246f6),_0x316f56['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x386de3),_0x316f56['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x386de3),_0x316f56['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x268bb4),_0x316f56['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x268bb4),_0x316f56['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x25dab1),_0x316f56['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x25dab1);}['_acceptFormatSuggestionCallbackFactory'](){const _0x23f74d=this['editor'],_0x701e3=_0x23f74d['model']['document']['selection'];return(_0x3cf583,_0x5abcac)=>{_0x23f74d['model']['change'](_0x21fc44=>{const {commandName:_0x2273f4,commandParams:_0x454d13}=_0x5abcac;let _0xa30943=_0x3cf583[0x0]['end']['nodeBefore'];_0x454d13&&_0x454d13[0x0]&&!0x1===_0x454d13[0x0]['forceValue']&&(_0xa30943=_0x3cf583[0x0]['start']['nodeAfter']);const _0x17f406=_0x21fc44['createRangeIn'](_0xa30943);if('$graveyard'==_0x17f406['root']['rootName'])return;const _0x162b3a=Array['from'](_0x701e3['getRanges']())['map'](_0x42fcfb=>_0x4d4c67['fromRange'](_0x42fcfb));_0x21fc44['setSelection'](_0x17f406),_0x23f74d['commands']['get'](_0x2273f4)['refresh'](),_0x454d13['push']({'forceDefaultExecution':!0x0}),_0x23f74d['execute'](_0x2273f4,..._0x454d13);const _0xc31359=_0x162b3a['filter'](_0x5ecee0=>'$graveyard'!=_0x5ecee0['root']['rootName']);_0xc31359['length']>0x0&&_0x21fc44['setSelection'](_0xc31359);for(const _0x227c44 of _0x162b3a)_0x227c44['detach']();});};}['_getCoordsForCells'](_0xb9a13){const _0x5e26e0=this['editor']['plugins']['get']('TableUtils');let _0x437140=Number['MAX_SAFE_INTEGER'],_0x3762ab=Number['MIN_SAFE_INTEGER'],_0x4bce95=Number['MAX_SAFE_INTEGER'],_0x1b9b74=Number['MIN_SAFE_INTEGER'];for(const _0x4e85ee of _0xb9a13){if('$graveyard'==_0x4e85ee['root']['rootName'])continue;const {row:_0x458bc4,column:_0x266b0f}=_0x5e26e0['getCellLocation'](_0x4e85ee),_0xd732ca=_0x4e85ee['hasAttribute']('rowspan')?_0x4e85ee['getAttribute']('rowspan')-0x1:0x0,_0x2b21a6=_0x4e85ee['hasAttribute']('colspan')?_0x4e85ee['getAttribute']('colspan')-0x1:0x0;_0x437140=_0x458bc4<_0x437140?_0x458bc4:_0x437140,_0x3762ab=_0x458bc4+_0xd732ca>_0x3762ab?_0x458bc4+_0xd732ca:_0x3762ab,_0x4bce95=_0x266b0f<_0x4bce95?_0x266b0f:_0x4bce95,_0x1b9b74=_0x266b0f+_0x2b21a6>_0x1b9b74?_0x266b0f+_0x2b21a6:_0x1b9b74;}return{'minRow':_0x437140,'maxRow':_0x3762ab,'minColumn':_0x4bce95,'maxColumn':_0x1b9b74};}['_setupColumnsRowsFixing'](){const _0x5019d0=this['editor'],_0x4222b4=_0x5019d0['plugins']['get']('TrackChangesEditing'),_0x24eca7=_0x5019d0['plugins']['get']('TableUtils');_0x5019d0['model']['document']['on']('change:data',()=>{const _0x1e7b82=Array['from'](_0x5019d0['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1224c2,data:_0x2dc645}of _0x1e7b82){const {group:_0x3fc1e7,id:_0x57d38e,subType:_0x5d0c19}=_0x4222b4['_splitMarkerName'](_0x1224c2);if('suggestion'!=_0x3fc1e7)continue;if(null!=_0x2dc645['oldRange'])continue;const _0x358a7d=_0x4222b4['getSuggestion'](_0x57d38e);this['_tablePostFixingSubtypes']['includes'](_0x5d0c19)&&this['_tableSuggestions']['add'](_0x358a7d);}},{'priority':'low'});const _0x4602cd=(_0x114351,_0x12abee)=>{let _0x4b8ae2=!0x1;const _0x20821a=_0x12abee['createRangeOn'](_0x114351),_0x3ce028=_0x114351['findAncestor']('table'),_0x54e97c=_0x24eca7['getCellLocation'](_0x114351);for(const _0x27aa09 of this['_tableSuggestions']){const _0x5abc3d=_0x27aa09['subType'],_0x4fec33=_0x5abc3d['startsWith']('tablePaste'),_0x4cbaef=_0x5abc3d['substr'](_0x4fec33?0xa:0x5),_0xdcce25=_0x4cbaef['toLowerCase'](),_0x2e7d4e=_0xdcce25['substr'](0x0,0x3)+'span',_0x7b9ddd='min'+_0x4cbaef,_0x42aa68='max'+_0x4cbaef;if(!_0x27aa09['isInContent'])continue;if(_0x3ce028!=_0x27aa09['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x27aa09['isIntersectingWithRange'](_0x20821a))continue;const _0x318b5c=_0x114351['hasAttribute'](_0x2e7d4e)?_0x114351['getAttribute'](_0x2e7d4e)-0x1:0x0,_0x418029=this['_getSuggestionCoords'](_0x27aa09),_0x3a54cf=_0x418029[_0x7b9ddd],_0x15c6b7=_0x418029[_0x42aa68];_0x3a54cf<=_0x54e97c[_0xdcce25]&&_0x54e97c[_0xdcce25]+_0x318b5c<=_0x15c6b7&&(_0x27aa09['addRange'](_0x20821a),_0x4b8ae2=!0x0);}return _0x4b8ae2;};_0x5019d0['model']['document']['registerPostFixer'](_0x4ce758=>{let _0x27f8d5=!0x1;for(const _0x2df61a of _0x5019d0['model']['document']['differ']['getChanges']())if('insert'==_0x2df61a['type']){if('tableRow'==_0x2df61a['name']){for(const _0x2f9753 of _0x2df61a['position']['nodeAfter']['getChildren']())_0x27f8d5=_0x27f8d5||_0x4602cd(_0x2f9753,_0x4ce758);}else'tableCell'==_0x2df61a['name']&&(_0x27f8d5=_0x27f8d5||_0x4602cd(_0x2df61a['position']['nodeAfter'],_0x4ce758));}return _0x27f8d5;});}['_getSuggestionCoords'](_0x3f874d){return this['_getCoordsForCells'](_0x3f874d['getRanges']()['map'](_0x57eff2=>_0x57eff2['start']['nodeAfter']));}}function Ee(_0x3d9099){return Array['from'](new Set(_0x3d9099)['values']());}class vt extends _0xa2e54a{static get['requires'](){return[It];}['afterInit'](){const _0x21667f=this['editor'],_0x456bc2=_0x21667f['model']['document']['selection'],_0xa86ded=_0x21667f['locale'];if(!_0x21667f['plugins']['has']('TableEditing'))return;const _0x288d7f=_0x21667f['plugins']['get']('TrackChangesEditing'),_0x3235d1=_0x21667f['plugins']['get']('TableUtils'),_0x5d8782=_0x21667f['plugins']['get'](It);_0x5d8782['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x288d7f['enableCommand']('mergeTableCells',()=>{const _0x4d40a8=_0x3235d1['getSelectionAffectedTableCells'](_0x21667f['model']['document']['selection']);_0x21667f['model']['change'](()=>{_0x288d7f['markMultiRangeBlockFormat'](_0x4d40a8,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x21667f['commands']['get']('mergeTableCells')['on']('execute',(_0x9cd040,_0x445a63)=>{_0x21667f['commands']['get']('trackChanges')['value']&&(_0x445a63['length']>0x0&&_0x445a63[_0x445a63['length']-0x1]&&_0x445a63[_0x445a63['length']-0x1]['forceDefaultExecution']||_0x288d7f['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x9cd040['stop']());},{'priority':'highest'});for(const _0x5867d1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5780c3=_0x21667f['commands']['get'](_0x5867d1);_0x288d7f['enableCommand'](_0x5867d1,()=>{const _0x2c88a3=_0x21667f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x5d91f0=>_0x5d91f0['is']('element','tableCell')),_0x3e8f3d=_0x5780c3['value'];_0x21667f['model']['change'](()=>{_0x288d7f['markMultiRangeBlockFormat']([_0x2c88a3,_0x3e8f3d],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x1ed86b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x831426=_0x21667f['commands']['get'](_0x1ed86b);_0x288d7f['enableCommand'](_0x1ed86b,()=>{const _0x3ecc91=_0x3235d1['getSelectionAffectedTableCells'](_0x21667f['model']['document']['selection'])[0x0],_0x357b45=_0x3ecc91['findAncestor']('table'),{column:_0x5bb916,row:_0x4d17d0}=_0x3235d1['getCellLocation'](_0x3ecc91);let _0x50234e=[];if('horizontally'==_0x831426['direction']){const _0xaab04=_0x3235d1['createTableWalker'](_0x357b45,{'startRow':_0x4d17d0,'endRow':_0x4d17d0,'includeAllSlots':!0x0});_0x50234e=Array['from'](_0xaab04)['map'](_0x59dd1f=>_0x59dd1f['cell']);}else{const _0x127b40=_0x3235d1['createTableWalker'](_0x357b45,{'column':_0x5bb916,'includeAllSlots':!0x0});_0x50234e=Array['from'](_0x127b40)['map'](_0x3796c9=>_0x3796c9['cell']);}_0x21667f['model']['change'](_0x3652c4=>{_0x288d7f['markBlockFormat'](_0x3652c4['createRangeOn'](_0x3ecc91),{'commandName':_0x1ed86b,'commandParams':[]},_0x50234e,_0x1ed86b);});});}_0x288d7f['descriptionFactory']['registerDescriptionCallback'](_0x55b9a5=>{if('formatBlock'!=_0x55b9a5['type']&&'formatInline'!=_0x55b9a5['type'])return;const {data:_0x2ad1e2}=_0x55b9a5;return _0x2ad1e2&&'mergeTableCells'==_0x2ad1e2['commandName']?{'type':'format','content':o(_0xa86ded,'*Merge\x20cells*')}:void 0x0;}),_0x288d7f['descriptionFactory']['registerDescriptionCallback'](_0x59c881=>{if('formatBlock'!=_0x59c881['type']&&'formatInline'!=_0x59c881['type'])return;const {data:_0x555e90}=_0x59c881;return _0x555e90?'splitTableCellVertically'==_0x555e90['commandName']?{'type':'format','content':o(_0xa86ded,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x555e90['commandName']?{'type':'format','content':o(_0xa86ded,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3b893c=_0x5d8782['_acceptFormatSuggestionCallbackFactory']();for(const _0x5dfc4a of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x288d7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5dfc4a,'accept',_0x3b893c);for(const _0x3f5926 of['splitTableCellVertically','splitTableCellHorizontally'])_0x288d7f['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3f5926,'accept',_0x3b893c);_0x288d7f['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x523ac5=>{_0x21667f['model']['change'](_0x58e18a=>{const _0x11d834=Array['from'](_0x456bc2['getRanges']())['map'](_0x48b15f=>_0x4d4c67['fromRange'](_0x48b15f));_0x58e18a['setSelection'](_0x523ac5),_0x21667f['commands']['get']('mergeTableCells')['refresh'](),_0x21667f['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0xdca60c=_0x11d834['filter'](_0x1520ba=>'$graveyard'!=_0x1520ba['root']['rootName']);_0xdca60c['length']>0x0&&_0x58e18a['setSelection'](_0xdca60c);for(const _0x5f47ed of _0x11d834)_0x5f47ed['detach']();});});for(const _0x5d3aa0 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x46a795=_0x21667f['commands']['get'](_0x5d3aa0);_0x46a795['on']('set:isEnabled',(_0x286455,_0x30288c,_0x1b2de1)=>{if(_0x1b2de1){const _0x124b4a=_0x21667f['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x391f33=>_0x391f33['is']('element','tableCell'));this['_areMergableCells'](_0x46a795['value'],_0x124b4a)||(_0x286455['return']=!0x1,_0x286455['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x45977d=this['editor']['commands']['get']('mergeTableCells'),_0x5da43e=this['editor']['plugins']['get']('TableUtils');if(!_0x45977d['isEnabled'])return!0x1;const _0x3dff21=_0x5da43e['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x119546 of _0x3dff21)for(const _0x41fb3c of _0x3dff21)if(_0x119546!=_0x41fb3c&&!this['_areMergableCells'](_0x119546,_0x41fb3c))return!0x1;return!0x0;}['_areMergableCells'](_0x257887,_0x5d4bf3){const _0x12a524=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1dddb7=this['editor']['model']['createRangeOn'](_0x257887),_0x12f101=this['editor']['model']['createRangeOn'](_0x5d4bf3),_0x36878c=new Set(),_0x3cef32=new Set();for(const _0x451a1d of _0x12a524['getSuggestions']())if(('insertion'==_0x451a1d['type']||'deletion'==_0x451a1d['type']||'mergeTableCells'==_0x451a1d['subType'])&&_0x451a1d['isInContent']){for(const _0x1bf719 of _0x451a1d['getRanges']())_0x1bf719['containsRange'](_0x1dddb7,!0x0)&&_0x36878c['add'](_0x451a1d['type']+':'+_0x451a1d['author']['id']),_0x1bf719['containsRange'](_0x12f101,!0x0)&&_0x3cef32['add'](_0x451a1d['type']+':'+_0x451a1d['author']['id']);}if(_0x36878c['size']!=_0x3cef32['size'])return!0x1;for(const _0x4efcce of _0x36878c)if(!_0x3cef32['has'](_0x4efcce))return!0x1;return!0x0;}}class Ct extends _0xa2e54a{static get['requires'](){return[It];}['afterInit'](){const _0x2adbf2=this['editor'];if(!_0x2adbf2['plugins']['has']('TableEditing'))return;const _0x22de04=_0x2adbf2['locale'],_0x57329a=_0x2adbf2['plugins']['get']('TrackChangesEditing');_0x57329a['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x57329a['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x57329a['registerBlockAttribute']('headingRows'),_0x57329a['registerBlockAttribute']('headingColumns'),_0x57329a['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x22de04,'FORMAT_HEADER_ROW')),_0x57329a['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x22de04,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a9560=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c704a=this['editor']['plugins']['get']('TableUtils'),_0x492a66=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x5a106c({showActiveMarker:_0x540911=!0x0,setDataAttribute:_0x8006e0=!0x0}={}){return(_0x556e2c,_0x2688a2,_0xf6144b)=>{const {type:_0x8a0a5b,id:_0x55a8a7}=_0x4a9560['_splitMarkerName'](_0x2688a2['markerName']),_0x5c7de5=_0x4a9560['getSuggestion'](_0x55a8a7),_0x22716f=_0x5c7de5['data'];if('formatBlock'!=_0x5c7de5['type']||!_0x22716f||'setTableColumnHeader'!=_0x22716f['commandName'])return;if(_0x2688a2['item'])return void _0x556e2c['stop']();if(!_0xf6144b['consumable']['consume'](_0x2688a2['markerRange'],_0x556e2c['name']))return;const _0x3fdd56=_0x2688a2['markerRange']['start']['nodeAfter'],_0xfbaecc=_0x2688a2['markerRange']['end']['nodeBefore'],_0x1954cc=_0x3fdd56['parent']['parent'],{column:_0x10e8fa}=_0x3c704a['getCellLocation'](_0x3fdd56),{column:_0x3937d2}=_0x3c704a['getCellLocation'](_0xfbaecc);for(let _0x2254e3=_0x10e8fa;_0x2254e3<=_0x3937d2;_0x2254e3++){const _0x20162d=_0x3c704a['createTableWalker'](_0x1954cc,{'column':_0x2254e3,'includeAllSlots':!0x1});for(const _0x4e5f7c of _0x20162d){const _0x2ecead=_0x4e5f7c['cell'],_0x18e8f3=_0xf6144b['mapper']['toViewElement'](_0x2ecead);_0xf6144b['writer']['addClass']('ck-suggestion-marker-'+_0x8a0a5b,_0x18e8f3),_0x8006e0&&_0xf6144b['writer']['setAttribute']('data-suggestion',_0x55a8a7,_0x18e8f3),_0xf6144b['mapper']['bindElementToMarker'](_0x18e8f3,_0x2688a2['markerName']),_0x540911&&(_0x4a9560['activeMarkers']['includes'](_0x2688a2['markerName'])?_0xf6144b['writer']['addClass']('ck-suggestion-marker--active',_0x18e8f3):_0xf6144b['writer']['removeClass']('ck-suggestion-marker--active',_0x18e8f3));}}};}_0x4a9560['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x492a66),_0x4a9560['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x492a66),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a106c(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2f9cfa,_0x5eeca1,_0x28f47a)=>{_0x28f47a['options']['showSuggestionHighlights']&&_0x5a106c({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2f9cfa,_0x5eeca1,_0x28f47a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x4731b6,_0x3fd552,_0x205d00)=>{const {type:_0x5a33e5,id:_0x5e1846}=_0x4a9560['_splitMarkerName'](_0x3fd552['markerName']),_0x3eef31=_0x4a9560['getSuggestion'](_0x5e1846),_0x5175ff=_0x3eef31['data'];if('formatBlock'!=_0x3eef31['type']||!_0x5175ff||'setTableColumnHeader'!=_0x5175ff['commandName'])return;const _0x20ffe0=_0x205d00['mapper']['markerNameToElements'](_0x3fd552['markerName']);if(_0x20ffe0){for(const _0x212018 of _0x20ffe0)_0x205d00['writer']['removeClass']('ck-suggestion-marker-'+_0x5a33e5,_0x212018),_0x205d00['writer']['removeClass']('ck-suggestion-marker--active',_0x212018),_0x205d00['writer']['removeAttribute']('data-suggestion',_0x212018),_0x205d00['mapper']['unbindElementFromMarkerName'](_0x212018,_0x3fd552['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x355131=this['editor'],_0x1fcb43=_0x355131['locale'];function _0x4d78f0(_0x199722){return{'type':'format','content':o(_0x1fcb43,'*Format:*\x20%0',_0x199722)};}_0x355131['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x272c8c=>{if('formatBlock'!=_0x272c8c['type'])return;const {data:_0x249f4f}=_0x272c8c;if(_0x249f4f){if('setTableRowHeader'==_0x249f4f['commandName']){const _0x6017bc=_0x249f4f['commandParams'][0x0]['forceValue'];return _0x4d78f0(o(_0x1fcb43,_0x6017bc?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x249f4f['commandName']){const _0x809cac=_0x249f4f['commandParams'][0x0]['forceValue'];return _0x4d78f0(o(_0x1fcb43,_0x809cac?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x21b4ed=>[_0x21b4ed,null]));class _t extends _0xa2e54a{static get['requires'](){return[It];}['afterInit'](){const _0xb3ecd6=this['editor'];if(!_0xb3ecd6['plugins']['has']('TableClipboard'))return;const _0x2ca501=_0xb3ecd6['plugins']['get']('TrackChangesEditing'),_0x45bdaf=_0xb3ecd6['plugins']['get']('TableUtils'),_0x2de716=_0xb3ecd6['plugins']['get'](It),_0x5dd246=_0xb3ecd6['plugins']['get']('TableClipboard');_0x2de716['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0xb3ecd6['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0xb3ecd6['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x12eba8=null;_0xb3ecd6['model']['on']('insertContent',(_0x57a6a3,_0x1e8aa9)=>{const [_0x37f196,_0x140d7f]=_0x1e8aa9,_0x597bd0=_0x1e8aa9[_0x1e8aa9['length']-0x1];_0x597bd0&&_0x597bd0['forceDefaultExecution']||_0x2ca501['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x220d21,_0x1befd8,_0x5b523f,_0x3136bb,_0x302dd7){if(_0x1befd8&&!_0x1befd8['is']('documentSelection'))return!0x1;const _0x54e491=_0x302dd7['getTableIfOnlyTableInContent'](_0x220d21,_0x5b523f);if(!_0x54e491||!ke(_0x54e491,void 0x0,_0x3136bb))return!0x1;const _0x3cb755=_0x3136bb['getSelectionAffectedTableCells'](_0x5b523f['document']['selection']);if(!_0x3cb755['length'])return!0x1;const _0x50adce=_0x3cb755[0x0]['findAncestor']('table'),_0x549f17=_0x3136bb['getRowIndexes'](_0x3cb755),_0x1ca510=_0x3136bb['getColumnIndexes'](_0x3cb755),_0x40a534={'startRow':_0x549f17['first'],'endRow':_0x549f17['last'],'startColumn':_0x1ca510['first'],'endColumn':_0x1ca510['last']};return 0x1==_0x3cb755['length']&&(_0x40a534['endRow']+=_0x3136bb['getRows'](_0x54e491)-0x1,_0x40a534['endColumn']+=_0x3136bb['getColumns'](_0x54e491)-0x1),ke(_0x50adce,_0x40a534,_0x3136bb);}(_0x37f196,_0x140d7f,_0xb3ecd6['model'],_0x45bdaf,_0x5dd246)&&(_0x57a6a3['stop'](),_0x12eba8={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0xb3ecd6['model']['change'](()=>{_0xb3ecd6['model']['insertContent'](_0x1e8aa9[0x0],_0x1e8aa9[0x1],_0x1e8aa9[0x2],{'forceDefaultExecution':!0x0});const _0x796cd8=_0x2c01d2(),{rowInsertionRanges:_0x40988f,columnInsertionRanges:_0x2cb83a,insertionRanges:_0xca9531,deletionRanges:_0x1021e9,cells:_0x4d0afd}=_0x12eba8;_0x40988f['length']&&_0x2ca501['markMultiRangeInsertion'](_0x40988f,'tablePasteRow',{'tablePasteChainId':_0x796cd8}),_0x2cb83a['length']&&_0x2ca501['markMultiRangeInsertion'](_0x2cb83a,'tablePasteColumn',{'tablePasteChainId':_0x796cd8}),_0xca9531['length']&&(_0x2ca501['markMultiRangeInsertion'](_0xca9531,'tablePaste',{'tablePasteChainId':_0x796cd8,'skipNestingCheck':!0x0}),_0xca9531['forEach'](_0x5862ae=>_0x5862ae['detach']?.())),_0x1021e9['length']&&(_0x2ca501['markMultiRangeDeletion'](_0x1021e9,'tablePaste',{'tablePasteChainId':_0x796cd8,'skipNestingCheck':!0x0}),_0x1021e9['forEach'](_0x2f4c32=>_0x2f4c32['detach']?.()));const _0x58c8ee=_0x2ca501['markMultiRangeBlockFormat'](_0x4d0afd['map'](({element:_0x528c17})=>_0x528c17),{'formatGroupId':_0x2c01d2()},[],'tablePasteCell',{'tablePasteChainId':_0x796cd8});if(_0x58c8ee){const _0x3d4ed0=_0x58c8ee['getMarkers'](),_0xaf15d2=[];for(const {element:_0x27c6e7,attributes:_0x639ec4}of _0x4d0afd){if(!_0x639ec4)continue;const _0x432fde=_0xb3ecd6['model']['createRangeOn'](_0x27c6e7),_0x40a688=_0x3d4ed0['find'](_0x1be2a4=>_0x1be2a4['getRange']()['isEqual'](_0x432fde));_0x40a688&&_0xaf15d2['push']([_0x40a688['name'],_0x639ec4]);}_0xaf15d2['length']&&_0x58c8ee['setAttribute']('markerAttributes',Object['fromEntries'](_0xaf15d2));}_0x12eba8=null;}));},{'priority':_0x2e27fb['high']+0xa}),_0xb3ecd6['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x317c14,_0x3aa9c8)=>{const [_0x1e92c4,_0x4d186d,,_0x522dbd]=_0x3aa9c8;if(!_0x12eba8)return;_0x317c14['stop']();const _0x10078b=_0x1e92c4['cell'],_0x3577e5=_0x4d186d,_0x132332=we(_0x10078b),_0x3a0c89=we(_0x3577e5);_0x317c14['return']=_0x10078b;let _0x341457=null,_0x27fba1=null;if(_0x3a0c89||_0x132332){if(_0x132332&&!_0x3a0c89){_0x522dbd['remove'](_0x10078b['getChild'](0x0));for(const _0x400fbf of Array['from'](_0x3577e5['getChildren']()))_0x522dbd['insert'](_0x400fbf,_0x10078b,'end');const _0x2085cf=_0x12eba8['rowInsertionIndexes']['includes'](_0x1e92c4['row']),_0x5aa6c0=_0x12eba8['columnInsertionIndexes']['includes'](_0x1e92c4['column']);_0x2085cf||_0x5aa6c0||(_0x341457=_0x4d4c67['fromRange'](_0x522dbd['createRangeIn'](_0x10078b)));}else _0x3a0c89&&!_0x132332&&(_0x27fba1=_0x522dbd['createRangeIn'](_0x10078b));}else{const _0x58ee72=_0x522dbd['createElement']('tableCellSuggestion'),_0x31a0f7=_0x522dbd['createElement']('tableCellSuggestion');_0x522dbd['wrap'](_0x522dbd['createRangeIn'](_0x10078b),_0x31a0f7),_0x522dbd['insert'](_0x58ee72,_0x10078b,0x0);for(const _0x271cb4 of Array['from'](_0x3577e5['getChildren']()))_0x522dbd['insert'](_0x271cb4,_0x58ee72,'end');_0x341457=_0x4d4c67['fromRange'](_0x522dbd['createRangeOn'](_0x58ee72)),_0x27fba1=_0x4d4c67['fromRange'](_0x522dbd['createRangeOn'](_0x31a0f7));}const _0x37e873=Array['from'](_0x3577e5['getAttributes']())['filter'](([_0x16828e])=>Ce['includes'](_0x16828e));_0x12eba8['cells']['push']({'element':_0x10078b,'attributes':_0x37e873['length']?Object['fromEntries'](_0x37e873):null}),_0x341457&&_0x12eba8['insertionRanges']['push'](_0x341457),_0x27fba1&&_0x12eba8['deletionRanges']['push'](_0x27fba1);},{'priority':'high'}),_0x45bdaf['on']('insertColumns',(_0x4335c6,_0x43db47)=>{const [_0x1ba966,_0x1d5fce={}]=_0x43db47;if(!_0x12eba8)return;const _0x49868b=_0x1d5fce['at']||0x0,_0x1d123b=_0x1d5fce['columns']||0x1;_0x12eba8['columnInsertionIndexes']=new Array(_0x1d123b)['fill'](_0x49868b)['map']((_0x52429c,_0x5a66a5)=>_0x52429c+_0x5a66a5);for(const {cell:_0x4c5cd3}of _0x45bdaf['createTableWalker'](_0x1ba966,{'startColumn':_0x49868b,'endColumn':_0x49868b+_0x1d123b-0x1}))_0x12eba8['columnInsertionRanges']['push'](_0xb3ecd6['model']['createRangeOn'](_0x4c5cd3));},{'priority':'low'}),_0x45bdaf['on']('insertRows',(_0x48ad4c,_0xbc084c)=>{const [_0x47ec3d,_0x3d289c={}]=_0xbc084c;if(!_0x12eba8)return;const _0x8a0d85=_0x3d289c['at']||0x0,_0x35360c=_0x3d289c['rows']||0x1;_0x12eba8['rowInsertionIndexes']=new Array(_0x35360c)['fill'](_0x8a0d85)['map']((_0x386cc4,_0x441637)=>_0x386cc4+_0x441637);for(const {cell:_0x164929}of _0x45bdaf['createTableWalker'](_0x47ec3d,{'startRow':_0x8a0d85,'endRow':_0x8a0d85+_0x35360c-0x1}))_0x12eba8['rowInsertionRanges']['push'](_0xb3ecd6['model']['createRangeOn'](_0x164929));},{'priority':'low'}),_0x2ca501['descriptionFactory']['registerDescriptionCallback'](_0x6fa163=>{if(_0x6fa163['subType']&&_0x6fa163['subType']['startsWith']('tablePaste'))return _0x6fa163['previous']?{}:{'type':'insertion','content':o(_0xb3ecd6['locale'],'*Replace\x20table\x20cells*')};});const _0x3e8fbd=()=>!0x1;for(const _0x3cfb60 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x2ca501['_suggestionFactory']['registerCustomCallback']('insertion',_0x3cfb60,'join',_0x3e8fbd),_0x2ca501['_suggestionFactory']['registerCustomCallback']('deletion',_0x3cfb60,'join',_0x3e8fbd),_0x2ca501['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3cfb60,'join',_0x3e8fbd);_0x2ca501['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e8fbd),_0x2ca501['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x2925e9,_0x33faa7,_0xd7faf9)=>{const _0x82a654=_0x2925e9['map'](_0x228c45=>_0x228c45['getContainedElement']())['filter'](_0x2889a8=>_0x2889a8),_0x4c8ec7=new Map(_0x82a654['map'](_0x3e6cf4=>[_0x3e6cf4,null]));if(_0x12eba8){for(const {element:_0x164033,attributes:_0x368ab2}of _0x12eba8['cells'])_0x368ab2&&_0x4c8ec7['set'](_0x164033,_0x368ab2);}else{if(_0xd7faf9&&_0xd7faf9['markerAttributes'])for(const [_0x5deeb5,_0x239626]of Object['entries'](_0xd7faf9['markerAttributes'])){const _0x428263=_0xb3ecd6['model']['markers']['get'](_0x5deeb5),_0x226022=_0x428263?_0x428263['getRange']()['getContainedElement']():null;_0x226022&&_0x4c8ec7['set'](_0x226022,_0x239626);}}_0xb3ecd6['model']['change'](_0x4ec41f=>{for(const [_0x1dbc70,_0x14598e]of _0x4c8ec7)_0x4ec41f['setAttributes']({...Pe,..._0x14598e},_0x1dbc70);});});const _0x329ea6=(_0x7c383c,_0x9bdc12)=>{_0x2ca501['_suggestionFactory']['registerCustomCallback'](_0x7c383c,'tablePaste',_0x9bdc12,(_0x2f27b0,_0x4273ba,_0x78ff3e)=>{_0xb3ecd6['model']['change'](_0x5020d8=>{const _0xf52f15=[];for(const _0x184871 of _0x2f27b0){const _0x20d22a=_0x184871['start']['nodeAfter'];_0x20d22a['is']('element','tableCellSuggestion')&&_0xf52f15['push'](_0x20d22a);}_0x2ca501['_suggestionFactory']['getSuggestionCallback'](_0x7c383c,null,_0x9bdc12)(_0x2f27b0,_0x4273ba,_0x78ff3e);for(const _0x2028b7 of _0xf52f15)'$graveyard'!=_0x2028b7['root']['rootName']&&_0x5020d8['unwrap'](_0x2028b7);});});};_0x329ea6('insertion','accept'),_0x329ea6('insertion','discard'),_0x329ea6('deletion','accept'),_0x329ea6('deletion','discard'),_0x2ca501['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x59aad9=>{const _0x5f2d6e=_0x59aad9['map'](_0x147525=>_0x147525['getContainedElement']()),_0xefa61b=_0x5f2d6e[0x0]['findAncestor']('table'),{minRow:_0x7fe7eb,maxRow:_0x544c7f}=_0x2de716['_getCoordsForCells'](_0x5f2d6e);_0x45bdaf['removeRows'](_0xefa61b,{'at':_0x7fe7eb,'rows':_0x544c7f-_0x7fe7eb+0x1});}),_0x2ca501['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x11d569=>{const _0x4b9765=_0x11d569['map'](_0x51bc78=>_0x51bc78['getContainedElement']()),_0x4a17ad=_0x4b9765[0x0]['findAncestor']('table'),{minColumn:_0x4f8f8e,maxColumn:_0x3b76ef}=_0x2de716['_getCoordsForCells'](_0x4b9765);_0x45bdaf['removeColumns'](_0x4a17ad,{'at':_0x4f8f8e,'columns':_0x3b76ef-_0x4f8f8e+0x1});});const _0x125792=(_0xbd7d9f,_0x541e2f)=>{if(!_0x541e2f['subType']||!_0x541e2f['subType']['startsWith']('tablePaste'))return;const _0x409766=_0x541e2f['attributes']['tablePasteChainId'],_0x37629a=_0x2ca501['getSuggestions']()['filter'](_0x3755cb=>_0x3755cb['isInContent']&&_0x3755cb['attributes']&&_0x3755cb['attributes']['tablePasteChainId']==_0x409766);_0x37629a['length']&&_0x541e2f['getAllAdjacentSuggestions']()['length']!=_0x37629a['length']&&_0x37629a['reduce']((_0x5b3d32,_0x1e5740)=>(_0x5b3d32['next']=_0x1e5740,_0x1e5740['previous']=_0x5b3d32,_0x1e5740));};function _0x50accd(_0x3ff21d,_0x2476a4=!0x0){const {id:_0x4293fa}=_0x2ca501['_splitMarkerName'](_0x3ff21d['markerName']),_0x187aef=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x61a33d=_0x2ca501['activeMarkers']['includes'](_0x3ff21d['markerName']);return _0x61a33d&&_0x187aef['push']('ck-suggestion-marker--active'),{'classes':_0x187aef,'attributes':{'data-suggestion':_0x4293fa},'priority':_0x61a33d&&_0x2476a4?0xbc2:0xbb8};}_0x2ca501['on']('suggestionLoaded',_0x125792,{'priority':'high'}),_0x2ca501['on']('suggestionUnloaded',_0x125792,{'priority':'high'}),_0xb3ecd6['model']['document']['registerPostFixer'](()=>{let _0x53e1d0=!0x1;const _0x54bb39=Array['from'](_0xb3ecd6['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1c2d44,data:_0x5e2cf1}of _0x54bb39){const {group:_0x2eb295,type:_0x41df4a,id:_0x22076f}=_0x2ca501['_splitMarkerName'](_0x1c2d44);if('suggestion'!=_0x2eb295||'deletion'!=_0x41df4a||_0x5e2cf1['oldRange'])continue;if(!_0x2ca501['hasSuggestion'](_0x22076f))continue;const _0x319952=_0x2ca501['getSuggestion'](_0x22076f)['getRanges'](),_0x3dd05a=_0xb3ecd6['plugins']['get']('Users')['me'];for(const _0x2131b5 of _0x2ca501['getSuggestions']()){if(!_0x2131b5['isInContent']||_0x2131b5['author']!=_0x3dd05a)continue;if('formatBlock'!=_0x2131b5['type']||'tablePasteCell'!=_0x2131b5['subType'])continue;if(_0x2131b5['getRanges']()['every'](_0x583a8e=>_0x319952['some'](_0x56632f=>_0x56632f['containsRange'](_0x583a8e,!0x0)))){for(const _0x282ac2 of _0x2131b5['getAllAdjacentSuggestions']())_0x282ac2['isInContent']&&(_0x282ac2['discard'](),_0x53e1d0=!0x0);}}}return _0x53e1d0;}),_0xb3ecd6['model']['document']['registerPostFixer'](_0x180cbd=>{const _0x10598a=_0xb3ecd6['commands']['get']('redo');if(!_0x10598a||!_0x10598a['_createdBatches']['has'](_0x180cbd['batch']))return!0x1;let _0x25ea40=!0x1;const _0xf1368b=_0xb3ecd6['plugins']['get']('Users')['me'],_0x382ac=_0xb3ecd6['model']['document']['differ']['getChanges'](),_0x122275=Array['from'](_0xb3ecd6['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x417475,data:_0x4bb872})=>{const {group:_0x23af90,subType:_0x1a8cc3,authorId:_0x32ef49}=_0x2ca501['_splitMarkerName'](_0x417475);return'suggestion'==_0x23af90&&'tablePaste'==_0x1a8cc3&&_0x32ef49==_0xf1368b['id']&&!_0x4bb872['oldRange'];});for(const _0x3c4f79 of _0x382ac){if('insert'!=_0x3c4f79['type']||'tableCellSuggestion'!=_0x3c4f79['name']||0x1!=_0x3c4f79['length'])continue;const _0x1e64db=_0x180cbd['createRange'](_0x3c4f79['position'],_0x3c4f79['position']['getShiftedBy'](0x1));if(!_0x122275['find'](({data:_0x5f1b04})=>_0x5f1b04['newRange']['isEqual'](_0x1e64db))){for(const {name:_0x378912,data:_0x1bdc49}of _0x122275)if(_0x1e64db['containsRange'](_0x1bdc49['newRange'])){_0x180cbd['updateMarker'](_0x378912,{'range':_0x1e64db}),_0x25ea40=!0x0;break;}}}return _0x25ea40;}),_0xb3ecd6['model']['document']['registerPostFixer'](_0x2b7d31=>{let _0x40d764=!0x1;const _0x4df9c0=_0xb3ecd6['plugins']['get']('Users')['me'],_0x3dba10=_0x2ca501['getSuggestions']()['filter'](_0xad9059=>_0xad9059['isInContent']&&_0xad9059['author']==_0x4df9c0),_0x5b738f=new Set(),_0x5b248c=new Set();for(const _0x4f8b94 of _0x3dba10)if('tablePaste'==_0x4f8b94['subType'])for(const _0x54fb3d of _0x4f8b94['getMarkers']()){const _0x593aad=_0x54fb3d['getRange']()['getContainedElement']();if(_0x593aad){if(_0x593aad['is']('element','tableCellSuggestion')&&we(_0x593aad)){_0x4f8b94['removeMarker'](_0x54fb3d['name']),_0x5b738f['add'](_0x593aad),_0x40d764=!0x0;const _0x2b5f49=_0x593aad['nextSibling'],_0xb45dfc=_0x593aad['previousSibling'],_0x51f932=_0x2b5f49&&_0x2b5f49['is']('element','tableCellSuggestion'),_0x5aa680=_0xb45dfc&&_0xb45dfc['is']('element','tableCellSuggestion');_0x51f932&&!_0x5b738f['has'](_0x2b5f49)&&_0x5b248c['add'](_0x2b5f49),_0x5aa680&&!_0x5b738f['has'](_0xb45dfc)&&_0x5b248c['add'](_0xb45dfc);}else _0x593aad['is']('element','paragraph')&&_0x593aad['isEmpty']&&(_0x4f8b94['removeMarker'](_0x54fb3d['name']),_0x40d764=!0x0);}}else{if('tablePasteCell'==_0x4f8b94['subType']){if(!_0x4f8b94['attributes']||!_0x4f8b94['attributes']['tablePasteChainId'])continue;const _0xc8ac09=_0x4f8b94['attributes']['markerAttributes'];if(_0xc8ac09&&Object['keys'](_0xc8ac09)['length'])continue;const _0x23c5d1=_0x4f8b94['attributes']['tablePasteChainId'];let _0x1cc7f6=!0x0,_0x578677=!0x0;for(const _0x33a7fa of _0x3dba10)if(_0x33a7fa['subType']&&_0x33a7fa['subType']['startsWith']('tablePaste')){if(!_0x33a7fa['attributes']['tablePasteChainId']){_0x578677=!0x1;break;}if(_0x33a7fa['id']!=_0x4f8b94['id']&&_0x33a7fa['attributes']['tablePasteChainId']==_0x23c5d1){_0x1cc7f6=!0x1;break;}}_0x578677&&_0x1cc7f6&&(_0x4f8b94['removeMarkers'](),_0x40d764=!0x0);}}for(const _0xf5d445 of _0x5b738f)_0x2b7d31['remove'](_0xf5d445);for(const _0x48c4bd of _0x5b248c)_0x2b7d31['unwrap'](_0x48c4bd);return _0x40d764;}),_0xb3ecd6['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x5d19ad,_0x4b6f74)=>_0x50accd(_0x5d19ad),'converterPriority':'high'}),_0xb3ecd6['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x3dce40,_0x1f4364)=>_0x1f4364['options']['showSuggestionHighlights']?_0x50accd(_0x3dce40,!0x1):null,'converterPriority':'high'});const _0x5ea459=_0xb3ecd6['editing']['view'];this['listenTo'](_0x5ea459['document'],'clipboardOutput',(_0x49b3ef,_0x2f0e85)=>{const _0x6ea317=[];for(const _0x2e3e30 of _0x5ea459['createRangeIn'](_0x2f0e85['content'])['getItems']())_0x2e3e30['is']('element','suggestion-td')&&_0x6ea317['push'](_0x2e3e30);_0x5ea459['change'](_0xe95ac=>{for(const _0x523103 of _0x6ea317)_0xe95ac['move'](_0xe95ac['createRangeIn'](_0x523103),_0xe95ac['createPositionBefore'](_0x523103)),_0xe95ac['remove'](_0x523103);});});}}function we(_0x3fe1e3){if(_0x3fe1e3['isEmpty'])return!0x0;const _0x2be738=_0x3fe1e3['getChild'](0x0);return _0x2be738['is']('element','paragraph')&&_0x2be738['isEmpty'];}function ke(_0x214e12,_0x3a5578={},_0xd6f3a0){for(const {isAnchor:_0x65fa3a,cellHeight:_0x1a8002,cellWidth:_0x8e5cfb}of _0xd6f3a0['createTableWalker'](_0x214e12,{'includeAllSlots':!0x0,..._0x3a5578}))if(!_0x65fa3a||0x1!=_0x1a8002||0x1!=_0x8e5cfb)return!0x1;return!0x0;}class Nt extends _0xa2e54a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x45589a=this['editor']['plugins']['get']('TrackChangesEditing');_0x45589a['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x45589a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x45589a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x45589a['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x45589a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x45589a['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0xb8b900,_0x172142){const _0x2f3cc9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x102be2=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x41b4d6=_0x172142['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x17d345=_0x102be2['getColumnGroupElement'](_0x41b4d6);let _0x550c0b=_0x17d345?_0x102be2['getTableColumnsWidths'](_0x17d345):null,_0x20ad36=_0x41b4d6['getAttribute']('tableWidth')||null;const _0x186341=_0x172142['tableWidth']||_0x20ad36,_0x2717e3=_0x172142['columnWidths']||_0x550c0b,_0x5140af=this['editor']['plugins']['get']('Users')['me'];for(const _0x2cb854 of _0x2f3cc9['getSuggestions']()){const _0x547c00=_0x2cb854['getContainedElement']();if('resizeTable'===_0x2cb854['subType']&&_0x547c00===_0x41b4d6){_0x2cb854['author']!==_0x5140af&&_0x2cb854['discard']();const _0x45f5d6=_0x2cb854['data']['commandParams'];_0x20ad36=_0x45f5d6[0x0]['tableWidth'],_0x550c0b=_0x45f5d6[0x0]['columnWidths'];break;}}_0xb8b900({'table':_0x41b4d6,'tableWidth':_0x186341,'columnWidths':_0x2717e3}),_0x2f3cc9['markBlockFormat'](_0x41b4d6,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x20ad36,'columnWidths':_0x550c0b}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x3823b2){if('formatBlock'!=_0x3823b2['type']&&'formatInline'!=_0x3823b2['type'])return;const {data:_0x5cc885}=_0x3823b2;if(_0x5cc885&&'resizeTable'===_0x5cc885['formatGroupId']){const _0x47f958='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x47f958)};}}}class Dt extends _0xa2e54a{['afterInit'](){const _0x39a787=this['editor'];_0x39a787['plugins']['has']('Template')&&_0x39a787['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0xa2e54a{['afterInit'](){const _0x2c50b3=this['editor'];if(!_0x2c50b3['commands']['get']('insertTableOfContents'))return;_0x2c50b3['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x1a1ec6=_0x2c50b3['plugins']['get']('TrackChangesEditing'),_0x30cd49=_0x2c50b3['locale'];_0x1a1ec6['descriptionFactory']['registerElementLabel']('tableOfContents',_0x579e89=>o(_0x30cd49,'ELEMENT_TABLE_OF_CONTENTS',_0x579e89));}}class $t extends _0xa2e54a{['afterInit'](){const _0x20a241=this['editor'];if(!_0x20a241['plugins']['has']('Title'))return;const _0x1be260=_0x20a241['plugins']['get']('TrackChangesEditing');_0x1be260['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x20a241['locale'],'ELEMENT_TITLE')),_0x20a241['model']['document']['registerPostFixer'](_0x44d1d8=>{let _0x4141bb=!0x1;const _0x51010a=Array['from'](_0x20a241['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x6f50b8,data:_0x452b98}of _0x51010a){const {group:_0x1d0f4a}=_0x1be260['_splitMarkerName'](_0x6f50b8);if('suggestion'!==_0x1d0f4a||!_0x452b98['newRange'])continue;const _0x2cbdeb=_0x452b98['newRange'],_0x51430e=_0x2cbdeb['end']['nodeBefore'];if(!_0x51430e||!_0x51430e['is']('element','title-content'))continue;if(!_0x2cbdeb['start']['isTouching'](_0x2cbdeb['end']))continue;const _0x1860b3=_0x20a241['model']['schema']['getNearestSelectionRange'](_0x2cbdeb['end'],'forward');if(_0x1860b3&&_0x1860b3['isCollapsed']){const _0x7eb091=_0x44d1d8['createRange'](_0x2cbdeb['start'],_0x1860b3['start']);_0x7eb091['isEqual'](_0x2cbdeb)||(_0x44d1d8['updateMarker'](_0x6f50b8,{'range':_0x7eb091}),_0x4141bb=!0x0);}_0x4141bb||(_0x44d1d8['removeMarker'](_0x6f50b8),_0x4141bb=!0x0);}return _0x4141bb;});}}class Bt extends _0xa2e54a{['afterInit'](){const _0x2d593a=this['editor'],_0x16a4c1=_0x2d593a['plugins']['get']('TrackChangesEditing');_0x2d593a['plugins']['has']('UndoEditing')&&(_0x16a4c1['enableCommand']('undo'),_0x16a4c1['enableCommand']('redo'));}}class xt extends _0xa2e54a{static get['requires'](){return[It];}['afterInit'](){const _0x501e75=this['editor'];if(!_0x501e75['plugins']['has']('TableCaptionEditing'))return;_0x501e75['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0xa2e54a{['tableProperties'];['tableCellProperties'];constructor(_0x3ab97d){super(_0x3ab97d),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 _0x34953b=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x1dce01 of this['tableProperties'])_0x34953b['enableCommand'](_0x1dce01,(_0x34a669,_0x28b981)=>{const _0x284e9d=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x1dce01,[_0x284e9d],this['tableProperties'],'tableProperties',_0x34a669,_0x28b981);});_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x34953b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa92165,_0x41d420)=>this['handleDiscardAction'](this['tableProperties'],_0xa92165,_0x41d420)),_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2fdfbc of this['tableCellProperties'])_0x34953b['enableCommand'](_0x2fdfbc,(_0x21e719,_0x4b227c)=>{const _0x3401fd=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2fdfbc,_0x3401fd,this['tableCellProperties'],'tableCellProperties',_0x21e719,_0x4b227c);});_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x34953b['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0xb4af4b,_0x73c140)=>this['handleDiscardAction'](this['tableCellProperties'],_0xb4af4b,_0x73c140)),_0x34953b['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x34953b['descriptionFactory']['registerDescriptionCallback'](_0x21bd43=>this['handleSuggestionDescription'](_0x21bd43));}['_handlePropertyChange'](_0xf0a3f6,_0x4c15ef,_0x468eae,_0x51f64d,_0x4352ef,_0x4163fa){const _0x5423d9=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x4163fa['batch'],()=>{for(const _0x5d2514 of _0x4c15ef){if(this['_getSuggestion'](_0x5d2514,_0x51f64d))_0x4352ef(_0x4163fa);else{const _0x2e602f={};for(const _0x585105 of _0x468eae){const _0x57de2e=_0x5d2514['getAttribute'](_0x585105);void 0x0!==_0x57de2e&&(_0x2e602f[_0x585105]=_0x57de2e);}_0x4352ef(_0x4163fa),_0x5423d9['markBlockFormat'](_0x5d2514,{'commandParams':[_0x2e602f]},[],_0x51f64d);}}});}['handleDiscardAction'](_0x2fdb87,_0x2e482a,_0x31af3e){const _0x130447=_0x2e482a[0x0]['start']['nodeAfter'],_0x41ea91=_0x31af3e['commandParams'][0x0];this['editor']['model']['change'](_0x1a640c=>{for(const _0x2b7d69 of _0x2fdb87)void 0x0!==_0x41ea91[_0x2b7d69]?_0x1a640c['setAttribute'](_0x2b7d69,_0x41ea91[_0x2b7d69],_0x130447):_0x1a640c['removeAttribute'](_0x2b7d69,_0x130447);});}['handleSuggestionDescription'](_0x18fd07){if(_0x18fd07['data'])switch(_0x18fd07['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'](_0x2146a6,_0x5351a0){const _0x3e1617=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x449138 of _0x3e1617['getSuggestions']({'skipNotAttached':!0x0})){const _0x219ad6=_0x449138['getContainedElement']();if(_0x449138['subType']===_0x5351a0&&_0x219ad6===_0x2146a6)return _0x449138;}return null;}}const m='$elementName';class p extends _0xa2e54a{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x4e6be2,_0x4e0adf,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x1e6499){function _0x5ccda4(_0x5d6464){return _0x5d6464['map'](_0x2e3b69=>String['fromCharCode'](_0x2e3b69))['join']('');}super(_0x1e6499),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x4d01f0,_0x90970,_0x48195d,_0x5c66ff)=>{this['_model']['change'](()=>{for(const _0xf5ccab of[..._0x5c66ff,..._0x48195d])this['_model']['markers']['has'](_0xf5ccab)&&_0x1e6499['editing']['reconvertMarker'](_0xf5ccab);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x1e6499['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(),_0x1e6499['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1e6499['config']['get']('trackChanges.trackFormatChanges'),_0x1e6499['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1e6499['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x1e6499,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x5ccda4([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x5ccda4([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x34]);}['init'](){const _0x29975d=this['editor'],_0x3b4a41=(_0x100cc8,_0x42e31d)=>{if('attribute'!=_0x100cc8)return'ck-suggestion-marker-'+_0x100cc8;const _0x184aa8=_0x42e31d['split']('|')[0x0];return this['_isBlockAttribute'](_0x184aa8)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x29975d['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5ee3a0=>{const {id:_0x1bac5b,type:_0x274d8f,subType:_0x3c9e19}=this['_splitMarkerName'](_0x5ee3a0['markerName']),_0x2e2e63=['ck-suggestion-marker',_0x3b4a41(_0x274d8f,_0x3c9e19)];let _0x51fe56=0xbb8;return this['activeMarkers']['includes'](_0x5ee3a0['markerName'])&&(_0x2e2e63['push']('ck-suggestion-marker--active'),_0x51fe56=0xbc2),'deletion'==_0x274d8f&&(_0x51fe56+=0x5),{'classes':_0x2e2e63,'attributes':{'data-suggestion':_0x1bac5b},'priority':_0x51fe56};}}),_0x29975d['conversion']['for']('dataDowncast')['add'](_0x4298a3=>{_0x4298a3['on']('addMarker:suggestion',(_0x11a886,_0xd7d12d,_0x5a90ac)=>{if(!_0x5a90ac['options']['showSuggestionHighlights'])return;const _0x463173=_0xd7d12d['item'];if(!_0x463173)return;const _0x5ef1d1=_0x5a90ac['mapper']['toViewElement'](_0x463173);_0x29975d['model']['schema']['isObject'](_0x463173)&&_0x5ef1d1&&!_0x5ef1d1['getCustomProperty']('widget')&&_0x5ef1d1['is']('containerElement')&&_0x3eba9f(_0x5ef1d1,_0x5a90ac['writer']);},{'priority':'high'});}),_0x29975d['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x2ffdab,_0x4c047d)=>{if(!_0x4c047d['options']['showSuggestionHighlights'])return null;const {type:_0x535e49,subType:_0x1af1be}=this['_splitMarkerName'](_0x2ffdab['markerName']);return{'classes':['ck-suggestion-marker',_0x3b4a41(_0x535e49,_0x1af1be)],'priority':0xbb8};}});const _0x299b1e=({showActiveMarkers:_0x4c79a9=!0x0,isAttributeSuggestion:_0x2ebc41=!0x1}={})=>(_0x54ac0e,_0x1fd023,_0x5d3f68)=>{if(!_0x1fd023['item'])return;const {id:_0x398779}=this['_splitMarkerName'](_0x1fd023['markerName']);if(_0x2ebc41){const _0x5f1e9c=this['_suggestions']['get'](_0x398779),_0x4befb7=this['_getAttributeKey'](_0x5f1e9c);if(!this['_isBlockAttribute'](_0x4befb7))return;}if(_0x1fd023['item']['is']('selection'))return void _0x5d3f68['consumable']['consume'](_0x1fd023['item'],_0x54ac0e['name']);const _0x5745f3=_0x5d3f68['mapper']['toViewElement'](_0x1fd023['item']);if(_0x1fd023['item']['is']('element')&&_0x29975d['model']['schema']['isBlock'](_0x1fd023['item'])&&!_0x5745f3['getCustomProperty']('addHighlight')){_0x5d3f68['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5745f3),_0x5d3f68['writer']['setAttribute']('data-suggestion',_0x398779,_0x5745f3),_0x5d3f68['mapper']['bindElementToMarker'](_0x5745f3,_0x1fd023['markerName']),_0x4c79a9&&(this['activeMarkers']['includes'](_0x1fd023['markerName'])?_0x5d3f68['writer']['addClass']('ck-suggestion-marker--active',_0x5745f3):_0x5d3f68['writer']['removeClass']('ck-suggestion-marker--active',_0x5745f3));for(const _0x3b64e8 of _0x29975d['model']['createRangeIn'](_0x1fd023['item'])['getItems']())_0x5d3f68['consumable']['consume'](_0x3b64e8,_0x54ac0e['name']);_0x5d3f68['consumable']['consume'](_0x1fd023['item'],_0x54ac0e['name']);}};_0x29975d['conversion']['for']('dataDowncast')['add'](_0x38112e=>{_0x38112e['on']('addMarker:suggestion:formatBlock',(_0x4b0cee,_0x475644,_0x11f32d)=>{_0x11f32d['options']['showSuggestionHighlights']&&_0x299b1e({'showActiveMarkers':!0x1})(_0x4b0cee,_0x475644,_0x11f32d);},{'priority':'highest'});}),_0x29975d['conversion']['for']('dataDowncast')['add'](_0x598dba=>{_0x598dba['on']('addMarker:suggestion:attribute',(_0x49b889,_0xdddb1b,_0x1751d9)=>{_0x1751d9['options']['showSuggestionHighlights']&&_0x299b1e({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x49b889,_0xdddb1b,_0x1751d9);},{'priority':'highest'});}),_0x29975d['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x425377,_0x4e91d7)=>_0x4e91d7['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x425377['substr'](0xb)}}),_0x29975d['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x3b099d,{writer:_0x35a543})=>{let _0x3c99f5='suggestion:'+_0x3b099d['getAttribute']('suggestion-type')+':'+_0x3b099d['getAttribute']('id');return _0x3b099d['getAttribute']('marker-count')&&(_0x3c99f5+=':'+_0x3b099d['getAttribute']('marker-count')),_0x35a543['createElement']('$marker',{'data-name':_0x3c99f5});}}),_0x29975d['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x29975d['conversion']['for']('editingDowncast')['add'](_0x5d1a1d=>{_0x5d1a1d['on']('addMarker:suggestion:formatBlock',_0x299b1e(),{'priority':'high'});}),_0x29975d['conversion']['for']('editingDowncast')['add'](_0x58e0da=>{_0x58e0da['on']('addMarker:suggestion:attribute',_0x299b1e({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x29975d['conversion']['for']('editingDowncast')['add'](_0x198335=>{_0x198335['on']('removeMarker:suggestion:formatBlock',(_0xfbf252,_0x490212,_0x4e79e7)=>{const _0x2ac2a7=_0x4e79e7['mapper']['markerNameToElements'](_0x490212['markerName']);if(_0x2ac2a7){for(const _0x3727b3 of _0x2ac2a7)_0x3727b3['getCustomProperty']('addHighlight')||(_0x4e79e7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x3727b3),_0x4e79e7['writer']['removeAttribute']('data-suggestion',_0x3727b3),_0x4e79e7['mapper']['unbindElementFromMarkerName'](_0x3727b3,_0x490212['markerName']));}},{'priority':'high'});}),_0x29975d['conversion']['for']('editingDowncast')['add'](_0x20b13f=>{_0x20b13f['on']('removeMarker:suggestion:attribute',(_0x30ddaf,_0xa978f,_0x34f12c)=>{const _0x2a2957=_0x34f12c['mapper']['markerNameToElements'](_0xa978f['markerName']);if(!_0x2a2957)return;const {id:_0x33d58a}=this['_splitMarkerName'](_0xa978f['markerName']),_0x3c1eb4=this['_suggestions']['get'](_0x33d58a),_0x5efd40=this['_getAttributeKey'](_0x3c1eb4);if(this['_isBlockAttribute'](_0x5efd40)){for(const _0x333a9c of _0x2a2957)_0x333a9c['getCustomProperty']('addHighlight')||(_0x34f12c['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x333a9c),_0x34f12c['writer']['removeAttribute']('data-suggestion',_0x333a9c),_0x34f12c['mapper']['unbindElementFromMarkerName'](_0x333a9c,_0xa978f['markerName']));}},{'priority':'high'});}),_0x29975d['model']['document']['registerPostFixer'](_0x5022a0=>{let _0x2d8f5b=!0x1;const _0x522853=Array['from'](_0x29975d['model']['document']['differ']['getChangedMarkers']()),_0x39f978=new Set();for(const {name:_0x5a9c4c,data:_0x57c3c5}of _0x522853){const {group:_0x3c6709,type:_0x79936b,subType:_0x1901d9,id:_0x20c30a}=this['_splitMarkerName'](_0x5a9c4c);if('suggestion'!==_0x3c6709)continue;const _0xfd670f=this['_suggestions']['get'](_0x20c30a);if(null!=_0x57c3c5['newRange']){'formatInline'==_0x79936b&&(_0x2d8f5b=_0x2d8f5b||Ut(_0x57c3c5['newRange'],_0x5a9c4c,_0x5022a0,_0x29975d['model']['schema']));const _0x343534='attribute'==_0x79936b&&this['_isBlockAttribute'](_0x1901d9['split']('|')[0x0]);if(_0x57c3c5['newRange']['isCollapsed']||'$graveyard'==_0x57c3c5['newRange']['root']['rootName']||'formatBlock'==_0x79936b&&!Ft(_0x57c3c5['newRange'])||_0x343534&&!Ft(_0x57c3c5['newRange'])||'deletion'==_0x79936b&&!(!Vt(_0x41e7b9=_0x57c3c5['newRange'])&&!function(_0x5b0630){return _0x5b0630['start']['parent']==_0x5b0630['end']['nodeBefore']&&_0x5b0630['start']['isAtEnd'];}(_0x41e7b9)))_0x5022a0['removeMarker'](_0x5a9c4c),_0x2d8f5b=!0x0;else{if(!_0xfd670f||!_0xfd670f['isInContent'])continue;if(_0x57c3c5['newRange']&&_0x57c3c5['oldRange']&&_0x57c3c5['newRange']['isEqual'](_0x57c3c5['oldRange']))continue;_0x39f978['add'](_0xfd670f);}}}var _0x41e7b9;return _0x39f978['size']>0x0&&(_0x2d8f5b=!!this['_joinWithAdjacentSuggestions'](_0x39f978)||_0x2d8f5b),_0x2d8f5b;}),_0x29975d['model']['document']['registerPostFixer'](_0x2f7f1e=>{let _0x2addab=!0x1;for(const _0x5906b3 of _0x29975d['model']['document']['differ']['getChanges']())if('insert'==_0x5906b3['type'])for(const _0x4abb33 of this['_suggestions']['values']()){if(_0x4abb33['isMultiRange']||!_0x4abb33['isInContent'])continue;const _0x4203fe='formatBlock'==_0x4abb33['type'],_0x4b2ff3=this['_getAttributeKey'](_0x4abb33),_0x508d45=_0x4b2ff3&&this['_isBlockAttribute'](_0x4b2ff3);if(!_0x4203fe&&!_0x508d45)continue;const _0x5bba18=_0x4abb33['getFirstRange']();if(_0x5bba18['start']['parent']!=_0x5bba18['end']['parent']&&!_0x5bba18['end']['isAtEnd']){const _0x59388f=_0x29975d['model']['createPositionAt'](_0x5bba18['start']['nodeAfter'],'end'),_0x361818=_0x29975d['model']['createRange'](_0x5bba18['start'],_0x59388f);_0x2f7f1e['updateMarker'](_0x4abb33['getFirstMarker'](),{'range':_0x361818}),_0x2addab=!0x0;}}return _0x2addab;}),_0x29975d['model']['document']['registerPostFixer'](_0x2a7e90=>this['_processAttributeChanges'](_0x2a7e90)),_0x29975d['model']['document']['registerPostFixer'](_0x2f216a=>!_0x2f216a['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x2f216a)),_0x29975d['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x29975d['model']['document']['on']('change:data',(_0x372bb1,_0x33bf65)=>{if(!_0x33bf65['isLocal']||_0x33bf65['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x203a26=_0x29975d['model']['document']['differ']['getChanges']();if(0x0==_0x203a26['length'])return;const _0x15e8fc=[],_0xcbe6e5=_0x203a26['filter'](_0x505ec5=>'attribute'==_0x505ec5['type']),_0x18a1c5=_0x203a26['filter'](_0x367fb6=>'insert'==_0x367fb6['type']&&'$text'!=_0x367fb6['name']);for(const _0x65d2f3 of _0xcbe6e5)this['_isRegisteredAttribute'](_0x65d2f3['attributeKey'])&&_0x15e8fc['push']({'key':_0x65d2f3['attributeKey'],'newValue':_0x65d2f3['attributeNewValue'],'oldValue':_0x65d2f3['attributeOldValue'],'range':Pt(_0x65d2f3['range'],_0x29975d['model'])});for(const _0x4f962a of _0x18a1c5){if('rename'!=_0x4f962a['action']&&'refresh'!=_0x4f962a['action'])continue;const _0xa71c6f=Lt(_0x4f962a['position']['nodeAfter'],_0x29975d['model']),_0x1bfeaa=_0x4f962a['before'];'rename'==_0x4f962a['action']&&_0x15e8fc['push']({'key':m,'newValue':_0x4f962a['name'],'oldValue':_0x1bfeaa['name'],'range':_0xa71c6f});for(const [_0x36348c,_0x587e64]of _0x1bfeaa['attributes']){if(!this['_isRegisteredAttribute'](_0x36348c))continue;const _0x1f7c30=_0x4f962a['attributes']['get'](_0x36348c);_0x587e64!==_0x1f7c30&&_0x15e8fc['push']({'key':_0x36348c,'newValue':_0x1f7c30,'oldValue':_0x587e64,'range':_0xa71c6f});}for(const [_0xd669e1,_0x3fa5e2]of _0x4f962a['attributes'])this['_isRegisteredAttribute'](_0xd669e1)&&(_0x1bfeaa['attributes']['has'](_0xd669e1)||_0x15e8fc['push']({'key':_0xd669e1,'newValue':_0x3fa5e2,'oldValue':null,'range':_0xa71c6f}));}0x0!=_0x15e8fc['length']&&_0x29975d['model']['enqueueChange'](_0x33bf65,_0x57242d=>{const _0x17feb8=_0x2c01d2();for(const {range:_0x2ff3c8,key:_0x40a159,oldValue:_0x8c3c79,newValue:_0xda0ff6}of _0x15e8fc)this['markAttributeChange'](_0x2ff3c8,_0x40a159,_0x8c3c79,_0xda0ff6,{'groupId':_0x17feb8});this['_reduceExistingSuggestions'](_0x57242d,_0x15e8fc);});},{'priority':'lowest'}),_0x29975d['model']['markers']['on']('update:suggestion',(_0x507ad7,_0x38b55b,_0x2cf442)=>{if(null==_0x2cf442){const {id:_0xeb4ffa}=this['_splitMarkerName'](_0x38b55b['name']),_0x124736=this['_suggestions']['get'](_0xeb4ffa);_0x124736&&_0x124736['addMarkerName'](_0x38b55b['name']);}}),_0x29975d['model']['document']['on']('change:data',()=>{const _0x2f4bf9=Array['from'](_0x29975d['model']['document']['differ']['getChangedMarkers']())['filter'](_0x55c764=>'suggestion'===this['_splitMarkerName'](_0x55c764['name'])['group']);if(0x0===_0x2f4bf9['length'])return;_0x2f4bf9['sort']((_0xe89a62,_0x5dc84e)=>{const _0x50fbfc=_0xe89a62['data']['oldRange'],_0x59b95b=_0x5dc84e['data']['oldRange'];return null===_0x50fbfc&&null===_0x59b95b?0x0:null===_0x50fbfc&&null!==_0x59b95b?-0x1:null!==_0x50fbfc&&null===_0x59b95b?0x1:_0x50fbfc['start']['isBefore'](_0x59b95b['start'])?-0x1:0x1;});const _0x7d6402=new Set(),_0x18e3d9=new Set();for(const {name:_0x320278,data:_0x21c7ef}of _0x2f4bf9){const {id:_0x5dd226}=this['_splitMarkerName'](_0x320278);if(null===_0x21c7ef['oldRange']){const _0x1b76dd=this['_handleNewSuggestionMarker'](_0x320278);_0x18e3d9['add'](_0x1b76dd);}else{const _0x125437=this['_suggestions']['get'](_0x5dd226);null!==_0x21c7ef['newRange']||_0x125437['isInContent']?(_0x7d6402['add'](_0x125437['head']),_0x18e3d9['add'](_0x125437)):this['_removeSuggestion'](_0x125437);}}_0x18e3d9['size']>0x0&&this['_refreshSuggestionsChain'](_0x18e3d9);for(const _0x138b1c of _0x7d6402)this['fire']('suggestionChanged',_0x138b1c);}),_0x29975d['model']['on']('applyOperation',(_0x13b8bb,_0x18dc66)=>{const _0x109163=_0x18dc66[0x0];if(!this['_suggestions']['size'])return;if(!_0x109163['isDocumentOperation'])return;if(_0x109163['batch']['isUndo']||!_0x109163['batch']['isLocal'])return;let _0x1701b2,_0xd9497d;switch(_0x109163['type']){case'insert':_0x1701b2=_0x29975d['model']['createPositionAt'](_0x109163['position']),_0xd9497d=_0x1701b2['getShiftedBy'](_0x109163['howMany']);break;case'split':_0x1701b2=_0x29975d['model']['createPositionAt'](_0x109163['splitPosition']),_0xd9497d=_0x29975d['model']['createPositionAt'](_0x109163['moveTargetPosition']);break;case'move':_0x1701b2=_0x29975d['model']['createPositionAt'](_0x109163['targetPosition']),_0xd9497d=_0x1701b2['getShiftedBy'](_0x109163['howMany']);break;default:return;}const _0x5c2205=_0x29975d['model']['createRange'](_0x1701b2,_0xd9497d);_0x29975d['model']['change'](()=>{for(const {suggestion:_0x126e87,meta:_0x46b4e1}of this['_findSuggestions'](_0x5c2205)){if(_0x126e87['isMultiRange'])continue;if('formatInline'==_0x126e87['type'])continue;const _0x382767=this['_getAttributeKey'](_0x126e87);if(_0x382767&&this['_isBlockAttribute'](_0x382767)&&'split'!=_0x109163['type'])continue;const _0xc7d051=_0x126e87['data']&&_0x126e87['data']['multipleBlocks'];('formatBlock'!=_0x126e87['type']||'split'==_0x109163['type']&&!_0xc7d051)&&(_0x46b4e1['containsRangeInObject']||'insertion'==_0x126e87['type']&&_0x46b4e1['isOwn']||_0x126e87['getFirstRange']()['containsRange'](_0x5c2205)&&this['_breakSuggestionMarker'](_0x126e87,_0x1701b2,_0xd9497d));}});},{'priority':'lowest'}),_0x29975d['model']['on']('deleteContent',(_0x294b84,_0x575807)=>{const _0x531793=_0x575807[0x0],_0x36527d=_0x575807[0x1];if(_0x36527d&&_0x36527d['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x531793['isCollapsed'])return;const _0x40f3a7=_0x29975d['model']['schema'],{start:_0x2d1d43,end:_0x21d649}=_0x531793['getFirstRange'](),_0x25cd42=_0x2d1d43['nodeAfter']&&_0x40f3a7['isLimit'](_0x2d1d43['nodeAfter'])?null:_0x40f3a7['getNearestSelectionRange'](_0x2d1d43,'forward'),_0x436af0=_0x21d649['nodeBefore']&&_0x40f3a7['isLimit'](_0x21d649['nodeBefore'])?null:_0x40f3a7['getNearestSelectionRange'](_0x21d649,'backward'),_0x4e6969=_0x29975d['model']['createRange'](_0x25cd42?_0x25cd42['start']:_0x2d1d43,_0x436af0?_0x436af0['end']:_0x21d649);_0x29975d['model']['change'](_0x39c199=>{this['markDeletion'](_0x4e6969);const _0x4d4d83=_0x29975d['model']['schema']['getNearestSelectionRange'](_0x4e6969['start']);_0x531793['is']('documentSelection')?_0x39c199['setSelection'](_0x4d4d83):_0x531793['setTo'](_0x4d4d83);}),_0x294b84['stop']();},{'priority':_0x2e27fb['normal']+0xa}),_0x29975d['model']['on']('insertContent',(_0x30ae33,_0x31632a)=>{const _0x2f8b99=_0x31632a[_0x31632a['length']-0x1];_0x2f8b99&&_0x2f8b99['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x29975d['model']['change'](()=>{let _0x31f123=_0x29975d['model']['insertContent'](_0x31632a[0x0],_0x31632a[0x1],_0x31632a[0x2],{'forceDefaultExecution':!0x0});if(!_0x31f123)return;_0x30ae33['return']=_0x31f123['clone']();const _0x1047fb=_0x31f123['end']['nodeBefore'],_0x25d915=_0x29975d['model']['schema'];_0x1047fb&&_0x25d915['isBlock'](_0x1047fb)&&!_0x25d915['isObject'](_0x1047fb)&&(_0x31f123=_0x29975d['model']['createRange'](_0x31f123['start'],_0x29975d['model']['createPositionAt'](_0x1047fb,'end'))),this['markInsertion'](_0x31f123);}),_0x30ae33['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x1a16ec=new x(_0x29975d,this['_suggestions']);_0x29975d['commands']['add']('acceptSuggestion',_0x1a16ec),this['enableCommand']('acceptSuggestion');const _0x5e772b=new R(_0x29975d,this['_suggestions']);_0x29975d['commands']['add']('discardSuggestion',_0x5e772b),this['enableCommand']('discardSuggestion'),_0x29975d['commands']['add']('acceptAllSuggestions',new E(_0x29975d,_0x1a16ec,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x29975d['commands']['add']('discardAllSuggestions',new E(_0x29975d,_0x5e772b,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x29975d['commands']['add']('acceptSelectedSuggestions',new O(_0x29975d,_0x1a16ec,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x29975d['commands']['add']('discardSelectedSuggestions',new O(_0x29975d,_0x5e772b,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x2a0128=_0x29975d['plugins']['get']('CommentsRepository');this['listenTo'](_0x2a0128,'addComment',(_0x10a110,{threadId:_0x496328})=>{const _0x118836=this['_suggestions']['get'](_0x496328);_0x118836&&_0x118836['commentThread']&&0x1===_0x118836['commentThread']['length']&&this['_updateSuggestionData'](_0x496328,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x2a0128,'removeComment',(_0x405e98,{threadId:_0xec73e4})=>{const _0x18329f=this['_suggestions']['get'](_0xec73e4);_0x18329f&&_0x18329f['commentThread']&&!_0x18329f['commentThread']['length']&&this['_updateSuggestionData'](_0xec73e4,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x251f9a){if(this['_adapter'])throw new _0x32e29e('track-changes-adapter-already-set',this);this['_adapter']=_0x251f9a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x55a05c=!0x1,toJSON:_0x385009=!0x1}={}){const _0x45aac7=[];for(const _0x2c843a of this['_suggestions']['values']())_0x55a05c&&!_0x2c843a['isInContent']||_0x45aac7['push'](_0x2c843a);return _0x385009?_0x45aac7['map'](_0x5cdefd=>_0x5cdefd['toJSON']()):_0x45aac7;}['getSuggestion'](_0x3f3a27){const _0x557f61=this['_suggestions']['get'](_0x3f3a27);if(!_0x557f61)throw new _0x32e29e('track-changes-suggestion-not-found',this);return _0x557f61;}['hasSuggestion'](_0x50b27a){return this['_suggestions']['has'](_0x50b27a);}['addSuggestionData'](_0x28a365){const {authorId:_0x35e2ab,id:_0x578b44,attributes:_0x327dc3}=_0x28a365,[_0x1920b4,_0x550924]=_0x28a365['type']['split'](':'),_0x20070e=this['_suggestions']['get'](_0x578b44)||this['_createSuggestion'](_0x1920b4,_0x550924,_0x578b44,_0x35e2ab,_0x327dc3);if(this['_addThreadToSuggestion'](_0x20070e),this['_checkSuggestionCorrectness'](_0x20070e,_0x1920b4,_0x550924||null,_0x35e2ab),_0x20070e['createdAt']=_0x28a365['createdAt'],_0x20070e['_isDataLoaded']=!0x0,_0x327dc3&&_0x327dc3['@external']){const _0x43c67e=_0x327dc3['@external'],_0x3e7a42=this['_getExternalAuthor'](_0x43c67e['authorName']);_0x20070e['authoredAt']=_0x43c67e['createdAt'],_0x20070e['author']=_0x3e7a42,_0x20070e['isExternal']=!0x0;}else _0x20070e['authoredAt']=_0x28a365['createdAt'];switch(_0x28a365['data']&&(_0x20070e['data']=_0x28a365['data']),_0x28a365['attributes']&&(_0x20070e['attributes']=_0x28a365['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x20070e['_saved']=!0x0),this['_suggestionState']['get'](_0x20070e)){case'notReady':this['_suggestionState']['set'](_0x20070e,'dataReady');break;case'markerReady':_0x20070e['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x20070e])),this['_refreshSuggestionsChain'](new Set([_0x20070e])),this['_suggestionState']['set'](_0x20070e,'ready'),this['fire']('suggestionLoaded',_0x20070e)):this['_suggestionState']['set'](_0x20070e,'removed');}return _0x20070e;}['acceptSuggestion'](_0x5a0ebb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x312cd3 of _0x5a0ebb['getAllAdjacentSuggestions']())_0x312cd3['accept']();});});}['discardSuggestion'](_0xc0808f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x264191 of _0xc0808f['getAllAdjacentSuggestions']())_0x264191['discard']();});});}['enableCommand'](_0x2ea75b,_0x21818e){const _0x4dac02=this['editor']['commands']['get'](_0x2ea75b);if(!_0x4dac02)throw new _0x32e29e('track-changes-command-not-found',this,{'commandName':_0x2ea75b});if(this['_enabledCommands']['has'](_0x4dac02))throw new _0x32e29e('track-changes-enable-command-twice',this,{'commandName':_0x2ea75b});this['_enabledCommands']['add'](_0x4dac02),_0x21818e&&_0x4dac02['on']('execute',(_0x5ab678,_0x3b72b)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x3b72b['length']>0x0&&_0x3b72b[_0x3b72b['length']-0x1]&&_0x3b72b[_0x3b72b['length']-0x1]['forceDefaultExecution']?_0x3b72b['pop']():(_0x5ab678['return']=_0x21818e((..._0x521da7)=>_0x4dac02['execute'](..._0x521da7,{'forceDefaultExecution':!0x0}),..._0x3b72b),_0x5ab678['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x460b34){let _0x22942f,_0x5e819c;const _0x594909=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x22942f=_0x460b34();}catch(_0xbbd3d4){_0x5e819c=_0xbbd3d4;}return _0x594909||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x5e819c&&_0x32e29e['rethrowUnexpectedError'](_0x5e819c,this),_0x22942f;}['markInsertion'](_0x373dea,_0x326f17=null,_0x3ce8cc={}){if(_0x373dea['isCollapsed'])return null;const _0x339810=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x316f7e,meta:_0x12c73e}of this['_findSuggestions'](_0x373dea,'insertion'))if(_0x12c73e['isOwn']){if(!_0x12c73e['isNextTo']){if(_0x12c73e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x316f7e,_0x3ce8cc))continue;return _0x316f7e;}if(qt(_0x316f7e,_0x3ce8cc))return _0x316f7e;this['_breakSuggestionMarker'](_0x316f7e,_0x373dea['start'],_0x373dea['end']);break;}if(_0x326f17==_0x316f7e['subType']&&qt(_0x316f7e,_0x3ce8cc)){const _0x2154d2=_0x316f7e['getFirstRange']();return _0x2154d2['start']['isEqual'](_0x373dea['end'])?this['_setSuggestionRange'](_0x316f7e,this['_model']['createRange'](_0x373dea['start'],_0x2154d2['end'])):this['_setSuggestionRange'](_0x316f7e,this['_model']['createRange'](_0x2154d2['start'],_0x373dea['end'])),_0x316f7e;}}const _0xc00c1e=_0x2c01d2(),_0x3e34be=_0x339810['id'],_0x4a2bbc=_0x326f17?'insertion:'+_0x326f17:'insertion',_0x5e45b3=this['_setSuggestionData']({'id':_0xc00c1e,'type':_0x4a2bbc,'createdAt':new Date(),'authorId':_0x3e34be,'attributes':_0x3ce8cc});return this['_addSuggestionMarker'](_0x4a2bbc,_0xc00c1e,_0x3e34be,_0x373dea),_0x5e45b3;}['markMultiRangeInsertion'](_0x3be755,_0x32289e='multi',_0x36ba17={}){const _0x4b1c37=this['editor']['plugins']['get']('Users')['me'],_0xd0e0f0=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x32289e,'join');for(const _0x4f0049 of this['getSuggestions']())if(_0x4f0049['author']['id']==_0x4b1c37['id']&&'insertion'==_0x4f0049['type']&&_0x4f0049['subType']==_0x32289e&&qt(_0x4f0049,_0x36ba17)&&(_0xd0e0f0(_0x4f0049['getRanges'](),_0x3be755)||_0xd0e0f0(_0x3be755,_0x4f0049['getRanges']()))){for(const _0x22a0db of _0x3be755)_0x4f0049['addRange'](_0x22a0db);return _0x4f0049;}for(const {suggestion:_0x38ca99,meta:_0x33e176}of this['_findSuggestions'](_0x3be755,'insertion')){if(!_0x33e176['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x33e176['containsRangeInObject'])continue;if(!qt(_0x38ca99,_0x36ba17))continue;let _0x54ba9e=!0x0;for(const _0x415926 of _0x38ca99['getRanges']())for(const _0x512e82 of _0x3be755)if(!_0x415926['containsRange'](_0x512e82)){_0x54ba9e=!0x1;break;}if(_0x54ba9e)return _0x38ca99;}const _0xc65406=_0x2c01d2(),_0x1cf577=_0x4b1c37['id'],_0x44cefe='insertion:'+_0x32289e,_0x2828f3=this['_setSuggestionData']({'id':_0xc65406,'type':_0x44cefe,'createdAt':new Date(),'authorId':_0x1cf577,'attributes':_0x36ba17});for(const _0x23377f of _0x3be755)this['_addSuggestionMarker'](_0x44cefe,_0xc65406,_0x1cf577,_0x23377f,u['getMultiRangeId']());return _0x2828f3;}['markInlineFormat'](_0x2a858a,_0x3b6e9e,_0x11c01e=null,_0x25ccce={}){if(_0x11c01e=_0x11c01e||Gt(_0x3b6e9e),_0x2a858a['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x27cf15=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11c01e,'accept');return this['forceDefaultExecution'](()=>_0x27cf15([_0x2a858a],_0x3b6e9e,_0x25ccce)),null;}const _0xec5a21=this['editor']['plugins']['get']('Users')['me'],_0x2d5119=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x124fc1,meta:_0x1936a3}of this['_findSuggestions'](_0x2a858a,'insertion'))_0x1936a3['isOwn']&&!_0x1936a3['isInsideObject']&&_0x2d5119['push'](..._0x124fc1['getRanges']());}const _0x5853ca=function(_0x3705ff,_0xc6935f){const _0x4bba81=[];for(const _0x41884b of _0xc6935f){const _0x5bf770=_0x3705ff['getIntersection'](_0x41884b);_0x5bf770&&_0x4bba81['push'](_0x5bf770);}return _0x4bba81;}(_0x2a858a,_0x2d5119),_0x559ce8=function(_0x5e1d5b,_0x4a3b26){const _0x1f6c18=[_0x5e1d5b];for(const _0xd6b094 of _0x4a3b26){let _0x580557=0x0;for(;_0x580557<_0x1f6c18['length'];){const _0xb37f43=_0x1f6c18[_0x580557]['getDifference'](_0xd6b094);_0x1f6c18['splice'](_0x580557,0x1,..._0xb37f43),_0x580557+=_0xb37f43['length'];}}return _0x1f6c18;}(_0x2a858a,_0x2d5119);_0x5853ca['length']&&this['_model']['change'](()=>{for(const _0x43509d of _0x5853ca){const _0x17c471=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x11c01e,'accept');this['forceDefaultExecution'](()=>_0x17c471([_0x43509d],_0x3b6e9e,_0x25ccce));}});for(const _0x4bff92 of _0x559ce8){let _0xfd6778=null,_0x2d6e50=_0x4bff92['start'],_0x197df8=_0x4bff92['end'];for(const {suggestion:_0x474818,meta:_0x40c029}of this['_findSuggestions'](_0x4bff92,'formatInline')){if(!_0x40c029['isOwn'])continue;if(_0x474818['subType']!=_0x11c01e)continue;if(!qt(_0x474818,_0x25ccce))continue;const _0x4bfa2c=_0x474818['getFirstRange']();if(_0x4bfa2c['containsRange'](_0x4bff92,!0x0))return null;_0x2d6e50=_0x2d6e50['isBefore'](_0x4bfa2c['start'])?_0x2d6e50:_0x4bfa2c['start'],_0x197df8=_0x197df8['isAfter'](_0x4bfa2c['end'])?_0x197df8:_0x4bfa2c['end'],_0xfd6778?_0x4bfa2c['start']['isBefore'](_0xfd6778['getFirstRange']()['start'])?(_0xfd6778['removeMarkers'](),_0xfd6778=_0x474818):_0x474818['removeMarkers']():_0xfd6778=_0x474818;}const _0x59d798=this['_model']['createRange'](_0x2d6e50,_0x197df8);if(_0xfd6778)this['_setSuggestionRange'](_0xfd6778,_0x59d798);else{const _0x1b4486=_0x2c01d2(),_0x56a72a=_0xec5a21['id'];this['_setSuggestionData']({'id':_0x1b4486,'type':'formatInline:'+_0x11c01e,'data':_0x3b6e9e,'createdAt':new Date(),'authorId':_0x56a72a,'attributes':_0x25ccce}),this['_addSuggestionMarker']('formatInline:'+_0x11c01e,_0x1b4486,_0x56a72a,_0x59d798);}}return null;}['markBlockFormat'](_0x5e8e19,_0x1d2554,_0x2c923a=[],_0x19e95a=null,_0x3906e2={}){_0x1d2554['formatGroupId']||(_0x1d2554['formatGroupId']=_0x1d2554['commandName']),_0x1d2554['multipleBlocks']=_0x5e8e19['is']('range'),_0x19e95a=_0x19e95a||Gt(_0x1d2554);const _0x49f351=_0x2c923a['map'](_0x12b237=>Lt(_0x12b237,this['_model'])),_0xca00fa=_0x5e8e19['is']('range')?_0x5e8e19:Lt(_0x5e8e19,this['_model']);if('never'===this['_trackFormatChanges']){const _0x59c64b=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19e95a,'accept');return this['forceDefaultExecution'](()=>_0x59c64b([_0xca00fa],_0x1d2554,_0x3906e2)),null;}_0x49f351['push'](_0xca00fa);let _0x5ed991=!0x0;for(const _0x287faa of _0x49f351)if(!this['_rangeIsInLocalUserInsertion'](_0x287faa)){_0x5ed991=!0x1;break;}if(_0x5ed991&&'always'!==this['_trackFormatChanges']){const _0x1e4bbc=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x19e95a,'accept');return this['forceDefaultExecution'](()=>_0x1e4bbc([_0xca00fa],_0x1d2554,_0x3906e2)),null;}let _0x43a234=null,_0x329438=_0xca00fa['start'],_0x5dac7c=_0xca00fa['end'];for(const {suggestion:_0x19d136,meta:_0x3eb7ac}of this['_findSuggestions'](_0xca00fa,'formatBlock')){if(!_0x3eb7ac['isOwn'])continue;if(_0x3eb7ac['isNextTo']||_0x3eb7ac['containsRangeInObject']||_0x3eb7ac['isInsideObject'])continue;if(_0x19d136['data']['formatGroupId']!=_0x1d2554['formatGroupId'])continue;if(!qt(_0x19d136,_0x3906e2))continue;const _0x2c600b=_0x19d136['getFirstRange']();if(_0x19d136['subType']==_0x19e95a){if(_0x2c600b['containsRange'](_0xca00fa,!0x0))return null;_0x329438=_0x329438['isBefore'](_0x2c600b['start'])?_0x329438:_0x2c600b['start'],_0x5dac7c=_0x5dac7c['isAfter'](_0x2c600b['end'])?_0x5dac7c:_0x2c600b['end'],_0x43a234?_0x2c600b['start']['isBefore'](_0x43a234['getFirstRange']()['start'])?(_0x43a234['removeMarkers'](),_0x43a234=_0x19d136):_0x19d136['removeMarkers']():_0x43a234=_0x19d136;}else{const _0x223540=_0xca00fa['getIntersection'](_0x2c600b);this['_cutOutSuggestionMarker'](_0x19d136,_0x223540);}}const _0x1e9d20=this['editor']['plugins']['get']('Users')['me'],_0x37bbac=_0x2c01d2(),_0x59bd81=_0x1e9d20['id'];if(_0x43a234)return this['_setSuggestionRange'](_0x43a234,this['_model']['createRange'](_0x329438,_0x5dac7c)),_0x43a234;{const _0x1e89b6=this['_setSuggestionData']({'id':_0x37bbac,'type':'formatBlock:'+_0x19e95a,'data':_0x1d2554,'createdAt':new Date(),'authorId':_0x59bd81,'attributes':_0x3906e2});return this['_addSuggestionMarker']('formatBlock:'+_0x19e95a,_0x37bbac,_0x59bd81,this['_model']['createRange'](_0x329438,_0x5dac7c)),_0x1e89b6;}}['markMultiRangeBlockFormat'](_0x189138,_0x46bba1,_0x239ec7=[],_0x5e5f3f=null,_0x47e4e5={}){_0x46bba1['formatGroupId']||(_0x46bba1['formatGroupId']=_0x46bba1['commandName']);const _0x5637af=_0x189138[0x0];_0x46bba1['multipleBlocks']=_0x5637af['is']('range'),_0x5e5f3f=_0x5e5f3f||Gt(_0x46bba1);const _0x471a37=_0x239ec7['map'](_0x383c09=>Lt(_0x383c09,this['_model'])),_0x4d60f3=_0x5637af['is']('range')?_0x189138:_0x189138['map'](_0x27052e=>Lt(_0x27052e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x3dbe8f=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5f3f,'accept');return this['forceDefaultExecution'](()=>_0x3dbe8f(_0x4d60f3,_0x46bba1,_0x47e4e5)),null;}_0x471a37['push'](..._0x4d60f3);let _0x3776dc=!0x0;for(const _0x273782 of _0x471a37)if(!this['_rangeIsInLocalUserInsertion'](_0x273782)){_0x3776dc=!0x1;break;}if(_0x3776dc&&'always'!==this['_trackFormatChanges']){const _0x586494=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5f3f,'accept');return this['forceDefaultExecution'](()=>_0x586494(_0x4d60f3,_0x46bba1,_0x47e4e5)),null;}const _0x4a0935=this['editor']['plugins']['get']('Users')['me'];for(const _0x296016 of this['getSuggestions']()){if(_0x296016['author']['id']!=_0x4a0935['id'])continue;if('formatBlock'!=_0x296016['type']||_0x296016['data']['formatGroupId']!=_0x46bba1['formatGroupId'])continue;if(!qt(_0x296016,_0x47e4e5))continue;const _0x1e2752=_0x296016['subType']==_0x5e5f3f;for(let _0x1eb687=0x0;_0x1eb687<_0x4d60f3['length'];_0x1eb687++){const _0x640470=_0x4d60f3[_0x1eb687];for(const _0x32c6d6 of _0x296016['getMarkers']()){const _0x238889=_0x32c6d6['getRange']();if(_0x640470['isEqual'](_0x238889)){_0x1e2752?(_0x4d60f3['splice'](_0x1eb687,0x1),_0x1eb687--):_0x296016['removeMarker'](_0x32c6d6['name']);break;}}}}if(0x0==_0x4d60f3['length'])return null;const _0x5256d4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5e5f3f,'join');for(const _0x39f470 of this['getSuggestions']())if(_0x39f470['author']['id']==_0x4a0935['id']&&'formatBlock'==_0x39f470['type']&&_0x39f470['data']['formatGroupId']==_0x46bba1['formatGroupId']&&_0x39f470['subType']==_0x5e5f3f&&qt(_0x39f470,_0x47e4e5)&&(_0x5256d4(_0x39f470['getRanges'](),_0x4d60f3)||_0x5256d4(_0x4d60f3,_0x39f470['getRanges']()))){for(const _0x3567a7 of _0x4d60f3)_0x39f470['addRange'](_0x3567a7);return _0x39f470;}const _0x580f5a=_0x2c01d2(),_0x1b8716=_0x4a0935['id'],_0x2c811a='formatBlock:'+_0x5e5f3f,_0x4680a5=this['_setSuggestionData']({'id':_0x580f5a,'type':_0x2c811a,'data':_0x46bba1,'createdAt':new Date(),'authorId':_0x1b8716,'attributes':_0x47e4e5});for(const _0x4b1e81 of _0x4d60f3)this['_addSuggestionMarker'](_0x2c811a,_0x580f5a,_0x1b8716,_0x4b1e81,u['getMultiRangeId']());return _0x4680a5;}['markDeletion'](_0x523e97,_0x3b3b12=null,_0xd6d0b8={}){if(_0x523e97['isCollapsed'])return null;const _0x37104d=this['editor']['plugins']['get']('Users')['me'],_0x4a49b3=new _0x4d4c67(_0x523e97['start'],_0x523e97['end']);for(const {suggestion:_0xeead92,meta:_0x571fd1}of this['_findSuggestions'](_0x4a49b3,'insertion'))if(_0x571fd1['isOwn']&&!_0x571fd1['isNextTo']){if(_0xeead92['isMultiRange']){const _0x56952e=_0xeead92['getRanges']()['filter'](_0x3bb379=>'$graveyard'!=_0x3bb379['root']['rootName']);_0x56952e['every'](_0x2f746d=>_0x4a49b3['containsRange'](_0x2f746d,!0x0))&&_0xeead92['discard']();if(_0x56952e['some'](_0x16d4cf=>_0x16d4cf['containsRange'](_0x4a49b3,!0x0))){const _0x19109c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3b3b12,'accept');return this['forceDefaultExecution'](()=>_0x19109c([_0x4a49b3],null,_0xd6d0b8)),null;}}else{const _0x4a9275=_0x4a49b3['getIntersection'](_0xeead92['getFirstRange']());null!==_0x4a9275&&_0xeead92['_onDiscard']([_0x4a9275],null,_0xd6d0b8);}}if(_0x4a49b3['detach'](),_0x4a49b3['isCollapsed']||'$graveyard'==_0x4a49b3['root']['rootName'])return null;let _0x4b9efe=null,_0x461502=_0x4a49b3['start'],_0x4fa416=_0x4a49b3['end'];const _0x340c27=this['_findSuggestions'](_0x4a49b3,'deletion');for(const {suggestion:_0x16a97d,meta:_0xfa8c1e}of _0x340c27){const _0x305c80=this['_model']['createRange'](_0x461502,_0x4fa416);if(_0xfa8c1e['isOwn']&&(this['_mergeNestedSuggestions']||!_0xfa8c1e['containsRangeInObject']&&!_0xfa8c1e['isInsideObject'])){if(_0x16a97d['isMultiRange']){if(!qt(_0x16a97d,_0xd6d0b8))continue;let _0x28a46a=!0x0;for(const _0x3546c9 of _0x16a97d['getRanges']()){if(_0x3546c9['containsRange'](_0x305c80,!0x0))return _0x16a97d;_0x305c80['containsRange'](_0x3546c9)||(_0x28a46a=!0x1);}_0x28a46a&&_0x16a97d['discard']();}else{const _0x10381a=_0x16a97d['getFirstRange']();if(_0x10381a['containsRange'](_0x305c80,!0x0))return _0x16a97d;if(!qt(_0x16a97d,_0xd6d0b8)){_0x305c80['containsRange'](_0x10381a)?_0x16a97d['removeMarkers']():_0x10381a['containsPosition'](_0x461502)?_0x461502=_0x10381a['end']:_0x10381a['containsPosition'](_0x4fa416)&&(_0x4fa416=_0x10381a['start']);continue;}_0x461502=_0x461502['isBefore'](_0x10381a['start'])?_0x461502:_0x10381a['start'],_0x4fa416=_0x4fa416['isAfter'](_0x10381a['end'])?_0x4fa416:_0x10381a['end'],_0xd6d0b8=Object['assign']({},_0x16a97d['attributes']),_0x4b9efe?_0x10381a['start']['isBefore'](_0x4b9efe['getFirstRange']()['start'])?(_0x4b9efe['removeMarkers'](),_0x4b9efe=_0x16a97d):_0x16a97d['removeMarkers']():_0x4b9efe=_0x16a97d;}}}if(_0x4b9efe)return this['_setSuggestionRange'](_0x4b9efe,this['_model']['createRange'](_0x461502,_0x4fa416)),_0x4b9efe;{const _0x2e8ce7=_0x2c01d2(),_0x56287d=this['_model']['createRange'](_0x461502,_0x4fa416),_0x282b4c=_0x37104d['id'],_0x417963=_0x3b3b12?'deletion:'+_0x3b3b12:'deletion',_0x7860da=this['_setSuggestionData']({'id':_0x2e8ce7,'type':_0x417963,'createdAt':new Date(),'authorId':_0x282b4c,'attributes':_0xd6d0b8});return this['_addSuggestionMarker'](_0x417963,_0x2e8ce7,_0x282b4c,_0x56287d),_0x7860da;}}['markMultiRangeDeletion'](_0x305eeb,_0x5476cb='multi',_0x442f2b={}){const _0x1f2ed7=this['editor']['plugins']['get']('Users')['me'],_0x4f1f0c=_0x305eeb['map'](_0x514f31=>new _0x4d4c67(_0x514f31['start'],_0x514f31['end'])),_0x1c1422=new Set();for(const {suggestion:_0x121859,meta:_0xc5752}of this['_findSuggestions'](_0x4f1f0c,'insertion'))_0xc5752['isOwn']&&!_0xc5752['isNextTo']&&_0x1c1422['add'](_0x121859);for(const _0xb7f4bc of _0x1c1422)if(_0xb7f4bc['isMultiRange']){const _0x4f8c6d=_0xb7f4bc['getRanges']();(!_0xb7f4bc['attributes']||!_0xb7f4bc['attributes']['skipNestingCheck'])&&(_0x4f8c6d['every'](_0x2a0b07=>_0x4f1f0c['some'](_0xbb9b21=>_0xbb9b21['containsRange'](_0x2a0b07,!0x0)))&&_0xb7f4bc['discard']());if(_0x4f1f0c['every'](_0x9dfd2b=>_0x4f8c6d['some'](_0x377be8=>_0x377be8['containsRange'](_0x9dfd2b,!0x0)))){const _0x2157e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5476cb,'accept');return this['forceDefaultExecution'](()=>_0x2157e5(_0x305eeb,null,_0x442f2b)),null;}}else{const _0x550e2c=_0xb7f4bc['getFirstRange']();_0x4f1f0c['some'](_0x5a9c42=>_0x5a9c42['containsRange'](_0x550e2c,!0x0))&&_0xb7f4bc['discard']();if(_0x4f1f0c['every'](_0x587884=>_0x550e2c['containsRange'](_0x587884,!0x0))){const _0x39c32f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5476cb,'accept');return this['forceDefaultExecution'](()=>_0x39c32f(_0x4f1f0c,null,_0x442f2b)),null;}}const _0x32a61f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5476cb,'join');let _0xc3c073=null;for(const _0x45dcef of this['getSuggestions']())if(_0x45dcef['author']['id']==_0x1f2ed7['id']&&_0x45dcef['isInContent']&&'deletion'==_0x45dcef['type']&&_0x45dcef['subType']==_0x5476cb&&qt(_0x45dcef,_0x442f2b)&&(_0x32a61f(_0x45dcef['getRanges'](),_0x4f1f0c)||_0x32a61f(_0x4f1f0c,_0x45dcef['getRanges']()))){if(_0xc3c073){if(_0x45dcef['commentThread']&&_0x45dcef['commentThread']['length'])continue;for(const _0x5e7665 of _0x45dcef['getRanges']())_0xc3c073['isIntersectingWithRange'](_0x5e7665)||_0xc3c073['addRange'](_0x5e7665);_0x45dcef['removeMarkers']();}else{_0xc3c073=_0x45dcef;for(const _0x17a8f4 of _0x4f1f0c)_0x45dcef['isIntersectingWithRange'](_0x17a8f4)||_0x45dcef['addRange'](_0x17a8f4);}}if(_0xc3c073)return _0xc3c073;_0x1c1422['clear']();for(const {suggestion:_0x3eff90,meta:_0x3cbad9}of this['_findSuggestions'](_0x4f1f0c,'deletion'))_0x3cbad9['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3cbad9['containsRangeInObject']&&!_0x3cbad9['isInsideObject'])&&qt(_0x3eff90,_0x442f2b)&&_0x1c1422['add'](_0x3eff90);for(const _0x7a2996 of _0x1c1422){const _0x11bc9c=_0x7a2996['getRanges']();if(!_0x442f2b||!_0x442f2b['skipNestingCheck']){if(_0x4f1f0c['every'](_0x1f177d=>_0x11bc9c['some'](_0x506176=>_0x506176['containsRange'](_0x1f177d,!0x0))))return _0x7a2996;}(!_0x7a2996['attributes']||!_0x7a2996['attributes']['skipNestingCheck'])&&(_0x11bc9c['every'](_0x41153b=>_0x4f1f0c['some'](_0x39e2b2=>_0x39e2b2['containsRange'](_0x41153b,!0x0)))&&_0x7a2996['discard']());}const _0x2f613b=_0x2c01d2(),_0x5a683e=_0x1f2ed7['id'],_0x28743b='deletion:'+_0x5476cb,_0xf2bf0=this['_setSuggestionData']({'id':_0x2f613b,'type':_0x28743b,'createdAt':new Date(),'authorId':_0x5a683e,'attributes':_0x442f2b});for(const _0x13fb77 of _0x4f1f0c)_0x13fb77['detach'](),_0x13fb77['isCollapsed']||'$graveyard'==_0x13fb77['root']['rootName']||this['_addSuggestionMarker'](_0x28743b,_0x2f613b,_0x5a683e,_0x13fb77,u['getMultiRangeId']());return _0xf2bf0;}['markAttributeChange'](_0x5ac0b4,_0x553bfc,_0x42fde0,_0x44156d,_0x2bdf11){if(_0x5ac0b4['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0xce3502=this['editor']['plugins']['get']('Users')['me']['id'],_0x51a9b6=Array['from'](this['_suggestions']['values']())['filter'](_0x263296=>'attribute'==_0x263296['type']&&_0x263296['data']['key']==_0x553bfc&&_0x263296['isIntersectingWithRange'](_0x5ac0b4));if('default'===this['_trackFormatChanges']){const _0x30b02d=this['_findSuggestions'](_0x5ac0b4,'insertion')['filter'](({meta:_0x4b4226})=>_0x4b4226['isOwn']&&!_0x4b4226['isInsideObject']&&!_0x4b4226['isNextTo'])['map'](({suggestion:_0x2bfd15})=>_0x2bfd15);_0x51a9b6['unshift'](..._0x30b02d);}const _0x1bce30=new Map([[_0x5ac0b4,_0x42fde0]]);for(const _0x5f59ae of _0x51a9b6){const _0x1a0597='attribute'==_0x5f59ae['type']?_0x5f59ae['data']['oldValue']:void 0x0,_0x360884=_0x5f59ae['getFirstRange'](),_0xb3435d=Array['from'](_0x1bce30['keys']())['find'](_0x5b59a4=>_0x5b59a4['isIntersecting'](_0x360884));if(!_0xb3435d)continue;const _0x358510=_0xb3435d['getDifference'](_0x360884);this['_isBlockAttribute'](_0x553bfc)&&'insertion'==_0x5f59ae['type']&&0x0!=_0x358510['length']||(_0x1bce30['delete'](_0xb3435d),_0x358510['forEach'](_0x4751ed=>{_0x1bce30['set'](_0x4751ed,_0x42fde0);}),'insertion'!=_0x5f59ae['type']&&_0x1a0597!=_0x44156d&&_0x1bce30['set'](_0xb3435d['getIntersection'](_0x360884),_0x1a0597));}const _0x3efe76=[];for(const [_0x1b0ce9,_0x5b7b99]of _0x1bce30){const _0x7b8b32=_0x2c01d2(),_0x4d14c9={'key':_0x553bfc,'oldValue':_0x5b7b99,'newValue':_0x44156d};_0x553bfc['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':_0x553bfc});const _0x53c75e=('attribute:'+(_0x553bfc+'|'+Gt({'newValue':_0x44156d})))['substring'](0x0,0x3c),_0x1fe923=this['_setSuggestionData']({'id':_0x7b8b32,'type':_0x53c75e,'data':_0x4d14c9,'createdAt':new Date(),'authorId':_0xce3502,'attributes':_0x2bdf11});_0x3efe76['push'](_0x1fe923),this['_addSuggestionMarker'](_0x53c75e,_0x7b8b32,_0xce3502,_0x1b0ce9);}return _0x3efe76;}['enableDefaultAttributesIntegration'](_0x5efe92){this['enableCommand'](_0x5efe92,(_0x2f0ed6,..._0x469528)=>{this['_recordAttributeChanges'](()=>{_0x2f0ed6(..._0x469528);});});}['registerBlockAttribute'](_0x2c7716){this['_blockAttributeKeys']['add'](_0x2c7716);}['registerInlineAttribute'](_0x597413){this['_inlineAttributeKeys']['add'](_0x597413);}['_getAttributeKey'](_0x102d93){return'attribute'==_0x102d93['type']?_0x102d93['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x25b168,_0x109bf4){const _0xe068fa=_0x25b168['getFirstMarker']();this['_model']['change'](_0x34f3d9=>{_0x34f3d9['updateMarker'](_0xe068fa,{'range':_0x109bf4});});}['_addThreadToSuggestion'](_0x5b60b0){const _0x4cd1da=_0x5b60b0['id'],_0x357a5f=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x4cd1da)||this['_commentsRepository']['addCommentThread']({'channelId':_0x357a5f,'threadId':_0x4cd1da,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x21448e=this['_commentsRepository']['getCommentThread'](_0x4cd1da);_0x21448e['unbind']('isRemovable'),_0x21448e['isRemovable']=!0x1,_0x5b60b0['commentThread']=_0x21448e;}['_checkSuggestionCorrectness'](_0x516ae4,_0x3eeb9a,_0x5069cd,_0x1c5a67){if(_0x516ae4['type']!=_0x3eeb9a||_0x516ae4['subType']!=_0x5069cd||_0x516ae4['creator']['id']!=_0x1c5a67)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x32e29e('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x5c7c98,_0x128685){const _0x3f29a5=_0x5c7c98['getFirstRange']();if(_0x128685['isEqual'](_0x3f29a5))_0x5c7c98['removeMarkers']();else{if(_0x3f29a5['containsRange'](_0x128685)){const _0x18fa38=this['_model']['createPositionAt'](_0x128685['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c7c98,this['_model']['createRange'](_0x3f29a5['start'],_0x18fa38));const _0x55447d=_0x2c01d2(),_0x28c605=_0x5c7c98['creator']['id'],_0x35c4e3=_0x5c7c98['type']+':'+_0x5c7c98['subType'];this['_setSuggestionData']({'id':_0x55447d,'type':_0x35c4e3,'createdAt':new Date(),'authorId':_0x28c605,'data':_0x5c7c98['data'],'attributes':_0x5c7c98['attributes']});const _0x446ac2=this['_model']['createPositionAt'](_0x128685['end']['parent'],'after'),_0x3ce734=this['_model']['createRange'](_0x446ac2,_0x3f29a5['end']);this['_addSuggestionMarker'](_0x35c4e3,_0x55447d,_0x28c605,_0x3ce734);}else{if(_0x3f29a5['containsPosition'](_0x128685['start'])){const _0x399edd=this['_model']['createPositionAt'](_0x128685['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x5c7c98,this['_model']['createRange'](_0x3f29a5['start'],_0x399edd));}else{const _0x59c216=this['_model']['createPositionAt'](_0x128685['end']['parent'],'after');this['_setSuggestionRange'](_0x5c7c98,this['_model']['createRange'](_0x59c216,_0x3f29a5['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x2f286a){for(const {suggestion:_0xf05230,meta:_0x118b19}of this['_findSuggestions'](_0x2f286a,'insertion')){if(!_0x118b19['isOwn'])continue;const _0x28566a=_0xf05230['getRanges']();for(const _0x43fe69 of _0x28566a)if(!_0x2f286a['getDifference'](_0x43fe69)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3dce36){const _0x5ea13c=this['editor']['plugins']['get']('Users')['getUser'](_0x3dce36);if(!_0x5ea13c)throw new _0x32e29e('track-changes-user-not-found',this);return _0x5ea13c;}['_getExternalAuthor'](_0x5ec607){const _0x21a0ce=this['editor']['plugins']['get']('Users'),_0x3c93ba=_0x3ccdb5('external:'+_0x5ec607),_0x496d0a=_0x21a0ce['getUser'](_0x3c93ba);return _0x496d0a||_0x21a0ce['addUser']({'id':_0x3c93ba,'name':_0x5ec607});}['_createSuggestion'](_0x51c98b,_0x44991d,_0x44a14e,_0x3e48db,_0x1c40ef){const _0xa1c781=this['_getAuthorFromId'](_0x3e48db),_0x20b7b4=this['_suggestionFactory']['buildSuggestion'](_0x51c98b,_0x44991d,_0x44a14e,_0xa1c781,_0x1c40ef,_0x515298=>{this['_updateSuggestionData'](_0x44a14e,{'attributes':_0x515298});const _0x100a24=this['getSuggestion'](_0x44a14e);this['_joinWithAdjacentSuggestions'](new Set([_0x100a24])),this['_refreshSuggestionsChain'](new Set([_0x100a24]));});return this['listenTo'](_0x20b7b4,'accept',()=>{this['_updateSuggestionData'](_0x44a14e,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x20b7b4,'discard',()=>{this['_updateSuggestionData'](_0x44a14e,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x44a14e,_0x20b7b4),this['_suggestionState']['set'](_0x20b7b4,'notReady'),_0x20b7b4;}['_splitMarkerName'](_0x3b6573){const _0x5d5921=_0x3b6573['split'](':');return{'group':_0x5d5921[0x0],'type':_0x5d5921[0x1],'subType':_0x5d5921['length']>=0x5?_0x5d5921[0x2]:null,'id':_0x5d5921['length']<0x5?_0x5d5921[0x2]:_0x5d5921[0x3],'authorId':_0x5d5921['length']<0x5?_0x5d5921[0x3]:_0x5d5921[0x4],'markerCount':0x6==_0x5d5921['length']?_0x5d5921[0x5]:null};}['_breakSuggestionMarker'](_0x18a4f5,_0x24fe42,_0x162fc0){const _0x3a3209=_0x18a4f5['getFirstRange'](),_0x1fde48=_0x3a3209['start'],_0x2e0835=_0x3a3209['end'];this['_setSuggestionRange'](_0x18a4f5,this['_model']['createRange'](_0x1fde48,_0x24fe42));const _0x14fd07=_0x2c01d2(),_0x1c4f8b=_0x18a4f5['creator']['id'],_0x357ecf=_0x18a4f5['type']+(_0x18a4f5['subType']?':'+_0x18a4f5['subType']:'');this['_setSuggestionData']({'id':_0x14fd07,'type':_0x357ecf,'createdAt':new Date(),'authorId':_0x1c4f8b,'originalSuggestionId':_0x18a4f5['id'],'attributes':_0x18a4f5['attributes'],'data':_0x18a4f5['data']});const _0x1bfe50=this['_getAttributeKey'](_0x18a4f5);('formatBlock'==_0x18a4f5['type']||_0x1bfe50&&this['_isBlockAttribute'](_0x1bfe50))&&(_0x162fc0=this['_model']['createPositionBefore'](_0x162fc0['parent'])),this['_addSuggestionMarker'](_0x357ecf,_0x14fd07,_0x1c4f8b,this['_model']['createRange'](_0x162fc0,_0x2e0835));}['_findSuggestions'](_0x167c06,_0xb655a0=null){const _0xccdb87=[],_0x3b33aa=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x167c06)||(_0x167c06=[_0x167c06]);for(const _0x1d6678 of this['getSuggestions']()){if(!_0x1d6678['isInContent'])continue;if(_0xb655a0&&_0x1d6678['type']!=_0xb655a0)continue;let _0xd18f35=!0x1;for(const _0x9ff63f of _0x1d6678['getRanges']()){for(const _0x53c34a of _0x167c06){const _0x554c46=_0x53c34a['start']['isEqual'](_0x9ff63f['end'])||_0x53c34a['end']['isEqual'](_0x9ff63f['start']);if(_0x554c46||_0x53c34a['getIntersection'](_0x9ff63f)){const _0x1877ef=_0x53c34a['containsRange'](_0x9ff63f)&&Ot(this['_model']['schema'],_0x9ff63f['start'],_0x53c34a),_0x506051=_0x9ff63f['containsRange'](_0x53c34a)&&Ot(this['_model']['schema'],_0x53c34a['start'],_0x9ff63f);_0xccdb87['push']({'suggestion':_0x1d6678,'meta':{'isOwn':_0x3b33aa==_0x1d6678['author'],'isNextTo':_0x554c46,'isInsideObject':_0x1877ef,'containsRangeInObject':_0x506051}}),_0xd18f35=!0x0;break;}}if(_0xd18f35)break;}}return _0xccdb87;}['_addSuggestionMarker'](_0x3d40c3,_0x47b311,_0x52ebd9,_0x5ab817,_0x3d261a){this['_model']['change'](_0x557955=>{let _0x441d96='suggestion:'+_0x3d40c3+':'+_0x47b311+':'+_0x52ebd9;_0x3d261a&&(_0x441d96=_0x441d96+':'+_0x3d261a),_0x557955['addMarker'](_0x441d96,{'range':_0x5ab817,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5b35c9){const _0x350113=_0x5b35c9['previous'],_0x33b659=_0x5b35c9['next'];_0x5b35c9['previous']=null,_0x5b35c9['next']=null,null!=_0x350113&&_0x350113['next']==_0x5b35c9&&(_0x350113['next']=_0x33b659),null!=_0x33b659&&_0x33b659['previous']==_0x5b35c9&&(_0x33b659['previous']=_0x350113),'ready'==this['_suggestionState']['get'](_0x5b35c9)&&(this['_suggestionState']['set'](_0x5b35c9,'removed'),this['fire']('suggestionUnloaded',_0x5b35c9,_0x350113,_0x33b659));}['_setSuggestionData'](_0xcbadc){const _0xccc388=_0xcbadc['id'],_0x151e5f=this['addSuggestionData'](_0xcbadc);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x5a75d0=this['editor']['plugins']['get']('PendingActions'),_0x401adb=_0x151e5f['hasComments'],_0x141f7f=_0x151e5f['subType']?_0x151e5f['type']+':'+_0x151e5f['subType']:_0x151e5f['type'],_0x11b4f7=this['editor']['locale'],_0x515709=_0x5a75d0['add'](o(_0x11b4f7,'PENDING_ACTION_SUGGESTION')),_0x293507={'id':_0xccc388,'type':_0x141f7f,'hasComments':_0x401adb,'data':_0xcbadc['data']||null,'originalSuggestionId':_0xcbadc['originalSuggestionId']||null,'attributes':_0x151e5f['attributes']};this['_adapter']['addSuggestion'](_0x293507)['then'](_0x18ddca=>{_0x151e5f['_saved']=!0x0,_0x5a75d0['remove'](_0x515709),_0x18ddca&&_0x18ddca['createdAt']&&(this['_suggestions']['get'](_0xccc388)['createdAt']=_0x18ddca['createdAt']);})['catch'](_0x552f82=>{throw _0x48c6f3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x151e5f['discard']();}),_0x151e5f['stopListening'](),this['_suggestions']['delete'](_0x151e5f['id']),this['_suggestionState']['delete'](_0x151e5f),_0x552f82;});}return _0x151e5f;}['_isBlockAttribute'](_0x21b803){return this['_blockAttributeKeys']['has'](_0x21b803);}['_updateSuggestionData'](_0x523df5,_0x424321){const _0x338af7=this['editor']['plugins']['get']('PendingActions'),_0x3dd379=this['getSuggestion'](_0x523df5);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x3dd379['_saved']){const _0xe9e606=_0x338af7['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x523df5,_0x424321)['then'](()=>{_0x338af7['remove'](_0xe9e606);});}else _0x3dd379['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x523df5,_0x424321);});}}['_getSuggestionData'](_0x4a51b9){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x32e29e('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x4a51b9);}['_handleNewSuggestionMarker'](_0x12979){const {id:_0x1d9a23,type:_0xc3c63,subType:_0x1e3165,authorId:_0x56bac4}=this['_splitMarkerName'](_0x12979),_0x3e42f7=this['_suggestions']['get'](_0x1d9a23)||this['_createSuggestion'](_0xc3c63,_0x1e3165,_0x1d9a23,_0x56bac4,{});switch(this['_checkSuggestionCorrectness'](_0x3e42f7,_0xc3c63,_0x1e3165,_0x56bac4),this['_suggestionState']['get'](_0x3e42f7)){case'notReady':this['_getSuggestionData'](_0x1d9a23)['then'](_0x1fe3c8=>{let _0x2f7eac=Promise['resolve']();_0x1fe3c8['hasComments']&&(_0x2f7eac=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x1d9a23})),_0x2f7eac['then'](()=>{this['addSuggestionData'](_0x1fe3c8)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x3e42f7,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x1d9a23,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x3e42f7,'ready'),this['fire']('suggestionLoaded',_0x3e42f7);break;case'ready':this['fire']('suggestionChanged',_0x3e42f7);}return _0x3e42f7['addMarkerName'](_0x12979),_0x3e42f7;}['_refreshSuggestionsChain'](_0x1b4c4f){const _0x390f97=Array['from'](_0x1b4c4f),_0x47d8e0=_0x390f97['filter'](_0x1c15eb=>'attribute'==_0x1c15eb['type']);this['_refreshAttributeSuggestionsChain'](_0x47d8e0);const _0x30acd5=_0x390f97['filter'](_0x54c2ce=>!_0x54c2ce['isMultiRange']&&'attribute'!=_0x54c2ce['type']),_0x507c59=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5646c1=>!_0x5646c1['isMultiRange']&&'attribute'!=_0x5646c1['type']),_0x42e83f=_0x507c59['filter'](_0x3cea08=>!_0x1b4c4f['has'](_0x3cea08)),_0x21a327=new Map(_0x507c59['map'](_0x36bf55=>[_0x36bf55,this['_suggestionFactory']['getSuggestionCallback'](_0x36bf55['type'],_0x36bf55['subType'],'chain')])),_0x31df95=new Map(_0x507c59['map'](_0x2ce841=>[_0x2ce841,_0x2ce841['getFirstRange']()])),_0x7c5077=new Set(),_0x42bbbd=new Set();for(let _0x2667f1=0x0;_0x2667f1<_0x30acd5['length'];_0x2667f1++)_0x2a7168(_0x30acd5[_0x2667f1],_0x30acd5,_0x2667f1+0x1);for(let _0x2d2f00=0x0;_0x2d2f00<_0x30acd5['length'];_0x2d2f00++)_0x2a7168(_0x30acd5[_0x2d2f00],_0x42e83f,0x0);const _0x7597aa=new Set();for(let _0x5e0426=0x0;_0x5e0426<_0x30acd5['length'];_0x5e0426++){const _0x326a8b=_0x30acd5[_0x5e0426];!_0x42bbbd['has'](_0x326a8b)&&_0x326a8b['previous']&&(_0x7597aa['add'](_0x326a8b['previous']),_0x326a8b['previous']['next']===_0x326a8b&&(_0x326a8b['previous']['next']=null),_0x326a8b['previous']=null),!_0x7c5077['has'](_0x326a8b)&&_0x326a8b['next']&&(_0x7597aa['add'](_0x326a8b['next']),_0x326a8b['next']['previous']===_0x326a8b&&(_0x326a8b['next']['previous']=null),_0x326a8b['next']=null);}function _0x2a7168(_0x4a7414,_0x5e1456,_0x1e4672){for(let _0x4f224d=_0x1e4672;_0x4f224d<_0x5e1456['length'];_0x4f224d++){const _0x9a4c3d=_0x6c97aa(_0x4a7414,_0x5e1456[_0x4f224d]);_0x9a4c3d&&(_0x9a4c3d[0x0]['next']=_0x9a4c3d[0x1],_0x9a4c3d[0x1]['previous']=_0x9a4c3d[0x0],_0x7c5077['add'](_0x9a4c3d[0x0]),_0x42bbbd['add'](_0x9a4c3d[0x1]));}}function _0x6c97aa(_0x5cfff5,_0x422951){if(_0x5cfff5['author']['id']!==_0x422951['author']['id'])return null;const _0x2d0850=_0x21a327['get'](_0x5cfff5)(_0x5cfff5,_0x422951,_0x31df95['get'](_0x5cfff5),_0x31df95['get'](_0x422951));if(!_0x2d0850)return null;return _0x21a327['get'](_0x422951)(_0x5cfff5,_0x422951,_0x31df95['get'](_0x5cfff5),_0x31df95['get'](_0x422951))?_0x2d0850[0x1]['commentThread']&&_0x2d0850[0x1]['commentThread']['length']?null:_0x2d0850:null;}_0x7597aa['size']&&this['_refreshSuggestionsChain'](_0x7597aa);}['_refreshAttributeSuggestionsChain'](_0x4d6a5e){if(0x0==_0x4d6a5e['length'])return;const _0x2466b3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x588a0f=>'attribute'==_0x588a0f['type']&&_0x588a0f['_isDataLoaded']),_0x1b12a2=[],_0x52dec9=new Map();for(const _0x207d91 of _0x2466b3){const _0x4b1362=_0x3ccdb5(_0x207d91['attributes']);_0x52dec9['has'](_0x4b1362)||(_0x52dec9['set'](_0x4b1362,_0x1b12a2['length']),_0x1b12a2['push']([]));const _0x1fad27=_0x52dec9['get'](_0x4b1362);_0x1b12a2[_0x1fad27]['push'](_0x207d91);}!(function(){_0x1b12a2['sort']((_0x2e0baa,_0x208d67)=>{const _0x10daba=_0x2e0baa[0x0]['createdAt'],_0x4acd16=_0x208d67[0x0]['createdAt'];return _0x10daba==_0x4acd16?_0x2e0baa[0x0]['attributes']['groupId']<_0x208d67[0x0]['attributes']['groupId']?-0x1:0x1:_0x10daba<_0x4acd16?-0x1:0x1;});for(const _0x59f1ef of _0x1b12a2)_0x59f1ef['sort']((_0x4195b0,_0x4aefca)=>_0x4195b0['id']<_0x4aefca['id']?-0x1:0x1);}());for(let _0x1d9540=0x0;_0x1d9540<_0x1b12a2['length'];_0x1d9540++){if(0x0==_0x1b12a2[_0x1d9540]['length'])continue;const _0xe2a91e=[];for(let _0x514c48=_0x1d9540+0x1;_0x514c48<_0x1b12a2['length'];_0x514c48++)0x0!=_0x1b12a2[_0x514c48]['length']&&_0x4745a(_0x1b12a2[_0x1d9540],_0x1b12a2[_0x514c48])&&_0xe2a91e['push'](_0x514c48);for(const _0x2bb8d5 of _0xe2a91e)_0x1b12a2[_0x1d9540]=_0x1b12a2[_0x1d9540]['concat'](_0x1b12a2[_0x2bb8d5]),_0x1b12a2[_0x2bb8d5]=[];}for(const _0x2bb05c of _0x1b12a2)for(let _0x8cfe1e=0x0;_0x8cfe1e<_0x2bb05c['length'];_0x8cfe1e++){const _0x4a500c=_0x2bb05c[_0x8cfe1e+0x1]||null;_0x2bb05c[_0x8cfe1e]['next']!==_0x4a500c&&(_0x2bb05c[_0x8cfe1e]['next']=_0x4a500c);}for(const _0x318184 of _0x1b12a2)for(let _0x3fa740=0x0;_0x3fa740<_0x318184['length'];_0x3fa740++){const _0x7d89c=_0x318184[_0x3fa740-0x1]||null;_0x318184[_0x3fa740]['previous']!==_0x7d89c&&(_0x318184[_0x3fa740]['previous']=_0x7d89c);}function _0x4745a(_0x2ae4b4,_0x3de319){if(_0x2ae4b4[0x0]['attributes']['groupId']!==_0x3de319[0x0]['attributes']['groupId']&&_0x2ae4b4[0x0]['author']!==_0x3de319[0x0]['author'])return!0x1;if(!function(_0x523eb2,_0x4bd0ad){if(!_0x523eb2['hasComments']&&!_0x4bd0ad['hasComments'])return!0x0;if(_0x523eb2['hasComments']&&_0x4bd0ad['hasComments'])return!0x1;if(_0x523eb2['hasComments']&&_0x4bd0ad['createdAt']<_0x523eb2['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4bd0ad['hasComments']&&_0x523eb2['createdAt']<_0x4bd0ad['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2ae4b4[0x0],_0x3de319[0x0]))return!0x1;const _0x427009=Tt(_0x2ae4b4[0x0]['attributes'],'groupId'),_0x30b23a=Tt(_0x3de319[0x0]['attributes'],'groupId');if(!_0x36b028(_0x427009,_0x30b23a))return!0x1;return!!_0x2ae4b4['every'](_0x403921=>_0x3de319['some'](_0x1ff83c=>_0x403921['getFirstRange']()['isEqual'](_0x1ff83c['getFirstRange']())))&&_0x3de319['every'](_0x17d3d8=>_0x2ae4b4['some'](_0x892a96=>_0x17d3d8['getFirstRange']()['isEqual'](_0x892a96['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x290b58){const _0x43e401=Array['from'](_0x290b58),_0x2d04ea=this['getSuggestions']({'skipNotAttached':!0x0}),_0x3f6627=_0x2d04ea['filter'](_0x219d82=>!_0x290b58['has'](_0x219d82)),_0x289b68=new Map(_0x43e401['map'](_0x130a80=>[_0x130a80,this['_suggestionFactory']['getSuggestionCallback'](_0x130a80['type'],_0x130a80['subType'],'join')])),_0x5cb2ba=new Map(_0x2d04ea['map'](_0x25d9e1=>[_0x25d9e1,_0x25d9e1['getRanges']()]));for(let _0x21662e=0x0;_0x21662e<_0x43e401['length'];_0x21662e++){if(_0x53c893(this,_0x43e401[_0x21662e],_0x43e401,_0x21662e+0x1))return!0x0;}for(let _0xaab957=0x0;_0xaab957<_0x43e401['length'];_0xaab957++){if(_0x53c893(this,_0x43e401[_0xaab957],_0x3f6627,0x0))return!0x0;}return!0x1;function _0x53c893(_0x350a48,_0x3ab3b2,_0x10c26e,_0x2550d2){for(let _0x3e3992=_0x2550d2;_0x3e3992<_0x10c26e['length'];_0x3e3992++){const _0x3baab9=_0x10c26e[_0x3e3992];if(_0x3baab9['type']!==_0x3ab3b2['type']||_0x3baab9['author']['id']!==_0x3ab3b2['author']['id']||_0x3baab9['subType']!==_0x3ab3b2['subType'])continue;if(!Jt(_0x3ab3b2,_0x3baab9))continue;if('attribute'==_0x3ab3b2['type']&&_0x3ab3b2['data']['oldValue']!=_0x3baab9['data']['oldValue'])continue;if('attribute'==_0x3ab3b2['type']&&_0x350a48['_isBlockAttribute'](_0x3ab3b2['data']['key']))continue;if('formatBlock'==_0x3ab3b2['type']){const _0xe65a1e=_0x350a48['editor']['model'],_0x33db87=_0x3ab3b2['getContainedElement']();if(_0x33db87&&(_0xe65a1e['schema']['isObject'](_0x33db87)||_0xe65a1e['schema']['isLimit'](_0x33db87)))continue;}const _0x3b4601=_0x289b68['get'](_0x3ab3b2),_0x33e8cb=_0x5cb2ba['get'](_0x3ab3b2),_0x288875=_0x5cb2ba['get'](_0x3baab9),_0x1af579=_0x3ab3b2['commentThread']&&_0x3ab3b2['commentThread']['length'],_0x524187=_0x3baab9['commentThread']&&_0x3baab9['commentThread']['length'];if(!_0x1af579&&_0x3b4601(_0x288875,_0x33e8cb))return _0x350a48['_joinSuggestions'](_0x3baab9,_0x3ab3b2),_0x5cb2ba['delete'](_0x3ab3b2),!0x0;if(!_0x524187&&_0x3b4601(_0x33e8cb,_0x288875))return _0x350a48['_joinSuggestions'](_0x3ab3b2,_0x3baab9),_0x5cb2ba['delete'](_0x3baab9),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2df292,_0x135a14){if(_0x2df292['isMultiRange']){for(const _0x9a1ab5 of _0x135a14['getRanges']())_0x2df292['addRange'](_0x9a1ab5);}else{const _0x55cf74=_0x135a14['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2df292,this['_model']['createRange'](_0x2df292['getFirstRange']()['start'],_0x55cf74));}_0x135a14['removeMarkers']();}['_getMarkerAnnouncementText'](_0x571177,_0x3e3c24,_0x3b53ac){const _0x303697=_0x571177['startsWith']('format')||_0x571177['startsWith']('attribute')?'FORMATTING':_0x571177['toUpperCase']();return o(this['editor']['locale'],_0x3e3c24+'_'+_0x303697+'_SUGGESTION_ANNOUNCEMENT',_0x3b53ac);}['_initAriaMarkerChangeAnnouncements'](){const _0x24b9fb=this['editor'];if(!_0x24b9fb['ui'])return;const {ariaLiveAnnouncer:_0xbc6736}=_0x24b9fb['ui'];_0x57b9c9(this['_model'],({left:_0xfec27e,entered:_0x92c33d})=>{for(const _0x4b5bb2 of _0xfec27e){const {group:_0x3c2312,type:_0x559f4e}=this['_splitMarkerName'](_0x4b5bb2['name']);if('suggestion'===_0x3c2312){_0xbc6736['announce'](this['_getMarkerAnnouncementText'](_0x559f4e,'LEAVE'));break;}}for(const _0x813bb0 of _0x92c33d){const {group:_0x313e38,type:_0x354f65}=this['_splitMarkerName'](_0x813bb0['name']);if('suggestion'===_0x313e38){_0xbc6736['announce'](this['_getMarkerAnnouncementText'](_0x354f65,'ENTER',_0x56aab2(_0x307c55)));break;}}});}['_processAttributeChanges'](_0x1f9bbb){if(this['_recordAttributeSuggestions'])return!0x1;const _0x1f216d=this['editor'],_0x288945=_0x1f216d['model']['document']['differ']['getChanges']();if(0x0==_0x288945['length'])return!0x1;const _0x5edbe0=[],_0x40900c=_0x288945['filter'](_0x37ce3c=>'attribute'==_0x37ce3c['type']),_0x51bca7=_0x288945['filter'](_0x1504ec=>'insert'==_0x1504ec['type']&&'$text'!=_0x1504ec['name']),_0x503ee7=_0x288945['filter'](_0x2f8b4b=>'remove'==_0x2f8b4b['type']&&'$text'!=_0x2f8b4b['name']);for(const _0x30f58b of _0x40900c)_0x5edbe0['push']({'key':_0x30f58b['attributeKey'],'newValue':_0x30f58b['attributeNewValue'],'oldValue':_0x30f58b['attributeOldValue'],'range':Pt(_0x30f58b['range'],_0x1f216d['model'])});for(const _0x5bd410 of _0x51bca7){const _0x546ce2=_0x503ee7['find'](_0x3311de=>_0x3311de['position']['isEqual'](_0x5bd410['position']));_0x546ce2&&_0x5edbe0['push']({'key':m,'newValue':_0x5bd410['name'],'oldValue':_0x546ce2['name'],'range':_0x1f216d['model']['createRangeOn'](_0x5bd410['position']['nodeAfter'])});}return 0x0!=_0x5edbe0['length']&&this['_reduceExistingSuggestions'](_0x1f9bbb,_0x5edbe0);}['_processAttributeSuggestions'](_0x387b97){let _0x29f321=!0x1;const _0x256521=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x217154=>_0x217154['data']['newRange']&&_0x217154['name']['startsWith']('suggestion:attribute:'));for(const _0x5676ed of _0x256521){const {subType:_0x3db3a0,id:_0x53911b}=this['_splitMarkerName'](_0x5676ed['name']),_0x12d20f=_0x3db3a0['split']('|')[0x0];for(const _0x474079 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x474079['id']!=_0x53911b&&'attribute'==_0x474079['type']&&_0x474079['data']&&_0x474079['data']['key']==_0x12d20f&&_0x474079['getFirstRange']()['isIntersecting'](_0x5676ed['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x474079,_0x5676ed['data']['newRange'],_0x387b97),_0x29f321=!0x0);}return _0x29f321;}['_recordAttributeChanges'](_0x2e0d88){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x2e0d88();}['_isRegisteredAttribute'](_0x4d100f){const _0x12f299=this['_isBlockAttribute'](_0x4d100f),_0x204e04=this['_inlineAttributeKeys']['has'](_0x4d100f);return _0x12f299||_0x204e04;}['_reduceExistingSuggestions'](_0x2db8f3,_0x274eb7){if(0x0==_0x274eb7['length'])return!0x1;let _0x1dcbf0=!0x1;for(const _0x2b96c2 of _0x274eb7){const _0x56217f=this['_findSuggestions'](_0x2b96c2['range'],'attribute')['filter'](_0x218b57=>!_0x218b57['meta']['isNextTo'])['map'](_0x107d99=>_0x107d99['suggestion']),_0x285d8a=_0x3ccdb5({'newValue':_0x2b96c2['newValue']});_0x56217f['filter'](_0x5b2028=>{const [_0x22e31a,_0x4c55a9]=_0x5b2028['subType']['split']('|');return _0x22e31a==_0x2b96c2['key']&&_0x4c55a9!=_0x285d8a;})['forEach'](_0x52e2c9=>{this['_reduceSuggestionAttributeRange'](_0x52e2c9,_0x2b96c2['range'],_0x2db8f3),_0x1dcbf0=!0x0;});}return _0x1dcbf0;}['_reduceSuggestionAttributeRange'](_0x158827,_0x3102db,_0x266c95){const _0x17795c=_0x158827['getFirstRange']()['getDifference'](_0x3102db);0x0!==_0x17795c['length']?0x1!==_0x17795c['length']?this['_breakSuggestionMarker'](_0x158827,_0x3102db['start'],_0x3102db['end']):this['_setSuggestionRange'](_0x158827,_0x17795c[0x0]):_0x266c95['removeMarker'](_0x158827['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x271566){this['_editor']=_0x271566,this['_model']=_0x271566['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x12eeff,_0x4d7518,_0x2e63fa,_0x5bb3a8,_0x46a2bd,_0x172e25){return new u(this['_model'],{'type':_0x12eeff,'subType':_0x4d7518,'id':_0x2e63fa,'author':_0x5bb3a8,'creator':_0x5bb3a8,'attributes':_0x46a2bd,'onAttributesChange':_0x172e25,'onAccept':(..._0xc03f5f)=>this['getSuggestionCallback'](_0x12eeff,_0x4d7518,'accept')(..._0xc03f5f),'onDiscard':(..._0x61209a)=>this['getSuggestionCallback'](_0x12eeff,_0x4d7518,'discard')(..._0x61209a)});}['registerCustomCallback'](_0x286e88,_0x41766f,_0x495cf9,_0x74949b){const _0x2da445=_0x286e88+':'+_0x41766f+':'+_0x495cf9;this['_customCallbacks']['set'](_0x2da445,_0x74949b);}['getSuggestionCallback'](_0xc49d4d,_0x1b3efe,_0x564433){const _0x5c13c7=_0xc49d4d+':'+_0x1b3efe+':'+_0x564433;return this['_customCallbacks']['get'](_0x5c13c7)||this['_defaultCallbacks']['get'](_0xc49d4d+':'+_0x564433);}['_registerDefaultCallbacks'](){const _0x21faba=()=>!0x1,_0x5cfcbc=_0x565338=>{_0x565338['sort']((_0x353966,_0x2acac8)=>_0x353966['start']['isBefore'](_0x2acac8['start'])?0x1:-0x1),this['_model']['change'](_0x3b2dbd=>{for(const _0x80fbc3 of _0x565338){let _0x2674f3;_0x2674f3=_0x80fbc3['end']['isAtEnd']&&_0x80fbc3['end']['parent']==_0x80fbc3['start']['nodeAfter']?_0x3b2dbd['createSelection'](_0x80fbc3['start']['nodeAfter'],'on'):_0x3b2dbd['createSelection'](_0x80fbc3),this['_model']['deleteContent'](_0x2674f3,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x588d63=(_0x13d4c0,_0x4cf024)=>{_0x4cf024&&this['_model']['change'](_0x4deb1b=>{const {commandName:_0x2e50ca,commandParams:_0x4ba49e=[]}=_0x4cf024,_0x1450c5=_0x13d4c0['map'](_0x465fc4=>(Vt(_0x465fc4)&&(_0x465fc4=this['_model']['createRange'](_0x465fc4['end'])),_0x465fc4))['filter'](_0x2172ba=>'$graveyard'!==_0x2172ba['root']['rootName']);if(_0x1450c5['length']<0x1)return;const _0x3e573c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x3c832a=>_0x4d4c67['fromRange'](_0x3c832a));_0x4deb1b['setSelection'](_0x1450c5);for(const _0x1cd26b of this['_editor']['commands']['commands']())_0x1cd26b['refresh']();_0x4ba49e['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x2e50ca,..._0x4ba49e);const _0xc74c0f=_0x3e573c['filter'](_0x22f700=>'$graveyard'!=_0x22f700['root']['rootName']);_0xc74c0f['length']>0x0&&_0x4deb1b['setSelection'](_0xc74c0f);for(const _0x587a93 of _0x3e573c)_0x587a93['detach']();});},_0x50b874=(_0x2972a6,_0x1f2a79)=>0x1==_0x2972a6['length']&&0x1==_0x1f2a79['length']&&_0x2972a6[0x0]['end']['isEqual'](_0x1f2a79[0x0]['start']),_0x583b7a=(_0x44a75c,_0x18f106,_0xabefdc,_0x3fe430)=>Ht(_0x44a75c,_0x18f106,_0xabefdc,_0x3fe430,this['_model'])?[_0x44a75c,_0x18f106]:Ht(_0x18f106,_0x44a75c,_0x3fe430,_0xabefdc,this['_model'])?[_0x18f106,_0x44a75c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x21faba),this['_defaultCallbacks']['set']('insertion:discard',_0x5cfcbc),this['_defaultCallbacks']['set']('insertion:join',_0x50b874),this['_defaultCallbacks']['set']('insertion:chain',_0x583b7a),this['_defaultCallbacks']['set']('deletion:accept',_0x5cfcbc),this['_defaultCallbacks']['set']('deletion:discard',_0x21faba),this['_defaultCallbacks']['set']('deletion:join',_0x50b874),this['_defaultCallbacks']['set']('deletion:chain',_0x583b7a),this['_defaultCallbacks']['set']('formatInline:accept',_0x588d63),this['_defaultCallbacks']['set']('formatInline:discard',_0x21faba),this['_defaultCallbacks']['set']('formatInline:join',_0x50b874),this['_defaultCallbacks']['set']('formatInline:chain',_0x21faba),this['_defaultCallbacks']['set']('formatBlock:accept',_0x588d63),this['_defaultCallbacks']['set']('formatBlock:discard',_0x21faba),this['_defaultCallbacks']['set']('formatBlock:join',_0x50b874),this['_defaultCallbacks']['set']('formatBlock:chain',_0x21faba),this['_defaultCallbacks']['set']('attribute:accept',_0x21faba),this['_defaultCallbacks']['set']('attribute:discard',(_0x326b10,_0x40930f)=>{if(!_0x40930f)return;const _0xec8081=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xeef9a6=>{if(_0x40930f['key']==m)for(const _0x227f73 of _0x326b10){const _0x3ed5ca=_0x227f73['start']['nodeAfter'],_0x1dbff1=_0x40930f['oldValue'];_0xeef9a6['rename'](_0x3ed5ca,_0x1dbff1);}else{if(_0xec8081['_isBlockAttribute'](_0x40930f['key'])){for(const _0x19bebe of _0x326b10)void 0x0!==_0x40930f['oldValue']?_0xeef9a6['setAttribute'](_0x40930f['key'],_0x40930f['oldValue'],_0x19bebe['start']['nodeAfter']):_0xeef9a6['removeAttribute'](_0x40930f['key'],_0x19bebe['start']['nodeAfter']);}else{for(const _0x24e1c6 of _0x326b10)_0x40930f['oldValue']?_0xeef9a6['setAttribute'](_0x40930f['key'],_0x40930f['oldValue'],_0x24e1c6):_0xeef9a6['removeAttribute'](_0x40930f['key'],_0x24e1c6);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x50b874);}}function Ot(_0x546122,_0x220bf4,_0x10746e){for(const _0x112dc4 of _0x220bf4['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x112dc4['root']==_0x112dc4)return!0x1;if(!_0x10746e['containsItem'](_0x112dc4))return!0x1;if(_0x546122['isObject'](_0x112dc4)||_0x546122['isLimit'](_0x112dc4))return!0x0;}return!0x1;}function Vt(_0x121628){return _0x121628['end']['parent']==_0x121628['start']['nodeAfter']&&_0x121628['end']['isAtStart'];}function Ut(_0x3cb1fe,_0x2b2ca,_0x21979f,_0x1c4f83){const _0x2709fa=_0x23dd7f=>!_0x23dd7f['item']['is']('$textProxy')&&!_0x1c4f83['isObject'](_0x23dd7f['item']),_0xf4c66=_0x3cb1fe['start']['getLastMatchingPosition'](_0x2709fa),_0x1ad226=_0x3cb1fe['end']['getLastMatchingPosition'](_0x2709fa,{'direction':'backward'});return(!_0x3cb1fe['start']['isEqual'](_0xf4c66)||!_0x3cb1fe['end']['isEqual'](_0x1ad226))&&(_0xf4c66['isBefore'](_0x1ad226)?_0x21979f['updateMarker'](_0x2b2ca,{'range':_0x21979f['createRange'](_0xf4c66,_0x1ad226)}):_0x21979f['removeMarker'](_0x2b2ca),!0x0);}function Gt(_0x38e104){return _0x3ccdb5(_0x38e104);}function Ft(_0x226a62){const _0x2d4404=_0x226a62['start']['nodeAfter'];return _0x2d4404&&_0x2d4404['is']('element');}function Pt(_0x5a5224,_0x51d070){return null==_0x5a5224['end']['nodeBefore']&&_0x5a5224['end']['parent']==_0x5a5224['start']['nodeAfter']?Lt(_0x5a5224['start']['nodeAfter'],_0x51d070):_0x5a5224;}function Lt(_0xe0e4fb,_0x3a8367){const _0x3b3fef=_0x3a8367['schema']['isObject'](_0xe0e4fb)||_0x3a8367['schema']['isSelectable'](_0xe0e4fb);return _0x3a8367['createRange'](_0x3a8367['createPositionAt'](_0xe0e4fb,'before'),_0x3b3fef?_0x3a8367['createPositionAfter'](_0xe0e4fb):_0x3a8367['createPositionAt'](_0xe0e4fb,'end'));}function Ht(_0x3bb278,_0x3030f2,_0x44d268,_0x4a688c,_0x58ae06){if(_0x3bb278['next'])return!0x1;if(!Jt(_0x3bb278,_0x3030f2))return!0x1;if(_0x44d268['end']['isEqual'](_0x4a688c['start']))return!0x0;if(_0x3bb278['type']!=_0x3030f2['type'])return!0x1;if(!_0x44d268['end']['isTouching'](_0x4a688c['start']))return!0x1;const _0x3d2d9a=_0x58ae06['createRange'](_0x44d268['end'],_0x4a688c['start'])['getWalker']();for(const _0x464b27 of _0x3d2d9a)if(['elementStart','elementEnd']['includes'](_0x464b27['type'])&&_0x58ae06['schema']['isLimit'](_0x464b27['item']))return!0x1;return!0x0;}function Jt(_0x1fd85f,_0x3ab059){if(!_0x1fd85f['_isDataLoaded']||!_0x3ab059['_isDataLoaded'])return!0x1;const _0x1755a4=new Set(Object['keys'](_0x1fd85f['attributes'])),_0x144bed=new Set(Object['keys'](_0x3ab059['attributes']));if(_0x1755a4['delete']('groupId'),_0x144bed['delete']('groupId'),0x0==_0x1755a4['size']&&0x0==_0x144bed['size'])return!0x0;if(_0x1755a4['size']!=_0x144bed['size'])return!0x1;const _0x29d4bd={..._0x1fd85f['attributes']},_0x33fdc4={..._0x3ab059['attributes']};return delete _0x29d4bd['groupId'],delete _0x33fdc4['groupId'],JSON['stringify'](_0x29d4bd)==JSON['stringify'](_0x33fdc4);}function qt(_0x39b22d,_0x55f04a){const _0x3de90b=zt(_0x39b22d['attributes']),_0x3fc490=zt(_0x55f04a);if(!_0x39b22d['_isDataLoaded'])return!0x1;for(const _0x2ff67d of Object['keys'](_0x3fc490))if(!_0x36b028(_0x3de90b[_0x2ff67d],_0x3fc490[_0x2ff67d]))return!0x1;return!0x0;}function zt(_0x26ac5c){const _0x4400c9=Object['assign']({},_0x26ac5c);return delete _0x4400c9['skipNestingCheck'],delete _0x4400c9['tablePasteChainId'],_0x4400c9;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x58359f(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x17ab33,_0x7c38ff,_0x4ddc44,_0x5eb861){super(),this['model']=_0x7c38ff,this['view']=_0x4ddc44,this['commentThreadController']=_0x5eb861,this['_editor']=_0x17ab33,this['_acceptCommand']=_0x17ab33['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x17ab33['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x176938,_0x1c8c41)=>_0x176938||_0x1c8c41),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x526c37=>_0x526c37&&this['_editor']['model']['canEditAt'](_0x7c38ff['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x43be3e=>_0x43be3e&&this['_editor']['model']['canEditAt'](_0x7c38ff['getRanges']())),this['_pendingAction']=null,_0x4ddc44['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x4ddc44,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x4ddc44,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x4ddc44,'change:isDirty',()=>{_0x4ddc44['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 _0x526917=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x526917);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x3fbac4{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x409fa8,_0x551102,_0x1a4b68,_0x1e0d0a){super(_0x409fa8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2050da(_0x409fa8,o(_0x409fa8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x551102['authoredAt']),this['bind']('authoredAt')['to'](_0x551102),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x551102,'authoredAt',this,'descriptionParts',(_0x696db8,_0x54a9a1,_0x46a72d)=>{const _0x594cb0=_0x46a72d['map'](_0x30db84=>ls(_0x30db84['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x696db8-0x1,_0x551102['author']['name'],_0x54a9a1?_0x1e0d0a['formatDateTime'](_0x54a9a1):'',new DOMParser()['parseFromString'](_0x594cb0,'text/html')['body']['textContent']]);}),this['focusables']=new _0x3c8e93(),this['focusTracker']=new _0x9b83c3(),this['keystrokes']=new _0x1a0786(),this['focusCycler']=new _0x348920({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x426a81=>_0x426a81['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x551102,this['_localUser']=_0x1a4b68,this['_config']=_0x1e0d0a,_0x1e0d0a['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x56a950(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x687466}=this['_config'];this['commentsListView']=new _0x687466(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',_0x52f2c1=>_0x52f2c1+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x19cb9c,_0x17c545)=>_0x19cb9c||!!_0x17c545);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4a4328}=this['_config'],_0x5c4485=new _0x4a4328(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x3cb3d5=_0x5c4485['commentInputView'];return _0x5c4485['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x3cb3d5,'value',(_0x4b0fe0,_0x18222f,_0x2ee954)=>!!_0x2ee954||_0x4b0fe0&&!_0x18222f),_0x3cb3d5['on']('submit',(_0x4722cd,_0x1b2c18)=>{this['fire']('addComment',_0x1b2c18),_0x3cb3d5['editor']['setData']('');}),_0x3cb3d5['on']('cancel',()=>this['focus']()),_0x3cb3d5['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x5c4485;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x20fcc7,_0x20508f,_0x48e543,_0x1ad5b6){super(_0x20fcc7,_0x20508f,_0x48e543,_0x1ad5b6),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x175ead=>_0x175ead&&_0x175ead[0x0]?_0x175ead[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3260f5,_0x3b47d3)=>{let _0x4b6284='';for(const _0x3d27a8 of _0x3260f5)_0x4b6284+='<p>'+ls(_0x3d27a8['content'],_0x3d27a8['color'])+'</p>';return _0x3b47d3?_0x4b6284:_0x275e03(_0x4b6284,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x20fcc7,'Accept\x20suggestion'),_0x4d6773['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x20fcc7,'Discard\x20suggestion'),_0x4d6773['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x4a3114(_0x20fcc7,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x1a860a=this['bindTemplate'],_0x530ec0=[{'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':_0x1a860a['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x1a860a['to']('authoredAt',_0x30b35d=>this['_config']['formatDateTime'](_0x30b35d))}]}]},{'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']&&_0x530ec0['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x57d3d1={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x1a860a['if']('isActive','ck-suggestion-wrapper--active'),_0x1a860a['to']('type',_0x41f783=>'ck-suggestion-'+_0x41f783),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x1a860a['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x530ec0},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x57d3d1['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)),_0x57d3d1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xbaa636,_0x29c0a8,_0xb333ee)=>{this['_descriptionElement']['innerHTML']=_0xb333ee;});}['_createButton'](_0x34e7e4,_0x449c9e,_0x23479d,_0x75ea62,_0x346193){const _0x15a605=new _0x2d4084(this['locale']);return _0x15a605['set']({'label':_0x34e7e4,'icon':_0x449c9e,'tooltip':!0x0,'tooltipPosition':_0x346193}),_0x15a605['extendTemplate']({'attributes':{'class':_0x23479d}}),_0x15a605['on']('execute',()=>{this['fire'](_0x75ea62,this['_model']['id']);}),_0x15a605;}['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;}}var ce='<!--\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 _0xa2e54a{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x4e6be2,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x33633f){super(_0x33633f),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x290ef1=this['editor']['config'];_0x290ef1['define']('trackChanges.SuggestionThreadView',re),_0x290ef1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x290ef1['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x3e5385,_0x134eac){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x4aeee9,_0x533b2d]of this['_handleControllerBuffer']){const _0x18ca20=this['_suggestionToController']['has'](_0x4aeee9);_0x18ca20||_0x533b2d?_0x18ca20&&_0x533b2d&&this['_destroyController'](_0x4aeee9):this['_initializeController'](_0x4aeee9);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x3e5385,_0x134eac);}['init'](){const _0x200936=this['editor'],_0x5c659a=_0x200936['plugins']['get']('TrackChangesEditing'),_0x31cdd7=_0x200936['plugins']['get']('Annotations'),_0x1be9b8=_0x200936['plugins']['get']('EditorAnnotations'),_0x140f99=_0x200936['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x1be9b8['addSourceCollector'](()=>{const _0x4562f3=[];for(const [_0xe3067f,_0x2db6e0]of Array['from'](this['_suggestionToController'])){const _0x3b3ba1=_0xe3067f['getAllAdjacentSuggestions'](),_0x4c34f6=[];for(const _0x3f6726 of _0x3b3ba1){if(!_0x3f6726['isInContent'])continue;if(_0x3f6726['isMultiRange']){_0x4c34f6['push'](..._0x3f6726['getRanges']());continue;}const _0x2bb0c9=_0x3f6726['getFirstRange']();if(_0x4c34f6['length']>0x0){const _0x4b1653=_0x4c34f6[0x0]['getJoined'](_0x2bb0c9);if(_0x4b1653){_0x4c34f6[0x0]=_0x4b1653;continue;}}_0x4c34f6['push'](_0x2bb0c9);}_0x4562f3['push']([_0x2db6e0['view'],_0x4c34f6]);}return _0x4562f3;}),this['listenTo'](_0x5c659a,'suggestionLoaded',(_0x8222e0,_0x14872b)=>{this['listenTo'](_0x14872b,'change:previous',(_0x4055ac,_0x1a5737,_0x278e54,_0x5711f5)=>{_0x14872b['isInContent']&&(null==_0x278e54?(this['_updateController'](_0x5711f5['head']),this['_handleSuggestionControllerDelayed'](_0x14872b,!0x1)):(this['_updateController'](_0x278e54['head']),null==_0x5711f5&&this['_handleSuggestionControllerDelayed'](_0x14872b,!0x0)));}),null!==_0x14872b['previous']?this['_updateController'](_0x14872b['head']):this['_handleSuggestionControllerDelayed'](_0x14872b,!0x1);}),this['listenTo'](_0x5c659a,'suggestionUnloaded',(_0x2a2894,_0x47472f,_0x2ad3d6)=>{this['stopListening'](_0x47472f,'change:previous'),this['_handleControllerBuffer']['delete'](_0x47472f),this['_suggestionToController']['has'](_0x47472f)&&this['_destroyController'](_0x47472f),_0x2ad3d6&&this['_updateController'](_0x2ad3d6['head']);}),this['listenTo'](_0x5c659a,'suggestionChanged',(_0x4fc68d,_0x252d8b)=>{this['_updateController'](_0x252d8b);}),this['listenTo'](_0x31cdd7,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x140f99,'addComment',(_0xda21dc,{threadId:_0x3aa797,isFromAdapter:_0x3ddbdf})=>{if(_0x3ddbdf||!_0x5c659a['hasSuggestion'](_0x3aa797))return;const _0x41eb59=_0x5c659a['getSuggestion'](_0x3aa797);this['_suggestionToController']['get'](_0x41eb59)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x55bca3=this['editor']['plugins']['get']('Annotations'),_0x4b12c3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d5cfb=Array['from'](_0x55bca3['activeAnnotations'],_0x2c0c4d=>_0x2c0c4d['innerView'])['filter'](_0x44596f=>this['_viewToController']['has'](_0x44596f)),_0x4133c4=[];for(const _0x2f1014 of _0x2d5cfb){const _0x57b148=this['_viewToController']['get'](_0x2f1014)['model']['getAllAdjacentSuggestions']();_0x4133c4['push'](..._0x57b148['reduce']((_0x5c27f1,_0x490e38)=>[..._0x5c27f1,..._0x490e38['getMarkerNames']()],[]));}_0x4b12c3['activeMarkers']=_0x4133c4;}['_addUIComponentsToFactory'](){const _0x4cb391=this['editor'],_0x24d474=_0x4cb391['locale'],_0x2fa29b=o(_0x24d474,'Track\x20changes'),_0x34eb4d=new Wt([{'type':'switchbutton','model':new _0x29984a({'withText':!0x0,'isToggleable':!0x0,'label':_0x2fa29b,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x29984a({'withText':!0x0,'label':o(_0x24d474,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29984a({'withText':!0x0,'label':o(_0x24d474,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29984a({'withText':!0x0,'label':o(_0x24d474,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x29984a({'withText':!0x0,'label':o(_0x24d474,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x2da4d5 of _0x34eb4d)if(he(_0x2da4d5)){const _0x296514=_0x4cb391['commands']['get'](_0x2da4d5['model']['commandName']);_0x2da4d5['model']['bind']('isOn','isEnabled')['to'](_0x296514,'value','isEnabled');}_0x4cb391['ui']['componentFactory']['add']('trackChanges',_0x15199e=>this['_createToolbarButton'](_0x15199e,_0x34eb4d,_0x2fa29b)),_0x4cb391['ui']['componentFactory']['add']('menuBar:trackChanges',_0x26e2a1=>this['_createMenuBarMenu'](_0x26e2a1,_0x34eb4d,_0x2fa29b));}['_createToolbarButton'](_0xdeeff5,_0x3ffcf8,_0x1d4ce9){const _0x2e8463=Qt(_0xdeeff5,_0x1a6566),_0x803981=this['editor']['commands']['get']('trackChanges');_0x2e8463['buttonView']['set']({'tooltip':_0x1d4ce9,'label':_0x1d4ce9,'icon':ce}),_0x2e8463['buttonView']['bind']('isOn')['to'](_0x803981,'value'),_0x2e8463['buttonView']['on']('execute',()=>{_0x803981['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2e8463,_0x3ffcf8,{'role':'menu'});const _0x4cd41f=[];for(const _0x1142ca of _0x3ffcf8)he(_0x1142ca)&&_0x4cd41f['push'](this['editor']['commands']['get'](_0x1142ca['model']['commandName']));const _0x322169=_0x2e8463['buttonView'];return _0x322169['actionView']['unbind']('isEnabled'),_0x322169['arrowView']['unbind']('isEnabled'),_0x322169['actionView']['bind']('isEnabled')['to'](_0x803981,'isEnabled'),_0x322169['arrowView']['bind']('isEnabled')['toMany'](_0x4cd41f,'isEnabled',(..._0x708658)=>_0x708658['some'](_0x5b8fd3=>_0x5b8fd3)),_0x2e8463['on']('execute',_0x3889bb=>{this['editor']['execute'](_0x3889bb['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e8463;}['_createMenuBarMenu'](_0x52ad67,_0x435dfe,_0x4104d3){const _0x479557=new Yt(_0x52ad67),_0x59fabf=this['editor']['commands']['get']('trackChanges');_0x479557['buttonView']['set']({'label':_0x4104d3,'icon':ce});const _0x3a97f5=new Zt(_0x52ad67);for(const _0x51285a of _0x435dfe){if('separator'==_0x51285a['type']){_0x3a97f5['items']['add'](new Xt(_0x52ad67));continue;}const _0x226441=new te(_0x52ad67,_0x479557),_0x11ede6=new _0x276706(_0x52ad67),_0x2b4773=_0x51285a['model'];_0x11ede6['bind'](...Object['keys'](_0x2b4773))['to'](_0x2b4773),_0x11ede6['delegate']('execute')['to'](_0x479557),_0x11ede6['on']('execute',()=>{this['editor']['execute'](_0x2b4773['commandName']),this['editor']['editing']['view']['focus']();}),_0x226441['children']['add'](_0x11ede6),_0x3a97f5['items']['add'](_0x226441);}return _0x479557['bind']('isEnabled')['to'](_0x59fabf,'isEnabled'),_0x479557['panelView']['children']['add'](_0x3a97f5),_0x479557;}['_initializeController'](_0x465d4b){const _0x1f84e7=this['editor'],_0x431d09=_0x1f84e7['config'],_0x529aa8=_0x1f84e7['plugins']['get']('Annotations'),_0x11e1d2=_0x1f84e7['plugins']['get']('CommentsRepository'),_0x2dd02d=_0x1f84e7['plugins']['get']('EditorAnnotations'),_0x52f916=_0x1f84e7['plugins']['get'](_0x4e6be2)['me'],_0x574ccf=_0x431d09['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x27fa78,CommentThreadInputView:_0x182938}=_0x1f84e7['plugins']['get']('CommentsUI');let _0x29bfe4,_0xf58ba7;this['_annotationViews']['has'](_0x465d4b['id'])?(_0xf58ba7=this['_annotationViews']['get'](_0x465d4b['id']),_0x29bfe4=_0xf58ba7['mainView']):(_0x29bfe4=new _0x574ccf(_0x1f84e7['locale'],_0x465d4b,_0x52f916,{'disableComments':this['_disableComments'],'editorConfig':_0x431d09['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x431d09['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x431d09['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x431d09['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x484a35(_0x431d09['get']('locale')),'CommentView':_0x431d09['get']('comments')['CommentView'],'CommentsListView':_0x27fa78,'CommentThreadInputView':_0x182938}),_0x29bfe4['acceptButton']['on']('execute',()=>{_0x1f84e7['editing']['view']['focus']();}),_0x29bfe4['discardButton']['on']('execute',()=>{_0x1f84e7['editing']['view']['focus']();}),_0xf58ba7=_0x529aa8['createAnnotationView'](this['editor']['locale'],_0x29bfe4),_0xf58ba7['bind']('isDirty')['to'](_0x29bfe4,'isDirty'),_0xf58ba7['bind']('length')['to'](_0x29bfe4),_0xf58ba7['bind']('type')['to'](_0x29bfe4,'type',_0x5f3462=>'suggestion-'+_0x5f3462),this['listenTo'](_0x29bfe4,'escape',()=>{_0x1f84e7['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x465d4b['id'],_0xf58ba7));const _0x530f77=_0x11e1d2['createCommentThreadController'](_0x465d4b['commentThread'],_0x29bfe4),_0x404d5f=new ae(_0x1f84e7,_0x465d4b,_0x29bfe4,_0x530f77),_0x22e04e=_0x465d4b['getAllAdjacentSuggestions']()['filter'](_0x223d21=>_0x223d21['isInContent']);_0x29bfe4['descriptionParts']=_0x1f84e7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x22e04e),this['_suggestionToController']['set'](_0x465d4b,_0x404d5f),this['_viewToController']['set'](_0x29bfe4,_0x404d5f);const _0x51afaa=_0x529aa8['createAnnotation']({'view':_0xf58ba7,'target':()=>{const _0x358aa5=[],_0x1c974a=_0x465d4b['getAllAdjacentSuggestions']()['filter'](_0x47b924=>_0x47b924['isInContent']);for(const _0x5b7cd2 of _0x1c974a)_0x358aa5['push'](..._0x5b7cd2['getMarkers']());return _0x44f2b1(_0x1f84e7['editing'],_0x358aa5);},'type':()=>'suggestion-'+_0x404d5f['view']['type']});_0x11e1d2['_bindAnnotationToEditors'](_0x29bfe4,_0x51afaa),_0x529aa8['add'](_0x51afaa),_0x2dd02d['registerAnnotation'](_0x51afaa);}['_destroyController'](_0xf56b8c){const _0x3690d5=this['editor']['plugins']['get']('CommentsRepository'),_0x2bfbf5=this['editor']['plugins']['get']('Annotations'),_0x2a3204=this['_suggestionToController']['get'](_0xf56b8c),_0x3c7f3a=_0x2a3204['view'],_0x976dd6=_0x2bfbf5['getByInnerView'](_0x3c7f3a);_0x3690d5['_unbindEditors'](_0x3c7f3a),_0x976dd6&&_0x2bfbf5['remove'](_0x976dd6),this['_suggestionToController']['delete'](_0xf56b8c),this['_viewToController']['delete'](_0x3c7f3a),_0x2a3204['destroy']();}['_updateController'](_0x51dfed){if(!_0x51dfed['isInContent']||!this['_suggestionToController']['has'](_0x51dfed))return;const _0x460dea=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3808de=this['_suggestionToController']['get'](_0x51dfed),_0x2281c9=_0x51dfed['getAllAdjacentSuggestions']();_0x3808de['view']['descriptionParts']=_0x460dea['descriptionFactory']['getDescriptions'](_0x2281c9);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x307c55,(_0x4422ec,_0x49e1e0)=>{const _0x350585=this['editor']['plugins']['get'](k),_0x80eb23=this['editor']['plugins']['get'](p);if(!_0x80eb23['activeMarkers']['length'])return;const {id:_0x29af1b}=_0x80eb23['_splitMarkerName'](_0x80eb23['activeMarkers'][0x0]),_0x594ccb=_0x350585['getSuggestion'](_0x29af1b);_0x594ccb&&(this['_suggestionToController']['get'](_0x594ccb)['view']['focus'](),_0x49e1e0());});}['destroy'](){for(const _0x1b3ebf of this['_suggestionToController']['keys']())this['_destroyController'](_0x1b3ebf);for(const _0x2f53e6 of this['_annotationViews']['values']())_0x2f53e6['mainView']['destroy']();super['destroy']();}}function he(_0x17d6f7){return'model'in _0x17d6f7;}class k extends _0xa2e54a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2fb985){this['editor']['plugins']['get'](p)['adapter']=_0x2fb985;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x367134){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x367134);}['getSuggestions']({skipNotAttached:_0x523317=!0x1,toJSON:_0x42d6a3=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x523317,'toJSON':_0x42d6a3});}['getSuggestion'](_0x36a9f){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x36a9f);}}const T=['Pagination'];class P extends _0xa2e54a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x4be74f=this['editor'];if(_0x4be74f['config']['define']('trackChangesData.editorCreator',_0x1cc634=>{const _0x48ec9d=_0x4be74f['model']['document']['getRootNames']()['reduce']((_0x3c8b03,_0x4114b1)=>(_0x3c8b03[_0x4114b1]='',_0x3c8b03),{});return _0x4be74f['constructor']['create'](_0x48ec9d,_0x1cc634);}),'function'!=typeof _0x4be74f['config']['get']('trackChangesData')['editorCreator'])throw new _0x32e29e('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x599053){return N(this['editor'],!0x0,_0x599053);}['getDataWithDiscardedSuggestions'](_0xa84891){return N(this['editor'],!0x1,_0xa84891);}}class D extends _0xa2e54a{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x4bac85){super(_0x4bac85),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(_0x299014){return void 0x0!==_0x299014['getRootsAttributes'];}async function N(_0x440c4c,_0x4f2bff,_0x1c5ebd){const _0x4b40ae=_0x1624c3(_0x440c4c,T);_0x4b40ae['plugins']['push'](p,D),_0x4b40ae['rootsAttributes']=v(_0x440c4c)?_0x440c4c['getRootsAttributes']():void 0x0;const _0x537b45=document['createDocumentFragment'](),_0x511e33=_0x440c4c['config']['get']('trackChangesData')['editorCreator'],_0x6bddd5=await _0x511e33(_0x4b40ae,()=>function(_0xa7170c){const _0x14020a=document['createElement']('div');return _0xa7170c['appendChild'](_0x14020a),_0x14020a;}(_0x537b45));!function(_0x2d7c44,_0x5368d7){const _0x5caf70=_0x2d7c44['model']['document']['getRootNames']()['reduce']((_0x517b99,_0x554719)=>(_0x517b99[_0x554719]=_0x2d7c44['data']['get']({'rootName':_0x554719}),_0x517b99),{}),_0x499cb8=_0x2d7c44['plugins']['get']('Users')['users']['map'](_0x29e692=>({'id':_0x29e692['id'],'name':_0x29e692['name']})),_0x2cde01=_0x2d7c44['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x59f99a=_0x2d7c44['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x7e6dd9=_0x5368d7['plugins']['get']('Users'),_0x2a0340=_0x5368d7['plugins']['get']('TrackChangesEditing'),_0x138634=_0x5368d7['plugins']['get']('CommentsRepository');for(const _0x25fbdf of _0x138634['getCommentThreads']())_0x25fbdf['remove']();for(const _0x3edbb7 of _0x499cb8)_0x7e6dd9['getUser'](_0x3edbb7['id'])||_0x7e6dd9['addUser'](_0x3edbb7);_0x7e6dd9['me']||_0x7e6dd9['useAnonymousUser']();for(const _0x1c5169 of _0x59f99a)_0x138634['addCommentThread'](_0x1c5169);for(const _0x27228a of _0x2cde01)_0x2a0340['addSuggestionData'](_0x27228a);_0x5368d7['data']['set'](_0x5caf70);}(_0x440c4c,_0x6bddd5),_0x6bddd5['execute'](_0x4f2bff?'acceptAllSuggestions':'discardAllSuggestions');const _0x33f4e6=v(_0x6bddd5)?_0x6bddd5['getFullData'](_0x1c5ebd):_0x6bddd5['data']['get'](_0x1c5ebd);return await _0x6bddd5['destroy'](),_0x33f4e6;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2e1a44,PendingActions as _0x518fdf,icons as _0x19bbc4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x1fc2fe,ObservableMixin as _0x1f3034,uid as _0x29b31c,insertToPriorityArray as _0x200a72,priorities as _0x1a97e2,logWarning as _0x31e38f,getEnvKeystrokeText as _0x1a1bdd,FocusTracker as _0x1a9f6b,KeystrokeHandler as _0x2c96a7,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x363b74,View as _0x4cb079,ViewCollection as _0x1c8441,FocusCycler as _0x56f042,ViewModel as _0x75878a,createDropdown as Qt,SplitButtonView as _0x49ed9e,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x355737}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x259150,hashObject as _0x4175a8,surroundingMarkersDetector as _0x126c12,ENTER_THREAD_KEYSTROKE as _0x1e406e,AriaDescriptionView as _0x30422d,setupThreadKeyboardNavigation as _0x36ea02,trimHtml as _0x5dc161,UserView as _0x50c5e8,LateFocusButtonView as _0x3462ec,getDateTimeFormatter as _0x18c299,getAllMarkersDomElementsSorted as _0x5e17af,sanitizeEditorConfig as _0x434898}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x3934c4,LiveRange as _0x416c59,LivePosition as _0x2f17bb}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0xd3b1fe,toWidget as _0x530114}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x45d85c,set as _0x196cd5,isEqual as _0xabcc16,unset as _0x45ab55,omit as Tt}from'lodash-es';import{Delete as _0x29f493,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x219a76,ShiftEnter as _0x4fd307}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x3562fd,_0x31b231){super(_0x3562fd),this['_enabledCommands']=_0x31b231,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 _0x304493 of this['editor']['commands']['commands']())_0x304493['affectsData']&&!this['_enabledCommands']['has'](_0x304493)&&_0x304493['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x3fb2d5 of this['editor']['commands']['commands']())_0x3fb2d5['affectsData']&&!this['_enabledCommands']['has'](_0x3fb2d5)&&_0x3fb2d5['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x473385,_0xa325fd){super(_0x473385),this['_suggestions']=_0xa325fd,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0xa13adf){const _0x42244a=this['_suggestions']['get'](_0xa13adf);if(!_0x42244a)throw new _0x1fc2fe('track-changes-accept-suggestion-not-found',this);const _0x258a91=_0x42244a['getRanges']();this['editor']['model']['canEditAt'](_0x258a91)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x42244a);}}class R extends ts{['_suggestions'];constructor(_0x52efff,_0x44c357){super(_0x52efff),this['_suggestions']=_0x44c357,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x212f8d){const _0x33b09b=this['_suggestions']['get'](_0x212f8d);if(!_0x33b09b)throw new _0x1fc2fe('track-changes-discard-suggestion-not-found',this);const _0x54c754=_0x33b09b['getRanges']();this['editor']['model']['canEditAt'](_0x54c754)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x33b09b);}}function ls(_0x4b68aa,_0x39b7ca){let _0x381f3d='';return _0x381f3d+=_0x4b68aa['split']('*')['map']((_0x395b31,_0xd6a695)=>_0xd6a695%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x395b31)+'</span>':nn(_0x395b31))['join'](''),_0x39b7ca&&(_0x381f3d+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x39b7ca['value']+'\x22\x20title=\x22'+_0x39b7ca['title']+'\x22></span>'),_0x381f3d;}function nn(_0x47bab7){const _0x463d14=document['createElement']('span');return _0x463d14['innerText']=_0x47bab7,_0x463d14['innerHTML'];}function ss(_0x4028af){return _0x4028af['sort']((_0x374381,_0x19abba)=>'deletion'==_0x374381['type']&&'deletion'!=_0x19abba['type']?-0x1:'deletion'!=_0x374381['type']&&'deletion'==_0x19abba['type']?0x1:0x0);}function to(_0xdbdf84,_0x523d1b){let _0x371875,_0x487a19=0x0;const _0x173222=[],_0x264e0a=_0x523d1b['schema'];for(;_0x487a19<_0xdbdf84['length'];){const _0x479df3=_0xdbdf84[_0x487a19],_0x5c9331=_0xdbdf84[_0x487a19+0x1];_0x371875||(_0x371875=_0x523d1b['createPositionBefore'](_0x479df3)),on(_0x523d1b,_0x479df3,_0x5c9331)||(_0x173222['push'](_0x523d1b['createRange'](_0x371875,_0x264e0a['isObject'](_0x479df3)?_0x523d1b['createPositionAfter'](_0x479df3):_0x523d1b['createPositionAt'](_0x479df3,'end'))),_0x371875=null),_0x487a19++;}return _0x173222;}function on(_0x59bc8a,_0x362e05,_0x1fbcee){if(!_0x1fbcee)return!0x1;const _0x3aca2f=_0x59bc8a['createPositionAfter'](_0x362e05),_0x236ad8=_0x59bc8a['createPositionBefore'](_0x1fbcee);return _0x3aca2f['isTouching'](_0x236ad8);}function rs(_0x37af4d,_0x2e9803,_0x379798){for(;_0x379798['length'];){const _0x36c0df=_0x379798['splice'](0x0,0x64);_0x37af4d['change'](()=>{for(const _0x458a87 of _0x36c0df)_0x458a87['isInContent']&&_0x2e9803['execute'](_0x458a87['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x13487d,_0x4ebcbb,_0x5ac910){super(_0x13487d),this['_command']=_0x4ebcbb,this['_suggestions']=_0x5ac910,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x5e73cd=Array['from'](this['_suggestions']['values']())['some'](_0x12e042=>_0x12e042['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x5e73cd;}['execute'](){const _0x4458f5=ss(Array['from'](this['_suggestions']['values']()));for(const _0xa6fc4f of _0x4458f5){const _0x5e862d=_0xa6fc4f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5e862d))return;}rs(this['editor']['model'],this['_command'],_0x4458f5);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0xecdba,_0x3f8bc4,_0xcefa8f){super(_0xecdba),this['_command']=_0x3f8bc4,this['_suggestions']=_0xcefa8f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x679c02=this['editor']['model']['document']['selection'],_0x373322=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x52ed9c,_0x11833d){const _0x31de1b=Array['from'](_0x52ed9c['getRanges']()),_0x91b7f8=new Set();for(const _0x21a3e4 of _0x11833d)if(_0x21a3e4['isInContent']){for(const _0xc6f688 of _0x31de1b)for(const _0x26573a of _0x21a3e4['getRanges']())(_0xc6f688['isIntersecting'](_0x26573a)||_0x52ed9c['isCollapsed']&&!_0x21a3e4['isMultiRange']&&_0x21a3e4['next']&&_0x26573a['end']['isTouching'](_0xc6f688['start']))&&_0x91b7f8['add'](_0x21a3e4);}return _0x91b7f8;}(_0x679c02,_0x373322),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xc4b50f=ss(Array['from'](this['_selectedSuggestions']));for(const _0x1c5f7e of _0xc4b50f){const _0x5ad0f0=_0x1c5f7e['getRanges']();if(!this['editor']['model']['canEditAt'](_0x5ad0f0))return;}rs(this['editor']['model'],this['_command'],_0xc4b50f);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x1f3034(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x5665a9,_0x1979ce){super(),this['id']=_0x1979ce['id'],this['type']=_0x1979ce['type'],this['subType']=_0x1979ce['subType']||null,this['author']=_0x1979ce['author'],this['creator']=_0x1979ce['creator']||_0x1979ce['author'],this['isExternal']=Boolean(_0x1979ce['attributes']&&_0x1979ce['attributes']['@external']),this['data']=null,this['_model']=_0x5665a9,this['_onAccept']=_0x1979ce['onAccept'],this['_onDiscard']=_0x1979ce['onDiscard'],this['_onAttributesChange']=_0x1979ce['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1979ce['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 _0x43a523=this;for(;_0x43a523['previous'];)_0x43a523=_0x43a523['previous'];return _0x43a523;}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'](_0x24bfdc){this['_markerNames']['add'](_0x24bfdc);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xddd7e4=>this['_model']['markers']['get'](_0xddd7e4))['filter'](_0x253b14=>_0x253b14);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x3aa882=>{for(const _0x1aab8d of this['getMarkers']())_0x3aa882['removeMarker'](_0x1aab8d);}),this['_markerNames']['clear']();}['removeMarker'](_0x21589f){this['_model']['change'](_0x4a4899=>{_0x4a4899['removeMarker'](_0x21589f);}),this['_markerNames']['delete'](_0x21589f);}['addRange'](_0x236ef9){const _0xe52cdf='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0xe52cdf),this['_model']['change'](_0x5d0e82=>{_0x5d0e82['addMarker'](_0xe52cdf,{'range':_0x236ef9,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3da4c4){for(const _0x3843e of this['getRanges']())if(_0x3843e['isIntersecting'](_0x3da4c4))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x37d2cf=>_0x37d2cf['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x26598c,_0x194274)=>[..._0x26598c,..._0x194274['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x73451c=this['getRanges']();if(0x1!=_0x73451c['length'])return null;const _0x200ad7=_0x73451c[0x0],_0x5e6601=_0x200ad7['start']['nodeAfter'],_0x1a8e4c=_0x200ad7['end']['nodeBefore'];return _0x5e6601 instanceof _0x3934c4?_0x5e6601!=_0x1a8e4c?null:_0x5e6601: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 _0x5c9cf0=[];let _0x3f3e32=this['head'];for(;_0x3f3e32;)_0x5c9cf0['push'](_0x3f3e32),_0x3f3e32=_0x3f3e32['next'];return _0x5c9cf0;}['setAttribute'](_0x4aab6d,_0x451a6d){const _0x54d7b4=_0x45d85c(this['attributes']);_0x196cd5(_0x54d7b4,_0x4aab6d,_0x451a6d),_0xabcc16(_0x54d7b4,this['attributes'])||(this['attributes']=_0x54d7b4,this['_onAttributesChange'](_0x54d7b4));}['removeAttribute'](_0x361543){const _0x52be58=_0x45d85c(this['attributes']);_0x45ab55(_0x52be58,_0x361543),_0xabcc16(_0x52be58,this['attributes'])||(this['attributes']=_0x52be58,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 _0x29b31c()['substr'](0x1,0x5);}}function o(_0x5576fb,_0x137789,_0x49bb85){const t=_0x5576fb['t'];switch(_0x137789){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',_0x49bb85);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x49bb85);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x49bb85);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x49bb85);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x49bb85);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',_0x49bb85);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x49bb85);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',_0x49bb85);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x49bb85);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x49bb85);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x49bb85);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x49bb85);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x49bb85);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x49bb85);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x49bb85);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x49bb85);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x49bb85);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x49bb85);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x49bb85);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x49bb85);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x49bb85);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x49bb85);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x49bb85);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'},_0x49bb85);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x49bb85);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x49bb85);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x49bb85);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x49bb85);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x49bb85);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'},_0x49bb85);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x49bb85);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x49bb85);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x49bb85);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x49bb85);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'},_0x49bb85);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x49bb85);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'},_0x49bb85);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'},_0x49bb85);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x49bb85);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'},_0x49bb85);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x49bb85);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'},_0x49bb85);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x49bb85);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x49bb85);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'ELEMENT_MERGE_FIELD':return t({'id':'ELEMENT_MERGE_FIELD','string':'merge\x20field','plural':'%0\x20merge\x20fields'},_0x49bb85);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'},_0x49bb85);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'},_0x49bb85);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x49bb85);case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'},_0x49bb85);case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'},_0x49bb85);case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'SUGGESTION_THREAD_ARIA_LABEL':return t({'string':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20reply.\x20%3','plural':'Suggestion\x20by\x20%1.\x20Created\x20on\x20%2.\x20%0\x20replies.\x20%3','id':'SUGGESTION_THREAD_ARIA_LABEL'},_0x49bb85);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x137789;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x13951e,_0x449210){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x13951e,this['_locale']=_0x449210;}['getDescriptions'](_0x24e576){const _0x7ab3b7=[],_0x545e15=new Set(),_0x48f549=new Set();for(let _0x57dcc2=0x0;_0x57dcc2<_0x24e576['length'];_0x57dcc2++){const _0x42b3ea=_0x24e576[_0x57dcc2];if(!_0x42b3ea['isInContent'])continue;const _0x19d52f=this['_handleCustomCallbackDescription'](_0x42b3ea);if(_0x19d52f){if(null!=_0x42b3ea['subType']){if(_0x545e15['has'](_0x42b3ea['subType']))continue;_0x545e15['add'](_0x42b3ea['subType']);}_0x7ab3b7['push'](_0x19d52f);}else{if('attribute'!=_0x42b3ea['type'])'insertion'!=_0x42b3ea['type']&&'deletion'!=_0x42b3ea['type']||this['_handleInsertRemoveSuggestionDescription'](_0x7ab3b7,_0x42b3ea,_0x24e576[_0x57dcc2+0x1]);else{const _0x1320f2=_0x42b3ea['data']['key'];if(_0x48f549['has'](_0x1320f2))continue;_0x48f549['add'](_0x42b3ea['data']['key']),_0x1320f2==m?this['_handleRenameSuggestionDescription'](_0x7ab3b7,_0x42b3ea):this['_handleAttributeSuggestionDescription'](_0x7ab3b7,_0x42b3ea);}}}return this['_resolveDescriptionItems'](_0x7ab3b7);}['registerDescriptionCallback'](_0xb94498){this['_customCallbacks']['push'](_0xb94498);}['registerElementLabel'](_0xdb0b4c,_0x11c308,_0x506ce0=_0x1a97e2['normal']){'function'==typeof _0xdb0b4c?_0x200a72(this['_itemLabelsCallbacks'],{'matchingCallback':_0xdb0b4c,'label':_0x11c308,'priority':_0x506ce0}):this['_itemLabels']['set'](_0xdb0b4c,_0x11c308);}['registerAttributeLabel'](_0x220e3f,_0x5ec47d){this['_attributeLabels']['set'](_0x220e3f,_0x5ec47d);}['getItemLabel'](_0x412255,_0x3197c2=0x1){let _0x15457b;for(const _0x1642c5 of this['_itemLabelsCallbacks'])if(_0x1642c5['matchingCallback'](_0x412255)){_0x15457b=_0x1642c5['label'];break;}return _0x15457b||(_0x15457b=this['_itemLabels']['get'](_0x412255['name'])),_0x15457b?_0x15457b(_0x3197c2):0x1!==_0x3197c2?_0x3197c2+'\x20'+_0x412255['name']+'s':''+_0x412255['name'];}['_addDescriptionItems'](_0x411b0f,_0xaf4be6){const _0xb2f9cd=_0xaf4be6['getFirstRange']()['getWalker'](),_0x5810ae='insertion'==_0xaf4be6['type']?'add':'remove';for(const _0x33c606 of _0xb2f9cd){const _0x54ff67=_0x33c606['item'],_0x52d495=_0x411b0f[_0x411b0f['length']-0x1];if(_0x54ff67['is']('$textProxy'))_0x52d495&&_0x52d495['type']['indexOf']('Container')>-0x1&&_0x411b0f['pop'](),_0x52d495&&'text'==_0x52d495['type']?_0x52d495[_0x5810ae]+=_0x54ff67['data']:_0x411b0f['push']({'type':'text','add':'add'==_0x5810ae?_0x54ff67['data']:'','remove':'remove'==_0x5810ae?_0x54ff67['data']:''});else{if(this['_schema']['isObject'](_0x54ff67)){const _0x31823c=_0x54ff67;if(_0x52d495&&_0x52d495['type']['indexOf']('Container')>-0x1&&_0x411b0f['pop'](),'elementEnd'==_0x33c606['type'])continue;_0x52d495&&_0x52d495['type']==_0x5810ae+'Object'&&_0x52d495['element']['name']==_0x31823c['name']?_0x52d495['quantity']++:_0x411b0f['push']({'type':_0x5810ae+'Object','element':_0x31823c,'quantity':0x1}),_0xb2f9cd['skip'](_0x5d1064=>!('elementEnd'==_0x5d1064['type']&&_0x5d1064['item']==_0x54ff67));}else{if(this['_schema']['checkChild'](_0x54ff67,'$text')||_0x54ff67['is']('element','softBreak')){const _0x26519a=_0x54ff67;if('add'==_0x5810ae&&'elementStart'==_0x33c606['type']||'remove'==_0x5810ae&&'elementEnd'==_0x33c606['type'])continue;if(_0x52d495&&-0x1==_0x52d495['type']['indexOf']('Container')){'text'==_0x52d495['type']&&(_0x52d495[_0x5810ae]+='\x0a');continue;}let _0xf21559;if(_0xf21559='add'==_0x5810ae?_0x26519a['nextSibling']&&!this['_schema']['isObject'](_0x26519a['nextSibling'])?_0x26519a['nextSibling']:null:_0x26519a['previousSibling']&&!this['_schema']['isObject'](_0x26519a['previousSibling'])?_0x26519a['previousSibling']:null,_0x26519a['isEmpty']||_0xf21559&&_0xf21559['isEmpty']){const _0x242935=_0xf21559&&_0xf21559['isEmpty']?_0xf21559:_0x26519a;_0x52d495&&_0x52d495['type']==_0x5810ae+'EmptyContainer'&&_0x52d495['element']['name']==_0x242935['name']?_0x52d495['quantity']++:_0x411b0f['push']({'type':_0x5810ae+'EmptyContainer','element':_0x242935,'quantity':0x1});}else _0x411b0f['push']({'type':_0x5810ae+'Container','element':_0x26519a});}}}}}['_resolveDescriptionItems'](_0x2915de){const _0x31585e=this['_locale'],_0xaf4761=[],_0x15ccbf=[],_0x292187=[];for(const _0x42741b of _0x2915de)switch(_0x42741b['type']){case'text':if(_0x42741b['add']=_0x42741b['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x42741b['remove']=_0x42741b['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x42741b['add']&&''!=_0x42741b['remove']){_0xaf4761['push']({'type':'replace','content':o(_0x31585e,'REPLACE_TEXT',['\x22'+_0x42741b['remove']+'\x22','\x22'+_0x42741b['add']+'\x22'])});continue;}if(null!=_0x42741b['add']['match'](/^ +$/)){_0xaf4761['push']({'type':'insertion','content':o(_0x31585e,'*Insert:*\x20%0',o(_0x31585e,'ELEMENT_SPACE',_0x42741b['add']['length']))});continue;}if(null!=_0x42741b['remove']['match'](/^ +$/)){_0xaf4761['push']({'type':'deletion','content':o(_0x31585e,'*Remove:*\x20%0',o(_0x31585e,'ELEMENT_SPACE',_0x42741b['remove']['length']))});continue;}if(''!=_0x42741b['add']){_0xaf4761['push']({'type':'insertion','content':o(_0x31585e,'*Insert:*\x20%0','\x22'+_0x42741b['add']+'\x22')});continue;}_0xaf4761['push']({'type':'deletion','content':o(_0x31585e,'*Remove:*\x20%0','\x22'+_0x42741b['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0xaf4761['push']({'type':'insertion','content':o(_0x31585e,'*Insert:*\x20%0',this['getItemLabel'](_0x42741b['element'],_0x42741b['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0xaf4761['push']({'type':'deletion','content':o(_0x31585e,'*Remove:*\x20%0',this['getItemLabel'](_0x42741b['element'],_0x42741b['quantity']))});continue;case'addContainer':_0xaf4761['push']({'type':'insertion','content':o(_0x31585e,'*Split:*\x20%0',this['getItemLabel'](_0x42741b['element'],_0x42741b['quantity']))});continue;case'removeContainer':_0xaf4761['push']({'type':'deletion','content':o(_0x31585e,'*Merge:*\x20%0',this['getItemLabel'](_0x42741b['element'],_0x42741b['quantity']))});continue;case'addFormat':_0x15ccbf['push'](_0x42741b['key']);continue;case'removeFormat':_0x292187['push'](_0x42741b['key']);continue;default:_0xaf4761['push'](_0x42741b);}if(_0x15ccbf['length']){const _0xfa9b6b=_0x15ccbf['map'](_0x281a83=>this['_attributeLabels']['has'](_0x281a83)?this['_attributeLabels']['get'](_0x281a83):_0x281a83)['join'](',\x20');_0xaf4761['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0xfa9b6b)});}if(_0x292187['length']){const _0x39d859=_0x292187['map'](_0x217aac=>this['_attributeLabels']['has'](_0x217aac)?this['_attributeLabels']['get'](_0x217aac):_0x217aac)['join'](',\x20');_0xaf4761['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x39d859)});}return _0xaf4761;}['_handleCustomCallbackDescription'](_0x1a8656){for(const _0x29fb7f of this['_customCallbacks']){const _0x34ed4c=_0x29fb7f(_0x1a8656);if(_0x34ed4c&&'type'in _0x34ed4c)return _0x34ed4c;}}['_handleAttributeSuggestionDescription'](_0x4d9260,_0xa72470){const _0xbd73ba=_0xa72470['data'],_0x1ed500=void 0x0===_0xbd73ba['newValue']?'removeFormat':'addFormat';_0x4d9260['push']({'type':_0x1ed500,'key':_0xbd73ba['key']});}['_handleRenameSuggestionDescription'](_0x38168a,_0x233f5f){_0x38168a['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x233f5f['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x39025f,_0x481d98,_0x37978e){if(this['_addDescriptionItems'](_0x39025f,_0x481d98),_0x37978e&&_0x37978e['getFirstRange']()&&!_0x481d98['getFirstRange']()['end']['isEqual'](_0x37978e['getFirstRange']()['start'])){const _0x7836b2=_0x39025f[_0x39025f['length']-0x1],_0x2057ab='insertion'==_0x481d98['type']?'add':'remove';_0x7836b2&&'text'==_0x7836b2['type']&&(_0x7836b2[_0x2057ab]+='\x0a');}}}class V extends _0x2e1a44{['afterInit'](){const _0x16bfe2=this['editor'],_0x384846=_0x16bfe2['plugins']['get']('TrackChangesEditing');_0x16bfe2['commands']['get']('showAIAssistant')&&_0x384846['enableCommand']('showAIAssistant');}}class U extends _0x2e1a44{['afterInit'](){const _0x1b9dd4=this['editor'],_0x1a488e=_0x1b9dd4['locale'];if(!_0x1b9dd4['plugins']['has']('AlignmentEditing'))return;const _0x3c6b01=_0x1b9dd4['plugins']['get']('TrackChangesEditing');_0x3c6b01['enableDefaultAttributesIntegration']('alignment'),_0x3c6b01['registerBlockAttribute']('alignment'),_0x3c6b01['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x1a488e,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1110b6=this['editor'],_0x5c67a2=_0x1110b6['locale'];_0x1110b6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26011f=>{if('formatBlock'!=_0x26011f['type'])return;const {data:_0x1f06ef}=_0x26011f;if(_0x1f06ef&&'alignment'==_0x1f06ef['commandName']){const _0x17fc55=_0x1f06ef['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x5c67a2,'*Format:*\x20%0',function(_0x41e93e){switch(_0x41e93e){case'left':return o(_0x5c67a2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x5c67a2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x5c67a2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x5c67a2,'FORMAT_JUSTIFY_TEXT');}}(_0x17fc55))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x2e1a44{['afterInit'](){const _0x5b5f87=this['editor'],_0x305b78=_0x5b5f87['plugins']['get']('TrackChangesEditing'),_0x5b4c65=_0x5b5f87['locale'];for(const _0x52134a of ti){if(!_0x5b5f87['plugins']['has'](_0x52134a))continue;const _0x3bc905=_0x52134a['slice'](0x0,-0x7)['toLowerCase'](),_0x41edf0='FORMAT_'+_0x3bc905['toUpperCase']();_0x305b78['enableDefaultAttributesIntegration'](_0x3bc905),_0x305b78['registerInlineAttribute'](_0x3bc905),_0x305b78['descriptionFactory']['registerAttributeLabel'](_0x3bc905,o(_0x5b4c65,_0x41edf0));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46f433=this['editor'],_0x32d401=_0x46f433['locale'],_0x3cac0d=_0x46f433['plugins']['get']('TrackChangesEditing');function _0x56d54d(_0x4d6422,_0x2336fe){_0x3cac0d['descriptionFactory']['registerDescriptionCallback'](_0x561d9a=>{if('formatInline'!=_0x561d9a['type'])return;const {data:_0x22bca2}=_0x561d9a;return _0x22bca2&&_0x22bca2['commandName']===_0x4d6422?_0x22bca2['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x32d401,'*Format:*\x20%0',_0x2336fe)}:{'type':'format','content':o(_0x32d401,'*Remove\x20format:*\x20%0',_0x2336fe)}:void 0x0;});}_0x56d54d('bold',o(_0x32d401,'FORMAT_BOLD')),_0x56d54d('italic',o(_0x32d401,'FORMAT_ITALIC')),_0x56d54d('underline',o(_0x32d401,'FORMAT_UNDERLINE')),_0x56d54d('code',o(_0x32d401,'FORMAT_CODE')),_0x56d54d('strikethrough',o(_0x32d401,'FORMAT_STRIKETHROUGH')),_0x56d54d('subscript',o(_0x32d401,'FORMAT_SUBSCRIPT')),_0x56d54d('superscript',o(_0x32d401,'FORMAT_SUPERSCRIPT'));}}class F extends _0x2e1a44{['afterInit'](){const _0x4f11ff=this['editor'],_0x3b8d6b=_0x4f11ff['locale'];if(!_0x4f11ff['plugins']['has']('BlockQuoteEditing'))return;const _0x13fe81=_0x4f11ff['plugins']['get']('TrackChangesEditing'),_0x39f328=this['editor']['commands']['get']('blockQuote');_0x13fe81['enableCommand']('blockQuote',(_0x42b3bd,_0x3a4539={})=>{const _0x549e44=this['editor']['model']['document']['selection'],_0x1d4db1=_0x3a4539&&void 0x0!==_0x3a4539['forceValue']?_0x3a4539['forceValue']:!_0x39f328['value'];let _0x571bb8=[];if(_0x1d4db1){const _0x4180f5=Array['from'](_0x549e44['getSelectedBlocks']())['filter'](_0x48bd8e=>oo(_0x48bd8e)||function(_0x193ace,_0xf8b150){const _0x26b497=_0xf8b150['checkChild'](_0x193ace['parent'],'blockQuote'),_0x322fd3=_0xf8b150['checkChild'](['$root','blockQuote'],_0x193ace);return _0x26b497&&_0x322fd3;}(_0x48bd8e,this['editor']['model']['schema']));_0x571bb8=to(_0x4180f5,_0x4f11ff['model']);}else{const _0x2f6554=Array['from'](_0x549e44['getSelectedBlocks']())['filter'](_0x2bcf52=>oo(_0x2bcf52));_0x571bb8=to(_0x2f6554,_0x4f11ff['model']);}_0x4f11ff['model']['change'](()=>{for(const _0x34d7c7 of _0x571bb8)_0x13fe81['markBlockFormat'](_0x34d7c7,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x1d4db1}]});});}),_0x13fe81['descriptionFactory']['registerDescriptionCallback'](_0x2c8c0f=>{const {data:_0xae3f96}=_0x2c8c0f;if(_0xae3f96&&'blockQuote'==_0xae3f96['commandName']){const _0x351912=o(_0x3b8d6b,'ELEMENT_BLOCK_QUOTE');return _0xae3f96['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3b8d6b,'*Set\x20format:*\x20%0',_0x351912)}:{'type':'format','content':o(_0x3b8d6b,'*Remove\x20format:*\x20%0',_0x351912)};}});}}function oo(_0x20bf96){return'blockQuote'==_0x20bf96['parent']['name'];}class L extends _0x2e1a44{['afterInit'](){const _0x52378e=this['editor'];_0x52378e['plugins']['has']('CaseChange')&&(_0x52378e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x52378e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x52378e['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x2e1a44{['afterInit'](){const _0x309546=this['editor'];_0x309546['commands']['get']('ckbox')&&_0x309546['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x2e1a44{['afterInit'](){const _0x22fea2=this['editor'];if(!_0x22fea2['plugins']['has']('CodeBlock'))return;const _0x3c88b9=_0x22fea2['plugins']['get']('TrackChangesEditing'),_0x542a3b=_0x22fea2['locale'],_0x366528=_0x22fea2['config']['get']('codeBlock')['languages'],_0x52b1ba=_0x22fea2['commands']['get']('codeBlock');_0x3c88b9['enableCommand']('indentCodeBlock'),_0x3c88b9['enableCommand']('outdentCodeBlock'),_0x3c88b9['enableCommand']('codeBlock',(_0x4074da,_0x184cb1={})=>{const _0x3897cc=_0x22fea2['model'],_0x19003d=_0x22fea2['model']['document']['selection'],_0x1ea252=_0x184cb1&&void 0x0!==_0x184cb1['forceValue']?_0x184cb1['forceValue']:!_0x52b1ba['value'];let _0x2e3763;_0x184cb1['language']||(_0x184cb1['language']=_0x366528[0x0]['language']),_0x2e3763=_0x1ea252?Array['from'](_0x19003d['getSelectedBlocks']())['filter'](_0x3995f2=>eo(_0x3995f2)||function(_0x302d8d,_0x3a4f15){if(_0x302d8d['is']('rootElement')||_0x3a4f15['isLimit'](_0x302d8d))return!0x1;return _0x3a4f15['checkChild'](_0x302d8d['parent'],'codeBlock');}(_0x3995f2,_0x3897cc['schema'])):Array['from'](_0x19003d['getSelectedBlocks']())['filter'](_0x2d280d=>eo(_0x2d280d));const _0x50ff93=to(_0x2e3763,_0x3897cc);_0x3897cc['change'](()=>{for(const _0x4e6322 of _0x50ff93)_0x3c88b9['markBlockFormat'](_0x4e6322,{'commandName':'codeBlock','commandParams':[{..._0x184cb1,'forceValue':_0x1ea252}],'formatGroupId':'blockName'});});}),(_0x3c88b9['descriptionFactory']['registerElementLabel']('codeBlock',_0x1facf8=>o(_0x542a3b,'ELEMENT_CODE_BLOCK',_0x1facf8)),_0x3c88b9['descriptionFactory']['registerDescriptionCallback'](_0x22efc3=>{if('formatBlock'!=_0x22efc3['type'])return;const _0x54d633=_0x542a3b['t'],{data:_0x5f1d75}=_0x22efc3;if(!_0x5f1d75||'codeBlock'!=_0x5f1d75['commandName'])return;const _0x323159=_0x5f1d75['commandParams'][0x0]['language'],_0xe2138a=_0x54d633(_0x366528['find'](_0x52b841=>_0x52b841['language']===_0x323159)['label'])['toLowerCase']();return _0x5f1d75['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x542a3b,'*Set\x20format:*\x20%0',o(_0x542a3b,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0xe2138a+')')}:{'type':'format','content':o(_0x542a3b,'*Remove\x20format:*\x20%0',o(_0x542a3b,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x2ccbdc){return'codeBlock'==_0x2ccbdc['name'];}class q extends _0x2e1a44{['afterInit'](){const _0x80620c=this['editor'];if(!_0x80620c['plugins']['has']('CommentsEditing'))return;_0x80620c['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x1b2489,_0x3d6573,_0x5263a7){const _0x332753=[];for(const _0x37534c of _0x3d6573['getItems']())_0x37534c['hasAttribute'](_0x1b2489)&&_0x332753['push'](_0x5263a7['createRangeOn'](_0x37534c));return _0x332753;}function _e(_0x12ff15,_0x3e41e7,{showActiveMarker:_0x1ae2e8=!0x0}={}){const _0x4e269e=_0x12ff15['plugins']['get']('TrackChangesEditing');return(_0x483f8b,_0x1deb5b,_0x5b8897)=>{if(!_0x5b8897['consumable']['test'](_0x1deb5b['markerRange'],_0x483f8b['name']))return;const _0x34c066=_0x1deb5b['markerRange']['getWalker'](),_0x52b6b5=_0x1deb5b['markerRange']['start'],_0x47ffee=_0x12ff15['model']['schema'];let _0x9729d6=null,_0x457395=null,_0x57f220=!0x1,_0x131b76=!0x1;for(const _0x333a82 of _0x34c066){const _0x4b82dd=_0x333a82['item'];_0x57f220=_0x57f220||_0x47ffee['isContent'](_0x4b82dd);const _0x2ed5ce=_0x5b8897['mapper']['toViewElement'](_0x4b82dd);if(_0x2ed5ce&&_0x2ed5ce['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x333a82['type']&&(_0x47ffee['isBlock'](_0x4b82dd)&&!_0x47ffee['isLimit'](_0x4b82dd)&&(_0x4b82dd['nextSibling']||_0x52b6b5['isAtEnd']?_0x9729d6&&_0x9729d6['parent']==_0x4b82dd||(_0x9729d6=_0x4b82dd,_0x1ec682(_0x333a82['previousPosition']),_0x131b76=!0x0):_0x457395=_0x457395||_0x333a82['previousPosition']));}function _0x1ec682(_0x4b1ade){const _0x398fdd=_0x5b8897['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3e41e7}),_0x480ad9=_0x5b8897['mapper']['toViewPosition'](_0x4b1ade);_0x1ae2e8&&_0x4e269e['activeMarkers']['includes'](_0x1deb5b['markerName'])&&_0x5b8897['writer']['addClass']('ck-suggestion-marker--active',_0x398fdd),_0x5b8897['writer']['insert'](_0x480ad9,_0x398fdd),_0x5b8897['mapper']['bindElementToMarker'](_0x398fdd,_0x1deb5b['markerName']);}_0x57f220||_0x131b76||!_0x457395||_0x1ec682(_0x457395);};}class z extends _0x2e1a44{static get['requires'](){return[_0x29f493];}['init'](){const _0x138cfa=this['editor'],_0xeb3b77=_0x138cfa['plugins']['get']('TrackChangesEditing');_0xeb3b77['enableCommand']('delete');const _0x5b0aec=_0x138cfa['commands']['get']('deleteForward');_0xeb3b77['enableCommand']('deleteForward',(_0x8de22b,_0x286f25={})=>{const _0x70cce0=_0x138cfa['model']['createSelection'](_0x138cfa['model']['document']['selection']);_0x70cce0['isCollapsed']&&_0x138cfa['model']['modifySelection'](_0x70cce0,{'direction':'forward','unit':_0x286f25['unit']});const _0x150a7a=_0x70cce0['getFirstRange'](),_0x59ba3a=_0x416c59['fromRange'](_0x150a7a);let _0x43ef89;_0x8de22b(_0x286f25),_0x43ef89='$graveyard'==_0x59ba3a['root']['rootName']?_0x138cfa['model']['createRange'](_0x150a7a['start']):_0x138cfa['model']['createRange'](_0x59ba3a['start'],_0x59ba3a['end']),_0x59ba3a['detach'](),_0x138cfa['model']['enqueueChange'](_0x5b0aec['buffer']['batch'],_0x4321aa=>{_0x5b0aec['buffer']['lock'](),_0x4321aa['setSelection'](_0x4321aa['createRange'](_0x43ef89['end'])),_0x5b0aec['buffer']['unlock']();});}),_0x138cfa['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x138cfa,'merge'),{'priority':'high'}),_0x138cfa['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x4f9622,_0x3a62a1,_0x49390d)=>{_0x49390d['options']['showSuggestionHighlights']&&_e(_0x138cfa,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x4f9622,_0x3a62a1,_0x49390d);},{'priority':'high'}),_0x138cfa['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x2bfb51,_0x189dda,_0x410778)=>{const _0x48b937=_0x410778['mapper']['markerNameToElements'](_0x189dda['markerName']);if(_0x48b937){for(const _0x4d4304 of _0x48b937)_0x4d4304['is']('uiElement')&&(_0x410778['mapper']['unbindElementFromMarkerName'](_0x4d4304,_0x189dda['markerName']),_0x410778['writer']['remove'](_0x4d4304));}},{'priority':'high'});}}class K extends _0x2e1a44{['afterInit'](){const _0x55da0b=this['editor'];if(!_0x55da0b['plugins']['has']('ListEditing'))return;const _0x5c5ba6=_0x55da0b['locale'],_0x3a8589=_0x55da0b['plugins']['get']('TrackChangesEditing'),_0x64ce2c=_0x55da0b['plugins']['has']('TodoListEditing'),_0xb3348f=!!_0x55da0b['config']['get']('list.multiBlock');function _0x15fb9c(_0x49fac1){return{'type':'format','content':''+o(_0x5c5ba6,'*Set\x20format:*\x20%0',_0x49fac1)};}function _0xfc32fb(_0x1a6f1e){return{'type':'format','content':''+o(_0x5c5ba6,'*Remove\x20format:*\x20%0',_0x1a6f1e)};}_0x3a8589['enableDefaultAttributesIntegration']('numberedList'),_0x3a8589['enableDefaultAttributesIntegration']('bulletedList'),_0x3a8589['enableDefaultAttributesIntegration']('customNumberedList'),_0x3a8589['enableDefaultAttributesIntegration']('customBulletedList'),_0x3a8589['enableDefaultAttributesIntegration']('indentList'),_0x3a8589['enableDefaultAttributesIntegration']('outdentList'),_0x3a8589['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3a8589['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3a8589['registerBlockAttribute']('listItemId'),_0x3a8589['registerBlockAttribute']('listType'),_0x3a8589['registerBlockAttribute']('listIndent'),_0xb3348f&&(_0x3a8589['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3a8589['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x64ce2c&&(_0x3a8589['enableDefaultAttributesIntegration']('todoList'),_0x3a8589['enableDefaultAttributesIntegration']('checkTodoList'),_0x3a8589['registerBlockAttribute']('todoListChecked'),_0x3a8589['descriptionFactory']['registerDescriptionCallback'](_0x36b56c=>{const {data:_0x440f9f}=_0x36b56c;if(_0x440f9f&&'todoListChecked'==_0x440f9f['key'])return{'type':'format','content':_0x440f9f['newValue']?o(_0x5c5ba6,'*Check\x20item*'):o(_0x5c5ba6,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x1e6890=>{if(_0x1e6890['batch']['isUndo'])return!0x1;let _0x1ccfe8=!0x1;const _0x48be31=_0x3a8589['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3c0c55=>'todoListChecked'===_0x3a8589['_getAttributeKey'](_0x3c0c55));for(const _0x18abe7 of _0x48be31){'todo'!=_0x18abe7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3a8589['_findSuggestions'](_0x18abe7['getFirstRange'](),'attribute')['find'](_0x21b300=>'listType'===_0x3a8589['_getAttributeKey'](_0x21b300['suggestion']))||(_0x1e6890['removeMarker'](_0x18abe7['getFirstMarker']()),_0x1ccfe8=!0x0));}return _0x1ccfe8;})),_0x3a8589['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x5c5ba6,'FORMAT_INDENT'));const _0xbc7c1={'type':'format','content':''};_0x3a8589['descriptionFactory']['registerDescriptionCallback'](_0x57ff00=>{const {data:_0x165787}=_0x57ff00;if(!_0x165787||'listType'!=_0x165787['key'])return;let _0x2df86a=_0x57ff00['head'];for(;_0x2df86a;){if(_0x2df86a['data']&&(('listStyle'==_0x2df86a['data']['key']||'listMarkerStyle'==_0x2df86a['data']['key'])&&(_0x2df86a['data']['newValue']&&'default'!=_0x2df86a['data']['newValue']||'default'!=_0x2df86a['data']['oldValue']&&!_0x165787['newValue'])||!_0xb3348f&&_0x2df86a['data']['key']==m))return _0xbc7c1;_0x2df86a=_0x2df86a['next'];}if(null==_0x165787['newValue'])switch(_0x165787['oldValue']){case'bulleted':return _0xfc32fb(o(_0x5c5ba6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0xfc32fb(o(_0x5c5ba6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0xfc32fb(o(_0x5c5ba6,'ELEMENT_TODO_LIST'));}switch(_0x165787['newValue']){case'bulleted':return _0x15fb9c(o(_0x5c5ba6,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x15fb9c(o(_0x5c5ba6,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x15fb9c(o(_0x5c5ba6,'ELEMENT_TODO_LIST'));}}),_0x3a8589['descriptionFactory']['registerDescriptionCallback'](_0x53df76=>{const {data:_0x38c8ef}=_0x53df76;if(_0x38c8ef&&'listIndent'==_0x38c8ef['key'])return null==_0x38c8ef['newValue']||null==_0x38c8ef['oldValue']&&0x0==_0x38c8ef['newValue']?_0xbc7c1:void 0x0;}),_0x3a8589['descriptionFactory']['registerDescriptionCallback'](_0x4166cc=>{if('attribute'!=_0x4166cc['type'])return;const {data:_0x243ffb}=_0x4166cc;if(!_0x243ffb||'listItemId'!=_0x243ffb['key'])return;const _0x3f2510=le(_0x4166cc);return'newValue'==_0x3f2510?{'type':'format','content':o(_0x5c5ba6,'*Merge:*\x20list\x20item')}:'oldValue'==_0x3f2510?{'type':'format','content':o(_0x5c5ba6,'*Split:*\x20list\x20item')}:_0xbc7c1;}),_0x55da0b['model']['document']['registerPostFixer'](_0x1df568=>this['listItemIdFixer'](_0x1df568)),_0x55da0b['model']['document']['registerPostFixer'](_0x4251bd=>this['noTrackChangesFixer'](_0x4251bd)),_0x55da0b['model']['document']['on']('change:data',(_0x560028,_0x192d4d)=>{if(_0x192d4d['isUndo']||!_0x192d4d['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4e374e){if(_0x4e374e['batch']['isUndo']||!_0x4e374e['batch']['isLocal'])return!0x1;let _0x5eaeda=!0x1;const _0x53a220=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3eb147=>_0x3eb147['data']&&'listItemId'==_0x3eb147['data']['key'])['filter'](_0x1e2428=>_0x1e2428['data']['newValue']&&_0x1e2428['data']['oldValue']);for(const _0x1d4089 of _0x53a220)le(_0x1d4089)||(_0x4e374e['removeMarker'](_0x1d4089['getFirstMarker']()),_0x5eaeda=!0x0);return _0x5eaeda;}['noTrackChangesFixer'](_0x9a4ea0){if(_0x9a4ea0['batch']['isUndo']||!_0x9a4ea0['batch']['isLocal'])return!0x1;const _0x44c931=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x44c931['trackChangesCommand']['value'])return!0x1;let _0x2c82c0=!0x1;const _0xd431e2=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x47353c=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x1fcf24=>'attribute'==_0x1fcf24['type'])['filter'](_0x359d04=>_0xd431e2['includes'](_0x359d04['attributeKey']));if(0x0==_0x47353c['length'])return _0x2c82c0;for(const _0x290fe9 of _0x47353c){const _0xea3648=_0x44c931['_findSuggestions'](_0x290fe9['range'],'attribute')['filter'](_0x84398c=>!_0x84398c['meta']['isNextTo'])['map'](_0x313e46=>_0x313e46['suggestion'])['filter'](_0x5e327e=>{const _0x237768=_0x44c931['_getAttributeKey'](_0x5e327e);return _0xd431e2['includes'](_0x237768);});if(_0xea3648['length']){for(const _0x5f0b9f of _0xea3648)_0x9a4ea0['removeMarker'](_0x5f0b9f['getFirstMarker']());_0x2c82c0=!0x0;}}return _0x2c82c0;}['assureChains'](){const _0x3502af=this['editor']['plugins']['get']('TrackChangesEditing'),_0x497a3c=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x9f86fd;const _0x236bf2=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x4351f3=>{if(_0x4351f3['data']['oldRange']||!_0x4351f3['data']['newRange'])return null;if(!_0x4351f3['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x5a9cda}=_0x3502af['_splitMarkerName'](_0x4351f3['name']);if(!_0x3502af['hasSuggestion'](_0x5a9cda))return null;const _0x4f54cc=_0x3502af['getSuggestion'](_0x5a9cda);return _0x497a3c['includes'](_0x4f54cc['data']['key']);})['map'](_0xf8f877=>{const {id:_0xf4f5ef}=_0x3502af['_splitMarkerName'](_0xf8f877['name']),_0x3deb1f=_0x3502af['getSuggestion'](_0xf4f5ef);return _0x9f86fd=_0x3deb1f['attributes']['groupId'],_0x3deb1f['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x236bf2['size'])return;const _0x236133=_0x3502af['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xd79c5=>'attribute'==_0xd79c5['type']&&_0xd79c5['data']&&_0x497a3c['includes'](_0xd79c5['data']['key'])&&_0xd79c5['attributes']['groupId']!=_0x9f86fd)['map'](_0x34b29f=>({'listItem':_0x34b29f['getFirstRange']()['start']['nodeAfter'],'groupId':_0x34b29f['attributes']['groupId']})),_0x1f87cb=new Set();for(const {groupId:_0x22cc96,listItem:_0x57ca6a}of _0x236133)_0x236bf2['has'](_0x57ca6a)&&_0x1f87cb['add'](_0x22cc96);for(const _0x416904 of _0x3502af['getSuggestions']())_0x1f87cb['has'](_0x416904['attributes']['groupId'])&&_0x416904['setAttribute']('groupId',_0x9f86fd);}['_supportLegacySuggestions'](){const _0x444f01=this['editor'],_0x2d7b56=_0x444f01['locale'],_0x58ac0d=_0x444f01['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x58ac0d['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x2a52f9,_0x242234){const _0x51e917=[];for(let _0x2e654f of _0x2a52f9)_0x2e654f['start']['nodeAfter']===_0x2e654f['end']['parent']&&(_0x2e654f=_0x444f01['model']['createRange'](_0x444f01['model']['createPositionAt'](_0x2e654f['start']['nodeAfter'],0x0))),_0x51e917['push'](_0x2e654f);_0x444f01['model']['change'](_0x4041c5=>{const _0x2e031c=_0x444f01['model']['document']['selection'],_0x3bee6d=Array['from'](_0x2e031c['getRanges']())['map'](_0xa19eaf=>_0x416c59['fromRange'](_0xa19eaf));_0x4041c5['setSelection'](_0x51e917),_0x444f01['commands']['get'](_0x242234['commandName'])['refresh'](),_0x242234['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x444f01['execute'](_0x242234['commandName'],..._0x242234['commandParams']),_0x4041c5['setSelection'](_0x3bee6d);for(const _0x43e977 of _0x3bee6d)_0x43e977['detach']();});}),_0x58ac0d['descriptionFactory']['registerElementLabel'](function(_0x162dd8){const _0x5af008=!_0x444f01['model']['schema']['isObject'](_0x162dd8),_0x46245a=_0x162dd8['previousSibling'],_0x3662e8=_0x162dd8['nextSibling'],_0x4cb9c1=_0x162dd8['getAttribute']('listItemId'),_0x25b14d=!_0x46245a||_0x46245a['getAttribute']('listItemId')!==_0x4cb9c1,_0x1f65f0=!_0x3662e8||_0x3662e8['getAttribute']('listItemId')!==_0x4cb9c1;return _0x5af008&&Boolean(_0x4cb9c1)&&_0x25b14d&&_0x1f65f0;},_0x4f0ec4=>o(_0x2d7b56,'ELEMENT_LIST_ITEM',_0x4f0ec4));}['_registerLegacyDescription'](){const _0xa57f12=this['editor'],_0xea6f4d=_0xa57f12['locale'];function _0xa334c1(_0x554891){const _0x28cc82=_0xa57f12['commands']['get']('bulletedList')['value'],_0x3cc533=_0xa57f12['commands']['get']('numberedList')['value'];return'numberedList'===_0x554891?_0x28cc82:_0x3cc533;}_0xa57f12['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x1e346b){if('formatBlock'!=_0x1e346b['type'])return;const {data:_0x57b99d}=_0x1e346b;if(!_0x57b99d)return;let _0x33a28e,_0x5556b0,_0x434ebe,_0x2c5143;switch(_0x57b99d['commandName']){case'bulletedList':_0x434ebe=_0x57b99d['commandParams'][0x0]['forceValue'],_0x2c5143=_0xa334c1(_0x57b99d['commandName']),_0x33a28e=_0x434ebe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2c5143&&_0xa57f12['config']['get']('list.multiBlock')||(_0x33a28e='*Change\x20to:*\x20%0'),_0x5556b0={'type':'format','content':o(_0xea6f4d,_0x33a28e,o(_0xea6f4d,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x434ebe=_0x57b99d['commandParams'][0x0]['forceValue'],_0x2c5143=_0xa334c1(_0x57b99d['commandName']),_0x33a28e=_0x434ebe?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x2c5143&&_0xa57f12['config']['get']('list.multiBlock')||(_0x33a28e='*Change\x20to:*\x20%0'),_0x5556b0={'type':'format','content':o(_0xea6f4d,_0x33a28e,o(_0xea6f4d,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x33a28e='*Indent:*\x20%0',_0x5556b0={'type':'format','content':o(_0xea6f4d,_0x33a28e,o(_0xea6f4d,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x33a28e=function(_0x295a41){const _0x17e692=_0x295a41['getFirstRange']();let _0x57a8cf=_0x17e692['start']['nodeAfter'];for(;_0x57a8cf&&_0x17e692['containsItem'](_0x57a8cf);){if(_0x57a8cf['getAttribute']('listIndent')>0x0)return!0x1;_0x57a8cf=_0x57a8cf['nextSibling'];}return!0x0;}(_0x1e346b)?o(_0xea6f4d,'*Format:*\x20remove\x20from\x20%0',o(_0xea6f4d,function(_0x4bbbc7){return'ELEMENT_'+_0x4bbbc7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1e346b))):o(_0xea6f4d,'*Outdent:*\x20%0',o(_0xea6f4d,'ELEMENT_LIST_ITEM')),_0x5556b0={'type':'format','content':_0x33a28e};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x57b99d['multipleBlocks']&&(_0x33a28e='*Merge:*\x20%0',_0x5556b0={'type':'deletion','content':o(_0xea6f4d,_0x33a28e,o(_0xea6f4d,'ELEMENT_LIST_ITEM'))});}return _0x5556b0;});}}function le(_0x12d789){let _0x4e527b=_0x12d789['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x4e527b;){const _0x37f470=_0x4e527b['getAttribute']('listItemId');if(!_0x37f470)return!0x1;if(_0x37f470==_0x12d789['data']['newValue'])return'newValue';if(_0x37f470==_0x12d789['data']['oldValue'])return'oldValue';_0x4e527b=_0x4e527b['previousSibling'];}return!0x1;}class pe extends _0x2e1a44{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x4219bc=this['editor']['config']['get']('list.properties'),_0x1233e6=this['editor']['plugins']['get']('TrackChangesEditing');_0x4219bc['styles']&&(_0x1233e6['enableDefaultAttributesIntegration']('listStyle'),_0x1233e6['registerBlockAttribute']('listStyle')),_0x4219bc['reversed']&&(_0x1233e6['enableDefaultAttributesIntegration']('listReversed'),_0x1233e6['registerBlockAttribute']('listReversed')),_0x4219bc['startIndex']&&(_0x1233e6['enableDefaultAttributesIntegration']('listStart'),_0x1233e6['registerBlockAttribute']('listStart'));const _0x2aebf2={'type':'format','content':''};_0x1233e6['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0xf314a4=this['editor']['locale'];_0x1233e6['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0xf314a4,'FORMAT_LIST_REVERSED')),_0x1233e6['descriptionFactory']['registerDescriptionCallback'](_0x2743f9=>{const {data:_0x1f7173}=_0x2743f9;if(_0x1f7173&&'listReversed'==_0x1f7173['key'])return null==_0x1f7173['newValue']||0x0==_0x1f7173['newValue']&&null==_0x1f7173['oldValue']?_0x2aebf2:void 0x0;}),_0x1233e6['descriptionFactory']['registerAttributeLabel']('listStart',o(_0xf314a4,'FORMAT_LIST_START')),_0x1233e6['descriptionFactory']['registerDescriptionCallback'](_0x5def67=>{const {data:_0x247fa7}=_0x5def67;if(_0x247fa7&&'listStart'==_0x247fa7['key'])return null==_0x247fa7['newValue']||0x1==_0x247fa7['newValue']&&null==_0x247fa7['oldValue']?_0x2aebf2:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x46cbbf=>{if(_0x46cbbf['batch']['isUndo'])return!0x1;let _0x243a60=!0x1;const _0x8beda0=_0x1233e6['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x522c98=>{const _0x551a38=_0x1233e6['_getAttributeKey'](_0x522c98);return'listStart'==_0x551a38||'listReversed'==_0x551a38;});for(const _0x482406 of _0x8beda0){const _0x5e59ad=_0x482406['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5e59ad||'customNumbered'==_0x5e59ad)continue;_0x1233e6['_findSuggestions'](_0x482406['getFirstRange'](),'attribute')['find'](_0x20a098=>'listType'==_0x1233e6['_getAttributeKey'](_0x20a098['suggestion']))||(_0x46cbbf['removeMarker'](_0x482406['getFirstMarker']()),_0x243a60=!0x0);}return _0x243a60;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x22cc1e){const _0x5deb7f=this['editor']['locale'],{data:_0x3ddf36}=_0x22cc1e,_0x36f8d1={'type':'format','content':''};if(!_0x3ddf36||'listStyle'!=_0x3ddf36['key'])return;if(!_0x3ddf36['oldValue'])return'default'==_0x3ddf36['newValue']?_0x36f8d1:{'type':'format','content':''+o(_0x5deb7f,'*Set\x20format:*\x20%0',o(_0x5deb7f,this['_getTranslationKeyForListStyle'](_0x3ddf36['newValue'])))};if(!_0x3ddf36['newValue']){if('default'==_0x3ddf36['oldValue'])return _0x36f8d1;let _0x89ab54=_0x22cc1e['head'];for(;_0x89ab54;){if(_0x89ab54['data']&&'listType'==_0x89ab54['data']['key']&&_0x89ab54['data']['newValue'])return _0x36f8d1;_0x89ab54=_0x89ab54['next'];}return{'type':'format','content':''+o(_0x5deb7f,'*Remove\x20format:*\x20%0',o(_0x5deb7f,this['_getTranslationKeyForListStyle'](_0x3ddf36['oldValue'])))};}if('default'!=_0x3ddf36['newValue'])return{'type':'format','content':''+o(_0x5deb7f,'*Set\x20format:*\x20%0',o(_0x5deb7f,this['_getTranslationKeyForListStyle'](_0x3ddf36['newValue'])))};let _0x59983e=_0x22cc1e['head'];for(;_0x59983e;){if(_0x59983e['data']&&'listType'==_0x59983e['data']['key']&&_0x59983e['data']['newValue']&&_0x59983e['data']['oldValue'])return _0x36f8d1;_0x59983e=_0x59983e['next'];}return{'type':'format','content':o(_0x5deb7f,'*Set\x20format:*\x20%0',o(_0x5deb7f,'ELEMENT_'+_0x22cc1e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x4c87ad=this['editor'],_0x235d38=_0x4c87ad['locale'];_0x4c87ad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x37aa8b=>{if('formatBlock'!=_0x37aa8b['type'])return;const {data:_0x303ea2}=_0x37aa8b;if(!_0x303ea2)return;let _0x37b80c,_0x5f2f90;switch(_0x303ea2['commandName']){case'listStyle':_0x37b80c='*Change\x20to:*\x20%0',_0x5f2f90={'type':'format','content':o(_0x235d38,_0x37b80c,o(_0x235d38,this['_getTranslationKeyForListStyle'](_0x303ea2['commandParams'][0x0]['type'])))};break;case'listReversed':_0x37b80c=_0x303ea2['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5f2f90={'type':'format','content':o(_0x235d38,_0x37b80c)};break;case'listStart':_0x37b80c='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5f2f90={'type':'format','content':o(_0x235d38,_0x37b80c,_0x303ea2['commandParams'][0x0]['startIndex'])};}return _0x5f2f90;});}['_getTranslationKeyForListStyle'](_0x30332c){return'ELEMENT_'+function(_0x1a86b){if(ye['includes'](_0x1a86b))return'bulleted';if(Se['includes'](_0x1a86b))return'numbered';return null;}(_0x30332c)['toUpperCase']()+'_LIST_'+_0x30332c['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x2e1a44{static get['requires'](){return[_0x219a76];}['init'](){const _0x57969b=this['editor'],_0x28bd6c=_0x57969b['plugins']['get']('TrackChangesEditing'),_0xe50578=_0x57969b['commands']['get']('enter');_0x28bd6c['enableCommand']('enter',()=>{_0x57969b['model']['change'](_0x44c316=>{const _0x4560ea=_0x57969b['model']['document']['selection'],_0x581068=_0x4560ea['getFirstPosition'](),_0x1e73d6=_0x416c59['fromRange'](_0x4560ea['getFirstRange']());if(_0xe50578['enterBlock'](_0x44c316)){const _0x49e20f=_0x57969b['model']['createPositionAt'](_0x581068['parent']['nextSibling'],0x0),_0x368f7b=_0x44c316['createRange'](_0x581068,_0x49e20f);_0x28bd6c['markInsertion'](_0x368f7b);}else _0x44c316['setSelection'](_0x44c316['createRange'](_0x1e73d6['end']));_0x1e73d6['detach'](),_0xe50578['fire']('afterExecute',{'writer':_0x44c316});});}),_0x57969b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x57969b,'split'),{'priority':'high'}),_0x57969b['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x1b0a70,_0x3e1c83,_0x560b58)=>{const _0x39b244=_0x560b58['mapper']['markerNameToElements'](_0x3e1c83['markerName']);if(_0x39b244){for(const _0x5279d0 of _0x39b244)_0x5279d0['hasClass']('ck-suggestion-marker-split')&&(_0x560b58['mapper']['unbindElementFromMarkerName'](_0x5279d0,_0x3e1c83['markerName']),_0x560b58['writer']['remove'](_0x5279d0));}},{'priority':'high'}),_0x57969b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x3ed844,_0x1e1f0b,_0x47a557)=>{_0x47a557['options']['showSuggestionHighlights']&&_e(_0x57969b,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x3ed844,_0x1e1f0b,_0x47a557);},{'priority':'high'});}}class X extends _0x2e1a44{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0xbf463b=this['editor']['plugins']['get']('TrackChangesEditing');_0xbf463b['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0xbf463b['enableCommand']('findNext'),_0xbf463b['enableCommand']('findPrevious'),_0xbf463b['enableCommand']('replace'),_0xbf463b['enableCommand']('replaceAll');}['handleFindCommand'](_0xaf9b78,_0x596f35,_0x4019ce={}){const _0x4d3b77=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xaf9b78(_0x5e21a7=>{let _0x55327e=('string'==typeof _0x596f35?_0x4d3b77['findByTextCallback'](_0x596f35,_0x4019ce):_0x596f35)(_0x5e21a7);Array['isArray'](_0x55327e)&&(_0x55327e={'results':_0x55327e,'searchText':'string'==typeof _0x596f35?_0x596f35:''});const _0x3a094c=_0x55327e['results']['filter'](_0x4f061c=>!0x1===this['_isInDeletionRange'](_0x4f061c,_0x5e21a7['item']));return{..._0x55327e,'results':_0x3a094c};},_0x4019ce);}['_isInDeletionRange'](_0x41b0fc,_0x54d040){const _0x43a1b7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x54d040,_0x41b0fc['start']),this['editor']['model']['createPositionAt'](_0x54d040,_0x41b0fc['end']));for(const _0x54c63f of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x43a1b7['getIntersection'](_0x54c63f['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Y extends _0x2e1a44{['afterInit'](){const _0x4b4a3d=this['editor']['locale'],_0xabdff6=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x448856,commandName:_0x3aaa90}of ro)this['editor']['plugins']['has'](_0x448856)&&(_0xabdff6['enableDefaultAttributesIntegration'](_0x3aaa90),_0xabdff6['registerInlineAttribute'](_0x3aaa90));_0xabdff6['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x4b4a3d,'FORMAT_FONT_SIZE')),_0xabdff6['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x4b4a3d,'FORMAT_FONT_FAMILY')),_0xabdff6['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x4b4a3d,'FORMAT_FONT_COLOR')),_0xabdff6['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x4b4a3d,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4fb641=this['editor'],_0x554ff3=_0x4fb641['locale'];_0x4fb641['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5c004e=>{const _0x16ace7=_0x554ff3['t'];if('formatInline'!=_0x5c004e['type'])return;const {data:_0x31e3f4}=_0x5c004e;if(null!=_0x31e3f4){if('fontSize'==_0x31e3f4['commandName']){const _0x6a6ef1=_0x31e3f4['commandParams'][0x0]['value'];if(_0x6a6ef1){const _0x240218=_0x16ace7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x225803=>_0x225803['model']==_0x6a6ef1)['title'])['toLowerCase']();return{'type':'format','content':o(_0x554ff3,'*Set\x20font\x20size:*\x20%0',_0x240218)};}return{'type':'format','content':o(_0x554ff3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x31e3f4['commandName']){const _0x63ccd9=_0x31e3f4['commandParams'][0x0]['value'];return _0x63ccd9?{'type':'format','content':o(_0x554ff3,'*Set\x20font\x20family:*\x20%0',_0x63ccd9)}:{'type':'format','content':o(_0x554ff3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x31e3f4['commandName']){const _0x305a8b=_0x31e3f4['commandParams'][0x0]['value'];if(_0x305a8b){const _0x1549a0=_0x363b74(this['editor']['config']['get']('fontColor.colors'))['find'](_0x42e856=>_0x42e856['model']==_0x305a8b);let _0x60da9c=_0x305a8b,_0x1adcfc='';return _0x1549a0&&(_0x60da9c=_0x1549a0['label'],_0x1adcfc=_0x16ace7(_0x60da9c)['toLowerCase']()),{'type':'format','content':o(_0x554ff3,'*Set\x20font\x20color:*\x20%0',_0x1adcfc)['trim'](),'color':{'value':_0x305a8b,'title':_0x1adcfc||_0x60da9c}};}return{'type':'format','content':o(_0x554ff3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x31e3f4['commandName']){const _0x27cf2b=_0x31e3f4['commandParams'][0x0]['value'];if(_0x27cf2b){const _0x2417da=_0x363b74(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x1a4bf8=>_0x1a4bf8['model']==_0x27cf2b);let _0x5e0fe0=_0x27cf2b,_0x591ea9='';return _0x2417da&&(_0x5e0fe0=_0x2417da['label'],_0x591ea9=_0x16ace7(_0x5e0fe0)['toLowerCase']()),{'type':'format','content':o(_0x554ff3,'*Set\x20font\x20background\x20color:*\x20%0',_0x591ea9)['trim'](),'color':{'value':_0x27cf2b,'title':_0x591ea9||_0x5e0fe0}};}return{'type':'format','content':o(_0x554ff3,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x2e1a44{['afterInit'](){const _0x3ceb5b=this['editor'],_0x3ebdaa=_0x3ceb5b['plugins']['get']('TrackChangesEditing'),_0x246660=_0x3ceb5b['commands']['get']('copyFormat'),_0x1e1d00=_0x3ceb5b['commands']['get']('pasteFormat');_0x246660&&_0x1e1d00&&(_0x3ebdaa['enableDefaultAttributesIntegration']('pasteFormat'),_0x3ebdaa['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x879848=this['editor'],_0x507b85=_0x879848['locale'];_0x879848['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4bf039=>{if('formatBlock'!=_0x4bf039['type']&&'formatInline'!=_0x4bf039['type'])return;const {data:_0x1bdc48}=_0x4bf039;if(_0x1bdc48&&'pasteFormat'===_0x1bdc48['commandName']){const _0x450910=[],_0xf625=_0x1bdc48['commandParams'][0x0];for(const [_0x4c5fc9,_0x4de3b2]of Object['entries'](_0xf625))_0x450910['push'](so(_0x879848,_0x4c5fc9,_0x4de3b2));return _0x450910['length']?{'type':'format','content':o(_0x507b85,'*Set\x20format\x20to:*\x20%0',_0x450910['join'](',\x20'))}:{'type':'format','content':o(_0x507b85,'*Remove\x20all\x20formatting*')};}});}}function so(_0x4f0796,_0x3585c1,_0x2a7d20){const _0x44ecda=_0x4f0796['locale']['t'],_0x172bba=_0x3585c1['split'](/(?=[A-Z])/)['join']('\x20'),_0x1acf6d=_0x44ecda(_0x172bba['charAt'](0x0)['toUpperCase']()+_0x172bba['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2a7d20)return _0x1acf6d;if('fontColor'===_0x3585c1||'fontBackgroundColor'===_0x3585c1){const _0x4f7892=_0x363b74(_0x4f0796['config']['get']('fontColor.colors'))['find'](_0x1f6667=>_0x1f6667['model']==_0x2a7d20);return _0x1acf6d+'\x20('+(_0x4f7892?_0x44ecda(_0x4f7892['label'])['toLowerCase']():_0x2a7d20)+')';}if('fontSize'===_0x3585c1&&isNaN(parseFloat(_0x2a7d20))){const _0x561df4=_0x4f0796['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x4f0796['config']['get']('fontSize.options'))['find'](_0x3fa9e7=>_0x3fa9e7['model']==_0x2a7d20);return _0x1acf6d+'\x20('+(_0x561df4?_0x44ecda(_0x561df4['title'])['toLowerCase']():_0x2a7d20)+')';}return _0x1acf6d+'\x20('+_0x2a7d20+')';}class tt extends _0x2e1a44{['_headingOptions'];['afterInit'](){const _0x42e0fd=this['editor'];if(!_0x42e0fd['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x42e0fd['config']['get']('heading.options');const _0x5ccd0d=_0x42e0fd['locale'],_0xff5e47=_0x42e0fd['plugins']['get']('TrackChangesEditing');_0xff5e47['enableDefaultAttributesIntegration']('heading');for(const _0x201616 of this['_headingOptions'])'paragraph'!=_0x201616['model']&&_0xff5e47['descriptionFactory']['registerElementLabel'](_0x201616['model'],_0x245371=>{const _0xafa4b1=this['_getHeadingLevel'](_0x201616['model']);return null!==_0xafa4b1?_0x2dac1b(_0x245371,_0xafa4b1):_0x1948d2(_0x245371,_0x201616['title']);});function _0x2dac1b(_0x4dbeaf,_0x546a0a){return o(_0x5ccd0d,'ELEMENT_HEADING',[_0x4dbeaf,_0x546a0a]);}function _0x1948d2(_0x38b1f5,_0x63a2f0){return o(_0x5ccd0d,'ELEMENT_HEADING_CUSTOM',[_0x38b1f5,_0x63a2f0]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x25bc81=this['editor'],_0x1e3c7a=_0x25bc81['locale'];function _0x2cb712(_0x29f8f5,_0x210b1f){return o(_0x1e3c7a,'ELEMENT_HEADING_CUSTOM',[_0x29f8f5,_0x210b1f]);}_0x25bc81['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xdd71b4=>{if('formatBlock'!=_0xdd71b4['type'])return;const {data:_0x3ab7bb}=_0xdd71b4;if(_0x3ab7bb&&'heading'==_0x3ab7bb['commandName']){const _0x102866=_0x3ab7bb['commandParams'][0x0]['value'],_0x5e77dd=this['_getHeadingLevel'](_0x102866);if(null!==_0x5e77dd)return{'type':'format','content':o(_0x1e3c7a,'*Change\x20to:*\x20%0',(_0x18722b=0x1,_0x490656=_0x5e77dd,o(_0x1e3c7a,'ELEMENT_HEADING',[_0x18722b,_0x490656])))};const _0x13f481=this['_headingOptions']['find'](_0x2cb909=>_0x2cb909['model']===_0x102866)['title'];return{'type':'format','content':o(_0x1e3c7a,'*Change\x20to:*\x20%0',_0x2cb712(0x1,_0x13f481))};}var _0x18722b,_0x490656;});}['_getHeadingLevel'](_0x26cc25){const _0x1b0b77=_0x26cc25['match'](/^heading(\d+)/);if(_0x1b0b77)return _0x1b0b77[0x1];const _0x447b91=this['_headingOptions']?.['find'](_0x2ef1ef=>_0x2ef1ef['model']==_0x26cc25);if(_0x447b91&&_0x447b91['view']){const _0x182607=_0x447b91['view'],_0x37a710=(_0x182607['name']??_0x182607)['match'](/^h(\d+)/);if(_0x37a710)return _0x37a710[0x1];}return null;}}class et extends _0x2e1a44{['afterInit'](){const _0x3899cd=this['editor'];if(!_0x3899cd['plugins']['has']('HighlightEditing'))return;const _0x3bb4ea=_0x3899cd['plugins']['get']('TrackChangesEditing'),_0x514aad=_0x3899cd['locale'];_0x3bb4ea['enableDefaultAttributesIntegration']('highlight'),_0x3bb4ea['registerInlineAttribute']('highlight'),_0x3bb4ea['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x514aad,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11bd4b=this['editor'],_0x39eacd=_0x11bd4b['locale'];_0x11bd4b['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x26d712=>{if('formatInline'!=_0x26d712['type'])return;const {data:_0x190b32}=_0x26d712;if(_0x190b32&&'highlight'==_0x190b32['commandName']){const _0x37cea2=_0x39eacd['t'],_0x5b8263=_0x190b32['commandParams'][0x0]['value'];if(_0x5b8263){const _0x3d390d=_0x11bd4b['config']['get']('highlight.options')['find'](_0x414a47=>_0x414a47['model']==_0x5b8263),_0x3b0808=_0x37cea2(_0x3d390d['title'])['toLowerCase']();return{'type':'format','content':o(_0x39eacd,'*Set\x20highlight:*\x20%0',_0x3b0808),'color':{'value':_0x3d390d['color'],'title':_0x3d390d['title']}};}return{'type':'format','content':o(_0x39eacd,'*Remove\x20highlight*',o(_0x39eacd,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x2e1a44{['afterInit'](){const _0xb5d682=this['editor'];if(!_0xb5d682['plugins']['has']('HorizontalLineEditing'))return;_0xb5d682['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x1db0d3=_0xb5d682['plugins']['get']('TrackChangesEditing'),_0x1636a3=_0xb5d682['locale'];_0x1db0d3['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4cc90a=>o(_0x1636a3,'ELEMENT_HORIZONTAL_LINE',_0x4cc90a)),_0xb5d682['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2f43b0,{writer:_0x1077d5,options:_0x4e64d3})=>{if(!_0x4e64d3['showSuggestionHighlights'])return null;const _0x50232b=_0x1077d5['createContainerElement']('div'),_0x29a394=_0x1077d5['createEmptyElement']('hr');return _0x1077d5['addClass']('ck-horizontal-line',_0x50232b),_0x1077d5['insert'](_0x1077d5['createPositionAt'](_0x50232b,0x0),_0x29a394),_0x50232b;},'converterPriority':'high'});}}class st extends _0x2e1a44{['afterInit'](){const _0x35af9c=this['editor'];if(!_0x35af9c['plugins']['has']('HtmlEmbed'))return;const _0x43cdbf=_0x35af9c['plugins']['get']('TrackChangesEditing'),_0x4a069d=_0x35af9c['locale'];_0x43cdbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x277054=>o(_0x4a069d,'ELEMENT_HTML_EMBED',_0x277054)),_0x43cdbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x43cdbf['registerBlockAttribute']('value'),_0x43cdbf['descriptionFactory']['registerDescriptionCallback'](_0x4d7b45=>{if('attribute'!=_0x4d7b45['type'])return;const {data:_0x732c22}=_0x4d7b45;if(_0x732c22&&'value'==_0x732c22['key']&&_0x4d7b45['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x15599f=o(_0x4a069d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4a069d,'*Change\x20%0\x20content*',_0x15599f)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x108f0e=this['editor'],_0x4440cb=_0x108f0e['locale'];_0x108f0e['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbd71a1=>{if('formatBlock'!=_0xbd71a1['type'])return;const {data:_0x1af264}=_0xbd71a1;if(_0x1af264&&'htmlEmbed'==_0x1af264['commandName']){const _0x44d640=o(_0x4440cb,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x4440cb,'*Change\x20%0\x20content*',_0x44d640)};}});}}class nt extends _0x2e1a44{['afterInit'](){const _0x3188b=this['editor'];if(!_0x3188b['plugins']['has']('ImageEditing'))return;const _0x56569c=_0x3188b['plugins']['get']('TrackChangesEditing'),_0x592eeb=_0x3188b['plugins']['get']('ImageUtils'),_0x48d5e7=_0x3188b['locale'];_0x56569c['enableCommand']('insertImage'),_0x56569c['descriptionFactory']['registerElementLabel']('imageBlock',_0x1f3378=>o(_0x48d5e7,'ELEMENT_IMAGE',_0x1f3378)),_0x56569c['descriptionFactory']['registerElementLabel']('imageInline',_0x40c458=>o(_0x48d5e7,'ELEMENT_INLINE_IMAGE',_0x40c458)),_0x56569c['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x48d5e7,'ELEMENT_CAPTION')),_0x3188b['plugins']['has']('ImageUploadEditing')&&_0x56569c['enableCommand']('uploadImage'),_0x3188b['plugins']['has']('ImageBlockEditing')&&_0x3188b['plugins']['has']('ImageInlineEditing')&&(_0x56569c['enableCommand']('imageTypeInline',(_0xb7db17,_0x40f694)=>{const _0x2c26b8=_0x592eeb['getClosestSelectedImageElement'](_0x3188b['model']['document']['selection']);_0x3188b['model']['change'](()=>{_0x56569c['markBlockFormat'](_0x2c26b8,{'commandName':'imageTypeInline','commandParams':[_0x40f694]},[],'convertBlockImageToInline');});}),_0x56569c['enableCommand']('imageTypeBlock',(_0x234305,_0x31c454)=>{_0x3188b['model']['change'](_0xf7d188=>{let _0x18aaad=_0x592eeb['getClosestSelectedImageElement'](_0x3188b['model']['document']['selection']),_0x205ee6=_0xf7d188['createRangeOn'](_0x18aaad);const _0x357de8=_0x2f17bb['fromPosition'](_0x205ee6['start'],'toPrevious'),_0x41ee98=_0x2f17bb['fromPosition'](_0x205ee6['end'],'toNext');_0x56569c['forceDefaultExecution'](()=>_0x234305(_0x31c454)),_0x18aaad=_0x592eeb['getClosestSelectedImageElement'](_0x3188b['model']['document']['selection']),_0x205ee6=_0xf7d188['createRangeOn'](_0x18aaad);const _0x4f48f8=_0xf7d188['createRange'](_0x357de8,_0x41ee98);_0x357de8['detach'](),_0x41ee98['detach'](),_0x56569c['markBlockFormat'](_0x18aaad,{'commandName':'imageTypeInline','commandParams':[_0x31c454]},[],'convertInlineImageToBlock'),_0x4f48f8['start']['isBefore'](_0x205ee6['start'])&&_0x56569c['markInsertion'](_0xf7d188['createRange'](_0x4f48f8['start'],_0x205ee6['start']),'convertInlineImageToBlock'),_0x205ee6['end']['isBefore'](_0x4f48f8['end'])&&_0x56569c['markInsertion'](_0xf7d188['createRange'](_0x205ee6['end'],_0x4f48f8['end']),'convertInlineImageToBlock');});}),_0x56569c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x56569c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x56569c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x56569c['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x56569c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x56569c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x44f0c7])=>{const _0x3c0070=_0x56569c['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x374b81=_0x44f0c7['start'],_0x8ff9ce=_0x44f0c7['end'];const _0x33e49e=_0x3188b['model']['schema']['getNearestSelectionRange'](_0x374b81,'backward'),_0x5b8977=_0x3188b['model']['schema']['getNearestSelectionRange'](_0x8ff9ce,'forward');_0x33e49e['isCollapsed']&&(_0x374b81=_0x33e49e['start']),_0x5b8977['isCollapsed']&&(_0x8ff9ce=_0x5b8977['end']),_0x3c0070([_0x3188b['model']['createRange'](_0x374b81,_0x8ff9ce)]);}),_0x56569c['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x3b6498),_0x56569c['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x3b6498)),_0x3188b['plugins']['has']('ImageCaptionEditing')&&(_0x56569c['enableCommand']('toggleImageCaption',(_0x4f1d0e,_0x1ae17c)=>{const _0x1b5909=_0x3188b['plugins']['get']('ImageCaptionUtils');let _0x3d4f6a=_0x592eeb['getClosestSelectedImageElement'](_0x3188b['model']['document']['selection']),_0x5e5b05=_0x1b5909['getCaptionFromImageModelElement'](_0x3d4f6a);_0x3188b['model']['change'](()=>{if(_0x5e5b05)return void _0x56569c['markDeletion'](_0x3188b['model']['createRangeOn'](_0x5e5b05));const _0x118abe=_0x592eeb['isBlockImage'](_0x3d4f6a);_0x4f1d0e(_0x1ae17c),_0x3d4f6a=_0x592eeb['getClosestSelectedImageElement'](_0x3188b['model']['document']['selection']),_0x5e5b05=_0x1b5909['getCaptionFromImageModelElement'](_0x3d4f6a),_0x56569c['markInsertion'](_0x3188b['model']['createRangeOn'](_0x5e5b05),_0x118abe?null:'imageCaption');});}),_0x56569c['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x3b6498));const _0x14f99e=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x25f2cd(_0x3ea3f0,_0x35cf14){const _0x3fe93e=_0x14f99e['findIndex'](({type:_0x2773e1,subType:_0x567660})=>_0x3ea3f0['type']==_0x2773e1&&_0x3ea3f0['subType']==_0x567660),_0x20f303=_0x14f99e['findIndex'](({type:_0xe21bd3,subType:_0xbe77b8})=>_0x35cf14['type']==_0xe21bd3&&_0x35cf14['subType']==_0xbe77b8);if(_0x3fe93e<0x0||_0x20f303<0x0)return!0x1;const _0x1f295f=_0x3ea3f0['getFirstRange'](),_0x50620d=_0x35cf14['getFirstRange']();if((0x0==_0x3fe93e||0x1==_0x3fe93e)&&0x2==_0x20f303&&_0x1f295f['isIntersecting'](_0x50620d))return!0x0;if(0x2==_0x3fe93e&&0x3==_0x20f303){const _0x1cac3a=_0x56569c['_findSuggestions'](_0x1f295f,'insertion')['filter'](({suggestion:_0x5392f5,meta:_0xe8befd})=>_0xe8befd['isOwn']&&'convertInlineImageToBlock'==_0x5392f5['subType']);if(_0x1cac3a['length']>0x1&&_0x50620d['end']['isEqual'](_0x1f295f['start']))return!0x0;if(0x1==_0x1cac3a['length']&&(_0x1f295f['start']['isEqual'](_0x50620d['end'])||_0x1f295f['end']['isEqual'](_0x50620d['start'])))return!0x0;}if(0x3==_0x3fe93e&&0x3==_0x20f303&&_0x1f295f['start']['isBefore'](_0x50620d['start'])){const _0x3165d5=_0x1f295f['end']['nodeAfter'],_0x4a11c1=_0x50620d['start']['nodeBefore'];return _0x592eeb['isBlockImage'](_0x3165d5)&&_0x3165d5===_0x4a11c1;}return!0x1;}function _0x3b6498(_0x3e27e5,_0x5efedc){return _0x25f2cd(_0x3e27e5,_0x5efedc)?[_0x3e27e5,_0x5efedc]:_0x25f2cd(_0x5efedc,_0x3e27e5)?[_0x5efedc,_0x3e27e5]:null;}_0x3188b['plugins']['has']('ImageResize')&&(_0x56569c['enableDefaultAttributesIntegration']('resizeImage'),_0x56569c['registerBlockAttribute']('resizedWidth'),_0x56569c['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x48d5e7,'FORMAT_IMAGE_SIZE'))),_0x3188b['plugins']['has']('ImageTextAlternativeEditing')&&(_0x56569c['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x56569c['registerBlockAttribute']('alt')),_0x56569c['descriptionFactory']['registerDescriptionCallback'](_0x247ec4=>{if(!!_0x14f99e['find'](({type:_0x595e78,subType:_0x37acb1})=>_0x247ec4['type']==_0x595e78&&_0x247ec4['subType']==_0x37acb1))return _0x247ec4['previous']?{}:void 0x0;}),_0x56569c['descriptionFactory']['registerDescriptionCallback'](_0x4fe252=>{if('insertion'==_0x4fe252['type']||'deletion'==_0x4fe252['type']){const _0xa6b69f=_0x4fe252['getContainedElement']();if(_0xa6b69f&&_0xa6b69f['is']('element','caption'))return{'type':'insertion'==_0x4fe252['type']?'addObject':'removeObject','element':_0xa6b69f,'quantity':0x1};}}),_0x56569c['descriptionFactory']['registerDescriptionCallback'](_0x5ec5c5=>'formatBlock'==_0x5ec5c5['type']&&'convertInlineImageToBlock'==_0x5ec5c5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5ec5c5['type']&&'convertBlockImageToInline'==_0x5ec5c5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x56569c['descriptionFactory']['registerDescriptionCallback'](_0x39eec4=>{if('attribute'!=_0x39eec4['type'])return;const {data:_0x346909}=_0x39eec4;if(!_0x346909||'alt'!=_0x346909['key'])return;const _0x2ed218=_0x346909['newValue'];return _0x2ed218?{'type':'format','content':o(_0x48d5e7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2ed218+'\x22')}:{'type':'format','content':o(_0x48d5e7,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x11a51a=this['editor'],_0x397631=_0x11a51a['locale'];_0x11a51a['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x258d2e=>{if('formatBlock'!=_0x258d2e['type']&&'formatInline'!=_0x258d2e['type'])return;const {data:_0x3814ce}=_0x258d2e;if(_0x3814ce){if('imageTextAlternative'==_0x3814ce['commandName']){const _0x4f0360=_0x3814ce['commandParams'][0x0]['newValue'];return _0x4f0360?{'type':'format','content':o(_0x397631,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f0360+'\x22')}:{'type':'format','content':o(_0x397631,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x3814ce['commandName']){const _0x19d91c=_0x3814ce['commandParams'][0x0]['width'];return _0x19d91c?{'type':'format','content':o(_0x397631,'*Set\x20image\x20width:*\x20%0',_0x19d91c)}:{'type':'format','content':o(_0x397631,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x2e1a44{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x3afc82=this['editor']['locale'],_0x2a5c31=this['editor']['plugins']['get']('TrackChangesEditing');_0x2a5c31['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2a5c31['registerBlockAttribute']('src'),_0x2a5c31['descriptionFactory']['registerDescriptionCallback'](_0x13468d=>{if('attribute'!=_0x13468d['type'])return;const {data:_0x3c31f0}=_0x13468d;return _0x3c31f0&&'src'==_0x3c31f0['key']?_0x3c31f0['newValue']&&_0x3c31f0['oldValue']?{'type':'format','content':o(_0x3afc82,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x3bac07=this['editor']['plugins']['get']('TrackChangesEditing');_0x3bac07['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x3bac07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3bac07['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x3bac07['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x375e92=this['editor'],_0x334acd=_0x375e92['locale'];_0x375e92['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2d9cf3=>{if('formatBlock'!=_0x2d9cf3['type']&&'formatInline'!=_0x2d9cf3['type'])return;const {data:_0x412520}=_0x2d9cf3;if(!_0x412520||'replaceImageSource'!=_0x412520['commandName'])return;return{'type':'format','content':o(_0x334acd,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x2e1a44{['afterInit'](){const _0xe34668=this['editor'];if(!_0xe34668['plugins']['has']('ImageStyleEditing'))return;const _0x4971d3=_0xe34668['plugins']['get']('TrackChangesEditing'),_0x5a1d6b=_0xe34668['plugins']['get']('ImageUtils'),_0x129d3a={};_0x4971d3['enableCommand']('imageStyle',(_0x1a3bce,_0x113aad)=>{const _0x58d1e3=_0xe34668['plugins']['get']('Users')['me'],_0x1fdbef=_0xe34668['commands']['get']('imageStyle');let _0x797e25=_0x5a1d6b['getClosestSelectedImageElement'](_0xe34668['model']['document']['selection']),_0x54ad64=_0xe34668['model']['createRangeOn'](_0x797e25),_0x5aa6ed=_0x1fdbef['value'];if(_0x5aa6ed==_0x113aad['value'])return;const _0x347cf3={'commandName':'imageStyle','commandParams':[_0x113aad],'formatGroupId':_0x29b31c()};_0xe34668['model']['change'](()=>{if(_0x4971d3['getSuggestions']()['filter'](_0x4e9e5b=>_0x4e9e5b['isInContent']&&_0x58d1e3==_0x4e9e5b['author']&&('formatBlock'==_0x4e9e5b['type']||'formatInline'==_0x4e9e5b['type'])&&('imageStylePreApply'==_0x4e9e5b['subType']||'imageStylePostApply'==_0x4e9e5b['subType'])&&_0x4e9e5b['getFirstRange']()['isEqual'](_0x54ad64))['forEach'](_0x205088=>_0x4971d3['discardSuggestion'](_0x205088['head'])),_0x797e25=_0x5a1d6b['getClosestSelectedImageElement'](_0xe34668['model']['document']['selection']),_0x54ad64=_0xe34668['model']['createRangeOn'](_0x797e25),_0x1fdbef['refresh'](),_0xe34668['commands']['get']('imageTypeInline')['refresh'](),_0xe34668['commands']['get']('imageTypeBlock')['refresh'](),_0x5aa6ed=_0x1fdbef['value'],_0x5aa6ed!=_0x113aad['value'])return _0x5a1d6b['isInlineImage'](_0x797e25)&&_0x1fdbef['shouldConvertImageType'](_0x113aad['value'],_0x797e25)?(_0x1a3bce({..._0x113aad,'setImageSizes':!0x1}),_0x797e25=_0x5a1d6b['getClosestSelectedImageElement'](_0xe34668['model']['document']['selection']),void _0x4971d3['markBlockFormat'](_0x797e25,{..._0x347cf3,'commandReversedParams':[{'value':_0x5aa6ed||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5a1d6b['isBlockImage'](_0x797e25)?_0x4971d3['markBlockFormat'](_0x797e25,_0x347cf3,[],'imageStylePostApply'):_0x4971d3['markInlineFormat'](_0x54ad64,_0x347cf3,'imageStylePostApply'));});});for(const _0x435850 of _0xe34668['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x129d3a[_0x435850['name']]=_0x435850['title']['toLowerCase']();_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x4fe98f])=>{_0x5a1d6b['setImageNaturalSizeAttributes'](_0x4fe98f['getContainedElement']());}),_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x38cf7e,_0x25f941)=>{_0x4971d3['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x38cf7e,{'commandName':_0x25f941['commandName'],'commandParams':_0x25f941['commandReversedParams']});}),_0x4971d3['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x274dac,_0x4946f7){if(_0x431dd2(_0x274dac,_0x4946f7))return[_0x274dac,_0x4946f7];if(_0x431dd2(_0x4946f7,_0x274dac))return[_0x4946f7,_0x274dac];return null;});const _0x1982b9=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x431dd2(_0x4ff430,_0xfb918c){const _0x42f73f=_0x1982b9['findIndex'](({type:_0x3527e0,subType:_0x581e58})=>_0x4ff430['type']==_0x3527e0&&_0x4ff430['subType']==_0x581e58),_0x3db28f=_0x1982b9['findIndex'](({type:_0xa52c9,subType:_0x5842bd})=>_0xfb918c['type']==_0xa52c9&&_0xfb918c['subType']==_0x5842bd);if(_0x42f73f<0x0||_0x3db28f<0x0)return!0x1;const _0x25dd8c=_0x4ff430['getFirstRange'](),_0x20d243=_0xfb918c['getFirstRange']();if((0x0==_0x42f73f||0x1==_0x42f73f)&&0x2==_0x3db28f&&_0x25dd8c['isIntersecting'](_0x20d243))return!0x0;if(0x2==_0x42f73f&&0x3==_0x3db28f){const _0x5668ba=_0x4971d3['_findSuggestions'](_0x25dd8c,'insertion')['filter'](({suggestion:_0x4b438d,meta:_0x131004})=>_0x131004['isOwn']&&'convertInlineImageToBlock'==_0x4b438d['subType']);if(_0x5668ba['length']>0x1&&_0x20d243['end']['isEqual'](_0x25dd8c['start']))return!0x0;if(0x1==_0x5668ba['length']&&(_0x25dd8c['start']['isEqual'](_0x20d243['end'])||_0x25dd8c['end']['isEqual'](_0x20d243['start'])))return!0x0;}if(0x3==_0x42f73f&&0x3==_0x3db28f&&_0x25dd8c['start']['isBefore'](_0x20d243['start'])){const _0x5c8beb=_0x25dd8c['end']['nodeAfter'],_0x957bed=_0x20d243['start']['nodeBefore'];return _0x5a1d6b['isBlockImage'](_0x5c8beb)&&_0x5c8beb===_0x957bed;}return!0x1;}_0xe34668['model']['document']['registerPostFixer'](()=>{let _0xe8108c=!0x1;const _0x5e03ad=Array['from'](_0xe34668['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x34d480,data:_0x11193f}of _0x5e03ad){const {group:_0x43b353,type:_0x2211f9,subType:_0x2eba58,id:_0x27d47d}=_0x4971d3['_splitMarkerName'](_0x34d480);if('suggestion'==_0x43b353&&_0x4971d3['hasSuggestion'](_0x27d47d)){if('formatBlock'==_0x2211f9&&('imageStylePreApply'==_0x2eba58||'imageStylePostApply'==_0x2eba58)){const _0x180969=_0x4971d3['getSuggestion'](_0x27d47d);if(_0x11193f['newRange']){const _0x58f972=_0x180969['getFirstRange']()['getContainedElement']();if(_0x5a1d6b['isBlockImage'](_0x58f972))continue;_0x4971d3['discardSuggestion'](_0x180969),_0xe8108c=!0x0;}}if('insertion'==_0x2211f9&&'imageCaption'==_0x2eba58&&!_0x11193f['newRange']){const _0x322932=_0x4971d3['getSuggestion'](_0x27d47d);_0x322932['next']&&_0x322932['next']['isInContent']&&(_0x4971d3['discardSuggestion'](_0x322932['next']),_0xe8108c=!0x0);}}}return _0xe8108c;}),this['_registerLegacyDescription'](_0x129d3a);}['_registerLegacyDescription'](_0x315c64){const _0x170ed6=this['editor'],_0x1fb352=_0x170ed6['locale'];_0x170ed6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5af0fc=>{if('formatBlock'!=_0x5af0fc['type']&&'formatInline'!=_0x5af0fc['type'])return;const {data:_0x26afe8}=_0x5af0fc;if(!_0x26afe8||'imageStyle'!=_0x26afe8['commandName'])return;const _0x4e3b26=_0x26afe8['commandParams'][0x0]['value'];return _0x24f903('side'===_0x4e3b26?o(_0x1fb352,'FORMAT_SIDE_IMAGE'):_0x315c64[_0x4e3b26]||_0x4e3b26);function _0x24f903(_0x454bd1){return{'type':'format','content':o(_0x1fb352,'*Format:*\x20%0',_0x454bd1)};}});}}class at extends _0x2e1a44{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x544934){super(_0x544934),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x1127e6=this['editor'],_0x3d99c8=_0x1127e6['commands']['get']('importWord'),_0x3f8a90=_0x1127e6['commands']['get']('trackChanges');_0x3d99c8&&(_0x3d99c8['on']('execute',(_0x4e8342,[,_0x28670c])=>{this['_trackChangesValueDuringImport']=_0x3f8a90['value'],_0x28670c['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x3d99c8,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x3d99c8,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3f8a90['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1127e6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5e4e6d,_0x39c896){const {suggestions:_0x31e238}=_0x39c896,_0x3ac80c=this['editor']['commands']['get']('trackChanges'),_0x3470d4=_0x3ac80c['value'];this['_trackChangesValueDuringImport']!==_0x3470d4&&(_0x3ac80c['execute'](),this['_trackChangesExecuted']=!0x0),_0x31e238&&_0x31e238['forEach'](({id:_0x3bc6f1,type:_0x536509,author:_0x316b1c,created_at:_0x35f620})=>{const _0x1613b2={'id':_0x3bc6f1,'type':_0x536509,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x316b1c,'createdAt':_0x35f620?new Date(_0x35f620):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x1613b2);});}}class ct extends _0x2e1a44{['afterInit'](){const _0x55049d=this['editor'],_0x282461=_0x55049d['plugins']['get']('TrackChangesEditing');if(_0x55049d['plugins']['has']('IndentEditing')&&(_0x282461['enableCommand']('indent'),_0x282461['enableCommand']('outdent')),_0x55049d['plugins']['has']('IndentBlock')){for(const _0x3f2b06 of['indentBlock','outdentBlock'])_0x282461['enableDefaultAttributesIntegration'](_0x3f2b06);}const _0x335fc0=_0x55049d['locale'];_0x282461['registerBlockAttribute']('blockIndent'),_0x282461['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x335fc0,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x24b89d=this['editor'],_0x529e5f=_0x24b89d['locale'],_0x44a0bf=_0x24b89d['plugins']['get']('TrackChangesEditing');_0x44a0bf['descriptionFactory']['registerDescriptionCallback'](_0x264d6b=>{if('formatBlock'!=_0x264d6b['type'])return;const {data:_0x52f6d1}=_0x264d6b;if(!_0x52f6d1)return;if('indentBlock'!=_0x52f6d1['commandName']&&'outdentBlock'!=_0x52f6d1['commandName'])return;const _0x165bab=_0x264d6b['getItems']()[0x0],_0x44622f=_0x44a0bf['descriptionFactory']['getItemLabel'](_0x165bab);return'indentBlock'==_0x52f6d1['commandName']?{'type':'format','content':o(_0x529e5f,'*Indent:*\x20%0',_0x44622f)}:'outdentBlock'==_0x52f6d1['commandName']?{'type':'format','content':o(_0x529e5f,'*Outdent:*\x20%0',_0x44622f)}:void 0x0;});}}class ut extends _0x2e1a44{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x2e1a44{['afterInit'](){const _0x894130=this['editor'];if(!_0x894130['plugins']['has']('LinkEditing'))return;const _0x17f341=_0x894130['plugins']['get']('TrackChangesEditing'),_0x183752=_0x894130['commands']['get']('link');_0x17f341['enableDefaultAttributesIntegration']('link'),_0x17f341['enableDefaultAttributesIntegration']('unlink'),_0x17f341['registerInlineAttribute']('linkHref');for(const _0x134ab7 of _0x183752['manualDecorators'])_0x17f341['registerInlineAttribute'](_0x134ab7['id']),_0x17f341['descriptionFactory']['registerAttributeLabel'](_0x134ab7['id'],'link\x20('+_0x134ab7['label']['toLowerCase']()+')');_0x17f341['descriptionFactory']['registerDescriptionCallback'](_0x2a7309=>{if('attribute'!=_0x2a7309['type'])return;const {data:_0x21f8fa}=_0x2a7309;if(!_0x21f8fa||'linkHref'!=_0x21f8fa['key'])return;const _0x3b0f18=_0x21f8fa['newValue'],_0x4f7c99=_0x894130['locale'];return{'type':'format','content':null==_0x3b0f18?o(_0x4f7c99,'*Remove\x20link*'):o(_0x4f7c99,'*Set\x20link:*\x20%0','\x22'+_0x3b0f18+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36b74f=this['editor'],_0x2cfd45=_0x36b74f['locale'];_0x36b74f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2eadf2=>{if('formatInline'!=_0x2eadf2['type'])return;const {data:_0x125f17}=_0x2eadf2;if(_0x125f17){if('link'==_0x125f17['commandName']){const _0x570842=_0x125f17['commandParams'][0x0];return{'type':'format','content':o(_0x2cfd45,'*Set\x20link:*\x20%0','\x22'+_0x570842+'\x22')};}return'unlink'==_0x125f17['commandName']?{'type':'format','content':o(_0x2cfd45,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x2e1a44{['afterInit'](){const _0x13ff6f=this['editor'],_0x369184=_0x13ff6f['locale'];if(!_0x13ff6f['plugins']['has']('LegacyListEditing'))return;const _0x5d68f9=_0x13ff6f['plugins']['get']('TrackChangesEditing'),_0x11b9c4=_0x13ff6f['plugins']['has']('LegacyTodoListEditing');function _0x45e01c(_0x339221){return()=>{const _0xc1e089=_0x13ff6f['model']['document']['selection'],_0x162754=_0x13ff6f['commands']['get'](_0x339221);if(_0x162754['value'])return void _0x13ff6f['execute']('paragraph',{});const _0xded06f=_0x339221['slice'](0x0,-0x4),_0x36d57a=function(_0x213d61,_0x465f68,_0x5d9111){let _0x499e4f=Array['from'](_0x213d61)['filter'](_0x1d26ba=>function(_0x49bfd8,_0x556be4){return _0x556be4['checkChild'](_0x49bfd8['parent'],'listItem')&&!_0x556be4['isObject'](_0x49bfd8);}(_0x1d26ba,_0x5d9111));_0x499e4f=_0x499e4f['filter'](_0x46b219=>!_0x46b219['is']('element','listItem')||_0x46b219['getAttribute']('listType')!=_0x465f68);const _0x27eaa4=new Set();for(const _0x5e4381 of _0x499e4f)_0x5e4381['is']('element','listItem')?_0x27eaa4['add'](fe(_0x5e4381)):_0x27eaa4['add'](_0x5e4381);return Array['from'](_0x27eaa4);}(_0xc1e089['getSelectedBlocks'](),_0xded06f,_0x13ff6f['model']['schema']);_0x13ff6f['model']['change'](()=>{for(const _0x4e79a3 of _0x36d57a)_0x5d68f9['markBlockFormat'](_0x4e79a3,{'commandName':_0x339221,'commandParams':[{'forceValue':!_0x162754['value']}],'formatGroupId':'blockName'},ue(_0x4e79a3));});};}function _0x1c0e68(_0x43a264){return()=>{const _0x4dc66c=function(_0x4eb50e){let _0x320dab=Array['from'](_0x4eb50e);const _0x353fff=_0x320dab['findIndex'](_0x41ab55=>'listItem'!=_0x41ab55['name']);return _0x353fff>-0x1&&(_0x320dab=_0x320dab['slice'](0x0,_0x353fff)),_0x320dab;}(_0x13ff6f['model']['document']['selection']['getSelectedBlocks']()),_0x18bbbd=_0x13ff6f['model']['createRange'](_0x13ff6f['model']['createPositionAt'](_0x4dc66c[0x0],'before'),_0x13ff6f['model']['createPositionAt'](_0x4dc66c[_0x4dc66c['length']-0x1],'end'));_0x13ff6f['model']['change'](()=>{_0x5d68f9['markBlockFormat'](_0x18bbbd,{'commandName':_0x43a264,'commandParams':[],'formatGroupId':'listIndent'},function(_0x2b3074){const _0x147051=new Set();for(const _0x5024fc of _0x2b3074){let _0x1977ce=_0x5024fc['nextSibling'];for(;_0x1977ce&&_0x1977ce['getAttribute']('listIndent')>_0x5024fc['getAttribute']('listIndent');)_0x147051['add'](_0x1977ce),_0x1977ce=_0x1977ce['nextSibling'];}return Array['from'](_0x147051);}(_0x4dc66c));});};}_0x5d68f9['enableCommand']('numberedList',_0x45e01c('numberedList')),_0x5d68f9['enableCommand']('bulletedList',_0x45e01c('bulletedList')),_0x11b9c4&&_0x5d68f9['enableCommand']('todoList',_0x45e01c('todoList')),_0x5d68f9['enableCommand']('indentList',_0x1c0e68('indentList')),_0x5d68f9['enableCommand']('outdentList',_0x1c0e68('outdentList')),_0x11b9c4&&_0x5d68f9['enableCommand']('checkTodoList',()=>{const _0x47d0fb=_0x13ff6f['commands']['get']('checkTodoList'),_0x5daf62=Array['from'](_0x47d0fb['_selectedElements']);_0x5daf62['filter'](_0x4029f2=>_0x4029f2['getAttribute']('todoListChecked')!=_0x47d0fb['value']),_0x13ff6f['model']['change'](()=>{for(const _0x42cd67 of _0x5daf62)_0x5d68f9['markBlockFormat'](_0x42cd67,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x47d0fb['value']}]});});}),_0x5d68f9['descriptionFactory']['registerElementLabel']('listItem',_0x418b2f=>o(_0x369184,'ELEMENT_LIST_ITEM',_0x418b2f)),_0x5d68f9['descriptionFactory']['registerDescriptionCallback'](_0x57c04a=>{if('formatBlock'!=_0x57c04a['type']&&'formatInline'!=_0x57c04a['type'])return;const {data:_0x116fa9}=_0x57c04a;if(_0x116fa9){if('numberedList'==_0x116fa9['commandName']||'bulletedList'==_0x116fa9['commandName']||'todoList'==_0x116fa9['commandName'])switch(_0x116fa9['commandName']['replace']('List','')){case'bulleted':return _0x53d9a1(o(_0x369184,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x53d9a1(o(_0x369184,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x53d9a1(o(_0x369184,'ELEMENT_TODO_LIST'));}if('indentList'==_0x116fa9['commandName'])return{'type':'format','content':o(_0x369184,'*Indent:*\x20%0',o(_0x369184,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x116fa9['commandName'])return{'type':'format','content':o(_0x369184,'*Outdent:*\x20%0',o(_0x369184,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x116fa9['commandName'])return _0x116fa9['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x369184,'*Check\x20item*')}:{'type':'format','content':o(_0x369184,'*Uncheck\x20item*')};}function _0x53d9a1(_0x54ef37){return{'type':'format','content':o(_0x369184,'*Change\x20to:*\x20%0',_0x54ef37)};}});}}function fe(_0x1f91df){const _0x22c6e2=_0x1f91df['getAttribute']('listIndent');if(0x0==_0x22c6e2)return _0x1f91df;let _0x1ef344=_0x1f91df;for(;_0x1f91df['previousSibling']&&_0x1f91df['previousSibling']['is']('element','listItem');){const _0x1c148d=_0x1f91df['previousSibling']['getAttribute']('listIndent');if(_0x1c148d==_0x22c6e2)_0x1ef344=_0x1f91df['previousSibling'];else{if(_0x1c148d<_0x22c6e2)break;}_0x1f91df=_0x1f91df['previousSibling'];}return _0x1ef344;}function ue(_0x1bca98){const _0x22cf9e=[];if(_0x1bca98['is']('element','listItem')&&_0x1bca98['getAttribute']('listIndent')>0x0){let _0x1592cb=_0x1bca98['nextSibling'];for(;_0x1592cb&&'listItem'==_0x1592cb['name']&&_0x1592cb['getAttribute']('listIndent')==_0x1bca98['getAttribute']('listIndent');)_0x22cf9e['push'](_0x1592cb),_0x1592cb=_0x1592cb['nextSibling'];}return _0x22cf9e;}class W extends _0x2e1a44{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x27785a=this['editor']['config']['get']('list.properties'),_0xa4be0a=this['editor']['plugins']['get']('TrackChangesEditing');_0x27785a['styles']&&_0xa4be0a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x27785a['reversed']&&_0xa4be0a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x27785a['startIndex']&&_0xa4be0a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0xa4be0a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x46a9ce,_0x3c53da={}){const _0x5bca78=this['editor']['plugins']['get']('TrackChangesEditing'),_0x320e24=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5bca78['markMultiRangeBlockFormat'](_0x320e24,{'commandName':'listStyle','commandParams':[{'type':_0x3c53da['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x38a8b4,_0x2b6dc7={}){const _0x3eb7b5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x15c34=this['_getSuggestionBlocks'](_0x1d8e34=>_0x1d8e34['is']('element','listItem')&&'numbered'===_0x1d8e34['getAttribute']('listType'));if(_0x15c34['length']<0x1)return;const _0x430732=_0x15c34['map'](_0x453260=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x453260,'before'),this['editor']['model']['createPositionAt'](_0x453260,0x0)));this['editor']['model']['change'](()=>{_0x3eb7b5['markMultiRangeBlockFormat'](_0x430732,{'commandName':'listReversed','commandParams':[{'reversed':_0x2b6dc7['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x1ff6c7,_0x210f70={}){const _0x295e90=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b45b7=this['_getSuggestionBlocks'](_0x310dde=>_0x310dde['is']('element','listItem')&&'numbered'===_0x310dde['getAttribute']('listType'));if(_0x3b45b7['length']<0x1)return;const _0xe000c4=_0x3b45b7['map'](_0x2952d5=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x2952d5,'before'),this['editor']['model']['createPositionAt'](_0x2952d5,0x0)));this['editor']['model']['change'](()=>{_0x295e90['markMultiRangeBlockFormat'](_0xe000c4,{'commandName':'listStart','commandParams':[{'startIndex':_0x210f70['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x4c12ad){if('formatBlock'!=_0x4c12ad['type']&&'formatInline'!=_0x4c12ad['type'])return;const _0x2917cb=this['editor']['locale'],{data:_0x213941}=_0x4c12ad;if(!_0x213941)return;let _0x35a105,_0x12a7f4;switch(_0x213941['commandName']){case'listStyle':_0x35a105='*Change\x20to:*\x20%0',_0x12a7f4={'type':'format','content':o(_0x2917cb,_0x35a105,o(_0x2917cb,this['_getTranslationKeyForListStyle'](_0x213941['commandParams'][0x0]['type'])))};break;case'listReversed':_0x35a105=_0x213941['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x12a7f4={'type':'format','content':o(_0x2917cb,_0x35a105)};break;case'listStart':_0x35a105='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x12a7f4={'type':'format','content':o(_0x2917cb,_0x35a105,_0x213941['commandParams'][0x0]['startIndex'])};}return _0x12a7f4;}['_getSuggestionBlocksForListStyle'](){const _0x526d8c=this['editor']['plugins']['get']('LegacyListUtils');let _0x37c608=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x37c608[0x0]?.['is']('element','listItem')&&_0x37c608['unshift'](..._0x526d8c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x37c608[_0x37c608['length']-0x1]?.['is']('element','listItem')&&_0x37c608['push'](..._0x526d8c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x37c608=[...new Set(_0x37c608)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x37c608=_0x37c608['filter'](_0x4d986d=>_0x4d986d['is']('element','listItem'))),_0x37c608;}['_getSuggestionBlocks'](_0xf2e94a){const _0x430929=this['editor']['plugins']['get']('LegacyListUtils');let _0x42d71c=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0xf2e94a)['map'](_0x3a5336=>{const _0x3792c8=this['editor']['model']['createPositionAt'](_0x3a5336,0x0);return[..._0x430929['getSiblingNodes'](_0x3792c8,'backward'),..._0x430929['getSiblingNodes'](_0x3792c8,'forward')];})['flat']();return _0x42d71c=[...new Set(_0x42d71c)],_0x42d71c;}['_getTranslationKeyForListStyle'](_0x4a22fa){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x4a22fa)||'default')['toUpperCase']()+'_LIST_'+_0x4a22fa['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x2e1a44{['afterInit'](){const _0x57737e=this['editor'];if(!_0x57737e['plugins']['has']('MediaEmbedEditing'))return;const _0x59d232=_0x57737e['plugins']['get']('TrackChangesEditing'),_0x54dea3=_0x57737e['locale'];_0x59d232['enableCommand']('mediaEmbed'),_0x59d232['descriptionFactory']['registerElementLabel']('media',_0x2cc0bf=>o(_0x54dea3,'ELEMENT_MEDIA',_0x2cc0bf)),_0x57737e['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x23fb2c,{writer:_0x1eb6f7,options:_0x50640c})=>{if(_0x50640c['showSuggestionHighlights'])return _0x1eb6f7['createEmptyElement']('div');},'converterPriority':'high'}),_0x57737e['data']['downcastDispatcher']['on']('attribute:url:media',(_0x527ad2,_0x40da5d,_0x4e61f5)=>{_0x4e61f5['options']['showSuggestionHighlights']&&_0x527ad2['stop']();},{'priority':'high'});}}class mt extends _0x2e1a44{['afterInit'](){const _0x2dc79a=this['editor'];_0x2dc79a['plugins']['has']('MentionEditing')&&_0x2dc79a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x2e1a44{['afterInit'](){const _0x5428cc=this['editor'];if(!_0x5428cc['commands']['get']('insertMergeField'))return;_0x5428cc['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x536154=_0x5428cc['plugins']['get']('TrackChangesEditing'),_0x1ee8be=_0x5428cc['locale'];_0x536154['descriptionFactory']['registerElementLabel']('mergeField',_0x220054=>o(_0x1ee8be,'ELEMENT_MERGE_FIELD',_0x220054)),_0x536154['descriptionFactory']['registerDescriptionCallback'](_0x283da5=>{if('insertion'!=_0x283da5['type']&&'deletion'!=_0x283da5['type'])return;const _0x54a501=_0x283da5['getContainedElement']();if(null==_0x54a501)return;if(!_0x54a501['is']('element','mergeField'))return;const _0x567284=_0x5428cc['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x54a501['getAttribute']('id'));return'insertion'==_0x283da5['type']?{'type':'insertion','content':o(_0x1ee8be,'*Insert:*\x20%0','\x22'+_0x567284+'\x22\x20'+o(_0x1ee8be,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x1ee8be,'*Remove:*\x20%0','\x22'+_0x567284+'\x22\x20'+o(_0x1ee8be,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x2e1a44{['afterInit'](){const _0x4e4839=this['editor'],_0x46dbd4=_0x4e4839['plugins']['get']('TrackChangesEditing');_0x4e4839['plugins']['has']('MultiLevelList')&&(_0x46dbd4['enableDefaultAttributesIntegration']('multiLevelList'),_0x46dbd4['registerBlockAttribute']('listMarkerStyle'),_0x46dbd4['descriptionFactory']['registerDescriptionCallback'](_0x4b9060=>this['handleDescriptions'](_0x4b9060)));}['handleDescriptions'](_0x44ac0f){const _0x5a1a28=this['editor']['locale'],{data:_0x3fc005}=_0x44ac0f,_0x59ca69={'type':'format','content':''};if(_0x3fc005&&'listMarkerStyle'==_0x3fc005['key']){if(!_0x3fc005['oldValue'])return{'type':'format','content':o(_0x5a1a28,'*Set\x20format:*\x20%0',o(_0x5a1a28,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fc005['newValue']+')'};if(!_0x3fc005['newValue']){let _0x17840b=_0x44ac0f['head'];for(;_0x17840b;){if(_0x17840b['data']&&'listType'==_0x17840b['data']['key']&&_0x17840b['data']['newValue'])return _0x59ca69;_0x17840b=_0x17840b['next'];}return{'type':'format','content':o(_0x5a1a28,'*Remove\x20format:*\x20%0',o(_0x5a1a28,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x3fc005['oldValue']+')'};}}}}class kt extends _0x2e1a44{['afterInit'](){const _0x349ebc=this['editor'];if(!_0x349ebc['plugins']['has']('PageBreakEditing'))return;_0x349ebc['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x455255=_0x349ebc['plugins']['get']('TrackChangesEditing'),_0x1ee96b=_0x349ebc['locale'];_0x455255['descriptionFactory']['registerElementLabel']('pageBreak',_0x18dad4=>o(_0x1ee96b,'ELEMENT_PAGE_BREAK',_0x18dad4));}}class bt extends _0x2e1a44{['afterInit'](){const _0x44c5d2=this['editor'];if(!_0x44c5d2['plugins']['has']('Paragraph'))return;const _0x59ba42=_0x44c5d2['locale'],_0x290a6c=_0x44c5d2['plugins']['get']('TrackChangesEditing');_0x290a6c['descriptionFactory']['registerElementLabel']('paragraph',_0x48f240=>o(_0x59ba42,'ELEMENT_PARAGRAPH',_0x48f240)),_0x290a6c['enableDefaultAttributesIntegration']('paragraph'),_0x290a6c['enableCommand']('insertParagraph'),_0x44c5d2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x44c5d2),{'priority':'highest'}),_0x44c5d2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x2a8576,_0x3f10a0,_0x1488b4)=>{_0x1488b4['options']['showSuggestionHighlights']&&nr(_0x44c5d2,{'showActiveMarker':!0x1})(_0x2a8576,_0x3f10a0,_0x1488b4);},{'priority':'highest'});const _0x197ace=_0x290a6c['descriptionFactory'];_0x197ace['registerDescriptionCallback'](_0x5359f2=>{if('insertion'!==_0x5359f2['type'])return;const {start:_0x45edba,end:_0xa45049}=_0x5359f2['getFirstRange']();if(!_0x45edba['isTouching'](_0xa45049)||!_0x45edba['nodeAfter'])return;const _0x1f1604=_0x44c5d2['model']['schema'],_0x5cfcdf=_0x45edba['nodeAfter'];return _0x1f1604['isBlock'](_0x5cfcdf)&&!_0x1f1604['isLimit'](_0x5cfcdf)&&_0x1f1604['checkChild'](_0x5cfcdf,'$text')?{'type':'insertion','content':o(_0x59ba42,'*Insert:*\x20%0',_0x197ace['getItemLabel'](_0x5cfcdf,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x53166f=this['editor'],_0x4c2a57=_0x53166f['locale'];_0x53166f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e01f0=>{if('formatBlock'!=_0x4e01f0['type'])return;const {data:_0x59d786}=_0x4e01f0;return _0x59d786&&'paragraph'==_0x59d786['commandName']?{'type':'format','content':o(_0x4c2a57,'*Change\x20to:*\x20%0',o(_0x4c2a57,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x29fd77,{showActiveMarker:_0x3e49fc=!0x0}={}){return(_0x1cb131,_0x8d7d7c,_0x46dd74)=>{const _0xe51052=_0x29fd77['plugins']['get']('TrackChangesEditing'),_0x154034=_0x8d7d7c['markerRange']['start'],_0x2cf7ec=_0x8d7d7c['markerRange']['end'],_0x1c06c8=_0x29fd77['model']['schema'];if(!_0x154034['isTouching'](_0x2cf7ec)||!_0x154034['nodeAfter'])return;const _0x5bb749=_0x154034['nodeAfter'];if(_0x1c06c8['isBlock'](_0x5bb749)&&!_0x1c06c8['isLimit'](_0x5bb749)&&_0x1c06c8['checkChild'](_0x5bb749,'$text')){if(!_0x46dd74['consumable']['consume'](_0x8d7d7c['markerRange'],_0x1cb131['name']))return;const _0x42ce9f=_0x46dd74['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0xc298aa=_0x46dd74['mapper']['toViewPosition'](_0x2cf7ec);_0x3e49fc&&_0xe51052['activeMarkers']['includes'](_0x8d7d7c['markerName'])&&_0x46dd74['writer']['addClass']('ck-suggestion-marker--active',_0x42ce9f),_0x46dd74['writer']['insert'](_0xc298aa,_0x42ce9f),_0x46dd74['mapper']['bindElementToMarker'](_0x42ce9f,_0x8d7d7c['markerName']);}};}class wt extends _0x2e1a44{['afterInit'](){const _0x429d36=this['editor'];if(!_0x429d36['plugins']['has']('RemoveFormatEditing'))return;_0x429d36['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x330970=this['editor'];_0x330970['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x44b107=>{if('formatBlock'!=_0x44b107['type']&&'formatInline'!=_0x44b107['type'])return;const {data:_0x293e75}=_0x44b107;return _0x293e75&&'removeFormat'==_0x293e75['commandName']?{'type':'format','content':o(_0x330970['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x2e1a44{['afterInit'](){const _0x459f93=this['editor'];if(!_0x459f93['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x5be838=_0x459f93['plugins']['get']('TrackChangesEditing');_0x5be838['enableCommand']('goToPreviousRestrictedEditingException'),_0x5be838['enableCommand']('goToNextRestrictedEditingException');const _0x9ec069=_0x459f93['plugins']['get']('RestrictedEditingModeEditing');_0x9ec069['enableCommand']('trackChanges'),_0x9ec069['enableCommand']('acceptSuggestion'),_0x9ec069['enableCommand']('discardSuggestion'),_0x9ec069['enableCommand']('acceptAllSuggestions'),_0x9ec069['enableCommand']('discardAllSuggestions'),_0x9ec069['enableCommand']('acceptSelectedSuggestions'),_0x9ec069['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x2e1a44{static get['requires'](){return[_0x4fd307];}['init'](){const _0x162036=this['editor'],_0x2c5e6c=_0x162036['plugins']['get']('TrackChangesEditing');_0x2c5e6c['enableCommand']('shiftEnter'),_0x162036['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x162036),{'priority':'high'}),_0x162036['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x162036),{'priority':'high'}),_0x162036['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x247848,_0x1d6393,_0x859af5)=>{_0x859af5['options']['showSuggestionHighlights']&&ge(_0x162036,{'showActiveMarker':!0x1})(_0x247848,_0x1d6393,_0x859af5);}),_0x2c5e6c['descriptionFactory']['registerElementLabel']('softBreak',_0x13d31d=>o(_0x162036['locale'],'ELEMENT_LINE_BREAK',_0x13d31d));}}function ge(_0x594452,{showActiveMarker:_0x5db08a=!0x0}={}){return(_0x3f8d1f,_0x57938b,_0x4ff541)=>{const _0x4d4c04=_0x594452['plugins']['get']('TrackChangesEditing');if(!_0x4ff541['consumable']['test'](_0x57938b['markerRange'],_0x3f8d1f['name']))return;const _0x4c3166=_0x594452['model'];for(const _0x4beae0 of _0x57938b['markerRange']['getItems']()){if(!_0x4beae0['is']('element','softBreak'))continue;const _0x2aa3a8='deletion'==_0x57938b['markerName']['split'](':')[0x1]?'merge':'split',_0x31a7fa=_0x4ff541['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2aa3a8}),_0x42a7b6=_0x4ff541['mapper']['toViewPosition'](_0x4c3166['createPositionBefore'](_0x4beae0));_0x5db08a&&_0x4d4c04['activeMarkers']['includes'](_0x57938b['markerName'])&&_0x4ff541['writer']['addClass']('ck-suggestion-marker--active',_0x31a7fa),_0x4ff541['writer']['insert'](_0x42a7b6,_0x31a7fa),_0x4ff541['mapper']['bindElementToMarker'](_0x31a7fa,_0x57938b['markerName']);}};}class St extends _0x2e1a44{['afterInit'](){const _0x29b61d=this['editor'],_0x448249=_0x29b61d['model'],_0x49051f=_0x29b61d['locale'];if(!_0x29b61d['plugins']['has']('StandardEditingModeEditing'))return;const _0x26ba2=_0x29b61d['plugins']['get']('TrackChangesEditing'),_0x3b2850='restrictedEditingException',_0x50efb7=_0x29b61d['commands']['get'](_0x3b2850);_0x26ba2['enableCommand'](_0x3b2850,(_0x2e2c0f,_0x22f672={})=>{const _0x2b63cd=_0x448249['document']['selection'];if(_0x2b63cd['isCollapsed'])return void _0x2e2c0f(_0x22f672);const _0x4273c4=void 0x0!==_0x22f672['forceValue']?_0x22f672['forceValue']:!_0x50efb7['value'];_0x448249['change'](()=>{const _0x133457=Array['from'](_0x2b63cd['getRanges']());for(const _0x545563 of _0x133457){const _0x1f1f41=_0x4273c4?[_0x545563]:io(_0x3b2850,_0x545563,_0x448249);for(const _0x13cd37 of _0x1f1f41)_0x26ba2['markInlineFormat'](_0x13cd37,{'commandName':_0x3b2850,'commandParams':[{'forceValue':_0x4273c4}]});}});}),_0x26ba2['descriptionFactory']['registerDescriptionCallback'](_0x12246b=>{if('formatBlock'!=_0x12246b['type']&&'formatInline'!=_0x12246b['type'])return;const {data:_0x4800ae}=_0x12246b;return _0x4800ae&&_0x4800ae['commandName']==_0x3b2850?_0x4800ae['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x49051f,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x49051f,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x2e1a44{['afterInit'](){const _0x155fca=this['editor'];if(!_0x155fca['plugins']['has']('Style')||!_0x155fca['plugins']['has']('DataSchema'))return;const _0x369360=_0x155fca['plugins']['get']('TrackChangesEditing'),_0x5cc23b=_0x155fca['locale'],_0x237433=_0x155fca['config']['get']('style')||{},_0x3efd3e=_0x155fca['plugins']['get']('GeneralHtmlSupport'),_0x1e1b00=_0x155fca['plugins']['get']('StyleUtils')['normalizeConfig'](_0x155fca['plugins']['get']('DataSchema'),_0x237433['definitions']);_0x369360['enableDefaultAttributesIntegration']('style');const _0x228c42=new Set();for(const _0x19a134 of _0x1e1b00['block']){const _0x5f3df4=_0x3efd3e['getGhsAttributeNameForElement'](_0x19a134['element']);_0x228c42['add'](_0x5f3df4);}const _0x1eaf7e=new Set();for(const _0x4e1854 of _0x1e1b00['inline']){const _0x30b131=_0x3efd3e['getGhsAttributeNameForElement'](_0x4e1854['element']);_0x1eaf7e['add'](_0x30b131);for(const _0x4101e1 of _0x4e1854['ghsAttributes'])_0x1eaf7e['add'](_0x4101e1);}for(const _0x54fc9a of _0x228c42)_0x369360['registerBlockAttribute'](_0x54fc9a),_0x369360['descriptionFactory']['registerAttributeLabel'](_0x54fc9a,o(_0x5cc23b,'FORMAT_STYLE'));for(const _0x24b873 of _0x1eaf7e)_0x369360['registerInlineAttribute'](_0x24b873),_0x369360['descriptionFactory']['registerAttributeLabel'](_0x24b873,o(_0x5cc23b,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xcf29d8=this['editor'],_0x372b28=_0xcf29d8['locale'];_0xcf29d8['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1d59e5=>{if('formatBlock'!=_0x1d59e5['type']&&'formatInline'!=_0x1d59e5['type'])return;const {data:_0x41e1fe}=_0x1d59e5;return _0x41e1fe&&'style'===_0x41e1fe['commandName']?_0x41e1fe['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x372b28,'*Set\x20format:*\x20%0',_0x41e1fe['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x372b28,'*Remove\x20format:*\x20%0',_0x41e1fe['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x2e1a44{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3a540e){super(_0x3a540e),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x35c663=this['editor'],_0x466596=_0x35c663['model']['document']['selection'];if(!_0x35c663['plugins']['has']('TableEditing'))return;const _0x1a95b6=_0x35c663['locale'],_0x345ad1=_0x35c663['plugins']['get']('TrackChangesEditing'),_0x58cdd0=_0x35c663['plugins']['get']('TableUtils');_0x345ad1['descriptionFactory']['registerElementLabel']('table',_0x54d652=>o(_0x1a95b6,'ELEMENT_TABLE',_0x54d652)),this['_setupColumnsRowsFixing'](),_0x345ad1['enableCommand']('insertTable'),_0x345ad1['enableCommand']('selectTableRow'),_0x345ad1['enableCommand']('selectTableColumn');for(const _0x4faaa4 of['insertTableRowAbove','insertTableRowBelow']){const _0x4bd427=_0x35c663['commands']['get'](_0x4faaa4);_0x345ad1['enableCommand'](_0x4faaa4,_0x5c111e=>{_0x35c663['model']['change'](_0x598d11=>{_0x5c111e();const _0x5e226a='above'===_0x4bd427['order'],_0x2465a2=_0x58cdd0['getSelectionAffectedTableCells'](_0x466596),_0x567c88=_0x58cdd0['getRowIndexes'](_0x2465a2),_0x2c67a5=_0x5e226a?_0x567c88['first']-0x1:_0x567c88['last']+0x1,_0x2911bb=_0x2465a2[0x0]['findAncestor']('table'),_0x14be61=_0x58cdd0['createTableWalker'](_0x2911bb,{'startRow':_0x2c67a5,'endRow':_0x2c67a5}),_0x563340=Array['from'](_0x14be61)['map'](_0x54cf83=>_0x598d11['createRangeOn'](_0x54cf83['cell']));_0x345ad1['markMultiRangeInsertion'](_0x563340,'tableRow');});});}for(const _0x3f303b of['insertTableColumnLeft','insertTableColumnRight']){const _0x53d443=_0x35c663['commands']['get'](_0x3f303b);_0x345ad1['enableCommand'](_0x3f303b,_0x1e47df=>{_0x35c663['model']['change'](_0xb9b9e5=>{_0x1e47df();const _0x9fbcd9='left'===_0x53d443['order'],_0x2022ff=_0x58cdd0['getSelectionAffectedTableCells'](_0x466596),_0x2799df=_0x58cdd0['getColumnIndexes'](_0x2022ff),_0x412efe=_0x9fbcd9?_0x2799df['first']-0x1:_0x2799df['last']+0x1,_0x5c8969=_0x2022ff[0x0]['findAncestor']('table'),_0x4b489b=_0x58cdd0['createTableWalker'](_0x5c8969,{'startRow':0x0,'column':_0x412efe,'includeAllSlots':!0x1}),_0x187834=Array['from'](_0x4b489b)['map'](_0x3f9f24=>_0xb9b9e5['createRangeOn'](_0x3f9f24['cell']));_0x345ad1['markMultiRangeInsertion'](_0x187834,'tableColumn');});});}for(const _0x34f60c of['removeTableRow','removeTableColumn']){const _0x32f7d0=_0x34f60c['substr'](0xb),_0x41c175=_0x32f7d0['toLowerCase'](),_0x39a4bf=_0x41c175['substr'](0x0,0x3)+'span',_0x2b1b21='table'+_0x32f7d0,_0x4cdf09='min'+_0x32f7d0,_0x41e14c='max'+_0x32f7d0;_0x345ad1['enableCommand'](_0x34f60c,()=>{_0x35c663['model']['change'](_0x5f462b=>{const _0x1230e0=_0x58cdd0['getSelectionAffectedTableCells'](_0x466596),_0x5dae10=_0x1230e0[0x0]['findAncestor']('table');let _0x362ced;if('removeTableRow'==_0x34f60c){const _0x1e1851=_0x58cdd0['getRowIndexes'](_0x1230e0);_0x362ced={'startRow':_0x1e1851['first'],'endRow':_0x1e1851['last'],'includeAllSlots':!0x0};}else{const _0xd8df33=_0x58cdd0['getColumnIndexes'](_0x1230e0);_0x362ced={'startColumn':_0xd8df33['first'],'endColumn':_0xd8df33['last'],'includeAllSlots':!0x0};}const _0x3a5592=_0x58cdd0['createTableWalker'](_0x5dae10,_0x362ced),_0x78a4fa=Array['from'](_0x3a5592)['map'](({cell:_0x331ef7})=>_0x331ef7),_0x210ef8=Ee(_0x78a4fa['filter'](_0x520ac8=>_0x520ac8['hasAttribute'](_0x39a4bf))),_0x2722d6=Ee(_0x78a4fa['filter'](_0x13ec36=>!_0x13ec36['hasAttribute'](_0x39a4bf)))['map'](_0x241b69=>_0x5f462b['createRangeOn'](_0x241b69)),_0x1aa72e=_0x345ad1['markMultiRangeDeletion'](_0x2722d6,_0x2b1b21);if(_0x1aa72e&&('tableRow'==_0x1aa72e['subType']||'tableColumn'==_0x1aa72e['subType'])){const _0x4feb51=this['_getSuggestionCoords'](_0x1aa72e);for(const _0x57b116 of _0x210ef8){const _0x5c6f7b=_0x5f462b['createRangeOn'](_0x57b116),_0xf43fe8=_0x58cdd0['getCellLocation'](_0x57b116),_0x317275=_0x57b116['getAttribute'](_0x39a4bf)-0x1,_0x1b33b9=_0x4feb51[_0x4cdf09],_0x3576ba=_0x4feb51[_0x41e14c];_0x1b33b9<=_0xf43fe8[_0x41c175]&&_0xf43fe8[_0x41c175]+_0x317275<=_0x3576ba&&_0x1aa72e['addRange'](_0x5c6f7b);}}});});}function _0x1482aa(_0x57e5c0){const _0x43147a=Array['from'](_0x466596['getRanges']())['map'](_0x1db0c7=>_0x416c59['fromRange'](_0x1db0c7));_0x35c663['model']['change'](_0x215b51=>{const _0x3d8b99=_0x215b51['batch'];_0x57e5c0=_0x57e5c0['filter'](_0x51b057=>'$graveyard'!=_0x51b057['root']['rootName']),_0x215b51['setSelection'](_0x57e5c0),_0x35c663['commands']['get']('removeTableRow')['refresh'](),_0x35c663['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x35c663['model']['enqueueChange'](()=>{_0x35c663['model']['enqueueChange'](_0x3d8b99,_0x213ef9=>{const _0x2fea2e=_0x43147a['filter'](_0x3d0784=>'$graveyard'!=_0x3d0784['root']['rootName']);_0x2fea2e['length']>0x0&&_0x213ef9['setSelection'](_0x2fea2e);for(const _0x4b755b of _0x43147a)_0x4b755b['detach']();});});});}function _0x16ed25(_0x29c205){_0x35c663['model']['change'](_0x43671c=>{const _0x58e701=Array['from'](_0x466596['getRanges']())['map'](_0x551242=>_0x416c59['fromRange'](_0x551242)),_0x6d1f65=[];for(const _0x142897 of _0x29c205)for(const _0x4f6115 of _0x142897['getItems']({'shallow':!0x0}))_0x6d1f65['push'](_0x4f6115);for(const _0x1e477d of _0x6d1f65)'$graveyard'!=_0x1e477d['root']['rootName']&&(_0x43671c['setSelection'](_0x43671c['createPositionAt'](_0x1e477d,0x0)),_0x35c663['commands']['get']('removeTableColumn')['refresh'](),_0x35c663['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0xd2b404=_0x58e701['filter'](_0x909121=>'$graveyard'!=_0x909121['root']['rootName']);_0xd2b404['length']>0x0&&_0x43671c['setSelection'](_0xd2b404);for(const _0x51d473 of _0x58e701)_0x51d473['detach']();});}function _0x121eba(_0x13cd48,_0x35cf2){return _0x35cf2['every'](_0x56aa32=>_0x13cd48['some'](_0x537eda=>_0x537eda['end']['isEqual'](_0x56aa32['start'])||_0x56aa32['end']['isEqual'](_0x537eda['start'])));}function _0x4e9e03(_0x17e395,_0x135f01){return!_0x17e395['some'](_0x38518c=>_0x135f01['some'](_0x3f90f3=>_0x38518c['isIntersecting'](_0x3f90f3)))&&_0x17e395['some'](_0x1ddbfc=>_0x135f01['some'](_0x41de58=>_0x1ddbfc['end']['isTouching'](_0x41de58['start'])));}_0x35c663['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x36f77f,_0x673aba,_0x36e7ab)=>{if(!_0x36e7ab['options']['showSuggestionHighlights'])return;const _0xdc3ba6=_0x673aba['item'];if(!_0xdc3ba6)return;const _0xea3422=_0x36e7ab['mapper']['toViewElement'](_0xdc3ba6);function _0x142b92(_0x28e22b){return Array['isArray'](_0x28e22b)?_0x28e22b:[_0x28e22b];}_0xea3422&&'tableCell'===_0xdc3ba6['name']&&_0xd3b1fe(_0xea3422,_0x36e7ab['writer'],(_0x121952,_0x4c6461,_0x256d28)=>_0x256d28['addClass'](_0x142b92(_0x4c6461['classes']),_0x121952),(_0x318a5b,_0x1ceee3,_0xa1681)=>_0xa1681['removeClass'](_0x142b92(_0x1ceee3['classes']),_0x318a5b));},{'priority':'highest'}),_0x345ad1['descriptionFactory']['registerDescriptionCallback'](_0x599bee=>{if('insertion'!=_0x599bee['type']&&'deletion'!=_0x599bee['type'])return;const _0xd0fa5e=_0x599bee['getContainedElement']();if(null!=_0xd0fa5e&&_0xd0fa5e['is']('element','table')){if('insertion'==_0x599bee['type']){const _0x509048=_0x599bee['getItems']()['filter'](_0x5cb141=>_0x5cb141['is']('$textProxy'))['map'](_0x3196af=>_0x3196af['data']);if(_0x509048['length'])return{'type':'insertion','content':o(_0x1a95b6,'*Insert:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x509048['join']('\x20')+'\x22'))};}if('deletion'==_0x599bee['type']){const _0x2764ee=_0x599bee['getItems']()['filter'](_0x1f6038=>_0x1f6038['is']('$textProxy'))['map'](_0x16bf2f=>_0x16bf2f['data']);if(_0x2764ee['length'])return{'type':'deletion','content':o(_0x1a95b6,'*Remove:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x2764ee['join']('\x20')+'\x22'))};}}}),_0x345ad1['descriptionFactory']['registerDescriptionCallback'](_0x4e47ea=>{if('tableRow'==_0x4e47ea['subType']){const _0x5c60c7=_0x4e47ea['getItems']()['filter'](_0x288699=>_0x288699['is']('$textProxy'))['map'](_0x183ac1=>_0x183ac1['data']),_0x54aa87=this['_getSuggestionCoords'](_0x4e47ea),_0x44f4a5=_0x54aa87['maxRow']-_0x54aa87['minRow']+0x1;if('insertion'==_0x4e47ea['type'])return _0x5c60c7['length']?{'type':'insertion','content':o(_0x1a95b6,'*Insert:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44f4a5,'\x22'+_0x5c60c7['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a95b6,'*Insert:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_ROW',_0x44f4a5))};if('deletion'==_0x4e47ea['type'])return _0x5c60c7['length']?{'type':'deletion','content':o(_0x1a95b6,'*Remove:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x44f4a5,'\x22'+_0x5c60c7['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a95b6,'*Remove:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_ROW',_0x44f4a5))};}if('tableColumn'==_0x4e47ea['subType']){const _0x535b5d=_0x4e47ea['getItems']()['filter'](_0x28c4f4=>_0x28c4f4['is']('$textProxy'))['map'](_0x553482=>_0x553482['data']),_0x221a12=this['_getSuggestionCoords'](_0x4e47ea),_0x1ffce6=_0x221a12['maxColumn']-_0x221a12['minColumn']+0x1;if('insertion'==_0x4e47ea['type'])return _0x535b5d['length']?{'type':'insertion','content':o(_0x1a95b6,'*Insert:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ffce6,'\x22'+_0x535b5d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x1a95b6,'*Insert:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_COLUMN',_0x1ffce6))};if('deletion'==_0x4e47ea['type'])return _0x535b5d['length']?{'type':'deletion','content':o(_0x1a95b6,'*Remove:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x1ffce6,'\x22'+_0x535b5d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x1a95b6,'*Remove:*\x20%0',o(_0x1a95b6,'ELEMENT_TABLE_COLUMN',_0x1ffce6))};}}),_0x345ad1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1482aa),_0x345ad1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1482aa),_0x345ad1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x16ed25),_0x345ad1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x16ed25),_0x345ad1['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x121eba),_0x345ad1['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x121eba),_0x345ad1['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4e9e03),_0x345ad1['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4e9e03);}['_acceptFormatSuggestionCallbackFactory'](){const _0x4b125d=this['editor'],_0x79158=_0x4b125d['model']['document']['selection'];return(_0x5308f3,_0x4c9500)=>{_0x4b125d['model']['change'](_0x2ee0b7=>{const {commandName:_0x3172f0,commandParams:_0x4d5937}=_0x4c9500;let _0x145211=_0x5308f3[0x0]['end']['nodeBefore'];_0x4d5937&&_0x4d5937[0x0]&&!0x1===_0x4d5937[0x0]['forceValue']&&(_0x145211=_0x5308f3[0x0]['start']['nodeAfter']);const _0x20502e=_0x2ee0b7['createRangeIn'](_0x145211);if('$graveyard'==_0x20502e['root']['rootName'])return;const _0x158ef7=Array['from'](_0x79158['getRanges']())['map'](_0x4be7cc=>_0x416c59['fromRange'](_0x4be7cc));_0x2ee0b7['setSelection'](_0x20502e),_0x4b125d['commands']['get'](_0x3172f0)['refresh'](),_0x4d5937['push']({'forceDefaultExecution':!0x0}),_0x4b125d['execute'](_0x3172f0,..._0x4d5937);const _0x229d26=_0x158ef7['filter'](_0x47d3be=>'$graveyard'!=_0x47d3be['root']['rootName']);_0x229d26['length']>0x0&&_0x2ee0b7['setSelection'](_0x229d26);for(const _0x3170b2 of _0x158ef7)_0x3170b2['detach']();});};}['_getCoordsForCells'](_0x59c3d6){const _0x18809d=this['editor']['plugins']['get']('TableUtils');let _0x440645=Number['MAX_SAFE_INTEGER'],_0x3d0435=Number['MIN_SAFE_INTEGER'],_0x5c9139=Number['MAX_SAFE_INTEGER'],_0x36f1c7=Number['MIN_SAFE_INTEGER'];for(const _0x10dc8c of _0x59c3d6){if('$graveyard'==_0x10dc8c['root']['rootName'])continue;const {row:_0x1fe7d6,column:_0x3aa8d7}=_0x18809d['getCellLocation'](_0x10dc8c),_0x111831=_0x10dc8c['hasAttribute']('rowspan')?_0x10dc8c['getAttribute']('rowspan')-0x1:0x0,_0x5bf257=_0x10dc8c['hasAttribute']('colspan')?_0x10dc8c['getAttribute']('colspan')-0x1:0x0;_0x440645=_0x1fe7d6<_0x440645?_0x1fe7d6:_0x440645,_0x3d0435=_0x1fe7d6+_0x111831>_0x3d0435?_0x1fe7d6+_0x111831:_0x3d0435,_0x5c9139=_0x3aa8d7<_0x5c9139?_0x3aa8d7:_0x5c9139,_0x36f1c7=_0x3aa8d7+_0x5bf257>_0x36f1c7?_0x3aa8d7+_0x5bf257:_0x36f1c7;}return{'minRow':_0x440645,'maxRow':_0x3d0435,'minColumn':_0x5c9139,'maxColumn':_0x36f1c7};}['_setupColumnsRowsFixing'](){const _0x376675=this['editor'],_0x38f2a7=_0x376675['plugins']['get']('TrackChangesEditing'),_0x56b24c=_0x376675['plugins']['get']('TableUtils');_0x376675['model']['document']['on']('change:data',()=>{const _0x2fd303=Array['from'](_0x376675['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4adba8,data:_0x971910}of _0x2fd303){const {group:_0x5b510f,id:_0x4bd9db,subType:_0x11f729}=_0x38f2a7['_splitMarkerName'](_0x4adba8);if('suggestion'!=_0x5b510f)continue;if(null!=_0x971910['oldRange'])continue;const _0x11a538=_0x38f2a7['getSuggestion'](_0x4bd9db);this['_tablePostFixingSubtypes']['includes'](_0x11f729)&&this['_tableSuggestions']['add'](_0x11a538);}},{'priority':'low'});const _0x58d3e6=(_0x23a968,_0x8d66d7)=>{let _0x3393ad=!0x1;const _0x440270=_0x8d66d7['createRangeOn'](_0x23a968),_0x2775d0=_0x23a968['findAncestor']('table'),_0xfcd7e3=_0x56b24c['getCellLocation'](_0x23a968);for(const _0x41c2b2 of this['_tableSuggestions']){const _0x3a1cf3=_0x41c2b2['subType'],_0x4218ea=_0x3a1cf3['startsWith']('tablePaste'),_0xbbecfc=_0x3a1cf3['substr'](_0x4218ea?0xa:0x5),_0x507c39=_0xbbecfc['toLowerCase'](),_0x55a996=_0x507c39['substr'](0x0,0x3)+'span',_0x2ae5ec='min'+_0xbbecfc,_0xeb45cc='max'+_0xbbecfc;if(!_0x41c2b2['isInContent'])continue;if(_0x2775d0!=_0x41c2b2['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x41c2b2['isIntersectingWithRange'](_0x440270))continue;const _0x1d39c0=_0x23a968['hasAttribute'](_0x55a996)?_0x23a968['getAttribute'](_0x55a996)-0x1:0x0,_0x1574e0=this['_getSuggestionCoords'](_0x41c2b2),_0x2a4946=_0x1574e0[_0x2ae5ec],_0x902c78=_0x1574e0[_0xeb45cc];_0x2a4946<=_0xfcd7e3[_0x507c39]&&_0xfcd7e3[_0x507c39]+_0x1d39c0<=_0x902c78&&(_0x41c2b2['addRange'](_0x440270),_0x3393ad=!0x0);}return _0x3393ad;};_0x376675['model']['document']['registerPostFixer'](_0x583e87=>{let _0x28cb84=!0x1;for(const _0x47b431 of _0x376675['model']['document']['differ']['getChanges']())if('insert'==_0x47b431['type']){if('tableRow'==_0x47b431['name']){for(const _0x325157 of _0x47b431['position']['nodeAfter']['getChildren']())_0x28cb84=_0x28cb84||_0x58d3e6(_0x325157,_0x583e87);}else'tableCell'==_0x47b431['name']&&(_0x28cb84=_0x28cb84||_0x58d3e6(_0x47b431['position']['nodeAfter'],_0x583e87));}return _0x28cb84;});}['_getSuggestionCoords'](_0x559a69){return this['_getCoordsForCells'](_0x559a69['getRanges']()['map'](_0x5c9492=>_0x5c9492['start']['nodeAfter']));}}function Ee(_0x109ad1){return Array['from'](new Set(_0x109ad1)['values']());}class vt extends _0x2e1a44{static get['requires'](){return[It];}['afterInit'](){const _0x26e4ec=this['editor'],_0x1669b6=_0x26e4ec['model']['document']['selection'],_0x3027b0=_0x26e4ec['locale'];if(!_0x26e4ec['plugins']['has']('TableEditing'))return;const _0x295fbd=_0x26e4ec['plugins']['get']('TrackChangesEditing'),_0x477be4=_0x26e4ec['plugins']['get']('TableUtils'),_0x535d28=_0x26e4ec['plugins']['get'](It);_0x535d28['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x295fbd['enableCommand']('mergeTableCells',()=>{const _0x598c2c=_0x477be4['getSelectionAffectedTableCells'](_0x26e4ec['model']['document']['selection']);_0x26e4ec['model']['change'](()=>{_0x295fbd['markMultiRangeBlockFormat'](_0x598c2c,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x26e4ec['commands']['get']('mergeTableCells')['on']('execute',(_0x56c1c7,_0x1496c0)=>{_0x26e4ec['commands']['get']('trackChanges')['value']&&(_0x1496c0['length']>0x0&&_0x1496c0[_0x1496c0['length']-0x1]&&_0x1496c0[_0x1496c0['length']-0x1]['forceDefaultExecution']||_0x295fbd['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x56c1c7['stop']());},{'priority':'highest'});for(const _0x5cc5f4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x29f068=_0x26e4ec['commands']['get'](_0x5cc5f4);_0x295fbd['enableCommand'](_0x5cc5f4,()=>{const _0x17d423=_0x26e4ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x1557fc=>_0x1557fc['is']('element','tableCell')),_0x539c23=_0x29f068['value'];_0x26e4ec['model']['change'](()=>{_0x295fbd['markMultiRangeBlockFormat']([_0x17d423,_0x539c23],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x234879 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x3f76bb=_0x26e4ec['commands']['get'](_0x234879);_0x295fbd['enableCommand'](_0x234879,()=>{const _0x222b01=_0x477be4['getSelectionAffectedTableCells'](_0x26e4ec['model']['document']['selection'])[0x0],_0x50c1b8=_0x222b01['findAncestor']('table'),{column:_0x47b086,row:_0x7a7082}=_0x477be4['getCellLocation'](_0x222b01);let _0xb8bd6c=[];if('horizontally'==_0x3f76bb['direction']){const _0x555306=_0x477be4['createTableWalker'](_0x50c1b8,{'startRow':_0x7a7082,'endRow':_0x7a7082,'includeAllSlots':!0x0});_0xb8bd6c=Array['from'](_0x555306)['map'](_0x1598cc=>_0x1598cc['cell']);}else{const _0x15d91b=_0x477be4['createTableWalker'](_0x50c1b8,{'column':_0x47b086,'includeAllSlots':!0x0});_0xb8bd6c=Array['from'](_0x15d91b)['map'](_0x5a4870=>_0x5a4870['cell']);}_0x26e4ec['model']['change'](_0x1115a4=>{_0x295fbd['markBlockFormat'](_0x1115a4['createRangeOn'](_0x222b01),{'commandName':_0x234879,'commandParams':[]},_0xb8bd6c,_0x234879);});});}_0x295fbd['descriptionFactory']['registerDescriptionCallback'](_0x495e9e=>{if('formatBlock'!=_0x495e9e['type']&&'formatInline'!=_0x495e9e['type'])return;const {data:_0x483ef4}=_0x495e9e;return _0x483ef4&&'mergeTableCells'==_0x483ef4['commandName']?{'type':'format','content':o(_0x3027b0,'*Merge\x20cells*')}:void 0x0;}),_0x295fbd['descriptionFactory']['registerDescriptionCallback'](_0x556f3f=>{if('formatBlock'!=_0x556f3f['type']&&'formatInline'!=_0x556f3f['type'])return;const {data:_0x16debc}=_0x556f3f;return _0x16debc?'splitTableCellVertically'==_0x16debc['commandName']?{'type':'format','content':o(_0x3027b0,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x16debc['commandName']?{'type':'format','content':o(_0x3027b0,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x518819=_0x535d28['_acceptFormatSuggestionCallbackFactory']();for(const _0x2374e2 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x295fbd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2374e2,'accept',_0x518819);for(const _0x189bb2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x295fbd['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x189bb2,'accept',_0x518819);_0x295fbd['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x47178a=>{_0x26e4ec['model']['change'](_0x345ab6=>{const _0xe4cd07=Array['from'](_0x1669b6['getRanges']())['map'](_0x4a6ef8=>_0x416c59['fromRange'](_0x4a6ef8));_0x345ab6['setSelection'](_0x47178a),_0x26e4ec['commands']['get']('mergeTableCells')['refresh'](),_0x26e4ec['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x34c5c0=_0xe4cd07['filter'](_0x28be1f=>'$graveyard'!=_0x28be1f['root']['rootName']);_0x34c5c0['length']>0x0&&_0x345ab6['setSelection'](_0x34c5c0);for(const _0x39c4e7 of _0xe4cd07)_0x39c4e7['detach']();});});for(const _0x33043f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x3d642b=_0x26e4ec['commands']['get'](_0x33043f);_0x3d642b['on']('set:isEnabled',(_0x398674,_0x123c40,_0x998005)=>{if(_0x998005){const _0x2ed52d=_0x26e4ec['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3a5ca4=>_0x3a5ca4['is']('element','tableCell'));this['_areMergableCells'](_0x3d642b['value'],_0x2ed52d)||(_0x398674['return']=!0x1,_0x398674['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x3bb5b0=this['editor']['commands']['get']('mergeTableCells'),_0xdb91fc=this['editor']['plugins']['get']('TableUtils');if(!_0x3bb5b0['isEnabled'])return!0x1;const _0x4d70d7=_0xdb91fc['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x18528e of _0x4d70d7)for(const _0x31f319 of _0x4d70d7)if(_0x18528e!=_0x31f319&&!this['_areMergableCells'](_0x18528e,_0x31f319))return!0x1;return!0x0;}['_areMergableCells'](_0x2c8e01,_0x4b2278){const _0x4f614a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x226ad7=this['editor']['model']['createRangeOn'](_0x2c8e01),_0x5a4076=this['editor']['model']['createRangeOn'](_0x4b2278),_0x14849a=new Set(),_0x4f1a4f=new Set();for(const _0x218aaa of _0x4f614a['getSuggestions']())if(('insertion'==_0x218aaa['type']||'deletion'==_0x218aaa['type']||'mergeTableCells'==_0x218aaa['subType'])&&_0x218aaa['isInContent']){for(const _0x51568f of _0x218aaa['getRanges']())_0x51568f['containsRange'](_0x226ad7,!0x0)&&_0x14849a['add'](_0x218aaa['type']+':'+_0x218aaa['author']['id']),_0x51568f['containsRange'](_0x5a4076,!0x0)&&_0x4f1a4f['add'](_0x218aaa['type']+':'+_0x218aaa['author']['id']);}if(_0x14849a['size']!=_0x4f1a4f['size'])return!0x1;for(const _0xddbdde of _0x14849a)if(!_0x4f1a4f['has'](_0xddbdde))return!0x1;return!0x0;}}class Ct extends _0x2e1a44{static get['requires'](){return[It];}['afterInit'](){const _0xe5abf9=this['editor'];if(!_0xe5abf9['plugins']['has']('TableEditing'))return;const _0x56d437=_0xe5abf9['locale'],_0x2541a9=_0xe5abf9['plugins']['get']('TrackChangesEditing');_0x2541a9['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x2541a9['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x2541a9['registerBlockAttribute']('headingRows'),_0x2541a9['registerBlockAttribute']('headingColumns'),_0x2541a9['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x56d437,'FORMAT_HEADER_ROW')),_0x2541a9['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x56d437,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1c0a52=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26c254=this['editor']['plugins']['get']('TableUtils'),_0x1972b5=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0xe9de0e({showActiveMarker:_0x1d32b5=!0x0,setDataAttribute:_0xa8a086=!0x0}={}){return(_0x33f0de,_0x2861c5,_0xf4b0d7)=>{const {type:_0x46416c,id:_0x1e2694}=_0x1c0a52['_splitMarkerName'](_0x2861c5['markerName']),_0x400445=_0x1c0a52['getSuggestion'](_0x1e2694),_0x43d4c9=_0x400445['data'];if('formatBlock'!=_0x400445['type']||!_0x43d4c9||'setTableColumnHeader'!=_0x43d4c9['commandName'])return;if(_0x2861c5['item'])return void _0x33f0de['stop']();if(!_0xf4b0d7['consumable']['consume'](_0x2861c5['markerRange'],_0x33f0de['name']))return;const _0x34fccd=_0x2861c5['markerRange']['start']['nodeAfter'],_0x3a1885=_0x2861c5['markerRange']['end']['nodeBefore'],_0x49a031=_0x34fccd['parent']['parent'],{column:_0x118ac6}=_0x26c254['getCellLocation'](_0x34fccd),{column:_0x5b2f22}=_0x26c254['getCellLocation'](_0x3a1885);for(let _0x375131=_0x118ac6;_0x375131<=_0x5b2f22;_0x375131++){const _0x19d62b=_0x26c254['createTableWalker'](_0x49a031,{'column':_0x375131,'includeAllSlots':!0x1});for(const _0x5c052d of _0x19d62b){const _0x4cde76=_0x5c052d['cell'],_0x20e7fb=_0xf4b0d7['mapper']['toViewElement'](_0x4cde76);_0xf4b0d7['writer']['addClass']('ck-suggestion-marker-'+_0x46416c,_0x20e7fb),_0xa8a086&&_0xf4b0d7['writer']['setAttribute']('data-suggestion',_0x1e2694,_0x20e7fb),_0xf4b0d7['mapper']['bindElementToMarker'](_0x20e7fb,_0x2861c5['markerName']),_0x1d32b5&&(_0x1c0a52['activeMarkers']['includes'](_0x2861c5['markerName'])?_0xf4b0d7['writer']['addClass']('ck-suggestion-marker--active',_0x20e7fb):_0xf4b0d7['writer']['removeClass']('ck-suggestion-marker--active',_0x20e7fb));}}};}_0x1c0a52['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1972b5),_0x1c0a52['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1972b5),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0xe9de0e(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x289525,_0x48d938,_0x2ac1e8)=>{_0x2ac1e8['options']['showSuggestionHighlights']&&_0xe9de0e({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x289525,_0x48d938,_0x2ac1e8);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x55626d,_0x16f9d1,_0x3b6061)=>{const {type:_0x1209c9,id:_0x1f0966}=_0x1c0a52['_splitMarkerName'](_0x16f9d1['markerName']),_0x457465=_0x1c0a52['getSuggestion'](_0x1f0966),_0x3455f8=_0x457465['data'];if('formatBlock'!=_0x457465['type']||!_0x3455f8||'setTableColumnHeader'!=_0x3455f8['commandName'])return;const _0x18936e=_0x3b6061['mapper']['markerNameToElements'](_0x16f9d1['markerName']);if(_0x18936e){for(const _0x108541 of _0x18936e)_0x3b6061['writer']['removeClass']('ck-suggestion-marker-'+_0x1209c9,_0x108541),_0x3b6061['writer']['removeClass']('ck-suggestion-marker--active',_0x108541),_0x3b6061['writer']['removeAttribute']('data-suggestion',_0x108541),_0x3b6061['mapper']['unbindElementFromMarkerName'](_0x108541,_0x16f9d1['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3a4b3d=this['editor'],_0x42405a=_0x3a4b3d['locale'];function _0xf04a4e(_0x5ee11b){return{'type':'format','content':o(_0x42405a,'*Format:*\x20%0',_0x5ee11b)};}_0x3a4b3d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2e4b12=>{if('formatBlock'!=_0x2e4b12['type'])return;const {data:_0x518b94}=_0x2e4b12;if(_0x518b94){if('setTableRowHeader'==_0x518b94['commandName']){const _0x51839c=_0x518b94['commandParams'][0x0]['forceValue'];return _0xf04a4e(o(_0x42405a,_0x51839c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x518b94['commandName']){const _0x49ce3f=_0x518b94['commandParams'][0x0]['forceValue'];return _0xf04a4e(o(_0x42405a,_0x49ce3f?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x11b19f=>[_0x11b19f,null]));class _t extends _0x2e1a44{static get['requires'](){return[It];}['afterInit'](){const _0x55e13c=this['editor'];if(!_0x55e13c['plugins']['has']('TableClipboard'))return;const _0x24b3a6=_0x55e13c['plugins']['get']('TrackChangesEditing'),_0x4c353a=_0x55e13c['plugins']['get']('TableUtils'),_0x47280e=_0x55e13c['plugins']['get'](It),_0x1f7132=_0x55e13c['plugins']['get']('TableClipboard');_0x47280e['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x55e13c['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x55e13c['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3f336d=null;_0x55e13c['model']['on']('insertContent',(_0x483210,_0x4e5cb5)=>{const [_0x17dd54,_0xab7770]=_0x4e5cb5,_0x443927=_0x4e5cb5[_0x4e5cb5['length']-0x1];_0x443927&&_0x443927['forceDefaultExecution']||_0x24b3a6['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x1a0edc,_0x2deb34,_0xef1e31,_0x1567ff,_0x30159b){if(_0x2deb34&&!_0x2deb34['is']('documentSelection'))return!0x1;const _0x32ba30=_0x30159b['getTableIfOnlyTableInContent'](_0x1a0edc,_0xef1e31);if(!_0x32ba30||!ke(_0x32ba30,void 0x0,_0x1567ff))return!0x1;const _0x3e30d7=_0x1567ff['getSelectionAffectedTableCells'](_0xef1e31['document']['selection']);if(!_0x3e30d7['length'])return!0x1;const _0x351b0b=_0x3e30d7[0x0]['findAncestor']('table'),_0x24de18=_0x1567ff['getRowIndexes'](_0x3e30d7),_0x375de4=_0x1567ff['getColumnIndexes'](_0x3e30d7),_0x136a44={'startRow':_0x24de18['first'],'endRow':_0x24de18['last'],'startColumn':_0x375de4['first'],'endColumn':_0x375de4['last']};return 0x1==_0x3e30d7['length']&&(_0x136a44['endRow']+=_0x1567ff['getRows'](_0x32ba30)-0x1,_0x136a44['endColumn']+=_0x1567ff['getColumns'](_0x32ba30)-0x1),ke(_0x351b0b,_0x136a44,_0x1567ff);}(_0x17dd54,_0xab7770,_0x55e13c['model'],_0x4c353a,_0x1f7132)&&(_0x483210['stop'](),_0x3f336d={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x55e13c['model']['change'](()=>{_0x55e13c['model']['insertContent'](_0x4e5cb5[0x0],_0x4e5cb5[0x1],_0x4e5cb5[0x2],{'forceDefaultExecution':!0x0});const _0x2c9bae=_0x29b31c(),{rowInsertionRanges:_0x5075b4,columnInsertionRanges:_0x47ed59,insertionRanges:_0x12acbf,deletionRanges:_0x1d38cc,cells:_0x35cad7}=_0x3f336d;_0x5075b4['length']&&_0x24b3a6['markMultiRangeInsertion'](_0x5075b4,'tablePasteRow',{'tablePasteChainId':_0x2c9bae}),_0x47ed59['length']&&_0x24b3a6['markMultiRangeInsertion'](_0x47ed59,'tablePasteColumn',{'tablePasteChainId':_0x2c9bae}),_0x12acbf['length']&&(_0x24b3a6['markMultiRangeInsertion'](_0x12acbf,'tablePaste',{'tablePasteChainId':_0x2c9bae,'skipNestingCheck':!0x0}),_0x12acbf['forEach'](_0x5ed2a7=>_0x5ed2a7['detach']?.())),_0x1d38cc['length']&&(_0x24b3a6['markMultiRangeDeletion'](_0x1d38cc,'tablePaste',{'tablePasteChainId':_0x2c9bae,'skipNestingCheck':!0x0}),_0x1d38cc['forEach'](_0x50777d=>_0x50777d['detach']?.()));const _0x5061bb=_0x24b3a6['markMultiRangeBlockFormat'](_0x35cad7['map'](({element:_0x5d87b5})=>_0x5d87b5),{'formatGroupId':_0x29b31c()},[],'tablePasteCell',{'tablePasteChainId':_0x2c9bae});if(_0x5061bb){const _0x1848c4=_0x5061bb['getMarkers'](),_0x5d8896=[];for(const {element:_0x17c3d5,attributes:_0xd1626}of _0x35cad7){if(!_0xd1626)continue;const _0x542f92=_0x55e13c['model']['createRangeOn'](_0x17c3d5),_0x4f0852=_0x1848c4['find'](_0x5a68f2=>_0x5a68f2['getRange']()['isEqual'](_0x542f92));_0x4f0852&&_0x5d8896['push']([_0x4f0852['name'],_0xd1626]);}_0x5d8896['length']&&_0x5061bb['setAttribute']('markerAttributes',Object['fromEntries'](_0x5d8896));}_0x3f336d=null;}));},{'priority':_0x1a97e2['high']+0xa}),_0x55e13c['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4ea041,_0x23e3a3)=>{const [_0x13fcd5,_0x18c970,,_0x28a719]=_0x23e3a3;if(!_0x3f336d)return;_0x4ea041['stop']();const _0x231fa6=_0x13fcd5['cell'],_0x37f8a7=_0x18c970,_0x5f1fa1=we(_0x231fa6),_0xc7f5f7=we(_0x37f8a7);_0x4ea041['return']=_0x231fa6;let _0x352075=null,_0x208c13=null;if(_0xc7f5f7||_0x5f1fa1){if(_0x5f1fa1&&!_0xc7f5f7){_0x28a719['remove'](_0x231fa6['getChild'](0x0));for(const _0x297195 of Array['from'](_0x37f8a7['getChildren']()))_0x28a719['insert'](_0x297195,_0x231fa6,'end');const _0x24e169=_0x3f336d['rowInsertionIndexes']['includes'](_0x13fcd5['row']),_0x5b91ab=_0x3f336d['columnInsertionIndexes']['includes'](_0x13fcd5['column']);_0x24e169||_0x5b91ab||(_0x352075=_0x416c59['fromRange'](_0x28a719['createRangeIn'](_0x231fa6)));}else _0xc7f5f7&&!_0x5f1fa1&&(_0x208c13=_0x28a719['createRangeIn'](_0x231fa6));}else{const _0x2b224f=_0x28a719['createElement']('tableCellSuggestion'),_0x3473e3=_0x28a719['createElement']('tableCellSuggestion');_0x28a719['wrap'](_0x28a719['createRangeIn'](_0x231fa6),_0x3473e3),_0x28a719['insert'](_0x2b224f,_0x231fa6,0x0);for(const _0x5e9259 of Array['from'](_0x37f8a7['getChildren']()))_0x28a719['insert'](_0x5e9259,_0x2b224f,'end');_0x352075=_0x416c59['fromRange'](_0x28a719['createRangeOn'](_0x2b224f)),_0x208c13=_0x416c59['fromRange'](_0x28a719['createRangeOn'](_0x3473e3));}const _0x878d60=Array['from'](_0x37f8a7['getAttributes']())['filter'](([_0x53ebb7])=>Ce['includes'](_0x53ebb7));_0x3f336d['cells']['push']({'element':_0x231fa6,'attributes':_0x878d60['length']?Object['fromEntries'](_0x878d60):null}),_0x352075&&_0x3f336d['insertionRanges']['push'](_0x352075),_0x208c13&&_0x3f336d['deletionRanges']['push'](_0x208c13);},{'priority':'high'}),_0x4c353a['on']('insertColumns',(_0x313521,_0x3b6ed2)=>{const [_0x30e9b4,_0x3ff812={}]=_0x3b6ed2;if(!_0x3f336d)return;const _0x57543a=_0x3ff812['at']||0x0,_0x110d3a=_0x3ff812['columns']||0x1;_0x3f336d['columnInsertionIndexes']=new Array(_0x110d3a)['fill'](_0x57543a)['map']((_0x576384,_0x5f1d01)=>_0x576384+_0x5f1d01);for(const {cell:_0x57b0a9}of _0x4c353a['createTableWalker'](_0x30e9b4,{'startColumn':_0x57543a,'endColumn':_0x57543a+_0x110d3a-0x1}))_0x3f336d['columnInsertionRanges']['push'](_0x55e13c['model']['createRangeOn'](_0x57b0a9));},{'priority':'low'}),_0x4c353a['on']('insertRows',(_0x2fecca,_0x3e32ea)=>{const [_0x4a7229,_0x251bdb={}]=_0x3e32ea;if(!_0x3f336d)return;const _0xc13b4a=_0x251bdb['at']||0x0,_0x5d5545=_0x251bdb['rows']||0x1;_0x3f336d['rowInsertionIndexes']=new Array(_0x5d5545)['fill'](_0xc13b4a)['map']((_0x2ea258,_0x2f66e7)=>_0x2ea258+_0x2f66e7);for(const {cell:_0x2d7ce7}of _0x4c353a['createTableWalker'](_0x4a7229,{'startRow':_0xc13b4a,'endRow':_0xc13b4a+_0x5d5545-0x1}))_0x3f336d['rowInsertionRanges']['push'](_0x55e13c['model']['createRangeOn'](_0x2d7ce7));},{'priority':'low'}),_0x24b3a6['descriptionFactory']['registerDescriptionCallback'](_0x1204a9=>{if(_0x1204a9['subType']&&_0x1204a9['subType']['startsWith']('tablePaste'))return _0x1204a9['previous']?{}:{'type':'insertion','content':o(_0x55e13c['locale'],'*Replace\x20table\x20cells*')};});const _0x3b4551=()=>!0x1;for(const _0x26dcd0 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x24b3a6['_suggestionFactory']['registerCustomCallback']('insertion',_0x26dcd0,'join',_0x3b4551),_0x24b3a6['_suggestionFactory']['registerCustomCallback']('deletion',_0x26dcd0,'join',_0x3b4551),_0x24b3a6['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x26dcd0,'join',_0x3b4551);_0x24b3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3b4551),_0x24b3a6['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5721d5,_0x2acc67,_0x8b91bd)=>{const _0x366dc5=_0x5721d5['map'](_0x1f481b=>_0x1f481b['getContainedElement']())['filter'](_0x3fc22e=>_0x3fc22e),_0x25d852=new Map(_0x366dc5['map'](_0xcc5bc2=>[_0xcc5bc2,null]));if(_0x3f336d){for(const {element:_0x18c0c0,attributes:_0xfe1152}of _0x3f336d['cells'])_0xfe1152&&_0x25d852['set'](_0x18c0c0,_0xfe1152);}else{if(_0x8b91bd&&_0x8b91bd['markerAttributes'])for(const [_0x5915c5,_0x338f91]of Object['entries'](_0x8b91bd['markerAttributes'])){const _0x325567=_0x55e13c['model']['markers']['get'](_0x5915c5),_0x3f0d83=_0x325567?_0x325567['getRange']()['getContainedElement']():null;_0x3f0d83&&_0x25d852['set'](_0x3f0d83,_0x338f91);}}_0x55e13c['model']['change'](_0x5ae47c=>{for(const [_0x5f20bf,_0x56cdfc]of _0x25d852)_0x5ae47c['setAttributes']({...Pe,..._0x56cdfc},_0x5f20bf);});});const _0x5a2ef5=(_0x328135,_0x47aabb)=>{_0x24b3a6['_suggestionFactory']['registerCustomCallback'](_0x328135,'tablePaste',_0x47aabb,(_0x3f2831,_0x4ed2f7,_0x5f2e5a)=>{_0x55e13c['model']['change'](_0x596aac=>{const _0x2ed423=[];for(const _0x2b38f2 of _0x3f2831){const _0x49cd48=_0x2b38f2['start']['nodeAfter'];_0x49cd48['is']('element','tableCellSuggestion')&&_0x2ed423['push'](_0x49cd48);}_0x24b3a6['_suggestionFactory']['getSuggestionCallback'](_0x328135,null,_0x47aabb)(_0x3f2831,_0x4ed2f7,_0x5f2e5a);for(const _0x25ad30 of _0x2ed423)'$graveyard'!=_0x25ad30['root']['rootName']&&_0x596aac['unwrap'](_0x25ad30);});});};_0x5a2ef5('insertion','accept'),_0x5a2ef5('insertion','discard'),_0x5a2ef5('deletion','accept'),_0x5a2ef5('deletion','discard'),_0x24b3a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x50618f=>{const _0x8732b9=_0x50618f['map'](_0x20d529=>_0x20d529['getContainedElement']()),_0x52c628=_0x8732b9[0x0]['findAncestor']('table'),{minRow:_0x3d7856,maxRow:_0x1400fb}=_0x47280e['_getCoordsForCells'](_0x8732b9);_0x4c353a['removeRows'](_0x52c628,{'at':_0x3d7856,'rows':_0x1400fb-_0x3d7856+0x1});}),_0x24b3a6['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x74651f=>{const _0x1e8e0b=_0x74651f['map'](_0x557646=>_0x557646['getContainedElement']()),_0x527172=_0x1e8e0b[0x0]['findAncestor']('table'),{minColumn:_0x22c391,maxColumn:_0x244265}=_0x47280e['_getCoordsForCells'](_0x1e8e0b);_0x4c353a['removeColumns'](_0x527172,{'at':_0x22c391,'columns':_0x244265-_0x22c391+0x1});});const _0x3d2ec8=(_0x25d788,_0x3d6fd7)=>{if(!_0x3d6fd7['subType']||!_0x3d6fd7['subType']['startsWith']('tablePaste'))return;const _0x392c8f=_0x3d6fd7['attributes']['tablePasteChainId'],_0x43a3b3=_0x24b3a6['getSuggestions']()['filter'](_0x313dec=>_0x313dec['isInContent']&&_0x313dec['attributes']&&_0x313dec['attributes']['tablePasteChainId']==_0x392c8f);_0x43a3b3['length']&&_0x3d6fd7['getAllAdjacentSuggestions']()['length']!=_0x43a3b3['length']&&_0x43a3b3['reduce']((_0x1a6e31,_0x4d9b4f)=>(_0x1a6e31['next']=_0x4d9b4f,_0x4d9b4f['previous']=_0x1a6e31,_0x4d9b4f));};function _0x32de33(_0x17429,_0x4eb3d6=!0x0){const {id:_0x3e2a76}=_0x24b3a6['_splitMarkerName'](_0x17429['markerName']),_0x57ebda=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x5395d7=_0x24b3a6['activeMarkers']['includes'](_0x17429['markerName']);return _0x5395d7&&_0x57ebda['push']('ck-suggestion-marker--active'),{'classes':_0x57ebda,'attributes':{'data-suggestion':_0x3e2a76},'priority':_0x5395d7&&_0x4eb3d6?0xbc2:0xbb8};}_0x24b3a6['on']('suggestionLoaded',_0x3d2ec8,{'priority':'high'}),_0x24b3a6['on']('suggestionUnloaded',_0x3d2ec8,{'priority':'high'}),_0x55e13c['model']['document']['registerPostFixer'](()=>{let _0x5726ec=!0x1;const _0x294937=Array['from'](_0x55e13c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5b4104,data:_0x3ca46f}of _0x294937){const {group:_0xd16c51,type:_0x159f50,id:_0xb7b48c}=_0x24b3a6['_splitMarkerName'](_0x5b4104);if('suggestion'!=_0xd16c51||'deletion'!=_0x159f50||_0x3ca46f['oldRange'])continue;if(!_0x24b3a6['hasSuggestion'](_0xb7b48c))continue;const _0x2fabea=_0x24b3a6['getSuggestion'](_0xb7b48c)['getRanges'](),_0xec96f7=_0x55e13c['plugins']['get']('Users')['me'];for(const _0x19ff04 of _0x24b3a6['getSuggestions']()){if(!_0x19ff04['isInContent']||_0x19ff04['author']!=_0xec96f7)continue;if('formatBlock'!=_0x19ff04['type']||'tablePasteCell'!=_0x19ff04['subType'])continue;if(_0x19ff04['getRanges']()['every'](_0x309995=>_0x2fabea['some'](_0x4c16b8=>_0x4c16b8['containsRange'](_0x309995,!0x0)))){for(const _0x209359 of _0x19ff04['getAllAdjacentSuggestions']())_0x209359['isInContent']&&(_0x209359['discard'](),_0x5726ec=!0x0);}}}return _0x5726ec;}),_0x55e13c['model']['document']['registerPostFixer'](_0x29914c=>{const _0xab8680=_0x55e13c['commands']['get']('redo');if(!_0xab8680||!_0xab8680['_createdBatches']['has'](_0x29914c['batch']))return!0x1;let _0x3969b6=!0x1;const _0x4d3f3d=_0x55e13c['plugins']['get']('Users')['me'],_0x4c74d9=_0x55e13c['model']['document']['differ']['getChanges'](),_0x2a65e5=Array['from'](_0x55e13c['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25d011,data:_0x216c36})=>{const {group:_0x259403,subType:_0x5bff53,authorId:_0x18a34f}=_0x24b3a6['_splitMarkerName'](_0x25d011);return'suggestion'==_0x259403&&'tablePaste'==_0x5bff53&&_0x18a34f==_0x4d3f3d['id']&&!_0x216c36['oldRange'];});for(const _0x3f8104 of _0x4c74d9){if('insert'!=_0x3f8104['type']||'tableCellSuggestion'!=_0x3f8104['name']||0x1!=_0x3f8104['length'])continue;const _0xca6f71=_0x29914c['createRange'](_0x3f8104['position'],_0x3f8104['position']['getShiftedBy'](0x1));if(!_0x2a65e5['find'](({data:_0x4e6237})=>_0x4e6237['newRange']['isEqual'](_0xca6f71))){for(const {name:_0x2e25f0,data:_0x3c04f5}of _0x2a65e5)if(_0xca6f71['containsRange'](_0x3c04f5['newRange'])){_0x29914c['updateMarker'](_0x2e25f0,{'range':_0xca6f71}),_0x3969b6=!0x0;break;}}}return _0x3969b6;}),_0x55e13c['model']['document']['registerPostFixer'](_0x56b079=>{let _0x553aaf=!0x1;const _0x5c7d31=_0x55e13c['plugins']['get']('Users')['me'],_0x3410e9=_0x24b3a6['getSuggestions']()['filter'](_0x3dfa3b=>_0x3dfa3b['isInContent']&&_0x3dfa3b['author']==_0x5c7d31),_0x946354=new Set(),_0x190606=new Set();for(const _0x189d4b of _0x3410e9)if('tablePaste'==_0x189d4b['subType'])for(const _0x1544c1 of _0x189d4b['getMarkers']()){const _0x441d24=_0x1544c1['getRange']()['getContainedElement']();if(_0x441d24){if(_0x441d24['is']('element','tableCellSuggestion')&&we(_0x441d24)){_0x189d4b['removeMarker'](_0x1544c1['name']),_0x946354['add'](_0x441d24),_0x553aaf=!0x0;const _0x1eca38=_0x441d24['nextSibling'],_0x5d4a59=_0x441d24['previousSibling'],_0x246526=_0x1eca38&&_0x1eca38['is']('element','tableCellSuggestion'),_0x2eea8f=_0x5d4a59&&_0x5d4a59['is']('element','tableCellSuggestion');_0x246526&&!_0x946354['has'](_0x1eca38)&&_0x190606['add'](_0x1eca38),_0x2eea8f&&!_0x946354['has'](_0x5d4a59)&&_0x190606['add'](_0x5d4a59);}else _0x441d24['is']('element','paragraph')&&_0x441d24['isEmpty']&&(_0x189d4b['removeMarker'](_0x1544c1['name']),_0x553aaf=!0x0);}}else{if('tablePasteCell'==_0x189d4b['subType']){if(!_0x189d4b['attributes']||!_0x189d4b['attributes']['tablePasteChainId'])continue;const _0x1b6c77=_0x189d4b['attributes']['markerAttributes'];if(_0x1b6c77&&Object['keys'](_0x1b6c77)['length'])continue;const _0x328c98=_0x189d4b['attributes']['tablePasteChainId'];let _0x4ab0c6=!0x0,_0x402aad=!0x0;for(const _0x2a49a5 of _0x3410e9)if(_0x2a49a5['subType']&&_0x2a49a5['subType']['startsWith']('tablePaste')){if(!_0x2a49a5['attributes']['tablePasteChainId']){_0x402aad=!0x1;break;}if(_0x2a49a5['id']!=_0x189d4b['id']&&_0x2a49a5['attributes']['tablePasteChainId']==_0x328c98){_0x4ab0c6=!0x1;break;}}_0x402aad&&_0x4ab0c6&&(_0x189d4b['removeMarkers'](),_0x553aaf=!0x0);}}for(const _0x3b7f29 of _0x946354)_0x56b079['remove'](_0x3b7f29);for(const _0x483667 of _0x190606)_0x56b079['unwrap'](_0x483667);return _0x553aaf;}),_0x55e13c['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x488974,_0x545efb)=>_0x32de33(_0x488974),'converterPriority':'high'}),_0x55e13c['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x7d393d,_0x17f2ad)=>_0x17f2ad['options']['showSuggestionHighlights']?_0x32de33(_0x7d393d,!0x1):null,'converterPriority':'high'});const _0x5a7d3b=_0x55e13c['editing']['view'];this['listenTo'](_0x5a7d3b['document'],'clipboardOutput',(_0x2a1448,_0x2d0e7c)=>{const _0x296383=[];for(const _0x4e835a of _0x5a7d3b['createRangeIn'](_0x2d0e7c['content'])['getItems']())_0x4e835a['is']('element','suggestion-td')&&_0x296383['push'](_0x4e835a);_0x5a7d3b['change'](_0x1246d1=>{for(const _0x858016 of _0x296383)_0x1246d1['move'](_0x1246d1['createRangeIn'](_0x858016),_0x1246d1['createPositionBefore'](_0x858016)),_0x1246d1['remove'](_0x858016);});});}}function we(_0x500d3a){if(_0x500d3a['isEmpty'])return!0x0;const _0xebfad1=_0x500d3a['getChild'](0x0);return _0xebfad1['is']('element','paragraph')&&_0xebfad1['isEmpty'];}function ke(_0xabbad,_0x9c6041={},_0x455e7a){for(const {isAnchor:_0x538dad,cellHeight:_0x3634a1,cellWidth:_0x2c0951}of _0x455e7a['createTableWalker'](_0xabbad,{'includeAllSlots':!0x0,..._0x9c6041}))if(!_0x538dad||0x1!=_0x3634a1||0x1!=_0x2c0951)return!0x1;return!0x0;}class Nt extends _0x2e1a44{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x274fe0=this['editor']['plugins']['get']('TrackChangesEditing');_0x274fe0['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x274fe0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x274fe0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x274fe0['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x274fe0['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x274fe0['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4f6cb7,_0x346de7){const _0x3fb5dc=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4df34b=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x2d48a0=_0x346de7['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x58dbaf=_0x4df34b['getColumnGroupElement'](_0x2d48a0);let _0x4c65ec=_0x58dbaf?_0x4df34b['getTableColumnsWidths'](_0x58dbaf):null,_0x5b7865=_0x2d48a0['getAttribute']('tableWidth')||null;const _0x5f157a=_0x346de7['tableWidth']||_0x5b7865,_0x115ab0=_0x346de7['columnWidths']||_0x4c65ec,_0x4143f5=this['editor']['plugins']['get']('Users')['me'];for(const _0x3d55a1 of _0x3fb5dc['getSuggestions']()){const _0x2578ff=_0x3d55a1['getContainedElement']();if('resizeTable'===_0x3d55a1['subType']&&_0x2578ff===_0x2d48a0){_0x3d55a1['author']!==_0x4143f5&&_0x3d55a1['discard']();const _0x1aa936=_0x3d55a1['data']['commandParams'];_0x5b7865=_0x1aa936[0x0]['tableWidth'],_0x4c65ec=_0x1aa936[0x0]['columnWidths'];break;}}_0x4f6cb7({'table':_0x2d48a0,'tableWidth':_0x5f157a,'columnWidths':_0x115ab0}),_0x3fb5dc['markBlockFormat'](_0x2d48a0,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x5b7865,'columnWidths':_0x4c65ec}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x299502){if('formatBlock'!=_0x299502['type']&&'formatInline'!=_0x299502['type'])return;const {data:_0x4b1c66}=_0x299502;if(_0x4b1c66&&'resizeTable'===_0x4b1c66['formatGroupId']){const _0x92199f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x92199f)};}}}class Dt extends _0x2e1a44{['afterInit'](){const _0x45930f=this['editor'];_0x45930f['plugins']['has']('Template')&&_0x45930f['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x2e1a44{['afterInit'](){const _0x47d0bb=this['editor'];if(!_0x47d0bb['commands']['get']('insertTableOfContents'))return;_0x47d0bb['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x4814cb=_0x47d0bb['plugins']['get']('TrackChangesEditing'),_0x51dc00=_0x47d0bb['locale'];_0x4814cb['descriptionFactory']['registerElementLabel']('tableOfContents',_0x5af918=>o(_0x51dc00,'ELEMENT_TABLE_OF_CONTENTS',_0x5af918));}}class $t extends _0x2e1a44{['afterInit'](){const _0x516c29=this['editor'];if(!_0x516c29['plugins']['has']('Title'))return;const _0x5d2064=_0x516c29['plugins']['get']('TrackChangesEditing');_0x5d2064['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x516c29['locale'],'ELEMENT_TITLE')),_0x516c29['model']['document']['registerPostFixer'](_0x4fca47=>{let _0x4300a9=!0x1;const _0x30f891=Array['from'](_0x516c29['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5a99bb,data:_0x57462a}of _0x30f891){const {group:_0x1cb078}=_0x5d2064['_splitMarkerName'](_0x5a99bb);if('suggestion'!==_0x1cb078||!_0x57462a['newRange'])continue;const _0x45d186=_0x57462a['newRange'],_0x4f72c4=_0x45d186['end']['nodeBefore'];if(!_0x4f72c4||!_0x4f72c4['is']('element','title-content'))continue;if(!_0x45d186['start']['isTouching'](_0x45d186['end']))continue;const _0x58ec36=_0x516c29['model']['schema']['getNearestSelectionRange'](_0x45d186['end'],'forward');if(_0x58ec36&&_0x58ec36['isCollapsed']){const _0x137b98=_0x4fca47['createRange'](_0x45d186['start'],_0x58ec36['start']);_0x137b98['isEqual'](_0x45d186)||(_0x4fca47['updateMarker'](_0x5a99bb,{'range':_0x137b98}),_0x4300a9=!0x0);}_0x4300a9||(_0x4fca47['removeMarker'](_0x5a99bb),_0x4300a9=!0x0);}return _0x4300a9;});}}class Bt extends _0x2e1a44{['afterInit'](){const _0x3f28a1=this['editor'],_0x4398f4=_0x3f28a1['plugins']['get']('TrackChangesEditing');_0x3f28a1['plugins']['has']('UndoEditing')&&(_0x4398f4['enableCommand']('undo'),_0x4398f4['enableCommand']('redo'));}}class xt extends _0x2e1a44{static get['requires'](){return[It];}['afterInit'](){const _0x5c457e=this['editor'];if(!_0x5c457e['plugins']['has']('TableCaptionEditing'))return;_0x5c457e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x2e1a44{['tableProperties'];['tableCellProperties'];constructor(_0x4698a9){super(_0x4698a9),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 _0x12340c=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x132865 of this['tableProperties'])_0x12340c['enableCommand'](_0x132865,(_0x1f696d,_0x32a203)=>{const _0x1ed381=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x132865,[_0x1ed381],this['tableProperties'],'tableProperties',_0x1f696d,_0x32a203);});_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x12340c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0xa7e049,_0x330ef0)=>this['handleDiscardAction'](this['tableProperties'],_0xa7e049,_0x330ef0)),_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x429b0b of this['tableCellProperties'])_0x12340c['enableCommand'](_0x429b0b,(_0xa48da7,_0x240eba)=>{const _0x81f6ea=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x429b0b,_0x81f6ea,this['tableCellProperties'],'tableCellProperties',_0xa48da7,_0x240eba);});_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x12340c['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x462c1b,_0xe4c1fc)=>this['handleDiscardAction'](this['tableCellProperties'],_0x462c1b,_0xe4c1fc)),_0x12340c['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x12340c['descriptionFactory']['registerDescriptionCallback'](_0x513240=>this['handleSuggestionDescription'](_0x513240));}['_handlePropertyChange'](_0x45d443,_0x392890,_0x19ec71,_0x36016e,_0x51ba9b,_0x25274){const _0x34a8dc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x25274['batch'],()=>{for(const _0x11c18e of _0x392890){if(this['_getSuggestion'](_0x11c18e,_0x36016e))_0x51ba9b(_0x25274);else{const _0x11912f={};for(const _0x36f4fb of _0x19ec71){const _0x5a2cc0=_0x11c18e['getAttribute'](_0x36f4fb);void 0x0!==_0x5a2cc0&&(_0x11912f[_0x36f4fb]=_0x5a2cc0);}_0x51ba9b(_0x25274),_0x34a8dc['markBlockFormat'](_0x11c18e,{'commandParams':[_0x11912f]},[],_0x36016e);}}});}['handleDiscardAction'](_0x2861e8,_0x53ae10,_0xc1319){const _0x212eaf=_0x53ae10[0x0]['start']['nodeAfter'],_0x4c4dc3=_0xc1319['commandParams'][0x0];this['editor']['model']['change'](_0x4149a3=>{for(const _0x44943f of _0x2861e8)void 0x0!==_0x4c4dc3[_0x44943f]?_0x4149a3['setAttribute'](_0x44943f,_0x4c4dc3[_0x44943f],_0x212eaf):_0x4149a3['removeAttribute'](_0x44943f,_0x212eaf);});}['handleSuggestionDescription'](_0xe37a90){if(_0xe37a90['data'])switch(_0xe37a90['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'](_0x19c856,_0x3a70b7){const _0x4431b4=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x31f211 of _0x4431b4['getSuggestions']({'skipNotAttached':!0x0})){const _0x221165=_0x31f211['getContainedElement']();if(_0x31f211['subType']===_0x3a70b7&&_0x221165===_0x19c856)return _0x31f211;}return null;}}const m='$elementName';class p extends _0x2e1a44{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x259150,_0x518fdf,V,U,G,F,H,L,J,q,z,Q,X,Y,Z,tt,et,it,st,nt,rt,ot,at,ct,ut,ft,W,pt,ht,K,pe,lt,mt,dt,kt,bt,wt,yt,jt,St,At,It,vt,Ct,xt,_t,Nt,Mt,Rt,Dt,$t,Bt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0xe068f6){function _0xc011c8(_0x553738){return _0x553738['map'](_0x2be367=>String['fromCharCode'](_0x2be367))['join']('');}super(_0xe068f6),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x160280,_0x14def7,_0x518054,_0x45cce3)=>{this['_model']['change'](()=>{for(const _0x26c3d8 of[..._0x45cce3,..._0x518054])this['_model']['markers']['has'](_0x26c3d8)&&_0xe068f6['editing']['reconvertMarker'](_0x26c3d8);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new Et(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0xe068f6['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(),_0xe068f6['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0xe068f6['config']['get']('trackChanges.trackFormatChanges'),_0xe068f6['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0xe068f6['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0xe068f6,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0xc011c8([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0xc011c8([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x36]);}['init'](){const _0x3458f4=this['editor'],_0x4c3e80=(_0x558dc4,_0x5a1b84)=>{if('attribute'!=_0x558dc4)return'ck-suggestion-marker-'+_0x558dc4;const _0x11aa68=_0x5a1b84['split']('|')[0x0];return this['_isBlockAttribute'](_0x11aa68)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x3458f4['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x210801=>{const {id:_0xc7a4d0,type:_0x5a5418,subType:_0x1b751e}=this['_splitMarkerName'](_0x210801['markerName']),_0x510931=['ck-suggestion-marker',_0x4c3e80(_0x5a5418,_0x1b751e)];let _0x358c2a=0xbb8;return this['activeMarkers']['includes'](_0x210801['markerName'])&&(_0x510931['push']('ck-suggestion-marker--active'),_0x358c2a=0xbc2),'deletion'==_0x5a5418&&(_0x358c2a+=0x5),{'classes':_0x510931,'attributes':{'data-suggestion':_0xc7a4d0},'priority':_0x358c2a};}}),_0x3458f4['conversion']['for']('dataDowncast')['add'](_0x119d0a=>{_0x119d0a['on']('addMarker:suggestion',(_0x4f1c15,_0x60410b,_0x166ea5)=>{if(!_0x166ea5['options']['showSuggestionHighlights'])return;const _0xef21dc=_0x60410b['item'];if(!_0xef21dc)return;const _0x108232=_0x166ea5['mapper']['toViewElement'](_0xef21dc);_0x3458f4['model']['schema']['isObject'](_0xef21dc)&&_0x108232&&!_0x108232['getCustomProperty']('widget')&&_0x108232['is']('containerElement')&&_0x530114(_0x108232,_0x166ea5['writer']);},{'priority':'high'});}),_0x3458f4['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xd5920f,_0x147d77)=>{if(!_0x147d77['options']['showSuggestionHighlights'])return null;const {type:_0x1c04cf,subType:_0x3c2cc4}=this['_splitMarkerName'](_0xd5920f['markerName']);return{'classes':['ck-suggestion-marker',_0x4c3e80(_0x1c04cf,_0x3c2cc4)],'priority':0xbb8};}});const _0x126817=({showActiveMarkers:_0x563cbf=!0x0,isAttributeSuggestion:_0x1f2c9f=!0x1}={})=>(_0x6e60ff,_0x5ae6fc,_0x3793a2)=>{if(!_0x5ae6fc['item'])return;const {id:_0x41fb08}=this['_splitMarkerName'](_0x5ae6fc['markerName']);if(_0x1f2c9f){const _0x167fa0=this['_suggestions']['get'](_0x41fb08),_0x45c2f0=this['_getAttributeKey'](_0x167fa0);if(!this['_isBlockAttribute'](_0x45c2f0))return;}if(_0x5ae6fc['item']['is']('selection'))return void _0x3793a2['consumable']['consume'](_0x5ae6fc['item'],_0x6e60ff['name']);const _0x189760=_0x3793a2['mapper']['toViewElement'](_0x5ae6fc['item']);if(_0x5ae6fc['item']['is']('element')&&_0x3458f4['model']['schema']['isBlock'](_0x5ae6fc['item'])&&!_0x189760['getCustomProperty']('addHighlight')){_0x3793a2['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x189760),_0x3793a2['writer']['setAttribute']('data-suggestion',_0x41fb08,_0x189760),_0x3793a2['mapper']['bindElementToMarker'](_0x189760,_0x5ae6fc['markerName']),_0x563cbf&&(this['activeMarkers']['includes'](_0x5ae6fc['markerName'])?_0x3793a2['writer']['addClass']('ck-suggestion-marker--active',_0x189760):_0x3793a2['writer']['removeClass']('ck-suggestion-marker--active',_0x189760));for(const _0xb03a28 of _0x3458f4['model']['createRangeIn'](_0x5ae6fc['item'])['getItems']())_0x3793a2['consumable']['consume'](_0xb03a28,_0x6e60ff['name']);_0x3793a2['consumable']['consume'](_0x5ae6fc['item'],_0x6e60ff['name']);}};_0x3458f4['conversion']['for']('dataDowncast')['add'](_0x323a99=>{_0x323a99['on']('addMarker:suggestion:formatBlock',(_0xe691ef,_0x432d94,_0x15c79b)=>{_0x15c79b['options']['showSuggestionHighlights']&&_0x126817({'showActiveMarkers':!0x1})(_0xe691ef,_0x432d94,_0x15c79b);},{'priority':'highest'});}),_0x3458f4['conversion']['for']('dataDowncast')['add'](_0x30d5d9=>{_0x30d5d9['on']('addMarker:suggestion:attribute',(_0x616dae,_0x213ca2,_0x3a8e30)=>{_0x3a8e30['options']['showSuggestionHighlights']&&_0x126817({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x616dae,_0x213ca2,_0x3a8e30);},{'priority':'highest'});}),_0x3458f4['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x113a97,_0x4c7cff)=>_0x4c7cff['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x113a97['substr'](0xb)}}),_0x3458f4['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x444ada,{writer:_0x27becb})=>{let _0x41ef38='suggestion:'+_0x444ada['getAttribute']('suggestion-type')+':'+_0x444ada['getAttribute']('id');return _0x444ada['getAttribute']('marker-count')&&(_0x41ef38+=':'+_0x444ada['getAttribute']('marker-count')),_0x27becb['createElement']('$marker',{'data-name':_0x41ef38});}}),_0x3458f4['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x3458f4['conversion']['for']('editingDowncast')['add'](_0x487b78=>{_0x487b78['on']('addMarker:suggestion:formatBlock',_0x126817(),{'priority':'high'});}),_0x3458f4['conversion']['for']('editingDowncast')['add'](_0x44fe91=>{_0x44fe91['on']('addMarker:suggestion:attribute',_0x126817({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x3458f4['conversion']['for']('editingDowncast')['add'](_0x148810=>{_0x148810['on']('removeMarker:suggestion:formatBlock',(_0x38d002,_0x31801e,_0x41223d)=>{const _0x5045b7=_0x41223d['mapper']['markerNameToElements'](_0x31801e['markerName']);if(_0x5045b7){for(const _0x269ef1 of _0x5045b7)_0x269ef1['getCustomProperty']('addHighlight')||(_0x41223d['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x269ef1),_0x41223d['writer']['removeAttribute']('data-suggestion',_0x269ef1),_0x41223d['mapper']['unbindElementFromMarkerName'](_0x269ef1,_0x31801e['markerName']));}},{'priority':'high'});}),_0x3458f4['conversion']['for']('editingDowncast')['add'](_0x32724c=>{_0x32724c['on']('removeMarker:suggestion:attribute',(_0xf0401b,_0x53c41a,_0x2d3b62)=>{const _0x43a3f9=_0x2d3b62['mapper']['markerNameToElements'](_0x53c41a['markerName']);if(!_0x43a3f9)return;const {id:_0x647484}=this['_splitMarkerName'](_0x53c41a['markerName']),_0x38a375=this['_suggestions']['get'](_0x647484),_0x3f5a52=this['_getAttributeKey'](_0x38a375);if(this['_isBlockAttribute'](_0x3f5a52)){for(const _0x2464a3 of _0x43a3f9)_0x2464a3['getCustomProperty']('addHighlight')||(_0x2d3b62['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2464a3),_0x2d3b62['writer']['removeAttribute']('data-suggestion',_0x2464a3),_0x2d3b62['mapper']['unbindElementFromMarkerName'](_0x2464a3,_0x53c41a['markerName']));}},{'priority':'high'});}),_0x3458f4['model']['document']['registerPostFixer'](_0x38dc65=>{let _0x10eb7d=!0x1;const _0x4abde3=Array['from'](_0x3458f4['model']['document']['differ']['getChangedMarkers']()),_0x1e1e16=new Set();for(const {name:_0xbd45c7,data:_0x5136a8}of _0x4abde3){const {group:_0x5de51b,type:_0x34a50d,subType:_0x5cbed6,id:_0x374c8c}=this['_splitMarkerName'](_0xbd45c7);if('suggestion'!==_0x5de51b)continue;const _0x2a8934=this['_suggestions']['get'](_0x374c8c);if(null!=_0x5136a8['newRange']){'formatInline'==_0x34a50d&&(_0x10eb7d=_0x10eb7d||Ut(_0x5136a8['newRange'],_0xbd45c7,_0x38dc65,_0x3458f4['model']['schema']));const _0x2d252e='attribute'==_0x34a50d&&this['_isBlockAttribute'](_0x5cbed6['split']('|')[0x0]);if(_0x5136a8['newRange']['isCollapsed']||'$graveyard'==_0x5136a8['newRange']['root']['rootName']||'formatBlock'==_0x34a50d&&!Ft(_0x5136a8['newRange'])||_0x2d252e&&!Ft(_0x5136a8['newRange'])||'deletion'==_0x34a50d&&!(!Vt(_0x43c11a=_0x5136a8['newRange'])&&!function(_0x4e9097){return _0x4e9097['start']['parent']==_0x4e9097['end']['nodeBefore']&&_0x4e9097['start']['isAtEnd'];}(_0x43c11a)))_0x38dc65['removeMarker'](_0xbd45c7),_0x10eb7d=!0x0;else{if(!_0x2a8934||!_0x2a8934['isInContent'])continue;if(_0x5136a8['newRange']&&_0x5136a8['oldRange']&&_0x5136a8['newRange']['isEqual'](_0x5136a8['oldRange']))continue;_0x1e1e16['add'](_0x2a8934);}}}var _0x43c11a;return _0x1e1e16['size']>0x0&&(_0x10eb7d=!!this['_joinWithAdjacentSuggestions'](_0x1e1e16)||_0x10eb7d),_0x10eb7d;}),_0x3458f4['model']['document']['registerPostFixer'](_0xc99e03=>{let _0x1af206=!0x1;for(const _0x5b4893 of _0x3458f4['model']['document']['differ']['getChanges']())if('insert'==_0x5b4893['type'])for(const _0x2b7522 of this['_suggestions']['values']()){if(_0x2b7522['isMultiRange']||!_0x2b7522['isInContent'])continue;const _0x3c907d='formatBlock'==_0x2b7522['type'],_0x581da2=this['_getAttributeKey'](_0x2b7522),_0x342b29=_0x581da2&&this['_isBlockAttribute'](_0x581da2);if(!_0x3c907d&&!_0x342b29)continue;const _0x289897=_0x2b7522['getFirstRange']();if(_0x289897['start']['parent']!=_0x289897['end']['parent']&&!_0x289897['end']['isAtEnd']){const _0x1d7cb3=_0x3458f4['model']['createPositionAt'](_0x289897['start']['nodeAfter'],'end'),_0x245ea4=_0x3458f4['model']['createRange'](_0x289897['start'],_0x1d7cb3);_0xc99e03['updateMarker'](_0x2b7522['getFirstMarker'](),{'range':_0x245ea4}),_0x1af206=!0x0;}}return _0x1af206;}),_0x3458f4['model']['document']['registerPostFixer'](_0x39fe9e=>this['_processAttributeChanges'](_0x39fe9e)),_0x3458f4['model']['document']['registerPostFixer'](_0x1daef7=>!_0x1daef7['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x1daef7)),_0x3458f4['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x3458f4['model']['document']['on']('change:data',(_0x504a81,_0x30c43c)=>{if(!_0x30c43c['isLocal']||_0x30c43c['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xd89273=_0x3458f4['model']['document']['differ']['getChanges']();if(0x0==_0xd89273['length'])return;const _0x5e2192=[],_0x1ace7b=_0xd89273['filter'](_0x21b2ce=>'attribute'==_0x21b2ce['type']),_0x9c378c=_0xd89273['filter'](_0x18e0fe=>'insert'==_0x18e0fe['type']&&'$text'!=_0x18e0fe['name']);for(const _0x5c7fb0 of _0x1ace7b)this['_isRegisteredAttribute'](_0x5c7fb0['attributeKey'])&&_0x5e2192['push']({'key':_0x5c7fb0['attributeKey'],'newValue':_0x5c7fb0['attributeNewValue'],'oldValue':_0x5c7fb0['attributeOldValue'],'range':Pt(_0x5c7fb0['range'],_0x3458f4['model'])});for(const _0x43e4b0 of _0x9c378c){if('rename'!=_0x43e4b0['action']&&'refresh'!=_0x43e4b0['action'])continue;const _0x222f51=Lt(_0x43e4b0['position']['nodeAfter'],_0x3458f4['model']),_0x45cb27=_0x43e4b0['before'];'rename'==_0x43e4b0['action']&&_0x5e2192['push']({'key':m,'newValue':_0x43e4b0['name'],'oldValue':_0x45cb27['name'],'range':_0x222f51});for(const [_0x263774,_0x9b5452]of _0x45cb27['attributes']){if(!this['_isRegisteredAttribute'](_0x263774))continue;const _0x51e219=_0x43e4b0['attributes']['get'](_0x263774);_0x9b5452!==_0x51e219&&_0x5e2192['push']({'key':_0x263774,'newValue':_0x51e219,'oldValue':_0x9b5452,'range':_0x222f51});}for(const [_0x59ffc6,_0x657545]of _0x43e4b0['attributes'])this['_isRegisteredAttribute'](_0x59ffc6)&&(_0x45cb27['attributes']['has'](_0x59ffc6)||_0x5e2192['push']({'key':_0x59ffc6,'newValue':_0x657545,'oldValue':null,'range':_0x222f51}));}0x0!=_0x5e2192['length']&&_0x3458f4['model']['enqueueChange'](_0x30c43c,_0x178776=>{const _0x4bf91e=_0x29b31c();for(const {range:_0x3312af,key:_0x5ca017,oldValue:_0x1b3620,newValue:_0x3163c9}of _0x5e2192)this['markAttributeChange'](_0x3312af,_0x5ca017,_0x1b3620,_0x3163c9,{'groupId':_0x4bf91e});this['_reduceExistingSuggestions'](_0x178776,_0x5e2192);});},{'priority':'lowest'}),_0x3458f4['model']['markers']['on']('update:suggestion',(_0x52cfa8,_0x5cf9b6,_0x423e6d)=>{if(null==_0x423e6d){const {id:_0x9bea6c}=this['_splitMarkerName'](_0x5cf9b6['name']),_0x4eacbf=this['_suggestions']['get'](_0x9bea6c);_0x4eacbf&&_0x4eacbf['addMarkerName'](_0x5cf9b6['name']);}}),_0x3458f4['model']['document']['on']('change:data',()=>{const _0x57f86c=Array['from'](_0x3458f4['model']['document']['differ']['getChangedMarkers']())['filter'](_0x183181=>'suggestion'===this['_splitMarkerName'](_0x183181['name'])['group']);if(0x0===_0x57f86c['length'])return;_0x57f86c['sort']((_0x559540,_0x8f54ea)=>{const _0xfe2166=_0x559540['data']['oldRange'],_0x5c4381=_0x8f54ea['data']['oldRange'];return null===_0xfe2166&&null===_0x5c4381?0x0:null===_0xfe2166&&null!==_0x5c4381?-0x1:null!==_0xfe2166&&null===_0x5c4381?0x1:_0xfe2166['start']['isBefore'](_0x5c4381['start'])?-0x1:0x1;});const _0x37776f=new Set(),_0x32334c=new Set();for(const {name:_0x1fb5bb,data:_0xfbc48d}of _0x57f86c){const {id:_0x401d45}=this['_splitMarkerName'](_0x1fb5bb);if(null===_0xfbc48d['oldRange']){const _0x4c502f=this['_handleNewSuggestionMarker'](_0x1fb5bb);_0x32334c['add'](_0x4c502f);}else{const _0xa2d41f=this['_suggestions']['get'](_0x401d45);null!==_0xfbc48d['newRange']||_0xa2d41f['isInContent']?(_0x37776f['add'](_0xa2d41f['head']),_0x32334c['add'](_0xa2d41f)):this['_removeSuggestion'](_0xa2d41f);}}_0x32334c['size']>0x0&&this['_refreshSuggestionsChain'](_0x32334c);for(const _0x44dd06 of _0x37776f)this['fire']('suggestionChanged',_0x44dd06);}),_0x3458f4['model']['on']('applyOperation',(_0x1c296a,_0x40b8c6)=>{const _0x483aea=_0x40b8c6[0x0];if(!this['_suggestions']['size'])return;if(!_0x483aea['isDocumentOperation'])return;if(_0x483aea['batch']['isUndo']||!_0x483aea['batch']['isLocal'])return;let _0x504805,_0x5098f8;switch(_0x483aea['type']){case'insert':_0x504805=_0x3458f4['model']['createPositionAt'](_0x483aea['position']),_0x5098f8=_0x504805['getShiftedBy'](_0x483aea['howMany']);break;case'split':_0x504805=_0x3458f4['model']['createPositionAt'](_0x483aea['splitPosition']),_0x5098f8=_0x3458f4['model']['createPositionAt'](_0x483aea['moveTargetPosition']);break;case'move':_0x504805=_0x3458f4['model']['createPositionAt'](_0x483aea['targetPosition']),_0x5098f8=_0x504805['getShiftedBy'](_0x483aea['howMany']);break;default:return;}const _0x1b82f6=_0x3458f4['model']['createRange'](_0x504805,_0x5098f8);_0x3458f4['model']['change'](()=>{for(const {suggestion:_0x4c7008,meta:_0x556573}of this['_findSuggestions'](_0x1b82f6)){if(_0x4c7008['isMultiRange'])continue;if('formatInline'==_0x4c7008['type'])continue;const _0x365f42=this['_getAttributeKey'](_0x4c7008);if(_0x365f42&&this['_isBlockAttribute'](_0x365f42)&&'split'!=_0x483aea['type'])continue;const _0xea9167=_0x4c7008['data']&&_0x4c7008['data']['multipleBlocks'];('formatBlock'!=_0x4c7008['type']||'split'==_0x483aea['type']&&!_0xea9167)&&(_0x556573['containsRangeInObject']||'insertion'==_0x4c7008['type']&&_0x556573['isOwn']||_0x4c7008['getFirstRange']()['containsRange'](_0x1b82f6)&&this['_breakSuggestionMarker'](_0x4c7008,_0x504805,_0x5098f8));}});},{'priority':'lowest'}),_0x3458f4['model']['on']('deleteContent',(_0x299fc3,_0x46ff11)=>{const _0x7099cb=_0x46ff11[0x0],_0x246f6e=_0x46ff11[0x1];if(_0x246f6e&&_0x246f6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x7099cb['isCollapsed'])return;const _0x83912b=_0x3458f4['model']['schema'],{start:_0x47c17c,end:_0x2e81d9}=_0x7099cb['getFirstRange'](),_0x277fde=_0x47c17c['nodeAfter']&&_0x83912b['isLimit'](_0x47c17c['nodeAfter'])?null:_0x83912b['getNearestSelectionRange'](_0x47c17c,'forward'),_0xd9054b=_0x2e81d9['nodeBefore']&&_0x83912b['isLimit'](_0x2e81d9['nodeBefore'])?null:_0x83912b['getNearestSelectionRange'](_0x2e81d9,'backward'),_0x36dd7d=_0x3458f4['model']['createRange'](_0x277fde?_0x277fde['start']:_0x47c17c,_0xd9054b?_0xd9054b['end']:_0x2e81d9);_0x3458f4['model']['change'](_0x358079=>{this['markDeletion'](_0x36dd7d);const _0x3ea597=_0x3458f4['model']['schema']['getNearestSelectionRange'](_0x36dd7d['start']);_0x7099cb['is']('documentSelection')?_0x358079['setSelection'](_0x3ea597):_0x7099cb['setTo'](_0x3ea597);}),_0x299fc3['stop']();},{'priority':_0x1a97e2['normal']+0xa}),_0x3458f4['model']['on']('insertContent',(_0x57ac69,_0x4d5b23)=>{const _0x72de47=_0x4d5b23[_0x4d5b23['length']-0x1];_0x72de47&&_0x72de47['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x3458f4['model']['change'](()=>{let _0x1188fc=_0x3458f4['model']['insertContent'](_0x4d5b23[0x0],_0x4d5b23[0x1],_0x4d5b23[0x2],{'forceDefaultExecution':!0x0});if(!_0x1188fc)return;_0x57ac69['return']=_0x1188fc['clone']();const _0x1b2ab6=_0x1188fc['end']['nodeBefore'],_0x4b9ef5=_0x3458f4['model']['schema'];_0x1b2ab6&&_0x4b9ef5['isBlock'](_0x1b2ab6)&&!_0x4b9ef5['isObject'](_0x1b2ab6)&&(_0x1188fc=_0x3458f4['model']['createRange'](_0x1188fc['start'],_0x3458f4['model']['createPositionAt'](_0x1b2ab6,'end'))),this['markInsertion'](_0x1188fc);}),_0x57ac69['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3bf2e4=new x(_0x3458f4,this['_suggestions']);_0x3458f4['commands']['add']('acceptSuggestion',_0x3bf2e4),this['enableCommand']('acceptSuggestion');const _0x2294eb=new R(_0x3458f4,this['_suggestions']);_0x3458f4['commands']['add']('discardSuggestion',_0x2294eb),this['enableCommand']('discardSuggestion'),_0x3458f4['commands']['add']('acceptAllSuggestions',new E(_0x3458f4,_0x3bf2e4,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x3458f4['commands']['add']('discardAllSuggestions',new E(_0x3458f4,_0x2294eb,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x3458f4['commands']['add']('acceptSelectedSuggestions',new O(_0x3458f4,_0x3bf2e4,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x3458f4['commands']['add']('discardSelectedSuggestions',new O(_0x3458f4,_0x2294eb,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x113031=_0x3458f4['plugins']['get']('CommentsRepository');this['listenTo'](_0x113031,'addComment',(_0x4737d3,{threadId:_0x5efa45})=>{const _0x38c26b=this['_suggestions']['get'](_0x5efa45);_0x38c26b&&_0x38c26b['commentThread']&&0x1===_0x38c26b['commentThread']['length']&&this['_updateSuggestionData'](_0x5efa45,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x113031,'removeComment',(_0xe4be95,{threadId:_0x5d5a52})=>{const _0x309d33=this['_suggestions']['get'](_0x5d5a52);_0x309d33&&_0x309d33['commentThread']&&!_0x309d33['commentThread']['length']&&this['_updateSuggestionData'](_0x5d5a52,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0xfcaf93){if(this['_adapter'])throw new _0x1fc2fe('track-changes-adapter-already-set',this);this['_adapter']=_0xfcaf93;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x41470d=!0x1,toJSON:_0x27ac7e=!0x1}={}){const _0x10882e=[];for(const _0x2332c2 of this['_suggestions']['values']())_0x41470d&&!_0x2332c2['isInContent']||_0x10882e['push'](_0x2332c2);return _0x27ac7e?_0x10882e['map'](_0x4ad9e7=>_0x4ad9e7['toJSON']()):_0x10882e;}['getSuggestion'](_0x4e96e9){const _0x4e2d68=this['_suggestions']['get'](_0x4e96e9);if(!_0x4e2d68)throw new _0x1fc2fe('track-changes-suggestion-not-found',this);return _0x4e2d68;}['hasSuggestion'](_0x4bc730){return this['_suggestions']['has'](_0x4bc730);}['addSuggestionData'](_0x27a99a){const {authorId:_0x1d6cf4,id:_0x2e5fde,attributes:_0x356139}=_0x27a99a,[_0x55e745,_0x563b25]=_0x27a99a['type']['split'](':'),_0x237a6d=this['_suggestions']['get'](_0x2e5fde)||this['_createSuggestion'](_0x55e745,_0x563b25,_0x2e5fde,_0x1d6cf4,_0x356139);if(this['_addThreadToSuggestion'](_0x237a6d),this['_checkSuggestionCorrectness'](_0x237a6d,_0x55e745,_0x563b25||null,_0x1d6cf4),_0x237a6d['createdAt']=_0x27a99a['createdAt'],_0x237a6d['_isDataLoaded']=!0x0,_0x356139&&_0x356139['@external']){const _0x2cddee=_0x356139['@external'],_0xc5fbc6=this['_getExternalAuthor'](_0x2cddee['authorName']);_0x237a6d['authoredAt']=_0x2cddee['createdAt'],_0x237a6d['author']=_0xc5fbc6,_0x237a6d['isExternal']=!0x0;}else _0x237a6d['authoredAt']=_0x27a99a['createdAt'];switch(_0x27a99a['data']&&(_0x237a6d['data']=_0x27a99a['data']),_0x27a99a['attributes']&&(_0x237a6d['attributes']=_0x27a99a['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x237a6d['_saved']=!0x0),this['_suggestionState']['get'](_0x237a6d)){case'notReady':this['_suggestionState']['set'](_0x237a6d,'dataReady');break;case'markerReady':_0x237a6d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x237a6d])),this['_refreshSuggestionsChain'](new Set([_0x237a6d])),this['_suggestionState']['set'](_0x237a6d,'ready'),this['fire']('suggestionLoaded',_0x237a6d)):this['_suggestionState']['set'](_0x237a6d,'removed');}return _0x237a6d;}['acceptSuggestion'](_0x37af2f){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x4355ce of _0x37af2f['getAllAdjacentSuggestions']())_0x4355ce['accept']();});});}['discardSuggestion'](_0x5b9a79){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2d60a4 of _0x5b9a79['getAllAdjacentSuggestions']())_0x2d60a4['discard']();});});}['enableCommand'](_0x2a26f0,_0x3054d7){const _0x584423=this['editor']['commands']['get'](_0x2a26f0);if(!_0x584423)throw new _0x1fc2fe('track-changes-command-not-found',this,{'commandName':_0x2a26f0});if(this['_enabledCommands']['has'](_0x584423))throw new _0x1fc2fe('track-changes-enable-command-twice',this,{'commandName':_0x2a26f0});this['_enabledCommands']['add'](_0x584423),_0x3054d7&&_0x584423['on']('execute',(_0x547bc7,_0x571a19)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x571a19['length']>0x0&&_0x571a19[_0x571a19['length']-0x1]&&_0x571a19[_0x571a19['length']-0x1]['forceDefaultExecution']?_0x571a19['pop']():(_0x547bc7['return']=_0x3054d7((..._0x4487ea)=>_0x584423['execute'](..._0x4487ea,{'forceDefaultExecution':!0x0}),..._0x571a19),_0x547bc7['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x2dcb81){let _0x437290,_0x40e34d;const _0x484bae=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x437290=_0x2dcb81();}catch(_0xa1d7a3){_0x40e34d=_0xa1d7a3;}return _0x484bae||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x40e34d&&_0x1fc2fe['rethrowUnexpectedError'](_0x40e34d,this),_0x437290;}['markInsertion'](_0xb363ef,_0x2a36b2=null,_0x4dc043={}){if(_0xb363ef['isCollapsed'])return null;const _0x512c35=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0xacf548,meta:_0x88ec9e}of this['_findSuggestions'](_0xb363ef,'insertion'))if(_0x88ec9e['isOwn']){if(!_0x88ec9e['isNextTo']){if(_0x88ec9e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0xacf548,_0x4dc043))continue;return _0xacf548;}if(qt(_0xacf548,_0x4dc043))return _0xacf548;this['_breakSuggestionMarker'](_0xacf548,_0xb363ef['start'],_0xb363ef['end']);break;}if(_0x2a36b2==_0xacf548['subType']&&qt(_0xacf548,_0x4dc043)){const _0x55e093=_0xacf548['getFirstRange']();return _0x55e093['start']['isEqual'](_0xb363ef['end'])?this['_setSuggestionRange'](_0xacf548,this['_model']['createRange'](_0xb363ef['start'],_0x55e093['end'])):this['_setSuggestionRange'](_0xacf548,this['_model']['createRange'](_0x55e093['start'],_0xb363ef['end'])),_0xacf548;}}const _0x585256=_0x29b31c(),_0x527aed=_0x512c35['id'],_0x4c6ec1=_0x2a36b2?'insertion:'+_0x2a36b2:'insertion',_0x126bae=this['_setSuggestionData']({'id':_0x585256,'type':_0x4c6ec1,'createdAt':new Date(),'authorId':_0x527aed,'attributes':_0x4dc043});return this['_addSuggestionMarker'](_0x4c6ec1,_0x585256,_0x527aed,_0xb363ef),_0x126bae;}['markMultiRangeInsertion'](_0x42f1b4,_0x578087='multi',_0x523d05={}){const _0x3eb640=this['editor']['plugins']['get']('Users')['me'],_0x5ed4a9=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x578087,'join');for(const _0x193498 of this['getSuggestions']())if(_0x193498['author']['id']==_0x3eb640['id']&&'insertion'==_0x193498['type']&&_0x193498['subType']==_0x578087&&qt(_0x193498,_0x523d05)&&(_0x5ed4a9(_0x193498['getRanges'](),_0x42f1b4)||_0x5ed4a9(_0x42f1b4,_0x193498['getRanges']()))){for(const _0x47ca46 of _0x42f1b4)_0x193498['addRange'](_0x47ca46);return _0x193498;}for(const {suggestion:_0x5dd644,meta:_0x4d26a1}of this['_findSuggestions'](_0x42f1b4,'insertion')){if(!_0x4d26a1['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4d26a1['containsRangeInObject'])continue;if(!qt(_0x5dd644,_0x523d05))continue;let _0xd6fa47=!0x0;for(const _0x110f21 of _0x5dd644['getRanges']())for(const _0x1e8339 of _0x42f1b4)if(!_0x110f21['containsRange'](_0x1e8339)){_0xd6fa47=!0x1;break;}if(_0xd6fa47)return _0x5dd644;}const _0x5bd442=_0x29b31c(),_0x1a24c1=_0x3eb640['id'],_0x503ce4='insertion:'+_0x578087,_0x459f33=this['_setSuggestionData']({'id':_0x5bd442,'type':_0x503ce4,'createdAt':new Date(),'authorId':_0x1a24c1,'attributes':_0x523d05});for(const _0x12b8e9 of _0x42f1b4)this['_addSuggestionMarker'](_0x503ce4,_0x5bd442,_0x1a24c1,_0x12b8e9,u['getMultiRangeId']());return _0x459f33;}['markInlineFormat'](_0x1a5b6c,_0x5ef198,_0x87ffe8=null,_0x13b5ff={}){if(_0x87ffe8=_0x87ffe8||Gt(_0x5ef198),_0x1a5b6c['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x50f1ad=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x87ffe8,'accept');return this['forceDefaultExecution'](()=>_0x50f1ad([_0x1a5b6c],_0x5ef198,_0x13b5ff)),null;}const _0x966510=this['editor']['plugins']['get']('Users')['me'],_0x56fad7=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5f541b,meta:_0x34db42}of this['_findSuggestions'](_0x1a5b6c,'insertion'))_0x34db42['isOwn']&&!_0x34db42['isInsideObject']&&_0x56fad7['push'](..._0x5f541b['getRanges']());}const _0x243b6a=function(_0x465135,_0x57f762){const _0x4d5416=[];for(const _0x432c74 of _0x57f762){const _0x21dd14=_0x465135['getIntersection'](_0x432c74);_0x21dd14&&_0x4d5416['push'](_0x21dd14);}return _0x4d5416;}(_0x1a5b6c,_0x56fad7),_0x250a4d=function(_0x18a543,_0x4adcda){const _0xefbee0=[_0x18a543];for(const _0x5474b6 of _0x4adcda){let _0x5a35cf=0x0;for(;_0x5a35cf<_0xefbee0['length'];){const _0x3fa806=_0xefbee0[_0x5a35cf]['getDifference'](_0x5474b6);_0xefbee0['splice'](_0x5a35cf,0x1,..._0x3fa806),_0x5a35cf+=_0x3fa806['length'];}}return _0xefbee0;}(_0x1a5b6c,_0x56fad7);_0x243b6a['length']&&this['_model']['change'](()=>{for(const _0x27cd51 of _0x243b6a){const _0x15b82f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x87ffe8,'accept');this['forceDefaultExecution'](()=>_0x15b82f([_0x27cd51],_0x5ef198,_0x13b5ff));}});for(const _0x16ea0b of _0x250a4d){let _0x408b94=null,_0x2d8b0f=_0x16ea0b['start'],_0x54cdaf=_0x16ea0b['end'];for(const {suggestion:_0x22b1cc,meta:_0x4ea85e}of this['_findSuggestions'](_0x16ea0b,'formatInline')){if(!_0x4ea85e['isOwn'])continue;if(_0x22b1cc['subType']!=_0x87ffe8)continue;if(!qt(_0x22b1cc,_0x13b5ff))continue;const _0x4cdd5f=_0x22b1cc['getFirstRange']();if(_0x4cdd5f['containsRange'](_0x16ea0b,!0x0))return null;_0x2d8b0f=_0x2d8b0f['isBefore'](_0x4cdd5f['start'])?_0x2d8b0f:_0x4cdd5f['start'],_0x54cdaf=_0x54cdaf['isAfter'](_0x4cdd5f['end'])?_0x54cdaf:_0x4cdd5f['end'],_0x408b94?_0x4cdd5f['start']['isBefore'](_0x408b94['getFirstRange']()['start'])?(_0x408b94['removeMarkers'](),_0x408b94=_0x22b1cc):_0x22b1cc['removeMarkers']():_0x408b94=_0x22b1cc;}const _0x1a60d4=this['_model']['createRange'](_0x2d8b0f,_0x54cdaf);if(_0x408b94)this['_setSuggestionRange'](_0x408b94,_0x1a60d4);else{const _0x4f587e=_0x29b31c(),_0x2e6740=_0x966510['id'];this['_setSuggestionData']({'id':_0x4f587e,'type':'formatInline:'+_0x87ffe8,'data':_0x5ef198,'createdAt':new Date(),'authorId':_0x2e6740,'attributes':_0x13b5ff}),this['_addSuggestionMarker']('formatInline:'+_0x87ffe8,_0x4f587e,_0x2e6740,_0x1a60d4);}}return null;}['markBlockFormat'](_0x450aa1,_0x582382,_0x2a713c=[],_0x5bc322=null,_0x2c4957={}){_0x582382['formatGroupId']||(_0x582382['formatGroupId']=_0x582382['commandName']),_0x582382['multipleBlocks']=_0x450aa1['is']('range'),_0x5bc322=_0x5bc322||Gt(_0x582382);const _0x15e227=_0x2a713c['map'](_0x418bdb=>Lt(_0x418bdb,this['_model'])),_0x205225=_0x450aa1['is']('range')?_0x450aa1:Lt(_0x450aa1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x32fca9=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc322,'accept');return this['forceDefaultExecution'](()=>_0x32fca9([_0x205225],_0x582382,_0x2c4957)),null;}_0x15e227['push'](_0x205225);let _0x3703d4=!0x0;for(const _0x1a573d of _0x15e227)if(!this['_rangeIsInLocalUserInsertion'](_0x1a573d)){_0x3703d4=!0x1;break;}if(_0x3703d4&&'always'!==this['_trackFormatChanges']){const _0x3188bb=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x5bc322,'accept');return this['forceDefaultExecution'](()=>_0x3188bb([_0x205225],_0x582382,_0x2c4957)),null;}let _0x5f0a0d=null,_0x5c81be=_0x205225['start'],_0x5a760c=_0x205225['end'];for(const {suggestion:_0x103891,meta:_0x3b8169}of this['_findSuggestions'](_0x205225,'formatBlock')){if(!_0x3b8169['isOwn'])continue;if(_0x3b8169['isNextTo']||_0x3b8169['containsRangeInObject']||_0x3b8169['isInsideObject'])continue;if(_0x103891['data']['formatGroupId']!=_0x582382['formatGroupId'])continue;if(!qt(_0x103891,_0x2c4957))continue;const _0x4a7450=_0x103891['getFirstRange']();if(_0x103891['subType']==_0x5bc322){if(_0x4a7450['containsRange'](_0x205225,!0x0))return null;_0x5c81be=_0x5c81be['isBefore'](_0x4a7450['start'])?_0x5c81be:_0x4a7450['start'],_0x5a760c=_0x5a760c['isAfter'](_0x4a7450['end'])?_0x5a760c:_0x4a7450['end'],_0x5f0a0d?_0x4a7450['start']['isBefore'](_0x5f0a0d['getFirstRange']()['start'])?(_0x5f0a0d['removeMarkers'](),_0x5f0a0d=_0x103891):_0x103891['removeMarkers']():_0x5f0a0d=_0x103891;}else{const _0x1ca428=_0x205225['getIntersection'](_0x4a7450);this['_cutOutSuggestionMarker'](_0x103891,_0x1ca428);}}const _0x5d4105=this['editor']['plugins']['get']('Users')['me'],_0x5c76a2=_0x29b31c(),_0x4860fb=_0x5d4105['id'];if(_0x5f0a0d)return this['_setSuggestionRange'](_0x5f0a0d,this['_model']['createRange'](_0x5c81be,_0x5a760c)),_0x5f0a0d;{const _0x174db0=this['_setSuggestionData']({'id':_0x5c76a2,'type':'formatBlock:'+_0x5bc322,'data':_0x582382,'createdAt':new Date(),'authorId':_0x4860fb,'attributes':_0x2c4957});return this['_addSuggestionMarker']('formatBlock:'+_0x5bc322,_0x5c76a2,_0x4860fb,this['_model']['createRange'](_0x5c81be,_0x5a760c)),_0x174db0;}}['markMultiRangeBlockFormat'](_0x54cfb9,_0x430f60,_0x360c3f=[],_0x13ece0=null,_0x578ed7={}){_0x430f60['formatGroupId']||(_0x430f60['formatGroupId']=_0x430f60['commandName']);const _0x17bcf5=_0x54cfb9[0x0];_0x430f60['multipleBlocks']=_0x17bcf5['is']('range'),_0x13ece0=_0x13ece0||Gt(_0x430f60);const _0x4356f3=_0x360c3f['map'](_0x30c50f=>Lt(_0x30c50f,this['_model'])),_0x4ed367=_0x17bcf5['is']('range')?_0x54cfb9:_0x54cfb9['map'](_0x3e9e12=>Lt(_0x3e9e12,this['_model']));if('never'===this['_trackFormatChanges']){const _0x27c2e4=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ece0,'accept');return this['forceDefaultExecution'](()=>_0x27c2e4(_0x4ed367,_0x430f60,_0x578ed7)),null;}_0x4356f3['push'](..._0x4ed367);let _0x36934e=!0x0;for(const _0x1c4391 of _0x4356f3)if(!this['_rangeIsInLocalUserInsertion'](_0x1c4391)){_0x36934e=!0x1;break;}if(_0x36934e&&'always'!==this['_trackFormatChanges']){const _0x2d76ef=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ece0,'accept');return this['forceDefaultExecution'](()=>_0x2d76ef(_0x4ed367,_0x430f60,_0x578ed7)),null;}const _0x10524e=this['editor']['plugins']['get']('Users')['me'];for(const _0x5d2100 of this['getSuggestions']()){if(_0x5d2100['author']['id']!=_0x10524e['id'])continue;if('formatBlock'!=_0x5d2100['type']||_0x5d2100['data']['formatGroupId']!=_0x430f60['formatGroupId'])continue;if(!qt(_0x5d2100,_0x578ed7))continue;const _0xb0ebcf=_0x5d2100['subType']==_0x13ece0;for(let _0x6ae8ea=0x0;_0x6ae8ea<_0x4ed367['length'];_0x6ae8ea++){const _0x227f7c=_0x4ed367[_0x6ae8ea];for(const _0x9f9e21 of _0x5d2100['getMarkers']()){const _0x2dc13a=_0x9f9e21['getRange']();if(_0x227f7c['isEqual'](_0x2dc13a)){_0xb0ebcf?(_0x4ed367['splice'](_0x6ae8ea,0x1),_0x6ae8ea--):_0x5d2100['removeMarker'](_0x9f9e21['name']);break;}}}}if(0x0==_0x4ed367['length'])return null;const _0x118ad3=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x13ece0,'join');for(const _0x36649e of this['getSuggestions']())if(_0x36649e['author']['id']==_0x10524e['id']&&'formatBlock'==_0x36649e['type']&&_0x36649e['data']['formatGroupId']==_0x430f60['formatGroupId']&&_0x36649e['subType']==_0x13ece0&&qt(_0x36649e,_0x578ed7)&&(_0x118ad3(_0x36649e['getRanges'](),_0x4ed367)||_0x118ad3(_0x4ed367,_0x36649e['getRanges']()))){for(const _0x43fd33 of _0x4ed367)_0x36649e['addRange'](_0x43fd33);return _0x36649e;}const _0x5a7675=_0x29b31c(),_0x1406c0=_0x10524e['id'],_0x11794e='formatBlock:'+_0x13ece0,_0x3c728b=this['_setSuggestionData']({'id':_0x5a7675,'type':_0x11794e,'data':_0x430f60,'createdAt':new Date(),'authorId':_0x1406c0,'attributes':_0x578ed7});for(const _0x3a1cb5 of _0x4ed367)this['_addSuggestionMarker'](_0x11794e,_0x5a7675,_0x1406c0,_0x3a1cb5,u['getMultiRangeId']());return _0x3c728b;}['markDeletion'](_0x3a1743,_0x40b589=null,_0x2f6959={}){if(_0x3a1743['isCollapsed'])return null;const _0x26584b=this['editor']['plugins']['get']('Users')['me'],_0x36ca8c=new _0x416c59(_0x3a1743['start'],_0x3a1743['end']);for(const {suggestion:_0x1d903b,meta:_0x3b4294}of this['_findSuggestions'](_0x36ca8c,'insertion'))if(_0x3b4294['isOwn']&&!_0x3b4294['isNextTo']){if(_0x1d903b['isMultiRange']){const _0x536028=_0x1d903b['getRanges']()['filter'](_0x4848c1=>'$graveyard'!=_0x4848c1['root']['rootName']);_0x536028['every'](_0x264bb9=>_0x36ca8c['containsRange'](_0x264bb9,!0x0))&&_0x1d903b['discard']();if(_0x536028['some'](_0x322723=>_0x322723['containsRange'](_0x36ca8c,!0x0))){const _0x5777af=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x40b589,'accept');return this['forceDefaultExecution'](()=>_0x5777af([_0x36ca8c],null,_0x2f6959)),null;}}else{const _0x3a0a71=_0x36ca8c['getIntersection'](_0x1d903b['getFirstRange']());null!==_0x3a0a71&&_0x1d903b['_onDiscard']([_0x3a0a71],null,_0x2f6959);}}if(_0x36ca8c['detach'](),_0x36ca8c['isCollapsed']||'$graveyard'==_0x36ca8c['root']['rootName'])return null;let _0x363b60=null,_0x3bcb42=_0x36ca8c['start'],_0x58ad73=_0x36ca8c['end'];const _0x3daa1f=this['_findSuggestions'](_0x36ca8c,'deletion');for(const {suggestion:_0x237595,meta:_0x536814}of _0x3daa1f){const _0x5d4011=this['_model']['createRange'](_0x3bcb42,_0x58ad73);if(_0x536814['isOwn']&&(this['_mergeNestedSuggestions']||!_0x536814['containsRangeInObject']&&!_0x536814['isInsideObject'])){if(_0x237595['isMultiRange']){if(!qt(_0x237595,_0x2f6959))continue;let _0x1a2aea=!0x0;for(const _0xa0d4c5 of _0x237595['getRanges']()){if(_0xa0d4c5['containsRange'](_0x5d4011,!0x0))return _0x237595;_0x5d4011['containsRange'](_0xa0d4c5)||(_0x1a2aea=!0x1);}_0x1a2aea&&_0x237595['discard']();}else{const _0x2ad8f1=_0x237595['getFirstRange']();if(_0x2ad8f1['containsRange'](_0x5d4011,!0x0))return _0x237595;if(!qt(_0x237595,_0x2f6959)){_0x5d4011['containsRange'](_0x2ad8f1)?_0x237595['removeMarkers']():_0x2ad8f1['containsPosition'](_0x3bcb42)?_0x3bcb42=_0x2ad8f1['end']:_0x2ad8f1['containsPosition'](_0x58ad73)&&(_0x58ad73=_0x2ad8f1['start']);continue;}_0x3bcb42=_0x3bcb42['isBefore'](_0x2ad8f1['start'])?_0x3bcb42:_0x2ad8f1['start'],_0x58ad73=_0x58ad73['isAfter'](_0x2ad8f1['end'])?_0x58ad73:_0x2ad8f1['end'],_0x2f6959=Object['assign']({},_0x237595['attributes']),_0x363b60?_0x2ad8f1['start']['isBefore'](_0x363b60['getFirstRange']()['start'])?(_0x363b60['removeMarkers'](),_0x363b60=_0x237595):_0x237595['removeMarkers']():_0x363b60=_0x237595;}}}if(_0x363b60)return this['_setSuggestionRange'](_0x363b60,this['_model']['createRange'](_0x3bcb42,_0x58ad73)),_0x363b60;{const _0x4913bd=_0x29b31c(),_0x3c02e6=this['_model']['createRange'](_0x3bcb42,_0x58ad73),_0xffc4c1=_0x26584b['id'],_0x182448=_0x40b589?'deletion:'+_0x40b589:'deletion',_0x2f7642=this['_setSuggestionData']({'id':_0x4913bd,'type':_0x182448,'createdAt':new Date(),'authorId':_0xffc4c1,'attributes':_0x2f6959});return this['_addSuggestionMarker'](_0x182448,_0x4913bd,_0xffc4c1,_0x3c02e6),_0x2f7642;}}['markMultiRangeDeletion'](_0x329a2e,_0x41c57d='multi',_0x4ec271={}){const _0x2bf43d=this['editor']['plugins']['get']('Users')['me'],_0x3d4cdd=_0x329a2e['map'](_0x1dfb3e=>new _0x416c59(_0x1dfb3e['start'],_0x1dfb3e['end'])),_0x3d066f=new Set();for(const {suggestion:_0x273c8b,meta:_0x4f61af}of this['_findSuggestions'](_0x3d4cdd,'insertion'))_0x4f61af['isOwn']&&!_0x4f61af['isNextTo']&&_0x3d066f['add'](_0x273c8b);for(const _0x550694 of _0x3d066f)if(_0x550694['isMultiRange']){const _0x3dc637=_0x550694['getRanges']();(!_0x550694['attributes']||!_0x550694['attributes']['skipNestingCheck'])&&(_0x3dc637['every'](_0x3af35e=>_0x3d4cdd['some'](_0x3343a0=>_0x3343a0['containsRange'](_0x3af35e,!0x0)))&&_0x550694['discard']());if(_0x3d4cdd['every'](_0x436c54=>_0x3dc637['some'](_0x17b81b=>_0x17b81b['containsRange'](_0x436c54,!0x0)))){const _0x3864cb=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c57d,'accept');return this['forceDefaultExecution'](()=>_0x3864cb(_0x329a2e,null,_0x4ec271)),null;}}else{const _0x386dfa=_0x550694['getFirstRange']();_0x3d4cdd['some'](_0x293476=>_0x293476['containsRange'](_0x386dfa,!0x0))&&_0x550694['discard']();if(_0x3d4cdd['every'](_0x500664=>_0x386dfa['containsRange'](_0x500664,!0x0))){const _0x318253=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c57d,'accept');return this['forceDefaultExecution'](()=>_0x318253(_0x3d4cdd,null,_0x4ec271)),null;}}const _0x1e6936=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x41c57d,'join');let _0xc2f25=null;for(const _0x307753 of this['getSuggestions']())if(_0x307753['author']['id']==_0x2bf43d['id']&&_0x307753['isInContent']&&'deletion'==_0x307753['type']&&_0x307753['subType']==_0x41c57d&&qt(_0x307753,_0x4ec271)&&(_0x1e6936(_0x307753['getRanges'](),_0x3d4cdd)||_0x1e6936(_0x3d4cdd,_0x307753['getRanges']()))){if(_0xc2f25){if(_0x307753['commentThread']&&_0x307753['commentThread']['length'])continue;for(const _0x5d93c4 of _0x307753['getRanges']())_0xc2f25['isIntersectingWithRange'](_0x5d93c4)||_0xc2f25['addRange'](_0x5d93c4);_0x307753['removeMarkers']();}else{_0xc2f25=_0x307753;for(const _0x3be91d of _0x3d4cdd)_0x307753['isIntersectingWithRange'](_0x3be91d)||_0x307753['addRange'](_0x3be91d);}}if(_0xc2f25)return _0xc2f25;_0x3d066f['clear']();for(const {suggestion:_0xa0c272,meta:_0x5b7d20}of this['_findSuggestions'](_0x3d4cdd,'deletion'))_0x5b7d20['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5b7d20['containsRangeInObject']&&!_0x5b7d20['isInsideObject'])&&qt(_0xa0c272,_0x4ec271)&&_0x3d066f['add'](_0xa0c272);for(const _0x43d637 of _0x3d066f){const _0x173584=_0x43d637['getRanges']();if(!_0x4ec271||!_0x4ec271['skipNestingCheck']){if(_0x3d4cdd['every'](_0xd3e129=>_0x173584['some'](_0x1ccb14=>_0x1ccb14['containsRange'](_0xd3e129,!0x0))))return _0x43d637;}(!_0x43d637['attributes']||!_0x43d637['attributes']['skipNestingCheck'])&&(_0x173584['every'](_0x8946a3=>_0x3d4cdd['some'](_0x3b77cb=>_0x3b77cb['containsRange'](_0x8946a3,!0x0)))&&_0x43d637['discard']());}const _0x482a37=_0x29b31c(),_0x3844f0=_0x2bf43d['id'],_0x1c3dc0='deletion:'+_0x41c57d,_0x351659=this['_setSuggestionData']({'id':_0x482a37,'type':_0x1c3dc0,'createdAt':new Date(),'authorId':_0x3844f0,'attributes':_0x4ec271});for(const _0x45ecf9 of _0x3d4cdd)_0x45ecf9['detach'](),_0x45ecf9['isCollapsed']||'$graveyard'==_0x45ecf9['root']['rootName']||this['_addSuggestionMarker'](_0x1c3dc0,_0x482a37,_0x3844f0,_0x45ecf9,u['getMultiRangeId']());return _0x351659;}['markAttributeChange'](_0x3107a5,_0x2c61ca,_0x305cb2,_0x8d81fe,_0x5d8153){if(_0x3107a5['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x10fd77=this['editor']['plugins']['get']('Users')['me']['id'],_0x1e70b8=Array['from'](this['_suggestions']['values']())['filter'](_0x34dd54=>'attribute'==_0x34dd54['type']&&_0x34dd54['data']['key']==_0x2c61ca&&_0x34dd54['isIntersectingWithRange'](_0x3107a5));if('default'===this['_trackFormatChanges']){const _0x45e09c=this['_findSuggestions'](_0x3107a5,'insertion')['filter'](({meta:_0x4dd1fb})=>_0x4dd1fb['isOwn']&&!_0x4dd1fb['isInsideObject']&&!_0x4dd1fb['isNextTo'])['map'](({suggestion:_0x173b9d})=>_0x173b9d);_0x1e70b8['unshift'](..._0x45e09c);}const _0x56148a=new Map([[_0x3107a5,_0x305cb2]]);for(const _0x26f501 of _0x1e70b8){const _0x502465='attribute'==_0x26f501['type']?_0x26f501['data']['oldValue']:void 0x0,_0x593ebb=_0x26f501['getFirstRange'](),_0x384471=Array['from'](_0x56148a['keys']())['find'](_0x18c2b8=>_0x18c2b8['isIntersecting'](_0x593ebb));if(!_0x384471)continue;const _0x589e48=_0x384471['getDifference'](_0x593ebb);this['_isBlockAttribute'](_0x2c61ca)&&'insertion'==_0x26f501['type']&&0x0!=_0x589e48['length']||(_0x56148a['delete'](_0x384471),_0x589e48['forEach'](_0x258cd8=>{_0x56148a['set'](_0x258cd8,_0x305cb2);}),'insertion'!=_0x26f501['type']&&_0x502465!=_0x8d81fe&&_0x56148a['set'](_0x384471['getIntersection'](_0x593ebb),_0x502465));}const _0xff755c=[];for(const [_0x35a7c8,_0x31115e]of _0x56148a){const _0x42e553=_0x29b31c(),_0x5a3116={'key':_0x2c61ca,'oldValue':_0x31115e,'newValue':_0x8d81fe};_0x2c61ca['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':_0x2c61ca});const _0x905583=('attribute:'+(_0x2c61ca+'|'+Gt({'newValue':_0x8d81fe})))['substring'](0x0,0x3c),_0x589b1e=this['_setSuggestionData']({'id':_0x42e553,'type':_0x905583,'data':_0x5a3116,'createdAt':new Date(),'authorId':_0x10fd77,'attributes':_0x5d8153});_0xff755c['push'](_0x589b1e),this['_addSuggestionMarker'](_0x905583,_0x42e553,_0x10fd77,_0x35a7c8);}return _0xff755c;}['enableDefaultAttributesIntegration'](_0x5d59d0){this['enableCommand'](_0x5d59d0,(_0x615c84,..._0x27ca88)=>{this['_recordAttributeChanges'](()=>{_0x615c84(..._0x27ca88);});});}['registerBlockAttribute'](_0x35ee14){this['_blockAttributeKeys']['add'](_0x35ee14);}['registerInlineAttribute'](_0x1ed08c){this['_inlineAttributeKeys']['add'](_0x1ed08c);}['_getAttributeKey'](_0x5b601b){return'attribute'==_0x5b601b['type']?_0x5b601b['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x16be3a,_0x18e4be){const _0x5abb9b=_0x16be3a['getFirstMarker']();this['_model']['change'](_0x42328c=>{_0x42328c['updateMarker'](_0x5abb9b,{'range':_0x18e4be});});}['_addThreadToSuggestion'](_0x214e8e){const _0x599dc0=_0x214e8e['id'],_0x59c5f3=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x599dc0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x59c5f3,'threadId':_0x599dc0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3551ed=this['_commentsRepository']['getCommentThread'](_0x599dc0);_0x3551ed['unbind']('isRemovable'),_0x3551ed['isRemovable']=!0x1,_0x214e8e['commentThread']=_0x3551ed;}['_checkSuggestionCorrectness'](_0x4709e4,_0x597c6b,_0x541121,_0x2c719b){if(_0x4709e4['type']!=_0x597c6b||_0x4709e4['subType']!=_0x541121||_0x4709e4['creator']['id']!=_0x2c719b)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x1fc2fe('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x51bb90,_0x44e8d8){const _0x512877=_0x51bb90['getFirstRange']();if(_0x44e8d8['isEqual'](_0x512877))_0x51bb90['removeMarkers']();else{if(_0x512877['containsRange'](_0x44e8d8)){const _0x1d5642=this['_model']['createPositionAt'](_0x44e8d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51bb90,this['_model']['createRange'](_0x512877['start'],_0x1d5642));const _0x4b0896=_0x29b31c(),_0x4bf652=_0x51bb90['creator']['id'],_0x920599=_0x51bb90['type']+':'+_0x51bb90['subType'];this['_setSuggestionData']({'id':_0x4b0896,'type':_0x920599,'createdAt':new Date(),'authorId':_0x4bf652,'data':_0x51bb90['data'],'attributes':_0x51bb90['attributes']});const _0x2f2531=this['_model']['createPositionAt'](_0x44e8d8['end']['parent'],'after'),_0x185c43=this['_model']['createRange'](_0x2f2531,_0x512877['end']);this['_addSuggestionMarker'](_0x920599,_0x4b0896,_0x4bf652,_0x185c43);}else{if(_0x512877['containsPosition'](_0x44e8d8['start'])){const _0xc17bf8=this['_model']['createPositionAt'](_0x44e8d8['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51bb90,this['_model']['createRange'](_0x512877['start'],_0xc17bf8));}else{const _0x579dc6=this['_model']['createPositionAt'](_0x44e8d8['end']['parent'],'after');this['_setSuggestionRange'](_0x51bb90,this['_model']['createRange'](_0x579dc6,_0x512877['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x158eba){for(const {suggestion:_0x292290,meta:_0x3585d8}of this['_findSuggestions'](_0x158eba,'insertion')){if(!_0x3585d8['isOwn'])continue;const _0xf4457b=_0x292290['getRanges']();for(const _0x1dd633 of _0xf4457b)if(!_0x158eba['getDifference'](_0x1dd633)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x3272b0){const _0xe505e2=this['editor']['plugins']['get']('Users')['getUser'](_0x3272b0);if(!_0xe505e2)throw new _0x1fc2fe('track-changes-user-not-found',this);return _0xe505e2;}['_getExternalAuthor'](_0x114cc3){const _0x15e72b=this['editor']['plugins']['get']('Users'),_0x1f9df8=_0x4175a8('external:'+_0x114cc3),_0xa366ab=_0x15e72b['getUser'](_0x1f9df8);return _0xa366ab||_0x15e72b['addUser']({'id':_0x1f9df8,'name':_0x114cc3});}['_createSuggestion'](_0x29e25e,_0x52c4c6,_0x870d3f,_0x5d49ff,_0x2994a5){const _0x85157a=this['_getAuthorFromId'](_0x5d49ff),_0x2bbdc3=this['_suggestionFactory']['buildSuggestion'](_0x29e25e,_0x52c4c6,_0x870d3f,_0x85157a,_0x2994a5,_0x3fff81=>{this['_updateSuggestionData'](_0x870d3f,{'attributes':_0x3fff81});const _0x5eb12e=this['getSuggestion'](_0x870d3f);this['_joinWithAdjacentSuggestions'](new Set([_0x5eb12e])),this['_refreshSuggestionsChain'](new Set([_0x5eb12e]));});return this['listenTo'](_0x2bbdc3,'accept',()=>{this['_updateSuggestionData'](_0x870d3f,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x2bbdc3,'discard',()=>{this['_updateSuggestionData'](_0x870d3f,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x870d3f,_0x2bbdc3),this['_suggestionState']['set'](_0x2bbdc3,'notReady'),_0x2bbdc3;}['_splitMarkerName'](_0x34a287){const _0x28e4b7=_0x34a287['split'](':');return{'group':_0x28e4b7[0x0],'type':_0x28e4b7[0x1],'subType':_0x28e4b7['length']>=0x5?_0x28e4b7[0x2]:null,'id':_0x28e4b7['length']<0x5?_0x28e4b7[0x2]:_0x28e4b7[0x3],'authorId':_0x28e4b7['length']<0x5?_0x28e4b7[0x3]:_0x28e4b7[0x4],'markerCount':0x6==_0x28e4b7['length']?_0x28e4b7[0x5]:null};}['_breakSuggestionMarker'](_0x45951d,_0x455845,_0xda931a){const _0x11320b=_0x45951d['getFirstRange'](),_0x5a96ce=_0x11320b['start'],_0x4906a1=_0x11320b['end'];this['_setSuggestionRange'](_0x45951d,this['_model']['createRange'](_0x5a96ce,_0x455845));const _0x41da1e=_0x29b31c(),_0x53caed=_0x45951d['creator']['id'],_0x41439a=_0x45951d['type']+(_0x45951d['subType']?':'+_0x45951d['subType']:'');this['_setSuggestionData']({'id':_0x41da1e,'type':_0x41439a,'createdAt':new Date(),'authorId':_0x53caed,'originalSuggestionId':_0x45951d['id'],'attributes':_0x45951d['attributes'],'data':_0x45951d['data']});const _0x1b1530=this['_getAttributeKey'](_0x45951d);('formatBlock'==_0x45951d['type']||_0x1b1530&&this['_isBlockAttribute'](_0x1b1530))&&(_0xda931a=this['_model']['createPositionBefore'](_0xda931a['parent'])),this['_addSuggestionMarker'](_0x41439a,_0x41da1e,_0x53caed,this['_model']['createRange'](_0xda931a,_0x4906a1));}['_findSuggestions'](_0x3ba159,_0x704bbf=null){const _0x28d680=[],_0x3377a3=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x3ba159)||(_0x3ba159=[_0x3ba159]);for(const _0xc48432 of this['getSuggestions']()){if(!_0xc48432['isInContent'])continue;if(_0x704bbf&&_0xc48432['type']!=_0x704bbf)continue;let _0x5efdc2=!0x1;for(const _0x39009a of _0xc48432['getRanges']()){for(const _0x1a11e6 of _0x3ba159){const _0x3f9f77=_0x1a11e6['start']['isEqual'](_0x39009a['end'])||_0x1a11e6['end']['isEqual'](_0x39009a['start']);if(_0x3f9f77||_0x1a11e6['getIntersection'](_0x39009a)){const _0x402f5f=_0x1a11e6['containsRange'](_0x39009a)&&Ot(this['_model']['schema'],_0x39009a['start'],_0x1a11e6),_0x594d36=_0x39009a['containsRange'](_0x1a11e6)&&Ot(this['_model']['schema'],_0x1a11e6['start'],_0x39009a);_0x28d680['push']({'suggestion':_0xc48432,'meta':{'isOwn':_0x3377a3==_0xc48432['author'],'isNextTo':_0x3f9f77,'isInsideObject':_0x402f5f,'containsRangeInObject':_0x594d36}}),_0x5efdc2=!0x0;break;}}if(_0x5efdc2)break;}}return _0x28d680;}['_addSuggestionMarker'](_0x2a2867,_0x31e3c9,_0x461a6a,_0x4570fa,_0x3d024f){this['_model']['change'](_0x15e144=>{let _0x32db3f='suggestion:'+_0x2a2867+':'+_0x31e3c9+':'+_0x461a6a;_0x3d024f&&(_0x32db3f=_0x32db3f+':'+_0x3d024f),_0x15e144['addMarker'](_0x32db3f,{'range':_0x4570fa,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x1a0615){const _0x34c2b5=_0x1a0615['previous'],_0x28f20a=_0x1a0615['next'];_0x1a0615['previous']=null,_0x1a0615['next']=null,null!=_0x34c2b5&&_0x34c2b5['next']==_0x1a0615&&(_0x34c2b5['next']=_0x28f20a),null!=_0x28f20a&&_0x28f20a['previous']==_0x1a0615&&(_0x28f20a['previous']=_0x34c2b5),'ready'==this['_suggestionState']['get'](_0x1a0615)&&(this['_suggestionState']['set'](_0x1a0615,'removed'),this['fire']('suggestionUnloaded',_0x1a0615,_0x34c2b5,_0x28f20a));}['_setSuggestionData'](_0x58f89d){const _0x293a85=_0x58f89d['id'],_0x1b8c0f=this['addSuggestionData'](_0x58f89d);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xd78ca5=this['editor']['plugins']['get']('PendingActions'),_0x5dd0a3=_0x1b8c0f['hasComments'],_0x526116=_0x1b8c0f['subType']?_0x1b8c0f['type']+':'+_0x1b8c0f['subType']:_0x1b8c0f['type'],_0x149be7=this['editor']['locale'],_0x38f8eb=_0xd78ca5['add'](o(_0x149be7,'PENDING_ACTION_SUGGESTION')),_0x4393b9={'id':_0x293a85,'type':_0x526116,'hasComments':_0x5dd0a3,'data':_0x58f89d['data']||null,'originalSuggestionId':_0x58f89d['originalSuggestionId']||null,'attributes':_0x1b8c0f['attributes']};this['_adapter']['addSuggestion'](_0x4393b9)['then'](_0x5092b2=>{_0x1b8c0f['_saved']=!0x0,_0xd78ca5['remove'](_0x38f8eb),_0x5092b2&&_0x5092b2['createdAt']&&(this['_suggestions']['get'](_0x293a85)['createdAt']=_0x5092b2['createdAt']);})['catch'](_0x17f105=>{throw _0x31e38f('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x1b8c0f['discard']();}),_0x1b8c0f['stopListening'](),this['_suggestions']['delete'](_0x1b8c0f['id']),this['_suggestionState']['delete'](_0x1b8c0f),_0x17f105;});}return _0x1b8c0f;}['_isBlockAttribute'](_0x404e01){return this['_blockAttributeKeys']['has'](_0x404e01);}['_updateSuggestionData'](_0x5741ab,_0x34cf20){const _0x516f38=this['editor']['plugins']['get']('PendingActions'),_0x1e1a91=this['getSuggestion'](_0x5741ab);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x1e1a91['_saved']){const _0x2b3f19=_0x516f38['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x5741ab,_0x34cf20)['then'](()=>{_0x516f38['remove'](_0x2b3f19);});}else _0x1e1a91['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x5741ab,_0x34cf20);});}}['_getSuggestionData'](_0x245553){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x1fc2fe('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x245553);}['_handleNewSuggestionMarker'](_0x30ed18){const {id:_0x2dd044,type:_0x5eeea8,subType:_0x426f6c,authorId:_0x2e773d}=this['_splitMarkerName'](_0x30ed18),_0x428caa=this['_suggestions']['get'](_0x2dd044)||this['_createSuggestion'](_0x5eeea8,_0x426f6c,_0x2dd044,_0x2e773d,{});switch(this['_checkSuggestionCorrectness'](_0x428caa,_0x5eeea8,_0x426f6c,_0x2e773d),this['_suggestionState']['get'](_0x428caa)){case'notReady':this['_getSuggestionData'](_0x2dd044)['then'](_0x4a4a1f=>{let _0x1d3b35=Promise['resolve']();_0x4a4a1f['hasComments']&&(_0x1d3b35=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2dd044})),_0x1d3b35['then'](()=>{this['addSuggestionData'](_0x4a4a1f)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x428caa,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2dd044,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x428caa,'ready'),this['fire']('suggestionLoaded',_0x428caa);break;case'ready':this['fire']('suggestionChanged',_0x428caa);}return _0x428caa['addMarkerName'](_0x30ed18),_0x428caa;}['_refreshSuggestionsChain'](_0x1e5ca6){const _0x1cda7e=Array['from'](_0x1e5ca6),_0x8de80f=_0x1cda7e['filter'](_0x4bf812=>'attribute'==_0x4bf812['type']);this['_refreshAttributeSuggestionsChain'](_0x8de80f);const _0x2a1086=_0x1cda7e['filter'](_0x48dd60=>!_0x48dd60['isMultiRange']&&'attribute'!=_0x48dd60['type']),_0x5d2919=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4a57ba=>!_0x4a57ba['isMultiRange']&&'attribute'!=_0x4a57ba['type']),_0x4097ba=_0x5d2919['filter'](_0x2e41ee=>!_0x1e5ca6['has'](_0x2e41ee)),_0x2cba8f=new Map(_0x5d2919['map'](_0x2ce763=>[_0x2ce763,this['_suggestionFactory']['getSuggestionCallback'](_0x2ce763['type'],_0x2ce763['subType'],'chain')])),_0x48bd30=new Map(_0x5d2919['map'](_0x1365cc=>[_0x1365cc,_0x1365cc['getFirstRange']()])),_0x511eaf=new Set(),_0xa39bfa=new Set();for(let _0x564576=0x0;_0x564576<_0x2a1086['length'];_0x564576++)_0x26bbea(_0x2a1086[_0x564576],_0x2a1086,_0x564576+0x1);for(let _0x5e6e44=0x0;_0x5e6e44<_0x2a1086['length'];_0x5e6e44++)_0x26bbea(_0x2a1086[_0x5e6e44],_0x4097ba,0x0);const _0x9e48c3=new Set();for(let _0x1a2faa=0x0;_0x1a2faa<_0x2a1086['length'];_0x1a2faa++){const _0x2d4ca3=_0x2a1086[_0x1a2faa];!_0xa39bfa['has'](_0x2d4ca3)&&_0x2d4ca3['previous']&&(_0x9e48c3['add'](_0x2d4ca3['previous']),_0x2d4ca3['previous']['next']===_0x2d4ca3&&(_0x2d4ca3['previous']['next']=null),_0x2d4ca3['previous']=null),!_0x511eaf['has'](_0x2d4ca3)&&_0x2d4ca3['next']&&(_0x9e48c3['add'](_0x2d4ca3['next']),_0x2d4ca3['next']['previous']===_0x2d4ca3&&(_0x2d4ca3['next']['previous']=null),_0x2d4ca3['next']=null);}function _0x26bbea(_0x59a982,_0x488e25,_0x2871db){for(let _0x517b81=_0x2871db;_0x517b81<_0x488e25['length'];_0x517b81++){const _0x330d4c=_0xbd2c07(_0x59a982,_0x488e25[_0x517b81]);_0x330d4c&&(_0x330d4c[0x0]['next']=_0x330d4c[0x1],_0x330d4c[0x1]['previous']=_0x330d4c[0x0],_0x511eaf['add'](_0x330d4c[0x0]),_0xa39bfa['add'](_0x330d4c[0x1]));}}function _0xbd2c07(_0x93c805,_0x1b55e5){if(_0x93c805['author']['id']!==_0x1b55e5['author']['id'])return null;const _0x24d830=_0x2cba8f['get'](_0x93c805)(_0x93c805,_0x1b55e5,_0x48bd30['get'](_0x93c805),_0x48bd30['get'](_0x1b55e5));if(!_0x24d830)return null;return _0x2cba8f['get'](_0x1b55e5)(_0x93c805,_0x1b55e5,_0x48bd30['get'](_0x93c805),_0x48bd30['get'](_0x1b55e5))?_0x24d830[0x1]['commentThread']&&_0x24d830[0x1]['commentThread']['length']?null:_0x24d830:null;}_0x9e48c3['size']&&this['_refreshSuggestionsChain'](_0x9e48c3);}['_refreshAttributeSuggestionsChain'](_0x29e53a){if(0x0==_0x29e53a['length'])return;const _0x534ca0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf9bec4=>'attribute'==_0xf9bec4['type']&&_0xf9bec4['_isDataLoaded']),_0x4604ea=[],_0x53a994=new Map();for(const _0x107b37 of _0x534ca0){const _0x495a47=_0x4175a8(_0x107b37['attributes']);_0x53a994['has'](_0x495a47)||(_0x53a994['set'](_0x495a47,_0x4604ea['length']),_0x4604ea['push']([]));const _0xe133d6=_0x53a994['get'](_0x495a47);_0x4604ea[_0xe133d6]['push'](_0x107b37);}!(function(){_0x4604ea['sort']((_0x5c5b7e,_0x1c8c23)=>{const _0x57b2ed=_0x5c5b7e[0x0]['createdAt'],_0x20ac24=_0x1c8c23[0x0]['createdAt'];return _0x57b2ed==_0x20ac24?_0x5c5b7e[0x0]['attributes']['groupId']<_0x1c8c23[0x0]['attributes']['groupId']?-0x1:0x1:_0x57b2ed<_0x20ac24?-0x1:0x1;});for(const _0x118c70 of _0x4604ea)_0x118c70['sort']((_0x15a3ab,_0x27090c)=>_0x15a3ab['id']<_0x27090c['id']?-0x1:0x1);}());for(let _0x462f88=0x0;_0x462f88<_0x4604ea['length'];_0x462f88++){if(0x0==_0x4604ea[_0x462f88]['length'])continue;const _0x2870a6=[];for(let _0x35d2b6=_0x462f88+0x1;_0x35d2b6<_0x4604ea['length'];_0x35d2b6++)0x0!=_0x4604ea[_0x35d2b6]['length']&&_0x31132d(_0x4604ea[_0x462f88],_0x4604ea[_0x35d2b6])&&_0x2870a6['push'](_0x35d2b6);for(const _0x1711ef of _0x2870a6)_0x4604ea[_0x462f88]=_0x4604ea[_0x462f88]['concat'](_0x4604ea[_0x1711ef]),_0x4604ea[_0x1711ef]=[];}for(const _0x3dab9a of _0x4604ea)for(let _0x3b5243=0x0;_0x3b5243<_0x3dab9a['length'];_0x3b5243++){const _0x307d93=_0x3dab9a[_0x3b5243+0x1]||null;_0x3dab9a[_0x3b5243]['next']!==_0x307d93&&(_0x3dab9a[_0x3b5243]['next']=_0x307d93);}for(const _0x271e93 of _0x4604ea)for(let _0xdef2e=0x0;_0xdef2e<_0x271e93['length'];_0xdef2e++){const _0xbbcfb3=_0x271e93[_0xdef2e-0x1]||null;_0x271e93[_0xdef2e]['previous']!==_0xbbcfb3&&(_0x271e93[_0xdef2e]['previous']=_0xbbcfb3);}function _0x31132d(_0x128890,_0x2e553b){if(_0x128890[0x0]['attributes']['groupId']!==_0x2e553b[0x0]['attributes']['groupId']&&_0x128890[0x0]['author']!==_0x2e553b[0x0]['author'])return!0x1;if(!function(_0x176909,_0x187986){if(!_0x176909['hasComments']&&!_0x187986['hasComments'])return!0x0;if(_0x176909['hasComments']&&_0x187986['hasComments'])return!0x1;if(_0x176909['hasComments']&&_0x187986['createdAt']<_0x176909['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x187986['hasComments']&&_0x176909['createdAt']<_0x187986['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x128890[0x0],_0x2e553b[0x0]))return!0x1;const _0x4edc6d=Tt(_0x128890[0x0]['attributes'],'groupId'),_0x2bf355=Tt(_0x2e553b[0x0]['attributes'],'groupId');if(!_0xabcc16(_0x4edc6d,_0x2bf355))return!0x1;return!!_0x128890['every'](_0x167b31=>_0x2e553b['some'](_0x100566=>_0x167b31['getFirstRange']()['isEqual'](_0x100566['getFirstRange']())))&&_0x2e553b['every'](_0x5e282e=>_0x128890['some'](_0x8785dd=>_0x5e282e['getFirstRange']()['isEqual'](_0x8785dd['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x655509){const _0x516bd4=Array['from'](_0x655509),_0x4b2509=this['getSuggestions']({'skipNotAttached':!0x0}),_0x327371=_0x4b2509['filter'](_0x23b508=>!_0x655509['has'](_0x23b508)),_0xf8bb60=new Map(_0x516bd4['map'](_0x22263a=>[_0x22263a,this['_suggestionFactory']['getSuggestionCallback'](_0x22263a['type'],_0x22263a['subType'],'join')])),_0x4222bd=new Map(_0x4b2509['map'](_0x1a0b09=>[_0x1a0b09,_0x1a0b09['getRanges']()]));for(let _0x313458=0x0;_0x313458<_0x516bd4['length'];_0x313458++){if(_0x175e76(this,_0x516bd4[_0x313458],_0x516bd4,_0x313458+0x1))return!0x0;}for(let _0x45d693=0x0;_0x45d693<_0x516bd4['length'];_0x45d693++){if(_0x175e76(this,_0x516bd4[_0x45d693],_0x327371,0x0))return!0x0;}return!0x1;function _0x175e76(_0x1d2049,_0x40b92e,_0x4f6a5a,_0x1f1403){for(let _0x129435=_0x1f1403;_0x129435<_0x4f6a5a['length'];_0x129435++){const _0x5820cb=_0x4f6a5a[_0x129435];if(_0x5820cb['type']!==_0x40b92e['type']||_0x5820cb['author']['id']!==_0x40b92e['author']['id']||_0x5820cb['subType']!==_0x40b92e['subType'])continue;if(!Jt(_0x40b92e,_0x5820cb))continue;if('attribute'==_0x40b92e['type']&&_0x40b92e['data']['oldValue']!=_0x5820cb['data']['oldValue'])continue;if('attribute'==_0x40b92e['type']&&_0x1d2049['_isBlockAttribute'](_0x40b92e['data']['key']))continue;if('formatBlock'==_0x40b92e['type']){const _0x255beb=_0x1d2049['editor']['model'],_0x131fbe=_0x40b92e['getContainedElement']();if(_0x131fbe&&(_0x255beb['schema']['isObject'](_0x131fbe)||_0x255beb['schema']['isLimit'](_0x131fbe)))continue;}const _0x57b6fd=_0xf8bb60['get'](_0x40b92e),_0x4bb704=_0x4222bd['get'](_0x40b92e),_0x42f393=_0x4222bd['get'](_0x5820cb),_0x55aed7=_0x40b92e['commentThread']&&_0x40b92e['commentThread']['length'],_0x2dea54=_0x5820cb['commentThread']&&_0x5820cb['commentThread']['length'];if(!_0x55aed7&&_0x57b6fd(_0x42f393,_0x4bb704))return _0x1d2049['_joinSuggestions'](_0x5820cb,_0x40b92e),_0x4222bd['delete'](_0x40b92e),!0x0;if(!_0x2dea54&&_0x57b6fd(_0x4bb704,_0x42f393))return _0x1d2049['_joinSuggestions'](_0x40b92e,_0x5820cb),_0x4222bd['delete'](_0x5820cb),!0x0;}return!0x1;}}['_joinSuggestions'](_0x51d295,_0x3f1ce6){if(_0x51d295['isMultiRange']){for(const _0xb88476 of _0x3f1ce6['getRanges']())_0x51d295['addRange'](_0xb88476);}else{const _0x54d7d9=_0x3f1ce6['getFirstRange']()['end'];this['_setSuggestionRange'](_0x51d295,this['_model']['createRange'](_0x51d295['getFirstRange']()['start'],_0x54d7d9));}_0x3f1ce6['removeMarkers']();}['_getMarkerAnnouncementText'](_0x2e4a2f,_0xf769ab,_0x2f9b93){const _0x410577=_0x2e4a2f['startsWith']('format')||_0x2e4a2f['startsWith']('attribute')?'FORMATTING':_0x2e4a2f['toUpperCase']();return o(this['editor']['locale'],_0xf769ab+'_'+_0x410577+'_SUGGESTION_ANNOUNCEMENT',_0x2f9b93);}['_initAriaMarkerChangeAnnouncements'](){const _0x4a8f0c=this['editor'];if(!_0x4a8f0c['ui'])return;const {ariaLiveAnnouncer:_0x1065dd}=_0x4a8f0c['ui'];_0x126c12(this['_model'],({left:_0x508567,entered:_0x5174b1})=>{for(const _0x1a311c of _0x508567){const {group:_0x26116a,type:_0x249abe}=this['_splitMarkerName'](_0x1a311c['name']);if('suggestion'===_0x26116a){_0x1065dd['announce'](this['_getMarkerAnnouncementText'](_0x249abe,'LEAVE'));break;}}for(const _0x5e4b0c of _0x5174b1){const {group:_0x115e4e,type:_0x7359bc}=this['_splitMarkerName'](_0x5e4b0c['name']);if('suggestion'===_0x115e4e){_0x1065dd['announce'](this['_getMarkerAnnouncementText'](_0x7359bc,'ENTER',_0x1a1bdd(_0x1e406e)));break;}}});}['_processAttributeChanges'](_0x422f8a){if(this['_recordAttributeSuggestions'])return!0x1;const _0x59546c=this['editor'],_0x20ecfe=_0x59546c['model']['document']['differ']['getChanges']();if(0x0==_0x20ecfe['length'])return!0x1;const _0x57b5fa=[],_0x445bae=_0x20ecfe['filter'](_0x1f7f59=>'attribute'==_0x1f7f59['type']),_0x3bb9f6=_0x20ecfe['filter'](_0x1536fd=>'insert'==_0x1536fd['type']&&'$text'!=_0x1536fd['name']),_0x150189=_0x20ecfe['filter'](_0x3d3719=>'remove'==_0x3d3719['type']&&'$text'!=_0x3d3719['name']);for(const _0x3ffb24 of _0x445bae)_0x57b5fa['push']({'key':_0x3ffb24['attributeKey'],'newValue':_0x3ffb24['attributeNewValue'],'oldValue':_0x3ffb24['attributeOldValue'],'range':Pt(_0x3ffb24['range'],_0x59546c['model'])});for(const _0x7cfa44 of _0x3bb9f6){const _0x46ac07=_0x150189['find'](_0x41f093=>_0x41f093['position']['isEqual'](_0x7cfa44['position']));_0x46ac07&&_0x57b5fa['push']({'key':m,'newValue':_0x7cfa44['name'],'oldValue':_0x46ac07['name'],'range':_0x59546c['model']['createRangeOn'](_0x7cfa44['position']['nodeAfter'])});}return 0x0!=_0x57b5fa['length']&&this['_reduceExistingSuggestions'](_0x422f8a,_0x57b5fa);}['_processAttributeSuggestions'](_0x399b70){let _0x397a10=!0x1;const _0x34311f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x13daca=>_0x13daca['data']['newRange']&&_0x13daca['name']['startsWith']('suggestion:attribute:'));for(const _0x1e3f90 of _0x34311f){const {subType:_0x703d20,id:_0x25679f}=this['_splitMarkerName'](_0x1e3f90['name']),_0x1f9ba1=_0x703d20['split']('|')[0x0];for(const _0x1f9c7d of this['getSuggestions']({'skipNotAttached':!0x0}))_0x1f9c7d['id']!=_0x25679f&&'attribute'==_0x1f9c7d['type']&&_0x1f9c7d['data']&&_0x1f9c7d['data']['key']==_0x1f9ba1&&_0x1f9c7d['getFirstRange']()['isIntersecting'](_0x1e3f90['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x1f9c7d,_0x1e3f90['data']['newRange'],_0x399b70),_0x397a10=!0x0);}return _0x397a10;}['_recordAttributeChanges'](_0x3a51a0){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3a51a0();}['_isRegisteredAttribute'](_0x38d3a6){const _0x5c2384=this['_isBlockAttribute'](_0x38d3a6),_0x49ed9d=this['_inlineAttributeKeys']['has'](_0x38d3a6);return _0x5c2384||_0x49ed9d;}['_reduceExistingSuggestions'](_0x4f5b9b,_0x24710a){if(0x0==_0x24710a['length'])return!0x1;let _0x566ec1=!0x1;for(const _0x5e506c of _0x24710a){const _0x72060f=this['_findSuggestions'](_0x5e506c['range'],'attribute')['filter'](_0x19aa7b=>!_0x19aa7b['meta']['isNextTo'])['map'](_0x304bf4=>_0x304bf4['suggestion']),_0x3b14f3=_0x4175a8({'newValue':_0x5e506c['newValue']});_0x72060f['filter'](_0x17914f=>{const [_0x6968d6,_0x12b1a5]=_0x17914f['subType']['split']('|');return _0x6968d6==_0x5e506c['key']&&_0x12b1a5!=_0x3b14f3;})['forEach'](_0x15a3f8=>{this['_reduceSuggestionAttributeRange'](_0x15a3f8,_0x5e506c['range'],_0x4f5b9b),_0x566ec1=!0x0;});}return _0x566ec1;}['_reduceSuggestionAttributeRange'](_0x2633fd,_0x22e19d,_0x20a1b7){const _0x130d3=_0x2633fd['getFirstRange']()['getDifference'](_0x22e19d);0x0!==_0x130d3['length']?0x1!==_0x130d3['length']?this['_breakSuggestionMarker'](_0x2633fd,_0x22e19d['start'],_0x22e19d['end']):this['_setSuggestionRange'](_0x2633fd,_0x130d3[0x0]):_0x20a1b7['removeMarker'](_0x2633fd['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x81f3c3){this['_editor']=_0x81f3c3,this['_model']=_0x81f3c3['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x4732e,_0x2b474a,_0x4e679d,_0x45c260,_0x38e79a,_0x3c8436){return new u(this['_model'],{'type':_0x4732e,'subType':_0x2b474a,'id':_0x4e679d,'author':_0x45c260,'creator':_0x45c260,'attributes':_0x38e79a,'onAttributesChange':_0x3c8436,'onAccept':(..._0x40b15b)=>this['getSuggestionCallback'](_0x4732e,_0x2b474a,'accept')(..._0x40b15b),'onDiscard':(..._0x2ccc2e)=>this['getSuggestionCallback'](_0x4732e,_0x2b474a,'discard')(..._0x2ccc2e)});}['registerCustomCallback'](_0x43f1bd,_0x326076,_0x5c22ed,_0x271140){const _0x7bf5c4=_0x43f1bd+':'+_0x326076+':'+_0x5c22ed;this['_customCallbacks']['set'](_0x7bf5c4,_0x271140);}['getSuggestionCallback'](_0x1575b5,_0x589e2,_0x505038){const _0x581de9=_0x1575b5+':'+_0x589e2+':'+_0x505038;return this['_customCallbacks']['get'](_0x581de9)||this['_defaultCallbacks']['get'](_0x1575b5+':'+_0x505038);}['_registerDefaultCallbacks'](){const _0x155b1a=()=>!0x1,_0x7f9e87=_0x3667a5=>{_0x3667a5['sort']((_0x1e9c24,_0x5818cc)=>_0x1e9c24['start']['isBefore'](_0x5818cc['start'])?0x1:-0x1),this['_model']['change'](_0xe0025a=>{for(const _0x44edef of _0x3667a5){let _0x3b7a13;_0x3b7a13=_0x44edef['end']['isAtEnd']&&_0x44edef['end']['parent']==_0x44edef['start']['nodeAfter']?_0xe0025a['createSelection'](_0x44edef['start']['nodeAfter'],'on'):_0xe0025a['createSelection'](_0x44edef),this['_model']['deleteContent'](_0x3b7a13,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x225317=(_0x284752,_0x2674ff)=>{_0x2674ff&&this['_model']['change'](_0x14eafd=>{const {commandName:_0x153ace,commandParams:_0xd4d5a=[]}=_0x2674ff,_0x3fa99c=_0x284752['map'](_0x4837ba=>(Vt(_0x4837ba)&&(_0x4837ba=this['_model']['createRange'](_0x4837ba['end'])),_0x4837ba))['filter'](_0x52d3db=>'$graveyard'!==_0x52d3db['root']['rootName']);if(_0x3fa99c['length']<0x1)return;const _0x1b2b15=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x31d513=>_0x416c59['fromRange'](_0x31d513));_0x14eafd['setSelection'](_0x3fa99c);for(const _0x36a7de of this['_editor']['commands']['commands']())_0x36a7de['refresh']();_0xd4d5a['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x153ace,..._0xd4d5a);const _0x15723f=_0x1b2b15['filter'](_0x5641ad=>'$graveyard'!=_0x5641ad['root']['rootName']);_0x15723f['length']>0x0&&_0x14eafd['setSelection'](_0x15723f);for(const _0x39c52b of _0x1b2b15)_0x39c52b['detach']();});},_0x329d92=(_0x4d4587,_0x4309bc)=>0x1==_0x4d4587['length']&&0x1==_0x4309bc['length']&&_0x4d4587[0x0]['end']['isEqual'](_0x4309bc[0x0]['start']),_0x4e1fd9=(_0xd30643,_0x1d2915,_0xda62c0,_0x32b04e)=>Ht(_0xd30643,_0x1d2915,_0xda62c0,_0x32b04e,this['_model'])?[_0xd30643,_0x1d2915]:Ht(_0x1d2915,_0xd30643,_0x32b04e,_0xda62c0,this['_model'])?[_0x1d2915,_0xd30643]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x155b1a),this['_defaultCallbacks']['set']('insertion:discard',_0x7f9e87),this['_defaultCallbacks']['set']('insertion:join',_0x329d92),this['_defaultCallbacks']['set']('insertion:chain',_0x4e1fd9),this['_defaultCallbacks']['set']('deletion:accept',_0x7f9e87),this['_defaultCallbacks']['set']('deletion:discard',_0x155b1a),this['_defaultCallbacks']['set']('deletion:join',_0x329d92),this['_defaultCallbacks']['set']('deletion:chain',_0x4e1fd9),this['_defaultCallbacks']['set']('formatInline:accept',_0x225317),this['_defaultCallbacks']['set']('formatInline:discard',_0x155b1a),this['_defaultCallbacks']['set']('formatInline:join',_0x329d92),this['_defaultCallbacks']['set']('formatInline:chain',_0x155b1a),this['_defaultCallbacks']['set']('formatBlock:accept',_0x225317),this['_defaultCallbacks']['set']('formatBlock:discard',_0x155b1a),this['_defaultCallbacks']['set']('formatBlock:join',_0x329d92),this['_defaultCallbacks']['set']('formatBlock:chain',_0x155b1a),this['_defaultCallbacks']['set']('attribute:accept',_0x155b1a),this['_defaultCallbacks']['set']('attribute:discard',(_0x32f859,_0xac8876)=>{if(!_0xac8876)return;const _0xcf5ffb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x2657e0=>{if(_0xac8876['key']==m)for(const _0x2800c5 of _0x32f859){const _0x265cee=_0x2800c5['start']['nodeAfter'],_0x32d389=_0xac8876['oldValue'];_0x2657e0['rename'](_0x265cee,_0x32d389);}else{if(_0xcf5ffb['_isBlockAttribute'](_0xac8876['key'])){for(const _0x528fc1 of _0x32f859)void 0x0!==_0xac8876['oldValue']?_0x2657e0['setAttribute'](_0xac8876['key'],_0xac8876['oldValue'],_0x528fc1['start']['nodeAfter']):_0x2657e0['removeAttribute'](_0xac8876['key'],_0x528fc1['start']['nodeAfter']);}else{for(const _0x13d0b7 of _0x32f859)_0xac8876['oldValue']?_0x2657e0['setAttribute'](_0xac8876['key'],_0xac8876['oldValue'],_0x13d0b7):_0x2657e0['removeAttribute'](_0xac8876['key'],_0x13d0b7);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x329d92);}}function Ot(_0x265214,_0x407d06,_0xceb076){for(const _0x4d4752 of _0x407d06['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x4d4752['root']==_0x4d4752)return!0x1;if(!_0xceb076['containsItem'](_0x4d4752))return!0x1;if(_0x265214['isObject'](_0x4d4752)||_0x265214['isLimit'](_0x4d4752))return!0x0;}return!0x1;}function Vt(_0x54b029){return _0x54b029['end']['parent']==_0x54b029['start']['nodeAfter']&&_0x54b029['end']['isAtStart'];}function Ut(_0x1ab297,_0x55612d,_0x476600,_0x3e746e){const _0x2a2fb2=_0x321ae4=>!_0x321ae4['item']['is']('$textProxy')&&!_0x3e746e['isObject'](_0x321ae4['item']),_0x20458c=_0x1ab297['start']['getLastMatchingPosition'](_0x2a2fb2),_0x11e8a1=_0x1ab297['end']['getLastMatchingPosition'](_0x2a2fb2,{'direction':'backward'});return(!_0x1ab297['start']['isEqual'](_0x20458c)||!_0x1ab297['end']['isEqual'](_0x11e8a1))&&(_0x20458c['isBefore'](_0x11e8a1)?_0x476600['updateMarker'](_0x55612d,{'range':_0x476600['createRange'](_0x20458c,_0x11e8a1)}):_0x476600['removeMarker'](_0x55612d),!0x0);}function Gt(_0x4f7a33){return _0x4175a8(_0x4f7a33);}function Ft(_0x1a12ab){const _0x5e4097=_0x1a12ab['start']['nodeAfter'];return _0x5e4097&&_0x5e4097['is']('element');}function Pt(_0x4c4118,_0x1d1fa5){return null==_0x4c4118['end']['nodeBefore']&&_0x4c4118['end']['parent']==_0x4c4118['start']['nodeAfter']?Lt(_0x4c4118['start']['nodeAfter'],_0x1d1fa5):_0x4c4118;}function Lt(_0x4af13b,_0x10f915){const _0xc50033=_0x10f915['schema']['isObject'](_0x4af13b)||_0x10f915['schema']['isSelectable'](_0x4af13b);return _0x10f915['createRange'](_0x10f915['createPositionAt'](_0x4af13b,'before'),_0xc50033?_0x10f915['createPositionAfter'](_0x4af13b):_0x10f915['createPositionAt'](_0x4af13b,'end'));}function Ht(_0x39aec4,_0x18b70c,_0x528aa7,_0x3ec65a,_0xfdc3d9){if(_0x39aec4['next'])return!0x1;if(!Jt(_0x39aec4,_0x18b70c))return!0x1;if(_0x528aa7['end']['isEqual'](_0x3ec65a['start']))return!0x0;if(_0x39aec4['type']!=_0x18b70c['type'])return!0x1;if(!_0x528aa7['end']['isTouching'](_0x3ec65a['start']))return!0x1;const _0x37352d=_0xfdc3d9['createRange'](_0x528aa7['end'],_0x3ec65a['start'])['getWalker']();for(const _0x43749d of _0x37352d)if(['elementStart','elementEnd']['includes'](_0x43749d['type'])&&_0xfdc3d9['schema']['isLimit'](_0x43749d['item']))return!0x1;return!0x0;}function Jt(_0x1a736e,_0x21cf02){if(!_0x1a736e['_isDataLoaded']||!_0x21cf02['_isDataLoaded'])return!0x1;const _0x52d0c1=new Set(Object['keys'](_0x1a736e['attributes'])),_0x5a717e=new Set(Object['keys'](_0x21cf02['attributes']));if(_0x52d0c1['delete']('groupId'),_0x5a717e['delete']('groupId'),0x0==_0x52d0c1['size']&&0x0==_0x5a717e['size'])return!0x0;if(_0x52d0c1['size']!=_0x5a717e['size'])return!0x1;const _0x18327c={..._0x1a736e['attributes']},_0x4bc8a5={..._0x21cf02['attributes']};return delete _0x18327c['groupId'],delete _0x4bc8a5['groupId'],JSON['stringify'](_0x18327c)==JSON['stringify'](_0x4bc8a5);}function qt(_0x7490a,_0x325d7c){const _0x26fcf0=zt(_0x7490a['attributes']),_0x1742a4=zt(_0x325d7c);if(!_0x7490a['_isDataLoaded'])return!0x1;for(const _0x3b20a0 of Object['keys'](_0x1742a4))if(!_0xabcc16(_0x26fcf0[_0x3b20a0],_0x1742a4[_0x3b20a0]))return!0x1;return!0x0;}function zt(_0x507b22){const _0x149811=Object['assign']({},_0x507b22);return delete _0x149811['skipNestingCheck'],delete _0x149811['tablePasteChainId'],_0x149811;}class ae extends/* #__PURE__ -- @preserve */
25
+ _0x1f3034(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x12ff1d,_0x5e0ad1,_0x353310,_0x12e336){super(),this['model']=_0x5e0ad1,this['view']=_0x353310,this['commentThreadController']=_0x12e336,this['_editor']=_0x12ff1d,this['_acceptCommand']=_0x12ff1d['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x12ff1d['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0xd6c78d,_0x3cca15)=>_0xd6c78d||_0x3cca15),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x43e8bc=>_0x43e8bc&&this['_editor']['model']['canEditAt'](_0x5e0ad1['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x58ce0d=>_0x58ce0d&&this['_editor']['model']['canEditAt'](_0x5e0ad1['getRanges']())),this['_pendingAction']=null,_0x353310['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x353310,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x353310,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x353310,'change:isDirty',()=>{_0x353310['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 _0x4a3ee7=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x4a3ee7);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x4cb079{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x43e9c8,_0x4efd35,_0x4aebde,_0x33b304){super(_0x43e9c8),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x30422d(_0x43e9c8,o(_0x43e9c8,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x4efd35['authoredAt']),this['bind']('authoredAt')['to'](_0x4efd35),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['bind']('ariaLabel')['to'](this,'length',_0x4efd35,'authoredAt',this,'descriptionParts',(_0x4e7342,_0x2eca8b,_0xbc0c3e)=>{const _0xef9c78=_0xbc0c3e['map'](_0x5dcce8=>ls(_0x5dcce8['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0x4e7342-0x1,_0x4efd35['author']['name'],_0x2eca8b?_0x33b304['formatDateTime'](_0x2eca8b):'',new DOMParser()['parseFromString'](_0xef9c78,'text/html')['body']['textContent']]);}),this['focusables']=new _0x1c8441(),this['focusTracker']=new _0x1a9f6b(),this['keystrokes']=new _0x2c96a7(),this['focusCycler']=new _0x56f042({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0x48a03e=>_0x48a03e['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x4efd35,this['_localUser']=_0x4aebde,this['_config']=_0x33b304,_0x33b304['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x36ea02(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2a782b}=this['_config'];this['commentsListView']=new _0x2a782b(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',_0x55a2f0=>_0x55a2f0+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x335470,_0x54235d)=>_0x335470||!!_0x54235d);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x23aacb}=this['_config'],_0x50bd42=new _0x23aacb(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x22be8f=_0x50bd42['commentInputView'];return _0x50bd42['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x22be8f,'value',(_0x3afe79,_0x5f56ac,_0x56ed5a)=>!!_0x56ed5a||_0x3afe79&&!_0x5f56ac),_0x22be8f['on']('submit',(_0x10b517,_0x34804f)=>{this['fire']('addComment',_0x34804f),_0x22be8f['editor']['setData']('');}),_0x22be8f['on']('cancel',()=>this['focus']()),_0x22be8f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x50bd42;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x2674b7,_0x44600f,_0x1432c6,_0x2ba7c4){super(_0x2674b7,_0x44600f,_0x1432c6,_0x2ba7c4),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x205578=>_0x205578&&_0x205578[0x0]?_0x205578[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x3606d8,_0x22a0ca)=>{let _0x5d4509='';for(const _0x3d2238 of _0x3606d8)_0x5d4509+='<p>'+ls(_0x3d2238['content'],_0x3d2238['color'])+'</p>';return _0x22a0ca?_0x5d4509:_0x5dc161(_0x5d4509,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2674b7,'Accept\x20suggestion'),_0x19bbc4['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2674b7,'Discard\x20suggestion'),_0x19bbc4['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x50c5e8(_0x2674b7,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user'],'aria-hidden':!0x0}}),this['focusables']['addMany']([this['acceptButton'],this['discardButton']]),this['commentsListView']&&this['focusables']['add'](this['commentsListView']),this['commentThreadInputView']&&this['focusables']['add'](this['commentThreadInputView']),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x2ec9aa=this['bindTemplate'],_0x23c8f5=[{'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':_0x2ec9aa['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2ec9aa['to']('authoredAt',_0x188976=>this['_config']['formatDateTime'](_0x188976))}]}]},{'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']&&_0x23c8f5['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x6130d1={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2ec9aa['if']('isActive','ck-suggestion-wrapper--active'),_0x2ec9aa['to']('type',_0x2e7d36=>'ck-suggestion-'+_0x2e7d36),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':0x0,'role':'listitem','aria-label':_0x2ec9aa['to']('ariaLabel'),'aria-describedby':this['ariaDescriptionView']['id']},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main'],'role':'presentation'},'children':_0x23c8f5},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x6130d1['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)),_0x6130d1;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x51b472,_0x13227b,_0x46d386)=>{this['_descriptionElement']['innerHTML']=_0x46d386;});}['_createButton'](_0x4bb6a5,_0x3bf20d,_0x4ad205,_0x5369c9,_0x514ecf){const _0x18a6d5=new _0x3462ec(this['locale']);return _0x18a6d5['set']({'label':_0x4bb6a5,'icon':_0x3bf20d,'tooltip':!0x0,'tooltipPosition':_0x514ecf}),_0x18a6d5['extendTemplate']({'attributes':{'class':_0x4ad205}}),_0x18a6d5['on']('execute',()=>{this['fire'](_0x5369c9,this['_model']['id']);}),_0x18a6d5;}['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;}}var ce='<!--\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 _0x2e1a44{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x259150,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x438f59){super(_0x438f59),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x401613=this['editor']['config'];_0x401613['define']('trackChanges.SuggestionThreadView',re),_0x401613['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x401613['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0xa18229,_0x395650){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x52bc15,_0x4c3685]of this['_handleControllerBuffer']){const _0x507ee9=this['_suggestionToController']['has'](_0x52bc15);_0x507ee9||_0x4c3685?_0x507ee9&&_0x4c3685&&this['_destroyController'](_0x52bc15):this['_initializeController'](_0x52bc15);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0xa18229,_0x395650);}['init'](){const _0x42515c=this['editor'],_0x3bcc92=_0x42515c['plugins']['get']('TrackChangesEditing'),_0x1dfe23=_0x42515c['plugins']['get']('Annotations'),_0x109c7b=_0x42515c['plugins']['get']('EditorAnnotations'),_0x4c2302=_0x42515c['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x109c7b['addSourceCollector'](()=>{const _0x226be7=[];for(const [_0x486acc,_0x5652d5]of Array['from'](this['_suggestionToController'])){const _0xb22168=_0x486acc['getAllAdjacentSuggestions'](),_0x4ae5c6=[];for(const _0x50d1e1 of _0xb22168){if(!_0x50d1e1['isInContent'])continue;if(_0x50d1e1['isMultiRange']){_0x4ae5c6['push'](..._0x50d1e1['getRanges']());continue;}const _0x2d2d89=_0x50d1e1['getFirstRange']();if(_0x4ae5c6['length']>0x0){const _0x3bebe6=_0x4ae5c6[0x0]['getJoined'](_0x2d2d89);if(_0x3bebe6){_0x4ae5c6[0x0]=_0x3bebe6;continue;}}_0x4ae5c6['push'](_0x2d2d89);}_0x226be7['push']([_0x5652d5['view'],_0x4ae5c6]);}return _0x226be7;}),this['listenTo'](_0x3bcc92,'suggestionLoaded',(_0x25b1f0,_0x295248)=>{this['listenTo'](_0x295248,'change:previous',(_0x5e7401,_0x6ab4a8,_0x26363a,_0x35cac6)=>{_0x295248['isInContent']&&(null==_0x26363a?(this['_updateController'](_0x35cac6['head']),this['_handleSuggestionControllerDelayed'](_0x295248,!0x1)):(this['_updateController'](_0x26363a['head']),null==_0x35cac6&&this['_handleSuggestionControllerDelayed'](_0x295248,!0x0)));}),null!==_0x295248['previous']?this['_updateController'](_0x295248['head']):this['_handleSuggestionControllerDelayed'](_0x295248,!0x1);}),this['listenTo'](_0x3bcc92,'suggestionUnloaded',(_0x30bc84,_0x1267dd,_0x2d3daa)=>{this['stopListening'](_0x1267dd,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1267dd),this['_suggestionToController']['has'](_0x1267dd)&&this['_destroyController'](_0x1267dd),_0x2d3daa&&this['_updateController'](_0x2d3daa['head']);}),this['listenTo'](_0x3bcc92,'suggestionChanged',(_0x2c8e82,_0x4be853)=>{this['_updateController'](_0x4be853);}),this['listenTo'](_0x1dfe23,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x4c2302,'addComment',(_0x23a46a,{threadId:_0x451be7,isFromAdapter:_0x59f427})=>{if(_0x59f427||!_0x3bcc92['hasSuggestion'](_0x451be7))return;const _0x2da247=_0x3bcc92['getSuggestion'](_0x451be7);this['_suggestionToController']['get'](_0x2da247)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x3b6cac=this['editor']['plugins']['get']('Annotations'),_0x4d8e5b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b3be0=Array['from'](_0x3b6cac['activeAnnotations'],_0x350245=>_0x350245['innerView'])['filter'](_0x2c7499=>this['_viewToController']['has'](_0x2c7499)),_0x446520=[];for(const _0x52482f of _0x3b3be0){const _0x54b5f8=this['_viewToController']['get'](_0x52482f)['model']['getAllAdjacentSuggestions']();_0x446520['push'](..._0x54b5f8['reduce']((_0x4489b5,_0x3b785a)=>[..._0x4489b5,..._0x3b785a['getMarkerNames']()],[]));}_0x4d8e5b['activeMarkers']=_0x446520;}['_addUIComponentsToFactory'](){const _0x25e5a4=this['editor'],_0xf710a9=_0x25e5a4['locale'],_0x27fd7a=o(_0xf710a9,'Track\x20changes'),_0x6dd191=new Wt([{'type':'switchbutton','model':new _0x75878a({'withText':!0x0,'isToggleable':!0x0,'label':_0x27fd7a,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x75878a({'withText':!0x0,'label':o(_0xf710a9,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x75878a({'withText':!0x0,'label':o(_0xf710a9,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x75878a({'withText':!0x0,'label':o(_0xf710a9,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x75878a({'withText':!0x0,'label':o(_0xf710a9,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x3ef2fd of _0x6dd191)if(he(_0x3ef2fd)){const _0x345ce9=_0x25e5a4['commands']['get'](_0x3ef2fd['model']['commandName']);_0x3ef2fd['model']['bind']('isOn','isEnabled')['to'](_0x345ce9,'value','isEnabled');}_0x25e5a4['ui']['componentFactory']['add']('trackChanges',_0x2ac830=>this['_createToolbarButton'](_0x2ac830,_0x6dd191,_0x27fd7a)),_0x25e5a4['ui']['componentFactory']['add']('menuBar:trackChanges',_0x297968=>this['_createMenuBarMenu'](_0x297968,_0x6dd191,_0x27fd7a));}['_createToolbarButton'](_0x436182,_0x20f84a,_0x34b6ba){const _0x2e8da7=Qt(_0x436182,_0x49ed9e),_0xa9141f=this['editor']['commands']['get']('trackChanges');_0x2e8da7['buttonView']['set']({'tooltip':_0x34b6ba,'label':_0x34b6ba,'icon':ce}),_0x2e8da7['buttonView']['bind']('isOn')['to'](_0xa9141f,'value'),_0x2e8da7['buttonView']['on']('execute',()=>{_0xa9141f['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x2e8da7,_0x20f84a,{'role':'menu'});const _0x5eb726=[];for(const _0x3af1ef of _0x20f84a)he(_0x3af1ef)&&_0x5eb726['push'](this['editor']['commands']['get'](_0x3af1ef['model']['commandName']));const _0x57179a=_0x2e8da7['buttonView'];return _0x57179a['actionView']['unbind']('isEnabled'),_0x57179a['arrowView']['unbind']('isEnabled'),_0x57179a['actionView']['bind']('isEnabled')['to'](_0xa9141f,'isEnabled'),_0x57179a['arrowView']['bind']('isEnabled')['toMany'](_0x5eb726,'isEnabled',(..._0x5296eb)=>_0x5296eb['some'](_0x4333de=>_0x4333de)),_0x2e8da7['on']('execute',_0x5e516d=>{this['editor']['execute'](_0x5e516d['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x2e8da7;}['_createMenuBarMenu'](_0x3abc69,_0x38612c,_0x630820){const _0x3f235b=new Yt(_0x3abc69),_0x5c4417=this['editor']['commands']['get']('trackChanges');_0x3f235b['buttonView']['set']({'label':_0x630820,'icon':ce});const _0x456197=new Zt(_0x3abc69);for(const _0x470330 of _0x38612c){if('separator'==_0x470330['type']){_0x456197['items']['add'](new Xt(_0x3abc69));continue;}const _0xaf8ea8=new te(_0x3abc69,_0x3f235b),_0x3a2af8=new _0x355737(_0x3abc69),_0x27a2b2=_0x470330['model'];_0x3a2af8['bind'](...Object['keys'](_0x27a2b2))['to'](_0x27a2b2),_0x3a2af8['delegate']('execute')['to'](_0x3f235b),_0x3a2af8['on']('execute',()=>{this['editor']['execute'](_0x27a2b2['commandName']),this['editor']['editing']['view']['focus']();}),_0xaf8ea8['children']['add'](_0x3a2af8),_0x456197['items']['add'](_0xaf8ea8);}return _0x3f235b['bind']('isEnabled')['to'](_0x5c4417,'isEnabled'),_0x3f235b['panelView']['children']['add'](_0x456197),_0x3f235b;}['_initializeController'](_0x4c0b8a){const _0x5c9dd0=this['editor'],_0x327c79=_0x5c9dd0['config'],_0x4e7b3c=_0x5c9dd0['plugins']['get']('Annotations'),_0x4b06b0=_0x5c9dd0['plugins']['get']('CommentsRepository'),_0x25cebf=_0x5c9dd0['plugins']['get']('EditorAnnotations'),_0x5af503=_0x5c9dd0['plugins']['get'](_0x259150)['me'],_0x575856=_0x327c79['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x591b52,CommentThreadInputView:_0x130b8b}=_0x5c9dd0['plugins']['get']('CommentsUI');let _0x5b4699,_0xa74ed1;this['_annotationViews']['has'](_0x4c0b8a['id'])?(_0xa74ed1=this['_annotationViews']['get'](_0x4c0b8a['id']),_0x5b4699=_0xa74ed1['mainView']):(_0x5b4699=new _0x575856(_0x5c9dd0['locale'],_0x4c0b8a,_0x5af503,{'disableComments':this['_disableComments'],'editorConfig':_0x327c79['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x327c79['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x327c79['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x327c79['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x18c299(_0x327c79['get']('locale')),'CommentView':_0x327c79['get']('comments')['CommentView'],'CommentsListView':_0x591b52,'CommentThreadInputView':_0x130b8b}),_0x5b4699['acceptButton']['on']('execute',()=>{_0x5c9dd0['editing']['view']['focus']();}),_0x5b4699['discardButton']['on']('execute',()=>{_0x5c9dd0['editing']['view']['focus']();}),_0xa74ed1=_0x4e7b3c['createAnnotationView'](this['editor']['locale'],_0x5b4699),_0xa74ed1['bind']('isDirty')['to'](_0x5b4699,'isDirty'),_0xa74ed1['bind']('length')['to'](_0x5b4699),_0xa74ed1['bind']('type')['to'](_0x5b4699,'type',_0x319ae2=>'suggestion-'+_0x319ae2),this['listenTo'](_0x5b4699,'escape',()=>{_0x5c9dd0['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x4c0b8a['id'],_0xa74ed1));const _0x2ea05a=_0x4b06b0['createCommentThreadController'](_0x4c0b8a['commentThread'],_0x5b4699),_0x53c23c=new ae(_0x5c9dd0,_0x4c0b8a,_0x5b4699,_0x2ea05a),_0x41272c=_0x4c0b8a['getAllAdjacentSuggestions']()['filter'](_0x2d0abf=>_0x2d0abf['isInContent']);_0x5b4699['descriptionParts']=_0x5c9dd0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x41272c),this['_suggestionToController']['set'](_0x4c0b8a,_0x53c23c),this['_viewToController']['set'](_0x5b4699,_0x53c23c);const _0x4d124e=_0x4e7b3c['createAnnotation']({'view':_0xa74ed1,'target':()=>{const _0x5f063a=[],_0x58969a=_0x4c0b8a['getAllAdjacentSuggestions']()['filter'](_0x8b50f3=>_0x8b50f3['isInContent']);for(const _0x39912f of _0x58969a)_0x5f063a['push'](..._0x39912f['getMarkers']());return _0x5e17af(_0x5c9dd0['editing'],_0x5f063a);},'type':()=>'suggestion-'+_0x53c23c['view']['type']});_0x4b06b0['_bindAnnotationToEditors'](_0x5b4699,_0x4d124e),_0x4e7b3c['add'](_0x4d124e),_0x25cebf['registerAnnotation'](_0x4d124e);}['_destroyController'](_0x16950d){const _0x2224c7=this['editor']['plugins']['get']('CommentsRepository'),_0x4997dd=this['editor']['plugins']['get']('Annotations'),_0x5dfc8d=this['_suggestionToController']['get'](_0x16950d),_0xfd093f=_0x5dfc8d['view'],_0x2b11b2=_0x4997dd['getByInnerView'](_0xfd093f);_0x2224c7['_unbindEditors'](_0xfd093f),_0x2b11b2&&_0x4997dd['remove'](_0x2b11b2),this['_suggestionToController']['delete'](_0x16950d),this['_viewToController']['delete'](_0xfd093f),_0x5dfc8d['destroy']();}['_updateController'](_0x2de5ba){if(!_0x2de5ba['isInContent']||!this['_suggestionToController']['has'](_0x2de5ba))return;const _0x433263=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4d59ad=this['_suggestionToController']['get'](_0x2de5ba),_0xfc7c65=_0x2de5ba['getAllAdjacentSuggestions']();_0x4d59ad['view']['descriptionParts']=_0x433263['descriptionFactory']['getDescriptions'](_0xfc7c65);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x1e406e,(_0x772e7b,_0x5d8dcb)=>{const _0x56f2bb=this['editor']['plugins']['get'](k),_0x4d9bec=this['editor']['plugins']['get'](p);if(!_0x4d9bec['activeMarkers']['length'])return;const {id:_0x1f10eb}=_0x4d9bec['_splitMarkerName'](_0x4d9bec['activeMarkers'][0x0]),_0x3ffcd7=_0x56f2bb['getSuggestion'](_0x1f10eb);_0x3ffcd7&&(this['_suggestionToController']['get'](_0x3ffcd7)['view']['focus'](),_0x5d8dcb());});}['destroy'](){for(const _0x16ab32 of this['_suggestionToController']['keys']())this['_destroyController'](_0x16ab32);for(const _0x1d8476 of this['_annotationViews']['values']())_0x1d8476['mainView']['destroy']();super['destroy']();}}function he(_0x1d4693){return'model'in _0x1d4693;}class k extends _0x2e1a44{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4fb570){this['editor']['plugins']['get'](p)['adapter']=_0x4fb570;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4d0f35){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4d0f35);}['getSuggestions']({skipNotAttached:_0x2bc5f1=!0x1,toJSON:_0x27163a=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2bc5f1,'toJSON':_0x27163a});}['getSuggestion'](_0x4776df){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4776df);}}const T=['Pagination'];class P extends _0x2e1a44{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3459f1=this['editor'];if(_0x3459f1['config']['define']('trackChangesData.editorCreator',_0x1cc42c=>{const _0x4a10f0=_0x3459f1['model']['document']['getRootNames']()['reduce']((_0x1ceee2,_0x423470)=>(_0x1ceee2[_0x423470]='',_0x1ceee2),{});return _0x3459f1['constructor']['create'](_0x4a10f0,_0x1cc42c);}),'function'!=typeof _0x3459f1['config']['get']('trackChangesData')['editorCreator'])throw new _0x1fc2fe('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x4a3427){return N(this['editor'],!0x0,_0x4a3427);}['getDataWithDiscardedSuggestions'](_0x357143){return N(this['editor'],!0x1,_0x357143);}}class D extends _0x2e1a44{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x17accc){super(_0x17accc),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(_0x16cc71){return void 0x0!==_0x16cc71['getRootsAttributes'];}async function N(_0x1e5000,_0x1757f4,_0x2af4f4){const _0x437ee6=_0x434898(_0x1e5000,T);_0x437ee6['plugins']['push'](p,D),_0x437ee6['rootsAttributes']=v(_0x1e5000)?_0x1e5000['getRootsAttributes']():void 0x0;const _0x207cbe=document['createDocumentFragment'](),_0x870ba4=_0x1e5000['config']['get']('trackChangesData')['editorCreator'],_0x1a927e=await _0x870ba4(_0x437ee6,()=>function(_0x31a4c1){const _0x3057c4=document['createElement']('div');return _0x31a4c1['appendChild'](_0x3057c4),_0x3057c4;}(_0x207cbe));!function(_0x5aed23,_0x5151df){const _0x25842c=_0x5aed23['model']['document']['getRootNames']()['reduce']((_0x262a62,_0x5d036e)=>(_0x262a62[_0x5d036e]=_0x5aed23['data']['get']({'rootName':_0x5d036e}),_0x262a62),{}),_0x9bcb81=_0x5aed23['plugins']['get']('Users')['users']['map'](_0x5b5df4=>({'id':_0x5b5df4['id'],'name':_0x5b5df4['name']})),_0x487a8a=_0x5aed23['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x297d37=_0x5aed23['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x387c94=_0x5151df['plugins']['get']('Users'),_0x5a3e73=_0x5151df['plugins']['get']('TrackChangesEditing'),_0x563596=_0x5151df['plugins']['get']('CommentsRepository');for(const _0x13f045 of _0x563596['getCommentThreads']())_0x13f045['remove']();for(const _0x552d68 of _0x9bcb81)_0x387c94['getUser'](_0x552d68['id'])||_0x387c94['addUser'](_0x552d68);_0x387c94['me']||_0x387c94['useAnonymousUser']();for(const _0x574369 of _0x297d37)_0x563596['addCommentThread'](_0x574369);for(const _0x10c737 of _0x487a8a)_0x5a3e73['addSuggestionData'](_0x10c737);_0x5151df['data']['set'](_0x25842c);}(_0x1e5000,_0x1a927e),_0x1a927e['execute'](_0x1757f4?'acceptAllSuggestions':'discardAllSuggestions');const _0x50197d=v(_0x1a927e)?_0x1a927e['getFullData'](_0x2af4f4):_0x1a927e['data']['get'](_0x2af4f4);return await _0x1a927e['destroy'](),_0x50197d;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};