@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240713.0 → 0.0.0-nightly-20240715.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 _0x4104d6,PendingActions as _0x2fa12b,icons as _0x4d5335}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x274ec5,ObservableMixin as _0x29d385,uid as _0x5ed2a0,insertToPriorityArray as _0x1e2438,priorities as _0x2ff03c,logWarning as _0x54a9b3,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9e5829,View as _0xb5144,ButtonView as _0x548b51,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0xc2c087,hashObject as _0x478958,surroundingMarkersDetector as _0x31dd0a,trimHtml as _0x5a6ffe,UserView as _0x5c4290,getDateTimeFormatter as _0x227821,getAllMarkersDomElementsSorted as _0x2ce1e8,sanitizeEditorConfig as _0xbb1dc2}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x11180d,LiveRange as _0xe90ba7,LivePosition as _0x37ad9c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x51a40e,toWidget as _0x5f3b3a}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x574e51,set as _0x3d1f8a,isEqual as _0x7f9970,unset as _0x541f6c,omit as Bt}from'lodash-es';import{Delete as _0x296bb7,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x501866,ShiftEnter as _0x291438}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0xf13909,_0x388f7a){super(_0xf13909),this['_enabledCommands']=_0x388f7a,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 _0x4c143b of this['editor']['commands']['commands']())_0x4c143b['affectsData']&&!this['_enabledCommands']['has'](_0x4c143b)&&_0x4c143b['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0xdb57f4 of this['editor']['commands']['commands']())_0xdb57f4['affectsData']&&!this['_enabledCommands']['has'](_0xdb57f4)&&_0xdb57f4['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x299027,_0x1823b2){super(_0x299027),this['_suggestions']=_0x1823b2,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4b1aeb){const _0xe30089=this['_suggestions']['get'](_0x4b1aeb);if(!_0xe30089)throw new _0x274ec5('track-changes-accept-suggestion-not-found',this);const _0x56b8b5=_0xe30089['getRanges']();this['editor']['model']['canEditAt'](_0x56b8b5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0xe30089);}}class B extends ts{['_suggestions'];constructor(_0x24feac,_0x52f4cf){super(_0x24feac),this['_suggestions']=_0x52f4cf,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5c7287){const _0x31820a=this['_suggestions']['get'](_0x5c7287);if(!_0x31820a)throw new _0x274ec5('track-changes-discard-suggestion-not-found',this);const _0xf7e1ed=_0x31820a['getRanges']();this['editor']['model']['canEditAt'](_0xf7e1ed)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x31820a);}}function ss(_0x435fd3){return _0x435fd3['sort']((_0x37b506,_0x456568)=>'deletion'==_0x37b506['type']&&'deletion'!=_0x456568['type']?-0x1:'deletion'!=_0x37b506['type']&&'deletion'==_0x456568['type']?0x1:0x0);}function to(_0x30050a,_0x33cbab){let _0x2387fc,_0x3a170a=0x0;const _0x145730=[],_0x5685f8=_0x33cbab['schema'];for(;_0x3a170a<_0x30050a['length'];){const _0x4c80b7=_0x30050a[_0x3a170a],_0x3a2fee=_0x30050a[_0x3a170a+0x1];_0x2387fc||(_0x2387fc=_0x33cbab['createPositionBefore'](_0x4c80b7)),co(_0x33cbab,_0x4c80b7,_0x3a2fee)||(_0x145730['push'](_0x33cbab['createRange'](_0x2387fc,_0x5685f8['isObject'](_0x4c80b7)?_0x33cbab['createPositionAfter'](_0x4c80b7):_0x33cbab['createPositionAt'](_0x4c80b7,'end'))),_0x2387fc=null),_0x3a170a++;}return _0x145730;}function co(_0x1eb94b,_0x219c38,_0x5d7394){if(!_0x5d7394)return!0x1;const _0x1c6b7c=_0x1eb94b['createPositionAfter'](_0x219c38),_0x2cf64b=_0x1eb94b['createPositionBefore'](_0x5d7394);return _0x1c6b7c['isTouching'](_0x2cf64b);}function rs(_0x46b8e5,_0x6c06ab,_0xd745df){for(;_0xd745df['length'];){const _0x459e7b=_0xd745df['splice'](0x0,0x64);_0x46b8e5['change'](()=>{for(const _0x1f5a33 of _0x459e7b)_0x1f5a33['isInContent']&&_0x6c06ab['execute'](_0x1f5a33['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0x5c079a,_0x40f5f3,_0x1ce85a){super(_0x5c079a),this['_command']=_0x40f5f3,this['_suggestions']=_0x1ce85a,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x14bf9f=Array['from'](this['_suggestions']['values']())['some'](_0x3f3747=>_0x3f3747['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x14bf9f;}['execute'](){const _0xcbf4c3=ss(Array['from'](this['_suggestions']['values']()));for(const _0x1da8ff of _0xcbf4c3){const _0x324ecb=_0x1da8ff['getRanges']();if(!this['editor']['model']['canEditAt'](_0x324ecb))return;}rs(this['editor']['model'],this['_command'],_0xcbf4c3);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x5a6116,_0xc715cc,_0x681a6c){super(_0x5a6116),this['_command']=_0xc715cc,this['_suggestions']=_0x681a6c,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0x401aff=this['editor']['model']['document']['selection'],_0x90fdc5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x571a8a,_0x19db53){const _0x505feb=Array['from'](_0x571a8a['getRanges']()),_0x38f32c=new Set();for(const _0x16bcca of _0x19db53)if(_0x16bcca['isInContent']){for(const _0x43760 of _0x505feb)for(const _0x400fb6 of _0x16bcca['getRanges']())(_0x43760['isIntersecting'](_0x400fb6)||_0x571a8a['isCollapsed']&&!_0x16bcca['isMultiRange']&&_0x16bcca['next']&&_0x400fb6['end']['isTouching'](_0x43760['start']))&&_0x38f32c['add'](_0x16bcca);}return _0x38f32c;}(_0x401aff,_0x90fdc5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0xe04d6e=ss(Array['from'](this['_selectedSuggestions']));for(const _0x492f7f of _0xe04d6e){const _0x6dcbe8=_0x492f7f['getRanges']();if(!this['editor']['model']['canEditAt'](_0x6dcbe8))return;}rs(this['editor']['model'],this['_command'],_0xe04d6e);}}class u extends/* #__PURE__ -- @preserve */
24
- _0x29d385(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x2040b2,_0x28f9e6){super(),this['id']=_0x28f9e6['id'],this['type']=_0x28f9e6['type'],this['subType']=_0x28f9e6['subType']||null,this['author']=_0x28f9e6['author'],this['creator']=_0x28f9e6['creator']||_0x28f9e6['author'],this['isExternal']=Boolean(_0x28f9e6['attributes']&&_0x28f9e6['attributes']['@external']),this['data']=null,this['_model']=_0x2040b2,this['_onAccept']=_0x28f9e6['onAccept'],this['_onDiscard']=_0x28f9e6['onDiscard'],this['_onAttributesChange']=_0x28f9e6['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x28f9e6['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 _0x244001=this;for(;_0x244001['previous'];)_0x244001=_0x244001['previous'];return _0x244001;}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'](_0x10d109){this['_markerNames']['add'](_0x10d109);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x5a3925=>this['_model']['markers']['get'](_0x5a3925))['filter'](_0x1899fa=>_0x1899fa);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2b56ba=>{for(const _0x2a9644 of this['getMarkers']())_0x2b56ba['removeMarker'](_0x2a9644);}),this['_markerNames']['clear']();}['removeMarker'](_0x15a6a9){this['_model']['change'](_0x302483=>{_0x302483['removeMarker'](_0x15a6a9);}),this['_markerNames']['delete'](_0x15a6a9);}['addRange'](_0x166abf){const _0x36f0ca='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x36f0ca),this['_model']['change'](_0x1a7b26=>{_0x1a7b26['addMarker'](_0x36f0ca,{'range':_0x166abf,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x28a1b0){for(const _0x13f664 of this['getRanges']())if(_0x13f664['isIntersecting'](_0x28a1b0))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x4ffebb=>_0x4ffebb['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x3be996,_0x4e7961)=>[..._0x3be996,..._0x4e7961['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x108da0=this['getRanges']();if(0x1!=_0x108da0['length'])return null;const _0x50199c=_0x108da0[0x0],_0x54da1d=_0x50199c['start']['nodeAfter'],_0x252071=_0x50199c['end']['nodeBefore'];return _0x54da1d instanceof _0x11180d?_0x54da1d!=_0x252071?null:_0x54da1d: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 _0x59a88e=[];let _0x52f184=this['head'];for(;_0x52f184;)_0x59a88e['push'](_0x52f184),_0x52f184=_0x52f184['next'];return _0x59a88e;}['setAttribute'](_0x295d9a,_0x546919){const _0x5e9b4c=_0x574e51(this['attributes']);_0x3d1f8a(_0x5e9b4c,_0x295d9a,_0x546919),_0x7f9970(_0x5e9b4c,this['attributes'])||(this['attributes']=_0x5e9b4c,this['_onAttributesChange'](_0x5e9b4c));}['removeAttribute'](_0x31a881){const _0x4a8a83=_0x574e51(this['attributes']);_0x541f6c(_0x4a8a83,_0x31a881),_0x7f9970(_0x4a8a83,this['attributes'])||(this['attributes']=_0x4a8a83,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 _0x5ed2a0()['substr'](0x1,0x5);}}function o(_0x38fb52,_0x231a0d,_0x1d6e8f){const t=_0x38fb52['t'];switch(_0x231a0d){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',_0x1d6e8f);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x1d6e8f);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x1d6e8f);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x1d6e8f);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x1d6e8f);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',_0x1d6e8f);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x1d6e8f);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',_0x1d6e8f);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x1d6e8f);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x1d6e8f);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x1d6e8f);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x1d6e8f);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x1d6e8f);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x1d6e8f);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x1d6e8f);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x1d6e8f);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x1d6e8f);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x1d6e8f);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x1d6e8f);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x1d6e8f);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x1d6e8f);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x1d6e8f);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x1d6e8f);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x1d6e8f);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x1d6e8f);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'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x1d6e8f);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'},_0x1d6e8f);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x1d6e8f);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x1d6e8f);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x1d6e8f);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'},_0x1d6e8f);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x231a0d;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x470fb6,_0x58f1ad){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x470fb6,this['_locale']=_0x58f1ad;}['getDescriptions'](_0x46f920){const _0x42737f=[],_0x21e4be=new Set(),_0x333d7f=new Set();for(let _0x98655e=0x0;_0x98655e<_0x46f920['length'];_0x98655e++){const _0x43dc7c=_0x46f920[_0x98655e];if(!_0x43dc7c['isInContent'])continue;const _0x24eb90=this['_handleCustomCallbackDescription'](_0x43dc7c);if(_0x24eb90){if(null!=_0x43dc7c['subType']){if(_0x21e4be['has'](_0x43dc7c['subType']))continue;_0x21e4be['add'](_0x43dc7c['subType']);}_0x42737f['push'](_0x24eb90);}else{if('attribute'!=_0x43dc7c['type'])'insertion'!=_0x43dc7c['type']&&'deletion'!=_0x43dc7c['type']||this['_handleInsertRemoveSuggestionDescription'](_0x42737f,_0x43dc7c,_0x46f920[_0x98655e+0x1]);else{const _0x8f596d=_0x43dc7c['data']['key'];if(_0x333d7f['has'](_0x8f596d))continue;_0x333d7f['add'](_0x43dc7c['data']['key']),_0x8f596d==m?this['_handleRenameSuggestionDescription'](_0x42737f,_0x43dc7c):this['_handleAttributeSuggestionDescription'](_0x42737f,_0x43dc7c);}}}return this['_resolveDescriptionItems'](_0x42737f);}['registerDescriptionCallback'](_0x28c694){this['_customCallbacks']['push'](_0x28c694);}['registerElementLabel'](_0x1e74ad,_0x2e889d,_0x34cf75=_0x2ff03c['normal']){'function'==typeof _0x1e74ad?_0x1e2438(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1e74ad,'label':_0x2e889d,'priority':_0x34cf75}):this['_itemLabels']['set'](_0x1e74ad,_0x2e889d);}['registerAttributeLabel'](_0x4c7deb,_0x2e9b16){this['_attributeLabels']['set'](_0x4c7deb,_0x2e9b16);}['getItemLabel'](_0x2c1262,_0x1ef808=0x1){let _0x2c69a6;for(const _0x213210 of this['_itemLabelsCallbacks'])if(_0x213210['matchingCallback'](_0x2c1262)){_0x2c69a6=_0x213210['label'];break;}return _0x2c69a6||(_0x2c69a6=this['_itemLabels']['get'](_0x2c1262['name'])),_0x2c69a6?_0x2c69a6(_0x1ef808):0x1!==_0x1ef808?_0x1ef808+'\x20'+_0x2c1262['name']+'s':''+_0x2c1262['name'];}['_addDescriptionItems'](_0x336ea4,_0x7fb429){const _0xf32622=_0x7fb429['getFirstRange']()['getWalker'](),_0x3194ee='insertion'==_0x7fb429['type']?'add':'remove';for(const _0x25de6f of _0xf32622){const _0x3e6cf7=_0x25de6f['item'],_0x399eb3=_0x336ea4[_0x336ea4['length']-0x1];if(_0x3e6cf7['is']('$textProxy'))_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),_0x399eb3&&'text'==_0x399eb3['type']?_0x399eb3[_0x3194ee]+=_0x3e6cf7['data']:_0x336ea4['push']({'type':'text','add':'add'==_0x3194ee?_0x3e6cf7['data']:'','remove':'remove'==_0x3194ee?_0x3e6cf7['data']:''});else{if(this['_schema']['isObject'](_0x3e6cf7)){const _0x107e1c=_0x3e6cf7;if(_0x399eb3&&_0x399eb3['type']['indexOf']('Container')>-0x1&&_0x336ea4['pop'](),'elementEnd'==_0x25de6f['type'])continue;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'Object'&&_0x399eb3['element']['name']==_0x107e1c['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'Object','element':_0x107e1c,'quantity':0x1}),_0xf32622['skip'](_0x556a2d=>!('elementEnd'==_0x556a2d['type']&&_0x556a2d['item']==_0x3e6cf7));}else{if(this['_schema']['checkChild'](_0x3e6cf7,'$text')||_0x3e6cf7['is']('element','softBreak')){const _0xbcb57f=_0x3e6cf7;if('add'==_0x3194ee&&'elementStart'==_0x25de6f['type']||'remove'==_0x3194ee&&'elementEnd'==_0x25de6f['type'])continue;if(_0x399eb3&&-0x1==_0x399eb3['type']['indexOf']('Container')){'text'==_0x399eb3['type']&&(_0x399eb3[_0x3194ee]+='\x0a');continue;}let _0x23efaf;if(_0x23efaf='add'==_0x3194ee?_0xbcb57f['nextSibling']&&!this['_schema']['isObject'](_0xbcb57f['nextSibling'])?_0xbcb57f['nextSibling']:null:_0xbcb57f['previousSibling']&&!this['_schema']['isObject'](_0xbcb57f['previousSibling'])?_0xbcb57f['previousSibling']:null,_0xbcb57f['isEmpty']||_0x23efaf&&_0x23efaf['isEmpty']){const _0x382bc2=_0x23efaf&&_0x23efaf['isEmpty']?_0x23efaf:_0xbcb57f;_0x399eb3&&_0x399eb3['type']==_0x3194ee+'EmptyContainer'&&_0x399eb3['element']['name']==_0x382bc2['name']?_0x399eb3['quantity']++:_0x336ea4['push']({'type':_0x3194ee+'EmptyContainer','element':_0x382bc2,'quantity':0x1});}else _0x336ea4['push']({'type':_0x3194ee+'Container','element':_0xbcb57f});}}}}}['_resolveDescriptionItems'](_0x371c5f){const _0x5130c4=this['_locale'],_0x44bbd9=[],_0x55f0f3=[],_0x205249=[];for(const _0x33c4ea of _0x371c5f)switch(_0x33c4ea['type']){case'text':if(_0x33c4ea['add']=_0x33c4ea['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x33c4ea['remove']=_0x33c4ea['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x33c4ea['add']&&''!=_0x33c4ea['remove']){_0x44bbd9['push']({'type':'replace','content':o(_0x5130c4,'REPLACE_TEXT',['\x22'+_0x33c4ea['remove']+'\x22','\x22'+_0x33c4ea['add']+'\x22'])});continue;}if(null!=_0x33c4ea['add']['match'](/^ +$/)){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['add']['length']))});continue;}if(null!=_0x33c4ea['remove']['match'](/^ +$/)){_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',o(_0x5130c4,'ELEMENT_SPACE',_0x33c4ea['remove']['length']))});continue;}if(''!=_0x33c4ea['add']){_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0','\x22'+_0x33c4ea['add']+'\x22')});continue;}_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0','\x22'+_0x33c4ea['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Insert:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Remove:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addContainer':_0x44bbd9['push']({'type':'insertion','content':o(_0x5130c4,'*Split:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'removeContainer':_0x44bbd9['push']({'type':'deletion','content':o(_0x5130c4,'*Merge:*\x20%0',this['getItemLabel'](_0x33c4ea['element'],_0x33c4ea['quantity']))});continue;case'addFormat':_0x55f0f3['push'](_0x33c4ea['key']);continue;case'removeFormat':_0x205249['push'](_0x33c4ea['key']);continue;default:_0x44bbd9['push'](_0x33c4ea);}if(_0x55f0f3['length']){const _0x43a6aa=_0x55f0f3['map'](_0x1a4cab=>this['_attributeLabels']['has'](_0x1a4cab)?this['_attributeLabels']['get'](_0x1a4cab):_0x1a4cab)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x43a6aa)});}if(_0x205249['length']){const _0xe210e=_0x205249['map'](_0x3e60d4=>this['_attributeLabels']['has'](_0x3e60d4)?this['_attributeLabels']['get'](_0x3e60d4):_0x3e60d4)['join'](',\x20');_0x44bbd9['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0xe210e)});}return _0x44bbd9;}['_handleCustomCallbackDescription'](_0x577a00){for(const _0x4ef14c of this['_customCallbacks']){const _0x111dd9=_0x4ef14c(_0x577a00);if(_0x111dd9&&'type'in _0x111dd9)return _0x111dd9;}}['_handleAttributeSuggestionDescription'](_0x3e5467,_0xf1ec1a){const _0x17a350=_0xf1ec1a['data'],_0x552484=void 0x0===_0x17a350['newValue']?'removeFormat':'addFormat';_0x3e5467['push']({'type':_0x552484,'key':_0x17a350['key']});}['_handleRenameSuggestionDescription'](_0x461a41,_0x241925){_0x461a41['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x241925['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x48ea42,_0x531d98,_0x2ff63d){if(this['_addDescriptionItems'](_0x48ea42,_0x531d98),_0x2ff63d&&_0x2ff63d['getFirstRange']()&&!_0x531d98['getFirstRange']()['end']['isEqual'](_0x2ff63d['getFirstRange']()['start'])){const _0x152d22=_0x48ea42[_0x48ea42['length']-0x1],_0x3e5158='insertion'==_0x531d98['type']?'add':'remove';_0x152d22&&'text'==_0x152d22['type']&&(_0x152d22[_0x3e5158]+='\x0a');}}}class E extends _0x4104d6{['afterInit'](){const _0x4dae69=this['editor'],_0x5e6d36=_0x4dae69['plugins']['get']('TrackChangesEditing');_0x4dae69['commands']['get']('showAIAssistant')&&_0x5e6d36['enableCommand']('showAIAssistant');}}class V extends _0x4104d6{['afterInit'](){const _0x1dcc19=this['editor'],_0x22bda1=_0x1dcc19['locale'];if(!_0x1dcc19['plugins']['has']('AlignmentEditing'))return;const _0x41aa01=_0x1dcc19['plugins']['get']('TrackChangesEditing');_0x41aa01['enableDefaultAttributesIntegration']('alignment'),_0x41aa01['registerBlockAttribute']('alignment'),_0x41aa01['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x22bda1,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2290b4=this['editor'],_0x1ab500=_0x2290b4['locale'];_0x2290b4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x38c184=>{if('formatBlock'!=_0x38c184['type'])return;const {data:_0x41fa17}=_0x38c184;if(_0x41fa17&&'alignment'==_0x41fa17['commandName']){const _0x36cb3a=_0x41fa17['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1ab500,'*Format:*\x20%0',function(_0x28f32a){switch(_0x28f32a){case'left':return o(_0x1ab500,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1ab500,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1ab500,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1ab500,'FORMAT_JUSTIFY_TEXT');}}(_0x36cb3a))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x4104d6{['afterInit'](){const _0x3a9f6d=this['editor'],_0x4356ad=_0x3a9f6d['plugins']['get']('TrackChangesEditing'),_0xb130=_0x3a9f6d['locale'];for(const _0x1c0f7f of ti){if(!_0x3a9f6d['plugins']['has'](_0x1c0f7f))continue;const _0x1a2ecc=_0x1c0f7f['slice'](0x0,-0x7)['toLowerCase'](),_0x14fad8='FORMAT_'+_0x1a2ecc['toUpperCase']();_0x4356ad['enableDefaultAttributesIntegration'](_0x1a2ecc),_0x4356ad['registerInlineAttribute'](_0x1a2ecc),_0x4356ad['descriptionFactory']['registerAttributeLabel'](_0x1a2ecc,o(_0xb130,_0x14fad8));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2693f6=this['editor'],_0x2094ef=_0x2693f6['locale'],_0x5f2c96=_0x2693f6['plugins']['get']('TrackChangesEditing');function _0x879a13(_0x2016dc,_0x171c92){_0x5f2c96['descriptionFactory']['registerDescriptionCallback'](_0x4e5e09=>{if('formatInline'!=_0x4e5e09['type'])return;const {data:_0x159225}=_0x4e5e09;return _0x159225&&_0x159225['commandName']===_0x2016dc?_0x159225['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2094ef,'*Format:*\x20%0',_0x171c92)}:{'type':'format','content':o(_0x2094ef,'*Remove\x20format:*\x20%0',_0x171c92)}:void 0x0;});}_0x879a13('bold',o(_0x2094ef,'FORMAT_BOLD')),_0x879a13('italic',o(_0x2094ef,'FORMAT_ITALIC')),_0x879a13('underline',o(_0x2094ef,'FORMAT_UNDERLINE')),_0x879a13('code',o(_0x2094ef,'FORMAT_CODE')),_0x879a13('strikethrough',o(_0x2094ef,'FORMAT_STRIKETHROUGH')),_0x879a13('subscript',o(_0x2094ef,'FORMAT_SUBSCRIPT')),_0x879a13('superscript',o(_0x2094ef,'FORMAT_SUPERSCRIPT'));}}class O extends _0x4104d6{['afterInit'](){const _0x5eb804=this['editor'],_0xc6e06=_0x5eb804['locale'];if(!_0x5eb804['plugins']['has']('BlockQuoteEditing'))return;const _0x276962=_0x5eb804['plugins']['get']('TrackChangesEditing'),_0x4cd8ca=this['editor']['commands']['get']('blockQuote');_0x276962['enableCommand']('blockQuote',(_0x8e32f0,_0x3e1167={})=>{const _0x2c5836=this['editor']['model']['document']['selection'],_0x560fb1=_0x3e1167&&void 0x0!==_0x3e1167['forceValue']?_0x3e1167['forceValue']:!_0x4cd8ca['value'];let _0x3a5535=[];if(_0x560fb1){const _0x5315e8=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x4e2f34=>oo(_0x4e2f34)||function(_0x1d1e80,_0x48b404){const _0x531893=_0x48b404['checkChild'](_0x1d1e80['parent'],'blockQuote'),_0x1495e0=_0x48b404['checkChild'](['$root','blockQuote'],_0x1d1e80);return _0x531893&&_0x1495e0;}(_0x4e2f34,this['editor']['model']['schema']));_0x3a5535=to(_0x5315e8,_0x5eb804['model']);}else{const _0x5b9e11=Array['from'](_0x2c5836['getSelectedBlocks']())['filter'](_0x372ee5=>oo(_0x372ee5));_0x3a5535=to(_0x5b9e11,_0x5eb804['model']);}_0x5eb804['model']['change'](()=>{for(const _0x3cec1b of _0x3a5535)_0x276962['markBlockFormat'](_0x3cec1b,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x560fb1}]});});}),_0x276962['descriptionFactory']['registerDescriptionCallback'](_0x7009e2=>{const {data:_0x1edd73}=_0x7009e2;if(_0x1edd73&&'blockQuote'==_0x1edd73['commandName']){const _0x45b7b1=o(_0xc6e06,'ELEMENT_BLOCK_QUOTE');return _0x1edd73['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc6e06,'*Set\x20format:*\x20%0',_0x45b7b1)}:{'type':'format','content':o(_0xc6e06,'*Remove\x20format:*\x20%0',_0x45b7b1)};}});}}function oo(_0xd159ff){return'blockQuote'==_0xd159ff['parent']['name'];}class G extends _0x4104d6{['afterInit'](){const _0x51f2e6=this['editor'];_0x51f2e6['plugins']['has']('CaseChange')&&(_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x51f2e6['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x4104d6{['afterInit'](){const _0xed0e6b=this['editor'];_0xed0e6b['commands']['get']('ckbox')&&_0xed0e6b['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x4104d6{['afterInit'](){const _0x5656ef=this['editor'];if(!_0x5656ef['plugins']['has']('CodeBlock'))return;const _0x2e2b59=_0x5656ef['plugins']['get']('TrackChangesEditing'),_0x57672c=_0x5656ef['locale'],_0x15bd4e=_0x5656ef['config']['get']('codeBlock')['languages'],_0x2a1cc7=_0x5656ef['commands']['get']('codeBlock');_0x2e2b59['enableCommand']('indentCodeBlock'),_0x2e2b59['enableCommand']('outdentCodeBlock'),_0x2e2b59['enableCommand']('codeBlock',(_0x80b2d2,_0xec639a={})=>{const _0x22ea71=_0x5656ef['model'],_0x32c6d4=_0x5656ef['model']['document']['selection'],_0x1f1660=_0xec639a&&void 0x0!==_0xec639a['forceValue']?_0xec639a['forceValue']:!_0x2a1cc7['value'];let _0x12c590;_0xec639a['language']||(_0xec639a['language']=_0x15bd4e[0x0]['language']),_0x12c590=_0x1f1660?Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x2d49a4=>eo(_0x2d49a4)||function(_0x771c66,_0x52bc73){if(_0x771c66['is']('rootElement')||_0x52bc73['isLimit'](_0x771c66))return!0x1;return _0x52bc73['checkChild'](_0x771c66['parent'],'codeBlock');}(_0x2d49a4,_0x22ea71['schema'])):Array['from'](_0x32c6d4['getSelectedBlocks']())['filter'](_0x4dde1e=>eo(_0x4dde1e));const _0x13d34b=to(_0x12c590,_0x22ea71);_0x22ea71['change'](()=>{for(const _0x156bac of _0x13d34b)_0x2e2b59['markBlockFormat'](_0x156bac,{'commandName':'codeBlock','commandParams':[{..._0xec639a,'forceValue':_0x1f1660}],'formatGroupId':'blockName'});});}),(_0x2e2b59['descriptionFactory']['registerElementLabel']('codeBlock',_0x129ec4=>o(_0x57672c,'ELEMENT_CODE_BLOCK',_0x129ec4)),_0x2e2b59['descriptionFactory']['registerDescriptionCallback'](_0x3f7244=>{if('formatBlock'!=_0x3f7244['type'])return;const _0x5748d8=_0x57672c['t'],{data:_0x16a0e7}=_0x3f7244;if(!_0x16a0e7||'codeBlock'!=_0x16a0e7['commandName'])return;const _0xfe9df5=_0x16a0e7['commandParams'][0x0]['language'],_0x27d049=_0x5748d8(_0x15bd4e['find'](_0x317539=>_0x317539['language']===_0xfe9df5)['label'])['toLowerCase']();return _0x16a0e7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x57672c,'*Set\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x27d049+')')}:{'type':'format','content':o(_0x57672c,'*Remove\x20format:*\x20%0',o(_0x57672c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x398bfd){return'codeBlock'==_0x398bfd['name'];}class H extends _0x4104d6{['afterInit'](){const _0x1ab87b=this['editor'];if(!_0x1ab87b['plugins']['has']('CommentsEditing'))return;_0x1ab87b['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x45717f,_0x5de7af,_0xa067fe){const _0x3f253d=[];for(const _0x3c965a of _0x5de7af['getItems']())_0x3c965a['hasAttribute'](_0x45717f)&&_0x3f253d['push'](_0xa067fe['createRangeOn'](_0x3c965a));return _0x3f253d;}function _e(_0x27bdd2,_0x104719,{showActiveMarker:_0x4f6b4a=!0x0}={}){const _0x565fce=_0x27bdd2['plugins']['get']('TrackChangesEditing');return(_0x5b1b12,_0x52c14b,_0x5b331e)=>{if(!_0x5b331e['consumable']['test'](_0x52c14b['markerRange'],_0x5b1b12['name']))return;const _0x2f2ef1=_0x52c14b['markerRange']['getWalker'](),_0x443dec=_0x52c14b['markerRange']['start'],_0x5249ff=_0x27bdd2['model']['schema'];let _0x3e1dd5=null,_0x3f1157=null,_0x2d0d31=!0x1,_0x1a8a1f=!0x1;for(const _0x2d78e9 of _0x2f2ef1){const _0x5a3caa=_0x2d78e9['item'];_0x2d0d31=_0x2d0d31||_0x5249ff['isContent'](_0x5a3caa);const _0xb5fbf6=_0x5b331e['mapper']['toViewElement'](_0x5a3caa);if(_0xb5fbf6&&_0xb5fbf6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d78e9['type']&&(_0x5249ff['isBlock'](_0x5a3caa)&&!_0x5249ff['isLimit'](_0x5a3caa)&&(_0x5a3caa['nextSibling']||_0x443dec['isAtEnd']?_0x3e1dd5&&_0x3e1dd5['parent']==_0x5a3caa||(_0x3e1dd5=_0x5a3caa,_0x3a6e95(_0x2d78e9['previousPosition']),_0x1a8a1f=!0x0):_0x3f1157=_0x3f1157||_0x2d78e9['previousPosition']));}function _0x3a6e95(_0x4542c9){const _0x537684=_0x5b331e['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x104719}),_0x30bc8b=_0x5b331e['mapper']['toViewPosition'](_0x4542c9);_0x4f6b4a&&_0x565fce['activeMarkers']['includes'](_0x52c14b['markerName'])&&_0x5b331e['writer']['addClass']('ck-suggestion-marker--active',_0x537684),_0x5b331e['writer']['insert'](_0x30bc8b,_0x537684),_0x5b331e['mapper']['bindElementToMarker'](_0x537684,_0x52c14b['markerName']);}_0x2d0d31||_0x1a8a1f||!_0x3f1157||_0x3a6e95(_0x3f1157);};}class q extends _0x4104d6{static get['requires'](){return[_0x296bb7];}['init'](){const _0x31a715=this['editor'],_0x41a494=_0x31a715['plugins']['get']('TrackChangesEditing');_0x41a494['enableCommand']('delete');const _0x4b174f=_0x31a715['commands']['get']('deleteForward');_0x41a494['enableCommand']('deleteForward',(_0x59cf97,_0x342c70={})=>{const _0x17b5c3=_0x31a715['model']['createSelection'](_0x31a715['model']['document']['selection']);_0x17b5c3['isCollapsed']&&_0x31a715['model']['modifySelection'](_0x17b5c3,{'direction':'forward','unit':_0x342c70['unit']});const _0x5bb654=_0x17b5c3['getFirstRange'](),_0x1f9bb5=_0xe90ba7['fromRange'](_0x5bb654);let _0x327112;_0x59cf97(_0x342c70),_0x327112='$graveyard'==_0x1f9bb5['root']['rootName']?_0x31a715['model']['createRange'](_0x5bb654['start']):_0x31a715['model']['createRange'](_0x1f9bb5['start'],_0x1f9bb5['end']),_0x1f9bb5['detach'](),_0x31a715['model']['enqueueChange'](_0x4b174f['buffer']['batch'],_0xfc38c8=>{_0x4b174f['buffer']['lock'](),_0xfc38c8['setSelection'](_0xfc38c8['createRange'](_0x327112['end'])),_0x4b174f['buffer']['unlock']();});}),_0x31a715['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x31a715,'merge'),{'priority':'high'}),_0x31a715['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x3573fe,_0x37f369,_0x496d0c)=>{_0x496d0c['options']['showSuggestionHighlights']&&_e(_0x31a715,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x3573fe,_0x37f369,_0x496d0c);},{'priority':'high'}),_0x31a715['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x50a512,_0x4474a4,_0x1098f3)=>{const _0x2cceec=_0x1098f3['mapper']['markerNameToElements'](_0x4474a4['markerName']);if(_0x2cceec){for(const _0x371f87 of _0x2cceec)_0x371f87['is']('uiElement')&&(_0x1098f3['mapper']['unbindElementFromMarkerName'](_0x371f87,_0x4474a4['markerName']),_0x1098f3['writer']['remove'](_0x371f87));}},{'priority':'high'});}}class z extends _0x4104d6{['afterInit'](){const _0x52c8d9=this['editor'];if(!_0x52c8d9['plugins']['has']('ListEditing'))return;const _0x1be5c9=_0x52c8d9['locale'],_0x345eb4=_0x52c8d9['plugins']['get']('TrackChangesEditing'),_0x446854=_0x52c8d9['plugins']['has']('TodoListEditing'),_0x2a453d=!!_0x52c8d9['config']['get']('list.multiBlock');function _0x425ad3(_0x5eb896){return{'type':'format','content':''+o(_0x1be5c9,'*Set\x20format:*\x20%0',_0x5eb896)};}function _0x478cad(_0x4e4514){return{'type':'format','content':''+o(_0x1be5c9,'*Remove\x20format:*\x20%0',_0x4e4514)};}_0x345eb4['enableDefaultAttributesIntegration']('numberedList'),_0x345eb4['enableDefaultAttributesIntegration']('bulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('customNumberedList'),_0x345eb4['enableDefaultAttributesIntegration']('customBulletedList'),_0x345eb4['enableDefaultAttributesIntegration']('indentList'),_0x345eb4['enableDefaultAttributesIntegration']('outdentList'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemAfter'),_0x345eb4['enableDefaultAttributesIntegration']('splitListItemBefore'),_0x345eb4['registerBlockAttribute']('listItemId'),_0x345eb4['registerBlockAttribute']('listType'),_0x345eb4['registerBlockAttribute']('listIndent'),_0x2a453d&&(_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x345eb4['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x446854&&(_0x345eb4['enableDefaultAttributesIntegration']('todoList'),_0x345eb4['enableDefaultAttributesIntegration']('checkTodoList'),_0x345eb4['registerBlockAttribute']('todoListChecked'),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xa2d69a=>{const {data:_0x25d1d9}=_0xa2d69a;if(_0x25d1d9&&'todoListChecked'==_0x25d1d9['key'])return{'type':'format','content':_0x25d1d9['newValue']?o(_0x1be5c9,'*Check\x20item*'):o(_0x1be5c9,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x5170f=>{if(_0x5170f['batch']['isUndo'])return!0x1;let _0x1154a1=!0x1;const _0x49e9bb=_0x345eb4['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x375933=>'todoListChecked'===_0x345eb4['_getAttributeKey'](_0x375933));for(const _0x26bbd7 of _0x49e9bb){'todo'!=_0x26bbd7['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x345eb4['_findSuggestions'](_0x26bbd7['getFirstRange'](),'attribute')['find'](_0x45716=>'listType'===_0x345eb4['_getAttributeKey'](_0x45716['suggestion']))||(_0x5170f['removeMarker'](_0x26bbd7['getFirstMarker']()),_0x1154a1=!0x0));}return _0x1154a1;})),_0x345eb4['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x1be5c9,'FORMAT_INDENT'));const _0x533b3d={'type':'format','content':''};_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x1ae24e=>{const {data:_0x141a9b}=_0x1ae24e;if(!_0x141a9b||'listType'!=_0x141a9b['key'])return;let _0x426b8d=_0x1ae24e['head'];for(;_0x426b8d;){if(_0x426b8d['data']&&(('listStyle'==_0x426b8d['data']['key']||'listMarkerStyle'==_0x426b8d['data']['key'])&&(_0x426b8d['data']['newValue']&&'default'!=_0x426b8d['data']['newValue']||'default'!=_0x426b8d['data']['oldValue']&&!_0x141a9b['newValue'])||!_0x2a453d&&_0x426b8d['data']['key']==m))return _0x533b3d;_0x426b8d=_0x426b8d['next'];}if(null==_0x141a9b['newValue'])switch(_0x141a9b['oldValue']){case'bulleted':return _0x478cad(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x478cad(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x478cad(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}switch(_0x141a9b['newValue']){case'bulleted':return _0x425ad3(o(_0x1be5c9,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x425ad3(o(_0x1be5c9,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x425ad3(o(_0x1be5c9,'ELEMENT_TODO_LIST'));}}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0x258963=>{const {data:_0x16f789}=_0x258963;if(_0x16f789&&'listIndent'==_0x16f789['key'])return null==_0x16f789['newValue']||null==_0x16f789['oldValue']&&0x0==_0x16f789['newValue']?_0x533b3d:void 0x0;}),_0x345eb4['descriptionFactory']['registerDescriptionCallback'](_0xe8449a=>{if('attribute'!=_0xe8449a['type'])return;const {data:_0x4e3f1a}=_0xe8449a;if(!_0x4e3f1a||'listItemId'!=_0x4e3f1a['key'])return;const _0x43d7c0=le(_0xe8449a);return'newValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Merge:*\x20list\x20item')}:'oldValue'==_0x43d7c0?{'type':'format','content':o(_0x1be5c9,'*Split:*\x20list\x20item')}:_0x533b3d;}),_0x52c8d9['model']['document']['registerPostFixer'](_0x476363=>this['listItemIdFixer'](_0x476363)),_0x52c8d9['model']['document']['registerPostFixer'](_0x15f595=>this['noTrackChangesFixer'](_0x15f595)),_0x52c8d9['model']['document']['registerPostFixer'](_0x131e67=>this['assureChains'](_0x131e67)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x4f613b){if(_0x4f613b['batch']['isUndo']||!_0x4f613b['batch']['isLocal'])return!0x1;let _0xbc839e=!0x1;const _0x23d987=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x7c781d=>_0x7c781d['data']&&'listItemId'==_0x7c781d['data']['key'])['filter'](_0x22592a=>_0x22592a['data']['newValue']&&_0x22592a['data']['oldValue']);for(const _0x3a83d9 of _0x23d987)le(_0x3a83d9)||(_0x4f613b['removeMarker'](_0x3a83d9['getFirstMarker']()),_0xbc839e=!0x0);return _0xbc839e;}['noTrackChangesFixer'](_0x3ad870){if(_0x3ad870['batch']['isUndo']||!_0x3ad870['batch']['isLocal'])return!0x1;const _0x241e7d=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x241e7d['trackChangesCommand']['value'])return!0x1;let _0x32e33a=!0x1;const _0x486770=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x41237a=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x5cec26=>'attribute'==_0x5cec26['type'])['filter'](_0x5c099f=>_0x486770['includes'](_0x5c099f['attributeKey']));if(0x0==_0x41237a['length'])return _0x32e33a;for(const _0x10b198 of _0x41237a){const _0x4993e0=_0x241e7d['_findSuggestions'](_0x10b198['range'],'attribute')['filter'](_0x4f26ef=>!_0x4f26ef['meta']['isNextTo'])['map'](_0x406754=>_0x406754['suggestion'])['filter'](_0x4fbd24=>{const _0x12cecd=_0x241e7d['_getAttributeKey'](_0x4fbd24);return _0x486770['includes'](_0x12cecd);});if(_0x4993e0['length']){for(const _0x38c017 of _0x4993e0)_0x3ad870['removeMarker'](_0x38c017['getFirstMarker']());_0x32e33a=!0x0;}}return _0x32e33a;}['assureChains'](_0x412c74){if(_0x412c74['batch']['isUndo']||!_0x412c74['batch']['isLocal'])return!0x1;const _0x398208=this['editor']['plugins']['get']('TrackChangesEditing');let _0xf80d2d=!0x1;const _0x4fb523=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x413c46 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})){const _0x2e48e1=_0x398208['_findSuggestions'](_0x413c46['getFirstRange'](),'attribute')['map'](_0x4feec2=>_0x4feec2['suggestion'])['filter'](_0x114b49=>_0x114b49['data']&&_0x4fb523['includes'](_0x114b49['data']['key']));if(!_0x2e48e1['length'])continue;const _0x572d72=_0x2e48e1[0x0]['head']['attributes']['groupId'];if(!_0x2e48e1['every'](_0x2ee309=>_0x2ee309['attributes']['groupId']===_0x572d72)){for(const _0x15dbd3 of _0x2e48e1)_0x2a7c87(_0x15dbd3,_0x572d72)&&(_0xf80d2d=!0x0);}}return _0xf80d2d;function _0x10fd63(_0x3d7e71,_0x29429c){for(const _0x533760 of _0x398208['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x11faab=>'attribute'==_0x11faab['type']&&_0x11faab['attributes']['groupId']==_0x3d7e71))_0x533760['setAttribute']('groupId',_0x29429c);}function _0x2a7c87(_0x23538a,_0x4eb876){let _0x2b6ead=_0x23538a['head'],_0x461e84=!0x1;for(;_0x2b6ead;)_0x2b6ead['attributes']['groupId']!=_0x4eb876&&(_0x10fd63(_0x2b6ead['attributes']['groupId'],_0x4eb876),_0x2b6ead['setAttribute']('groupId',_0x4eb876),_0x461e84=!0x0),_0x2b6ead=_0x2b6ead['next'];return _0x461e84;}}['_supportLegacySuggestions'](){const _0x459141=this['editor'],_0xbd483c=_0x459141['locale'],_0x404064=_0x459141['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x404064['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x4b6ace,_0x475b7d){const _0x470934=[];for(let _0x1c1e82 of _0x4b6ace)_0x1c1e82['start']['nodeAfter']===_0x1c1e82['end']['parent']&&(_0x1c1e82=_0x459141['model']['createRange'](_0x459141['model']['createPositionAt'](_0x1c1e82['start']['nodeAfter'],0x0))),_0x470934['push'](_0x1c1e82);_0x459141['model']['change'](_0x3b4e54=>{const _0x1cea6a=_0x459141['model']['document']['selection'],_0x1d1f86=Array['from'](_0x1cea6a['getRanges']())['map'](_0x3e4172=>_0xe90ba7['fromRange'](_0x3e4172));_0x3b4e54['setSelection'](_0x470934),_0x459141['commands']['get'](_0x475b7d['commandName'])['refresh'](),_0x475b7d['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x459141['execute'](_0x475b7d['commandName'],..._0x475b7d['commandParams']),_0x3b4e54['setSelection'](_0x1d1f86);for(const _0x461b52 of _0x1d1f86)_0x461b52['detach']();});}),_0x404064['descriptionFactory']['registerElementLabel'](function(_0x6c1de0){const _0x576c11=!_0x459141['model']['schema']['isObject'](_0x6c1de0),_0x35e8f6=_0x6c1de0['previousSibling'],_0x34a47a=_0x6c1de0['nextSibling'],_0x1c6f86=_0x6c1de0['getAttribute']('listItemId'),_0x95c050=!_0x35e8f6||_0x35e8f6['getAttribute']('listItemId')!==_0x1c6f86,_0x406839=!_0x34a47a||_0x34a47a['getAttribute']('listItemId')!==_0x1c6f86;return _0x576c11&&Boolean(_0x1c6f86)&&_0x95c050&&_0x406839;},_0x3aa7f8=>o(_0xbd483c,'ELEMENT_LIST_ITEM',_0x3aa7f8));}['_registerLegacyDescription'](){const _0x168af0=this['editor'],_0xe3f778=_0x168af0['locale'];function _0xffcbac(_0x1487cb){const _0x5e20da=_0x168af0['commands']['get']('bulletedList')['value'],_0x5f328a=_0x168af0['commands']['get']('numberedList')['value'];return'numberedList'===_0x1487cb?_0x5e20da:_0x5f328a;}_0x168af0['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x217615){if('formatBlock'!=_0x217615['type'])return;const {data:_0x7ec6ae}=_0x217615;if(!_0x7ec6ae)return;let _0x3f80b6,_0x1c3f0f,_0x397d61,_0x29acd3;switch(_0x7ec6ae['commandName']){case'bulletedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x397d61=_0x7ec6ae['commandParams'][0x0]['forceValue'],_0x29acd3=_0xffcbac(_0x7ec6ae['commandName']),_0x3f80b6=_0x397d61?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x29acd3&&_0x168af0['config']['get']('list.multiBlock')||(_0x3f80b6='*Change\x20to:*\x20%0'),_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x3f80b6='*Indent:*\x20%0',_0x1c3f0f={'type':'format','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x3f80b6=function(_0x264f1f){const _0xb91d6=_0x264f1f['getFirstRange']();let _0x4191cc=_0xb91d6['start']['nodeAfter'];for(;_0x4191cc&&_0xb91d6['containsItem'](_0x4191cc);){if(_0x4191cc['getAttribute']('listIndent')>0x0)return!0x1;_0x4191cc=_0x4191cc['nextSibling'];}return!0x0;}(_0x217615)?o(_0xe3f778,'*Format:*\x20remove\x20from\x20%0',o(_0xe3f778,function(_0x3b8e08){return'ELEMENT_'+_0x3b8e08['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x217615))):o(_0xe3f778,'*Outdent:*\x20%0',o(_0xe3f778,'ELEMENT_LIST_ITEM')),_0x1c3f0f={'type':'format','content':_0x3f80b6};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x7ec6ae['multipleBlocks']&&(_0x3f80b6='*Merge:*\x20%0',_0x1c3f0f={'type':'deletion','content':o(_0xe3f778,_0x3f80b6,o(_0xe3f778,'ELEMENT_LIST_ITEM'))});}return _0x1c3f0f;});}}function le(_0x1d1a79){let _0x215230=_0x1d1a79['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x215230;){const _0x59288e=_0x215230['getAttribute']('listItemId');if(!_0x59288e)return!0x1;if(_0x59288e==_0x1d1a79['data']['newValue'])return'newValue';if(_0x59288e==_0x1d1a79['data']['oldValue'])return'oldValue';_0x215230=_0x215230['previousSibling'];}return!0x1;}class ue extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x1d46f5=this['editor']['config']['get']('list.properties'),_0x1a3b62=this['editor']['plugins']['get']('TrackChangesEditing');_0x1d46f5['styles']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStyle'),_0x1a3b62['registerBlockAttribute']('listStyle')),_0x1d46f5['reversed']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listReversed'),_0x1a3b62['registerBlockAttribute']('listReversed')),_0x1d46f5['startIndex']&&(_0x1a3b62['enableDefaultAttributesIntegration']('listStart'),_0x1a3b62['registerBlockAttribute']('listStart'));const _0x524191={'type':'format','content':''};_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x552713=this['editor']['locale'];_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x552713,'FORMAT_LIST_REVERSED')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0x3861a8=>{const {data:_0x193dc2}=_0x3861a8;if(_0x193dc2&&'listReversed'==_0x193dc2['key'])return null==_0x193dc2['newValue']||0x0==_0x193dc2['newValue']&&null==_0x193dc2['oldValue']?_0x524191:void 0x0;}),_0x1a3b62['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x552713,'FORMAT_LIST_START')),_0x1a3b62['descriptionFactory']['registerDescriptionCallback'](_0xabe819=>{const {data:_0x4f6350}=_0xabe819;if(_0x4f6350&&'listStart'==_0x4f6350['key'])return null==_0x4f6350['newValue']||0x1==_0x4f6350['newValue']&&null==_0x4f6350['oldValue']?_0x524191:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x2ebe4a=>{if(_0x2ebe4a['batch']['isUndo'])return!0x1;let _0x321565=!0x1;const _0xc91377=_0x1a3b62['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x18db32=>{const _0x15617f=_0x1a3b62['_getAttributeKey'](_0x18db32);return'listStart'==_0x15617f||'listReversed'==_0x15617f;});for(const _0x39fd5e of _0xc91377){const _0x35121c=_0x39fd5e['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x35121c||'customNumbered'==_0x35121c)continue;_0x1a3b62['_findSuggestions'](_0x39fd5e['getFirstRange'](),'attribute')['find'](_0x38648c=>'listType'==_0x1a3b62['_getAttributeKey'](_0x38648c['suggestion']))||(_0x2ebe4a['removeMarker'](_0x39fd5e['getFirstMarker']()),_0x321565=!0x0);}return _0x321565;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1b82b8){const _0x16fd22=this['editor']['locale'],{data:_0x9c37ea}=_0x1b82b8,_0x1ce68a={'type':'format','content':''};if(!_0x9c37ea||'listStyle'!=_0x9c37ea['key'])return;if(!_0x9c37ea['oldValue'])return'default'==_0x9c37ea['newValue']?_0x1ce68a:{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};if(!_0x9c37ea['newValue']){if('default'==_0x9c37ea['oldValue'])return _0x1ce68a;let _0x29a747=_0x1b82b8['head'];for(;_0x29a747;){if(_0x29a747['data']&&'listType'==_0x29a747['data']['key']&&_0x29a747['data']['newValue'])return _0x1ce68a;_0x29a747=_0x29a747['next'];}return{'type':'format','content':''+o(_0x16fd22,'*Remove\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['oldValue'])))};}if('default'!=_0x9c37ea['newValue'])return{'type':'format','content':''+o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,this['_getTranslationKeyForListStyle'](_0x9c37ea['newValue'])))};let _0x42f29=_0x1b82b8['head'];for(;_0x42f29;){if(_0x42f29['data']&&'listType'==_0x42f29['data']['key']&&_0x42f29['data']['newValue']&&_0x42f29['data']['oldValue'])return _0x1ce68a;_0x42f29=_0x42f29['next'];}return{'type':'format','content':o(_0x16fd22,'*Set\x20format:*\x20%0',o(_0x16fd22,'ELEMENT_'+_0x1b82b8['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x507c2c=this['editor'],_0x2a9be5=_0x507c2c['locale'];_0x507c2c['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3c2943=>{if('formatBlock'!=_0x3c2943['type'])return;const {data:_0xc300fb}=_0x3c2943;if(!_0xc300fb)return;let _0x4ce1fc,_0x7c17ab;switch(_0xc300fb['commandName']){case'listStyle':_0x4ce1fc='*Change\x20to:*\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,o(_0x2a9be5,this['_getTranslationKeyForListStyle'](_0xc300fb['commandParams'][0x0]['type'])))};break;case'listReversed':_0x4ce1fc=_0xc300fb['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc)};break;case'listStart':_0x4ce1fc='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x7c17ab={'type':'format','content':o(_0x2a9be5,_0x4ce1fc,_0xc300fb['commandParams'][0x0]['startIndex'])};}return _0x7c17ab;});}['_getTranslationKeyForListStyle'](_0x1cc1e8){return'ELEMENT_'+function(_0x5936b6){if(pe['includes'](_0x5936b6))return'bulleted';if(ye['includes'](_0x5936b6))return'numbered';return null;}(_0x1cc1e8)['toUpperCase']()+'_LIST_'+_0x1cc1e8['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x4104d6{static get['requires'](){return[_0x501866];}['init'](){const _0x29e2e3=this['editor'],_0x450e3c=_0x29e2e3['plugins']['get']('TrackChangesEditing'),_0xc2f372=_0x29e2e3['commands']['get']('enter');_0x450e3c['enableCommand']('enter',()=>{_0x29e2e3['model']['change'](_0x541b5e=>{const _0x4abae0=_0x29e2e3['model']['document']['selection'],_0x1db5af=_0x4abae0['getFirstPosition'](),_0x5ad335=_0xe90ba7['fromRange'](_0x4abae0['getFirstRange']());if(_0xc2f372['enterBlock'](_0x541b5e)){const _0x4cf06e=_0x29e2e3['model']['createPositionAt'](_0x1db5af['parent']['nextSibling'],0x0),_0x349087=_0x541b5e['createRange'](_0x1db5af,_0x4cf06e);_0x450e3c['markInsertion'](_0x349087);}else _0x541b5e['setSelection'](_0x541b5e['createRange'](_0x5ad335['end']));_0x5ad335['detach'](),_0xc2f372['fire']('afterExecute',{'writer':_0x541b5e});});}),_0x29e2e3['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x29e2e3,'split'),{'priority':'high'}),_0x29e2e3['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x321eee,_0x53bb98,_0x491f2d)=>{const _0x59b38d=_0x491f2d['mapper']['markerNameToElements'](_0x53bb98['markerName']);if(_0x59b38d){for(const _0x5a95ff of _0x59b38d)_0x5a95ff['hasClass']('ck-suggestion-marker-split')&&(_0x491f2d['mapper']['unbindElementFromMarkerName'](_0x5a95ff,_0x53bb98['markerName']),_0x491f2d['writer']['remove'](_0x5a95ff));}},{'priority':'high'}),_0x29e2e3['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x180af2,_0x130f3e,_0x49935d)=>{_0x49935d['options']['showSuggestionHighlights']&&_e(_0x29e2e3,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x180af2,_0x130f3e,_0x49935d);},{'priority':'high'});}}class J extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x2db2cd=this['editor']['plugins']['get']('TrackChangesEditing');_0x2db2cd['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x2db2cd['enableCommand']('findNext'),_0x2db2cd['enableCommand']('findPrevious'),_0x2db2cd['enableCommand']('replace'),_0x2db2cd['enableCommand']('replaceAll');}['handleFindCommand'](_0x50fc02,_0xbf3b67,_0x191619={}){const _0x4acb64=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x50fc02(_0x410bd8=>{let _0x23012c=('string'==typeof _0xbf3b67?_0x4acb64['findByTextCallback'](_0xbf3b67,_0x191619):_0xbf3b67)(_0x410bd8);Array['isArray'](_0x23012c)&&(_0x23012c={'results':_0x23012c,'searchText':'string'==typeof _0xbf3b67?_0xbf3b67:''});const _0x4c206a=_0x23012c['results']['filter'](_0xdd392f=>!0x1===this['_isInDeletionRange'](_0xdd392f,_0x410bd8['item']));return{..._0x23012c,'results':_0x4c206a};},_0x191619);}['_isInDeletionRange'](_0x4926a4,_0x414fa1){const _0x4d7c60=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['start']),this['editor']['model']['createPositionAt'](_0x414fa1,_0x4926a4['end']));for(const _0x54ac50 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x4d7c60['getIntersection'](_0x54ac50['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x4104d6{['afterInit'](){const _0x532f27=this['editor']['locale'],_0x15ab55=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x5b4509,commandName:_0x1e16c5}of ro)this['editor']['plugins']['has'](_0x5b4509)&&(_0x15ab55['enableDefaultAttributesIntegration'](_0x1e16c5),_0x15ab55['registerInlineAttribute'](_0x1e16c5));_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x532f27,'FORMAT_FONT_SIZE')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x532f27,'FORMAT_FONT_FAMILY')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x532f27,'FORMAT_FONT_COLOR')),_0x15ab55['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x532f27,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4cd3d4=this['editor'],_0x54ae1d=_0x4cd3d4['locale'];_0x4cd3d4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x492519=>{const _0x35c519=_0x54ae1d['t'];if('formatInline'!=_0x492519['type'])return;const {data:_0x5f4e8e}=_0x492519;if(null!=_0x5f4e8e){if('fontSize'==_0x5f4e8e['commandName']){const _0x579997=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x579997){const _0x534a9e=_0x35c519(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x35ee20=>_0x35ee20['model']==_0x579997)['title'])['toLowerCase']();return{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20size:*\x20%0',_0x534a9e)};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x5f4e8e['commandName']){const _0x28997e=_0x5f4e8e['commandParams'][0x0]['value'];return _0x28997e?{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20family:*\x20%0',_0x28997e)}:{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20family*')};}if('fontColor'==_0x5f4e8e['commandName']){const _0x5c03fe=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x5c03fe){const _0x47f4d9=_0x9e5829(this['editor']['config']['get']('fontColor.colors'))['find'](_0x3f1599=>_0x3f1599['model']==_0x5c03fe);let _0x3d93a6=_0x5c03fe,_0x3fcb30='';return _0x47f4d9&&(_0x3d93a6=_0x47f4d9['label'],_0x3fcb30=_0x35c519(_0x3d93a6)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20color:*\x20%0',_0x3fcb30)['trim'](),'color':{'value':_0x5c03fe,'title':_0x3fcb30||_0x3d93a6}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x5f4e8e['commandName']){const _0x21fe52=_0x5f4e8e['commandParams'][0x0]['value'];if(_0x21fe52){const _0x2d7321=_0x9e5829(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x10d541=>_0x10d541['model']==_0x21fe52);let _0x2a66ab=_0x21fe52,_0x5e2183='';return _0x2d7321&&(_0x2a66ab=_0x2d7321['label'],_0x5e2183=_0x35c519(_0x2a66ab)['toLowerCase']()),{'type':'format','content':o(_0x54ae1d,'*Set\x20font\x20background\x20color:*\x20%0',_0x5e2183)['trim'](),'color':{'value':_0x21fe52,'title':_0x5e2183||_0x2a66ab}};}return{'type':'format','content':o(_0x54ae1d,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x4104d6{['afterInit'](){const _0x2b7030=this['editor'],_0x4d58ba=_0x2b7030['plugins']['get']('TrackChangesEditing'),_0x1726d6=_0x2b7030['commands']['get']('copyFormat'),_0x2e47ca=_0x2b7030['commands']['get']('pasteFormat');_0x1726d6&&_0x2e47ca&&(_0x4d58ba['enableDefaultAttributesIntegration']('pasteFormat'),_0x4d58ba['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x3f16fc=this['editor'],_0x22ab14=_0x3f16fc['locale'];_0x3f16fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4e8cd0=>{if('formatBlock'!=_0x4e8cd0['type']&&'formatInline'!=_0x4e8cd0['type'])return;const {data:_0x57c360}=_0x4e8cd0;if(_0x57c360&&'pasteFormat'===_0x57c360['commandName']){const _0x3903dc=[],_0x319412=_0x57c360['commandParams'][0x0];for(const [_0xfdcff5,_0x1376fb]of Object['entries'](_0x319412))_0x3903dc['push'](so(_0x3f16fc,_0xfdcff5,_0x1376fb));return _0x3903dc['length']?{'type':'format','content':o(_0x22ab14,'*Set\x20format\x20to:*\x20%0',_0x3903dc['join'](',\x20'))}:{'type':'format','content':o(_0x22ab14,'*Remove\x20all\x20formatting*')};}});}}function so(_0x5f2abd,_0x5b6123,_0x2e2df0){const _0x4db857=_0x5f2abd['locale']['t'],_0x2a078f=_0x5b6123['split'](/(?=[A-Z])/)['join']('\x20'),_0x9f8dcf=_0x4db857(_0x2a078f['charAt'](0x0)['toUpperCase']()+_0x2a078f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x2e2df0)return _0x9f8dcf;if('fontColor'===_0x5b6123||'fontBackgroundColor'===_0x5b6123){const _0x221699=_0x9e5829(_0x5f2abd['config']['get']('fontColor.colors'))['find'](_0x5d738b=>_0x5d738b['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x221699?_0x4db857(_0x221699['label'])['toLowerCase']():_0x2e2df0)+')';}if('fontSize'===_0x5b6123&&isNaN(parseFloat(_0x2e2df0))){const _0x4567f8=_0x5f2abd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x5f2abd['config']['get']('fontSize.options'))['find'](_0x5cb206=>_0x5cb206['model']==_0x2e2df0);return _0x9f8dcf+'\x20('+(_0x4567f8?_0x4db857(_0x4567f8['title'])['toLowerCase']():_0x2e2df0)+')';}return _0x9f8dcf+'\x20('+_0x2e2df0+')';}class Y extends _0x4104d6{['_headingOptions'];['afterInit'](){const _0x473a84=this['editor'];if(!_0x473a84['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x473a84['config']['get']('heading.options');const _0x5c3b66=_0x473a84['locale'],_0x57ad33=_0x473a84['plugins']['get']('TrackChangesEditing');_0x57ad33['enableDefaultAttributesIntegration']('heading');for(const _0x5b3078 of this['_headingOptions'])'paragraph'!=_0x5b3078['model']&&_0x57ad33['descriptionFactory']['registerElementLabel'](_0x5b3078['model'],_0x50de3f=>{const _0x517a0a=this['_getHeadingLevel'](_0x5b3078['model']);return null!==_0x517a0a?_0x4d15cf(_0x50de3f,_0x517a0a):_0x2c27ca(_0x50de3f,_0x5b3078['title']);});function _0x4d15cf(_0x46a66a,_0x3b06b8){return o(_0x5c3b66,'ELEMENT_HEADING',[_0x46a66a,_0x3b06b8]);}function _0x2c27ca(_0x46c99f,_0x2e92bb){return o(_0x5c3b66,'ELEMENT_HEADING_CUSTOM',[_0x46c99f,_0x2e92bb]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5f4525=this['editor'],_0x12d2b6=_0x5f4525['locale'];function _0x2f7a52(_0x56f54d,_0xc6aa7e){return o(_0x12d2b6,'ELEMENT_HEADING_CUSTOM',[_0x56f54d,_0xc6aa7e]);}_0x5f4525['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3fca70=>{if('formatBlock'!=_0x3fca70['type'])return;const {data:_0x30a1fd}=_0x3fca70;if(_0x30a1fd&&'heading'==_0x30a1fd['commandName']){const _0x220317=_0x30a1fd['commandParams'][0x0]['value'],_0xbc421c=this['_getHeadingLevel'](_0x220317);if(null!==_0xbc421c)return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',(_0x254724=0x1,_0x292ad6=_0xbc421c,o(_0x12d2b6,'ELEMENT_HEADING',[_0x254724,_0x292ad6])))};const _0x2fb13f=this['_headingOptions']['find'](_0x334fdf=>_0x334fdf['model']===_0x220317)['title'];return{'type':'format','content':o(_0x12d2b6,'*Change\x20to:*\x20%0',_0x2f7a52(0x1,_0x2fb13f))};}var _0x254724,_0x292ad6;});}['_getHeadingLevel'](_0x1e810b){const _0xcc5db0=_0x1e810b['match'](/^heading(\d+)/);if(_0xcc5db0)return _0xcc5db0[0x1];const _0x17f877=this['_headingOptions']?.['find'](_0x2f904f=>_0x2f904f['model']==_0x1e810b);if(_0x17f877&&_0x17f877['view']){const _0x2495c1=_0x17f877['view'],_0x26f28e=(_0x2495c1['name']??_0x2495c1)['match'](/^h(\d+)/);if(_0x26f28e)return _0x26f28e[0x1];}return null;}}class Z extends _0x4104d6{['afterInit'](){const _0x1ff250=this['editor'];if(!_0x1ff250['plugins']['has']('HighlightEditing'))return;const _0x508301=_0x1ff250['plugins']['get']('TrackChangesEditing'),_0x22436d=_0x1ff250['locale'];_0x508301['enableDefaultAttributesIntegration']('highlight'),_0x508301['registerInlineAttribute']('highlight'),_0x508301['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x22436d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23faad=this['editor'],_0x5721c9=_0x23faad['locale'];_0x23faad['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd51b52=>{if('formatInline'!=_0xd51b52['type'])return;const {data:_0x1b74e2}=_0xd51b52;if(_0x1b74e2&&'highlight'==_0x1b74e2['commandName']){const _0x772587=_0x5721c9['t'],_0xdb68c0=_0x1b74e2['commandParams'][0x0]['value'];if(_0xdb68c0){const _0x1f4394=_0x23faad['config']['get']('highlight.options')['find'](_0x2924cf=>_0x2924cf['model']==_0xdb68c0),_0x3147ff=_0x772587(_0x1f4394['title'])['toLowerCase']();return{'type':'format','content':o(_0x5721c9,'*Set\x20highlight:*\x20%0',_0x3147ff),'color':{'value':_0x1f4394['color'],'title':_0x1f4394['title']}};}return{'type':'format','content':o(_0x5721c9,'*Remove\x20highlight*',o(_0x5721c9,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x4104d6{['afterInit'](){const _0xff45e5=this['editor'];if(!_0xff45e5['plugins']['has']('HorizontalLineEditing'))return;_0xff45e5['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0xad465e=_0xff45e5['plugins']['get']('TrackChangesEditing'),_0x3d098c=_0xff45e5['locale'];_0xad465e['descriptionFactory']['registerElementLabel']('horizontalLine',_0x4efd99=>o(_0x3d098c,'ELEMENT_HORIZONTAL_LINE',_0x4efd99)),_0xff45e5['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x2d3fb0,{writer:_0x41fa20,options:_0x547bba})=>{if(!_0x547bba['showSuggestionHighlights'])return null;const _0x5622f3=_0x41fa20['createContainerElement']('div'),_0x5648cf=_0x41fa20['createEmptyElement']('hr');return _0x41fa20['addClass']('ck-horizontal-line',_0x5622f3),_0x41fa20['insert'](_0x41fa20['createPositionAt'](_0x5622f3,0x0),_0x5648cf),_0x5622f3;},'converterPriority':'high'});}}class et extends _0x4104d6{['afterInit'](){const _0x29a5b7=this['editor'];if(!_0x29a5b7['plugins']['has']('HtmlEmbed'))return;const _0xe521d3=_0x29a5b7['plugins']['get']('TrackChangesEditing'),_0xe8e57b=_0x29a5b7['locale'];_0xe521d3['descriptionFactory']['registerElementLabel']('rawHtml',_0x31ec4c=>o(_0xe8e57b,'ELEMENT_HTML_EMBED',_0x31ec4c)),_0xe521d3['enableDefaultAttributesIntegration']('htmlEmbed'),_0xe521d3['registerBlockAttribute']('value'),_0xe521d3['descriptionFactory']['registerDescriptionCallback'](_0x35eb4b=>{if('attribute'!=_0x35eb4b['type'])return;const {data:_0x18ff85}=_0x35eb4b;if(_0x18ff85&&'value'==_0x18ff85['key']&&_0x35eb4b['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x1dded6=o(_0xe8e57b,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0xe8e57b,'*Change\x20%0\x20content*',_0x1dded6)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1629eb=this['editor'],_0x1b2503=_0x1629eb['locale'];_0x1629eb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5a65d7=>{if('formatBlock'!=_0x5a65d7['type'])return;const {data:_0x4e445d}=_0x5a65d7;if(_0x4e445d&&'htmlEmbed'==_0x4e445d['commandName']){const _0x572ba7=o(_0x1b2503,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1b2503,'*Change\x20%0\x20content*',_0x572ba7)};}});}}class it extends _0x4104d6{['afterInit'](){const _0x113cfe=this['editor'];if(!_0x113cfe['plugins']['has']('ImageEditing'))return;const _0x5e7514=_0x113cfe['plugins']['get']('TrackChangesEditing'),_0x55629c=_0x113cfe['plugins']['get']('ImageUtils'),_0x54581f=_0x113cfe['locale'];_0x5e7514['enableCommand']('insertImage'),_0x5e7514['descriptionFactory']['registerElementLabel']('imageBlock',_0x14b5b2=>o(_0x54581f,'ELEMENT_IMAGE',_0x14b5b2)),_0x5e7514['descriptionFactory']['registerElementLabel']('imageInline',_0x40f08=>o(_0x54581f,'ELEMENT_INLINE_IMAGE',_0x40f08)),_0x5e7514['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x54581f,'ELEMENT_CAPTION')),_0x113cfe['plugins']['has']('ImageUploadEditing')&&_0x5e7514['enableCommand']('uploadImage'),_0x113cfe['plugins']['has']('ImageBlockEditing')&&_0x113cfe['plugins']['has']('ImageInlineEditing')&&(_0x5e7514['enableCommand']('imageTypeInline',(_0x22b0e2,_0x2a6c1f)=>{const _0x4f6a48=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']);_0x113cfe['model']['change'](()=>{_0x5e7514['markBlockFormat'](_0x4f6a48,{'commandName':'imageTypeInline','commandParams':[_0x2a6c1f]},[],'convertBlockImageToInline');});}),_0x5e7514['enableCommand']('imageTypeBlock',(_0x5eb170,_0x4cd567)=>{_0x113cfe['model']['change'](_0xb2b820=>{let _0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x35efd1=_0x37ad9c['fromPosition'](_0x210624['start'],'toPrevious'),_0x2dc814=_0x37ad9c['fromPosition'](_0x210624['end'],'toNext');_0x5e7514['forceDefaultExecution'](()=>_0x5eb170(_0x4cd567)),_0x5866b0=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x210624=_0xb2b820['createRangeOn'](_0x5866b0);const _0x3e2712=_0xb2b820['createRange'](_0x35efd1,_0x2dc814);_0x35efd1['detach'](),_0x2dc814['detach'](),_0x5e7514['markBlockFormat'](_0x5866b0,{'commandName':'imageTypeInline','commandParams':[_0x4cd567]},[],'convertInlineImageToBlock'),_0x3e2712['start']['isBefore'](_0x210624['start'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x3e2712['start'],_0x210624['start']),'convertInlineImageToBlock'),_0x210624['end']['isBefore'](_0x3e2712['end'])&&_0x5e7514['markInsertion'](_0xb2b820['createRange'](_0x210624['end'],_0x3e2712['end']),'convertInlineImageToBlock');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x5e7514['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x1d690e])=>{const _0x78cb81=_0x5e7514['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x2a6aa5=_0x1d690e['start'],_0x523611=_0x1d690e['end'];const _0x509aea=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x2a6aa5,'backward'),_0x547ae6=_0x113cfe['model']['schema']['getNearestSelectionRange'](_0x523611,'forward');_0x509aea['isCollapsed']&&(_0x2a6aa5=_0x509aea['start']),_0x547ae6['isCollapsed']&&(_0x523611=_0x547ae6['end']),_0x78cb81([_0x113cfe['model']['createRange'](_0x2a6aa5,_0x523611)]);}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0xef48c9),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0xef48c9)),_0x113cfe['plugins']['has']('ImageCaptionEditing')&&(_0x5e7514['enableCommand']('toggleImageCaption',(_0x390d79,_0x296109)=>{const _0x4b7b00=_0x113cfe['plugins']['get']('ImageCaptionUtils');let _0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471);_0x113cfe['model']['change'](()=>{if(_0x4b002a)return void _0x5e7514['markDeletion'](_0x113cfe['model']['createRangeOn'](_0x4b002a));const _0x3f6e7e=_0x55629c['isBlockImage'](_0x505471);_0x390d79(_0x296109),_0x505471=_0x55629c['getClosestSelectedImageElement'](_0x113cfe['model']['document']['selection']),_0x4b002a=_0x4b7b00['getCaptionFromImageModelElement'](_0x505471),_0x5e7514['markInsertion'](_0x113cfe['model']['createRangeOn'](_0x4b002a),_0x3f6e7e?null:'imageCaption');});}),_0x5e7514['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0xef48c9));const _0x201417=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x268521(_0x13a211,_0x91eb7f){const _0x240403=_0x201417['findIndex'](({type:_0x39691f,subType:_0x261e2b})=>_0x13a211['type']==_0x39691f&&_0x13a211['subType']==_0x261e2b),_0x1feb63=_0x201417['findIndex'](({type:_0x3a8869,subType:_0x1ec51e})=>_0x91eb7f['type']==_0x3a8869&&_0x91eb7f['subType']==_0x1ec51e);if(_0x240403<0x0||_0x1feb63<0x0)return!0x1;const _0x124c81=_0x13a211['getFirstRange'](),_0x552876=_0x91eb7f['getFirstRange']();if((0x0==_0x240403||0x1==_0x240403)&&0x2==_0x1feb63&&_0x124c81['isIntersecting'](_0x552876))return!0x0;if(0x2==_0x240403&&0x3==_0x1feb63){const _0x1af2fd=_0x5e7514['_findSuggestions'](_0x124c81,'insertion')['filter'](({suggestion:_0x54ede2,meta:_0x26a7f2})=>_0x26a7f2['isOwn']&&'convertInlineImageToBlock'==_0x54ede2['subType']);if(_0x1af2fd['length']>0x1&&_0x552876['end']['isEqual'](_0x124c81['start']))return!0x0;if(0x1==_0x1af2fd['length']&&(_0x124c81['start']['isEqual'](_0x552876['end'])||_0x124c81['end']['isEqual'](_0x552876['start'])))return!0x0;}if(0x3==_0x240403&&0x3==_0x1feb63&&_0x124c81['start']['isBefore'](_0x552876['start'])){const _0x443c8c=_0x124c81['end']['nodeAfter'],_0x3b255d=_0x552876['start']['nodeBefore'];return _0x55629c['isBlockImage'](_0x443c8c)&&_0x443c8c===_0x3b255d;}return!0x1;}function _0xef48c9(_0x532f0f,_0x40d79f){return _0x268521(_0x532f0f,_0x40d79f)?[_0x532f0f,_0x40d79f]:_0x268521(_0x40d79f,_0x532f0f)?[_0x40d79f,_0x532f0f]:null;}_0x113cfe['plugins']['has']('ImageResize')&&(_0x5e7514['enableDefaultAttributesIntegration']('resizeImage'),_0x5e7514['registerBlockAttribute']('resizedWidth'),_0x5e7514['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x54581f,'FORMAT_IMAGE_SIZE'))),_0x113cfe['plugins']['has']('ImageTextAlternativeEditing')&&(_0x5e7514['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x5e7514['registerBlockAttribute']('alt')),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x26d3c3=>{if(!!_0x201417['find'](({type:_0x2465ab,subType:_0x47c0af})=>_0x26d3c3['type']==_0x2465ab&&_0x26d3c3['subType']==_0x47c0af))return _0x26d3c3['previous']?{}:void 0x0;}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x348edb=>{if('insertion'==_0x348edb['type']||'deletion'==_0x348edb['type']){const _0x92d9c=_0x348edb['getContainedElement']();if(_0x92d9c&&_0x92d9c['is']('element','caption'))return{'type':'insertion'==_0x348edb['type']?'addObject':'removeObject','element':_0x92d9c,'quantity':0x1};}}),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x5c86c5=>'formatBlock'==_0x5c86c5['type']&&'convertInlineImageToBlock'==_0x5c86c5['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5c86c5['type']&&'convertBlockImageToInline'==_0x5c86c5['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x5e7514['descriptionFactory']['registerDescriptionCallback'](_0x2d3596=>{if('attribute'!=_0x2d3596['type'])return;const {data:_0x5deb86}=_0x2d3596;if(!_0x5deb86||'alt'!=_0x5deb86['key'])return;const _0x32f7ce=_0x5deb86['newValue'];return _0x32f7ce?{'type':'format','content':o(_0x54581f,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x32f7ce+'\x22')}:{'type':'format','content':o(_0x54581f,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2ca211=this['editor'],_0x192c16=_0x2ca211['locale'];_0x2ca211['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xd2cd61=>{if('formatBlock'!=_0xd2cd61['type']&&'formatInline'!=_0xd2cd61['type'])return;const {data:_0x565648}=_0xd2cd61;if(_0x565648){if('imageTextAlternative'==_0x565648['commandName']){const _0x44f68e=_0x565648['commandParams'][0x0]['newValue'];return _0x44f68e?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x44f68e+'\x22')}:{'type':'format','content':o(_0x192c16,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x565648['commandName']){const _0x496f49=_0x565648['commandParams'][0x0]['width'];return _0x496f49?{'type':'format','content':o(_0x192c16,'*Set\x20image\x20width:*\x20%0',_0x496f49)}:{'type':'format','content':o(_0x192c16,'*Reset\x20image\x20width*')};}}});}}class st extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x1babb8=this['editor']['locale'],_0x3f9ad6=this['editor']['plugins']['get']('TrackChangesEditing');_0x3f9ad6['enableDefaultAttributesIntegration']('replaceImageSource'),_0x3f9ad6['registerBlockAttribute']('src'),_0x3f9ad6['descriptionFactory']['registerDescriptionCallback'](_0x477dc0=>{if('attribute'!=_0x477dc0['type'])return;const {data:_0x371d6a}=_0x477dc0;return _0x371d6a&&'src'==_0x371d6a['key']?_0x371d6a['newValue']&&_0x371d6a['oldValue']?{'type':'format','content':o(_0x1babb8,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x563822=this['editor']['plugins']['get']('TrackChangesEditing');_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x563822['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x563822['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x459d90=this['editor'],_0x2b03a9=_0x459d90['locale'];_0x459d90['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x29474f=>{if('formatBlock'!=_0x29474f['type']&&'formatInline'!=_0x29474f['type'])return;const {data:_0x1e127e}=_0x29474f;if(!_0x1e127e||'replaceImageSource'!=_0x1e127e['commandName'])return;return{'type':'format','content':o(_0x2b03a9,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x4104d6{['afterInit'](){const _0x2f4246=this['editor'];if(!_0x2f4246['plugins']['has']('ImageStyleEditing'))return;const _0x2e0716=_0x2f4246['plugins']['get']('TrackChangesEditing'),_0x369304=_0x2f4246['plugins']['get']('ImageUtils'),_0x5c6d0f={};_0x2e0716['enableCommand']('imageStyle',(_0x43ea65,_0xb5107)=>{const _0x349da3=_0x2f4246['plugins']['get']('Users')['me'],_0x3c5e36=_0x2f4246['commands']['get']('imageStyle');let _0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x304e74=_0x3c5e36['value'];if(_0x304e74==_0xb5107['value'])return;const _0x243eca={'commandName':'imageStyle','commandParams':[_0xb5107],'formatGroupId':_0x5ed2a0()};_0x2f4246['model']['change'](()=>{if(_0x2e0716['getSuggestions']()['filter'](_0x451db1=>_0x451db1['isInContent']&&_0x349da3==_0x451db1['author']&&('formatBlock'==_0x451db1['type']||'formatInline'==_0x451db1['type'])&&('imageStylePreApply'==_0x451db1['subType']||'imageStylePostApply'==_0x451db1['subType'])&&_0x451db1['getFirstRange']()['isEqual'](_0x206c33))['forEach'](_0x3f0414=>_0x2e0716['discardSuggestion'](_0x3f0414['head'])),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),_0x206c33=_0x2f4246['model']['createRangeOn'](_0x590a25),_0x3c5e36['refresh'](),_0x2f4246['commands']['get']('imageTypeInline')['refresh'](),_0x2f4246['commands']['get']('imageTypeBlock')['refresh'](),_0x304e74=_0x3c5e36['value'],_0x304e74!=_0xb5107['value'])return _0x369304['isInlineImage'](_0x590a25)&&_0x3c5e36['shouldConvertImageType'](_0xb5107['value'],_0x590a25)?(_0x43ea65({..._0xb5107,'setImageSizes':!0x1}),_0x590a25=_0x369304['getClosestSelectedImageElement'](_0x2f4246['model']['document']['selection']),void _0x2e0716['markBlockFormat'](_0x590a25,{..._0x243eca,'commandReversedParams':[{'value':_0x304e74||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x369304['isBlockImage'](_0x590a25)?_0x2e0716['markBlockFormat'](_0x590a25,_0x243eca,[],'imageStylePostApply'):_0x2e0716['markInlineFormat'](_0x206c33,_0x243eca,'imageStylePostApply'));});});for(const _0x1b0362 of _0x2f4246['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5c6d0f[_0x1b0362['name']]=_0x1b0362['title']['toLowerCase']();_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x8b795b])=>{_0x369304['setImageNaturalSizeAttributes'](_0x8b795b['getContainedElement']());}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x56d829,_0x456e56)=>{_0x2e0716['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x56d829,{'commandName':_0x456e56['commandName'],'commandParams':_0x456e56['commandReversedParams']});}),_0x2e0716['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x4b7f65,_0x4824b4){if(_0x474303(_0x4b7f65,_0x4824b4))return[_0x4b7f65,_0x4824b4];if(_0x474303(_0x4824b4,_0x4b7f65))return[_0x4824b4,_0x4b7f65];return null;});const _0x3c376f=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x474303(_0x5a1c37,_0x1b3f73){const _0x2e9776=_0x3c376f['findIndex'](({type:_0x4a3a75,subType:_0x4e4930})=>_0x5a1c37['type']==_0x4a3a75&&_0x5a1c37['subType']==_0x4e4930),_0x4a8824=_0x3c376f['findIndex'](({type:_0x5bf738,subType:_0x3abf0c})=>_0x1b3f73['type']==_0x5bf738&&_0x1b3f73['subType']==_0x3abf0c);if(_0x2e9776<0x0||_0x4a8824<0x0)return!0x1;const _0x2a9da1=_0x5a1c37['getFirstRange'](),_0x2d0046=_0x1b3f73['getFirstRange']();if((0x0==_0x2e9776||0x1==_0x2e9776)&&0x2==_0x4a8824&&_0x2a9da1['isIntersecting'](_0x2d0046))return!0x0;if(0x2==_0x2e9776&&0x3==_0x4a8824){const _0x575105=_0x2e0716['_findSuggestions'](_0x2a9da1,'insertion')['filter'](({suggestion:_0x3c6799,meta:_0x1db68c})=>_0x1db68c['isOwn']&&'convertInlineImageToBlock'==_0x3c6799['subType']);if(_0x575105['length']>0x1&&_0x2d0046['end']['isEqual'](_0x2a9da1['start']))return!0x0;if(0x1==_0x575105['length']&&(_0x2a9da1['start']['isEqual'](_0x2d0046['end'])||_0x2a9da1['end']['isEqual'](_0x2d0046['start'])))return!0x0;}if(0x3==_0x2e9776&&0x3==_0x4a8824&&_0x2a9da1['start']['isBefore'](_0x2d0046['start'])){const _0x1df013=_0x2a9da1['end']['nodeAfter'],_0x2874be=_0x2d0046['start']['nodeBefore'];return _0x369304['isBlockImage'](_0x1df013)&&_0x1df013===_0x2874be;}return!0x1;}_0x2f4246['model']['document']['registerPostFixer'](()=>{let _0x17fe75=!0x1;const _0x5e2f03=Array['from'](_0x2f4246['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x110bb6,data:_0x1159f6}of _0x5e2f03){const {group:_0xc6ff19,type:_0x76e770,subType:_0x29d59c,id:_0x3c6225}=_0x2e0716['_splitMarkerName'](_0x110bb6);if('suggestion'==_0xc6ff19&&_0x2e0716['hasSuggestion'](_0x3c6225)){if('formatBlock'==_0x76e770&&('imageStylePreApply'==_0x29d59c||'imageStylePostApply'==_0x29d59c)){const _0x13b9c6=_0x2e0716['getSuggestion'](_0x3c6225);if(_0x1159f6['newRange']){const _0x34b7ca=_0x13b9c6['getFirstRange']()['getContainedElement']();if(_0x369304['isBlockImage'](_0x34b7ca))continue;_0x2e0716['discardSuggestion'](_0x13b9c6),_0x17fe75=!0x0;}}if('insertion'==_0x76e770&&'imageCaption'==_0x29d59c&&!_0x1159f6['newRange']){const _0x11d0bb=_0x2e0716['getSuggestion'](_0x3c6225);_0x11d0bb['next']&&_0x11d0bb['next']['isInContent']&&(_0x2e0716['discardSuggestion'](_0x11d0bb['next']),_0x17fe75=!0x0);}}}return _0x17fe75;}),this['_registerLegacyDescription'](_0x5c6d0f);}['_registerLegacyDescription'](_0x51958c){const _0x558a01=this['editor'],_0x1bb5b9=_0x558a01['locale'];_0x558a01['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x313971=>{if('formatBlock'!=_0x313971['type']&&'formatInline'!=_0x313971['type'])return;const {data:_0x35501f}=_0x313971;if(!_0x35501f||'imageStyle'!=_0x35501f['commandName'])return;const _0x162e51=_0x35501f['commandParams'][0x0]['value'];return _0x540fa7('side'===_0x162e51?o(_0x1bb5b9,'FORMAT_SIDE_IMAGE'):_0x51958c[_0x162e51]||_0x162e51);function _0x540fa7(_0x18899b){return{'type':'format','content':o(_0x1bb5b9,'*Format:*\x20%0',_0x18899b)};}});}}class ot extends _0x4104d6{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x39f916){super(_0x39f916),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x4bb7a6=this['editor'],_0x184d76=_0x4bb7a6['commands']['get']('importWord'),_0x2f9e6d=_0x4bb7a6['commands']['get']('trackChanges');_0x184d76&&(_0x184d76['on']('execute',(_0x369688,[,_0x2b6a7b])=>{this['_trackChangesValueDuringImport']=_0x2f9e6d['value'],_0x2b6a7b['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x184d76,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x184d76,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x2f9e6d['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x4bb7a6['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x1be97a,_0x4a363f){const {suggestions:_0x121bb4}=_0x4a363f,_0x482368=this['editor']['commands']['get']('trackChanges'),_0x17510b=_0x482368['value'];this['_trackChangesValueDuringImport']!==_0x17510b&&(_0x482368['execute'](),this['_trackChangesExecuted']=!0x0),_0x121bb4&&_0x121bb4['forEach'](({id:_0x3d15a2,type:_0x1e2749,author:_0x40e6ec,created_at:_0x2f956a})=>{const _0x5442cb={'id':_0x3d15a2,'type':_0x1e2749,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x40e6ec,'createdAt':_0x2f956a?new Date(_0x2f956a):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5442cb);});}}class rt extends _0x4104d6{['afterInit'](){const _0x2c185f=this['editor'],_0x55d5ff=_0x2c185f['plugins']['get']('TrackChangesEditing');if(_0x2c185f['plugins']['has']('IndentEditing')&&(_0x55d5ff['enableCommand']('indent'),_0x55d5ff['enableCommand']('outdent')),_0x2c185f['plugins']['has']('IndentBlock')){for(const _0xfd0180 of['indentBlock','outdentBlock'])_0x55d5ff['enableDefaultAttributesIntegration'](_0xfd0180);}const _0x11eb33=_0x2c185f['locale'];_0x55d5ff['registerBlockAttribute']('blockIndent'),_0x55d5ff['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x11eb33,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1e1e01=this['editor'],_0x4169c7=_0x1e1e01['locale'],_0x68bebd=_0x1e1e01['plugins']['get']('TrackChangesEditing');_0x68bebd['descriptionFactory']['registerDescriptionCallback'](_0x6423df=>{if('formatBlock'!=_0x6423df['type'])return;const {data:_0xb48f89}=_0x6423df;if(!_0xb48f89)return;if('indentBlock'!=_0xb48f89['commandName']&&'outdentBlock'!=_0xb48f89['commandName'])return;const _0x342925=_0x6423df['getItems']()[0x0],_0xbe3266=_0x68bebd['descriptionFactory']['getItemLabel'](_0x342925);return'indentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Indent:*\x20%0',_0xbe3266)}:'outdentBlock'==_0xb48f89['commandName']?{'type':'format','content':o(_0x4169c7,'*Outdent:*\x20%0',_0xbe3266)}:void 0x0;});}}class at extends _0x4104d6{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x4104d6{['afterInit'](){const _0x1c3fdc=this['editor'];if(!_0x1c3fdc['plugins']['has']('LinkEditing'))return;const _0xd393c2=_0x1c3fdc['plugins']['get']('TrackChangesEditing'),_0x5bafc2=_0x1c3fdc['commands']['get']('link');_0xd393c2['enableDefaultAttributesIntegration']('link'),_0xd393c2['enableDefaultAttributesIntegration']('unlink'),_0xd393c2['registerInlineAttribute']('linkHref');for(const _0x6b6821 of _0x5bafc2['manualDecorators'])_0xd393c2['registerInlineAttribute'](_0x6b6821['id']),_0xd393c2['descriptionFactory']['registerAttributeLabel'](_0x6b6821['id'],'link\x20('+_0x6b6821['label']['toLowerCase']()+')');_0xd393c2['descriptionFactory']['registerDescriptionCallback'](_0x51cff6=>{if('attribute'!=_0x51cff6['type'])return;const {data:_0x3ab8d9}=_0x51cff6;if(!_0x3ab8d9||'linkHref'!=_0x3ab8d9['key'])return;const _0x1d5426=_0x3ab8d9['newValue'],_0x49ccd3=_0x1c3fdc['locale'];return{'type':'format','content':null==_0x1d5426?o(_0x49ccd3,'*Remove\x20link*'):o(_0x49ccd3,'*Set\x20link:*\x20%0','\x22'+_0x1d5426+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d01a1=this['editor'],_0x4dcaa7=_0x1d01a1['locale'];_0x1d01a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x479571=>{if('formatInline'!=_0x479571['type'])return;const {data:_0x39c113}=_0x479571;if(_0x39c113){if('link'==_0x39c113['commandName']){const _0x4aee56=_0x39c113['commandParams'][0x0];return{'type':'format','content':o(_0x4dcaa7,'*Set\x20link:*\x20%0','\x22'+_0x4aee56+'\x22')};}return'unlink'==_0x39c113['commandName']?{'type':'format','content':o(_0x4dcaa7,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x4104d6{['afterInit'](){const _0x2ad8b7=this['editor'],_0x9c2cb3=_0x2ad8b7['locale'];if(!_0x2ad8b7['plugins']['has']('LegacyListEditing'))return;const _0x3af6a5=_0x2ad8b7['plugins']['get']('TrackChangesEditing'),_0x4bae29=_0x2ad8b7['plugins']['has']('LegacyTodoListEditing');function _0x430377(_0x45b5ba){return()=>{const _0x5c0de4=_0x2ad8b7['model']['document']['selection'],_0x29f8a1=_0x2ad8b7['commands']['get'](_0x45b5ba);if(_0x29f8a1['value'])return void _0x2ad8b7['execute']('paragraph',{});const _0x10b228=_0x45b5ba['slice'](0x0,-0x4),_0x42a664=function(_0x1eadb2,_0x4a8810,_0x24f15d){let _0x3d3cd0=Array['from'](_0x1eadb2)['filter'](_0xc26849=>function(_0x416172,_0x582a5b){return _0x582a5b['checkChild'](_0x416172['parent'],'listItem')&&!_0x582a5b['isObject'](_0x416172);}(_0xc26849,_0x24f15d));_0x3d3cd0=_0x3d3cd0['filter'](_0x115686=>!_0x115686['is']('element','listItem')||_0x115686['getAttribute']('listType')!=_0x4a8810);const _0x335174=new Set();for(const _0xb3ac62 of _0x3d3cd0)_0xb3ac62['is']('element','listItem')?_0x335174['add'](me(_0xb3ac62)):_0x335174['add'](_0xb3ac62);return Array['from'](_0x335174);}(_0x5c0de4['getSelectedBlocks'](),_0x10b228,_0x2ad8b7['model']['schema']);_0x2ad8b7['model']['change'](()=>{for(const _0x1c4d5a of _0x42a664)_0x3af6a5['markBlockFormat'](_0x1c4d5a,{'commandName':_0x45b5ba,'commandParams':[{'forceValue':!_0x29f8a1['value']}],'formatGroupId':'blockName'},fe(_0x1c4d5a));});};}function _0x12589a(_0x36609b){return()=>{const _0x48f068=function(_0x43d749){let _0x1f17d8=Array['from'](_0x43d749);const _0x18f889=_0x1f17d8['findIndex'](_0x5c2a39=>'listItem'!=_0x5c2a39['name']);return _0x18f889>-0x1&&(_0x1f17d8=_0x1f17d8['slice'](0x0,_0x18f889)),_0x1f17d8;}(_0x2ad8b7['model']['document']['selection']['getSelectedBlocks']()),_0x511242=_0x2ad8b7['model']['createRange'](_0x2ad8b7['model']['createPositionAt'](_0x48f068[0x0],'before'),_0x2ad8b7['model']['createPositionAt'](_0x48f068[_0x48f068['length']-0x1],'end'));_0x2ad8b7['model']['change'](()=>{_0x3af6a5['markBlockFormat'](_0x511242,{'commandName':_0x36609b,'commandParams':[],'formatGroupId':'listIndent'},function(_0x329b17){const _0x4ca292=new Set();for(const _0x1e1db9 of _0x329b17){let _0x321c09=_0x1e1db9['nextSibling'];for(;_0x321c09&&_0x321c09['getAttribute']('listIndent')>_0x1e1db9['getAttribute']('listIndent');)_0x4ca292['add'](_0x321c09),_0x321c09=_0x321c09['nextSibling'];}return Array['from'](_0x4ca292);}(_0x48f068));});};}_0x3af6a5['enableCommand']('numberedList',_0x430377('numberedList')),_0x3af6a5['enableCommand']('bulletedList',_0x430377('bulletedList')),_0x4bae29&&_0x3af6a5['enableCommand']('todoList',_0x430377('todoList')),_0x3af6a5['enableCommand']('indentList',_0x12589a('indentList')),_0x3af6a5['enableCommand']('outdentList',_0x12589a('outdentList')),_0x4bae29&&_0x3af6a5['enableCommand']('checkTodoList',()=>{const _0x3178b0=_0x2ad8b7['commands']['get']('checkTodoList'),_0x332ea2=Array['from'](_0x3178b0['_selectedElements']);_0x332ea2['filter'](_0x1b1940=>_0x1b1940['getAttribute']('todoListChecked')!=_0x3178b0['value']),_0x2ad8b7['model']['change'](()=>{for(const _0x171adf of _0x332ea2)_0x3af6a5['markBlockFormat'](_0x171adf,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x3178b0['value']}]});});}),_0x3af6a5['descriptionFactory']['registerElementLabel']('listItem',_0xf07770=>o(_0x9c2cb3,'ELEMENT_LIST_ITEM',_0xf07770)),_0x3af6a5['descriptionFactory']['registerDescriptionCallback'](_0x5e28e3=>{if('formatBlock'!=_0x5e28e3['type']&&'formatInline'!=_0x5e28e3['type'])return;const {data:_0x470db0}=_0x5e28e3;if(_0x470db0){if('numberedList'==_0x470db0['commandName']||'bulletedList'==_0x470db0['commandName']||'todoList'==_0x470db0['commandName'])switch(_0x470db0['commandName']['replace']('List','')){case'bulleted':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x1dec63(o(_0x9c2cb3,'ELEMENT_TODO_LIST'));}if('indentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Indent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x470db0['commandName'])return{'type':'format','content':o(_0x9c2cb3,'*Outdent:*\x20%0',o(_0x9c2cb3,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x470db0['commandName'])return _0x470db0['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x9c2cb3,'*Check\x20item*')}:{'type':'format','content':o(_0x9c2cb3,'*Uncheck\x20item*')};}function _0x1dec63(_0x330ede){return{'type':'format','content':o(_0x9c2cb3,'*Change\x20to:*\x20%0',_0x330ede)};}});}}function me(_0x335c71){const _0x2da9fa=_0x335c71['getAttribute']('listIndent');if(0x0==_0x2da9fa)return _0x335c71;let _0x1b493a=_0x335c71;for(;_0x335c71['previousSibling']&&_0x335c71['previousSibling']['is']('element','listItem');){const _0x49157c=_0x335c71['previousSibling']['getAttribute']('listIndent');if(_0x49157c==_0x2da9fa)_0x1b493a=_0x335c71['previousSibling'];else{if(_0x49157c<_0x2da9fa)break;}_0x335c71=_0x335c71['previousSibling'];}return _0x1b493a;}function fe(_0x223a86){const _0x4ea781=[];if(_0x223a86['is']('element','listItem')&&_0x223a86['getAttribute']('listIndent')>0x0){let _0x198c58=_0x223a86['nextSibling'];for(;_0x198c58&&'listItem'==_0x198c58['name']&&_0x198c58['getAttribute']('listIndent')==_0x223a86['getAttribute']('listIndent');)_0x4ea781['push'](_0x198c58),_0x198c58=_0x198c58['nextSibling'];}return _0x4ea781;}class K extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x333495=this['editor']['config']['get']('list.properties'),_0x3a6461=this['editor']['plugins']['get']('TrackChangesEditing');_0x333495['styles']&&_0x3a6461['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x333495['reversed']&&_0x3a6461['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x333495['startIndex']&&_0x3a6461['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x3a6461['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0xf21574,_0x134f24={}){const _0x2cc2f0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2938ff=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x2cc2f0['markMultiRangeBlockFormat'](_0x2938ff,{'commandName':'listStyle','commandParams':[{'type':_0x134f24['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x53a3a3,_0x134d7b={}){const _0x598fdb=this['editor']['plugins']['get']('TrackChangesEditing'),_0x224ea4=this['_getSuggestionBlocks'](_0x5691f9=>_0x5691f9['is']('element','listItem')&&'numbered'===_0x5691f9['getAttribute']('listType'));if(_0x224ea4['length']<0x1)return;const _0x9a649f=_0x224ea4['map'](_0x281bb7=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x281bb7,'before'),this['editor']['model']['createPositionAt'](_0x281bb7,0x0)));this['editor']['model']['change'](()=>{_0x598fdb['markMultiRangeBlockFormat'](_0x9a649f,{'commandName':'listReversed','commandParams':[{'reversed':_0x134d7b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x173b9d,_0x5792a0={}){const _0x2644e8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5543a2=this['_getSuggestionBlocks'](_0x587131=>_0x587131['is']('element','listItem')&&'numbered'===_0x587131['getAttribute']('listType'));if(_0x5543a2['length']<0x1)return;const _0x44d018=_0x5543a2['map'](_0x180699=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x180699,'before'),this['editor']['model']['createPositionAt'](_0x180699,0x0)));this['editor']['model']['change'](()=>{_0x2644e8['markMultiRangeBlockFormat'](_0x44d018,{'commandName':'listStart','commandParams':[{'startIndex':_0x5792a0['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x90f9fc){if('formatBlock'!=_0x90f9fc['type']&&'formatInline'!=_0x90f9fc['type'])return;const _0x4fb09d=this['editor']['locale'],{data:_0x527d88}=_0x90f9fc;if(!_0x527d88)return;let _0x2659c2,_0x252cf1;switch(_0x527d88['commandName']){case'listStyle':_0x2659c2='*Change\x20to:*\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,o(_0x4fb09d,this['_getTranslationKeyForListStyle'](_0x527d88['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2659c2=_0x527d88['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2)};break;case'listStart':_0x2659c2='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x252cf1={'type':'format','content':o(_0x4fb09d,_0x2659c2,_0x527d88['commandParams'][0x0]['startIndex'])};}return _0x252cf1;}['_getSuggestionBlocksForListStyle'](){const _0x24ab80=this['editor']['plugins']['get']('LegacyListUtils');let _0x54e4ac=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x54e4ac[0x0]?.['is']('element','listItem')&&_0x54e4ac['unshift'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x54e4ac[_0x54e4ac['length']-0x1]?.['is']('element','listItem')&&_0x54e4ac['push'](..._0x24ab80['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x54e4ac=[...new Set(_0x54e4ac)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x54e4ac=_0x54e4ac['filter'](_0x32c433=>_0x32c433['is']('element','listItem'))),_0x54e4ac;}['_getSuggestionBlocks'](_0x4f2fae){const _0x3d1fad=this['editor']['plugins']['get']('LegacyListUtils');let _0x524ff6=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4f2fae)['map'](_0xbd59a8=>{const _0x4dbbe0=this['editor']['model']['createPositionAt'](_0xbd59a8,0x0);return[..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'backward'),..._0x3d1fad['getSiblingNodes'](_0x4dbbe0,'forward')];})['flat']();return _0x524ff6=[...new Set(_0x524ff6)],_0x524ff6;}['_getTranslationKeyForListStyle'](_0x3fdd33){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3fdd33)||'default')['toUpperCase']()+'_LIST_'+_0x3fdd33['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x4104d6{['afterInit'](){const _0x42b400=this['editor'];if(!_0x42b400['plugins']['has']('MediaEmbedEditing'))return;const _0x4ee8ff=_0x42b400['plugins']['get']('TrackChangesEditing'),_0x4cde29=_0x42b400['locale'];_0x4ee8ff['enableCommand']('mediaEmbed'),_0x4ee8ff['descriptionFactory']['registerElementLabel']('media',_0x2674a0=>o(_0x4cde29,'ELEMENT_MEDIA',_0x2674a0)),_0x42b400['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x490b6d,{writer:_0x15c911,options:_0x38d121})=>{if(_0x38d121['showSuggestionHighlights'])return _0x15c911['createEmptyElement']('div');},'converterPriority':'high'}),_0x42b400['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4047fa,_0x3c0218,_0x58b9b9)=>{_0x58b9b9['options']['showSuggestionHighlights']&&_0x4047fa['stop']();},{'priority':'high'});}}class gt extends _0x4104d6{['afterInit'](){const _0x1bbec4=this['editor'];_0x1bbec4['plugins']['has']('MentionEditing')&&_0x1bbec4['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x4104d6{['afterInit'](){const _0xca56e9=this['editor'],_0x6b196=_0xca56e9['plugins']['get']('TrackChangesEditing');_0xca56e9['plugins']['has']('MultiLevelList')&&(_0x6b196['enableDefaultAttributesIntegration']('multiLevelList'),_0x6b196['registerBlockAttribute']('listMarkerStyle'),_0x6b196['descriptionFactory']['registerDescriptionCallback'](_0x2dce08=>this['handleDescriptions'](_0x2dce08)));}['handleDescriptions'](_0x3b94d1){const _0xe89e5b=this['editor']['locale'],{data:_0x5f1eab}=_0x3b94d1,_0x15f017={'type':'format','content':''};if(_0x5f1eab&&'listMarkerStyle'==_0x5f1eab['key']){if(!_0x5f1eab['oldValue'])return{'type':'format','content':o(_0xe89e5b,'*Set\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['newValue']+')'};if(!_0x5f1eab['newValue']){let _0x504c77=_0x3b94d1['head'];for(;_0x504c77;){if(_0x504c77['data']&&'listType'==_0x504c77['data']['key']&&_0x504c77['data']['newValue'])return _0x15f017;_0x504c77=_0x504c77['next'];}return{'type':'format','content':o(_0xe89e5b,'*Remove\x20format:*\x20%0',o(_0xe89e5b,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5f1eab['oldValue']+')'};}}}}class mt extends _0x4104d6{['afterInit'](){const _0xed0c62=this['editor'];if(!_0xed0c62['plugins']['has']('PageBreakEditing'))return;_0xed0c62['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x5cb40a=_0xed0c62['plugins']['get']('TrackChangesEditing'),_0x4f1da6=_0xed0c62['locale'];_0x5cb40a['descriptionFactory']['registerElementLabel']('pageBreak',_0x195489=>o(_0x4f1da6,'ELEMENT_PAGE_BREAK',_0x195489));}}class dt extends _0x4104d6{['afterInit'](){const _0x38d1a8=this['editor'];if(!_0x38d1a8['plugins']['has']('Paragraph'))return;const _0x227235=_0x38d1a8['locale'],_0x5a8cfb=_0x38d1a8['plugins']['get']('TrackChangesEditing');_0x5a8cfb['descriptionFactory']['registerElementLabel']('paragraph',_0xbeb8b3=>o(_0x227235,'ELEMENT_PARAGRAPH',_0xbeb8b3)),_0x5a8cfb['enableDefaultAttributesIntegration']('paragraph'),_0x5a8cfb['enableCommand']('insertParagraph'),_0x38d1a8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x38d1a8),{'priority':'highest'}),_0x38d1a8['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x173d49,_0x6b1a4d,_0x260214)=>{_0x260214['options']['showSuggestionHighlights']&&nr(_0x38d1a8,{'showActiveMarker':!0x1})(_0x173d49,_0x6b1a4d,_0x260214);},{'priority':'highest'});const _0x4bef5d=_0x5a8cfb['descriptionFactory'];_0x4bef5d['registerDescriptionCallback'](_0x5dc11e=>{if('insertion'!==_0x5dc11e['type'])return;const {start:_0x1b2bc6,end:_0x4b71c5}=_0x5dc11e['getFirstRange']();if(!_0x1b2bc6['isTouching'](_0x4b71c5)||!_0x1b2bc6['nodeAfter'])return;const _0x470ac8=_0x38d1a8['model']['schema'],_0x47af75=_0x1b2bc6['nodeAfter'];return _0x470ac8['isBlock'](_0x47af75)&&!_0x470ac8['isLimit'](_0x47af75)&&_0x470ac8['checkChild'](_0x47af75,'$text')?{'type':'insertion','content':o(_0x227235,'*Insert:*\x20%0',_0x4bef5d['getItemLabel'](_0x47af75,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4230fc=this['editor'],_0x2318e6=_0x4230fc['locale'];_0x4230fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x58d264=>{if('formatBlock'!=_0x58d264['type'])return;const {data:_0x4589f3}=_0x58d264;return _0x4589f3&&'paragraph'==_0x4589f3['commandName']?{'type':'format','content':o(_0x2318e6,'*Change\x20to:*\x20%0',o(_0x2318e6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x242da2,{showActiveMarker:_0x514d7f=!0x0}={}){return(_0x2595e3,_0x2ca8b9,_0x111074)=>{const _0x29cc43=_0x242da2['plugins']['get']('TrackChangesEditing'),_0xb6cfd9=_0x2ca8b9['markerRange']['start'],_0x3e8786=_0x2ca8b9['markerRange']['end'],_0x118258=_0x242da2['model']['schema'];if(!_0xb6cfd9['isTouching'](_0x3e8786)||!_0xb6cfd9['nodeAfter'])return;const _0x3e473d=_0xb6cfd9['nodeAfter'];if(_0x118258['isBlock'](_0x3e473d)&&!_0x118258['isLimit'](_0x3e473d)&&_0x118258['checkChild'](_0x3e473d,'$text')){if(!_0x111074['consumable']['consume'](_0x2ca8b9['markerRange'],_0x2595e3['name']))return;const _0x1e0a1a=_0x111074['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2d4ada=_0x111074['mapper']['toViewPosition'](_0x3e8786);_0x514d7f&&_0x29cc43['activeMarkers']['includes'](_0x2ca8b9['markerName'])&&_0x111074['writer']['addClass']('ck-suggestion-marker--active',_0x1e0a1a),_0x111074['writer']['insert'](_0x2d4ada,_0x1e0a1a),_0x111074['mapper']['bindElementToMarker'](_0x1e0a1a,_0x2ca8b9['markerName']);}};}class pt extends _0x4104d6{['afterInit'](){const _0x5ccd72=this['editor'];if(!_0x5ccd72['plugins']['has']('RemoveFormatEditing'))return;_0x5ccd72['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54d5f1=this['editor'];_0x54d5f1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x1a1c1f=>{if('formatBlock'!=_0x1a1c1f['type']&&'formatInline'!=_0x1a1c1f['type'])return;const {data:_0x5b51b1}=_0x1a1c1f;return _0x5b51b1&&'removeFormat'==_0x5b51b1['commandName']?{'type':'format','content':o(_0x54d5f1['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x4104d6{['afterInit'](){const _0x11c4d0=this['editor'];if(!_0x11c4d0['plugins']['has']('RestrictedEditingModeEditing'))return;const _0xa988a1=_0x11c4d0['plugins']['get']('TrackChangesEditing');_0xa988a1['enableCommand']('goToPreviousRestrictedEditingException'),_0xa988a1['enableCommand']('goToNextRestrictedEditingException');const _0x2bbcd4=_0x11c4d0['plugins']['get']('RestrictedEditingModeEditing');_0x2bbcd4['enableCommand']('trackChanges'),_0x2bbcd4['enableCommand']('acceptSuggestion'),_0x2bbcd4['enableCommand']('discardSuggestion'),_0x2bbcd4['enableCommand']('acceptAllSuggestions'),_0x2bbcd4['enableCommand']('discardAllSuggestions'),_0x2bbcd4['enableCommand']('acceptSelectedSuggestions'),_0x2bbcd4['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x4104d6{static get['requires'](){return[_0x291438];}['init'](){const _0x4d02af=this['editor'],_0x3f84b6=_0x4d02af['plugins']['get']('TrackChangesEditing');_0x3f84b6['enableCommand']('shiftEnter'),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x4d02af),{'priority':'high'}),_0x4d02af['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x595609,_0x4de6f4,_0x2e8ae5)=>{_0x2e8ae5['options']['showSuggestionHighlights']&&de(_0x4d02af,{'showActiveMarker':!0x1})(_0x595609,_0x4de6f4,_0x2e8ae5);}),_0x3f84b6['descriptionFactory']['registerElementLabel']('softBreak',_0x3d3de3=>o(_0x4d02af['locale'],'ELEMENT_LINE_BREAK',_0x3d3de3));}}function de(_0x46ab62,{showActiveMarker:_0x5d4045=!0x0}={}){return(_0x4d01bb,_0x47f832,_0x194826)=>{const _0x3de751=_0x46ab62['plugins']['get']('TrackChangesEditing');if(!_0x194826['consumable']['test'](_0x47f832['markerRange'],_0x4d01bb['name']))return;const _0x3f0dc7=_0x46ab62['model'];for(const _0x39bbc3 of _0x47f832['markerRange']['getItems']()){if(!_0x39bbc3['is']('element','softBreak'))continue;const _0x5aff15='deletion'==_0x47f832['markerName']['split'](':')[0x1]?'merge':'split',_0x4742d4=_0x194826['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5aff15}),_0x43d849=_0x194826['mapper']['toViewPosition'](_0x3f0dc7['createPositionBefore'](_0x39bbc3));_0x5d4045&&_0x3de751['activeMarkers']['includes'](_0x47f832['markerName'])&&_0x194826['writer']['addClass']('ck-suggestion-marker--active',_0x4742d4),_0x194826['writer']['insert'](_0x43d849,_0x4742d4),_0x194826['mapper']['bindElementToMarker'](_0x4742d4,_0x47f832['markerName']);}};}class wt extends _0x4104d6{['afterInit'](){const _0x399a89=this['editor'],_0x19022=_0x399a89['model'],_0x1c5775=_0x399a89['locale'];if(!_0x399a89['plugins']['has']('StandardEditingModeEditing'))return;const _0x2acd73=_0x399a89['plugins']['get']('TrackChangesEditing'),_0xfc146d='restrictedEditingException',_0x4fba31=_0x399a89['commands']['get'](_0xfc146d);_0x2acd73['enableCommand'](_0xfc146d,(_0x2d27e4,_0x1c0aed={})=>{const _0xafd260=_0x19022['document']['selection'];if(_0xafd260['isCollapsed'])return void _0x2d27e4(_0x1c0aed);const _0x24189c=void 0x0!==_0x1c0aed['forceValue']?_0x1c0aed['forceValue']:!_0x4fba31['value'];_0x19022['change'](()=>{const _0x578468=Array['from'](_0xafd260['getRanges']());for(const _0x52eb4e of _0x578468){const _0x23eff4=_0x24189c?[_0x52eb4e]:io(_0xfc146d,_0x52eb4e,_0x19022);for(const _0x570425 of _0x23eff4)_0x2acd73['markInlineFormat'](_0x570425,{'commandName':_0xfc146d,'commandParams':[{'forceValue':_0x24189c}]});}});}),_0x2acd73['descriptionFactory']['registerDescriptionCallback'](_0x39b889=>{if('formatBlock'!=_0x39b889['type']&&'formatInline'!=_0x39b889['type'])return;const {data:_0x20ea46}=_0x39b889;return _0x20ea46&&_0x20ea46['commandName']==_0xfc146d?_0x20ea46['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x1c5775,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x4104d6{['afterInit'](){const _0x2da116=this['editor'];if(!_0x2da116['plugins']['has']('Style')||!_0x2da116['plugins']['has']('DataSchema'))return;const _0x1e3c1b=_0x2da116['plugins']['get']('TrackChangesEditing'),_0x8e91af=_0x2da116['locale'],_0x473fe=_0x2da116['config']['get']('style')||{},_0xec482c=_0x2da116['plugins']['get']('GeneralHtmlSupport'),_0x4e2c9f=_0x2da116['plugins']['get']('StyleUtils')['normalizeConfig'](_0x2da116['plugins']['get']('DataSchema'),_0x473fe['definitions']);_0x1e3c1b['enableDefaultAttributesIntegration']('style');const _0x1fd7df=new Set();for(const _0x511ad1 of _0x4e2c9f['block']){const _0x488823=_0xec482c['getGhsAttributeNameForElement'](_0x511ad1['element']);_0x1fd7df['add'](_0x488823);}const _0x2494cc=new Set();for(const _0x550770 of _0x4e2c9f['inline']){const _0x19da0a=_0xec482c['getGhsAttributeNameForElement'](_0x550770['element']);_0x2494cc['add'](_0x19da0a);for(const _0x6b63a1 of _0x550770['ghsAttributes'])_0x2494cc['add'](_0x6b63a1);}for(const _0x539971 of _0x1fd7df)_0x1e3c1b['registerBlockAttribute'](_0x539971),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x539971,o(_0x8e91af,'FORMAT_STYLE'));for(const _0x4d4bdd of _0x2494cc)_0x1e3c1b['registerInlineAttribute'](_0x4d4bdd),_0x1e3c1b['descriptionFactory']['registerAttributeLabel'](_0x4d4bdd,o(_0x8e91af,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x27c720=this['editor'],_0xc1ef67=_0x27c720['locale'];_0x27c720['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x6f6eea=>{if('formatBlock'!=_0x6f6eea['type']&&'formatInline'!=_0x6f6eea['type'])return;const {data:_0xcc2e47}=_0x6f6eea;return _0xcc2e47&&'style'===_0xcc2e47['commandName']?_0xcc2e47['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xc1ef67,'*Set\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0xc1ef67,'*Remove\x20format:*\x20%0',_0xcc2e47['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x4104d6{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x35196f){super(_0x35196f),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x1a457b=this['editor'],_0x13e98f=_0x1a457b['model']['document']['selection'];if(!_0x1a457b['plugins']['has']('TableEditing'))return;const _0x120aa4=_0x1a457b['locale'],_0x91d880=_0x1a457b['plugins']['get']('TrackChangesEditing'),_0x289501=_0x1a457b['plugins']['get']('TableUtils');_0x91d880['descriptionFactory']['registerElementLabel']('table',_0x131ac5=>o(_0x120aa4,'ELEMENT_TABLE',_0x131ac5)),this['_setupColumnsRowsFixing'](),_0x91d880['enableCommand']('insertTable'),_0x91d880['enableCommand']('selectTableRow'),_0x91d880['enableCommand']('selectTableColumn');for(const _0x327af9 of['insertTableRowAbove','insertTableRowBelow']){const _0x5c4af8=_0x1a457b['commands']['get'](_0x327af9);_0x91d880['enableCommand'](_0x327af9,_0x107701=>{_0x1a457b['model']['change'](_0x3dce05=>{_0x107701();const _0x2732f1='above'===_0x5c4af8['order'],_0x6e87e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x26e72a=_0x289501['getRowIndexes'](_0x6e87e4),_0x5957bb=_0x2732f1?_0x26e72a['first']-0x1:_0x26e72a['last']+0x1,_0x145dd4=_0x6e87e4[0x0]['findAncestor']('table'),_0x34e4e2=_0x289501['createTableWalker'](_0x145dd4,{'startRow':_0x5957bb,'endRow':_0x5957bb}),_0x504075=Array['from'](_0x34e4e2)['map'](_0x472490=>_0x3dce05['createRangeOn'](_0x472490['cell']));_0x91d880['markMultiRangeInsertion'](_0x504075,'tableRow');});});}for(const _0x7794b6 of['insertTableColumnLeft','insertTableColumnRight']){const _0xaf0a9f=_0x1a457b['commands']['get'](_0x7794b6);_0x91d880['enableCommand'](_0x7794b6,_0x3ef804=>{_0x1a457b['model']['change'](_0x591e43=>{_0x3ef804();const _0x46c6f9='left'===_0xaf0a9f['order'],_0x3067e4=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x161833=_0x289501['getColumnIndexes'](_0x3067e4),_0x2cd9a6=_0x46c6f9?_0x161833['first']-0x1:_0x161833['last']+0x1,_0x297cac=_0x3067e4[0x0]['findAncestor']('table'),_0x39891b=_0x289501['createTableWalker'](_0x297cac,{'startRow':0x0,'column':_0x2cd9a6,'includeAllSlots':!0x1}),_0x3cc9b5=Array['from'](_0x39891b)['map'](_0x2b4cb7=>_0x591e43['createRangeOn'](_0x2b4cb7['cell']));_0x91d880['markMultiRangeInsertion'](_0x3cc9b5,'tableColumn');});});}for(const _0xe5d89d of['removeTableRow','removeTableColumn']){const _0x23131c=_0xe5d89d['substr'](0xb),_0x1da058=_0x23131c['toLowerCase'](),_0x1aec82=_0x1da058['substr'](0x0,0x3)+'span',_0x4323b8='table'+_0x23131c,_0x48f100='min'+_0x23131c,_0x46692b='max'+_0x23131c;_0x91d880['enableCommand'](_0xe5d89d,()=>{_0x1a457b['model']['change'](_0x2745d7=>{const _0x29379e=_0x289501['getSelectionAffectedTableCells'](_0x13e98f),_0x3fb6f0=_0x29379e[0x0]['findAncestor']('table');let _0x1344b2;if('removeTableRow'==_0xe5d89d){const _0x266a43=_0x289501['getRowIndexes'](_0x29379e);_0x1344b2={'startRow':_0x266a43['first'],'endRow':_0x266a43['last'],'includeAllSlots':!0x0};}else{const _0x4c340d=_0x289501['getColumnIndexes'](_0x29379e);_0x1344b2={'startColumn':_0x4c340d['first'],'endColumn':_0x4c340d['last'],'includeAllSlots':!0x0};}const _0x1cee4a=_0x289501['createTableWalker'](_0x3fb6f0,_0x1344b2),_0x1d1f0e=Array['from'](_0x1cee4a)['map'](({cell:_0x1713f6})=>_0x1713f6),_0x52510d=Ee(_0x1d1f0e['filter'](_0x1de3dc=>_0x1de3dc['hasAttribute'](_0x1aec82))),_0x555e72=Ee(_0x1d1f0e['filter'](_0x3be64f=>!_0x3be64f['hasAttribute'](_0x1aec82)))['map'](_0x4b7d4d=>_0x2745d7['createRangeOn'](_0x4b7d4d)),_0xf06f2=_0x91d880['markMultiRangeDeletion'](_0x555e72,_0x4323b8);if(_0xf06f2&&('tableRow'==_0xf06f2['subType']||'tableColumn'==_0xf06f2['subType'])){const _0x52be2c=this['_getSuggestionCoords'](_0xf06f2);for(const _0x380ed2 of _0x52510d){const _0x1de5e3=_0x2745d7['createRangeOn'](_0x380ed2),_0xbd7e05=_0x289501['getCellLocation'](_0x380ed2),_0x557631=_0x380ed2['getAttribute'](_0x1aec82)-0x1,_0x563dcb=_0x52be2c[_0x48f100],_0x54ae2a=_0x52be2c[_0x46692b];_0x563dcb<=_0xbd7e05[_0x1da058]&&_0xbd7e05[_0x1da058]+_0x557631<=_0x54ae2a&&_0xf06f2['addRange'](_0x1de5e3);}}});});}function _0x108234(_0x1ce55b){const _0x2101e0=Array['from'](_0x13e98f['getRanges']())['map'](_0x5d55cd=>_0xe90ba7['fromRange'](_0x5d55cd));_0x1a457b['model']['change'](_0x33f631=>{const _0x498c6d=_0x33f631['batch'];_0x1ce55b=_0x1ce55b['filter'](_0x42e007=>'$graveyard'!=_0x42e007['root']['rootName']),_0x33f631['setSelection'](_0x1ce55b),_0x1a457b['commands']['get']('removeTableRow')['refresh'](),_0x1a457b['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x1a457b['model']['enqueueChange'](()=>{_0x1a457b['model']['enqueueChange'](_0x498c6d,_0x646c55=>{const _0x46a36c=_0x2101e0['filter'](_0x470c09=>'$graveyard'!=_0x470c09['root']['rootName']);_0x46a36c['length']>0x0&&_0x646c55['setSelection'](_0x46a36c);for(const _0x1015c2 of _0x2101e0)_0x1015c2['detach']();});});});}function _0x26064a(_0x2a4def){_0x1a457b['model']['change'](_0xfba3c5=>{const _0x289f5a=Array['from'](_0x13e98f['getRanges']())['map'](_0x12b211=>_0xe90ba7['fromRange'](_0x12b211)),_0x435cca=[];for(const _0x146c2b of _0x2a4def)for(const _0x4b68ff of _0x146c2b['getItems']({'shallow':!0x0}))_0x435cca['push'](_0x4b68ff);for(const _0xe17c26 of _0x435cca)'$graveyard'!=_0xe17c26['root']['rootName']&&(_0xfba3c5['setSelection'](_0xfba3c5['createPositionAt'](_0xe17c26,0x0)),_0x1a457b['commands']['get']('removeTableColumn')['refresh'](),_0x1a457b['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e86dd=_0x289f5a['filter'](_0x1d04c4=>'$graveyard'!=_0x1d04c4['root']['rootName']);_0x3e86dd['length']>0x0&&_0xfba3c5['setSelection'](_0x3e86dd);for(const _0x422a47 of _0x289f5a)_0x422a47['detach']();});}function _0x1f2e41(_0x85051c,_0x2eb2ff){return _0x2eb2ff['every'](_0x192e6c=>_0x85051c['some'](_0x1fc29e=>_0x1fc29e['end']['isEqual'](_0x192e6c['start'])||_0x192e6c['end']['isEqual'](_0x1fc29e['start'])));}function _0x152388(_0x18a7ee,_0x24df8d){return!_0x18a7ee['some'](_0x476a78=>_0x24df8d['some'](_0x12fa59=>_0x476a78['isIntersecting'](_0x12fa59)))&&_0x18a7ee['some'](_0x3da2f6=>_0x24df8d['some'](_0x3c2c60=>_0x3da2f6['end']['isTouching'](_0x3c2c60['start'])));}_0x1a457b['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x1e17d4,_0xa6c1d8,_0x5aea9c)=>{if(!_0x5aea9c['options']['showSuggestionHighlights'])return;const _0x5be8d1=_0xa6c1d8['item'];if(!_0x5be8d1)return;const _0x26acd5=_0x5aea9c['mapper']['toViewElement'](_0x5be8d1);function _0x457227(_0x4a5552){return Array['isArray'](_0x4a5552)?_0x4a5552:[_0x4a5552];}_0x26acd5&&'tableCell'===_0x5be8d1['name']&&_0x51a40e(_0x26acd5,_0x5aea9c['writer'],(_0x350b38,_0x36262a,_0x393ee0)=>_0x393ee0['addClass'](_0x457227(_0x36262a['classes']),_0x350b38),(_0x3ad175,_0x167f69,_0x31a11d)=>_0x31a11d['removeClass'](_0x457227(_0x167f69['classes']),_0x3ad175));},{'priority':'highest'}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x2a720f=>{if('insertion'!=_0x2a720f['type']&&'deletion'!=_0x2a720f['type'])return;const _0x56af57=_0x2a720f['getContainedElement']();if(null!=_0x56af57&&_0x56af57['is']('element','table')){if('insertion'==_0x2a720f['type']){const _0x4cf95f=_0x2a720f['getItems']()['filter'](_0x340bd1=>_0x340bd1['is']('$textProxy'))['map'](_0x51c29d=>_0x51c29d['data']);if(_0x4cf95f['length'])return{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x4cf95f['join']('\x20')+'\x22'))};}if('deletion'==_0x2a720f['type']){const _0x67c8eb=_0x2a720f['getItems']()['filter'](_0x3115d6=>_0x3115d6['is']('$textProxy'))['map'](_0x228d9c=>_0x228d9c['data']);if(_0x67c8eb['length'])return{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x67c8eb['join']('\x20')+'\x22'))};}}}),_0x91d880['descriptionFactory']['registerDescriptionCallback'](_0x3cc6d0=>{if('tableRow'==_0x3cc6d0['subType']){const _0x3381d2=_0x3cc6d0['getItems']()['filter'](_0x32d499=>_0x32d499['is']('$textProxy'))['map'](_0x580a72=>_0x580a72['data']),_0x3faa6f=this['_getSuggestionCoords'](_0x3cc6d0),_0x2e538d=_0x3faa6f['maxRow']-_0x3faa6f['minRow']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};if('deletion'==_0x3cc6d0['type'])return _0x3381d2['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x2e538d,'\x22'+_0x3381d2['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_ROW',_0x2e538d))};}if('tableColumn'==_0x3cc6d0['subType']){const _0x188e30=_0x3cc6d0['getItems']()['filter'](_0x13d014=>_0x13d014['is']('$textProxy'))['map'](_0x38a375=>_0x38a375['data']),_0x146d26=this['_getSuggestionCoords'](_0x3cc6d0),_0x4b9626=_0x146d26['maxColumn']-_0x146d26['minColumn']+0x1;if('insertion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x120aa4,'*Insert:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};if('deletion'==_0x3cc6d0['type'])return _0x188e30['length']?{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x4b9626,'\x22'+_0x188e30['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x120aa4,'*Remove:*\x20%0',o(_0x120aa4,'ELEMENT_TABLE_COLUMN',_0x4b9626))};}}),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x108234),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x26064a),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x1f2e41),_0x91d880['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x152388),_0x91d880['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x152388);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3c0d09=this['editor'],_0xff6af2=_0x3c0d09['model']['document']['selection'];return(_0x23029b,_0x47869c)=>{_0x3c0d09['model']['change'](_0x13ef17=>{const {commandName:_0x2b1af6,commandParams:_0x447426}=_0x47869c;let _0x46b5a9=_0x23029b[0x0]['end']['nodeBefore'];_0x447426&&_0x447426[0x0]&&!0x1===_0x447426[0x0]['forceValue']&&(_0x46b5a9=_0x23029b[0x0]['start']['nodeAfter']);const _0x2e6b93=_0x13ef17['createRangeIn'](_0x46b5a9);if('$graveyard'==_0x2e6b93['root']['rootName'])return;const _0x177e82=Array['from'](_0xff6af2['getRanges']())['map'](_0x539d76=>_0xe90ba7['fromRange'](_0x539d76));_0x13ef17['setSelection'](_0x2e6b93),_0x3c0d09['commands']['get'](_0x2b1af6)['refresh'](),_0x447426['push']({'forceDefaultExecution':!0x0}),_0x3c0d09['execute'](_0x2b1af6,..._0x447426);const _0x1f85c4=_0x177e82['filter'](_0x127872=>'$graveyard'!=_0x127872['root']['rootName']);_0x1f85c4['length']>0x0&&_0x13ef17['setSelection'](_0x1f85c4);for(const _0x28eb9c of _0x177e82)_0x28eb9c['detach']();});};}['_getCoordsForCells'](_0x374b7a){const _0x4422c7=this['editor']['plugins']['get']('TableUtils');let _0x284eef=Number['MAX_SAFE_INTEGER'],_0x41e62d=Number['MIN_SAFE_INTEGER'],_0x154af6=Number['MAX_SAFE_INTEGER'],_0x1affb2=Number['MIN_SAFE_INTEGER'];for(const _0x166283 of _0x374b7a){if('$graveyard'==_0x166283['root']['rootName'])continue;const {row:_0x2ea082,column:_0x3c7621}=_0x4422c7['getCellLocation'](_0x166283),_0x6a1a77=_0x166283['hasAttribute']('rowspan')?_0x166283['getAttribute']('rowspan')-0x1:0x0,_0x5afe24=_0x166283['hasAttribute']('colspan')?_0x166283['getAttribute']('colspan')-0x1:0x0;_0x284eef=_0x2ea082<_0x284eef?_0x2ea082:_0x284eef,_0x41e62d=_0x2ea082+_0x6a1a77>_0x41e62d?_0x2ea082+_0x6a1a77:_0x41e62d,_0x154af6=_0x3c7621<_0x154af6?_0x3c7621:_0x154af6,_0x1affb2=_0x3c7621+_0x5afe24>_0x1affb2?_0x3c7621+_0x5afe24:_0x1affb2;}return{'minRow':_0x284eef,'maxRow':_0x41e62d,'minColumn':_0x154af6,'maxColumn':_0x1affb2};}['_setupColumnsRowsFixing'](){const _0xa0331c=this['editor'],_0x4900df=_0xa0331c['plugins']['get']('TrackChangesEditing'),_0x39d684=_0xa0331c['plugins']['get']('TableUtils');_0xa0331c['model']['document']['on']('change:data',()=>{const _0x598314=Array['from'](_0xa0331c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x24a4f2,data:_0x3267c4}of _0x598314){const {group:_0x41ddb0,id:_0x3dcfb9,subType:_0x18ed45}=_0x4900df['_splitMarkerName'](_0x24a4f2);if('suggestion'!=_0x41ddb0)continue;if(null!=_0x3267c4['oldRange'])continue;const _0x52e9ff=_0x4900df['getSuggestion'](_0x3dcfb9);this['_tablePostFixingSubtypes']['includes'](_0x18ed45)&&this['_tableSuggestions']['add'](_0x52e9ff);}},{'priority':'low'});const _0x4f89e3=(_0x260770,_0x44871b)=>{let _0x5db9ba=!0x1;const _0x41a07a=_0x44871b['createRangeOn'](_0x260770),_0x4f7da6=_0x260770['findAncestor']('table'),_0x43ea56=_0x39d684['getCellLocation'](_0x260770);for(const _0x5770d5 of this['_tableSuggestions']){const _0x4ad45a=_0x5770d5['subType'],_0x4b0747=_0x4ad45a['startsWith']('tablePaste'),_0x43a707=_0x4ad45a['substr'](_0x4b0747?0xa:0x5),_0x2a8044=_0x43a707['toLowerCase'](),_0x463661=_0x2a8044['substr'](0x0,0x3)+'span',_0x519636='min'+_0x43a707,_0x578b94='max'+_0x43a707;if(!_0x5770d5['isInContent'])continue;if(_0x4f7da6!=_0x5770d5['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x5770d5['isIntersectingWithRange'](_0x41a07a))continue;const _0x331801=_0x260770['hasAttribute'](_0x463661)?_0x260770['getAttribute'](_0x463661)-0x1:0x0,_0xa1306d=this['_getSuggestionCoords'](_0x5770d5),_0x3d7ddd=_0xa1306d[_0x519636],_0x3f5531=_0xa1306d[_0x578b94];_0x3d7ddd<=_0x43ea56[_0x2a8044]&&_0x43ea56[_0x2a8044]+_0x331801<=_0x3f5531&&(_0x5770d5['addRange'](_0x41a07a),_0x5db9ba=!0x0);}return _0x5db9ba;};_0xa0331c['model']['document']['registerPostFixer'](_0x73767e=>{let _0x26b878=!0x1;for(const _0xc4a03a of _0xa0331c['model']['document']['differ']['getChanges']())if('insert'==_0xc4a03a['type']){if('tableRow'==_0xc4a03a['name']){for(const _0x202d54 of _0xc4a03a['position']['nodeAfter']['getChildren']())_0x26b878=_0x26b878||_0x4f89e3(_0x202d54,_0x73767e);}else'tableCell'==_0xc4a03a['name']&&(_0x26b878=_0x26b878||_0x4f89e3(_0xc4a03a['position']['nodeAfter'],_0x73767e));}return _0x26b878;});}['_getSuggestionCoords'](_0x4a3296){return this['_getCoordsForCells'](_0x4a3296['getRanges']()['map'](_0x41bb26=>_0x41bb26['start']['nodeAfter']));}}function Ee(_0xef91ff){return Array['from'](new Set(_0xef91ff)['values']());}class St extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x502c8b=this['editor'],_0x29c53f=_0x502c8b['model']['document']['selection'],_0x2acf89=_0x502c8b['locale'];if(!_0x502c8b['plugins']['has']('TableEditing'))return;const _0x5da756=_0x502c8b['plugins']['get']('TrackChangesEditing'),_0x20b166=_0x502c8b['plugins']['get']('TableUtils'),_0x4375de=_0x502c8b['plugins']['get'](jt);_0x4375de['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x5da756['enableCommand']('mergeTableCells',()=>{const _0x6cb5b5=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection']);_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat'](_0x6cb5b5,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x502c8b['commands']['get']('mergeTableCells')['on']('execute',(_0x53cf4f,_0x28eb4c)=>{_0x502c8b['commands']['get']('trackChanges')['value']&&(_0x28eb4c['length']>0x0&&_0x28eb4c[_0x28eb4c['length']-0x1]&&_0x28eb4c[_0x28eb4c['length']-0x1]['forceDefaultExecution']||_0x5da756['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x53cf4f['stop']());},{'priority':'highest'});for(const _0x1c00cc of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x5a734d=_0x502c8b['commands']['get'](_0x1c00cc);_0x5da756['enableCommand'](_0x1c00cc,()=>{const _0x584d2f=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x29ce8b=>_0x29ce8b['is']('element','tableCell')),_0x4b2663=_0x5a734d['value'];_0x502c8b['model']['change'](()=>{_0x5da756['markMultiRangeBlockFormat']([_0x584d2f,_0x4b2663],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x56f32d of['splitTableCellVertically','splitTableCellHorizontally']){const _0x56d0f5=_0x502c8b['commands']['get'](_0x56f32d);_0x5da756['enableCommand'](_0x56f32d,()=>{const _0x57fd74=_0x20b166['getSelectionAffectedTableCells'](_0x502c8b['model']['document']['selection'])[0x0],_0x2fe099=_0x57fd74['findAncestor']('table'),{column:_0x5545d7,row:_0x398664}=_0x20b166['getCellLocation'](_0x57fd74);let _0x3c9109=[];if('horizontally'==_0x56d0f5['direction']){const _0x11059d=_0x20b166['createTableWalker'](_0x2fe099,{'startRow':_0x398664,'endRow':_0x398664,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x11059d)['map'](_0x285481=>_0x285481['cell']);}else{const _0x35487f=_0x20b166['createTableWalker'](_0x2fe099,{'column':_0x5545d7,'includeAllSlots':!0x0});_0x3c9109=Array['from'](_0x35487f)['map'](_0x4e6a8a=>_0x4e6a8a['cell']);}_0x502c8b['model']['change'](_0x3ddc50=>{_0x5da756['markBlockFormat'](_0x3ddc50['createRangeOn'](_0x57fd74),{'commandName':_0x56f32d,'commandParams':[]},_0x3c9109,_0x56f32d);});});}_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x12b9a8=>{if('formatBlock'!=_0x12b9a8['type']&&'formatInline'!=_0x12b9a8['type'])return;const {data:_0x47535b}=_0x12b9a8;return _0x47535b&&'mergeTableCells'==_0x47535b['commandName']?{'type':'format','content':o(_0x2acf89,'*Merge\x20cells*')}:void 0x0;}),_0x5da756['descriptionFactory']['registerDescriptionCallback'](_0x33634b=>{if('formatBlock'!=_0x33634b['type']&&'formatInline'!=_0x33634b['type'])return;const {data:_0x5cba90}=_0x33634b;return _0x5cba90?'splitTableCellVertically'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x5cba90['commandName']?{'type':'format','content':o(_0x2acf89,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x3572b3=_0x4375de['_acceptFormatSuggestionCallbackFactory']();for(const _0x4e5cf4 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x4e5cf4,'accept',_0x3572b3);for(const _0x5a1637 of['splitTableCellVertically','splitTableCellHorizontally'])_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5a1637,'accept',_0x3572b3);_0x5da756['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3fbd55=>{_0x502c8b['model']['change'](_0x3ce229=>{const _0x47054a=Array['from'](_0x29c53f['getRanges']())['map'](_0x2f5fe0=>_0xe90ba7['fromRange'](_0x2f5fe0));_0x3ce229['setSelection'](_0x3fbd55),_0x502c8b['commands']['get']('mergeTableCells')['refresh'](),_0x502c8b['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5dae7f=_0x47054a['filter'](_0x41f295=>'$graveyard'!=_0x41f295['root']['rootName']);_0x5dae7f['length']>0x0&&_0x3ce229['setSelection'](_0x5dae7f);for(const _0x1a9619 of _0x47054a)_0x1a9619['detach']();});});for(const _0x56538f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0xbd8fcc=_0x502c8b['commands']['get'](_0x56538f);_0xbd8fcc['on']('set:isEnabled',(_0x2c8f28,_0x183aec,_0x1ed305)=>{if(_0x1ed305){const _0x487e91=_0x502c8b['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x436afe=>_0x436afe['is']('element','tableCell'));this['_areMergableCells'](_0xbd8fcc['value'],_0x487e91)||(_0x2c8f28['return']=!0x1,_0x2c8f28['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x31f066=this['editor']['commands']['get']('mergeTableCells'),_0x59e933=this['editor']['plugins']['get']('TableUtils');if(!_0x31f066['isEnabled'])return!0x1;const _0x9516ab=_0x59e933['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x3d650a of _0x9516ab)for(const _0x447e40 of _0x9516ab)if(_0x3d650a!=_0x447e40&&!this['_areMergableCells'](_0x3d650a,_0x447e40))return!0x1;return!0x0;}['_areMergableCells'](_0xe9aba5,_0x4f7c56){const _0x4709f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3b07f8=this['editor']['model']['createRangeOn'](_0xe9aba5),_0x173cbf=this['editor']['model']['createRangeOn'](_0x4f7c56),_0x2edf07=new Set(),_0x16459e=new Set();for(const _0x4d2b5b of _0x4709f3['getSuggestions']())if(('insertion'==_0x4d2b5b['type']||'deletion'==_0x4d2b5b['type']||'mergeTableCells'==_0x4d2b5b['subType'])&&_0x4d2b5b['isInContent']){for(const _0x30c728 of _0x4d2b5b['getRanges']())_0x30c728['containsRange'](_0x3b07f8,!0x0)&&_0x2edf07['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']),_0x30c728['containsRange'](_0x173cbf,!0x0)&&_0x16459e['add'](_0x4d2b5b['type']+':'+_0x4d2b5b['author']['id']);}if(_0x2edf07['size']!=_0x16459e['size'])return!0x1;for(const _0x515f58 of _0x2edf07)if(!_0x16459e['has'](_0x515f58))return!0x1;return!0x0;}}class At extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x306620=this['editor'];if(!_0x306620['plugins']['has']('TableEditing'))return;const _0x53af63=_0x306620['locale'],_0xc19e21=_0x306620['plugins']['get']('TrackChangesEditing');_0xc19e21['enableDefaultAttributesIntegration']('setTableRowHeader'),_0xc19e21['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0xc19e21['registerBlockAttribute']('headingRows'),_0xc19e21['registerBlockAttribute']('headingColumns'),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x53af63,'FORMAT_HEADER_ROW')),_0xc19e21['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x53af63,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f22c5=this['editor']['plugins']['get']('TrackChangesEditing'),_0x1e161b=this['editor']['plugins']['get']('TableUtils'),_0x203546=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x2c9a77({showActiveMarker:_0x3b6fc0=!0x0,setDataAttribute:_0x15c6e8=!0x0}={}){return(_0x3faf35,_0x38aae5,_0x50a90d)=>{const {type:_0x27b19f,id:_0x2490d5}=_0x1f22c5['_splitMarkerName'](_0x38aae5['markerName']),_0xf66105=_0x1f22c5['getSuggestion'](_0x2490d5),_0x2a74b0=_0xf66105['data'];if('formatBlock'!=_0xf66105['type']||!_0x2a74b0||'setTableColumnHeader'!=_0x2a74b0['commandName'])return;if(_0x38aae5['item'])return void _0x3faf35['stop']();if(!_0x50a90d['consumable']['consume'](_0x38aae5['markerRange'],_0x3faf35['name']))return;const _0x10b3ab=_0x38aae5['markerRange']['start']['nodeAfter'],_0x65616e=_0x38aae5['markerRange']['end']['nodeBefore'],_0x5bf54b=_0x10b3ab['parent']['parent'],{column:_0x1183ae}=_0x1e161b['getCellLocation'](_0x10b3ab),{column:_0x24ec12}=_0x1e161b['getCellLocation'](_0x65616e);for(let _0x4d8a87=_0x1183ae;_0x4d8a87<=_0x24ec12;_0x4d8a87++){const _0x1d269d=_0x1e161b['createTableWalker'](_0x5bf54b,{'column':_0x4d8a87,'includeAllSlots':!0x1});for(const _0x5c95ea of _0x1d269d){const _0x2db28c=_0x5c95ea['cell'],_0x1cf00d=_0x50a90d['mapper']['toViewElement'](_0x2db28c);_0x50a90d['writer']['addClass']('ck-suggestion-marker-'+_0x27b19f,_0x1cf00d),_0x15c6e8&&_0x50a90d['writer']['setAttribute']('data-suggestion',_0x2490d5,_0x1cf00d),_0x50a90d['mapper']['bindElementToMarker'](_0x1cf00d,_0x38aae5['markerName']),_0x3b6fc0&&(_0x1f22c5['activeMarkers']['includes'](_0x38aae5['markerName'])?_0x50a90d['writer']['addClass']('ck-suggestion-marker--active',_0x1cf00d):_0x50a90d['writer']['removeClass']('ck-suggestion-marker--active',_0x1cf00d));}}};}_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x203546),_0x1f22c5['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x203546),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x2c9a77(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x4d6719,_0x16e560,_0xba1eae)=>{_0xba1eae['options']['showSuggestionHighlights']&&_0x2c9a77({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x4d6719,_0x16e560,_0xba1eae);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x234a0a,_0x299d0e,_0x37c08e)=>{const {type:_0x5409c2,id:_0x1fcedc}=_0x1f22c5['_splitMarkerName'](_0x299d0e['markerName']),_0x284deb=_0x1f22c5['getSuggestion'](_0x1fcedc),_0x574b31=_0x284deb['data'];if('formatBlock'!=_0x284deb['type']||!_0x574b31||'setTableColumnHeader'!=_0x574b31['commandName'])return;const _0x4647fd=_0x37c08e['mapper']['markerNameToElements'](_0x299d0e['markerName']);if(_0x4647fd){for(const _0x3f1c2a of _0x4647fd)_0x37c08e['writer']['removeClass']('ck-suggestion-marker-'+_0x5409c2,_0x3f1c2a),_0x37c08e['writer']['removeClass']('ck-suggestion-marker--active',_0x3f1c2a),_0x37c08e['writer']['removeAttribute']('data-suggestion',_0x3f1c2a),_0x37c08e['mapper']['unbindElementFromMarkerName'](_0x3f1c2a,_0x299d0e['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1214c5=this['editor'],_0x3aece3=_0x1214c5['locale'];function _0x51dc36(_0x2840d6){return{'type':'format','content':o(_0x3aece3,'*Format:*\x20%0',_0x2840d6)};}_0x1214c5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x42b165=>{if('formatBlock'!=_0x42b165['type'])return;const {data:_0x569e41}=_0x42b165;if(_0x569e41){if('setTableRowHeader'==_0x569e41['commandName']){const _0x5b8865=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5b8865?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x569e41['commandName']){const _0x5e8927=_0x569e41['commandParams'][0x0]['forceValue'];return _0x51dc36(o(_0x3aece3,_0x5e8927?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x1b5f1a=>[_0x1b5f1a,null]));class It extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x2c4e40=this['editor'];if(!_0x2c4e40['plugins']['has']('TableClipboard'))return;const _0x591597=_0x2c4e40['plugins']['get']('TrackChangesEditing'),_0xff45f=_0x2c4e40['plugins']['get']('TableUtils'),_0x40d093=_0x2c4e40['plugins']['get'](jt),_0x424caf=_0x2c4e40['plugins']['get']('TableClipboard');_0x40d093['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x2c4e40['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x2c4e40['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x186c32=null;_0x2c4e40['model']['on']('insertContent',(_0x3324bc,_0x5b6f33)=>{const [_0x58d92e,_0x4455fd]=_0x5b6f33,_0x14d0f3=_0x5b6f33[_0x5b6f33['length']-0x1];_0x14d0f3&&_0x14d0f3['forceDefaultExecution']||_0x591597['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x53c635,_0xe91c07,_0x14a3db,_0x452772,_0x340f7c){if(_0xe91c07&&!_0xe91c07['is']('documentSelection'))return!0x1;const _0x153852=_0x340f7c['getTableIfOnlyTableInContent'](_0x53c635,_0x14a3db);if(!_0x153852||!he(_0x153852,void 0x0,_0x452772))return!0x1;const _0x179ad0=_0x452772['getSelectionAffectedTableCells'](_0x14a3db['document']['selection']);if(!_0x179ad0['length'])return!0x1;const _0x266fda=_0x179ad0[0x0]['findAncestor']('table'),_0x2fe6fa=_0x452772['getRowIndexes'](_0x179ad0),_0x3dc187=_0x452772['getColumnIndexes'](_0x179ad0),_0x59b592={'startRow':_0x2fe6fa['first'],'endRow':_0x2fe6fa['last'],'startColumn':_0x3dc187['first'],'endColumn':_0x3dc187['last']};return 0x1==_0x179ad0['length']&&(_0x59b592['endRow']+=_0x452772['getRows'](_0x153852)-0x1,_0x59b592['endColumn']+=_0x452772['getColumns'](_0x153852)-0x1),he(_0x266fda,_0x59b592,_0x452772);}(_0x58d92e,_0x4455fd,_0x2c4e40['model'],_0xff45f,_0x424caf)&&(_0x3324bc['stop'](),_0x186c32={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x2c4e40['model']['change'](()=>{_0x2c4e40['model']['insertContent'](_0x5b6f33[0x0],_0x5b6f33[0x1],_0x5b6f33[0x2],{'forceDefaultExecution':!0x0});const _0x1a89ab=_0x5ed2a0(),{rowInsertionRanges:_0x14b0e6,columnInsertionRanges:_0x40541f,insertionRanges:_0x2f7970,deletionRanges:_0x452da1,cells:_0x3ad7c2}=_0x186c32;_0x14b0e6['length']&&_0x591597['markMultiRangeInsertion'](_0x14b0e6,'tablePasteRow',{'tablePasteChainId':_0x1a89ab}),_0x40541f['length']&&_0x591597['markMultiRangeInsertion'](_0x40541f,'tablePasteColumn',{'tablePasteChainId':_0x1a89ab}),_0x2f7970['length']&&(_0x591597['markMultiRangeInsertion'](_0x2f7970,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x2f7970['forEach'](_0x4a2235=>_0x4a2235['detach']?.())),_0x452da1['length']&&(_0x591597['markMultiRangeDeletion'](_0x452da1,'tablePaste',{'tablePasteChainId':_0x1a89ab,'skipNestingCheck':!0x0}),_0x452da1['forEach'](_0x5bffde=>_0x5bffde['detach']?.()));const _0x5825ec=_0x591597['markMultiRangeBlockFormat'](_0x3ad7c2['map'](({element:_0x2d3c04})=>_0x2d3c04),{'formatGroupId':_0x5ed2a0()},[],'tablePasteCell',{'tablePasteChainId':_0x1a89ab});if(_0x5825ec){const _0xe56f62=_0x5825ec['getMarkers'](),_0x3bda8a=[];for(const {element:_0x432a4b,attributes:_0x42e73a}of _0x3ad7c2){if(!_0x42e73a)continue;const _0x50c2f1=_0x2c4e40['model']['createRangeOn'](_0x432a4b),_0x1d1a67=_0xe56f62['find'](_0x290c2b=>_0x290c2b['getRange']()['isEqual'](_0x50c2f1));_0x1d1a67&&_0x3bda8a['push']([_0x1d1a67['name'],_0x42e73a]);}_0x3bda8a['length']&&_0x5825ec['setAttribute']('markerAttributes',Object['fromEntries'](_0x3bda8a));}_0x186c32=null;}));},{'priority':_0x2ff03c['high']+0xa}),_0x2c4e40['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x4d8114,_0x37e04d)=>{const [_0x49c9bf,_0x17dc36,,_0x172e6c]=_0x37e04d;if(!_0x186c32)return;_0x4d8114['stop']();const _0x5b087a=_0x49c9bf['cell'],_0x200d9a=_0x17dc36,_0x1a2564=Pe(_0x5b087a),_0x43b7cb=Pe(_0x200d9a);_0x4d8114['return']=_0x5b087a;let _0x29b144=null,_0x5ef113=null;if(_0x43b7cb||_0x1a2564){if(_0x1a2564&&!_0x43b7cb){_0x172e6c['remove'](_0x5b087a['getChild'](0x0));for(const _0x4bbbcd of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x4bbbcd,_0x5b087a,'end');const _0x1732dc=_0x186c32['rowInsertionIndexes']['includes'](_0x49c9bf['row']),_0x26afa1=_0x186c32['columnInsertionIndexes']['includes'](_0x49c9bf['column']);_0x1732dc||_0x26afa1||(_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeIn'](_0x5b087a)));}else _0x43b7cb&&!_0x1a2564&&(_0x5ef113=_0x172e6c['createRangeIn'](_0x5b087a));}else{const _0x2d094e=_0x172e6c['createElement']('tableCellSuggestion'),_0x3cc51c=_0x172e6c['createElement']('tableCellSuggestion');_0x172e6c['wrap'](_0x172e6c['createRangeIn'](_0x5b087a),_0x3cc51c),_0x172e6c['insert'](_0x2d094e,_0x5b087a,0x0);for(const _0x5296c6 of Array['from'](_0x200d9a['getChildren']()))_0x172e6c['insert'](_0x5296c6,_0x2d094e,'end');_0x29b144=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x2d094e)),_0x5ef113=_0xe90ba7['fromRange'](_0x172e6c['createRangeOn'](_0x3cc51c));}const _0x4f10ed=Array['from'](_0x200d9a['getAttributes']())['filter'](([_0x2b3d33])=>ge['includes'](_0x2b3d33));_0x186c32['cells']['push']({'element':_0x5b087a,'attributes':_0x4f10ed['length']?Object['fromEntries'](_0x4f10ed):null}),_0x29b144&&_0x186c32['insertionRanges']['push'](_0x29b144),_0x5ef113&&_0x186c32['deletionRanges']['push'](_0x5ef113);},{'priority':'high'}),_0xff45f['on']('insertColumns',(_0x49a374,_0x221a68)=>{const [_0x17d6b4,_0x52ba0e={}]=_0x221a68;if(!_0x186c32)return;const _0x2fc687=_0x52ba0e['at']||0x0,_0x4c7749=_0x52ba0e['columns']||0x1;_0x186c32['columnInsertionIndexes']=new Array(_0x4c7749)['fill'](_0x2fc687)['map']((_0x596ebe,_0x4a355d)=>_0x596ebe+_0x4a355d);for(const {cell:_0x3ee559}of _0xff45f['createTableWalker'](_0x17d6b4,{'startColumn':_0x2fc687,'endColumn':_0x2fc687+_0x4c7749-0x1}))_0x186c32['columnInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x3ee559));},{'priority':'low'}),_0xff45f['on']('insertRows',(_0x290bd3,_0x4b4e57)=>{const [_0xd26695,_0x42694f={}]=_0x4b4e57;if(!_0x186c32)return;const _0x144abd=_0x42694f['at']||0x0,_0x42f588=_0x42694f['rows']||0x1;_0x186c32['rowInsertionIndexes']=new Array(_0x42f588)['fill'](_0x144abd)['map']((_0x2c4de0,_0x1607c3)=>_0x2c4de0+_0x1607c3);for(const {cell:_0x32417c}of _0xff45f['createTableWalker'](_0xd26695,{'startRow':_0x144abd,'endRow':_0x144abd+_0x42f588-0x1}))_0x186c32['rowInsertionRanges']['push'](_0x2c4e40['model']['createRangeOn'](_0x32417c));},{'priority':'low'}),_0x591597['descriptionFactory']['registerDescriptionCallback'](_0x31c5b8=>{if(_0x31c5b8['subType']&&_0x31c5b8['subType']['startsWith']('tablePaste'))return _0x31c5b8['previous']?{}:{'type':'insertion','content':o(_0x2c4e40['locale'],'*Replace\x20table\x20cells*')};});const _0x3e8574=()=>!0x1;for(const _0x400a52 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x591597['_suggestionFactory']['registerCustomCallback']('insertion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('deletion',_0x400a52,'join',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x400a52,'join',_0x3e8574);_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x3e8574),_0x591597['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x38277b,_0x22302a,_0x5d3d12)=>{const _0x1ea877=_0x38277b['map'](_0x381466=>_0x381466['getContainedElement']())['filter'](_0x5ba569=>_0x5ba569),_0x19b462=new Map(_0x1ea877['map'](_0xd95a00=>[_0xd95a00,null]));if(_0x186c32){for(const {element:_0x25b51b,attributes:_0x228447}of _0x186c32['cells'])_0x228447&&_0x19b462['set'](_0x25b51b,_0x228447);}else{if(_0x5d3d12&&_0x5d3d12['markerAttributes'])for(const [_0x1ad102,_0x1519e5]of Object['entries'](_0x5d3d12['markerAttributes'])){const _0x1a963d=_0x2c4e40['model']['markers']['get'](_0x1ad102),_0x32c3ac=_0x1a963d?_0x1a963d['getRange']()['getContainedElement']():null;_0x32c3ac&&_0x19b462['set'](_0x32c3ac,_0x1519e5);}}_0x2c4e40['model']['change'](_0xf5e6d3=>{for(const [_0x174f11,_0x1dc3ba]of _0x19b462)_0xf5e6d3['setAttributes']({...Ce,..._0x1dc3ba},_0x174f11);});});const _0x4b6721=(_0x406862,_0x1d6a20)=>{_0x591597['_suggestionFactory']['registerCustomCallback'](_0x406862,'tablePaste',_0x1d6a20,(_0x5489a0,_0x4612e0,_0x13cff9)=>{_0x2c4e40['model']['change'](_0x4f1035=>{const _0x331e27=[];for(const _0x274d07 of _0x5489a0){const _0x3d1b9b=_0x274d07['start']['nodeAfter'];_0x3d1b9b['is']('element','tableCellSuggestion')&&_0x331e27['push'](_0x3d1b9b);}_0x591597['_suggestionFactory']['getSuggestionCallback'](_0x406862,null,_0x1d6a20)(_0x5489a0,_0x4612e0,_0x13cff9);for(const _0x73f2cf of _0x331e27)'$graveyard'!=_0x73f2cf['root']['rootName']&&_0x4f1035['unwrap'](_0x73f2cf);});});};_0x4b6721('insertion','accept'),_0x4b6721('insertion','discard'),_0x4b6721('deletion','accept'),_0x4b6721('deletion','discard'),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x369799=>{const _0x3c65e5=_0x369799['map'](_0x511233=>_0x511233['getContainedElement']()),_0xebe819=_0x3c65e5[0x0]['findAncestor']('table'),{minRow:_0x2348eb,maxRow:_0x4fbc87}=_0x40d093['_getCoordsForCells'](_0x3c65e5);_0xff45f['removeRows'](_0xebe819,{'at':_0x2348eb,'rows':_0x4fbc87-_0x2348eb+0x1});}),_0x591597['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0xe7fb04=>{const _0x4ec9b0=_0xe7fb04['map'](_0x5a3f93=>_0x5a3f93['getContainedElement']()),_0x322a50=_0x4ec9b0[0x0]['findAncestor']('table'),{minColumn:_0xd21a7d,maxColumn:_0x268198}=_0x40d093['_getCoordsForCells'](_0x4ec9b0);_0xff45f['removeColumns'](_0x322a50,{'at':_0xd21a7d,'columns':_0x268198-_0xd21a7d+0x1});});const _0x4437ca=(_0x54454b,_0x580abe)=>{if(!_0x580abe['subType']||!_0x580abe['subType']['startsWith']('tablePaste'))return;const _0x1a05ab=_0x580abe['attributes']['tablePasteChainId'],_0x4619c0=_0x591597['getSuggestions']()['filter'](_0x1dcfb7=>_0x1dcfb7['isInContent']&&_0x1dcfb7['attributes']&&_0x1dcfb7['attributes']['tablePasteChainId']==_0x1a05ab);_0x4619c0['length']&&_0x580abe['getAllAdjacentSuggestions']()['length']!=_0x4619c0['length']&&_0x4619c0['reduce']((_0x2ed556,_0x379c02)=>(_0x2ed556['next']=_0x379c02,_0x379c02['previous']=_0x2ed556,_0x379c02));};function _0x1adb9d(_0x43dfcc,_0x3bc135=!0x0){const {id:_0x2be2a6}=_0x591597['_splitMarkerName'](_0x43dfcc['markerName']),_0x2a82ab=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x38a570=_0x591597['activeMarkers']['includes'](_0x43dfcc['markerName']);return _0x38a570&&_0x2a82ab['push']('ck-suggestion-marker--active'),{'classes':_0x2a82ab,'attributes':{'data-suggestion':_0x2be2a6},'priority':_0x38a570&&_0x3bc135?0xbc2:0xbb8};}_0x591597['on']('suggestionLoaded',_0x4437ca,{'priority':'high'}),_0x591597['on']('suggestionUnloaded',_0x4437ca,{'priority':'high'}),_0x2c4e40['model']['document']['registerPostFixer'](()=>{let _0x253684=!0x1;const _0xe84a6e=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3b668a,data:_0x2912d8}of _0xe84a6e){const {group:_0x1d0a7c,type:_0x367232,id:_0x4f9de8}=_0x591597['_splitMarkerName'](_0x3b668a);if('suggestion'!=_0x1d0a7c||'deletion'!=_0x367232||_0x2912d8['oldRange'])continue;if(!_0x591597['hasSuggestion'](_0x4f9de8))continue;const _0x446a70=_0x591597['getSuggestion'](_0x4f9de8)['getRanges'](),_0x1c3c54=_0x2c4e40['plugins']['get']('Users')['me'];for(const _0x4d4ca7 of _0x591597['getSuggestions']()){if(!_0x4d4ca7['isInContent']||_0x4d4ca7['author']!=_0x1c3c54)continue;if('formatBlock'!=_0x4d4ca7['type']||'tablePasteCell'!=_0x4d4ca7['subType'])continue;if(_0x4d4ca7['getRanges']()['every'](_0x1131f2=>_0x446a70['some'](_0x3b94bb=>_0x3b94bb['containsRange'](_0x1131f2,!0x0)))){for(const _0x2aabfa of _0x4d4ca7['getAllAdjacentSuggestions']())_0x2aabfa['isInContent']&&(_0x2aabfa['discard'](),_0x253684=!0x0);}}}return _0x253684;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x524e35=>{const _0x3b12fe=_0x2c4e40['commands']['get']('redo');if(!_0x3b12fe||!_0x3b12fe['_createdBatches']['has'](_0x524e35['batch']))return!0x1;let _0x3d5ce0=!0x1;const _0x247210=_0x2c4e40['plugins']['get']('Users')['me'],_0x1b44e7=_0x2c4e40['model']['document']['differ']['getChanges'](),_0x31ec6c=Array['from'](_0x2c4e40['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x32db1d,data:_0x5be06d})=>{const {group:_0x2264e9,subType:_0x45a0dc,authorId:_0x254450}=_0x591597['_splitMarkerName'](_0x32db1d);return'suggestion'==_0x2264e9&&'tablePaste'==_0x45a0dc&&_0x254450==_0x247210['id']&&!_0x5be06d['oldRange'];});for(const _0xd9a2e0 of _0x1b44e7){if('insert'!=_0xd9a2e0['type']||'tableCellSuggestion'!=_0xd9a2e0['name']||0x1!=_0xd9a2e0['length'])continue;const _0x253a2b=_0x524e35['createRange'](_0xd9a2e0['position'],_0xd9a2e0['position']['getShiftedBy'](0x1));if(!_0x31ec6c['find'](({data:_0xd32a9})=>_0xd32a9['newRange']['isEqual'](_0x253a2b))){for(const {name:_0x2ba2a8,data:_0x28fc33}of _0x31ec6c)if(_0x253a2b['containsRange'](_0x28fc33['newRange'])){_0x524e35['updateMarker'](_0x2ba2a8,{'range':_0x253a2b}),_0x3d5ce0=!0x0;break;}}}return _0x3d5ce0;}),_0x2c4e40['model']['document']['registerPostFixer'](_0x497c15=>{let _0x13add2=!0x1;const _0x1f6761=_0x2c4e40['plugins']['get']('Users')['me'],_0x41d15d=_0x591597['getSuggestions']()['filter'](_0x2106e5=>_0x2106e5['isInContent']&&_0x2106e5['author']==_0x1f6761),_0x315a99=new Set(),_0x111398=new Set();for(const _0x3b6162 of _0x41d15d)if('tablePaste'==_0x3b6162['subType'])for(const _0x5d6983 of _0x3b6162['getMarkers']()){const _0x2f935e=_0x5d6983['getRange']()['getContainedElement']();if(_0x2f935e){if(_0x2f935e['is']('element','tableCellSuggestion')&&Pe(_0x2f935e)){_0x3b6162['removeMarker'](_0x5d6983['name']),_0x315a99['add'](_0x2f935e),_0x13add2=!0x0;const _0x510285=_0x2f935e['nextSibling'],_0x1339c5=_0x2f935e['previousSibling'],_0x375deb=_0x510285&&_0x510285['is']('element','tableCellSuggestion'),_0x1db635=_0x1339c5&&_0x1339c5['is']('element','tableCellSuggestion');_0x375deb&&!_0x315a99['has'](_0x510285)&&_0x111398['add'](_0x510285),_0x1db635&&!_0x315a99['has'](_0x1339c5)&&_0x111398['add'](_0x1339c5);}else _0x2f935e['is']('element','paragraph')&&_0x2f935e['isEmpty']&&(_0x3b6162['removeMarker'](_0x5d6983['name']),_0x13add2=!0x0);}}else{if('tablePasteCell'==_0x3b6162['subType']){if(!_0x3b6162['attributes']||!_0x3b6162['attributes']['tablePasteChainId'])continue;const _0x1e655c=_0x3b6162['attributes']['markerAttributes'];if(_0x1e655c&&Object['keys'](_0x1e655c)['length'])continue;const _0x407bfa=_0x3b6162['attributes']['tablePasteChainId'];let _0x4d16fd=!0x0,_0x50cc74=!0x0;for(const _0x43ed24 of _0x41d15d)if(_0x43ed24['subType']&&_0x43ed24['subType']['startsWith']('tablePaste')){if(!_0x43ed24['attributes']['tablePasteChainId']){_0x50cc74=!0x1;break;}if(_0x43ed24['id']!=_0x3b6162['id']&&_0x43ed24['attributes']['tablePasteChainId']==_0x407bfa){_0x4d16fd=!0x1;break;}}_0x50cc74&&_0x4d16fd&&(_0x3b6162['removeMarkers'](),_0x13add2=!0x0);}}for(const _0x55dfc3 of _0x315a99)_0x497c15['remove'](_0x55dfc3);for(const _0x3aadf3 of _0x111398)_0x497c15['unwrap'](_0x3aadf3);return _0x13add2;}),_0x2c4e40['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x34e1ca,_0x3e30a5)=>_0x1adb9d(_0x34e1ca),'converterPriority':'high'}),_0x2c4e40['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x38bbbe,_0x563fcc)=>_0x563fcc['options']['showSuggestionHighlights']?_0x1adb9d(_0x38bbbe,!0x1):null,'converterPriority':'high'});const _0x353837=_0x2c4e40['editing']['view'];this['listenTo'](_0x353837['document'],'clipboardOutput',(_0x26a76c,_0x253d9e)=>{const _0x5b4e45=[];for(const _0x4433d6 of _0x353837['createRangeIn'](_0x253d9e['content'])['getItems']())_0x4433d6['is']('element','suggestion-td')&&_0x5b4e45['push'](_0x4433d6);_0x353837['change'](_0x403618=>{for(const _0x3b47db of _0x5b4e45)_0x403618['move'](_0x403618['createRangeIn'](_0x3b47db),_0x403618['createPositionBefore'](_0x3b47db)),_0x403618['remove'](_0x3b47db);});});}}function Pe(_0x11dd91){if(_0x11dd91['isEmpty'])return!0x0;const _0x2dbeae=_0x11dd91['getChild'](0x0);return _0x2dbeae['is']('element','paragraph')&&_0x2dbeae['isEmpty'];}function he(_0x21d5a7,_0x581df4={},_0x5b801f){for(const {isAnchor:_0x1695b4,cellHeight:_0x9b063,cellWidth:_0x248339}of _0x5b801f['createTableWalker'](_0x21d5a7,{'includeAllSlots':!0x0,..._0x581df4}))if(!_0x1695b4||0x1!=_0x9b063||0x1!=_0x248339)return!0x1;return!0x0;}class vt extends _0x4104d6{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x23becc=this['editor']['plugins']['get']('TrackChangesEditing');_0x23becc['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x23becc['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x23becc['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x23becc['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x7c37af,_0x5abe77){const _0x2ee95a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2202cc=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x1bdf25=_0x5abe77['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xee2678=_0x2202cc['getColumnGroupElement'](_0x1bdf25);let _0x5ebc5c=_0xee2678?_0x2202cc['getTableColumnsWidths'](_0xee2678):null,_0x245f32=_0x1bdf25['getAttribute']('tableWidth')||null;const _0x2297c0=_0x5abe77['tableWidth']||_0x245f32,_0x1c936a=_0x5abe77['columnWidths']||_0x5ebc5c,_0x281892=this['editor']['plugins']['get']('Users')['me'];for(const _0x50db09 of _0x2ee95a['getSuggestions']()){const _0x289f9e=_0x50db09['getContainedElement']();if('resizeTable'===_0x50db09['subType']&&_0x289f9e===_0x1bdf25){_0x50db09['author']!==_0x281892&&_0x50db09['discard']();const _0x4379f6=_0x50db09['data']['commandParams'];_0x245f32=_0x4379f6[0x0]['tableWidth'],_0x5ebc5c=_0x4379f6[0x0]['columnWidths'];break;}}_0x7c37af({'table':_0x1bdf25,'tableWidth':_0x2297c0,'columnWidths':_0x1c936a}),_0x2ee95a['markBlockFormat'](_0x1bdf25,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x245f32,'columnWidths':_0x5ebc5c}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x16b233){if('formatBlock'!=_0x16b233['type']&&'formatInline'!=_0x16b233['type'])return;const {data:_0x3f5da2}=_0x16b233;if(_0x3f5da2&&'resizeTable'===_0x3f5da2['formatGroupId']){const _0xf9bc6f='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0xf9bc6f)};}}}class Ct extends _0x4104d6{['afterInit'](){const _0x3b2a04=this['editor'];_0x3b2a04['plugins']['has']('Template')&&_0x3b2a04['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x4104d6{['afterInit'](){const _0x54c1f7=this['editor'];if(!_0x54c1f7['commands']['get']('insertTableOfContents'))return;_0x54c1f7['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x435712=_0x54c1f7['plugins']['get']('TrackChangesEditing'),_0x46d521=_0x54c1f7['locale'];_0x435712['descriptionFactory']['registerElementLabel']('tableOfContents',_0x3764d8=>o(_0x46d521,'ELEMENT_TABLE_OF_CONTENTS',_0x3764d8));}}class Dt extends _0x4104d6{['afterInit'](){const _0x1282a2=this['editor'];if(!_0x1282a2['plugins']['has']('Title'))return;const _0x5673fd=_0x1282a2['plugins']['get']('TrackChangesEditing');_0x5673fd['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x1282a2['locale'],'ELEMENT_TITLE')),_0x1282a2['model']['document']['registerPostFixer'](_0x14cfe1=>{let _0x421313=!0x1;const _0x300589=Array['from'](_0x1282a2['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x79589b,data:_0x56db02}of _0x300589){const {group:_0x393bb4}=_0x5673fd['_splitMarkerName'](_0x79589b);if('suggestion'!==_0x393bb4||!_0x56db02['newRange'])continue;const _0x3c4c1f=_0x56db02['newRange'],_0x1d9cc3=_0x3c4c1f['end']['nodeBefore'];if(!_0x1d9cc3||!_0x1d9cc3['is']('element','title-content'))continue;if(!_0x3c4c1f['start']['isTouching'](_0x3c4c1f['end']))continue;const _0x38b416=_0x1282a2['model']['schema']['getNearestSelectionRange'](_0x3c4c1f['end'],'forward');if(_0x38b416&&_0x38b416['isCollapsed']){const _0x47d13f=_0x14cfe1['createRange'](_0x3c4c1f['start'],_0x38b416['start']);_0x47d13f['isEqual'](_0x3c4c1f)||(_0x14cfe1['updateMarker'](_0x79589b,{'range':_0x47d13f}),_0x421313=!0x0);}_0x421313||(_0x14cfe1['removeMarker'](_0x79589b),_0x421313=!0x0);}return _0x421313;});}}class Nt extends _0x4104d6{['afterInit'](){const _0x382fb3=this['editor'],_0x26d2fc=_0x382fb3['plugins']['get']('TrackChangesEditing');_0x382fb3['plugins']['has']('UndoEditing')&&(_0x26d2fc['enableCommand']('undo'),_0x26d2fc['enableCommand']('redo'));}}class Mt extends _0x4104d6{static get['requires'](){return[jt];}['afterInit'](){const _0x1ef780=this['editor'];if(!_0x1ef780['plugins']['has']('TableCaptionEditing'))return;_0x1ef780['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x4104d6{['tableProperties'];['tableCellProperties'];constructor(_0x329f54){super(_0x329f54),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 _0x2010c8=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x17f843 of this['tableProperties'])_0x2010c8['enableCommand'](_0x17f843,(_0x5d06a4,_0x34b5d3)=>{const _0x28424b=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x17f843,[_0x28424b],this['tableProperties'],'tableProperties',_0x5d06a4,_0x34b5d3);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x343b12,_0x23db3d)=>this['handleDiscardAction'](this['tableProperties'],_0x343b12,_0x23db3d)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x2af99e of this['tableCellProperties'])_0x2010c8['enableCommand'](_0x2af99e,(_0xa16a58,_0x2694fe)=>{const _0x21fd8a=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x2af99e,_0x21fd8a,this['tableCellProperties'],'tableCellProperties',_0xa16a58,_0x2694fe);});_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x2010c8['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x5d29be,_0x14cc0f)=>this['handleDiscardAction'](this['tableCellProperties'],_0x5d29be,_0x14cc0f)),_0x2010c8['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x2010c8['descriptionFactory']['registerDescriptionCallback'](_0x43beca=>this['handleSuggestionDescription'](_0x43beca));}['_handlePropertyChange'](_0x3aef6b,_0x4f31ce,_0x166f31,_0x3e29de,_0x48ee30,_0x188d55){const _0x421d08=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x188d55['batch'],()=>{for(const _0x3fc3f2 of _0x4f31ce){if(this['_getSuggestion'](_0x3fc3f2,_0x3e29de))_0x48ee30(_0x188d55);else{const _0x57d1f2={};for(const _0x3cd1b1 of _0x166f31){const _0x1c6e25=_0x3fc3f2['getAttribute'](_0x3cd1b1);void 0x0!==_0x1c6e25&&(_0x57d1f2[_0x3cd1b1]=_0x1c6e25);}_0x48ee30(_0x188d55),_0x421d08['markBlockFormat'](_0x3fc3f2,{'commandParams':[_0x57d1f2]},[],_0x3e29de);}}});}['handleDiscardAction'](_0x2bfab4,_0x25841c,_0x330c7a){const _0x200312=_0x25841c[0x0]['start']['nodeAfter'],_0x125708=_0x330c7a['commandParams'][0x0];this['editor']['model']['change'](_0x463a05=>{for(const _0x16db1 of _0x2bfab4)void 0x0!==_0x125708[_0x16db1]?_0x463a05['setAttribute'](_0x16db1,_0x125708[_0x16db1],_0x200312):_0x463a05['removeAttribute'](_0x16db1,_0x200312);});}['handleSuggestionDescription'](_0x8356ae){if(_0x8356ae['data'])switch(_0x8356ae['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'](_0x22ac31,_0x23c280){const _0x2bd1a8=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x4c4422 of _0x2bd1a8['getSuggestions']({'skipNotAttached':!0x0})){const _0x5e5513=_0x4c4422['getContainedElement']();if(_0x4c4422['subType']===_0x23c280&&_0x5e5513===_0x22ac31)return _0x4c4422;}return null;}}const m='$elementName';class p extends _0x4104d6{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0xc2c087,_0x2fa12b,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x16788c){function _0x57a47b(_0x151868){return _0x151868['map'](_0x34028c=>String['fromCharCode'](_0x34028c))['join']('');}super(_0x16788c),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x55e4b9,_0x28c710,_0x178b1d,_0x414413)=>{this['_model']['change'](()=>{for(const _0x5d6d6a of[..._0x414413,..._0x178b1d])this['_model']['markers']['has'](_0x5d6d6a)&&_0x16788c['editing']['reconvertMarker'](_0x5d6d6a);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x16788c['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(),_0x16788c['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x16788c['config']['get']('trackChanges.trackFormatChanges'),_0x16788c['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x16788c['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x16788c,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x57a47b([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x57a47b([0x34,0x30,0x34,0x38,0x31,0x34,0x32,0x36]);}['init'](){const _0x307f20=this['editor'],_0x273c6f=(_0x53526c,_0x32ef88)=>{if('attribute'!=_0x53526c)return'ck-suggestion-marker-'+_0x53526c;const _0x8a95c1=_0x32ef88['split']('|')[0x0];return this['_isBlockAttribute'](_0x8a95c1)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x307f20['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x2789b6=>{const {id:_0xdd9142,type:_0xb88523,subType:_0x53cc48}=this['_splitMarkerName'](_0x2789b6['markerName']),_0x2b30a9=['ck-suggestion-marker',_0x273c6f(_0xb88523,_0x53cc48)];let _0x5c6158=0xbb8;return this['activeMarkers']['includes'](_0x2789b6['markerName'])&&(_0x2b30a9['push']('ck-suggestion-marker--active'),_0x5c6158=0xbc2),'deletion'==_0xb88523&&(_0x5c6158+=0x5),{'classes':_0x2b30a9,'attributes':{'data-suggestion':_0xdd9142},'priority':_0x5c6158};}}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2aa024=>{_0x2aa024['on']('addMarker:suggestion',(_0x1edd9e,_0x98a80c,_0x5d9cbf)=>{if(!_0x5d9cbf['options']['showSuggestionHighlights'])return;const _0x3c8e3c=_0x98a80c['item'];if(!_0x3c8e3c)return;const _0x41abae=_0x5d9cbf['mapper']['toViewElement'](_0x3c8e3c);_0x307f20['model']['schema']['isObject'](_0x3c8e3c)&&_0x41abae&&!_0x41abae['getCustomProperty']('widget')&&_0x41abae['is']('containerElement')&&_0x5f3b3a(_0x41abae,_0x5d9cbf['writer']);},{'priority':'high'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x427fd4,_0x422af1)=>{if(!_0x422af1['options']['showSuggestionHighlights'])return null;const {type:_0xd15ba6,subType:_0xca0a41}=this['_splitMarkerName'](_0x427fd4['markerName']);return{'classes':['ck-suggestion-marker',_0x273c6f(_0xd15ba6,_0xca0a41)],'priority':0xbb8};}});const _0x298f30=({showActiveMarkers:_0x13fa12=!0x0,isAttributeSuggestion:_0x275268=!0x1}={})=>(_0x5c6d53,_0x1d3578,_0x26d18b)=>{if(!_0x1d3578['item'])return;const {id:_0x1a0245}=this['_splitMarkerName'](_0x1d3578['markerName']);if(_0x275268){const _0x4809b7=this['_suggestions']['get'](_0x1a0245),_0x23766f=this['_getAttributeKey'](_0x4809b7);if(!this['_isBlockAttribute'](_0x23766f))return;}if(_0x1d3578['item']['is']('selection'))return void _0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);const _0x3ce81a=_0x26d18b['mapper']['toViewElement'](_0x1d3578['item']);if(_0x1d3578['item']['is']('element')&&_0x307f20['model']['schema']['isBlock'](_0x1d3578['item'])&&!_0x3ce81a['getCustomProperty']('addHighlight')){_0x26d18b['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x3ce81a),_0x26d18b['writer']['setAttribute']('data-suggestion',_0x1a0245,_0x3ce81a),_0x26d18b['mapper']['bindElementToMarker'](_0x3ce81a,_0x1d3578['markerName']),_0x13fa12&&(this['activeMarkers']['includes'](_0x1d3578['markerName'])?_0x26d18b['writer']['addClass']('ck-suggestion-marker--active',_0x3ce81a):_0x26d18b['writer']['removeClass']('ck-suggestion-marker--active',_0x3ce81a));for(const _0x3fa73c of _0x307f20['model']['createRangeIn'](_0x1d3578['item'])['getItems']())_0x26d18b['consumable']['consume'](_0x3fa73c,_0x5c6d53['name']);_0x26d18b['consumable']['consume'](_0x1d3578['item'],_0x5c6d53['name']);}};_0x307f20['conversion']['for']('dataDowncast')['add'](_0x2ab66e=>{_0x2ab66e['on']('addMarker:suggestion:formatBlock',(_0xe11d8f,_0xf2de95,_0x37f0fd)=>{_0x37f0fd['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1})(_0xe11d8f,_0xf2de95,_0x37f0fd);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['add'](_0x24811b=>{_0x24811b['on']('addMarker:suggestion:attribute',(_0x4a60d1,_0x48b45a,_0x495de6)=>{_0x495de6['options']['showSuggestionHighlights']&&_0x298f30({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x4a60d1,_0x48b45a,_0x495de6);},{'priority':'highest'});}),_0x307f20['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0xeb6acd,_0x3d5c99)=>_0x3d5c99['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0xeb6acd['substr'](0xb)}}),_0x307f20['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5c2999,{writer:_0x2382d1})=>{let _0x38efb7='suggestion:'+_0x5c2999['getAttribute']('suggestion-type')+':'+_0x5c2999['getAttribute']('id');return _0x5c2999['getAttribute']('marker-count')&&(_0x38efb7+=':'+_0x5c2999['getAttribute']('marker-count')),_0x2382d1['createElement']('$marker',{'data-name':_0x38efb7});}}),_0x307f20['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x2b0e44=>{_0x2b0e44['on']('addMarker:suggestion:formatBlock',_0x298f30(),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x14f071=>{_0x14f071['on']('addMarker:suggestion:attribute',_0x298f30({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x5bf0e2=>{_0x5bf0e2['on']('removeMarker:suggestion:formatBlock',(_0x402f13,_0x5d8176,_0x58e649)=>{const _0x1f5b9c=_0x58e649['mapper']['markerNameToElements'](_0x5d8176['markerName']);if(_0x1f5b9c){for(const _0x5a7ee7 of _0x1f5b9c)_0x5a7ee7['getCustomProperty']('addHighlight')||(_0x58e649['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5a7ee7),_0x58e649['writer']['removeAttribute']('data-suggestion',_0x5a7ee7),_0x58e649['mapper']['unbindElementFromMarkerName'](_0x5a7ee7,_0x5d8176['markerName']));}},{'priority':'high'});}),_0x307f20['conversion']['for']('editingDowncast')['add'](_0x4cc7b8=>{_0x4cc7b8['on']('removeMarker:suggestion:attribute',(_0x315c64,_0x4bc62a,_0x309d67)=>{const _0x433888=_0x309d67['mapper']['markerNameToElements'](_0x4bc62a['markerName']);if(!_0x433888)return;const {id:_0x21cacc}=this['_splitMarkerName'](_0x4bc62a['markerName']),_0x291101=this['_suggestions']['get'](_0x21cacc),_0x32cbab=this['_getAttributeKey'](_0x291101);if(this['_isBlockAttribute'](_0x32cbab)){for(const _0x44c124 of _0x433888)_0x44c124['getCustomProperty']('addHighlight')||(_0x309d67['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x44c124),_0x309d67['writer']['removeAttribute']('data-suggestion',_0x44c124),_0x309d67['mapper']['unbindElementFromMarkerName'](_0x44c124,_0x4bc62a['markerName']));}},{'priority':'high'});}),_0x307f20['model']['document']['registerPostFixer'](_0x56435b=>{let _0x27856b=!0x1;const _0x41fcef=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']()),_0x2a4f07=new Set();for(const {name:_0x29b7aa,data:_0x2be092}of _0x41fcef){const {group:_0x283207,type:_0x2c79fb,subType:_0x2e4fa3,id:_0x4102f5}=this['_splitMarkerName'](_0x29b7aa);if('suggestion'!==_0x283207)continue;const _0xda5b2d=this['_suggestions']['get'](_0x4102f5);if(null!=_0x2be092['newRange']){'formatInline'==_0x2c79fb&&(_0x27856b=_0x27856b||Et(_0x2be092['newRange'],_0x29b7aa,_0x56435b,_0x307f20['model']['schema']));const _0x475761='attribute'==_0x2c79fb&&this['_isBlockAttribute'](_0x2e4fa3['split']('|')[0x0]);if(_0x2be092['newRange']['isCollapsed']||'$graveyard'==_0x2be092['newRange']['root']['rootName']||'formatBlock'==_0x2c79fb&&!Ut(_0x2be092['newRange'])||_0x475761&&!Ut(_0x2be092['newRange'])||'deletion'==_0x2c79fb&&!(!Tt(_0x390684=_0x2be092['newRange'])&&!function(_0x12a0fc){return _0x12a0fc['start']['parent']==_0x12a0fc['end']['nodeBefore']&&_0x12a0fc['start']['isAtEnd'];}(_0x390684)))_0x56435b['removeMarker'](_0x29b7aa),_0x27856b=!0x0;else{if(!_0xda5b2d||!_0xda5b2d['isInContent'])continue;_0x2a4f07['add'](_0xda5b2d);}}}var _0x390684;return _0x2a4f07['size']>0x0&&(_0x27856b=!!this['_joinWithAdjacentSuggestions'](_0x2a4f07)||_0x27856b),_0x27856b;}),_0x307f20['model']['document']['registerPostFixer'](_0x4bd947=>{let _0x448fce=!0x1;for(const _0x5b9bc6 of _0x307f20['model']['document']['differ']['getChanges']())if('insert'==_0x5b9bc6['type'])for(const _0x1caec3 of this['_suggestions']['values']()){if(_0x1caec3['isMultiRange']||!_0x1caec3['isInContent'])continue;const _0x41bb7d='formatBlock'==_0x1caec3['type'],_0x46bf54=this['_getAttributeKey'](_0x1caec3),_0x578316=_0x46bf54&&this['_isBlockAttribute'](_0x46bf54);if(!_0x41bb7d&&!_0x578316)continue;const _0x1cfc80=_0x1caec3['getFirstRange']();if(_0x1cfc80['start']['parent']!=_0x1cfc80['end']['parent']&&!_0x1cfc80['end']['isAtEnd']){const _0x2f8e21=_0x307f20['model']['createPositionAt'](_0x1cfc80['start']['nodeAfter'],'end'),_0x33dce7=_0x307f20['model']['createRange'](_0x1cfc80['start'],_0x2f8e21);_0x4bd947['updateMarker'](_0x1caec3['getFirstMarker'](),{'range':_0x33dce7}),_0x448fce=!0x0;}}return _0x448fce;}),_0x307f20['model']['document']['registerPostFixer'](_0x1092b6=>this['_processAttributeChanges'](_0x1092b6)),_0x307f20['model']['document']['registerPostFixer'](_0x454e14=>!_0x454e14['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x454e14)),_0x307f20['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x307f20['model']['document']['on']('change:data',(_0x4a6ac8,_0x28bc33)=>{if(!_0x28bc33['isLocal']||_0x28bc33['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x54fe4d=_0x307f20['model']['document']['differ']['getChanges']();if(0x0==_0x54fe4d['length'])return;const _0x7d9006=[],_0xa8c3a6=_0x54fe4d['filter'](_0x8d6a71=>'attribute'==_0x8d6a71['type']),_0x4af324=_0x54fe4d['filter'](_0x3af7f6=>'insert'==_0x3af7f6['type']&&'$text'!=_0x3af7f6['name']);for(const _0x5811f2 of _0xa8c3a6)this['_isRegisteredAttribute'](_0x5811f2['attributeKey'])&&_0x7d9006['push']({'key':_0x5811f2['attributeKey'],'newValue':_0x5811f2['attributeNewValue'],'oldValue':_0x5811f2['attributeOldValue'],'range':Ot(_0x5811f2['range'],_0x307f20['model'])});for(const _0x514f56 of _0x4af324){if('rename'!=_0x514f56['action']&&'refresh'!=_0x514f56['action'])continue;const _0x254ed6=Gt(_0x514f56['position']['nodeAfter'],_0x307f20['model']),_0xc0434=_0x514f56['before'];'rename'==_0x514f56['action']&&_0x7d9006['push']({'key':m,'newValue':_0x514f56['name'],'oldValue':_0xc0434['name'],'range':_0x254ed6});for(const [_0x44f5d4,_0x5e0c99]of _0xc0434['attributes']){if(!this['_isRegisteredAttribute'](_0x44f5d4))continue;const _0x3c039b=_0x514f56['attributes']['get'](_0x44f5d4);_0x5e0c99!==_0x3c039b&&_0x7d9006['push']({'key':_0x44f5d4,'newValue':_0x3c039b,'oldValue':_0x5e0c99,'range':_0x254ed6});}for(const [_0x239b3f,_0x2ed62a]of _0x514f56['attributes'])this['_isRegisteredAttribute'](_0x239b3f)&&(_0xc0434['attributes']['has'](_0x239b3f)||_0x7d9006['push']({'key':_0x239b3f,'newValue':_0x2ed62a,'oldValue':null,'range':_0x254ed6}));}0x0!=_0x7d9006['length']&&_0x307f20['model']['enqueueChange'](_0x28bc33,_0x50ad9b=>{const _0x378591=_0x5ed2a0();for(const {range:_0x3207c5,key:_0x119ab9,oldValue:_0x37f87e,newValue:_0x49fdf4}of _0x7d9006)this['markAttributeChange'](_0x3207c5,_0x119ab9,_0x37f87e,_0x49fdf4,{'groupId':_0x378591});this['_reduceExistingSuggestions'](_0x50ad9b,_0x7d9006);});},{'priority':'lowest'}),_0x307f20['model']['markers']['on']('update:suggestion',(_0x33301c,_0x28eb65,_0x35f799)=>{if(null==_0x35f799){const {id:_0x8204b6}=this['_splitMarkerName'](_0x28eb65['name']),_0x2eb594=this['_suggestions']['get'](_0x8204b6);_0x2eb594&&_0x2eb594['addMarkerName'](_0x28eb65['name']);}}),_0x307f20['model']['document']['on']('change:data',()=>{const _0x59bc45=Array['from'](_0x307f20['model']['document']['differ']['getChangedMarkers']())['filter'](_0x29b425=>'suggestion'===this['_splitMarkerName'](_0x29b425['name'])['group']);if(0x0===_0x59bc45['length'])return;_0x59bc45['sort']((_0x551abb,_0x5f7562)=>{const _0x23cbdb=_0x551abb['data']['oldRange'],_0x105d94=_0x5f7562['data']['oldRange'];return null===_0x23cbdb&&null===_0x105d94?0x0:null===_0x23cbdb&&null!==_0x105d94?-0x1:null!==_0x23cbdb&&null===_0x105d94?0x1:_0x23cbdb['start']['isBefore'](_0x105d94['start'])?-0x1:0x1;});const _0x28c029=new Set(),_0x216206=new Set();for(const {name:_0xd2bf3b,data:_0x52fd1a}of _0x59bc45){const {id:_0x1b90c1}=this['_splitMarkerName'](_0xd2bf3b);if(null===_0x52fd1a['oldRange']){const _0x4a22e5=this['_handleNewSuggestionMarker'](_0xd2bf3b);_0x216206['add'](_0x4a22e5);}else{const _0x153728=this['_suggestions']['get'](_0x1b90c1);null!==_0x52fd1a['newRange']||_0x153728['isInContent']?(_0x28c029['add'](_0x153728['head']),_0x216206['add'](_0x153728)):this['_removeSuggestion'](_0x153728);}}_0x216206['size']>0x0&&this['_refreshSuggestionsChain'](_0x216206);for(const _0x3e3f14 of _0x28c029)this['fire']('suggestionChanged',_0x3e3f14);}),_0x307f20['model']['on']('applyOperation',(_0x4da63e,_0x562e30)=>{const _0x2d1cd1=_0x562e30[0x0];if(!this['_suggestions']['size'])return;if(!_0x2d1cd1['isDocumentOperation'])return;if(_0x2d1cd1['batch']['isUndo']||!_0x2d1cd1['batch']['isLocal'])return;let _0x49be26,_0x4ef1e5;switch(_0x2d1cd1['type']){case'insert':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['position']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;case'split':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['splitPosition']),_0x4ef1e5=_0x307f20['model']['createPositionAt'](_0x2d1cd1['moveTargetPosition']);break;case'move':_0x49be26=_0x307f20['model']['createPositionAt'](_0x2d1cd1['targetPosition']),_0x4ef1e5=_0x49be26['getShiftedBy'](_0x2d1cd1['howMany']);break;default:return;}const _0x5149af=_0x307f20['model']['createRange'](_0x49be26,_0x4ef1e5);_0x307f20['model']['change'](()=>{for(const {suggestion:_0x2f4fec,meta:_0x3338e2}of this['_findSuggestions'](_0x5149af)){if(_0x2f4fec['isMultiRange'])continue;if('formatInline'==_0x2f4fec['type'])continue;const _0x1d0d8b=this['_getAttributeKey'](_0x2f4fec);if(_0x1d0d8b&&this['_isBlockAttribute'](_0x1d0d8b)&&'split'!=_0x2d1cd1['type'])continue;const _0x30f098=_0x2f4fec['data']&&_0x2f4fec['data']['multipleBlocks'];('formatBlock'!=_0x2f4fec['type']||'split'==_0x2d1cd1['type']&&!_0x30f098)&&(_0x3338e2['containsRangeInObject']||'insertion'==_0x2f4fec['type']&&_0x3338e2['isOwn']||_0x2f4fec['getFirstRange']()['containsRange'](_0x5149af)&&this['_breakSuggestionMarker'](_0x2f4fec,_0x49be26,_0x4ef1e5));}});},{'priority':'lowest'}),_0x307f20['model']['on']('deleteContent',(_0x518c2c,_0x5f0c5f)=>{const _0xd11e6b=_0x5f0c5f[0x0],_0xe47cc2=_0x5f0c5f[0x1];if(_0xe47cc2&&_0xe47cc2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0xd11e6b['isCollapsed'])return;const _0x94e875=_0x307f20['model']['schema'],{start:_0x1d16b3,end:_0x36b172}=_0xd11e6b['getFirstRange'](),_0x22b6f6=_0x1d16b3['nodeAfter']&&_0x94e875['isLimit'](_0x1d16b3['nodeAfter'])?null:_0x94e875['getNearestSelectionRange'](_0x1d16b3,'forward'),_0xbd8c66=_0x36b172['nodeBefore']&&_0x94e875['isLimit'](_0x36b172['nodeBefore'])?null:_0x94e875['getNearestSelectionRange'](_0x36b172,'backward'),_0x22b624=_0x307f20['model']['createRange'](_0x22b6f6?_0x22b6f6['start']:_0x1d16b3,_0xbd8c66?_0xbd8c66['end']:_0x36b172);_0x307f20['model']['change'](_0x34a7c4=>{this['markDeletion'](_0x22b624);const _0x161938=_0x307f20['model']['schema']['getNearestSelectionRange'](_0x22b624['start']);_0xd11e6b['is']('documentSelection')?_0x34a7c4['setSelection'](_0x161938):_0xd11e6b['setTo'](_0x161938);}),_0x518c2c['stop']();},{'priority':_0x2ff03c['normal']+0xa}),_0x307f20['model']['on']('insertContent',(_0x4d3a2b,_0x2abf23)=>{const _0x290780=_0x2abf23[_0x2abf23['length']-0x1];_0x290780&&_0x290780['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x307f20['model']['change'](()=>{let _0x2a174a=_0x307f20['model']['insertContent'](_0x2abf23[0x0],_0x2abf23[0x1],_0x2abf23[0x2],{'forceDefaultExecution':!0x0});if(!_0x2a174a)return;_0x4d3a2b['return']=_0x2a174a['clone']();const _0x542bfc=_0x2a174a['end']['nodeBefore'],_0xc363f4=_0x307f20['model']['schema'];_0x542bfc&&_0xc363f4['isBlock'](_0x542bfc)&&!_0xc363f4['isObject'](_0x542bfc)&&(_0x2a174a=_0x307f20['model']['createRange'](_0x2a174a['start'],_0x307f20['model']['createPositionAt'](_0x542bfc,'end'))),this['markInsertion'](_0x2a174a);}),_0x4d3a2b['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x21fb90=new $(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('acceptSuggestion',_0x21fb90),this['enableCommand']('acceptSuggestion');const _0x880497=new B(_0x307f20,this['_suggestions']);_0x307f20['commands']['add']('discardSuggestion',_0x880497),this['enableCommand']('discardSuggestion'),_0x307f20['commands']['add']('acceptAllSuggestions',new x(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x307f20['commands']['add']('discardAllSuggestions',new x(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x307f20['commands']['add']('acceptSelectedSuggestions',new R(_0x307f20,_0x21fb90,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x307f20['commands']['add']('discardSelectedSuggestions',new R(_0x307f20,_0x880497,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x1ec242=_0x307f20['plugins']['get']('CommentsRepository');this['listenTo'](_0x1ec242,'addComment',(_0xc8501f,{threadId:_0x443106})=>{const _0x168264=this['_suggestions']['get'](_0x443106);_0x168264&&_0x168264['commentThread']&&0x1===_0x168264['commentThread']['length']&&this['_updateSuggestionData'](_0x443106,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x1ec242,'removeComment',(_0x526553,{threadId:_0x45e8ba})=>{const _0x32cba6=this['_suggestions']['get'](_0x45e8ba);_0x32cba6&&_0x32cba6['commentThread']&&!_0x32cba6['commentThread']['length']&&this['_updateSuggestionData'](_0x45e8ba,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x178775){if(this['_adapter'])throw new _0x274ec5('track-changes-adapter-already-set',this);this['_adapter']=_0x178775;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4bbe00=!0x1,toJSON:_0x4dcc4c=!0x1}={}){const _0x16ca44=[];for(const _0x108fbf of this['_suggestions']['values']())_0x4bbe00&&!_0x108fbf['isInContent']||_0x16ca44['push'](_0x108fbf);return _0x4dcc4c?_0x16ca44['map'](_0x571450=>_0x571450['toJSON']()):_0x16ca44;}['getSuggestion'](_0x34bd34){const _0x2fb04d=this['_suggestions']['get'](_0x34bd34);if(!_0x2fb04d)throw new _0x274ec5('track-changes-suggestion-not-found',this);return _0x2fb04d;}['hasSuggestion'](_0x17b42f){return this['_suggestions']['has'](_0x17b42f);}['addSuggestionData'](_0x28b8d0){const {authorId:_0x1480b,id:_0xae23a5,attributes:_0x5af6e4}=_0x28b8d0,[_0x31da28,_0x5b0e7a]=_0x28b8d0['type']['split'](':'),_0x11effc=this['_suggestions']['get'](_0xae23a5)||this['_createSuggestion'](_0x31da28,_0x5b0e7a,_0xae23a5,_0x1480b,_0x5af6e4);if(this['_addThreadToSuggestion'](_0x11effc),this['_checkSuggestionCorrectness'](_0x11effc,_0x31da28,_0x5b0e7a||null,_0x1480b),_0x11effc['createdAt']=_0x28b8d0['createdAt'],_0x11effc['_isDataLoaded']=!0x0,_0x5af6e4&&_0x5af6e4['@external']){const _0x239a0f=_0x5af6e4['@external'],_0x563cf8=this['_getExternalAuthor'](_0x239a0f['authorName']);_0x11effc['authoredAt']=_0x239a0f['createdAt'],_0x11effc['author']=_0x563cf8,_0x11effc['isExternal']=!0x0;}else _0x11effc['authoredAt']=_0x28b8d0['createdAt'];switch(_0x28b8d0['data']&&(_0x11effc['data']=_0x28b8d0['data']),_0x28b8d0['attributes']&&(_0x11effc['attributes']=_0x28b8d0['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x11effc['_saved']=!0x0),this['_suggestionState']['get'](_0x11effc)){case'notReady':this['_suggestionState']['set'](_0x11effc,'dataReady');break;case'markerReady':_0x11effc['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x11effc])),this['_refreshSuggestionsChain'](new Set([_0x11effc])),this['_suggestionState']['set'](_0x11effc,'ready'),this['fire']('suggestionLoaded',_0x11effc)):this['_suggestionState']['set'](_0x11effc,'removed');}return _0x11effc;}['acceptSuggestion'](_0x1cbf55){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2559cc of _0x1cbf55['getAllAdjacentSuggestions']())_0x2559cc['accept']();});});}['discardSuggestion'](_0x376de6){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x2bb587 of _0x376de6['getAllAdjacentSuggestions']())_0x2bb587['discard']();});});}['enableCommand'](_0x3bab6e,_0x176451){const _0x545c58=this['editor']['commands']['get'](_0x3bab6e);if(!_0x545c58)throw new _0x274ec5('track-changes-command-not-found',this,{'commandName':_0x3bab6e});if(this['_enabledCommands']['has'](_0x545c58))throw new _0x274ec5('track-changes-enable-command-twice',this,{'commandName':_0x3bab6e});this['_enabledCommands']['add'](_0x545c58),_0x176451&&_0x545c58['on']('execute',(_0x115236,_0x5f19e7)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x5f19e7['length']>0x0&&_0x5f19e7[_0x5f19e7['length']-0x1]&&_0x5f19e7[_0x5f19e7['length']-0x1]['forceDefaultExecution']?_0x5f19e7['pop']():(_0x115236['return']=_0x176451((..._0x127022)=>_0x545c58['execute'](..._0x127022,{'forceDefaultExecution':!0x0}),..._0x5f19e7),_0x115236['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x224c21){let _0x50e5ab,_0x9ee2b1;const _0x17059e=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x50e5ab=_0x224c21();}catch(_0x45d04f){_0x9ee2b1=_0x45d04f;}return _0x17059e||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x9ee2b1&&_0x274ec5['rethrowUnexpectedError'](_0x9ee2b1,this),_0x50e5ab;}['markInsertion'](_0x3aa4e6,_0x5370bf=null,_0x3489b={}){if(_0x3aa4e6['isCollapsed'])return null;const _0x50fdd1=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x20352c,meta:_0x49df70}of this['_findSuggestions'](_0x3aa4e6,'insertion'))if(_0x49df70['isOwn']){if(!_0x49df70['isNextTo']){if(_0x49df70['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x20352c,_0x3489b))continue;return _0x20352c;}if(Lt(_0x20352c,_0x3489b))return _0x20352c;this['_breakSuggestionMarker'](_0x20352c,_0x3aa4e6['start'],_0x3aa4e6['end']);break;}if(_0x5370bf==_0x20352c['subType']&&Lt(_0x20352c,_0x3489b)){const _0x38603c=_0x20352c['getFirstRange']();return _0x38603c['start']['isEqual'](_0x3aa4e6['end'])?this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x3aa4e6['start'],_0x38603c['end'])):this['_setSuggestionRange'](_0x20352c,this['_model']['createRange'](_0x38603c['start'],_0x3aa4e6['end'])),_0x20352c;}}const _0x37136e=_0x5ed2a0(),_0xf7a5e5=_0x50fdd1['id'],_0x11af72=_0x5370bf?'insertion:'+_0x5370bf:'insertion',_0x45f5f4=this['_setSuggestionData']({'id':_0x37136e,'type':_0x11af72,'createdAt':new Date(),'authorId':_0xf7a5e5,'attributes':_0x3489b});return this['_addSuggestionMarker'](_0x11af72,_0x37136e,_0xf7a5e5,_0x3aa4e6),_0x45f5f4;}['markMultiRangeInsertion'](_0x32992c,_0x4e8fdd='multi',_0x409704={}){const _0x47207f=this['editor']['plugins']['get']('Users')['me'],_0x350685=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x4e8fdd,'join');for(const _0x4e927f of this['getSuggestions']())if(_0x4e927f['author']['id']==_0x47207f['id']&&'insertion'==_0x4e927f['type']&&_0x4e927f['subType']==_0x4e8fdd&&Lt(_0x4e927f,_0x409704)&&(_0x350685(_0x4e927f['getRanges'](),_0x32992c)||_0x350685(_0x32992c,_0x4e927f['getRanges']()))){for(const _0x5dcbf5 of _0x32992c)_0x4e927f['addRange'](_0x5dcbf5);return _0x4e927f;}for(const {suggestion:_0x37e221,meta:_0x971257}of this['_findSuggestions'](_0x32992c,'insertion')){if(!_0x971257['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x971257['containsRangeInObject'])continue;if(!Lt(_0x37e221,_0x409704))continue;let _0x44fdc8=!0x0;for(const _0x18bdcd of _0x37e221['getRanges']())for(const _0x5ab787 of _0x32992c)if(!_0x18bdcd['containsRange'](_0x5ab787)){_0x44fdc8=!0x1;break;}if(_0x44fdc8)return _0x37e221;}const _0x333e06=_0x5ed2a0(),_0xaa2269=_0x47207f['id'],_0x30d1c7='insertion:'+_0x4e8fdd,_0x5c3f9d=this['_setSuggestionData']({'id':_0x333e06,'type':_0x30d1c7,'createdAt':new Date(),'authorId':_0xaa2269,'attributes':_0x409704});for(const _0xb232c2 of _0x32992c)this['_addSuggestionMarker'](_0x30d1c7,_0x333e06,_0xaa2269,_0xb232c2,u['getMultiRangeId']());return _0x5c3f9d;}['markInlineFormat'](_0x5df9df,_0x3f5b67,_0x5e28dd=null,_0x58ce08={}){if(_0x5e28dd=_0x5e28dd||Vt(_0x3f5b67),_0x5df9df['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x57f163=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');return this['forceDefaultExecution'](()=>_0x57f163([_0x5df9df],_0x3f5b67,_0x58ce08)),null;}const _0x248169=this['editor']['plugins']['get']('Users')['me'],_0x669506=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x4b1319,meta:_0xa8692f}of this['_findSuggestions'](_0x5df9df,'insertion'))_0xa8692f['isOwn']&&!_0xa8692f['isInsideObject']&&_0x669506['push'](..._0x4b1319['getRanges']());}const _0x54ddc1=function(_0x470289,_0xf982f6){const _0x279c70=[];for(const _0x1ce730 of _0xf982f6){const _0x3bd5a0=_0x470289['getIntersection'](_0x1ce730);_0x3bd5a0&&_0x279c70['push'](_0x3bd5a0);}return _0x279c70;}(_0x5df9df,_0x669506),_0x25bd70=function(_0x195dc7,_0x3f6de8){const _0x39c7f3=[_0x195dc7];for(const _0x5bb397 of _0x3f6de8){let _0x5ae881=0x0;for(;_0x5ae881<_0x39c7f3['length'];){const _0x27d9e9=_0x39c7f3[_0x5ae881]['getDifference'](_0x5bb397);_0x39c7f3['splice'](_0x5ae881,0x1,..._0x27d9e9),_0x5ae881+=_0x27d9e9['length'];}}return _0x39c7f3;}(_0x5df9df,_0x669506);_0x54ddc1['length']&&this['_model']['change'](()=>{for(const _0x2a10c7 of _0x54ddc1){const _0x4fcb6c=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x5e28dd,'accept');this['forceDefaultExecution'](()=>_0x4fcb6c([_0x2a10c7],_0x3f5b67,_0x58ce08));}});for(const _0x412969 of _0x25bd70){let _0x10c17e=null,_0x120636=_0x412969['start'],_0x3a323b=_0x412969['end'];for(const {suggestion:_0x474eff,meta:_0x13fbea}of this['_findSuggestions'](_0x412969,'formatInline')){if(!_0x13fbea['isOwn'])continue;if(_0x474eff['subType']!=_0x5e28dd)continue;if(!Lt(_0x474eff,_0x58ce08))continue;const _0x1292a3=_0x474eff['getFirstRange']();if(_0x1292a3['containsRange'](_0x412969,!0x0))return null;_0x120636=_0x120636['isBefore'](_0x1292a3['start'])?_0x120636:_0x1292a3['start'],_0x3a323b=_0x3a323b['isAfter'](_0x1292a3['end'])?_0x3a323b:_0x1292a3['end'],_0x10c17e?_0x1292a3['start']['isBefore'](_0x10c17e['getFirstRange']()['start'])?(_0x10c17e['removeMarkers'](),_0x10c17e=_0x474eff):_0x474eff['removeMarkers']():_0x10c17e=_0x474eff;}const _0x3dbe8f=this['_model']['createRange'](_0x120636,_0x3a323b);if(_0x10c17e)this['_setSuggestionRange'](_0x10c17e,_0x3dbe8f);else{const _0x12a87a=_0x5ed2a0(),_0x8163b=_0x248169['id'];this['_setSuggestionData']({'id':_0x12a87a,'type':'formatInline:'+_0x5e28dd,'data':_0x3f5b67,'createdAt':new Date(),'authorId':_0x8163b,'attributes':_0x58ce08}),this['_addSuggestionMarker']('formatInline:'+_0x5e28dd,_0x12a87a,_0x8163b,_0x3dbe8f);}}return null;}['markBlockFormat'](_0x1d181b,_0x45d1fe,_0x1bb0f5=[],_0x3a6997=null,_0x3c5700={}){_0x45d1fe['formatGroupId']||(_0x45d1fe['formatGroupId']=_0x45d1fe['commandName']),_0x45d1fe['multipleBlocks']=_0x1d181b['is']('range'),_0x3a6997=_0x3a6997||Vt(_0x45d1fe);const _0x1685f9=_0x1bb0f5['map'](_0xbd7663=>Gt(_0xbd7663,this['_model'])),_0x18dcb3=_0x1d181b['is']('range')?_0x1d181b:Gt(_0x1d181b,this['_model']);if('never'===this['_trackFormatChanges']){const _0x3d2914=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x3d2914([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}_0x1685f9['push'](_0x18dcb3);let _0x245e21=!0x0;for(const _0x37b4c2 of _0x1685f9)if(!this['_rangeIsInLocalUserInsertion'](_0x37b4c2)){_0x245e21=!0x1;break;}if(_0x245e21&&'always'!==this['_trackFormatChanges']){const _0x47f006=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x3a6997,'accept');return this['forceDefaultExecution'](()=>_0x47f006([_0x18dcb3],_0x45d1fe,_0x3c5700)),null;}let _0x177f37=null,_0x328f37=_0x18dcb3['start'],_0x12ec23=_0x18dcb3['end'];for(const {suggestion:_0x4217b,meta:_0x205bb9}of this['_findSuggestions'](_0x18dcb3,'formatBlock')){if(!_0x205bb9['isOwn'])continue;if(_0x205bb9['isNextTo']||_0x205bb9['containsRangeInObject']||_0x205bb9['isInsideObject'])continue;if(_0x4217b['data']['formatGroupId']!=_0x45d1fe['formatGroupId'])continue;if(!Lt(_0x4217b,_0x3c5700))continue;const _0x97b266=_0x4217b['getFirstRange']();if(_0x4217b['subType']==_0x3a6997){if(_0x97b266['containsRange'](_0x18dcb3,!0x0))return null;_0x328f37=_0x328f37['isBefore'](_0x97b266['start'])?_0x328f37:_0x97b266['start'],_0x12ec23=_0x12ec23['isAfter'](_0x97b266['end'])?_0x12ec23:_0x97b266['end'],_0x177f37?_0x97b266['start']['isBefore'](_0x177f37['getFirstRange']()['start'])?(_0x177f37['removeMarkers'](),_0x177f37=_0x4217b):_0x4217b['removeMarkers']():_0x177f37=_0x4217b;}else{const _0x2281a6=_0x18dcb3['getIntersection'](_0x97b266);this['_cutOutSuggestionMarker'](_0x4217b,_0x2281a6);}}const _0x652f5a=this['editor']['plugins']['get']('Users')['me'],_0x4c298a=_0x5ed2a0(),_0x434ed3=_0x652f5a['id'];if(_0x177f37)return this['_setSuggestionRange'](_0x177f37,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0x177f37;{const _0xeb4838=this['_setSuggestionData']({'id':_0x4c298a,'type':'formatBlock:'+_0x3a6997,'data':_0x45d1fe,'createdAt':new Date(),'authorId':_0x434ed3,'attributes':_0x3c5700});return this['_addSuggestionMarker']('formatBlock:'+_0x3a6997,_0x4c298a,_0x434ed3,this['_model']['createRange'](_0x328f37,_0x12ec23)),_0xeb4838;}}['markMultiRangeBlockFormat'](_0x2dc643,_0x1a6028,_0x2acc3d=[],_0x309fcb=null,_0x2a1282={}){_0x1a6028['formatGroupId']||(_0x1a6028['formatGroupId']=_0x1a6028['commandName']);const _0x137564=_0x2dc643[0x0];_0x1a6028['multipleBlocks']=_0x137564['is']('range'),_0x309fcb=_0x309fcb||Vt(_0x1a6028);const _0x1ff185=_0x2acc3d['map'](_0x4da8f1=>Gt(_0x4da8f1,this['_model'])),_0x4564e7=_0x137564['is']('range')?_0x2dc643:_0x2dc643['map'](_0x23ac6f=>Gt(_0x23ac6f,this['_model']));if('never'===this['_trackFormatChanges']){const _0x291c72=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x291c72(_0x4564e7,_0x1a6028,_0x2a1282)),null;}_0x1ff185['push'](..._0x4564e7);let _0x4c5fc4=!0x0;for(const _0x3b224f of _0x1ff185)if(!this['_rangeIsInLocalUserInsertion'](_0x3b224f)){_0x4c5fc4=!0x1;break;}if(_0x4c5fc4&&'always'!==this['_trackFormatChanges']){const _0x2ba1f8=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'accept');return this['forceDefaultExecution'](()=>_0x2ba1f8(_0x4564e7,_0x1a6028,_0x2a1282)),null;}const _0xbc4dbc=this['editor']['plugins']['get']('Users')['me'];for(const _0x30a748 of this['getSuggestions']()){if(_0x30a748['author']['id']!=_0xbc4dbc['id'])continue;if('formatBlock'!=_0x30a748['type']||_0x30a748['data']['formatGroupId']!=_0x1a6028['formatGroupId'])continue;if(!Lt(_0x30a748,_0x2a1282))continue;const _0x22b735=_0x30a748['subType']==_0x309fcb;for(let _0x1168c1=0x0;_0x1168c1<_0x4564e7['length'];_0x1168c1++){const _0x233edc=_0x4564e7[_0x1168c1];for(const _0x27295e of _0x30a748['getMarkers']()){const _0x3de7e1=_0x27295e['getRange']();if(_0x233edc['isEqual'](_0x3de7e1)){_0x22b735?(_0x4564e7['splice'](_0x1168c1,0x1),_0x1168c1--):_0x30a748['removeMarker'](_0x27295e['name']);break;}}}}if(0x0==_0x4564e7['length'])return null;const _0x4dbb83=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x309fcb,'join');for(const _0x860542 of this['getSuggestions']())if(_0x860542['author']['id']==_0xbc4dbc['id']&&'formatBlock'==_0x860542['type']&&_0x860542['data']['formatGroupId']==_0x1a6028['formatGroupId']&&_0x860542['subType']==_0x309fcb&&Lt(_0x860542,_0x2a1282)&&(_0x4dbb83(_0x860542['getRanges'](),_0x4564e7)||_0x4dbb83(_0x4564e7,_0x860542['getRanges']()))){for(const _0x3e846f of _0x4564e7)_0x860542['addRange'](_0x3e846f);return _0x860542;}const _0xd31f4a=_0x5ed2a0(),_0x4be06e=_0xbc4dbc['id'],_0x266ed1='formatBlock:'+_0x309fcb,_0x402907=this['_setSuggestionData']({'id':_0xd31f4a,'type':_0x266ed1,'data':_0x1a6028,'createdAt':new Date(),'authorId':_0x4be06e,'attributes':_0x2a1282});for(const _0x1abd14 of _0x4564e7)this['_addSuggestionMarker'](_0x266ed1,_0xd31f4a,_0x4be06e,_0x1abd14,u['getMultiRangeId']());return _0x402907;}['markDeletion'](_0x1e5fe0,_0x57b27b=null,_0x211a5b={}){if(_0x1e5fe0['isCollapsed'])return null;const _0xcf863c=this['editor']['plugins']['get']('Users')['me'],_0x2ddf56=new _0xe90ba7(_0x1e5fe0['start'],_0x1e5fe0['end']);for(const {suggestion:_0x19314e,meta:_0x196b72}of this['_findSuggestions'](_0x2ddf56,'insertion'))if(_0x196b72['isOwn']&&!_0x196b72['isNextTo']){if(_0x19314e['isMultiRange']){const _0x466b6b=_0x19314e['getRanges']()['filter'](_0x415976=>'$graveyard'!=_0x415976['root']['rootName']);_0x466b6b['every'](_0x24d56d=>_0x2ddf56['containsRange'](_0x24d56d,!0x0))&&_0x19314e['discard']();if(_0x466b6b['some'](_0x17e07d=>_0x17e07d['containsRange'](_0x2ddf56,!0x0))){const _0xd2ed37=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x57b27b,'accept');return this['forceDefaultExecution'](()=>_0xd2ed37([_0x2ddf56],null,_0x211a5b)),null;}}else{const _0x171ac9=_0x2ddf56['getIntersection'](_0x19314e['getFirstRange']());null!==_0x171ac9&&_0x19314e['_onDiscard']([_0x171ac9],null,_0x211a5b);}}if(_0x2ddf56['detach'](),_0x2ddf56['isCollapsed']||'$graveyard'==_0x2ddf56['root']['rootName'])return null;let _0x1368a4=null,_0x5edddb=_0x2ddf56['start'],_0x393366=_0x2ddf56['end'];const _0x85e8b4=this['_findSuggestions'](_0x2ddf56,'deletion');for(const {suggestion:_0x58ed0a,meta:_0x4b4dcf}of _0x85e8b4){const _0x87672f=this['_model']['createRange'](_0x5edddb,_0x393366);if(_0x4b4dcf['isOwn']&&(this['_mergeNestedSuggestions']||!_0x4b4dcf['containsRangeInObject']&&!_0x4b4dcf['isInsideObject'])){if(_0x58ed0a['isMultiRange']){if(!Lt(_0x58ed0a,_0x211a5b))continue;let _0x266c20=!0x0;for(const _0x1c3669 of _0x58ed0a['getRanges']()){if(_0x1c3669['containsRange'](_0x87672f,!0x0))return _0x58ed0a;_0x87672f['containsRange'](_0x1c3669)||(_0x266c20=!0x1);}_0x266c20&&_0x58ed0a['discard']();}else{const _0x472cf6=_0x58ed0a['getFirstRange']();if(_0x472cf6['containsRange'](_0x87672f,!0x0))return _0x58ed0a;if(!Lt(_0x58ed0a,_0x211a5b)){_0x87672f['containsRange'](_0x472cf6)?_0x58ed0a['removeMarkers']():_0x472cf6['containsPosition'](_0x5edddb)?_0x5edddb=_0x472cf6['end']:_0x472cf6['containsPosition'](_0x393366)&&(_0x393366=_0x472cf6['start']);continue;}_0x5edddb=_0x5edddb['isBefore'](_0x472cf6['start'])?_0x5edddb:_0x472cf6['start'],_0x393366=_0x393366['isAfter'](_0x472cf6['end'])?_0x393366:_0x472cf6['end'],_0x211a5b=Object['assign']({},_0x58ed0a['attributes']),_0x1368a4?_0x472cf6['start']['isBefore'](_0x1368a4['getFirstRange']()['start'])?(_0x1368a4['removeMarkers'](),_0x1368a4=_0x58ed0a):_0x58ed0a['removeMarkers']():_0x1368a4=_0x58ed0a;}}}if(_0x1368a4)return this['_setSuggestionRange'](_0x1368a4,this['_model']['createRange'](_0x5edddb,_0x393366)),_0x1368a4;{const _0x4b3c59=_0x5ed2a0(),_0x5d1faa=this['_model']['createRange'](_0x5edddb,_0x393366),_0x53b0b2=_0xcf863c['id'],_0x4b134f=_0x57b27b?'deletion:'+_0x57b27b:'deletion',_0x52ec5d=this['_setSuggestionData']({'id':_0x4b3c59,'type':_0x4b134f,'createdAt':new Date(),'authorId':_0x53b0b2,'attributes':_0x211a5b});return this['_addSuggestionMarker'](_0x4b134f,_0x4b3c59,_0x53b0b2,_0x5d1faa),_0x52ec5d;}}['markMultiRangeDeletion'](_0x4faa14,_0x25f81c='multi',_0x34c680={}){const _0xe0cade=this['editor']['plugins']['get']('Users')['me'],_0x5186b4=_0x4faa14['map'](_0x3fecbd=>new _0xe90ba7(_0x3fecbd['start'],_0x3fecbd['end'])),_0xa63b14=new Set();for(const {suggestion:_0x2e67c6,meta:_0x4673ff}of this['_findSuggestions'](_0x5186b4,'insertion'))_0x4673ff['isOwn']&&!_0x4673ff['isNextTo']&&_0xa63b14['add'](_0x2e67c6);for(const _0x499bce of _0xa63b14)if(_0x499bce['isMultiRange']){const _0x5ad8be=_0x499bce['getRanges']();(!_0x499bce['attributes']||!_0x499bce['attributes']['skipNestingCheck'])&&(_0x5ad8be['every'](_0x3f313e=>_0x5186b4['some'](_0x5665c3=>_0x5665c3['containsRange'](_0x3f313e,!0x0)))&&_0x499bce['discard']());if(_0x5186b4['every'](_0x495421=>_0x5ad8be['some'](_0x43ef26=>_0x43ef26['containsRange'](_0x495421,!0x0)))){const _0x364591=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x364591(_0x4faa14,null,_0x34c680)),null;}}else{const _0x1befd4=_0x499bce['getFirstRange']();_0x5186b4['some'](_0x6a2478=>_0x6a2478['containsRange'](_0x1befd4,!0x0))&&_0x499bce['discard']();if(_0x5186b4['every'](_0x541be0=>_0x1befd4['containsRange'](_0x541be0,!0x0))){const _0x18ee6a=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'accept');return this['forceDefaultExecution'](()=>_0x18ee6a(_0x5186b4,null,_0x34c680)),null;}}const _0x55e4d9=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25f81c,'join');let _0x251cec=null;for(const _0x109fd6 of this['getSuggestions']())if(_0x109fd6['author']['id']==_0xe0cade['id']&&_0x109fd6['isInContent']&&'deletion'==_0x109fd6['type']&&_0x109fd6['subType']==_0x25f81c&&Lt(_0x109fd6,_0x34c680)&&(_0x55e4d9(_0x109fd6['getRanges'](),_0x5186b4)||_0x55e4d9(_0x5186b4,_0x109fd6['getRanges']()))){if(_0x251cec){if(_0x109fd6['commentThread']&&_0x109fd6['commentThread']['length'])continue;for(const _0x450f5c of _0x109fd6['getRanges']())_0x251cec['isIntersectingWithRange'](_0x450f5c)||_0x251cec['addRange'](_0x450f5c);_0x109fd6['removeMarkers']();}else{_0x251cec=_0x109fd6;for(const _0x4021ce of _0x5186b4)_0x109fd6['isIntersectingWithRange'](_0x4021ce)||_0x109fd6['addRange'](_0x4021ce);}}if(_0x251cec)return _0x251cec;_0xa63b14['clear']();for(const {suggestion:_0x115317,meta:_0x1f1376}of this['_findSuggestions'](_0x5186b4,'deletion'))_0x1f1376['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1f1376['containsRangeInObject']&&!_0x1f1376['isInsideObject'])&&Lt(_0x115317,_0x34c680)&&_0xa63b14['add'](_0x115317);for(const _0x56870c of _0xa63b14){const _0x546ab6=_0x56870c['getRanges']();if(!_0x34c680||!_0x34c680['skipNestingCheck']){if(_0x5186b4['every'](_0x288bea=>_0x546ab6['some'](_0xfe9b4d=>_0xfe9b4d['containsRange'](_0x288bea,!0x0))))return _0x56870c;}(!_0x56870c['attributes']||!_0x56870c['attributes']['skipNestingCheck'])&&(_0x546ab6['every'](_0x38f95b=>_0x5186b4['some'](_0x540da0=>_0x540da0['containsRange'](_0x38f95b,!0x0)))&&_0x56870c['discard']());}const _0x7783c3=_0x5ed2a0(),_0x2c037c=_0xe0cade['id'],_0x546fab='deletion:'+_0x25f81c,_0x1e6476=this['_setSuggestionData']({'id':_0x7783c3,'type':_0x546fab,'createdAt':new Date(),'authorId':_0x2c037c,'attributes':_0x34c680});for(const _0x3ee4e8 of _0x5186b4)_0x3ee4e8['detach'](),_0x3ee4e8['isCollapsed']||'$graveyard'==_0x3ee4e8['root']['rootName']||this['_addSuggestionMarker'](_0x546fab,_0x7783c3,_0x2c037c,_0x3ee4e8,u['getMultiRangeId']());return _0x1e6476;}['markAttributeChange'](_0x19d0a7,_0xda8f94,_0x473869,_0x5d114,_0x20e3f5){if(_0x19d0a7['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2237c2=this['editor']['plugins']['get']('Users')['me']['id'],_0x4e3ba5=Array['from'](this['_suggestions']['values']())['filter'](_0x13886a=>'attribute'==_0x13886a['type']&&_0x13886a['data']['key']==_0xda8f94&&_0x13886a['isIntersectingWithRange'](_0x19d0a7));if('default'===this['_trackFormatChanges']){const _0x3168be=this['_findSuggestions'](_0x19d0a7,'insertion')['filter'](({meta:_0xf8323c})=>_0xf8323c['isOwn']&&!_0xf8323c['isInsideObject']&&!_0xf8323c['isNextTo'])['map'](({suggestion:_0x214ae6})=>_0x214ae6);_0x4e3ba5['unshift'](..._0x3168be);}const _0x3694cc=new Map([[_0x19d0a7,_0x473869]]);for(const _0x3135fa of _0x4e3ba5){const _0x4a7ce3='attribute'==_0x3135fa['type']?_0x3135fa['data']['oldValue']:void 0x0,_0x495cd1=_0x3135fa['getFirstRange'](),_0x59e8c5=Array['from'](_0x3694cc['keys']())['find'](_0x7643e2=>_0x7643e2['isIntersecting'](_0x495cd1));if(!_0x59e8c5)continue;const _0x219d0e=_0x59e8c5['getDifference'](_0x495cd1);this['_isBlockAttribute'](_0xda8f94)&&'insertion'==_0x3135fa['type']&&0x0!=_0x219d0e['length']||(_0x3694cc['delete'](_0x59e8c5),_0x219d0e['forEach'](_0x5b8959=>{_0x3694cc['set'](_0x5b8959,_0x473869);}),'insertion'!=_0x3135fa['type']&&_0x4a7ce3!=_0x5d114&&_0x3694cc['set'](_0x59e8c5['getIntersection'](_0x495cd1),_0x4a7ce3));}const _0x14b0d3=[];for(const [_0x349f79,_0x269ab2]of _0x3694cc){const _0x313d84=_0x5ed2a0(),_0x578a4d={'key':_0xda8f94,'oldValue':_0x269ab2,'newValue':_0x5d114};_0xda8f94['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':_0xda8f94});const _0x5db289=('attribute:'+(_0xda8f94+'|'+Vt({'newValue':_0x5d114})))['substring'](0x0,0x3c),_0x1d6524=this['_setSuggestionData']({'id':_0x313d84,'type':_0x5db289,'data':_0x578a4d,'createdAt':new Date(),'authorId':_0x2237c2,'attributes':_0x20e3f5});_0x14b0d3['push'](_0x1d6524),this['_addSuggestionMarker'](_0x5db289,_0x313d84,_0x2237c2,_0x349f79);}return _0x14b0d3;}['enableDefaultAttributesIntegration'](_0x1a0346){this['enableCommand'](_0x1a0346,(_0x470635,..._0x31ff6b)=>{this['_recordAttributeChanges'](()=>{_0x470635(..._0x31ff6b);});});}['registerBlockAttribute'](_0x1b5cfd){this['_blockAttributeKeys']['add'](_0x1b5cfd);}['registerInlineAttribute'](_0x2adee3){this['_inlineAttributeKeys']['add'](_0x2adee3);}['_getAttributeKey'](_0x2c9f96){return'attribute'==_0x2c9f96['type']?_0x2c9f96['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x56e76f,_0x368331){const _0x5aebae=_0x56e76f['getFirstMarker']();this['_model']['change'](_0x2e2241=>{_0x2e2241['updateMarker'](_0x5aebae,{'range':_0x368331});});}['_addThreadToSuggestion'](_0x2a6948){const _0x5e9e33=_0x2a6948['id'],_0x4bbcfe=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5e9e33)||this['_commentsRepository']['addCommentThread']({'channelId':_0x4bbcfe,'threadId':_0x5e9e33,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x141851=this['_commentsRepository']['getCommentThread'](_0x5e9e33);_0x141851['unbind']('isRemovable'),_0x141851['isRemovable']=!0x1,_0x2a6948['commentThread']=_0x141851;}['_checkSuggestionCorrectness'](_0xe15fa2,_0x7ef263,_0x1098a8,_0x472ebb){if(_0xe15fa2['type']!=_0x7ef263||_0xe15fa2['subType']!=_0x1098a8||_0xe15fa2['creator']['id']!=_0x472ebb)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x274ec5('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x534c31,_0x5cea04){const _0x55bc31=_0x534c31['getFirstRange']();if(_0x5cea04['isEqual'](_0x55bc31))_0x534c31['removeMarkers']();else{if(_0x55bc31['containsRange'](_0x5cea04)){const _0x5439ef=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x5439ef));const _0x56306d=_0x5ed2a0(),_0x508d97=_0x534c31['creator']['id'],_0x4f6d64=_0x534c31['type']+':'+_0x534c31['subType'];this['_setSuggestionData']({'id':_0x56306d,'type':_0x4f6d64,'createdAt':new Date(),'authorId':_0x508d97,'data':_0x534c31['data'],'attributes':_0x534c31['attributes']});const _0x166b3c=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after'),_0x8e62d2=this['_model']['createRange'](_0x166b3c,_0x55bc31['end']);this['_addSuggestionMarker'](_0x4f6d64,_0x56306d,_0x508d97,_0x8e62d2);}else{if(_0x55bc31['containsPosition'](_0x5cea04['start'])){const _0x253c4c=this['_model']['createPositionAt'](_0x5cea04['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x55bc31['start'],_0x253c4c));}else{const _0x12da94=this['_model']['createPositionAt'](_0x5cea04['end']['parent'],'after');this['_setSuggestionRange'](_0x534c31,this['_model']['createRange'](_0x12da94,_0x55bc31['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x410a77){for(const {suggestion:_0x277eb3,meta:_0x463682}of this['_findSuggestions'](_0x410a77,'insertion')){if(!_0x463682['isOwn'])continue;const _0x4629e3=_0x277eb3['getRanges']();for(const _0x198b07 of _0x4629e3)if(!_0x410a77['getDifference'](_0x198b07)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x4b8fa6){const _0x44f8b0=this['editor']['plugins']['get']('Users')['getUser'](_0x4b8fa6);if(!_0x44f8b0)throw new _0x274ec5('track-changes-user-not-found',this);return _0x44f8b0;}['_getExternalAuthor'](_0x31a50c){const _0x24dd94=this['editor']['plugins']['get']('Users'),_0x739811=_0x478958('external:'+_0x31a50c),_0x4bb625=_0x24dd94['getUser'](_0x739811);return _0x4bb625||_0x24dd94['addUser']({'id':_0x739811,'name':_0x31a50c});}['_createSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x49c2ab,_0x566d36){const _0x109b0c=this['_getAuthorFromId'](_0x49c2ab),_0xa5810f=this['_suggestionFactory']['buildSuggestion'](_0x1da901,_0x338120,_0x13eb0c,_0x109b0c,_0x566d36,_0xebfe05=>{this['_updateSuggestionData'](_0x13eb0c,{'attributes':_0xebfe05});const _0x42459c=this['getSuggestion'](_0x13eb0c);this['_joinWithAdjacentSuggestions'](new Set([_0x42459c])),this['_refreshSuggestionsChain'](new Set([_0x42459c]));});return this['listenTo'](_0xa5810f,'accept',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0xa5810f,'discard',()=>{this['_updateSuggestionData'](_0x13eb0c,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x13eb0c,_0xa5810f),this['_suggestionState']['set'](_0xa5810f,'notReady'),_0xa5810f;}['_splitMarkerName'](_0x2763f4){const _0x486df1=_0x2763f4['split'](':');return{'group':_0x486df1[0x0],'type':_0x486df1[0x1],'subType':_0x486df1['length']>=0x5?_0x486df1[0x2]:null,'id':_0x486df1['length']<0x5?_0x486df1[0x2]:_0x486df1[0x3],'authorId':_0x486df1['length']<0x5?_0x486df1[0x3]:_0x486df1[0x4],'markerCount':0x6==_0x486df1['length']?_0x486df1[0x5]:null};}['_breakSuggestionMarker'](_0x33ac97,_0x72ef97,_0x80a398){const _0x97c079=_0x33ac97['getFirstRange'](),_0x5301c3=_0x97c079['start'],_0x4704a0=_0x97c079['end'];this['_setSuggestionRange'](_0x33ac97,this['_model']['createRange'](_0x5301c3,_0x72ef97));const _0x1ccf1d=_0x5ed2a0(),_0x4fec17=_0x33ac97['creator']['id'],_0x30901e=_0x33ac97['type']+(_0x33ac97['subType']?':'+_0x33ac97['subType']:'');this['_setSuggestionData']({'id':_0x1ccf1d,'type':_0x30901e,'createdAt':new Date(),'authorId':_0x4fec17,'originalSuggestionId':_0x33ac97['id'],'attributes':_0x33ac97['attributes'],'data':_0x33ac97['data']});const _0x3a731f=this['_getAttributeKey'](_0x33ac97);('formatBlock'==_0x33ac97['type']||_0x3a731f&&this['_isBlockAttribute'](_0x3a731f))&&(_0x80a398=this['_model']['createPositionBefore'](_0x80a398['parent'])),this['_addSuggestionMarker'](_0x30901e,_0x1ccf1d,_0x4fec17,this['_model']['createRange'](_0x80a398,_0x4704a0));}['_findSuggestions'](_0x8f837e,_0x7d4b2a=null){const _0xbe0723=[],_0x4fefbb=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x8f837e)||(_0x8f837e=[_0x8f837e]);for(const _0x34a307 of this['getSuggestions']()){if(!_0x34a307['isInContent'])continue;if(_0x7d4b2a&&_0x34a307['type']!=_0x7d4b2a)continue;let _0xdb3a77=!0x1;for(const _0x3f0ff5 of _0x34a307['getRanges']()){for(const _0x416346 of _0x8f837e){const _0xf5675c=_0x416346['start']['isEqual'](_0x3f0ff5['end'])||_0x416346['end']['isEqual'](_0x3f0ff5['start']);if(_0xf5675c||_0x416346['getIntersection'](_0x3f0ff5)){const _0x370dc6=_0x416346['containsRange'](_0x3f0ff5)&&Rt(this['_model']['schema'],_0x3f0ff5['start'],_0x416346),_0x16da92=_0x3f0ff5['containsRange'](_0x416346)&&Rt(this['_model']['schema'],_0x416346['start'],_0x3f0ff5);_0xbe0723['push']({'suggestion':_0x34a307,'meta':{'isOwn':_0x4fefbb==_0x34a307['author'],'isNextTo':_0xf5675c,'isInsideObject':_0x370dc6,'containsRangeInObject':_0x16da92}}),_0xdb3a77=!0x0;break;}}if(_0xdb3a77)break;}}return _0xbe0723;}['_addSuggestionMarker'](_0x1a0844,_0x27de87,_0x3e3b92,_0x2e9f72,_0x3d0b0d){this['_model']['change'](_0x7e8e63=>{let _0x9b3248='suggestion:'+_0x1a0844+':'+_0x27de87+':'+_0x3e3b92;_0x3d0b0d&&(_0x9b3248=_0x9b3248+':'+_0x3d0b0d),_0x7e8e63['addMarker'](_0x9b3248,{'range':_0x2e9f72,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x335070){const _0x464b91=_0x335070['previous'],_0x4ffe91=_0x335070['next'];_0x335070['previous']=null,_0x335070['next']=null,null!=_0x464b91&&_0x464b91['next']==_0x335070&&(_0x464b91['next']=_0x4ffe91),null!=_0x4ffe91&&_0x4ffe91['previous']==_0x335070&&(_0x4ffe91['previous']=_0x464b91),'ready'==this['_suggestionState']['get'](_0x335070)&&(this['_suggestionState']['set'](_0x335070,'removed'),this['fire']('suggestionUnloaded',_0x335070,_0x464b91,_0x4ffe91));}['_setSuggestionData'](_0x289b7a){const _0x458edc=_0x289b7a['id'],_0x4737dc=this['addSuggestionData'](_0x289b7a);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xd31575=this['editor']['plugins']['get']('PendingActions'),_0x3256a0=_0x4737dc['hasComments'],_0x331bf1=_0x4737dc['subType']?_0x4737dc['type']+':'+_0x4737dc['subType']:_0x4737dc['type'],_0x184b5d=this['editor']['locale'],_0x51f580=_0xd31575['add'](o(_0x184b5d,'PENDING_ACTION_SUGGESTION')),_0x1c1c63={'id':_0x458edc,'type':_0x331bf1,'hasComments':_0x3256a0,'data':_0x289b7a['data']||null,'originalSuggestionId':_0x289b7a['originalSuggestionId']||null,'attributes':_0x4737dc['attributes']};this['_adapter']['addSuggestion'](_0x1c1c63)['then'](_0x4b95eb=>{_0x4737dc['_saved']=!0x0,_0xd31575['remove'](_0x51f580),_0x4b95eb&&_0x4b95eb['createdAt']&&(this['_suggestions']['get'](_0x458edc)['createdAt']=_0x4b95eb['createdAt']);})['catch'](_0x1b0607=>{throw _0x54a9b3('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x4737dc['discard']();}),_0x4737dc['stopListening'](),this['_suggestions']['delete'](_0x4737dc['id']),this['_suggestionState']['delete'](_0x4737dc),_0x1b0607;});}return _0x4737dc;}['_isBlockAttribute'](_0x4bd8c7){return this['_blockAttributeKeys']['has'](_0x4bd8c7);}['_updateSuggestionData'](_0x59e6b3,_0x5110db){const _0x2f81b6=this['editor']['plugins']['get']('PendingActions'),_0x69e359=this['getSuggestion'](_0x59e6b3);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x69e359['_saved']){const _0x437121=_0x2f81b6['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x59e6b3,_0x5110db)['then'](()=>{_0x2f81b6['remove'](_0x437121);});}else _0x69e359['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x59e6b3,_0x5110db);});}}['_getSuggestionData'](_0x47b76c){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x274ec5('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x47b76c);}['_handleNewSuggestionMarker'](_0xb8c0d0){const {id:_0x486773,type:_0x574c5c,subType:_0x485e7f,authorId:_0x53cff2}=this['_splitMarkerName'](_0xb8c0d0),_0x32a5fd=this['_suggestions']['get'](_0x486773)||this['_createSuggestion'](_0x574c5c,_0x485e7f,_0x486773,_0x53cff2,{});switch(this['_checkSuggestionCorrectness'](_0x32a5fd,_0x574c5c,_0x485e7f,_0x53cff2),this['_suggestionState']['get'](_0x32a5fd)){case'notReady':this['_getSuggestionData'](_0x486773)['then'](_0x2068bd=>{let _0x42d9f8=Promise['resolve']();_0x2068bd['hasComments']&&(_0x42d9f8=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x486773})),_0x42d9f8['then'](()=>{this['addSuggestionData'](_0x2068bd)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a5fd,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x486773,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a5fd,'ready'),this['fire']('suggestionLoaded',_0x32a5fd);break;case'ready':this['fire']('suggestionChanged',_0x32a5fd);}return _0x32a5fd['addMarkerName'](_0xb8c0d0),_0x32a5fd;}['_refreshSuggestionsChain'](_0x85a39d){const _0x10b722=Array['from'](_0x85a39d),_0x95d6f3=_0x10b722['filter'](_0x3fdb7e=>'attribute'==_0x3fdb7e['type']);this['_refreshAttributeSuggestionsChain'](_0x95d6f3);const _0x49756c=_0x10b722['filter'](_0x3038bd=>!_0x3038bd['isMultiRange']&&'attribute'!=_0x3038bd['type']),_0x56d3c0=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3acd95=>!_0x3acd95['isMultiRange']&&'attribute'!=_0x3acd95['type']),_0x54c8af=_0x56d3c0['filter'](_0xd9beda=>!_0x85a39d['has'](_0xd9beda)),_0xb91924=new Map(_0x56d3c0['map'](_0x532b41=>[_0x532b41,this['_suggestionFactory']['getSuggestionCallback'](_0x532b41['type'],_0x532b41['subType'],'chain')])),_0x326b8d=new Map(_0x56d3c0['map'](_0x27e89d=>[_0x27e89d,_0x27e89d['getFirstRange']()])),_0x352f0b=new Set(),_0x4b44b8=new Set();for(let _0x46172d=0x0;_0x46172d<_0x49756c['length'];_0x46172d++)_0x4e62c5(_0x49756c[_0x46172d],_0x49756c,_0x46172d+0x1);for(let _0xd40057=0x0;_0xd40057<_0x49756c['length'];_0xd40057++)_0x4e62c5(_0x49756c[_0xd40057],_0x54c8af,0x0);const _0x285ad4=new Set();for(let _0x30681d=0x0;_0x30681d<_0x49756c['length'];_0x30681d++){const _0x44f324=_0x49756c[_0x30681d];!_0x4b44b8['has'](_0x44f324)&&_0x44f324['previous']&&(_0x285ad4['add'](_0x44f324['previous']),_0x44f324['previous']['next']===_0x44f324&&(_0x44f324['previous']['next']=null),_0x44f324['previous']=null),!_0x352f0b['has'](_0x44f324)&&_0x44f324['next']&&(_0x285ad4['add'](_0x44f324['next']),_0x44f324['next']['previous']===_0x44f324&&(_0x44f324['next']['previous']=null),_0x44f324['next']=null);}function _0x4e62c5(_0x18d1e8,_0x341d03,_0x40e591){for(let _0xedea03=_0x40e591;_0xedea03<_0x341d03['length'];_0xedea03++){const _0xb5ce05=_0x474242(_0x18d1e8,_0x341d03[_0xedea03]);_0xb5ce05&&(_0xb5ce05[0x0]['next']=_0xb5ce05[0x1],_0xb5ce05[0x1]['previous']=_0xb5ce05[0x0],_0x352f0b['add'](_0xb5ce05[0x0]),_0x4b44b8['add'](_0xb5ce05[0x1]));}}function _0x474242(_0x576b90,_0x45a762){if(_0x576b90['author']['id']!==_0x45a762['author']['id'])return null;const _0x2acc3c=_0xb91924['get'](_0x576b90)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762));if(!_0x2acc3c)return null;return _0xb91924['get'](_0x45a762)(_0x576b90,_0x45a762,_0x326b8d['get'](_0x576b90),_0x326b8d['get'](_0x45a762))?_0x2acc3c[0x1]['commentThread']&&_0x2acc3c[0x1]['commentThread']['length']?null:_0x2acc3c:null;}_0x285ad4['size']&&this['_refreshSuggestionsChain'](_0x285ad4);}['_refreshAttributeSuggestionsChain'](_0x44bea6){if(0x0==_0x44bea6['length'])return;const _0x30d3f3=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x4f0660=>'attribute'==_0x4f0660['type']&&_0x4f0660['_isDataLoaded']),_0xcbb2e3=[],_0x182093=new Map();for(const _0x3592a1 of _0x30d3f3){const _0x20a4ab=_0x478958(_0x3592a1['attributes']);_0x182093['has'](_0x20a4ab)||(_0x182093['set'](_0x20a4ab,_0xcbb2e3['length']),_0xcbb2e3['push']([]));const _0x4b61aa=_0x182093['get'](_0x20a4ab);_0xcbb2e3[_0x4b61aa]['push'](_0x3592a1);}!(function(){_0xcbb2e3['sort']((_0x5068f4,_0x88bf5e)=>{const _0x21dd78=_0x5068f4[0x0]['createdAt'],_0x516885=_0x88bf5e[0x0]['createdAt'];return _0x21dd78==_0x516885?_0x5068f4[0x0]['attributes']['groupId']<_0x88bf5e[0x0]['attributes']['groupId']?-0x1:0x1:_0x21dd78<_0x516885?-0x1:0x1;});for(const _0x32e949 of _0xcbb2e3)_0x32e949['sort']((_0x2a6e48,_0x4daf24)=>_0x2a6e48['id']<_0x4daf24['id']?-0x1:0x1);}());for(let _0x4d5cac=0x0;_0x4d5cac<_0xcbb2e3['length'];_0x4d5cac++){if(0x0==_0xcbb2e3[_0x4d5cac]['length'])continue;const _0x2e0db2=[];for(let _0xc1946f=_0x4d5cac+0x1;_0xc1946f<_0xcbb2e3['length'];_0xc1946f++)0x0!=_0xcbb2e3[_0xc1946f]['length']&&_0xeaa73(_0xcbb2e3[_0x4d5cac],_0xcbb2e3[_0xc1946f])&&_0x2e0db2['push'](_0xc1946f);for(const _0x5b457a of _0x2e0db2)_0xcbb2e3[_0x4d5cac]=_0xcbb2e3[_0x4d5cac]['concat'](_0xcbb2e3[_0x5b457a]),_0xcbb2e3[_0x5b457a]=[];}for(const _0x3054ab of _0xcbb2e3)for(let _0x2d72ee=0x0;_0x2d72ee<_0x3054ab['length'];_0x2d72ee++)_0x3054ab[_0x2d72ee]['next']=_0x3054ab[_0x2d72ee+0x1]||null;for(const _0x286c1a of _0xcbb2e3)for(let _0x220410=0x0;_0x220410<_0x286c1a['length'];_0x220410++)_0x286c1a[_0x220410]['previous']=_0x286c1a[_0x220410-0x1]||null;function _0xeaa73(_0x116fd0,_0x642c79){if(_0x116fd0[0x0]['attributes']['groupId']!==_0x642c79[0x0]['attributes']['groupId']&&_0x116fd0[0x0]['author']!==_0x642c79[0x0]['author'])return!0x1;if(!function(_0x12766e,_0x456092){if(!_0x12766e['hasComments']&&!_0x456092['hasComments'])return!0x0;if(_0x12766e['hasComments']&&_0x456092['hasComments'])return!0x1;if(_0x12766e['hasComments']&&_0x456092['createdAt']<_0x12766e['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x456092['hasComments']&&_0x12766e['createdAt']<_0x456092['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x116fd0[0x0],_0x642c79[0x0]))return!0x1;const _0x4d0300=Bt(_0x116fd0[0x0]['attributes'],'groupId'),_0x525030=Bt(_0x642c79[0x0]['attributes'],'groupId');if(!_0x7f9970(_0x4d0300,_0x525030))return!0x1;return!!_0x116fd0['every'](_0x3d2c22=>_0x642c79['some'](_0x80da6e=>_0x3d2c22['getFirstRange']()['isEqual'](_0x80da6e['getFirstRange']())))&&_0x642c79['every'](_0x1a1d6e=>_0x116fd0['some'](_0x52100d=>_0x1a1d6e['getFirstRange']()['isEqual'](_0x52100d['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0xd22c92){const _0x26ea4d=Array['from'](_0xd22c92),_0x38ee69=this['getSuggestions']({'skipNotAttached':!0x0}),_0x4a71ab=_0x38ee69['filter'](_0x52985b=>!_0xd22c92['has'](_0x52985b)),_0x3fbf6e=new Map(_0x26ea4d['map'](_0x1b6d98=>[_0x1b6d98,this['_suggestionFactory']['getSuggestionCallback'](_0x1b6d98['type'],_0x1b6d98['subType'],'join')])),_0x3779ab=new Map(_0x38ee69['map'](_0x5a89ce=>[_0x5a89ce,_0x5a89ce['getRanges']()]));for(let _0x448013=0x0;_0x448013<_0x26ea4d['length'];_0x448013++){if(_0x49563a(this,_0x26ea4d[_0x448013],_0x26ea4d,_0x448013+0x1))return!0x0;}for(let _0x24e135=0x0;_0x24e135<_0x26ea4d['length'];_0x24e135++){if(_0x49563a(this,_0x26ea4d[_0x24e135],_0x4a71ab,0x0))return!0x0;}return!0x1;function _0x49563a(_0x1ed6fb,_0x19b54f,_0x51e184,_0x2f95af){for(let _0x1fb51a=_0x2f95af;_0x1fb51a<_0x51e184['length'];_0x1fb51a++){const _0x12d002=_0x51e184[_0x1fb51a];if(_0x12d002['type']!==_0x19b54f['type']||_0x12d002['author']['id']!==_0x19b54f['author']['id']||_0x12d002['subType']!==_0x19b54f['subType'])continue;if(!Pt(_0x19b54f,_0x12d002,['groupId']))continue;if('attribute'==_0x19b54f['type']&&_0x19b54f['data']['oldValue']!=_0x12d002['data']['oldValue'])continue;if('attribute'==_0x19b54f['type']&&_0x1ed6fb['_isBlockAttribute'](_0x19b54f['data']['key']))continue;if('formatBlock'==_0x19b54f['type']){const _0x195e55=_0x1ed6fb['editor']['model'],_0xfe8326=_0x19b54f['getContainedElement']();if(_0xfe8326&&(_0x195e55['schema']['isObject'](_0xfe8326)||_0x195e55['schema']['isLimit'](_0xfe8326)))continue;}const _0x2c3635=_0x3fbf6e['get'](_0x19b54f),_0x45530d=_0x3779ab['get'](_0x19b54f),_0x2d394d=_0x3779ab['get'](_0x12d002),_0x3456ab=_0x19b54f['commentThread']&&_0x19b54f['commentThread']['length'],_0xf96e64=_0x12d002['commentThread']&&_0x12d002['commentThread']['length'];if(!_0x3456ab&&_0x2c3635(_0x2d394d,_0x45530d))return _0x1ed6fb['_joinSuggestions'](_0x12d002,_0x19b54f),_0x3779ab['delete'](_0x19b54f),!0x0;if(!_0xf96e64&&_0x2c3635(_0x45530d,_0x2d394d))return _0x1ed6fb['_joinSuggestions'](_0x19b54f,_0x12d002),_0x3779ab['delete'](_0x12d002),!0x0;}return!0x1;}}['_joinSuggestions'](_0x2618c3,_0x1637f8){if(_0x2618c3['isMultiRange']){for(const _0x1c03f4 of _0x1637f8['getRanges']())_0x2618c3['addRange'](_0x1c03f4);}else{const _0x40297d=_0x1637f8['getFirstRange']()['end'];this['_setSuggestionRange'](_0x2618c3,this['_model']['createRange'](_0x2618c3['getFirstRange']()['start'],_0x40297d));}_0x1637f8['removeMarkers']();}['_getMarkerAnnouncementText'](_0x427318,_0x1ed516){const _0x2b769a=_0x427318['startsWith']('format')||_0x427318['startsWith']('attribute')?'FORMATTING':_0x427318['toUpperCase']();return o(this['editor']['locale'],_0x1ed516+'_'+_0x2b769a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x49cf09=this['editor'];if(!_0x49cf09['ui'])return;const {ariaLiveAnnouncer:_0x5c44c7}=_0x49cf09['ui'];_0x31dd0a(this['_model'],({left:_0x16ae5b,entered:_0x11b92b})=>{for(const _0x4c9899 of _0x16ae5b){const {group:_0x19ef80,type:_0x5b20e0}=this['_splitMarkerName'](_0x4c9899['name']);if('suggestion'===_0x19ef80){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x5b20e0,'LEAVE'));break;}}for(const _0x4ec730 of _0x11b92b){const {group:_0x298fdd,type:_0x30471b}=this['_splitMarkerName'](_0x4ec730['name']);if('suggestion'===_0x298fdd){_0x5c44c7['announce'](this['_getMarkerAnnouncementText'](_0x30471b,'ENTER'));break;}}});}['_processAttributeChanges'](_0x1e6b6b){if(this['_recordAttributeSuggestions'])return!0x1;const _0x489200=this['editor'],_0x39df82=_0x489200['model']['document']['differ']['getChanges']();if(0x0==_0x39df82['length'])return!0x1;const _0x3b99fa=[],_0x5e16d7=_0x39df82['filter'](_0x522dbd=>'attribute'==_0x522dbd['type']),_0x41ad22=_0x39df82['filter'](_0x1aae45=>'insert'==_0x1aae45['type']&&'$text'!=_0x1aae45['name']),_0x623c4c=_0x39df82['filter'](_0x5ecc86=>'remove'==_0x5ecc86['type']&&'$text'!=_0x5ecc86['name']);for(const _0xf63a63 of _0x5e16d7)_0x3b99fa['push']({'key':_0xf63a63['attributeKey'],'newValue':_0xf63a63['attributeNewValue'],'oldValue':_0xf63a63['attributeOldValue'],'range':Ot(_0xf63a63['range'],_0x489200['model'])});for(const _0x173d85 of _0x41ad22){const _0x3ba83f=_0x623c4c['find'](_0x3ee7be=>_0x3ee7be['position']['isEqual'](_0x173d85['position']));_0x3ba83f&&_0x3b99fa['push']({'key':m,'newValue':_0x173d85['name'],'oldValue':_0x3ba83f['name'],'range':_0x489200['model']['createRangeOn'](_0x173d85['position']['nodeAfter'])});}return 0x0!=_0x3b99fa['length']&&this['_reduceExistingSuggestions'](_0x1e6b6b,_0x3b99fa);}['_processAttributeSuggestions'](_0x771c63){let _0x438116=!0x1;const _0x336ab3=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x473f7f=>_0x473f7f['data']['newRange']&&_0x473f7f['name']['startsWith']('suggestion:attribute:'));for(const _0x27b224 of _0x336ab3){const {subType:_0x283342,id:_0xff8188}=this['_splitMarkerName'](_0x27b224['name']),_0x157837=_0x283342['split']('|')[0x0];for(const _0x333570 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x333570['id']!=_0xff8188&&'attribute'==_0x333570['type']&&_0x333570['data']&&_0x333570['data']['key']==_0x157837&&_0x333570['getFirstRange']()['isIntersecting'](_0x27b224['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x333570,_0x27b224['data']['newRange'],_0x771c63),_0x438116=!0x0);}return _0x438116;}['_recordAttributeChanges'](_0x284213){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x284213();}['_isRegisteredAttribute'](_0x4d12ed){const _0x43fa84=this['_isBlockAttribute'](_0x4d12ed),_0x1d2ad2=this['_inlineAttributeKeys']['has'](_0x4d12ed);return _0x43fa84||_0x1d2ad2;}['_reduceExistingSuggestions'](_0x2c6d4f,_0x2517e5){if(0x0==_0x2517e5['length'])return!0x1;let _0x255644=!0x1;for(const _0x144c83 of _0x2517e5){const _0x319d58=this['_findSuggestions'](_0x144c83['range'],'attribute')['filter'](_0x592e19=>!_0x592e19['meta']['isNextTo'])['map'](_0x58ddf8=>_0x58ddf8['suggestion']),_0x2acf17=_0x478958({'newValue':_0x144c83['newValue']});_0x319d58['filter'](_0x2e8136=>{const [_0x4c11ab,_0x4d0114]=_0x2e8136['subType']['split']('|');return _0x4c11ab==_0x144c83['key']&&_0x4d0114!=_0x2acf17;})['forEach'](_0x23688e=>{this['_reduceSuggestionAttributeRange'](_0x23688e,_0x144c83['range'],_0x2c6d4f),_0x255644=!0x0;});}return _0x255644;}['_reduceSuggestionAttributeRange'](_0x25ac82,_0x33ee2f,_0x1b3501){const _0x4f936a=_0x25ac82['getFirstRange']()['getDifference'](_0x33ee2f);0x0!==_0x4f936a['length']?0x1!==_0x4f936a['length']?this['_breakSuggestionMarker'](_0x25ac82,_0x33ee2f['start'],_0x33ee2f['end']):this['_setSuggestionRange'](_0x25ac82,_0x4f936a[0x0]):_0x1b3501['removeMarker'](_0x25ac82['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x467e96){this['_editor']=_0x467e96,this['_model']=_0x467e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x2403be,_0x1b2ce6,_0x4017f5,_0xefede4,_0xb5a904,_0x11ae04){return new u(this['_model'],{'type':_0x2403be,'subType':_0x1b2ce6,'id':_0x4017f5,'author':_0xefede4,'creator':_0xefede4,'attributes':_0xb5a904,'onAttributesChange':_0x11ae04,'onAccept':(..._0x4ccc74)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'accept')(..._0x4ccc74),'onDiscard':(..._0x11e1b3)=>this['getSuggestionCallback'](_0x2403be,_0x1b2ce6,'discard')(..._0x11e1b3)});}['registerCustomCallback'](_0x34a086,_0x5893ad,_0x487ada,_0x322fc5){const _0x1d5dd6=_0x34a086+':'+_0x5893ad+':'+_0x487ada;this['_customCallbacks']['set'](_0x1d5dd6,_0x322fc5);}['getSuggestionCallback'](_0x27590a,_0x4e7267,_0x1b2cad){const _0x122112=_0x27590a+':'+_0x4e7267+':'+_0x1b2cad;return this['_customCallbacks']['get'](_0x122112)||this['_defaultCallbacks']['get'](_0x27590a+':'+_0x1b2cad);}['_registerDefaultCallbacks'](){const _0x5d1685=()=>!0x1,_0x5af012=_0x4ce496=>{_0x4ce496['sort']((_0x33b40a,_0x212fe8)=>_0x33b40a['start']['isBefore'](_0x212fe8['start'])?0x1:-0x1),this['_model']['change'](_0xbcbd90=>{for(const _0x71f8 of _0x4ce496){let _0x39d9a7;_0x39d9a7=_0x71f8['end']['isAtEnd']&&_0x71f8['end']['parent']==_0x71f8['start']['nodeAfter']?_0xbcbd90['createSelection'](_0x71f8['start']['nodeAfter'],'on'):_0xbcbd90['createSelection'](_0x71f8),this['_model']['deleteContent'](_0x39d9a7,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x2f6dc1=(_0x3e76a8,_0x2ca5f5)=>{_0x2ca5f5&&this['_model']['change'](_0x41cb48=>{const {commandName:_0x414014,commandParams:_0x367795=[]}=_0x2ca5f5,_0x1acee3=_0x3e76a8['map'](_0x566756=>(Tt(_0x566756)&&(_0x566756=this['_model']['createRange'](_0x566756['end'])),_0x566756))['filter'](_0x5c8017=>'$graveyard'!==_0x5c8017['root']['rootName']);if(_0x1acee3['length']<0x1)return;const _0x603366=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bdbfe=>_0xe90ba7['fromRange'](_0x5bdbfe));_0x41cb48['setSelection'](_0x1acee3);for(const _0x435fb5 of this['_editor']['commands']['commands']())_0x435fb5['refresh']();_0x367795['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x414014,..._0x367795);const _0x394c8b=_0x603366['filter'](_0x440917=>'$graveyard'!=_0x440917['root']['rootName']);_0x394c8b['length']>0x0&&_0x41cb48['setSelection'](_0x394c8b);for(const _0xf1835b of _0x603366)_0xf1835b['detach']();});},_0x2b055f=(_0x3e3bc7,_0x4f946a)=>0x1==_0x3e3bc7['length']&&0x1==_0x4f946a['length']&&_0x3e3bc7[0x0]['end']['isEqual'](_0x4f946a[0x0]['start']),_0x36f65a=(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8)=>Ft(_0x4e6131,_0x23ec56,_0x7b12c3,_0x197eb8,this['_model'])?[_0x4e6131,_0x23ec56]:Ft(_0x23ec56,_0x4e6131,_0x197eb8,_0x7b12c3,this['_model'])?[_0x23ec56,_0x4e6131]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x5d1685),this['_defaultCallbacks']['set']('insertion:discard',_0x5af012),this['_defaultCallbacks']['set']('insertion:join',_0x2b055f),this['_defaultCallbacks']['set']('insertion:chain',_0x36f65a),this['_defaultCallbacks']['set']('deletion:accept',_0x5af012),this['_defaultCallbacks']['set']('deletion:discard',_0x5d1685),this['_defaultCallbacks']['set']('deletion:join',_0x2b055f),this['_defaultCallbacks']['set']('deletion:chain',_0x36f65a),this['_defaultCallbacks']['set']('formatInline:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatInline:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatInline:join',_0x2b055f),this['_defaultCallbacks']['set']('formatInline:chain',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:accept',_0x2f6dc1),this['_defaultCallbacks']['set']('formatBlock:discard',_0x5d1685),this['_defaultCallbacks']['set']('formatBlock:join',_0x2b055f),this['_defaultCallbacks']['set']('formatBlock:chain',_0x5d1685),this['_defaultCallbacks']['set']('attribute:accept',_0x5d1685),this['_defaultCallbacks']['set']('attribute:discard',(_0x3bbf3f,_0x5e2637)=>{if(!_0x5e2637)return;const _0x33a76c=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x18dc6f=>{if(_0x5e2637['key']==m)for(const _0x5eae5e of _0x3bbf3f){const _0x4e3512=_0x5eae5e['start']['nodeAfter'],_0x34129b=_0x5e2637['oldValue'];_0x18dc6f['rename'](_0x4e3512,_0x34129b);}else{if(_0x33a76c['_isBlockAttribute'](_0x5e2637['key'])){for(const _0x155874 of _0x3bbf3f)void 0x0!==_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x155874['start']['nodeAfter']):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x155874['start']['nodeAfter']);}else{for(const _0x27f506 of _0x3bbf3f)_0x5e2637['oldValue']?_0x18dc6f['setAttribute'](_0x5e2637['key'],_0x5e2637['oldValue'],_0x27f506):_0x18dc6f['removeAttribute'](_0x5e2637['key'],_0x27f506);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x2b055f);}}function Rt(_0x3749c3,_0x156a1f,_0x21a85a){for(const _0x188794 of _0x156a1f['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x188794['root']==_0x188794)return!0x1;if(!_0x21a85a['containsItem'](_0x188794))return!0x1;if(_0x3749c3['isObject'](_0x188794)||_0x3749c3['isLimit'](_0x188794))return!0x0;}return!0x1;}function Tt(_0x4a482d){return _0x4a482d['end']['parent']==_0x4a482d['start']['nodeAfter']&&_0x4a482d['end']['isAtStart'];}function Et(_0x5e3a27,_0xe65ed,_0x57f335,_0x4cea49){const _0x27dc05=_0x41edf2=>!_0x41edf2['item']['is']('$textProxy')&&!_0x4cea49['isObject'](_0x41edf2['item']),_0x4adb2b=_0x5e3a27['start']['getLastMatchingPosition'](_0x27dc05),_0x158484=_0x5e3a27['end']['getLastMatchingPosition'](_0x27dc05,{'direction':'backward'});return(!_0x5e3a27['start']['isEqual'](_0x4adb2b)||!_0x5e3a27['end']['isEqual'](_0x158484))&&(_0x4adb2b['isBefore'](_0x158484)?_0x57f335['updateMarker'](_0xe65ed,{'range':_0x57f335['createRange'](_0x4adb2b,_0x158484)}):_0x57f335['removeMarker'](_0xe65ed),!0x0);}function Vt(_0xf8e840){return _0x478958(_0xf8e840);}function Ut(_0x5cfbad){const _0x4ca886=_0x5cfbad['start']['nodeAfter'];return _0x4ca886&&_0x4ca886['is']('element');}function Ot(_0x161d7d,_0x4c6321){return null==_0x161d7d['end']['nodeBefore']&&_0x161d7d['end']['parent']==_0x161d7d['start']['nodeAfter']?Gt(_0x161d7d['start']['nodeAfter'],_0x4c6321):_0x161d7d;}function Gt(_0x195a86,_0x21102d){const _0x4ddd00=_0x21102d['schema']['isObject'](_0x195a86)||_0x21102d['schema']['isSelectable'](_0x195a86);return _0x21102d['createRange'](_0x21102d['createPositionAt'](_0x195a86,'before'),_0x4ddd00?_0x21102d['createPositionAfter'](_0x195a86):_0x21102d['createPositionAt'](_0x195a86,'end'));}function Ft(_0x436010,_0x519b0a,_0x16dbec,_0x2238b8,_0x5f35ac){if(!Pt(_0x436010,_0x519b0a))return!0x1;if(_0x16dbec['end']['isEqual'](_0x2238b8['start']))return!0x0;if(_0x436010['type']!=_0x519b0a['type'])return!0x1;if(!_0x16dbec['end']['isTouching'](_0x2238b8['start']))return!0x1;const _0x3a1218=_0x5f35ac['createRange'](_0x16dbec['end'],_0x2238b8['start'])['getWalker']();for(const _0x24c91f of _0x3a1218)if(['elementStart','elementEnd']['includes'](_0x24c91f['type'])&&_0x5f35ac['schema']['isLimit'](_0x24c91f['item']))return!0x1;return!0x0;}function Pt(_0x43fd59,_0x55d519,_0x4da7dd=[]){return!(!_0x43fd59['_isDataLoaded']||!_0x55d519['_isDataLoaded'])&&_0x7f9970(Bt(_0x43fd59['attributes'],_0x4da7dd),Bt(_0x55d519['attributes'],_0x4da7dd));}function Lt(_0x2b36f0,_0xe52f9c){const _0x3abb13=Ht(_0x2b36f0['attributes']),_0x5985d9=Ht(_0xe52f9c);if(!_0x2b36f0['_isDataLoaded'])return!0x1;for(const _0x18a394 of Object['keys'](_0x5985d9))if(!_0x7f9970(_0x3abb13[_0x18a394],_0x5985d9[_0x18a394]))return!0x1;return!0x0;}function Ht(_0x253aa3){const _0x364e9f=Object['assign']({},_0x253aa3);return delete _0x364e9f['skipNestingCheck'],delete _0x364e9f['tablePasteChainId'],_0x364e9f;}class oe extends/* #__PURE__ -- @preserve */
25
- _0x29d385(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x1c9377,_0x105139,_0x3f749e,_0x147535){super(),this['model']=_0x105139,this['view']=_0x3f749e,this['commentThreadController']=_0x147535,this['_editor']=_0x1c9377,this['_acceptCommand']=_0x1c9377['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1c9377['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x375f3c,_0x508e2)=>_0x375f3c||_0x508e2),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x546f72=>_0x546f72&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x40fa1f=>_0x40fa1f&&this['_editor']['model']['canEditAt'](_0x105139['getRanges']())),this['_pendingAction']=null,_0x3f749e['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x3f749e,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x3f749e,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x3f749e,'change:isDirty',()=>{_0x3f749e['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 _0x137be9=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x137be9);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0xb5144{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x2f421a,_0x2a8f68,_0x4f8181,_0x249389){super(_0x2f421a),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x2a8f68['authoredAt']),this['bind']('authoredAt')['to'](_0x2a8f68),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x2a8f68,this['_localUser']=_0x4f8181,this['_config']=_0x249389,_0x249389['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x3e047a}=this['_config'];this['commentsListView']=new _0x3e047a(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',_0x537e61=>_0x537e61+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x1669c9,_0x222972)=>_0x1669c9||!!_0x222972);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x499dfa}=this['_config'],_0x1aeebd=new _0x499dfa(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x1ff2f6=_0x1aeebd['commentInputView'];return _0x1aeebd['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x1ff2f6,'value',(_0x1ba899,_0x2a7fdb,_0x20533e)=>!!_0x20533e||_0x1ba899&&!_0x2a7fdb),_0x1ff2f6['on']('submit',(_0x3decb2,_0x7d821d)=>{this['fire']('addComment',_0x7d821d),_0x1ff2f6['editor']['setData']('');}),_0x1ff2f6['on']('cancel',()=>this['focus']()),_0x1ff2f6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x1aeebd;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76){super(_0x5762de,_0x38f2b5,_0x3c29c8,_0x23de76),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x4da914=>_0x4da914&&_0x4da914[0x0]?_0x4da914[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x515364,_0x2ad3a8)=>{let _0x35e2a9='';for(const _0x221012 of _0x515364)_0x35e2a9+='<p>'+ds(_0x221012['content'],_0x221012['color'])+'</p>';return _0x2ad3a8?_0x35e2a9:_0x5a6ffe(_0x35e2a9,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x5762de,'Accept\x20suggestion'),_0x4d5335['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x5762de,'Discard\x20suggestion'),_0x4d5335['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5c4290(_0x5762de,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0xca6441=this['bindTemplate'],_0x23b2ad=[{'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':_0xca6441['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0xca6441['to']('authoredAt',_0x34dbe4=>this['_config']['formatDateTime'](_0x34dbe4))}]}]},{'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']&&_0x23b2ad['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x3f6dc9={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0xca6441['if']('isActive','ck-suggestion-wrapper--active'),_0xca6441['to']('type',_0x32ce6b=>'ck-suggestion-'+_0x32ce6b),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x23b2ad}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x3f6dc9['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)),_0x3f6dc9;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x2afea5,_0x43ca9b,_0x227b29)=>{this['_descriptionElement']['innerHTML']=_0x227b29;});}['_createButton'](_0x823b85,_0x56c78d,_0x299869,_0x111919,_0x417f62){const _0x2f8d3a=new _0x548b51(this['locale']);return _0x2f8d3a['set']({'label':_0x823b85,'icon':_0x56c78d,'tooltip':!0x0,'tooltipPosition':_0x417f62}),_0x2f8d3a['extendTemplate']({'attributes':{'class':_0x299869}}),_0x2f8d3a['on']('execute',()=>{this['fire'](_0x111919,this['_model']['id']);}),_0x2f8d3a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x2e2746,_0x89fee5){let _0x165487='';return _0x165487+=_0x2e2746['split']('*')['map']((_0x3baec4,_0x328080)=>_0x328080%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x3baec4)+'</span>':us(_0x3baec4))['join'](''),_0x89fee5&&(_0x165487+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x89fee5['value']+'\x22\x20title=\x22'+_0x89fee5['title']+'\x22></span>'),_0x165487;}function us(_0x6e7f9c){const _0x24c450=document['createElement']('span');return _0x24c450['innerText']=_0x6e7f9c,_0x24c450['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x4104d6{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0xc2c087,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x18c626){super(_0x18c626),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x35ac4c=this['editor']['config'];_0x35ac4c['define']('trackChanges.SuggestionThreadView',ne),_0x35ac4c['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x35ac4c['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x19bd06,_0x46777a){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x39959c,_0x170178]of this['_handleControllerBuffer']){const _0x57cb9a=this['_suggestionToController']['has'](_0x39959c);_0x57cb9a||_0x170178?_0x57cb9a&&_0x170178&&this['_destroyController'](_0x39959c):this['_initializeController'](_0x39959c);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x19bd06,_0x46777a);}['init'](){const _0x39af92=this['editor'],_0x22df7e=_0x39af92['plugins']['get']('TrackChangesEditing'),_0x3cec31=_0x39af92['plugins']['get']('Annotations'),_0x507693=_0x39af92['plugins']['get']('EditorAnnotations'),_0x3fa91c=_0x39af92['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x507693['addSourceCollector'](()=>{const _0x4ba9c6=[];for(const [_0x174299,_0x58b644]of Array['from'](this['_suggestionToController'])){const _0x1c9af0=_0x174299['getAllAdjacentSuggestions'](),_0x480554=[];for(const _0x403576 of _0x1c9af0){if(!_0x403576['isInContent'])continue;if(_0x403576['isMultiRange']){_0x480554['push'](..._0x403576['getRanges']());continue;}const _0x47146c=_0x403576['getFirstRange']();if(_0x480554['length']>0x0){const _0x19c8ca=_0x480554[0x0]['getJoined'](_0x47146c);if(_0x19c8ca){_0x480554[0x0]=_0x19c8ca;continue;}}_0x480554['push'](_0x47146c);}_0x4ba9c6['push']([_0x58b644['view'],_0x480554]);}return _0x4ba9c6;}),this['listenTo'](_0x22df7e,'suggestionLoaded',(_0x39344b,_0x357806)=>{this['listenTo'](_0x357806,'change:previous',(_0x2002c9,_0x4bc623,_0x187705,_0xf577bd)=>{_0x357806['isInContent']&&(null==_0x187705?(this['_updateController'](_0xf577bd['head']),this['_handleSuggestionControllerDelayed'](_0x357806,!0x1)):(this['_updateController'](_0x187705['head']),null==_0xf577bd&&this['_handleSuggestionControllerDelayed'](_0x357806,!0x0)));}),null!==_0x357806['previous']?this['_updateController'](_0x357806['head']):this['_handleSuggestionControllerDelayed'](_0x357806,!0x1);}),this['listenTo'](_0x22df7e,'suggestionUnloaded',(_0xcbf7f0,_0x1a6a61,_0x1a1dd0)=>{this['stopListening'](_0x1a6a61,'change:previous'),this['_handleControllerBuffer']['delete'](_0x1a6a61),this['_suggestionToController']['has'](_0x1a6a61)&&this['_destroyController'](_0x1a6a61),_0x1a1dd0&&this['_updateController'](_0x1a1dd0['head']);}),this['listenTo'](_0x22df7e,'suggestionChanged',(_0xa10dfb,_0x3a9200)=>{this['_updateController'](_0x3a9200);}),this['listenTo'](_0x3cec31,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x3fa91c,'addComment',(_0x283724,{threadId:_0xf03e4f,isFromAdapter:_0x3ff816})=>{if(_0x3ff816||!_0x22df7e['hasSuggestion'](_0xf03e4f))return;const _0x46ba23=_0x22df7e['getSuggestion'](_0xf03e4f);this['_suggestionToController']['get'](_0x46ba23)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x23c45a=this['editor']['plugins']['get']('Annotations'),_0x29a3e4=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5c28be=Array['from'](_0x23c45a['activeAnnotations'],_0x5480d5=>_0x5480d5['innerView'])['filter'](_0x3a43f5=>this['_viewToController']['has'](_0x3a43f5)),_0x572eca=[];for(const _0x2e1a0d of _0x5c28be){const _0x13c921=this['_viewToController']['get'](_0x2e1a0d)['model']['getAllAdjacentSuggestions']();_0x572eca['push'](..._0x13c921['reduce']((_0x38c17b,_0x29a726)=>[..._0x38c17b,..._0x29a726['getMarkerNames']()],[]));}_0x29a3e4['activeMarkers']=_0x572eca;}['_addUIComponentsToFactory'](){const _0xefa9ec=this['editor'],_0x30985f=_0xefa9ec['locale'],_0x4de372=o(_0x30985f,'Track\x20changes'),_0x44855d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4de372,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x30985f,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x1ab4d9 of _0x44855d)if(ae(_0x1ab4d9)){const _0x4f29d4=_0xefa9ec['commands']['get'](_0x1ab4d9['model']['commandName']);_0x1ab4d9['model']['bind']('isOn','isEnabled')['to'](_0x4f29d4,'value','isEnabled');}_0xefa9ec['ui']['componentFactory']['add']('trackChanges',_0x596ec7=>this['_createToolbarButton'](_0x596ec7,_0x44855d,_0x4de372)),_0xefa9ec['ui']['componentFactory']['add']('menuBar:trackChanges',_0x2a3896=>this['_createMenuBarMenu'](_0x2a3896,_0x44855d,_0x4de372));}['_createToolbarButton'](_0x2eaef4,_0x3cd243,_0x41e524){const _0x1240ff=zt(_0x2eaef4,Zt),_0x564d3c=this['editor']['commands']['get']('trackChanges');_0x1240ff['buttonView']['set']({'tooltip':_0x41e524,'label':_0x41e524,'icon':ie}),_0x1240ff['buttonView']['bind']('isOn')['to'](_0x564d3c,'value'),_0x1240ff['buttonView']['on']('execute',()=>{_0x564d3c['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x1240ff,_0x3cd243,{'role':'menu'});const _0x474756=[];for(const _0x253e06 of _0x3cd243)ae(_0x253e06)&&_0x474756['push'](this['editor']['commands']['get'](_0x253e06['model']['commandName']));const _0x2bf98c=_0x1240ff['buttonView'];return _0x2bf98c['actionView']['unbind']('isEnabled'),_0x2bf98c['arrowView']['unbind']('isEnabled'),_0x2bf98c['actionView']['bind']('isEnabled')['to'](_0x564d3c,'isEnabled'),_0x2bf98c['arrowView']['bind']('isEnabled')['toMany'](_0x474756,'isEnabled',(..._0x49c421)=>_0x49c421['some'](_0x242b72=>_0x242b72)),_0x1240ff['on']('execute',_0x506f39=>{this['editor']['execute'](_0x506f39['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x1240ff;}['_createMenuBarMenu'](_0x2e2e96,_0x373c44,_0xcb0d87){const _0x361e51=new Kt(_0x2e2e96),_0x2e66b2=this['editor']['commands']['get']('trackChanges');_0x361e51['buttonView']['set']({'label':_0xcb0d87,'icon':ie});const _0x54f154=new Qt(_0x2e2e96);for(const _0x3c80ce of _0x373c44){if('separator'==_0x3c80ce['type']){_0x54f154['items']['add'](new Jt(_0x2e2e96));continue;}const _0x4f71e9=new Xt(_0x2e2e96,_0x361e51),_0x3e3ee2=new Yt(_0x2e2e96),_0x529333=_0x3c80ce['model'];_0x3e3ee2['bind'](...Object['keys'](_0x529333))['to'](_0x529333),_0x3e3ee2['delegate']('execute')['to'](_0x361e51),_0x3e3ee2['on']('execute',()=>{this['editor']['execute'](_0x529333['commandName']),this['editor']['editing']['view']['focus']();}),_0x4f71e9['children']['add'](_0x3e3ee2),_0x54f154['items']['add'](_0x4f71e9);}return _0x361e51['bind']('isEnabled')['to'](_0x2e66b2,'isEnabled'),_0x361e51['panelView']['children']['add'](_0x54f154),_0x361e51;}['_initializeController'](_0x530ca7){const _0x2638f5=this['editor'],_0xf8a8e6=_0x2638f5['config'],_0x38ff7c=_0x2638f5['plugins']['get']('Annotations'),_0x14d362=_0x2638f5['plugins']['get']('CommentsRepository'),_0xa93ef1=_0x2638f5['plugins']['get']('EditorAnnotations'),_0x422660=_0x2638f5['plugins']['get'](_0xc2c087)['me'],_0x548090=_0xf8a8e6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x1e08b3,CommentThreadInputView:_0x444eac}=_0x2638f5['plugins']['get']('CommentsUI');let _0x15e9fa,_0x45c2db;this['_annotationViews']['has'](_0x530ca7['id'])?(_0x45c2db=this['_annotationViews']['get'](_0x530ca7['id']),_0x15e9fa=_0x45c2db['mainView']):(_0x15e9fa=new _0x548090(_0x2638f5['locale'],_0x530ca7,_0x422660,{'disableComments':this['_disableComments'],'editorConfig':_0xf8a8e6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf8a8e6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf8a8e6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x227821(_0xf8a8e6['get']('locale')),'CommentView':_0xf8a8e6['get']('comments')['CommentView'],'CommentsListView':_0x1e08b3,'CommentThreadInputView':_0x444eac}),_0x15e9fa['acceptButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x15e9fa['discardButton']['on']('execute',()=>{_0x2638f5['editing']['view']['focus']();}),_0x45c2db=_0x38ff7c['createAnnotationView'](this['editor']['locale'],_0x15e9fa),_0x45c2db['bind']('isDirty')['to'](_0x15e9fa,'isDirty'),_0x45c2db['bind']('length')['to'](_0x15e9fa),_0x45c2db['bind']('type')['to'](_0x15e9fa,'type',_0x1f93ca=>'suggestion-'+_0x1f93ca),this['_annotationViews']['set'](_0x530ca7['id'],_0x45c2db));const _0x36e7a4=_0x14d362['createCommentThreadController'](_0x530ca7['commentThread'],_0x15e9fa),_0x2eb3a2=new oe(_0x2638f5,_0x530ca7,_0x15e9fa,_0x36e7a4),_0x29dbee=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x3df3a8=>_0x3df3a8['isInContent']);_0x15e9fa['descriptionParts']=_0x2638f5['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x29dbee),this['_suggestionToController']['set'](_0x530ca7,_0x2eb3a2),this['_viewToController']['set'](_0x15e9fa,_0x2eb3a2);const _0xf82e5b=_0x38ff7c['createAnnotation']({'view':_0x45c2db,'target':()=>{const _0x11e477=[],_0x30cf59=_0x530ca7['getAllAdjacentSuggestions']()['filter'](_0x497364=>_0x497364['isInContent']);for(const _0x54a969 of _0x30cf59)_0x11e477['push'](..._0x54a969['getMarkers']());return _0x2ce1e8(_0x2638f5['editing'],_0x11e477);},'type':()=>'suggestion-'+_0x2eb3a2['view']['type']});_0x14d362['_bindAnnotationToEditors'](_0x15e9fa,_0xf82e5b),_0x38ff7c['add'](_0xf82e5b),_0xa93ef1['registerAnnotation'](_0xf82e5b);}['_destroyController'](_0x1d35af){const _0x5072e0=this['editor']['plugins']['get']('CommentsRepository'),_0x3f6317=this['editor']['plugins']['get']('Annotations'),_0x424460=this['_suggestionToController']['get'](_0x1d35af),_0x2a2dda=_0x424460['view'],_0x320d4f=_0x3f6317['getByInnerView'](_0x2a2dda);_0x5072e0['_unbindEditors'](_0x2a2dda),_0x320d4f&&_0x3f6317['remove'](_0x320d4f),this['_suggestionToController']['delete'](_0x1d35af),this['_viewToController']['delete'](_0x2a2dda),_0x424460['destroy']();}['_updateController'](_0xc0707c){if(!_0xc0707c['isInContent']||!this['_suggestionToController']['has'](_0xc0707c))return;const _0xa7c332=this['editor']['plugins']['get']('TrackChangesEditing'),_0x11a294=this['_suggestionToController']['get'](_0xc0707c),_0x40a8e3=_0xc0707c['getAllAdjacentSuggestions']();_0x11a294['view']['descriptionParts']=_0xa7c332['descriptionFactory']['getDescriptions'](_0x40a8e3);}['destroy'](){for(const _0x26698c of this['_suggestionToController']['keys']())this['_destroyController'](_0x26698c);for(const _0x1b7bac of this['_annotationViews']['values']())_0x1b7bac['mainView']['destroy']();super['destroy']();}}function ae(_0x4724fd){return'model'in _0x4724fd;}class k extends _0x4104d6{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3bd022){this['editor']['plugins']['get'](p)['adapter']=_0x3bd022;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x1d1d45){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x1d1d45);}['getSuggestions']({skipNotAttached:_0xe36eaf=!0x1,toJSON:_0x4565d9=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0xe36eaf,'toJSON':_0x4565d9});}['getSuggestion'](_0x2c1b5c){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x2c1b5c);}}const T=['Pagination'];class P extends _0x4104d6{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x402e83=this['editor'];if(_0x402e83['config']['define']('trackChangesData.editorCreator',_0xf7fe4=>{const _0xd4697c=_0x402e83['model']['document']['getRootNames']()['reduce']((_0x39dba9,_0x3e0727)=>(_0x39dba9[_0x3e0727]='',_0x39dba9),{});return _0x402e83['constructor']['create'](_0xd4697c,_0xf7fe4);}),'function'!=typeof _0x402e83['config']['get']('trackChangesData')['editorCreator'])throw new _0x274ec5('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x3c5b7e){return N(this['editor'],!0x0,_0x3c5b7e);}['getDataWithDiscardedSuggestions'](_0x51ede5){return N(this['editor'],!0x1,_0x51ede5);}}class D extends _0x4104d6{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x36a903){super(_0x36a903),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(_0x5a409c){return void 0x0!==_0x5a409c['getRootsAttributes'];}async function N(_0x4dc90f,_0x430637,_0x465993){const _0x126815=_0xbb1dc2(_0x4dc90f,T);_0x126815['plugins']['push'](p,D),_0x126815['rootsAttributes']=v(_0x4dc90f)?_0x4dc90f['getRootsAttributes']():void 0x0;const _0x44c0c1=document['createDocumentFragment'](),_0x19fcc3=_0x4dc90f['config']['get']('trackChangesData')['editorCreator'],_0x39cf12=await _0x19fcc3(_0x126815,()=>function(_0x273268){const _0x3276f6=document['createElement']('div');return _0x273268['appendChild'](_0x3276f6),_0x3276f6;}(_0x44c0c1));!function(_0x2a933b,_0x2426b9){const _0xf5ff61=_0x2a933b['model']['document']['getRootNames']()['reduce']((_0x35bbc5,_0x742051)=>(_0x35bbc5[_0x742051]=_0x2a933b['data']['get']({'rootName':_0x742051}),_0x35bbc5),{}),_0x1753f4=_0x2a933b['plugins']['get']('Users')['users']['map'](_0x130669=>({'id':_0x130669['id'],'name':_0x130669['name']})),_0x58594f=_0x2a933b['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3667ee=_0x2a933b['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x28d824=_0x2426b9['plugins']['get']('Users'),_0x2e3c5c=_0x2426b9['plugins']['get']('TrackChangesEditing'),_0xe05ff5=_0x2426b9['plugins']['get']('CommentsRepository');for(const _0x11b0e8 of _0x1753f4)_0x28d824['getUser'](_0x11b0e8['id'])||_0x28d824['addUser'](_0x11b0e8);_0x28d824['me']||_0x28d824['useAnonymousUser']();for(const _0x32d646 of _0x3667ee)_0xe05ff5['addCommentThread'](_0x32d646);for(const _0x4eb65c of _0x58594f)_0x2e3c5c['addSuggestionData'](_0x4eb65c);_0x2426b9['data']['set'](_0xf5ff61);}(_0x4dc90f,_0x39cf12),_0x39cf12['execute'](_0x430637?'acceptAllSuggestions':'discardAllSuggestions');const _0x50b115=v(_0x39cf12)?_0x39cf12['getFullData'](_0x465993):_0x39cf12['data']['get'](_0x465993);return await _0x39cf12['destroy'](),_0x50b115;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x2c20e0,PendingActions as _0x4cb717,icons as _0x2c0fde}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x194952,ObservableMixin as _0x44d863,uid as _0xe5f9d9,insertToPriorityArray as _0x3bcf70,priorities as _0x452690,logWarning as _0x442e8e,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x2b913d,View as _0x36730d,ButtonView as _0x4f6b58,ViewModel as te,createDropdown as zt,SplitButtonView as Zt,addListToDropdown as qt,MenuBarMenuView as Kt,MenuBarMenuListView as Qt,ListSeparatorView as Jt,MenuBarMenuListItemView as Xt,MenuBarMenuListItemButtonView as Yt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{Users as _0x18293d,hashObject as _0x223067,surroundingMarkersDetector as _0x16d88b,trimHtml as _0xd4604a,UserView as _0x2db2ee,getDateTimeFormatter as _0x3f1be2,getAllMarkersDomElementsSorted as _0x68ed15,sanitizeEditorConfig as _0x5297a0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x40e498,LiveRange as _0xef9d24,LivePosition as _0x439b21}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x63a0a0,toWidget as _0x375e50}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x3c2cfe,set as _0x439b32,isEqual as _0x58c209,unset as _0x5eadcf,omit as Bt}from'lodash-es';import{Delete as _0x2cce2f,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x58549e,ShiftEnter as _0x34add9}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['_enabledCommands'];constructor(_0x45a1ad,_0xbda993){super(_0x45a1ad),this['_enabledCommands']=_0xbda993,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 _0x41e4b0 of this['editor']['commands']['commands']())_0x41e4b0['affectsData']&&!this['_enabledCommands']['has'](_0x41e4b0)&&_0x41e4b0['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x2d8413 of this['editor']['commands']['commands']())_0x2d8413['affectsData']&&!this['_enabledCommands']['has'](_0x2d8413)&&_0x2d8413['clearForceDisabled']('TrackChangesCommand');}}class $ extends ts{['_suggestions'];constructor(_0x2c0dfb,_0x58f9aa){super(_0x2c0dfb),this['_suggestions']=_0x58f9aa,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x5613db){const _0x15ebb0=this['_suggestions']['get'](_0x5613db);if(!_0x15ebb0)throw new _0x194952('track-changes-accept-suggestion-not-found',this);const _0x38d5f5=_0x15ebb0['getRanges']();this['editor']['model']['canEditAt'](_0x38d5f5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x15ebb0);}}class B extends ts{['_suggestions'];constructor(_0x5eeb1a,_0x2b044f){super(_0x5eeb1a),this['_suggestions']=_0x2b044f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x4296f5){const _0x18bc8f=this['_suggestions']['get'](_0x4296f5);if(!_0x18bc8f)throw new _0x194952('track-changes-discard-suggestion-not-found',this);const _0x10fce5=_0x18bc8f['getRanges']();this['editor']['model']['canEditAt'](_0x10fce5)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x18bc8f);}}function ss(_0xdcfc4){return _0xdcfc4['sort']((_0x39aae3,_0x1dc50f)=>'deletion'==_0x39aae3['type']&&'deletion'!=_0x1dc50f['type']?-0x1:'deletion'!=_0x39aae3['type']&&'deletion'==_0x1dc50f['type']?0x1:0x0);}function to(_0x76ffdc,_0x2ba4ff){let _0x3e248e,_0x3e3e1b=0x0;const _0x2cf4ee=[],_0x3be1b8=_0x2ba4ff['schema'];for(;_0x3e3e1b<_0x76ffdc['length'];){const _0x221bd2=_0x76ffdc[_0x3e3e1b],_0x1273e2=_0x76ffdc[_0x3e3e1b+0x1];_0x3e248e||(_0x3e248e=_0x2ba4ff['createPositionBefore'](_0x221bd2)),co(_0x2ba4ff,_0x221bd2,_0x1273e2)||(_0x2cf4ee['push'](_0x2ba4ff['createRange'](_0x3e248e,_0x3be1b8['isObject'](_0x221bd2)?_0x2ba4ff['createPositionAfter'](_0x221bd2):_0x2ba4ff['createPositionAt'](_0x221bd2,'end'))),_0x3e248e=null),_0x3e3e1b++;}return _0x2cf4ee;}function co(_0x7218f2,_0x160a20,_0x2a46d3){if(!_0x2a46d3)return!0x1;const _0x2f11c4=_0x7218f2['createPositionAfter'](_0x160a20),_0x11a53b=_0x7218f2['createPositionBefore'](_0x2a46d3);return _0x2f11c4['isTouching'](_0x11a53b);}function rs(_0x255d86,_0x420e71,_0x4b7acb){for(;_0x4b7acb['length'];){const _0x26a3db=_0x4b7acb['splice'](0x0,0x64);_0x255d86['change'](()=>{for(const _0xb4e9b of _0x26a3db)_0xb4e9b['isInContent']&&_0x420e71['execute'](_0xb4e9b['id']);});}}class x extends ts{['_command'];['_suggestions'];constructor(_0xb36808,_0x57f8e9,_0x49b2b1){super(_0xb36808),this['_command']=_0x57f8e9,this['_suggestions']=_0x49b2b1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xe582f4=Array['from'](this['_suggestions']['values']())['some'](_0x30d2a4=>_0x30d2a4['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0xe582f4;}['execute'](){const _0x196504=ss(Array['from'](this['_suggestions']['values']()));for(const _0x5ae197 of _0x196504){const _0x25c856=_0x5ae197['getRanges']();if(!this['editor']['model']['canEditAt'](_0x25c856))return;}rs(this['editor']['model'],this['_command'],_0x196504);}}class R extends ts{['_command'];['_suggestions'];['_selectedSuggestions'];constructor(_0x3f3c29,_0x5ee4f6,_0x36dd8b){super(_0x3f3c29),this['_command']=_0x5ee4f6,this['_suggestions']=_0x36dd8b,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}['refresh'](){const _0xdd8a67=this['editor']['model']['document']['selection'],_0xb0cba5=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x54f3a2,_0x3fbffc){const _0x5b28e3=Array['from'](_0x54f3a2['getRanges']()),_0x24534e=new Set();for(const _0x5240d5 of _0x3fbffc)if(_0x5240d5['isInContent']){for(const _0x4b04ba of _0x5b28e3)for(const _0x3b1866 of _0x5240d5['getRanges']())(_0x4b04ba['isIntersecting'](_0x3b1866)||_0x54f3a2['isCollapsed']&&!_0x5240d5['isMultiRange']&&_0x5240d5['next']&&_0x3b1866['end']['isTouching'](_0x4b04ba['start']))&&_0x24534e['add'](_0x5240d5);}return _0x24534e;}(_0xdd8a67,_0xb0cba5),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x420bfc=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5d37f4 of _0x420bfc){const _0x4dde42=_0x5d37f4['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4dde42))return;}rs(this['editor']['model'],this['_command'],_0x420bfc);}}class u extends/* #__PURE__ -- @preserve */
24
+ _0x44d863(){['id'];['type'];['subType'];['author'];['creator'];['isExternal'];['data'];['createdAt'];['_isDataLoaded']=!0x1;['_model'];['_onAccept'];['_onDiscard'];['_onAttributesChange'];['_markerNames'];constructor(_0x578bca,_0x811399){super(),this['id']=_0x811399['id'],this['type']=_0x811399['type'],this['subType']=_0x811399['subType']||null,this['author']=_0x811399['author'],this['creator']=_0x811399['creator']||_0x811399['author'],this['isExternal']=Boolean(_0x811399['attributes']&&_0x811399['attributes']['@external']),this['data']=null,this['_model']=_0x578bca,this['_onAccept']=_0x811399['onAccept'],this['_onDiscard']=_0x811399['onDiscard'],this['_onAttributesChange']=_0x811399['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x811399['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 _0x221871=this;for(;_0x221871['previous'];)_0x221871=_0x221871['previous'];return _0x221871;}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'](_0x53ff24){this['_markerNames']['add'](_0x53ff24);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x112ae0=>this['_model']['markers']['get'](_0x112ae0))['filter'](_0x468145=>_0x468145);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x2c0b4b=>{for(const _0x66200a of this['getMarkers']())_0x2c0b4b['removeMarker'](_0x66200a);}),this['_markerNames']['clear']();}['removeMarker'](_0x278be6){this['_model']['change'](_0x4959ce=>{_0x4959ce['removeMarker'](_0x278be6);}),this['_markerNames']['delete'](_0x278be6);}['addRange'](_0x3ddb32){const _0x3bd601='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x3bd601),this['_model']['change'](_0x484a92=>{_0x484a92['addMarker'](_0x3bd601,{'range':_0x3ddb32,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x3d5120){for(const _0x3f4124 of this['getRanges']())if(_0x3f4124['isIntersecting'](_0x3d5120))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x2646d9=>_0x2646d9['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x4a5c77,_0x20fae4)=>[..._0x4a5c77,..._0x20fae4['getItems']()],[]);}['getFirstRange'](){return this['getFirstMarker']()?.['getRange']()||null;}['getContainedElement'](){const _0x31fbfb=this['getRanges']();if(0x1!=_0x31fbfb['length'])return null;const _0x2fe10a=_0x31fbfb[0x0],_0x1f043b=_0x2fe10a['start']['nodeAfter'],_0x583116=_0x2fe10a['end']['nodeBefore'];return _0x1f043b instanceof _0x40e498?_0x1f043b!=_0x583116?null:_0x1f043b: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 _0x3f6b49=[];let _0x4b3cda=this['head'];for(;_0x4b3cda;)_0x3f6b49['push'](_0x4b3cda),_0x4b3cda=_0x4b3cda['next'];return _0x3f6b49;}['setAttribute'](_0x1cd4df,_0x3ccb96){const _0x409063=_0x3c2cfe(this['attributes']);_0x439b32(_0x409063,_0x1cd4df,_0x3ccb96),_0x58c209(_0x409063,this['attributes'])||(this['attributes']=_0x409063,this['_onAttributesChange'](_0x409063));}['removeAttribute'](_0x1eb66b){const _0x1e57b3=_0x3c2cfe(this['attributes']);_0x5eadcf(_0x1e57b3,_0x1eb66b),_0x58c209(_0x1e57b3,this['attributes'])||(this['attributes']=_0x1e57b3,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 _0xe5f9d9()['substr'](0x1,0x5);}}function o(_0x3ed68e,_0x28fdb1,_0x442393){const t=_0x3ed68e['t'];switch(_0x28fdb1){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',_0x442393);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x442393);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x442393);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x442393);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x442393);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',_0x442393);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x442393);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',_0x442393);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x442393);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x442393);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x442393);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x442393);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x442393);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x442393);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x442393);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x442393);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x442393);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x442393);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x442393);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x442393);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x442393);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x442393);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x442393);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'},_0x442393);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x442393);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x442393);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x442393);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x442393);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x442393);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'},_0x442393);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x442393);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x442393);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x442393);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x442393);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'},_0x442393);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x442393);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'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x442393);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'},_0x442393);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x442393);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x442393);case'ELEMENT_TITLE':return t({'id':'ELEMENT_TITLE','string':'title'});case'EXTERNAL_SUGGESTION':return t({'id':'EXTERNAL_SUGGESTION','string':'This\x20suggestion\x20comes\x20from\x20an\x20external\x20source.'});case'EXTERNAL_IMPORT_WORD_SUGGESTION':return t({'string':'This\x20suggestion\x20comes\x20from\x20an\x20imported\x20Word\x20file.','id':'EXTERNAL_IMPORT_WORD_SUGGESTION'});case'EXTERNAL_AVATAR':return t({'string':'Displayed\x20author\x20name\x20comes\x20from\x20external\x20source\x20(added\x20by\x20%0)','id':'EXTERNAL_AVATAR'},_0x442393);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'},_0x442393);case'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20insertion\x20suggestion.','id':'ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20insertion\x20suggestion.','id':'LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20deletion\x20suggestion.','id':'ENTER_DELETION_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20deletion\x20suggestion.','id':'LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT'});case'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Entering\x20formatting\x20suggestion.','id':'ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT'});case'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT':return t({'string':'Leaving\x20formatting\x20suggestion.','id':'LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT'});default:return _0x28fdb1;}}class f{['_customCallbacks'];['_itemLabels'];['_itemLabelsCallbacks'];['_attributeLabels'];['_schema'];['_locale'];constructor(_0x146e75,_0x37023b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x146e75,this['_locale']=_0x37023b;}['getDescriptions'](_0x35c9d6){const _0x566dfd=[],_0x5d5bec=new Set(),_0x3e951d=new Set();for(let _0x2edb05=0x0;_0x2edb05<_0x35c9d6['length'];_0x2edb05++){const _0x2b8df3=_0x35c9d6[_0x2edb05];if(!_0x2b8df3['isInContent'])continue;const _0x554343=this['_handleCustomCallbackDescription'](_0x2b8df3);if(_0x554343){if(null!=_0x2b8df3['subType']){if(_0x5d5bec['has'](_0x2b8df3['subType']))continue;_0x5d5bec['add'](_0x2b8df3['subType']);}_0x566dfd['push'](_0x554343);}else{if('attribute'!=_0x2b8df3['type'])'insertion'!=_0x2b8df3['type']&&'deletion'!=_0x2b8df3['type']||this['_handleInsertRemoveSuggestionDescription'](_0x566dfd,_0x2b8df3,_0x35c9d6[_0x2edb05+0x1]);else{const _0x5b40a7=_0x2b8df3['data']['key'];if(_0x3e951d['has'](_0x5b40a7))continue;_0x3e951d['add'](_0x2b8df3['data']['key']),_0x5b40a7==m?this['_handleRenameSuggestionDescription'](_0x566dfd,_0x2b8df3):this['_handleAttributeSuggestionDescription'](_0x566dfd,_0x2b8df3);}}}return this['_resolveDescriptionItems'](_0x566dfd);}['registerDescriptionCallback'](_0x14bf5c){this['_customCallbacks']['push'](_0x14bf5c);}['registerElementLabel'](_0x31743e,_0x3c3a70,_0x5295d7=_0x452690['normal']){'function'==typeof _0x31743e?_0x3bcf70(this['_itemLabelsCallbacks'],{'matchingCallback':_0x31743e,'label':_0x3c3a70,'priority':_0x5295d7}):this['_itemLabels']['set'](_0x31743e,_0x3c3a70);}['registerAttributeLabel'](_0x1d3e0c,_0x4fd2bf){this['_attributeLabels']['set'](_0x1d3e0c,_0x4fd2bf);}['getItemLabel'](_0x21c791,_0x4086c6=0x1){let _0x7bc7da;for(const _0xe8d50f of this['_itemLabelsCallbacks'])if(_0xe8d50f['matchingCallback'](_0x21c791)){_0x7bc7da=_0xe8d50f['label'];break;}return _0x7bc7da||(_0x7bc7da=this['_itemLabels']['get'](_0x21c791['name'])),_0x7bc7da?_0x7bc7da(_0x4086c6):0x1!==_0x4086c6?_0x4086c6+'\x20'+_0x21c791['name']+'s':''+_0x21c791['name'];}['_addDescriptionItems'](_0x5d8827,_0x3158a1){const _0x2f0595=_0x3158a1['getFirstRange']()['getWalker'](),_0x42a223='insertion'==_0x3158a1['type']?'add':'remove';for(const _0x92fb0d of _0x2f0595){const _0x2aa078=_0x92fb0d['item'],_0x16f386=_0x5d8827[_0x5d8827['length']-0x1];if(_0x2aa078['is']('$textProxy'))_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),_0x16f386&&'text'==_0x16f386['type']?_0x16f386[_0x42a223]+=_0x2aa078['data']:_0x5d8827['push']({'type':'text','add':'add'==_0x42a223?_0x2aa078['data']:'','remove':'remove'==_0x42a223?_0x2aa078['data']:''});else{if(this['_schema']['isObject'](_0x2aa078)){const _0x19a378=_0x2aa078;if(_0x16f386&&_0x16f386['type']['indexOf']('Container')>-0x1&&_0x5d8827['pop'](),'elementEnd'==_0x92fb0d['type'])continue;_0x16f386&&_0x16f386['type']==_0x42a223+'Object'&&_0x16f386['element']['name']==_0x19a378['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'Object','element':_0x19a378,'quantity':0x1}),_0x2f0595['skip'](_0x11bf8c=>!('elementEnd'==_0x11bf8c['type']&&_0x11bf8c['item']==_0x2aa078));}else{if(this['_schema']['checkChild'](_0x2aa078,'$text')||_0x2aa078['is']('element','softBreak')){const _0x324b80=_0x2aa078;if('add'==_0x42a223&&'elementStart'==_0x92fb0d['type']||'remove'==_0x42a223&&'elementEnd'==_0x92fb0d['type'])continue;if(_0x16f386&&-0x1==_0x16f386['type']['indexOf']('Container')){'text'==_0x16f386['type']&&(_0x16f386[_0x42a223]+='\x0a');continue;}let _0x2b70f9;if(_0x2b70f9='add'==_0x42a223?_0x324b80['nextSibling']&&!this['_schema']['isObject'](_0x324b80['nextSibling'])?_0x324b80['nextSibling']:null:_0x324b80['previousSibling']&&!this['_schema']['isObject'](_0x324b80['previousSibling'])?_0x324b80['previousSibling']:null,_0x324b80['isEmpty']||_0x2b70f9&&_0x2b70f9['isEmpty']){const _0x427a55=_0x2b70f9&&_0x2b70f9['isEmpty']?_0x2b70f9:_0x324b80;_0x16f386&&_0x16f386['type']==_0x42a223+'EmptyContainer'&&_0x16f386['element']['name']==_0x427a55['name']?_0x16f386['quantity']++:_0x5d8827['push']({'type':_0x42a223+'EmptyContainer','element':_0x427a55,'quantity':0x1});}else _0x5d8827['push']({'type':_0x42a223+'Container','element':_0x324b80});}}}}}['_resolveDescriptionItems'](_0x490b0c){const _0x3711bc=this['_locale'],_0x5ed0d0=[],_0x589518=[],_0x486b40=[];for(const _0x3e5c2f of _0x490b0c)switch(_0x3e5c2f['type']){case'text':if(_0x3e5c2f['add']=_0x3e5c2f['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x3e5c2f['remove']=_0x3e5c2f['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x3e5c2f['add']&&''!=_0x3e5c2f['remove']){_0x5ed0d0['push']({'type':'replace','content':o(_0x3711bc,'REPLACE_TEXT',['\x22'+_0x3e5c2f['remove']+'\x22','\x22'+_0x3e5c2f['add']+'\x22'])});continue;}if(null!=_0x3e5c2f['add']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['add']['length']))});continue;}if(null!=_0x3e5c2f['remove']['match'](/^ +$/)){_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',o(_0x3711bc,'ELEMENT_SPACE',_0x3e5c2f['remove']['length']))});continue;}if(''!=_0x3e5c2f['add']){_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0','\x22'+_0x3e5c2f['add']+'\x22')});continue;}_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0','\x22'+_0x3e5c2f['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Insert:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Remove:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addContainer':_0x5ed0d0['push']({'type':'insertion','content':o(_0x3711bc,'*Split:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'removeContainer':_0x5ed0d0['push']({'type':'deletion','content':o(_0x3711bc,'*Merge:*\x20%0',this['getItemLabel'](_0x3e5c2f['element'],_0x3e5c2f['quantity']))});continue;case'addFormat':_0x589518['push'](_0x3e5c2f['key']);continue;case'removeFormat':_0x486b40['push'](_0x3e5c2f['key']);continue;default:_0x5ed0d0['push'](_0x3e5c2f);}if(_0x589518['length']){const _0x276e43=_0x589518['map'](_0x27cec9=>this['_attributeLabels']['has'](_0x27cec9)?this['_attributeLabels']['get'](_0x27cec9):_0x27cec9)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x276e43)});}if(_0x486b40['length']){const _0x34e8e5=_0x486b40['map'](_0x2c77ee=>this['_attributeLabels']['has'](_0x2c77ee)?this['_attributeLabels']['get'](_0x2c77ee):_0x2c77ee)['join'](',\x20');_0x5ed0d0['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x34e8e5)});}return _0x5ed0d0;}['_handleCustomCallbackDescription'](_0x257b26){for(const _0x143e48 of this['_customCallbacks']){const _0x4a06c8=_0x143e48(_0x257b26);if(_0x4a06c8&&'type'in _0x4a06c8)return _0x4a06c8;}}['_handleAttributeSuggestionDescription'](_0xc17c93,_0x2a1822){const _0x224cf4=_0x2a1822['data'],_0xdf9a4f=void 0x0===_0x224cf4['newValue']?'removeFormat':'addFormat';_0xc17c93['push']({'type':_0xdf9a4f,'key':_0x224cf4['key']});}['_handleRenameSuggestionDescription'](_0x52a145,_0x2515ba){_0x52a145['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x2515ba['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x1c6fcf,_0x54a967,_0x4ef6bc){if(this['_addDescriptionItems'](_0x1c6fcf,_0x54a967),_0x4ef6bc&&_0x4ef6bc['getFirstRange']()&&!_0x54a967['getFirstRange']()['end']['isEqual'](_0x4ef6bc['getFirstRange']()['start'])){const _0x25896c=_0x1c6fcf[_0x1c6fcf['length']-0x1],_0x2852e9='insertion'==_0x54a967['type']?'add':'remove';_0x25896c&&'text'==_0x25896c['type']&&(_0x25896c[_0x2852e9]+='\x0a');}}}class E extends _0x2c20e0{['afterInit'](){const _0xa81d07=this['editor'],_0x4162a7=_0xa81d07['plugins']['get']('TrackChangesEditing');_0xa81d07['commands']['get']('showAIAssistant')&&_0x4162a7['enableCommand']('showAIAssistant');}}class V extends _0x2c20e0{['afterInit'](){const _0x33a006=this['editor'],_0x3b7030=_0x33a006['locale'];if(!_0x33a006['plugins']['has']('AlignmentEditing'))return;const _0x4e3f63=_0x33a006['plugins']['get']('TrackChangesEditing');_0x4e3f63['enableDefaultAttributesIntegration']('alignment'),_0x4e3f63['registerBlockAttribute']('alignment'),_0x4e3f63['descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3b7030,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c8496=this['editor'],_0x1e686a=_0x2c8496['locale'];_0x2c8496['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5b409e=>{if('formatBlock'!=_0x5b409e['type'])return;const {data:_0x3c85a2}=_0x5b409e;if(_0x3c85a2&&'alignment'==_0x3c85a2['commandName']){const _0xaa3aae=_0x3c85a2['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x1e686a,'*Format:*\x20%0',function(_0x4f8a87){switch(_0x4f8a87){case'left':return o(_0x1e686a,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x1e686a,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x1e686a,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x1e686a,'FORMAT_JUSTIFY_TEXT');}}(_0xaa3aae))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x2c20e0{['afterInit'](){const _0x1ea7b2=this['editor'],_0x16b2df=_0x1ea7b2['plugins']['get']('TrackChangesEditing'),_0x97db10=_0x1ea7b2['locale'];for(const _0x4abebc of ti){if(!_0x1ea7b2['plugins']['has'](_0x4abebc))continue;const _0x58a8d8=_0x4abebc['slice'](0x0,-0x7)['toLowerCase'](),_0x8b26ac='FORMAT_'+_0x58a8d8['toUpperCase']();_0x16b2df['enableDefaultAttributesIntegration'](_0x58a8d8),_0x16b2df['registerInlineAttribute'](_0x58a8d8),_0x16b2df['descriptionFactory']['registerAttributeLabel'](_0x58a8d8,o(_0x97db10,_0x8b26ac));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x16d300=this['editor'],_0x514987=_0x16d300['locale'],_0x3e5701=_0x16d300['plugins']['get']('TrackChangesEditing');function _0xfbe6b4(_0x53a139,_0x39c8e9){_0x3e5701['descriptionFactory']['registerDescriptionCallback'](_0x47e90d=>{if('formatInline'!=_0x47e90d['type'])return;const {data:_0x5e0df7}=_0x47e90d;return _0x5e0df7&&_0x5e0df7['commandName']===_0x53a139?_0x5e0df7['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x514987,'*Format:*\x20%0',_0x39c8e9)}:{'type':'format','content':o(_0x514987,'*Remove\x20format:*\x20%0',_0x39c8e9)}:void 0x0;});}_0xfbe6b4('bold',o(_0x514987,'FORMAT_BOLD')),_0xfbe6b4('italic',o(_0x514987,'FORMAT_ITALIC')),_0xfbe6b4('underline',o(_0x514987,'FORMAT_UNDERLINE')),_0xfbe6b4('code',o(_0x514987,'FORMAT_CODE')),_0xfbe6b4('strikethrough',o(_0x514987,'FORMAT_STRIKETHROUGH')),_0xfbe6b4('subscript',o(_0x514987,'FORMAT_SUBSCRIPT')),_0xfbe6b4('superscript',o(_0x514987,'FORMAT_SUPERSCRIPT'));}}class O extends _0x2c20e0{['afterInit'](){const _0x4d88c8=this['editor'],_0x98a28b=_0x4d88c8['locale'];if(!_0x4d88c8['plugins']['has']('BlockQuoteEditing'))return;const _0x3a4ac4=_0x4d88c8['plugins']['get']('TrackChangesEditing'),_0x9b1732=this['editor']['commands']['get']('blockQuote');_0x3a4ac4['enableCommand']('blockQuote',(_0x3b31fc,_0x52bb93={})=>{const _0xb70e3e=this['editor']['model']['document']['selection'],_0x2cc1ed=_0x52bb93&&void 0x0!==_0x52bb93['forceValue']?_0x52bb93['forceValue']:!_0x9b1732['value'];let _0x49b4de=[];if(_0x2cc1ed){const _0x3ac320=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0x26945e=>oo(_0x26945e)||function(_0x59fcb8,_0x4e0cc5){const _0x3cabdf=_0x4e0cc5['checkChild'](_0x59fcb8['parent'],'blockQuote'),_0x1cebd2=_0x4e0cc5['checkChild'](['$root','blockQuote'],_0x59fcb8);return _0x3cabdf&&_0x1cebd2;}(_0x26945e,this['editor']['model']['schema']));_0x49b4de=to(_0x3ac320,_0x4d88c8['model']);}else{const _0x186288=Array['from'](_0xb70e3e['getSelectedBlocks']())['filter'](_0xf65a7e=>oo(_0xf65a7e));_0x49b4de=to(_0x186288,_0x4d88c8['model']);}_0x4d88c8['model']['change'](()=>{for(const _0x3286f5 of _0x49b4de)_0x3a4ac4['markBlockFormat'](_0x3286f5,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x2cc1ed}]});});}),_0x3a4ac4['descriptionFactory']['registerDescriptionCallback'](_0x22146f=>{const {data:_0x1f54f4}=_0x22146f;if(_0x1f54f4&&'blockQuote'==_0x1f54f4['commandName']){const _0x22febd=o(_0x98a28b,'ELEMENT_BLOCK_QUOTE');return _0x1f54f4['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x98a28b,'*Set\x20format:*\x20%0',_0x22febd)}:{'type':'format','content':o(_0x98a28b,'*Remove\x20format:*\x20%0',_0x22febd)};}});}}function oo(_0x2b9ec8){return'blockQuote'==_0x2b9ec8['parent']['name'];}class G extends _0x2c20e0{['afterInit'](){const _0x49a861=this['editor'];_0x49a861['plugins']['has']('CaseChange')&&(_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x49a861['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x2c20e0{['afterInit'](){const _0x459ddb=this['editor'];_0x459ddb['commands']['get']('ckbox')&&_0x459ddb['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x2c20e0{['afterInit'](){const _0x56c27c=this['editor'];if(!_0x56c27c['plugins']['has']('CodeBlock'))return;const _0x27b568=_0x56c27c['plugins']['get']('TrackChangesEditing'),_0x1755ba=_0x56c27c['locale'],_0x375747=_0x56c27c['config']['get']('codeBlock')['languages'],_0x369b12=_0x56c27c['commands']['get']('codeBlock');_0x27b568['enableCommand']('indentCodeBlock'),_0x27b568['enableCommand']('outdentCodeBlock'),_0x27b568['enableCommand']('codeBlock',(_0x6d92f4,_0x41b619={})=>{const _0x481f24=_0x56c27c['model'],_0x3f9028=_0x56c27c['model']['document']['selection'],_0x19375b=_0x41b619&&void 0x0!==_0x41b619['forceValue']?_0x41b619['forceValue']:!_0x369b12['value'];let _0x2c2c6f;_0x41b619['language']||(_0x41b619['language']=_0x375747[0x0]['language']),_0x2c2c6f=_0x19375b?Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x494e3f=>eo(_0x494e3f)||function(_0xb69326,_0x57ddd6){if(_0xb69326['is']('rootElement')||_0x57ddd6['isLimit'](_0xb69326))return!0x1;return _0x57ddd6['checkChild'](_0xb69326['parent'],'codeBlock');}(_0x494e3f,_0x481f24['schema'])):Array['from'](_0x3f9028['getSelectedBlocks']())['filter'](_0x88810=>eo(_0x88810));const _0xd4fc3b=to(_0x2c2c6f,_0x481f24);_0x481f24['change'](()=>{for(const _0x3b2868 of _0xd4fc3b)_0x27b568['markBlockFormat'](_0x3b2868,{'commandName':'codeBlock','commandParams':[{..._0x41b619,'forceValue':_0x19375b}],'formatGroupId':'blockName'});});}),(_0x27b568['descriptionFactory']['registerElementLabel']('codeBlock',_0x23a57f=>o(_0x1755ba,'ELEMENT_CODE_BLOCK',_0x23a57f)),_0x27b568['descriptionFactory']['registerDescriptionCallback'](_0x4d9e06=>{if('formatBlock'!=_0x4d9e06['type'])return;const _0x566368=_0x1755ba['t'],{data:_0x1161ab}=_0x4d9e06;if(!_0x1161ab||'codeBlock'!=_0x1161ab['commandName'])return;const _0x1d33b8=_0x1161ab['commandParams'][0x0]['language'],_0x323782=_0x566368(_0x375747['find'](_0x1128d2=>_0x1128d2['language']===_0x1d33b8)['label'])['toLowerCase']();return _0x1161ab['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1755ba,'*Set\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x323782+')')}:{'type':'format','content':o(_0x1755ba,'*Remove\x20format:*\x20%0',o(_0x1755ba,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x426bba){return'codeBlock'==_0x426bba['name'];}class H extends _0x2c20e0{['afterInit'](){const _0x59aaf4=this['editor'];if(!_0x59aaf4['plugins']['has']('CommentsEditing'))return;_0x59aaf4['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5f223f,_0x3e9a7c,_0x28beba){const _0x45ec19=[];for(const _0x4929ec of _0x3e9a7c['getItems']())_0x4929ec['hasAttribute'](_0x5f223f)&&_0x45ec19['push'](_0x28beba['createRangeOn'](_0x4929ec));return _0x45ec19;}function _e(_0x510c80,_0x6d0165,{showActiveMarker:_0x1c2cbe=!0x0}={}){const _0x527868=_0x510c80['plugins']['get']('TrackChangesEditing');return(_0x1f4a9b,_0x6de4e3,_0x26d4a8)=>{if(!_0x26d4a8['consumable']['test'](_0x6de4e3['markerRange'],_0x1f4a9b['name']))return;const _0x28826c=_0x6de4e3['markerRange']['getWalker'](),_0x2727b0=_0x6de4e3['markerRange']['start'],_0x2f0f4b=_0x510c80['model']['schema'];let _0x4aabf9=null,_0x2d32bf=null,_0x195a7e=!0x1,_0x95283f=!0x1;for(const _0x188c3f of _0x28826c){const _0x3b2fff=_0x188c3f['item'];_0x195a7e=_0x195a7e||_0x2f0f4b['isContent'](_0x3b2fff);const _0x35e111=_0x26d4a8['mapper']['toViewElement'](_0x3b2fff);if(_0x35e111&&_0x35e111['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x188c3f['type']&&(_0x2f0f4b['isBlock'](_0x3b2fff)&&!_0x2f0f4b['isLimit'](_0x3b2fff)&&(_0x3b2fff['nextSibling']||_0x2727b0['isAtEnd']?_0x4aabf9&&_0x4aabf9['parent']==_0x3b2fff||(_0x4aabf9=_0x3b2fff,_0xa3eacb(_0x188c3f['previousPosition']),_0x95283f=!0x0):_0x2d32bf=_0x2d32bf||_0x188c3f['previousPosition']));}function _0xa3eacb(_0x5b8e75){const _0x5b7591=_0x26d4a8['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x6d0165}),_0x292477=_0x26d4a8['mapper']['toViewPosition'](_0x5b8e75);_0x1c2cbe&&_0x527868['activeMarkers']['includes'](_0x6de4e3['markerName'])&&_0x26d4a8['writer']['addClass']('ck-suggestion-marker--active',_0x5b7591),_0x26d4a8['writer']['insert'](_0x292477,_0x5b7591),_0x26d4a8['mapper']['bindElementToMarker'](_0x5b7591,_0x6de4e3['markerName']);}_0x195a7e||_0x95283f||!_0x2d32bf||_0xa3eacb(_0x2d32bf);};}class q extends _0x2c20e0{static get['requires'](){return[_0x2cce2f];}['init'](){const _0x3b2836=this['editor'],_0x24c928=_0x3b2836['plugins']['get']('TrackChangesEditing');_0x24c928['enableCommand']('delete');const _0xb0e5fa=_0x3b2836['commands']['get']('deleteForward');_0x24c928['enableCommand']('deleteForward',(_0x1655ad,_0x51e034={})=>{const _0x356af4=_0x3b2836['model']['createSelection'](_0x3b2836['model']['document']['selection']);_0x356af4['isCollapsed']&&_0x3b2836['model']['modifySelection'](_0x356af4,{'direction':'forward','unit':_0x51e034['unit']});const _0xe20ebb=_0x356af4['getFirstRange'](),_0x464548=_0xef9d24['fromRange'](_0xe20ebb);let _0x4edadb;_0x1655ad(_0x51e034),_0x4edadb='$graveyard'==_0x464548['root']['rootName']?_0x3b2836['model']['createRange'](_0xe20ebb['start']):_0x3b2836['model']['createRange'](_0x464548['start'],_0x464548['end']),_0x464548['detach'](),_0x3b2836['model']['enqueueChange'](_0xb0e5fa['buffer']['batch'],_0x306c1a=>{_0xb0e5fa['buffer']['lock'](),_0x306c1a['setSelection'](_0x306c1a['createRange'](_0x4edadb['end'])),_0xb0e5fa['buffer']['unlock']();});}),_0x3b2836['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x3b2836,'merge'),{'priority':'high'}),_0x3b2836['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x35ff67,_0x31309e,_0x5a6eae)=>{_0x5a6eae['options']['showSuggestionHighlights']&&_e(_0x3b2836,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x35ff67,_0x31309e,_0x5a6eae);},{'priority':'high'}),_0x3b2836['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x585687,_0x3534bd,_0x277b18)=>{const _0x402f14=_0x277b18['mapper']['markerNameToElements'](_0x3534bd['markerName']);if(_0x402f14){for(const _0x4008f7 of _0x402f14)_0x4008f7['is']('uiElement')&&(_0x277b18['mapper']['unbindElementFromMarkerName'](_0x4008f7,_0x3534bd['markerName']),_0x277b18['writer']['remove'](_0x4008f7));}},{'priority':'high'});}}class z extends _0x2c20e0{['afterInit'](){const _0x1bd3ed=this['editor'];if(!_0x1bd3ed['plugins']['has']('ListEditing'))return;const _0x326ff2=_0x1bd3ed['locale'],_0xea2be2=_0x1bd3ed['plugins']['get']('TrackChangesEditing'),_0x41dce6=_0x1bd3ed['plugins']['has']('TodoListEditing'),_0x2a7191=!!_0x1bd3ed['config']['get']('list.multiBlock');function _0x40207b(_0xed9321){return{'type':'format','content':''+o(_0x326ff2,'*Set\x20format:*\x20%0',_0xed9321)};}function _0x3097bd(_0xe8e795){return{'type':'format','content':''+o(_0x326ff2,'*Remove\x20format:*\x20%0',_0xe8e795)};}_0xea2be2['enableDefaultAttributesIntegration']('numberedList'),_0xea2be2['enableDefaultAttributesIntegration']('bulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('customNumberedList'),_0xea2be2['enableDefaultAttributesIntegration']('customBulletedList'),_0xea2be2['enableDefaultAttributesIntegration']('indentList'),_0xea2be2['enableDefaultAttributesIntegration']('outdentList'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemAfter'),_0xea2be2['enableDefaultAttributesIntegration']('splitListItemBefore'),_0xea2be2['registerBlockAttribute']('listItemId'),_0xea2be2['registerBlockAttribute']('listType'),_0xea2be2['registerBlockAttribute']('listIndent'),_0x2a7191&&(_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemBackward'),_0xea2be2['enableDefaultAttributesIntegration']('mergeListItemForward')),_0x41dce6&&(_0xea2be2['enableDefaultAttributesIntegration']('todoList'),_0xea2be2['enableDefaultAttributesIntegration']('checkTodoList'),_0xea2be2['registerBlockAttribute']('todoListChecked'),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x4d5821=>{const {data:_0x17de50}=_0x4d5821;if(_0x17de50&&'todoListChecked'==_0x17de50['key'])return{'type':'format','content':_0x17de50['newValue']?o(_0x326ff2,'*Check\x20item*'):o(_0x326ff2,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0xd8e0b0=>{if(_0xd8e0b0['batch']['isUndo'])return!0x1;let _0x402077=!0x1;const _0x4f9508=_0xea2be2['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x54ac4f=>'todoListChecked'===_0xea2be2['_getAttributeKey'](_0x54ac4f));for(const _0x2545ad of _0x4f9508){'todo'!=_0x2545ad['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0xea2be2['_findSuggestions'](_0x2545ad['getFirstRange'](),'attribute')['find'](_0xeb26ca=>'listType'===_0xea2be2['_getAttributeKey'](_0xeb26ca['suggestion']))||(_0xd8e0b0['removeMarker'](_0x2545ad['getFirstMarker']()),_0x402077=!0x0));}return _0x402077;})),_0xea2be2['descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x326ff2,'FORMAT_INDENT'));const _0x586b43={'type':'format','content':''};_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b8c2d=>{const {data:_0x47ffdd}=_0x5b8c2d;if(!_0x47ffdd||'listType'!=_0x47ffdd['key'])return;let _0x2f8651=_0x5b8c2d['head'];for(;_0x2f8651;){if(_0x2f8651['data']&&(('listStyle'==_0x2f8651['data']['key']||'listMarkerStyle'==_0x2f8651['data']['key'])&&(_0x2f8651['data']['newValue']&&'default'!=_0x2f8651['data']['newValue']||'default'!=_0x2f8651['data']['oldValue']&&!_0x47ffdd['newValue'])||!_0x2a7191&&_0x2f8651['data']['key']==m))return _0x586b43;_0x2f8651=_0x2f8651['next'];}if(null==_0x47ffdd['newValue'])switch(_0x47ffdd['oldValue']){case'bulleted':return _0x3097bd(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3097bd(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3097bd(o(_0x326ff2,'ELEMENT_TODO_LIST'));}switch(_0x47ffdd['newValue']){case'bulleted':return _0x40207b(o(_0x326ff2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x40207b(o(_0x326ff2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x40207b(o(_0x326ff2,'ELEMENT_TODO_LIST'));}}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x1dbafd=>{const {data:_0x1269fa}=_0x1dbafd;if(_0x1269fa&&'listIndent'==_0x1269fa['key'])return null==_0x1269fa['newValue']||null==_0x1269fa['oldValue']&&0x0==_0x1269fa['newValue']?_0x586b43:void 0x0;}),_0xea2be2['descriptionFactory']['registerDescriptionCallback'](_0x5b91fb=>{if('attribute'!=_0x5b91fb['type'])return;const {data:_0x552a6e}=_0x5b91fb;if(!_0x552a6e||'listItemId'!=_0x552a6e['key'])return;const _0x4d9137=le(_0x5b91fb);return'newValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Merge:*\x20list\x20item')}:'oldValue'==_0x4d9137?{'type':'format','content':o(_0x326ff2,'*Split:*\x20list\x20item')}:_0x586b43;}),_0x1bd3ed['model']['document']['registerPostFixer'](_0x4449aa=>this['listItemIdFixer'](_0x4449aa)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x496bae=>this['noTrackChangesFixer'](_0x496bae)),_0x1bd3ed['model']['document']['registerPostFixer'](_0x5aeee3=>this['assureChains'](_0x5aeee3)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0xb73197){if(_0xb73197['batch']['isUndo']||!_0xb73197['batch']['isLocal'])return!0x1;let _0x635ed3=!0x1;const _0x1acc93=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x12c409=>_0x12c409['data']&&'listItemId'==_0x12c409['data']['key'])['filter'](_0x21c2c9=>_0x21c2c9['data']['newValue']&&_0x21c2c9['data']['oldValue']);for(const _0x40c67b of _0x1acc93)le(_0x40c67b)||(_0xb73197['removeMarker'](_0x40c67b['getFirstMarker']()),_0x635ed3=!0x0);return _0x635ed3;}['noTrackChangesFixer'](_0x140a97){if(_0x140a97['batch']['isUndo']||!_0x140a97['batch']['isLocal'])return!0x1;const _0x56f6b7=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x56f6b7['trackChangesCommand']['value'])return!0x1;let _0x4e1a65=!0x1;const _0x56b339=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x2ea60b=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x3555f2=>'attribute'==_0x3555f2['type'])['filter'](_0x525b48=>_0x56b339['includes'](_0x525b48['attributeKey']));if(0x0==_0x2ea60b['length'])return _0x4e1a65;for(const _0x4d1495 of _0x2ea60b){const _0x3217ca=_0x56f6b7['_findSuggestions'](_0x4d1495['range'],'attribute')['filter'](_0x36e5f0=>!_0x36e5f0['meta']['isNextTo'])['map'](_0x2816d4=>_0x2816d4['suggestion'])['filter'](_0x3e5c5d=>{const _0x364c0d=_0x56f6b7['_getAttributeKey'](_0x3e5c5d);return _0x56b339['includes'](_0x364c0d);});if(_0x3217ca['length']){for(const _0x5766c9 of _0x3217ca)_0x140a97['removeMarker'](_0x5766c9['getFirstMarker']());_0x4e1a65=!0x0;}}return _0x4e1a65;}['assureChains'](_0x2091e6){if(_0x2091e6['batch']['isUndo']||!_0x2091e6['batch']['isLocal'])return!0x1;const _0x54beaf=this['editor']['plugins']['get']('TrackChangesEditing');let _0x518ecb=!0x1;const _0x1824b9=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x1c9049 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})){const _0x13717c=_0x54beaf['_findSuggestions'](_0x1c9049['getFirstRange'](),'attribute')['map'](_0x582cc0=>_0x582cc0['suggestion'])['filter'](_0x48ed81=>_0x48ed81['data']&&_0x1824b9['includes'](_0x48ed81['data']['key']));if(!_0x13717c['length'])continue;const _0x3922f6=_0x13717c[0x0]['head']['attributes']['groupId'];if(!_0x13717c['every'](_0xc9dbea=>_0xc9dbea['attributes']['groupId']===_0x3922f6)){for(const _0x390eca of _0x13717c)_0xaa3ee1(_0x390eca,_0x3922f6)&&(_0x518ecb=!0x0);}}return _0x518ecb;function _0x311e20(_0x27ae7b,_0x2e193b){for(const _0x46ef0 of _0x54beaf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5078e1=>'attribute'==_0x5078e1['type']&&_0x5078e1['attributes']['groupId']==_0x27ae7b))_0x46ef0['setAttribute']('groupId',_0x2e193b);}function _0xaa3ee1(_0x3c5594,_0x3a4c67){let _0x4aed91=_0x3c5594['head'],_0x28b236=!0x1;for(;_0x4aed91;)_0x4aed91['attributes']['groupId']!=_0x3a4c67&&(_0x311e20(_0x4aed91['attributes']['groupId'],_0x3a4c67),_0x4aed91['setAttribute']('groupId',_0x3a4c67),_0x28b236=!0x0),_0x4aed91=_0x4aed91['next'];return _0x28b236;}}['_supportLegacySuggestions'](){const _0x39d371=this['editor'],_0x56d6b6=_0x39d371['locale'],_0x2d2f2a=_0x39d371['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x2d2f2a['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x257463,_0x1121a4){const _0x75960c=[];for(let _0x68c259 of _0x257463)_0x68c259['start']['nodeAfter']===_0x68c259['end']['parent']&&(_0x68c259=_0x39d371['model']['createRange'](_0x39d371['model']['createPositionAt'](_0x68c259['start']['nodeAfter'],0x0))),_0x75960c['push'](_0x68c259);_0x39d371['model']['change'](_0x5b4524=>{const _0x4bef75=_0x39d371['model']['document']['selection'],_0x927208=Array['from'](_0x4bef75['getRanges']())['map'](_0x521933=>_0xef9d24['fromRange'](_0x521933));_0x5b4524['setSelection'](_0x75960c),_0x39d371['commands']['get'](_0x1121a4['commandName'])['refresh'](),_0x1121a4['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x39d371['execute'](_0x1121a4['commandName'],..._0x1121a4['commandParams']),_0x5b4524['setSelection'](_0x927208);for(const _0x51d244 of _0x927208)_0x51d244['detach']();});}),_0x2d2f2a['descriptionFactory']['registerElementLabel'](function(_0x834e99){const _0x4219c0=!_0x39d371['model']['schema']['isObject'](_0x834e99),_0x6493ea=_0x834e99['previousSibling'],_0x276e2a=_0x834e99['nextSibling'],_0x4eacbb=_0x834e99['getAttribute']('listItemId'),_0x1d5db3=!_0x6493ea||_0x6493ea['getAttribute']('listItemId')!==_0x4eacbb,_0x5835d2=!_0x276e2a||_0x276e2a['getAttribute']('listItemId')!==_0x4eacbb;return _0x4219c0&&Boolean(_0x4eacbb)&&_0x1d5db3&&_0x5835d2;},_0x517cd7=>o(_0x56d6b6,'ELEMENT_LIST_ITEM',_0x517cd7));}['_registerLegacyDescription'](){const _0x4edba4=this['editor'],_0x2eccfe=_0x4edba4['locale'];function _0x4b381f(_0x55a721){const _0x59b5c8=_0x4edba4['commands']['get']('bulletedList')['value'],_0x51e527=_0x4edba4['commands']['get']('numberedList')['value'];return'numberedList'===_0x55a721?_0x59b5c8:_0x51e527;}_0x4edba4['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](function(_0x5ccfe9){if('formatBlock'!=_0x5ccfe9['type'])return;const {data:_0x5b8dbd}=_0x5ccfe9;if(!_0x5b8dbd)return;let _0x5c68fc,_0x381c0e,_0x3c08a6,_0x14b452;switch(_0x5b8dbd['commandName']){case'bulletedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0x3c08a6=_0x5b8dbd['commandParams'][0x0]['forceValue'],_0x14b452=_0x4b381f(_0x5b8dbd['commandName']),_0x5c68fc=_0x3c08a6?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x14b452&&_0x4edba4['config']['get']('list.multiBlock')||(_0x5c68fc='*Change\x20to:*\x20%0'),_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x5c68fc='*Indent:*\x20%0',_0x381c0e={'type':'format','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x5c68fc=function(_0x5874c2){const _0xe75245=_0x5874c2['getFirstRange']();let _0x42ac4b=_0xe75245['start']['nodeAfter'];for(;_0x42ac4b&&_0xe75245['containsItem'](_0x42ac4b);){if(_0x42ac4b['getAttribute']('listIndent')>0x0)return!0x1;_0x42ac4b=_0x42ac4b['nextSibling'];}return!0x0;}(_0x5ccfe9)?o(_0x2eccfe,'*Format:*\x20remove\x20from\x20%0',o(_0x2eccfe,function(_0x52b0b1){return'ELEMENT_'+_0x52b0b1['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x5ccfe9))):o(_0x2eccfe,'*Outdent:*\x20%0',o(_0x2eccfe,'ELEMENT_LIST_ITEM')),_0x381c0e={'type':'format','content':_0x5c68fc};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x5b8dbd['multipleBlocks']&&(_0x5c68fc='*Merge:*\x20%0',_0x381c0e={'type':'deletion','content':o(_0x2eccfe,_0x5c68fc,o(_0x2eccfe,'ELEMENT_LIST_ITEM'))});}return _0x381c0e;});}}function le(_0x1fa07c){let _0x2c9c52=_0x1fa07c['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x2c9c52;){const _0x258576=_0x2c9c52['getAttribute']('listItemId');if(!_0x258576)return!0x1;if(_0x258576==_0x1fa07c['data']['newValue'])return'newValue';if(_0x258576==_0x1fa07c['data']['oldValue'])return'oldValue';_0x2c9c52=_0x2c9c52['previousSibling'];}return!0x1;}class ue extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x513727=this['editor']['config']['get']('list.properties'),_0x4ec085=this['editor']['plugins']['get']('TrackChangesEditing');_0x513727['styles']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStyle'),_0x4ec085['registerBlockAttribute']('listStyle')),_0x513727['reversed']&&(_0x4ec085['enableDefaultAttributesIntegration']('listReversed'),_0x4ec085['registerBlockAttribute']('listReversed')),_0x513727['startIndex']&&(_0x4ec085['enableDefaultAttributesIntegration']('listStart'),_0x4ec085['registerBlockAttribute']('listStart'));const _0x2fba82={'type':'format','content':''};_0x4ec085['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x936676=this['editor']['locale'];_0x4ec085['descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x936676,'FORMAT_LIST_REVERSED')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x2840eb=>{const {data:_0x49f311}=_0x2840eb;if(_0x49f311&&'listReversed'==_0x49f311['key'])return null==_0x49f311['newValue']||0x0==_0x49f311['newValue']&&null==_0x49f311['oldValue']?_0x2fba82:void 0x0;}),_0x4ec085['descriptionFactory']['registerAttributeLabel']('listStart',o(_0x936676,'FORMAT_LIST_START')),_0x4ec085['descriptionFactory']['registerDescriptionCallback'](_0x10d3a9=>{const {data:_0x51fe19}=_0x10d3a9;if(_0x51fe19&&'listStart'==_0x51fe19['key'])return null==_0x51fe19['newValue']||0x1==_0x51fe19['newValue']&&null==_0x51fe19['oldValue']?_0x2fba82:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x209603=>{if(_0x209603['batch']['isUndo'])return!0x1;let _0x31a00b=!0x1;const _0xe79ceb=_0x4ec085['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3f23de=>{const _0x4602fe=_0x4ec085['_getAttributeKey'](_0x3f23de);return'listStart'==_0x4602fe||'listReversed'==_0x4602fe;});for(const _0x12a7f9 of _0xe79ceb){const _0x56535b=_0x12a7f9['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x56535b||'customNumbered'==_0x56535b)continue;_0x4ec085['_findSuggestions'](_0x12a7f9['getFirstRange'](),'attribute')['find'](_0x29088a=>'listType'==_0x4ec085['_getAttributeKey'](_0x29088a['suggestion']))||(_0x209603['removeMarker'](_0x12a7f9['getFirstMarker']()),_0x31a00b=!0x0);}return _0x31a00b;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x17bb0a){const _0x38b661=this['editor']['locale'],{data:_0x29ad4}=_0x17bb0a,_0x9fc0e6={'type':'format','content':''};if(!_0x29ad4||'listStyle'!=_0x29ad4['key'])return;if(!_0x29ad4['oldValue'])return'default'==_0x29ad4['newValue']?_0x9fc0e6:{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};if(!_0x29ad4['newValue']){if('default'==_0x29ad4['oldValue'])return _0x9fc0e6;let _0x1ba46d=_0x17bb0a['head'];for(;_0x1ba46d;){if(_0x1ba46d['data']&&'listType'==_0x1ba46d['data']['key']&&_0x1ba46d['data']['newValue'])return _0x9fc0e6;_0x1ba46d=_0x1ba46d['next'];}return{'type':'format','content':''+o(_0x38b661,'*Remove\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['oldValue'])))};}if('default'!=_0x29ad4['newValue'])return{'type':'format','content':''+o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,this['_getTranslationKeyForListStyle'](_0x29ad4['newValue'])))};let _0x3dc212=_0x17bb0a['head'];for(;_0x3dc212;){if(_0x3dc212['data']&&'listType'==_0x3dc212['data']['key']&&_0x3dc212['data']['newValue']&&_0x3dc212['data']['oldValue'])return _0x9fc0e6;_0x3dc212=_0x3dc212['next'];}return{'type':'format','content':o(_0x38b661,'*Set\x20format:*\x20%0',o(_0x38b661,'ELEMENT_'+_0x17bb0a['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x201e17=this['editor'],_0x36a6b1=_0x201e17['locale'];_0x201e17['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xbb05c0=>{if('formatBlock'!=_0xbb05c0['type'])return;const {data:_0x3563a4}=_0xbb05c0;if(!_0x3563a4)return;let _0x110c9f,_0x4dc72d;switch(_0x3563a4['commandName']){case'listStyle':_0x110c9f='*Change\x20to:*\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,o(_0x36a6b1,this['_getTranslationKeyForListStyle'](_0x3563a4['commandParams'][0x0]['type'])))};break;case'listReversed':_0x110c9f=_0x3563a4['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f)};break;case'listStart':_0x110c9f='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x4dc72d={'type':'format','content':o(_0x36a6b1,_0x110c9f,_0x3563a4['commandParams'][0x0]['startIndex'])};}return _0x4dc72d;});}['_getTranslationKeyForListStyle'](_0x232ae9){return'ELEMENT_'+function(_0x504501){if(pe['includes'](_0x504501))return'bulleted';if(ye['includes'](_0x504501))return'numbered';return null;}(_0x232ae9)['toUpperCase']()+'_LIST_'+_0x232ae9['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x2c20e0{static get['requires'](){return[_0x58549e];}['init'](){const _0x2af8b2=this['editor'],_0x3bfbef=_0x2af8b2['plugins']['get']('TrackChangesEditing'),_0x32b764=_0x2af8b2['commands']['get']('enter');_0x3bfbef['enableCommand']('enter',()=>{_0x2af8b2['model']['change'](_0x2aeafe=>{const _0x50390c=_0x2af8b2['model']['document']['selection'],_0x21022a=_0x50390c['getFirstPosition'](),_0x343098=_0xef9d24['fromRange'](_0x50390c['getFirstRange']());if(_0x32b764['enterBlock'](_0x2aeafe)){const _0x372a1e=_0x2af8b2['model']['createPositionAt'](_0x21022a['parent']['nextSibling'],0x0),_0xbb2f64=_0x2aeafe['createRange'](_0x21022a,_0x372a1e);_0x3bfbef['markInsertion'](_0xbb2f64);}else _0x2aeafe['setSelection'](_0x2aeafe['createRange'](_0x343098['end']));_0x343098['detach'](),_0x32b764['fire']('afterExecute',{'writer':_0x2aeafe});});}),_0x2af8b2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2af8b2,'split'),{'priority':'high'}),_0x2af8b2['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x5afe43,_0x12075c,_0x52812f)=>{const _0x2de4d7=_0x52812f['mapper']['markerNameToElements'](_0x12075c['markerName']);if(_0x2de4d7){for(const _0x19248a of _0x2de4d7)_0x19248a['hasClass']('ck-suggestion-marker-split')&&(_0x52812f['mapper']['unbindElementFromMarkerName'](_0x19248a,_0x12075c['markerName']),_0x52812f['writer']['remove'](_0x19248a));}},{'priority':'high'}),_0x2af8b2['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x5c22cb,_0x392196,_0x3ed520)=>{_0x3ed520['options']['showSuggestionHighlights']&&_e(_0x2af8b2,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x5c22cb,_0x392196,_0x3ed520);},{'priority':'high'});}}class J extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x1eee84=this['editor']['plugins']['get']('TrackChangesEditing');_0x1eee84['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x1eee84['enableCommand']('findNext'),_0x1eee84['enableCommand']('findPrevious'),_0x1eee84['enableCommand']('replace'),_0x1eee84['enableCommand']('replaceAll');}['handleFindCommand'](_0xa5537d,_0x73b41a,_0x250dca={}){const _0xf6e24e=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0xa5537d(_0x1c2d35=>{let _0x4b5ce2=('string'==typeof _0x73b41a?_0xf6e24e['findByTextCallback'](_0x73b41a,_0x250dca):_0x73b41a)(_0x1c2d35);Array['isArray'](_0x4b5ce2)&&(_0x4b5ce2={'results':_0x4b5ce2,'searchText':'string'==typeof _0x73b41a?_0x73b41a:''});const _0x135b2b=_0x4b5ce2['results']['filter'](_0x3da3eb=>!0x1===this['_isInDeletionRange'](_0x3da3eb,_0x1c2d35['item']));return{..._0x4b5ce2,'results':_0x135b2b};},_0x250dca);}['_isInDeletionRange'](_0x45a784,_0x52699e){const _0x1f0328=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['start']),this['editor']['model']['createPositionAt'](_0x52699e,_0x45a784['end']));for(const _0x20278a of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x1f0328['getIntersection'](_0x20278a['getRange']()))return!0x0;return!0x1;}}const ro=[{'pluginName':'FontSizeEditing','commandName':'fontSize'},{'pluginName':'FontFamilyEditing','commandName':'fontFamily'},{'pluginName':'FontColorEditing','commandName':'fontColor'},{'pluginName':'FontBackgroundColorEditing','commandName':'fontBackgroundColor'}];class Q extends _0x2c20e0{['afterInit'](){const _0x3a9662=this['editor']['locale'],_0x42ef8f=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x2bf36,commandName:_0x65ffb5}of ro)this['editor']['plugins']['has'](_0x2bf36)&&(_0x42ef8f['enableDefaultAttributesIntegration'](_0x65ffb5),_0x42ef8f['registerInlineAttribute'](_0x65ffb5));_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3a9662,'FORMAT_FONT_SIZE')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3a9662,'FORMAT_FONT_FAMILY')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3a9662,'FORMAT_FONT_COLOR')),_0x42ef8f['descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3a9662,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x15cd1f=this['editor'],_0x41a287=_0x15cd1f['locale'];_0x15cd1f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x517083=>{const _0x1ad746=_0x41a287['t'];if('formatInline'!=_0x517083['type'])return;const {data:_0x8f38da}=_0x517083;if(null!=_0x8f38da){if('fontSize'==_0x8f38da['commandName']){const _0x173c7d=_0x8f38da['commandParams'][0x0]['value'];if(_0x173c7d){const _0x3a13eb=_0x1ad746(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x1689ca=>_0x1689ca['model']==_0x173c7d)['title'])['toLowerCase']();return{'type':'format','content':o(_0x41a287,'*Set\x20font\x20size:*\x20%0',_0x3a13eb)};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x8f38da['commandName']){const _0x4c14ef=_0x8f38da['commandParams'][0x0]['value'];return _0x4c14ef?{'type':'format','content':o(_0x41a287,'*Set\x20font\x20family:*\x20%0',_0x4c14ef)}:{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20family*')};}if('fontColor'==_0x8f38da['commandName']){const _0x18bd1d=_0x8f38da['commandParams'][0x0]['value'];if(_0x18bd1d){const _0x240581=_0x2b913d(this['editor']['config']['get']('fontColor.colors'))['find'](_0x459688=>_0x459688['model']==_0x18bd1d);let _0x5c5b9b=_0x18bd1d,_0x3c72f6='';return _0x240581&&(_0x5c5b9b=_0x240581['label'],_0x3c72f6=_0x1ad746(_0x5c5b9b)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20color:*\x20%0',_0x3c72f6)['trim'](),'color':{'value':_0x18bd1d,'title':_0x3c72f6||_0x5c5b9b}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x8f38da['commandName']){const _0x1066a1=_0x8f38da['commandParams'][0x0]['value'];if(_0x1066a1){const _0x35deec=_0x2b913d(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x457a70=>_0x457a70['model']==_0x1066a1);let _0x210406=_0x1066a1,_0x3f26b0='';return _0x35deec&&(_0x210406=_0x35deec['label'],_0x3f26b0=_0x1ad746(_0x210406)['toLowerCase']()),{'type':'format','content':o(_0x41a287,'*Set\x20font\x20background\x20color:*\x20%0',_0x3f26b0)['trim'](),'color':{'value':_0x1066a1,'title':_0x3f26b0||_0x210406}};}return{'type':'format','content':o(_0x41a287,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x2c20e0{['afterInit'](){const _0x23b629=this['editor'],_0x429eb8=_0x23b629['plugins']['get']('TrackChangesEditing'),_0x2190a2=_0x23b629['commands']['get']('copyFormat'),_0x2618d7=_0x23b629['commands']['get']('pasteFormat');_0x2190a2&&_0x2618d7&&(_0x429eb8['enableDefaultAttributesIntegration']('pasteFormat'),_0x429eb8['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x553369=this['editor'],_0x436472=_0x553369['locale'];_0x553369['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x378a72=>{if('formatBlock'!=_0x378a72['type']&&'formatInline'!=_0x378a72['type'])return;const {data:_0x437d5c}=_0x378a72;if(_0x437d5c&&'pasteFormat'===_0x437d5c['commandName']){const _0x4e5efc=[],_0x3ba83c=_0x437d5c['commandParams'][0x0];for(const [_0x5e636c,_0x514692]of Object['entries'](_0x3ba83c))_0x4e5efc['push'](so(_0x553369,_0x5e636c,_0x514692));return _0x4e5efc['length']?{'type':'format','content':o(_0x436472,'*Set\x20format\x20to:*\x20%0',_0x4e5efc['join'](',\x20'))}:{'type':'format','content':o(_0x436472,'*Remove\x20all\x20formatting*')};}});}}function so(_0x2f4891,_0x2861e8,_0x435e36){const _0x156fd9=_0x2f4891['locale']['t'],_0x21511f=_0x2861e8['split'](/(?=[A-Z])/)['join']('\x20'),_0x121314=_0x156fd9(_0x21511f['charAt'](0x0)['toUpperCase']()+_0x21511f['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x435e36)return _0x121314;if('fontColor'===_0x2861e8||'fontBackgroundColor'===_0x2861e8){const _0x43bfb3=_0x2b913d(_0x2f4891['config']['get']('fontColor.colors'))['find'](_0x14ff1c=>_0x14ff1c['model']==_0x435e36);return _0x121314+'\x20('+(_0x43bfb3?_0x156fd9(_0x43bfb3['label'])['toLowerCase']():_0x435e36)+')';}if('fontSize'===_0x2861e8&&isNaN(parseFloat(_0x435e36))){const _0x28a7ac=_0x2f4891['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x2f4891['config']['get']('fontSize.options'))['find'](_0x5eb10d=>_0x5eb10d['model']==_0x435e36);return _0x121314+'\x20('+(_0x28a7ac?_0x156fd9(_0x28a7ac['title'])['toLowerCase']():_0x435e36)+')';}return _0x121314+'\x20('+_0x435e36+')';}class Y extends _0x2c20e0{['_headingOptions'];['afterInit'](){const _0x141f7f=this['editor'];if(!_0x141f7f['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x141f7f['config']['get']('heading.options');const _0x6a42e2=_0x141f7f['locale'],_0x29b0d5=_0x141f7f['plugins']['get']('TrackChangesEditing');_0x29b0d5['enableDefaultAttributesIntegration']('heading');for(const _0x1c5bbe of this['_headingOptions'])'paragraph'!=_0x1c5bbe['model']&&_0x29b0d5['descriptionFactory']['registerElementLabel'](_0x1c5bbe['model'],_0x954377=>{const _0x2be66c=this['_getHeadingLevel'](_0x1c5bbe['model']);return null!==_0x2be66c?_0x24ef88(_0x954377,_0x2be66c):_0x3d54e1(_0x954377,_0x1c5bbe['title']);});function _0x24ef88(_0x1ae088,_0x1e0e2a){return o(_0x6a42e2,'ELEMENT_HEADING',[_0x1ae088,_0x1e0e2a]);}function _0x3d54e1(_0x11baf,_0x584d03){return o(_0x6a42e2,'ELEMENT_HEADING_CUSTOM',[_0x11baf,_0x584d03]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x46d4c6=this['editor'],_0x1fbb44=_0x46d4c6['locale'];function _0x26ce84(_0x6c6aaf,_0x2272aa){return o(_0x1fbb44,'ELEMENT_HEADING_CUSTOM',[_0x6c6aaf,_0x2272aa]);}_0x46d4c6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x380637=>{if('formatBlock'!=_0x380637['type'])return;const {data:_0x10e9d6}=_0x380637;if(_0x10e9d6&&'heading'==_0x10e9d6['commandName']){const _0x5f518f=_0x10e9d6['commandParams'][0x0]['value'],_0x39977d=this['_getHeadingLevel'](_0x5f518f);if(null!==_0x39977d)return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',(_0x447406=0x1,_0x50bb28=_0x39977d,o(_0x1fbb44,'ELEMENT_HEADING',[_0x447406,_0x50bb28])))};const _0x5ef609=this['_headingOptions']['find'](_0x1aa440=>_0x1aa440['model']===_0x5f518f)['title'];return{'type':'format','content':o(_0x1fbb44,'*Change\x20to:*\x20%0',_0x26ce84(0x1,_0x5ef609))};}var _0x447406,_0x50bb28;});}['_getHeadingLevel'](_0x491c96){const _0x5dd25e=_0x491c96['match'](/^heading(\d+)/);if(_0x5dd25e)return _0x5dd25e[0x1];const _0x49c92b=this['_headingOptions']?.['find'](_0x282d8c=>_0x282d8c['model']==_0x491c96);if(_0x49c92b&&_0x49c92b['view']){const _0x554418=_0x49c92b['view'],_0x5e6b9f=(_0x554418['name']??_0x554418)['match'](/^h(\d+)/);if(_0x5e6b9f)return _0x5e6b9f[0x1];}return null;}}class Z extends _0x2c20e0{['afterInit'](){const _0x3f1acc=this['editor'];if(!_0x3f1acc['plugins']['has']('HighlightEditing'))return;const _0x1d822c=_0x3f1acc['plugins']['get']('TrackChangesEditing'),_0x23ca3d=_0x3f1acc['locale'];_0x1d822c['enableDefaultAttributesIntegration']('highlight'),_0x1d822c['registerInlineAttribute']('highlight'),_0x1d822c['descriptionFactory']['registerAttributeLabel']('highlight',o(_0x23ca3d,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x488182=this['editor'],_0x50a233=_0x488182['locale'];_0x488182['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0xa9a9c9=>{if('formatInline'!=_0xa9a9c9['type'])return;const {data:_0x5b10bf}=_0xa9a9c9;if(_0x5b10bf&&'highlight'==_0x5b10bf['commandName']){const _0x4dd12b=_0x50a233['t'],_0x158992=_0x5b10bf['commandParams'][0x0]['value'];if(_0x158992){const _0x3fcbaa=_0x488182['config']['get']('highlight.options')['find'](_0x307ad7=>_0x307ad7['model']==_0x158992),_0x4f1a20=_0x4dd12b(_0x3fcbaa['title'])['toLowerCase']();return{'type':'format','content':o(_0x50a233,'*Set\x20highlight:*\x20%0',_0x4f1a20),'color':{'value':_0x3fcbaa['color'],'title':_0x3fcbaa['title']}};}return{'type':'format','content':o(_0x50a233,'*Remove\x20highlight*',o(_0x50a233,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x2c20e0{['afterInit'](){const _0x5e0070=this['editor'];if(!_0x5e0070['plugins']['has']('HorizontalLineEditing'))return;_0x5e0070['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x3e5a34=_0x5e0070['plugins']['get']('TrackChangesEditing'),_0x32a6e6=_0x5e0070['locale'];_0x3e5a34['descriptionFactory']['registerElementLabel']('horizontalLine',_0x45f13e=>o(_0x32a6e6,'ELEMENT_HORIZONTAL_LINE',_0x45f13e)),_0x5e0070['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x59ef1d,{writer:_0x2dbcbc,options:_0x3ea2de})=>{if(!_0x3ea2de['showSuggestionHighlights'])return null;const _0x189b6f=_0x2dbcbc['createContainerElement']('div'),_0x3f0ee2=_0x2dbcbc['createEmptyElement']('hr');return _0x2dbcbc['addClass']('ck-horizontal-line',_0x189b6f),_0x2dbcbc['insert'](_0x2dbcbc['createPositionAt'](_0x189b6f,0x0),_0x3f0ee2),_0x189b6f;},'converterPriority':'high'});}}class et extends _0x2c20e0{['afterInit'](){const _0x4e4aed=this['editor'];if(!_0x4e4aed['plugins']['has']('HtmlEmbed'))return;const _0x392fbf=_0x4e4aed['plugins']['get']('TrackChangesEditing'),_0x249e7f=_0x4e4aed['locale'];_0x392fbf['descriptionFactory']['registerElementLabel']('rawHtml',_0x2bacda=>o(_0x249e7f,'ELEMENT_HTML_EMBED',_0x2bacda)),_0x392fbf['enableDefaultAttributesIntegration']('htmlEmbed'),_0x392fbf['registerBlockAttribute']('value'),_0x392fbf['descriptionFactory']['registerDescriptionCallback'](_0x58d1dd=>{if('attribute'!=_0x58d1dd['type'])return;const {data:_0xbca8a6}=_0x58d1dd;if(_0xbca8a6&&'value'==_0xbca8a6['key']&&_0x58d1dd['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x284015=o(_0x249e7f,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x249e7f,'*Change\x20%0\x20content*',_0x284015)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2f66a1=this['editor'],_0x2fa080=_0x2f66a1['locale'];_0x2f66a1['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x130166=>{if('formatBlock'!=_0x130166['type'])return;const {data:_0x31ee56}=_0x130166;if(_0x31ee56&&'htmlEmbed'==_0x31ee56['commandName']){const _0x3ef92c=o(_0x2fa080,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x2fa080,'*Change\x20%0\x20content*',_0x3ef92c)};}});}}class it extends _0x2c20e0{['afterInit'](){const _0x278488=this['editor'];if(!_0x278488['plugins']['has']('ImageEditing'))return;const _0x1ef810=_0x278488['plugins']['get']('TrackChangesEditing'),_0x213ab5=_0x278488['plugins']['get']('ImageUtils'),_0x23271a=_0x278488['locale'];_0x1ef810['enableCommand']('insertImage'),_0x1ef810['descriptionFactory']['registerElementLabel']('imageBlock',_0x4465b0=>o(_0x23271a,'ELEMENT_IMAGE',_0x4465b0)),_0x1ef810['descriptionFactory']['registerElementLabel']('imageInline',_0x359ffa=>o(_0x23271a,'ELEMENT_INLINE_IMAGE',_0x359ffa)),_0x1ef810['descriptionFactory']['registerElementLabel']('caption',()=>o(_0x23271a,'ELEMENT_CAPTION')),_0x278488['plugins']['has']('ImageUploadEditing')&&_0x1ef810['enableCommand']('uploadImage'),_0x278488['plugins']['has']('ImageBlockEditing')&&_0x278488['plugins']['has']('ImageInlineEditing')&&(_0x1ef810['enableCommand']('imageTypeInline',(_0x592252,_0xab75d0)=>{const _0x16c6e0=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']);_0x278488['model']['change'](()=>{_0x1ef810['markBlockFormat'](_0x16c6e0,{'commandName':'imageTypeInline','commandParams':[_0xab75d0]},[],'convertBlockImageToInline');});}),_0x1ef810['enableCommand']('imageTypeBlock',(_0xe0e39c,_0x2682cf)=>{_0x278488['model']['change'](_0x5684cc=>{let _0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x2df48c=_0x439b21['fromPosition'](_0x339fa5['start'],'toPrevious'),_0xa7735f=_0x439b21['fromPosition'](_0x339fa5['end'],'toNext');_0x1ef810['forceDefaultExecution'](()=>_0xe0e39c(_0x2682cf)),_0x5a9a97=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x339fa5=_0x5684cc['createRangeOn'](_0x5a9a97);const _0x47d603=_0x5684cc['createRange'](_0x2df48c,_0xa7735f);_0x2df48c['detach'](),_0xa7735f['detach'](),_0x1ef810['markBlockFormat'](_0x5a9a97,{'commandName':'imageTypeInline','commandParams':[_0x2682cf]},[],'convertInlineImageToBlock'),_0x47d603['start']['isBefore'](_0x339fa5['start'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x47d603['start'],_0x339fa5['start']),'convertInlineImageToBlock'),_0x339fa5['end']['isBefore'](_0x47d603['end'])&&_0x1ef810['markInsertion'](_0x5684cc['createRange'](_0x339fa5['end'],_0x47d603['end']),'convertInlineImageToBlock');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x1ef810['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x501cd3])=>{const _0x464c5e=_0x1ef810['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x4b652f=_0x501cd3['start'],_0xd7b130=_0x501cd3['end'];const _0xce329c=_0x278488['model']['schema']['getNearestSelectionRange'](_0x4b652f,'backward'),_0x232f3b=_0x278488['model']['schema']['getNearestSelectionRange'](_0xd7b130,'forward');_0xce329c['isCollapsed']&&(_0x4b652f=_0xce329c['start']),_0x232f3b['isCollapsed']&&(_0xd7b130=_0x232f3b['end']),_0x464c5e([_0x278488['model']['createRange'](_0x4b652f,_0xd7b130)]);}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x54f985),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x54f985)),_0x278488['plugins']['has']('ImageCaptionEditing')&&(_0x1ef810['enableCommand']('toggleImageCaption',(_0x4b96df,_0x240fa9)=>{const _0x57c9cb=_0x278488['plugins']['get']('ImageCaptionUtils');let _0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb);_0x278488['model']['change'](()=>{if(_0x53f902)return void _0x1ef810['markDeletion'](_0x278488['model']['createRangeOn'](_0x53f902));const _0x552da7=_0x213ab5['isBlockImage'](_0x425ccb);_0x4b96df(_0x240fa9),_0x425ccb=_0x213ab5['getClosestSelectedImageElement'](_0x278488['model']['document']['selection']),_0x53f902=_0x57c9cb['getCaptionFromImageModelElement'](_0x425ccb),_0x1ef810['markInsertion'](_0x278488['model']['createRangeOn'](_0x53f902),_0x552da7?null:'imageCaption');});}),_0x1ef810['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x54f985));const _0x164172=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1f81a4(_0x444d08,_0x4ca094){const _0x1a5160=_0x164172['findIndex'](({type:_0x4e456e,subType:_0x292831})=>_0x444d08['type']==_0x4e456e&&_0x444d08['subType']==_0x292831),_0x4be327=_0x164172['findIndex'](({type:_0x274a31,subType:_0x32c15d})=>_0x4ca094['type']==_0x274a31&&_0x4ca094['subType']==_0x32c15d);if(_0x1a5160<0x0||_0x4be327<0x0)return!0x1;const _0x2a5565=_0x444d08['getFirstRange'](),_0x1d319c=_0x4ca094['getFirstRange']();if((0x0==_0x1a5160||0x1==_0x1a5160)&&0x2==_0x4be327&&_0x2a5565['isIntersecting'](_0x1d319c))return!0x0;if(0x2==_0x1a5160&&0x3==_0x4be327){const _0x3f6e62=_0x1ef810['_findSuggestions'](_0x2a5565,'insertion')['filter'](({suggestion:_0x2a1f28,meta:_0x404394})=>_0x404394['isOwn']&&'convertInlineImageToBlock'==_0x2a1f28['subType']);if(_0x3f6e62['length']>0x1&&_0x1d319c['end']['isEqual'](_0x2a5565['start']))return!0x0;if(0x1==_0x3f6e62['length']&&(_0x2a5565['start']['isEqual'](_0x1d319c['end'])||_0x2a5565['end']['isEqual'](_0x1d319c['start'])))return!0x0;}if(0x3==_0x1a5160&&0x3==_0x4be327&&_0x2a5565['start']['isBefore'](_0x1d319c['start'])){const _0x548efe=_0x2a5565['end']['nodeAfter'],_0x24a6ad=_0x1d319c['start']['nodeBefore'];return _0x213ab5['isBlockImage'](_0x548efe)&&_0x548efe===_0x24a6ad;}return!0x1;}function _0x54f985(_0x265a38,_0x353b8d){return _0x1f81a4(_0x265a38,_0x353b8d)?[_0x265a38,_0x353b8d]:_0x1f81a4(_0x353b8d,_0x265a38)?[_0x353b8d,_0x265a38]:null;}_0x278488['plugins']['has']('ImageResize')&&(_0x1ef810['enableDefaultAttributesIntegration']('resizeImage'),_0x1ef810['registerBlockAttribute']('resizedWidth'),_0x1ef810['descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x23271a,'FORMAT_IMAGE_SIZE'))),_0x278488['plugins']['has']('ImageTextAlternativeEditing')&&(_0x1ef810['enableDefaultAttributesIntegration']('imageTextAlternative'),_0x1ef810['registerBlockAttribute']('alt')),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x59eff9=>{if(!!_0x164172['find'](({type:_0x2acf3e,subType:_0x5c088e})=>_0x59eff9['type']==_0x2acf3e&&_0x59eff9['subType']==_0x5c088e))return _0x59eff9['previous']?{}:void 0x0;}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x401dd3=>{if('insertion'==_0x401dd3['type']||'deletion'==_0x401dd3['type']){const _0x12c46d=_0x401dd3['getContainedElement']();if(_0x12c46d&&_0x12c46d['is']('element','caption'))return{'type':'insertion'==_0x401dd3['type']?'addObject':'removeObject','element':_0x12c46d,'quantity':0x1};}}),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x1aea94=>'formatBlock'==_0x1aea94['type']&&'convertInlineImageToBlock'==_0x1aea94['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x1aea94['type']&&'convertBlockImageToInline'==_0x1aea94['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x1ef810['descriptionFactory']['registerDescriptionCallback'](_0x43a384=>{if('attribute'!=_0x43a384['type'])return;const {data:_0x3aa752}=_0x43a384;if(!_0x3aa752||'alt'!=_0x3aa752['key'])return;const _0x20006d=_0x3aa752['newValue'];return _0x20006d?{'type':'format','content':o(_0x23271a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x20006d+'\x22')}:{'type':'format','content':o(_0x23271a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2c114d=this['editor'],_0x57bd66=_0x2c114d['locale'];_0x2c114d['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x46529e=>{if('formatBlock'!=_0x46529e['type']&&'formatInline'!=_0x46529e['type'])return;const {data:_0x205830}=_0x46529e;if(_0x205830){if('imageTextAlternative'==_0x205830['commandName']){const _0xb01560=_0x205830['commandParams'][0x0]['newValue'];return _0xb01560?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0xb01560+'\x22')}:{'type':'format','content':o(_0x57bd66,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x205830['commandName']){const _0x9c2acb=_0x205830['commandParams'][0x0]['width'];return _0x9c2acb?{'type':'format','content':o(_0x57bd66,'*Set\x20image\x20width:*\x20%0',_0x9c2acb)}:{'type':'format','content':o(_0x57bd66,'*Reset\x20image\x20width*')};}}});}}class st extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x2927ba=this['editor']['locale'],_0x41d55c=this['editor']['plugins']['get']('TrackChangesEditing');_0x41d55c['enableDefaultAttributesIntegration']('replaceImageSource'),_0x41d55c['registerBlockAttribute']('src'),_0x41d55c['descriptionFactory']['registerDescriptionCallback'](_0x49441e=>{if('attribute'!=_0x49441e['type'])return;const {data:_0x8bdbfe}=_0x49441e;return _0x8bdbfe&&'src'==_0x8bdbfe['key']?_0x8bdbfe['newValue']&&_0x8bdbfe['oldValue']?{'type':'format','content':o(_0x2927ba,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x1f475f=this['editor']['plugins']['get']('TrackChangesEditing');_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x1f475f['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x1f475f['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4790d6=this['editor'],_0x30d9d7=_0x4790d6['locale'];_0x4790d6['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x4a201e=>{if('formatBlock'!=_0x4a201e['type']&&'formatInline'!=_0x4a201e['type'])return;const {data:_0x5311c8}=_0x4a201e;if(!_0x5311c8||'replaceImageSource'!=_0x5311c8['commandName'])return;return{'type':'format','content':o(_0x30d9d7,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x2c20e0{['afterInit'](){const _0x58ac9f=this['editor'];if(!_0x58ac9f['plugins']['has']('ImageStyleEditing'))return;const _0x516801=_0x58ac9f['plugins']['get']('TrackChangesEditing'),_0x3cb0a8=_0x58ac9f['plugins']['get']('ImageUtils'),_0x17180d={};_0x516801['enableCommand']('imageStyle',(_0xe1f5fc,_0x3dd4e2)=>{const _0x394856=_0x58ac9f['plugins']['get']('Users')['me'],_0x4dcd0e=_0x58ac9f['commands']['get']('imageStyle');let _0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x53d11b=_0x4dcd0e['value'];if(_0x53d11b==_0x3dd4e2['value'])return;const _0x5d3568={'commandName':'imageStyle','commandParams':[_0x3dd4e2],'formatGroupId':_0xe5f9d9()};_0x58ac9f['model']['change'](()=>{if(_0x516801['getSuggestions']()['filter'](_0x30ff5f=>_0x30ff5f['isInContent']&&_0x394856==_0x30ff5f['author']&&('formatBlock'==_0x30ff5f['type']||'formatInline'==_0x30ff5f['type'])&&('imageStylePreApply'==_0x30ff5f['subType']||'imageStylePostApply'==_0x30ff5f['subType'])&&_0x30ff5f['getFirstRange']()['isEqual'](_0x1af106))['forEach'](_0x1239c2=>_0x516801['discardSuggestion'](_0x1239c2['head'])),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),_0x1af106=_0x58ac9f['model']['createRangeOn'](_0x30d7bc),_0x4dcd0e['refresh'](),_0x58ac9f['commands']['get']('imageTypeInline')['refresh'](),_0x58ac9f['commands']['get']('imageTypeBlock')['refresh'](),_0x53d11b=_0x4dcd0e['value'],_0x53d11b!=_0x3dd4e2['value'])return _0x3cb0a8['isInlineImage'](_0x30d7bc)&&_0x4dcd0e['shouldConvertImageType'](_0x3dd4e2['value'],_0x30d7bc)?(_0xe1f5fc({..._0x3dd4e2,'setImageSizes':!0x1}),_0x30d7bc=_0x3cb0a8['getClosestSelectedImageElement'](_0x58ac9f['model']['document']['selection']),void _0x516801['markBlockFormat'](_0x30d7bc,{..._0x5d3568,'commandReversedParams':[{'value':_0x53d11b||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x3cb0a8['isBlockImage'](_0x30d7bc)?_0x516801['markBlockFormat'](_0x30d7bc,_0x5d3568,[],'imageStylePostApply'):_0x516801['markInlineFormat'](_0x1af106,_0x5d3568,'imageStylePostApply'));});});for(const _0x4d5678 of _0x58ac9f['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x17180d[_0x4d5678['name']]=_0x4d5678['title']['toLowerCase']();_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x56900b])=>{_0x3cb0a8['setImageNaturalSizeAttributes'](_0x56900b['getContainedElement']());}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x4968b0,_0x16c45c)=>{_0x516801['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x4968b0,{'commandName':_0x16c45c['commandName'],'commandParams':_0x16c45c['commandReversedParams']});}),_0x516801['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0xf2c67,_0x275f47){if(_0x5c9a65(_0xf2c67,_0x275f47))return[_0xf2c67,_0x275f47];if(_0x5c9a65(_0x275f47,_0xf2c67))return[_0x275f47,_0xf2c67];return null;});const _0x39fef1=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x5c9a65(_0x5a16c3,_0x1cdc1a){const _0x58b3bf=_0x39fef1['findIndex'](({type:_0x34ca4b,subType:_0x251a31})=>_0x5a16c3['type']==_0x34ca4b&&_0x5a16c3['subType']==_0x251a31),_0x1f120e=_0x39fef1['findIndex'](({type:_0x3e6a7b,subType:_0x6699d7})=>_0x1cdc1a['type']==_0x3e6a7b&&_0x1cdc1a['subType']==_0x6699d7);if(_0x58b3bf<0x0||_0x1f120e<0x0)return!0x1;const _0x55a0ed=_0x5a16c3['getFirstRange'](),_0x26a5c5=_0x1cdc1a['getFirstRange']();if((0x0==_0x58b3bf||0x1==_0x58b3bf)&&0x2==_0x1f120e&&_0x55a0ed['isIntersecting'](_0x26a5c5))return!0x0;if(0x2==_0x58b3bf&&0x3==_0x1f120e){const _0x10647f=_0x516801['_findSuggestions'](_0x55a0ed,'insertion')['filter'](({suggestion:_0x4dab5a,meta:_0x282e91})=>_0x282e91['isOwn']&&'convertInlineImageToBlock'==_0x4dab5a['subType']);if(_0x10647f['length']>0x1&&_0x26a5c5['end']['isEqual'](_0x55a0ed['start']))return!0x0;if(0x1==_0x10647f['length']&&(_0x55a0ed['start']['isEqual'](_0x26a5c5['end'])||_0x55a0ed['end']['isEqual'](_0x26a5c5['start'])))return!0x0;}if(0x3==_0x58b3bf&&0x3==_0x1f120e&&_0x55a0ed['start']['isBefore'](_0x26a5c5['start'])){const _0x5c556a=_0x55a0ed['end']['nodeAfter'],_0xf41280=_0x26a5c5['start']['nodeBefore'];return _0x3cb0a8['isBlockImage'](_0x5c556a)&&_0x5c556a===_0xf41280;}return!0x1;}_0x58ac9f['model']['document']['registerPostFixer'](()=>{let _0xd9b984=!0x1;const _0x22742c=Array['from'](_0x58ac9f['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x21b4f5,data:_0xccf3c3}of _0x22742c){const {group:_0x338d9d,type:_0x15c199,subType:_0x516866,id:_0x5b192c}=_0x516801['_splitMarkerName'](_0x21b4f5);if('suggestion'==_0x338d9d&&_0x516801['hasSuggestion'](_0x5b192c)){if('formatBlock'==_0x15c199&&('imageStylePreApply'==_0x516866||'imageStylePostApply'==_0x516866)){const _0x3d04f1=_0x516801['getSuggestion'](_0x5b192c);if(_0xccf3c3['newRange']){const _0x9189bc=_0x3d04f1['getFirstRange']()['getContainedElement']();if(_0x3cb0a8['isBlockImage'](_0x9189bc))continue;_0x516801['discardSuggestion'](_0x3d04f1),_0xd9b984=!0x0;}}if('insertion'==_0x15c199&&'imageCaption'==_0x516866&&!_0xccf3c3['newRange']){const _0x37b4bd=_0x516801['getSuggestion'](_0x5b192c);_0x37b4bd['next']&&_0x37b4bd['next']['isInContent']&&(_0x516801['discardSuggestion'](_0x37b4bd['next']),_0xd9b984=!0x0);}}}return _0xd9b984;}),this['_registerLegacyDescription'](_0x17180d);}['_registerLegacyDescription'](_0x383a9b){const _0x3a3146=this['editor'],_0x18c3d1=_0x3a3146['locale'];_0x3a3146['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x253779=>{if('formatBlock'!=_0x253779['type']&&'formatInline'!=_0x253779['type'])return;const {data:_0x4a2995}=_0x253779;if(!_0x4a2995||'imageStyle'!=_0x4a2995['commandName'])return;const _0x916f2e=_0x4a2995['commandParams'][0x0]['value'];return _0x1ff58c('side'===_0x916f2e?o(_0x18c3d1,'FORMAT_SIDE_IMAGE'):_0x383a9b[_0x916f2e]||_0x916f2e);function _0x1ff58c(_0x2a7460){return{'type':'format','content':o(_0x18c3d1,'*Format:*\x20%0',_0x2a7460)};}});}}class ot extends _0x2c20e0{['_trackChangesValueDuringImport'];['_trackChangesExecuted'];constructor(_0x2dabd6){super(_0x2dabd6),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}['afterInit'](){const _0x215838=this['editor'],_0x29ff4b=_0x215838['commands']['get']('importWord'),_0xe5e802=_0x215838['commands']['get']('trackChanges');_0x29ff4b&&(_0x29ff4b['on']('execute',(_0x3d2d98,[,_0x336dbe])=>{this['_trackChangesValueDuringImport']=_0xe5e802['value'],_0x336dbe['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x29ff4b,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x29ff4b,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0xe5e802['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x215838['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x25b99c,_0x8a829b){const {suggestions:_0x1f4013}=_0x8a829b,_0xc6d48b=this['editor']['commands']['get']('trackChanges'),_0x5186d8=_0xc6d48b['value'];this['_trackChangesValueDuringImport']!==_0x5186d8&&(_0xc6d48b['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f4013&&_0x1f4013['forEach'](({id:_0x2c230e,type:_0x34b581,author:_0x5c0bc4,created_at:_0x103bd5})=>{const _0x5c66a6={'id':_0x2c230e,'type':_0x34b581,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x5c0bc4,'createdAt':_0x103bd5?new Date(_0x103bd5):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x5c66a6);});}}class rt extends _0x2c20e0{['afterInit'](){const _0x38e5d0=this['editor'],_0xe511b=_0x38e5d0['plugins']['get']('TrackChangesEditing');if(_0x38e5d0['plugins']['has']('IndentEditing')&&(_0xe511b['enableCommand']('indent'),_0xe511b['enableCommand']('outdent')),_0x38e5d0['plugins']['has']('IndentBlock')){for(const _0xb1864 of['indentBlock','outdentBlock'])_0xe511b['enableDefaultAttributesIntegration'](_0xb1864);}const _0x1772a3=_0x38e5d0['locale'];_0xe511b['registerBlockAttribute']('blockIndent'),_0xe511b['descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x1772a3,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x5c6794=this['editor'],_0x19e04d=_0x5c6794['locale'],_0x4d503d=_0x5c6794['plugins']['get']('TrackChangesEditing');_0x4d503d['descriptionFactory']['registerDescriptionCallback'](_0x98671b=>{if('formatBlock'!=_0x98671b['type'])return;const {data:_0x365c99}=_0x98671b;if(!_0x365c99)return;if('indentBlock'!=_0x365c99['commandName']&&'outdentBlock'!=_0x365c99['commandName'])return;const _0x49fd63=_0x98671b['getItems']()[0x0],_0xa39165=_0x4d503d['descriptionFactory']['getItemLabel'](_0x49fd63);return'indentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Indent:*\x20%0',_0xa39165)}:'outdentBlock'==_0x365c99['commandName']?{'type':'format','content':o(_0x19e04d,'*Outdent:*\x20%0',_0xa39165)}:void 0x0;});}}class at extends _0x2c20e0{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x2c20e0{['afterInit'](){const _0x4abef8=this['editor'];if(!_0x4abef8['plugins']['has']('LinkEditing'))return;const _0x22bca0=_0x4abef8['plugins']['get']('TrackChangesEditing'),_0x475606=_0x4abef8['commands']['get']('link');_0x22bca0['enableDefaultAttributesIntegration']('link'),_0x22bca0['enableDefaultAttributesIntegration']('unlink'),_0x22bca0['registerInlineAttribute']('linkHref');for(const _0x3c614f of _0x475606['manualDecorators'])_0x22bca0['registerInlineAttribute'](_0x3c614f['id']),_0x22bca0['descriptionFactory']['registerAttributeLabel'](_0x3c614f['id'],'link\x20('+_0x3c614f['label']['toLowerCase']()+')');_0x22bca0['descriptionFactory']['registerDescriptionCallback'](_0x1cd7f5=>{if('attribute'!=_0x1cd7f5['type'])return;const {data:_0x1896e3}=_0x1cd7f5;if(!_0x1896e3||'linkHref'!=_0x1896e3['key'])return;const _0x3c5054=_0x1896e3['newValue'],_0x248c0e=_0x4abef8['locale'];return{'type':'format','content':null==_0x3c5054?o(_0x248c0e,'*Remove\x20link*'):o(_0x248c0e,'*Set\x20link:*\x20%0','\x22'+_0x3c5054+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x47c9bb=this['editor'],_0x4f2040=_0x47c9bb['locale'];_0x47c9bb['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x508fdb=>{if('formatInline'!=_0x508fdb['type'])return;const {data:_0x232d88}=_0x508fdb;if(_0x232d88){if('link'==_0x232d88['commandName']){const _0x38aa1b=_0x232d88['commandParams'][0x0];return{'type':'format','content':o(_0x4f2040,'*Set\x20link:*\x20%0','\x22'+_0x38aa1b+'\x22')};}return'unlink'==_0x232d88['commandName']?{'type':'format','content':o(_0x4f2040,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x2c20e0{['afterInit'](){const _0x3dc9fb=this['editor'],_0x13c2f2=_0x3dc9fb['locale'];if(!_0x3dc9fb['plugins']['has']('LegacyListEditing'))return;const _0x12c1a3=_0x3dc9fb['plugins']['get']('TrackChangesEditing'),_0x422ae7=_0x3dc9fb['plugins']['has']('LegacyTodoListEditing');function _0x531e63(_0x33cdf8){return()=>{const _0xf502bf=_0x3dc9fb['model']['document']['selection'],_0x512f69=_0x3dc9fb['commands']['get'](_0x33cdf8);if(_0x512f69['value'])return void _0x3dc9fb['execute']('paragraph',{});const _0x4e1991=_0x33cdf8['slice'](0x0,-0x4),_0x747aa7=function(_0x4dc1bf,_0x2fb84a,_0x2668a8){let _0x426079=Array['from'](_0x4dc1bf)['filter'](_0x5496ed=>function(_0x529a28,_0x1d22dc){return _0x1d22dc['checkChild'](_0x529a28['parent'],'listItem')&&!_0x1d22dc['isObject'](_0x529a28);}(_0x5496ed,_0x2668a8));_0x426079=_0x426079['filter'](_0x93b76f=>!_0x93b76f['is']('element','listItem')||_0x93b76f['getAttribute']('listType')!=_0x2fb84a);const _0x3b620f=new Set();for(const _0x57c834 of _0x426079)_0x57c834['is']('element','listItem')?_0x3b620f['add'](me(_0x57c834)):_0x3b620f['add'](_0x57c834);return Array['from'](_0x3b620f);}(_0xf502bf['getSelectedBlocks'](),_0x4e1991,_0x3dc9fb['model']['schema']);_0x3dc9fb['model']['change'](()=>{for(const _0x5bdd8a of _0x747aa7)_0x12c1a3['markBlockFormat'](_0x5bdd8a,{'commandName':_0x33cdf8,'commandParams':[{'forceValue':!_0x512f69['value']}],'formatGroupId':'blockName'},fe(_0x5bdd8a));});};}function _0x5a9eb9(_0x1fa88c){return()=>{const _0xc9abe3=function(_0xa61dc1){let _0x3ca4c7=Array['from'](_0xa61dc1);const _0x18c2ae=_0x3ca4c7['findIndex'](_0xa7fe9f=>'listItem'!=_0xa7fe9f['name']);return _0x18c2ae>-0x1&&(_0x3ca4c7=_0x3ca4c7['slice'](0x0,_0x18c2ae)),_0x3ca4c7;}(_0x3dc9fb['model']['document']['selection']['getSelectedBlocks']()),_0x5cbb5d=_0x3dc9fb['model']['createRange'](_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[0x0],'before'),_0x3dc9fb['model']['createPositionAt'](_0xc9abe3[_0xc9abe3['length']-0x1],'end'));_0x3dc9fb['model']['change'](()=>{_0x12c1a3['markBlockFormat'](_0x5cbb5d,{'commandName':_0x1fa88c,'commandParams':[],'formatGroupId':'listIndent'},function(_0x1a87f4){const _0x8c9e79=new Set();for(const _0x7560b8 of _0x1a87f4){let _0x5f3f06=_0x7560b8['nextSibling'];for(;_0x5f3f06&&_0x5f3f06['getAttribute']('listIndent')>_0x7560b8['getAttribute']('listIndent');)_0x8c9e79['add'](_0x5f3f06),_0x5f3f06=_0x5f3f06['nextSibling'];}return Array['from'](_0x8c9e79);}(_0xc9abe3));});};}_0x12c1a3['enableCommand']('numberedList',_0x531e63('numberedList')),_0x12c1a3['enableCommand']('bulletedList',_0x531e63('bulletedList')),_0x422ae7&&_0x12c1a3['enableCommand']('todoList',_0x531e63('todoList')),_0x12c1a3['enableCommand']('indentList',_0x5a9eb9('indentList')),_0x12c1a3['enableCommand']('outdentList',_0x5a9eb9('outdentList')),_0x422ae7&&_0x12c1a3['enableCommand']('checkTodoList',()=>{const _0x546a28=_0x3dc9fb['commands']['get']('checkTodoList'),_0xaef938=Array['from'](_0x546a28['_selectedElements']);_0xaef938['filter'](_0x4f814a=>_0x4f814a['getAttribute']('todoListChecked')!=_0x546a28['value']),_0x3dc9fb['model']['change'](()=>{for(const _0x316c90 of _0xaef938)_0x12c1a3['markBlockFormat'](_0x316c90,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x546a28['value']}]});});}),_0x12c1a3['descriptionFactory']['registerElementLabel']('listItem',_0x2a8b90=>o(_0x13c2f2,'ELEMENT_LIST_ITEM',_0x2a8b90)),_0x12c1a3['descriptionFactory']['registerDescriptionCallback'](_0x398be4=>{if('formatBlock'!=_0x398be4['type']&&'formatInline'!=_0x398be4['type'])return;const {data:_0x1d98f1}=_0x398be4;if(_0x1d98f1){if('numberedList'==_0x1d98f1['commandName']||'bulletedList'==_0x1d98f1['commandName']||'todoList'==_0x1d98f1['commandName'])switch(_0x1d98f1['commandName']['replace']('List','')){case'bulleted':return _0x46ad09(o(_0x13c2f2,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x46ad09(o(_0x13c2f2,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x46ad09(o(_0x13c2f2,'ELEMENT_TODO_LIST'));}if('indentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Indent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x1d98f1['commandName'])return{'type':'format','content':o(_0x13c2f2,'*Outdent:*\x20%0',o(_0x13c2f2,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x1d98f1['commandName'])return _0x1d98f1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x13c2f2,'*Check\x20item*')}:{'type':'format','content':o(_0x13c2f2,'*Uncheck\x20item*')};}function _0x46ad09(_0x141d51){return{'type':'format','content':o(_0x13c2f2,'*Change\x20to:*\x20%0',_0x141d51)};}});}}function me(_0x31d801){const _0x3b0857=_0x31d801['getAttribute']('listIndent');if(0x0==_0x3b0857)return _0x31d801;let _0x29bc3f=_0x31d801;for(;_0x31d801['previousSibling']&&_0x31d801['previousSibling']['is']('element','listItem');){const _0x3291f3=_0x31d801['previousSibling']['getAttribute']('listIndent');if(_0x3291f3==_0x3b0857)_0x29bc3f=_0x31d801['previousSibling'];else{if(_0x3291f3<_0x3b0857)break;}_0x31d801=_0x31d801['previousSibling'];}return _0x29bc3f;}function fe(_0x4d8c8a){const _0x460eca=[];if(_0x4d8c8a['is']('element','listItem')&&_0x4d8c8a['getAttribute']('listIndent')>0x0){let _0x2d2d9f=_0x4d8c8a['nextSibling'];for(;_0x2d2d9f&&'listItem'==_0x2d2d9f['name']&&_0x2d2d9f['getAttribute']('listIndent')==_0x4d8c8a['getAttribute']('listIndent');)_0x460eca['push'](_0x2d2d9f),_0x2d2d9f=_0x2d2d9f['nextSibling'];}return _0x460eca;}class K extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5c44cb=this['editor']['config']['get']('list.properties'),_0x4a9519=this['editor']['plugins']['get']('TrackChangesEditing');_0x5c44cb['styles']&&_0x4a9519['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5c44cb['reversed']&&_0x4a9519['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5c44cb['startIndex']&&_0x4a9519['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x4a9519['descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x2c44d8,_0x49841e={}){const _0x31ae85=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3605c4=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x31ae85['markMultiRangeBlockFormat'](_0x3605c4,{'commandName':'listStyle','commandParams':[{'type':_0x49841e['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x254ead,_0x460202={}){const _0x4e51f3=this['editor']['plugins']['get']('TrackChangesEditing'),_0x2d3bb8=this['_getSuggestionBlocks'](_0x2bab1b=>_0x2bab1b['is']('element','listItem')&&'numbered'===_0x2bab1b['getAttribute']('listType'));if(_0x2d3bb8['length']<0x1)return;const _0x480565=_0x2d3bb8['map'](_0x342d1d=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x342d1d,'before'),this['editor']['model']['createPositionAt'](_0x342d1d,0x0)));this['editor']['model']['change'](()=>{_0x4e51f3['markMultiRangeBlockFormat'](_0x480565,{'commandName':'listReversed','commandParams':[{'reversed':_0x460202['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x3665a8,_0x46e8c9={}){const _0x5de57f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x10ed51=this['_getSuggestionBlocks'](_0x3fc086=>_0x3fc086['is']('element','listItem')&&'numbered'===_0x3fc086['getAttribute']('listType'));if(_0x10ed51['length']<0x1)return;const _0x569ac8=_0x10ed51['map'](_0x5c769b=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5c769b,'before'),this['editor']['model']['createPositionAt'](_0x5c769b,0x0)));this['editor']['model']['change'](()=>{_0x5de57f['markMultiRangeBlockFormat'](_0x569ac8,{'commandName':'listStart','commandParams':[{'startIndex':_0x46e8c9['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x656eda){if('formatBlock'!=_0x656eda['type']&&'formatInline'!=_0x656eda['type'])return;const _0x566ec0=this['editor']['locale'],{data:_0x27cbbf}=_0x656eda;if(!_0x27cbbf)return;let _0x524b65,_0xb2202;switch(_0x27cbbf['commandName']){case'listStyle':_0x524b65='*Change\x20to:*\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,o(_0x566ec0,this['_getTranslationKeyForListStyle'](_0x27cbbf['commandParams'][0x0]['type'])))};break;case'listReversed':_0x524b65=_0x27cbbf['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65)};break;case'listStart':_0x524b65='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0xb2202={'type':'format','content':o(_0x566ec0,_0x524b65,_0x27cbbf['commandParams'][0x0]['startIndex'])};}return _0xb2202;}['_getSuggestionBlocksForListStyle'](){const _0x13be29=this['editor']['plugins']['get']('LegacyListUtils');let _0x1f6090=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return _0x1f6090[0x0]?.['is']('element','listItem')&&_0x1f6090['unshift'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),_0x1f6090[_0x1f6090['length']-0x1]?.['is']('element','listItem')&&_0x1f6090['push'](..._0x13be29['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x1f6090=[...new Set(_0x1f6090)],this['editor']['model']['document']['selection']['getFirstPosition']()?.['parent']?.['is']('element','listItem')&&(_0x1f6090=_0x1f6090['filter'](_0x553255=>_0x553255['is']('element','listItem'))),_0x1f6090;}['_getSuggestionBlocks'](_0x4bee0){const _0x4d3da1=this['editor']['plugins']['get']('LegacyListUtils');let _0x33f07a=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x4bee0)['map'](_0x1fac90=>{const _0x45b583=this['editor']['model']['createPositionAt'](_0x1fac90,0x0);return[..._0x4d3da1['getSiblingNodes'](_0x45b583,'backward'),..._0x4d3da1['getSiblingNodes'](_0x45b583,'forward')];})['flat']();return _0x33f07a=[...new Set(_0x33f07a)],_0x33f07a;}['_getTranslationKeyForListStyle'](_0x411228){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x411228)||'default')['toUpperCase']()+'_LIST_'+_0x411228['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x2c20e0{['afterInit'](){const _0x344ada=this['editor'];if(!_0x344ada['plugins']['has']('MediaEmbedEditing'))return;const _0x1cabd5=_0x344ada['plugins']['get']('TrackChangesEditing'),_0xced3b=_0x344ada['locale'];_0x1cabd5['enableCommand']('mediaEmbed'),_0x1cabd5['descriptionFactory']['registerElementLabel']('media',_0x380f27=>o(_0xced3b,'ELEMENT_MEDIA',_0x380f27)),_0x344ada['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x2072ac,{writer:_0x4153ea,options:_0x38cd45})=>{if(_0x38cd45['showSuggestionHighlights'])return _0x4153ea['createEmptyElement']('div');},'converterPriority':'high'}),_0x344ada['data']['downcastDispatcher']['on']('attribute:url:media',(_0x4547a7,_0x35b2b0,_0x303706)=>{_0x303706['options']['showSuggestionHighlights']&&_0x4547a7['stop']();},{'priority':'high'});}}class gt extends _0x2c20e0{['afterInit'](){const _0x3eaefb=this['editor'];_0x3eaefb['plugins']['has']('MentionEditing')&&_0x3eaefb['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x2c20e0{['afterInit'](){const _0x395ecd=this['editor'],_0x32d33d=_0x395ecd['plugins']['get']('TrackChangesEditing');_0x395ecd['plugins']['has']('MultiLevelList')&&(_0x32d33d['enableDefaultAttributesIntegration']('multiLevelList'),_0x32d33d['registerBlockAttribute']('listMarkerStyle'),_0x32d33d['descriptionFactory']['registerDescriptionCallback'](_0x7e8e05=>this['handleDescriptions'](_0x7e8e05)));}['handleDescriptions'](_0x565d3f){const _0x5b67e5=this['editor']['locale'],{data:_0x2711aa}=_0x565d3f,_0x540b5e={'type':'format','content':''};if(_0x2711aa&&'listMarkerStyle'==_0x2711aa['key']){if(!_0x2711aa['oldValue'])return{'type':'format','content':o(_0x5b67e5,'*Set\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['newValue']+')'};if(!_0x2711aa['newValue']){let _0x17e6b0=_0x565d3f['head'];for(;_0x17e6b0;){if(_0x17e6b0['data']&&'listType'==_0x17e6b0['data']['key']&&_0x17e6b0['data']['newValue'])return _0x540b5e;_0x17e6b0=_0x17e6b0['next'];}return{'type':'format','content':o(_0x5b67e5,'*Remove\x20format:*\x20%0',o(_0x5b67e5,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2711aa['oldValue']+')'};}}}}class mt extends _0x2c20e0{['afterInit'](){const _0x400620=this['editor'];if(!_0x400620['plugins']['has']('PageBreakEditing'))return;_0x400620['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1e41e7=_0x400620['plugins']['get']('TrackChangesEditing'),_0x4086b3=_0x400620['locale'];_0x1e41e7['descriptionFactory']['registerElementLabel']('pageBreak',_0x163dc8=>o(_0x4086b3,'ELEMENT_PAGE_BREAK',_0x163dc8));}}class dt extends _0x2c20e0{['afterInit'](){const _0x4d669c=this['editor'];if(!_0x4d669c['plugins']['has']('Paragraph'))return;const _0x1b078c=_0x4d669c['locale'],_0x34a368=_0x4d669c['plugins']['get']('TrackChangesEditing');_0x34a368['descriptionFactory']['registerElementLabel']('paragraph',_0xa9dda5=>o(_0x1b078c,'ELEMENT_PARAGRAPH',_0xa9dda5)),_0x34a368['enableDefaultAttributesIntegration']('paragraph'),_0x34a368['enableCommand']('insertParagraph'),_0x4d669c['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x4d669c),{'priority':'highest'}),_0x4d669c['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x18cd0d,_0xffc83a,_0x2ab580)=>{_0x2ab580['options']['showSuggestionHighlights']&&nr(_0x4d669c,{'showActiveMarker':!0x1})(_0x18cd0d,_0xffc83a,_0x2ab580);},{'priority':'highest'});const _0x2f057b=_0x34a368['descriptionFactory'];_0x2f057b['registerDescriptionCallback'](_0x397129=>{if('insertion'!==_0x397129['type'])return;const {start:_0x37962f,end:_0x1ce012}=_0x397129['getFirstRange']();if(!_0x37962f['isTouching'](_0x1ce012)||!_0x37962f['nodeAfter'])return;const _0x28dd36=_0x4d669c['model']['schema'],_0x31ef4a=_0x37962f['nodeAfter'];return _0x28dd36['isBlock'](_0x31ef4a)&&!_0x28dd36['isLimit'](_0x31ef4a)&&_0x28dd36['checkChild'](_0x31ef4a,'$text')?{'type':'insertion','content':o(_0x1b078c,'*Insert:*\x20%0',_0x2f057b['getItemLabel'](_0x31ef4a,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x30a6c3=this['editor'],_0x133345=_0x30a6c3['locale'];_0x30a6c3['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x3f33e0=>{if('formatBlock'!=_0x3f33e0['type'])return;const {data:_0x23ba35}=_0x3f33e0;return _0x23ba35&&'paragraph'==_0x23ba35['commandName']?{'type':'format','content':o(_0x133345,'*Change\x20to:*\x20%0',o(_0x133345,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x10783f,{showActiveMarker:_0x11df75=!0x0}={}){return(_0x34a2de,_0x1f3461,_0x3bad99)=>{const _0x2c93ce=_0x10783f['plugins']['get']('TrackChangesEditing'),_0x127f29=_0x1f3461['markerRange']['start'],_0x2fbf9b=_0x1f3461['markerRange']['end'],_0x7fcce2=_0x10783f['model']['schema'];if(!_0x127f29['isTouching'](_0x2fbf9b)||!_0x127f29['nodeAfter'])return;const _0x592b4b=_0x127f29['nodeAfter'];if(_0x7fcce2['isBlock'](_0x592b4b)&&!_0x7fcce2['isLimit'](_0x592b4b)&&_0x7fcce2['checkChild'](_0x592b4b,'$text')){if(!_0x3bad99['consumable']['consume'](_0x1f3461['markerRange'],_0x34a2de['name']))return;const _0x2190ae=_0x3bad99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x1b8502=_0x3bad99['mapper']['toViewPosition'](_0x2fbf9b);_0x11df75&&_0x2c93ce['activeMarkers']['includes'](_0x1f3461['markerName'])&&_0x3bad99['writer']['addClass']('ck-suggestion-marker--active',_0x2190ae),_0x3bad99['writer']['insert'](_0x1b8502,_0x2190ae),_0x3bad99['mapper']['bindElementToMarker'](_0x2190ae,_0x1f3461['markerName']);}};}class pt extends _0x2c20e0{['afterInit'](){const _0x2c6b7d=this['editor'];if(!_0x2c6b7d['plugins']['has']('RemoveFormatEditing'))return;_0x2c6b7d['plugins']['get']('TrackChangesEditing')['enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x380a30=this['editor'];_0x380a30['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x5751d2=>{if('formatBlock'!=_0x5751d2['type']&&'formatInline'!=_0x5751d2['type'])return;const {data:_0xfec7c5}=_0x5751d2;return _0xfec7c5&&'removeFormat'==_0xfec7c5['commandName']?{'type':'format','content':o(_0x380a30['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x2c20e0{['afterInit'](){const _0x364b6f=this['editor'];if(!_0x364b6f['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x424421=_0x364b6f['plugins']['get']('TrackChangesEditing');_0x424421['enableCommand']('goToPreviousRestrictedEditingException'),_0x424421['enableCommand']('goToNextRestrictedEditingException');const _0x112e9c=_0x364b6f['plugins']['get']('RestrictedEditingModeEditing');_0x112e9c['enableCommand']('trackChanges'),_0x112e9c['enableCommand']('acceptSuggestion'),_0x112e9c['enableCommand']('discardSuggestion'),_0x112e9c['enableCommand']('acceptAllSuggestions'),_0x112e9c['enableCommand']('discardAllSuggestions'),_0x112e9c['enableCommand']('acceptSelectedSuggestions'),_0x112e9c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x2c20e0{static get['requires'](){return[_0x34add9];}['init'](){const _0x2b53f8=this['editor'],_0x361aff=_0x2b53f8['plugins']['get']('TrackChangesEditing');_0x361aff['enableCommand']('shiftEnter'),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2b53f8),{'priority':'high'}),_0x2b53f8['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x465801,_0x1fb112,_0x3087e)=>{_0x3087e['options']['showSuggestionHighlights']&&de(_0x2b53f8,{'showActiveMarker':!0x1})(_0x465801,_0x1fb112,_0x3087e);}),_0x361aff['descriptionFactory']['registerElementLabel']('softBreak',_0xb07ac2=>o(_0x2b53f8['locale'],'ELEMENT_LINE_BREAK',_0xb07ac2));}}function de(_0x141423,{showActiveMarker:_0x4595d5=!0x0}={}){return(_0x2b9ce4,_0x5e6e25,_0x47ead2)=>{const _0x990f35=_0x141423['plugins']['get']('TrackChangesEditing');if(!_0x47ead2['consumable']['test'](_0x5e6e25['markerRange'],_0x2b9ce4['name']))return;const _0x24128a=_0x141423['model'];for(const _0x231913 of _0x5e6e25['markerRange']['getItems']()){if(!_0x231913['is']('element','softBreak'))continue;const _0x4b70bb='deletion'==_0x5e6e25['markerName']['split'](':')[0x1]?'merge':'split',_0x3063f5=_0x47ead2['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b70bb}),_0x3b2be2=_0x47ead2['mapper']['toViewPosition'](_0x24128a['createPositionBefore'](_0x231913));_0x4595d5&&_0x990f35['activeMarkers']['includes'](_0x5e6e25['markerName'])&&_0x47ead2['writer']['addClass']('ck-suggestion-marker--active',_0x3063f5),_0x47ead2['writer']['insert'](_0x3b2be2,_0x3063f5),_0x47ead2['mapper']['bindElementToMarker'](_0x3063f5,_0x5e6e25['markerName']);}};}class wt extends _0x2c20e0{['afterInit'](){const _0x41c225=this['editor'],_0x1c8154=_0x41c225['model'],_0x3332aa=_0x41c225['locale'];if(!_0x41c225['plugins']['has']('StandardEditingModeEditing'))return;const _0x5a284a=_0x41c225['plugins']['get']('TrackChangesEditing'),_0xf78f37='restrictedEditingException',_0x5d0fa6=_0x41c225['commands']['get'](_0xf78f37);_0x5a284a['enableCommand'](_0xf78f37,(_0x89cd4b,_0x4f40b6={})=>{const _0x56c49c=_0x1c8154['document']['selection'];if(_0x56c49c['isCollapsed'])return void _0x89cd4b(_0x4f40b6);const _0x56df6a=void 0x0!==_0x4f40b6['forceValue']?_0x4f40b6['forceValue']:!_0x5d0fa6['value'];_0x1c8154['change'](()=>{const _0xfe3dc0=Array['from'](_0x56c49c['getRanges']());for(const _0x30d896 of _0xfe3dc0){const _0x30d988=_0x56df6a?[_0x30d896]:io(_0xf78f37,_0x30d896,_0x1c8154);for(const _0x32872d of _0x30d988)_0x5a284a['markInlineFormat'](_0x32872d,{'commandName':_0xf78f37,'commandParams':[{'forceValue':_0x56df6a}]});}});}),_0x5a284a['descriptionFactory']['registerDescriptionCallback'](_0x14643b=>{if('formatBlock'!=_0x14643b['type']&&'formatInline'!=_0x14643b['type'])return;const {data:_0x58a22c}=_0x14643b;return _0x58a22c&&_0x58a22c['commandName']==_0xf78f37?_0x58a22c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x3332aa,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x2c20e0{['afterInit'](){const _0x3cfa4c=this['editor'];if(!_0x3cfa4c['plugins']['has']('Style')||!_0x3cfa4c['plugins']['has']('DataSchema'))return;const _0x36aaca=_0x3cfa4c['plugins']['get']('TrackChangesEditing'),_0x48d3c0=_0x3cfa4c['locale'],_0x3971d8=_0x3cfa4c['config']['get']('style')||{},_0x193eb8=_0x3cfa4c['plugins']['get']('GeneralHtmlSupport'),_0x550dee=_0x3cfa4c['plugins']['get']('StyleUtils')['normalizeConfig'](_0x3cfa4c['plugins']['get']('DataSchema'),_0x3971d8['definitions']);_0x36aaca['enableDefaultAttributesIntegration']('style');const _0x3d08d7=new Set();for(const _0x2b7b5d of _0x550dee['block']){const _0x351658=_0x193eb8['getGhsAttributeNameForElement'](_0x2b7b5d['element']);_0x3d08d7['add'](_0x351658);}const _0x3a28eb=new Set();for(const _0x145f0c of _0x550dee['inline']){const _0x493a2d=_0x193eb8['getGhsAttributeNameForElement'](_0x145f0c['element']);_0x3a28eb['add'](_0x493a2d);for(const _0x1f2c8a of _0x145f0c['ghsAttributes'])_0x3a28eb['add'](_0x1f2c8a);}for(const _0x5a6e0f of _0x3d08d7)_0x36aaca['registerBlockAttribute'](_0x5a6e0f),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x5a6e0f,o(_0x48d3c0,'FORMAT_STYLE'));for(const _0x17b6be of _0x3a28eb)_0x36aaca['registerInlineAttribute'](_0x17b6be),_0x36aaca['descriptionFactory']['registerAttributeLabel'](_0x17b6be,o(_0x48d3c0,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x86775f=this['editor'],_0x5e3823=_0x86775f['locale'];_0x86775f['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x32afb2=>{if('formatBlock'!=_0x32afb2['type']&&'formatInline'!=_0x32afb2['type'])return;const {data:_0x4b344f}=_0x32afb2;return _0x4b344f&&'style'===_0x4b344f['commandName']?_0x4b344f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5e3823,'*Set\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x5e3823,'*Remove\x20format:*\x20%0',_0x4b344f['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x2c20e0{['_tablePostFixingSubtypes'];['_tableSuggestions'];constructor(_0x4cd794){super(_0x4cd794),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}['afterInit'](){const _0x4531bc=this['editor'],_0x3773e3=_0x4531bc['model']['document']['selection'];if(!_0x4531bc['plugins']['has']('TableEditing'))return;const _0x54cf41=_0x4531bc['locale'],_0x177f83=_0x4531bc['plugins']['get']('TrackChangesEditing'),_0x2d6a55=_0x4531bc['plugins']['get']('TableUtils');_0x177f83['descriptionFactory']['registerElementLabel']('table',_0x2570e6=>o(_0x54cf41,'ELEMENT_TABLE',_0x2570e6)),this['_setupColumnsRowsFixing'](),_0x177f83['enableCommand']('insertTable'),_0x177f83['enableCommand']('selectTableRow'),_0x177f83['enableCommand']('selectTableColumn');for(const _0xa0a3e2 of['insertTableRowAbove','insertTableRowBelow']){const _0x1d5beb=_0x4531bc['commands']['get'](_0xa0a3e2);_0x177f83['enableCommand'](_0xa0a3e2,_0x3b70b5=>{_0x4531bc['model']['change'](_0x180f53=>{_0x3b70b5();const _0x50516e='above'===_0x1d5beb['order'],_0x12fdb5=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x2abd0c=_0x2d6a55['getRowIndexes'](_0x12fdb5),_0xfc59a5=_0x50516e?_0x2abd0c['first']-0x1:_0x2abd0c['last']+0x1,_0x34853a=_0x12fdb5[0x0]['findAncestor']('table'),_0x4fa123=_0x2d6a55['createTableWalker'](_0x34853a,{'startRow':_0xfc59a5,'endRow':_0xfc59a5}),_0x3f7cae=Array['from'](_0x4fa123)['map'](_0x581dc2=>_0x180f53['createRangeOn'](_0x581dc2['cell']));_0x177f83['markMultiRangeInsertion'](_0x3f7cae,'tableRow');});});}for(const _0x3c5ee9 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3e3f46=_0x4531bc['commands']['get'](_0x3c5ee9);_0x177f83['enableCommand'](_0x3c5ee9,_0x40ae11=>{_0x4531bc['model']['change'](_0x2e4813=>{_0x40ae11();const _0x109133='left'===_0x3e3f46['order'],_0x147937=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x61bc75=_0x2d6a55['getColumnIndexes'](_0x147937),_0x36bad2=_0x109133?_0x61bc75['first']-0x1:_0x61bc75['last']+0x1,_0x100ca9=_0x147937[0x0]['findAncestor']('table'),_0x4e1b8f=_0x2d6a55['createTableWalker'](_0x100ca9,{'startRow':0x0,'column':_0x36bad2,'includeAllSlots':!0x1}),_0x3febd2=Array['from'](_0x4e1b8f)['map'](_0x58bf4b=>_0x2e4813['createRangeOn'](_0x58bf4b['cell']));_0x177f83['markMultiRangeInsertion'](_0x3febd2,'tableColumn');});});}for(const _0x1059cb of['removeTableRow','removeTableColumn']){const _0x8e776d=_0x1059cb['substr'](0xb),_0x2fdaeb=_0x8e776d['toLowerCase'](),_0x438150=_0x2fdaeb['substr'](0x0,0x3)+'span',_0x4a3fac='table'+_0x8e776d,_0x169bff='min'+_0x8e776d,_0x50f810='max'+_0x8e776d;_0x177f83['enableCommand'](_0x1059cb,()=>{_0x4531bc['model']['change'](_0x3e5f70=>{const _0x68a3af=_0x2d6a55['getSelectionAffectedTableCells'](_0x3773e3),_0x3466c6=_0x68a3af[0x0]['findAncestor']('table');let _0x53d800;if('removeTableRow'==_0x1059cb){const _0xcfcc0b=_0x2d6a55['getRowIndexes'](_0x68a3af);_0x53d800={'startRow':_0xcfcc0b['first'],'endRow':_0xcfcc0b['last'],'includeAllSlots':!0x0};}else{const _0x47c3d6=_0x2d6a55['getColumnIndexes'](_0x68a3af);_0x53d800={'startColumn':_0x47c3d6['first'],'endColumn':_0x47c3d6['last'],'includeAllSlots':!0x0};}const _0x357191=_0x2d6a55['createTableWalker'](_0x3466c6,_0x53d800),_0x4780d3=Array['from'](_0x357191)['map'](({cell:_0x14a7da})=>_0x14a7da),_0xd5b151=Ee(_0x4780d3['filter'](_0x1df038=>_0x1df038['hasAttribute'](_0x438150))),_0x20e98e=Ee(_0x4780d3['filter'](_0x5339a3=>!_0x5339a3['hasAttribute'](_0x438150)))['map'](_0x38da86=>_0x3e5f70['createRangeOn'](_0x38da86)),_0x773d76=_0x177f83['markMultiRangeDeletion'](_0x20e98e,_0x4a3fac);if(_0x773d76&&('tableRow'==_0x773d76['subType']||'tableColumn'==_0x773d76['subType'])){const _0x2c045c=this['_getSuggestionCoords'](_0x773d76);for(const _0x25232a of _0xd5b151){const _0x4e8cff=_0x3e5f70['createRangeOn'](_0x25232a),_0x4bbd2d=_0x2d6a55['getCellLocation'](_0x25232a),_0x185f77=_0x25232a['getAttribute'](_0x438150)-0x1,_0x127258=_0x2c045c[_0x169bff],_0x19cbdf=_0x2c045c[_0x50f810];_0x127258<=_0x4bbd2d[_0x2fdaeb]&&_0x4bbd2d[_0x2fdaeb]+_0x185f77<=_0x19cbdf&&_0x773d76['addRange'](_0x4e8cff);}}});});}function _0x48c7e0(_0x325583){const _0x143fee=Array['from'](_0x3773e3['getRanges']())['map'](_0x18ec46=>_0xef9d24['fromRange'](_0x18ec46));_0x4531bc['model']['change'](_0x4381e8=>{const _0x19e1ac=_0x4381e8['batch'];_0x325583=_0x325583['filter'](_0xc49061=>'$graveyard'!=_0xc49061['root']['rootName']),_0x4381e8['setSelection'](_0x325583),_0x4531bc['commands']['get']('removeTableRow')['refresh'](),_0x4531bc['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x4531bc['model']['enqueueChange'](()=>{_0x4531bc['model']['enqueueChange'](_0x19e1ac,_0x21212a=>{const _0x270549=_0x143fee['filter'](_0x304845=>'$graveyard'!=_0x304845['root']['rootName']);_0x270549['length']>0x0&&_0x21212a['setSelection'](_0x270549);for(const _0x5081aa of _0x143fee)_0x5081aa['detach']();});});});}function _0x3d6982(_0x33bbc6){_0x4531bc['model']['change'](_0x50d52b=>{const _0x17b233=Array['from'](_0x3773e3['getRanges']())['map'](_0xfde352=>_0xef9d24['fromRange'](_0xfde352)),_0x5734d5=[];for(const _0x1103d0 of _0x33bbc6)for(const _0x13c28b of _0x1103d0['getItems']({'shallow':!0x0}))_0x5734d5['push'](_0x13c28b);for(const _0x22f293 of _0x5734d5)'$graveyard'!=_0x22f293['root']['rootName']&&(_0x50d52b['setSelection'](_0x50d52b['createPositionAt'](_0x22f293,0x0)),_0x4531bc['commands']['get']('removeTableColumn')['refresh'](),_0x4531bc['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x49b39a=_0x17b233['filter'](_0x3e38b7=>'$graveyard'!=_0x3e38b7['root']['rootName']);_0x49b39a['length']>0x0&&_0x50d52b['setSelection'](_0x49b39a);for(const _0x98f0a2 of _0x17b233)_0x98f0a2['detach']();});}function _0x76cee8(_0x42fb97,_0x3fdb62){return _0x3fdb62['every'](_0x4cfc2c=>_0x42fb97['some'](_0x4ff40f=>_0x4ff40f['end']['isEqual'](_0x4cfc2c['start'])||_0x4cfc2c['end']['isEqual'](_0x4ff40f['start'])));}function _0x19b9b9(_0x4ee42f,_0x48a46a){return!_0x4ee42f['some'](_0x1eb74a=>_0x48a46a['some'](_0x1b6506=>_0x1eb74a['isIntersecting'](_0x1b6506)))&&_0x4ee42f['some'](_0x35b36d=>_0x48a46a['some'](_0x340bc1=>_0x35b36d['end']['isTouching'](_0x340bc1['start'])));}_0x4531bc['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x205789,_0xa73c1a,_0x4fea89)=>{if(!_0x4fea89['options']['showSuggestionHighlights'])return;const _0x4027db=_0xa73c1a['item'];if(!_0x4027db)return;const _0x26342b=_0x4fea89['mapper']['toViewElement'](_0x4027db);function _0x3e4ff5(_0x14abaf){return Array['isArray'](_0x14abaf)?_0x14abaf:[_0x14abaf];}_0x26342b&&'tableCell'===_0x4027db['name']&&_0x63a0a0(_0x26342b,_0x4fea89['writer'],(_0x44436e,_0x2a6969,_0x305bd1)=>_0x305bd1['addClass'](_0x3e4ff5(_0x2a6969['classes']),_0x44436e),(_0x24d3a9,_0x4f7292,_0x2ddbb7)=>_0x2ddbb7['removeClass'](_0x3e4ff5(_0x4f7292['classes']),_0x24d3a9));},{'priority':'highest'}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x2420b7=>{if('insertion'!=_0x2420b7['type']&&'deletion'!=_0x2420b7['type'])return;const _0x2f0c53=_0x2420b7['getContainedElement']();if(null!=_0x2f0c53&&_0x2f0c53['is']('element','table')){if('insertion'==_0x2420b7['type']){const _0x3dcba3=_0x2420b7['getItems']()['filter'](_0x57594d=>_0x57594d['is']('$textProxy'))['map'](_0x52204d=>_0x52204d['data']);if(_0x3dcba3['length'])return{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x3dcba3['join']('\x20')+'\x22'))};}if('deletion'==_0x2420b7['type']){const _0x33d6bc=_0x2420b7['getItems']()['filter'](_0x4af400=>_0x4af400['is']('$textProxy'))['map'](_0x11667a=>_0x11667a['data']);if(_0x33d6bc['length'])return{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x33d6bc['join']('\x20')+'\x22'))};}}}),_0x177f83['descriptionFactory']['registerDescriptionCallback'](_0x1d3500=>{if('tableRow'==_0x1d3500['subType']){const _0x3e6b00=_0x1d3500['getItems']()['filter'](_0x4527f7=>_0x4527f7['is']('$textProxy'))['map'](_0x1758e2=>_0x1758e2['data']),_0x1afa20=this['_getSuggestionCoords'](_0x1d3500),_0x303e5a=_0x1afa20['maxRow']-_0x1afa20['minRow']+0x1;if('insertion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};if('deletion'==_0x1d3500['type'])return _0x3e6b00['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x303e5a,'\x22'+_0x3e6b00['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_ROW',_0x303e5a))};}if('tableColumn'==_0x1d3500['subType']){const _0x293c23=_0x1d3500['getItems']()['filter'](_0x3b6ea1=>_0x3b6ea1['is']('$textProxy'))['map'](_0x4bcbc5=>_0x4bcbc5['data']),_0x359706=this['_getSuggestionCoords'](_0x1d3500),_0x391ed8=_0x359706['maxColumn']-_0x359706['minColumn']+0x1;if('insertion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x54cf41,'*Insert:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};if('deletion'==_0x1d3500['type'])return _0x293c23['length']?{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x391ed8,'\x22'+_0x293c23['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x54cf41,'*Remove:*\x20%0',o(_0x54cf41,'ELEMENT_TABLE_COLUMN',_0x391ed8))};}}),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x48c7e0),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x3d6982),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x76cee8),_0x177f83['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x19b9b9),_0x177f83['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x19b9b9);}['_acceptFormatSuggestionCallbackFactory'](){const _0x578431=this['editor'],_0x322903=_0x578431['model']['document']['selection'];return(_0x51ff9d,_0x2aa194)=>{_0x578431['model']['change'](_0x272da2=>{const {commandName:_0x30e5ec,commandParams:_0x3592b3}=_0x2aa194;let _0x99db41=_0x51ff9d[0x0]['end']['nodeBefore'];_0x3592b3&&_0x3592b3[0x0]&&!0x1===_0x3592b3[0x0]['forceValue']&&(_0x99db41=_0x51ff9d[0x0]['start']['nodeAfter']);const _0x383ad1=_0x272da2['createRangeIn'](_0x99db41);if('$graveyard'==_0x383ad1['root']['rootName'])return;const _0x3a8bdb=Array['from'](_0x322903['getRanges']())['map'](_0x39adb4=>_0xef9d24['fromRange'](_0x39adb4));_0x272da2['setSelection'](_0x383ad1),_0x578431['commands']['get'](_0x30e5ec)['refresh'](),_0x3592b3['push']({'forceDefaultExecution':!0x0}),_0x578431['execute'](_0x30e5ec,..._0x3592b3);const _0x3274aa=_0x3a8bdb['filter'](_0x1461b3=>'$graveyard'!=_0x1461b3['root']['rootName']);_0x3274aa['length']>0x0&&_0x272da2['setSelection'](_0x3274aa);for(const _0x15d0ad of _0x3a8bdb)_0x15d0ad['detach']();});};}['_getCoordsForCells'](_0x695fc9){const _0x4abc47=this['editor']['plugins']['get']('TableUtils');let _0x3d8462=Number['MAX_SAFE_INTEGER'],_0x55273a=Number['MIN_SAFE_INTEGER'],_0x217761=Number['MAX_SAFE_INTEGER'],_0x158c1d=Number['MIN_SAFE_INTEGER'];for(const _0x2cefb1 of _0x695fc9){if('$graveyard'==_0x2cefb1['root']['rootName'])continue;const {row:_0x1f5ea7,column:_0x40e9c4}=_0x4abc47['getCellLocation'](_0x2cefb1),_0x440782=_0x2cefb1['hasAttribute']('rowspan')?_0x2cefb1['getAttribute']('rowspan')-0x1:0x0,_0x42a881=_0x2cefb1['hasAttribute']('colspan')?_0x2cefb1['getAttribute']('colspan')-0x1:0x0;_0x3d8462=_0x1f5ea7<_0x3d8462?_0x1f5ea7:_0x3d8462,_0x55273a=_0x1f5ea7+_0x440782>_0x55273a?_0x1f5ea7+_0x440782:_0x55273a,_0x217761=_0x40e9c4<_0x217761?_0x40e9c4:_0x217761,_0x158c1d=_0x40e9c4+_0x42a881>_0x158c1d?_0x40e9c4+_0x42a881:_0x158c1d;}return{'minRow':_0x3d8462,'maxRow':_0x55273a,'minColumn':_0x217761,'maxColumn':_0x158c1d};}['_setupColumnsRowsFixing'](){const _0x19985a=this['editor'],_0x15e873=_0x19985a['plugins']['get']('TrackChangesEditing'),_0x2806ef=_0x19985a['plugins']['get']('TableUtils');_0x19985a['model']['document']['on']('change:data',()=>{const _0x21f44c=Array['from'](_0x19985a['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3284f7,data:_0x461f99}of _0x21f44c){const {group:_0x52041f,id:_0x30c742,subType:_0x5c2bfc}=_0x15e873['_splitMarkerName'](_0x3284f7);if('suggestion'!=_0x52041f)continue;if(null!=_0x461f99['oldRange'])continue;const _0x1f461b=_0x15e873['getSuggestion'](_0x30c742);this['_tablePostFixingSubtypes']['includes'](_0x5c2bfc)&&this['_tableSuggestions']['add'](_0x1f461b);}},{'priority':'low'});const _0x42a610=(_0x203354,_0x1395b4)=>{let _0x53b55d=!0x1;const _0x71d6ef=_0x1395b4['createRangeOn'](_0x203354),_0x19c246=_0x203354['findAncestor']('table'),_0x174ebf=_0x2806ef['getCellLocation'](_0x203354);for(const _0x184a4a of this['_tableSuggestions']){const _0x343a7a=_0x184a4a['subType'],_0x2e379e=_0x343a7a['startsWith']('tablePaste'),_0x2ba786=_0x343a7a['substr'](_0x2e379e?0xa:0x5),_0x1f0dbd=_0x2ba786['toLowerCase'](),_0x18f0e2=_0x1f0dbd['substr'](0x0,0x3)+'span',_0x176122='min'+_0x2ba786,_0x9f66fb='max'+_0x2ba786;if(!_0x184a4a['isInContent'])continue;if(_0x19c246!=_0x184a4a['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x184a4a['isIntersectingWithRange'](_0x71d6ef))continue;const _0x158459=_0x203354['hasAttribute'](_0x18f0e2)?_0x203354['getAttribute'](_0x18f0e2)-0x1:0x0,_0x54ab64=this['_getSuggestionCoords'](_0x184a4a),_0x1b161a=_0x54ab64[_0x176122],_0x39ac4c=_0x54ab64[_0x9f66fb];_0x1b161a<=_0x174ebf[_0x1f0dbd]&&_0x174ebf[_0x1f0dbd]+_0x158459<=_0x39ac4c&&(_0x184a4a['addRange'](_0x71d6ef),_0x53b55d=!0x0);}return _0x53b55d;};_0x19985a['model']['document']['registerPostFixer'](_0x431f17=>{let _0xc24718=!0x1;for(const _0x1e31ea of _0x19985a['model']['document']['differ']['getChanges']())if('insert'==_0x1e31ea['type']){if('tableRow'==_0x1e31ea['name']){for(const _0x202eb8 of _0x1e31ea['position']['nodeAfter']['getChildren']())_0xc24718=_0xc24718||_0x42a610(_0x202eb8,_0x431f17);}else'tableCell'==_0x1e31ea['name']&&(_0xc24718=_0xc24718||_0x42a610(_0x1e31ea['position']['nodeAfter'],_0x431f17));}return _0xc24718;});}['_getSuggestionCoords'](_0x4774f8){return this['_getCoordsForCells'](_0x4774f8['getRanges']()['map'](_0x26d6f8=>_0x26d6f8['start']['nodeAfter']));}}function Ee(_0x517c95){return Array['from'](new Set(_0x517c95)['values']());}class St extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x11f6b4=this['editor'],_0x2079fd=_0x11f6b4['model']['document']['selection'],_0x510552=_0x11f6b4['locale'];if(!_0x11f6b4['plugins']['has']('TableEditing'))return;const _0x34f351=_0x11f6b4['plugins']['get']('TrackChangesEditing'),_0x549030=_0x11f6b4['plugins']['get']('TableUtils'),_0x457e08=_0x11f6b4['plugins']['get'](jt);_0x457e08['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x34f351['enableCommand']('mergeTableCells',()=>{const _0x4e0b98=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection']);_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat'](_0x4e0b98,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x11f6b4['commands']['get']('mergeTableCells')['on']('execute',(_0x5955ee,_0x1871a2)=>{_0x11f6b4['commands']['get']('trackChanges')['value']&&(_0x1871a2['length']>0x0&&_0x1871a2[_0x1871a2['length']-0x1]&&_0x1871a2[_0x1871a2['length']-0x1]['forceDefaultExecution']||_0x34f351['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x5955ee['stop']());},{'priority':'highest'});for(const _0x325ae1 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x1288d5=_0x11f6b4['commands']['get'](_0x325ae1);_0x34f351['enableCommand'](_0x325ae1,()=>{const _0x168aa7=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x345b68=>_0x345b68['is']('element','tableCell')),_0x140a72=_0x1288d5['value'];_0x11f6b4['model']['change'](()=>{_0x34f351['markMultiRangeBlockFormat']([_0x168aa7,_0x140a72],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x5402a1 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x58666c=_0x11f6b4['commands']['get'](_0x5402a1);_0x34f351['enableCommand'](_0x5402a1,()=>{const _0x13eac5=_0x549030['getSelectionAffectedTableCells'](_0x11f6b4['model']['document']['selection'])[0x0],_0x48f734=_0x13eac5['findAncestor']('table'),{column:_0x1e646,row:_0x1521be}=_0x549030['getCellLocation'](_0x13eac5);let _0x24555f=[];if('horizontally'==_0x58666c['direction']){const _0x15f283=_0x549030['createTableWalker'](_0x48f734,{'startRow':_0x1521be,'endRow':_0x1521be,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x15f283)['map'](_0x41865b=>_0x41865b['cell']);}else{const _0x47c681=_0x549030['createTableWalker'](_0x48f734,{'column':_0x1e646,'includeAllSlots':!0x0});_0x24555f=Array['from'](_0x47c681)['map'](_0xa42228=>_0xa42228['cell']);}_0x11f6b4['model']['change'](_0x3f4f1e=>{_0x34f351['markBlockFormat'](_0x3f4f1e['createRangeOn'](_0x13eac5),{'commandName':_0x5402a1,'commandParams':[]},_0x24555f,_0x5402a1);});});}_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x52ee1f=>{if('formatBlock'!=_0x52ee1f['type']&&'formatInline'!=_0x52ee1f['type'])return;const {data:_0x4b1145}=_0x52ee1f;return _0x4b1145&&'mergeTableCells'==_0x4b1145['commandName']?{'type':'format','content':o(_0x510552,'*Merge\x20cells*')}:void 0x0;}),_0x34f351['descriptionFactory']['registerDescriptionCallback'](_0x383fd0=>{if('formatBlock'!=_0x383fd0['type']&&'formatInline'!=_0x383fd0['type'])return;const {data:_0x264840}=_0x383fd0;return _0x264840?'splitTableCellVertically'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x264840['commandName']?{'type':'format','content':o(_0x510552,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x41a938=_0x457e08['_acceptFormatSuggestionCallbackFactory']();for(const _0x262939 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x262939,'accept',_0x41a938);for(const _0x5d06f2 of['splitTableCellVertically','splitTableCellHorizontally'])_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5d06f2,'accept',_0x41a938);_0x34f351['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x1a52d1=>{_0x11f6b4['model']['change'](_0x427607=>{const _0xf8dcca=Array['from'](_0x2079fd['getRanges']())['map'](_0x25aa07=>_0xef9d24['fromRange'](_0x25aa07));_0x427607['setSelection'](_0x1a52d1),_0x11f6b4['commands']['get']('mergeTableCells')['refresh'](),_0x11f6b4['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x5c483d=_0xf8dcca['filter'](_0x410417=>'$graveyard'!=_0x410417['root']['rootName']);_0x5c483d['length']>0x0&&_0x427607['setSelection'](_0x5c483d);for(const _0x2ad51d of _0xf8dcca)_0x2ad51d['detach']();});});for(const _0x25783f of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x58f42b=_0x11f6b4['commands']['get'](_0x25783f);_0x58f42b['on']('set:isEnabled',(_0x482567,_0x191e95,_0x5dd94e)=>{if(_0x5dd94e){const _0xcfe625=_0x11f6b4['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x2dd5f7=>_0x2dd5f7['is']('element','tableCell'));this['_areMergableCells'](_0x58f42b['value'],_0xcfe625)||(_0x482567['return']=!0x1,_0x482567['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x2dafd9=this['editor']['commands']['get']('mergeTableCells'),_0x1e8087=this['editor']['plugins']['get']('TableUtils');if(!_0x2dafd9['isEnabled'])return!0x1;const _0x39a860=_0x1e8087['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x4c41b5 of _0x39a860)for(const _0x38a711 of _0x39a860)if(_0x4c41b5!=_0x38a711&&!this['_areMergableCells'](_0x4c41b5,_0x38a711))return!0x1;return!0x0;}['_areMergableCells'](_0x4b9e23,_0xdffb2d){const _0x3aecda=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3f5088=this['editor']['model']['createRangeOn'](_0x4b9e23),_0x538551=this['editor']['model']['createRangeOn'](_0xdffb2d),_0x26539b=new Set(),_0x4fc9a0=new Set();for(const _0x560b8a of _0x3aecda['getSuggestions']())if(('insertion'==_0x560b8a['type']||'deletion'==_0x560b8a['type']||'mergeTableCells'==_0x560b8a['subType'])&&_0x560b8a['isInContent']){for(const _0x4e4627 of _0x560b8a['getRanges']())_0x4e4627['containsRange'](_0x3f5088,!0x0)&&_0x26539b['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']),_0x4e4627['containsRange'](_0x538551,!0x0)&&_0x4fc9a0['add'](_0x560b8a['type']+':'+_0x560b8a['author']['id']);}if(_0x26539b['size']!=_0x4fc9a0['size'])return!0x1;for(const _0x5e50b2 of _0x26539b)if(!_0x4fc9a0['has'](_0x5e50b2))return!0x1;return!0x0;}}class At extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x347ffa=this['editor'];if(!_0x347ffa['plugins']['has']('TableEditing'))return;const _0x3546ea=_0x347ffa['locale'],_0x361737=_0x347ffa['plugins']['get']('TrackChangesEditing');_0x361737['enableDefaultAttributesIntegration']('setTableRowHeader'),_0x361737['enableDefaultAttributesIntegration']('setTableColumnHeader'),_0x361737['registerBlockAttribute']('headingRows'),_0x361737['registerBlockAttribute']('headingColumns'),_0x361737['descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x3546ea,'FORMAT_HEADER_ROW')),_0x361737['descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x3546ea,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0xef582d=this['editor']['plugins']['get']('TrackChangesEditing'),_0x495dec=this['editor']['plugins']['get']('TableUtils'),_0x33990a=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x5a031a({showActiveMarker:_0x1b81b8=!0x0,setDataAttribute:_0x3c5f4a=!0x0}={}){return(_0x228060,_0x21e1da,_0x39068c)=>{const {type:_0x4088fa,id:_0x398d22}=_0xef582d['_splitMarkerName'](_0x21e1da['markerName']),_0x47f652=_0xef582d['getSuggestion'](_0x398d22),_0x239b2b=_0x47f652['data'];if('formatBlock'!=_0x47f652['type']||!_0x239b2b||'setTableColumnHeader'!=_0x239b2b['commandName'])return;if(_0x21e1da['item'])return void _0x228060['stop']();if(!_0x39068c['consumable']['consume'](_0x21e1da['markerRange'],_0x228060['name']))return;const _0x315e81=_0x21e1da['markerRange']['start']['nodeAfter'],_0x1ad424=_0x21e1da['markerRange']['end']['nodeBefore'],_0x102bff=_0x315e81['parent']['parent'],{column:_0x4ef91d}=_0x495dec['getCellLocation'](_0x315e81),{column:_0x25e07e}=_0x495dec['getCellLocation'](_0x1ad424);for(let _0x2a7f61=_0x4ef91d;_0x2a7f61<=_0x25e07e;_0x2a7f61++){const _0x9cddc5=_0x495dec['createTableWalker'](_0x102bff,{'column':_0x2a7f61,'includeAllSlots':!0x1});for(const _0x2c31f2 of _0x9cddc5){const _0x1e7334=_0x2c31f2['cell'],_0x6671e9=_0x39068c['mapper']['toViewElement'](_0x1e7334);_0x39068c['writer']['addClass']('ck-suggestion-marker-'+_0x4088fa,_0x6671e9),_0x3c5f4a&&_0x39068c['writer']['setAttribute']('data-suggestion',_0x398d22,_0x6671e9),_0x39068c['mapper']['bindElementToMarker'](_0x6671e9,_0x21e1da['markerName']),_0x1b81b8&&(_0xef582d['activeMarkers']['includes'](_0x21e1da['markerName'])?_0x39068c['writer']['addClass']('ck-suggestion-marker--active',_0x6671e9):_0x39068c['writer']['removeClass']('ck-suggestion-marker--active',_0x6671e9));}}};}_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x33990a),_0xef582d['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x33990a),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x5a031a(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x265c3b,_0x3f7a8a,_0x1dc79e)=>{_0x1dc79e['options']['showSuggestionHighlights']&&_0x5a031a({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x265c3b,_0x3f7a8a,_0x1dc79e);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x34f10f,_0x104773,_0x25935b)=>{const {type:_0x38e926,id:_0x2c3606}=_0xef582d['_splitMarkerName'](_0x104773['markerName']),_0x31fa54=_0xef582d['getSuggestion'](_0x2c3606),_0x3d5f4d=_0x31fa54['data'];if('formatBlock'!=_0x31fa54['type']||!_0x3d5f4d||'setTableColumnHeader'!=_0x3d5f4d['commandName'])return;const _0xb8345e=_0x25935b['mapper']['markerNameToElements'](_0x104773['markerName']);if(_0xb8345e){for(const _0x329506 of _0xb8345e)_0x25935b['writer']['removeClass']('ck-suggestion-marker-'+_0x38e926,_0x329506),_0x25935b['writer']['removeClass']('ck-suggestion-marker--active',_0x329506),_0x25935b['writer']['removeAttribute']('data-suggestion',_0x329506),_0x25935b['mapper']['unbindElementFromMarkerName'](_0x329506,_0x104773['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x42df13=this['editor'],_0x5a090a=_0x42df13['locale'];function _0x278aec(_0x482710){return{'type':'format','content':o(_0x5a090a,'*Format:*\x20%0',_0x482710)};}_0x42df13['plugins']['get']('TrackChangesEditing')['descriptionFactory']['registerDescriptionCallback'](_0x394d8f=>{if('formatBlock'!=_0x394d8f['type'])return;const {data:_0x1f733e}=_0x394d8f;if(_0x1f733e){if('setTableRowHeader'==_0x1f733e['commandName']){const _0x201d4e=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x201d4e?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x1f733e['commandName']){const _0x2720a3=_0x1f733e['commandParams'][0x0]['forceValue'];return _0x278aec(o(_0x5a090a,_0x2720a3?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x3b815e=>[_0x3b815e,null]));class It extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x6042e7=this['editor'];if(!_0x6042e7['plugins']['has']('TableClipboard'))return;const _0x120bb3=_0x6042e7['plugins']['get']('TrackChangesEditing'),_0x6adb3e=_0x6042e7['plugins']['get']('TableUtils'),_0x1ebc0c=_0x6042e7['plugins']['get'](jt),_0x5485c5=_0x6042e7['plugins']['get']('TableClipboard');_0x1ebc0c['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x6042e7['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x6042e7['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x3ae971=null;_0x6042e7['model']['on']('insertContent',(_0x180d0a,_0x5b92cd)=>{const [_0x21f866,_0x41a8c0]=_0x5b92cd,_0x3b918a=_0x5b92cd[_0x5b92cd['length']-0x1];_0x3b918a&&_0x3b918a['forceDefaultExecution']||_0x120bb3['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x19cf82,_0x353bd5,_0x1770ec,_0x486338,_0x58a42f){if(_0x353bd5&&!_0x353bd5['is']('documentSelection'))return!0x1;const _0x5d3dff=_0x58a42f['getTableIfOnlyTableInContent'](_0x19cf82,_0x1770ec);if(!_0x5d3dff||!he(_0x5d3dff,void 0x0,_0x486338))return!0x1;const _0x56f282=_0x486338['getSelectionAffectedTableCells'](_0x1770ec['document']['selection']);if(!_0x56f282['length'])return!0x1;const _0x1b68cb=_0x56f282[0x0]['findAncestor']('table'),_0x4c1a7b=_0x486338['getRowIndexes'](_0x56f282),_0x51ebef=_0x486338['getColumnIndexes'](_0x56f282),_0x53009c={'startRow':_0x4c1a7b['first'],'endRow':_0x4c1a7b['last'],'startColumn':_0x51ebef['first'],'endColumn':_0x51ebef['last']};return 0x1==_0x56f282['length']&&(_0x53009c['endRow']+=_0x486338['getRows'](_0x5d3dff)-0x1,_0x53009c['endColumn']+=_0x486338['getColumns'](_0x5d3dff)-0x1),he(_0x1b68cb,_0x53009c,_0x486338);}(_0x21f866,_0x41a8c0,_0x6042e7['model'],_0x6adb3e,_0x5485c5)&&(_0x180d0a['stop'](),_0x3ae971={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x6042e7['model']['change'](()=>{_0x6042e7['model']['insertContent'](_0x5b92cd[0x0],_0x5b92cd[0x1],_0x5b92cd[0x2],{'forceDefaultExecution':!0x0});const _0x38296f=_0xe5f9d9(),{rowInsertionRanges:_0x9ade6d,columnInsertionRanges:_0x31c1bb,insertionRanges:_0x27b642,deletionRanges:_0x50e4c3,cells:_0x37e69f}=_0x3ae971;_0x9ade6d['length']&&_0x120bb3['markMultiRangeInsertion'](_0x9ade6d,'tablePasteRow',{'tablePasteChainId':_0x38296f}),_0x31c1bb['length']&&_0x120bb3['markMultiRangeInsertion'](_0x31c1bb,'tablePasteColumn',{'tablePasteChainId':_0x38296f}),_0x27b642['length']&&(_0x120bb3['markMultiRangeInsertion'](_0x27b642,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x27b642['forEach'](_0x5444f2=>_0x5444f2['detach']?.())),_0x50e4c3['length']&&(_0x120bb3['markMultiRangeDeletion'](_0x50e4c3,'tablePaste',{'tablePasteChainId':_0x38296f,'skipNestingCheck':!0x0}),_0x50e4c3['forEach'](_0x591a11=>_0x591a11['detach']?.()));const _0x907353=_0x120bb3['markMultiRangeBlockFormat'](_0x37e69f['map'](({element:_0x2a2a40})=>_0x2a2a40),{'formatGroupId':_0xe5f9d9()},[],'tablePasteCell',{'tablePasteChainId':_0x38296f});if(_0x907353){const _0x577c75=_0x907353['getMarkers'](),_0xe5d559=[];for(const {element:_0x5e81aa,attributes:_0x5a2227}of _0x37e69f){if(!_0x5a2227)continue;const _0x83620=_0x6042e7['model']['createRangeOn'](_0x5e81aa),_0x162185=_0x577c75['find'](_0x109abc=>_0x109abc['getRange']()['isEqual'](_0x83620));_0x162185&&_0xe5d559['push']([_0x162185['name'],_0x5a2227]);}_0xe5d559['length']&&_0x907353['setAttribute']('markerAttributes',Object['fromEntries'](_0xe5d559));}_0x3ae971=null;}));},{'priority':_0x452690['high']+0xa}),_0x6042e7['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x33f5a8,_0x32919a)=>{const [_0x2b3dfd,_0x55ebae,,_0x2b9f2a]=_0x32919a;if(!_0x3ae971)return;_0x33f5a8['stop']();const _0x3782d1=_0x2b3dfd['cell'],_0x2f0520=_0x55ebae,_0x12b3aa=Pe(_0x3782d1),_0x44293f=Pe(_0x2f0520);_0x33f5a8['return']=_0x3782d1;let _0xb64655=null,_0x50cdf5=null;if(_0x44293f||_0x12b3aa){if(_0x12b3aa&&!_0x44293f){_0x2b9f2a['remove'](_0x3782d1['getChild'](0x0));for(const _0x59c648 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x59c648,_0x3782d1,'end');const _0x2d6fa5=_0x3ae971['rowInsertionIndexes']['includes'](_0x2b3dfd['row']),_0x49f3f1=_0x3ae971['columnInsertionIndexes']['includes'](_0x2b3dfd['column']);_0x2d6fa5||_0x49f3f1||(_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeIn'](_0x3782d1)));}else _0x44293f&&!_0x12b3aa&&(_0x50cdf5=_0x2b9f2a['createRangeIn'](_0x3782d1));}else{const _0x4a9dc5=_0x2b9f2a['createElement']('tableCellSuggestion'),_0x154a8e=_0x2b9f2a['createElement']('tableCellSuggestion');_0x2b9f2a['wrap'](_0x2b9f2a['createRangeIn'](_0x3782d1),_0x154a8e),_0x2b9f2a['insert'](_0x4a9dc5,_0x3782d1,0x0);for(const _0x2c5a14 of Array['from'](_0x2f0520['getChildren']()))_0x2b9f2a['insert'](_0x2c5a14,_0x4a9dc5,'end');_0xb64655=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x4a9dc5)),_0x50cdf5=_0xef9d24['fromRange'](_0x2b9f2a['createRangeOn'](_0x154a8e));}const _0x2bfa36=Array['from'](_0x2f0520['getAttributes']())['filter'](([_0x39ccd7])=>ge['includes'](_0x39ccd7));_0x3ae971['cells']['push']({'element':_0x3782d1,'attributes':_0x2bfa36['length']?Object['fromEntries'](_0x2bfa36):null}),_0xb64655&&_0x3ae971['insertionRanges']['push'](_0xb64655),_0x50cdf5&&_0x3ae971['deletionRanges']['push'](_0x50cdf5);},{'priority':'high'}),_0x6adb3e['on']('insertColumns',(_0x3115e9,_0x16e1a1)=>{const [_0x597b19,_0x49edf2={}]=_0x16e1a1;if(!_0x3ae971)return;const _0x136cb1=_0x49edf2['at']||0x0,_0x4f490e=_0x49edf2['columns']||0x1;_0x3ae971['columnInsertionIndexes']=new Array(_0x4f490e)['fill'](_0x136cb1)['map']((_0xc7f330,_0x190fe8)=>_0xc7f330+_0x190fe8);for(const {cell:_0x41baae}of _0x6adb3e['createTableWalker'](_0x597b19,{'startColumn':_0x136cb1,'endColumn':_0x136cb1+_0x4f490e-0x1}))_0x3ae971['columnInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x41baae));},{'priority':'low'}),_0x6adb3e['on']('insertRows',(_0x59aa1f,_0xa45321)=>{const [_0x55952c,_0x1afad8={}]=_0xa45321;if(!_0x3ae971)return;const _0x417dd8=_0x1afad8['at']||0x0,_0x8e3598=_0x1afad8['rows']||0x1;_0x3ae971['rowInsertionIndexes']=new Array(_0x8e3598)['fill'](_0x417dd8)['map']((_0x35463e,_0x96403e)=>_0x35463e+_0x96403e);for(const {cell:_0x45cff1}of _0x6adb3e['createTableWalker'](_0x55952c,{'startRow':_0x417dd8,'endRow':_0x417dd8+_0x8e3598-0x1}))_0x3ae971['rowInsertionRanges']['push'](_0x6042e7['model']['createRangeOn'](_0x45cff1));},{'priority':'low'}),_0x120bb3['descriptionFactory']['registerDescriptionCallback'](_0x2d8e1c=>{if(_0x2d8e1c['subType']&&_0x2d8e1c['subType']['startsWith']('tablePaste'))return _0x2d8e1c['previous']?{}:{'type':'insertion','content':o(_0x6042e7['locale'],'*Replace\x20table\x20cells*')};});const _0x535813=()=>!0x1;for(const _0x5ed150 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('deletion',_0x5ed150,'join',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x5ed150,'join',_0x535813);_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x535813),_0x120bb3['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5543ed,_0x4680bb,_0x53c94b)=>{const _0x135ce6=_0x5543ed['map'](_0x3105bb=>_0x3105bb['getContainedElement']())['filter'](_0x487a3f=>_0x487a3f),_0x562d3d=new Map(_0x135ce6['map'](_0x336a19=>[_0x336a19,null]));if(_0x3ae971){for(const {element:_0x581e6b,attributes:_0x5f53b6}of _0x3ae971['cells'])_0x5f53b6&&_0x562d3d['set'](_0x581e6b,_0x5f53b6);}else{if(_0x53c94b&&_0x53c94b['markerAttributes'])for(const [_0x21c7ff,_0x1a6f4c]of Object['entries'](_0x53c94b['markerAttributes'])){const _0x17bc69=_0x6042e7['model']['markers']['get'](_0x21c7ff),_0x4ad2de=_0x17bc69?_0x17bc69['getRange']()['getContainedElement']():null;_0x4ad2de&&_0x562d3d['set'](_0x4ad2de,_0x1a6f4c);}}_0x6042e7['model']['change'](_0x54d0af=>{for(const [_0x494e20,_0x426fc1]of _0x562d3d)_0x54d0af['setAttributes']({...Ce,..._0x426fc1},_0x494e20);});});const _0x21e5ab=(_0x160cbd,_0x5406e4)=>{_0x120bb3['_suggestionFactory']['registerCustomCallback'](_0x160cbd,'tablePaste',_0x5406e4,(_0x4a5e04,_0x46699d,_0x3f3d83)=>{_0x6042e7['model']['change'](_0x5a6251=>{const _0x42523b=[];for(const _0x193299 of _0x4a5e04){const _0x4ea879=_0x193299['start']['nodeAfter'];_0x4ea879['is']('element','tableCellSuggestion')&&_0x42523b['push'](_0x4ea879);}_0x120bb3['_suggestionFactory']['getSuggestionCallback'](_0x160cbd,null,_0x5406e4)(_0x4a5e04,_0x46699d,_0x3f3d83);for(const _0x5afb49 of _0x42523b)'$graveyard'!=_0x5afb49['root']['rootName']&&_0x5a6251['unwrap'](_0x5afb49);});});};_0x21e5ab('insertion','accept'),_0x21e5ab('insertion','discard'),_0x21e5ab('deletion','accept'),_0x21e5ab('deletion','discard'),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0xfd82a=>{const _0x26db7c=_0xfd82a['map'](_0x4330e9=>_0x4330e9['getContainedElement']()),_0x32e194=_0x26db7c[0x0]['findAncestor']('table'),{minRow:_0x1d6104,maxRow:_0x55671b}=_0x1ebc0c['_getCoordsForCells'](_0x26db7c);_0x6adb3e['removeRows'](_0x32e194,{'at':_0x1d6104,'rows':_0x55671b-_0x1d6104+0x1});}),_0x120bb3['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x395e6a=>{const _0x2562e9=_0x395e6a['map'](_0x1ee6ec=>_0x1ee6ec['getContainedElement']()),_0x41f692=_0x2562e9[0x0]['findAncestor']('table'),{minColumn:_0x140e77,maxColumn:_0xc65fef}=_0x1ebc0c['_getCoordsForCells'](_0x2562e9);_0x6adb3e['removeColumns'](_0x41f692,{'at':_0x140e77,'columns':_0xc65fef-_0x140e77+0x1});});const _0x537cd9=(_0x51f63a,_0x1f6504)=>{if(!_0x1f6504['subType']||!_0x1f6504['subType']['startsWith']('tablePaste'))return;const _0x24f662=_0x1f6504['attributes']['tablePasteChainId'],_0x1252e3=_0x120bb3['getSuggestions']()['filter'](_0x13db51=>_0x13db51['isInContent']&&_0x13db51['attributes']&&_0x13db51['attributes']['tablePasteChainId']==_0x24f662);_0x1252e3['length']&&_0x1f6504['getAllAdjacentSuggestions']()['length']!=_0x1252e3['length']&&_0x1252e3['reduce']((_0x3ec1a0,_0xef7c7c)=>(_0x3ec1a0['next']=_0xef7c7c,_0xef7c7c['previous']=_0x3ec1a0,_0xef7c7c));};function _0xffafc1(_0x4f713f,_0x183a71=!0x0){const {id:_0x49817d}=_0x120bb3['_splitMarkerName'](_0x4f713f['markerName']),_0x15b27d=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x3a589d=_0x120bb3['activeMarkers']['includes'](_0x4f713f['markerName']);return _0x3a589d&&_0x15b27d['push']('ck-suggestion-marker--active'),{'classes':_0x15b27d,'attributes':{'data-suggestion':_0x49817d},'priority':_0x3a589d&&_0x183a71?0xbc2:0xbb8};}_0x120bb3['on']('suggestionLoaded',_0x537cd9,{'priority':'high'}),_0x120bb3['on']('suggestionUnloaded',_0x537cd9,{'priority':'high'}),_0x6042e7['model']['document']['registerPostFixer'](()=>{let _0x5bac93=!0x1;const _0x52d882=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x22d97a,data:_0x214c6f}of _0x52d882){const {group:_0x58e8b8,type:_0x271b78,id:_0x3b436f}=_0x120bb3['_splitMarkerName'](_0x22d97a);if('suggestion'!=_0x58e8b8||'deletion'!=_0x271b78||_0x214c6f['oldRange'])continue;if(!_0x120bb3['hasSuggestion'](_0x3b436f))continue;const _0x301713=_0x120bb3['getSuggestion'](_0x3b436f)['getRanges'](),_0x28454f=_0x6042e7['plugins']['get']('Users')['me'];for(const _0xcedb5c of _0x120bb3['getSuggestions']()){if(!_0xcedb5c['isInContent']||_0xcedb5c['author']!=_0x28454f)continue;if('formatBlock'!=_0xcedb5c['type']||'tablePasteCell'!=_0xcedb5c['subType'])continue;if(_0xcedb5c['getRanges']()['every'](_0x3ebff1=>_0x301713['some'](_0xaf4345=>_0xaf4345['containsRange'](_0x3ebff1,!0x0)))){for(const _0x554022 of _0xcedb5c['getAllAdjacentSuggestions']())_0x554022['isInContent']&&(_0x554022['discard'](),_0x5bac93=!0x0);}}}return _0x5bac93;}),_0x6042e7['model']['document']['registerPostFixer'](_0x597991=>{const _0x1cd35a=_0x6042e7['commands']['get']('redo');if(!_0x1cd35a||!_0x1cd35a['_createdBatches']['has'](_0x597991['batch']))return!0x1;let _0x16432f=!0x1;const _0x439947=_0x6042e7['plugins']['get']('Users')['me'],_0x52e7ba=_0x6042e7['model']['document']['differ']['getChanges'](),_0x4a2ede=Array['from'](_0x6042e7['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x25f317,data:_0x39d4cb})=>{const {group:_0x128e6e,subType:_0x308695,authorId:_0x3a6693}=_0x120bb3['_splitMarkerName'](_0x25f317);return'suggestion'==_0x128e6e&&'tablePaste'==_0x308695&&_0x3a6693==_0x439947['id']&&!_0x39d4cb['oldRange'];});for(const _0x16ecec of _0x52e7ba){if('insert'!=_0x16ecec['type']||'tableCellSuggestion'!=_0x16ecec['name']||0x1!=_0x16ecec['length'])continue;const _0x14bdfc=_0x597991['createRange'](_0x16ecec['position'],_0x16ecec['position']['getShiftedBy'](0x1));if(!_0x4a2ede['find'](({data:_0x3b391b})=>_0x3b391b['newRange']['isEqual'](_0x14bdfc))){for(const {name:_0x52a587,data:_0x9a9abc}of _0x4a2ede)if(_0x14bdfc['containsRange'](_0x9a9abc['newRange'])){_0x597991['updateMarker'](_0x52a587,{'range':_0x14bdfc}),_0x16432f=!0x0;break;}}}return _0x16432f;}),_0x6042e7['model']['document']['registerPostFixer'](_0x3cd70d=>{let _0x2e218f=!0x1;const _0x3859ef=_0x6042e7['plugins']['get']('Users')['me'],_0x395250=_0x120bb3['getSuggestions']()['filter'](_0x195178=>_0x195178['isInContent']&&_0x195178['author']==_0x3859ef),_0x139cd1=new Set(),_0x1e571a=new Set();for(const _0xff76cd of _0x395250)if('tablePaste'==_0xff76cd['subType'])for(const _0x4599c2 of _0xff76cd['getMarkers']()){const _0x26a024=_0x4599c2['getRange']()['getContainedElement']();if(_0x26a024){if(_0x26a024['is']('element','tableCellSuggestion')&&Pe(_0x26a024)){_0xff76cd['removeMarker'](_0x4599c2['name']),_0x139cd1['add'](_0x26a024),_0x2e218f=!0x0;const _0x45d2f3=_0x26a024['nextSibling'],_0x56a893=_0x26a024['previousSibling'],_0x50e316=_0x45d2f3&&_0x45d2f3['is']('element','tableCellSuggestion'),_0x293adf=_0x56a893&&_0x56a893['is']('element','tableCellSuggestion');_0x50e316&&!_0x139cd1['has'](_0x45d2f3)&&_0x1e571a['add'](_0x45d2f3),_0x293adf&&!_0x139cd1['has'](_0x56a893)&&_0x1e571a['add'](_0x56a893);}else _0x26a024['is']('element','paragraph')&&_0x26a024['isEmpty']&&(_0xff76cd['removeMarker'](_0x4599c2['name']),_0x2e218f=!0x0);}}else{if('tablePasteCell'==_0xff76cd['subType']){if(!_0xff76cd['attributes']||!_0xff76cd['attributes']['tablePasteChainId'])continue;const _0x25fb9e=_0xff76cd['attributes']['markerAttributes'];if(_0x25fb9e&&Object['keys'](_0x25fb9e)['length'])continue;const _0x231cb2=_0xff76cd['attributes']['tablePasteChainId'];let _0x318e42=!0x0,_0x428eb9=!0x0;for(const _0x55b03e of _0x395250)if(_0x55b03e['subType']&&_0x55b03e['subType']['startsWith']('tablePaste')){if(!_0x55b03e['attributes']['tablePasteChainId']){_0x428eb9=!0x1;break;}if(_0x55b03e['id']!=_0xff76cd['id']&&_0x55b03e['attributes']['tablePasteChainId']==_0x231cb2){_0x318e42=!0x1;break;}}_0x428eb9&&_0x318e42&&(_0xff76cd['removeMarkers'](),_0x2e218f=!0x0);}}for(const _0x3ce73b of _0x139cd1)_0x3cd70d['remove'](_0x3ce73b);for(const _0x102305 of _0x1e571a)_0x3cd70d['unwrap'](_0x102305);return _0x2e218f;}),_0x6042e7['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x15fb00,_0xcdf0bb)=>_0xffafc1(_0x15fb00),'converterPriority':'high'}),_0x6042e7['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x46aa0d,_0x55852c)=>_0x55852c['options']['showSuggestionHighlights']?_0xffafc1(_0x46aa0d,!0x1):null,'converterPriority':'high'});const _0x4a1082=_0x6042e7['editing']['view'];this['listenTo'](_0x4a1082['document'],'clipboardOutput',(_0x44c79b,_0x260192)=>{const _0x30ce4b=[];for(const _0x244d3d of _0x4a1082['createRangeIn'](_0x260192['content'])['getItems']())_0x244d3d['is']('element','suggestion-td')&&_0x30ce4b['push'](_0x244d3d);_0x4a1082['change'](_0x5878ee=>{for(const _0x16a9b9 of _0x30ce4b)_0x5878ee['move'](_0x5878ee['createRangeIn'](_0x16a9b9),_0x5878ee['createPositionBefore'](_0x16a9b9)),_0x5878ee['remove'](_0x16a9b9);});});}}function Pe(_0x41cfcc){if(_0x41cfcc['isEmpty'])return!0x0;const _0x3b026b=_0x41cfcc['getChild'](0x0);return _0x3b026b['is']('element','paragraph')&&_0x3b026b['isEmpty'];}function he(_0x2e35e3,_0x3ceac9={},_0x114eb9){for(const {isAnchor:_0x4aa0d4,cellHeight:_0x40883d,cellWidth:_0x199f1b}of _0x114eb9['createTableWalker'](_0x2e35e3,{'includeAllSlots':!0x0,..._0x3ceac9}))if(!_0x4aa0d4||0x1!=_0x40883d||0x1!=_0x199f1b)return!0x1;return!0x0;}class vt extends _0x2c20e0{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x2059aa=this['editor']['plugins']['get']('TrackChangesEditing');_0x2059aa['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x2059aa['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x2059aa['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x2059aa['descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x1642f5,_0x1868b4){const _0x1fa795=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5b0534=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3bd400=_0x1868b4['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x420d54=_0x5b0534['getColumnGroupElement'](_0x3bd400);let _0x351b83=_0x420d54?_0x5b0534['getTableColumnsWidths'](_0x420d54):null,_0xd4fc37=_0x3bd400['getAttribute']('tableWidth')||null;const _0x2cb2b2=_0x1868b4['tableWidth']||_0xd4fc37,_0x59d219=_0x1868b4['columnWidths']||_0x351b83,_0x1a063c=this['editor']['plugins']['get']('Users')['me'];for(const _0x358a99 of _0x1fa795['getSuggestions']()){const _0x1db3b1=_0x358a99['getContainedElement']();if('resizeTable'===_0x358a99['subType']&&_0x1db3b1===_0x3bd400){_0x358a99['author']!==_0x1a063c&&_0x358a99['discard']();const _0x508562=_0x358a99['data']['commandParams'];_0xd4fc37=_0x508562[0x0]['tableWidth'],_0x351b83=_0x508562[0x0]['columnWidths'];break;}}_0x1642f5({'table':_0x3bd400,'tableWidth':_0x2cb2b2,'columnWidths':_0x59d219}),_0x1fa795['markBlockFormat'](_0x3bd400,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0xd4fc37,'columnWidths':_0x351b83}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4443b4){if('formatBlock'!=_0x4443b4['type']&&'formatInline'!=_0x4443b4['type'])return;const {data:_0x4eacb9}=_0x4443b4;if(_0x4eacb9&&'resizeTable'===_0x4eacb9['formatGroupId']){const _0x200728='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x200728)};}}}class Ct extends _0x2c20e0{['afterInit'](){const _0x522607=this['editor'];_0x522607['plugins']['has']('Template')&&_0x522607['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class _t extends _0x2c20e0{['afterInit'](){const _0x562ebe=this['editor'];if(!_0x562ebe['commands']['get']('insertTableOfContents'))return;_0x562ebe['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x36ab75=_0x562ebe['plugins']['get']('TrackChangesEditing'),_0x513cb6=_0x562ebe['locale'];_0x36ab75['descriptionFactory']['registerElementLabel']('tableOfContents',_0x30444f=>o(_0x513cb6,'ELEMENT_TABLE_OF_CONTENTS',_0x30444f));}}class Dt extends _0x2c20e0{['afterInit'](){const _0x11a5ab=this['editor'];if(!_0x11a5ab['plugins']['has']('Title'))return;const _0x6f228a=_0x11a5ab['plugins']['get']('TrackChangesEditing');_0x6f228a['descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x11a5ab['locale'],'ELEMENT_TITLE')),_0x11a5ab['model']['document']['registerPostFixer'](_0x3acf77=>{let _0x2d4ca2=!0x1;const _0x2a2fa1=Array['from'](_0x11a5ab['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1ae8e7,data:_0x4bade0}of _0x2a2fa1){const {group:_0x147747}=_0x6f228a['_splitMarkerName'](_0x1ae8e7);if('suggestion'!==_0x147747||!_0x4bade0['newRange'])continue;const _0x3f16c6=_0x4bade0['newRange'],_0x1e60a5=_0x3f16c6['end']['nodeBefore'];if(!_0x1e60a5||!_0x1e60a5['is']('element','title-content'))continue;if(!_0x3f16c6['start']['isTouching'](_0x3f16c6['end']))continue;const _0x164a16=_0x11a5ab['model']['schema']['getNearestSelectionRange'](_0x3f16c6['end'],'forward');if(_0x164a16&&_0x164a16['isCollapsed']){const _0x440df9=_0x3acf77['createRange'](_0x3f16c6['start'],_0x164a16['start']);_0x440df9['isEqual'](_0x3f16c6)||(_0x3acf77['updateMarker'](_0x1ae8e7,{'range':_0x440df9}),_0x2d4ca2=!0x0);}_0x2d4ca2||(_0x3acf77['removeMarker'](_0x1ae8e7),_0x2d4ca2=!0x0);}return _0x2d4ca2;});}}class Nt extends _0x2c20e0{['afterInit'](){const _0x5ed58b=this['editor'],_0x189e43=_0x5ed58b['plugins']['get']('TrackChangesEditing');_0x5ed58b['plugins']['has']('UndoEditing')&&(_0x189e43['enableCommand']('undo'),_0x189e43['enableCommand']('redo'));}}class Mt extends _0x2c20e0{static get['requires'](){return[jt];}['afterInit'](){const _0x3ba15e=this['editor'];if(!_0x3ba15e['plugins']['has']('TableCaptionEditing'))return;_0x3ba15e['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x2c20e0{['tableProperties'];['tableCellProperties'];constructor(_0x2f0b2c){super(_0x2f0b2c),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 _0x341e1d=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x3c079f of this['tableProperties'])_0x341e1d['enableCommand'](_0x3c079f,(_0x133cfc,_0x4a895b)=>{const _0x320ea3=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x3c079f,[_0x320ea3],this['tableProperties'],'tableProperties',_0x133cfc,_0x4a895b);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x9d9f64,_0x1d14ef)=>this['handleDiscardAction'](this['tableProperties'],_0x9d9f64,_0x1d14ef)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x10e7d9 of this['tableCellProperties'])_0x341e1d['enableCommand'](_0x10e7d9,(_0xdf16ff,_0xa84401)=>{const _0x132881=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x10e7d9,_0x132881,this['tableCellProperties'],'tableCellProperties',_0xdf16ff,_0xa84401);});_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x341e1d['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x34ac49,_0x189b94)=>this['handleDiscardAction'](this['tableCellProperties'],_0x34ac49,_0x189b94)),_0x341e1d['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x341e1d['descriptionFactory']['registerDescriptionCallback'](_0x579666=>this['handleSuggestionDescription'](_0x579666));}['_handlePropertyChange'](_0x4d6b44,_0x2a79c1,_0x53abd4,_0x54cec5,_0x512aed,_0x5b5cb9){const _0x5042c0=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x5b5cb9['batch'],()=>{for(const _0x41959f of _0x2a79c1){if(this['_getSuggestion'](_0x41959f,_0x54cec5))_0x512aed(_0x5b5cb9);else{const _0x238dfb={};for(const _0x3fc8cf of _0x53abd4){const _0x43ebe8=_0x41959f['getAttribute'](_0x3fc8cf);void 0x0!==_0x43ebe8&&(_0x238dfb[_0x3fc8cf]=_0x43ebe8);}_0x512aed(_0x5b5cb9),_0x5042c0['markBlockFormat'](_0x41959f,{'commandParams':[_0x238dfb]},[],_0x54cec5);}}});}['handleDiscardAction'](_0x17f28d,_0x133685,_0x3c963a){const _0x25774f=_0x133685[0x0]['start']['nodeAfter'],_0x2efd33=_0x3c963a['commandParams'][0x0];this['editor']['model']['change'](_0xec9dc8=>{for(const _0x8e7caf of _0x17f28d)void 0x0!==_0x2efd33[_0x8e7caf]?_0xec9dc8['setAttribute'](_0x8e7caf,_0x2efd33[_0x8e7caf],_0x25774f):_0xec9dc8['removeAttribute'](_0x8e7caf,_0x25774f);});}['handleSuggestionDescription'](_0x1e4ec8){if(_0x1e4ec8['data'])switch(_0x1e4ec8['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'](_0x252b57,_0xbfd33f){const _0x56717b=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x236173 of _0x56717b['getSuggestions']({'skipNotAttached':!0x0})){const _0x216369=_0x236173['getContainedElement']();if(_0x236173['subType']===_0xbfd33f&&_0x216369===_0x252b57)return _0x236173;}return null;}}const m='$elementName';class p extends _0x2c20e0{['descriptionFactory'];['trackChangesCommand'];['_adapter'];['_suggestionFactory'];['_suggestions'];['_commentsRepository'];['_enabledCommands'];['_model'];['_suggestionState'];['_isForcedDefaultExecutionBlock'];['_trackFormatChanges'];['_mergeNestedSuggestions'];['_blockAttributeKeys'];['_inlineAttributeKeys'];['_recordAttributeSuggestions']=!0x1;static get['requires'](){return['CommentsRepository',_0x18293d,_0x4cb717,E,V,U,O,F,G,L,H,q,W,J,Q,X,Y,Z,tt,et,it,nt,st,ot,rt,at,ut,K,lt,ct,z,ue,ft,gt,mt,dt,pt,kt,bt,wt,yt,jt,St,At,Mt,It,vt,_t,$t,Ct,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}constructor(_0x56e55e){function _0x426320(_0x3d6ef6){return _0x3d6ef6['map'](_0x707719=>String['fromCharCode'](_0x707719))['join']('');}super(_0x56e55e),this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x30d0b2,_0x1589a1,_0x153ad2,_0x69fcaa)=>{this['_model']['change'](()=>{for(const _0x1a06c2 of[..._0x69fcaa,..._0x153ad2])this['_model']['markers']['has'](_0x1a06c2)&&_0x56e55e['editing']['reconvertMarker'](_0x1a06c2);});}),this['descriptionFactory']=new f(this['editor']['model']['schema'],this['editor']['locale']),this['_adapter']=null,this['_suggestionFactory']=new xt(this['editor']),this['_suggestions']=new Map(),this['_commentsRepository']=_0x56e55e['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(),_0x56e55e['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x56e55e['config']['get']('trackChanges.trackFormatChanges'),_0x56e55e['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x56e55e['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x56e55e,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x426320([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x426320([0x34,0x30,0x34,0x38,0x31,0x34,0x33,0x30]);}['init'](){const _0x36a405=this['editor'],_0x416d7f=(_0x4bfb55,_0x11186d)=>{if('attribute'!=_0x4bfb55)return'ck-suggestion-marker-'+_0x4bfb55;const _0x5dd15f=_0x11186d['split']('|')[0x0];return this['_isBlockAttribute'](_0x5dd15f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x36a405['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x5b0ab2=>{const {id:_0x473f2b,type:_0x1209cd,subType:_0x2292cf}=this['_splitMarkerName'](_0x5b0ab2['markerName']),_0x3ff570=['ck-suggestion-marker',_0x416d7f(_0x1209cd,_0x2292cf)];let _0x2041f1=0xbb8;return this['activeMarkers']['includes'](_0x5b0ab2['markerName'])&&(_0x3ff570['push']('ck-suggestion-marker--active'),_0x2041f1=0xbc2),'deletion'==_0x1209cd&&(_0x2041f1+=0x5),{'classes':_0x3ff570,'attributes':{'data-suggestion':_0x473f2b},'priority':_0x2041f1};}}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xfda3d6=>{_0xfda3d6['on']('addMarker:suggestion',(_0x3512c0,_0x24fb9e,_0x537a5e)=>{if(!_0x537a5e['options']['showSuggestionHighlights'])return;const _0x19f22a=_0x24fb9e['item'];if(!_0x19f22a)return;const _0x1dd0d3=_0x537a5e['mapper']['toViewElement'](_0x19f22a);_0x36a405['model']['schema']['isObject'](_0x19f22a)&&_0x1dd0d3&&!_0x1dd0d3['getCustomProperty']('widget')&&_0x1dd0d3['is']('containerElement')&&_0x375e50(_0x1dd0d3,_0x537a5e['writer']);},{'priority':'high'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x421083,_0x538ae0)=>{if(!_0x538ae0['options']['showSuggestionHighlights'])return null;const {type:_0xdb7bfc,subType:_0xe549ad}=this['_splitMarkerName'](_0x421083['markerName']);return{'classes':['ck-suggestion-marker',_0x416d7f(_0xdb7bfc,_0xe549ad)],'priority':0xbb8};}});const _0x3e7dab=({showActiveMarkers:_0x47dce4=!0x0,isAttributeSuggestion:_0x3780f5=!0x1}={})=>(_0x168273,_0x3a4004,_0x593682)=>{if(!_0x3a4004['item'])return;const {id:_0x41b696}=this['_splitMarkerName'](_0x3a4004['markerName']);if(_0x3780f5){const _0x38b25c=this['_suggestions']['get'](_0x41b696),_0x46029f=this['_getAttributeKey'](_0x38b25c);if(!this['_isBlockAttribute'](_0x46029f))return;}if(_0x3a4004['item']['is']('selection'))return void _0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);const _0x657b8f=_0x593682['mapper']['toViewElement'](_0x3a4004['item']);if(_0x3a4004['item']['is']('element')&&_0x36a405['model']['schema']['isBlock'](_0x3a4004['item'])&&!_0x657b8f['getCustomProperty']('addHighlight')){_0x593682['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x657b8f),_0x593682['writer']['setAttribute']('data-suggestion',_0x41b696,_0x657b8f),_0x593682['mapper']['bindElementToMarker'](_0x657b8f,_0x3a4004['markerName']),_0x47dce4&&(this['activeMarkers']['includes'](_0x3a4004['markerName'])?_0x593682['writer']['addClass']('ck-suggestion-marker--active',_0x657b8f):_0x593682['writer']['removeClass']('ck-suggestion-marker--active',_0x657b8f));for(const _0x162aa2 of _0x36a405['model']['createRangeIn'](_0x3a4004['item'])['getItems']())_0x593682['consumable']['consume'](_0x162aa2,_0x168273['name']);_0x593682['consumable']['consume'](_0x3a4004['item'],_0x168273['name']);}};_0x36a405['conversion']['for']('dataDowncast')['add'](_0x4b7643=>{_0x4b7643['on']('addMarker:suggestion:formatBlock',(_0x525f7d,_0x1d0b4e,_0x43b575)=>{_0x43b575['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1})(_0x525f7d,_0x1d0b4e,_0x43b575);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['add'](_0xc42964=>{_0xc42964['on']('addMarker:suggestion:attribute',(_0x5808b8,_0x5f5144,_0x491f96)=>{_0x491f96['options']['showSuggestionHighlights']&&_0x3e7dab({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x5808b8,_0x5f5144,_0x491f96);},{'priority':'highest'});}),_0x36a405['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x2f6960,_0x286e0c)=>_0x286e0c['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x2f6960['substr'](0xb)}}),_0x36a405['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x588cdf,{writer:_0x3f040e})=>{let _0x73cbc2='suggestion:'+_0x588cdf['getAttribute']('suggestion-type')+':'+_0x588cdf['getAttribute']('id');return _0x588cdf['getAttribute']('marker-count')&&(_0x73cbc2+=':'+_0x588cdf['getAttribute']('marker-count')),_0x3f040e['createElement']('$marker',{'data-name':_0x73cbc2});}}),_0x36a405['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x1b5a2c=>{_0x1b5a2c['on']('addMarker:suggestion:formatBlock',_0x3e7dab(),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x4d4f03=>{_0x4d4f03['on']('addMarker:suggestion:attribute',_0x3e7dab({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x529aed=>{_0x529aed['on']('removeMarker:suggestion:formatBlock',(_0x384c15,_0x47be2d,_0x5b7ea7)=>{const _0x23d45f=_0x5b7ea7['mapper']['markerNameToElements'](_0x47be2d['markerName']);if(_0x23d45f){for(const _0x5c8095 of _0x23d45f)_0x5c8095['getCustomProperty']('addHighlight')||(_0x5b7ea7['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x5c8095),_0x5b7ea7['writer']['removeAttribute']('data-suggestion',_0x5c8095),_0x5b7ea7['mapper']['unbindElementFromMarkerName'](_0x5c8095,_0x47be2d['markerName']));}},{'priority':'high'});}),_0x36a405['conversion']['for']('editingDowncast')['add'](_0x44cd9e=>{_0x44cd9e['on']('removeMarker:suggestion:attribute',(_0x26d0b7,_0x475c5e,_0x117099)=>{const _0x1887d4=_0x117099['mapper']['markerNameToElements'](_0x475c5e['markerName']);if(!_0x1887d4)return;const {id:_0xaa5d58}=this['_splitMarkerName'](_0x475c5e['markerName']),_0x4e0b6d=this['_suggestions']['get'](_0xaa5d58),_0x823e9a=this['_getAttributeKey'](_0x4e0b6d);if(this['_isBlockAttribute'](_0x823e9a)){for(const _0x477f45 of _0x1887d4)_0x477f45['getCustomProperty']('addHighlight')||(_0x117099['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x477f45),_0x117099['writer']['removeAttribute']('data-suggestion',_0x477f45),_0x117099['mapper']['unbindElementFromMarkerName'](_0x477f45,_0x475c5e['markerName']));}},{'priority':'high'});}),_0x36a405['model']['document']['registerPostFixer'](_0x9e7b91=>{let _0x2fcbc3=!0x1;const _0x13b512=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']()),_0x23c79a=new Set();for(const {name:_0x241408,data:_0x52c43a}of _0x13b512){const {group:_0x8c492d,type:_0x33d614,subType:_0x13c038,id:_0x3de30d}=this['_splitMarkerName'](_0x241408);if('suggestion'!==_0x8c492d)continue;const _0x5d39fe=this['_suggestions']['get'](_0x3de30d);if(null!=_0x52c43a['newRange']){'formatInline'==_0x33d614&&(_0x2fcbc3=_0x2fcbc3||Et(_0x52c43a['newRange'],_0x241408,_0x9e7b91,_0x36a405['model']['schema']));const _0x3843f6='attribute'==_0x33d614&&this['_isBlockAttribute'](_0x13c038['split']('|')[0x0]);if(_0x52c43a['newRange']['isCollapsed']||'$graveyard'==_0x52c43a['newRange']['root']['rootName']||'formatBlock'==_0x33d614&&!Ut(_0x52c43a['newRange'])||_0x3843f6&&!Ut(_0x52c43a['newRange'])||'deletion'==_0x33d614&&!(!Tt(_0x2c8647=_0x52c43a['newRange'])&&!function(_0x5c7c1c){return _0x5c7c1c['start']['parent']==_0x5c7c1c['end']['nodeBefore']&&_0x5c7c1c['start']['isAtEnd'];}(_0x2c8647)))_0x9e7b91['removeMarker'](_0x241408),_0x2fcbc3=!0x0;else{if(!_0x5d39fe||!_0x5d39fe['isInContent'])continue;_0x23c79a['add'](_0x5d39fe);}}}var _0x2c8647;return _0x23c79a['size']>0x0&&(_0x2fcbc3=!!this['_joinWithAdjacentSuggestions'](_0x23c79a)||_0x2fcbc3),_0x2fcbc3;}),_0x36a405['model']['document']['registerPostFixer'](_0x5d60ef=>{let _0x3036a3=!0x1;for(const _0x1abe07 of _0x36a405['model']['document']['differ']['getChanges']())if('insert'==_0x1abe07['type'])for(const _0x492a9f of this['_suggestions']['values']()){if(_0x492a9f['isMultiRange']||!_0x492a9f['isInContent'])continue;const _0x165614='formatBlock'==_0x492a9f['type'],_0x1a9ad9=this['_getAttributeKey'](_0x492a9f),_0x336253=_0x1a9ad9&&this['_isBlockAttribute'](_0x1a9ad9);if(!_0x165614&&!_0x336253)continue;const _0xb4f157=_0x492a9f['getFirstRange']();if(_0xb4f157['start']['parent']!=_0xb4f157['end']['parent']&&!_0xb4f157['end']['isAtEnd']){const _0x49a8c0=_0x36a405['model']['createPositionAt'](_0xb4f157['start']['nodeAfter'],'end'),_0x8806ce=_0x36a405['model']['createRange'](_0xb4f157['start'],_0x49a8c0);_0x5d60ef['updateMarker'](_0x492a9f['getFirstMarker'](),{'range':_0x8806ce}),_0x3036a3=!0x0;}}return _0x3036a3;}),_0x36a405['model']['document']['registerPostFixer'](_0x4a1f68=>this['_processAttributeChanges'](_0x4a1f68)),_0x36a405['model']['document']['registerPostFixer'](_0x4f146e=>!_0x4f146e['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x4f146e)),_0x36a405['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x36a405['model']['document']['on']('change:data',(_0x32c5e1,_0xbca683)=>{if(!_0xbca683['isLocal']||_0xbca683['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x4ac893=_0x36a405['model']['document']['differ']['getChanges']();if(0x0==_0x4ac893['length'])return;const _0x147891=[],_0x16b3b0=_0x4ac893['filter'](_0x1e9b54=>'attribute'==_0x1e9b54['type']),_0x11eb39=_0x4ac893['filter'](_0x325e29=>'insert'==_0x325e29['type']&&'$text'!=_0x325e29['name']);for(const _0x1d4a82 of _0x16b3b0)this['_isRegisteredAttribute'](_0x1d4a82['attributeKey'])&&_0x147891['push']({'key':_0x1d4a82['attributeKey'],'newValue':_0x1d4a82['attributeNewValue'],'oldValue':_0x1d4a82['attributeOldValue'],'range':Ot(_0x1d4a82['range'],_0x36a405['model'])});for(const _0x389dac of _0x11eb39){if('rename'!=_0x389dac['action']&&'refresh'!=_0x389dac['action'])continue;const _0x6823d4=Gt(_0x389dac['position']['nodeAfter'],_0x36a405['model']),_0x22b53f=_0x389dac['before'];'rename'==_0x389dac['action']&&_0x147891['push']({'key':m,'newValue':_0x389dac['name'],'oldValue':_0x22b53f['name'],'range':_0x6823d4});for(const [_0x5e3a1d,_0x238b8a]of _0x22b53f['attributes']){if(!this['_isRegisteredAttribute'](_0x5e3a1d))continue;const _0xbb911a=_0x389dac['attributes']['get'](_0x5e3a1d);_0x238b8a!==_0xbb911a&&_0x147891['push']({'key':_0x5e3a1d,'newValue':_0xbb911a,'oldValue':_0x238b8a,'range':_0x6823d4});}for(const [_0x189ed3,_0xae35c3]of _0x389dac['attributes'])this['_isRegisteredAttribute'](_0x189ed3)&&(_0x22b53f['attributes']['has'](_0x189ed3)||_0x147891['push']({'key':_0x189ed3,'newValue':_0xae35c3,'oldValue':null,'range':_0x6823d4}));}0x0!=_0x147891['length']&&_0x36a405['model']['enqueueChange'](_0xbca683,_0x5210ff=>{const _0x3a28ab=_0xe5f9d9();for(const {range:_0x25c8d9,key:_0x32a2cd,oldValue:_0xc43413,newValue:_0x26c642}of _0x147891)this['markAttributeChange'](_0x25c8d9,_0x32a2cd,_0xc43413,_0x26c642,{'groupId':_0x3a28ab});this['_reduceExistingSuggestions'](_0x5210ff,_0x147891);});},{'priority':'lowest'}),_0x36a405['model']['markers']['on']('update:suggestion',(_0x33d89d,_0x58ebfc,_0x3e0024)=>{if(null==_0x3e0024){const {id:_0x2392a5}=this['_splitMarkerName'](_0x58ebfc['name']),_0x2289c6=this['_suggestions']['get'](_0x2392a5);_0x2289c6&&_0x2289c6['addMarkerName'](_0x58ebfc['name']);}}),_0x36a405['model']['document']['on']('change:data',()=>{const _0xf89928=Array['from'](_0x36a405['model']['document']['differ']['getChangedMarkers']())['filter'](_0xd4c2dc=>'suggestion'===this['_splitMarkerName'](_0xd4c2dc['name'])['group']);if(0x0===_0xf89928['length'])return;_0xf89928['sort']((_0x9fc41e,_0x1aae6d)=>{const _0x2d5624=_0x9fc41e['data']['oldRange'],_0x103f43=_0x1aae6d['data']['oldRange'];return null===_0x2d5624&&null===_0x103f43?0x0:null===_0x2d5624&&null!==_0x103f43?-0x1:null!==_0x2d5624&&null===_0x103f43?0x1:_0x2d5624['start']['isBefore'](_0x103f43['start'])?-0x1:0x1;});const _0x3d08f7=new Set(),_0x313f7b=new Set();for(const {name:_0x11056f,data:_0xf63509}of _0xf89928){const {id:_0x4f9169}=this['_splitMarkerName'](_0x11056f);if(null===_0xf63509['oldRange']){const _0x23341d=this['_handleNewSuggestionMarker'](_0x11056f);_0x313f7b['add'](_0x23341d);}else{const _0x4a94ed=this['_suggestions']['get'](_0x4f9169);null!==_0xf63509['newRange']||_0x4a94ed['isInContent']?(_0x3d08f7['add'](_0x4a94ed['head']),_0x313f7b['add'](_0x4a94ed)):this['_removeSuggestion'](_0x4a94ed);}}_0x313f7b['size']>0x0&&this['_refreshSuggestionsChain'](_0x313f7b);for(const _0x1c1312 of _0x3d08f7)this['fire']('suggestionChanged',_0x1c1312);}),_0x36a405['model']['on']('applyOperation',(_0x56925a,_0x2377c8)=>{const _0xe3a7ce=_0x2377c8[0x0];if(!this['_suggestions']['size'])return;if(!_0xe3a7ce['isDocumentOperation'])return;if(_0xe3a7ce['batch']['isUndo']||!_0xe3a7ce['batch']['isLocal'])return;let _0x593982,_0x460dbb;switch(_0xe3a7ce['type']){case'insert':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['position']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;case'split':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['splitPosition']),_0x460dbb=_0x36a405['model']['createPositionAt'](_0xe3a7ce['moveTargetPosition']);break;case'move':_0x593982=_0x36a405['model']['createPositionAt'](_0xe3a7ce['targetPosition']),_0x460dbb=_0x593982['getShiftedBy'](_0xe3a7ce['howMany']);break;default:return;}const _0x57a58f=_0x36a405['model']['createRange'](_0x593982,_0x460dbb);_0x36a405['model']['change'](()=>{for(const {suggestion:_0x2b5b4b,meta:_0x53b8fd}of this['_findSuggestions'](_0x57a58f)){if(_0x2b5b4b['isMultiRange'])continue;if('formatInline'==_0x2b5b4b['type'])continue;const _0x20d584=this['_getAttributeKey'](_0x2b5b4b);if(_0x20d584&&this['_isBlockAttribute'](_0x20d584)&&'split'!=_0xe3a7ce['type'])continue;const _0x3abcd4=_0x2b5b4b['data']&&_0x2b5b4b['data']['multipleBlocks'];('formatBlock'!=_0x2b5b4b['type']||'split'==_0xe3a7ce['type']&&!_0x3abcd4)&&(_0x53b8fd['containsRangeInObject']||'insertion'==_0x2b5b4b['type']&&_0x53b8fd['isOwn']||_0x2b5b4b['getFirstRange']()['containsRange'](_0x57a58f)&&this['_breakSuggestionMarker'](_0x2b5b4b,_0x593982,_0x460dbb));}});},{'priority':'lowest'}),_0x36a405['model']['on']('deleteContent',(_0x5ddc7f,_0x55a098)=>{const _0x46bb3f=_0x55a098[0x0],_0x3883c2=_0x55a098[0x1];if(_0x3883c2&&_0x3883c2['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x46bb3f['isCollapsed'])return;const _0x5895e5=_0x36a405['model']['schema'],{start:_0x27c0b8,end:_0x525c09}=_0x46bb3f['getFirstRange'](),_0x5f03b2=_0x27c0b8['nodeAfter']&&_0x5895e5['isLimit'](_0x27c0b8['nodeAfter'])?null:_0x5895e5['getNearestSelectionRange'](_0x27c0b8,'forward'),_0x175742=_0x525c09['nodeBefore']&&_0x5895e5['isLimit'](_0x525c09['nodeBefore'])?null:_0x5895e5['getNearestSelectionRange'](_0x525c09,'backward'),_0x3d0519=_0x36a405['model']['createRange'](_0x5f03b2?_0x5f03b2['start']:_0x27c0b8,_0x175742?_0x175742['end']:_0x525c09);_0x36a405['model']['change'](_0x551465=>{this['markDeletion'](_0x3d0519);const _0x239a2d=_0x36a405['model']['schema']['getNearestSelectionRange'](_0x3d0519['start']);_0x46bb3f['is']('documentSelection')?_0x551465['setSelection'](_0x239a2d):_0x46bb3f['setTo'](_0x239a2d);}),_0x5ddc7f['stop']();},{'priority':_0x452690['normal']+0xa}),_0x36a405['model']['on']('insertContent',(_0x1a3c47,_0x16ced4)=>{const _0x3933a2=_0x16ced4[_0x16ced4['length']-0x1];_0x3933a2&&_0x3933a2['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x36a405['model']['change'](()=>{let _0x2d35cc=_0x36a405['model']['insertContent'](_0x16ced4[0x0],_0x16ced4[0x1],_0x16ced4[0x2],{'forceDefaultExecution':!0x0});if(!_0x2d35cc)return;_0x1a3c47['return']=_0x2d35cc['clone']();const _0x3cbe33=_0x2d35cc['end']['nodeBefore'],_0x8cb556=_0x36a405['model']['schema'];_0x3cbe33&&_0x8cb556['isBlock'](_0x3cbe33)&&!_0x8cb556['isObject'](_0x3cbe33)&&(_0x2d35cc=_0x36a405['model']['createRange'](_0x2d35cc['start'],_0x36a405['model']['createPositionAt'](_0x3cbe33,'end'))),this['markInsertion'](_0x2d35cc);}),_0x1a3c47['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x43f28a=new $(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('acceptSuggestion',_0x43f28a),this['enableCommand']('acceptSuggestion');const _0x56779e=new B(_0x36a405,this['_suggestions']);_0x36a405['commands']['add']('discardSuggestion',_0x56779e),this['enableCommand']('discardSuggestion'),_0x36a405['commands']['add']('acceptAllSuggestions',new x(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x36a405['commands']['add']('discardAllSuggestions',new x(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x36a405['commands']['add']('acceptSelectedSuggestions',new R(_0x36a405,_0x43f28a,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x36a405['commands']['add']('discardSelectedSuggestions',new R(_0x36a405,_0x56779e,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x5b038d=_0x36a405['plugins']['get']('CommentsRepository');this['listenTo'](_0x5b038d,'addComment',(_0x17ba96,{threadId:_0x26467e})=>{const _0x3cc4b8=this['_suggestions']['get'](_0x26467e);_0x3cc4b8&&_0x3cc4b8['commentThread']&&0x1===_0x3cc4b8['commentThread']['length']&&this['_updateSuggestionData'](_0x26467e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x5b038d,'removeComment',(_0x4bb99e,{threadId:_0x4adcae})=>{const _0x534be0=this['_suggestions']['get'](_0x4adcae);_0x534be0&&_0x534be0['commentThread']&&!_0x534be0['commentThread']['length']&&this['_updateSuggestionData'](_0x4adcae,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x332b14){if(this['_adapter'])throw new _0x194952('track-changes-adapter-already-set',this);this['_adapter']=_0x332b14;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x5e07c0=!0x1,toJSON:_0x24fbc1=!0x1}={}){const _0xf68207=[];for(const _0x262f99 of this['_suggestions']['values']())_0x5e07c0&&!_0x262f99['isInContent']||_0xf68207['push'](_0x262f99);return _0x24fbc1?_0xf68207['map'](_0x60443c=>_0x60443c['toJSON']()):_0xf68207;}['getSuggestion'](_0x17bd1e){const _0x4cb615=this['_suggestions']['get'](_0x17bd1e);if(!_0x4cb615)throw new _0x194952('track-changes-suggestion-not-found',this);return _0x4cb615;}['hasSuggestion'](_0x1cd005){return this['_suggestions']['has'](_0x1cd005);}['addSuggestionData'](_0x310b1f){const {authorId:_0x4bd7c9,id:_0x51e83c,attributes:_0x6dc49d}=_0x310b1f,[_0x37e57d,_0x505142]=_0x310b1f['type']['split'](':'),_0x3d3d8d=this['_suggestions']['get'](_0x51e83c)||this['_createSuggestion'](_0x37e57d,_0x505142,_0x51e83c,_0x4bd7c9,_0x6dc49d);if(this['_addThreadToSuggestion'](_0x3d3d8d),this['_checkSuggestionCorrectness'](_0x3d3d8d,_0x37e57d,_0x505142||null,_0x4bd7c9),_0x3d3d8d['createdAt']=_0x310b1f['createdAt'],_0x3d3d8d['_isDataLoaded']=!0x0,_0x6dc49d&&_0x6dc49d['@external']){const _0x1ac97d=_0x6dc49d['@external'],_0x4bcba9=this['_getExternalAuthor'](_0x1ac97d['authorName']);_0x3d3d8d['authoredAt']=_0x1ac97d['createdAt'],_0x3d3d8d['author']=_0x4bcba9,_0x3d3d8d['isExternal']=!0x0;}else _0x3d3d8d['authoredAt']=_0x310b1f['createdAt'];switch(_0x310b1f['data']&&(_0x3d3d8d['data']=_0x310b1f['data']),_0x310b1f['attributes']&&(_0x3d3d8d['attributes']=_0x310b1f['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x3d3d8d['_saved']=!0x0),this['_suggestionState']['get'](_0x3d3d8d)){case'notReady':this['_suggestionState']['set'](_0x3d3d8d,'dataReady');break;case'markerReady':_0x3d3d8d['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x3d3d8d])),this['_refreshSuggestionsChain'](new Set([_0x3d3d8d])),this['_suggestionState']['set'](_0x3d3d8d,'ready'),this['fire']('suggestionLoaded',_0x3d3d8d)):this['_suggestionState']['set'](_0x3d3d8d,'removed');}return _0x3d3d8d;}['acceptSuggestion'](_0x5c3df3){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x52eb36 of _0x5c3df3['getAllAdjacentSuggestions']())_0x52eb36['accept']();});});}['discardSuggestion'](_0x1b5c5e){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x256201 of _0x1b5c5e['getAllAdjacentSuggestions']())_0x256201['discard']();});});}['enableCommand'](_0x153749,_0x550da0){const _0x11b9d5=this['editor']['commands']['get'](_0x153749);if(!_0x11b9d5)throw new _0x194952('track-changes-command-not-found',this,{'commandName':_0x153749});if(this['_enabledCommands']['has'](_0x11b9d5))throw new _0x194952('track-changes-enable-command-twice',this,{'commandName':_0x153749});this['_enabledCommands']['add'](_0x11b9d5),_0x550da0&&_0x11b9d5['on']('execute',(_0x41c80a,_0xc727cb)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0xc727cb['length']>0x0&&_0xc727cb[_0xc727cb['length']-0x1]&&_0xc727cb[_0xc727cb['length']-0x1]['forceDefaultExecution']?_0xc727cb['pop']():(_0x41c80a['return']=_0x550da0((..._0x1683b5)=>_0x11b9d5['execute'](..._0x1683b5,{'forceDefaultExecution':!0x0}),..._0xc727cb),_0x41c80a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x25ee34){let _0x4dd56e,_0x58c6d2;const _0x22cad3=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x4dd56e=_0x25ee34();}catch(_0x282c7e){_0x58c6d2=_0x282c7e;}return _0x22cad3||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x58c6d2&&_0x194952['rethrowUnexpectedError'](_0x58c6d2,this),_0x4dd56e;}['markInsertion'](_0x1fd38a,_0x1346f4=null,_0x1086b0={}){if(_0x1fd38a['isCollapsed'])return null;const _0x4412cf=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x556204,meta:_0x12cf1e}of this['_findSuggestions'](_0x1fd38a,'insertion'))if(_0x12cf1e['isOwn']){if(!_0x12cf1e['isNextTo']){if(_0x12cf1e['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x556204,_0x1086b0))continue;return _0x556204;}if(Lt(_0x556204,_0x1086b0))return _0x556204;this['_breakSuggestionMarker'](_0x556204,_0x1fd38a['start'],_0x1fd38a['end']);break;}if(_0x1346f4==_0x556204['subType']&&Lt(_0x556204,_0x1086b0)){const _0x56c1de=_0x556204['getFirstRange']();return _0x56c1de['start']['isEqual'](_0x1fd38a['end'])?this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x1fd38a['start'],_0x56c1de['end'])):this['_setSuggestionRange'](_0x556204,this['_model']['createRange'](_0x56c1de['start'],_0x1fd38a['end'])),_0x556204;}}const _0x57de84=_0xe5f9d9(),_0x50f2a6=_0x4412cf['id'],_0x3b2e8e=_0x1346f4?'insertion:'+_0x1346f4:'insertion',_0x41912a=this['_setSuggestionData']({'id':_0x57de84,'type':_0x3b2e8e,'createdAt':new Date(),'authorId':_0x50f2a6,'attributes':_0x1086b0});return this['_addSuggestionMarker'](_0x3b2e8e,_0x57de84,_0x50f2a6,_0x1fd38a),_0x41912a;}['markMultiRangeInsertion'](_0x2bc215,_0x1651cf='multi',_0x5332d4={}){const _0x5557ac=this['editor']['plugins']['get']('Users')['me'],_0x37b077=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x1651cf,'join');for(const _0x3f3e7e of this['getSuggestions']())if(_0x3f3e7e['author']['id']==_0x5557ac['id']&&'insertion'==_0x3f3e7e['type']&&_0x3f3e7e['subType']==_0x1651cf&&Lt(_0x3f3e7e,_0x5332d4)&&(_0x37b077(_0x3f3e7e['getRanges'](),_0x2bc215)||_0x37b077(_0x2bc215,_0x3f3e7e['getRanges']()))){for(const _0x1f3f86 of _0x2bc215)_0x3f3e7e['addRange'](_0x1f3f86);return _0x3f3e7e;}for(const {suggestion:_0x6ed798,meta:_0x3d1b15}of this['_findSuggestions'](_0x2bc215,'insertion')){if(!_0x3d1b15['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x3d1b15['containsRangeInObject'])continue;if(!Lt(_0x6ed798,_0x5332d4))continue;let _0x4c4289=!0x0;for(const _0x37fe6e of _0x6ed798['getRanges']())for(const _0x33da3d of _0x2bc215)if(!_0x37fe6e['containsRange'](_0x33da3d)){_0x4c4289=!0x1;break;}if(_0x4c4289)return _0x6ed798;}const _0x89f620=_0xe5f9d9(),_0x1952c3=_0x5557ac['id'],_0x268d7d='insertion:'+_0x1651cf,_0x410d39=this['_setSuggestionData']({'id':_0x89f620,'type':_0x268d7d,'createdAt':new Date(),'authorId':_0x1952c3,'attributes':_0x5332d4});for(const _0x1405bb of _0x2bc215)this['_addSuggestionMarker'](_0x268d7d,_0x89f620,_0x1952c3,_0x1405bb,u['getMultiRangeId']());return _0x410d39;}['markInlineFormat'](_0x5b96d6,_0x3b1e59,_0x3665cc=null,_0xf3cd3={}){if(_0x3665cc=_0x3665cc||Vt(_0x3b1e59),_0x5b96d6['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x901c2d=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');return this['forceDefaultExecution'](()=>_0x901c2d([_0x5b96d6],_0x3b1e59,_0xf3cd3)),null;}const _0x243400=this['editor']['plugins']['get']('Users')['me'],_0x11c6ba=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x23b1af,meta:_0xaa78e7}of this['_findSuggestions'](_0x5b96d6,'insertion'))_0xaa78e7['isOwn']&&!_0xaa78e7['isInsideObject']&&_0x11c6ba['push'](..._0x23b1af['getRanges']());}const _0x4d6c7b=function(_0x3d8bf1,_0x734282){const _0x1a926d=[];for(const _0xd54c1 of _0x734282){const _0x5a188c=_0x3d8bf1['getIntersection'](_0xd54c1);_0x5a188c&&_0x1a926d['push'](_0x5a188c);}return _0x1a926d;}(_0x5b96d6,_0x11c6ba),_0x5adb90=function(_0x43b44d,_0x2ddd10){const _0x7a6df5=[_0x43b44d];for(const _0x5be9ab of _0x2ddd10){let _0x5221d0=0x0;for(;_0x5221d0<_0x7a6df5['length'];){const _0x363a39=_0x7a6df5[_0x5221d0]['getDifference'](_0x5be9ab);_0x7a6df5['splice'](_0x5221d0,0x1,..._0x363a39),_0x5221d0+=_0x363a39['length'];}}return _0x7a6df5;}(_0x5b96d6,_0x11c6ba);_0x4d6c7b['length']&&this['_model']['change'](()=>{for(const _0x5e8e8b of _0x4d6c7b){const _0x3ab3bc=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x3665cc,'accept');this['forceDefaultExecution'](()=>_0x3ab3bc([_0x5e8e8b],_0x3b1e59,_0xf3cd3));}});for(const _0x1aafc of _0x5adb90){let _0x361439=null,_0x4051f3=_0x1aafc['start'],_0x2a24f0=_0x1aafc['end'];for(const {suggestion:_0x153cc2,meta:_0x426edc}of this['_findSuggestions'](_0x1aafc,'formatInline')){if(!_0x426edc['isOwn'])continue;if(_0x153cc2['subType']!=_0x3665cc)continue;if(!Lt(_0x153cc2,_0xf3cd3))continue;const _0x140660=_0x153cc2['getFirstRange']();if(_0x140660['containsRange'](_0x1aafc,!0x0))return null;_0x4051f3=_0x4051f3['isBefore'](_0x140660['start'])?_0x4051f3:_0x140660['start'],_0x2a24f0=_0x2a24f0['isAfter'](_0x140660['end'])?_0x2a24f0:_0x140660['end'],_0x361439?_0x140660['start']['isBefore'](_0x361439['getFirstRange']()['start'])?(_0x361439['removeMarkers'](),_0x361439=_0x153cc2):_0x153cc2['removeMarkers']():_0x361439=_0x153cc2;}const _0x7eaf66=this['_model']['createRange'](_0x4051f3,_0x2a24f0);if(_0x361439)this['_setSuggestionRange'](_0x361439,_0x7eaf66);else{const _0xa7786f=_0xe5f9d9(),_0x11bb2d=_0x243400['id'];this['_setSuggestionData']({'id':_0xa7786f,'type':'formatInline:'+_0x3665cc,'data':_0x3b1e59,'createdAt':new Date(),'authorId':_0x11bb2d,'attributes':_0xf3cd3}),this['_addSuggestionMarker']('formatInline:'+_0x3665cc,_0xa7786f,_0x11bb2d,_0x7eaf66);}}return null;}['markBlockFormat'](_0x1fcb0c,_0x487cf1,_0x14950d=[],_0x425e59=null,_0x243ba5={}){_0x487cf1['formatGroupId']||(_0x487cf1['formatGroupId']=_0x487cf1['commandName']),_0x487cf1['multipleBlocks']=_0x1fcb0c['is']('range'),_0x425e59=_0x425e59||Vt(_0x487cf1);const _0x559d9c=_0x14950d['map'](_0x12a6b3=>Gt(_0x12a6b3,this['_model'])),_0x3c8456=_0x1fcb0c['is']('range')?_0x1fcb0c:Gt(_0x1fcb0c,this['_model']);if('never'===this['_trackFormatChanges']){const _0x364e29=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x364e29([_0x3c8456],_0x487cf1,_0x243ba5)),null;}_0x559d9c['push'](_0x3c8456);let _0x5cbbc7=!0x0;for(const _0x97a355 of _0x559d9c)if(!this['_rangeIsInLocalUserInsertion'](_0x97a355)){_0x5cbbc7=!0x1;break;}if(_0x5cbbc7&&'always'!==this['_trackFormatChanges']){const _0x2efaa1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x425e59,'accept');return this['forceDefaultExecution'](()=>_0x2efaa1([_0x3c8456],_0x487cf1,_0x243ba5)),null;}let _0x1b1477=null,_0x1c9357=_0x3c8456['start'],_0x167d6b=_0x3c8456['end'];for(const {suggestion:_0x17deac,meta:_0x568337}of this['_findSuggestions'](_0x3c8456,'formatBlock')){if(!_0x568337['isOwn'])continue;if(_0x568337['isNextTo']||_0x568337['containsRangeInObject']||_0x568337['isInsideObject'])continue;if(_0x17deac['data']['formatGroupId']!=_0x487cf1['formatGroupId'])continue;if(!Lt(_0x17deac,_0x243ba5))continue;const _0x3bc572=_0x17deac['getFirstRange']();if(_0x17deac['subType']==_0x425e59){if(_0x3bc572['containsRange'](_0x3c8456,!0x0))return null;_0x1c9357=_0x1c9357['isBefore'](_0x3bc572['start'])?_0x1c9357:_0x3bc572['start'],_0x167d6b=_0x167d6b['isAfter'](_0x3bc572['end'])?_0x167d6b:_0x3bc572['end'],_0x1b1477?_0x3bc572['start']['isBefore'](_0x1b1477['getFirstRange']()['start'])?(_0x1b1477['removeMarkers'](),_0x1b1477=_0x17deac):_0x17deac['removeMarkers']():_0x1b1477=_0x17deac;}else{const _0x25e0e6=_0x3c8456['getIntersection'](_0x3bc572);this['_cutOutSuggestionMarker'](_0x17deac,_0x25e0e6);}}const _0x286b1b=this['editor']['plugins']['get']('Users')['me'],_0x3256ca=_0xe5f9d9(),_0x531f06=_0x286b1b['id'];if(_0x1b1477)return this['_setSuggestionRange'](_0x1b1477,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x1b1477;{const _0x555012=this['_setSuggestionData']({'id':_0x3256ca,'type':'formatBlock:'+_0x425e59,'data':_0x487cf1,'createdAt':new Date(),'authorId':_0x531f06,'attributes':_0x243ba5});return this['_addSuggestionMarker']('formatBlock:'+_0x425e59,_0x3256ca,_0x531f06,this['_model']['createRange'](_0x1c9357,_0x167d6b)),_0x555012;}}['markMultiRangeBlockFormat'](_0x29357a,_0x526abb,_0x3ecdeb=[],_0x4849f9=null,_0x1a9f74={}){_0x526abb['formatGroupId']||(_0x526abb['formatGroupId']=_0x526abb['commandName']);const _0x17ffb5=_0x29357a[0x0];_0x526abb['multipleBlocks']=_0x17ffb5['is']('range'),_0x4849f9=_0x4849f9||Vt(_0x526abb);const _0x4c159e=_0x3ecdeb['map'](_0x43399d=>Gt(_0x43399d,this['_model'])),_0x21a1c8=_0x17ffb5['is']('range')?_0x29357a:_0x29357a['map'](_0x4272f0=>Gt(_0x4272f0,this['_model']));if('never'===this['_trackFormatChanges']){const _0x2c4f9c=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x2c4f9c(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}_0x4c159e['push'](..._0x21a1c8);let _0x33d051=!0x0;for(const _0x1cf394 of _0x4c159e)if(!this['_rangeIsInLocalUserInsertion'](_0x1cf394)){_0x33d051=!0x1;break;}if(_0x33d051&&'always'!==this['_trackFormatChanges']){const _0x235db2=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'accept');return this['forceDefaultExecution'](()=>_0x235db2(_0x21a1c8,_0x526abb,_0x1a9f74)),null;}const _0x395ed6=this['editor']['plugins']['get']('Users')['me'];for(const _0x42aaf3 of this['getSuggestions']()){if(_0x42aaf3['author']['id']!=_0x395ed6['id'])continue;if('formatBlock'!=_0x42aaf3['type']||_0x42aaf3['data']['formatGroupId']!=_0x526abb['formatGroupId'])continue;if(!Lt(_0x42aaf3,_0x1a9f74))continue;const _0x5c1050=_0x42aaf3['subType']==_0x4849f9;for(let _0x5f35b0=0x0;_0x5f35b0<_0x21a1c8['length'];_0x5f35b0++){const _0x29bf67=_0x21a1c8[_0x5f35b0];for(const _0x3e4a49 of _0x42aaf3['getMarkers']()){const _0x385f1f=_0x3e4a49['getRange']();if(_0x29bf67['isEqual'](_0x385f1f)){_0x5c1050?(_0x21a1c8['splice'](_0x5f35b0,0x1),_0x5f35b0--):_0x42aaf3['removeMarker'](_0x3e4a49['name']);break;}}}}if(0x0==_0x21a1c8['length'])return null;const _0x5cbd02=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4849f9,'join');for(const _0xeff256 of this['getSuggestions']())if(_0xeff256['author']['id']==_0x395ed6['id']&&'formatBlock'==_0xeff256['type']&&_0xeff256['data']['formatGroupId']==_0x526abb['formatGroupId']&&_0xeff256['subType']==_0x4849f9&&Lt(_0xeff256,_0x1a9f74)&&(_0x5cbd02(_0xeff256['getRanges'](),_0x21a1c8)||_0x5cbd02(_0x21a1c8,_0xeff256['getRanges']()))){for(const _0x2b1316 of _0x21a1c8)_0xeff256['addRange'](_0x2b1316);return _0xeff256;}const _0x3b1f08=_0xe5f9d9(),_0x4cf204=_0x395ed6['id'],_0x1b29e5='formatBlock:'+_0x4849f9,_0x4f0c5e=this['_setSuggestionData']({'id':_0x3b1f08,'type':_0x1b29e5,'data':_0x526abb,'createdAt':new Date(),'authorId':_0x4cf204,'attributes':_0x1a9f74});for(const _0x275bcd of _0x21a1c8)this['_addSuggestionMarker'](_0x1b29e5,_0x3b1f08,_0x4cf204,_0x275bcd,u['getMultiRangeId']());return _0x4f0c5e;}['markDeletion'](_0x1e3105,_0x25b477=null,_0x268065={}){if(_0x1e3105['isCollapsed'])return null;const _0x92f15b=this['editor']['plugins']['get']('Users')['me'],_0x82a5cf=new _0xef9d24(_0x1e3105['start'],_0x1e3105['end']);for(const {suggestion:_0x436a0a,meta:_0x28f226}of this['_findSuggestions'](_0x82a5cf,'insertion'))if(_0x28f226['isOwn']&&!_0x28f226['isNextTo']){if(_0x436a0a['isMultiRange']){const _0x38dd3a=_0x436a0a['getRanges']()['filter'](_0x8007f7=>'$graveyard'!=_0x8007f7['root']['rootName']);_0x38dd3a['every'](_0x327673=>_0x82a5cf['containsRange'](_0x327673,!0x0))&&_0x436a0a['discard']();if(_0x38dd3a['some'](_0x5bcc78=>_0x5bcc78['containsRange'](_0x82a5cf,!0x0))){const _0x3292ed=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x25b477,'accept');return this['forceDefaultExecution'](()=>_0x3292ed([_0x82a5cf],null,_0x268065)),null;}}else{const _0x412a8e=_0x82a5cf['getIntersection'](_0x436a0a['getFirstRange']());null!==_0x412a8e&&_0x436a0a['_onDiscard']([_0x412a8e],null,_0x268065);}}if(_0x82a5cf['detach'](),_0x82a5cf['isCollapsed']||'$graveyard'==_0x82a5cf['root']['rootName'])return null;let _0x1f80b9=null,_0x41eb6d=_0x82a5cf['start'],_0x3fdcef=_0x82a5cf['end'];const _0x4a1861=this['_findSuggestions'](_0x82a5cf,'deletion');for(const {suggestion:_0x5a0797,meta:_0x165a6a}of _0x4a1861){const _0x4fd544=this['_model']['createRange'](_0x41eb6d,_0x3fdcef);if(_0x165a6a['isOwn']&&(this['_mergeNestedSuggestions']||!_0x165a6a['containsRangeInObject']&&!_0x165a6a['isInsideObject'])){if(_0x5a0797['isMultiRange']){if(!Lt(_0x5a0797,_0x268065))continue;let _0x16df6b=!0x0;for(const _0x111914 of _0x5a0797['getRanges']()){if(_0x111914['containsRange'](_0x4fd544,!0x0))return _0x5a0797;_0x4fd544['containsRange'](_0x111914)||(_0x16df6b=!0x1);}_0x16df6b&&_0x5a0797['discard']();}else{const _0x3a267b=_0x5a0797['getFirstRange']();if(_0x3a267b['containsRange'](_0x4fd544,!0x0))return _0x5a0797;if(!Lt(_0x5a0797,_0x268065)){_0x4fd544['containsRange'](_0x3a267b)?_0x5a0797['removeMarkers']():_0x3a267b['containsPosition'](_0x41eb6d)?_0x41eb6d=_0x3a267b['end']:_0x3a267b['containsPosition'](_0x3fdcef)&&(_0x3fdcef=_0x3a267b['start']);continue;}_0x41eb6d=_0x41eb6d['isBefore'](_0x3a267b['start'])?_0x41eb6d:_0x3a267b['start'],_0x3fdcef=_0x3fdcef['isAfter'](_0x3a267b['end'])?_0x3fdcef:_0x3a267b['end'],_0x268065=Object['assign']({},_0x5a0797['attributes']),_0x1f80b9?_0x3a267b['start']['isBefore'](_0x1f80b9['getFirstRange']()['start'])?(_0x1f80b9['removeMarkers'](),_0x1f80b9=_0x5a0797):_0x5a0797['removeMarkers']():_0x1f80b9=_0x5a0797;}}}if(_0x1f80b9)return this['_setSuggestionRange'](_0x1f80b9,this['_model']['createRange'](_0x41eb6d,_0x3fdcef)),_0x1f80b9;{const _0x58ad50=_0xe5f9d9(),_0x46f11b=this['_model']['createRange'](_0x41eb6d,_0x3fdcef),_0x190a95=_0x92f15b['id'],_0x1a4132=_0x25b477?'deletion:'+_0x25b477:'deletion',_0x14a433=this['_setSuggestionData']({'id':_0x58ad50,'type':_0x1a4132,'createdAt':new Date(),'authorId':_0x190a95,'attributes':_0x268065});return this['_addSuggestionMarker'](_0x1a4132,_0x58ad50,_0x190a95,_0x46f11b),_0x14a433;}}['markMultiRangeDeletion'](_0x266d67,_0x596603='multi',_0x2751f3={}){const _0x36cc1c=this['editor']['plugins']['get']('Users')['me'],_0x1d3c9b=_0x266d67['map'](_0x1aff0a=>new _0xef9d24(_0x1aff0a['start'],_0x1aff0a['end'])),_0x2b7eef=new Set();for(const {suggestion:_0x2cd47b,meta:_0x10dd15}of this['_findSuggestions'](_0x1d3c9b,'insertion'))_0x10dd15['isOwn']&&!_0x10dd15['isNextTo']&&_0x2b7eef['add'](_0x2cd47b);for(const _0x3dd1eb of _0x2b7eef)if(_0x3dd1eb['isMultiRange']){const _0x16b47e=_0x3dd1eb['getRanges']();(!_0x3dd1eb['attributes']||!_0x3dd1eb['attributes']['skipNestingCheck'])&&(_0x16b47e['every'](_0xd5605f=>_0x1d3c9b['some'](_0x466fd3=>_0x466fd3['containsRange'](_0xd5605f,!0x0)))&&_0x3dd1eb['discard']());if(_0x1d3c9b['every'](_0x4ff09f=>_0x16b47e['some'](_0x49b164=>_0x49b164['containsRange'](_0x4ff09f,!0x0)))){const _0x3bd5e5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x3bd5e5(_0x266d67,null,_0x2751f3)),null;}}else{const _0x450c57=_0x3dd1eb['getFirstRange']();_0x1d3c9b['some'](_0x4a893b=>_0x4a893b['containsRange'](_0x450c57,!0x0))&&_0x3dd1eb['discard']();if(_0x1d3c9b['every'](_0x2993c5=>_0x450c57['containsRange'](_0x2993c5,!0x0))){const _0x44e88f=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'accept');return this['forceDefaultExecution'](()=>_0x44e88f(_0x1d3c9b,null,_0x2751f3)),null;}}const _0x3a995b=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x596603,'join');let _0x4b771a=null;for(const _0x31e790 of this['getSuggestions']())if(_0x31e790['author']['id']==_0x36cc1c['id']&&_0x31e790['isInContent']&&'deletion'==_0x31e790['type']&&_0x31e790['subType']==_0x596603&&Lt(_0x31e790,_0x2751f3)&&(_0x3a995b(_0x31e790['getRanges'](),_0x1d3c9b)||_0x3a995b(_0x1d3c9b,_0x31e790['getRanges']()))){if(_0x4b771a){if(_0x31e790['commentThread']&&_0x31e790['commentThread']['length'])continue;for(const _0x45f05d of _0x31e790['getRanges']())_0x4b771a['isIntersectingWithRange'](_0x45f05d)||_0x4b771a['addRange'](_0x45f05d);_0x31e790['removeMarkers']();}else{_0x4b771a=_0x31e790;for(const _0x2ad8b7 of _0x1d3c9b)_0x31e790['isIntersectingWithRange'](_0x2ad8b7)||_0x31e790['addRange'](_0x2ad8b7);}}if(_0x4b771a)return _0x4b771a;_0x2b7eef['clear']();for(const {suggestion:_0x2640bc,meta:_0x1461fa}of this['_findSuggestions'](_0x1d3c9b,'deletion'))_0x1461fa['isOwn']&&(this['_mergeNestedSuggestions']||!_0x1461fa['containsRangeInObject']&&!_0x1461fa['isInsideObject'])&&Lt(_0x2640bc,_0x2751f3)&&_0x2b7eef['add'](_0x2640bc);for(const _0x4a6c75 of _0x2b7eef){const _0xc10b76=_0x4a6c75['getRanges']();if(!_0x2751f3||!_0x2751f3['skipNestingCheck']){if(_0x1d3c9b['every'](_0x43d45a=>_0xc10b76['some'](_0x391ed5=>_0x391ed5['containsRange'](_0x43d45a,!0x0))))return _0x4a6c75;}(!_0x4a6c75['attributes']||!_0x4a6c75['attributes']['skipNestingCheck'])&&(_0xc10b76['every'](_0x2fe0c2=>_0x1d3c9b['some'](_0x56d385=>_0x56d385['containsRange'](_0x2fe0c2,!0x0)))&&_0x4a6c75['discard']());}const _0x4595c6=_0xe5f9d9(),_0x3de345=_0x36cc1c['id'],_0x562f55='deletion:'+_0x596603,_0x2de5dc=this['_setSuggestionData']({'id':_0x4595c6,'type':_0x562f55,'createdAt':new Date(),'authorId':_0x3de345,'attributes':_0x2751f3});for(const _0x550efa of _0x1d3c9b)_0x550efa['detach'](),_0x550efa['isCollapsed']||'$graveyard'==_0x550efa['root']['rootName']||this['_addSuggestionMarker'](_0x562f55,_0x4595c6,_0x3de345,_0x550efa,u['getMultiRangeId']());return _0x2de5dc;}['markAttributeChange'](_0x4e638b,_0x4724aa,_0x22027b,_0x4e48e5,_0x583325){if(_0x4e638b['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x108c75=this['editor']['plugins']['get']('Users')['me']['id'],_0x19a136=Array['from'](this['_suggestions']['values']())['filter'](_0x3c9b99=>'attribute'==_0x3c9b99['type']&&_0x3c9b99['data']['key']==_0x4724aa&&_0x3c9b99['isIntersectingWithRange'](_0x4e638b));if('default'===this['_trackFormatChanges']){const _0xe40e5d=this['_findSuggestions'](_0x4e638b,'insertion')['filter'](({meta:_0x51abe6})=>_0x51abe6['isOwn']&&!_0x51abe6['isInsideObject']&&!_0x51abe6['isNextTo'])['map'](({suggestion:_0x2274ec})=>_0x2274ec);_0x19a136['unshift'](..._0xe40e5d);}const _0x3017fb=new Map([[_0x4e638b,_0x22027b]]);for(const _0xaaeac9 of _0x19a136){const _0xc66c0f='attribute'==_0xaaeac9['type']?_0xaaeac9['data']['oldValue']:void 0x0,_0x382102=_0xaaeac9['getFirstRange'](),_0x1f4b69=Array['from'](_0x3017fb['keys']())['find'](_0x2c68d2=>_0x2c68d2['isIntersecting'](_0x382102));if(!_0x1f4b69)continue;const _0x572787=_0x1f4b69['getDifference'](_0x382102);this['_isBlockAttribute'](_0x4724aa)&&'insertion'==_0xaaeac9['type']&&0x0!=_0x572787['length']||(_0x3017fb['delete'](_0x1f4b69),_0x572787['forEach'](_0x594071=>{_0x3017fb['set'](_0x594071,_0x22027b);}),'insertion'!=_0xaaeac9['type']&&_0xc66c0f!=_0x4e48e5&&_0x3017fb['set'](_0x1f4b69['getIntersection'](_0x382102),_0xc66c0f));}const _0x138812=[];for(const [_0x509f46,_0x3f5754]of _0x3017fb){const _0x3980cd=_0xe5f9d9(),_0x2172d0={'key':_0x4724aa,'oldValue':_0x3f5754,'newValue':_0x4e48e5};_0x4724aa['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':_0x4724aa});const _0x4d14d6=('attribute:'+(_0x4724aa+'|'+Vt({'newValue':_0x4e48e5})))['substring'](0x0,0x3c),_0x14b7be=this['_setSuggestionData']({'id':_0x3980cd,'type':_0x4d14d6,'data':_0x2172d0,'createdAt':new Date(),'authorId':_0x108c75,'attributes':_0x583325});_0x138812['push'](_0x14b7be),this['_addSuggestionMarker'](_0x4d14d6,_0x3980cd,_0x108c75,_0x509f46);}return _0x138812;}['enableDefaultAttributesIntegration'](_0x3d61f1){this['enableCommand'](_0x3d61f1,(_0x28ecd7,..._0x3c0139)=>{this['_recordAttributeChanges'](()=>{_0x28ecd7(..._0x3c0139);});});}['registerBlockAttribute'](_0x493286){this['_blockAttributeKeys']['add'](_0x493286);}['registerInlineAttribute'](_0x2d2c8d){this['_inlineAttributeKeys']['add'](_0x2d2c8d);}['_getAttributeKey'](_0x5d2e1e){return'attribute'==_0x5d2e1e['type']?_0x5d2e1e['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x6bdd75,_0x14f27c){const _0xe1e705=_0x6bdd75['getFirstMarker']();this['_model']['change'](_0x11f6cd=>{_0x11f6cd['updateMarker'](_0xe1e705,{'range':_0x14f27c});});}['_addThreadToSuggestion'](_0x6814d5){const _0x58c987=_0x6814d5['id'],_0x1e1e8b=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x58c987)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1e1e8b,'threadId':_0x58c987,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x429f2a=this['_commentsRepository']['getCommentThread'](_0x58c987);_0x429f2a['unbind']('isRemovable'),_0x429f2a['isRemovable']=!0x1,_0x6814d5['commentThread']=_0x429f2a;}['_checkSuggestionCorrectness'](_0x1c408a,_0x4d5e99,_0x598715,_0x2b1aed){if(_0x1c408a['type']!=_0x4d5e99||_0x1c408a['subType']!=_0x598715||_0x1c408a['creator']['id']!=_0x2b1aed)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x194952('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x50be61,_0x2c010e){const _0x7e636c=_0x50be61['getFirstRange']();if(_0x2c010e['isEqual'](_0x7e636c))_0x50be61['removeMarkers']();else{if(_0x7e636c['containsRange'](_0x2c010e)){const _0x2f6338=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x2f6338));const _0x4ae8ca=_0xe5f9d9(),_0x17c981=_0x50be61['creator']['id'],_0x282654=_0x50be61['type']+':'+_0x50be61['subType'];this['_setSuggestionData']({'id':_0x4ae8ca,'type':_0x282654,'createdAt':new Date(),'authorId':_0x17c981,'data':_0x50be61['data'],'attributes':_0x50be61['attributes']});const _0x55fde3=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after'),_0x392ace=this['_model']['createRange'](_0x55fde3,_0x7e636c['end']);this['_addSuggestionMarker'](_0x282654,_0x4ae8ca,_0x17c981,_0x392ace);}else{if(_0x7e636c['containsPosition'](_0x2c010e['start'])){const _0x3b58ed=this['_model']['createPositionAt'](_0x2c010e['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x7e636c['start'],_0x3b58ed));}else{const _0x1580f8=this['_model']['createPositionAt'](_0x2c010e['end']['parent'],'after');this['_setSuggestionRange'](_0x50be61,this['_model']['createRange'](_0x1580f8,_0x7e636c['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x53e39f){for(const {suggestion:_0x4231ed,meta:_0x145f43}of this['_findSuggestions'](_0x53e39f,'insertion')){if(!_0x145f43['isOwn'])continue;const _0x46849e=_0x4231ed['getRanges']();for(const _0x4022e2 of _0x46849e)if(!_0x53e39f['getDifference'](_0x4022e2)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x596ea4){const _0x846cbe=this['editor']['plugins']['get']('Users')['getUser'](_0x596ea4);if(!_0x846cbe)throw new _0x194952('track-changes-user-not-found',this);return _0x846cbe;}['_getExternalAuthor'](_0x26692e){const _0x71b4eb=this['editor']['plugins']['get']('Users'),_0x499de3=_0x223067('external:'+_0x26692e),_0x259624=_0x71b4eb['getUser'](_0x499de3);return _0x259624||_0x71b4eb['addUser']({'id':_0x499de3,'name':_0x26692e});}['_createSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x52ea49,_0x1a7cb7){const _0x4b1b08=this['_getAuthorFromId'](_0x52ea49),_0x46a03a=this['_suggestionFactory']['buildSuggestion'](_0x440552,_0x8e250e,_0x564679,_0x4b1b08,_0x1a7cb7,_0x37c5a4=>{this['_updateSuggestionData'](_0x564679,{'attributes':_0x37c5a4});const _0xc2b177=this['getSuggestion'](_0x564679);this['_joinWithAdjacentSuggestions'](new Set([_0xc2b177])),this['_refreshSuggestionsChain'](new Set([_0xc2b177]));});return this['listenTo'](_0x46a03a,'accept',()=>{this['_updateSuggestionData'](_0x564679,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x46a03a,'discard',()=>{this['_updateSuggestionData'](_0x564679,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x564679,_0x46a03a),this['_suggestionState']['set'](_0x46a03a,'notReady'),_0x46a03a;}['_splitMarkerName'](_0xfc7757){const _0x41cd92=_0xfc7757['split'](':');return{'group':_0x41cd92[0x0],'type':_0x41cd92[0x1],'subType':_0x41cd92['length']>=0x5?_0x41cd92[0x2]:null,'id':_0x41cd92['length']<0x5?_0x41cd92[0x2]:_0x41cd92[0x3],'authorId':_0x41cd92['length']<0x5?_0x41cd92[0x3]:_0x41cd92[0x4],'markerCount':0x6==_0x41cd92['length']?_0x41cd92[0x5]:null};}['_breakSuggestionMarker'](_0xde87ea,_0x51351e,_0x1c1500){const _0x120fd5=_0xde87ea['getFirstRange'](),_0x7caa1e=_0x120fd5['start'],_0x207b5e=_0x120fd5['end'];this['_setSuggestionRange'](_0xde87ea,this['_model']['createRange'](_0x7caa1e,_0x51351e));const _0x2ee38f=_0xe5f9d9(),_0x5ee561=_0xde87ea['creator']['id'],_0x43fd4d=_0xde87ea['type']+(_0xde87ea['subType']?':'+_0xde87ea['subType']:'');this['_setSuggestionData']({'id':_0x2ee38f,'type':_0x43fd4d,'createdAt':new Date(),'authorId':_0x5ee561,'originalSuggestionId':_0xde87ea['id'],'attributes':_0xde87ea['attributes'],'data':_0xde87ea['data']});const _0x2de433=this['_getAttributeKey'](_0xde87ea);('formatBlock'==_0xde87ea['type']||_0x2de433&&this['_isBlockAttribute'](_0x2de433))&&(_0x1c1500=this['_model']['createPositionBefore'](_0x1c1500['parent'])),this['_addSuggestionMarker'](_0x43fd4d,_0x2ee38f,_0x5ee561,this['_model']['createRange'](_0x1c1500,_0x207b5e));}['_findSuggestions'](_0x2f6427,_0x4aaf86=null){const _0x519f5e=[],_0x1fd65c=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x2f6427)||(_0x2f6427=[_0x2f6427]);for(const _0x2b6cc6 of this['getSuggestions']()){if(!_0x2b6cc6['isInContent'])continue;if(_0x4aaf86&&_0x2b6cc6['type']!=_0x4aaf86)continue;let _0x22e164=!0x1;for(const _0x4d636f of _0x2b6cc6['getRanges']()){for(const _0x1a7303 of _0x2f6427){const _0x479277=_0x1a7303['start']['isEqual'](_0x4d636f['end'])||_0x1a7303['end']['isEqual'](_0x4d636f['start']);if(_0x479277||_0x1a7303['getIntersection'](_0x4d636f)){const _0x430956=_0x1a7303['containsRange'](_0x4d636f)&&Rt(this['_model']['schema'],_0x4d636f['start'],_0x1a7303),_0x37b713=_0x4d636f['containsRange'](_0x1a7303)&&Rt(this['_model']['schema'],_0x1a7303['start'],_0x4d636f);_0x519f5e['push']({'suggestion':_0x2b6cc6,'meta':{'isOwn':_0x1fd65c==_0x2b6cc6['author'],'isNextTo':_0x479277,'isInsideObject':_0x430956,'containsRangeInObject':_0x37b713}}),_0x22e164=!0x0;break;}}if(_0x22e164)break;}}return _0x519f5e;}['_addSuggestionMarker'](_0x112808,_0x58c849,_0x50c5a6,_0x52feea,_0x2a06e2){this['_model']['change'](_0x3c27fb=>{let _0x6e011e='suggestion:'+_0x112808+':'+_0x58c849+':'+_0x50c5a6;_0x2a06e2&&(_0x6e011e=_0x6e011e+':'+_0x2a06e2),_0x3c27fb['addMarker'](_0x6e011e,{'range':_0x52feea,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x2131d0){const _0x1b4d6e=_0x2131d0['previous'],_0xf099b5=_0x2131d0['next'];_0x2131d0['previous']=null,_0x2131d0['next']=null,null!=_0x1b4d6e&&_0x1b4d6e['next']==_0x2131d0&&(_0x1b4d6e['next']=_0xf099b5),null!=_0xf099b5&&_0xf099b5['previous']==_0x2131d0&&(_0xf099b5['previous']=_0x1b4d6e),'ready'==this['_suggestionState']['get'](_0x2131d0)&&(this['_suggestionState']['set'](_0x2131d0,'removed'),this['fire']('suggestionUnloaded',_0x2131d0,_0x1b4d6e,_0xf099b5));}['_setSuggestionData'](_0x3fd4a6){const _0x2e931e=_0x3fd4a6['id'],_0x5a63f8=this['addSuggestionData'](_0x3fd4a6);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x307ac9=this['editor']['plugins']['get']('PendingActions'),_0x4403b1=_0x5a63f8['hasComments'],_0x418a95=_0x5a63f8['subType']?_0x5a63f8['type']+':'+_0x5a63f8['subType']:_0x5a63f8['type'],_0x38378d=this['editor']['locale'],_0x2cf9f7=_0x307ac9['add'](o(_0x38378d,'PENDING_ACTION_SUGGESTION')),_0x92e62={'id':_0x2e931e,'type':_0x418a95,'hasComments':_0x4403b1,'data':_0x3fd4a6['data']||null,'originalSuggestionId':_0x3fd4a6['originalSuggestionId']||null,'attributes':_0x5a63f8['attributes']};this['_adapter']['addSuggestion'](_0x92e62)['then'](_0x1405a1=>{_0x5a63f8['_saved']=!0x0,_0x307ac9['remove'](_0x2cf9f7),_0x1405a1&&_0x1405a1['createdAt']&&(this['_suggestions']['get'](_0x2e931e)['createdAt']=_0x1405a1['createdAt']);})['catch'](_0x369ab9=>{throw _0x442e8e('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5a63f8['discard']();}),_0x5a63f8['stopListening'](),this['_suggestions']['delete'](_0x5a63f8['id']),this['_suggestionState']['delete'](_0x5a63f8),_0x369ab9;});}return _0x5a63f8;}['_isBlockAttribute'](_0x34a0b1){return this['_blockAttributeKeys']['has'](_0x34a0b1);}['_updateSuggestionData'](_0x325bc4,_0x2cedf0){const _0x102af3=this['editor']['plugins']['get']('PendingActions'),_0x346912=this['getSuggestion'](_0x325bc4);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x346912['_saved']){const _0x43cc6c=_0x102af3['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x325bc4,_0x2cedf0)['then'](()=>{_0x102af3['remove'](_0x43cc6c);});}else _0x346912['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x325bc4,_0x2cedf0);});}}['_getSuggestionData'](_0x2d78b5){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x194952('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x2d78b5);}['_handleNewSuggestionMarker'](_0xe0c99d){const {id:_0x3e9e5d,type:_0x4a5c36,subType:_0x55589c,authorId:_0x3f9d2e}=this['_splitMarkerName'](_0xe0c99d),_0x32a21f=this['_suggestions']['get'](_0x3e9e5d)||this['_createSuggestion'](_0x4a5c36,_0x55589c,_0x3e9e5d,_0x3f9d2e,{});switch(this['_checkSuggestionCorrectness'](_0x32a21f,_0x4a5c36,_0x55589c,_0x3f9d2e),this['_suggestionState']['get'](_0x32a21f)){case'notReady':this['_getSuggestionData'](_0x3e9e5d)['then'](_0x2d3d1c=>{let _0x10ed04=Promise['resolve']();_0x2d3d1c['hasComments']&&(_0x10ed04=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x3e9e5d})),_0x10ed04['then'](()=>{this['addSuggestionData'](_0x2d3d1c)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x32a21f,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x3e9e5d,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x32a21f,'ready'),this['fire']('suggestionLoaded',_0x32a21f);break;case'ready':this['fire']('suggestionChanged',_0x32a21f);}return _0x32a21f['addMarkerName'](_0xe0c99d),_0x32a21f;}['_refreshSuggestionsChain'](_0x35d926){const _0x3190e0=Array['from'](_0x35d926),_0x56587e=_0x3190e0['filter'](_0x2a5a67=>'attribute'==_0x2a5a67['type']);this['_refreshAttributeSuggestionsChain'](_0x56587e);const _0x25ac76=_0x3190e0['filter'](_0x1d93fc=>!_0x1d93fc['isMultiRange']&&'attribute'!=_0x1d93fc['type']),_0x13634c=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x105b56=>!_0x105b56['isMultiRange']&&'attribute'!=_0x105b56['type']),_0x1ea6d4=_0x13634c['filter'](_0xa8eb62=>!_0x35d926['has'](_0xa8eb62)),_0x5f0827=new Map(_0x13634c['map'](_0x4f7556=>[_0x4f7556,this['_suggestionFactory']['getSuggestionCallback'](_0x4f7556['type'],_0x4f7556['subType'],'chain')])),_0x270d46=new Map(_0x13634c['map'](_0x556ba6=>[_0x556ba6,_0x556ba6['getFirstRange']()])),_0x214ef2=new Set(),_0x30bf95=new Set();for(let _0x362d33=0x0;_0x362d33<_0x25ac76['length'];_0x362d33++)_0x565910(_0x25ac76[_0x362d33],_0x25ac76,_0x362d33+0x1);for(let _0xf4de71=0x0;_0xf4de71<_0x25ac76['length'];_0xf4de71++)_0x565910(_0x25ac76[_0xf4de71],_0x1ea6d4,0x0);const _0x50f0d8=new Set();for(let _0x19e0f5=0x0;_0x19e0f5<_0x25ac76['length'];_0x19e0f5++){const _0x22d350=_0x25ac76[_0x19e0f5];!_0x30bf95['has'](_0x22d350)&&_0x22d350['previous']&&(_0x50f0d8['add'](_0x22d350['previous']),_0x22d350['previous']['next']===_0x22d350&&(_0x22d350['previous']['next']=null),_0x22d350['previous']=null),!_0x214ef2['has'](_0x22d350)&&_0x22d350['next']&&(_0x50f0d8['add'](_0x22d350['next']),_0x22d350['next']['previous']===_0x22d350&&(_0x22d350['next']['previous']=null),_0x22d350['next']=null);}function _0x565910(_0x4140c4,_0xe77cc8,_0x24d438){for(let _0x3dc4f0=_0x24d438;_0x3dc4f0<_0xe77cc8['length'];_0x3dc4f0++){const _0x51f417=_0x11e992(_0x4140c4,_0xe77cc8[_0x3dc4f0]);_0x51f417&&(_0x51f417[0x0]['next']=_0x51f417[0x1],_0x51f417[0x1]['previous']=_0x51f417[0x0],_0x214ef2['add'](_0x51f417[0x0]),_0x30bf95['add'](_0x51f417[0x1]));}}function _0x11e992(_0x437346,_0x440b30){if(_0x437346['author']['id']!==_0x440b30['author']['id'])return null;const _0x592b8c=_0x5f0827['get'](_0x437346)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30));if(!_0x592b8c)return null;return _0x5f0827['get'](_0x440b30)(_0x437346,_0x440b30,_0x270d46['get'](_0x437346),_0x270d46['get'](_0x440b30))?_0x592b8c[0x1]['commentThread']&&_0x592b8c[0x1]['commentThread']['length']?null:_0x592b8c:null;}_0x50f0d8['size']&&this['_refreshSuggestionsChain'](_0x50f0d8);}['_refreshAttributeSuggestionsChain'](_0x111d87){if(0x0==_0x111d87['length'])return;const _0x457f73=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x391007=>'attribute'==_0x391007['type']&&_0x391007['_isDataLoaded']),_0x25a29b=[],_0x27a5cf=new Map();for(const _0x4bebd0 of _0x457f73){const _0x4ebc4f=_0x223067(_0x4bebd0['attributes']);_0x27a5cf['has'](_0x4ebc4f)||(_0x27a5cf['set'](_0x4ebc4f,_0x25a29b['length']),_0x25a29b['push']([]));const _0x41aa6b=_0x27a5cf['get'](_0x4ebc4f);_0x25a29b[_0x41aa6b]['push'](_0x4bebd0);}!(function(){_0x25a29b['sort']((_0x369893,_0x384502)=>{const _0x23728c=_0x369893[0x0]['createdAt'],_0x59a217=_0x384502[0x0]['createdAt'];return _0x23728c==_0x59a217?_0x369893[0x0]['attributes']['groupId']<_0x384502[0x0]['attributes']['groupId']?-0x1:0x1:_0x23728c<_0x59a217?-0x1:0x1;});for(const _0x12e9c9 of _0x25a29b)_0x12e9c9['sort']((_0x1c434f,_0x4bfab0)=>_0x1c434f['id']<_0x4bfab0['id']?-0x1:0x1);}());for(let _0x20c26f=0x0;_0x20c26f<_0x25a29b['length'];_0x20c26f++){if(0x0==_0x25a29b[_0x20c26f]['length'])continue;const _0x37c917=[];for(let _0x3eab4e=_0x20c26f+0x1;_0x3eab4e<_0x25a29b['length'];_0x3eab4e++)0x0!=_0x25a29b[_0x3eab4e]['length']&&_0x5c6e9a(_0x25a29b[_0x20c26f],_0x25a29b[_0x3eab4e])&&_0x37c917['push'](_0x3eab4e);for(const _0x1e7f6c of _0x37c917)_0x25a29b[_0x20c26f]=_0x25a29b[_0x20c26f]['concat'](_0x25a29b[_0x1e7f6c]),_0x25a29b[_0x1e7f6c]=[];}for(const _0x3ce957 of _0x25a29b)for(let _0x44c121=0x0;_0x44c121<_0x3ce957['length'];_0x44c121++)_0x3ce957[_0x44c121]['next']=_0x3ce957[_0x44c121+0x1]||null;for(const _0x34981f of _0x25a29b)for(let _0x2960ce=0x0;_0x2960ce<_0x34981f['length'];_0x2960ce++)_0x34981f[_0x2960ce]['previous']=_0x34981f[_0x2960ce-0x1]||null;function _0x5c6e9a(_0x2248a3,_0x1769b6){if(_0x2248a3[0x0]['attributes']['groupId']!==_0x1769b6[0x0]['attributes']['groupId']&&_0x2248a3[0x0]['author']!==_0x1769b6[0x0]['author'])return!0x1;if(!function(_0x554e53,_0x5a1cde){if(!_0x554e53['hasComments']&&!_0x5a1cde['hasComments'])return!0x0;if(_0x554e53['hasComments']&&_0x5a1cde['hasComments'])return!0x1;if(_0x554e53['hasComments']&&_0x5a1cde['createdAt']<_0x554e53['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x5a1cde['hasComments']&&_0x554e53['createdAt']<_0x5a1cde['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x2248a3[0x0],_0x1769b6[0x0]))return!0x1;const _0x68d692=Bt(_0x2248a3[0x0]['attributes'],'groupId'),_0x4c5703=Bt(_0x1769b6[0x0]['attributes'],'groupId');if(!_0x58c209(_0x68d692,_0x4c5703))return!0x1;return!!_0x2248a3['every'](_0x237caf=>_0x1769b6['some'](_0x42d105=>_0x237caf['getFirstRange']()['isEqual'](_0x42d105['getFirstRange']())))&&_0x1769b6['every'](_0x22abfd=>_0x2248a3['some'](_0x48719a=>_0x22abfd['getFirstRange']()['isEqual'](_0x48719a['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x5db78d){const _0x460b41=Array['from'](_0x5db78d),_0x58656b=this['getSuggestions']({'skipNotAttached':!0x0}),_0x321c11=_0x58656b['filter'](_0x2ef0f5=>!_0x5db78d['has'](_0x2ef0f5)),_0x4f3d8c=new Map(_0x460b41['map'](_0x42ca18=>[_0x42ca18,this['_suggestionFactory']['getSuggestionCallback'](_0x42ca18['type'],_0x42ca18['subType'],'join')])),_0x2b276e=new Map(_0x58656b['map'](_0x58ad11=>[_0x58ad11,_0x58ad11['getRanges']()]));for(let _0xa6f2a5=0x0;_0xa6f2a5<_0x460b41['length'];_0xa6f2a5++){if(_0x54c07a(this,_0x460b41[_0xa6f2a5],_0x460b41,_0xa6f2a5+0x1))return!0x0;}for(let _0x671687=0x0;_0x671687<_0x460b41['length'];_0x671687++){if(_0x54c07a(this,_0x460b41[_0x671687],_0x321c11,0x0))return!0x0;}return!0x1;function _0x54c07a(_0x4cac3e,_0x26201b,_0x22ac56,_0x2aa074){for(let _0xe938aa=_0x2aa074;_0xe938aa<_0x22ac56['length'];_0xe938aa++){const _0x18cd38=_0x22ac56[_0xe938aa];if(_0x18cd38['type']!==_0x26201b['type']||_0x18cd38['author']['id']!==_0x26201b['author']['id']||_0x18cd38['subType']!==_0x26201b['subType'])continue;if(!Pt(_0x26201b,_0x18cd38,['groupId']))continue;if('attribute'==_0x26201b['type']&&_0x26201b['data']['oldValue']!=_0x18cd38['data']['oldValue'])continue;if('attribute'==_0x26201b['type']&&_0x4cac3e['_isBlockAttribute'](_0x26201b['data']['key']))continue;if('formatBlock'==_0x26201b['type']){const _0x1f3004=_0x4cac3e['editor']['model'],_0x95886c=_0x26201b['getContainedElement']();if(_0x95886c&&(_0x1f3004['schema']['isObject'](_0x95886c)||_0x1f3004['schema']['isLimit'](_0x95886c)))continue;}const _0x8dc88b=_0x4f3d8c['get'](_0x26201b),_0x2ad53b=_0x2b276e['get'](_0x26201b),_0xd690c7=_0x2b276e['get'](_0x18cd38),_0x27c5f6=_0x26201b['commentThread']&&_0x26201b['commentThread']['length'],_0x368e7c=_0x18cd38['commentThread']&&_0x18cd38['commentThread']['length'];if(!_0x27c5f6&&_0x8dc88b(_0xd690c7,_0x2ad53b))return _0x4cac3e['_joinSuggestions'](_0x18cd38,_0x26201b),_0x2b276e['delete'](_0x26201b),!0x0;if(!_0x368e7c&&_0x8dc88b(_0x2ad53b,_0xd690c7))return _0x4cac3e['_joinSuggestions'](_0x26201b,_0x18cd38),_0x2b276e['delete'](_0x18cd38),!0x0;}return!0x1;}}['_joinSuggestions'](_0x5c757d,_0x1ebdc3){if(_0x5c757d['isMultiRange']){for(const _0xd6c197 of _0x1ebdc3['getRanges']())_0x5c757d['addRange'](_0xd6c197);}else{const _0x2abd98=_0x1ebdc3['getFirstRange']()['end'];this['_setSuggestionRange'](_0x5c757d,this['_model']['createRange'](_0x5c757d['getFirstRange']()['start'],_0x2abd98));}_0x1ebdc3['removeMarkers']();}['_getMarkerAnnouncementText'](_0x36a2e4,_0x735404){const _0x28c9fd=_0x36a2e4['startsWith']('format')||_0x36a2e4['startsWith']('attribute')?'FORMATTING':_0x36a2e4['toUpperCase']();return o(this['editor']['locale'],_0x735404+'_'+_0x28c9fd+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x5440ca=this['editor'];if(!_0x5440ca['ui'])return;const {ariaLiveAnnouncer:_0x2bbd69}=_0x5440ca['ui'];_0x16d88b(this['_model'],({left:_0x312df4,entered:_0x35ddf8})=>{for(const _0x22d225 of _0x312df4){const {group:_0x4bcd0e,type:_0x2d8a91}=this['_splitMarkerName'](_0x22d225['name']);if('suggestion'===_0x4bcd0e){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x2d8a91,'LEAVE'));break;}}for(const _0xff9a17 of _0x35ddf8){const {group:_0x243f36,type:_0x1a9d10}=this['_splitMarkerName'](_0xff9a17['name']);if('suggestion'===_0x243f36){_0x2bbd69['announce'](this['_getMarkerAnnouncementText'](_0x1a9d10,'ENTER'));break;}}});}['_processAttributeChanges'](_0x4805e4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x4542f8=this['editor'],_0x25f67e=_0x4542f8['model']['document']['differ']['getChanges']();if(0x0==_0x25f67e['length'])return!0x1;const _0x42298d=[],_0xcb24d2=_0x25f67e['filter'](_0x59f2ae=>'attribute'==_0x59f2ae['type']),_0x3dca0d=_0x25f67e['filter'](_0xadc67b=>'insert'==_0xadc67b['type']&&'$text'!=_0xadc67b['name']),_0x59f95=_0x25f67e['filter'](_0x56700a=>'remove'==_0x56700a['type']&&'$text'!=_0x56700a['name']);for(const _0x4e4362 of _0xcb24d2)_0x42298d['push']({'key':_0x4e4362['attributeKey'],'newValue':_0x4e4362['attributeNewValue'],'oldValue':_0x4e4362['attributeOldValue'],'range':Ot(_0x4e4362['range'],_0x4542f8['model'])});for(const _0x42c15d of _0x3dca0d){const _0x21254d=_0x59f95['find'](_0x514552=>_0x514552['position']['isEqual'](_0x42c15d['position']));_0x21254d&&_0x42298d['push']({'key':m,'newValue':_0x42c15d['name'],'oldValue':_0x21254d['name'],'range':_0x4542f8['model']['createRangeOn'](_0x42c15d['position']['nodeAfter'])});}return 0x0!=_0x42298d['length']&&this['_reduceExistingSuggestions'](_0x4805e4,_0x42298d);}['_processAttributeSuggestions'](_0x312925){let _0x3593f2=!0x1;const _0x39e1fd=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x383b83=>_0x383b83['data']['newRange']&&_0x383b83['name']['startsWith']('suggestion:attribute:'));for(const _0x2f850c of _0x39e1fd){const {subType:_0x39e58c,id:_0x541b4e}=this['_splitMarkerName'](_0x2f850c['name']),_0x569847=_0x39e58c['split']('|')[0x0];for(const _0x3023c4 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x3023c4['id']!=_0x541b4e&&'attribute'==_0x3023c4['type']&&_0x3023c4['data']&&_0x3023c4['data']['key']==_0x569847&&_0x3023c4['getFirstRange']()['isIntersecting'](_0x2f850c['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x3023c4,_0x2f850c['data']['newRange'],_0x312925),_0x3593f2=!0x0);}return _0x3593f2;}['_recordAttributeChanges'](_0x247868){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x247868();}['_isRegisteredAttribute'](_0x388467){const _0x2e29c2=this['_isBlockAttribute'](_0x388467),_0x3bbcfc=this['_inlineAttributeKeys']['has'](_0x388467);return _0x2e29c2||_0x3bbcfc;}['_reduceExistingSuggestions'](_0x55bcde,_0x4d77d1){if(0x0==_0x4d77d1['length'])return!0x1;let _0xc57325=!0x1;for(const _0x3414f6 of _0x4d77d1){const _0x45fcc7=this['_findSuggestions'](_0x3414f6['range'],'attribute')['filter'](_0x36f4ed=>!_0x36f4ed['meta']['isNextTo'])['map'](_0x298874=>_0x298874['suggestion']),_0x4dea78=_0x223067({'newValue':_0x3414f6['newValue']});_0x45fcc7['filter'](_0x168375=>{const [_0x2a9c57,_0x10eba1]=_0x168375['subType']['split']('|');return _0x2a9c57==_0x3414f6['key']&&_0x10eba1!=_0x4dea78;})['forEach'](_0x5e343e=>{this['_reduceSuggestionAttributeRange'](_0x5e343e,_0x3414f6['range'],_0x55bcde),_0xc57325=!0x0;});}return _0xc57325;}['_reduceSuggestionAttributeRange'](_0x2357d1,_0x2b6b9a,_0x46584b){const _0x6c676=_0x2357d1['getFirstRange']()['getDifference'](_0x2b6b9a);0x0!==_0x6c676['length']?0x1!==_0x6c676['length']?this['_breakSuggestionMarker'](_0x2357d1,_0x2b6b9a['start'],_0x2b6b9a['end']):this['_setSuggestionRange'](_0x2357d1,_0x6c676[0x0]):_0x46584b['removeMarker'](_0x2357d1['getFirstMarker']());}}class xt{['_editor'];['_model'];['_customCallbacks'];['_defaultCallbacks'];constructor(_0x546e96){this['_editor']=_0x546e96,this['_model']=_0x546e96['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}['buildSuggestion'](_0x586966,_0x22f97d,_0x3871a8,_0x4ac961,_0x554b58,_0x3d82b1){return new u(this['_model'],{'type':_0x586966,'subType':_0x22f97d,'id':_0x3871a8,'author':_0x4ac961,'creator':_0x4ac961,'attributes':_0x554b58,'onAttributesChange':_0x3d82b1,'onAccept':(..._0x505c43)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'accept')(..._0x505c43),'onDiscard':(..._0x3b9235)=>this['getSuggestionCallback'](_0x586966,_0x22f97d,'discard')(..._0x3b9235)});}['registerCustomCallback'](_0x549fd3,_0x52018c,_0x48df65,_0x72930b){const _0x18abb3=_0x549fd3+':'+_0x52018c+':'+_0x48df65;this['_customCallbacks']['set'](_0x18abb3,_0x72930b);}['getSuggestionCallback'](_0x4b7388,_0x49552e,_0x37bd50){const _0x47a704=_0x4b7388+':'+_0x49552e+':'+_0x37bd50;return this['_customCallbacks']['get'](_0x47a704)||this['_defaultCallbacks']['get'](_0x4b7388+':'+_0x37bd50);}['_registerDefaultCallbacks'](){const _0x28815e=()=>!0x1,_0x1bbd30=_0x75bf47=>{_0x75bf47['sort']((_0x3800f1,_0x4dac83)=>_0x3800f1['start']['isBefore'](_0x4dac83['start'])?0x1:-0x1),this['_model']['change'](_0x394809=>{for(const _0x3f9383 of _0x75bf47){let _0x1dda92;_0x1dda92=_0x3f9383['end']['isAtEnd']&&_0x3f9383['end']['parent']==_0x3f9383['start']['nodeAfter']?_0x394809['createSelection'](_0x3f9383['start']['nodeAfter'],'on'):_0x394809['createSelection'](_0x3f9383),this['_model']['deleteContent'](_0x1dda92,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x647d07=(_0xa7d013,_0x1faec6)=>{_0x1faec6&&this['_model']['change'](_0x219892=>{const {commandName:_0x9c9349,commandParams:_0x3a5e11=[]}=_0x1faec6,_0x195cfa=_0xa7d013['map'](_0x2a4a97=>(Tt(_0x2a4a97)&&(_0x2a4a97=this['_model']['createRange'](_0x2a4a97['end'])),_0x2a4a97))['filter'](_0x1ef22a=>'$graveyard'!==_0x1ef22a['root']['rootName']);if(_0x195cfa['length']<0x1)return;const _0x24422d=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x5bceac=>_0xef9d24['fromRange'](_0x5bceac));_0x219892['setSelection'](_0x195cfa);for(const _0xe2c5ff of this['_editor']['commands']['commands']())_0xe2c5ff['refresh']();_0x3a5e11['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x9c9349,..._0x3a5e11);const _0x2bd565=_0x24422d['filter'](_0x39a611=>'$graveyard'!=_0x39a611['root']['rootName']);_0x2bd565['length']>0x0&&_0x219892['setSelection'](_0x2bd565);for(const _0x43c826 of _0x24422d)_0x43c826['detach']();});},_0x346748=(_0x426806,_0x5a151d)=>0x1==_0x426806['length']&&0x1==_0x5a151d['length']&&_0x426806[0x0]['end']['isEqual'](_0x5a151d[0x0]['start']),_0x246bfc=(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a)=>Ft(_0x50e05a,_0x410476,_0x36e0fd,_0x54b76a,this['_model'])?[_0x50e05a,_0x410476]:Ft(_0x410476,_0x50e05a,_0x54b76a,_0x36e0fd,this['_model'])?[_0x410476,_0x50e05a]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x28815e),this['_defaultCallbacks']['set']('insertion:discard',_0x1bbd30),this['_defaultCallbacks']['set']('insertion:join',_0x346748),this['_defaultCallbacks']['set']('insertion:chain',_0x246bfc),this['_defaultCallbacks']['set']('deletion:accept',_0x1bbd30),this['_defaultCallbacks']['set']('deletion:discard',_0x28815e),this['_defaultCallbacks']['set']('deletion:join',_0x346748),this['_defaultCallbacks']['set']('deletion:chain',_0x246bfc),this['_defaultCallbacks']['set']('formatInline:accept',_0x647d07),this['_defaultCallbacks']['set']('formatInline:discard',_0x28815e),this['_defaultCallbacks']['set']('formatInline:join',_0x346748),this['_defaultCallbacks']['set']('formatInline:chain',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:accept',_0x647d07),this['_defaultCallbacks']['set']('formatBlock:discard',_0x28815e),this['_defaultCallbacks']['set']('formatBlock:join',_0x346748),this['_defaultCallbacks']['set']('formatBlock:chain',_0x28815e),this['_defaultCallbacks']['set']('attribute:accept',_0x28815e),this['_defaultCallbacks']['set']('attribute:discard',(_0x229b43,_0x56dcf2)=>{if(!_0x56dcf2)return;const _0x4a8b7d=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x4ff23d=>{if(_0x56dcf2['key']==m)for(const _0xaa22ea of _0x229b43){const _0x1908e8=_0xaa22ea['start']['nodeAfter'],_0x1a6446=_0x56dcf2['oldValue'];_0x4ff23d['rename'](_0x1908e8,_0x1a6446);}else{if(_0x4a8b7d['_isBlockAttribute'](_0x56dcf2['key'])){for(const _0x9cf2bb of _0x229b43)void 0x0!==_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x9cf2bb['start']['nodeAfter']):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x9cf2bb['start']['nodeAfter']);}else{for(const _0x110a22 of _0x229b43)_0x56dcf2['oldValue']?_0x4ff23d['setAttribute'](_0x56dcf2['key'],_0x56dcf2['oldValue'],_0x110a22):_0x4ff23d['removeAttribute'](_0x56dcf2['key'],_0x110a22);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x346748);}}function Rt(_0x3ec657,_0x416c62,_0x3b2a76){for(const _0x429b25 of _0x416c62['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x429b25['root']==_0x429b25)return!0x1;if(!_0x3b2a76['containsItem'](_0x429b25))return!0x1;if(_0x3ec657['isObject'](_0x429b25)||_0x3ec657['isLimit'](_0x429b25))return!0x0;}return!0x1;}function Tt(_0x2811f2){return _0x2811f2['end']['parent']==_0x2811f2['start']['nodeAfter']&&_0x2811f2['end']['isAtStart'];}function Et(_0x4827df,_0x2bb109,_0x2d0431,_0xffb369){const _0x57666a=_0x30d31c=>!_0x30d31c['item']['is']('$textProxy')&&!_0xffb369['isObject'](_0x30d31c['item']),_0x13342c=_0x4827df['start']['getLastMatchingPosition'](_0x57666a),_0x47845e=_0x4827df['end']['getLastMatchingPosition'](_0x57666a,{'direction':'backward'});return(!_0x4827df['start']['isEqual'](_0x13342c)||!_0x4827df['end']['isEqual'](_0x47845e))&&(_0x13342c['isBefore'](_0x47845e)?_0x2d0431['updateMarker'](_0x2bb109,{'range':_0x2d0431['createRange'](_0x13342c,_0x47845e)}):_0x2d0431['removeMarker'](_0x2bb109),!0x0);}function Vt(_0x38ce73){return _0x223067(_0x38ce73);}function Ut(_0x1b1492){const _0x3167f8=_0x1b1492['start']['nodeAfter'];return _0x3167f8&&_0x3167f8['is']('element');}function Ot(_0x48c3f9,_0x1963dd){return null==_0x48c3f9['end']['nodeBefore']&&_0x48c3f9['end']['parent']==_0x48c3f9['start']['nodeAfter']?Gt(_0x48c3f9['start']['nodeAfter'],_0x1963dd):_0x48c3f9;}function Gt(_0xf3405d,_0x2bcf28){const _0xee4052=_0x2bcf28['schema']['isObject'](_0xf3405d)||_0x2bcf28['schema']['isSelectable'](_0xf3405d);return _0x2bcf28['createRange'](_0x2bcf28['createPositionAt'](_0xf3405d,'before'),_0xee4052?_0x2bcf28['createPositionAfter'](_0xf3405d):_0x2bcf28['createPositionAt'](_0xf3405d,'end'));}function Ft(_0x11f9fe,_0x548b67,_0x534cc4,_0x3621b0,_0x30522d){if(!Pt(_0x11f9fe,_0x548b67))return!0x1;if(_0x534cc4['end']['isEqual'](_0x3621b0['start']))return!0x0;if(_0x11f9fe['type']!=_0x548b67['type'])return!0x1;if(!_0x534cc4['end']['isTouching'](_0x3621b0['start']))return!0x1;const _0x3b21c0=_0x30522d['createRange'](_0x534cc4['end'],_0x3621b0['start'])['getWalker']();for(const _0x51acdb of _0x3b21c0)if(['elementStart','elementEnd']['includes'](_0x51acdb['type'])&&_0x30522d['schema']['isLimit'](_0x51acdb['item']))return!0x1;return!0x0;}function Pt(_0x57b9e1,_0x5dc0e7,_0x356fef=[]){return!(!_0x57b9e1['_isDataLoaded']||!_0x5dc0e7['_isDataLoaded'])&&_0x58c209(Bt(_0x57b9e1['attributes'],_0x356fef),Bt(_0x5dc0e7['attributes'],_0x356fef));}function Lt(_0xcdd22b,_0xb47310){const _0x5b598f=Ht(_0xcdd22b['attributes']),_0x469f0b=Ht(_0xb47310);if(!_0xcdd22b['_isDataLoaded'])return!0x1;for(const _0x289774 of Object['keys'](_0x469f0b))if(!_0x58c209(_0x5b598f[_0x289774],_0x469f0b[_0x289774]))return!0x1;return!0x0;}function Ht(_0xca44d9){const _0x1e7f71=Object['assign']({},_0xca44d9);return delete _0x1e7f71['skipNestingCheck'],delete _0x1e7f71['tablePasteChainId'],_0x1e7f71;}class oe extends/* #__PURE__ -- @preserve */
25
+ _0x44d863(){['model'];['view'];['commentThreadController'];['_editor'];['_acceptCommand'];['_discardCommand'];['_pendingAction'];constructor(_0x39f1ac,_0x2e0c92,_0x123ec7,_0xc3a638){super(),this['model']=_0x2e0c92,this['view']=_0x123ec7,this['commentThreadController']=_0xc3a638,this['_editor']=_0x39f1ac,this['_acceptCommand']=_0x39f1ac['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x39f1ac['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x138cae,_0x5d8015)=>_0x138cae||_0x5d8015),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x5ea709=>_0x5ea709&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cc1b5=>_0x1cc1b5&&this['_editor']['model']['canEditAt'](_0x2e0c92['getRanges']())),this['_pendingAction']=null,_0x123ec7['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x123ec7,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x123ec7,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x123ec7,'change:isDirty',()=>{_0x123ec7['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 _0x8bd894=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x8bd894);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}}class es extends _0x36730d{['commentsListView'];['commentThreadInputView'];['_model'];['_localUser'];['_config'];constructor(_0x3f5d16,_0x3551f7,_0x4f1e64,_0x4d0a6c){super(_0x3f5d16),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x3551f7['authoredAt']),this['bind']('authoredAt')['to'](_0x3551f7),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x3551f7,this['_localUser']=_0x4f1e64,this['_config']=_0x4d0a6c,_0x4d0a6c['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x2c94cf}=this['_config'];this['commentsListView']=new _0x2c94cf(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',_0x19b06c=>_0x19b06c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x5ec5b0,_0x479e68)=>_0x5ec5b0||!!_0x479e68);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x35477a}=this['_config'],_0x7b6cbe=new _0x35477a(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x548f75=_0x7b6cbe['commentInputView'];return _0x7b6cbe['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x548f75,'value',(_0x2f6c84,_0x2cd6f0,_0xd2a1eb)=>!!_0xd2a1eb||_0x2f6c84&&!_0x2cd6f0),_0x548f75['on']('submit',(_0x3bfb96,_0x207137)=>{this['fire']('addComment',_0x207137),_0x548f75['editor']['setData']('');}),_0x548f75['on']('cancel',()=>this['focus']()),_0x548f75['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x7b6cbe;}}class ne extends es{['userView'];['acceptButton'];['discardButton'];['_descriptionElement'];constructor(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8){super(_0x4b03e0,_0x5a8b52,_0x129a83,_0x33f6b8),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x24a4ef=>_0x24a4ef&&_0x24a4ef[0x0]?_0x24a4ef[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x111f47,_0x26890b)=>{let _0x273dc8='';for(const _0x30ce3f of _0x111f47)_0x273dc8+='<p>'+ds(_0x30ce3f['content'],_0x30ce3f['color'])+'</p>';return _0x26890b?_0x273dc8:_0xd4604a(_0x273dc8,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x4b03e0,'Accept\x20suggestion'),_0x2c0fde['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x4b03e0,'Discard\x20suggestion'),_0x2c0fde['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x2db2ee(_0x4b03e0,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}['getTemplate'](){const _0x5e63b=this['bindTemplate'],_0x169e69=[{'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':_0x5e63b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x5e63b['to']('authoredAt',_0x4b7bb8=>this['_config']['formatDateTime'](_0x4b7bb8))}]}]},{'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']&&_0x169e69['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xc5c6c4={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x5e63b['if']('isActive','ck-suggestion-wrapper--active'),_0x5e63b['to']('type',_0x1e952f=>'ck-suggestion-'+_0x1e952f),this['_config']['disableComments']&&'ck-suggestion--disabled-comments'],'data-suggestion-id':this['_model']['id'],'data-thread-id':this['_model']['commentThread']['id'],'data-author-id':this['_model']['author']['id'],'tabindex':-0x1},'children':[{'tag':'div','attributes':{'class':['ck-suggestion','ck-annotation']},'children':[this['userView'],{'tag':'div','attributes':{'class':['ck-suggestion__main','ck-annotation__main']},'children':_0x169e69}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xc5c6c4['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)),_0xc5c6c4;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x5290ec,_0x3be22c,_0x19c337)=>{this['_descriptionElement']['innerHTML']=_0x19c337;});}['_createButton'](_0x4edea9,_0x54c117,_0x5d40c5,_0x470017,_0x2ea04f){const _0x2b704a=new _0x4f6b58(this['locale']);return _0x2b704a['set']({'label':_0x4edea9,'icon':_0x54c117,'tooltip':!0x0,'tooltipPosition':_0x2ea04f}),_0x2b704a['extendTemplate']({'attributes':{'class':_0x5d40c5}}),_0x2b704a['on']('execute',()=>{this['fire'](_0x470017,this['_model']['id']);}),_0x2b704a;}['getExternalSuggestionNote'](){return'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_SUGGESTION'):o(this['locale'],'EXTERNAL_SUGGESTION');}['getUserViewNotificationText'](){return this['_model']['isExternal']?'importWord'===this['_model']['attributes']['@external']['source']?o(this['locale'],'EXTERNAL_IMPORT_WORD_AVATAR',this['_model']['creator']['name']):o(this['locale'],'EXTERNAL_AVATAR',this['_model']['creator']['name']):null;}}function ds(_0x3d1fee,_0x2ce0ca){let _0x4b7145='';return _0x4b7145+=_0x3d1fee['split']('*')['map']((_0x52c8a8,_0xdcfa65)=>_0xdcfa65%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x52c8a8)+'</span>':us(_0x52c8a8))['join'](''),_0x2ce0ca&&(_0x4b7145+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x2ce0ca['value']+'\x22\x20title=\x22'+_0x2ce0ca['title']+'\x22></span>'),_0x4b7145;}function us(_0xb082ab){const _0x162e2e=document['createElement']('span');return _0x162e2e['innerText']=_0xb082ab,_0x162e2e['innerHTML'];}var ie='<!--\x0a\x0a\x20What\x20you\x27re\x20currently\x20looking\x20at\x20is\x20the\x20source\x20code\x20of\x20a\x20legally\x20protected,\x20proprietary\x20software.\x0a\x20CKEditor\x205\x20Collaboration\x20is\x20licensed\x20under\x20a\x20commercial\x20license\x20and\x20protected\x20by\x20copyright\x20law.\x20Where\x20not\x20otherwise\x20indicated,\x0a\x20all\x20CKEditor\x205\x20Collaboration\x20content\x20is\x20authored\x20by\x20CKSource\x20engineers\x20and\x20consists\x20of\x20CKSource-owned\x20intellectual\x20property.\x0a\x0a\x20Copyright\x20(c)\x202003-2024,\x20CKSource\x20Holding\x20sp.\x20z\x20o.o.\x20All\x20rights\x20reserved.\x0a\x0a!-->\x0a\x0a<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20width=\x2220\x22\x20height=\x2220\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><g\x20fill=\x22#000\x22\x20fill-rule=\x22nonzero\x22><path\x20d=\x22M1\x203.28C1\x202.574\x201.574\x202\x202.272\x202h10.23c.703\x200\x201.272.573\x201.272\x201.28v12.768c0\x20.708-.574\x201.281-1.271\x201.281H2.272A1.276\x201.276\x200\x200\x201\x201\x2016.049V3.28zm11.503\x2012.954c-.008\x200-.006-12.77-.006-12.77\x200-.003-10.225-.004-10.225-.004.007\x200\x20.005\x2012.77.005\x2012.77\x200\x20.003\x2010.226.004\x2010.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351\x200\x20.636.284.636.64a.641.641\x200\x200\x201-.636.638H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.554c0-.352.292-.638.636-.638h5.116c.351\x200\x20.636.283.636.638a.641.641\x200\x200\x201-.636.639H4.829a.636.636\x200\x200\x201-.635-.639zm0\x202.555c0-.353.289-.639.633-.639h2.567c.35\x200\x20.633.284.633.64a.639.639\x200\x200\x201-.633.638H4.826a.634.634\x200\x200\x201-.632-.639z\x22/><path\x20d=\x22M10.515\x2017.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319\x200-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6\x201.059-.56\x202.11.119\x201.051.68\x201.443\x201.271\x201.177\x201.771L14.53\x2017.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954\x202.954\x200\x200\x200-.487.21\x202.044\x202.044\x200\x200\x200-.347.31c-.193.174-.332.262-.416.262-.064\x200-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z\x22/></g></svg>\x0a';class d extends _0x2c20e0{['_suggestionToController'];['_viewToController'];['_annotationViews'];['_handleControllerBuffer'];['_disableComments'];static get['requires'](){return[p,_0x18293d,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}constructor(_0x25ec84){super(_0x25ec84),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x48a496=this['editor']['config'];_0x48a496['define']('trackChanges.SuggestionThreadView',ne),_0x48a496['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x48a496['get']('trackChanges.disableComments');}['_handleSuggestionControllerDelayed'](_0x14fa07,_0x865663){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x147664,_0x594b4e]of this['_handleControllerBuffer']){const _0x754251=this['_suggestionToController']['has'](_0x147664);_0x754251||_0x594b4e?_0x754251&&_0x594b4e&&this['_destroyController'](_0x147664):this['_initializeController'](_0x147664);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x14fa07,_0x865663);}['init'](){const _0x840731=this['editor'],_0x6c5da6=_0x840731['plugins']['get']('TrackChangesEditing'),_0xb09e8d=_0x840731['plugins']['get']('Annotations'),_0x2e4f99=_0x840731['plugins']['get']('EditorAnnotations'),_0x589acc=_0x840731['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x2e4f99['addSourceCollector'](()=>{const _0x3b42fe=[];for(const [_0x147977,_0x126a58]of Array['from'](this['_suggestionToController'])){const _0x565736=_0x147977['getAllAdjacentSuggestions'](),_0x2d0791=[];for(const _0xf945ed of _0x565736){if(!_0xf945ed['isInContent'])continue;if(_0xf945ed['isMultiRange']){_0x2d0791['push'](..._0xf945ed['getRanges']());continue;}const _0x40028f=_0xf945ed['getFirstRange']();if(_0x2d0791['length']>0x0){const _0x291d57=_0x2d0791[0x0]['getJoined'](_0x40028f);if(_0x291d57){_0x2d0791[0x0]=_0x291d57;continue;}}_0x2d0791['push'](_0x40028f);}_0x3b42fe['push']([_0x126a58['view'],_0x2d0791]);}return _0x3b42fe;}),this['listenTo'](_0x6c5da6,'suggestionLoaded',(_0x335a97,_0x920b3c)=>{this['listenTo'](_0x920b3c,'change:previous',(_0x35ef55,_0xbc72f1,_0x23d520,_0x9ba48f)=>{_0x920b3c['isInContent']&&(null==_0x23d520?(this['_updateController'](_0x9ba48f['head']),this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1)):(this['_updateController'](_0x23d520['head']),null==_0x9ba48f&&this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x0)));}),null!==_0x920b3c['previous']?this['_updateController'](_0x920b3c['head']):this['_handleSuggestionControllerDelayed'](_0x920b3c,!0x1);}),this['listenTo'](_0x6c5da6,'suggestionUnloaded',(_0x2b7ae9,_0x3b1996,_0x2e0689)=>{this['stopListening'](_0x3b1996,'change:previous'),this['_handleControllerBuffer']['delete'](_0x3b1996),this['_suggestionToController']['has'](_0x3b1996)&&this['_destroyController'](_0x3b1996),_0x2e0689&&this['_updateController'](_0x2e0689['head']);}),this['listenTo'](_0x6c5da6,'suggestionChanged',(_0x38246c,_0x55bbb7)=>{this['_updateController'](_0x55bbb7);}),this['listenTo'](_0xb09e8d,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x589acc,'addComment',(_0x3fa125,{threadId:_0x2caa02,isFromAdapter:_0x3d4a24})=>{if(_0x3d4a24||!_0x6c5da6['hasSuggestion'](_0x2caa02))return;const _0x1d8b47=_0x6c5da6['getSuggestion'](_0x2caa02);this['_suggestionToController']['get'](_0x1d8b47)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x2c5d99=this['editor']['plugins']['get']('Annotations'),_0x469ee6=this['editor']['plugins']['get']('TrackChangesEditing'),_0x3d1f39=Array['from'](_0x2c5d99['activeAnnotations'],_0x5b8b11=>_0x5b8b11['innerView'])['filter'](_0x3d6ec1=>this['_viewToController']['has'](_0x3d6ec1)),_0x5d4b75=[];for(const _0x4ac70c of _0x3d1f39){const _0x1df3fe=this['_viewToController']['get'](_0x4ac70c)['model']['getAllAdjacentSuggestions']();_0x5d4b75['push'](..._0x1df3fe['reduce']((_0x2541c2,_0x4d16ed)=>[..._0x2541c2,..._0x4d16ed['getMarkerNames']()],[]));}_0x469ee6['activeMarkers']=_0x5d4b75;}['_addUIComponentsToFactory'](){const _0x4d2a51=this['editor'],_0x569d52=_0x4d2a51['locale'],_0x4b04c1=o(_0x569d52,'Track\x20changes'),_0x5621d2=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'isToggleable':!0x0,'label':_0x4b04c1,'commandName':'trackChanges','role':'menuitemcheckbox'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions','role':'menuitem'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x569d52,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions','role':'menuitem'})}]);for(const _0x36786b of _0x5621d2)if(ae(_0x36786b)){const _0x5b1139=_0x4d2a51['commands']['get'](_0x36786b['model']['commandName']);_0x36786b['model']['bind']('isOn','isEnabled')['to'](_0x5b1139,'value','isEnabled');}_0x4d2a51['ui']['componentFactory']['add']('trackChanges',_0x3a5690=>this['_createToolbarButton'](_0x3a5690,_0x5621d2,_0x4b04c1)),_0x4d2a51['ui']['componentFactory']['add']('menuBar:trackChanges',_0x29308d=>this['_createMenuBarMenu'](_0x29308d,_0x5621d2,_0x4b04c1));}['_createToolbarButton'](_0x2b99ad,_0x267a56,_0x5afea8){const _0x89188f=zt(_0x2b99ad,Zt),_0x58b362=this['editor']['commands']['get']('trackChanges');_0x89188f['buttonView']['set']({'tooltip':_0x5afea8,'label':_0x5afea8,'icon':ie}),_0x89188f['buttonView']['bind']('isOn')['to'](_0x58b362,'value'),_0x89188f['buttonView']['on']('execute',()=>{_0x58b362['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x89188f,_0x267a56,{'role':'menu'});const _0x428789=[];for(const _0x4f54b5 of _0x267a56)ae(_0x4f54b5)&&_0x428789['push'](this['editor']['commands']['get'](_0x4f54b5['model']['commandName']));const _0x36eb8b=_0x89188f['buttonView'];return _0x36eb8b['actionView']['unbind']('isEnabled'),_0x36eb8b['arrowView']['unbind']('isEnabled'),_0x36eb8b['actionView']['bind']('isEnabled')['to'](_0x58b362,'isEnabled'),_0x36eb8b['arrowView']['bind']('isEnabled')['toMany'](_0x428789,'isEnabled',(..._0x141319)=>_0x141319['some'](_0x2168f7=>_0x2168f7)),_0x89188f['on']('execute',_0x76023a=>{this['editor']['execute'](_0x76023a['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x89188f;}['_createMenuBarMenu'](_0x429aeb,_0x12acb7,_0x2b1e92){const _0x558fc9=new Kt(_0x429aeb),_0x2650c7=this['editor']['commands']['get']('trackChanges');_0x558fc9['buttonView']['set']({'label':_0x2b1e92,'icon':ie});const _0x59a456=new Qt(_0x429aeb);for(const _0x33af54 of _0x12acb7){if('separator'==_0x33af54['type']){_0x59a456['items']['add'](new Jt(_0x429aeb));continue;}const _0x47f137=new Xt(_0x429aeb,_0x558fc9),_0x2e50f8=new Yt(_0x429aeb),_0x179eb7=_0x33af54['model'];_0x2e50f8['bind'](...Object['keys'](_0x179eb7))['to'](_0x179eb7),_0x2e50f8['delegate']('execute')['to'](_0x558fc9),_0x2e50f8['on']('execute',()=>{this['editor']['execute'](_0x179eb7['commandName']),this['editor']['editing']['view']['focus']();}),_0x47f137['children']['add'](_0x2e50f8),_0x59a456['items']['add'](_0x47f137);}return _0x558fc9['bind']('isEnabled')['to'](_0x2650c7,'isEnabled'),_0x558fc9['panelView']['children']['add'](_0x59a456),_0x558fc9;}['_initializeController'](_0x57c027){const _0xbb44fc=this['editor'],_0x43ddd9=_0xbb44fc['config'],_0x3b92c2=_0xbb44fc['plugins']['get']('Annotations'),_0x5fd99d=_0xbb44fc['plugins']['get']('CommentsRepository'),_0x498a85=_0xbb44fc['plugins']['get']('EditorAnnotations'),_0x18626a=_0xbb44fc['plugins']['get'](_0x18293d)['me'],_0x49f4a4=_0x43ddd9['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x38f328,CommentThreadInputView:_0x261deb}=_0xbb44fc['plugins']['get']('CommentsUI');let _0x4ac4fa,_0x326ced;this['_annotationViews']['has'](_0x57c027['id'])?(_0x326ced=this['_annotationViews']['get'](_0x57c027['id']),_0x4ac4fa=_0x326ced['mainView']):(_0x4ac4fa=new _0x49f4a4(_0xbb44fc['locale'],_0x57c027,_0x18626a,{'disableComments':this['_disableComments'],'editorConfig':_0x43ddd9['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x43ddd9['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x43ddd9['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x3f1be2(_0x43ddd9['get']('locale')),'CommentView':_0x43ddd9['get']('comments')['CommentView'],'CommentsListView':_0x38f328,'CommentThreadInputView':_0x261deb}),_0x4ac4fa['acceptButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x4ac4fa['discardButton']['on']('execute',()=>{_0xbb44fc['editing']['view']['focus']();}),_0x326ced=_0x3b92c2['createAnnotationView'](this['editor']['locale'],_0x4ac4fa),_0x326ced['bind']('isDirty')['to'](_0x4ac4fa,'isDirty'),_0x326ced['bind']('length')['to'](_0x4ac4fa),_0x326ced['bind']('type')['to'](_0x4ac4fa,'type',_0x5143d0=>'suggestion-'+_0x5143d0),this['_annotationViews']['set'](_0x57c027['id'],_0x326ced));const _0x30f11b=_0x5fd99d['createCommentThreadController'](_0x57c027['commentThread'],_0x4ac4fa),_0xdfdc49=new oe(_0xbb44fc,_0x57c027,_0x4ac4fa,_0x30f11b),_0x1db29d=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x19763=>_0x19763['isInContent']);_0x4ac4fa['descriptionParts']=_0xbb44fc['plugins']['get']('TrackChangesEditing')['descriptionFactory']['getDescriptions'](_0x1db29d),this['_suggestionToController']['set'](_0x57c027,_0xdfdc49),this['_viewToController']['set'](_0x4ac4fa,_0xdfdc49);const _0x441cc8=_0x3b92c2['createAnnotation']({'view':_0x326ced,'target':()=>{const _0x516b6c=[],_0xc6e870=_0x57c027['getAllAdjacentSuggestions']()['filter'](_0x305824=>_0x305824['isInContent']);for(const _0x1a41e2 of _0xc6e870)_0x516b6c['push'](..._0x1a41e2['getMarkers']());return _0x68ed15(_0xbb44fc['editing'],_0x516b6c);},'type':()=>'suggestion-'+_0xdfdc49['view']['type']});_0x5fd99d['_bindAnnotationToEditors'](_0x4ac4fa,_0x441cc8),_0x3b92c2['add'](_0x441cc8),_0x498a85['registerAnnotation'](_0x441cc8);}['_destroyController'](_0x7d1ddf){const _0x3f0c33=this['editor']['plugins']['get']('CommentsRepository'),_0x456e6b=this['editor']['plugins']['get']('Annotations'),_0x35a9e5=this['_suggestionToController']['get'](_0x7d1ddf),_0x273414=_0x35a9e5['view'],_0x2318dd=_0x456e6b['getByInnerView'](_0x273414);_0x3f0c33['_unbindEditors'](_0x273414),_0x2318dd&&_0x456e6b['remove'](_0x2318dd),this['_suggestionToController']['delete'](_0x7d1ddf),this['_viewToController']['delete'](_0x273414),_0x35a9e5['destroy']();}['_updateController'](_0xf61828){if(!_0xf61828['isInContent']||!this['_suggestionToController']['has'](_0xf61828))return;const _0xada4f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x22d7e3=this['_suggestionToController']['get'](_0xf61828),_0x17711a=_0xf61828['getAllAdjacentSuggestions']();_0x22d7e3['view']['descriptionParts']=_0xada4f['descriptionFactory']['getDescriptions'](_0x17711a);}['destroy'](){for(const _0x34aa33 of this['_suggestionToController']['keys']())this['_destroyController'](_0x34aa33);for(const _0xc99772 of this['_annotationViews']['values']())_0xc99772['mainView']['destroy']();super['destroy']();}}function ae(_0x26b9fd){return'model'in _0x26b9fd;}class k extends _0x2c20e0{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x3c89b2){this['editor']['plugins']['get'](p)['adapter']=_0x3c89b2;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x4cb876){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x4cb876);}['getSuggestions']({skipNotAttached:_0x4ce8eb=!0x1,toJSON:_0x459071=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x4ce8eb,'toJSON':_0x459071});}['getSuggestion'](_0x4b5a2d){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x4b5a2d);}}const T=['Pagination'];class P extends _0x2c20e0{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x3e2f72=this['editor'];if(_0x3e2f72['config']['define']('trackChangesData.editorCreator',_0x464522=>{const _0x45e834=_0x3e2f72['model']['document']['getRootNames']()['reduce']((_0x33ebec,_0x375601)=>(_0x33ebec[_0x375601]='',_0x33ebec),{});return _0x3e2f72['constructor']['create'](_0x45e834,_0x464522);}),'function'!=typeof _0x3e2f72['config']['get']('trackChangesData')['editorCreator'])throw new _0x194952('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x167697){return N(this['editor'],!0x0,_0x167697);}['getDataWithDiscardedSuggestions'](_0x1a5abb){return N(this['editor'],!0x1,_0x1a5abb);}}class D extends _0x2c20e0{['result'];static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x35da04){super(_0x35da04),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(_0x22c50b){return void 0x0!==_0x22c50b['getRootsAttributes'];}async function N(_0x2a3b59,_0x1e1bfa,_0x46cbed){const _0x472965=_0x5297a0(_0x2a3b59,T);_0x472965['plugins']['push'](p,D),_0x472965['rootsAttributes']=v(_0x2a3b59)?_0x2a3b59['getRootsAttributes']():void 0x0;const _0x3bf56b=document['createDocumentFragment'](),_0x62df19=_0x2a3b59['config']['get']('trackChangesData')['editorCreator'],_0x33a799=await _0x62df19(_0x472965,()=>function(_0x10e706){const _0x12f2e4=document['createElement']('div');return _0x10e706['appendChild'](_0x12f2e4),_0x12f2e4;}(_0x3bf56b));!function(_0xa623e0,_0x478f7d){const _0x900d0a=_0xa623e0['model']['document']['getRootNames']()['reduce']((_0x987e26,_0xd2f7e6)=>(_0x987e26[_0xd2f7e6]=_0xa623e0['data']['get']({'rootName':_0xd2f7e6}),_0x987e26),{}),_0x527cf2=_0xa623e0['plugins']['get']('Users')['users']['map'](_0x15f9c9=>({'id':_0x15f9c9['id'],'name':_0x15f9c9['name']})),_0x1abc3c=_0xa623e0['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x16752e=_0xa623e0['plugins']['get']('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x537a12=_0x478f7d['plugins']['get']('Users'),_0x214ca9=_0x478f7d['plugins']['get']('TrackChangesEditing'),_0x438af0=_0x478f7d['plugins']['get']('CommentsRepository');for(const _0x4513b4 of _0x527cf2)_0x537a12['getUser'](_0x4513b4['id'])||_0x537a12['addUser'](_0x4513b4);_0x537a12['me']||_0x537a12['useAnonymousUser']();for(const _0x4effb3 of _0x16752e)_0x438af0['addCommentThread'](_0x4effb3);for(const _0x5802a6 of _0x1abc3c)_0x214ca9['addSuggestionData'](_0x5802a6);_0x478f7d['data']['set'](_0x900d0a);}(_0x2a3b59,_0x33a799),_0x33a799['execute'](_0x1e1bfa?'acceptAllSuggestions':'discardAllSuggestions');const _0x1edd8b=v(_0x33a799)?_0x33a799['getFullData'](_0x46cbed):_0x33a799['data']['get'](_0x46cbed);return await _0x33a799['destroy'](),_0x1edd8b;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};