@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240801.0 → 0.0.0-nightly-20240802.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 _0x3c69b1,PendingActions as _0x55e27a,icons as _0x2b45d4}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x2a2fd9,ObservableMixin as _0x35f11c,uid as _0x56aadc,insertToPriorityArray as _0x26875f,priorities as _0x2de423,logWarning as _0xda5bc1,getEnvKeystrokeText as _0x44cc5c,FocusTracker as _0x3e3946,KeystrokeHandler as _0x10750,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x3c9ad5,View as _0x2ddc4e,ViewCollection as _0x24ec26,FocusCycler as _0x307531,ViewModel as _0x346bac,createDropdown as Qt,SplitButtonView as _0xc764f7,addListToDropdown as Kt,MenuBarMenuView as Yt,MenuBarMenuListView as Zt,ListSeparatorView as Xt,MenuBarMenuListItemView as te,MenuBarMenuListItemButtonView as _0x528b75}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x3ae110,hashObject as _0x4820e3,surroundingMarkersDetector as _0x443fdf,ENTER_THREAD_KEYSTROKE as _0x473ff2,AriaDescriptionView as _0x2e52dc,setupThreadKeyboardNavigation as _0x2e1f64,trimHtml as _0x3c1bb3,UserView as _0xc114b2,LateFocusButtonView as _0x1c9a55,getDateTimeFormatter as _0x57858b,getAllMarkersDomElementsSorted as _0x6dcf0b,sanitizeEditorConfig as _0x13a7b0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x1568fb,LiveRange as _0x22b4f7,LivePosition as _0x1c4b3e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x199b19,toWidget as _0x1539e1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3bf68c,set as _0x2ef457,isEqual as _0x415100,unset as _0x7bcfc1,omit as Tt}from'lodash-es';import{Delete as _0x37faf8,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x35024f,ShiftEnter as _0x1b4c49}from'@ckeditor/ckeditor5-enter/dist/index.js';class B extends ts{['_enabledCommands'];constructor(_0x34b568,_0x314a38){super(_0x34b568),this['_enabledCommands']=_0x314a38,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 _0x528a11 of this['editor']['commands']['commands']())_0x528a11['affectsData']&&!this['_enabledCommands']['has'](_0x528a11)&&_0x528a11['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x16055f of this['editor']['commands']['commands']())_0x16055f['affectsData']&&!this['_enabledCommands']['has'](_0x16055f)&&_0x16055f['clearForceDisabled']('TrackChangesCommand');}}class x extends ts{['_suggestions'];constructor(_0x13f673,_0x131404){super(_0x13f673),this['_suggestions']=_0x131404,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x58bcf9){const _0xe1b82d=this['_suggestions']['get'](_0x58bcf9);if(!_0xe1b82d)throw new _0x2a2fd9('track-changes-accept-suggestion-not-found',this);const _0x6f0dac=_0xe1b82d['getRanges']();this['editor']['model']['canEditAt'](_0x6f0dac)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe1b82d);}}class R extends ts{['_suggestions'];constructor(_0xa27af4,_0x4b97b2){super(_0xa27af4),this['_suggestions']=_0x4b97b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x54c320){const _0x2f23e8=this['_suggestions']['get'](_0x54c320);if(!_0x2f23e8)throw new _0x2a2fd9('track-changes-discard-suggestion-not-found',this);const _0x4b1e3b=_0x2f23e8['getRanges']();this['editor']['model']['canEditAt'](_0x4b1e3b)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x2f23e8);}}function ls(_0x1de48a,_0x1f5400){let _0x316cca='';return _0x316cca+=_0x1de48a['split']('*')['map']((_0x14a6a4,_0xfaf48b)=>_0xfaf48b%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+nn(_0x14a6a4)+'</span>':nn(_0x14a6a4))['join'](''),_0x1f5400&&(_0x316cca+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1f5400['value']+'\x22\x20title=\x22'+_0x1f5400['title']+'\x22></span>'),_0x316cca;}function nn(_0x17c61d){const _0x25eadd=document['createElement']('span');return _0x25eadd['innerText']=_0x17c61d,_0x25eadd['innerHTML'];}function ss(_0x337a06){return _0x337a06['sort']((_0xd2edee,_0x454ae3)=>'deletion'==_0xd2edee['type']&&'deletion'!=_0x454ae3['type']?-0x1:'deletion'!=_0xd2edee['type']&&'deletion'==_0x454ae3['type']?0x1:0x0);}function to(_0x4f1253,_0x3e9c92){let _0x3e9744,_0x357c87=0x0;const _0x4b3711=[],_0x377d9c=_0x3e9c92['schema'];for(;_0x357c87<_0x4f1253['length'];){const _0x75ca4e=_0x4f1253[_0x357c87],_0x51aa82=_0x4f1253[_0x357c87+0x1];_0x3e9744||(_0x3e9744=_0x3e9c92['createPositionBefore'](_0x75ca4e)),on(_0x3e9c92,_0x75ca4e,_0x51aa82)||(_0x4b3711['push'](_0x3e9c92['createRange'](_0x3e9744,_0x377d9c['isObject'](_0x75ca4e)?_0x3e9c92['createPositionAfter'](_0x75ca4e):_0x3e9c92['createPositionAt'](_0x75ca4e,'end'))),_0x3e9744=null),_0x357c87++;}return _0x4b3711;}function on(_0x14ff5d,_0x2997ed,_0x1200a6){if(!_0x1200a6)return!0x1;const _0x30c3c7=_0x14ff5d['createPositionAfter'](_0x2997ed),_0x2a19f9=_0x14ff5d['createPositionBefore'](_0x1200a6);return _0x30c3c7['isTouching'](_0x2a19f9);}function rs(_0x5892d1,_0x531e3c,_0x110faa){for(;_0x110faa['length'];){const _0x51f636=_0x110faa['splice'](0x0,0x64);_0x5892d1['change'](()=>{for(const _0x135243 of _0x51f636)_0x135243['isInContent']&&_0x531e3c['execute'](_0x135243['id']);});}}class E extends ts{['_command'];['_suggestions'];constructor(_0x380fd7,_0x2d2487,_0x45e044){super(_0x380fd7),this['_command']=_0x2d2487,this['_suggestions']=_0x45e044,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x3955c2=Array['from'](this['_suggestions']['values']())['some'](_0x328229=>_0x328229['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x3955c2;}['execute'](){const _0x3ebb5d=ss(Array['from'](this['_suggestions']['values']()));for(const _0xcf0f77 of _0x3ebb5d){const _0x1e731a=_0xcf0f77['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1e731a))return;}rs(this['editor']['model'],this['_command'],_0x3ebb5d);}}class O extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x313aeb,_0x5c89ae,_0x365bda){super(_0x313aeb),this['_command']=_0x5c89ae,this['_suggestions']=_0x365bda,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x4bf245=this['editor']['model']['document']['selection'],_0x3e0087=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x164ab5,_0x51e7d6){const _0x90aa1b=Array['from'](_0x164ab5['getRanges']()),_0x549c31=new Set();for(const _0x156d97 of _0x51e7d6)if(_0x156d97['isInContent']){for(const _0x4c5dfc of _0x90aa1b)for(const _0x21d583 of _0x156d97['getRanges']())(_0x4c5dfc['isIntersecting'](_0x21d583)||_0x164ab5['isCollapsed']&&!_0x156d97['isMultiRange']&&_0x156d97['next']&&_0x21d583['end']['isTouching'](_0x4c5dfc['start']))&&_0x549c31['add'](_0x156d97);}return _0x549c31;}(_0x4bf245,_0x3e0087),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x1fb33a=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5eeb25 of _0x1fb33a){const _0x246872=_0x5eeb25['getRanges']();if(!this['editor']['model']['canEditAt'](_0x246872))return;}rs(this['editor']['model'],this['_command'],_0x1fb33a);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x35f11c(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x37de6d,_0x596b8a){super(),this['id']=_0x596b8a['id'],this['type']=_0x596b8a['type'],this['subType']=_0x596b8a['subType']||null,this['author']=_0x596b8a['author'],this['creator']=_0x596b8a['creator']||_0x596b8a['author'],this['isExternal']=Boolean(_0x596b8a['attributes']&&_0x596b8a['attributes']['@external']),this['data']=null,this['_model']=_0x37de6d,this['_onAccept']=_0x596b8a['onAccept'],this['_onDiscard']=_0x596b8a['onDiscard'],this['_onAttributesChange']=_0x596b8a['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x596b8a['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 _0x422b6b=this;for(;_0x422b6b['previous'];)_0x422b6b=_0x422b6b['previous'];return _0x422b6b;}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'](_0x6b64b0){this['_markerNames']['add'](_0x6b64b0);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0xade2c3=>this['_model']['markers']['get'](_0xade2c3))['filter'](_0x1de55d=>_0x1de55d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x154848=>{for(const _0x23ef26 of this['getMarkers']())_0x154848['removeMarker'](_0x23ef26);}),this['_markerNames']['clear']();}['removeMarker'](_0x3b28f){this['_model']['change'](_0x4a7bf3=>{_0x4a7bf3['removeMarker'](_0x3b28f);}),this['_markerNames']['delete'](_0x3b28f);}['addRange'](_0x1ab41a){const _0x171b46='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x171b46),this['_model']['change'](_0x4dff58=>{_0x4dff58['addMarker'](_0x171b46,{'range':_0x1ab41a,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x1c134f){for(const _0x4c2478 of this['getRanges']())if(_0x4c2478['isIntersecting'](_0x1c134f))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x33d616=>_0x33d616['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3301bd,_0x234d37)=>[..._0x3301bd,..._0x234d37['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x195548=this['getRanges']();if(0x1!=_0x195548['length'])return null;const _0x12f2a5=_0x195548[0x0],_0x12e5f9=_0x12f2a5['start']['nodeAfter'],_0x25b1f3=_0x12f2a5['end']['nodeBefore'];return _0x12e5f9 instanceof _0x1568fb?_0x12e5f9!=_0x25b1f3?null:_0x12e5f9: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 _0x184585=[];let _0x3d2648=this['head'];for(;_0x3d2648;)_0x184585['push'](_0x3d2648),_0x3d2648=_0x3d2648['next'];return _0x184585;}['setAttribute'](_0x378097,_0x56e6f0){const _0x38c4a6=_0x3bf68c(this['attributes']);_0x2ef457(_0x38c4a6,_0x378097,_0x56e6f0),_0x415100(_0x38c4a6,this['attributes'])||(this['attributes']=_0x38c4a6,this['_onAttributesChange'](_0x38c4a6));}['removeAttribute'](_0x3e6f1e){const _0x1b748c=_0x3bf68c(this['attributes']);_0x7bcfc1(_0x1b748c,_0x3e6f1e),_0x415100(_0x1b748c,this['attributes'])||(this['attributes']=_0x1b748c,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 _0x56aadc()['substr'](0x1,0x5);}}function o(_0x8afbb3,_0x10e75b,_0x4c623f){const t=_0x8afbb3['t'];switch(_0x10e75b){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',_0x4c623f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x4c623f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x4c623f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x4c623f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x4c623f);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',_0x4c623f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x4c623f);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',_0x4c623f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x4c623f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x4c623f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x4c623f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x4c623f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x4c623f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x4c623f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x4c623f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x4c623f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x4c623f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x4c623f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x4c623f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x4c623f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x4c623f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x4c623f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x4c623f);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'},_0x4c623f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x4c623f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x4c623f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x4c623f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x4c623f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x4c623f);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'},_0x4c623f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x4c623f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x4c623f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x4c623f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x4c623f);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'},_0x4c623f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x4c623f);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'},_0x4c623f);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'},_0x4c623f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x4c623f);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'},_0x4c623f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x4c623f);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'},_0x4c623f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x4c623f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x4c623f);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'},_0x4c623f);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'},_0x4c623f);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'},_0x4c623f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.\x20Press\x20%0\x20to\x20go\x20to\x20the\x20discussion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'},_0x4c623f);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'},_0x4c623f);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'},_0x4c623f);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'},_0x4c623f);case'SUGGESTION_THREAD_DESCRIPTION':return t({'string':'Press\x20Enter\x20for\x20more\x20options.\x20Press\x20Escape\x20to\x20exit.','id':'SUGGESTION_THREAD_DESCRIPTION'});default:return _0x10e75b;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x2a0c3b,_0x5665eb){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a0c3b,this['_locale']=_0x5665eb;}['getDescriptions'](_0x2ec072){const _0x3f576e=[],_0x41b3e7=new Set(),_0x40be93=new Set();for(let _0x241104=0x0;_0x241104<_0x2ec072['length'];_0x241104++){const _0x4ed3d3=_0x2ec072[_0x241104];if(!_0x4ed3d3['isInContent'])continue;const _0x1282d6=this['_handleCustomCallbackDescription'](_0x4ed3d3);if(_0x1282d6){if(null!=_0x4ed3d3['subType']){if(_0x41b3e7['has'](_0x4ed3d3['subType']))continue;_0x41b3e7['add'](_0x4ed3d3['subType']);}_0x3f576e['push'](_0x1282d6);}else{if('attribute'!=_0x4ed3d3['type'])'insertion'!=_0x4ed3d3['type']&&'deletion'!=_0x4ed3d3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x3f576e,_0x4ed3d3,_0x2ec072[_0x241104+0x1]);else{const _0x3eef14=_0x4ed3d3['data']['key'];if(_0x40be93['has'](_0x3eef14))continue;_0x40be93['add'](_0x4ed3d3['data']['key']),_0x3eef14==m?this['_handleRenameSuggestionDescription'](_0x3f576e,_0x4ed3d3):this['_handleAttributeSuggestionDescription'](_0x3f576e,_0x4ed3d3);}}}return this['_resolveDescriptionItems'](_0x3f576e);}['registerDescriptionCallback'](_0x13989d){this['_customCallbacks']['push'](_0x13989d);}['registerElementLabel'](_0x1e360,_0x4ec1e8,_0x3652de=_0x2de423['normal']){'function'==typeof _0x1e360?_0x26875f(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e360,'label':_0x4ec1e8,'priority':_0x3652de}):this['_itemLabels']['set'](_0x1e360,_0x4ec1e8);}['registerAttributeLabel'](_0x48f7ec,_0x48b669){this['_attributeLabels']['set'](_0x48f7ec,_0x48b669);}['getItemLabel'](_0x1281b0,_0x2115e3=0x1){let _0x26db78;for(const _0x583ca2 of this['_itemLabelsCallbacks'])if(_0x583ca2['matchingCallback'](_0x1281b0)){_0x26db78=_0x583ca2['label'];break;}return _0x26db78||(_0x26db78=this['_itemLabels']['get'](_0x1281b0['name'])),_0x26db78?_0x26db78(_0x2115e3):0x1!==_0x2115e3?_0x2115e3+'\x20'+_0x1281b0['name']+'s':''+_0x1281b0['name'];}['_addDescriptionItems'](_0xaf319,_0x526148){const _0x4eb5d9=_0x526148['getFirstRange']()['getWalker'](),_0x256732='insertion'==_0x526148['type']?'add':'remove';for(const _0x4c5671 of _0x4eb5d9){const _0x5bd69e=_0x4c5671['item'],_0x30ab47=_0xaf319[_0xaf319['length']-0x1];if(_0x5bd69e['is']('$textProxy'))_0x30ab47&&_0x30ab47['type']['indexOf']('Container')>-0x1&&_0xaf319['pop'](),_0x30ab47&&'text'==_0x30ab47['type']?_0x30ab47[_0x256732]+=_0x5bd69e['data']:_0xaf319['push']({'type':'text','add':'add'==_0x256732?_0x5bd69e['data']:'','remove':'remove'==_0x256732?_0x5bd69e['data']:''});else{if(this['_schema']['isObject'](_0x5bd69e)){const _0x273977=_0x5bd69e;if(_0x30ab47&&_0x30ab47['type']['indexOf']('Container')>-0x1&&_0xaf319['pop'](),'elementEnd'==_0x4c5671['type'])continue;_0x30ab47&&_0x30ab47['type']==_0x256732+'Object'&&_0x30ab47['element']['name']==_0x273977['name']?_0x30ab47['quantity']++:_0xaf319['push']({'type':_0x256732+'Object','element':_0x273977,'quantity':0x1}),_0x4eb5d9['skip'](_0x5d2769=>!('elementEnd'==_0x5d2769['type']&&_0x5d2769['item']==_0x5bd69e));}else{if(this['_schema']['checkChild'](_0x5bd69e,'$text')||_0x5bd69e['is']('element','softBreak')){const _0x31e0a1=_0x5bd69e;if('add'==_0x256732&&'elementStart'==_0x4c5671['type']||'remove'==_0x256732&&'elementEnd'==_0x4c5671['type'])continue;if(_0x30ab47&&-0x1==_0x30ab47['type']['indexOf']('Container')){'text'==_0x30ab47['type']&&(_0x30ab47[_0x256732]+='\x0a');continue;}let _0x42bdee;if(_0x42bdee='add'==_0x256732?_0x31e0a1['nextSibling']&&!this['_schema']['isObject'](_0x31e0a1['nextSibling'])?_0x31e0a1['nextSibling']:null:_0x31e0a1['previousSibling']&&!this['_schema']['isObject'](_0x31e0a1['previousSibling'])?_0x31e0a1['previousSibling']:null,_0x31e0a1['isEmpty']||_0x42bdee&&_0x42bdee['isEmpty']){const _0x40af94=_0x42bdee&&_0x42bdee['isEmpty']?_0x42bdee:_0x31e0a1;_0x30ab47&&_0x30ab47['type']==_0x256732+'EmptyContainer'&&_0x30ab47['element']['name']==_0x40af94['name']?_0x30ab47['quantity']++:_0xaf319['push']({'type':_0x256732+'EmptyContainer','element':_0x40af94,'quantity':0x1});}else _0xaf319['push']({'type':_0x256732+'Container','element':_0x31e0a1});}}}}}['_resolveDescriptionItems'](_0x371b15){const _0x56a27f=this['_locale'],_0x15016a=[],_0x3f9bbc=[],_0x408dee=[];for(const _0x4908cf of _0x371b15)switch(_0x4908cf['type']){case'text':if(_0x4908cf['add']=_0x4908cf['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x4908cf['remove']=_0x4908cf['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x4908cf['add']&&''!=_0x4908cf['remove']){_0x15016a['push']({'type':'replace','content':o(_0x56a27f,'REPLACE_TEXT',['\x22'+_0x4908cf['remove']+'\x22','\x22'+_0x4908cf['add']+'\x22'])});continue;}if(null!=_0x4908cf['add']['match'](/^ +$/)){_0x15016a['push']({'type':'insertion','content':o(_0x56a27f,'*Insert:*\x20%0',o(_0x56a27f,'ELEMENT_SPACE',_0x4908cf['add']['length']))});continue;}if(null!=_0x4908cf['remove']['match'](/^ +$/)){_0x15016a['push']({'type':'deletion','content':o(_0x56a27f,'*Remove:*\x20%0',o(_0x56a27f,'ELEMENT_SPACE',_0x4908cf['remove']['length']))});continue;}if(''!=_0x4908cf['add']){_0x15016a['push']({'type':'insertion','content':o(_0x56a27f,'*Insert:*\x20%0','\x22'+_0x4908cf['add']+'\x22')});continue;}_0x15016a['push']({'type':'deletion','content':o(_0x56a27f,'*Remove:*\x20%0','\x22'+_0x4908cf['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x15016a['push']({'type':'insertion','content':o(_0x56a27f,'*Insert:*\x20%0',this['getItemLabel'](_0x4908cf['element'],_0x4908cf['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x15016a['push']({'type':'deletion','content':o(_0x56a27f,'*Remove:*\x20%0',this['getItemLabel'](_0x4908cf['element'],_0x4908cf['quantity']))});continue;case'addContainer':_0x15016a['push']({'type':'insertion','content':o(_0x56a27f,'*Split:*\x20%0',this['getItemLabel'](_0x4908cf['element'],_0x4908cf['quantity']))});continue;case'removeContainer':_0x15016a['push']({'type':'deletion','content':o(_0x56a27f,'*Merge:*\x20%0',this['getItemLabel'](_0x4908cf['element'],_0x4908cf['quantity']))});continue;case'addFormat':_0x3f9bbc['push'](_0x4908cf['key']);continue;case'removeFormat':_0x408dee['push'](_0x4908cf['key']);continue;default:_0x15016a['push'](_0x4908cf);}if(_0x3f9bbc['length']){const _0x4360c0=_0x3f9bbc['map'](_0x20e3ed=>this['_attributeLabels']['has'](_0x20e3ed)?this['_attributeLabels']['get'](_0x20e3ed):_0x20e3ed)['join'](',\x20');_0x15016a['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x4360c0)});}if(_0x408dee['length']){const _0x1f927f=_0x408dee['map'](_0x2a46be=>this['_attributeLabels']['has'](_0x2a46be)?this['_attributeLabels']['get'](_0x2a46be):_0x2a46be)['join'](',\x20');_0x15016a['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x1f927f)});}return _0x15016a;}['_handleCustomCallbackDescription'](_0x392b76){for(const _0x56905f of this['_customCallbacks']){const _0x3b97f0=_0x56905f(_0x392b76);if(_0x3b97f0&&'type'in _0x3b97f0)return _0x3b97f0;}}['_handleAttributeSuggestionDescription'](_0x2db21d,_0x18eac0){const _0x3d904f=_0x18eac0['data'],_0x31e75a=void 0x0===_0x3d904f['newValue']?'removeFormat':'addFormat';_0x2db21d['push']({'type':_0x31e75a,'key':_0x3d904f['key']});}['_handleRenameSuggestionDescription'](_0x21e85c,_0x34a594){_0x21e85c['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x34a594['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1d4deb,_0x35a152,_0x3d76ce){if(this['_addDescriptionItems'](_0x1d4deb,_0x35a152),_0x3d76ce&&_0x3d76ce['getFirstRange']()&&!_0x35a152['getFirstRange']()['end']['isEqual'](_0x3d76ce['getFirstRange']()['start'])){const _0x2f8a1a=_0x1d4deb[_0x1d4deb['length']-0x1],_0xdcd98a='insertion'==_0x35a152['type']?'add':'remove';_0x2f8a1a&&'text'==_0x2f8a1a['type']&&(_0x2f8a1a[_0xdcd98a]+='\x0a');}}}class V extends _0x3c69b1{['afterInit'](){const _0xb866c0=this['editor'],_0x284678=_0xb866c0['plugins']['get']('TrackChangesEditing');_0xb866c0['commands']['get']('showAIAssistant')&&_0x284678['enableCommand']('showAIAssistant');}}class U extends _0x3c69b1{['afterInit'](){const _0x4b553e=this['editor'],_0x5d3f07=_0x4b553e['locale'];if(!_0x4b553e['plugins']['has']('AlignmentEditing'))return;const _0x3d823b=_0x4b553e['plugins']['get']('TrackChangesEditing');_0x3d823b['enableDefaultAttributesIntegration']('alignment'),_0x3d823b['registerBlockAttribute']('alignment'),_0x3d823b['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5d3f07,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x399ad1=this['editor'],_0xff643=_0x399ad1['locale'];_0x399ad1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6e0d17=>{if('formatBlock'!=_0x6e0d17['type'])return;const {data:_0x5d8cda}=_0x6e0d17;if(_0x5d8cda&&'alignment'==_0x5d8cda['commandName']){const _0x126d75=_0x5d8cda['commandParams'][0x0]['value'];return{'type':'format','content':o(_0xff643,'*Format:*\x20%0',function(_0x1484f9){switch(_0x1484f9){case'left':return o(_0xff643,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0xff643,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0xff643,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0xff643,'FORMAT_JUSTIFY_TEXT');}}(_0x126d75))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class G extends _0x3c69b1{['afterInit'](){const _0x556cdf=this['editor'],_0x5811cb=_0x556cdf['plugins']['get']('TrackChangesEditing'),_0x2023c5=_0x556cdf['locale'];for(const _0x25a50e of ti){if(!_0x556cdf['plugins']['has'](_0x25a50e))continue;const _0x597614=_0x25a50e['slice'](0x0,-0x7)['toLowerCase'](),_0x33c422='FORMAT_'+_0x597614['toUpperCase']();_0x5811cb['enableDefaultAttributesIntegration'](_0x597614),_0x5811cb['registerInlineAttribute'](_0x597614),_0x5811cb['descriptionFactory']['registerAttributeLabel'](_0x597614,o(_0x2023c5,_0x33c422));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x128ef9=this['editor'],_0x203d79=_0x128ef9['locale'],_0x28b75b=_0x128ef9['plugins']['get']('TrackChangesEditing');function _0x3efb9c(_0x29a470,_0x2e7a93){_0x28b75b['descriptionFactory']['registerDescriptionCallback'](_0x3a7054=>{if('formatInline'!=_0x3a7054['type'])return;const {data:_0x1856b1}=_0x3a7054;return _0x1856b1&&_0x1856b1['commandName']===_0x29a470?_0x1856b1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x203d79,'*Format:*\x20%0',_0x2e7a93)}:{'type':'format','content':o(_0x203d79,'*Remove\x20format:*\x20%0',_0x2e7a93)}:void 0x0;});}_0x3efb9c('bold',o(_0x203d79,'FORMAT_BOLD')),_0x3efb9c('italic',o(_0x203d79,'FORMAT_ITALIC')),_0x3efb9c('underline',o(_0x203d79,'FORMAT_UNDERLINE')),_0x3efb9c('code',o(_0x203d79,'FORMAT_CODE')),_0x3efb9c('strikethrough',o(_0x203d79,'FORMAT_STRIKETHROUGH')),_0x3efb9c('subscript',o(_0x203d79,'FORMAT_SUBSCRIPT')),_0x3efb9c('superscript',o(_0x203d79,'FORMAT_SUPERSCRIPT'));}}class F extends _0x3c69b1{['afterInit'](){const _0x39a952=this['editor'],_0x23262a=_0x39a952['locale'];if(!_0x39a952['plugins']['has']('BlockQuoteEditing'))return;const _0x1e9956=_0x39a952['plugins']['get']('TrackChangesEditing'),_0x531229=this['editor']['commands']['get']('blockQuote');_0x1e9956['enableCommand']('blockQuote',(_0x46837e,_0x22103e={})=>{const _0x342883=this['editor']['model']['document']['selection'],_0x5de0ab=_0x22103e&&void 0x0!==_0x22103e['forceValue']?_0x22103e['forceValue']:!_0x531229['value'];let _0x516ffe=[];if(_0x5de0ab){const _0x2ae129=Array['from'](_0x342883['getSelectedBlocks']())['filter'](_0x3793f0=>oo(_0x3793f0)||function(_0x302af4,_0x31f829){const _0x1bbdc5=_0x31f829['checkChild'](_0x302af4['parent'],'blockQuote'),_0x4449f2=_0x31f829['checkChild'](['$root','blockQuote'],_0x302af4);return _0x1bbdc5&&_0x4449f2;}(_0x3793f0,this['editor']['model']['schema']));_0x516ffe=to(_0x2ae129,_0x39a952['model']);}else{const _0x54fcb7=Array['from'](_0x342883['getSelectedBlocks']())['filter'](_0x4032a2=>oo(_0x4032a2));_0x516ffe=to(_0x54fcb7,_0x39a952['model']);}_0x39a952['model']['change'](()=>{for(const _0x2aed1a of _0x516ffe)_0x1e9956['markBlockFormat'](_0x2aed1a,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x5de0ab}]});});}),_0x1e9956['descriptionFactory']['registerDescriptionCallback'](_0x46607f=>{const {data:_0x15bbe7}=_0x46607f;if(_0x15bbe7&&'blockQuote'==_0x15bbe7['commandName']){const _0x24a1e4=o(_0x23262a,'ELEMENT_BLOCK_QUOTE');return _0x15bbe7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23262a,'*Set\x20format:*\x20%0',_0x24a1e4)}:{'type':'format','content':o(_0x23262a,'*Remove\x20format:*\x20%0',_0x24a1e4)};}});}}function oo(_0xd76c69){return'blockQuote'==_0xd76c69['parent']['name'];}class L extends _0x3c69b1{['afterInit'](){const _0x886a46=this['editor'];_0x886a46['plugins']['has']('CaseChange')&&(_0x886a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x886a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x886a46['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class H extends _0x3c69b1{['afterInit'](){const _0x1c73bb=this['editor'];_0x1c73bb['commands']['get']('ckbox')&&_0x1c73bb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class J extends _0x3c69b1{['afterInit'](){const _0x1d66f4=this['editor'];if(!_0x1d66f4['plugins']['has']('CodeBlock'))return;const _0x5a9678=_0x1d66f4['plugins']['get']('TrackChangesEditing'),_0xa06a1f=_0x1d66f4['locale'],_0x128547=_0x1d66f4['config']['get']('codeBlock')['languages'],_0x2f5e32=_0x1d66f4['commands']['get']('codeBlock');_0x5a9678['enableCommand']('indentCodeBlock'),_0x5a9678['enableCommand']('outdentCodeBlock'),_0x5a9678['enableCommand']('codeBlock',(_0xb14525,_0x8425df={})=>{const _0x20bb4c=_0x1d66f4['model'],_0x592b46=_0x1d66f4['model']['document']['selection'],_0x154b47=_0x8425df&&void 0x0!==_0x8425df['forceValue']?_0x8425df['forceValue']:!_0x2f5e32['value'];let _0x55eaa3;_0x8425df['language']||(_0x8425df['language']=_0x128547[0x0]['language']),_0x55eaa3=_0x154b47?Array['from'](_0x592b46['getSelectedBlocks']())['filter'](_0x440241=>eo(_0x440241)||function(_0x930f46,_0x23102f){if(_0x930f46['is']('rootElement')||_0x23102f['isLimit'](_0x930f46))return!0x1;return _0x23102f['checkChild'](_0x930f46['parent'],'codeBlock');}(_0x440241,_0x20bb4c['schema'])):Array['from'](_0x592b46['getSelectedBlocks']())['filter'](_0x3269fa=>eo(_0x3269fa));const _0x5d9824=to(_0x55eaa3,_0x20bb4c);_0x20bb4c['change'](()=>{for(const _0x7c4395 of _0x5d9824)_0x5a9678['markBlockFormat'](_0x7c4395,{'commandName':'codeBlock','commandParams':[{..._0x8425df,'forceValue':_0x154b47}],'formatGroupId':'blockName'});});}),(_0x5a9678['descriptionFactory']['registerElementLabel']('codeBlock',_0x9fe88=>o(_0xa06a1f,'ELEMENT_CODE_BLOCK',_0x9fe88)),_0x5a9678['descriptionFactory']['registerDescriptionCallback'](_0x4973c8=>{if('formatBlock'!=_0x4973c8['type'])return;const _0x330085=_0xa06a1f['t'],{data:_0x38b045}=_0x4973c8;if(!_0x38b045||'codeBlock'!=_0x38b045['commandName'])return;const _0x5a36a4=_0x38b045['commandParams'][0x0]['language'],_0x93b5a=_0x330085(_0x128547['find'](_0x29674a=>_0x29674a['language']===_0x5a36a4)['label'])['toLowerCase']();return _0x38b045['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xa06a1f,'*Set\x20format:*\x20%0',o(_0xa06a1f,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x93b5a+')')}:{'type':'format','content':o(_0xa06a1f,'*Remove\x20format:*\x20%0',o(_0xa06a1f,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0xf8d78a){return'codeBlock'==_0xf8d78a['name'];}class q extends _0x3c69b1{['afterInit'](){const _0x5af488=this['editor'];if(!_0x5af488['plugins']['has']('CommentsEditing'))return;_0x5af488['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x124f36,_0x23b6db,_0x162bbe){const _0x1a4dd0=[];for(const _0xb92770 of _0x23b6db['getItems']())_0xb92770['hasAttribute'](_0x124f36)&&_0x1a4dd0['push'](_0x162bbe['createRangeOn'](_0xb92770));return _0x1a4dd0;}function _e(_0x3cec58,_0x2cf5b8,{showActiveMarker:_0x187852=!0x0}={}){const _0x169e9a=_0x3cec58['plugins']['get']('TrackChangesEditing');return(_0x258df8,_0x2d9df1,_0x3ad44e)=>{if(!_0x3ad44e['consumable']['test'](_0x2d9df1['markerRange'],_0x258df8['name']))return;const _0xe3dda1=_0x2d9df1['markerRange']['getWalker'](),_0x37b562=_0x2d9df1['markerRange']['start'],_0x4bd37d=_0x3cec58['model']['schema'];let _0x321b99=null,_0x46934b=null,_0x49101f=!0x1,_0x10adc8=!0x1;for(const _0x4431a1 of _0xe3dda1){const _0x55f3ff=_0x4431a1['item'];_0x49101f=_0x49101f||_0x4bd37d['isContent'](_0x55f3ff);const _0x3673b0=_0x3ad44e['mapper']['toViewElement'](_0x55f3ff);if(_0x3673b0&&_0x3673b0['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4431a1['type']&&(_0x4bd37d['isBlock'](_0x55f3ff)&&!_0x4bd37d['isLimit'](_0x55f3ff)&&(_0x55f3ff['nextSibling']||_0x37b562['isAtEnd']?_0x321b99&&_0x321b99['parent']==_0x55f3ff||(_0x321b99=_0x55f3ff,_0x4b7417(_0x4431a1['previousPosition']),_0x10adc8=!0x0):_0x46934b=_0x46934b||_0x4431a1['previousPosition']));}function _0x4b7417(_0x1936f6){const _0x516bc7=_0x3ad44e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2cf5b8}),_0x3a90ea=_0x3ad44e['mapper']['toViewPosition'](_0x1936f6);_0x187852&&_0x169e9a['activeMarkers']['includes'](_0x2d9df1['markerName'])&&_0x3ad44e['writer']['addClass']('ck-suggestion-marker--active',_0x516bc7),_0x3ad44e['writer']['insert'](_0x3a90ea,_0x516bc7),_0x3ad44e['mapper']['bindElementToMarker'](_0x516bc7,_0x2d9df1['markerName']);}_0x49101f||_0x10adc8||!_0x46934b||_0x4b7417(_0x46934b);};}class z extends _0x3c69b1{static get['requires'](){return[_0x37faf8];}['init'](){const _0x806a07=this['editor'],_0xa4cde8=_0x806a07['plugins']['get']('TrackChangesEditing');_0xa4cde8['enableCommand']('delete');const _0x344112=_0x806a07['commands']['get']('deleteForward');_0xa4cde8['enableCommand']('deleteForward',(_0x2951e6,_0x1abd66={})=>{const _0x4c70e9=_0x806a07['model']['createSelection'](_0x806a07['model']['document']['selection']);_0x4c70e9['isCollapsed']&&_0x806a07['model']['modifySelection'](_0x4c70e9,{'direction':'forward','unit':_0x1abd66['unit']});const _0x44bb1f=_0x4c70e9['getFirstRange'](),_0x21caf2=_0x22b4f7['fromRange'](_0x44bb1f);let _0x54d49b;_0x2951e6(_0x1abd66),_0x54d49b='$graveyard'==_0x21caf2['root']['rootName']?_0x806a07['model']['createRange'](_0x44bb1f['start']):_0x806a07['model']['createRange'](_0x21caf2['start'],_0x21caf2['end']),_0x21caf2['detach'](),_0x806a07['model']['enqueueChange'](_0x344112['buffer']['batch'],_0x22c12c=>{_0x344112['buffer']['lock'](),_0x22c12c['setSelection'](_0x22c12c['createRange'](_0x54d49b['end'])),_0x344112['buffer']['unlock']();});}),_0x806a07['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x806a07,'merge'),{'priority':'high'}),_0x806a07['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x235865,_0x5c0f17,_0x5724aa)=>{_0x5724aa['options']['showSuggestionHighlights']&&_e(_0x806a07,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x235865,_0x5c0f17,_0x5724aa);},{'priority':'high'}),_0x806a07['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x18cb06,_0x19db16,_0x1eb6a9)=>{const _0x3efdb6=_0x1eb6a9['mapper']['markerNameToElements'](_0x19db16['markerName']);if(_0x3efdb6){for(const _0x52ed69 of _0x3efdb6)_0x52ed69['is']('uiElement')&&(_0x1eb6a9['mapper']['unbindElementFromMarkerName'](_0x52ed69,_0x19db16['markerName']),_0x1eb6a9['writer']['remove'](_0x52ed69));}},{'priority':'high'});}}class K extends _0x3c69b1{['afterInit'](){const _0x2bfebd=this['editor'];if(!_0x2bfebd['plugins']['has']('ListEditing'))return;const _0x35f909=_0x2bfebd['locale'],_0x3c8abe=_0x2bfebd['plugins']['get']('TrackChangesEditing'),_0x64dcab=_0x2bfebd['plugins']['has']('TodoListEditing'),_0x3455b6=!!_0x2bfebd['config']['get']('list.multiBlock');function _0x4e4164(_0x4bc281){return{'type':'format','content':''+o(_0x35f909,'*Set\x20format:*\x20%0',_0x4bc281)};}function _0x4052f6(_0x2973ff){return{'type':'format','content':''+o(_0x35f909,'*Remove\x20format:*\x20%0',_0x2973ff)};}_0x3c8abe['enableDefaultAttributesIntegration']('numberedList'),_0x3c8abe['enableDefaultAttributesIntegration']('bulletedList'),_0x3c8abe['enableDefaultAttributesIntegration']('customNumberedList'),_0x3c8abe['enableDefaultAttributesIntegration']('customBulletedList'),_0x3c8abe['enableDefaultAttributesIntegration']('indentList'),_0x3c8abe['enableDefaultAttributesIntegration']('outdentList'),_0x3c8abe['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x3c8abe['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x3c8abe['registerBlockAttribute']('listItemId'),_0x3c8abe['registerBlockAttribute']('listType'),_0x3c8abe['registerBlockAttribute']('listIndent'),_0x3455b6&&(_0x3c8abe['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x3c8abe['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x64dcab&&(_0x3c8abe['enableDefaultAttributesIntegration']('todoList'),_0x3c8abe['enableDefaultAttributesIntegration']('checkTodoList'),_0x3c8abe['registerBlockAttribute']('todoListChecked'),_0x3c8abe['descriptionFactory']['registerDescriptionCallback'](_0x161bd8=>{const {data:_0x4b8027}=_0x161bd8;if(_0x4b8027&&'todoListChecked'==_0x4b8027['key'])return{'type':'format','content':_0x4b8027['newValue']?o(_0x35f909,'*Check\x20item*'):o(_0x35f909,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x155547=>{if(_0x155547['batch']['isUndo'])return!0x1;let _0x51f552=!0x1;const _0x4b8622=_0x3c8abe['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x56078e=>'todoListChecked'===_0x3c8abe['_getAttributeKey'](_0x56078e));for(const _0x40fc4f of _0x4b8622){'todo'!=_0x40fc4f['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x3c8abe['_findSuggestions'](_0x40fc4f['getFirstRange'](),'attribute')['find'](_0x2c0be7=>'listType'===_0x3c8abe['_getAttributeKey'](_0x2c0be7['suggestion']))||(_0x155547['removeMarker'](_0x40fc4f['getFirstMarker']()),_0x51f552=!0x0));}return _0x51f552;})),_0x3c8abe['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x35f909,'FORMAT_INDENT'));const _0x28774e={'type':'format','content':''};_0x3c8abe['descriptionFactory']['registerDescriptionCallback'](_0x1670b=>{const {data:_0x50bc35}=_0x1670b;if(!_0x50bc35||'listType'!=_0x50bc35['key'])return;let _0x4f1a3c=_0x1670b['head'];for(;_0x4f1a3c;){if(_0x4f1a3c['data']&&(('listStyle'==_0x4f1a3c['data']['key']||'listMarkerStyle'==_0x4f1a3c['data']['key'])&&(_0x4f1a3c['data']['newValue']&&'default'!=_0x4f1a3c['data']['newValue']||'default'!=_0x4f1a3c['data']['oldValue']&&!_0x50bc35['newValue'])||!_0x3455b6&&_0x4f1a3c['data']['key']==m))return _0x28774e;_0x4f1a3c=_0x4f1a3c['next'];}if(null==_0x50bc35['newValue'])switch(_0x50bc35['oldValue']){case'bulleted':return _0x4052f6(o(_0x35f909,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4052f6(o(_0x35f909,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4052f6(o(_0x35f909,'ELEMENT_TODO_LIST'));}switch(_0x50bc35['newValue']){case'bulleted':return _0x4e4164(o(_0x35f909,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x4e4164(o(_0x35f909,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x4e4164(o(_0x35f909,'ELEMENT_TODO_LIST'));}}),_0x3c8abe['descriptionFactory']['registerDescriptionCallback'](_0x5c8659=>{const {data:_0x3a21e9}=_0x5c8659;if(_0x3a21e9&&'listIndent'==_0x3a21e9['key'])return null==_0x3a21e9['newValue']||null==_0x3a21e9['oldValue']&&0x0==_0x3a21e9['newValue']?_0x28774e:void 0x0;}),_0x3c8abe['descriptionFactory']['registerDescriptionCallback'](_0x4dc1af=>{if('attribute'!=_0x4dc1af['type'])return;const {data:_0x13bd9e}=_0x4dc1af;if(!_0x13bd9e||'listItemId'!=_0x13bd9e['key'])return;const _0x59f531=le(_0x4dc1af);return'newValue'==_0x59f531?{'type':'format','content':o(_0x35f909,'*Merge:*\x20list\x20item')}:'oldValue'==_0x59f531?{'type':'format','content':o(_0x35f909,'*Split:*\x20list\x20item')}:_0x28774e;}),_0x2bfebd['model']['document']['registerPostFixer'](_0x2d483f=>this['listItemIdFixer'](_0x2d483f)),_0x2bfebd['model']['document']['registerPostFixer'](_0x25f995=>this['noTrackChangesFixer'](_0x25f995)),_0x2bfebd['model']['document']['on']('change:data',(_0x2c8fb1,_0x4d8973)=>{if(_0x4d8973['isUndo']||!_0x4d8973['isLocal'])return!0x1;this['assureChains']();},{'priority':'high'}),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x19b947){if(_0x19b947['batch']['isUndo']||!_0x19b947['batch']['isLocal'])return!0x1;let _0x310752=!0x1;const _0x52a810=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2609b6=>_0x2609b6['data']&&'listItemId'==_0x2609b6['data']['key'])['filter'](_0x54d81f=>_0x54d81f['data']['newValue']&&_0x54d81f['data']['oldValue']);for(const _0x36f681 of _0x52a810)le(_0x36f681)||(_0x19b947['removeMarker'](_0x36f681['getFirstMarker']()),_0x310752=!0x0);return _0x310752;}['noTrackChangesFixer'](_0x46d773){if(_0x46d773['batch']['isUndo']||!_0x46d773['batch']['isLocal'])return!0x1;const _0x2b7056=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x2b7056['trackChangesCommand']['value'])return!0x1;let _0x47f399=!0x1;const _0x5a63f9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0xa2a126=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x2c5f47=>'attribute'==_0x2c5f47['type'])['filter'](_0x420786=>_0x5a63f9['includes'](_0x420786['attributeKey']));if(0x0==_0xa2a126['length'])return _0x47f399;for(const _0x432480 of _0xa2a126){const _0x58f3d9=_0x2b7056['_findSuggestions'](_0x432480['range'],'attribute')['filter'](_0x8bf406=>!_0x8bf406['meta']['isNextTo'])['map'](_0x3c1117=>_0x3c1117['suggestion'])['filter'](_0x109bea=>{const _0x35415b=_0x2b7056['_getAttributeKey'](_0x109bea);return _0x5a63f9['includes'](_0x35415b);});if(_0x58f3d9['length']){for(const _0xcbc5de of _0x58f3d9)_0x46d773['removeMarker'](_0xcbc5de['getFirstMarker']());_0x47f399=!0x0;}}return _0x47f399;}['assureChains'](){const _0x206162=this['editor']['plugins']['get']('TrackChangesEditing'),_0xfc2c65=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];let _0x424aa3;const _0x4a2b9f=new Set(this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x157313=>{if(_0x157313['data']['oldRange']||!_0x157313['data']['newRange'])return null;if(!_0x157313['name']['startsWith']('suggestion:attribute:'))return null;const {id:_0x24cc57}=_0x206162['_splitMarkerName'](_0x157313['name']);if(!_0x206162['hasSuggestion'](_0x24cc57))return null;const _0x2884f0=_0x206162['getSuggestion'](_0x24cc57);return _0xfc2c65['includes'](_0x2884f0['data']['key']);})['map'](_0x3a350d=>{const {id:_0x56e738}=_0x206162['_splitMarkerName'](_0x3a350d['name']),_0x2799a9=_0x206162['getSuggestion'](_0x56e738);return _0x424aa3=_0x2799a9['attributes']['groupId'],_0x2799a9['getFirstRange']()['start']['nodeAfter'];}));if(0x0==_0x4a2b9f['size'])return;const _0x26f301=_0x206162['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x38fd60=>'attribute'==_0x38fd60['type']&&_0x38fd60['data']&&_0xfc2c65['includes'](_0x38fd60['data']['key'])&&_0x38fd60['attributes']['groupId']!=_0x424aa3)['map'](_0xf690cb=>({'listItem':_0xf690cb['getFirstRange']()['start']['nodeAfter'],'groupId':_0xf690cb['attributes']['groupId']})),_0x35df23=new Set();for(const {groupId:_0x1faaa4,listItem:_0x48c73e}of _0x26f301)_0x4a2b9f['has'](_0x48c73e)&&_0x35df23['add'](_0x1faaa4);for(const _0x45aab9 of _0x206162['getSuggestions']())_0x35df23['has'](_0x45aab9['attributes']['groupId'])&&_0x45aab9['setAttribute']('groupId',_0x424aa3);}['_supportLegacySuggestions'](){const _0x4361ea=this['editor'],_0x5ae1fb=_0x4361ea['locale'],_0xdc038f=_0x4361ea['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0xdc038f['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x562d9d,_0x2bef21){const _0x4cb672=[];for(let _0x4725c3 of _0x562d9d)_0x4725c3['start']['nodeAfter']===_0x4725c3['end']['parent']&&(_0x4725c3=_0x4361ea['model']['createRange'](_0x4361ea['model']['createPositionAt'](_0x4725c3['start']['nodeAfter'],0x0))),_0x4cb672['push'](_0x4725c3);_0x4361ea['model']['change'](_0xb3065=>{const _0x4b1bd4=_0x4361ea['model']['document']['selection'],_0x2d7bf2=Array['from'](_0x4b1bd4['getRanges']())['map'](_0x59a912=>_0x22b4f7['fromRange'](_0x59a912));_0xb3065['setSelection'](_0x4cb672),_0x4361ea['commands']['get'](_0x2bef21['commandName'])['refresh'](),_0x2bef21['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x4361ea['execute'](_0x2bef21['commandName'],..._0x2bef21['commandParams']),_0xb3065['setSelection'](_0x2d7bf2);for(const _0xcc4e92 of _0x2d7bf2)_0xcc4e92['detach']();});}),_0xdc038f['descriptionFactory']['registerElementLabel'](function(_0x943af7){const _0x579145=!_0x4361ea['model']['schema']['isObject'](_0x943af7),_0x5ed76d=_0x943af7['previousSibling'],_0xb8614b=_0x943af7['nextSibling'],_0x58ba5a=_0x943af7['getAttribute']('listItemId'),_0x107703=!_0x5ed76d||_0x5ed76d['getAttribute']('listItemId')!==_0x58ba5a,_0x4329f0=!_0xb8614b||_0xb8614b['getAttribute']('listItemId')!==_0x58ba5a;return _0x579145&&Boolean(_0x58ba5a)&&_0x107703&&_0x4329f0;},_0x230941=>o(_0x5ae1fb,'ELEMENT_LIST_ITEM',_0x230941));}['_registerLegacyDescription'](){const _0x5467b5=this['editor'],_0x5b8ffe=_0x5467b5['locale'];function _0x5885df(_0x4c0342){const _0x561130=_0x5467b5['commands']['get']('bulletedList')['value'],_0x3bfff0=_0x5467b5['commands']['get']('numberedList')['value'];return'numberedList'===_0x4c0342?_0x561130:_0x3bfff0;}_0x5467b5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x9dcd60){if('formatBlock'!=_0x9dcd60['type'])return;const {data:_0x8ff2a7}=_0x9dcd60;if(!_0x8ff2a7)return;let _0x22c5ce,_0x3a4e1f,_0x39f60e,_0xb6dd52;switch(_0x8ff2a7['commandName']){case'bulletedList':_0x39f60e=_0x8ff2a7['commandParams'][0x0]['forceValue'],_0xb6dd52=_0x5885df(_0x8ff2a7['commandName']),_0x22c5ce=_0x39f60e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb6dd52&&_0x5467b5['config']['get']('list.multiBlock')||(_0x22c5ce='*Change\x20to:*\x20%0'),_0x3a4e1f={'type':'format','content':o(_0x5b8ffe,_0x22c5ce,o(_0x5b8ffe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x39f60e=_0x8ff2a7['commandParams'][0x0]['forceValue'],_0xb6dd52=_0x5885df(_0x8ff2a7['commandName']),_0x22c5ce=_0x39f60e?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0xb6dd52&&_0x5467b5['config']['get']('list.multiBlock')||(_0x22c5ce='*Change\x20to:*\x20%0'),_0x3a4e1f={'type':'format','content':o(_0x5b8ffe,_0x22c5ce,o(_0x5b8ffe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x22c5ce='*Indent:*\x20%0',_0x3a4e1f={'type':'format','content':o(_0x5b8ffe,_0x22c5ce,o(_0x5b8ffe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x22c5ce=function(_0xacbaa0){const _0x464f47=_0xacbaa0['getFirstRange']();let _0xf9852b=_0x464f47['start']['nodeAfter'];for(;_0xf9852b&&_0x464f47['containsItem'](_0xf9852b);){if(_0xf9852b['getAttribute']('listIndent')>0x0)return!0x1;_0xf9852b=_0xf9852b['nextSibling'];}return!0x0;}(_0x9dcd60)?o(_0x5b8ffe,'*Format:*\x20remove\x20from\x20%0',o(_0x5b8ffe,function(_0x133c20){return'ELEMENT_'+_0x133c20['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x9dcd60))):o(_0x5b8ffe,'*Outdent:*\x20%0',o(_0x5b8ffe,'ELEMENT_LIST_ITEM')),_0x3a4e1f={'type':'format','content':_0x22c5ce};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x8ff2a7['multipleBlocks']&&(_0x22c5ce='*Merge:*\x20%0',_0x3a4e1f={'type':'deletion','content':o(_0x5b8ffe,_0x22c5ce,o(_0x5b8ffe,'ELEMENT_LIST_ITEM'))});}return _0x3a4e1f;});}}function le(_0x3946d5){let _0x49f656=_0x3946d5['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x49f656;){const _0x3c25f2=_0x49f656['getAttribute']('listItemId');if(!_0x3c25f2)return!0x1;if(_0x3c25f2==_0x3946d5['data']['newValue'])return'newValue';if(_0x3c25f2==_0x3946d5['data']['oldValue'])return'oldValue';_0x49f656=_0x49f656['previousSibling'];}return!0x1;}class pe extends _0x3c69b1{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1b2945=this['editor']['config']['get']('list.properties'),_0x6e4803=this['editor']['plugins']['get']('TrackChangesEditing');_0x1b2945['styles']&&(_0x6e4803['enableDefaultAttributesIntegration']('listStyle'),_0x6e4803['registerBlockAttribute']('listStyle')),_0x1b2945['reversed']&&(_0x6e4803['enableDefaultAttributesIntegration']('listReversed'),_0x6e4803['registerBlockAttribute']('listReversed')),_0x1b2945['startIndex']&&(_0x6e4803['enableDefaultAttributesIntegration']('listStart'),_0x6e4803['registerBlockAttribute']('listStart'));const _0x45ca04={'type':'format','content':''};_0x6e4803['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x3984fd=this['editor']['locale'];_0x6e4803['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x3984fd,'FORMAT_LIST_REVERSED')),_0x6e4803['descriptionFactory']['registerDescriptionCallback'](_0x54b3a9=>{const {data:_0x4c143d}=_0x54b3a9;if(_0x4c143d&&'listReversed'==_0x4c143d['key'])return null==_0x4c143d['newValue']||0x0==_0x4c143d['newValue']&&null==_0x4c143d['oldValue']?_0x45ca04:void 0x0;}),_0x6e4803['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x3984fd,'FORMAT_LIST_START')),_0x6e4803['descriptionFactory']['registerDescriptionCallback'](_0x588ee6=>{const {data:_0x3314b2}=_0x588ee6;if(_0x3314b2&&'listStart'==_0x3314b2['key'])return null==_0x3314b2['newValue']||0x1==_0x3314b2['newValue']&&null==_0x3314b2['oldValue']?_0x45ca04:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x3fb857=>{if(_0x3fb857['batch']['isUndo'])return!0x1;let _0x32a767=!0x1;const _0x885f39=_0x6e4803['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x14d5a5=>{const _0x2a1bf8=_0x6e4803['_getAttributeKey'](_0x14d5a5);return'listStart'==_0x2a1bf8||'listReversed'==_0x2a1bf8;});for(const _0x561297 of _0x885f39){const _0x5268b2=_0x561297['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5268b2||'customNumbered'==_0x5268b2)continue;_0x6e4803['_findSuggestions'](_0x561297['getFirstRange'](),'attribute')['find'](_0x1fac02=>'listType'==_0x6e4803['_getAttributeKey'](_0x1fac02['suggestion']))||(_0x3fb857['removeMarker'](_0x561297['getFirstMarker']()),_0x32a767=!0x0);}return _0x32a767;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x3b9c66){const _0x487e4b=this['editor']['locale'],{data:_0x4cb75e}=_0x3b9c66,_0x27a21d={'type':'format','content':''};if(!_0x4cb75e||'listStyle'!=_0x4cb75e['key'])return;if(!_0x4cb75e['oldValue'])return'default'==_0x4cb75e['newValue']?_0x27a21d:{'type':'format','content':''+o(_0x487e4b,'*Set\x20format:*\x20%0',o(_0x487e4b,this['_getTranslationKeyForListStyle'](_0x4cb75e['newValue'])))};if(!_0x4cb75e['newValue']){if('default'==_0x4cb75e['oldValue'])return _0x27a21d;let _0x3b6ff6=_0x3b9c66['head'];for(;_0x3b6ff6;){if(_0x3b6ff6['data']&&'listType'==_0x3b6ff6['data']['key']&&_0x3b6ff6['data']['newValue'])return _0x27a21d;_0x3b6ff6=_0x3b6ff6['next'];}return{'type':'format','content':''+o(_0x487e4b,'*Remove\x20format:*\x20%0',o(_0x487e4b,this['_getTranslationKeyForListStyle'](_0x4cb75e['oldValue'])))};}if('default'!=_0x4cb75e['newValue'])return{'type':'format','content':''+o(_0x487e4b,'*Set\x20format:*\x20%0',o(_0x487e4b,this['_getTranslationKeyForListStyle'](_0x4cb75e['newValue'])))};let _0x3561f5=_0x3b9c66['head'];for(;_0x3561f5;){if(_0x3561f5['data']&&'listType'==_0x3561f5['data']['key']&&_0x3561f5['data']['newValue']&&_0x3561f5['data']['oldValue'])return _0x27a21d;_0x3561f5=_0x3561f5['next'];}return{'type':'format','content':o(_0x487e4b,'*Set\x20format:*\x20%0',o(_0x487e4b,'ELEMENT_'+_0x3b9c66['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0xcb24af=this['editor'],_0x51290d=_0xcb24af['locale'];_0xcb24af['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a3800=>{if('formatBlock'!=_0x4a3800['type'])return;const {data:_0x1555ec}=_0x4a3800;if(!_0x1555ec)return;let _0x4021d4,_0xc457e2;switch(_0x1555ec['commandName']){case'listStyle':_0x4021d4='*Change\x20to:*\x20%0',_0xc457e2={'type':'format','content':o(_0x51290d,_0x4021d4,o(_0x51290d,this['_getTranslationKeyForListStyle'](_0x1555ec['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4021d4=_0x1555ec['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xc457e2={'type':'format','content':o(_0x51290d,_0x4021d4)};break;case'listStart':_0x4021d4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xc457e2={'type':'format','content':o(_0x51290d,_0x4021d4,_0x1555ec['commandParams'][0x0]['startIndex'])};}return _0xc457e2;});}['_getTranslationKeyForListStyle'](_0x349284){return'ELEMENT_'+function(_0x2abb0f){if(ye['includes'](_0x2abb0f))return'bulleted';if(Se['includes'](_0x2abb0f))return'numbered';return null;}(_0x349284)['toUpperCase']()+'_LIST_'+_0x349284['toUpperCase']()['replace'](/-/g,'_');}}const ye=['disc','circle','square'],Se=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class Q extends _0x3c69b1{static get['requires'](){return[_0x35024f];}['init'](){const _0x388574=this['editor'],_0x42a273=_0x388574['plugins']['get']('TrackChangesEditing'),_0x5bd3c4=_0x388574['commands']['get']('enter');_0x42a273['enableCommand']('enter',()=>{_0x388574['model']['change'](_0xbdb3d5=>{const _0x4924c8=_0x388574['model']['document']['selection'],_0x2ef89c=_0x4924c8['getFirstPosition'](),_0x11fa3c=_0x22b4f7['fromRange'](_0x4924c8['getFirstRange']());if(_0x5bd3c4['enterBlock'](_0xbdb3d5)){const _0x8c5ea9=_0x388574['model']['createPositionAt'](_0x2ef89c['parent']['nextSibling'],0x0),_0x5d76a6=_0xbdb3d5['createRange'](_0x2ef89c,_0x8c5ea9);_0x42a273['markInsertion'](_0x5d76a6);}else _0xbdb3d5['setSelection'](_0xbdb3d5['createRange'](_0x11fa3c['end']));_0x11fa3c['detach'](),_0x5bd3c4['fire']('afterExecute',{'writer':_0xbdb3d5});});}),_0x388574['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x388574,'split'),{'priority':'high'}),_0x388574['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x501ef9,_0x5dc318,_0x31052a)=>{const _0x219782=_0x31052a['mapper']['markerNameToElements'](_0x5dc318['markerName']);if(_0x219782){for(const _0x3e8062 of _0x219782)_0x3e8062['hasClass']('ck-suggestion-marker-split')&&(_0x31052a['mapper']['unbindElementFromMarkerName'](_0x3e8062,_0x5dc318['markerName']),_0x31052a['writer']['remove'](_0x3e8062));}},{'priority':'high'}),_0x388574['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x651f70,_0x294213,_0x203ca8)=>{_0x203ca8['options']['showSuggestionHighlights']&&_e(_0x388574,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x651f70,_0x294213,_0x203ca8);},{'priority':'high'});}}class X extends _0x3c69b1{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x558a72=this['editor']['plugins']['get']('TrackChangesEditing');_0x558a72['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x558a72['enableCommand']('findNext'),_0x558a72['enableCommand']('findPrevious'),_0x558a72['enableCommand']('replace'),_0x558a72['enableCommand']('replaceAll');}['handleFindCommand'](_0x3826ab,_0x4bd583,_0x23e36e={}){const _0x1b1b04=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x3826ab(_0x5ca1b9=>{let _0x225bd0=('string'==typeof _0x4bd583?_0x1b1b04['findByTextCallback'](_0x4bd583,_0x23e36e):_0x4bd583)(_0x5ca1b9);Array['isArray'](_0x225bd0)&&(_0x225bd0={'results':_0x225bd0,'searchText':'string'==typeof _0x4bd583?_0x4bd583:''});const _0x29047c=_0x225bd0['results']['filter'](_0x86e235=>!0x1===this['_isInDeletionRange'](_0x86e235,_0x5ca1b9['item']));return{..._0x225bd0,'results':_0x29047c};},_0x23e36e);}['_isInDeletionRange'](_0x56b832,_0x11af2a){const _0x55391=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x11af2a,_0x56b832['start']),this['editor']['model']['createPositionAt'](_0x11af2a,_0x56b832['end']));for(const _0x1f9612 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55391['getIntersection'](_0x1f9612['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 _0x3c69b1{['afterInit'](){const _0x408591=this['editor']['locale'],_0x4024ff=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x107dda,commandName:_0x3833f8}of ro)this['editor']['plugins']['has'](_0x107dda)&&(_0x4024ff['enableDefaultAttributesIntegration'](_0x3833f8),_0x4024ff['registerInlineAttribute'](_0x3833f8));_0x4024ff['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x408591,'FORMAT_FONT_SIZE')),_0x4024ff['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x408591,'FORMAT_FONT_FAMILY')),_0x4024ff['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x408591,'FORMAT_FONT_COLOR')),_0x4024ff['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x408591,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f3de0=this['editor'],_0x2beb98=_0x1f3de0['locale'];_0x1f3de0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x81a236=>{const _0x2d0de6=_0x2beb98['t'];if('formatInline'!=_0x81a236['type'])return;const {data:_0x2007db}=_0x81a236;if(null!=_0x2007db){if('fontSize'==_0x2007db['commandName']){const _0x1a0ab7=_0x2007db['commandParams'][0x0]['value'];if(_0x1a0ab7){const _0x5e2236=_0x2d0de6(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x20f7dc=>_0x20f7dc['model']==_0x1a0ab7)['title'])['toLowerCase']();return{'type':'format','content':o(_0x2beb98,'*Set\x20font\x20size:*\x20%0',_0x5e2236)};}return{'type':'format','content':o(_0x2beb98,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x2007db['commandName']){const _0x1780e0=_0x2007db['commandParams'][0x0]['value'];return _0x1780e0?{'type':'format','content':o(_0x2beb98,'*Set\x20font\x20family:*\x20%0',_0x1780e0)}:{'type':'format','content':o(_0x2beb98,'*Reset\x20font\x20family*')};}if('fontColor'==_0x2007db['commandName']){const _0x4cb80d=_0x2007db['commandParams'][0x0]['value'];if(_0x4cb80d){const _0x438b2c=_0x3c9ad5(this['editor']['config']['get']('fontColor.colors'))['find'](_0x5070a5=>_0x5070a5['model']==_0x4cb80d);let _0x1f2561=_0x4cb80d,_0x1ada6b='';return _0x438b2c&&(_0x1f2561=_0x438b2c['label'],_0x1ada6b=_0x2d0de6(_0x1f2561)['toLowerCase']()),{'type':'format','content':o(_0x2beb98,'*Set\x20font\x20color:*\x20%0',_0x1ada6b)['trim'](),'color':{'value':_0x4cb80d,'title':_0x1ada6b||_0x1f2561}};}return{'type':'format','content':o(_0x2beb98,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x2007db['commandName']){const _0x4d5bf5=_0x2007db['commandParams'][0x0]['value'];if(_0x4d5bf5){const _0x5933b7=_0x3c9ad5(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x2240f9=>_0x2240f9['model']==_0x4d5bf5);let _0x5d4168=_0x4d5bf5,_0x273fef='';return _0x5933b7&&(_0x5d4168=_0x5933b7['label'],_0x273fef=_0x2d0de6(_0x5d4168)['toLowerCase']()),{'type':'format','content':o(_0x2beb98,'*Set\x20font\x20background\x20color:*\x20%0',_0x273fef)['trim'](),'color':{'value':_0x4d5bf5,'title':_0x273fef||_0x5d4168}};}return{'type':'format','content':o(_0x2beb98,'*Reset\x20font\x20background\x20color*')};}}});}}class Z extends _0x3c69b1{['afterInit'](){const _0x925213=this['editor'],_0x4b6415=_0x925213['plugins']['get']('TrackChangesEditing'),_0x301de4=_0x925213['commands']['get']('copyFormat'),_0x36cbe3=_0x925213['commands']['get']('pasteFormat');_0x301de4&&_0x36cbe3&&(_0x4b6415['enableDefaultAttributesIntegration']('pasteFormat'),_0x4b6415['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x123eed=this['editor'],_0x39cffd=_0x123eed['locale'];_0x123eed['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x565539=>{if('formatBlock'!=_0x565539['type']&&'formatInline'!=_0x565539['type'])return;const {data:_0x23233d}=_0x565539;if(_0x23233d&&'pasteFormat'===_0x23233d['commandName']){const _0x5c27ea=[],_0xe9cfe5=_0x23233d['commandParams'][0x0];for(const [_0x2e0e32,_0x417dc7]of Object['entries'](_0xe9cfe5))_0x5c27ea['push'](so(_0x123eed,_0x2e0e32,_0x417dc7));return _0x5c27ea['length']?{'type':'format','content':o(_0x39cffd,'*Set\x20format\x20to:*\x20%0',_0x5c27ea['join'](',\x20'))}:{'type':'format','content':o(_0x39cffd,'*Remove\x20all\x20formatting*')};}});}}function so(_0x15c43c,_0x4d719c,_0x2df52f){const _0x11715b=_0x15c43c['locale']['t'],_0x24bb3b=_0x4d719c['split'](/(?=[A-Z])/)['join']('\x20'),_0xedbb63=_0x11715b(_0x24bb3b['charAt'](0x0)['toUpperCase']()+_0x24bb3b['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2df52f)return _0xedbb63;if('fontColor'===_0x4d719c||'fontBackgroundColor'===_0x4d719c){const _0x4879cb=_0x3c9ad5(_0x15c43c['config']['get']('fontColor.colors'))['find'](_0x326d1a=>_0x326d1a['model']==_0x2df52f);return _0xedbb63+'\x20('+(_0x4879cb?_0x11715b(_0x4879cb['label'])['toLowerCase']():_0x2df52f)+')';}if('fontSize'===_0x4d719c&&isNaN(parseFloat(_0x2df52f))){const _0x3803f5=_0x15c43c['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x15c43c['config']['get']('fontSize.options'))['find'](_0x32d9fd=>_0x32d9fd['model']==_0x2df52f);return _0xedbb63+'\x20('+(_0x3803f5?_0x11715b(_0x3803f5['title'])['toLowerCase']():_0x2df52f)+')';}return _0xedbb63+'\x20('+_0x2df52f+')';}class tt extends _0x3c69b1{['_headingOptions'];['afterInit'](){const _0x37262d=this['editor'];if(!_0x37262d['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x37262d['config']['get']('heading.options');const _0x1ef0ce=_0x37262d['locale'],_0x1d04dc=_0x37262d['plugins']['get']('TrackChangesEditing');_0x1d04dc['enableDefaultAttributesIntegration']('heading');for(const _0x236c0e of this['_headingOptions'])'paragraph'!=_0x236c0e['model']&&_0x1d04dc['descriptionFactory']['registerElementLabel'](_0x236c0e['model'],_0x411ec=>{const _0x14186d=this['_getHeadingLevel'](_0x236c0e['model']);return null!==_0x14186d?_0x20a583(_0x411ec,_0x14186d):_0x4a9af7(_0x411ec,_0x236c0e['title']);});function _0x20a583(_0x167133,_0x9090ed){return o(_0x1ef0ce,'ELEMENT_HEADING',[_0x167133,_0x9090ed]);}function _0x4a9af7(_0x632801,_0x2c3d33){return o(_0x1ef0ce,'ELEMENT_HEADING_CUSTOM',[_0x632801,_0x2c3d33]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x247c21=this['editor'],_0x1afba8=_0x247c21['locale'];function _0x58e494(_0x4d5e1f,_0x30feb5){return o(_0x1afba8,'ELEMENT_HEADING_CUSTOM',[_0x4d5e1f,_0x30feb5]);}_0x247c21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x855ecd=>{if('formatBlock'!=_0x855ecd['type'])return;const {data:_0xe3613b}=_0x855ecd;if(_0xe3613b&&'heading'==_0xe3613b['commandName']){const _0x31d541=_0xe3613b['commandParams'][0x0]['value'],_0x2df462=this['_getHeadingLevel'](_0x31d541);if(null!==_0x2df462)return{'type':'format','content':o(_0x1afba8,'*Change\x20to:*\x20%0',(_0x45754a=0x1,_0x2cd8d4=_0x2df462,o(_0x1afba8,'ELEMENT_HEADING',[_0x45754a,_0x2cd8d4])))};const _0x50e741=this['_headingOptions']['find'](_0x4fb23a=>_0x4fb23a['model']===_0x31d541)['title'];return{'type':'format','content':o(_0x1afba8,'*Change\x20to:*\x20%0',_0x58e494(0x1,_0x50e741))};}var _0x45754a,_0x2cd8d4;});}['_getHeadingLevel'](_0x43be14){const _0x40df33=_0x43be14['match'](/^heading(\d+)/);if(_0x40df33)return _0x40df33[0x1];const _0x129cf7=this['_headingOptions']?.['find'](_0x1090cb=>_0x1090cb['model']==_0x43be14);if(_0x129cf7&&_0x129cf7['view']){const _0x1ce777=_0x129cf7['view'],_0x8de317=(_0x1ce777['name']??_0x1ce777)['match'](/^h(\d+)/);if(_0x8de317)return _0x8de317[0x1];}return null;}}class et extends _0x3c69b1{['afterInit'](){const _0x1f19b3=this['editor'];if(!_0x1f19b3['plugins']['has']('HighlightEditing'))return;const _0x119fdd=_0x1f19b3['plugins']['get']('TrackChangesEditing'),_0x317514=_0x1f19b3['locale'];_0x119fdd['enableDefaultAttributesIntegration']('highlight'),_0x119fdd['registerInlineAttribute']('highlight'),_0x119fdd['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x317514,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x245b21=this['editor'],_0xf44586=_0x245b21['locale'];_0x245b21['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x2202ec=>{if('formatInline'!=_0x2202ec['type'])return;const {data:_0x40c01c}=_0x2202ec;if(_0x40c01c&&'highlight'==_0x40c01c['commandName']){const _0x593bd7=_0xf44586['t'],_0x5aa8a3=_0x40c01c['commandParams'][0x0]['value'];if(_0x5aa8a3){const _0x2f76fe=_0x245b21['config']['get']('highlight.options')['find'](_0x396e84=>_0x396e84['model']==_0x5aa8a3),_0x49dfa8=_0x593bd7(_0x2f76fe['title'])['toLowerCase']();return{'type':'format','content':o(_0xf44586,'*Set\x20highlight:*\x20%0',_0x49dfa8),'color':{'value':_0x2f76fe['color'],'title':_0x2f76fe['title']}};}return{'type':'format','content':o(_0xf44586,'*Remove\x20highlight*',o(_0xf44586,'FORMAT_HIGHLIGHT'))};}});}}class it extends _0x3c69b1{['afterInit'](){const _0xa4ed9f=this['editor'];if(!_0xa4ed9f['plugins']['has']('HorizontalLineEditing'))return;_0xa4ed9f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x4a2737=_0xa4ed9f['plugins']['get']('TrackChangesEditing'),_0x4c6d68=_0xa4ed9f['locale'];_0x4a2737['descriptionFactory']['registerElementLabel']('horizontalLine',_0x2bb0f3=>o(_0x4c6d68,'ELEMENT_HORIZONTAL_LINE',_0x2bb0f3)),_0xa4ed9f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x23312b,{writer:_0x2b81b1,options:_0x1b30ee})=>{if(!_0x1b30ee['showSuggestionHighlights'])return null;const _0x38c42d=_0x2b81b1['createContainerElement']('div'),_0x59461a=_0x2b81b1['createEmptyElement']('hr');return _0x2b81b1['addClass']('ck-horizontal-line',_0x38c42d),_0x2b81b1['insert'](_0x2b81b1['createPositionAt'](_0x38c42d,0x0),_0x59461a),_0x38c42d;},'converterPriority':'high'});}}class st extends _0x3c69b1{['afterInit'](){const _0x33dd69=this['editor'];if(!_0x33dd69['plugins']['has']('HtmlEmbed'))return;const _0x218b39=_0x33dd69['plugins']['get']('TrackChangesEditing'),_0x528743=_0x33dd69['locale'];_0x218b39['descriptionFactory']['registerElementLabel']('rawHtml',_0x2f8d04=>o(_0x528743,'ELEMENT_HTML_EMBED',_0x2f8d04)),_0x218b39['enableDefaultAttributesIntegration']('htmlEmbed'),_0x218b39['registerBlockAttribute']('value'),_0x218b39['descriptionFactory']['registerDescriptionCallback'](_0x3f2aac=>{if('attribute'!=_0x3f2aac['type'])return;const {data:_0x134190}=_0x3f2aac;if(_0x134190&&'value'==_0x134190['key']&&_0x3f2aac['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x541c15=o(_0x528743,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x528743,'*Change\x20%0\x20content*',_0x541c15)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x31c1a7=this['editor'],_0x1ad6db=_0x31c1a7['locale'];_0x31c1a7['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x35dce0=>{if('formatBlock'!=_0x35dce0['type'])return;const {data:_0x39abc4}=_0x35dce0;if(_0x39abc4&&'htmlEmbed'==_0x39abc4['commandName']){const _0x1b8d87=o(_0x1ad6db,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1ad6db,'*Change\x20%0\x20content*',_0x1b8d87)};}});}}class nt extends _0x3c69b1{['afterInit'](){const _0x5ce876=this['editor'];if(!_0x5ce876['plugins']['has']('ImageEditing'))return;const _0x377ee8=_0x5ce876['plugins']['get']('TrackChangesEditing'),_0x434dca=_0x5ce876['plugins']['get']('ImageUtils'),_0x2a07bf=_0x5ce876['locale'];_0x377ee8['enableCommand']('insertImage'),_0x377ee8['descriptionFactory']['registerElementLabel']('imageBlock',_0xf59656=>o(_0x2a07bf,'ELEMENT_IMAGE',_0xf59656)),_0x377ee8['descriptionFactory']['registerElementLabel']('imageInline',_0x1969ff=>o(_0x2a07bf,'ELEMENT_INLINE_IMAGE',_0x1969ff)),_0x377ee8['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x2a07bf,'ELEMENT_CAPTION')),_0x5ce876['plugins']['has']('ImageUploadEditing')&&_0x377ee8['enableCommand']('uploadImage'),_0x5ce876['plugins']['has']('ImageBlockEditing')&&_0x5ce876['plugins']['has']('ImageInlineEditing')&&(_0x377ee8['enableCommand']('imageTypeInline',(_0x2025ac,_0x3c607f)=>{const _0xccb353=_0x434dca['getClosestSelectedImageElement'](_0x5ce876['model']['document']['selection']);_0x5ce876['model']['change'](()=>{_0x377ee8['markBlockFormat'](_0xccb353,{'commandName':'imageTypeInline','commandParams':[_0x3c607f]},[],'convertBlockImageToInline');});}),_0x377ee8['enableCommand']('imageTypeBlock',(_0x598227,_0x51a9ea)=>{_0x5ce876['model']['change'](_0x23cfbc=>{let _0x2046ed=_0x434dca['getClosestSelectedImageElement'](_0x5ce876['model']['document']['selection']),_0x5e5e78=_0x23cfbc['createRangeOn'](_0x2046ed);const _0x166f74=_0x1c4b3e['fromPosition'](_0x5e5e78['start'],'toPrevious'),_0x15bdd0=_0x1c4b3e['fromPosition'](_0x5e5e78['end'],'toNext');_0x377ee8['forceDefaultExecution'](()=>_0x598227(_0x51a9ea)),_0x2046ed=_0x434dca['getClosestSelectedImageElement'](_0x5ce876['model']['document']['selection']),_0x5e5e78=_0x23cfbc['createRangeOn'](_0x2046ed);const _0x2ddff2=_0x23cfbc['createRange'](_0x166f74,_0x15bdd0);_0x166f74['detach'](),_0x15bdd0['detach'](),_0x377ee8['markBlockFormat'](_0x2046ed,{'commandName':'imageTypeInline','commandParams':[_0x51a9ea]},[],'convertInlineImageToBlock'),_0x2ddff2['start']['isBefore'](_0x5e5e78['start'])&&_0x377ee8['markInsertion'](_0x23cfbc['createRange'](_0x2ddff2['start'],_0x5e5e78['start']),'convertInlineImageToBlock'),_0x5e5e78['end']['isBefore'](_0x2ddff2['end'])&&_0x377ee8['markInsertion'](_0x23cfbc['createRange'](_0x5e5e78['end'],_0x2ddff2['end']),'convertInlineImageToBlock');});}),_0x377ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x377ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x377ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x377ee8['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x377ee8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x377ee8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x313152])=>{const _0x314c38=_0x377ee8['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x5b2494=_0x313152['start'],_0x39b343=_0x313152['end'];const _0x350a00=_0x5ce876['model']['schema']['getNearestSelectionRange'](_0x5b2494,'backward'),_0x5e461f=_0x5ce876['model']['schema']['getNearestSelectionRange'](_0x39b343,'forward');_0x350a00['isCollapsed']&&(_0x5b2494=_0x350a00['start']),_0x5e461f['isCollapsed']&&(_0x39b343=_0x5e461f['end']),_0x314c38([_0x5ce876['model']['createRange'](_0x5b2494,_0x39b343)]);}),_0x377ee8['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x522ddb),_0x377ee8['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x522ddb)),_0x5ce876['plugins']['has']('ImageCaptionEditing')&&(_0x377ee8['enableCommand']('toggleImageCaption',(_0x363171,_0x206db6)=>{const _0x3eae0d=_0x5ce876['plugins']['get']('ImageCaptionUtils');let _0x163f5b=_0x434dca['getClosestSelectedImageElement'](_0x5ce876['model']['document']['selection']),_0x3f66fa=_0x3eae0d['getCaptionFromImageModelElement'](_0x163f5b);_0x5ce876['model']['change'](()=>{if(_0x3f66fa)return void _0x377ee8['markDeletion'](_0x5ce876['model']['createRangeOn'](_0x3f66fa));const _0x2d30b3=_0x434dca['isBlockImage'](_0x163f5b);_0x363171(_0x206db6),_0x163f5b=_0x434dca['getClosestSelectedImageElement'](_0x5ce876['model']['document']['selection']),_0x3f66fa=_0x3eae0d['getCaptionFromImageModelElement'](_0x163f5b),_0x377ee8['markInsertion'](_0x5ce876['model']['createRangeOn'](_0x3f66fa),_0x2d30b3?null:'imageCaption');});}),_0x377ee8['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x522ddb));const _0x1c8c77=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1d265c(_0x13bfdc,_0x5cc17f){const _0xa56ab5=_0x1c8c77['findIndex'](({type:_0x1e77d8,subType:_0x2992c6})=>_0x13bfdc['type']==_0x1e77d8&&_0x13bfdc['subType']==_0x2992c6),_0x326ef5=_0x1c8c77['findIndex'](({type:_0x53d8a4,subType:_0x5ce580})=>_0x5cc17f['type']==_0x53d8a4&&_0x5cc17f['subType']==_0x5ce580);if(_0xa56ab5<0x0||_0x326ef5<0x0)return!0x1;const _0x4eabe6=_0x13bfdc['getFirstRange'](),_0x55360c=_0x5cc17f['getFirstRange']();if((0x0==_0xa56ab5||0x1==_0xa56ab5)&&0x2==_0x326ef5&&_0x4eabe6['isIntersecting'](_0x55360c))return!0x0;if(0x2==_0xa56ab5&&0x3==_0x326ef5){const _0x29fea4=_0x377ee8['_findSuggestions'](_0x4eabe6,'insertion')['filter'](({suggestion:_0x1c786f,meta:_0x222b15})=>_0x222b15['isOwn']&&'convertInlineImageToBlock'==_0x1c786f['subType']);if(_0x29fea4['length']>0x1&&_0x55360c['end']['isEqual'](_0x4eabe6['start']))return!0x0;if(0x1==_0x29fea4['length']&&(_0x4eabe6['start']['isEqual'](_0x55360c['end'])||_0x4eabe6['end']['isEqual'](_0x55360c['start'])))return!0x0;}if(0x3==_0xa56ab5&&0x3==_0x326ef5&&_0x4eabe6['start']['isBefore'](_0x55360c['start'])){const _0x23d8bb=_0x4eabe6['end']['nodeAfter'],_0x5e72f7=_0x55360c['start']['nodeBefore'];return _0x434dca['isBlockImage'](_0x23d8bb)&&_0x23d8bb===_0x5e72f7;}return!0x1;}function _0x522ddb(_0x4e3a38,_0x5dbd05){return _0x1d265c(_0x4e3a38,_0x5dbd05)?[_0x4e3a38,_0x5dbd05]:_0x1d265c(_0x5dbd05,_0x4e3a38)?[_0x5dbd05,_0x4e3a38]:null;}_0x5ce876['plugins']['has']('ImageResize')&&(_0x377ee8['enableDefaultAttributesIntegration']('resizeImage'),_0x377ee8['registerBlockAttribute']('resizedWidth'),_0x377ee8['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x2a07bf,'FORMAT_IMAGE_SIZE'))),_0x5ce876['plugins']['has']('ImageTextAlternativeEditing')&&(_0x377ee8['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x377ee8['registerBlockAttribute']('alt')),_0x377ee8['descriptionFactory']['registerDescriptionCallback'](_0x52db48=>{if(!!_0x1c8c77['find'](({type:_0xe0b9b3,subType:_0x4770eb})=>_0x52db48['type']==_0xe0b9b3&&_0x52db48['subType']==_0x4770eb))return _0x52db48['previous']?{}:void 0x0;}),_0x377ee8['descriptionFactory']['registerDescriptionCallback'](_0x2c8aa6=>{if('insertion'==_0x2c8aa6['type']||'deletion'==_0x2c8aa6['type']){const _0x1ff2e9=_0x2c8aa6['getContainedElement']();if(_0x1ff2e9&&_0x1ff2e9['is']('element','caption'))return{'type':'insertion'==_0x2c8aa6['type']?'addObject':'removeObject','element':_0x1ff2e9,'quantity':0x1};}}),_0x377ee8['descriptionFactory']['registerDescriptionCallback'](_0x471e5f=>'formatBlock'==_0x471e5f['type']&&'convertInlineImageToBlock'==_0x471e5f['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x471e5f['type']&&'convertBlockImageToInline'==_0x471e5f['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x377ee8['descriptionFactory']['registerDescriptionCallback'](_0x36ffc6=>{if('attribute'!=_0x36ffc6['type'])return;const {data:_0x303556}=_0x36ffc6;if(!_0x303556||'alt'!=_0x303556['key'])return;const _0x14edff=_0x303556['newValue'];return _0x14edff?{'type':'format','content':o(_0x2a07bf,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x14edff+'\x22')}:{'type':'format','content':o(_0x2a07bf,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x580d56=this['editor'],_0x457434=_0x580d56['locale'];_0x580d56['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x52665f=>{if('formatBlock'!=_0x52665f['type']&&'formatInline'!=_0x52665f['type'])return;const {data:_0x21ca5f}=_0x52665f;if(_0x21ca5f){if('imageTextAlternative'==_0x21ca5f['commandName']){const _0x2e9311=_0x21ca5f['commandParams'][0x0]['newValue'];return _0x2e9311?{'type':'format','content':o(_0x457434,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x2e9311+'\x22')}:{'type':'format','content':o(_0x457434,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x21ca5f['commandName']){const _0x50907=_0x21ca5f['commandParams'][0x0]['width'];return _0x50907?{'type':'format','content':o(_0x457434,'*Set\x20image\x20width:*\x20%0',_0x50907)}:{'type':'format','content':o(_0x457434,'*Reset\x20image\x20width*')};}}});}}class ot extends _0x3c69b1{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x36cc03=this['editor']['locale'],_0x2bc3cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2bc3cd['enableDefaultAttributesIntegration']('replaceImageSource'),_0x2bc3cd['registerBlockAttribute']('src'),_0x2bc3cd['descriptionFactory']['registerDescriptionCallback'](_0x16f2f1=>{if('attribute'!=_0x16f2f1['type'])return;const {data:_0x9e4ea6}=_0x16f2f1;return _0x9e4ea6&&'src'==_0x9e4ea6['key']?_0x9e4ea6['newValue']&&_0x9e4ea6['oldValue']?{'type':'format','content':o(_0x36cc03,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xd03c21=this['editor']['plugins']['get']('TrackChangesEditing');_0xd03c21['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0xd03c21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0xd03c21['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0xd03c21['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f17d9=this['editor'],_0x248ee4=_0x5f17d9['locale'];_0x5f17d9['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fe285=>{if('formatBlock'!=_0x3fe285['type']&&'formatInline'!=_0x3fe285['type'])return;const {data:_0x275e33}=_0x3fe285;if(!_0x275e33||'replaceImageSource'!=_0x275e33['commandName'])return;return{'type':'format','content':o(_0x248ee4,'*Format:*\x20replace\x20image\x20URL')};});}}class rt extends _0x3c69b1{['afterInit'](){const _0x5e9e62=this['editor'];if(!_0x5e9e62['plugins']['has']('ImageStyleEditing'))return;const _0x40a7f1=_0x5e9e62['plugins']['get']('TrackChangesEditing'),_0x3230cd=_0x5e9e62['plugins']['get']('ImageUtils'),_0x21f9f8={};_0x40a7f1['enableCommand']('imageStyle',(_0x5b186e,_0x37f6af)=>{const _0x5e17e6=_0x5e9e62['plugins']['get']('Users')['me'],_0x46cbda=_0x5e9e62['commands']['get']('imageStyle');let _0x1237ca=_0x3230cd['getClosestSelectedImageElement'](_0x5e9e62['model']['document']['selection']),_0x1f89d1=_0x5e9e62['model']['createRangeOn'](_0x1237ca),_0x187785=_0x46cbda['value'];if(_0x187785==_0x37f6af['value'])return;const _0x4be861={'commandName':'imageStyle','commandParams':[_0x37f6af],'formatGroupId':_0x56aadc()};_0x5e9e62['model']['change'](()=>{if(_0x40a7f1['getSuggestions']()['filter'](_0x2d2d9b=>_0x2d2d9b['isInContent']&&_0x5e17e6==_0x2d2d9b['author']&&('formatBlock'==_0x2d2d9b['type']||'formatInline'==_0x2d2d9b['type'])&&('imageStylePreApply'==_0x2d2d9b['subType']||'imageStylePostApply'==_0x2d2d9b['subType'])&&_0x2d2d9b['getFirstRange']()['isEqual'](_0x1f89d1))['forEach'](_0x77d400=>_0x40a7f1['discardSuggestion'](_0x77d400['head'])),_0x1237ca=_0x3230cd['getClosestSelectedImageElement'](_0x5e9e62['model']['document']['selection']),_0x1f89d1=_0x5e9e62['model']['createRangeOn'](_0x1237ca),_0x46cbda['refresh'](),_0x5e9e62['commands']['get']('imageTypeInline')['refresh'](),_0x5e9e62['commands']['get']('imageTypeBlock')['refresh'](),_0x187785=_0x46cbda['value'],_0x187785!=_0x37f6af['value'])return _0x3230cd['isInlineImage'](_0x1237ca)&&_0x46cbda['shouldConvertImageType'](_0x37f6af['value'],_0x1237ca)?(_0x5b186e({..._0x37f6af,'setImageSizes':!0x1}),_0x1237ca=_0x3230cd['getClosestSelectedImageElement'](_0x5e9e62['model']['document']['selection']),void _0x40a7f1['markBlockFormat'](_0x1237ca,{..._0x4be861,'commandReversedParams':[{'value':_0x187785||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3230cd['isBlockImage'](_0x1237ca)?_0x40a7f1['markBlockFormat'](_0x1237ca,_0x4be861,[],'imageStylePostApply'):_0x40a7f1['markInlineFormat'](_0x1f89d1,_0x4be861,'imageStylePostApply'));});});for(const _0x42a379 of _0x5e9e62['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x21f9f8[_0x42a379['name']]=_0x42a379['title']['toLowerCase']();_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x5a7e23])=>{_0x3230cd['setImageNaturalSizeAttributes'](_0x5a7e23['getContainedElement']());}),_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x30c6b4,_0x51d3c9)=>{_0x40a7f1['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x30c6b4,{'commandName':_0x51d3c9['commandName'],'commandParams':_0x51d3c9['commandReversedParams']});}),_0x40a7f1['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x1469ff,_0x365bb9){if(_0x2fd846(_0x1469ff,_0x365bb9))return[_0x1469ff,_0x365bb9];if(_0x2fd846(_0x365bb9,_0x1469ff))return[_0x365bb9,_0x1469ff];return null;});const _0x5c8132=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x2fd846(_0x3898d0,_0x4ba676){const _0x45679c=_0x5c8132['findIndex'](({type:_0x1648a6,subType:_0x26c613})=>_0x3898d0['type']==_0x1648a6&&_0x3898d0['subType']==_0x26c613),_0x3194f4=_0x5c8132['findIndex'](({type:_0x496e35,subType:_0x2c48e2})=>_0x4ba676['type']==_0x496e35&&_0x4ba676['subType']==_0x2c48e2);if(_0x45679c<0x0||_0x3194f4<0x0)return!0x1;const _0x1d47d0=_0x3898d0['getFirstRange'](),_0x36ced4=_0x4ba676['getFirstRange']();if((0x0==_0x45679c||0x1==_0x45679c)&&0x2==_0x3194f4&&_0x1d47d0['isIntersecting'](_0x36ced4))return!0x0;if(0x2==_0x45679c&&0x3==_0x3194f4){const _0x51db03=_0x40a7f1['_findSuggestions'](_0x1d47d0,'insertion')['filter'](({suggestion:_0x3ac9ab,meta:_0x1d058b})=>_0x1d058b['isOwn']&&'convertInlineImageToBlock'==_0x3ac9ab['subType']);if(_0x51db03['length']>0x1&&_0x36ced4['end']['isEqual'](_0x1d47d0['start']))return!0x0;if(0x1==_0x51db03['length']&&(_0x1d47d0['start']['isEqual'](_0x36ced4['end'])||_0x1d47d0['end']['isEqual'](_0x36ced4['start'])))return!0x0;}if(0x3==_0x45679c&&0x3==_0x3194f4&&_0x1d47d0['start']['isBefore'](_0x36ced4['start'])){const _0x55514e=_0x1d47d0['end']['nodeAfter'],_0x453d9c=_0x36ced4['start']['nodeBefore'];return _0x3230cd['isBlockImage'](_0x55514e)&&_0x55514e===_0x453d9c;}return!0x1;}_0x5e9e62['model']['document']['registerPostFixer'](()=>{let _0x3ef3c2=!0x1;const _0x1cb1f2=Array['from'](_0x5e9e62['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x19b45f,data:_0xe63f68}of _0x1cb1f2){const {group:_0x43e676,type:_0x4dccd9,subType:_0x5ef7cd,id:_0x2129de}=_0x40a7f1['_splitMarkerName'](_0x19b45f);if('suggestion'==_0x43e676&&_0x40a7f1['hasSuggestion'](_0x2129de)){if('formatBlock'==_0x4dccd9&&('imageStylePreApply'==_0x5ef7cd||'imageStylePostApply'==_0x5ef7cd)){const _0xa6a8b0=_0x40a7f1['getSuggestion'](_0x2129de);if(_0xe63f68['newRange']){const _0x3059cd=_0xa6a8b0['getFirstRange']()['getContainedElement']();if(_0x3230cd['isBlockImage'](_0x3059cd))continue;_0x40a7f1['discardSuggestion'](_0xa6a8b0),_0x3ef3c2=!0x0;}}if('insertion'==_0x4dccd9&&'imageCaption'==_0x5ef7cd&&!_0xe63f68['newRange']){const _0x806bbb=_0x40a7f1['getSuggestion'](_0x2129de);_0x806bbb['next']&&_0x806bbb['next']['isInContent']&&(_0x40a7f1['discardSuggestion'](_0x806bbb['next']),_0x3ef3c2=!0x0);}}}return _0x3ef3c2;}),this['_registerLegacyDescription'](_0x21f9f8);}['_registerLegacyDescription'](_0x56bb15){const _0xb79281=this['editor'],_0x59d053=_0xb79281['locale'];_0xb79281['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x149284=>{if('formatBlock'!=_0x149284['type']&&'formatInline'!=_0x149284['type'])return;const {data:_0x4ea63b}=_0x149284;if(!_0x4ea63b||'imageStyle'!=_0x4ea63b['commandName'])return;const _0x5d4336=_0x4ea63b['commandParams'][0x0]['value'];return _0x23d740('side'===_0x5d4336?o(_0x59d053,'FORMAT_SIDE_IMAGE'):_0x56bb15[_0x5d4336]||_0x5d4336);function _0x23d740(_0x1fad83){return{'type':'format','content':o(_0x59d053,'*Format:*\x20%0',_0x1fad83)};}});}}class at extends _0x3c69b1{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x190296){super(_0x190296),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x54a2ae=this['editor'],_0x4c3e5f=_0x54a2ae['commands']['get']('importWord'),_0x1d55e2=_0x54a2ae['commands']['get']('trackChanges');_0x4c3e5f&&(_0x4c3e5f['on']('execute',(_0x43dbc6,[,_0x8b6310])=>{this['_trackChangesValueDuringImport']=_0x1d55e2['value'],_0x8b6310['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x4c3e5f,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x4c3e5f,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x1d55e2['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x54a2ae['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0xedf0e9,_0x398858){const {suggestions:_0x547e5d}=_0x398858,_0x75764c=this['editor']['commands']['get']('trackChanges'),_0xb74664=_0x75764c['value'];this['_trackChangesValueDuringImport']!==_0xb74664&&(_0x75764c['execute'](),this['_trackChangesExecuted']=!0x0),_0x547e5d&&_0x547e5d['forEach'](({id:_0x572365,type:_0x301521,author:_0x37df1c,created_at:_0x5e143a})=>{const _0x3aaa65={'id':_0x572365,'type':_0x301521,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x37df1c,'createdAt':_0x5e143a?new Date(_0x5e143a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x3aaa65);});}}class ct extends _0x3c69b1{['afterInit'](){const _0x8bc7f8=this['editor'],_0x557c98=_0x8bc7f8['plugins']['get']('TrackChangesEditing');if(_0x8bc7f8['plugins']['has']('IndentEditing')&&(_0x557c98['enableCommand']('indent'),_0x557c98['enableCommand']('outdent')),_0x8bc7f8['plugins']['has']('IndentBlock')){for(const _0x5d8ad3 of['indentBlock','outdentBlock'])_0x557c98['enableDefaultAttributesIntegration'](_0x5d8ad3);}const _0x4138c6=_0x8bc7f8['locale'];_0x557c98['registerBlockAttribute']('blockIndent'),_0x557c98['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4138c6,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4c9710=this['editor'],_0x3054e2=_0x4c9710['locale'],_0x9ef879=_0x4c9710['plugins']['get']('TrackChangesEditing');_0x9ef879['descriptionFactory']['registerDescriptionCallback'](_0x27af1d=>{if('formatBlock'!=_0x27af1d['type'])return;const {data:_0x5d0fac}=_0x27af1d;if(!_0x5d0fac)return;if('indentBlock'!=_0x5d0fac['commandName']&&'outdentBlock'!=_0x5d0fac['commandName'])return;const _0x529c14=_0x27af1d['getItems']()[0x0],_0xf6c3e3=_0x9ef879['descriptionFactory']['getItemLabel'](_0x529c14);return'indentBlock'==_0x5d0fac['commandName']?{'type':'format','content':o(_0x3054e2,'*Indent:*\x20%0',_0xf6c3e3)}:'outdentBlock'==_0x5d0fac['commandName']?{'type':'format','content':o(_0x3054e2,'*Outdent:*\x20%0',_0xf6c3e3)}:void 0x0;});}}class ut extends _0x3c69b1{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ht extends _0x3c69b1{['afterInit'](){const _0x1b9b51=this['editor'];if(!_0x1b9b51['plugins']['has']('LinkEditing'))return;const _0x5df17f=_0x1b9b51['plugins']['get']('TrackChangesEditing'),_0x37bce1=_0x1b9b51['commands']['get']('link');_0x5df17f['enableDefaultAttributesIntegration']('link'),_0x5df17f['enableDefaultAttributesIntegration']('unlink'),_0x5df17f['registerInlineAttribute']('linkHref');for(const _0x40fa42 of _0x37bce1['manualDecorators'])_0x5df17f['registerInlineAttribute'](_0x40fa42['id']),_0x5df17f['descriptionFactory']['registerAttributeLabel'](_0x40fa42['id'],'link\x20('+_0x40fa42['label']['toLowerCase']()+')');_0x5df17f['descriptionFactory']['registerDescriptionCallback'](_0x4662d1=>{if('attribute'!=_0x4662d1['type'])return;const {data:_0x4a38b7}=_0x4662d1;if(!_0x4a38b7||'linkHref'!=_0x4a38b7['key'])return;const _0x47ce3d=_0x4a38b7['newValue'],_0x5cfc97=_0x1b9b51['locale'];return{'type':'format','content':null==_0x47ce3d?o(_0x5cfc97,'*Remove\x20link*'):o(_0x5cfc97,'*Set\x20link:*\x20%0','\x22'+_0x47ce3d+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f5978=this['editor'],_0x230fd7=_0x1f5978['locale'];_0x1f5978['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x25db68=>{if('formatInline'!=_0x25db68['type'])return;const {data:_0x106bae}=_0x25db68;if(_0x106bae){if('link'==_0x106bae['commandName']){const _0x105b69=_0x106bae['commandParams'][0x0];return{'type':'format','content':o(_0x230fd7,'*Set\x20link:*\x20%0','\x22'+_0x105b69+'\x22')};}return'unlink'==_0x106bae['commandName']?{'type':'format','content':o(_0x230fd7,'*Remove\x20link*')}:void 0x0;}});}}class ft extends _0x3c69b1{['afterInit'](){const _0x440be4=this['editor'],_0x2a03d1=_0x440be4['locale'];if(!_0x440be4['plugins']['has']('LegacyListEditing'))return;const _0x57fc94=_0x440be4['plugins']['get']('TrackChangesEditing'),_0x1d5a0e=_0x440be4['plugins']['has']('LegacyTodoListEditing');function _0x467396(_0x453c17){return()=>{const _0x37b54c=_0x440be4['model']['document']['selection'],_0x4a311c=_0x440be4['commands']['get'](_0x453c17);if(_0x4a311c['value'])return void _0x440be4['execute']('paragraph',{});const _0x1c92e4=_0x453c17['slice'](0x0,-0x4),_0x235e0b=function(_0x200c9c,_0x3705a2,_0x4be1df){let _0x5e30cd=Array['from'](_0x200c9c)['filter'](_0x8d6bf9=>function(_0xe02946,_0x1bf9c7){return _0x1bf9c7['checkChild'](_0xe02946['parent'],'listItem')&&!_0x1bf9c7['isObject'](_0xe02946);}(_0x8d6bf9,_0x4be1df));_0x5e30cd=_0x5e30cd['filter'](_0x5ee209=>!_0x5ee209['is']('element','listItem')||_0x5ee209['getAttribute']('listType')!=_0x3705a2);const _0x5c1e33=new Set();for(const _0x44007a of _0x5e30cd)_0x44007a['is']('element','listItem')?_0x5c1e33['add'](fe(_0x44007a)):_0x5c1e33['add'](_0x44007a);return Array['from'](_0x5c1e33);}(_0x37b54c['getSelectedBlocks'](),_0x1c92e4,_0x440be4['model']['schema']);_0x440be4['model']['change'](()=>{for(const _0x494a31 of _0x235e0b)_0x57fc94['markBlockFormat'](_0x494a31,{'commandName':_0x453c17,'commandParams':[{'forceValue':!_0x4a311c['value']}],'formatGroupId':'blockName'},ue(_0x494a31));});};}function _0x6f842f(_0x21760e){return()=>{const _0x12f2d2=function(_0x7c86ca){let _0x1f452a=Array['from'](_0x7c86ca);const _0x3af2b7=_0x1f452a['findIndex'](_0x451b6a=>'listItem'!=_0x451b6a['name']);return _0x3af2b7>-0x1&&(_0x1f452a=_0x1f452a['slice'](0x0,_0x3af2b7)),_0x1f452a;}(_0x440be4['model']['document']['selection']['getSelectedBlocks']()),_0x81ddf7=_0x440be4['model']['createRange'](_0x440be4['model']['createPositionAt'](_0x12f2d2[0x0],'before'),_0x440be4['model']['createPositionAt'](_0x12f2d2[_0x12f2d2['length']-0x1],'end'));_0x440be4['model']['change'](()=>{_0x57fc94['markBlockFormat'](_0x81ddf7,{'commandName':_0x21760e,'commandParams':[],'formatGroupId':'listIndent'},function(_0x389f6a){const _0x1a408b=new Set();for(const _0x5f9157 of _0x389f6a){let _0x6748f8=_0x5f9157['nextSibling'];for(;_0x6748f8&&_0x6748f8['getAttribute']('listIndent')>_0x5f9157['getAttribute']('listIndent');)_0x1a408b['add'](_0x6748f8),_0x6748f8=_0x6748f8['nextSibling'];}return Array['from'](_0x1a408b);}(_0x12f2d2));});};}_0x57fc94['enableCommand']('numberedList',_0x467396('numberedList')),_0x57fc94['enableCommand']('bulletedList',_0x467396('bulletedList')),_0x1d5a0e&&_0x57fc94['enableCommand']('todoList',_0x467396('todoList')),_0x57fc94['enableCommand']('indentList',_0x6f842f('indentList')),_0x57fc94['enableCommand']('outdentList',_0x6f842f('outdentList')),_0x1d5a0e&&_0x57fc94['enableCommand']('checkTodoList',()=>{const _0x35bddc=_0x440be4['commands']['get']('checkTodoList'),_0x20a446=Array['from'](_0x35bddc['_selectedElements']);_0x20a446['filter'](_0x53e807=>_0x53e807['getAttribute']('todoListChecked')!=_0x35bddc['value']),_0x440be4['model']['change'](()=>{for(const _0x529e36 of _0x20a446)_0x57fc94['markBlockFormat'](_0x529e36,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x35bddc['value']}]});});}),_0x57fc94['descriptionFactory']['registerElementLabel']('listItem',_0x3c561f=>o(_0x2a03d1,'ELEMENT_LIST_ITEM',_0x3c561f)),_0x57fc94['descriptionFactory']['registerDescriptionCallback'](_0x33d988=>{if('formatBlock'!=_0x33d988['type']&&'formatInline'!=_0x33d988['type'])return;const {data:_0x353c40}=_0x33d988;if(_0x353c40){if('numberedList'==_0x353c40['commandName']||'bulletedList'==_0x353c40['commandName']||'todoList'==_0x353c40['commandName'])switch(_0x353c40['commandName']['replace']('List','')){case'bulleted':return _0x2b2c68(o(_0x2a03d1,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2b2c68(o(_0x2a03d1,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2b2c68(o(_0x2a03d1,'ELEMENT_TODO_LIST'));}if('indentList'==_0x353c40['commandName'])return{'type':'format','content':o(_0x2a03d1,'*Indent:*\x20%0',o(_0x2a03d1,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x353c40['commandName'])return{'type':'format','content':o(_0x2a03d1,'*Outdent:*\x20%0',o(_0x2a03d1,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x353c40['commandName'])return _0x353c40['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2a03d1,'*Check\x20item*')}:{'type':'format','content':o(_0x2a03d1,'*Uncheck\x20item*')};}function _0x2b2c68(_0x1994bb){return{'type':'format','content':o(_0x2a03d1,'*Change\x20to:*\x20%0',_0x1994bb)};}});}}function fe(_0x666f2){const _0x523086=_0x666f2['getAttribute']('listIndent');if(0x0==_0x523086)return _0x666f2;let _0x11230b=_0x666f2;for(;_0x666f2['previousSibling']&&_0x666f2['previousSibling']['is']('element','listItem');){const _0x4086d9=_0x666f2['previousSibling']['getAttribute']('listIndent');if(_0x4086d9==_0x523086)_0x11230b=_0x666f2['previousSibling'];else{if(_0x4086d9<_0x523086)break;}_0x666f2=_0x666f2['previousSibling'];}return _0x11230b;}function ue(_0x31f4e3){const _0x2ab989=[];if(_0x31f4e3['is']('element','listItem')&&_0x31f4e3['getAttribute']('listIndent')>0x0){let _0x2d13b3=_0x31f4e3['nextSibling'];for(;_0x2d13b3&&'listItem'==_0x2d13b3['name']&&_0x2d13b3['getAttribute']('listIndent')==_0x31f4e3['getAttribute']('listIndent');)_0x2ab989['push'](_0x2d13b3),_0x2d13b3=_0x2d13b3['nextSibling'];}return _0x2ab989;}class W extends _0x3c69b1{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x28737=this['editor']['config']['get']('list.properties'),_0x29102a=this['editor']['plugins']['get']('TrackChangesEditing');_0x28737['styles']&&_0x29102a['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x28737['reversed']&&_0x29102a['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x28737['startIndex']&&_0x29102a['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x29102a['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x17a419,_0x2c9194={}){const _0x1b2e8b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x30dd2a=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x1b2e8b['markMultiRangeBlockFormat'](_0x30dd2a,{'commandName':'listStyle','commandParams':[{'type':_0x2c9194['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3e4a5d,_0x489247={}){const _0x4328fa=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2386db=this['_getSuggestionBlocks'](_0x312767=>_0x312767['is']('element','listItem')&&'numbered'===_0x312767['getAttribute']('listType'));if(_0x2386db['length']<0x1)return;const _0x187edd=_0x2386db['map'](_0x430865=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x430865,'before'),this['editor']['model']['createPositionAt'](_0x430865,0x0)));this['editor']['model']['change'](()=>{_0x4328fa['markMultiRangeBlockFormat'](_0x187edd,{'commandName':'listReversed','commandParams':[{'reversed':_0x489247['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x392b7f,_0x2e371a={}){const _0x94c24d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3c60d8=this['_getSuggestionBlocks'](_0x5a83c2=>_0x5a83c2['is']('element','listItem')&&'numbered'===_0x5a83c2['getAttribute']('listType'));if(_0x3c60d8['length']<0x1)return;const _0xc69f5=_0x3c60d8['map'](_0x4b1152=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x4b1152,'before'),this['editor']['model']['createPositionAt'](_0x4b1152,0x0)));this['editor']['model']['change'](()=>{_0x94c24d['markMultiRangeBlockFormat'](_0xc69f5,{'commandName':'listStart','commandParams':[{'startIndex':_0x2e371a['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x402a0b){if('formatBlock'!=_0x402a0b['type']&&'formatInline'!=_0x402a0b['type'])return;const _0x45b278=this['editor']['locale'],{data:_0x2015a9}=_0x402a0b;if(!_0x2015a9)return;let _0x6a07cf,_0x158daa;switch(_0x2015a9['commandName']){case'listStyle':_0x6a07cf='*Change\x20to:*\x20%0',_0x158daa={'type':'format','content':o(_0x45b278,_0x6a07cf,o(_0x45b278,this['_getTranslationKeyForListStyle'](_0x2015a9['commandParams'][0x0]['type'])))};break;case'listReversed':_0x6a07cf=_0x2015a9['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x158daa={'type':'format','content':o(_0x45b278,_0x6a07cf)};break;case'listStart':_0x6a07cf='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x158daa={'type':'format','content':o(_0x45b278,_0x6a07cf,_0x2015a9['commandParams'][0x0]['startIndex'])};}return _0x158daa;}['_getSuggestionBlocksForListStyle'](){const _0xafe4e3=this['editor']['plugins']['get']('LegacyListUtils');let _0x3272e8=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x3272e8[0x0]?.['is']('element','listItem')&&_0x3272e8['unshift'](..._0xafe4e3['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x3272e8[_0x3272e8['length']-0x1]?.['is']('element','listItem')&&_0x3272e8['push'](..._0xafe4e3['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x3272e8=[...new Set(_0x3272e8)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x3272e8=_0x3272e8['filter'](_0x251c1a=>_0x251c1a['is']('element','listItem'))),_0x3272e8;}['_getSuggestionBlocks'](_0x5c6303){const _0x525a74=this['editor']['plugins']['get']('LegacyListUtils');let _0x1252c1=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x5c6303)['map'](_0x1eca2e=>{const _0x37cf80=this['editor']['model']['createPositionAt'](_0x1eca2e,0x0);return[..._0x525a74['getSiblingNodes'](_0x37cf80,'backward'),..._0x525a74['getSiblingNodes'](_0x37cf80,'forward')];})['flat']();return _0x1252c1=[...new Set(_0x1252c1)],_0x1252c1;}['_getTranslationKeyForListStyle'](_0x18a24a){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x18a24a)||'default')['toUpperCase']()+'_LIST_'+_0x18a24a['toUpperCase']()['replace'](/-/g,'_');}}class lt extends _0x3c69b1{['afterInit'](){const _0x334beb=this['editor'];if(!_0x334beb['plugins']['has']('MediaEmbedEditing'))return;const _0x3cbb85=_0x334beb['plugins']['get']('TrackChangesEditing'),_0x84b5fc=_0x334beb['locale'];_0x3cbb85['enableCommand']('mediaEmbed'),_0x3cbb85['descriptionFactory']['registerElementLabel']('media',_0x437d07=>o(_0x84b5fc,'ELEMENT_MEDIA',_0x437d07)),_0x334beb['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x549b5c,{writer:_0x15dce1,options:_0x57b92f})=>{if(_0x57b92f['showSuggestionHighlights'])return _0x15dce1['createEmptyElement']('div');},'converterPriority':'high'}),_0x334beb['data']['downcastDispatcher']['on']('attribute:url:media',(_0x3bfa7d,_0x299183,_0x5f36ec)=>{_0x5f36ec['options']['showSuggestionHighlights']&&_0x3bfa7d['stop']();},{'priority':'high'});}}class mt extends _0x3c69b1{['afterInit'](){const _0x57c97a=this['editor'];_0x57c97a['plugins']['has']('MentionEditing')&&_0x57c97a['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class dt extends _0x3c69b1{['afterInit'](){const _0x1be295=this['editor'];if(!_0x1be295['commands']['get']('insertMergeField'))return;_0x1be295['plugins']['get']('TrackChangesEditing')['enableCommand']('insertMergeField');const _0x4ff118=_0x1be295['plugins']['get']('TrackChangesEditing'),_0x582f97=_0x1be295['locale'];_0x4ff118['descriptionFactory']['registerElementLabel']('mergeField',_0x17003c=>o(_0x582f97,'ELEMENT_MERGE_FIELD',_0x17003c)),_0x4ff118['descriptionFactory']['registerDescriptionCallback'](_0x16dd01=>{if('insertion'!=_0x16dd01['type']&&'deletion'!=_0x16dd01['type'])return;const _0x1485e9=_0x16dd01['getContainedElement']();if(null==_0x1485e9)return;if(!_0x1485e9['is']('element','mergeField'))return;const _0x403751=_0x1be295['plugins']['get']('MergeFieldsEditing')['getLabel'](_0x1485e9['getAttribute']('id'));return'insertion'==_0x16dd01['type']?{'type':'insertion','content':o(_0x582f97,'*Insert:*\x20%0','\x22'+_0x403751+'\x22\x20'+o(_0x582f97,'ELEMENT_MERGE_FIELD'))}:{'type':'deletion','content':o(_0x582f97,'*Remove:*\x20%0','\x22'+_0x403751+'\x22\x20'+o(_0x582f97,'ELEMENT_MERGE_FIELD'))};});}}class pt extends _0x3c69b1{['afterInit'](){const _0x38f34d=this['editor'],_0x138e23=_0x38f34d['plugins']['get']('TrackChangesEditing');_0x38f34d['plugins']['has']('MultiLevelList')&&(_0x138e23['enableDefaultAttributesIntegration']('multiLevelList'),_0x138e23['registerBlockAttribute']('listMarkerStyle'),_0x138e23['descriptionFactory']['registerDescriptionCallback'](_0x4c0958=>this['handleDescriptions'](_0x4c0958)));}['handleDescriptions'](_0x21c7fd){const _0xef7554=this['editor']['locale'],{data:_0x1128ac}=_0x21c7fd,_0x4901df={'type':'format','content':''};if(_0x1128ac&&'listMarkerStyle'==_0x1128ac['key']){if(!_0x1128ac['oldValue'])return{'type':'format','content':o(_0xef7554,'*Set\x20format:*\x20%0',o(_0xef7554,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1128ac['newValue']+')'};if(!_0x1128ac['newValue']){let _0x4b83d7=_0x21c7fd['head'];for(;_0x4b83d7;){if(_0x4b83d7['data']&&'listType'==_0x4b83d7['data']['key']&&_0x4b83d7['data']['newValue'])return _0x4901df;_0x4b83d7=_0x4b83d7['next'];}return{'type':'format','content':o(_0xef7554,'*Remove\x20format:*\x20%0',o(_0xef7554,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x1128ac['oldValue']+')'};}}}}class kt extends _0x3c69b1{['afterInit'](){const _0x5895f4=this['editor'];if(!_0x5895f4['plugins']['has']('PageBreakEditing'))return;_0x5895f4['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0xd21a40=_0x5895f4['plugins']['get']('TrackChangesEditing'),_0x215946=_0x5895f4['locale'];_0xd21a40['descriptionFactory']['registerElementLabel']('pageBreak',_0x3df59a=>o(_0x215946,'ELEMENT_PAGE_BREAK',_0x3df59a));}}class bt extends _0x3c69b1{['afterInit'](){const _0x55621b=this['editor'];if(!_0x55621b['plugins']['has']('Paragraph'))return;const _0x5bbf43=_0x55621b['locale'],_0x24f245=_0x55621b['plugins']['get']('TrackChangesEditing');_0x24f245['descriptionFactory']['registerElementLabel']('paragraph',_0x492125=>o(_0x5bbf43,'ELEMENT_PARAGRAPH',_0x492125)),_0x24f245['enableDefaultAttributesIntegration']('paragraph'),_0x24f245['enableCommand']('insertParagraph'),_0x55621b['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x55621b),{'priority':'highest'}),_0x55621b['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x20b50d,_0x2c824f,_0x10aa9a)=>{_0x10aa9a['options']['showSuggestionHighlights']&&nr(_0x55621b,{'showActiveMarker':!0x1})(_0x20b50d,_0x2c824f,_0x10aa9a);},{'priority':'highest'});const _0x5a5060=_0x24f245['descriptionFactory'];_0x5a5060['registerDescriptionCallback'](_0x5efefc=>{if('insertion'!==_0x5efefc['type'])return;const {start:_0x72c2e4,end:_0x16d6ec}=_0x5efefc['getFirstRange']();if(!_0x72c2e4['isTouching'](_0x16d6ec)||!_0x72c2e4['nodeAfter'])return;const _0x4082fc=_0x55621b['model']['schema'],_0xb9652d=_0x72c2e4['nodeAfter'];return _0x4082fc['isBlock'](_0xb9652d)&&!_0x4082fc['isLimit'](_0xb9652d)&&_0x4082fc['checkChild'](_0xb9652d,'$text')?{'type':'insertion','content':o(_0x5bbf43,'*Insert:*\x20%0',_0x5a5060['getItemLabel'](_0xb9652d,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x432c51=this['editor'],_0x3d7590=_0x432c51['locale'];_0x432c51['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x360701=>{if('formatBlock'!=_0x360701['type'])return;const {data:_0x20d922}=_0x360701;return _0x20d922&&'paragraph'==_0x20d922['commandName']?{'type':'format','content':o(_0x3d7590,'*Change\x20to:*\x20%0',o(_0x3d7590,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x3c2f37,{showActiveMarker:_0x3c9fb9=!0x0}={}){return(_0x427cea,_0x11d514,_0x38ac0e)=>{const _0xce821f=_0x3c2f37['plugins']['get']('TrackChangesEditing'),_0x28fa85=_0x11d514['markerRange']['start'],_0x459847=_0x11d514['markerRange']['end'],_0x11bef0=_0x3c2f37['model']['schema'];if(!_0x28fa85['isTouching'](_0x459847)||!_0x28fa85['nodeAfter'])return;const _0x41937c=_0x28fa85['nodeAfter'];if(_0x11bef0['isBlock'](_0x41937c)&&!_0x11bef0['isLimit'](_0x41937c)&&_0x11bef0['checkChild'](_0x41937c,'$text')){if(!_0x38ac0e['consumable']['consume'](_0x11d514['markerRange'],_0x427cea['name']))return;const _0x3ab287=_0x38ac0e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x142401=_0x38ac0e['mapper']['toViewPosition'](_0x459847);_0x3c9fb9&&_0xce821f['activeMarkers']['includes'](_0x11d514['markerName'])&&_0x38ac0e['writer']['addClass']('ck-suggestion-marker--active',_0x3ab287),_0x38ac0e['writer']['insert'](_0x142401,_0x3ab287),_0x38ac0e['mapper']['bindElementToMarker'](_0x3ab287,_0x11d514['markerName']);}};}class wt extends _0x3c69b1{['afterInit'](){const _0x3cf0dc=this['editor'];if(!_0x3cf0dc['plugins']['has']('RemoveFormatEditing'))return;_0x3cf0dc['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x213b9d=this['editor'];_0x213b9d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x539586=>{if('formatBlock'!=_0x539586['type']&&'formatInline'!=_0x539586['type'])return;const {data:_0xf18813}=_0x539586;return _0xf18813&&'removeFormat'==_0xf18813['commandName']?{'type':'format','content':o(_0x213b9d['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class yt extends _0x3c69b1{['afterInit'](){const _0x9efdf7=this['editor'];if(!_0x9efdf7['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x2e286e=_0x9efdf7['plugins']['get']('TrackChangesEditing');_0x2e286e['enableCommand']('goToPreviousRestrictedEditingException'),_0x2e286e['enableCommand']('goToNextRestrictedEditingException');const _0x198da8=_0x9efdf7['plugins']['get']('RestrictedEditingModeEditing');_0x198da8['enableCommand']('trackChanges'),_0x198da8['enableCommand']('acceptSuggestion'),_0x198da8['enableCommand']('discardSuggestion'),_0x198da8['enableCommand']('acceptAllSuggestions'),_0x198da8['enableCommand']('discardAllSuggestions'),_0x198da8['enableCommand']('acceptSelectedSuggestions'),_0x198da8['enableCommand']('discardSelectedSuggestions');}}class jt extends _0x3c69b1{static get['requires'](){return[_0x1b4c49];}['init'](){const _0x4f4a7a=this['editor'],_0x4cafe6=_0x4f4a7a['plugins']['get']('TrackChangesEditing');_0x4cafe6['enableCommand']('shiftEnter'),_0x4f4a7a['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',ge(_0x4f4a7a),{'priority':'high'}),_0x4f4a7a['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',ge(_0x4f4a7a),{'priority':'high'}),_0x4f4a7a['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x2240b4,_0x2ab184,_0x3a44ef)=>{_0x3a44ef['options']['showSuggestionHighlights']&&ge(_0x4f4a7a,{'showActiveMarker':!0x1})(_0x2240b4,_0x2ab184,_0x3a44ef);}),_0x4cafe6['descriptionFactory']['registerElementLabel']('softBreak',_0x5b586b=>o(_0x4f4a7a['locale'],'ELEMENT_LINE_BREAK',_0x5b586b));}}function ge(_0x29c9d2,{showActiveMarker:_0x3902ab=!0x0}={}){return(_0x4ff3d7,_0x50b1ef,_0x5d3f93)=>{const _0x4751e3=_0x29c9d2['plugins']['get']('TrackChangesEditing');if(!_0x5d3f93['consumable']['test'](_0x50b1ef['markerRange'],_0x4ff3d7['name']))return;const _0x259ac5=_0x29c9d2['model'];for(const _0xa4497 of _0x50b1ef['markerRange']['getItems']()){if(!_0xa4497['is']('element','softBreak'))continue;const _0x39cadf='deletion'==_0x50b1ef['markerName']['split'](':')[0x1]?'merge':'split',_0x182d41=_0x5d3f93['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39cadf}),_0x47c56b=_0x5d3f93['mapper']['toViewPosition'](_0x259ac5['createPositionBefore'](_0xa4497));_0x3902ab&&_0x4751e3['activeMarkers']['includes'](_0x50b1ef['markerName'])&&_0x5d3f93['writer']['addClass']('ck-suggestion-marker--active',_0x182d41),_0x5d3f93['writer']['insert'](_0x47c56b,_0x182d41),_0x5d3f93['mapper']['bindElementToMarker'](_0x182d41,_0x50b1ef['markerName']);}};}class St extends _0x3c69b1{['afterInit'](){const _0x5a14cf=this['editor'],_0x2f0323=_0x5a14cf['model'],_0x4cfa20=_0x5a14cf['locale'];if(!_0x5a14cf['plugins']['has']('StandardEditingModeEditing'))return;const _0x38c7e7=_0x5a14cf['plugins']['get']('TrackChangesEditing'),_0x2fb50d='restrictedEditingException',_0x2d0b89=_0x5a14cf['commands']['get'](_0x2fb50d);_0x38c7e7['enableCommand'](_0x2fb50d,(_0x28de77,_0x16d375={})=>{const _0x2d4436=_0x2f0323['document']['selection'];if(_0x2d4436['isCollapsed'])return void _0x28de77(_0x16d375);const _0x5d18d7=void 0x0!==_0x16d375['forceValue']?_0x16d375['forceValue']:!_0x2d0b89['value'];_0x2f0323['change'](()=>{const _0x175a7f=Array['from'](_0x2d4436['getRanges']());for(const _0x38a8cb of _0x175a7f){const _0x4297be=_0x5d18d7?[_0x38a8cb]:io(_0x2fb50d,_0x38a8cb,_0x2f0323);for(const _0x2a9677 of _0x4297be)_0x38c7e7['markInlineFormat'](_0x2a9677,{'commandName':_0x2fb50d,'commandParams':[{'forceValue':_0x5d18d7}]});}});}),_0x38c7e7['descriptionFactory']['registerDescriptionCallback'](_0x56f8ee=>{if('formatBlock'!=_0x56f8ee['type']&&'formatInline'!=_0x56f8ee['type'])return;const {data:_0xf1807a}=_0x56f8ee;return _0xf1807a&&_0xf1807a['commandName']==_0x2fb50d?_0xf1807a['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x4cfa20,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x4cfa20,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class At extends _0x3c69b1{['afterInit'](){const _0x2a8cf7=this['editor'];if(!_0x2a8cf7['plugins']['has']('Style')||!_0x2a8cf7['plugins']['has']('DataSchema'))return;const _0x1a6de3=_0x2a8cf7['plugins']['get']('TrackChangesEditing'),_0x24f47f=_0x2a8cf7['locale'],_0x48bd38=_0x2a8cf7['config']['get']('style')||{},_0x29bb0a=_0x2a8cf7['plugins']['get']('GeneralHtmlSupport'),_0xa0336a=_0x2a8cf7['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2a8cf7['plugins']['get']('DataSchema'),_0x48bd38['definitions']);_0x1a6de3['enableDefaultAttributesIntegration']('style');const _0x333b7e=new Set();for(const _0x3ef2f9 of _0xa0336a['block']){const _0x29d2df=_0x29bb0a['getGhsAttributeNameForElement'](_0x3ef2f9['element']);_0x333b7e['add'](_0x29d2df);}const _0x3b0590=new Set();for(const _0x13ac62 of _0xa0336a['inline']){const _0x14b9a2=_0x29bb0a['getGhsAttributeNameForElement'](_0x13ac62['element']);_0x3b0590['add'](_0x14b9a2);for(const _0xe74c36 of _0x13ac62['ghsAttributes'])_0x3b0590['add'](_0xe74c36);}for(const _0x4f8dc2 of _0x333b7e)_0x1a6de3['registerBlockAttribute'](_0x4f8dc2),_0x1a6de3['descriptionFactory']['registerAttributeLabel'](_0x4f8dc2,o(_0x24f47f,'FORMAT_STYLE'));for(const _0x4da3b7 of _0x3b0590)_0x1a6de3['registerInlineAttribute'](_0x4da3b7),_0x1a6de3['descriptionFactory']['registerAttributeLabel'](_0x4da3b7,o(_0x24f47f,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5123e2=this['editor'],_0x253a90=_0x5123e2['locale'];_0x5123e2['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xda1f64=>{if('formatBlock'!=_0xda1f64['type']&&'formatInline'!=_0xda1f64['type'])return;const {data:_0x2298a4}=_0xda1f64;return _0x2298a4&&'style'===_0x2298a4['commandName']?_0x2298a4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x253a90,'*Set\x20format:*\x20%0',_0x2298a4['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x253a90,'*Remove\x20format:*\x20%0',_0x2298a4['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class It extends _0x3c69b1{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x3dfa70){super(_0x3dfa70),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1735f4=this['editor'],_0x57cabe=_0x1735f4['model']['document']['selection'];if(!_0x1735f4['plugins']['has']('TableEditing'))return;const _0x5f3201=_0x1735f4['locale'],_0x51888c=_0x1735f4['plugins']['get']('TrackChangesEditing'),_0x52bbc7=_0x1735f4['plugins']['get']('TableUtils');_0x51888c['descriptionFactory']['registerElementLabel']('table',_0x41fbb8=>o(_0x5f3201,'ELEMENT_TABLE',_0x41fbb8)),this['_setupColumnsRowsFixing'](),_0x51888c['enableCommand']('insertTable'),_0x51888c['enableCommand']('selectTableRow'),_0x51888c['enableCommand']('selectTableColumn');for(const _0x503189 of['insertTableRowAbove','insertTableRowBelow']){const _0x2c1d2b=_0x1735f4['commands']['get'](_0x503189);_0x51888c['enableCommand'](_0x503189,_0x3498af=>{_0x1735f4['model']['change'](_0x48e69a=>{_0x3498af();const _0x5e551a='above'===_0x2c1d2b['order'],_0x4ab92d=_0x52bbc7['getSelectionAffectedTableCells'](_0x57cabe),_0x43477b=_0x52bbc7['getRowIndexes'](_0x4ab92d),_0x38ddfc=_0x5e551a?_0x43477b['first']-0x1:_0x43477b['last']+0x1,_0x317502=_0x4ab92d[0x0]['findAncestor']('table'),_0x1853f3=_0x52bbc7['createTableWalker'](_0x317502,{'startRow':_0x38ddfc,'endRow':_0x38ddfc}),_0x29c63d=Array['from'](_0x1853f3)['map'](_0x10a731=>_0x48e69a['createRangeOn'](_0x10a731['cell']));_0x51888c['markMultiRangeInsertion'](_0x29c63d,'tableRow');});});}for(const _0x53cfa5 of['insertTableColumnLeft','insertTableColumnRight']){const _0x587f5c=_0x1735f4['commands']['get'](_0x53cfa5);_0x51888c['enableCommand'](_0x53cfa5,_0x4c0c0a=>{_0x1735f4['model']['change'](_0x4fec75=>{_0x4c0c0a();const _0x45405d='left'===_0x587f5c['order'],_0x44d2f7=_0x52bbc7['getSelectionAffectedTableCells'](_0x57cabe),_0x3c8d88=_0x52bbc7['getColumnIndexes'](_0x44d2f7),_0x3fe9c9=_0x45405d?_0x3c8d88['first']-0x1:_0x3c8d88['last']+0x1,_0x22f868=_0x44d2f7[0x0]['findAncestor']('table'),_0x4d5339=_0x52bbc7['createTableWalker'](_0x22f868,{'startRow':0x0,'column':_0x3fe9c9,'includeAllSlots':!0x1}),_0x372167=Array['from'](_0x4d5339)['map'](_0x2ff768=>_0x4fec75['createRangeOn'](_0x2ff768['cell']));_0x51888c['markMultiRangeInsertion'](_0x372167,'tableColumn');});});}for(const _0x32d3f0 of['removeTableRow','removeTableColumn']){const _0x2b69ae=_0x32d3f0['substr'](0xb),_0x24904a=_0x2b69ae['toLowerCase'](),_0x248b9e=_0x24904a['substr'](0x0,0x3)+'span',_0x449e76='table'+_0x2b69ae,_0x37c5ea='min'+_0x2b69ae,_0x5ed48c='max'+_0x2b69ae;_0x51888c['enableCommand'](_0x32d3f0,()=>{_0x1735f4['model']['change'](_0x33e1fc=>{const _0x13958a=_0x52bbc7['getSelectionAffectedTableCells'](_0x57cabe),_0x3b08e6=_0x13958a[0x0]['findAncestor']('table');let _0x434ca2;if('removeTableRow'==_0x32d3f0){const _0x3e8568=_0x52bbc7['getRowIndexes'](_0x13958a);_0x434ca2={'startRow':_0x3e8568['first'],'endRow':_0x3e8568['last'],'includeAllSlots':!0x0};}else{const _0x41b1d4=_0x52bbc7['getColumnIndexes'](_0x13958a);_0x434ca2={'startColumn':_0x41b1d4['first'],'endColumn':_0x41b1d4['last'],'includeAllSlots':!0x0};}const _0x227b13=_0x52bbc7['createTableWalker'](_0x3b08e6,_0x434ca2),_0x762cb8=Array['from'](_0x227b13)['map'](({cell:_0x3dcf1})=>_0x3dcf1),_0x35e1cb=Ee(_0x762cb8['filter'](_0x1bffc4=>_0x1bffc4['hasAttribute'](_0x248b9e))),_0x42f37d=Ee(_0x762cb8['filter'](_0x2be939=>!_0x2be939['hasAttribute'](_0x248b9e)))['map'](_0x5f0b7c=>_0x33e1fc['createRangeOn'](_0x5f0b7c)),_0x1b6b72=_0x51888c['markMultiRangeDeletion'](_0x42f37d,_0x449e76);if(_0x1b6b72&&('tableRow'==_0x1b6b72['subType']||'tableColumn'==_0x1b6b72['subType'])){const _0x57d23e=this['_getSuggestionCoords'](_0x1b6b72);for(const _0x3000f0 of _0x35e1cb){const _0x548a7c=_0x33e1fc['createRangeOn'](_0x3000f0),_0x5b0605=_0x52bbc7['getCellLocation'](_0x3000f0),_0x37f479=_0x3000f0['getAttribute'](_0x248b9e)-0x1,_0x4d9f83=_0x57d23e[_0x37c5ea],_0x2e006a=_0x57d23e[_0x5ed48c];_0x4d9f83<=_0x5b0605[_0x24904a]&&_0x5b0605[_0x24904a]+_0x37f479<=_0x2e006a&&_0x1b6b72['addRange'](_0x548a7c);}}});});}function _0x2de19c(_0x2bc081){const _0x3e8976=Array['from'](_0x57cabe['getRanges']())['map'](_0x5e94b8=>_0x22b4f7['fromRange'](_0x5e94b8));_0x1735f4['model']['change'](_0x5e7ac2=>{const _0x468c03=_0x5e7ac2['batch'];_0x2bc081=_0x2bc081['filter'](_0x4db4a3=>'$graveyard'!=_0x4db4a3['root']['rootName']),_0x5e7ac2['setSelection'](_0x2bc081),_0x1735f4['commands']['get']('removeTableRow')['refresh'](),_0x1735f4['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1735f4['model']['enqueueChange'](()=>{_0x1735f4['model']['enqueueChange'](_0x468c03,_0x81c9cf=>{const _0xf58818=_0x3e8976['filter'](_0x3533ae=>'$graveyard'!=_0x3533ae['root']['rootName']);_0xf58818['length']>0x0&&_0x81c9cf['setSelection'](_0xf58818);for(const _0x29c7e4 of _0x3e8976)_0x29c7e4['detach']();});});});}function _0x38009f(_0x4f7ff9){_0x1735f4['model']['change'](_0x423f84=>{const _0x2381be=Array['from'](_0x57cabe['getRanges']())['map'](_0x3753d6=>_0x22b4f7['fromRange'](_0x3753d6)),_0xd875ef=[];for(const _0x24bcd1 of _0x4f7ff9)for(const _0x5e62b8 of _0x24bcd1['getItems']({'shallow':!0x0}))_0xd875ef['push'](_0x5e62b8);for(const _0x1dd354 of _0xd875ef)'$graveyard'!=_0x1dd354['root']['rootName']&&(_0x423f84['setSelection'](_0x423f84['createPositionAt'](_0x1dd354,0x0)),_0x1735f4['commands']['get']('removeTableColumn')['refresh'](),_0x1735f4['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x4705e7=_0x2381be['filter'](_0x599ace=>'$graveyard'!=_0x599ace['root']['rootName']);_0x4705e7['length']>0x0&&_0x423f84['setSelection'](_0x4705e7);for(const _0x59ff96 of _0x2381be)_0x59ff96['detach']();});}function _0x49d569(_0x2a292d,_0x199574){return _0x199574['every'](_0x16ebf0=>_0x2a292d['some'](_0x985ad6=>_0x985ad6['end']['isEqual'](_0x16ebf0['start'])||_0x16ebf0['end']['isEqual'](_0x985ad6['start'])));}function _0x4dc972(_0x22e1b0,_0x2548a4){return!_0x22e1b0['some'](_0x448317=>_0x2548a4['some'](_0x25bc43=>_0x448317['isIntersecting'](_0x25bc43)))&&_0x22e1b0['some'](_0x3b59c9=>_0x2548a4['some'](_0x9d6a5c=>_0x3b59c9['end']['isTouching'](_0x9d6a5c['start'])));}_0x1735f4['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x8276c7,_0x4be40d,_0x18fd35)=>{if(!_0x18fd35['options']['showSuggestionHighlights'])return;const _0x3efea5=_0x4be40d['item'];if(!_0x3efea5)return;const _0x4016a1=_0x18fd35['mapper']['toViewElement'](_0x3efea5);function _0x4bd3c4(_0x55f6fd){return Array['isArray'](_0x55f6fd)?_0x55f6fd:[_0x55f6fd];}_0x4016a1&&'tableCell'===_0x3efea5['name']&&_0x199b19(_0x4016a1,_0x18fd35['writer'],(_0x359117,_0x1366f9,_0x5b8a4b)=>_0x5b8a4b['addClass'](_0x4bd3c4(_0x1366f9['classes']),_0x359117),(_0xe59f75,_0x4f6948,_0x41fa2c)=>_0x41fa2c['removeClass'](_0x4bd3c4(_0x4f6948['classes']),_0xe59f75));},{'priority':'highest'}),_0x51888c['descriptionFactory']['registerDescriptionCallback'](_0x3992d0=>{if('insertion'!=_0x3992d0['type']&&'deletion'!=_0x3992d0['type'])return;const _0x15b83a=_0x3992d0['getContainedElement']();if(null!=_0x15b83a&&_0x15b83a['is']('element','table')){if('insertion'==_0x3992d0['type']){const _0x3cdf07=_0x3992d0['getItems']()['filter'](_0x441c9b=>_0x441c9b['is']('$textProxy'))['map'](_0x362c24=>_0x362c24['data']);if(_0x3cdf07['length'])return{'type':'insertion','content':o(_0x5f3201,'*Insert:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3cdf07['join']('\x20')+'\x22'))};}if('deletion'==_0x3992d0['type']){const _0x13f66a=_0x3992d0['getItems']()['filter'](_0x48000=>_0x48000['is']('$textProxy'))['map'](_0x38242c=>_0x38242c['data']);if(_0x13f66a['length'])return{'type':'deletion','content':o(_0x5f3201,'*Remove:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x13f66a['join']('\x20')+'\x22'))};}}}),_0x51888c['descriptionFactory']['registerDescriptionCallback'](_0x409500=>{if('tableRow'==_0x409500['subType']){const _0x23de84=_0x409500['getItems']()['filter'](_0x4b3b8e=>_0x4b3b8e['is']('$textProxy'))['map'](_0x411012=>_0x411012['data']),_0x1bad58=this['_getSuggestionCoords'](_0x409500),_0x392b16=_0x1bad58['maxRow']-_0x1bad58['minRow']+0x1;if('insertion'==_0x409500['type'])return _0x23de84['length']?{'type':'insertion','content':o(_0x5f3201,'*Insert:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x392b16,'\x22'+_0x23de84['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5f3201,'*Insert:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_ROW',_0x392b16))};if('deletion'==_0x409500['type'])return _0x23de84['length']?{'type':'deletion','content':o(_0x5f3201,'*Remove:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x392b16,'\x22'+_0x23de84['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5f3201,'*Remove:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_ROW',_0x392b16))};}if('tableColumn'==_0x409500['subType']){const _0x5b3bd5=_0x409500['getItems']()['filter'](_0x2cfb51=>_0x2cfb51['is']('$textProxy'))['map'](_0x5764fa=>_0x5764fa['data']),_0x1b1be6=this['_getSuggestionCoords'](_0x409500),_0x5a9d97=_0x1b1be6['maxColumn']-_0x1b1be6['minColumn']+0x1;if('insertion'==_0x409500['type'])return _0x5b3bd5['length']?{'type':'insertion','content':o(_0x5f3201,'*Insert:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a9d97,'\x22'+_0x5b3bd5['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x5f3201,'*Insert:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_COLUMN',_0x5a9d97))};if('deletion'==_0x409500['type'])return _0x5b3bd5['length']?{'type':'deletion','content':o(_0x5f3201,'*Remove:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x5a9d97,'\x22'+_0x5b3bd5['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x5f3201,'*Remove:*\x20%0',o(_0x5f3201,'ELEMENT_TABLE_COLUMN',_0x5a9d97))};}}),_0x51888c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x2de19c),_0x51888c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x2de19c),_0x51888c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x38009f),_0x51888c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x38009f),_0x51888c['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x49d569),_0x51888c['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x49d569),_0x51888c['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x4dc972),_0x51888c['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x4dc972);}['_acceptFormatSuggestionCallbackFactory'](){const _0x36bda4=this['editor'],_0x843891=_0x36bda4['model']['document']['selection'];return(_0x14ab60,_0x4753b4)=>{_0x36bda4['model']['change'](_0xd3aed5=>{const {commandName:_0x2d276a,commandParams:_0xaccf91}=_0x4753b4;let _0x312339=_0x14ab60[0x0]['end']['nodeBefore'];_0xaccf91&&_0xaccf91[0x0]&&!0x1===_0xaccf91[0x0]['forceValue']&&(_0x312339=_0x14ab60[0x0]['start']['nodeAfter']);const _0x35b09a=_0xd3aed5['createRangeIn'](_0x312339);if('$graveyard'==_0x35b09a['root']['rootName'])return;const _0x442bb6=Array['from'](_0x843891['getRanges']())['map'](_0x30e61f=>_0x22b4f7['fromRange'](_0x30e61f));_0xd3aed5['setSelection'](_0x35b09a),_0x36bda4['commands']['get'](_0x2d276a)['refresh'](),_0xaccf91['push']({'forceDefaultExecution':!0x0}),_0x36bda4['execute'](_0x2d276a,..._0xaccf91);const _0x5e5921=_0x442bb6['filter'](_0x3a8bed=>'$graveyard'!=_0x3a8bed['root']['rootName']);_0x5e5921['length']>0x0&&_0xd3aed5['setSelection'](_0x5e5921);for(const _0x2ba298 of _0x442bb6)_0x2ba298['detach']();});};}['_getCoordsForCells'](_0x17c5bc){const _0x47f454=this['editor']['plugins']['get']('TableUtils');let _0x291f8b=Number['MAX_SAFE_INTEGER'],_0x2080ff=Number['MIN_SAFE_INTEGER'],_0x362357=Number['MAX_SAFE_INTEGER'],_0x1aaa50=Number['MIN_SAFE_INTEGER'];for(const _0x366806 of _0x17c5bc){if('$graveyard'==_0x366806['root']['rootName'])continue;const {row:_0x5d72f9,column:_0x11b860}=_0x47f454['getCellLocation'](_0x366806),_0x147464=_0x366806['hasAttribute']('rowspan')?_0x366806['getAttribute']('rowspan')-0x1:0x0,_0x4368d2=_0x366806['hasAttribute']('colspan')?_0x366806['getAttribute']('colspan')-0x1:0x0;_0x291f8b=_0x5d72f9<_0x291f8b?_0x5d72f9:_0x291f8b,_0x2080ff=_0x5d72f9+_0x147464>_0x2080ff?_0x5d72f9+_0x147464:_0x2080ff,_0x362357=_0x11b860<_0x362357?_0x11b860:_0x362357,_0x1aaa50=_0x11b860+_0x4368d2>_0x1aaa50?_0x11b860+_0x4368d2:_0x1aaa50;}return{'minRow':_0x291f8b,'maxRow':_0x2080ff,'minColumn':_0x362357,'maxColumn':_0x1aaa50};}['_setupColumnsRowsFixing'](){const _0x6757cc=this['editor'],_0x47015f=_0x6757cc['plugins']['get']('TrackChangesEditing'),_0xc32664=_0x6757cc['plugins']['get']('TableUtils');_0x6757cc['model']['document']['on']('change:data',()=>{const _0x2bec76=Array['from'](_0x6757cc['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1b62a9,data:_0x4d6659}of _0x2bec76){const {group:_0xe4e586,id:_0x1008d4,subType:_0x48c8d1}=_0x47015f['_splitMarkerName'](_0x1b62a9);if('suggestion'!=_0xe4e586)continue;if(null!=_0x4d6659['oldRange'])continue;const _0x5a2182=_0x47015f['getSuggestion'](_0x1008d4);this['_tablePostFixingSubtypes']['includes'](_0x48c8d1)&&this['_tableSuggestions']['add'](_0x5a2182);}},{'priority':'low'});const _0x43f4b0=(_0x342daa,_0x694373)=>{let _0x2b0902=!0x1;const _0x1e2e59=_0x694373['createRangeOn'](_0x342daa),_0x482ec7=_0x342daa['findAncestor']('table'),_0x15cab0=_0xc32664['getCellLocation'](_0x342daa);for(const _0xeb3f93 of this['_tableSuggestions']){const _0x133eda=_0xeb3f93['subType'],_0x165c49=_0x133eda['startsWith']('tablePaste'),_0x58c48d=_0x133eda['substr'](_0x165c49?0xa:0x5),_0x54d723=_0x58c48d['toLowerCase'](),_0x27a9b6=_0x54d723['substr'](0x0,0x3)+'span',_0xced0a2='min'+_0x58c48d,_0x29167a='max'+_0x58c48d;if(!_0xeb3f93['isInContent'])continue;if(_0x482ec7!=_0xeb3f93['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0xeb3f93['isIntersectingWithRange'](_0x1e2e59))continue;const _0x1dc8ce=_0x342daa['hasAttribute'](_0x27a9b6)?_0x342daa['getAttribute'](_0x27a9b6)-0x1:0x0,_0x202805=this['_getSuggestionCoords'](_0xeb3f93),_0x2615cb=_0x202805[_0xced0a2],_0x5db5eb=_0x202805[_0x29167a];_0x2615cb<=_0x15cab0[_0x54d723]&&_0x15cab0[_0x54d723]+_0x1dc8ce<=_0x5db5eb&&(_0xeb3f93['addRange'](_0x1e2e59),_0x2b0902=!0x0);}return _0x2b0902;};_0x6757cc['model']['document']['registerPostFixer'](_0x5b71d5=>{let _0x126f0b=!0x1;for(const _0x5d488e of _0x6757cc['model']['document']['differ']['getChanges']())if('insert'==_0x5d488e['type']){if('tableRow'==_0x5d488e['name']){for(const _0x415c1b of _0x5d488e['position']['nodeAfter']['getChildren']())_0x126f0b=_0x126f0b||_0x43f4b0(_0x415c1b,_0x5b71d5);}else'tableCell'==_0x5d488e['name']&&(_0x126f0b=_0x126f0b||_0x43f4b0(_0x5d488e['position']['nodeAfter'],_0x5b71d5));}return _0x126f0b;});}['_getSuggestionCoords'](_0x160334){return this['_getCoordsForCells'](_0x160334['getRanges']()['map'](_0x179f14=>_0x179f14['start']['nodeAfter']));}}function Ee(_0x5c804d){return Array['from'](new Set(_0x5c804d)['values']());}class vt extends _0x3c69b1{static get['requires'](){return[It];}['afterInit'](){const _0xe497f6=this['editor'],_0x41ff1e=_0xe497f6['model']['document']['selection'],_0x3558d2=_0xe497f6['locale'];if(!_0xe497f6['plugins']['has']('TableEditing'))return;const _0x108b29=_0xe497f6['plugins']['get']('TrackChangesEditing'),_0xb728c=_0xe497f6['plugins']['get']('TableUtils'),_0x362897=_0xe497f6['plugins']['get'](It);_0x362897['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x108b29['enableCommand']('mergeTableCells',()=>{const _0x282789=_0xb728c['getSelectionAffectedTableCells'](_0xe497f6['model']['document']['selection']);_0xe497f6['model']['change'](()=>{_0x108b29['markMultiRangeBlockFormat'](_0x282789,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0xe497f6['commands']['get']('mergeTableCells')['on']('execute',(_0x2bf209,_0x359bbf)=>{_0xe497f6['commands']['get']('trackChanges')['value']&&(_0x359bbf['length']>0x0&&_0x359bbf[_0x359bbf['length']-0x1]&&_0x359bbf[_0x359bbf['length']-0x1]['forceDefaultExecution']||_0x108b29['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2bf209['stop']());},{'priority':'highest'});for(const _0x23a4de of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1addce=_0xe497f6['commands']['get'](_0x23a4de);_0x108b29['enableCommand'](_0x23a4de,()=>{const _0x1fba5c=_0xe497f6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x3f193a=>_0x3f193a['is']('element','tableCell')),_0x26a910=_0x1addce['value'];_0xe497f6['model']['change'](()=>{_0x108b29['markMultiRangeBlockFormat']([_0x1fba5c,_0x26a910],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x18a377 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x35bcf5=_0xe497f6['commands']['get'](_0x18a377);_0x108b29['enableCommand'](_0x18a377,()=>{const _0x1cd1f0=_0xb728c['getSelectionAffectedTableCells'](_0xe497f6['model']['document']['selection'])[0x0],_0x13ee3f=_0x1cd1f0['findAncestor']('table'),{column:_0x3708ff,row:_0x195c24}=_0xb728c['getCellLocation'](_0x1cd1f0);let _0x3cbd19=[];if('horizontally'==_0x35bcf5['direction']){const _0x400e56=_0xb728c['createTableWalker'](_0x13ee3f,{'startRow':_0x195c24,'endRow':_0x195c24,'includeAllSlots':!0x0});_0x3cbd19=Array['from'](_0x400e56)['map'](_0x1a27f6=>_0x1a27f6['cell']);}else{const _0x3711ab=_0xb728c['createTableWalker'](_0x13ee3f,{'column':_0x3708ff,'includeAllSlots':!0x0});_0x3cbd19=Array['from'](_0x3711ab)['map'](_0x23df06=>_0x23df06['cell']);}_0xe497f6['model']['change'](_0x43d702=>{_0x108b29['markBlockFormat'](_0x43d702['createRangeOn'](_0x1cd1f0),{'commandName':_0x18a377,'commandParams':[]},_0x3cbd19,_0x18a377);});});}_0x108b29['descriptionFactory']['registerDescriptionCallback'](_0x49a149=>{if('formatBlock'!=_0x49a149['type']&&'formatInline'!=_0x49a149['type'])return;const {data:_0x2b17a7}=_0x49a149;return _0x2b17a7&&'mergeTableCells'==_0x2b17a7['commandName']?{'type':'format','content':o(_0x3558d2,'*Merge\x20cells*')}:void 0x0;}),_0x108b29['descriptionFactory']['registerDescriptionCallback'](_0x59456f=>{if('formatBlock'!=_0x59456f['type']&&'formatInline'!=_0x59456f['type'])return;const {data:_0x388f68}=_0x59456f;return _0x388f68?'splitTableCellVertically'==_0x388f68['commandName']?{'type':'format','content':o(_0x3558d2,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x388f68['commandName']?{'type':'format','content':o(_0x3558d2,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x4040bd=_0x362897['_acceptFormatSuggestionCallbackFactory']();for(const _0x2a8474 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x108b29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a8474,'accept',_0x4040bd);for(const _0x2a47f4 of['splitTableCellVertically','splitTableCellHorizontally'])_0x108b29['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2a47f4,'accept',_0x4040bd);_0x108b29['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x12abb4=>{_0xe497f6['model']['change'](_0x5da765=>{const _0x8e2e4e=Array['from'](_0x41ff1e['getRanges']())['map'](_0x107926=>_0x22b4f7['fromRange'](_0x107926));_0x5da765['setSelection'](_0x12abb4),_0xe497f6['commands']['get']('mergeTableCells')['refresh'](),_0xe497f6['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x32a99c=_0x8e2e4e['filter'](_0x5dd4e4=>'$graveyard'!=_0x5dd4e4['root']['rootName']);_0x32a99c['length']>0x0&&_0x5da765['setSelection'](_0x32a99c);for(const _0x286c29 of _0x8e2e4e)_0x286c29['detach']();});});for(const _0x9c9188 of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x51c07f=_0xe497f6['commands']['get'](_0x9c9188);_0x51c07f['on']('set:isEnabled',(_0x2ac587,_0x21ff14,_0x1f3d94)=>{if(_0x1f3d94){const _0x2d2002=_0xe497f6['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x51f7da=>_0x51f7da['is']('element','tableCell'));this['_areMergableCells'](_0x51c07f['value'],_0x2d2002)||(_0x2ac587['return']=!0x1,_0x2ac587['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x4e3346=this['editor']['commands']['get']('mergeTableCells'),_0x1e5ad6=this['editor']['plugins']['get']('TableUtils');if(!_0x4e3346['isEnabled'])return!0x1;const _0x161c40=_0x1e5ad6['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x31fd6f of _0x161c40)for(const _0x333901 of _0x161c40)if(_0x31fd6f!=_0x333901&&!this['_areMergableCells'](_0x31fd6f,_0x333901))return!0x1;return!0x0;}['_areMergableCells'](_0x7988c2,_0x6d5194){const _0x4582bc=this['editor']['plugins']['get']('TrackChangesEditing'),_0xde523f=this['editor']['model']['createRangeOn'](_0x7988c2),_0x571e2b=this['editor']['model']['createRangeOn'](_0x6d5194),_0x19d1fe=new Set(),_0x46196a=new Set();for(const _0x2a1317 of _0x4582bc['getSuggestions']())if(('insertion'==_0x2a1317['type']||'deletion'==_0x2a1317['type']||'mergeTableCells'==_0x2a1317['subType'])&&_0x2a1317['isInContent']){for(const _0x32b9c1 of _0x2a1317['getRanges']())_0x32b9c1['containsRange'](_0xde523f,!0x0)&&_0x19d1fe['add'](_0x2a1317['type']+':'+_0x2a1317['author']['id']),_0x32b9c1['containsRange'](_0x571e2b,!0x0)&&_0x46196a['add'](_0x2a1317['type']+':'+_0x2a1317['author']['id']);}if(_0x19d1fe['size']!=_0x46196a['size'])return!0x1;for(const _0x406231 of _0x19d1fe)if(!_0x46196a['has'](_0x406231))return!0x1;return!0x0;}}class Ct extends _0x3c69b1{static get['requires'](){return[It];}['afterInit'](){const _0x35d816=this['editor'];if(!_0x35d816['plugins']['has']('TableEditing'))return;const _0x18b823=_0x35d816['locale'],_0x3ebea3=_0x35d816['plugins']['get']('TrackChangesEditing');_0x3ebea3['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x3ebea3['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x3ebea3['registerBlockAttribute']('headingRows'),_0x3ebea3['registerBlockAttribute']('headingColumns'),_0x3ebea3['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x18b823,'FORMAT_HEADER_ROW')),_0x3ebea3['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x18b823,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x466121=this['editor']['plugins']['get']('TrackChangesEditing'),_0x28b56a=this['editor']['plugins']['get']('TableUtils'),_0x1214bd=this['editor']['plugins']['get'](It)['_acceptFormatSuggestionCallbackFactory']();function _0x4a08a9({showActiveMarker:_0x5cdc7b=!0x0,setDataAttribute:_0x54da33=!0x0}={}){return(_0x51ebff,_0x22a6f0,_0x594ebc)=>{const {type:_0x325255,id:_0x4aefa0}=_0x466121['_splitMarkerName'](_0x22a6f0['markerName']),_0x3dc08d=_0x466121['getSuggestion'](_0x4aefa0),_0x3b7545=_0x3dc08d['data'];if('formatBlock'!=_0x3dc08d['type']||!_0x3b7545||'setTableColumnHeader'!=_0x3b7545['commandName'])return;if(_0x22a6f0['item'])return void _0x51ebff['stop']();if(!_0x594ebc['consumable']['consume'](_0x22a6f0['markerRange'],_0x51ebff['name']))return;const _0x334567=_0x22a6f0['markerRange']['start']['nodeAfter'],_0x24303e=_0x22a6f0['markerRange']['end']['nodeBefore'],_0x3c896a=_0x334567['parent']['parent'],{column:_0xdecf2e}=_0x28b56a['getCellLocation'](_0x334567),{column:_0x2b70ea}=_0x28b56a['getCellLocation'](_0x24303e);for(let _0xa525d4=_0xdecf2e;_0xa525d4<=_0x2b70ea;_0xa525d4++){const _0x1b676=_0x28b56a['createTableWalker'](_0x3c896a,{'column':_0xa525d4,'includeAllSlots':!0x1});for(const _0x9c8abd of _0x1b676){const _0x34f08e=_0x9c8abd['cell'],_0x286f4f=_0x594ebc['mapper']['toViewElement'](_0x34f08e);_0x594ebc['writer']['addClass']('ck-suggestion-marker-'+_0x325255,_0x286f4f),_0x54da33&&_0x594ebc['writer']['setAttribute']('data-suggestion',_0x4aefa0,_0x286f4f),_0x594ebc['mapper']['bindElementToMarker'](_0x286f4f,_0x22a6f0['markerName']),_0x5cdc7b&&(_0x466121['activeMarkers']['includes'](_0x22a6f0['markerName'])?_0x594ebc['writer']['addClass']('ck-suggestion-marker--active',_0x286f4f):_0x594ebc['writer']['removeClass']('ck-suggestion-marker--active',_0x286f4f));}}};}_0x466121['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x1214bd),_0x466121['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x1214bd),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x4a08a9(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xd710d2,_0x4aa56c,_0x49643c)=>{_0x49643c['options']['showSuggestionHighlights']&&_0x4a08a9({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0xd710d2,_0x4aa56c,_0x49643c);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x20100f,_0x4895d2,_0x2c0195)=>{const {type:_0x57e3ec,id:_0x13b868}=_0x466121['_splitMarkerName'](_0x4895d2['markerName']),_0x41634e=_0x466121['getSuggestion'](_0x13b868),_0x3f94af=_0x41634e['data'];if('formatBlock'!=_0x41634e['type']||!_0x3f94af||'setTableColumnHeader'!=_0x3f94af['commandName'])return;const _0x4233b2=_0x2c0195['mapper']['markerNameToElements'](_0x4895d2['markerName']);if(_0x4233b2){for(const _0x527653 of _0x4233b2)_0x2c0195['writer']['removeClass']('ck-suggestion-marker-'+_0x57e3ec,_0x527653),_0x2c0195['writer']['removeClass']('ck-suggestion-marker--active',_0x527653),_0x2c0195['writer']['removeAttribute']('data-suggestion',_0x527653),_0x2c0195['mapper']['unbindElementFromMarkerName'](_0x527653,_0x4895d2['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x77a2e4=this['editor'],_0x3bd067=_0x77a2e4['locale'];function _0xfe5665(_0x44e927){return{'type':'format','content':o(_0x3bd067,'*Format:*\x20%0',_0x44e927)};}_0x77a2e4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x127468=>{if('formatBlock'!=_0x127468['type'])return;const {data:_0x53c09f}=_0x127468;if(_0x53c09f){if('setTableRowHeader'==_0x53c09f['commandName']){const _0x244456=_0x53c09f['commandParams'][0x0]['forceValue'];return _0xfe5665(o(_0x3bd067,_0x244456?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x53c09f['commandName']){const _0x42d2de=_0x53c09f['commandParams'][0x0]['forceValue'];return _0xfe5665(o(_0x3bd067,_0x42d2de?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const Ce=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Pe=Object['fromEntries'](Ce['map'](_0x3d989e=>[_0x3d989e,null]));class _t extends _0x3c69b1{static get['requires'](){return[It];}['afterInit'](){const _0x17002b=this['editor'];if(!_0x17002b['plugins']['has']('TableClipboard'))return;const _0x51157c=_0x17002b['plugins']['get']('TrackChangesEditing'),_0x177575=_0x17002b['plugins']['get']('TableUtils'),_0x26c016=_0x17002b['plugins']['get'](It),_0x5d4578=_0x17002b['plugins']['get']('TableClipboard');_0x26c016['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x17002b['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x17002b['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x8386ba=null;_0x17002b['model']['on']('insertContent',(_0x3a0098,_0x229dba)=>{const [_0x1081c2,_0x17af5f]=_0x229dba,_0x4d7f5c=_0x229dba[_0x229dba['length']-0x1];_0x4d7f5c&&_0x4d7f5c['forceDefaultExecution']||_0x51157c['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x100350,_0x33b576,_0x37f30f,_0x52601a,_0x5f2c9c){if(_0x33b576&&!_0x33b576['is']('documentSelection'))return!0x1;const _0x10efe0=_0x5f2c9c['getTableIfOnlyTableInContent'](_0x100350,_0x37f30f);if(!_0x10efe0||!ke(_0x10efe0,void 0x0,_0x52601a))return!0x1;const _0x1a5fb6=_0x52601a['getSelectionAffectedTableCells'](_0x37f30f['document']['selection']);if(!_0x1a5fb6['length'])return!0x1;const _0x5c96c0=_0x1a5fb6[0x0]['findAncestor']('table'),_0x20a769=_0x52601a['getRowIndexes'](_0x1a5fb6),_0x265d34=_0x52601a['getColumnIndexes'](_0x1a5fb6),_0x30bde1={'startRow':_0x20a769['first'],'endRow':_0x20a769['last'],'startColumn':_0x265d34['first'],'endColumn':_0x265d34['last']};return 0x1==_0x1a5fb6['length']&&(_0x30bde1['endRow']+=_0x52601a['getRows'](_0x10efe0)-0x1,_0x30bde1['endColumn']+=_0x52601a['getColumns'](_0x10efe0)-0x1),ke(_0x5c96c0,_0x30bde1,_0x52601a);}(_0x1081c2,_0x17af5f,_0x17002b['model'],_0x177575,_0x5d4578)&&(_0x3a0098['stop'](),_0x8386ba={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x17002b['model']['change'](()=>{_0x17002b['model']['insertContent'](_0x229dba[0x0],_0x229dba[0x1],_0x229dba[0x2],{'forceDefaultExecution':!0x0});const _0x5cadf7=_0x56aadc(),{rowInsertionRanges:_0x59a503,columnInsertionRanges:_0x22ea68,insertionRanges:_0x12fbb8,deletionRanges:_0x115ca8,cells:_0x4ff1ae}=_0x8386ba;_0x59a503['length']&&_0x51157c['markMultiRangeInsertion'](_0x59a503,'tablePasteRow',{'tablePasteChainId':_0x5cadf7}),_0x22ea68['length']&&_0x51157c['markMultiRangeInsertion'](_0x22ea68,'tablePasteColumn',{'tablePasteChainId':_0x5cadf7}),_0x12fbb8['length']&&(_0x51157c['markMultiRangeInsertion'](_0x12fbb8,'tablePaste',{'tablePasteChainId':_0x5cadf7,'skipNestingCheck':!0x0}),_0x12fbb8['forEach'](_0x52352d=>_0x52352d['detach']?.())),_0x115ca8['length']&&(_0x51157c['markMultiRangeDeletion'](_0x115ca8,'tablePaste',{'tablePasteChainId':_0x5cadf7,'skipNestingCheck':!0x0}),_0x115ca8['forEach'](_0x5b706e=>_0x5b706e['detach']?.()));const _0x2c5dbd=_0x51157c['markMultiRangeBlockFormat'](_0x4ff1ae['map'](({element:_0x12c1e1})=>_0x12c1e1),{'formatGroupId':_0x56aadc()},[],'tablePasteCell',{'tablePasteChainId':_0x5cadf7});if(_0x2c5dbd){const _0x519b69=_0x2c5dbd['getMarkers'](),_0x47f6c7=[];for(const {element:_0x22ddbc,attributes:_0xe7e7c3}of _0x4ff1ae){if(!_0xe7e7c3)continue;const _0x4ba040=_0x17002b['model']['createRangeOn'](_0x22ddbc),_0x2b08eb=_0x519b69['find'](_0x50c7fb=>_0x50c7fb['getRange']()['isEqual'](_0x4ba040));_0x2b08eb&&_0x47f6c7['push']([_0x2b08eb['name'],_0xe7e7c3]);}_0x47f6c7['length']&&_0x2c5dbd['setAttribute']('markerAttributes',Object['fromEntries'](_0x47f6c7));}_0x8386ba=null;}));},{'priority':_0x2de423['high']+0xa}),_0x17002b['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x206f96,_0x1d6d7d)=>{const [_0x1136bd,_0x532882,,_0x3f2f10]=_0x1d6d7d;if(!_0x8386ba)return;_0x206f96['stop']();const _0x343d0f=_0x1136bd['cell'],_0x197935=_0x532882,_0x11af26=we(_0x343d0f),_0x1410ac=we(_0x197935);_0x206f96['return']=_0x343d0f;let _0x3b71a3=null,_0x276784=null;if(_0x1410ac||_0x11af26){if(_0x11af26&&!_0x1410ac){_0x3f2f10['remove'](_0x343d0f['getChild'](0x0));for(const _0x1555cb of Array['from'](_0x197935['getChildren']()))_0x3f2f10['insert'](_0x1555cb,_0x343d0f,'end');const _0xf47fa0=_0x8386ba['rowInsertionIndexes']['includes'](_0x1136bd['row']),_0x3775d9=_0x8386ba['columnInsertionIndexes']['includes'](_0x1136bd['column']);_0xf47fa0||_0x3775d9||(_0x3b71a3=_0x22b4f7['fromRange'](_0x3f2f10['createRangeIn'](_0x343d0f)));}else _0x1410ac&&!_0x11af26&&(_0x276784=_0x3f2f10['createRangeIn'](_0x343d0f));}else{const _0x24060d=_0x3f2f10['createElement']('tableCellSuggestion'),_0xe1044=_0x3f2f10['createElement']('tableCellSuggestion');_0x3f2f10['wrap'](_0x3f2f10['createRangeIn'](_0x343d0f),_0xe1044),_0x3f2f10['insert'](_0x24060d,_0x343d0f,0x0);for(const _0x5c61ea of Array['from'](_0x197935['getChildren']()))_0x3f2f10['insert'](_0x5c61ea,_0x24060d,'end');_0x3b71a3=_0x22b4f7['fromRange'](_0x3f2f10['createRangeOn'](_0x24060d)),_0x276784=_0x22b4f7['fromRange'](_0x3f2f10['createRangeOn'](_0xe1044));}const _0x159179=Array['from'](_0x197935['getAttributes']())['filter'](([_0x397cfb])=>Ce['includes'](_0x397cfb));_0x8386ba['cells']['push']({'element':_0x343d0f,'attributes':_0x159179['length']?Object['fromEntries'](_0x159179):null}),_0x3b71a3&&_0x8386ba['insertionRanges']['push'](_0x3b71a3),_0x276784&&_0x8386ba['deletionRanges']['push'](_0x276784);},{'priority':'high'}),_0x177575['on']('insertColumns',(_0x5016a9,_0x3e31f8)=>{const [_0x3204dd,_0x5aa3b3={}]=_0x3e31f8;if(!_0x8386ba)return;const _0x14592f=_0x5aa3b3['at']||0x0,_0x10f798=_0x5aa3b3['columns']||0x1;_0x8386ba['columnInsertionIndexes']=new Array(_0x10f798)['fill'](_0x14592f)['map']((_0x4cb298,_0x16fdf9)=>_0x4cb298+_0x16fdf9);for(const {cell:_0x5194b0}of _0x177575['createTableWalker'](_0x3204dd,{'startColumn':_0x14592f,'endColumn':_0x14592f+_0x10f798-0x1}))_0x8386ba['columnInsertionRanges']['push'](_0x17002b['model']['createRangeOn'](_0x5194b0));},{'priority':'low'}),_0x177575['on']('insertRows',(_0x373dc9,_0x4d11a7)=>{const [_0x78f1e1,_0x9f442b={}]=_0x4d11a7;if(!_0x8386ba)return;const _0x3e2e0e=_0x9f442b['at']||0x0,_0xfd9e64=_0x9f442b['rows']||0x1;_0x8386ba['rowInsertionIndexes']=new Array(_0xfd9e64)['fill'](_0x3e2e0e)['map']((_0x185843,_0x48487a)=>_0x185843+_0x48487a);for(const {cell:_0xc36060}of _0x177575['createTableWalker'](_0x78f1e1,{'startRow':_0x3e2e0e,'endRow':_0x3e2e0e+_0xfd9e64-0x1}))_0x8386ba['rowInsertionRanges']['push'](_0x17002b['model']['createRangeOn'](_0xc36060));},{'priority':'low'}),_0x51157c['descriptionFactory']['registerDescriptionCallback'](_0x23c6d2=>{if(_0x23c6d2['subType']&&_0x23c6d2['subType']['startsWith']('tablePaste'))return _0x23c6d2['previous']?{}:{'type':'insertion','content':o(_0x17002b['locale'],'*Replace\x20table\x20cells*')};});const _0x56b745=()=>!0x1;for(const _0x596ae9 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x51157c['_suggestionFactory']['registerCustomCallback']('insertion',_0x596ae9,'join',_0x56b745),_0x51157c['_suggestionFactory']['registerCustomCallback']('deletion',_0x596ae9,'join',_0x56b745),_0x51157c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x596ae9,'join',_0x56b745);_0x51157c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x56b745),_0x51157c['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x538b8e,_0x158eb1,_0x4c2787)=>{const _0x1f3f8a=_0x538b8e['map'](_0x553f8c=>_0x553f8c['getContainedElement']())['filter'](_0x1c9fed=>_0x1c9fed),_0x42edf2=new Map(_0x1f3f8a['map'](_0x3fad3f=>[_0x3fad3f,null]));if(_0x8386ba){for(const {element:_0x1434e3,attributes:_0x4bc2c3}of _0x8386ba['cells'])_0x4bc2c3&&_0x42edf2['set'](_0x1434e3,_0x4bc2c3);}else{if(_0x4c2787&&_0x4c2787['markerAttributes'])for(const [_0x23e554,_0x2d3726]of Object['entries'](_0x4c2787['markerAttributes'])){const _0x1c6d93=_0x17002b['model']['markers']['get'](_0x23e554),_0x4affc3=_0x1c6d93?_0x1c6d93['getRange']()['getContainedElement']():null;_0x4affc3&&_0x42edf2['set'](_0x4affc3,_0x2d3726);}}_0x17002b['model']['change'](_0x4bcae1=>{for(const [_0x52cb34,_0x23ad0c]of _0x42edf2)_0x4bcae1['setAttributes']({...Pe,..._0x23ad0c},_0x52cb34);});});const _0x12de12=(_0x259d55,_0x2776dc)=>{_0x51157c['_suggestionFactory']['registerCustomCallback'](_0x259d55,'tablePaste',_0x2776dc,(_0x39bf6b,_0x5426ad,_0x31272f)=>{_0x17002b['model']['change'](_0x40d470=>{const _0x46ebbc=[];for(const _0x246b2d of _0x39bf6b){const _0x25c8f9=_0x246b2d['start']['nodeAfter'];_0x25c8f9['is']('element','tableCellSuggestion')&&_0x46ebbc['push'](_0x25c8f9);}_0x51157c['_suggestionFactory']['getSuggestionCallback'](_0x259d55,null,_0x2776dc)(_0x39bf6b,_0x5426ad,_0x31272f);for(const _0x16a46e of _0x46ebbc)'$graveyard'!=_0x16a46e['root']['rootName']&&_0x40d470['unwrap'](_0x16a46e);});});};_0x12de12('insertion','accept'),_0x12de12('insertion','discard'),_0x12de12('deletion','accept'),_0x12de12('deletion','discard'),_0x51157c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x1f55ef=>{const _0x59d98a=_0x1f55ef['map'](_0x2eea74=>_0x2eea74['getContainedElement']()),_0x328e19=_0x59d98a[0x0]['findAncestor']('table'),{minRow:_0x21f756,maxRow:_0x1ba93c}=_0x26c016['_getCoordsForCells'](_0x59d98a);_0x177575['removeRows'](_0x328e19,{'at':_0x21f756,'rows':_0x1ba93c-_0x21f756+0x1});}),_0x51157c['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x9fcc48=>{const _0x83b94d=_0x9fcc48['map'](_0x56c331=>_0x56c331['getContainedElement']()),_0x3a05c0=_0x83b94d[0x0]['findAncestor']('table'),{minColumn:_0xd967e8,maxColumn:_0x4e1414}=_0x26c016['_getCoordsForCells'](_0x83b94d);_0x177575['removeColumns'](_0x3a05c0,{'at':_0xd967e8,'columns':_0x4e1414-_0xd967e8+0x1});});const _0x4cd990=(_0x117187,_0x8c99bd)=>{if(!_0x8c99bd['subType']||!_0x8c99bd['subType']['startsWith']('tablePaste'))return;const _0x32a135=_0x8c99bd['attributes']['tablePasteChainId'],_0x9fea12=_0x51157c['getSuggestions']()['filter'](_0x4e645e=>_0x4e645e['isInContent']&&_0x4e645e['attributes']&&_0x4e645e['attributes']['tablePasteChainId']==_0x32a135);_0x9fea12['length']&&_0x8c99bd['getAllAdjacentSuggestions']()['length']!=_0x9fea12['length']&&_0x9fea12['reduce']((_0x4af53f,_0x44e826)=>(_0x4af53f['next']=_0x44e826,_0x44e826['previous']=_0x4af53f,_0x44e826));};function _0x420bea(_0x12ea80,_0x1493e7=!0x0){const {id:_0xf6a653}=_0x51157c['_splitMarkerName'](_0x12ea80['markerName']),_0x56ba08=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x44fd24=_0x51157c['activeMarkers']['includes'](_0x12ea80['markerName']);return _0x44fd24&&_0x56ba08['push']('ck-suggestion-marker--active'),{'classes':_0x56ba08,'attributes':{'data-suggestion':_0xf6a653},'priority':_0x44fd24&&_0x1493e7?0xbc2:0xbb8};}_0x51157c['on']('suggestionLoaded',_0x4cd990,{'priority':'high'}),_0x51157c['on']('suggestionUnloaded',_0x4cd990,{'priority':'high'}),_0x17002b['model']['document']['registerPostFixer'](()=>{let _0x5528ab=!0x1;const _0x401c57=Array['from'](_0x17002b['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x8085a9,data:_0x3fb99c}of _0x401c57){const {group:_0x5a0f43,type:_0x2094f8,id:_0x420964}=_0x51157c['_splitMarkerName'](_0x8085a9);if('suggestion'!=_0x5a0f43||'deletion'!=_0x2094f8||_0x3fb99c['oldRange'])continue;if(!_0x51157c['hasSuggestion'](_0x420964))continue;const _0x18fad7=_0x51157c['getSuggestion'](_0x420964)['getRanges'](),_0x472e57=_0x17002b['plugins']['get']('Users')['me'];for(const _0x3e6076 of _0x51157c['getSuggestions']()){if(!_0x3e6076['isInContent']||_0x3e6076['author']!=_0x472e57)continue;if('formatBlock'!=_0x3e6076['type']||'tablePasteCell'!=_0x3e6076['subType'])continue;if(_0x3e6076['getRanges']()['every'](_0x2f0d1c=>_0x18fad7['some'](_0x1c11b0=>_0x1c11b0['containsRange'](_0x2f0d1c,!0x0)))){for(const _0x4680b2 of _0x3e6076['getAllAdjacentSuggestions']())_0x4680b2['isInContent']&&(_0x4680b2['discard'](),_0x5528ab=!0x0);}}}return _0x5528ab;}),_0x17002b['model']['document']['registerPostFixer'](_0x25645c=>{const _0x4e5e78=_0x17002b['commands']['get']('redo');if(!_0x4e5e78||!_0x4e5e78['_createdBatches']['has'](_0x25645c['batch']))return!0x1;let _0x5525c6=!0x1;const _0x32a0af=_0x17002b['plugins']['get']('Users')['me'],_0x3a3e29=_0x17002b['model']['document']['differ']['getChanges'](),_0x508855=Array['from'](_0x17002b['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x385515,data:_0x1ac160})=>{const {group:_0x3beb9a,subType:_0x5276ce,authorId:_0x458562}=_0x51157c['_splitMarkerName'](_0x385515);return'suggestion'==_0x3beb9a&&'tablePaste'==_0x5276ce&&_0x458562==_0x32a0af['id']&&!_0x1ac160['oldRange'];});for(const _0x12914d of _0x3a3e29){if('insert'!=_0x12914d['type']||'tableCellSuggestion'!=_0x12914d['name']||0x1!=_0x12914d['length'])continue;const _0xf62dfd=_0x25645c['createRange'](_0x12914d['position'],_0x12914d['position']['getShiftedBy'](0x1));if(!_0x508855['find'](({data:_0x5aec1e})=>_0x5aec1e['newRange']['isEqual'](_0xf62dfd))){for(const {name:_0x317a3a,data:_0xc77ed3}of _0x508855)if(_0xf62dfd['containsRange'](_0xc77ed3['newRange'])){_0x25645c['updateMarker'](_0x317a3a,{'range':_0xf62dfd}),_0x5525c6=!0x0;break;}}}return _0x5525c6;}),_0x17002b['model']['document']['registerPostFixer'](_0x468c6f=>{let _0x531e7c=!0x1;const _0x577efa=_0x17002b['plugins']['get']('Users')['me'],_0x354f1e=_0x51157c['getSuggestions']()['filter'](_0x31cbf0=>_0x31cbf0['isInContent']&&_0x31cbf0['author']==_0x577efa),_0x16e9f9=new Set(),_0x5ea70b=new Set();for(const _0x3df255 of _0x354f1e)if('tablePaste'==_0x3df255['subType'])for(const _0x5f2b40 of _0x3df255['getMarkers']()){const _0x5a4adc=_0x5f2b40['getRange']()['getContainedElement']();if(_0x5a4adc){if(_0x5a4adc['is']('element','tableCellSuggestion')&&we(_0x5a4adc)){_0x3df255['removeMarker'](_0x5f2b40['name']),_0x16e9f9['add'](_0x5a4adc),_0x531e7c=!0x0;const _0x568251=_0x5a4adc['nextSibling'],_0x290012=_0x5a4adc['previousSibling'],_0x595354=_0x568251&&_0x568251['is']('element','tableCellSuggestion'),_0x249e65=_0x290012&&_0x290012['is']('element','tableCellSuggestion');_0x595354&&!_0x16e9f9['has'](_0x568251)&&_0x5ea70b['add'](_0x568251),_0x249e65&&!_0x16e9f9['has'](_0x290012)&&_0x5ea70b['add'](_0x290012);}else _0x5a4adc['is']('element','paragraph')&&_0x5a4adc['isEmpty']&&(_0x3df255['removeMarker'](_0x5f2b40['name']),_0x531e7c=!0x0);}}else{if('tablePasteCell'==_0x3df255['subType']){if(!_0x3df255['attributes']||!_0x3df255['attributes']['tablePasteChainId'])continue;const _0x35bff2=_0x3df255['attributes']['markerAttributes'];if(_0x35bff2&&Object['keys'](_0x35bff2)['length'])continue;const _0x39dbe1=_0x3df255['attributes']['tablePasteChainId'];let _0x3daf4a=!0x0,_0x47505a=!0x0;for(const _0x112889 of _0x354f1e)if(_0x112889['subType']&&_0x112889['subType']['startsWith']('tablePaste')){if(!_0x112889['attributes']['tablePasteChainId']){_0x47505a=!0x1;break;}if(_0x112889['id']!=_0x3df255['id']&&_0x112889['attributes']['tablePasteChainId']==_0x39dbe1){_0x3daf4a=!0x1;break;}}_0x47505a&&_0x3daf4a&&(_0x3df255['removeMarkers'](),_0x531e7c=!0x0);}}for(const _0x3899df of _0x16e9f9)_0x468c6f['remove'](_0x3899df);for(const _0x52f7a6 of _0x5ea70b)_0x468c6f['unwrap'](_0x52f7a6);return _0x531e7c;}),_0x17002b['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x344b07,_0x7fa0ba)=>_0x420bea(_0x344b07),'converterPriority':'high'}),_0x17002b['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x523dff,_0x1a9503)=>_0x1a9503['options']['showSuggestionHighlights']?_0x420bea(_0x523dff,!0x1):null,'converterPriority':'high'});const _0x226bd2=_0x17002b['editing']['view'];this['listenTo'](_0x226bd2['document'],'clipboardOutput',(_0x3d3c84,_0x44081b)=>{const _0x53f99b=[];for(const _0x34e080 of _0x226bd2['createRangeIn'](_0x44081b['content'])['getItems']())_0x34e080['is']('element','suggestion-td')&&_0x53f99b['push'](_0x34e080);_0x226bd2['change'](_0x31df6e=>{for(const _0xf94ef4 of _0x53f99b)_0x31df6e['move'](_0x31df6e['createRangeIn'](_0xf94ef4),_0x31df6e['createPositionBefore'](_0xf94ef4)),_0x31df6e['remove'](_0xf94ef4);});});}}function we(_0x5384d5){if(_0x5384d5['isEmpty'])return!0x0;const _0x10924c=_0x5384d5['getChild'](0x0);return _0x10924c['is']('element','paragraph')&&_0x10924c['isEmpty'];}function ke(_0x2cf3ab,_0x23d44e={},_0x2af6c6){for(const {isAnchor:_0x3515f4,cellHeight:_0x4beadb,cellWidth:_0x356986}of _0x2af6c6['createTableWalker'](_0x2cf3ab,{'includeAllSlots':!0x0,..._0x23d44e}))if(!_0x3515f4||0x1!=_0x4beadb||0x1!=_0x356986)return!0x1;return!0x0;}class Nt extends _0x3c69b1{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x475222=this['editor']['plugins']['get']('TrackChangesEditing');_0x475222['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x475222['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x475222['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x475222['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x475222['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x475222['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x38ebf8,_0x5b9842){const _0x19cc79=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4b409c=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x118750=_0x5b9842['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x38aa8=_0x4b409c['getColumnGroupElement'](_0x118750);let _0x55e974=_0x38aa8?_0x4b409c['getTableColumnsWidths'](_0x38aa8):null,_0x4e379f=_0x118750['getAttribute']('tableWidth')||null;const _0x3b10e3=_0x5b9842['tableWidth']||_0x4e379f,_0x531580=_0x5b9842['columnWidths']||_0x55e974,_0x241805=this['editor']['plugins']['get']('Users')['me'];for(const _0x41dfa4 of _0x19cc79['getSuggestions']()){const _0x34980b=_0x41dfa4['getContainedElement']();if('resizeTable'===_0x41dfa4['subType']&&_0x34980b===_0x118750){_0x41dfa4['author']!==_0x241805&&_0x41dfa4['discard']();const _0x2cfc65=_0x41dfa4['data']['commandParams'];_0x4e379f=_0x2cfc65[0x0]['tableWidth'],_0x55e974=_0x2cfc65[0x0]['columnWidths'];break;}}_0x38ebf8({'table':_0x118750,'tableWidth':_0x3b10e3,'columnWidths':_0x531580}),_0x19cc79['markBlockFormat'](_0x118750,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x4e379f,'columnWidths':_0x55e974}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x1a2d97){if('formatBlock'!=_0x1a2d97['type']&&'formatInline'!=_0x1a2d97['type'])return;const {data:_0x25d8b4}=_0x1a2d97;if(_0x25d8b4&&'resizeTable'===_0x25d8b4['formatGroupId']){const _0x2db961='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2db961)};}}}class Dt extends _0x3c69b1{['afterInit'](){const _0x1a31f6=this['editor'];_0x1a31f6['plugins']['has']('Template')&&_0x1a31f6['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Mt extends _0x3c69b1{['afterInit'](){const _0x250a31=this['editor'];if(!_0x250a31['commands']['get']('insertTableOfContents'))return;_0x250a31['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x30ecad=_0x250a31['plugins']['get']('TrackChangesEditing'),_0x4aeec1=_0x250a31['locale'];_0x30ecad['descriptionFactory']['registerElementLabel']('tableOfContents',_0x54f66f=>o(_0x4aeec1,'ELEMENT_TABLE_OF_CONTENTS',_0x54f66f));}}class $t extends _0x3c69b1{['afterInit'](){const _0x4b7475=this['editor'];if(!_0x4b7475['plugins']['has']('Title'))return;const _0x55eae6=_0x4b7475['plugins']['get']('TrackChangesEditing');_0x55eae6['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x4b7475['locale'],'ELEMENT_TITLE')),_0x4b7475['model']['document']['registerPostFixer'](_0xa8dec6=>{let _0x1c7ee4=!0x1;const _0x412fe2=Array['from'](_0x4b7475['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x93fb27,data:_0x2a7897}of _0x412fe2){const {group:_0xf7914b}=_0x55eae6['_splitMarkerName'](_0x93fb27);if('suggestion'!==_0xf7914b||!_0x2a7897['newRange'])continue;const _0xd371f7=_0x2a7897['newRange'],_0x44609a=_0xd371f7['end']['nodeBefore'];if(!_0x44609a||!_0x44609a['is']('element','title-content'))continue;if(!_0xd371f7['start']['isTouching'](_0xd371f7['end']))continue;const _0x58bf23=_0x4b7475['model']['schema']['getNearestSelectionRange'](_0xd371f7['end'],'forward');if(_0x58bf23&&_0x58bf23['isCollapsed']){const _0x3ab565=_0xa8dec6['createRange'](_0xd371f7['start'],_0x58bf23['start']);_0x3ab565['isEqual'](_0xd371f7)||(_0xa8dec6['updateMarker'](_0x93fb27,{'range':_0x3ab565}),_0x1c7ee4=!0x0);}_0x1c7ee4||(_0xa8dec6['removeMarker'](_0x93fb27),_0x1c7ee4=!0x0);}return _0x1c7ee4;});}}class Bt extends _0x3c69b1{['afterInit'](){const _0x29f052=this['editor'],_0x1d4dde=_0x29f052['plugins']['get']('TrackChangesEditing');_0x29f052['plugins']['has']('UndoEditing')&&(_0x1d4dde['enableCommand']('undo'),_0x1d4dde['enableCommand']('redo'));}}class xt extends _0x3c69b1{static get['requires'](){return[It];}['afterInit'](){const _0x5ddfc3=this['editor'];if(!_0x5ddfc3['plugins']['has']('TableCaptionEditing'))return;_0x5ddfc3['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class Rt extends _0x3c69b1{['tableProperties'];['tableCellProperties'];constructor(_0x4af766){super(_0x4af766),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 _0x17037a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x58c40d of this['tableProperties'])_0x17037a['enableCommand'](_0x58c40d,(_0xcaf8e,_0x8b0954)=>{const _0x44f514=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x58c40d,[_0x44f514],this['tableProperties'],'tableProperties',_0xcaf8e,_0x8b0954);});_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x17037a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x3c2abd,_0x13eb63)=>this['handleDiscardAction'](this['tableProperties'],_0x3c2abd,_0x13eb63)),_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x59797f of this['tableCellProperties'])_0x17037a['enableCommand'](_0x59797f,(_0x101bfd,_0x570131)=>{const _0x11b878=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x59797f,_0x11b878,this['tableCellProperties'],'tableCellProperties',_0x101bfd,_0x570131);});_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x17037a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x4bc7bd,_0x3f2d7f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x4bc7bd,_0x3f2d7f)),_0x17037a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x17037a['descriptionFactory']['registerDescriptionCallback'](_0x34e267=>this['handleSuggestionDescription'](_0x34e267));}['_handlePropertyChange'](_0x2a3bbe,_0x357897,_0x4620cc,_0x2e4f12,_0xd57f24,_0x3a5dae){const _0x9269a6=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x3a5dae['batch'],()=>{for(const _0x4c30e0 of _0x357897){if(this['_getSuggestion'](_0x4c30e0,_0x2e4f12))_0xd57f24(_0x3a5dae);else{const _0xdab7fe={};for(const _0x9a960 of _0x4620cc){const _0x25afac=_0x4c30e0['getAttribute'](_0x9a960);void 0x0!==_0x25afac&&(_0xdab7fe[_0x9a960]=_0x25afac);}_0xd57f24(_0x3a5dae),_0x9269a6['markBlockFormat'](_0x4c30e0,{'commandParams':[_0xdab7fe]},[],_0x2e4f12);}}});}['handleDiscardAction'](_0x39e130,_0x149863,_0x13c3e6){const _0x3e1eae=_0x149863[0x0]['start']['nodeAfter'],_0x3aff94=_0x13c3e6['commandParams'][0x0];this['editor']['model']['change'](_0x320b38=>{for(const _0x5bb3c5 of _0x39e130)void 0x0!==_0x3aff94[_0x5bb3c5]?_0x320b38['setAttribute'](_0x5bb3c5,_0x3aff94[_0x5bb3c5],_0x3e1eae):_0x320b38['removeAttribute'](_0x5bb3c5,_0x3e1eae);});}['handleSuggestionDescription'](_0x152544){if(_0x152544['data'])switch(_0x152544['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'](_0x36be0e,_0x1ce173){const _0x16b16c=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x18912d of _0x16b16c['getSuggestions']({'skipNotAttached':!0x0})){const _0x5189c6=_0x18912d['getContainedElement']();if(_0x18912d['subType']===_0x1ce173&&_0x5189c6===_0x36be0e)return _0x18912d;}return null;}}const m='$elementName';class p extends _0x3c69b1{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x3ae110,_0x55e27a,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(_0x21887a){function _0x3c42d9(_0x2be403){return _0x2be403['map'](_0x9ae350=>String['fromCharCode'](_0x9ae350))['join']('');}super(_0x21887a),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x15d510,_0x5f06b7,_0x3908b3,_0x4e9633)=>{this['_model']['change'](()=>{for(const _0x17e7b9 of[..._0x4e9633,..._0x3908b3])this['_model']['markers']['has'](_0x17e7b9)&&_0x21887a['editing']['reconvertMarker'](_0x17e7b9);});}),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']=_0x21887a['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(),_0x21887a['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x21887a['config']['get']('trackChanges.trackFormatChanges'),_0x21887a['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x21887a['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new B(_0x21887a,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x3c42d9([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x3c42d9([0x34,0x30,0x34,0x38,0x31,0x36,0x30,0x32]);}['init'](){const _0x504e29=this['editor'],_0x302e38=(_0x57976a,_0x245e5a)=>{if('attribute'!=_0x57976a)return'ck-suggestion-marker-'+_0x57976a;const _0x323124=_0x245e5a['split']('|')[0x0];return this['_isBlockAttribute'](_0x323124)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x504e29['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0xd1dc52=>{const {id:_0x30d315,type:_0x1d044b,subType:_0x5c794c}=this['_splitMarkerName'](_0xd1dc52['markerName']),_0x101624=['ck-suggestion-marker',_0x302e38(_0x1d044b,_0x5c794c)];let _0x534b36=0xbb8;return this['activeMarkers']['includes'](_0xd1dc52['markerName'])&&(_0x101624['push']('ck-suggestion-marker--active'),_0x534b36=0xbc2),'deletion'==_0x1d044b&&(_0x534b36+=0x5),{'classes':_0x101624,'attributes':{'data-suggestion':_0x30d315},'priority':_0x534b36};}}),_0x504e29['conversion']['for']('dataDowncast')['add'](_0x427933=>{_0x427933['on']('addMarker:suggestion',(_0x2b6f5d,_0x47932b,_0x49035e)=>{if(!_0x49035e['options']['showSuggestionHighlights'])return;const _0x15cc23=_0x47932b['item'];if(!_0x15cc23)return;const _0x1b09a9=_0x49035e['mapper']['toViewElement'](_0x15cc23);_0x504e29['model']['schema']['isObject'](_0x15cc23)&&_0x1b09a9&&!_0x1b09a9['getCustomProperty']('widget')&&_0x1b09a9['is']('containerElement')&&_0x1539e1(_0x1b09a9,_0x49035e['writer']);},{'priority':'high'});}),_0x504e29['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x341643,_0x16831d)=>{if(!_0x16831d['options']['showSuggestionHighlights'])return null;const {type:_0x1b516b,subType:_0xf3c0bf}=this['_splitMarkerName'](_0x341643['markerName']);return{'classes':['ck-suggestion-marker',_0x302e38(_0x1b516b,_0xf3c0bf)],'priority':0xbb8};}});const _0x1b1884=({showActiveMarkers:_0x338dba=!0x0,isAttributeSuggestion:_0x5edc00=!0x1}={})=>(_0x5c8a9b,_0x198215,_0x5abd0d)=>{if(!_0x198215['item'])return;const {id:_0x3f72ed}=this['_splitMarkerName'](_0x198215['markerName']);if(_0x5edc00){const _0xc680fe=this['_suggestions']['get'](_0x3f72ed),_0x3e96a5=this['_getAttributeKey'](_0xc680fe);if(!this['_isBlockAttribute'](_0x3e96a5))return;}if(_0x198215['item']['is']('selection'))return void _0x5abd0d['consumable']['consume'](_0x198215['item'],_0x5c8a9b['name']);const _0x5b17e1=_0x5abd0d['mapper']['toViewElement'](_0x198215['item']);if(_0x198215['item']['is']('element')&&_0x504e29['model']['schema']['isBlock'](_0x198215['item'])&&!_0x5b17e1['getCustomProperty']('addHighlight')){_0x5abd0d['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x5b17e1),_0x5abd0d['writer']['setAttribute']('data-suggestion',_0x3f72ed,_0x5b17e1),_0x5abd0d['mapper']['bindElementToMarker'](_0x5b17e1,_0x198215['markerName']),_0x338dba&&(this['activeMarkers']['includes'](_0x198215['markerName'])?_0x5abd0d['writer']['addClass']('ck-suggestion-marker--active',_0x5b17e1):_0x5abd0d['writer']['removeClass']('ck-suggestion-marker--active',_0x5b17e1));for(const _0xb597d2 of _0x504e29['model']['createRangeIn'](_0x198215['item'])['getItems']())_0x5abd0d['consumable']['consume'](_0xb597d2,_0x5c8a9b['name']);_0x5abd0d['consumable']['consume'](_0x198215['item'],_0x5c8a9b['name']);}};_0x504e29['conversion']['for']('dataDowncast')['add'](_0x4aa792=>{_0x4aa792['on']('addMarker:suggestion:formatBlock',(_0x2f7c39,_0x56a2ef,_0x270cd9)=>{_0x270cd9['options']['showSuggestionHighlights']&&_0x1b1884({'showActiveMarkers':!0x1})(_0x2f7c39,_0x56a2ef,_0x270cd9);},{'priority':'highest'});}),_0x504e29['conversion']['for']('dataDowncast')['add'](_0x23552f=>{_0x23552f['on']('addMarker:suggestion:attribute',(_0x1fc4d4,_0x1937d5,_0x212fea)=>{_0x212fea['options']['showSuggestionHighlights']&&_0x1b1884({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1fc4d4,_0x1937d5,_0x212fea);},{'priority':'highest'});}),_0x504e29['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x74cc0d,_0x1aec59)=>_0x1aec59['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x74cc0d['substr'](0xb)}}),_0x504e29['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x4d9b8e,{writer:_0x41b005})=>{let _0x3bf384='suggestion:'+_0x4d9b8e['getAttribute']('suggestion-type')+':'+_0x4d9b8e['getAttribute']('id');return _0x4d9b8e['getAttribute']('marker-count')&&(_0x3bf384+=':'+_0x4d9b8e['getAttribute']('marker-count')),_0x41b005['createElement']('$marker',{'data-name':_0x3bf384});}}),_0x504e29['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x504e29['conversion']['for']('editingDowncast')['add'](_0x1c186c=>{_0x1c186c['on']('addMarker:suggestion:formatBlock',_0x1b1884(),{'priority':'high'});}),_0x504e29['conversion']['for']('editingDowncast')['add'](_0x205871=>{_0x205871['on']('addMarker:suggestion:attribute',_0x1b1884({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x504e29['conversion']['for']('editingDowncast')['add'](_0x58982b=>{_0x58982b['on']('removeMarker:suggestion:formatBlock',(_0xc83104,_0x35382c,_0x9aef7)=>{const _0x329069=_0x9aef7['mapper']['markerNameToElements'](_0x35382c['markerName']);if(_0x329069){for(const _0x2e3a81 of _0x329069)_0x2e3a81['getCustomProperty']('addHighlight')||(_0x9aef7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x2e3a81),_0x9aef7['writer']['removeAttribute']('data-suggestion',_0x2e3a81),_0x9aef7['mapper']['unbindElementFromMarkerName'](_0x2e3a81,_0x35382c['markerName']));}},{'priority':'high'});}),_0x504e29['conversion']['for']('editingDowncast')['add'](_0x1c16a2=>{_0x1c16a2['on']('removeMarker:suggestion:attribute',(_0xd9320b,_0x29517d,_0xa6a5d6)=>{const _0x5b3b6f=_0xa6a5d6['mapper']['markerNameToElements'](_0x29517d['markerName']);if(!_0x5b3b6f)return;const {id:_0xced6ea}=this['_splitMarkerName'](_0x29517d['markerName']),_0x4d0547=this['_suggestions']['get'](_0xced6ea),_0x2bc29d=this['_getAttributeKey'](_0x4d0547);if(this['_isBlockAttribute'](_0x2bc29d)){for(const _0x46a4bc of _0x5b3b6f)_0x46a4bc['getCustomProperty']('addHighlight')||(_0xa6a5d6['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x46a4bc),_0xa6a5d6['writer']['removeAttribute']('data-suggestion',_0x46a4bc),_0xa6a5d6['mapper']['unbindElementFromMarkerName'](_0x46a4bc,_0x29517d['markerName']));}},{'priority':'high'});}),_0x504e29['model']['document']['registerPostFixer'](_0x178c6d=>{let _0x2f0ad4=!0x1;const _0xa27c6e=Array['from'](_0x504e29['model']['document']['differ']['getChangedMarkers']()),_0x32c47e=new Set();for(const {name:_0x357b87,data:_0x5ce4ef}of _0xa27c6e){const {group:_0x3fc7f2,type:_0x5b15be,subType:_0x1b1403,id:_0x272d1f}=this['_splitMarkerName'](_0x357b87);if('suggestion'!==_0x3fc7f2)continue;const _0x428f9e=this['_suggestions']['get'](_0x272d1f);if(null!=_0x5ce4ef['newRange']){'formatInline'==_0x5b15be&&(_0x2f0ad4=_0x2f0ad4||Ut(_0x5ce4ef['newRange'],_0x357b87,_0x178c6d,_0x504e29['model']['schema']));const _0x20d084='attribute'==_0x5b15be&&this['_isBlockAttribute'](_0x1b1403['split']('|')[0x0]);if(_0x5ce4ef['newRange']['isCollapsed']||'$graveyard'==_0x5ce4ef['newRange']['root']['rootName']||'formatBlock'==_0x5b15be&&!Ft(_0x5ce4ef['newRange'])||_0x20d084&&!Ft(_0x5ce4ef['newRange'])||'deletion'==_0x5b15be&&!(!Vt(_0x1378f8=_0x5ce4ef['newRange'])&&!function(_0x2919fe){return _0x2919fe['start']['parent']==_0x2919fe['end']['nodeBefore']&&_0x2919fe['start']['isAtEnd'];}(_0x1378f8)))_0x178c6d['removeMarker'](_0x357b87),_0x2f0ad4=!0x0;else{if(!_0x428f9e||!_0x428f9e['isInContent'])continue;if(_0x5ce4ef['newRange']&&_0x5ce4ef['oldRange']&&_0x5ce4ef['newRange']['isEqual'](_0x5ce4ef['oldRange']))continue;_0x32c47e['add'](_0x428f9e);}}}var _0x1378f8;return _0x32c47e['size']>0x0&&(_0x2f0ad4=!!this['_joinWithAdjacentSuggestions'](_0x32c47e)||_0x2f0ad4),_0x2f0ad4;}),_0x504e29['model']['document']['registerPostFixer'](_0x5d19c0=>{let _0x1ff179=!0x1;for(const _0x112ac7 of _0x504e29['model']['document']['differ']['getChanges']())if('insert'==_0x112ac7['type'])for(const _0x4d9c3e of this['_suggestions']['values']()){if(_0x4d9c3e['isMultiRange']||!_0x4d9c3e['isInContent'])continue;const _0x45bf31='formatBlock'==_0x4d9c3e['type'],_0x2ee78e=this['_getAttributeKey'](_0x4d9c3e),_0x283644=_0x2ee78e&&this['_isBlockAttribute'](_0x2ee78e);if(!_0x45bf31&&!_0x283644)continue;const _0x22b990=_0x4d9c3e['getFirstRange']();if(_0x22b990['start']['parent']!=_0x22b990['end']['parent']&&!_0x22b990['end']['isAtEnd']){const _0x5ee1b1=_0x504e29['model']['createPositionAt'](_0x22b990['start']['nodeAfter'],'end'),_0xddcc73=_0x504e29['model']['createRange'](_0x22b990['start'],_0x5ee1b1);_0x5d19c0['updateMarker'](_0x4d9c3e['getFirstMarker'](),{'range':_0xddcc73}),_0x1ff179=!0x0;}}return _0x1ff179;}),_0x504e29['model']['document']['registerPostFixer'](_0x604de8=>this['_processAttributeChanges'](_0x604de8)),_0x504e29['model']['document']['registerPostFixer'](_0x30bf5c=>!_0x30bf5c['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x30bf5c)),_0x504e29['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x504e29['model']['document']['on']('change:data',(_0x25fdb7,_0x12f6ca)=>{if(!_0x12f6ca['isLocal']||_0x12f6ca['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0xa27fd1=_0x504e29['model']['document']['differ']['getChanges']();if(0x0==_0xa27fd1['length'])return;const _0x1e2ae2=[],_0x47f8cf=_0xa27fd1['filter'](_0x20e38d=>'attribute'==_0x20e38d['type']),_0x5bff5d=_0xa27fd1['filter'](_0x36810c=>'insert'==_0x36810c['type']&&'$text'!=_0x36810c['name']);for(const _0x13b33f of _0x47f8cf)this['_isRegisteredAttribute'](_0x13b33f['attributeKey'])&&_0x1e2ae2['push']({'key':_0x13b33f['attributeKey'],'newValue':_0x13b33f['attributeNewValue'],'oldValue':_0x13b33f['attributeOldValue'],'range':Pt(_0x13b33f['range'],_0x504e29['model'])});for(const _0x2deb89 of _0x5bff5d){if('rename'!=_0x2deb89['action']&&'refresh'!=_0x2deb89['action'])continue;const _0x285fc0=Lt(_0x2deb89['position']['nodeAfter'],_0x504e29['model']),_0x2a9401=_0x2deb89['before'];'rename'==_0x2deb89['action']&&_0x1e2ae2['push']({'key':m,'newValue':_0x2deb89['name'],'oldValue':_0x2a9401['name'],'range':_0x285fc0});for(const [_0x55df94,_0x5dda87]of _0x2a9401['attributes']){if(!this['_isRegisteredAttribute'](_0x55df94))continue;const _0x465975=_0x2deb89['attributes']['get'](_0x55df94);_0x5dda87!==_0x465975&&_0x1e2ae2['push']({'key':_0x55df94,'newValue':_0x465975,'oldValue':_0x5dda87,'range':_0x285fc0});}for(const [_0x31e0c9,_0x2dbe75]of _0x2deb89['attributes'])this['_isRegisteredAttribute'](_0x31e0c9)&&(_0x2a9401['attributes']['has'](_0x31e0c9)||_0x1e2ae2['push']({'key':_0x31e0c9,'newValue':_0x2dbe75,'oldValue':null,'range':_0x285fc0}));}0x0!=_0x1e2ae2['length']&&_0x504e29['model']['enqueueChange'](_0x12f6ca,_0x5bcf35=>{const _0x509f2a=_0x56aadc();for(const {range:_0x1a1e33,key:_0x5440e5,oldValue:_0x14236b,newValue:_0x550a6d}of _0x1e2ae2)this['markAttributeChange'](_0x1a1e33,_0x5440e5,_0x14236b,_0x550a6d,{'groupId':_0x509f2a});this['_reduceExistingSuggestions'](_0x5bcf35,_0x1e2ae2);});},{'priority':'lowest'}),_0x504e29['model']['markers']['on']('update:suggestion',(_0x56f36d,_0x44ecd4,_0x6d640f)=>{if(null==_0x6d640f){const {id:_0x30c72d}=this['_splitMarkerName'](_0x44ecd4['name']),_0x369c81=this['_suggestions']['get'](_0x30c72d);_0x369c81&&_0x369c81['addMarkerName'](_0x44ecd4['name']);}}),_0x504e29['model']['document']['on']('change:data',()=>{const _0x530545=Array['from'](_0x504e29['model']['document']['differ']['getChangedMarkers']())['filter'](_0x2bd0f8=>'suggestion'===this['_splitMarkerName'](_0x2bd0f8['name'])['group']);if(0x0===_0x530545['length'])return;_0x530545['sort']((_0x51a2d7,_0x6bddab)=>{const _0x14938a=_0x51a2d7['data']['oldRange'],_0x22f705=_0x6bddab['data']['oldRange'];return null===_0x14938a&&null===_0x22f705?0x0:null===_0x14938a&&null!==_0x22f705?-0x1:null!==_0x14938a&&null===_0x22f705?0x1:_0x14938a['start']['isBefore'](_0x22f705['start'])?-0x1:0x1;});const _0x2eb998=new Set(),_0x354403=new Set();for(const {name:_0x119a14,data:_0x2fe3da}of _0x530545){const {id:_0x19e014}=this['_splitMarkerName'](_0x119a14);if(null===_0x2fe3da['oldRange']){const _0xe6cbd6=this['_handleNewSuggestionMarker'](_0x119a14);_0x354403['add'](_0xe6cbd6);}else{const _0x48dcfe=this['_suggestions']['get'](_0x19e014);null!==_0x2fe3da['newRange']||_0x48dcfe['isInContent']?(_0x2eb998['add'](_0x48dcfe['head']),_0x354403['add'](_0x48dcfe)):this['_removeSuggestion'](_0x48dcfe);}}_0x354403['size']>0x0&&this['_refreshSuggestionsChain'](_0x354403);for(const _0x33615f of _0x2eb998)this['fire']('suggestionChanged',_0x33615f);}),_0x504e29['model']['on']('applyOperation',(_0x3c310,_0x5a9b54)=>{const _0x4632dc=_0x5a9b54[0x0];if(!this['_suggestions']['size'])return;if(!_0x4632dc['isDocumentOperation'])return;if(_0x4632dc['batch']['isUndo']||!_0x4632dc['batch']['isLocal'])return;let _0x536cf6,_0x50efde;switch(_0x4632dc['type']){case'insert':_0x536cf6=_0x504e29['model']['createPositionAt'](_0x4632dc['position']),_0x50efde=_0x536cf6['getShiftedBy'](_0x4632dc['howMany']);break;case'split':_0x536cf6=_0x504e29['model']['createPositionAt'](_0x4632dc['splitPosition']),_0x50efde=_0x504e29['model']['createPositionAt'](_0x4632dc['moveTargetPosition']);break;case'move':_0x536cf6=_0x504e29['model']['createPositionAt'](_0x4632dc['targetPosition']),_0x50efde=_0x536cf6['getShiftedBy'](_0x4632dc['howMany']);break;default:return;}const _0x203332=_0x504e29['model']['createRange'](_0x536cf6,_0x50efde);_0x504e29['model']['change'](()=>{for(const {suggestion:_0x3fba85,meta:_0x4d148d}of this['_findSuggestions'](_0x203332)){if(_0x3fba85['isMultiRange'])continue;if('formatInline'==_0x3fba85['type'])continue;const _0x2bfb9f=this['_getAttributeKey'](_0x3fba85);if(_0x2bfb9f&&this['_isBlockAttribute'](_0x2bfb9f)&&'split'!=_0x4632dc['type'])continue;const _0x7b346f=_0x3fba85['data']&&_0x3fba85['data']['multipleBlocks'];('formatBlock'!=_0x3fba85['type']||'split'==_0x4632dc['type']&&!_0x7b346f)&&(_0x4d148d['containsRangeInObject']||'insertion'==_0x3fba85['type']&&_0x4d148d['isOwn']||_0x3fba85['getFirstRange']()['containsRange'](_0x203332)&&this['_breakSuggestionMarker'](_0x3fba85,_0x536cf6,_0x50efde));}});},{'priority':'lowest'}),_0x504e29['model']['on']('deleteContent',(_0x168953,_0x1252d5)=>{const _0xc2c681=_0x1252d5[0x0],_0x1d4791=_0x1252d5[0x1];if(_0x1d4791&&_0x1d4791['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xc2c681['isCollapsed'])return;const _0x34f47b=_0x504e29['model']['schema'],{start:_0x3dfd49,end:_0xec8bf6}=_0xc2c681['getFirstRange'](),_0x14c61d=_0x3dfd49['nodeAfter']&&_0x34f47b['isLimit'](_0x3dfd49['nodeAfter'])?null:_0x34f47b['getNearestSelectionRange'](_0x3dfd49,'forward'),_0xa92db8=_0xec8bf6['nodeBefore']&&_0x34f47b['isLimit'](_0xec8bf6['nodeBefore'])?null:_0x34f47b['getNearestSelectionRange'](_0xec8bf6,'backward'),_0x1cc302=_0x504e29['model']['createRange'](_0x14c61d?_0x14c61d['start']:_0x3dfd49,_0xa92db8?_0xa92db8['end']:_0xec8bf6);_0x504e29['model']['change'](_0x366397=>{this['markDeletion'](_0x1cc302);const _0x57c3fa=_0x504e29['model']['schema']['getNearestSelectionRange'](_0x1cc302['start']);_0xc2c681['is']('documentSelection')?_0x366397['setSelection'](_0x57c3fa):_0xc2c681['setTo'](_0x57c3fa);}),_0x168953['stop']();},{'priority':_0x2de423['normal']+0xa}),_0x504e29['model']['on']('insertContent',(_0x4571b6,_0x58facb)=>{const _0x5b0738=_0x58facb[_0x58facb['length']-0x1];_0x5b0738&&_0x5b0738['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x504e29['model']['change'](()=>{let _0x264b4f=_0x504e29['model']['insertContent'](_0x58facb[0x0],_0x58facb[0x1],_0x58facb[0x2],{'forceDefaultExecution':!0x0});if(!_0x264b4f)return;_0x4571b6['return']=_0x264b4f['clone']();const _0x39e31b=_0x264b4f['end']['nodeBefore'],_0x3f27f5=_0x504e29['model']['schema'];_0x39e31b&&_0x3f27f5['isBlock'](_0x39e31b)&&!_0x3f27f5['isObject'](_0x39e31b)&&(_0x264b4f=_0x504e29['model']['createRange'](_0x264b4f['start'],_0x504e29['model']['createPositionAt'](_0x39e31b,'end'))),this['markInsertion'](_0x264b4f);}),_0x4571b6['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x315fb8=new x(_0x504e29,this['_suggestions']);_0x504e29['commands']['add']('acceptSuggestion',_0x315fb8),this['enableCommand']('acceptSuggestion');const _0x499a1e=new R(_0x504e29,this['_suggestions']);_0x504e29['commands']['add']('discardSuggestion',_0x499a1e),this['enableCommand']('discardSuggestion'),_0x504e29['commands']['add']('acceptAllSuggestions',new E(_0x504e29,_0x315fb8,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x504e29['commands']['add']('discardAllSuggestions',new E(_0x504e29,_0x499a1e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x504e29['commands']['add']('acceptSelectedSuggestions',new O(_0x504e29,_0x315fb8,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x504e29['commands']['add']('discardSelectedSuggestions',new O(_0x504e29,_0x499a1e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1bbc9f=_0x504e29['plugins']['get']('CommentsRepository');this['listenTo'](_0x1bbc9f,'addComment',(_0xa1be98,{threadId:_0x989346})=>{const _0x384515=this['_suggestions']['get'](_0x989346);_0x384515&&_0x384515['commentThread']&&0x1===_0x384515['commentThread']['length']&&this['_updateSuggestionData'](_0x989346,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1bbc9f,'removeComment',(_0x288853,{threadId:_0x55448d})=>{const _0x218847=this['_suggestions']['get'](_0x55448d);_0x218847&&_0x218847['commentThread']&&!_0x218847['commentThread']['length']&&this['_updateSuggestionData'](_0x55448d,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x54f444){if(this['_adapter'])throw new _0x2a2fd9('track-changes-adapter-already-set',this);this['_adapter']=_0x54f444;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x304a92=!0x1,toJSON:_0x27b732=!0x1}={}){const _0x53c73f=[];for(const _0x3dcf77 of this['_suggestions']['values']())_0x304a92&&!_0x3dcf77['isInContent']||_0x53c73f['push'](_0x3dcf77);return _0x27b732?_0x53c73f['map'](_0x56e09b=>_0x56e09b['toJSON']()):_0x53c73f;}['getSuggestion'](_0x18fb95){const _0x76aea9=this['_suggestions']['get'](_0x18fb95);if(!_0x76aea9)throw new _0x2a2fd9('track-changes-suggestion-not-found',this);return _0x76aea9;}['hasSuggestion'](_0x50ae35){return this['_suggestions']['has'](_0x50ae35);}['addSuggestionData'](_0x52a31c){const {authorId:_0x366842,id:_0x304a5a,attributes:_0x2ed84d}=_0x52a31c,[_0x1eadf2,_0x3b534e]=_0x52a31c['type']['split'](':'),_0x4005f9=this['_suggestions']['get'](_0x304a5a)||this['_createSuggestion'](_0x1eadf2,_0x3b534e,_0x304a5a,_0x366842,_0x2ed84d);if(this['_addThreadToSuggestion'](_0x4005f9),this['_checkSuggestionCorrectness'](_0x4005f9,_0x1eadf2,_0x3b534e||null,_0x366842),_0x4005f9['createdAt']=_0x52a31c['createdAt'],_0x4005f9['_isDataLoaded']=!0x0,_0x2ed84d&&_0x2ed84d['@external']){const _0x13a0f0=_0x2ed84d['@external'],_0x1de36e=this['_getExternalAuthor'](_0x13a0f0['authorName']);_0x4005f9['authoredAt']=_0x13a0f0['createdAt'],_0x4005f9['author']=_0x1de36e,_0x4005f9['isExternal']=!0x0;}else _0x4005f9['authoredAt']=_0x52a31c['createdAt'];switch(_0x52a31c['data']&&(_0x4005f9['data']=_0x52a31c['data']),_0x52a31c['attributes']&&(_0x4005f9['attributes']=_0x52a31c['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x4005f9['_saved']=!0x0),this['_suggestionState']['get'](_0x4005f9)){case'notReady':this['_suggestionState']['set'](_0x4005f9,'dataReady');break;case'markerReady':_0x4005f9['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x4005f9])),this['_refreshSuggestionsChain'](new Set([_0x4005f9])),this['_suggestionState']['set'](_0x4005f9,'ready'),this['fire']('suggestionLoaded',_0x4005f9)):this['_suggestionState']['set'](_0x4005f9,'removed');}return _0x4005f9;}['acceptSuggestion'](_0x8cf5da){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x1468f1 of _0x8cf5da['getAllAdjacentSuggestions']())_0x1468f1['accept']();});});}['discardSuggestion'](_0x4d6fdb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x5ba52a of _0x4d6fdb['getAllAdjacentSuggestions']())_0x5ba52a['discard']();});});}['enableCommand'](_0x4ad21c,_0x275663){const _0x5f3443=this['editor']['commands']['get'](_0x4ad21c);if(!_0x5f3443)throw new _0x2a2fd9('track-changes-command-not-found',this,{'commandName':_0x4ad21c});if(this['_enabledCommands']['has'](_0x5f3443))throw new _0x2a2fd9('track-changes-enable-command-twice',this,{'commandName':_0x4ad21c});this['_enabledCommands']['add'](_0x5f3443),_0x275663&&_0x5f3443['on']('execute',(_0x4f1754,_0x454385)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x454385['length']>0x0&&_0x454385[_0x454385['length']-0x1]&&_0x454385[_0x454385['length']-0x1]['forceDefaultExecution']?_0x454385['pop']():(_0x4f1754['return']=_0x275663((..._0x2afc7a)=>_0x5f3443['execute'](..._0x2afc7a,{'forceDefaultExecution':!0x0}),..._0x454385),_0x4f1754['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x4e630a){let _0xa0539a,_0xcdf371;const _0x2fce23=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0xa0539a=_0x4e630a();}catch(_0x2836ab){_0xcdf371=_0x2836ab;}return _0x2fce23||(this['_isForcedDefaultExecutionBlock']=!0x1),_0xcdf371&&_0x2a2fd9['rethrowUnexpectedError'](_0xcdf371,this),_0xa0539a;}['markInsertion'](_0x4c00d5,_0x3975e4=null,_0x476313={}){if(_0x4c00d5['isCollapsed'])return null;const _0x10f3a3=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x96589e,meta:_0x15ade6}of this['_findSuggestions'](_0x4c00d5,'insertion'))if(_0x15ade6['isOwn']){if(!_0x15ade6['isNextTo']){if(_0x15ade6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!qt(_0x96589e,_0x476313))continue;return _0x96589e;}if(qt(_0x96589e,_0x476313))return _0x96589e;this['_breakSuggestionMarker'](_0x96589e,_0x4c00d5['start'],_0x4c00d5['end']);break;}if(_0x3975e4==_0x96589e['subType']&&qt(_0x96589e,_0x476313)){const _0x10276e=_0x96589e['getFirstRange']();return _0x10276e['start']['isEqual'](_0x4c00d5['end'])?this['_setSuggestionRange'](_0x96589e,this['_model']['createRange'](_0x4c00d5['start'],_0x10276e['end'])):this['_setSuggestionRange'](_0x96589e,this['_model']['createRange'](_0x10276e['start'],_0x4c00d5['end'])),_0x96589e;}}const _0x36f5a0=_0x56aadc(),_0x22b32d=_0x10f3a3['id'],_0x49cfae=_0x3975e4?'insertion:'+_0x3975e4:'insertion',_0x53e8d9=this['_setSuggestionData']({'id':_0x36f5a0,'type':_0x49cfae,'createdAt':new Date(),'authorId':_0x22b32d,'attributes':_0x476313});return this['_addSuggestionMarker'](_0x49cfae,_0x36f5a0,_0x22b32d,_0x4c00d5),_0x53e8d9;}['markMultiRangeInsertion'](_0x1eb84d,_0x1e8d1a='multi',_0x5c7005={}){const _0x4d75d7=this['editor']['plugins']['get']('Users')['me'],_0x310586=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1e8d1a,'join');for(const _0x56a4ea of this['getSuggestions']())if(_0x56a4ea['author']['id']==_0x4d75d7['id']&&'insertion'==_0x56a4ea['type']&&_0x56a4ea['subType']==_0x1e8d1a&&qt(_0x56a4ea,_0x5c7005)&&(_0x310586(_0x56a4ea['getRanges'](),_0x1eb84d)||_0x310586(_0x1eb84d,_0x56a4ea['getRanges']()))){for(const _0x1d0bb0 of _0x1eb84d)_0x56a4ea['addRange'](_0x1d0bb0);return _0x56a4ea;}for(const {suggestion:_0x5abd6c,meta:_0x350dd6}of this['_findSuggestions'](_0x1eb84d,'insertion')){if(!_0x350dd6['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x350dd6['containsRangeInObject'])continue;if(!qt(_0x5abd6c,_0x5c7005))continue;let _0x1cd830=!0x0;for(const _0x511d75 of _0x5abd6c['getRanges']())for(const _0x2a9886 of _0x1eb84d)if(!_0x511d75['containsRange'](_0x2a9886)){_0x1cd830=!0x1;break;}if(_0x1cd830)return _0x5abd6c;}const _0x255046=_0x56aadc(),_0x705af7=_0x4d75d7['id'],_0x8aae30='insertion:'+_0x1e8d1a,_0x2794a6=this['_setSuggestionData']({'id':_0x255046,'type':_0x8aae30,'createdAt':new Date(),'authorId':_0x705af7,'attributes':_0x5c7005});for(const _0x44573f of _0x1eb84d)this['_addSuggestionMarker'](_0x8aae30,_0x255046,_0x705af7,_0x44573f,u['getMultiRangeId']());return _0x2794a6;}['markInlineFormat'](_0x22c183,_0x2c5145,_0x145a47=null,_0x4f2ca0={}){if(_0x145a47=_0x145a47||Gt(_0x2c5145),_0x22c183['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x5e0d97=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x145a47,'accept');return this['forceDefaultExecution'](()=>_0x5e0d97([_0x22c183],_0x2c5145,_0x4f2ca0)),null;}const _0x257de0=this['editor']['plugins']['get']('Users')['me'],_0x29c1d9=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x380bff,meta:_0x218d8f}of this['_findSuggestions'](_0x22c183,'insertion'))_0x218d8f['isOwn']&&!_0x218d8f['isInsideObject']&&_0x29c1d9['push'](..._0x380bff['getRanges']());}const _0x404a43=function(_0x13702f,_0x156939){const _0x1caa23=[];for(const _0x3da766 of _0x156939){const _0x22cbcb=_0x13702f['getIntersection'](_0x3da766);_0x22cbcb&&_0x1caa23['push'](_0x22cbcb);}return _0x1caa23;}(_0x22c183,_0x29c1d9),_0x3f58dd=function(_0x3b64c3,_0x5b43fb){const _0x5803da=[_0x3b64c3];for(const _0x653549 of _0x5b43fb){let _0x5a652b=0x0;for(;_0x5a652b<_0x5803da['length'];){const _0x6b3a04=_0x5803da[_0x5a652b]['getDifference'](_0x653549);_0x5803da['splice'](_0x5a652b,0x1,..._0x6b3a04),_0x5a652b+=_0x6b3a04['length'];}}return _0x5803da;}(_0x22c183,_0x29c1d9);_0x404a43['length']&&this['_model']['change'](()=>{for(const _0x46f818 of _0x404a43){const _0x1c325f=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x145a47,'accept');this['forceDefaultExecution'](()=>_0x1c325f([_0x46f818],_0x2c5145,_0x4f2ca0));}});for(const _0x366a3b of _0x3f58dd){let _0x41045a=null,_0x5bbf22=_0x366a3b['start'],_0x71dc48=_0x366a3b['end'];for(const {suggestion:_0x463d0a,meta:_0x10e44d}of this['_findSuggestions'](_0x366a3b,'formatInline')){if(!_0x10e44d['isOwn'])continue;if(_0x463d0a['subType']!=_0x145a47)continue;if(!qt(_0x463d0a,_0x4f2ca0))continue;const _0x1e0fba=_0x463d0a['getFirstRange']();if(_0x1e0fba['containsRange'](_0x366a3b,!0x0))return null;_0x5bbf22=_0x5bbf22['isBefore'](_0x1e0fba['start'])?_0x5bbf22:_0x1e0fba['start'],_0x71dc48=_0x71dc48['isAfter'](_0x1e0fba['end'])?_0x71dc48:_0x1e0fba['end'],_0x41045a?_0x1e0fba['start']['isBefore'](_0x41045a['getFirstRange']()['start'])?(_0x41045a['removeMarkers'](),_0x41045a=_0x463d0a):_0x463d0a['removeMarkers']():_0x41045a=_0x463d0a;}const _0x1dbae5=this['_model']['createRange'](_0x5bbf22,_0x71dc48);if(_0x41045a)this['_setSuggestionRange'](_0x41045a,_0x1dbae5);else{const _0x14482a=_0x56aadc(),_0x3fde12=_0x257de0['id'];this['_setSuggestionData']({'id':_0x14482a,'type':'formatInline:'+_0x145a47,'data':_0x2c5145,'createdAt':new Date(),'authorId':_0x3fde12,'attributes':_0x4f2ca0}),this['_addSuggestionMarker']('formatInline:'+_0x145a47,_0x14482a,_0x3fde12,_0x1dbae5);}}return null;}['markBlockFormat'](_0x54cbe1,_0x233ee0,_0x324a4e=[],_0x3b735b=null,_0x291e97={}){_0x233ee0['formatGroupId']||(_0x233ee0['formatGroupId']=_0x233ee0['commandName']),_0x233ee0['multipleBlocks']=_0x54cbe1['is']('range'),_0x3b735b=_0x3b735b||Gt(_0x233ee0);const _0x5c355f=_0x324a4e['map'](_0x4b74bd=>Lt(_0x4b74bd,this['_model'])),_0xa09a25=_0x54cbe1['is']('range')?_0x54cbe1:Lt(_0x54cbe1,this['_model']);if('never'===this['_trackFormatChanges']){const _0x31e87c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b735b,'accept');return this['forceDefaultExecution'](()=>_0x31e87c([_0xa09a25],_0x233ee0,_0x291e97)),null;}_0x5c355f['push'](_0xa09a25);let _0x53b31b=!0x0;for(const _0x39ba06 of _0x5c355f)if(!this['_rangeIsInLocalUserInsertion'](_0x39ba06)){_0x53b31b=!0x1;break;}if(_0x53b31b&&'always'!==this['_trackFormatChanges']){const _0x309bb1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3b735b,'accept');return this['forceDefaultExecution'](()=>_0x309bb1([_0xa09a25],_0x233ee0,_0x291e97)),null;}let _0x8a30e7=null,_0x3ea570=_0xa09a25['start'],_0xe2f0ce=_0xa09a25['end'];for(const {suggestion:_0x1ba6b3,meta:_0x31e7ab}of this['_findSuggestions'](_0xa09a25,'formatBlock')){if(!_0x31e7ab['isOwn'])continue;if(_0x31e7ab['isNextTo']||_0x31e7ab['containsRangeInObject']||_0x31e7ab['isInsideObject'])continue;if(_0x1ba6b3['data']['formatGroupId']!=_0x233ee0['formatGroupId'])continue;if(!qt(_0x1ba6b3,_0x291e97))continue;const _0x296f40=_0x1ba6b3['getFirstRange']();if(_0x1ba6b3['subType']==_0x3b735b){if(_0x296f40['containsRange'](_0xa09a25,!0x0))return null;_0x3ea570=_0x3ea570['isBefore'](_0x296f40['start'])?_0x3ea570:_0x296f40['start'],_0xe2f0ce=_0xe2f0ce['isAfter'](_0x296f40['end'])?_0xe2f0ce:_0x296f40['end'],_0x8a30e7?_0x296f40['start']['isBefore'](_0x8a30e7['getFirstRange']()['start'])?(_0x8a30e7['removeMarkers'](),_0x8a30e7=_0x1ba6b3):_0x1ba6b3['removeMarkers']():_0x8a30e7=_0x1ba6b3;}else{const _0x52186c=_0xa09a25['getIntersection'](_0x296f40);this['_cutOutSuggestionMarker'](_0x1ba6b3,_0x52186c);}}const _0x431306=this['editor']['plugins']['get']('Users')['me'],_0x5b0c7e=_0x56aadc(),_0x379c0f=_0x431306['id'];if(_0x8a30e7)return this['_setSuggestionRange'](_0x8a30e7,this['_model']['createRange'](_0x3ea570,_0xe2f0ce)),_0x8a30e7;{const _0x251b0d=this['_setSuggestionData']({'id':_0x5b0c7e,'type':'formatBlock:'+_0x3b735b,'data':_0x233ee0,'createdAt':new Date(),'authorId':_0x379c0f,'attributes':_0x291e97});return this['_addSuggestionMarker']('formatBlock:'+_0x3b735b,_0x5b0c7e,_0x379c0f,this['_model']['createRange'](_0x3ea570,_0xe2f0ce)),_0x251b0d;}}['markMultiRangeBlockFormat'](_0x148226,_0x3d6a56,_0x4c9a8e=[],_0x4bdd05=null,_0xd5b74a={}){_0x3d6a56['formatGroupId']||(_0x3d6a56['formatGroupId']=_0x3d6a56['commandName']);const _0x37bfaf=_0x148226[0x0];_0x3d6a56['multipleBlocks']=_0x37bfaf['is']('range'),_0x4bdd05=_0x4bdd05||Gt(_0x3d6a56);const _0x225ed9=_0x4c9a8e['map'](_0x101f1a=>Lt(_0x101f1a,this['_model'])),_0x4605e9=_0x37bfaf['is']('range')?_0x148226:_0x148226['map'](_0x76b99e=>Lt(_0x76b99e,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2b2bd1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bdd05,'accept');return this['forceDefaultExecution'](()=>_0x2b2bd1(_0x4605e9,_0x3d6a56,_0xd5b74a)),null;}_0x225ed9['push'](..._0x4605e9);let _0x3ad2a=!0x0;for(const _0x4638ae of _0x225ed9)if(!this['_rangeIsInLocalUserInsertion'](_0x4638ae)){_0x3ad2a=!0x1;break;}if(_0x3ad2a&&'always'!==this['_trackFormatChanges']){const _0x4cd2db=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bdd05,'accept');return this['forceDefaultExecution'](()=>_0x4cd2db(_0x4605e9,_0x3d6a56,_0xd5b74a)),null;}const _0x1cbf97=this['editor']['plugins']['get']('Users')['me'];for(const _0x16929a of this['getSuggestions']()){if(_0x16929a['author']['id']!=_0x1cbf97['id'])continue;if('formatBlock'!=_0x16929a['type']||_0x16929a['data']['formatGroupId']!=_0x3d6a56['formatGroupId'])continue;if(!qt(_0x16929a,_0xd5b74a))continue;const _0x3236d8=_0x16929a['subType']==_0x4bdd05;for(let _0x5bb82e=0x0;_0x5bb82e<_0x4605e9['length'];_0x5bb82e++){const _0x5a8f4d=_0x4605e9[_0x5bb82e];for(const _0x28e8fd of _0x16929a['getMarkers']()){const _0x4e18f7=_0x28e8fd['getRange']();if(_0x5a8f4d['isEqual'](_0x4e18f7)){_0x3236d8?(_0x4605e9['splice'](_0x5bb82e,0x1),_0x5bb82e--):_0x16929a['removeMarker'](_0x28e8fd['name']);break;}}}}if(0x0==_0x4605e9['length'])return null;const _0x3d0ea1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4bdd05,'join');for(const _0x59769d of this['getSuggestions']())if(_0x59769d['author']['id']==_0x1cbf97['id']&&'formatBlock'==_0x59769d['type']&&_0x59769d['data']['formatGroupId']==_0x3d6a56['formatGroupId']&&_0x59769d['subType']==_0x4bdd05&&qt(_0x59769d,_0xd5b74a)&&(_0x3d0ea1(_0x59769d['getRanges'](),_0x4605e9)||_0x3d0ea1(_0x4605e9,_0x59769d['getRanges']()))){for(const _0x1cd115 of _0x4605e9)_0x59769d['addRange'](_0x1cd115);return _0x59769d;}const _0x106649=_0x56aadc(),_0x41c219=_0x1cbf97['id'],_0x418004='formatBlock:'+_0x4bdd05,_0x52567e=this['_setSuggestionData']({'id':_0x106649,'type':_0x418004,'data':_0x3d6a56,'createdAt':new Date(),'authorId':_0x41c219,'attributes':_0xd5b74a});for(const _0x3adc24 of _0x4605e9)this['_addSuggestionMarker'](_0x418004,_0x106649,_0x41c219,_0x3adc24,u['getMultiRangeId']());return _0x52567e;}['markDeletion'](_0x5d2ff8,_0x5b13df=null,_0x47b598={}){if(_0x5d2ff8['isCollapsed'])return null;const _0x104d30=this['editor']['plugins']['get']('Users')['me'],_0xeed647=new _0x22b4f7(_0x5d2ff8['start'],_0x5d2ff8['end']);for(const {suggestion:_0x4316fb,meta:_0x4b0b8f}of this['_findSuggestions'](_0xeed647,'insertion'))if(_0x4b0b8f['isOwn']&&!_0x4b0b8f['isNextTo']){if(_0x4316fb['isMultiRange']){const _0x13fbf6=_0x4316fb['getRanges']()['filter'](_0x9f6a17=>'$graveyard'!=_0x9f6a17['root']['rootName']);_0x13fbf6['every'](_0x415cfb=>_0xeed647['containsRange'](_0x415cfb,!0x0))&&_0x4316fb['discard']();if(_0x13fbf6['some'](_0xcc9870=>_0xcc9870['containsRange'](_0xeed647,!0x0))){const _0x4aafea=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5b13df,'accept');return this['forceDefaultExecution'](()=>_0x4aafea([_0xeed647],null,_0x47b598)),null;}}else{const _0x2c25b7=_0xeed647['getIntersection'](_0x4316fb['getFirstRange']());null!==_0x2c25b7&&_0x4316fb['_onDiscard']([_0x2c25b7],null,_0x47b598);}}if(_0xeed647['detach'](),_0xeed647['isCollapsed']||'$graveyard'==_0xeed647['root']['rootName'])return null;let _0x4aae8d=null,_0x1429a0=_0xeed647['start'],_0x14a785=_0xeed647['end'];const _0x495631=this['_findSuggestions'](_0xeed647,'deletion');for(const {suggestion:_0x2d764a,meta:_0x15d230}of _0x495631){const _0x1ca428=this['_model']['createRange'](_0x1429a0,_0x14a785);if(_0x15d230['isOwn']&&(this['_mergeNestedSuggestions']||!_0x15d230['containsRangeInObject']&&!_0x15d230['isInsideObject'])){if(_0x2d764a['isMultiRange']){if(!qt(_0x2d764a,_0x47b598))continue;let _0x226786=!0x0;for(const _0x13c87d of _0x2d764a['getRanges']()){if(_0x13c87d['containsRange'](_0x1ca428,!0x0))return _0x2d764a;_0x1ca428['containsRange'](_0x13c87d)||(_0x226786=!0x1);}_0x226786&&_0x2d764a['discard']();}else{const _0x41d58d=_0x2d764a['getFirstRange']();if(_0x41d58d['containsRange'](_0x1ca428,!0x0))return _0x2d764a;if(!qt(_0x2d764a,_0x47b598)){_0x1ca428['containsRange'](_0x41d58d)?_0x2d764a['removeMarkers']():_0x41d58d['containsPosition'](_0x1429a0)?_0x1429a0=_0x41d58d['end']:_0x41d58d['containsPosition'](_0x14a785)&&(_0x14a785=_0x41d58d['start']);continue;}_0x1429a0=_0x1429a0['isBefore'](_0x41d58d['start'])?_0x1429a0:_0x41d58d['start'],_0x14a785=_0x14a785['isAfter'](_0x41d58d['end'])?_0x14a785:_0x41d58d['end'],_0x47b598=Object['assign']({},_0x2d764a['attributes']),_0x4aae8d?_0x41d58d['start']['isBefore'](_0x4aae8d['getFirstRange']()['start'])?(_0x4aae8d['removeMarkers'](),_0x4aae8d=_0x2d764a):_0x2d764a['removeMarkers']():_0x4aae8d=_0x2d764a;}}}if(_0x4aae8d)return this['_setSuggestionRange'](_0x4aae8d,this['_model']['createRange'](_0x1429a0,_0x14a785)),_0x4aae8d;{const _0x121c86=_0x56aadc(),_0x48b22c=this['_model']['createRange'](_0x1429a0,_0x14a785),_0x3d21fb=_0x104d30['id'],_0x4b5045=_0x5b13df?'deletion:'+_0x5b13df:'deletion',_0x1ea853=this['_setSuggestionData']({'id':_0x121c86,'type':_0x4b5045,'createdAt':new Date(),'authorId':_0x3d21fb,'attributes':_0x47b598});return this['_addSuggestionMarker'](_0x4b5045,_0x121c86,_0x3d21fb,_0x48b22c),_0x1ea853;}}['markMultiRangeDeletion'](_0x33edd4,_0x5a9c4f='multi',_0x4205a3={}){const _0x233c91=this['editor']['plugins']['get']('Users')['me'],_0x2c2313=_0x33edd4['map'](_0x46c9ac=>new _0x22b4f7(_0x46c9ac['start'],_0x46c9ac['end'])),_0xd36645=new Set();for(const {suggestion:_0x1b2885,meta:_0x5c26be}of this['_findSuggestions'](_0x2c2313,'insertion'))_0x5c26be['isOwn']&&!_0x5c26be['isNextTo']&&_0xd36645['add'](_0x1b2885);for(const _0x5171b2 of _0xd36645)if(_0x5171b2['isMultiRange']){const _0x1f030b=_0x5171b2['getRanges']();(!_0x5171b2['attributes']||!_0x5171b2['attributes']['skipNestingCheck'])&&(_0x1f030b['every'](_0xe76529=>_0x2c2313['some'](_0x35679f=>_0x35679f['containsRange'](_0xe76529,!0x0)))&&_0x5171b2['discard']());if(_0x2c2313['every'](_0x8f30d7=>_0x1f030b['some'](_0x46958a=>_0x46958a['containsRange'](_0x8f30d7,!0x0)))){const _0x4cf279=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a9c4f,'accept');return this['forceDefaultExecution'](()=>_0x4cf279(_0x33edd4,null,_0x4205a3)),null;}}else{const _0x3f30ac=_0x5171b2['getFirstRange']();_0x2c2313['some'](_0x52a1dc=>_0x52a1dc['containsRange'](_0x3f30ac,!0x0))&&_0x5171b2['discard']();if(_0x2c2313['every'](_0x4bbce8=>_0x3f30ac['containsRange'](_0x4bbce8,!0x0))){const _0x259a0f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a9c4f,'accept');return this['forceDefaultExecution'](()=>_0x259a0f(_0x2c2313,null,_0x4205a3)),null;}}const _0x4f910c=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5a9c4f,'join');let _0x3445dd=null;for(const _0x32716c of this['getSuggestions']())if(_0x32716c['author']['id']==_0x233c91['id']&&_0x32716c['isInContent']&&'deletion'==_0x32716c['type']&&_0x32716c['subType']==_0x5a9c4f&&qt(_0x32716c,_0x4205a3)&&(_0x4f910c(_0x32716c['getRanges'](),_0x2c2313)||_0x4f910c(_0x2c2313,_0x32716c['getRanges']()))){if(_0x3445dd){if(_0x32716c['commentThread']&&_0x32716c['commentThread']['length'])continue;for(const _0x562cd4 of _0x32716c['getRanges']())_0x3445dd['isIntersectingWithRange'](_0x562cd4)||_0x3445dd['addRange'](_0x562cd4);_0x32716c['removeMarkers']();}else{_0x3445dd=_0x32716c;for(const _0x1d5e1e of _0x2c2313)_0x32716c['isIntersectingWithRange'](_0x1d5e1e)||_0x32716c['addRange'](_0x1d5e1e);}}if(_0x3445dd)return _0x3445dd;_0xd36645['clear']();for(const {suggestion:_0x127060,meta:_0x22311d}of this['_findSuggestions'](_0x2c2313,'deletion'))_0x22311d['isOwn']&&(this['_mergeNestedSuggestions']||!_0x22311d['containsRangeInObject']&&!_0x22311d['isInsideObject'])&&qt(_0x127060,_0x4205a3)&&_0xd36645['add'](_0x127060);for(const _0x391571 of _0xd36645){const _0x2d9e19=_0x391571['getRanges']();if(!_0x4205a3||!_0x4205a3['skipNestingCheck']){if(_0x2c2313['every'](_0x17e24f=>_0x2d9e19['some'](_0x35e2a0=>_0x35e2a0['containsRange'](_0x17e24f,!0x0))))return _0x391571;}(!_0x391571['attributes']||!_0x391571['attributes']['skipNestingCheck'])&&(_0x2d9e19['every'](_0x53b93c=>_0x2c2313['some'](_0xd81da1=>_0xd81da1['containsRange'](_0x53b93c,!0x0)))&&_0x391571['discard']());}const _0x4d3d57=_0x56aadc(),_0x56c78e=_0x233c91['id'],_0x2bb815='deletion:'+_0x5a9c4f,_0x4231be=this['_setSuggestionData']({'id':_0x4d3d57,'type':_0x2bb815,'createdAt':new Date(),'authorId':_0x56c78e,'attributes':_0x4205a3});for(const _0x165d87 of _0x2c2313)_0x165d87['detach'](),_0x165d87['isCollapsed']||'$graveyard'==_0x165d87['root']['rootName']||this['_addSuggestionMarker'](_0x2bb815,_0x4d3d57,_0x56c78e,_0x165d87,u['getMultiRangeId']());return _0x4231be;}['markAttributeChange'](_0x22e1e9,_0xae5c7,_0x5de72b,_0x35a03c,_0x5abbc6){if(_0x22e1e9['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x4f82b5=this['editor']['plugins']['get']('Users')['me']['id'],_0x9b04e2=Array['from'](this['_suggestions']['values']())['filter'](_0x191808=>'attribute'==_0x191808['type']&&_0x191808['data']['key']==_0xae5c7&&_0x191808['isIntersectingWithRange'](_0x22e1e9));if('default'===this['_trackFormatChanges']){const _0x2ca3a8=this['_findSuggestions'](_0x22e1e9,'insertion')['filter'](({meta:_0x18dc84})=>_0x18dc84['isOwn']&&!_0x18dc84['isInsideObject']&&!_0x18dc84['isNextTo'])['map'](({suggestion:_0x8ac80c})=>_0x8ac80c);_0x9b04e2['unshift'](..._0x2ca3a8);}const _0x497285=new Map([[_0x22e1e9,_0x5de72b]]);for(const _0x2897fc of _0x9b04e2){const _0x5aa1f='attribute'==_0x2897fc['type']?_0x2897fc['data']['oldValue']:void 0x0,_0x58271e=_0x2897fc['getFirstRange'](),_0x4ed0c0=Array['from'](_0x497285['keys']())['find'](_0x5e11de=>_0x5e11de['isIntersecting'](_0x58271e));if(!_0x4ed0c0)continue;const _0x1228da=_0x4ed0c0['getDifference'](_0x58271e);this['_isBlockAttribute'](_0xae5c7)&&'insertion'==_0x2897fc['type']&&0x0!=_0x1228da['length']||(_0x497285['delete'](_0x4ed0c0),_0x1228da['forEach'](_0x1f7e70=>{_0x497285['set'](_0x1f7e70,_0x5de72b);}),'insertion'!=_0x2897fc['type']&&_0x5aa1f!=_0x35a03c&&_0x497285['set'](_0x4ed0c0['getIntersection'](_0x58271e),_0x5aa1f));}const _0x4bd8b8=[];for(const [_0x16b1f9,_0x236746]of _0x497285){const _0x5bb262=_0x56aadc(),_0x234df3={'key':_0xae5c7,'oldValue':_0x236746,'newValue':_0x35a03c};_0xae5c7['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':_0xae5c7});const _0x44b8cf=('attribute:'+(_0xae5c7+'|'+Gt({'newValue':_0x35a03c})))['substring'](0x0,0x3c),_0x3cff2a=this['_setSuggestionData']({'id':_0x5bb262,'type':_0x44b8cf,'data':_0x234df3,'createdAt':new Date(),'authorId':_0x4f82b5,'attributes':_0x5abbc6});_0x4bd8b8['push'](_0x3cff2a),this['_addSuggestionMarker'](_0x44b8cf,_0x5bb262,_0x4f82b5,_0x16b1f9);}return _0x4bd8b8;}['enableDefaultAttributesIntegration'](_0x2993cc){this['enableCommand'](_0x2993cc,(_0x11d899,..._0x7452a8)=>{this['_recordAttributeChanges'](()=>{_0x11d899(..._0x7452a8);});});}['registerBlockAttribute'](_0x412814){this['_blockAttributeKeys']['add'](_0x412814);}['registerInlineAttribute'](_0x2ddadc){this['_inlineAttributeKeys']['add'](_0x2ddadc);}['_getAttributeKey'](_0x1928fb){return'attribute'==_0x1928fb['type']?_0x1928fb['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0xc4ca0,_0x417396){const _0x53dce7=_0xc4ca0['getFirstMarker']();this['_model']['change'](_0x2d0d7e=>{_0x2d0d7e['updateMarker'](_0x53dce7,{'range':_0x417396});});}['_addThreadToSuggestion'](_0x2743f2){const _0x5c40f1=_0x2743f2['id'],_0x14a3f7=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5c40f1)||this['_commentsRepository']['addCommentThread']({'channelId':_0x14a3f7,'threadId':_0x5c40f1,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x4fb2c2=this['_commentsRepository']['getCommentThread'](_0x5c40f1);_0x4fb2c2['unbind']('isRemovable'),_0x4fb2c2['isRemovable']=!0x1,_0x2743f2['commentThread']=_0x4fb2c2;}['_checkSuggestionCorrectness'](_0x4ad3ce,_0x40c69e,_0x2f74cf,_0x3a2883){if(_0x4ad3ce['type']!=_0x40c69e||_0x4ad3ce['subType']!=_0x2f74cf||_0x4ad3ce['creator']['id']!=_0x3a2883)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x2a2fd9('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x443c7b,_0x2a352c){const _0x1e00f6=_0x443c7b['getFirstRange']();if(_0x2a352c['isEqual'](_0x1e00f6))_0x443c7b['removeMarkers']();else{if(_0x1e00f6['containsRange'](_0x2a352c)){const _0x602893=this['_model']['createPositionAt'](_0x2a352c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x443c7b,this['_model']['createRange'](_0x1e00f6['start'],_0x602893));const _0x2b19f4=_0x56aadc(),_0xb8cee8=_0x443c7b['creator']['id'],_0x3361a2=_0x443c7b['type']+':'+_0x443c7b['subType'];this['_setSuggestionData']({'id':_0x2b19f4,'type':_0x3361a2,'createdAt':new Date(),'authorId':_0xb8cee8,'data':_0x443c7b['data'],'attributes':_0x443c7b['attributes']});const _0x7402f6=this['_model']['createPositionAt'](_0x2a352c['end']['parent'],'after'),_0x53a585=this['_model']['createRange'](_0x7402f6,_0x1e00f6['end']);this['_addSuggestionMarker'](_0x3361a2,_0x2b19f4,_0xb8cee8,_0x53a585);}else{if(_0x1e00f6['containsPosition'](_0x2a352c['start'])){const _0x28af0f=this['_model']['createPositionAt'](_0x2a352c['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x443c7b,this['_model']['createRange'](_0x1e00f6['start'],_0x28af0f));}else{const _0x59de43=this['_model']['createPositionAt'](_0x2a352c['end']['parent'],'after');this['_setSuggestionRange'](_0x443c7b,this['_model']['createRange'](_0x59de43,_0x1e00f6['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x583efc){for(const {suggestion:_0x2633ee,meta:_0x406d79}of this['_findSuggestions'](_0x583efc,'insertion')){if(!_0x406d79['isOwn'])continue;const _0x1c2e01=_0x2633ee['getRanges']();for(const _0x2d5e93 of _0x1c2e01)if(!_0x583efc['getDifference'](_0x2d5e93)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xbc775b){const _0x4e72ab=this['editor']['plugins']['get']('Users')['getUser'](_0xbc775b);if(!_0x4e72ab)throw new _0x2a2fd9('track-changes-user-not-found',this);return _0x4e72ab;}['_getExternalAuthor'](_0x20ca92){const _0x279bad=this['editor']['plugins']['get']('Users'),_0x5248cd=_0x4820e3('external:'+_0x20ca92),_0x186a45=_0x279bad['getUser'](_0x5248cd);return _0x186a45||_0x279bad['addUser']({'id':_0x5248cd,'name':_0x20ca92});}['_createSuggestion'](_0x55d005,_0xbd2e4c,_0x22632c,_0x4a969f,_0x2e2a84){const _0x4738e0=this['_getAuthorFromId'](_0x4a969f),_0x3c4c99=this['_suggestionFactory']['buildSuggestion'](_0x55d005,_0xbd2e4c,_0x22632c,_0x4738e0,_0x2e2a84,_0x334496=>{this['_updateSuggestionData'](_0x22632c,{'attributes':_0x334496});const _0x4b253e=this['getSuggestion'](_0x22632c);this['_joinWithAdjacentSuggestions'](new Set([_0x4b253e])),this['_refreshSuggestionsChain'](new Set([_0x4b253e]));});return this['listenTo'](_0x3c4c99,'accept',()=>{this['_updateSuggestionData'](_0x22632c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x3c4c99,'discard',()=>{this['_updateSuggestionData'](_0x22632c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x22632c,_0x3c4c99),this['_suggestionState']['set'](_0x3c4c99,'notReady'),_0x3c4c99;}['_splitMarkerName'](_0x5b5c68){const _0x20839f=_0x5b5c68['split'](':');return{'group':_0x20839f[0x0],'type':_0x20839f[0x1],'subType':_0x20839f['length']>=0x5?_0x20839f[0x2]:null,'id':_0x20839f['length']<0x5?_0x20839f[0x2]:_0x20839f[0x3],'authorId':_0x20839f['length']<0x5?_0x20839f[0x3]:_0x20839f[0x4],'markerCount':0x6==_0x20839f['length']?_0x20839f[0x5]:null};}['_breakSuggestionMarker'](_0xccbb35,_0x2a7b2b,_0x4d3cc2){const _0x14660b=_0xccbb35['getFirstRange'](),_0x2fee27=_0x14660b['start'],_0x359c3f=_0x14660b['end'];this['_setSuggestionRange'](_0xccbb35,this['_model']['createRange'](_0x2fee27,_0x2a7b2b));const _0x394790=_0x56aadc(),_0xbb701e=_0xccbb35['creator']['id'],_0xc29f45=_0xccbb35['type']+(_0xccbb35['subType']?':'+_0xccbb35['subType']:'');this['_setSuggestionData']({'id':_0x394790,'type':_0xc29f45,'createdAt':new Date(),'authorId':_0xbb701e,'originalSuggestionId':_0xccbb35['id'],'attributes':_0xccbb35['attributes'],'data':_0xccbb35['data']});const _0x4b1d54=this['_getAttributeKey'](_0xccbb35);('formatBlock'==_0xccbb35['type']||_0x4b1d54&&this['_isBlockAttribute'](_0x4b1d54))&&(_0x4d3cc2=this['_model']['createPositionBefore'](_0x4d3cc2['parent'])),this['_addSuggestionMarker'](_0xc29f45,_0x394790,_0xbb701e,this['_model']['createRange'](_0x4d3cc2,_0x359c3f));}['_findSuggestions'](_0x2878d6,_0x3afba8=null){const _0x2ea442=[],_0x3319c8=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2878d6)||(_0x2878d6=[_0x2878d6]);for(const _0x4818ec of this['getSuggestions']()){if(!_0x4818ec['isInContent'])continue;if(_0x3afba8&&_0x4818ec['type']!=_0x3afba8)continue;let _0x4abfbf=!0x1;for(const _0x2a0535 of _0x4818ec['getRanges']()){for(const _0x3acfca of _0x2878d6){const _0x32b11c=_0x3acfca['start']['isEqual'](_0x2a0535['end'])||_0x3acfca['end']['isEqual'](_0x2a0535['start']);if(_0x32b11c||_0x3acfca['getIntersection'](_0x2a0535)){const _0xf4bd15=_0x3acfca['containsRange'](_0x2a0535)&&Ot(this['_model']['schema'],_0x2a0535['start'],_0x3acfca),_0x347fa5=_0x2a0535['containsRange'](_0x3acfca)&&Ot(this['_model']['schema'],_0x3acfca['start'],_0x2a0535);_0x2ea442['push']({'suggestion':_0x4818ec,'meta':{'isOwn':_0x3319c8==_0x4818ec['author'],'isNextTo':_0x32b11c,'isInsideObject':_0xf4bd15,'containsRangeInObject':_0x347fa5}}),_0x4abfbf=!0x0;break;}}if(_0x4abfbf)break;}}return _0x2ea442;}['_addSuggestionMarker'](_0x29c6ab,_0x2d1cb6,_0x5c6e16,_0x430dfb,_0x4f83d3){this['_model']['change'](_0x1ab38e=>{let _0x40146e='suggestion:'+_0x29c6ab+':'+_0x2d1cb6+':'+_0x5c6e16;_0x4f83d3&&(_0x40146e=_0x40146e+':'+_0x4f83d3),_0x1ab38e['addMarker'](_0x40146e,{'range':_0x430dfb,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x5676e6){const _0x2582ad=_0x5676e6['previous'],_0x1c5df3=_0x5676e6['next'];_0x5676e6['previous']=null,_0x5676e6['next']=null,null!=_0x2582ad&&_0x2582ad['next']==_0x5676e6&&(_0x2582ad['next']=_0x1c5df3),null!=_0x1c5df3&&_0x1c5df3['previous']==_0x5676e6&&(_0x1c5df3['previous']=_0x2582ad),'ready'==this['_suggestionState']['get'](_0x5676e6)&&(this['_suggestionState']['set'](_0x5676e6,'removed'),this['fire']('suggestionUnloaded',_0x5676e6,_0x2582ad,_0x1c5df3));}['_setSuggestionData'](_0x4289ab){const _0x269b64=_0x4289ab['id'],_0xf747dd=this['addSuggestionData'](_0x4289ab);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x4af00f=this['editor']['plugins']['get']('PendingActions'),_0x2d2583=_0xf747dd['hasComments'],_0x5c29fa=_0xf747dd['subType']?_0xf747dd['type']+':'+_0xf747dd['subType']:_0xf747dd['type'],_0x4667ff=this['editor']['locale'],_0x188673=_0x4af00f['add'](o(_0x4667ff,'PENDING_ACTION_SUGGESTION')),_0x47267f={'id':_0x269b64,'type':_0x5c29fa,'hasComments':_0x2d2583,'data':_0x4289ab['data']||null,'originalSuggestionId':_0x4289ab['originalSuggestionId']||null,'attributes':_0xf747dd['attributes']};this['_adapter']['addSuggestion'](_0x47267f)['then'](_0x5438e3=>{_0xf747dd['_saved']=!0x0,_0x4af00f['remove'](_0x188673),_0x5438e3&&_0x5438e3['createdAt']&&(this['_suggestions']['get'](_0x269b64)['createdAt']=_0x5438e3['createdAt']);})['catch'](_0x34c8d9=>{throw _0xda5bc1('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xf747dd['discard']();}),_0xf747dd['stopListening'](),this['_suggestions']['delete'](_0xf747dd['id']),this['_suggestionState']['delete'](_0xf747dd),_0x34c8d9;});}return _0xf747dd;}['_isBlockAttribute'](_0x311561){return this['_blockAttributeKeys']['has'](_0x311561);}['_updateSuggestionData'](_0x2d421e,_0x34cd5f){const _0x54fa4a=this['editor']['plugins']['get']('PendingActions'),_0x4d8110=this['getSuggestion'](_0x2d421e);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4d8110['_saved']){const _0x2ef396=_0x54fa4a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x2d421e,_0x34cd5f)['then'](()=>{_0x54fa4a['remove'](_0x2ef396);});}else _0x4d8110['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x2d421e,_0x34cd5f);});}}['_getSuggestionData'](_0x1475ac){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x2a2fd9('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x1475ac);}['_handleNewSuggestionMarker'](_0x3c8055){const {id:_0x5629c2,type:_0x529db0,subType:_0x3a6ffa,authorId:_0x5a07ab}=this['_splitMarkerName'](_0x3c8055),_0x1d71b0=this['_suggestions']['get'](_0x5629c2)||this['_createSuggestion'](_0x529db0,_0x3a6ffa,_0x5629c2,_0x5a07ab,{});switch(this['_checkSuggestionCorrectness'](_0x1d71b0,_0x529db0,_0x3a6ffa,_0x5a07ab),this['_suggestionState']['get'](_0x1d71b0)){case'notReady':this['_getSuggestionData'](_0x5629c2)['then'](_0x3cb319=>{let _0x1fd7f2=Promise['resolve']();_0x3cb319['hasComments']&&(_0x1fd7f2=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x5629c2})),_0x1fd7f2['then'](()=>{this['addSuggestionData'](_0x3cb319)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x1d71b0,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x5629c2,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x1d71b0,'ready'),this['fire']('suggestionLoaded',_0x1d71b0);break;case'ready':this['fire']('suggestionChanged',_0x1d71b0);}return _0x1d71b0['addMarkerName'](_0x3c8055),_0x1d71b0;}['_refreshSuggestionsChain'](_0x1e9034){const _0xbc6b1=Array['from'](_0x1e9034),_0x1bbddf=_0xbc6b1['filter'](_0x322327=>'attribute'==_0x322327['type']);this['_refreshAttributeSuggestionsChain'](_0x1bbddf);const _0x5cd323=_0xbc6b1['filter'](_0x47a52e=>!_0x47a52e['isMultiRange']&&'attribute'!=_0x47a52e['type']),_0xbf7303=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3adde0=>!_0x3adde0['isMultiRange']&&'attribute'!=_0x3adde0['type']),_0x2c8826=_0xbf7303['filter'](_0x477e38=>!_0x1e9034['has'](_0x477e38)),_0x1630e0=new Map(_0xbf7303['map'](_0x5c8136=>[_0x5c8136,this['_suggestionFactory']['getSuggestionCallback'](_0x5c8136['type'],_0x5c8136['subType'],'chain')])),_0x6c29d7=new Map(_0xbf7303['map'](_0x3e2125=>[_0x3e2125,_0x3e2125['getFirstRange']()])),_0x289650=new Set(),_0x50acd2=new Set();for(let _0x1eaa2e=0x0;_0x1eaa2e<_0x5cd323['length'];_0x1eaa2e++)_0x3ffc89(_0x5cd323[_0x1eaa2e],_0x5cd323,_0x1eaa2e+0x1);for(let _0x182943=0x0;_0x182943<_0x5cd323['length'];_0x182943++)_0x3ffc89(_0x5cd323[_0x182943],_0x2c8826,0x0);const _0x4352ae=new Set();for(let _0x1d5bcd=0x0;_0x1d5bcd<_0x5cd323['length'];_0x1d5bcd++){const _0x164186=_0x5cd323[_0x1d5bcd];!_0x50acd2['has'](_0x164186)&&_0x164186['previous']&&(_0x4352ae['add'](_0x164186['previous']),_0x164186['previous']['next']===_0x164186&&(_0x164186['previous']['next']=null),_0x164186['previous']=null),!_0x289650['has'](_0x164186)&&_0x164186['next']&&(_0x4352ae['add'](_0x164186['next']),_0x164186['next']['previous']===_0x164186&&(_0x164186['next']['previous']=null),_0x164186['next']=null);}function _0x3ffc89(_0x4692b3,_0x3d2c67,_0x54dc4d){for(let _0x57dc1e=_0x54dc4d;_0x57dc1e<_0x3d2c67['length'];_0x57dc1e++){const _0x5252f9=_0x445d52(_0x4692b3,_0x3d2c67[_0x57dc1e]);_0x5252f9&&(_0x5252f9[0x0]['next']=_0x5252f9[0x1],_0x5252f9[0x1]['previous']=_0x5252f9[0x0],_0x289650['add'](_0x5252f9[0x0]),_0x50acd2['add'](_0x5252f9[0x1]));}}function _0x445d52(_0x5d0ee5,_0x417610){if(_0x5d0ee5['author']['id']!==_0x417610['author']['id'])return null;const _0x32a41c=_0x1630e0['get'](_0x5d0ee5)(_0x5d0ee5,_0x417610,_0x6c29d7['get'](_0x5d0ee5),_0x6c29d7['get'](_0x417610));if(!_0x32a41c)return null;return _0x1630e0['get'](_0x417610)(_0x5d0ee5,_0x417610,_0x6c29d7['get'](_0x5d0ee5),_0x6c29d7['get'](_0x417610))?_0x32a41c[0x1]['commentThread']&&_0x32a41c[0x1]['commentThread']['length']?null:_0x32a41c:null;}_0x4352ae['size']&&this['_refreshSuggestionsChain'](_0x4352ae);}['_refreshAttributeSuggestionsChain'](_0x14baa0){if(0x0==_0x14baa0['length'])return;const _0x228836=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3a9291=>'attribute'==_0x3a9291['type']&&_0x3a9291['_isDataLoaded']),_0x573946=[],_0x2b3b4f=new Map();for(const _0x2a9d5f of _0x228836){const _0x34b8f8=_0x4820e3(_0x2a9d5f['attributes']);_0x2b3b4f['has'](_0x34b8f8)||(_0x2b3b4f['set'](_0x34b8f8,_0x573946['length']),_0x573946['push']([]));const _0x13e6ad=_0x2b3b4f['get'](_0x34b8f8);_0x573946[_0x13e6ad]['push'](_0x2a9d5f);}!(function(){_0x573946['sort']((_0x53d087,_0x537064)=>{const _0x1a2302=_0x53d087[0x0]['createdAt'],_0x49a2b6=_0x537064[0x0]['createdAt'];return _0x1a2302==_0x49a2b6?_0x53d087[0x0]['attributes']['groupId']<_0x537064[0x0]['attributes']['groupId']?-0x1:0x1:_0x1a2302<_0x49a2b6?-0x1:0x1;});for(const _0x44f6f8 of _0x573946)_0x44f6f8['sort']((_0x1c9f2b,_0x2fd0e8)=>_0x1c9f2b['id']<_0x2fd0e8['id']?-0x1:0x1);}());for(let _0x287b9a=0x0;_0x287b9a<_0x573946['length'];_0x287b9a++){if(0x0==_0x573946[_0x287b9a]['length'])continue;const _0x2005da=[];for(let _0x55712f=_0x287b9a+0x1;_0x55712f<_0x573946['length'];_0x55712f++)0x0!=_0x573946[_0x55712f]['length']&&_0x589fd4(_0x573946[_0x287b9a],_0x573946[_0x55712f])&&_0x2005da['push'](_0x55712f);for(const _0x5f494e of _0x2005da)_0x573946[_0x287b9a]=_0x573946[_0x287b9a]['concat'](_0x573946[_0x5f494e]),_0x573946[_0x5f494e]=[];}for(const _0x33fd42 of _0x573946)for(let _0x1f9ed9=0x0;_0x1f9ed9<_0x33fd42['length'];_0x1f9ed9++){const _0x71da3=_0x33fd42[_0x1f9ed9+0x1]||null;_0x33fd42[_0x1f9ed9]['next']!==_0x71da3&&(_0x33fd42[_0x1f9ed9]['next']=_0x71da3);}for(const _0x158e53 of _0x573946)for(let _0x298801=0x0;_0x298801<_0x158e53['length'];_0x298801++){const _0x1f0134=_0x158e53[_0x298801-0x1]||null;_0x158e53[_0x298801]['previous']!==_0x1f0134&&(_0x158e53[_0x298801]['previous']=_0x1f0134);}function _0x589fd4(_0x22f8c8,_0x3d3335){if(_0x22f8c8[0x0]['attributes']['groupId']!==_0x3d3335[0x0]['attributes']['groupId']&&_0x22f8c8[0x0]['author']!==_0x3d3335[0x0]['author'])return!0x1;if(!function(_0x4facd9,_0x7e5b64){if(!_0x4facd9['hasComments']&&!_0x7e5b64['hasComments'])return!0x0;if(_0x4facd9['hasComments']&&_0x7e5b64['hasComments'])return!0x1;if(_0x4facd9['hasComments']&&_0x7e5b64['createdAt']<_0x4facd9['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x7e5b64['hasComments']&&_0x4facd9['createdAt']<_0x7e5b64['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x22f8c8[0x0],_0x3d3335[0x0]))return!0x1;const _0x27d429=Tt(_0x22f8c8[0x0]['attributes'],'groupId'),_0x4aa302=Tt(_0x3d3335[0x0]['attributes'],'groupId');if(!_0x415100(_0x27d429,_0x4aa302))return!0x1;return!!_0x22f8c8['every'](_0x4b206c=>_0x3d3335['some'](_0x54d266=>_0x4b206c['getFirstRange']()['isEqual'](_0x54d266['getFirstRange']())))&&_0x3d3335['every'](_0x2a3961=>_0x22f8c8['some'](_0x2a480a=>_0x2a3961['getFirstRange']()['isEqual'](_0x2a480a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x4da6e5){const _0x302cd0=Array['from'](_0x4da6e5),_0x449325=this['getSuggestions']({'skipNotAttached':!0x0}),_0x39e934=_0x449325['filter'](_0x12c27e=>!_0x4da6e5['has'](_0x12c27e)),_0x2827c2=new Map(_0x302cd0['map'](_0x238eee=>[_0x238eee,this['_suggestionFactory']['getSuggestionCallback'](_0x238eee['type'],_0x238eee['subType'],'join')])),_0x2ab6dd=new Map(_0x449325['map'](_0x434545=>[_0x434545,_0x434545['getRanges']()]));for(let _0x23d4d9=0x0;_0x23d4d9<_0x302cd0['length'];_0x23d4d9++){if(_0x188412(this,_0x302cd0[_0x23d4d9],_0x302cd0,_0x23d4d9+0x1))return!0x0;}for(let _0x4f79da=0x0;_0x4f79da<_0x302cd0['length'];_0x4f79da++){if(_0x188412(this,_0x302cd0[_0x4f79da],_0x39e934,0x0))return!0x0;}return!0x1;function _0x188412(_0x11823e,_0x357793,_0x2f284b,_0x1c928b){for(let _0x2f9a87=_0x1c928b;_0x2f9a87<_0x2f284b['length'];_0x2f9a87++){const _0x566a9c=_0x2f284b[_0x2f9a87];if(_0x566a9c['type']!==_0x357793['type']||_0x566a9c['author']['id']!==_0x357793['author']['id']||_0x566a9c['subType']!==_0x357793['subType'])continue;if(!Jt(_0x357793,_0x566a9c))continue;if('attribute'==_0x357793['type']&&_0x357793['data']['oldValue']!=_0x566a9c['data']['oldValue'])continue;if('attribute'==_0x357793['type']&&_0x11823e['_isBlockAttribute'](_0x357793['data']['key']))continue;if('formatBlock'==_0x357793['type']){const _0x33669c=_0x11823e['editor']['model'],_0x4022fd=_0x357793['getContainedElement']();if(_0x4022fd&&(_0x33669c['schema']['isObject'](_0x4022fd)||_0x33669c['schema']['isLimit'](_0x4022fd)))continue;}const _0x244385=_0x2827c2['get'](_0x357793),_0x5064f4=_0x2ab6dd['get'](_0x357793),_0x26a8cb=_0x2ab6dd['get'](_0x566a9c),_0x5e3605=_0x357793['commentThread']&&_0x357793['commentThread']['length'],_0x22b06d=_0x566a9c['commentThread']&&_0x566a9c['commentThread']['length'];if(!_0x5e3605&&_0x244385(_0x26a8cb,_0x5064f4))return _0x11823e['_joinSuggestions'](_0x566a9c,_0x357793),_0x2ab6dd['delete'](_0x357793),!0x0;if(!_0x22b06d&&_0x244385(_0x5064f4,_0x26a8cb))return _0x11823e['_joinSuggestions'](_0x357793,_0x566a9c),_0x2ab6dd['delete'](_0x566a9c),!0x0;}return!0x1;}}['_joinSuggestions'](_0x4fd18d,_0x24c28b){if(_0x4fd18d['isMultiRange']){for(const _0x49e745 of _0x24c28b['getRanges']())_0x4fd18d['addRange'](_0x49e745);}else{const _0x34421f=_0x24c28b['getFirstRange']()['end'];this['_setSuggestionRange'](_0x4fd18d,this['_model']['createRange'](_0x4fd18d['getFirstRange']()['start'],_0x34421f));}_0x24c28b['removeMarkers']();}['_getMarkerAnnouncementText'](_0x211c9a,_0x213a94,_0x3fadac){const _0x563b80=_0x211c9a['startsWith']('format')||_0x211c9a['startsWith']('attribute')?'FORMATTING':_0x211c9a['toUpperCase']();return o(this['editor']['locale'],_0x213a94+'_'+_0x563b80+'_SUGGESTION_ANNOUNCEMENT',_0x3fadac);}['_initAriaMarkerChangeAnnouncements'](){const _0x2276de=this['editor'];if(!_0x2276de['ui'])return;const {ariaLiveAnnouncer:_0x39259e}=_0x2276de['ui'];_0x443fdf(this['_model'],({left:_0x1515bd,entered:_0x38406c})=>{for(const _0x417e32 of _0x1515bd){const {group:_0x1916f6,type:_0x584aa1}=this['_splitMarkerName'](_0x417e32['name']);if('suggestion'===_0x1916f6){_0x39259e['announce'](this['_getMarkerAnnouncementText'](_0x584aa1,'LEAVE'));break;}}for(const _0x161b37 of _0x38406c){const {group:_0x6f3016,type:_0x3b6742}=this['_splitMarkerName'](_0x161b37['name']);if('suggestion'===_0x6f3016){_0x39259e['announce'](this['_getMarkerAnnouncementText'](_0x3b6742,'ENTER',_0x44cc5c(_0x473ff2)));break;}}});}['_processAttributeChanges'](_0x57dbfe){if(this['_recordAttributeSuggestions'])return!0x1;const _0x2f4be5=this['editor'],_0x502bc7=_0x2f4be5['model']['document']['differ']['getChanges']();if(0x0==_0x502bc7['length'])return!0x1;const _0x587cab=[],_0x3b1679=_0x502bc7['filter'](_0x4fb3d6=>'attribute'==_0x4fb3d6['type']),_0x583d55=_0x502bc7['filter'](_0x5135af=>'insert'==_0x5135af['type']&&'$text'!=_0x5135af['name']),_0x1fc2e=_0x502bc7['filter'](_0x50e89e=>'remove'==_0x50e89e['type']&&'$text'!=_0x50e89e['name']);for(const _0x1fc710 of _0x3b1679)_0x587cab['push']({'key':_0x1fc710['attributeKey'],'newValue':_0x1fc710['attributeNewValue'],'oldValue':_0x1fc710['attributeOldValue'],'range':Pt(_0x1fc710['range'],_0x2f4be5['model'])});for(const _0xb0f3b5 of _0x583d55){const _0x11463f=_0x1fc2e['find'](_0xebaf46=>_0xebaf46['position']['isEqual'](_0xb0f3b5['position']));_0x11463f&&_0x587cab['push']({'key':m,'newValue':_0xb0f3b5['name'],'oldValue':_0x11463f['name'],'range':_0x2f4be5['model']['createRangeOn'](_0xb0f3b5['position']['nodeAfter'])});}return 0x0!=_0x587cab['length']&&this['_reduceExistingSuggestions'](_0x57dbfe,_0x587cab);}['_processAttributeSuggestions'](_0x5e8472){let _0x4cd89a=!0x1;const _0x13ac2f=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x1080f6=>_0x1080f6['data']['newRange']&&_0x1080f6['name']['startsWith']('suggestion:attribute:'));for(const _0x54bd9f of _0x13ac2f){const {subType:_0x18e218,id:_0x3158bb}=this['_splitMarkerName'](_0x54bd9f['name']),_0x16f733=_0x18e218['split']('|')[0x0];for(const _0x82634 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x82634['id']!=_0x3158bb&&'attribute'==_0x82634['type']&&_0x82634['data']&&_0x82634['data']['key']==_0x16f733&&_0x82634['getFirstRange']()['isIntersecting'](_0x54bd9f['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x82634,_0x54bd9f['data']['newRange'],_0x5e8472),_0x4cd89a=!0x0);}return _0x4cd89a;}['_recordAttributeChanges'](_0x1d058a){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x1d058a();}['_isRegisteredAttribute'](_0x5d4cc6){const _0x2764db=this['_isBlockAttribute'](_0x5d4cc6),_0x538e6b=this['_inlineAttributeKeys']['has'](_0x5d4cc6);return _0x2764db||_0x538e6b;}['_reduceExistingSuggestions'](_0x2ae292,_0xa6f930){if(0x0==_0xa6f930['length'])return!0x1;let _0x88a937=!0x1;for(const _0x26e13c of _0xa6f930){const _0x50025c=this['_findSuggestions'](_0x26e13c['range'],'attribute')['filter'](_0x2ad1ae=>!_0x2ad1ae['meta']['isNextTo'])['map'](_0x538ee4=>_0x538ee4['suggestion']),_0x540fcc=_0x4820e3({'newValue':_0x26e13c['newValue']});_0x50025c['filter'](_0x52a1b0=>{const [_0x25e05f,_0xe45905]=_0x52a1b0['subType']['split']('|');return _0x25e05f==_0x26e13c['key']&&_0xe45905!=_0x540fcc;})['forEach'](_0x2a5c29=>{this['_reduceSuggestionAttributeRange'](_0x2a5c29,_0x26e13c['range'],_0x2ae292),_0x88a937=!0x0;});}return _0x88a937;}['_reduceSuggestionAttributeRange'](_0x2b0e59,_0x2f4acd,_0x37a2b7){const _0x4540fc=_0x2b0e59['getFirstRange']()['getDifference'](_0x2f4acd);0x0!==_0x4540fc['length']?0x1!==_0x4540fc['length']?this['_breakSuggestionMarker'](_0x2b0e59,_0x2f4acd['start'],_0x2f4acd['end']):this['_setSuggestionRange'](_0x2b0e59,_0x4540fc[0x0]):_0x37a2b7['removeMarker'](_0x2b0e59['getFirstMarker']());}}class Et{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x82263f){this['_editor']=_0x82263f,this['_model']=_0x82263f['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0xe25b02,_0x1f541d,_0x4a57a4,_0x15d70c,_0x53ff3e,_0xfe7bdf){return new u(this['_model'],{'type':_0xe25b02,'subType':_0x1f541d,'id':_0x4a57a4,'author':_0x15d70c,'creator':_0x15d70c,'attributes':_0x53ff3e,'onAttributesChange':_0xfe7bdf,'onAccept':(..._0x152fd6)=>this['getSuggestionCallback'](_0xe25b02,_0x1f541d,'accept')(..._0x152fd6),'onDiscard':(..._0xa78afe)=>this['getSuggestionCallback'](_0xe25b02,_0x1f541d,'discard')(..._0xa78afe)});}['registerCustomCallback'](_0x3f41d1,_0x16c9aa,_0x10aa82,_0x525e3c){const _0x11acec=_0x3f41d1+':'+_0x16c9aa+':'+_0x10aa82;this['_customCallbacks']['set'](_0x11acec,_0x525e3c);}['getSuggestionCallback'](_0x34db9f,_0x36262a,_0x17517e){const _0xafd20c=_0x34db9f+':'+_0x36262a+':'+_0x17517e;return this['_customCallbacks']['get'](_0xafd20c)||this['_defaultCallbacks']['get'](_0x34db9f+':'+_0x17517e);}['_registerDefaultCallbacks'](){const _0x31ac53=()=>!0x1,_0x45fd09=_0x3a098e=>{_0x3a098e['sort']((_0x4d1c6f,_0xb0cb8d)=>_0x4d1c6f['start']['isBefore'](_0xb0cb8d['start'])?0x1:-0x1),this['_model']['change'](_0x27ff4c=>{for(const _0x24115d of _0x3a098e){let _0xfe3f3b;_0xfe3f3b=_0x24115d['end']['isAtEnd']&&_0x24115d['end']['parent']==_0x24115d['start']['nodeAfter']?_0x27ff4c['createSelection'](_0x24115d['start']['nodeAfter'],'on'):_0x27ff4c['createSelection'](_0x24115d),this['_model']['deleteContent'](_0xfe3f3b,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x4f5432=(_0x52d0e6,_0x4ed963)=>{_0x4ed963&&this['_model']['change'](_0x13b9c3=>{const {commandName:_0xbd5063,commandParams:_0x210c68=[]}=_0x4ed963,_0x1d7cb8=_0x52d0e6['map'](_0x2deba3=>(Vt(_0x2deba3)&&(_0x2deba3=this['_model']['createRange'](_0x2deba3['end'])),_0x2deba3))['filter'](_0x60cee5=>'$graveyard'!==_0x60cee5['root']['rootName']);if(_0x1d7cb8['length']<0x1)return;const _0x169c8e=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x314c94=>_0x22b4f7['fromRange'](_0x314c94));_0x13b9c3['setSelection'](_0x1d7cb8);for(const _0x50cd4d of this['_editor']['commands']['commands']())_0x50cd4d['refresh']();_0x210c68['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0xbd5063,..._0x210c68);const _0xf9c75f=_0x169c8e['filter'](_0x221dee=>'$graveyard'!=_0x221dee['root']['rootName']);_0xf9c75f['length']>0x0&&_0x13b9c3['setSelection'](_0xf9c75f);for(const _0x396413 of _0x169c8e)_0x396413['detach']();});},_0x22ffe0=(_0x471b6e,_0x116d53)=>0x1==_0x471b6e['length']&&0x1==_0x116d53['length']&&_0x471b6e[0x0]['end']['isEqual'](_0x116d53[0x0]['start']),_0x43dc1a=(_0x2b5aee,_0x931a85,_0x2a1d81,_0x3adbd3)=>Ht(_0x2b5aee,_0x931a85,_0x2a1d81,_0x3adbd3,this['_model'])?[_0x2b5aee,_0x931a85]:Ht(_0x931a85,_0x2b5aee,_0x3adbd3,_0x2a1d81,this['_model'])?[_0x931a85,_0x2b5aee]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x31ac53),this['_defaultCallbacks']['set']('insertion:discard',_0x45fd09),this['_defaultCallbacks']['set']('insertion:join',_0x22ffe0),this['_defaultCallbacks']['set']('insertion:chain',_0x43dc1a),this['_defaultCallbacks']['set']('deletion:accept',_0x45fd09),this['_defaultCallbacks']['set']('deletion:discard',_0x31ac53),this['_defaultCallbacks']['set']('deletion:join',_0x22ffe0),this['_defaultCallbacks']['set']('deletion:chain',_0x43dc1a),this['_defaultCallbacks']['set']('formatInline:accept',_0x4f5432),this['_defaultCallbacks']['set']('formatInline:discard',_0x31ac53),this['_defaultCallbacks']['set']('formatInline:join',_0x22ffe0),this['_defaultCallbacks']['set']('formatInline:chain',_0x31ac53),this['_defaultCallbacks']['set']('formatBlock:accept',_0x4f5432),this['_defaultCallbacks']['set']('formatBlock:discard',_0x31ac53),this['_defaultCallbacks']['set']('formatBlock:join',_0x22ffe0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x31ac53),this['_defaultCallbacks']['set']('attribute:accept',_0x31ac53),this['_defaultCallbacks']['set']('attribute:discard',(_0x327357,_0x2c78aa)=>{if(!_0x2c78aa)return;const _0x19a56d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xaff44a=>{if(_0x2c78aa['key']==m)for(const _0x4653cb of _0x327357){const _0x317b49=_0x4653cb['start']['nodeAfter'],_0x3e346f=_0x2c78aa['oldValue'];_0xaff44a['rename'](_0x317b49,_0x3e346f);}else{if(_0x19a56d['_isBlockAttribute'](_0x2c78aa['key'])){for(const _0x21b3d1 of _0x327357)void 0x0!==_0x2c78aa['oldValue']?_0xaff44a['setAttribute'](_0x2c78aa['key'],_0x2c78aa['oldValue'],_0x21b3d1['start']['nodeAfter']):_0xaff44a['removeAttribute'](_0x2c78aa['key'],_0x21b3d1['start']['nodeAfter']);}else{for(const _0x39c3b4 of _0x327357)_0x2c78aa['oldValue']?_0xaff44a['setAttribute'](_0x2c78aa['key'],_0x2c78aa['oldValue'],_0x39c3b4):_0xaff44a['removeAttribute'](_0x2c78aa['key'],_0x39c3b4);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x22ffe0);}}function Ot(_0x26030e,_0x118760,_0x193aa7){for(const _0x9bfad5 of _0x118760['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x9bfad5['root']==_0x9bfad5)return!0x1;if(!_0x193aa7['containsItem'](_0x9bfad5))return!0x1;if(_0x26030e['isObject'](_0x9bfad5)||_0x26030e['isLimit'](_0x9bfad5))return!0x0;}return!0x1;}function Vt(_0x33b24c){return _0x33b24c['end']['parent']==_0x33b24c['start']['nodeAfter']&&_0x33b24c['end']['isAtStart'];}function Ut(_0x37526b,_0x4ae776,_0x55e824,_0x6d561a){const _0x5a8f63=_0x4b3f23=>!_0x4b3f23['item']['is']('$textProxy')&&!_0x6d561a['isObject'](_0x4b3f23['item']),_0x59ceec=_0x37526b['start']['getLastMatchingPosition'](_0x5a8f63),_0x4b7ca0=_0x37526b['end']['getLastMatchingPosition'](_0x5a8f63,{'direction':'backward'});return(!_0x37526b['start']['isEqual'](_0x59ceec)||!_0x37526b['end']['isEqual'](_0x4b7ca0))&&(_0x59ceec['isBefore'](_0x4b7ca0)?_0x55e824['updateMarker'](_0x4ae776,{'range':_0x55e824['createRange'](_0x59ceec,_0x4b7ca0)}):_0x55e824['removeMarker'](_0x4ae776),!0x0);}function Gt(_0x4989e6){return _0x4820e3(_0x4989e6);}function Ft(_0x1e094e){const _0x565065=_0x1e094e['start']['nodeAfter'];return _0x565065&&_0x565065['is']('element');}function Pt(_0x5f4123,_0x2f3f61){return null==_0x5f4123['end']['nodeBefore']&&_0x5f4123['end']['parent']==_0x5f4123['start']['nodeAfter']?Lt(_0x5f4123['start']['nodeAfter'],_0x2f3f61):_0x5f4123;}function Lt(_0x19a49a,_0x224d37){const _0x51978d=_0x224d37['schema']['isObject'](_0x19a49a)||_0x224d37['schema']['isSelectable'](_0x19a49a);return _0x224d37['createRange'](_0x224d37['createPositionAt'](_0x19a49a,'before'),_0x51978d?_0x224d37['createPositionAfter'](_0x19a49a):_0x224d37['createPositionAt'](_0x19a49a,'end'));}function Ht(_0x11c5b8,_0x2b2aed,_0x213cae,_0x5dc4b8,_0x29758b){if(_0x11c5b8['next'])return!0x1;if(!Jt(_0x11c5b8,_0x2b2aed))return!0x1;if(_0x213cae['end']['isEqual'](_0x5dc4b8['start']))return!0x0;if(_0x11c5b8['type']!=_0x2b2aed['type'])return!0x1;if(!_0x213cae['end']['isTouching'](_0x5dc4b8['start']))return!0x1;const _0x360002=_0x29758b['createRange'](_0x213cae['end'],_0x5dc4b8['start'])['getWalker']();for(const _0x2545c0 of _0x360002)if(['elementStart','elementEnd']['includes'](_0x2545c0['type'])&&_0x29758b['schema']['isLimit'](_0x2545c0['item']))return!0x1;return!0x0;}function Jt(_0x2ebd7e,_0x5c46b5){if(!_0x2ebd7e['_isDataLoaded']||!_0x5c46b5['_isDataLoaded'])return!0x1;const _0x5df7a6=new Set(Object['keys'](_0x2ebd7e['attributes'])),_0x5e65e9=new Set(Object['keys'](_0x5c46b5['attributes']));if(_0x5df7a6['delete']('groupId'),_0x5e65e9['delete']('groupId'),0x0==_0x5df7a6['size']&&0x0==_0x5e65e9['size'])return!0x0;if(_0x5df7a6['size']!=_0x5e65e9['size'])return!0x1;const _0x3499cf={..._0x2ebd7e['attributes']},_0x85b896={..._0x5c46b5['attributes']};return delete _0x3499cf['groupId'],delete _0x85b896['groupId'],JSON['stringify'](_0x3499cf)==JSON['stringify'](_0x85b896);}function qt(_0x824b75,_0x4ed5bc){const _0x38f7f2=zt(_0x824b75['attributes']),_0x586a88=zt(_0x4ed5bc);if(!_0x824b75['_isDataLoaded'])return!0x1;for(const _0x490b44 of Object['keys'](_0x586a88))if(!_0x415100(_0x38f7f2[_0x490b44],_0x586a88[_0x490b44]))return!0x1;return!0x0;}function zt(_0x28c37b){const _0x3fcd07=Object['assign']({},_0x28c37b);return delete _0x3fcd07['skipNestingCheck'],delete _0x3fcd07['tablePasteChainId'],_0x3fcd07;}class ae extends/* #__PURE__ -- @preserve */
25
- _0x35f11c(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x13ef15,_0x5da2a5,_0x42496c,_0x39a9a6){super(),this['model']=_0x5da2a5,this['view']=_0x42496c,this['commentThreadController']=_0x39a9a6,this['_editor']=_0x13ef15,this['_acceptCommand']=_0x13ef15['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x13ef15['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x2bbcff,_0x4f710c)=>_0x2bbcff||_0x4f710c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x15000f=>_0x15000f&&this['_editor']['model']['canEditAt'](_0x5da2a5['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cba3a=>_0x1cba3a&&this['_editor']['model']['canEditAt'](_0x5da2a5['getRanges']())),this['_pendingAction']=null,_0x42496c['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x42496c,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x42496c,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x42496c,'change:isDirty',()=>{_0x42496c['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 _0x1c699d=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1c699d);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class us extends _0x2ddc4e{['commentsListView'];['commentThreadInputView'];['ariaDescriptionView'];['focusables'];['focusTracker'];['keystrokes'];['focusCycler'];['_model'];['_localUser'];['_config'];constructor(_0x3b8030,_0x41ed41,_0x126714,_0x45a6e3){super(_0x3b8030),this['commentsListView']=null,this['commentThreadInputView']=null,this['ariaDescriptionView']=new _0x2e52dc(_0x3b8030,o(_0x3b8030,'SUGGESTION_THREAD_DESCRIPTION')),this['set']('isActive',!0x1),this['set']('authoredAt',_0x41ed41['authoredAt']),this['bind']('authoredAt')['to'](_0x41ed41),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',_0x41ed41,'authoredAt',this,'descriptionParts',(_0xbd851b,_0x4d95f5,_0x310f59)=>{const _0x26fdfe=_0x310f59['map'](_0x260702=>ls(_0x260702['content']))['join']('.\x20')+'.';return o(this['locale'],'SUGGESTION_THREAD_ARIA_LABEL',[_0xbd851b-0x1,_0x41ed41['author']['name'],_0x4d95f5?_0x45a6e3['formatDateTime'](_0x4d95f5):'',new DOMParser()['parseFromString'](_0x26fdfe,'text/html')['body']['textContent']]);}),this['focusables']=new _0x24ec26(),this['focusTracker']=new _0x3e3946(),this['keystrokes']=new _0x10750(),this['focusCycler']=new _0x307531({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'keystrokeHandlerOptions':{'filter':_0xbe58c4=>_0xbe58c4['target']!==this['element']},'actions':{'focusPrevious':'shift+tab','focusNext':'tab'}}),this['_model']=_0x41ed41,this['_localUser']=_0x126714,this['_config']=_0x45a6e3,_0x45a6e3['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['render'](){super['render'](),_0x2e1f64(this,this['focusables']);}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x76d6ba}=this['_config'];this['commentsListView']=new _0x76d6ba(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',_0x1b5662=>_0x1b5662+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x184b5e,_0xdce640)=>_0x184b5e||!!_0xdce640);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x154680}=this['_config'],_0x3dc257=new _0x154680(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x5e777f=_0x3dc257['commentInputView'];return _0x3dc257['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x5e777f,'value',(_0x1542b1,_0x5713ac,_0x4ff185)=>!!_0x4ff185||_0x1542b1&&!_0x5713ac),_0x5e777f['on']('submit',(_0x319163,_0x32dfc7)=>{this['fire']('addComment',_0x32dfc7),_0x5e777f['editor']['setData']('');}),_0x5e777f['on']('cancel',()=>this['focus']()),_0x5e777f['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3dc257;}}class re extends us{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x3ff71d,_0x511e79,_0x4fa4f2,_0x26cea7){super(_0x3ff71d,_0x511e79,_0x4fa4f2,_0x26cea7),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x11c99a=>_0x11c99a&&_0x11c99a[0x0]?_0x11c99a[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x2b75bb,_0x16e3fe)=>{let _0x72aa18='';for(const _0x3af02e of _0x2b75bb)_0x72aa18+='<p>'+ls(_0x3af02e['content'],_0x3af02e['color'])+'</p>';return _0x16e3fe?_0x72aa18:_0x3c1bb3(_0x72aa18,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x3ff71d,'Accept\x20suggestion'),_0x2b45d4['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x3ff71d,'Discard\x20suggestion'),_0x2b45d4['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0xc114b2(_0x3ff71d,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 _0x2c0a5e=this['bindTemplate'],_0x47c772=[{'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':_0x2c0a5e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x2c0a5e['to']('authoredAt',_0x33751e=>this['_config']['formatDateTime'](_0x33751e))}]}]},{'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']&&_0x47c772['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x24dd81={'tag':'div','attributes':{'class':['ck','ck-rounded-corners','ck-suggestion-wrapper',_0x2c0a5e['if']('isActive','ck-suggestion-wrapper--active'),_0x2c0a5e['to']('type',_0x22d21c=>'ck-suggestion-'+_0x22d21c),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':_0x2c0a5e['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':_0x47c772},this['ariaDescriptionView']]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x24dd81['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)),_0x24dd81;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xb5073,_0x459e00,_0x1b9bdf)=>{this['_descriptionElement']['innerHTML']=_0x1b9bdf;});}['_createButton'](_0xcb4d57,_0x5e0b82,_0x5cc5e8,_0x40c364,_0x592056){const _0x2c81a3=new _0x1c9a55(this['locale']);return _0x2c81a3['set']({'label':_0xcb4d57,'icon':_0x5e0b82,'tooltip':!0x0,'tooltipPosition':_0x592056}),_0x2c81a3['extendTemplate']({'attributes':{'class':_0x5cc5e8}}),_0x2c81a3['on']('execute',()=>{this['fire'](_0x40c364,this['_model']['id']);}),_0x2c81a3;}['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 _0x3c69b1{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x3ae110,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x208ecc){super(_0x208ecc),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x5d774c=this['editor']['config'];_0x5d774c['define']('trackChanges.SuggestionThreadView',re),_0x5d774c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x5d774c['get']('trackChanges.disableComments'),this['_initKeyboardNavigationToThread']();}['_handleSuggestionControllerDelayed'](_0x206c47,_0x2539c5){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x2b1547,_0x2828ec]of this['_handleControllerBuffer']){const _0x5e8e50=this['_suggestionToController']['has'](_0x2b1547);_0x5e8e50||_0x2828ec?_0x5e8e50&&_0x2828ec&&this['_destroyController'](_0x2b1547):this['_initializeController'](_0x2b1547);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x206c47,_0x2539c5);}['init'](){const _0x59a5cb=this['editor'],_0x185cb8=_0x59a5cb['plugins']['get']('TrackChangesEditing'),_0x729b8=_0x59a5cb['plugins']['get']('Annotations'),_0x297b93=_0x59a5cb['plugins']['get']('EditorAnnotations'),_0x5c3fa2=_0x59a5cb['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x297b93['addSourceCollector'](()=>{const _0x13fd3f=[];for(const [_0xed4f0e,_0x23ba44]of Array['from'](this['_suggestionToController'])){const _0x171d48=_0xed4f0e['getAllAdjacentSuggestions'](),_0x14fa74=[];for(const _0x5f4039 of _0x171d48){if(!_0x5f4039['isInContent'])continue;if(_0x5f4039['isMultiRange']){_0x14fa74['push'](..._0x5f4039['getRanges']());continue;}const _0x3e6b61=_0x5f4039['getFirstRange']();if(_0x14fa74['length']>0x0){const _0x5a1435=_0x14fa74[0x0]['getJoined'](_0x3e6b61);if(_0x5a1435){_0x14fa74[0x0]=_0x5a1435;continue;}}_0x14fa74['push'](_0x3e6b61);}_0x13fd3f['push']([_0x23ba44['view'],_0x14fa74]);}return _0x13fd3f;}),this['listenTo'](_0x185cb8,'suggestionLoaded',(_0xdf9780,_0x1bb243)=>{this['listenTo'](_0x1bb243,'change:previous',(_0x3f321b,_0x57b003,_0x5b1736,_0x5b4cad)=>{_0x1bb243['isInContent']&&(null==_0x5b1736?(this['_updateController'](_0x5b4cad['head']),this['_handleSuggestionControllerDelayed'](_0x1bb243,!0x1)):(this['_updateController'](_0x5b1736['head']),null==_0x5b4cad&&this['_handleSuggestionControllerDelayed'](_0x1bb243,!0x0)));}),null!==_0x1bb243['previous']?this['_updateController'](_0x1bb243['head']):this['_handleSuggestionControllerDelayed'](_0x1bb243,!0x1);}),this['listenTo'](_0x185cb8,'suggestionUnloaded',(_0x33cc20,_0xf3053c,_0x2f2687)=>{this['stopListening'](_0xf3053c,'change:previous'),this['_handleControllerBuffer']['delete'](_0xf3053c),this['_suggestionToController']['has'](_0xf3053c)&&this['_destroyController'](_0xf3053c),_0x2f2687&&this['_updateController'](_0x2f2687['head']);}),this['listenTo'](_0x185cb8,'suggestionChanged',(_0x544248,_0x14bfcc)=>{this['_updateController'](_0x14bfcc);}),this['listenTo'](_0x729b8,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x5c3fa2,'addComment',(_0x151fd9,{threadId:_0x284582,isFromAdapter:_0x54fe2d})=>{if(_0x54fe2d||!_0x185cb8['hasSuggestion'](_0x284582))return;const _0x904269=_0x185cb8['getSuggestion'](_0x284582);this['_suggestionToController']['get'](_0x904269)['view']['commentsListView']['focus'](-0x1);},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x581a1e=this['editor']['plugins']['get']('Annotations'),_0x4ec7d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5606ea=Array['from'](_0x581a1e['activeAnnotations'],_0x3c9f6f=>_0x3c9f6f['innerView'])['filter'](_0x9576f=>this['_viewToController']['has'](_0x9576f)),_0x4d4a65=[];for(const _0x2798bc of _0x5606ea){const _0x587d58=this['_viewToController']['get'](_0x2798bc)['model']['getAllAdjacentSuggestions']();_0x4d4a65['push'](..._0x587d58['reduce']((_0x1a5464,_0x560505)=>[..._0x1a5464,..._0x560505['getMarkerNames']()],[]));}_0x4ec7d8['activeMarkers']=_0x4d4a65;}['_addUIComponentsToFactory'](){const _0xe4e3a3=this['editor'],_0x3042fb=_0xe4e3a3['locale'],_0x3bb61c=o(_0x3042fb,'Track\x20changes'),_0x5a82cc=new Wt([{'type':'switchbutton','model':new _0x346bac({'withText':!0x0,'isToggleable':!0x0,'label':_0x3bb61c,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new _0x346bac({'withText':!0x0,'label':o(_0x3042fb,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x346bac({'withText':!0x0,'label':o(_0x3042fb,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new _0x346bac({'withText':!0x0,'label':o(_0x3042fb,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new _0x346bac({'withText':!0x0,'label':o(_0x3042fb,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0xaff90 of _0x5a82cc)if(he(_0xaff90)){const _0x15c9e9=_0xe4e3a3['commands']['get'](_0xaff90['model']['commandName']);_0xaff90['model']['bind']('isOn','isEnabled')['to'](_0x15c9e9,'value','isEnabled');}_0xe4e3a3['ui']['componentFactory']['add']('trackChanges',_0x24a87c=>this['_createToolbarButton'](_0x24a87c,_0x5a82cc,_0x3bb61c)),_0xe4e3a3['ui']['componentFactory']['add']('menuBar:trackChanges',_0x10e881=>this['_createMenuBarMenu'](_0x10e881,_0x5a82cc,_0x3bb61c));}['_createToolbarButton'](_0x41b7f5,_0x4ab21b,_0x7d02a5){const _0x1e5b27=Qt(_0x41b7f5,_0xc764f7),_0x3c8999=this['editor']['commands']['get']('trackChanges');_0x1e5b27['buttonView']['set']({'tooltip':_0x7d02a5,'label':_0x7d02a5,'icon':ce}),_0x1e5b27['buttonView']['bind']('isOn')['to'](_0x3c8999,'value'),_0x1e5b27['buttonView']['on']('execute',()=>{_0x3c8999['execute'](),this['editor']['editing']['view']['focus']();}),Kt(_0x1e5b27,_0x4ab21b,{'role':'menu'});const _0x25a0c8=[];for(const _0x9c33fd of _0x4ab21b)he(_0x9c33fd)&&_0x25a0c8['push'](this['editor']['commands']['get'](_0x9c33fd['model']['commandName']));const _0x50a480=_0x1e5b27['buttonView'];return _0x50a480['actionView']['unbind']('isEnabled'),_0x50a480['arrowView']['unbind']('isEnabled'),_0x50a480['actionView']['bind']('isEnabled')['to'](_0x3c8999,'isEnabled'),_0x50a480['arrowView']['bind']('isEnabled')['toMany'](_0x25a0c8,'isEnabled',(..._0x285b0d)=>_0x285b0d['some'](_0x7b8164=>_0x7b8164)),_0x1e5b27['on']('execute',_0x2d493f=>{this['editor']['execute'](_0x2d493f['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1e5b27;}['_createMenuBarMenu'](_0x54840a,_0x41fa6c,_0x3ea845){const _0x139012=new Yt(_0x54840a),_0xab6d34=this['editor']['commands']['get']('trackChanges');_0x139012['buttonView']['set']({'label':_0x3ea845,'icon':ce});const _0x3b3dc8=new Zt(_0x54840a);for(const _0x5403bb of _0x41fa6c){if('separator'==_0x5403bb['type']){_0x3b3dc8['items']['add'](new Xt(_0x54840a));continue;}const _0x1ea551=new te(_0x54840a,_0x139012),_0x141250=new _0x528b75(_0x54840a),_0x2bf116=_0x5403bb['model'];_0x141250['bind'](...Object['keys'](_0x2bf116))['to'](_0x2bf116),_0x141250['delegate']('execute')['to'](_0x139012),_0x141250['on']('execute',()=>{this['editor']['execute'](_0x2bf116['commandName']),this['editor']['editing']['view']['focus']();}),_0x1ea551['children']['add'](_0x141250),_0x3b3dc8['items']['add'](_0x1ea551);}return _0x139012['bind']('isEnabled')['to'](_0xab6d34,'isEnabled'),_0x139012['panelView']['children']['add'](_0x3b3dc8),_0x139012;}['_initializeController'](_0x41ce92){const _0x433af3=this['editor'],_0x53e3fe=_0x433af3['config'],_0xad5a7a=_0x433af3['plugins']['get']('Annotations'),_0x259cf8=_0x433af3['plugins']['get']('CommentsRepository'),_0x31fd78=_0x433af3['plugins']['get']('EditorAnnotations'),_0x3618b1=_0x433af3['plugins']['get'](_0x3ae110)['me'],_0x452e2f=_0x53e3fe['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x3c719e,CommentThreadInputView:_0x81b01b}=_0x433af3['plugins']['get']('CommentsUI');let _0xeba774,_0x57bd2b;this['_annotationViews']['has'](_0x41ce92['id'])?(_0x57bd2b=this['_annotationViews']['get'](_0x41ce92['id']),_0xeba774=_0x57bd2b['mainView']):(_0xeba774=new _0x452e2f(_0x433af3['locale'],_0x41ce92,_0x3618b1,{'disableComments':this['_disableComments'],'editorConfig':_0x53e3fe['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x53e3fe['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x53e3fe['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x53e3fe['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x57858b(_0x53e3fe['get']('locale')),'CommentView':_0x53e3fe['get']('comments')['CommentView'],'CommentsListView':_0x3c719e,'CommentThreadInputView':_0x81b01b}),_0xeba774['acceptButton']['on']('execute',()=>{_0x433af3['editing']['view']['focus']();}),_0xeba774['discardButton']['on']('execute',()=>{_0x433af3['editing']['view']['focus']();}),_0x57bd2b=_0xad5a7a['createAnnotationView'](this['editor']['locale'],_0xeba774),_0x57bd2b['bind']('isDirty')['to'](_0xeba774,'isDirty'),_0x57bd2b['bind']('length')['to'](_0xeba774),_0x57bd2b['bind']('type')['to'](_0xeba774,'type',_0x193c41=>'suggestion-'+_0x193c41),this['listenTo'](_0xeba774,'escape',()=>{_0x433af3['editing']['view']['focus']();},{'priority':'low'}),this['_annotationViews']['set'](_0x41ce92['id'],_0x57bd2b));const _0x1e2e1f=_0x259cf8['createCommentThreadController'](_0x41ce92['commentThread'],_0xeba774),_0x336a4f=new ae(_0x433af3,_0x41ce92,_0xeba774,_0x1e2e1f),_0x33ce58=_0x41ce92['getAllAdjacentSuggestions']()['filter'](_0x57bcb3=>_0x57bcb3['isInContent']);_0xeba774['descriptionParts']=_0x433af3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x33ce58),this['_suggestionToController']['set'](_0x41ce92,_0x336a4f),this['_viewToController']['set'](_0xeba774,_0x336a4f);const _0x53b84a=_0xad5a7a['createAnnotation']({'view':_0x57bd2b,'target':()=>{const _0x3ca78f=[],_0x36cbdb=_0x41ce92['getAllAdjacentSuggestions']()['filter'](_0x475360=>_0x475360['isInContent']);for(const _0xa0596d of _0x36cbdb)_0x3ca78f['push'](..._0xa0596d['getMarkers']());return _0x6dcf0b(_0x433af3['editing'],_0x3ca78f);},'type':()=>'suggestion-'+_0x336a4f['view']['type']});_0x259cf8['_bindAnnotationToEditors'](_0xeba774,_0x53b84a),_0xad5a7a['add'](_0x53b84a),_0x31fd78['registerAnnotation'](_0x53b84a);}['_destroyController'](_0x2d5e9f){const _0xe1ff7b=this['editor']['plugins']['get']('CommentsRepository'),_0x4d8a2a=this['editor']['plugins']['get']('Annotations'),_0x1b1f3a=this['_suggestionToController']['get'](_0x2d5e9f),_0x114b34=_0x1b1f3a['view'],_0x12d82f=_0x4d8a2a['getByInnerView'](_0x114b34);_0xe1ff7b['_unbindEditors'](_0x114b34),_0x12d82f&&_0x4d8a2a['remove'](_0x12d82f),this['_suggestionToController']['delete'](_0x2d5e9f),this['_viewToController']['delete'](_0x114b34),_0x1b1f3a['destroy']();}['_updateController'](_0x496eab){if(!_0x496eab['isInContent']||!this['_suggestionToController']['has'](_0x496eab))return;const _0x2cbe3b=this['editor']['plugins']['get']('TrackChangesEditing'),_0x113d8e=this['_suggestionToController']['get'](_0x496eab),_0x58135e=_0x496eab['getAllAdjacentSuggestions']();_0x113d8e['view']['descriptionParts']=_0x2cbe3b['descriptionFactory']['getDescriptions'](_0x58135e);}['_initKeyboardNavigationToThread'](){this['editor']['keystrokes']['set'](_0x473ff2,(_0x4835ae,_0x3b95d6)=>{const _0x304769=this['editor']['plugins']['get'](k),_0x138ded=this['editor']['plugins']['get'](p);if(!_0x138ded['activeMarkers']['length'])return;const {id:_0x51565e}=_0x138ded['_splitMarkerName'](_0x138ded['activeMarkers'][0x0]),_0x291c5b=_0x304769['getSuggestion'](_0x51565e);_0x291c5b&&(this['_suggestionToController']['get'](_0x291c5b)['view']['focus'](),_0x3b95d6());});}['destroy'](){for(const _0x526010 of this['_suggestionToController']['keys']())this['_destroyController'](_0x526010);for(const _0x5a5a06 of this['_annotationViews']['values']())_0x5a5a06['mainView']['destroy']();super['destroy']();}}function he(_0x57e616){return'model'in _0x57e616;}class k extends _0x3c69b1{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x2d4583){this['editor']['plugins']['get'](p)['adapter']=_0x2d4583;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0xfd5008){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0xfd5008);}['getSuggestions']({skipNotAttached:_0x2798be=!0x1,toJSON:_0x50ef8d=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x2798be,'toJSON':_0x50ef8d});}['getSuggestion'](_0x3bf010){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x3bf010);}}const T=['Pagination'];class P extends _0x3c69b1{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x14e4e0=this['editor'];if(_0x14e4e0['config']['define']('trackChangesData.editorCreator',_0x55df45=>{const _0x3ce273=_0x14e4e0['model']['document']['getRootNames']()['reduce']((_0x3fbdc4,_0x32a74a)=>(_0x3fbdc4[_0x32a74a]='',_0x3fbdc4),{});return _0x14e4e0['constructor']['create'](_0x3ce273,_0x55df45);}),'function'!=typeof _0x14e4e0['config']['get']('trackChangesData')['editorCreator'])throw new _0x2a2fd9('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x5d41a1){return N(this['editor'],!0x0,_0x5d41a1);}['getDataWithDiscardedSuggestions'](_0x7d705d){return N(this['editor'],!0x1,_0x7d705d);}}class D extends _0x3c69b1{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x24b04d){super(_0x24b04d),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(_0xb5ca69){return void 0x0!==_0xb5ca69['getRootsAttributes'];}async function N(_0x55dcb4,_0x1d7ec5,_0x2f2fa7){const _0x4432d6=_0x13a7b0(_0x55dcb4,T);_0x4432d6['plugins']['push'](p,D),_0x4432d6['rootsAttributes']=v(_0x55dcb4)?_0x55dcb4['getRootsAttributes']():void 0x0;const _0x5765a2=document['createDocumentFragment'](),_0x220367=_0x55dcb4['config']['get']('trackChangesData')['editorCreator'],_0x96ba71=await _0x220367(_0x4432d6,()=>function(_0x25e68a){const _0x2aaa17=document['createElement']('div');return _0x25e68a['appendChild'](_0x2aaa17),_0x2aaa17;}(_0x5765a2));!function(_0x3d9ef8,_0x369a67){const _0x23e839=_0x3d9ef8['model']['document']['getRootNames']()['reduce']((_0x5a430f,_0x271881)=>(_0x5a430f[_0x271881]=_0x3d9ef8['data']['get']({'rootName':_0x271881}),_0x5a430f),{}),_0x17c985=_0x3d9ef8['plugins']['get']('Users')['users']['map'](_0x4005c3=>({'id':_0x4005c3['id'],'name':_0x4005c3['name']})),_0x57c2b1=_0x3d9ef8['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x436878=_0x3d9ef8['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x5b900b=_0x369a67['plugins']['get']('Users'),_0x5da371=_0x369a67['plugins']['get']('TrackChangesEditing'),_0x577bf1=_0x369a67['plugins']['get']('CommentsRepository');for(const _0x91268f of _0x577bf1['getCommentThreads']())_0x91268f['remove']();for(const _0x5ddbfe of _0x17c985)_0x5b900b['getUser'](_0x5ddbfe['id'])||_0x5b900b['addUser'](_0x5ddbfe);_0x5b900b['me']||_0x5b900b['useAnonymousUser']();for(const _0x359f46 of _0x436878)_0x577bf1['addCommentThread'](_0x359f46);for(const _0x53c166 of _0x57c2b1)_0x5da371['addSuggestionData'](_0x53c166);_0x369a67['data']['set'](_0x23e839);}(_0x55dcb4,_0x96ba71),_0x96ba71['execute'](_0x1d7ec5?'acceptAllSuggestions':'discardAllSuggestions');const _0x54f35b=v(_0x96ba71)?_0x96ba71['getFullData'](_0x2f2fa7):_0x96ba71['data']['get'](_0x2f2fa7);return await _0x96ba71['destroy'](),_0x54f35b;}export{us as BaseSuggestionThreadView,re as SuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
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};