@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240428.0 → 0.0.0-nightly-20240430.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,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as ts,Plugin as _0x27a789,PendingActions as _0x55c8ad,icons as _0x326166}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x596f3d,ObservableMixin as _0x39dad1,uid as _0x21958e,insertToPriorityArray as _0x4269c4,priorities as _0x2cd6d6,logWarning as _0x58786c,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0xd16792,View as _0x12cfcc,ButtonView as _0x3b354c,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 _0x54bab6,hashObject as _0x8ae5b,surroundingMarkersDetector as _0xe77ee4,trimHtml as _0x40352c,UserView as _0x5b4eed,getDateTimeFormatter as _0x1a9945,getAllMarkersDomElementsSorted as _0x58bc03,sanitizeEditorConfig as _0x326d9d}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x5821f1,LiveRange as _0x57a73e,LivePosition as _0x29290f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x34ca91,toWidget as _0x378bb7}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x13cbe1,set as _0xfbcca,isEqual as _0x28eb20,unset as _0x37d038,omit as Bt}from'lodash-es';import{Delete as _0x3c3de5,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x1835b4,ShiftEnter as _0x6458fa}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x119f33 of this['editor']['commands']['commands']())_0x119f33['affectsData']&&!this['_enabledCommands']['has'](_0x119f33)&&_0x119f33['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x4b1d5d of this['editor']['commands']['commands']())_0x4b1d5d['affectsData']&&!this['_enabledCommands']['has'](_0x4b1d5d)&&_0x4b1d5d['clearForceDisabled']('TrackChangesCommand');}constructor(_0xfacfc6,_0x4ddf9b){super(_0xfacfc6),this['_enabledCommands']=_0x4ddf9b,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3d36c8){const _0x5b08c9=this['_suggestions']['get'](_0x3d36c8);if(!_0x5b08c9)throw new _0x596f3d('track-changes-accept-suggestion-not-found',this);const _0x173da5=_0x5b08c9['getRanges']();this['editor']['model']['canEditAt'](_0x173da5)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x5b08c9);}constructor(_0x304f80,_0xecb98e){super(_0x304f80),this['_suggestions']=_0xecb98e,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x1e7c77){const _0x3aa250=this['_suggestions']['get'](_0x1e7c77);if(!_0x3aa250)throw new _0x596f3d('track-changes-discard-suggestion-not-found',this);const _0x23c2a8=_0x3aa250['getRanges']();this['editor']['model']['canEditAt'](_0x23c2a8)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x3aa250);}constructor(_0x35fe54,_0xe737a8){super(_0x35fe54),this['_suggestions']=_0xe737a8,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x1509aa){return _0x1509aa['sort']((_0x4847f9,_0x2f47ab)=>'deletion'==_0x4847f9['type']&&'deletion'!=_0x2f47ab['type']?-0x1:'deletion'!=_0x4847f9['type']&&'deletion'==_0x2f47ab['type']?0x1:0x0);}function to(_0x2cda8e,_0x43a0f6){let _0x48aad7,_0x81625e=0x0;const _0x49fbdd=[],_0x18685c=_0x43a0f6['schema'];for(;_0x81625e<_0x2cda8e['length'];){const _0x3ef387=_0x2cda8e[_0x81625e],_0x18a5b7=_0x2cda8e[_0x81625e+0x1];_0x48aad7||(_0x48aad7=_0x43a0f6['createPositionBefore'](_0x3ef387)),co(_0x43a0f6,_0x3ef387,_0x18a5b7)||(_0x49fbdd['push'](_0x43a0f6['createRange'](_0x48aad7,_0x18685c['isObject'](_0x3ef387)?_0x43a0f6['createPositionAfter'](_0x3ef387):_0x43a0f6['createPositionAt'](_0x3ef387,'end'))),_0x48aad7=null),_0x81625e++;}return _0x49fbdd;}function co(_0x4439d5,_0x11c89e,_0x3e5659){if(!_0x3e5659)return!0x1;const _0x230fd9=_0x4439d5['createPositionAfter'](_0x11c89e),_0x228b5a=_0x4439d5['createPositionBefore'](_0x3e5659);return _0x230fd9['isTouching'](_0x228b5a);}function rs(_0x4b3b0f,_0x3ec125,_0x54211b){for(;_0x54211b['length'];){const _0x20b4ae=_0x54211b['splice'](0x0,0x64);_0x4b3b0f['change'](()=>{for(const _0x3ca203 of _0x20b4ae)_0x3ca203['isInContent']&&_0x3ec125['execute'](_0x3ca203['id']);});}}class x extends ts{['refresh'](){const _0x26fc60=Array['from'](this['_suggestions']['values']())['some'](_0x35e9bf=>_0x35e9bf['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x26fc60;}['execute'](){const _0x492ecf=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4d9958 of _0x492ecf){const _0x1b5716=_0x4d9958['getRanges']();if(!this['editor']['model']['canEditAt'](_0x1b5716))return;}rs(this['editor']['model'],this['_command'],_0x492ecf);}constructor(_0x415afd,_0x9b80e0,_0x16e827){super(_0x415afd),this['_command']=_0x9b80e0,this['_suggestions']=_0x16e827,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0x1504ea=this['editor']['model']['document']['selection'],_0x43e0b0=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x468028,_0x28a7eb){const _0x3f0d0b=Array['from'](_0x468028['getRanges']()),_0x22cff9=new Set();for(const _0x8e2e06 of _0x28a7eb)if(_0x8e2e06['isInContent']){for(const _0x136819 of _0x3f0d0b)for(const _0x4158ed of _0x8e2e06['getRanges']())(_0x136819['isIntersecting'](_0x4158ed)||_0x468028['isCollapsed']&&!_0x8e2e06['isMultiRange']&&_0x8e2e06['next']&&_0x4158ed['end']['isTouching'](_0x136819['start']))&&_0x22cff9['add'](_0x8e2e06);}return _0x22cff9;}(_0x1504ea,_0x43e0b0),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x2e2d99=ss(Array['from'](this['_selectedSuggestions']));for(const _0x5a723d of _0x2e2d99){const _0x34af09=_0x5a723d['getRanges']();if(!this['editor']['model']['canEditAt'](_0x34af09))return;}rs(this['editor']['model'],this['_command'],_0x2e2d99);}constructor(_0x21dbca,_0x2485bf,_0x523dfa){super(_0x21dbca),this['_command']=_0x2485bf,this['_suggestions']=_0x523dfa,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0x39dad1(){get['head'](){let _0x39d694=this;for(;_0x39d694['previous'];)_0x39d694=_0x39d694['previous'];return _0x39d694;}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'](_0x38ae7c){this['_markerNames']['add'](_0x38ae7c);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x52ccf6=>this['_model']['markers']['get'](_0x52ccf6))['filter'](_0x532a6a=>_0x532a6a);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x114791=>{for(const _0x15359e of this['getMarkers']())_0x114791['removeMarker'](_0x15359e);}),this['_markerNames']['clear']();}['removeMarker'](_0x95e669){this['_model']['change'](_0x2b84dd=>{_0x2b84dd['removeMarker'](_0x95e669);}),this['_markerNames']['delete'](_0x95e669);}['addRange'](_0x3ae623){const _0x16c926='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x16c926),this['_model']['change'](_0x28a455=>{_0x28a455['addMarker'](_0x16c926,{'range':_0x3ae623,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x263aeb){for(const _0x162291 of this['getRanges']())if(_0x162291['isIntersecting'](_0x263aeb))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x1e6689=>_0x1e6689['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x29902d,_0xeea8a6)=>[..._0x29902d,..._0xeea8a6['getItems']()],[]);}['getFirstRange'](){var _0x1b2860;return(null===(_0x1b2860=this['getFirstMarker']())||void 0x0===_0x1b2860?void 0x0:_0x1b2860['getRange']())||null;}['getContainedElement'](){const _0x444bfb=this['getRanges']();if(0x1!=_0x444bfb['length'])return null;const _0x33623c=_0x444bfb[0x0],_0x53f6ea=_0x33623c['start']['nodeAfter'],_0x155d90=_0x33623c['end']['nodeBefore'];return _0x53f6ea instanceof _0x5821f1?_0x53f6ea!=_0x155d90?null:_0x53f6ea: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 _0x81bfdf=[];let _0x3a9279=this['head'];for(;_0x3a9279;)_0x81bfdf['push'](_0x3a9279),_0x3a9279=_0x3a9279['next'];return _0x81bfdf;}['setAttribute'](_0x2f785a,_0x561009){const _0x111460=_0x13cbe1(this['attributes']);_0xfbcca(_0x111460,_0x2f785a,_0x561009),_0x28eb20(_0x111460,this['attributes'])||(this['attributes']=_0x111460,this['_onAttributesChange'](_0x111460));}['removeAttribute'](_0x5ba857){const _0x57829a=_0x13cbe1(this['attributes']);_0x37d038(_0x57829a,_0x5ba857),_0x28eb20(_0x57829a,this['attributes'])||(this['attributes']=_0x57829a,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 _0x21958e()['substr'](0x1,0x5);}constructor(_0x1fa9fc,_0x1968d0){super(),this['_isDataLoaded']=!0x1,this['id']=_0x1968d0['id'],this['type']=_0x1968d0['type'],this['subType']=_0x1968d0['subType']||null,this['author']=_0x1968d0['author'],this['creator']=_0x1968d0['creator']||_0x1968d0['author'],this['isExternal']=Boolean(_0x1968d0['attributes']&&_0x1968d0['attributes']['@external']),this['data']=null,this['_model']=_0x1fa9fc,this['_onAccept']=_0x1968d0['onAccept'],this['_onDiscard']=_0x1968d0['onDiscard'],this['_onAttributesChange']=_0x1968d0['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x1968d0['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x3783be,_0x3cffe6,_0x5b31b9){const t=_0x3783be['t'];switch(_0x3cffe6){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',_0x5b31b9);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x5b31b9);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x5b31b9);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x5b31b9);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x5b31b9);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',_0x5b31b9);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x5b31b9);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',_0x5b31b9);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x5b31b9);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x5b31b9);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x5b31b9);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x5b31b9);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x5b31b9);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x5b31b9);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x5b31b9);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x5b31b9);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x5b31b9);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x5b31b9);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x5b31b9);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x5b31b9);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x5b31b9);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x5b31b9);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x5b31b9);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x5b31b9);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x5b31b9);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x5b31b9);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x5b31b9);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x5b31b9);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x5b31b9);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x5b31b9);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'},_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x5b31b9);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'},_0x5b31b9);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x5b31b9);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x5b31b9);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'},_0x5b31b9);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'},_0x5b31b9);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 _0x3cffe6;}}class f{['getDescriptions'](_0xa15679){const _0x22fe91=[],_0x2672f1=new Set(),_0x2a0ad5=new Set();for(let _0x5ef5a5=0x0;_0x5ef5a5<_0xa15679['length'];_0x5ef5a5++){const _0x41af1f=_0xa15679[_0x5ef5a5];if(!_0x41af1f['isInContent'])continue;const _0x46cdb4=this['_handleCustomCallbackDescription'](_0x41af1f);if(_0x46cdb4){if(null!=_0x41af1f['subType']){if(_0x2672f1['has'](_0x41af1f['subType']))continue;_0x2672f1['add'](_0x41af1f['subType']);}_0x22fe91['push'](_0x46cdb4);}else{if('attribute'!=_0x41af1f['type'])'insertion'!=_0x41af1f['type']&&'deletion'!=_0x41af1f['type']||this['_handleInsertRemoveSuggestionDescription'](_0x22fe91,_0x41af1f,_0xa15679[_0x5ef5a5+0x1]);else{const _0x253cd2=_0x41af1f['data']['key'];if(_0x2a0ad5['has'](_0x253cd2))continue;_0x2a0ad5['add'](_0x41af1f['data']['key']),_0x253cd2==m?this['_handleRenameSuggestionDescription'](_0x22fe91,_0x41af1f):this['_handleAttributeSuggestionDescription'](_0x22fe91,_0x41af1f);}}}return this['_resolveDescriptionItems'](_0x22fe91);}['registerDescriptionCallback'](_0x4dcae0){this['_customCallbacks']['push'](_0x4dcae0);}['registerElementLabel'](_0x1f5059,_0x52ff33,_0x26b974=_0x2cd6d6['normal']){'function'==typeof _0x1f5059?_0x4269c4(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1f5059,'label':_0x52ff33,'priority':_0x26b974}):this['_itemLabels']['set'](_0x1f5059,_0x52ff33);}['registerAttributeLabel'](_0x506f8a,_0x118585){this['_attributeLabels']['set'](_0x506f8a,_0x118585);}['getItemLabel'](_0x4f2747,_0x2341eb=0x1){let _0x569cea;for(const _0x1d65d2 of this['_itemLabelsCallbacks'])if(_0x1d65d2['matchingCallback'](_0x4f2747)){_0x569cea=_0x1d65d2['label'];break;}return _0x569cea||(_0x569cea=this['_itemLabels']['get'](_0x4f2747['name'])),_0x569cea?_0x569cea(_0x2341eb):0x1!==_0x2341eb?_0x2341eb+'\x20'+_0x4f2747['name']+'s':''+_0x4f2747['name'];}['_addDescriptionItems'](_0x1de718,_0x36014e){const _0x5eed53=_0x36014e['getFirstRange']()['getWalker'](),_0x5b68c9='insertion'==_0x36014e['type']?'add':'remove';for(const _0x484c3c of _0x5eed53){const _0x317d59=_0x484c3c['item'],_0x8e0e31=_0x1de718[_0x1de718['length']-0x1];if(_0x317d59['is']('$textProxy'))_0x8e0e31&&_0x8e0e31['type']['indexOf']('Container')>-0x1&&_0x1de718['pop'](),_0x8e0e31&&'text'==_0x8e0e31['type']?_0x8e0e31[_0x5b68c9]+=_0x317d59['data']:_0x1de718['push']({'type':'text','add':'add'==_0x5b68c9?_0x317d59['data']:'','remove':'remove'==_0x5b68c9?_0x317d59['data']:''});else{if(this['_schema']['isObject'](_0x317d59)){const _0x50f19f=_0x317d59;if(_0x8e0e31&&_0x8e0e31['type']['indexOf']('Container')>-0x1&&_0x1de718['pop'](),'elementEnd'==_0x484c3c['type'])continue;_0x8e0e31&&_0x8e0e31['type']==_0x5b68c9+'Object'&&_0x8e0e31['element']['name']==_0x50f19f['name']?_0x8e0e31['quantity']++:_0x1de718['push']({'type':_0x5b68c9+'Object','element':_0x50f19f,'quantity':0x1}),_0x5eed53['skip'](_0x165ff1=>!('elementEnd'==_0x165ff1['type']&&_0x165ff1['item']==_0x317d59));}else{if(this['_schema']['checkChild'](_0x317d59,'$text')||_0x317d59['is']('element','softBreak')){const _0x3f53cd=_0x317d59;if('add'==_0x5b68c9&&'elementStart'==_0x484c3c['type']||'remove'==_0x5b68c9&&'elementEnd'==_0x484c3c['type'])continue;if(_0x8e0e31&&-0x1==_0x8e0e31['type']['indexOf']('Container')){'text'==_0x8e0e31['type']&&(_0x8e0e31[_0x5b68c9]+='\x0a');continue;}let _0x41a1d4;if(_0x41a1d4='add'==_0x5b68c9?_0x3f53cd['nextSibling']&&!this['_schema']['isObject'](_0x3f53cd['nextSibling'])?_0x3f53cd['nextSibling']:null:_0x3f53cd['previousSibling']&&!this['_schema']['isObject'](_0x3f53cd['previousSibling'])?_0x3f53cd['previousSibling']:null,_0x3f53cd['isEmpty']||_0x41a1d4&&_0x41a1d4['isEmpty']){const _0xd479a2=_0x41a1d4&&_0x41a1d4['isEmpty']?_0x41a1d4:_0x3f53cd;_0x8e0e31&&_0x8e0e31['type']==_0x5b68c9+'EmptyContainer'&&_0x8e0e31['element']['name']==_0xd479a2['name']?_0x8e0e31['quantity']++:_0x1de718['push']({'type':_0x5b68c9+'EmptyContainer','element':_0xd479a2,'quantity':0x1});}else _0x1de718['push']({'type':_0x5b68c9+'Container','element':_0x3f53cd});}}}}}['_resolveDescriptionItems'](_0x5885d0){const _0x315edc=this['_locale'],_0x3f56f2=[],_0x52d1f6=[],_0x55a9a9=[];for(const _0x18d6fd of _0x5885d0)switch(_0x18d6fd['type']){case'text':if(_0x18d6fd['add']=_0x18d6fd['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0x18d6fd['remove']=_0x18d6fd['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0x18d6fd['add']&&''!=_0x18d6fd['remove']){_0x3f56f2['push']({'type':'replace','content':o(_0x315edc,'REPLACE_TEXT',['\x22'+_0x18d6fd['remove']+'\x22','\x22'+_0x18d6fd['add']+'\x22'])});continue;}if(null!=_0x18d6fd['add']['match'](/^ +$/)){_0x3f56f2['push']({'type':'insertion','content':o(_0x315edc,'*Insert:*\x20%0',o(_0x315edc,'ELEMENT_SPACE',_0x18d6fd['add']['length']))});continue;}if(null!=_0x18d6fd['remove']['match'](/^ +$/)){_0x3f56f2['push']({'type':'deletion','content':o(_0x315edc,'*Remove:*\x20%0',o(_0x315edc,'ELEMENT_SPACE',_0x18d6fd['remove']['length']))});continue;}if(''!=_0x18d6fd['add']){_0x3f56f2['push']({'type':'insertion','content':o(_0x315edc,'*Insert:*\x20%0','\x22'+_0x18d6fd['add']+'\x22')});continue;}_0x3f56f2['push']({'type':'deletion','content':o(_0x315edc,'*Remove:*\x20%0','\x22'+_0x18d6fd['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x3f56f2['push']({'type':'insertion','content':o(_0x315edc,'*Insert:*\x20%0',this['getItemLabel'](_0x18d6fd['element'],_0x18d6fd['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x3f56f2['push']({'type':'deletion','content':o(_0x315edc,'*Remove:*\x20%0',this['getItemLabel'](_0x18d6fd['element'],_0x18d6fd['quantity']))});continue;case'addContainer':_0x3f56f2['push']({'type':'insertion','content':o(_0x315edc,'*Split:*\x20%0',this['getItemLabel'](_0x18d6fd['element'],_0x18d6fd['quantity']))});continue;case'removeContainer':_0x3f56f2['push']({'type':'deletion','content':o(_0x315edc,'*Merge:*\x20%0',this['getItemLabel'](_0x18d6fd['element'],_0x18d6fd['quantity']))});continue;case'addFormat':_0x52d1f6['push'](_0x18d6fd['key']);continue;case'removeFormat':_0x55a9a9['push'](_0x18d6fd['key']);continue;default:_0x3f56f2['push'](_0x18d6fd);}if(_0x52d1f6['length']){const _0x2b858a=_0x52d1f6['map'](_0xf16510=>this['_attributeLabels']['has'](_0xf16510)?this['_attributeLabels']['get'](_0xf16510):_0xf16510)['join'](',\x20');_0x3f56f2['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x2b858a)});}if(_0x55a9a9['length']){const _0x3fe9bf=_0x55a9a9['map'](_0x1e91f4=>this['_attributeLabels']['has'](_0x1e91f4)?this['_attributeLabels']['get'](_0x1e91f4):_0x1e91f4)['join'](',\x20');_0x3f56f2['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x3fe9bf)});}return _0x3f56f2;}['_handleCustomCallbackDescription'](_0x5b056b){for(const _0x10dfbe of this['_customCallbacks']){const _0x2766e4=_0x10dfbe(_0x5b056b);if(_0x2766e4&&'type'in _0x2766e4)return _0x2766e4;}}['_handleAttributeSuggestionDescription'](_0x2a7a8a,_0x3f31fd){const _0x18cad6=_0x3f31fd['data'],_0xba479d=void 0x0===_0x18cad6['newValue']?'removeFormat':'addFormat';_0x2a7a8a['push']({'type':_0xba479d,'key':_0x18cad6['key']});}['_handleRenameSuggestionDescription'](_0x3733a3,_0xb84ddd){_0x3733a3['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0xb84ddd['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x2304ae,_0x4c73fa,_0x75bbc){if(this['_addDescriptionItems'](_0x2304ae,_0x4c73fa),_0x75bbc&&_0x75bbc['getFirstRange']()&&!_0x4c73fa['getFirstRange']()['end']['isEqual'](_0x75bbc['getFirstRange']()['start'])){const _0x1bf4f3=_0x2304ae[_0x2304ae['length']-0x1],_0x214c3e='insertion'==_0x4c73fa['type']?'add':'remove';_0x1bf4f3&&'text'==_0x1bf4f3['type']&&(_0x1bf4f3[_0x214c3e]+='\x0a');}}constructor(_0x2a1f72,_0x3d305b){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x2a1f72,this['_locale']=_0x3d305b;}}class E extends _0x27a789{['afterInit'](){const _0x19b04a=this['editor'],_0x2951d2=_0x19b04a['plugins']['get']('TrackChangesEditing');_0x19b04a['commands']['get']('showAIAssistant')&&_0x2951d2['enableCommand']('showAIAssistant');}}class V extends _0x27a789{['afterInit'](){const _0x237327=this['editor'],_0x5a99cc=_0x237327['locale'];if(!_0x237327['plugins']['has']('AlignmentEditing'))return;const _0x5d2537=_0x237327['plugins']['get']('TrackChangesEditing');_0x5d2537['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x5d2537['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x5a99cc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4718a3=this['editor'],_0x4e21a2=_0x4718a3['locale'];_0x4718a3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x385d59=>{if('formatBlock'!=_0x385d59['type'])return;const {data:_0x3a5ece}=_0x385d59;if(_0x3a5ece&&'alignment'==_0x3a5ece['commandName']){const _0x186127=_0x3a5ece['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x4e21a2,'*Format:*\x20%0',function(_0x2f599b){switch(_0x2f599b){case'left':return o(_0x4e21a2,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x4e21a2,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x4e21a2,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x4e21a2,'FORMAT_JUSTIFY_TEXT');}}(_0x186127))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x27a789{['afterInit'](){const _0x14b00c=this['editor'],_0x3e4b9f=_0x14b00c['plugins']['get']('TrackChangesEditing'),_0x338c06=_0x14b00c['locale'];for(const _0x2245c8 of ti){if(!_0x14b00c['plugins']['has'](_0x2245c8))continue;const _0x11b30c=_0x2245c8['slice'](0x0,-0x7)['toLowerCase'](),_0x4eb20e='FORMAT_'+_0x11b30c['toUpperCase']();_0x3e4b9f['_enableDefaultAttributesIntegration'](_0x11b30c,[_0x11b30c]),_0x3e4b9f['_descriptionFactory']['registerAttributeLabel'](_0x11b30c,o(_0x338c06,_0x4eb20e));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x265c46=this['editor'],_0x397016=_0x265c46['locale'],_0x3275ca=_0x265c46['plugins']['get']('TrackChangesEditing');function _0x310b9f(_0x20c351,_0x5aeccf){_0x3275ca['_descriptionFactory']['registerDescriptionCallback'](_0x4c0e7c=>{if('formatInline'!=_0x4c0e7c['type'])return;const {data:_0x56e272}=_0x4c0e7c;return _0x56e272&&_0x56e272['commandName']===_0x20c351?_0x56e272['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x397016,'*Format:*\x20%0',_0x5aeccf)}:{'type':'format','content':o(_0x397016,'*Remove\x20format:*\x20%0',_0x5aeccf)}:void 0x0;});}_0x310b9f('bold',o(_0x397016,'FORMAT_BOLD')),_0x310b9f('italic',o(_0x397016,'FORMAT_ITALIC')),_0x310b9f('underline',o(_0x397016,'FORMAT_UNDERLINE')),_0x310b9f('code',o(_0x397016,'FORMAT_CODE')),_0x310b9f('strikethrough',o(_0x397016,'FORMAT_STRIKETHROUGH')),_0x310b9f('subscript',o(_0x397016,'FORMAT_SUBSCRIPT')),_0x310b9f('superscript',o(_0x397016,'FORMAT_SUPERSCRIPT'));}}class O extends _0x27a789{['afterInit'](){const _0x21a67b=this['editor'],_0x2600de=_0x21a67b['locale'];if(!_0x21a67b['plugins']['has']('BlockQuoteEditing'))return;const _0x17603b=_0x21a67b['plugins']['get']('TrackChangesEditing'),_0x377715=this['editor']['commands']['get']('blockQuote');_0x17603b['enableCommand']('blockQuote',(_0xceb9b6,_0x421910={})=>{const _0x49dab8=this['editor']['model']['document']['selection'],_0x166102=_0x421910&&void 0x0!==_0x421910['forceValue']?_0x421910['forceValue']:!_0x377715['value'];let _0x264a03=[];if(_0x166102){const _0x4dd509=Array['from'](_0x49dab8['getSelectedBlocks']())['filter'](_0x428c85=>oo(_0x428c85)||function(_0x1a989e,_0x2db53e){const _0x3f733c=_0x2db53e['checkChild'](_0x1a989e['parent'],'blockQuote'),_0x3cdc60=_0x2db53e['checkChild'](['$root','blockQuote'],_0x1a989e);return _0x3f733c&&_0x3cdc60;}(_0x428c85,this['editor']['model']['schema']));_0x264a03=to(_0x4dd509,_0x21a67b['model']);}else{const _0x2c4c90=Array['from'](_0x49dab8['getSelectedBlocks']())['filter'](_0x41477d=>oo(_0x41477d));_0x264a03=to(_0x2c4c90,_0x21a67b['model']);}_0x21a67b['model']['change'](()=>{for(const _0x11423e of _0x264a03)_0x17603b['markBlockFormat'](_0x11423e,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x166102}]});});}),_0x17603b['_descriptionFactory']['registerDescriptionCallback'](_0x35a4ba=>{const {data:_0x3bdab1}=_0x35a4ba;if(_0x3bdab1&&'blockQuote'==_0x3bdab1['commandName']){const _0x3275e7=o(_0x2600de,'ELEMENT_BLOCK_QUOTE');return _0x3bdab1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2600de,'*Set\x20format:*\x20%0',_0x3275e7)}:{'type':'format','content':o(_0x2600de,'*Remove\x20format:*\x20%0',_0x3275e7)};}});}}function oo(_0x4255ab){return'blockQuote'==_0x4255ab['parent']['name'];}class G extends _0x27a789{['afterInit'](){const _0x1b6ff4=this['editor'];_0x1b6ff4['plugins']['has']('CaseChange')&&(_0x1b6ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x1b6ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x1b6ff4['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x27a789{['afterInit'](){const _0x12952d=this['editor'];_0x12952d['commands']['get']('ckbox')&&_0x12952d['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x27a789{['afterInit'](){const _0x7249ba=this['editor'];if(!_0x7249ba['plugins']['has']('CodeBlock'))return;const _0x42a557=_0x7249ba['plugins']['get']('TrackChangesEditing'),_0xab9c7c=_0x7249ba['locale'],_0x440525=_0x7249ba['config']['get']('codeBlock')['languages'],_0x5cdf9b=_0x7249ba['commands']['get']('codeBlock');_0x42a557['enableCommand']('indentCodeBlock'),_0x42a557['enableCommand']('outdentCodeBlock'),_0x42a557['enableCommand']('codeBlock',(_0x516024,_0x195274={})=>{const _0x4f15=_0x7249ba['model'],_0x59ac86=_0x7249ba['model']['document']['selection'],_0x5bae7a=_0x195274&&void 0x0!==_0x195274['forceValue']?_0x195274['forceValue']:!_0x5cdf9b['value'];let _0x341e88;_0x195274['language']||(_0x195274['language']=_0x440525[0x0]['language']),_0x341e88=_0x5bae7a?Array['from'](_0x59ac86['getSelectedBlocks']())['filter'](_0x274119=>eo(_0x274119)||function(_0x1570e4,_0x45d088){if(_0x1570e4['is']('rootElement')||_0x45d088['isLimit'](_0x1570e4))return!0x1;return _0x45d088['checkChild'](_0x1570e4['parent'],'codeBlock');}(_0x274119,_0x4f15['schema'])):Array['from'](_0x59ac86['getSelectedBlocks']())['filter'](_0xe94af2=>eo(_0xe94af2));const _0x52478f=to(_0x341e88,_0x4f15);_0x4f15['change'](()=>{for(const _0xd67f21 of _0x52478f)_0x42a557['markBlockFormat'](_0xd67f21,{'commandName':'codeBlock','commandParams':[{..._0x195274,'forceValue':_0x5bae7a}],'formatGroupId':'blockName'});});}),(_0x42a557['_descriptionFactory']['registerElementLabel']('codeBlock',_0x987db1=>o(_0xab9c7c,'ELEMENT_CODE_BLOCK',_0x987db1)),_0x42a557['_descriptionFactory']['registerDescriptionCallback'](_0x3bd463=>{if('formatBlock'!=_0x3bd463['type'])return;const _0x539ac8=_0xab9c7c['t'],{data:_0x197430}=_0x3bd463;if(!_0x197430||'codeBlock'!=_0x197430['commandName'])return;const _0x57dedd=_0x197430['commandParams'][0x0]['language'],_0x1f5f60=_0x539ac8(_0x440525['find'](_0x4138e2=>_0x4138e2['language']===_0x57dedd)['label'])['toLowerCase']();return _0x197430['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0xab9c7c,'*Set\x20format:*\x20%0',o(_0xab9c7c,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x1f5f60+')')}:{'type':'format','content':o(_0xab9c7c,'*Remove\x20format:*\x20%0',o(_0xab9c7c,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x1afb86){return'codeBlock'==_0x1afb86['name'];}class H extends _0x27a789{['afterInit'](){const _0x442687=this['editor'];if(!_0x442687['plugins']['has']('CommentsEditing'))return;_0x442687['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x3b0432,_0x31ebd6,_0x5e1789){const _0x3c561c=[];for(const _0x257be9 of _0x31ebd6['getItems']())_0x257be9['hasAttribute'](_0x3b0432)&&_0x3c561c['push'](_0x5e1789['createRangeOn'](_0x257be9));return _0x3c561c;}function _e(_0x185b94,_0x1936a8,{showActiveMarker:_0x2eb529=!0x0}={}){const _0x3db208=_0x185b94['plugins']['get']('TrackChangesEditing');return(_0x404008,_0x5b7631,_0x335bb7)=>{if(!_0x335bb7['consumable']['test'](_0x5b7631['markerRange'],_0x404008['name']))return;const _0x584a18=_0x5b7631['markerRange']['getWalker'](),_0xb1377f=_0x5b7631['markerRange']['start'],_0x2ff636=_0x185b94['model']['schema'];let _0x325073=null,_0x29f795=null,_0x14eedf=!0x1,_0x42baf2=!0x1;for(const _0x3d2cc3 of _0x584a18){const _0xb399a1=_0x3d2cc3['item'];_0x14eedf=_0x14eedf||_0x2ff636['isContent'](_0xb399a1);const _0x2dc8fe=_0x335bb7['mapper']['toViewElement'](_0xb399a1);if(_0x2dc8fe&&_0x2dc8fe['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3d2cc3['type']&&(_0x2ff636['isBlock'](_0xb399a1)&&!_0x2ff636['isLimit'](_0xb399a1)&&(_0xb399a1['nextSibling']||_0xb1377f['isAtEnd']?_0x325073&&_0x325073['parent']==_0xb399a1||(_0x325073=_0xb399a1,_0x35aa3b(_0x3d2cc3['previousPosition']),_0x42baf2=!0x0):_0x29f795=_0x29f795||_0x3d2cc3['previousPosition']));}function _0x35aa3b(_0x206407){const _0x3089cb=_0x335bb7['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x1936a8}),_0x9b7195=_0x335bb7['mapper']['toViewPosition'](_0x206407);_0x2eb529&&_0x3db208['activeMarkers']['includes'](_0x5b7631['markerName'])&&_0x335bb7['writer']['addClass']('ck-suggestion-marker--active',_0x3089cb),_0x335bb7['writer']['insert'](_0x9b7195,_0x3089cb),_0x335bb7['mapper']['bindElementToMarker'](_0x3089cb,_0x5b7631['markerName']);}_0x14eedf||_0x42baf2||!_0x29f795||_0x35aa3b(_0x29f795);};}class q extends _0x27a789{static get['requires'](){return[_0x3c3de5];}['init'](){const _0xba02cc=this['editor'],_0xc5491b=_0xba02cc['plugins']['get']('TrackChangesEditing');_0xc5491b['enableCommand']('delete');const _0x556517=_0xba02cc['commands']['get']('deleteForward');_0xc5491b['enableCommand']('deleteForward',(_0x134c13,_0x337d7f={})=>{const _0x5ba722=_0xba02cc['model']['createSelection'](_0xba02cc['model']['document']['selection']);_0x5ba722['isCollapsed']&&_0xba02cc['model']['modifySelection'](_0x5ba722,{'direction':'forward','unit':_0x337d7f['unit']});const _0x4fd973=_0x5ba722['getFirstRange'](),_0x365c14=_0x57a73e['fromRange'](_0x4fd973);let _0x5ac581;_0x134c13(_0x337d7f),_0x5ac581='$graveyard'==_0x365c14['root']['rootName']?_0xba02cc['model']['createRange'](_0x4fd973['start']):_0xba02cc['model']['createRange'](_0x365c14['start'],_0x365c14['end']),_0x365c14['detach'](),_0xba02cc['model']['enqueueChange'](_0x556517['buffer']['batch'],_0x56aca8=>{_0x556517['buffer']['lock'](),_0x56aca8['setSelection'](_0x56aca8['createRange'](_0x5ac581['end'])),_0x556517['buffer']['unlock']();});}),_0xba02cc['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0xba02cc,'merge'),{'priority':'high'}),_0xba02cc['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x2cefe0,_0xa3cb1e,_0xeca72e)=>{_0xeca72e['options']['showSuggestionHighlights']&&_e(_0xba02cc,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x2cefe0,_0xa3cb1e,_0xeca72e);},{'priority':'high'}),_0xba02cc['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x39ffba,_0x5b3a6c,_0x20b9ff)=>{const _0xa42f4d=_0x20b9ff['mapper']['markerNameToElements'](_0x5b3a6c['markerName']);if(_0xa42f4d){for(const _0x551e40 of _0xa42f4d)_0x551e40['is']('uiElement')&&(_0x20b9ff['mapper']['unbindElementFromMarkerName'](_0x551e40,_0x5b3a6c['markerName']),_0x20b9ff['writer']['remove'](_0x551e40));}},{'priority':'high'});}}class z extends _0x27a789{['afterInit'](){const _0x46a1bf=this['editor'];if(!_0x46a1bf['plugins']['has']('ListEditing'))return;const _0x42be00=_0x46a1bf['locale'],_0x1c4f0a=_0x46a1bf['plugins']['get']('TrackChangesEditing'),_0x3ce36a=_0x46a1bf['plugins']['has']('TodoListEditing'),_0x18c1b7=!!_0x46a1bf['config']['get']('list.multiBlock');function _0x2c73ff(_0x483692){return{'type':'format','content':''+o(_0x42be00,'*Set\x20format:*\x20%0',_0x483692)};}function _0x123c71(_0x3c0238){return{'type':'format','content':''+o(_0x42be00,'*Remove\x20format:*\x20%0',_0x3c0238)};}_0x1c4f0a['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x1c4f0a['_enableDefaultAttributesIntegration']('bulletedList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('customNumberedList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('customBulletedList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('indentList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('outdentList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x1c4f0a['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x18c1b7&&(_0x1c4f0a['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x1c4f0a['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0x3ce36a&&(_0x1c4f0a['_enableDefaultAttributesIntegration']('todoList'),_0x1c4f0a['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x1c4f0a['_descriptionFactory']['registerDescriptionCallback'](_0x15bd8d=>{const {data:_0x3236ba}=_0x15bd8d;if(_0x3236ba&&'todoListChecked'==_0x3236ba['key'])return{'type':'format','content':_0x3236ba['newValue']?o(_0x42be00,'*Check\x20item*'):o(_0x42be00,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x53485c=>{if(_0x53485c['batch']['isUndo'])return!0x1;let _0x1e6035=!0x1;const _0x29d89b=_0x1c4f0a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5383bb=>'todoListChecked'===_0x1c4f0a['_getAttributeKey'](_0x5383bb));for(const _0xb6cd93 of _0x29d89b){'todo'!=_0xb6cd93['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x1c4f0a['_findSuggestions'](_0xb6cd93['getFirstRange'](),'attribute')['find'](_0x49c861=>'listType'===_0x1c4f0a['_getAttributeKey'](_0x49c861['suggestion']))||(_0x53485c['removeMarker'](_0xb6cd93['getFirstMarker']()),_0x1e6035=!0x0));}return _0x1e6035;})),_0x1c4f0a['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x42be00,'FORMAT_INDENT'));const _0xdbc77={'type':'format','content':''};_0x1c4f0a['_descriptionFactory']['registerDescriptionCallback'](_0x544f8a=>{const {data:_0x5a3452}=_0x544f8a;if(!_0x5a3452||'listType'!=_0x5a3452['key'])return;let _0x25f182=_0x544f8a['head'];for(;_0x25f182;){if(_0x25f182['data']&&(('listStyle'==_0x25f182['data']['key']||'listMarkerStyle'==_0x25f182['data']['key'])&&(_0x25f182['data']['newValue']&&'default'!=_0x25f182['data']['newValue']||'default'!=_0x25f182['data']['oldValue']&&!_0x5a3452['newValue'])||!_0x18c1b7&&_0x25f182['data']['key']==m))return _0xdbc77;_0x25f182=_0x25f182['next'];}if(null==_0x5a3452['newValue'])switch(_0x5a3452['oldValue']){case'bulleted':return _0x123c71(o(_0x42be00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x123c71(o(_0x42be00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x123c71(o(_0x42be00,'ELEMENT_TODO_LIST'));}switch(_0x5a3452['newValue']){case'bulleted':return _0x2c73ff(o(_0x42be00,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x2c73ff(o(_0x42be00,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x2c73ff(o(_0x42be00,'ELEMENT_TODO_LIST'));}}),_0x1c4f0a['_descriptionFactory']['registerDescriptionCallback'](_0x3d1af4=>{const {data:_0x4fdea8}=_0x3d1af4;if(_0x4fdea8&&'listIndent'==_0x4fdea8['key'])return null==_0x4fdea8['newValue']||null==_0x4fdea8['oldValue']&&0x0==_0x4fdea8['newValue']?_0xdbc77:void 0x0;}),_0x1c4f0a['_descriptionFactory']['registerDescriptionCallback'](_0x4531aa=>{if('attribute'!=_0x4531aa['type'])return;const {data:_0x3195bd}=_0x4531aa;if(!_0x3195bd||'listItemId'!=_0x3195bd['key'])return;const _0x151d5c=le(_0x4531aa);return _0x151d5c?'newValue'==_0x151d5c?{'type':'format','content':o(_0x42be00,'*Merge:*\x20list\x20item')}:'oldValue'==_0x151d5c?{'type':'format','content':o(_0x42be00,'*Split:*\x20list\x20item')}:_0xdbc77:_0xdbc77;}),_0x46a1bf['model']['document']['registerPostFixer'](_0x17b2b4=>this['listItemIdFixer'](_0x17b2b4)),_0x46a1bf['model']['document']['registerPostFixer'](_0x442ee0=>this['noTrackChangesFixer'](_0x442ee0)),_0x46a1bf['model']['document']['registerPostFixer'](_0x5062e2=>this['assureChains'](_0x5062e2)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x365716){if(_0x365716['batch']['isUndo']||!_0x365716['batch']['isLocal'])return!0x1;let _0x4996ba=!0x1;const _0x24498a=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x185a3a=>_0x185a3a['data']&&'listItemId'==_0x185a3a['data']['key'])['filter'](_0x3614b1=>_0x3614b1['data']['newValue']&&_0x3614b1['data']['oldValue']);for(const _0x45a666 of _0x24498a)le(_0x45a666)||(_0x365716['removeMarker'](_0x45a666['getFirstMarker']()),_0x4996ba=!0x0);return _0x4996ba;}['noTrackChangesFixer'](_0x4af300){if(_0x4af300['batch']['isUndo']||!_0x4af300['batch']['isLocal'])return!0x1;const _0x35fc18=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x35fc18['trackChangesCommand']['value'])return!0x1;let _0x5784ba=!0x1;const _0x253f6d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x1b7360=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x9c14f7=>'attribute'==_0x9c14f7['type'])['filter'](_0x1cf95e=>_0x253f6d['includes'](_0x1cf95e['attributeKey']));if(0x0==_0x1b7360['length'])return _0x5784ba;for(const _0x346ec4 of _0x1b7360){const _0x4d78fb=_0x35fc18['_findSuggestions'](_0x346ec4['range'],'attribute')['filter'](_0x2f3f8e=>!_0x2f3f8e['meta']['isNextTo'])['map'](_0xebbd4d=>_0xebbd4d['suggestion'])['filter'](_0x5b2221=>{const _0x5e9d6c=_0x35fc18['_getAttributeKey'](_0x5b2221);return _0x253f6d['includes'](_0x5e9d6c);});if(_0x4d78fb['length']){for(const _0x5b606f of _0x4d78fb)_0x4af300['removeMarker'](_0x5b606f['getFirstMarker']());_0x5784ba=!0x0;}}return _0x5784ba;}['assureChains'](_0x13d61c){if(_0x13d61c['batch']['isUndo']||!_0x13d61c['batch']['isLocal'])return!0x1;const _0x594e2f=this['editor']['plugins']['get']('TrackChangesEditing');let _0x226df5=!0x1;const _0xf8b825=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x2fd879 of _0x594e2f['getSuggestions']({'skipNotAttached':!0x0})){const _0x5731dd=_0x594e2f['_findSuggestions'](_0x2fd879['getFirstRange'](),'attribute')['map'](_0x1cc392=>_0x1cc392['suggestion'])['filter'](_0x14c64b=>_0x14c64b['data']&&_0xf8b825['includes'](_0x14c64b['data']['key']));if(!_0x5731dd['length'])continue;const _0x3dc1f1=_0x5731dd[0x0]['head']['attributes']['groupId'];if(!_0x5731dd['every'](_0x27c0d8=>_0x27c0d8['attributes']['groupId']===_0x3dc1f1)){for(const _0xc8f7d3 of _0x5731dd)_0x1a1a74(_0xc8f7d3,_0x3dc1f1)&&(_0x226df5=!0x0);}}return _0x226df5;function _0x1d9189(_0x427352,_0xdec545){for(const _0x3b8d60 of _0x594e2f['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0xf69631=>'attribute'==_0xf69631['type']&&_0xf69631['attributes']['groupId']==_0x427352))_0x3b8d60['setAttribute']('groupId',_0xdec545);}function _0x1a1a74(_0x418a6f,_0x1cb215){let _0x360c55=_0x418a6f['head'],_0x5471be=!0x1;for(;_0x360c55;)_0x360c55['attributes']['groupId']!=_0x1cb215&&(_0x1d9189(_0x360c55['attributes']['groupId'],_0x1cb215),_0x360c55['setAttribute']('groupId',_0x1cb215),_0x5471be=!0x0),_0x360c55=_0x360c55['next'];return _0x5471be;}}['_supportLegacySuggestions'](){const _0x3df012=this['editor'],_0x147768=_0x3df012['locale'],_0x1b9ea2=_0x3df012['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x1b9ea2['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x359aca,_0x30798c){const _0x41f59f=[];for(let _0x4aa050 of _0x359aca)_0x4aa050['start']['nodeAfter']===_0x4aa050['end']['parent']&&(_0x4aa050=_0x3df012['model']['createRange'](_0x3df012['model']['createPositionAt'](_0x4aa050['start']['nodeAfter'],0x0))),_0x41f59f['push'](_0x4aa050);_0x3df012['model']['change'](_0x2185b6=>{const _0x5e70d6=_0x3df012['model']['document']['selection'],_0x56f041=Array['from'](_0x5e70d6['getRanges']())['map'](_0x21a25c=>_0x57a73e['fromRange'](_0x21a25c));_0x2185b6['setSelection'](_0x41f59f),_0x3df012['commands']['get'](_0x30798c['commandName'])['refresh'](),_0x30798c['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x3df012['execute'](_0x30798c['commandName'],..._0x30798c['commandParams']),_0x2185b6['setSelection'](_0x56f041);for(const _0x330dd3 of _0x56f041)_0x330dd3['detach']();});}),_0x1b9ea2['_descriptionFactory']['registerElementLabel'](function(_0x2d8e40){const _0xeeadab=!_0x3df012['model']['schema']['isObject'](_0x2d8e40),_0x2a4847=_0x2d8e40['previousSibling'],_0x32edc3=_0x2d8e40['nextSibling'],_0x34338d=_0x2d8e40['getAttribute']('listItemId'),_0x44a07d=!_0x2a4847||_0x2a4847['getAttribute']('listItemId')!==_0x34338d,_0x3387cb=!_0x32edc3||_0x32edc3['getAttribute']('listItemId')!==_0x34338d;return _0xeeadab&&Boolean(_0x34338d)&&_0x44a07d&&_0x3387cb;},_0x276712=>o(_0x147768,'ELEMENT_LIST_ITEM',_0x276712));}['_registerLegacyDescription'](){const _0x33c6fb=this['editor'],_0x345068=_0x33c6fb['locale'];function _0xb1ca49(_0x43a6b4){const _0x22819b=_0x33c6fb['commands']['get']('bulletedList')['value'],_0x2cb9b9=_0x33c6fb['commands']['get']('numberedList')['value'];return'numberedList'===_0x43a6b4?_0x22819b:_0x2cb9b9;}_0x33c6fb['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x1a2220){if('formatBlock'!=_0x1a2220['type'])return;const {data:_0x58a642}=_0x1a2220;if(!_0x58a642)return;let _0x1ffd28,_0x1156fd,_0xf97f7,_0x31ae79;switch(_0x58a642['commandName']){case'bulletedList':_0xf97f7=_0x58a642['commandParams'][0x0]['forceValue'],_0x31ae79=_0xb1ca49(_0x58a642['commandName']),_0x1ffd28=_0xf97f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31ae79&&_0x33c6fb['config']['get']('list.multiBlock')||(_0x1ffd28='*Change\x20to:*\x20%0'),_0x1156fd={'type':'format','content':o(_0x345068,_0x1ffd28,o(_0x345068,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xf97f7=_0x58a642['commandParams'][0x0]['forceValue'],_0x31ae79=_0xb1ca49(_0x58a642['commandName']),_0x1ffd28=_0xf97f7?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x31ae79&&_0x33c6fb['config']['get']('list.multiBlock')||(_0x1ffd28='*Change\x20to:*\x20%0'),_0x1156fd={'type':'format','content':o(_0x345068,_0x1ffd28,o(_0x345068,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x1ffd28='*Indent:*\x20%0',_0x1156fd={'type':'format','content':o(_0x345068,_0x1ffd28,o(_0x345068,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x1ffd28=function(_0x20e6cf){const _0x110c66=_0x20e6cf['getFirstRange']();let _0x224114=_0x110c66['start']['nodeAfter'];for(;_0x224114&&_0x110c66['containsItem'](_0x224114);){if(_0x224114['getAttribute']('listIndent')>0x0)return!0x1;_0x224114=_0x224114['nextSibling'];}return!0x0;}(_0x1a2220)?o(_0x345068,'*Format:*\x20remove\x20from\x20%0',o(_0x345068,function(_0x582ff0){return'ELEMENT_'+_0x582ff0['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x1a2220))):o(_0x345068,'*Outdent:*\x20%0',o(_0x345068,'ELEMENT_LIST_ITEM')),_0x1156fd={'type':'format','content':_0x1ffd28};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x58a642['multipleBlocks']&&(_0x1ffd28='*Merge:*\x20%0',_0x1156fd={'type':'deletion','content':o(_0x345068,_0x1ffd28,o(_0x345068,'ELEMENT_LIST_ITEM'))});}return _0x1156fd;});}}function le(_0x74b74){let _0x262176=_0x74b74['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x262176;){const _0x40b3a0=_0x262176['getAttribute']('listItemId');if(!_0x40b3a0)return!0x1;if(_0x40b3a0==_0x74b74['data']['newValue'])return'newValue';if(_0x40b3a0==_0x74b74['data']['oldValue'])return'oldValue';_0x262176=_0x262176['previousSibling'];}return!0x1;}class ue extends _0x27a789{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x124868=this['editor']['config']['get']('list.properties'),_0x4730cf=this['editor']['plugins']['get']('TrackChangesEditing');_0x124868['styles']&&_0x4730cf['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x124868['reversed']&&_0x4730cf['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x124868['startIndex']&&_0x4730cf['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x587f93={'type':'format','content':''};_0x4730cf['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x4a2630=this['editor']['locale'];_0x4730cf['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x4a2630,'FORMAT_LIST_REVERSED')),_0x4730cf['_descriptionFactory']['registerDescriptionCallback'](_0x147e41=>{const {data:_0x26fd6b}=_0x147e41;if(_0x26fd6b&&'listReversed'==_0x26fd6b['key'])return null==_0x26fd6b['newValue']||0x0==_0x26fd6b['newValue']&&null==_0x26fd6b['oldValue']?_0x587f93:void 0x0;}),_0x4730cf['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x4a2630,'FORMAT_LIST_START')),_0x4730cf['_descriptionFactory']['registerDescriptionCallback'](_0xb7a67e=>{const {data:_0x25bd62}=_0xb7a67e;if(_0x25bd62&&'listStart'==_0x25bd62['key'])return null==_0x25bd62['newValue']||0x1==_0x25bd62['newValue']&&null==_0x25bd62['oldValue']?_0x587f93:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x1f4fa6=>{if(_0x1f4fa6['batch']['isUndo'])return!0x1;let _0x4628e2=!0x1;const _0x29e31a=_0x4730cf['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x2036de=>{const _0x389797=_0x4730cf['_getAttributeKey'](_0x2036de);return'listStart'==_0x389797||'listReversed'==_0x389797;});for(const _0x383e23 of _0x29e31a){const _0x13d4e5=_0x383e23['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x13d4e5||'customNumbered'==_0x13d4e5)continue;_0x4730cf['_findSuggestions'](_0x383e23['getFirstRange'](),'attribute')['find'](_0x24ec0d=>'listType'==_0x4730cf['_getAttributeKey'](_0x24ec0d['suggestion']))||(_0x1f4fa6['removeMarker'](_0x383e23['getFirstMarker']()),_0x4628e2=!0x0);}return _0x4628e2;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x29f5c2){const _0x4f5b58=this['editor']['locale'],{data:_0x5c5f94}=_0x29f5c2,_0x4435c6={'type':'format','content':''};if(!_0x5c5f94||'listStyle'!=_0x5c5f94['key'])return;if(!_0x5c5f94['oldValue'])return'default'==_0x5c5f94['newValue']?_0x4435c6:{'type':'format','content':''+o(_0x4f5b58,'*Set\x20format:*\x20%0',o(_0x4f5b58,this['_getTranslationKeyForListStyle'](_0x5c5f94['newValue'])))};if(!_0x5c5f94['newValue']){if('default'==_0x5c5f94['oldValue'])return _0x4435c6;let _0x2e8c6d=_0x29f5c2['head'];for(;_0x2e8c6d;){if(_0x2e8c6d['data']&&'listType'==_0x2e8c6d['data']['key']&&_0x2e8c6d['data']['newValue'])return _0x4435c6;_0x2e8c6d=_0x2e8c6d['next'];}return{'type':'format','content':''+o(_0x4f5b58,'*Remove\x20format:*\x20%0',o(_0x4f5b58,this['_getTranslationKeyForListStyle'](_0x5c5f94['oldValue'])))};}if('default'!=_0x5c5f94['newValue'])return{'type':'format','content':''+o(_0x4f5b58,'*Set\x20format:*\x20%0',o(_0x4f5b58,this['_getTranslationKeyForListStyle'](_0x5c5f94['newValue'])))};let _0x402ca=_0x29f5c2['head'];for(;_0x402ca;){if(_0x402ca['data']&&'listType'==_0x402ca['data']['key']&&_0x402ca['data']['newValue']&&_0x402ca['data']['oldValue'])return _0x4435c6;_0x402ca=_0x402ca['next'];}return{'type':'format','content':o(_0x4f5b58,'*Set\x20format:*\x20%0',o(_0x4f5b58,'ELEMENT_'+_0x29f5c2['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x1e27c3=this['editor'],_0x27cd8e=_0x1e27c3['locale'];_0x1e27c3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x2e2296=>{if('formatBlock'!=_0x2e2296['type'])return;const {data:_0x5d5d1d}=_0x2e2296;if(!_0x5d5d1d)return;let _0x57f737,_0x27c22a;switch(_0x5d5d1d['commandName']){case'listStyle':_0x57f737='*Change\x20to:*\x20%0',_0x27c22a={'type':'format','content':o(_0x27cd8e,_0x57f737,o(_0x27cd8e,this['_getTranslationKeyForListStyle'](_0x5d5d1d['commandParams'][0x0]['type'])))};break;case'listReversed':_0x57f737=_0x5d5d1d['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x27c22a={'type':'format','content':o(_0x27cd8e,_0x57f737)};break;case'listStart':_0x57f737='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x27c22a={'type':'format','content':o(_0x27cd8e,_0x57f737,_0x5d5d1d['commandParams'][0x0]['startIndex'])};}return _0x27c22a;});}['_getTranslationKeyForListStyle'](_0x1adc74){return'ELEMENT_'+function(_0x4f3efb){if(pe['includes'](_0x4f3efb))return'bulleted';if(ye['includes'](_0x4f3efb))return'numbered';return null;}(_0x1adc74)['toUpperCase']()+'_LIST_'+_0x1adc74['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x27a789{static get['requires'](){return[_0x1835b4];}['init'](){const _0x2687f5=this['editor'],_0x298b2f=_0x2687f5['plugins']['get']('TrackChangesEditing'),_0x415fe2=_0x2687f5['commands']['get']('enter');_0x298b2f['enableCommand']('enter',()=>{_0x2687f5['model']['change'](_0x94c3a1=>{const _0x4b6560=_0x2687f5['model']['document']['selection'],_0x5aa653=_0x4b6560['getFirstPosition'](),_0x42be33=_0x57a73e['fromRange'](_0x4b6560['getFirstRange']());if(_0x415fe2['enterBlock'](_0x94c3a1)){const _0x513956=_0x2687f5['model']['createPositionAt'](_0x5aa653['parent']['nextSibling'],0x0),_0x2ccd83=_0x94c3a1['createRange'](_0x5aa653,_0x513956);_0x298b2f['markInsertion'](_0x2ccd83);}else _0x94c3a1['setSelection'](_0x94c3a1['createRange'](_0x42be33['end']));_0x42be33['detach'](),_0x415fe2['fire']('afterExecute',{'writer':_0x94c3a1});});}),_0x2687f5['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x2687f5,'split'),{'priority':'high'}),_0x2687f5['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x318562,_0x3a8fc5,_0x148872)=>{const _0x40190a=_0x148872['mapper']['markerNameToElements'](_0x3a8fc5['markerName']);if(_0x40190a){for(const _0x5ec701 of _0x40190a)_0x5ec701['hasClass']('ck-suggestion-marker-split')&&(_0x148872['mapper']['unbindElementFromMarkerName'](_0x5ec701,_0x3a8fc5['markerName']),_0x148872['writer']['remove'](_0x5ec701));}},{'priority':'high'}),_0x2687f5['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1168bb,_0x57e121,_0xd1f5c6)=>{_0xd1f5c6['options']['showSuggestionHighlights']&&_e(_0x2687f5,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1168bb,_0x57e121,_0xd1f5c6);},{'priority':'high'});}}class J extends _0x27a789{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x37e21d=this['editor']['plugins']['get']('TrackChangesEditing');_0x37e21d['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x37e21d['enableCommand']('findNext'),_0x37e21d['enableCommand']('findPrevious'),_0x37e21d['enableCommand']('replace'),_0x37e21d['enableCommand']('replaceAll');}['handleFindCommand'](_0x482bfa,_0x584741,_0xa96936={}){const _0x2f7352=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x482bfa(_0x6c3631=>('string'==typeof _0x584741?_0x2f7352['findByTextCallback'](_0x584741,_0xa96936):_0x584741)(_0x6c3631)['filter'](_0x49ad9a=>!0x1===this['_isInDeletionRange'](_0x49ad9a,_0x6c3631['item'])),_0xa96936);}['_isInDeletionRange'](_0x696f18,_0x12c830){const _0x55a8c7=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x12c830,_0x696f18['start']),this['editor']['model']['createPositionAt'](_0x12c830,_0x696f18['end']));for(const _0x50456e of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x55a8c7['getIntersection'](_0x50456e['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 _0x27a789{['afterInit'](){const _0x380b0b=this['editor']['locale'],_0x254e25=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x1bdf16,commandName:_0x58574d}of ro)this['editor']['plugins']['has'](_0x1bdf16)&&_0x254e25['_enableDefaultAttributesIntegration'](_0x58574d,[_0x58574d]);_0x380b0b['t'],_0x254e25['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x380b0b,'FORMAT_FONT_SIZE')),_0x254e25['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x380b0b,'FORMAT_FONT_FAMILY')),_0x254e25['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x380b0b,'FORMAT_FONT_COLOR')),_0x254e25['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x380b0b,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4949b6=this['editor'],_0xc0d5b3=_0x4949b6['locale'];_0x4949b6['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x26713e=>{const _0x109d20=_0xc0d5b3['t'];if('formatInline'!=_0x26713e['type'])return;const {data:_0x34082a}=_0x26713e;if(null!=_0x34082a){if('fontSize'==_0x34082a['commandName']){const _0x1250b5=_0x34082a['commandParams'][0x0]['value'];if(_0x1250b5){const _0x526323=_0x109d20(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x4549b0=>_0x4549b0['model']==_0x1250b5)['title'])['toLowerCase']();return{'type':'format','content':o(_0xc0d5b3,'*Set\x20font\x20size:*\x20%0',_0x526323)};}return{'type':'format','content':o(_0xc0d5b3,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x34082a['commandName']){const _0x6dcdea=_0x34082a['commandParams'][0x0]['value'];return _0x6dcdea?{'type':'format','content':o(_0xc0d5b3,'*Set\x20font\x20family:*\x20%0',_0x6dcdea)}:{'type':'format','content':o(_0xc0d5b3,'*Reset\x20font\x20family*')};}if('fontColor'==_0x34082a['commandName']){const _0x262be0=_0x34082a['commandParams'][0x0]['value'];if(_0x262be0){const _0x1981c9=_0xd16792(this['editor']['config']['get']('fontColor.colors'))['find'](_0x527975=>_0x527975['model']==_0x262be0);let _0x1ddfbc=_0x262be0,_0x20f498='';return _0x1981c9&&(_0x1ddfbc=_0x1981c9['label'],_0x20f498=_0x109d20(_0x1ddfbc)['toLowerCase']()),{'type':'format','content':o(_0xc0d5b3,'*Set\x20font\x20color:*\x20%0',_0x20f498)['trim'](),'color':{'value':_0x262be0,'title':_0x20f498||_0x1ddfbc}};}return{'type':'format','content':o(_0xc0d5b3,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x34082a['commandName']){const _0x23ef0f=_0x34082a['commandParams'][0x0]['value'];if(_0x23ef0f){const _0x63222b=_0xd16792(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x5ec2aa=>_0x5ec2aa['model']==_0x23ef0f);let _0xba77ba=_0x23ef0f,_0x893b76='';return _0x63222b&&(_0xba77ba=_0x63222b['label'],_0x893b76=_0x109d20(_0xba77ba)['toLowerCase']()),{'type':'format','content':o(_0xc0d5b3,'*Set\x20font\x20background\x20color:*\x20%0',_0x893b76)['trim'](),'color':{'value':_0x23ef0f,'title':_0x893b76||_0xba77ba}};}return{'type':'format','content':o(_0xc0d5b3,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x27a789{['afterInit'](){const _0x17595b=this['editor'],_0x41f813=_0x17595b['plugins']['get']('TrackChangesEditing'),_0x17894d=_0x17595b['commands']['get']('copyFormat'),_0x4f15e6=_0x17595b['commands']['get']('pasteFormat');_0x17894d&&_0x4f15e6&&(_0x41f813['_enableDefaultAttributesIntegration']('pasteFormat'),_0x41f813['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x438142=this['editor'],_0x2dcc6a=_0x438142['locale'];_0x438142['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x242995=>{if('formatBlock'!=_0x242995['type']&&'formatInline'!=_0x242995['type'])return;const {data:_0x54bf05}=_0x242995;if(_0x54bf05&&'pasteFormat'===_0x54bf05['commandName']){const _0x5312e5=[],_0x1c1eaf=_0x54bf05['commandParams'][0x0];for(const [_0x232827,_0xffa9a5]of Object['entries'](_0x1c1eaf))_0x5312e5['push'](so(_0x438142,_0x232827,_0xffa9a5));return _0x5312e5['length']?{'type':'format','content':o(_0x2dcc6a,'*Set\x20format\x20to:*\x20%0',_0x5312e5['join'](',\x20'))}:{'type':'format','content':o(_0x2dcc6a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x1587fd,_0x3b07d3,_0x1b1f2c){const _0x31f69c=_0x1587fd['locale']['t'],_0x7fc88c=_0x3b07d3['split'](/(?=[A-Z])/)['join']('\x20'),_0x3d8d8d=_0x31f69c(_0x7fc88c['charAt'](0x0)['toUpperCase']()+_0x7fc88c['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0x1b1f2c)return _0x3d8d8d;if('fontColor'===_0x3b07d3||'fontBackgroundColor'===_0x3b07d3){const _0x4a455d=_0xd16792(_0x1587fd['config']['get']('fontColor.colors'))['find'](_0x24be9c=>_0x24be9c['model']==_0x1b1f2c);return _0x3d8d8d+'\x20('+(_0x4a455d?_0x31f69c(_0x4a455d['label'])['toLowerCase']():_0x1b1f2c)+')';}if('fontSize'===_0x3b07d3&&isNaN(parseFloat(_0x1b1f2c))){const _0x49aef1=_0x1587fd['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x1587fd['config']['get']('fontSize.options'))['find'](_0x507300=>_0x507300['model']==_0x1b1f2c);return _0x3d8d8d+'\x20('+(_0x49aef1?_0x31f69c(_0x49aef1['title'])['toLowerCase']():_0x1b1f2c)+')';}return _0x3d8d8d+'\x20('+_0x1b1f2c+')';}class Y extends _0x27a789{['afterInit'](){const _0x45fe42=this['editor'];if(!_0x45fe42['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x45fe42['config']['get']('heading.options');const _0x4181ca=_0x45fe42['locale'],_0x11a43d=_0x45fe42['plugins']['get']('TrackChangesEditing');_0x11a43d['_enableDefaultAttributesIntegration']('heading');for(const _0x4fbfe4 of this['_headingOptions'])'paragraph'!=_0x4fbfe4['model']&&_0x11a43d['_descriptionFactory']['registerElementLabel'](_0x4fbfe4['model'],_0xd9ad7f=>{const _0x20ccef=this['_getHeadingLevel'](_0x4fbfe4['model']);return null!==_0x20ccef?_0x134c9d(_0xd9ad7f,_0x20ccef):_0x41da0a(_0xd9ad7f,_0x4fbfe4['title']);});function _0x134c9d(_0x467137,_0x5d5c34){return o(_0x4181ca,'ELEMENT_HEADING',[_0x467137,_0x5d5c34]);}function _0x41da0a(_0x336f46,_0x4ac964){return o(_0x4181ca,'ELEMENT_HEADING_CUSTOM',[_0x336f46,_0x4ac964]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29d336=this['editor'],_0x36b305=_0x29d336['locale'];function _0xd70b04(_0x34f2d5,_0x778534){return o(_0x36b305,'ELEMENT_HEADING_CUSTOM',[_0x34f2d5,_0x778534]);}_0x29d336['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x252d68=>{if('formatBlock'!=_0x252d68['type'])return;const {data:_0x10821a}=_0x252d68;if(_0x10821a&&'heading'==_0x10821a['commandName']){const _0x5db6fd=_0x10821a['commandParams'][0x0]['value'],_0x22d43f=this['_getHeadingLevel'](_0x5db6fd);if(null!==_0x22d43f)return{'type':'format','content':o(_0x36b305,'*Change\x20to:*\x20%0',(_0x3c3a28=0x1,_0x5a73f7=_0x22d43f,o(_0x36b305,'ELEMENT_HEADING',[_0x3c3a28,_0x5a73f7])))};const _0x2ab1b8=this['_headingOptions']['find'](_0xdfc1a0=>_0xdfc1a0['model']===_0x5db6fd)['title'];return{'type':'format','content':o(_0x36b305,'*Change\x20to:*\x20%0',_0xd70b04(0x1,_0x2ab1b8))};}var _0x3c3a28,_0x5a73f7;});}['_getHeadingLevel'](_0x18d984){var _0x1b5f99,_0x5dc6f8;const _0xef125d=_0x18d984['match'](/^heading(\d+)/);if(_0xef125d)return _0xef125d[0x1];const _0x2bac82=null===(_0x1b5f99=this['_headingOptions'])||void 0x0===_0x1b5f99?void 0x0:_0x1b5f99['find'](_0x1bc748=>_0x1bc748['model']==_0x18d984);if(_0x2bac82&&_0x2bac82['view']){const _0x455ad3=_0x2bac82['view'],_0x5181fb=(null!==(_0x5dc6f8=_0x455ad3['name'])&&void 0x0!==_0x5dc6f8?_0x5dc6f8:_0x455ad3)['match'](/^h(\d+)/);if(_0x5181fb)return _0x5181fb[0x1];}return null;}}class Z extends _0x27a789{['afterInit'](){const _0x18fd97=this['editor'];if(!_0x18fd97['plugins']['has']('HighlightEditing'))return;const _0x525082=_0x18fd97['plugins']['get']('TrackChangesEditing'),_0x41bd1a=_0x18fd97['locale'];_0x525082['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x525082['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x41bd1a,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x54becc=this['editor'],_0xb2fc96=_0x54becc['locale'];_0x54becc['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x10e498=>{if('formatInline'!=_0x10e498['type'])return;const {data:_0x3795e0}=_0x10e498;if(_0x3795e0&&'highlight'==_0x3795e0['commandName']){const _0x565bab=_0xb2fc96['t'],_0x3535c8=_0x3795e0['commandParams'][0x0]['value'];if(_0x3535c8){const _0x45d628=_0x54becc['config']['get']('highlight.options')['find'](_0x45a966=>_0x45a966['model']==_0x3535c8),_0x385693=_0x565bab(_0x45d628['title'])['toLowerCase']();return{'type':'format','content':o(_0xb2fc96,'*Set\x20highlight:*\x20%0',_0x385693),'color':{'value':_0x45d628['color'],'title':_0x45d628['title']}};}return{'type':'format','content':o(_0xb2fc96,'*Remove\x20highlight*',o(_0xb2fc96,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x27a789{['afterInit'](){const _0x77af3f=this['editor'];if(!_0x77af3f['plugins']['has']('HorizontalLineEditing'))return;_0x77af3f['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x5b2527=_0x77af3f['plugins']['get']('TrackChangesEditing'),_0x549f99=_0x77af3f['locale'];_0x5b2527['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x25b62a=>o(_0x549f99,'ELEMENT_HORIZONTAL_LINE',_0x25b62a)),_0x77af3f['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x3b97ae,{writer:_0x331f42,options:_0x1342d9})=>{if(!_0x1342d9['showSuggestionHighlights'])return null;const _0x2bf547=_0x331f42['createContainerElement']('div'),_0x3a86b2=_0x331f42['createEmptyElement']('hr');return _0x331f42['addClass']('ck-horizontal-line',_0x2bf547),_0x331f42['insert'](_0x331f42['createPositionAt'](_0x2bf547,0x0),_0x3a86b2),_0x2bf547;},'converterPriority':'high'});}}class et extends _0x27a789{['afterInit'](){const _0x834444=this['editor'];if(!_0x834444['plugins']['has']('HtmlEmbed'))return;const _0x1b9bc8=_0x834444['plugins']['get']('TrackChangesEditing'),_0x1f1f52=_0x834444['locale'];_0x1b9bc8['_descriptionFactory']['registerElementLabel']('rawHtml',_0x3062fa=>o(_0x1f1f52,'ELEMENT_HTML_EMBED',_0x3062fa)),_0x1b9bc8['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x1b9bc8['_descriptionFactory']['registerDescriptionCallback'](_0x2617fa=>{if('attribute'!=_0x2617fa['type'])return;const {data:_0x1bf2e9}=_0x2617fa;if(_0x1bf2e9&&'value'==_0x1bf2e9['key']&&_0x2617fa['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x3b2d61=o(_0x1f1f52,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1f1f52,'*Change\x20%0\x20content*',_0x3b2d61)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1f211e=this['editor'],_0x1bf205=_0x1f211e['locale'];_0x1f211e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x467607=>{if('formatBlock'!=_0x467607['type'])return;const {data:_0x112139}=_0x467607;if(_0x112139&&'htmlEmbed'==_0x112139['commandName']){const _0x1b7182=o(_0x1bf205,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x1bf205,'*Change\x20%0\x20content*',_0x1b7182)};}});}}class it extends _0x27a789{['afterInit'](){const _0x479db5=this['editor'];if(!_0x479db5['plugins']['has']('ImageEditing'))return;const _0x35d34e=_0x479db5['plugins']['get']('TrackChangesEditing'),_0x297d8a=_0x479db5['plugins']['get']('ImageUtils'),_0xa5565a=_0x479db5['locale'];_0x35d34e['enableCommand']('insertImage'),_0x35d34e['_descriptionFactory']['registerElementLabel']('imageBlock',_0x201ca7=>o(_0xa5565a,'ELEMENT_IMAGE',_0x201ca7)),_0x35d34e['_descriptionFactory']['registerElementLabel']('imageInline',_0x26b894=>o(_0xa5565a,'ELEMENT_INLINE_IMAGE',_0x26b894)),_0x35d34e['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0xa5565a,'ELEMENT_CAPTION')),_0x479db5['plugins']['has']('ImageUploadEditing')&&_0x35d34e['enableCommand']('uploadImage'),_0x479db5['plugins']['has']('ImageBlockEditing')&&_0x479db5['plugins']['has']('ImageInlineEditing')&&(_0x35d34e['enableCommand']('imageTypeInline',(_0x531e53,_0x56c817)=>{const _0x406bc9=_0x297d8a['getClosestSelectedImageElement'](_0x479db5['model']['document']['selection']);_0x479db5['model']['change'](()=>{_0x35d34e['markBlockFormat'](_0x406bc9,{'commandName':'imageTypeInline','commandParams':[_0x56c817]},[],'convertBlockImageToInline');});}),_0x35d34e['enableCommand']('imageTypeBlock',(_0x3dd029,_0x5f1845)=>{_0x479db5['model']['change'](_0x4579ef=>{let _0x166654=_0x297d8a['getClosestSelectedImageElement'](_0x479db5['model']['document']['selection']),_0x2a5276=_0x4579ef['createRangeOn'](_0x166654);const _0xb48ace=_0x29290f['fromPosition'](_0x2a5276['start'],'toPrevious'),_0x5c51fb=_0x29290f['fromPosition'](_0x2a5276['end'],'toNext');_0x35d34e['forceDefaultExecution'](()=>_0x3dd029(_0x5f1845)),_0x166654=_0x297d8a['getClosestSelectedImageElement'](_0x479db5['model']['document']['selection']),_0x2a5276=_0x4579ef['createRangeOn'](_0x166654);const _0x528dfa=_0x4579ef['createRange'](_0xb48ace,_0x5c51fb);_0xb48ace['detach'](),_0x5c51fb['detach'](),_0x35d34e['markBlockFormat'](_0x166654,{'commandName':'imageTypeInline','commandParams':[_0x5f1845]},[],'convertInlineImageToBlock'),_0x528dfa['start']['isBefore'](_0x2a5276['start'])&&_0x35d34e['markInsertion'](_0x4579ef['createRange'](_0x528dfa['start'],_0x2a5276['start']),'convertInlineImageToBlock'),_0x2a5276['end']['isBefore'](_0x528dfa['end'])&&_0x35d34e['markInsertion'](_0x4579ef['createRange'](_0x2a5276['end'],_0x528dfa['end']),'convertInlineImageToBlock');});}),_0x35d34e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x35d34e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x35d34e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x35d34e['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x35d34e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x35d34e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x4dde56])=>{const _0x16ae50=_0x35d34e['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x12c7a8=_0x4dde56['start'],_0x5c8fe7=_0x4dde56['end'];const _0x451ae5=_0x479db5['model']['schema']['getNearestSelectionRange'](_0x12c7a8,'backward'),_0x5103fb=_0x479db5['model']['schema']['getNearestSelectionRange'](_0x5c8fe7,'forward');_0x451ae5['isCollapsed']&&(_0x12c7a8=_0x451ae5['start']),_0x5103fb['isCollapsed']&&(_0x5c8fe7=_0x5103fb['end']),_0x16ae50([_0x479db5['model']['createRange'](_0x12c7a8,_0x5c8fe7)]);}),_0x35d34e['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x4db7d0),_0x35d34e['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x4db7d0)),_0x479db5['plugins']['has']('ImageCaptionEditing')&&(_0x35d34e['enableCommand']('toggleImageCaption',(_0x23a36a,_0x5543a8)=>{const _0x5b0459=_0x479db5['plugins']['get']('ImageCaptionUtils');let _0x1da7ee=_0x297d8a['getClosestSelectedImageElement'](_0x479db5['model']['document']['selection']),_0xbec2a4=_0x5b0459['getCaptionFromImageModelElement'](_0x1da7ee);_0x479db5['model']['change'](()=>{if(_0xbec2a4)return void _0x35d34e['markDeletion'](_0x479db5['model']['createRangeOn'](_0xbec2a4));const _0x2b67ee=_0x297d8a['isBlockImage'](_0x1da7ee);_0x23a36a(_0x5543a8),_0x1da7ee=_0x297d8a['getClosestSelectedImageElement'](_0x479db5['model']['document']['selection']),_0xbec2a4=_0x5b0459['getCaptionFromImageModelElement'](_0x1da7ee),_0x35d34e['markInsertion'](_0x479db5['model']['createRangeOn'](_0xbec2a4),_0x2b67ee?null:'imageCaption');});}),_0x35d34e['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x4db7d0));const _0x4db828=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x20f50f(_0x4afac2,_0x2fcedb){const _0x1535e7=_0x4db828['findIndex'](({type:_0x22fc5b,subType:_0x38be62})=>_0x4afac2['type']==_0x22fc5b&&_0x4afac2['subType']==_0x38be62),_0x58c660=_0x4db828['findIndex'](({type:_0x2cbea3,subType:_0x1aaf2e})=>_0x2fcedb['type']==_0x2cbea3&&_0x2fcedb['subType']==_0x1aaf2e);if(_0x1535e7<0x0||_0x58c660<0x0)return!0x1;const _0x6f2c83=_0x4afac2['getFirstRange'](),_0x9d69ac=_0x2fcedb['getFirstRange']();if((0x0==_0x1535e7||0x1==_0x1535e7)&&0x2==_0x58c660&&_0x6f2c83['isIntersecting'](_0x9d69ac))return!0x0;if(0x2==_0x1535e7&&0x3==_0x58c660){const _0x335923=_0x35d34e['_findSuggestions'](_0x6f2c83,'insertion')['filter'](({suggestion:_0x2f095d,meta:_0x5e3d4a})=>_0x5e3d4a['isOwn']&&'convertInlineImageToBlock'==_0x2f095d['subType']);if(_0x335923['length']>0x1&&_0x9d69ac['end']['isEqual'](_0x6f2c83['start']))return!0x0;if(0x1==_0x335923['length']&&(_0x6f2c83['start']['isEqual'](_0x9d69ac['end'])||_0x6f2c83['end']['isEqual'](_0x9d69ac['start'])))return!0x0;}if(0x3==_0x1535e7&&0x3==_0x58c660&&_0x6f2c83['start']['isBefore'](_0x9d69ac['start'])){const _0x33a028=_0x6f2c83['end']['nodeAfter'],_0xc5138b=_0x9d69ac['start']['nodeBefore'];return _0x297d8a['isBlockImage'](_0x33a028)&&_0x33a028===_0xc5138b;}return!0x1;}function _0x4db7d0(_0x5ea45d,_0x498b23){return _0x20f50f(_0x5ea45d,_0x498b23)?[_0x5ea45d,_0x498b23]:_0x20f50f(_0x498b23,_0x5ea45d)?[_0x498b23,_0x5ea45d]:null;}_0x479db5['plugins']['has']('ImageResize')&&(_0x35d34e['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x35d34e['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0xa5565a,'FORMAT_IMAGE_SIZE'))),_0x479db5['plugins']['has']('ImageTextAlternativeEditing')&&_0x35d34e['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x35d34e['_descriptionFactory']['registerDescriptionCallback'](_0x56a37e=>{if(!!_0x4db828['find'](({type:_0x5c5eee,subType:_0x4ae4b3})=>_0x56a37e['type']==_0x5c5eee&&_0x56a37e['subType']==_0x4ae4b3))return _0x56a37e['previous']?{}:void 0x0;}),_0x35d34e['_descriptionFactory']['registerDescriptionCallback'](_0xc068ff=>{if('insertion'==_0xc068ff['type']||'deletion'==_0xc068ff['type']){const _0x8bf2ce=_0xc068ff['getContainedElement']();if(_0x8bf2ce&&_0x8bf2ce['is']('element','caption'))return{'type':'insertion'==_0xc068ff['type']?'addObject':'removeObject','element':_0x8bf2ce,'quantity':0x1};}}),_0x35d34e['_descriptionFactory']['registerDescriptionCallback'](_0x7d3b52=>'formatBlock'==_0x7d3b52['type']&&'convertInlineImageToBlock'==_0x7d3b52['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x7d3b52['type']&&'convertBlockImageToInline'==_0x7d3b52['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x35d34e['_descriptionFactory']['registerDescriptionCallback'](_0x3aa3ce=>{if('attribute'!=_0x3aa3ce['type'])return;const {data:_0x3b03fa}=_0x3aa3ce;if(!_0x3b03fa||'alt'!=_0x3b03fa['key'])return;const _0x4f0873=_0x3b03fa['newValue'];return _0x4f0873?{'type':'format','content':o(_0xa5565a,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4f0873+'\x22')}:{'type':'format','content':o(_0xa5565a,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x303379=this['editor'],_0xdb4aeb=_0x303379['locale'];_0x303379['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x19b22c=>{if('formatBlock'!=_0x19b22c['type']&&'formatInline'!=_0x19b22c['type'])return;const {data:_0x545cc0}=_0x19b22c;if(_0x545cc0){if('imageTextAlternative'==_0x545cc0['commandName']){const _0x36d7de=_0x545cc0['commandParams'][0x0]['newValue'];return _0x36d7de?{'type':'format','content':o(_0xdb4aeb,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x36d7de+'\x22')}:{'type':'format','content':o(_0xdb4aeb,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x545cc0['commandName']){const _0xfa786f=_0x545cc0['commandParams'][0x0]['width'];return _0xfa786f?{'type':'format','content':o(_0xdb4aeb,'*Set\x20image\x20width:*\x20%0',_0xfa786f)}:{'type':'format','content':o(_0xdb4aeb,'*Reset\x20image\x20width*')};}}});}}class st extends _0x27a789{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0x5cfe2d=this['editor']['locale'],_0x31e763=this['editor']['plugins']['get']('TrackChangesEditing');_0x31e763['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x31e763['_descriptionFactory']['registerDescriptionCallback'](_0x1c3abb=>{if('attribute'!=_0x1c3abb['type'])return;const {data:_0x480209}=_0x1c3abb;return _0x480209&&'src'==_0x480209['key']?_0x480209['newValue']&&_0x480209['oldValue']?{'type':'format','content':o(_0x5cfe2d,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x4a22f2=this['editor']['plugins']['get']('TrackChangesEditing');_0x4a22f2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x4a22f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x4a22f2['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x4a22f2['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3f1151=this['editor'],_0x857aa4=_0x3f1151['locale'];_0x3f1151['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x80ad3a=>{if('formatBlock'!=_0x80ad3a['type']&&'formatInline'!=_0x80ad3a['type'])return;const {data:_0x3764dc}=_0x80ad3a;if(!_0x3764dc||'replaceImageSource'!=_0x3764dc['commandName'])return;return{'type':'format','content':o(_0x857aa4,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x27a789{['afterInit'](){const _0x2f56ec=this['editor'];if(!_0x2f56ec['plugins']['has']('ImageStyleEditing'))return;const _0x280cd7=_0x2f56ec['plugins']['get']('TrackChangesEditing'),_0x5644a7=_0x2f56ec['plugins']['get']('ImageUtils'),_0x5bc3e0={};_0x280cd7['enableCommand']('imageStyle',(_0x2ede8e,_0x34eaf0)=>{const _0xeafc02=_0x2f56ec['plugins']['get']('Users')['me'],_0x3f8973=_0x2f56ec['commands']['get']('imageStyle');let _0x58d8f9=_0x5644a7['getClosestSelectedImageElement'](_0x2f56ec['model']['document']['selection']),_0x481931=_0x2f56ec['model']['createRangeOn'](_0x58d8f9),_0x1b0d00=_0x3f8973['value'];if(_0x1b0d00==_0x34eaf0['value'])return;const _0x15a010={'commandName':'imageStyle','commandParams':[_0x34eaf0],'formatGroupId':_0x21958e()};_0x2f56ec['model']['change'](()=>{if(_0x280cd7['getSuggestions']()['filter'](_0xc32f5a=>_0xc32f5a['isInContent']&&_0xeafc02==_0xc32f5a['author']&&('formatBlock'==_0xc32f5a['type']||'formatInline'==_0xc32f5a['type'])&&('imageStylePreApply'==_0xc32f5a['subType']||'imageStylePostApply'==_0xc32f5a['subType'])&&_0xc32f5a['getFirstRange']()['isEqual'](_0x481931))['forEach'](_0x101c35=>_0x280cd7['discardSuggestion'](_0x101c35['head'])),_0x58d8f9=_0x5644a7['getClosestSelectedImageElement'](_0x2f56ec['model']['document']['selection']),_0x481931=_0x2f56ec['model']['createRangeOn'](_0x58d8f9),_0x3f8973['refresh'](),_0x2f56ec['commands']['get']('imageTypeInline')['refresh'](),_0x2f56ec['commands']['get']('imageTypeBlock')['refresh'](),_0x1b0d00=_0x3f8973['value'],_0x1b0d00!=_0x34eaf0['value'])return _0x5644a7['isInlineImage'](_0x58d8f9)&&_0x3f8973['shouldConvertImageType'](_0x34eaf0['value'],_0x58d8f9)?(_0x2ede8e({..._0x34eaf0,'setImageSizes':!0x1}),_0x58d8f9=_0x5644a7['getClosestSelectedImageElement'](_0x2f56ec['model']['document']['selection']),void _0x280cd7['markBlockFormat'](_0x58d8f9,{..._0x15a010,'commandReversedParams':[{'value':_0x1b0d00||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x5644a7['isBlockImage'](_0x58d8f9)?_0x280cd7['markBlockFormat'](_0x58d8f9,_0x15a010,[],'imageStylePostApply'):_0x280cd7['markInlineFormat'](_0x481931,_0x15a010,'imageStylePostApply'));});});for(const _0x22dbd8 of _0x2f56ec['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x5bc3e0[_0x22dbd8['name']]=_0x22dbd8['title']['toLowerCase']();_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x163a74])=>{_0x5644a7['setImageNaturalSizeAttributes'](_0x163a74['getContainedElement']());}),_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x3335d2,_0x370eb8)=>{_0x280cd7['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x3335d2,{'commandName':_0x370eb8['commandName'],'commandParams':_0x370eb8['commandReversedParams']});}),_0x280cd7['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x12a663,_0x2addba){if(_0x30b9ce(_0x12a663,_0x2addba))return[_0x12a663,_0x2addba];if(_0x30b9ce(_0x2addba,_0x12a663))return[_0x2addba,_0x12a663];return null;});const _0x475ae3=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x30b9ce(_0x59bf2b,_0x3d2c10){const _0x16492e=_0x475ae3['findIndex'](({type:_0xf477a5,subType:_0x8a4ddc})=>_0x59bf2b['type']==_0xf477a5&&_0x59bf2b['subType']==_0x8a4ddc),_0x5488c1=_0x475ae3['findIndex'](({type:_0x4c7120,subType:_0x5dc508})=>_0x3d2c10['type']==_0x4c7120&&_0x3d2c10['subType']==_0x5dc508);if(_0x16492e<0x0||_0x5488c1<0x0)return!0x1;const _0x45c68d=_0x59bf2b['getFirstRange'](),_0x25114f=_0x3d2c10['getFirstRange']();if((0x0==_0x16492e||0x1==_0x16492e)&&0x2==_0x5488c1&&_0x45c68d['isIntersecting'](_0x25114f))return!0x0;if(0x2==_0x16492e&&0x3==_0x5488c1){const _0x1f90b9=_0x280cd7['_findSuggestions'](_0x45c68d,'insertion')['filter'](({suggestion:_0x2947ed,meta:_0x47bb58})=>_0x47bb58['isOwn']&&'convertInlineImageToBlock'==_0x2947ed['subType']);if(_0x1f90b9['length']>0x1&&_0x25114f['end']['isEqual'](_0x45c68d['start']))return!0x0;if(0x1==_0x1f90b9['length']&&(_0x45c68d['start']['isEqual'](_0x25114f['end'])||_0x45c68d['end']['isEqual'](_0x25114f['start'])))return!0x0;}if(0x3==_0x16492e&&0x3==_0x5488c1&&_0x45c68d['start']['isBefore'](_0x25114f['start'])){const _0x2c6be1=_0x45c68d['end']['nodeAfter'],_0x10c6fc=_0x25114f['start']['nodeBefore'];return _0x5644a7['isBlockImage'](_0x2c6be1)&&_0x2c6be1===_0x10c6fc;}return!0x1;}_0x2f56ec['model']['document']['registerPostFixer'](()=>{let _0x6bda9f=!0x1;const _0x59b6a5=Array['from'](_0x2f56ec['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x5f1c59,data:_0x2c705e}of _0x59b6a5){const {group:_0x547013,type:_0x2640ff,subType:_0x4a7b3f,id:_0x224b6a}=_0x280cd7['_splitMarkerName'](_0x5f1c59);if('suggestion'==_0x547013&&_0x280cd7['hasSuggestion'](_0x224b6a)){if('formatBlock'==_0x2640ff&&('imageStylePreApply'==_0x4a7b3f||'imageStylePostApply'==_0x4a7b3f)){const _0x41e2a1=_0x280cd7['getSuggestion'](_0x224b6a);if(_0x2c705e['newRange']){const _0x6d8cb4=_0x41e2a1['getFirstRange']()['getContainedElement']();if(_0x5644a7['isBlockImage'](_0x6d8cb4))continue;_0x280cd7['discardSuggestion'](_0x41e2a1),_0x6bda9f=!0x0;}}if('insertion'==_0x2640ff&&'imageCaption'==_0x4a7b3f&&!_0x2c705e['newRange']){const _0x106196=_0x280cd7['getSuggestion'](_0x224b6a);_0x106196['next']&&_0x106196['next']['isInContent']&&(_0x280cd7['discardSuggestion'](_0x106196['next']),_0x6bda9f=!0x0);}}}return _0x6bda9f;}),this['_registerLegacyDescription'](_0x5bc3e0);}['_registerLegacyDescription'](_0x25670c){const _0x153355=this['editor'],_0x195f2a=_0x153355['locale'];_0x153355['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x3e7b18=>{if('formatBlock'!=_0x3e7b18['type']&&'formatInline'!=_0x3e7b18['type'])return;const {data:_0x1f8f90}=_0x3e7b18;if(!_0x1f8f90||'imageStyle'!=_0x1f8f90['commandName'])return;const _0x13e330=_0x1f8f90['commandParams'][0x0]['value'];return _0x2b46d4('side'===_0x13e330?o(_0x195f2a,'FORMAT_SIDE_IMAGE'):_0x25670c[_0x13e330]||_0x13e330);function _0x2b46d4(_0x5a3c09){return{'type':'format','content':o(_0x195f2a,'*Format:*\x20%0',_0x5a3c09)};}});}}class ot extends _0x27a789{['afterInit'](){const _0x1476ff=this['editor'],_0x16c7c9=_0x1476ff['commands']['get']('importWord'),_0x3e2646=_0x1476ff['commands']['get']('trackChanges');_0x16c7c9&&(_0x16c7c9['on']('execute',(_0x24d44f,[,_0x5bc4ac])=>{this['_trackChangesValueDuringImport']=_0x3e2646['value'],_0x5bc4ac['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x16c7c9,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x16c7c9,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x3e2646['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x1476ff['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x5bee7a,_0x11108f){const {suggestions:_0x1f44ba}=_0x11108f,_0x55a705=this['editor']['commands']['get']('trackChanges'),_0x4c41a9=_0x55a705['value'];this['_trackChangesValueDuringImport']!==_0x4c41a9&&(_0x55a705['execute'](),this['_trackChangesExecuted']=!0x0),_0x1f44ba&&_0x1f44ba['forEach'](({id:_0x3861dc,type:_0x4c2d23,author:_0x31b5fd,created_at:_0x40939c})=>{const _0x292803={'id':_0x3861dc,'type':_0x4c2d23,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x31b5fd,'createdAt':_0x40939c?new Date(_0x40939c):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x292803);});}constructor(_0x3692e4){super(_0x3692e4),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x27a789{['afterInit'](){const _0x4c83f4=this['editor'],_0x50a98a=_0x4c83f4['plugins']['get']('TrackChangesEditing');if(_0x4c83f4['plugins']['has']('IndentEditing')&&(_0x50a98a['enableCommand']('indent'),_0x50a98a['enableCommand']('outdent')),_0x4c83f4['plugins']['has']('IndentBlock')){for(const _0x3eb11f of['indentBlock','outdentBlock'])_0x50a98a['_enableDefaultAttributesIntegration'](_0x3eb11f);}const _0x3debcc=_0x4c83f4['locale'];_0x50a98a['_registerBlockAttribute']('blockIndent'),_0x50a98a['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x3debcc,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4d1b91=this['editor'],_0x10123c=_0x4d1b91['locale'],_0x42c27d=_0x4d1b91['plugins']['get']('TrackChangesEditing');_0x42c27d['_descriptionFactory']['registerDescriptionCallback'](_0x2745ca=>{if('formatBlock'!=_0x2745ca['type'])return;const {data:_0x1803d5}=_0x2745ca;if(!_0x1803d5)return;if('indentBlock'!=_0x1803d5['commandName']&&'outdentBlock'!=_0x1803d5['commandName'])return;const _0x1338e5=_0x2745ca['getItems']()[0x0],_0x46d1f5=_0x42c27d['_descriptionFactory']['getItemLabel'](_0x1338e5);return'indentBlock'==_0x1803d5['commandName']?{'type':'format','content':o(_0x10123c,'*Indent:*\x20%0',_0x46d1f5)}:'outdentBlock'==_0x1803d5['commandName']?{'type':'format','content':o(_0x10123c,'*Outdent:*\x20%0',_0x46d1f5)}:void 0x0;});}}class at extends _0x27a789{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x27a789{['afterInit'](){const _0x35857a=this['editor'];if(!_0x35857a['plugins']['has']('LinkEditing'))return;const _0x3699cb=_0x35857a['plugins']['get']('TrackChangesEditing'),_0x30283f=_0x35857a['commands']['get']('link');_0x3699cb['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x30283f['manualDecorators']['map'](_0x196bf3=>_0x196bf3['id'])]),_0x3699cb['_enableDefaultAttributesIntegration']('unlink');for(const _0x44e4ed of _0x30283f['manualDecorators'])_0x3699cb['_descriptionFactory']['registerAttributeLabel'](_0x44e4ed['id'],'link\x20('+_0x44e4ed['label']['toLowerCase']()+')');_0x3699cb['_descriptionFactory']['registerDescriptionCallback'](_0x47ad6a=>{if('attribute'!=_0x47ad6a['type'])return;const {data:_0x3e9daf}=_0x47ad6a;if(!_0x3e9daf||'linkHref'!=_0x3e9daf['key'])return;const _0x2b14d2=_0x3e9daf['newValue'],_0x3d7594=_0x35857a['locale'];return{'type':'format','content':null==_0x2b14d2?o(_0x3d7594,'*Remove\x20link*'):o(_0x3d7594,'*Set\x20link:*\x20%0','\x22'+_0x2b14d2+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x36e757=this['editor'],_0x172b7e=_0x36e757['locale'];_0x36e757['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x3432e0=>{if('formatInline'!=_0x3432e0['type'])return;const {data:_0x28780e}=_0x3432e0;if(_0x28780e){if('link'==_0x28780e['commandName']){const _0x3401ce=_0x28780e['commandParams'][0x0];return{'type':'format','content':o(_0x172b7e,'*Set\x20link:*\x20%0','\x22'+_0x3401ce+'\x22')};}return'unlink'==_0x28780e['commandName']?{'type':'format','content':o(_0x172b7e,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x27a789{['afterInit'](){const _0x5e57e4=this['editor'],_0x1f854f=_0x5e57e4['locale'];if(!_0x5e57e4['plugins']['has']('LegacyListEditing'))return;const _0x25087e=_0x5e57e4['plugins']['get']('TrackChangesEditing'),_0x510fee=_0x5e57e4['plugins']['has']('LegacyTodoListEditing');function _0x3c0d93(_0x13aaf0){return()=>{const _0x1f16eb=_0x5e57e4['model']['document']['selection'],_0x4c5bd7=_0x5e57e4['commands']['get'](_0x13aaf0);if(_0x4c5bd7['value'])return void _0x5e57e4['execute']('paragraph',{});const _0x3c6363=_0x13aaf0['slice'](0x0,-0x4),_0x339a2d=function(_0x5b0999,_0x1a8caf,_0x240c0e){let _0x388419=Array['from'](_0x5b0999)['filter'](_0x476151=>function(_0x3f1814,_0x25be4b){return _0x25be4b['checkChild'](_0x3f1814['parent'],'listItem')&&!_0x25be4b['isObject'](_0x3f1814);}(_0x476151,_0x240c0e));_0x388419=_0x388419['filter'](_0x243e59=>!_0x243e59['is']('element','listItem')||_0x243e59['getAttribute']('listType')!=_0x1a8caf);const _0x184101=new Set();for(const _0x1b9723 of _0x388419)_0x1b9723['is']('element','listItem')?_0x184101['add'](me(_0x1b9723)):_0x184101['add'](_0x1b9723);return Array['from'](_0x184101);}(_0x1f16eb['getSelectedBlocks'](),_0x3c6363,_0x5e57e4['model']['schema']);_0x5e57e4['model']['change'](()=>{for(const _0x47d8bd of _0x339a2d)_0x25087e['markBlockFormat'](_0x47d8bd,{'commandName':_0x13aaf0,'commandParams':[{'forceValue':!_0x4c5bd7['value']}],'formatGroupId':'blockName'},fe(_0x47d8bd));});};}function _0x19d9fd(_0x5233a2){return()=>{const _0x2482d4=function(_0x3609f2){let _0x8cee7b=Array['from'](_0x3609f2);const _0x50d730=_0x8cee7b['findIndex'](_0x215e9e=>'listItem'!=_0x215e9e['name']);return _0x50d730>-0x1&&(_0x8cee7b=_0x8cee7b['slice'](0x0,_0x50d730)),_0x8cee7b;}(_0x5e57e4['model']['document']['selection']['getSelectedBlocks']()),_0x490245=_0x5e57e4['model']['createRange'](_0x5e57e4['model']['createPositionAt'](_0x2482d4[0x0],'before'),_0x5e57e4['model']['createPositionAt'](_0x2482d4[_0x2482d4['length']-0x1],'end'));_0x5e57e4['model']['change'](()=>{_0x25087e['markBlockFormat'](_0x490245,{'commandName':_0x5233a2,'commandParams':[],'formatGroupId':'listIndent'},function(_0x10bbfc){const _0x1e94dd=new Set();for(const _0x4fc12b of _0x10bbfc){let _0x3a9564=_0x4fc12b['nextSibling'];for(;_0x3a9564&&_0x3a9564['getAttribute']('listIndent')>_0x4fc12b['getAttribute']('listIndent');)_0x1e94dd['add'](_0x3a9564),_0x3a9564=_0x3a9564['nextSibling'];}return Array['from'](_0x1e94dd);}(_0x2482d4));});};}_0x25087e['enableCommand']('numberedList',_0x3c0d93('numberedList')),_0x25087e['enableCommand']('bulletedList',_0x3c0d93('bulletedList')),_0x510fee&&_0x25087e['enableCommand']('todoList',_0x3c0d93('todoList')),_0x25087e['enableCommand']('indentList',_0x19d9fd('indentList')),_0x25087e['enableCommand']('outdentList',_0x19d9fd('outdentList')),_0x510fee&&_0x25087e['enableCommand']('checkTodoList',()=>{const _0x579ec3=_0x5e57e4['commands']['get']('checkTodoList'),_0x320f92=Array['from'](_0x579ec3['_selectedElements']);_0x320f92['filter'](_0x3713f7=>_0x3713f7['getAttribute']('todoListChecked')!=_0x579ec3['value']),_0x5e57e4['model']['change'](()=>{for(const _0x488160 of _0x320f92)_0x25087e['markBlockFormat'](_0x488160,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x579ec3['value']}]});});}),_0x25087e['_descriptionFactory']['registerElementLabel']('listItem',_0x32b256=>o(_0x1f854f,'ELEMENT_LIST_ITEM',_0x32b256)),_0x25087e['_descriptionFactory']['registerDescriptionCallback'](_0x11f38c=>{if('formatBlock'!=_0x11f38c['type']&&'formatInline'!=_0x11f38c['type'])return;const {data:_0x98245d}=_0x11f38c;if(_0x98245d){if('numberedList'==_0x98245d['commandName']||'bulletedList'==_0x98245d['commandName']||'todoList'==_0x98245d['commandName'])switch(_0x98245d['commandName']['replace']('List','')){case'bulleted':return _0x3fd5b6(o(_0x1f854f,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3fd5b6(o(_0x1f854f,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3fd5b6(o(_0x1f854f,'ELEMENT_TODO_LIST'));}if('indentList'==_0x98245d['commandName'])return{'type':'format','content':o(_0x1f854f,'*Indent:*\x20%0',o(_0x1f854f,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x98245d['commandName'])return{'type':'format','content':o(_0x1f854f,'*Outdent:*\x20%0',o(_0x1f854f,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x98245d['commandName'])return _0x98245d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1f854f,'*Check\x20item*')}:{'type':'format','content':o(_0x1f854f,'*Uncheck\x20item*')};}function _0x3fd5b6(_0x2cbb34){return{'type':'format','content':o(_0x1f854f,'*Change\x20to:*\x20%0',_0x2cbb34)};}});}}function me(_0x28ec4e){const _0x23c3b9=_0x28ec4e['getAttribute']('listIndent');if(0x0==_0x23c3b9)return _0x28ec4e;let _0x1aef82=_0x28ec4e;for(;_0x28ec4e['previousSibling']&&_0x28ec4e['previousSibling']['is']('element','listItem');){const _0x207af8=_0x28ec4e['previousSibling']['getAttribute']('listIndent');if(_0x207af8==_0x23c3b9)_0x1aef82=_0x28ec4e['previousSibling'];else{if(_0x207af8<_0x23c3b9)break;}_0x28ec4e=_0x28ec4e['previousSibling'];}return _0x1aef82;}function fe(_0x75060a){const _0x4c064b=[];if(_0x75060a['is']('element','listItem')&&_0x75060a['getAttribute']('listIndent')>0x0){let _0x211491=_0x75060a['nextSibling'];for(;_0x211491&&'listItem'==_0x211491['name']&&_0x211491['getAttribute']('listIndent')==_0x75060a['getAttribute']('listIndent');)_0x4c064b['push'](_0x211491),_0x211491=_0x211491['nextSibling'];}return _0x4c064b;}class K extends _0x27a789{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0x5ea5df=this['editor']['config']['get']('list.properties'),_0x1fa02c=this['editor']['plugins']['get']('TrackChangesEditing');_0x5ea5df['styles']&&_0x1fa02c['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0x5ea5df['reversed']&&_0x1fa02c['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0x5ea5df['startIndex']&&_0x1fa02c['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x1fa02c['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3eee17,_0x219c58={}){const _0x523a99=this['editor']['plugins']['get']('TrackChangesEditing'),_0x53fd8b=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x523a99['markMultiRangeBlockFormat'](_0x53fd8b,{'commandName':'listStyle','commandParams':[{'type':_0x219c58['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x3cc800,_0x1dc0ed={}){const _0x536805=this['editor']['plugins']['get']('TrackChangesEditing'),_0x4ce850=this['_getSuggestionBlocks'](_0xd0c2e0=>_0xd0c2e0['is']('element','listItem')&&'numbered'===_0xd0c2e0['getAttribute']('listType'));if(_0x4ce850['length']<0x1)return;const _0x158977=_0x4ce850['map'](_0x30fc47=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x30fc47,'before'),this['editor']['model']['createPositionAt'](_0x30fc47,0x0)));this['editor']['model']['change'](()=>{_0x536805['markMultiRangeBlockFormat'](_0x158977,{'commandName':'listReversed','commandParams':[{'reversed':_0x1dc0ed['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x2fa53f,_0x44705b={}){const _0x4333c1=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa47fcc=this['_getSuggestionBlocks'](_0xed02b5=>_0xed02b5['is']('element','listItem')&&'numbered'===_0xed02b5['getAttribute']('listType'));if(_0xa47fcc['length']<0x1)return;const _0x3fcb72=_0xa47fcc['map'](_0x13058c=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x13058c,'before'),this['editor']['model']['createPositionAt'](_0x13058c,0x0)));this['editor']['model']['change'](()=>{_0x4333c1['markMultiRangeBlockFormat'](_0x3fcb72,{'commandName':'listStart','commandParams':[{'startIndex':_0x44705b['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x314467){if('formatBlock'!=_0x314467['type']&&'formatInline'!=_0x314467['type'])return;const _0x1dc1a9=this['editor']['locale'],{data:_0x366111}=_0x314467;if(!_0x366111)return;let _0xb83d47,_0x3e168f;switch(_0x366111['commandName']){case'listStyle':_0xb83d47='*Change\x20to:*\x20%0',_0x3e168f={'type':'format','content':o(_0x1dc1a9,_0xb83d47,o(_0x1dc1a9,this['_getTranslationKeyForListStyle'](_0x366111['commandParams'][0x0]['type'])))};break;case'listReversed':_0xb83d47=_0x366111['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x3e168f={'type':'format','content':o(_0x1dc1a9,_0xb83d47)};break;case'listStart':_0xb83d47='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x3e168f={'type':'format','content':o(_0x1dc1a9,_0xb83d47,_0x366111['commandParams'][0x0]['startIndex'])};}return _0x3e168f;}['_getSuggestionBlocksForListStyle'](){var _0x215c4d,_0x432f2c,_0xaded30,_0x1909a1;const _0x316f2c=this['editor']['plugins']['get']('LegacyListUtils');let _0x4147c5=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x215c4d=_0x4147c5[0x0])||void 0x0===_0x215c4d?void 0x0:_0x215c4d['is']('element','listItem'))&&_0x4147c5['unshift'](..._0x316f2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x432f2c=_0x4147c5[_0x4147c5['length']-0x1])||void 0x0===_0x432f2c?void 0x0:_0x432f2c['is']('element','listItem'))&&_0x4147c5['push'](..._0x316f2c['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x4147c5=[...new Set(_0x4147c5)],(null===(_0x1909a1=null===(_0xaded30=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0xaded30?void 0x0:_0xaded30['parent'])||void 0x0===_0x1909a1?void 0x0:_0x1909a1['is']('element','listItem'))&&(_0x4147c5=_0x4147c5['filter'](_0x6ac48f=>_0x6ac48f['is']('element','listItem'))),_0x4147c5;}['_getSuggestionBlocks'](_0x2dcb61){const _0x37e7b1=this['editor']['plugins']['get']('LegacyListUtils');let _0xad0a46=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x2dcb61)['map'](_0x107788=>{const _0x1a7654=this['editor']['model']['createPositionAt'](_0x107788,0x0);return[..._0x37e7b1['getSiblingNodes'](_0x1a7654,'backward'),..._0x37e7b1['getSiblingNodes'](_0x1a7654,'forward')];})['flat']();return _0xad0a46=[...new Set(_0xad0a46)],_0xad0a46;}['_getTranslationKeyForListStyle'](_0x41f8e1){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x41f8e1)||'default')['toUpperCase']()+'_LIST_'+_0x41f8e1['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x27a789{['afterInit'](){const _0x73cb92=this['editor'];if(!_0x73cb92['plugins']['has']('MediaEmbedEditing'))return;const _0x188d04=_0x73cb92['plugins']['get']('TrackChangesEditing'),_0x2c19c6=_0x73cb92['locale'];_0x188d04['enableCommand']('mediaEmbed'),_0x188d04['_descriptionFactory']['registerElementLabel']('media',_0x1b1c00=>o(_0x2c19c6,'ELEMENT_MEDIA',_0x1b1c00)),_0x73cb92['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x3dfedd,{writer:_0x244bf0,options:_0x26d63b})=>{if(_0x26d63b['showSuggestionHighlights'])return _0x244bf0['createEmptyElement']('div');},'converterPriority':'high'}),_0x73cb92['data']['downcastDispatcher']['on']('attribute:url:media',(_0x6e8899,_0x2cd841,_0x138cda)=>{_0x138cda['options']['showSuggestionHighlights']&&_0x6e8899['stop']();},{'priority':'high'});}}class gt extends _0x27a789{['afterInit'](){const _0xf2d753=this['editor'];_0xf2d753['plugins']['has']('MentionEditing')&&_0xf2d753['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x27a789{['afterInit'](){const _0x1a5fc2=this['editor'],_0xf74dff=_0x1a5fc2['plugins']['get']('TrackChangesEditing');_0x1a5fc2['plugins']['has']('MultiLevelList')&&(_0xf74dff['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0xf74dff['_descriptionFactory']['registerDescriptionCallback'](_0x3ca988=>this['handleDescriptions'](_0x3ca988)));}['handleDescriptions'](_0x473e54){const _0x31671f=this['editor']['locale'],{data:_0x5d8f06}=_0x473e54,_0x510df4={'type':'format','content':''};if(_0x5d8f06&&'listMarkerStyle'==_0x5d8f06['key']){if(!_0x5d8f06['oldValue'])return{'type':'format','content':o(_0x31671f,'*Set\x20format:*\x20%0',o(_0x31671f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d8f06['newValue']+')'};if(!_0x5d8f06['newValue']){let _0x3ba5da=_0x473e54['head'];for(;_0x3ba5da;){if(_0x3ba5da['data']&&'listType'==_0x3ba5da['data']['key']&&_0x3ba5da['data']['newValue'])return _0x510df4;_0x3ba5da=_0x3ba5da['next'];}return{'type':'format','content':o(_0x31671f,'*Remove\x20format:*\x20%0',o(_0x31671f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x5d8f06['oldValue']+')'};}}}}class mt extends _0x27a789{['afterInit'](){const _0x48b51c=this['editor'];if(!_0x48b51c['plugins']['has']('PageBreakEditing'))return;_0x48b51c['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x4d5895=_0x48b51c['plugins']['get']('TrackChangesEditing'),_0x491d57=_0x48b51c['locale'];_0x4d5895['_descriptionFactory']['registerElementLabel']('pageBreak',_0x55cc44=>o(_0x491d57,'ELEMENT_PAGE_BREAK',_0x55cc44));}}class dt extends _0x27a789{['afterInit'](){const _0x3de400=this['editor'];if(!_0x3de400['plugins']['has']('Paragraph'))return;const _0x9537ed=_0x3de400['locale'],_0x33cefd=_0x3de400['plugins']['get']('TrackChangesEditing');_0x33cefd['_descriptionFactory']['registerElementLabel']('paragraph',_0x29d699=>o(_0x9537ed,'ELEMENT_PARAGRAPH',_0x29d699)),_0x33cefd['_enableDefaultAttributesIntegration']('paragraph'),_0x33cefd['enableCommand']('insertParagraph'),_0x3de400['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x3de400),{'priority':'highest'}),_0x3de400['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x502fab,_0x18bd3b,_0x1ea37a)=>{_0x1ea37a['options']['showSuggestionHighlights']&&nr(_0x3de400,{'showActiveMarker':!0x1})(_0x502fab,_0x18bd3b,_0x1ea37a);},{'priority':'highest'});const _0x3e8e01=_0x33cefd['_descriptionFactory'];_0x3e8e01['registerDescriptionCallback'](_0x21cf3c=>{if('insertion'!==_0x21cf3c['type'])return;const {start:_0x681aac,end:_0xcb3b9c}=_0x21cf3c['getFirstRange']();if(!_0x681aac['isTouching'](_0xcb3b9c)||!_0x681aac['nodeAfter'])return;const _0x28f209=_0x3de400['model']['schema'],_0x190827=_0x681aac['nodeAfter'];return _0x28f209['isBlock'](_0x190827)&&!_0x28f209['isLimit'](_0x190827)&&_0x28f209['checkChild'](_0x190827,'$text')?{'type':'insertion','content':o(_0x9537ed,'*Insert:*\x20%0',_0x3e8e01['getItemLabel'](_0x190827,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x529e88=this['editor'],_0x392e4c=_0x529e88['locale'];_0x529e88['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x41f2ba=>{if('formatBlock'!=_0x41f2ba['type'])return;const {data:_0x2f40c8}=_0x41f2ba;return _0x2f40c8&&'paragraph'==_0x2f40c8['commandName']?{'type':'format','content':o(_0x392e4c,'*Change\x20to:*\x20%0',o(_0x392e4c,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x288e23,{showActiveMarker:_0x5bef45=!0x0}={}){return(_0x56b0b3,_0xe5afea,_0x5db177)=>{const _0x33d2c0=_0x288e23['plugins']['get']('TrackChangesEditing'),_0x3367eb=_0xe5afea['markerRange']['start'],_0x529ae1=_0xe5afea['markerRange']['end'],_0x3945a8=_0x288e23['model']['schema'];if(!_0x3367eb['isTouching'](_0x529ae1)||!_0x3367eb['nodeAfter'])return;const _0x3be774=_0x3367eb['nodeAfter'];if(_0x3945a8['isBlock'](_0x3be774)&&!_0x3945a8['isLimit'](_0x3be774)&&_0x3945a8['checkChild'](_0x3be774,'$text')){if(!_0x5db177['consumable']['consume'](_0xe5afea['markerRange'],_0x56b0b3['name']))return;const _0x57771b=_0x5db177['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x212248=_0x5db177['mapper']['toViewPosition'](_0x529ae1);_0x5bef45&&_0x33d2c0['activeMarkers']['includes'](_0xe5afea['markerName'])&&_0x5db177['writer']['addClass']('ck-suggestion-marker--active',_0x57771b),_0x5db177['writer']['insert'](_0x212248,_0x57771b),_0x5db177['mapper']['bindElementToMarker'](_0x57771b,_0xe5afea['markerName']);}};}class pt extends _0x27a789{['afterInit'](){const _0xdfa434=this['editor'];if(!_0xdfa434['plugins']['has']('RemoveFormatEditing'))return;_0xdfa434['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x23be90=this['editor'];_0x23be90['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x27537f=>{if('formatBlock'!=_0x27537f['type']&&'formatInline'!=_0x27537f['type'])return;const {data:_0x5757aa}=_0x27537f;return _0x5757aa&&'removeFormat'==_0x5757aa['commandName']?{'type':'format','content':o(_0x23be90['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x27a789{['afterInit'](){const _0x19a494=this['editor'];if(!_0x19a494['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x17facc=_0x19a494['plugins']['get']('TrackChangesEditing');_0x17facc['enableCommand']('goToPreviousRestrictedEditingException'),_0x17facc['enableCommand']('goToNextRestrictedEditingException');const _0x4f6de5=_0x19a494['plugins']['get']('RestrictedEditingModeEditing');_0x4f6de5['enableCommand']('trackChanges'),_0x4f6de5['enableCommand']('acceptSuggestion'),_0x4f6de5['enableCommand']('discardSuggestion'),_0x4f6de5['enableCommand']('acceptAllSuggestions'),_0x4f6de5['enableCommand']('discardAllSuggestions'),_0x4f6de5['enableCommand']('acceptSelectedSuggestions'),_0x4f6de5['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x27a789{static get['requires'](){return[_0x6458fa];}['init'](){const _0x2c21c2=this['editor'],_0x41a89c=_0x2c21c2['plugins']['get']('TrackChangesEditing');_0x41a89c['enableCommand']('shiftEnter'),_0x2c21c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x2c21c2),{'priority':'high'}),_0x2c21c2['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x2c21c2),{'priority':'high'}),_0x2c21c2['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0xc4b35a,_0x112a95,_0x5ac39c)=>{_0x5ac39c['options']['showSuggestionHighlights']&&de(_0x2c21c2,{'showActiveMarker':!0x1})(_0xc4b35a,_0x112a95,_0x5ac39c);}),_0x41a89c['_descriptionFactory']['registerElementLabel']('softBreak',_0x4624c0=>o(_0x2c21c2['locale'],'ELEMENT_LINE_BREAK',_0x4624c0));}}function de(_0x402ebe,{showActiveMarker:_0x4eba15=!0x0}={}){return(_0x604ab7,_0x3679ab,_0x2c534c)=>{const _0x502949=_0x402ebe['plugins']['get']('TrackChangesEditing');if(!_0x2c534c['consumable']['test'](_0x3679ab['markerRange'],_0x604ab7['name']))return;const _0x3caf91=_0x402ebe['model'];for(const _0x36e430 of _0x3679ab['markerRange']['getItems']()){if(!_0x36e430['is']('element','softBreak'))continue;const _0x131c68='deletion'==_0x3679ab['markerName']['split'](':')[0x1]?'merge':'split',_0x581146=_0x2c534c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x131c68}),_0x5dea25=_0x2c534c['mapper']['toViewPosition'](_0x3caf91['createPositionBefore'](_0x36e430));_0x4eba15&&_0x502949['activeMarkers']['includes'](_0x3679ab['markerName'])&&_0x2c534c['writer']['addClass']('ck-suggestion-marker--active',_0x581146),_0x2c534c['writer']['insert'](_0x5dea25,_0x581146),_0x2c534c['mapper']['bindElementToMarker'](_0x581146,_0x3679ab['markerName']);}};}class wt extends _0x27a789{['afterInit'](){const _0x547c3b=this['editor'],_0x1c2e9e=_0x547c3b['model'],_0x23a11b=_0x547c3b['locale'];if(!_0x547c3b['plugins']['has']('StandardEditingModeEditing'))return;const _0x297682=_0x547c3b['plugins']['get']('TrackChangesEditing'),_0xde4f5f='restrictedEditingException',_0x4d6f48=_0x547c3b['commands']['get'](_0xde4f5f);_0x297682['enableCommand'](_0xde4f5f,(_0x22c166,_0x29aad3={})=>{const _0x462281=_0x1c2e9e['document']['selection'];if(_0x462281['isCollapsed'])return void _0x22c166(_0x29aad3);const _0x5efb92=void 0x0!==_0x29aad3['forceValue']?_0x29aad3['forceValue']:!_0x4d6f48['value'];_0x1c2e9e['change'](()=>{const _0x88fd7a=Array['from'](_0x462281['getRanges']());for(const _0x5e07af of _0x88fd7a){const _0x33cba6=_0x5efb92?[_0x5e07af]:io(_0xde4f5f,_0x5e07af,_0x1c2e9e);for(const _0x301a8a of _0x33cba6)_0x297682['markInlineFormat'](_0x301a8a,{'commandName':_0xde4f5f,'commandParams':[{'forceValue':_0x5efb92}]});}});}),_0x297682['_descriptionFactory']['registerDescriptionCallback'](_0x533657=>{if('formatBlock'!=_0x533657['type']&&'formatInline'!=_0x533657['type'])return;const {data:_0x22ddd3}=_0x533657;return _0x22ddd3&&_0x22ddd3['commandName']==_0xde4f5f?_0x22ddd3['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x23a11b,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x23a11b,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x27a789{['afterInit'](){const _0x320ebf=this['editor'];if(!_0x320ebf['plugins']['has']('Style')||!_0x320ebf['plugins']['has']('DataSchema'))return;const _0x27506e=_0x320ebf['plugins']['get']('TrackChangesEditing'),_0xd7e625=_0x320ebf['locale'],_0x185d13=_0x320ebf['config']['get']('style')||{},_0x4acf04=_0x320ebf['plugins']['get']('GeneralHtmlSupport'),_0x33a544=_0x320ebf['plugins']['get']('StyleUtils')['normalizeConfig'](_0x320ebf['plugins']['get']('DataSchema'),_0x185d13['definitions']);_0x27506e['_enableDefaultAttributesIntegration']('style');const _0x305503=new Set();for(const _0x513a8c of _0x33a544['block']){const _0x20aeaa=_0x4acf04['getGhsAttributeNameForElement'](_0x513a8c['element']);_0x305503['add'](_0x20aeaa);}const _0x12e162=new Set();for(const _0x1d0740 of _0x33a544['inline']){const _0xd88b0f=_0x4acf04['getGhsAttributeNameForElement'](_0x1d0740['element']);_0x12e162['add'](_0xd88b0f);for(const _0x5f5657 of _0x1d0740['ghsAttributes'])_0x12e162['add'](_0x5f5657);}for(const _0x44f995 of _0x305503)_0x27506e['_registerBlockAttribute'](_0x44f995),_0x27506e['_descriptionFactory']['registerAttributeLabel'](_0x44f995,o(_0xd7e625,'FORMAT_STYLE'));for(const _0x4c5cf1 of _0x12e162)_0x27506e['_registerInlineAttribute'](_0x4c5cf1),_0x27506e['_descriptionFactory']['registerAttributeLabel'](_0x4c5cf1,o(_0xd7e625,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x531d4e=this['editor'],_0x326bdc=_0x531d4e['locale'];_0x531d4e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5c1b4c=>{if('formatBlock'!=_0x5c1b4c['type']&&'formatInline'!=_0x5c1b4c['type'])return;const {data:_0x4ad09c}=_0x5c1b4c;return _0x4ad09c&&'style'===_0x4ad09c['commandName']?_0x4ad09c['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x326bdc,'*Set\x20format:*\x20%0',_0x4ad09c['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x326bdc,'*Remove\x20format:*\x20%0',_0x4ad09c['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x27a789{['afterInit'](){const _0x2b6584=this['editor'],_0x5820c9=_0x2b6584['model']['document']['selection'];if(!_0x2b6584['plugins']['has']('TableEditing'))return;const _0x48ff03=_0x2b6584['locale'],_0x1545f6=_0x2b6584['plugins']['get']('TrackChangesEditing'),_0x5d68cc=_0x2b6584['plugins']['get']('TableUtils');_0x1545f6['_descriptionFactory']['registerElementLabel']('table',_0x25decb=>o(_0x48ff03,'ELEMENT_TABLE',_0x25decb)),this['_setupColumnsRowsFixing'](),_0x1545f6['enableCommand']('insertTable'),_0x1545f6['enableCommand']('selectTableRow'),_0x1545f6['enableCommand']('selectTableColumn');for(const _0xfd23e9 of['insertTableRowAbove','insertTableRowBelow']){const _0x3aa160=_0x2b6584['commands']['get'](_0xfd23e9);_0x1545f6['enableCommand'](_0xfd23e9,_0xd8c5d3=>{_0x2b6584['model']['change'](_0x141bba=>{_0xd8c5d3();const _0x2082f0='above'===_0x3aa160['order'],_0x249a17=_0x5d68cc['getSelectionAffectedTableCells'](_0x5820c9),_0x19830a=_0x5d68cc['getRowIndexes'](_0x249a17),_0x15d582=_0x2082f0?_0x19830a['first']-0x1:_0x19830a['last']+0x1,_0x410fdb=_0x249a17[0x0]['findAncestor']('table'),_0x5b1f64=_0x5d68cc['createTableWalker'](_0x410fdb,{'startRow':_0x15d582,'endRow':_0x15d582}),_0x173564=Array['from'](_0x5b1f64)['map'](_0x3bc007=>_0x141bba['createRangeOn'](_0x3bc007['cell']));_0x1545f6['markMultiRangeInsertion'](_0x173564,'tableRow');});});}for(const _0xacd83 of['insertTableColumnLeft','insertTableColumnRight']){const _0x3fb941=_0x2b6584['commands']['get'](_0xacd83);_0x1545f6['enableCommand'](_0xacd83,_0x1a36ec=>{_0x2b6584['model']['change'](_0x597162=>{_0x1a36ec();const _0x361183='left'===_0x3fb941['order'],_0x119bb9=_0x5d68cc['getSelectionAffectedTableCells'](_0x5820c9),_0x1dc125=_0x5d68cc['getColumnIndexes'](_0x119bb9),_0x13dd02=_0x361183?_0x1dc125['first']-0x1:_0x1dc125['last']+0x1,_0x3cf84a=_0x119bb9[0x0]['findAncestor']('table'),_0x1ade27=_0x5d68cc['createTableWalker'](_0x3cf84a,{'startRow':0x0,'column':_0x13dd02,'includeAllSlots':!0x1}),_0x20d278=Array['from'](_0x1ade27)['map'](_0x3d11d8=>_0x597162['createRangeOn'](_0x3d11d8['cell']));_0x1545f6['markMultiRangeInsertion'](_0x20d278,'tableColumn');});});}for(const _0x583c51 of['removeTableRow','removeTableColumn']){const _0x3f4918=_0x583c51['substr'](0xb),_0x4fa0db=_0x3f4918['toLowerCase'](),_0x349990=_0x4fa0db['substr'](0x0,0x3)+'span',_0xa21ded='table'+_0x3f4918,_0x5af423='min'+_0x3f4918,_0x316f93='max'+_0x3f4918;_0x1545f6['enableCommand'](_0x583c51,()=>{_0x2b6584['model']['change'](_0x245eca=>{const _0x6f5229=_0x5d68cc['getSelectionAffectedTableCells'](_0x5820c9),_0x39d79c=_0x6f5229[0x0]['findAncestor']('table');let _0x391597;if('removeTableRow'==_0x583c51){const _0x480439=_0x5d68cc['getRowIndexes'](_0x6f5229);_0x391597={'startRow':_0x480439['first'],'endRow':_0x480439['last'],'includeAllSlots':!0x0};}else{const _0x57234b=_0x5d68cc['getColumnIndexes'](_0x6f5229);_0x391597={'startColumn':_0x57234b['first'],'endColumn':_0x57234b['last'],'includeAllSlots':!0x0};}const _0x2bccfc=_0x5d68cc['createTableWalker'](_0x39d79c,_0x391597),_0x513349=Array['from'](_0x2bccfc)['map'](({cell:_0x367525})=>_0x367525),_0x432a2a=Ee(_0x513349['filter'](_0x3084d5=>_0x3084d5['hasAttribute'](_0x349990))),_0x3cc23b=Ee(_0x513349['filter'](_0x5053ad=>!_0x5053ad['hasAttribute'](_0x349990)))['map'](_0x35c392=>_0x245eca['createRangeOn'](_0x35c392)),_0x4f7d75=_0x1545f6['markMultiRangeDeletion'](_0x3cc23b,_0xa21ded);if(_0x4f7d75&&('tableRow'==_0x4f7d75['subType']||'tableColumn'==_0x4f7d75['subType'])){const _0x11a4e8=this['_getSuggestionCoords'](_0x4f7d75);for(const _0x14b4fc of _0x432a2a){const _0x4b09c5=_0x245eca['createRangeOn'](_0x14b4fc),_0xc7b8eb=_0x5d68cc['getCellLocation'](_0x14b4fc),_0x229ec7=_0x14b4fc['getAttribute'](_0x349990)-0x1,_0x5445d9=_0x11a4e8[_0x5af423],_0x265811=_0x11a4e8[_0x316f93];_0x5445d9<=_0xc7b8eb[_0x4fa0db]&&_0xc7b8eb[_0x4fa0db]+_0x229ec7<=_0x265811&&_0x4f7d75['addRange'](_0x4b09c5);}}});});}function _0x39b006(_0x43c67d){const _0x59b598=Array['from'](_0x5820c9['getRanges']())['map'](_0x66cd39=>_0x57a73e['fromRange'](_0x66cd39));_0x2b6584['model']['change'](_0x2ddcf2=>{const _0x4a5647=_0x2ddcf2['batch'];_0x43c67d=_0x43c67d['filter'](_0x125c7a=>'$graveyard'!=_0x125c7a['root']['rootName']),_0x2ddcf2['setSelection'](_0x43c67d),_0x2b6584['commands']['get']('removeTableRow')['refresh'](),_0x2b6584['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x2b6584['model']['enqueueChange'](()=>{_0x2b6584['model']['enqueueChange'](_0x4a5647,_0x15caa0=>{const _0x14dc2a=_0x59b598['filter'](_0x30d624=>'$graveyard'!=_0x30d624['root']['rootName']);_0x14dc2a['length']>0x0&&_0x15caa0['setSelection'](_0x14dc2a);for(const _0x39f1a5 of _0x59b598)_0x39f1a5['detach']();});});});}function _0x58418b(_0x3a4af7){_0x2b6584['model']['change'](_0x3b9ac9=>{const _0x461521=Array['from'](_0x5820c9['getRanges']())['map'](_0x235697=>_0x57a73e['fromRange'](_0x235697)),_0x409ece=[];for(const _0x1c1347 of _0x3a4af7)for(const _0x23f592 of _0x1c1347['getItems']({'shallow':!0x0}))_0x409ece['push'](_0x23f592);for(const _0x172a08 of _0x409ece)'$graveyard'!=_0x172a08['root']['rootName']&&(_0x3b9ac9['setSelection'](_0x3b9ac9['createPositionAt'](_0x172a08,0x0)),_0x2b6584['commands']['get']('removeTableColumn')['refresh'](),_0x2b6584['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x484e5c=_0x461521['filter'](_0x587bbe=>'$graveyard'!=_0x587bbe['root']['rootName']);_0x484e5c['length']>0x0&&_0x3b9ac9['setSelection'](_0x484e5c);for(const _0x35fc80 of _0x461521)_0x35fc80['detach']();});}function _0x3aa922(_0x6c51a1,_0x396f03){return _0x396f03['every'](_0x4fff0a=>_0x6c51a1['some'](_0x1c1ab9=>_0x1c1ab9['end']['isEqual'](_0x4fff0a['start'])||_0x4fff0a['end']['isEqual'](_0x1c1ab9['start'])));}function _0x47ae7d(_0x1404ec,_0x58ea9b){return _0x1404ec['some'](_0x48b839=>_0x58ea9b['some'](_0x1ddd4a=>_0x48b839['end']['isTouching'](_0x1ddd4a['start'])));}_0x2b6584['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x56bcbf,_0x43c05e,_0x37c400)=>{if(!_0x37c400['options']['showSuggestionHighlights'])return;const _0x271a1c=_0x43c05e['item'];if(!_0x271a1c)return;const _0xe777c5=_0x37c400['mapper']['toViewElement'](_0x271a1c);function _0x56bdf2(_0x558484){return Array['isArray'](_0x558484)?_0x558484:[_0x558484];}_0xe777c5&&'tableCell'===_0x271a1c['name']&&_0x34ca91(_0xe777c5,_0x37c400['writer'],(_0x55d094,_0x121bb5,_0x2b28e1)=>_0x2b28e1['addClass'](_0x56bdf2(_0x121bb5['classes']),_0x55d094),(_0x248a11,_0x805671,_0x2bf759)=>_0x2bf759['removeClass'](_0x56bdf2(_0x805671['classes']),_0x248a11));},{'priority':'highest'}),_0x1545f6['_descriptionFactory']['registerDescriptionCallback'](_0x3074cf=>{if('insertion'!=_0x3074cf['type']&&'deletion'!=_0x3074cf['type'])return;const _0x2839ba=_0x3074cf['getContainedElement']();if(null!=_0x2839ba&&_0x2839ba['is']('element','table')){if('insertion'==_0x3074cf['type']){const _0x5b7aa7=_0x3074cf['getItems']()['filter'](_0x322ab5=>_0x322ab5['is']('$textProxy'))['map'](_0x3a7e0a=>_0x3a7e0a['data']);if(_0x5b7aa7['length'])return{'type':'insertion','content':o(_0x48ff03,'*Insert:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5b7aa7['join']('\x20')+'\x22'))};}if('deletion'==_0x3074cf['type']){const _0x31570b=_0x3074cf['getItems']()['filter'](_0x19e237=>_0x19e237['is']('$textProxy'))['map'](_0x5327a9=>_0x5327a9['data']);if(_0x31570b['length'])return{'type':'deletion','content':o(_0x48ff03,'*Remove:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x31570b['join']('\x20')+'\x22'))};}}}),_0x1545f6['_descriptionFactory']['registerDescriptionCallback'](_0x14a358=>{if('tableRow'==_0x14a358['subType']){const _0x36dcb3=_0x14a358['getItems']()['filter'](_0x3dba4c=>_0x3dba4c['is']('$textProxy'))['map'](_0x241b86=>_0x241b86['data']),_0x726772=this['_getSuggestionCoords'](_0x14a358),_0x353935=_0x726772['maxRow']-_0x726772['minRow']+0x1;if('insertion'==_0x14a358['type'])return _0x36dcb3['length']?{'type':'insertion','content':o(_0x48ff03,'*Insert:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x353935,'\x22'+_0x36dcb3['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48ff03,'*Insert:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_ROW',_0x353935))};if('deletion'==_0x14a358['type'])return _0x36dcb3['length']?{'type':'deletion','content':o(_0x48ff03,'*Remove:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x353935,'\x22'+_0x36dcb3['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48ff03,'*Remove:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_ROW',_0x353935))};}if('tableColumn'==_0x14a358['subType']){const _0x3eab2f=_0x14a358['getItems']()['filter'](_0x36a2d0=>_0x36a2d0['is']('$textProxy'))['map'](_0x2a9033=>_0x2a9033['data']),_0x4892ce=this['_getSuggestionCoords'](_0x14a358),_0x163738=_0x4892ce['maxColumn']-_0x4892ce['minColumn']+0x1;if('insertion'==_0x14a358['type'])return _0x3eab2f['length']?{'type':'insertion','content':o(_0x48ff03,'*Insert:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x163738,'\x22'+_0x3eab2f['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0x48ff03,'*Insert:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_COLUMN',_0x163738))};if('deletion'==_0x14a358['type'])return _0x3eab2f['length']?{'type':'deletion','content':o(_0x48ff03,'*Remove:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x163738,'\x22'+_0x3eab2f['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0x48ff03,'*Remove:*\x20%0',o(_0x48ff03,'ELEMENT_TABLE_COLUMN',_0x163738))};}}),_0x1545f6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x39b006),_0x1545f6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x39b006),_0x1545f6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x58418b),_0x1545f6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x58418b),_0x1545f6['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x3aa922),_0x1545f6['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x3aa922),_0x1545f6['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x47ae7d),_0x1545f6['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x47ae7d);}['_acceptFormatSuggestionCallbackFactory'](){const _0x1e6018=this['editor'],_0x494352=_0x1e6018['model']['document']['selection'];return(_0x9e5d3b,_0x45b0e4)=>{_0x1e6018['model']['change'](_0x433110=>{const {commandName:_0x1bbb84,commandParams:_0x4bfc79}=_0x45b0e4;let _0x58756b=_0x9e5d3b[0x0]['end']['nodeBefore'];_0x4bfc79&&_0x4bfc79[0x0]&&!0x1===_0x4bfc79[0x0]['forceValue']&&(_0x58756b=_0x9e5d3b[0x0]['start']['nodeAfter']);const _0x5b30f6=_0x433110['createRangeIn'](_0x58756b);if('$graveyard'==_0x5b30f6['root']['rootName'])return;const _0x202202=Array['from'](_0x494352['getRanges']())['map'](_0x1b693a=>_0x57a73e['fromRange'](_0x1b693a));_0x433110['setSelection'](_0x5b30f6),_0x1e6018['commands']['get'](_0x1bbb84)['refresh'](),_0x4bfc79['push']({'forceDefaultExecution':!0x0}),_0x1e6018['execute'](_0x1bbb84,..._0x4bfc79);const _0x35570e=_0x202202['filter'](_0x53a806=>'$graveyard'!=_0x53a806['root']['rootName']);_0x35570e['length']>0x0&&_0x433110['setSelection'](_0x35570e);for(const _0xb6f440 of _0x202202)_0xb6f440['detach']();});};}['_getCoordsForCells'](_0x3a3d6c){const _0x2eadf8=this['editor']['plugins']['get']('TableUtils');let _0x25235e=Number['MAX_SAFE_INTEGER'],_0x287ee0=Number['MIN_SAFE_INTEGER'],_0x4e5928=Number['MAX_SAFE_INTEGER'],_0x3ed71e=Number['MIN_SAFE_INTEGER'];for(const _0xfc246a of _0x3a3d6c){if('$graveyard'==_0xfc246a['root']['rootName'])continue;const {row:_0x5c855a,column:_0x3d44b9}=_0x2eadf8['getCellLocation'](_0xfc246a),_0x53b83b=_0xfc246a['hasAttribute']('rowspan')?_0xfc246a['getAttribute']('rowspan')-0x1:0x0,_0x442660=_0xfc246a['hasAttribute']('colspan')?_0xfc246a['getAttribute']('colspan')-0x1:0x0;_0x25235e=_0x5c855a<_0x25235e?_0x5c855a:_0x25235e,_0x287ee0=_0x5c855a+_0x53b83b>_0x287ee0?_0x5c855a+_0x53b83b:_0x287ee0,_0x4e5928=_0x3d44b9<_0x4e5928?_0x3d44b9:_0x4e5928,_0x3ed71e=_0x3d44b9+_0x442660>_0x3ed71e?_0x3d44b9+_0x442660:_0x3ed71e;}return{'minRow':_0x25235e,'maxRow':_0x287ee0,'minColumn':_0x4e5928,'maxColumn':_0x3ed71e};}['_setupColumnsRowsFixing'](){const _0x23e1e9=this['editor'],_0x119104=_0x23e1e9['plugins']['get']('TrackChangesEditing'),_0x271def=_0x23e1e9['plugins']['get']('TableUtils');_0x23e1e9['model']['document']['on']('change:data',()=>{const _0x3ff86d=Array['from'](_0x23e1e9['model']['document']['differ']['getChangedMarkers']());for(const {name:_0xc02ace,data:_0xd983aa}of _0x3ff86d){const {group:_0x3803e2,id:_0x466bc1,subType:_0x2e2049}=_0x119104['_splitMarkerName'](_0xc02ace);if('suggestion'!=_0x3803e2)continue;if(null!=_0xd983aa['oldRange'])continue;const _0x3e4fbc=_0x119104['getSuggestion'](_0x466bc1);this['_tablePostFixingSubtypes']['includes'](_0x2e2049)&&this['_tableSuggestions']['add'](_0x3e4fbc);}},{'priority':'low'});const _0x58d618=(_0x1fd12d,_0x160db7)=>{let _0x174a4a=!0x1;const _0x481ae5=_0x160db7['createRangeOn'](_0x1fd12d),_0x454d96=_0x1fd12d['findAncestor']('table'),_0x45cd85=_0x271def['getCellLocation'](_0x1fd12d);for(const _0x531e2f of this['_tableSuggestions']){const _0x303e6e=_0x531e2f['subType'],_0x39da30=_0x303e6e['startsWith']('tablePaste'),_0x2c16e6=_0x303e6e['substr'](_0x39da30?0xa:0x5),_0x1eb29f=_0x2c16e6['toLowerCase'](),_0x2f84ea=_0x1eb29f['substr'](0x0,0x3)+'span',_0x3fcbd8='min'+_0x2c16e6,_0x457cfa='max'+_0x2c16e6;if(!_0x531e2f['isInContent'])continue;if(_0x454d96!=_0x531e2f['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x531e2f['isIntersectingWithRange'](_0x481ae5))continue;const _0x2a9c39=_0x1fd12d['hasAttribute'](_0x2f84ea)?_0x1fd12d['getAttribute'](_0x2f84ea)-0x1:0x0,_0x224117=this['_getSuggestionCoords'](_0x531e2f),_0x2bae01=_0x224117[_0x3fcbd8],_0x387bcd=_0x224117[_0x457cfa];_0x2bae01<=_0x45cd85[_0x1eb29f]&&_0x45cd85[_0x1eb29f]+_0x2a9c39<=_0x387bcd&&(_0x531e2f['addRange'](_0x481ae5),_0x174a4a=!0x0);}return _0x174a4a;};_0x23e1e9['model']['document']['registerPostFixer'](_0x2acbe3=>{let _0x5ab33a=!0x1;for(const _0x1f16dc of _0x23e1e9['model']['document']['differ']['getChanges']())if('insert'==_0x1f16dc['type']){if('tableRow'==_0x1f16dc['name']){for(const _0x106997 of _0x1f16dc['position']['nodeAfter']['getChildren']())_0x5ab33a=_0x5ab33a||_0x58d618(_0x106997,_0x2acbe3);}else'tableCell'==_0x1f16dc['name']&&(_0x5ab33a=_0x5ab33a||_0x58d618(_0x1f16dc['position']['nodeAfter'],_0x2acbe3));}return _0x5ab33a;});}['_getSuggestionCoords'](_0x216cc8){return this['_getCoordsForCells'](_0x216cc8['getRanges']()['map'](_0x386db0=>_0x386db0['start']['nodeAfter']));}constructor(_0x5640f5){super(_0x5640f5),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0xb5f216){return Array['from'](new Set(_0xb5f216)['values']());}class St extends _0x27a789{static get['requires'](){return[jt];}['afterInit'](){const _0x2b59bd=this['editor'],_0x595f63=_0x2b59bd['model']['document']['selection'],_0x43961f=_0x2b59bd['locale'];if(!_0x2b59bd['plugins']['has']('TableEditing'))return;const _0x2c97ae=_0x2b59bd['plugins']['get']('TrackChangesEditing'),_0x4e05b5=_0x2b59bd['plugins']['get']('TableUtils'),_0x26973d=_0x2b59bd['plugins']['get'](jt);_0x26973d['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x2c97ae['enableCommand']('mergeTableCells',()=>{const _0x4f0aed=_0x4e05b5['getSelectionAffectedTableCells'](_0x2b59bd['model']['document']['selection']);_0x2b59bd['model']['change'](()=>{_0x2c97ae['markMultiRangeBlockFormat'](_0x4f0aed,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2b59bd['commands']['get']('mergeTableCells')['on']('execute',(_0x2458e0,_0x542423)=>{_0x2b59bd['commands']['get']('trackChanges')['value']&&(_0x542423['length']>0x0&&_0x542423[_0x542423['length']-0x1]&&_0x542423[_0x542423['length']-0x1]['forceDefaultExecution']||_0x2c97ae['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x2458e0['stop']());},{'priority':'highest'});for(const _0x3d2147 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x200559=_0x2b59bd['commands']['get'](_0x3d2147);_0x2c97ae['enableCommand'](_0x3d2147,()=>{const _0x3f0866=_0x2b59bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x49f3de=>_0x49f3de['is']('element','tableCell')),_0x5b9152=_0x200559['value'];_0x2b59bd['model']['change'](()=>{_0x2c97ae['markMultiRangeBlockFormat']([_0x3f0866,_0x5b9152],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0x47720b of['splitTableCellVertically','splitTableCellHorizontally']){const _0x2d095c=_0x2b59bd['commands']['get'](_0x47720b);_0x2c97ae['enableCommand'](_0x47720b,()=>{const _0x57d6be=_0x4e05b5['getSelectionAffectedTableCells'](_0x2b59bd['model']['document']['selection'])[0x0],_0x525765=_0x57d6be['findAncestor']('table'),{column:_0x5730a8,row:_0x10f671}=_0x4e05b5['getCellLocation'](_0x57d6be);let _0x3e50e2=[];if('horizontally'==_0x2d095c['direction']){const _0xe98d67=_0x4e05b5['createTableWalker'](_0x525765,{'startRow':_0x10f671,'endRow':_0x10f671,'includeAllSlots':!0x0});_0x3e50e2=Array['from'](_0xe98d67)['map'](_0x1a77b1=>_0x1a77b1['cell']);}else{const _0x26ccb2=_0x4e05b5['createTableWalker'](_0x525765,{'column':_0x5730a8,'includeAllSlots':!0x0});_0x3e50e2=Array['from'](_0x26ccb2)['map'](_0x1d5aa4=>_0x1d5aa4['cell']);}_0x2b59bd['model']['change'](_0x478919=>{_0x2c97ae['markBlockFormat'](_0x478919['createRangeOn'](_0x57d6be),{'commandName':_0x47720b,'commandParams':[]},_0x3e50e2,_0x47720b);});});}_0x2c97ae['_descriptionFactory']['registerDescriptionCallback'](_0x4e0999=>{if('formatBlock'!=_0x4e0999['type']&&'formatInline'!=_0x4e0999['type'])return;const {data:_0x22d472}=_0x4e0999;return _0x22d472&&'mergeTableCells'==_0x22d472['commandName']?{'type':'format','content':o(_0x43961f,'*Merge\x20cells*')}:void 0x0;}),_0x2c97ae['_descriptionFactory']['registerDescriptionCallback'](_0x34166a=>{if('formatBlock'!=_0x34166a['type']&&'formatInline'!=_0x34166a['type'])return;const {data:_0x52ee8f}=_0x34166a;return _0x52ee8f?'splitTableCellVertically'==_0x52ee8f['commandName']?{'type':'format','content':o(_0x43961f,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x52ee8f['commandName']?{'type':'format','content':o(_0x43961f,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x237fa0=_0x26973d['_acceptFormatSuggestionCallbackFactory']();for(const _0x116570 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x2c97ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x116570,'accept',_0x237fa0);for(const _0x6edb7b of['splitTableCellVertically','splitTableCellHorizontally'])_0x2c97ae['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x6edb7b,'accept',_0x237fa0);_0x2c97ae['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x14a102=>{_0x2b59bd['model']['change'](_0x7c7646=>{const _0x48a575=Array['from'](_0x595f63['getRanges']())['map'](_0x14c4b5=>_0x57a73e['fromRange'](_0x14c4b5));_0x7c7646['setSelection'](_0x14a102),_0x2b59bd['commands']['get']('mergeTableCells')['refresh'](),_0x2b59bd['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x589ed4=_0x48a575['filter'](_0x5e463e=>'$graveyard'!=_0x5e463e['root']['rootName']);_0x589ed4['length']>0x0&&_0x7c7646['setSelection'](_0x589ed4);for(const _0x3f86c4 of _0x48a575)_0x3f86c4['detach']();});});for(const _0x16af1b of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x15553a=_0x2b59bd['commands']['get'](_0x16af1b);_0x15553a['on']('set:isEnabled',(_0xd7070e,_0x568f07,_0x12eb3c)=>{if(_0x12eb3c){const _0x4d594d=_0x2b59bd['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0xe6d576=>_0xe6d576['is']('element','tableCell'));this['_areMergableCells'](_0x15553a['value'],_0x4d594d)||(_0xd7070e['return']=!0x1,_0xd7070e['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x57e966=this['editor']['commands']['get']('mergeTableCells'),_0x4bfb47=this['editor']['plugins']['get']('TableUtils');if(!_0x57e966['isEnabled'])return!0x1;const _0x52257=_0x4bfb47['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x447fa0 of _0x52257)for(const _0x4f68c1 of _0x52257)if(_0x447fa0!=_0x4f68c1&&!this['_areMergableCells'](_0x447fa0,_0x4f68c1))return!0x1;return!0x0;}['_areMergableCells'](_0x195f44,_0x3f10d8){const _0x106e59=this['editor']['plugins']['get']('TrackChangesEditing'),_0x25dd50=this['editor']['model']['createRangeOn'](_0x195f44),_0x538600=this['editor']['model']['createRangeOn'](_0x3f10d8),_0x1b0e8a=new Set(),_0xedb64d=new Set();for(const _0x297f4a of _0x106e59['getSuggestions']())if(('insertion'==_0x297f4a['type']||'deletion'==_0x297f4a['type']||'mergeTableCells'==_0x297f4a['subType'])&&_0x297f4a['isInContent']){for(const _0x3d910a of _0x297f4a['getRanges']())_0x3d910a['containsRange'](_0x25dd50,!0x0)&&_0x1b0e8a['add'](_0x297f4a['type']+':'+_0x297f4a['author']['id']),_0x3d910a['containsRange'](_0x538600,!0x0)&&_0xedb64d['add'](_0x297f4a['type']+':'+_0x297f4a['author']['id']);}if(_0x1b0e8a['size']!=_0xedb64d['size'])return!0x1;for(const _0x1d784d of _0x1b0e8a)if(!_0xedb64d['has'](_0x1d784d))return!0x1;return!0x0;}}class At extends _0x27a789{static get['requires'](){return[jt];}['afterInit'](){const _0x111847=this['editor'];if(!_0x111847['plugins']['has']('TableEditing'))return;const _0x4bf396=_0x111847['locale'],_0x2509ed=_0x111847['plugins']['get']('TrackChangesEditing');_0x2509ed['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x2509ed['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2509ed['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x4bf396,'FORMAT_HEADER_ROW')),_0x2509ed['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x4bf396,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x5bd10a=this['editor']['plugins']['get']('TrackChangesEditing'),_0x5324de=this['editor']['plugins']['get']('TableUtils'),_0x2d322b=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x226f2d({showActiveMarker:_0x550e5e=!0x0,setDataAttribute:_0x14b023=!0x0}={}){return(_0x6d8b99,_0x10f2c0,_0x3ed8d4)=>{const {type:_0x30070f,id:_0x4300dd}=_0x5bd10a['_splitMarkerName'](_0x10f2c0['markerName']),_0x5c6ff7=_0x5bd10a['getSuggestion'](_0x4300dd),_0x35b476=_0x5c6ff7['data'];if('formatBlock'!=_0x5c6ff7['type']||!_0x35b476||'setTableColumnHeader'!=_0x35b476['commandName'])return;if(_0x10f2c0['item'])return void _0x6d8b99['stop']();if(!_0x3ed8d4['consumable']['consume'](_0x10f2c0['markerRange'],_0x6d8b99['name']))return;const _0x257bcc=_0x10f2c0['markerRange']['start']['nodeAfter'],_0x5405f3=_0x10f2c0['markerRange']['end']['nodeBefore'],_0x1d9537=_0x257bcc['parent']['parent'],{column:_0x166db1}=_0x5324de['getCellLocation'](_0x257bcc),{column:_0x219f71}=_0x5324de['getCellLocation'](_0x5405f3);for(let _0x1ffe7c=_0x166db1;_0x1ffe7c<=_0x219f71;_0x1ffe7c++){const _0x6cfd93=_0x5324de['createTableWalker'](_0x1d9537,{'column':_0x1ffe7c,'includeAllSlots':!0x1});for(const _0x48d24a of _0x6cfd93){const _0x380512=_0x48d24a['cell'],_0x39037e=_0x3ed8d4['mapper']['toViewElement'](_0x380512);_0x3ed8d4['writer']['addClass']('ck-suggestion-marker-'+_0x30070f,_0x39037e),_0x14b023&&_0x3ed8d4['writer']['setAttribute']('data-suggestion',_0x4300dd,_0x39037e),_0x3ed8d4['mapper']['bindElementToMarker'](_0x39037e,_0x10f2c0['markerName']),_0x550e5e&&(_0x5bd10a['activeMarkers']['includes'](_0x10f2c0['markerName'])?_0x3ed8d4['writer']['addClass']('ck-suggestion-marker--active',_0x39037e):_0x3ed8d4['writer']['removeClass']('ck-suggestion-marker--active',_0x39037e));}}};}_0x5bd10a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x2d322b),_0x5bd10a['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x2d322b),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x226f2d(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x405e5f,_0x569bba,_0x506f9a)=>{_0x506f9a['options']['showSuggestionHighlights']&&_0x226f2d({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x405e5f,_0x569bba,_0x506f9a);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x120267,_0x429301,_0x4e9319)=>{const {type:_0x498ef7,id:_0x26f07a}=_0x5bd10a['_splitMarkerName'](_0x429301['markerName']),_0x52bc88=_0x5bd10a['getSuggestion'](_0x26f07a),_0x2194a3=_0x52bc88['data'];if('formatBlock'!=_0x52bc88['type']||!_0x2194a3||'setTableColumnHeader'!=_0x2194a3['commandName'])return;const _0x26e321=_0x4e9319['mapper']['markerNameToElements'](_0x429301['markerName']);if(_0x26e321){for(const _0x4a282d of _0x26e321)_0x4e9319['writer']['removeClass']('ck-suggestion-marker-'+_0x498ef7,_0x4a282d),_0x4e9319['writer']['removeClass']('ck-suggestion-marker--active',_0x4a282d),_0x4e9319['writer']['removeAttribute']('data-suggestion',_0x4a282d),_0x4e9319['mapper']['unbindElementFromMarkerName'](_0x4a282d,_0x429301['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x2397ee=this['editor'],_0x193ebe=_0x2397ee['locale'];function _0x585490(_0x37e97f){return{'type':'format','content':o(_0x193ebe,'*Format:*\x20%0',_0x37e97f)};}_0x2397ee['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4cd76f=>{if('formatBlock'!=_0x4cd76f['type'])return;const {data:_0x32543f}=_0x4cd76f;if(_0x32543f){if('setTableRowHeader'==_0x32543f['commandName']){const _0x3a832c=_0x32543f['commandParams'][0x0]['forceValue'];return _0x585490(o(_0x193ebe,_0x3a832c?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x32543f['commandName']){const _0x9e0823=_0x32543f['commandParams'][0x0]['forceValue'];return _0x585490(o(_0x193ebe,_0x9e0823?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x264afa=>[_0x264afa,null]));class It extends _0x27a789{static get['requires'](){return[jt];}['afterInit'](){const _0x1b73d5=this['editor'];if(!_0x1b73d5['plugins']['has']('TableClipboard'))return;const _0x446813=_0x1b73d5['plugins']['get']('TrackChangesEditing'),_0x25b54e=_0x1b73d5['plugins']['get']('TableUtils'),_0x56752a=_0x1b73d5['plugins']['get'](jt),_0x4196a1=_0x1b73d5['plugins']['get']('TableClipboard');_0x56752a['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x1b73d5['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x1b73d5['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x5c53df=null;_0x1b73d5['model']['on']('insertContent',(_0x15c890,_0x3c4bfc)=>{const [_0x459e74,_0x5e2921]=_0x3c4bfc,_0x59782f=_0x3c4bfc[_0x3c4bfc['length']-0x1];_0x59782f&&_0x59782f['forceDefaultExecution']||_0x446813['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x25d82b,_0x3fb110,_0x2b5901,_0x5487c4,_0x199c2d){if(_0x3fb110&&!_0x3fb110['is']('documentSelection'))return!0x1;const _0x542c43=_0x199c2d['getTableIfOnlyTableInContent'](_0x25d82b,_0x2b5901);if(!_0x542c43||!he(_0x542c43,void 0x0,_0x5487c4))return!0x1;const _0x5db105=_0x5487c4['getSelectionAffectedTableCells'](_0x2b5901['document']['selection']);if(!_0x5db105['length'])return!0x1;const _0x3478d5=_0x5db105[0x0]['findAncestor']('table'),_0x31599f=_0x5487c4['getRowIndexes'](_0x5db105),_0x417aa6=_0x5487c4['getColumnIndexes'](_0x5db105),_0x43cc7c={'startRow':_0x31599f['first'],'endRow':_0x31599f['last'],'startColumn':_0x417aa6['first'],'endColumn':_0x417aa6['last']};return 0x1==_0x5db105['length']&&(_0x43cc7c['endRow']+=_0x5487c4['getRows'](_0x542c43)-0x1,_0x43cc7c['endColumn']+=_0x5487c4['getColumns'](_0x542c43)-0x1),he(_0x3478d5,_0x43cc7c,_0x5487c4);}(_0x459e74,_0x5e2921,_0x1b73d5['model'],_0x25b54e,_0x4196a1)&&(_0x15c890['stop'](),_0x5c53df={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x1b73d5['model']['change'](()=>{_0x1b73d5['model']['insertContent'](_0x3c4bfc[0x0],_0x3c4bfc[0x1],_0x3c4bfc[0x2],{'forceDefaultExecution':!0x0});const _0x2e39a4=_0x21958e(),{rowInsertionRanges:_0x1061e3,columnInsertionRanges:_0x2cc375,insertionRanges:_0x33cb3f,deletionRanges:_0x4dc4c2,cells:_0x18fbed}=_0x5c53df;_0x1061e3['length']&&_0x446813['markMultiRangeInsertion'](_0x1061e3,'tablePasteRow',{'tablePasteChainId':_0x2e39a4}),_0x2cc375['length']&&_0x446813['markMultiRangeInsertion'](_0x2cc375,'tablePasteColumn',{'tablePasteChainId':_0x2e39a4}),_0x33cb3f['length']&&(_0x446813['markMultiRangeInsertion'](_0x33cb3f,'tablePaste',{'tablePasteChainId':_0x2e39a4,'skipNestingCheck':!0x0}),_0x33cb3f['forEach'](_0x5499f1=>{var _0x41bd3f;return null===(_0x41bd3f=_0x5499f1['detach'])||void 0x0===_0x41bd3f?void 0x0:_0x41bd3f['call'](_0x5499f1);})),_0x4dc4c2['length']&&(_0x446813['markMultiRangeDeletion'](_0x4dc4c2,'tablePaste',{'tablePasteChainId':_0x2e39a4,'skipNestingCheck':!0x0}),_0x4dc4c2['forEach'](_0x5a2987=>{var _0x4ff1ab;return null===(_0x4ff1ab=_0x5a2987['detach'])||void 0x0===_0x4ff1ab?void 0x0:_0x4ff1ab['call'](_0x5a2987);}));const _0x58a310=_0x446813['markMultiRangeBlockFormat'](_0x18fbed['map'](({element:_0x572087})=>_0x572087),{'formatGroupId':_0x21958e()},[],'tablePasteCell',{'tablePasteChainId':_0x2e39a4});if(_0x58a310){const _0x36d775=_0x58a310['getMarkers'](),_0x7a9fbe=[];for(const {element:_0x3faa0c,attributes:_0x85b1f5}of _0x18fbed){if(!_0x85b1f5)continue;const _0x40f815=_0x1b73d5['model']['createRangeOn'](_0x3faa0c),_0x6702d5=_0x36d775['find'](_0xda50cb=>_0xda50cb['getRange']()['isEqual'](_0x40f815));_0x6702d5&&_0x7a9fbe['push']([_0x6702d5['name'],_0x85b1f5]);}_0x7a9fbe['length']&&_0x58a310['setAttribute']('markerAttributes',Object['fromEntries'](_0x7a9fbe));}_0x5c53df=null;}));},{'priority':_0x2cd6d6['high']+0xa}),_0x1b73d5['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x9c8918,_0x201cce)=>{const [_0x335be4,_0x36c677,,_0x501e59]=_0x201cce;if(!_0x5c53df)return;_0x9c8918['stop']();const _0x1b64c9=_0x335be4['cell'],_0x9a7580=_0x36c677,_0x54f9be=Pe(_0x1b64c9),_0x18a4e2=Pe(_0x9a7580);_0x9c8918['return']=_0x1b64c9;let _0x419c05=null,_0x5006bc=null;if(_0x18a4e2||_0x54f9be){if(_0x54f9be&&!_0x18a4e2){_0x501e59['remove'](_0x1b64c9['getChild'](0x0));for(const _0x2f2ad9 of Array['from'](_0x9a7580['getChildren']()))_0x501e59['insert'](_0x2f2ad9,_0x1b64c9,'end');const _0x1b83cb=_0x5c53df['rowInsertionIndexes']['includes'](_0x335be4['row']),_0x37e28e=_0x5c53df['columnInsertionIndexes']['includes'](_0x335be4['column']);_0x1b83cb||_0x37e28e||(_0x419c05=_0x57a73e['fromRange'](_0x501e59['createRangeIn'](_0x1b64c9)));}else _0x18a4e2&&!_0x54f9be&&(_0x5006bc=_0x501e59['createRangeIn'](_0x1b64c9));}else{const _0x23e29a=_0x501e59['createElement']('tableCellSuggestion'),_0x195e17=_0x501e59['createElement']('tableCellSuggestion');_0x501e59['wrap'](_0x501e59['createRangeIn'](_0x1b64c9),_0x195e17),_0x501e59['insert'](_0x23e29a,_0x1b64c9,0x0);for(const _0x12aebf of Array['from'](_0x9a7580['getChildren']()))_0x501e59['insert'](_0x12aebf,_0x23e29a,'end');_0x419c05=_0x57a73e['fromRange'](_0x501e59['createRangeOn'](_0x23e29a)),_0x5006bc=_0x57a73e['fromRange'](_0x501e59['createRangeOn'](_0x195e17));}const _0x556088=Array['from'](_0x9a7580['getAttributes']())['filter'](([_0x3d56e8])=>ge['includes'](_0x3d56e8));_0x5c53df['cells']['push']({'element':_0x1b64c9,'attributes':_0x556088['length']?Object['fromEntries'](_0x556088):null}),_0x419c05&&_0x5c53df['insertionRanges']['push'](_0x419c05),_0x5006bc&&_0x5c53df['deletionRanges']['push'](_0x5006bc);},{'priority':'high'}),_0x25b54e['on']('insertColumns',(_0xa88cb5,_0x4426a2)=>{const [_0x1ef18b,_0x549db5={}]=_0x4426a2;if(!_0x5c53df)return;const _0x2ee04c=_0x549db5['at']||0x0,_0x2c31d9=_0x549db5['columns']||0x1;_0x5c53df['columnInsertionIndexes']=new Array(_0x2c31d9)['fill'](_0x2ee04c)['map']((_0x269a63,_0x16cc6f)=>_0x269a63+_0x16cc6f);for(const {cell:_0x17a4e8}of _0x25b54e['createTableWalker'](_0x1ef18b,{'startColumn':_0x2ee04c,'endColumn':_0x2ee04c+_0x2c31d9-0x1}))_0x5c53df['columnInsertionRanges']['push'](_0x1b73d5['model']['createRangeOn'](_0x17a4e8));},{'priority':'low'}),_0x25b54e['on']('insertRows',(_0x59ab5e,_0x5d3834)=>{const [_0x499386,_0x4c1143={}]=_0x5d3834;if(!_0x5c53df)return;const _0xcb5e84=_0x4c1143['at']||0x0,_0x492fe4=_0x4c1143['rows']||0x1;_0x5c53df['rowInsertionIndexes']=new Array(_0x492fe4)['fill'](_0xcb5e84)['map']((_0x31209c,_0x371035)=>_0x31209c+_0x371035);for(const {cell:_0x2e529e}of _0x25b54e['createTableWalker'](_0x499386,{'startRow':_0xcb5e84,'endRow':_0xcb5e84+_0x492fe4-0x1}))_0x5c53df['rowInsertionRanges']['push'](_0x1b73d5['model']['createRangeOn'](_0x2e529e));},{'priority':'low'}),_0x446813['_descriptionFactory']['registerDescriptionCallback'](_0x5667b7=>{if(_0x5667b7['subType']&&_0x5667b7['subType']['startsWith']('tablePaste'))return _0x5667b7['previous']?{}:{'type':'insertion','content':o(_0x1b73d5['locale'],'*Replace\x20table\x20cells*')};});const _0x42b9a5=()=>!0x1;for(const _0x2c4246 of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x446813['_suggestionFactory']['registerCustomCallback']('insertion',_0x2c4246,'join',_0x42b9a5),_0x446813['_suggestionFactory']['registerCustomCallback']('deletion',_0x2c4246,'join',_0x42b9a5),_0x446813['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x2c4246,'join',_0x42b9a5);_0x446813['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x42b9a5),_0x446813['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x36d858,_0x241eae,_0x4b6e2a)=>{const _0x547b74=_0x36d858['map'](_0x14fb1b=>_0x14fb1b['getContainedElement']())['filter'](_0x469864=>_0x469864),_0xb90b42=new Map(_0x547b74['map'](_0x109da5=>[_0x109da5,null]));if(_0x5c53df){for(const {element:_0x3bd065,attributes:_0x1c2a6a}of _0x5c53df['cells'])_0x1c2a6a&&_0xb90b42['set'](_0x3bd065,_0x1c2a6a);}else{if(_0x4b6e2a&&_0x4b6e2a['markerAttributes'])for(const [_0x2a801f,_0x55f985]of Object['entries'](_0x4b6e2a['markerAttributes'])){const _0xdd5047=_0x1b73d5['model']['markers']['get'](_0x2a801f),_0x2aa8c1=_0xdd5047?_0xdd5047['getRange']()['getContainedElement']():null;_0x2aa8c1&&_0xb90b42['set'](_0x2aa8c1,_0x55f985);}}_0x1b73d5['model']['change'](_0x4624c5=>{for(const [_0x217d26,_0x9204a2]of _0xb90b42)_0x4624c5['setAttributes']({...Ce,..._0x9204a2},_0x217d26);});});const _0x2c7153=(_0x5d9561,_0x4a4b9d)=>{_0x446813['_suggestionFactory']['registerCustomCallback'](_0x5d9561,'tablePaste',_0x4a4b9d,(_0x5bebf2,_0x302555,_0x1011af)=>{_0x1b73d5['model']['change'](_0x281578=>{const _0x3b22a6=[];for(const _0x12f9a1 of _0x5bebf2){const _0x121aa2=_0x12f9a1['start']['nodeAfter'];_0x121aa2['is']('element','tableCellSuggestion')&&_0x3b22a6['push'](_0x121aa2);}_0x446813['_suggestionFactory']['getSuggestionCallback'](_0x5d9561,null,_0x4a4b9d)(_0x5bebf2,_0x302555,_0x1011af);for(const _0x3379f4 of _0x3b22a6)'$graveyard'!=_0x3379f4['root']['rootName']&&_0x281578['unwrap'](_0x3379f4);});});};_0x2c7153('insertion','accept'),_0x2c7153('insertion','discard'),_0x2c7153('deletion','accept'),_0x2c7153('deletion','discard'),_0x446813['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x3972a2=>{const _0x3144aa=_0x3972a2['map'](_0x1ffc1b=>_0x1ffc1b['getContainedElement']()),_0xd59719=_0x3144aa[0x0]['findAncestor']('table'),{minRow:_0x5e77b3,maxRow:_0x23bb07}=_0x56752a['_getCoordsForCells'](_0x3144aa);_0x25b54e['removeRows'](_0xd59719,{'at':_0x5e77b3,'rows':_0x23bb07-_0x5e77b3+0x1});}),_0x446813['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x30954e=>{const _0x54e9a0=_0x30954e['map'](_0x95f4d1=>_0x95f4d1['getContainedElement']()),_0x35e4a4=_0x54e9a0[0x0]['findAncestor']('table'),{minColumn:_0x37dc76,maxColumn:_0x2f1193}=_0x56752a['_getCoordsForCells'](_0x54e9a0);_0x25b54e['removeColumns'](_0x35e4a4,{'at':_0x37dc76,'columns':_0x2f1193-_0x37dc76+0x1});});const _0x41bc9e=(_0x1f97ae,_0x575e90)=>{if(!_0x575e90['subType']||!_0x575e90['subType']['startsWith']('tablePaste'))return;const _0xc7af26=_0x575e90['attributes']['tablePasteChainId'],_0x4bb02d=_0x446813['getSuggestions']()['filter'](_0x357c37=>_0x357c37['isInContent']&&_0x357c37['attributes']&&_0x357c37['attributes']['tablePasteChainId']==_0xc7af26);_0x4bb02d['length']&&_0x575e90['getAllAdjacentSuggestions']()['length']!=_0x4bb02d['length']&&_0x4bb02d['reduce']((_0x490d92,_0x4e8ad7)=>(_0x490d92['next']=_0x4e8ad7,_0x4e8ad7['previous']=_0x490d92,_0x4e8ad7));};function _0x3fc411(_0x22a793,_0x51145c=!0x0){const {id:_0x5a55c1}=_0x446813['_splitMarkerName'](_0x22a793['markerName']),_0x149078=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x4725fc=_0x446813['activeMarkers']['includes'](_0x22a793['markerName']);return _0x4725fc&&_0x149078['push']('ck-suggestion-marker--active'),{'classes':_0x149078,'attributes':{'data-suggestion':_0x5a55c1},'priority':_0x4725fc&&_0x51145c?0xbc2:0xbb8};}_0x446813['on']('suggestionLoaded',_0x41bc9e,{'priority':'high'}),_0x446813['on']('suggestionUnloaded',_0x41bc9e,{'priority':'high'}),_0x1b73d5['model']['document']['registerPostFixer'](()=>{let _0x4218c3=!0x1;const _0x260f6e=Array['from'](_0x1b73d5['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x16b72f,data:_0x408947}of _0x260f6e){const {group:_0x5e3601,type:_0x4a64d0,id:_0x818391}=_0x446813['_splitMarkerName'](_0x16b72f);if('suggestion'!=_0x5e3601||'deletion'!=_0x4a64d0||_0x408947['oldRange'])continue;if(!_0x446813['hasSuggestion'](_0x818391))continue;const _0x418665=_0x446813['getSuggestion'](_0x818391)['getRanges'](),_0x1bf74b=_0x1b73d5['plugins']['get']('Users')['me'];for(const _0x23a7c9 of _0x446813['getSuggestions']()){if(!_0x23a7c9['isInContent']||_0x23a7c9['author']!=_0x1bf74b)continue;if('formatBlock'!=_0x23a7c9['type']||'tablePasteCell'!=_0x23a7c9['subType'])continue;if(_0x23a7c9['getRanges']()['every'](_0x59fc57=>_0x418665['some'](_0x5e3b1e=>_0x5e3b1e['containsRange'](_0x59fc57,!0x0)))){for(const _0x43023f of _0x23a7c9['getAllAdjacentSuggestions']())_0x43023f['isInContent']&&(_0x43023f['discard'](),_0x4218c3=!0x0);}}}return _0x4218c3;}),_0x1b73d5['model']['document']['registerPostFixer'](_0x13f7d8=>{const _0x10aa5f=_0x1b73d5['commands']['get']('redo');if(!_0x10aa5f||!_0x10aa5f['_createdBatches']['has'](_0x13f7d8['batch']))return!0x1;let _0x4f71e5=!0x1;const _0x315097=_0x1b73d5['plugins']['get']('Users')['me'],_0x3577ea=_0x1b73d5['model']['document']['differ']['getChanges'](),_0x2c1f33=Array['from'](_0x1b73d5['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x4995e9,data:_0x4c8e26})=>{const {group:_0x2e45ad,subType:_0x435e16,authorId:_0x179cbe}=_0x446813['_splitMarkerName'](_0x4995e9);return'suggestion'==_0x2e45ad&&'tablePaste'==_0x435e16&&_0x179cbe==_0x315097['id']&&!_0x4c8e26['oldRange'];});for(const _0x21c554 of _0x3577ea){if('insert'!=_0x21c554['type']||'tableCellSuggestion'!=_0x21c554['name']||0x1!=_0x21c554['length'])continue;const _0x8a7046=_0x13f7d8['createRange'](_0x21c554['position'],_0x21c554['position']['getShiftedBy'](0x1));if(!_0x2c1f33['find'](({data:_0x2393d4})=>_0x2393d4['newRange']['isEqual'](_0x8a7046))){for(const {name:_0x2605cd,data:_0x6d57d0}of _0x2c1f33)if(_0x8a7046['containsRange'](_0x6d57d0['newRange'])){_0x13f7d8['updateMarker'](_0x2605cd,{'range':_0x8a7046}),_0x4f71e5=!0x0;break;}}}return _0x4f71e5;}),_0x1b73d5['model']['document']['registerPostFixer'](_0x204dd8=>{let _0x3466b1=!0x1;const _0x33fce3=_0x1b73d5['plugins']['get']('Users')['me'],_0x36a3f3=_0x446813['getSuggestions']()['filter'](_0x1f2b9f=>_0x1f2b9f['isInContent']&&_0x1f2b9f['author']==_0x33fce3),_0x4a8cb4=new Set(),_0x5499b8=new Set();for(const _0x2ba3d0 of _0x36a3f3)if('tablePaste'==_0x2ba3d0['subType'])for(const _0xbec2e2 of _0x2ba3d0['getMarkers']()){const _0x2a8694=_0xbec2e2['getRange']()['getContainedElement']();if(_0x2a8694){if(_0x2a8694['is']('element','tableCellSuggestion')&&Pe(_0x2a8694)){_0x2ba3d0['removeMarker'](_0xbec2e2['name']),_0x4a8cb4['add'](_0x2a8694),_0x3466b1=!0x0;const _0x473990=_0x2a8694['nextSibling'],_0x56749e=_0x2a8694['previousSibling'],_0x335305=_0x473990&&_0x473990['is']('element','tableCellSuggestion'),_0x710c65=_0x56749e&&_0x56749e['is']('element','tableCellSuggestion');_0x335305&&!_0x4a8cb4['has'](_0x473990)&&_0x5499b8['add'](_0x473990),_0x710c65&&!_0x4a8cb4['has'](_0x56749e)&&_0x5499b8['add'](_0x56749e);}else _0x2a8694['is']('element','paragraph')&&_0x2a8694['isEmpty']&&(_0x2ba3d0['removeMarker'](_0xbec2e2['name']),_0x3466b1=!0x0);}}else{if('tablePasteCell'==_0x2ba3d0['subType']){if(!_0x2ba3d0['attributes']||!_0x2ba3d0['attributes']['tablePasteChainId'])continue;const _0x1b384f=_0x2ba3d0['attributes']['markerAttributes'];if(_0x1b384f&&Object['keys'](_0x1b384f)['length'])continue;const _0x122b2e=_0x2ba3d0['attributes']['tablePasteChainId'];let _0x4990a6=!0x0,_0x11ea41=!0x0;for(const _0x1d28f8 of _0x36a3f3)if(_0x1d28f8['subType']&&_0x1d28f8['subType']['startsWith']('tablePaste')){if(!_0x1d28f8['attributes']['tablePasteChainId']){_0x11ea41=!0x1;break;}if(_0x1d28f8['id']!=_0x2ba3d0['id']&&_0x1d28f8['attributes']['tablePasteChainId']==_0x122b2e){_0x4990a6=!0x1;break;}}_0x11ea41&&_0x4990a6&&(_0x2ba3d0['removeMarkers'](),_0x3466b1=!0x0);}}for(const _0x2da09e of _0x4a8cb4)_0x204dd8['remove'](_0x2da09e);for(const _0x5417c5 of _0x5499b8)_0x204dd8['unwrap'](_0x5417c5);return _0x3466b1;}),_0x1b73d5['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x4be207,_0x501ef0)=>_0x3fc411(_0x4be207),'converterPriority':'high'}),_0x1b73d5['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x19950a,_0x4e7427)=>_0x4e7427['options']['showSuggestionHighlights']?_0x3fc411(_0x19950a,!0x1):null,'converterPriority':'high'});const _0x37a1c1=_0x1b73d5['editing']['view'];this['listenTo'](_0x37a1c1['document'],'clipboardOutput',(_0x580659,_0x2a6ed5)=>{const _0x2a0299=[];for(const _0x1c4f12 of _0x37a1c1['createRangeIn'](_0x2a6ed5['content'])['getItems']())_0x1c4f12['is']('element','suggestion-td')&&_0x2a0299['push'](_0x1c4f12);_0x37a1c1['change'](_0x605a97=>{for(const _0x42aea5 of _0x2a0299)_0x605a97['move'](_0x605a97['createRangeIn'](_0x42aea5),_0x605a97['createPositionBefore'](_0x42aea5)),_0x605a97['remove'](_0x42aea5);});});}}function Pe(_0x3cc5c4){if(_0x3cc5c4['isEmpty'])return!0x0;const _0x3e5e7f=_0x3cc5c4['getChild'](0x0);return _0x3e5e7f['is']('element','paragraph')&&_0x3e5e7f['isEmpty'];}function he(_0x25b6bc,_0x5a552d={},_0x51ea89){for(const {isAnchor:_0x34378e,cellHeight:_0x35b072,cellWidth:_0x294e85}of _0x51ea89['createTableWalker'](_0x25b6bc,{'includeAllSlots':!0x0,..._0x5a552d}))if(!_0x34378e||0x1!=_0x35b072||0x1!=_0x294e85)return!0x1;return!0x0;}class vt extends _0x27a789{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x3ab0a4=this['editor']['plugins']['get']('TrackChangesEditing');_0x3ab0a4['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x3ab0a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x3ab0a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x3ab0a4['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x3ab0a4['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x3ab0a4['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4692e8,_0x6355cc){const _0x5a9ac8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x27d2f5=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x3c8158=_0x6355cc['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0xdbef4c=_0x27d2f5['getColumnGroupElement'](_0x3c8158);let _0x4eca12=_0xdbef4c?_0x27d2f5['getTableColumnsWidths'](_0xdbef4c):null,_0x7624d1=_0x3c8158['getAttribute']('tableWidth')||null;const _0xd77e2a=_0x6355cc['tableWidth']||_0x7624d1,_0x2a9fd8=_0x6355cc['columnWidths']||_0x4eca12,_0x52020b=this['editor']['plugins']['get']('Users')['me'];for(const _0x1d25f9 of _0x5a9ac8['getSuggestions']()){const _0x346a9c=_0x1d25f9['getContainedElement']();if('resizeTable'===_0x1d25f9['subType']&&_0x346a9c===_0x3c8158){_0x1d25f9['author']!==_0x52020b&&_0x1d25f9['discard']();const _0x5b9d42=_0x1d25f9['data']['commandParams'];_0x7624d1=_0x5b9d42[0x0]['tableWidth'],_0x4eca12=_0x5b9d42[0x0]['columnWidths'];break;}}_0x4692e8({'table':_0x3c8158,'tableWidth':_0xd77e2a,'columnWidths':_0x2a9fd8}),_0x5a9ac8['markBlockFormat'](_0x3c8158,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x7624d1,'columnWidths':_0x4eca12}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x4e27ad){if('formatBlock'!=_0x4e27ad['type']&&'formatInline'!=_0x4e27ad['type'])return;const {data:_0x3c1205}=_0x4e27ad;if(_0x3c1205&&'resizeTable'===_0x3c1205['formatGroupId']){const _0x2594ba='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x2594ba)};}}}class _t extends _0x27a789{['afterInit'](){const _0x1d0077=this['editor'];_0x1d0077['plugins']['has']('Template')&&_0x1d0077['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x27a789{['afterInit'](){const _0x29c9c2=this['editor'];if(!_0x29c9c2['commands']['get']('insertTableOfContents'))return;_0x29c9c2['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x47dfbd=_0x29c9c2['plugins']['get']('TrackChangesEditing'),_0x5a146c=_0x29c9c2['locale'];_0x47dfbd['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x435313=>o(_0x5a146c,'ELEMENT_TABLE_OF_CONTENTS',_0x435313));}}class Dt extends _0x27a789{['afterInit'](){const _0x3ff08c=this['editor'];if(!_0x3ff08c['plugins']['has']('Title'))return;const _0x5c72e8=_0x3ff08c['plugins']['get']('TrackChangesEditing');_0x5c72e8['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x3ff08c['locale'],'ELEMENT_TITLE')),_0x3ff08c['model']['document']['registerPostFixer'](_0xd398d7=>{let _0x4dbcbf=!0x1;const _0x451114=Array['from'](_0x3ff08c['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x3cce2c,data:_0x3b2327}of _0x451114){const {group:_0x1e21e5}=_0x5c72e8['_splitMarkerName'](_0x3cce2c);if('suggestion'!==_0x1e21e5||!_0x3b2327['newRange'])continue;const _0x3eff25=_0x3b2327['newRange'],_0x55a9cb=_0x3eff25['end']['nodeBefore'];if(!_0x55a9cb||!_0x55a9cb['is']('element','title-content'))continue;if(!_0x3eff25['start']['isTouching'](_0x3eff25['end']))continue;const _0x4ee315=_0x3ff08c['model']['schema']['getNearestSelectionRange'](_0x3eff25['end'],'forward');if(_0x4ee315&&_0x4ee315['isCollapsed']){const _0x2563f3=_0xd398d7['createRange'](_0x3eff25['start'],_0x4ee315['start']);_0x2563f3['isEqual'](_0x3eff25)||(_0xd398d7['updateMarker'](_0x3cce2c,{'range':_0x2563f3}),_0x4dbcbf=!0x0);}_0x4dbcbf||(_0xd398d7['removeMarker'](_0x3cce2c),_0x4dbcbf=!0x0);}return _0x4dbcbf;});}}class Nt extends _0x27a789{['afterInit'](){const _0x460db9=this['editor'],_0x5528c1=_0x460db9['plugins']['get']('TrackChangesEditing');_0x460db9['plugins']['has']('UndoEditing')&&(_0x5528c1['enableCommand']('undo'),_0x5528c1['enableCommand']('redo'));}}class Mt extends _0x27a789{static get['requires'](){return[jt];}['afterInit'](){const _0x4a9c7f=this['editor'];if(!_0x4a9c7f['plugins']['has']('TableCaptionEditing'))return;_0x4a9c7f['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x27a789{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x5b2749=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0xac6d65 of this['tableProperties'])_0x5b2749['enableCommand'](_0xac6d65,(_0x3a179c,_0x4187e7)=>{const _0x10730a=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0xac6d65,[_0x10730a],this['tableProperties'],'tableProperties',_0x3a179c,_0x4187e7);});_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x5b2749['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x4ef0bb,_0x25d23b)=>this['handleDiscardAction'](this['tableProperties'],_0x4ef0bb,_0x25d23b)),_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x70e276 of this['tableCellProperties'])_0x5b2749['enableCommand'](_0x70e276,(_0x4918b7,_0x2c61c9)=>{const _0x5b7f68=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x70e276,_0x5b7f68,this['tableCellProperties'],'tableCellProperties',_0x4918b7,_0x2c61c9);});_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x5b2749['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x1c23e2,_0x46024d)=>this['handleDiscardAction'](this['tableCellProperties'],_0x1c23e2,_0x46024d)),_0x5b2749['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x5b2749['_descriptionFactory']['registerDescriptionCallback'](_0x47e89d=>this['handleSuggestionDescription'](_0x47e89d));}['_handlePropertyChange'](_0xd079de,_0x43b972,_0x2e1a7e,_0x221124,_0x28b3e4,_0x563b10){const _0x3cbbfc=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x563b10['batch'],()=>{for(const _0x4ab5e3 of _0x43b972){if(this['_getSuggestion'](_0x4ab5e3,_0x221124))_0x28b3e4(_0x563b10);else{const _0x3577ad={};for(const _0x141f39 of _0x2e1a7e){const _0x22f69a=_0x4ab5e3['getAttribute'](_0x141f39);void 0x0!==_0x22f69a&&(_0x3577ad[_0x141f39]=_0x22f69a);}_0x28b3e4(_0x563b10),_0x3cbbfc['markBlockFormat'](_0x4ab5e3,{'commandParams':[_0x3577ad]},[],_0x221124);}}});}['handleDiscardAction'](_0x18619e,_0x22b8d2,_0x152a8f){const _0x152dd3=_0x22b8d2[0x0]['start']['nodeAfter'],_0x280345=_0x152a8f['commandParams'][0x0];this['editor']['model']['change'](_0x3fc760=>{for(const _0x587a0f of _0x18619e)void 0x0!==_0x280345[_0x587a0f]?_0x3fc760['setAttribute'](_0x587a0f,_0x280345[_0x587a0f],_0x152dd3):_0x3fc760['removeAttribute'](_0x587a0f,_0x152dd3);});}['handleSuggestionDescription'](_0x16aec7){if(_0x16aec7['data'])switch(_0x16aec7['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'](_0x38d4eb,_0x21bcc6){const _0x24335d=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x24a4ad of _0x24335d['getSuggestions']({'skipNotAttached':!0x0})){const _0x3c7712=_0x24a4ad['getContainedElement']();if(_0x24a4ad['subType']===_0x21bcc6&&_0x3c7712===_0x38d4eb)return _0x24a4ad;}return null;}constructor(_0x4086ad){super(_0x4086ad),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x27a789{static get['requires'](){return['CommentsRepository',_0x54bab6,_0x55c8ad,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x47b68a=this['editor'],_0x251df2=(_0x50c524,_0x307265)=>{if('attribute'!=_0x50c524)return'ck-suggestion-marker-'+_0x50c524;const _0x38497f=_0x307265['split']('|')[0x0];return this['_isBlockAttribute'](_0x38497f)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x47b68a['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x1f825d=>{const {id:_0x2119f6,type:_0xf1bf6,subType:_0x2abdf9}=this['_splitMarkerName'](_0x1f825d['markerName']),_0x968527=['ck-suggestion-marker',_0x251df2(_0xf1bf6,_0x2abdf9)];let _0x379d32=0xbb8;return this['activeMarkers']['includes'](_0x1f825d['markerName'])&&(_0x968527['push']('ck-suggestion-marker--active'),_0x379d32=0xbc2),'deletion'==_0xf1bf6&&(_0x379d32+=0x5),{'classes':_0x968527,'attributes':{'data-suggestion':_0x2119f6},'priority':_0x379d32};}}),_0x47b68a['conversion']['for']('dataDowncast')['add'](_0x2514be=>{_0x2514be['on']('addMarker:suggestion',(_0x4cd745,_0x99a6a7,_0x4c8882)=>{if(!_0x4c8882['options']['showSuggestionHighlights'])return;const _0x499807=_0x99a6a7['item'];if(!_0x499807)return;const _0x490155=_0x4c8882['mapper']['toViewElement'](_0x499807);_0x47b68a['model']['schema']['isObject'](_0x499807)&&_0x490155&&!_0x490155['getCustomProperty']('widget')&&_0x490155['is']('containerElement')&&_0x378bb7(_0x490155,_0x4c8882['writer']);},{'priority':'high'});}),_0x47b68a['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0xff3460,_0x59a371)=>{if(!_0x59a371['options']['showSuggestionHighlights'])return null;const {type:_0x4072d2,subType:_0x38962d}=this['_splitMarkerName'](_0xff3460['markerName']);return{'classes':['ck-suggestion-marker',_0x251df2(_0x4072d2,_0x38962d)],'priority':0xbb8};}});const _0x39dc28=({showActiveMarkers:_0x103356=!0x0,isAttributeSuggestion:_0x3bc120=!0x1}={})=>(_0x1705a0,_0x105082,_0x10d623)=>{if(!_0x105082['item'])return;const {id:_0x1458b0}=this['_splitMarkerName'](_0x105082['markerName']);if(_0x3bc120){const _0x572d6f=this['_suggestions']['get'](_0x1458b0),_0x4854a6=this['_getAttributeKey'](_0x572d6f);if(!this['_isBlockAttribute'](_0x4854a6))return;}if(_0x105082['item']['is']('selection'))return void _0x10d623['consumable']['consume'](_0x105082['item'],_0x1705a0['name']);const _0x58c95c=_0x10d623['mapper']['toViewElement'](_0x105082['item']);if(_0x105082['item']['is']('element')&&_0x47b68a['model']['schema']['isBlock'](_0x105082['item'])&&!_0x58c95c['getCustomProperty']('addHighlight')){_0x10d623['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x58c95c),_0x10d623['writer']['setAttribute']('data-suggestion',_0x1458b0,_0x58c95c),_0x10d623['mapper']['bindElementToMarker'](_0x58c95c,_0x105082['markerName']),_0x103356&&(this['activeMarkers']['includes'](_0x105082['markerName'])?_0x10d623['writer']['addClass']('ck-suggestion-marker--active',_0x58c95c):_0x10d623['writer']['removeClass']('ck-suggestion-marker--active',_0x58c95c));for(const _0x202f50 of _0x47b68a['model']['createRangeIn'](_0x105082['item'])['getItems']())_0x10d623['consumable']['consume'](_0x202f50,_0x1705a0['name']);_0x10d623['consumable']['consume'](_0x105082['item'],_0x1705a0['name']);}};_0x47b68a['conversion']['for']('dataDowncast')['add'](_0x182786=>{_0x182786['on']('addMarker:suggestion:formatBlock',(_0x1d0568,_0xe5a4d1,_0x2317d0)=>{_0x2317d0['options']['showSuggestionHighlights']&&_0x39dc28({'showActiveMarkers':!0x1})(_0x1d0568,_0xe5a4d1,_0x2317d0);},{'priority':'highest'});}),_0x47b68a['conversion']['for']('dataDowncast')['add'](_0x3f68a8=>{_0x3f68a8['on']('addMarker:suggestion:attribute',(_0x210bf9,_0x47bc49,_0x642c5e)=>{_0x642c5e['options']['showSuggestionHighlights']&&_0x39dc28({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x210bf9,_0x47bc49,_0x642c5e);},{'priority':'highest'});}),_0x47b68a['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x4ead84,_0x37aa32)=>_0x37aa32['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x4ead84['substr'](0xb)}}),_0x47b68a['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5beefe,{writer:_0x3c7afc})=>{let _0x262764='suggestion:'+_0x5beefe['getAttribute']('suggestion-type')+':'+_0x5beefe['getAttribute']('id');return _0x5beefe['getAttribute']('marker-count')&&(_0x262764+=':'+_0x5beefe['getAttribute']('marker-count')),_0x3c7afc['createElement']('$marker',{'data-name':_0x262764});}}),_0x47b68a['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x47b68a['conversion']['for']('editingDowncast')['add'](_0x399650=>{_0x399650['on']('addMarker:suggestion:formatBlock',_0x39dc28(),{'priority':'high'});}),_0x47b68a['conversion']['for']('editingDowncast')['add'](_0x2ee556=>{_0x2ee556['on']('addMarker:suggestion:attribute',_0x39dc28({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x47b68a['conversion']['for']('editingDowncast')['add'](_0x39fbee=>{_0x39fbee['on']('removeMarker:suggestion:formatBlock',(_0x5e1b42,_0x47e4e3,_0x19256a)=>{const _0x133972=_0x19256a['mapper']['markerNameToElements'](_0x47e4e3['markerName']);if(_0x133972){for(const _0x161251 of _0x133972)_0x161251['getCustomProperty']('addHighlight')||(_0x19256a['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x161251),_0x19256a['writer']['removeAttribute']('data-suggestion',_0x161251),_0x19256a['mapper']['unbindElementFromMarkerName'](_0x161251,_0x47e4e3['markerName']));}},{'priority':'high'});}),_0x47b68a['conversion']['for']('editingDowncast')['add'](_0x56dcca=>{_0x56dcca['on']('removeMarker:suggestion:attribute',(_0x224bb9,_0x2c3197,_0x371f70)=>{const _0x82dd7d=_0x371f70['mapper']['markerNameToElements'](_0x2c3197['markerName']);if(!_0x82dd7d)return;const {id:_0x174661}=this['_splitMarkerName'](_0x2c3197['markerName']),_0x14d9d5=this['_suggestions']['get'](_0x174661),_0x4bc6f5=this['_getAttributeKey'](_0x14d9d5);if(this['_isBlockAttribute'](_0x4bc6f5)){for(const _0x58dcbd of _0x82dd7d)_0x58dcbd['getCustomProperty']('addHighlight')||(_0x371f70['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x58dcbd),_0x371f70['writer']['removeAttribute']('data-suggestion',_0x58dcbd),_0x371f70['mapper']['unbindElementFromMarkerName'](_0x58dcbd,_0x2c3197['markerName']));}},{'priority':'high'});}),_0x47b68a['model']['document']['registerPostFixer'](_0x2c6cda=>{let _0x2789b5=!0x1;const _0x42968a=Array['from'](_0x47b68a['model']['document']['differ']['getChangedMarkers']()),_0x16b043=new Set();for(const {name:_0x672a0e,data:_0x1c2e2f}of _0x42968a){const {group:_0x29c065,type:_0x50f535,subType:_0x203436,id:_0x5aecfa}=this['_splitMarkerName'](_0x672a0e);if('suggestion'!==_0x29c065)continue;const _0x28ec6a=this['_suggestions']['get'](_0x5aecfa);if(null!=_0x1c2e2f['newRange']){'formatInline'==_0x50f535&&(_0x2789b5=_0x2789b5||Et(_0x1c2e2f['newRange'],_0x672a0e,_0x2c6cda,_0x47b68a['model']['schema']));const _0x55a124='attribute'==_0x50f535&&this['_isBlockAttribute'](_0x203436['split']('|')[0x0]);if(_0x1c2e2f['newRange']['isCollapsed']||'$graveyard'==_0x1c2e2f['newRange']['root']['rootName']||'formatBlock'==_0x50f535&&!Ut(_0x1c2e2f['newRange'])||_0x55a124&&!Ut(_0x1c2e2f['newRange'])||'deletion'==_0x50f535&&!(!Tt(_0x54871a=_0x1c2e2f['newRange'])&&!function(_0x17d46f){return _0x17d46f['start']['parent']==_0x17d46f['end']['nodeBefore']&&_0x17d46f['start']['isAtEnd'];}(_0x54871a)))_0x2c6cda['removeMarker'](_0x672a0e),_0x2789b5=!0x0;else{if(!_0x28ec6a||!_0x28ec6a['isInContent'])continue;_0x16b043['add'](_0x28ec6a);}}}var _0x54871a;return _0x16b043['size']>0x0&&(_0x2789b5=!!this['_joinWithAdjacentSuggestions'](_0x16b043)||_0x2789b5),_0x2789b5;}),_0x47b68a['model']['document']['registerPostFixer'](_0x63e3ba=>{let _0x28d419=!0x1;for(const _0x57c17a of _0x47b68a['model']['document']['differ']['getChanges']())if('insert'==_0x57c17a['type'])for(const _0x139bb6 of this['_suggestions']['values']()){if(_0x139bb6['isMultiRange']||!_0x139bb6['isInContent'])continue;const _0x5404da='formatBlock'==_0x139bb6['type'],_0x1c89ed=this['_getAttributeKey'](_0x139bb6),_0x3eeb97=_0x1c89ed&&this['_isBlockAttribute'](_0x1c89ed);if(!_0x5404da&&!_0x3eeb97)continue;const _0x57a541=_0x139bb6['getFirstRange']();if(_0x57a541['start']['parent']!=_0x57a541['end']['parent']&&!_0x57a541['end']['isAtEnd']){const _0x770d2b=_0x47b68a['model']['createPositionAt'](_0x57a541['start']['nodeAfter'],'end'),_0x48684c=_0x47b68a['model']['createRange'](_0x57a541['start'],_0x770d2b);_0x63e3ba['updateMarker'](_0x139bb6['getFirstMarker'](),{'range':_0x48684c}),_0x28d419=!0x0;}}return _0x28d419;}),_0x47b68a['model']['document']['registerPostFixer'](_0x269023=>this['_processAttributeChanges'](_0x269023)),_0x47b68a['model']['document']['registerPostFixer'](_0x854744=>!_0x854744['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x854744)),_0x47b68a['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x47b68a['model']['document']['on']('change:data',(_0x2d3158,_0x45032d)=>{if(!_0x45032d['isLocal']||_0x45032d['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x2ebd9b=_0x47b68a['model']['document']['differ']['getChanges']();if(0x0==_0x2ebd9b['length'])return;const _0x49e138=[],_0x4bfc5b=_0x2ebd9b['filter'](_0x117c44=>'attribute'==_0x117c44['type']),_0x5b6728=_0x2ebd9b['filter'](_0x44e145=>'insert'==_0x44e145['type']&&'$text'!=_0x44e145['name']),_0x5cf6f7=_0x2ebd9b['filter'](_0x2dacf1=>'remove'==_0x2dacf1['type']&&'$text'!=_0x2dacf1['name']);for(const _0x3dee42 of _0x4bfc5b)this['_isRegisteredAttribute'](_0x3dee42['attributeKey'])&&_0x49e138['push']({'key':_0x3dee42['attributeKey'],'newValue':_0x3dee42['attributeNewValue'],'oldValue':_0x3dee42['attributeOldValue'],'range':Ot(_0x3dee42['range'],_0x47b68a['model'])});for(const _0x4e96b8 of _0x5b6728){const _0x583020=_0x5cf6f7['find'](_0x4bb6b2=>_0x4bb6b2['_element']===_0x4e96b8['_element']);if(_0x583020){const _0x288da3=Gt(_0x4e96b8['position']['nodeAfter'],_0x47b68a['model']);_0x583020['name']!==_0x4e96b8['name']&&_0x49e138['push']({'key':m,'newValue':_0x4e96b8['name'],'oldValue':_0x583020['name'],'range':_0x288da3});for(const [_0x5cf717,_0xadc997]of _0x583020['attributes']){if(!this['_isRegisteredAttribute'](_0x5cf717))continue;const _0x475850=_0x4e96b8['attributes']['get'](_0x5cf717);_0xadc997!==_0x475850&&_0x49e138['push']({'key':_0x5cf717,'newValue':_0x475850,'oldValue':_0xadc997,'range':_0x288da3});}for(const [_0x2e932e,_0x1ee806]of _0x4e96b8['attributes'])this['_isRegisteredAttribute'](_0x2e932e)&&(_0x583020['attributes']['has'](_0x2e932e)||_0x49e138['push']({'key':_0x2e932e,'newValue':_0x1ee806,'oldValue':null,'range':_0x288da3}));}}0x0!=_0x49e138['length']&&_0x47b68a['model']['enqueueChange'](_0x45032d,_0x24edc8=>{const _0x88c353=_0x21958e();for(const {range:_0x18467a,key:_0x18edb2,oldValue:_0x543e2b,newValue:_0x17ec47}of _0x49e138)this['markAttributeChange'](_0x18467a,_0x18edb2,_0x543e2b,_0x17ec47,{'groupId':_0x88c353});this['_reduceExistingSuggestions'](_0x24edc8,_0x49e138);});},{'priority':'lowest'}),_0x47b68a['model']['markers']['on']('update:suggestion',(_0x1483a1,_0x3c6a90,_0x37b1cd)=>{if(null==_0x37b1cd){const {id:_0x4cca6e}=this['_splitMarkerName'](_0x3c6a90['name']),_0x26681a=this['_suggestions']['get'](_0x4cca6e);_0x26681a&&_0x26681a['addMarkerName'](_0x3c6a90['name']);}}),_0x47b68a['model']['document']['on']('change:data',()=>{const _0x1fed70=Array['from'](_0x47b68a['model']['document']['differ']['getChangedMarkers']())['filter'](_0x239bf8=>'suggestion'===this['_splitMarkerName'](_0x239bf8['name'])['group']);if(0x0===_0x1fed70['length'])return;_0x1fed70['sort']((_0x3dcf52,_0x45e252)=>{const _0x5ddd3e=_0x3dcf52['data']['oldRange'],_0x5aad6f=_0x45e252['data']['oldRange'];return null===_0x5ddd3e&&null===_0x5aad6f?0x0:null===_0x5ddd3e&&null!==_0x5aad6f?-0x1:null!==_0x5ddd3e&&null===_0x5aad6f?0x1:_0x5ddd3e['start']['isBefore'](_0x5aad6f['start'])?-0x1:0x1;});const _0x4698af=new Set(),_0x403533=new Set();for(const {name:_0x4954d2,data:_0x1afebb}of _0x1fed70){const {id:_0x2c1373}=this['_splitMarkerName'](_0x4954d2);if(null===_0x1afebb['oldRange']){const _0x413aef=this['_handleNewSuggestionMarker'](_0x4954d2);_0x403533['add'](_0x413aef);}else{const _0x277e83=this['_suggestions']['get'](_0x2c1373);null!==_0x1afebb['newRange']||_0x277e83['isInContent']?(_0x4698af['add'](_0x277e83['head']),_0x403533['add'](_0x277e83)):this['_removeSuggestion'](_0x277e83);}}_0x403533['size']>0x0&&this['_refreshSuggestionsChain'](_0x403533);for(const _0x49701d of _0x4698af)this['fire']('suggestionChanged',_0x49701d);}),_0x47b68a['model']['on']('applyOperation',(_0x2db8ef,_0x39ca03)=>{const _0x159495=_0x39ca03[0x0];if(!this['_suggestions']['size'])return;if(!_0x159495['isDocumentOperation'])return;if(_0x159495['batch']['isUndo']||!_0x159495['batch']['isLocal'])return;let _0x280df5,_0x2991f1;switch(_0x159495['type']){case'insert':_0x280df5=_0x47b68a['model']['createPositionAt'](_0x159495['position']),_0x2991f1=_0x280df5['getShiftedBy'](_0x159495['howMany']);break;case'split':_0x280df5=_0x47b68a['model']['createPositionAt'](_0x159495['splitPosition']),_0x2991f1=_0x47b68a['model']['createPositionAt'](_0x159495['moveTargetPosition']);break;case'move':_0x280df5=_0x47b68a['model']['createPositionAt'](_0x159495['targetPosition']),_0x2991f1=_0x280df5['getShiftedBy'](_0x159495['howMany']);break;default:return;}const _0x22b231=_0x47b68a['model']['createRange'](_0x280df5,_0x2991f1);_0x47b68a['model']['change'](()=>{for(const {suggestion:_0x123b3d,meta:_0x50b5f3}of this['_findSuggestions'](_0x22b231)){if(_0x123b3d['isMultiRange'])continue;if('formatInline'==_0x123b3d['type'])continue;const _0x521c9c=this['_getAttributeKey'](_0x123b3d);if(_0x521c9c&&this['_isBlockAttribute'](_0x521c9c)&&'split'!=_0x159495['type'])continue;const _0x19d730=_0x123b3d['data']&&_0x123b3d['data']['multipleBlocks'];('formatBlock'!=_0x123b3d['type']||'split'==_0x159495['type']&&!_0x19d730)&&(_0x50b5f3['containsRangeInObject']||'insertion'==_0x123b3d['type']&&_0x50b5f3['isOwn']||_0x123b3d['getFirstRange']()['containsRange'](_0x22b231)&&this['_breakSuggestionMarker'](_0x123b3d,_0x280df5,_0x2991f1));}});},{'priority':'lowest'}),_0x47b68a['model']['on']('deleteContent',(_0x24b673,_0x3a55d9)=>{const _0x4e43a4=_0x3a55d9[0x0],_0x57201f=_0x3a55d9[0x1];if(_0x57201f&&_0x57201f['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x4e43a4['isCollapsed'])return;const _0x3d00c5=_0x47b68a['model']['schema'],{start:_0x50e278,end:_0x4a4b68}=_0x4e43a4['getFirstRange'](),_0x45c923=_0x50e278['nodeAfter']&&_0x3d00c5['isLimit'](_0x50e278['nodeAfter'])?null:_0x3d00c5['getNearestSelectionRange'](_0x50e278,'forward'),_0x4dcfe1=_0x4a4b68['nodeBefore']&&_0x3d00c5['isLimit'](_0x4a4b68['nodeBefore'])?null:_0x3d00c5['getNearestSelectionRange'](_0x4a4b68,'backward'),_0x337a8a=_0x47b68a['model']['createRange'](_0x45c923?_0x45c923['start']:_0x50e278,_0x4dcfe1?_0x4dcfe1['end']:_0x4a4b68);_0x47b68a['model']['change'](_0x3cf2b6=>{this['markDeletion'](_0x337a8a);const _0x595dfc=_0x47b68a['model']['schema']['getNearestSelectionRange'](_0x337a8a['start']);_0x4e43a4['is']('documentSelection')?_0x3cf2b6['setSelection'](_0x595dfc):_0x4e43a4['setTo'](_0x595dfc);}),_0x24b673['stop']();},{'priority':_0x2cd6d6['normal']+0xa}),_0x47b68a['model']['on']('insertContent',(_0x3dfcf4,_0xfde41c)=>{const _0x45d1b1=_0xfde41c[_0xfde41c['length']-0x1];_0x45d1b1&&_0x45d1b1['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x47b68a['model']['change'](()=>{let _0x40ecb4=_0x47b68a['model']['insertContent'](_0xfde41c[0x0],_0xfde41c[0x1],_0xfde41c[0x2],{'forceDefaultExecution':!0x0});if(!_0x40ecb4)return;_0x3dfcf4['return']=_0x40ecb4['clone']();const _0x51041c=_0x40ecb4['end']['nodeBefore'],_0x209030=_0x47b68a['model']['schema'];_0x51041c&&_0x209030['isBlock'](_0x51041c)&&!_0x209030['isObject'](_0x51041c)&&(_0x40ecb4=_0x47b68a['model']['createRange'](_0x40ecb4['start'],_0x47b68a['model']['createPositionAt'](_0x51041c,'end'))),this['markInsertion'](_0x40ecb4);}),_0x3dfcf4['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x3f006c=new $(_0x47b68a,this['_suggestions']);_0x47b68a['commands']['add']('acceptSuggestion',_0x3f006c),this['enableCommand']('acceptSuggestion');const _0x2067b7=new B(_0x47b68a,this['_suggestions']);_0x47b68a['commands']['add']('discardSuggestion',_0x2067b7),this['enableCommand']('discardSuggestion'),_0x47b68a['commands']['add']('acceptAllSuggestions',new x(_0x47b68a,_0x3f006c,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x47b68a['commands']['add']('discardAllSuggestions',new x(_0x47b68a,_0x2067b7,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x47b68a['commands']['add']('acceptSelectedSuggestions',new R(_0x47b68a,_0x3f006c,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x47b68a['commands']['add']('discardSelectedSuggestions',new R(_0x47b68a,_0x2067b7,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x113aaf=_0x47b68a['plugins']['get']('CommentsRepository');this['listenTo'](_0x113aaf,'addComment',(_0xa9f4af,{threadId:_0x2a113e})=>{const _0xafe54e=this['_suggestions']['get'](_0x2a113e);_0xafe54e&&_0xafe54e['commentThread']&&0x1===_0xafe54e['commentThread']['length']&&this['_updateSuggestionData'](_0x2a113e,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x113aaf,'removeComment',(_0x5021b9,{threadId:_0x128c01})=>{const _0x3419d7=this['_suggestions']['get'](_0x128c01);_0x3419d7&&_0x3419d7['commentThread']&&!_0x3419d7['commentThread']['length']&&this['_updateSuggestionData'](_0x128c01,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x5f0bf6){if(this['_adapter'])throw new _0x596f3d('track-changes-adapter-already-set',this);this['_adapter']=_0x5f0bf6;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x1ebb5f=!0x1,toJSON:_0x19348d=!0x1}={}){const _0x487e07=[];for(const _0x288c6a of this['_suggestions']['values']())_0x1ebb5f&&!_0x288c6a['isInContent']||_0x487e07['push'](_0x288c6a);return _0x19348d?_0x487e07['map'](_0x49ad4a=>_0x49ad4a['toJSON']()):_0x487e07;}['getSuggestion'](_0x42f054){const _0x2e36bc=this['_suggestions']['get'](_0x42f054);if(!_0x2e36bc)throw new _0x596f3d('track-changes-suggestion-not-found',this);return _0x2e36bc;}['hasSuggestion'](_0x506387){return this['_suggestions']['has'](_0x506387);}['addSuggestionData'](_0x40daf9){const {authorId:_0x46ff20,id:_0x173290,attributes:_0x51fdaf}=_0x40daf9,[_0x34379b,_0x301b14]=_0x40daf9['type']['split'](':'),_0x5a470c=this['_suggestions']['get'](_0x173290)||this['_createSuggestion'](_0x34379b,_0x301b14,_0x173290,_0x46ff20,_0x51fdaf);if(this['_addThreadToSuggestion'](_0x5a470c),this['_checkSuggestionCorrectness'](_0x5a470c,_0x34379b,_0x301b14||null,_0x46ff20),_0x5a470c['createdAt']=_0x40daf9['createdAt'],_0x5a470c['_isDataLoaded']=!0x0,_0x51fdaf&&_0x51fdaf['@external']){const _0x33fa6e=_0x51fdaf['@external'],_0x15e5ab=this['_getExternalAuthor'](_0x33fa6e['authorName']);_0x5a470c['authoredAt']=_0x33fa6e['createdAt'],_0x5a470c['author']=_0x15e5ab,_0x5a470c['isExternal']=!0x0;}else _0x5a470c['authoredAt']=_0x40daf9['createdAt'];switch(_0x40daf9['data']&&(_0x5a470c['data']=_0x40daf9['data']),_0x40daf9['attributes']&&(_0x5a470c['attributes']=_0x40daf9['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x5a470c['_saved']=!0x0),this['_suggestionState']['get'](_0x5a470c)){case'notReady':this['_suggestionState']['set'](_0x5a470c,'dataReady');break;case'markerReady':_0x5a470c['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x5a470c])),this['_refreshSuggestionsChain'](new Set([_0x5a470c])),this['_suggestionState']['set'](_0x5a470c,'ready'),this['fire']('suggestionLoaded',_0x5a470c)):this['_suggestionState']['set'](_0x5a470c,'removed');}return _0x5a470c;}['acceptSuggestion'](_0x773933){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x32f8d0 of _0x773933['getAllAdjacentSuggestions']())_0x32f8d0['accept']();});});}['discardSuggestion'](_0x2d31f5){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x30c88b of _0x2d31f5['getAllAdjacentSuggestions']())_0x30c88b['discard']();});});}['enableCommand'](_0x1527e7,_0x44d4bd){const _0x48330c=this['editor']['commands']['get'](_0x1527e7);if(!_0x48330c)throw new _0x596f3d('track-changes-command-not-found',this,{'commandName':_0x1527e7});if(this['_enabledCommands']['has'](_0x48330c))throw new _0x596f3d('track-changes-enable-command-twice',this,{'commandName':_0x1527e7});this['_enabledCommands']['add'](_0x48330c),_0x44d4bd&&_0x48330c['on']('execute',(_0x4b5e4a,_0x50db24)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x50db24['length']>0x0&&_0x50db24[_0x50db24['length']-0x1]&&_0x50db24[_0x50db24['length']-0x1]['forceDefaultExecution']?_0x50db24['pop']():(_0x4b5e4a['return']=_0x44d4bd((..._0x14a8b0)=>_0x48330c['execute'](..._0x14a8b0,{'forceDefaultExecution':!0x0}),..._0x50db24),_0x4b5e4a['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0x485484){let _0x2596de,_0x2d6b50;const _0x316d82=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2596de=_0x485484();}catch(_0x2860b2){_0x2d6b50=_0x2860b2;}return _0x316d82||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x2d6b50&&_0x596f3d['rethrowUnexpectedError'](_0x2d6b50,this),_0x2596de;}['markInsertion'](_0x5ad991,_0x2fb7a8=null,_0x51fb3a={}){if(_0x5ad991['isCollapsed'])return null;const _0x30030e=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x472ced,meta:_0x1082c6}of this['_findSuggestions'](_0x5ad991,'insertion'))if(_0x1082c6['isOwn']){if(!_0x1082c6['isNextTo']){if(_0x1082c6['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x472ced,_0x51fb3a))continue;return _0x472ced;}if(Lt(_0x472ced,_0x51fb3a))return _0x472ced;this['_breakSuggestionMarker'](_0x472ced,_0x5ad991['start'],_0x5ad991['end']);break;}if(_0x2fb7a8==_0x472ced['subType']&&Lt(_0x472ced,_0x51fb3a)){const _0x11b468=_0x472ced['getFirstRange']();return _0x11b468['start']['isEqual'](_0x5ad991['end'])?this['_setSuggestionRange'](_0x472ced,this['_model']['createRange'](_0x5ad991['start'],_0x11b468['end'])):this['_setSuggestionRange'](_0x472ced,this['_model']['createRange'](_0x11b468['start'],_0x5ad991['end'])),_0x472ced;}}const _0xabb8db=_0x21958e(),_0x57797a=_0x30030e['id'],_0x171336=_0x2fb7a8?'insertion:'+_0x2fb7a8:'insertion',_0x216be2=this['_setSuggestionData']({'id':_0xabb8db,'type':_0x171336,'createdAt':new Date(),'authorId':_0x57797a,'attributes':_0x51fb3a});return this['_addSuggestionMarker'](_0x171336,_0xabb8db,_0x57797a,_0x5ad991),_0x216be2;}['markMultiRangeInsertion'](_0x5ef0f2,_0x2b081c='multi',_0x2d12bf={}){const _0x32cb88=this['editor']['plugins']['get']('Users')['me'],_0x312119=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x2b081c,'join');for(const _0x1112fb of this['getSuggestions']())if(_0x1112fb['author']['id']==_0x32cb88['id']&&'insertion'==_0x1112fb['type']&&_0x1112fb['subType']==_0x2b081c&&Lt(_0x1112fb,_0x2d12bf)&&(_0x312119(_0x1112fb['getRanges'](),_0x5ef0f2)||_0x312119(_0x5ef0f2,_0x1112fb['getRanges']()))){for(const _0x2406e1 of _0x5ef0f2)_0x1112fb['addRange'](_0x2406e1);return _0x1112fb;}for(const {suggestion:_0x3b3a5d,meta:_0x4bc220}of this['_findSuggestions'](_0x5ef0f2,'insertion')){if(!_0x4bc220['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x4bc220['containsRangeInObject'])continue;if(!Lt(_0x3b3a5d,_0x2d12bf))continue;let _0x4ceab9=!0x0;for(const _0x3a2bac of _0x3b3a5d['getRanges']())for(const _0x2eb80a of _0x5ef0f2)if(!_0x3a2bac['containsRange'](_0x2eb80a)){_0x4ceab9=!0x1;break;}if(_0x4ceab9)return _0x3b3a5d;}const _0x5d03ec=_0x21958e(),_0x20db7b=_0x32cb88['id'],_0x3533c0='insertion:'+_0x2b081c,_0x2c27f4=this['_setSuggestionData']({'id':_0x5d03ec,'type':_0x3533c0,'createdAt':new Date(),'authorId':_0x20db7b,'attributes':_0x2d12bf});for(const _0x18d4bf of _0x5ef0f2)this['_addSuggestionMarker'](_0x3533c0,_0x5d03ec,_0x20db7b,_0x18d4bf,u['getMultiRangeId']());return _0x2c27f4;}['markInlineFormat'](_0x353f12,_0xcaca3e,_0x292331=null,_0x47b656={}){if(_0x292331=_0x292331||Vt(_0xcaca3e),_0x353f12['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x4b2088=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x292331,'accept');return this['forceDefaultExecution'](()=>_0x4b2088([_0x353f12],_0xcaca3e,_0x47b656)),null;}const _0x56cdb2=this['editor']['plugins']['get']('Users')['me'],_0x35d97f=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x5a81f9,meta:_0x4eef1d}of this['_findSuggestions'](_0x353f12,'insertion'))_0x4eef1d['isOwn']&&!_0x4eef1d['isInsideObject']&&_0x35d97f['push'](..._0x5a81f9['getRanges']());}const _0xf6ed9b=function(_0x3737c8,_0x424e6f){const _0x34fcee=[];for(const _0x5e76e9 of _0x424e6f){const _0x26c755=_0x3737c8['getIntersection'](_0x5e76e9);_0x26c755&&_0x34fcee['push'](_0x26c755);}return _0x34fcee;}(_0x353f12,_0x35d97f),_0x4085b8=function(_0xf85eaf,_0x419a82){const _0x583f3b=[_0xf85eaf];for(const _0x4a0737 of _0x419a82){let _0x2c24f1=0x0;for(;_0x2c24f1<_0x583f3b['length'];){const _0x39d096=_0x583f3b[_0x2c24f1]['getDifference'](_0x4a0737);_0x583f3b['splice'](_0x2c24f1,0x1,..._0x39d096),_0x2c24f1+=_0x39d096['length'];}}return _0x583f3b;}(_0x353f12,_0x35d97f);_0xf6ed9b['length']&&this['_model']['change'](()=>{for(const _0x1c03a5 of _0xf6ed9b){const _0xfe7576=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0x292331,'accept');this['forceDefaultExecution'](()=>_0xfe7576([_0x1c03a5],_0xcaca3e,_0x47b656));}});for(const _0x1ebcbd of _0x4085b8){let _0x35d8f1=null,_0x25653d=_0x1ebcbd['start'],_0x1d28fb=_0x1ebcbd['end'];for(const {suggestion:_0x1a2033,meta:_0x282fb3}of this['_findSuggestions'](_0x1ebcbd,'formatInline')){if(!_0x282fb3['isOwn'])continue;if(_0x1a2033['subType']!=_0x292331)continue;if(!Lt(_0x1a2033,_0x47b656))continue;const _0x1a3397=_0x1a2033['getFirstRange']();if(_0x1a3397['containsRange'](_0x1ebcbd,!0x0))return null;_0x25653d=_0x25653d['isBefore'](_0x1a3397['start'])?_0x25653d:_0x1a3397['start'],_0x1d28fb=_0x1d28fb['isAfter'](_0x1a3397['end'])?_0x1d28fb:_0x1a3397['end'],_0x35d8f1?_0x1a3397['start']['isBefore'](_0x35d8f1['getFirstRange']()['start'])?(_0x35d8f1['removeMarkers'](),_0x35d8f1=_0x1a2033):_0x1a2033['removeMarkers']():_0x35d8f1=_0x1a2033;}const _0x484aa0=this['_model']['createRange'](_0x25653d,_0x1d28fb);if(_0x35d8f1)this['_setSuggestionRange'](_0x35d8f1,_0x484aa0);else{const _0x1e2289=_0x21958e(),_0x184eaa=_0x56cdb2['id'];this['_setSuggestionData']({'id':_0x1e2289,'type':'formatInline:'+_0x292331,'data':_0xcaca3e,'createdAt':new Date(),'authorId':_0x184eaa,'attributes':_0x47b656}),this['_addSuggestionMarker']('formatInline:'+_0x292331,_0x1e2289,_0x184eaa,_0x484aa0);}}return null;}['markBlockFormat'](_0x46bdcf,_0x62995c,_0x1c62ae=[],_0x209972=null,_0xe45795={}){_0x62995c['formatGroupId']||(_0x62995c['formatGroupId']=_0x62995c['commandName']),_0x62995c['multipleBlocks']=_0x46bdcf['is']('range'),_0x209972=_0x209972||Vt(_0x62995c);const _0xfafa8=_0x1c62ae['map'](_0x5b903d=>Gt(_0x5b903d,this['_model'])),_0xfa518d=_0x46bdcf['is']('range')?_0x46bdcf:Gt(_0x46bdcf,this['_model']);if('never'===this['_trackFormatChanges']){const _0x5401a1=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x209972,'accept');return this['forceDefaultExecution'](()=>_0x5401a1([_0xfa518d],_0x62995c,_0xe45795)),null;}_0xfafa8['push'](_0xfa518d);let _0x1ce8e6=!0x0;for(const _0x2f35c2 of _0xfafa8)if(!this['_rangeIsInLocalUserInsertion'](_0x2f35c2)){_0x1ce8e6=!0x1;break;}if(_0x1ce8e6&&'always'!==this['_trackFormatChanges']){const _0x5ce932=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x209972,'accept');return this['forceDefaultExecution'](()=>_0x5ce932([_0xfa518d],_0x62995c,_0xe45795)),null;}let _0x3f0557=null,_0x4cc199=_0xfa518d['start'],_0xf51d07=_0xfa518d['end'];for(const {suggestion:_0x5a5661,meta:_0x5ea000}of this['_findSuggestions'](_0xfa518d,'formatBlock')){if(!_0x5ea000['isOwn'])continue;if(_0x5ea000['isNextTo']||_0x5ea000['containsRangeInObject']||_0x5ea000['isInsideObject'])continue;if(_0x5a5661['data']['formatGroupId']!=_0x62995c['formatGroupId'])continue;if(!Lt(_0x5a5661,_0xe45795))continue;const _0x23abca=_0x5a5661['getFirstRange']();if(_0x5a5661['subType']==_0x209972){if(_0x23abca['containsRange'](_0xfa518d,!0x0))return null;_0x4cc199=_0x4cc199['isBefore'](_0x23abca['start'])?_0x4cc199:_0x23abca['start'],_0xf51d07=_0xf51d07['isAfter'](_0x23abca['end'])?_0xf51d07:_0x23abca['end'],_0x3f0557?_0x23abca['start']['isBefore'](_0x3f0557['getFirstRange']()['start'])?(_0x3f0557['removeMarkers'](),_0x3f0557=_0x5a5661):_0x5a5661['removeMarkers']():_0x3f0557=_0x5a5661;}else{const _0x5e2cd6=_0xfa518d['getIntersection'](_0x23abca);this['_cutOutSuggestionMarker'](_0x5a5661,_0x5e2cd6);}}const _0x47a57e=this['editor']['plugins']['get']('Users')['me'],_0x2da829=_0x21958e(),_0x120a00=_0x47a57e['id'];if(_0x3f0557)return this['_setSuggestionRange'](_0x3f0557,this['_model']['createRange'](_0x4cc199,_0xf51d07)),_0x3f0557;{const _0x55320d=this['_setSuggestionData']({'id':_0x2da829,'type':'formatBlock:'+_0x209972,'data':_0x62995c,'createdAt':new Date(),'authorId':_0x120a00,'attributes':_0xe45795});return this['_addSuggestionMarker']('formatBlock:'+_0x209972,_0x2da829,_0x120a00,this['_model']['createRange'](_0x4cc199,_0xf51d07)),_0x55320d;}}['markMultiRangeBlockFormat'](_0x302406,_0x29988d,_0x3251e3=[],_0x40ea34=null,_0x29ebcb={}){_0x29988d['formatGroupId']||(_0x29988d['formatGroupId']=_0x29988d['commandName']);const _0x2ba46e=_0x302406[0x0];_0x29988d['multipleBlocks']=_0x2ba46e['is']('range'),_0x40ea34=_0x40ea34||Vt(_0x29988d);const _0x5aa0b9=_0x3251e3['map'](_0x50f025=>Gt(_0x50f025,this['_model'])),_0x37b776=_0x2ba46e['is']('range')?_0x302406:_0x302406['map'](_0x83a077=>Gt(_0x83a077,this['_model']));if('never'===this['_trackFormatChanges']){const _0x246314=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40ea34,'accept');return this['forceDefaultExecution'](()=>_0x246314(_0x37b776,_0x29988d,_0x29ebcb)),null;}_0x5aa0b9['push'](..._0x37b776);let _0x56920d=!0x0;for(const _0x47336a of _0x5aa0b9)if(!this['_rangeIsInLocalUserInsertion'](_0x47336a)){_0x56920d=!0x1;break;}if(_0x56920d&&'always'!==this['_trackFormatChanges']){const _0x829c17=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40ea34,'accept');return this['forceDefaultExecution'](()=>_0x829c17(_0x37b776,_0x29988d,_0x29ebcb)),null;}const _0x2792ee=this['editor']['plugins']['get']('Users')['me'];for(const _0x392eed of this['getSuggestions']()){if(_0x392eed['author']['id']!=_0x2792ee['id'])continue;if('formatBlock'!=_0x392eed['type']||_0x392eed['data']['formatGroupId']!=_0x29988d['formatGroupId'])continue;if(!Lt(_0x392eed,_0x29ebcb))continue;const _0xc211c9=_0x392eed['subType']==_0x40ea34;for(let _0x2c1e71=0x0;_0x2c1e71<_0x37b776['length'];_0x2c1e71++){const _0x163584=_0x37b776[_0x2c1e71];for(const _0x287d85 of _0x392eed['getMarkers']()){const _0x5ef1b0=_0x287d85['getRange']();if(_0x163584['isEqual'](_0x5ef1b0)){_0xc211c9?(_0x37b776['splice'](_0x2c1e71,0x1),_0x2c1e71--):_0x392eed['removeMarker'](_0x287d85['name']);break;}}}}if(0x0==_0x37b776['length'])return null;const _0x404869=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x40ea34,'join');for(const _0x1c0a7a of this['getSuggestions']())if(_0x1c0a7a['author']['id']==_0x2792ee['id']&&'formatBlock'==_0x1c0a7a['type']&&_0x1c0a7a['data']['formatGroupId']==_0x29988d['formatGroupId']&&_0x1c0a7a['subType']==_0x40ea34&&Lt(_0x1c0a7a,_0x29ebcb)&&(_0x404869(_0x1c0a7a['getRanges'](),_0x37b776)||_0x404869(_0x37b776,_0x1c0a7a['getRanges']()))){for(const _0x233304 of _0x37b776)_0x1c0a7a['addRange'](_0x233304);return _0x1c0a7a;}const _0x11a7ae=_0x21958e(),_0x1c4c29=_0x2792ee['id'],_0x2ad561='formatBlock:'+_0x40ea34,_0x559d54=this['_setSuggestionData']({'id':_0x11a7ae,'type':_0x2ad561,'data':_0x29988d,'createdAt':new Date(),'authorId':_0x1c4c29,'attributes':_0x29ebcb});for(const _0x36b0bc of _0x37b776)this['_addSuggestionMarker'](_0x2ad561,_0x11a7ae,_0x1c4c29,_0x36b0bc,u['getMultiRangeId']());return _0x559d54;}['markDeletion'](_0x4f808e,_0x3e42df=null,_0x4cbdcf={}){if(_0x4f808e['isCollapsed'])return null;const _0x1eaf06=this['editor']['plugins']['get']('Users')['me'],_0x56a2ba=new _0x57a73e(_0x4f808e['start'],_0x4f808e['end']);for(const {suggestion:_0x4154cc,meta:_0x973bdb}of this['_findSuggestions'](_0x56a2ba,'insertion'))if(_0x973bdb['isOwn']&&!_0x973bdb['isNextTo']){if(_0x4154cc['isMultiRange']){const _0x51311b=_0x4154cc['getRanges']()['filter'](_0x1f777b=>'$graveyard'!=_0x1f777b['root']['rootName']);_0x51311b['every'](_0x1835aa=>_0x56a2ba['containsRange'](_0x1835aa,!0x0))&&_0x4154cc['discard']();if(_0x51311b['some'](_0x2a9c83=>_0x2a9c83['containsRange'](_0x56a2ba,!0x0))){const _0x44f774=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3e42df,'accept');return this['forceDefaultExecution'](()=>_0x44f774([_0x56a2ba],null,_0x4cbdcf)),null;}}else{const _0x4b30b5=_0x56a2ba['getIntersection'](_0x4154cc['getFirstRange']());null!==_0x4b30b5&&_0x4154cc['_onDiscard']([_0x4b30b5],null,_0x4cbdcf);}}if(_0x56a2ba['detach'](),_0x56a2ba['isCollapsed']||'$graveyard'==_0x56a2ba['root']['rootName'])return null;let _0x5be937=null,_0x17f089=_0x56a2ba['start'],_0x6372af=_0x56a2ba['end'];const _0x133f58=this['_findSuggestions'](_0x56a2ba,'deletion');for(const {suggestion:_0x3cff9,meta:_0x3004c4}of _0x133f58){const _0x986fe7=this['_model']['createRange'](_0x17f089,_0x6372af);if(_0x3004c4['isOwn']&&(this['_mergeNestedSuggestions']||!_0x3004c4['containsRangeInObject']&&!_0x3004c4['isInsideObject'])){if(_0x3cff9['isMultiRange']){if(!Lt(_0x3cff9,_0x4cbdcf))continue;let _0x11c75e=!0x0;for(const _0x5e6f3 of _0x3cff9['getRanges']()){if(_0x5e6f3['containsRange'](_0x986fe7,!0x0))return _0x3cff9;_0x986fe7['containsRange'](_0x5e6f3)||(_0x11c75e=!0x1);}_0x11c75e&&_0x3cff9['discard']();}else{const _0x5b9f42=_0x3cff9['getFirstRange']();if(_0x5b9f42['containsRange'](_0x986fe7,!0x0))return _0x3cff9;if(!Lt(_0x3cff9,_0x4cbdcf)){_0x986fe7['containsRange'](_0x5b9f42)?_0x3cff9['removeMarkers']():_0x5b9f42['containsPosition'](_0x17f089)?_0x17f089=_0x5b9f42['end']:_0x5b9f42['containsPosition'](_0x6372af)&&(_0x6372af=_0x5b9f42['start']);continue;}_0x17f089=_0x17f089['isBefore'](_0x5b9f42['start'])?_0x17f089:_0x5b9f42['start'],_0x6372af=_0x6372af['isAfter'](_0x5b9f42['end'])?_0x6372af:_0x5b9f42['end'],_0x4cbdcf=Object['assign']({},_0x3cff9['attributes']),_0x5be937?_0x5b9f42['start']['isBefore'](_0x5be937['getFirstRange']()['start'])?(_0x5be937['removeMarkers'](),_0x5be937=_0x3cff9):_0x3cff9['removeMarkers']():_0x5be937=_0x3cff9;}}}if(_0x5be937)return this['_setSuggestionRange'](_0x5be937,this['_model']['createRange'](_0x17f089,_0x6372af)),_0x5be937;{const _0x29da0d=_0x21958e(),_0xfe9d75=this['_model']['createRange'](_0x17f089,_0x6372af),_0x593afe=_0x1eaf06['id'],_0x54f713=_0x3e42df?'deletion:'+_0x3e42df:'deletion',_0x4c143f=this['_setSuggestionData']({'id':_0x29da0d,'type':_0x54f713,'createdAt':new Date(),'authorId':_0x593afe,'attributes':_0x4cbdcf});return this['_addSuggestionMarker'](_0x54f713,_0x29da0d,_0x593afe,_0xfe9d75),_0x4c143f;}}['markMultiRangeDeletion'](_0x304575,_0x493ebf='multi',_0x4e8630={}){const _0x450b70=this['editor']['plugins']['get']('Users')['me'],_0x46b3ac=_0x304575['map'](_0x3cbdf0=>new _0x57a73e(_0x3cbdf0['start'],_0x3cbdf0['end'])),_0xe4da9f=new Set();for(const {suggestion:_0x6c21c3,meta:_0xcea8f8}of this['_findSuggestions'](_0x46b3ac,'insertion'))_0xcea8f8['isOwn']&&!_0xcea8f8['isNextTo']&&_0xe4da9f['add'](_0x6c21c3);for(const _0x669a69 of _0xe4da9f)if(_0x669a69['isMultiRange']){const _0xb6bcfc=_0x669a69['getRanges']();(!_0x669a69['attributes']||!_0x669a69['attributes']['skipNestingCheck'])&&(_0xb6bcfc['every'](_0x1f6a73=>_0x46b3ac['some'](_0x2e2fb4=>_0x2e2fb4['containsRange'](_0x1f6a73,!0x0)))&&_0x669a69['discard']());if(_0x46b3ac['every'](_0x128417=>_0xb6bcfc['some'](_0x5e16e9=>_0x5e16e9['containsRange'](_0x128417,!0x0)))){const _0x58f871=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x493ebf,'accept');return this['forceDefaultExecution'](()=>_0x58f871(_0x304575,null,_0x4e8630)),null;}}else{const _0xd84944=_0x669a69['getFirstRange']();_0x46b3ac['some'](_0x3c1155=>_0x3c1155['containsRange'](_0xd84944,!0x0))&&_0x669a69['discard']();if(_0x46b3ac['every'](_0x2c1f11=>_0xd84944['containsRange'](_0x2c1f11,!0x0))){const _0x24a0d2=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x493ebf,'accept');return this['forceDefaultExecution'](()=>_0x24a0d2(_0x46b3ac,null,_0x4e8630)),null;}}const _0x28b275=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x493ebf,'join');let _0x1f7d96=null;for(const _0x2f56ea of this['getSuggestions']())if(_0x2f56ea['author']['id']==_0x450b70['id']&&_0x2f56ea['isInContent']&&'deletion'==_0x2f56ea['type']&&_0x2f56ea['subType']==_0x493ebf&&Lt(_0x2f56ea,_0x4e8630)&&(_0x28b275(_0x2f56ea['getRanges'](),_0x46b3ac)||_0x28b275(_0x46b3ac,_0x2f56ea['getRanges']()))){if(_0x1f7d96){if(_0x2f56ea['commentThread']&&_0x2f56ea['commentThread']['length'])continue;for(const _0x49ccfa of _0x2f56ea['getRanges']())_0x1f7d96['isIntersectingWithRange'](_0x49ccfa)||_0x1f7d96['addRange'](_0x49ccfa);_0x2f56ea['removeMarkers']();}else{_0x1f7d96=_0x2f56ea;for(const _0x9ef2dc of _0x46b3ac)_0x2f56ea['isIntersectingWithRange'](_0x9ef2dc)||_0x2f56ea['addRange'](_0x9ef2dc);}}if(_0x1f7d96)return _0x1f7d96;_0xe4da9f['clear']();for(const {suggestion:_0x4cf06c,meta:_0x17c136}of this['_findSuggestions'](_0x46b3ac,'deletion'))_0x17c136['isOwn']&&(this['_mergeNestedSuggestions']||!_0x17c136['containsRangeInObject']&&!_0x17c136['isInsideObject'])&&Lt(_0x4cf06c,_0x4e8630)&&_0xe4da9f['add'](_0x4cf06c);for(const _0x454402 of _0xe4da9f){const _0x125228=_0x454402['getRanges']();if(!_0x4e8630||!_0x4e8630['skipNestingCheck']){if(_0x46b3ac['every'](_0x289f9b=>_0x125228['some'](_0x1d7e90=>_0x1d7e90['containsRange'](_0x289f9b,!0x0))))return _0x454402;}(!_0x454402['attributes']||!_0x454402['attributes']['skipNestingCheck'])&&(_0x125228['every'](_0x2219e4=>_0x46b3ac['some'](_0x109139=>_0x109139['containsRange'](_0x2219e4,!0x0)))&&_0x454402['discard']());}const _0x2a61ff=_0x21958e(),_0x4b75c8=_0x450b70['id'],_0x41c300='deletion:'+_0x493ebf,_0x165590=this['_setSuggestionData']({'id':_0x2a61ff,'type':_0x41c300,'createdAt':new Date(),'authorId':_0x4b75c8,'attributes':_0x4e8630});for(const _0x4f2d64 of _0x46b3ac)_0x4f2d64['detach'](),_0x4f2d64['isCollapsed']||'$graveyard'==_0x4f2d64['root']['rootName']||this['_addSuggestionMarker'](_0x41c300,_0x2a61ff,_0x4b75c8,_0x4f2d64,u['getMultiRangeId']());return _0x165590;}['markAttributeChange'](_0x3934ec,_0x8e4fd5,_0x16506c,_0x4c2eb4,_0x3db81b){if(_0x3934ec['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x2af626=this['editor']['plugins']['get']('Users')['me']['id'],_0x278d93=Array['from'](this['_suggestions']['values']())['filter'](_0x2d49b4=>'attribute'==_0x2d49b4['type']&&_0x2d49b4['data']['key']==_0x8e4fd5&&_0x2d49b4['isIntersectingWithRange'](_0x3934ec));if('default'===this['_trackFormatChanges']){const _0x54cac7=this['_findSuggestions'](_0x3934ec,'insertion')['filter'](({meta:_0x149634})=>_0x149634['isOwn']&&!_0x149634['isInsideObject']&&!_0x149634['isNextTo'])['map'](({suggestion:_0x215ece})=>_0x215ece);_0x278d93['unshift'](..._0x54cac7);}const _0x3cb1ca=new Map([[_0x3934ec,_0x16506c]]);for(const _0x12e2ce of _0x278d93){const _0x363c34='attribute'==_0x12e2ce['type']?_0x12e2ce['data']['oldValue']:void 0x0,_0x148701=_0x12e2ce['getFirstRange'](),_0xcb28a5=Array['from'](_0x3cb1ca['keys']())['find'](_0x557557=>_0x557557['isIntersecting'](_0x148701));if(!_0xcb28a5)continue;const _0xa28c43=_0xcb28a5['getDifference'](_0x148701);this['_isBlockAttribute'](_0x8e4fd5)&&'insertion'==_0x12e2ce['type']&&0x0!=_0xa28c43['length']||(_0x3cb1ca['delete'](_0xcb28a5),_0xa28c43['forEach'](_0x2786c5=>{_0x3cb1ca['set'](_0x2786c5,_0x16506c);}),'insertion'!=_0x12e2ce['type']&&_0x363c34!=_0x4c2eb4&&_0x3cb1ca['set'](_0xcb28a5['getIntersection'](_0x148701),_0x363c34));}const _0x4ab9fa=[];for(const [_0xb3c713,_0x223dc9]of _0x3cb1ca){const _0x35f38e=_0x21958e(),_0x45096c={'key':_0x8e4fd5,'oldValue':_0x223dc9,'newValue':_0x4c2eb4};_0x8e4fd5['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':_0x8e4fd5});const _0x23f34d=('attribute:'+(_0x8e4fd5+'|'+Vt({'newValue':_0x4c2eb4})))['substring'](0x0,0x3c),_0x1d6161=this['_setSuggestionData']({'id':_0x35f38e,'type':_0x23f34d,'data':_0x45096c,'createdAt':new Date(),'authorId':_0x2af626,'attributes':_0x3db81b});_0x4ab9fa['push'](_0x1d6161),this['_addSuggestionMarker'](_0x23f34d,_0x35f38e,_0x2af626,_0xb3c713);}return _0x4ab9fa;}['_registerBlockAttribute'](_0x28174e){this['_blockAttributeKeys']['add'](_0x28174e);}['_registerInlineAttribute'](_0x2e5828){this['_inlineAttributeKeys']['add'](_0x2e5828);}['_enableDefaultAttributesIntegration'](_0x137926,_0x298260=[],_0x550b5b=[]){this['enableCommand'](_0x137926,(_0x5afdb3,..._0x1e6665)=>{this['_recordAttributeChanges'](()=>{_0x5afdb3(..._0x1e6665);});});for(const _0x43e7c7 of _0x298260)this['_registerInlineAttribute'](_0x43e7c7);for(const _0x21aa95 of _0x550b5b)this['_registerBlockAttribute'](_0x21aa95);}['_getAttributeKey'](_0x1016ea){return'attribute'==_0x1016ea['type']?_0x1016ea['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x2a498a,_0xb283b6){const _0x40aaa6=_0x2a498a['getFirstMarker']();this['_model']['change'](_0x29c2b2=>{_0x29c2b2['updateMarker'](_0x40aaa6,{'range':_0xb283b6});});}['_addThreadToSuggestion'](_0x25b31f){const _0x5bed0d=_0x25b31f['id'],_0x51b9dd=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x5bed0d)||this['_commentsRepository']['addCommentThread']({'channelId':_0x51b9dd,'threadId':_0x5bed0d,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x588ea9=this['_commentsRepository']['getCommentThread'](_0x5bed0d);_0x588ea9['unbind']('isRemovable'),_0x588ea9['isRemovable']=!0x1,_0x25b31f['commentThread']=_0x588ea9;}['_checkSuggestionCorrectness'](_0x2c2f72,_0x2b6640,_0x2b0bdd,_0x496f66){if(_0x2c2f72['type']!=_0x2b6640||_0x2c2f72['subType']!=_0x2b0bdd||_0x2c2f72['creator']['id']!=_0x496f66)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x596f3d('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x51161a,_0x3ea0b4){const _0x5d3184=_0x51161a['getFirstRange']();if(_0x3ea0b4['isEqual'](_0x5d3184))_0x51161a['removeMarkers']();else{if(_0x5d3184['containsRange'](_0x3ea0b4)){const _0x37fdc9=this['_model']['createPositionAt'](_0x3ea0b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51161a,this['_model']['createRange'](_0x5d3184['start'],_0x37fdc9));const _0x5ef85c=_0x21958e(),_0x13e940=_0x51161a['creator']['id'],_0x115ada=_0x51161a['type']+':'+_0x51161a['subType'];this['_setSuggestionData']({'id':_0x5ef85c,'type':_0x115ada,'createdAt':new Date(),'authorId':_0x13e940,'data':_0x51161a['data'],'attributes':_0x51161a['attributes']});const _0x4bd1b6=this['_model']['createPositionAt'](_0x3ea0b4['end']['parent'],'after'),_0xb54e0a=this['_model']['createRange'](_0x4bd1b6,_0x5d3184['end']);this['_addSuggestionMarker'](_0x115ada,_0x5ef85c,_0x13e940,_0xb54e0a);}else{if(_0x5d3184['containsPosition'](_0x3ea0b4['start'])){const _0x1df3d5=this['_model']['createPositionAt'](_0x3ea0b4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x51161a,this['_model']['createRange'](_0x5d3184['start'],_0x1df3d5));}else{const _0x555195=this['_model']['createPositionAt'](_0x3ea0b4['end']['parent'],'after');this['_setSuggestionRange'](_0x51161a,this['_model']['createRange'](_0x555195,_0x5d3184['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x4fe421){for(const {suggestion:_0x4b03dd,meta:_0x1c143b}of this['_findSuggestions'](_0x4fe421,'insertion')){if(!_0x1c143b['isOwn'])continue;const _0x2d24ac=_0x4b03dd['getRanges']();for(const _0x3af869 of _0x2d24ac)if(!_0x4fe421['getDifference'](_0x3af869)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0x7b4c2f){const _0x2dd480=this['editor']['plugins']['get']('Users')['getUser'](_0x7b4c2f);if(!_0x2dd480)throw new _0x596f3d('track-changes-user-not-found',this);return _0x2dd480;}['_getExternalAuthor'](_0x299688){const _0x2422fd=this['editor']['plugins']['get']('Users'),_0x2ed0ab=_0x8ae5b('external:'+_0x299688),_0x2fd7a2=_0x2422fd['getUser'](_0x2ed0ab);return _0x2fd7a2||_0x2422fd['addUser']({'id':_0x2ed0ab,'name':_0x299688});}['_createSuggestion'](_0x27e35c,_0x3d1977,_0x1e96c5,_0x130473,_0x37d1f3){const _0x5a251a=this['_getAuthorFromId'](_0x130473),_0x288ceb=this['_suggestionFactory']['buildSuggestion'](_0x27e35c,_0x3d1977,_0x1e96c5,_0x5a251a,_0x37d1f3,_0x2de1ca=>{this['_updateSuggestionData'](_0x1e96c5,{'attributes':_0x2de1ca});const _0x20f507=this['getSuggestion'](_0x1e96c5);this['_joinWithAdjacentSuggestions'](new Set([_0x20f507])),this['_refreshSuggestionsChain'](new Set([_0x20f507]));});return this['listenTo'](_0x288ceb,'accept',()=>{this['_updateSuggestionData'](_0x1e96c5,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x288ceb,'discard',()=>{this['_updateSuggestionData'](_0x1e96c5,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x1e96c5,_0x288ceb),this['_suggestionState']['set'](_0x288ceb,'notReady'),_0x288ceb;}['_splitMarkerName'](_0x598f9e){const _0x32fdbc=_0x598f9e['split'](':');return{'group':_0x32fdbc[0x0],'type':_0x32fdbc[0x1],'subType':_0x32fdbc['length']>=0x5?_0x32fdbc[0x2]:null,'id':_0x32fdbc['length']<0x5?_0x32fdbc[0x2]:_0x32fdbc[0x3],'authorId':_0x32fdbc['length']<0x5?_0x32fdbc[0x3]:_0x32fdbc[0x4],'markerCount':0x6==_0x32fdbc['length']?_0x32fdbc[0x5]:null};}['_breakSuggestionMarker'](_0x2b992f,_0x537ae0,_0x267b0c){const _0x3f8c94=_0x2b992f['getFirstRange'](),_0x25525d=_0x3f8c94['start'],_0x44ddbd=_0x3f8c94['end'];this['_setSuggestionRange'](_0x2b992f,this['_model']['createRange'](_0x25525d,_0x537ae0));const _0x26257d=_0x21958e(),_0x21c54d=_0x2b992f['creator']['id'],_0x48e410=_0x2b992f['type']+(_0x2b992f['subType']?':'+_0x2b992f['subType']:'');this['_setSuggestionData']({'id':_0x26257d,'type':_0x48e410,'createdAt':new Date(),'authorId':_0x21c54d,'originalSuggestionId':_0x2b992f['id'],'attributes':_0x2b992f['attributes'],'data':_0x2b992f['data']});const _0x59a6b7=this['_getAttributeKey'](_0x2b992f);('formatBlock'==_0x2b992f['type']||_0x59a6b7&&this['_isBlockAttribute'](_0x59a6b7))&&(_0x267b0c=this['_model']['createPositionBefore'](_0x267b0c['parent'])),this['_addSuggestionMarker'](_0x48e410,_0x26257d,_0x21c54d,this['_model']['createRange'](_0x267b0c,_0x44ddbd));}['_findSuggestions'](_0x17e81e,_0x124afd=null){const _0x22b9b4=[],_0x13448e=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x17e81e)||(_0x17e81e=[_0x17e81e]);for(const _0x4a7f23 of this['getSuggestions']()){if(!_0x4a7f23['isInContent'])continue;if(_0x124afd&&_0x4a7f23['type']!=_0x124afd)continue;let _0x33cf75=!0x1;for(const _0x5101ff of _0x4a7f23['getRanges']()){for(const _0x19fee6 of _0x17e81e){const _0x577595=_0x19fee6['start']['isEqual'](_0x5101ff['end'])||_0x19fee6['end']['isEqual'](_0x5101ff['start']);if(_0x577595||_0x19fee6['getIntersection'](_0x5101ff)){const _0x344b3c=_0x19fee6['containsRange'](_0x5101ff)&&Rt(this['_model']['schema'],_0x5101ff['start'],_0x19fee6),_0xf9ceba=_0x5101ff['containsRange'](_0x19fee6)&&Rt(this['_model']['schema'],_0x19fee6['start'],_0x5101ff);_0x22b9b4['push']({'suggestion':_0x4a7f23,'meta':{'isOwn':_0x13448e==_0x4a7f23['author'],'isNextTo':_0x577595,'isInsideObject':_0x344b3c,'containsRangeInObject':_0xf9ceba}}),_0x33cf75=!0x0;break;}}if(_0x33cf75)break;}}return _0x22b9b4;}['_addSuggestionMarker'](_0x245530,_0xe25540,_0x58b276,_0x1ad209,_0x36afe4){this['_model']['change'](_0x295c45=>{let _0x456d6c='suggestion:'+_0x245530+':'+_0xe25540+':'+_0x58b276;_0x36afe4&&(_0x456d6c=_0x456d6c+':'+_0x36afe4),_0x295c45['addMarker'](_0x456d6c,{'range':_0x1ad209,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x11ea40){const _0x44ea01=_0x11ea40['previous'],_0x40f626=_0x11ea40['next'];_0x11ea40['previous']=null,_0x11ea40['next']=null,null!=_0x44ea01&&_0x44ea01['next']==_0x11ea40&&(_0x44ea01['next']=_0x40f626),null!=_0x40f626&&_0x40f626['previous']==_0x11ea40&&(_0x40f626['previous']=_0x44ea01),'ready'==this['_suggestionState']['get'](_0x11ea40)&&(this['_suggestionState']['set'](_0x11ea40,'removed'),this['fire']('suggestionUnloaded',_0x11ea40,_0x44ea01,_0x40f626));}['_setSuggestionData'](_0x1d5ab2){const _0x166756=_0x1d5ab2['id'],_0xafd43=this['addSuggestionData'](_0x1d5ab2);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0xb7ef95=this['editor']['plugins']['get']('PendingActions'),_0x328c62=_0xafd43['hasComments'],_0x356a8f=_0xafd43['subType']?_0xafd43['type']+':'+_0xafd43['subType']:_0xafd43['type'],_0x2dd875=this['editor']['locale'],_0x3aa042=_0xb7ef95['add'](o(_0x2dd875,'PENDING_ACTION_SUGGESTION')),_0x47c73a={'id':_0x166756,'type':_0x356a8f,'hasComments':_0x328c62,'data':_0x1d5ab2['data']||null,'originalSuggestionId':_0x1d5ab2['originalSuggestionId']||null,'attributes':_0xafd43['attributes']};this['_adapter']['addSuggestion'](_0x47c73a)['then'](_0x4324d1=>{_0xafd43['_saved']=!0x0,_0xb7ef95['remove'](_0x3aa042),_0x4324d1&&_0x4324d1['createdAt']&&(this['_suggestions']['get'](_0x166756)['createdAt']=_0x4324d1['createdAt']);})['catch'](_0x39fea6=>{throw _0x58786c('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0xafd43['discard']();}),_0xafd43['stopListening'](),this['_suggestions']['delete'](_0xafd43['id']),this['_suggestionState']['delete'](_0xafd43),_0x39fea6;});}return _0xafd43;}['_isBlockAttribute'](_0x2dc79b){return this['_blockAttributeKeys']['has'](_0x2dc79b);}['_updateSuggestionData'](_0x39598f,_0x5bb863){const _0x4dc58a=this['editor']['plugins']['get']('PendingActions'),_0x4501ff=this['getSuggestion'](_0x39598f);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x4501ff['_saved']){const _0x37afa0=_0x4dc58a['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x39598f,_0x5bb863)['then'](()=>{_0x4dc58a['remove'](_0x37afa0);});}else _0x4501ff['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x39598f,_0x5bb863);});}}['_getSuggestionData'](_0x5c8f85){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x596f3d('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x5c8f85);}['_handleNewSuggestionMarker'](_0x56425a){const {id:_0x2f91c8,type:_0x138a1d,subType:_0x4d5d1d,authorId:_0x445871}=this['_splitMarkerName'](_0x56425a),_0x55c544=this['_suggestions']['get'](_0x2f91c8)||this['_createSuggestion'](_0x138a1d,_0x4d5d1d,_0x2f91c8,_0x445871,{});switch(this['_checkSuggestionCorrectness'](_0x55c544,_0x138a1d,_0x4d5d1d,_0x445871),this['_suggestionState']['get'](_0x55c544)){case'notReady':this['_getSuggestionData'](_0x2f91c8)['then'](_0x27bedb=>{let _0x433312=Promise['resolve']();_0x27bedb['hasComments']&&(_0x433312=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x2f91c8})),_0x433312['then'](()=>{this['addSuggestionData'](_0x27bedb)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0x55c544,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x2f91c8,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0x55c544,'ready'),this['fire']('suggestionLoaded',_0x55c544);break;case'ready':this['fire']('suggestionChanged',_0x55c544);}return _0x55c544['addMarkerName'](_0x56425a),_0x55c544;}['_refreshSuggestionsChain'](_0x513190){const _0x29239a=Array['from'](_0x513190),_0x5051e7=_0x29239a['filter'](_0x365736=>'attribute'==_0x365736['type']);this['_refreshAttributeSuggestionsChain'](_0x5051e7);const _0x45be69=_0x29239a['filter'](_0x3901b6=>!_0x3901b6['isMultiRange']&&'attribute'!=_0x3901b6['type']),_0x70877a=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3e0b1d=>!_0x3e0b1d['isMultiRange']&&'attribute'!=_0x3e0b1d['type']),_0x50942d=_0x70877a['filter'](_0x3588e0=>!_0x513190['has'](_0x3588e0)),_0x285691=new Map(_0x70877a['map'](_0x5c301f=>[_0x5c301f,this['_suggestionFactory']['getSuggestionCallback'](_0x5c301f['type'],_0x5c301f['subType'],'chain')])),_0x4e6252=new Map(_0x70877a['map'](_0x5caa58=>[_0x5caa58,_0x5caa58['getFirstRange']()])),_0x4f794f=new Set(),_0x53cf3e=new Set();for(let _0x5026ae=0x0;_0x5026ae<_0x45be69['length'];_0x5026ae++)_0x1f04dc(_0x45be69[_0x5026ae],_0x45be69,_0x5026ae+0x1);for(let _0x354f9b=0x0;_0x354f9b<_0x45be69['length'];_0x354f9b++)_0x1f04dc(_0x45be69[_0x354f9b],_0x50942d,0x0);const _0x23e4dc=new Set();for(let _0x5a91a2=0x0;_0x5a91a2<_0x45be69['length'];_0x5a91a2++){const _0x343f1b=_0x45be69[_0x5a91a2];!_0x53cf3e['has'](_0x343f1b)&&_0x343f1b['previous']&&(_0x23e4dc['add'](_0x343f1b['previous']),_0x343f1b['previous']['next']===_0x343f1b&&(_0x343f1b['previous']['next']=null),_0x343f1b['previous']=null),!_0x4f794f['has'](_0x343f1b)&&_0x343f1b['next']&&(_0x23e4dc['add'](_0x343f1b['next']),_0x343f1b['next']['previous']===_0x343f1b&&(_0x343f1b['next']['previous']=null),_0x343f1b['next']=null);}function _0x1f04dc(_0x7adc5c,_0x205757,_0x446a3d){for(let _0xab986f=_0x446a3d;_0xab986f<_0x205757['length'];_0xab986f++){const _0x6e0a81=_0x10e294(_0x7adc5c,_0x205757[_0xab986f]);_0x6e0a81&&(_0x6e0a81[0x0]['next']=_0x6e0a81[0x1],_0x6e0a81[0x1]['previous']=_0x6e0a81[0x0],_0x4f794f['add'](_0x6e0a81[0x0]),_0x53cf3e['add'](_0x6e0a81[0x1]));}}function _0x10e294(_0x2f5987,_0x2ed2ef){if(_0x2f5987['author']['id']!==_0x2ed2ef['author']['id'])return null;const _0x450d13=_0x285691['get'](_0x2f5987)(_0x2f5987,_0x2ed2ef,_0x4e6252['get'](_0x2f5987),_0x4e6252['get'](_0x2ed2ef));if(!_0x450d13)return null;return _0x285691['get'](_0x2ed2ef)(_0x2f5987,_0x2ed2ef,_0x4e6252['get'](_0x2f5987),_0x4e6252['get'](_0x2ed2ef))?_0x450d13[0x1]['commentThread']&&_0x450d13[0x1]['commentThread']['length']?null:_0x450d13:null;}_0x23e4dc['size']&&this['_refreshSuggestionsChain'](_0x23e4dc);}['_refreshAttributeSuggestionsChain'](_0x24aee6){if(0x0==_0x24aee6['length'])return;const _0x427232=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x57e7a2=>'attribute'==_0x57e7a2['type']&&_0x57e7a2['_isDataLoaded']),_0x5a133f=[],_0x54bda6=new Map();for(const _0x13772f of _0x427232){const _0x3a63f1=_0x8ae5b(_0x13772f['attributes']);_0x54bda6['has'](_0x3a63f1)||(_0x54bda6['set'](_0x3a63f1,_0x5a133f['length']),_0x5a133f['push']([]));const _0x4f7171=_0x54bda6['get'](_0x3a63f1);_0x5a133f[_0x4f7171]['push'](_0x13772f);}!(function(){_0x5a133f['sort']((_0x64012a,_0x51fa6a)=>{const _0x6c6410=_0x64012a[0x0]['createdAt'],_0x26c719=_0x51fa6a[0x0]['createdAt'];return _0x6c6410==_0x26c719?_0x64012a[0x0]['attributes']['groupId']<_0x51fa6a[0x0]['attributes']['groupId']?-0x1:0x1:_0x6c6410<_0x26c719?-0x1:0x1;});for(const _0x113a2f of _0x5a133f)_0x113a2f['sort']((_0x5380b4,_0x30e266)=>_0x5380b4['id']<_0x30e266['id']?-0x1:0x1);}());for(let _0x325448=0x0;_0x325448<_0x5a133f['length'];_0x325448++){if(0x0==_0x5a133f[_0x325448]['length'])continue;const _0x41d752=[];for(let _0x5c955d=_0x325448+0x1;_0x5c955d<_0x5a133f['length'];_0x5c955d++)0x0!=_0x5a133f[_0x5c955d]['length']&&_0x1ea73c(_0x5a133f[_0x325448],_0x5a133f[_0x5c955d])&&_0x41d752['push'](_0x5c955d);for(const _0x4f794b of _0x41d752)_0x5a133f[_0x325448]=_0x5a133f[_0x325448]['concat'](_0x5a133f[_0x4f794b]),_0x5a133f[_0x4f794b]=[];}for(const _0x395da1 of _0x5a133f)for(let _0x483a8d=0x0;_0x483a8d<_0x395da1['length'];_0x483a8d++)_0x395da1[_0x483a8d]['next']=_0x395da1[_0x483a8d+0x1]||null;for(const _0x11ed9d of _0x5a133f)for(let _0x203f2e=0x0;_0x203f2e<_0x11ed9d['length'];_0x203f2e++)_0x11ed9d[_0x203f2e]['previous']=_0x11ed9d[_0x203f2e-0x1]||null;function _0x1ea73c(_0xdaf6ed,_0x4f302d){if(_0xdaf6ed[0x0]['attributes']['groupId']!==_0x4f302d[0x0]['attributes']['groupId']&&_0xdaf6ed[0x0]['author']!==_0x4f302d[0x0]['author'])return!0x1;if(!function(_0x5bf854,_0x4afee4){if(!_0x5bf854['hasComments']&&!_0x4afee4['hasComments'])return!0x0;if(_0x5bf854['hasComments']&&_0x4afee4['hasComments'])return!0x1;if(_0x5bf854['hasComments']&&_0x4afee4['createdAt']<_0x5bf854['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x4afee4['hasComments']&&_0x5bf854['createdAt']<_0x4afee4['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0xdaf6ed[0x0],_0x4f302d[0x0]))return!0x1;const _0x4430e0=Bt(_0xdaf6ed[0x0]['attributes'],'groupId'),_0xb1dfb6=Bt(_0x4f302d[0x0]['attributes'],'groupId');if(!_0x28eb20(_0x4430e0,_0xb1dfb6))return!0x1;return!!_0xdaf6ed['every'](_0x150545=>_0x4f302d['some'](_0x31e987=>_0x150545['getFirstRange']()['isEqual'](_0x31e987['getFirstRange']())))&&_0x4f302d['every'](_0x121066=>_0xdaf6ed['some'](_0x2d5ce7=>_0x121066['getFirstRange']()['isEqual'](_0x2d5ce7['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x41c976){const _0x1f72c7=Array['from'](_0x41c976),_0x1ad479=this['getSuggestions']({'skipNotAttached':!0x0}),_0x92e59a=_0x1ad479['filter'](_0x3b005a=>!_0x41c976['has'](_0x3b005a)),_0x54c0ff=new Map(_0x1f72c7['map'](_0x2c23ea=>[_0x2c23ea,this['_suggestionFactory']['getSuggestionCallback'](_0x2c23ea['type'],_0x2c23ea['subType'],'join')])),_0x361dc4=new Map(_0x1ad479['map'](_0x2b7f9d=>[_0x2b7f9d,_0x2b7f9d['getRanges']()]));for(let _0x3c5e50=0x0;_0x3c5e50<_0x1f72c7['length'];_0x3c5e50++){if(_0x1839a8(this,_0x1f72c7[_0x3c5e50],_0x1f72c7,_0x3c5e50+0x1))return!0x0;}for(let _0x143001=0x0;_0x143001<_0x1f72c7['length'];_0x143001++){if(_0x1839a8(this,_0x1f72c7[_0x143001],_0x92e59a,0x0))return!0x0;}return!0x1;function _0x1839a8(_0x4ef753,_0x2fc8ba,_0xbcbf30,_0x342d6f){for(let _0x1d76c2=_0x342d6f;_0x1d76c2<_0xbcbf30['length'];_0x1d76c2++){const _0x330009=_0xbcbf30[_0x1d76c2];if(_0x330009['type']!==_0x2fc8ba['type']||_0x330009['author']['id']!==_0x2fc8ba['author']['id']||_0x330009['subType']!==_0x2fc8ba['subType'])continue;if(!Pt(_0x2fc8ba,_0x330009,['groupId']))continue;if('attribute'==_0x2fc8ba['type']&&_0x2fc8ba['data']['oldValue']!=_0x330009['data']['oldValue'])continue;if('attribute'==_0x2fc8ba['type']&&_0x4ef753['_isBlockAttribute'](_0x2fc8ba['data']['key']))continue;if('formatBlock'==_0x2fc8ba['type']){const _0x277006=_0x4ef753['editor']['model'],_0x46937a=_0x2fc8ba['getContainedElement']();if(_0x46937a&&(_0x277006['schema']['isObject'](_0x46937a)||_0x277006['schema']['isLimit'](_0x46937a)))continue;}const _0x49e1d6=_0x54c0ff['get'](_0x2fc8ba),_0x416bb0=_0x361dc4['get'](_0x2fc8ba),_0x120842=_0x361dc4['get'](_0x330009),_0x437aa5=_0x2fc8ba['commentThread']&&_0x2fc8ba['commentThread']['length'],_0x545454=_0x330009['commentThread']&&_0x330009['commentThread']['length'];if(!_0x437aa5&&_0x49e1d6(_0x120842,_0x416bb0))return _0x4ef753['_joinSuggestions'](_0x330009,_0x2fc8ba),_0x361dc4['delete'](_0x2fc8ba),!0x0;if(!_0x545454&&_0x49e1d6(_0x416bb0,_0x120842))return _0x4ef753['_joinSuggestions'](_0x2fc8ba,_0x330009),_0x361dc4['delete'](_0x330009),!0x0;}return!0x1;}}['_joinSuggestions'](_0x434c5b,_0x1ed5ac){if(_0x434c5b['isMultiRange']){for(const _0x53a0cf of _0x1ed5ac['getRanges']())_0x434c5b['addRange'](_0x53a0cf);}else{const _0x5063e3=_0x1ed5ac['getFirstRange']()['end'];this['_setSuggestionRange'](_0x434c5b,this['_model']['createRange'](_0x434c5b['getFirstRange']()['start'],_0x5063e3));}_0x1ed5ac['removeMarkers']();}['_getMarkerAnnouncementText'](_0x352781,_0x3f5f7c){const _0x520e8a=_0x352781['startsWith']('format')||_0x352781['startsWith']('attribute')?'FORMATTING':_0x352781['toUpperCase']();return o(this['editor']['locale'],_0x3f5f7c+'_'+_0x520e8a+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x11f5cb=this['editor'];if(!_0x11f5cb['ui'])return;const {ariaLiveAnnouncer:_0x5c542f}=_0x11f5cb['ui'];_0xe77ee4(this['_model'],({left:_0x493d70,entered:_0x45b442})=>{for(const _0x5e42c7 of _0x493d70){const {group:_0x168bb1,type:_0x4a8911}=this['_splitMarkerName'](_0x5e42c7['name']);if('suggestion'===_0x168bb1){_0x5c542f['announce'](this['_getMarkerAnnouncementText'](_0x4a8911,'LEAVE'));break;}}for(const _0x213956 of _0x45b442){const {group:_0x1f34f0,type:_0x458820}=this['_splitMarkerName'](_0x213956['name']);if('suggestion'===_0x1f34f0){_0x5c542f['announce'](this['_getMarkerAnnouncementText'](_0x458820,'ENTER'));break;}}});}['_processAttributeChanges'](_0x491eb3){if(this['_recordAttributeSuggestions'])return!0x1;const _0x3ba7e6=this['editor'],_0x5e691a=_0x3ba7e6['model']['document']['differ']['getChanges']();if(0x0==_0x5e691a['length'])return!0x1;const _0x238078=[],_0x56f428=_0x5e691a['filter'](_0x4e437d=>'attribute'==_0x4e437d['type']),_0x34dd77=_0x5e691a['filter'](_0x4cd01f=>'insert'==_0x4cd01f['type']&&'$text'!=_0x4cd01f['name']),_0x9cf330=_0x5e691a['filter'](_0x2a9b84=>'remove'==_0x2a9b84['type']&&'$text'!=_0x2a9b84['name']);for(const _0xdb3498 of _0x56f428)_0x238078['push']({'key':_0xdb3498['attributeKey'],'newValue':_0xdb3498['attributeNewValue'],'oldValue':_0xdb3498['attributeOldValue'],'range':Ot(_0xdb3498['range'],_0x3ba7e6['model'])});for(const _0x49eae8 of _0x34dd77){const _0x6aa6da=_0x9cf330['find'](_0x5ba00e=>_0x5ba00e['position']['isEqual'](_0x49eae8['position']));_0x6aa6da&&_0x238078['push']({'key':m,'newValue':_0x49eae8['name'],'oldValue':_0x6aa6da['name'],'range':_0x3ba7e6['model']['createRangeOn'](_0x49eae8['position']['nodeAfter'])});}return 0x0!=_0x238078['length']&&this['_reduceExistingSuggestions'](_0x491eb3,_0x238078);}['_processAttributeSuggestions'](_0x3a672e){let _0x495f44=!0x1;const _0x4b9f9e=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x475bf9=>_0x475bf9['data']['newRange']&&_0x475bf9['name']['startsWith']('suggestion:attribute:'));for(const _0x213d92 of _0x4b9f9e){const {subType:_0x4d1309,id:_0x18e266}=this['_splitMarkerName'](_0x213d92['name']),_0xce32b6=_0x4d1309['split']('|')[0x0];for(const _0x552693 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x552693['id']!=_0x18e266&&'attribute'==_0x552693['type']&&_0x552693['data']&&_0x552693['data']['key']==_0xce32b6&&_0x552693['getFirstRange']()['isIntersecting'](_0x213d92['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x552693,_0x213d92['data']['newRange'],_0x3a672e),_0x495f44=!0x0);}return _0x495f44;}['_recordAttributeChanges'](_0x3dcfe9){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x3dcfe9();}['_isRegisteredAttribute'](_0xc7be9b){const _0x51b223=this['_isBlockAttribute'](_0xc7be9b),_0x38638f=this['_inlineAttributeKeys']['has'](_0xc7be9b);return _0x51b223||_0x38638f;}['_reduceExistingSuggestions'](_0x16fdc3,_0x4dca47){if(0x0==_0x4dca47['length'])return!0x1;let _0x1b50d7=!0x1;for(const _0x43d059 of _0x4dca47){const _0x47bcbf=this['_findSuggestions'](_0x43d059['range'],'attribute')['filter'](_0x5f1691=>!_0x5f1691['meta']['isNextTo'])['map'](_0x2c294d=>_0x2c294d['suggestion']),_0x17876e=_0x8ae5b({'newValue':_0x43d059['newValue']});_0x47bcbf['filter'](_0x294b1a=>{const [_0x1baa36,_0x385516]=_0x294b1a['subType']['split']('|');return _0x1baa36==_0x43d059['key']&&_0x385516!=_0x17876e;})['forEach'](_0x1c81e9=>{this['_reduceSuggestionAttributeRange'](_0x1c81e9,_0x43d059['range'],_0x16fdc3),_0x1b50d7=!0x0;});}return _0x1b50d7;}['_reduceSuggestionAttributeRange'](_0x170f16,_0x252433,_0x2a834c){const _0x3f4961=_0x170f16['getFirstRange']()['getDifference'](_0x252433);0x0!==_0x3f4961['length']?0x1!==_0x3f4961['length']?this['_breakSuggestionMarker'](_0x170f16,_0x252433['start'],_0x252433['end']):this['_setSuggestionRange'](_0x170f16,_0x3f4961[0x0]):_0x2a834c['removeMarker'](_0x170f16['getFirstMarker']());}constructor(_0x1983dd){function _0x1686cf(_0x1c8120){return _0x1c8120['map'](_0x3ca4fb=>String['fromCharCode'](_0x3ca4fb))['join']('');}super(_0x1983dd),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x17d156,_0xecfb39,_0x3e4e61,_0xf54840)=>{this['_model']['change'](()=>{for(const _0x33f07a of[..._0xf54840,..._0x3e4e61])this['_model']['markers']['has'](_0x33f07a)&&_0x1983dd['editing']['reconvertMarker'](_0x33f07a);});}),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']=_0x1983dd['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(),_0x1983dd['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x1983dd['config']['get']('trackChanges.trackFormatChanges'),_0x1983dd['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x1983dd['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x1983dd,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x1686cf([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x1686cf([0x34,0x30,0x34,0x38,0x30,0x38,0x35,0x36]);}}class xt{['buildSuggestion'](_0x170540,_0x306781,_0x2fc0ae,_0x4357b6,_0x4b3dcf,_0x4e8f8a){return new u(this['_model'],{'type':_0x170540,'subType':_0x306781,'id':_0x2fc0ae,'author':_0x4357b6,'creator':_0x4357b6,'attributes':_0x4b3dcf,'onAttributesChange':_0x4e8f8a,'onAccept':(..._0x1e25db)=>this['getSuggestionCallback'](_0x170540,_0x306781,'accept')(..._0x1e25db),'onDiscard':(..._0x4de21f)=>this['getSuggestionCallback'](_0x170540,_0x306781,'discard')(..._0x4de21f)});}['registerCustomCallback'](_0x5de2be,_0x285284,_0x5c961d,_0x23de5b){const _0x589d0f=_0x5de2be+':'+_0x285284+':'+_0x5c961d;this['_customCallbacks']['set'](_0x589d0f,_0x23de5b);}['getSuggestionCallback'](_0x307e5a,_0x13f895,_0x4d500c){const _0x59ad48=_0x307e5a+':'+_0x13f895+':'+_0x4d500c;return this['_customCallbacks']['get'](_0x59ad48)||this['_defaultCallbacks']['get'](_0x307e5a+':'+_0x4d500c);}['_registerDefaultCallbacks'](){const _0x4518a6=()=>!0x1,_0x57f331=_0x37ebc3=>{_0x37ebc3['sort']((_0x134607,_0x401f7d)=>_0x134607['start']['isBefore'](_0x401f7d['start'])?0x1:-0x1),this['_model']['change'](_0x37ee28=>{for(const _0x4f1ddd of _0x37ebc3){let _0x3a5aee;_0x3a5aee=_0x4f1ddd['end']['isAtEnd']&&_0x4f1ddd['end']['parent']==_0x4f1ddd['start']['nodeAfter']?_0x37ee28['createSelection'](_0x4f1ddd['start']['nodeAfter'],'on'):_0x37ee28['createSelection'](_0x4f1ddd),this['_model']['deleteContent'](_0x3a5aee,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x17c3b4=(_0x10aee7,_0x7ed092)=>{_0x7ed092&&this['_model']['change'](_0x138637=>{const {commandName:_0x4af52a,commandParams:_0xa8beff=[]}=_0x7ed092,_0x399807=_0x10aee7['map'](_0x190e0e=>(Tt(_0x190e0e)&&(_0x190e0e=this['_model']['createRange'](_0x190e0e['end'])),_0x190e0e))['filter'](_0x48d2a1=>'$graveyard'!==_0x48d2a1['root']['rootName']);if(_0x399807['length']<0x1)return;const _0x21d141=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x35d406=>_0x57a73e['fromRange'](_0x35d406));_0x138637['setSelection'](_0x399807);for(const _0x59cf36 of this['_editor']['commands']['commands']())_0x59cf36['refresh']();_0xa8beff['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x4af52a,..._0xa8beff);const _0x5de482=_0x21d141['filter'](_0x42bdea=>'$graveyard'!=_0x42bdea['root']['rootName']);_0x5de482['length']>0x0&&_0x138637['setSelection'](_0x5de482);for(const _0x1bccbe of _0x21d141)_0x1bccbe['detach']();});},_0x1ef851=(_0x1a365c,_0x373b98)=>0x1==_0x1a365c['length']&&0x1==_0x373b98['length']&&_0x1a365c[0x0]['end']['isEqual'](_0x373b98[0x0]['start']),_0x54d2b4=(_0x16a737,_0x2bf756,_0x204df8,_0x1ee1c6)=>Ft(_0x16a737,_0x2bf756,_0x204df8,_0x1ee1c6,this['_model'])?[_0x16a737,_0x2bf756]:Ft(_0x2bf756,_0x16a737,_0x1ee1c6,_0x204df8,this['_model'])?[_0x2bf756,_0x16a737]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x4518a6),this['_defaultCallbacks']['set']('insertion:discard',_0x57f331),this['_defaultCallbacks']['set']('insertion:join',_0x1ef851),this['_defaultCallbacks']['set']('insertion:chain',_0x54d2b4),this['_defaultCallbacks']['set']('deletion:accept',_0x57f331),this['_defaultCallbacks']['set']('deletion:discard',_0x4518a6),this['_defaultCallbacks']['set']('deletion:join',_0x1ef851),this['_defaultCallbacks']['set']('deletion:chain',_0x54d2b4),this['_defaultCallbacks']['set']('formatInline:accept',_0x17c3b4),this['_defaultCallbacks']['set']('formatInline:discard',_0x4518a6),this['_defaultCallbacks']['set']('formatInline:join',_0x1ef851),this['_defaultCallbacks']['set']('formatInline:chain',_0x4518a6),this['_defaultCallbacks']['set']('formatBlock:accept',_0x17c3b4),this['_defaultCallbacks']['set']('formatBlock:discard',_0x4518a6),this['_defaultCallbacks']['set']('formatBlock:join',_0x1ef851),this['_defaultCallbacks']['set']('formatBlock:chain',_0x4518a6),this['_defaultCallbacks']['set']('attribute:accept',_0x4518a6),this['_defaultCallbacks']['set']('attribute:discard',(_0x5a3964,_0x43b28e)=>{if(!_0x43b28e)return;const _0xc24cdb=this['_editor']['plugins']['get'](p);this['_model']['change'](_0x3727ba=>{if(_0x43b28e['key']==m)for(const _0x2ba1b4 of _0x5a3964){const _0x2b1672=_0x2ba1b4['start']['nodeAfter'],_0x7c46c3=_0x43b28e['oldValue'];_0x3727ba['rename'](_0x2b1672,_0x7c46c3);}else{if(_0xc24cdb['_isBlockAttribute'](_0x43b28e['key'])){for(const _0x1e9386 of _0x5a3964)void 0x0!==_0x43b28e['oldValue']?_0x3727ba['setAttribute'](_0x43b28e['key'],_0x43b28e['oldValue'],_0x1e9386['start']['nodeAfter']):_0x3727ba['removeAttribute'](_0x43b28e['key'],_0x1e9386['start']['nodeAfter']);}else{for(const _0x282323 of _0x5a3964)_0x43b28e['oldValue']?_0x3727ba['setAttribute'](_0x43b28e['key'],_0x43b28e['oldValue'],_0x282323):_0x3727ba['removeAttribute'](_0x43b28e['key'],_0x282323);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x1ef851);}constructor(_0x23745c){this['_editor']=_0x23745c,this['_model']=_0x23745c['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0x4dc34f,_0x4295c0,_0xe7a6e){for(const _0x35d064 of _0x4295c0['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x35d064['root']==_0x35d064)return!0x1;if(!_0xe7a6e['containsItem'](_0x35d064))return!0x1;if(_0x4dc34f['isObject'](_0x35d064)||_0x4dc34f['isLimit'](_0x35d064))return!0x0;}return!0x1;}function Tt(_0x36cd7a){return _0x36cd7a['end']['parent']==_0x36cd7a['start']['nodeAfter']&&_0x36cd7a['end']['isAtStart'];}function Et(_0x6e6478,_0x1cb2e9,_0x3c79f2,_0x49da11){const _0x11086c=_0x192980=>!_0x192980['item']['is']('$textProxy')&&!_0x49da11['isObject'](_0x192980['item']),_0x1ed646=_0x6e6478['start']['getLastMatchingPosition'](_0x11086c),_0x9ec9a3=_0x6e6478['end']['getLastMatchingPosition'](_0x11086c,{'direction':'backward'});return(!_0x6e6478['start']['isEqual'](_0x1ed646)||!_0x6e6478['end']['isEqual'](_0x9ec9a3))&&(_0x1ed646['isBefore'](_0x9ec9a3)?_0x3c79f2['updateMarker'](_0x1cb2e9,{'range':_0x3c79f2['createRange'](_0x1ed646,_0x9ec9a3)}):_0x3c79f2['removeMarker'](_0x1cb2e9),!0x0);}function Vt(_0x16d8af){return _0x8ae5b(_0x16d8af);}function Ut(_0x392a50){const _0x2a9427=_0x392a50['start']['nodeAfter'];return _0x2a9427&&_0x2a9427['is']('element');}function Ot(_0x5f06c7,_0x30cd7b){return null==_0x5f06c7['end']['nodeBefore']&&_0x5f06c7['end']['parent']==_0x5f06c7['start']['nodeAfter']?Gt(_0x5f06c7['start']['nodeAfter'],_0x30cd7b):_0x5f06c7;}function Gt(_0x35003a,_0x5f4687){const _0x12d80b=_0x5f4687['schema']['isObject'](_0x35003a)||_0x5f4687['schema']['isSelectable'](_0x35003a);return _0x5f4687['createRange'](_0x5f4687['createPositionAt'](_0x35003a,'before'),_0x12d80b?_0x5f4687['createPositionAfter'](_0x35003a):_0x5f4687['createPositionAt'](_0x35003a,'end'));}function Ft(_0x2cb2f5,_0x2d68a4,_0x2019a1,_0x5dce33,_0x2e07cc){if(!Pt(_0x2cb2f5,_0x2d68a4))return!0x1;if(_0x2019a1['end']['isEqual'](_0x5dce33['start']))return!0x0;if(_0x2cb2f5['type']!=_0x2d68a4['type'])return!0x1;if(!_0x2019a1['end']['isTouching'](_0x5dce33['start']))return!0x1;const _0x40f2cb=_0x2e07cc['createRange'](_0x2019a1['end'],_0x5dce33['start'])['getWalker']();for(const _0x2446be of _0x40f2cb)if(['elementStart','elementEnd']['includes'](_0x2446be['type'])&&_0x2e07cc['schema']['isLimit'](_0x2446be['item']))return!0x1;return!0x0;}function Pt(_0x267c8e,_0x28ddb5,_0x3865c4=[]){return!(!_0x267c8e['_isDataLoaded']||!_0x28ddb5['_isDataLoaded'])&&_0x28eb20(Bt(_0x267c8e['attributes'],_0x3865c4),Bt(_0x28ddb5['attributes'],_0x3865c4));}function Lt(_0xc05655,_0x1a8964){const _0x739fbe=Ht(_0xc05655['attributes']),_0x3a1d3b=Ht(_0x1a8964);if(!_0xc05655['_isDataLoaded'])return!0x1;for(const _0x1848c8 of Object['keys'](_0x3a1d3b))if(!_0x28eb20(_0x739fbe[_0x1848c8],_0x3a1d3b[_0x1848c8]))return!0x1;return!0x0;}function Ht(_0x29c1b){const _0x59ae38=Object['assign']({},_0x29c1b);return delete _0x59ae38['skipNestingCheck'],delete _0x59ae38['tablePasteChainId'],_0x59ae38;}class oe extends _0x39dad1(){['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 _0x31b1a0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x31b1a0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x54cfc5,_0x3d4a0c,_0x18f257,_0xd9d3f1){super(),this['model']=_0x3d4a0c,this['view']=_0x18f257,this['commentThreadController']=_0xd9d3f1,this['_editor']=_0x54cfc5,this['_acceptCommand']=_0x54cfc5['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x54cfc5['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x1f07b6,_0x18c8a8)=>_0x1f07b6||_0x18c8a8),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0xeeede6=>_0xeeede6&&this['_editor']['model']['canEditAt'](_0x3d4a0c['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x2d312f=>_0x2d312f&&this['_editor']['model']['canEditAt'](_0x3d4a0c['getRanges']())),this['_pendingAction']=null,_0x18f257['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x18f257,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x18f257,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x18f257,'change:isDirty',()=>{_0x18f257['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x12cfcc{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x591541}=this['_config'];this['commentsListView']=new _0x591541(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',_0x54f085=>_0x54f085+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x15b948,_0x39434c)=>_0x15b948||!!_0x39434c);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x1c92f2}=this['_config'],_0x3b79ac=new _0x1c92f2(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0xeeb8b8=_0x3b79ac['commentInputView'];return _0x3b79ac['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0xeeb8b8,'value',(_0x34123f,_0x5e5fc8,_0x50f492)=>!!_0x50f492||_0x34123f&&!_0x5e5fc8),_0xeeb8b8['on']('submit',(_0x1be639,_0x1b71de)=>{this['fire']('addComment',_0x1b71de),_0xeeb8b8['editor']['setData']('');}),_0xeeb8b8['on']('cancel',()=>this['focus']()),_0xeeb8b8['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x3b79ac;}constructor(_0x9b03d6,_0x565108,_0x59249d,_0x38026d){super(_0x9b03d6),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x565108['authoredAt']),this['bind']('authoredAt')['to'](_0x565108),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x565108,this['_localUser']=_0x59249d,this['_config']=_0x38026d,_0x38026d['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x13bd8b=this['bindTemplate'],_0x10224f=[{'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':_0x13bd8b['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x13bd8b['to']('authoredAt',_0x27806d=>this['_config']['formatDateTime'](_0x27806d))}]}]},{'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']&&_0x10224f['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0x1beb51={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x13bd8b['if']('isActive','ck-suggestion-wrapper--active'),_0x13bd8b['to']('type',_0x4ac567=>'ck-suggestion-'+_0x4ac567),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':_0x10224f}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0x1beb51['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)),_0x1beb51;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0x3b943e,_0x5bc0c8,_0x26e21b)=>{this['_descriptionElement']['innerHTML']=_0x26e21b;});}['_createButton'](_0x37fece,_0x5c57c2,_0x1f490a,_0x5777c2,_0x59fdc2){const _0x48556a=new _0x3b354c(this['locale']);return _0x48556a['set']({'label':_0x37fece,'icon':_0x5c57c2,'tooltip':!0x0,'tooltipPosition':_0x59fdc2}),_0x48556a['extendTemplate']({'attributes':{'class':_0x1f490a}}),_0x48556a['on']('execute',()=>{this['fire'](_0x5777c2,this['_model']['id']);}),_0x48556a;}['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;}constructor(_0x2126eb,_0x111824,_0x5e40e5,_0xc40400){super(_0x2126eb,_0x111824,_0x5e40e5,_0xc40400),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x1628db=>_0x1628db&&_0x1628db[0x0]?_0x1628db[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x50a04f,_0x4507a5)=>{let _0x4967e6='';for(const _0x13636c of _0x50a04f)_0x4967e6+='<p>'+ds(_0x13636c['content'],_0x13636c['color'])+'</p>';return _0x4507a5?_0x4967e6:_0x40352c(_0x4967e6,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x2126eb,'Accept\x20suggestion'),_0x326166['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x2126eb,'Discard\x20suggestion'),_0x326166['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x5b4eed(_0x2126eb,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x54ed1f,_0x43c0c6){let _0x4ea1cd='';return _0x4ea1cd+=_0x54ed1f['split']('*')['map']((_0x90975d,_0x943ccc)=>_0x943ccc%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0x90975d)+'</span>':us(_0x90975d))['join'](''),_0x43c0c6&&(_0x4ea1cd+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x43c0c6['value']+'\x22\x20title=\x22'+_0x43c0c6['title']+'\x22></span>'),_0x4ea1cd;}function us(_0x584251){const _0x23eed1=document['createElement']('span');return _0x23eed1['innerText']=_0x584251,_0x23eed1['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 _0x27a789{static get['requires'](){return[p,_0x54bab6,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x2a1649,_0x1decd3){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x1b5b82,_0x185467]of this['_handleControllerBuffer']){const _0x2f80f7=this['_suggestionToController']['has'](_0x1b5b82);_0x2f80f7||_0x185467?_0x2f80f7&&_0x185467&&this['_destroyController'](_0x1b5b82):this['_initializeController'](_0x1b5b82);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x2a1649,_0x1decd3);}['init'](){const _0xfa19d5=this['editor'],_0x3d2136=_0xfa19d5['plugins']['get']('TrackChangesEditing'),_0x56e802=_0xfa19d5['plugins']['get']('Annotations'),_0x3febd5=_0xfa19d5['plugins']['get']('EditorAnnotations'),_0xe6993c=_0xfa19d5['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x3febd5['addSourceCollector'](()=>{const _0x58289d=[];for(const [_0x1b4bd0,_0x10934e]of Array['from'](this['_suggestionToController'])){const _0x41c059=_0x1b4bd0['getAllAdjacentSuggestions'](),_0x5b19fb=[];for(const _0xcd46d of _0x41c059){if(!_0xcd46d['isInContent'])continue;if(_0xcd46d['isMultiRange']){_0x5b19fb['push'](..._0xcd46d['getRanges']());continue;}const _0x4da035=_0xcd46d['getFirstRange']();if(_0x5b19fb['length']>0x0){const _0x190719=_0x5b19fb[0x0]['getJoined'](_0x4da035);if(_0x190719){_0x5b19fb[0x0]=_0x190719;continue;}}_0x5b19fb['push'](_0x4da035);}_0x58289d['push']([_0x10934e['view'],_0x5b19fb]);}return _0x58289d;}),this['listenTo'](_0x3d2136,'suggestionLoaded',(_0x471b11,_0x29b9f6)=>{this['listenTo'](_0x29b9f6,'change:previous',(_0x4fd231,_0x1fb3c2,_0x483f0d,_0x4edff5)=>{_0x29b9f6['isInContent']&&(null==_0x483f0d?(this['_updateController'](_0x4edff5['head']),this['_handleSuggestionControllerDelayed'](_0x29b9f6,!0x1)):(this['_updateController'](_0x483f0d['head']),null==_0x4edff5&&this['_handleSuggestionControllerDelayed'](_0x29b9f6,!0x0)));}),null!==_0x29b9f6['previous']?this['_updateController'](_0x29b9f6['head']):this['_handleSuggestionControllerDelayed'](_0x29b9f6,!0x1);}),this['listenTo'](_0x3d2136,'suggestionUnloaded',(_0x226a05,_0x4729aa,_0x3c59a5)=>{this['stopListening'](_0x4729aa,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4729aa),this['_suggestionToController']['has'](_0x4729aa)&&this['_destroyController'](_0x4729aa),_0x3c59a5&&this['_updateController'](_0x3c59a5['head']);}),this['listenTo'](_0x3d2136,'suggestionChanged',(_0xe51bff,_0x39c8b9)=>{this['_updateController'](_0x39c8b9);}),this['listenTo'](_0x56e802,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0xe6993c,'addComment',(_0x13c00e,{threadId:_0x2afe57,isFromAdapter:_0x22c66c})=>{if(_0x22c66c||!_0x3d2136['hasSuggestion'](_0x2afe57))return;const _0x1ebe90=_0x3d2136['getSuggestion'](_0x2afe57);this['_suggestionToController']['get'](_0x1ebe90)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x55ab94=this['editor']['plugins']['get']('Annotations'),_0x82e8d8=this['editor']['plugins']['get']('TrackChangesEditing'),_0x568b97=Array['from'](_0x55ab94['activeAnnotations'],_0x3e713f=>_0x3e713f['innerView'])['filter'](_0x2fedf4=>this['_viewToController']['has'](_0x2fedf4)),_0x2df617=[];for(const _0x5102e7 of _0x568b97){const _0x3fcca7=this['_viewToController']['get'](_0x5102e7)['model']['getAllAdjacentSuggestions']();_0x2df617['push'](..._0x3fcca7['reduce']((_0xf411c,_0x304504)=>[..._0xf411c,..._0x304504['getMarkerNames']()],[]));}_0x82e8d8['activeMarkers']=_0x2df617;}['_addUIComponentsToFactory'](){const _0x194abe=this['editor'],_0x3e9aa2=_0x194abe['locale'],_0x51bfc2=o(_0x3e9aa2,'Track\x20changes'),_0x4cb77d=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0x51bfc2,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e9aa2,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e9aa2,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e9aa2,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x3e9aa2,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x4a1245 of _0x4cb77d)if(ae(_0x4a1245)){const _0x593b88=_0x194abe['commands']['get'](_0x4a1245['model']['commandName']);_0x4a1245['model']['bind']('isOn','isEnabled')['to'](_0x593b88,'value','isEnabled');}_0x194abe['ui']['componentFactory']['add']('trackChanges',_0x5ee8de=>this['_createToolbarButton'](_0x5ee8de,_0x4cb77d,_0x51bfc2)),_0x194abe['ui']['componentFactory']['add']('menuBar:trackChanges',_0xc1145d=>this['_createMenuBarMenu'](_0xc1145d,_0x4cb77d,_0x51bfc2));}['_createToolbarButton'](_0xb8fc0e,_0x58e220,_0x123455){const _0xd7edce=zt(_0xb8fc0e,Zt),_0x19631f=this['editor']['commands']['get']('trackChanges');_0xd7edce['buttonView']['set']({'tooltip':_0x123455,'label':_0x123455,'icon':ie}),_0xd7edce['buttonView']['bind']('isOn')['to'](_0x19631f,'value'),_0xd7edce['buttonView']['on']('execute',()=>{_0x19631f['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0xd7edce,_0x58e220);const _0x2c3f89=[];for(const _0x396a79 of _0x58e220)ae(_0x396a79)&&_0x2c3f89['push'](this['editor']['commands']['get'](_0x396a79['model']['commandName']));const _0x4e2fd1=_0xd7edce['buttonView'];return _0x4e2fd1['actionView']['unbind']('isEnabled'),_0x4e2fd1['arrowView']['unbind']('isEnabled'),_0x4e2fd1['actionView']['bind']('isEnabled')['to'](_0x19631f,'isEnabled'),_0x4e2fd1['arrowView']['bind']('isEnabled')['toMany'](_0x2c3f89,'isEnabled',(..._0x2332a1)=>_0x2332a1['some'](_0x319bda=>_0x319bda)),_0xd7edce['on']('execute',_0x4982ab=>{this['editor']['execute'](_0x4982ab['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0xd7edce;}['_createMenuBarMenu'](_0x45815a,_0x57cce7,_0x4e446a){const _0x5aad21=new Kt(_0x45815a),_0x2f610c=this['editor']['commands']['get']('trackChanges');_0x5aad21['buttonView']['set']({'label':_0x4e446a,'icon':ie});const _0x53dc8d=new Qt(_0x45815a);for(const _0x5f41ef of _0x57cce7){if('separator'==_0x5f41ef['type']){_0x53dc8d['items']['add'](new Jt(_0x45815a));continue;}const _0x1b039f=new Xt(_0x45815a,_0x5aad21),_0x37db38=new Yt(_0x45815a),_0x254708=_0x5f41ef['model'];_0x37db38['bind'](...Object['keys'](_0x254708))['to'](_0x254708),_0x37db38['delegate']('execute')['to'](_0x5aad21),_0x37db38['on']('execute',()=>{this['editor']['execute'](_0x254708['commandName']),this['editor']['editing']['view']['focus']();}),_0x1b039f['children']['add'](_0x37db38),_0x53dc8d['items']['add'](_0x1b039f);}return _0x5aad21['bind']('isEnabled')['to'](_0x2f610c,'isEnabled'),_0x5aad21['panelView']['children']['add'](_0x53dc8d),_0x5aad21;}['_initializeController'](_0x1a7010){const _0x337804=this['editor'],_0xf109a6=_0x337804['config'],_0x101634=_0x337804['plugins']['get']('Annotations'),_0x298144=_0x337804['plugins']['get']('CommentsRepository'),_0x4b18f9=_0x337804['plugins']['get']('EditorAnnotations'),_0x4e18db=_0x337804['plugins']['get'](_0x54bab6)['me'],_0x7373f0=_0xf109a6['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x368cd9,CommentThreadInputView:_0x3d4ddc}=_0x337804['plugins']['get']('CommentsUI');let _0x28eabe,_0x56bb5b;this['_annotationViews']['has'](_0x1a7010['id'])?(_0x56bb5b=this['_annotationViews']['get'](_0x1a7010['id']),_0x28eabe=_0x56bb5b['mainView']):(_0x28eabe=new _0x7373f0(_0x337804['locale'],_0x1a7010,_0x4e18db,{'disableComments':this['_disableComments'],'editorConfig':_0xf109a6['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0xf109a6['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0xf109a6['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0xf109a6['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x1a9945(_0xf109a6['get']('locale')),'CommentView':_0xf109a6['get']('comments')['CommentView'],'CommentsListView':_0x368cd9,'CommentThreadInputView':_0x3d4ddc}),_0x28eabe['acceptButton']['on']('execute',()=>{_0x337804['editing']['view']['focus']();}),_0x28eabe['discardButton']['on']('execute',()=>{_0x337804['editing']['view']['focus']();}),_0x56bb5b=_0x101634['createAnnotationView'](this['editor']['locale'],_0x28eabe),_0x56bb5b['bind']('isDirty')['to'](_0x28eabe,'isDirty'),_0x56bb5b['bind']('length')['to'](_0x28eabe),_0x56bb5b['bind']('type')['to'](_0x28eabe,'type',_0x4b2b79=>'suggestion-'+_0x4b2b79),this['_annotationViews']['set'](_0x1a7010['id'],_0x56bb5b));const _0x214457=_0x298144['createCommentThreadController'](_0x1a7010['commentThread'],_0x28eabe),_0x55d1e3=new oe(_0x337804,_0x1a7010,_0x28eabe,_0x214457),_0x3fd219=_0x1a7010['getAllAdjacentSuggestions']()['filter'](_0x4839cd=>_0x4839cd['isInContent']);_0x28eabe['descriptionParts']=_0x337804['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x3fd219),this['_suggestionToController']['set'](_0x1a7010,_0x55d1e3),this['_viewToController']['set'](_0x28eabe,_0x55d1e3);const _0x3062bb=_0x101634['createAnnotation']({'view':_0x56bb5b,'target':()=>{const _0x3f91d8=[],_0x3cb397=_0x1a7010['getAllAdjacentSuggestions']()['filter'](_0x1f4b7a=>_0x1f4b7a['isInContent']);for(const _0x145c89 of _0x3cb397)_0x3f91d8['push'](..._0x145c89['getMarkers']());return _0x58bc03(_0x337804['editing'],_0x3f91d8);},'type':()=>'suggestion-'+_0x55d1e3['view']['type']});_0x298144['_bindAnnotationToEditors'](_0x28eabe,_0x3062bb),_0x101634['add'](_0x3062bb),_0x4b18f9['registerAnnotation'](_0x3062bb);}['_destroyController'](_0x473c5c){const _0x28f230=this['editor']['plugins']['get']('CommentsRepository'),_0x25b0bc=this['editor']['plugins']['get']('Annotations'),_0x18b667=this['_suggestionToController']['get'](_0x473c5c),_0x4b8ed0=_0x18b667['view'],_0x118da7=_0x25b0bc['getByInnerView'](_0x4b8ed0);_0x28f230['_unbindEditors'](_0x4b8ed0),_0x118da7&&_0x25b0bc['remove'](_0x118da7),this['_suggestionToController']['delete'](_0x473c5c),this['_viewToController']['delete'](_0x4b8ed0),_0x18b667['destroy']();}['_updateController'](_0x3cbb41){if(!_0x3cbb41['isInContent']||!this['_suggestionToController']['has'](_0x3cbb41))return;const _0x152f7f=this['editor']['plugins']['get']('TrackChangesEditing'),_0x519ebc=this['_suggestionToController']['get'](_0x3cbb41),_0x493a3d=_0x3cbb41['getAllAdjacentSuggestions']();_0x519ebc['view']['descriptionParts']=_0x152f7f['_descriptionFactory']['getDescriptions'](_0x493a3d);}['destroy'](){for(const _0x3d5ed0 of this['_suggestionToController']['keys']())this['_destroyController'](_0x3d5ed0);for(const _0x1fc1f2 of this['_annotationViews']['values']())_0x1fc1f2['mainView']['destroy']();super['destroy']();}constructor(_0x3ea29b){super(_0x3ea29b),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0xcaab5e=this['editor']['config'];_0xcaab5e['define']('trackChanges.SuggestionThreadView',ne),_0xcaab5e['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0xcaab5e['get']('trackChanges.disableComments');}}function ae(_0x5037a0){return'model'in _0x5037a0;}class k extends _0x27a789{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x5e2cb1){this['editor']['plugins']['get'](p)['adapter']=_0x5e2cb1;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x178e5c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x178e5c);}['getSuggestions']({skipNotAttached:_0x1aa17e=!0x1,toJSON:_0x2dcf54=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x1aa17e,'toJSON':_0x2dcf54});}['getSuggestion'](_0x561eed){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x561eed);}}const T=['Pagination'];class P extends _0x27a789{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x189e9d=this['editor'];if(_0x189e9d['config']['define']('trackChangesData.editorCreator',_0x3ccf00=>{const _0x48b0f5=_0x189e9d['model']['document']['getRootNames']()['reduce']((_0x3d826e,_0x295bb2)=>(_0x3d826e[_0x295bb2]='',_0x3d826e),{});return _0x189e9d['constructor']['create'](_0x48b0f5,_0x3ccf00);}),'function'!=typeof _0x189e9d['config']['get']('trackChangesData')['editorCreator'])throw new _0x596f3d('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x301c20){return N(this['editor'],!0x0,_0x301c20);}['getDataWithDiscardedSuggestions'](_0x29ef1f){return N(this['editor'],!0x1,_0x29ef1f);}}class D extends _0x27a789{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x5d292e){super(_0x5d292e),this['result']='end';}}function v(_0x781c3b){return void 0x0!==_0x781c3b['getRootsAttributes'];}async function N(_0x1f96ee,_0x2a8c2b,_0x3df0ed){const _0x410a88=_0x326d9d(_0x1f96ee,T);_0x410a88['plugins']['push'](p,D),_0x410a88['rootsAttributes']=v(_0x1f96ee)?_0x1f96ee['getRootsAttributes']():void 0x0;const _0x320459=document['createDocumentFragment'](),_0x359e3a=_0x1f96ee['config']['get']('trackChangesData')['editorCreator'],_0x4564af=await _0x359e3a(_0x410a88,()=>function(_0x489941){const _0x22f96f=document['createElement']('div');return _0x489941['appendChild'](_0x22f96f),_0x22f96f;}(_0x320459));!function(_0xeab408,_0x5acb59){const _0x18aa90=_0xeab408['model']['document']['getRootNames']()['reduce']((_0x167f74,_0x544cf1)=>(_0x167f74[_0x544cf1]=_0xeab408['data']['get']({'rootName':_0x544cf1}),_0x167f74),{}),_0x44bc2c=_0xeab408['plugins']['get']('Users')['users']['map'](_0x5ed829=>({'id':_0x5ed829['id'],'name':_0x5ed829['name']})),_0x469590=_0xeab408['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d0971=_0x5acb59['plugins']['get']('Users'),_0x292830=_0x5acb59['plugins']['get']('TrackChangesEditing');for(const _0x3cab62 of _0x44bc2c)_0x3d0971['getUser'](_0x3cab62['id'])||_0x3d0971['addUser'](_0x3cab62);_0x3d0971['me']||_0x3d0971['useAnonymousUser']();for(const _0x5159e4 of _0x469590)_0x292830['addSuggestionData'](_0x5159e4);_0x5acb59['data']['set'](_0x18aa90);}(_0x1f96ee,_0x4564af),_0x4564af['execute'](_0x2a8c2b?'acceptAllSuggestions':'discardAllSuggestions');const _0x4046c9=v(_0x4564af)?_0x4564af['getFullData'](_0x3df0ed):_0x4564af['data']['get'](_0x3df0ed);return await _0x4564af['destroy'](),_0x4046c9;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};
23
+ import{Command as ts,Plugin as _0x26e52a,PendingActions as _0x52678f,icons as _0x39a540}from'@ckeditor/ckeditor5-core/dist/index.js';import{CKEditorError as _0x215eab,ObservableMixin as _0xa1677b,uid as _0x1702d8,insertToPriorityArray as _0x9c0d61,priorities as _0x3cf857,logWarning as _0x234e6d,Collection as Wt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{normalizeColorOptions as _0x9dfa68,View as _0x428534,ButtonView as _0x1b184b,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 _0x4a5edb,hashObject as _0x37c9d3,surroundingMarkersDetector as _0x22e895,trimHtml as _0x252a9a,UserView as _0x1ff955,getDateTimeFormatter as _0x23f3b0,getAllMarkersDomElementsSorted as _0x406756,sanitizeEditorConfig as _0x5d98e0}from'ckeditor5-collaboration/dist/index.js';import{Element as _0x4a3547,LiveRange as _0x577a36,LivePosition as _0x2146ab}from'@ckeditor/ckeditor5-engine/dist/index.js';import{setHighlightHandling as _0x408711,toWidget as _0x2b4f44}from'@ckeditor/ckeditor5-widget/dist/index.js';import{cloneDeep as _0x1a6d0a,set as _0x35d8,isEqual as _0x2b8b8c,unset as _0x4263c5,omit as Bt}from'lodash-es';import{Delete as _0x343642,Input as tr}from'@ckeditor/ckeditor5-typing/dist/index.js';import{Enter as _0x5df135,ShiftEnter as _0x188c20}from'@ckeditor/ckeditor5-enter/dist/index.js';class M extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](){this['value']=!this['value'],this['value']?this['_disableUnsupportedCommands']():this['_enableCommands']();}['_disableUnsupportedCommands'](){for(const _0x447842 of this['editor']['commands']['commands']())_0x447842['affectsData']&&!this['_enabledCommands']['has'](_0x447842)&&_0x447842['forceDisabled']('TrackChangesCommand');}['_enableCommands'](){for(const _0x37672f of this['editor']['commands']['commands']())_0x37672f['affectsData']&&!this['_enabledCommands']['has'](_0x37672f)&&_0x37672f['clearForceDisabled']('TrackChangesCommand');}constructor(_0x5718a1,_0x4de481){super(_0x5718a1),this['_enabledCommands']=_0x4de481,this['value']=!0x1,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class $ extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x2299a0){const _0x466945=this['_suggestions']['get'](_0x2299a0);if(!_0x466945)throw new _0x215eab('track-changes-accept-suggestion-not-found',this);const _0x24dd1c=_0x466945['getRanges']();this['editor']['model']['canEditAt'](_0x24dd1c)&&this['editor']['plugins']['get']('TrackChangesEditing')['acceptSuggestion'](_0x466945);}constructor(_0x4775d9,_0x134aab){super(_0x4775d9),this['_suggestions']=_0x134aab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class B extends ts{['refresh'](){this['isEnabled']=!0x0;}['execute'](_0x3f0b62){const _0x5c40ed=this['_suggestions']['get'](_0x3f0b62);if(!_0x5c40ed)throw new _0x215eab('track-changes-discard-suggestion-not-found',this);const _0x424310=_0x5c40ed['getRanges']();this['editor']['model']['canEditAt'](_0x424310)&&this['editor']['plugins']['get']('TrackChangesEditing')['discardSuggestion'](_0x5c40ed);}constructor(_0x141608,_0x250b6f){super(_0x141608),this['_suggestions']=_0x250b6f,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}function ss(_0x55d0fb){return _0x55d0fb['sort']((_0xe94b8f,_0x1e41ad)=>'deletion'==_0xe94b8f['type']&&'deletion'!=_0x1e41ad['type']?-0x1:'deletion'!=_0xe94b8f['type']&&'deletion'==_0x1e41ad['type']?0x1:0x0);}function to(_0x352d3b,_0x3dda1a){let _0x495f1f,_0x45a84a=0x0;const _0x2f0bbc=[],_0x1cd46d=_0x3dda1a['schema'];for(;_0x45a84a<_0x352d3b['length'];){const _0x5588fb=_0x352d3b[_0x45a84a],_0x3d9cd8=_0x352d3b[_0x45a84a+0x1];_0x495f1f||(_0x495f1f=_0x3dda1a['createPositionBefore'](_0x5588fb)),co(_0x3dda1a,_0x5588fb,_0x3d9cd8)||(_0x2f0bbc['push'](_0x3dda1a['createRange'](_0x495f1f,_0x1cd46d['isObject'](_0x5588fb)?_0x3dda1a['createPositionAfter'](_0x5588fb):_0x3dda1a['createPositionAt'](_0x5588fb,'end'))),_0x495f1f=null),_0x45a84a++;}return _0x2f0bbc;}function co(_0xc821d5,_0x1fd6ba,_0x19eb0e){if(!_0x19eb0e)return!0x1;const _0x3bae15=_0xc821d5['createPositionAfter'](_0x1fd6ba),_0x32a848=_0xc821d5['createPositionBefore'](_0x19eb0e);return _0x3bae15['isTouching'](_0x32a848);}function rs(_0x5c9d2f,_0x2959c7,_0x3d744e){for(;_0x3d744e['length'];){const _0x15dca5=_0x3d744e['splice'](0x0,0x64);_0x5c9d2f['change'](()=>{for(const _0x6e2ff9 of _0x15dca5)_0x6e2ff9['isInContent']&&_0x2959c7['execute'](_0x6e2ff9['id']);});}}class x extends ts{['refresh'](){const _0x20a895=Array['from'](this['_suggestions']['values']())['some'](_0x4a5b9d=>_0x4a5b9d['isInContent']);this['isEnabled']=this['_command']['isEnabled']&&_0x20a895;}['execute'](){const _0x4a1a0b=ss(Array['from'](this['_suggestions']['values']()));for(const _0x4745ae of _0x4a1a0b){const _0x4acdfc=_0x4745ae['getRanges']();if(!this['editor']['model']['canEditAt'](_0x4acdfc))return;}rs(this['editor']['model'],this['_command'],_0x4a1a0b);}constructor(_0x18204b,_0x53bd67,_0xdb88ab){super(_0x18204b),this['_command']=_0x53bd67,this['_suggestions']=_0xdb88ab,this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class R extends ts{['refresh'](){const _0xc816df=this['editor']['model']['document']['selection'],_0x2908f1=Array['from'](this['_suggestions']['values']());this['_selectedSuggestions']=function(_0x5138b0,_0x2b62fc){const _0x4eb03f=Array['from'](_0x5138b0['getRanges']()),_0x436acd=new Set();for(const _0xe66142 of _0x2b62fc)if(_0xe66142['isInContent']){for(const _0x1f92f2 of _0x4eb03f)for(const _0x158fc0 of _0xe66142['getRanges']())(_0x1f92f2['isIntersecting'](_0x158fc0)||_0x5138b0['isCollapsed']&&!_0xe66142['isMultiRange']&&_0xe66142['next']&&_0x158fc0['end']['isTouching'](_0x1f92f2['start']))&&_0x436acd['add'](_0xe66142);}return _0x436acd;}(_0xc816df,_0x2908f1),this['isEnabled']=this['_command']['isEnabled']&&!!this['_selectedSuggestions']['size'];}['execute'](){const _0x16f561=ss(Array['from'](this['_selectedSuggestions']));for(const _0x55a2a9 of _0x16f561){const _0x556827=_0x55a2a9['getRanges']();if(!this['editor']['model']['canEditAt'](_0x556827))return;}rs(this['editor']['model'],this['_command'],_0x16f561);}constructor(_0x2dd8cf,_0x4d187d,_0x32782f){super(_0x2dd8cf),this['_command']=_0x4d187d,this['_suggestions']=_0x32782f,this['_selectedSuggestions']=new Set(),this['refresh'](),this['_isEnabledBasedOnSelection']=!0x1;}}class u extends _0xa1677b(){get['head'](){let _0x7d1e61=this;for(;_0x7d1e61['previous'];)_0x7d1e61=_0x7d1e61['previous'];return _0x7d1e61;}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'](_0x4ce4cb){this['_markerNames']['add'](_0x4ce4cb);}['getMarkerNames'](){return Array['from'](this['_markerNames']);}['getMarkers'](){return this['getMarkerNames']()['map'](_0x3e1f00=>this['_model']['markers']['get'](_0x3e1f00))['filter'](_0x5ee29d=>_0x5ee29d);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}['removeMarkers'](){this['_model']['change'](_0x5a0b5c=>{for(const _0x365d2d of this['getMarkers']())_0x5a0b5c['removeMarker'](_0x365d2d);}),this['_markerNames']['clear']();}['removeMarker'](_0x29d47f){this['_model']['change'](_0x35d387=>{_0x35d387['removeMarker'](_0x29d47f);}),this['_markerNames']['delete'](_0x29d47f);}['addRange'](_0x269016){const _0x5747a7='suggestion:'+this['type']+':'+this['subType']+':'+this['id']+':'+this['creator']['id']+':'+u['getMultiRangeId']();this['addMarkerName'](_0x5747a7),this['_model']['change'](_0xaa300e=>{_0xaa300e['addMarker'](_0x5747a7,{'range':_0x269016,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x540af9){for(const _0x1909ec of this['getRanges']())if(_0x1909ec['isIntersecting'](_0x540af9))return!0x0;return!0x1;}['getRanges'](){return this['getMarkers']()['map'](_0x199af2=>_0x199af2['getRange']());}['getItems'](){return this['getRanges']()['reduce']((_0x5f06ad,_0x44686f)=>[..._0x5f06ad,..._0x44686f['getItems']()],[]);}['getFirstRange'](){var _0x5459e4;return(null===(_0x5459e4=this['getFirstMarker']())||void 0x0===_0x5459e4?void 0x0:_0x5459e4['getRange']())||null;}['getContainedElement'](){const _0x1fb7bf=this['getRanges']();if(0x1!=_0x1fb7bf['length'])return null;const _0x5032a8=_0x1fb7bf[0x0],_0x19bec1=_0x5032a8['start']['nodeAfter'],_0x2a9b4b=_0x5032a8['end']['nodeBefore'];return _0x19bec1 instanceof _0x4a3547?_0x19bec1!=_0x2a9b4b?null:_0x19bec1: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 _0x55062c=[];let _0x39b5c8=this['head'];for(;_0x39b5c8;)_0x55062c['push'](_0x39b5c8),_0x39b5c8=_0x39b5c8['next'];return _0x55062c;}['setAttribute'](_0x58e5d5,_0x3eb731){const _0x54eefd=_0x1a6d0a(this['attributes']);_0x35d8(_0x54eefd,_0x58e5d5,_0x3eb731),_0x2b8b8c(_0x54eefd,this['attributes'])||(this['attributes']=_0x54eefd,this['_onAttributesChange'](_0x54eefd));}['removeAttribute'](_0xccb2f0){const _0xe69490=_0x1a6d0a(this['attributes']);_0x4263c5(_0xe69490,_0xccb2f0),_0x2b8b8c(_0xe69490,this['attributes'])||(this['attributes']=_0xe69490,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 _0x1702d8()['substr'](0x1,0x5);}constructor(_0xf70b67,_0x17dd20){super(),this['_isDataLoaded']=!0x1,this['id']=_0x17dd20['id'],this['type']=_0x17dd20['type'],this['subType']=_0x17dd20['subType']||null,this['author']=_0x17dd20['author'],this['creator']=_0x17dd20['creator']||_0x17dd20['author'],this['isExternal']=Boolean(_0x17dd20['attributes']&&_0x17dd20['attributes']['@external']),this['data']=null,this['_model']=_0xf70b67,this['_onAccept']=_0x17dd20['onAccept'],this['_onDiscard']=_0x17dd20['onDiscard'],this['_onAttributesChange']=_0x17dd20['onAttributesChange'],this['_markerNames']=new Set(),this['createdAt']=null,this['set']('authoredAt',null),this['set']('attributes',_0x17dd20['attributes']||{}),this['set']('previous',null),this['set']('next',null),this['set']('commentThread',null),this['set']('_saved',!0x1),this['decorate']('accept'),this['decorate']('discard');}}function o(_0x2c5de9,_0x39ad17,_0x70f7bb){const t=_0x2c5de9['t'];switch(_0x39ad17){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',_0x70f7bb);case'*Outdent:*\x20%0':return t('*Outdent:*\x20%0',_0x70f7bb);case'*Change\x20to:*\x20%0':return t('*Change\x20to:*\x20%0',_0x70f7bb);case'*Insert:*\x20%0':return t('*Insert:*\x20%0',_0x70f7bb);case'*Format:*\x20%0':return t('*Format:*\x20%0',_0x70f7bb);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',_0x70f7bb);case'*Format:*\x20remove\x20from\x20%0':return t('*Format:*\x20remove\x20from\x20%0',_0x70f7bb);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',_0x70f7bb);case'*Change\x20%0\x20content*':return t('*Change\x20%0\x20content*',_0x70f7bb);case'*Remove:*\x20%0':return t('*Remove:*\x20%0',_0x70f7bb);case'*Merge:*\x20%0':return t('*Merge:*\x20%0',_0x70f7bb);case'*Split:*\x20%0':return t('*Split:*\x20%0',_0x70f7bb);case'*Remove\x20format:*\x20%0':return t('*Remove\x20format:*\x20%0',_0x70f7bb);case'*Set\x20font\x20size:*\x20%0':return t('*Set\x20font\x20size:*\x20%0',_0x70f7bb);case'*Set\x20font\x20family:*\x20%0':return t('*Set\x20font\x20family:*\x20%0',_0x70f7bb);case'*Set\x20format\x20to:*\x20%0':return t('*Set\x20format\x20to:*\x20%0',_0x70f7bb);case'*Set\x20font\x20color:*\x20%0':return t('*Set\x20font\x20color:*\x20%0',_0x70f7bb);case'*Set\x20font\x20background\x20color:*\x20%0':return t('*Set\x20font\x20background\x20color:*\x20%0',_0x70f7bb);case'*Set\x20format:*\x20%0':return t('*Set\x20format:*\x20%0',_0x70f7bb);case'*Set\x20image\x20text\x20alternative:*\x20%0':return t('*Set\x20image\x20text\x20alternative:*\x20%0',_0x70f7bb);case'*Set\x20image\x20width:*\x20%0':return t('*Set\x20image\x20width:*\x20%0',_0x70f7bb);case'*Set\x20link:*\x20%0':return t('*Set\x20link:*\x20%0',_0x70f7bb);case'*Set\x20highlight:*\x20%0':return t('*Set\x20highlight:*\x20%0',_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_PARAGRAPH':return t({'string':'paragraph','plural':'%0\x20paragraphs','id':'ELEMENT_PARAGRAPH'},_0x70f7bb);case'ELEMENT_PAGE_BREAK':return t({'string':'page\x20break','plural':'%0\x20page\x20breaks','id':'ELEMENT_PAGE_BREAK'},_0x70f7bb);case'ELEMENT_MEDIA':return t({'string':'media\x20item','plural':'%0\x20media\x20items','id':'ELEMENT_MEDIA'},_0x70f7bb);case'ELEMENT_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_IMAGE'},_0x70f7bb);case'ELEMENT_INLINE_IMAGE':return t({'string':'image','plural':'%0\x20images','id':'ELEMENT_INLINE_IMAGE'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_HTML_EMBED':return t({'string':'HTML\x20embed','plural':'%0\x20HTML\x20embeds','id':'ELEMENT_HTML_EMBED'},_0x70f7bb);case'ELEMENT_HEADING':return t({'string':'heading\x20(level\x20%1)','plural':'%0\x20headings\x20(level\x20%1)','id':'ELEMENT_HEADING'},_0x70f7bb);case'ELEMENT_HEADING_CUSTOM':return t({'string':'heading\x20(%1)','plural':'%0\x20headings\x20(%1)','id':'ELEMENT_HEADING_CUSTOM'},_0x70f7bb);case'ELEMENT_LIST_ITEM':return t({'string':'list\x20item','plural':'%0\x20list\x20items','id':'ELEMENT_LIST_ITEM'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_SPACE':return t({'string':'space','plural':'%0\x20spaces','id':'ELEMENT_SPACE'},_0x70f7bb);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'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_ROW':return t({'string':'table\x20row','plural':'%0\x20table\x20rows','id':'ELEMENT_TABLE_ROW'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_COLUMN':return t({'string':'table\x20column','plural':'%0\x20table\x20columns','id':'ELEMENT_TABLE_COLUMN'},_0x70f7bb);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'},_0x70f7bb);case'ELEMENT_TABLE_OF_CONTENTS':return t({'string':'table\x20of\x20contents','plural':'%0\x20tables\x20of\x20contents','id':'ELEMENT_TABLE_OF_CONTENTS'},_0x70f7bb);case'ELEMENT_LINE_BREAK':return t({'id':'ELEMENT_LINE_BREAK','string':'line\x20break','plural':'%0\x20line\x20breaks'},_0x70f7bb);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'},_0x70f7bb);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'},_0x70f7bb);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 _0x39ad17;}}class f{['getDescriptions'](_0x2cfa90){const _0x352adb=[],_0x4d3c40=new Set(),_0xeef7ef=new Set();for(let _0xdc6f59=0x0;_0xdc6f59<_0x2cfa90['length'];_0xdc6f59++){const _0xc7d286=_0x2cfa90[_0xdc6f59];if(!_0xc7d286['isInContent'])continue;const _0x4c50d4=this['_handleCustomCallbackDescription'](_0xc7d286);if(_0x4c50d4){if(null!=_0xc7d286['subType']){if(_0x4d3c40['has'](_0xc7d286['subType']))continue;_0x4d3c40['add'](_0xc7d286['subType']);}_0x352adb['push'](_0x4c50d4);}else{if('attribute'!=_0xc7d286['type'])'insertion'!=_0xc7d286['type']&&'deletion'!=_0xc7d286['type']||this['_handleInsertRemoveSuggestionDescription'](_0x352adb,_0xc7d286,_0x2cfa90[_0xdc6f59+0x1]);else{const _0x5337c1=_0xc7d286['data']['key'];if(_0xeef7ef['has'](_0x5337c1))continue;_0xeef7ef['add'](_0xc7d286['data']['key']),_0x5337c1==m?this['_handleRenameSuggestionDescription'](_0x352adb,_0xc7d286):this['_handleAttributeSuggestionDescription'](_0x352adb,_0xc7d286);}}}return this['_resolveDescriptionItems'](_0x352adb);}['registerDescriptionCallback'](_0x188b64){this['_customCallbacks']['push'](_0x188b64);}['registerElementLabel'](_0x4760b4,_0x264ef7,_0x1469cc=_0x3cf857['normal']){'function'==typeof _0x4760b4?_0x9c0d61(this['_itemLabelsCallbacks'],{'matchingCallback':_0x4760b4,'label':_0x264ef7,'priority':_0x1469cc}):this['_itemLabels']['set'](_0x4760b4,_0x264ef7);}['registerAttributeLabel'](_0x4e382a,_0x567baf){this['_attributeLabels']['set'](_0x4e382a,_0x567baf);}['getItemLabel'](_0x520d13,_0x12636e=0x1){let _0x2e12ad;for(const _0x286b45 of this['_itemLabelsCallbacks'])if(_0x286b45['matchingCallback'](_0x520d13)){_0x2e12ad=_0x286b45['label'];break;}return _0x2e12ad||(_0x2e12ad=this['_itemLabels']['get'](_0x520d13['name'])),_0x2e12ad?_0x2e12ad(_0x12636e):0x1!==_0x12636e?_0x12636e+'\x20'+_0x520d13['name']+'s':''+_0x520d13['name'];}['_addDescriptionItems'](_0x3252fe,_0x52ff12){const _0x57fd5c=_0x52ff12['getFirstRange']()['getWalker'](),_0x415615='insertion'==_0x52ff12['type']?'add':'remove';for(const _0xd5b2c8 of _0x57fd5c){const _0x335ad5=_0xd5b2c8['item'],_0x3de79a=_0x3252fe[_0x3252fe['length']-0x1];if(_0x335ad5['is']('$textProxy'))_0x3de79a&&_0x3de79a['type']['indexOf']('Container')>-0x1&&_0x3252fe['pop'](),_0x3de79a&&'text'==_0x3de79a['type']?_0x3de79a[_0x415615]+=_0x335ad5['data']:_0x3252fe['push']({'type':'text','add':'add'==_0x415615?_0x335ad5['data']:'','remove':'remove'==_0x415615?_0x335ad5['data']:''});else{if(this['_schema']['isObject'](_0x335ad5)){const _0x5cba19=_0x335ad5;if(_0x3de79a&&_0x3de79a['type']['indexOf']('Container')>-0x1&&_0x3252fe['pop'](),'elementEnd'==_0xd5b2c8['type'])continue;_0x3de79a&&_0x3de79a['type']==_0x415615+'Object'&&_0x3de79a['element']['name']==_0x5cba19['name']?_0x3de79a['quantity']++:_0x3252fe['push']({'type':_0x415615+'Object','element':_0x5cba19,'quantity':0x1}),_0x57fd5c['skip'](_0x9f5597=>!('elementEnd'==_0x9f5597['type']&&_0x9f5597['item']==_0x335ad5));}else{if(this['_schema']['checkChild'](_0x335ad5,'$text')||_0x335ad5['is']('element','softBreak')){const _0xf34f87=_0x335ad5;if('add'==_0x415615&&'elementStart'==_0xd5b2c8['type']||'remove'==_0x415615&&'elementEnd'==_0xd5b2c8['type'])continue;if(_0x3de79a&&-0x1==_0x3de79a['type']['indexOf']('Container')){'text'==_0x3de79a['type']&&(_0x3de79a[_0x415615]+='\x0a');continue;}let _0x2c5f8b;if(_0x2c5f8b='add'==_0x415615?_0xf34f87['nextSibling']&&!this['_schema']['isObject'](_0xf34f87['nextSibling'])?_0xf34f87['nextSibling']:null:_0xf34f87['previousSibling']&&!this['_schema']['isObject'](_0xf34f87['previousSibling'])?_0xf34f87['previousSibling']:null,_0xf34f87['isEmpty']||_0x2c5f8b&&_0x2c5f8b['isEmpty']){const _0x42eac8=_0x2c5f8b&&_0x2c5f8b['isEmpty']?_0x2c5f8b:_0xf34f87;_0x3de79a&&_0x3de79a['type']==_0x415615+'EmptyContainer'&&_0x3de79a['element']['name']==_0x42eac8['name']?_0x3de79a['quantity']++:_0x3252fe['push']({'type':_0x415615+'EmptyContainer','element':_0x42eac8,'quantity':0x1});}else _0x3252fe['push']({'type':_0x415615+'Container','element':_0xf34f87});}}}}}['_resolveDescriptionItems'](_0x1a676e){const _0x3b8818=this['_locale'],_0x16c396=[],_0xb4a4fc=[],_0x461160=[];for(const _0xe54ae2 of _0x1a676e)switch(_0xe54ae2['type']){case'text':if(_0xe54ae2['add']=_0xe54ae2['add']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),_0xe54ae2['remove']=_0xe54ae2['remove']['replace'](/(\S)\u000A+(\S)/g,'$1\x20$2')['replace'](/\u000A/g,''),''!=_0xe54ae2['add']&&''!=_0xe54ae2['remove']){_0x16c396['push']({'type':'replace','content':o(_0x3b8818,'REPLACE_TEXT',['\x22'+_0xe54ae2['remove']+'\x22','\x22'+_0xe54ae2['add']+'\x22'])});continue;}if(null!=_0xe54ae2['add']['match'](/^ +$/)){_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0',o(_0x3b8818,'ELEMENT_SPACE',_0xe54ae2['add']['length']))});continue;}if(null!=_0xe54ae2['remove']['match'](/^ +$/)){_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0',o(_0x3b8818,'ELEMENT_SPACE',_0xe54ae2['remove']['length']))});continue;}if(''!=_0xe54ae2['add']){_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0','\x22'+_0xe54ae2['add']+'\x22')});continue;}_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0','\x22'+_0xe54ae2['remove']+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Insert:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'removeEmptyContainer':case'removeObject':_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Remove:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'addContainer':_0x16c396['push']({'type':'insertion','content':o(_0x3b8818,'*Split:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'removeContainer':_0x16c396['push']({'type':'deletion','content':o(_0x3b8818,'*Merge:*\x20%0',this['getItemLabel'](_0xe54ae2['element'],_0xe54ae2['quantity']))});continue;case'addFormat':_0xb4a4fc['push'](_0xe54ae2['key']);continue;case'removeFormat':_0x461160['push'](_0xe54ae2['key']);continue;default:_0x16c396['push'](_0xe54ae2);}if(_0xb4a4fc['length']){const _0x3f284b=_0xb4a4fc['map'](_0x1357c5=>this['_attributeLabels']['has'](_0x1357c5)?this['_attributeLabels']['get'](_0x1357c5):_0x1357c5)['join'](',\x20');_0x16c396['push']({'type':'format','content':o(this['_locale'],'*Set\x20format:*\x20%0',_0x3f284b)});}if(_0x461160['length']){const _0x568903=_0x461160['map'](_0xc2aec8=>this['_attributeLabels']['has'](_0xc2aec8)?this['_attributeLabels']['get'](_0xc2aec8):_0xc2aec8)['join'](',\x20');_0x16c396['push']({'type':'format','content':o(this['_locale'],'*Remove\x20format:*\x20%0',_0x568903)});}return _0x16c396;}['_handleCustomCallbackDescription'](_0x117fae){for(const _0x16cf46 of this['_customCallbacks']){const _0x389499=_0x16cf46(_0x117fae);if(_0x389499&&'type'in _0x389499)return _0x389499;}}['_handleAttributeSuggestionDescription'](_0x1a6aa7,_0x3badb4){const _0x1cdb09=_0x3badb4['data'],_0x5db9b=void 0x0===_0x1cdb09['newValue']?'removeFormat':'addFormat';_0x1a6aa7['push']({'type':_0x5db9b,'key':_0x1cdb09['key']});}['_handleRenameSuggestionDescription'](_0x46251d,_0x48afc5){_0x46251d['push']({'type':'format','content':o(this['_locale'],'*Change\x20to:*\x20%0',this['getItemLabel'](_0x48afc5['getFirstRange']()['start']['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x353d0c,_0x3d8bab,_0x52195b){if(this['_addDescriptionItems'](_0x353d0c,_0x3d8bab),_0x52195b&&_0x52195b['getFirstRange']()&&!_0x3d8bab['getFirstRange']()['end']['isEqual'](_0x52195b['getFirstRange']()['start'])){const _0x5b6b23=_0x353d0c[_0x353d0c['length']-0x1],_0x50ed9b='insertion'==_0x3d8bab['type']?'add':'remove';_0x5b6b23&&'text'==_0x5b6b23['type']&&(_0x5b6b23[_0x50ed9b]+='\x0a');}}constructor(_0x330c16,_0x45e119){this['_customCallbacks']=[],this['_itemLabels']=new Map(),this['_itemLabelsCallbacks']=[],this['_attributeLabels']=new Map(),this['_schema']=_0x330c16,this['_locale']=_0x45e119;}}class E extends _0x26e52a{['afterInit'](){const _0x70a8ab=this['editor'],_0x45a22a=_0x70a8ab['plugins']['get']('TrackChangesEditing');_0x70a8ab['commands']['get']('showAIAssistant')&&_0x45a22a['enableCommand']('showAIAssistant');}}class V extends _0x26e52a{['afterInit'](){const _0xfac3a6=this['editor'],_0x3ed7cc=_0xfac3a6['locale'];if(!_0xfac3a6['plugins']['has']('AlignmentEditing'))return;const _0x3fd60a=_0xfac3a6['plugins']['get']('TrackChangesEditing');_0x3fd60a['_enableDefaultAttributesIntegration']('alignment',[],['alignment']),_0x3fd60a['_descriptionFactory']['registerAttributeLabel']('alignment',o(_0x3ed7cc,'FORMAT_ALIGNMENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x127f8a=this['editor'],_0x15d8b5=_0x127f8a['locale'];_0x127f8a['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1e33d7=>{if('formatBlock'!=_0x1e33d7['type'])return;const {data:_0x10c71f}=_0x1e33d7;if(_0x10c71f&&'alignment'==_0x10c71f['commandName']){const _0x49c824=_0x10c71f['commandParams'][0x0]['value'];return{'type':'format','content':o(_0x15d8b5,'*Format:*\x20%0',function(_0x13ec7a){switch(_0x13ec7a){case'left':return o(_0x15d8b5,'FORMAT_ALIGN_TO_LEFT');case'right':return o(_0x15d8b5,'FORMAT_ALIGN_TO_RIGHT');case'center':return o(_0x15d8b5,'FORMAT_ALIGN_TO_CENTER');case'justify':return o(_0x15d8b5,'FORMAT_JUSTIFY_TEXT');}}(_0x49c824))};}});}}const ti=['BoldEditing','ItalicEditing','UnderlineEditing','CodeEditing','StrikethroughEditing','SubscriptEditing','SuperscriptEditing'];class U extends _0x26e52a{['afterInit'](){const _0x40f083=this['editor'],_0x43875b=_0x40f083['plugins']['get']('TrackChangesEditing'),_0x1b03b5=_0x40f083['locale'];for(const _0x37ca30 of ti){if(!_0x40f083['plugins']['has'](_0x37ca30))continue;const _0x4beda6=_0x37ca30['slice'](0x0,-0x7)['toLowerCase'](),_0x3b4ac7='FORMAT_'+_0x4beda6['toUpperCase']();_0x43875b['_enableDefaultAttributesIntegration'](_0x4beda6,[_0x4beda6]),_0x43875b['_descriptionFactory']['registerAttributeLabel'](_0x4beda6,o(_0x1b03b5,_0x3b4ac7));}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x12da83=this['editor'],_0x3c5d3a=_0x12da83['locale'],_0x4c62d0=_0x12da83['plugins']['get']('TrackChangesEditing');function _0x4fb1a3(_0x552c84,_0x8cd81){_0x4c62d0['_descriptionFactory']['registerDescriptionCallback'](_0x7ba9c5=>{if('formatInline'!=_0x7ba9c5['type'])return;const {data:_0x583df1}=_0x7ba9c5;return _0x583df1&&_0x583df1['commandName']===_0x552c84?_0x583df1['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x3c5d3a,'*Format:*\x20%0',_0x8cd81)}:{'type':'format','content':o(_0x3c5d3a,'*Remove\x20format:*\x20%0',_0x8cd81)}:void 0x0;});}_0x4fb1a3('bold',o(_0x3c5d3a,'FORMAT_BOLD')),_0x4fb1a3('italic',o(_0x3c5d3a,'FORMAT_ITALIC')),_0x4fb1a3('underline',o(_0x3c5d3a,'FORMAT_UNDERLINE')),_0x4fb1a3('code',o(_0x3c5d3a,'FORMAT_CODE')),_0x4fb1a3('strikethrough',o(_0x3c5d3a,'FORMAT_STRIKETHROUGH')),_0x4fb1a3('subscript',o(_0x3c5d3a,'FORMAT_SUBSCRIPT')),_0x4fb1a3('superscript',o(_0x3c5d3a,'FORMAT_SUPERSCRIPT'));}}class O extends _0x26e52a{['afterInit'](){const _0x40434b=this['editor'],_0x2ea3d3=_0x40434b['locale'];if(!_0x40434b['plugins']['has']('BlockQuoteEditing'))return;const _0x456845=_0x40434b['plugins']['get']('TrackChangesEditing'),_0x5d3c66=this['editor']['commands']['get']('blockQuote');_0x456845['enableCommand']('blockQuote',(_0x2b7262,_0xb010fa={})=>{const _0x5817c7=this['editor']['model']['document']['selection'],_0x26bab5=_0xb010fa&&void 0x0!==_0xb010fa['forceValue']?_0xb010fa['forceValue']:!_0x5d3c66['value'];let _0x319909=[];if(_0x26bab5){const _0x210350=Array['from'](_0x5817c7['getSelectedBlocks']())['filter'](_0x22f2d7=>oo(_0x22f2d7)||function(_0x58192a,_0x4178e2){const _0x4bdf81=_0x4178e2['checkChild'](_0x58192a['parent'],'blockQuote'),_0x49bc3f=_0x4178e2['checkChild'](['$root','blockQuote'],_0x58192a);return _0x4bdf81&&_0x49bc3f;}(_0x22f2d7,this['editor']['model']['schema']));_0x319909=to(_0x210350,_0x40434b['model']);}else{const _0x52dba7=Array['from'](_0x5817c7['getSelectedBlocks']())['filter'](_0x4caaf0=>oo(_0x4caaf0));_0x319909=to(_0x52dba7,_0x40434b['model']);}_0x40434b['model']['change'](()=>{for(const _0xaaed24 of _0x319909)_0x456845['markBlockFormat'](_0xaaed24,{'commandName':'blockQuote','commandParams':[{'forceValue':_0x26bab5}]});});}),_0x456845['_descriptionFactory']['registerDescriptionCallback'](_0x1cd6a1=>{const {data:_0x26be1f}=_0x1cd6a1;if(_0x26be1f&&'blockQuote'==_0x26be1f['commandName']){const _0x66632d=o(_0x2ea3d3,'ELEMENT_BLOCK_QUOTE');return _0x26be1f['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x2ea3d3,'*Set\x20format:*\x20%0',_0x66632d)}:{'type':'format','content':o(_0x2ea3d3,'*Remove\x20format:*\x20%0',_0x66632d)};}});}}function oo(_0x558f75){return'blockQuote'==_0x558f75['parent']['name'];}class G extends _0x26e52a{['afterInit'](){const _0x2462ff=this['editor'];_0x2462ff['plugins']['has']('CaseChange')&&(_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseUpper'),_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseLower'),_0x2462ff['plugins']['get']('TrackChangesEditing')['enableCommand']('changeCaseTitle'));}}class F extends _0x26e52a{['afterInit'](){const _0x532135=this['editor'];_0x532135['commands']['get']('ckbox')&&_0x532135['plugins']['get']('TrackChangesEditing')['enableCommand']('ckbox');}}class L extends _0x26e52a{['afterInit'](){const _0x3c5df5=this['editor'];if(!_0x3c5df5['plugins']['has']('CodeBlock'))return;const _0x83801e=_0x3c5df5['plugins']['get']('TrackChangesEditing'),_0x1c74d1=_0x3c5df5['locale'],_0x10e298=_0x3c5df5['config']['get']('codeBlock')['languages'],_0x2d5e48=_0x3c5df5['commands']['get']('codeBlock');_0x83801e['enableCommand']('indentCodeBlock'),_0x83801e['enableCommand']('outdentCodeBlock'),_0x83801e['enableCommand']('codeBlock',(_0x3623ce,_0x3a10ea={})=>{const _0x2d581e=_0x3c5df5['model'],_0x3368b3=_0x3c5df5['model']['document']['selection'],_0x5d1b63=_0x3a10ea&&void 0x0!==_0x3a10ea['forceValue']?_0x3a10ea['forceValue']:!_0x2d5e48['value'];let _0x167162;_0x3a10ea['language']||(_0x3a10ea['language']=_0x10e298[0x0]['language']),_0x167162=_0x5d1b63?Array['from'](_0x3368b3['getSelectedBlocks']())['filter'](_0xe22e30=>eo(_0xe22e30)||function(_0x13f459,_0x31575b){if(_0x13f459['is']('rootElement')||_0x31575b['isLimit'](_0x13f459))return!0x1;return _0x31575b['checkChild'](_0x13f459['parent'],'codeBlock');}(_0xe22e30,_0x2d581e['schema'])):Array['from'](_0x3368b3['getSelectedBlocks']())['filter'](_0x1e4d17=>eo(_0x1e4d17));const _0x2ad27e=to(_0x167162,_0x2d581e);_0x2d581e['change'](()=>{for(const _0x5e241b of _0x2ad27e)_0x83801e['markBlockFormat'](_0x5e241b,{'commandName':'codeBlock','commandParams':[{..._0x3a10ea,'forceValue':_0x5d1b63}],'formatGroupId':'blockName'});});}),(_0x83801e['_descriptionFactory']['registerElementLabel']('codeBlock',_0x44c499=>o(_0x1c74d1,'ELEMENT_CODE_BLOCK',_0x44c499)),_0x83801e['_descriptionFactory']['registerDescriptionCallback'](_0x26f918=>{if('formatBlock'!=_0x26f918['type'])return;const _0x1f0cbf=_0x1c74d1['t'],{data:_0x44c043}=_0x26f918;if(!_0x44c043||'codeBlock'!=_0x44c043['commandName'])return;const _0x1a1863=_0x44c043['commandParams'][0x0]['language'],_0x49f262=_0x1f0cbf(_0x10e298['find'](_0x161738=>_0x161738['language']===_0x1a1863)['label'])['toLowerCase']();return _0x44c043['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1c74d1,'*Set\x20format:*\x20%0',o(_0x1c74d1,'ELEMENT_CODE_BLOCK',0x1)+'\x20('+_0x49f262+')')}:{'type':'format','content':o(_0x1c74d1,'*Remove\x20format:*\x20%0',o(_0x1c74d1,'ELEMENT_CODE_BLOCK',0x1))};}));}}function eo(_0x168aca){return'codeBlock'==_0x168aca['name'];}class H extends _0x26e52a{['afterInit'](){const _0x1eca87=this['editor'];if(!_0x1eca87['plugins']['has']('CommentsEditing'))return;_0x1eca87['plugins']['get']('TrackChangesEditing')['enableCommand']('addCommentThread');}}function io(_0x5ffb5d,_0x26e31a,_0x19804d){const _0x2638d3=[];for(const _0x3b8a0d of _0x26e31a['getItems']())_0x3b8a0d['hasAttribute'](_0x5ffb5d)&&_0x2638d3['push'](_0x19804d['createRangeOn'](_0x3b8a0d));return _0x2638d3;}function _e(_0x3db885,_0x3323b4,{showActiveMarker:_0x1eeecb=!0x0}={}){const _0x983490=_0x3db885['plugins']['get']('TrackChangesEditing');return(_0x28e6c5,_0x55a475,_0x2e6d06)=>{if(!_0x2e6d06['consumable']['test'](_0x55a475['markerRange'],_0x28e6c5['name']))return;const _0x3840c1=_0x55a475['markerRange']['getWalker'](),_0x3ffb25=_0x55a475['markerRange']['start'],_0x525f4e=_0x3db885['model']['schema'];let _0x406fc4=null,_0x22ff00=null,_0x18cead=!0x1,_0x22aa8c=!0x1;for(const _0x3c0420 of _0x3840c1){const _0x1ce413=_0x3c0420['item'];_0x18cead=_0x18cead||_0x525f4e['isContent'](_0x1ce413);const _0x4adee9=_0x2e6d06['mapper']['toViewElement'](_0x1ce413);if(_0x4adee9&&_0x4adee9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c0420['type']&&(_0x525f4e['isBlock'](_0x1ce413)&&!_0x525f4e['isLimit'](_0x1ce413)&&(_0x1ce413['nextSibling']||_0x3ffb25['isAtEnd']?_0x406fc4&&_0x406fc4['parent']==_0x1ce413||(_0x406fc4=_0x1ce413,_0x1b7b9d(_0x3c0420['previousPosition']),_0x22aa8c=!0x0):_0x22ff00=_0x22ff00||_0x3c0420['previousPosition']));}function _0x1b7b9d(_0xec1b61){const _0xda5681=_0x2e6d06['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3323b4}),_0x27c2df=_0x2e6d06['mapper']['toViewPosition'](_0xec1b61);_0x1eeecb&&_0x983490['activeMarkers']['includes'](_0x55a475['markerName'])&&_0x2e6d06['writer']['addClass']('ck-suggestion-marker--active',_0xda5681),_0x2e6d06['writer']['insert'](_0x27c2df,_0xda5681),_0x2e6d06['mapper']['bindElementToMarker'](_0xda5681,_0x55a475['markerName']);}_0x18cead||_0x22aa8c||!_0x22ff00||_0x1b7b9d(_0x22ff00);};}class q extends _0x26e52a{static get['requires'](){return[_0x343642];}['init'](){const _0x1600b7=this['editor'],_0x58fbd3=_0x1600b7['plugins']['get']('TrackChangesEditing');_0x58fbd3['enableCommand']('delete');const _0x305b93=_0x1600b7['commands']['get']('deleteForward');_0x58fbd3['enableCommand']('deleteForward',(_0x5cae97,_0x4ba284={})=>{const _0x4f8c41=_0x1600b7['model']['createSelection'](_0x1600b7['model']['document']['selection']);_0x4f8c41['isCollapsed']&&_0x1600b7['model']['modifySelection'](_0x4f8c41,{'direction':'forward','unit':_0x4ba284['unit']});const _0x15950f=_0x4f8c41['getFirstRange'](),_0x59398b=_0x577a36['fromRange'](_0x15950f);let _0x5083ea;_0x5cae97(_0x4ba284),_0x5083ea='$graveyard'==_0x59398b['root']['rootName']?_0x1600b7['model']['createRange'](_0x15950f['start']):_0x1600b7['model']['createRange'](_0x59398b['start'],_0x59398b['end']),_0x59398b['detach'](),_0x1600b7['model']['enqueueChange'](_0x305b93['buffer']['batch'],_0x204810=>{_0x305b93['buffer']['lock'](),_0x204810['setSelection'](_0x204810['createRange'](_0x5083ea['end'])),_0x305b93['buffer']['unlock']();});}),_0x1600b7['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',_e(_0x1600b7,'merge'),{'priority':'high'}),_0x1600b7['data']['downcastDispatcher']['on']('addMarker:suggestion:deletion',(_0x16de15,_0x289b28,_0x30d78e)=>{_0x30d78e['options']['showSuggestionHighlights']&&_e(_0x1600b7,'merge',{'showActiveMarker':!0x1})['bind'](this)(_0x16de15,_0x289b28,_0x30d78e);},{'priority':'high'}),_0x1600b7['editing']['downcastDispatcher']['on']('removeMarker:suggestion:deletion',(_0x446c04,_0x49112c,_0x44e58f)=>{const _0x45c1bf=_0x44e58f['mapper']['markerNameToElements'](_0x49112c['markerName']);if(_0x45c1bf){for(const _0x40167c of _0x45c1bf)_0x40167c['is']('uiElement')&&(_0x44e58f['mapper']['unbindElementFromMarkerName'](_0x40167c,_0x49112c['markerName']),_0x44e58f['writer']['remove'](_0x40167c));}},{'priority':'high'});}}class z extends _0x26e52a{['afterInit'](){const _0x50e930=this['editor'];if(!_0x50e930['plugins']['has']('ListEditing'))return;const _0x262a30=_0x50e930['locale'],_0x5c6a8a=_0x50e930['plugins']['get']('TrackChangesEditing'),_0xdc4cc7=_0x50e930['plugins']['has']('TodoListEditing'),_0x2ea846=!!_0x50e930['config']['get']('list.multiBlock');function _0x12dfc8(_0x1ab68e){return{'type':'format','content':''+o(_0x262a30,'*Set\x20format:*\x20%0',_0x1ab68e)};}function _0x103b77(_0x38c8d5){return{'type':'format','content':''+o(_0x262a30,'*Remove\x20format:*\x20%0',_0x38c8d5)};}_0x5c6a8a['_enableDefaultAttributesIntegration']('numberedList',[],['listItemId','listType','listIndent']),_0x5c6a8a['_enableDefaultAttributesIntegration']('bulletedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('customNumberedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('customBulletedList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('indentList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('outdentList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('splitListItemAfter'),_0x5c6a8a['_enableDefaultAttributesIntegration']('splitListItemBefore'),_0x2ea846&&(_0x5c6a8a['_enableDefaultAttributesIntegration']('mergeListItemBackward'),_0x5c6a8a['_enableDefaultAttributesIntegration']('mergeListItemForward')),_0xdc4cc7&&(_0x5c6a8a['_enableDefaultAttributesIntegration']('todoList'),_0x5c6a8a['_enableDefaultAttributesIntegration']('checkTodoList',[],['todoListChecked']),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x5bf9e6=>{const {data:_0x2548d2}=_0x5bf9e6;if(_0x2548d2&&'todoListChecked'==_0x2548d2['key'])return{'type':'format','content':_0x2548d2['newValue']?o(_0x262a30,'*Check\x20item*'):o(_0x262a30,'*Uncheck\x20item*')};}),this['editor']['model']['document']['registerPostFixer'](_0x426c21=>{if(_0x426c21['batch']['isUndo'])return!0x1;let _0x7efbb1=!0x1;const _0x29887a=_0x5c6a8a['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5f3a75=>'todoListChecked'===_0x5c6a8a['_getAttributeKey'](_0x5f3a75));for(const _0x28c4a4 of _0x29887a){'todo'!=_0x28c4a4['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')&&(_0x5c6a8a['_findSuggestions'](_0x28c4a4['getFirstRange'](),'attribute')['find'](_0x323128=>'listType'===_0x5c6a8a['_getAttributeKey'](_0x323128['suggestion']))||(_0x426c21['removeMarker'](_0x28c4a4['getFirstMarker']()),_0x7efbb1=!0x0));}return _0x7efbb1;})),_0x5c6a8a['_descriptionFactory']['registerAttributeLabel']('listIndent',o(_0x262a30,'FORMAT_INDENT'));const _0x1658e5={'type':'format','content':''};_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x295f01=>{const {data:_0x331674}=_0x295f01;if(!_0x331674||'listType'!=_0x331674['key'])return;let _0x3e7ce8=_0x295f01['head'];for(;_0x3e7ce8;){if(_0x3e7ce8['data']&&(('listStyle'==_0x3e7ce8['data']['key']||'listMarkerStyle'==_0x3e7ce8['data']['key'])&&(_0x3e7ce8['data']['newValue']&&'default'!=_0x3e7ce8['data']['newValue']||'default'!=_0x3e7ce8['data']['oldValue']&&!_0x331674['newValue'])||!_0x2ea846&&_0x3e7ce8['data']['key']==m))return _0x1658e5;_0x3e7ce8=_0x3e7ce8['next'];}if(null==_0x331674['newValue'])switch(_0x331674['oldValue']){case'bulleted':return _0x103b77(o(_0x262a30,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x103b77(o(_0x262a30,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x103b77(o(_0x262a30,'ELEMENT_TODO_LIST'));}switch(_0x331674['newValue']){case'bulleted':return _0x12dfc8(o(_0x262a30,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x12dfc8(o(_0x262a30,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x12dfc8(o(_0x262a30,'ELEMENT_TODO_LIST'));}}),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x271be5=>{const {data:_0x1dd7ee}=_0x271be5;if(_0x1dd7ee&&'listIndent'==_0x1dd7ee['key'])return null==_0x1dd7ee['newValue']||null==_0x1dd7ee['oldValue']&&0x0==_0x1dd7ee['newValue']?_0x1658e5:void 0x0;}),_0x5c6a8a['_descriptionFactory']['registerDescriptionCallback'](_0x3bbab5=>{if('attribute'!=_0x3bbab5['type'])return;const {data:_0x23c60a}=_0x3bbab5;if(!_0x23c60a||'listItemId'!=_0x23c60a['key'])return;const _0x57204a=le(_0x3bbab5);return _0x57204a?'newValue'==_0x57204a?{'type':'format','content':o(_0x262a30,'*Merge:*\x20list\x20item')}:'oldValue'==_0x57204a?{'type':'format','content':o(_0x262a30,'*Split:*\x20list\x20item')}:_0x1658e5:_0x1658e5;}),_0x50e930['model']['document']['registerPostFixer'](_0x5e1405=>this['listItemIdFixer'](_0x5e1405)),_0x50e930['model']['document']['registerPostFixer'](_0x1bc2cc=>this['noTrackChangesFixer'](_0x1bc2cc)),_0x50e930['model']['document']['registerPostFixer'](_0x3813b7=>this['assureChains'](_0x3813b7)),this['_supportLegacySuggestions']();}['listItemIdFixer'](_0x15fcbf){if(_0x15fcbf['batch']['isUndo']||!_0x15fcbf['batch']['isLocal'])return!0x1;let _0x3b637e=!0x1;const _0x523b91=this['editor']['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x1053aa=>_0x1053aa['data']&&'listItemId'==_0x1053aa['data']['key'])['filter'](_0x55b0a2=>_0x55b0a2['data']['newValue']&&_0x55b0a2['data']['oldValue']);for(const _0x4171db of _0x523b91)le(_0x4171db)||(_0x15fcbf['removeMarker'](_0x4171db['getFirstMarker']()),_0x3b637e=!0x0);return _0x3b637e;}['noTrackChangesFixer'](_0x804a15){if(_0x804a15['batch']['isUndo']||!_0x804a15['batch']['isLocal'])return!0x1;const _0x5a8a56=this['editor']['plugins']['get']('TrackChangesEditing');if(_0x5a8a56['trackChangesCommand']['value'])return!0x1;let _0x5cf765=!0x1;const _0x270edd=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'],_0x113adf=this['editor']['model']['document']['differ']['getChanges']()['filter'](_0x85132f=>'attribute'==_0x85132f['type'])['filter'](_0x46a987=>_0x270edd['includes'](_0x46a987['attributeKey']));if(0x0==_0x113adf['length'])return _0x5cf765;for(const _0xc5f021 of _0x113adf){const _0x5e1bf9=_0x5a8a56['_findSuggestions'](_0xc5f021['range'],'attribute')['filter'](_0x11ffa0=>!_0x11ffa0['meta']['isNextTo'])['map'](_0x2d879e=>_0x2d879e['suggestion'])['filter'](_0x3c1542=>{const _0x1255ad=_0x5a8a56['_getAttributeKey'](_0x3c1542);return _0x270edd['includes'](_0x1255ad);});if(_0x5e1bf9['length']){for(const _0x135b8e of _0x5e1bf9)_0x804a15['removeMarker'](_0x135b8e['getFirstMarker']());_0x5cf765=!0x0;}}return _0x5cf765;}['assureChains'](_0x5abd76){if(_0x5abd76['batch']['isUndo']||!_0x5abd76['batch']['isLocal'])return!0x1;const _0x139526=this['editor']['plugins']['get']('TrackChangesEditing');let _0x305b52=!0x1;const _0x2f7f0d=['listType','listItemId','listIndent','listStyle','listStart','listReversed','todoListCheck','listMarker','listMarkerStyle'];for(const _0x369d92 of _0x139526['getSuggestions']({'skipNotAttached':!0x0})){const _0x41e9b1=_0x139526['_findSuggestions'](_0x369d92['getFirstRange'](),'attribute')['map'](_0xa79b04=>_0xa79b04['suggestion'])['filter'](_0xa760ec=>_0xa760ec['data']&&_0x2f7f0d['includes'](_0xa760ec['data']['key']));if(!_0x41e9b1['length'])continue;const _0x22488f=_0x41e9b1[0x0]['head']['attributes']['groupId'];if(!_0x41e9b1['every'](_0x98f360=>_0x98f360['attributes']['groupId']===_0x22488f)){for(const _0x364a7f of _0x41e9b1)_0x49f857(_0x364a7f,_0x22488f)&&(_0x305b52=!0x0);}}return _0x305b52;function _0x5bd17f(_0x2921ee,_0x15255e){for(const _0x506a23 of _0x139526['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x3ff732=>'attribute'==_0x3ff732['type']&&_0x3ff732['attributes']['groupId']==_0x2921ee))_0x506a23['setAttribute']('groupId',_0x15255e);}function _0x49f857(_0x521c87,_0x47c9c1){let _0x472f30=_0x521c87['head'],_0x5b699b=!0x1;for(;_0x472f30;)_0x472f30['attributes']['groupId']!=_0x47c9c1&&(_0x5bd17f(_0x472f30['attributes']['groupId'],_0x47c9c1),_0x472f30['setAttribute']('groupId',_0x47c9c1),_0x5b699b=!0x0),_0x472f30=_0x472f30['next'];return _0x5b699b;}}['_supportLegacySuggestions'](){const _0x1f314f=this['editor'],_0x228616=_0x1f314f['locale'],_0x3e250b=_0x1f314f['plugins']['get']('TrackChangesEditing');this['_registerLegacyDescription'](),_0x3e250b['_suggestionFactory']['registerCustomCallback']('formatBlock','documentList','accept',function(_0x13a18d,_0x58a4d2){const _0x1ce19e=[];for(let _0xb00131 of _0x13a18d)_0xb00131['start']['nodeAfter']===_0xb00131['end']['parent']&&(_0xb00131=_0x1f314f['model']['createRange'](_0x1f314f['model']['createPositionAt'](_0xb00131['start']['nodeAfter'],0x0))),_0x1ce19e['push'](_0xb00131);_0x1f314f['model']['change'](_0x3098c7=>{const _0x3d75fe=_0x1f314f['model']['document']['selection'],_0x54f8a6=Array['from'](_0x3d75fe['getRanges']())['map'](_0x1f0a6=>_0x577a36['fromRange'](_0x1f0a6));_0x3098c7['setSelection'](_0x1ce19e),_0x1f314f['commands']['get'](_0x58a4d2['commandName'])['refresh'](),_0x58a4d2['commandParams']['push']({'forceDefaultExecution':!0x0}),_0x1f314f['execute'](_0x58a4d2['commandName'],..._0x58a4d2['commandParams']),_0x3098c7['setSelection'](_0x54f8a6);for(const _0x9f9c59 of _0x54f8a6)_0x9f9c59['detach']();});}),_0x3e250b['_descriptionFactory']['registerElementLabel'](function(_0x55add1){const _0x3a1339=!_0x1f314f['model']['schema']['isObject'](_0x55add1),_0xed7d4e=_0x55add1['previousSibling'],_0x2c278f=_0x55add1['nextSibling'],_0x3e7ed0=_0x55add1['getAttribute']('listItemId'),_0x464756=!_0xed7d4e||_0xed7d4e['getAttribute']('listItemId')!==_0x3e7ed0,_0x3e1091=!_0x2c278f||_0x2c278f['getAttribute']('listItemId')!==_0x3e7ed0;return _0x3a1339&&Boolean(_0x3e7ed0)&&_0x464756&&_0x3e1091;},_0xd36a54=>o(_0x228616,'ELEMENT_LIST_ITEM',_0xd36a54));}['_registerLegacyDescription'](){const _0x3621b8=this['editor'],_0xcd68af=_0x3621b8['locale'];function _0x274845(_0x45d6b1){const _0x34cde2=_0x3621b8['commands']['get']('bulletedList')['value'],_0x31ec25=_0x3621b8['commands']['get']('numberedList')['value'];return'numberedList'===_0x45d6b1?_0x34cde2:_0x31ec25;}_0x3621b8['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](function(_0x4c246d){if('formatBlock'!=_0x4c246d['type'])return;const {data:_0x17b568}=_0x4c246d;if(!_0x17b568)return;let _0x213fd7,_0x4c586b,_0xcfa5f5,_0x11cd3b;switch(_0x17b568['commandName']){case'bulletedList':_0xcfa5f5=_0x17b568['commandParams'][0x0]['forceValue'],_0x11cd3b=_0x274845(_0x17b568['commandName']),_0x213fd7=_0xcfa5f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11cd3b&&_0x3621b8['config']['get']('list.multiBlock')||(_0x213fd7='*Change\x20to:*\x20%0'),_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_BULLETED_LIST'))};break;case'numberedList':_0xcfa5f5=_0x17b568['commandParams'][0x0]['forceValue'],_0x11cd3b=_0x274845(_0x17b568['commandName']),_0x213fd7=_0xcfa5f5?'*Format:*\x20insert\x20into\x20%0':'*Format:*\x20remove\x20from\x20%0',!_0x11cd3b&&_0x3621b8['config']['get']('list.multiBlock')||(_0x213fd7='*Change\x20to:*\x20%0'),_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_NUMBERED_LIST'))};break;case'indentList':_0x213fd7='*Indent:*\x20%0',_0x4c586b={'type':'format','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_LIST_ITEM'))};break;case'outdentList':_0x213fd7=function(_0x5d19cb){const _0x351abb=_0x5d19cb['getFirstRange']();let _0x2ee2d1=_0x351abb['start']['nodeAfter'];for(;_0x2ee2d1&&_0x351abb['containsItem'](_0x2ee2d1);){if(_0x2ee2d1['getAttribute']('listIndent')>0x0)return!0x1;_0x2ee2d1=_0x2ee2d1['nextSibling'];}return!0x0;}(_0x4c246d)?o(_0xcd68af,'*Format:*\x20remove\x20from\x20%0',o(_0xcd68af,function(_0x52b198){return'ELEMENT_'+_0x52b198['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST';}(_0x4c246d))):o(_0xcd68af,'*Outdent:*\x20%0',o(_0xcd68af,'ELEMENT_LIST_ITEM')),_0x4c586b={'type':'format','content':_0x213fd7};break;case'mergeListItemBackward':case'mergeListItemForward':!0x1===_0x17b568['multipleBlocks']&&(_0x213fd7='*Merge:*\x20%0',_0x4c586b={'type':'deletion','content':o(_0xcd68af,_0x213fd7,o(_0xcd68af,'ELEMENT_LIST_ITEM'))});}return _0x4c586b;});}}function le(_0x1017fc){let _0x33cd44=_0x1017fc['getFirstRange']()['start']['nodeAfter']['previousSibling'];for(;_0x33cd44;){const _0x3698f8=_0x33cd44['getAttribute']('listItemId');if(!_0x3698f8)return!0x1;if(_0x3698f8==_0x1017fc['data']['newValue'])return'newValue';if(_0x3698f8==_0x1017fc['data']['oldValue'])return'oldValue';_0x33cd44=_0x33cd44['previousSibling'];}return!0x1;}class ue extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('ListPropertiesEditing'))return;const _0x6b0dd3=this['editor']['config']['get']('list.properties'),_0x40e9cc=this['editor']['plugins']['get']('TrackChangesEditing');_0x6b0dd3['styles']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listStyle',[],['listStyle']),_0x6b0dd3['reversed']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listReversed',[],['listReversed']),_0x6b0dd3['startIndex']&&_0x40e9cc['_enableDefaultAttributesIntegration']('listStart',[],['listStart']);const _0x12d13e={'type':'format','content':''};_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));const _0x10a766=this['editor']['locale'];_0x40e9cc['_descriptionFactory']['registerAttributeLabel']('listReversed',o(_0x10a766,'FORMAT_LIST_REVERSED')),_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](_0x3d15b4=>{const {data:_0x4b7b0f}=_0x3d15b4;if(_0x4b7b0f&&'listReversed'==_0x4b7b0f['key'])return null==_0x4b7b0f['newValue']||0x0==_0x4b7b0f['newValue']&&null==_0x4b7b0f['oldValue']?_0x12d13e:void 0x0;}),_0x40e9cc['_descriptionFactory']['registerAttributeLabel']('listStart',o(_0x10a766,'FORMAT_LIST_START')),_0x40e9cc['_descriptionFactory']['registerDescriptionCallback'](_0x1babce=>{const {data:_0x53db86}=_0x1babce;if(_0x53db86&&'listStart'==_0x53db86['key'])return null==_0x53db86['newValue']||0x1==_0x53db86['newValue']&&null==_0x53db86['oldValue']?_0x12d13e:void 0x0;}),this['editor']['model']['document']['registerPostFixer'](_0x401dce=>{if(_0x401dce['batch']['isUndo'])return!0x1;let _0x20093f=!0x1;const _0x30a4dc=_0x40e9cc['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x13768d=>{const _0x34a156=_0x40e9cc['_getAttributeKey'](_0x13768d);return'listStart'==_0x34a156||'listReversed'==_0x34a156;});for(const _0x496863 of _0x30a4dc){const _0x5183f5=_0x496863['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType');if('numbered'==_0x5183f5||'customNumbered'==_0x5183f5)continue;_0x40e9cc['_findSuggestions'](_0x496863['getFirstRange'](),'attribute')['find'](_0x16bebb=>'listType'==_0x40e9cc['_getAttributeKey'](_0x16bebb['suggestion']))||(_0x401dce['removeMarker'](_0x496863['getFirstMarker']()),_0x20093f=!0x0);}return _0x20093f;}),this['_registerLegacyDescription']();}['handleDescriptions'](_0x1d0673){const _0x4395d6=this['editor']['locale'],{data:_0x3e874a}=_0x1d0673,_0x19fccc={'type':'format','content':''};if(!_0x3e874a||'listStyle'!=_0x3e874a['key'])return;if(!_0x3e874a['oldValue'])return'default'==_0x3e874a['newValue']?_0x19fccc:{'type':'format','content':''+o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['newValue'])))};if(!_0x3e874a['newValue']){if('default'==_0x3e874a['oldValue'])return _0x19fccc;let _0x30b533=_0x1d0673['head'];for(;_0x30b533;){if(_0x30b533['data']&&'listType'==_0x30b533['data']['key']&&_0x30b533['data']['newValue'])return _0x19fccc;_0x30b533=_0x30b533['next'];}return{'type':'format','content':''+o(_0x4395d6,'*Remove\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['oldValue'])))};}if('default'!=_0x3e874a['newValue'])return{'type':'format','content':''+o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,this['_getTranslationKeyForListStyle'](_0x3e874a['newValue'])))};let _0x2516cf=_0x1d0673['head'];for(;_0x2516cf;){if(_0x2516cf['data']&&'listType'==_0x2516cf['data']['key']&&_0x2516cf['data']['newValue']&&_0x2516cf['data']['oldValue'])return _0x19fccc;_0x2516cf=_0x2516cf['next'];}return{'type':'format','content':o(_0x4395d6,'*Set\x20format:*\x20%0',o(_0x4395d6,'ELEMENT_'+_0x1d0673['getFirstRange']()['start']['nodeAfter']['getAttribute']('listType')['toUpperCase']()+'_LIST_DEFAULT'))};}['_registerLegacyDescription'](){const _0x284893=this['editor'],_0x3a9288=_0x284893['locale'];_0x284893['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x37da2f=>{if('formatBlock'!=_0x37da2f['type'])return;const {data:_0x1bf25a}=_0x37da2f;if(!_0x1bf25a)return;let _0x2705c8,_0x39a0f5;switch(_0x1bf25a['commandName']){case'listStyle':_0x2705c8='*Change\x20to:*\x20%0',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8,o(_0x3a9288,this['_getTranslationKeyForListStyle'](_0x1bf25a['commandParams'][0x0]['type'])))};break;case'listReversed':_0x2705c8=_0x1bf25a['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8)};break;case'listStart':_0x2705c8='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x39a0f5={'type':'format','content':o(_0x3a9288,_0x2705c8,_0x1bf25a['commandParams'][0x0]['startIndex'])};}return _0x39a0f5;});}['_getTranslationKeyForListStyle'](_0x15f395){return'ELEMENT_'+function(_0x3132ab){if(pe['includes'](_0x3132ab))return'bulleted';if(ye['includes'](_0x3132ab))return'numbered';return null;}(_0x15f395)['toUpperCase']()+'_LIST_'+_0x15f395['toUpperCase']()['replace'](/-/g,'_');}}const pe=['disc','circle','square'],ye=['decimal','decimal-leading-zero','lower-roman','upper-roman','lower-latin','upper-latin'];class W extends _0x26e52a{static get['requires'](){return[_0x5df135];}['init'](){const _0x572465=this['editor'],_0x5059a1=_0x572465['plugins']['get']('TrackChangesEditing'),_0x26d6d4=_0x572465['commands']['get']('enter');_0x5059a1['enableCommand']('enter',()=>{_0x572465['model']['change'](_0xe6176b=>{const _0x3ee379=_0x572465['model']['document']['selection'],_0x1d2050=_0x3ee379['getFirstPosition'](),_0x37fa95=_0x577a36['fromRange'](_0x3ee379['getFirstRange']());if(_0x26d6d4['enterBlock'](_0xe6176b)){const _0x3a6ae7=_0x572465['model']['createPositionAt'](_0x1d2050['parent']['nextSibling'],0x0),_0x46fee5=_0xe6176b['createRange'](_0x1d2050,_0x3a6ae7);_0x5059a1['markInsertion'](_0x46fee5);}else _0xe6176b['setSelection'](_0xe6176b['createRange'](_0x37fa95['end']));_0x37fa95['detach'](),_0x26d6d4['fire']('afterExecute',{'writer':_0xe6176b});});}),_0x572465['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',_e(_0x572465,'split'),{'priority':'high'}),_0x572465['editing']['downcastDispatcher']['on']('removeMarker:suggestion:insertion',(_0x54bd9,_0x52b857,_0x385cc2)=>{const _0x484454=_0x385cc2['mapper']['markerNameToElements'](_0x52b857['markerName']);if(_0x484454){for(const _0xbf313c of _0x484454)_0xbf313c['hasClass']('ck-suggestion-marker-split')&&(_0x385cc2['mapper']['unbindElementFromMarkerName'](_0xbf313c,_0x52b857['markerName']),_0x385cc2['writer']['remove'](_0xbf313c));}},{'priority':'high'}),_0x572465['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x1e4ae6,_0x44fbc9,_0x7c9788)=>{_0x7c9788['options']['showSuggestionHighlights']&&_e(_0x572465,'split',{'showActiveMarker':!0x1})['bind'](this)(_0x1e4ae6,_0x44fbc9,_0x7c9788);},{'priority':'high'});}}class J extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('FindAndReplaceEditing'))return;const _0x18dd15=this['editor']['plugins']['get']('TrackChangesEditing');_0x18dd15['enableCommand']('find',this['handleFindCommand']['bind'](this)),_0x18dd15['enableCommand']('findNext'),_0x18dd15['enableCommand']('findPrevious'),_0x18dd15['enableCommand']('replace'),_0x18dd15['enableCommand']('replaceAll');}['handleFindCommand'](_0x53043b,_0xfc8026,_0x411214={}){const _0x406798=this['editor']['plugins']['get']('FindAndReplaceUtils');return _0x53043b(_0x5e6c3e=>('string'==typeof _0xfc8026?_0x406798['findByTextCallback'](_0xfc8026,_0x411214):_0xfc8026)(_0x5e6c3e)['filter'](_0x900393=>!0x1===this['_isInDeletionRange'](_0x900393,_0x5e6c3e['item'])),_0x411214);}['_isInDeletionRange'](_0x1c7d27,_0x45a56c){const _0x424712=this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x45a56c,_0x1c7d27['start']),this['editor']['model']['createPositionAt'](_0x45a56c,_0x1c7d27['end']));for(const _0x3d5f58 of this['editor']['model']['markers']['getMarkersGroup']('suggestion:deletion'))if(null!==_0x424712['getIntersection'](_0x3d5f58['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 _0x26e52a{['afterInit'](){const _0x3728fd=this['editor']['locale'],_0x479aa5=this['editor']['plugins']['get']('TrackChangesEditing');for(const {pluginName:_0x46d25f,commandName:_0x4bb881}of ro)this['editor']['plugins']['has'](_0x46d25f)&&_0x479aa5['_enableDefaultAttributesIntegration'](_0x4bb881,[_0x4bb881]);_0x3728fd['t'],_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontSize',o(_0x3728fd,'FORMAT_FONT_SIZE')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontFamily',o(_0x3728fd,'FORMAT_FONT_FAMILY')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontColor',o(_0x3728fd,'FORMAT_FONT_COLOR')),_0x479aa5['_descriptionFactory']['registerAttributeLabel']('fontBackgroundColor',o(_0x3728fd,'FORMAT_FONT_BACKGROUND')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x41f07b=this['editor'],_0x59b116=_0x41f07b['locale'];_0x41f07b['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x35b644=>{const _0x48b0c7=_0x59b116['t'];if('formatInline'!=_0x35b644['type'])return;const {data:_0x1b4826}=_0x35b644;if(null!=_0x1b4826){if('fontSize'==_0x1b4826['commandName']){const _0x39a593=_0x1b4826['commandParams'][0x0]['value'];if(_0x39a593){const _0x1a721b=_0x48b0c7(this['editor']['plugins']['get']('FontSize')['normalizeSizeOptions'](this['editor']['config']['get']('fontSize.options'))['find'](_0x518605=>_0x518605['model']==_0x39a593)['title'])['toLowerCase']();return{'type':'format','content':o(_0x59b116,'*Set\x20font\x20size:*\x20%0',_0x1a721b)};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20size*')};}if('fontFamily'==_0x1b4826['commandName']){const _0x23a7c3=_0x1b4826['commandParams'][0x0]['value'];return _0x23a7c3?{'type':'format','content':o(_0x59b116,'*Set\x20font\x20family:*\x20%0',_0x23a7c3)}:{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20family*')};}if('fontColor'==_0x1b4826['commandName']){const _0x2a1e72=_0x1b4826['commandParams'][0x0]['value'];if(_0x2a1e72){const _0x2199ec=_0x9dfa68(this['editor']['config']['get']('fontColor.colors'))['find'](_0x377166=>_0x377166['model']==_0x2a1e72);let _0x32c6ca=_0x2a1e72,_0x33420d='';return _0x2199ec&&(_0x32c6ca=_0x2199ec['label'],_0x33420d=_0x48b0c7(_0x32c6ca)['toLowerCase']()),{'type':'format','content':o(_0x59b116,'*Set\x20font\x20color:*\x20%0',_0x33420d)['trim'](),'color':{'value':_0x2a1e72,'title':_0x33420d||_0x32c6ca}};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20color*')};}if('fontBackgroundColor'==_0x1b4826['commandName']){const _0x5334e6=_0x1b4826['commandParams'][0x0]['value'];if(_0x5334e6){const _0x1d3e44=_0x9dfa68(this['editor']['config']['get']('fontBackgroundColor.colors'))['find'](_0x219817=>_0x219817['model']==_0x5334e6);let _0xeac0c6=_0x5334e6,_0x511704='';return _0x1d3e44&&(_0xeac0c6=_0x1d3e44['label'],_0x511704=_0x48b0c7(_0xeac0c6)['toLowerCase']()),{'type':'format','content':o(_0x59b116,'*Set\x20font\x20background\x20color:*\x20%0',_0x511704)['trim'](),'color':{'value':_0x5334e6,'title':_0x511704||_0xeac0c6}};}return{'type':'format','content':o(_0x59b116,'*Reset\x20font\x20background\x20color*')};}}});}}class X extends _0x26e52a{['afterInit'](){const _0x14f485=this['editor'],_0x41923d=_0x14f485['plugins']['get']('TrackChangesEditing'),_0x188c0f=_0x14f485['commands']['get']('copyFormat'),_0x19e3c8=_0x14f485['commands']['get']('pasteFormat');_0x188c0f&&_0x19e3c8&&(_0x41923d['_enableDefaultAttributesIntegration']('pasteFormat'),_0x41923d['enableCommand']('copyFormat'),this['_registerLegacyDescription']());}['_registerLegacyDescription'](){const _0x25287c=this['editor'],_0x22310a=_0x25287c['locale'];_0x25287c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x4d6cca=>{if('formatBlock'!=_0x4d6cca['type']&&'formatInline'!=_0x4d6cca['type'])return;const {data:_0x52582c}=_0x4d6cca;if(_0x52582c&&'pasteFormat'===_0x52582c['commandName']){const _0x3f5f99=[],_0x5792c3=_0x52582c['commandParams'][0x0];for(const [_0x59e7a6,_0x29d026]of Object['entries'](_0x5792c3))_0x3f5f99['push'](so(_0x25287c,_0x59e7a6,_0x29d026));return _0x3f5f99['length']?{'type':'format','content':o(_0x22310a,'*Set\x20format\x20to:*\x20%0',_0x3f5f99['join'](',\x20'))}:{'type':'format','content':o(_0x22310a,'*Remove\x20all\x20formatting*')};}});}}function so(_0x20654a,_0x108689,_0xbca692){const _0x16437e=_0x20654a['locale']['t'],_0x2016a1=_0x108689['split'](/(?=[A-Z])/)['join']('\x20'),_0x23cb35=_0x16437e(_0x2016a1['charAt'](0x0)['toUpperCase']()+_0x2016a1['slice'](0x1))['toLowerCase']();if('boolean'==typeof _0xbca692)return _0x23cb35;if('fontColor'===_0x108689||'fontBackgroundColor'===_0x108689){const _0x483792=_0x9dfa68(_0x20654a['config']['get']('fontColor.colors'))['find'](_0x3503af=>_0x3503af['model']==_0xbca692);return _0x23cb35+'\x20('+(_0x483792?_0x16437e(_0x483792['label'])['toLowerCase']():_0xbca692)+')';}if('fontSize'===_0x108689&&isNaN(parseFloat(_0xbca692))){const _0x1c95d0=_0x20654a['plugins']['get']('FontSize')['normalizeSizeOptions'](_0x20654a['config']['get']('fontSize.options'))['find'](_0x6884fa=>_0x6884fa['model']==_0xbca692);return _0x23cb35+'\x20('+(_0x1c95d0?_0x16437e(_0x1c95d0['title'])['toLowerCase']():_0xbca692)+')';}return _0x23cb35+'\x20('+_0xbca692+')';}class Y extends _0x26e52a{['afterInit'](){const _0x7ceabc=this['editor'];if(!_0x7ceabc['plugins']['has']('HeadingEditing'))return;this['_headingOptions']=_0x7ceabc['config']['get']('heading.options');const _0x16e680=_0x7ceabc['locale'],_0x12b503=_0x7ceabc['plugins']['get']('TrackChangesEditing');_0x12b503['_enableDefaultAttributesIntegration']('heading');for(const _0x278494 of this['_headingOptions'])'paragraph'!=_0x278494['model']&&_0x12b503['_descriptionFactory']['registerElementLabel'](_0x278494['model'],_0x4ea6ca=>{const _0xf06bb2=this['_getHeadingLevel'](_0x278494['model']);return null!==_0xf06bb2?_0x5a5842(_0x4ea6ca,_0xf06bb2):_0x3aafab(_0x4ea6ca,_0x278494['title']);});function _0x5a5842(_0x15352c,_0x161ffe){return o(_0x16e680,'ELEMENT_HEADING',[_0x15352c,_0x161ffe]);}function _0x3aafab(_0x5a9c8e,_0x2cc19f){return o(_0x16e680,'ELEMENT_HEADING_CUSTOM',[_0x5a9c8e,_0x2cc19f]);}this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x1d311f=this['editor'],_0x4ced3c=_0x1d311f['locale'];function _0x371a71(_0x55c5d8,_0x268784){return o(_0x4ced3c,'ELEMENT_HEADING_CUSTOM',[_0x55c5d8,_0x268784]);}_0x1d311f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x293779=>{if('formatBlock'!=_0x293779['type'])return;const {data:_0x313439}=_0x293779;if(_0x313439&&'heading'==_0x313439['commandName']){const _0x4c58c3=_0x313439['commandParams'][0x0]['value'],_0x5d397a=this['_getHeadingLevel'](_0x4c58c3);if(null!==_0x5d397a)return{'type':'format','content':o(_0x4ced3c,'*Change\x20to:*\x20%0',(_0x210318=0x1,_0x5aab03=_0x5d397a,o(_0x4ced3c,'ELEMENT_HEADING',[_0x210318,_0x5aab03])))};const _0x5d4b11=this['_headingOptions']['find'](_0xb1cab=>_0xb1cab['model']===_0x4c58c3)['title'];return{'type':'format','content':o(_0x4ced3c,'*Change\x20to:*\x20%0',_0x371a71(0x1,_0x5d4b11))};}var _0x210318,_0x5aab03;});}['_getHeadingLevel'](_0x4fb78f){var _0x171330,_0x63cf82;const _0x59d7b2=_0x4fb78f['match'](/^heading(\d+)/);if(_0x59d7b2)return _0x59d7b2[0x1];const _0x51a90a=null===(_0x171330=this['_headingOptions'])||void 0x0===_0x171330?void 0x0:_0x171330['find'](_0x516cf8=>_0x516cf8['model']==_0x4fb78f);if(_0x51a90a&&_0x51a90a['view']){const _0x546e5c=_0x51a90a['view'],_0x1ada5d=(null!==(_0x63cf82=_0x546e5c['name'])&&void 0x0!==_0x63cf82?_0x63cf82:_0x546e5c)['match'](/^h(\d+)/);if(_0x1ada5d)return _0x1ada5d[0x1];}return null;}}class Z extends _0x26e52a{['afterInit'](){const _0xf8ebc=this['editor'];if(!_0xf8ebc['plugins']['has']('HighlightEditing'))return;const _0x458963=_0xf8ebc['plugins']['get']('TrackChangesEditing'),_0x4eedc4=_0xf8ebc['locale'];_0x458963['_enableDefaultAttributesIntegration']('highlight',['highlight']),_0x458963['_descriptionFactory']['registerAttributeLabel']('highlight',o(_0x4eedc4,'FORMAT_HIGHLIGHT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3b9382=this['editor'],_0x3ff75e=_0x3b9382['locale'];_0x3b9382['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x29c52d=>{if('formatInline'!=_0x29c52d['type'])return;const {data:_0xd6792b}=_0x29c52d;if(_0xd6792b&&'highlight'==_0xd6792b['commandName']){const _0xd42460=_0x3ff75e['t'],_0x16c3a5=_0xd6792b['commandParams'][0x0]['value'];if(_0x16c3a5){const _0x7f50f3=_0x3b9382['config']['get']('highlight.options')['find'](_0x586a1d=>_0x586a1d['model']==_0x16c3a5),_0x356c0b=_0xd42460(_0x7f50f3['title'])['toLowerCase']();return{'type':'format','content':o(_0x3ff75e,'*Set\x20highlight:*\x20%0',_0x356c0b),'color':{'value':_0x7f50f3['color'],'title':_0x7f50f3['title']}};}return{'type':'format','content':o(_0x3ff75e,'*Remove\x20highlight*',o(_0x3ff75e,'FORMAT_HIGHLIGHT'))};}});}}class tt extends _0x26e52a{['afterInit'](){const _0x89906=this['editor'];if(!_0x89906['plugins']['has']('HorizontalLineEditing'))return;_0x89906['plugins']['get']('TrackChangesEditing')['enableCommand']('horizontalLine');const _0x8c9205=_0x89906['plugins']['get']('TrackChangesEditing'),_0x32e2fd=_0x89906['locale'];_0x8c9205['_descriptionFactory']['registerElementLabel']('horizontalLine',_0x472603=>o(_0x32e2fd,'ELEMENT_HORIZONTAL_LINE',_0x472603)),_0x89906['conversion']['for']('dataDowncast')['elementToStructure']({'model':'horizontalLine','view':(_0x50c9da,{writer:_0x13482f,options:_0x147bff})=>{if(!_0x147bff['showSuggestionHighlights'])return null;const _0x47322f=_0x13482f['createContainerElement']('div'),_0x37bd2c=_0x13482f['createEmptyElement']('hr');return _0x13482f['addClass']('ck-horizontal-line',_0x47322f),_0x13482f['insert'](_0x13482f['createPositionAt'](_0x47322f,0x0),_0x37bd2c),_0x47322f;},'converterPriority':'high'});}}class et extends _0x26e52a{['afterInit'](){const _0x3d862b=this['editor'];if(!_0x3d862b['plugins']['has']('HtmlEmbed'))return;const _0x42012f=_0x3d862b['plugins']['get']('TrackChangesEditing'),_0x25ed7d=_0x3d862b['locale'];_0x42012f['_descriptionFactory']['registerElementLabel']('rawHtml',_0x1f6707=>o(_0x25ed7d,'ELEMENT_HTML_EMBED',_0x1f6707)),_0x42012f['_enableDefaultAttributesIntegration']('htmlEmbed',[],['value']),_0x42012f['_descriptionFactory']['registerDescriptionCallback'](_0x36cd2d=>{if('attribute'!=_0x36cd2d['type'])return;const {data:_0x163944}=_0x36cd2d;if(_0x163944&&'value'==_0x163944['key']&&_0x36cd2d['getFirstRange']()['start']['nodeAfter']['is']('element','rawHtml')){const _0x114282=o(_0x25ed7d,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x25ed7d,'*Change\x20%0\x20content*',_0x114282)};}}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x3c0ef0=this['editor'],_0x3e0706=_0x3c0ef0['locale'];_0x3c0ef0['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x1fc8eb=>{if('formatBlock'!=_0x1fc8eb['type'])return;const {data:_0x4c3afa}=_0x1fc8eb;if(_0x4c3afa&&'htmlEmbed'==_0x4c3afa['commandName']){const _0x57f2a6=o(_0x3e0706,'ELEMENT_HTML_EMBED');return{'type':'format','content':o(_0x3e0706,'*Change\x20%0\x20content*',_0x57f2a6)};}});}}class it extends _0x26e52a{['afterInit'](){const _0x50dc8f=this['editor'];if(!_0x50dc8f['plugins']['has']('ImageEditing'))return;const _0x3ee3ce=_0x50dc8f['plugins']['get']('TrackChangesEditing'),_0x26ba3a=_0x50dc8f['plugins']['get']('ImageUtils'),_0x38f174=_0x50dc8f['locale'];_0x3ee3ce['enableCommand']('insertImage'),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('imageBlock',_0x36c886=>o(_0x38f174,'ELEMENT_IMAGE',_0x36c886)),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('imageInline',_0x12c4a4=>o(_0x38f174,'ELEMENT_INLINE_IMAGE',_0x12c4a4)),_0x3ee3ce['_descriptionFactory']['registerElementLabel']('caption',()=>o(_0x38f174,'ELEMENT_CAPTION')),_0x50dc8f['plugins']['has']('ImageUploadEditing')&&_0x3ee3ce['enableCommand']('uploadImage'),_0x50dc8f['plugins']['has']('ImageBlockEditing')&&_0x50dc8f['plugins']['has']('ImageInlineEditing')&&(_0x3ee3ce['enableCommand']('imageTypeInline',(_0x3614a7,_0x46c6c1)=>{const _0x2556b3=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']);_0x50dc8f['model']['change'](()=>{_0x3ee3ce['markBlockFormat'](_0x2556b3,{'commandName':'imageTypeInline','commandParams':[_0x46c6c1]},[],'convertBlockImageToInline');});}),_0x3ee3ce['enableCommand']('imageTypeBlock',(_0xe13438,_0x1b6bea)=>{_0x50dc8f['model']['change'](_0x4ddd43=>{let _0x489dc7=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x172537=_0x4ddd43['createRangeOn'](_0x489dc7);const _0x59c2a1=_0x2146ab['fromPosition'](_0x172537['start'],'toPrevious'),_0x27ba06=_0x2146ab['fromPosition'](_0x172537['end'],'toNext');_0x3ee3ce['forceDefaultExecution'](()=>_0xe13438(_0x1b6bea)),_0x489dc7=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x172537=_0x4ddd43['createRangeOn'](_0x489dc7);const _0x404593=_0x4ddd43['createRange'](_0x59c2a1,_0x27ba06);_0x59c2a1['detach'](),_0x27ba06['detach'](),_0x3ee3ce['markBlockFormat'](_0x489dc7,{'commandName':'imageTypeInline','commandParams':[_0x1b6bea]},[],'convertInlineImageToBlock'),_0x404593['start']['isBefore'](_0x172537['start'])&&_0x3ee3ce['markInsertion'](_0x4ddd43['createRange'](_0x404593['start'],_0x172537['start']),'convertInlineImageToBlock'),_0x172537['end']['isBefore'](_0x404593['end'])&&_0x3ee3ce['markInsertion'](_0x4ddd43['createRange'](_0x172537['end'],_0x404593['end']),'convertInlineImageToBlock');});}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','join',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','accept',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','discard',_0x3ee3ce['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','join',()=>!0x1),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','discard',([_0x28fe62])=>{const _0x1ffdae=_0x3ee3ce['_suggestionFactory']['getSuggestionCallback']('insertion','','discard');let _0x58ed2e=_0x28fe62['start'],_0x194d28=_0x28fe62['end'];const _0x13650b=_0x50dc8f['model']['schema']['getNearestSelectionRange'](_0x58ed2e,'backward'),_0x3d1bac=_0x50dc8f['model']['schema']['getNearestSelectionRange'](_0x194d28,'forward');_0x13650b['isCollapsed']&&(_0x58ed2e=_0x13650b['start']),_0x3d1bac['isCollapsed']&&(_0x194d28=_0x3d1bac['end']),_0x1ffdae([_0x50dc8f['model']['createRange'](_0x58ed2e,_0x194d28)]);}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('formatBlock','convertInlineImageToBlock','chain',_0x56fe27),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','convertInlineImageToBlock','chain',_0x56fe27)),_0x50dc8f['plugins']['has']('ImageCaptionEditing')&&(_0x3ee3ce['enableCommand']('toggleImageCaption',(_0x2d66f9,_0x529ea0)=>{const _0x482430=_0x50dc8f['plugins']['get']('ImageCaptionUtils');let _0x3dea85=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x2dcdfb=_0x482430['getCaptionFromImageModelElement'](_0x3dea85);_0x50dc8f['model']['change'](()=>{if(_0x2dcdfb)return void _0x3ee3ce['markDeletion'](_0x50dc8f['model']['createRangeOn'](_0x2dcdfb));const _0x248d53=_0x26ba3a['isBlockImage'](_0x3dea85);_0x2d66f9(_0x529ea0),_0x3dea85=_0x26ba3a['getClosestSelectedImageElement'](_0x50dc8f['model']['document']['selection']),_0x2dcdfb=_0x482430['getCaptionFromImageModelElement'](_0x3dea85),_0x3ee3ce['markInsertion'](_0x50dc8f['model']['createRangeOn'](_0x2dcdfb),_0x248d53?null:'imageCaption');});}),_0x3ee3ce['_suggestionFactory']['registerCustomCallback']('insertion','imageCaption','chain',_0x56fe27));const _0x5ce899=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x207ac6(_0x3ad9f2,_0x203f3f){const _0x40c970=_0x5ce899['findIndex'](({type:_0x563ea6,subType:_0x405bdf})=>_0x3ad9f2['type']==_0x563ea6&&_0x3ad9f2['subType']==_0x405bdf),_0x334c5b=_0x5ce899['findIndex'](({type:_0x16cfd8,subType:_0x5886ff})=>_0x203f3f['type']==_0x16cfd8&&_0x203f3f['subType']==_0x5886ff);if(_0x40c970<0x0||_0x334c5b<0x0)return!0x1;const _0xb8ad9e=_0x3ad9f2['getFirstRange'](),_0x3cd047=_0x203f3f['getFirstRange']();if((0x0==_0x40c970||0x1==_0x40c970)&&0x2==_0x334c5b&&_0xb8ad9e['isIntersecting'](_0x3cd047))return!0x0;if(0x2==_0x40c970&&0x3==_0x334c5b){const _0x16355d=_0x3ee3ce['_findSuggestions'](_0xb8ad9e,'insertion')['filter'](({suggestion:_0x5e30fd,meta:_0x376db0})=>_0x376db0['isOwn']&&'convertInlineImageToBlock'==_0x5e30fd['subType']);if(_0x16355d['length']>0x1&&_0x3cd047['end']['isEqual'](_0xb8ad9e['start']))return!0x0;if(0x1==_0x16355d['length']&&(_0xb8ad9e['start']['isEqual'](_0x3cd047['end'])||_0xb8ad9e['end']['isEqual'](_0x3cd047['start'])))return!0x0;}if(0x3==_0x40c970&&0x3==_0x334c5b&&_0xb8ad9e['start']['isBefore'](_0x3cd047['start'])){const _0x2a860b=_0xb8ad9e['end']['nodeAfter'],_0x51c862=_0x3cd047['start']['nodeBefore'];return _0x26ba3a['isBlockImage'](_0x2a860b)&&_0x2a860b===_0x51c862;}return!0x1;}function _0x56fe27(_0x5a01f7,_0x3fb463){return _0x207ac6(_0x5a01f7,_0x3fb463)?[_0x5a01f7,_0x3fb463]:_0x207ac6(_0x3fb463,_0x5a01f7)?[_0x3fb463,_0x5a01f7]:null;}_0x50dc8f['plugins']['has']('ImageResize')&&(_0x3ee3ce['_enableDefaultAttributesIntegration']('resizeImage',[],['resizedWidth']),_0x3ee3ce['_descriptionFactory']['registerAttributeLabel']('resizedWidth',o(_0x38f174,'FORMAT_IMAGE_SIZE'))),_0x50dc8f['plugins']['has']('ImageTextAlternativeEditing')&&_0x3ee3ce['_enableDefaultAttributesIntegration']('imageTextAlternative',[],['alt']),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x23339e=>{if(!!_0x5ce899['find'](({type:_0x5e4c87,subType:_0x4c0f01})=>_0x23339e['type']==_0x5e4c87&&_0x23339e['subType']==_0x4c0f01))return _0x23339e['previous']?{}:void 0x0;}),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x1dba17=>{if('insertion'==_0x1dba17['type']||'deletion'==_0x1dba17['type']){const _0x3510f6=_0x1dba17['getContainedElement']();if(_0x3510f6&&_0x3510f6['is']('element','caption'))return{'type':'insertion'==_0x1dba17['type']?'addObject':'removeObject','element':_0x3510f6,'quantity':0x1};}}),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x5100b8=>'formatBlock'==_0x5100b8['type']&&'convertInlineImageToBlock'==_0x5100b8['subType']?{'type':'format','content':'Inline\x20image\x20to\x20block\x20image'}:'formatBlock'==_0x5100b8['type']&&'convertBlockImageToInline'==_0x5100b8['subType']?{'type':'format','content':'Block\x20image\x20to\x20inline\x20image'}:void 0x0),_0x3ee3ce['_descriptionFactory']['registerDescriptionCallback'](_0x40c8d6=>{if('attribute'!=_0x40c8d6['type'])return;const {data:_0x4273c1}=_0x40c8d6;if(!_0x4273c1||'alt'!=_0x4273c1['key'])return;const _0x4e7cc5=_0x4273c1['newValue'];return _0x4e7cc5?{'type':'format','content':o(_0x38f174,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x4e7cc5+'\x22')}:{'type':'format','content':o(_0x38f174,'*Remove\x20image\x20text\x20alternative*')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x301829=this['editor'],_0x28d4d7=_0x301829['locale'];_0x301829['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5009f6=>{if('formatBlock'!=_0x5009f6['type']&&'formatInline'!=_0x5009f6['type'])return;const {data:_0x28d671}=_0x5009f6;if(_0x28d671){if('imageTextAlternative'==_0x28d671['commandName']){const _0x1c6543=_0x28d671['commandParams'][0x0]['newValue'];return _0x1c6543?{'type':'format','content':o(_0x28d4d7,'*Set\x20image\x20text\x20alternative:*\x20%0','\x22'+_0x1c6543+'\x22')}:{'type':'format','content':o(_0x28d4d7,'*Remove\x20image\x20text\x20alternative*')};}if('resizeImage'==_0x28d671['commandName']){const _0x565929=_0x28d671['commandParams'][0x0]['width'];return _0x565929?{'type':'format','content':o(_0x28d4d7,'*Set\x20image\x20width:*\x20%0',_0x565929)}:{'type':'format','content':o(_0x28d4d7,'*Reset\x20image\x20width*')};}}});}}class st extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('ImageEditing'))return;const _0xa8c330=this['editor']['locale'],_0x34adc7=this['editor']['plugins']['get']('TrackChangesEditing');_0x34adc7['_enableDefaultAttributesIntegration']('replaceImageSource',[],['src']),_0x34adc7['_descriptionFactory']['registerDescriptionCallback'](_0x1c4e18=>{if('attribute'!=_0x1c4e18['type'])return;const {data:_0x113d4c}=_0x1c4e18;return _0x113d4c&&'src'==_0x113d4c['key']?_0x113d4c['newValue']&&_0x113d4c['oldValue']?{'type':'format','content':o(_0xa8c330,'*Replace\x20image\x20URL*')}:{'type':'format','content':''}:void 0x0;}),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x276932=this['editor']['plugins']['get']('TrackChangesEditing');_0x276932['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','accept',_0x276932['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x276932['_suggestionFactory']['registerCustomCallback']('formatBlock','replaceImageSource','discard',_0x276932['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x51472f=this['editor'],_0x38521a=_0x51472f['locale'];_0x51472f['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x40007a=>{if('formatBlock'!=_0x40007a['type']&&'formatInline'!=_0x40007a['type'])return;const {data:_0xd3ab7a}=_0x40007a;if(!_0xd3ab7a||'replaceImageSource'!=_0xd3ab7a['commandName'])return;return{'type':'format','content':o(_0x38521a,'*Format:*\x20replace\x20image\x20URL')};});}}class nt extends _0x26e52a{['afterInit'](){const _0x450543=this['editor'];if(!_0x450543['plugins']['has']('ImageStyleEditing'))return;const _0x1c864f=_0x450543['plugins']['get']('TrackChangesEditing'),_0x58ec88=_0x450543['plugins']['get']('ImageUtils'),_0x4a356d={};_0x1c864f['enableCommand']('imageStyle',(_0x529ace,_0x48acd0)=>{const _0x1f8480=_0x450543['plugins']['get']('Users')['me'],_0x423000=_0x450543['commands']['get']('imageStyle');let _0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),_0x2308b2=_0x450543['model']['createRangeOn'](_0x28f030),_0x50b1b4=_0x423000['value'];if(_0x50b1b4==_0x48acd0['value'])return;const _0x16f606={'commandName':'imageStyle','commandParams':[_0x48acd0],'formatGroupId':_0x1702d8()};_0x450543['model']['change'](()=>{if(_0x1c864f['getSuggestions']()['filter'](_0x57bc7b=>_0x57bc7b['isInContent']&&_0x1f8480==_0x57bc7b['author']&&('formatBlock'==_0x57bc7b['type']||'formatInline'==_0x57bc7b['type'])&&('imageStylePreApply'==_0x57bc7b['subType']||'imageStylePostApply'==_0x57bc7b['subType'])&&_0x57bc7b['getFirstRange']()['isEqual'](_0x2308b2))['forEach'](_0x41205a=>_0x1c864f['discardSuggestion'](_0x41205a['head'])),_0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),_0x2308b2=_0x450543['model']['createRangeOn'](_0x28f030),_0x423000['refresh'](),_0x450543['commands']['get']('imageTypeInline')['refresh'](),_0x450543['commands']['get']('imageTypeBlock')['refresh'](),_0x50b1b4=_0x423000['value'],_0x50b1b4!=_0x48acd0['value'])return _0x58ec88['isInlineImage'](_0x28f030)&&_0x423000['shouldConvertImageType'](_0x48acd0['value'],_0x28f030)?(_0x529ace({..._0x48acd0,'setImageSizes':!0x1}),_0x28f030=_0x58ec88['getClosestSelectedImageElement'](_0x450543['model']['document']['selection']),void _0x1c864f['markBlockFormat'](_0x28f030,{..._0x16f606,'commandReversedParams':[{'value':_0x50b1b4||null,'setImageSizes':!0x1}]},[],'imageStylePreApply')):void(_0x58ec88['isBlockImage'](_0x28f030)?_0x1c864f['markBlockFormat'](_0x28f030,_0x16f606,[],'imageStylePostApply'):_0x1c864f['markInlineFormat'](_0x2308b2,_0x16f606,'imageStylePostApply'));});});for(const _0x562cd0 of _0x450543['plugins']['get']('ImageStyleEditing')['normalizedStyles'])_0x4a356d[_0x562cd0['name']]=_0x562cd0['title']['toLowerCase']();_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePostApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatInline','imageStylePostApply','join',()=>!0x1),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','accept',([_0x1be076])=>{_0x58ec88['setImageNaturalSizeAttributes'](_0x1be076['getContainedElement']());}),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','discard',(_0x2105e6,_0x19c63a)=>{_0x1c864f['_suggestionFactory']['getSuggestionCallback']('formatBlock','','accept')(_0x2105e6,{'commandName':_0x19c63a['commandName'],'commandParams':_0x19c63a['commandReversedParams']});}),_0x1c864f['_suggestionFactory']['registerCustomCallback']('formatBlock','imageStylePreApply','chain',function(_0x2e51f6,_0x52ac15){if(_0x1a00e1(_0x2e51f6,_0x52ac15))return[_0x2e51f6,_0x52ac15];if(_0x1a00e1(_0x52ac15,_0x2e51f6))return[_0x52ac15,_0x2e51f6];return null;});const _0x2de7c2=[{'type':'formatBlock','subType':'imageStylePreApply'},{'type':'insertion','subType':'imageCaption'},{'type':'formatBlock','subType':'convertInlineImageToBlock'},{'type':'insertion','subType':'convertInlineImageToBlock'}];function _0x1a00e1(_0x230829,_0x5e7e26){const _0x5a84fc=_0x2de7c2['findIndex'](({type:_0x5c8a53,subType:_0x50b99f})=>_0x230829['type']==_0x5c8a53&&_0x230829['subType']==_0x50b99f),_0x3b07a9=_0x2de7c2['findIndex'](({type:_0x5ae301,subType:_0x30e2c8})=>_0x5e7e26['type']==_0x5ae301&&_0x5e7e26['subType']==_0x30e2c8);if(_0x5a84fc<0x0||_0x3b07a9<0x0)return!0x1;const _0x29ea2e=_0x230829['getFirstRange'](),_0x8f5d75=_0x5e7e26['getFirstRange']();if((0x0==_0x5a84fc||0x1==_0x5a84fc)&&0x2==_0x3b07a9&&_0x29ea2e['isIntersecting'](_0x8f5d75))return!0x0;if(0x2==_0x5a84fc&&0x3==_0x3b07a9){const _0x330933=_0x1c864f['_findSuggestions'](_0x29ea2e,'insertion')['filter'](({suggestion:_0x14d145,meta:_0x127803})=>_0x127803['isOwn']&&'convertInlineImageToBlock'==_0x14d145['subType']);if(_0x330933['length']>0x1&&_0x8f5d75['end']['isEqual'](_0x29ea2e['start']))return!0x0;if(0x1==_0x330933['length']&&(_0x29ea2e['start']['isEqual'](_0x8f5d75['end'])||_0x29ea2e['end']['isEqual'](_0x8f5d75['start'])))return!0x0;}if(0x3==_0x5a84fc&&0x3==_0x3b07a9&&_0x29ea2e['start']['isBefore'](_0x8f5d75['start'])){const _0x5b5c3e=_0x29ea2e['end']['nodeAfter'],_0x5018a8=_0x8f5d75['start']['nodeBefore'];return _0x58ec88['isBlockImage'](_0x5b5c3e)&&_0x5b5c3e===_0x5018a8;}return!0x1;}_0x450543['model']['document']['registerPostFixer'](()=>{let _0x1432f4=!0x1;const _0x4eb9f8=Array['from'](_0x450543['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x18989b,data:_0x2f11d4}of _0x4eb9f8){const {group:_0x55eda1,type:_0x190540,subType:_0x57f709,id:_0x43ae5d}=_0x1c864f['_splitMarkerName'](_0x18989b);if('suggestion'==_0x55eda1&&_0x1c864f['hasSuggestion'](_0x43ae5d)){if('formatBlock'==_0x190540&&('imageStylePreApply'==_0x57f709||'imageStylePostApply'==_0x57f709)){const _0x3b775a=_0x1c864f['getSuggestion'](_0x43ae5d);if(_0x2f11d4['newRange']){const _0x40f0b=_0x3b775a['getFirstRange']()['getContainedElement']();if(_0x58ec88['isBlockImage'](_0x40f0b))continue;_0x1c864f['discardSuggestion'](_0x3b775a),_0x1432f4=!0x0;}}if('insertion'==_0x190540&&'imageCaption'==_0x57f709&&!_0x2f11d4['newRange']){const _0x25fd43=_0x1c864f['getSuggestion'](_0x43ae5d);_0x25fd43['next']&&_0x25fd43['next']['isInContent']&&(_0x1c864f['discardSuggestion'](_0x25fd43['next']),_0x1432f4=!0x0);}}}return _0x1432f4;}),this['_registerLegacyDescription'](_0x4a356d);}['_registerLegacyDescription'](_0x329479){const _0x5807e3=this['editor'],_0x4d05fe=_0x5807e3['locale'];_0x5807e3['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x38bfbc=>{if('formatBlock'!=_0x38bfbc['type']&&'formatInline'!=_0x38bfbc['type'])return;const {data:_0x1ddc94}=_0x38bfbc;if(!_0x1ddc94||'imageStyle'!=_0x1ddc94['commandName'])return;const _0x1ed133=_0x1ddc94['commandParams'][0x0]['value'];return _0x40584d('side'===_0x1ed133?o(_0x4d05fe,'FORMAT_SIDE_IMAGE'):_0x329479[_0x1ed133]||_0x1ed133);function _0x40584d(_0x312618){return{'type':'format','content':o(_0x4d05fe,'*Format:*\x20%0',_0x312618)};}});}}class ot extends _0x26e52a{['afterInit'](){const _0x199f18=this['editor'],_0x53c2df=_0x199f18['commands']['get']('importWord'),_0x5e18ef=_0x199f18['commands']['get']('trackChanges');_0x53c2df&&(_0x53c2df['on']('execute',(_0x1a87ee,[,_0x8b97f4])=>{this['_trackChangesValueDuringImport']=_0x5e18ef['value'],_0x8b97f4['collaboration_features']['track_changes']=!this['_trackChangesValueDuringImport'];},{'priority':'high'}),this['listenTo'](_0x53c2df,'dataInsert',this['_handleImportedData']['bind'](this)),this['listenTo'](_0x53c2df,'dataInsert',()=>{this['_trackChangesExecuted']&&(_0x5e18ef['execute'](),this['_trackChangesExecuted']=!0x1);},{'priority':'lowest'}),_0x199f18['plugins']['get']('TrackChangesEditing')['enableCommand']('importWord'));}['_handleImportedData'](_0x505673,_0x357334){const {suggestions:_0x5d2760}=_0x357334,_0x41b8f6=this['editor']['commands']['get']('trackChanges'),_0x48df4e=_0x41b8f6['value'];this['_trackChangesValueDuringImport']!==_0x48df4e&&(_0x41b8f6['execute'](),this['_trackChangesExecuted']=!0x0),_0x5d2760&&_0x5d2760['forEach'](({id:_0x49afa4,type:_0x24fe85,author:_0x75ed6d,created_at:_0x3c4447})=>{const _0x392966={'id':_0x49afa4,'type':_0x24fe85,'authorId':this['editor']['plugins']['get']('Users')['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x75ed6d,'createdAt':_0x3c4447?new Date(_0x3c4447):new Date(),'source':'importWord'}}};this['editor']['plugins']['get']('TrackChangesEditing')['_setSuggestionData'](_0x392966);});}constructor(_0x578f5e){super(_0x578f5e),this['_trackChangesValueDuringImport']=!0x1,this['_trackChangesExecuted']=!0x1;}}class rt extends _0x26e52a{['afterInit'](){const _0x5d544e=this['editor'],_0x164278=_0x5d544e['plugins']['get']('TrackChangesEditing');if(_0x5d544e['plugins']['has']('IndentEditing')&&(_0x164278['enableCommand']('indent'),_0x164278['enableCommand']('outdent')),_0x5d544e['plugins']['has']('IndentBlock')){for(const _0x5c1923 of['indentBlock','outdentBlock'])_0x164278['_enableDefaultAttributesIntegration'](_0x5c1923);}const _0x4e62f1=_0x5d544e['locale'];_0x164278['_registerBlockAttribute']('blockIndent'),_0x164278['_descriptionFactory']['registerAttributeLabel']('blockIndent',o(_0x4e62f1,'FORMAT_INDENT')),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0xd22ab0=this['editor'],_0x7b4686=_0xd22ab0['locale'],_0x27fd1f=_0xd22ab0['plugins']['get']('TrackChangesEditing');_0x27fd1f['_descriptionFactory']['registerDescriptionCallback'](_0x28bec1=>{if('formatBlock'!=_0x28bec1['type'])return;const {data:_0x21b044}=_0x28bec1;if(!_0x21b044)return;if('indentBlock'!=_0x21b044['commandName']&&'outdentBlock'!=_0x21b044['commandName'])return;const _0xeff957=_0x28bec1['getItems']()[0x0],_0x190fd8=_0x27fd1f['_descriptionFactory']['getItemLabel'](_0xeff957);return'indentBlock'==_0x21b044['commandName']?{'type':'format','content':o(_0x7b4686,'*Indent:*\x20%0',_0x190fd8)}:'outdentBlock'==_0x21b044['commandName']?{'type':'format','content':o(_0x7b4686,'*Outdent:*\x20%0',_0x190fd8)}:void 0x0;});}}class at extends _0x26e52a{static get['requires'](){return[tr];}['init'](){this['editor']['plugins']['get']('TrackChangesEditing')['enableCommand']('input');}}class ct extends _0x26e52a{['afterInit'](){const _0x2375fa=this['editor'];if(!_0x2375fa['plugins']['has']('LinkEditing'))return;const _0x5c2df1=_0x2375fa['plugins']['get']('TrackChangesEditing'),_0x147c43=_0x2375fa['commands']['get']('link');_0x5c2df1['_enableDefaultAttributesIntegration']('link',['linkHref',..._0x147c43['manualDecorators']['map'](_0x5f297d=>_0x5f297d['id'])]),_0x5c2df1['_enableDefaultAttributesIntegration']('unlink');for(const _0x2c0394 of _0x147c43['manualDecorators'])_0x5c2df1['_descriptionFactory']['registerAttributeLabel'](_0x2c0394['id'],'link\x20('+_0x2c0394['label']['toLowerCase']()+')');_0x5c2df1['_descriptionFactory']['registerDescriptionCallback'](_0x495b79=>{if('attribute'!=_0x495b79['type'])return;const {data:_0x45b33c}=_0x495b79;if(!_0x45b33c||'linkHref'!=_0x45b33c['key'])return;const _0x36f0b7=_0x45b33c['newValue'],_0x3cea2d=_0x2375fa['locale'];return{'type':'format','content':null==_0x36f0b7?o(_0x3cea2d,'*Remove\x20link*'):o(_0x3cea2d,'*Set\x20link:*\x20%0','\x22'+_0x36f0b7+'\x22')};}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x482ef9=this['editor'],_0x16a2aa=_0x482ef9['locale'];_0x482ef9['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x911cc3=>{if('formatInline'!=_0x911cc3['type'])return;const {data:_0x26a054}=_0x911cc3;if(_0x26a054){if('link'==_0x26a054['commandName']){const _0x4be98b=_0x26a054['commandParams'][0x0];return{'type':'format','content':o(_0x16a2aa,'*Set\x20link:*\x20%0','\x22'+_0x4be98b+'\x22')};}return'unlink'==_0x26a054['commandName']?{'type':'format','content':o(_0x16a2aa,'*Remove\x20link*')}:void 0x0;}});}}class ut extends _0x26e52a{['afterInit'](){const _0x3ccee2=this['editor'],_0x1845f8=_0x3ccee2['locale'];if(!_0x3ccee2['plugins']['has']('LegacyListEditing'))return;const _0x4097d5=_0x3ccee2['plugins']['get']('TrackChangesEditing'),_0x44bc97=_0x3ccee2['plugins']['has']('LegacyTodoListEditing');function _0x301ede(_0x547a2f){return()=>{const _0x2c1a92=_0x3ccee2['model']['document']['selection'],_0x598b41=_0x3ccee2['commands']['get'](_0x547a2f);if(_0x598b41['value'])return void _0x3ccee2['execute']('paragraph',{});const _0x462d9e=_0x547a2f['slice'](0x0,-0x4),_0x4f25d6=function(_0x20e7fa,_0x12b4ff,_0x10162e){let _0x5c95b0=Array['from'](_0x20e7fa)['filter'](_0x2501ba=>function(_0x2a722e,_0x36ff52){return _0x36ff52['checkChild'](_0x2a722e['parent'],'listItem')&&!_0x36ff52['isObject'](_0x2a722e);}(_0x2501ba,_0x10162e));_0x5c95b0=_0x5c95b0['filter'](_0x36d248=>!_0x36d248['is']('element','listItem')||_0x36d248['getAttribute']('listType')!=_0x12b4ff);const _0x324d13=new Set();for(const _0x326460 of _0x5c95b0)_0x326460['is']('element','listItem')?_0x324d13['add'](me(_0x326460)):_0x324d13['add'](_0x326460);return Array['from'](_0x324d13);}(_0x2c1a92['getSelectedBlocks'](),_0x462d9e,_0x3ccee2['model']['schema']);_0x3ccee2['model']['change'](()=>{for(const _0x4f7cbf of _0x4f25d6)_0x4097d5['markBlockFormat'](_0x4f7cbf,{'commandName':_0x547a2f,'commandParams':[{'forceValue':!_0x598b41['value']}],'formatGroupId':'blockName'},fe(_0x4f7cbf));});};}function _0x41283d(_0x2d6891){return()=>{const _0x57092f=function(_0xf12e5c){let _0x1b7daf=Array['from'](_0xf12e5c);const _0x33446d=_0x1b7daf['findIndex'](_0x3d4f28=>'listItem'!=_0x3d4f28['name']);return _0x33446d>-0x1&&(_0x1b7daf=_0x1b7daf['slice'](0x0,_0x33446d)),_0x1b7daf;}(_0x3ccee2['model']['document']['selection']['getSelectedBlocks']()),_0x1316de=_0x3ccee2['model']['createRange'](_0x3ccee2['model']['createPositionAt'](_0x57092f[0x0],'before'),_0x3ccee2['model']['createPositionAt'](_0x57092f[_0x57092f['length']-0x1],'end'));_0x3ccee2['model']['change'](()=>{_0x4097d5['markBlockFormat'](_0x1316de,{'commandName':_0x2d6891,'commandParams':[],'formatGroupId':'listIndent'},function(_0x538bf5){const _0x3aa301=new Set();for(const _0x19b833 of _0x538bf5){let _0x3ce759=_0x19b833['nextSibling'];for(;_0x3ce759&&_0x3ce759['getAttribute']('listIndent')>_0x19b833['getAttribute']('listIndent');)_0x3aa301['add'](_0x3ce759),_0x3ce759=_0x3ce759['nextSibling'];}return Array['from'](_0x3aa301);}(_0x57092f));});};}_0x4097d5['enableCommand']('numberedList',_0x301ede('numberedList')),_0x4097d5['enableCommand']('bulletedList',_0x301ede('bulletedList')),_0x44bc97&&_0x4097d5['enableCommand']('todoList',_0x301ede('todoList')),_0x4097d5['enableCommand']('indentList',_0x41283d('indentList')),_0x4097d5['enableCommand']('outdentList',_0x41283d('outdentList')),_0x44bc97&&_0x4097d5['enableCommand']('checkTodoList',()=>{const _0x576513=_0x3ccee2['commands']['get']('checkTodoList'),_0x129b3e=Array['from'](_0x576513['_selectedElements']);_0x129b3e['filter'](_0x462262=>_0x462262['getAttribute']('todoListChecked')!=_0x576513['value']),_0x3ccee2['model']['change'](()=>{for(const _0x3363d2 of _0x129b3e)_0x4097d5['markBlockFormat'](_0x3363d2,{'commandName':'checkTodoList','commandParams':[{'forceValue':!_0x576513['value']}]});});}),_0x4097d5['_descriptionFactory']['registerElementLabel']('listItem',_0x559e27=>o(_0x1845f8,'ELEMENT_LIST_ITEM',_0x559e27)),_0x4097d5['_descriptionFactory']['registerDescriptionCallback'](_0x1cb87b=>{if('formatBlock'!=_0x1cb87b['type']&&'formatInline'!=_0x1cb87b['type'])return;const {data:_0x344f8d}=_0x1cb87b;if(_0x344f8d){if('numberedList'==_0x344f8d['commandName']||'bulletedList'==_0x344f8d['commandName']||'todoList'==_0x344f8d['commandName'])switch(_0x344f8d['commandName']['replace']('List','')){case'bulleted':return _0x3a4437(o(_0x1845f8,'ELEMENT_BULLETED_LIST'));case'numbered':return _0x3a4437(o(_0x1845f8,'ELEMENT_NUMBERED_LIST'));case'todo':return _0x3a4437(o(_0x1845f8,'ELEMENT_TODO_LIST'));}if('indentList'==_0x344f8d['commandName'])return{'type':'format','content':o(_0x1845f8,'*Indent:*\x20%0',o(_0x1845f8,'ELEMENT_LIST_ITEM'))};if('outdentList'==_0x344f8d['commandName'])return{'type':'format','content':o(_0x1845f8,'*Outdent:*\x20%0',o(_0x1845f8,'ELEMENT_LIST_ITEM'))};if('checkTodoList'==_0x344f8d['commandName'])return _0x344f8d['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x1845f8,'*Check\x20item*')}:{'type':'format','content':o(_0x1845f8,'*Uncheck\x20item*')};}function _0x3a4437(_0x323095){return{'type':'format','content':o(_0x1845f8,'*Change\x20to:*\x20%0',_0x323095)};}});}}function me(_0x22c2f5){const _0x3347f1=_0x22c2f5['getAttribute']('listIndent');if(0x0==_0x3347f1)return _0x22c2f5;let _0x359f95=_0x22c2f5;for(;_0x22c2f5['previousSibling']&&_0x22c2f5['previousSibling']['is']('element','listItem');){const _0x13373a=_0x22c2f5['previousSibling']['getAttribute']('listIndent');if(_0x13373a==_0x3347f1)_0x359f95=_0x22c2f5['previousSibling'];else{if(_0x13373a<_0x3347f1)break;}_0x22c2f5=_0x22c2f5['previousSibling'];}return _0x359f95;}function fe(_0x9263af){const _0x58327b=[];if(_0x9263af['is']('element','listItem')&&_0x9263af['getAttribute']('listIndent')>0x0){let _0x29d294=_0x9263af['nextSibling'];for(;_0x29d294&&'listItem'==_0x29d294['name']&&_0x29d294['getAttribute']('listIndent')==_0x9263af['getAttribute']('listIndent');)_0x58327b['push'](_0x29d294),_0x29d294=_0x29d294['nextSibling'];}return _0x58327b;}class K extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('LegacyListPropertiesEditing'))return;const _0xae85f3=this['editor']['config']['get']('list.properties'),_0x465295=this['editor']['plugins']['get']('TrackChangesEditing');_0xae85f3['styles']&&_0x465295['enableCommand']('listStyle',this['handleListStyleCommand']['bind'](this)),_0xae85f3['reversed']&&_0x465295['enableCommand']('listReversed',this['handleListReversedCommand']['bind'](this)),_0xae85f3['startIndex']&&_0x465295['enableCommand']('listStart',this['handleListStartCommand']['bind'](this)),_0x465295['_descriptionFactory']['registerDescriptionCallback'](this['handleDescriptions']['bind'](this));}['handleListStyleCommand'](_0x3f3847,_0x401ca5={}){const _0x5d029c=this['editor']['plugins']['get']('TrackChangesEditing'),_0x26b2c6=this['_getSuggestionBlocksForListStyle']();this['editor']['model']['change'](()=>{_0x5d029c['markMultiRangeBlockFormat'](_0x26b2c6,{'commandName':'listStyle','commandParams':[{'type':_0x401ca5['type']}],'formatGroupId':'listStyle'});});}['handleListReversedCommand'](_0x55b356,_0x4bca8b={}){const _0x4497f9=this['editor']['plugins']['get']('TrackChangesEditing'),_0x31ed1b=this['_getSuggestionBlocks'](_0x194131=>_0x194131['is']('element','listItem')&&'numbered'===_0x194131['getAttribute']('listType'));if(_0x31ed1b['length']<0x1)return;const _0x29ea4d=_0x31ed1b['map'](_0x5d6f04=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x5d6f04,'before'),this['editor']['model']['createPositionAt'](_0x5d6f04,0x0)));this['editor']['model']['change'](()=>{_0x4497f9['markMultiRangeBlockFormat'](_0x29ea4d,{'commandName':'listReversed','commandParams':[{'reversed':_0x4bca8b['reversed']}],'formatGroupId':'listReversed'});});}['handleListStartCommand'](_0x49c35e,_0x265a13={}){const _0x2f90c0=this['editor']['plugins']['get']('TrackChangesEditing'),_0x187268=this['_getSuggestionBlocks'](_0x51940f=>_0x51940f['is']('element','listItem')&&'numbered'===_0x51940f['getAttribute']('listType'));if(_0x187268['length']<0x1)return;const _0x3af304=_0x187268['map'](_0x6fd838=>this['editor']['model']['createRange'](this['editor']['model']['createPositionAt'](_0x6fd838,'before'),this['editor']['model']['createPositionAt'](_0x6fd838,0x0)));this['editor']['model']['change'](()=>{_0x2f90c0['markMultiRangeBlockFormat'](_0x3af304,{'commandName':'listStart','commandParams':[{'startIndex':_0x265a13['startIndex']}],'formatGroupId':'listStart'});});}['handleDescriptions'](_0x55bfa0){if('formatBlock'!=_0x55bfa0['type']&&'formatInline'!=_0x55bfa0['type'])return;const _0x3a4b9e=this['editor']['locale'],{data:_0x1b92e3}=_0x55bfa0;if(!_0x1b92e3)return;let _0x8457db,_0x21c9ef;switch(_0x1b92e3['commandName']){case'listStyle':_0x8457db='*Change\x20to:*\x20%0',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db,o(_0x3a4b9e,this['_getTranslationKeyForListStyle'](_0x1b92e3['commandParams'][0x0]['type'])))};break;case'listReversed':_0x8457db=_0x1b92e3['commandParams'][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db)};break;case'listStart':_0x8457db='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x21c9ef={'type':'format','content':o(_0x3a4b9e,_0x8457db,_0x1b92e3['commandParams'][0x0]['startIndex'])};}return _0x21c9ef;}['_getSuggestionBlocksForListStyle'](){var _0x247e5d,_0x9dbf0f,_0x489223,_0x50a4b1;const _0x581b00=this['editor']['plugins']['get']('LegacyListUtils');let _0x2b91b4=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']());return(null===(_0x247e5d=_0x2b91b4[0x0])||void 0x0===_0x247e5d?void 0x0:_0x247e5d['is']('element','listItem'))&&_0x2b91b4['unshift'](..._0x581b00['getSiblingNodes'](this['editor']['model']['document']['selection']['getFirstPosition'](),'backward')),(null===(_0x9dbf0f=_0x2b91b4[_0x2b91b4['length']-0x1])||void 0x0===_0x9dbf0f?void 0x0:_0x9dbf0f['is']('element','listItem'))&&_0x2b91b4['push'](..._0x581b00['getSiblingNodes'](this['editor']['model']['document']['selection']['getLastPosition'](),'forward')),_0x2b91b4=[...new Set(_0x2b91b4)],(null===(_0x50a4b1=null===(_0x489223=this['editor']['model']['document']['selection']['getFirstPosition']())||void 0x0===_0x489223?void 0x0:_0x489223['parent'])||void 0x0===_0x50a4b1?void 0x0:_0x50a4b1['is']('element','listItem'))&&(_0x2b91b4=_0x2b91b4['filter'](_0xa5e667=>_0xa5e667['is']('element','listItem'))),_0x2b91b4;}['_getSuggestionBlocks'](_0x46613c){const _0xc58811=this['editor']['plugins']['get']('LegacyListUtils');let _0x4a557b=Array['from'](this['editor']['model']['document']['selection']['getSelectedBlocks']())['filter'](_0x46613c)['map'](_0x40943e=>{const _0x67a40c=this['editor']['model']['createPositionAt'](_0x40943e,0x0);return[..._0xc58811['getSiblingNodes'](_0x67a40c,'backward'),..._0xc58811['getSiblingNodes'](_0x67a40c,'forward')];})['flat']();return _0x4a557b=[...new Set(_0x4a557b)],_0x4a557b;}['_getTranslationKeyForListStyle'](_0x3e31a2){return'ELEMENT_'+(this['editor']['plugins']['get']('LegacyListUtils')['getListTypeFromListStyleType'](_0x3e31a2)||'default')['toUpperCase']()+'_LIST_'+_0x3e31a2['toUpperCase']()['replace'](/-/g,'_');}}class ft extends _0x26e52a{['afterInit'](){const _0x98e7c2=this['editor'];if(!_0x98e7c2['plugins']['has']('MediaEmbedEditing'))return;const _0x2c1c0a=_0x98e7c2['plugins']['get']('TrackChangesEditing'),_0x3b0fd2=_0x98e7c2['locale'];_0x2c1c0a['enableCommand']('mediaEmbed'),_0x2c1c0a['_descriptionFactory']['registerElementLabel']('media',_0x519dfa=>o(_0x3b0fd2,'ELEMENT_MEDIA',_0x519dfa)),_0x98e7c2['conversion']['for']('dataDowncast')['elementToElement']({'model':'media','view':(_0x4ac080,{writer:_0x117011,options:_0x4f2384})=>{if(_0x4f2384['showSuggestionHighlights'])return _0x117011['createEmptyElement']('div');},'converterPriority':'high'}),_0x98e7c2['data']['downcastDispatcher']['on']('attribute:url:media',(_0x41d4b8,_0x5c994b,_0x48d052)=>{_0x48d052['options']['showSuggestionHighlights']&&_0x41d4b8['stop']();},{'priority':'high'});}}class gt extends _0x26e52a{['afterInit'](){const _0x6d8dc=this['editor'];_0x6d8dc['plugins']['has']('MentionEditing')&&_0x6d8dc['plugins']['get']('TrackChangesEditing')['enableCommand']('mention');}}class lt extends _0x26e52a{['afterInit'](){const _0x2e0984=this['editor'],_0x4820db=_0x2e0984['plugins']['get']('TrackChangesEditing');_0x2e0984['plugins']['has']('MultiLevelList')&&(_0x4820db['_enableDefaultAttributesIntegration']('multiLevelList',[],['listMarkerStyle']),_0x4820db['_descriptionFactory']['registerDescriptionCallback'](_0x23cb36=>this['handleDescriptions'](_0x23cb36)));}['handleDescriptions'](_0x41f1fe){const _0x32f60f=this['editor']['locale'],{data:_0x2307d9}=_0x41f1fe,_0x4301e5={'type':'format','content':''};if(_0x2307d9&&'listMarkerStyle'==_0x2307d9['key']){if(!_0x2307d9['oldValue'])return{'type':'format','content':o(_0x32f60f,'*Set\x20format:*\x20%0',o(_0x32f60f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2307d9['newValue']+')'};if(!_0x2307d9['newValue']){let _0x3fa14e=_0x41f1fe['head'];for(;_0x3fa14e;){if(_0x3fa14e['data']&&'listType'==_0x3fa14e['data']['key']&&_0x3fa14e['data']['newValue'])return _0x4301e5;_0x3fa14e=_0x3fa14e['next'];}return{'type':'format','content':o(_0x32f60f,'*Remove\x20format:*\x20%0',o(_0x32f60f,'ELEMENT_MULTI_LEVEL_LIST'))+'\x20('+_0x2307d9['oldValue']+')'};}}}}class mt extends _0x26e52a{['afterInit'](){const _0x5c3f24=this['editor'];if(!_0x5c3f24['plugins']['has']('PageBreakEditing'))return;_0x5c3f24['plugins']['get']('TrackChangesEditing')['enableCommand']('pageBreak');const _0x1c6b06=_0x5c3f24['plugins']['get']('TrackChangesEditing'),_0x55b9fd=_0x5c3f24['locale'];_0x1c6b06['_descriptionFactory']['registerElementLabel']('pageBreak',_0x2ba703=>o(_0x55b9fd,'ELEMENT_PAGE_BREAK',_0x2ba703));}}class dt extends _0x26e52a{['afterInit'](){const _0x160f78=this['editor'];if(!_0x160f78['plugins']['has']('Paragraph'))return;const _0xbd0bc9=_0x160f78['locale'],_0x2e8eec=_0x160f78['plugins']['get']('TrackChangesEditing');_0x2e8eec['_descriptionFactory']['registerElementLabel']('paragraph',_0x4cae6c=>o(_0xbd0bc9,'ELEMENT_PARAGRAPH',_0x4cae6c)),_0x2e8eec['_enableDefaultAttributesIntegration']('paragraph'),_0x2e8eec['enableCommand']('insertParagraph'),_0x160f78['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',nr(_0x160f78),{'priority':'highest'}),_0x160f78['data']['downcastDispatcher']['on']('addMarker:suggestion:insertion',(_0x47549e,_0x4b9b4a,_0x5bcdf1)=>{_0x5bcdf1['options']['showSuggestionHighlights']&&nr(_0x160f78,{'showActiveMarker':!0x1})(_0x47549e,_0x4b9b4a,_0x5bcdf1);},{'priority':'highest'});const _0x189139=_0x2e8eec['_descriptionFactory'];_0x189139['registerDescriptionCallback'](_0x28c89a=>{if('insertion'!==_0x28c89a['type'])return;const {start:_0x47e742,end:_0x461b0e}=_0x28c89a['getFirstRange']();if(!_0x47e742['isTouching'](_0x461b0e)||!_0x47e742['nodeAfter'])return;const _0x4d5b06=_0x160f78['model']['schema'],_0x1252c0=_0x47e742['nodeAfter'];return _0x4d5b06['isBlock'](_0x1252c0)&&!_0x4d5b06['isLimit'](_0x1252c0)&&_0x4d5b06['checkChild'](_0x1252c0,'$text')?{'type':'insertion','content':o(_0xbd0bc9,'*Insert:*\x20%0',_0x189139['getItemLabel'](_0x1252c0,0x1))}:void 0x0;}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x55b592=this['editor'],_0x5030d6=_0x55b592['locale'];_0x55b592['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x39a83c=>{if('formatBlock'!=_0x39a83c['type'])return;const {data:_0x22ee04}=_0x39a83c;return _0x22ee04&&'paragraph'==_0x22ee04['commandName']?{'type':'format','content':o(_0x5030d6,'*Change\x20to:*\x20%0',o(_0x5030d6,'ELEMENT_PARAGRAPH'))}:void 0x0;});}}function nr(_0x21dc12,{showActiveMarker:_0x5955d9=!0x0}={}){return(_0x58505c,_0x289d5e,_0x302407)=>{const _0x16924b=_0x21dc12['plugins']['get']('TrackChangesEditing'),_0x21ce95=_0x289d5e['markerRange']['start'],_0x22cdd5=_0x289d5e['markerRange']['end'],_0x24d718=_0x21dc12['model']['schema'];if(!_0x21ce95['isTouching'](_0x22cdd5)||!_0x21ce95['nodeAfter'])return;const _0x4fc6c0=_0x21ce95['nodeAfter'];if(_0x24d718['isBlock'](_0x4fc6c0)&&!_0x24d718['isLimit'](_0x4fc6c0)&&_0x24d718['checkChild'](_0x4fc6c0,'$text')){if(!_0x302407['consumable']['consume'](_0x289d5e['markerRange'],_0x58505c['name']))return;const _0x588775=_0x302407['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-split'}),_0x2e8581=_0x302407['mapper']['toViewPosition'](_0x22cdd5);_0x5955d9&&_0x16924b['activeMarkers']['includes'](_0x289d5e['markerName'])&&_0x302407['writer']['addClass']('ck-suggestion-marker--active',_0x588775),_0x302407['writer']['insert'](_0x2e8581,_0x588775),_0x302407['mapper']['bindElementToMarker'](_0x588775,_0x289d5e['markerName']);}};}class pt extends _0x26e52a{['afterInit'](){const _0x48c47f=this['editor'];if(!_0x48c47f['plugins']['has']('RemoveFormatEditing'))return;_0x48c47f['plugins']['get']('TrackChangesEditing')['_enableDefaultAttributesIntegration']('removeFormat'),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x29e432=this['editor'];_0x29e432['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x54a847=>{if('formatBlock'!=_0x54a847['type']&&'formatInline'!=_0x54a847['type'])return;const {data:_0x30c708}=_0x54a847;return _0x30c708&&'removeFormat'==_0x30c708['commandName']?{'type':'format','content':o(_0x29e432['locale'],'*Remove\x20all\x20formatting*')}:void 0x0;});}}class kt extends _0x26e52a{['afterInit'](){const _0x51461d=this['editor'];if(!_0x51461d['plugins']['has']('RestrictedEditingModeEditing'))return;const _0x3066cf=_0x51461d['plugins']['get']('TrackChangesEditing');_0x3066cf['enableCommand']('goToPreviousRestrictedEditingException'),_0x3066cf['enableCommand']('goToNextRestrictedEditingException');const _0x53d06c=_0x51461d['plugins']['get']('RestrictedEditingModeEditing');_0x53d06c['enableCommand']('trackChanges'),_0x53d06c['enableCommand']('acceptSuggestion'),_0x53d06c['enableCommand']('discardSuggestion'),_0x53d06c['enableCommand']('acceptAllSuggestions'),_0x53d06c['enableCommand']('discardAllSuggestions'),_0x53d06c['enableCommand']('acceptSelectedSuggestions'),_0x53d06c['enableCommand']('discardSelectedSuggestions');}}class bt extends _0x26e52a{static get['requires'](){return[_0x188c20];}['init'](){const _0x24b349=this['editor'],_0x1b9be4=_0x24b349['plugins']['get']('TrackChangesEditing');_0x1b9be4['enableCommand']('shiftEnter'),_0x24b349['editing']['downcastDispatcher']['on']('addMarker:suggestion:insertion',de(_0x24b349),{'priority':'high'}),_0x24b349['editing']['downcastDispatcher']['on']('addMarker:suggestion:deletion',de(_0x24b349),{'priority':'high'}),_0x24b349['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x262d18,_0x3a35e3,_0x436f55)=>{_0x436f55['options']['showSuggestionHighlights']&&de(_0x24b349,{'showActiveMarker':!0x1})(_0x262d18,_0x3a35e3,_0x436f55);}),_0x1b9be4['_descriptionFactory']['registerElementLabel']('softBreak',_0x48a542=>o(_0x24b349['locale'],'ELEMENT_LINE_BREAK',_0x48a542));}}function de(_0x4cbdea,{showActiveMarker:_0x2153b6=!0x0}={}){return(_0x356780,_0x6420c7,_0x118612)=>{const _0x2e446d=_0x4cbdea['plugins']['get']('TrackChangesEditing');if(!_0x118612['consumable']['test'](_0x6420c7['markerRange'],_0x356780['name']))return;const _0x2f5d3f=_0x4cbdea['model'];for(const _0x3adb80 of _0x6420c7['markerRange']['getItems']()){if(!_0x3adb80['is']('element','softBreak'))continue;const _0x2fe9d0='deletion'==_0x6420c7['markerName']['split'](':')[0x1]?'merge':'split',_0xf4fcbb=_0x118612['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2fe9d0}),_0x5e5654=_0x118612['mapper']['toViewPosition'](_0x2f5d3f['createPositionBefore'](_0x3adb80));_0x2153b6&&_0x2e446d['activeMarkers']['includes'](_0x6420c7['markerName'])&&_0x118612['writer']['addClass']('ck-suggestion-marker--active',_0xf4fcbb),_0x118612['writer']['insert'](_0x5e5654,_0xf4fcbb),_0x118612['mapper']['bindElementToMarker'](_0xf4fcbb,_0x6420c7['markerName']);}};}class wt extends _0x26e52a{['afterInit'](){const _0x1224a5=this['editor'],_0x2e7f3f=_0x1224a5['model'],_0x5ee659=_0x1224a5['locale'];if(!_0x1224a5['plugins']['has']('StandardEditingModeEditing'))return;const _0xc779a5=_0x1224a5['plugins']['get']('TrackChangesEditing'),_0x50ef4e='restrictedEditingException',_0x8319c9=_0x1224a5['commands']['get'](_0x50ef4e);_0xc779a5['enableCommand'](_0x50ef4e,(_0x55fde5,_0x535db8={})=>{const _0x5db948=_0x2e7f3f['document']['selection'];if(_0x5db948['isCollapsed'])return void _0x55fde5(_0x535db8);const _0x4a7ddb=void 0x0!==_0x535db8['forceValue']?_0x535db8['forceValue']:!_0x8319c9['value'];_0x2e7f3f['change'](()=>{const _0x29f463=Array['from'](_0x5db948['getRanges']());for(const _0x57091c of _0x29f463){const _0x1cb8f6=_0x4a7ddb?[_0x57091c]:io(_0x50ef4e,_0x57091c,_0x2e7f3f);for(const _0x49370b of _0x1cb8f6)_0xc779a5['markInlineFormat'](_0x49370b,{'commandName':_0x50ef4e,'commandParams':[{'forceValue':_0x4a7ddb}]});}});}),_0xc779a5['_descriptionFactory']['registerDescriptionCallback'](_0x477de6=>{if('formatBlock'!=_0x477de6['type']&&'formatInline'!=_0x477de6['type'])return;const {data:_0x248f09}=_0x477de6;return _0x248f09&&_0x248f09['commandName']==_0x50ef4e?_0x248f09['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x5ee659,'FORMAT_RESTRICTED_ENABLED')}:{'type':'format','content':o(_0x5ee659,'FORMAT_RESTRICTED_DISABLED')}:void 0x0;});}}class yt extends _0x26e52a{['afterInit'](){const _0x51c1e4=this['editor'];if(!_0x51c1e4['plugins']['has']('Style')||!_0x51c1e4['plugins']['has']('DataSchema'))return;const _0x464306=_0x51c1e4['plugins']['get']('TrackChangesEditing'),_0x478cb3=_0x51c1e4['locale'],_0x281319=_0x51c1e4['config']['get']('style')||{},_0x85251d=_0x51c1e4['plugins']['get']('GeneralHtmlSupport'),_0x91e6d8=_0x51c1e4['plugins']['get']('StyleUtils')['normalizeConfig'](_0x51c1e4['plugins']['get']('DataSchema'),_0x281319['definitions']);_0x464306['_enableDefaultAttributesIntegration']('style');const _0x25f8d2=new Set();for(const _0x30c137 of _0x91e6d8['block']){const _0x183353=_0x85251d['getGhsAttributeNameForElement'](_0x30c137['element']);_0x25f8d2['add'](_0x183353);}const _0x3fba48=new Set();for(const _0xced62c of _0x91e6d8['inline']){const _0x4ca882=_0x85251d['getGhsAttributeNameForElement'](_0xced62c['element']);_0x3fba48['add'](_0x4ca882);for(const _0x25e1c7 of _0xced62c['ghsAttributes'])_0x3fba48['add'](_0x25e1c7);}for(const _0x37baca of _0x25f8d2)_0x464306['_registerBlockAttribute'](_0x37baca),_0x464306['_descriptionFactory']['registerAttributeLabel'](_0x37baca,o(_0x478cb3,'FORMAT_STYLE'));for(const _0x490fd6 of _0x3fba48)_0x464306['_registerInlineAttribute'](_0x490fd6),_0x464306['_descriptionFactory']['registerAttributeLabel'](_0x490fd6,o(_0x478cb3,'FORMAT_STYLE'));this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x235e85=this['editor'],_0x52a053=_0x235e85['locale'];_0x235e85['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x5020d2=>{if('formatBlock'!=_0x5020d2['type']&&'formatInline'!=_0x5020d2['type'])return;const {data:_0x3ef780}=_0x5020d2;return _0x3ef780&&'style'===_0x3ef780['commandName']?_0x3ef780['commandParams'][0x0]['forceValue']?{'type':'format','content':o(_0x52a053,'*Set\x20format:*\x20%0',_0x3ef780['commandParams'][0x0]['styleName']['toLowerCase']())}:{'type':'format','content':o(_0x52a053,'*Remove\x20format:*\x20%0',_0x3ef780['commandParams'][0x0]['styleName']['toLowerCase']())}:void 0x0;});}}class jt extends _0x26e52a{['afterInit'](){const _0x5c31bf=this['editor'],_0x19bb6c=_0x5c31bf['model']['document']['selection'];if(!_0x5c31bf['plugins']['has']('TableEditing'))return;const _0xde411b=_0x5c31bf['locale'],_0x39b845=_0x5c31bf['plugins']['get']('TrackChangesEditing'),_0x351c90=_0x5c31bf['plugins']['get']('TableUtils');_0x39b845['_descriptionFactory']['registerElementLabel']('table',_0x3536ce=>o(_0xde411b,'ELEMENT_TABLE',_0x3536ce)),this['_setupColumnsRowsFixing'](),_0x39b845['enableCommand']('insertTable'),_0x39b845['enableCommand']('selectTableRow'),_0x39b845['enableCommand']('selectTableColumn');for(const _0x3239fd of['insertTableRowAbove','insertTableRowBelow']){const _0x16be76=_0x5c31bf['commands']['get'](_0x3239fd);_0x39b845['enableCommand'](_0x3239fd,_0x40d3b4=>{_0x5c31bf['model']['change'](_0x1a4e00=>{_0x40d3b4();const _0x242ee2='above'===_0x16be76['order'],_0x3100e7=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x293f5e=_0x351c90['getRowIndexes'](_0x3100e7),_0x19541c=_0x242ee2?_0x293f5e['first']-0x1:_0x293f5e['last']+0x1,_0x42a35d=_0x3100e7[0x0]['findAncestor']('table'),_0x5d725e=_0x351c90['createTableWalker'](_0x42a35d,{'startRow':_0x19541c,'endRow':_0x19541c}),_0x3d06a9=Array['from'](_0x5d725e)['map'](_0xc87e0d=>_0x1a4e00['createRangeOn'](_0xc87e0d['cell']));_0x39b845['markMultiRangeInsertion'](_0x3d06a9,'tableRow');});});}for(const _0x214e04 of['insertTableColumnLeft','insertTableColumnRight']){const _0x132355=_0x5c31bf['commands']['get'](_0x214e04);_0x39b845['enableCommand'](_0x214e04,_0x57a793=>{_0x5c31bf['model']['change'](_0x3a659e=>{_0x57a793();const _0x38716b='left'===_0x132355['order'],_0x32ccd2=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x3e750a=_0x351c90['getColumnIndexes'](_0x32ccd2),_0x2478f7=_0x38716b?_0x3e750a['first']-0x1:_0x3e750a['last']+0x1,_0x3b2eef=_0x32ccd2[0x0]['findAncestor']('table'),_0x5ab288=_0x351c90['createTableWalker'](_0x3b2eef,{'startRow':0x0,'column':_0x2478f7,'includeAllSlots':!0x1}),_0x2c966a=Array['from'](_0x5ab288)['map'](_0x202f9f=>_0x3a659e['createRangeOn'](_0x202f9f['cell']));_0x39b845['markMultiRangeInsertion'](_0x2c966a,'tableColumn');});});}for(const _0x1eeddb of['removeTableRow','removeTableColumn']){const _0x44f512=_0x1eeddb['substr'](0xb),_0x41ead0=_0x44f512['toLowerCase'](),_0x5ce8a2=_0x41ead0['substr'](0x0,0x3)+'span',_0x399b01='table'+_0x44f512,_0x4f4de4='min'+_0x44f512,_0x3b6747='max'+_0x44f512;_0x39b845['enableCommand'](_0x1eeddb,()=>{_0x5c31bf['model']['change'](_0x42ce61=>{const _0x35a1ec=_0x351c90['getSelectionAffectedTableCells'](_0x19bb6c),_0x4bacb3=_0x35a1ec[0x0]['findAncestor']('table');let _0x48d323;if('removeTableRow'==_0x1eeddb){const _0x582ab3=_0x351c90['getRowIndexes'](_0x35a1ec);_0x48d323={'startRow':_0x582ab3['first'],'endRow':_0x582ab3['last'],'includeAllSlots':!0x0};}else{const _0x299b94=_0x351c90['getColumnIndexes'](_0x35a1ec);_0x48d323={'startColumn':_0x299b94['first'],'endColumn':_0x299b94['last'],'includeAllSlots':!0x0};}const _0x28c98c=_0x351c90['createTableWalker'](_0x4bacb3,_0x48d323),_0x188058=Array['from'](_0x28c98c)['map'](({cell:_0x27fe87})=>_0x27fe87),_0x5b91fd=Ee(_0x188058['filter'](_0x190ff3=>_0x190ff3['hasAttribute'](_0x5ce8a2))),_0x3dc51c=Ee(_0x188058['filter'](_0x46c933=>!_0x46c933['hasAttribute'](_0x5ce8a2)))['map'](_0x333664=>_0x42ce61['createRangeOn'](_0x333664)),_0x1cbca3=_0x39b845['markMultiRangeDeletion'](_0x3dc51c,_0x399b01);if(_0x1cbca3&&('tableRow'==_0x1cbca3['subType']||'tableColumn'==_0x1cbca3['subType'])){const _0xc00340=this['_getSuggestionCoords'](_0x1cbca3);for(const _0x2e52c6 of _0x5b91fd){const _0x47d524=_0x42ce61['createRangeOn'](_0x2e52c6),_0x267578=_0x351c90['getCellLocation'](_0x2e52c6),_0x5072f2=_0x2e52c6['getAttribute'](_0x5ce8a2)-0x1,_0x3f02a5=_0xc00340[_0x4f4de4],_0x461338=_0xc00340[_0x3b6747];_0x3f02a5<=_0x267578[_0x41ead0]&&_0x267578[_0x41ead0]+_0x5072f2<=_0x461338&&_0x1cbca3['addRange'](_0x47d524);}}});});}function _0x1fedf2(_0x1c7d0f){const _0x43b2cc=Array['from'](_0x19bb6c['getRanges']())['map'](_0x5b79df=>_0x577a36['fromRange'](_0x5b79df));_0x5c31bf['model']['change'](_0x250af7=>{const _0x2d6b03=_0x250af7['batch'];_0x1c7d0f=_0x1c7d0f['filter'](_0x311c48=>'$graveyard'!=_0x311c48['root']['rootName']),_0x250af7['setSelection'](_0x1c7d0f),_0x5c31bf['commands']['get']('removeTableRow')['refresh'](),_0x5c31bf['execute']('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5c31bf['model']['enqueueChange'](()=>{_0x5c31bf['model']['enqueueChange'](_0x2d6b03,_0x493693=>{const _0x4b2a3f=_0x43b2cc['filter'](_0x17830b=>'$graveyard'!=_0x17830b['root']['rootName']);_0x4b2a3f['length']>0x0&&_0x493693['setSelection'](_0x4b2a3f);for(const _0x384c5c of _0x43b2cc)_0x384c5c['detach']();});});});}function _0x347bec(_0x1e7f1f){_0x5c31bf['model']['change'](_0x4a225d=>{const _0x208e72=Array['from'](_0x19bb6c['getRanges']())['map'](_0x5c32ed=>_0x577a36['fromRange'](_0x5c32ed)),_0x2f2402=[];for(const _0x52824a of _0x1e7f1f)for(const _0x26847c of _0x52824a['getItems']({'shallow':!0x0}))_0x2f2402['push'](_0x26847c);for(const _0x43ed8c of _0x2f2402)'$graveyard'!=_0x43ed8c['root']['rootName']&&(_0x4a225d['setSelection'](_0x4a225d['createPositionAt'](_0x43ed8c,0x0)),_0x5c31bf['commands']['get']('removeTableColumn')['refresh'](),_0x5c31bf['execute']('removeTableColumn',{'forceDefaultExecution':!0x0}));const _0x3e1e07=_0x208e72['filter'](_0x1a376e=>'$graveyard'!=_0x1a376e['root']['rootName']);_0x3e1e07['length']>0x0&&_0x4a225d['setSelection'](_0x3e1e07);for(const _0x8dde35 of _0x208e72)_0x8dde35['detach']();});}function _0x57798c(_0x3833a5,_0xd01eac){return _0xd01eac['every'](_0x25ecd6=>_0x3833a5['some'](_0x34f99a=>_0x34f99a['end']['isEqual'](_0x25ecd6['start'])||_0x25ecd6['end']['isEqual'](_0x34f99a['start'])));}function _0x282b5b(_0x296ef6,_0x5c9f5b){return _0x296ef6['some'](_0x2697a3=>_0x5c9f5b['some'](_0x4b721e=>_0x2697a3['end']['isTouching'](_0x4b721e['start'])));}_0x5c31bf['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x167294,_0x56cb0d,_0x5d43ea)=>{if(!_0x5d43ea['options']['showSuggestionHighlights'])return;const _0x4ae727=_0x56cb0d['item'];if(!_0x4ae727)return;const _0x27465=_0x5d43ea['mapper']['toViewElement'](_0x4ae727);function _0x4ccb21(_0x2ebe9a){return Array['isArray'](_0x2ebe9a)?_0x2ebe9a:[_0x2ebe9a];}_0x27465&&'tableCell'===_0x4ae727['name']&&_0x408711(_0x27465,_0x5d43ea['writer'],(_0x1c10dc,_0x9d4697,_0x12497f)=>_0x12497f['addClass'](_0x4ccb21(_0x9d4697['classes']),_0x1c10dc),(_0x68994e,_0x6d8d36,_0x26b002)=>_0x26b002['removeClass'](_0x4ccb21(_0x6d8d36['classes']),_0x68994e));},{'priority':'highest'}),_0x39b845['_descriptionFactory']['registerDescriptionCallback'](_0x58621b=>{if('insertion'!=_0x58621b['type']&&'deletion'!=_0x58621b['type'])return;const _0x5435b6=_0x58621b['getContainedElement']();if(null!=_0x5435b6&&_0x5435b6['is']('element','table')){if('insertion'==_0x58621b['type']){const _0x5107d7=_0x58621b['getItems']()['filter'](_0x206fb0=>_0x206fb0['is']('$textProxy'))['map'](_0x3c629f=>_0x3c629f['data']);if(_0x5107d7['length'])return{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x5107d7['join']('\x20')+'\x22'))};}if('deletion'==_0x58621b['type']){const _0x37673d=_0x58621b['getItems']()['filter'](_0x5c9a23=>_0x5c9a23['is']('$textProxy'))['map'](_0xaa13da=>_0xaa13da['data']);if(_0x37673d['length'])return{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_WITH_TEXT','\x22'+_0x37673d['join']('\x20')+'\x22'))};}}}),_0x39b845['_descriptionFactory']['registerDescriptionCallback'](_0x5634ec=>{if('tableRow'==_0x5634ec['subType']){const _0x38b930=_0x5634ec['getItems']()['filter'](_0x4f55cd=>_0x4f55cd['is']('$textProxy'))['map'](_0xc2b767=>_0xc2b767['data']),_0x445841=this['_getSuggestionCoords'](_0x5634ec),_0x58cb69=_0x445841['maxRow']-_0x445841['minRow']+0x1;if('insertion'==_0x5634ec['type'])return _0x38b930['length']?{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58cb69,'\x22'+_0x38b930['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW',_0x58cb69))};if('deletion'==_0x5634ec['type'])return _0x38b930['length']?{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x58cb69,'\x22'+_0x38b930['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_ROW',_0x58cb69))};}if('tableColumn'==_0x5634ec['subType']){const _0x3b463d=_0x5634ec['getItems']()['filter'](_0x1c355e=>_0x1c355e['is']('$textProxy'))['map'](_0xd6411f=>_0xd6411f['data']),_0x45b691=this['_getSuggestionCoords'](_0x5634ec),_0x2d08eb=_0x45b691['maxColumn']-_0x45b691['minColumn']+0x1;if('insertion'==_0x5634ec['type'])return _0x3b463d['length']?{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d08eb,'\x22'+_0x3b463d['join']('\x20')+'\x22']))}:{'type':'insertion','content':o(_0xde411b,'*Insert:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN',_0x2d08eb))};if('deletion'==_0x5634ec['type'])return _0x3b463d['length']?{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN_WITH_TEXT',[_0x2d08eb,'\x22'+_0x3b463d['join']('\x20')+'\x22']))}:{'type':'deletion','content':o(_0xde411b,'*Remove:*\x20%0',o(_0xde411b,'ELEMENT_TABLE_COLUMN',_0x2d08eb))};}}),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','discard',_0x1fedf2),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','accept',_0x1fedf2),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','discard',_0x347bec),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','accept',_0x347bec),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableColumn','join',_0x57798c),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableColumn','join',_0x57798c),_0x39b845['_suggestionFactory']['registerCustomCallback']('insertion','tableRow','join',_0x282b5b),_0x39b845['_suggestionFactory']['registerCustomCallback']('deletion','tableRow','join',_0x282b5b);}['_acceptFormatSuggestionCallbackFactory'](){const _0x56f731=this['editor'],_0x327146=_0x56f731['model']['document']['selection'];return(_0x340070,_0x39c9f7)=>{_0x56f731['model']['change'](_0x5930cd=>{const {commandName:_0x4caeea,commandParams:_0x57c545}=_0x39c9f7;let _0x4fda99=_0x340070[0x0]['end']['nodeBefore'];_0x57c545&&_0x57c545[0x0]&&!0x1===_0x57c545[0x0]['forceValue']&&(_0x4fda99=_0x340070[0x0]['start']['nodeAfter']);const _0x1b3ff2=_0x5930cd['createRangeIn'](_0x4fda99);if('$graveyard'==_0x1b3ff2['root']['rootName'])return;const _0x3a2c7d=Array['from'](_0x327146['getRanges']())['map'](_0x19b33c=>_0x577a36['fromRange'](_0x19b33c));_0x5930cd['setSelection'](_0x1b3ff2),_0x56f731['commands']['get'](_0x4caeea)['refresh'](),_0x57c545['push']({'forceDefaultExecution':!0x0}),_0x56f731['execute'](_0x4caeea,..._0x57c545);const _0x60045f=_0x3a2c7d['filter'](_0x41cc22=>'$graveyard'!=_0x41cc22['root']['rootName']);_0x60045f['length']>0x0&&_0x5930cd['setSelection'](_0x60045f);for(const _0x1def48 of _0x3a2c7d)_0x1def48['detach']();});};}['_getCoordsForCells'](_0x5999ad){const _0x5edd77=this['editor']['plugins']['get']('TableUtils');let _0x3a6d94=Number['MAX_SAFE_INTEGER'],_0x350983=Number['MIN_SAFE_INTEGER'],_0x22670f=Number['MAX_SAFE_INTEGER'],_0x5d8b9b=Number['MIN_SAFE_INTEGER'];for(const _0x24bda4 of _0x5999ad){if('$graveyard'==_0x24bda4['root']['rootName'])continue;const {row:_0x3ec9c2,column:_0x366eab}=_0x5edd77['getCellLocation'](_0x24bda4),_0x5780c8=_0x24bda4['hasAttribute']('rowspan')?_0x24bda4['getAttribute']('rowspan')-0x1:0x0,_0x5adf2f=_0x24bda4['hasAttribute']('colspan')?_0x24bda4['getAttribute']('colspan')-0x1:0x0;_0x3a6d94=_0x3ec9c2<_0x3a6d94?_0x3ec9c2:_0x3a6d94,_0x350983=_0x3ec9c2+_0x5780c8>_0x350983?_0x3ec9c2+_0x5780c8:_0x350983,_0x22670f=_0x366eab<_0x22670f?_0x366eab:_0x22670f,_0x5d8b9b=_0x366eab+_0x5adf2f>_0x5d8b9b?_0x366eab+_0x5adf2f:_0x5d8b9b;}return{'minRow':_0x3a6d94,'maxRow':_0x350983,'minColumn':_0x22670f,'maxColumn':_0x5d8b9b};}['_setupColumnsRowsFixing'](){const _0x341492=this['editor'],_0x4b7d35=_0x341492['plugins']['get']('TrackChangesEditing'),_0x21ccfe=_0x341492['plugins']['get']('TableUtils');_0x341492['model']['document']['on']('change:data',()=>{const _0x16f81b=Array['from'](_0x341492['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x1d2197,data:_0x476127}of _0x16f81b){const {group:_0x26e6d7,id:_0x2d3af0,subType:_0x3052ba}=_0x4b7d35['_splitMarkerName'](_0x1d2197);if('suggestion'!=_0x26e6d7)continue;if(null!=_0x476127['oldRange'])continue;const _0x53b48c=_0x4b7d35['getSuggestion'](_0x2d3af0);this['_tablePostFixingSubtypes']['includes'](_0x3052ba)&&this['_tableSuggestions']['add'](_0x53b48c);}},{'priority':'low'});const _0x461db2=(_0x5aa8a6,_0x15ed2e)=>{let _0x145a6f=!0x1;const _0x555d14=_0x15ed2e['createRangeOn'](_0x5aa8a6),_0x18e9ef=_0x5aa8a6['findAncestor']('table'),_0x9dfa8f=_0x21ccfe['getCellLocation'](_0x5aa8a6);for(const _0x51e32d of this['_tableSuggestions']){const _0x242103=_0x51e32d['subType'],_0x2f84a5=_0x242103['startsWith']('tablePaste'),_0xd0dfce=_0x242103['substr'](_0x2f84a5?0xa:0x5),_0x3eaa8a=_0xd0dfce['toLowerCase'](),_0x391f0a=_0x3eaa8a['substr'](0x0,0x3)+'span',_0x4c747e='min'+_0xd0dfce,_0x2e33b1='max'+_0xd0dfce;if(!_0x51e32d['isInContent'])continue;if(_0x18e9ef!=_0x51e32d['getFirstRange']()['start']['findAncestor']('table'))continue;if(_0x51e32d['isIntersectingWithRange'](_0x555d14))continue;const _0x3655f7=_0x5aa8a6['hasAttribute'](_0x391f0a)?_0x5aa8a6['getAttribute'](_0x391f0a)-0x1:0x0,_0x1aef64=this['_getSuggestionCoords'](_0x51e32d),_0xf76310=_0x1aef64[_0x4c747e],_0x3fce0b=_0x1aef64[_0x2e33b1];_0xf76310<=_0x9dfa8f[_0x3eaa8a]&&_0x9dfa8f[_0x3eaa8a]+_0x3655f7<=_0x3fce0b&&(_0x51e32d['addRange'](_0x555d14),_0x145a6f=!0x0);}return _0x145a6f;};_0x341492['model']['document']['registerPostFixer'](_0x5a07bd=>{let _0x5bb7b3=!0x1;for(const _0x45fa66 of _0x341492['model']['document']['differ']['getChanges']())if('insert'==_0x45fa66['type']){if('tableRow'==_0x45fa66['name']){for(const _0x56d183 of _0x45fa66['position']['nodeAfter']['getChildren']())_0x5bb7b3=_0x5bb7b3||_0x461db2(_0x56d183,_0x5a07bd);}else'tableCell'==_0x45fa66['name']&&(_0x5bb7b3=_0x5bb7b3||_0x461db2(_0x45fa66['position']['nodeAfter'],_0x5a07bd));}return _0x5bb7b3;});}['_getSuggestionCoords'](_0x361c06){return this['_getCoordsForCells'](_0x361c06['getRanges']()['map'](_0x13a7d0=>_0x13a7d0['start']['nodeAfter']));}constructor(_0xaf6d23){super(_0xaf6d23),this['_tablePostFixingSubtypes']=['tableRow','tableColumn'],this['_tableSuggestions']=new Set();}}function Ee(_0x308494){return Array['from'](new Set(_0x308494)['values']());}class St extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x2d1e2a=this['editor'],_0x81be1c=_0x2d1e2a['model']['document']['selection'],_0x5c6c6d=_0x2d1e2a['locale'];if(!_0x2d1e2a['plugins']['has']('TableEditing'))return;const _0x40585c=_0x2d1e2a['plugins']['get']('TrackChangesEditing'),_0x68dc72=_0x2d1e2a['plugins']['get']('TableUtils'),_0x3c9b35=_0x2d1e2a['plugins']['get'](jt);_0x3c9b35['_tablePostFixingSubtypes']['push']('mergeTableCells'),_0x40585c['enableCommand']('mergeTableCells',()=>{const _0x1f8a42=_0x68dc72['getSelectionAffectedTableCells'](_0x2d1e2a['model']['document']['selection']);_0x2d1e2a['model']['change'](()=>{_0x40585c['markMultiRangeBlockFormat'](_0x1f8a42,{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});}),_0x2d1e2a['commands']['get']('mergeTableCells')['on']('execute',(_0x18213c,_0x72de8)=>{_0x2d1e2a['commands']['get']('trackChanges')['value']&&(_0x72de8['length']>0x0&&_0x72de8[_0x72de8['length']-0x1]&&_0x72de8[_0x72de8['length']-0x1]['forceDefaultExecution']||_0x40585c['_isForcedDefaultExecutionBlock']||this['_areSelectedCellsMergable']()||_0x18213c['stop']());},{'priority':'highest'});for(const _0x592013 of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft']){const _0x83c86=_0x2d1e2a['commands']['get'](_0x592013);_0x40585c['enableCommand'](_0x592013,()=>{const _0x11f0d6=_0x2d1e2a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x4fb4ea=>_0x4fb4ea['is']('element','tableCell')),_0x21a4ca=_0x83c86['value'];_0x2d1e2a['model']['change'](()=>{_0x40585c['markMultiRangeBlockFormat']([_0x11f0d6,_0x21a4ca],{'commandName':'mergeTableCells','commandParams':[]},[],'mergeTableCells');});});}for(const _0xb65835 of['splitTableCellVertically','splitTableCellHorizontally']){const _0x39102a=_0x2d1e2a['commands']['get'](_0xb65835);_0x40585c['enableCommand'](_0xb65835,()=>{const _0x15a77a=_0x68dc72['getSelectionAffectedTableCells'](_0x2d1e2a['model']['document']['selection'])[0x0],_0x29b26d=_0x15a77a['findAncestor']('table'),{column:_0x8c220b,row:_0x532fbf}=_0x68dc72['getCellLocation'](_0x15a77a);let _0x3ffe27=[];if('horizontally'==_0x39102a['direction']){const _0x102510=_0x68dc72['createTableWalker'](_0x29b26d,{'startRow':_0x532fbf,'endRow':_0x532fbf,'includeAllSlots':!0x0});_0x3ffe27=Array['from'](_0x102510)['map'](_0x2cf75c=>_0x2cf75c['cell']);}else{const _0x34850a=_0x68dc72['createTableWalker'](_0x29b26d,{'column':_0x8c220b,'includeAllSlots':!0x0});_0x3ffe27=Array['from'](_0x34850a)['map'](_0x5bf056=>_0x5bf056['cell']);}_0x2d1e2a['model']['change'](_0x1da824=>{_0x40585c['markBlockFormat'](_0x1da824['createRangeOn'](_0x15a77a),{'commandName':_0xb65835,'commandParams':[]},_0x3ffe27,_0xb65835);});});}_0x40585c['_descriptionFactory']['registerDescriptionCallback'](_0x5b07c9=>{if('formatBlock'!=_0x5b07c9['type']&&'formatInline'!=_0x5b07c9['type'])return;const {data:_0x1d7a7b}=_0x5b07c9;return _0x1d7a7b&&'mergeTableCells'==_0x1d7a7b['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Merge\x20cells*')}:void 0x0;}),_0x40585c['_descriptionFactory']['registerDescriptionCallback'](_0x682b3b=>{if('formatBlock'!=_0x682b3b['type']&&'formatInline'!=_0x682b3b['type'])return;const {data:_0x54c2f3}=_0x682b3b;return _0x54c2f3?'splitTableCellVertically'==_0x54c2f3['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Split\x20cell:*\x20vertically')}:'splitTableCellHorizontally'==_0x54c2f3['commandName']?{'type':'format','content':o(_0x5c6c6d,'*Split\x20cell:*\x20horizontally')}:void 0x0:void 0x0;});const _0x1594b5=_0x3c9b35['_acceptFormatSuggestionCallbackFactory']();for(const _0x3e44ec of['mergeTableCellUp','mergeTableCellRight','mergeTableCellDown','mergeTableCellLeft'])_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x3e44ec,'accept',_0x1594b5);for(const _0x1ca1ca of['splitTableCellVertically','splitTableCellHorizontally'])_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock',_0x1ca1ca,'accept',_0x1594b5);_0x40585c['_suggestionFactory']['registerCustomCallback']('formatBlock','mergeTableCells','accept',_0x3d12f5=>{_0x2d1e2a['model']['change'](_0x358087=>{const _0x176de9=Array['from'](_0x81be1c['getRanges']())['map'](_0x56b9fe=>_0x577a36['fromRange'](_0x56b9fe));_0x358087['setSelection'](_0x3d12f5),_0x2d1e2a['commands']['get']('mergeTableCells')['refresh'](),_0x2d1e2a['execute']('mergeTableCells',{'forceDefaultExecution':!0x0});const _0x40ddb5=_0x176de9['filter'](_0x399730=>'$graveyard'!=_0x399730['root']['rootName']);_0x40ddb5['length']>0x0&&_0x358087['setSelection'](_0x40ddb5);for(const _0x3abb42 of _0x176de9)_0x3abb42['detach']();});});for(const _0x407add of['mergeTableCellUp','mergeTableCellDown','mergeTableCellLeft','mergeTableCellRight']){const _0x922166=_0x2d1e2a['commands']['get'](_0x407add);_0x922166['on']('set:isEnabled',(_0x1b5705,_0x1e8c62,_0x5538c7)=>{if(_0x5538c7){const _0x6fe01d=_0x2d1e2a['model']['document']['selection']['getFirstPosition']()['getAncestors']()['find'](_0x38d048=>_0x38d048['is']('element','tableCell'));this['_areMergableCells'](_0x922166['value'],_0x6fe01d)||(_0x1b5705['return']=!0x1,_0x1b5705['stop']());}},{'priority':'low'});}}['_areSelectedCellsMergable'](){const _0x49d59a=this['editor']['commands']['get']('mergeTableCells'),_0x330a61=this['editor']['plugins']['get']('TableUtils');if(!_0x49d59a['isEnabled'])return!0x1;const _0xfed99d=_0x330a61['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);for(const _0x519a39 of _0xfed99d)for(const _0xde8d24 of _0xfed99d)if(_0x519a39!=_0xde8d24&&!this['_areMergableCells'](_0x519a39,_0xde8d24))return!0x1;return!0x0;}['_areMergableCells'](_0x45bf12,_0x4bff06){const _0x3bc995=this['editor']['plugins']['get']('TrackChangesEditing'),_0x20f035=this['editor']['model']['createRangeOn'](_0x45bf12),_0x4839e9=this['editor']['model']['createRangeOn'](_0x4bff06),_0x464209=new Set(),_0x165e48=new Set();for(const _0x2f556b of _0x3bc995['getSuggestions']())if(('insertion'==_0x2f556b['type']||'deletion'==_0x2f556b['type']||'mergeTableCells'==_0x2f556b['subType'])&&_0x2f556b['isInContent']){for(const _0x1e9d16 of _0x2f556b['getRanges']())_0x1e9d16['containsRange'](_0x20f035,!0x0)&&_0x464209['add'](_0x2f556b['type']+':'+_0x2f556b['author']['id']),_0x1e9d16['containsRange'](_0x4839e9,!0x0)&&_0x165e48['add'](_0x2f556b['type']+':'+_0x2f556b['author']['id']);}if(_0x464209['size']!=_0x165e48['size'])return!0x1;for(const _0x116973 of _0x464209)if(!_0x165e48['has'](_0x116973))return!0x1;return!0x0;}}class At extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x5a07ec=this['editor'];if(!_0x5a07ec['plugins']['has']('TableEditing'))return;const _0x17c9ae=_0x5a07ec['locale'],_0x2b7bd5=_0x5a07ec['plugins']['get']('TrackChangesEditing');_0x2b7bd5['_enableDefaultAttributesIntegration']('setTableRowHeader',[],['headingRows']),_0x2b7bd5['_enableDefaultAttributesIntegration']('setTableColumnHeader',[],['headingColumns']),_0x2b7bd5['_descriptionFactory']['registerAttributeLabel']('headingRows',o(_0x17c9ae,'FORMAT_HEADER_ROW')),_0x2b7bd5['_descriptionFactory']['registerAttributeLabel']('headingColumns',o(_0x17c9ae,'FORMAT_HEADER_COLUMN')),this['_handleLegacySuggestions']();}['_handleLegacySuggestions'](){const _0x58ce25=this['editor']['plugins']['get']('TrackChangesEditing'),_0x90dda7=this['editor']['plugins']['get']('TableUtils'),_0x5a1f20=this['editor']['plugins']['get'](jt)['_acceptFormatSuggestionCallbackFactory']();function _0x45a467({showActiveMarker:_0x5f01b7=!0x0,setDataAttribute:_0x4b13d5=!0x0}={}){return(_0x21b89d,_0x47a74d,_0x588089)=>{const {type:_0x5378ae,id:_0x40f2be}=_0x58ce25['_splitMarkerName'](_0x47a74d['markerName']),_0x3df115=_0x58ce25['getSuggestion'](_0x40f2be),_0x153bd0=_0x3df115['data'];if('formatBlock'!=_0x3df115['type']||!_0x153bd0||'setTableColumnHeader'!=_0x153bd0['commandName'])return;if(_0x47a74d['item'])return void _0x21b89d['stop']();if(!_0x588089['consumable']['consume'](_0x47a74d['markerRange'],_0x21b89d['name']))return;const _0x20ee4c=_0x47a74d['markerRange']['start']['nodeAfter'],_0x1c2964=_0x47a74d['markerRange']['end']['nodeBefore'],_0xe187ba=_0x20ee4c['parent']['parent'],{column:_0x5cf514}=_0x90dda7['getCellLocation'](_0x20ee4c),{column:_0x3041f7}=_0x90dda7['getCellLocation'](_0x1c2964);for(let _0x435c09=_0x5cf514;_0x435c09<=_0x3041f7;_0x435c09++){const _0x2fa6df=_0x90dda7['createTableWalker'](_0xe187ba,{'column':_0x435c09,'includeAllSlots':!0x1});for(const _0x5a721a of _0x2fa6df){const _0x490eeb=_0x5a721a['cell'],_0x40aef0=_0x588089['mapper']['toViewElement'](_0x490eeb);_0x588089['writer']['addClass']('ck-suggestion-marker-'+_0x5378ae,_0x40aef0),_0x4b13d5&&_0x588089['writer']['setAttribute']('data-suggestion',_0x40f2be,_0x40aef0),_0x588089['mapper']['bindElementToMarker'](_0x40aef0,_0x47a74d['markerName']),_0x5f01b7&&(_0x58ce25['activeMarkers']['includes'](_0x47a74d['markerName'])?_0x588089['writer']['addClass']('ck-suggestion-marker--active',_0x40aef0):_0x588089['writer']['removeClass']('ck-suggestion-marker--active',_0x40aef0));}}};}_0x58ce25['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableRowHeader','accept',_0x5a1f20),_0x58ce25['_suggestionFactory']['registerCustomCallback']('formatBlock','setTableColumnHeader','accept',_0x5a1f20),this['editor']['editing']['downcastDispatcher']['on']('addMarker:suggestion',_0x45a467(),{'priority':'highest'}),this['editor']['data']['downcastDispatcher']['on']('addMarker:suggestion',(_0x147e06,_0x1c255e,_0xe286d3)=>{_0xe286d3['options']['showSuggestionHighlights']&&_0x45a467({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x147e06,_0x1c255e,_0xe286d3);},{'priority':'highest'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:suggestion',(_0x44c69e,_0x396329,_0x4d2865)=>{const {type:_0x2289c7,id:_0x30e6e1}=_0x58ce25['_splitMarkerName'](_0x396329['markerName']),_0x47f712=_0x58ce25['getSuggestion'](_0x30e6e1),_0xc1e3d4=_0x47f712['data'];if('formatBlock'!=_0x47f712['type']||!_0xc1e3d4||'setTableColumnHeader'!=_0xc1e3d4['commandName'])return;const _0x321d38=_0x4d2865['mapper']['markerNameToElements'](_0x396329['markerName']);if(_0x321d38){for(const _0xae1df0 of _0x321d38)_0x4d2865['writer']['removeClass']('ck-suggestion-marker-'+_0x2289c7,_0xae1df0),_0x4d2865['writer']['removeClass']('ck-suggestion-marker--active',_0xae1df0),_0x4d2865['writer']['removeAttribute']('data-suggestion',_0xae1df0),_0x4d2865['mapper']['unbindElementFromMarkerName'](_0xae1df0,_0x396329['markerName']);}},{'priority':'highest'}),this['_registerLegacyDescription']();}['_registerLegacyDescription'](){const _0x4f5c6c=this['editor'],_0x42cf9b=_0x4f5c6c['locale'];function _0x42c5c8(_0x3507d2){return{'type':'format','content':o(_0x42cf9b,'*Format:*\x20%0',_0x3507d2)};}_0x4f5c6c['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['registerDescriptionCallback'](_0x34c49d=>{if('formatBlock'!=_0x34c49d['type'])return;const {data:_0x3ce002}=_0x34c49d;if(_0x3ce002){if('setTableRowHeader'==_0x3ce002['commandName']){const _0x4e2246=_0x3ce002['commandParams'][0x0]['forceValue'];return _0x42c5c8(o(_0x42cf9b,_0x4e2246?'FORMAT_HEADER_ROW':'FORMAT_REGULAR_ROW'));}if('setTableColumnHeader'==_0x3ce002['commandName']){const _0x36db98=_0x3ce002['commandParams'][0x0]['forceValue'];return _0x42c5c8(o(_0x42cf9b,_0x36db98?'FORMAT_HEADER_COLUMN':'FORMAT_REGULAR_COLUMN'));}}});}}const ge=['tableCellBorderWidth','tableCellBorderColor','tableCellBorderStyle','tableCellHorizontalAlignment','tableCellVerticalAlignment','tableCellBackgroundColor','tableCellPadding'],Ce=Object['fromEntries'](ge['map'](_0x44bd49=>[_0x44bd49,null]));class It extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x4a8200=this['editor'];if(!_0x4a8200['plugins']['has']('TableClipboard'))return;const _0x594ea7=_0x4a8200['plugins']['get']('TrackChangesEditing'),_0x576e3c=_0x4a8200['plugins']['get']('TableUtils'),_0xb8faf7=_0x4a8200['plugins']['get'](jt),_0x315c2f=_0x4a8200['plugins']['get']('TableClipboard');_0xb8faf7['_tablePostFixingSubtypes']['push']('tablePasteRow','tablePasteColumn'),_0x4a8200['model']['schema']['register']('tableCellSuggestion',{'allowIn':'tableCell','allowContentOf':'tableCell','isLimit':!0x0}),_0x4a8200['conversion']['elementToElement']({'model':'tableCellSuggestion','view':'suggestion-td'});let _0x1732f1=null;_0x4a8200['model']['on']('insertContent',(_0x16ec12,_0x182e0a)=>{const [_0x2ad14f,_0x4d8308]=_0x182e0a,_0x2cd416=_0x182e0a[_0x182e0a['length']-0x1];_0x2cd416&&_0x2cd416['forceDefaultExecution']||_0x594ea7['_isForcedDefaultExecutionBlock']||this['editor']['commands']['get']('trackChanges')['value']&&function(_0x33b688,_0xa940a6,_0x2eef5b,_0x10e824,_0x5882d5){if(_0xa940a6&&!_0xa940a6['is']('documentSelection'))return!0x1;const _0x35291a=_0x5882d5['getTableIfOnlyTableInContent'](_0x33b688,_0x2eef5b);if(!_0x35291a||!he(_0x35291a,void 0x0,_0x10e824))return!0x1;const _0x183a57=_0x10e824['getSelectionAffectedTableCells'](_0x2eef5b['document']['selection']);if(!_0x183a57['length'])return!0x1;const _0x4e360b=_0x183a57[0x0]['findAncestor']('table'),_0x5bd736=_0x10e824['getRowIndexes'](_0x183a57),_0x5dde83=_0x10e824['getColumnIndexes'](_0x183a57),_0x390bf4={'startRow':_0x5bd736['first'],'endRow':_0x5bd736['last'],'startColumn':_0x5dde83['first'],'endColumn':_0x5dde83['last']};return 0x1==_0x183a57['length']&&(_0x390bf4['endRow']+=_0x10e824['getRows'](_0x35291a)-0x1,_0x390bf4['endColumn']+=_0x10e824['getColumns'](_0x35291a)-0x1),he(_0x4e360b,_0x390bf4,_0x10e824);}(_0x2ad14f,_0x4d8308,_0x4a8200['model'],_0x576e3c,_0x315c2f)&&(_0x16ec12['stop'](),_0x1732f1={'cells':[],'insertionRanges':[],'deletionRanges':[],'rowInsertionRanges':[],'rowInsertionIndexes':[],'columnInsertionRanges':[],'columnInsertionIndexes':[]},_0x4a8200['model']['change'](()=>{_0x4a8200['model']['insertContent'](_0x182e0a[0x0],_0x182e0a[0x1],_0x182e0a[0x2],{'forceDefaultExecution':!0x0});const _0x585b6b=_0x1702d8(),{rowInsertionRanges:_0x2288bc,columnInsertionRanges:_0x6b3d29,insertionRanges:_0x3bfa54,deletionRanges:_0x1063d,cells:_0x54b8c7}=_0x1732f1;_0x2288bc['length']&&_0x594ea7['markMultiRangeInsertion'](_0x2288bc,'tablePasteRow',{'tablePasteChainId':_0x585b6b}),_0x6b3d29['length']&&_0x594ea7['markMultiRangeInsertion'](_0x6b3d29,'tablePasteColumn',{'tablePasteChainId':_0x585b6b}),_0x3bfa54['length']&&(_0x594ea7['markMultiRangeInsertion'](_0x3bfa54,'tablePaste',{'tablePasteChainId':_0x585b6b,'skipNestingCheck':!0x0}),_0x3bfa54['forEach'](_0x2ad842=>{var _0x1af46a;return null===(_0x1af46a=_0x2ad842['detach'])||void 0x0===_0x1af46a?void 0x0:_0x1af46a['call'](_0x2ad842);})),_0x1063d['length']&&(_0x594ea7['markMultiRangeDeletion'](_0x1063d,'tablePaste',{'tablePasteChainId':_0x585b6b,'skipNestingCheck':!0x0}),_0x1063d['forEach'](_0x5af094=>{var _0x48fb07;return null===(_0x48fb07=_0x5af094['detach'])||void 0x0===_0x48fb07?void 0x0:_0x48fb07['call'](_0x5af094);}));const _0x5605e6=_0x594ea7['markMultiRangeBlockFormat'](_0x54b8c7['map'](({element:_0x886834})=>_0x886834),{'formatGroupId':_0x1702d8()},[],'tablePasteCell',{'tablePasteChainId':_0x585b6b});if(_0x5605e6){const _0x439153=_0x5605e6['getMarkers'](),_0x999d42=[];for(const {element:_0x1e2a85,attributes:_0x2e125d}of _0x54b8c7){if(!_0x2e125d)continue;const _0x146282=_0x4a8200['model']['createRangeOn'](_0x1e2a85),_0x20e3d4=_0x439153['find'](_0x4fee8d=>_0x4fee8d['getRange']()['isEqual'](_0x146282));_0x20e3d4&&_0x999d42['push']([_0x20e3d4['name'],_0x2e125d]);}_0x999d42['length']&&_0x5605e6['setAttribute']('markerAttributes',Object['fromEntries'](_0x999d42));}_0x1732f1=null;}));},{'priority':_0x3cf857['high']+0xa}),_0x4a8200['plugins']['get']('TableClipboard')['on']('_replaceTableSlotCell',(_0x3a8738,_0x4cc421)=>{const [_0x4b616a,_0xd86f38,,_0x2c848d]=_0x4cc421;if(!_0x1732f1)return;_0x3a8738['stop']();const _0x17e804=_0x4b616a['cell'],_0x3d3628=_0xd86f38,_0x3deb21=Pe(_0x17e804),_0x3bc702=Pe(_0x3d3628);_0x3a8738['return']=_0x17e804;let _0x473003=null,_0x38efe5=null;if(_0x3bc702||_0x3deb21){if(_0x3deb21&&!_0x3bc702){_0x2c848d['remove'](_0x17e804['getChild'](0x0));for(const _0x4afa78 of Array['from'](_0x3d3628['getChildren']()))_0x2c848d['insert'](_0x4afa78,_0x17e804,'end');const _0x5b4d2e=_0x1732f1['rowInsertionIndexes']['includes'](_0x4b616a['row']),_0x30db51=_0x1732f1['columnInsertionIndexes']['includes'](_0x4b616a['column']);_0x5b4d2e||_0x30db51||(_0x473003=_0x577a36['fromRange'](_0x2c848d['createRangeIn'](_0x17e804)));}else _0x3bc702&&!_0x3deb21&&(_0x38efe5=_0x2c848d['createRangeIn'](_0x17e804));}else{const _0x116e70=_0x2c848d['createElement']('tableCellSuggestion'),_0x1acc1a=_0x2c848d['createElement']('tableCellSuggestion');_0x2c848d['wrap'](_0x2c848d['createRangeIn'](_0x17e804),_0x1acc1a),_0x2c848d['insert'](_0x116e70,_0x17e804,0x0);for(const _0x551fff of Array['from'](_0x3d3628['getChildren']()))_0x2c848d['insert'](_0x551fff,_0x116e70,'end');_0x473003=_0x577a36['fromRange'](_0x2c848d['createRangeOn'](_0x116e70)),_0x38efe5=_0x577a36['fromRange'](_0x2c848d['createRangeOn'](_0x1acc1a));}const _0x4f59a9=Array['from'](_0x3d3628['getAttributes']())['filter'](([_0x1020e7])=>ge['includes'](_0x1020e7));_0x1732f1['cells']['push']({'element':_0x17e804,'attributes':_0x4f59a9['length']?Object['fromEntries'](_0x4f59a9):null}),_0x473003&&_0x1732f1['insertionRanges']['push'](_0x473003),_0x38efe5&&_0x1732f1['deletionRanges']['push'](_0x38efe5);},{'priority':'high'}),_0x576e3c['on']('insertColumns',(_0x372a75,_0x3f2041)=>{const [_0x19caf3,_0x430051={}]=_0x3f2041;if(!_0x1732f1)return;const _0x2fb75f=_0x430051['at']||0x0,_0x469ded=_0x430051['columns']||0x1;_0x1732f1['columnInsertionIndexes']=new Array(_0x469ded)['fill'](_0x2fb75f)['map']((_0x326cd2,_0x28c83c)=>_0x326cd2+_0x28c83c);for(const {cell:_0x5933a1}of _0x576e3c['createTableWalker'](_0x19caf3,{'startColumn':_0x2fb75f,'endColumn':_0x2fb75f+_0x469ded-0x1}))_0x1732f1['columnInsertionRanges']['push'](_0x4a8200['model']['createRangeOn'](_0x5933a1));},{'priority':'low'}),_0x576e3c['on']('insertRows',(_0x38673d,_0x33ba0f)=>{const [_0x502057,_0x368da5={}]=_0x33ba0f;if(!_0x1732f1)return;const _0x1f15f5=_0x368da5['at']||0x0,_0x21a35b=_0x368da5['rows']||0x1;_0x1732f1['rowInsertionIndexes']=new Array(_0x21a35b)['fill'](_0x1f15f5)['map']((_0x2d7d90,_0x786eaa)=>_0x2d7d90+_0x786eaa);for(const {cell:_0x2df773}of _0x576e3c['createTableWalker'](_0x502057,{'startRow':_0x1f15f5,'endRow':_0x1f15f5+_0x21a35b-0x1}))_0x1732f1['rowInsertionRanges']['push'](_0x4a8200['model']['createRangeOn'](_0x2df773));},{'priority':'low'}),_0x594ea7['_descriptionFactory']['registerDescriptionCallback'](_0x29737e=>{if(_0x29737e['subType']&&_0x29737e['subType']['startsWith']('tablePaste'))return _0x29737e['previous']?{}:{'type':'insertion','content':o(_0x4a8200['locale'],'*Replace\x20table\x20cells*')};});const _0x5465a6=()=>!0x1;for(const _0xc87e8c of['tablePaste','tablePasteColumn','tablePasteRow','tablePasteCell'])_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion',_0xc87e8c,'join',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('deletion',_0xc87e8c,'join',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock',_0xc87e8c,'join',_0x5465a6);_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','discard',_0x5465a6),_0x594ea7['_suggestionFactory']['registerCustomCallback']('formatBlock','tablePasteCell','accept',(_0x5a304a,_0x19aaf5,_0x48df79)=>{const _0x320d02=_0x5a304a['map'](_0x490961=>_0x490961['getContainedElement']())['filter'](_0x176b02=>_0x176b02),_0x175ad6=new Map(_0x320d02['map'](_0x4aaaea=>[_0x4aaaea,null]));if(_0x1732f1){for(const {element:_0x4fd86a,attributes:_0x268d12}of _0x1732f1['cells'])_0x268d12&&_0x175ad6['set'](_0x4fd86a,_0x268d12);}else{if(_0x48df79&&_0x48df79['markerAttributes'])for(const [_0xdcb20f,_0x2c7290]of Object['entries'](_0x48df79['markerAttributes'])){const _0x5dae9d=_0x4a8200['model']['markers']['get'](_0xdcb20f),_0xdcefb2=_0x5dae9d?_0x5dae9d['getRange']()['getContainedElement']():null;_0xdcefb2&&_0x175ad6['set'](_0xdcefb2,_0x2c7290);}}_0x4a8200['model']['change'](_0xe230a4=>{for(const [_0x21724d,_0x2ef428]of _0x175ad6)_0xe230a4['setAttributes']({...Ce,..._0x2ef428},_0x21724d);});});const _0x217d07=(_0x332283,_0x4e469a)=>{_0x594ea7['_suggestionFactory']['registerCustomCallback'](_0x332283,'tablePaste',_0x4e469a,(_0x2d0082,_0x246c72,_0x51daa6)=>{_0x4a8200['model']['change'](_0x50449b=>{const _0x39b5d3=[];for(const _0xdda8d1 of _0x2d0082){const _0x4829bb=_0xdda8d1['start']['nodeAfter'];_0x4829bb['is']('element','tableCellSuggestion')&&_0x39b5d3['push'](_0x4829bb);}_0x594ea7['_suggestionFactory']['getSuggestionCallback'](_0x332283,null,_0x4e469a)(_0x2d0082,_0x246c72,_0x51daa6);for(const _0x3a0710 of _0x39b5d3)'$graveyard'!=_0x3a0710['root']['rootName']&&_0x50449b['unwrap'](_0x3a0710);});});};_0x217d07('insertion','accept'),_0x217d07('insertion','discard'),_0x217d07('deletion','accept'),_0x217d07('deletion','discard'),_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteRow','discard',_0x5e29b3=>{const _0x28f6d2=_0x5e29b3['map'](_0x42f39f=>_0x42f39f['getContainedElement']()),_0x132664=_0x28f6d2[0x0]['findAncestor']('table'),{minRow:_0x2131c9,maxRow:_0x27eca4}=_0xb8faf7['_getCoordsForCells'](_0x28f6d2);_0x576e3c['removeRows'](_0x132664,{'at':_0x2131c9,'rows':_0x27eca4-_0x2131c9+0x1});}),_0x594ea7['_suggestionFactory']['registerCustomCallback']('insertion','tablePasteColumn','discard',_0x5e2b15=>{const _0x1449e4=_0x5e2b15['map'](_0x13eea5=>_0x13eea5['getContainedElement']()),_0x148ff3=_0x1449e4[0x0]['findAncestor']('table'),{minColumn:_0x4a4763,maxColumn:_0x4a9f12}=_0xb8faf7['_getCoordsForCells'](_0x1449e4);_0x576e3c['removeColumns'](_0x148ff3,{'at':_0x4a4763,'columns':_0x4a9f12-_0x4a4763+0x1});});const _0xeb26ac=(_0x2e091d,_0x3eb5ca)=>{if(!_0x3eb5ca['subType']||!_0x3eb5ca['subType']['startsWith']('tablePaste'))return;const _0x204605=_0x3eb5ca['attributes']['tablePasteChainId'],_0x59ddbb=_0x594ea7['getSuggestions']()['filter'](_0x51ca98=>_0x51ca98['isInContent']&&_0x51ca98['attributes']&&_0x51ca98['attributes']['tablePasteChainId']==_0x204605);_0x59ddbb['length']&&_0x3eb5ca['getAllAdjacentSuggestions']()['length']!=_0x59ddbb['length']&&_0x59ddbb['reduce']((_0x4dbe2c,_0x1ea8d0)=>(_0x4dbe2c['next']=_0x1ea8d0,_0x1ea8d0['previous']=_0x4dbe2c,_0x1ea8d0));};function _0x57f8cc(_0x9738a2,_0x9d380f=!0x0){const {id:_0x5d663d}=_0x594ea7['_splitMarkerName'](_0x9738a2['markerName']),_0x307306=['ck-suggestion-marker','ck-suggestion-marker-insertion'],_0x35d9da=_0x594ea7['activeMarkers']['includes'](_0x9738a2['markerName']);return _0x35d9da&&_0x307306['push']('ck-suggestion-marker--active'),{'classes':_0x307306,'attributes':{'data-suggestion':_0x5d663d},'priority':_0x35d9da&&_0x9d380f?0xbc2:0xbb8};}_0x594ea7['on']('suggestionLoaded',_0xeb26ac,{'priority':'high'}),_0x594ea7['on']('suggestionUnloaded',_0xeb26ac,{'priority':'high'}),_0x4a8200['model']['document']['registerPostFixer'](()=>{let _0x3fbf43=!0x1;const _0x46b446=Array['from'](_0x4a8200['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x43c52e,data:_0x3d4ddc}of _0x46b446){const {group:_0x50a990,type:_0x423051,id:_0x2bb371}=_0x594ea7['_splitMarkerName'](_0x43c52e);if('suggestion'!=_0x50a990||'deletion'!=_0x423051||_0x3d4ddc['oldRange'])continue;if(!_0x594ea7['hasSuggestion'](_0x2bb371))continue;const _0x4aedd1=_0x594ea7['getSuggestion'](_0x2bb371)['getRanges'](),_0x22f2f0=_0x4a8200['plugins']['get']('Users')['me'];for(const _0x39cfc3 of _0x594ea7['getSuggestions']()){if(!_0x39cfc3['isInContent']||_0x39cfc3['author']!=_0x22f2f0)continue;if('formatBlock'!=_0x39cfc3['type']||'tablePasteCell'!=_0x39cfc3['subType'])continue;if(_0x39cfc3['getRanges']()['every'](_0x1d8dca=>_0x4aedd1['some'](_0x2ce9d0=>_0x2ce9d0['containsRange'](_0x1d8dca,!0x0)))){for(const _0x31b965 of _0x39cfc3['getAllAdjacentSuggestions']())_0x31b965['isInContent']&&(_0x31b965['discard'](),_0x3fbf43=!0x0);}}}return _0x3fbf43;}),_0x4a8200['model']['document']['registerPostFixer'](_0x3c2526=>{const _0x5f09c4=_0x4a8200['commands']['get']('redo');if(!_0x5f09c4||!_0x5f09c4['_createdBatches']['has'](_0x3c2526['batch']))return!0x1;let _0x4eeca5=!0x1;const _0x5c3d54=_0x4a8200['plugins']['get']('Users')['me'],_0x54b280=_0x4a8200['model']['document']['differ']['getChanges'](),_0x1f653f=Array['from'](_0x4a8200['model']['document']['differ']['getChangedMarkers']())['filter'](({name:_0x503a8a,data:_0x52386c})=>{const {group:_0x51271d,subType:_0x5a635c,authorId:_0x4e8521}=_0x594ea7['_splitMarkerName'](_0x503a8a);return'suggestion'==_0x51271d&&'tablePaste'==_0x5a635c&&_0x4e8521==_0x5c3d54['id']&&!_0x52386c['oldRange'];});for(const _0x142d53 of _0x54b280){if('insert'!=_0x142d53['type']||'tableCellSuggestion'!=_0x142d53['name']||0x1!=_0x142d53['length'])continue;const _0x21cafa=_0x3c2526['createRange'](_0x142d53['position'],_0x142d53['position']['getShiftedBy'](0x1));if(!_0x1f653f['find'](({data:_0x1d80b5})=>_0x1d80b5['newRange']['isEqual'](_0x21cafa))){for(const {name:_0x5ea9bd,data:_0x44063d}of _0x1f653f)if(_0x21cafa['containsRange'](_0x44063d['newRange'])){_0x3c2526['updateMarker'](_0x5ea9bd,{'range':_0x21cafa}),_0x4eeca5=!0x0;break;}}}return _0x4eeca5;}),_0x4a8200['model']['document']['registerPostFixer'](_0x161af1=>{let _0x103ebe=!0x1;const _0x4ebb21=_0x4a8200['plugins']['get']('Users')['me'],_0x425d2b=_0x594ea7['getSuggestions']()['filter'](_0x16e482=>_0x16e482['isInContent']&&_0x16e482['author']==_0x4ebb21),_0x3f2d01=new Set(),_0x2df300=new Set();for(const _0x2de386 of _0x425d2b)if('tablePaste'==_0x2de386['subType'])for(const _0x53d9ff of _0x2de386['getMarkers']()){const _0x5406fe=_0x53d9ff['getRange']()['getContainedElement']();if(_0x5406fe){if(_0x5406fe['is']('element','tableCellSuggestion')&&Pe(_0x5406fe)){_0x2de386['removeMarker'](_0x53d9ff['name']),_0x3f2d01['add'](_0x5406fe),_0x103ebe=!0x0;const _0x448c60=_0x5406fe['nextSibling'],_0x5d34eb=_0x5406fe['previousSibling'],_0x488db8=_0x448c60&&_0x448c60['is']('element','tableCellSuggestion'),_0x26ede2=_0x5d34eb&&_0x5d34eb['is']('element','tableCellSuggestion');_0x488db8&&!_0x3f2d01['has'](_0x448c60)&&_0x2df300['add'](_0x448c60),_0x26ede2&&!_0x3f2d01['has'](_0x5d34eb)&&_0x2df300['add'](_0x5d34eb);}else _0x5406fe['is']('element','paragraph')&&_0x5406fe['isEmpty']&&(_0x2de386['removeMarker'](_0x53d9ff['name']),_0x103ebe=!0x0);}}else{if('tablePasteCell'==_0x2de386['subType']){if(!_0x2de386['attributes']||!_0x2de386['attributes']['tablePasteChainId'])continue;const _0x5c4f75=_0x2de386['attributes']['markerAttributes'];if(_0x5c4f75&&Object['keys'](_0x5c4f75)['length'])continue;const _0x22b7b3=_0x2de386['attributes']['tablePasteChainId'];let _0x5bb3ec=!0x0,_0x5ee162=!0x0;for(const _0x278955 of _0x425d2b)if(_0x278955['subType']&&_0x278955['subType']['startsWith']('tablePaste')){if(!_0x278955['attributes']['tablePasteChainId']){_0x5ee162=!0x1;break;}if(_0x278955['id']!=_0x2de386['id']&&_0x278955['attributes']['tablePasteChainId']==_0x22b7b3){_0x5bb3ec=!0x1;break;}}_0x5ee162&&_0x5bb3ec&&(_0x2de386['removeMarkers'](),_0x103ebe=!0x0);}}for(const _0x1ef57f of _0x3f2d01)_0x161af1['remove'](_0x1ef57f);for(const _0x393aa1 of _0x2df300)_0x161af1['unwrap'](_0x393aa1);return _0x103ebe;}),_0x4a8200['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x352ea5,_0x8b689b)=>_0x57f8cc(_0x352ea5),'converterPriority':'high'}),_0x4a8200['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion:formatBlock:tablePasteCell','view':(_0x466e9f,_0x1c0f66)=>_0x1c0f66['options']['showSuggestionHighlights']?_0x57f8cc(_0x466e9f,!0x1):null,'converterPriority':'high'});const _0x30e569=_0x4a8200['editing']['view'];this['listenTo'](_0x30e569['document'],'clipboardOutput',(_0x5a1a0a,_0x59198c)=>{const _0xab5aa4=[];for(const _0x361a54 of _0x30e569['createRangeIn'](_0x59198c['content'])['getItems']())_0x361a54['is']('element','suggestion-td')&&_0xab5aa4['push'](_0x361a54);_0x30e569['change'](_0x3ba0bb=>{for(const _0x367362 of _0xab5aa4)_0x3ba0bb['move'](_0x3ba0bb['createRangeIn'](_0x367362),_0x3ba0bb['createPositionBefore'](_0x367362)),_0x3ba0bb['remove'](_0x367362);});});}}function Pe(_0x5bdf0b){if(_0x5bdf0b['isEmpty'])return!0x0;const _0xd6aae9=_0x5bdf0b['getChild'](0x0);return _0xd6aae9['is']('element','paragraph')&&_0xd6aae9['isEmpty'];}function he(_0x3fc6c5,_0x3083af={},_0xf13bbd){for(const {isAnchor:_0x5f3f02,cellHeight:_0x3e44fe,cellWidth:_0x4b2bfb}of _0xf13bbd['createTableWalker'](_0x3fc6c5,{'includeAllSlots':!0x0,..._0x3083af}))if(!_0x5f3f02||0x1!=_0x3e44fe||0x1!=_0x4b2bfb)return!0x1;return!0x0;}class vt extends _0x26e52a{['afterInit'](){if(!this['editor']['plugins']['has']('TableColumnResizeEditing'))return;const _0x5b857e=this['editor']['plugins']['get']('TrackChangesEditing');_0x5b857e['enableCommand']('resizeTableWidth',this['handleResizeTableWidthCommand']['bind'](this)),_0x5b857e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','accept',_0x5b857e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x5b857e['_suggestionFactory']['registerCustomCallback']('formatBlock','resizeTable','discard',_0x5b857e['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'accept')),_0x5b857e['_descriptionFactory']['registerDescriptionCallback'](this['handleSuggestionDescription']['bind'](this));}['handleResizeTableWidthCommand'](_0x4b3da1,_0x3dcd21){const _0x1a8d92=this['editor']['plugins']['get']('TrackChangesEditing'),_0xa677cf=this['editor']['plugins']['get']('TableColumnResizeEditing'),_0x14d6c8=_0x3dcd21['table']||this['editor']['model']['document']['selection']['getSelectedElement']();this['editor']['model']['change'](()=>{const _0x8b5574=_0xa677cf['getColumnGroupElement'](_0x14d6c8);let _0x4b1683=_0x8b5574?_0xa677cf['getTableColumnsWidths'](_0x8b5574):null,_0x48ca62=_0x14d6c8['getAttribute']('tableWidth')||null;const _0xf04b82=_0x3dcd21['tableWidth']||_0x48ca62,_0x47c4f1=_0x3dcd21['columnWidths']||_0x4b1683,_0x283cd1=this['editor']['plugins']['get']('Users')['me'];for(const _0x3e253e of _0x1a8d92['getSuggestions']()){const _0x4b3d98=_0x3e253e['getContainedElement']();if('resizeTable'===_0x3e253e['subType']&&_0x4b3d98===_0x14d6c8){_0x3e253e['author']!==_0x283cd1&&_0x3e253e['discard']();const _0x418b53=_0x3e253e['data']['commandParams'];_0x48ca62=_0x418b53[0x0]['tableWidth'],_0x4b1683=_0x418b53[0x0]['columnWidths'];break;}}_0x4b3da1({'table':_0x14d6c8,'tableWidth':_0xf04b82,'columnWidths':_0x47c4f1}),_0x1a8d92['markBlockFormat'](_0x14d6c8,{'commandName':'resizeTableWidth','commandParams':[{'tableWidth':_0x48ca62,'columnWidths':_0x4b1683}],'formatGroupId':'resizeTable'},[],'resizeTable');});}['handleSuggestionDescription'](_0x50e8cb){if('formatBlock'!=_0x50e8cb['type']&&'formatInline'!=_0x50e8cb['type'])return;const {data:_0x41b0b2}=_0x50e8cb;if(_0x41b0b2&&'resizeTable'===_0x41b0b2['formatGroupId']){const _0x3200c7='*Format:*\x20resize\x20table';return{'type':'format','content':o(this['editor']['locale'],_0x3200c7)};}}}class _t extends _0x26e52a{['afterInit'](){const _0x453924=this['editor'];_0x453924['plugins']['has']('Template')&&_0x453924['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTemplate');}}class Ct extends _0x26e52a{['afterInit'](){const _0x426d82=this['editor'];if(!_0x426d82['commands']['get']('insertTableOfContents'))return;_0x426d82['plugins']['get']('TrackChangesEditing')['enableCommand']('insertTableOfContents');const _0x170bff=_0x426d82['plugins']['get']('TrackChangesEditing'),_0x5dbf9b=_0x426d82['locale'];_0x170bff['_descriptionFactory']['registerElementLabel']('tableOfContents',_0x1a8757=>o(_0x5dbf9b,'ELEMENT_TABLE_OF_CONTENTS',_0x1a8757));}}class Dt extends _0x26e52a{['afterInit'](){const _0x423f27=this['editor'];if(!_0x423f27['plugins']['has']('Title'))return;const _0x4df01a=_0x423f27['plugins']['get']('TrackChangesEditing');_0x4df01a['_descriptionFactory']['registerElementLabel']('title-content',()=>o(_0x423f27['locale'],'ELEMENT_TITLE')),_0x423f27['model']['document']['registerPostFixer'](_0x20e6c2=>{let _0x3445d7=!0x1;const _0xd577c2=Array['from'](_0x423f27['model']['document']['differ']['getChangedMarkers']());for(const {name:_0x4518d7,data:_0x2fd742}of _0xd577c2){const {group:_0x252fb9}=_0x4df01a['_splitMarkerName'](_0x4518d7);if('suggestion'!==_0x252fb9||!_0x2fd742['newRange'])continue;const _0x5047eb=_0x2fd742['newRange'],_0xc00e73=_0x5047eb['end']['nodeBefore'];if(!_0xc00e73||!_0xc00e73['is']('element','title-content'))continue;if(!_0x5047eb['start']['isTouching'](_0x5047eb['end']))continue;const _0x1a63bc=_0x423f27['model']['schema']['getNearestSelectionRange'](_0x5047eb['end'],'forward');if(_0x1a63bc&&_0x1a63bc['isCollapsed']){const _0x54b0bb=_0x20e6c2['createRange'](_0x5047eb['start'],_0x1a63bc['start']);_0x54b0bb['isEqual'](_0x5047eb)||(_0x20e6c2['updateMarker'](_0x4518d7,{'range':_0x54b0bb}),_0x3445d7=!0x0);}_0x3445d7||(_0x20e6c2['removeMarker'](_0x4518d7),_0x3445d7=!0x0);}return _0x3445d7;});}}class Nt extends _0x26e52a{['afterInit'](){const _0x132084=this['editor'],_0x567abf=_0x132084['plugins']['get']('TrackChangesEditing');_0x132084['plugins']['has']('UndoEditing')&&(_0x567abf['enableCommand']('undo'),_0x567abf['enableCommand']('redo'));}}class Mt extends _0x26e52a{static get['requires'](){return[jt];}['afterInit'](){const _0x4cc708=this['editor'];if(!_0x4cc708['plugins']['has']('TableCaptionEditing'))return;_0x4cc708['plugins']['get']('TrackChangesEditing')['enableCommand']('toggleTableCaption');}}class $t extends _0x26e52a{static get['pluginName'](){return'TrackChangesTableProperties';}['afterInit'](){const _0x251c2a=this['editor']['plugins']['get']('TrackChangesEditing');if(this['editor']['plugins']['has']('TablePropertiesEditing')){for(const _0x442988 of this['tableProperties'])_0x251c2a['enableCommand'](_0x442988,(_0x429fc7,_0x22585f)=>{const _0x580ee5=this['editor']['model']['document']['selection']['getFirstPosition']()['findAncestor']('table');this['_handlePropertyChange'](_0x442988,[_0x580ee5],this['tableProperties'],'tableProperties',_0x429fc7,_0x22585f);});_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','accept',_0x251c2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','discard',(_0x1a82a3,_0x24af84)=>this['handleDiscardAction'](this['tableProperties'],_0x1a82a3,_0x24af84)),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableProperties','join',()=>!0x1);}if(this['editor']['plugins']['has']('TableCellPropertiesEditing')){for(const _0x5a0e98 of this['tableCellProperties'])_0x251c2a['enableCommand'](_0x5a0e98,(_0x5eed95,_0x25a289)=>{const _0x1c6d57=this['editor']['plugins']['get']('TableUtils')['getSelectionAffectedTableCells'](this['editor']['model']['document']['selection']);this['_handlePropertyChange'](_0x5a0e98,_0x1c6d57,this['tableCellProperties'],'tableCellProperties',_0x5eed95,_0x25a289);});_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','accept',_0x251c2a['_suggestionFactory']['getSuggestionCallback']('formatBlock',null,'discard')),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','discard',(_0x2575bd,_0x26d9c6)=>this['handleDiscardAction'](this['tableCellProperties'],_0x2575bd,_0x26d9c6)),_0x251c2a['_suggestionFactory']['registerCustomCallback']('formatBlock','tableCellProperties','join',()=>!0x1);}_0x251c2a['_descriptionFactory']['registerDescriptionCallback'](_0x2da1b7=>this['handleSuggestionDescription'](_0x2da1b7));}['_handlePropertyChange'](_0x90560f,_0x1f9a6f,_0x84bac3,_0x1f4d15,_0x3561fd,_0x23cfc0){const _0x428905=this['editor']['plugins']['get']('TrackChangesEditing');this['editor']['model']['enqueueChange'](_0x23cfc0['batch'],()=>{for(const _0x527eeb of _0x1f9a6f){if(this['_getSuggestion'](_0x527eeb,_0x1f4d15))_0x3561fd(_0x23cfc0);else{const _0x1b5bfd={};for(const _0x2ac99f of _0x84bac3){const _0xb2ce7d=_0x527eeb['getAttribute'](_0x2ac99f);void 0x0!==_0xb2ce7d&&(_0x1b5bfd[_0x2ac99f]=_0xb2ce7d);}_0x3561fd(_0x23cfc0),_0x428905['markBlockFormat'](_0x527eeb,{'commandParams':[_0x1b5bfd]},[],_0x1f4d15);}}});}['handleDiscardAction'](_0x4e12aa,_0xe57d91,_0xcfee37){const _0x19631c=_0xe57d91[0x0]['start']['nodeAfter'],_0x5e12b4=_0xcfee37['commandParams'][0x0];this['editor']['model']['change'](_0x536cc0=>{for(const _0x76e357 of _0x4e12aa)void 0x0!==_0x5e12b4[_0x76e357]?_0x536cc0['setAttribute'](_0x76e357,_0x5e12b4[_0x76e357],_0x19631c):_0x536cc0['removeAttribute'](_0x76e357,_0x19631c);});}['handleSuggestionDescription'](_0x1b4f27){if(_0x1b4f27['data'])switch(_0x1b4f27['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'](_0x14ac6c,_0x510886){const _0x499430=this['editor']['plugins']['get']('TrackChangesEditing');for(const _0x55d644 of _0x499430['getSuggestions']({'skipNotAttached':!0x0})){const _0x2ec36c=_0x55d644['getContainedElement']();if(_0x55d644['subType']===_0x510886&&_0x2ec36c===_0x14ac6c)return _0x55d644;}return null;}constructor(_0x3d2283){super(_0x3d2283),this['tableProperties']=['tableBorderColor','tableBorderStyle','tableBorderWidth','tableAlignment','tableWidth','tableHeight','tableBackgroundColor'],this['tableCellProperties']=['tableCellBorderColor','tableCellBorderStyle','tableCellBorderWidth','tableCellPadding','tableCellWidth','tableCellHeight','tableCellBackgroundColor','tableCellHorizontalAlignment','tableCellVerticalAlignment'];}}const m='$elementName';class p extends _0x26e52a{static get['requires'](){return['CommentsRepository',_0x4a5edb,_0x52678f,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,Ct,$t,_t,Dt,Nt];}static get['pluginName'](){return'TrackChangesEditing';}['init'](){const _0x1e7675=this['editor'],_0x5a9448=(_0x1dce8f,_0x19b6eb)=>{if('attribute'!=_0x1dce8f)return'ck-suggestion-marker-'+_0x1dce8f;const _0x348101=_0x19b6eb['split']('|')[0x0];return this['_isBlockAttribute'](_0x348101)?'ck-suggestion-marker-formatBlock':'ck-suggestion-marker-formatInline';};_0x1e7675['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'suggestion','view':_0x112a6f=>{const {id:_0x5f3a5b,type:_0x57a9e5,subType:_0x804d33}=this['_splitMarkerName'](_0x112a6f['markerName']),_0x2796f7=['ck-suggestion-marker',_0x5a9448(_0x57a9e5,_0x804d33)];let _0x4c48c7=0xbb8;return this['activeMarkers']['includes'](_0x112a6f['markerName'])&&(_0x2796f7['push']('ck-suggestion-marker--active'),_0x4c48c7=0xbc2),'deletion'==_0x57a9e5&&(_0x4c48c7+=0x5),{'classes':_0x2796f7,'attributes':{'data-suggestion':_0x5f3a5b},'priority':_0x4c48c7};}}),_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x5b01a4=>{_0x5b01a4['on']('addMarker:suggestion',(_0x498326,_0x336e90,_0x18df54)=>{if(!_0x18df54['options']['showSuggestionHighlights'])return;const _0x494ebc=_0x336e90['item'];if(!_0x494ebc)return;const _0x5588c8=_0x18df54['mapper']['toViewElement'](_0x494ebc);_0x1e7675['model']['schema']['isObject'](_0x494ebc)&&_0x5588c8&&!_0x5588c8['getCustomProperty']('widget')&&_0x5588c8['is']('containerElement')&&_0x2b4f44(_0x5588c8,_0x18df54['writer']);},{'priority':'high'});}),_0x1e7675['conversion']['for']('dataDowncast')['markerToHighlight']({'model':'suggestion','view':(_0x428881,_0x199fc9)=>{if(!_0x199fc9['options']['showSuggestionHighlights'])return null;const {type:_0x143371,subType:_0xb42dd6}=this['_splitMarkerName'](_0x428881['markerName']);return{'classes':['ck-suggestion-marker',_0x5a9448(_0x143371,_0xb42dd6)],'priority':0xbb8};}});const _0x19c0f8=({showActiveMarkers:_0x1bd927=!0x0,isAttributeSuggestion:_0x4af1f7=!0x1}={})=>(_0x3a1e2a,_0x5517b4,_0x1e2b26)=>{if(!_0x5517b4['item'])return;const {id:_0x6007c1}=this['_splitMarkerName'](_0x5517b4['markerName']);if(_0x4af1f7){const _0x170fbd=this['_suggestions']['get'](_0x6007c1),_0x2c4445=this['_getAttributeKey'](_0x170fbd);if(!this['_isBlockAttribute'](_0x2c4445))return;}if(_0x5517b4['item']['is']('selection'))return void _0x1e2b26['consumable']['consume'](_0x5517b4['item'],_0x3a1e2a['name']);const _0x1acfdb=_0x1e2b26['mapper']['toViewElement'](_0x5517b4['item']);if(_0x5517b4['item']['is']('element')&&_0x1e7675['model']['schema']['isBlock'](_0x5517b4['item'])&&!_0x1acfdb['getCustomProperty']('addHighlight')){_0x1e2b26['writer']['addClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock'],_0x1acfdb),_0x1e2b26['writer']['setAttribute']('data-suggestion',_0x6007c1,_0x1acfdb),_0x1e2b26['mapper']['bindElementToMarker'](_0x1acfdb,_0x5517b4['markerName']),_0x1bd927&&(this['activeMarkers']['includes'](_0x5517b4['markerName'])?_0x1e2b26['writer']['addClass']('ck-suggestion-marker--active',_0x1acfdb):_0x1e2b26['writer']['removeClass']('ck-suggestion-marker--active',_0x1acfdb));for(const _0x212a0d of _0x1e7675['model']['createRangeIn'](_0x5517b4['item'])['getItems']())_0x1e2b26['consumable']['consume'](_0x212a0d,_0x3a1e2a['name']);_0x1e2b26['consumable']['consume'](_0x5517b4['item'],_0x3a1e2a['name']);}};_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x1aff54=>{_0x1aff54['on']('addMarker:suggestion:formatBlock',(_0xc79419,_0x25ed38,_0x9e7e2c)=>{_0x9e7e2c['options']['showSuggestionHighlights']&&_0x19c0f8({'showActiveMarkers':!0x1})(_0xc79419,_0x25ed38,_0x9e7e2c);},{'priority':'highest'});}),_0x1e7675['conversion']['for']('dataDowncast')['add'](_0x461b33=>{_0x461b33['on']('addMarker:suggestion:attribute',(_0x1740aa,_0x4ba3f7,_0x29b126)=>{_0x29b126['options']['showSuggestionHighlights']&&_0x19c0f8({'showActiveMarkers':!0x1,'isAttributeSuggestion':!0x0})(_0x1740aa,_0x4ba3f7,_0x29b126);},{'priority':'highest'});}),_0x1e7675['conversion']['for']('dataDowncast')['markerToData']({'model':'suggestion','view':(_0x21c4d2,_0x43c3ee)=>_0x43c3ee['options']['showSuggestionHighlights']?null:{'group':'suggestion','name':_0x21c4d2['substr'](0xb)}}),_0x1e7675['conversion']['for']('upcast')['elementToElement']({'view':{'name':'suggestion','attributes':{'id':/^\w/,'suggestion-type':/^\w/}},'model':(_0x5807fe,{writer:_0x385b61})=>{let _0x19ca82='suggestion:'+_0x5807fe['getAttribute']('suggestion-type')+':'+_0x5807fe['getAttribute']('id');return _0x5807fe['getAttribute']('marker-count')&&(_0x19ca82+=':'+_0x5807fe['getAttribute']('marker-count')),_0x385b61['createElement']('$marker',{'data-name':_0x19ca82});}}),_0x1e7675['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion'}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x1766f7=>{_0x1766f7['on']('addMarker:suggestion:formatBlock',_0x19c0f8(),{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x34460d=>{_0x34460d['on']('addMarker:suggestion:attribute',_0x19c0f8({'isAttributeSuggestion':!0x0}),{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x1302e0=>{_0x1302e0['on']('removeMarker:suggestion:formatBlock',(_0x325de9,_0x40dce7,_0xb0bde4)=>{const _0x3a49d7=_0xb0bde4['mapper']['markerNameToElements'](_0x40dce7['markerName']);if(_0x3a49d7){for(const _0x189a50 of _0x3a49d7)_0x189a50['getCustomProperty']('addHighlight')||(_0xb0bde4['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0x189a50),_0xb0bde4['writer']['removeAttribute']('data-suggestion',_0x189a50),_0xb0bde4['mapper']['unbindElementFromMarkerName'](_0x189a50,_0x40dce7['markerName']));}},{'priority':'high'});}),_0x1e7675['conversion']['for']('editingDowncast')['add'](_0x5e44b3=>{_0x5e44b3['on']('removeMarker:suggestion:attribute',(_0x5c5868,_0x501d4d,_0x279e10)=>{const _0x27624d=_0x279e10['mapper']['markerNameToElements'](_0x501d4d['markerName']);if(!_0x27624d)return;const {id:_0x2b32b9}=this['_splitMarkerName'](_0x501d4d['markerName']),_0x4fdd38=this['_suggestions']['get'](_0x2b32b9),_0x352763=this['_getAttributeKey'](_0x4fdd38);if(this['_isBlockAttribute'](_0x352763)){for(const _0xfd9b24 of _0x27624d)_0xfd9b24['getCustomProperty']('addHighlight')||(_0x279e10['writer']['removeClass'](['ck-suggestion-marker','ck-suggestion-marker-formatBlock','ck-suggestion-marker--active'],_0xfd9b24),_0x279e10['writer']['removeAttribute']('data-suggestion',_0xfd9b24),_0x279e10['mapper']['unbindElementFromMarkerName'](_0xfd9b24,_0x501d4d['markerName']));}},{'priority':'high'});}),_0x1e7675['model']['document']['registerPostFixer'](_0x5cf991=>{let _0x7652e0=!0x1;const _0x475cd3=Array['from'](_0x1e7675['model']['document']['differ']['getChangedMarkers']()),_0x3dff26=new Set();for(const {name:_0x388e6c,data:_0x4f4a2f}of _0x475cd3){const {group:_0x4a9291,type:_0x45332f,subType:_0x24a0a8,id:_0x246cfc}=this['_splitMarkerName'](_0x388e6c);if('suggestion'!==_0x4a9291)continue;const _0x4835ed=this['_suggestions']['get'](_0x246cfc);if(null!=_0x4f4a2f['newRange']){'formatInline'==_0x45332f&&(_0x7652e0=_0x7652e0||Et(_0x4f4a2f['newRange'],_0x388e6c,_0x5cf991,_0x1e7675['model']['schema']));const _0x59c1d2='attribute'==_0x45332f&&this['_isBlockAttribute'](_0x24a0a8['split']('|')[0x0]);if(_0x4f4a2f['newRange']['isCollapsed']||'$graveyard'==_0x4f4a2f['newRange']['root']['rootName']||'formatBlock'==_0x45332f&&!Ut(_0x4f4a2f['newRange'])||_0x59c1d2&&!Ut(_0x4f4a2f['newRange'])||'deletion'==_0x45332f&&!(!Tt(_0xc33c78=_0x4f4a2f['newRange'])&&!function(_0x2c6162){return _0x2c6162['start']['parent']==_0x2c6162['end']['nodeBefore']&&_0x2c6162['start']['isAtEnd'];}(_0xc33c78)))_0x5cf991['removeMarker'](_0x388e6c),_0x7652e0=!0x0;else{if(!_0x4835ed||!_0x4835ed['isInContent'])continue;_0x3dff26['add'](_0x4835ed);}}}var _0xc33c78;return _0x3dff26['size']>0x0&&(_0x7652e0=!!this['_joinWithAdjacentSuggestions'](_0x3dff26)||_0x7652e0),_0x7652e0;}),_0x1e7675['model']['document']['registerPostFixer'](_0x221111=>{let _0x3451ce=!0x1;for(const _0x4abac3 of _0x1e7675['model']['document']['differ']['getChanges']())if('insert'==_0x4abac3['type'])for(const _0x6ee665 of this['_suggestions']['values']()){if(_0x6ee665['isMultiRange']||!_0x6ee665['isInContent'])continue;const _0x27433c='formatBlock'==_0x6ee665['type'],_0x569ea8=this['_getAttributeKey'](_0x6ee665),_0x48e0fc=_0x569ea8&&this['_isBlockAttribute'](_0x569ea8);if(!_0x27433c&&!_0x48e0fc)continue;const _0x1a8c37=_0x6ee665['getFirstRange']();if(_0x1a8c37['start']['parent']!=_0x1a8c37['end']['parent']&&!_0x1a8c37['end']['isAtEnd']){const _0x229809=_0x1e7675['model']['createPositionAt'](_0x1a8c37['start']['nodeAfter'],'end'),_0x7059d2=_0x1e7675['model']['createRange'](_0x1a8c37['start'],_0x229809);_0x221111['updateMarker'](_0x6ee665['getFirstMarker'](),{'range':_0x7059d2}),_0x3451ce=!0x0;}}return _0x3451ce;}),_0x1e7675['model']['document']['registerPostFixer'](_0x47530b=>this['_processAttributeChanges'](_0x47530b)),_0x1e7675['model']['document']['registerPostFixer'](_0x16f325=>!_0x16f325['batch']['isLocal']&&this['_processAttributeSuggestions'](_0x16f325)),_0x1e7675['model']['on']('_afterChanges',()=>{this['_recordAttributeSuggestions']=!0x1;}),_0x1e7675['model']['document']['on']('change:data',(_0x27795d,_0x42c292)=>{if(!_0x42c292['isLocal']||_0x42c292['isUndo'])return;if(!this['_recordAttributeSuggestions'])return;const _0x356007=_0x1e7675['model']['document']['differ']['getChanges']();if(0x0==_0x356007['length'])return;const _0x4a796b=[],_0x3e2e91=_0x356007['filter'](_0x5530b1=>'attribute'==_0x5530b1['type']),_0x2d22e1=_0x356007['filter'](_0x48ca4c=>'insert'==_0x48ca4c['type']&&'$text'!=_0x48ca4c['name']),_0x19d707=_0x356007['filter'](_0xc3aaed=>'remove'==_0xc3aaed['type']&&'$text'!=_0xc3aaed['name']);for(const _0x29ec1c of _0x3e2e91)this['_isRegisteredAttribute'](_0x29ec1c['attributeKey'])&&_0x4a796b['push']({'key':_0x29ec1c['attributeKey'],'newValue':_0x29ec1c['attributeNewValue'],'oldValue':_0x29ec1c['attributeOldValue'],'range':Ot(_0x29ec1c['range'],_0x1e7675['model'])});for(const _0x3856e9 of _0x2d22e1){const _0x816b13=_0x19d707['find'](_0x46f6dd=>_0x46f6dd['_element']===_0x3856e9['_element']);if(_0x816b13){const _0x35a1cd=Gt(_0x3856e9['position']['nodeAfter'],_0x1e7675['model']);_0x816b13['name']!==_0x3856e9['name']&&_0x4a796b['push']({'key':m,'newValue':_0x3856e9['name'],'oldValue':_0x816b13['name'],'range':_0x35a1cd});for(const [_0x461e07,_0x5675fe]of _0x816b13['attributes']){if(!this['_isRegisteredAttribute'](_0x461e07))continue;const _0x190b3b=_0x3856e9['attributes']['get'](_0x461e07);_0x5675fe!==_0x190b3b&&_0x4a796b['push']({'key':_0x461e07,'newValue':_0x190b3b,'oldValue':_0x5675fe,'range':_0x35a1cd});}for(const [_0x1629a0,_0xbb454c]of _0x3856e9['attributes'])this['_isRegisteredAttribute'](_0x1629a0)&&(_0x816b13['attributes']['has'](_0x1629a0)||_0x4a796b['push']({'key':_0x1629a0,'newValue':_0xbb454c,'oldValue':null,'range':_0x35a1cd}));}}0x0!=_0x4a796b['length']&&_0x1e7675['model']['enqueueChange'](_0x42c292,_0x514c00=>{const _0x2e411a=_0x1702d8();for(const {range:_0x466fa4,key:_0x3fd6df,oldValue:_0xf8a73c,newValue:_0x55119c}of _0x4a796b)this['markAttributeChange'](_0x466fa4,_0x3fd6df,_0xf8a73c,_0x55119c,{'groupId':_0x2e411a});this['_reduceExistingSuggestions'](_0x514c00,_0x4a796b);});},{'priority':'lowest'}),_0x1e7675['model']['markers']['on']('update:suggestion',(_0x1497bf,_0x113194,_0x3cb69f)=>{if(null==_0x3cb69f){const {id:_0x1ab2dc}=this['_splitMarkerName'](_0x113194['name']),_0x14c07e=this['_suggestions']['get'](_0x1ab2dc);_0x14c07e&&_0x14c07e['addMarkerName'](_0x113194['name']);}}),_0x1e7675['model']['document']['on']('change:data',()=>{const _0x16d7a5=Array['from'](_0x1e7675['model']['document']['differ']['getChangedMarkers']())['filter'](_0x20353f=>'suggestion'===this['_splitMarkerName'](_0x20353f['name'])['group']);if(0x0===_0x16d7a5['length'])return;_0x16d7a5['sort']((_0x9a0b5c,_0x384940)=>{const _0x2359c0=_0x9a0b5c['data']['oldRange'],_0x10101c=_0x384940['data']['oldRange'];return null===_0x2359c0&&null===_0x10101c?0x0:null===_0x2359c0&&null!==_0x10101c?-0x1:null!==_0x2359c0&&null===_0x10101c?0x1:_0x2359c0['start']['isBefore'](_0x10101c['start'])?-0x1:0x1;});const _0x2349ce=new Set(),_0x1b0423=new Set();for(const {name:_0x5206e2,data:_0xdefc31}of _0x16d7a5){const {id:_0x3c89c2}=this['_splitMarkerName'](_0x5206e2);if(null===_0xdefc31['oldRange']){const _0x529ad6=this['_handleNewSuggestionMarker'](_0x5206e2);_0x1b0423['add'](_0x529ad6);}else{const _0x30f6d8=this['_suggestions']['get'](_0x3c89c2);null!==_0xdefc31['newRange']||_0x30f6d8['isInContent']?(_0x2349ce['add'](_0x30f6d8['head']),_0x1b0423['add'](_0x30f6d8)):this['_removeSuggestion'](_0x30f6d8);}}_0x1b0423['size']>0x0&&this['_refreshSuggestionsChain'](_0x1b0423);for(const _0x36eac9 of _0x2349ce)this['fire']('suggestionChanged',_0x36eac9);}),_0x1e7675['model']['on']('applyOperation',(_0x2e7670,_0x4e0dfc)=>{const _0x476790=_0x4e0dfc[0x0];if(!this['_suggestions']['size'])return;if(!_0x476790['isDocumentOperation'])return;if(_0x476790['batch']['isUndo']||!_0x476790['batch']['isLocal'])return;let _0x3caa0f,_0x41a778;switch(_0x476790['type']){case'insert':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['position']),_0x41a778=_0x3caa0f['getShiftedBy'](_0x476790['howMany']);break;case'split':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['splitPosition']),_0x41a778=_0x1e7675['model']['createPositionAt'](_0x476790['moveTargetPosition']);break;case'move':_0x3caa0f=_0x1e7675['model']['createPositionAt'](_0x476790['targetPosition']),_0x41a778=_0x3caa0f['getShiftedBy'](_0x476790['howMany']);break;default:return;}const _0x58e407=_0x1e7675['model']['createRange'](_0x3caa0f,_0x41a778);_0x1e7675['model']['change'](()=>{for(const {suggestion:_0x438de6,meta:_0x28631b}of this['_findSuggestions'](_0x58e407)){if(_0x438de6['isMultiRange'])continue;if('formatInline'==_0x438de6['type'])continue;const _0xb85b3c=this['_getAttributeKey'](_0x438de6);if(_0xb85b3c&&this['_isBlockAttribute'](_0xb85b3c)&&'split'!=_0x476790['type'])continue;const _0x59c370=_0x438de6['data']&&_0x438de6['data']['multipleBlocks'];('formatBlock'!=_0x438de6['type']||'split'==_0x476790['type']&&!_0x59c370)&&(_0x28631b['containsRangeInObject']||'insertion'==_0x438de6['type']&&_0x28631b['isOwn']||_0x438de6['getFirstRange']()['containsRange'](_0x58e407)&&this['_breakSuggestionMarker'](_0x438de6,_0x3caa0f,_0x41a778));}});},{'priority':'lowest'}),_0x1e7675['model']['on']('deleteContent',(_0x43e640,_0x32167a)=>{const _0x318b13=_0x32167a[0x0],_0x3e7e6e=_0x32167a[0x1];if(_0x3e7e6e&&_0x3e7e6e['forceDefaultExecution'])return;if(this['_isForcedDefaultExecutionBlock'])return;if(!this['trackChangesCommand']['value'])return;if(_0x318b13['isCollapsed'])return;const _0x362d34=_0x1e7675['model']['schema'],{start:_0x3ab43c,end:_0x5c11c5}=_0x318b13['getFirstRange'](),_0xfe4c9c=_0x3ab43c['nodeAfter']&&_0x362d34['isLimit'](_0x3ab43c['nodeAfter'])?null:_0x362d34['getNearestSelectionRange'](_0x3ab43c,'forward'),_0x2d7039=_0x5c11c5['nodeBefore']&&_0x362d34['isLimit'](_0x5c11c5['nodeBefore'])?null:_0x362d34['getNearestSelectionRange'](_0x5c11c5,'backward'),_0x5e03f0=_0x1e7675['model']['createRange'](_0xfe4c9c?_0xfe4c9c['start']:_0x3ab43c,_0x2d7039?_0x2d7039['end']:_0x5c11c5);_0x1e7675['model']['change'](_0x5bcec5=>{this['markDeletion'](_0x5e03f0);const _0x43b649=_0x1e7675['model']['schema']['getNearestSelectionRange'](_0x5e03f0['start']);_0x318b13['is']('documentSelection')?_0x5bcec5['setSelection'](_0x43b649):_0x318b13['setTo'](_0x43b649);}),_0x43e640['stop']();},{'priority':_0x3cf857['normal']+0xa}),_0x1e7675['model']['on']('insertContent',(_0x1d8ce3,_0x36cc21)=>{const _0x2b85f6=_0x36cc21[_0x36cc21['length']-0x1];_0x2b85f6&&_0x2b85f6['forceDefaultExecution']||this['_isForcedDefaultExecutionBlock']||this['trackChangesCommand']['value']&&(_0x1e7675['model']['change'](()=>{let _0x12a80a=_0x1e7675['model']['insertContent'](_0x36cc21[0x0],_0x36cc21[0x1],_0x36cc21[0x2],{'forceDefaultExecution':!0x0});if(!_0x12a80a)return;_0x1d8ce3['return']=_0x12a80a['clone']();const _0x2898d9=_0x12a80a['end']['nodeBefore'],_0x15bcd5=_0x1e7675['model']['schema'];_0x2898d9&&_0x15bcd5['isBlock'](_0x2898d9)&&!_0x15bcd5['isObject'](_0x2898d9)&&(_0x12a80a=_0x1e7675['model']['createRange'](_0x12a80a['start'],_0x1e7675['model']['createPositionAt'](_0x2898d9,'end'))),this['markInsertion'](_0x12a80a);}),_0x1d8ce3['stop']());},{'priority':'high'}),this['editor']['commands']['add']('trackChanges',this['trackChangesCommand']),this['enableCommand']('trackChanges');const _0x36c3cc=new $(_0x1e7675,this['_suggestions']);_0x1e7675['commands']['add']('acceptSuggestion',_0x36c3cc),this['enableCommand']('acceptSuggestion');const _0x3f1e51=new B(_0x1e7675,this['_suggestions']);_0x1e7675['commands']['add']('discardSuggestion',_0x3f1e51),this['enableCommand']('discardSuggestion'),_0x1e7675['commands']['add']('acceptAllSuggestions',new x(_0x1e7675,_0x36c3cc,this['_suggestions'])),this['enableCommand']('acceptAllSuggestions'),_0x1e7675['commands']['add']('discardAllSuggestions',new x(_0x1e7675,_0x3f1e51,this['_suggestions'])),this['enableCommand']('discardAllSuggestions'),_0x1e7675['commands']['add']('acceptSelectedSuggestions',new R(_0x1e7675,_0x36c3cc,this['_suggestions'])),this['enableCommand']('acceptSelectedSuggestions'),_0x1e7675['commands']['add']('discardSelectedSuggestions',new R(_0x1e7675,_0x3f1e51,this['_suggestions'])),this['enableCommand']('discardSelectedSuggestions');const _0x12f28d=_0x1e7675['plugins']['get']('CommentsRepository');this['listenTo'](_0x12f28d,'addComment',(_0x1a44ee,{threadId:_0x261907})=>{const _0x226eba=this['_suggestions']['get'](_0x261907);_0x226eba&&_0x226eba['commentThread']&&0x1===_0x226eba['commentThread']['length']&&this['_updateSuggestionData'](_0x261907,{'hasComments':!0x0});},{'priority':'low'}),this['listenTo'](_0x12f28d,'removeComment',(_0x3c6a12,{threadId:_0x441b60})=>{const _0xea5c81=this['_suggestions']['get'](_0x441b60);_0xea5c81&&_0xea5c81['commentThread']&&!_0xea5c81['commentThread']['length']&&this['_updateSuggestionData'](_0x441b60,{'hasComments':!0x1});},{'priority':'low'});}set['adapter'](_0x379e2a){if(this['_adapter'])throw new _0x215eab('track-changes-adapter-already-set',this);this['_adapter']=_0x379e2a;}get['adapter'](){return this['_adapter'];}['getSuggestions']({skipNotAttached:_0x4abf85=!0x1,toJSON:_0x52ce82=!0x1}={}){const _0x44b2a0=[];for(const _0x4f2eb3 of this['_suggestions']['values']())_0x4abf85&&!_0x4f2eb3['isInContent']||_0x44b2a0['push'](_0x4f2eb3);return _0x52ce82?_0x44b2a0['map'](_0x2b2a04=>_0x2b2a04['toJSON']()):_0x44b2a0;}['getSuggestion'](_0x355fbd){const _0xca0f50=this['_suggestions']['get'](_0x355fbd);if(!_0xca0f50)throw new _0x215eab('track-changes-suggestion-not-found',this);return _0xca0f50;}['hasSuggestion'](_0x4d9dfe){return this['_suggestions']['has'](_0x4d9dfe);}['addSuggestionData'](_0x23f47d){const {authorId:_0x1d2c02,id:_0x3b633b,attributes:_0x2ddec8}=_0x23f47d,[_0x92b344,_0x4e6469]=_0x23f47d['type']['split'](':'),_0x1c42eb=this['_suggestions']['get'](_0x3b633b)||this['_createSuggestion'](_0x92b344,_0x4e6469,_0x3b633b,_0x1d2c02,_0x2ddec8);if(this['_addThreadToSuggestion'](_0x1c42eb),this['_checkSuggestionCorrectness'](_0x1c42eb,_0x92b344,_0x4e6469||null,_0x1d2c02),_0x1c42eb['createdAt']=_0x23f47d['createdAt'],_0x1c42eb['_isDataLoaded']=!0x0,_0x2ddec8&&_0x2ddec8['@external']){const _0x9f633d=_0x2ddec8['@external'],_0x18b434=this['_getExternalAuthor'](_0x9f633d['authorName']);_0x1c42eb['authoredAt']=_0x9f633d['createdAt'],_0x1c42eb['author']=_0x18b434,_0x1c42eb['isExternal']=!0x0;}else _0x1c42eb['authoredAt']=_0x23f47d['createdAt'];switch(_0x23f47d['data']&&(_0x1c42eb['data']=_0x23f47d['data']),_0x23f47d['attributes']&&(_0x1c42eb['attributes']=_0x23f47d['attributes']),this['_adapter']&&this['_adapter']['addSuggestion']||(_0x1c42eb['_saved']=!0x0),this['_suggestionState']['get'](_0x1c42eb)){case'notReady':this['_suggestionState']['set'](_0x1c42eb,'dataReady');break;case'markerReady':_0x1c42eb['isInContent']?(this['_joinWithAdjacentSuggestions'](new Set([_0x1c42eb])),this['_refreshSuggestionsChain'](new Set([_0x1c42eb])),this['_suggestionState']['set'](_0x1c42eb,'ready'),this['fire']('suggestionLoaded',_0x1c42eb)):this['_suggestionState']['set'](_0x1c42eb,'removed');}return _0x1c42eb;}['acceptSuggestion'](_0x3015bb){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x45a791 of _0x3015bb['getAllAdjacentSuggestions']())_0x45a791['accept']();});});}['discardSuggestion'](_0x3a556c){this['forceDefaultExecution'](()=>{this['editor']['model']['change'](()=>{for(const _0x55bea0 of _0x3a556c['getAllAdjacentSuggestions']())_0x55bea0['discard']();});});}['enableCommand'](_0x5388a9,_0x1d4874){const _0x36ca09=this['editor']['commands']['get'](_0x5388a9);if(!_0x36ca09)throw new _0x215eab('track-changes-command-not-found',this,{'commandName':_0x5388a9});if(this['_enabledCommands']['has'](_0x36ca09))throw new _0x215eab('track-changes-enable-command-twice',this,{'commandName':_0x5388a9});this['_enabledCommands']['add'](_0x36ca09),_0x1d4874&&_0x36ca09['on']('execute',(_0x325df5,_0x361077)=>{this['trackChangesCommand']['value']&&(this['_isForcedDefaultExecutionBlock']||(_0x361077['length']>0x0&&_0x361077[_0x361077['length']-0x1]&&_0x361077[_0x361077['length']-0x1]['forceDefaultExecution']?_0x361077['pop']():(_0x325df5['return']=_0x1d4874((..._0x35a33f)=>_0x36ca09['execute'](..._0x35a33f,{'forceDefaultExecution':!0x0}),..._0x361077),_0x325df5['stop']())));},{'priority':'high'});}['forceDefaultExecution'](_0xf0b35f){let _0x2d597a,_0x1843d4;const _0x45b79d=this['_isForcedDefaultExecutionBlock'];this['_isForcedDefaultExecutionBlock']=!0x0;try{_0x2d597a=_0xf0b35f();}catch(_0x3548f2){_0x1843d4=_0x3548f2;}return _0x45b79d||(this['_isForcedDefaultExecutionBlock']=!0x1),_0x1843d4&&_0x215eab['rethrowUnexpectedError'](_0x1843d4,this),_0x2d597a;}['markInsertion'](_0xb50dfa,_0x17ded6=null,_0x9a2a95={}){if(_0xb50dfa['isCollapsed'])return null;const _0x329652=this['editor']['plugins']['get']('Users')['me'];for(const {suggestion:_0x235d79,meta:_0x3fe9ce}of this['_findSuggestions'](_0xb50dfa,'insertion'))if(_0x3fe9ce['isOwn']){if(!_0x3fe9ce['isNextTo']){if(_0x3fe9ce['containsRangeInObject']){if(!this['_mergeNestedSuggestions']||!Lt(_0x235d79,_0x9a2a95))continue;return _0x235d79;}if(Lt(_0x235d79,_0x9a2a95))return _0x235d79;this['_breakSuggestionMarker'](_0x235d79,_0xb50dfa['start'],_0xb50dfa['end']);break;}if(_0x17ded6==_0x235d79['subType']&&Lt(_0x235d79,_0x9a2a95)){const _0x2b7d0f=_0x235d79['getFirstRange']();return _0x2b7d0f['start']['isEqual'](_0xb50dfa['end'])?this['_setSuggestionRange'](_0x235d79,this['_model']['createRange'](_0xb50dfa['start'],_0x2b7d0f['end'])):this['_setSuggestionRange'](_0x235d79,this['_model']['createRange'](_0x2b7d0f['start'],_0xb50dfa['end'])),_0x235d79;}}const _0x234b60=_0x1702d8(),_0x1059aa=_0x329652['id'],_0x111b16=_0x17ded6?'insertion:'+_0x17ded6:'insertion',_0x2c7feb=this['_setSuggestionData']({'id':_0x234b60,'type':_0x111b16,'createdAt':new Date(),'authorId':_0x1059aa,'attributes':_0x9a2a95});return this['_addSuggestionMarker'](_0x111b16,_0x234b60,_0x1059aa,_0xb50dfa),_0x2c7feb;}['markMultiRangeInsertion'](_0x2fa1db,_0x330fb4='multi',_0x23e498={}){const _0x4755a6=this['editor']['plugins']['get']('Users')['me'],_0x24cc44=this['_suggestionFactory']['getSuggestionCallback']('insertion',_0x330fb4,'join');for(const _0x575986 of this['getSuggestions']())if(_0x575986['author']['id']==_0x4755a6['id']&&'insertion'==_0x575986['type']&&_0x575986['subType']==_0x330fb4&&Lt(_0x575986,_0x23e498)&&(_0x24cc44(_0x575986['getRanges'](),_0x2fa1db)||_0x24cc44(_0x2fa1db,_0x575986['getRanges']()))){for(const _0x1c0c51 of _0x2fa1db)_0x575986['addRange'](_0x1c0c51);return _0x575986;}for(const {suggestion:_0x52727a,meta:_0x161db8}of this['_findSuggestions'](_0x2fa1db,'insertion')){if(!_0x161db8['isOwn'])continue;if(!this['_mergeNestedSuggestions']&&_0x161db8['containsRangeInObject'])continue;if(!Lt(_0x52727a,_0x23e498))continue;let _0x2d696c=!0x0;for(const _0x25d8ca of _0x52727a['getRanges']())for(const _0x49891e of _0x2fa1db)if(!_0x25d8ca['containsRange'](_0x49891e)){_0x2d696c=!0x1;break;}if(_0x2d696c)return _0x52727a;}const _0xff6e5c=_0x1702d8(),_0x54616d=_0x4755a6['id'],_0xdeb261='insertion:'+_0x330fb4,_0x4286d0=this['_setSuggestionData']({'id':_0xff6e5c,'type':_0xdeb261,'createdAt':new Date(),'authorId':_0x54616d,'attributes':_0x23e498});for(const _0x38d83b of _0x2fa1db)this['_addSuggestionMarker'](_0xdeb261,_0xff6e5c,_0x54616d,_0x38d83b,u['getMultiRangeId']());return _0x4286d0;}['markInlineFormat'](_0x40bcc3,_0x615a3b,_0xb87ca2=null,_0x169d04={}){if(_0xb87ca2=_0xb87ca2||Vt(_0x615a3b),_0x40bcc3['isCollapsed'])return null;if('never'===this['_trackFormatChanges']){const _0x290302=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb87ca2,'accept');return this['forceDefaultExecution'](()=>_0x290302([_0x40bcc3],_0x615a3b,_0x169d04)),null;}const _0x36c639=this['editor']['plugins']['get']('Users')['me'],_0x39bf46=[];if('always'!==this['_trackFormatChanges']){for(const {suggestion:_0x239216,meta:_0x47b5d5}of this['_findSuggestions'](_0x40bcc3,'insertion'))_0x47b5d5['isOwn']&&!_0x47b5d5['isInsideObject']&&_0x39bf46['push'](..._0x239216['getRanges']());}const _0x4a4b21=function(_0xc6aeca,_0x3b4349){const _0x4fa168=[];for(const _0x26adc9 of _0x3b4349){const _0x523193=_0xc6aeca['getIntersection'](_0x26adc9);_0x523193&&_0x4fa168['push'](_0x523193);}return _0x4fa168;}(_0x40bcc3,_0x39bf46),_0x4c4ef5=function(_0x3007c2,_0x279d55){const _0x3c0f5b=[_0x3007c2];for(const _0x34148d of _0x279d55){let _0x36b23d=0x0;for(;_0x36b23d<_0x3c0f5b['length'];){const _0x473c1d=_0x3c0f5b[_0x36b23d]['getDifference'](_0x34148d);_0x3c0f5b['splice'](_0x36b23d,0x1,..._0x473c1d),_0x36b23d+=_0x473c1d['length'];}}return _0x3c0f5b;}(_0x40bcc3,_0x39bf46);_0x4a4b21['length']&&this['_model']['change'](()=>{for(const _0x593f43 of _0x4a4b21){const _0x1d103a=this['_suggestionFactory']['getSuggestionCallback']('formatInline',_0xb87ca2,'accept');this['forceDefaultExecution'](()=>_0x1d103a([_0x593f43],_0x615a3b,_0x169d04));}});for(const _0x2d1ad1 of _0x4c4ef5){let _0x2e63e1=null,_0xbba43b=_0x2d1ad1['start'],_0x4b33d0=_0x2d1ad1['end'];for(const {suggestion:_0x22acac,meta:_0x2d0601}of this['_findSuggestions'](_0x2d1ad1,'formatInline')){if(!_0x2d0601['isOwn'])continue;if(_0x22acac['subType']!=_0xb87ca2)continue;if(!Lt(_0x22acac,_0x169d04))continue;const _0x59733b=_0x22acac['getFirstRange']();if(_0x59733b['containsRange'](_0x2d1ad1,!0x0))return null;_0xbba43b=_0xbba43b['isBefore'](_0x59733b['start'])?_0xbba43b:_0x59733b['start'],_0x4b33d0=_0x4b33d0['isAfter'](_0x59733b['end'])?_0x4b33d0:_0x59733b['end'],_0x2e63e1?_0x59733b['start']['isBefore'](_0x2e63e1['getFirstRange']()['start'])?(_0x2e63e1['removeMarkers'](),_0x2e63e1=_0x22acac):_0x22acac['removeMarkers']():_0x2e63e1=_0x22acac;}const _0x6ffa7f=this['_model']['createRange'](_0xbba43b,_0x4b33d0);if(_0x2e63e1)this['_setSuggestionRange'](_0x2e63e1,_0x6ffa7f);else{const _0x4fef0a=_0x1702d8(),_0x32fd9f=_0x36c639['id'];this['_setSuggestionData']({'id':_0x4fef0a,'type':'formatInline:'+_0xb87ca2,'data':_0x615a3b,'createdAt':new Date(),'authorId':_0x32fd9f,'attributes':_0x169d04}),this['_addSuggestionMarker']('formatInline:'+_0xb87ca2,_0x4fef0a,_0x32fd9f,_0x6ffa7f);}}return null;}['markBlockFormat'](_0x5a81b0,_0x38b4a4,_0x316554=[],_0xcbb260=null,_0x13edb6={}){_0x38b4a4['formatGroupId']||(_0x38b4a4['formatGroupId']=_0x38b4a4['commandName']),_0x38b4a4['multipleBlocks']=_0x5a81b0['is']('range'),_0xcbb260=_0xcbb260||Vt(_0x38b4a4);const _0xebcce1=_0x316554['map'](_0x11b831=>Gt(_0x11b831,this['_model'])),_0x37b4f8=_0x5a81b0['is']('range')?_0x5a81b0:Gt(_0x5a81b0,this['_model']);if('never'===this['_trackFormatChanges']){const _0x390350=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcbb260,'accept');return this['forceDefaultExecution'](()=>_0x390350([_0x37b4f8],_0x38b4a4,_0x13edb6)),null;}_0xebcce1['push'](_0x37b4f8);let _0x434204=!0x0;for(const _0x105410 of _0xebcce1)if(!this['_rangeIsInLocalUserInsertion'](_0x105410)){_0x434204=!0x1;break;}if(_0x434204&&'always'!==this['_trackFormatChanges']){const _0x51067d=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0xcbb260,'accept');return this['forceDefaultExecution'](()=>_0x51067d([_0x37b4f8],_0x38b4a4,_0x13edb6)),null;}let _0x48b613=null,_0x1aa646=_0x37b4f8['start'],_0x1e5692=_0x37b4f8['end'];for(const {suggestion:_0x51319b,meta:_0x411af1}of this['_findSuggestions'](_0x37b4f8,'formatBlock')){if(!_0x411af1['isOwn'])continue;if(_0x411af1['isNextTo']||_0x411af1['containsRangeInObject']||_0x411af1['isInsideObject'])continue;if(_0x51319b['data']['formatGroupId']!=_0x38b4a4['formatGroupId'])continue;if(!Lt(_0x51319b,_0x13edb6))continue;const _0x53bdeb=_0x51319b['getFirstRange']();if(_0x51319b['subType']==_0xcbb260){if(_0x53bdeb['containsRange'](_0x37b4f8,!0x0))return null;_0x1aa646=_0x1aa646['isBefore'](_0x53bdeb['start'])?_0x1aa646:_0x53bdeb['start'],_0x1e5692=_0x1e5692['isAfter'](_0x53bdeb['end'])?_0x1e5692:_0x53bdeb['end'],_0x48b613?_0x53bdeb['start']['isBefore'](_0x48b613['getFirstRange']()['start'])?(_0x48b613['removeMarkers'](),_0x48b613=_0x51319b):_0x51319b['removeMarkers']():_0x48b613=_0x51319b;}else{const _0x4fcce3=_0x37b4f8['getIntersection'](_0x53bdeb);this['_cutOutSuggestionMarker'](_0x51319b,_0x4fcce3);}}const _0x3b5a6e=this['editor']['plugins']['get']('Users')['me'],_0x13784b=_0x1702d8(),_0x586b19=_0x3b5a6e['id'];if(_0x48b613)return this['_setSuggestionRange'](_0x48b613,this['_model']['createRange'](_0x1aa646,_0x1e5692)),_0x48b613;{const _0x1f9fef=this['_setSuggestionData']({'id':_0x13784b,'type':'formatBlock:'+_0xcbb260,'data':_0x38b4a4,'createdAt':new Date(),'authorId':_0x586b19,'attributes':_0x13edb6});return this['_addSuggestionMarker']('formatBlock:'+_0xcbb260,_0x13784b,_0x586b19,this['_model']['createRange'](_0x1aa646,_0x1e5692)),_0x1f9fef;}}['markMultiRangeBlockFormat'](_0x555b9e,_0x17c327,_0x445cba=[],_0x4ae0b9=null,_0x28dd07={}){_0x17c327['formatGroupId']||(_0x17c327['formatGroupId']=_0x17c327['commandName']);const _0x3e752d=_0x555b9e[0x0];_0x17c327['multipleBlocks']=_0x3e752d['is']('range'),_0x4ae0b9=_0x4ae0b9||Vt(_0x17c327);const _0x56b6a3=_0x445cba['map'](_0xaf415d=>Gt(_0xaf415d,this['_model'])),_0x2ca30f=_0x3e752d['is']('range')?_0x555b9e:_0x555b9e['map'](_0x633efa=>Gt(_0x633efa,this['_model']));if('never'===this['_trackFormatChanges']){const _0x20cec0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'accept');return this['forceDefaultExecution'](()=>_0x20cec0(_0x2ca30f,_0x17c327,_0x28dd07)),null;}_0x56b6a3['push'](..._0x2ca30f);let _0xd85eef=!0x0;for(const _0x270dd5 of _0x56b6a3)if(!this['_rangeIsInLocalUserInsertion'](_0x270dd5)){_0xd85eef=!0x1;break;}if(_0xd85eef&&'always'!==this['_trackFormatChanges']){const _0x544625=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'accept');return this['forceDefaultExecution'](()=>_0x544625(_0x2ca30f,_0x17c327,_0x28dd07)),null;}const _0xc0ef27=this['editor']['plugins']['get']('Users')['me'];for(const _0x15ec23 of this['getSuggestions']()){if(_0x15ec23['author']['id']!=_0xc0ef27['id'])continue;if('formatBlock'!=_0x15ec23['type']||_0x15ec23['data']['formatGroupId']!=_0x17c327['formatGroupId'])continue;if(!Lt(_0x15ec23,_0x28dd07))continue;const _0x32d122=_0x15ec23['subType']==_0x4ae0b9;for(let _0x3d0109=0x0;_0x3d0109<_0x2ca30f['length'];_0x3d0109++){const _0x35b983=_0x2ca30f[_0x3d0109];for(const _0xc59f45 of _0x15ec23['getMarkers']()){const _0x104253=_0xc59f45['getRange']();if(_0x35b983['isEqual'](_0x104253)){_0x32d122?(_0x2ca30f['splice'](_0x3d0109,0x1),_0x3d0109--):_0x15ec23['removeMarker'](_0xc59f45['name']);break;}}}}if(0x0==_0x2ca30f['length'])return null;const _0x4c7ee0=this['_suggestionFactory']['getSuggestionCallback']('formatBlock',_0x4ae0b9,'join');for(const _0x7a7346 of this['getSuggestions']())if(_0x7a7346['author']['id']==_0xc0ef27['id']&&'formatBlock'==_0x7a7346['type']&&_0x7a7346['data']['formatGroupId']==_0x17c327['formatGroupId']&&_0x7a7346['subType']==_0x4ae0b9&&Lt(_0x7a7346,_0x28dd07)&&(_0x4c7ee0(_0x7a7346['getRanges'](),_0x2ca30f)||_0x4c7ee0(_0x2ca30f,_0x7a7346['getRanges']()))){for(const _0x5d93ee of _0x2ca30f)_0x7a7346['addRange'](_0x5d93ee);return _0x7a7346;}const _0x28ede2=_0x1702d8(),_0x12b3b8=_0xc0ef27['id'],_0x300b5f='formatBlock:'+_0x4ae0b9,_0x327908=this['_setSuggestionData']({'id':_0x28ede2,'type':_0x300b5f,'data':_0x17c327,'createdAt':new Date(),'authorId':_0x12b3b8,'attributes':_0x28dd07});for(const _0x2e2d5f of _0x2ca30f)this['_addSuggestionMarker'](_0x300b5f,_0x28ede2,_0x12b3b8,_0x2e2d5f,u['getMultiRangeId']());return _0x327908;}['markDeletion'](_0x4b57cc,_0x5713c5=null,_0x31f1cb={}){if(_0x4b57cc['isCollapsed'])return null;const _0x3e83f3=this['editor']['plugins']['get']('Users')['me'],_0x2b51e3=new _0x577a36(_0x4b57cc['start'],_0x4b57cc['end']);for(const {suggestion:_0x22f510,meta:_0x2b2008}of this['_findSuggestions'](_0x2b51e3,'insertion'))if(_0x2b2008['isOwn']&&!_0x2b2008['isNextTo']){if(_0x22f510['isMultiRange']){const _0xe3442b=_0x22f510['getRanges']()['filter'](_0x594ee2=>'$graveyard'!=_0x594ee2['root']['rootName']);_0xe3442b['every'](_0x28b6b4=>_0x2b51e3['containsRange'](_0x28b6b4,!0x0))&&_0x22f510['discard']();if(_0xe3442b['some'](_0x270b20=>_0x270b20['containsRange'](_0x2b51e3,!0x0))){const _0x48c661=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x5713c5,'accept');return this['forceDefaultExecution'](()=>_0x48c661([_0x2b51e3],null,_0x31f1cb)),null;}}else{const _0x486b96=_0x2b51e3['getIntersection'](_0x22f510['getFirstRange']());null!==_0x486b96&&_0x22f510['_onDiscard']([_0x486b96],null,_0x31f1cb);}}if(_0x2b51e3['detach'](),_0x2b51e3['isCollapsed']||'$graveyard'==_0x2b51e3['root']['rootName'])return null;let _0x5ed2b3=null,_0x520441=_0x2b51e3['start'],_0x590976=_0x2b51e3['end'];const _0x218853=this['_findSuggestions'](_0x2b51e3,'deletion');for(const {suggestion:_0x59ccd3,meta:_0xa9d732}of _0x218853){const _0x29c7ec=this['_model']['createRange'](_0x520441,_0x590976);if(_0xa9d732['isOwn']&&(this['_mergeNestedSuggestions']||!_0xa9d732['containsRangeInObject']&&!_0xa9d732['isInsideObject'])){if(_0x59ccd3['isMultiRange']){if(!Lt(_0x59ccd3,_0x31f1cb))continue;let _0x1a801e=!0x0;for(const _0x465220 of _0x59ccd3['getRanges']()){if(_0x465220['containsRange'](_0x29c7ec,!0x0))return _0x59ccd3;_0x29c7ec['containsRange'](_0x465220)||(_0x1a801e=!0x1);}_0x1a801e&&_0x59ccd3['discard']();}else{const _0x230d81=_0x59ccd3['getFirstRange']();if(_0x230d81['containsRange'](_0x29c7ec,!0x0))return _0x59ccd3;if(!Lt(_0x59ccd3,_0x31f1cb)){_0x29c7ec['containsRange'](_0x230d81)?_0x59ccd3['removeMarkers']():_0x230d81['containsPosition'](_0x520441)?_0x520441=_0x230d81['end']:_0x230d81['containsPosition'](_0x590976)&&(_0x590976=_0x230d81['start']);continue;}_0x520441=_0x520441['isBefore'](_0x230d81['start'])?_0x520441:_0x230d81['start'],_0x590976=_0x590976['isAfter'](_0x230d81['end'])?_0x590976:_0x230d81['end'],_0x31f1cb=Object['assign']({},_0x59ccd3['attributes']),_0x5ed2b3?_0x230d81['start']['isBefore'](_0x5ed2b3['getFirstRange']()['start'])?(_0x5ed2b3['removeMarkers'](),_0x5ed2b3=_0x59ccd3):_0x59ccd3['removeMarkers']():_0x5ed2b3=_0x59ccd3;}}}if(_0x5ed2b3)return this['_setSuggestionRange'](_0x5ed2b3,this['_model']['createRange'](_0x520441,_0x590976)),_0x5ed2b3;{const _0x793360=_0x1702d8(),_0x592f98=this['_model']['createRange'](_0x520441,_0x590976),_0x52c3a7=_0x3e83f3['id'],_0xf18ee0=_0x5713c5?'deletion:'+_0x5713c5:'deletion',_0x286373=this['_setSuggestionData']({'id':_0x793360,'type':_0xf18ee0,'createdAt':new Date(),'authorId':_0x52c3a7,'attributes':_0x31f1cb});return this['_addSuggestionMarker'](_0xf18ee0,_0x793360,_0x52c3a7,_0x592f98),_0x286373;}}['markMultiRangeDeletion'](_0x39fc1f,_0x3ea71='multi',_0x944274={}){const _0x5d7ebe=this['editor']['plugins']['get']('Users')['me'],_0x11417a=_0x39fc1f['map'](_0x29baeb=>new _0x577a36(_0x29baeb['start'],_0x29baeb['end'])),_0x20f429=new Set();for(const {suggestion:_0x169dcb,meta:_0x65a329}of this['_findSuggestions'](_0x11417a,'insertion'))_0x65a329['isOwn']&&!_0x65a329['isNextTo']&&_0x20f429['add'](_0x169dcb);for(const _0x4dc582 of _0x20f429)if(_0x4dc582['isMultiRange']){const _0xd3871c=_0x4dc582['getRanges']();(!_0x4dc582['attributes']||!_0x4dc582['attributes']['skipNestingCheck'])&&(_0xd3871c['every'](_0x44d1d2=>_0x11417a['some'](_0x2bb5ff=>_0x2bb5ff['containsRange'](_0x44d1d2,!0x0)))&&_0x4dc582['discard']());if(_0x11417a['every'](_0x37ed7d=>_0xd3871c['some'](_0x599d08=>_0x599d08['containsRange'](_0x37ed7d,!0x0)))){const _0x5e88e3=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'accept');return this['forceDefaultExecution'](()=>_0x5e88e3(_0x39fc1f,null,_0x944274)),null;}}else{const _0x22d206=_0x4dc582['getFirstRange']();_0x11417a['some'](_0x1e9ff6=>_0x1e9ff6['containsRange'](_0x22d206,!0x0))&&_0x4dc582['discard']();if(_0x11417a['every'](_0x62b630=>_0x22d206['containsRange'](_0x62b630,!0x0))){const _0x36cbe5=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'accept');return this['forceDefaultExecution'](()=>_0x36cbe5(_0x11417a,null,_0x944274)),null;}}const _0x356c2d=this['_suggestionFactory']['getSuggestionCallback']('deletion',_0x3ea71,'join');let _0x261153=null;for(const _0x4e180e of this['getSuggestions']())if(_0x4e180e['author']['id']==_0x5d7ebe['id']&&_0x4e180e['isInContent']&&'deletion'==_0x4e180e['type']&&_0x4e180e['subType']==_0x3ea71&&Lt(_0x4e180e,_0x944274)&&(_0x356c2d(_0x4e180e['getRanges'](),_0x11417a)||_0x356c2d(_0x11417a,_0x4e180e['getRanges']()))){if(_0x261153){if(_0x4e180e['commentThread']&&_0x4e180e['commentThread']['length'])continue;for(const _0x1283cd of _0x4e180e['getRanges']())_0x261153['isIntersectingWithRange'](_0x1283cd)||_0x261153['addRange'](_0x1283cd);_0x4e180e['removeMarkers']();}else{_0x261153=_0x4e180e;for(const _0x21142f of _0x11417a)_0x4e180e['isIntersectingWithRange'](_0x21142f)||_0x4e180e['addRange'](_0x21142f);}}if(_0x261153)return _0x261153;_0x20f429['clear']();for(const {suggestion:_0x2ff817,meta:_0x5884de}of this['_findSuggestions'](_0x11417a,'deletion'))_0x5884de['isOwn']&&(this['_mergeNestedSuggestions']||!_0x5884de['containsRangeInObject']&&!_0x5884de['isInsideObject'])&&Lt(_0x2ff817,_0x944274)&&_0x20f429['add'](_0x2ff817);for(const _0x4974f6 of _0x20f429){const _0x8c3de3=_0x4974f6['getRanges']();if(!_0x944274||!_0x944274['skipNestingCheck']){if(_0x11417a['every'](_0x5ccb2b=>_0x8c3de3['some'](_0x3f677f=>_0x3f677f['containsRange'](_0x5ccb2b,!0x0))))return _0x4974f6;}(!_0x4974f6['attributes']||!_0x4974f6['attributes']['skipNestingCheck'])&&(_0x8c3de3['every'](_0x492c77=>_0x11417a['some'](_0x40520f=>_0x40520f['containsRange'](_0x492c77,!0x0)))&&_0x4974f6['discard']());}const _0x27c97f=_0x1702d8(),_0x422f7e=_0x5d7ebe['id'],_0x329ec8='deletion:'+_0x3ea71,_0x5af083=this['_setSuggestionData']({'id':_0x27c97f,'type':_0x329ec8,'createdAt':new Date(),'authorId':_0x422f7e,'attributes':_0x944274});for(const _0x20636b of _0x11417a)_0x20636b['detach'](),_0x20636b['isCollapsed']||'$graveyard'==_0x20636b['root']['rootName']||this['_addSuggestionMarker'](_0x329ec8,_0x27c97f,_0x422f7e,_0x20636b,u['getMultiRangeId']());return _0x5af083;}['markAttributeChange'](_0x138774,_0x13e62c,_0x3a2a46,_0x4a9afb,_0x2ec5b9){if(_0x138774['isCollapsed'])return[];if('never'===this['_trackFormatChanges'])return[];const _0x1fb60b=this['editor']['plugins']['get']('Users')['me']['id'],_0xe4cf09=Array['from'](this['_suggestions']['values']())['filter'](_0x2eb6bb=>'attribute'==_0x2eb6bb['type']&&_0x2eb6bb['data']['key']==_0x13e62c&&_0x2eb6bb['isIntersectingWithRange'](_0x138774));if('default'===this['_trackFormatChanges']){const _0x149b37=this['_findSuggestions'](_0x138774,'insertion')['filter'](({meta:_0x12a2aa})=>_0x12a2aa['isOwn']&&!_0x12a2aa['isInsideObject']&&!_0x12a2aa['isNextTo'])['map'](({suggestion:_0x26033e})=>_0x26033e);_0xe4cf09['unshift'](..._0x149b37);}const _0x430a86=new Map([[_0x138774,_0x3a2a46]]);for(const _0x8b78ee of _0xe4cf09){const _0x38d38d='attribute'==_0x8b78ee['type']?_0x8b78ee['data']['oldValue']:void 0x0,_0x388963=_0x8b78ee['getFirstRange'](),_0x2d99bc=Array['from'](_0x430a86['keys']())['find'](_0x56867f=>_0x56867f['isIntersecting'](_0x388963));if(!_0x2d99bc)continue;const _0x892fd4=_0x2d99bc['getDifference'](_0x388963);this['_isBlockAttribute'](_0x13e62c)&&'insertion'==_0x8b78ee['type']&&0x0!=_0x892fd4['length']||(_0x430a86['delete'](_0x2d99bc),_0x892fd4['forEach'](_0x36456a=>{_0x430a86['set'](_0x36456a,_0x3a2a46);}),'insertion'!=_0x8b78ee['type']&&_0x38d38d!=_0x4a9afb&&_0x430a86['set'](_0x2d99bc['getIntersection'](_0x388963),_0x38d38d));}const _0x28118f=[];for(const [_0x4b968a,_0x4fccd3]of _0x430a86){const _0x15487a=_0x1702d8(),_0x122483={'key':_0x13e62c,'oldValue':_0x4fccd3,'newValue':_0x4a9afb};_0x13e62c['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':_0x13e62c});const _0x2e72f4=('attribute:'+(_0x13e62c+'|'+Vt({'newValue':_0x4a9afb})))['substring'](0x0,0x3c),_0x1cc4cf=this['_setSuggestionData']({'id':_0x15487a,'type':_0x2e72f4,'data':_0x122483,'createdAt':new Date(),'authorId':_0x1fb60b,'attributes':_0x2ec5b9});_0x28118f['push'](_0x1cc4cf),this['_addSuggestionMarker'](_0x2e72f4,_0x15487a,_0x1fb60b,_0x4b968a);}return _0x28118f;}['_registerBlockAttribute'](_0x5d8c6b){this['_blockAttributeKeys']['add'](_0x5d8c6b);}['_registerInlineAttribute'](_0x2976b1){this['_inlineAttributeKeys']['add'](_0x2976b1);}['_enableDefaultAttributesIntegration'](_0x222dad,_0x280403=[],_0x55566f=[]){this['enableCommand'](_0x222dad,(_0x3a9aed,..._0x2477de)=>{this['_recordAttributeChanges'](()=>{_0x3a9aed(..._0x2477de);});});for(const _0x8d603e of _0x280403)this['_registerInlineAttribute'](_0x8d603e);for(const _0x1769b6 of _0x55566f)this['_registerBlockAttribute'](_0x1769b6);}['_getAttributeKey'](_0x5b2532){return'attribute'==_0x5b2532['type']?_0x5b2532['subType']['split']('|')[0x0]:null;}['_setSuggestionRange'](_0x5f1748,_0x2a9d9d){const _0x777840=_0x5f1748['getFirstMarker']();this['_model']['change'](_0xd203c3=>{_0xd203c3['updateMarker'](_0x777840,{'range':_0x2a9d9d});});}['_addThreadToSuggestion'](_0x4beccf){const _0x40e9c0=_0x4beccf['id'],_0x1f46ea=this['editor']['config']['get']('collaboration.channelId');this['_commentsRepository']['hasCommentThread'](_0x40e9c0)||this['_commentsRepository']['addCommentThread']({'channelId':_0x1f46ea,'threadId':_0x40e9c0,'isResolvable':!0x1,'isSubmitted':!0x0});const _0x3e158c=this['_commentsRepository']['getCommentThread'](_0x40e9c0);_0x3e158c['unbind']('isRemovable'),_0x3e158c['isRemovable']=!0x1,_0x4beccf['commentThread']=_0x3e158c;}['_checkSuggestionCorrectness'](_0x52b611,_0x179fa3,_0x53774f,_0x88f143){if(_0x52b611['type']!=_0x179fa3||_0x52b611['subType']!=_0x53774f||_0x52b611['creator']['id']!=_0x88f143)throw this['editor']['enableReadOnlyMode']('track-changes-suggestion-data-mismatch'),new _0x215eab('track-changes-suggestion-data-mismatch',this);}['_cutOutSuggestionMarker'](_0x43fe22,_0x187cb4){const _0x2f523b=_0x43fe22['getFirstRange']();if(_0x187cb4['isEqual'](_0x2f523b))_0x43fe22['removeMarkers']();else{if(_0x2f523b['containsRange'](_0x187cb4)){const _0x1f6a58=this['_model']['createPositionAt'](_0x187cb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x2f523b['start'],_0x1f6a58));const _0x306c75=_0x1702d8(),_0xea1ef0=_0x43fe22['creator']['id'],_0x18f8fe=_0x43fe22['type']+':'+_0x43fe22['subType'];this['_setSuggestionData']({'id':_0x306c75,'type':_0x18f8fe,'createdAt':new Date(),'authorId':_0xea1ef0,'data':_0x43fe22['data'],'attributes':_0x43fe22['attributes']});const _0x27c0cc=this['_model']['createPositionAt'](_0x187cb4['end']['parent'],'after'),_0x27f574=this['_model']['createRange'](_0x27c0cc,_0x2f523b['end']);this['_addSuggestionMarker'](_0x18f8fe,_0x306c75,_0xea1ef0,_0x27f574);}else{if(_0x2f523b['containsPosition'](_0x187cb4['start'])){const _0x2e1584=this['_model']['createPositionAt'](_0x187cb4['start']['nodeBefore'],'end');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x2f523b['start'],_0x2e1584));}else{const _0x289174=this['_model']['createPositionAt'](_0x187cb4['end']['parent'],'after');this['_setSuggestionRange'](_0x43fe22,this['_model']['createRange'](_0x289174,_0x2f523b['end']));}}}}['_rangeIsInLocalUserInsertion'](_0x47a539){for(const {suggestion:_0x29697b,meta:_0x181df8}of this['_findSuggestions'](_0x47a539,'insertion')){if(!_0x181df8['isOwn'])continue;const _0x423f4b=_0x29697b['getRanges']();for(const _0x35583a of _0x423f4b)if(!_0x47a539['getDifference'](_0x35583a)['length'])return!0x0;}return!0x1;}['_getAuthorFromId'](_0xe2a66b){const _0x1536d4=this['editor']['plugins']['get']('Users')['getUser'](_0xe2a66b);if(!_0x1536d4)throw new _0x215eab('track-changes-user-not-found',this);return _0x1536d4;}['_getExternalAuthor'](_0x4d0f43){const _0x2d69c4=this['editor']['plugins']['get']('Users'),_0x57e5d9=_0x37c9d3('external:'+_0x4d0f43),_0x410e12=_0x2d69c4['getUser'](_0x57e5d9);return _0x410e12||_0x2d69c4['addUser']({'id':_0x57e5d9,'name':_0x4d0f43});}['_createSuggestion'](_0x598297,_0x56b266,_0x3e6e63,_0x55da46,_0x4e6a8c){const _0x22ba03=this['_getAuthorFromId'](_0x55da46),_0x4ee6ef=this['_suggestionFactory']['buildSuggestion'](_0x598297,_0x56b266,_0x3e6e63,_0x22ba03,_0x4e6a8c,_0x44eb78=>{this['_updateSuggestionData'](_0x3e6e63,{'attributes':_0x44eb78});const _0x53f252=this['getSuggestion'](_0x3e6e63);this['_joinWithAdjacentSuggestions'](new Set([_0x53f252])),this['_refreshSuggestionsChain'](new Set([_0x53f252]));});return this['listenTo'](_0x4ee6ef,'accept',()=>{this['_updateSuggestionData'](_0x3e6e63,{'state':'accepted'});},{'priority':'high'}),this['listenTo'](_0x4ee6ef,'discard',()=>{this['_updateSuggestionData'](_0x3e6e63,{'state':'rejected'});},{'priority':'high'}),this['_suggestions']['set'](_0x3e6e63,_0x4ee6ef),this['_suggestionState']['set'](_0x4ee6ef,'notReady'),_0x4ee6ef;}['_splitMarkerName'](_0x4de40a){const _0x534dd6=_0x4de40a['split'](':');return{'group':_0x534dd6[0x0],'type':_0x534dd6[0x1],'subType':_0x534dd6['length']>=0x5?_0x534dd6[0x2]:null,'id':_0x534dd6['length']<0x5?_0x534dd6[0x2]:_0x534dd6[0x3],'authorId':_0x534dd6['length']<0x5?_0x534dd6[0x3]:_0x534dd6[0x4],'markerCount':0x6==_0x534dd6['length']?_0x534dd6[0x5]:null};}['_breakSuggestionMarker'](_0x37419d,_0x29a885,_0x59f839){const _0x253b4d=_0x37419d['getFirstRange'](),_0x52284a=_0x253b4d['start'],_0x481e42=_0x253b4d['end'];this['_setSuggestionRange'](_0x37419d,this['_model']['createRange'](_0x52284a,_0x29a885));const _0x5e1278=_0x1702d8(),_0x41d92c=_0x37419d['creator']['id'],_0xcb4afb=_0x37419d['type']+(_0x37419d['subType']?':'+_0x37419d['subType']:'');this['_setSuggestionData']({'id':_0x5e1278,'type':_0xcb4afb,'createdAt':new Date(),'authorId':_0x41d92c,'originalSuggestionId':_0x37419d['id'],'attributes':_0x37419d['attributes'],'data':_0x37419d['data']});const _0x2fd3f0=this['_getAttributeKey'](_0x37419d);('formatBlock'==_0x37419d['type']||_0x2fd3f0&&this['_isBlockAttribute'](_0x2fd3f0))&&(_0x59f839=this['_model']['createPositionBefore'](_0x59f839['parent'])),this['_addSuggestionMarker'](_0xcb4afb,_0x5e1278,_0x41d92c,this['_model']['createRange'](_0x59f839,_0x481e42));}['_findSuggestions'](_0x46ffb6,_0x262d06=null){const _0x483c49=[],_0x5e23b9=this['editor']['plugins']['get']('Users')['me'];Array['isArray'](_0x46ffb6)||(_0x46ffb6=[_0x46ffb6]);for(const _0x339f15 of this['getSuggestions']()){if(!_0x339f15['isInContent'])continue;if(_0x262d06&&_0x339f15['type']!=_0x262d06)continue;let _0x1e1f3c=!0x1;for(const _0x44662a of _0x339f15['getRanges']()){for(const _0x5c28fa of _0x46ffb6){const _0x318da2=_0x5c28fa['start']['isEqual'](_0x44662a['end'])||_0x5c28fa['end']['isEqual'](_0x44662a['start']);if(_0x318da2||_0x5c28fa['getIntersection'](_0x44662a)){const _0x577043=_0x5c28fa['containsRange'](_0x44662a)&&Rt(this['_model']['schema'],_0x44662a['start'],_0x5c28fa),_0x20b82c=_0x44662a['containsRange'](_0x5c28fa)&&Rt(this['_model']['schema'],_0x5c28fa['start'],_0x44662a);_0x483c49['push']({'suggestion':_0x339f15,'meta':{'isOwn':_0x5e23b9==_0x339f15['author'],'isNextTo':_0x318da2,'isInsideObject':_0x577043,'containsRangeInObject':_0x20b82c}}),_0x1e1f3c=!0x0;break;}}if(_0x1e1f3c)break;}}return _0x483c49;}['_addSuggestionMarker'](_0x9aff2a,_0x17626c,_0xd0e10e,_0x106388,_0x3ee7c5){this['_model']['change'](_0x2ca4b7=>{let _0x3da8fe='suggestion:'+_0x9aff2a+':'+_0x17626c+':'+_0xd0e10e;_0x3ee7c5&&(_0x3da8fe=_0x3da8fe+':'+_0x3ee7c5),_0x2ca4b7['addMarker'](_0x3da8fe,{'range':_0x106388,'usingOperation':!0x0,'affectsData':!0x0});});}['_removeSuggestion'](_0x18b255){const _0x424741=_0x18b255['previous'],_0x384c1f=_0x18b255['next'];_0x18b255['previous']=null,_0x18b255['next']=null,null!=_0x424741&&_0x424741['next']==_0x18b255&&(_0x424741['next']=_0x384c1f),null!=_0x384c1f&&_0x384c1f['previous']==_0x18b255&&(_0x384c1f['previous']=_0x424741),'ready'==this['_suggestionState']['get'](_0x18b255)&&(this['_suggestionState']['set'](_0x18b255,'removed'),this['fire']('suggestionUnloaded',_0x18b255,_0x424741,_0x384c1f));}['_setSuggestionData'](_0x53b346){const _0x3673a4=_0x53b346['id'],_0x5b93e9=this['addSuggestionData'](_0x53b346);if(this['_adapter']&&this['_adapter']['addSuggestion']){const _0x27ac3a=this['editor']['plugins']['get']('PendingActions'),_0xa4a0cb=_0x5b93e9['hasComments'],_0x1669ab=_0x5b93e9['subType']?_0x5b93e9['type']+':'+_0x5b93e9['subType']:_0x5b93e9['type'],_0x4b7eae=this['editor']['locale'],_0x363380=_0x27ac3a['add'](o(_0x4b7eae,'PENDING_ACTION_SUGGESTION')),_0x151827={'id':_0x3673a4,'type':_0x1669ab,'hasComments':_0xa4a0cb,'data':_0x53b346['data']||null,'originalSuggestionId':_0x53b346['originalSuggestionId']||null,'attributes':_0x5b93e9['attributes']};this['_adapter']['addSuggestion'](_0x151827)['then'](_0x55926f=>{_0x5b93e9['_saved']=!0x0,_0x27ac3a['remove'](_0x363380),_0x55926f&&_0x55926f['createdAt']&&(this['_suggestions']['get'](_0x3673a4)['createdAt']=_0x55926f['createdAt']);})['catch'](_0xa23213=>{throw _0x234e6d('error-saving-suggestion-data-suggestion-discarded'),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},()=>{_0x5b93e9['discard']();}),_0x5b93e9['stopListening'](),this['_suggestions']['delete'](_0x5b93e9['id']),this['_suggestionState']['delete'](_0x5b93e9),_0xa23213;});}return _0x5b93e9;}['_isBlockAttribute'](_0x321a96){return this['_blockAttributeKeys']['has'](_0x321a96);}['_updateSuggestionData'](_0x338634,_0x20fc3a){const _0x5da0fc=this['editor']['plugins']['get']('PendingActions'),_0x477c79=this['getSuggestion'](_0x338634);if(this['_adapter']&&this['_adapter']['updateSuggestion']){if(_0x477c79['_saved']){const _0x5360db=_0x5da0fc['add'](o(this['editor']['locale'],'PENDING_ACTION_SUGGESTION'));this['_adapter']['updateSuggestion'](_0x338634,_0x20fc3a)['then'](()=>{_0x5da0fc['remove'](_0x5360db);});}else _0x477c79['on']('change:_saved',()=>{this['_updateSuggestionData'](_0x338634,_0x20fc3a);});}}['_getSuggestionData'](_0x941ee4){if(!this['_adapter']||!this['_adapter']['getSuggestion'])throw new _0x215eab('track-changes-adapter-missing-getsuggestion',this);return this['_adapter']['getSuggestion'](_0x941ee4);}['_handleNewSuggestionMarker'](_0x11f2ac){const {id:_0x33f3da,type:_0xbb3fa8,subType:_0xea8f58,authorId:_0x36c1e3}=this['_splitMarkerName'](_0x11f2ac),_0xac34b8=this['_suggestions']['get'](_0x33f3da)||this['_createSuggestion'](_0xbb3fa8,_0xea8f58,_0x33f3da,_0x36c1e3,{});switch(this['_checkSuggestionCorrectness'](_0xac34b8,_0xbb3fa8,_0xea8f58,_0x36c1e3),this['_suggestionState']['get'](_0xac34b8)){case'notReady':this['_getSuggestionData'](_0x33f3da)['then'](_0x4c00ca=>{let _0x5aa7cd=Promise['resolve']();_0x4c00ca['hasComments']&&(_0x5aa7cd=this['_commentsRepository']['fetchCommentThread']({'channelId':this['editor']['config']['get']('collaboration.channelId'),'threadId':_0x33f3da})),_0x5aa7cd['then'](()=>{this['addSuggestionData'](_0x4c00ca)['_saved']=!0x0;});}),this['_suggestionState']['set'](_0xac34b8,'markerReady');break;case'removed':this['_updateSuggestionData'](_0x33f3da,{'state':'open'});case'dataReady':this['_suggestionState']['set'](_0xac34b8,'ready'),this['fire']('suggestionLoaded',_0xac34b8);break;case'ready':this['fire']('suggestionChanged',_0xac34b8);}return _0xac34b8['addMarkerName'](_0x11f2ac),_0xac34b8;}['_refreshSuggestionsChain'](_0x237364){const _0x5eb05=Array['from'](_0x237364),_0x9ea16e=_0x5eb05['filter'](_0x5be585=>'attribute'==_0x5be585['type']);this['_refreshAttributeSuggestionsChain'](_0x9ea16e);const _0x3bd211=_0x5eb05['filter'](_0x41d235=>!_0x41d235['isMultiRange']&&'attribute'!=_0x41d235['type']),_0x73bcfd=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x5d6b1d=>!_0x5d6b1d['isMultiRange']&&'attribute'!=_0x5d6b1d['type']),_0x534bbb=_0x73bcfd['filter'](_0x323098=>!_0x237364['has'](_0x323098)),_0x30db64=new Map(_0x73bcfd['map'](_0x171df8=>[_0x171df8,this['_suggestionFactory']['getSuggestionCallback'](_0x171df8['type'],_0x171df8['subType'],'chain')])),_0x119d49=new Map(_0x73bcfd['map'](_0x3d6447=>[_0x3d6447,_0x3d6447['getFirstRange']()])),_0x1ce9cc=new Set(),_0x46ac76=new Set();for(let _0x1efa15=0x0;_0x1efa15<_0x3bd211['length'];_0x1efa15++)_0x492955(_0x3bd211[_0x1efa15],_0x3bd211,_0x1efa15+0x1);for(let _0x2ac4ed=0x0;_0x2ac4ed<_0x3bd211['length'];_0x2ac4ed++)_0x492955(_0x3bd211[_0x2ac4ed],_0x534bbb,0x0);const _0x579b8b=new Set();for(let _0x1e9505=0x0;_0x1e9505<_0x3bd211['length'];_0x1e9505++){const _0x2d5896=_0x3bd211[_0x1e9505];!_0x46ac76['has'](_0x2d5896)&&_0x2d5896['previous']&&(_0x579b8b['add'](_0x2d5896['previous']),_0x2d5896['previous']['next']===_0x2d5896&&(_0x2d5896['previous']['next']=null),_0x2d5896['previous']=null),!_0x1ce9cc['has'](_0x2d5896)&&_0x2d5896['next']&&(_0x579b8b['add'](_0x2d5896['next']),_0x2d5896['next']['previous']===_0x2d5896&&(_0x2d5896['next']['previous']=null),_0x2d5896['next']=null);}function _0x492955(_0x5649b8,_0x512435,_0x52dd32){for(let _0x3d77f3=_0x52dd32;_0x3d77f3<_0x512435['length'];_0x3d77f3++){const _0x31a67a=_0x30d850(_0x5649b8,_0x512435[_0x3d77f3]);_0x31a67a&&(_0x31a67a[0x0]['next']=_0x31a67a[0x1],_0x31a67a[0x1]['previous']=_0x31a67a[0x0],_0x1ce9cc['add'](_0x31a67a[0x0]),_0x46ac76['add'](_0x31a67a[0x1]));}}function _0x30d850(_0xa1baf2,_0x59f9c8){if(_0xa1baf2['author']['id']!==_0x59f9c8['author']['id'])return null;const _0x2edeb5=_0x30db64['get'](_0xa1baf2)(_0xa1baf2,_0x59f9c8,_0x119d49['get'](_0xa1baf2),_0x119d49['get'](_0x59f9c8));if(!_0x2edeb5)return null;return _0x30db64['get'](_0x59f9c8)(_0xa1baf2,_0x59f9c8,_0x119d49['get'](_0xa1baf2),_0x119d49['get'](_0x59f9c8))?_0x2edeb5[0x1]['commentThread']&&_0x2edeb5[0x1]['commentThread']['length']?null:_0x2edeb5:null;}_0x579b8b['size']&&this['_refreshSuggestionsChain'](_0x579b8b);}['_refreshAttributeSuggestionsChain'](_0x12f10c){if(0x0==_0x12f10c['length'])return;const _0xe599fc=this['getSuggestions']({'skipNotAttached':!0x0})['filter'](_0x310d06=>'attribute'==_0x310d06['type']&&_0x310d06['_isDataLoaded']),_0x5ae7bb=[],_0x5b7143=new Map();for(const _0x5e6dea of _0xe599fc){const _0x4ea641=_0x37c9d3(_0x5e6dea['attributes']);_0x5b7143['has'](_0x4ea641)||(_0x5b7143['set'](_0x4ea641,_0x5ae7bb['length']),_0x5ae7bb['push']([]));const _0x26125a=_0x5b7143['get'](_0x4ea641);_0x5ae7bb[_0x26125a]['push'](_0x5e6dea);}!(function(){_0x5ae7bb['sort']((_0x2cca4f,_0x3a5a05)=>{const _0x2a3165=_0x2cca4f[0x0]['createdAt'],_0x418964=_0x3a5a05[0x0]['createdAt'];return _0x2a3165==_0x418964?_0x2cca4f[0x0]['attributes']['groupId']<_0x3a5a05[0x0]['attributes']['groupId']?-0x1:0x1:_0x2a3165<_0x418964?-0x1:0x1;});for(const _0x41cbca of _0x5ae7bb)_0x41cbca['sort']((_0x5cd55a,_0x2c543c)=>_0x5cd55a['id']<_0x2c543c['id']?-0x1:0x1);}());for(let _0x224f84=0x0;_0x224f84<_0x5ae7bb['length'];_0x224f84++){if(0x0==_0x5ae7bb[_0x224f84]['length'])continue;const _0x51245d=[];for(let _0x2f3028=_0x224f84+0x1;_0x2f3028<_0x5ae7bb['length'];_0x2f3028++)0x0!=_0x5ae7bb[_0x2f3028]['length']&&_0x62df66(_0x5ae7bb[_0x224f84],_0x5ae7bb[_0x2f3028])&&_0x51245d['push'](_0x2f3028);for(const _0x58fe0d of _0x51245d)_0x5ae7bb[_0x224f84]=_0x5ae7bb[_0x224f84]['concat'](_0x5ae7bb[_0x58fe0d]),_0x5ae7bb[_0x58fe0d]=[];}for(const _0x21347a of _0x5ae7bb)for(let _0x55ced6=0x0;_0x55ced6<_0x21347a['length'];_0x55ced6++)_0x21347a[_0x55ced6]['next']=_0x21347a[_0x55ced6+0x1]||null;for(const _0x58e456 of _0x5ae7bb)for(let _0x3655d1=0x0;_0x3655d1<_0x58e456['length'];_0x3655d1++)_0x58e456[_0x3655d1]['previous']=_0x58e456[_0x3655d1-0x1]||null;function _0x62df66(_0x17f7be,_0xfb8752){if(_0x17f7be[0x0]['attributes']['groupId']!==_0xfb8752[0x0]['attributes']['groupId']&&_0x17f7be[0x0]['author']!==_0xfb8752[0x0]['author'])return!0x1;if(!function(_0x524406,_0x28236a){if(!_0x524406['hasComments']&&!_0x28236a['hasComments'])return!0x0;if(_0x524406['hasComments']&&_0x28236a['hasComments'])return!0x1;if(_0x524406['hasComments']&&_0x28236a['createdAt']<_0x524406['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;if(_0x28236a['hasComments']&&_0x524406['createdAt']<_0x28236a['commentThread']['comments']['get'](0x0)['createdAt'])return!0x0;return!0x1;}(_0x17f7be[0x0],_0xfb8752[0x0]))return!0x1;const _0x63a3d1=Bt(_0x17f7be[0x0]['attributes'],'groupId'),_0x2ec3f5=Bt(_0xfb8752[0x0]['attributes'],'groupId');if(!_0x2b8b8c(_0x63a3d1,_0x2ec3f5))return!0x1;return!!_0x17f7be['every'](_0x1eb989=>_0xfb8752['some'](_0x26ba3f=>_0x1eb989['getFirstRange']()['isEqual'](_0x26ba3f['getFirstRange']())))&&_0xfb8752['every'](_0x33feca=>_0x17f7be['some'](_0x2ddc2e=>_0x33feca['getFirstRange']()['isEqual'](_0x2ddc2e['getFirstRange']())));}}['_joinWithAdjacentSuggestions'](_0x2542db){const _0x38fa62=Array['from'](_0x2542db),_0x580ec6=this['getSuggestions']({'skipNotAttached':!0x0}),_0x293885=_0x580ec6['filter'](_0xdcc40e=>!_0x2542db['has'](_0xdcc40e)),_0x125e6b=new Map(_0x38fa62['map'](_0x252114=>[_0x252114,this['_suggestionFactory']['getSuggestionCallback'](_0x252114['type'],_0x252114['subType'],'join')])),_0x21f9b5=new Map(_0x580ec6['map'](_0xcbc634=>[_0xcbc634,_0xcbc634['getRanges']()]));for(let _0x1857fa=0x0;_0x1857fa<_0x38fa62['length'];_0x1857fa++){if(_0x181bef(this,_0x38fa62[_0x1857fa],_0x38fa62,_0x1857fa+0x1))return!0x0;}for(let _0x9539f3=0x0;_0x9539f3<_0x38fa62['length'];_0x9539f3++){if(_0x181bef(this,_0x38fa62[_0x9539f3],_0x293885,0x0))return!0x0;}return!0x1;function _0x181bef(_0x4a9e2a,_0x8acb4c,_0x13ea3b,_0x3ff9ff){for(let _0x1c81c7=_0x3ff9ff;_0x1c81c7<_0x13ea3b['length'];_0x1c81c7++){const _0x2ddbbe=_0x13ea3b[_0x1c81c7];if(_0x2ddbbe['type']!==_0x8acb4c['type']||_0x2ddbbe['author']['id']!==_0x8acb4c['author']['id']||_0x2ddbbe['subType']!==_0x8acb4c['subType'])continue;if(!Pt(_0x8acb4c,_0x2ddbbe,['groupId']))continue;if('attribute'==_0x8acb4c['type']&&_0x8acb4c['data']['oldValue']!=_0x2ddbbe['data']['oldValue'])continue;if('attribute'==_0x8acb4c['type']&&_0x4a9e2a['_isBlockAttribute'](_0x8acb4c['data']['key']))continue;if('formatBlock'==_0x8acb4c['type']){const _0x4765fa=_0x4a9e2a['editor']['model'],_0x123670=_0x8acb4c['getContainedElement']();if(_0x123670&&(_0x4765fa['schema']['isObject'](_0x123670)||_0x4765fa['schema']['isLimit'](_0x123670)))continue;}const _0x5c2911=_0x125e6b['get'](_0x8acb4c),_0x4dc8ae=_0x21f9b5['get'](_0x8acb4c),_0x351cff=_0x21f9b5['get'](_0x2ddbbe),_0x17120b=_0x8acb4c['commentThread']&&_0x8acb4c['commentThread']['length'],_0x5f421e=_0x2ddbbe['commentThread']&&_0x2ddbbe['commentThread']['length'];if(!_0x17120b&&_0x5c2911(_0x351cff,_0x4dc8ae))return _0x4a9e2a['_joinSuggestions'](_0x2ddbbe,_0x8acb4c),_0x21f9b5['delete'](_0x8acb4c),!0x0;if(!_0x5f421e&&_0x5c2911(_0x4dc8ae,_0x351cff))return _0x4a9e2a['_joinSuggestions'](_0x8acb4c,_0x2ddbbe),_0x21f9b5['delete'](_0x2ddbbe),!0x0;}return!0x1;}}['_joinSuggestions'](_0xd5a6cb,_0x21a04f){if(_0xd5a6cb['isMultiRange']){for(const _0x3e2745 of _0x21a04f['getRanges']())_0xd5a6cb['addRange'](_0x3e2745);}else{const _0x788c2b=_0x21a04f['getFirstRange']()['end'];this['_setSuggestionRange'](_0xd5a6cb,this['_model']['createRange'](_0xd5a6cb['getFirstRange']()['start'],_0x788c2b));}_0x21a04f['removeMarkers']();}['_getMarkerAnnouncementText'](_0x199814,_0x53f12c){const _0x3c5a10=_0x199814['startsWith']('format')||_0x199814['startsWith']('attribute')?'FORMATTING':_0x199814['toUpperCase']();return o(this['editor']['locale'],_0x53f12c+'_'+_0x3c5a10+'_SUGGESTION_ANNOUNCEMENT');}['_initAriaMarkerChangeAnnouncements'](){const _0x49f261=this['editor'];if(!_0x49f261['ui'])return;const {ariaLiveAnnouncer:_0x1ad62d}=_0x49f261['ui'];_0x22e895(this['_model'],({left:_0x46d3a0,entered:_0x31dcbc})=>{for(const _0x290bb9 of _0x46d3a0){const {group:_0xb82257,type:_0x4d3fc2}=this['_splitMarkerName'](_0x290bb9['name']);if('suggestion'===_0xb82257){_0x1ad62d['announce'](this['_getMarkerAnnouncementText'](_0x4d3fc2,'LEAVE'));break;}}for(const _0x26d16c of _0x31dcbc){const {group:_0x1dab4d,type:_0x4453c7}=this['_splitMarkerName'](_0x26d16c['name']);if('suggestion'===_0x1dab4d){_0x1ad62d['announce'](this['_getMarkerAnnouncementText'](_0x4453c7,'ENTER'));break;}}});}['_processAttributeChanges'](_0x9aa9a4){if(this['_recordAttributeSuggestions'])return!0x1;const _0x364f84=this['editor'],_0x123496=_0x364f84['model']['document']['differ']['getChanges']();if(0x0==_0x123496['length'])return!0x1;const _0x1bc957=[],_0x3da93b=_0x123496['filter'](_0x3f0933=>'attribute'==_0x3f0933['type']),_0x3414a4=_0x123496['filter'](_0x2c5463=>'insert'==_0x2c5463['type']&&'$text'!=_0x2c5463['name']),_0x68ccce=_0x123496['filter'](_0x140f28=>'remove'==_0x140f28['type']&&'$text'!=_0x140f28['name']);for(const _0x88a976 of _0x3da93b)_0x1bc957['push']({'key':_0x88a976['attributeKey'],'newValue':_0x88a976['attributeNewValue'],'oldValue':_0x88a976['attributeOldValue'],'range':Ot(_0x88a976['range'],_0x364f84['model'])});for(const _0x37272f of _0x3414a4){const _0x167cb=_0x68ccce['find'](_0x1eee8e=>_0x1eee8e['position']['isEqual'](_0x37272f['position']));_0x167cb&&_0x1bc957['push']({'key':m,'newValue':_0x37272f['name'],'oldValue':_0x167cb['name'],'range':_0x364f84['model']['createRangeOn'](_0x37272f['position']['nodeAfter'])});}return 0x0!=_0x1bc957['length']&&this['_reduceExistingSuggestions'](_0x9aa9a4,_0x1bc957);}['_processAttributeSuggestions'](_0x13a107){let _0x31ecc8=!0x1;const _0x5e4107=this['editor']['model']['document']['differ']['getChangedMarkers']()['filter'](_0x31ae76=>_0x31ae76['data']['newRange']&&_0x31ae76['name']['startsWith']('suggestion:attribute:'));for(const _0xdd54f2 of _0x5e4107){const {subType:_0x534e2c,id:_0x628d6b}=this['_splitMarkerName'](_0xdd54f2['name']),_0x46c83d=_0x534e2c['split']('|')[0x0];for(const _0x21f8f7 of this['getSuggestions']({'skipNotAttached':!0x0}))_0x21f8f7['id']!=_0x628d6b&&'attribute'==_0x21f8f7['type']&&_0x21f8f7['data']&&_0x21f8f7['data']['key']==_0x46c83d&&_0x21f8f7['getFirstRange']()['isIntersecting'](_0xdd54f2['data']['newRange'])&&(this['_reduceSuggestionAttributeRange'](_0x21f8f7,_0xdd54f2['data']['newRange'],_0x13a107),_0x31ecc8=!0x0);}return _0x31ecc8;}['_recordAttributeChanges'](_0x4bf42f){this['editor'],this['_recordAttributeSuggestions']=!0x0,_0x4bf42f();}['_isRegisteredAttribute'](_0xf0ac30){const _0x30b40c=this['_isBlockAttribute'](_0xf0ac30),_0x370691=this['_inlineAttributeKeys']['has'](_0xf0ac30);return _0x30b40c||_0x370691;}['_reduceExistingSuggestions'](_0x5893fe,_0x5e0e70){if(0x0==_0x5e0e70['length'])return!0x1;let _0x339347=!0x1;for(const _0x11d1da of _0x5e0e70){const _0x5b606c=this['_findSuggestions'](_0x11d1da['range'],'attribute')['filter'](_0xe47149=>!_0xe47149['meta']['isNextTo'])['map'](_0x49a731=>_0x49a731['suggestion']),_0x30ee64=_0x37c9d3({'newValue':_0x11d1da['newValue']});_0x5b606c['filter'](_0x239918=>{const [_0x42c737,_0x1f6c04]=_0x239918['subType']['split']('|');return _0x42c737==_0x11d1da['key']&&_0x1f6c04!=_0x30ee64;})['forEach'](_0x5cdc20=>{this['_reduceSuggestionAttributeRange'](_0x5cdc20,_0x11d1da['range'],_0x5893fe),_0x339347=!0x0;});}return _0x339347;}['_reduceSuggestionAttributeRange'](_0x4fefd1,_0x5d0bd5,_0x87cbea){const _0x4a6893=_0x4fefd1['getFirstRange']()['getDifference'](_0x5d0bd5);0x0!==_0x4a6893['length']?0x1!==_0x4a6893['length']?this['_breakSuggestionMarker'](_0x4fefd1,_0x5d0bd5['start'],_0x5d0bd5['end']):this['_setSuggestionRange'](_0x4fefd1,_0x4a6893[0x0]):_0x87cbea['removeMarker'](_0x4fefd1['getFirstMarker']());}constructor(_0x4a5928){function _0x55782c(_0x320841){return _0x320841['map'](_0x14ca99=>String['fromCharCode'](_0x14ca99))['join']('');}super(_0x4a5928),this['_recordAttributeSuggestions']=!0x1,this['set']('activeMarkers',[]),this['on']('change:activeMarkers',(_0x2a2d71,_0x598e21,_0x89190b,_0x5368e4)=>{this['_model']['change'](()=>{for(const _0x18b0a8 of[..._0x5368e4,..._0x89190b])this['_model']['markers']['has'](_0x18b0a8)&&_0x4a5928['editing']['reconvertMarker'](_0x18b0a8);});}),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']=_0x4a5928['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(),_0x4a5928['config']['define']('trackChanges.trackFormatChanges','default'),this['_trackFormatChanges']=_0x4a5928['config']['get']('trackChanges.trackFormatChanges'),_0x4a5928['config']['define']('trackChanges.mergeNestedSuggestions',!0x0),this['_mergeNestedSuggestions']=_0x4a5928['config']['get']('trackChanges.mergeNestedSuggestions'),this['trackChangesCommand']=new M(_0x4a5928,this['_enabledCommands']),this['_initAriaMarkerChangeAnnouncements'](),this[_0x55782c([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])]=_0x55782c([0x34,0x30,0x34,0x38,0x30,0x38,0x36,0x30]);}}class xt{['buildSuggestion'](_0x187ca8,_0x52bfab,_0x17a1ad,_0x20a24d,_0x22bae4,_0xc8a54b){return new u(this['_model'],{'type':_0x187ca8,'subType':_0x52bfab,'id':_0x17a1ad,'author':_0x20a24d,'creator':_0x20a24d,'attributes':_0x22bae4,'onAttributesChange':_0xc8a54b,'onAccept':(..._0x2f6690)=>this['getSuggestionCallback'](_0x187ca8,_0x52bfab,'accept')(..._0x2f6690),'onDiscard':(..._0x13fd44)=>this['getSuggestionCallback'](_0x187ca8,_0x52bfab,'discard')(..._0x13fd44)});}['registerCustomCallback'](_0xfb0307,_0x5e58b1,_0x3e9050,_0x47959a){const _0x12f019=_0xfb0307+':'+_0x5e58b1+':'+_0x3e9050;this['_customCallbacks']['set'](_0x12f019,_0x47959a);}['getSuggestionCallback'](_0x7d43dc,_0x2cef00,_0x18e8fe){const _0x4e3bd1=_0x7d43dc+':'+_0x2cef00+':'+_0x18e8fe;return this['_customCallbacks']['get'](_0x4e3bd1)||this['_defaultCallbacks']['get'](_0x7d43dc+':'+_0x18e8fe);}['_registerDefaultCallbacks'](){const _0x122b03=()=>!0x1,_0x4a873c=_0x2c91e2=>{_0x2c91e2['sort']((_0x256f17,_0x380739)=>_0x256f17['start']['isBefore'](_0x380739['start'])?0x1:-0x1),this['_model']['change'](_0x529877=>{for(const _0x506a79 of _0x2c91e2){let _0x220a55;_0x220a55=_0x506a79['end']['isAtEnd']&&_0x506a79['end']['parent']==_0x506a79['start']['nodeAfter']?_0x529877['createSelection'](_0x506a79['start']['nodeAfter'],'on'):_0x529877['createSelection'](_0x506a79),this['_model']['deleteContent'](_0x220a55,{'forceDefaultExecution':!0x0,'doNotAutoparagraph':!0x0});}});},_0x50b5a3=(_0x5b2595,_0xbfef9a)=>{_0xbfef9a&&this['_model']['change'](_0x442578=>{const {commandName:_0x49089a,commandParams:_0x4aabcb=[]}=_0xbfef9a,_0xa5354e=_0x5b2595['map'](_0x2a9f98=>(Tt(_0x2a9f98)&&(_0x2a9f98=this['_model']['createRange'](_0x2a9f98['end'])),_0x2a9f98))['filter'](_0x34c373=>'$graveyard'!==_0x34c373['root']['rootName']);if(_0xa5354e['length']<0x1)return;const _0xda997c=Array['from'](this['_model']['document']['selection']['getRanges']())['map'](_0x461ec7=>_0x577a36['fromRange'](_0x461ec7));_0x442578['setSelection'](_0xa5354e);for(const _0x3deefa of this['_editor']['commands']['commands']())_0x3deefa['refresh']();_0x4aabcb['push']({'forceDefaultExecution':!0x0}),this['_editor']['execute'](_0x49089a,..._0x4aabcb);const _0x2f504f=_0xda997c['filter'](_0x5504a5=>'$graveyard'!=_0x5504a5['root']['rootName']);_0x2f504f['length']>0x0&&_0x442578['setSelection'](_0x2f504f);for(const _0xfbb512 of _0xda997c)_0xfbb512['detach']();});},_0x3c24f0=(_0x43d1df,_0x37cab7)=>0x1==_0x43d1df['length']&&0x1==_0x37cab7['length']&&_0x43d1df[0x0]['end']['isEqual'](_0x37cab7[0x0]['start']),_0x51c7d6=(_0x41222c,_0x27a546,_0x5ad27a,_0x5d738a)=>Ft(_0x41222c,_0x27a546,_0x5ad27a,_0x5d738a,this['_model'])?[_0x41222c,_0x27a546]:Ft(_0x27a546,_0x41222c,_0x5d738a,_0x5ad27a,this['_model'])?[_0x27a546,_0x41222c]:null;this['_defaultCallbacks']['set']('insertion:accept',_0x122b03),this['_defaultCallbacks']['set']('insertion:discard',_0x4a873c),this['_defaultCallbacks']['set']('insertion:join',_0x3c24f0),this['_defaultCallbacks']['set']('insertion:chain',_0x51c7d6),this['_defaultCallbacks']['set']('deletion:accept',_0x4a873c),this['_defaultCallbacks']['set']('deletion:discard',_0x122b03),this['_defaultCallbacks']['set']('deletion:join',_0x3c24f0),this['_defaultCallbacks']['set']('deletion:chain',_0x51c7d6),this['_defaultCallbacks']['set']('formatInline:accept',_0x50b5a3),this['_defaultCallbacks']['set']('formatInline:discard',_0x122b03),this['_defaultCallbacks']['set']('formatInline:join',_0x3c24f0),this['_defaultCallbacks']['set']('formatInline:chain',_0x122b03),this['_defaultCallbacks']['set']('formatBlock:accept',_0x50b5a3),this['_defaultCallbacks']['set']('formatBlock:discard',_0x122b03),this['_defaultCallbacks']['set']('formatBlock:join',_0x3c24f0),this['_defaultCallbacks']['set']('formatBlock:chain',_0x122b03),this['_defaultCallbacks']['set']('attribute:accept',_0x122b03),this['_defaultCallbacks']['set']('attribute:discard',(_0x4aee77,_0x20d4c8)=>{if(!_0x20d4c8)return;const _0x18de2e=this['_editor']['plugins']['get'](p);this['_model']['change'](_0xcdf222=>{if(_0x20d4c8['key']==m)for(const _0x546d0f of _0x4aee77){const _0x53f939=_0x546d0f['start']['nodeAfter'],_0x6a2c8e=_0x20d4c8['oldValue'];_0xcdf222['rename'](_0x53f939,_0x6a2c8e);}else{if(_0x18de2e['_isBlockAttribute'](_0x20d4c8['key'])){for(const _0xa6e32d of _0x4aee77)void 0x0!==_0x20d4c8['oldValue']?_0xcdf222['setAttribute'](_0x20d4c8['key'],_0x20d4c8['oldValue'],_0xa6e32d['start']['nodeAfter']):_0xcdf222['removeAttribute'](_0x20d4c8['key'],_0xa6e32d['start']['nodeAfter']);}else{for(const _0x138ead of _0x4aee77)_0x20d4c8['oldValue']?_0xcdf222['setAttribute'](_0x20d4c8['key'],_0x20d4c8['oldValue'],_0x138ead):_0xcdf222['removeAttribute'](_0x20d4c8['key'],_0x138ead);}}});}),this['_defaultCallbacks']['set']('attribute:join',_0x3c24f0);}constructor(_0x1b8d40){this['_editor']=_0x1b8d40,this['_model']=_0x1b8d40['model'],this['_customCallbacks']=new Map(),this['_defaultCallbacks']=new Map(),this['_registerDefaultCallbacks']();}}function Rt(_0xd46d93,_0x2ba455,_0xb2bb1f){for(const _0x44e2a2 of _0x2ba455['parent']['getAncestors']({'includeSelf':!0x0,'parentFirst':!0x0})){if(_0x44e2a2['root']==_0x44e2a2)return!0x1;if(!_0xb2bb1f['containsItem'](_0x44e2a2))return!0x1;if(_0xd46d93['isObject'](_0x44e2a2)||_0xd46d93['isLimit'](_0x44e2a2))return!0x0;}return!0x1;}function Tt(_0x212671){return _0x212671['end']['parent']==_0x212671['start']['nodeAfter']&&_0x212671['end']['isAtStart'];}function Et(_0xe1b50e,_0x17bd67,_0x26c439,_0x3148ec){const _0x2f19a7=_0x35acbe=>!_0x35acbe['item']['is']('$textProxy')&&!_0x3148ec['isObject'](_0x35acbe['item']),_0x308d3b=_0xe1b50e['start']['getLastMatchingPosition'](_0x2f19a7),_0x503b17=_0xe1b50e['end']['getLastMatchingPosition'](_0x2f19a7,{'direction':'backward'});return(!_0xe1b50e['start']['isEqual'](_0x308d3b)||!_0xe1b50e['end']['isEqual'](_0x503b17))&&(_0x308d3b['isBefore'](_0x503b17)?_0x26c439['updateMarker'](_0x17bd67,{'range':_0x26c439['createRange'](_0x308d3b,_0x503b17)}):_0x26c439['removeMarker'](_0x17bd67),!0x0);}function Vt(_0x4c7b21){return _0x37c9d3(_0x4c7b21);}function Ut(_0x5d1354){const _0xba4919=_0x5d1354['start']['nodeAfter'];return _0xba4919&&_0xba4919['is']('element');}function Ot(_0x5cddf7,_0x2282f3){return null==_0x5cddf7['end']['nodeBefore']&&_0x5cddf7['end']['parent']==_0x5cddf7['start']['nodeAfter']?Gt(_0x5cddf7['start']['nodeAfter'],_0x2282f3):_0x5cddf7;}function Gt(_0x257bdf,_0x307015){const _0x5df99a=_0x307015['schema']['isObject'](_0x257bdf)||_0x307015['schema']['isSelectable'](_0x257bdf);return _0x307015['createRange'](_0x307015['createPositionAt'](_0x257bdf,'before'),_0x5df99a?_0x307015['createPositionAfter'](_0x257bdf):_0x307015['createPositionAt'](_0x257bdf,'end'));}function Ft(_0xaf21fc,_0x1371b2,_0x906aff,_0x991495,_0x21fa0d){if(!Pt(_0xaf21fc,_0x1371b2))return!0x1;if(_0x906aff['end']['isEqual'](_0x991495['start']))return!0x0;if(_0xaf21fc['type']!=_0x1371b2['type'])return!0x1;if(!_0x906aff['end']['isTouching'](_0x991495['start']))return!0x1;const _0x1eab18=_0x21fa0d['createRange'](_0x906aff['end'],_0x991495['start'])['getWalker']();for(const _0x186487 of _0x1eab18)if(['elementStart','elementEnd']['includes'](_0x186487['type'])&&_0x21fa0d['schema']['isLimit'](_0x186487['item']))return!0x1;return!0x0;}function Pt(_0x3e45ad,_0x19e99a,_0x193bbb=[]){return!(!_0x3e45ad['_isDataLoaded']||!_0x19e99a['_isDataLoaded'])&&_0x2b8b8c(Bt(_0x3e45ad['attributes'],_0x193bbb),Bt(_0x19e99a['attributes'],_0x193bbb));}function Lt(_0x501d8d,_0x2ed1a6){const _0x56d997=Ht(_0x501d8d['attributes']),_0x2fc0fe=Ht(_0x2ed1a6);if(!_0x501d8d['_isDataLoaded'])return!0x1;for(const _0x1145b0 of Object['keys'](_0x2fc0fe))if(!_0x2b8b8c(_0x56d997[_0x1145b0],_0x2fc0fe[_0x1145b0]))return!0x1;return!0x0;}function Ht(_0x21816d){const _0x23da80=Object['assign']({},_0x21816d);return delete _0x23da80['skipNestingCheck'],delete _0x23da80['tablePasteChainId'],_0x23da80;}class oe extends _0xa1677b(){['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 _0x1eccf0=o(this['_editor']['locale'],'PENDING_ACTION_SUGGESTION');this['_pendingAction']=this['_editor']['plugins']['get']('PendingActions')['add'](_0x1eccf0);}['_removePendingAction'](){null!==this['_pendingAction']&&this['_editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null;}constructor(_0x1500b7,_0x46fa56,_0x5930e1,_0x57921f){super(),this['model']=_0x46fa56,this['view']=_0x5930e1,this['commentThreadController']=_0x57921f,this['_editor']=_0x1500b7,this['_acceptCommand']=_0x1500b7['commands']['get']('acceptSuggestion'),this['_discardCommand']=_0x1500b7['commands']['get']('discardSuggestion'),this['view']['bind']('isEnabled')['to'](this['_acceptCommand'],this['_discardCommand'],(_0x12d29e,_0x44037c)=>_0x12d29e||_0x44037c),this['view']['bind']('canAccept')['to'](this['_acceptCommand'],'isEnabled',_0x4f2950=>_0x4f2950&&this['_editor']['model']['canEditAt'](_0x46fa56['getRanges']())),this['view']['bind']('canDiscard')['to'](this['_discardCommand'],'isEnabled',_0x1cd9ed=>_0x1cd9ed&&this['_editor']['model']['canEditAt'](_0x46fa56['getRanges']())),this['_pendingAction']=null,_0x5930e1['isDirty']&&this['_setPendingAction'](),this['listenTo'](_0x5930e1,'acceptSuggestion',()=>this['acceptSuggestion']()),this['listenTo'](_0x5930e1,'discardSuggestion',()=>this['discardSuggestion']()),this['listenTo'](_0x5930e1,'change:isDirty',()=>{_0x5930e1['isDirty']?this['_setPendingAction']():this['_removePendingAction']();});}}class es extends _0x428534{['focus'](){this['element']['focus']();}['destroy'](){this['commentsListView']&&this['commentsListView']['destroy'](),this['commentThreadInputView']&&this['commentThreadInputView']['destroy'](),super['destroy']();}['_createCommentViews'](){const {CommentsListView:_0x53661f}=this['_config'];this['commentsListView']=new _0x53661f(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',_0x29614c=>_0x29614c+0x1),this['commentThreadInputView']=this['_createCommentThreadInputView'](),this['on']('removeComment',()=>this['focus']()),this['bind']('isDirty')['to'](this['commentsListView'],'hasDirtyComment',this['commentThreadInputView']['commentInputView'],'value',(_0x4f3839,_0x622ca0)=>_0x4f3839||!!_0x622ca0);}['_createCommentThreadInputView'](){const {CommentThreadInputView:_0x4308be}=this['_config'],_0x2504ff=new _0x4308be(this['locale'],this['_localUser'],this['_config']['editorConfig']),_0x4046a6=_0x2504ff['commentInputView'];return _0x2504ff['bind']('showInput')['to'](this,'isActive',this['_model']['commentThread'],'isReadOnly',_0x4046a6,'value',(_0x18a2cb,_0x80cc0f,_0x21c6c4)=>!!_0x21c6c4||_0x18a2cb&&!_0x80cc0f),_0x4046a6['on']('submit',(_0x4f9dda,_0x14ecc9)=>{this['fire']('addComment',_0x14ecc9),_0x4046a6['editor']['setData']('');}),_0x4046a6['on']('cancel',()=>this['focus']()),_0x4046a6['bind']('disabledSubmit')['to'](this['_model']['commentThread'],'isReadOnly'),_0x2504ff;}constructor(_0x154edf,_0x54289f,_0x33ccc3,_0xf6cf13){super(_0x154edf),this['commentsListView']=null,this['commentThreadInputView']=null,this['set']('isActive',!0x1),this['set']('authoredAt',_0x54289f['authoredAt']),this['bind']('authoredAt')['to'](_0x54289f),this['set']('descriptionParts',[]),this['set']('isDirty',!0x1),this['set']('isEnabled',!0x1),this['set']('canAccept',!0x1),this['set']('canDiscard',!0x1),this['_model']=_0x54289f,this['_localUser']=_0x33ccc3,this['_config']=_0xf6cf13,_0xf6cf13['disableComments']?this['set']('length',0x1):this['_createCommentViews']();}}class ne extends es{['getTemplate'](){const _0x109f5e=this['bindTemplate'],_0x46f70d=[{'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':_0x109f5e['to']('authoredAt'),'class':['ck-comment__info-time','ck-annotation__info-time']},'children':[{'text':_0x109f5e['to']('authoredAt',_0x21302e=>this['_config']['formatDateTime'](_0x21302e))}]}]},{'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']&&_0x46f70d['push']({'tag':'div','attributes':{'class':['ck-comment__external']},'children':[{'text':this['getExternalSuggestionNote']()}]});const _0xee02a={'tag':'div','attributes':{'class':['ck-suggestion-wrapper',_0x109f5e['if']('isActive','ck-suggestion-wrapper--active'),_0x109f5e['to']('type',_0x59aed6=>'ck-suggestion-'+_0x59aed6),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':_0x46f70d}]}]};return this['commentsListView']&&this['commentThreadInputView']&&(_0xee02a['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)),_0xee02a;}['render'](){super['render'](),this['_descriptionElement']=this['element']['querySelector']('.ck-annotation__content-wrapper'),this['_descriptionElement']['innerHTML']=this['description'],this['on']('change:description',(_0xed522e,_0x3bd651,_0x56cecd)=>{this['_descriptionElement']['innerHTML']=_0x56cecd;});}['_createButton'](_0x5c5919,_0xe708c5,_0x1a5fc3,_0x3e7f75,_0x35bb2f){const _0x4558d8=new _0x1b184b(this['locale']);return _0x4558d8['set']({'label':_0x5c5919,'icon':_0xe708c5,'tooltip':!0x0,'tooltipPosition':_0x35bb2f}),_0x4558d8['extendTemplate']({'attributes':{'class':_0x1a5fc3}}),_0x4558d8['on']('execute',()=>{this['fire'](_0x3e7f75,this['_model']['id']);}),_0x4558d8;}['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;}constructor(_0x45aa64,_0x907962,_0x18b595,_0x2bddf2){super(_0x45aa64,_0x907962,_0x18b595,_0x2bddf2),this['set']('type',''),this['bind']('type')['to'](this,'descriptionParts',_0x55df89=>_0x55df89&&_0x55df89[0x0]?_0x55df89[0x0]['type']:''),this['bind']('description')['to'](this,'descriptionParts',this,'isActive',(_0x14a92a,_0x368e5c)=>{let _0x1e5fac='';for(const _0x302233 of _0x14a92a)_0x1e5fac+='<p>'+ds(_0x302233['content'],_0x302233['color'])+'</p>';return _0x368e5c?_0x1e5fac:_0x252a9a(_0x1e5fac,{'limit':0x8c});}),this['_descriptionElement']=null,this['acceptButton']=this['_createButton'](o(_0x45aa64,'Accept\x20suggestion'),_0x39a540['check'],'ck-suggestion--accept','acceptSuggestion','sw'),this['acceptButton']['bind']('isEnabled')['to'](this,'canAccept'),this['discardButton']=this['_createButton'](o(_0x45aa64,'Discard\x20suggestion'),_0x39a540['cancel'],'ck-suggestion--discard','discardSuggestion','sw'),this['discardButton']['bind']('isEnabled')['to'](this,'canDiscard'),this['userView']=new _0x1ff955(_0x45aa64,this['_model']['author'],this['getUserViewNotificationText']()),this['userView']['extendTemplate']({'attributes':{'class':['ck-suggestion__user','ck-annotation__user']}}),this['setTemplate'](this['getTemplate']());}}function ds(_0x236906,_0x1ea21b){let _0x3f7cc1='';return _0x3f7cc1+=_0x236906['split']('*')['map']((_0xfeab7,_0x42eec5)=>_0x42eec5%0x2!=0x0?'<span\x20class=\x22ck-suggestion-type\x22>'+us(_0xfeab7)+'</span>':us(_0xfeab7))['join'](''),_0x1ea21b&&(_0x3f7cc1+='<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20'+_0x1ea21b['value']+'\x22\x20title=\x22'+_0x1ea21b['title']+'\x22></span>'),_0x3f7cc1;}function us(_0x2eb8b5){const _0x23964a=document['createElement']('span');return _0x23964a['innerText']=_0x2eb8b5,_0x23964a['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 _0x26e52a{static get['requires'](){return[p,_0x4a5edb,'CommentsRepository','Annotations','EditorAnnotations'];}static get['pluginName'](){return'TrackChangesUI';}['_handleSuggestionControllerDelayed'](_0x547605,_0x40e5b2){0x0===this['_handleControllerBuffer']['size']&&setTimeout(()=>{for(const [_0x23f94,_0x3a5fe2]of this['_handleControllerBuffer']){const _0xd969d5=this['_suggestionToController']['has'](_0x23f94);_0xd969d5||_0x3a5fe2?_0xd969d5&&_0x3a5fe2&&this['_destroyController'](_0x23f94):this['_initializeController'](_0x23f94);}this['_handleControllerBuffer']['clear'](),this['editor']['plugins']['get']('EditorAnnotations')['refreshSelectedViews'](),this['_refreshActiveMarkers']();},0xa),this['_handleControllerBuffer']['set'](_0x547605,_0x40e5b2);}['init'](){const _0x4faf01=this['editor'],_0x198e73=_0x4faf01['plugins']['get']('TrackChangesEditing'),_0x275180=_0x4faf01['plugins']['get']('Annotations'),_0x14497f=_0x4faf01['plugins']['get']('EditorAnnotations'),_0x178e24=_0x4faf01['plugins']['get']('CommentsRepository');this['_addUIComponentsToFactory'](),_0x14497f['addSourceCollector'](()=>{const _0x3e4ac2=[];for(const [_0x4ea3ab,_0x2d395b]of Array['from'](this['_suggestionToController'])){const _0x466bb8=_0x4ea3ab['getAllAdjacentSuggestions'](),_0x30454c=[];for(const _0x1730d2 of _0x466bb8){if(!_0x1730d2['isInContent'])continue;if(_0x1730d2['isMultiRange']){_0x30454c['push'](..._0x1730d2['getRanges']());continue;}const _0xae5e7a=_0x1730d2['getFirstRange']();if(_0x30454c['length']>0x0){const _0x1eadaa=_0x30454c[0x0]['getJoined'](_0xae5e7a);if(_0x1eadaa){_0x30454c[0x0]=_0x1eadaa;continue;}}_0x30454c['push'](_0xae5e7a);}_0x3e4ac2['push']([_0x2d395b['view'],_0x30454c]);}return _0x3e4ac2;}),this['listenTo'](_0x198e73,'suggestionLoaded',(_0x3c335f,_0x7eaee8)=>{this['listenTo'](_0x7eaee8,'change:previous',(_0x26a178,_0x360874,_0x3f6809,_0x9d8243)=>{_0x7eaee8['isInContent']&&(null==_0x3f6809?(this['_updateController'](_0x9d8243['head']),this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x1)):(this['_updateController'](_0x3f6809['head']),null==_0x9d8243&&this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x0)));}),null!==_0x7eaee8['previous']?this['_updateController'](_0x7eaee8['head']):this['_handleSuggestionControllerDelayed'](_0x7eaee8,!0x1);}),this['listenTo'](_0x198e73,'suggestionUnloaded',(_0x238c4e,_0x4267a7,_0x1c30d6)=>{this['stopListening'](_0x4267a7,'change:previous'),this['_handleControllerBuffer']['delete'](_0x4267a7),this['_suggestionToController']['has'](_0x4267a7)&&this['_destroyController'](_0x4267a7),_0x1c30d6&&this['_updateController'](_0x1c30d6['head']);}),this['listenTo'](_0x198e73,'suggestionChanged',(_0x555417,_0x3e7da1)=>{this['_updateController'](_0x3e7da1);}),this['listenTo'](_0x275180,'change:activeAnnotations',()=>{this['_refreshActiveMarkers']();}),this['listenTo'](_0x178e24,'addComment',(_0x66feca,{threadId:_0x3c8a56,isFromAdapter:_0x18a088})=>{if(_0x18a088||!_0x198e73['hasSuggestion'](_0x3c8a56))return;const _0x11d28d=_0x198e73['getSuggestion'](_0x3c8a56);this['_suggestionToController']['get'](_0x11d28d)['view']['focus']();},{'priority':'lowest'});}['_refreshActiveMarkers'](){const _0x499e0b=this['editor']['plugins']['get']('Annotations'),_0x3344ae=this['editor']['plugins']['get']('TrackChangesEditing'),_0x19107a=Array['from'](_0x499e0b['activeAnnotations'],_0x49f810=>_0x49f810['innerView'])['filter'](_0x16d2ef=>this['_viewToController']['has'](_0x16d2ef)),_0x10ebf0=[];for(const _0x2b5766 of _0x19107a){const _0x44af27=this['_viewToController']['get'](_0x2b5766)['model']['getAllAdjacentSuggestions']();_0x10ebf0['push'](..._0x44af27['reduce']((_0x3a58cd,_0x571e0d)=>[..._0x3a58cd,..._0x571e0d['getMarkerNames']()],[]));}_0x3344ae['activeMarkers']=_0x10ebf0;}['_addUIComponentsToFactory'](){const _0x59df74=this['editor'],_0x516179=_0x59df74['locale'],_0xcee547=o(_0x516179,'Track\x20changes'),_0x39c7ed=new Wt([{'type':'switchbutton','model':new te({'withText':!0x0,'label':_0xcee547,'commandName':'trackChanges'})},{'type':'separator'},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Accept\x20all\x20suggestions'),'commandName':'acceptAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Accept\x20all\x20selected\x20suggestions'),'commandName':'acceptSelectedSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Discard\x20all\x20suggestions'),'commandName':'discardAllSuggestions'})},{'type':'button','model':new te({'withText':!0x0,'label':o(_0x516179,'Discard\x20all\x20selected\x20suggestions'),'commandName':'discardSelectedSuggestions'})}]);for(const _0x30005f of _0x39c7ed)if(ae(_0x30005f)){const _0x42a55c=_0x59df74['commands']['get'](_0x30005f['model']['commandName']);_0x30005f['model']['bind']('isOn','isEnabled')['to'](_0x42a55c,'value','isEnabled');}_0x59df74['ui']['componentFactory']['add']('trackChanges',_0xd87775=>this['_createToolbarButton'](_0xd87775,_0x39c7ed,_0xcee547)),_0x59df74['ui']['componentFactory']['add']('menuBar:trackChanges',_0x524fb0=>this['_createMenuBarMenu'](_0x524fb0,_0x39c7ed,_0xcee547));}['_createToolbarButton'](_0x147e4d,_0xa39cb1,_0x399d49){const _0x28303f=zt(_0x147e4d,Zt),_0x37fab7=this['editor']['commands']['get']('trackChanges');_0x28303f['buttonView']['set']({'tooltip':_0x399d49,'label':_0x399d49,'icon':ie}),_0x28303f['buttonView']['bind']('isOn')['to'](_0x37fab7,'value'),_0x28303f['buttonView']['on']('execute',()=>{_0x37fab7['execute'](),this['editor']['editing']['view']['focus']();}),qt(_0x28303f,_0xa39cb1);const _0x2a6e80=[];for(const _0x2ac50a of _0xa39cb1)ae(_0x2ac50a)&&_0x2a6e80['push'](this['editor']['commands']['get'](_0x2ac50a['model']['commandName']));const _0x111131=_0x28303f['buttonView'];return _0x111131['actionView']['unbind']('isEnabled'),_0x111131['arrowView']['unbind']('isEnabled'),_0x111131['actionView']['bind']('isEnabled')['to'](_0x37fab7,'isEnabled'),_0x111131['arrowView']['bind']('isEnabled')['toMany'](_0x2a6e80,'isEnabled',(..._0x2fac41)=>_0x2fac41['some'](_0x5a5462=>_0x5a5462)),_0x28303f['on']('execute',_0x4e2baf=>{this['editor']['execute'](_0x4e2baf['source']['commandName']),this['editor']['editing']['view']['focus']();}),_0x28303f;}['_createMenuBarMenu'](_0xbcc8f,_0x1f1e69,_0x218e0b){const _0x7d9480=new Kt(_0xbcc8f),_0x5084f8=this['editor']['commands']['get']('trackChanges');_0x7d9480['buttonView']['set']({'label':_0x218e0b,'icon':ie});const _0x4affff=new Qt(_0xbcc8f);for(const _0x1b4ce2 of _0x1f1e69){if('separator'==_0x1b4ce2['type']){_0x4affff['items']['add'](new Jt(_0xbcc8f));continue;}const _0x5e7bcb=new Xt(_0xbcc8f,_0x7d9480),_0x3b726b=new Yt(_0xbcc8f),_0x225e92=_0x1b4ce2['model'];_0x3b726b['bind'](...Object['keys'](_0x225e92))['to'](_0x225e92),_0x3b726b['delegate']('execute')['to'](_0x7d9480),_0x3b726b['on']('execute',()=>{this['editor']['execute'](_0x225e92['commandName']),this['editor']['editing']['view']['focus']();}),_0x5e7bcb['children']['add'](_0x3b726b),_0x4affff['items']['add'](_0x5e7bcb);}return _0x7d9480['bind']('isEnabled')['to'](_0x5084f8,'isEnabled'),_0x7d9480['panelView']['children']['add'](_0x4affff),_0x7d9480;}['_initializeController'](_0x688590){const _0x4ab49e=this['editor'],_0x15a078=_0x4ab49e['config'],_0x3a4da8=_0x4ab49e['plugins']['get']('Annotations'),_0x25dd29=_0x4ab49e['plugins']['get']('CommentsRepository'),_0x5295b4=_0x4ab49e['plugins']['get']('EditorAnnotations'),_0x3ebb46=_0x4ab49e['plugins']['get'](_0x4a5edb)['me'],_0xdd9c29=_0x15a078['get']('trackChanges')['SuggestionThreadView'],{CommentsListView:_0x12ddac,CommentThreadInputView:_0x53dfb3}=_0x4ab49e['plugins']['get']('CommentsUI');let _0x5e9443,_0x1b1611;this['_annotationViews']['has'](_0x688590['id'])?(_0x1b1611=this['_annotationViews']['get'](_0x688590['id']),_0x5e9443=_0x1b1611['mainView']):(_0x5e9443=new _0xdd9c29(_0x4ab49e['locale'],_0x688590,_0x3ebb46,{'disableComments':this['_disableComments'],'editorConfig':_0x15a078['get']('comments.editorConfig'),'maxCommentsWhenCollapsed':_0x15a078['get']('comments.maxCommentsWhenCollapsed'),'maxThreadTotalWeight':_0x15a078['get']('comments.maxThreadTotalWeight'),'maxCommentCharsWhenCollapsed':_0x15a078['get']('comments.maxCommentCharsWhenCollapsed'),'formatDateTime':_0x23f3b0(_0x15a078['get']('locale')),'CommentView':_0x15a078['get']('comments')['CommentView'],'CommentsListView':_0x12ddac,'CommentThreadInputView':_0x53dfb3}),_0x5e9443['acceptButton']['on']('execute',()=>{_0x4ab49e['editing']['view']['focus']();}),_0x5e9443['discardButton']['on']('execute',()=>{_0x4ab49e['editing']['view']['focus']();}),_0x1b1611=_0x3a4da8['createAnnotationView'](this['editor']['locale'],_0x5e9443),_0x1b1611['bind']('isDirty')['to'](_0x5e9443,'isDirty'),_0x1b1611['bind']('length')['to'](_0x5e9443),_0x1b1611['bind']('type')['to'](_0x5e9443,'type',_0x95c7d3=>'suggestion-'+_0x95c7d3),this['_annotationViews']['set'](_0x688590['id'],_0x1b1611));const _0x56837e=_0x25dd29['createCommentThreadController'](_0x688590['commentThread'],_0x5e9443),_0x1b57bb=new oe(_0x4ab49e,_0x688590,_0x5e9443,_0x56837e),_0x44fa19=_0x688590['getAllAdjacentSuggestions']()['filter'](_0x2227df=>_0x2227df['isInContent']);_0x5e9443['descriptionParts']=_0x4ab49e['plugins']['get']('TrackChangesEditing')['_descriptionFactory']['getDescriptions'](_0x44fa19),this['_suggestionToController']['set'](_0x688590,_0x1b57bb),this['_viewToController']['set'](_0x5e9443,_0x1b57bb);const _0x17f486=_0x3a4da8['createAnnotation']({'view':_0x1b1611,'target':()=>{const _0x1c6c22=[],_0x107608=_0x688590['getAllAdjacentSuggestions']()['filter'](_0x9a152b=>_0x9a152b['isInContent']);for(const _0x5b0b93 of _0x107608)_0x1c6c22['push'](..._0x5b0b93['getMarkers']());return _0x406756(_0x4ab49e['editing'],_0x1c6c22);},'type':()=>'suggestion-'+_0x1b57bb['view']['type']});_0x25dd29['_bindAnnotationToEditors'](_0x5e9443,_0x17f486),_0x3a4da8['add'](_0x17f486),_0x5295b4['registerAnnotation'](_0x17f486);}['_destroyController'](_0x3c628e){const _0x380acd=this['editor']['plugins']['get']('CommentsRepository'),_0xd2bd02=this['editor']['plugins']['get']('Annotations'),_0x1a162a=this['_suggestionToController']['get'](_0x3c628e),_0x31843b=_0x1a162a['view'],_0xbca63a=_0xd2bd02['getByInnerView'](_0x31843b);_0x380acd['_unbindEditors'](_0x31843b),_0xbca63a&&_0xd2bd02['remove'](_0xbca63a),this['_suggestionToController']['delete'](_0x3c628e),this['_viewToController']['delete'](_0x31843b),_0x1a162a['destroy']();}['_updateController'](_0x3aa39a){if(!_0x3aa39a['isInContent']||!this['_suggestionToController']['has'](_0x3aa39a))return;const _0x191a28=this['editor']['plugins']['get']('TrackChangesEditing'),_0x33c74d=this['_suggestionToController']['get'](_0x3aa39a),_0x3c3cf1=_0x3aa39a['getAllAdjacentSuggestions']();_0x33c74d['view']['descriptionParts']=_0x191a28['_descriptionFactory']['getDescriptions'](_0x3c3cf1);}['destroy'](){for(const _0x596696 of this['_suggestionToController']['keys']())this['_destroyController'](_0x596696);for(const _0x52b52e of this['_annotationViews']['values']())_0x52b52e['mainView']['destroy']();super['destroy']();}constructor(_0x1ef533){super(_0x1ef533),this['_suggestionToController']=new Map(),this['_viewToController']=new Map(),this['_annotationViews']=new Map(),this['_handleControllerBuffer']=new Map();const _0x11a9d1=this['editor']['config'];_0x11a9d1['define']('trackChanges.SuggestionThreadView',ne),_0x11a9d1['define']('trackChanges.disableComments',!0x1),this['_disableComments']=_0x11a9d1['get']('trackChanges.disableComments');}}function ae(_0x59b638){return'model'in _0x59b638;}class k extends _0x26e52a{static get['requires'](){return[p,d,'Comments'];}static get['pluginName'](){return'TrackChanges';}set['adapter'](_0x4e34ae){this['editor']['plugins']['get'](p)['adapter']=_0x4e34ae;}get['adapter'](){return this['editor']['plugins']['get'](p)['adapter'];}['addSuggestion'](_0x224f4c){return this['editor']['plugins']['get'](p)['addSuggestionData'](_0x224f4c);}['getSuggestions']({skipNotAttached:_0x5c6e7e=!0x1,toJSON:_0x1c600b=!0x1}={}){return this['editor']['plugins']['get'](p)['getSuggestions']({'skipNotAttached':_0x5c6e7e,'toJSON':_0x1c600b});}['getSuggestion'](_0x254f21){return this['editor']['plugins']['get'](p)['getSuggestion'](_0x254f21);}}const T=['Pagination'];class P extends _0x26e52a{static get['requires'](){return[p];}static get['pluginName'](){return'TrackChangesData';}['init'](){const _0x1dd22c=this['editor'];if(_0x1dd22c['config']['define']('trackChangesData.editorCreator',_0x1c1b9d=>{const _0x3aec61=_0x1dd22c['model']['document']['getRootNames']()['reduce']((_0x449109,_0x2c0886)=>(_0x449109[_0x2c0886]='',_0x449109),{});return _0x1dd22c['constructor']['create'](_0x3aec61,_0x1c1b9d);}),'function'!=typeof _0x1dd22c['config']['get']('trackChangesData')['editorCreator'])throw new _0x215eab('track-changes-data-invalid-editor-creator');}['getDataWithAcceptedSuggestions'](_0x536e6a){return N(this['editor'],!0x0,_0x536e6a);}['getDataWithDiscardedSuggestions'](_0x179e0f){return N(this['editor'],!0x1,_0x179e0f);}}class D extends _0x26e52a{static get['pluginName'](){return'TrackChangesDataGetter';}['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;}constructor(_0x476d9e){super(_0x476d9e),this['result']='end';}}function v(_0x582a5f){return void 0x0!==_0x582a5f['getRootsAttributes'];}async function N(_0x4edf10,_0x18f600,_0x397ab8){const _0x204617=_0x5d98e0(_0x4edf10,T);_0x204617['plugins']['push'](p,D),_0x204617['rootsAttributes']=v(_0x4edf10)?_0x4edf10['getRootsAttributes']():void 0x0;const _0x4b1af3=document['createDocumentFragment'](),_0x13a97a=_0x4edf10['config']['get']('trackChangesData')['editorCreator'],_0xb3510=await _0x13a97a(_0x204617,()=>function(_0x1a575d){const _0x2c8842=document['createElement']('div');return _0x1a575d['appendChild'](_0x2c8842),_0x2c8842;}(_0x4b1af3));!function(_0x516264,_0x1244f1){const _0x29504b=_0x516264['model']['document']['getRootNames']()['reduce']((_0x1f73e7,_0xcae489)=>(_0x1f73e7[_0xcae489]=_0x516264['data']['get']({'rootName':_0xcae489}),_0x1f73e7),{}),_0x472b6f=_0x516264['plugins']['get']('Users')['users']['map'](_0x670d66=>({'id':_0x670d66['id'],'name':_0x670d66['name']})),_0x2b1520=_0x516264['plugins']['get']('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3d5092=_0x1244f1['plugins']['get']('Users'),_0x47f40b=_0x1244f1['plugins']['get']('TrackChangesEditing');for(const _0x238880 of _0x472b6f)_0x3d5092['getUser'](_0x238880['id'])||_0x3d5092['addUser'](_0x238880);_0x3d5092['me']||_0x3d5092['useAnonymousUser']();for(const _0x181d15 of _0x2b1520)_0x47f40b['addSuggestionData'](_0x181d15);_0x1244f1['data']['set'](_0x29504b);}(_0x4edf10,_0xb3510),_0xb3510['execute'](_0x18f600?'acceptAllSuggestions':'discardAllSuggestions');const _0x10906f=v(_0xb3510)?_0xb3510['getFullData'](_0x397ab8):_0xb3510['data']['get'](_0x397ab8);return await _0xb3510['destroy'](),_0x10906f;}export{es as BaseSuggestionThreadView,k as TrackChanges,P as TrackChangesData,p as TrackChangesEditing};